@atproto/api 0.32.0 → 0.32.1

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.
@@ -25036,6 +25036,161 @@ export const schemaDict = {
25036
25036
  },
25037
25037
  },
25038
25038
  },
25039
+ ToolsOzoneModerationEmitEvents: {
25040
+ lexicon: 1,
25041
+ id: 'tools.ozone.moderation.emitEvents',
25042
+ defs: {
25043
+ main: {
25044
+ type: 'procedure',
25045
+ description: 'Take a moderation action on multiple subjects at once. Each subject is processed independently; failures are listed in failedEvents. Only the listed event types are supported.',
25046
+ input: {
25047
+ encoding: 'application/json',
25048
+ schema: {
25049
+ type: 'object',
25050
+ required: ['event', 'subjects', 'createdBy'],
25051
+ properties: {
25052
+ event: {
25053
+ type: 'union',
25054
+ refs: [
25055
+ 'lex:tools.ozone.moderation.defs#modEventTakedown',
25056
+ 'lex:tools.ozone.moderation.defs#modEventAcknowledge',
25057
+ 'lex:tools.ozone.moderation.defs#modEventLabel',
25058
+ 'lex:tools.ozone.moderation.defs#modEventReport',
25059
+ 'lex:tools.ozone.moderation.defs#modEventReverseTakedown',
25060
+ 'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
25061
+ 'lex:tools.ozone.moderation.defs#modEventEmail',
25062
+ 'lex:tools.ozone.moderation.defs#modEventTag',
25063
+ 'lex:tools.ozone.moderation.defs#revokeAccountCredentialsEvent',
25064
+ ],
25065
+ },
25066
+ subjects: {
25067
+ type: 'array',
25068
+ description: 'Array of subjects to apply the moderation event to.',
25069
+ maxLength: 100,
25070
+ items: {
25071
+ type: 'ref',
25072
+ ref: 'lex:tools.ozone.moderation.emitEvents#subjectEntry',
25073
+ },
25074
+ },
25075
+ createdBy: {
25076
+ type: 'string',
25077
+ format: 'did',
25078
+ },
25079
+ modTool: {
25080
+ type: 'ref',
25081
+ ref: 'lex:tools.ozone.moderation.defs#modTool',
25082
+ },
25083
+ },
25084
+ },
25085
+ },
25086
+ output: {
25087
+ encoding: 'application/json',
25088
+ schema: {
25089
+ type: 'object',
25090
+ required: ['events', 'failedEvents'],
25091
+ properties: {
25092
+ events: {
25093
+ type: 'array',
25094
+ description: 'Successfully processed moderation events.',
25095
+ items: {
25096
+ type: 'ref',
25097
+ ref: 'lex:tools.ozone.moderation.defs#modEventView',
25098
+ },
25099
+ },
25100
+ failedEvents: {
25101
+ type: 'array',
25102
+ description: 'Events that failed to process.',
25103
+ items: {
25104
+ type: 'ref',
25105
+ ref: 'lex:tools.ozone.moderation.emitEvents#failedEvent',
25106
+ },
25107
+ },
25108
+ },
25109
+ },
25110
+ },
25111
+ errors: [
25112
+ {
25113
+ name: 'InvalidLabel',
25114
+ description: 'One or more labels contain invalid characters.',
25115
+ },
25116
+ {
25117
+ name: 'DuplicateSubjects',
25118
+ description: 'The subjects array contains duplicate entries.',
25119
+ },
25120
+ {
25121
+ name: 'EmptySubjects',
25122
+ description: 'The subjects array is empty.',
25123
+ },
25124
+ {
25125
+ name: 'UnsupportedEvent',
25126
+ description: 'The event type is not supported by this bulk endpoint.',
25127
+ },
25128
+ ],
25129
+ },
25130
+ subjectEntry: {
25131
+ type: 'object',
25132
+ description: 'A subject with optional blob CIDs, external event ID, and report-level targeting. Report targeting applies only to this entry.',
25133
+ required: ['subject'],
25134
+ properties: {
25135
+ subject: {
25136
+ type: 'union',
25137
+ refs: [
25138
+ 'lex:com.atproto.admin.defs#repoRef',
25139
+ 'lex:com.atproto.repo.strongRef',
25140
+ ],
25141
+ },
25142
+ subjectBlobCids: {
25143
+ type: 'array',
25144
+ items: {
25145
+ type: 'string',
25146
+ format: 'cid',
25147
+ },
25148
+ },
25149
+ externalId: {
25150
+ type: 'string',
25151
+ description: 'Deduplicate events of this type for this subject using an external ID.',
25152
+ },
25153
+ reportAction: {
25154
+ type: 'ref',
25155
+ ref: 'lex:tools.ozone.moderation.emitEvent#reportAction',
25156
+ description: 'Optional report-level targeting for this subject. Links the event to matching reports and may notify reporters.',
25157
+ },
25158
+ },
25159
+ },
25160
+ failedEvent: {
25161
+ type: 'object',
25162
+ description: 'An event that failed to process.',
25163
+ required: ['error', 'subject'],
25164
+ properties: {
25165
+ error: {
25166
+ type: 'string',
25167
+ description: 'Error message describing the reason for failure.',
25168
+ },
25169
+ errorName: {
25170
+ type: 'string',
25171
+ description: 'Typed error identifier for programmatic handling. Omitted when the error is unexpected/uncategorized.',
25172
+ knownValues: [
25173
+ 'InvalidSubject',
25174
+ 'SubjectHasAction',
25175
+ 'AlreadyTakendown',
25176
+ 'NotTakendown',
25177
+ 'DuplicateExternalId',
25178
+ 'InvalidConfiguration',
25179
+ 'InvalidRequest',
25180
+ ],
25181
+ },
25182
+ subject: {
25183
+ type: 'union',
25184
+ description: 'The subject from the failed event input.',
25185
+ refs: [
25186
+ 'lex:com.atproto.admin.defs#repoRef',
25187
+ 'lex:com.atproto.repo.strongRef',
25188
+ ],
25189
+ },
25190
+ },
25191
+ },
25192
+ },
25193
+ },
25039
25194
  ToolsOzoneModerationGetAccountPreferences: {
25040
25195
  lexicon: 1,
25041
25196
  id: 'tools.ozone.moderation.getAccountPreferences',
@@ -26881,7 +27036,7 @@ export const schemaDict = {
26881
27036
  defs: {
26882
27037
  main: {
26883
27038
  type: 'procedure',
26884
- description: 'Close eligible reports on a subject matching the given criteria, optionally linking an existing moderation action. Assigned, escalated, and actively assigned reports are excluded. Reports whose current status does not permit a transition to closed are skipped silently.',
27039
+ description: 'Close eligible reports on a subject matching the given criteria, optionally linking an existing moderation action. Assigned, escalated, and actively assigned reports are excluded unless explicitly targeted by reportId. Reports whose current status does not permit a transition to closed are skipped silently.',
26885
27040
  input: {
26886
27041
  encoding: 'application/json',
26887
27042
  schema: {
@@ -26898,12 +27053,17 @@ export const schemaDict = {
26898
27053
  default: false,
26899
27054
  description: 'If true, also close reports on all subjects owned by the account, including records, messages, and conversations. Only valid when subject is an account DID.',
26900
27055
  },
27056
+ reportId: {
27057
+ type: 'integer',
27058
+ minimum: 1,
27059
+ description: 'An explicitly targeted report in the requested subject scope. It is included even if assigned, escalated, or not in reportTypes; excludedReportTypes still applies.',
27060
+ },
26901
27061
  reportTypes: {
26902
27062
  type: 'array',
26903
27063
  items: {
26904
27064
  type: 'string',
26905
27065
  },
26906
- description: 'If nonempty, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted or empty, all eligible reports in the requested subject scope are targeted, except excludedReportTypes. Assigned and escalated reports are always excluded.',
27066
+ description: 'If nonempty, eligible reports of the given report types (fully qualified reason NSIDs) are closed, in addition to reportId. When omitted or empty, all eligible reports in the requested subject scope are targeted, except excludedReportTypes. Assigned, escalated, and actively assigned reports are excluded unless explicitly targeted by reportId.',
26907
27067
  },
26908
27068
  excludedReportTypes: {
26909
27069
  type: 'array',
@@ -30834,6 +30994,7 @@ export const ids = {
30834
30994
  ToolsOzoneModerationCancelScheduledActions: 'tools.ozone.moderation.cancelScheduledActions',
30835
30995
  ToolsOzoneModerationDefs: 'tools.ozone.moderation.defs',
30836
30996
  ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
30997
+ ToolsOzoneModerationEmitEvents: 'tools.ozone.moderation.emitEvents',
30837
30998
  ToolsOzoneModerationGetAccountPreferences: 'tools.ozone.moderation.getAccountPreferences',
30838
30999
  ToolsOzoneModerationGetAccountTimeline: 'tools.ozone.moderation.getAccountTimeline',
30839
31000
  ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',