tools.ozone.moderation.queryEvents
Schema Diff
+3 -2
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "List moderation events related to a subject.",
6
6
"output": {
7
7
"encoding": "application/json",
8
8
"schema": {
9
9
"properties": {
10
10
"cursor": {
11
11
"type": "string"
12
12
},
13
13
"events": {
14
14
"items": {
15
15
"ref": "tools.ozone.moderation.defs#modEventView",
16
16
"type": "ref"
17
17
},
18
18
"type": "array"
19
19
}
20
20
},
21
21
"required": [
22
22
"events"
23
23
],
24
24
"type": "object"
25
25
}
26
26
},
27
27
"parameters": {
28
28
"properties": {
29
29
"addedLabels": {
30
30
"description": "If specified, only events where all of these labels were added are returned",
31
31
"items": {
32
32
"type": "string"
33
33
},
34
34
"type": "array"
35
35
},
36
36
"addedTags": {
37
37
"description": "If specified, only events where all of these tags were added are returned",
38
38
"items": {
39
39
"type": "string"
40
40
},
41
41
"type": "array"
42
42
},
43
43
"ageAssuranceState": {
44
44
"description": "If specified, only events where the age assurance state matches the given value are returned",
45
45
"knownValues": [
46
46
"pending",
47
47
"assured",
48
48
"unknown",
49
49
"reset",
50
50
"blocked"
51
51
],
52
52
"type": "string"
53
53
},
54
54
"batchId": {
55
55
"description": "If specified, only events where the batchId matches the given value are returned",
56
56
"type": "string"
57
57
},
58
58
"collections": {
59
59
"description": "If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",
60
60
"items": {
61
61
"format": "nsid",
62
62
"type": "string"
63
63
},
64
64
"maxLength": 20,
65
65
"type": "array"
66
66
},
67
67
"comment": {
68
68
"description": "If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.",
69
69
"type": "string"
70
70
},
71
71
"createdAfter": {
72
72
"description": "Retrieve events created after a given timestamp",
73
73
"format": "datetime",
74
74
"type": "string"
75
75
},
76
76
"createdBefore": {
77
77
"description": "Retrieve events created before a given timestamp",
78
78
"format": "datetime",
79
79
"type": "string"
80
80
},
81
81
"createdBy": {
82
82
"format": "did",
83
83
"type": "string"
84
84
},
85
85
"cursor": {
86
86
"type": "string"
87
87
},
88
88
"hasComment": {
89
89
"description": "If true, only events with comments are returned",
90
90
"type": "boolean"
91
91
},
92
92
"includeAllUserRecords": {
93
93
"default": false,
94
94
"description": "If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.",
95
95
"type": "boolean"
96
96
},
97
97
"limit": {
98
98
"default": 50,
99
99
"maximum": 100,
100
100
"minimum": 1,
101
101
"type": "integer"
102
102
},
103
103
"modTool": {
104
104
"description": "If specified, only events where the modTool name matches any of the given values are returned",
105
105
"items": {
106
106
"type": "string"
107
107
},
108
108
"type": "array"
109
109
},
110
110
"policies": {
111
111
"items": {
112
112
"description": "If specified, only events where the action policies match any of the given policies are returned",
113
113
"type": "string"
114
114
},
115
115
"type": "array"
116
116
},
117
117
"removedLabels": {
118
118
"description": "If specified, only events where all of these labels were removed are returned",
119
119
"items": {
120
120
"type": "string"
121
121
},
122
122
"type": "array"
123
123
},
124
124
"removedTags": {
125
125
"description": "If specified, only events where all of these tags were removed are returned",
126
126
"items": {
127
127
"type": "string"
128
128
},
129
129
"type": "array"
130
130
},
131
131
"reportTypes": {
132
132
"items": {
133
133
"type": "string"
134
134
},
135
135
"type": "array"
136
136
},
137
137
"sortDirection": {
138
138
"default": "desc",
139
139
"description": "Sort direction for the events. Defaults to descending order of created at timestamp.",
140
140
"enum": [
141
141
"asc",
142
142
"desc"
143
143
],
144
144
"type": "string"
145
145
},
146
146
"subject": {
147
147
"format": "uri",
148
148
"type": "string"
149
149
},
150
150
"subjectType": {
151
-
"description": "If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.",
151
+
"description": "If specified, only events where the subject is of the given type (account, record, or conversation) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.",
152
152
"knownValues": [
153
153
"account",
154
-
"record"
154
+
"record",
155
+
"conversation"
155
156
],
156
157
"type": "string"
157
158
},
158
159
"types": {
159
160
"description": "The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.",
160
161
"items": {
161
162
"type": "string"
162
163
},
163
164
"type": "array"
164
165
},
165
166
"withStrike": {
166
167
"description": "If specified, only events where strikeCount value is set are returned.",
167
168
"type": "boolean"
168
169
}
169
170
},
170
171
"type": "params"
171
172
},
172
173
"type": "query"
173
174
}
174
175
},
175
176
"id": "tools.ozone.moderation.queryEvents",
176
177
"lexicon": 1
177
178
}