@atproto/bsky 0.0.37 → 0.0.39

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 (149) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +2 -3
  3. package/dist/api/app/bsky/feed/getListFeed.d.ts +2 -2
  4. package/dist/api/app/bsky/feed/getTimeline.d.ts +4 -2
  5. package/dist/api/app/bsky/labeler/getServices.d.ts +3 -0
  6. package/dist/api/util.d.ts +9 -2
  7. package/dist/auth-verifier.d.ts +1 -1
  8. package/dist/context.d.ts +3 -0
  9. package/dist/data-plane/server/db/database-schema.d.ts +2 -2
  10. package/dist/data-plane/server/db/migrations/20240226T225725627Z-labelers.d.ts +3 -0
  11. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  12. package/dist/data-plane/server/db/tables/labeler.d.ts +13 -0
  13. package/dist/data-plane/server/indexing/index.d.ts +2 -0
  14. package/dist/data-plane/server/indexing/plugins/labeler.d.ts +10 -0
  15. package/dist/data-plane/server/util.d.ts +6 -6
  16. package/dist/hydration/actor.d.ts +3 -0
  17. package/dist/hydration/hydrator.d.ts +27 -22
  18. package/dist/hydration/label.d.ts +23 -9
  19. package/dist/index.js +4100 -4645
  20. package/dist/index.js.map +3 -3
  21. package/dist/lexicon/index.d.ts +7 -27
  22. package/dist/lexicon/lexicons.d.ts +516 -1463
  23. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +23 -1
  24. package/dist/lexicon/types/app/bsky/embed/record.d.ts +2 -1
  25. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -0
  26. package/dist/lexicon/types/app/bsky/graph/defs.d.ts +3 -0
  27. package/dist/lexicon/types/app/bsky/labeler/defs.d.ts +41 -0
  28. package/dist/lexicon/types/{com/atproto/admin/searchRepos.d.ts → app/bsky/labeler/getServices.d.ts} +7 -7
  29. package/dist/lexicon/types/app/bsky/labeler/service.d.ts +14 -0
  30. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +0 -304
  31. package/dist/lexicon/types/com/atproto/label/defs.d.ts +23 -0
  32. package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +7 -0
  33. package/dist/proto/bsky_connect.d.ts +7 -1
  34. package/dist/proto/bsky_pb.d.ts +25 -0
  35. package/dist/util.d.ts +7 -0
  36. package/dist/views/index.d.ts +3 -0
  37. package/dist/views/types.d.ts +2 -1
  38. package/package.json +14 -13
  39. package/proto/bsky.proto +12 -0
  40. package/src/api/app/bsky/actor/getProfile.ts +21 -17
  41. package/src/api/app/bsky/actor/getProfiles.ts +16 -7
  42. package/src/api/app/bsky/actor/getSuggestions.ts +18 -13
  43. package/src/api/app/bsky/actor/searchActors.ts +9 -5
  44. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +12 -5
  45. package/src/api/app/bsky/feed/getActorFeeds.ts +16 -6
  46. package/src/api/app/bsky/feed/getActorLikes.ts +18 -8
  47. package/src/api/app/bsky/feed/getAuthorFeed.ts +18 -19
  48. package/src/api/app/bsky/feed/getFeed.ts +14 -7
  49. package/src/api/app/bsky/feed/getFeedGenerator.ts +8 -2
  50. package/src/api/app/bsky/feed/getFeedGenerators.ts +16 -5
  51. package/src/api/app/bsky/feed/getLikes.ts +13 -6
  52. package/src/api/app/bsky/feed/getListFeed.ts +13 -7
  53. package/src/api/app/bsky/feed/getPostThread.ts +15 -8
  54. package/src/api/app/bsky/feed/getPosts.ts +14 -5
  55. package/src/api/app/bsky/feed/getRepostedBy.ts +13 -6
  56. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +8 -2
  57. package/src/api/app/bsky/feed/getTimeline.ts +14 -8
  58. package/src/api/app/bsky/feed/searchPosts.ts +9 -5
  59. package/src/api/app/bsky/graph/getBlocks.ts +10 -9
  60. package/src/api/app/bsky/graph/getFollowers.ts +23 -15
  61. package/src/api/app/bsky/graph/getFollows.ts +23 -15
  62. package/src/api/app/bsky/graph/getList.ts +14 -8
  63. package/src/api/app/bsky/graph/getListBlocks.ts +10 -7
  64. package/src/api/app/bsky/graph/getListMutes.ts +10 -7
  65. package/src/api/app/bsky/graph/getLists.ts +9 -7
  66. package/src/api/app/bsky/graph/getMutes.ts +10 -8
  67. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +10 -7
  68. package/src/api/app/bsky/graph/muteActor.ts +1 -1
  69. package/src/api/app/bsky/labeler/getServices.ts +46 -0
  70. package/src/api/app/bsky/notification/listNotifications.ts +12 -8
  71. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +6 -3
  72. package/src/api/com/atproto/admin/getAccountInfos.ts +10 -3
  73. package/src/api/index.ts +2 -0
  74. package/src/api/util.ts +19 -4
  75. package/src/auth-verifier.ts +2 -2
  76. package/src/context.ts +20 -0
  77. package/src/data-plane/server/db/database-schema.ts +4 -4
  78. package/src/data-plane/server/db/migrations/20240226T225725627Z-labelers.ts +27 -0
  79. package/src/data-plane/server/db/migrations/index.ts +1 -0
  80. package/src/data-plane/server/db/tables/labeler.ts +16 -0
  81. package/src/data-plane/server/indexing/index.ts +4 -0
  82. package/src/data-plane/server/indexing/plugins/labeler.ts +77 -0
  83. package/src/data-plane/server/routes/interactions.ts +17 -1
  84. package/src/data-plane/server/routes/labels.ts +4 -2
  85. package/src/data-plane/server/routes/profile.ts +15 -1
  86. package/src/data-plane/server/routes/records.ts +1 -0
  87. package/src/hydration/actor.ts +6 -0
  88. package/src/hydration/hydrator.ts +171 -97
  89. package/src/hydration/label.ts +106 -20
  90. package/src/index.ts +1 -3
  91. package/src/lexicon/index.ts +22 -137
  92. package/src/lexicon/lexicons.ts +552 -1635
  93. package/src/lexicon/types/app/bsky/actor/defs.ts +57 -1
  94. package/src/lexicon/types/app/bsky/embed/record.ts +2 -0
  95. package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
  96. package/src/lexicon/types/app/bsky/graph/defs.ts +3 -0
  97. package/src/lexicon/types/app/bsky/labeler/defs.ts +93 -0
  98. package/src/lexicon/types/{com/atproto/admin/searchRepos.ts → app/bsky/labeler/getServices.ts} +8 -8
  99. package/src/lexicon/types/app/bsky/labeler/service.ts +31 -0
  100. package/src/lexicon/types/com/atproto/admin/defs.ts +0 -694
  101. package/src/lexicon/types/com/atproto/label/defs.ts +78 -0
  102. package/src/lexicon/types/com/atproto/server/describeServer.ts +18 -0
  103. package/src/proto/bsky_connect.ts +11 -0
  104. package/src/proto/bsky_pb.ts +146 -0
  105. package/src/util.ts +44 -0
  106. package/src/views/index.ts +77 -8
  107. package/src/views/types.ts +6 -3
  108. package/tests/__snapshots__/feed-generation.test.ts.snap +12 -45
  109. package/tests/_util.ts +21 -0
  110. package/tests/data-plane/__snapshots__/indexing.test.ts.snap +20 -8
  111. package/tests/label-hydration.test.ts +162 -0
  112. package/tests/views/__snapshots__/author-feed.test.ts.snap +0 -46
  113. package/tests/views/__snapshots__/block-lists.test.ts.snap +7 -17
  114. package/tests/views/__snapshots__/blocks.test.ts.snap +0 -9
  115. package/tests/views/__snapshots__/labeler-service.test.ts.snap +156 -0
  116. package/tests/views/__snapshots__/list-feed.test.ts.snap +0 -20
  117. package/tests/views/__snapshots__/mute-lists.test.ts.snap +10 -18
  118. package/tests/views/__snapshots__/mutes.test.ts.snap +0 -4
  119. package/tests/views/__snapshots__/notifications.test.ts.snap +0 -9
  120. package/tests/views/__snapshots__/posts.test.ts.snap +0 -7
  121. package/tests/views/__snapshots__/profile.test.ts.snap +40 -6
  122. package/tests/views/__snapshots__/thread.test.ts.snap +0 -38
  123. package/tests/views/__snapshots__/threadgating.test.ts.snap +2 -0
  124. package/tests/views/__snapshots__/timeline.test.ts.snap +0 -145
  125. package/tests/views/labeler-service.test.ts +156 -0
  126. package/tests/views/takedown-labels.test.ts +133 -0
  127. package/tests/views/timeline.test.ts +7 -2
  128. package/dist/data-plane/server/db/tables/moderation.d.ts +0 -42
  129. package/dist/lexicon/types/com/atproto/admin/createCommunicationTemplate.d.ts +0 -37
  130. package/dist/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.d.ts +0 -25
  131. package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +0 -45
  132. package/dist/lexicon/types/com/atproto/admin/getModerationEvent.d.ts +0 -29
  133. package/dist/lexicon/types/com/atproto/admin/getRecord.d.ts +0 -31
  134. package/dist/lexicon/types/com/atproto/admin/getRepo.d.ts +0 -30
  135. package/dist/lexicon/types/com/atproto/admin/listCommunicationTemplates.d.ts +0 -31
  136. package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +0 -48
  137. package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +0 -50
  138. package/dist/lexicon/types/com/atproto/admin/updateCommunicationTemplate.d.ts +0 -39
  139. package/src/data-plane/server/db/tables/moderation.ts +0 -59
  140. package/src/lexicon/types/com/atproto/admin/createCommunicationTemplate.ts +0 -54
  141. package/src/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.ts +0 -38
  142. package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +0 -67
  143. package/src/lexicon/types/com/atproto/admin/getModerationEvent.ts +0 -41
  144. package/src/lexicon/types/com/atproto/admin/getRecord.ts +0 -43
  145. package/src/lexicon/types/com/atproto/admin/getRepo.ts +0 -42
  146. package/src/lexicon/types/com/atproto/admin/listCommunicationTemplates.ts +0 -44
  147. package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +0 -73
  148. package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +0 -74
  149. package/src/lexicon/types/com/atproto/admin/updateCommunicationTemplate.ts +0 -57
@@ -4,51 +4,6 @@
4
4
  import { LexiconDoc, Lexicons } from '@atproto/lexicon'
5
5
 
