@atproto/api 0.2.10 → 0.3.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 +2 -2
- package/dist/client/index.d.ts +37 -0
- package/dist/client/lexicons.d.ts +199 -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/embed/record.d.ts +7 -1
- package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +9 -2
- package/dist/client/types/app/bsky/feed/generator.d.ts +12 -0
- package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +7 -1
- 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/getPostThread.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/block.d.ts +8 -0
- package/dist/client/types/app/bsky/graph/getBlocks.d.ts +21 -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 +605 -235
- 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 +118 -0
- package/src/client/lexicons.ts +215 -0
- package/src/client/types/app/bsky/actor/defs.ts +2 -0
- package/src/client/types/app/bsky/embed/record.ts +22 -1
- package/src/client/types/app/bsky/feed/defs.ts +20 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +14 -0
- package/src/client/types/app/bsky/feed/getPostThread.ts +1 -0
- package/src/client/types/app/bsky/graph/block.ts +26 -0
- package/src/client/types/app/bsky/graph/getBlocks.ts +38 -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/index.ts
CHANGED
|
@@ -8,7 +8,9 @@ import {
|
|
|
8
8
|
import { schemas } from './lexicons'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
10
|
import * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
|
|
11
|
+
import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
|
|
11
12
|
import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
|
|
13
|
+
import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
|
|
12
14
|
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
13
15
|
import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
|
|
14
16
|
import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
|
|
@@ -36,6 +38,7 @@ import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRe
|
|
|
36
38
|
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
37
39
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
38
40
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
41
|
+
import * as ComAtprotoRepoRebaseRepo from './types/com/atproto/repo/rebaseRepo'
|
|
39
42
|
import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
|
|
40
43
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
41
44
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
@@ -88,7 +91,9 @@ import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
|
|
|
88
91
|
import * as AppBskyFeedLike from './types/app/bsky/feed/like'
|
|
89
92
|
import * as AppBskyFeedPost from './types/app/bsky/feed/post'
|
|
90
93
|
import * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
|
|
94
|
+
import * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
91
95
|
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
96
|
+
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
92
97
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
93
98
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
94
99
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
@@ -101,7 +106,9 @@ import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
|
|
|
101
106
|
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
|
|
102
107
|
|
|
103
108
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
|
|
109
|
+
export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
|
|
104
110
|
export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
|
|
111
|
+
export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
|
|
105
112
|
export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
106
113
|
export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
|
|
107
114
|
export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
|
|
@@ -129,6 +136,7 @@ export * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRe
|
|
|
129
136
|
export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
130
137
|
export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
131
138
|
export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
139
|
+
export * as ComAtprotoRepoRebaseRepo from './types/com/atproto/repo/rebaseRepo'
|
|
132
140
|
export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
|
|
133
141
|
export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
134
142
|
export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
@@ -181,7 +189,9 @@ export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
|
|
|
181
189
|
export * as AppBskyFeedLike from './types/app/bsky/feed/like'
|
|
182
190
|
export * as AppBskyFeedPost from './types/app/bsky/feed/post'
|
|
183
191
|
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
|
|
192
|
+
export * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
184
193
|
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
194
|
+
export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
185
195
|
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
186
196
|
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
187
197
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
@@ -197,6 +207,7 @@ export const COM_ATPROTO_ADMIN = {
|
|
|
197
207
|
DefsTakedown: 'com.atproto.admin.defs#takedown',
|
|
198
208
|
DefsFlag: 'com.atproto.admin.defs#flag',
|
|
199
209
|
DefsAcknowledge: 'com.atproto.admin.defs#acknowledge',
|
|
210
|
+
DefsEscalate: 'com.atproto.admin.defs#escalate',
|
|
200
211
|
}
|
|
201
212
|
export const COM_ATPROTO_MODERATION = {
|
|
202
213
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
@@ -276,6 +287,17 @@ export class AdminNS {
|
|
|
276
287
|
this._service = service
|
|
277
288
|
}
|
|
278
289
|
|
|
290
|
+
disableAccountInvites(
|
|
291
|
+
data?: ComAtprotoAdminDisableAccountInvites.InputSchema,
|
|
292
|
+
opts?: ComAtprotoAdminDisableAccountInvites.CallOptions,
|
|
293
|
+
): Promise<ComAtprotoAdminDisableAccountInvites.Response> {
|
|
294
|
+
return this._service.xrpc
|
|
295
|
+
.call('com.atproto.admin.disableAccountInvites', opts?.qp, data, opts)
|
|
296
|
+
.catch((e) => {
|
|
297
|
+
throw ComAtprotoAdminDisableAccountInvites.toKnownErr(e)
|
|
298
|
+
})
|
|
299
|
+
}
|
|
300
|
+
|
|
279
301
|
disableInviteCodes(
|
|
280
302
|
data?: ComAtprotoAdminDisableInviteCodes.InputSchema,
|
|
281
303
|
opts?: ComAtprotoAdminDisableInviteCodes.CallOptions,
|
|
@@ -287,6 +309,17 @@ export class AdminNS {
|
|
|
287
309
|
})
|
|
288
310
|
}
|
|
289
311
|
|
|
312
|
+
enableAccountInvites(
|
|
313
|
+
data?: ComAtprotoAdminEnableAccountInvites.InputSchema,
|
|
314
|
+
opts?: ComAtprotoAdminEnableAccountInvites.CallOptions,
|
|
315
|
+
): Promise<ComAtprotoAdminEnableAccountInvites.Response> {
|
|
316
|
+
return this._service.xrpc
|
|
317
|
+
.call('com.atproto.admin.enableAccountInvites', opts?.qp, data, opts)
|
|
318
|
+
.catch((e) => {
|
|
319
|
+
throw ComAtprotoAdminEnableAccountInvites.toKnownErr(e)
|
|
320
|
+
})
|
|
321
|
+
}
|
|
322
|
+
|
|
290
323
|
getInviteCodes(
|
|
291
324
|
params?: ComAtprotoAdminGetInviteCodes.QueryParams,
|
|
292
325
|
opts?: ComAtprotoAdminGetInviteCodes.CallOptions,
|
|
@@ -583,6 +616,17 @@ export class RepoNS {
|
|
|
583
616
|
})
|
|
584
617
|
}
|
|
585
618
|
|
|
619
|
+
rebaseRepo(
|
|
620
|
+
data?: ComAtprotoRepoRebaseRepo.InputSchema,
|
|
621
|
+
opts?: ComAtprotoRepoRebaseRepo.CallOptions,
|
|
622
|
+
): Promise<ComAtprotoRepoRebaseRepo.Response> {
|
|
623
|
+
return this._service.xrpc
|
|
624
|
+
.call('com.atproto.repo.rebaseRepo', opts?.qp, data, opts)
|
|
625
|
+
.catch((e) => {
|
|
626
|
+
throw ComAtprotoRepoRebaseRepo.toKnownErr(e)
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
|
|
586
630
|
uploadBlob(
|
|
587
631
|
data?: ComAtprotoRepoUploadBlob.InputSchema,
|
|
588
632
|
opts?: ComAtprotoRepoUploadBlob.CallOptions,
|
|
@@ -1339,13 +1383,26 @@ export class RepostRecord {
|
|
|
1339
1383
|
|
|
1340
1384
|
export class GraphNS {
|
|
1341
1385
|
_service: AtpServiceClient
|
|
1386
|
+
block: BlockRecord
|
|
1342
1387
|
follow: FollowRecord
|
|
1343
1388
|
|
|
1344
1389
|
constructor(service: AtpServiceClient) {
|
|
1345
1390
|
this._service = service
|
|
1391
|
+
this.block = new BlockRecord(service)
|
|
1346
1392
|
this.follow = new FollowRecord(service)
|
|
1347
1393
|
}
|
|
1348
1394
|
|
|
1395
|
+
getBlocks(
|
|
1396
|
+
params?: AppBskyGraphGetBlocks.QueryParams,
|
|
1397
|
+
opts?: AppBskyGraphGetBlocks.CallOptions,
|
|
1398
|
+
): Promise<AppBskyGraphGetBlocks.Response> {
|
|
1399
|
+
return this._service.xrpc
|
|
1400
|
+
.call('app.bsky.graph.getBlocks', params, undefined, opts)
|
|
1401
|
+
.catch((e) => {
|
|
1402
|
+
throw AppBskyGraphGetBlocks.toKnownErr(e)
|
|
1403
|
+
})
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1349
1406
|
getFollowers(
|
|
1350
1407
|
params?: AppBskyGraphGetFollowers.QueryParams,
|
|
1351
1408
|
opts?: AppBskyGraphGetFollowers.CallOptions,
|
|
@@ -1402,6 +1459,67 @@ export class GraphNS {
|
|
|
1402
1459
|
}
|
|
1403
1460
|
}
|
|
1404
1461
|
|
|
1462
|
+
export class BlockRecord {
|
|
1463
|
+
_service: AtpServiceClient
|
|
1464
|
+
|
|
1465
|
+
constructor(service: AtpServiceClient) {
|
|
1466
|
+
this._service = service
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
async list(
|
|
1470
|
+
params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
|
|
1471
|
+
): Promise<{
|
|
1472
|
+
cursor?: string
|
|
1473
|
+
records: { uri: string; value: AppBskyGraphBlock.Record }[]
|
|
1474
|
+
}> {
|
|
1475
|
+
const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
|
|
1476
|
+
collection: 'app.bsky.graph.block',
|
|
1477
|
+
...params,
|
|
1478
|
+
})
|
|
1479
|
+
return res.data
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
async get(
|
|
1483
|
+
params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
|
|
1484
|
+
): Promise<{ uri: string; cid: string; value: AppBskyGraphBlock.Record }> {
|
|
1485
|
+
const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
|
|
1486
|
+
collection: 'app.bsky.graph.block',
|
|
1487
|
+
...params,
|
|
1488
|
+
})
|
|
1489
|
+
return res.data
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
async create(
|
|
1493
|
+
params: Omit<
|
|
1494
|
+
ComAtprotoRepoCreateRecord.InputSchema,
|
|
1495
|
+
'collection' | 'record'
|
|
1496
|
+
>,
|
|
1497
|
+
record: AppBskyGraphBlock.Record,
|
|
1498
|
+
headers?: Record<string, string>,
|
|
1499
|
+
): Promise<{ uri: string; cid: string }> {
|
|
1500
|
+
record.$type = 'app.bsky.graph.block'
|
|
1501
|
+
const res = await this._service.xrpc.call(
|
|
1502
|
+
'com.atproto.repo.createRecord',
|
|
1503
|
+
undefined,
|
|
1504
|
+
{ collection: 'app.bsky.graph.block', ...params, record },
|
|
1505
|
+
{ encoding: 'application/json', headers },
|
|
1506
|
+
)
|
|
1507
|
+
return res.data
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
async delete(
|
|
1511
|
+
params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
1512
|
+
headers?: Record<string, string>,
|
|
1513
|
+
): Promise<void> {
|
|
1514
|
+
await this._service.xrpc.call(
|
|
1515
|
+
'com.atproto.repo.deleteRecord',
|
|
1516
|
+
undefined,
|
|
1517
|
+
{ collection: 'app.bsky.graph.block', ...params },
|
|
1518
|
+
{ headers },
|
|
1519
|
+
)
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1405
1523
|
export class FollowRecord {
|
|
1406
1524
|
_service: AtpServiceClient
|
|
1407
1525
|
|
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,13 @@ export const schemaDict = {
|
|
|
3394
3488
|
muted: {
|
|
3395
3489
|
type: 'boolean',
|
|
3396
3490
|
},
|
|
3491
|
+
blockedBy: {
|
|
3492
|
+
type: 'boolean',
|
|
3493
|
+
},
|
|
3494
|
+
blocking: {
|
|
3495
|
+
type: 'string',
|
|
3496
|
+
format: 'at-uri',
|
|
3497
|
+
},
|
|
3397
3498
|
following: {
|
|
3398
3499
|
type: 'string',
|
|
3399
3500
|
format: 'at-uri',
|
|
@@ -3793,6 +3894,7 @@ export const schemaDict = {
|
|
|
3793
3894
|
refs: [
|
|
3794
3895
|
'lex:app.bsky.embed.record#viewRecord',
|
|
3795
3896
|
'lex:app.bsky.embed.record#viewNotFound',
|
|
3897
|
+
'lex:app.bsky.embed.record#viewBlocked',
|
|
3796
3898
|
],
|
|
3797
3899
|
},
|
|
3798
3900
|
},
|
|
@@ -3851,6 +3953,16 @@ export const schemaDict = {
|
|
|
3851
3953
|
},
|
|
3852
3954
|
},
|
|
3853
3955
|
},
|
|
3956
|
+
viewBlocked: {
|
|
3957
|
+
type: 'object',
|
|
3958
|
+
required: ['uri'],
|
|
3959
|
+
properties: {
|
|
3960
|
+
uri: {
|
|
3961
|
+
type: 'string',
|
|
3962
|
+
format: 'at-uri',
|
|
3963
|
+
},
|
|
3964
|
+
},
|
|
3965
|
+
},
|
|
3854
3966
|
},
|
|
3855
3967
|
},
|
|
3856
3968
|
AppBskyEmbedRecordWithMedia: {
|
|
@@ -4022,6 +4134,7 @@ export const schemaDict = {
|
|
|
4022
4134
|
refs: [
|
|
4023
4135
|
'lex:app.bsky.feed.defs#threadViewPost',
|
|
4024
4136
|
'lex:app.bsky.feed.defs#notFoundPost',
|
|
4137
|
+
'lex:app.bsky.feed.defs#blockedPost',
|
|
4025
4138
|
],
|
|
4026
4139
|
},
|
|
4027
4140
|
replies: {
|
|
@@ -4031,6 +4144,7 @@ export const schemaDict = {
|
|
|
4031
4144
|
refs: [
|
|
4032
4145
|
'lex:app.bsky.feed.defs#threadViewPost',
|
|
4033
4146
|
'lex:app.bsky.feed.defs#notFoundPost',
|
|
4147
|
+
'lex:app.bsky.feed.defs#blockedPost',
|
|
4034
4148
|
],
|
|
4035
4149
|
},
|
|
4036
4150
|
},
|
|
@@ -4050,6 +4164,20 @@ export const schemaDict = {
|
|
|
4050
4164
|
},
|
|
4051
4165
|
},
|
|
4052
4166
|
},
|
|
4167
|
+
blockedPost: {
|
|
4168
|
+
type: 'object',
|
|
4169
|
+
required: ['uri', 'blocked'],
|
|
4170
|
+
properties: {
|
|
4171
|
+
uri: {
|
|
4172
|
+
type: 'string',
|
|
4173
|
+
format: 'at-uri',
|
|
4174
|
+
},
|
|
4175
|
+
blocked: {
|
|
4176
|
+
type: 'boolean',
|
|
4177
|
+
const: true,
|
|
4178
|
+
},
|
|
4179
|
+
},
|
|
4180
|
+
},
|
|
4053
4181
|
},
|
|
4054
4182
|
},
|
|
4055
4183
|
AppBskyFeedGetAuthorFeed: {
|
|
@@ -4097,6 +4225,14 @@ export const schemaDict = {
|
|
|
4097
4225
|
},
|
|
4098
4226
|
},
|
|
4099
4227
|
},
|
|
4228
|
+
errors: [
|
|
4229
|
+
{
|
|
4230
|
+
name: 'BlockedActor',
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
name: 'BlockedByActor',
|
|
4234
|
+
},
|
|
4235
|
+
],
|
|
4100
4236
|
},
|
|
4101
4237
|
},
|
|
4102
4238
|
},
|
|
@@ -4207,6 +4343,7 @@ export const schemaDict = {
|
|
|
4207
4343
|
refs: [
|
|
4208
4344
|
'lex:app.bsky.feed.defs#threadViewPost',
|
|
4209
4345
|
'lex:app.bsky.feed.defs#notFoundPost',
|
|
4346
|
+
'lex:app.bsky.feed.defs#blockedPost',
|
|
4210
4347
|
],
|
|
4211
4348
|
},
|
|
4212
4349
|
},
|
|
@@ -4514,6 +4651,31 @@ export const schemaDict = {
|
|
|
4514
4651
|
},
|
|
4515
4652
|
},
|
|
4516
4653
|
},
|
|
4654
|
+
AppBskyGraphBlock: {
|
|
4655
|
+
lexicon: 1,
|
|
4656
|
+
id: 'app.bsky.graph.block',
|
|
4657
|
+
defs: {
|
|
4658
|
+
main: {
|
|
4659
|
+
type: 'record',
|
|
4660
|
+
description: 'A block.',
|
|
4661
|
+
key: 'tid',
|
|
4662
|
+
record: {
|
|
4663
|
+
type: 'object',
|
|
4664
|
+
required: ['subject', 'createdAt'],
|
|
4665
|
+
properties: {
|
|
4666
|
+
subject: {
|
|
4667
|
+
type: 'string',
|
|
4668
|
+
format: 'did',
|
|
4669
|
+
},
|
|
4670
|
+
createdAt: {
|
|
4671
|
+
type: 'string',
|
|
4672
|
+
format: 'datetime',
|
|
4673
|
+
},
|
|
4674
|
+
},
|
|
4675
|
+
},
|
|
4676
|
+
},
|
|
4677
|
+
},
|
|
4678
|
+
},
|
|
4517
4679
|
AppBskyGraphFollow: {
|
|
4518
4680
|
lexicon: 1,
|
|
4519
4681
|
id: 'app.bsky.graph.follow',
|
|
@@ -4539,6 +4701,49 @@ export const schemaDict = {
|
|
|
4539
4701
|
},
|
|
4540
4702
|
},
|
|
4541
4703
|
},
|
|
4704
|
+
AppBskyGraphGetBlocks: {
|
|
4705
|
+
lexicon: 1,
|
|
4706
|
+
id: 'app.bsky.graph.getBlocks',
|
|
4707
|
+
defs: {
|
|
4708
|
+
main: {
|
|
4709
|
+
type: 'query',
|
|
4710
|
+
description: "Who is the requester's account blocking?",
|
|
4711
|
+
parameters: {
|
|
4712
|
+
type: 'params',
|
|
4713
|
+
properties: {
|
|
4714
|
+
limit: {
|
|
4715
|
+
type: 'integer',
|
|
4716
|
+
minimum: 1,
|
|
4717
|
+
maximum: 100,
|
|
4718
|
+
default: 50,
|
|
4719
|
+
},
|
|
4720
|
+
cursor: {
|
|
4721
|
+
type: 'string',
|
|
4722
|
+
},
|
|
4723
|
+
},
|
|
4724
|
+
},
|
|
4725
|
+
output: {
|
|
4726
|
+
encoding: 'application/json',
|
|
4727
|
+
schema: {
|
|
4728
|
+
type: 'object',
|
|
4729
|
+
required: ['blocks'],
|
|
4730
|
+
properties: {
|
|
4731
|
+
cursor: {
|
|
4732
|
+
type: 'string',
|
|
4733
|
+
},
|
|
4734
|
+
blocks: {
|
|
4735
|
+
type: 'array',
|
|
4736
|
+
items: {
|
|
4737
|
+
type: 'ref',
|
|
4738
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
4739
|
+
},
|
|
4740
|
+
},
|
|
4741
|
+
},
|
|
4742
|
+
},
|
|
4743
|
+
},
|
|
4744
|
+
},
|
|
4745
|
+
},
|
|
4746
|
+
},
|
|
4542
4747
|
AppBskyGraphGetFollowers: {
|
|
4543
4748
|
lexicon: 1,
|
|
4544
4749
|
id: 'app.bsky.graph.getFollowers',
|
|
@@ -4965,6 +5170,10 @@ export const schemaDict = {
|
|
|
4965
5170
|
parameters: {
|
|
4966
5171
|
type: 'params',
|
|
4967
5172
|
properties: {
|
|
5173
|
+
includeNsfw: {
|
|
5174
|
+
type: 'boolean',
|
|
5175
|
+
default: false,
|
|
5176
|
+
},
|
|
4968
5177
|
limit: {
|
|
4969
5178
|
type: 'integer',
|
|
4970
5179
|
minimum: 1,
|
|
@@ -5003,7 +5212,10 @@ export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
|
|
|
5003
5212
|
export const lexicons: Lexicons = new Lexicons(schemas)
|
|
5004
5213
|
export const ids = {
|
|
5005
5214
|
ComAtprotoAdminDefs: 'com.atproto.admin.defs',
|
|
5215
|
+
ComAtprotoAdminDisableAccountInvites:
|
|
5216
|
+
'com.atproto.admin.disableAccountInvites',
|
|
5006
5217
|
ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
|
|
5218
|
+
ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
|
|
5007
5219
|
ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
|
|
5008
5220
|
ComAtprotoAdminGetModerationAction: 'com.atproto.admin.getModerationAction',
|
|
5009
5221
|
ComAtprotoAdminGetModerationActions: 'com.atproto.admin.getModerationActions',
|
|
@@ -5033,6 +5245,7 @@ export const ids = {
|
|
|
5033
5245
|
ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
|
|
5034
5246
|
ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords',
|
|
5035
5247
|
ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',
|
|
5248
|
+
ComAtprotoRepoRebaseRepo: 'com.atproto.repo.rebaseRepo',
|
|
5036
5249
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
5037
5250
|
ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob',
|
|
5038
5251
|
ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount',
|
|
@@ -5088,7 +5301,9 @@ export const ids = {
|
|
|
5088
5301
|
AppBskyFeedLike: 'app.bsky.feed.like',
|
|
5089
5302
|
AppBskyFeedPost: 'app.bsky.feed.post',
|
|
5090
5303
|
AppBskyFeedRepost: 'app.bsky.feed.repost',
|
|
5304
|
+
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
5091
5305
|
AppBskyGraphFollow: 'app.bsky.graph.follow',
|
|
5306
|
+
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
|
5092
5307
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
5093
5308
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
5094
5309
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
@@ -31,7 +31,11 @@ export function validateMain(v: unknown): ValidationResult {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export interface View {
|
|
34
|
-
record:
|
|
34
|
+
record:
|
|
35
|
+
| ViewRecord
|
|
36
|
+
| ViewNotFound
|
|
37
|
+
| ViewBlocked
|
|
38
|
+
| { $type: string; [k: string]: unknown }
|
|
35
39
|
[k: string]: unknown
|
|
36
40
|
}
|
|
37
41
|
|
|
@@ -90,3 +94,20 @@ export function isViewNotFound(v: unknown): v is ViewNotFound {
|
|
|
90
94
|
export function validateViewNotFound(v: unknown): ValidationResult {
|
|
91
95
|
return lexicons.validate('app.bsky.embed.record#viewNotFound', v)
|
|
92
96
|
}
|
|
97
|
+
|
|
98
|
+
export interface ViewBlocked {
|
|
99
|
+
uri: string
|
|
100
|
+
[k: string]: unknown
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function isViewBlocked(v: unknown): v is ViewBlocked {
|
|
104
|
+
return (
|
|
105
|
+
isObj(v) &&
|
|
106
|
+
hasProp(v, '$type') &&
|
|
107
|
+
v.$type === 'app.bsky.embed.record#viewBlocked'
|
|
108
|
+
)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function validateViewBlocked(v: unknown): ValidationResult {
|
|
112
|
+
return lexicons.validate('app.bsky.embed.record#viewBlocked', v)
|
|
113
|
+
}
|
|
@@ -118,10 +118,12 @@ export interface ThreadViewPost {
|
|
|
118
118
|
parent?:
|
|
119
119
|
| ThreadViewPost
|
|
120
120
|
| NotFoundPost
|
|
121
|
+
| BlockedPost
|
|
121
122
|
| { $type: string; [k: string]: unknown }
|
|
122
123
|
replies?: (
|
|
123
124
|
| ThreadViewPost
|
|
124
125
|
| NotFoundPost
|
|
126
|
+
| BlockedPost
|
|
125
127
|
| { $type: string; [k: string]: unknown }
|
|
126
128
|
)[]
|
|
127
129
|
[k: string]: unknown
|
|
@@ -156,3 +158,21 @@ export function isNotFoundPost(v: unknown): v is NotFoundPost {
|
|
|
156
158
|
export function validateNotFoundPost(v: unknown): ValidationResult {
|
|
157
159
|
return lexicons.validate('app.bsky.feed.defs#notFoundPost', v)
|
|
158
160
|
}
|
|
161
|
+
|
|
162
|
+
export interface BlockedPost {
|
|
163
|
+
uri: string
|
|
164
|
+
blocked: true
|
|
165
|
+
[k: string]: unknown
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function isBlockedPost(v: unknown): v is BlockedPost {
|
|
169
|
+
return (
|
|
170
|
+
isObj(v) &&
|
|
171
|
+
hasProp(v, '$type') &&
|
|
172
|
+
v.$type === 'app.bsky.feed.defs#blockedPost'
|
|
173
|
+
)
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function validateBlockedPost(v: unknown): ValidationResult {
|
|
177
|
+
return lexicons.validate('app.bsky.feed.defs#blockedPost', v)
|
|
178
|
+
}
|
|
@@ -32,8 +32,22 @@ export interface Response {
|
|
|
32
32
|
data: OutputSchema
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
export class BlockedActorError extends XRPCError {
|
|
36
|
+
constructor(src: XRPCError) {
|
|
37
|
+
super(src.status, src.error, src.message)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class BlockedByActorError extends XRPCError {
|
|
42
|
+
constructor(src: XRPCError) {
|
|
43
|
+
super(src.status, src.error, src.message)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
35
47
|
export function toKnownErr(e: any) {
|
|
36
48
|
if (e instanceof XRPCError) {
|
|
49
|
+
if (e.error === 'BlockedActor') return new BlockedActorError(e)
|
|
50
|
+
if (e.error === 'BlockedByActor') return new BlockedByActorError(e)
|
|
37
51
|
}
|
|
38
52
|
return e
|
|
39
53
|
}
|