@atproto/api 0.0.6 → 0.0.8
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/dist/client/index.d.ts +75 -44
- package/dist/client/lexicons.d.ts +1075 -407
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +0 -2
- package/dist/client/types/app/bsky/actor/search.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -1
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +1 -8
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +1 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +1 -1
- package/dist/client/types/app/bsky/system/declaration.d.ts +1 -1
- package/dist/client/types/com/atproto/account/delete.d.ts +14 -2
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +23 -0
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +49 -0
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/record.d.ts +40 -0
- package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +28 -0
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
- package/dist/client/types/com/atproto/report/create.d.ts +39 -0
- package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
- package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
- package/dist/client/types/com/atproto/session/create.d.ts +5 -2
- package/dist/client/types/com/atproto/session/refresh.d.ts +4 -1
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
- package/dist/client/types/com/atproto/sync/getHead.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +17 -0
- package/dist/index.js +1997 -927
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +249 -142
- package/src/client/lexicons.ts +1223 -478
- package/src/client/types/app/bsky/actor/getProfile.ts +0 -2
- package/src/client/types/app/bsky/actor/search.ts +1 -1
- package/src/client/types/app/bsky/actor/searchTypeahead.ts +1 -1
- package/src/client/types/app/bsky/actor/updateProfile.ts +0 -1
- package/src/client/types/app/bsky/feed/feedViewPost.ts +1 -19
- package/src/client/types/app/bsky/graph/getFollows.ts +1 -0
- package/src/client/types/app/bsky/notification/list.ts +1 -2
- package/src/client/types/app/bsky/system/declRef.ts +1 -4
- package/src/client/types/app/bsky/system/declaration.ts +1 -4
- package/src/client/types/com/atproto/account/delete.ts +21 -1
- package/src/client/types/com/atproto/account/requestDelete.ts +27 -0
- package/src/client/types/com/atproto/admin/getModerationAction.ts +31 -0
- package/src/client/types/com/atproto/admin/getModerationActions.ts +38 -0
- package/src/client/types/com/atproto/admin/getModerationReport.ts +31 -0
- package/src/client/types/com/atproto/admin/getModerationReports.ts +39 -0
- package/src/client/types/com/atproto/admin/getRecord.ts +32 -0
- package/src/client/types/com/atproto/admin/getRepo.ts +31 -0
- package/src/client/types/com/atproto/admin/moderationAction.ts +99 -0
- package/src/client/types/com/atproto/admin/moderationReport.ts +64 -0
- package/src/client/types/com/atproto/admin/record.ts +89 -0
- package/src/client/types/com/atproto/admin/repo.ts +103 -0
- package/src/client/types/com/atproto/admin/resolveModerationReports.ts +37 -0
- package/src/client/types/com/atproto/admin/reverseModerationAction.ts +37 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +38 -0
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +47 -0
- package/src/client/types/com/atproto/repo/recordRef.ts +25 -0
- package/src/client/types/com/atproto/repo/repoRef.ts +24 -0
- package/src/client/types/com/atproto/report/create.ts +54 -0
- package/src/client/types/com/atproto/report/reasonType.ts +16 -0
- package/src/client/types/com/atproto/report/subject.ts +66 -0
- package/src/client/types/com/atproto/session/create.ts +9 -1
- package/src/client/types/com/atproto/session/refresh.ts +7 -0
- package/src/client/types/com/atproto/sync/{updateRepo.ts → getCheckout.ts} +4 -3
- package/src/client/types/com/atproto/sync/getCommitPath.ts +39 -0
- package/src/client/types/com/atproto/sync/{getRoot.ts → getHead.ts} +0 -0
- package/src/client/types/com/atproto/sync/getRecord.ts +34 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/types/app/bsky/actor/createScene.ts +0 -55
- package/src/client/types/app/bsky/feed/trend.ts +0 -26
- package/src/client/types/app/bsky/graph/getAssertions.ts +0 -85
- package/src/client/types/app/bsky/graph/getMembers.ts +0 -62
- package/src/client/types/app/bsky/graph/getMemberships.ts +0 -62
- package/src/client/types/app/bsky/system/actorScene.ts +0 -9
package/src/client/lexicons.ts
CHANGED
|
@@ -113,72 +113,913 @@ export const schemaDict = {
|
|
|
113
113
|
defs: {
|
|
114
114
|
main: {
|
|
115
115
|
type: 'procedure',
|
|
116
|
-
description: 'Delete
|
|
116
|
+
description: 'Delete a user account with a token and password.',
|
|
117
|
+
input: {
|
|
118
|
+
encoding: 'application/json',
|
|
119
|
+
schema: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
required: ['did', 'password', 'token'],
|
|
122
|
+
properties: {
|
|
123
|
+
did: {
|
|
124
|
+
type: 'string',
|
|
125
|
+
},
|
|
126
|
+
password: {
|
|
127
|
+
type: 'string',
|
|
128
|
+
},
|
|
129
|
+
token: {
|
|
130
|
+
type: 'string',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
errors: [
|
|
136
|
+
{
|
|
137
|
+
name: 'ExpiredToken',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'InvalidToken',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
ComAtprotoAccountGet: {
|
|
147
|
+
lexicon: 1,
|
|
148
|
+
id: 'com.atproto.account.get',
|
|
149
|
+
defs: {
|
|
150
|
+
main: {
|
|
151
|
+
type: 'query',
|
|
152
|
+
description: 'Get information about an account.',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
ComAtprotoAccountRequestDelete: {
|
|
157
|
+
lexicon: 1,
|
|
158
|
+
id: 'com.atproto.account.requestDelete',
|
|
159
|
+
defs: {
|
|
160
|
+
main: {
|
|
161
|
+
type: 'procedure',
|
|
162
|
+
description: 'Initiate a user account deletion via email.',
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
ComAtprotoAccountRequestPasswordReset: {
|
|
167
|
+
lexicon: 1,
|
|
168
|
+
id: 'com.atproto.account.requestPasswordReset',
|
|
169
|
+
defs: {
|
|
170
|
+
main: {
|
|
171
|
+
type: 'procedure',
|
|
172
|
+
description: 'Initiate a user account password reset via email.',
|
|
173
|
+
input: {
|
|
174
|
+
encoding: 'application/json',
|
|
175
|
+
schema: {
|
|
176
|
+
type: 'object',
|
|
177
|
+
required: ['email'],
|
|
178
|
+
properties: {
|
|
179
|
+
email: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
ComAtprotoAccountResetPassword: {
|
|
189
|
+
lexicon: 1,
|
|
190
|
+
id: 'com.atproto.account.resetPassword',
|
|
191
|
+
defs: {
|
|
192
|
+
main: {
|
|
193
|
+
type: 'procedure',
|
|
194
|
+
description: 'Reset a user account password using a token.',
|
|
195
|
+
input: {
|
|
196
|
+
encoding: 'application/json',
|
|
197
|
+
schema: {
|
|
198
|
+
type: 'object',
|
|
199
|
+
required: ['token', 'password'],
|
|
200
|
+
properties: {
|
|
201
|
+
token: {
|
|
202
|
+
type: 'string',
|
|
203
|
+
},
|
|
204
|
+
password: {
|
|
205
|
+
type: 'string',
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
errors: [
|
|
211
|
+
{
|
|
212
|
+
name: 'ExpiredToken',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'InvalidToken',
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
ComAtprotoAdminGetModerationAction: {
|
|
222
|
+
lexicon: 1,
|
|
223
|
+
id: 'com.atproto.admin.getModerationAction',
|
|
224
|
+
defs: {
|
|
225
|
+
main: {
|
|
226
|
+
type: 'query',
|
|
227
|
+
description: 'View details about a moderation action.',
|
|
228
|
+
parameters: {
|
|
229
|
+
type: 'params',
|
|
230
|
+
required: ['id'],
|
|
231
|
+
properties: {
|
|
232
|
+
id: {
|
|
233
|
+
type: 'number',
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
output: {
|
|
238
|
+
encoding: 'application/json',
|
|
239
|
+
schema: {
|
|
240
|
+
type: 'ref',
|
|
241
|
+
ref: 'lex:com.atproto.admin.moderationAction#viewDetail',
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
ComAtprotoAdminGetModerationActions: {
|
|
248
|
+
lexicon: 1,
|
|
249
|
+
id: 'com.atproto.admin.getModerationActions',
|
|
250
|
+
defs: {
|
|
251
|
+
main: {
|
|
252
|
+
type: 'query',
|
|
253
|
+
description: 'List moderation actions related to a subject.',
|
|
254
|
+
parameters: {
|
|
255
|
+
type: 'params',
|
|
256
|
+
properties: {
|
|
257
|
+
subject: {
|
|
258
|
+
type: 'string',
|
|
259
|
+
},
|
|
260
|
+
limit: {
|
|
261
|
+
type: 'integer',
|
|
262
|
+
minimum: 1,
|
|
263
|
+
maximum: 100,
|
|
264
|
+
default: 50,
|
|
265
|
+
},
|
|
266
|
+
before: {
|
|
267
|
+
type: 'string',
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
output: {
|
|
272
|
+
encoding: 'application/json',
|
|
273
|
+
schema: {
|
|
274
|
+
type: 'object',
|
|
275
|
+
required: ['actions'],
|
|
276
|
+
properties: {
|
|
277
|
+
cursor: {
|
|
278
|
+
type: 'string',
|
|
279
|
+
},
|
|
280
|
+
actions: {
|
|
281
|
+
type: 'array',
|
|
282
|
+
items: {
|
|
283
|
+
type: 'ref',
|
|
284
|
+
ref: 'lex:com.atproto.admin.moderationAction#view',
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
ComAtprotoAdminGetModerationReport: {
|
|
294
|
+
lexicon: 1,
|
|
295
|
+
id: 'com.atproto.admin.getModerationReport',
|
|
296
|
+
defs: {
|
|
297
|
+
main: {
|
|
298
|
+
type: 'query',
|
|
299
|
+
description: 'View details about a moderation report.',
|
|
300
|
+
parameters: {
|
|
301
|
+
type: 'params',
|
|
302
|
+
required: ['id'],
|
|
303
|
+
properties: {
|
|
304
|
+
id: {
|
|
305
|
+
type: 'number',
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
output: {
|
|
310
|
+
encoding: 'application/json',
|
|
311
|
+
schema: {
|
|
312
|
+
type: 'ref',
|
|
313
|
+
ref: 'lex:com.atproto.admin.moderationReport#viewDetail',
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
ComAtprotoAdminGetModerationReports: {
|
|
320
|
+
lexicon: 1,
|
|
321
|
+
id: 'com.atproto.admin.getModerationReports',
|
|
322
|
+
defs: {
|
|
323
|
+
main: {
|
|
324
|
+
type: 'query',
|
|
325
|
+
description: 'List moderation reports related to a subject.',
|
|
326
|
+
parameters: {
|
|
327
|
+
type: 'params',
|
|
328
|
+
properties: {
|
|
329
|
+
subject: {
|
|
330
|
+
type: 'string',
|
|
331
|
+
},
|
|
332
|
+
resolved: {
|
|
333
|
+
type: 'boolean',
|
|
334
|
+
},
|
|
335
|
+
limit: {
|
|
336
|
+
type: 'integer',
|
|
337
|
+
minimum: 1,
|
|
338
|
+
maximum: 100,
|
|
339
|
+
default: 50,
|
|
340
|
+
},
|
|
341
|
+
before: {
|
|
342
|
+
type: 'string',
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
output: {
|
|
347
|
+
encoding: 'application/json',
|
|
348
|
+
schema: {
|
|
349
|
+
type: 'object',
|
|
350
|
+
required: ['reports'],
|
|
351
|
+
properties: {
|
|
352
|
+
cursor: {
|
|
353
|
+
type: 'string',
|
|
354
|
+
},
|
|
355
|
+
reports: {
|
|
356
|
+
type: 'array',
|
|
357
|
+
items: {
|
|
358
|
+
type: 'ref',
|
|
359
|
+
ref: 'lex:com.atproto.admin.moderationReport#view',
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
ComAtprotoAdminGetRecord: {
|
|
369
|
+
lexicon: 1,
|
|
370
|
+
id: 'com.atproto.admin.getRecord',
|
|
371
|
+
defs: {
|
|
372
|
+
main: {
|
|
373
|
+
type: 'query',
|
|
374
|
+
description: 'View details about a record.',
|
|
375
|
+
parameters: {
|
|
376
|
+
type: 'params',
|
|
377
|
+
required: ['uri'],
|
|
378
|
+
properties: {
|
|
379
|
+
uri: {
|
|
380
|
+
type: 'string',
|
|
381
|
+
},
|
|
382
|
+
cid: {
|
|
383
|
+
type: 'string',
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
output: {
|
|
388
|
+
encoding: 'application/json',
|
|
389
|
+
schema: {
|
|
390
|
+
type: 'ref',
|
|
391
|
+
ref: 'lex:com.atproto.admin.record#viewDetail',
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
ComAtprotoAdminGetRepo: {
|
|
398
|
+
lexicon: 1,
|
|
399
|
+
id: 'com.atproto.admin.getRepo',
|
|
400
|
+
defs: {
|
|
401
|
+
main: {
|
|
402
|
+
type: 'query',
|
|
403
|
+
description: 'View details about a repository.',
|
|
404
|
+
parameters: {
|
|
405
|
+
type: 'params',
|
|
406
|
+
required: ['did'],
|
|
407
|
+
properties: {
|
|
408
|
+
did: {
|
|
409
|
+
type: 'string',
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
output: {
|
|
414
|
+
encoding: 'application/json',
|
|
415
|
+
schema: {
|
|
416
|
+
type: 'ref',
|
|
417
|
+
ref: 'lex:com.atproto.admin.repo#viewDetail',
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
},
|
|
423
|
+
ComAtprotoAdminModerationAction: {
|
|
424
|
+
lexicon: 1,
|
|
425
|
+
id: 'com.atproto.admin.moderationAction',
|
|
426
|
+
defs: {
|
|
427
|
+
view: {
|
|
428
|
+
type: 'object',
|
|
429
|
+
required: [
|
|
430
|
+
'id',
|
|
431
|
+
'action',
|
|
432
|
+
'subject',
|
|
433
|
+
'reason',
|
|
434
|
+
'createdBy',
|
|
435
|
+
'createdAt',
|
|
436
|
+
'resolvedReportIds',
|
|
437
|
+
],
|
|
438
|
+
properties: {
|
|
439
|
+
id: {
|
|
440
|
+
type: 'integer',
|
|
441
|
+
},
|
|
442
|
+
action: {
|
|
443
|
+
type: 'string',
|
|
444
|
+
knownValues: [
|
|
445
|
+
'com.atproto.admin.moderationAction#takedown',
|
|
446
|
+
'com.atproto.admin.moderationAction#flag',
|
|
447
|
+
'com.atproto.admin.moderationAction#acknowledge',
|
|
448
|
+
],
|
|
449
|
+
},
|
|
450
|
+
subject: {
|
|
451
|
+
type: 'union',
|
|
452
|
+
refs: [
|
|
453
|
+
'lex:com.atproto.repo.repoRef',
|
|
454
|
+
'lex:com.atproto.repo.strongRef',
|
|
455
|
+
],
|
|
456
|
+
},
|
|
457
|
+
reason: {
|
|
458
|
+
type: 'string',
|
|
459
|
+
},
|
|
460
|
+
createdBy: {
|
|
461
|
+
type: 'string',
|
|
462
|
+
},
|
|
463
|
+
createdAt: {
|
|
464
|
+
type: 'string',
|
|
465
|
+
},
|
|
466
|
+
reversal: {
|
|
467
|
+
type: 'ref',
|
|
468
|
+
ref: 'lex:com.atproto.admin.moderationAction#reversal',
|
|
469
|
+
},
|
|
470
|
+
resolvedReportIds: {
|
|
471
|
+
type: 'array',
|
|
472
|
+
items: {
|
|
473
|
+
type: 'integer',
|
|
474
|
+
},
|
|
475
|
+
},
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
viewDetail: {
|
|
479
|
+
type: 'object',
|
|
480
|
+
required: [
|
|
481
|
+
'id',
|
|
482
|
+
'action',
|
|
483
|
+
'subject',
|
|
484
|
+
'reason',
|
|
485
|
+
'createdBy',
|
|
486
|
+
'createdAt',
|
|
487
|
+
'resolvedReports',
|
|
488
|
+
],
|
|
489
|
+
properties: {
|
|
490
|
+
id: {
|
|
491
|
+
type: 'integer',
|
|
492
|
+
},
|
|
493
|
+
action: {
|
|
494
|
+
type: 'string',
|
|
495
|
+
knownValues: [
|
|
496
|
+
'com.atproto.admin.moderationAction#takedown',
|
|
497
|
+
'com.atproto.admin.moderationAction#flag',
|
|
498
|
+
'com.atproto.admin.moderationAction#acknowledge',
|
|
499
|
+
],
|
|
500
|
+
},
|
|
501
|
+
subject: {
|
|
502
|
+
type: 'union',
|
|
503
|
+
refs: [
|
|
504
|
+
'lex:com.atproto.admin.repo#view',
|
|
505
|
+
'lex:com.atproto.admin.record#view',
|
|
506
|
+
],
|
|
507
|
+
},
|
|
508
|
+
reason: {
|
|
509
|
+
type: 'string',
|
|
510
|
+
},
|
|
511
|
+
createdBy: {
|
|
512
|
+
type: 'string',
|
|
513
|
+
},
|
|
514
|
+
createdAt: {
|
|
515
|
+
type: 'string',
|
|
516
|
+
},
|
|
517
|
+
reversal: {
|
|
518
|
+
type: 'ref',
|
|
519
|
+
ref: 'lex:com.atproto.admin.moderationAction#reversal',
|
|
520
|
+
},
|
|
521
|
+
resolvedReports: {
|
|
522
|
+
type: 'array',
|
|
523
|
+
items: {
|
|
524
|
+
type: 'ref',
|
|
525
|
+
ref: 'lex:com.atproto.admin.moderationReport#view',
|
|
526
|
+
},
|
|
527
|
+
},
|
|
528
|
+
},
|
|
529
|
+
},
|
|
530
|
+
reversal: {
|
|
531
|
+
type: 'object',
|
|
532
|
+
required: ['reason', 'createdBy', 'createdAt'],
|
|
533
|
+
properties: {
|
|
534
|
+
reason: {
|
|
535
|
+
type: 'string',
|
|
536
|
+
},
|
|
537
|
+
createdBy: {
|
|
538
|
+
type: 'string',
|
|
539
|
+
},
|
|
540
|
+
createdAt: {
|
|
541
|
+
type: 'string',
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
takedown: {
|
|
546
|
+
type: 'token',
|
|
547
|
+
description:
|
|
548
|
+
'Moderation action type: Takedown. Indicates that content should not be served by the PDS.',
|
|
549
|
+
},
|
|
550
|
+
flag: {
|
|
551
|
+
type: 'token',
|
|
552
|
+
description:
|
|
553
|
+
'Moderation action type: Flag. Indicates that the content was reviewed and considered to violate PDS rules, but may still be served.',
|
|
554
|
+
},
|
|
555
|
+
acknowledge: {
|
|
556
|
+
type: 'token',
|
|
557
|
+
description:
|
|
558
|
+
'Moderation action type: Acknowledge. Indicates that the content was reviewed and not considered to violate PDS rules.',
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
ComAtprotoAdminModerationReport: {
|
|
563
|
+
lexicon: 1,
|
|
564
|
+
id: 'com.atproto.admin.moderationReport',
|
|
565
|
+
defs: {
|
|
566
|
+
view: {
|
|
567
|
+
type: 'object',
|
|
568
|
+
required: [
|
|
569
|
+
'id',
|
|
570
|
+
'reasonType',
|
|
571
|
+
'subject',
|
|
572
|
+
'reportedByDid',
|
|
573
|
+
'createdAt',
|
|
574
|
+
'resolvedByActionIds',
|
|
575
|
+
],
|
|
576
|
+
properties: {
|
|
577
|
+
id: {
|
|
578
|
+
type: 'integer',
|
|
579
|
+
},
|
|
580
|
+
reasonType: {
|
|
581
|
+
type: 'ref',
|
|
582
|
+
ref: 'lex:com.atproto.report.reasonType',
|
|
583
|
+
},
|
|
584
|
+
reason: {
|
|
585
|
+
type: 'string',
|
|
586
|
+
},
|
|
587
|
+
subject: {
|
|
588
|
+
type: 'union',
|
|
589
|
+
refs: [
|
|
590
|
+
'lex:com.atproto.repo.repoRef',
|
|
591
|
+
'lex:com.atproto.repo.strongRef',
|
|
592
|
+
],
|
|
593
|
+
},
|
|
594
|
+
reportedByDid: {
|
|
595
|
+
type: 'string',
|
|
596
|
+
},
|
|
597
|
+
createdAt: {
|
|
598
|
+
type: 'datetime',
|
|
599
|
+
},
|
|
600
|
+
resolvedByActionIds: {
|
|
601
|
+
type: 'array',
|
|
602
|
+
items: {
|
|
603
|
+
type: 'integer',
|
|
604
|
+
},
|
|
605
|
+
},
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
viewDetail: {
|
|
609
|
+
type: 'object',
|
|
610
|
+
required: [
|
|
611
|
+
'id',
|
|
612
|
+
'reasonType',
|
|
613
|
+
'subject',
|
|
614
|
+
'reportedByDid',
|
|
615
|
+
'createdAt',
|
|
616
|
+
'resolvedByActions',
|
|
617
|
+
],
|
|
618
|
+
properties: {
|
|
619
|
+
id: {
|
|
620
|
+
type: 'integer',
|
|
621
|
+
},
|
|
622
|
+
reasonType: {
|
|
623
|
+
type: 'ref',
|
|
624
|
+
ref: 'lex:com.atproto.report.reasonType',
|
|
625
|
+
},
|
|
626
|
+
reason: {
|
|
627
|
+
type: 'string',
|
|
628
|
+
},
|
|
629
|
+
subject: {
|
|
630
|
+
type: 'union',
|
|
631
|
+
refs: [
|
|
632
|
+
'lex:com.atproto.admin.repo#view',
|
|
633
|
+
'lex:com.atproto.admin.record#view',
|
|
634
|
+
],
|
|
635
|
+
},
|
|
636
|
+
reportedByDid: {
|
|
637
|
+
type: 'string',
|
|
638
|
+
},
|
|
639
|
+
createdAt: {
|
|
640
|
+
type: 'datetime',
|
|
641
|
+
},
|
|
642
|
+
resolvedByActions: {
|
|
643
|
+
type: 'array',
|
|
644
|
+
items: {
|
|
645
|
+
type: 'ref',
|
|
646
|
+
ref: 'lex:com.atproto.admin.moderationAction#view',
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
},
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
},
|
|
653
|
+
ComAtprotoAdminRecord: {
|
|
654
|
+
lexicon: 1,
|
|
655
|
+
id: 'com.atproto.admin.record',
|
|
656
|
+
defs: {
|
|
657
|
+
view: {
|
|
658
|
+
type: 'object',
|
|
659
|
+
required: ['uri', 'cid', 'value', 'indexedAt', 'moderation', 'repo'],
|
|
660
|
+
properties: {
|
|
661
|
+
uri: {
|
|
662
|
+
type: 'string',
|
|
663
|
+
},
|
|
664
|
+
cid: {
|
|
665
|
+
type: 'string',
|
|
666
|
+
},
|
|
667
|
+
value: {
|
|
668
|
+
type: 'unknown',
|
|
669
|
+
},
|
|
670
|
+
indexedAt: {
|
|
671
|
+
type: 'string',
|
|
672
|
+
},
|
|
673
|
+
moderation: {
|
|
674
|
+
type: 'ref',
|
|
675
|
+
ref: 'lex:com.atproto.admin.record#moderation',
|
|
676
|
+
},
|
|
677
|
+
repo: {
|
|
678
|
+
type: 'ref',
|
|
679
|
+
ref: 'lex:com.atproto.admin.repo#view',
|
|
680
|
+
},
|
|
681
|
+
},
|
|
682
|
+
},
|
|
683
|
+
viewDetail: {
|
|
684
|
+
type: 'object',
|
|
685
|
+
required: ['uri', 'cid', 'value', 'indexedAt', 'moderation', 'repo'],
|
|
686
|
+
properties: {
|
|
687
|
+
uri: {
|
|
688
|
+
type: 'string',
|
|
689
|
+
},
|
|
690
|
+
cid: {
|
|
691
|
+
type: 'string',
|
|
692
|
+
},
|
|
693
|
+
value: {
|
|
694
|
+
type: 'unknown',
|
|
695
|
+
},
|
|
696
|
+
indexedAt: {
|
|
697
|
+
type: 'string',
|
|
698
|
+
},
|
|
699
|
+
moderation: {
|
|
700
|
+
type: 'ref',
|
|
701
|
+
ref: 'lex:com.atproto.admin.record#moderationDetail',
|
|
702
|
+
},
|
|
703
|
+
repo: {
|
|
704
|
+
type: 'ref',
|
|
705
|
+
ref: 'lex:com.atproto.admin.repo#view',
|
|
706
|
+
},
|
|
707
|
+
},
|
|
708
|
+
},
|
|
709
|
+
moderation: {
|
|
710
|
+
type: 'object',
|
|
711
|
+
required: [],
|
|
712
|
+
properties: {
|
|
713
|
+
takedownId: {
|
|
714
|
+
type: 'integer',
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
},
|
|
718
|
+
moderationDetail: {
|
|
719
|
+
type: 'object',
|
|
720
|
+
required: ['actions', 'reports'],
|
|
721
|
+
properties: {
|
|
722
|
+
actions: {
|
|
723
|
+
type: 'array',
|
|
724
|
+
items: {
|
|
725
|
+
type: 'ref',
|
|
726
|
+
ref: 'lex:com.atproto.admin.moderationAction#view',
|
|
727
|
+
},
|
|
728
|
+
},
|
|
729
|
+
reports: {
|
|
730
|
+
type: 'array',
|
|
731
|
+
items: {
|
|
732
|
+
type: 'ref',
|
|
733
|
+
ref: 'lex:com.atproto.admin.moderationReport#view',
|
|
734
|
+
},
|
|
735
|
+
},
|
|
736
|
+
takedownId: {
|
|
737
|
+
type: 'integer',
|
|
738
|
+
},
|
|
739
|
+
},
|
|
740
|
+
},
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
ComAtprotoAdminRepo: {
|
|
744
|
+
lexicon: 1,
|
|
745
|
+
id: 'com.atproto.admin.repo',
|
|
746
|
+
defs: {
|
|
747
|
+
view: {
|
|
748
|
+
type: 'object',
|
|
749
|
+
required: [
|
|
750
|
+
'did',
|
|
751
|
+
'handle',
|
|
752
|
+
'relatedRecords',
|
|
753
|
+
'indexedAt',
|
|
754
|
+
'moderation',
|
|
755
|
+
],
|
|
756
|
+
properties: {
|
|
757
|
+
did: {
|
|
758
|
+
type: 'string',
|
|
759
|
+
},
|
|
760
|
+
handle: {
|
|
761
|
+
type: 'string',
|
|
762
|
+
},
|
|
763
|
+
account: {
|
|
764
|
+
type: 'ref',
|
|
765
|
+
ref: 'lex:com.atproto.admin.repo#account',
|
|
766
|
+
},
|
|
767
|
+
relatedRecords: {
|
|
768
|
+
type: 'array',
|
|
769
|
+
items: {
|
|
770
|
+
type: 'unknown',
|
|
771
|
+
},
|
|
772
|
+
},
|
|
773
|
+
indexedAt: {
|
|
774
|
+
type: 'string',
|
|
775
|
+
},
|
|
776
|
+
moderation: {
|
|
777
|
+
type: 'ref',
|
|
778
|
+
ref: 'lex:com.atproto.admin.repo#moderation',
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
},
|
|
782
|
+
viewDetail: {
|
|
783
|
+
type: 'object',
|
|
784
|
+
required: [
|
|
785
|
+
'did',
|
|
786
|
+
'handle',
|
|
787
|
+
'relatedRecords',
|
|
788
|
+
'indexedAt',
|
|
789
|
+
'moderation',
|
|
790
|
+
],
|
|
791
|
+
properties: {
|
|
792
|
+
did: {
|
|
793
|
+
type: 'string',
|
|
794
|
+
},
|
|
795
|
+
handle: {
|
|
796
|
+
type: 'string',
|
|
797
|
+
},
|
|
798
|
+
account: {
|
|
799
|
+
type: 'ref',
|
|
800
|
+
ref: 'lex:com.atproto.admin.repo#account',
|
|
801
|
+
},
|
|
802
|
+
relatedRecords: {
|
|
803
|
+
type: 'array',
|
|
804
|
+
items: {
|
|
805
|
+
type: 'unknown',
|
|
806
|
+
},
|
|
807
|
+
},
|
|
808
|
+
indexedAt: {
|
|
809
|
+
type: 'string',
|
|
810
|
+
},
|
|
811
|
+
moderation: {
|
|
812
|
+
type: 'ref',
|
|
813
|
+
ref: 'lex:com.atproto.admin.repo#moderationDetail',
|
|
814
|
+
},
|
|
815
|
+
},
|
|
816
|
+
},
|
|
817
|
+
account: {
|
|
818
|
+
type: 'object',
|
|
819
|
+
required: ['email'],
|
|
820
|
+
properties: {
|
|
821
|
+
email: {
|
|
822
|
+
type: 'string',
|
|
823
|
+
},
|
|
824
|
+
},
|
|
825
|
+
},
|
|
826
|
+
moderation: {
|
|
827
|
+
type: 'object',
|
|
828
|
+
required: [],
|
|
829
|
+
properties: {
|
|
830
|
+
takedownId: {
|
|
831
|
+
type: 'integer',
|
|
832
|
+
},
|
|
833
|
+
},
|
|
834
|
+
},
|
|
835
|
+
moderationDetail: {
|
|
836
|
+
type: 'object',
|
|
837
|
+
required: ['actions', 'reports'],
|
|
838
|
+
properties: {
|
|
839
|
+
actions: {
|
|
840
|
+
type: 'array',
|
|
841
|
+
items: {
|
|
842
|
+
type: 'ref',
|
|
843
|
+
ref: 'lex:com.atproto.admin.moderationAction#view',
|
|
844
|
+
},
|
|
845
|
+
},
|
|
846
|
+
reports: {
|
|
847
|
+
type: 'array',
|
|
848
|
+
items: {
|
|
849
|
+
type: 'ref',
|
|
850
|
+
ref: 'lex:com.atproto.admin.moderationReport#view',
|
|
851
|
+
},
|
|
852
|
+
},
|
|
853
|
+
takedownId: {
|
|
854
|
+
type: 'integer',
|
|
855
|
+
},
|
|
856
|
+
},
|
|
117
857
|
},
|
|
118
858
|
},
|
|
119
859
|
},
|
|
120
|
-
|
|
860
|
+
ComAtprotoAdminResolveModerationReports: {
|
|
121
861
|
lexicon: 1,
|
|
122
|
-
id: 'com.atproto.
|
|
862
|
+
id: 'com.atproto.admin.resolveModerationReports',
|
|
123
863
|
defs: {
|
|
124
864
|
main: {
|
|
125
|
-
type: '
|
|
126
|
-
description: '
|
|
865
|
+
type: 'procedure',
|
|
866
|
+
description: 'Resolve moderation reports by an action.',
|
|
867
|
+
input: {
|
|
868
|
+
encoding: 'application/json',
|
|
869
|
+
schema: {
|
|
870
|
+
type: 'object',
|
|
871
|
+
required: ['actionId', 'reportIds', 'createdBy'],
|
|
872
|
+
properties: {
|
|
873
|
+
actionId: {
|
|
874
|
+
type: 'integer',
|
|
875
|
+
},
|
|
876
|
+
reportIds: {
|
|
877
|
+
type: 'array',
|
|
878
|
+
items: {
|
|
879
|
+
type: 'integer',
|
|
880
|
+
},
|
|
881
|
+
},
|
|
882
|
+
createdBy: {
|
|
883
|
+
type: 'string',
|
|
884
|
+
},
|
|
885
|
+
},
|
|
886
|
+
},
|
|
887
|
+
},
|
|
888
|
+
output: {
|
|
889
|
+
encoding: 'application/json',
|
|
890
|
+
schema: {
|
|
891
|
+
type: 'ref',
|
|
892
|
+
ref: 'lex:com.atproto.admin.moderationAction#view',
|
|
893
|
+
},
|
|
894
|
+
},
|
|
127
895
|
},
|
|
128
896
|
},
|
|
129
897
|
},
|
|
130
|
-
|
|
898
|
+
ComAtprotoAdminReverseModerationAction: {
|
|
131
899
|
lexicon: 1,
|
|
132
|
-
id: 'com.atproto.
|
|
900
|
+
id: 'com.atproto.admin.reverseModerationAction',
|
|
133
901
|
defs: {
|
|
134
902
|
main: {
|
|
135
903
|
type: 'procedure',
|
|
136
|
-
description: '
|
|
904
|
+
description: 'Reverse a moderation action.',
|
|
137
905
|
input: {
|
|
138
906
|
encoding: 'application/json',
|
|
139
907
|
schema: {
|
|
140
908
|
type: 'object',
|
|
141
|
-
required: ['
|
|
909
|
+
required: ['id', 'reason', 'createdBy'],
|
|
142
910
|
properties: {
|
|
143
|
-
|
|
911
|
+
id: {
|
|
912
|
+
type: 'integer',
|
|
913
|
+
},
|
|
914
|
+
reason: {
|
|
915
|
+
type: 'string',
|
|
916
|
+
},
|
|
917
|
+
createdBy: {
|
|
144
918
|
type: 'string',
|
|
145
919
|
},
|
|
146
920
|
},
|
|
147
921
|
},
|
|
148
922
|
},
|
|
923
|
+
output: {
|
|
924
|
+
encoding: 'application/json',
|
|
925
|
+
schema: {
|
|
926
|
+
type: 'ref',
|
|
927
|
+
ref: 'lex:com.atproto.admin.moderationAction#view',
|
|
928
|
+
},
|
|
929
|
+
},
|
|
149
930
|
},
|
|
150
931
|
},
|
|
151
932
|
},
|
|
152
|
-
|
|
933
|
+
ComAtprotoAdminSearchRepos: {
|
|
153
934
|
lexicon: 1,
|
|
154
|
-
id: 'com.atproto.
|
|
935
|
+
id: 'com.atproto.admin.searchRepos',
|
|
936
|
+
defs: {
|
|
937
|
+
main: {
|
|
938
|
+
type: 'query',
|
|
939
|
+
description: 'Find repositories based on a search term.',
|
|
940
|
+
parameters: {
|
|
941
|
+
type: 'params',
|
|
942
|
+
properties: {
|
|
943
|
+
term: {
|
|
944
|
+
type: 'string',
|
|
945
|
+
},
|
|
946
|
+
limit: {
|
|
947
|
+
type: 'integer',
|
|
948
|
+
minimum: 1,
|
|
949
|
+
maximum: 100,
|
|
950
|
+
default: 50,
|
|
951
|
+
},
|
|
952
|
+
before: {
|
|
953
|
+
type: 'string',
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
},
|
|
957
|
+
output: {
|
|
958
|
+
encoding: 'application/json',
|
|
959
|
+
schema: {
|
|
960
|
+
type: 'object',
|
|
961
|
+
required: ['repos'],
|
|
962
|
+
properties: {
|
|
963
|
+
cursor: {
|
|
964
|
+
type: 'string',
|
|
965
|
+
},
|
|
966
|
+
repos: {
|
|
967
|
+
type: 'array',
|
|
968
|
+
items: {
|
|
969
|
+
type: 'ref',
|
|
970
|
+
ref: 'lex:com.atproto.admin.repo#view',
|
|
971
|
+
},
|
|
972
|
+
},
|
|
973
|
+
},
|
|
974
|
+
},
|
|
975
|
+
},
|
|
976
|
+
},
|
|
977
|
+
},
|
|
978
|
+
},
|
|
979
|
+
ComAtprotoAdminTakeModerationAction: {
|
|
980
|
+
lexicon: 1,
|
|
981
|
+
id: 'com.atproto.admin.takeModerationAction',
|
|
155
982
|
defs: {
|
|
156
983
|
main: {
|
|
157
984
|
type: 'procedure',
|
|
158
|
-
description: '
|
|
985
|
+
description: 'Take a moderation action on a repo.',
|
|
159
986
|
input: {
|
|
160
987
|
encoding: 'application/json',
|
|
161
988
|
schema: {
|
|
162
989
|
type: 'object',
|
|
163
|
-
required: ['
|
|
990
|
+
required: ['action', 'subject', 'reason', 'createdBy'],
|
|
164
991
|
properties: {
|
|
165
|
-
|
|
992
|
+
action: {
|
|
166
993
|
type: 'string',
|
|
994
|
+
knownValues: [
|
|
995
|
+
'com.atproto.admin.moderationAction#takedown',
|
|
996
|
+
'com.atproto.admin.moderationAction#flag',
|
|
997
|
+
'com.atproto.admin.moderationAction#acknowledge',
|
|
998
|
+
],
|
|
167
999
|
},
|
|
168
|
-
|
|
1000
|
+
subject: {
|
|
1001
|
+
type: 'union',
|
|
1002
|
+
refs: [
|
|
1003
|
+
'lex:com.atproto.repo.repoRef',
|
|
1004
|
+
'lex:com.atproto.repo.recordRef',
|
|
1005
|
+
],
|
|
1006
|
+
},
|
|
1007
|
+
reason: {
|
|
1008
|
+
type: 'string',
|
|
1009
|
+
},
|
|
1010
|
+
createdBy: {
|
|
169
1011
|
type: 'string',
|
|
170
1012
|
},
|
|
171
1013
|
},
|
|
172
1014
|
},
|
|
173
1015
|
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
name: 'InvalidToken',
|
|
1016
|
+
output: {
|
|
1017
|
+
encoding: 'application/json',
|
|
1018
|
+
schema: {
|
|
1019
|
+
type: 'ref',
|
|
1020
|
+
ref: 'lex:com.atproto.admin.moderationAction#view',
|
|
180
1021
|
},
|
|
181
|
-
|
|
1022
|
+
},
|
|
182
1023
|
},
|
|
183
1024
|
},
|
|
184
1025
|
},
|
|
@@ -581,9 +1422,121 @@ export const schemaDict = {
|
|
|
581
1422
|
},
|
|
582
1423
|
},
|
|
583
1424
|
},
|
|
584
|
-
record: {
|
|
1425
|
+
record: {
|
|
1426
|
+
type: 'object',
|
|
1427
|
+
required: ['uri', 'cid', 'value'],
|
|
1428
|
+
properties: {
|
|
1429
|
+
uri: {
|
|
1430
|
+
type: 'string',
|
|
1431
|
+
},
|
|
1432
|
+
cid: {
|
|
1433
|
+
type: 'string',
|
|
1434
|
+
},
|
|
1435
|
+
value: {
|
|
1436
|
+
type: 'unknown',
|
|
1437
|
+
},
|
|
1438
|
+
},
|
|
1439
|
+
},
|
|
1440
|
+
},
|
|
1441
|
+
},
|
|
1442
|
+
ComAtprotoRepoPutRecord: {
|
|
1443
|
+
lexicon: 1,
|
|
1444
|
+
id: 'com.atproto.repo.putRecord',
|
|
1445
|
+
defs: {
|
|
1446
|
+
main: {
|
|
1447
|
+
type: 'procedure',
|
|
1448
|
+
description: 'Write a record.',
|
|
1449
|
+
input: {
|
|
1450
|
+
encoding: 'application/json',
|
|
1451
|
+
schema: {
|
|
1452
|
+
type: 'object',
|
|
1453
|
+
required: ['did', 'collection', 'rkey', 'record'],
|
|
1454
|
+
properties: {
|
|
1455
|
+
did: {
|
|
1456
|
+
type: 'string',
|
|
1457
|
+
description: 'The DID of the repo.',
|
|
1458
|
+
},
|
|
1459
|
+
collection: {
|
|
1460
|
+
type: 'string',
|
|
1461
|
+
description: 'The NSID of the record type.',
|
|
1462
|
+
},
|
|
1463
|
+
rkey: {
|
|
1464
|
+
type: 'string',
|
|
1465
|
+
description: 'The TID of the record.',
|
|
1466
|
+
},
|
|
1467
|
+
validate: {
|
|
1468
|
+
type: 'boolean',
|
|
1469
|
+
default: true,
|
|
1470
|
+
description: 'Validate the record?',
|
|
1471
|
+
},
|
|
1472
|
+
record: {
|
|
1473
|
+
type: 'unknown',
|
|
1474
|
+
description: 'The record to create.',
|
|
1475
|
+
},
|
|
1476
|
+
},
|
|
1477
|
+
},
|
|
1478
|
+
},
|
|
1479
|
+
output: {
|
|
1480
|
+
encoding: 'application/json',
|
|
1481
|
+
schema: {
|
|
1482
|
+
type: 'object',
|
|
1483
|
+
required: ['uri', 'cid'],
|
|
1484
|
+
properties: {
|
|
1485
|
+
uri: {
|
|
1486
|
+
type: 'string',
|
|
1487
|
+
},
|
|
1488
|
+
cid: {
|
|
1489
|
+
type: 'string',
|
|
1490
|
+
},
|
|
1491
|
+
},
|
|
1492
|
+
},
|
|
1493
|
+
},
|
|
1494
|
+
},
|
|
1495
|
+
},
|
|
1496
|
+
},
|
|
1497
|
+
ComAtprotoRepoRecordRef: {
|
|
1498
|
+
lexicon: 1,
|
|
1499
|
+
id: 'com.atproto.repo.recordRef',
|
|
1500
|
+
description: 'A URI with optional content-hash fingerprint.',
|
|
1501
|
+
defs: {
|
|
1502
|
+
main: {
|
|
1503
|
+
type: 'object',
|
|
1504
|
+
required: ['uri'],
|
|
1505
|
+
properties: {
|
|
1506
|
+
uri: {
|
|
1507
|
+
type: 'string',
|
|
1508
|
+
},
|
|
1509
|
+
cid: {
|
|
1510
|
+
type: 'string',
|
|
1511
|
+
},
|
|
1512
|
+
},
|
|
1513
|
+
},
|
|
1514
|
+
},
|
|
1515
|
+
},
|
|
1516
|
+
ComAtprotoRepoRepoRef: {
|
|
1517
|
+
lexicon: 1,
|
|
1518
|
+
id: 'com.atproto.repo.repoRef',
|
|
1519
|
+
description: 'A did identifying a repository.',
|
|
1520
|
+
defs: {
|
|
1521
|
+
main: {
|
|
1522
|
+
type: 'object',
|
|
1523
|
+
required: ['did'],
|
|
1524
|
+
properties: {
|
|
1525
|
+
did: {
|
|
1526
|
+
type: 'string',
|
|
1527
|
+
},
|
|
1528
|
+
},
|
|
1529
|
+
},
|
|
1530
|
+
},
|
|
1531
|
+
},
|
|
1532
|
+
ComAtprotoRepoStrongRef: {
|
|
1533
|
+
lexicon: 1,
|
|
1534
|
+
id: 'com.atproto.repo.strongRef',
|
|
1535
|
+
description: 'A URI with a content-hash fingerprint.',
|
|
1536
|
+
defs: {
|
|
1537
|
+
main: {
|
|
585
1538
|
type: 'object',
|
|
586
|
-
required: ['uri', 'cid'
|
|
1539
|
+
required: ['uri', 'cid'],
|
|
587
1540
|
properties: {
|
|
588
1541
|
uri: {
|
|
589
1542
|
type: 'string',
|
|
@@ -591,46 +1544,36 @@ export const schemaDict = {
|
|
|
591
1544
|
cid: {
|
|
592
1545
|
type: 'string',
|
|
593
1546
|
},
|
|
594
|
-
value: {
|
|
595
|
-
type: 'unknown',
|
|
596
|
-
},
|
|
597
1547
|
},
|
|
598
1548
|
},
|
|
599
1549
|
},
|
|
600
1550
|
},
|
|
601
|
-
|
|
1551
|
+
ComAtprotoReportCreate: {
|
|
602
1552
|
lexicon: 1,
|
|
603
|
-
id: 'com.atproto.
|
|
1553
|
+
id: 'com.atproto.report.create',
|
|
604
1554
|
defs: {
|
|
605
1555
|
main: {
|
|
606
1556
|
type: 'procedure',
|
|
607
|
-
description: '
|
|
1557
|
+
description: 'Report a repo or a record.',
|
|
608
1558
|
input: {
|
|
609
1559
|
encoding: 'application/json',
|
|
610
1560
|
schema: {
|
|
611
1561
|
type: 'object',
|
|
612
|
-
required: ['
|
|
1562
|
+
required: ['reasonType', 'subject'],
|
|
613
1563
|
properties: {
|
|
614
|
-
|
|
615
|
-
type: '
|
|
616
|
-
|
|
617
|
-
},
|
|
618
|
-
collection: {
|
|
619
|
-
type: 'string',
|
|
620
|
-
description: 'The NSID of the record type.',
|
|
1564
|
+
reasonType: {
|
|
1565
|
+
type: 'ref',
|
|
1566
|
+
ref: 'lex:com.atproto.report.reasonType',
|
|
621
1567
|
},
|
|
622
|
-
|
|
1568
|
+
reason: {
|
|
623
1569
|
type: 'string',
|
|
624
|
-
description: 'The TID of the record.',
|
|
625
|
-
},
|
|
626
|
-
validate: {
|
|
627
|
-
type: 'boolean',
|
|
628
|
-
default: true,
|
|
629
|
-
description: 'Validate the record?',
|
|
630
1570
|
},
|
|
631
|
-
|
|
632
|
-
type: '
|
|
633
|
-
|
|
1571
|
+
subject: {
|
|
1572
|
+
type: 'union',
|
|
1573
|
+
refs: [
|
|
1574
|
+
'lex:com.atproto.repo.repoRef',
|
|
1575
|
+
'lex:com.atproto.repo.recordRef',
|
|
1576
|
+
],
|
|
634
1577
|
},
|
|
635
1578
|
},
|
|
636
1579
|
},
|
|
@@ -639,26 +1582,102 @@ export const schemaDict = {
|
|
|
639
1582
|
encoding: 'application/json',
|
|
640
1583
|
schema: {
|
|
641
1584
|
type: 'object',
|
|
642
|
-
required: [
|
|
1585
|
+
required: [
|
|
1586
|
+
'id',
|
|
1587
|
+
'reasonType',
|
|
1588
|
+
'subject',
|
|
1589
|
+
'reportedByDid',
|
|
1590
|
+
'createdAt',
|
|
1591
|
+
],
|
|
643
1592
|
properties: {
|
|
644
|
-
|
|
1593
|
+
id: {
|
|
1594
|
+
type: 'integer',
|
|
1595
|
+
},
|
|
1596
|
+
reasonType: {
|
|
1597
|
+
type: 'ref',
|
|
1598
|
+
ref: 'lex:com.atproto.report.reasonType',
|
|
1599
|
+
},
|
|
1600
|
+
reason: {
|
|
645
1601
|
type: 'string',
|
|
646
1602
|
},
|
|
647
|
-
|
|
1603
|
+
subject: {
|
|
1604
|
+
type: 'union',
|
|
1605
|
+
refs: [
|
|
1606
|
+
'lex:com.atproto.repo.repoRef',
|
|
1607
|
+
'lex:com.atproto.repo.strongRef',
|
|
1608
|
+
],
|
|
1609
|
+
},
|
|
1610
|
+
reportedByDid: {
|
|
648
1611
|
type: 'string',
|
|
649
1612
|
},
|
|
1613
|
+
createdAt: {
|
|
1614
|
+
type: 'datetime',
|
|
1615
|
+
},
|
|
650
1616
|
},
|
|
651
1617
|
},
|
|
652
1618
|
},
|
|
653
1619
|
},
|
|
654
1620
|
},
|
|
655
1621
|
},
|
|
656
|
-
|
|
1622
|
+
ComAtprotoReportReasonType: {
|
|
657
1623
|
lexicon: 1,
|
|
658
|
-
id: 'com.atproto.
|
|
659
|
-
description: 'A URI with a content-hash fingerprint.',
|
|
1624
|
+
id: 'com.atproto.report.reasonType',
|
|
660
1625
|
defs: {
|
|
661
1626
|
main: {
|
|
1627
|
+
type: 'string',
|
|
1628
|
+
knownValues: [
|
|
1629
|
+
'com.atproto.report.reason#spam',
|
|
1630
|
+
'com.atproto.report.reason#other',
|
|
1631
|
+
],
|
|
1632
|
+
},
|
|
1633
|
+
spam: {
|
|
1634
|
+
type: 'token',
|
|
1635
|
+
description: 'Moderation report reason: Spam.',
|
|
1636
|
+
},
|
|
1637
|
+
other: {
|
|
1638
|
+
type: 'token',
|
|
1639
|
+
description: 'Moderation report reason: Other.',
|
|
1640
|
+
},
|
|
1641
|
+
},
|
|
1642
|
+
},
|
|
1643
|
+
ComAtprotoReportSubject: {
|
|
1644
|
+
lexicon: 1,
|
|
1645
|
+
id: 'com.atproto.report.subject',
|
|
1646
|
+
defs: {
|
|
1647
|
+
repo: {
|
|
1648
|
+
type: 'object',
|
|
1649
|
+
required: ['did'],
|
|
1650
|
+
properties: {
|
|
1651
|
+
did: {
|
|
1652
|
+
type: 'string',
|
|
1653
|
+
description: 'The DID of the repo.',
|
|
1654
|
+
},
|
|
1655
|
+
},
|
|
1656
|
+
},
|
|
1657
|
+
record: {
|
|
1658
|
+
type: 'object',
|
|
1659
|
+
required: ['did', 'collection', 'rkey'],
|
|
1660
|
+
properties: {
|
|
1661
|
+
did: {
|
|
1662
|
+
type: 'string',
|
|
1663
|
+
description: 'The DID of the repo.',
|
|
1664
|
+
},
|
|
1665
|
+
collection: {
|
|
1666
|
+
type: 'string',
|
|
1667
|
+
description: 'The NSID of the collection.',
|
|
1668
|
+
},
|
|
1669
|
+
rkey: {
|
|
1670
|
+
type: 'string',
|
|
1671
|
+
description: 'The key of the record.',
|
|
1672
|
+
},
|
|
1673
|
+
cid: {
|
|
1674
|
+
type: 'string',
|
|
1675
|
+
description:
|
|
1676
|
+
'The CID of the version of the record. If not specified, defaults to the most recent version.',
|
|
1677
|
+
},
|
|
1678
|
+
},
|
|
1679
|
+
},
|
|
1680
|
+
recordRef: {
|
|
662
1681
|
type: 'object',
|
|
663
1682
|
required: ['uri', 'cid'],
|
|
664
1683
|
properties: {
|
|
@@ -727,10 +1746,12 @@ export const schemaDict = {
|
|
|
727
1746
|
encoding: 'application/json',
|
|
728
1747
|
schema: {
|
|
729
1748
|
type: 'object',
|
|
730
|
-
required: ['
|
|
1749
|
+
required: ['password'],
|
|
731
1750
|
properties: {
|
|
732
|
-
|
|
1751
|
+
identifier: {
|
|
733
1752
|
type: 'string',
|
|
1753
|
+
description:
|
|
1754
|
+
'Handle or other identifier supported by the server for the authenticating user.',
|
|
734
1755
|
},
|
|
735
1756
|
password: {
|
|
736
1757
|
type: 'string',
|
|
@@ -759,6 +1780,11 @@ export const schemaDict = {
|
|
|
759
1780
|
},
|
|
760
1781
|
},
|
|
761
1782
|
},
|
|
1783
|
+
errors: [
|
|
1784
|
+
{
|
|
1785
|
+
name: 'AccountTakedown',
|
|
1786
|
+
},
|
|
1787
|
+
],
|
|
762
1788
|
},
|
|
763
1789
|
},
|
|
764
1790
|
},
|
|
@@ -825,12 +1851,17 @@ export const schemaDict = {
|
|
|
825
1851
|
},
|
|
826
1852
|
},
|
|
827
1853
|
},
|
|
1854
|
+
errors: [
|
|
1855
|
+
{
|
|
1856
|
+
name: 'AccountTakedown',
|
|
1857
|
+
},
|
|
1858
|
+
],
|
|
828
1859
|
},
|
|
829
1860
|
},
|
|
830
1861
|
},
|
|
831
|
-
|
|
1862
|
+
ComAtprotoSyncGetCheckout: {
|
|
832
1863
|
lexicon: 1,
|
|
833
|
-
id: 'com.atproto.sync.
|
|
1864
|
+
id: 'com.atproto.sync.getCheckout',
|
|
834
1865
|
defs: {
|
|
835
1866
|
main: {
|
|
836
1867
|
type: 'query',
|
|
@@ -843,25 +1874,26 @@ export const schemaDict = {
|
|
|
843
1874
|
type: 'string',
|
|
844
1875
|
description: 'The DID of the repo.',
|
|
845
1876
|
},
|
|
846
|
-
|
|
1877
|
+
commit: {
|
|
847
1878
|
type: 'string',
|
|
848
|
-
description:
|
|
1879
|
+
description:
|
|
1880
|
+
'The commit to get the checkout from. Defaults to current HEAD.',
|
|
849
1881
|
},
|
|
850
1882
|
},
|
|
851
1883
|
},
|
|
852
1884
|
output: {
|
|
853
|
-
encoding: 'application/
|
|
1885
|
+
encoding: 'application/vnd.ipld.car',
|
|
854
1886
|
},
|
|
855
1887
|
},
|
|
856
1888
|
},
|
|
857
1889
|
},
|
|
858
|
-
|
|
1890
|
+
ComAtprotoSyncGetCommitPath: {
|
|
859
1891
|
lexicon: 1,
|
|
860
|
-
id: 'com.atproto.sync.
|
|
1892
|
+
id: 'com.atproto.sync.getCommitPath',
|
|
861
1893
|
defs: {
|
|
862
1894
|
main: {
|
|
863
1895
|
type: 'query',
|
|
864
|
-
description: 'Gets the
|
|
1896
|
+
description: 'Gets the path of repo commits',
|
|
865
1897
|
parameters: {
|
|
866
1898
|
type: 'params',
|
|
867
1899
|
required: ['did'],
|
|
@@ -870,16 +1902,27 @@ export const schemaDict = {
|
|
|
870
1902
|
type: 'string',
|
|
871
1903
|
description: 'The DID of the repo.',
|
|
872
1904
|
},
|
|
1905
|
+
latest: {
|
|
1906
|
+
type: 'string',
|
|
1907
|
+
description: 'The most recent commit',
|
|
1908
|
+
},
|
|
1909
|
+
earliest: {
|
|
1910
|
+
type: 'string',
|
|
1911
|
+
description: 'The earliest commit to start from',
|
|
1912
|
+
},
|
|
873
1913
|
},
|
|
874
1914
|
},
|
|
875
1915
|
output: {
|
|
876
1916
|
encoding: 'application/json',
|
|
877
1917
|
schema: {
|
|
878
1918
|
type: 'object',
|
|
879
|
-
required: ['
|
|
1919
|
+
required: ['commits'],
|
|
880
1920
|
properties: {
|
|
881
|
-
|
|
882
|
-
type: '
|
|
1921
|
+
commits: {
|
|
1922
|
+
type: 'array',
|
|
1923
|
+
items: {
|
|
1924
|
+
type: 'string',
|
|
1925
|
+
},
|
|
883
1926
|
},
|
|
884
1927
|
},
|
|
885
1928
|
},
|
|
@@ -887,13 +1930,13 @@ export const schemaDict = {
|
|
|
887
1930
|
},
|
|
888
1931
|
},
|
|
889
1932
|
},
|
|
890
|
-
|
|
1933
|
+
ComAtprotoSyncGetHead: {
|
|
891
1934
|
lexicon: 1,
|
|
892
|
-
id: 'com.atproto.sync.
|
|
1935
|
+
id: 'com.atproto.sync.getHead',
|
|
893
1936
|
defs: {
|
|
894
1937
|
main: {
|
|
895
|
-
type: '
|
|
896
|
-
description: '
|
|
1938
|
+
type: 'query',
|
|
1939
|
+
description: 'Gets the current HEAD CID of a repo.',
|
|
897
1940
|
parameters: {
|
|
898
1941
|
type: 'params',
|
|
899
1942
|
required: ['did'],
|
|
@@ -904,61 +1947,79 @@ export const schemaDict = {
|
|
|
904
1947
|
},
|
|
905
1948
|
},
|
|
906
1949
|
},
|
|
907
|
-
|
|
908
|
-
encoding: 'application/
|
|
1950
|
+
output: {
|
|
1951
|
+
encoding: 'application/json',
|
|
1952
|
+
schema: {
|
|
1953
|
+
type: 'object',
|
|
1954
|
+
required: ['root'],
|
|
1955
|
+
properties: {
|
|
1956
|
+
root: {
|
|
1957
|
+
type: 'string',
|
|
1958
|
+
},
|
|
1959
|
+
},
|
|
1960
|
+
},
|
|
909
1961
|
},
|
|
910
1962
|
},
|
|
911
1963
|
},
|
|
912
1964
|
},
|
|
913
|
-
|
|
1965
|
+
ComAtprotoSyncGetRecord: {
|
|
914
1966
|
lexicon: 1,
|
|
915
|
-
id: '
|
|
1967
|
+
id: 'com.atproto.sync.getRecord',
|
|
916
1968
|
defs: {
|
|
917
1969
|
main: {
|
|
918
|
-
type: '
|
|
919
|
-
description:
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
1970
|
+
type: 'query',
|
|
1971
|
+
description:
|
|
1972
|
+
'Gets blocks needed for existence or non-existence of record.',
|
|
1973
|
+
parameters: {
|
|
1974
|
+
type: 'params',
|
|
1975
|
+
required: ['did', 'collection', 'rkey'],
|
|
1976
|
+
properties: {
|
|
1977
|
+
did: {
|
|
1978
|
+
type: 'string',
|
|
1979
|
+
description: 'The DID of the repo.',
|
|
1980
|
+
},
|
|
1981
|
+
collection: {
|
|
1982
|
+
type: 'string',
|
|
1983
|
+
},
|
|
1984
|
+
rkey: {
|
|
1985
|
+
type: 'string',
|
|
1986
|
+
},
|
|
1987
|
+
commit: {
|
|
1988
|
+
type: 'string',
|
|
1989
|
+
description: 'An optional past commit CID.',
|
|
932
1990
|
},
|
|
933
1991
|
},
|
|
934
1992
|
},
|
|
935
1993
|
output: {
|
|
936
|
-
encoding: 'application/
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1994
|
+
encoding: 'application/vnd.ipld.car',
|
|
1995
|
+
},
|
|
1996
|
+
},
|
|
1997
|
+
},
|
|
1998
|
+
},
|
|
1999
|
+
ComAtprotoSyncGetRepo: {
|
|
2000
|
+
lexicon: 1,
|
|
2001
|
+
id: 'com.atproto.sync.getRepo',
|
|
2002
|
+
defs: {
|
|
2003
|
+
main: {
|
|
2004
|
+
type: 'query',
|
|
2005
|
+
description: 'Gets the repo state.',
|
|
2006
|
+
parameters: {
|
|
2007
|
+
type: 'params',
|
|
2008
|
+
required: ['did'],
|
|
2009
|
+
properties: {
|
|
2010
|
+
did: {
|
|
2011
|
+
type: 'string',
|
|
2012
|
+
description: 'The DID of the repo.',
|
|
2013
|
+
},
|
|
2014
|
+
from: {
|
|
2015
|
+
type: 'string',
|
|
2016
|
+
description: 'A past commit CID.',
|
|
951
2017
|
},
|
|
952
2018
|
},
|
|
953
2019
|
},
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
name: 'HandleNotAvailable',
|
|
960
|
-
},
|
|
961
|
-
],
|
|
2020
|
+
output: {
|
|
2021
|
+
encoding: 'application/vnd.ipld.car',
|
|
2022
|
+
},
|
|
962
2023
|
},
|
|
963
2024
|
},
|
|
964
2025
|
},
|
|
@@ -988,7 +2049,6 @@ export const schemaDict = {
|
|
|
988
2049
|
'creator',
|
|
989
2050
|
'followersCount',
|
|
990
2051
|
'followsCount',
|
|
991
|
-
'membersCount',
|
|
992
2052
|
'postsCount',
|
|
993
2053
|
],
|
|
994
2054
|
properties: {
|
|
@@ -1025,9 +2085,6 @@ export const schemaDict = {
|
|
|
1025
2085
|
followsCount: {
|
|
1026
2086
|
type: 'integer',
|
|
1027
2087
|
},
|
|
1028
|
-
membersCount: {
|
|
1029
|
-
type: 'integer',
|
|
1030
|
-
},
|
|
1031
2088
|
postsCount: {
|
|
1032
2089
|
type: 'integer',
|
|
1033
2090
|
},
|
|
@@ -1045,9 +2102,6 @@ export const schemaDict = {
|
|
|
1045
2102
|
follow: {
|
|
1046
2103
|
type: 'string',
|
|
1047
2104
|
},
|
|
1048
|
-
member: {
|
|
1049
|
-
type: 'string',
|
|
1050
|
-
},
|
|
1051
2105
|
muted: {
|
|
1052
2106
|
type: 'boolean',
|
|
1053
2107
|
},
|
|
@@ -1162,16 +2216,16 @@ export const schemaDict = {
|
|
|
1162
2216
|
avatar: {
|
|
1163
2217
|
type: 'image',
|
|
1164
2218
|
accept: ['image/png', 'image/jpeg'],
|
|
1165
|
-
maxWidth:
|
|
1166
|
-
maxHeight:
|
|
1167
|
-
maxSize:
|
|
2219
|
+
maxWidth: 2000,
|
|
2220
|
+
maxHeight: 2000,
|
|
2221
|
+
maxSize: 1000000,
|
|
1168
2222
|
},
|
|
1169
2223
|
banner: {
|
|
1170
2224
|
type: 'image',
|
|
1171
2225
|
accept: ['image/png', 'image/jpeg'],
|
|
1172
|
-
maxWidth:
|
|
1173
|
-
maxHeight:
|
|
1174
|
-
maxSize:
|
|
2226
|
+
maxWidth: 6000,
|
|
2227
|
+
maxHeight: 2000,
|
|
2228
|
+
maxSize: 1000000,
|
|
1175
2229
|
},
|
|
1176
2230
|
},
|
|
1177
2231
|
},
|
|
@@ -1241,7 +2295,6 @@ export const schemaDict = {
|
|
|
1241
2295
|
description: 'Find users matching search criteria.',
|
|
1242
2296
|
parameters: {
|
|
1243
2297
|
type: 'params',
|
|
1244
|
-
required: ['term'],
|
|
1245
2298
|
properties: {
|
|
1246
2299
|
term: {
|
|
1247
2300
|
type: 'string',
|
|
@@ -1317,7 +2370,6 @@ export const schemaDict = {
|
|
|
1317
2370
|
description: 'Find user suggestions for a search term.',
|
|
1318
2371
|
parameters: {
|
|
1319
2372
|
type: 'params',
|
|
1320
|
-
required: ['term'],
|
|
1321
2373
|
properties: {
|
|
1322
2374
|
term: {
|
|
1323
2375
|
type: 'string',
|
|
@@ -1384,9 +2436,6 @@ export const schemaDict = {
|
|
|
1384
2436
|
schema: {
|
|
1385
2437
|
type: 'object',
|
|
1386
2438
|
properties: {
|
|
1387
|
-
did: {
|
|
1388
|
-
type: 'string',
|
|
1389
|
-
},
|
|
1390
2439
|
displayName: {
|
|
1391
2440
|
type: 'string',
|
|
1392
2441
|
maxLength: 64,
|
|
@@ -1479,9 +2528,9 @@ export const schemaDict = {
|
|
|
1479
2528
|
thumb: {
|
|
1480
2529
|
type: 'image',
|
|
1481
2530
|
accept: ['image/*'],
|
|
1482
|
-
maxWidth:
|
|
1483
|
-
maxHeight:
|
|
1484
|
-
maxSize:
|
|
2531
|
+
maxWidth: 2000,
|
|
2532
|
+
maxHeight: 2000,
|
|
2533
|
+
maxSize: 1000000,
|
|
1485
2534
|
},
|
|
1486
2535
|
},
|
|
1487
2536
|
},
|
|
@@ -1541,9 +2590,9 @@ export const schemaDict = {
|
|
|
1541
2590
|
image: {
|
|
1542
2591
|
type: 'image',
|
|
1543
2592
|
accept: ['image/*'],
|
|
1544
|
-
maxWidth:
|
|
1545
|
-
maxHeight:
|
|
1546
|
-
maxSize:
|
|
2593
|
+
maxWidth: 2000,
|
|
2594
|
+
maxHeight: 2000,
|
|
2595
|
+
maxSize: 1000000,
|
|
1547
2596
|
},
|
|
1548
2597
|
alt: {
|
|
1549
2598
|
type: 'string',
|
|
@@ -1599,10 +2648,7 @@ export const schemaDict = {
|
|
|
1599
2648
|
},
|
|
1600
2649
|
reason: {
|
|
1601
2650
|
type: 'union',
|
|
1602
|
-
refs: [
|
|
1603
|
-
'lex:app.bsky.feed.feedViewPost#reasonTrend',
|
|
1604
|
-
'lex:app.bsky.feed.feedViewPost#reasonRepost',
|
|
1605
|
-
],
|
|
2651
|
+
refs: ['lex:app.bsky.feed.feedViewPost#reasonRepost'],
|
|
1606
2652
|
},
|
|
1607
2653
|
},
|
|
1608
2654
|
},
|
|
@@ -1620,19 +2666,6 @@ export const schemaDict = {
|
|
|
1620
2666
|
},
|
|
1621
2667
|
},
|
|
1622
2668
|
},
|
|
1623
|
-
reasonTrend: {
|
|
1624
|
-
type: 'object',
|
|
1625
|
-
required: ['by', 'indexedAt'],
|
|
1626
|
-
properties: {
|
|
1627
|
-
by: {
|
|
1628
|
-
type: 'ref',
|
|
1629
|
-
ref: 'lex:app.bsky.actor.ref#withInfo',
|
|
1630
|
-
},
|
|
1631
|
-
indexedAt: {
|
|
1632
|
-
type: 'datetime',
|
|
1633
|
-
},
|
|
1634
|
-
},
|
|
1635
|
-
},
|
|
1636
2669
|
reasonRepost: {
|
|
1637
2670
|
type: 'object',
|
|
1638
2671
|
required: ['by', 'indexedAt'],
|
|
@@ -2196,35 +3229,12 @@ export const schemaDict = {
|
|
|
2196
3229
|
schema: {
|
|
2197
3230
|
type: 'object',
|
|
2198
3231
|
properties: {
|
|
2199
|
-
upvote: {
|
|
2200
|
-
type: 'string',
|
|
2201
|
-
},
|
|
2202
|
-
downvote: {
|
|
2203
|
-
type: 'string',
|
|
2204
|
-
},
|
|
2205
|
-
},
|
|
2206
|
-
},
|
|
2207
|
-
},
|
|
2208
|
-
},
|
|
2209
|
-
},
|
|
2210
|
-
},
|
|
2211
|
-
AppBskyFeedTrend: {
|
|
2212
|
-
lexicon: 1,
|
|
2213
|
-
id: 'app.bsky.feed.trend',
|
|
2214
|
-
defs: {
|
|
2215
|
-
main: {
|
|
2216
|
-
type: 'record',
|
|
2217
|
-
key: 'tid',
|
|
2218
|
-
record: {
|
|
2219
|
-
type: 'object',
|
|
2220
|
-
required: ['subject', 'createdAt'],
|
|
2221
|
-
properties: {
|
|
2222
|
-
subject: {
|
|
2223
|
-
type: 'ref',
|
|
2224
|
-
ref: 'lex:com.atproto.repo.strongRef',
|
|
2225
|
-
},
|
|
2226
|
-
createdAt: {
|
|
2227
|
-
type: 'datetime',
|
|
3232
|
+
upvote: {
|
|
3233
|
+
type: 'string',
|
|
3234
|
+
},
|
|
3235
|
+
downvote: {
|
|
3236
|
+
type: 'string',
|
|
3237
|
+
},
|
|
2228
3238
|
},
|
|
2229
3239
|
},
|
|
2230
3240
|
},
|
|
@@ -2357,120 +3367,6 @@ export const schemaDict = {
|
|
|
2357
3367
|
},
|
|
2358
3368
|
},
|
|
2359
3369
|
},
|
|
2360
|
-
AppBskyGraphGetAssertions: {
|
|
2361
|
-
lexicon: 1,
|
|
2362
|
-
id: 'app.bsky.graph.getAssertions',
|
|
2363
|
-
defs: {
|
|
2364
|
-
main: {
|
|
2365
|
-
type: 'query',
|
|
2366
|
-
description: 'General-purpose query for assertions.',
|
|
2367
|
-
parameters: {
|
|
2368
|
-
type: 'params',
|
|
2369
|
-
properties: {
|
|
2370
|
-
author: {
|
|
2371
|
-
type: 'string',
|
|
2372
|
-
},
|
|
2373
|
-
subject: {
|
|
2374
|
-
type: 'string',
|
|
2375
|
-
},
|
|
2376
|
-
assertion: {
|
|
2377
|
-
type: 'string',
|
|
2378
|
-
},
|
|
2379
|
-
confirmed: {
|
|
2380
|
-
type: 'boolean',
|
|
2381
|
-
},
|
|
2382
|
-
limit: {
|
|
2383
|
-
type: 'integer',
|
|
2384
|
-
minimum: 1,
|
|
2385
|
-
maximum: 100,
|
|
2386
|
-
default: 50,
|
|
2387
|
-
},
|
|
2388
|
-
before: {
|
|
2389
|
-
type: 'string',
|
|
2390
|
-
},
|
|
2391
|
-
},
|
|
2392
|
-
},
|
|
2393
|
-
output: {
|
|
2394
|
-
encoding: 'application/json',
|
|
2395
|
-
schema: {
|
|
2396
|
-
type: 'object',
|
|
2397
|
-
required: ['assertions'],
|
|
2398
|
-
properties: {
|
|
2399
|
-
cursor: {
|
|
2400
|
-
type: 'string',
|
|
2401
|
-
},
|
|
2402
|
-
assertions: {
|
|
2403
|
-
type: 'array',
|
|
2404
|
-
items: {
|
|
2405
|
-
type: 'ref',
|
|
2406
|
-
ref: 'lex:app.bsky.graph.getAssertions#assertion',
|
|
2407
|
-
},
|
|
2408
|
-
},
|
|
2409
|
-
},
|
|
2410
|
-
},
|
|
2411
|
-
},
|
|
2412
|
-
},
|
|
2413
|
-
assertion: {
|
|
2414
|
-
type: 'object',
|
|
2415
|
-
required: [
|
|
2416
|
-
'uri',
|
|
2417
|
-
'cid',
|
|
2418
|
-
'assertion',
|
|
2419
|
-
'author',
|
|
2420
|
-
'subject',
|
|
2421
|
-
'indexedAt',
|
|
2422
|
-
'createdAt',
|
|
2423
|
-
],
|
|
2424
|
-
properties: {
|
|
2425
|
-
uri: {
|
|
2426
|
-
type: 'string',
|
|
2427
|
-
},
|
|
2428
|
-
cid: {
|
|
2429
|
-
type: 'string',
|
|
2430
|
-
},
|
|
2431
|
-
assertion: {
|
|
2432
|
-
type: 'string',
|
|
2433
|
-
},
|
|
2434
|
-
confirmation: {
|
|
2435
|
-
type: 'ref',
|
|
2436
|
-
ref: 'lex:app.bsky.graph.getAssertions#confirmation',
|
|
2437
|
-
},
|
|
2438
|
-
author: {
|
|
2439
|
-
type: 'ref',
|
|
2440
|
-
ref: 'lex:app.bsky.actor.ref#withInfo',
|
|
2441
|
-
},
|
|
2442
|
-
subject: {
|
|
2443
|
-
type: 'ref',
|
|
2444
|
-
ref: 'lex:app.bsky.actor.ref#withInfo',
|
|
2445
|
-
},
|
|
2446
|
-
indexedAt: {
|
|
2447
|
-
type: 'datetime',
|
|
2448
|
-
},
|
|
2449
|
-
createdAt: {
|
|
2450
|
-
type: 'datetime',
|
|
2451
|
-
},
|
|
2452
|
-
},
|
|
2453
|
-
},
|
|
2454
|
-
confirmation: {
|
|
2455
|
-
type: 'object',
|
|
2456
|
-
required: ['uri', 'cid', 'indexedAt', 'createdAt'],
|
|
2457
|
-
properties: {
|
|
2458
|
-
uri: {
|
|
2459
|
-
type: 'string',
|
|
2460
|
-
},
|
|
2461
|
-
cid: {
|
|
2462
|
-
type: 'string',
|
|
2463
|
-
},
|
|
2464
|
-
indexedAt: {
|
|
2465
|
-
type: 'datetime',
|
|
2466
|
-
},
|
|
2467
|
-
createdAt: {
|
|
2468
|
-
type: 'datetime',
|
|
2469
|
-
},
|
|
2470
|
-
},
|
|
2471
|
-
},
|
|
2472
|
-
},
|
|
2473
|
-
},
|
|
2474
3370
|
AppBskyGraphGetFollowers: {
|
|
2475
3371
|
lexicon: 1,
|
|
2476
3372
|
id: 'app.bsky.graph.getFollowers',
|
|
@@ -2618,159 +3514,8 @@ export const schemaDict = {
|
|
|
2618
3514
|
type: 'string',
|
|
2619
3515
|
maxLength: 64,
|
|
2620
3516
|
},
|
|
2621
|
-
|
|
2622
|
-
type: 'datetime',
|
|
2623
|
-
},
|
|
2624
|
-
indexedAt: {
|
|
2625
|
-
type: 'datetime',
|
|
2626
|
-
},
|
|
2627
|
-
},
|
|
2628
|
-
},
|
|
2629
|
-
},
|
|
2630
|
-
},
|
|
2631
|
-
AppBskyGraphGetMembers: {
|
|
2632
|
-
lexicon: 1,
|
|
2633
|
-
id: 'app.bsky.graph.getMembers',
|
|
2634
|
-
defs: {
|
|
2635
|
-
main: {
|
|
2636
|
-
type: 'query',
|
|
2637
|
-
description: 'Who is a member of the group?',
|
|
2638
|
-
parameters: {
|
|
2639
|
-
type: 'params',
|
|
2640
|
-
required: ['actor'],
|
|
2641
|
-
properties: {
|
|
2642
|
-
actor: {
|
|
2643
|
-
type: 'string',
|
|
2644
|
-
},
|
|
2645
|
-
limit: {
|
|
2646
|
-
type: 'integer',
|
|
2647
|
-
minimum: 1,
|
|
2648
|
-
maximum: 100,
|
|
2649
|
-
default: 50,
|
|
2650
|
-
},
|
|
2651
|
-
before: {
|
|
2652
|
-
type: 'string',
|
|
2653
|
-
},
|
|
2654
|
-
},
|
|
2655
|
-
},
|
|
2656
|
-
output: {
|
|
2657
|
-
encoding: 'application/json',
|
|
2658
|
-
schema: {
|
|
2659
|
-
type: 'object',
|
|
2660
|
-
required: ['subject', 'members'],
|
|
2661
|
-
properties: {
|
|
2662
|
-
subject: {
|
|
2663
|
-
type: 'ref',
|
|
2664
|
-
ref: 'lex:app.bsky.actor.ref#withInfo',
|
|
2665
|
-
},
|
|
2666
|
-
cursor: {
|
|
2667
|
-
type: 'string',
|
|
2668
|
-
},
|
|
2669
|
-
members: {
|
|
2670
|
-
type: 'array',
|
|
2671
|
-
items: {
|
|
2672
|
-
type: 'ref',
|
|
2673
|
-
ref: 'lex:app.bsky.graph.getMembers#member',
|
|
2674
|
-
},
|
|
2675
|
-
},
|
|
2676
|
-
},
|
|
2677
|
-
},
|
|
2678
|
-
},
|
|
2679
|
-
},
|
|
2680
|
-
member: {
|
|
2681
|
-
type: 'object',
|
|
2682
|
-
required: ['did', 'declaration', 'handle', 'indexedAt'],
|
|
2683
|
-
properties: {
|
|
2684
|
-
did: {
|
|
2685
|
-
type: 'string',
|
|
2686
|
-
},
|
|
2687
|
-
declaration: {
|
|
2688
|
-
type: 'ref',
|
|
2689
|
-
ref: 'lex:app.bsky.system.declRef',
|
|
2690
|
-
},
|
|
2691
|
-
handle: {
|
|
2692
|
-
type: 'string',
|
|
2693
|
-
},
|
|
2694
|
-
displayName: {
|
|
2695
|
-
type: 'string',
|
|
2696
|
-
maxLength: 64,
|
|
2697
|
-
},
|
|
2698
|
-
createdAt: {
|
|
2699
|
-
type: 'datetime',
|
|
2700
|
-
},
|
|
2701
|
-
indexedAt: {
|
|
2702
|
-
type: 'datetime',
|
|
2703
|
-
},
|
|
2704
|
-
},
|
|
2705
|
-
},
|
|
2706
|
-
},
|
|
2707
|
-
},
|
|
2708
|
-
AppBskyGraphGetMemberships: {
|
|
2709
|
-
lexicon: 1,
|
|
2710
|
-
id: 'app.bsky.graph.getMemberships',
|
|
2711
|
-
defs: {
|
|
2712
|
-
main: {
|
|
2713
|
-
type: 'query',
|
|
2714
|
-
description: 'Which groups is the actor a member of?',
|
|
2715
|
-
parameters: {
|
|
2716
|
-
type: 'params',
|
|
2717
|
-
required: ['actor'],
|
|
2718
|
-
properties: {
|
|
2719
|
-
actor: {
|
|
2720
|
-
type: 'string',
|
|
2721
|
-
},
|
|
2722
|
-
limit: {
|
|
2723
|
-
type: 'integer',
|
|
2724
|
-
minimum: 1,
|
|
2725
|
-
maximum: 100,
|
|
2726
|
-
default: 50,
|
|
2727
|
-
},
|
|
2728
|
-
before: {
|
|
2729
|
-
type: 'string',
|
|
2730
|
-
},
|
|
2731
|
-
},
|
|
2732
|
-
},
|
|
2733
|
-
output: {
|
|
2734
|
-
encoding: 'application/json',
|
|
2735
|
-
schema: {
|
|
2736
|
-
type: 'object',
|
|
2737
|
-
required: ['subject', 'memberships'],
|
|
2738
|
-
properties: {
|
|
2739
|
-
subject: {
|
|
2740
|
-
type: 'ref',
|
|
2741
|
-
ref: 'lex:app.bsky.actor.ref#withInfo',
|
|
2742
|
-
},
|
|
2743
|
-
cursor: {
|
|
2744
|
-
type: 'string',
|
|
2745
|
-
},
|
|
2746
|
-
memberships: {
|
|
2747
|
-
type: 'array',
|
|
2748
|
-
items: {
|
|
2749
|
-
type: 'ref',
|
|
2750
|
-
ref: 'lex:app.bsky.graph.getMemberships#membership',
|
|
2751
|
-
},
|
|
2752
|
-
},
|
|
2753
|
-
},
|
|
2754
|
-
},
|
|
2755
|
-
},
|
|
2756
|
-
},
|
|
2757
|
-
membership: {
|
|
2758
|
-
type: 'object',
|
|
2759
|
-
required: ['did', 'declaration', 'handle', 'indexedAt'],
|
|
2760
|
-
properties: {
|
|
2761
|
-
did: {
|
|
2762
|
-
type: 'string',
|
|
2763
|
-
},
|
|
2764
|
-
declaration: {
|
|
2765
|
-
type: 'ref',
|
|
2766
|
-
ref: 'lex:app.bsky.system.declRef',
|
|
2767
|
-
},
|
|
2768
|
-
handle: {
|
|
2769
|
-
type: 'string',
|
|
2770
|
-
},
|
|
2771
|
-
displayName: {
|
|
3517
|
+
avatar: {
|
|
2772
3518
|
type: 'string',
|
|
2773
|
-
maxLength: 64,
|
|
2774
3519
|
},
|
|
2775
3520
|
createdAt: {
|
|
2776
3521
|
type: 'datetime',
|
|
@@ -2978,11 +3723,10 @@ export const schemaDict = {
|
|
|
2978
3723
|
reason: {
|
|
2979
3724
|
type: 'string',
|
|
2980
3725
|
description:
|
|
2981
|
-
"Expected values are 'vote', 'repost', '
|
|
3726
|
+
"Expected values are 'vote', 'repost', 'follow', 'invite', 'mention' and 'reply'.",
|
|
2982
3727
|
knownValues: [
|
|
2983
3728
|
'vote',
|
|
2984
3729
|
'repost',
|
|
2985
|
-
'trend',
|
|
2986
3730
|
'follow',
|
|
2987
3731
|
'invite',
|
|
2988
3732
|
'mention',
|
|
@@ -3027,17 +3771,6 @@ export const schemaDict = {
|
|
|
3027
3771
|
},
|
|
3028
3772
|
},
|
|
3029
3773
|
},
|
|
3030
|
-
AppBskySystemActorScene: {
|
|
3031
|
-
lexicon: 1,
|
|
3032
|
-
id: 'app.bsky.system.actorScene',
|
|
3033
|
-
defs: {
|
|
3034
|
-
main: {
|
|
3035
|
-
type: 'token',
|
|
3036
|
-
description:
|
|
3037
|
-
"Actor type: Scene. Defined for app.bsky.system.declaration's actorType.",
|
|
3038
|
-
},
|
|
3039
|
-
},
|
|
3040
|
-
},
|
|
3041
3774
|
AppBskySystemActorUser: {
|
|
3042
3775
|
lexicon: 1,
|
|
3043
3776
|
id: 'app.bsky.system.actorUser',
|
|
@@ -3063,10 +3796,7 @@ export const schemaDict = {
|
|
|
3063
3796
|
},
|
|
3064
3797
|
actorType: {
|
|
3065
3798
|
type: 'string',
|
|
3066
|
-
knownValues: [
|
|
3067
|
-
'app.bsky.system.actorUser',
|
|
3068
|
-
'app.bsky.system.actorScene',
|
|
3069
|
-
],
|
|
3799
|
+
knownValues: ['app.bsky.system.actorUser'],
|
|
3070
3800
|
},
|
|
3071
3801
|
},
|
|
3072
3802
|
},
|
|
@@ -3087,10 +3817,7 @@ export const schemaDict = {
|
|
|
3087
3817
|
properties: {
|
|
3088
3818
|
actorType: {
|
|
3089
3819
|
type: 'string',
|
|
3090
|
-
knownValues: [
|
|
3091
|
-
'app.bsky.system.actorUser',
|
|
3092
|
-
'app.bsky.system.actorScene',
|
|
3093
|
-
],
|
|
3820
|
+
knownValues: ['app.bsky.system.actorUser'],
|
|
3094
3821
|
},
|
|
3095
3822
|
},
|
|
3096
3823
|
},
|
|
@@ -3105,9 +3832,26 @@ export const ids = {
|
|
|
3105
3832
|
ComAtprotoAccountCreateInviteCode: 'com.atproto.account.createInviteCode',
|
|
3106
3833
|
ComAtprotoAccountDelete: 'com.atproto.account.delete',
|
|
3107
3834
|
ComAtprotoAccountGet: 'com.atproto.account.get',
|
|
3835
|
+
ComAtprotoAccountRequestDelete: 'com.atproto.account.requestDelete',
|
|
3108
3836
|
ComAtprotoAccountRequestPasswordReset:
|
|
3109
3837
|
'com.atproto.account.requestPasswordReset',
|
|
3110
3838
|
ComAtprotoAccountResetPassword: 'com.atproto.account.resetPassword',
|
|
3839
|
+
ComAtprotoAdminGetModerationAction: 'com.atproto.admin.getModerationAction',
|
|
3840
|
+
ComAtprotoAdminGetModerationActions: 'com.atproto.admin.getModerationActions',
|
|
3841
|
+
ComAtprotoAdminGetModerationReport: 'com.atproto.admin.getModerationReport',
|
|
3842
|
+
ComAtprotoAdminGetModerationReports: 'com.atproto.admin.getModerationReports',
|
|
3843
|
+
ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
|
|
3844
|
+
ComAtprotoAdminGetRepo: 'com.atproto.admin.getRepo',
|
|
3845
|
+
ComAtprotoAdminModerationAction: 'com.atproto.admin.moderationAction',
|
|
3846
|
+
ComAtprotoAdminModerationReport: 'com.atproto.admin.moderationReport',
|
|
3847
|
+
ComAtprotoAdminRecord: 'com.atproto.admin.record',
|
|
3848
|
+
ComAtprotoAdminRepo: 'com.atproto.admin.repo',
|
|
3849
|
+
ComAtprotoAdminResolveModerationReports:
|
|
3850
|
+
'com.atproto.admin.resolveModerationReports',
|
|
3851
|
+
ComAtprotoAdminReverseModerationAction:
|
|
3852
|
+
'com.atproto.admin.reverseModerationAction',
|
|
3853
|
+
ComAtprotoAdminSearchRepos: 'com.atproto.admin.searchRepos',
|
|
3854
|
+
ComAtprotoAdminTakeModerationAction: 'com.atproto.admin.takeModerationAction',
|
|
3111
3855
|
ComAtprotoBlobUpload: 'com.atproto.blob.upload',
|
|
3112
3856
|
ComAtprotoHandleResolve: 'com.atproto.handle.resolve',
|
|
3113
3857
|
ComAtprotoRepoBatchWrite: 'com.atproto.repo.batchWrite',
|
|
@@ -3117,16 +3861,22 @@ export const ids = {
|
|
|
3117
3861
|
ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
|
|
3118
3862
|
ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords',
|
|
3119
3863
|
ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',
|
|
3864
|
+
ComAtprotoRepoRecordRef: 'com.atproto.repo.recordRef',
|
|
3865
|
+
ComAtprotoRepoRepoRef: 'com.atproto.repo.repoRef',
|
|
3120
3866
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
3867
|
+
ComAtprotoReportCreate: 'com.atproto.report.create',
|
|
3868
|
+
ComAtprotoReportReasonType: 'com.atproto.report.reasonType',
|
|
3869
|
+
ComAtprotoReportSubject: 'com.atproto.report.subject',
|
|
3121
3870
|
ComAtprotoServerGetAccountsConfig: 'com.atproto.server.getAccountsConfig',
|
|
3122
3871
|
ComAtprotoSessionCreate: 'com.atproto.session.create',
|
|
3123
3872
|
ComAtprotoSessionDelete: 'com.atproto.session.delete',
|
|
3124
3873
|
ComAtprotoSessionGet: 'com.atproto.session.get',
|
|
3125
3874
|
ComAtprotoSessionRefresh: 'com.atproto.session.refresh',
|
|
3875
|
+
ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
|
|
3876
|
+
ComAtprotoSyncGetCommitPath: 'com.atproto.sync.getCommitPath',
|
|
3877
|
+
ComAtprotoSyncGetHead: 'com.atproto.sync.getHead',
|
|
3878
|
+
ComAtprotoSyncGetRecord: 'com.atproto.sync.getRecord',
|
|
3126
3879
|
ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',
|
|
3127
|
-
ComAtprotoSyncGetRoot: 'com.atproto.sync.getRoot',
|
|
3128
|
-
ComAtprotoSyncUpdateRepo: 'com.atproto.sync.updateRepo',
|
|
3129
|
-
AppBskyActorCreateScene: 'app.bsky.actor.createScene',
|
|
3130
3880
|
AppBskyActorGetProfile: 'app.bsky.actor.getProfile',
|
|
3131
3881
|
AppBskyActorGetSuggestions: 'app.bsky.actor.getSuggestions',
|
|
3132
3882
|
AppBskyActorProfile: 'app.bsky.actor.profile',
|
|
@@ -3145,25 +3895,20 @@ export const ids = {
|
|
|
3145
3895
|
AppBskyFeedPost: 'app.bsky.feed.post',
|
|
3146
3896
|
AppBskyFeedRepost: 'app.bsky.feed.repost',
|
|
3147
3897
|
AppBskyFeedSetVote: 'app.bsky.feed.setVote',
|
|
3148
|
-
AppBskyFeedTrend: 'app.bsky.feed.trend',
|
|
3149
3898
|
AppBskyFeedVote: 'app.bsky.feed.vote',
|
|
3150
3899
|
AppBskyGraphAssertCreator: 'app.bsky.graph.assertCreator',
|
|
3151
3900
|
AppBskyGraphAssertMember: 'app.bsky.graph.assertMember',
|
|
3152
3901
|
AppBskyGraphAssertion: 'app.bsky.graph.assertion',
|
|
3153
3902
|
AppBskyGraphConfirmation: 'app.bsky.graph.confirmation',
|
|
3154
3903
|
AppBskyGraphFollow: 'app.bsky.graph.follow',
|
|
3155
|
-
AppBskyGraphGetAssertions: 'app.bsky.graph.getAssertions',
|
|
3156
3904
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
3157
3905
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
3158
|
-
AppBskyGraphGetMembers: 'app.bsky.graph.getMembers',
|
|
3159
|
-
AppBskyGraphGetMemberships: 'app.bsky.graph.getMemberships',
|
|
3160
3906
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
3161
3907
|
AppBskyGraphMute: 'app.bsky.graph.mute',
|
|
3162
3908
|
AppBskyGraphUnmute: 'app.bsky.graph.unmute',
|
|
3163
3909
|
AppBskyNotificationGetCount: 'app.bsky.notification.getCount',
|
|
3164
3910
|
AppBskyNotificationList: 'app.bsky.notification.list',
|
|
3165
3911
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
3166
|
-
AppBskySystemActorScene: 'app.bsky.system.actorScene',
|
|
3167
3912
|
AppBskySystemActorUser: 'app.bsky.system.actorUser',
|
|
3168
3913
|
AppBskySystemDeclRef: 'app.bsky.system.declRef',
|
|
3169
3914
|
AppBskySystemDeclaration: 'app.bsky.system.declaration',
|