-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrespectify.schema.json
More file actions
115 lines (115 loc) · 3.21 KB
/
Copy pathrespectify.schema.json
File metadata and controls
115 lines (115 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Respectify Configuration",
"description": "Configuration for Respectify comment moderation integration",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable or disable Respectify integration",
"default": true
},
"apiEndpoint": {
"type": "string",
"description": "Respectify API endpoint URL",
"format": "uri"
},
"requiresAuth": {
"type": "boolean",
"description": "Whether API requires authentication (API key)",
"default": true
},
"autoPublish": {
"type": "object",
"description": "Auto-publish settings for approved comments",
"properties": {
"enabled": {
"type": "boolean",
"description": "Auto-publish comments that meet the minimum score",
"default": true
},
"minimumScore": {
"type": "number",
"description": "Minimum respectfulness score for auto-publishing (0-1)",
"minimum": 0,
"maximum": 1,
"default": 0.7
}
},
"required": ["enabled", "minimumScore"]
},
"moderation": {
"type": "object",
"description": "Moderation behavior settings",
"properties": {
"blockDisrespectful": {
"type": "boolean",
"description": "Block comments below the block threshold",
"default": false
},
"showFeedbackToUser": {
"type": "boolean",
"description": "Show Respectify feedback to users",
"default": true
},
"allowOverride": {
"type": "boolean",
"description": "Allow users to submit despite warnings",
"default": true
}
},
"required": ["blockDisrespectful", "showFeedbackToUser", "allowOverride"]
},
"thresholds": {
"type": "object",
"description": "Score thresholds for different actions",
"properties": {
"autoApprove": {
"type": "number",
"description": "Auto-approve comments above this score (0-1)",
"minimum": 0,
"maximum": 1,
"default": 0.7
},
"warn": {
"type": "number",
"description": "Show warning for comments below this score (0-1)",
"minimum": 0,
"maximum": 1,
"default": 0.5
},
"block": {
"type": "number",
"description": "Block comments below this score if blockDisrespectful is true (0-1)",
"minimum": 0,
"maximum": 1,
"default": 0.3
}
},
"required": ["autoApprove", "warn", "block"]
},
"feedback": {
"type": "object",
"description": "User-facing feedback messages",
"properties": {
"approved": {
"type": "string",
"description": "Message shown when comment is auto-approved",
"default": "Thank you for your respectful comment!"
},
"warning": {
"type": "string",
"description": "Message shown when comment receives a warning",
"default": "Your comment may contain disrespectful language. Please consider revising it."
},
"blocked": {
"type": "string",
"description": "Message shown when comment is blocked",
"default": "Your comment does not meet our respectfulness standards. Please revise and try again."
}
},
"required": ["approved", "warning", "blocked"]
}
},
"required": ["enabled", "apiEndpoint", "autoPublish", "moderation", "thresholds", "feedback"]
}