@atproto/api 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -6
- package/dist/agent.d.ts +22 -0
- package/dist/client/index.d.ts +63 -61
- package/dist/client/lexicons.d.ts +168 -22
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +0 -7
- package/dist/client/types/com/atproto/account/delete.d.ts +14 -2
- package/dist/{src/client/types/com/atproto/account/delete.d.ts → client/types/com/atproto/account/requestDelete.d.ts} +0 -0
- package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +13 -2
- package/dist/client/types/com/atproto/admin/record.d.ts +5 -2
- package/dist/client/types/com/atproto/admin/repo.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +5 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +667 -368
- package/dist/index.js.map +4 -4
- package/dist/types.d.ts +33 -0
- package/package.json +1 -1
- package/src/agent.ts +305 -0
- package/src/client/index.ts +75 -63
- package/src/client/lexicons.ts +219 -49
- package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -18
- package/src/client/types/com/atproto/account/delete.ts +21 -1
- package/src/client/types/com/atproto/account/requestDelete.ts +27 -0
- package/src/client/types/com/atproto/admin/blob.ts +84 -0
- package/src/client/types/com/atproto/admin/moderationAction.ts +29 -10
- package/src/client/types/com/atproto/admin/record.ts +5 -2
- package/src/client/types/com/atproto/admin/repo.ts +2 -2
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +8 -0
- package/src/index.ts +3 -3
- package/src/types.ts +71 -0
- package/tests/_util.ts +26 -0
- package/tests/agent.test.ts +391 -0
- package/tests/errors.test.ts +4 -8
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/src/client/index.d.ts +0 -474
- package/dist/src/client/lexicons.d.ts +0 -3036
- package/dist/src/client/schemas.d.ts +0 -17
- package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
- package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
- package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
- package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
- package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
- package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
- package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
- package/dist/src/client/types/app/bsky/administration/moderationAction.d.ts +0 -16
- package/dist/src/client/types/app/bsky/administration/reverseModerationAction.d.ts +0 -22
- package/dist/src/client/types/app/bsky/administration/takeModerationAction.d.ts +0 -27
- package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
- package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
- package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
- package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
- package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
- package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
- package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
- package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
- package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
- package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
- package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
- package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
- package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
- package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -15
- package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
- package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
- package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
- package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
- package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
- package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
- package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
- package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
- package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
- package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
- package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
- package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
- package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
- package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
- package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
- package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
- package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
- package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
- package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
- package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
- package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
- package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
- package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
- package/dist/src/client/types/app/bsky/like.d.ts +0 -10
- package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
- package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
- package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
- package/dist/src/client/types/app/bsky/post.d.ts +0 -23
- package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
- package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
- package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
- package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
- package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
- package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
- package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
- package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
- package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
- package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
- package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
- package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
- package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
- package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
- package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
- package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
- package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
- package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
- package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
- package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
- package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
- package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
- package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
- package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
- package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
- package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
- package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
- package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
- package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
- package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
- package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
- package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
- package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
- package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
- package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
- package/dist/src/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
- package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
- package/dist/src/index.d.ts +0 -4
- package/dist/src/schemas.d.ts +0 -19
- package/dist/src/session.d.ts +0 -42
- package/dist/src/types/app/bsky/badge.d.ts +0 -22
- package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
- package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
- package/dist/src/types/app/bsky/declaration.d.ts +0 -6
- package/dist/src/types/app/bsky/follow.d.ts +0 -9
- package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
- package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
- package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
- package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
- package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
- package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
- package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
- package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
- package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
- package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
- package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
- package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
- package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
- package/dist/src/types/app/bsky/invite.d.ts +0 -10
- package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
- package/dist/src/types/app/bsky/like.d.ts +0 -10
- package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
- package/dist/src/types/app/bsky/post.d.ts +0 -23
- package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
- package/dist/src/types/app/bsky/profile.d.ts +0 -11
- package/dist/src/types/app/bsky/repost.d.ts +0 -10
- package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
- package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
- package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
- package/dist/src/types/com/atproto/createSession.d.ts +0 -23
- package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
- package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
- package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
- package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
- package/dist/src/types/com/atproto/getSession.d.ts +0 -17
- package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
- package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
- package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
- package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
- package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
- package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
- package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
- package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
- package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
- package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
- package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
- package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
- package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
- package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/src/session.ts +0 -194
- package/tests/session.test.ts +0 -239
|
@@ -99,6 +99,27 @@ export declare const schemaDict: {
|
|
|
99
99
|
main: {
|
|
100
100
|
type: string;
|
|
101
101
|
description: string;
|
|
102
|
+
input: {
|
|
103
|
+
encoding: string;
|
|
104
|
+
schema: {
|
|
105
|
+
type: string;
|
|
106
|
+
required: string[];
|
|
107
|
+
properties: {
|
|
108
|
+
did: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
password: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
token: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
errors: {
|
|
121
|
+
name: string;
|
|
122
|
+
}[];
|
|
102
123
|
};
|
|
103
124
|
};
|
|
104
125
|
};
|
|
@@ -112,6 +133,16 @@ export declare const schemaDict: {
|
|
|
112
133
|
};
|
|
113
134
|
};
|
|
114
135
|
};
|
|
136
|
+
ComAtprotoAccountRequestDelete: {
|
|
137
|
+
lexicon: number;
|
|
138
|
+
id: string;
|
|
139
|
+
defs: {
|
|
140
|
+
main: {
|
|
141
|
+
type: string;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
115
146
|
ComAtprotoAccountRequestPasswordReset: {
|
|
116
147
|
lexicon: number;
|
|
117
148
|
id: string;
|
|
@@ -162,6 +193,75 @@ export declare const schemaDict: {
|
|
|
162
193
|
};
|
|
163
194
|
};
|
|
164
195
|
};
|
|
196
|
+
ComAtprotoAdminBlob: {
|
|
197
|
+
lexicon: number;
|
|
198
|
+
id: string;
|
|
199
|
+
defs: {
|
|
200
|
+
view: {
|
|
201
|
+
type: string;
|
|
202
|
+
required: string[];
|
|
203
|
+
properties: {
|
|
204
|
+
cid: {
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
207
|
+
mimeType: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
210
|
+
size: {
|
|
211
|
+
type: string;
|
|
212
|
+
};
|
|
213
|
+
createdAt: {
|
|
214
|
+
type: string;
|
|
215
|
+
};
|
|
216
|
+
details: {
|
|
217
|
+
type: string;
|
|
218
|
+
refs: string[];
|
|
219
|
+
};
|
|
220
|
+
moderation: {
|
|
221
|
+
type: string;
|
|
222
|
+
ref: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
imageDetails: {
|
|
227
|
+
type: string;
|
|
228
|
+
required: string[];
|
|
229
|
+
properties: {
|
|
230
|
+
width: {
|
|
231
|
+
type: string;
|
|
232
|
+
};
|
|
233
|
+
height: {
|
|
234
|
+
type: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
videoDetails: {
|
|
239
|
+
type: string;
|
|
240
|
+
required: string[];
|
|
241
|
+
properties: {
|
|
242
|
+
width: {
|
|
243
|
+
type: string;
|
|
244
|
+
};
|
|
245
|
+
height: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
length: {
|
|
249
|
+
type: string;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
moderation: {
|
|
254
|
+
type: string;
|
|
255
|
+
required: never[];
|
|
256
|
+
properties: {
|
|
257
|
+
currentAction: {
|
|
258
|
+
type: string;
|
|
259
|
+
ref: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
165
265
|
ComAtprotoAdminGetModerationAction: {
|
|
166
266
|
lexicon: number;
|
|
167
267
|
id: string;
|
|
@@ -377,12 +477,18 @@ export declare const schemaDict: {
|
|
|
377
477
|
};
|
|
378
478
|
action: {
|
|
379
479
|
type: string;
|
|
380
|
-
|
|
480
|
+
ref: string;
|
|
381
481
|
};
|
|
382
482
|
subject: {
|
|
383
483
|
type: string;
|
|
384
484
|
refs: string[];
|
|
385
485
|
};
|
|
486
|
+
subjectBlobCids: {
|
|
487
|
+
type: string;
|
|
488
|
+
items: {
|
|
489
|
+
type: string;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
386
492
|
reason: {
|
|
387
493
|
type: string;
|
|
388
494
|
};
|
|
@@ -413,12 +519,19 @@ export declare const schemaDict: {
|
|
|
413
519
|
};
|
|
414
520
|
action: {
|
|
415
521
|
type: string;
|
|
416
|
-
|
|
522
|
+
ref: string;
|
|
417
523
|
};
|
|
418
524
|
subject: {
|
|
419
525
|
type: string;
|
|
420
526
|
refs: string[];
|
|
421
527
|
};
|
|
528
|
+
subjectBlobs: {
|
|
529
|
+
type: string;
|
|
530
|
+
items: {
|
|
531
|
+
type: string;
|
|
532
|
+
ref: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
422
535
|
reason: {
|
|
423
536
|
type: string;
|
|
424
537
|
};
|
|
@@ -441,6 +554,19 @@ export declare const schemaDict: {
|
|
|
441
554
|
};
|
|
442
555
|
};
|
|
443
556
|
};
|
|
557
|
+
viewCurrent: {
|
|
558
|
+
type: string;
|
|
559
|
+
required: string[];
|
|
560
|
+
properties: {
|
|
561
|
+
id: {
|
|
562
|
+
type: string;
|
|
563
|
+
};
|
|
564
|
+
action: {
|
|
565
|
+
type: string;
|
|
566
|
+
ref: string;
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
};
|
|
444
570
|
reversal: {
|
|
445
571
|
type: string;
|
|
446
572
|
required: string[];
|
|
@@ -456,6 +582,10 @@ export declare const schemaDict: {
|
|
|
456
582
|
};
|
|
457
583
|
};
|
|
458
584
|
};
|
|
585
|
+
actionType: {
|
|
586
|
+
type: string;
|
|
587
|
+
knownValues: string[];
|
|
588
|
+
};
|
|
459
589
|
takedown: {
|
|
460
590
|
type: string;
|
|
461
591
|
description: string;
|
|
@@ -558,6 +688,12 @@ export declare const schemaDict: {
|
|
|
558
688
|
value: {
|
|
559
689
|
type: string;
|
|
560
690
|
};
|
|
691
|
+
blobCids: {
|
|
692
|
+
type: string;
|
|
693
|
+
items: {
|
|
694
|
+
type: string;
|
|
695
|
+
};
|
|
696
|
+
};
|
|
561
697
|
indexedAt: {
|
|
562
698
|
type: string;
|
|
563
699
|
};
|
|
@@ -584,6 +720,13 @@ export declare const schemaDict: {
|
|
|
584
720
|
value: {
|
|
585
721
|
type: string;
|
|
586
722
|
};
|
|
723
|
+
blobs: {
|
|
724
|
+
type: string;
|
|
725
|
+
items: {
|
|
726
|
+
type: string;
|
|
727
|
+
ref: string;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
587
730
|
indexedAt: {
|
|
588
731
|
type: string;
|
|
589
732
|
};
|
|
@@ -601,8 +744,9 @@ export declare const schemaDict: {
|
|
|
601
744
|
type: string;
|
|
602
745
|
required: never[];
|
|
603
746
|
properties: {
|
|
604
|
-
|
|
747
|
+
currentAction: {
|
|
605
748
|
type: string;
|
|
749
|
+
ref: string;
|
|
606
750
|
};
|
|
607
751
|
};
|
|
608
752
|
};
|
|
@@ -610,6 +754,10 @@ export declare const schemaDict: {
|
|
|
610
754
|
type: string;
|
|
611
755
|
required: string[];
|
|
612
756
|
properties: {
|
|
757
|
+
currentAction: {
|
|
758
|
+
type: string;
|
|
759
|
+
ref: string;
|
|
760
|
+
};
|
|
613
761
|
actions: {
|
|
614
762
|
type: string;
|
|
615
763
|
items: {
|
|
@@ -624,9 +772,6 @@ export declare const schemaDict: {
|
|
|
624
772
|
ref: string;
|
|
625
773
|
};
|
|
626
774
|
};
|
|
627
|
-
takedownId: {
|
|
628
|
-
type: string;
|
|
629
|
-
};
|
|
630
775
|
};
|
|
631
776
|
};
|
|
632
777
|
};
|
|
@@ -706,8 +851,9 @@ export declare const schemaDict: {
|
|
|
706
851
|
type: string;
|
|
707
852
|
required: never[];
|
|
708
853
|
properties: {
|
|
709
|
-
|
|
854
|
+
currentAction: {
|
|
710
855
|
type: string;
|
|
856
|
+
ref: string;
|
|
711
857
|
};
|
|
712
858
|
};
|
|
713
859
|
};
|
|
@@ -715,6 +861,10 @@ export declare const schemaDict: {
|
|
|
715
861
|
type: string;
|
|
716
862
|
required: string[];
|
|
717
863
|
properties: {
|
|
864
|
+
currentAction: {
|
|
865
|
+
type: string;
|
|
866
|
+
ref: string;
|
|
867
|
+
};
|
|
718
868
|
actions: {
|
|
719
869
|
type: string;
|
|
720
870
|
items: {
|
|
@@ -729,9 +879,6 @@ export declare const schemaDict: {
|
|
|
729
879
|
ref: string;
|
|
730
880
|
};
|
|
731
881
|
};
|
|
732
|
-
takedownId: {
|
|
733
|
-
type: string;
|
|
734
|
-
};
|
|
735
882
|
};
|
|
736
883
|
};
|
|
737
884
|
};
|
|
@@ -876,6 +1023,12 @@ export declare const schemaDict: {
|
|
|
876
1023
|
type: string;
|
|
877
1024
|
refs: string[];
|
|
878
1025
|
};
|
|
1026
|
+
subjectBlobCids: {
|
|
1027
|
+
type: string;
|
|
1028
|
+
items: {
|
|
1029
|
+
type: string;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
879
1032
|
reason: {
|
|
880
1033
|
type: string;
|
|
881
1034
|
};
|
|
@@ -892,6 +1045,9 @@ export declare const schemaDict: {
|
|
|
892
1045
|
ref: string;
|
|
893
1046
|
};
|
|
894
1047
|
};
|
|
1048
|
+
errors: {
|
|
1049
|
+
name: string;
|
|
1050
|
+
}[];
|
|
895
1051
|
};
|
|
896
1052
|
};
|
|
897
1053
|
};
|
|
@@ -2003,18 +2159,6 @@ export declare const schemaDict: {
|
|
|
2003
2159
|
indexedAt: {
|
|
2004
2160
|
type: string;
|
|
2005
2161
|
};
|
|
2006
|
-
myState: {
|
|
2007
|
-
type: string;
|
|
2008
|
-
ref: string;
|
|
2009
|
-
};
|
|
2010
|
-
};
|
|
2011
|
-
};
|
|
2012
|
-
myState: {
|
|
2013
|
-
type: string;
|
|
2014
|
-
properties: {
|
|
2015
|
-
follow: {
|
|
2016
|
-
type: string;
|
|
2017
|
-
};
|
|
2018
2162
|
};
|
|
2019
2163
|
};
|
|
2020
2164
|
};
|
|
@@ -3596,8 +3740,10 @@ export declare const ids: {
|
|
|
3596
3740
|
ComAtprotoAccountCreateInviteCode: string;
|
|
3597
3741
|
ComAtprotoAccountDelete: string;
|
|
3598
3742
|
ComAtprotoAccountGet: string;
|
|
3743
|
+
ComAtprotoAccountRequestDelete: string;
|
|
3599
3744
|
ComAtprotoAccountRequestPasswordReset: string;
|
|
3600
3745
|
ComAtprotoAccountResetPassword: string;
|
|
3746
|
+
ComAtprotoAdminBlob: string;
|
|
3601
3747
|
ComAtprotoAdminGetModerationAction: string;
|
|
3602
3748
|
ComAtprotoAdminGetModerationActions: string;
|
|
3603
3749
|
ComAtprotoAdminGetModerationReport: string;
|
|
@@ -28,14 +28,7 @@ export interface Actor {
|
|
|
28
28
|
description?: string;
|
|
29
29
|
avatar?: string;
|
|
30
30
|
indexedAt?: string;
|
|
31
|
-
myState?: MyState;
|
|
32
31
|
[k: string]: unknown;
|
|
33
32
|
}
|
|
34
33
|
export declare function isActor(v: unknown): v is Actor;
|
|
35
34
|
export declare function validateActor(v: unknown): ValidationResult;
|
|
36
|
-
export interface MyState {
|
|
37
|
-
follow?: string;
|
|
38
|
-
[k: string]: unknown;
|
|
39
|
-
}
|
|
40
|
-
export declare function isMyState(v: unknown): v is MyState;
|
|
41
|
-
export declare function validateMyState(v: unknown): ValidationResult;
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
2
|
export interface QueryParams {
|
|
3
3
|
}
|
|
4
|
-
export
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
did: string;
|
|
6
|
+
password: string;
|
|
7
|
+
token: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
5
10
|
export interface CallOptions {
|
|
6
11
|
headers?: Headers;
|
|
7
12
|
qp?: QueryParams;
|
|
13
|
+
encoding: 'application/json';
|
|
8
14
|
}
|
|
9
15
|
export interface Response {
|
|
10
16
|
success: boolean;
|
|
11
17
|
headers: Headers;
|
|
12
18
|
}
|
|
19
|
+
export declare class ExpiredTokenError extends XRPCError {
|
|
20
|
+
constructor(src: XRPCError);
|
|
21
|
+
}
|
|
22
|
+
export declare class InvalidTokenError extends XRPCError {
|
|
23
|
+
constructor(src: XRPCError);
|
|
24
|
+
}
|
|
13
25
|
export declare function toKnownErr(e: any): any;
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
3
|
+
export interface View {
|
|
4
|
+
cid: string;
|
|
5
|
+
mimeType: string;
|
|
6
|
+
size: number;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
details?: ImageDetails | VideoDetails | {
|
|
9
|
+
$type: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
moderation?: Moderation;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export declare function isView(v: unknown): v is View;
|
|
16
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
17
|
+
export interface ImageDetails {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function isImageDetails(v: unknown): v is ImageDetails;
|
|
23
|
+
export declare function validateImageDetails(v: unknown): ValidationResult;
|
|
24
|
+
export interface VideoDetails {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
length: number;
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export declare function isVideoDetails(v: unknown): v is VideoDetails;
|
|
31
|
+
export declare function validateVideoDetails(v: unknown): ValidationResult;
|
|
32
|
+
export interface Moderation {
|
|
33
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isModeration(v: unknown): v is Moderation;
|
|
37
|
+
export declare function validateModeration(v: unknown): ValidationResult;
|
|
@@ -3,14 +3,16 @@ import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
|
|
|
3
3
|
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
4
4
|
import * as ComAtprotoAdminRepo from './repo';
|
|
5
5
|
import * as ComAtprotoAdminRecord from './record';
|
|
6
|
+
import * as ComAtprotoAdminBlob from './blob';
|
|
6
7
|
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
7
8
|
export interface View {
|
|
8
9
|
id: number;
|
|
9
|
-
action:
|
|
10
|
+
action: ActionType;
|
|
10
11
|
subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
|
|
11
12
|
$type: string;
|
|
12
13
|
[k: string]: unknown;
|
|
13
14
|
};
|
|
15
|
+
subjectBlobCids: string[];
|
|
14
16
|
reason: string;
|
|
15
17
|
createdBy: string;
|
|
16
18
|
createdAt: string;
|
|
@@ -22,11 +24,12 @@ export declare function isView(v: unknown): v is View;
|
|
|
22
24
|
export declare function validateView(v: unknown): ValidationResult;
|
|
23
25
|
export interface ViewDetail {
|
|
24
26
|
id: number;
|
|
25
|
-
action:
|
|
27
|
+
action: ActionType;
|
|
26
28
|
subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
|
|
27
29
|
$type: string;
|
|
28
30
|
[k: string]: unknown;
|
|
29
31
|
};
|
|
32
|
+
subjectBlobs: ComAtprotoAdminBlob.View[];
|
|
30
33
|
reason: string;
|
|
31
34
|
createdBy: string;
|
|
32
35
|
createdAt: string;
|
|
@@ -36,6 +39,13 @@ export interface ViewDetail {
|
|
|
36
39
|
}
|
|
37
40
|
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
38
41
|
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
42
|
+
export interface ViewCurrent {
|
|
43
|
+
id: number;
|
|
44
|
+
action: ActionType;
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export declare function isViewCurrent(v: unknown): v is ViewCurrent;
|
|
48
|
+
export declare function validateViewCurrent(v: unknown): ValidationResult;
|
|
39
49
|
export interface Reversal {
|
|
40
50
|
reason: string;
|
|
41
51
|
createdBy: string;
|
|
@@ -44,6 +54,7 @@ export interface Reversal {
|
|
|
44
54
|
}
|
|
45
55
|
export declare function isReversal(v: unknown): v is Reversal;
|
|
46
56
|
export declare function validateReversal(v: unknown): ValidationResult;
|
|
57
|
+
export declare type ActionType = 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
|
|
47
58
|
export declare const TAKEDOWN = "com.atproto.admin.moderationAction#takedown";
|
|
48
59
|
export declare const FLAG = "com.atproto.admin.moderationAction#flag";
|
|
49
60
|
export declare const ACKNOWLEDGE = "com.atproto.admin.moderationAction#acknowledge";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
import * as ComAtprotoAdminRepo from './repo';
|
|
3
|
+
import * as ComAtprotoAdminBlob from './blob';
|
|
3
4
|
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
4
5
|
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
5
6
|
export interface View {
|
|
6
7
|
uri: string;
|
|
7
8
|
cid: string;
|
|
8
9
|
value: {};
|
|
10
|
+
blobCids: string[];
|
|
9
11
|
indexedAt: string;
|
|
10
12
|
moderation: Moderation;
|
|
11
13
|
repo: ComAtprotoAdminRepo.View;
|
|
@@ -17,6 +19,7 @@ export interface ViewDetail {
|
|
|
17
19
|
uri: string;
|
|
18
20
|
cid: string;
|
|
19
21
|
value: {};
|
|
22
|
+
blobs: ComAtprotoAdminBlob.View[];
|
|
20
23
|
indexedAt: string;
|
|
21
24
|
moderation: ModerationDetail;
|
|
22
25
|
repo: ComAtprotoAdminRepo.View;
|
|
@@ -25,15 +28,15 @@ export interface ViewDetail {
|
|
|
25
28
|
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
26
29
|
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
27
30
|
export interface Moderation {
|
|
28
|
-
|
|
31
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
29
32
|
[k: string]: unknown;
|
|
30
33
|
}
|
|
31
34
|
export declare function isModeration(v: unknown): v is Moderation;
|
|
32
35
|
export declare function validateModeration(v: unknown): ValidationResult;
|
|
33
36
|
export interface ModerationDetail {
|
|
37
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
34
38
|
actions: ComAtprotoAdminModerationAction.View[];
|
|
35
39
|
reports: ComAtprotoAdminModerationReport.View[];
|
|
36
|
-
takedownId?: number;
|
|
37
40
|
[k: string]: unknown;
|
|
38
41
|
}
|
|
39
42
|
export declare function isModerationDetail(v: unknown): v is ModerationDetail;
|
|
@@ -30,15 +30,15 @@ export interface Account {
|
|
|
30
30
|
export declare function isAccount(v: unknown): v is Account;
|
|
31
31
|
export declare function validateAccount(v: unknown): ValidationResult;
|
|
32
32
|
export interface Moderation {
|
|
33
|
-
|
|
33
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
34
34
|
[k: string]: unknown;
|
|
35
35
|
}
|
|
36
36
|
export declare function isModeration(v: unknown): v is Moderation;
|
|
37
37
|
export declare function validateModeration(v: unknown): ValidationResult;
|
|
38
38
|
export interface ModerationDetail {
|
|
39
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
39
40
|
actions: ComAtprotoAdminModerationAction.View[];
|
|
40
41
|
reports: ComAtprotoAdminModerationReport.View[];
|
|
41
|
-
takedownId?: number;
|
|
42
42
|
[k: string]: unknown;
|
|
43
43
|
}
|
|
44
44
|
export declare function isModerationDetail(v: unknown): v is ModerationDetail;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
2
|
import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
|
|
3
3
|
import * as ComAtprotoRepoRecordRef from '../repo/recordRef';
|
|
4
4
|
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
@@ -10,6 +10,7 @@ export interface InputSchema {
|
|
|
10
10
|
$type: string;
|
|
11
11
|
[k: string]: unknown;
|
|
12
12
|
};
|
|
13
|
+
subjectBlobCids?: string[];
|
|
13
14
|
reason: string;
|
|
14
15
|
createdBy: string;
|
|
15
16
|
[k: string]: unknown;
|
|
@@ -25,4 +26,7 @@ export interface Response {
|
|
|
25
26
|
headers: Headers;
|
|
26
27
|
data: OutputSchema;
|
|
27
28
|
}
|
|
29
|
+
export declare class SubjectHasActionError extends XRPCError {
|
|
30
|
+
constructor(src: XRPCError);
|
|
31
|
+
}
|
|
28
32
|
export declare function toKnownErr(e: any): any;
|
package/dist/index.d.ts
CHANGED