@atproto/api 0.0.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.
Files changed (153) hide show
  1. package/README.md +34 -0
  2. package/babel.config.js +3 -0
  3. package/build.js +22 -0
  4. package/dist/index.js +8724 -0
  5. package/dist/index.js.map +7 -0
  6. package/dist/src/client/index.d.ts +462 -0
  7. package/dist/src/client/lexicons.d.ts +2910 -0
  8. package/dist/src/client/schemas.d.ts +17 -0
  9. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
  10. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
  11. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
  12. package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
  13. package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
  14. package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
  15. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
  16. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
  17. package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
  18. package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
  19. package/dist/src/client/types/app/bsky/feed/debug.d.ts +57 -0
  20. package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
  21. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
  22. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
  23. package/dist/src/client/types/app/bsky/feed/getLikedBy.d.ts +29 -0
  24. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
  25. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
  26. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
  27. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
  28. package/dist/src/client/types/app/bsky/feed/like.d.ts +10 -0
  29. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
  30. package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
  31. package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
  32. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
  33. package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
  34. package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
  35. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
  36. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
  37. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
  38. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
  39. package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
  40. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
  41. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
  42. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
  43. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
  44. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
  45. package/dist/src/client/types/app/bsky/graph/invite.d.ts +10 -0
  46. package/dist/src/client/types/app/bsky/graph/inviteAccept.d.ts +14 -0
  47. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
  48. package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
  49. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
  50. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
  51. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
  52. package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
  53. package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
  54. package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
  55. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
  56. package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
  57. package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
  58. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
  59. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
  60. package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
  61. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +22 -0
  62. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
  63. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
  64. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
  65. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
  66. package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
  67. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
  68. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
  69. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
  70. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
  71. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
  72. package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
  73. package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
  74. package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
  75. package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
  76. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
  77. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
  78. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
  79. package/dist/src/index.d.ts +4 -0
  80. package/dist/src/session.d.ts +42 -0
  81. package/dist/tsconfig.build.tsbuildinfo +1 -0
  82. package/jest.config.js +6 -0
  83. package/package.json +21 -0
  84. package/src/client/index.ts +1393 -0
  85. package/src/client/lexicons.ts +3041 -0
  86. package/src/client/types/app/bsky/actor/createScene.ts +52 -0
  87. package/src/client/types/app/bsky/actor/getProfile.ts +50 -0
  88. package/src/client/types/app/bsky/actor/getSuggestions.ts +51 -0
  89. package/src/client/types/app/bsky/actor/profile.ts +10 -0
  90. package/src/client/types/app/bsky/actor/ref.ts +19 -0
  91. package/src/client/types/app/bsky/actor/search.ts +46 -0
  92. package/src/client/types/app/bsky/actor/searchTypeahead.ts +42 -0
  93. package/src/client/types/app/bsky/actor/updateProfile.ts +69 -0
  94. package/src/client/types/app/bsky/embed/external.ts +28 -0
  95. package/src/client/types/app/bsky/embed/images.ts +25 -0
  96. package/src/client/types/app/bsky/feed/feedViewPost.ts +30 -0
  97. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +35 -0
  98. package/src/client/types/app/bsky/feed/getPostThread.ts +63 -0
  99. package/src/client/types/app/bsky/feed/getRepostedBy.ts +49 -0
  100. package/src/client/types/app/bsky/feed/getTimeline.ts +35 -0
  101. package/src/client/types/app/bsky/feed/getVotes.ts +47 -0
  102. package/src/client/types/app/bsky/feed/post.ts +64 -0
  103. package/src/client/types/app/bsky/feed/repost.ts +10 -0
  104. package/src/client/types/app/bsky/feed/setVote.ts +37 -0
  105. package/src/client/types/app/bsky/feed/trend.ts +10 -0
  106. package/src/client/types/app/bsky/feed/vote.ts +11 -0
  107. package/src/client/types/app/bsky/graph/assertCreator.ts +5 -0
  108. package/src/client/types/app/bsky/graph/assertMember.ts +5 -0
  109. package/src/client/types/app/bsky/graph/assertion.ts +11 -0
  110. package/src/client/types/app/bsky/graph/confirmation.ts +12 -0
  111. package/src/client/types/app/bsky/graph/follow.ts +10 -0
  112. package/src/client/types/app/bsky/graph/getAssertions.ts +58 -0
  113. package/src/client/types/app/bsky/graph/getFollowers.ts +48 -0
  114. package/src/client/types/app/bsky/graph/getFollows.ts +47 -0
  115. package/src/client/types/app/bsky/graph/getMembers.ts +47 -0
  116. package/src/client/types/app/bsky/graph/getMemberships.ts +47 -0
  117. package/src/client/types/app/bsky/notification/getCount.ts +29 -0
  118. package/src/client/types/app/bsky/notification/list.ts +55 -0
  119. package/src/client/types/app/bsky/notification/updateSeen.ts +28 -0
  120. package/src/client/types/app/bsky/system/actorScene.ts +5 -0
  121. package/src/client/types/app/bsky/system/actorUser.ts +5 -0
  122. package/src/client/types/app/bsky/system/declRef.ts +12 -0
  123. package/src/client/types/app/bsky/system/declaration.ts +10 -0
  124. package/src/client/types/com/atproto/account/create.ts +69 -0
  125. package/src/client/types/com/atproto/account/createInviteCode.ts +34 -0
  126. package/src/client/types/com/atproto/account/delete.ts +24 -0
  127. package/src/client/types/com/atproto/account/get.ts +23 -0
  128. package/src/client/types/com/atproto/account/requestPasswordReset.ts +28 -0
  129. package/src/client/types/com/atproto/account/resetPassword.ts +43 -0
  130. package/src/client/types/com/atproto/blob/upload.ts +31 -0
  131. package/src/client/types/com/atproto/handle/resolve.ts +32 -0
  132. package/src/client/types/com/atproto/repo/batchWrite.ts +55 -0
  133. package/src/client/types/com/atproto/repo/createRecord.ts +42 -0
  134. package/src/client/types/com/atproto/repo/deleteRecord.ts +33 -0
  135. package/src/client/types/com/atproto/repo/describe.ts +36 -0
  136. package/src/client/types/com/atproto/repo/getRecord.ts +40 -0
  137. package/src/client/types/com/atproto/repo/listRecords.ts +50 -0
  138. package/src/client/types/com/atproto/repo/putRecord.ts +44 -0
  139. package/src/client/types/com/atproto/repo/strongRef.ts +8 -0
  140. package/src/client/types/com/atproto/server/getAccountsConfig.ts +37 -0
  141. package/src/client/types/com/atproto/session/create.ts +38 -0
  142. package/src/client/types/com/atproto/session/delete.ts +24 -0
  143. package/src/client/types/com/atproto/session/get.ts +30 -0
  144. package/src/client/types/com/atproto/session/refresh.ts +33 -0
  145. package/src/client/types/com/atproto/sync/getRepo.ts +29 -0
  146. package/src/client/types/com/atproto/sync/getRoot.ts +32 -0
  147. package/src/client/types/com/atproto/sync/updateRepo.ts +28 -0
  148. package/src/index.ts +4 -0
  149. package/src/session.ts +194 -0
  150. package/tests/errors.test.ts +39 -0
  151. package/tests/session.test.ts +239 -0
  152. package/tsconfig.build.json +4 -0
  153. package/tsconfig.json +12 -0
