@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.
- package/CHANGELOG.md +8 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +9 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +266 -4
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +163 -2
- package/dist/client/lexicons.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/package.json +1 -1
|
@@ -23635,6 +23635,132 @@ export declare const schemaDict: {
|
|
|
23635
23635
|
};
|
|
23636
23636
|
};
|
|
23637
23637
|
};
|
|
23638
|
+
readonly ToolsOzoneModerationEmitEvents: {
|
|
23639
|
+
readonly lexicon: 1;
|
|
23640
|
+
readonly id: 'tools.ozone.moderation.emitEvents';
|
|
23641
|
+
readonly defs: {
|
|
23642
|
+
readonly main: {
|
|
23643
|
+
readonly type: 'procedure';
|
|
23644
|
+
readonly 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.';
|
|
23645
|
+
readonly input: {
|
|
23646
|
+
readonly encoding: 'application/json';
|
|
23647
|
+
readonly schema: {
|
|
23648
|
+
readonly type: 'object';
|
|
23649
|
+
readonly required: ["event", "subjects", "createdBy"];
|
|
23650
|
+
readonly properties: {
|
|
23651
|
+
readonly event: {
|
|
23652
|
+
readonly type: 'union';
|
|
23653
|
+
readonly refs: ["lex:tools.ozone.moderation.defs#modEventTakedown", "lex:tools.ozone.moderation.defs#modEventAcknowledge", "lex:tools.ozone.moderation.defs#modEventLabel", "lex:tools.ozone.moderation.defs#modEventReport", "lex:tools.ozone.moderation.defs#modEventReverseTakedown", "lex:tools.ozone.moderation.defs#modEventResolveAppeal", "lex:tools.ozone.moderation.defs#modEventEmail", "lex:tools.ozone.moderation.defs#modEventTag", "lex:tools.ozone.moderation.defs#revokeAccountCredentialsEvent"];
|
|
23654
|
+
};
|
|
23655
|
+
readonly subjects: {
|
|
23656
|
+
readonly type: 'array';
|
|
23657
|
+
readonly description: 'Array of subjects to apply the moderation event to.';
|
|
23658
|
+
readonly maxLength: 100;
|
|
23659
|
+
readonly items: {
|
|
23660
|
+
readonly type: 'ref';
|
|
23661
|
+
readonly ref: 'lex:tools.ozone.moderation.emitEvents#subjectEntry';
|
|
23662
|
+
};
|
|
23663
|
+
};
|
|
23664
|
+
readonly createdBy: {
|
|
23665
|
+
readonly type: 'string';
|
|
23666
|
+
readonly format: 'did';
|
|
23667
|
+
};
|
|
23668
|
+
readonly modTool: {
|
|
23669
|
+
readonly type: 'ref';
|
|
23670
|
+
readonly ref: 'lex:tools.ozone.moderation.defs#modTool';
|
|
23671
|
+
};
|
|
23672
|
+
};
|
|
23673
|
+
};
|
|
23674
|
+
};
|
|
23675
|
+
readonly output: {
|
|
23676
|
+
readonly encoding: 'application/json';
|
|
23677
|
+
readonly schema: {
|
|
23678
|
+
readonly type: 'object';
|
|
23679
|
+
readonly required: ["events", "failedEvents"];
|
|
23680
|
+
readonly properties: {
|
|
23681
|
+
readonly events: {
|
|
23682
|
+
readonly type: 'array';
|
|
23683
|
+
readonly description: 'Successfully processed moderation events.';
|
|
23684
|
+
readonly items: {
|
|
23685
|
+
readonly type: 'ref';
|
|
23686
|
+
readonly ref: 'lex:tools.ozone.moderation.defs#modEventView';
|
|
23687
|
+
};
|
|
23688
|
+
};
|
|
23689
|
+
readonly failedEvents: {
|
|
23690
|
+
readonly type: 'array';
|
|
23691
|
+
readonly description: 'Events that failed to process.';
|
|
23692
|
+
readonly items: {
|
|
23693
|
+
readonly type: 'ref';
|
|
23694
|
+
readonly ref: 'lex:tools.ozone.moderation.emitEvents#failedEvent';
|
|
23695
|
+
};
|
|
23696
|
+
};
|
|
23697
|
+
};
|
|
23698
|
+
};
|
|
23699
|
+
};
|
|
23700
|
+
readonly errors: [{
|
|
23701
|
+
readonly name: 'InvalidLabel';
|
|
23702
|
+
readonly description: 'One or more labels contain invalid characters.';
|
|
23703
|
+
}, {
|
|
23704
|
+
readonly name: 'DuplicateSubjects';
|
|
23705
|
+
readonly description: 'The subjects array contains duplicate entries.';
|
|
23706
|
+
}, {
|
|
23707
|
+
readonly name: 'EmptySubjects';
|
|
23708
|
+
readonly description: 'The subjects array is empty.';
|
|
23709
|
+
}, {
|
|
23710
|
+
readonly name: 'UnsupportedEvent';
|
|
23711
|
+
readonly description: 'The event type is not supported by this bulk endpoint.';
|
|
23712
|
+
}];
|
|
23713
|
+
};
|
|
23714
|
+
readonly subjectEntry: {
|
|
23715
|
+
readonly type: 'object';
|
|
23716
|
+
readonly description: 'A subject with optional blob CIDs, external event ID, and report-level targeting. Report targeting applies only to this entry.';
|
|
23717
|
+
readonly required: ["subject"];
|
|
23718
|
+
readonly properties: {
|
|
23719
|
+
readonly subject: {
|
|
23720
|
+
readonly type: 'union';
|
|
23721
|
+
readonly refs: ["lex:com.atproto.admin.defs#repoRef", "lex:com.atproto.repo.strongRef"];
|
|
23722
|
+
};
|
|
23723
|
+
readonly subjectBlobCids: {
|
|
23724
|
+
readonly type: 'array';
|
|
23725
|
+
readonly items: {
|
|
23726
|
+
readonly type: 'string';
|
|
23727
|
+
readonly format: 'cid';
|
|
23728
|
+
};
|
|
23729
|
+
};
|
|
23730
|
+
readonly externalId: {
|
|
23731
|
+
readonly type: 'string';
|
|
23732
|
+
readonly description: 'Deduplicate events of this type for this subject using an external ID.';
|
|
23733
|
+
};
|
|
23734
|
+
readonly reportAction: {
|
|
23735
|
+
readonly type: 'ref';
|
|
23736
|
+
readonly ref: 'lex:tools.ozone.moderation.emitEvent#reportAction';
|
|
23737
|
+
readonly description: 'Optional report-level targeting for this subject. Links the event to matching reports and may notify reporters.';
|
|
23738
|
+
};
|
|
23739
|
+
};
|
|
23740
|
+
};
|
|
23741
|
+
readonly failedEvent: {
|
|
23742
|
+
readonly type: 'object';
|
|
23743
|
+
readonly description: 'An event that failed to process.';
|
|
23744
|
+
readonly required: ["error", "subject"];
|
|
23745
|
+
readonly properties: {
|
|
23746
|
+
readonly error: {
|
|
23747
|
+
readonly type: 'string';
|
|
23748
|
+
readonly description: 'Error message describing the reason for failure.';
|
|
23749
|
+
};
|
|
23750
|
+
readonly errorName: {
|
|
23751
|
+
readonly type: 'string';
|
|
23752
|
+
readonly description: 'Typed error identifier for programmatic handling. Omitted when the error is unexpected/uncategorized.';
|
|
23753
|
+
readonly knownValues: ["InvalidSubject", "SubjectHasAction", "AlreadyTakendown", "NotTakendown", "DuplicateExternalId", "InvalidConfiguration", "InvalidRequest"];
|
|
23754
|
+
};
|
|
23755
|
+
readonly subject: {
|
|
23756
|
+
readonly type: 'union';
|
|
23757
|
+
readonly description: 'The subject from the failed event input.';
|
|
23758
|
+
readonly refs: ["lex:com.atproto.admin.defs#repoRef", "lex:com.atproto.repo.strongRef"];
|
|
23759
|
+
};
|
|
23760
|
+
};
|
|
23761
|
+
};
|
|
23762
|
+
};
|
|
23763
|
+
};
|
|
23638
23764
|
readonly ToolsOzoneModerationGetAccountPreferences: {
|
|
23639
23765
|
readonly lexicon: 1;
|
|
23640
23766
|
readonly id: 'tools.ozone.moderation.getAccountPreferences';
|
|
@@ -25390,7 +25516,7 @@ export declare const schemaDict: {
|
|
|
25390
25516
|
readonly defs: {
|
|
25391
25517
|
readonly main: {
|
|
25392
25518
|
readonly type: 'procedure';
|
|
25393
|
-
readonly 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.';
|
|
25519
|
+
readonly 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.';
|
|
25394
25520
|
readonly input: {
|
|
25395
25521
|
readonly encoding: 'application/json';
|
|
25396
25522
|
readonly schema: {
|
|
@@ -25407,12 +25533,17 @@ export declare const schemaDict: {
|
|
|
25407
25533
|
readonly default: false;
|
|
25408
25534
|
readonly 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.';
|
|
25409
25535
|
};
|
|
25536
|
+
readonly reportId: {
|
|
25537
|
+
readonly type: 'integer';
|
|
25538
|
+
readonly minimum: 1;
|
|
25539
|
+
readonly description: 'An explicitly targeted report in the requested subject scope. It is included even if assigned, escalated, or not in reportTypes; excludedReportTypes still applies.';
|
|
25540
|
+
};
|
|
25410
25541
|
readonly reportTypes: {
|
|
25411
25542
|
readonly type: 'array';
|
|
25412
25543
|
readonly items: {
|
|
25413
25544
|
readonly type: 'string';
|
|
25414
25545
|
};
|
|
25415
|
-
readonly description: 'If nonempty,
|
|
25546
|
+
readonly 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.';
|
|
25416
25547
|
};
|
|
25417
25548
|
readonly excludedReportTypes: {
|
|
25418
25549
|
readonly type: 'array';
|
|
@@ -52105,6 +52236,131 @@ export declare const schemas: ({
|
|
|
52105
52236
|
};
|
|
52106
52237
|
};
|
|
52107
52238
|
};
|
|
52239
|
+
} | {
|
|
52240
|
+
readonly lexicon: 1;
|
|
52241
|
+
readonly id: 'tools.ozone.moderation.emitEvents';
|
|
52242
|
+
readonly defs: {
|
|
52243
|
+
readonly main: {
|
|
52244
|
+
readonly type: 'procedure';
|
|
52245
|
+
readonly 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.';
|
|
52246
|
+
readonly input: {
|
|
52247
|
+
readonly encoding: 'application/json';
|
|
52248
|
+
readonly schema: {
|
|
52249
|
+
readonly type: 'object';
|
|
52250
|
+
readonly required: ["event", "subjects", "createdBy"];
|
|
52251
|
+
readonly properties: {
|
|
52252
|
+
readonly event: {
|
|
52253
|
+
readonly type: 'union';
|
|
52254
|
+
readonly refs: ["lex:tools.ozone.moderation.defs#modEventTakedown", "lex:tools.ozone.moderation.defs#modEventAcknowledge", "lex:tools.ozone.moderation.defs#modEventLabel", "lex:tools.ozone.moderation.defs#modEventReport", "lex:tools.ozone.moderation.defs#modEventReverseTakedown", "lex:tools.ozone.moderation.defs#modEventResolveAppeal", "lex:tools.ozone.moderation.defs#modEventEmail", "lex:tools.ozone.moderation.defs#modEventTag", "lex:tools.ozone.moderation.defs#revokeAccountCredentialsEvent"];
|
|
52255
|
+
};
|
|
52256
|
+
readonly subjects: {
|
|
52257
|
+
readonly type: 'array';
|
|
52258
|
+
readonly description: 'Array of subjects to apply the moderation event to.';
|
|
52259
|
+
readonly maxLength: 100;
|
|
52260
|
+
readonly items: {
|
|
52261
|
+
readonly type: 'ref';
|
|
52262
|
+
readonly ref: 'lex:tools.ozone.moderation.emitEvents#subjectEntry';
|
|
52263
|
+
};
|
|
52264
|
+
};
|
|
52265
|
+
readonly createdBy: {
|
|
52266
|
+
readonly type: 'string';
|
|
52267
|
+
readonly format: 'did';
|
|
52268
|
+
};
|
|
52269
|
+
readonly modTool: {
|
|
52270
|
+
readonly type: 'ref';
|
|
52271
|
+
readonly ref: 'lex:tools.ozone.moderation.defs#modTool';
|
|
52272
|
+
};
|
|
52273
|
+
};
|
|
52274
|
+
};
|
|
52275
|
+
};
|
|
52276
|
+
readonly output: {
|
|
52277
|
+
readonly encoding: 'application/json';
|
|
52278
|
+
readonly schema: {
|
|
52279
|
+
readonly type: 'object';
|
|
52280
|
+
readonly required: ["events", "failedEvents"];
|
|
52281
|
+
readonly properties: {
|
|
52282
|
+
readonly events: {
|
|
52283
|
+
readonly type: 'array';
|
|
52284
|
+
readonly description: 'Successfully processed moderation events.';
|
|
52285
|
+
readonly items: {
|
|
52286
|
+
readonly type: 'ref';
|
|
52287
|
+
readonly ref: 'lex:tools.ozone.moderation.defs#modEventView';
|
|
52288
|
+
};
|
|
52289
|
+
};
|
|
52290
|
+
readonly failedEvents: {
|
|
52291
|
+
readonly type: 'array';
|
|
52292
|
+
readonly description: 'Events that failed to process.';
|
|
52293
|
+
readonly items: {
|
|
52294
|
+
readonly type: 'ref';
|
|
52295
|
+
readonly ref: 'lex:tools.ozone.moderation.emitEvents#failedEvent';
|
|
52296
|
+
};
|
|
52297
|
+
};
|
|
52298
|
+
};
|
|
52299
|
+
};
|
|
52300
|
+
};
|
|
52301
|
+
readonly errors: [{
|
|
52302
|
+
readonly name: 'InvalidLabel';
|
|
52303
|
+
readonly description: 'One or more labels contain invalid characters.';
|
|
52304
|
+
}, {
|
|
52305
|
+
readonly name: 'DuplicateSubjects';
|
|
52306
|
+
readonly description: 'The subjects array contains duplicate entries.';
|
|
52307
|
+
}, {
|
|
52308
|
+
readonly name: 'EmptySubjects';
|
|
52309
|
+
readonly description: 'The subjects array is empty.';
|
|
52310
|
+
}, {
|
|
52311
|
+
readonly name: 'UnsupportedEvent';
|
|
52312
|
+
readonly description: 'The event type is not supported by this bulk endpoint.';
|
|
52313
|
+
}];
|
|
52314
|
+
};
|
|
52315
|
+
readonly subjectEntry: {
|
|
52316
|
+
readonly type: 'object';
|
|
52317
|
+
readonly description: 'A subject with optional blob CIDs, external event ID, and report-level targeting. Report targeting applies only to this entry.';
|
|
52318
|
+
readonly required: ["subject"];
|
|
52319
|
+
readonly properties: {
|
|
52320
|
+
readonly subject: {
|
|
52321
|
+
readonly type: 'union';
|
|
52322
|
+
readonly refs: ["lex:com.atproto.admin.defs#repoRef", "lex:com.atproto.repo.strongRef"];
|
|
52323
|
+
};
|
|
52324
|
+
readonly subjectBlobCids: {
|
|
52325
|
+
readonly type: 'array';
|
|
52326
|
+
readonly items: {
|
|
52327
|
+
readonly type: 'string';
|
|
52328
|
+
readonly format: 'cid';
|
|
52329
|
+
};
|
|
52330
|
+
};
|
|
52331
|
+
readonly externalId: {
|
|
52332
|
+
readonly type: 'string';
|
|
52333
|
+
readonly description: 'Deduplicate events of this type for this subject using an external ID.';
|
|
52334
|
+
};
|
|
52335
|
+
readonly reportAction: {
|
|
52336
|
+
readonly type: 'ref';
|
|
52337
|
+
readonly ref: 'lex:tools.ozone.moderation.emitEvent#reportAction';
|
|
52338
|
+
readonly description: 'Optional report-level targeting for this subject. Links the event to matching reports and may notify reporters.';
|
|
52339
|
+
};
|
|
52340
|
+
};
|
|
52341
|
+
};
|
|
52342
|
+
readonly failedEvent: {
|
|
52343
|
+
readonly type: 'object';
|
|
52344
|
+
readonly description: 'An event that failed to process.';
|
|
52345
|
+
readonly required: ["error", "subject"];
|
|
52346
|
+
readonly properties: {
|
|
52347
|
+
readonly error: {
|
|
52348
|
+
readonly type: 'string';
|
|
52349
|
+
readonly description: 'Error message describing the reason for failure.';
|
|
52350
|
+
};
|
|
52351
|
+
readonly errorName: {
|
|
52352
|
+
readonly type: 'string';
|
|
52353
|
+
readonly description: 'Typed error identifier for programmatic handling. Omitted when the error is unexpected/uncategorized.';
|
|
52354
|
+
readonly knownValues: ["InvalidSubject", "SubjectHasAction", "AlreadyTakendown", "NotTakendown", "DuplicateExternalId", "InvalidConfiguration", "InvalidRequest"];
|
|
52355
|
+
};
|
|
52356
|
+
readonly subject: {
|
|
52357
|
+
readonly type: 'union';
|
|
52358
|
+
readonly description: 'The subject from the failed event input.';
|
|
52359
|
+
readonly refs: ["lex:com.atproto.admin.defs#repoRef", "lex:com.atproto.repo.strongRef"];
|
|
52360
|
+
};
|
|
52361
|
+
};
|
|
52362
|
+
};
|
|
52363
|
+
};
|
|
52108
52364
|
} | {
|
|
52109
52365
|
readonly lexicon: 1;
|
|
52110
52366
|
readonly id: 'tools.ozone.moderation.getAccountPreferences';
|
|
@@ -53836,7 +54092,7 @@ export declare const schemas: ({
|
|
|
53836
54092
|
readonly defs: {
|
|
53837
54093
|
readonly main: {
|
|
53838
54094
|
readonly type: 'procedure';
|
|
53839
|
-
readonly 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.';
|
|
54095
|
+
readonly 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.';
|
|
53840
54096
|
readonly input: {
|
|
53841
54097
|
readonly encoding: 'application/json';
|
|
53842
54098
|
readonly schema: {
|
|
@@ -53853,12 +54109,17 @@ export declare const schemas: ({
|
|
|
53853
54109
|
readonly default: false;
|
|
53854
54110
|
readonly 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.';
|
|
53855
54111
|
};
|
|
54112
|
+
readonly reportId: {
|
|
54113
|
+
readonly type: 'integer';
|
|
54114
|
+
readonly minimum: 1;
|
|
54115
|
+
readonly description: 'An explicitly targeted report in the requested subject scope. It is included even if assigned, escalated, or not in reportTypes; excludedReportTypes still applies.';
|
|
54116
|
+
};
|
|
53856
54117
|
readonly reportTypes: {
|
|
53857
54118
|
readonly type: 'array';
|
|
53858
54119
|
readonly items: {
|
|
53859
54120
|
readonly type: 'string';
|
|
53860
54121
|
};
|
|
53861
|
-
readonly description: 'If nonempty,
|
|
54122
|
+
readonly 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.';
|
|
53862
54123
|
};
|
|
53863
54124
|
readonly excludedReportTypes: {
|
|
53864
54125
|
readonly type: 'array';
|
|
@@ -57554,6 +57815,7 @@ export declare const ids: {
|
|
|
57554
57815
|
readonly ToolsOzoneModerationCancelScheduledActions: 'tools.ozone.moderation.cancelScheduledActions';
|
|
57555
57816
|
readonly ToolsOzoneModerationDefs: 'tools.ozone.moderation.defs';
|
|
57556
57817
|
readonly ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent';
|
|
57818
|
+
readonly ToolsOzoneModerationEmitEvents: 'tools.ozone.moderation.emitEvents';
|
|
57557
57819
|
readonly ToolsOzoneModerationGetAccountPreferences: 'tools.ozone.moderation.getAccountPreferences';
|
|
57558
57820
|
readonly ToolsOzoneModerationGetAccountTimeline: 'tools.ozone.moderation.getAccountTimeline';
|
|
57559
57821
|
readonly ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent';
|