@atproto/api 0.32.0 → 0.32.2
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 +14 -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 +270 -8
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +165 -3
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +2 -2
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/getAuthorFeed.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 +2 -2
package/dist/client/lexicons.js
CHANGED
|
@@ -4588,9 +4588,10 @@ export const schemaDict = {
|
|
|
4588
4588
|
},
|
|
4589
4589
|
filter: {
|
|
4590
4590
|
type: 'string',
|
|
4591
|
-
description: 'Combinations of post/repost types to include in response.',
|
|
4591
|
+
description: 'Combinations of post/repost types to include in response. The posts_and_replies_only filter includes authored top-level posts and replies, but excludes reposts.',
|
|
4592
4592
|
knownValues: [
|
|
4593
4593
|
'posts_with_replies',
|
|
4594
|
+
'posts_and_replies_only',
|
|
4594
4595
|
'posts_no_replies',
|
|
4595
4596
|
'posts_with_media',
|
|
4596
4597
|
'posts_and_author_threads',
|
|
@@ -25036,6 +25037,161 @@ export const schemaDict = {
|
|
|
25036
25037
|
},
|
|
25037
25038
|
},
|
|
25038
25039
|
},
|
|
25040
|
+
ToolsOzoneModerationEmitEvents: {
|
|
25041
|
+
lexicon: 1,
|
|
25042
|
+
id: 'tools.ozone.moderation.emitEvents',
|
|
25043
|
+
defs: {
|
|
25044
|
+
main: {
|
|
25045
|
+
type: 'procedure',
|
|
25046
|
+
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.',
|
|
25047
|
+
input: {
|
|
25048
|
+
encoding: 'application/json',
|
|
25049
|
+
schema: {
|
|
25050
|
+
type: 'object',
|
|
25051
|
+
required: ['event', 'subjects', 'createdBy'],
|
|
25052
|
+
properties: {
|
|
25053
|
+
event: {
|
|
25054
|
+
type: 'union',
|
|
25055
|
+
refs: [
|
|
25056
|
+
'lex:tools.ozone.moderation.defs#modEventTakedown',
|
|
25057
|
+
'lex:tools.ozone.moderation.defs#modEventAcknowledge',
|
|
25058
|
+
'lex:tools.ozone.moderation.defs#modEventLabel',
|
|
25059
|
+
'lex:tools.ozone.moderation.defs#modEventReport',
|
|
25060
|
+
'lex:tools.ozone.moderation.defs#modEventReverseTakedown',
|
|
25061
|
+
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
|
25062
|
+
'lex:tools.ozone.moderation.defs#modEventEmail',
|
|
25063
|
+
'lex:tools.ozone.moderation.defs#modEventTag',
|
|
25064
|
+
'lex:tools.ozone.moderation.defs#revokeAccountCredentialsEvent',
|
|
25065
|
+
],
|
|
25066
|
+
},
|
|
25067
|
+
subjects: {
|
|
25068
|
+
type: 'array',
|
|
25069
|
+
description: 'Array of subjects to apply the moderation event to.',
|
|
25070
|
+
maxLength: 100,
|
|
25071
|
+
items: {
|
|
25072
|
+
type: 'ref',
|
|
25073
|
+
ref: 'lex:tools.ozone.moderation.emitEvents#subjectEntry',
|
|
25074
|
+
},
|
|
25075
|
+
},
|
|
25076
|
+
createdBy: {
|
|
25077
|
+
type: 'string',
|
|
25078
|
+
format: 'did',
|
|
25079
|
+
},
|
|
25080
|
+
modTool: {
|
|
25081
|
+
type: 'ref',
|
|
25082
|
+
ref: 'lex:tools.ozone.moderation.defs#modTool',
|
|
25083
|
+
},
|
|
25084
|
+
},
|
|
25085
|
+
},
|
|
25086
|
+
},
|
|
25087
|
+
output: {
|
|
25088
|
+
encoding: 'application/json',
|
|
25089
|
+
schema: {
|
|
25090
|
+
type: 'object',
|
|
25091
|
+
required: ['events', 'failedEvents'],
|
|
25092
|
+
properties: {
|
|
25093
|
+
events: {
|
|
25094
|
+
type: 'array',
|
|
25095
|
+
description: 'Successfully processed moderation events.',
|
|
25096
|
+
items: {
|
|
25097
|
+
type: 'ref',
|
|
25098
|
+
ref: 'lex:tools.ozone.moderation.defs#modEventView',
|
|
25099
|
+
},
|
|
25100
|
+
},
|
|
25101
|
+
failedEvents: {
|
|
25102
|
+
type: 'array',
|
|
25103
|
+
description: 'Events that failed to process.',
|
|
25104
|
+
items: {
|
|
25105
|
+
type: 'ref',
|
|
25106
|
+
ref: 'lex:tools.ozone.moderation.emitEvents#failedEvent',
|
|
25107
|
+
},
|
|
25108
|
+
},
|
|
25109
|
+
},
|
|
25110
|
+
},
|
|
25111
|
+
},
|
|
25112
|
+
errors: [
|
|
25113
|
+
{
|
|
25114
|
+
name: 'InvalidLabel',
|
|
25115
|
+
description: 'One or more labels contain invalid characters.',
|
|
25116
|
+
},
|
|
25117
|
+
{
|
|
25118
|
+
name: 'DuplicateSubjects',
|
|
25119
|
+
description: 'The subjects array contains duplicate entries.',
|
|
25120
|
+
},
|
|
25121
|
+
{
|
|
25122
|
+
name: 'EmptySubjects',
|
|
25123
|
+
description: 'The subjects array is empty.',
|
|
25124
|
+
},
|
|
25125
|
+
{
|
|
25126
|
+
name: 'UnsupportedEvent',
|
|
25127
|
+
description: 'The event type is not supported by this bulk endpoint.',
|
|
25128
|
+
},
|
|
25129
|
+
],
|
|
25130
|
+
},
|
|
25131
|
+
subjectEntry: {
|
|
25132
|
+
type: 'object',
|
|
25133
|
+
description: 'A subject with optional blob CIDs, external event ID, and report-level targeting. Report targeting applies only to this entry.',
|
|
25134
|
+
required: ['subject'],
|
|
25135
|
+
properties: {
|
|
25136
|
+
subject: {
|
|
25137
|
+
type: 'union',
|
|
25138
|
+
refs: [
|
|
25139
|
+
'lex:com.atproto.admin.defs#repoRef',
|
|
25140
|
+
'lex:com.atproto.repo.strongRef',
|
|
25141
|
+
],
|
|
25142
|
+
},
|
|
25143
|
+
subjectBlobCids: {
|
|
25144
|
+
type: 'array',
|
|
25145
|
+
items: {
|
|
25146
|
+
type: 'string',
|
|
25147
|
+
format: 'cid',
|
|
25148
|
+
},
|
|
25149
|
+
},
|
|
25150
|
+
externalId: {
|
|
25151
|
+
type: 'string',
|
|
25152
|
+
description: 'Deduplicate events of this type for this subject using an external ID.',
|
|
25153
|
+
},
|
|
25154
|
+
reportAction: {
|
|
25155
|
+
type: 'ref',
|
|
25156
|
+
ref: 'lex:tools.ozone.moderation.emitEvent#reportAction',
|
|
25157
|
+
description: 'Optional report-level targeting for this subject. Links the event to matching reports and may notify reporters.',
|
|
25158
|
+
},
|
|
25159
|
+
},
|
|
25160
|
+
},
|
|
25161
|
+
failedEvent: {
|
|
25162
|
+
type: 'object',
|
|
25163
|
+
description: 'An event that failed to process.',
|
|
25164
|
+
required: ['error', 'subject'],
|
|
25165
|
+
properties: {
|
|
25166
|
+
error: {
|
|
25167
|
+
type: 'string',
|
|
25168
|
+
description: 'Error message describing the reason for failure.',
|
|
25169
|
+
},
|
|
25170
|
+
errorName: {
|
|
25171
|
+
type: 'string',
|
|
25172
|
+
description: 'Typed error identifier for programmatic handling. Omitted when the error is unexpected/uncategorized.',
|
|
25173
|
+
knownValues: [
|
|
25174
|
+
'InvalidSubject',
|
|
25175
|
+
'SubjectHasAction',
|
|
25176
|
+
'AlreadyTakendown',
|
|
25177
|
+
'NotTakendown',
|
|
25178
|
+
'DuplicateExternalId',
|
|
25179
|
+
'InvalidConfiguration',
|
|
25180
|
+
'InvalidRequest',
|
|
25181
|
+
],
|
|
25182
|
+
},
|
|
25183
|
+
subject: {
|
|
25184
|
+
type: 'union',
|
|
25185
|
+
description: 'The subject from the failed event input.',
|
|
25186
|
+
refs: [
|
|
25187
|
+
'lex:com.atproto.admin.defs#repoRef',
|
|
25188
|
+
'lex:com.atproto.repo.strongRef',
|
|
25189
|
+
],
|
|
25190
|
+
},
|
|
25191
|
+
},
|
|
25192
|
+
},
|
|
25193
|
+
},
|
|
25194
|
+
},
|
|
25039
25195
|
ToolsOzoneModerationGetAccountPreferences: {
|
|
25040
25196
|
lexicon: 1,
|
|
25041
25197
|
id: 'tools.ozone.moderation.getAccountPreferences',
|
|
@@ -26881,7 +27037,7 @@ export const schemaDict = {
|
|
|
26881
27037
|
defs: {
|
|
26882
27038
|
main: {
|
|
26883
27039
|
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.',
|
|
27040
|
+
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
27041
|
input: {
|
|
26886
27042
|
encoding: 'application/json',
|
|
26887
27043
|
schema: {
|
|
@@ -26898,12 +27054,17 @@ export const schemaDict = {
|
|
|
26898
27054
|
default: false,
|
|
26899
27055
|
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
27056
|
},
|
|
27057
|
+
reportId: {
|
|
27058
|
+
type: 'integer',
|
|
27059
|
+
minimum: 1,
|
|
27060
|
+
description: 'An explicitly targeted report in the requested subject scope. It is included even if assigned, escalated, or not in reportTypes; excludedReportTypes still applies.',
|
|
27061
|
+
},
|
|
26901
27062
|
reportTypes: {
|
|
26902
27063
|
type: 'array',
|
|
26903
27064
|
items: {
|
|
26904
27065
|
type: 'string',
|
|
26905
27066
|
},
|
|
26906
|
-
description: 'If nonempty,
|
|
27067
|
+
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
27068
|
},
|
|
26908
27069
|
excludedReportTypes: {
|
|
26909
27070
|
type: 'array',
|
|
@@ -30834,6 +30995,7 @@ export const ids = {
|
|
|
30834
30995
|
ToolsOzoneModerationCancelScheduledActions: 'tools.ozone.moderation.cancelScheduledActions',
|
|
30835
30996
|
ToolsOzoneModerationDefs: 'tools.ozone.moderation.defs',
|
|
30836
30997
|
ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
|
|
30998
|
+
ToolsOzoneModerationEmitEvents: 'tools.ozone.moderation.emitEvents',
|
|
30837
30999
|
ToolsOzoneModerationGetAccountPreferences: 'tools.ozone.moderation.getAccountPreferences',
|
|
30838
31000
|
ToolsOzoneModerationGetAccountTimeline: 'tools.ozone.moderation.getAccountTimeline',
|
|
30839
31001
|
ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',
|