6
6
  export const schemaDict = {
7
- ComAtprotoAdminCreateCommunicationTemplate: {
8
- lexicon: 1,
9
- id: 'com.atproto.admin.createCommunicationTemplate',
10
- defs: {
11
- main: {
12
- type: 'procedure',
13
- description:
14
- 'Administrative action to create a new, re-usable communication (email for now) template.',
15
- input: {
16
- encoding: 'application/json',
17
- schema: {
18
- type: 'object',
19
- required: ['subject', 'contentMarkdown', 'name'],
20
- properties: {
21
- name: {
22
- type: 'string',
23
- description: 'Name of the template.',
24
- },
25
- contentMarkdown: {
26
- type: 'string',
27
- description:
28
- 'Content of the template, markdown supported, can contain variable placeholders.',
29
- },
30
- subject: {
31
- type: 'string',
32
- description: 'Subject of the message, used in emails.',
33
- },
34
- createdBy: {
35
- type: 'string',
36
- format: 'did',
37
- description: 'DID of the user who is creating the template.',
38
- },
39
- },
40
- },
41
- },
42
- output: {
43
- encoding: 'application/json',
44
- schema: {
45
- type: 'ref',
46
- ref: 'lex:com.atproto.admin.defs#communicationTemplateView',
47
- },
48
- },
49
- },
50
- },
51
- },
52
7
  ComAtprotoAdminDefs: {
53
8
  lexicon: 1,
54
9
  id: 'com.atproto.admin.defs',
@@ -65,1369 +20,128 @@ export const schemaDict = {
65
20
  },
66
21
  },
67
22
  },
