@atproto/api 0.19.14 → 0.19.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/client/index.d.ts +71 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +172 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +17024 -13878
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +1789 -122
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +2 -0
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +16 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.js +9 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
- package/dist/client/types/tools/ozone/queue/assignModerator.d.ts +29 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.js +26 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts +37 -0
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/createQueue.js +26 -0
- package/dist/client/types/tools/ozone/queue/createQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/defs.d.ts +62 -0
- package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/defs.js +34 -0
- package/dist/client/types/tools/ozone/queue/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts +29 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.js +11 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.d.ts +31 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.js +11 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/listQueues.d.ts +33 -0
- package/dist/client/types/tools/ozone/queue/listQueues.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/listQueues.js +11 -0
- package/dist/client/types/tools/ozone/queue/listQueues.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/routeReports.d.ts +33 -0
- package/dist/client/types/tools/ozone/queue/routeReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/routeReports.js +26 -0
- package/dist/client/types/tools/ozone/queue/routeReports.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts +26 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.js +26 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.d.ts +32 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.js +11 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/report/assignModerator.d.ts +36 -0
- package/dist/client/types/tools/ozone/report/assignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/assignModerator.js +34 -0
- package/dist/client/types/tools/ozone/report/assignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/report/createActivity.d.ts +45 -0
- package/dist/client/types/tools/ozone/report/createActivity.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/createActivity.js +42 -0
- package/dist/client/types/tools/ozone/report/createActivity.js.map +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts +185 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.js +108 -0
- package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/report/getAssignments.d.ts +31 -0
- package/dist/client/types/tools/ozone/report/getAssignments.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getAssignments.js +11 -0
- package/dist/client/types/tools/ozone/report/getAssignments.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts +37 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.js +11 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.d.ts +24 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.js +26 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.d.ts +28 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.js +11 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getReport.d.ts +25 -0
- package/dist/client/types/tools/ozone/report/getReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getReport.js +26 -0
- package/dist/client/types/tools/ozone/report/getReport.js.map +1 -0
- package/dist/client/types/tools/ozone/report/listActivities.d.ts +27 -0
- package/dist/client/types/tools/ozone/report/listActivities.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/listActivities.js +11 -0
- package/dist/client/types/tools/ozone/report/listActivities.js.map +1 -0
- package/dist/client/types/tools/ozone/report/queryReports.d.ts +49 -0
- package/dist/client/types/tools/ozone/report/queryReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/queryReports.js +11 -0
- package/dist/client/types/tools/ozone/report/queryReports.js.map +1 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.d.ts +45 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.js +58 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/report/refreshStats.d.ts +28 -0
- package/dist/client/types/tools/ozone/report/refreshStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/refreshStats.js +11 -0
- package/dist/client/types/tools/ozone/report/refreshStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.d.ts +27 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.js +26 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.js.map +1 -0
- package/package.json +3 -3
- package/src/client/index.ts +292 -0
- package/src/client/lexicons.ts +1910 -160
- package/src/client/types/app/bsky/embed/external.ts +2 -0
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +24 -0
- package/src/client/types/tools/ozone/queue/assignModerator.ts +55 -0
- package/src/client/types/tools/ozone/queue/createQueue.ts +63 -0
- package/src/client/types/tools/ozone/queue/defs.ts +99 -0
- package/src/client/types/tools/ozone/queue/deleteQueue.ts +48 -0
- package/src/client/types/tools/ozone/queue/getAssignments.ts +49 -0
- package/src/client/types/tools/ozone/queue/listQueues.ts +51 -0
- package/src/client/types/tools/ozone/queue/routeReports.ts +59 -0
- package/src/client/types/tools/ozone/queue/unassignModerator.ts +51 -0
- package/src/client/types/tools/ozone/queue/updateQueue.ts +51 -0
- package/src/client/types/tools/ozone/report/assignModerator.ts +66 -0
- package/src/client/types/tools/ozone/report/createActivity.ts +85 -0
- package/src/client/types/tools/ozone/report/defs.ts +327 -0
- package/src/client/types/tools/ozone/report/getAssignments.ts +49 -0
- package/src/client/types/tools/ozone/report/getHistoricalStats.ts +55 -0
- package/src/client/types/tools/ozone/report/getLatestReport.ts +49 -0
- package/src/client/types/tools/ozone/report/getLiveStats.ts +46 -0
- package/src/client/types/tools/ozone/report/getReport.ts +49 -0
- package/src/client/types/tools/ozone/report/listActivities.ts +45 -0
- package/src/client/types/tools/ozone/report/queryReports.ts +73 -0
- package/src/client/types/tools/ozone/report/reassignQueue.ts +88 -0
- package/src/client/types/tools/ozone/report/refreshStats.ts +46 -0
- package/src/client/types/tools/ozone/report/unassignModerator.ts +53 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -2601,6 +2601,11 @@ exports.schemaDict = {
|
|
|
2601
2601
|
accept: ['image/*'],
|
|
2602
2602
|
maxSize: 1000000,
|
|
2603
2603
|
},
|
|
2604
|
+
associatedRecord: {
|
|
2605
|
+
type: 'string',
|
|
2606
|
+
format: 'at-uri',
|
|
2607
|
+
description: 'The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record.',
|
|
2608
|
+
},
|
|
2604
2609
|
},
|
|
2605
2610
|
},
|
|
2606
2611
|
view: {
|
|
@@ -19117,6 +19122,11 @@ exports.schemaDict = {
|
|
|
19117
19122
|
type: 'string',
|
|
19118
19123
|
description: 'An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject.',
|
|
19119
19124
|
},
|
|
19125
|
+
reportAction: {
|
|
19126
|
+
type: 'ref',
|
|
19127
|
+
ref: 'lex:tools.ozone.moderation.emitEvent#reportAction',
|
|
19128
|
+
description: 'Optional report-level targeting. If provided, this event will be linked to specific reports and reporters may be notified.',
|
|
19129
|
+
},
|
|
19120
19130
|
},
|
|
19121
19131
|
},
|
|
19122
19132
|
},
|
|
@@ -19137,6 +19147,34 @@ exports.schemaDict = {
|
|
|
19137
19147
|
},
|
|
19138
19148
|
],
|
|
19139
19149
|
},
|
|
19150
|
+
reportAction: {
|
|
19151
|
+
type: 'object',
|
|
19152
|
+
description: 'Target specific reports when emitting a moderation event',
|
|
19153
|
+
properties: {
|
|
19154
|
+
ids: {
|
|
19155
|
+
type: 'array',
|
|
19156
|
+
items: {
|
|
19157
|
+
type: 'integer',
|
|
19158
|
+
},
|
|
19159
|
+
description: 'Target specific report IDs',
|
|
19160
|
+
},
|
|
19161
|
+
types: {
|
|
19162
|
+
type: 'array',
|
|
19163
|
+
items: {
|
|
19164
|
+
type: 'string',
|
|
19165
|
+
},
|
|
19166
|
+
description: 'Target reports matching these report types on the subject (fully qualified NSIDs)',
|
|
19167
|
+
},
|
|
19168
|
+
all: {
|
|
19169
|
+
type: 'boolean',
|
|
19170
|
+
description: 'Target ALL reports on the subject',
|
|
19171
|
+
},
|
|
19172
|
+
note: {
|
|
19173
|
+
type: 'string',
|
|
19174
|
+
description: 'Note to send to reporter(s) when actioning their report',
|
|
19175
|
+
},
|
|
19176
|
+
},
|
|
19177
|
+
},
|
|
19140
19178
|
},
|
|
19141
19179
|
},
|
|
19142
19180
|
ToolsOzoneModerationGetAccountTimeline: {
|
|
@@ -20187,141 +20225,827 @@ exports.schemaDict = {
|
|
|
20187
20225
|
},
|
|
20188
20226
|
},
|
|
20189
20227
|
},
|
|
20190
|
-
|
|
20228
|
+
ToolsOzoneQueueAssignModerator: {
|
|
20191
20229
|
lexicon: 1,
|
|
20192
|
-
id: 'tools.ozone.
|
|
20230
|
+
id: 'tools.ozone.queue.assignModerator',
|
|
20193
20231
|
defs: {
|
|
20194
|
-
|
|
20195
|
-
type: '
|
|
20196
|
-
|
|
20197
|
-
|
|
20198
|
-
'
|
|
20199
|
-
|
|
20200
|
-
|
|
20201
|
-
|
|
20202
|
-
|
|
20203
|
-
|
|
20204
|
-
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20209
|
-
|
|
20210
|
-
|
|
20211
|
-
|
|
20212
|
-
|
|
20213
|
-
|
|
20214
|
-
|
|
20215
|
-
'
|
|
20216
|
-
|
|
20217
|
-
|
|
20218
|
-
|
|
20219
|
-
|
|
20220
|
-
|
|
20221
|
-
|
|
20222
|
-
|
|
20223
|
-
|
|
20224
|
-
|
|
20225
|
-
|
|
20226
|
-
'tools.ozone.report.defs#reasonMisleadingElections',
|
|
20227
|
-
'tools.ozone.report.defs#reasonMisleadingOther',
|
|
20228
|
-
'tools.ozone.report.defs#reasonRuleSiteSecurity',
|
|
20229
|
-
'tools.ozone.report.defs#reasonRuleProhibitedSales',
|
|
20230
|
-
'tools.ozone.report.defs#reasonRuleBanEvasion',
|
|
20231
|
-
'tools.ozone.report.defs#reasonRuleOther',
|
|
20232
|
-
'tools.ozone.report.defs#reasonSelfHarmContent',
|
|
20233
|
-
'tools.ozone.report.defs#reasonSelfHarmED',
|
|
20234
|
-
'tools.ozone.report.defs#reasonSelfHarmStunts',
|
|
20235
|
-
'tools.ozone.report.defs#reasonSelfHarmSubstances',
|
|
20236
|
-
'tools.ozone.report.defs#reasonSelfHarmOther',
|
|
20232
|
+
main: {
|
|
20233
|
+
type: 'procedure',
|
|
20234
|
+
description: 'Assign a user to a queue.',
|
|
20235
|
+
input: {
|
|
20236
|
+
encoding: 'application/json',
|
|
20237
|
+
schema: {
|
|
20238
|
+
type: 'object',
|
|
20239
|
+
required: ['queueId', 'did'],
|
|
20240
|
+
properties: {
|
|
20241
|
+
queueId: {
|
|
20242
|
+
type: 'integer',
|
|
20243
|
+
description: 'The ID of the queue to assign the user to.',
|
|
20244
|
+
},
|
|
20245
|
+
did: {
|
|
20246
|
+
type: 'string',
|
|
20247
|
+
description: 'DID to be assigned.',
|
|
20248
|
+
},
|
|
20249
|
+
},
|
|
20250
|
+
},
|
|
20251
|
+
},
|
|
20252
|
+
output: {
|
|
20253
|
+
encoding: 'application/json',
|
|
20254
|
+
schema: {
|
|
20255
|
+
type: 'ref',
|
|
20256
|
+
ref: 'lex:tools.ozone.queue.defs#assignmentView',
|
|
20257
|
+
},
|
|
20258
|
+
},
|
|
20259
|
+
errors: [
|
|
20260
|
+
{
|
|
20261
|
+
name: 'InvalidAssignment',
|
|
20262
|
+
description: 'The specified queue does not exist or is not enabled.',
|
|
20263
|
+
},
|
|
20237
20264
|
],
|
|
20238
20265
|
},
|
|
20239
|
-
|
|
20240
|
-
|
|
20241
|
-
|
|
20242
|
-
|
|
20243
|
-
|
|
20244
|
-
|
|
20245
|
-
|
|
20246
|
-
|
|
20247
|
-
|
|
20248
|
-
|
|
20249
|
-
|
|
20250
|
-
|
|
20251
|
-
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
|
|
20256
|
-
|
|
20257
|
-
|
|
20258
|
-
|
|
20259
|
-
|
|
20260
|
-
|
|
20261
|
-
|
|
20266
|
+
},
|
|
20267
|
+
},
|
|
20268
|
+
ToolsOzoneQueueCreateQueue: {
|
|
20269
|
+
lexicon: 1,
|
|
20270
|
+
id: 'tools.ozone.queue.createQueue',
|
|
20271
|
+
defs: {
|
|
20272
|
+
main: {
|
|
20273
|
+
type: 'procedure',
|
|
20274
|
+
description: 'Create a new moderation queue. Will fail if the queue configuration conflicts with an existing queue.',
|
|
20275
|
+
input: {
|
|
20276
|
+
encoding: 'application/json',
|
|
20277
|
+
schema: {
|
|
20278
|
+
type: 'object',
|
|
20279
|
+
required: ['name', 'subjectTypes', 'reportTypes'],
|
|
20280
|
+
properties: {
|
|
20281
|
+
name: {
|
|
20282
|
+
type: 'string',
|
|
20283
|
+
description: 'Display name for the queue (must be unique)',
|
|
20284
|
+
},
|
|
20285
|
+
subjectTypes: {
|
|
20286
|
+
type: 'array',
|
|
20287
|
+
minLength: 1,
|
|
20288
|
+
items: {
|
|
20289
|
+
type: 'string',
|
|
20290
|
+
knownValues: ['account', 'record', 'message'],
|
|
20291
|
+
},
|
|
20292
|
+
description: 'Subject types this queue accepts',
|
|
20293
|
+
},
|
|
20294
|
+
collection: {
|
|
20295
|
+
type: 'string',
|
|
20296
|
+
format: 'nsid',
|
|
20297
|
+
description: "Collection name for record subjects. Required if subjectTypes includes 'record'.",
|
|
20298
|
+
},
|
|
20299
|
+
reportTypes: {
|
|
20300
|
+
type: 'array',
|
|
20301
|
+
items: {
|
|
20302
|
+
type: 'string',
|
|
20303
|
+
},
|
|
20304
|
+
minLength: 1,
|
|
20305
|
+
maxLength: 25,
|
|
20306
|
+
description: 'Report reason types (fully qualified NSIDs)',
|
|
20307
|
+
},
|
|
20308
|
+
description: {
|
|
20309
|
+
type: 'string',
|
|
20310
|
+
description: 'Optional description of the queue',
|
|
20311
|
+
},
|
|
20312
|
+
},
|
|
20313
|
+
},
|
|
20314
|
+
},
|
|
20315
|
+
output: {
|
|
20316
|
+
encoding: 'application/json',
|
|
20317
|
+
schema: {
|
|
20318
|
+
type: 'object',
|
|
20319
|
+
required: ['queue'],
|
|
20320
|
+
properties: {
|
|
20321
|
+
queue: {
|
|
20322
|
+
type: 'ref',
|
|
20323
|
+
ref: 'lex:tools.ozone.queue.defs#queueView',
|
|
20324
|
+
},
|
|
20325
|
+
},
|
|
20326
|
+
},
|
|
20327
|
+
},
|
|
20328
|
+
errors: [
|
|
20329
|
+
{
|
|
20330
|
+
name: 'ConflictingQueue',
|
|
20331
|
+
description: 'The queue configuration conflicts with an existing queue',
|
|
20332
|
+
},
|
|
20333
|
+
],
|
|
20262
20334
|
},
|
|
20263
|
-
|
|
20264
|
-
|
|
20265
|
-
|
|
20335
|
+
},
|
|
20336
|
+
},
|
|
20337
|
+
ToolsOzoneQueueDefs: {
|
|
20338
|
+
lexicon: 1,
|
|
20339
|
+
id: 'tools.ozone.queue.defs',
|
|
20340
|
+
defs: {
|
|
20341
|
+
queueView: {
|
|
20342
|
+
type: 'object',
|
|
20343
|
+
required: [
|
|
20344
|
+
'id',
|
|
20345
|
+
'name',
|
|
20346
|
+
'subjectTypes',
|
|
20347
|
+
'reportTypes',
|
|
20348
|
+
'createdBy',
|
|
20349
|
+
'createdAt',
|
|
20350
|
+
'updatedAt',
|
|
20351
|
+
'enabled',
|
|
20352
|
+
'stats',
|
|
20353
|
+
],
|
|
20354
|
+
properties: {
|
|
20355
|
+
id: {
|
|
20356
|
+
type: 'integer',
|
|
20357
|
+
description: 'Queue ID',
|
|
20358
|
+
},
|
|
20359
|
+
name: {
|
|
20360
|
+
type: 'string',
|
|
20361
|
+
description: 'Display name of the queue',
|
|
20362
|
+
},
|
|
20363
|
+
subjectTypes: {
|
|
20364
|
+
type: 'array',
|
|
20365
|
+
minLength: 1,
|
|
20366
|
+
items: {
|
|
20367
|
+
type: 'string',
|
|
20368
|
+
knownValues: ['account', 'record', 'message'],
|
|
20369
|
+
},
|
|
20370
|
+
description: 'Subject types this queue accepts.',
|
|
20371
|
+
},
|
|
20372
|
+
collection: {
|
|
20373
|
+
type: 'string',
|
|
20374
|
+
format: 'nsid',
|
|
20375
|
+
description: "Collection name for record subjects (e.g., 'app.bsky.feed.post')",
|
|
20376
|
+
},
|
|
20377
|
+
reportTypes: {
|
|
20378
|
+
type: 'array',
|
|
20379
|
+
items: {
|
|
20380
|
+
type: 'string',
|
|
20381
|
+
},
|
|
20382
|
+
minLength: 1,
|
|
20383
|
+
description: 'Report reason types this queue accepts (fully qualified NSIDs)',
|
|
20384
|
+
},
|
|
20385
|
+
description: {
|
|
20386
|
+
type: 'string',
|
|
20387
|
+
description: 'Optional description of the queue',
|
|
20388
|
+
},
|
|
20389
|
+
createdBy: {
|
|
20390
|
+
type: 'string',
|
|
20391
|
+
format: 'did',
|
|
20392
|
+
description: 'DID of moderator who created this queue',
|
|
20393
|
+
},
|
|
20394
|
+
createdAt: {
|
|
20395
|
+
type: 'string',
|
|
20396
|
+
format: 'datetime',
|
|
20397
|
+
},
|
|
20398
|
+
updatedAt: {
|
|
20399
|
+
type: 'string',
|
|
20400
|
+
format: 'datetime',
|
|
20401
|
+
},
|
|
20402
|
+
enabled: {
|
|
20403
|
+
type: 'boolean',
|
|
20404
|
+
description: 'Whether this queue is currently active',
|
|
20405
|
+
},
|
|
20406
|
+
deletedAt: {
|
|
20407
|
+
type: 'string',
|
|
20408
|
+
format: 'datetime',
|
|
20409
|
+
description: 'When the queue was deleted, if applicable',
|
|
20410
|
+
},
|
|
20411
|
+
stats: {
|
|
20412
|
+
type: 'ref',
|
|
20413
|
+
ref: 'lex:tools.ozone.queue.defs#queueStats',
|
|
20414
|
+
description: 'Statistics about this queue',
|
|
20415
|
+
},
|
|
20416
|
+
},
|
|
20266
20417
|
},
|
|
20267
|
-
|
|
20268
|
-
type: '
|
|
20269
|
-
|
|
20418
|
+
queueStats: {
|
|
20419
|
+
type: 'object',
|
|
20420
|
+
required: [],
|
|
20421
|
+
properties: {
|
|
20422
|
+
pendingCount: {
|
|
20423
|
+
type: 'integer',
|
|
20424
|
+
description: "Number of reports in 'open' status",
|
|
20425
|
+
},
|
|
20426
|
+
actionedCount: {
|
|
20427
|
+
type: 'integer',
|
|
20428
|
+
description: "Number of reports in 'closed' status",
|
|
20429
|
+
},
|
|
20430
|
+
escalatedCount: {
|
|
20431
|
+
type: 'integer',
|
|
20432
|
+
description: "Number of reports in 'escalated' status",
|
|
20433
|
+
},
|
|
20434
|
+
inboundCount: {
|
|
20435
|
+
type: 'integer',
|
|
20436
|
+
description: 'Reports received in this queue in the last 24 hours.',
|
|
20437
|
+
},
|
|
20438
|
+
actionRate: {
|
|
20439
|
+
type: 'integer',
|
|
20440
|
+
description: 'Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0.',
|
|
20441
|
+
},
|
|
20442
|
+
avgHandlingTimeSec: {
|
|
20443
|
+
type: 'integer',
|
|
20444
|
+
description: 'Average time in seconds from report creation to close, for reports closed in this period.',
|
|
20445
|
+
},
|
|
20446
|
+
lastUpdated: {
|
|
20447
|
+
type: 'string',
|
|
20448
|
+
format: 'datetime',
|
|
20449
|
+
description: 'When these statistics were last computed',
|
|
20450
|
+
},
|
|
20451
|
+
},
|
|
20270
20452
|
},
|
|
20271
|
-
|
|
20272
|
-
type: '
|
|
20273
|
-
|
|
20274
|
-
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
|
|
20279
|
-
|
|
20280
|
-
|
|
20281
|
-
|
|
20282
|
-
|
|
20283
|
-
|
|
20284
|
-
|
|
20285
|
-
|
|
20286
|
-
|
|
20287
|
-
|
|
20288
|
-
|
|
20289
|
-
|
|
20290
|
-
|
|
20291
|
-
|
|
20292
|
-
|
|
20293
|
-
|
|
20294
|
-
|
|
20295
|
-
|
|
20296
|
-
|
|
20297
|
-
|
|
20298
|
-
|
|
20299
|
-
|
|
20300
|
-
type: 'token',
|
|
20301
|
-
description: "Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority.",
|
|
20453
|
+
assignmentView: {
|
|
20454
|
+
type: 'object',
|
|
20455
|
+
required: ['id', 'did', 'queue', 'startAt'],
|
|
20456
|
+
properties: {
|
|
20457
|
+
id: {
|
|
20458
|
+
type: 'integer',
|
|
20459
|
+
},
|
|
20460
|
+
did: {
|
|
20461
|
+
type: 'string',
|
|
20462
|
+
format: 'did',
|
|
20463
|
+
},
|
|
20464
|
+
moderator: {
|
|
20465
|
+
type: 'ref',
|
|
20466
|
+
ref: 'lex:tools.ozone.team.defs#member',
|
|
20467
|
+
description: 'The moderator assigned to this queue',
|
|
20468
|
+
},
|
|
20469
|
+
queue: {
|
|
20470
|
+
type: 'ref',
|
|
20471
|
+
ref: 'lex:tools.ozone.queue.defs#queueView',
|
|
20472
|
+
},
|
|
20473
|
+
startAt: {
|
|
20474
|
+
type: 'string',
|
|
20475
|
+
format: 'datetime',
|
|
20476
|
+
},
|
|
20477
|
+
endAt: {
|
|
20478
|
+
type: 'string',
|
|
20479
|
+
format: 'datetime',
|
|
20480
|
+
},
|
|
20481
|
+
},
|
|
20302
20482
|
},
|
|
20303
|
-
|
|
20304
|
-
|
|
20305
|
-
|
|
20483
|
+
},
|
|
20484
|
+
},
|
|
20485
|
+
ToolsOzoneQueueDeleteQueue: {
|
|
20486
|
+
lexicon: 1,
|
|
20487
|
+
id: 'tools.ozone.queue.deleteQueue',
|
|
20488
|
+
defs: {
|
|
20489
|
+
main: {
|
|
20490
|
+
type: 'procedure',
|
|
20491
|
+
description: 'Delete a moderation queue. Optionally migrate reports to another queue.',
|
|
20492
|
+
input: {
|
|
20493
|
+
encoding: 'application/json',
|
|
20494
|
+
schema: {
|
|
20495
|
+
type: 'object',
|
|
20496
|
+
required: ['queueId'],
|
|
20497
|
+
properties: {
|
|
20498
|
+
queueId: {
|
|
20499
|
+
type: 'integer',
|
|
20500
|
+
description: 'ID of the queue to delete',
|
|
20501
|
+
},
|
|
20502
|
+
migrateToQueueId: {
|
|
20503
|
+
type: 'integer',
|
|
20504
|
+
description: 'Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1).',
|
|
20505
|
+
},
|
|
20506
|
+
},
|
|
20507
|
+
},
|
|
20508
|
+
},
|
|
20509
|
+
output: {
|
|
20510
|
+
encoding: 'application/json',
|
|
20511
|
+
schema: {
|
|
20512
|
+
type: 'object',
|
|
20513
|
+
required: ['deleted'],
|
|
20514
|
+
properties: {
|
|
20515
|
+
deleted: {
|
|
20516
|
+
type: 'boolean',
|
|
20517
|
+
},
|
|
20518
|
+
reportsMigrated: {
|
|
20519
|
+
type: 'integer',
|
|
20520
|
+
description: 'Number of reports that were migrated (if migration occurred)',
|
|
20521
|
+
},
|
|
20522
|
+
},
|
|
20523
|
+
},
|
|
20524
|
+
},
|
|
20306
20525
|
},
|
|
20307
|
-
|
|
20308
|
-
|
|
20309
|
-
|
|
20526
|
+
},
|
|
20527
|
+
},
|
|
20528
|
+
ToolsOzoneQueueGetAssignments: {
|
|
20529
|
+
lexicon: 1,
|
|
20530
|
+
id: 'tools.ozone.queue.getAssignments',
|
|
20531
|
+
defs: {
|
|
20532
|
+
main: {
|
|
20533
|
+
type: 'query',
|
|
20534
|
+
description: 'Get moderator assignments, optionally filtered by active status, queue, or moderator.',
|
|
20535
|
+
parameters: {
|
|
20536
|
+
type: 'params',
|
|
20537
|
+
properties: {
|
|
20538
|
+
onlyActive: {
|
|
20539
|
+
type: 'boolean',
|
|
20540
|
+
default: true,
|
|
20541
|
+
description: 'When true, only returns active assignments.',
|
|
20542
|
+
},
|
|
20543
|
+
queueIds: {
|
|
20544
|
+
type: 'array',
|
|
20545
|
+
items: {
|
|
20546
|
+
type: 'integer',
|
|
20547
|
+
},
|
|
20548
|
+
description: 'If specified, returns assignments for these queues only.',
|
|
20549
|
+
},
|
|
20550
|
+
dids: {
|
|
20551
|
+
type: 'array',
|
|
20552
|
+
items: {
|
|
20553
|
+
type: 'string',
|
|
20554
|
+
format: 'did',
|
|
20555
|
+
},
|
|
20556
|
+
description: 'If specified, returns assignments for these moderators only.',
|
|
20557
|
+
},
|
|
20558
|
+
limit: {
|
|
20559
|
+
type: 'integer',
|
|
20560
|
+
minimum: 1,
|
|
20561
|
+
maximum: 100,
|
|
20562
|
+
default: 50,
|
|
20563
|
+
},
|
|
20564
|
+
cursor: {
|
|
20565
|
+
type: 'string',
|
|
20566
|
+
},
|
|
20567
|
+
},
|
|
20568
|
+
},
|
|
20569
|
+
output: {
|
|
20570
|
+
encoding: 'application/json',
|
|
20571
|
+
schema: {
|
|
20572
|
+
type: 'object',
|
|
20573
|
+
required: ['assignments'],
|
|
20574
|
+
properties: {
|
|
20575
|
+
cursor: {
|
|
20576
|
+
type: 'string',
|
|
20577
|
+
},
|
|
20578
|
+
assignments: {
|
|
20579
|
+
type: 'array',
|
|
20580
|
+
items: {
|
|
20581
|
+
type: 'ref',
|
|
20582
|
+
ref: 'lex:tools.ozone.queue.defs#assignmentView',
|
|
20583
|
+
},
|
|
20584
|
+
},
|
|
20585
|
+
},
|
|
20586
|
+
},
|
|
20587
|
+
},
|
|
20310
20588
|
},
|
|
20311
|
-
|
|
20312
|
-
|
|
20313
|
-
|
|
20589
|
+
},
|
|
20590
|
+
},
|
|
20591
|
+
ToolsOzoneQueueListQueues: {
|
|
20592
|
+
lexicon: 1,
|
|
20593
|
+
id: 'tools.ozone.queue.listQueues',
|
|
20594
|
+
defs: {
|
|
20595
|
+
main: {
|
|
20596
|
+
type: 'query',
|
|
20597
|
+
description: 'List all configured moderation queues with statistics.',
|
|
20598
|
+
parameters: {
|
|
20599
|
+
type: 'params',
|
|
20600
|
+
properties: {
|
|
20601
|
+
enabled: {
|
|
20602
|
+
type: 'boolean',
|
|
20603
|
+
description: 'Filter by enabled status. If not specified, returns all queues.',
|
|
20604
|
+
},
|
|
20605
|
+
subjectType: {
|
|
20606
|
+
type: 'string',
|
|
20607
|
+
description: "Filter queues that handle this subject type ('account' or 'record').",
|
|
20608
|
+
},
|
|
20609
|
+
collection: {
|
|
20610
|
+
type: 'string',
|
|
20611
|
+
description: "Filter queues by collection name (e.g. 'app.bsky.feed.post').",
|
|
20612
|
+
},
|
|
20613
|
+
reportTypes: {
|
|
20614
|
+
type: 'array',
|
|
20615
|
+
items: {
|
|
20616
|
+
type: 'string',
|
|
20617
|
+
},
|
|
20618
|
+
maxLength: 10,
|
|
20619
|
+
description: 'Filter queues that handle any of these report reason types.',
|
|
20620
|
+
},
|
|
20621
|
+
limit: {
|
|
20622
|
+
type: 'integer',
|
|
20623
|
+
minimum: 1,
|
|
20624
|
+
maximum: 100,
|
|
20625
|
+
default: 50,
|
|
20626
|
+
},
|
|
20627
|
+
cursor: {
|
|
20628
|
+
type: 'string',
|
|
20629
|
+
},
|
|
20630
|
+
},
|
|
20631
|
+
},
|
|
20632
|
+
output: {
|
|
20633
|
+
encoding: 'application/json',
|
|
20634
|
+
schema: {
|
|
20635
|
+
type: 'object',
|
|
20636
|
+
required: ['queues'],
|
|
20637
|
+
properties: {
|
|
20638
|
+
cursor: {
|
|
20639
|
+
type: 'string',
|
|
20640
|
+
},
|
|
20641
|
+
queues: {
|
|
20642
|
+
type: 'array',
|
|
20643
|
+
items: {
|
|
20644
|
+
type: 'ref',
|
|
20645
|
+
ref: 'lex:tools.ozone.queue.defs#queueView',
|
|
20646
|
+
},
|
|
20647
|
+
},
|
|
20648
|
+
},
|
|
20649
|
+
},
|
|
20650
|
+
},
|
|
20314
20651
|
},
|
|
20315
|
-
|
|
20316
|
-
|
|
20317
|
-
|
|
20652
|
+
},
|
|
20653
|
+
},
|
|
20654
|
+
ToolsOzoneQueueRouteReports: {
|
|
20655
|
+
lexicon: 1,
|
|
20656
|
+
id: 'tools.ozone.queue.routeReports',
|
|
20657
|
+
defs: {
|
|
20658
|
+
main: {
|
|
20659
|
+
type: 'procedure',
|
|
20660
|
+
description: 'Route reports within an ID range to matching queues based.',
|
|
20661
|
+
input: {
|
|
20662
|
+
encoding: 'application/json',
|
|
20663
|
+
schema: {
|
|
20664
|
+
type: 'object',
|
|
20665
|
+
required: ['startReportId', 'endReportId'],
|
|
20666
|
+
properties: {
|
|
20667
|
+
startReportId: {
|
|
20668
|
+
type: 'integer',
|
|
20669
|
+
description: 'Start of report ID range (inclusive).',
|
|
20670
|
+
},
|
|
20671
|
+
endReportId: {
|
|
20672
|
+
type: 'integer',
|
|
20673
|
+
description: 'End of report ID range (inclusive). Difference between start and end must be less than 5,000.',
|
|
20674
|
+
},
|
|
20675
|
+
},
|
|
20676
|
+
},
|
|
20677
|
+
},
|
|
20678
|
+
output: {
|
|
20679
|
+
encoding: 'application/json',
|
|
20680
|
+
schema: {
|
|
20681
|
+
type: 'object',
|
|
20682
|
+
required: ['assigned', 'unmatched'],
|
|
20683
|
+
properties: {
|
|
20684
|
+
assigned: {
|
|
20685
|
+
type: 'integer',
|
|
20686
|
+
description: 'The number of reports assigned to a queue.',
|
|
20687
|
+
},
|
|
20688
|
+
unmatched: {
|
|
20689
|
+
type: 'integer',
|
|
20690
|
+
description: 'The number of reports with no matching queue.',
|
|
20691
|
+
},
|
|
20692
|
+
},
|
|
20693
|
+
},
|
|
20694
|
+
},
|
|
20695
|
+
errors: [
|
|
20696
|
+
{
|
|
20697
|
+
name: 'OutOfRange',
|
|
20698
|
+
description: 'The request is invalid, such as missing required fields or invalid field values.',
|
|
20699
|
+
},
|
|
20700
|
+
],
|
|
20318
20701
|
},
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
|
|
20702
|
+
},
|
|
20703
|
+
},
|
|
20704
|
+
ToolsOzoneQueueUnassignModerator: {
|
|
20705
|
+
lexicon: 1,
|
|
20706
|
+
id: 'tools.ozone.queue.unassignModerator',
|
|
20707
|
+
defs: {
|
|
20708
|
+
main: {
|
|
20709
|
+
type: 'procedure',
|
|
20710
|
+
description: "Remove a user's assignment from a queue.",
|
|
20711
|
+
input: {
|
|
20712
|
+
encoding: 'application/json',
|
|
20713
|
+
schema: {
|
|
20714
|
+
type: 'object',
|
|
20715
|
+
required: ['queueId', 'did'],
|
|
20716
|
+
properties: {
|
|
20717
|
+
queueId: {
|
|
20718
|
+
type: 'integer',
|
|
20719
|
+
description: 'The ID of the queue to unassign the user from.',
|
|
20720
|
+
},
|
|
20721
|
+
did: {
|
|
20722
|
+
type: 'string',
|
|
20723
|
+
format: 'did',
|
|
20724
|
+
description: 'DID to be unassigned.',
|
|
20725
|
+
},
|
|
20726
|
+
},
|
|
20727
|
+
},
|
|
20728
|
+
},
|
|
20729
|
+
errors: [
|
|
20730
|
+
{
|
|
20731
|
+
name: 'InvalidAssignment',
|
|
20732
|
+
description: 'No active assignment exists for the given queue and user.',
|
|
20733
|
+
},
|
|
20734
|
+
],
|
|
20322
20735
|
},
|
|
20323
|
-
|
|
20324
|
-
|
|
20736
|
+
},
|
|
20737
|
+
},
|
|
20738
|
+
ToolsOzoneQueueUpdateQueue: {
|
|
20739
|
+
lexicon: 1,
|
|
20740
|
+
id: 'tools.ozone.queue.updateQueue',
|
|
20741
|
+
defs: {
|
|
20742
|
+
main: {
|
|
20743
|
+
type: 'procedure',
|
|
20744
|
+
description: 'Update queue properties. Currently only supports updating the name and enabled status to prevent configuration conflicts.',
|
|
20745
|
+
input: {
|
|
20746
|
+
encoding: 'application/json',
|
|
20747
|
+
schema: {
|
|
20748
|
+
type: 'object',
|
|
20749
|
+
required: ['queueId'],
|
|
20750
|
+
properties: {
|
|
20751
|
+
queueId: {
|
|
20752
|
+
type: 'integer',
|
|
20753
|
+
description: 'ID of the queue to update',
|
|
20754
|
+
},
|
|
20755
|
+
name: {
|
|
20756
|
+
type: 'string',
|
|
20757
|
+
description: 'New display name for the queue',
|
|
20758
|
+
},
|
|
20759
|
+
enabled: {
|
|
20760
|
+
type: 'boolean',
|
|
20761
|
+
description: 'Enable or disable the queue',
|
|
20762
|
+
},
|
|
20763
|
+
description: {
|
|
20764
|
+
type: 'string',
|
|
20765
|
+
description: 'Optional description of the queue',
|
|
20766
|
+
},
|
|
20767
|
+
},
|
|
20768
|
+
},
|
|
20769
|
+
},
|
|
20770
|
+
output: {
|
|
20771
|
+
encoding: 'application/json',
|
|
20772
|
+
schema: {
|
|
20773
|
+
type: 'object',
|
|
20774
|
+
required: ['queue'],
|
|
20775
|
+
properties: {
|
|
20776
|
+
queue: {
|
|
20777
|
+
type: 'ref',
|
|
20778
|
+
ref: 'lex:tools.ozone.queue.defs#queueView',
|
|
20779
|
+
},
|
|
20780
|
+
},
|
|
20781
|
+
},
|
|
20782
|
+
},
|
|
20783
|
+
},
|
|
20784
|
+
},
|
|
20785
|
+
},
|
|
20786
|
+
ToolsOzoneReportAssignModerator: {
|
|
20787
|
+
lexicon: 1,
|
|
20788
|
+
id: 'tools.ozone.report.assignModerator',
|
|
20789
|
+
defs: {
|
|
20790
|
+
main: {
|
|
20791
|
+
type: 'procedure',
|
|
20792
|
+
description: 'Assign a report to a user. Defaults to the caller. Admins may assign to any moderator.',
|
|
20793
|
+
input: {
|
|
20794
|
+
encoding: 'application/json',
|
|
20795
|
+
schema: {
|
|
20796
|
+
type: 'object',
|
|
20797
|
+
required: ['reportId'],
|
|
20798
|
+
properties: {
|
|
20799
|
+
reportId: {
|
|
20800
|
+
type: 'integer',
|
|
20801
|
+
description: 'The ID of the report to assign.',
|
|
20802
|
+
},
|
|
20803
|
+
queueId: {
|
|
20804
|
+
type: 'integer',
|
|
20805
|
+
description: 'Optional queue ID to associate the assignment with. If not provided and the report has been assigned on a queue before, it will stay on that queue.',
|
|
20806
|
+
},
|
|
20807
|
+
did: {
|
|
20808
|
+
type: 'string',
|
|
20809
|
+
format: 'did',
|
|
20810
|
+
description: "DID to be assigned. Defaults to the caller's DID. Admins may assign to any moderator.",
|
|
20811
|
+
},
|
|
20812
|
+
isPermanent: {
|
|
20813
|
+
type: 'boolean',
|
|
20814
|
+
description: 'When true, the assignment has no expiry (endAt is null). Throws AlreadyAssigned if another user already has a permanent assignment on this report.',
|
|
20815
|
+
},
|
|
20816
|
+
},
|
|
20817
|
+
},
|
|
20818
|
+
},
|
|
20819
|
+
output: {
|
|
20820
|
+
encoding: 'application/json',
|
|
20821
|
+
schema: {
|
|
20822
|
+
type: 'ref',
|
|
20823
|
+
ref: 'lex:tools.ozone.report.defs#assignmentView',
|
|
20824
|
+
},
|
|
20825
|
+
},
|
|
20826
|
+
errors: [
|
|
20827
|
+
{
|
|
20828
|
+
name: 'AlreadyAssigned',
|
|
20829
|
+
description: 'The report is already assigned to another user.',
|
|
20830
|
+
},
|
|
20831
|
+
{
|
|
20832
|
+
name: 'InvalidAssignment',
|
|
20833
|
+
description: 'The report ID or queue ID is invalid.',
|
|
20834
|
+
},
|
|
20835
|
+
],
|
|
20836
|
+
},
|
|
20837
|
+
},
|
|
20838
|
+
},
|
|
20839
|
+
ToolsOzoneReportCreateActivity: {
|
|
20840
|
+
lexicon: 1,
|
|
20841
|
+
id: 'tools.ozone.report.createActivity',
|
|
20842
|
+
defs: {
|
|
20843
|
+
main: {
|
|
20844
|
+
type: 'procedure',
|
|
20845
|
+
description: 'Register an activity on a report. For state-change activity types, validates the transition and updates report.status atomically.',
|
|
20846
|
+
input: {
|
|
20847
|
+
encoding: 'application/json',
|
|
20848
|
+
schema: {
|
|
20849
|
+
type: 'object',
|
|
20850
|
+
required: ['reportId', 'activity'],
|
|
20851
|
+
properties: {
|
|
20852
|
+
reportId: {
|
|
20853
|
+
type: 'integer',
|
|
20854
|
+
description: 'ID of the report to record activity on',
|
|
20855
|
+
},
|
|
20856
|
+
activity: {
|
|
20857
|
+
type: 'union',
|
|
20858
|
+
refs: [
|
|
20859
|
+
'lex:tools.ozone.report.defs#queueActivity',
|
|
20860
|
+
'lex:tools.ozone.report.defs#assignmentActivity',
|
|
20861
|
+
'lex:tools.ozone.report.defs#escalationActivity',
|
|
20862
|
+
'lex:tools.ozone.report.defs#closeActivity',
|
|
20863
|
+
'lex:tools.ozone.report.defs#reopenActivity',
|
|
20864
|
+
'lex:tools.ozone.report.defs#noteActivity',
|
|
20865
|
+
],
|
|
20866
|
+
description: 'The type of activity to record.',
|
|
20867
|
+
},
|
|
20868
|
+
internalNote: {
|
|
20869
|
+
type: 'string',
|
|
20870
|
+
description: 'Optional moderator-only note. Not visible to reporters.',
|
|
20871
|
+
},
|
|
20872
|
+
publicNote: {
|
|
20873
|
+
type: 'string',
|
|
20874
|
+
description: 'Optional public-facing note, potentially visible to the reporter.',
|
|
20875
|
+
},
|
|
20876
|
+
isAutomated: {
|
|
20877
|
+
type: 'boolean',
|
|
20878
|
+
description: 'Set true when this activity is triggered by an automated process. Defaults to false.',
|
|
20879
|
+
default: false,
|
|
20880
|
+
},
|
|
20881
|
+
},
|
|
20882
|
+
},
|
|
20883
|
+
},
|
|
20884
|
+
output: {
|
|
20885
|
+
encoding: 'application/json',
|
|
20886
|
+
schema: {
|
|
20887
|
+
type: 'object',
|
|
20888
|
+
required: ['activity'],
|
|
20889
|
+
properties: {
|
|
20890
|
+
activity: {
|
|
20891
|
+
type: 'ref',
|
|
20892
|
+
ref: 'lex:tools.ozone.report.defs#reportActivityView',
|
|
20893
|
+
},
|
|
20894
|
+
},
|
|
20895
|
+
},
|
|
20896
|
+
},
|
|
20897
|
+
errors: [
|
|
20898
|
+
{
|
|
20899
|
+
name: 'ReportNotFound',
|
|
20900
|
+
description: 'No report exists with the given reportId',
|
|
20901
|
+
},
|
|
20902
|
+
{
|
|
20903
|
+
name: 'InvalidStateTransition',
|
|
20904
|
+
description: "The requested state transition is not permitted from the report's current status",
|
|
20905
|
+
},
|
|
20906
|
+
{
|
|
20907
|
+
name: 'AlreadyInTargetState',
|
|
20908
|
+
description: 'The report is already in the status implied by this activity type',
|
|
20909
|
+
},
|
|
20910
|
+
],
|
|
20911
|
+
},
|
|
20912
|
+
},
|
|
20913
|
+
},
|
|
20914
|
+
ToolsOzoneReportDefs: {
|
|
20915
|
+
lexicon: 1,
|
|
20916
|
+
id: 'tools.ozone.report.defs',
|
|
20917
|
+
defs: {
|
|
20918
|
+
reasonType: {
|
|
20919
|
+
type: 'string',
|
|
20920
|
+
knownValues: [
|
|
20921
|
+
'tools.ozone.report.defs#reasonAppeal',
|
|
20922
|
+
'tools.ozone.report.defs#reasonOther',
|
|
20923
|
+
'tools.ozone.report.defs#reasonViolenceAnimal',
|
|
20924
|
+
'tools.ozone.report.defs#reasonViolenceThreats',
|
|
20925
|
+
'tools.ozone.report.defs#reasonViolenceGraphicContent',
|
|
20926
|
+
'tools.ozone.report.defs#reasonViolenceGlorification',
|
|
20927
|
+
'tools.ozone.report.defs#reasonViolenceExtremistContent',
|
|
20928
|
+
'tools.ozone.report.defs#reasonViolenceTrafficking',
|
|
20929
|
+
'tools.ozone.report.defs#reasonViolenceOther',
|
|
20930
|
+
'tools.ozone.report.defs#reasonSexualAbuseContent',
|
|
20931
|
+
'tools.ozone.report.defs#reasonSexualNCII',
|
|
20932
|
+
'tools.ozone.report.defs#reasonSexualDeepfake',
|
|
20933
|
+
'tools.ozone.report.defs#reasonSexualAnimal',
|
|
20934
|
+
'tools.ozone.report.defs#reasonSexualUnlabeled',
|
|
20935
|
+
'tools.ozone.report.defs#reasonSexualOther',
|
|
20936
|
+
'tools.ozone.report.defs#reasonChildSafetyCSAM',
|
|
20937
|
+
'tools.ozone.report.defs#reasonChildSafetyGroom',
|
|
20938
|
+
'tools.ozone.report.defs#reasonChildSafetyPrivacy',
|
|
20939
|
+
'tools.ozone.report.defs#reasonChildSafetyHarassment',
|
|
20940
|
+
'tools.ozone.report.defs#reasonChildSafetyOther',
|
|
20941
|
+
'tools.ozone.report.defs#reasonHarassmentTroll',
|
|
20942
|
+
'tools.ozone.report.defs#reasonHarassmentTargeted',
|
|
20943
|
+
'tools.ozone.report.defs#reasonHarassmentHateSpeech',
|
|
20944
|
+
'tools.ozone.report.defs#reasonHarassmentDoxxing',
|
|
20945
|
+
'tools.ozone.report.defs#reasonHarassmentOther',
|
|
20946
|
+
'tools.ozone.report.defs#reasonMisleadingBot',
|
|
20947
|
+
'tools.ozone.report.defs#reasonMisleadingImpersonation',
|
|
20948
|
+
'tools.ozone.report.defs#reasonMisleadingSpam',
|
|
20949
|
+
'tools.ozone.report.defs#reasonMisleadingScam',
|
|
20950
|
+
'tools.ozone.report.defs#reasonMisleadingElections',
|
|
20951
|
+
'tools.ozone.report.defs#reasonMisleadingOther',
|
|
20952
|
+
'tools.ozone.report.defs#reasonRuleSiteSecurity',
|
|
20953
|
+
'tools.ozone.report.defs#reasonRuleProhibitedSales',
|
|
20954
|
+
'tools.ozone.report.defs#reasonRuleBanEvasion',
|
|
20955
|
+
'tools.ozone.report.defs#reasonRuleOther',
|
|
20956
|
+
'tools.ozone.report.defs#reasonSelfHarmContent',
|
|
20957
|
+
'tools.ozone.report.defs#reasonSelfHarmED',
|
|
20958
|
+
'tools.ozone.report.defs#reasonSelfHarmStunts',
|
|
20959
|
+
'tools.ozone.report.defs#reasonSelfHarmSubstances',
|
|
20960
|
+
'tools.ozone.report.defs#reasonSelfHarmOther',
|
|
20961
|
+
],
|
|
20962
|
+
},
|
|
20963
|
+
reasonAppeal: {
|
|
20964
|
+
type: 'token',
|
|
20965
|
+
description: 'Appeal a previously taken moderation action',
|
|
20966
|
+
},
|
|
20967
|
+
reasonOther: {
|
|
20968
|
+
type: 'token',
|
|
20969
|
+
description: 'An issue not included in these options',
|
|
20970
|
+
},
|
|
20971
|
+
reasonViolenceAnimal: {
|
|
20972
|
+
type: 'token',
|
|
20973
|
+
description: 'Animal welfare violations',
|
|
20974
|
+
},
|
|
20975
|
+
reasonViolenceThreats: {
|
|
20976
|
+
type: 'token',
|
|
20977
|
+
description: 'Threats or incitement',
|
|
20978
|
+
},
|
|
20979
|
+
reasonViolenceGraphicContent: {
|
|
20980
|
+
type: 'token',
|
|
20981
|
+
description: 'Graphic violent content',
|
|
20982
|
+
},
|
|
20983
|
+
reasonViolenceGlorification: {
|
|
20984
|
+
type: 'token',
|
|
20985
|
+
description: 'Glorification of violence',
|
|
20986
|
+
},
|
|
20987
|
+
reasonViolenceExtremistContent: {
|
|
20988
|
+
type: 'token',
|
|
20989
|
+
description: "Extremist content. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
20990
|
+
},
|
|
20991
|
+
reasonViolenceTrafficking: {
|
|
20992
|
+
type: 'token',
|
|
20993
|
+
description: 'Human trafficking',
|
|
20994
|
+
},
|
|
20995
|
+
reasonViolenceOther: {
|
|
20996
|
+
type: 'token',
|
|
20997
|
+
description: 'Other violent content',
|
|
20998
|
+
},
|
|
20999
|
+
reasonSexualAbuseContent: {
|
|
21000
|
+
type: 'token',
|
|
21001
|
+
description: 'Adult sexual abuse content',
|
|
21002
|
+
},
|
|
21003
|
+
reasonSexualNCII: {
|
|
21004
|
+
type: 'token',
|
|
21005
|
+
description: 'Non-consensual intimate imagery',
|
|
21006
|
+
},
|
|
21007
|
+
reasonSexualDeepfake: {
|
|
21008
|
+
type: 'token',
|
|
21009
|
+
description: 'Deepfake adult content',
|
|
21010
|
+
},
|
|
21011
|
+
reasonSexualAnimal: {
|
|
21012
|
+
type: 'token',
|
|
21013
|
+
description: 'Animal sexual abuse',
|
|
21014
|
+
},
|
|
21015
|
+
reasonSexualUnlabeled: {
|
|
21016
|
+
type: 'token',
|
|
21017
|
+
description: 'Unlabelled adult content',
|
|
21018
|
+
},
|
|
21019
|
+
reasonSexualOther: {
|
|
21020
|
+
type: 'token',
|
|
21021
|
+
description: 'Other sexual violence content',
|
|
21022
|
+
},
|
|
21023
|
+
reasonChildSafetyCSAM: {
|
|
21024
|
+
type: 'token',
|
|
21025
|
+
description: "Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority.",
|
|
21026
|
+
},
|
|
21027
|
+
reasonChildSafetyGroom: {
|
|
21028
|
+
type: 'token',
|
|
21029
|
+
description: "Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
21030
|
+
},
|
|
21031
|
+
reasonChildSafetyPrivacy: {
|
|
21032
|
+
type: 'token',
|
|
21033
|
+
description: 'Privacy violation involving a minor',
|
|
21034
|
+
},
|
|
21035
|
+
reasonChildSafetyHarassment: {
|
|
21036
|
+
type: 'token',
|
|
21037
|
+
description: 'Harassment or bullying of minors',
|
|
21038
|
+
},
|
|
21039
|
+
reasonChildSafetyOther: {
|
|
21040
|
+
type: 'token',
|
|
21041
|
+
description: "Other child safety. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
21042
|
+
},
|
|
21043
|
+
reasonHarassmentTroll: {
|
|
21044
|
+
type: 'token',
|
|
21045
|
+
description: 'Trolling',
|
|
21046
|
+
},
|
|
21047
|
+
reasonHarassmentTargeted: {
|
|
21048
|
+
type: 'token',
|
|
20325
21049
|
description: 'Targeted harassment',
|
|
20326
21050
|
},
|
|
20327
21051
|
reasonHarassmentHateSpeech: {
|
|
@@ -20396,6 +21120,928 @@ exports.schemaDict = {
|
|
|
20396
21120
|
type: 'token',
|
|
20397
21121
|
description: 'Other dangerous content',
|
|
20398
21122
|
},
|
|
21123
|
+
reportAssignment: {
|
|
21124
|
+
type: 'object',
|
|
21125
|
+
description: 'Information about the moderator currently assigned to a report.',
|
|
21126
|
+
required: ['did', 'assignedAt'],
|
|
21127
|
+
properties: {
|
|
21128
|
+
did: {
|
|
21129
|
+
type: 'string',
|
|
21130
|
+
format: 'did',
|
|
21131
|
+
description: 'DID of the assigned moderator',
|
|
21132
|
+
},
|
|
21133
|
+
moderator: {
|
|
21134
|
+
type: 'ref',
|
|
21135
|
+
ref: 'lex:tools.ozone.team.defs#member',
|
|
21136
|
+
description: 'Full member record of the assigned moderator',
|
|
21137
|
+
},
|
|
21138
|
+
assignedAt: {
|
|
21139
|
+
type: 'string',
|
|
21140
|
+
format: 'datetime',
|
|
21141
|
+
description: 'When the report was assigned',
|
|
21142
|
+
},
|
|
21143
|
+
},
|
|
21144
|
+
},
|
|
21145
|
+
reportView: {
|
|
21146
|
+
type: 'object',
|
|
21147
|
+
required: [
|
|
21148
|
+
'id',
|
|
21149
|
+
'eventId',
|
|
21150
|
+
'status',
|
|
21151
|
+
'subject',
|
|
21152
|
+
'reportType',
|
|
21153
|
+
'reportedBy',
|
|
21154
|
+
'reporter',
|
|
21155
|
+
'createdAt',
|
|
21156
|
+
],
|
|
21157
|
+
properties: {
|
|
21158
|
+
id: {
|
|
21159
|
+
type: 'integer',
|
|
21160
|
+
description: 'Report ID',
|
|
21161
|
+
},
|
|
21162
|
+
eventId: {
|
|
21163
|
+
type: 'integer',
|
|
21164
|
+
description: 'ID of the moderation event that created this report',
|
|
21165
|
+
},
|
|
21166
|
+
status: {
|
|
21167
|
+
type: 'string',
|
|
21168
|
+
knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned'],
|
|
21169
|
+
description: 'Current status of the report',
|
|
21170
|
+
},
|
|
21171
|
+
subject: {
|
|
21172
|
+
type: 'ref',
|
|
21173
|
+
ref: 'lex:tools.ozone.moderation.defs#subjectView',
|
|
21174
|
+
description: 'The subject that was reported with full details',
|
|
21175
|
+
},
|
|
21176
|
+
reportType: {
|
|
21177
|
+
type: 'ref',
|
|
21178
|
+
ref: 'lex:com.atproto.moderation.defs#reasonType',
|
|
21179
|
+
description: 'Type of report',
|
|
21180
|
+
},
|
|
21181
|
+
reportedBy: {
|
|
21182
|
+
type: 'string',
|
|
21183
|
+
format: 'did',
|
|
21184
|
+
description: 'DID of the user who made the report',
|
|
21185
|
+
},
|
|
21186
|
+
reporter: {
|
|
21187
|
+
type: 'ref',
|
|
21188
|
+
ref: 'lex:tools.ozone.moderation.defs#subjectView',
|
|
21189
|
+
description: 'Full subject view of the reporter account',
|
|
21190
|
+
},
|
|
21191
|
+
comment: {
|
|
21192
|
+
type: 'string',
|
|
21193
|
+
description: 'Comment provided by the reporter',
|
|
21194
|
+
},
|
|
21195
|
+
createdAt: {
|
|
21196
|
+
type: 'string',
|
|
21197
|
+
format: 'datetime',
|
|
21198
|
+
description: 'When the report was created',
|
|
21199
|
+
},
|
|
21200
|
+
updatedAt: {
|
|
21201
|
+
type: 'string',
|
|
21202
|
+
format: 'datetime',
|
|
21203
|
+
description: 'When the report was last updated',
|
|
21204
|
+
},
|
|
21205
|
+
queuedAt: {
|
|
21206
|
+
type: 'string',
|
|
21207
|
+
format: 'datetime',
|
|
21208
|
+
description: 'When the report was assigned to its current queue',
|
|
21209
|
+
},
|
|
21210
|
+
actionEventIds: {
|
|
21211
|
+
type: 'array',
|
|
21212
|
+
items: {
|
|
21213
|
+
type: 'integer',
|
|
21214
|
+
},
|
|
21215
|
+
description: 'Array of moderation event IDs representing actions taken on this report (sorted DESC, most recent first)',
|
|
21216
|
+
},
|
|
21217
|
+
actions: {
|
|
21218
|
+
type: 'array',
|
|
21219
|
+
items: {
|
|
21220
|
+
type: 'ref',
|
|
21221
|
+
ref: 'lex:tools.ozone.moderation.defs#modEventView',
|
|
21222
|
+
},
|
|
21223
|
+
description: 'Optional: expanded action events',
|
|
21224
|
+
},
|
|
21225
|
+
actionNote: {
|
|
21226
|
+
type: 'string',
|
|
21227
|
+
description: 'Note sent to reporter when report was actioned',
|
|
21228
|
+
},
|
|
21229
|
+
subjectStatus: {
|
|
21230
|
+
type: 'ref',
|
|
21231
|
+
ref: 'lex:tools.ozone.moderation.defs#subjectStatusView',
|
|
21232
|
+
description: 'Current status of the reported subject',
|
|
21233
|
+
},
|
|
21234
|
+
relatedReportCount: {
|
|
21235
|
+
type: 'integer',
|
|
21236
|
+
description: 'Number of other pending reports on the same subject',
|
|
21237
|
+
},
|
|
21238
|
+
assignment: {
|
|
21239
|
+
type: 'ref',
|
|
21240
|
+
ref: 'lex:tools.ozone.report.defs#reportAssignment',
|
|
21241
|
+
description: 'Information about moderator currently assigned to this report (if any)',
|
|
21242
|
+
},
|
|
21243
|
+
queue: {
|
|
21244
|
+
type: 'ref',
|
|
21245
|
+
ref: 'lex:tools.ozone.queue.defs#queueView',
|
|
21246
|
+
description: 'The queue this report is assigned to (if any)',
|
|
21247
|
+
},
|
|
21248
|
+
isMuted: {
|
|
21249
|
+
type: 'boolean',
|
|
21250
|
+
description: 'Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created.',
|
|
21251
|
+
},
|
|
21252
|
+
},
|
|
21253
|
+
},
|
|
21254
|
+
queueActivity: {
|
|
21255
|
+
type: 'object',
|
|
21256
|
+
description: 'Activity recording a report being routed to a queue.',
|
|
21257
|
+
properties: {
|
|
21258
|
+
previousStatus: {
|
|
21259
|
+
type: 'string',
|
|
21260
|
+
knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned'],
|
|
21261
|
+
description: "The report's status before this activity. Populated automatically from the report row; not required in input.",
|
|
21262
|
+
},
|
|
21263
|
+
},
|
|
21264
|
+
},
|
|
21265
|
+
assignmentActivity: {
|
|
21266
|
+
type: 'object',
|
|
21267
|
+
description: 'Activity recording a moderator being assigned to a report.',
|
|
21268
|
+
properties: {
|
|
21269
|
+
previousStatus: {
|
|
21270
|
+
type: 'string',
|
|
21271
|
+
knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned'],
|
|
21272
|
+
description: "The report's status before this activity. Populated automatically from the report row; not required in input.",
|
|
21273
|
+
},
|
|
21274
|
+
},
|
|
21275
|
+
},
|
|
21276
|
+
escalationActivity: {
|
|
21277
|
+
type: 'object',
|
|
21278
|
+
description: 'Activity recording a report being escalated.',
|
|
21279
|
+
properties: {
|
|
21280
|
+
previousStatus: {
|
|
21281
|
+
type: 'string',
|
|
21282
|
+
knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned'],
|
|
21283
|
+
description: "The report's status before this activity. Populated automatically from the report row; not required in input.",
|
|
21284
|
+
},
|
|
21285
|
+
},
|
|
21286
|
+
},
|
|
21287
|
+
closeActivity: {
|
|
21288
|
+
type: 'object',
|
|
21289
|
+
description: 'Activity recording a report being closed.',
|
|
21290
|
+
properties: {
|
|
21291
|
+
previousStatus: {
|
|
21292
|
+
type: 'string',
|
|
21293
|
+
knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned'],
|
|
21294
|
+
description: "The report's status before this activity. Populated automatically from the report row; not required in input.",
|
|
21295
|
+
},
|
|
21296
|
+
},
|
|
21297
|
+
},
|
|
21298
|
+
reopenActivity: {
|
|
21299
|
+
type: 'object',
|
|
21300
|
+
description: "Activity recording a closed report being reopened. Only valid when the report is in 'closed' status.",
|
|
21301
|
+
properties: {
|
|
21302
|
+
previousStatus: {
|
|
21303
|
+
type: 'string',
|
|
21304
|
+
knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned'],
|
|
21305
|
+
description: "The report's status before this activity. Populated automatically from the report row; not required in input.",
|
|
21306
|
+
},
|
|
21307
|
+
},
|
|
21308
|
+
},
|
|
21309
|
+
noteActivity: {
|
|
21310
|
+
type: 'object',
|
|
21311
|
+
description: 'Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both).',
|
|
21312
|
+
properties: {},
|
|
21313
|
+
},
|
|
21314
|
+
reportActivityView: {
|
|
21315
|
+
type: 'object',
|
|
21316
|
+
description: 'A single activity entry on a report.',
|
|
21317
|
+
required: [
|
|
21318
|
+
'id',
|
|
21319
|
+
'reportId',
|
|
21320
|
+
'activity',
|
|
21321
|
+
'isAutomated',
|
|
21322
|
+
'createdBy',
|
|
21323
|
+
'createdAt',
|
|
21324
|
+
],
|
|
21325
|
+
properties: {
|
|
21326
|
+
id: {
|
|
21327
|
+
type: 'integer',
|
|
21328
|
+
description: 'Activity ID',
|
|
21329
|
+
},
|
|
21330
|
+
reportId: {
|
|
21331
|
+
type: 'integer',
|
|
21332
|
+
description: 'ID of the report this activity belongs to',
|
|
21333
|
+
},
|
|
21334
|
+
activity: {
|
|
21335
|
+
type: 'union',
|
|
21336
|
+
refs: [
|
|
21337
|
+
'lex:tools.ozone.report.defs#queueActivity',
|
|
21338
|
+
'lex:tools.ozone.report.defs#assignmentActivity',
|
|
21339
|
+
'lex:tools.ozone.report.defs#escalationActivity',
|
|
21340
|
+
'lex:tools.ozone.report.defs#closeActivity',
|
|
21341
|
+
'lex:tools.ozone.report.defs#reopenActivity',
|
|
21342
|
+
'lex:tools.ozone.report.defs#noteActivity',
|
|
21343
|
+
],
|
|
21344
|
+
description: 'The typed activity object describing what occurred.',
|
|
21345
|
+
},
|
|
21346
|
+
internalNote: {
|
|
21347
|
+
type: 'string',
|
|
21348
|
+
description: 'Optional moderator-only note. Not visible to reporters.',
|
|
21349
|
+
},
|
|
21350
|
+
publicNote: {
|
|
21351
|
+
type: 'string',
|
|
21352
|
+
description: 'Optional public note, potentially visible to the reporter.',
|
|
21353
|
+
},
|
|
21354
|
+
meta: {
|
|
21355
|
+
type: 'unknown',
|
|
21356
|
+
description: 'Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId).',
|
|
21357
|
+
},
|
|
21358
|
+
isAutomated: {
|
|
21359
|
+
type: 'boolean',
|
|
21360
|
+
description: 'True if this activity was created by an automated process (e.g. queue router) rather than a direct human action.',
|
|
21361
|
+
},
|
|
21362
|
+
createdBy: {
|
|
21363
|
+
type: 'string',
|
|
21364
|
+
format: 'did',
|
|
21365
|
+
description: 'DID of the actor who created this activity, or the service DID for automated activities.',
|
|
21366
|
+
},
|
|
21367
|
+
moderator: {
|
|
21368
|
+
type: 'ref',
|
|
21369
|
+
ref: 'lex:tools.ozone.team.defs#member',
|
|
21370
|
+
description: 'Full member record of the moderator who created this activity',
|
|
21371
|
+
},
|
|
21372
|
+
createdAt: {
|
|
21373
|
+
type: 'string',
|
|
21374
|
+
format: 'datetime',
|
|
21375
|
+
description: 'When this activity was created',
|
|
21376
|
+
},
|
|
21377
|
+
},
|
|
21378
|
+
},
|
|
21379
|
+
liveStats: {
|
|
21380
|
+
description: 'Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type.',
|
|
21381
|
+
type: 'object',
|
|
21382
|
+
properties: {
|
|
21383
|
+
pendingCount: {
|
|
21384
|
+
type: 'integer',
|
|
21385
|
+
description: 'Number of reports currently not closed.',
|
|
21386
|
+
},
|
|
21387
|
+
actionedCount: {
|
|
21388
|
+
type: 'integer',
|
|
21389
|
+
description: 'Number of reports closed today.',
|
|
21390
|
+
},
|
|
21391
|
+
escalatedCount: {
|
|
21392
|
+
type: 'integer',
|
|
21393
|
+
description: 'Number of reports escalated today.',
|
|
21394
|
+
},
|
|
21395
|
+
inboundCount: {
|
|
21396
|
+
type: 'integer',
|
|
21397
|
+
description: 'Reports received today.',
|
|
21398
|
+
},
|
|
21399
|
+
actionRate: {
|
|
21400
|
+
type: 'integer',
|
|
21401
|
+
description: 'Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer.',
|
|
21402
|
+
},
|
|
21403
|
+
avgHandlingTimeSec: {
|
|
21404
|
+
type: 'integer',
|
|
21405
|
+
description: 'Average time in seconds from report creation (or moderator assignment) to close.',
|
|
21406
|
+
},
|
|
21407
|
+
lastUpdated: {
|
|
21408
|
+
type: 'string',
|
|
21409
|
+
format: 'datetime',
|
|
21410
|
+
description: 'When these statistics were last computed.',
|
|
21411
|
+
},
|
|
21412
|
+
},
|
|
21413
|
+
},
|
|
21414
|
+
historicalStats: {
|
|
21415
|
+
description: 'A single daily snapshot of report statistics for a calendar date.',
|
|
21416
|
+
type: 'object',
|
|
21417
|
+
required: ['date'],
|
|
21418
|
+
properties: {
|
|
21419
|
+
date: {
|
|
21420
|
+
type: 'string',
|
|
21421
|
+
description: 'The calendar date this snapshot covers (YYYY-MM-DD).',
|
|
21422
|
+
},
|
|
21423
|
+
computedAt: {
|
|
21424
|
+
type: 'string',
|
|
21425
|
+
format: 'datetime',
|
|
21426
|
+
description: 'When this snapshot was last computed.',
|
|
21427
|
+
},
|
|
21428
|
+
pendingCount: {
|
|
21429
|
+
type: 'integer',
|
|
21430
|
+
description: 'Number of reports not closed at time of computation.',
|
|
21431
|
+
},
|
|
21432
|
+
actionedCount: {
|
|
21433
|
+
type: 'integer',
|
|
21434
|
+
description: 'Number of reports closed during this day.',
|
|
21435
|
+
},
|
|
21436
|
+
escalatedCount: {
|
|
21437
|
+
type: 'integer',
|
|
21438
|
+
description: 'Number of reports escalated during this day.',
|
|
21439
|
+
},
|
|
21440
|
+
inboundCount: {
|
|
21441
|
+
type: 'integer',
|
|
21442
|
+
description: 'Reports received during this day.',
|
|
21443
|
+
},
|
|
21444
|
+
actionRate: {
|
|
21445
|
+
type: 'integer',
|
|
21446
|
+
description: 'Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer.',
|
|
21447
|
+
},
|
|
21448
|
+
avgHandlingTimeSec: {
|
|
21449
|
+
type: 'integer',
|
|
21450
|
+
description: 'Average time in seconds from report creation (or moderator assignment) to close.',
|
|
21451
|
+
},
|
|
21452
|
+
},
|
|
21453
|
+
},
|
|
21454
|
+
assignmentView: {
|
|
21455
|
+
type: 'object',
|
|
21456
|
+
required: ['id', 'did', 'reportId', 'startAt'],
|
|
21457
|
+
properties: {
|
|
21458
|
+
id: {
|
|
21459
|
+
type: 'integer',
|
|
21460
|
+
},
|
|
21461
|
+
did: {
|
|
21462
|
+
type: 'string',
|
|
21463
|
+
format: 'did',
|
|
21464
|
+
},
|
|
21465
|
+
moderator: {
|
|
21466
|
+
type: 'ref',
|
|
21467
|
+
ref: 'lex:tools.ozone.team.defs#member',
|
|
21468
|
+
description: 'The moderator assigned to this report',
|
|
21469
|
+
},
|
|
21470
|
+
queue: {
|
|
21471
|
+
type: 'ref',
|
|
21472
|
+
ref: 'lex:tools.ozone.queue.defs#queueView',
|
|
21473
|
+
},
|
|
21474
|
+
reportId: {
|
|
21475
|
+
type: 'integer',
|
|
21476
|
+
},
|
|
21477
|
+
startAt: {
|
|
21478
|
+
type: 'string',
|
|
21479
|
+
format: 'datetime',
|
|
21480
|
+
},
|
|
21481
|
+
endAt: {
|
|
21482
|
+
type: 'string',
|
|
21483
|
+
format: 'datetime',
|
|
21484
|
+
},
|
|
21485
|
+
},
|
|
21486
|
+
},
|
|
21487
|
+
},
|
|
21488
|
+
},
|
|
21489
|
+
ToolsOzoneReportGetAssignments: {
|
|
21490
|
+
lexicon: 1,
|
|
21491
|
+
id: 'tools.ozone.report.getAssignments',
|
|
21492
|
+
defs: {
|
|
21493
|
+
main: {
|
|
21494
|
+
type: 'query',
|
|
21495
|
+
description: 'Get assignments for reports.',
|
|
21496
|
+
parameters: {
|
|
21497
|
+
type: 'params',
|
|
21498
|
+
properties: {
|
|
21499
|
+
onlyActive: {
|
|
21500
|
+
type: 'boolean',
|
|
21501
|
+
default: true,
|
|
21502
|
+
description: 'When true, only returns active assignments.',
|
|
21503
|
+
},
|
|
21504
|
+
reportIds: {
|
|
21505
|
+
type: 'array',
|
|
21506
|
+
items: {
|
|
21507
|
+
type: 'integer',
|
|
21508
|
+
},
|
|
21509
|
+
maxLength: 50,
|
|
21510
|
+
description: 'If specified, returns assignments for these reports only.',
|
|
21511
|
+
},
|
|
21512
|
+
dids: {
|
|
21513
|
+
type: 'array',
|
|
21514
|
+
items: {
|
|
21515
|
+
type: 'string',
|
|
21516
|
+
format: 'did',
|
|
21517
|
+
},
|
|
21518
|
+
maxLength: 50,
|
|
21519
|
+
description: 'If specified, returns assignments for these moderators only.',
|
|
21520
|
+
},
|
|
21521
|
+
limit: {
|
|
21522
|
+
type: 'integer',
|
|
21523
|
+
minimum: 1,
|
|
21524
|
+
maximum: 100,
|
|
21525
|
+
default: 50,
|
|
21526
|
+
},
|
|
21527
|
+
cursor: {
|
|
21528
|
+
type: 'string',
|
|
21529
|
+
},
|
|
21530
|
+
},
|
|
21531
|
+
},
|
|
21532
|
+
output: {
|
|
21533
|
+
encoding: 'application/json',
|
|
21534
|
+
schema: {
|
|
21535
|
+
type: 'object',
|
|
21536
|
+
required: ['assignments'],
|
|
21537
|
+
properties: {
|
|
21538
|
+
cursor: {
|
|
21539
|
+
type: 'string',
|
|
21540
|
+
},
|
|
21541
|
+
assignments: {
|
|
21542
|
+
type: 'array',
|
|
21543
|
+
items: {
|
|
21544
|
+
type: 'ref',
|
|
21545
|
+
ref: 'lex:tools.ozone.report.defs#assignmentView',
|
|
21546
|
+
},
|
|
21547
|
+
},
|
|
21548
|
+
},
|
|
21549
|
+
},
|
|
21550
|
+
},
|
|
21551
|
+
},
|
|
21552
|
+
},
|
|
21553
|
+
},
|
|
21554
|
+
ToolsOzoneReportGetHistoricalStats: {
|
|
21555
|
+
lexicon: 1,
|
|
21556
|
+
id: 'tools.ozone.report.getHistoricalStats',
|
|
21557
|
+
defs: {
|
|
21558
|
+
main: {
|
|
21559
|
+
type: 'query',
|
|
21560
|
+
description: 'Get historical daily report statistics. Returns a paginated list of daily stat snapshots, newest first. Filter by queue, moderator, or report type.',
|
|
21561
|
+
parameters: {
|
|
21562
|
+
type: 'params',
|
|
21563
|
+
properties: {
|
|
21564
|
+
queueId: {
|
|
21565
|
+
type: 'integer',
|
|
21566
|
+
description: 'Filter stats by queue. Use -1 for unqueued reports.',
|
|
21567
|
+
},
|
|
21568
|
+
moderatorDid: {
|
|
21569
|
+
type: 'string',
|
|
21570
|
+
format: 'did',
|
|
21571
|
+
description: 'Filter stats by moderator DID.',
|
|
21572
|
+
},
|
|
21573
|
+
reportTypes: {
|
|
21574
|
+
type: 'array',
|
|
21575
|
+
items: {
|
|
21576
|
+
type: 'string',
|
|
21577
|
+
},
|
|
21578
|
+
description: 'Filter stats by report types.',
|
|
21579
|
+
},
|
|
21580
|
+
startDate: {
|
|
21581
|
+
type: 'string',
|
|
21582
|
+
format: 'datetime',
|
|
21583
|
+
description: 'Earliest date to include (inclusive).',
|
|
21584
|
+
},
|
|
21585
|
+
endDate: {
|
|
21586
|
+
type: 'string',
|
|
21587
|
+
format: 'datetime',
|
|
21588
|
+
description: 'Latest date to include (inclusive).',
|
|
21589
|
+
},
|
|
21590
|
+
limit: {
|
|
21591
|
+
type: 'integer',
|
|
21592
|
+
minimum: 1,
|
|
21593
|
+
maximum: 100,
|
|
21594
|
+
default: 30,
|
|
21595
|
+
description: 'Maximum number of entries to return.',
|
|
21596
|
+
},
|
|
21597
|
+
cursor: {
|
|
21598
|
+
type: 'string',
|
|
21599
|
+
description: 'Pagination cursor.',
|
|
21600
|
+
},
|
|
21601
|
+
},
|
|
21602
|
+
},
|
|
21603
|
+
output: {
|
|
21604
|
+
encoding: 'application/json',
|
|
21605
|
+
schema: {
|
|
21606
|
+
type: 'object',
|
|
21607
|
+
required: ['stats'],
|
|
21608
|
+
properties: {
|
|
21609
|
+
stats: {
|
|
21610
|
+
type: 'array',
|
|
21611
|
+
items: {
|
|
21612
|
+
type: 'ref',
|
|
21613
|
+
ref: 'lex:tools.ozone.report.defs#historicalStats',
|
|
21614
|
+
},
|
|
21615
|
+
},
|
|
21616
|
+
cursor: {
|
|
21617
|
+
type: 'string',
|
|
21618
|
+
},
|
|
21619
|
+
},
|
|
21620
|
+
},
|
|
21621
|
+
},
|
|
21622
|
+
},
|
|
21623
|
+
},
|
|
21624
|
+
},
|
|
21625
|
+
ToolsOzoneReportGetLatestReport: {
|
|
21626
|
+
lexicon: 1,
|
|
21627
|
+
id: 'tools.ozone.report.getLatestReport',
|
|
21628
|
+
defs: {
|
|
21629
|
+
main: {
|
|
21630
|
+
type: 'query',
|
|
21631
|
+
description: 'Get the most recent report.',
|
|
21632
|
+
parameters: {
|
|
21633
|
+
type: 'params',
|
|
21634
|
+
properties: {},
|
|
21635
|
+
},
|
|
21636
|
+
output: {
|
|
21637
|
+
encoding: 'application/json',
|
|
21638
|
+
schema: {
|
|
21639
|
+
type: 'object',
|
|
21640
|
+
required: ['report'],
|
|
21641
|
+
properties: {
|
|
21642
|
+
report: {
|
|
21643
|
+
type: 'ref',
|
|
21644
|
+
ref: 'lex:tools.ozone.report.defs#reportView',
|
|
21645
|
+
},
|
|
21646
|
+
},
|
|
21647
|
+
},
|
|
21648
|
+
},
|
|
21649
|
+
errors: [
|
|
21650
|
+
{
|
|
21651
|
+
name: 'NotFound',
|
|
21652
|
+
description: 'No report found.',
|
|
21653
|
+
},
|
|
21654
|
+
],
|
|
21655
|
+
},
|
|
21656
|
+
},
|
|
21657
|
+
},
|
|
21658
|
+
ToolsOzoneReportGetLiveStats: {
|
|
21659
|
+
lexicon: 1,
|
|
21660
|
+
id: 'tools.ozone.report.getLiveStats',
|
|
21661
|
+
defs: {
|
|
21662
|
+
main: {
|
|
21663
|
+
type: 'query',
|
|
21664
|
+
description: 'Get live report statistics from the past 24 hours. Filter by queue, moderator, or report type. Omit all parameters for aggregate stats.',
|
|
21665
|
+
parameters: {
|
|
21666
|
+
type: 'params',
|
|
21667
|
+
properties: {
|
|
21668
|
+
queueId: {
|
|
21669
|
+
type: 'integer',
|
|
21670
|
+
description: 'Filter stats by queue. Use -1 for unqueued reports.',
|
|
21671
|
+
},
|
|
21672
|
+
moderatorDid: {
|
|
21673
|
+
type: 'string',
|
|
21674
|
+
format: 'did',
|
|
21675
|
+
description: 'Filter stats by moderator DID.',
|
|
21676
|
+
},
|
|
21677
|
+
reportTypes: {
|
|
21678
|
+
type: 'array',
|
|
21679
|
+
items: {
|
|
21680
|
+
type: 'string',
|
|
21681
|
+
},
|
|
21682
|
+
description: 'Filter stats by report types.',
|
|
21683
|
+
},
|
|
21684
|
+
},
|
|
21685
|
+
},
|
|
21686
|
+
output: {
|
|
21687
|
+
encoding: 'application/json',
|
|
21688
|
+
schema: {
|
|
21689
|
+
type: 'object',
|
|
21690
|
+
required: ['stats'],
|
|
21691
|
+
properties: {
|
|
21692
|
+
stats: {
|
|
21693
|
+
type: 'ref',
|
|
21694
|
+
ref: 'lex:tools.ozone.report.defs#liveStats',
|
|
21695
|
+
description: 'Statistics for the requested filter.',
|
|
21696
|
+
},
|
|
21697
|
+
},
|
|
21698
|
+
},
|
|
21699
|
+
},
|
|
21700
|
+
},
|
|
21701
|
+
},
|
|
21702
|
+
},
|
|
21703
|
+
ToolsOzoneReportGetReport: {
|
|
21704
|
+
lexicon: 1,
|
|
21705
|
+
id: 'tools.ozone.report.getReport',
|
|
21706
|
+
defs: {
|
|
21707
|
+
main: {
|
|
21708
|
+
type: 'query',
|
|
21709
|
+
description: 'Get details about a single moderation report by ID.',
|
|
21710
|
+
parameters: {
|
|
21711
|
+
type: 'params',
|
|
21712
|
+
required: ['id'],
|
|
21713
|
+
properties: {
|
|
21714
|
+
id: {
|
|
21715
|
+
type: 'integer',
|
|
21716
|
+
description: 'The ID of the report to retrieve.',
|
|
21717
|
+
},
|
|
21718
|
+
},
|
|
21719
|
+
},
|
|
21720
|
+
output: {
|
|
21721
|
+
encoding: 'application/json',
|
|
21722
|
+
schema: {
|
|
21723
|
+
type: 'ref',
|
|
21724
|
+
ref: 'lex:tools.ozone.report.defs#reportView',
|
|
21725
|
+
},
|
|
21726
|
+
},
|
|
21727
|
+
errors: [
|
|
21728
|
+
{
|
|
21729
|
+
name: 'NotFound',
|
|
21730
|
+
description: 'No report found.',
|
|
21731
|
+
},
|
|
21732
|
+
],
|
|
21733
|
+
},
|
|
21734
|
+
},
|
|
21735
|
+
},
|
|
21736
|
+
ToolsOzoneReportListActivities: {
|
|
21737
|
+
lexicon: 1,
|
|
21738
|
+
id: 'tools.ozone.report.listActivities',
|
|
21739
|
+
defs: {
|
|
21740
|
+
main: {
|
|
21741
|
+
type: 'query',
|
|
21742
|
+
description: 'List all activities for a report, sorted most-recent-first.',
|
|
21743
|
+
parameters: {
|
|
21744
|
+
type: 'params',
|
|
21745
|
+
required: ['reportId'],
|
|
21746
|
+
properties: {
|
|
21747
|
+
reportId: {
|
|
21748
|
+
type: 'integer',
|
|
21749
|
+
description: 'ID of the report whose activities to list',
|
|
21750
|
+
},
|
|
21751
|
+
limit: {
|
|
21752
|
+
type: 'integer',
|
|
21753
|
+
minimum: 1,
|
|
21754
|
+
maximum: 100,
|
|
21755
|
+
default: 50,
|
|
21756
|
+
},
|
|
21757
|
+
cursor: {
|
|
21758
|
+
type: 'string',
|
|
21759
|
+
},
|
|
21760
|
+
},
|
|
21761
|
+
},
|
|
21762
|
+
output: {
|
|
21763
|
+
encoding: 'application/json',
|
|
21764
|
+
schema: {
|
|
21765
|
+
type: 'object',
|
|
21766
|
+
required: ['activities'],
|
|
21767
|
+
properties: {
|
|
21768
|
+
activities: {
|
|
21769
|
+
type: 'array',
|
|
21770
|
+
items: {
|
|
21771
|
+
type: 'ref',
|
|
21772
|
+
ref: 'lex:tools.ozone.report.defs#reportActivityView',
|
|
21773
|
+
},
|
|
21774
|
+
},
|
|
21775
|
+
cursor: {
|
|
21776
|
+
type: 'string',
|
|
21777
|
+
},
|
|
21778
|
+
},
|
|
21779
|
+
},
|
|
21780
|
+
},
|
|
21781
|
+
},
|
|
21782
|
+
},
|
|
21783
|
+
},
|
|
21784
|
+
ToolsOzoneReportQueryReports: {
|
|
21785
|
+
lexicon: 1,
|
|
21786
|
+
id: 'tools.ozone.report.queryReports',
|
|
21787
|
+
defs: {
|
|
21788
|
+
main: {
|
|
21789
|
+
type: 'query',
|
|
21790
|
+
description: 'View moderation reports. Reports are individual instances of content being reported, as opposed to subject statuses which aggregate reports at the subject level.',
|
|
21791
|
+
parameters: {
|
|
21792
|
+
type: 'params',
|
|
21793
|
+
required: ['status'],
|
|
21794
|
+
properties: {
|
|
21795
|
+
queueId: {
|
|
21796
|
+
type: 'integer',
|
|
21797
|
+
description: 'Filter by queue ID. Use -1 for unassigned reports.',
|
|
21798
|
+
},
|
|
21799
|
+
reportTypes: {
|
|
21800
|
+
type: 'array',
|
|
21801
|
+
items: {
|
|
21802
|
+
type: 'string',
|
|
21803
|
+
},
|
|
21804
|
+
description: 'Filter by report types (fully qualified string in the format of com.atproto.moderation.defs#reason<name>).',
|
|
21805
|
+
},
|
|
21806
|
+
status: {
|
|
21807
|
+
type: 'string',
|
|
21808
|
+
knownValues: [
|
|
21809
|
+
'open',
|
|
21810
|
+
'closed',
|
|
21811
|
+
'escalated',
|
|
21812
|
+
'queued',
|
|
21813
|
+
'assigned',
|
|
21814
|
+
],
|
|
21815
|
+
description: 'Filter by report status.',
|
|
21816
|
+
},
|
|
21817
|
+
subject: {
|
|
21818
|
+
type: 'string',
|
|
21819
|
+
format: 'uri',
|
|
21820
|
+
description: 'Filter by subject DID or AT-URI.',
|
|
21821
|
+
},
|
|
21822
|
+
did: {
|
|
21823
|
+
type: 'string',
|
|
21824
|
+
format: 'did',
|
|
21825
|
+
description: 'Filter to reports where the subject is this DID or any record owned by this DID. Unlike `subject` (which scopes to a specific account or record), this returns all reports tied to the DID across both account-level and record-level subjects.',
|
|
21826
|
+
},
|
|
21827
|
+
subjectType: {
|
|
21828
|
+
type: 'string',
|
|
21829
|
+
description: 'If specified, reports of the given type (account or record) will be returned.',
|
|
21830
|
+
knownValues: ['account', 'record'],
|
|
21831
|
+
},
|
|
21832
|
+
collections: {
|
|
21833
|
+
type: 'array',
|
|
21834
|
+
maxLength: 20,
|
|
21835
|
+
description: "If specified, reports where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",
|
|
21836
|
+
items: {
|
|
21837
|
+
type: 'string',
|
|
21838
|
+
format: 'nsid',
|
|
21839
|
+
},
|
|
21840
|
+
},
|
|
21841
|
+
reportedAfter: {
|
|
21842
|
+
type: 'string',
|
|
21843
|
+
format: 'datetime',
|
|
21844
|
+
description: 'Retrieve reports created after a given timestamp',
|
|
21845
|
+
},
|
|
21846
|
+
reportedBefore: {
|
|
21847
|
+
type: 'string',
|
|
21848
|
+
format: 'datetime',
|
|
21849
|
+
description: 'Retrieve reports created before a given timestamp',
|
|
21850
|
+
},
|
|
21851
|
+
isMuted: {
|
|
21852
|
+
type: 'boolean',
|
|
21853
|
+
default: false,
|
|
21854
|
+
description: 'Filter by muted status. true returns only muted reports, false returns only unmuted reports. Defaults to false.',
|
|
21855
|
+
},
|
|
21856
|
+
assignedTo: {
|
|
21857
|
+
type: 'string',
|
|
21858
|
+
format: 'did',
|
|
21859
|
+
description: 'Filter by the DID of the moderator permanently assigned to the report.',
|
|
21860
|
+
},
|
|
21861
|
+
sortField: {
|
|
21862
|
+
type: 'string',
|
|
21863
|
+
default: 'createdAt',
|
|
21864
|
+
enum: ['createdAt', 'updatedAt'],
|
|
21865
|
+
},
|
|
21866
|
+
sortDirection: {
|
|
21867
|
+
type: 'string',
|
|
21868
|
+
default: 'desc',
|
|
21869
|
+
enum: ['asc', 'desc'],
|
|
21870
|
+
},
|
|
21871
|
+
limit: {
|
|
21872
|
+
type: 'integer',
|
|
21873
|
+
minimum: 1,
|
|
21874
|
+
maximum: 100,
|
|
21875
|
+
default: 50,
|
|
21876
|
+
},
|
|
21877
|
+
cursor: {
|
|
21878
|
+
type: 'string',
|
|
21879
|
+
},
|
|
21880
|
+
},
|
|
21881
|
+
},
|
|
21882
|
+
output: {
|
|
21883
|
+
encoding: 'application/json',
|
|
21884
|
+
schema: {
|
|
21885
|
+
type: 'object',
|
|
21886
|
+
required: ['reports'],
|
|
21887
|
+
properties: {
|
|
21888
|
+
cursor: {
|
|
21889
|
+
type: 'string',
|
|
21890
|
+
},
|
|
21891
|
+
reports: {
|
|
21892
|
+
type: 'array',
|
|
21893
|
+
items: {
|
|
21894
|
+
type: 'ref',
|
|
21895
|
+
ref: 'lex:tools.ozone.report.defs#reportView',
|
|
21896
|
+
},
|
|
21897
|
+
},
|
|
21898
|
+
},
|
|
21899
|
+
},
|
|
21900
|
+
},
|
|
21901
|
+
},
|
|
21902
|
+
},
|
|
21903
|
+
},
|
|
21904
|
+
ToolsOzoneReportReassignQueue: {
|
|
21905
|
+
lexicon: 1,
|
|
21906
|
+
id: 'tools.ozone.report.reassignQueue',
|
|
21907
|
+
defs: {
|
|
21908
|
+
main: {
|
|
21909
|
+
type: 'procedure',
|
|
21910
|
+
description: 'Manually reassign a report to a different queue (or unassign it). Records a queueActivity entry on the report.',
|
|
21911
|
+
input: {
|
|
21912
|
+
encoding: 'application/json',
|
|
21913
|
+
schema: {
|
|
21914
|
+
type: 'object',
|
|
21915
|
+
required: ['reportId', 'queueId'],
|
|
21916
|
+
properties: {
|
|
21917
|
+
reportId: {
|
|
21918
|
+
type: 'integer',
|
|
21919
|
+
description: 'ID of the report to reassign',
|
|
21920
|
+
},
|
|
21921
|
+
queueId: {
|
|
21922
|
+
type: 'integer',
|
|
21923
|
+
description: 'Target queue ID. Use -1 to unassign from any queue.',
|
|
21924
|
+
},
|
|
21925
|
+
comment: {
|
|
21926
|
+
type: 'string',
|
|
21927
|
+
description: 'Optional moderator-only note recorded on the resulting queueActivity as internalNote.',
|
|
21928
|
+
},
|
|
21929
|
+
},
|
|
21930
|
+
},
|
|
21931
|
+
},
|
|
21932
|
+
output: {
|
|
21933
|
+
encoding: 'application/json',
|
|
21934
|
+
schema: {
|
|
21935
|
+
type: 'object',
|
|
21936
|
+
required: ['report'],
|
|
21937
|
+
properties: {
|
|
21938
|
+
report: {
|
|
21939
|
+
type: 'ref',
|
|
21940
|
+
ref: 'lex:tools.ozone.report.defs#reportView',
|
|
21941
|
+
},
|
|
21942
|
+
},
|
|
21943
|
+
},
|
|
21944
|
+
},
|
|
21945
|
+
errors: [
|
|
21946
|
+
{
|
|
21947
|
+
name: 'ReportNotFound',
|
|
21948
|
+
description: 'No report exists with the given reportId',
|
|
21949
|
+
},
|
|
21950
|
+
{
|
|
21951
|
+
name: 'ReportClosed',
|
|
21952
|
+
description: 'The report is closed and cannot be reassigned',
|
|
21953
|
+
},
|
|
21954
|
+
{
|
|
21955
|
+
name: 'AlreadyInTargetQueue',
|
|
21956
|
+
description: 'The report is already assigned to the target queue',
|
|
21957
|
+
},
|
|
21958
|
+
{
|
|
21959
|
+
name: 'QueueNotFound',
|
|
21960
|
+
description: 'No active queue exists with the given queueId',
|
|
21961
|
+
},
|
|
21962
|
+
{
|
|
21963
|
+
name: 'QueueDisabled',
|
|
21964
|
+
description: 'The target queue is disabled and cannot receive new assignments',
|
|
21965
|
+
},
|
|
21966
|
+
],
|
|
21967
|
+
},
|
|
21968
|
+
},
|
|
21969
|
+
},
|
|
21970
|
+
ToolsOzoneReportRefreshStats: {
|
|
21971
|
+
lexicon: 1,
|
|
21972
|
+
id: 'tools.ozone.report.refreshStats',
|
|
21973
|
+
defs: {
|
|
21974
|
+
main: {
|
|
21975
|
+
type: 'procedure',
|
|
21976
|
+
description: 'Recompute report statistics for a date range. Useful for backfilling after failures or data corrections.',
|
|
21977
|
+
input: {
|
|
21978
|
+
encoding: 'application/json',
|
|
21979
|
+
schema: {
|
|
21980
|
+
type: 'object',
|
|
21981
|
+
required: ['startDate', 'endDate'],
|
|
21982
|
+
properties: {
|
|
21983
|
+
startDate: {
|
|
21984
|
+
type: 'string',
|
|
21985
|
+
description: 'Start date for recomputation, inclusive (YYYY-MM-DD).',
|
|
21986
|
+
},
|
|
21987
|
+
endDate: {
|
|
21988
|
+
type: 'string',
|
|
21989
|
+
description: 'End date for recomputation, inclusive (YYYY-MM-DD).',
|
|
21990
|
+
},
|
|
21991
|
+
queueIds: {
|
|
21992
|
+
type: 'array',
|
|
21993
|
+
items: {
|
|
21994
|
+
type: 'integer',
|
|
21995
|
+
},
|
|
21996
|
+
description: 'Optional list of queue IDs to recompute. Omit to recompute all groups.',
|
|
21997
|
+
},
|
|
21998
|
+
},
|
|
21999
|
+
},
|
|
22000
|
+
},
|
|
22001
|
+
output: {
|
|
22002
|
+
encoding: 'application/json',
|
|
22003
|
+
schema: {
|
|
22004
|
+
type: 'object',
|
|
22005
|
+
properties: {},
|
|
22006
|
+
},
|
|
22007
|
+
},
|
|
22008
|
+
},
|
|
22009
|
+
},
|
|
22010
|
+
},
|
|
22011
|
+
ToolsOzoneReportUnassignModerator: {
|
|
22012
|
+
lexicon: 1,
|
|
22013
|
+
id: 'tools.ozone.report.unassignModerator',
|
|
22014
|
+
defs: {
|
|
22015
|
+
main: {
|
|
22016
|
+
type: 'procedure',
|
|
22017
|
+
description: 'Remove report assignment.',
|
|
22018
|
+
input: {
|
|
22019
|
+
encoding: 'application/json',
|
|
22020
|
+
schema: {
|
|
22021
|
+
type: 'object',
|
|
22022
|
+
required: ['reportId'],
|
|
22023
|
+
properties: {
|
|
22024
|
+
reportId: {
|
|
22025
|
+
type: 'integer',
|
|
22026
|
+
description: 'The ID of the report to unassign.',
|
|
22027
|
+
},
|
|
22028
|
+
},
|
|
22029
|
+
},
|
|
22030
|
+
},
|
|
22031
|
+
output: {
|
|
22032
|
+
encoding: 'application/json',
|
|
22033
|
+
schema: {
|
|
22034
|
+
type: 'ref',
|
|
22035
|
+
ref: 'lex:tools.ozone.report.defs#assignmentView',
|
|
22036
|
+
},
|
|
22037
|
+
},
|
|
22038
|
+
errors: [
|
|
22039
|
+
{
|
|
22040
|
+
name: 'InvalidAssignment',
|
|
22041
|
+
description: 'The report ID is invalid.',
|
|
22042
|
+
},
|
|
22043
|
+
],
|
|
22044
|
+
},
|
|
20399
22045
|
},
|
|
20400
22046
|
},
|
|
20401
22047
|
ToolsOzoneSafelinkAddRule: {
|
|
@@ -22481,7 +24127,28 @@ exports.ids = {
|
|
|
22481
24127
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
22482
24128
|
ToolsOzoneModerationScheduleAction: 'tools.ozone.moderation.scheduleAction',
|
|
22483
24129
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
|
24130
|
+
ToolsOzoneQueueAssignModerator: 'tools.ozone.queue.assignModerator',
|
|
24131
|
+
ToolsOzoneQueueCreateQueue: 'tools.ozone.queue.createQueue',
|
|
24132
|
+
ToolsOzoneQueueDefs: 'tools.ozone.queue.defs',
|
|
24133
|
+
ToolsOzoneQueueDeleteQueue: 'tools.ozone.queue.deleteQueue',
|
|
24134
|
+
ToolsOzoneQueueGetAssignments: 'tools.ozone.queue.getAssignments',
|
|
24135
|
+
ToolsOzoneQueueListQueues: 'tools.ozone.queue.listQueues',
|
|
24136
|
+
ToolsOzoneQueueRouteReports: 'tools.ozone.queue.routeReports',
|
|
24137
|
+
ToolsOzoneQueueUnassignModerator: 'tools.ozone.queue.unassignModerator',
|
|
24138
|
+
ToolsOzoneQueueUpdateQueue: 'tools.ozone.queue.updateQueue',
|
|
24139
|
+
ToolsOzoneReportAssignModerator: 'tools.ozone.report.assignModerator',
|
|
24140
|
+
ToolsOzoneReportCreateActivity: 'tools.ozone.report.createActivity',
|
|
22484
24141
|
ToolsOzoneReportDefs: 'tools.ozone.report.defs',
|
|
24142
|
+
ToolsOzoneReportGetAssignments: 'tools.ozone.report.getAssignments',
|
|
24143
|
+
ToolsOzoneReportGetHistoricalStats: 'tools.ozone.report.getHistoricalStats',
|
|
24144
|
+
ToolsOzoneReportGetLatestReport: 'tools.ozone.report.getLatestReport',
|
|
24145
|
+
ToolsOzoneReportGetLiveStats: 'tools.ozone.report.getLiveStats',
|
|
24146
|
+
ToolsOzoneReportGetReport: 'tools.ozone.report.getReport',
|
|
24147
|
+
ToolsOzoneReportListActivities: 'tools.ozone.report.listActivities',
|
|
24148
|
+
ToolsOzoneReportQueryReports: 'tools.ozone.report.queryReports',
|
|
24149
|
+
ToolsOzoneReportReassignQueue: 'tools.ozone.report.reassignQueue',
|
|
24150
|
+
ToolsOzoneReportRefreshStats: 'tools.ozone.report.refreshStats',
|
|
24151
|
+
ToolsOzoneReportUnassignModerator: 'tools.ozone.report.unassignModerator',
|
|
22485
24152
|
ToolsOzoneSafelinkAddRule: 'tools.ozone.safelink.addRule',
|
|
22486
24153
|
ToolsOzoneSafelinkDefs: 'tools.ozone.safelink.defs',
|
|
22487
24154
|
ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents',
|