@@ -0,0 +1,3041 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { LexiconDoc, Lexicons } from '@atproto/lexicon'
5
+
6
+ export const schemaDict = {
7
+ ComAtprotoAccountCreate: {
8
+ lexicon: 1,
9
+ id: 'com.atproto.account.create',
10
+ defs: {
11
+ main: {
12
+ type: 'procedure',
13
+ description: 'Create an account.',
14
+ input: {
15
+ encoding: 'application/json',
16
+ schema: {
17
+ type: 'object',
18
+ required: ['handle', 'email', 'password'],
19
+ properties: {
20
+ email: {
21
+ type: 'string',
22
+ },
23
+ handle: {
24
+ type: 'string',
25
+ },
26
+ inviteCode: {
27
+ type: 'string',
28
+ },
29
+ password: {
30
+ type: 'string',
31
+ },
32
+ recoveryKey: {
33
+ type: 'string',
34
+ },
35
+ },
36
+ },
37
+ },
38
+ output: {
39
+ encoding: 'application/json',
40
+ schema: {
41
+ type: 'object',
42
+ required: ['accessJwt', 'refreshJwt', 'handle', 'did'],
43
+ properties: {
44
+ accessJwt: {
45
+ type: 'string',
46
+ },
47
+ refreshJwt: {
48
+ type: 'string',
49
+ },
50
+ handle: {
51
+ type: 'string',
52
+ },
53
+ did: {
54
+ type: 'string',
55
+ },
56
+ },
57
+ },
58
+ },
59
+ errors: [
60
+ {
61
+ name: 'InvalidHandle',
62
+ },
63
+ {
64
+ name: 'InvalidPassword',
65
+ },
66
+ {
67
+ name: 'InvalidInviteCode',
68
+ },
69
+ {
70
+ name: 'HandleNotAvailable',
71
+ },
72
+ ],
73
+ },
74
+ },
75
+ },
76
+ ComAtprotoAccountCreateInviteCode: {
77
+ lexicon: 1,
78
+ id: 'com.atproto.account.createInviteCode',
79
+ defs: {
80
+ main: {
81
+ type: 'procedure',
82
+ description: 'Create an invite code.',
83
+ input: {
84
+ encoding: 'application/json',
85
+ schema: {
86
+ type: 'object',
87
+ required: ['useCount'],
88
+ properties: {
89
+ useCount: {
90
+ type: 'integer',
91
+ },
92
+ },
93
+ },
94
+ },
95
+ output: {
96
+ encoding: 'application/json',
97
+ schema: {
98
+ type: 'object',
99
+ required: ['code'],
100
+ properties: {
101
+ code: {
102
+ type: 'string',
103
+ },
104
+ },
105
+ },
106
+ },
107
+ },
108
+ },
109
+ },
110
+ ComAtprotoAccountDelete: {
111
+ lexicon: 1,
112
+ id: 'com.atproto.account.delete',
113
+ defs: {
114
+ main: {
115
+ type: 'procedure',
116
+ description: 'Delete an account.',
117
+ },
118
+ },
119
+ },
120
+ ComAtprotoAccountGet: {
121
+ lexicon: 1,
122
+ id: 'com.atproto.account.get',
123
+ defs: {
124
+ main: {
125
+ type: 'query',
126
+ description: 'Get information about an account.',
127
+ },
128
+ },
129
+ },
130
+ ComAtprotoAccountRequestPasswordReset: {
131
+ lexicon: 1,
132
+ id: 'com.atproto.account.requestPasswordReset',
133
+ defs: {
134
+ main: {
135
+ type: 'procedure',
136
+ description: 'Initiate a user account password reset via email.',
137
+ input: {
138
+ encoding: 'application/json',
139
+ schema: {
140
+ type: 'object',
141
+ required: ['email'],
142
+ properties: {
143
+ email: {
144
+ type: 'string',
145
+ },
146
+ },
147
+ },
148
+ },
149
+ },
150
+ },
151
+ },
152
+ ComAtprotoAccountResetPassword: {
153
+ lexicon: 1,
154
+ id: 'com.atproto.account.resetPassword',
155
+ defs: {
156
+ main: {
157
+ type: 'procedure',
158
+ description: 'Reset a user account password using a token.',
159
+ input: {
160
+ encoding: 'application/json',
161
+ schema: {
162
+ type: 'object',
163
+ required: ['token', 'password'],
164
+ properties: {
165
+ token: {
166
+ type: 'string',
167
+ },
168
+ password: {
169
+ type: 'string',
170
+ },
171
+ },
172
+ },
173
+ },
174
+ errors: [
175
+ {
176
+ name: 'ExpiredToken',
177
+ },
178
+ {
179
+ name: 'InvalidToken',
180
+ },
181
+ ],
182
+ },
183
+ },
184
+ },
185
+ ComAtprotoBlobUpload: {
186
+ lexicon: 1,
187
+ id: 'com.atproto.blob.upload',
188
+ defs: {
189
+ main: {
190
+ type: 'procedure',
191
+ description:
192
+ 'Upload a new blob to be added to repo in a later request.',
193
+ input: {
194
+ encoding: '*/*',
195
+ },
196
+ output: {
197
+ encoding: 'application/json',
198
+ schema: {
199
+ type: 'object',
200
+ required: ['cid'],
201
+ properties: {
202
+ cid: {
203
+ type: 'string',
204
+ },
205
+ },
206
+ },
207
+ },
208
+ },
209
+ },
210
+ },
211
+ ComAtprotoHandleResolve: {
212
+ lexicon: 1,
213
+ id: 'com.atproto.handle.resolve',
214
+ defs: {
215
+ main: {
216
+ type: 'query',
217
+ description: 'Provides the DID of a repo.',
218
+ parameters: {
219
+ type: 'params',
220
+ properties: {
221
+ handle: {
222
+ type: 'string',
223
+ description:
224
+ "The handle to resolve. If not supplied, will resolve the host's own handle.",
225
+ },
226
+ },
227
+ },
228
+ output: {
229
+ encoding: 'application/json',
230
+ schema: {
231
+ type: 'object',
232
+ required: ['did'],
233
+ properties: {
234
+ did: {
235
+ type: 'string',
236
+ },
237
+ },
238
+ },
239
+ },
240
+ },
241
+ },
242
+ },
243
+ ComAtprotoRepoBatchWrite: {
244
+ lexicon: 1,
245
+ id: 'com.atproto.repo.batchWrite',
246
+ defs: {
247
+ main: {
248
+ type: 'procedure',
249
+ description: 'Apply a batch transaction of creates, puts, and deletes.',
250
+ input: {
251
+ encoding: 'application/json',
252
+ schema: {
253
+ type: 'object',
254
+ required: ['did', 'writes'],
255
+ properties: {
256
+ did: {
257
+ type: 'string',
258
+ description: 'The DID of the repo.',
259
+ },
260
+ validate: {
261
+ type: 'boolean',
262
+ default: true,
263
+ description: 'Validate the records?',
264
+ },
265
+ writes: {
266
+ type: 'array',
267
+ items: {
268
+ type: 'union',
269
+ refs: [
270
+ 'lex:com.atproto.repo.batchWrite#create',
271
+ 'lex:com.atproto.repo.batchWrite#update',
272
+ 'lex:com.atproto.repo.batchWrite#delete',
273
+ ],
274
+ closed: true,
275
+ },
276
+ },
277
+ },
278
+ },
279
+ },
280
+ },
281
+ create: {
282
+ type: 'object',
283
+ required: ['action', 'collection', 'value'],
284
+ properties: {
285
+ action: {
286
+ type: 'string',
287
+ const: 'create',
288
+ },
289
+ collection: {
290
+ type: 'string',
291
+ },
292
+ rkey: {
293
+ type: 'string',
294
+ },
295
+ value: {
296
+ type: 'unknown',
297
+ },
298
+ },
299
+ },
300
+ update: {
301
+ type: 'object',
302
+ required: ['action', 'collection', 'rkey', 'value'],
303
+ properties: {
304
+ action: {
305
+ type: 'string',
306
+ const: 'update',
307
+ },
308
+ collection: {
309
+ type: 'string',
310
+ },
311
+ rkey: {
312
+ type: 'string',
313
+ },
314
+ value: {
315
+ type: 'unknown',
316
+ },
317
+ },
318
+ },
319
+ delete: {
320
+ type: 'object',
321
+ required: ['action', 'collection', 'rkey'],
322
+ properties: {
323
+ action: {
324
+ type: 'string',
325
+ const: 'delete',
326
+ },
327
+ collection: {
328
+ type: 'string',
329
+ },
330
+ rkey: {
331
+ type: 'string',
332
+ },
333
+ },
334
+ },
335
+ },
336
+ },
337
+ ComAtprotoRepoCreateRecord: {
338
+ lexicon: 1,
339
+ id: 'com.atproto.repo.createRecord',
340
+ defs: {
341
+ main: {
342
+ type: 'procedure',
343
+ description: 'Create a new record.',
344
+ input: {
345
+ encoding: 'application/json',
346
+ schema: {
347
+ type: 'object',
348
+ required: ['did', 'collection', 'record'],
349
+ properties: {
350
+ did: {
351
+ type: 'string',
352
+ description: 'The DID of the repo.',
353
+ },
354
+ collection: {
355
+ type: 'string',
356
+ description: 'The NSID of the record collection.',
357
+ },
358
+ validate: {
359
+ type: 'boolean',
360
+ default: true,
361
+ description: 'Validate the record?',
362
+ },
363
+ record: {
364
+ type: 'unknown',
365
+ description: 'The record to create.',
366
+ },
367
+ },
368
+ },
369
+ },
370
+ output: {
371
+ encoding: 'application/json',
372
+ schema: {
373
+ type: 'object',
374
+ required: ['uri', 'cid'],
375
+ properties: {
376
+ uri: {
377
+ type: 'string',
378
+ },
379
+ cid: {
380
+ type: 'string',
381
+ },
382
+ },
383
+ },
384
+ },
385
+ },
386
+ },
387
+ },
388
+ ComAtprotoRepoDeleteRecord: {
389
+ lexicon: 1,
390
+ id: 'com.atproto.repo.deleteRecord',
391
+ defs: {
392
+ main: {
393
+ type: 'procedure',
394
+ description: 'Delete a record.',
395
+ input: {
396
+ encoding: 'application/json',
397
+ schema: {
398
+ type: 'object',
399
+ required: ['did', 'collection', 'rkey'],
400
+ properties: {
401
+ did: {
402
+ type: 'string',
403
+ description: 'The DID of the repo.',
404
+ },
405
+ collection: {
406
+ type: 'string',
407
+ description: 'The NSID of the record collection.',
408
+ },
409
+ rkey: {
410
+ type: 'string',
411
+ description: 'The key of the record.',
412
+ },
413
+ },
414
+ },
415
+ },
416
+ },
417
+ },
418
+ },
419
+ ComAtprotoRepoDescribe: {
420
+ lexicon: 1,
421
+ id: 'com.atproto.repo.describe',
422
+ defs: {
423
+ main: {
424
+ type: 'query',
425
+ description:
426
+ 'Get information about the repo, including the list of collections.',
427
+ parameters: {
428
+ type: 'params',
429
+ required: ['user'],
430
+ properties: {
431
+ user: {
432
+ type: 'string',
433
+ description: 'The handle or DID of the repo.',
434
+ },
435
+ },
436
+ },
437
+ output: {
438
+ encoding: 'application/json',
439
+ schema: {
440
+ type: 'object',
441
+ required: [
442
+ 'handle',
443
+ 'did',
444
+ 'didDoc',
445
+ 'collections',
446
+ 'handleIsCorrect',
447
+ ],
448
+ properties: {
449
+ handle: {
450
+ type: 'string',
451
+ },
452
+ did: {
453
+ type: 'string',
454
+ },
455
+ didDoc: {
456
+ type: 'unknown',
457
+ },
458
+ collections: {
459
+ type: 'array',
460
+ items: {
461
+ type: 'string',
462
+ },
463
+ },
464
+ handleIsCorrect: {
465
+ type: 'boolean',
466
+ },
467
+ },
468
+ },
469
+ },
470
+ },
471
+ },
472
+ },
473
+ ComAtprotoRepoGetRecord: {
474
+ lexicon: 1,
475
+ id: 'com.atproto.repo.getRecord',
476
+ defs: {
477
+ main: {
478
+ type: 'query',
479
+ description: 'Fetch a record.',
480
+ parameters: {
481
+ type: 'params',
482
+ required: ['user', 'collection', 'rkey'],
483
+ properties: {
484
+ user: {
485
+ type: 'string',
486
+ description: 'The handle or DID of the repo.',
487
+ },
488
+ collection: {
489
+ type: 'string',
490
+ description: 'The NSID of the collection.',
491
+ },
492
+ rkey: {
493
+ type: 'string',
494
+ description: 'The key of the record.',
495
+ },
496
+ cid: {
497
+ type: 'string',
498
+ description:
499
+ 'The CID of the version of the record. If not specified, then return the most recent version.',
500
+ },
501
+ },
502
+ },
503
+ output: {
504
+ encoding: 'application/json',
505
+ schema: {
506
+ type: 'object',
507
+ required: ['uri', 'value'],
508
+ properties: {
509
+ uri: {
510
+ type: 'string',
511
+ },
512
+ cid: {
513
+ type: 'string',
514
+ },
515
+ value: {
516
+ type: 'unknown',
517
+ },
518
+ },
519
+ },
520
+ },
521
+ },
522
+ },
523
+ },
524
+ ComAtprotoRepoListRecords: {
525
+ lexicon: 1,
526
+ id: 'com.atproto.repo.listRecords',
527
+ defs: {
528
+ main: {
529
+ type: 'query',
530
+ description: 'List a range of records in a collection.',
531
+ parameters: {
532
+ type: 'params',
533
+ required: ['user', 'collection'],
534
+ properties: {
535
+ user: {
536
+ type: 'string',
537
+ description: 'The handle or DID of the repo.',
538
+ },
539
+ collection: {
540
+ type: 'string',
541
+ description: 'The NSID of the record type.',
542
+ },
543
+ limit: {
544
+ type: 'integer',
545
+ minimum: 1,
546
+ maximum: 100,
547
+ default: 50,
548
+ description: 'The number of records to return.',
549
+ },
550
+ before: {
551
+ type: 'string',
552
+ description: 'A TID to filter the range of records returned.',
553
+ },
554
+ after: {
555
+ type: 'string',
556
+ description: 'A TID to filter the range of records returned.',
557
+ },
558
+ reverse: {
559
+ type: 'boolean',
560
+ description: 'Reverse the order of the returned records?',
561
+ },
562
+ },
563
+ },
564
+ output: {
565
+ encoding: 'application/json',
566
+ schema: {
567
+ type: 'object',
568
+ required: ['records'],
569
+ properties: {
570
+ cursor: {
571
+ type: 'string',
572
+ },
573
+ records: {
574
+ type: 'array',
575
+ items: {
576
+ type: 'ref',
577
+ ref: 'lex:com.atproto.repo.listRecords#record',
578
+ },
579
+ },
580
+ },
581
+ },
582
+ },
583
+ },
584
+ record: {
585
+ type: 'object',
586
+ required: ['uri', 'cid', 'value'],
587
+ properties: {
588
+ uri: {
589
+ type: 'string',
590
+ },
591
+ cid: {
592
+ type: 'string',
593
+ },
594
+ value: {
595
+ type: 'unknown',
596
+ },
597
+ },
598
+ },
599
+ },
600
+ },
601
+ ComAtprotoRepoPutRecord: {
602
+ lexicon: 1,
603
+ id: 'com.atproto.repo.putRecord',
604
+ defs: {
605
+ main: {
606
+ type: 'procedure',
607
+ description: 'Write a record.',
608
+ input: {
609
+ encoding: 'application/json',
610
+ schema: {
611
+ type: 'object',
612
+ required: ['did', 'collection', 'rkey', 'record'],
613
+ properties: {
614
+ did: {
615
+ type: 'string',
616
+ description: 'The DID of the repo.',
617
+ },
618
+ collection: {
619
+ type: 'string',
620
+ description: 'The NSID of the record type.',
621
+ },
622
+ rkey: {
623
+ type: 'string',
624
+ description: 'The TID of the record.',
625
+ },
626
+ validate: {
627
+ type: 'boolean',
628
+ default: true,
629
+ description: 'Validate the record?',
630
+ },
631
+ record: {
632
+ type: 'unknown',
633
+ description: 'The record to create.',
634
+ },
635
+ },
636
+ },
637
+ },
638
+ output: {
639
+ encoding: 'application/json',
640
+ schema: {
641
+ type: 'object',
642
+ required: ['uri', 'cid'],
643
+ properties: {
644
+ uri: {
645
+ type: 'string',
646
+ },
647
+ cid: {
648
+ type: 'string',
649
+ },
650
+ },
651
+ },
652
+ },
653
+ },
654
+ },
655
+ },
656
+ ComAtprotoRepoStrongRef: {
657
+ lexicon: 1,
658
+ id: 'com.atproto.repo.strongRef',
659
+ description: 'A URI with a content-hash fingerprint.',
660
+ defs: {
661
+ main: {
662
+ type: 'object',
663
+ required: ['uri', 'cid'],
664
+ properties: {
665
+ uri: {
666
+ type: 'string',
667
+ },
668
+ cid: {
669
+ type: 'string',
670
+ },
671
+ },
672
+ },
673
+ },
674
+ },
675
+ ComAtprotoServerGetAccountsConfig: {
676
+ lexicon: 1,
677
+ id: 'com.atproto.server.getAccountsConfig',
678
+ defs: {
679
+ main: {
680
+ type: 'query',
681
+ description:
682
+ "Get a document describing the service's accounts configuration.",
683
+ output: {
684
+ encoding: 'application/json',
685
+ schema: {
686
+ type: 'object',
687
+ required: ['availableUserDomains'],
688
+ properties: {
689
+ inviteCodeRequired: {
690
+ type: 'boolean',
691
+ },
692
+ availableUserDomains: {
693
+ type: 'array',
694
+ items: {
695
+ type: 'string',
696
+ },
697
+ },
698
+ links: {
699
+ type: 'ref',
700
+ ref: 'lex:com.atproto.server.getAccountsConfig#links',
701
+ },
702
+ },
703
+ },
704
+ },
705
+ },
706
+ links: {
707
+ type: 'object',
708
+ properties: {
709
+ privacyPolicy: {
710
+ type: 'string',
711
+ },
712
+ termsOfService: {
713
+ type: 'string',
714
+ },
715
+ },
716
+ },
717
+ },
718
+ },
719
+ ComAtprotoSessionCreate: {
720
+ lexicon: 1,
721
+ id: 'com.atproto.session.create',
722
+ defs: {
723
+ main: {
724
+ type: 'procedure',
725
+ description: 'Create an authentication session.',
726
+ input: {
727
+ encoding: 'application/json',
728
+ schema: {
729
+ type: 'object',
730
+ required: ['handle', 'password'],
731
+ properties: {
732
+ handle: {
733
+ type: 'string',
734
+ },
735
+ password: {
736
+ type: 'string',
737
+ },
738
+ },
739
+ },
740
+ },
741
+ output: {
742
+ encoding: 'application/json',
743
+ schema: {
744
+ type: 'object',
745
+ required: ['accessJwt', 'refreshJwt', 'handle', 'did'],
746
+ properties: {
747
+ accessJwt: {
748
+ type: 'string',
749
+ },
750
+ refreshJwt: {
751
+ type: 'string',
752
+ },
753
+ handle: {
754
+ type: 'string',
755
+ },
756
+ did: {
757
+ type: 'string',
758
+ },
759
+ },
760
+ },
761
+ },
762
+ },
763
+ },
764
+ },
765
+ ComAtprotoSessionDelete: {
766
+ lexicon: 1,
767
+ id: 'com.atproto.session.delete',
768
+ defs: {
769
+ main: {
770
+ type: 'procedure',
771
+ description: 'Delete the current session.',
772
+ },
773
+ },
774
+ },
775
+ ComAtprotoSessionGet: {
776
+ lexicon: 1,
777
+ id: 'com.atproto.session.get',
778
+ defs: {
779
+ main: {
780
+ type: 'query',
781
+ description: 'Get information about the current session.',
782
+ output: {
783
+ encoding: 'application/json',
784
+ schema: {
785
+ type: 'object',
786
+ required: ['handle', 'did'],
787
+ properties: {
788
+ handle: {
789
+ type: 'string',
790
+ },
791
+ did: {
792
+ type: 'string',
793
+ },
794
+ },
795
+ },
796
+ },
797
+ },
798
+ },
799
+ },
800
+ ComAtprotoSessionRefresh: {
801
+ lexicon: 1,
802
+ id: 'com.atproto.session.refresh',
803
+ defs: {
804
+ main: {
805
+ type: 'procedure',
806
+ description: 'Refresh an authentication session.',
807
+ output: {
808
+ encoding: 'application/json',
809
+ schema: {
810
+ type: 'object',
811
+ required: ['accessJwt', 'refreshJwt', 'handle', 'did'],
812
+ properties: {
813
+ accessJwt: {
814
+ type: 'string',
815
+ },
816
+ refreshJwt: {
817
+ type: 'string',
818
+ },
819
+ handle: {
820
+ type: 'string',
821
+ },
822
+ did: {
823
+ type: 'string',
824
+ },
825
+ },
826
+ },
827
+ },
828
+ },
829
+ },
830
+ },
831
+ ComAtprotoSyncGetRepo: {
832
+ lexicon: 1,
833
+ id: 'com.atproto.sync.getRepo',
834
+ defs: {
835
+ main: {
836
+ type: 'query',
837
+ description: 'Gets the repo state.',
838
+ parameters: {
839
+ type: 'params',
840
+ required: ['did'],
841
+ properties: {
842
+ did: {
843
+ type: 'string',
844
+ description: 'The DID of the repo.',
845
+ },
846
+ from: {
847
+ type: 'string',
848
+ description: 'A past commit CID.',
849
+ },
850
+ },
851
+ },
852
+ output: {
853
+ encoding: 'application/cbor',
854
+ },
855
+ },
856
+ },
857
+ },
858
+ ComAtprotoSyncGetRoot: {
859
+ lexicon: 1,
860
+ id: 'com.atproto.sync.getRoot',
861
+ defs: {
862
+ main: {
863
+ type: 'query',
864
+ description: 'Gets the current root CID of a repo.',
865
+ parameters: {
866
+ type: 'params',
867
+ required: ['did'],
868
+ properties: {
869
+ did: {
870
+ type: 'string',
871
+ description: 'The DID of the repo.',
872
+ },
873
+ },
874
+ },
875
+ output: {
876
+ encoding: 'application/json',
877
+ schema: {
878
+ type: 'object',
879
+ required: ['root'],
880
+ properties: {
881
+ root: {
882
+ type: 'string',
883
+ },
884
+ },
885
+ },
886
+ },
887
+ },
888
+ },
889
+ },
890
+ ComAtprotoSyncUpdateRepo: {
891
+ lexicon: 1,
892
+ id: 'com.atproto.sync.updateRepo',
893
+ defs: {
894
+ main: {
895
+ type: 'procedure',
896
+ description: 'Writes commits to a repo.',
897
+ parameters: {
898
+ type: 'params',
899
+ required: ['did'],
900
+ properties: {
901
+ did: {
902
+ type: 'string',
903
+ description: 'The DID of the repo.',
904
+ },
905
+ },
906
+ },
907
+ input: {
908
+ encoding: 'application/cbor',
909
+ },
910
+ },
911
+ },
912
+ },
913
+ AppBskyActorCreateScene: {
914
+ lexicon: 1,
915
+ id: 'app.bsky.actor.createScene',
916
+ defs: {
917
+ main: {
918
+ type: 'procedure',
919
+ description: 'Create a scene.',
920
+ input: {
921
+ encoding: 'application/json',
922
+ schema: {
923
+ type: 'object',
924
+ required: ['handle'],
925
+ properties: {
926
+ handle: {
927
+ type: 'string',
928
+ },
929
+ recoveryKey: {
930
+ type: 'string',
931
+ },
932
+ },
933
+ },
934
+ },
935
+ output: {
936
+ encoding: 'application/json',
937
+ schema: {
938
+ type: 'object',
939
+ required: ['handle', 'did', 'declaration'],
940
+ properties: {
941
+ handle: {
942
+ type: 'string',
943
+ },
944
+ did: {
945
+ type: 'string',
946
+ },
947
+ declaration: {
948
+ type: 'ref',
949
+ ref: 'lex:app.bsky.system.declRef',
950
+ },
951
+ },
952
+ },
953
+ },
954
+ errors: [
955
+ {
956
+ name: 'InvalidHandle',
957
+ },
958
+ {
959
+ name: 'HandleNotAvailable',
960
+ },
961
+ ],
962
+ },
963
+ },
964
+ },
965
+ AppBskyActorGetProfile: {
966
+ lexicon: 1,
967
+ id: 'app.bsky.actor.getProfile',
968
+ defs: {
969
+ main: {
970
+ type: 'query',
971
+ parameters: {
972
+ type: 'params',
973
+ required: ['actor'],
974
+ properties: {
975
+ actor: {
976
+ type: 'string',
977
+ },
978
+ },
979
+ },
980
+ output: {
981
+ encoding: 'application/json',
982
+ schema: {
983
+ type: 'object',
984
+ required: [
985
+ 'did',
986
+ 'declaration',
987
+ 'handle',
988
+ 'creator',
989
+ 'followersCount',
990
+ 'followsCount',
991
+ 'membersCount',
992
+ 'postsCount',
993
+ ],
994
+ properties: {
995
+ did: {
996
+ type: 'string',
997
+ },
998
+ declaration: {
999
+ type: 'ref',
1000
+ ref: 'lex:app.bsky.system.declRef',
1001
+ },
1002
+ handle: {
1003
+ type: 'string',
1004
+ },
1005
+ creator: {
1006
+ type: 'string',
1007
+ },
1008
+ displayName: {
1009
+ type: 'string',
1010
+ maxLength: 64,
1011
+ },
1012
+ description: {
1013
+ type: 'string',
1014
+ maxLength: 256,
1015
+ },
1016
+ avatar: {
1017
+ type: 'string',
1018
+ },
1019
+ banner: {
1020
+ type: 'string',
1021
+ },
1022
+ followersCount: {
1023
+ type: 'integer',
1024
+ },
1025
+ followsCount: {
1026
+ type: 'integer',
1027
+ },
1028
+ membersCount: {
1029
+ type: 'integer',
1030
+ },
1031
+ postsCount: {
1032
+ type: 'integer',
1033
+ },
1034
+ myState: {
1035
+ type: 'ref',
1036
+ ref: 'lex:app.bsky.actor.getProfile#myState',
1037
+ },
1038
+ },
1039
+ },
1040
+ },
1041
+ },
1042
+ myState: {
1043
+ type: 'object',
1044
+ properties: {
1045
+ follow: {
1046
+ type: 'string',
1047
+ },
1048
+ member: {
1049
+ type: 'string',
1050
+ },
1051
+ },
1052
+ },
1053
+ },
1054
+ },
1055
+ AppBskyActorGetSuggestions: {
1056
+ lexicon: 1,
1057
+ id: 'app.bsky.actor.getSuggestions',
1058
+ defs: {
1059
+ main: {
1060
+ type: 'query',
1061
+ description:
1062
+ 'Get a list of actors suggested for following. Used in discovery UIs.',
1063
+ parameters: {
1064
+ type: 'params',
1065
+ properties: {
1066
+ limit: {
1067
+ type: 'integer',
1068
+ minimum: 1,
1069
+ maximum: 100,
1070
+ default: 50,
1071
+ },
1072
+ cursor: {
1073
+ type: 'string',
1074
+ },
1075
+ },
1076
+ },
1077
+ output: {
1078
+ encoding: 'application/json',
1079
+ schema: {
1080
+ type: 'object',
1081
+ required: ['actors'],
1082
+ properties: {
1083
+ cursor: {
1084
+ type: 'string',
1085
+ },
1086
+ actors: {
1087
+ type: 'array',
1088
+ items: {
1089
+ type: 'ref',
1090
+ ref: 'lex:app.bsky.actor.getSuggestions#actor',
1091
+ },
1092
+ },
1093
+ },
1094
+ },
1095
+ },
1096
+ },
1097
+ actor: {
1098
+ type: 'object',
1099
+ required: ['did', 'declaration', 'handle'],
1100
+ properties: {
1101
+ did: {
1102
+ type: 'string',
1103
+ },
1104
+ declaration: {
1105
+ type: 'ref',
1106
+ ref: 'lex:app.bsky.system.declRef',
1107
+ },
1108
+ handle: {
1109
+ type: 'string',
1110
+ },
1111
+ displayName: {
1112
+ type: 'string',
1113
+ maxLength: 64,
1114
+ },
1115
+ description: {
1116
+ type: 'string',
1117
+ },
1118
+ avatar: {
1119
+ type: 'string',
1120
+ },
1121
+ indexedAt: {
1122
+ type: 'datetime',
1123
+ },
1124
+ myState: {
1125
+ type: 'ref',
1126
+ ref: 'lex:app.bsky.actor.getSuggestions#myState',
1127
+ },
1128
+ },
1129
+ },
1130
+ myState: {
1131
+ type: 'object',
1132
+ properties: {
1133
+ follow: {
1134
+ type: 'string',
1135
+ },
1136
+ },
1137
+ },
1138
+ },
1139
+ },
1140
+ AppBskyActorProfile: {
1141
+ lexicon: 1,
1142
+ id: 'app.bsky.actor.profile',
1143
+ defs: {
1144
+ main: {
1145
+ type: 'record',
1146
+ key: 'literal:self',
1147
+ record: {
1148
+ type: 'object',
1149
+ required: ['displayName'],
1150
+ properties: {
1151
+ displayName: {
1152
+ type: 'string',
1153
+ maxLength: 64,
1154
+ },
1155
+ description: {
1156
+ type: 'string',
1157
+ maxLength: 256,
1158
+ },
1159
+ avatar: {
1160
+ type: 'image',
1161
+ accept: ['image/png', 'image/jpeg'],
1162
+ maxWidth: 500,
1163
+ maxHeight: 500,
1164
+ maxSize: 300000,
1165
+ },
1166
+ banner: {
1167
+ type: 'image',
1168
+ accept: ['image/png', 'image/jpeg'],
1169
+ maxWidth: 1500,
1170
+ maxHeight: 500,
1171
+ maxSize: 500000,
1172
+ },
1173
+ },
1174
+ },
1175
+ },
1176
+ },
1177
+ },
1178
+ AppBskyActorRef: {
1179
+ lexicon: 1,
1180
+ id: 'app.bsky.actor.ref',
1181
+ description: 'A reference to an actor in the network.',
1182
+ defs: {
1183
+ main: {
1184
+ type: 'object',
1185
+ required: ['did', 'declarationCid'],
1186
+ properties: {
1187
+ did: {
1188
+ type: 'string',
1189
+ },
1190
+ declarationCid: {
1191
+ type: 'string',
1192
+ },
1193
+ },
1194
+ },
1195
+ withInfo: {
1196
+ type: 'object',
1197
+ required: ['did', 'declaration', 'handle'],
1198
+ properties: {
1199
+ did: {
1200
+ type: 'string',
1201
+ },
1202
+ declaration: {
1203
+ type: 'ref',
1204
+ ref: 'lex:app.bsky.system.declRef',
1205
+ },
1206
+ handle: {
1207
+ type: 'string',
1208
+ },
1209
+ displayName: {
1210
+ type: 'string',
1211
+ maxLength: 64,
1212
+ },
1213
+ avatar: {
1214
+ type: 'string',
1215
+ },
1216
+ },
1217
+ },
1218
+ },
1219
+ },
1220
+ AppBskyActorSearch: {
1221
+ lexicon: 1,
1222
+ id: 'app.bsky.actor.search',
1223
+ defs: {
1224
+ main: {
1225
+ type: 'query',
1226
+ description: 'Find users matching search criteria.',
1227
+ parameters: {
1228
+ type: 'params',
1229
+ required: ['term'],
1230
+ properties: {
1231
+ term: {
1232
+ type: 'string',
1233
+ },
1234
+ limit: {
1235
+ type: 'integer',
1236
+ minimum: 1,
1237
+ maximum: 100,
1238
+ default: 50,
1239
+ },
1240
+ before: {
1241
+ type: 'string',
1242
+ },
1243
+ },
1244
+ },
1245
+ output: {
1246
+ encoding: 'application/json',
1247
+ schema: {
1248
+ type: 'object',
1249
+ required: ['users'],
1250
+ properties: {
1251
+ cursor: {
1252
+ type: 'string',
1253
+ },
1254
+ users: {
1255
+ type: 'array',
1256
+ items: {
1257
+ type: 'ref',
1258
+ ref: 'lex:app.bsky.actor.search#user',
1259
+ },
1260
+ },
1261
+ },
1262
+ },
1263
+ },
1264
+ },
1265
+ user: {
1266
+ type: 'object',
1267
+ required: ['did', 'declaration', 'handle'],
1268
+ properties: {
1269
+ did: {
1270
+ type: 'string',
1271
+ },
1272
+ declaration: {
1273
+ type: 'ref',
1274
+ ref: 'lex:app.bsky.system.declRef',
1275
+ },
1276
+ handle: {
1277
+ type: 'string',
1278
+ },
1279
+ displayName: {
1280
+ type: 'string',
1281
+ maxLength: 64,
1282
+ },
1283
+ avatar: {
1284
+ type: 'string',
1285
+ },
1286
+ description: {
1287
+ type: 'string',
1288
+ },
1289
+ indexedAt: {
1290
+ type: 'datetime',
1291
+ },
1292
+ },
1293
+ },
1294
+ },
1295
+ },
1296
+ AppBskyActorSearchTypeahead: {
1297
+ lexicon: 1,
1298
+ id: 'app.bsky.actor.searchTypeahead',
1299
+ defs: {
1300
+ main: {
1301
+ type: 'query',
1302
+ description: 'Find user suggestions for a search term.',
1303
+ parameters: {
1304
+ type: 'params',
1305
+ required: ['term'],
1306
+ properties: {
1307
+ term: {
1308
+ type: 'string',
1309
+ },
1310
+ limit: {
1311
+ type: 'integer',
1312
+ minimum: 1,
1313
+ maximum: 100,
1314
+ default: 50,
1315
+ },
1316
+ },
1317
+ },
1318
+ output: {
1319
+ encoding: 'application/json',
1320
+ schema: {
1321
+ type: 'object',
1322
+ required: ['users'],
1323
+ properties: {
1324
+ users: {
1325
+ type: 'array',
1326
+ items: {
1327
+ type: 'ref',
1328
+ ref: 'lex:app.bsky.actor.searchTypeahead#user',
1329
+ },
1330
+ },
1331
+ },
1332
+ },
1333
+ },
1334
+ },
1335
+ user: {
1336
+ type: 'object',
1337
+ required: ['did', 'declaration', 'handle'],
1338
+ properties: {
1339
+ did: {
1340
+ type: 'string',
1341
+ },
1342
+ declaration: {
1343
+ type: 'ref',
1344
+ ref: 'lex:app.bsky.system.declRef',
1345
+ },
1346
+ handle: {
1347
+ type: 'string',
1348
+ },
1349
+ displayName: {
1350
+ type: 'string',
1351
+ maxLength: 64,
1352
+ },
1353
+ avatar: {
1354
+ type: 'string',
1355
+ },
1356
+ },
1357
+ },
1358
+ },
1359
+ },
1360
+ AppBskyActorUpdateProfile: {
1361
+ lexicon: 1,
1362
+ id: 'app.bsky.actor.updateProfile',
1363
+ defs: {
1364
+ main: {
1365
+ type: 'procedure',
1366
+ description: 'Notify server that the user has seen notifications.',
1367
+ input: {
1368
+ encoding: 'application/json',
1369
+ schema: {
1370
+ type: 'object',
1371
+ properties: {
1372
+ did: {
1373
+ type: 'string',
1374
+ },
1375
+ displayName: {
1376
+ type: 'string',
1377
+ maxLength: 64,
1378
+ },
1379
+ description: {
1380
+ type: 'string',
1381
+ maxLength: 256,
1382
+ },
1383
+ avatar: {
1384
+ type: 'image',
1385
+ accept: ['image/png', 'image/jpeg'],
1386
+ maxWidth: 500,
1387
+ maxHeight: 500,
1388
+ maxSize: 100000,
1389
+ },
1390
+ banner: {
1391
+ type: 'image',
1392
+ accept: ['image/png', 'image/jpeg'],
1393
+ maxWidth: 1500,
1394
+ maxHeight: 500,
1395
+ maxSize: 500000,
1396
+ },
1397
+ },
1398
+ },
1399
+ },
1400
+ output: {
1401
+ encoding: 'application/json',
1402
+ schema: {
1403
+ type: 'object',
1404
+ required: ['uri', 'cid', 'record'],
1405
+ properties: {
1406
+ uri: {
1407
+ type: 'string',
1408
+ },
1409
+ cid: {
1410
+ type: 'string',
1411
+ },
1412
+ record: {
1413
+ type: 'unknown',
1414
+ },
1415
+ },
1416
+ },
1417
+ },
1418
+ errors: [
1419
+ {
1420
+ name: 'InvalidBlob',
1421
+ },
1422
+ {
1423
+ name: 'BlobTooLarge',
1424
+ },
1425
+ {
1426
+ name: 'InvalidMimeType',
1427
+ },
1428
+ {
1429
+ name: 'InvalidImageDimensions',
1430
+ },
1431
+ ],
1432
+ },
1433
+ },
1434
+ },
1435
+ AppBskyEmbedExternal: {
1436
+ lexicon: 1,
1437
+ id: 'app.bsky.embed.external',
1438
+ description:
1439
+ 'An representation of some externally linked content, embedded in another form of content',
1440
+ defs: {
1441
+ main: {
1442
+ type: 'object',
1443
+ required: ['external'],
1444
+ properties: {
1445
+ external: {
1446
+ type: 'ref',
1447
+ ref: 'lex:app.bsky.embed.external#external',
1448
+ },
1449
+ },
1450
+ },
1451
+ external: {
1452
+ type: 'object',
1453
+ required: ['uri', 'title', 'description'],
1454
+ properties: {
1455
+ uri: {
1456
+ type: 'string',
1457
+ },
1458
+ title: {
1459
+ type: 'string',
1460
+ },
1461
+ description: {
1462
+ type: 'string',
1463
+ },
1464
+ thumb: {
1465
+ type: 'image',
1466
+ accept: ['image/*'],
1467
+ maxWidth: 250,
1468
+ maxHeight: 250,
1469
+ maxSize: 100000,
1470
+ },
1471
+ },
1472
+ },
1473
+ presented: {
1474
+ type: 'object',
1475
+ required: ['external'],
1476
+ properties: {
1477
+ external: {
1478
+ type: 'ref',
1479
+ ref: 'lex:app.bsky.embed.external#presentedExternal',
1480
+ },
1481
+ },
1482
+ },
1483
+ presentedExternal: {
1484
+ type: 'object',
1485
+ required: ['uri', 'title', 'description'],
1486
+ properties: {
1487
+ uri: {
1488
+ type: 'string',
1489
+ },
1490
+ title: {
1491
+ type: 'string',
1492
+ },
1493
+ description: {
1494
+ type: 'string',
1495
+ },
1496
+ thumb: {
1497
+ type: 'string',
1498
+ },
1499
+ },
1500
+ },
1501
+ },
1502
+ },
1503
+ AppBskyEmbedImages: {
1504
+ lexicon: 1,
1505
+ id: 'app.bsky.embed.images',
1506
+ description: 'A set of images embedded in some other form of content',
1507
+ defs: {
1508
+ main: {
1509
+ type: 'object',
1510
+ required: ['images'],
1511
+ properties: {
1512
+ images: {
1513
+ type: 'array',
1514
+ items: {
1515
+ type: 'ref',
1516
+ ref: 'lex:app.bsky.embed.images#image',
1517
+ },
1518
+ maxLength: 4,
1519
+ },
1520
+ },
1521
+ },
1522
+ image: {
1523
+ type: 'object',
1524
+ required: ['image', 'alt'],
1525
+ properties: {
1526
+ image: {
1527
+ type: 'image',
1528
+ accept: ['image/*'],
1529
+ maxWidth: 500,
1530
+ maxHeight: 500,
1531
+ maxSize: 300000,
1532
+ },
1533
+ alt: {
1534
+ type: 'string',
1535
+ },
1536
+ },
1537
+ },
1538
+ presented: {
1539
+ type: 'object',
1540
+ required: ['images'],
1541
+ properties: {
1542
+ images: {
1543
+ type: 'array',
1544
+ items: {
1545
+ type: 'ref',
1546
+ ref: 'lex:app.bsky.embed.images#presentedImage',
1547
+ },
1548
+ maxLength: 4,
1549
+ },
1550
+ },
1551
+ },
1552
+ presentedImage: {
1553
+ type: 'object',
1554
+ required: ['thumb', 'fullsize', 'alt'],
1555
+ properties: {
1556
+ thumb: {
1557
+ type: 'string',
1558
+ },
1559
+ fullsize: {
1560
+ type: 'string',
1561
+ },
1562
+ alt: {
1563
+ type: 'string',
1564
+ },
1565
+ },
1566
+ },
1567
+ },
1568
+ },
1569
+ AppBskyFeedFeedViewPost: {
1570
+ lexicon: 1,
1571
+ id: 'app.bsky.feed.feedViewPost',
1572
+ defs: {
1573
+ main: {
1574
+ type: 'object',
1575
+ required: ['post'],
1576
+ properties: {
1577
+ post: {
1578
+ type: 'ref',
1579
+ ref: 'lex:app.bsky.feed.post#view',
1580
+ },
1581
+ reply: {
1582
+ type: 'ref',
1583
+ ref: 'lex:app.bsky.feed.feedViewPost#replyRef',
1584
+ },
1585
+ reason: {
1586
+ type: 'union',
1587
+ refs: [
1588
+ 'lex:app.bsky.feed.feedViewPost#reasonTrend',
1589
+ 'lex:app.bsky.feed.feedViewPost#reasonRepost',
1590
+ ],
1591
+ },
1592
+ },
1593
+ },
1594
+ replyRef: {
1595
+ type: 'object',
1596
+ required: ['root', 'parent'],
1597
+ properties: {
1598
+ root: {
1599
+ type: 'ref',
1600
+ ref: 'lex:app.bsky.feed.post#view',
1601
+ },
1602
+ parent: {
1603
+ type: 'ref',
1604
+ ref: 'lex:app.bsky.feed.post#view',
1605
+ },
1606
+ },
1607
+ },
1608
+ reasonTrend: {
1609
+ type: 'object',
1610
+ required: ['by', 'indexedAt'],
1611
+ properties: {
1612
+ by: {
1613
+ type: 'ref',
1614
+ ref: 'lex:app.bsky.actor.ref#withInfo',
1615
+ },
1616
+ indexedAt: {
1617
+ type: 'datetime',
1618
+ },
1619
+ },
1620
+ },
1621
+ reasonRepost: {
1622
+ type: 'object',
1623
+ required: ['by', 'indexedAt'],
1624
+ properties: {
1625
+ by: {
1626
+ type: 'ref',
1627
+ ref: 'lex:app.bsky.actor.ref#withInfo',
1628
+ },
1629
+ indexedAt: {
1630
+ type: 'datetime',
1631
+ },
1632
+ },
1633
+ },
1634
+ },
1635
+ },
1636
+ AppBskyFeedGetAuthorFeed: {
1637
+ lexicon: 1,
1638
+ id: 'app.bsky.feed.getAuthorFeed',
1639
+ defs: {
1640
+ main: {
1641
+ type: 'query',
1642
+ description: "A view of a user's feed.",
1643
+ parameters: {
1644
+ type: 'params',
1645
+ required: ['author'],
1646
+ properties: {
1647
+ author: {
1648
+ type: 'string',
1649
+ },
1650
+ limit: {
1651
+ type: 'integer',
1652
+ minimum: 1,
1653
+ maximum: 100,
1654
+ default: 50,
1655
+ },
1656
+ before: {
1657
+ type: 'string',
1658
+ },
1659
+ },
1660
+ },
1661
+ output: {
1662
+ encoding: 'application/json',
1663
+ schema: {
1664
+ type: 'object',
1665
+ required: ['feed'],
1666
+ properties: {
1667
+ cursor: {
1668
+ type: 'string',
1669
+ },
1670
+ feed: {
1671
+ type: 'array',
1672
+ items: {
1673
+ type: 'ref',
1674
+ ref: 'lex:app.bsky.feed.feedViewPost',
1675
+ },
1676
+ },
1677
+ },
1678
+ },
1679
+ },
1680
+ },
1681
+ },
1682
+ },
1683
+ AppBskyFeedGetPostThread: {
1684
+ lexicon: 1,
1685
+ id: 'app.bsky.feed.getPostThread',
1686
+ defs: {
1687
+ main: {
1688
+ type: 'query',
1689
+ parameters: {
1690
+ type: 'params',
1691
+ required: ['uri'],
1692
+ properties: {
1693
+ uri: {
1694
+ type: 'string',
1695
+ },
1696
+ depth: {
1697
+ type: 'integer',
1698
+ },
1699
+ },
1700
+ },
1701
+ output: {
1702
+ encoding: 'application/json',
1703
+ schema: {
1704
+ type: 'object',
1705
+ required: ['thread'],
1706
+ properties: {
1707
+ thread: {
1708
+ type: 'union',
1709
+ refs: [
1710
+ 'lex:app.bsky.feed.getPostThread#threadViewPost',
1711
+ 'lex:app.bsky.feed.getPostThread#notFoundPost',
1712
+ ],
1713
+ },
1714
+ },
1715
+ },
1716
+ },
1717
+ errors: [
1718
+ {
1719
+ name: 'NotFound',
1720
+ },
1721
+ ],
1722
+ },
1723
+ threadViewPost: {
1724
+ type: 'object',
1725
+ required: ['post'],
1726
+ properties: {
1727
+ post: {
1728
+ type: 'ref',
1729
+ ref: 'lex:app.bsky.feed.post#view',
1730
+ },
1731
+ parent: {
1732
+ type: 'union',
1733
+ refs: [
1734
+ 'lex:app.bsky.feed.getPostThread#threadViewPost',
1735
+ 'lex:app.bsky.feed.getPostThread#notFoundPost',
1736
+ ],
1737
+ },
1738
+ replies: {
1739
+ type: 'array',
1740
+ items: {
1741
+ type: 'union',
1742
+ refs: [
1743
+ 'lex:app.bsky.feed.getPostThread#threadViewPost',
1744
+ 'lex:app.bsky.feed.getPostThread#notFoundPost',
1745
+ ],
1746
+ },
1747
+ },
1748
+ },
1749
+ },
1750
+ notFoundPost: {
1751
+ type: 'object',
1752
+ required: ['uri', 'notFound'],
1753
+ properties: {
1754
+ uri: {
1755
+ type: 'string',
1756
+ },
1757
+ notFound: {
1758
+ type: 'boolean',
1759
+ const: true,
1760
+ },
1761
+ },
1762
+ },
1763
+ },
1764
+ },
1765
+ AppBskyFeedGetRepostedBy: {
1766
+ lexicon: 1,
1767
+ id: 'app.bsky.feed.getRepostedBy',
1768
+ defs: {
1769
+ main: {
1770
+ type: 'query',
1771
+ parameters: {
1772
+ type: 'params',
1773
+ required: ['uri'],
1774
+ properties: {
1775
+ uri: {
1776
+ type: 'string',
1777
+ },
1778
+ cid: {
1779
+ type: 'string',
1780
+ },
1781
+ limit: {
1782
+ type: 'integer',
1783
+ minimum: 1,
1784
+ maximum: 100,
1785
+ default: 50,
1786
+ },
1787
+ before: {
1788
+ type: 'string',
1789
+ },
1790
+ },
1791
+ },
1792
+ output: {
1793
+ encoding: 'application/json',
1794
+ schema: {
1795
+ type: 'object',
1796
+ required: ['uri', 'repostedBy'],
1797
+ properties: {
1798
+ uri: {
1799
+ type: 'string',
1800
+ },
1801
+ cid: {
1802
+ type: 'string',
1803
+ },
1804
+ cursor: {
1805
+ type: 'string',
1806
+ },
1807
+ repostedBy: {
1808
+ type: 'array',
1809
+ items: {
1810
+ type: 'ref',
1811
+ ref: 'lex:app.bsky.feed.getRepostedBy#repostedBy',
1812
+ },
1813
+ },
1814
+ },
1815
+ },
1816
+ },
1817
+ },
1818
+ repostedBy: {
1819
+ type: 'object',
1820
+ required: ['did', 'declaration', 'handle', 'indexedAt'],
1821
+ properties: {
1822
+ did: {
1823
+ type: 'string',
1824
+ },
1825
+ declaration: {
1826
+ type: 'ref',
1827
+ ref: 'lex:app.bsky.system.declRef',
1828
+ },
1829
+ handle: {
1830
+ type: 'string',
1831
+ },
1832
+ displayName: {
1833
+ type: 'string',
1834
+ maxLength: 64,
1835
+ },
1836
+ avatar: {
1837
+ type: 'string',
1838
+ },
1839
+ createdAt: {
1840
+ type: 'datetime',
1841
+ },
1842
+ indexedAt: {
1843
+ type: 'datetime',
1844
+ },
1845
+ },
1846
+ },
1847
+ },
1848
+ },
1849
+ AppBskyFeedGetTimeline: {
1850
+ lexicon: 1,
1851
+ id: 'app.bsky.feed.getTimeline',
1852
+ defs: {
1853
+ main: {
1854
+ type: 'query',
1855
+ description: "A view of the user's home timeline.",
1856
+ parameters: {
1857
+ type: 'params',
1858
+ properties: {
1859
+ algorithm: {
1860
+ type: 'string',
1861
+ },
1862
+ limit: {
1863
+ type: 'integer',
1864
+ minimum: 1,
1865
+ maximum: 100,
1866
+ default: 50,
1867
+ },
1868
+ before: {
1869
+ type: 'string',
1870
+ },
1871
+ },
1872
+ },
1873
+ output: {
1874
+ encoding: 'application/json',
1875
+ schema: {
1876
+ type: 'object',
1877
+ required: ['feed'],
1878
+ properties: {
1879
+ cursor: {
1880
+ type: 'string',
1881
+ },
1882
+ feed: {
1883
+ type: 'array',
1884
+ items: {
1885
+ type: 'ref',
1886
+ ref: 'lex:app.bsky.feed.feedViewPost',
1887
+ },
1888
+ },
1889
+ },
1890
+ },
1891
+ },
1892
+ },
1893
+ },
1894
+ },
1895
+ AppBskyFeedGetVotes: {
1896
+ lexicon: 1,
1897
+ id: 'app.bsky.feed.getVotes',
1898
+ defs: {
1899
+ main: {
1900
+ type: 'query',
1901
+ parameters: {
1902
+ type: 'params',
1903
+ required: ['uri'],
1904
+ properties: {
1905
+ uri: {
1906
+ type: 'string',
1907
+ },
1908
+ cid: {
1909
+ type: 'string',
1910
+ },
1911
+ direction: {
1912
+ type: 'string',
1913
+ enum: ['up', 'down'],
1914
+ },
1915
+ limit: {
1916
+ type: 'integer',
1917
+ minimum: 1,
1918
+ maximum: 100,
1919
+ default: 50,
1920
+ },
1921
+ before: {
1922
+ type: 'string',
1923
+ },
1924
+ },
1925
+ },
1926
+ output: {
1927
+ encoding: 'application/json',
1928
+ schema: {
1929
+ type: 'object',
1930
+ required: ['uri', 'votes'],
1931
+ properties: {
1932
+ uri: {
1933
+ type: 'string',
1934
+ },
1935
+ cid: {
1936
+ type: 'string',
1937
+ },
1938
+ cursor: {
1939
+ type: 'string',
1940
+ },
1941
+ votes: {
1942
+ type: 'array',
1943
+ items: {
1944
+ type: 'ref',
1945
+ ref: 'lex:app.bsky.feed.getVotes#vote',
1946
+ },
1947
+ },
1948
+ },
1949
+ },
1950
+ },
1951
+ },
1952
+ vote: {
1953
+ type: 'object',
1954
+ required: ['direction', 'indexedAt', 'createdAt', 'actor'],
1955
+ properties: {
1956
+ direction: {
1957
+ type: 'string',
1958
+ enum: ['up', 'down'],
1959
+ },
1960
+ indexedAt: {
1961
+ type: 'datetime',
1962
+ },
1963
+ createdAt: {
1964
+ type: 'datetime',
1965
+ },
1966
+ actor: {
1967
+ type: 'ref',
1968
+ ref: 'lex:app.bsky.actor.ref#withInfo',
1969
+ },
1970
+ },
1971
+ },
1972
+ },
1973
+ },
1974
+ AppBskyFeedPost: {
1975
+ lexicon: 1,
1976
+ id: 'app.bsky.feed.post',
1977
+ defs: {
1978
+ main: {
1979
+ type: 'record',
1980
+ key: 'tid',
1981
+ record: {
1982
+ type: 'object',
1983
+ required: ['text', 'createdAt'],
1984
+ properties: {
1985
+ text: {
1986
+ type: 'string',
1987
+ maxLength: 256,
1988
+ },
1989
+ entities: {
1990
+ type: 'array',
1991
+ items: {
1992
+ type: 'ref',
1993
+ ref: 'lex:app.bsky.feed.post#entity',
1994
+ },
1995
+ },
1996
+ reply: {
1997
+ type: 'ref',
1998
+ ref: 'lex:app.bsky.feed.post#replyRef',
1999
+ },
2000
+ embed: {
2001
+ type: 'union',
2002
+ refs: [
2003
+ 'lex:app.bsky.embed.images',
2004
+ 'lex:app.bsky.embed.external',
2005
+ ],
2006
+ },
2007
+ createdAt: {
2008
+ type: 'datetime',
2009
+ },
2010
+ },
2011
+ },
2012
+ },
2013
+ replyRef: {
2014
+ type: 'object',
2015
+ required: ['root', 'parent'],
2016
+ properties: {
2017
+ root: {
2018
+ type: 'ref',
2019
+ ref: 'lex:com.atproto.repo.strongRef',
2020
+ },
2021
+ parent: {
2022
+ type: 'ref',
2023
+ ref: 'lex:com.atproto.repo.strongRef',
2024
+ },
2025
+ },
2026
+ },
2027
+ entity: {
2028
+ type: 'object',
2029
+ required: ['index', 'type', 'value'],
2030
+ properties: {
2031
+ index: {
2032
+ type: 'ref',
2033
+ ref: 'lex:app.bsky.feed.post#textSlice',
2034
+ },
2035
+ type: {
2036
+ type: 'string',
2037
+ description:
2038
+ "Expected values are 'mention', 'hashtag', and 'link'.",
2039
+ },
2040
+ value: {
2041
+ type: 'string',
2042
+ },
2043
+ },
2044
+ },
2045
+ textSlice: {
2046
+ type: 'object',
2047
+ required: ['start', 'end'],
2048
+ properties: {
2049
+ start: {
2050
+ type: 'integer',
2051
+ minimum: 0,
2052
+ },
2053
+ end: {
2054
+ type: 'integer',
2055
+ minimum: 0,
2056
+ },
2057
+ },
2058
+ },
2059
+ view: {
2060
+ type: 'object',
2061
+ required: [
2062
+ 'uri',
2063
+ 'cid',
2064
+ 'author',
2065
+ 'record',
2066
+ 'replyCount',
2067
+ 'repostCount',
2068
+ 'upvoteCount',
2069
+ 'downvoteCount',
2070
+ 'indexedAt',
2071
+ 'viewer',
2072
+ ],
2073
+ properties: {
2074
+ uri: {
2075
+ type: 'string',
2076
+ },
2077
+ cid: {
2078
+ type: 'string',
2079
+ },
2080
+ author: {
2081
+ type: 'ref',
2082
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2083
+ },
2084
+ record: {
2085
+ type: 'unknown',
2086
+ },
2087
+ embed: {
2088
+ type: 'union',
2089
+ refs: [
2090
+ 'lex:app.bsky.embed.images#presented',
2091
+ 'lex:app.bsky.embed.external#presented',
2092
+ ],
2093
+ },
2094
+ replyCount: {
2095
+ type: 'integer',
2096
+ },
2097
+ repostCount: {
2098
+ type: 'integer',
2099
+ },
2100
+ upvoteCount: {
2101
+ type: 'integer',
2102
+ },
2103
+ downvoteCount: {
2104
+ type: 'integer',
2105
+ },
2106
+ indexedAt: {
2107
+ type: 'datetime',
2108
+ },
2109
+ viewer: {
2110
+ type: 'ref',
2111
+ ref: 'lex:app.bsky.feed.post#viewerState',
2112
+ },
2113
+ },
2114
+ },
2115
+ viewerState: {
2116
+ type: 'object',
2117
+ properties: {
2118
+ repost: {
2119
+ type: 'string',
2120
+ },
2121
+ upvote: {
2122
+ type: 'string',
2123
+ },
2124
+ downvote: {
2125
+ type: 'string',
2126
+ },
2127
+ },
2128
+ },
2129
+ },
2130
+ },
2131
+ AppBskyFeedRepost: {
2132
+ lexicon: 1,
2133
+ id: 'app.bsky.feed.repost',
2134
+ defs: {
2135
+ main: {
2136
+ type: 'record',
2137
+ key: 'tid',
2138
+ record: {
2139
+ type: 'object',
2140
+ required: ['subject', 'createdAt'],
2141
+ properties: {
2142
+ subject: {
2143
+ type: 'ref',
2144
+ ref: 'lex:com.atproto.repo.strongRef',
2145
+ },
2146
+ createdAt: {
2147
+ type: 'datetime',
2148
+ },
2149
+ },
2150
+ },
2151
+ },
2152
+ },
2153
+ },
2154
+ AppBskyFeedSetVote: {
2155
+ lexicon: 1,
2156
+ id: 'app.bsky.feed.setVote',
2157
+ defs: {
2158
+ main: {
2159
+ type: 'procedure',
2160
+ description: "Upvote, downvote, or clear the user's vote for a post.",
2161
+ input: {
2162
+ encoding: 'application/json',
2163
+ schema: {
2164
+ type: 'object',
2165
+ required: ['subject', 'direction'],
2166
+ properties: {
2167
+ subject: {
2168
+ type: 'ref',
2169
+ ref: 'lex:com.atproto.repo.strongRef',
2170
+ },
2171
+ direction: {
2172
+ type: 'string',
2173
+ enum: ['up', 'down', 'none'],
2174
+ },
2175
+ },
2176
+ },
2177
+ },
2178
+ output: {
2179
+ encoding: 'application/json',
2180
+ schema: {
2181
+ type: 'object',
2182
+ properties: {
2183
+ upvote: {
2184
+ type: 'string',
2185
+ },
2186
+ downvote: {
2187
+ type: 'string',
2188
+ },
2189
+ },
2190
+ },
2191
+ },
2192
+ },
2193
+ },
2194
+ },
2195
+ AppBskyFeedTrend: {
2196
+ lexicon: 1,
2197
+ id: 'app.bsky.feed.trend',
2198
+ defs: {
2199
+ main: {
2200
+ type: 'record',
2201
+ key: 'tid',
2202
+ record: {
2203
+ type: 'object',
2204
+ required: ['subject', 'createdAt'],
2205
+ properties: {
2206
+ subject: {
2207
+ type: 'ref',
2208
+ ref: 'lex:com.atproto.repo.strongRef',
2209
+ },
2210
+ createdAt: {
2211
+ type: 'datetime',
2212
+ },
2213
+ },
2214
+ },
2215
+ },
2216
+ },
2217
+ },
2218
+ AppBskyFeedVote: {
2219
+ lexicon: 1,
2220
+ id: 'app.bsky.feed.vote',
2221
+ defs: {
2222
+ main: {
2223
+ type: 'record',
2224
+ key: 'tid',
2225
+ record: {
2226
+ type: 'object',
2227
+ required: ['subject', 'direction', 'createdAt'],
2228
+ properties: {
2229
+ subject: {
2230
+ type: 'ref',
2231
+ ref: 'lex:com.atproto.repo.strongRef',
2232
+ },
2233
+ direction: {
2234
+ type: 'string',
2235
+ enum: ['up', 'down'],
2236
+ },
2237
+ createdAt: {
2238
+ type: 'datetime',
2239
+ },
2240
+ },
2241
+ },
2242
+ },
2243
+ },
2244
+ },
2245
+ AppBskyGraphAssertCreator: {
2246
+ lexicon: 1,
2247
+ id: 'app.bsky.graph.assertCreator',
2248
+ defs: {
2249
+ main: {
2250
+ type: 'token',
2251
+ description:
2252
+ "Assertion type: Creator. Defined for app.bsky.graph.assertions's assertion.",
2253
+ },
2254
+ },
2255
+ },
2256
+ AppBskyGraphAssertMember: {
2257
+ lexicon: 1,
2258
+ id: 'app.bsky.graph.assertMember',
2259
+ defs: {
2260
+ main: {
2261
+ type: 'token',
2262
+ description:
2263
+ "Assertion type: Member. Defined for app.bsky.graph.assertions's assertion.",
2264
+ },
2265
+ },
2266
+ },
2267
+ AppBskyGraphAssertion: {
2268
+ lexicon: 1,
2269
+ id: 'app.bsky.graph.assertion',
2270
+ defs: {
2271
+ main: {
2272
+ type: 'record',
2273
+ key: 'tid',
2274
+ record: {
2275
+ type: 'object',
2276
+ required: ['assertion', 'subject', 'createdAt'],
2277
+ properties: {
2278
+ assertion: {
2279
+ type: 'string',
2280
+ },
2281
+ subject: {
2282
+ type: 'ref',
2283
+ ref: 'lex:app.bsky.actor.ref',
2284
+ },
2285
+ createdAt: {
2286
+ type: 'datetime',
2287
+ },
2288
+ },
2289
+ },
2290
+ },
2291
+ },
2292
+ },
2293
+ AppBskyGraphConfirmation: {
2294
+ lexicon: 1,
2295
+ id: 'app.bsky.graph.confirmation',
2296
+ defs: {
2297
+ main: {
2298
+ type: 'record',
2299
+ key: 'tid',
2300
+ record: {
2301
+ type: 'object',
2302
+ required: ['originator', 'assertion', 'createdAt'],
2303
+ properties: {
2304
+ originator: {
2305
+ type: 'ref',
2306
+ ref: 'lex:app.bsky.actor.ref',
2307
+ },
2308
+ assertion: {
2309
+ type: 'ref',
2310
+ ref: 'lex:com.atproto.repo.strongRef',
2311
+ },
2312
+ createdAt: {
2313
+ type: 'datetime',
2314
+ },
2315
+ },
2316
+ },
2317
+ },
2318
+ },
2319
+ },
2320
+ AppBskyGraphFollow: {
2321
+ lexicon: 1,
2322
+ id: 'app.bsky.graph.follow',
2323
+ defs: {
2324
+ main: {
2325
+ type: 'record',
2326
+ description: 'A social follow.',
2327
+ key: 'tid',
2328
+ record: {
2329
+ type: 'object',
2330
+ required: ['subject', 'createdAt'],
2331
+ properties: {
2332
+ subject: {
2333
+ type: 'ref',
2334
+ ref: 'lex:app.bsky.actor.ref',
2335
+ },
2336
+ createdAt: {
2337
+ type: 'datetime',
2338
+ },
2339
+ },
2340
+ },
2341
+ },
2342
+ },
2343
+ },
2344
+ AppBskyGraphGetAssertions: {
2345
+ lexicon: 1,
2346
+ id: 'app.bsky.graph.getAssertions',
2347
+ defs: {
2348
+ main: {
2349
+ type: 'query',
2350
+ description: 'General-purpose query for assertions.',
2351
+ parameters: {
2352
+ type: 'params',
2353
+ properties: {
2354
+ author: {
2355
+ type: 'string',
2356
+ },
2357
+ subject: {
2358
+ type: 'string',
2359
+ },
2360
+ assertion: {
2361
+ type: 'string',
2362
+ },
2363
+ confirmed: {
2364
+ type: 'boolean',
2365
+ },
2366
+ limit: {
2367
+ type: 'integer',
2368
+ minimum: 1,
2369
+ maximum: 100,
2370
+ default: 50,
2371
+ },
2372
+ before: {
2373
+ type: 'string',
2374
+ },
2375
+ },
2376
+ },
2377
+ output: {
2378
+ encoding: 'application/json',
2379
+ schema: {
2380
+ type: 'object',
2381
+ required: ['assertions'],
2382
+ properties: {
2383
+ cursor: {
2384
+ type: 'string',
2385
+ },
2386
+ assertions: {
2387
+ type: 'array',
2388
+ items: {
2389
+ type: 'ref',
2390
+ ref: 'lex:app.bsky.graph.getAssertions#assertion',
2391
+ },
2392
+ },
2393
+ },
2394
+ },
2395
+ },
2396
+ },
2397
+ assertion: {
2398
+ type: 'object',
2399
+ required: [
2400
+ 'uri',
2401
+ 'cid',
2402
+ 'assertion',
2403
+ 'author',
2404
+ 'subject',
2405
+ 'indexedAt',
2406
+ 'createdAt',
2407
+ ],
2408
+ properties: {
2409
+ uri: {
2410
+ type: 'string',
2411
+ },
2412
+ cid: {
2413
+ type: 'string',
2414
+ },
2415
+ assertion: {
2416
+ type: 'string',
2417
+ },
2418
+ confirmation: {
2419
+ type: 'ref',
2420
+ ref: 'lex:app.bsky.graph.getAssertions#confirmation',
2421
+ },
2422
+ author: {
2423
+ type: 'ref',
2424
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2425
+ },
2426
+ subject: {
2427
+ type: 'ref',
2428
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2429
+ },
2430
+ indexedAt: {
2431
+ type: 'datetime',
2432
+ },
2433
+ createdAt: {
2434
+ type: 'datetime',
2435
+ },
2436
+ },
2437
+ },
2438
+ confirmation: {
2439
+ type: 'object',
2440
+ required: ['uri', 'cid', 'indexedAt', 'createdAt'],
2441
+ properties: {
2442
+ uri: {
2443
+ type: 'string',
2444
+ },
2445
+ cid: {
2446
+ type: 'string',
2447
+ },
2448
+ indexedAt: {
2449
+ type: 'datetime',
2450
+ },
2451
+ createdAt: {
2452
+ type: 'datetime',
2453
+ },
2454
+ },
2455
+ },
2456
+ },
2457
+ },
2458
+ AppBskyGraphGetFollowers: {
2459
+ lexicon: 1,
2460
+ id: 'app.bsky.graph.getFollowers',
2461
+ defs: {
2462
+ main: {
2463
+ type: 'query',
2464
+ description: 'Who is following a user?',
2465
+ parameters: {
2466
+ type: 'params',
2467
+ required: ['user'],
2468
+ properties: {
2469
+ user: {
2470
+ type: 'string',
2471
+ },
2472
+ limit: {
2473
+ type: 'integer',
2474
+ minimum: 1,
2475
+ maximum: 100,
2476
+ default: 50,
2477
+ },
2478
+ before: {
2479
+ type: 'string',
2480
+ },
2481
+ },
2482
+ },
2483
+ output: {
2484
+ encoding: 'application/json',
2485
+ schema: {
2486
+ type: 'object',
2487
+ required: ['subject', 'followers'],
2488
+ properties: {
2489
+ subject: {
2490
+ type: 'ref',
2491
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2492
+ },
2493
+ cursor: {
2494
+ type: 'string',
2495
+ },
2496
+ followers: {
2497
+ type: 'array',
2498
+ items: {
2499
+ type: 'ref',
2500
+ ref: 'lex:app.bsky.graph.getFollowers#follower',
2501
+ },
2502
+ },
2503
+ },
2504
+ },
2505
+ },
2506
+ },
2507
+ follower: {
2508
+ type: 'object',
2509
+ required: ['did', 'declaration', 'handle', 'indexedAt'],
2510
+ properties: {
2511
+ did: {
2512
+ type: 'string',
2513
+ },
2514
+ declaration: {
2515
+ type: 'ref',
2516
+ ref: 'lex:app.bsky.system.declRef',
2517
+ },
2518
+ handle: {
2519
+ type: 'string',
2520
+ },
2521
+ displayName: {
2522
+ type: 'string',
2523
+ maxLength: 64,
2524
+ },
2525
+ avatar: {
2526
+ type: 'string',
2527
+ },
2528
+ createdAt: {
2529
+ type: 'datetime',
2530
+ },
2531
+ indexedAt: {
2532
+ type: 'datetime',
2533
+ },
2534
+ },
2535
+ },
2536
+ },
2537
+ },
2538
+ AppBskyGraphGetFollows: {
2539
+ lexicon: 1,
2540
+ id: 'app.bsky.graph.getFollows',
2541
+ defs: {
2542
+ main: {
2543
+ type: 'query',
2544
+ description: 'Who is a user following?',
2545
+ parameters: {
2546
+ type: 'params',
2547
+ required: ['user'],
2548
+ properties: {
2549
+ user: {
2550
+ type: 'string',
2551
+ },
2552
+ limit: {
2553
+ type: 'integer',
2554
+ minimum: 1,
2555
+ maximum: 100,
2556
+ default: 50,
2557
+ },
2558
+ before: {
2559
+ type: 'string',
2560
+ },
2561
+ },
2562
+ },
2563
+ output: {
2564
+ encoding: 'application/json',
2565
+ schema: {
2566
+ type: 'object',
2567
+ required: ['subject', 'follows'],
2568
+ properties: {
2569
+ subject: {
2570
+ type: 'ref',
2571
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2572
+ },
2573
+ cursor: {
2574
+ type: 'string',
2575
+ },
2576
+ follows: {
2577
+ type: 'array',
2578
+ items: {
2579
+ type: 'ref',
2580
+ ref: 'lex:app.bsky.graph.getFollows#follow',
2581
+ },
2582
+ },
2583
+ },
2584
+ },
2585
+ },
2586
+ },
2587
+ follow: {
2588
+ type: 'object',
2589
+ required: ['did', 'declaration', 'handle', 'indexedAt'],
2590
+ properties: {
2591
+ did: {
2592
+ type: 'string',
2593
+ },
2594
+ declaration: {
2595
+ type: 'ref',
2596
+ ref: 'lex:app.bsky.system.declRef',
2597
+ },
2598
+ handle: {
2599
+ type: 'string',
2600
+ },
2601
+ displayName: {
2602
+ type: 'string',
2603
+ maxLength: 64,
2604
+ },
2605
+ createdAt: {
2606
+ type: 'datetime',
2607
+ },
2608
+ indexedAt: {
2609
+ type: 'datetime',
2610
+ },
2611
+ },
2612
+ },
2613
+ },
2614
+ },
2615
+ AppBskyGraphGetMembers: {
2616
+ lexicon: 1,
2617
+ id: 'app.bsky.graph.getMembers',
2618
+ defs: {
2619
+ main: {
2620
+ type: 'query',
2621
+ description: 'Who is a member of the group?',
2622
+ parameters: {
2623
+ type: 'params',
2624
+ required: ['actor'],
2625
+ properties: {
2626
+ actor: {
2627
+ type: 'string',
2628
+ },
2629
+ limit: {
2630
+ type: 'integer',
2631
+ minimum: 1,
2632
+ maximum: 100,
2633
+ default: 50,
2634
+ },
2635
+ before: {
2636
+ type: 'string',
2637
+ },
2638
+ },
2639
+ },
2640
+ output: {
2641
+ encoding: 'application/json',
2642
+ schema: {
2643
+ type: 'object',
2644
+ required: ['subject', 'members'],
2645
+ properties: {
2646
+ subject: {
2647
+ type: 'ref',
2648
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2649
+ },
2650
+ cursor: {
2651
+ type: 'string',
2652
+ },
2653
+ members: {
2654
+ type: 'array',
2655
+ items: {
2656
+ type: 'ref',
2657
+ ref: 'lex:app.bsky.graph.getMembers#member',
2658
+ },
2659
+ },
2660
+ },
2661
+ },
2662
+ },
2663
+ },
2664
+ member: {
2665
+ type: 'object',
2666
+ required: ['did', 'declaration', 'handle', 'indexedAt'],
2667
+ properties: {
2668
+ did: {
2669
+ type: 'string',
2670
+ },
2671
+ declaration: {
2672
+ type: 'ref',
2673
+ ref: 'lex:app.bsky.system.declRef',
2674
+ },
2675
+ handle: {
2676
+ type: 'string',
2677
+ },
2678
+ displayName: {
2679
+ type: 'string',
2680
+ maxLength: 64,
2681
+ },
2682
+ createdAt: {
2683
+ type: 'datetime',
2684
+ },
2685
+ indexedAt: {
2686
+ type: 'datetime',
2687
+ },
2688
+ },
2689
+ },
2690
+ },
2691
+ },
2692
+ AppBskyGraphGetMemberships: {
2693
+ lexicon: 1,
2694
+ id: 'app.bsky.graph.getMemberships',
2695
+ defs: {
2696
+ main: {
2697
+ type: 'query',
2698
+ description: 'Which groups is the actor a member of?',
2699
+ parameters: {
2700
+ type: 'params',
2701
+ required: ['actor'],
2702
+ properties: {
2703
+ actor: {
2704
+ type: 'string',
2705
+ },
2706
+ limit: {
2707
+ type: 'integer',
2708
+ minimum: 1,
2709
+ maximum: 100,
2710
+ default: 50,
2711
+ },
2712
+ before: {
2713
+ type: 'string',
2714
+ },
2715
+ },
2716
+ },
2717
+ output: {
2718
+ encoding: 'application/json',
2719
+ schema: {
2720
+ type: 'object',
2721
+ required: ['subject', 'memberships'],
2722
+ properties: {
2723
+ subject: {
2724
+ type: 'ref',
2725
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2726
+ },
2727
+ cursor: {
2728
+ type: 'string',
2729
+ },
2730
+ memberships: {
2731
+ type: 'array',
2732
+ items: {
2733
+ type: 'ref',
2734
+ ref: 'lex:app.bsky.graph.getMemberships#membership',
2735
+ },
2736
+ },
2737
+ },
2738
+ },
2739
+ },
2740
+ },
2741
+ membership: {
2742
+ type: 'object',
2743
+ required: ['did', 'declaration', 'handle', 'indexedAt'],
2744
+ properties: {
2745
+ did: {
2746
+ type: 'string',
2747
+ },
2748
+ declaration: {
2749
+ type: 'ref',
2750
+ ref: 'lex:app.bsky.system.declRef',
2751
+ },
2752
+ handle: {
2753
+ type: 'string',
2754
+ },
2755
+ displayName: {
2756
+ type: 'string',
2757
+ maxLength: 64,
2758
+ },
2759
+ createdAt: {
2760
+ type: 'datetime',
2761
+ },
2762
+ indexedAt: {
2763
+ type: 'datetime',
2764
+ },
2765
+ },
2766
+ },
2767
+ },
2768
+ },
2769
+ AppBskyNotificationGetCount: {
2770
+ lexicon: 1,
2771
+ id: 'app.bsky.notification.getCount',
2772
+ defs: {
2773
+ main: {
2774
+ type: 'query',
2775
+ output: {
2776
+ encoding: 'application/json',
2777
+ schema: {
2778
+ type: 'object',
2779
+ required: ['count'],
2780
+ properties: {
2781
+ count: {
2782
+ type: 'integer',
2783
+ },
2784
+ },
2785
+ },
2786
+ },
2787
+ },
2788
+ },
2789
+ },
2790
+ AppBskyNotificationList: {
2791
+ lexicon: 1,
2792
+ id: 'app.bsky.notification.list',
2793
+ defs: {
2794
+ main: {
2795
+ type: 'query',
2796
+ parameters: {
2797
+ type: 'params',
2798
+ properties: {
2799
+ limit: {
2800
+ type: 'integer',
2801
+ minimum: 1,
2802
+ maximum: 100,
2803
+ default: 50,
2804
+ },
2805
+ before: {
2806
+ type: 'string',
2807
+ },
2808
+ },
2809
+ },
2810
+ output: {
2811
+ encoding: 'application/json',
2812
+ schema: {
2813
+ type: 'object',
2814
+ required: ['notifications'],
2815
+ properties: {
2816
+ cursor: {
2817
+ type: 'string',
2818
+ },
2819
+ notifications: {
2820
+ type: 'array',
2821
+ items: {
2822
+ type: 'ref',
2823
+ ref: 'lex:app.bsky.notification.list#notification',
2824
+ },
2825
+ },
2826
+ },
2827
+ },
2828
+ },
2829
+ },
2830
+ notification: {
2831
+ type: 'object',
2832
+ required: [
2833
+ 'uri',
2834
+ 'cid',
2835
+ 'author',
2836
+ 'reason',
2837
+ 'record',
2838
+ 'isRead',
2839
+ 'indexedAt',
2840
+ ],
2841
+ properties: {
2842
+ uri: {
2843
+ type: 'string',
2844
+ },
2845
+ cid: {
2846
+ type: 'string',
2847
+ },
2848
+ author: {
2849
+ type: 'ref',
2850
+ ref: 'lex:app.bsky.actor.ref#withInfo',
2851
+ },
2852
+ reason: {
2853
+ type: 'string',
2854
+ description:
2855
+ "Expected values are 'vote', 'repost', 'trend', 'follow', 'invite', 'mention' and 'reply'.",
2856
+ knownValues: [
2857
+ 'vote',
2858
+ 'repost',
2859
+ 'trend',
2860
+ 'follow',
2861
+ 'invite',
2862
+ 'mention',
2863
+ 'reply',
2864
+ ],
2865
+ },
2866
+ reasonSubject: {
2867
+ type: 'string',
2868
+ },
2869
+ record: {
2870
+ type: 'unknown',
2871
+ },
2872
+ isRead: {
2873
+ type: 'boolean',
2874
+ },
2875
+ indexedAt: {
2876
+ type: 'datetime',
2877
+ },
2878
+ },
2879
+ },
2880
+ },
2881
+ },
2882
+ AppBskyNotificationUpdateSeen: {
2883
+ lexicon: 1,
2884
+ id: 'app.bsky.notification.updateSeen',
2885
+ defs: {
2886
+ main: {
2887
+ type: 'procedure',
2888
+ description: 'Notify server that the user has seen notifications.',
2889
+ input: {
2890
+ encoding: 'application/json',
2891
+ schema: {
2892
+ type: 'object',
2893
+ required: ['seenAt'],
2894
+ properties: {
2895
+ seenAt: {
2896
+ type: 'datetime',
2897
+ },
2898
+ },
2899
+ },
2900
+ },
2901
+ },
2902
+ },
2903
+ },
2904
+ AppBskySystemActorScene: {
2905
+ lexicon: 1,
2906
+ id: 'app.bsky.system.actorScene',
2907
+ defs: {
2908
+ main: {
2909
+ type: 'token',
2910
+ description:
2911
+ "Actor type: Scene. Defined for app.bsky.system.declaration's actorType.",
2912
+ },
2913
+ },
2914
+ },
2915
+ AppBskySystemActorUser: {
2916
+ lexicon: 1,
2917
+ id: 'app.bsky.system.actorUser',
2918
+ defs: {
2919
+ main: {
2920
+ type: 'token',
2921
+ description:
2922
+ "Actor type: User. Defined for app.bsky.system.declaration's actorType.",
2923
+ },
2924
+ },
2925
+ },
2926
+ AppBskySystemDeclRef: {
2927
+ lexicon: 1,
2928
+ id: 'app.bsky.system.declRef',
2929
+ defs: {
2930
+ main: {
2931
+ description: 'A reference to a app.bsky.system.declaration record.',
2932
+ type: 'object',
2933
+ required: ['cid', 'actorType'],
2934
+ properties: {
2935
+ cid: {
2936
+ type: 'string',
2937
+ },
2938
+ actorType: {
2939
+ type: 'string',
2940
+ knownValues: [
2941
+ 'app.bsky.system.actorUser',
2942
+ 'app.bsky.system.actorScene',
2943
+ ],
2944
+ },
2945
+ },
2946
+ },
2947
+ },
2948
+ },
2949
+ AppBskySystemDeclaration: {
2950
+ lexicon: 1,
2951
+ id: 'app.bsky.system.declaration',
2952
+ defs: {
2953
+ main: {
2954
+ description:
2955
+ 'Context for an account that is considered intrinsic to it and alters the fundamental understanding of an account of changed. A declaration should be treated as immutable.',
2956
+ type: 'record',
2957
+ key: 'literal:self',
2958
+ record: {
2959
+ type: 'object',
2960
+ required: ['actorType'],
2961
+ properties: {
2962
+ actorType: {
2963
+ type: 'string',
2964
+ knownValues: [
2965
+ 'app.bsky.system.actorUser',
2966
+ 'app.bsky.system.actorScene',
2967
+ ],
2968
+ },
2969
+ },
2970
+ },
2971
+ },
2972
+ },
2973
+ },
2974
+ }
2975
+ export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
2976
+ export const lexicons: Lexicons = new Lexicons(schemas)
2977
+ export const ids = {
2978
+ ComAtprotoAccountCreate: 'com.atproto.account.create',
2979
+ ComAtprotoAccountCreateInviteCode: 'com.atproto.account.createInviteCode',
2980
+ ComAtprotoAccountDelete: 'com.atproto.account.delete',
2981
+ ComAtprotoAccountGet: 'com.atproto.account.get',
2982
+ ComAtprotoAccountRequestPasswordReset:
2983
+ 'com.atproto.account.requestPasswordReset',
2984
+ ComAtprotoAccountResetPassword: 'com.atproto.account.resetPassword',
2985
+ ComAtprotoBlobUpload: 'com.atproto.blob.upload',
2986
+ ComAtprotoHandleResolve: 'com.atproto.handle.resolve',
2987
+ ComAtprotoRepoBatchWrite: 'com.atproto.repo.batchWrite',
2988
+ ComAtprotoRepoCreateRecord: 'com.atproto.repo.createRecord',
2989
+ ComAtprotoRepoDeleteRecord: 'com.atproto.repo.deleteRecord',
2990
+ ComAtprotoRepoDescribe: 'com.atproto.repo.describe',
2991
+ ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
2992
+ ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords',
2993
+ ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',
2994
+ ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
2995
+ ComAtprotoServerGetAccountsConfig: 'com.atproto.server.getAccountsConfig',
2996
+ ComAtprotoSessionCreate: 'com.atproto.session.create',
2997
+ ComAtprotoSessionDelete: 'com.atproto.session.delete',
2998
+ ComAtprotoSessionGet: 'com.atproto.session.get',
2999
+ ComAtprotoSessionRefresh: 'com.atproto.session.refresh',
3000
+ ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',
3001
+ ComAtprotoSyncGetRoot: 'com.atproto.sync.getRoot',
3002
+ ComAtprotoSyncUpdateRepo: 'com.atproto.sync.updateRepo',
3003
+ AppBskyActorCreateScene: 'app.bsky.actor.createScene',
3004
+ AppBskyActorGetProfile: 'app.bsky.actor.getProfile',
3005
+ AppBskyActorGetSuggestions: 'app.bsky.actor.getSuggestions',
3006
+ AppBskyActorProfile: 'app.bsky.actor.profile',
3007
+ AppBskyActorRef: 'app.bsky.actor.ref',
3008
+ AppBskyActorSearch: 'app.bsky.actor.search',
3009
+ AppBskyActorSearchTypeahead: 'app.bsky.actor.searchTypeahead',
3010
+ AppBskyActorUpdateProfile: 'app.bsky.actor.updateProfile',
3011
+ AppBskyEmbedExternal: 'app.bsky.embed.external',
3012
+ AppBskyEmbedImages: 'app.bsky.embed.images',
3013
+ AppBskyFeedFeedViewPost: 'app.bsky.feed.feedViewPost',
3014
+ AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed',
3015
+ AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
3016
+ AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
3017
+ AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline',
3018
+ AppBskyFeedGetVotes: 'app.bsky.feed.getVotes',
3019
+ AppBskyFeedPost: 'app.bsky.feed.post',
3020
+ AppBskyFeedRepost: 'app.bsky.feed.repost',
3021
+ AppBskyFeedSetVote: 'app.bsky.feed.setVote',
3022
+ AppBskyFeedTrend: 'app.bsky.feed.trend',
3023
+ AppBskyFeedVote: 'app.bsky.feed.vote',
3024
+ AppBskyGraphAssertCreator: 'app.bsky.graph.assertCreator',
3025
+ AppBskyGraphAssertMember: 'app.bsky.graph.assertMember',
3026
+ AppBskyGraphAssertion: 'app.bsky.graph.assertion',
3027
+ AppBskyGraphConfirmation: 'app.bsky.graph.confirmation',
3028
+ AppBskyGraphFollow: 'app.bsky.graph.follow',
3029
+ AppBskyGraphGetAssertions: 'app.bsky.graph.getAssertions',
3030
+ AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
3031
+ AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
3032
+ AppBskyGraphGetMembers: 'app.bsky.graph.getMembers',
3033
+ AppBskyGraphGetMemberships: 'app.bsky.graph.getMemberships',
3034
+ AppBskyNotificationGetCount: 'app.bsky.notification.getCount',
3035
+ AppBskyNotificationList: 'app.bsky.notification.list',
3036
+ AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
3037
+ AppBskySystemActorScene: 'app.bsky.system.actorScene',
3038
+ AppBskySystemActorUser: 'app.bsky.system.actorUser',
3039
+ AppBskySystemDeclRef: 'app.bsky.system.declRef',
3040
+ AppBskySystemDeclaration: 'app.bsky.system.declaration',
3041
+ }