68
- modEventView: {
23
+ accountView: {
69
24
  type: 'object',
70
- required: [
71
- 'id',
72
- 'event',
73
- 'subject',
74
- 'subjectBlobCids',
75
- 'createdBy',
76
- 'createdAt',
77
- ],
25
+ required: ['did', 'handle', 'indexedAt'],
78
26
  properties: {
79
- id: {
80
- type: 'integer',
81
- },
82
- event: {
83
- type: 'union',
84
- refs: [
85
- 'lex:com.atproto.admin.defs#modEventTakedown',
86
- 'lex:com.atproto.admin.defs#modEventReverseTakedown',
87
- 'lex:com.atproto.admin.defs#modEventComment',
88
- 'lex:com.atproto.admin.defs#modEventReport',
89
- 'lex:com.atproto.admin.defs#modEventLabel',
90
- 'lex:com.atproto.admin.defs#modEventAcknowledge',
91
- 'lex:com.atproto.admin.defs#modEventEscalate',
92
- 'lex:com.atproto.admin.defs#modEventMute',
93
- 'lex:com.atproto.admin.defs#modEventEmail',
94
- 'lex:com.atproto.admin.defs#modEventResolveAppeal',
95
- ],
96
- },
97
- subject: {
98
- type: 'union',
99
- refs: [
100
- 'lex:com.atproto.admin.defs#repoRef',
101
- 'lex:com.atproto.repo.strongRef',
102
- ],
103
- },
104
- subjectBlobCids: {
105
- type: 'array',
106
- items: {
107
- type: 'string',
108
- },
109
- },
110
- createdBy: {
27
+ did: {
111
28
  type: 'string',
112
29
  format: 'did',
113
30
  },
114
- createdAt: {
115
- type: 'string',
116
- format: 'datetime',
117
- },
118
- creatorHandle: {
31
+ handle: {
119
32
  type: 'string',
33
+ format: 'handle',
120
34
  },
121
- subjectHandle: {
35
+ email: {
122
36
  type: 'string',
123
37
  },
124
- },
125
- },
126
- modEventViewDetail: {
127
- type: 'object',
128
- required: [
129
- 'id',
130
- 'event',
131
- 'subject',
132
- 'subjectBlobs',
133
- 'createdBy',
134
- 'createdAt',
135
- ],
136
- properties: {
137
- id: {
138
- type: 'integer',
139
- },
140
- event: {
141
- type: 'union',
142
- refs: [
143
- 'lex:com.atproto.admin.defs#modEventTakedown',
144
- 'lex:com.atproto.admin.defs#modEventReverseTakedown',
145
- 'lex:com.atproto.admin.defs#modEventComment',
146
- 'lex:com.atproto.admin.defs#modEventReport',
147
- 'lex:com.atproto.admin.defs#modEventLabel',
148
- 'lex:com.atproto.admin.defs#modEventAcknowledge',
149
- 'lex:com.atproto.admin.defs#modEventEscalate',
150
- 'lex:com.atproto.admin.defs#modEventMute',
151
- 'lex:com.atproto.admin.defs#modEventEmail',
152
- 'lex:com.atproto.admin.defs#modEventResolveAppeal',
153
- ],
154
- },
155
- subject: {
156
- type: 'union',
157
- refs: [
158
- 'lex:com.atproto.admin.defs#repoView',
159
- 'lex:com.atproto.admin.defs#repoViewNotFound',
160
- 'lex:com.atproto.admin.defs#recordView',
161
- 'lex:com.atproto.admin.defs#recordViewNotFound',
162
- ],
163
- },
164
- subjectBlobs: {
38
+ relatedRecords: {
165
39
  type: 'array',
166
40
  items: {
167
- type: 'ref',
168
- ref: 'lex:com.atproto.admin.defs#blobView',
41
+ type: 'unknown',
169
42
  },
170
43
  },
171
- createdBy: {
172
- type: 'string',
173
- format: 'did',
174
- },
175
- createdAt: {
44
+ indexedAt: {
176
45
  type: 'string',
177
46
  format: 'datetime',
178
47
  },
179
- },
180
- },
181
- reportView: {
182
- type: 'object',
183
- required: [
184
- 'id',
185
- 'reasonType',
186
- 'subject',
187
- 'reportedBy',
188
- 'createdAt',
189
- 'resolvedByActionIds',
190
- ],
191
- properties: {
192
- id: {
193
- type: 'integer',
194
- },
195
- reasonType: {
48
+ invitedBy: {
196
49
  type: 'ref',
197
- ref: 'lex:com.atproto.moderation.defs#reasonType',
198
- },
199
- comment: {
200
- type: 'string',
201
- },
202
- subjectRepoHandle: {
203
- type: 'string',
204
- },
205
- subject: {
206
- type: 'union',
207
- refs: [
208
- 'lex:com.atproto.admin.defs#repoRef',
209
- 'lex:com.atproto.repo.strongRef',
210
- ],
211
- },
212
- reportedBy: {
213
- type: 'string',
214
- format: 'did',
215
- },
216
- createdAt: {
217
- type: 'string',
218
- format: 'datetime',
219
- },
220
- resolvedByActionIds: {
221
- type: 'array',
222
- items: {
223
- type: 'integer',
224
- },
225
- },
226
- },
227
- },
228
- subjectStatusView: {
229
- type: 'object',
230
- required: ['id', 'subject', 'createdAt', 'updatedAt', 'reviewState'],
231
- properties: {
232
- id: {
233
- type: 'integer',
234
- },
235
- subject: {
236
- type: 'union',
237
- refs: [
238
- 'lex:com.atproto.admin.defs#repoRef',
239
- 'lex:com.atproto.repo.strongRef',
240
- ],
50
+ ref: 'lex:com.atproto.server.defs#inviteCode',
241
51
  },
242
- subjectBlobCids: {
52
+ invites: {
243
53
  type: 'array',
244
54
  items: {
245
- type: 'string',
246
- format: 'cid',
55
+ type: 'ref',
56
+ ref: 'lex:com.atproto.server.defs#inviteCode',
247
57
  },
248
58
  },
249
- subjectRepoHandle: {
250
- type: 'string',
251
- },
252
- updatedAt: {
253
- type: 'string',
254
- format: 'datetime',
255
- description:
256
- 'Timestamp referencing when the last update was made to the moderation status of the subject',
257
- },
258
- createdAt: {
259
- type: 'string',
260
- format: 'datetime',
261
- description:
262
- 'Timestamp referencing the first moderation status impacting event was emitted on the subject',
263
- },
264
- reviewState: {
265
- type: 'ref',
266
- ref: 'lex:com.atproto.admin.defs#subjectReviewState',
267
- },
268
- comment: {
269
- type: 'string',
270
- description: 'Sticky comment on the subject.',
271
- },
272
- muteUntil: {
273
- type: 'string',
274
- format: 'datetime',
275
- },
276
- lastReviewedBy: {
277
- type: 'string',
278
- format: 'did',
279
- },
280
- lastReviewedAt: {
281
- type: 'string',
282
- format: 'datetime',
283
- },
284
- lastReportedAt: {
285
- type: 'string',
286
- format: 'datetime',
287
- },
288
- lastAppealedAt: {
289
- type: 'string',
290
- format: 'datetime',
291
- description:
292
- 'Timestamp referencing when the author of the subject appealed a moderation action',
293
- },
294
- takendown: {
295
- type: 'boolean',
296
- },
297
- appealed: {
59
+ invitesDisabled: {
298
60
  type: 'boolean',
299
- description:
300
- 'True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators.',
301
61
  },
302
- suspendUntil: {
62
+ emailConfirmedAt: {
303
63
  type: 'string',
304
64
  format: 'datetime',
305
65
  },
306
- tags: {
307
- type: 'array',
308
- items: {
309
- type: 'string',
310
- },
66
+ inviteNote: {
67
+ type: 'string',
311
68
  },
312
69
  },
313
70
  },
314
- reportViewDetail: {
71
+ repoRef: {
315
72
  type: 'object',
316
- required: [
317
- 'id',
318
- 'reasonType',
319
- 'subject',
320
- 'reportedBy',
321
- 'createdAt',
322
- 'resolvedByActions',
323
- ],
73
+ required: ['did'],
324
74
  properties: {
325
- id: {
326
- type: 'integer',
327
- },
328
- reasonType: {
329
- type: 'ref',
330
- ref: 'lex:com.atproto.moderation.defs#reasonType',
331
- },
332
- comment: {
333
- type: 'string',
334
- },
335
- subject: {
336
- type: 'union',
337
- refs: [
338
- 'lex:com.atproto.admin.defs#repoView',
339
- 'lex:com.atproto.admin.defs#repoViewNotFound',
340
- 'lex:com.atproto.admin.defs#recordView',
341
- 'lex:com.atproto.admin.defs#recordViewNotFound',
342
- ],
343
- },
344
- subjectStatus: {
345
- type: 'ref',
346
- ref: 'lex:com.atproto.admin.defs#subjectStatusView',
347
- },
348
- reportedBy: {
75
+ did: {
349
76
  type: 'string',
350
77
  format: 'did',
351
78
  },
352
- createdAt: {
353
- type: 'string',
354
- format: 'datetime',
355
- },
356
- resolvedByActions: {
357
- type: 'array',
358
- items: {
359
- type: 'ref',
360
- ref: 'lex:com.atproto.admin.defs#modEventView',
361
- },
362
- },
363
79
  },
364
80
  },
365
- repoView: {
81
+ repoBlobRef: {
366
82
  type: 'object',
367
- required: [
368
- 'did',
369
- 'handle',
370
- 'relatedRecords',
371
- 'indexedAt',
372
- 'moderation',
373
- ],
83
+ required: ['did', 'cid'],
374
84
  properties: {
375
85
  did: {
376
86
  type: 'string',
377
87
  format: 'did',
378
88
  },
379
- handle: {
380
- type: 'string',
381
- format: 'handle',
382
- },
383
- email: {
384
- type: 'string',
385
- },
386
- relatedRecords: {
387
- type: 'array',
388
- items: {
389
- type: 'unknown',
390
- },
391
- },
392
- indexedAt: {
89
+ cid: {
393
90
  type: 'string',
394
- format: 'datetime',
395
- },
396
- moderation: {
397
- type: 'ref',
398
- ref: 'lex:com.atproto.admin.defs#moderation',
399
- },
400
- invitedBy: {
401
- type: 'ref',
402
- ref: 'lex:com.atproto.server.defs#inviteCode',
403
- },
404
- invitesDisabled: {
405
- type: 'boolean',
91
+ format: 'cid',
406
92
  },
407
- inviteNote: {
93
+ recordUri: {
408
94
  type: 'string',
409
- },
410
- },
411
- },
412
- repoViewDetail: {
413
- type: 'object',
414
- required: [
415
- 'did',
416
- 'handle',
417
- 'relatedRecords',
418
- 'indexedAt',
419
- 'moderation',
420
- ],
421
- properties: {
422
- did: {
423
- type: 'string',
424
- format: 'did',
425
- },
426
- handle: {
427
- type: 'string',
428
- format: 'handle',
429
- },
430
- email: {
431
- type: 'string',
432
- },
433
- relatedRecords: {
434
- type: 'array',
435
- items: {
436
- type: 'unknown',
437
- },
438
- },
439
- indexedAt: {
440
- type: 'string',
441
- format: 'datetime',
442
- },
443
- moderation: {
444
- type: 'ref',
445
- ref: 'lex:com.atproto.admin.defs#moderationDetail',
446
- },
447
- labels: {
448
- type: 'array',
449
- items: {
450
- type: 'ref',
451
- ref: 'lex:com.atproto.label.defs#label',
452
- },
453
- },
454
- invitedBy: {
455
- type: 'ref',
456
- ref: 'lex:com.atproto.server.defs#inviteCode',
457
- },
458
- invites: {
459
- type: 'array',
460
- items: {
461
- type: 'ref',
462
- ref: 'lex:com.atproto.server.defs#inviteCode',
463
- },
464
- },
465
- invitesDisabled: {
466
- type: 'boolean',
467
- },
468
- inviteNote: {
469
- type: 'string',
470
- },
471
- emailConfirmedAt: {
472
- type: 'string',
473
- format: 'datetime',
474
- },
475
- },
476
- },
477
- accountView: {
478
- type: 'object',
479
- required: ['did', 'handle', 'indexedAt'],
480
- properties: {
481
- did: {
482
- type: 'string',
483
- format: 'did',
484
- },
485
- handle: {
486
- type: 'string',
487
- format: 'handle',
488
- },
489
- email: {
490
- type: 'string',
491
- },
492
- relatedRecords: {
493
- type: 'array',
494
- items: {
495
- type: 'unknown',
496
- },
497
- },
498
- indexedAt: {
499
- type: 'string',
500
- format: 'datetime',
501
- },
502
- invitedBy: {
503
- type: 'ref',
504
- ref: 'lex:com.atproto.server.defs#inviteCode',
505
- },
506
- invites: {
507
- type: 'array',
508
- items: {
509
- type: 'ref',
510
- ref: 'lex:com.atproto.server.defs#inviteCode',
511
- },
512
- },
513
- invitesDisabled: {
514
- type: 'boolean',
515
- },
516
- emailConfirmedAt: {
517
- type: 'string',
518
- format: 'datetime',
519
- },
520
- inviteNote: {
521
- type: 'string',
522
- },
523
- },
524
- },
525
- repoViewNotFound: {
526
- type: 'object',
527
- required: ['did'],
528
- properties: {
529
- did: {
530
- type: 'string',
531
- format: 'did',
532
- },
533
- },
534
- },
535
- repoRef: {
536
- type: 'object',
537
- required: ['did'],
538
- properties: {
539
- did: {
540
- type: 'string',
541
- format: 'did',
542
- },
543
- },
544
- },
545
- repoBlobRef: {
546
- type: 'object',
547
- required: ['did', 'cid'],
548
- properties: {
549
- did: {
550
- type: 'string',
551
- format: 'did',
552
- },
553
- cid: {
554
- type: 'string',
555
- format: 'cid',
556
- },
557
- recordUri: {
558
- type: 'string',
559
- format: 'at-uri',
560
- },
561
- },
562
- },
563
- recordView: {
564
- type: 'object',
565
- required: [
566
- 'uri',
567
- 'cid',
568
- 'value',
569
- 'blobCids',
570
- 'indexedAt',
571
- 'moderation',
572
- 'repo',
573
- ],
574
- properties: {
575
- uri: {
576
- type: 'string',
577
- format: 'at-uri',
578
- },
579
- cid: {
580
- type: 'string',
581
- format: 'cid',
582
- },
583
- value: {
584
- type: 'unknown',
585
- },
586
- blobCids: {
587
- type: 'array',
588
- items: {
589
- type: 'string',
590
- format: 'cid',
591
- },
592
- },
593
- indexedAt: {
594
- type: 'string',
595
- format: 'datetime',
596
- },
597
- moderation: {
598
- type: 'ref',
599
- ref: 'lex:com.atproto.admin.defs#moderation',
600
- },
601
- repo: {
602
- type: 'ref',
603
- ref: 'lex:com.atproto.admin.defs#repoView',
604
- },
605
- },
606
- },
607
- recordViewDetail: {
608
- type: 'object',
609
- required: [
610
- 'uri',
611
- 'cid',
612
- 'value',
613
- 'blobs',
614
- 'indexedAt',
615
- 'moderation',
616
- 'repo',
617
- ],
618
- properties: {
619
- uri: {
620
- type: 'string',
621
- format: 'at-uri',
622
- },
623
- cid: {
624
- type: 'string',
625
- format: 'cid',
626
- },
627
- value: {
628
- type: 'unknown',
629
- },
630
- blobs: {
631
- type: 'array',
632
- items: {
633
- type: 'ref',
634
- ref: 'lex:com.atproto.admin.defs#blobView',
635
- },
636
- },
637
- labels: {
638
- type: 'array',
639
- items: {
640
- type: 'ref',
641
- ref: 'lex:com.atproto.label.defs#label',
642
- },
643
- },
644
- indexedAt: {
645
- type: 'string',
646
- format: 'datetime',
647
- },
648
- moderation: {
649
- type: 'ref',
650
- ref: 'lex:com.atproto.admin.defs#moderationDetail',
651
- },
652
- repo: {
653
- type: 'ref',
654
- ref: 'lex:com.atproto.admin.defs#repoView',
655
- },
656
- },
657
- },
658
- recordViewNotFound: {
659
- type: 'object',
660
- required: ['uri'],
661
- properties: {
662
- uri: {
663
- type: 'string',
664
- format: 'at-uri',
665
- },
666
- },
667
- },
668
- moderation: {
669
- type: 'object',
670
- properties: {
671
- subjectStatus: {
672
- type: 'ref',
673
- ref: 'lex:com.atproto.admin.defs#subjectStatusView',
674
- },
675
- },
676
- },
677
- moderationDetail: {
678
- type: 'object',
679
- properties: {
680
- subjectStatus: {
681
- type: 'ref',
682
- ref: 'lex:com.atproto.admin.defs#subjectStatusView',
683
- },
684
- },
685
- },
686
- blobView: {
687
- type: 'object',
688
- required: ['cid', 'mimeType', 'size', 'createdAt'],
689
- properties: {
690
- cid: {
691
- type: 'string',
692
- format: 'cid',
693
- },
694
- mimeType: {
695
- type: 'string',
696
- },
697
- size: {
698
- type: 'integer',
699
- },
700
- createdAt: {
701
- type: 'string',
702
- format: 'datetime',
703
- },
704
- details: {
705
- type: 'union',
706
- refs: [
707
- 'lex:com.atproto.admin.defs#imageDetails',
708
- 'lex:com.atproto.admin.defs#videoDetails',
709
- ],
710
- },
711
- moderation: {
712
- type: 'ref',
713
- ref: 'lex:com.atproto.admin.defs#moderation',
714
- },
715
- },
716
- },
717
- imageDetails: {
718
- type: 'object',
719
- required: ['width', 'height'],
720
- properties: {
721
- width: {
722
- type: 'integer',
723
- },
724
- height: {
725
- type: 'integer',
726
- },
727
- },
728
- },
729
- videoDetails: {
730
- type: 'object',
731
- required: ['width', 'height', 'length'],
732
- properties: {
733
- width: {
734
- type: 'integer',
735
- },
736
- height: {
737
- type: 'integer',
738
- },
739
- length: {
740
- type: 'integer',
741
- },
742
- },
743
- },
744
- subjectReviewState: {
745
- type: 'string',
746
- knownValues: [
747
- 'lex:com.atproto.admin.defs#reviewOpen',
748
- 'lex:com.atproto.admin.defs#reviewEscalated',
749
- 'lex:com.atproto.admin.defs#reviewClosed',
750
- ],
751
- },
752
- reviewOpen: {
753
- type: 'token',
754
- description:
755
- 'Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator',
756
- },
757
- reviewEscalated: {
758
- type: 'token',
759
- description:
760
- 'Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator',
761
- },
762
- reviewClosed: {
763
- type: 'token',
764
- description:
765
- 'Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator',
766
- },
767
- modEventTakedown: {
768
- type: 'object',
769
- description: 'Take down a subject permanently or temporarily',
770
- properties: {
771
- comment: {
772
- type: 'string',
773
- },
774
- durationInHours: {
775
- type: 'integer',
776
- description:
777
- 'Indicates how long the takedown should be in effect before automatically expiring.',
778
- },
779
- },
780
- },
781
- modEventReverseTakedown: {
782
- type: 'object',
783
- description: 'Revert take down action on a subject',
784
- properties: {
785
- comment: {
786
- type: 'string',
787
- description: 'Describe reasoning behind the reversal.',
788
- },
789
- },
790
- },
791
- modEventResolveAppeal: {
792
- type: 'object',
793
- description: 'Resolve appeal on a subject',
794
- properties: {
795
- comment: {
796
- type: 'string',
797
- description: 'Describe resolution.',
798
- },
799
- },
800
- },
801
- modEventComment: {
802
- type: 'object',
803
- description: 'Add a comment to a subject',
804
- required: ['comment'],
805
- properties: {
806
- comment: {
807
- type: 'string',
808
- },
809
- sticky: {
810
- type: 'boolean',
811
- description: 'Make the comment persistent on the subject',
812
- },
813
- },
814
- },
815
- modEventReport: {
816
- type: 'object',
817
- description: 'Report a subject',
818
- required: ['reportType'],
819
- properties: {
820
- comment: {
821
- type: 'string',
822
- },
823
- reportType: {
824
- type: 'ref',
825
- ref: 'lex:com.atproto.moderation.defs#reasonType',
826
- },
827
- },
828
- },
829
- modEventLabel: {
830
- type: 'object',
831
- description: 'Apply/Negate labels on a subject',
832
- required: ['createLabelVals', 'negateLabelVals'],
833
- properties: {
834
- comment: {
835
- type: 'string',
836
- },
837
- createLabelVals: {
838
- type: 'array',
839
- items: {
840
- type: 'string',
841
- },
842
- },
843
- negateLabelVals: {
844
- type: 'array',
845
- items: {
846
- type: 'string',
847
- },
848
- },
849
- },
850
- },
851
- modEventAcknowledge: {
852
- type: 'object',
853
- properties: {
854
- comment: {
855
- type: 'string',
856
- },
857
- },
858
- },
859
- modEventEscalate: {
860
- type: 'object',
861
- properties: {
862
- comment: {
863
- type: 'string',
864
- },
865
- },
866
- },
867
- modEventMute: {
868
- type: 'object',
869
- description: 'Mute incoming reports on a subject',
870
- required: ['durationInHours'],
871
- properties: {
872
- comment: {
873
- type: 'string',
874
- },
875
- durationInHours: {
876
- type: 'integer',
877
- description: 'Indicates how long the subject should remain muted.',
878
- },
879
- },
880
- },
881
- modEventUnmute: {
882
- type: 'object',
883
- description: 'Unmute action on a subject',
884
- properties: {
885
- comment: {
886
- type: 'string',
887
- description: 'Describe reasoning behind the reversal.',
888
- },
889
- },
890
- },
891
- modEventEmail: {
892
- type: 'object',
893
- description: 'Keep a log of outgoing email to a user',
894
- required: ['subjectLine'],
895
- properties: {
896
- subjectLine: {
897
- type: 'string',
898
- description: 'The subject line of the email sent to the user.',
899
- },
900
- content: {
901
- type: 'string',
902
- description: 'The content of the email sent to the user.',
903
- },
904
- comment: {
905
- type: 'string',
906
- description: 'Additional comment about the outgoing comm.',
907
- },
908
- },
909
- },
910
- modEventTag: {
911
- type: 'object',
912
- description: 'Add/Remove a tag on a subject',
913
- required: ['add', 'remove'],
914
- properties: {
915
- add: {
916
- type: 'array',
917
- items: {
918
- type: 'string',
919
- },
920
- description:
921
- "Tags to be added to the subject. If already exists, won't be duplicated.",
922
- },
923
- remove: {
924
- type: 'array',
925
- items: {
926
- type: 'string',
927
- },
928
- description:
929
- "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.",
930
- },
931
- comment: {
932
- type: 'string',
933
- description: 'Additional comment about added/removed tags.',
934
- },
935
- },
936
- },
937
- communicationTemplateView: {
938
- type: 'object',
939
- required: [
940
- 'id',
941
- 'name',
942
- 'contentMarkdown',
943
- 'disabled',
944
- 'lastUpdatedBy',
945
- 'createdAt',
946
- 'updatedAt',
947
- ],
948
- properties: {
949
- id: {
950
- type: 'string',
951
- },
952
- name: {
953
- type: 'string',
954
- description: 'Name of the template.',
955
- },
956
- subject: {
957
- type: 'string',
958
- description:
959
- 'Content of the template, can contain markdown and variable placeholders.',
960
- },
961
- contentMarkdown: {
962
- type: 'string',
963
- description: 'Subject of the message, used in emails.',
964
- },
965
- disabled: {
966
- type: 'boolean',
967
- },
968
- lastUpdatedBy: {
969
- type: 'string',
970
- format: 'did',
971
- description: 'DID of the user who last updated the template.',
972
- },
973
- createdAt: {
974
- type: 'string',
975
- format: 'datetime',
976
- },
977
- updatedAt: {
978
- type: 'string',
979
- format: 'datetime',
980
- },
981
- },
982
- },
983
- },
984
- },
985
- ComAtprotoAdminDeleteAccount: {
986
- lexicon: 1,
987
- id: 'com.atproto.admin.deleteAccount',
988
- defs: {
989
- main: {
990
- type: 'procedure',
991
- description: 'Delete a user account as an administrator.',
992
- input: {
993
- encoding: 'application/json',
994
- schema: {
995
- type: 'object',
996
- required: ['did'],
997
- properties: {
998
- did: {
999
- type: 'string',
1000
- format: 'did',
1001
- },
1002
- },
1003
- },
1004
- },
1005
- },
1006
- },
1007
- },
1008
- ComAtprotoAdminDeleteCommunicationTemplate: {
1009
- lexicon: 1,
1010
- id: 'com.atproto.admin.deleteCommunicationTemplate',
1011
- defs: {
1012
- main: {
1013
- type: 'procedure',
1014
- description: 'Delete a communication template.',
1015
- input: {
1016
- encoding: 'application/json',
1017
- schema: {
1018
- type: 'object',
1019
- required: ['id'],
1020
- properties: {
1021
- id: {
1022
- type: 'string',
1023
- },
1024
- },
1025
- },
1026
- },
1027
- },
1028
- },
1029
- },
1030
- ComAtprotoAdminDisableAccountInvites: {
1031
- lexicon: 1,
1032
- id: 'com.atproto.admin.disableAccountInvites',
1033
- defs: {
1034
- main: {
1035
- type: 'procedure',
1036
- description:
1037
- 'Disable an account from receiving new invite codes, but does not invalidate existing codes.',
1038
- input: {
1039
- encoding: 'application/json',
1040
- schema: {
1041
- type: 'object',
1042
- required: ['account'],
1043
- properties: {
1044
- account: {
1045
- type: 'string',
1046
- format: 'did',
1047
- },
1048
- note: {
1049
- type: 'string',
1050
- description: 'Optional reason for disabled invites.',
1051
- },
1052
- },
1053
- },
1054
- },
1055
- },
1056
- },
1057
- },
1058
- ComAtprotoAdminDisableInviteCodes: {
1059
- lexicon: 1,
1060
- id: 'com.atproto.admin.disableInviteCodes',
1061
- defs: {
1062
- main: {
1063
- type: 'procedure',
1064
- description:
1065
- 'Disable some set of codes and/or all codes associated with a set of users.',
1066
- input: {
1067
- encoding: 'application/json',
1068
- schema: {
1069
- type: 'object',
1070
- properties: {
1071
- codes: {
1072
- type: 'array',
1073
- items: {
1074
- type: 'string',
1075
- },
1076
- },
1077
- accounts: {
1078
- type: 'array',
1079
- items: {
1080
- type: 'string',
1081
- },
1082
- },
1083
- },
1084
- },
1085
- },
1086
- },
1087
- },
1088
- },
1089
- ComAtprotoAdminEmitModerationEvent: {
1090
- lexicon: 1,
1091
- id: 'com.atproto.admin.emitModerationEvent',
1092
- defs: {
1093
- main: {
1094
- type: 'procedure',
1095
- description: 'Take a moderation action on an actor.',
1096
- input: {
1097
- encoding: 'application/json',
1098
- schema: {
1099
- type: 'object',
1100
- required: ['event', 'subject', 'createdBy'],
1101
- properties: {
1102
- event: {
1103
- type: 'union',
1104
- refs: [
1105
- 'lex:com.atproto.admin.defs#modEventTakedown',
1106
- 'lex:com.atproto.admin.defs#modEventAcknowledge',
1107
- 'lex:com.atproto.admin.defs#modEventEscalate',
1108
- 'lex:com.atproto.admin.defs#modEventComment',
1109
- 'lex:com.atproto.admin.defs#modEventLabel',
1110
- 'lex:com.atproto.admin.defs#modEventReport',
1111
- 'lex:com.atproto.admin.defs#modEventMute',
1112
- 'lex:com.atproto.admin.defs#modEventReverseTakedown',
1113
- 'lex:com.atproto.admin.defs#modEventUnmute',
1114
- 'lex:com.atproto.admin.defs#modEventEmail',
1115
- 'lex:com.atproto.admin.defs#modEventTag',
1116
- ],
1117
- },
1118
- subject: {
1119
- type: 'union',
1120
- refs: [
1121
- 'lex:com.atproto.admin.defs#repoRef',
1122
- 'lex:com.atproto.repo.strongRef',
1123
- ],
1124
- },
1125
- subjectBlobCids: {
1126
- type: 'array',
1127
- items: {
1128
- type: 'string',
1129
- format: 'cid',
1130
- },
1131
- },
1132
- createdBy: {
1133
- type: 'string',
1134
- format: 'did',
1135
- },
1136
- },
1137
- },
1138
- },
1139
- output: {
1140
- encoding: 'application/json',
1141
- schema: {
1142
- type: 'ref',
1143
- ref: 'lex:com.atproto.admin.defs#modEventView',
1144
- },
1145
- },
1146
- errors: [
1147
- {
1148
- name: 'SubjectHasAction',
1149
- },
1150
- ],
1151
- },
1152
- },
1153
- },
1154
- ComAtprotoAdminEnableAccountInvites: {
1155
- lexicon: 1,
1156
- id: 'com.atproto.admin.enableAccountInvites',
1157
- defs: {
1158
- main: {
1159
- type: 'procedure',
1160
- description: "Re-enable an account's ability to receive invite codes.",
1161
- input: {
1162
- encoding: 'application/json',
1163
- schema: {
1164
- type: 'object',
1165
- required: ['account'],
1166
- properties: {
1167
- account: {
1168
- type: 'string',
1169
- format: 'did',
1170
- },
1171
- note: {
1172
- type: 'string',
1173
- description: 'Optional reason for enabled invites.',
1174
- },
1175
- },
1176
- },
1177
- },
1178
- },
1179
- },
1180
- },
1181
- ComAtprotoAdminGetAccountInfo: {
1182
- lexicon: 1,
1183
- id: 'com.atproto.admin.getAccountInfo',
1184
- defs: {
1185
- main: {
1186
- type: 'query',
1187
- description: 'Get details about an account.',
1188
- parameters: {
1189
- type: 'params',
1190
- required: ['did'],
1191
- properties: {
1192
- did: {
1193
- type: 'string',
1194
- format: 'did',
1195
- },
1196
- },
1197
- },
1198
- output: {
1199
- encoding: 'application/json',
1200
- schema: {
1201
- type: 'ref',
1202
- ref: 'lex:com.atproto.admin.defs#accountView',
1203
- },
1204
- },
1205
- },
1206
- },
1207
- },
1208
- ComAtprotoAdminGetAccountInfos: {
1209
- lexicon: 1,
1210
- id: 'com.atproto.admin.getAccountInfos',
1211
- defs: {
1212
- main: {
1213
- type: 'query',
1214
- description: 'Get details about some accounts.',
1215
- parameters: {
1216
- type: 'params',
1217
- required: ['dids'],
1218
- properties: {
1219
- dids: {
1220
- type: 'array',
1221
- items: {
1222
- type: 'string',
1223
- format: 'did',
1224
- },
1225
- },
1226
- },
1227
- },
1228
- output: {
1229
- encoding: 'application/json',
1230
- schema: {
1231
- type: 'object',
1232
- required: ['infos'],
1233
- properties: {
1234
- infos: {
1235
- type: 'array',
1236
- items: {
1237
- type: 'ref',
1238
- ref: 'lex:com.atproto.admin.defs#accountView',
1239
- },
1240
- },
1241
- },
95
+ format: 'at-uri',
1242
96
  },
1243
97
  },
1244
98
  },
1245
99
  },
1246
100
  },
1247
- ComAtprotoAdminGetInviteCodes: {
101
+ ComAtprotoAdminDeleteAccount: {
1248
102
  lexicon: 1,
1249
- id: 'com.atproto.admin.getInviteCodes',
103
+ id: 'com.atproto.admin.deleteAccount',
1250
104
  defs: {
1251
105
  main: {
1252
- type: 'query',
1253
- description: 'Get an admin view of invite codes.',
1254
- parameters: {
1255
- type: 'params',
1256
- properties: {
1257
- sort: {
1258
- type: 'string',
1259
- knownValues: ['recent', 'usage'],
1260
- default: 'recent',
1261
- },
1262
- limit: {
1263
- type: 'integer',
1264
- minimum: 1,
1265
- maximum: 500,
1266
- default: 100,
1267
- },
1268
- cursor: {
1269
- type: 'string',
1270
- },
1271
- },
1272
- },
1273
- output: {
106
+ type: 'procedure',
107
+ description: 'Delete a user account as an administrator.',
108
+ input: {
1274
109
  encoding: 'application/json',
1275
110
  schema: {
1276
111
  type: 'object',
1277
- required: ['codes'],
112
+ required: ['did'],
1278
113
  properties: {
1279
- cursor: {
114
+ did: {
1280
115
  type: 'string',
116
+ format: 'did',
1281
117
  },
1282
- codes: {
1283
- type: 'array',
1284
- items: {
1285
- type: 'ref',
1286
- ref: 'lex:com.atproto.server.defs#inviteCode',
1287
- },
1288
- },
1289
- },
1290
- },
1291
- },
1292
- },
1293
- },
1294
- },
1295
- ComAtprotoAdminGetModerationEvent: {
1296
- lexicon: 1,
1297
- id: 'com.atproto.admin.getModerationEvent',
1298
- defs: {
1299
- main: {
1300
- type: 'query',
1301
- description: 'Get details about a moderation event.',
1302
- parameters: {
1303
- type: 'params',
1304
- required: ['id'],
1305
- properties: {
1306
- id: {
1307
- type: 'integer',
1308
118
  },
1309
119
  },
1310
120
  },
1311
- output: {
1312
- encoding: 'application/json',
1313
- schema: {
1314
- type: 'ref',
1315
- ref: 'lex:com.atproto.admin.defs#modEventViewDetail',
1316
- },
1317
- },
1318
- },
1319
- },
1320
- },
1321
- ComAtprotoAdminGetRecord: {
1322
- lexicon: 1,
1323
- id: 'com.atproto.admin.getRecord',
1324
- defs: {
1325
- main: {
1326
- type: 'query',
1327
- description: 'Get details about a record.',
1328
- parameters: {
1329
- type: 'params',
1330
- required: ['uri'],
1331
- properties: {
1332
- uri: {
1333
- type: 'string',
1334
- format: 'at-uri',
1335
- },
1336
- cid: {
1337
- type: 'string',
1338
- format: 'cid',
1339
- },
1340
- },
1341
- },
1342
- output: {
1343
- encoding: 'application/json',
1344
- schema: {
1345
- type: 'ref',
1346
- ref: 'lex:com.atproto.admin.defs#recordViewDetail',
1347
- },
1348
- },
1349
- errors: [
1350
- {
1351
- name: 'RecordNotFound',
1352
- },
1353
- ],
1354
- },
1355
- },
1356
- },
1357
- ComAtprotoAdminGetRepo: {
1358
- lexicon: 1,
1359
- id: 'com.atproto.admin.getRepo',
1360
- defs: {
1361
- main: {
1362
- type: 'query',
1363
- description: 'Get details about a repository.',
1364
- parameters: {
1365
- type: 'params',
1366
- required: ['did'],
1367
- properties: {
1368
- did: {
1369
- type: 'string',
1370
- format: 'did',
1371
- },
1372
- },
1373
- },
1374
- output: {
1375
- encoding: 'application/json',
1376
- schema: {
1377
- type: 'ref',
1378
- ref: 'lex:com.atproto.admin.defs#repoViewDetail',
1379
- },
1380
- },
1381
- errors: [
1382
- {
1383
- name: 'RepoNotFound',
1384
- },
1385
- ],
1386
121
  },
1387
122
  },
1388
123
  },
1389
- ComAtprotoAdminGetSubjectStatus: {
124
+ ComAtprotoAdminDisableAccountInvites: {
1390
125
  lexicon: 1,
1391
- id: 'com.atproto.admin.getSubjectStatus',
126
+ id: 'com.atproto.admin.disableAccountInvites',
1392
127
  defs: {
1393
128
  main: {
1394
- type: 'query',
129
+ type: 'procedure',
1395
130
  description:
1396
- 'Get the service-specific admin status of a subject (account, record, or blob).',
1397
- parameters: {
1398
- type: 'params',
1399
- properties: {
1400
- did: {
1401
- type: 'string',
1402
- format: 'did',
1403
- },
1404
- uri: {
1405
- type: 'string',
1406
- format: 'at-uri',
1407
- },
1408
- blob: {
1409
- type: 'string',
1410
- format: 'cid',
1411
- },
1412
- },
1413
- },
1414
- output: {
131
+ 'Disable an account from receiving new invite codes, but does not invalidate existing codes.',
132
+ input: {
1415
133
  encoding: 'application/json',
1416
134
  schema: {
1417
135
  type: 'object',
1418
- required: ['subject'],
136
+ required: ['account'],
1419
137
  properties: {
1420
- subject: {
1421
- type: 'union',
1422
- refs: [
1423
- 'lex:com.atproto.admin.defs#repoRef',
1424
- 'lex:com.atproto.repo.strongRef',
1425
- 'lex:com.atproto.admin.defs#repoBlobRef',
1426
- ],
138
+ account: {
139
+ type: 'string',
140
+ format: 'did',
1427
141
  },
1428
- takedown: {
1429
- type: 'ref',
1430
- ref: 'lex:com.atproto.admin.defs#statusAttr',
142
+ note: {
143
+ type: 'string',
144
+ description: 'Optional reason for disabled invites.',
1431
145
  },
1432
146
  },
1433
147
  },
@@ -1435,24 +149,29 @@ export const schemaDict = {
1435
149
  },
1436
150
  },
1437
151
  },
1438
- ComAtprotoAdminListCommunicationTemplates: {
152
+ ComAtprotoAdminDisableInviteCodes: {
1439
153
  lexicon: 1,
1440
- id: 'com.atproto.admin.listCommunicationTemplates',
154
+ id: 'com.atproto.admin.disableInviteCodes',
1441
155
  defs: {
1442
156
  main: {
1443
- type: 'query',
1444
- description: 'Get list of all communication templates.',
1445
- output: {
157
+ type: 'procedure',
158
+ description:
159
+ 'Disable some set of codes and/or all codes associated with a set of users.',
160
+ input: {
1446
161
  encoding: 'application/json',
1447
162
  schema: {
1448
163
  type: 'object',
1449
- required: ['communicationTemplates'],
1450
164
  properties: {
1451
- communicationTemplates: {
165
+ codes: {
1452
166
  type: 'array',
1453
167
  items: {
1454
- type: 'ref',
1455
- ref: 'lex:com.atproto.admin.defs#communicationTemplateView',
168
+ type: 'string',
169
+ },
170
+ },
171
+ accounts: {
172
+ type: 'array',
173
+ items: {
174
+ type: 'string',
1456
175
  },
1457
176
  },
1458
177
  },
@@ -1461,127 +180,91 @@ export const schemaDict = {
1461
180
  },
1462
181
  },
1463
182
  },
1464
- ComAtprotoAdminQueryModerationEvents: {
183
+ ComAtprotoAdminEnableAccountInvites: {
1465
184
  lexicon: 1,
1466
- id: 'com.atproto.admin.queryModerationEvents',
185
+ id: 'com.atproto.admin.enableAccountInvites',
1467
186
  defs: {
1468
187
  main: {
1469
- type: 'query',
1470
- description: 'List moderation events related to a subject.',
1471
- parameters: {
1472
- type: 'params',
1473
- properties: {
1474
- types: {
1475
- type: 'array',
1476
- items: {
1477
- type: 'string',
1478
- },
1479
- description:
1480
- 'The types of events (fully qualified string in the format of com.atproto.admin#modEvent<name>) to filter by. If not specified, all events are returned.',
1481
- },
1482
- createdBy: {
1483
- type: 'string',
1484
- format: 'did',
1485
- },
1486
- sortDirection: {
1487
- type: 'string',
1488
- default: 'desc',
1489
- enum: ['asc', 'desc'],
1490
- description:
1491
- 'Sort direction for the events. Defaults to descending order of created at timestamp.',
1492
- },
1493
- createdAfter: {
1494
- type: 'string',
1495
- format: 'datetime',
1496
- description: 'Retrieve events created after a given timestamp',
1497
- },
1498
- createdBefore: {
1499
- type: 'string',
1500
- format: 'datetime',
1501
- description: 'Retrieve events created before a given timestamp',
1502
- },
1503
- subject: {
1504
- type: 'string',
1505
- format: 'uri',
1506
- },
1507
- includeAllUserRecords: {
1508
- type: 'boolean',
1509
- default: false,
1510
- description:
1511
- 'If true, events on all record types (posts, lists, profile etc.) owned by the did are returned',
1512
- },
1513
- limit: {
1514
- type: 'integer',
1515
- minimum: 1,
1516
- maximum: 100,
1517
- default: 50,
1518
- },
1519
- hasComment: {
1520
- type: 'boolean',
1521
- description: 'If true, only events with comments are returned',
1522
- },
1523
- comment: {
1524
- type: 'string',
1525
- description:
1526
- 'If specified, only events with comments containing the keyword are returned',
1527
- },
1528
- addedLabels: {
1529
- type: 'array',
1530
- items: {
1531
- type: 'string',
1532
- },
1533
- description:
1534
- 'If specified, only events where all of these labels were added are returned',
1535
- },
1536
- removedLabels: {
1537
- type: 'array',
1538
- items: {
1539
- type: 'string',
1540
- },
1541
- description:
1542
- 'If specified, only events where all of these labels were removed are returned',
1543
- },
1544
- addedTags: {
1545
- type: 'array',
1546
- items: {
188
+ type: 'procedure',
189
+ description: "Re-enable an account's ability to receive invite codes.",
190
+ input: {
191
+ encoding: 'application/json',
192
+ schema: {
193
+ type: 'object',
194
+ required: ['account'],
195
+ properties: {
196
+ account: {
1547
197
  type: 'string',
198
+ format: 'did',
1548
199
  },
1549
- description:
1550
- 'If specified, only events where all of these tags were added are returned',
1551
- },
1552
- removedTags: {
1553
- type: 'array',
1554
- items: {
200
+ note: {
1555
201
  type: 'string',
202
+ description: 'Optional reason for enabled invites.',
1556
203
  },
1557
- description:
1558
- 'If specified, only events where all of these tags were removed are returned',
1559
204
  },
1560
- reportTypes: {
205
+ },
206
+ },
207
+ },
208
+ },
209
+ },
210
+ ComAtprotoAdminGetAccountInfo: {
211
+ lexicon: 1,
212
+ id: 'com.atproto.admin.getAccountInfo',
213
+ defs: {
214
+ main: {
215
+ type: 'query',
216
+ description: 'Get details about an account.',
217
+ parameters: {
218
+ type: 'params',
219
+ required: ['did'],
220
+ properties: {
221
+ did: {
222
+ type: 'string',
223
+ format: 'did',
224
+ },
225
+ },
226
+ },
227
+ output: {
228
+ encoding: 'application/json',
229
+ schema: {
230
+ type: 'ref',
231
+ ref: 'lex:com.atproto.admin.defs#accountView',
232
+ },
233
+ },
234
+ },
235
+ },
236
+ },
237
+ ComAtprotoAdminGetAccountInfos: {
238
+ lexicon: 1,
239
+ id: 'com.atproto.admin.getAccountInfos',
240
+ defs: {
241
+ main: {
242
+ type: 'query',
243
+ description: 'Get details about some accounts.',
244
+ parameters: {
245
+ type: 'params',
246
+ required: ['dids'],
247
+ properties: {
248
+ dids: {
1561
249
  type: 'array',
1562
250
  items: {
1563
251
  type: 'string',
252
+ format: 'did',
1564
253
  },
1565
254
  },
1566
- cursor: {
1567
- type: 'string',
1568
- },
1569
255
  },
1570
256
  },
1571
257
  output: {
1572
258
  encoding: 'application/json',
1573
259
  schema: {
1574
260
  type: 'object',
1575
- required: ['events'],
261
+ required: ['infos'],
1576
262
  properties: {
1577
- cursor: {
1578
- type: 'string',
1579
- },
1580
- events: {
263
+ infos: {
1581
264
  type: 'array',
1582
265
  items: {
1583
266
  type: 'ref',
1584
- ref: 'lex:com.atproto.admin.defs#modEventView',
267
+ ref: 'lex:com.atproto.admin.defs#accountView',
1585
268
  },
1586
269
  },
1587
270
  },
@@ -1590,101 +273,26 @@ export const schemaDict = {
1590
273
  },
1591
274
  },
1592
275
  },
1593
- ComAtprotoAdminQueryModerationStatuses: {
276
+ ComAtprotoAdminGetInviteCodes: {
1594
277
  lexicon: 1,
1595
- id: 'com.atproto.admin.queryModerationStatuses',
278
+ id: 'com.atproto.admin.getInviteCodes',
1596
279
  defs: {
1597
280
  main: {
1598
281
  type: 'query',
1599
- description: 'View moderation statuses of subjects (record or repo).',
282
+ description: 'Get an admin view of invite codes.',
1600
283
  parameters: {
1601
284
  type: 'params',
1602
285
  properties: {
1603
- subject: {
1604
- type: 'string',
1605
- format: 'uri',
1606
- },
1607
- comment: {
1608
- type: 'string',
1609
- description: 'Search subjects by keyword from comments',
1610
- },
1611
- reportedAfter: {
1612
- type: 'string',
1613
- format: 'datetime',
1614
- description: 'Search subjects reported after a given timestamp',
1615
- },
1616
- reportedBefore: {
1617
- type: 'string',
1618
- format: 'datetime',
1619
- description: 'Search subjects reported before a given timestamp',
1620
- },
1621
- reviewedAfter: {
1622
- type: 'string',
1623
- format: 'datetime',
1624
- description: 'Search subjects reviewed after a given timestamp',
1625
- },
1626
- reviewedBefore: {
1627
- type: 'string',
1628
- format: 'datetime',
1629
- description: 'Search subjects reviewed before a given timestamp',
1630
- },
1631
- includeMuted: {
1632
- type: 'boolean',
1633
- description:
1634
- "By default, we don't include muted subjects in the results. Set this to true to include them.",
1635
- },
1636
- reviewState: {
1637
- type: 'string',
1638
- description: 'Specify when fetching subjects in a certain state',
1639
- },
1640
- ignoreSubjects: {
1641
- type: 'array',
1642
- items: {
1643
- type: 'string',
1644
- format: 'uri',
1645
- },
1646
- },
1647
- lastReviewedBy: {
1648
- type: 'string',
1649
- format: 'did',
1650
- description:
1651
- 'Get all subject statuses that were reviewed by a specific moderator',
1652
- },
1653
- sortField: {
1654
- type: 'string',
1655
- default: 'lastReportedAt',
1656
- enum: ['lastReviewedAt', 'lastReportedAt'],
1657
- },
1658
- sortDirection: {
286
+ sort: {
1659
287
  type: 'string',
1660
- default: 'desc',
1661
- enum: ['asc', 'desc'],
1662
- },
1663
- takendown: {
1664
- type: 'boolean',
1665
- description: 'Get subjects that were taken down',
1666
- },
1667
- appealed: {
1668
- type: 'boolean',
1669
- description: 'Get subjects in unresolved appealed status',
288
+ knownValues: ['recent', 'usage'],
289
+ default: 'recent',
1670
290
  },
1671
291
  limit: {
1672
292
  type: 'integer',
1673
293
  minimum: 1,
1674
- maximum: 100,
1675
- default: 50,
1676
- },
1677
- tags: {
1678
- type: 'array',
1679
- items: {
1680
- type: 'string',
1681
- },
1682
- },
1683
- excludeTags: {
1684
- type: 'array',
1685
- items: {
1686
- type: 'string',
1687
- },
294
+ maximum: 500,
295
+ default: 100,
1688
296
  },
1689
297
  cursor: {
1690
298
  type: 'string',
@@ -1695,16 +303,16 @@ export const schemaDict = {
1695
303
  encoding: 'application/json',
1696
304
  schema: {
1697
305
  type: 'object',
1698
- required: ['subjectStatuses'],
306
+ required: ['codes'],
1699
307
  properties: {
1700
308
  cursor: {
1701
309
  type: 'string',
1702
310
  },
1703
- subjectStatuses: {
311
+ codes: {
1704
312
  type: 'array',
1705
313
  items: {
1706
314
  type: 'ref',
1707
- ref: 'lex:com.atproto.admin.defs#subjectStatusView',
315
+ ref: 'lex:com.atproto.server.defs#inviteCode',
1708
316
  },
1709
317
  },
1710
318
  },
@@ -1713,31 +321,28 @@ export const schemaDict = {
1713
321
  },
1714
322
  },
1715
323
  },
1716
- ComAtprotoAdminSearchRepos: {
324
+ ComAtprotoAdminGetSubjectStatus: {
1717
325
  lexicon: 1,
1718
- id: 'com.atproto.admin.searchRepos',
326
+ id: 'com.atproto.admin.getSubjectStatus',
1719
327
  defs: {
1720
328
  main: {
1721
329
  type: 'query',
1722
- description: 'Find repositories based on a search term.',
330
+ description:
331
+ 'Get the service-specific admin status of a subject (account, record, or blob).',
1723
332
  parameters: {
1724
333
  type: 'params',
1725
334
  properties: {
1726
- term: {
335
+ did: {
1727
336
  type: 'string',
1728
- description: "DEPRECATED: use 'q' instead",
337
+ format: 'did',
1729
338
  },
1730
- q: {
339
+ uri: {
1731
340
  type: 'string',
341
+ format: 'at-uri',
1732
342
  },
1733
- limit: {
1734
- type: 'integer',
1735
- minimum: 1,
1736
- maximum: 100,
1737
- default: 50,
1738
- },
1739
- cursor: {
343
+ blob: {
1740
344
  type: 'string',
345
+ format: 'cid',
1741
346
  },
1742
347
  },
1743
348
  },
@@ -1745,17 +350,19 @@ export const schemaDict = {
1745
350
  encoding: 'application/json',
1746
351
  schema: {
1747
352
  type: 'object',
1748
- required: ['repos'],
353
+ required: ['subject'],
1749
354
  properties: {
1750
- cursor: {
1751
- type: 'string',
355
+ subject: {
356
+ type: 'union',
357
+ refs: [
358
+ 'lex:com.atproto.admin.defs#repoRef',
359
+ 'lex:com.atproto.repo.strongRef',
360
+ 'lex:com.atproto.admin.defs#repoBlobRef',
361
+ ],
1752
362
  },
1753
- repos: {
1754
- type: 'array',
1755
- items: {
1756
- type: 'ref',
1757
- ref: 'lex:com.atproto.admin.defs#repoView',
1758
- },
363
+ takedown: {
364
+ type: 'ref',
365
+ ref: 'lex:com.atproto.admin.defs#statusAttr',
1759
366
  },
1760
367
  },
1761
368
  },
@@ -1894,58 +501,6 @@ export const schemaDict = {
1894
501
  },
1895
502
  },
1896
503
  },
1897
- ComAtprotoAdminUpdateCommunicationTemplate: {
1898
- lexicon: 1,
1899
- id: 'com.atproto.admin.updateCommunicationTemplate',
1900
- defs: {
1901
- main: {
1902
- type: 'procedure',
1903
- description:
1904
- 'Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.',
1905
- input: {
1906
- encoding: 'application/json',
1907
- schema: {
1908
- type: 'object',
1909
- required: ['id'],
1910
- properties: {
1911
- id: {
1912
- type: 'string',
1913
- description: 'ID of the template to be updated.',
1914
- },
1915
- name: {
1916
- type: 'string',
1917
- description: 'Name of the template.',
1918
- },
1919
- contentMarkdown: {
1920
- type: 'string',
1921
- description:
1922
- 'Content of the template, markdown supported, can contain variable placeholders.',
1923
- },
1924
- subject: {
1925
- type: 'string',
1926
- description: 'Subject of the message, used in emails.',
1927
- },
1928
- updatedBy: {
1929
- type: 'string',
1930
- format: 'did',
1931
- description: 'DID of the user who is updating the template.',
1932
- },
1933
- disabled: {
1934
- type: 'boolean',
1935
- },
1936
- },
1937
- },
1938
- },
1939
- output: {
1940
- encoding: 'application/json',
1941
- schema: {
1942
- type: 'ref',
1943
- ref: 'lex:com.atproto.admin.defs#communicationTemplateView',
1944
- },
1945
- },
1946
- },
1947
- },
1948
- },
1949
504
  ComAtprotoAdminUpdateSubjectStatus: {
1950
505
  lexicon: 1,
1951
506
  id: 'com.atproto.admin.updateSubjectStatus',
@@ -2196,6 +751,10 @@ export const schemaDict = {
2196
751
  'Metadata tag on an atproto resource (eg, repo or record).',
2197
752
  required: ['src', 'uri', 'val', 'cts'],
2198
753
  properties: {
754
+ ver: {
755
+ type: 'integer',
756
+ description: 'The AT Protocol version of the label object.',
757
+ },
2199
758
  src: {
2200
759
  type: 'string',
2201
760
  format: 'did',
@@ -2229,38 +788,136 @@ export const schemaDict = {
2229
788
  format: 'datetime',
2230
789
  description: 'Timestamp when this label was created.',
2231
790
  },
2232
- },
2233
- },
2234
- selfLabels: {
2235
- type: 'object',
2236
- description:
2237
- 'Metadata tags on an atproto record, published by the author within the record.',
2238
- required: ['values'],
2239
- properties: {
2240
- values: {
791
+ exp: {
792
+ type: 'string',
793
+ format: 'datetime',
794
+ description:
795
+ 'Timestamp at which this label expires (no longer applies).',
796
+ },
797
+ sig: {
798
+ type: 'bytes',
799
+ description: 'Signature of dag-cbor encoded label.',
800
+ },
801
+ },
802
+ },
803
+ selfLabels: {
804
+ type: 'object',
805
+ description:
806
+ 'Metadata tags on an atproto record, published by the author within the record.',
807
+ required: ['values'],
808
+ properties: {
809
+ values: {
810
+ type: 'array',
811
+ items: {
812
+ type: 'ref',
813
+ ref: 'lex:com.atproto.label.defs#selfLabel',
814
+ },
815
+ maxLength: 10,
816
+ },
817
+ },
818
+ },
819
+ selfLabel: {
820
+ type: 'object',
821
+ description:
822
+ 'Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.',
823
+ required: ['val'],
824
+ properties: {
825
+ val: {
826
+ type: 'string',
827
+ maxLength: 128,
828
+ description:
829
+ 'The short string name of the value or type of this label.',
830
+ },
831
+ },
832
+ },
833
+ labelValueDefinition: {
834
+ type: 'object',
835
+ description:
836
+ 'Declares a label value and its expected interpertations and behaviors.',
837
+ required: ['identifier', 'severity', 'blurs', 'locales'],
838
+ properties: {
839
+ identifier: {
840
+ type: 'string',
841
+ description:
842
+ "The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).",
843
+ maxLength: 100,
844
+ maxGraphemes: 100,
845
+ },
846
+ severity: {
847
+ type: 'string',
848
+ description:
849
+ "How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.",
850
+ knownValues: ['inform', 'alert', 'none'],
851
+ },
852
+ blurs: {
853
+ type: 'string',
854
+ description:
855
+ "What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.",
856
+ knownValues: ['content', 'media', 'none'],
857
+ },
858
+ defaultSetting: {
859
+ type: 'string',
860
+ description: 'The default setting for this label.',
861
+ knownValues: ['ignore', 'warn', 'hide'],
862
+ default: 'warn',
863
+ },
864
+ adultOnly: {
865
+ type: 'boolean',
866
+ description:
867
+ 'Does the user need to have adult content enabled in order to configure this label?',
868
+ },
869
+ locales: {
2241
870
  type: 'array',
2242
871
  items: {
2243
872
  type: 'ref',
2244
- ref: 'lex:com.atproto.label.defs#selfLabel',
873
+ ref: 'lex:com.atproto.label.defs#labelValueDefinitionStrings',
2245
874
  },
2246
- maxLength: 10,
2247
875
  },
2248
876
  },
2249
877
  },
2250
- selfLabel: {
878
+ labelValueDefinitionStrings: {
2251
879
  type: 'object',
2252
880
  description:
2253
- 'Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.',
2254
- required: ['val'],
881
+ 'Strings which describe the label in the UI, localized into a specific language.',
882
+ required: ['lang', 'name', 'description'],
2255
883
  properties: {
2256
- val: {
884
+ lang: {
2257
885
  type: 'string',
2258
- maxLength: 128,
2259
886
  description:
2260
- 'The short string name of the value or type of this label.',
887
+ 'The code of the language these strings are written in.',
888
+ format: 'language',
889
+ },
890
+ name: {
891
+ type: 'string',
892
+ description: 'A short human-readable name for the label.',
893
+ maxGraphemes: 64,
894
+ maxLength: 640,
895
+ },
896
+ description: {
897
+ type: 'string',
898
+ description:
899
+ 'A longer description of what the label means and why it might be applied.',
900
+ maxGraphemes: 10000,
901
+ maxLength: 100000,
2261
902
  },
2262
903
  },
2263
904
  },
905
+ labelValue: {
906
+ type: 'string',
907
+ knownValues: [
908
+ '!hide',
909
+ '!no-promote',
910
+ '!warn',
911
+ '!no-unauthenticated',
912
+ 'dmca-violation',
913
+ 'doxxing',
914
+ 'porn',
915
+ 'sexual',
916
+ 'nudity',
917
+ 'nsfl',
918
+ 'gore',
919
+ ],
920
+ },
2264
921
  },
2265
922
  },
2266
923
  ComAtprotoLabelQueryLabels: {
@@ -3763,6 +2420,11 @@ export const schemaDict = {
3763
2420
  description: 'URLs of service policy documents.',
3764
2421
  ref: 'lex:com.atproto.server.describeServer#links',
3765
2422
  },
2423
+ contact: {
2424
+ type: 'ref',
2425
+ description: 'Contact information',
2426
+ ref: 'lex:com.atproto.server.describeServer#contact',
2427
+ },
3766
2428
  did: {
3767
2429
  type: 'string',
3768
2430
  format: 'did',
@@ -3782,6 +2444,14 @@ export const schemaDict = {
3782
2444
  },
3783
2445
  },
3784
2446
  },
2447
+ contact: {
2448
+ type: 'object',
2449
+ properties: {
2450
+ email: {
2451
+ type: 'string',
2452
+ },
2453
+ },
2454
+ },
3785
2455
  },
3786
2456
  },
3787
2457
  ComAtprotoServerGetAccountInviteCodes: {
@@ -5044,6 +3714,10 @@ export const schemaDict = {
5044
3714
  postsCount: {
5045
3715
  type: 'integer',
5046
3716
  },
3717
+ associated: {
3718
+ type: 'ref',
3719
+ ref: 'lex:app.bsky.actor.defs#profileAssociated',
3720
+ },
5047
3721
  indexedAt: {
5048
3722
  type: 'string',
5049
3723
  format: 'datetime',
@@ -5061,6 +3735,20 @@ export const schemaDict = {
5061
3735
  },
5062
3736
  },
5063
3737
  },
3738
+ profileAssociated: {
3739
+ type: 'object',
3740
+ properties: {
3741
+ lists: {
3742
+ type: 'integer',
3743
+ },
3744
+ feedgens: {
3745
+ type: 'integer',
3746
+ },
3747
+ labeler: {
3748
+ type: 'boolean',
3749
+ },
3750
+ },
3751
+ },
5064
3752
  viewerState: {
5065
3753
  type: 'object',
5066
3754
  description:
@@ -5125,12 +3813,18 @@ export const schemaDict = {
5125
3813
  type: 'object',
5126
3814
  required: ['label', 'visibility'],
5127
3815
  properties: {
3816
+ labelerDid: {
3817
+ type: 'string',
3818
+ description:
3819
+ 'Which labeler does this preference apply to? If undefined, applies globally.',
3820
+ format: 'did',
3821
+ },
5128
3822
  label: {
5129
3823
  type: 'string',
5130
3824
  },
5131
3825
  visibility: {
5132
3826
  type: 'string',
5133
- knownValues: ['show', 'warn', 'hide'],
3827
+ knownValues: ['ignore', 'show', 'warn', 'hide'],
5134
3828
  },
5135
3829
  },
5136
3830
  },
@@ -5288,6 +3982,29 @@ export const schemaDict = {
5288
3982
  },
5289
3983
  },
5290
3984
  },
3985
+ labelersPref: {
3986
+ type: 'object',
3987
+ required: ['labelers'],
3988
+ properties: {
3989
+ labelers: {
3990
+ type: 'array',
3991
+ items: {
3992
+ type: 'ref',
3993
+ ref: 'lex:app.bsky.actor.defs#labelerPrefItem',
3994
+ },
3995
+ },
3996
+ },
3997
+ },
3998
+ labelerPrefItem: {
3999
+ type: 'object',
4000
+ required: ['did'],
4001
+ properties: {
4002
+ did: {
4003
+ type: 'string',
4004
+ format: 'did',
4005
+ },
4006
+ },
4007
+ },
5291
4008
  },
5292
4009
  },
5293
4010
  AppBskyActorGetPreferences: {
@@ -5792,6 +4509,7 @@ export const schemaDict = {
5792
4509
  'lex:app.bsky.embed.record#viewBlocked',
5793
4510
  'lex:app.bsky.feed.defs#generatorView',
5794
4511
  'lex:app.bsky.graph.defs#listView',
4512
+ 'lex:app.bsky.labeler.defs#labelerView',
5795
4513
  ],
5796
4514
  },
5797
4515
  },
@@ -6165,6 +4883,13 @@ export const schemaDict = {
6165
4883
  type: 'integer',
6166
4884
  minimum: 0,
6167
4885
  },
4886
+ labels: {
4887
+ type: 'array',
4888
+ items: {
4889
+ type: 'ref',
4890
+ ref: 'lex:com.atproto.label.defs#label',
4891
+ },
4892
+ },
6168
4893
  viewer: {
6169
4894
  type: 'ref',
6170
4895
  ref: 'lex:app.bsky.feed.defs#generatorViewerState',
@@ -7469,6 +6194,13 @@ export const schemaDict = {
7469
6194
  avatar: {
7470
6195
  type: 'string',
7471
6196
  },
6197
+ labels: {
6198
+ type: 'array',
6199
+ items: {
6200
+ type: 'ref',
6201
+ ref: 'lex:com.atproto.label.defs#label',
6202
+ },
6203
+ },
7472
6204
  viewer: {
7473
6205
  type: 'ref',
7474
6206
  ref: 'lex:app.bsky.graph.defs#listViewerState',
@@ -7519,6 +6251,13 @@ export const schemaDict = {
7519
6251
  avatar: {
7520
6252
  type: 'string',
7521
6253
  },
6254
+ labels: {
6255
+ type: 'array',
6256
+ items: {
6257
+ type: 'ref',
6258
+ ref: 'lex:com.atproto.label.defs#label',
6259
+ },
6260
+ },
7522
6261
  viewer: {
7523
6262
  type: 'ref',
7524
6263
  ref: 'lex:app.bsky.graph.defs#listViewerState',
@@ -8333,6 +7072,198 @@ export const schemaDict = {
8333
7072
  },
8334
7073
  },
8335
7074
  },
7075
+ AppBskyLabelerDefs: {
7076
+ lexicon: 1,
7077
+ id: 'app.bsky.labeler.defs',
7078
+ defs: {
7079
+ labelerView: {
7080
+ type: 'object',
7081
+ required: ['uri', 'cid', 'creator', 'indexedAt'],
7082
+ properties: {
7083
+ uri: {
7084
+ type: 'string',
7085
+ format: 'at-uri',
7086
+ },
7087
+ cid: {
7088
+ type: 'string',
7089
+ format: 'cid',
7090
+ },
7091
+ creator: {
7092
+ type: 'ref',
7093
+ ref: 'lex:app.bsky.actor.defs#profileView',
7094
+ },
7095
+ likeCount: {
7096
+ type: 'integer',
7097
+ minimum: 0,
7098
+ },
7099
+ viewer: {
7100
+ type: 'ref',
7101
+ ref: 'lex:app.bsky.labeler.defs#labelerViewerState',
7102
+ },
7103
+ indexedAt: {
7104
+ type: 'string',
7105
+ format: 'datetime',
7106
+ },
7107
+ labels: {
7108
+ type: 'array',
7109
+ items: {
7110
+ type: 'ref',
7111
+ ref: 'lex:com.atproto.label.defs#label',
7112
+ },
7113
+ },
7114
+ },
7115
+ },
7116
+ labelerViewDetailed: {
7117
+ type: 'object',
7118
+ required: ['uri', 'cid', 'creator', 'policies', 'indexedAt'],
7119
+ properties: {
7120
+ uri: {
7121
+ type: 'string',
7122
+ format: 'at-uri',
7123
+ },
7124
+ cid: {
7125
+ type: 'string',
7126
+ format: 'cid',
7127
+ },
7128
+ creator: {
7129
+ type: 'ref',
7130
+ ref: 'lex:app.bsky.actor.defs#profileView',
7131
+ },
7132
+ policies: {
7133
+ type: 'ref',
7134
+ ref: 'lex:app.bsky.labeler.defs#labelerPolicies',
7135
+ },
7136
+ likeCount: {
7137
+ type: 'integer',
7138
+ minimum: 0,
7139
+ },
7140
+ viewer: {
7141
+ type: 'ref',
7142
+ ref: 'lex:app.bsky.labeler.defs#labelerViewerState',
7143
+ },
7144
+ indexedAt: {
7145
+ type: 'string',
7146
+ format: 'datetime',
7147
+ },
7148
+ labels: {
7149
+ type: 'array',
7150
+ items: {
7151
+ type: 'ref',
7152
+ ref: 'lex:com.atproto.label.defs#label',
7153
+ },
7154
+ },
7155
+ },
7156
+ },
7157
+ labelerViewerState: {
7158
+ type: 'object',
7159
+ properties: {
7160
+ like: {
7161
+ type: 'string',
7162
+ format: 'at-uri',
7163
+ },
7164
+ },
7165
+ },
7166
+ labelerPolicies: {
7167
+ type: 'object',
7168
+ required: ['labelValues'],
7169
+ properties: {
7170
+ labelValues: {
7171
+ type: 'array',
7172
+ description:
7173
+ 'The label values which this labeler publishes. May include global or custom labels.',
7174
+ items: {
7175
+ type: 'ref',
7176
+ ref: 'lex:com.atproto.label.defs#labelValue',
7177
+ },
7178
+ },
7179
+ labelValueDefinitions: {
7180
+ type: 'array',
7181
+ description:
7182
+ 'Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.',
7183
+ items: {
7184
+ type: 'ref',
7185
+ ref: 'lex:com.atproto.label.defs#labelValueDefinition',
7186
+ },
7187
+ },
7188
+ },
7189
+ },
7190
+ },
7191
+ },
7192
+ AppBskyLabelerGetServices: {
7193
+ lexicon: 1,
7194
+ id: 'app.bsky.labeler.getServices',
7195
+ defs: {
7196
+ main: {
7197
+ type: 'query',
7198
+ description: 'Get information about a list of labeler services.',
7199
+ parameters: {
7200
+ type: 'params',
7201
+ required: ['dids'],
7202
+ properties: {
7203
+ dids: {
7204
+ type: 'array',
7205
+ items: {
7206
+ type: 'string',
7207
+ format: 'did',
7208
+ },
7209
+ },
7210
+ detailed: {
7211
+ type: 'boolean',
7212
+ default: false,
7213
+ },
7214
+ },
7215
+ },
7216
+ output: {
7217
+ encoding: 'application/json',
7218
+ schema: {
7219
+ type: 'object',
7220
+ required: ['views'],
7221
+ properties: {
7222
+ views: {
7223
+ type: 'array',
7224
+ items: {
7225
+ type: 'union',
7226
+ refs: [
7227
+ 'lex:app.bsky.labeler.defs#labelerView',
7228
+ 'lex:app.bsky.labeler.defs#labelerViewDetailed',
7229
+ ],
7230
+ },
7231
+ },
7232
+ },
7233
+ },
7234
+ },
7235
+ },
7236
+ },
7237
+ },
7238
+ AppBskyLabelerService: {
7239
+ lexicon: 1,
7240
+ id: 'app.bsky.labeler.service',
7241
+ defs: {
7242
+ main: {
7243
+ type: 'record',
7244
+ description: 'A declaration of the existence of labeler service.',
7245
+ key: 'literal:self',
7246
+ record: {
7247
+ type: 'object',
7248
+ required: ['policies', 'createdAt'],
7249
+ properties: {
7250
+ policies: {
7251
+ type: 'ref',
7252
+ ref: 'lex:app.bsky.labeler.defs#labelerPolicies',
7253
+ },
7254
+ labels: {
7255
+ type: 'union',
7256
+ refs: ['lex:com.atproto.label.defs#selfLabels'],
7257
+ },
7258
+ createdAt: {
7259
+ type: 'string',
7260
+ format: 'datetime',
7261
+ },
7262
+ },
7263
+ },
7264
+ },
7265
+ },
7266
+ },
8336
7267
  AppBskyNotificationGetUnreadCount: {
8337
7268
  lexicon: 1,
8338
7269
  id: 'app.bsky.notification.getUnreadCount',
@@ -8866,38 +7797,21 @@ export const schemaDict = {
8866
7797
  export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
8867
7798
  export const lexicons: Lexicons = new Lexicons(schemas)
8868
7799
  export const ids = {
8869
- ComAtprotoAdminCreateCommunicationTemplate:
8870
- 'com.atproto.admin.createCommunicationTemplate',
8871
7800
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
8872
7801
  ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',
8873
- ComAtprotoAdminDeleteCommunicationTemplate:
8874
- 'com.atproto.admin.deleteCommunicationTemplate',
8875
7802
  ComAtprotoAdminDisableAccountInvites:
8876
7803
  'com.atproto.admin.disableAccountInvites',
8877
7804
  ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
8878
- ComAtprotoAdminEmitModerationEvent: 'com.atproto.admin.emitModerationEvent',
8879
7805
  ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
8880
7806
  ComAtprotoAdminGetAccountInfo: 'com.atproto.admin.getAccountInfo',
8881
7807
  ComAtprotoAdminGetAccountInfos: 'com.atproto.admin.getAccountInfos',
8882
7808
  ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
8883
- ComAtprotoAdminGetModerationEvent: 'com.atproto.admin.getModerationEvent',
8884
- ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
8885
- ComAtprotoAdminGetRepo: 'com.atproto.admin.getRepo',
8886
7809
  ComAtprotoAdminGetSubjectStatus: 'com.atproto.admin.getSubjectStatus',
8887
- ComAtprotoAdminListCommunicationTemplates:
8888
- 'com.atproto.admin.listCommunicationTemplates',
8889
- ComAtprotoAdminQueryModerationEvents:
8890
- 'com.atproto.admin.queryModerationEvents',
8891
- ComAtprotoAdminQueryModerationStatuses:
8892
- 'com.atproto.admin.queryModerationStatuses',
8893
- ComAtprotoAdminSearchRepos: 'com.atproto.admin.searchRepos',
8894
7810
  ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail',
8895
7811
  ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
8896
7812
  ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
8897
7813
  ComAtprotoAdminUpdateAccountPassword:
8898
7814
  'com.atproto.admin.updateAccountPassword',
8899
- ComAtprotoAdminUpdateCommunicationTemplate:
8900
- 'com.atproto.admin.updateCommunicationTemplate',
8901
7815
  ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
8902
7816
  ComAtprotoIdentityGetRecommendedDidCredentials:
8903
7817
  'com.atproto.identity.getRecommendedDidCredentials',
@@ -9026,6 +7940,9 @@ export const ids = {
9026
7940
  AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
9027
7941
  AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
9028
7942
  AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
7943
+ AppBskyLabelerDefs: 'app.bsky.labeler.defs',
7944
+ AppBskyLabelerGetServices: 'app.bsky.labeler.getServices',
7945
+ AppBskyLabelerService: 'app.bsky.labeler.service',
9029
7946
  AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
9030
7947
  AppBskyNotificationListNotifications:
9031
7948
  'app.bsky.notification.listNotifications',