/** * 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 ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount' 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 ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo' import * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos' import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes' import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus' import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail' import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail' import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle' import * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword' import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus' import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials' import * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature' import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle' import * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation' import * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation' 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 ComAtprotoRepoImportRepo from './types/com/atproto/repo/importRepo' import * as ComAtprotoRepoListMissingBlobs from './types/com/atproto/repo/listMissingBlobs' 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 ComAtprotoServerActivateAccount from './types/com/atproto/server/activateAccount' import * as ComAtprotoServerCheckAccountStatus from './types/com/atproto/server/checkAccountStatus' 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 ComAtprotoServerDeactivateAccount from './types/com/atproto/server/deactivateAccount' 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 ComAtprotoServerGetServiceAuth from './types/com/atproto/server/getServiceAuth' 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 ComAtprotoServerReserveSigningKey from './types/com/atproto/server/reserveSigningKey' 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 ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue' import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels' import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification' 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 AppBskyEmbedExternal from './types/app/bsky/embed/external' import * as AppBskyEmbedImages from './types/app/bsky/embed/images' import * as AppBskyEmbedRecord from './types/app/bsky/embed/record' import * as AppBskyEmbedRecordWithMedia from './types/app/bsky/embed/recordWithMedia' 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 AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions' 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 AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships' 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 AppBskyLabelerDefs from './types/app/bsky/labeler/defs' import * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices' import * as AppBskyLabelerService from './types/app/bsky/labeler/service' 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 AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs' import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators' import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton' import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions' import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton' import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton' import * as ChatBskyActorDeclaration from './types/chat/bsky/actor/declaration' import * as ChatBskyConvoDefs from './types/chat/bsky/convo/defs' import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf' import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo' import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog' import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages' import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo' import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos' import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo' import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage' import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo' import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead' import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata' import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext' import * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess' import * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/communication/createTemplate' import * as ToolsOzoneCommunicationDefs from './types/tools/ozone/communication/defs' import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate' import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates' import * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate' import * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs' import * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent' import * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent' import * as ToolsOzoneModerationGetRecord from './types/tools/ozone/moderation/getRecord' import * as ToolsOzoneModerationGetRepo from './types/tools/ozone/moderation/getRepo' import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents' import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses' import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos' export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs' export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount' 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 ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo' export * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos' export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes' export * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus' export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail' export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail' export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle' export * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword' export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus' export * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials' export * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature' export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle' export * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation' export * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation' 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 ComAtprotoRepoImportRepo from './types/com/atproto/repo/importRepo' export * as ComAtprotoRepoListMissingBlobs from './types/com/atproto/repo/listMissingBlobs' 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 ComAtprotoServerActivateAccount from './types/com/atproto/server/activateAccount' export * as ComAtprotoServerCheckAccountStatus from './types/com/atproto/server/checkAccountStatus' 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 ComAtprotoServerDeactivateAccount from './types/com/atproto/server/deactivateAccount' 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 ComAtprotoServerGetServiceAuth from './types/com/atproto/server/getServiceAuth' 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 ComAtprotoServerReserveSigningKey from './types/com/atproto/server/reserveSigningKey' 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 ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue' export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels' export * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification' 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 AppBskyEmbedExternal from './types/app/bsky/embed/external' export * as AppBskyEmbedImages from './types/app/bsky/embed/images' export * as AppBskyEmbedRecord from './types/app/bsky/embed/record' export * as AppBskyEmbedRecordWithMedia from './types/app/bsky/embed/recordWithMedia' 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 AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions' 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 AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships' 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 AppBskyLabelerDefs from './types/app/bsky/labeler/defs' export * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices' export * as AppBskyLabelerService from './types/app/bsky/labeler/service' 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 AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs' export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators' export * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton' export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions' export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton' export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton' export * as ChatBskyActorDeclaration from './types/chat/bsky/actor/declaration' export * as ChatBskyConvoDefs from './types/chat/bsky/convo/defs' export * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf' export * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo' export * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' export * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog' export * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages' export * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo' export * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos' export * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo' export * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage' export * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' export * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo' export * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead' export * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata' export * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext' export * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess' export * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/communication/createTemplate' export * as ToolsOzoneCommunicationDefs from './types/tools/ozone/communication/defs' export * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate' export * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates' export * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate' export * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs' export * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent' export * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent' export * as ToolsOzoneModerationGetRecord from './types/tools/ozone/moderation/getRecord' export * as ToolsOzoneModerationGetRepo from './types/tools/ozone/moderation/getRepo' export * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents' export * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses' export * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos' 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', DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal', } export const APP_BSKY_FEED = { DefsRequestLess: 'app.bsky.feed.defs#requestLess', DefsRequestMore: 'app.bsky.feed.defs#requestMore', DefsClickthroughItem: 'app.bsky.feed.defs#clickthroughItem', DefsClickthroughAuthor: 'app.bsky.feed.defs#clickthroughAuthor', DefsClickthroughReposter: 'app.bsky.feed.defs#clickthroughReposter', DefsClickthroughEmbed: 'app.bsky.feed.defs#clickthroughEmbed', DefsInteractionSeen: 'app.bsky.feed.defs#interactionSeen', DefsInteractionLike: 'app.bsky.feed.defs#interactionLike', DefsInteractionRepost: 'app.bsky.feed.defs#interactionRepost', DefsInteractionReply: 'app.bsky.feed.defs#interactionReply', DefsInteractionQuote: 'app.bsky.feed.defs#interactionQuote', DefsInteractionShare: 'app.bsky.feed.defs#interactionShare', } export const APP_BSKY_GRAPH = { DefsModlist: 'app.bsky.graph.defs#modlist', DefsCuratelist: 'app.bsky.graph.defs#curatelist', } export const TOOLS_OZONE_MODERATION = { DefsReviewOpen: 'tools.ozone.moderation.defs#reviewOpen', DefsReviewEscalated: 'tools.ozone.moderation.defs#reviewEscalated', DefsReviewClosed: 'tools.ozone.moderation.defs#reviewClosed', DefsReviewNone: 'tools.ozone.moderation.defs#reviewNone', } 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 chat: ChatNS tools: ToolsNS constructor(baseClient: AtpBaseClient, xrpcService: XrpcServiceClient) { this._baseClient = baseClient this.xrpc = xrpcService this.com = new ComNS(this) this.app = new AppNS(this) this.chat = new ChatNS(this) this.tools = new ToolsNS(this) } setHeader(key: string, value: string): void { this.xrpc.setHeader(key, value) } } export class ComNS { _service: AtpServiceClient atproto: ComAtprotoNS constructor(service: AtpServiceClient) { this._service = service this.atproto = new ComAtprotoNS(service) } } export class ComAtprotoNS { _service: AtpServiceClient admin: ComAtprotoAdminNS identity: ComAtprotoIdentityNS label: ComAtprotoLabelNS moderation: ComAtprotoModerationNS repo: ComAtprotoRepoNS server: ComAtprotoServerNS sync: ComAtprotoSyncNS temp: ComAtprotoTempNS constructor(service: AtpServiceClient) { this._service = service this.admin = new ComAtprotoAdminNS(service) this.identity = new ComAtprotoIdentityNS(service) this.label = new ComAtprotoLabelNS(service) this.moderation = new ComAtprotoModerationNS(service) this.repo = new ComAtprotoRepoNS(service) this.server = new ComAtprotoServerNS(service) this.sync = new ComAtprotoSyncNS(service) this.temp = new ComAtprotoTempNS(service) } } export class ComAtprotoAdminNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } deleteAccount( data?: ComAtprotoAdminDeleteAccount.InputSchema, opts?: ComAtprotoAdminDeleteAccount.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.deleteAccount', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminDeleteAccount.toKnownErr(e) }) } 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) }) } getAccountInfo( params?: ComAtprotoAdminGetAccountInfo.QueryParams, opts?: ComAtprotoAdminGetAccountInfo.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getAccountInfo', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetAccountInfo.toKnownErr(e) }) } getAccountInfos( params?: ComAtprotoAdminGetAccountInfos.QueryParams, opts?: ComAtprotoAdminGetAccountInfos.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getAccountInfos', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetAccountInfos.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) }) } getSubjectStatus( params?: ComAtprotoAdminGetSubjectStatus.QueryParams, opts?: ComAtprotoAdminGetSubjectStatus.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.getSubjectStatus', params, undefined, opts) .catch((e) => { throw ComAtprotoAdminGetSubjectStatus.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) }) } 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) }) } updateAccountPassword( data?: ComAtprotoAdminUpdateAccountPassword.InputSchema, opts?: ComAtprotoAdminUpdateAccountPassword.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.updateAccountPassword', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminUpdateAccountPassword.toKnownErr(e) }) } updateSubjectStatus( data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema, opts?: ComAtprotoAdminUpdateSubjectStatus.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.admin.updateSubjectStatus', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoAdminUpdateSubjectStatus.toKnownErr(e) }) } } export class ComAtprotoIdentityNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } getRecommendedDidCredentials( params?: ComAtprotoIdentityGetRecommendedDidCredentials.QueryParams, opts?: ComAtprotoIdentityGetRecommendedDidCredentials.CallOptions, ): Promise { return this._service.xrpc .call( 'com.atproto.identity.getRecommendedDidCredentials', params, undefined, opts, ) .catch((e) => { throw ComAtprotoIdentityGetRecommendedDidCredentials.toKnownErr(e) }) } requestPlcOperationSignature( data?: ComAtprotoIdentityRequestPlcOperationSignature.InputSchema, opts?: ComAtprotoIdentityRequestPlcOperationSignature.CallOptions, ): Promise { return this._service.xrpc .call( 'com.atproto.identity.requestPlcOperationSignature', opts?.qp, data, opts, ) .catch((e) => { throw ComAtprotoIdentityRequestPlcOperationSignature.toKnownErr(e) }) } 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) }) } signPlcOperation( data?: ComAtprotoIdentitySignPlcOperation.InputSchema, opts?: ComAtprotoIdentitySignPlcOperation.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.identity.signPlcOperation', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoIdentitySignPlcOperation.toKnownErr(e) }) } submitPlcOperation( data?: ComAtprotoIdentitySubmitPlcOperation.InputSchema, opts?: ComAtprotoIdentitySubmitPlcOperation.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.identity.submitPlcOperation', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoIdentitySubmitPlcOperation.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 ComAtprotoLabelNS { _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 ComAtprotoModerationNS { _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 ComAtprotoRepoNS { _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) }) } importRepo( data?: ComAtprotoRepoImportRepo.InputSchema, opts?: ComAtprotoRepoImportRepo.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.importRepo', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoRepoImportRepo.toKnownErr(e) }) } listMissingBlobs( params?: ComAtprotoRepoListMissingBlobs.QueryParams, opts?: ComAtprotoRepoListMissingBlobs.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.repo.listMissingBlobs', params, undefined, opts) .catch((e) => { throw ComAtprotoRepoListMissingBlobs.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 ComAtprotoServerNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } activateAccount( data?: ComAtprotoServerActivateAccount.InputSchema, opts?: ComAtprotoServerActivateAccount.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.activateAccount', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerActivateAccount.toKnownErr(e) }) } checkAccountStatus( params?: ComAtprotoServerCheckAccountStatus.QueryParams, opts?: ComAtprotoServerCheckAccountStatus.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.checkAccountStatus', params, undefined, opts) .catch((e) => { throw ComAtprotoServerCheckAccountStatus.toKnownErr(e) }) } 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) }) } deactivateAccount( data?: ComAtprotoServerDeactivateAccount.InputSchema, opts?: ComAtprotoServerDeactivateAccount.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.deactivateAccount', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerDeactivateAccount.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) }) } getServiceAuth( params?: ComAtprotoServerGetServiceAuth.QueryParams, opts?: ComAtprotoServerGetServiceAuth.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.getServiceAuth', params, undefined, opts) .catch((e) => { throw ComAtprotoServerGetServiceAuth.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) }) } reserveSigningKey( data?: ComAtprotoServerReserveSigningKey.InputSchema, opts?: ComAtprotoServerReserveSigningKey.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.server.reserveSigningKey', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoServerReserveSigningKey.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 ComAtprotoSyncNS { _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 ComAtprotoTempNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } checkSignupQueue( params?: ComAtprotoTempCheckSignupQueue.QueryParams, opts?: ComAtprotoTempCheckSignupQueue.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.temp.checkSignupQueue', params, undefined, opts) .catch((e) => { throw ComAtprotoTempCheckSignupQueue.toKnownErr(e) }) } fetchLabels( params?: ComAtprotoTempFetchLabels.QueryParams, opts?: ComAtprotoTempFetchLabels.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.temp.fetchLabels', params, undefined, opts) .catch((e) => { throw ComAtprotoTempFetchLabels.toKnownErr(e) }) } requestPhoneVerification( data?: ComAtprotoTempRequestPhoneVerification.InputSchema, opts?: ComAtprotoTempRequestPhoneVerification.CallOptions, ): Promise { return this._service.xrpc .call('com.atproto.temp.requestPhoneVerification', opts?.qp, data, opts) .catch((e) => { throw ComAtprotoTempRequestPhoneVerification.toKnownErr(e) }) } } export class AppNS { _service: AtpServiceClient bsky: AppBskyNS constructor(service: AtpServiceClient) { this._service = service this.bsky = new AppBskyNS(service) } } export class AppBskyNS { _service: AtpServiceClient actor: AppBskyActorNS embed: AppBskyEmbedNS feed: AppBskyFeedNS graph: AppBskyGraphNS labeler: AppBskyLabelerNS notification: AppBskyNotificationNS richtext: AppBskyRichtextNS unspecced: AppBskyUnspeccedNS constructor(service: AtpServiceClient) { this._service = service this.actor = new AppBskyActorNS(service) this.embed = new AppBskyEmbedNS(service) this.feed = new AppBskyFeedNS(service) this.graph = new AppBskyGraphNS(service) this.labeler = new AppBskyLabelerNS(service) this.notification = new AppBskyNotificationNS(service) this.richtext = new AppBskyRichtextNS(service) this.unspecced = new AppBskyUnspeccedNS(service) } } export class AppBskyActorNS { _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 AppBskyEmbedNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } } export class AppBskyFeedNS { _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) }) } sendInteractions( data?: AppBskyFeedSendInteractions.InputSchema, opts?: AppBskyFeedSendInteractions.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.feed.sendInteractions', opts?.qp, data, opts) .catch((e) => { throw AppBskyFeedSendInteractions.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 AppBskyGraphNS { _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) }) } getRelationships( params?: AppBskyGraphGetRelationships.QueryParams, opts?: AppBskyGraphGetRelationships.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.graph.getRelationships', params, undefined, opts) .catch((e) => { throw AppBskyGraphGetRelationships.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 AppBskyLabelerNS { _service: AtpServiceClient service: ServiceRecord constructor(service: AtpServiceClient) { this._service = service this.service = new ServiceRecord(service) } getServices( params?: AppBskyLabelerGetServices.QueryParams, opts?: AppBskyLabelerGetServices.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.labeler.getServices', params, undefined, opts) .catch((e) => { throw AppBskyLabelerGetServices.toKnownErr(e) }) } } export class ServiceRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: AppBskyLabelerService.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'app.bsky.labeler.service', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string cid: string value: AppBskyLabelerService.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'app.bsky.labeler.service', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: AppBskyLabelerService.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'app.bsky.labeler.service' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'app.bsky.labeler.service', 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.labeler.service', ...params }, { headers }, ) } } export class AppBskyNotificationNS { _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 AppBskyRichtextNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } } export class AppBskyUnspeccedNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } 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) }) } getSuggestionsSkeleton( params?: AppBskyUnspeccedGetSuggestionsSkeleton.QueryParams, opts?: AppBskyUnspeccedGetSuggestionsSkeleton.CallOptions, ): Promise { return this._service.xrpc .call( 'app.bsky.unspecced.getSuggestionsSkeleton', params, undefined, opts, ) .catch((e) => { throw AppBskyUnspeccedGetSuggestionsSkeleton.toKnownErr(e) }) } getTaggedSuggestions( params?: AppBskyUnspeccedGetTaggedSuggestions.QueryParams, opts?: AppBskyUnspeccedGetTaggedSuggestions.CallOptions, ): Promise { return this._service.xrpc .call('app.bsky.unspecced.getTaggedSuggestions', params, undefined, opts) .catch((e) => { throw AppBskyUnspeccedGetTaggedSuggestions.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) }) } } export class ChatNS { _service: AtpServiceClient bsky: ChatBskyNS constructor(service: AtpServiceClient) { this._service = service this.bsky = new ChatBskyNS(service) } } export class ChatBskyNS { _service: AtpServiceClient actor: ChatBskyActorNS convo: ChatBskyConvoNS moderation: ChatBskyModerationNS constructor(service: AtpServiceClient) { this._service = service this.actor = new ChatBskyActorNS(service) this.convo = new ChatBskyConvoNS(service) this.moderation = new ChatBskyModerationNS(service) } } export class ChatBskyActorNS { _service: AtpServiceClient declaration: DeclarationRecord constructor(service: AtpServiceClient) { this._service = service this.declaration = new DeclarationRecord(service) } } export class DeclarationRecord { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } async list( params: Omit, ): Promise<{ cursor?: string records: { uri: string; value: ChatBskyActorDeclaration.Record }[] }> { const res = await this._service.xrpc.call('com.atproto.repo.listRecords', { collection: 'chat.bsky.actor.declaration', ...params, }) return res.data } async get( params: Omit, ): Promise<{ uri: string cid: string value: ChatBskyActorDeclaration.Record }> { const res = await this._service.xrpc.call('com.atproto.repo.getRecord', { collection: 'chat.bsky.actor.declaration', ...params, }) return res.data } async create( params: Omit< ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, record: ChatBskyActorDeclaration.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { record.$type = 'chat.bsky.actor.declaration' const res = await this._service.xrpc.call( 'com.atproto.repo.createRecord', undefined, { collection: 'chat.bsky.actor.declaration', 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: 'chat.bsky.actor.declaration', ...params }, { headers }, ) } } export class ChatBskyConvoNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } deleteMessageForSelf( data?: ChatBskyConvoDeleteMessageForSelf.InputSchema, opts?: ChatBskyConvoDeleteMessageForSelf.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.deleteMessageForSelf', opts?.qp, data, opts) .catch((e) => { throw ChatBskyConvoDeleteMessageForSelf.toKnownErr(e) }) } getConvo( params?: ChatBskyConvoGetConvo.QueryParams, opts?: ChatBskyConvoGetConvo.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.getConvo', params, undefined, opts) .catch((e) => { throw ChatBskyConvoGetConvo.toKnownErr(e) }) } getConvoForMembers( params?: ChatBskyConvoGetConvoForMembers.QueryParams, opts?: ChatBskyConvoGetConvoForMembers.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.getConvoForMembers', params, undefined, opts) .catch((e) => { throw ChatBskyConvoGetConvoForMembers.toKnownErr(e) }) } getLog( params?: ChatBskyConvoGetLog.QueryParams, opts?: ChatBskyConvoGetLog.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.getLog', params, undefined, opts) .catch((e) => { throw ChatBskyConvoGetLog.toKnownErr(e) }) } getMessages( params?: ChatBskyConvoGetMessages.QueryParams, opts?: ChatBskyConvoGetMessages.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.getMessages', params, undefined, opts) .catch((e) => { throw ChatBskyConvoGetMessages.toKnownErr(e) }) } leaveConvo( data?: ChatBskyConvoLeaveConvo.InputSchema, opts?: ChatBskyConvoLeaveConvo.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.leaveConvo', opts?.qp, data, opts) .catch((e) => { throw ChatBskyConvoLeaveConvo.toKnownErr(e) }) } listConvos( params?: ChatBskyConvoListConvos.QueryParams, opts?: ChatBskyConvoListConvos.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.listConvos', params, undefined, opts) .catch((e) => { throw ChatBskyConvoListConvos.toKnownErr(e) }) } muteConvo( data?: ChatBskyConvoMuteConvo.InputSchema, opts?: ChatBskyConvoMuteConvo.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.muteConvo', opts?.qp, data, opts) .catch((e) => { throw ChatBskyConvoMuteConvo.toKnownErr(e) }) } sendMessage( data?: ChatBskyConvoSendMessage.InputSchema, opts?: ChatBskyConvoSendMessage.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.sendMessage', opts?.qp, data, opts) .catch((e) => { throw ChatBskyConvoSendMessage.toKnownErr(e) }) } sendMessageBatch( data?: ChatBskyConvoSendMessageBatch.InputSchema, opts?: ChatBskyConvoSendMessageBatch.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.sendMessageBatch', opts?.qp, data, opts) .catch((e) => { throw ChatBskyConvoSendMessageBatch.toKnownErr(e) }) } unmuteConvo( data?: ChatBskyConvoUnmuteConvo.InputSchema, opts?: ChatBskyConvoUnmuteConvo.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.unmuteConvo', opts?.qp, data, opts) .catch((e) => { throw ChatBskyConvoUnmuteConvo.toKnownErr(e) }) } updateRead( data?: ChatBskyConvoUpdateRead.InputSchema, opts?: ChatBskyConvoUpdateRead.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.convo.updateRead', opts?.qp, data, opts) .catch((e) => { throw ChatBskyConvoUpdateRead.toKnownErr(e) }) } } export class ChatBskyModerationNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } getActorMetadata( params?: ChatBskyModerationGetActorMetadata.QueryParams, opts?: ChatBskyModerationGetActorMetadata.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.moderation.getActorMetadata', params, undefined, opts) .catch((e) => { throw ChatBskyModerationGetActorMetadata.toKnownErr(e) }) } getMessageContext( params?: ChatBskyModerationGetMessageContext.QueryParams, opts?: ChatBskyModerationGetMessageContext.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.moderation.getMessageContext', params, undefined, opts) .catch((e) => { throw ChatBskyModerationGetMessageContext.toKnownErr(e) }) } updateActorAccess( data?: ChatBskyModerationUpdateActorAccess.InputSchema, opts?: ChatBskyModerationUpdateActorAccess.CallOptions, ): Promise { return this._service.xrpc .call('chat.bsky.moderation.updateActorAccess', opts?.qp, data, opts) .catch((e) => { throw ChatBskyModerationUpdateActorAccess.toKnownErr(e) }) } } export class ToolsNS { _service: AtpServiceClient ozone: ToolsOzoneNS constructor(service: AtpServiceClient) { this._service = service this.ozone = new ToolsOzoneNS(service) } } export class ToolsOzoneNS { _service: AtpServiceClient communication: ToolsOzoneCommunicationNS moderation: ToolsOzoneModerationNS constructor(service: AtpServiceClient) { this._service = service this.communication = new ToolsOzoneCommunicationNS(service) this.moderation = new ToolsOzoneModerationNS(service) } } export class ToolsOzoneCommunicationNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } createTemplate( data?: ToolsOzoneCommunicationCreateTemplate.InputSchema, opts?: ToolsOzoneCommunicationCreateTemplate.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.communication.createTemplate', opts?.qp, data, opts) .catch((e) => { throw ToolsOzoneCommunicationCreateTemplate.toKnownErr(e) }) } deleteTemplate( data?: ToolsOzoneCommunicationDeleteTemplate.InputSchema, opts?: ToolsOzoneCommunicationDeleteTemplate.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.communication.deleteTemplate', opts?.qp, data, opts) .catch((e) => { throw ToolsOzoneCommunicationDeleteTemplate.toKnownErr(e) }) } listTemplates( params?: ToolsOzoneCommunicationListTemplates.QueryParams, opts?: ToolsOzoneCommunicationListTemplates.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.communication.listTemplates', params, undefined, opts) .catch((e) => { throw ToolsOzoneCommunicationListTemplates.toKnownErr(e) }) } updateTemplate( data?: ToolsOzoneCommunicationUpdateTemplate.InputSchema, opts?: ToolsOzoneCommunicationUpdateTemplate.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.communication.updateTemplate', opts?.qp, data, opts) .catch((e) => { throw ToolsOzoneCommunicationUpdateTemplate.toKnownErr(e) }) } } export class ToolsOzoneModerationNS { _service: AtpServiceClient constructor(service: AtpServiceClient) { this._service = service } emitEvent( data?: ToolsOzoneModerationEmitEvent.InputSchema, opts?: ToolsOzoneModerationEmitEvent.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.moderation.emitEvent', opts?.qp, data, opts) .catch((e) => { throw ToolsOzoneModerationEmitEvent.toKnownErr(e) }) } getEvent( params?: ToolsOzoneModerationGetEvent.QueryParams, opts?: ToolsOzoneModerationGetEvent.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.moderation.getEvent', params, undefined, opts) .catch((e) => { throw ToolsOzoneModerationGetEvent.toKnownErr(e) }) } getRecord( params?: ToolsOzoneModerationGetRecord.QueryParams, opts?: ToolsOzoneModerationGetRecord.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.moderation.getRecord', params, undefined, opts) .catch((e) => { throw ToolsOzoneModerationGetRecord.toKnownErr(e) }) } getRepo( params?: ToolsOzoneModerationGetRepo.QueryParams, opts?: ToolsOzoneModerationGetRepo.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.moderation.getRepo', params, undefined, opts) .catch((e) => { throw ToolsOzoneModerationGetRepo.toKnownErr(e) }) } queryEvents( params?: ToolsOzoneModerationQueryEvents.QueryParams, opts?: ToolsOzoneModerationQueryEvents.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.moderation.queryEvents', params, undefined, opts) .catch((e) => { throw ToolsOzoneModerationQueryEvents.toKnownErr(e) }) } queryStatuses( params?: ToolsOzoneModerationQueryStatuses.QueryParams, opts?: ToolsOzoneModerationQueryStatuses.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.moderation.queryStatuses', params, undefined, opts) .catch((e) => { throw ToolsOzoneModerationQueryStatuses.toKnownErr(e) }) } searchRepos( params?: ToolsOzoneModerationSearchRepos.QueryParams, opts?: ToolsOzoneModerationSearchRepos.CallOptions, ): Promise { return this._service.xrpc .call('tools.ozone.moderation.searchRepos', params, undefined, opts) .catch((e) => { throw ToolsOzoneModerationSearchRepos.toKnownErr(e) }) } }