@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/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'
|
|
@@ -89,13 +92,21 @@ 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'
|
|
91
94
|
import * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
95
|
+
import * as AppBskyGraphDefs from './types/app/bsky/graph/defs'
|
|
92
96
|
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
93
97
|
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
94
98
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
95
99
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
100
|
+
import * as AppBskyGraphGetList from './types/app/bsky/graph/getList'
|
|
101
|
+
import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
|
102
|
+
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists'
|
|
96
103
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
104
|
+
import * as AppBskyGraphList from './types/app/bsky/graph/list'
|
|
105
|
+
import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
97
106
|
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
107
|
+
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
98
108
|
import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
109
|
+
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
99
110
|
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount'
|
|
100
111
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
|
|
101
112
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
@@ -103,7 +114,9 @@ import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
|
|
|
103
114
|
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
|
|
104
115
|
|
|
105
116
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
|
|
117
|
+
export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
|
|
106
118
|
export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
|
|
119
|
+
export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
|
|
107
120
|
export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
108
121
|
export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
|
|
109
122
|
export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
|
|
@@ -131,6 +144,7 @@ export * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRe
|
|
|
131
144
|
export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
132
145
|
export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
133
146
|
export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
147
|
+
export * as ComAtprotoRepoRebaseRepo from './types/com/atproto/repo/rebaseRepo'
|
|
134
148
|
export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
|
|
135
149
|
export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
136
150
|
export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
@@ -184,13 +198,21 @@ export * as AppBskyFeedLike from './types/app/bsky/feed/like'
|
|
|
184
198
|
export * as AppBskyFeedPost from './types/app/bsky/feed/post'
|
|
185
199
|
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
|
|
186
200
|
export * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
201
|
+
export * as AppBskyGraphDefs from './types/app/bsky/graph/defs'
|
|
187
202
|
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
188
203
|
export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
189
204
|
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
190
205
|
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
206
|
+
export * as AppBskyGraphGetList from './types/app/bsky/graph/getList'
|
|
207
|
+
export * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
|
208
|
+
export * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists'
|
|
191
209
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
210
|
+
export * as AppBskyGraphList from './types/app/bsky/graph/list'
|
|
211
|
+
export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
192
212
|
export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
213
|
+
export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
193
214
|
export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
215
|
+
export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
194
216
|
export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount'
|
|
195
217
|
export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
|
|
196
218
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
@@ -201,6 +223,7 @@ export const COM_ATPROTO_ADMIN = {
|
|
|
201
223
|
DefsTakedown: 'com.atproto.admin.defs#takedown',
|
|
202
224
|
DefsFlag: 'com.atproto.admin.defs#flag',
|
|
203
225
|
DefsAcknowledge: 'com.atproto.admin.defs#acknowledge',
|
|
226
|
+
DefsEscalate: 'com.atproto.admin.defs#escalate',
|
|
204
227
|
}
|
|
205
228
|
export const COM_ATPROTO_MODERATION = {
|
|
206
229
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
@@ -210,6 +233,9 @@ export const COM_ATPROTO_MODERATION = {
|
|
|
210
233
|
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
211
234
|
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
212
235
|
}
|
|
236
|
+
export const APP_BSKY_GRAPH = {
|
|
237
|
+
DefsModlist: 'app.bsky.graph.defs#modlist',
|
|
238
|
+
}
|
|
213
239
|
|
|
214
240
|
export class AtpBaseClient {
|
|
215
241
|
xrpc: XrpcClient = new XrpcClient()
|
|
@@ -280,6 +306,17 @@ export class AdminNS {
|
|
|
280
306
|
this._service = service
|
|
281
307
|
}
|
|
282
308
|
|
|
309
|
+
disableAccountInvites(
|
|
310
|
+
data?: ComAtprotoAdminDisableAccountInvites.InputSchema,
|
|
311
|
+
opts?: ComAtprotoAdminDisableAccountInvites.CallOptions,
|
|
312
|
+
): Promise<ComAtprotoAdminDisableAccountInvites.Response> {
|
|
313
|
+
return this._service.xrpc
|
|
314
|
+
.call('com.atproto.admin.disableAccountInvites', opts?.qp, data, opts)
|
|
315
|
+
.catch((e) => {
|
|
316
|
+
throw ComAtprotoAdminDisableAccountInvites.toKnownErr(e)
|
|
317
|
+
})
|
|
318
|
+
}
|
|
319
|
+
|
|
283
320
|
disableInviteCodes(
|
|
284
321
|
data?: ComAtprotoAdminDisableInviteCodes.InputSchema,
|
|
285
322
|
opts?: ComAtprotoAdminDisableInviteCodes.CallOptions,
|
|
@@ -291,6 +328,17 @@ export class AdminNS {
|
|
|
291
328
|
})
|
|
292
329
|
}
|
|
293
330
|
|
|
331
|
+
enableAccountInvites(
|
|
332
|
+
data?: ComAtprotoAdminEnableAccountInvites.InputSchema,
|
|
333
|
+
opts?: ComAtprotoAdminEnableAccountInvites.CallOptions,
|
|
334
|
+
): Promise<ComAtprotoAdminEnableAccountInvites.Response> {
|
|
335
|
+
return this._service.xrpc
|
|
336
|
+
.call('com.atproto.admin.enableAccountInvites', opts?.qp, data, opts)
|
|
337
|
+
.catch((e) => {
|
|
338
|
+
throw ComAtprotoAdminEnableAccountInvites.toKnownErr(e)
|
|
339
|
+
})
|
|
340
|
+
}
|
|
341
|
+
|
|
294
342
|
getInviteCodes(
|
|
295
343
|
params?: ComAtprotoAdminGetInviteCodes.QueryParams,
|
|
296
344
|
opts?: ComAtprotoAdminGetInviteCodes.CallOptions,
|
|
@@ -587,6 +635,17 @@ export class RepoNS {
|
|
|
587
635
|
})
|
|
588
636
|
}
|
|
589
637
|
|
|
638
|
+
rebaseRepo(
|
|
639
|
+
data?: ComAtprotoRepoRebaseRepo.InputSchema,
|
|
640
|
+
opts?: ComAtprotoRepoRebaseRepo.CallOptions,
|
|
641
|
+
): Promise<ComAtprotoRepoRebaseRepo.Response> {
|
|
642
|
+
return this._service.xrpc
|
|
643
|
+
.call('com.atproto.repo.rebaseRepo', opts?.qp, data, opts)
|
|
644
|
+
.catch((e) => {
|
|
645
|
+
throw ComAtprotoRepoRebaseRepo.toKnownErr(e)
|
|
646
|
+
})
|
|
647
|
+
}
|
|
648
|
+
|
|
590
649
|
uploadBlob(
|
|
591
650
|
data?: ComAtprotoRepoUploadBlob.InputSchema,
|
|
592
651
|
opts?: ComAtprotoRepoUploadBlob.CallOptions,
|
|
@@ -1345,11 +1404,15 @@ export class GraphNS {
|
|
|
1345
1404
|
_service: AtpServiceClient
|
|
1346
1405
|
block: BlockRecord
|
|
1347
1406
|
follow: FollowRecord
|
|
1407
|
+
list: ListRecord
|
|
1408
|
+
listitem: ListitemRecord
|
|
1348
1409
|
|
|
1349
1410
|
constructor(service: AtpServiceClient) {
|
|
1350
1411
|
this._service = service
|
|
1351
1412
|
this.block = new BlockRecord(service)
|
|
1352
1413
|
this.follow = new FollowRecord(service)
|
|
1414
|
+
this.list = new ListRecord(service)
|
|
1415
|
+
this.listitem = new ListitemRecord(service)
|
|
1353
1416
|
}
|
|
1354
1417
|
|
|
1355
1418
|
getBlocks(
|
|
@@ -1385,6 +1448,39 @@ export class GraphNS {
|
|
|
1385
1448
|
})
|
|
1386
1449
|
}
|
|
1387
1450
|
|
|
1451
|
+
getList(
|
|
1452
|
+
params?: AppBskyGraphGetList.QueryParams,
|
|
1453
|
+
opts?: AppBskyGraphGetList.CallOptions,
|
|
1454
|
+
): Promise<AppBskyGraphGetList.Response> {
|
|
1455
|
+
return this._service.xrpc
|
|
1456
|
+
.call('app.bsky.graph.getList', params, undefined, opts)
|
|
1457
|
+
.catch((e) => {
|
|
1458
|
+
throw AppBskyGraphGetList.toKnownErr(e)
|
|
1459
|
+
})
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
getListMutes(
|
|
1463
|
+
params?: AppBskyGraphGetListMutes.QueryParams,
|
|
1464
|
+
opts?: AppBskyGraphGetListMutes.CallOptions,
|
|
1465
|
+
): Promise<AppBskyGraphGetListMutes.Response> {
|
|
1466
|
+
return this._service.xrpc
|
|
1467
|
+
.call('app.bsky.graph.getListMutes', params, undefined, opts)
|
|
1468
|
+
.catch((e) => {
|
|
1469
|
+
throw AppBskyGraphGetListMutes.toKnownErr(e)
|
|
1470
|
+
})
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
getLists(
|
|
1474
|
+
params?: AppBskyGraphGetLists.QueryParams,
|
|
1475
|
+
opts?: AppBskyGraphGetLists.CallOptions,
|
|
1476
|
+
): Promise<AppBskyGraphGetLists.Response> {
|
|
1477
|
+
return this._service.xrpc
|
|
1478
|
+
.call('app.bsky.graph.getLists', params, undefined, opts)
|
|
1479
|
+
.catch((e) => {
|
|
1480
|
+
throw AppBskyGraphGetLists.toKnownErr(e)
|
|
1481
|
+
})
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1388
1484
|
getMutes(
|
|
1389
1485
|
params?: AppBskyGraphGetMutes.QueryParams,
|
|
1390
1486
|
opts?: AppBskyGraphGetMutes.CallOptions,
|
|
@@ -1407,6 +1503,17 @@ export class GraphNS {
|
|
|
1407
1503
|
})
|
|
1408
1504
|
}
|
|
1409
1505
|
|
|
1506
|
+
muteActorList(
|
|
1507
|
+
data?: AppBskyGraphMuteActorList.InputSchema,
|
|
1508
|
+
opts?: AppBskyGraphMuteActorList.CallOptions,
|
|
1509
|
+
): Promise<AppBskyGraphMuteActorList.Response> {
|
|
1510
|
+
return this._service.xrpc
|
|
1511
|
+
.call('app.bsky.graph.muteActorList', opts?.qp, data, opts)
|
|
1512
|
+
.catch((e) => {
|
|
1513
|
+
throw AppBskyGraphMuteActorList.toKnownErr(e)
|
|
1514
|
+
})
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1410
1517
|
unmuteActor(
|
|
1411
1518
|
data?: AppBskyGraphUnmuteActor.InputSchema,
|
|
1412
1519
|
opts?: AppBskyGraphUnmuteActor.CallOptions,
|
|
@@ -1417,6 +1524,17 @@ export class GraphNS {
|
|
|
1417
1524
|
throw AppBskyGraphUnmuteActor.toKnownErr(e)
|
|
1418
1525
|
})
|
|
1419
1526
|
}
|
|
1527
|
+
|
|
1528
|
+
unmuteActorList(
|
|
1529
|
+
data?: AppBskyGraphUnmuteActorList.InputSchema,
|
|
1530
|
+
opts?: AppBskyGraphUnmuteActorList.CallOptions,
|
|
1531
|
+
): Promise<AppBskyGraphUnmuteActorList.Response> {
|
|
1532
|
+
return this._service.xrpc
|
|
1533
|
+
.call('app.bsky.graph.unmuteActorList', opts?.qp, data, opts)
|
|
1534
|
+
.catch((e) => {
|
|
1535
|
+
throw AppBskyGraphUnmuteActorList.toKnownErr(e)
|
|
1536
|
+
})
|
|
1537
|
+
}
|
|
1420
1538
|
}
|
|
1421
1539
|
|
|
1422
1540
|
export class BlockRecord {
|
|
@@ -1541,6 +1659,128 @@ export class FollowRecord {
|
|
|
1541
1659
|
}
|
|
1542
1660
|
}
|
|
1543
1661
|
|
|
1662
|
+
export class ListRecord {
|
|
1663
|
+
_service: AtpServiceClient
|
|
1664
|
+
|
|
1665
|
+
constructor(service: AtpServiceClient) {
|
|
1666
|
+
this._service = service
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
async list(
|
|
1670
|
+
params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
|
|
1671
|
+
): Promise<{
|
|
1672
|
+
cursor?: string
|
|
1673
|
+
records: { uri: string; value: AppBskyGraphList.Record }[]
|
|
1674
|
+
}> {
|
|
1675
|
+
const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
|
|
1676
|
+
collection: 'app.bsky.graph.list',
|
|
1677
|
+
...params,
|
|
1678
|
+
})
|
|
1679
|
+
return res.data
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
async get(
|
|
1683
|
+
params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
|
|
1684
|
+
): Promise<{ uri: string; cid: string; value: AppBskyGraphList.Record }> {
|
|
1685
|
+
const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
|
|
1686
|
+
collection: 'app.bsky.graph.list',
|
|
1687
|
+
...params,
|
|
1688
|
+
})
|
|
1689
|
+
return res.data
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
async create(
|
|
1693
|
+
params: Omit<
|
|
1694
|
+
ComAtprotoRepoCreateRecord.InputSchema,
|
|
1695
|
+
'collection' | 'record'
|
|
1696
|
+
>,
|
|
1697
|
+
record: AppBskyGraphList.Record,
|
|
1698
|
+
headers?: Record<string, string>,
|
|
1699
|
+
): Promise<{ uri: string; cid: string }> {
|
|
1700
|
+
record.$type = 'app.bsky.graph.list'
|
|
1701
|
+
const res = await this._service.xrpc.call(
|
|
1702
|
+
'com.atproto.repo.createRecord',
|
|
1703
|
+
undefined,
|
|
1704
|
+
{ collection: 'app.bsky.graph.list', ...params, record },
|
|
1705
|
+
{ encoding: 'application/json', headers },
|
|
1706
|
+
)
|
|
1707
|
+
return res.data
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
async delete(
|
|
1711
|
+
params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
1712
|
+
headers?: Record<string, string>,
|
|
1713
|
+
): Promise<void> {
|
|
1714
|
+
await this._service.xrpc.call(
|
|
1715
|
+
'com.atproto.repo.deleteRecord',
|
|
1716
|
+
undefined,
|
|
1717
|
+
{ collection: 'app.bsky.graph.list', ...params },
|
|
1718
|
+
{ headers },
|
|
1719
|
+
)
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
export class ListitemRecord {
|
|
1724
|
+
_service: AtpServiceClient
|
|
1725
|
+
|
|
1726
|
+
constructor(service: AtpServiceClient) {
|
|
1727
|
+
this._service = service
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
async list(
|
|
1731
|
+
params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
|
|
1732
|
+
): Promise<{
|
|
1733
|
+
cursor?: string
|
|
1734
|
+
records: { uri: string; value: AppBskyGraphListitem.Record }[]
|
|
1735
|
+
}> {
|
|
1736
|
+
const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
|
|
1737
|
+
collection: 'app.bsky.graph.listitem',
|
|
1738
|
+
...params,
|
|
1739
|
+
})
|
|
1740
|
+
return res.data
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
async get(
|
|
1744
|
+
params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
|
|
1745
|
+
): Promise<{ uri: string; cid: string; value: AppBskyGraphListitem.Record }> {
|
|
1746
|
+
const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
|
|
1747
|
+
collection: 'app.bsky.graph.listitem',
|
|
1748
|
+
...params,
|
|
1749
|
+
})
|
|
1750
|
+
return res.data
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
async create(
|
|
1754
|
+
params: Omit<
|
|
1755
|
+
ComAtprotoRepoCreateRecord.InputSchema,
|
|
1756
|
+
'collection' | 'record'
|
|
1757
|
+
>,
|
|
1758
|
+
record: AppBskyGraphListitem.Record,
|
|
1759
|
+
headers?: Record<string, string>,
|
|
1760
|
+
): Promise<{ uri: string; cid: string }> {
|
|
1761
|
+
record.$type = 'app.bsky.graph.listitem'
|
|
1762
|
+
const res = await this._service.xrpc.call(
|
|
1763
|
+
'com.atproto.repo.createRecord',
|
|
1764
|
+
undefined,
|
|
1765
|
+
{ collection: 'app.bsky.graph.listitem', ...params, record },
|
|
1766
|
+
{ encoding: 'application/json', headers },
|
|
1767
|
+
)
|
|
1768
|
+
return res.data
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
async delete(
|
|
1772
|
+
params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
1773
|
+
headers?: Record<string, string>,
|
|
1774
|
+
): Promise<void> {
|
|
1775
|
+
await this._service.xrpc.call(
|
|
1776
|
+
'com.atproto.repo.deleteRecord',
|
|
1777
|
+
undefined,
|
|
1778
|
+
{ collection: 'app.bsky.graph.listitem', ...params },
|
|
1779
|
+
{ headers },
|
|
1780
|
+
)
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1544
1784
|
export class NotificationNS {
|
|
1545
1785
|
_service: AtpServiceClient
|
|
1546
1786
|
|