@atproto/api 0.31.2 → 0.32.0
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 +12 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +250 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +129 -0
- 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/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',
|
|
@@ -28128,6 +28149,113 @@ export const schemaDict = {
|
|
|
28128
28149
|
},
|
|
28129
28150
|
},
|
|
28130
28151
|
},
|
|
28152
|
+
ToolsOzoneReportQueryModeratorActivity: {
|
|
28153
|
+
lexicon: 1,
|
|
28154
|
+
id: 'tools.ozone.report.queryModeratorActivity',
|
|
28155
|
+
defs: {
|
|
28156
|
+
main: {
|
|
28157
|
+
type: 'query',
|
|
28158
|
+
description: 'Read authorized moderator events and report activity in one chronological history.',
|
|
28159
|
+
parameters: {
|
|
28160
|
+
type: 'params',
|
|
28161
|
+
required: ['moderator', 'createdAfter', 'createdBefore'],
|
|
28162
|
+
properties: {
|
|
28163
|
+
moderator: {
|
|
28164
|
+
type: 'string',
|
|
28165
|
+
format: 'did',
|
|
28166
|
+
},
|
|
28167
|
+
createdAfter: {
|
|
28168
|
+
type: 'string',
|
|
28169
|
+
format: 'datetime',
|
|
28170
|
+
description: 'Inclusive UTC lower bound.',
|
|
28171
|
+
},
|
|
28172
|
+
createdBefore: {
|
|
28173
|
+
type: 'string',
|
|
28174
|
+
format: 'datetime',
|
|
28175
|
+
description: 'Exclusive UTC upper bound.',
|
|
28176
|
+
},
|
|
28177
|
+
types: {
|
|
28178
|
+
type: 'array',
|
|
28179
|
+
maxLength: 40,
|
|
28180
|
+
items: {
|
|
28181
|
+
type: 'string',
|
|
28182
|
+
},
|
|
28183
|
+
},
|
|
28184
|
+
limit: {
|
|
28185
|
+
type: 'integer',
|
|
28186
|
+
minimum: 1,
|
|
28187
|
+
maximum: 100,
|
|
28188
|
+
default: 50,
|
|
28189
|
+
},
|
|
28190
|
+
cursor: {
|
|
28191
|
+
type: 'string',
|
|
28192
|
+
maxLength: 512,
|
|
28193
|
+
},
|
|
28194
|
+
},
|
|
28195
|
+
},
|
|
28196
|
+
output: {
|
|
28197
|
+
encoding: 'application/json',
|
|
28198
|
+
schema: {
|
|
28199
|
+
type: 'object',
|
|
28200
|
+
required: ['rows'],
|
|
28201
|
+
properties: {
|
|
28202
|
+
rows: {
|
|
28203
|
+
type: 'array',
|
|
28204
|
+
items: {
|
|
28205
|
+
type: 'ref',
|
|
28206
|
+
ref: 'lex:tools.ozone.report.queryModeratorActivity#activityRow',
|
|
28207
|
+
},
|
|
28208
|
+
},
|
|
28209
|
+
cursor: {
|
|
28210
|
+
type: 'string',
|
|
28211
|
+
},
|
|
28212
|
+
},
|
|
28213
|
+
},
|
|
28214
|
+
},
|
|
28215
|
+
},
|
|
28216
|
+
activityRow: {
|
|
28217
|
+
type: 'object',
|
|
28218
|
+
required: ['source', 'id', 'createdAt', 'createdBy', 'type'],
|
|
28219
|
+
properties: {
|
|
28220
|
+
source: {
|
|
28221
|
+
type: 'string',
|
|
28222
|
+
enum: ['event', 'activity'],
|
|
28223
|
+
},
|
|
28224
|
+
id: {
|
|
28225
|
+
type: 'integer',
|
|
28226
|
+
},
|
|
28227
|
+
createdAt: {
|
|
28228
|
+
type: 'string',
|
|
28229
|
+
format: 'datetime',
|
|
28230
|
+
},
|
|
28231
|
+
createdBy: {
|
|
28232
|
+
type: 'string',
|
|
28233
|
+
format: 'did',
|
|
28234
|
+
},
|
|
28235
|
+
type: {
|
|
28236
|
+
type: 'string',
|
|
28237
|
+
},
|
|
28238
|
+
subject: {
|
|
28239
|
+
type: 'string',
|
|
28240
|
+
},
|
|
28241
|
+
reportId: {
|
|
28242
|
+
type: 'integer',
|
|
28243
|
+
},
|
|
28244
|
+
actionEventId: {
|
|
28245
|
+
type: 'integer',
|
|
28246
|
+
},
|
|
28247
|
+
event: {
|
|
28248
|
+
type: 'ref',
|
|
28249
|
+
ref: 'lex:tools.ozone.moderation.defs#modEventView',
|
|
28250
|
+
},
|
|
28251
|
+
activity: {
|
|
28252
|
+
type: 'ref',
|
|
28253
|
+
ref: 'lex:tools.ozone.report.defs#reportActivityView',
|
|
28254
|
+
},
|
|
28255
|
+
},
|
|
28256
|
+
},
|
|
28257
|
+
},
|
|
28258
|
+
},
|
|
28131
28259
|
ToolsOzoneReportQueryReports: {
|
|
28132
28260
|
lexicon: 1,
|
|
28133
28261
|
id: 'tools.ozone.report.queryReports',
|
|
@@ -30740,6 +30868,7 @@ export const ids = {
|
|
|
30740
30868
|
ToolsOzoneReportGetReport: 'tools.ozone.report.getReport',
|
|
30741
30869
|
ToolsOzoneReportListActivities: 'tools.ozone.report.listActivities',
|
|
30742
30870
|
ToolsOzoneReportQueryActivities: 'tools.ozone.report.queryActivities',
|
|
30871
|
+
ToolsOzoneReportQueryModeratorActivity: 'tools.ozone.report.queryModeratorActivity',
|
|
30743
30872
|
ToolsOzoneReportQueryReports: 'tools.ozone.report.queryReports',
|
|
30744
30873
|
ToolsOzoneReportReassignQueue: 'tools.ozone.report.reassignQueue',
|
|
30745
30874
|
ToolsOzoneReportRefreshStats: 'tools.ozone.report.refreshStats',
|