@atproto/api 0.19.15 → 0.19.17

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