@atproto/bsky 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +2 -3
- package/dist/api/app/bsky/feed/getListFeed.d.ts +2 -2
- package/dist/api/app/bsky/feed/getTimeline.d.ts +4 -2
- package/dist/api/app/bsky/labeler/getServices.d.ts +3 -0
- package/dist/api/util.d.ts +9 -2
- package/dist/auth-verifier.d.ts +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/data-plane/server/db/database-schema.d.ts +2 -2
- package/dist/data-plane/server/db/migrations/20240226T225725627Z-labelers.d.ts +3 -0
- package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
- package/dist/data-plane/server/db/tables/labeler.d.ts +13 -0
- package/dist/data-plane/server/indexing/index.d.ts +2 -0
- package/dist/data-plane/server/indexing/plugins/labeler.d.ts +10 -0
- package/dist/data-plane/server/util.d.ts +6 -6
- package/dist/hydration/actor.d.ts +3 -0
- package/dist/hydration/hydrator.d.ts +27 -22
- package/dist/hydration/label.d.ts +23 -9
- package/dist/index.js +4068 -4641
- package/dist/index.js.map +3 -3
- package/dist/lexicon/index.d.ts +7 -27
- package/dist/lexicon/lexicons.d.ts +507 -1467
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +23 -1
- package/dist/lexicon/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/graph/defs.d.ts +3 -0
- package/dist/lexicon/types/app/bsky/labeler/defs.d.ts +41 -0
- package/dist/lexicon/types/{com/atproto/admin/searchRepos.d.ts → app/bsky/labeler/getServices.d.ts} +7 -7
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts +14 -0
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts +0 -304
- package/dist/lexicon/types/com/atproto/label/defs.d.ts +23 -0
- package/dist/proto/bsky_connect.d.ts +7 -1
- package/dist/proto/bsky_pb.d.ts +25 -0
- package/dist/util.d.ts +7 -0
- package/dist/views/index.d.ts +3 -0
- package/dist/views/types.d.ts +2 -1
- package/package.json +14 -13
- package/proto/bsky.proto +12 -0
- package/src/api/app/bsky/actor/getProfile.ts +21 -17
- package/src/api/app/bsky/actor/getProfiles.ts +16 -7
- package/src/api/app/bsky/actor/getSuggestions.ts +18 -13
- package/src/api/app/bsky/actor/searchActors.ts +9 -5
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +12 -5
- package/src/api/app/bsky/feed/getActorFeeds.ts +16 -6
- package/src/api/app/bsky/feed/getActorLikes.ts +18 -8
- package/src/api/app/bsky/feed/getAuthorFeed.ts +18 -19
- package/src/api/app/bsky/feed/getFeed.ts +14 -7
- package/src/api/app/bsky/feed/getFeedGenerator.ts +8 -2
- package/src/api/app/bsky/feed/getFeedGenerators.ts +16 -5
- package/src/api/app/bsky/feed/getLikes.ts +13 -6
- package/src/api/app/bsky/feed/getListFeed.ts +13 -7
- package/src/api/app/bsky/feed/getPostThread.ts +15 -8
- package/src/api/app/bsky/feed/getPosts.ts +14 -5
- package/src/api/app/bsky/feed/getRepostedBy.ts +13 -6
- package/src/api/app/bsky/feed/getSuggestedFeeds.ts +8 -2
- package/src/api/app/bsky/feed/getTimeline.ts +14 -8
- package/src/api/app/bsky/feed/searchPosts.ts +9 -5
- package/src/api/app/bsky/graph/getBlocks.ts +10 -9
- package/src/api/app/bsky/graph/getFollowers.ts +23 -15
- package/src/api/app/bsky/graph/getFollows.ts +23 -15
- package/src/api/app/bsky/graph/getList.ts +14 -8
- package/src/api/app/bsky/graph/getListBlocks.ts +10 -7
- package/src/api/app/bsky/graph/getListMutes.ts +10 -7
- package/src/api/app/bsky/graph/getLists.ts +9 -7
- package/src/api/app/bsky/graph/getMutes.ts +10 -8
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +10 -7
- package/src/api/app/bsky/graph/muteActor.ts +1 -1
- package/src/api/app/bsky/labeler/getServices.ts +46 -0
- package/src/api/app/bsky/notification/listNotifications.ts +12 -8
- package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +6 -3
- package/src/api/com/atproto/admin/getAccountInfos.ts +10 -3
- package/src/api/index.ts +2 -0
- package/src/api/util.ts +19 -4
- package/src/auth-verifier.ts +2 -2
- package/src/context.ts +20 -0
- package/src/data-plane/server/db/database-schema.ts +4 -4
- package/src/data-plane/server/db/migrations/20240226T225725627Z-labelers.ts +27 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/tables/labeler.ts +16 -0
- package/src/data-plane/server/indexing/index.ts +4 -0
- package/src/data-plane/server/indexing/plugins/labeler.ts +77 -0
- package/src/data-plane/server/routes/interactions.ts +17 -1
- package/src/data-plane/server/routes/profile.ts +15 -1
- package/src/data-plane/server/routes/records.ts +1 -0
- package/src/hydration/actor.ts +6 -0
- package/src/hydration/hydrator.ts +171 -97
- package/src/hydration/label.ts +106 -20
- package/src/index.ts +1 -3
- package/src/lexicon/index.ts +22 -137
- package/src/lexicon/lexicons.ts +502 -1598
- package/src/lexicon/types/app/bsky/actor/defs.ts +57 -1
- package/src/lexicon/types/app/bsky/embed/record.ts +2 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/defs.ts +3 -0
- package/src/lexicon/types/app/bsky/labeler/defs.ts +93 -0
- package/src/lexicon/types/{com/atproto/admin/searchRepos.ts → app/bsky/labeler/getServices.ts} +8 -8
- package/src/lexicon/types/app/bsky/labeler/service.ts +31 -0
- package/src/lexicon/types/com/atproto/admin/defs.ts +0 -694
- package/src/lexicon/types/com/atproto/label/defs.ts +78 -0
- package/src/proto/bsky_connect.ts +11 -0
- package/src/proto/bsky_pb.ts +146 -0
- package/src/util.ts +44 -0
- package/src/views/index.ts +76 -7
- package/src/views/types.ts +6 -3
- package/tests/__snapshots__/feed-generation.test.ts.snap +12 -0
- package/tests/_util.ts +21 -0
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +20 -0
- package/tests/label-hydration.test.ts +162 -0
- package/tests/views/__snapshots__/block-lists.test.ts.snap +7 -0
- package/tests/views/__snapshots__/labeler-service.test.ts.snap +160 -0
- package/tests/views/__snapshots__/mute-lists.test.ts.snap +10 -0
- package/tests/views/__snapshots__/profile.test.ts.snap +40 -0
- package/tests/views/__snapshots__/threadgating.test.ts.snap +2 -0
- package/tests/views/labeler-service.test.ts +156 -0
- package/tests/views/takedown-labels.test.ts +133 -0
- package/tests/views/timeline.test.ts +7 -2
- package/dist/data-plane/server/db/tables/moderation.d.ts +0 -42
- package/dist/lexicon/types/com/atproto/admin/createCommunicationTemplate.d.ts +0 -37
- package/dist/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.d.ts +0 -25
- package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +0 -45
- package/dist/lexicon/types/com/atproto/admin/getModerationEvent.d.ts +0 -29
- package/dist/lexicon/types/com/atproto/admin/getRecord.d.ts +0 -31
- package/dist/lexicon/types/com/atproto/admin/getRepo.d.ts +0 -30
- package/dist/lexicon/types/com/atproto/admin/listCommunicationTemplates.d.ts +0 -31
- package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +0 -48
- package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +0 -50
- package/dist/lexicon/types/com/atproto/admin/updateCommunicationTemplate.d.ts +0 -39
- package/src/data-plane/server/db/tables/moderation.ts +0 -59
- package/src/lexicon/types/com/atproto/admin/createCommunicationTemplate.ts +0 -54
- package/src/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.ts +0 -38
- package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +0 -67
- package/src/lexicon/types/com/atproto/admin/getModerationEvent.ts +0 -41
- package/src/lexicon/types/com/atproto/admin/getRecord.ts +0 -43
- package/src/lexicon/types/com/atproto/admin/getRepo.ts +0 -42
- package/src/lexicon/types/com/atproto/admin/listCommunicationTemplates.ts +0 -44
- package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +0 -73
- package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +0 -74
- package/src/lexicon/types/com/atproto/admin/updateCommunicationTemplate.ts +0 -57
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -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,918 +20,79 @@ export const schemaDict = {
|
|
|
65
20
|
},
|
|
66
21
|
},
|
|
67
22
|
},
|
|
68
|
-
|
|
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
|
-
|
|
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
|
-
|
|
115
|
-
type: 'string',
|
|
116
|
-
format: 'datetime',
|
|
117
|
-
},
|
|
118
|
-
creatorHandle: {
|
|
31
|
+
handle: {
|
|
119
32
|
type: 'string',
|
|
33
|
+
format: 'handle',
|
|
120
34
|
},
|
|
121
|
-
|
|
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: '
|
|
168
|
-
ref: 'lex:com.atproto.admin.defs#blobView',
|
|
41
|
+
type: 'unknown',
|
|
169
42
|
},
|
|
170
43
|
},
|
|
171
|
-
|
|
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.
|
|
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
|
-
|
|
52
|
+
invites: {
|
|
243
53
|
type: 'array',
|
|
244
54
|
items: {
|
|
245
|
-
type: '
|
|
246
|
-
|
|
55
|
+
type: 'ref',
|
|
56
|
+
ref: 'lex:com.atproto.server.defs#inviteCode',
|
|
247
57
|
},
|
|
248
58
|
},
|
|
249
|
-
|
|
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
|
-
|
|
62
|
+
emailConfirmedAt: {
|
|
303
63
|
type: 'string',
|
|
304
64
|
format: 'datetime',
|
|
305
65
|
},
|
|
306
|
-
|
|
307
|
-
type: '
|
|
308
|
-
items: {
|
|
309
|
-
type: 'string',
|
|
310
|
-
},
|
|
66
|
+
inviteNote: {
|
|
67
|
+
type: 'string',
|
|
311
68
|
},
|
|
312
69
|
},
|
|
313
70
|
},
|
|
314
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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: '
|
|
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
|
-
|
|
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',
|
|
95
|
+
format: 'at-uri',
|
|
980
96
|
},
|
|
981
97
|
},
|
|
982
98
|
},
|
|
@@ -984,259 +100,48 @@ export const schemaDict = {
|
|
|
984
100
|
},
|
|
985
101
|
ComAtprotoAdminDeleteAccount: {
|
|
986
102
|
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',
|
|
103
|
+
id: 'com.atproto.admin.deleteAccount',
|
|
1157
104
|
defs: {
|
|
1158
105
|
main: {
|
|
1159
106
|
type: 'procedure',
|
|
1160
|
-
description:
|
|
107
|
+
description: 'Delete a user account as an administrator.',
|
|
1161
108
|
input: {
|
|
1162
109
|
encoding: 'application/json',
|
|
1163
110
|
schema: {
|
|
1164
111
|
type: 'object',
|
|
1165
|
-
required: ['
|
|
112
|
+
required: ['did'],
|
|
1166
113
|
properties: {
|
|
1167
|
-
|
|
114
|
+
did: {
|
|
1168
115
|
type: 'string',
|
|
1169
116
|
format: 'did',
|
|
1170
117
|
},
|
|
1171
|
-
note: {
|
|
1172
|
-
type: 'string',
|
|
1173
|
-
description: 'Optional reason for enabled invites.',
|
|
1174
|
-
},
|
|
1175
118
|
},
|
|
1176
119
|
},
|
|
1177
120
|
},
|
|
1178
121
|
},
|
|
1179
122
|
},
|
|
1180
123
|
},
|
|
1181
|
-
|
|
124
|
+
ComAtprotoAdminDisableAccountInvites: {
|
|
1182
125
|
lexicon: 1,
|
|
1183
|
-
id: 'com.atproto.admin.
|
|
126
|
+
id: 'com.atproto.admin.disableAccountInvites',
|
|
1184
127
|
defs: {
|
|
1185
128
|
main: {
|
|
1186
|
-
type: '
|
|
1187
|
-
description:
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
required: ['did'],
|
|
1191
|
-
properties: {
|
|
1192
|
-
did: {
|
|
1193
|
-
type: 'string',
|
|
1194
|
-
format: 'did',
|
|
1195
|
-
},
|
|
1196
|
-
},
|
|
1197
|
-
},
|
|
1198
|
-
output: {
|
|
129
|
+
type: 'procedure',
|
|
130
|
+
description:
|
|
131
|
+
'Disable an account from receiving new invite codes, but does not invalidate existing codes.',
|
|
132
|
+
input: {
|
|
1199
133
|
encoding: 'application/json',
|
|
1200
134
|
schema: {
|
|
1201
|
-
type: '
|
|
1202
|
-
|
|
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: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
required: ['account'],
|
|
137
|
+
properties: {
|
|
138
|
+
account: {
|
|
1222
139
|
type: 'string',
|
|
1223
140
|
format: 'did',
|
|
1224
141
|
},
|
|
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
|
-
},
|
|
142
|
+
note: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
description: 'Optional reason for disabled invites.',
|
|
1240
145
|
},
|
|
1241
146
|
},
|
|
1242
147
|
},
|
|
@@ -1244,46 +149,29 @@ export const schemaDict = {
|
|
|
1244
149
|
},
|
|
1245
150
|
},
|
|
1246
151
|
},
|
|
1247
|
-
|
|
152
|
+
ComAtprotoAdminDisableInviteCodes: {
|
|
1248
153
|
lexicon: 1,
|
|
1249
|
-
id: 'com.atproto.admin.
|
|
154
|
+
id: 'com.atproto.admin.disableInviteCodes',
|
|
1250
155
|
defs: {
|
|
1251
156
|
main: {
|
|
1252
|
-
type: '
|
|
1253
|
-
description:
|
|
1254
|
-
|
|
1255
|
-
|
|
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: {
|
|
157
|
+
type: 'procedure',
|
|
158
|
+
description:
|
|
159
|
+
'Disable some set of codes and/or all codes associated with a set of users.',
|
|
160
|
+
input: {
|
|
1274
161
|
encoding: 'application/json',
|
|
1275
162
|
schema: {
|
|
1276
163
|
type: 'object',
|
|
1277
|
-
required: ['codes'],
|
|
1278
164
|
properties: {
|
|
1279
|
-
cursor: {
|
|
1280
|
-
type: 'string',
|
|
1281
|
-
},
|
|
1282
165
|
codes: {
|
|
1283
166
|
type: 'array',
|
|
1284
167
|
items: {
|
|
1285
|
-
type: '
|
|
1286
|
-
|
|
168
|
+
type: 'string',
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
accounts: {
|
|
172
|
+
type: 'array',
|
|
173
|
+
items: {
|
|
174
|
+
type: 'string',
|
|
1287
175
|
},
|
|
1288
176
|
},
|
|
1289
177
|
},
|
|
@@ -1292,75 +180,40 @@ export const schemaDict = {
|
|
|
1292
180
|
},
|
|
1293
181
|
},
|
|
1294
182
|
},
|
|
1295
|
-
|
|
183
|
+
ComAtprotoAdminEnableAccountInvites: {
|
|
1296
184
|
lexicon: 1,
|
|
1297
|
-
id: 'com.atproto.admin.
|
|
185
|
+
id: 'com.atproto.admin.enableAccountInvites',
|
|
1298
186
|
defs: {
|
|
1299
187
|
main: {
|
|
1300
|
-
type: '
|
|
1301
|
-
description: '
|
|
1302
|
-
|
|
1303
|
-
type: 'params',
|
|
1304
|
-
required: ['id'],
|
|
1305
|
-
properties: {
|
|
1306
|
-
id: {
|
|
1307
|
-
type: 'integer',
|
|
1308
|
-
},
|
|
1309
|
-
},
|
|
1310
|
-
},
|
|
1311
|
-
output: {
|
|
188
|
+
type: 'procedure',
|
|
189
|
+
description: "Re-enable an account's ability to receive invite codes.",
|
|
190
|
+
input: {
|
|
1312
191
|
encoding: 'application/json',
|
|
1313
192
|
schema: {
|
|
1314
|
-
type: '
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
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',
|
|
193
|
+
type: 'object',
|
|
194
|
+
required: ['account'],
|
|
195
|
+
properties: {
|
|
196
|
+
account: {
|
|
197
|
+
type: 'string',
|
|
198
|
+
format: 'did',
|
|
199
|
+
},
|
|
200
|
+
note: {
|
|
201
|
+
type: 'string',
|
|
202
|
+
description: 'Optional reason for enabled invites.',
|
|
203
|
+
},
|
|
1339
204
|
},
|
|
1340
205
|
},
|
|
1341
206
|
},
|
|
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
207
|
},
|
|
1355
208
|
},
|
|
1356
209
|
},
|
|
1357
|
-
|
|
210
|
+
ComAtprotoAdminGetAccountInfo: {
|
|
1358
211
|
lexicon: 1,
|
|
1359
|
-
id: 'com.atproto.admin.
|
|
212
|
+
id: 'com.atproto.admin.getAccountInfo',
|
|
1360
213
|
defs: {
|
|
1361
214
|
main: {
|
|
1362
215
|
type: 'query',
|
|
1363
|
-
description: 'Get details about
|
|
216
|
+
description: 'Get details about an account.',
|
|
1364
217
|
parameters: {
|
|
1365
218
|
type: 'params',
|
|
1366
219
|
required: ['did'],
|
|
@@ -1370,218 +223,48 @@ export const schemaDict = {
|
|
|
1370
223
|
format: 'did',
|
|
1371
224
|
},
|
|
1372
225
|
},
|
|
1373
|
-
},
|
|
1374
|
-
output: {
|
|
1375
|
-
encoding: 'application/json',
|
|
1376
|
-
schema: {
|
|
1377
|
-
type: 'ref',
|
|
1378
|
-
ref: 'lex:com.atproto.admin.defs#
|
|
1379
|
-
},
|
|
1380
|
-
},
|
|
1381
|
-
errors: [
|
|
1382
|
-
{
|
|
1383
|
-
name: 'RepoNotFound',
|
|
1384
|
-
},
|
|
1385
|
-
],
|
|
1386
|
-
},
|
|
1387
|
-
},
|
|
1388
|
-
},
|
|
1389
|
-
ComAtprotoAdminGetSubjectStatus: {
|
|
1390
|
-
lexicon: 1,
|
|
1391
|
-
id: 'com.atproto.admin.getSubjectStatus',
|
|
1392
|
-
defs: {
|
|
1393
|
-
main: {
|
|
1394
|
-
type: 'query',
|
|
1395
|
-
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: {
|
|
1415
|
-
encoding: 'application/json',
|
|
1416
|
-
schema: {
|
|
1417
|
-
type: 'object',
|
|
1418
|
-
required: ['subject'],
|
|
1419
|
-
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
|
-
],
|
|
1427
|
-
},
|
|
1428
|
-
takedown: {
|
|
1429
|
-
type: 'ref',
|
|
1430
|
-
ref: 'lex:com.atproto.admin.defs#statusAttr',
|
|
1431
|
-
},
|
|
1432
|
-
},
|
|
1433
|
-
},
|
|
1434
|
-
},
|
|
1435
|
-
},
|
|
1436
|
-
},
|
|
1437
|
-
},
|
|
1438
|
-
ComAtprotoAdminListCommunicationTemplates: {
|
|
1439
|
-
lexicon: 1,
|
|
1440
|
-
id: 'com.atproto.admin.listCommunicationTemplates',
|
|
1441
|
-
defs: {
|
|
1442
|
-
main: {
|
|
1443
|
-
type: 'query',
|
|
1444
|
-
description: 'Get list of all communication templates.',
|
|
1445
|
-
output: {
|
|
1446
|
-
encoding: 'application/json',
|
|
1447
|
-
schema: {
|
|
1448
|
-
type: 'object',
|
|
1449
|
-
required: ['communicationTemplates'],
|
|
1450
|
-
properties: {
|
|
1451
|
-
communicationTemplates: {
|
|
1452
|
-
type: 'array',
|
|
1453
|
-
items: {
|
|
1454
|
-
type: 'ref',
|
|
1455
|
-
ref: 'lex:com.atproto.admin.defs#communicationTemplateView',
|
|
1456
|
-
},
|
|
1457
|
-
},
|
|
1458
|
-
},
|
|
226
|
+
},
|
|
227
|
+
output: {
|
|
228
|
+
encoding: 'application/json',
|
|
229
|
+
schema: {
|
|
230
|
+
type: 'ref',
|
|
231
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
1459
232
|
},
|
|
1460
233
|
},
|
|
1461
234
|
},
|
|
1462
235
|
},
|
|
1463
236
|
},
|
|
1464
|
-
|
|
237
|
+
ComAtprotoAdminGetAccountInfos: {
|
|
1465
238
|
lexicon: 1,
|
|
1466
|
-
id: 'com.atproto.admin.
|
|
239
|
+
id: 'com.atproto.admin.getAccountInfos',
|
|
1467
240
|
defs: {
|
|
1468
241
|
main: {
|
|
1469
242
|
type: 'query',
|
|
1470
|
-
description: '
|
|
243
|
+
description: 'Get details about some accounts.',
|
|
1471
244
|
parameters: {
|
|
1472
245
|
type: 'params',
|
|
246
|
+
required: ['dids'],
|
|
1473
247
|
properties: {
|
|
1474
|
-
|
|
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: {
|
|
1547
|
-
type: 'string',
|
|
1548
|
-
},
|
|
1549
|
-
description:
|
|
1550
|
-
'If specified, only events where all of these tags were added are returned',
|
|
1551
|
-
},
|
|
1552
|
-
removedTags: {
|
|
1553
|
-
type: 'array',
|
|
1554
|
-
items: {
|
|
1555
|
-
type: 'string',
|
|
1556
|
-
},
|
|
1557
|
-
description:
|
|
1558
|
-
'If specified, only events where all of these tags were removed are returned',
|
|
1559
|
-
},
|
|
1560
|
-
reportTypes: {
|
|
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: ['
|
|
261
|
+
required: ['infos'],
|
|
1576
262
|
properties: {
|
|
1577
|
-
|
|
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#
|
|
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
|
-
|
|
276
|
+
ComAtprotoAdminGetInviteCodes: {
|
|
1594
277
|
lexicon: 1,
|
|
1595
|
-
id: 'com.atproto.admin.
|
|
278
|
+
id: 'com.atproto.admin.getInviteCodes',
|
|
1596
279
|
defs: {
|
|
1597
280
|
main: {
|
|
1598
281
|
type: 'query',
|
|
1599
|
-
description: '
|
|
282
|
+
description: 'Get an admin view of invite codes.',
|
|
1600
283
|
parameters: {
|
|
1601
284
|
type: 'params',
|
|
1602
285
|
properties: {
|
|
1603
|
-
|
|
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
|
-
|
|
1661
|
-
|
|
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:
|
|
1675
|
-
default:
|
|
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: ['
|
|
306
|
+
required: ['codes'],
|
|
1699
307
|
properties: {
|
|
1700
308
|
cursor: {
|
|
1701
309
|
type: 'string',
|
|
1702
310
|
},
|
|
1703
|
-
|
|
311
|
+
codes: {
|
|
1704
312
|
type: 'array',
|
|
1705
313
|
items: {
|
|
1706
314
|
type: 'ref',
|
|
1707
|
-
ref: 'lex:com.atproto.
|
|
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
|
-
|
|
324
|
+
ComAtprotoAdminGetSubjectStatus: {
|
|
1717
325
|
lexicon: 1,
|
|
1718
|
-
id: 'com.atproto.admin.
|
|
326
|
+
id: 'com.atproto.admin.getSubjectStatus',
|
|
1719
327
|
defs: {
|
|
1720
328
|
main: {
|
|
1721
329
|
type: 'query',
|
|
1722
|
-
description:
|
|
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
|
-
|
|
335
|
+
did: {
|
|
1727
336
|
type: 'string',
|
|
1728
|
-
|
|
337
|
+
format: 'did',
|
|
1729
338
|
},
|
|
1730
|
-
|
|
339
|
+
uri: {
|
|
1731
340
|
type: 'string',
|
|
341
|
+
format: 'at-uri',
|
|
1732
342
|
},
|
|
1733
|
-
|
|
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: ['
|
|
353
|
+
required: ['subject'],
|
|
1749
354
|
properties: {
|
|
1750
|
-
|
|
1751
|
-
type: '
|
|
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
|
-
|
|
1754
|
-
type: '
|
|
1755
|
-
|
|
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
|
},
|
|
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
|
+
},
|
|
2232
831
|
},
|
|
2233
832
|
},
|
|
2234
|
-
|
|
833
|
+
labelValueDefinition: {
|
|
2235
834
|
type: 'object',
|
|
2236
835
|
description:
|
|
2237
|
-
'
|
|
2238
|
-
required: ['
|
|
836
|
+
'Declares a label value and its expected interpertations and behaviors.',
|
|
837
|
+
required: ['identifier', 'severity', 'blurs', 'locales'],
|
|
2239
838
|
properties: {
|
|
2240
|
-
|
|
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#
|
|
873
|
+
ref: 'lex:com.atproto.label.defs#labelValueDefinitionStrings',
|
|
2245
874
|
},
|
|
2246
|
-
maxLength: 10,
|
|
2247
875
|
},
|
|
2248
876
|
},
|
|
2249
877
|
},
|
|
2250
|
-
|
|
878
|
+
labelValueDefinitionStrings: {
|
|
2251
879
|
type: 'object',
|
|
2252
880
|
description:
|
|
2253
|
-
'
|
|
2254
|
-
required: ['
|
|
881
|
+
'Strings which describe the label in the UI, localized into a specific language.',
|
|
882
|
+
required: ['lang', 'name', 'description'],
|
|
2255
883
|
properties: {
|
|
2256
|
-
|
|
884
|
+
lang: {
|
|
2257
885
|
type: 'string',
|
|
2258
|
-
maxLength: 128,
|
|
2259
886
|
description:
|
|
2260
|
-
'The
|
|
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: {
|
|
@@ -5044,6 +3701,10 @@ export const schemaDict = {
|
|
|
5044
3701
|
postsCount: {
|
|
5045
3702
|
type: 'integer',
|
|
5046
3703
|
},
|
|
3704
|
+
associated: {
|
|
3705
|
+
type: 'ref',
|
|
3706
|
+
ref: 'lex:app.bsky.actor.defs#profileAssociated',
|
|
3707
|
+
},
|
|
5047
3708
|
indexedAt: {
|
|
5048
3709
|
type: 'string',
|
|
5049
3710
|
format: 'datetime',
|
|
@@ -5061,6 +3722,20 @@ export const schemaDict = {
|
|
|
5061
3722
|
},
|
|
5062
3723
|
},
|
|
5063
3724
|
},
|
|
3725
|
+
profileAssociated: {
|
|
3726
|
+
type: 'object',
|
|
3727
|
+
properties: {
|
|
3728
|
+
lists: {
|
|
3729
|
+
type: 'integer',
|
|
3730
|
+
},
|
|
3731
|
+
feedgens: {
|
|
3732
|
+
type: 'integer',
|
|
3733
|
+
},
|
|
3734
|
+
labeler: {
|
|
3735
|
+
type: 'boolean',
|
|
3736
|
+
},
|
|
3737
|
+
},
|
|
3738
|
+
},
|
|
5064
3739
|
viewerState: {
|
|
5065
3740
|
type: 'object',
|
|
5066
3741
|
description:
|
|
@@ -5125,12 +3800,18 @@ export const schemaDict = {
|
|
|
5125
3800
|
type: 'object',
|
|
5126
3801
|
required: ['label', 'visibility'],
|
|
5127
3802
|
properties: {
|
|
3803
|
+
labelerDid: {
|
|
3804
|
+
type: 'string',
|
|
3805
|
+
description:
|
|
3806
|
+
'Which labeler does this preference apply to? If undefined, applies globally.',
|
|
3807
|
+
format: 'did',
|
|
3808
|
+
},
|
|
5128
3809
|
label: {
|
|
5129
3810
|
type: 'string',
|
|
5130
3811
|
},
|
|
5131
3812
|
visibility: {
|
|
5132
3813
|
type: 'string',
|
|
5133
|
-
knownValues: ['show', 'warn', 'hide'],
|
|
3814
|
+
knownValues: ['ignore', 'show', 'warn', 'hide'],
|
|
5134
3815
|
},
|
|
5135
3816
|
},
|
|
5136
3817
|
},
|
|
@@ -5288,6 +3969,29 @@ export const schemaDict = {
|
|
|
5288
3969
|
},
|
|
5289
3970
|
},
|
|
5290
3971
|
},
|
|
3972
|
+
labelersPref: {
|
|
3973
|
+
type: 'object',
|
|
3974
|
+
required: ['labelers'],
|
|
3975
|
+
properties: {
|
|
3976
|
+
labelers: {
|
|
3977
|
+
type: 'array',
|
|
3978
|
+
items: {
|
|
3979
|
+
type: 'ref',
|
|
3980
|
+
ref: 'lex:app.bsky.actor.defs#labelerPrefItem',
|
|
3981
|
+
},
|
|
3982
|
+
},
|
|
3983
|
+
},
|
|
3984
|
+
},
|
|
3985
|
+
labelerPrefItem: {
|
|
3986
|
+
type: 'object',
|
|
3987
|
+
required: ['did'],
|
|
3988
|
+
properties: {
|
|
3989
|
+
did: {
|
|
3990
|
+
type: 'string',
|
|
3991
|
+
format: 'did',
|
|
3992
|
+
},
|
|
3993
|
+
},
|
|
3994
|
+
},
|
|
5291
3995
|
},
|
|
5292
3996
|
},
|
|
5293
3997
|
AppBskyActorGetPreferences: {
|
|
@@ -5792,6 +4496,7 @@ export const schemaDict = {
|
|
|
5792
4496
|
'lex:app.bsky.embed.record#viewBlocked',
|
|
5793
4497
|
'lex:app.bsky.feed.defs#generatorView',
|
|
5794
4498
|
'lex:app.bsky.graph.defs#listView',
|
|
4499
|
+
'lex:app.bsky.labeler.defs#labelerView',
|
|
5795
4500
|
],
|
|
5796
4501
|
},
|
|
5797
4502
|
},
|
|
@@ -6165,6 +4870,13 @@ export const schemaDict = {
|
|
|
6165
4870
|
type: 'integer',
|
|
6166
4871
|
minimum: 0,
|
|
6167
4872
|
},
|
|
4873
|
+
labels: {
|
|
4874
|
+
type: 'array',
|
|
4875
|
+
items: {
|
|
4876
|
+
type: 'ref',
|
|
4877
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
4878
|
+
},
|
|
4879
|
+
},
|
|
6168
4880
|
viewer: {
|
|
6169
4881
|
type: 'ref',
|
|
6170
4882
|
ref: 'lex:app.bsky.feed.defs#generatorViewerState',
|
|
@@ -7469,6 +6181,13 @@ export const schemaDict = {
|
|
|
7469
6181
|
avatar: {
|
|
7470
6182
|
type: 'string',
|
|
7471
6183
|
},
|
|
6184
|
+
labels: {
|
|
6185
|
+
type: 'array',
|
|
6186
|
+
items: {
|
|
6187
|
+
type: 'ref',
|
|
6188
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
6189
|
+
},
|
|
6190
|
+
},
|
|
7472
6191
|
viewer: {
|
|
7473
6192
|
type: 'ref',
|
|
7474
6193
|
ref: 'lex:app.bsky.graph.defs#listViewerState',
|
|
@@ -7519,6 +6238,13 @@ export const schemaDict = {
|
|
|
7519
6238
|
avatar: {
|
|
7520
6239
|
type: 'string',
|
|
7521
6240
|
},
|
|
6241
|
+
labels: {
|
|
6242
|
+
type: 'array',
|
|
6243
|
+
items: {
|
|
6244
|
+
type: 'ref',
|
|
6245
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
6246
|
+
},
|
|
6247
|
+
},
|
|
7522
6248
|
viewer: {
|
|
7523
6249
|
type: 'ref',
|
|
7524
6250
|
ref: 'lex:app.bsky.graph.defs#listViewerState',
|
|
@@ -8333,6 +7059,198 @@ export const schemaDict = {
|
|
|
8333
7059
|
},
|
|
8334
7060
|
},
|
|
8335
7061
|
},
|
|
7062
|
+
AppBskyLabelerDefs: {
|
|
7063
|
+
lexicon: 1,
|
|
7064
|
+
id: 'app.bsky.labeler.defs',
|
|
7065
|
+
defs: {
|
|
7066
|
+
labelerView: {
|
|
7067
|
+
type: 'object',
|
|
7068
|
+
required: ['uri', 'cid', 'creator', 'indexedAt'],
|
|
7069
|
+
properties: {
|
|
7070
|
+
uri: {
|
|
7071
|
+
type: 'string',
|
|
7072
|
+
format: 'at-uri',
|
|
7073
|
+
},
|
|
7074
|
+
cid: {
|
|
7075
|
+
type: 'string',
|
|
7076
|
+
format: 'cid',
|
|
7077
|
+
},
|
|
7078
|
+
creator: {
|
|
7079
|
+
type: 'ref',
|
|
7080
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
7081
|
+
},
|
|
7082
|
+
likeCount: {
|
|
7083
|
+
type: 'integer',
|
|
7084
|
+
minimum: 0,
|
|
7085
|
+
},
|
|
7086
|
+
viewer: {
|
|
7087
|
+
type: 'ref',
|
|
7088
|
+
ref: 'lex:app.bsky.labeler.defs#labelerViewerState',
|
|
7089
|
+
},
|
|
7090
|
+
indexedAt: {
|
|
7091
|
+
type: 'string',
|
|
7092
|
+
format: 'datetime',
|
|
7093
|
+
},
|
|
7094
|
+
labels: {
|
|
7095
|
+
type: 'array',
|
|
7096
|
+
items: {
|
|
7097
|
+
type: 'ref',
|
|
7098
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
7099
|
+
},
|
|
7100
|
+
},
|
|
7101
|
+
},
|
|
7102
|
+
},
|
|
7103
|
+
labelerViewDetailed: {
|
|
7104
|
+
type: 'object',
|
|
7105
|
+
required: ['uri', 'cid', 'creator', 'policies', 'indexedAt'],
|
|
7106
|
+
properties: {
|
|
7107
|
+
uri: {
|
|
7108
|
+
type: 'string',
|
|
7109
|
+
format: 'at-uri',
|
|
7110
|
+
},
|
|
7111
|
+
cid: {
|
|
7112
|
+
type: 'string',
|
|
7113
|
+
format: 'cid',
|
|
7114
|
+
},
|
|
7115
|
+
creator: {
|
|
7116
|
+
type: 'ref',
|
|
7117
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
7118
|
+
},
|
|
7119
|
+
policies: {
|
|
7120
|
+
type: 'ref',
|
|
7121
|
+
ref: 'lex:app.bsky.labeler.defs#labelerPolicies',
|
|
7122
|
+
},
|
|
7123
|
+
likeCount: {
|
|
7124
|
+
type: 'integer',
|
|
7125
|
+
minimum: 0,
|
|
7126
|
+
},
|
|
7127
|
+
viewer: {
|
|
7128
|
+
type: 'ref',
|
|
7129
|
+
ref: 'lex:app.bsky.labeler.defs#labelerViewerState',
|
|
7130
|
+
},
|
|
7131
|
+
indexedAt: {
|
|
7132
|
+
type: 'string',
|
|
7133
|
+
format: 'datetime',
|
|
7134
|
+
},
|
|
7135
|
+
labels: {
|
|
7136
|
+
type: 'array',
|
|
7137
|
+
items: {
|
|
7138
|
+
type: 'ref',
|
|
7139
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
7140
|
+
},
|
|
7141
|
+
},
|
|
7142
|
+
},
|
|
7143
|
+
},
|
|
7144
|
+
labelerViewerState: {
|
|
7145
|
+
type: 'object',
|
|
7146
|
+
properties: {
|
|
7147
|
+
like: {
|
|
7148
|
+
type: 'string',
|
|
7149
|
+
format: 'at-uri',
|
|
7150
|
+
},
|
|
7151
|
+
},
|
|
7152
|
+
},
|
|
7153
|
+
labelerPolicies: {
|
|
7154
|
+
type: 'object',
|
|
7155
|
+
required: ['labelValues'],
|
|
7156
|
+
properties: {
|
|
7157
|
+
labelValues: {
|
|
7158
|
+
type: 'array',
|
|
7159
|
+
description:
|
|
7160
|
+
'The label values which this labeler publishes. May include global or custom labels.',
|
|
7161
|
+
items: {
|
|
7162
|
+
type: 'ref',
|
|
7163
|
+
ref: 'lex:com.atproto.label.defs#labelValue',
|
|
7164
|
+
},
|
|
7165
|
+
},
|
|
7166
|
+
labelValueDefinitions: {
|
|
7167
|
+
type: 'array',
|
|
7168
|
+
description:
|
|
7169
|
+
'Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.',
|
|
7170
|
+
items: {
|
|
7171
|
+
type: 'ref',
|
|
7172
|
+
ref: 'lex:com.atproto.label.defs#labelValueDefinition',
|
|
7173
|
+
},
|
|
7174
|
+
},
|
|
7175
|
+
},
|
|
7176
|
+
},
|
|
7177
|
+
},
|
|
7178
|
+
},
|
|
7179
|
+
AppBskyLabelerGetServices: {
|
|
7180
|
+
lexicon: 1,
|
|
7181
|
+
id: 'app.bsky.labeler.getServices',
|
|
7182
|
+
defs: {
|
|
7183
|
+
main: {
|
|
7184
|
+
type: 'query',
|
|
7185
|
+
description: 'Get information about a list of labeler services.',
|
|
7186
|
+
parameters: {
|
|
7187
|
+
type: 'params',
|
|
7188
|
+
required: ['dids'],
|
|
7189
|
+
properties: {
|
|
7190
|
+
dids: {
|
|
7191
|
+
type: 'array',
|
|
7192
|
+
items: {
|
|
7193
|
+
type: 'string',
|
|
7194
|
+
format: 'did',
|
|
7195
|
+
},
|
|
7196
|
+
},
|
|
7197
|
+
detailed: {
|
|
7198
|
+
type: 'boolean',
|
|
7199
|
+
default: false,
|
|
7200
|
+
},
|
|
7201
|
+
},
|
|
7202
|
+
},
|
|
7203
|
+
output: {
|
|
7204
|
+
encoding: 'application/json',
|
|
7205
|
+
schema: {
|
|
7206
|
+
type: 'object',
|
|
7207
|
+
required: ['views'],
|
|
7208
|
+
properties: {
|
|
7209
|
+
views: {
|
|
7210
|
+
type: 'array',
|
|
7211
|
+
items: {
|
|
7212
|
+
type: 'union',
|
|
7213
|
+
refs: [
|
|
7214
|
+
'lex:app.bsky.labeler.defs#labelerView',
|
|
7215
|
+
'lex:app.bsky.labeler.defs#labelerViewDetailed',
|
|
7216
|
+
],
|
|
7217
|
+
},
|
|
7218
|
+
},
|
|
7219
|
+
},
|
|
7220
|
+
},
|
|
7221
|
+
},
|
|
7222
|
+
},
|
|
7223
|
+
},
|
|
7224
|
+
},
|
|
7225
|
+
AppBskyLabelerService: {
|
|
7226
|
+
lexicon: 1,
|
|
7227
|
+
id: 'app.bsky.labeler.service',
|
|
7228
|
+
defs: {
|
|
7229
|
+
main: {
|
|
7230
|
+
type: 'record',
|
|
7231
|
+
description: 'A declaration of the existence of labeler service.',
|
|
7232
|
+
key: 'literal:self',
|
|
7233
|
+
record: {
|
|
7234
|
+
type: 'object',
|
|
7235
|
+
required: ['policies', 'createdAt'],
|
|
7236
|
+
properties: {
|
|
7237
|
+
policies: {
|
|
7238
|
+
type: 'ref',
|
|
7239
|
+
ref: 'lex:app.bsky.labeler.defs#labelerPolicies',
|
|
7240
|
+
},
|
|
7241
|
+
labels: {
|
|
7242
|
+
type: 'union',
|
|
7243
|
+
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
7244
|
+
},
|
|
7245
|
+
createdAt: {
|
|
7246
|
+
type: 'string',
|
|
7247
|
+
format: 'datetime',
|
|
7248
|
+
},
|
|
7249
|
+
},
|
|
7250
|
+
},
|
|
7251
|
+
},
|
|
7252
|
+
},
|
|
7253
|
+
},
|
|
8336
7254
|
AppBskyNotificationGetUnreadCount: {
|
|
8337
7255
|
lexicon: 1,
|
|
8338
7256
|
id: 'app.bsky.notification.getUnreadCount',
|
|
@@ -8866,38 +7784,21 @@ export const schemaDict = {
|
|
|
8866
7784
|
export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
|
|
8867
7785
|
export const lexicons: Lexicons = new Lexicons(schemas)
|
|
8868
7786
|
export const ids = {
|
|
8869
|
-
ComAtprotoAdminCreateCommunicationTemplate:
|
|
8870
|
-
'com.atproto.admin.createCommunicationTemplate',
|
|
8871
7787
|
ComAtprotoAdminDefs: 'com.atproto.admin.defs',
|
|
8872
7788
|
ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',
|
|
8873
|
-
ComAtprotoAdminDeleteCommunicationTemplate:
|
|
8874
|
-
'com.atproto.admin.deleteCommunicationTemplate',
|
|
8875
7789
|
ComAtprotoAdminDisableAccountInvites:
|
|
8876
7790
|
'com.atproto.admin.disableAccountInvites',
|
|
8877
7791
|
ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
|
|
8878
|
-
ComAtprotoAdminEmitModerationEvent: 'com.atproto.admin.emitModerationEvent',
|
|
8879
7792
|
ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
|
|
8880
7793
|
ComAtprotoAdminGetAccountInfo: 'com.atproto.admin.getAccountInfo',
|
|
8881
7794
|
ComAtprotoAdminGetAccountInfos: 'com.atproto.admin.getAccountInfos',
|
|
8882
7795
|
ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
|
|
8883
|
-
ComAtprotoAdminGetModerationEvent: 'com.atproto.admin.getModerationEvent',
|
|
8884
|
-
ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
|
|
8885
|
-
ComAtprotoAdminGetRepo: 'com.atproto.admin.getRepo',
|
|
8886
7796
|
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
7797
|
ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail',
|
|
8895
7798
|
ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
|
|
8896
7799
|
ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
|
|
8897
7800
|
ComAtprotoAdminUpdateAccountPassword:
|
|
8898
7801
|
'com.atproto.admin.updateAccountPassword',
|
|
8899
|
-
ComAtprotoAdminUpdateCommunicationTemplate:
|
|
8900
|
-
'com.atproto.admin.updateCommunicationTemplate',
|
|
8901
7802
|
ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
|
|
8902
7803
|
ComAtprotoIdentityGetRecommendedDidCredentials:
|
|
8903
7804
|
'com.atproto.identity.getRecommendedDidCredentials',
|
|
@@ -9026,6 +7927,9 @@ export const ids = {
|
|
|
9026
7927
|
AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
|
|
9027
7928
|
AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
|
|
9028
7929
|
AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
|
|
7930
|
+
AppBskyLabelerDefs: 'app.bsky.labeler.defs',
|
|
7931
|
+
AppBskyLabelerGetServices: 'app.bsky.labeler.getServices',
|
|
7932
|
+
AppBskyLabelerService: 'app.bsky.labeler.service',
|
|
9029
7933
|
AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
|
|
9030
7934
|
AppBskyNotificationListNotifications:
|
|
9031
7935
|
'app.bsky.notification.listNotifications',
|