@atproto/ozone
Version:
Backend service for moderating the Bluesky network.
1,101 lines (1,027 loc) • 132 kB
text/typescript
/**
* GENERATED CODE - DO NOT MODIFY
*/
import {
type Auth,
type Options as XrpcOptions,
Server as XrpcServer,
type StreamConfigOrHandler,
type MethodConfigOrHandler,
createServer as createXrpcServer,
} from '@atproto/xrpc-server'
import { schemas } from './lexicons.js'
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences.js'
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile.js'
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles.js'
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions.js'
import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences.js'
import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors.js'
import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead.js'
import * as AppBskyAgeassuranceBegin from './types/app/bsky/ageassurance/begin.js'
import * as AppBskyAgeassuranceGetConfig from './types/app/bsky/ageassurance/getConfig.js'
import * as AppBskyAgeassuranceGetState from './types/app/bsky/ageassurance/getState.js'
import * as AppBskyBookmarkCreateBookmark from './types/app/bsky/bookmark/createBookmark.js'
import * as AppBskyBookmarkDeleteBookmark from './types/app/bsky/bookmark/deleteBookmark.js'
import * as AppBskyBookmarkGetBookmarks from './types/app/bsky/bookmark/getBookmarks.js'
import * as AppBskyContactDismissMatch from './types/app/bsky/contact/dismissMatch.js'
import * as AppBskyContactGetMatches from './types/app/bsky/contact/getMatches.js'
import * as AppBskyContactGetSyncStatus from './types/app/bsky/contact/getSyncStatus.js'
import * as AppBskyContactImportContacts from './types/app/bsky/contact/importContacts.js'
import * as AppBskyContactRemoveData from './types/app/bsky/contact/removeData.js'
import * as AppBskyContactSendNotification from './types/app/bsky/contact/sendNotification.js'
import * as AppBskyContactStartPhoneVerification from './types/app/bsky/contact/startPhoneVerification.js'
import * as AppBskyContactVerifyPhone from './types/app/bsky/contact/verifyPhone.js'
import * as AppBskyDraftCreateDraft from './types/app/bsky/draft/createDraft.js'
import * as AppBskyDraftDeleteDraft from './types/app/bsky/draft/deleteDraft.js'
import * as AppBskyDraftGetDrafts from './types/app/bsky/draft/getDrafts.js'
import * as AppBskyDraftUpdateDraft from './types/app/bsky/draft/updateDraft.js'
import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator.js'
import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds.js'
import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes.js'
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed.js'
import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed.js'
import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator.js'
import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators.js'
import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline.js'
import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts.js'
import * as AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions.js'
import * as AppBskyGraphGetActorStarterPacks from './types/app/bsky/graph/getActorStarterPacks.js'
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks.js'
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers.js'
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows.js'
import * as AppBskyGraphGetKnownFollowers from './types/app/bsky/graph/getKnownFollowers.js'
import * as AppBskyGraphGetList from './types/app/bsky/graph/getList.js'
import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks.js'
import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes.js'
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists.js'
import * as AppBskyGraphGetListsWithMembership from './types/app/bsky/graph/getListsWithMembership.js'
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes.js'
import * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships.js'
import * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack.js'
import * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks.js'
import * as AppBskyGraphGetStarterPacksWithMembership from './types/app/bsky/graph/getStarterPacksWithMembership.js'
import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor.js'
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor.js'
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList.js'
import * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread.js'
import * as AppBskyGraphSearchStarterPacks from './types/app/bsky/graph/searchStarterPacks.js'
import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor.js'
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList.js'
import * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread.js'
import * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
import * as AppBskyNotificationGetPreferences from './types/app/bsky/notification/getPreferences.js'
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount.js'
import * as AppBskyNotificationListActivitySubscriptions from './types/app/bsky/notification/listActivitySubscriptions.js'
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications.js'
import * as AppBskyNotificationPutActivitySubscription from './types/app/bsky/notification/putActivitySubscription.js'
import * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'
import * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'
import * as AppBskyNotificationUnregisterPush from './types/app/bsky/notification/unregisterPush.js'
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
import * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
import * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacks from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.js'
import * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.js'
import * as AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton from './types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.js'
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
import * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecced/getPostThreadOtherV2.js'
import * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.js'
import * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
import * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
import * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/unspecced/getSuggestedOnboardingUsers.js'
import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
import * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
import * as AppBskyUnspeccedGetSuggestedUsersSkeleton from './types/app/bsky/unspecced/getSuggestedUsersSkeleton.js'
import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
import * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'
import * as AppBskyUnspeccedGetTrends from './types/app/bsky/unspecced/getTrends.js'
import * as AppBskyUnspeccedGetTrendsSkeleton from './types/app/bsky/unspecced/getTrendsSkeleton.js'
import * as AppBskyUnspeccedInitAgeAssurance from './types/app/bsky/unspecced/initAgeAssurance.js'
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton.js'
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton.js'
import * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton.js'
import * as AppBskyVideoGetJobStatus from './types/app/bsky/video/getJobStatus.js'
import * as AppBskyVideoGetUploadLimits from './types/app/bsky/video/getUploadLimits.js'
import * as AppBskyVideoUploadVideo from './types/app/bsky/video/uploadVideo.js'
import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount.js'
import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData.js'
import * as ChatBskyConvoAcceptConvo from './types/chat/bsky/convo/acceptConvo.js'
import * as ChatBskyConvoAddReaction from './types/chat/bsky/convo/addReaction.js'
import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf.js'
import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo.js'
import * as ChatBskyConvoGetConvoAvailability from './types/chat/bsky/convo/getConvoAvailability.js'
import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers.js'
import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog.js'
import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages.js'
import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo.js'
import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos.js'
import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo.js'
import * as ChatBskyConvoRemoveReaction from './types/chat/bsky/convo/removeReaction.js'
import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage.js'
import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch.js'
import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo.js'
import * as ChatBskyConvoUpdateAllRead from './types/chat/bsky/convo/updateAllRead.js'
import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead.js'
import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata.js'
import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext.js'
import * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess.js'
import * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount.js'
import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites.js'
import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes.js'
import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites.js'
import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo.js'
import * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos.js'
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes.js'
import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus.js'
import * as ComAtprotoAdminSearchAccounts from './types/com/atproto/admin/searchAccounts.js'
import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail.js'
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail.js'
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle.js'
import * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword.js'
import * as ComAtprotoAdminUpdateAccountSigningKey from './types/com/atproto/admin/updateAccountSigningKey.js'
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus.js'
import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials.js'
import * as ComAtprotoIdentityRefreshIdentity from './types/com/atproto/identity/refreshIdentity.js'
import * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature.js'
import * as ComAtprotoIdentityResolveDid from './types/com/atproto/identity/resolveDid.js'
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle.js'
import * as ComAtprotoIdentityResolveIdentity from './types/com/atproto/identity/resolveIdentity.js'
import * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation.js'
import * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation.js'
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle.js'
import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels.js'
import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels.js'
import * as ComAtprotoLexiconResolveLexicon from './types/com/atproto/lexicon/resolveLexicon.js'
import * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport.js'
import * as ComAtprotoRepoApplyWrites from './types/com/atproto/repo/applyWrites.js'
import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord.js'
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord.js'
import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo.js'
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord.js'
import * as ComAtprotoRepoImportRepo from './types/com/atproto/repo/importRepo.js'
import * as ComAtprotoRepoListMissingBlobs from './types/com/atproto/repo/listMissingBlobs.js'
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords.js'
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord.js'
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob.js'
import * as ComAtprotoServerActivateAccount from './types/com/atproto/server/activateAccount.js'
import * as ComAtprotoServerCheckAccountStatus from './types/com/atproto/server/checkAccountStatus.js'
import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail.js'
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount.js'
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword.js'
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode.js'
import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes.js'
import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession.js'
import * as ComAtprotoServerDeactivateAccount from './types/com/atproto/server/deactivateAccount.js'
import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount.js'
import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession.js'
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer.js'
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes.js'
import * as ComAtprotoServerGetServiceAuth from './types/com/atproto/server/getServiceAuth.js'
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession.js'
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords.js'
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession.js'
import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete.js'
import * as ComAtprotoServerRequestEmailConfirmation from './types/com/atproto/server/requestEmailConfirmation.js'
import * as ComAtprotoServerRequestEmailUpdate from './types/com/atproto/server/requestEmailUpdate.js'
import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset.js'
import * as ComAtprotoServerReserveSigningKey from './types/com/atproto/server/reserveSigningKey.js'
import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword.js'
import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword.js'
import * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail.js'
import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob.js'
import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks.js'
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout.js'
import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead.js'
import * as ComAtprotoSyncGetHostStatus from './types/com/atproto/sync/getHostStatus.js'
import * as ComAtprotoSyncGetLatestCommit from './types/com/atproto/sync/getLatestCommit.js'
import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord.js'
import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo.js'
import * as ComAtprotoSyncGetRepoStatus from './types/com/atproto/sync/getRepoStatus.js'
import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs.js'
import * as ComAtprotoSyncListHosts from './types/com/atproto/sync/listHosts.js'
import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos.js'
import * as ComAtprotoSyncListReposByCollection from './types/com/atproto/sync/listReposByCollection.js'
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate.js'
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl.js'
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos.js'
import * as ComAtprotoTempAddReservedHandle from './types/com/atproto/temp/addReservedHandle.js'
import * as ComAtprotoTempCheckHandleAvailability from './types/com/atproto/temp/checkHandleAvailability.js'
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue.js'
import * as ComAtprotoTempDereferenceScope from './types/com/atproto/temp/dereferenceScope.js'
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels.js'
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification.js'
import * as ComAtprotoTempRevokeAccountCredentials from './types/com/atproto/temp/revokeAccountCredentials.js'
import * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/communication/createTemplate.js'
import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate.js'
import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates.js'
import * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate.js'
import * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting/getAccountHistory.js'
import * as ToolsOzoneModerationCancelScheduledActions from './types/tools/ozone/moderation/cancelScheduledActions.js'
import * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js'
import * as ToolsOzoneModerationGetAccountTimeline from './types/tools/ozone/moderation/getAccountTimeline.js'
import * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js'
import * as ToolsOzoneModerationGetRecord from './types/tools/ozone/moderation/getRecord.js'
import * as ToolsOzoneModerationGetRecords from './types/tools/ozone/moderation/getRecords.js'
import * as ToolsOzoneModerationGetRepo from './types/tools/ozone/moderation/getRepo.js'
import * as ToolsOzoneModerationGetReporterStats from './types/tools/ozone/moderation/getReporterStats.js'
import * as ToolsOzoneModerationGetRepos from './types/tools/ozone/moderation/getRepos.js'
import * as ToolsOzoneModerationGetSubjects from './types/tools/ozone/moderation/getSubjects.js'
import * as ToolsOzoneModerationListScheduledActions from './types/tools/ozone/moderation/listScheduledActions.js'
import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents.js'
import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses.js'
import * as ToolsOzoneModerationScheduleAction from './types/tools/ozone/moderation/scheduleAction.js'
import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos.js'
import * as ToolsOzoneSafelinkAddRule from './types/tools/ozone/safelink/addRule.js'
import * as ToolsOzoneSafelinkQueryEvents from './types/tools/ozone/safelink/queryEvents.js'
import * as ToolsOzoneSafelinkQueryRules from './types/tools/ozone/safelink/queryRules.js'
import * as ToolsOzoneSafelinkRemoveRule from './types/tools/ozone/safelink/removeRule.js'
import * as ToolsOzoneSafelinkUpdateRule from './types/tools/ozone/safelink/updateRule.js'
import * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig.js'
import * as ToolsOzoneSetAddValues from './types/tools/ozone/set/addValues.js'
import * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet.js'
import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues.js'
import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues.js'
import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets.js'
import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet.js'
import * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions.js'
import * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions.js'
import * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption.js'
import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation.js'
import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts.js'
import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts.js'
import * as ToolsOzoneTeamAddMember from './types/tools/ozone/team/addMember.js'
import * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember.js'
import * as ToolsOzoneTeamListMembers from './types/tools/ozone/team/listMembers.js'
import * as ToolsOzoneTeamUpdateMember from './types/tools/ozone/team/updateMember.js'
import * as ToolsOzoneVerificationGrantVerifications from './types/tools/ozone/verification/grantVerifications.js'
import * as ToolsOzoneVerificationListVerifications from './types/tools/ozone/verification/listVerifications.js'
import * as ToolsOzoneVerificationRevokeVerifications from './types/tools/ozone/verification/revokeVerifications.js'
export const APP_BSKY_ACTOR = {
StatusLive: 'app.bsky.actor.status#live',
}
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',
DefsContentModeUnspecified: 'app.bsky.feed.defs#contentModeUnspecified',
DefsContentModeVideo: 'app.bsky.feed.defs#contentModeVideo',
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',
DefsReferencelist: 'app.bsky.graph.defs#referencelist',
}
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 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',
DefsTimelineEventPlcCreate:
'tools.ozone.moderation.defs#timelineEventPlcCreate',
DefsTimelineEventPlcOperation:
'tools.ozone.moderation.defs#timelineEventPlcOperation',
DefsTimelineEventPlcTombstone:
'tools.ozone.moderation.defs#timelineEventPlcTombstone',
}
export const TOOLS_OZONE_REPORT = {
DefsReasonAppeal: 'tools.ozone.report.defs#reasonAppeal',
DefsReasonOther: 'tools.ozone.report.defs#reasonOther',
DefsReasonViolenceAnimal: 'tools.ozone.report.defs#reasonViolenceAnimal',
DefsReasonViolenceThreats: 'tools.ozone.report.defs#reasonViolenceThreats',
DefsReasonViolenceGraphicContent:
'tools.ozone.report.defs#reasonViolenceGraphicContent',
DefsReasonViolenceGlorification:
'tools.ozone.report.defs#reasonViolenceGlorification',
DefsReasonViolenceExtremistContent:
'tools.ozone.report.defs#reasonViolenceExtremistContent',
DefsReasonViolenceTrafficking:
'tools.ozone.report.defs#reasonViolenceTrafficking',
DefsReasonViolenceOther: 'tools.ozone.report.defs#reasonViolenceOther',
DefsReasonSexualAbuseContent:
'tools.ozone.report.defs#reasonSexualAbuseContent',
DefsReasonSexualNCII: 'tools.ozone.report.defs#reasonSexualNCII',
DefsReasonSexualDeepfake: 'tools.ozone.report.defs#reasonSexualDeepfake',
DefsReasonSexualAnimal: 'tools.ozone.report.defs#reasonSexualAnimal',
DefsReasonSexualUnlabeled: 'tools.ozone.report.defs#reasonSexualUnlabeled',
DefsReasonSexualOther: 'tools.ozone.report.defs#reasonSexualOther',
DefsReasonChildSafetyCSAM: 'tools.ozone.report.defs#reasonChildSafetyCSAM',
DefsReasonChildSafetyGroom: 'tools.ozone.report.defs#reasonChildSafetyGroom',
DefsReasonChildSafetyPrivacy:
'tools.ozone.report.defs#reasonChildSafetyPrivacy',
DefsReasonChildSafetyHarassment:
'tools.ozone.report.defs#reasonChildSafetyHarassment',
DefsReasonChildSafetyOther: 'tools.ozone.report.defs#reasonChildSafetyOther',
DefsReasonHarassmentTroll: 'tools.ozone.report.defs#reasonHarassmentTroll',
DefsReasonHarassmentTargeted:
'tools.ozone.report.defs#reasonHarassmentTargeted',
DefsReasonHarassmentHateSpeech:
'tools.ozone.report.defs#reasonHarassmentHateSpeech',
DefsReasonHarassmentDoxxing:
'tools.ozone.report.defs#reasonHarassmentDoxxing',
DefsReasonHarassmentOther: 'tools.ozone.report.defs#reasonHarassmentOther',
DefsReasonMisleadingBot: 'tools.ozone.report.defs#reasonMisleadingBot',
DefsReasonMisleadingImpersonation:
'tools.ozone.report.defs#reasonMisleadingImpersonation',
DefsReasonMisleadingSpam: 'tools.ozone.report.defs#reasonMisleadingSpam',
DefsReasonMisleadingScam: 'tools.ozone.report.defs#reasonMisleadingScam',
DefsReasonMisleadingElections:
'tools.ozone.report.defs#reasonMisleadingElections',
DefsReasonMisleadingOther: 'tools.ozone.report.defs#reasonMisleadingOther',
DefsReasonRuleSiteSecurity: 'tools.ozone.report.defs#reasonRuleSiteSecurity',
DefsReasonRuleProhibitedSales:
'tools.ozone.report.defs#reasonRuleProhibitedSales',
DefsReasonRuleBanEvasion: 'tools.ozone.report.defs#reasonRuleBanEvasion',
DefsReasonRuleOther: 'tools.ozone.report.defs#reasonRuleOther',
DefsReasonSelfHarmContent: 'tools.ozone.report.defs#reasonSelfHarmContent',
DefsReasonSelfHarmED: 'tools.ozone.report.defs#reasonSelfHarmED',
DefsReasonSelfHarmStunts: 'tools.ozone.report.defs#reasonSelfHarmStunts',
DefsReasonSelfHarmSubstances:
'tools.ozone.report.defs#reasonSelfHarmSubstances',
DefsReasonSelfHarmOther: 'tools.ozone.report.defs#reasonSelfHarmOther',
}
export const TOOLS_OZONE_TEAM = {
DefsRoleAdmin: 'tools.ozone.team.defs#roleAdmin',
DefsRoleModerator: 'tools.ozone.team.defs#roleModerator',
DefsRoleTriage: 'tools.ozone.team.defs#roleTriage',
DefsRoleVerifier: 'tools.ozone.team.defs#roleVerifier',
}
export function createServer(options?: XrpcOptions): Server {
return new Server(options)
}
export class Server {
xrpc: XrpcServer
app: AppNS
chat: ChatNS
com: ComNS
tools: ToolsNS
constructor(options?: XrpcOptions) {
this.xrpc = createXrpcServer(schemas, options)
this.app = new AppNS(this)
this.chat = new ChatNS(this)
this.com = new ComNS(this)
this.tools = new ToolsNS(this)
}
}
export class AppNS {
_server: Server
bsky: AppBskyNS
constructor(server: Server) {
this._server = server
this.bsky = new AppBskyNS(server)
}
}
export class AppBskyNS {
_server: Server
actor: AppBskyActorNS
ageassurance: AppBskyAgeassuranceNS
bookmark: AppBskyBookmarkNS
contact: AppBskyContactNS
draft: AppBskyDraftNS
embed: AppBskyEmbedNS
feed: AppBskyFeedNS
graph: AppBskyGraphNS
labeler: AppBskyLabelerNS
notification: AppBskyNotificationNS
richtext: AppBskyRichtextNS
unspecced: AppBskyUnspeccedNS
video: AppBskyVideoNS
constructor(server: Server) {
this._server = server
this.actor = new AppBskyActorNS(server)
this.ageassurance = new AppBskyAgeassuranceNS(server)
this.bookmark = new AppBskyBookmarkNS(server)
this.contact = new AppBskyContactNS(server)
this.draft = new AppBskyDraftNS(server)
this.embed = new AppBskyEmbedNS(server)
this.feed = new AppBskyFeedNS(server)
this.graph = new AppBskyGraphNS(server)
this.labeler = new AppBskyLabelerNS(server)
this.notification = new AppBskyNotificationNS(server)
this.richtext = new AppBskyRichtextNS(server)
this.unspecced = new AppBskyUnspeccedNS(server)
this.video = new AppBskyVideoNS(server)
}
}
export class AppBskyActorNS {
_server: Server
constructor(server: Server) {
this._server = server
}
getPreferences<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyActorGetPreferences.QueryParams,
AppBskyActorGetPreferences.HandlerInput,
AppBskyActorGetPreferences.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.getPreferences' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getProfile<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyActorGetProfile.QueryParams,
AppBskyActorGetProfile.HandlerInput,
AppBskyActorGetProfile.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.getProfile' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getProfiles<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyActorGetProfiles.QueryParams,
AppBskyActorGetProfiles.HandlerInput,
AppBskyActorGetProfiles.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.getProfiles' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getSuggestions<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyActorGetSuggestions.QueryParams,
AppBskyActorGetSuggestions.HandlerInput,
AppBskyActorGetSuggestions.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.getSuggestions' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
putPreferences<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyActorPutPreferences.QueryParams,
AppBskyActorPutPreferences.HandlerInput,
AppBskyActorPutPreferences.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.putPreferences' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
searchActors<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyActorSearchActors.QueryParams,
AppBskyActorSearchActors.HandlerInput,
AppBskyActorSearchActors.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.searchActors' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
searchActorsTypeahead<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyActorSearchActorsTypeahead.QueryParams,
AppBskyActorSearchActorsTypeahead.HandlerInput,
AppBskyActorSearchActorsTypeahead.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.searchActorsTypeahead' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyAgeassuranceNS {
_server: Server
constructor(server: Server) {
this._server = server
}
begin<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyAgeassuranceBegin.QueryParams,
AppBskyAgeassuranceBegin.HandlerInput,
AppBskyAgeassuranceBegin.HandlerOutput
>,
) {
const nsid = 'app.bsky.ageassurance.begin' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getConfig<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyAgeassuranceGetConfig.QueryParams,
AppBskyAgeassuranceGetConfig.HandlerInput,
AppBskyAgeassuranceGetConfig.HandlerOutput
>,
) {
const nsid = 'app.bsky.ageassurance.getConfig' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getState<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyAgeassuranceGetState.QueryParams,
AppBskyAgeassuranceGetState.HandlerInput,
AppBskyAgeassuranceGetState.HandlerOutput
>,
) {
const nsid = 'app.bsky.ageassurance.getState' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyBookmarkNS {
_server: Server
constructor(server: Server) {
this._server = server
}
createBookmark<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyBookmarkCreateBookmark.QueryParams,
AppBskyBookmarkCreateBookmark.HandlerInput,
AppBskyBookmarkCreateBookmark.HandlerOutput
>,
) {
const nsid = 'app.bsky.bookmark.createBookmark' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
deleteBookmark<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyBookmarkDeleteBookmark.QueryParams,
AppBskyBookmarkDeleteBookmark.HandlerInput,
AppBskyBookmarkDeleteBookmark.HandlerOutput
>,
) {
const nsid = 'app.bsky.bookmark.deleteBookmark' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getBookmarks<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyBookmarkGetBookmarks.QueryParams,
AppBskyBookmarkGetBookmarks.HandlerInput,
AppBskyBookmarkGetBookmarks.HandlerOutput
>,
) {
const nsid = 'app.bsky.bookmark.getBookmarks' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyContactNS {
_server: Server
constructor(server: Server) {
this._server = server
}
dismissMatch<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactDismissMatch.QueryParams,
AppBskyContactDismissMatch.HandlerInput,
AppBskyContactDismissMatch.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.dismissMatch' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getMatches<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactGetMatches.QueryParams,
AppBskyContactGetMatches.HandlerInput,
AppBskyContactGetMatches.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.getMatches' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getSyncStatus<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactGetSyncStatus.QueryParams,
AppBskyContactGetSyncStatus.HandlerInput,
AppBskyContactGetSyncStatus.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.getSyncStatus' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
importContacts<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactImportContacts.QueryParams,
AppBskyContactImportContacts.HandlerInput,
AppBskyContactImportContacts.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.importContacts' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
removeData<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactRemoveData.QueryParams,
AppBskyContactRemoveData.HandlerInput,
AppBskyContactRemoveData.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.removeData' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
sendNotification<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactSendNotification.QueryParams,
AppBskyContactSendNotification.HandlerInput,
AppBskyContactSendNotification.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.sendNotification' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
startPhoneVerification<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactStartPhoneVerification.QueryParams,
AppBskyContactStartPhoneVerification.HandlerInput,
AppBskyContactStartPhoneVerification.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.startPhoneVerification' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
verifyPhone<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyContactVerifyPhone.QueryParams,
AppBskyContactVerifyPhone.HandlerInput,
AppBskyContactVerifyPhone.HandlerOutput
>,
) {
const nsid = 'app.bsky.contact.verifyPhone' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyDraftNS {
_server: Server
constructor(server: Server) {
this._server = server
}
createDraft<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyDraftCreateDraft.QueryParams,
AppBskyDraftCreateDraft.HandlerInput,
AppBskyDraftCreateDraft.HandlerOutput
>,
) {
const nsid = 'app.bsky.draft.createDraft' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
deleteDraft<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyDraftDeleteDraft.QueryParams,
AppBskyDraftDeleteDraft.HandlerInput,
AppBskyDraftDeleteDraft.HandlerOutput
>,
) {
const nsid = 'app.bsky.draft.deleteDraft' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getDrafts<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyDraftGetDrafts.QueryParams,
AppBskyDraftGetDrafts.HandlerInput,
AppBskyDraftGetDrafts.HandlerOutput
>,
) {
const nsid = 'app.bsky.draft.getDrafts' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
updateDraft<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyDraftUpdateDraft.QueryParams,
AppBskyDraftUpdateDraft.HandlerInput,
AppBskyDraftUpdateDraft.HandlerOutput
>,
) {
const nsid = 'app.bsky.draft.updateDraft' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyEmbedNS {
_server: Server
constructor(server: Server) {
this._server = server
}
}
export class AppBskyFeedNS {
_server: Server
constructor(server: Server) {
this._server = server
}
describeFeedGenerator<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedDescribeFeedGenerator.QueryParams,
AppBskyFeedDescribeFeedGenerator.HandlerInput,
AppBskyFeedDescribeFeedGenerator.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.describeFeedGenerator' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getActorFeeds<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetActorFeeds.QueryParams,
AppBskyFeedGetActorFeeds.HandlerInput,
AppBskyFeedGetActorFeeds.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getActorFeeds' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getActorLikes<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetActorLikes.QueryParams,
AppBskyFeedGetActorLikes.HandlerInput,
AppBskyFeedGetActorLikes.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getActorLikes' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getAuthorFeed<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetAuthorFeed.QueryParams,
AppBskyFeedGetAuthorFeed.HandlerInput,
AppBskyFeedGetAuthorFeed.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getAuthorFeed' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFeed<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetFeed.QueryParams,
AppBskyFeedGetFeed.HandlerInput,
AppBskyFeedGetFeed.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getFeed' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFeedGenerator<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetFeedGenerator.QueryParams,
AppBskyFeedGetFeedGenerator.HandlerInput,
AppBskyFeedGetFeedGenerator.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getFeedGenerator' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFeedGenerators<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetFeedGenerators.QueryParams,
AppBskyFeedGetFeedGenerators.HandlerInput,
AppBskyFeedGetFeedGenerators.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getFeedGenerators' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFeedSkeleton<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetFeedSkeleton.QueryParams,
AppBskyFeedGetFeedSkeleton.HandlerInput,
AppBskyFeedGetFeedSkeleton.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getFeedSkeleton' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getLikes<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetLikes.QueryParams,
AppBskyFeedGetLikes.HandlerInput,
AppBskyFeedGetLikes.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getLikes' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getListFeed<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetListFeed.QueryParams,
AppBskyFeedGetListFeed.HandlerInput,
AppBskyFeedGetListFeed.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getListFeed' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getPostThread<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetPostThread.QueryParams,
AppBskyFeedGetPostThread.HandlerInput,
AppBskyFeedGetPostThread.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getPosts<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetPosts.QueryParams,
AppBskyFeedGetPosts.HandlerInput,
AppBskyFeedGetPosts.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getQuotes<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetQuotes.QueryParams,
AppBskyFeedGetQuotes.HandlerInput,
AppBskyFeedGetQuotes.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getQuotes' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getRepostedBy<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetRepostedBy.QueryParams,
AppBskyFeedGetRepostedBy.HandlerInput,
AppBskyFeedGetRepostedBy.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getRepostedBy' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getSuggestedFeeds<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetSuggestedFeeds.QueryParams,
AppBskyFeedGetSuggestedFeeds.HandlerInput,
AppBskyFeedGetSuggestedFeeds.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getSuggestedFeeds' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getTimeline<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetTimeline.QueryParams,
AppBskyFeedGetTimeline.HandlerInput,
AppBskyFeedGetTimeline.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getTimeline' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
searchPosts<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedSearchPosts.QueryParams,
AppBskyFeedSearchPosts.HandlerInput,
AppBskyFeedSearchPosts.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.searchPosts' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
sendInteractions<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedSendInteractions.QueryParams,
AppBskyFeedSendInteractions.HandlerInput,
AppBskyFeedSendInteractions.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.sendInteractions' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyGraphNS {
_server: Server
constructor(server: Server) {
this._server = server
}
getActorStarterPacks<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyGraphGetActorStarterPacks.QueryParams,
AppBskyGraphGetActorStarterPacks.HandlerInput,
AppBskyGraphGetActorStarterPacks.HandlerOutput
>,
) {
const nsid = 'app.bsky.graph.getActorStarterPacks' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getBlocks<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyGraphGetBlocks.QueryParams,
AppBskyGraphGetBlocks.HandlerInput,
AppBskyGraphGetBlocks.HandlerOutput
>,
) {
const nsid = 'app.bsky.graph.getBlocks' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFollowers<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyGraphGetFollowers.QueryParams,
AppBskyGraphGetFollowers.HandlerInput,
AppBskyGraphGetFollowers.HandlerOutput
>,
) {
const nsid = 'app.bsky.graph.getFollowers' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFollows<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyGraphGetFollows.QueryParams,
AppBskyGraphGetFollows.HandlerInput,
AppBskyGraphGetFollows.HandlerOutput
>,
) {
const nsid = 'app.bsky.graph.getFollows' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getKnownFollowers<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyGraphGetKnownFollowers.QueryParams,
AppBskyGraphGetKnownFollowers.HandlerInput,
AppBskyGraphGetKnownFollowers.HandlerOutput
>,
) {
const nsid = 'app.bsky.graph.getKnownFollowers' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getList<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyGraphGetList.QueryParams,
AppBskyGraphGetList.HandlerInput,
AppBskyGraphGetList.HandlerOutput
>,
) {
const nsid = 'app.bsky.graph.getList' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getListBlocks<A extends Auth = void>(
cfg: MethodConfigOrHandler<
A,
AppBskyGraphGetListBlocks.QueryParams,
AppBskyGraphGetListBlocks.HandlerInput,
AppBskyGraphGetListBlocks.HandlerOutput
>,
)