/** * GENERATED CODE - DO NOT MODIFY */ import { Client as XrpcClient, ServiceClient as XrpcServiceClient, } from '@atproto/xrpc' import { schemas } from './lexicons' import { CID } from 'multiformats/cid' import * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs' import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites' import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes' import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites' import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes' import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction' import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions' import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport' import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports' import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord' import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo' import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports' import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction' import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos' import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail' import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction' import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail' import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle' import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle' import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle' import * as ComAtprotoLabelDefs from './types/com/atproto/label/defs' import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels' import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels' import * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport' import * as ComAtprotoModerationDefs from './types/com/atproto/moderation/defs' import * as ComAtprotoRepoApplyWrites from './types/com/atproto/repo/applyWrites' import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord' import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord' import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo' import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord' import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords' import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord' import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef' import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob' import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail' import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount' import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword' import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode' import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes' import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession' import * as ComAtprotoServerDefs from './types/com/atproto/server/defs' import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount' import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession' import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer' import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes' import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession' import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords' import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession' import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete' import * as ComAtprotoServerRequestEmailConfirmation from './types/com/atproto/server/requestEmailConfirmation' import * as ComAtprotoServerRequestEmailUpdate from './types/com/atproto/server/requestEmailUpdate' import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset' import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword' import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword' import * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail' import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob' import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks' import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout' import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead' import * as ComAtprotoSyncGetLatestCommit from './types/com/atproto/sync/getLatestCommit' import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord' import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo' import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs' import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos' import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate' import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl' import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos' import * as AppBskyActorDefs from './types/app/bsky/actor/defs' import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences' import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile' import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles' import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions' import * as AppBskyActorProfile from './types/app/bsky/actor/profile' import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences' import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors' import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead' import * as AppBskyEmbedCollectible from './types/app/bsky/embed/collectible' import * as AppBskyEmbedExternal from './types/app/bsky/embed/external' import * as AppBskyEmbedFrame from './types/app/bsky/embed/frame' import * as AppBskyEmbedImages from './types/app/bsky/embed/images' import * as AppBskyEmbedNft from './types/app/bsky/embed/nft' import * as AppBskyEmbedRecord from './types/app/bsky/embed/record' import * as AppBskyEmbedRecordWithMedia from './types/app/bsky/embed/recordWithMedia' import * as AppBskyEmbedVideos from './types/app/bsky/embed/videos' import * as AppBskyFeedDefs from './types/app/bsky/feed/defs' import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator' import * as AppBskyFeedGenerator from './types/app/bsky/feed/generator' import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds' import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes' import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed' import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator' import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators' import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton' import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes' import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed' import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy' import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds' import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline' import * as AppBskyFeedLike from './types/app/bsky/feed/like' import * as AppBskyFeedPost from './types/app/bsky/feed/post' import * as AppBskyFeedRepost from './types/app/bsky/feed/repost' import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts' import * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate' import * as AppBskyGraphBlock from './types/app/bsky/graph/block' import * as AppBskyGraphDefs from './types/app/bsky/graph/defs' import * as AppBskyGraphFollow from './types/app/bsky/graph/follow' import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks' import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers' import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows' import * as AppBskyGraphGetList from './types/app/bsky/graph/getList' import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes' import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists' import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor' import * as AppBskyGraphList from './types/app/bsky/graph/list' import * as AppBskyGraphListblock from './types/app/bsky/graph/listblock' import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem' import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor' import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList' import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor' import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList' import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount' import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications' import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush' import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen' import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet' import * as AppBskySplxClaim from './types/app/bsky/splx/claim' import * as AppBskySplxCollectible from './types/app/bsky/splx/collectible' import * as AppBskySplxCreateClaim from './types/app/bsky/splx/createClaim' import * as AppBskySplxCreateCollectible from './types/app/bsky/splx/createCollectible' import * as AppBskySplxCreatePayment from './types/app/bsky/splx/createPayment' import * as AppBskySplxCreatePaymentCollection from './types/app/bsky/splx/createPaymentCollection' import * as AppBskySplxCreatePostClaim from './types/app/bsky/splx/createPostClaim' import * as AppBskySplxDefs from './types/app/bsky/splx/defs' import * as AppBskySplxGetClaim from './types/app/bsky/splx/getClaim' import * as AppBskySplxGetClaims from './types/app/bsky/splx/getClaims' import * as AppBskySplxGetCollectible from './types/app/bsky/splx/getCollectible' import * as AppBskySplxGetCollectibles from './types/app/bsky/splx/getCollectibles' import * as AppBskySplxGetFrameMeta from './types/app/bsky/splx/getFrameMeta' import * as AppBskySplxGetPaymentCollection from './types/app/bsky/splx/getPaymentCollection' import * as AppBskySplxGetRewardClaim from './types/app/bsky/splx/getRewardClaim' import * as AppBskySplxGetTopMinters from './types/app/bsky/splx/getTopMinters' import * as AppBskySplxPayment from './types/app/bsky/splx/payment' import * as AppBskySplxPaymentCollection from './types/app/bsky/splx/paymentCollection' import * as AppBskySplxPostClaim from './types/app/bsky/splx/postClaim' import * as AppBskySplxPostFrameAction from './types/app/bsky/splx/postFrameAction' import * as AppBskySplxRequestTransaction from './types/app/bsky/splx/requestTransaction' import * as AppBskySplxUpdatePayment from './types/app/bsky/splx/updatePayment' import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs' import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular' import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators' import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton' import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton' import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton' export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs' export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites' export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes' export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites' export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes' export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction' export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions' export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport' export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports' export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord' export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo' export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports' export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction' export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos' export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail' export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction' export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail' export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle' export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle' export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle' export * as ComAtprotoLabelDefs from './types/com/atproto/label/defs' export * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels' export * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels' export * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport' export * as ComAtprotoModerationDefs from './types/com/atproto/moderation/defs' export * as ComAtprotoRepoApplyWrites from './types/com/atproto/repo/applyWrites' export * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord' export * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord' export * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo' export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord' export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords' export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord' export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef' export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob' export * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail' export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount' export * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword' export * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode' export * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes' export * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession' export * as ComAtprotoServerDefs from './types/com/atproto/server/defs' export * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount' export * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession' export * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer' export * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes' export * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession' export * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords' export * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession' export * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete' export * as ComAtprotoServerRequestEmailConfirmation from './types/com/atproto/server/requestEmailConfirmation' export * as ComAtprotoServerRequestEmailUpdate from './types/com/atproto/server/requestEmailUpdate' export * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset' export * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword' export * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword' export * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail' export * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob' export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks' export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout' export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead' export * as ComAtprotoSyncGetLatestCommit from './types/com/atproto/sync/getLatestCommit' export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord' export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo' export * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs' export * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos' export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate' export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl' export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos' export * as AppBskyActorDefs from './types/app/bsky/actor/defs' export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences' export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile' export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles' export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions' export * as AppBskyActorProfile from './types/app/bsky/actor/profile' export * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences' export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors' export * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead' export * as AppBskyEmbedCollectible from './types/app/bsky/embed/collectible' export * as AppBskyEmbedExternal from './types/app/bsky/embed/external' export * as AppBskyEmbedFrame from './types/app/bsky/embed/frame' export * as AppBskyEmbedImages from './types/app/bsky/embed/images' export * as AppBskyEmbedNft from './types/app/bsky/embed/nft' export * as AppBskyEmbedRecord from './types/app/bsky/embed/record' export * as AppBskyEmbedRecordWithMedia from './types/app/bsky/embed/recordWithMedia' export * as AppBskyEmbedVideos from './types/app/bsky/embed/videos' export * as AppBskyFeedDefs from './types/app/bsky/feed/defs' export * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator' export * as AppBskyFeedGenerator from './types/app/bsky/feed/generator' export * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds' export * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes' export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed' export * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' export * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator' export * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators' export * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton' export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes' export * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed' export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy' export * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds' export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline' export * as AppBskyFeedLike from './types/app/bsky/feed/like' export * as AppBskyFeedPost from './types/app/bsky/feed/post' export * as AppBskyFeedRepost from './types/app/bsky/feed/repost' export * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts' export * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate' export * as AppBskyGraphBlock from './types/app/bsky/graph/block' export * as AppBskyGraphDefs from './types/app/bsky/graph/defs' export * as AppBskyGraphFollow from './types/app/bsky/graph/follow' export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks' export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers' export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows' export * as AppBskyGraphGetList from './types/app/bsky/graph/getList' export * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' export * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes' export * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists' export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' export * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor' export * as AppBskyGraphList from './types/app/bsky/graph/list' export * as AppBskyGraphListblock from './types/app/bsky/graph/listblock' export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem' export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor' export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList' export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor' export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList' export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount' export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications' export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush' export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen' export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet' export * as AppBskySplxClaim from './types/app/bsky/splx/claim' export * as AppBskySplxCollectible from './types/app/bsky/splx/collectible' export * as AppBskySplxCreateClaim from './types/app/bsky/splx/createClaim' export * as AppBskySplxCreateCollectible from './types/app/bsky/splx/createCollectible' export * as AppBskySplxCreatePayment from './types/app/bsky/splx/createPayment' export * as AppBskySplxCreatePaymentCollection from './types/app/bsky/splx/createPaymentCollection' export * as AppBskySplxCreatePostClaim from './types/app/bsky/splx/createPostClaim' export * as AppBskySplxDefs from './types/app/bsky/splx/defs' export * as AppBskySplxGetClaim from './types/app/bsky/splx/getClaim' export * as AppBskySplxGetClaims from './types/app/bsky/splx/getClaims' export * as AppBskySplxGetCollectible from './types/app/bsky/splx/getCollectible' export * as AppBskySplxGetCollectibles from './types/app/bsky/splx/getCollectibles' export * as AppBskySplxGetFrameMeta from './types/app/bsky/splx/getFrameMeta' export * as AppBskySplxGetPaymentCollection from './types/app/bsky/splx/getPaymentCollection' export * as AppBskySplxGetRewardClaim from './types/app/bsky/splx/getRewardClaim' export * as AppBskySplxGetTopMinters from './types/app/bsky/splx/getTopMinters' export * as AppBskySplxPayment from './types/app/bsky/splx/payment' export * as AppBskySplxPaymentCollection from './types/app/bsky/splx/paymentCollection' export * as AppBskySplxPostClaim from './types/app/bsky/splx/postClaim' export * as AppBskySplxPostFrameAction from './types/app/bsky/splx/postFrameAction' export * as AppBskySplxRequestTransaction from './types/app/bsky/splx/requestTransaction' export * as AppBskySplxUpdatePayment from './types/app/bsky/splx/updatePayment' export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs' export * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular' export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators' export * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton' export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton' export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton' export const COM_ATPROTO_ADMIN = { DefsTakedown: 'com.atproto.admin.defs#takedown', DefsFlag: 'com.atproto.admin.defs#flag', DefsAcknowledge: 'com.atproto.admin.defs#acknowledge', DefsEscalate: 'com.atproto.admin.defs#escalate', } export const COM_ATPROTO_MODERATION = { DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam', DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation', DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading', DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual', DefsReasonRude: 'com.atproto.moderation.defs#reasonRude', DefsReasonOther: 'com.atproto.moderation.defs#reasonOther', } export const APP_BSKY_GRAPH = { DefsModlist: 'app.bsky.graph.defs#modlist', DefsCuratelist: 'app.bsky.graph.defs#curatelist', } export class AtpBaseClient { xrpc: XrpcClient = new XrpcClient() constructor() { this.xrpc.addLexicons(schemas) } service(serviceUri: string | URL): AtpServiceClient { return new AtpServiceClient(this, this.xrpc.service(serviceUri)) } } export class AtpServiceClient { _baseClient: AtpBaseClient xrpc: XrpcServiceClient com: ComNS app: AppNS constructor(baseClient: AtpBaseClient, xrpcService: XrpcServiceClient) { this._baseClient = baseClient this.xrpc = xrpcService this.com = new ComNS(this) this.app = new AppNS(this) } setHeader(key: string, value: string): void { this.xrpc.setHeader(key, value) } } export class ComNS { _service: AtpServiceClient atproto: AtprotoNS constructor(service: AtpServiceClient) { this._service = service this.atproto = new AtprotoNS(service) } } export class AtprotoNS { _service: AtpServiceClient admin: AdminNS identity: IdentityNS label: LabelNS moderation: ModerationNS repo: RepoNS server: ServerNS sync: SyncNS constructor(service: AtpServiceClient) { this._service = service this.admin = new AdminNS(service) this.identity = new IdentityNS(service) this.label = new LabelNS(service) this.moderation = new ModerationNS(service) this.repo = new RepoNS(service) this.server = new ServerNS(service) this.sync = new SyncNS(service) } } export class AdminNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } disableAccountInvites( data?: ComAtprotoAdminDisableAccountInvites.InputSchema, opts?: ComAtprotoAdminDisableAccountInvites.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.disableAccountInvites', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminDisableAccountInvites.toKnownErr(e) }) } disableInviteCodes( data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.disableInviteCodes', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminDisableInviteCodes.toKnownErr(e) }) } enableAccountInvites( data?: ComAtprotoAdminEnableAccountInvites.InputSchema, opts?: ComAtprotoAdminEnableAccountInvites.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.enableAccountInvites', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminEnableAccountInvites.toKnownErr(e) }) } getInviteCodes( params?: ComAtprotoAdminGetInviteCodes.QueryParams, opts?: ComAtprotoAdminGetInviteCodes.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getInviteCodes', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetInviteCodes.toKnownErr(e) }) } getModerationAction( params?: ComAtprotoAdminGetModerationAction.QueryParams, opts?: ComAtprotoAdminGetModerationAction.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getModerationAction', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetModerationAction.toKnownErr(e) }) } getModerationActions( params?: ComAtprotoAdminGetModerationActions.QueryParams, opts?: ComAtprotoAdminGetModerationActions.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getModerationActions', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetModerationActions.toKnownErr(e) }) } getModerationReport( params?: ComAtprotoAdminGetModerationReport.QueryParams, opts?: ComAtprotoAdminGetModerationReport.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getModerationReport', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetModerationReport.toKnownErr(e) }) } getModerationReports( params?: ComAtprotoAdminGetModerationReports.QueryParams, opts?: ComAtprotoAdminGetModerationReports.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getModerationReports', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetModerationReports.toKnownErr(e) }) } getRecord( params?: ComAtprotoAdminGetRecord.QueryParams, opts?: ComAtprotoAdminGetRecord.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getRecord', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetRecord.toKnownErr(e) }) } getRepo( params?: ComAtprotoAdminGetRepo.QueryParams, opts?: ComAtprotoAdminGetRepo.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getRepo', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetRepo.toKnownErr(e) }) } resolveModerationReports( data?: ComAtprotoAdminResolveModerationReports.InputSchema, opts?: ComAtprotoAdminResolveModerationReports.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.resolveModerationReports', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminResolveModerationReports.toKnownErr(e) }) } reverseModerationAction( data?: ComAtprotoAdminReverseModerationAction.InputSchema, opts?: ComAtprotoAdminReverseModerationAction.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.reverseModerationAction', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminReverseModerationAction.toKnownErr(e) }) } searchRepos( params?: ComAtprotoAdminSearchRepos.QueryParams, opts?: ComAtprotoAdminSearchRepos.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.searchRepos', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminSearchRepos.toKnownErr(e) }) } sendEmail( data?: ComAtprotoAdminSendEmail.InputSchema, opts?: ComAtprotoAdminSendEmail.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.sendEmail', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminSendEmail.toKnownErr(e) }) } takeModerationAction( data?: ComAtprotoAdminTakeModerationAction.InputSchema, opts?: ComAtprotoAdminTakeModerationAction.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.takeModerationAction', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminTakeModerationAction.toKnownErr(e) }) } updateAccountEmail( data?: ComAtprotoAdminUpdateAccountEmail.InputSchema, opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.updateAccountEmail', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminUpdateAccountEmail.toKnownErr(e) }) } updateAccountHandle( data?: ComAtprotoAdminUpdateAccountHandle.InputSchema, opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.updateAccountHandle', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminUpdateAccountHandle.toKnownErr(e) }) } } export class IdentityNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } resolveHandle( params?: ComAtprotoIdentityResolveHandle.QueryParams, opts?: ComAtprotoIdentityResolveHandle.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.identity.resolveHandle', params, undefined, opts) .catch((e) => { throw ComAtprotoIdentityResolveHandle.toKnownErr(e) }) } updateHandle( data?: ComAtprotoIdentityUpdateHandle.InputSchema, opts?: ComAtprotoIdentityUpdateHandle.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.identity.updateHandle', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoIdentityUpdateHandle.toKnownErr(e) }) } } export class LabelNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } queryLabels( params?: ComAtprotoLabelQueryLabels.QueryParams, opts?: ComAtprotoLabelQueryLabels.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.label.queryLabels', params, undefined, opts) .catch((e) => { throw ComAtprotoLabelQueryLabels.toKnownErr(e) }) } } export class ModerationNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } createReport( data?: ComAtprotoModerationCreateReport.InputSchema, opts?: ComAtprotoModerationCreateReport.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.moderation.createReport', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoModerationCreateReport.toKnownErr(e) }) } } export class RepoNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } applyWrites( data?: ComAtprotoRepoApplyWrites.InputSchema, opts?: ComAtprotoRepoApplyWrites.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.applyWrites', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoRepoApplyWrites.toKnownErr(e) }) } createRecord( data?: ComAtprotoRepoCreateRecord.InputSchema, opts?: ComAtprotoRepoCreateRecord.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.createRecord', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoRepoCreateRecord.toKnownErr(e) }) } deleteRecord( data?: ComAtprotoRepoDeleteRecord.InputSchema, opts?: ComAtprotoRepoDeleteRecord.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.deleteRecord', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoRepoDeleteRecord.toKnownErr(e) }) } describeRepo( params?: ComAtprotoRepoDescribeRepo.QueryParams, opts?: ComAtprotoRepoDescribeRepo.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.describeRepo', params, undefined, opts) .catch((e) => { throw ComAtprotoRepoDescribeRepo.toKnownErr(e) }) } getRecord( params?: ComAtprotoRepoGetRecord.QueryParams, opts?: ComAtprotoRepoGetRecord.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.getRecord', params, undefined, opts) .catch((e) => { throw ComAtprotoRepoGetRecord.toKnownErr(e) }) } listRecords( params?: ComAtprotoRepoListRecords.QueryParams, opts?: ComAtprotoRepoListRecords.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.listRecords', params, undefined, opts) .catch((e) => { throw ComAtprotoRepoListRecords.toKnownErr(e) }) } putRecord( data?: ComAtprotoRepoPutRecord.InputSchema, opts?: ComAtprotoRepoPutRecord.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.putRecord', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoRepoPutRecord.toKnownErr(e) }) } uploadBlob( data?: ComAtprotoRepoUploadBlob.InputSchema, opts?: ComAtprotoRepoUploadBlob.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.uploadBlob', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoRepoUploadBlob.toKnownErr(e) }) } } export class ServerNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } confirmEmail( data?: ComAtprotoServerConfirmEmail.InputSchema, opts?: ComAtprotoServerConfirmEmail.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.confirmEmail', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerConfirmEmail.toKnownErr(e) }) } createAccount( data?: ComAtprotoServerCreateAccount.InputSchema, opts?: ComAtprotoServerCreateAccount.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.createAccount', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerCreateAccount.toKnownErr(e) }) } createAppPassword( data?: ComAtprotoServerCreateAppPassword.InputSchema, opts?: ComAtprotoServerCreateAppPassword.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.createAppPassword', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerCreateAppPassword.toKnownErr(e) }) } createInviteCode( data?: ComAtprotoServerCreateInviteCode.InputSchema, opts?: ComAtprotoServerCreateInviteCode.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.createInviteCode', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerCreateInviteCode.toKnownErr(e) }) } createInviteCodes( data?: ComAtprotoServerCreateInviteCodes.InputSchema, opts?: ComAtprotoServerCreateInviteCodes.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.createInviteCodes', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerCreateInviteCodes.toKnownErr(e) }) } createSession( data?: ComAtprotoServerCreateSession.InputSchema, opts?: ComAtprotoServerCreateSession.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.createSession', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerCreateSession.toKnownErr(e) }) } deleteAccount( data?: ComAtprotoServerDeleteAccount.InputSchema, opts?: ComAtprotoServerDeleteAccount.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.deleteAccount', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerDeleteAccount.toKnownErr(e) }) } deleteSession( data?: ComAtprotoServerDeleteSession.InputSchema, opts?: ComAtprotoServerDeleteSession.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.deleteSession', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerDeleteSession.toKnownErr(e) }) } describeServer( params?: ComAtprotoServerDescribeServer.QueryParams, opts?: ComAtprotoServerDescribeServer.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.describeServer', params, undefined, opts) .catch((e) => { throw ComAtprotoServerDescribeServer.toKnownErr(e) }) } getAccountInviteCodes( params?: ComAtprotoServerGetAccountInviteCodes.QueryParams, opts?: ComAtprotoServerGetAccountInviteCodes.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.getAccountInviteCodes', params, undefined, opts) .catch((e) => { throw ComAtprotoServerGetAccountInviteCodes.toKnownErr(e) }) } getSession( params?: ComAtprotoServerGetSession.QueryParams, opts?: ComAtprotoServerGetSession.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.getSession', params, undefined, opts) .catch((e) => { throw ComAtprotoServerGetSession.toKnownErr(e) }) } listAppPasswords( params?: ComAtprotoServerListAppPasswords.QueryParams, opts?: ComAtprotoServerListAppPasswords.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.listAppPasswords', params, undefined, opts) .catch((e) => { throw ComAtprotoServerListAppPasswords.toKnownErr(e) }) } refreshSession( data?: ComAtprotoServerRefreshSession.InputSchema, opts?: ComAtprotoServerRefreshSession.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.refreshSession', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerRefreshSession.toKnownErr(e) }) } requestAccountDelete( data?: ComAtprotoServerRequestAccountDelete.InputSchema, opts?: ComAtprotoServerRequestAccountDelete.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.requestAccountDelete', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerRequestAccountDelete.toKnownErr(e) }) } requestEmailConfirmation( data?: ComAtprotoServerRequestEmailConfirmation.InputSchema, opts?: ComAtprotoServerRequestEmailConfirmation.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.requestEmailConfirmation', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerRequestEmailConfirmation.toKnownErr(e) }) } requestEmailUpdate( data?: ComAtprotoServerRequestEmailUpdate.InputSchema, opts?: ComAtprotoServerRequestEmailUpdate.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.requestEmailUpdate', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerRequestEmailUpdate.toKnownErr(e) }) } requestPasswordReset( data?: ComAtprotoServerRequestPasswordReset.InputSchema, opts?: ComAtprotoServerRequestPasswordReset.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.requestPasswordReset', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerRequestPasswordReset.toKnownErr(e) }) } resetPassword( data?: ComAtprotoServerResetPassword.InputSchema, opts?: ComAtprotoServerResetPassword.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.resetPassword', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerResetPassword.toKnownErr(e) }) } revokeAppPassword( data?: ComAtprotoServerRevokeAppPassword.InputSchema, opts?: ComAtprotoServerRevokeAppPassword.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.revokeAppPassword', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerRevokeAppPassword.toKnownErr(e) }) } updateEmail( data?: ComAtprotoServerUpdateEmail.InputSchema, opts?: ComAtprotoServerUpdateEmail.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.updateEmail', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerUpdateEmail.toKnownErr(e) }) } } export class SyncNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } getBlob( params?: ComAtprotoSyncGetBlob.QueryParams, opts?: ComAtprotoSyncGetBlob.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.getBlob', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncGetBlob.toKnownErr(e) }) } getBlocks( params?: ComAtprotoSyncGetBlocks.QueryParams, opts?: ComAtprotoSyncGetBlocks.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.getBlocks', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncGetBlocks.toKnownErr(e) }) } getCheckout( params?: ComAtprotoSyncGetCheckout.QueryParams, opts?: ComAtprotoSyncGetCheckout.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.getCheckout', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncGetCheckout.toKnownErr(e) }) } getHead( params?: ComAtprotoSyncGetHead.QueryParams, opts?: ComAtprotoSyncGetHead.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.getHead', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncGetHead.toKnownErr(e) }) } getLatestCommit( params?: ComAtprotoSyncGetLatestCommit.QueryParams, opts?: ComAtprotoSyncGetLatestCommit.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.getLatestCommit', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncGetLatestCommit.toKnownErr(e) }) } getRecord( params?: ComAtprotoSyncGetRecord.QueryParams, opts?: ComAtprotoSyncGetRecord.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.getRecord', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncGetRecord.toKnownErr(e) }) } getRepo( params?: ComAtprotoSyncGetRepo.QueryParams, opts?: ComAtprotoSyncGetRepo.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.getRepo', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncGetRepo.toKnownErr(e) }) } listBlobs( params?: ComAtprotoSyncListBlobs.QueryParams, opts?: ComAtprotoSyncListBlobs.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.listBlobs', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncListBlobs.toKnownErr(e) }) } listRepos( params?: ComAtprotoSyncListRepos.QueryParams, opts?: ComAtprotoSyncListRepos.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.listRepos', params, undefined, opts) .catch((e) => { throw ComAtprotoSyncListRepos.toKnownErr(e) }) } notifyOfUpdate( data?: ComAtprotoSyncNotifyOfUpdate.InputSchema, opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.notifyOfUpdate', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoSyncNotifyOfUpdate.toKnownErr(e) }) } requestCrawl( data?: ComAtprotoSyncRequestCrawl.InputSchema, opts?: ComAtprotoSyncRequestCrawl.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.sync.requestCrawl', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoSyncRequestCrawl.toKnownErr(e) }) } } export class AppNS { _service: AtpServiceClient bsky: BskyNS constructor(service: AtpServiceClient) { this._service = service this.bsky = new BskyNS(service) } } export class BskyNS { _service: AtpServiceClient actor: ActorNS embed: EmbedNS feed: FeedNS graph: GraphNS notification: NotificationNS richtext: RichtextNS splx: SplxNS unspecced: UnspeccedNS constructor(service: AtpServiceClient) { this._service = service this.actor = new ActorNS(service) this.embed = new EmbedNS(service) this.feed = new FeedNS(service) this.graph = new GraphNS(service) this.notification = new NotificationNS(service) this.richtext = new RichtextNS(service) this.splx = new SplxNS(service) this.unspecced = new UnspeccedNS(service) } } export class ActorNS { _service: AtpServiceClient profile: ProfileRecord constructor(service: AtpServiceClient) { this._service = service this.profile = new ProfileRecord(service) } getPreferences( params?: AppBskyActorGetPreferences.QueryParams, opts?: AppBskyActorGetPreferences.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.actor.getPreferences', params, undefined, opts) .catch((e) => { throw AppBskyActorGetPreferences.toKnownErr(e) }) } getProfile( params?: AppBskyActorGetProfile.QueryParams, opts?: AppBskyActorGetProfile.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.actor.getProfile', params, undefined, opts) .catch((e) => { throw AppBskyActorGetProfile.toKnownErr(e) }) } getProfiles( params?: AppBskyActorGetProfiles.QueryParams, opts?: AppBskyActorGetProfiles.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.actor.getProfiles', params, undefined, opts) .catch((e) => { throw AppBskyActorGetProfiles.toKnownErr(e) }) } getSuggestions( params?: AppBskyActorGetSuggestions.QueryParams, opts?: AppBskyActorGetSuggestions.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.actor.getSuggestions', params, undefined, opts) .catch((e) => { throw AppBskyActorGetSuggestions.toKnownErr(e) }) } putPreferences( data?: AppBskyActorPutPreferences.InputSchema, opts?: AppBskyActorPutPreferences.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.actor.putPreferences', opts?.qp, data, opts) .catch((e) => { throw AppBskyActorPutPreferences.toKnownErr(e) }) } searchActors( params?: AppBskyActorSearchActors.QueryParams, opts?: AppBskyActorSearchActors.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.actor.searchActors', params, undefined, opts) .catch((e) => { throw AppBskyActorSearchActors.toKnownErr(e) }) } searchActorsTypeahead( params?: AppBskyActorSearchActorsTypeahead.QueryParams, opts?: AppBskyActorSearchActorsTypeahead.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.actor.searchActorsTypeahead', params, undefined, opts) .catch((e) => { throw AppBskyActorSearchActorsTypeahead.toKnownErr(e) }) } } export class ProfileRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyActorProfile.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.actor.profile', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyActorProfile.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.actor.profile', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyActorProfile.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.actor.profile' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.actor.profile', rkey: 'self', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.actor.profile', ...params }, { headers }, ) } } export class EmbedNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } } export class FeedNS { _service: AtpServiceClient generator: GeneratorRecord like: LikeRecord post: PostRecord repost: RepostRecord threadgate: ThreadgateRecord constructor(service: AtpServiceClient) { this._service = service this.generator = new GeneratorRecord(service) this.like = new LikeRecord(service) this.post = new PostRecord(service) this.repost = new RepostRecord(service) this.threadgate = new ThreadgateRecord(service) } describeFeedGenerator( params?: AppBskyFeedDescribeFeedGenerator.QueryParams, opts?: AppBskyFeedDescribeFeedGenerator.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.describeFeedGenerator', params, undefined, opts) .catch((e) => { throw AppBskyFeedDescribeFeedGenerator.toKnownErr(e) }) } getActorFeeds( params?: AppBskyFeedGetActorFeeds.QueryParams, opts?: AppBskyFeedGetActorFeeds.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getActorFeeds', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetActorFeeds.toKnownErr(e) }) } getActorLikes( params?: AppBskyFeedGetActorLikes.QueryParams, opts?: AppBskyFeedGetActorLikes.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getActorLikes', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetActorLikes.toKnownErr(e) }) } getAuthorFeed( params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getAuthorFeed', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetAuthorFeed.toKnownErr(e) }) } getFeed( params?: AppBskyFeedGetFeed.QueryParams, opts?: AppBskyFeedGetFeed.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getFeed', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetFeed.toKnownErr(e) }) } getFeedGenerator( params?: AppBskyFeedGetFeedGenerator.QueryParams, opts?: AppBskyFeedGetFeedGenerator.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getFeedGenerator', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetFeedGenerator.toKnownErr(e) }) } getFeedGenerators( params?: AppBskyFeedGetFeedGenerators.QueryParams, opts?: AppBskyFeedGetFeedGenerators.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getFeedGenerators', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetFeedGenerators.toKnownErr(e) }) } getFeedSkeleton( params?: AppBskyFeedGetFeedSkeleton.QueryParams, opts?: AppBskyFeedGetFeedSkeleton.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getFeedSkeleton', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetFeedSkeleton.toKnownErr(e) }) } getLikes( params?: AppBskyFeedGetLikes.QueryParams, opts?: AppBskyFeedGetLikes.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getLikes', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetLikes.toKnownErr(e) }) } getListFeed( params?: AppBskyFeedGetListFeed.QueryParams, opts?: AppBskyFeedGetListFeed.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getListFeed', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetListFeed.toKnownErr(e) }) } getPostThread( params?: AppBskyFeedGetPostThread.QueryParams, opts?: AppBskyFeedGetPostThread.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getPostThread', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetPostThread.toKnownErr(e) }) } getPosts( params?: AppBskyFeedGetPosts.QueryParams, opts?: AppBskyFeedGetPosts.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getPosts', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetPosts.toKnownErr(e) }) } getRepostedBy( params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getRepostedBy', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetRepostedBy.toKnownErr(e) }) } getSuggestedFeeds( params?: AppBskyFeedGetSuggestedFeeds.QueryParams, opts?: AppBskyFeedGetSuggestedFeeds.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getSuggestedFeeds', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetSuggestedFeeds.toKnownErr(e) }) } getTimeline( params?: AppBskyFeedGetTimeline.QueryParams, opts?: AppBskyFeedGetTimeline.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.getTimeline', params, undefined, opts) .catch((e) => { throw AppBskyFeedGetTimeline.toKnownErr(e) }) } searchPosts( params?: AppBskyFeedSearchPosts.QueryParams, opts?: AppBskyFeedSearchPosts.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.searchPosts', params, undefined, opts) .catch((e) => { throw AppBskyFeedSearchPosts.toKnownErr(e) }) } } export class GeneratorRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyFeedGenerator.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.feed.generator', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyFeedGenerator.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.feed.generator', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyFeedGenerator.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.feed.generator' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.feed.generator', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.generator', ...params }, { headers }, ) } } export class LikeRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyFeedLike.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.feed.like', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyFeedLike.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.feed.like', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyFeedLike.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.feed.like' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.feed.like', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.like', ...params }, { headers }, ) } } export class PostRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyFeedPost.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.feed.post', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyFeedPost.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.feed.post', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyFeedPost.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.feed.post' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.feed.post', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.post', ...params }, { headers }, ) } } export class RepostRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyFeedRepost.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.feed.repost', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyFeedRepost.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.feed.repost', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyFeedRepost.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.feed.repost' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.feed.repost', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.repost', ...params }, { headers }, ) } } export class ThreadgateRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyFeedThreadgate.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.feed.threadgate', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string cid: string value: AppBskyFeedThreadgate.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.feed.threadgate', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyFeedThreadgate.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.feed.threadgate' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.feed.threadgate', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.threadgate', ...params }, { headers }, ) } } export class GraphNS { _service: AtpServiceClient block: BlockRecord follow: FollowRecord list: ListRecord listblock: ListblockRecord listitem: ListitemRecord constructor(service: AtpServiceClient) { this._service = service this.block = new BlockRecord(service) this.follow = new FollowRecord(service) this.list = new ListRecord(service) this.listblock = new ListblockRecord(service) this.listitem = new ListitemRecord(service) } getBlocks( params?: AppBskyGraphGetBlocks.QueryParams, opts?: AppBskyGraphGetBlocks.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getBlocks', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetBlocks.toKnownErr(e) }) } getFollowers( params?: AppBskyGraphGetFollowers.QueryParams, opts?: AppBskyGraphGetFollowers.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getFollowers', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetFollowers.toKnownErr(e) }) } getFollows( params?: AppBskyGraphGetFollows.QueryParams, opts?: AppBskyGraphGetFollows.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getFollows', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetFollows.toKnownErr(e) }) } getList( params?: AppBskyGraphGetList.QueryParams, opts?: AppBskyGraphGetList.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getList', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetList.toKnownErr(e) }) } getListBlocks( params?: AppBskyGraphGetListBlocks.QueryParams, opts?: AppBskyGraphGetListBlocks.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getListBlocks', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetListBlocks.toKnownErr(e) }) } getListMutes( params?: AppBskyGraphGetListMutes.QueryParams, opts?: AppBskyGraphGetListMutes.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getListMutes', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetListMutes.toKnownErr(e) }) } getLists( params?: AppBskyGraphGetLists.QueryParams, opts?: AppBskyGraphGetLists.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getLists', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetLists.toKnownErr(e) }) } getMutes( params?: AppBskyGraphGetMutes.QueryParams, opts?: AppBskyGraphGetMutes.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getMutes', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetMutes.toKnownErr(e) }) } getSuggestedFollowsByActor( params?: AppBskyGraphGetSuggestedFollowsByActor.QueryParams, opts?: AppBskyGraphGetSuggestedFollowsByActor.CallOptions, ): Promise { return this._service.xrpc .call( 'app.bsky.graph.getSuggestedFollowsByActor', params, undefined, opts, ) .catch((e) => { throw AppBskyGraphGetSuggestedFollowsByActor.toKnownErr(e) }) } muteActor( data?: AppBskyGraphMuteActor.InputSchema, opts?: AppBskyGraphMuteActor.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.muteActor', opts?.qp, data, opts) .catch((e) => { throw AppBskyGraphMuteActor.toKnownErr(e) }) } muteActorList( data?: AppBskyGraphMuteActorList.InputSchema, opts?: AppBskyGraphMuteActorList.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.muteActorList', opts?.qp, data, opts) .catch((e) => { throw AppBskyGraphMuteActorList.toKnownErr(e) }) } unmuteActor( data?: AppBskyGraphUnmuteActor.InputSchema, opts?: AppBskyGraphUnmuteActor.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.unmuteActor', opts?.qp, data, opts) .catch((e) => { throw AppBskyGraphUnmuteActor.toKnownErr(e) }) } unmuteActorList( data?: AppBskyGraphUnmuteActorList.InputSchema, opts?: AppBskyGraphUnmuteActorList.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.unmuteActorList', opts?.qp, data, opts) .catch((e) => { throw AppBskyGraphUnmuteActorList.toKnownErr(e) }) } } export class BlockRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyGraphBlock.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.graph.block', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyGraphBlock.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.graph.block', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyGraphBlock.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.graph.block' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.graph.block', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.block', ...params }, { headers }, ) } } export class FollowRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyGraphFollow.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.graph.follow', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyGraphFollow.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.graph.follow', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyGraphFollow.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.graph.follow' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.graph.follow', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.follow', ...params }, { headers }, ) } } export class ListRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyGraphList.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.graph.list', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyGraphList.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.graph.list', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyGraphList.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.graph.list' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.graph.list', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.list', ...params }, { headers }, ) } } export class ListblockRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyGraphListblock.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.graph.listblock', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string cid: string value: AppBskyGraphListblock.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.graph.listblock', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyGraphListblock.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.graph.listblock' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.graph.listblock', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.listblock', ...params }, { headers }, ) } } export class ListitemRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyGraphListitem.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.graph.listitem', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskyGraphListitem.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.graph.listitem', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyGraphListitem.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.graph.listitem' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.graph.listitem', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.listitem', ...params }, { headers }, ) } } export class NotificationNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } getUnreadCount( params?: AppBskyNotificationGetUnreadCount.QueryParams, opts?: AppBskyNotificationGetUnreadCount.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.notification.getUnreadCount', params, undefined, opts) .catch((e) => { throw AppBskyNotificationGetUnreadCount.toKnownErr(e) }) } listNotifications( params?: AppBskyNotificationListNotifications.QueryParams, opts?: AppBskyNotificationListNotifications.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.notification.listNotifications', params, undefined, opts) .catch((e) => { throw AppBskyNotificationListNotifications.toKnownErr(e) }) } registerPush( data?: AppBskyNotificationRegisterPush.InputSchema, opts?: AppBskyNotificationRegisterPush.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.notification.registerPush', opts?.qp, data, opts) .catch((e) => { throw AppBskyNotificationRegisterPush.toKnownErr(e) }) } updateSeen( data?: AppBskyNotificationUpdateSeen.InputSchema, opts?: AppBskyNotificationUpdateSeen.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.notification.updateSeen', opts?.qp, data, opts) .catch((e) => { throw AppBskyNotificationUpdateSeen.toKnownErr(e) }) } } export class RichtextNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } } export class SplxNS { _service: AtpServiceClient claim: ClaimRecord collectible: CollectibleRecord payment: PaymentRecord paymentCollection: PaymentCollectionRecord postClaim: PostClaimRecord constructor(service: AtpServiceClient) { this._service = service this.claim = new ClaimRecord(service) this.collectible = new CollectibleRecord(service) this.payment = new PaymentRecord(service) this.paymentCollection = new PaymentCollectionRecord(service) this.postClaim = new PostClaimRecord(service) } createClaim( data?: AppBskySplxCreateClaim.InputSchema, opts?: AppBskySplxCreateClaim.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.createClaim', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxCreateClaim.toKnownErr(e) }) } createCollectible( data?: AppBskySplxCreateCollectible.InputSchema, opts?: AppBskySplxCreateCollectible.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.createCollectible', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxCreateCollectible.toKnownErr(e) }) } createPayment( data?: AppBskySplxCreatePayment.InputSchema, opts?: AppBskySplxCreatePayment.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.createPayment', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxCreatePayment.toKnownErr(e) }) } createPaymentCollection( data?: AppBskySplxCreatePaymentCollection.InputSchema, opts?: AppBskySplxCreatePaymentCollection.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.createPaymentCollection', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxCreatePaymentCollection.toKnownErr(e) }) } createPostClaim( data?: AppBskySplxCreatePostClaim.InputSchema, opts?: AppBskySplxCreatePostClaim.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.createPostClaim', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxCreatePostClaim.toKnownErr(e) }) } getClaim( params?: AppBskySplxGetClaim.QueryParams, opts?: AppBskySplxGetClaim.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getClaim', params, undefined, opts) .catch((e) => { throw AppBskySplxGetClaim.toKnownErr(e) }) } getClaims( params?: AppBskySplxGetClaims.QueryParams, opts?: AppBskySplxGetClaims.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getClaims', params, undefined, opts) .catch((e) => { throw AppBskySplxGetClaims.toKnownErr(e) }) } getCollectible( params?: AppBskySplxGetCollectible.QueryParams, opts?: AppBskySplxGetCollectible.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getCollectible', params, undefined, opts) .catch((e) => { throw AppBskySplxGetCollectible.toKnownErr(e) }) } getCollectibles( params?: AppBskySplxGetCollectibles.QueryParams, opts?: AppBskySplxGetCollectibles.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getCollectibles', params, undefined, opts) .catch((e) => { throw AppBskySplxGetCollectibles.toKnownErr(e) }) } getFrameMeta( params?: AppBskySplxGetFrameMeta.QueryParams, opts?: AppBskySplxGetFrameMeta.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getFrameMeta', params, undefined, opts) .catch((e) => { throw AppBskySplxGetFrameMeta.toKnownErr(e) }) } getPaymentCollection( params?: AppBskySplxGetPaymentCollection.QueryParams, opts?: AppBskySplxGetPaymentCollection.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getPaymentCollection', params, undefined, opts) .catch((e) => { throw AppBskySplxGetPaymentCollection.toKnownErr(e) }) } getRewardClaim( params?: AppBskySplxGetRewardClaim.QueryParams, opts?: AppBskySplxGetRewardClaim.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getRewardClaim', params, undefined, opts) .catch((e) => { throw AppBskySplxGetRewardClaim.toKnownErr(e) }) } getTopMinters( params?: AppBskySplxGetTopMinters.QueryParams, opts?: AppBskySplxGetTopMinters.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.getTopMinters', params, undefined, opts) .catch((e) => { throw AppBskySplxGetTopMinters.toKnownErr(e) }) } postFrameAction( data?: AppBskySplxPostFrameAction.InputSchema, opts?: AppBskySplxPostFrameAction.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.postFrameAction', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxPostFrameAction.toKnownErr(e) }) } requestTransaction( data?: AppBskySplxRequestTransaction.InputSchema, opts?: AppBskySplxRequestTransaction.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.requestTransaction', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxRequestTransaction.toKnownErr(e) }) } updatePayment( data?: AppBskySplxUpdatePayment.InputSchema, opts?: AppBskySplxUpdatePayment.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.splx.updatePayment', opts?.qp, data, opts) .catch((e) => { throw AppBskySplxUpdatePayment.toKnownErr(e) }) } } export class ClaimRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskySplxClaim.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.splx.claim', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskySplxClaim.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.splx.claim', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskySplxClaim.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.splx.claim' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.splx.claim', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.splx.claim', ...params }, { headers }, ) } } export class CollectibleRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskySplxCollectible.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.splx.collectible', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string cid: string value: AppBskySplxCollectible.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.splx.collectible', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskySplxCollectible.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.splx.collectible' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.splx.collectible', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.splx.collectible', ...params }, { headers }, ) } } export class PaymentRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskySplxPayment.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.splx.payment', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskySplxPayment.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.splx.payment', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskySplxPayment.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.splx.payment' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.splx.payment', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.splx.payment', ...params }, { headers }, ) } } export class PaymentCollectionRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskySplxPaymentCollection.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.splx.paymentCollection', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string cid: string value: AppBskySplxPaymentCollection.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.splx.paymentCollection', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskySplxPaymentCollection.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.splx.paymentCollection' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.splx.paymentCollection', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.splx.paymentCollection', ...params }, { headers }, ) } } export class PostClaimRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskySplxPostClaim.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.splx.postClaim', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string; cid: string; value: AppBskySplxPostClaim.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.splx.postClaim', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskySplxPostClaim.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.splx.postClaim' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.splx.postClaim', ...params, record }, { encoding: 'application/json', headers }, ) return res.data } async delete( params: Omit, headers?: Record, ): Promise { await this._service.xrpc.call( 'com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.splx.postClaim', ...params }, { headers }, ) } } export class UnspeccedNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } getPopular( params?: AppBskyUnspeccedGetPopular.QueryParams, opts?: AppBskyUnspeccedGetPopular.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.unspecced.getPopular', params, undefined, opts) .catch((e) => { throw AppBskyUnspeccedGetPopular.toKnownErr(e) }) } getPopularFeedGenerators( params?: AppBskyUnspeccedGetPopularFeedGenerators.QueryParams, opts?: AppBskyUnspeccedGetPopularFeedGenerators.CallOptions, ): Promise { return this._service.xrpc .call( 'app.bsky.unspecced.getPopularFeedGenerators', params, undefined, opts, ) .catch((e) => { throw AppBskyUnspeccedGetPopularFeedGenerators.toKnownErr(e) }) } getTimelineSkeleton( params?: AppBskyUnspeccedGetTimelineSkeleton.QueryParams, opts?: AppBskyUnspeccedGetTimelineSkeleton.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.unspecced.getTimelineSkeleton', params, undefined, opts) .catch((e) => { throw AppBskyUnspeccedGetTimelineSkeleton.toKnownErr(e) }) } searchActorsSkeleton( params?: AppBskyUnspeccedSearchActorsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchActorsSkeleton.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.unspecced.searchActorsSkeleton', params, undefined, opts) .catch((e) => { throw AppBskyUnspeccedSearchActorsSkeleton.toKnownErr(e) }) } searchPostsSkeleton( params?: AppBskyUnspeccedSearchPostsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchPostsSkeleton.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.unspecced.searchPostsSkeleton', params, undefined, opts) .catch((e) => { throw AppBskyUnspeccedSearchPostsSkeleton.toKnownErr(e) }) } }