@atproto/api 0.2.11 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/client/index.d.ts +77 -0
- package/dist/client/lexicons.d.ts +480 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +10 -3
- package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/generator.d.ts +13 -0
- package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
- package/dist/client/types/app/bsky/feed/getFeed.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/defs.d.ts +42 -0
- package/dist/client/types/app/bsky/graph/getList.d.ts +23 -0
- package/dist/client/types/app/bsky/graph/getListMutes.d.ts +21 -0
- package/dist/client/types/app/bsky/graph/getLists.d.ts +22 -0
- package/dist/client/types/app/bsky/graph/list.d.ts +14 -0
- package/dist/client/types/app/bsky/graph/listitem.d.ts +9 -0
- package/dist/client/types/app/bsky/graph/muteActorList.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmuteActorList.d.ts +17 -0
- package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +4 -1
- package/dist/client/types/com/atproto/admin/disableAccountInvites.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/enableAccountInvites.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
- package/dist/client/types/com/atproto/repo/importRepo.d.ts +19 -0
- package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +21 -0
- package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
- package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
- package/dist/index.js +1997 -561
- package/dist/index.js.map +4 -4
- package/dist/src/client/index.d.ts +462 -0
- package/dist/src/client/lexicons.d.ts +2910 -0
- package/dist/src/client/schemas.d.ts +17 -0
- package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
- package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
- package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
- package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
- package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
- package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
- package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
- package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
- package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
- package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
- package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
- package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
- package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
- package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
- package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
- package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
- package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
- package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
- package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
- package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
- package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/client/types/app/bsky/like.d.ts +10 -0
- package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
- package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
- package/dist/src/client/types/app/bsky/post.d.ts +23 -0
- package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
- package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
- package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
- package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
- package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
- package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
- package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
- package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
- package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
- package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
- package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
- package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
- package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
- package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
- package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
- package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
- package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
- package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
- package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
- package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
- package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
- package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
- package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
- package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
- package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
- package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
- package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
- package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
- package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/schemas.d.ts +19 -0
- package/dist/src/session.d.ts +42 -0
- package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
- package/dist/src/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
- package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/types/app/bsky/like.d.ts +10 -0
- package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/types/app/bsky/post.d.ts +23 -0
- package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
- package/dist/src/types/app/bsky/profile.d.ts +11 -0
- package/dist/src/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
- package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
- package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
- package/dist/src/types/com/atproto/createSession.d.ts +23 -0
- package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
- package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
- package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
- package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
- package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
- package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
- package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
- package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
- package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
- package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
- package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
- package/dist/src/types/todo/adx/createSession.d.ts +22 -0
- package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
- package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
- package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
- package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
- package/dist/src/types/todo/adx/getSession.d.ts +17 -0
- package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
- package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
- package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
- package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
- package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
- package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
- package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
- package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
- package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
- package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
- package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
- package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
- package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
- package/dist/src/types/todo/social/badge.d.ts +23 -0
- package/dist/src/types/todo/social/follow.d.ts +5 -0
- package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
- package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
- package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
- package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
- package/dist/src/types/todo/social/getProfile.d.ts +40 -0
- package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
- package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
- package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
- package/dist/src/types/todo/social/like.d.ts +5 -0
- package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
- package/dist/src/types/todo/social/post.d.ts +18 -0
- package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
- package/dist/src/types/todo/social/profile.d.ts +10 -0
- package/dist/src/types/todo/social/repost.d.ts +5 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +6 -1
- package/src/client/index.ts +240 -0
- package/src/client/lexicons.ts +488 -0
- package/src/client/types/app/bsky/actor/defs.ts +2 -0
- package/src/client/types/app/bsky/graph/defs.ts +95 -0
- package/src/client/types/app/bsky/graph/getList.ts +40 -0
- package/src/client/types/app/bsky/graph/getListMutes.ts +38 -0
- package/src/client/types/app/bsky/graph/getLists.ts +39 -0
- package/src/client/types/app/bsky/graph/list.ts +32 -0
- package/src/client/types/app/bsky/graph/listitem.ts +27 -0
- package/src/client/types/app/bsky/graph/muteActorList.ts +32 -0
- package/src/client/types/app/bsky/graph/unmuteActorList.ts +32 -0
- package/src/client/types/app/bsky/unspecced/getPopular.ts +1 -0
- package/src/client/types/com/atproto/admin/defs.ts +5 -0
- package/src/client/types/com/atproto/admin/disableAccountInvites.ts +32 -0
- package/src/client/types/com/atproto/admin/enableAccountInvites.ts +32 -0
- package/src/client/types/com/atproto/repo/rebaseRepo.ts +42 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/sanitize.d.ts +0 -4
package/src/client/lexicons.ts
CHANGED
|
@@ -182,6 +182,7 @@ export const schemaDict = {
|
|
|
182
182
|
'lex:com.atproto.admin.defs#takedown',
|
|
183
183
|
'lex:com.atproto.admin.defs#flag',
|
|
184
184
|
'lex:com.atproto.admin.defs#acknowledge',
|
|
185
|
+
'lex:com.atproto.admin.defs#escalate',
|
|
185
186
|
],
|
|
186
187
|
},
|
|
187
188
|
takedown: {
|
|
@@ -199,6 +200,11 @@ export const schemaDict = {
|
|
|
199
200
|
description:
|
|
200
201
|
'Moderation action type: Acknowledge. Indicates that the content was reviewed and not considered to violate PDS rules.',
|
|
201
202
|
},
|
|
203
|
+
escalate: {
|
|
204
|
+
type: 'token',
|
|
205
|
+
description:
|
|
206
|
+
'Moderation action type: Escalate. Indicates that the content has been flagged for additional review.',
|
|
207
|
+
},
|
|
202
208
|
reportView: {
|
|
203
209
|
type: 'object',
|
|
204
210
|
required: [
|
|
@@ -327,6 +333,9 @@ export const schemaDict = {
|
|
|
327
333
|
type: 'ref',
|
|
328
334
|
ref: 'lex:com.atproto.server.defs#inviteCode',
|
|
329
335
|
},
|
|
336
|
+
invitesDisabled: {
|
|
337
|
+
type: 'boolean',
|
|
338
|
+
},
|
|
330
339
|
},
|
|
331
340
|
},
|
|
332
341
|
repoViewDetail: {
|
|
@@ -382,6 +391,9 @@ export const schemaDict = {
|
|
|
382
391
|
ref: 'lex:com.atproto.server.defs#inviteCode',
|
|
383
392
|
},
|
|
384
393
|
},
|
|
394
|
+
invitesDisabled: {
|
|
395
|
+
type: 'boolean',
|
|
396
|
+
},
|
|
385
397
|
},
|
|
386
398
|
},
|
|
387
399
|
repoRef: {
|
|
@@ -583,6 +595,30 @@ export const schemaDict = {
|
|
|
583
595
|
},
|
|
584
596
|
},
|
|
585
597
|
},
|
|
598
|
+
ComAtprotoAdminDisableAccountInvites: {
|
|
599
|
+
lexicon: 1,
|
|
600
|
+
id: 'com.atproto.admin.disableAccountInvites',
|
|
601
|
+
defs: {
|
|
602
|
+
main: {
|
|
603
|
+
type: 'procedure',
|
|
604
|
+
description:
|
|
605
|
+
'Disable an account from receiving new invite codes, but does not invalidate existing codes',
|
|
606
|
+
input: {
|
|
607
|
+
encoding: 'application/json',
|
|
608
|
+
schema: {
|
|
609
|
+
type: 'object',
|
|
610
|
+
required: ['account'],
|
|
611
|
+
properties: {
|
|
612
|
+
account: {
|
|
613
|
+
type: 'string',
|
|
614
|
+
format: 'did',
|
|
615
|
+
},
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
},
|
|
586
622
|
ComAtprotoAdminDisableInviteCodes: {
|
|
587
623
|
lexicon: 1,
|
|
588
624
|
id: 'com.atproto.admin.disableInviteCodes',
|
|
@@ -614,6 +650,29 @@ export const schemaDict = {
|
|
|
614
650
|
},
|
|
615
651
|
},
|
|
616
652
|
},
|
|
653
|
+
ComAtprotoAdminEnableAccountInvites: {
|
|
654
|
+
lexicon: 1,
|
|
655
|
+
id: 'com.atproto.admin.enableAccountInvites',
|
|
656
|
+
defs: {
|
|
657
|
+
main: {
|
|
658
|
+
type: 'procedure',
|
|
659
|
+
description: 'Re-enable an accounts ability to receive invite codes',
|
|
660
|
+
input: {
|
|
661
|
+
encoding: 'application/json',
|
|
662
|
+
schema: {
|
|
663
|
+
type: 'object',
|
|
664
|
+
required: ['account'],
|
|
665
|
+
properties: {
|
|
666
|
+
account: {
|
|
667
|
+
type: 'string',
|
|
668
|
+
format: 'did',
|
|
669
|
+
},
|
|
670
|
+
},
|
|
671
|
+
},
|
|
672
|
+
},
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
},
|
|
617
676
|
ComAtprotoAdminGetInviteCodes: {
|
|
618
677
|
lexicon: 1,
|
|
619
678
|
id: 'com.atproto.admin.getInviteCodes',
|
|
@@ -1953,6 +2012,41 @@ export const schemaDict = {
|
|
|
1953
2012
|
},
|
|
1954
2013
|
},
|
|
1955
2014
|
},
|
|
2015
|
+
ComAtprotoRepoRebaseRepo: {
|
|
2016
|
+
lexicon: 1,
|
|
2017
|
+
id: 'com.atproto.repo.rebaseRepo',
|
|
2018
|
+
defs: {
|
|
2019
|
+
main: {
|
|
2020
|
+
type: 'procedure',
|
|
2021
|
+
description: 'Simple rebase of repo that deletes history',
|
|
2022
|
+
input: {
|
|
2023
|
+
encoding: 'application/json',
|
|
2024
|
+
schema: {
|
|
2025
|
+
type: 'object',
|
|
2026
|
+
required: ['repo'],
|
|
2027
|
+
properties: {
|
|
2028
|
+
repo: {
|
|
2029
|
+
type: 'string',
|
|
2030
|
+
format: 'at-identifier',
|
|
2031
|
+
description: 'The handle or DID of the repo.',
|
|
2032
|
+
},
|
|
2033
|
+
swapCommit: {
|
|
2034
|
+
type: 'string',
|
|
2035
|
+
format: 'cid',
|
|
2036
|
+
description:
|
|
2037
|
+
'Compare and swap with the previous commit by cid.',
|
|
2038
|
+
},
|
|
2039
|
+
},
|
|
2040
|
+
},
|
|
2041
|
+
},
|
|
2042
|
+
errors: [
|
|
2043
|
+
{
|
|
2044
|
+
name: 'InvalidSwap',
|
|
2045
|
+
},
|
|
2046
|
+
],
|
|
2047
|
+
},
|
|
2048
|
+
},
|
|
2049
|
+
},
|
|
1956
2050
|
ComAtprotoRepoStrongRef: {
|
|
1957
2051
|
lexicon: 1,
|
|
1958
2052
|
id: 'com.atproto.repo.strongRef',
|
|
@@ -3394,6 +3488,10 @@ export const schemaDict = {
|
|
|
3394
3488
|
muted: {
|
|
3395
3489
|
type: 'boolean',
|
|
3396
3490
|
},
|
|
3491
|
+
mutedByList: {
|
|
3492
|
+
type: 'ref',
|
|
3493
|
+
ref: 'lex:app.bsky.graph.defs#listViewBasic',
|
|
3494
|
+
},
|
|
3397
3495
|
blockedBy: {
|
|
3398
3496
|
type: 'boolean',
|
|
3399
3497
|
},
|
|
@@ -4582,6 +4680,115 @@ export const schemaDict = {
|
|
|
4582
4680
|
},
|
|
4583
4681
|
},
|
|
4584
4682
|
},
|
|
4683
|
+
AppBskyGraphDefs: {
|
|
4684
|
+
lexicon: 1,
|
|
4685
|
+
id: 'app.bsky.graph.defs',
|
|
4686
|
+
defs: {
|
|
4687
|
+
listViewBasic: {
|
|
4688
|
+
type: 'object',
|
|
4689
|
+
required: ['uri', 'creator', 'name', 'purpose'],
|
|
4690
|
+
properties: {
|
|
4691
|
+
uri: {
|
|
4692
|
+
type: 'string',
|
|
4693
|
+
format: 'at-uri',
|
|
4694
|
+
},
|
|
4695
|
+
name: {
|
|
4696
|
+
type: 'string',
|
|
4697
|
+
maxLength: 64,
|
|
4698
|
+
minLength: 1,
|
|
4699
|
+
},
|
|
4700
|
+
purpose: {
|
|
4701
|
+
type: 'ref',
|
|
4702
|
+
ref: 'lex:app.bsky.graph.defs#listPurpose',
|
|
4703
|
+
},
|
|
4704
|
+
avatar: {
|
|
4705
|
+
type: 'string',
|
|
4706
|
+
},
|
|
4707
|
+
viewer: {
|
|
4708
|
+
type: 'ref',
|
|
4709
|
+
ref: 'lex:app.bsky.graph.defs#listViewerState',
|
|
4710
|
+
},
|
|
4711
|
+
indexedAt: {
|
|
4712
|
+
type: 'string',
|
|
4713
|
+
format: 'datetime',
|
|
4714
|
+
},
|
|
4715
|
+
},
|
|
4716
|
+
},
|
|
4717
|
+
listView: {
|
|
4718
|
+
type: 'object',
|
|
4719
|
+
required: ['uri', 'creator', 'name', 'purpose', 'indexedAt'],
|
|
4720
|
+
properties: {
|
|
4721
|
+
uri: {
|
|
4722
|
+
type: 'string',
|
|
4723
|
+
format: 'at-uri',
|
|
4724
|
+
},
|
|
4725
|
+
creator: {
|
|
4726
|
+
type: 'ref',
|
|
4727
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
4728
|
+
},
|
|
4729
|
+
name: {
|
|
4730
|
+
type: 'string',
|
|
4731
|
+
maxLength: 64,
|
|
4732
|
+
minLength: 1,
|
|
4733
|
+
},
|
|
4734
|
+
purpose: {
|
|
4735
|
+
type: 'ref',
|
|
4736
|
+
ref: 'lex:app.bsky.graph.defs#listPurpose',
|
|
4737
|
+
},
|
|
4738
|
+
description: {
|
|
4739
|
+
type: 'string',
|
|
4740
|
+
maxGraphemes: 300,
|
|
4741
|
+
maxLength: 3000,
|
|
4742
|
+
},
|
|
4743
|
+
descriptionFacets: {
|
|
4744
|
+
type: 'array',
|
|
4745
|
+
items: {
|
|
4746
|
+
type: 'ref',
|
|
4747
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
4748
|
+
},
|
|
4749
|
+
},
|
|
4750
|
+
avatar: {
|
|
4751
|
+
type: 'string',
|
|
4752
|
+
},
|
|
4753
|
+
viewer: {
|
|
4754
|
+
type: 'ref',
|
|
4755
|
+
ref: 'lex:app.bsky.graph.defs#listViewerState',
|
|
4756
|
+
},
|
|
4757
|
+
indexedAt: {
|
|
4758
|
+
type: 'string',
|
|
4759
|
+
format: 'datetime',
|
|
4760
|
+
},
|
|
4761
|
+
},
|
|
4762
|
+
},
|
|
4763
|
+
listItemView: {
|
|
4764
|
+
type: 'object',
|
|
4765
|
+
required: ['subject'],
|
|
4766
|
+
properties: {
|
|
4767
|
+
subject: {
|
|
4768
|
+
type: 'ref',
|
|
4769
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
4770
|
+
},
|
|
4771
|
+
},
|
|
4772
|
+
},
|
|
4773
|
+
listPurpose: {
|
|
4774
|
+
type: 'string',
|
|
4775
|
+
knownValues: ['app.bsky.graph.defs#modlist'],
|
|
4776
|
+
},
|
|
4777
|
+
modlist: {
|
|
4778
|
+
type: 'token',
|
|
4779
|
+
description:
|
|
4780
|
+
'A list of actors to apply an aggregate moderation action (mute/block) on',
|
|
4781
|
+
},
|
|
4782
|
+
listViewerState: {
|
|
4783
|
+
type: 'object',
|
|
4784
|
+
properties: {
|
|
4785
|
+
muted: {
|
|
4786
|
+
type: 'boolean',
|
|
4787
|
+
},
|
|
4788
|
+
},
|
|
4789
|
+
},
|
|
4790
|
+
},
|
|
4791
|
+
},
|
|
4585
4792
|
AppBskyGraphFollow: {
|
|
4586
4793
|
lexicon: 1,
|
|
4587
4794
|
id: 'app.bsky.graph.follow',
|
|
@@ -4754,6 +4961,149 @@ export const schemaDict = {
|
|
|
4754
4961
|
},
|
|
4755
4962
|
},
|
|
4756
4963
|
},
|
|
4964
|
+
AppBskyGraphGetList: {
|
|
4965
|
+
lexicon: 1,
|
|
4966
|
+
id: 'app.bsky.graph.getList',
|
|
4967
|
+
defs: {
|
|
4968
|
+
main: {
|
|
4969
|
+
type: 'query',
|
|
4970
|
+
description: 'Fetch a list of actors',
|
|
4971
|
+
parameters: {
|
|
4972
|
+
type: 'params',
|
|
4973
|
+
required: ['list'],
|
|
4974
|
+
properties: {
|
|
4975
|
+
list: {
|
|
4976
|
+
type: 'string',
|
|
4977
|
+
format: 'at-uri',
|
|
4978
|
+
},
|
|
4979
|
+
limit: {
|
|
4980
|
+
type: 'integer',
|
|
4981
|
+
minimum: 1,
|
|
4982
|
+
maximum: 100,
|
|
4983
|
+
default: 50,
|
|
4984
|
+
},
|
|
4985
|
+
cursor: {
|
|
4986
|
+
type: 'string',
|
|
4987
|
+
},
|
|
4988
|
+
},
|
|
4989
|
+
},
|
|
4990
|
+
output: {
|
|
4991
|
+
encoding: 'application/json',
|
|
4992
|
+
schema: {
|
|
4993
|
+
type: 'object',
|
|
4994
|
+
required: ['list', 'items'],
|
|
4995
|
+
properties: {
|
|
4996
|
+
cursor: {
|
|
4997
|
+
type: 'string',
|
|
4998
|
+
},
|
|
4999
|
+
list: {
|
|
5000
|
+
type: 'ref',
|
|
5001
|
+
ref: 'lex:app.bsky.graph.defs#listView',
|
|
5002
|
+
},
|
|
5003
|
+
items: {
|
|
5004
|
+
type: 'array',
|
|
5005
|
+
items: {
|
|
5006
|
+
type: 'ref',
|
|
5007
|
+
ref: 'lex:app.bsky.graph.defs#listItemView',
|
|
5008
|
+
},
|
|
5009
|
+
},
|
|
5010
|
+
},
|
|
5011
|
+
},
|
|
5012
|
+
},
|
|
5013
|
+
},
|
|
5014
|
+
},
|
|
5015
|
+
},
|
|
5016
|
+
AppBskyGraphGetListMutes: {
|
|
5017
|
+
lexicon: 1,
|
|
5018
|
+
id: 'app.bsky.graph.getListMutes',
|
|
5019
|
+
defs: {
|
|
5020
|
+
main: {
|
|
5021
|
+
type: 'query',
|
|
5022
|
+
description: "Which lists is the requester's account muting?",
|
|
5023
|
+
parameters: {
|
|
5024
|
+
type: 'params',
|
|
5025
|
+
properties: {
|
|
5026
|
+
limit: {
|
|
5027
|
+
type: 'integer',
|
|
5028
|
+
minimum: 1,
|
|
5029
|
+
maximum: 100,
|
|
5030
|
+
default: 50,
|
|
5031
|
+
},
|
|
5032
|
+
cursor: {
|
|
5033
|
+
type: 'string',
|
|
5034
|
+
},
|
|
5035
|
+
},
|
|
5036
|
+
},
|
|
5037
|
+
output: {
|
|
5038
|
+
encoding: 'application/json',
|
|
5039
|
+
schema: {
|
|
5040
|
+
type: 'object',
|
|
5041
|
+
required: ['lists'],
|
|
5042
|
+
properties: {
|
|
5043
|
+
cursor: {
|
|
5044
|
+
type: 'string',
|
|
5045
|
+
},
|
|
5046
|
+
lists: {
|
|
5047
|
+
type: 'array',
|
|
5048
|
+
items: {
|
|
5049
|
+
type: 'ref',
|
|
5050
|
+
ref: 'lex:app.bsky.graph.defs#listView',
|
|
5051
|
+
},
|
|
5052
|
+
},
|
|
5053
|
+
},
|
|
5054
|
+
},
|
|
5055
|
+
},
|
|
5056
|
+
},
|
|
5057
|
+
},
|
|
5058
|
+
},
|
|
5059
|
+
AppBskyGraphGetLists: {
|
|
5060
|
+
lexicon: 1,
|
|
5061
|
+
id: 'app.bsky.graph.getLists',
|
|
5062
|
+
defs: {
|
|
5063
|
+
main: {
|
|
5064
|
+
type: 'query',
|
|
5065
|
+
description: 'Fetch a list of lists that belong to an actor',
|
|
5066
|
+
parameters: {
|
|
5067
|
+
type: 'params',
|
|
5068
|
+
required: ['actor'],
|
|
5069
|
+
properties: {
|
|
5070
|
+
actor: {
|
|
5071
|
+
type: 'string',
|
|
5072
|
+
format: 'at-identifier',
|
|
5073
|
+
},
|
|
5074
|
+
limit: {
|
|
5075
|
+
type: 'integer',
|
|
5076
|
+
minimum: 1,
|
|
5077
|
+
maximum: 100,
|
|
5078
|
+
default: 50,
|
|
5079
|
+
},
|
|
5080
|
+
cursor: {
|
|
5081
|
+
type: 'string',
|
|
5082
|
+
},
|
|
5083
|
+
},
|
|
5084
|
+
},
|
|
5085
|
+
output: {
|
|
5086
|
+
encoding: 'application/json',
|
|
5087
|
+
schema: {
|
|
5088
|
+
type: 'object',
|
|
5089
|
+
required: ['lists'],
|
|
5090
|
+
properties: {
|
|
5091
|
+
cursor: {
|
|
5092
|
+
type: 'string',
|
|
5093
|
+
},
|
|
5094
|
+
lists: {
|
|
5095
|
+
type: 'array',
|
|
5096
|
+
items: {
|
|
5097
|
+
type: 'ref',
|
|
5098
|
+
ref: 'lex:app.bsky.graph.defs#listView',
|
|
5099
|
+
},
|
|
5100
|
+
},
|
|
5101
|
+
},
|
|
5102
|
+
},
|
|
5103
|
+
},
|
|
5104
|
+
},
|
|
5105
|
+
},
|
|
5106
|
+
},
|
|
4757
5107
|
AppBskyGraphGetMutes: {
|
|
4758
5108
|
lexicon: 1,
|
|
4759
5109
|
id: 'app.bsky.graph.getMutes',
|
|
@@ -4797,6 +5147,82 @@ export const schemaDict = {
|
|
|
4797
5147
|
},
|
|
4798
5148
|
},
|
|
4799
5149
|
},
|
|
5150
|
+
AppBskyGraphList: {
|
|
5151
|
+
lexicon: 1,
|
|
5152
|
+
id: 'app.bsky.graph.list',
|
|
5153
|
+
defs: {
|
|
5154
|
+
main: {
|
|
5155
|
+
type: 'record',
|
|
5156
|
+
description: 'A declaration of a list of actors.',
|
|
5157
|
+
key: 'tid',
|
|
5158
|
+
record: {
|
|
5159
|
+
type: 'object',
|
|
5160
|
+
required: ['name', 'purpose', 'createdAt'],
|
|
5161
|
+
properties: {
|
|
5162
|
+
purpose: {
|
|
5163
|
+
type: 'ref',
|
|
5164
|
+
ref: 'lex:app.bsky.graph.defs#listPurpose',
|
|
5165
|
+
},
|
|
5166
|
+
name: {
|
|
5167
|
+
type: 'string',
|
|
5168
|
+
maxLength: 64,
|
|
5169
|
+
minLength: 1,
|
|
5170
|
+
},
|
|
5171
|
+
description: {
|
|
5172
|
+
type: 'string',
|
|
5173
|
+
maxGraphemes: 300,
|
|
5174
|
+
maxLength: 3000,
|
|
5175
|
+
},
|
|
5176
|
+
descriptionFacets: {
|
|
5177
|
+
type: 'array',
|
|
5178
|
+
items: {
|
|
5179
|
+
type: 'ref',
|
|
5180
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
5181
|
+
},
|
|
5182
|
+
},
|
|
5183
|
+
avatar: {
|
|
5184
|
+
type: 'blob',
|
|
5185
|
+
accept: ['image/png', 'image/jpeg'],
|
|
5186
|
+
maxSize: 1000000,
|
|
5187
|
+
},
|
|
5188
|
+
createdAt: {
|
|
5189
|
+
type: 'string',
|
|
5190
|
+
format: 'datetime',
|
|
5191
|
+
},
|
|
5192
|
+
},
|
|
5193
|
+
},
|
|
5194
|
+
},
|
|
5195
|
+
},
|
|
5196
|
+
},
|
|
5197
|
+
AppBskyGraphListitem: {
|
|
5198
|
+
lexicon: 1,
|
|
5199
|
+
id: 'app.bsky.graph.listitem',
|
|
5200
|
+
defs: {
|
|
5201
|
+
main: {
|
|
5202
|
+
type: 'record',
|
|
5203
|
+
description: 'An item under a declared list of actors',
|
|
5204
|
+
key: 'tid',
|
|
5205
|
+
record: {
|
|
5206
|
+
type: 'object',
|
|
5207
|
+
required: ['subject', 'list', 'createdAt'],
|
|
5208
|
+
properties: {
|
|
5209
|
+
subject: {
|
|
5210
|
+
type: 'string',
|
|
5211
|
+
format: 'did',
|
|
5212
|
+
},
|
|
5213
|
+
list: {
|
|
5214
|
+
type: 'string',
|
|
5215
|
+
format: 'at-uri',
|
|
5216
|
+
},
|
|
5217
|
+
createdAt: {
|
|
5218
|
+
type: 'string',
|
|
5219
|
+
format: 'datetime',
|
|
5220
|
+
},
|
|
5221
|
+
},
|
|
5222
|
+
},
|
|
5223
|
+
},
|
|
5224
|
+
},
|
|
5225
|
+
},
|
|
4800
5226
|
AppBskyGraphMuteActor: {
|
|
4801
5227
|
lexicon: 1,
|
|
4802
5228
|
id: 'app.bsky.graph.muteActor',
|
|
@@ -4820,6 +5246,29 @@ export const schemaDict = {
|
|
|
4820
5246
|
},
|
|
4821
5247
|
},
|
|
4822
5248
|
},
|
|
5249
|
+
AppBskyGraphMuteActorList: {
|
|
5250
|
+
lexicon: 1,
|
|
5251
|
+
id: 'app.bsky.graph.muteActorList',
|
|
5252
|
+
defs: {
|
|
5253
|
+
main: {
|
|
5254
|
+
type: 'procedure',
|
|
5255
|
+
description: 'Mute a list of actors.',
|
|
5256
|
+
input: {
|
|
5257
|
+
encoding: 'application/json',
|
|
5258
|
+
schema: {
|
|
5259
|
+
type: 'object',
|
|
5260
|
+
required: ['list'],
|
|
5261
|
+
properties: {
|
|
5262
|
+
list: {
|
|
5263
|
+
type: 'string',
|
|
5264
|
+
format: 'at-uri',
|
|
5265
|
+
},
|
|
5266
|
+
},
|
|
5267
|
+
},
|
|
5268
|
+
},
|
|
5269
|
+
},
|
|
5270
|
+
},
|
|
5271
|
+
},
|
|
4823
5272
|
AppBskyGraphUnmuteActor: {
|
|
4824
5273
|
lexicon: 1,
|
|
4825
5274
|
id: 'app.bsky.graph.unmuteActor',
|
|
@@ -4843,6 +5292,29 @@ export const schemaDict = {
|
|
|
4843
5292
|
},
|
|
4844
5293
|
},
|
|
4845
5294
|
},
|
|
5295
|
+
AppBskyGraphUnmuteActorList: {
|
|
5296
|
+
lexicon: 1,
|
|
5297
|
+
id: 'app.bsky.graph.unmuteActorList',
|
|
5298
|
+
defs: {
|
|
5299
|
+
main: {
|
|
5300
|
+
type: 'procedure',
|
|
5301
|
+
description: 'Unmute a list of actors.',
|
|
5302
|
+
input: {
|
|
5303
|
+
encoding: 'application/json',
|
|
5304
|
+
schema: {
|
|
5305
|
+
type: 'object',
|
|
5306
|
+
required: ['list'],
|
|
5307
|
+
properties: {
|
|
5308
|
+
list: {
|
|
5309
|
+
type: 'string',
|
|
5310
|
+
format: 'at-uri',
|
|
5311
|
+
},
|
|
5312
|
+
},
|
|
5313
|
+
},
|
|
5314
|
+
},
|
|
5315
|
+
},
|
|
5316
|
+
},
|
|
5317
|
+
},
|
|
4846
5318
|
AppBskyNotificationGetUnreadCount: {
|
|
4847
5319
|
lexicon: 1,
|
|
4848
5320
|
id: 'app.bsky.notification.getUnreadCount',
|
|
@@ -5076,6 +5548,10 @@ export const schemaDict = {
|
|
|
5076
5548
|
parameters: {
|
|
5077
5549
|
type: 'params',
|
|
5078
5550
|
properties: {
|
|
5551
|
+
includeNsfw: {
|
|
5552
|
+
type: 'boolean',
|
|
5553
|
+
default: false,
|
|
5554
|
+
},
|
|
5079
5555
|
limit: {
|
|
5080
5556
|
type: 'integer',
|
|
5081
5557
|
minimum: 1,
|
|
@@ -5114,7 +5590,10 @@ export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
|
|
|
5114
5590
|
export const lexicons: Lexicons = new Lexicons(schemas)
|
|
5115
5591
|
export const ids = {
|
|
5116
5592
|
ComAtprotoAdminDefs: 'com.atproto.admin.defs',
|
|
5593
|
+
ComAtprotoAdminDisableAccountInvites:
|
|
5594
|
+
'com.atproto.admin.disableAccountInvites',
|
|
5117
5595
|
ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
|
|
5596
|
+
ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
|
|
5118
5597
|
ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
|
|
5119
5598
|
ComAtprotoAdminGetModerationAction: 'com.atproto.admin.getModerationAction',
|
|
5120
5599
|
ComAtprotoAdminGetModerationActions: 'com.atproto.admin.getModerationActions',
|
|
@@ -5144,6 +5623,7 @@ export const ids = {
|
|
|
5144
5623
|
ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
|
|
5145
5624
|
ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords',
|
|
5146
5625
|
ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',
|
|
5626
|
+
ComAtprotoRepoRebaseRepo: 'com.atproto.repo.rebaseRepo',
|
|
5147
5627
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
5148
5628
|
ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob',
|
|
5149
5629
|
ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount',
|
|
@@ -5200,13 +5680,21 @@ export const ids = {
|
|
|
5200
5680
|
AppBskyFeedPost: 'app.bsky.feed.post',
|
|
5201
5681
|
AppBskyFeedRepost: 'app.bsky.feed.repost',
|
|
5202
5682
|
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
5683
|
+
AppBskyGraphDefs: 'app.bsky.graph.defs',
|
|
5203
5684
|
AppBskyGraphFollow: 'app.bsky.graph.follow',
|
|
5204
5685
|
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
|
5205
5686
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
5206
5687
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
5688
|
+
AppBskyGraphGetList: 'app.bsky.graph.getList',
|
|
5689
|
+
AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes',
|
|
5690
|
+
AppBskyGraphGetLists: 'app.bsky.graph.getLists',
|
|
5207
5691
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
5692
|
+
AppBskyGraphList: 'app.bsky.graph.list',
|
|
5693
|
+
AppBskyGraphListitem: 'app.bsky.graph.listitem',
|
|
5208
5694
|
AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
|
|
5695
|
+
AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
|
|
5209
5696
|
AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
|
|
5697
|
+
AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
|
|
5210
5698
|
AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
|
|
5211
5699
|
AppBskyNotificationListNotifications:
|
|
5212
5700
|
'app.bsky.notification.listNotifications',
|
|
@@ -6,6 +6,7 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
9
|
+
import * as AppBskyGraphDefs from '../graph/defs'
|
|
9
10
|
|
|
10
11
|
export interface ProfileViewBasic {
|
|
11
12
|
did: string
|
|
@@ -83,6 +84,7 @@ export function validateProfileViewDetailed(v: unknown): ValidationResult {
|
|
|
83
84
|
|
|
84
85
|
export interface ViewerState {
|
|
85
86
|
muted?: boolean
|
|
87
|
+
mutedByList?: AppBskyGraphDefs.ListViewBasic
|
|
86
88
|
blockedBy?: boolean
|
|
87
89
|
blocking?: string
|
|
88
90
|
following?: string
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { isObj, hasProp } from '../../../../util'
|
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
|
7
|
+
import { CID } from 'multiformats/cid'
|
|
8
|
+
import * as AppBskyActorDefs from '../actor/defs'
|
|
9
|
+
import * as AppBskyRichtextFacet from '../richtext/facet'
|
|
10
|
+
|
|
11
|
+
export interface ListViewBasic {
|
|
12
|
+
uri: string
|
|
13
|
+
name: string
|
|
14
|
+
purpose: ListPurpose
|
|
15
|
+
avatar?: string
|
|
16
|
+
viewer?: ListViewerState
|
|
17
|
+
indexedAt?: string
|
|
18
|
+
[k: string]: unknown
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function isListViewBasic(v: unknown): v is ListViewBasic {
|
|
22
|
+
return (
|
|
23
|
+
isObj(v) &&
|
|
24
|
+
hasProp(v, '$type') &&
|
|
25
|
+
v.$type === 'app.bsky.graph.defs#listViewBasic'
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function validateListViewBasic(v: unknown): ValidationResult {
|
|
30
|
+
return lexicons.validate('app.bsky.graph.defs#listViewBasic', v)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ListView {
|
|
34
|
+
uri: string
|
|
35
|
+
creator: AppBskyActorDefs.ProfileView
|
|
36
|
+
name: string
|
|
37
|
+
purpose: ListPurpose
|
|
38
|
+
description?: string
|
|
39
|
+
descriptionFacets?: AppBskyRichtextFacet.Main[]
|
|
40
|
+
avatar?: string
|
|
41
|
+
viewer?: ListViewerState
|
|
42
|
+
indexedAt: string
|
|
43
|
+
[k: string]: unknown
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function isListView(v: unknown): v is ListView {
|
|
47
|
+
return (
|
|
48
|
+
isObj(v) &&
|
|
49
|
+
hasProp(v, '$type') &&
|
|
50
|
+
v.$type === 'app.bsky.graph.defs#listView'
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function validateListView(v: unknown): ValidationResult {
|
|
55
|
+
return lexicons.validate('app.bsky.graph.defs#listView', v)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface ListItemView {
|
|
59
|
+
subject: AppBskyActorDefs.ProfileView
|
|
60
|
+
[k: string]: unknown
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function isListItemView(v: unknown): v is ListItemView {
|
|
64
|
+
return (
|
|
65
|
+
isObj(v) &&
|
|
66
|
+
hasProp(v, '$type') &&
|
|
67
|
+
v.$type === 'app.bsky.graph.defs#listItemView'
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function validateListItemView(v: unknown): ValidationResult {
|
|
72
|
+
return lexicons.validate('app.bsky.graph.defs#listItemView', v)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {})
|
|
76
|
+
|
|
77
|
+
/** A list of actors to apply an aggregate moderation action (mute/block) on */
|
|
78
|
+
export const MODLIST = 'app.bsky.graph.defs#modlist'
|
|
79
|
+
|
|
80
|
+
export interface ListViewerState {
|
|
81
|
+
muted?: boolean
|
|
82
|
+
[k: string]: unknown
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function isListViewerState(v: unknown): v is ListViewerState {
|
|
86
|
+
return (
|
|
87
|
+
isObj(v) &&
|
|
88
|
+
hasProp(v, '$type') &&
|
|
89
|
+
v.$type === 'app.bsky.graph.defs#listViewerState'
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function validateListViewerState(v: unknown): ValidationResult {
|
|
94
|
+
return lexicons.validate('app.bsky.graph.defs#listViewerState', v)
|
|
95
|
+
}
|