@atproto/api 0.31.2 → 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.
- package/CHANGELOG.md +20 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +14 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +516 -4
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +292 -2
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +6 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvents.d.ts +77 -0
- package/dist/client/types/tools/ozone/moderation/emitEvents.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/moderation/emitEvents.js +58 -0
- package/dist/client/types/tools/ozone/moderation/emitEvents.js.map +1 -0
- package/dist/client/types/tools/ozone/report/closeReports.d.ts +3 -1
- package/dist/client/types/tools/ozone/report/closeReports.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/closeReports.js.map +1 -1
- package/dist/client/types/tools/ozone/report/queryModeratorActivity.d.ts +48 -0
- package/dist/client/types/tools/ozone/report/queryModeratorActivity.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/queryModeratorActivity.js +21 -0
- package/dist/client/types/tools/ozone/report/queryModeratorActivity.js.map +1 -0
- package/package.json +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -25003,6 +25003,27 @@ export const schemaDict = {
|
|
|
25003
25003
|
type: 'boolean',
|
|
25004
25004
|
description: 'Target all eligible reports on the account and its owned subjects, including records, messages, and conversations. Only valid for account subjects and events that close reports. Excludes assigned, escalated, and actively assigned reports unless explicitly targeted by ID.',
|
|
25005
25005
|
},
|
|
25006
|
+
subjects: {
|
|
25007
|
+
type: 'array',
|
|
25008
|
+
maxLength: 100,
|
|
25009
|
+
items: {
|
|
25010
|
+
type: 'union',
|
|
25011
|
+
refs: [
|
|
25012
|
+
'lex:com.atproto.admin.defs#repoRef',
|
|
25013
|
+
'lex:com.atproto.repo.strongRef',
|
|
25014
|
+
],
|
|
25015
|
+
},
|
|
25016
|
+
description: 'Expands report targeting to include additional subjects. Requires event subject to be an account. Mutually exclusive with `subjectTypes`.',
|
|
25017
|
+
},
|
|
25018
|
+
subjectTypes: {
|
|
25019
|
+
type: 'array',
|
|
25020
|
+
maxLength: 4,
|
|
25021
|
+
items: {
|
|
25022
|
+
type: 'string',
|
|
25023
|
+
enum: ['account', 'record', 'message', 'conversation'],
|
|
25024
|
+
},
|
|
25025
|
+
description: 'Expands report targeting to include owned subjects of these types. Requires event subject to be an account. Mutually exclusive with `subjects`.',
|
|
25026
|
+
},
|
|
25006
25027
|
note: {
|
|
25007
25028
|
type: 'string',
|
|
25008
25029
|
description: 'Note to send to reporter(s) when actioning their report',
|
|
@@ -25015,6 +25036,161 @@ export const schemaDict = {
|
|
|
25015
25036
|
},
|
|
25016
25037
|
},
|
|
25017
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
|
+
},
|
|
25018
25194
|
ToolsOzoneModerationGetAccountPreferences: {
|
|
25019
25195
|
lexicon: 1,
|
|
25020
25196
|
id: 'tools.ozone.moderation.getAccountPreferences',
|
|
@@ -26860,7 +27036,7 @@ export const schemaDict = {
|
|
|
26860
27036
|
defs: {
|
|
26861
27037
|
main: {
|
|
26862
27038
|
type: 'procedure',
|
|
26863
|
-
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.',
|
|
26864
27040
|
input: {
|
|
26865
27041
|
encoding: 'application/json',
|
|
26866
27042
|
schema: {
|
|
@@ -26877,12 +27053,17 @@ export const schemaDict = {
|
|
|
26877
27053
|
default: false,
|
|
26878
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.',
|
|
26879
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
|
+
},
|
|
26880
27061
|
reportTypes: {
|
|
26881
27062
|
type: 'array',
|
|
26882
27063
|
items: {
|
|
26883
27064
|
type: 'string',
|
|
26884
27065
|
},
|
|
26885
|
-
description: 'If nonempty,
|
|
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.',
|
|
26886
27067
|
},
|
|
26887
27068
|
excludedReportTypes: {
|
|
26888
27069
|
type: 'array',
|
|
@@ -28128,6 +28309,113 @@ export const schemaDict = {
|
|
|
28128
28309
|
},
|
|
28129
28310
|
},
|
|
28130
28311
|
},
|
|
28312
|
+
ToolsOzoneReportQueryModeratorActivity: {
|
|
28313
|
+
lexicon: 1,
|
|
28314
|
+
id: 'tools.ozone.report.queryModeratorActivity',
|
|
28315
|
+
defs: {
|
|
28316
|
+
main: {
|
|
28317
|
+
type: 'query',
|
|
28318
|
+
description: 'Read authorized moderator events and report activity in one chronological history.',
|
|
28319
|
+
parameters: {
|
|
28320
|
+
type: 'params',
|
|
28321
|
+
required: ['moderator', 'createdAfter', 'createdBefore'],
|
|
28322
|
+
properties: {
|
|
28323
|
+
moderator: {
|
|
28324
|
+
type: 'string',
|
|
28325
|
+
format: 'did',
|
|
28326
|
+
},
|
|
28327
|
+
createdAfter: {
|
|
28328
|
+
type: 'string',
|
|
28329
|
+
format: 'datetime',
|
|
28330
|
+
description: 'Inclusive UTC lower bound.',
|
|
28331
|
+
},
|
|
28332
|
+
createdBefore: {
|
|
28333
|
+
type: 'string',
|
|
28334
|
+
format: 'datetime',
|
|
28335
|
+
description: 'Exclusive UTC upper bound.',
|
|
28336
|
+
},
|
|
28337
|
+
types: {
|
|
28338
|
+
type: 'array',
|
|
28339
|
+
maxLength: 40,
|
|
28340
|
+
items: {
|
|
28341
|
+
type: 'string',
|
|
28342
|
+
},
|
|
28343
|
+
},
|
|
28344
|
+
limit: {
|
|
28345
|
+
type: 'integer',
|
|
28346
|
+
minimum: 1,
|
|
28347
|
+
maximum: 100,
|
|
28348
|
+
default: 50,
|
|
28349
|
+
},
|
|
28350
|
+
cursor: {
|
|
28351
|
+
type: 'string',
|
|
28352
|
+
maxLength: 512,
|
|
28353
|
+
},
|
|
28354
|
+
},
|
|
28355
|
+
},
|
|
28356
|
+
output: {
|
|
28357
|
+
encoding: 'application/json',
|
|
28358
|
+
schema: {
|
|
28359
|
+
type: 'object',
|
|
28360
|
+
required: ['rows'],
|
|
28361
|
+
properties: {
|
|
28362
|
+
rows: {
|
|
28363
|
+
type: 'array',
|
|
28364
|
+
items: {
|
|
28365
|
+
type: 'ref',
|
|
28366
|
+
ref: 'lex:tools.ozone.report.queryModeratorActivity#activityRow',
|
|
28367
|
+
},
|
|
28368
|
+
},
|
|
28369
|
+
cursor: {
|
|
28370
|
+
type: 'string',
|
|
28371
|
+
},
|
|
28372
|
+
},
|
|
28373
|
+
},
|
|
28374
|
+
},
|
|
28375
|
+
},
|
|
28376
|
+
activityRow: {
|
|
28377
|
+
type: 'object',
|
|
28378
|
+
required: ['source', 'id', 'createdAt', 'createdBy', 'type'],
|
|
28379
|
+
properties: {
|
|
28380
|
+
source: {
|
|
28381
|
+
type: 'string',
|
|
28382
|
+
enum: ['event', 'activity'],
|
|
28383
|
+
},
|
|
28384
|
+
id: {
|
|
28385
|
+
type: 'integer',
|
|
28386
|
+
},
|
|
28387
|
+
createdAt: {
|
|
28388
|
+
type: 'string',
|
|
28389
|
+
format: 'datetime',
|
|
28390
|
+
},
|
|
28391
|
+
createdBy: {
|
|
28392
|
+
type: 'string',
|
|
28393
|
+
format: 'did',
|
|
28394
|
+
},
|
|
28395
|
+
type: {
|
|
28396
|
+
type: 'string',
|
|
28397
|
+
},
|
|
28398
|
+
subject: {
|
|
28399
|
+
type: 'string',
|
|
28400
|
+
},
|
|
28401
|
+
reportId: {
|
|
28402
|
+
type: 'integer',
|
|
28403
|
+
},
|
|
28404
|
+
actionEventId: {
|
|
28405
|
+
type: 'integer',
|
|
28406
|
+
},
|
|
28407
|
+
event: {
|
|
28408
|
+
type: 'ref',
|
|
28409
|
+
ref: 'lex:tools.ozone.moderation.defs#modEventView',
|
|
28410
|
+
},
|
|
28411
|
+
activity: {
|
|
28412
|
+
type: 'ref',
|
|
28413
|
+
ref: 'lex:tools.ozone.report.defs#reportActivityView',
|
|
28414
|
+
},
|
|
28415
|
+
},
|
|
28416
|
+
},
|
|
28417
|
+
},
|
|
28418
|
+
},
|
|
28131
28419
|
ToolsOzoneReportQueryReports: {
|
|
28132
28420
|
lexicon: 1,
|
|
28133
28421
|
id: 'tools.ozone.report.queryReports',
|
|
@@ -30706,6 +30994,7 @@ export const ids = {
|
|
|
30706
30994
|
ToolsOzoneModerationCancelScheduledActions: 'tools.ozone.moderation.cancelScheduledActions',
|
|
30707
30995
|
ToolsOzoneModerationDefs: 'tools.ozone.moderation.defs',
|
|
30708
30996
|
ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
|
|
30997
|
+
ToolsOzoneModerationEmitEvents: 'tools.ozone.moderation.emitEvents',
|
|
30709
30998
|
ToolsOzoneModerationGetAccountPreferences: 'tools.ozone.moderation.getAccountPreferences',
|
|
30710
30999
|
ToolsOzoneModerationGetAccountTimeline: 'tools.ozone.moderation.getAccountTimeline',
|
|
30711
31000
|
ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',
|
|
@@ -30740,6 +31029,7 @@ export const ids = {
|
|
|
30740
31029
|
ToolsOzoneReportGetReport: 'tools.ozone.report.getReport',
|
|
30741
31030
|
ToolsOzoneReportListActivities: 'tools.ozone.report.listActivities',
|
|
30742
31031
|
ToolsOzoneReportQueryActivities: 'tools.ozone.report.queryActivities',
|
|
31032
|
+
ToolsOzoneReportQueryModeratorActivity: 'tools.ozone.report.queryModeratorActivity',
|
|
30743
31033
|
ToolsOzoneReportQueryReports: 'tools.ozone.report.queryReports',
|
|
30744
31034
|
ToolsOzoneReportReassignQueue: 'tools.ozone.report.reassignQueue',
|
|
30745
31035
|
ToolsOzoneReportRefreshStats: 'tools.ozone.report.refreshStats',
|