my monorepo for atproto based applications
1/**
2 * GENERATED CODE - DO NOT MODIFY
3 */
4import {
5 XrpcClient,
6 type FetchHandler,
7 type FetchHandlerOptions,
8} from "@atproto/xrpc";
9import { schemas } from "./lexicons.ts";
10import { CID } from "multiformats/cid";
11import { type OmitKey, type Un$Typed } from "./util.ts";
12import * as AppBskyActorDefs from "./types/app/bsky/actor/defs.ts";
13import * as AppBskyActorGetPreferences from "./types/app/bsky/actor/getPreferences.ts";
14import * as AppBskyActorGetProfile from "./types/app/bsky/actor/getProfile.ts";
15import * as AppBskyActorGetProfiles from "./types/app/bsky/actor/getProfiles.ts";
16import * as AppBskyActorGetSuggestions from "./types/app/bsky/actor/getSuggestions.ts";
17import * as AppBskyActorProfile from "./types/app/bsky/actor/profile.ts";
18import * as AppBskyActorPutPreferences from "./types/app/bsky/actor/putPreferences.ts";
19import * as AppBskyActorSearchActors from "./types/app/bsky/actor/searchActors.ts";
20import * as AppBskyActorSearchActorsTypeahead from "./types/app/bsky/actor/searchActorsTypeahead.ts";
21import * as AppBskyEmbedDefs from "./types/app/bsky/embed/defs.ts";
22import * as AppBskyEmbedExternal from "./types/app/bsky/embed/external.ts";
23import * as AppBskyEmbedImages from "./types/app/bsky/embed/images.ts";
24import * as AppBskyEmbedRecord from "./types/app/bsky/embed/record.ts";
25import * as AppBskyEmbedRecordWithMedia from "./types/app/bsky/embed/recordWithMedia.ts";
26import * as AppBskyEmbedVideo from "./types/app/bsky/embed/video.ts";
27import * as AppBskyFeedDefs from "./types/app/bsky/feed/defs.ts";
28import * as AppBskyFeedDescribeFeedGenerator from "./types/app/bsky/feed/describeFeedGenerator.ts";
29import * as AppBskyFeedGenerator from "./types/app/bsky/feed/generator.ts";
30import * as AppBskyFeedGetActorFeeds from "./types/app/bsky/feed/getActorFeeds.ts";
31import * as AppBskyFeedGetActorLikes from "./types/app/bsky/feed/getActorLikes.ts";
32import * as AppBskyFeedGetAuthorFeed from "./types/app/bsky/feed/getAuthorFeed.ts";
33import * as AppBskyFeedGetFeed from "./types/app/bsky/feed/getFeed.ts";
34import * as AppBskyFeedGetFeedGenerator from "./types/app/bsky/feed/getFeedGenerator.ts";
35import * as AppBskyFeedGetFeedGenerators from "./types/app/bsky/feed/getFeedGenerators.ts";
36import * as AppBskyFeedGetFeedSkeleton from "./types/app/bsky/feed/getFeedSkeleton.ts";
37import * as AppBskyFeedGetLikes from "./types/app/bsky/feed/getLikes.ts";
38import * as AppBskyFeedGetListFeed from "./types/app/bsky/feed/getListFeed.ts";
39import * as AppBskyFeedGetPostThread from "./types/app/bsky/feed/getPostThread.ts";
40import * as AppBskyFeedGetPosts from "./types/app/bsky/feed/getPosts.ts";
41import * as AppBskyFeedGetQuotes from "./types/app/bsky/feed/getQuotes.ts";
42import * as AppBskyFeedGetRepostedBy from "./types/app/bsky/feed/getRepostedBy.ts";
43import * as AppBskyFeedGetSuggestedFeeds from "./types/app/bsky/feed/getSuggestedFeeds.ts";
44import * as AppBskyFeedGetTimeline from "./types/app/bsky/feed/getTimeline.ts";
45import * as AppBskyFeedLike from "./types/app/bsky/feed/like.ts";
46import * as AppBskyFeedPost from "./types/app/bsky/feed/post.ts";
47import * as AppBskyFeedPostgate from "./types/app/bsky/feed/postgate.ts";
48import * as AppBskyFeedRepost from "./types/app/bsky/feed/repost.ts";
49import * as AppBskyFeedSearchPosts from "./types/app/bsky/feed/searchPosts.ts";
50import * as AppBskyFeedSendInteractions from "./types/app/bsky/feed/sendInteractions.ts";
51import * as AppBskyFeedThreadgate from "./types/app/bsky/feed/threadgate.ts";
52import * as AppBskyGraphBlock from "./types/app/bsky/graph/block.ts";
53import * as AppBskyGraphDefs from "./types/app/bsky/graph/defs.ts";
54import * as AppBskyGraphFollow from "./types/app/bsky/graph/follow.ts";
55import * as AppBskyGraphGetActorStarterPacks from "./types/app/bsky/graph/getActorStarterPacks.ts";
56import * as AppBskyGraphGetBlocks from "./types/app/bsky/graph/getBlocks.ts";
57import * as AppBskyGraphGetFollowers from "./types/app/bsky/graph/getFollowers.ts";
58import * as AppBskyGraphGetFollows from "./types/app/bsky/graph/getFollows.ts";
59import * as AppBskyGraphGetKnownFollowers from "./types/app/bsky/graph/getKnownFollowers.ts";
60import * as AppBskyGraphGetList from "./types/app/bsky/graph/getList.ts";
61import * as AppBskyGraphGetListBlocks from "./types/app/bsky/graph/getListBlocks.ts";
62import * as AppBskyGraphGetListMutes from "./types/app/bsky/graph/getListMutes.ts";
63import * as AppBskyGraphGetLists from "./types/app/bsky/graph/getLists.ts";
64import * as AppBskyGraphGetMutes from "./types/app/bsky/graph/getMutes.ts";
65import * as AppBskyGraphGetRelationships from "./types/app/bsky/graph/getRelationships.ts";
66import * as AppBskyGraphGetStarterPack from "./types/app/bsky/graph/getStarterPack.ts";
67import * as AppBskyGraphGetStarterPacks from "./types/app/bsky/graph/getStarterPacks.ts";
68import * as AppBskyGraphGetSuggestedFollowsByActor from "./types/app/bsky/graph/getSuggestedFollowsByActor.ts";
69import * as AppBskyGraphList from "./types/app/bsky/graph/list.ts";
70import * as AppBskyGraphListblock from "./types/app/bsky/graph/listblock.ts";
71import * as AppBskyGraphListitem from "./types/app/bsky/graph/listitem.ts";
72import * as AppBskyGraphMuteActor from "./types/app/bsky/graph/muteActor.ts";
73import * as AppBskyGraphMuteActorList from "./types/app/bsky/graph/muteActorList.ts";
74import * as AppBskyGraphMuteThread from "./types/app/bsky/graph/muteThread.ts";
75import * as AppBskyGraphSearchStarterPacks from "./types/app/bsky/graph/searchStarterPacks.ts";
76import * as AppBskyGraphStarterpack from "./types/app/bsky/graph/starterpack.ts";
77import * as AppBskyGraphUnmuteActor from "./types/app/bsky/graph/unmuteActor.ts";
78import * as AppBskyGraphUnmuteActorList from "./types/app/bsky/graph/unmuteActorList.ts";
79import * as AppBskyGraphUnmuteThread from "./types/app/bsky/graph/unmuteThread.ts";
80import * as AppBskyLabelerDefs from "./types/app/bsky/labeler/defs.ts";
81import * as AppBskyLabelerGetServices from "./types/app/bsky/labeler/getServices.ts";
82import * as AppBskyLabelerService from "./types/app/bsky/labeler/service.ts";
83import * as AppBskyNotificationGetUnreadCount from "./types/app/bsky/notification/getUnreadCount.ts";
84import * as AppBskyNotificationListNotifications from "./types/app/bsky/notification/listNotifications.ts";
85import * as AppBskyNotificationPutPreferences from "./types/app/bsky/notification/putPreferences.ts";
86import * as AppBskyNotificationRegisterPush from "./types/app/bsky/notification/registerPush.ts";
87import * as AppBskyNotificationUpdateSeen from "./types/app/bsky/notification/updateSeen.ts";
88import * as AppBskyRichtextFacet from "./types/app/bsky/richtext/facet.ts";
89import * as AppBskyUnspeccedDefs from "./types/app/bsky/unspecced/defs.ts";
90import * as AppBskyUnspeccedGetConfig from "./types/app/bsky/unspecced/getConfig.ts";
91import * as AppBskyUnspeccedGetPopularFeedGenerators from "./types/app/bsky/unspecced/getPopularFeedGenerators.ts";
92import * as AppBskyUnspeccedGetSuggestedFeeds from "./types/app/bsky/unspecced/getSuggestedFeeds.ts";
93import * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from "./types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts";
94import * as AppBskyUnspeccedGetSuggestedStarterPacks from "./types/app/bsky/unspecced/getSuggestedStarterPacks.ts";
95import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from "./types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts";
96import * as AppBskyUnspeccedGetSuggestedUsers from "./types/app/bsky/unspecced/getSuggestedUsers.ts";
97import * as AppBskyUnspeccedGetSuggestedUsersSkeleton from "./types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts";
98import * as AppBskyUnspeccedGetSuggestionsSkeleton from "./types/app/bsky/unspecced/getSuggestionsSkeleton.ts";
99import * as AppBskyUnspeccedGetTaggedSuggestions from "./types/app/bsky/unspecced/getTaggedSuggestions.ts";
100import * as AppBskyUnspeccedGetTrendingTopics from "./types/app/bsky/unspecced/getTrendingTopics.ts";
101import * as AppBskyUnspeccedGetTrends from "./types/app/bsky/unspecced/getTrends.ts";
102import * as AppBskyUnspeccedGetTrendsSkeleton from "./types/app/bsky/unspecced/getTrendsSkeleton.ts";
103import * as AppBskyUnspeccedSearchActorsSkeleton from "./types/app/bsky/unspecced/searchActorsSkeleton.ts";
104import * as AppBskyUnspeccedSearchPostsSkeleton from "./types/app/bsky/unspecced/searchPostsSkeleton.ts";
105import * as AppBskyUnspeccedSearchStarterPacksSkeleton from "./types/app/bsky/unspecced/searchStarterPacksSkeleton.ts";
106import * as AppBskyVideoDefs from "./types/app/bsky/video/defs.ts";
107import * as AppBskyVideoGetJobStatus from "./types/app/bsky/video/getJobStatus.ts";
108import * as AppBskyVideoGetUploadLimits from "./types/app/bsky/video/getUploadLimits.ts";
109import * as AppBskyVideoUploadVideo from "./types/app/bsky/video/uploadVideo.ts";
110import * as ChatBskyActorDeclaration from "./types/chat/bsky/actor/declaration.ts";
111import * as ChatBskyActorDefs from "./types/chat/bsky/actor/defs.ts";
112import * as ChatBskyActorDeleteAccount from "./types/chat/bsky/actor/deleteAccount.ts";
113import * as ChatBskyActorExportAccountData from "./types/chat/bsky/actor/exportAccountData.ts";
114import * as ChatBskyConvoAcceptConvo from "./types/chat/bsky/convo/acceptConvo.ts";
115import * as ChatBskyConvoAddReaction from "./types/chat/bsky/convo/addReaction.ts";
116import * as ChatBskyConvoDefs from "./types/chat/bsky/convo/defs.ts";
117import * as ChatBskyConvoDeleteMessageForSelf from "./types/chat/bsky/convo/deleteMessageForSelf.ts";
118import * as ChatBskyConvoGetConvo from "./types/chat/bsky/convo/getConvo.ts";
119import * as ChatBskyConvoGetConvoAvailability from "./types/chat/bsky/convo/getConvoAvailability.ts";
120import * as ChatBskyConvoGetConvoForMembers from "./types/chat/bsky/convo/getConvoForMembers.ts";
121import * as ChatBskyConvoGetLog from "./types/chat/bsky/convo/getLog.ts";
122import * as ChatBskyConvoGetMessages from "./types/chat/bsky/convo/getMessages.ts";
123import * as ChatBskyConvoLeaveConvo from "./types/chat/bsky/convo/leaveConvo.ts";
124import * as ChatBskyConvoListConvos from "./types/chat/bsky/convo/listConvos.ts";
125import * as ChatBskyConvoMuteConvo from "./types/chat/bsky/convo/muteConvo.ts";
126import * as ChatBskyConvoRemoveReaction from "./types/chat/bsky/convo/removeReaction.ts";
127import * as ChatBskyConvoSendMessage from "./types/chat/bsky/convo/sendMessage.ts";
128import * as ChatBskyConvoSendMessageBatch from "./types/chat/bsky/convo/sendMessageBatch.ts";
129import * as ChatBskyConvoUnmuteConvo from "./types/chat/bsky/convo/unmuteConvo.ts";
130import * as ChatBskyConvoUpdateAllRead from "./types/chat/bsky/convo/updateAllRead.ts";
131import * as ChatBskyConvoUpdateRead from "./types/chat/bsky/convo/updateRead.ts";
132import * as ChatBskyModerationGetActorMetadata from "./types/chat/bsky/moderation/getActorMetadata.ts";
133import * as ChatBskyModerationGetMessageContext from "./types/chat/bsky/moderation/getMessageContext.ts";
134import * as ChatBskyModerationUpdateActorAccess from "./types/chat/bsky/moderation/updateActorAccess.ts";
135import * as ComAtprotoAdminDefs from "./types/com/atproto/admin/defs.ts";
136import * as ComAtprotoAdminDeleteAccount from "./types/com/atproto/admin/deleteAccount.ts";
137import * as ComAtprotoAdminDisableAccountInvites from "./types/com/atproto/admin/disableAccountInvites.ts";
138import * as ComAtprotoAdminDisableInviteCodes from "./types/com/atproto/admin/disableInviteCodes.ts";
139import * as ComAtprotoAdminEnableAccountInvites from "./types/com/atproto/admin/enableAccountInvites.ts";
140import * as ComAtprotoAdminGetAccountInfo from "./types/com/atproto/admin/getAccountInfo.ts";
141import * as ComAtprotoAdminGetAccountInfos from "./types/com/atproto/admin/getAccountInfos.ts";
142import * as ComAtprotoAdminGetInviteCodes from "./types/com/atproto/admin/getInviteCodes.ts";
143import * as ComAtprotoAdminGetSubjectStatus from "./types/com/atproto/admin/getSubjectStatus.ts";
144import * as ComAtprotoAdminSearchAccounts from "./types/com/atproto/admin/searchAccounts.ts";
145import * as ComAtprotoAdminSendEmail from "./types/com/atproto/admin/sendEmail.ts";
146import * as ComAtprotoAdminUpdateAccountEmail from "./types/com/atproto/admin/updateAccountEmail.ts";
147import * as ComAtprotoAdminUpdateAccountHandle from "./types/com/atproto/admin/updateAccountHandle.ts";
148import * as ComAtprotoAdminUpdateAccountPassword from "./types/com/atproto/admin/updateAccountPassword.ts";
149import * as ComAtprotoAdminUpdateAccountSigningKey from "./types/com/atproto/admin/updateAccountSigningKey.ts";
150import * as ComAtprotoAdminUpdateSubjectStatus from "./types/com/atproto/admin/updateSubjectStatus.ts";
151import * as ComAtprotoIdentityDefs from "./types/com/atproto/identity/defs.ts";
152import * as ComAtprotoIdentityGetRecommendedDidCredentials from "./types/com/atproto/identity/getRecommendedDidCredentials.ts";
153import * as ComAtprotoIdentityRefreshIdentity from "./types/com/atproto/identity/refreshIdentity.ts";
154import * as ComAtprotoIdentityRequestPlcOperationSignature from "./types/com/atproto/identity/requestPlcOperationSignature.ts";
155import * as ComAtprotoIdentityResolveDid from "./types/com/atproto/identity/resolveDid.ts";
156import * as ComAtprotoIdentityResolveHandle from "./types/com/atproto/identity/resolveHandle.ts";
157import * as ComAtprotoIdentityResolveIdentity from "./types/com/atproto/identity/resolveIdentity.ts";
158import * as ComAtprotoIdentitySignPlcOperation from "./types/com/atproto/identity/signPlcOperation.ts";
159import * as ComAtprotoIdentitySubmitPlcOperation from "./types/com/atproto/identity/submitPlcOperation.ts";
160import * as ComAtprotoIdentityUpdateHandle from "./types/com/atproto/identity/updateHandle.ts";
161import * as ComAtprotoLabelDefs from "./types/com/atproto/label/defs.ts";
162import * as ComAtprotoLabelQueryLabels from "./types/com/atproto/label/queryLabels.ts";
163import * as ComAtprotoLabelSubscribeLabels from "./types/com/atproto/label/subscribeLabels.ts";
164import * as ComAtprotoLexiconSchema from "./types/com/atproto/lexicon/schema.ts";
165import * as ComAtprotoModerationCreateReport from "./types/com/atproto/moderation/createReport.ts";
166import * as ComAtprotoModerationDefs from "./types/com/atproto/moderation/defs.ts";
167import * as ComAtprotoRepoApplyWrites from "./types/com/atproto/repo/applyWrites.ts";
168import * as ComAtprotoRepoCreateRecord from "./types/com/atproto/repo/createRecord.ts";
169import * as ComAtprotoRepoDefs from "./types/com/atproto/repo/defs.ts";
170import * as ComAtprotoRepoDeleteRecord from "./types/com/atproto/repo/deleteRecord.ts";
171import * as ComAtprotoRepoDescribeRepo from "./types/com/atproto/repo/describeRepo.ts";
172import * as ComAtprotoRepoGetRecord from "./types/com/atproto/repo/getRecord.ts";
173import * as ComAtprotoRepoImportRepo from "./types/com/atproto/repo/importRepo.ts";
174import * as ComAtprotoRepoListMissingBlobs from "./types/com/atproto/repo/listMissingBlobs.ts";
175import * as ComAtprotoRepoListRecords from "./types/com/atproto/repo/listRecords.ts";
176import * as ComAtprotoRepoPutRecord from "./types/com/atproto/repo/putRecord.ts";
177import * as ComAtprotoRepoStrongRef from "./types/com/atproto/repo/strongRef.ts";
178import * as ComAtprotoRepoUploadBlob from "./types/com/atproto/repo/uploadBlob.ts";
179import * as ComAtprotoServerActivateAccount from "./types/com/atproto/server/activateAccount.ts";
180import * as ComAtprotoServerCheckAccountStatus from "./types/com/atproto/server/checkAccountStatus.ts";
181import * as ComAtprotoServerConfirmEmail from "./types/com/atproto/server/confirmEmail.ts";
182import * as ComAtprotoServerCreateAccount from "./types/com/atproto/server/createAccount.ts";
183import * as ComAtprotoServerCreateAppPassword from "./types/com/atproto/server/createAppPassword.ts";
184import * as ComAtprotoServerCreateInviteCode from "./types/com/atproto/server/createInviteCode.ts";
185import * as ComAtprotoServerCreateInviteCodes from "./types/com/atproto/server/createInviteCodes.ts";
186import * as ComAtprotoServerCreateSession from "./types/com/atproto/server/createSession.ts";
187import * as ComAtprotoServerDeactivateAccount from "./types/com/atproto/server/deactivateAccount.ts";
188import * as ComAtprotoServerDefs from "./types/com/atproto/server/defs.ts";
189import * as ComAtprotoServerDeleteAccount from "./types/com/atproto/server/deleteAccount.ts";
190import * as ComAtprotoServerDeleteSession from "./types/com/atproto/server/deleteSession.ts";
191import * as ComAtprotoServerDescribeServer from "./types/com/atproto/server/describeServer.ts";
192import * as ComAtprotoServerGetAccountInviteCodes from "./types/com/atproto/server/getAccountInviteCodes.ts";
193import * as ComAtprotoServerGetServiceAuth from "./types/com/atproto/server/getServiceAuth.ts";
194import * as ComAtprotoServerGetSession from "./types/com/atproto/server/getSession.ts";
195import * as ComAtprotoServerListAppPasswords from "./types/com/atproto/server/listAppPasswords.ts";
196import * as ComAtprotoServerRefreshSession from "./types/com/atproto/server/refreshSession.ts";
197import * as ComAtprotoServerRequestAccountDelete from "./types/com/atproto/server/requestAccountDelete.ts";
198import * as ComAtprotoServerRequestEmailConfirmation from "./types/com/atproto/server/requestEmailConfirmation.ts";
199import * as ComAtprotoServerRequestEmailUpdate from "./types/com/atproto/server/requestEmailUpdate.ts";
200import * as ComAtprotoServerRequestPasswordReset from "./types/com/atproto/server/requestPasswordReset.ts";
201import * as ComAtprotoServerReserveSigningKey from "./types/com/atproto/server/reserveSigningKey.ts";
202import * as ComAtprotoServerResetPassword from "./types/com/atproto/server/resetPassword.ts";
203import * as ComAtprotoServerRevokeAppPassword from "./types/com/atproto/server/revokeAppPassword.ts";
204import * as ComAtprotoServerUpdateEmail from "./types/com/atproto/server/updateEmail.ts";
205import * as ComAtprotoSyncDefs from "./types/com/atproto/sync/defs.ts";
206import * as ComAtprotoSyncGetBlob from "./types/com/atproto/sync/getBlob.ts";
207import * as ComAtprotoSyncGetBlocks from "./types/com/atproto/sync/getBlocks.ts";
208import * as ComAtprotoSyncGetCheckout from "./types/com/atproto/sync/getCheckout.ts";
209import * as ComAtprotoSyncGetHead from "./types/com/atproto/sync/getHead.ts";
210import * as ComAtprotoSyncGetHostStatus from "./types/com/atproto/sync/getHostStatus.ts";
211import * as ComAtprotoSyncGetLatestCommit from "./types/com/atproto/sync/getLatestCommit.ts";
212import * as ComAtprotoSyncGetRecord from "./types/com/atproto/sync/getRecord.ts";
213import * as ComAtprotoSyncGetRepo from "./types/com/atproto/sync/getRepo.ts";
214import * as ComAtprotoSyncGetRepoStatus from "./types/com/atproto/sync/getRepoStatus.ts";
215import * as ComAtprotoSyncListBlobs from "./types/com/atproto/sync/listBlobs.ts";
216import * as ComAtprotoSyncListHosts from "./types/com/atproto/sync/listHosts.ts";
217import * as ComAtprotoSyncListRepos from "./types/com/atproto/sync/listRepos.ts";
218import * as ComAtprotoSyncListReposByCollection from "./types/com/atproto/sync/listReposByCollection.ts";
219import * as ComAtprotoSyncNotifyOfUpdate from "./types/com/atproto/sync/notifyOfUpdate.ts";
220import * as ComAtprotoSyncRequestCrawl from "./types/com/atproto/sync/requestCrawl.ts";
221import * as ComAtprotoSyncSubscribeRepos from "./types/com/atproto/sync/subscribeRepos.ts";
222import * as ComAtprotoTempAddReservedHandle from "./types/com/atproto/temp/addReservedHandle.ts";
223import * as ComAtprotoTempCheckSignupQueue from "./types/com/atproto/temp/checkSignupQueue.ts";
224import * as ComAtprotoTempFetchLabels from "./types/com/atproto/temp/fetchLabels.ts";
225import * as ComAtprotoTempRequestPhoneVerification from "./types/com/atproto/temp/requestPhoneVerification.ts";
226import * as ToolsOzoneCommunicationCreateTemplate from "./types/tools/ozone/communication/createTemplate.ts";
227import * as ToolsOzoneCommunicationDefs from "./types/tools/ozone/communication/defs.ts";
228import * as ToolsOzoneCommunicationDeleteTemplate from "./types/tools/ozone/communication/deleteTemplate.ts";
229import * as ToolsOzoneCommunicationListTemplates from "./types/tools/ozone/communication/listTemplates.ts";
230import * as ToolsOzoneCommunicationUpdateTemplate from "./types/tools/ozone/communication/updateTemplate.ts";
231import * as ToolsOzoneModerationDefs from "./types/tools/ozone/moderation/defs.ts";
232import * as ToolsOzoneModerationEmitEvent from "./types/tools/ozone/moderation/emitEvent.ts";
233import * as ToolsOzoneModerationGetEvent from "./types/tools/ozone/moderation/getEvent.ts";
234import * as ToolsOzoneModerationGetRecord from "./types/tools/ozone/moderation/getRecord.ts";
235import * as ToolsOzoneModerationGetRecords from "./types/tools/ozone/moderation/getRecords.ts";
236import * as ToolsOzoneModerationGetRepo from "./types/tools/ozone/moderation/getRepo.ts";
237import * as ToolsOzoneModerationGetReporterStats from "./types/tools/ozone/moderation/getReporterStats.ts";
238import * as ToolsOzoneModerationGetRepos from "./types/tools/ozone/moderation/getRepos.ts";
239import * as ToolsOzoneModerationGetSubjects from "./types/tools/ozone/moderation/getSubjects.ts";
240import * as ToolsOzoneModerationQueryEvents from "./types/tools/ozone/moderation/queryEvents.ts";
241import * as ToolsOzoneModerationQueryStatuses from "./types/tools/ozone/moderation/queryStatuses.ts";
242import * as ToolsOzoneModerationSearchRepos from "./types/tools/ozone/moderation/searchRepos.ts";
243import * as ToolsOzoneServerGetConfig from "./types/tools/ozone/server/getConfig.ts";
244import * as ToolsOzoneSetAddValues from "./types/tools/ozone/set/addValues.ts";
245import * as ToolsOzoneSetDefs from "./types/tools/ozone/set/defs.ts";
246import * as ToolsOzoneSetDeleteSet from "./types/tools/ozone/set/deleteSet.ts";
247import * as ToolsOzoneSetDeleteValues from "./types/tools/ozone/set/deleteValues.ts";
248import * as ToolsOzoneSetGetValues from "./types/tools/ozone/set/getValues.ts";
249import * as ToolsOzoneSetQuerySets from "./types/tools/ozone/set/querySets.ts";
250import * as ToolsOzoneSetUpsertSet from "./types/tools/ozone/set/upsertSet.ts";
251import * as ToolsOzoneSettingDefs from "./types/tools/ozone/setting/defs.ts";
252import * as ToolsOzoneSettingListOptions from "./types/tools/ozone/setting/listOptions.ts";
253import * as ToolsOzoneSettingRemoveOptions from "./types/tools/ozone/setting/removeOptions.ts";
254import * as ToolsOzoneSettingUpsertOption from "./types/tools/ozone/setting/upsertOption.ts";
255import * as ToolsOzoneSignatureDefs from "./types/tools/ozone/signature/defs.ts";
256import * as ToolsOzoneSignatureFindCorrelation from "./types/tools/ozone/signature/findCorrelation.ts";
257import * as ToolsOzoneSignatureFindRelatedAccounts from "./types/tools/ozone/signature/findRelatedAccounts.ts";
258import * as ToolsOzoneSignatureSearchAccounts from "./types/tools/ozone/signature/searchAccounts.ts";
259import * as ToolsOzoneTeamAddMember from "./types/tools/ozone/team/addMember.ts";
260import * as ToolsOzoneTeamDefs from "./types/tools/ozone/team/defs.ts";
261import * as ToolsOzoneTeamDeleteMember from "./types/tools/ozone/team/deleteMember.ts";
262import * as ToolsOzoneTeamListMembers from "./types/tools/ozone/team/listMembers.ts";
263import * as ToolsOzoneTeamUpdateMember from "./types/tools/ozone/team/updateMember.ts";
264
265export * as AppBskyActorDefs from "./types/app/bsky/actor/defs.ts";
266export * as AppBskyActorGetPreferences from "./types/app/bsky/actor/getPreferences.ts";
267export * as AppBskyActorGetProfile from "./types/app/bsky/actor/getProfile.ts";
268export * as AppBskyActorGetProfiles from "./types/app/bsky/actor/getProfiles.ts";
269export * as AppBskyActorGetSuggestions from "./types/app/bsky/actor/getSuggestions.ts";
270export * as AppBskyActorProfile from "./types/app/bsky/actor/profile.ts";
271export * as AppBskyActorPutPreferences from "./types/app/bsky/actor/putPreferences.ts";
272export * as AppBskyActorSearchActors from "./types/app/bsky/actor/searchActors.ts";
273export * as AppBskyActorSearchActorsTypeahead from "./types/app/bsky/actor/searchActorsTypeahead.ts";
274export * as AppBskyEmbedDefs from "./types/app/bsky/embed/defs.ts";
275export * as AppBskyEmbedExternal from "./types/app/bsky/embed/external.ts";
276export * as AppBskyEmbedImages from "./types/app/bsky/embed/images.ts";
277export * as AppBskyEmbedRecord from "./types/app/bsky/embed/record.ts";
278export * as AppBskyEmbedRecordWithMedia from "./types/app/bsky/embed/recordWithMedia.ts";
279export * as AppBskyEmbedVideo from "./types/app/bsky/embed/video.ts";
280export * as AppBskyFeedDefs from "./types/app/bsky/feed/defs.ts";
281export * as AppBskyFeedDescribeFeedGenerator from "./types/app/bsky/feed/describeFeedGenerator.ts";
282export * as AppBskyFeedGenerator from "./types/app/bsky/feed/generator.ts";
283export * as AppBskyFeedGetActorFeeds from "./types/app/bsky/feed/getActorFeeds.ts";
284export * as AppBskyFeedGetActorLikes from "./types/app/bsky/feed/getActorLikes.ts";
285export * as AppBskyFeedGetAuthorFeed from "./types/app/bsky/feed/getAuthorFeed.ts";
286export * as AppBskyFeedGetFeed from "./types/app/bsky/feed/getFeed.ts";
287export * as AppBskyFeedGetFeedGenerator from "./types/app/bsky/feed/getFeedGenerator.ts";
288export * as AppBskyFeedGetFeedGenerators from "./types/app/bsky/feed/getFeedGenerators.ts";
289export * as AppBskyFeedGetFeedSkeleton from "./types/app/bsky/feed/getFeedSkeleton.ts";
290export * as AppBskyFeedGetLikes from "./types/app/bsky/feed/getLikes.ts";
291export * as AppBskyFeedGetListFeed from "./types/app/bsky/feed/getListFeed.ts";
292export * as AppBskyFeedGetPostThread from "./types/app/bsky/feed/getPostThread.ts";
293export * as AppBskyFeedGetPosts from "./types/app/bsky/feed/getPosts.ts";
294export * as AppBskyFeedGetQuotes from "./types/app/bsky/feed/getQuotes.ts";
295export * as AppBskyFeedGetRepostedBy from "./types/app/bsky/feed/getRepostedBy.ts";
296export * as AppBskyFeedGetSuggestedFeeds from "./types/app/bsky/feed/getSuggestedFeeds.ts";
297export * as AppBskyFeedGetTimeline from "./types/app/bsky/feed/getTimeline.ts";
298export * as AppBskyFeedLike from "./types/app/bsky/feed/like.ts";
299export * as AppBskyFeedPost from "./types/app/bsky/feed/post.ts";
300export * as AppBskyFeedPostgate from "./types/app/bsky/feed/postgate.ts";
301export * as AppBskyFeedRepost from "./types/app/bsky/feed/repost.ts";
302export * as AppBskyFeedSearchPosts from "./types/app/bsky/feed/searchPosts.ts";
303export * as AppBskyFeedSendInteractions from "./types/app/bsky/feed/sendInteractions.ts";
304export * as AppBskyFeedThreadgate from "./types/app/bsky/feed/threadgate.ts";
305export * as AppBskyGraphBlock from "./types/app/bsky/graph/block.ts";
306export * as AppBskyGraphDefs from "./types/app/bsky/graph/defs.ts";
307export * as AppBskyGraphFollow from "./types/app/bsky/graph/follow.ts";
308export * as AppBskyGraphGetActorStarterPacks from "./types/app/bsky/graph/getActorStarterPacks.ts";
309export * as AppBskyGraphGetBlocks from "./types/app/bsky/graph/getBlocks.ts";
310export * as AppBskyGraphGetFollowers from "./types/app/bsky/graph/getFollowers.ts";
311export * as AppBskyGraphGetFollows from "./types/app/bsky/graph/getFollows.ts";
312export * as AppBskyGraphGetKnownFollowers from "./types/app/bsky/graph/getKnownFollowers.ts";
313export * as AppBskyGraphGetList from "./types/app/bsky/graph/getList.ts";
314export * as AppBskyGraphGetListBlocks from "./types/app/bsky/graph/getListBlocks.ts";
315export * as AppBskyGraphGetListMutes from "./types/app/bsky/graph/getListMutes.ts";
316export * as AppBskyGraphGetLists from "./types/app/bsky/graph/getLists.ts";
317export * as AppBskyGraphGetMutes from "./types/app/bsky/graph/getMutes.ts";
318export * as AppBskyGraphGetRelationships from "./types/app/bsky/graph/getRelationships.ts";
319export * as AppBskyGraphGetStarterPack from "./types/app/bsky/graph/getStarterPack.ts";
320export * as AppBskyGraphGetStarterPacks from "./types/app/bsky/graph/getStarterPacks.ts";
321export * as AppBskyGraphGetSuggestedFollowsByActor from "./types/app/bsky/graph/getSuggestedFollowsByActor.ts";
322export * as AppBskyGraphList from "./types/app/bsky/graph/list.ts";
323export * as AppBskyGraphListblock from "./types/app/bsky/graph/listblock.ts";
324export * as AppBskyGraphListitem from "./types/app/bsky/graph/listitem.ts";
325export * as AppBskyGraphMuteActor from "./types/app/bsky/graph/muteActor.ts";
326export * as AppBskyGraphMuteActorList from "./types/app/bsky/graph/muteActorList.ts";
327export * as AppBskyGraphMuteThread from "./types/app/bsky/graph/muteThread.ts";
328export * as AppBskyGraphSearchStarterPacks from "./types/app/bsky/graph/searchStarterPacks.ts";
329export * as AppBskyGraphStarterpack from "./types/app/bsky/graph/starterpack.ts";
330export * as AppBskyGraphUnmuteActor from "./types/app/bsky/graph/unmuteActor.ts";
331export * as AppBskyGraphUnmuteActorList from "./types/app/bsky/graph/unmuteActorList.ts";
332export * as AppBskyGraphUnmuteThread from "./types/app/bsky/graph/unmuteThread.ts";
333export * as AppBskyLabelerDefs from "./types/app/bsky/labeler/defs.ts";
334export * as AppBskyLabelerGetServices from "./types/app/bsky/labeler/getServices.ts";
335export * as AppBskyLabelerService from "./types/app/bsky/labeler/service.ts";
336export * as AppBskyNotificationGetUnreadCount from "./types/app/bsky/notification/getUnreadCount.ts";
337export * as AppBskyNotificationListNotifications from "./types/app/bsky/notification/listNotifications.ts";
338export * as AppBskyNotificationPutPreferences from "./types/app/bsky/notification/putPreferences.ts";
339export * as AppBskyNotificationRegisterPush from "./types/app/bsky/notification/registerPush.ts";
340export * as AppBskyNotificationUpdateSeen from "./types/app/bsky/notification/updateSeen.ts";
341export * as AppBskyRichtextFacet from "./types/app/bsky/richtext/facet.ts";
342export * as AppBskyUnspeccedDefs from "./types/app/bsky/unspecced/defs.ts";
343export * as AppBskyUnspeccedGetConfig from "./types/app/bsky/unspecced/getConfig.ts";
344export * as AppBskyUnspeccedGetPopularFeedGenerators from "./types/app/bsky/unspecced/getPopularFeedGenerators.ts";
345export * as AppBskyUnspeccedGetSuggestedFeeds from "./types/app/bsky/unspecced/getSuggestedFeeds.ts";
346export * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from "./types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts";
347export * as AppBskyUnspeccedGetSuggestedStarterPacks from "./types/app/bsky/unspecced/getSuggestedStarterPacks.ts";
348export * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from "./types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts";
349export * as AppBskyUnspeccedGetSuggestedUsers from "./types/app/bsky/unspecced/getSuggestedUsers.ts";
350export * as AppBskyUnspeccedGetSuggestedUsersSkeleton from "./types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts";
351export * as AppBskyUnspeccedGetSuggestionsSkeleton from "./types/app/bsky/unspecced/getSuggestionsSkeleton.ts";
352export * as AppBskyUnspeccedGetTaggedSuggestions from "./types/app/bsky/unspecced/getTaggedSuggestions.ts";
353export * as AppBskyUnspeccedGetTrendingTopics from "./types/app/bsky/unspecced/getTrendingTopics.ts";
354export * as AppBskyUnspeccedGetTrends from "./types/app/bsky/unspecced/getTrends.ts";
355export * as AppBskyUnspeccedGetTrendsSkeleton from "./types/app/bsky/unspecced/getTrendsSkeleton.ts";
356export * as AppBskyUnspeccedSearchActorsSkeleton from "./types/app/bsky/unspecced/searchActorsSkeleton.ts";
357export * as AppBskyUnspeccedSearchPostsSkeleton from "./types/app/bsky/unspecced/searchPostsSkeleton.ts";
358export * as AppBskyUnspeccedSearchStarterPacksSkeleton from "./types/app/bsky/unspecced/searchStarterPacksSkeleton.ts";
359export * as AppBskyVideoDefs from "./types/app/bsky/video/defs.ts";
360export * as AppBskyVideoGetJobStatus from "./types/app/bsky/video/getJobStatus.ts";
361export * as AppBskyVideoGetUploadLimits from "./types/app/bsky/video/getUploadLimits.ts";
362export * as AppBskyVideoUploadVideo from "./types/app/bsky/video/uploadVideo.ts";
363export * as ChatBskyActorDeclaration from "./types/chat/bsky/actor/declaration.ts";
364export * as ChatBskyActorDefs from "./types/chat/bsky/actor/defs.ts";
365export * as ChatBskyActorDeleteAccount from "./types/chat/bsky/actor/deleteAccount.ts";
366export * as ChatBskyActorExportAccountData from "./types/chat/bsky/actor/exportAccountData.ts";
367export * as ChatBskyConvoAcceptConvo from "./types/chat/bsky/convo/acceptConvo.ts";
368export * as ChatBskyConvoAddReaction from "./types/chat/bsky/convo/addReaction.ts";
369export * as ChatBskyConvoDefs from "./types/chat/bsky/convo/defs.ts";
370export * as ChatBskyConvoDeleteMessageForSelf from "./types/chat/bsky/convo/deleteMessageForSelf.ts";
371export * as ChatBskyConvoGetConvo from "./types/chat/bsky/convo/getConvo.ts";
372export * as ChatBskyConvoGetConvoAvailability from "./types/chat/bsky/convo/getConvoAvailability.ts";
373export * as ChatBskyConvoGetConvoForMembers from "./types/chat/bsky/convo/getConvoForMembers.ts";
374export * as ChatBskyConvoGetLog from "./types/chat/bsky/convo/getLog.ts";
375export * as ChatBskyConvoGetMessages from "./types/chat/bsky/convo/getMessages.ts";
376export * as ChatBskyConvoLeaveConvo from "./types/chat/bsky/convo/leaveConvo.ts";
377export * as ChatBskyConvoListConvos from "./types/chat/bsky/convo/listConvos.ts";
378export * as ChatBskyConvoMuteConvo from "./types/chat/bsky/convo/muteConvo.ts";
379export * as ChatBskyConvoRemoveReaction from "./types/chat/bsky/convo/removeReaction.ts";
380export * as ChatBskyConvoSendMessage from "./types/chat/bsky/convo/sendMessage.ts";
381export * as ChatBskyConvoSendMessageBatch from "./types/chat/bsky/convo/sendMessageBatch.ts";
382export * as ChatBskyConvoUnmuteConvo from "./types/chat/bsky/convo/unmuteConvo.ts";
383export * as ChatBskyConvoUpdateAllRead from "./types/chat/bsky/convo/updateAllRead.ts";
384export * as ChatBskyConvoUpdateRead from "./types/chat/bsky/convo/updateRead.ts";
385export * as ChatBskyModerationGetActorMetadata from "./types/chat/bsky/moderation/getActorMetadata.ts";
386export * as ChatBskyModerationGetMessageContext from "./types/chat/bsky/moderation/getMessageContext.ts";
387export * as ChatBskyModerationUpdateActorAccess from "./types/chat/bsky/moderation/updateActorAccess.ts";
388export * as ComAtprotoAdminDefs from "./types/com/atproto/admin/defs.ts";
389export * as ComAtprotoAdminDeleteAccount from "./types/com/atproto/admin/deleteAccount.ts";
390export * as ComAtprotoAdminDisableAccountInvites from "./types/com/atproto/admin/disableAccountInvites.ts";
391export * as ComAtprotoAdminDisableInviteCodes from "./types/com/atproto/admin/disableInviteCodes.ts";
392export * as ComAtprotoAdminEnableAccountInvites from "./types/com/atproto/admin/enableAccountInvites.ts";
393export * as ComAtprotoAdminGetAccountInfo from "./types/com/atproto/admin/getAccountInfo.ts";
394export * as ComAtprotoAdminGetAccountInfos from "./types/com/atproto/admin/getAccountInfos.ts";
395export * as ComAtprotoAdminGetInviteCodes from "./types/com/atproto/admin/getInviteCodes.ts";
396export * as ComAtprotoAdminGetSubjectStatus from "./types/com/atproto/admin/getSubjectStatus.ts";
397export * as ComAtprotoAdminSearchAccounts from "./types/com/atproto/admin/searchAccounts.ts";
398export * as ComAtprotoAdminSendEmail from "./types/com/atproto/admin/sendEmail.ts";
399export * as ComAtprotoAdminUpdateAccountEmail from "./types/com/atproto/admin/updateAccountEmail.ts";
400export * as ComAtprotoAdminUpdateAccountHandle from "./types/com/atproto/admin/updateAccountHandle.ts";
401export * as ComAtprotoAdminUpdateAccountPassword from "./types/com/atproto/admin/updateAccountPassword.ts";
402export * as ComAtprotoAdminUpdateAccountSigningKey from "./types/com/atproto/admin/updateAccountSigningKey.ts";
403export * as ComAtprotoAdminUpdateSubjectStatus from "./types/com/atproto/admin/updateSubjectStatus.ts";
404export * as ComAtprotoIdentityDefs from "./types/com/atproto/identity/defs.ts";
405export * as ComAtprotoIdentityGetRecommendedDidCredentials from "./types/com/atproto/identity/getRecommendedDidCredentials.ts";
406export * as ComAtprotoIdentityRefreshIdentity from "./types/com/atproto/identity/refreshIdentity.ts";
407export * as ComAtprotoIdentityRequestPlcOperationSignature from "./types/com/atproto/identity/requestPlcOperationSignature.ts";
408export * as ComAtprotoIdentityResolveDid from "./types/com/atproto/identity/resolveDid.ts";
409export * as ComAtprotoIdentityResolveHandle from "./types/com/atproto/identity/resolveHandle.ts";
410export * as ComAtprotoIdentityResolveIdentity from "./types/com/atproto/identity/resolveIdentity.ts";
411export * as ComAtprotoIdentitySignPlcOperation from "./types/com/atproto/identity/signPlcOperation.ts";
412export * as ComAtprotoIdentitySubmitPlcOperation from "./types/com/atproto/identity/submitPlcOperation.ts";
413export * as ComAtprotoIdentityUpdateHandle from "./types/com/atproto/identity/updateHandle.ts";
414export * as ComAtprotoLabelDefs from "./types/com/atproto/label/defs.ts";
415export * as ComAtprotoLabelQueryLabels from "./types/com/atproto/label/queryLabels.ts";
416export * as ComAtprotoLabelSubscribeLabels from "./types/com/atproto/label/subscribeLabels.ts";
417export * as ComAtprotoLexiconSchema from "./types/com/atproto/lexicon/schema.ts";
418export * as ComAtprotoModerationCreateReport from "./types/com/atproto/moderation/createReport.ts";
419export * as ComAtprotoModerationDefs from "./types/com/atproto/moderation/defs.ts";
420export * as ComAtprotoRepoApplyWrites from "./types/com/atproto/repo/applyWrites.ts";
421export * as ComAtprotoRepoCreateRecord from "./types/com/atproto/repo/createRecord.ts";
422export * as ComAtprotoRepoDefs from "./types/com/atproto/repo/defs.ts";
423export * as ComAtprotoRepoDeleteRecord from "./types/com/atproto/repo/deleteRecord.ts";
424export * as ComAtprotoRepoDescribeRepo from "./types/com/atproto/repo/describeRepo.ts";
425export * as ComAtprotoRepoGetRecord from "./types/com/atproto/repo/getRecord.ts";
426export * as ComAtprotoRepoImportRepo from "./types/com/atproto/repo/importRepo.ts";
427export * as ComAtprotoRepoListMissingBlobs from "./types/com/atproto/repo/listMissingBlobs.ts";
428export * as ComAtprotoRepoListRecords from "./types/com/atproto/repo/listRecords.ts";
429export * as ComAtprotoRepoPutRecord from "./types/com/atproto/repo/putRecord.ts";
430export * as ComAtprotoRepoStrongRef from "./types/com/atproto/repo/strongRef.ts";
431export * as ComAtprotoRepoUploadBlob from "./types/com/atproto/repo/uploadBlob.ts";
432export * as ComAtprotoServerActivateAccount from "./types/com/atproto/server/activateAccount.ts";
433export * as ComAtprotoServerCheckAccountStatus from "./types/com/atproto/server/checkAccountStatus.ts";
434export * as ComAtprotoServerConfirmEmail from "./types/com/atproto/server/confirmEmail.ts";
435export * as ComAtprotoServerCreateAccount from "./types/com/atproto/server/createAccount.ts";
436export * as ComAtprotoServerCreateAppPassword from "./types/com/atproto/server/createAppPassword.ts";
437export * as ComAtprotoServerCreateInviteCode from "./types/com/atproto/server/createInviteCode.ts";
438export * as ComAtprotoServerCreateInviteCodes from "./types/com/atproto/server/createInviteCodes.ts";
439export * as ComAtprotoServerCreateSession from "./types/com/atproto/server/createSession.ts";
440export * as ComAtprotoServerDeactivateAccount from "./types/com/atproto/server/deactivateAccount.ts";
441export * as ComAtprotoServerDefs from "./types/com/atproto/server/defs.ts";
442export * as ComAtprotoServerDeleteAccount from "./types/com/atproto/server/deleteAccount.ts";
443export * as ComAtprotoServerDeleteSession from "./types/com/atproto/server/deleteSession.ts";
444export * as ComAtprotoServerDescribeServer from "./types/com/atproto/server/describeServer.ts";
445export * as ComAtprotoServerGetAccountInviteCodes from "./types/com/atproto/server/getAccountInviteCodes.ts";
446export * as ComAtprotoServerGetServiceAuth from "./types/com/atproto/server/getServiceAuth.ts";
447export * as ComAtprotoServerGetSession from "./types/com/atproto/server/getSession.ts";
448export * as ComAtprotoServerListAppPasswords from "./types/com/atproto/server/listAppPasswords.ts";
449export * as ComAtprotoServerRefreshSession from "./types/com/atproto/server/refreshSession.ts";
450export * as ComAtprotoServerRequestAccountDelete from "./types/com/atproto/server/requestAccountDelete.ts";
451export * as ComAtprotoServerRequestEmailConfirmation from "./types/com/atproto/server/requestEmailConfirmation.ts";
452export * as ComAtprotoServerRequestEmailUpdate from "./types/com/atproto/server/requestEmailUpdate.ts";
453export * as ComAtprotoServerRequestPasswordReset from "./types/com/atproto/server/requestPasswordReset.ts";
454export * as ComAtprotoServerReserveSigningKey from "./types/com/atproto/server/reserveSigningKey.ts";
455export * as ComAtprotoServerResetPassword from "./types/com/atproto/server/resetPassword.ts";
456export * as ComAtprotoServerRevokeAppPassword from "./types/com/atproto/server/revokeAppPassword.ts";
457export * as ComAtprotoServerUpdateEmail from "./types/com/atproto/server/updateEmail.ts";
458export * as ComAtprotoSyncDefs from "./types/com/atproto/sync/defs.ts";
459export * as ComAtprotoSyncGetBlob from "./types/com/atproto/sync/getBlob.ts";
460export * as ComAtprotoSyncGetBlocks from "./types/com/atproto/sync/getBlocks.ts";
461export * as ComAtprotoSyncGetCheckout from "./types/com/atproto/sync/getCheckout.ts";
462export * as ComAtprotoSyncGetHead from "./types/com/atproto/sync/getHead.ts";
463export * as ComAtprotoSyncGetHostStatus from "./types/com/atproto/sync/getHostStatus.ts";
464export * as ComAtprotoSyncGetLatestCommit from "./types/com/atproto/sync/getLatestCommit.ts";
465export * as ComAtprotoSyncGetRecord from "./types/com/atproto/sync/getRecord.ts";
466export * as ComAtprotoSyncGetRepo from "./types/com/atproto/sync/getRepo.ts";
467export * as ComAtprotoSyncGetRepoStatus from "./types/com/atproto/sync/getRepoStatus.ts";
468export * as ComAtprotoSyncListBlobs from "./types/com/atproto/sync/listBlobs.ts";
469export * as ComAtprotoSyncListHosts from "./types/com/atproto/sync/listHosts.ts";
470export * as ComAtprotoSyncListRepos from "./types/com/atproto/sync/listRepos.ts";
471export * as ComAtprotoSyncListReposByCollection from "./types/com/atproto/sync/listReposByCollection.ts";
472export * as ComAtprotoSyncNotifyOfUpdate from "./types/com/atproto/sync/notifyOfUpdate.ts";
473export * as ComAtprotoSyncRequestCrawl from "./types/com/atproto/sync/requestCrawl.ts";
474export * as ComAtprotoSyncSubscribeRepos from "./types/com/atproto/sync/subscribeRepos.ts";
475export * as ComAtprotoTempAddReservedHandle from "./types/com/atproto/temp/addReservedHandle.ts";
476export * as ComAtprotoTempCheckSignupQueue from "./types/com/atproto/temp/checkSignupQueue.ts";
477export * as ComAtprotoTempFetchLabels from "./types/com/atproto/temp/fetchLabels.ts";
478export * as ComAtprotoTempRequestPhoneVerification from "./types/com/atproto/temp/requestPhoneVerification.ts";
479export * as ToolsOzoneCommunicationCreateTemplate from "./types/tools/ozone/communication/createTemplate.ts";
480export * as ToolsOzoneCommunicationDefs from "./types/tools/ozone/communication/defs.ts";
481export * as ToolsOzoneCommunicationDeleteTemplate from "./types/tools/ozone/communication/deleteTemplate.ts";
482export * as ToolsOzoneCommunicationListTemplates from "./types/tools/ozone/communication/listTemplates.ts";
483export * as ToolsOzoneCommunicationUpdateTemplate from "./types/tools/ozone/communication/updateTemplate.ts";
484export * as ToolsOzoneModerationDefs from "./types/tools/ozone/moderation/defs.ts";
485export * as ToolsOzoneModerationEmitEvent from "./types/tools/ozone/moderation/emitEvent.ts";
486export * as ToolsOzoneModerationGetEvent from "./types/tools/ozone/moderation/getEvent.ts";
487export * as ToolsOzoneModerationGetRecord from "./types/tools/ozone/moderation/getRecord.ts";
488export * as ToolsOzoneModerationGetRecords from "./types/tools/ozone/moderation/getRecords.ts";
489export * as ToolsOzoneModerationGetRepo from "./types/tools/ozone/moderation/getRepo.ts";
490export * as ToolsOzoneModerationGetReporterStats from "./types/tools/ozone/moderation/getReporterStats.ts";
491export * as ToolsOzoneModerationGetRepos from "./types/tools/ozone/moderation/getRepos.ts";
492export * as ToolsOzoneModerationGetSubjects from "./types/tools/ozone/moderation/getSubjects.ts";
493export * as ToolsOzoneModerationQueryEvents from "./types/tools/ozone/moderation/queryEvents.ts";
494export * as ToolsOzoneModerationQueryStatuses from "./types/tools/ozone/moderation/queryStatuses.ts";
495export * as ToolsOzoneModerationSearchRepos from "./types/tools/ozone/moderation/searchRepos.ts";
496export * as ToolsOzoneServerGetConfig from "./types/tools/ozone/server/getConfig.ts";
497export * as ToolsOzoneSetAddValues from "./types/tools/ozone/set/addValues.ts";
498export * as ToolsOzoneSetDefs from "./types/tools/ozone/set/defs.ts";
499export * as ToolsOzoneSetDeleteSet from "./types/tools/ozone/set/deleteSet.ts";
500export * as ToolsOzoneSetDeleteValues from "./types/tools/ozone/set/deleteValues.ts";
501export * as ToolsOzoneSetGetValues from "./types/tools/ozone/set/getValues.ts";
502export * as ToolsOzoneSetQuerySets from "./types/tools/ozone/set/querySets.ts";
503export * as ToolsOzoneSetUpsertSet from "./types/tools/ozone/set/upsertSet.ts";
504export * as ToolsOzoneSettingDefs from "./types/tools/ozone/setting/defs.ts";
505export * as ToolsOzoneSettingListOptions from "./types/tools/ozone/setting/listOptions.ts";
506export * as ToolsOzoneSettingRemoveOptions from "./types/tools/ozone/setting/removeOptions.ts";
507export * as ToolsOzoneSettingUpsertOption from "./types/tools/ozone/setting/upsertOption.ts";
508export * as ToolsOzoneSignatureDefs from "./types/tools/ozone/signature/defs.ts";
509export * as ToolsOzoneSignatureFindCorrelation from "./types/tools/ozone/signature/findCorrelation.ts";
510export * as ToolsOzoneSignatureFindRelatedAccounts from "./types/tools/ozone/signature/findRelatedAccounts.ts";
511export * as ToolsOzoneSignatureSearchAccounts from "./types/tools/ozone/signature/searchAccounts.ts";
512export * as ToolsOzoneTeamAddMember from "./types/tools/ozone/team/addMember.ts";
513export * as ToolsOzoneTeamDefs from "./types/tools/ozone/team/defs.ts";
514export * as ToolsOzoneTeamDeleteMember from "./types/tools/ozone/team/deleteMember.ts";
515export * as ToolsOzoneTeamListMembers from "./types/tools/ozone/team/listMembers.ts";
516export * as ToolsOzoneTeamUpdateMember from "./types/tools/ozone/team/updateMember.ts";
517
518export const APP_BSKY_FEED = {
519 DefsRequestLess: "app.bsky.feed.defs#requestLess",
520 DefsRequestMore: "app.bsky.feed.defs#requestMore",
521 DefsClickthroughItem: "app.bsky.feed.defs#clickthroughItem",
522 DefsClickthroughAuthor: "app.bsky.feed.defs#clickthroughAuthor",
523 DefsClickthroughReposter: "app.bsky.feed.defs#clickthroughReposter",
524 DefsClickthroughEmbed: "app.bsky.feed.defs#clickthroughEmbed",
525 DefsContentModeUnspecified: "app.bsky.feed.defs#contentModeUnspecified",
526 DefsContentModeVideo: "app.bsky.feed.defs#contentModeVideo",
527 DefsInteractionSeen: "app.bsky.feed.defs#interactionSeen",
528 DefsInteractionLike: "app.bsky.feed.defs#interactionLike",
529 DefsInteractionRepost: "app.bsky.feed.defs#interactionRepost",
530 DefsInteractionReply: "app.bsky.feed.defs#interactionReply",
531 DefsInteractionQuote: "app.bsky.feed.defs#interactionQuote",
532 DefsInteractionShare: "app.bsky.feed.defs#interactionShare",
533};
534export const APP_BSKY_GRAPH = {
535 DefsModlist: "app.bsky.graph.defs#modlist",
536 DefsCuratelist: "app.bsky.graph.defs#curatelist",
537 DefsReferencelist: "app.bsky.graph.defs#referencelist",
538};
539export const COM_ATPROTO_MODERATION = {
540 DefsReasonSpam: "com.atproto.moderation.defs#reasonSpam",
541 DefsReasonViolation: "com.atproto.moderation.defs#reasonViolation",
542 DefsReasonMisleading: "com.atproto.moderation.defs#reasonMisleading",
543 DefsReasonSexual: "com.atproto.moderation.defs#reasonSexual",
544 DefsReasonRude: "com.atproto.moderation.defs#reasonRude",
545 DefsReasonOther: "com.atproto.moderation.defs#reasonOther",
546 DefsReasonAppeal: "com.atproto.moderation.defs#reasonAppeal",
547};
548export const TOOLS_OZONE_MODERATION = {
549 DefsReviewOpen: "tools.ozone.moderation.defs#reviewOpen",
550 DefsReviewEscalated: "tools.ozone.moderation.defs#reviewEscalated",
551 DefsReviewClosed: "tools.ozone.moderation.defs#reviewClosed",
552 DefsReviewNone: "tools.ozone.moderation.defs#reviewNone",
553};
554export const TOOLS_OZONE_TEAM = {
555 DefsRoleAdmin: "tools.ozone.team.defs#roleAdmin",
556 DefsRoleModerator: "tools.ozone.team.defs#roleModerator",
557 DefsRoleTriage: "tools.ozone.team.defs#roleTriage",
558};
559
560export class AtpBaseClient extends XrpcClient {
561 app: AppNS;
562 chat: ChatNS;
563 com: ComNS;
564 tools: ToolsNS;
565
566 constructor(options: FetchHandler | FetchHandlerOptions) {
567 super(options, schemas);
568 this.app = new AppNS(this);
569 this.chat = new ChatNS(this);
570 this.com = new ComNS(this);
571 this.tools = new ToolsNS(this);
572 }
573
574 /** @deprecated use `this` instead */
575 get xrpc(): XrpcClient {
576 return this;
577 }
578}
579
580export class AppNS {
581 _client: XrpcClient;
582 bsky: AppBskyNS;
583
584 constructor(client: XrpcClient) {
585 this._client = client;
586 this.bsky = new AppBskyNS(client);
587 }
588}
589
590export class AppBskyNS {
591 _client: XrpcClient;
592 actor: AppBskyActorNS;
593 embed: AppBskyEmbedNS;
594 feed: AppBskyFeedNS;
595 graph: AppBskyGraphNS;
596 labeler: AppBskyLabelerNS;
597 notification: AppBskyNotificationNS;
598 richtext: AppBskyRichtextNS;
599 unspecced: AppBskyUnspeccedNS;
600 video: AppBskyVideoNS;
601
602 constructor(client: XrpcClient) {
603 this._client = client;
604 this.actor = new AppBskyActorNS(client);
605 this.embed = new AppBskyEmbedNS(client);
606 this.feed = new AppBskyFeedNS(client);
607 this.graph = new AppBskyGraphNS(client);
608 this.labeler = new AppBskyLabelerNS(client);
609 this.notification = new AppBskyNotificationNS(client);
610 this.richtext = new AppBskyRichtextNS(client);
611 this.unspecced = new AppBskyUnspeccedNS(client);
612 this.video = new AppBskyVideoNS(client);
613 }
614}
615
616export class AppBskyActorNS {
617 _client: XrpcClient;
618 profile: ProfileRecord;
619
620 constructor(client: XrpcClient) {
621 this._client = client;
622 this.profile = new ProfileRecord(client);
623 }
624
625 getPreferences(
626 params?: AppBskyActorGetPreferences.QueryParams,
627 opts?: AppBskyActorGetPreferences.CallOptions,
628 ): Promise<AppBskyActorGetPreferences.Response> {
629 return this._client.call(
630 "app.bsky.actor.getPreferences",
631 params,
632 undefined,
633 opts,
634 );
635 }
636
637 getProfile(
638 params?: AppBskyActorGetProfile.QueryParams,
639 opts?: AppBskyActorGetProfile.CallOptions,
640 ): Promise<AppBskyActorGetProfile.Response> {
641 return this._client.call(
642 "app.bsky.actor.getProfile",
643 params,
644 undefined,
645 opts,
646 );
647 }
648
649 getProfiles(
650 params?: AppBskyActorGetProfiles.QueryParams,
651 opts?: AppBskyActorGetProfiles.CallOptions,
652 ): Promise<AppBskyActorGetProfiles.Response> {
653 return this._client.call(
654 "app.bsky.actor.getProfiles",
655 params,
656 undefined,
657 opts,
658 );
659 }
660
661 getSuggestions(
662 params?: AppBskyActorGetSuggestions.QueryParams,
663 opts?: AppBskyActorGetSuggestions.CallOptions,
664 ): Promise<AppBskyActorGetSuggestions.Response> {
665 return this._client.call(
666 "app.bsky.actor.getSuggestions",
667 params,
668 undefined,
669 opts,
670 );
671 }
672
673 putPreferences(
674 data?: AppBskyActorPutPreferences.InputSchema,
675 opts?: AppBskyActorPutPreferences.CallOptions,
676 ): Promise<AppBskyActorPutPreferences.Response> {
677 return this._client.call(
678 "app.bsky.actor.putPreferences",
679 opts?.qp,
680 data,
681 opts,
682 );
683 }
684
685 searchActors(
686 params?: AppBskyActorSearchActors.QueryParams,
687 opts?: AppBskyActorSearchActors.CallOptions,
688 ): Promise<AppBskyActorSearchActors.Response> {
689 return this._client.call(
690 "app.bsky.actor.searchActors",
691 params,
692 undefined,
693 opts,
694 );
695 }
696
697 searchActorsTypeahead(
698 params?: AppBskyActorSearchActorsTypeahead.QueryParams,
699 opts?: AppBskyActorSearchActorsTypeahead.CallOptions,
700 ): Promise<AppBskyActorSearchActorsTypeahead.Response> {
701 return this._client.call(
702 "app.bsky.actor.searchActorsTypeahead",
703 params,
704 undefined,
705 opts,
706 );
707 }
708}
709
710export class ProfileRecord {
711 _client: XrpcClient;
712
713 constructor(client: XrpcClient) {
714 this._client = client;
715 }
716
717 async list(
718 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
719 ): Promise<{
720 cursor?: string;
721 records: { uri: string; value: AppBskyActorProfile.Record }[];
722 }> {
723 const res = await this._client.call("com.atproto.repo.listRecords", {
724 collection: "app.bsky.actor.profile",
725 ...params,
726 });
727 return res.data;
728 }
729
730 async get(
731 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
732 ): Promise<{ uri: string; cid: string; value: AppBskyActorProfile.Record }> {
733 const res = await this._client.call("com.atproto.repo.getRecord", {
734 collection: "app.bsky.actor.profile",
735 ...params,
736 });
737 return res.data;
738 }
739
740 async create(
741 params: OmitKey<
742 ComAtprotoRepoCreateRecord.InputSchema,
743 "collection" | "record"
744 >,
745 record: Un$Typed<AppBskyActorProfile.Record>,
746 headers?: Record<string, string>,
747 ): Promise<{ uri: string; cid: string }> {
748 const collection = "app.bsky.actor.profile";
749 const res = await this._client.call(
750 "com.atproto.repo.createRecord",
751 undefined,
752 {
753 collection,
754 rkey: "self",
755 ...params,
756 record: { ...record, $type: collection },
757 },
758 { encoding: "application/json", headers },
759 );
760 return res.data;
761 }
762
763 async delete(
764 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
765 headers?: Record<string, string>,
766 ): Promise<void> {
767 await this._client.call(
768 "com.atproto.repo.deleteRecord",
769 undefined,
770 { collection: "app.bsky.actor.profile", ...params },
771 { headers },
772 );
773 }
774}
775
776export class AppBskyEmbedNS {
777 _client: XrpcClient;
778
779 constructor(client: XrpcClient) {
780 this._client = client;
781 }
782}
783
784export class AppBskyFeedNS {
785 _client: XrpcClient;
786 generator: GeneratorRecord;
787 like: LikeRecord;
788 post: PostRecord;
789 postgate: PostgateRecord;
790 repost: RepostRecord;
791 threadgate: ThreadgateRecord;
792
793 constructor(client: XrpcClient) {
794 this._client = client;
795 this.generator = new GeneratorRecord(client);
796 this.like = new LikeRecord(client);
797 this.post = new PostRecord(client);
798 this.postgate = new PostgateRecord(client);
799 this.repost = new RepostRecord(client);
800 this.threadgate = new ThreadgateRecord(client);
801 }
802
803 describeFeedGenerator(
804 params?: AppBskyFeedDescribeFeedGenerator.QueryParams,
805 opts?: AppBskyFeedDescribeFeedGenerator.CallOptions,
806 ): Promise<AppBskyFeedDescribeFeedGenerator.Response> {
807 return this._client.call(
808 "app.bsky.feed.describeFeedGenerator",
809 params,
810 undefined,
811 opts,
812 );
813 }
814
815 getActorFeeds(
816 params?: AppBskyFeedGetActorFeeds.QueryParams,
817 opts?: AppBskyFeedGetActorFeeds.CallOptions,
818 ): Promise<AppBskyFeedGetActorFeeds.Response> {
819 return this._client.call(
820 "app.bsky.feed.getActorFeeds",
821 params,
822 undefined,
823 opts,
824 );
825 }
826
827 getActorLikes(
828 params?: AppBskyFeedGetActorLikes.QueryParams,
829 opts?: AppBskyFeedGetActorLikes.CallOptions,
830 ): Promise<AppBskyFeedGetActorLikes.Response> {
831 return this._client
832 .call("app.bsky.feed.getActorLikes", params, undefined, opts)
833 .catch((e) => {
834 throw AppBskyFeedGetActorLikes.toKnownErr(e);
835 });
836 }
837
838 getAuthorFeed(
839 params?: AppBskyFeedGetAuthorFeed.QueryParams,
840 opts?: AppBskyFeedGetAuthorFeed.CallOptions,
841 ): Promise<AppBskyFeedGetAuthorFeed.Response> {
842 return this._client
843 .call("app.bsky.feed.getAuthorFeed", params, undefined, opts)
844 .catch((e) => {
845 throw AppBskyFeedGetAuthorFeed.toKnownErr(e);
846 });
847 }
848
849 getFeed(
850 params?: AppBskyFeedGetFeed.QueryParams,
851 opts?: AppBskyFeedGetFeed.CallOptions,
852 ): Promise<AppBskyFeedGetFeed.Response> {
853 return this._client
854 .call("app.bsky.feed.getFeed", params, undefined, opts)
855 .catch((e) => {
856 throw AppBskyFeedGetFeed.toKnownErr(e);
857 });
858 }
859
860 getFeedGenerator(
861 params?: AppBskyFeedGetFeedGenerator.QueryParams,
862 opts?: AppBskyFeedGetFeedGenerator.CallOptions,
863 ): Promise<AppBskyFeedGetFeedGenerator.Response> {
864 return this._client.call(
865 "app.bsky.feed.getFeedGenerator",
866 params,
867 undefined,
868 opts,
869 );
870 }
871
872 getFeedGenerators(
873 params?: AppBskyFeedGetFeedGenerators.QueryParams,
874 opts?: AppBskyFeedGetFeedGenerators.CallOptions,
875 ): Promise<AppBskyFeedGetFeedGenerators.Response> {
876 return this._client.call(
877 "app.bsky.feed.getFeedGenerators",
878 params,
879 undefined,
880 opts,
881 );
882 }
883
884 getFeedSkeleton(
885 params?: AppBskyFeedGetFeedSkeleton.QueryParams,
886 opts?: AppBskyFeedGetFeedSkeleton.CallOptions,
887 ): Promise<AppBskyFeedGetFeedSkeleton.Response> {
888 return this._client
889 .call("app.bsky.feed.getFeedSkeleton", params, undefined, opts)
890 .catch((e) => {
891 throw AppBskyFeedGetFeedSkeleton.toKnownErr(e);
892 });
893 }
894
895 getLikes(
896 params?: AppBskyFeedGetLikes.QueryParams,
897 opts?: AppBskyFeedGetLikes.CallOptions,
898 ): Promise<AppBskyFeedGetLikes.Response> {
899 return this._client.call("app.bsky.feed.getLikes", params, undefined, opts);
900 }
901
902 getListFeed(
903 params?: AppBskyFeedGetListFeed.QueryParams,
904 opts?: AppBskyFeedGetListFeed.CallOptions,
905 ): Promise<AppBskyFeedGetListFeed.Response> {
906 return this._client
907 .call("app.bsky.feed.getListFeed", params, undefined, opts)
908 .catch((e) => {
909 throw AppBskyFeedGetListFeed.toKnownErr(e);
910 });
911 }
912
913 getPostThread(
914 params?: AppBskyFeedGetPostThread.QueryParams,
915 opts?: AppBskyFeedGetPostThread.CallOptions,
916 ): Promise<AppBskyFeedGetPostThread.Response> {
917 return this._client
918 .call("app.bsky.feed.getPostThread", params, undefined, opts)
919 .catch((e) => {
920 throw AppBskyFeedGetPostThread.toKnownErr(e);
921 });
922 }
923
924 getPosts(
925 params?: AppBskyFeedGetPosts.QueryParams,
926 opts?: AppBskyFeedGetPosts.CallOptions,
927 ): Promise<AppBskyFeedGetPosts.Response> {
928 return this._client.call("app.bsky.feed.getPosts", params, undefined, opts);
929 }
930
931 getQuotes(
932 params?: AppBskyFeedGetQuotes.QueryParams,
933 opts?: AppBskyFeedGetQuotes.CallOptions,
934 ): Promise<AppBskyFeedGetQuotes.Response> {
935 return this._client.call(
936 "app.bsky.feed.getQuotes",
937 params,
938 undefined,
939 opts,
940 );
941 }
942
943 getRepostedBy(
944 params?: AppBskyFeedGetRepostedBy.QueryParams,
945 opts?: AppBskyFeedGetRepostedBy.CallOptions,
946 ): Promise<AppBskyFeedGetRepostedBy.Response> {
947 return this._client.call(
948 "app.bsky.feed.getRepostedBy",
949 params,
950 undefined,
951 opts,
952 );
953 }
954
955 getSuggestedFeeds(
956 params?: AppBskyFeedGetSuggestedFeeds.QueryParams,
957 opts?: AppBskyFeedGetSuggestedFeeds.CallOptions,
958 ): Promise<AppBskyFeedGetSuggestedFeeds.Response> {
959 return this._client.call(
960 "app.bsky.feed.getSuggestedFeeds",
961 params,
962 undefined,
963 opts,
964 );
965 }
966
967 getTimeline(
968 params?: AppBskyFeedGetTimeline.QueryParams,
969 opts?: AppBskyFeedGetTimeline.CallOptions,
970 ): Promise<AppBskyFeedGetTimeline.Response> {
971 return this._client.call(
972 "app.bsky.feed.getTimeline",
973 params,
974 undefined,
975 opts,
976 );
977 }
978
979 searchPosts(
980 params?: AppBskyFeedSearchPosts.QueryParams,
981 opts?: AppBskyFeedSearchPosts.CallOptions,
982 ): Promise<AppBskyFeedSearchPosts.Response> {
983 return this._client
984 .call("app.bsky.feed.searchPosts", params, undefined, opts)
985 .catch((e) => {
986 throw AppBskyFeedSearchPosts.toKnownErr(e);
987 });
988 }
989
990 sendInteractions(
991 data?: AppBskyFeedSendInteractions.InputSchema,
992 opts?: AppBskyFeedSendInteractions.CallOptions,
993 ): Promise<AppBskyFeedSendInteractions.Response> {
994 return this._client.call(
995 "app.bsky.feed.sendInteractions",
996 opts?.qp,
997 data,
998 opts,
999 );
1000 }
1001}
1002
1003export class GeneratorRecord {
1004 _client: XrpcClient;
1005
1006 constructor(client: XrpcClient) {
1007 this._client = client;
1008 }
1009
1010 async list(
1011 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1012 ): Promise<{
1013 cursor?: string;
1014 records: { uri: string; value: AppBskyFeedGenerator.Record }[];
1015 }> {
1016 const res = await this._client.call("com.atproto.repo.listRecords", {
1017 collection: "app.bsky.feed.generator",
1018 ...params,
1019 });
1020 return res.data;
1021 }
1022
1023 async get(
1024 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1025 ): Promise<{ uri: string; cid: string; value: AppBskyFeedGenerator.Record }> {
1026 const res = await this._client.call("com.atproto.repo.getRecord", {
1027 collection: "app.bsky.feed.generator",
1028 ...params,
1029 });
1030 return res.data;
1031 }
1032
1033 async create(
1034 params: OmitKey<
1035 ComAtprotoRepoCreateRecord.InputSchema,
1036 "collection" | "record"
1037 >,
1038 record: Un$Typed<AppBskyFeedGenerator.Record>,
1039 headers?: Record<string, string>,
1040 ): Promise<{ uri: string; cid: string }> {
1041 const collection = "app.bsky.feed.generator";
1042 const res = await this._client.call(
1043 "com.atproto.repo.createRecord",
1044 undefined,
1045 { collection, ...params, record: { ...record, $type: collection } },
1046 { encoding: "application/json", headers },
1047 );
1048 return res.data;
1049 }
1050
1051 async delete(
1052 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1053 headers?: Record<string, string>,
1054 ): Promise<void> {
1055 await this._client.call(
1056 "com.atproto.repo.deleteRecord",
1057 undefined,
1058 { collection: "app.bsky.feed.generator", ...params },
1059 { headers },
1060 );
1061 }
1062}
1063
1064export class LikeRecord {
1065 _client: XrpcClient;
1066
1067 constructor(client: XrpcClient) {
1068 this._client = client;
1069 }
1070
1071 async list(
1072 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1073 ): Promise<{
1074 cursor?: string;
1075 records: { uri: string; value: AppBskyFeedLike.Record }[];
1076 }> {
1077 const res = await this._client.call("com.atproto.repo.listRecords", {
1078 collection: "app.bsky.feed.like",
1079 ...params,
1080 });
1081 return res.data;
1082 }
1083
1084 async get(
1085 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1086 ): Promise<{ uri: string; cid: string; value: AppBskyFeedLike.Record }> {
1087 const res = await this._client.call("com.atproto.repo.getRecord", {
1088 collection: "app.bsky.feed.like",
1089 ...params,
1090 });
1091 return res.data;
1092 }
1093
1094 async create(
1095 params: OmitKey<
1096 ComAtprotoRepoCreateRecord.InputSchema,
1097 "collection" | "record"
1098 >,
1099 record: Un$Typed<AppBskyFeedLike.Record>,
1100 headers?: Record<string, string>,
1101 ): Promise<{ uri: string; cid: string }> {
1102 const collection = "app.bsky.feed.like";
1103 const res = await this._client.call(
1104 "com.atproto.repo.createRecord",
1105 undefined,
1106 { collection, ...params, record: { ...record, $type: collection } },
1107 { encoding: "application/json", headers },
1108 );
1109 return res.data;
1110 }
1111
1112 async delete(
1113 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1114 headers?: Record<string, string>,
1115 ): Promise<void> {
1116 await this._client.call(
1117 "com.atproto.repo.deleteRecord",
1118 undefined,
1119 { collection: "app.bsky.feed.like", ...params },
1120 { headers },
1121 );
1122 }
1123}
1124
1125export class PostRecord {
1126 _client: XrpcClient;
1127
1128 constructor(client: XrpcClient) {
1129 this._client = client;
1130 }
1131
1132 async list(
1133 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1134 ): Promise<{
1135 cursor?: string;
1136 records: { uri: string; value: AppBskyFeedPost.Record }[];
1137 }> {
1138 const res = await this._client.call("com.atproto.repo.listRecords", {
1139 collection: "app.bsky.feed.post",
1140 ...params,
1141 });
1142 return res.data;
1143 }
1144
1145 async get(
1146 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1147 ): Promise<{ uri: string; cid: string; value: AppBskyFeedPost.Record }> {
1148 const res = await this._client.call("com.atproto.repo.getRecord", {
1149 collection: "app.bsky.feed.post",
1150 ...params,
1151 });
1152 return res.data;
1153 }
1154
1155 async create(
1156 params: OmitKey<
1157 ComAtprotoRepoCreateRecord.InputSchema,
1158 "collection" | "record"
1159 >,
1160 record: Un$Typed<AppBskyFeedPost.Record>,
1161 headers?: Record<string, string>,
1162 ): Promise<{ uri: string; cid: string }> {
1163 const collection = "app.bsky.feed.post";
1164 const res = await this._client.call(
1165 "com.atproto.repo.createRecord",
1166 undefined,
1167 { collection, ...params, record: { ...record, $type: collection } },
1168 { encoding: "application/json", headers },
1169 );
1170 return res.data;
1171 }
1172
1173 async delete(
1174 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1175 headers?: Record<string, string>,
1176 ): Promise<void> {
1177 await this._client.call(
1178 "com.atproto.repo.deleteRecord",
1179 undefined,
1180 { collection: "app.bsky.feed.post", ...params },
1181 { headers },
1182 );
1183 }
1184}
1185
1186export class PostgateRecord {
1187 _client: XrpcClient;
1188
1189 constructor(client: XrpcClient) {
1190 this._client = client;
1191 }
1192
1193 async list(
1194 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1195 ): Promise<{
1196 cursor?: string;
1197 records: { uri: string; value: AppBskyFeedPostgate.Record }[];
1198 }> {
1199 const res = await this._client.call("com.atproto.repo.listRecords", {
1200 collection: "app.bsky.feed.postgate",
1201 ...params,
1202 });
1203 return res.data;
1204 }
1205
1206 async get(
1207 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1208 ): Promise<{ uri: string; cid: string; value: AppBskyFeedPostgate.Record }> {
1209 const res = await this._client.call("com.atproto.repo.getRecord", {
1210 collection: "app.bsky.feed.postgate",
1211 ...params,
1212 });
1213 return res.data;
1214 }
1215
1216 async create(
1217 params: OmitKey<
1218 ComAtprotoRepoCreateRecord.InputSchema,
1219 "collection" | "record"
1220 >,
1221 record: Un$Typed<AppBskyFeedPostgate.Record>,
1222 headers?: Record<string, string>,
1223 ): Promise<{ uri: string; cid: string }> {
1224 const collection = "app.bsky.feed.postgate";
1225 const res = await this._client.call(
1226 "com.atproto.repo.createRecord",
1227 undefined,
1228 { collection, ...params, record: { ...record, $type: collection } },
1229 { encoding: "application/json", headers },
1230 );
1231 return res.data;
1232 }
1233
1234 async delete(
1235 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1236 headers?: Record<string, string>,
1237 ): Promise<void> {
1238 await this._client.call(
1239 "com.atproto.repo.deleteRecord",
1240 undefined,
1241 { collection: "app.bsky.feed.postgate", ...params },
1242 { headers },
1243 );
1244 }
1245}
1246
1247export class RepostRecord {
1248 _client: XrpcClient;
1249
1250 constructor(client: XrpcClient) {
1251 this._client = client;
1252 }
1253
1254 async list(
1255 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1256 ): Promise<{
1257 cursor?: string;
1258 records: { uri: string; value: AppBskyFeedRepost.Record }[];
1259 }> {
1260 const res = await this._client.call("com.atproto.repo.listRecords", {
1261 collection: "app.bsky.feed.repost",
1262 ...params,
1263 });
1264 return res.data;
1265 }
1266
1267 async get(
1268 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1269 ): Promise<{ uri: string; cid: string; value: AppBskyFeedRepost.Record }> {
1270 const res = await this._client.call("com.atproto.repo.getRecord", {
1271 collection: "app.bsky.feed.repost",
1272 ...params,
1273 });
1274 return res.data;
1275 }
1276
1277 async create(
1278 params: OmitKey<
1279 ComAtprotoRepoCreateRecord.InputSchema,
1280 "collection" | "record"
1281 >,
1282 record: Un$Typed<AppBskyFeedRepost.Record>,
1283 headers?: Record<string, string>,
1284 ): Promise<{ uri: string; cid: string }> {
1285 const collection = "app.bsky.feed.repost";
1286 const res = await this._client.call(
1287 "com.atproto.repo.createRecord",
1288 undefined,
1289 { collection, ...params, record: { ...record, $type: collection } },
1290 { encoding: "application/json", headers },
1291 );
1292 return res.data;
1293 }
1294
1295 async delete(
1296 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1297 headers?: Record<string, string>,
1298 ): Promise<void> {
1299 await this._client.call(
1300 "com.atproto.repo.deleteRecord",
1301 undefined,
1302 { collection: "app.bsky.feed.repost", ...params },
1303 { headers },
1304 );
1305 }
1306}
1307
1308export class ThreadgateRecord {
1309 _client: XrpcClient;
1310
1311 constructor(client: XrpcClient) {
1312 this._client = client;
1313 }
1314
1315 async list(
1316 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1317 ): Promise<{
1318 cursor?: string;
1319 records: { uri: string; value: AppBskyFeedThreadgate.Record }[];
1320 }> {
1321 const res = await this._client.call("com.atproto.repo.listRecords", {
1322 collection: "app.bsky.feed.threadgate",
1323 ...params,
1324 });
1325 return res.data;
1326 }
1327
1328 async get(
1329 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1330 ): Promise<{
1331 uri: string;
1332 cid: string;
1333 value: AppBskyFeedThreadgate.Record;
1334 }> {
1335 const res = await this._client.call("com.atproto.repo.getRecord", {
1336 collection: "app.bsky.feed.threadgate",
1337 ...params,
1338 });
1339 return res.data;
1340 }
1341
1342 async create(
1343 params: OmitKey<
1344 ComAtprotoRepoCreateRecord.InputSchema,
1345 "collection" | "record"
1346 >,
1347 record: Un$Typed<AppBskyFeedThreadgate.Record>,
1348 headers?: Record<string, string>,
1349 ): Promise<{ uri: string; cid: string }> {
1350 const collection = "app.bsky.feed.threadgate";
1351 const res = await this._client.call(
1352 "com.atproto.repo.createRecord",
1353 undefined,
1354 { collection, ...params, record: { ...record, $type: collection } },
1355 { encoding: "application/json", headers },
1356 );
1357 return res.data;
1358 }
1359
1360 async delete(
1361 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1362 headers?: Record<string, string>,
1363 ): Promise<void> {
1364 await this._client.call(
1365 "com.atproto.repo.deleteRecord",
1366 undefined,
1367 { collection: "app.bsky.feed.threadgate", ...params },
1368 { headers },
1369 );
1370 }
1371}
1372
1373export class AppBskyGraphNS {
1374 _client: XrpcClient;
1375 block: BlockRecord;
1376 follow: FollowRecord;
1377 list: ListRecord;
1378 listblock: ListblockRecord;
1379 listitem: ListitemRecord;
1380 starterpack: StarterpackRecord;
1381
1382 constructor(client: XrpcClient) {
1383 this._client = client;
1384 this.block = new BlockRecord(client);
1385 this.follow = new FollowRecord(client);
1386 this.list = new ListRecord(client);
1387 this.listblock = new ListblockRecord(client);
1388 this.listitem = new ListitemRecord(client);
1389 this.starterpack = new StarterpackRecord(client);
1390 }
1391
1392 getActorStarterPacks(
1393 params?: AppBskyGraphGetActorStarterPacks.QueryParams,
1394 opts?: AppBskyGraphGetActorStarterPacks.CallOptions,
1395 ): Promise<AppBskyGraphGetActorStarterPacks.Response> {
1396 return this._client.call(
1397 "app.bsky.graph.getActorStarterPacks",
1398 params,
1399 undefined,
1400 opts,
1401 );
1402 }
1403
1404 getBlocks(
1405 params?: AppBskyGraphGetBlocks.QueryParams,
1406 opts?: AppBskyGraphGetBlocks.CallOptions,
1407 ): Promise<AppBskyGraphGetBlocks.Response> {
1408 return this._client.call(
1409 "app.bsky.graph.getBlocks",
1410 params,
1411 undefined,
1412 opts,
1413 );
1414 }
1415
1416 getFollowers(
1417 params?: AppBskyGraphGetFollowers.QueryParams,
1418 opts?: AppBskyGraphGetFollowers.CallOptions,
1419 ): Promise<AppBskyGraphGetFollowers.Response> {
1420 return this._client.call(
1421 "app.bsky.graph.getFollowers",
1422 params,
1423 undefined,
1424 opts,
1425 );
1426 }
1427
1428 getFollows(
1429 params?: AppBskyGraphGetFollows.QueryParams,
1430 opts?: AppBskyGraphGetFollows.CallOptions,
1431 ): Promise<AppBskyGraphGetFollows.Response> {
1432 return this._client.call(
1433 "app.bsky.graph.getFollows",
1434 params,
1435 undefined,
1436 opts,
1437 );
1438 }
1439
1440 getKnownFollowers(
1441 params?: AppBskyGraphGetKnownFollowers.QueryParams,
1442 opts?: AppBskyGraphGetKnownFollowers.CallOptions,
1443 ): Promise<AppBskyGraphGetKnownFollowers.Response> {
1444 return this._client.call(
1445 "app.bsky.graph.getKnownFollowers",
1446 params,
1447 undefined,
1448 opts,
1449 );
1450 }
1451
1452 getList(
1453 params?: AppBskyGraphGetList.QueryParams,
1454 opts?: AppBskyGraphGetList.CallOptions,
1455 ): Promise<AppBskyGraphGetList.Response> {
1456 return this._client.call("app.bsky.graph.getList", params, undefined, opts);
1457 }
1458
1459 getListBlocks(
1460 params?: AppBskyGraphGetListBlocks.QueryParams,
1461 opts?: AppBskyGraphGetListBlocks.CallOptions,
1462 ): Promise<AppBskyGraphGetListBlocks.Response> {
1463 return this._client.call(
1464 "app.bsky.graph.getListBlocks",
1465 params,
1466 undefined,
1467 opts,
1468 );
1469 }
1470
1471 getListMutes(
1472 params?: AppBskyGraphGetListMutes.QueryParams,
1473 opts?: AppBskyGraphGetListMutes.CallOptions,
1474 ): Promise<AppBskyGraphGetListMutes.Response> {
1475 return this._client.call(
1476 "app.bsky.graph.getListMutes",
1477 params,
1478 undefined,
1479 opts,
1480 );
1481 }
1482
1483 getLists(
1484 params?: AppBskyGraphGetLists.QueryParams,
1485 opts?: AppBskyGraphGetLists.CallOptions,
1486 ): Promise<AppBskyGraphGetLists.Response> {
1487 return this._client.call(
1488 "app.bsky.graph.getLists",
1489 params,
1490 undefined,
1491 opts,
1492 );
1493 }
1494
1495 getMutes(
1496 params?: AppBskyGraphGetMutes.QueryParams,
1497 opts?: AppBskyGraphGetMutes.CallOptions,
1498 ): Promise<AppBskyGraphGetMutes.Response> {
1499 return this._client.call(
1500 "app.bsky.graph.getMutes",
1501 params,
1502 undefined,
1503 opts,
1504 );
1505 }
1506
1507 getRelationships(
1508 params?: AppBskyGraphGetRelationships.QueryParams,
1509 opts?: AppBskyGraphGetRelationships.CallOptions,
1510 ): Promise<AppBskyGraphGetRelationships.Response> {
1511 return this._client
1512 .call("app.bsky.graph.getRelationships", params, undefined, opts)
1513 .catch((e) => {
1514 throw AppBskyGraphGetRelationships.toKnownErr(e);
1515 });
1516 }
1517
1518 getStarterPack(
1519 params?: AppBskyGraphGetStarterPack.QueryParams,
1520 opts?: AppBskyGraphGetStarterPack.CallOptions,
1521 ): Promise<AppBskyGraphGetStarterPack.Response> {
1522 return this._client.call(
1523 "app.bsky.graph.getStarterPack",
1524 params,
1525 undefined,
1526 opts,
1527 );
1528 }
1529
1530 getStarterPacks(
1531 params?: AppBskyGraphGetStarterPacks.QueryParams,
1532 opts?: AppBskyGraphGetStarterPacks.CallOptions,
1533 ): Promise<AppBskyGraphGetStarterPacks.Response> {
1534 return this._client.call(
1535 "app.bsky.graph.getStarterPacks",
1536 params,
1537 undefined,
1538 opts,
1539 );
1540 }
1541
1542 getSuggestedFollowsByActor(
1543 params?: AppBskyGraphGetSuggestedFollowsByActor.QueryParams,
1544 opts?: AppBskyGraphGetSuggestedFollowsByActor.CallOptions,
1545 ): Promise<AppBskyGraphGetSuggestedFollowsByActor.Response> {
1546 return this._client.call(
1547 "app.bsky.graph.getSuggestedFollowsByActor",
1548 params,
1549 undefined,
1550 opts,
1551 );
1552 }
1553
1554 muteActor(
1555 data?: AppBskyGraphMuteActor.InputSchema,
1556 opts?: AppBskyGraphMuteActor.CallOptions,
1557 ): Promise<AppBskyGraphMuteActor.Response> {
1558 return this._client.call("app.bsky.graph.muteActor", opts?.qp, data, opts);
1559 }
1560
1561 muteActorList(
1562 data?: AppBskyGraphMuteActorList.InputSchema,
1563 opts?: AppBskyGraphMuteActorList.CallOptions,
1564 ): Promise<AppBskyGraphMuteActorList.Response> {
1565 return this._client.call(
1566 "app.bsky.graph.muteActorList",
1567 opts?.qp,
1568 data,
1569 opts,
1570 );
1571 }
1572
1573 muteThread(
1574 data?: AppBskyGraphMuteThread.InputSchema,
1575 opts?: AppBskyGraphMuteThread.CallOptions,
1576 ): Promise<AppBskyGraphMuteThread.Response> {
1577 return this._client.call("app.bsky.graph.muteThread", opts?.qp, data, opts);
1578 }
1579
1580 searchStarterPacks(
1581 params?: AppBskyGraphSearchStarterPacks.QueryParams,
1582 opts?: AppBskyGraphSearchStarterPacks.CallOptions,
1583 ): Promise<AppBskyGraphSearchStarterPacks.Response> {
1584 return this._client.call(
1585 "app.bsky.graph.searchStarterPacks",
1586 params,
1587 undefined,
1588 opts,
1589 );
1590 }
1591
1592 unmuteActor(
1593 data?: AppBskyGraphUnmuteActor.InputSchema,
1594 opts?: AppBskyGraphUnmuteActor.CallOptions,
1595 ): Promise<AppBskyGraphUnmuteActor.Response> {
1596 return this._client.call(
1597 "app.bsky.graph.unmuteActor",
1598 opts?.qp,
1599 data,
1600 opts,
1601 );
1602 }
1603
1604 unmuteActorList(
1605 data?: AppBskyGraphUnmuteActorList.InputSchema,
1606 opts?: AppBskyGraphUnmuteActorList.CallOptions,
1607 ): Promise<AppBskyGraphUnmuteActorList.Response> {
1608 return this._client.call(
1609 "app.bsky.graph.unmuteActorList",
1610 opts?.qp,
1611 data,
1612 opts,
1613 );
1614 }
1615
1616 unmuteThread(
1617 data?: AppBskyGraphUnmuteThread.InputSchema,
1618 opts?: AppBskyGraphUnmuteThread.CallOptions,
1619 ): Promise<AppBskyGraphUnmuteThread.Response> {
1620 return this._client.call(
1621 "app.bsky.graph.unmuteThread",
1622 opts?.qp,
1623 data,
1624 opts,
1625 );
1626 }
1627}
1628
1629export class BlockRecord {
1630 _client: XrpcClient;
1631
1632 constructor(client: XrpcClient) {
1633 this._client = client;
1634 }
1635
1636 async list(
1637 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1638 ): Promise<{
1639 cursor?: string;
1640 records: { uri: string; value: AppBskyGraphBlock.Record }[];
1641 }> {
1642 const res = await this._client.call("com.atproto.repo.listRecords", {
1643 collection: "app.bsky.graph.block",
1644 ...params,
1645 });
1646 return res.data;
1647 }
1648
1649 async get(
1650 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1651 ): Promise<{ uri: string; cid: string; value: AppBskyGraphBlock.Record }> {
1652 const res = await this._client.call("com.atproto.repo.getRecord", {
1653 collection: "app.bsky.graph.block",
1654 ...params,
1655 });
1656 return res.data;
1657 }
1658
1659 async create(
1660 params: OmitKey<
1661 ComAtprotoRepoCreateRecord.InputSchema,
1662 "collection" | "record"
1663 >,
1664 record: Un$Typed<AppBskyGraphBlock.Record>,
1665 headers?: Record<string, string>,
1666 ): Promise<{ uri: string; cid: string }> {
1667 const collection = "app.bsky.graph.block";
1668 const res = await this._client.call(
1669 "com.atproto.repo.createRecord",
1670 undefined,
1671 { collection, ...params, record: { ...record, $type: collection } },
1672 { encoding: "application/json", headers },
1673 );
1674 return res.data;
1675 }
1676
1677 async delete(
1678 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1679 headers?: Record<string, string>,
1680 ): Promise<void> {
1681 await this._client.call(
1682 "com.atproto.repo.deleteRecord",
1683 undefined,
1684 { collection: "app.bsky.graph.block", ...params },
1685 { headers },
1686 );
1687 }
1688}
1689
1690export class FollowRecord {
1691 _client: XrpcClient;
1692
1693 constructor(client: XrpcClient) {
1694 this._client = client;
1695 }
1696
1697 async list(
1698 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1699 ): Promise<{
1700 cursor?: string;
1701 records: { uri: string; value: AppBskyGraphFollow.Record }[];
1702 }> {
1703 const res = await this._client.call("com.atproto.repo.listRecords", {
1704 collection: "app.bsky.graph.follow",
1705 ...params,
1706 });
1707 return res.data;
1708 }
1709
1710 async get(
1711 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1712 ): Promise<{ uri: string; cid: string; value: AppBskyGraphFollow.Record }> {
1713 const res = await this._client.call("com.atproto.repo.getRecord", {
1714 collection: "app.bsky.graph.follow",
1715 ...params,
1716 });
1717 return res.data;
1718 }
1719
1720 async create(
1721 params: OmitKey<
1722 ComAtprotoRepoCreateRecord.InputSchema,
1723 "collection" | "record"
1724 >,
1725 record: Un$Typed<AppBskyGraphFollow.Record>,
1726 headers?: Record<string, string>,
1727 ): Promise<{ uri: string; cid: string }> {
1728 const collection = "app.bsky.graph.follow";
1729 const res = await this._client.call(
1730 "com.atproto.repo.createRecord",
1731 undefined,
1732 { collection, ...params, record: { ...record, $type: collection } },
1733 { encoding: "application/json", headers },
1734 );
1735 return res.data;
1736 }
1737
1738 async delete(
1739 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1740 headers?: Record<string, string>,
1741 ): Promise<void> {
1742 await this._client.call(
1743 "com.atproto.repo.deleteRecord",
1744 undefined,
1745 { collection: "app.bsky.graph.follow", ...params },
1746 { headers },
1747 );
1748 }
1749}
1750
1751export class ListRecord {
1752 _client: XrpcClient;
1753
1754 constructor(client: XrpcClient) {
1755 this._client = client;
1756 }
1757
1758 async list(
1759 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1760 ): Promise<{
1761 cursor?: string;
1762 records: { uri: string; value: AppBskyGraphList.Record }[];
1763 }> {
1764 const res = await this._client.call("com.atproto.repo.listRecords", {
1765 collection: "app.bsky.graph.list",
1766 ...params,
1767 });
1768 return res.data;
1769 }
1770
1771 async get(
1772 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1773 ): Promise<{ uri: string; cid: string; value: AppBskyGraphList.Record }> {
1774 const res = await this._client.call("com.atproto.repo.getRecord", {
1775 collection: "app.bsky.graph.list",
1776 ...params,
1777 });
1778 return res.data;
1779 }
1780
1781 async create(
1782 params: OmitKey<
1783 ComAtprotoRepoCreateRecord.InputSchema,
1784 "collection" | "record"
1785 >,
1786 record: Un$Typed<AppBskyGraphList.Record>,
1787 headers?: Record<string, string>,
1788 ): Promise<{ uri: string; cid: string }> {
1789 const collection = "app.bsky.graph.list";
1790 const res = await this._client.call(
1791 "com.atproto.repo.createRecord",
1792 undefined,
1793 { collection, ...params, record: { ...record, $type: collection } },
1794 { encoding: "application/json", headers },
1795 );
1796 return res.data;
1797 }
1798
1799 async delete(
1800 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1801 headers?: Record<string, string>,
1802 ): Promise<void> {
1803 await this._client.call(
1804 "com.atproto.repo.deleteRecord",
1805 undefined,
1806 { collection: "app.bsky.graph.list", ...params },
1807 { headers },
1808 );
1809 }
1810}
1811
1812export class ListblockRecord {
1813 _client: XrpcClient;
1814
1815 constructor(client: XrpcClient) {
1816 this._client = client;
1817 }
1818
1819 async list(
1820 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1821 ): Promise<{
1822 cursor?: string;
1823 records: { uri: string; value: AppBskyGraphListblock.Record }[];
1824 }> {
1825 const res = await this._client.call("com.atproto.repo.listRecords", {
1826 collection: "app.bsky.graph.listblock",
1827 ...params,
1828 });
1829 return res.data;
1830 }
1831
1832 async get(
1833 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1834 ): Promise<{
1835 uri: string;
1836 cid: string;
1837 value: AppBskyGraphListblock.Record;
1838 }> {
1839 const res = await this._client.call("com.atproto.repo.getRecord", {
1840 collection: "app.bsky.graph.listblock",
1841 ...params,
1842 });
1843 return res.data;
1844 }
1845
1846 async create(
1847 params: OmitKey<
1848 ComAtprotoRepoCreateRecord.InputSchema,
1849 "collection" | "record"
1850 >,
1851 record: Un$Typed<AppBskyGraphListblock.Record>,
1852 headers?: Record<string, string>,
1853 ): Promise<{ uri: string; cid: string }> {
1854 const collection = "app.bsky.graph.listblock";
1855 const res = await this._client.call(
1856 "com.atproto.repo.createRecord",
1857 undefined,
1858 { collection, ...params, record: { ...record, $type: collection } },
1859 { encoding: "application/json", headers },
1860 );
1861 return res.data;
1862 }
1863
1864 async delete(
1865 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1866 headers?: Record<string, string>,
1867 ): Promise<void> {
1868 await this._client.call(
1869 "com.atproto.repo.deleteRecord",
1870 undefined,
1871 { collection: "app.bsky.graph.listblock", ...params },
1872 { headers },
1873 );
1874 }
1875}
1876
1877export class ListitemRecord {
1878 _client: XrpcClient;
1879
1880 constructor(client: XrpcClient) {
1881 this._client = client;
1882 }
1883
1884 async list(
1885 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1886 ): Promise<{
1887 cursor?: string;
1888 records: { uri: string; value: AppBskyGraphListitem.Record }[];
1889 }> {
1890 const res = await this._client.call("com.atproto.repo.listRecords", {
1891 collection: "app.bsky.graph.listitem",
1892 ...params,
1893 });
1894 return res.data;
1895 }
1896
1897 async get(
1898 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1899 ): Promise<{ uri: string; cid: string; value: AppBskyGraphListitem.Record }> {
1900 const res = await this._client.call("com.atproto.repo.getRecord", {
1901 collection: "app.bsky.graph.listitem",
1902 ...params,
1903 });
1904 return res.data;
1905 }
1906
1907 async create(
1908 params: OmitKey<
1909 ComAtprotoRepoCreateRecord.InputSchema,
1910 "collection" | "record"
1911 >,
1912 record: Un$Typed<AppBskyGraphListitem.Record>,
1913 headers?: Record<string, string>,
1914 ): Promise<{ uri: string; cid: string }> {
1915 const collection = "app.bsky.graph.listitem";
1916 const res = await this._client.call(
1917 "com.atproto.repo.createRecord",
1918 undefined,
1919 { collection, ...params, record: { ...record, $type: collection } },
1920 { encoding: "application/json", headers },
1921 );
1922 return res.data;
1923 }
1924
1925 async delete(
1926 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1927 headers?: Record<string, string>,
1928 ): Promise<void> {
1929 await this._client.call(
1930 "com.atproto.repo.deleteRecord",
1931 undefined,
1932 { collection: "app.bsky.graph.listitem", ...params },
1933 { headers },
1934 );
1935 }
1936}
1937
1938export class StarterpackRecord {
1939 _client: XrpcClient;
1940
1941 constructor(client: XrpcClient) {
1942 this._client = client;
1943 }
1944
1945 async list(
1946 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
1947 ): Promise<{
1948 cursor?: string;
1949 records: { uri: string; value: AppBskyGraphStarterpack.Record }[];
1950 }> {
1951 const res = await this._client.call("com.atproto.repo.listRecords", {
1952 collection: "app.bsky.graph.starterpack",
1953 ...params,
1954 });
1955 return res.data;
1956 }
1957
1958 async get(
1959 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
1960 ): Promise<{
1961 uri: string;
1962 cid: string;
1963 value: AppBskyGraphStarterpack.Record;
1964 }> {
1965 const res = await this._client.call("com.atproto.repo.getRecord", {
1966 collection: "app.bsky.graph.starterpack",
1967 ...params,
1968 });
1969 return res.data;
1970 }
1971
1972 async create(
1973 params: OmitKey<
1974 ComAtprotoRepoCreateRecord.InputSchema,
1975 "collection" | "record"
1976 >,
1977 record: Un$Typed<AppBskyGraphStarterpack.Record>,
1978 headers?: Record<string, string>,
1979 ): Promise<{ uri: string; cid: string }> {
1980 const collection = "app.bsky.graph.starterpack";
1981 const res = await this._client.call(
1982 "com.atproto.repo.createRecord",
1983 undefined,
1984 { collection, ...params, record: { ...record, $type: collection } },
1985 { encoding: "application/json", headers },
1986 );
1987 return res.data;
1988 }
1989
1990 async delete(
1991 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
1992 headers?: Record<string, string>,
1993 ): Promise<void> {
1994 await this._client.call(
1995 "com.atproto.repo.deleteRecord",
1996 undefined,
1997 { collection: "app.bsky.graph.starterpack", ...params },
1998 { headers },
1999 );
2000 }
2001}
2002
2003export class AppBskyLabelerNS {
2004 _client: XrpcClient;
2005 service: ServiceRecord;
2006
2007 constructor(client: XrpcClient) {
2008 this._client = client;
2009 this.service = new ServiceRecord(client);
2010 }
2011
2012 getServices(
2013 params?: AppBskyLabelerGetServices.QueryParams,
2014 opts?: AppBskyLabelerGetServices.CallOptions,
2015 ): Promise<AppBskyLabelerGetServices.Response> {
2016 return this._client.call(
2017 "app.bsky.labeler.getServices",
2018 params,
2019 undefined,
2020 opts,
2021 );
2022 }
2023}
2024
2025export class ServiceRecord {
2026 _client: XrpcClient;
2027
2028 constructor(client: XrpcClient) {
2029 this._client = client;
2030 }
2031
2032 async list(
2033 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
2034 ): Promise<{
2035 cursor?: string;
2036 records: { uri: string; value: AppBskyLabelerService.Record }[];
2037 }> {
2038 const res = await this._client.call("com.atproto.repo.listRecords", {
2039 collection: "app.bsky.labeler.service",
2040 ...params,
2041 });
2042 return res.data;
2043 }
2044
2045 async get(
2046 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
2047 ): Promise<{
2048 uri: string;
2049 cid: string;
2050 value: AppBskyLabelerService.Record;
2051 }> {
2052 const res = await this._client.call("com.atproto.repo.getRecord", {
2053 collection: "app.bsky.labeler.service",
2054 ...params,
2055 });
2056 return res.data;
2057 }
2058
2059 async create(
2060 params: OmitKey<
2061 ComAtprotoRepoCreateRecord.InputSchema,
2062 "collection" | "record"
2063 >,
2064 record: Un$Typed<AppBskyLabelerService.Record>,
2065 headers?: Record<string, string>,
2066 ): Promise<{ uri: string; cid: string }> {
2067 const collection = "app.bsky.labeler.service";
2068 const res = await this._client.call(
2069 "com.atproto.repo.createRecord",
2070 undefined,
2071 {
2072 collection,
2073 rkey: "self",
2074 ...params,
2075 record: { ...record, $type: collection },
2076 },
2077 { encoding: "application/json", headers },
2078 );
2079 return res.data;
2080 }
2081
2082 async delete(
2083 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
2084 headers?: Record<string, string>,
2085 ): Promise<void> {
2086 await this._client.call(
2087 "com.atproto.repo.deleteRecord",
2088 undefined,
2089 { collection: "app.bsky.labeler.service", ...params },
2090 { headers },
2091 );
2092 }
2093}
2094
2095export class AppBskyNotificationNS {
2096 _client: XrpcClient;
2097
2098 constructor(client: XrpcClient) {
2099 this._client = client;
2100 }
2101
2102 getUnreadCount(
2103 params?: AppBskyNotificationGetUnreadCount.QueryParams,
2104 opts?: AppBskyNotificationGetUnreadCount.CallOptions,
2105 ): Promise<AppBskyNotificationGetUnreadCount.Response> {
2106 return this._client.call(
2107 "app.bsky.notification.getUnreadCount",
2108 params,
2109 undefined,
2110 opts,
2111 );
2112 }
2113
2114 listNotifications(
2115 params?: AppBskyNotificationListNotifications.QueryParams,
2116 opts?: AppBskyNotificationListNotifications.CallOptions,
2117 ): Promise<AppBskyNotificationListNotifications.Response> {
2118 return this._client.call(
2119 "app.bsky.notification.listNotifications",
2120 params,
2121 undefined,
2122 opts,
2123 );
2124 }
2125
2126 putPreferences(
2127 data?: AppBskyNotificationPutPreferences.InputSchema,
2128 opts?: AppBskyNotificationPutPreferences.CallOptions,
2129 ): Promise<AppBskyNotificationPutPreferences.Response> {
2130 return this._client.call(
2131 "app.bsky.notification.putPreferences",
2132 opts?.qp,
2133 data,
2134 opts,
2135 );
2136 }
2137
2138 registerPush(
2139 data?: AppBskyNotificationRegisterPush.InputSchema,
2140 opts?: AppBskyNotificationRegisterPush.CallOptions,
2141 ): Promise<AppBskyNotificationRegisterPush.Response> {
2142 return this._client.call(
2143 "app.bsky.notification.registerPush",
2144 opts?.qp,
2145 data,
2146 opts,
2147 );
2148 }
2149
2150 updateSeen(
2151 data?: AppBskyNotificationUpdateSeen.InputSchema,
2152 opts?: AppBskyNotificationUpdateSeen.CallOptions,
2153 ): Promise<AppBskyNotificationUpdateSeen.Response> {
2154 return this._client.call(
2155 "app.bsky.notification.updateSeen",
2156 opts?.qp,
2157 data,
2158 opts,
2159 );
2160 }
2161}
2162
2163export class AppBskyRichtextNS {
2164 _client: XrpcClient;
2165
2166 constructor(client: XrpcClient) {
2167 this._client = client;
2168 }
2169}
2170
2171export class AppBskyUnspeccedNS {
2172 _client: XrpcClient;
2173
2174 constructor(client: XrpcClient) {
2175 this._client = client;
2176 }
2177
2178 getConfig(
2179 params?: AppBskyUnspeccedGetConfig.QueryParams,
2180 opts?: AppBskyUnspeccedGetConfig.CallOptions,
2181 ): Promise<AppBskyUnspeccedGetConfig.Response> {
2182 return this._client.call(
2183 "app.bsky.unspecced.getConfig",
2184 params,
2185 undefined,
2186 opts,
2187 );
2188 }
2189
2190 getPopularFeedGenerators(
2191 params?: AppBskyUnspeccedGetPopularFeedGenerators.QueryParams,
2192 opts?: AppBskyUnspeccedGetPopularFeedGenerators.CallOptions,
2193 ): Promise<AppBskyUnspeccedGetPopularFeedGenerators.Response> {
2194 return this._client.call(
2195 "app.bsky.unspecced.getPopularFeedGenerators",
2196 params,
2197 undefined,
2198 opts,
2199 );
2200 }
2201
2202 getSuggestedFeeds(
2203 params?: AppBskyUnspeccedGetSuggestedFeeds.QueryParams,
2204 opts?: AppBskyUnspeccedGetSuggestedFeeds.CallOptions,
2205 ): Promise<AppBskyUnspeccedGetSuggestedFeeds.Response> {
2206 return this._client.call(
2207 "app.bsky.unspecced.getSuggestedFeeds",
2208 params,
2209 undefined,
2210 opts,
2211 );
2212 }
2213
2214 getSuggestedFeedsSkeleton(
2215 params?: AppBskyUnspeccedGetSuggestedFeedsSkeleton.QueryParams,
2216 opts?: AppBskyUnspeccedGetSuggestedFeedsSkeleton.CallOptions,
2217 ): Promise<AppBskyUnspeccedGetSuggestedFeedsSkeleton.Response> {
2218 return this._client.call(
2219 "app.bsky.unspecced.getSuggestedFeedsSkeleton",
2220 params,
2221 undefined,
2222 opts,
2223 );
2224 }
2225
2226 getSuggestedStarterPacks(
2227 params?: AppBskyUnspeccedGetSuggestedStarterPacks.QueryParams,
2228 opts?: AppBskyUnspeccedGetSuggestedStarterPacks.CallOptions,
2229 ): Promise<AppBskyUnspeccedGetSuggestedStarterPacks.Response> {
2230 return this._client.call(
2231 "app.bsky.unspecced.getSuggestedStarterPacks",
2232 params,
2233 undefined,
2234 opts,
2235 );
2236 }
2237
2238 getSuggestedStarterPacksSkeleton(
2239 params?: AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.QueryParams,
2240 opts?: AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.CallOptions,
2241 ): Promise<AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.Response> {
2242 return this._client.call(
2243 "app.bsky.unspecced.getSuggestedStarterPacksSkeleton",
2244 params,
2245 undefined,
2246 opts,
2247 );
2248 }
2249
2250 getSuggestedUsers(
2251 params?: AppBskyUnspeccedGetSuggestedUsers.QueryParams,
2252 opts?: AppBskyUnspeccedGetSuggestedUsers.CallOptions,
2253 ): Promise<AppBskyUnspeccedGetSuggestedUsers.Response> {
2254 return this._client.call(
2255 "app.bsky.unspecced.getSuggestedUsers",
2256 params,
2257 undefined,
2258 opts,
2259 );
2260 }
2261
2262 getSuggestedUsersSkeleton(
2263 params?: AppBskyUnspeccedGetSuggestedUsersSkeleton.QueryParams,
2264 opts?: AppBskyUnspeccedGetSuggestedUsersSkeleton.CallOptions,
2265 ): Promise<AppBskyUnspeccedGetSuggestedUsersSkeleton.Response> {
2266 return this._client.call(
2267 "app.bsky.unspecced.getSuggestedUsersSkeleton",
2268 params,
2269 undefined,
2270 opts,
2271 );
2272 }
2273
2274 getSuggestionsSkeleton(
2275 params?: AppBskyUnspeccedGetSuggestionsSkeleton.QueryParams,
2276 opts?: AppBskyUnspeccedGetSuggestionsSkeleton.CallOptions,
2277 ): Promise<AppBskyUnspeccedGetSuggestionsSkeleton.Response> {
2278 return this._client.call(
2279 "app.bsky.unspecced.getSuggestionsSkeleton",
2280 params,
2281 undefined,
2282 opts,
2283 );
2284 }
2285
2286 getTaggedSuggestions(
2287 params?: AppBskyUnspeccedGetTaggedSuggestions.QueryParams,
2288 opts?: AppBskyUnspeccedGetTaggedSuggestions.CallOptions,
2289 ): Promise<AppBskyUnspeccedGetTaggedSuggestions.Response> {
2290 return this._client.call(
2291 "app.bsky.unspecced.getTaggedSuggestions",
2292 params,
2293 undefined,
2294 opts,
2295 );
2296 }
2297
2298 getTrendingTopics(
2299 params?: AppBskyUnspeccedGetTrendingTopics.QueryParams,
2300 opts?: AppBskyUnspeccedGetTrendingTopics.CallOptions,
2301 ): Promise<AppBskyUnspeccedGetTrendingTopics.Response> {
2302 return this._client.call(
2303 "app.bsky.unspecced.getTrendingTopics",
2304 params,
2305 undefined,
2306 opts,
2307 );
2308 }
2309
2310 getTrends(
2311 params?: AppBskyUnspeccedGetTrends.QueryParams,
2312 opts?: AppBskyUnspeccedGetTrends.CallOptions,
2313 ): Promise<AppBskyUnspeccedGetTrends.Response> {
2314 return this._client.call(
2315 "app.bsky.unspecced.getTrends",
2316 params,
2317 undefined,
2318 opts,
2319 );
2320 }
2321
2322 getTrendsSkeleton(
2323 params?: AppBskyUnspeccedGetTrendsSkeleton.QueryParams,
2324 opts?: AppBskyUnspeccedGetTrendsSkeleton.CallOptions,
2325 ): Promise<AppBskyUnspeccedGetTrendsSkeleton.Response> {
2326 return this._client.call(
2327 "app.bsky.unspecced.getTrendsSkeleton",
2328 params,
2329 undefined,
2330 opts,
2331 );
2332 }
2333
2334 searchActorsSkeleton(
2335 params?: AppBskyUnspeccedSearchActorsSkeleton.QueryParams,
2336 opts?: AppBskyUnspeccedSearchActorsSkeleton.CallOptions,
2337 ): Promise<AppBskyUnspeccedSearchActorsSkeleton.Response> {
2338 return this._client
2339 .call("app.bsky.unspecced.searchActorsSkeleton", params, undefined, opts)
2340 .catch((e) => {
2341 throw AppBskyUnspeccedSearchActorsSkeleton.toKnownErr(e);
2342 });
2343 }
2344
2345 searchPostsSkeleton(
2346 params?: AppBskyUnspeccedSearchPostsSkeleton.QueryParams,
2347 opts?: AppBskyUnspeccedSearchPostsSkeleton.CallOptions,
2348 ): Promise<AppBskyUnspeccedSearchPostsSkeleton.Response> {
2349 return this._client
2350 .call("app.bsky.unspecced.searchPostsSkeleton", params, undefined, opts)
2351 .catch((e) => {
2352 throw AppBskyUnspeccedSearchPostsSkeleton.toKnownErr(e);
2353 });
2354 }
2355
2356 searchStarterPacksSkeleton(
2357 params?: AppBskyUnspeccedSearchStarterPacksSkeleton.QueryParams,
2358 opts?: AppBskyUnspeccedSearchStarterPacksSkeleton.CallOptions,
2359 ): Promise<AppBskyUnspeccedSearchStarterPacksSkeleton.Response> {
2360 return this._client
2361 .call(
2362 "app.bsky.unspecced.searchStarterPacksSkeleton",
2363 params,
2364 undefined,
2365 opts,
2366 )
2367 .catch((e) => {
2368 throw AppBskyUnspeccedSearchStarterPacksSkeleton.toKnownErr(e);
2369 });
2370 }
2371}
2372
2373export class AppBskyVideoNS {
2374 _client: XrpcClient;
2375
2376 constructor(client: XrpcClient) {
2377 this._client = client;
2378 }
2379
2380 getJobStatus(
2381 params?: AppBskyVideoGetJobStatus.QueryParams,
2382 opts?: AppBskyVideoGetJobStatus.CallOptions,
2383 ): Promise<AppBskyVideoGetJobStatus.Response> {
2384 return this._client.call(
2385 "app.bsky.video.getJobStatus",
2386 params,
2387 undefined,
2388 opts,
2389 );
2390 }
2391
2392 getUploadLimits(
2393 params?: AppBskyVideoGetUploadLimits.QueryParams,
2394 opts?: AppBskyVideoGetUploadLimits.CallOptions,
2395 ): Promise<AppBskyVideoGetUploadLimits.Response> {
2396 return this._client.call(
2397 "app.bsky.video.getUploadLimits",
2398 params,
2399 undefined,
2400 opts,
2401 );
2402 }
2403
2404 uploadVideo(
2405 data?: AppBskyVideoUploadVideo.InputSchema,
2406 opts?: AppBskyVideoUploadVideo.CallOptions,
2407 ): Promise<AppBskyVideoUploadVideo.Response> {
2408 return this._client.call(
2409 "app.bsky.video.uploadVideo",
2410 opts?.qp,
2411 data,
2412 opts,
2413 );
2414 }
2415}
2416
2417export class ChatNS {
2418 _client: XrpcClient;
2419 bsky: ChatBskyNS;
2420
2421 constructor(client: XrpcClient) {
2422 this._client = client;
2423 this.bsky = new ChatBskyNS(client);
2424 }
2425}
2426
2427export class ChatBskyNS {
2428 _client: XrpcClient;
2429 actor: ChatBskyActorNS;
2430 convo: ChatBskyConvoNS;
2431 moderation: ChatBskyModerationNS;
2432
2433 constructor(client: XrpcClient) {
2434 this._client = client;
2435 this.actor = new ChatBskyActorNS(client);
2436 this.convo = new ChatBskyConvoNS(client);
2437 this.moderation = new ChatBskyModerationNS(client);
2438 }
2439}
2440
2441export class ChatBskyActorNS {
2442 _client: XrpcClient;
2443 declaration: DeclarationRecord;
2444
2445 constructor(client: XrpcClient) {
2446 this._client = client;
2447 this.declaration = new DeclarationRecord(client);
2448 }
2449
2450 deleteAccount(
2451 data?: ChatBskyActorDeleteAccount.InputSchema,
2452 opts?: ChatBskyActorDeleteAccount.CallOptions,
2453 ): Promise<ChatBskyActorDeleteAccount.Response> {
2454 return this._client.call(
2455 "chat.bsky.actor.deleteAccount",
2456 opts?.qp,
2457 data,
2458 opts,
2459 );
2460 }
2461
2462 exportAccountData(
2463 params?: ChatBskyActorExportAccountData.QueryParams,
2464 opts?: ChatBskyActorExportAccountData.CallOptions,
2465 ): Promise<ChatBskyActorExportAccountData.Response> {
2466 return this._client.call(
2467 "chat.bsky.actor.exportAccountData",
2468 params,
2469 undefined,
2470 opts,
2471 );
2472 }
2473}
2474
2475export class DeclarationRecord {
2476 _client: XrpcClient;
2477
2478 constructor(client: XrpcClient) {
2479 this._client = client;
2480 }
2481
2482 async list(
2483 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
2484 ): Promise<{
2485 cursor?: string;
2486 records: { uri: string; value: ChatBskyActorDeclaration.Record }[];
2487 }> {
2488 const res = await this._client.call("com.atproto.repo.listRecords", {
2489 collection: "chat.bsky.actor.declaration",
2490 ...params,
2491 });
2492 return res.data;
2493 }
2494
2495 async get(
2496 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
2497 ): Promise<{
2498 uri: string;
2499 cid: string;
2500 value: ChatBskyActorDeclaration.Record;
2501 }> {
2502 const res = await this._client.call("com.atproto.repo.getRecord", {
2503 collection: "chat.bsky.actor.declaration",
2504 ...params,
2505 });
2506 return res.data;
2507 }
2508
2509 async create(
2510 params: OmitKey<
2511 ComAtprotoRepoCreateRecord.InputSchema,
2512 "collection" | "record"
2513 >,
2514 record: Un$Typed<ChatBskyActorDeclaration.Record>,
2515 headers?: Record<string, string>,
2516 ): Promise<{ uri: string; cid: string }> {
2517 const collection = "chat.bsky.actor.declaration";
2518 const res = await this._client.call(
2519 "com.atproto.repo.createRecord",
2520 undefined,
2521 {
2522 collection,
2523 rkey: "self",
2524 ...params,
2525 record: { ...record, $type: collection },
2526 },
2527 { encoding: "application/json", headers },
2528 );
2529 return res.data;
2530 }
2531
2532 async delete(
2533 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
2534 headers?: Record<string, string>,
2535 ): Promise<void> {
2536 await this._client.call(
2537 "com.atproto.repo.deleteRecord",
2538 undefined,
2539 { collection: "chat.bsky.actor.declaration", ...params },
2540 { headers },
2541 );
2542 }
2543}
2544
2545export class ChatBskyConvoNS {
2546 _client: XrpcClient;
2547
2548 constructor(client: XrpcClient) {
2549 this._client = client;
2550 }
2551
2552 acceptConvo(
2553 data?: ChatBskyConvoAcceptConvo.InputSchema,
2554 opts?: ChatBskyConvoAcceptConvo.CallOptions,
2555 ): Promise<ChatBskyConvoAcceptConvo.Response> {
2556 return this._client.call(
2557 "chat.bsky.convo.acceptConvo",
2558 opts?.qp,
2559 data,
2560 opts,
2561 );
2562 }
2563
2564 addReaction(
2565 data?: ChatBskyConvoAddReaction.InputSchema,
2566 opts?: ChatBskyConvoAddReaction.CallOptions,
2567 ): Promise<ChatBskyConvoAddReaction.Response> {
2568 return this._client
2569 .call("chat.bsky.convo.addReaction", opts?.qp, data, opts)
2570 .catch((e) => {
2571 throw ChatBskyConvoAddReaction.toKnownErr(e);
2572 });
2573 }
2574
2575 deleteMessageForSelf(
2576 data?: ChatBskyConvoDeleteMessageForSelf.InputSchema,
2577 opts?: ChatBskyConvoDeleteMessageForSelf.CallOptions,
2578 ): Promise<ChatBskyConvoDeleteMessageForSelf.Response> {
2579 return this._client.call(
2580 "chat.bsky.convo.deleteMessageForSelf",
2581 opts?.qp,
2582 data,
2583 opts,
2584 );
2585 }
2586
2587 getConvo(
2588 params?: ChatBskyConvoGetConvo.QueryParams,
2589 opts?: ChatBskyConvoGetConvo.CallOptions,
2590 ): Promise<ChatBskyConvoGetConvo.Response> {
2591 return this._client.call(
2592 "chat.bsky.convo.getConvo",
2593 params,
2594 undefined,
2595 opts,
2596 );
2597 }
2598
2599 getConvoAvailability(
2600 params?: ChatBskyConvoGetConvoAvailability.QueryParams,
2601 opts?: ChatBskyConvoGetConvoAvailability.CallOptions,
2602 ): Promise<ChatBskyConvoGetConvoAvailability.Response> {
2603 return this._client.call(
2604 "chat.bsky.convo.getConvoAvailability",
2605 params,
2606 undefined,
2607 opts,
2608 );
2609 }
2610
2611 getConvoForMembers(
2612 params?: ChatBskyConvoGetConvoForMembers.QueryParams,
2613 opts?: ChatBskyConvoGetConvoForMembers.CallOptions,
2614 ): Promise<ChatBskyConvoGetConvoForMembers.Response> {
2615 return this._client.call(
2616 "chat.bsky.convo.getConvoForMembers",
2617 params,
2618 undefined,
2619 opts,
2620 );
2621 }
2622
2623 getLog(
2624 params?: ChatBskyConvoGetLog.QueryParams,
2625 opts?: ChatBskyConvoGetLog.CallOptions,
2626 ): Promise<ChatBskyConvoGetLog.Response> {
2627 return this._client.call("chat.bsky.convo.getLog", params, undefined, opts);
2628 }
2629
2630 getMessages(
2631 params?: ChatBskyConvoGetMessages.QueryParams,
2632 opts?: ChatBskyConvoGetMessages.CallOptions,
2633 ): Promise<ChatBskyConvoGetMessages.Response> {
2634 return this._client.call(
2635 "chat.bsky.convo.getMessages",
2636 params,
2637 undefined,
2638 opts,
2639 );
2640 }
2641
2642 leaveConvo(
2643 data?: ChatBskyConvoLeaveConvo.InputSchema,
2644 opts?: ChatBskyConvoLeaveConvo.CallOptions,
2645 ): Promise<ChatBskyConvoLeaveConvo.Response> {
2646 return this._client.call(
2647 "chat.bsky.convo.leaveConvo",
2648 opts?.qp,
2649 data,
2650 opts,
2651 );
2652 }
2653
2654 listConvos(
2655 params?: ChatBskyConvoListConvos.QueryParams,
2656 opts?: ChatBskyConvoListConvos.CallOptions,
2657 ): Promise<ChatBskyConvoListConvos.Response> {
2658 return this._client.call(
2659 "chat.bsky.convo.listConvos",
2660 params,
2661 undefined,
2662 opts,
2663 );
2664 }
2665
2666 muteConvo(
2667 data?: ChatBskyConvoMuteConvo.InputSchema,
2668 opts?: ChatBskyConvoMuteConvo.CallOptions,
2669 ): Promise<ChatBskyConvoMuteConvo.Response> {
2670 return this._client.call("chat.bsky.convo.muteConvo", opts?.qp, data, opts);
2671 }
2672
2673 removeReaction(
2674 data?: ChatBskyConvoRemoveReaction.InputSchema,
2675 opts?: ChatBskyConvoRemoveReaction.CallOptions,
2676 ): Promise<ChatBskyConvoRemoveReaction.Response> {
2677 return this._client
2678 .call("chat.bsky.convo.removeReaction", opts?.qp, data, opts)
2679 .catch((e) => {
2680 throw ChatBskyConvoRemoveReaction.toKnownErr(e);
2681 });
2682 }
2683
2684 sendMessage(
2685 data?: ChatBskyConvoSendMessage.InputSchema,
2686 opts?: ChatBskyConvoSendMessage.CallOptions,
2687 ): Promise<ChatBskyConvoSendMessage.Response> {
2688 return this._client.call(
2689 "chat.bsky.convo.sendMessage",
2690 opts?.qp,
2691 data,
2692 opts,
2693 );
2694 }
2695
2696 sendMessageBatch(
2697 data?: ChatBskyConvoSendMessageBatch.InputSchema,
2698 opts?: ChatBskyConvoSendMessageBatch.CallOptions,
2699 ): Promise<ChatBskyConvoSendMessageBatch.Response> {
2700 return this._client.call(
2701 "chat.bsky.convo.sendMessageBatch",
2702 opts?.qp,
2703 data,
2704 opts,
2705 );
2706 }
2707
2708 unmuteConvo(
2709 data?: ChatBskyConvoUnmuteConvo.InputSchema,
2710 opts?: ChatBskyConvoUnmuteConvo.CallOptions,
2711 ): Promise<ChatBskyConvoUnmuteConvo.Response> {
2712 return this._client.call(
2713 "chat.bsky.convo.unmuteConvo",
2714 opts?.qp,
2715 data,
2716 opts,
2717 );
2718 }
2719
2720 updateAllRead(
2721 data?: ChatBskyConvoUpdateAllRead.InputSchema,
2722 opts?: ChatBskyConvoUpdateAllRead.CallOptions,
2723 ): Promise<ChatBskyConvoUpdateAllRead.Response> {
2724 return this._client.call(
2725 "chat.bsky.convo.updateAllRead",
2726 opts?.qp,
2727 data,
2728 opts,
2729 );
2730 }
2731
2732 updateRead(
2733 data?: ChatBskyConvoUpdateRead.InputSchema,
2734 opts?: ChatBskyConvoUpdateRead.CallOptions,
2735 ): Promise<ChatBskyConvoUpdateRead.Response> {
2736 return this._client.call(
2737 "chat.bsky.convo.updateRead",
2738 opts?.qp,
2739 data,
2740 opts,
2741 );
2742 }
2743}
2744
2745export class ChatBskyModerationNS {
2746 _client: XrpcClient;
2747
2748 constructor(client: XrpcClient) {
2749 this._client = client;
2750 }
2751
2752 getActorMetadata(
2753 params?: ChatBskyModerationGetActorMetadata.QueryParams,
2754 opts?: ChatBskyModerationGetActorMetadata.CallOptions,
2755 ): Promise<ChatBskyModerationGetActorMetadata.Response> {
2756 return this._client.call(
2757 "chat.bsky.moderation.getActorMetadata",
2758 params,
2759 undefined,
2760 opts,
2761 );
2762 }
2763
2764 getMessageContext(
2765 params?: ChatBskyModerationGetMessageContext.QueryParams,
2766 opts?: ChatBskyModerationGetMessageContext.CallOptions,
2767 ): Promise<ChatBskyModerationGetMessageContext.Response> {
2768 return this._client.call(
2769 "chat.bsky.moderation.getMessageContext",
2770 params,
2771 undefined,
2772 opts,
2773 );
2774 }
2775
2776 updateActorAccess(
2777 data?: ChatBskyModerationUpdateActorAccess.InputSchema,
2778 opts?: ChatBskyModerationUpdateActorAccess.CallOptions,
2779 ): Promise<ChatBskyModerationUpdateActorAccess.Response> {
2780 return this._client.call(
2781 "chat.bsky.moderation.updateActorAccess",
2782 opts?.qp,
2783 data,
2784 opts,
2785 );
2786 }
2787}
2788
2789export class ComNS {
2790 _client: XrpcClient;
2791 atproto: ComAtprotoNS;
2792
2793 constructor(client: XrpcClient) {
2794 this._client = client;
2795 this.atproto = new ComAtprotoNS(client);
2796 }
2797}
2798
2799export class ComAtprotoNS {
2800 _client: XrpcClient;
2801 admin: ComAtprotoAdminNS;
2802 identity: ComAtprotoIdentityNS;
2803 label: ComAtprotoLabelNS;
2804 lexicon: ComAtprotoLexiconNS;
2805 moderation: ComAtprotoModerationNS;
2806 repo: ComAtprotoRepoNS;
2807 server: ComAtprotoServerNS;
2808 sync: ComAtprotoSyncNS;
2809 temp: ComAtprotoTempNS;
2810
2811 constructor(client: XrpcClient) {
2812 this._client = client;
2813 this.admin = new ComAtprotoAdminNS(client);
2814 this.identity = new ComAtprotoIdentityNS(client);
2815 this.label = new ComAtprotoLabelNS(client);
2816 this.lexicon = new ComAtprotoLexiconNS(client);
2817 this.moderation = new ComAtprotoModerationNS(client);
2818 this.repo = new ComAtprotoRepoNS(client);
2819 this.server = new ComAtprotoServerNS(client);
2820 this.sync = new ComAtprotoSyncNS(client);
2821 this.temp = new ComAtprotoTempNS(client);
2822 }
2823}
2824
2825export class ComAtprotoAdminNS {
2826 _client: XrpcClient;
2827
2828 constructor(client: XrpcClient) {
2829 this._client = client;
2830 }
2831
2832 deleteAccount(
2833 data?: ComAtprotoAdminDeleteAccount.InputSchema,
2834 opts?: ComAtprotoAdminDeleteAccount.CallOptions,
2835 ): Promise<ComAtprotoAdminDeleteAccount.Response> {
2836 return this._client.call(
2837 "com.atproto.admin.deleteAccount",
2838 opts?.qp,
2839 data,
2840 opts,
2841 );
2842 }
2843
2844 disableAccountInvites(
2845 data?: ComAtprotoAdminDisableAccountInvites.InputSchema,
2846 opts?: ComAtprotoAdminDisableAccountInvites.CallOptions,
2847 ): Promise<ComAtprotoAdminDisableAccountInvites.Response> {
2848 return this._client.call(
2849 "com.atproto.admin.disableAccountInvites",
2850 opts?.qp,
2851 data,
2852 opts,
2853 );
2854 }
2855
2856 disableInviteCodes(
2857 data?: ComAtprotoAdminDisableInviteCodes.InputSchema,
2858 opts?: ComAtprotoAdminDisableInviteCodes.CallOptions,
2859 ): Promise<ComAtprotoAdminDisableInviteCodes.Response> {
2860 return this._client.call(
2861 "com.atproto.admin.disableInviteCodes",
2862 opts?.qp,
2863 data,
2864 opts,
2865 );
2866 }
2867
2868 enableAccountInvites(
2869 data?: ComAtprotoAdminEnableAccountInvites.InputSchema,
2870 opts?: ComAtprotoAdminEnableAccountInvites.CallOptions,
2871 ): Promise<ComAtprotoAdminEnableAccountInvites.Response> {
2872 return this._client.call(
2873 "com.atproto.admin.enableAccountInvites",
2874 opts?.qp,
2875 data,
2876 opts,
2877 );
2878 }
2879
2880 getAccountInfo(
2881 params?: ComAtprotoAdminGetAccountInfo.QueryParams,
2882 opts?: ComAtprotoAdminGetAccountInfo.CallOptions,
2883 ): Promise<ComAtprotoAdminGetAccountInfo.Response> {
2884 return this._client.call(
2885 "com.atproto.admin.getAccountInfo",
2886 params,
2887 undefined,
2888 opts,
2889 );
2890 }
2891
2892 getAccountInfos(
2893 params?: ComAtprotoAdminGetAccountInfos.QueryParams,
2894 opts?: ComAtprotoAdminGetAccountInfos.CallOptions,
2895 ): Promise<ComAtprotoAdminGetAccountInfos.Response> {
2896 return this._client.call(
2897 "com.atproto.admin.getAccountInfos",
2898 params,
2899 undefined,
2900 opts,
2901 );
2902 }
2903
2904 getInviteCodes(
2905 params?: ComAtprotoAdminGetInviteCodes.QueryParams,
2906 opts?: ComAtprotoAdminGetInviteCodes.CallOptions,
2907 ): Promise<ComAtprotoAdminGetInviteCodes.Response> {
2908 return this._client.call(
2909 "com.atproto.admin.getInviteCodes",
2910 params,
2911 undefined,
2912 opts,
2913 );
2914 }
2915
2916 getSubjectStatus(
2917 params?: ComAtprotoAdminGetSubjectStatus.QueryParams,
2918 opts?: ComAtprotoAdminGetSubjectStatus.CallOptions,
2919 ): Promise<ComAtprotoAdminGetSubjectStatus.Response> {
2920 return this._client.call(
2921 "com.atproto.admin.getSubjectStatus",
2922 params,
2923 undefined,
2924 opts,
2925 );
2926 }
2927
2928 searchAccounts(
2929 params?: ComAtprotoAdminSearchAccounts.QueryParams,
2930 opts?: ComAtprotoAdminSearchAccounts.CallOptions,
2931 ): Promise<ComAtprotoAdminSearchAccounts.Response> {
2932 return this._client.call(
2933 "com.atproto.admin.searchAccounts",
2934 params,
2935 undefined,
2936 opts,
2937 );
2938 }
2939
2940 sendEmail(
2941 data?: ComAtprotoAdminSendEmail.InputSchema,
2942 opts?: ComAtprotoAdminSendEmail.CallOptions,
2943 ): Promise<ComAtprotoAdminSendEmail.Response> {
2944 return this._client.call(
2945 "com.atproto.admin.sendEmail",
2946 opts?.qp,
2947 data,
2948 opts,
2949 );
2950 }
2951
2952 updateAccountEmail(
2953 data?: ComAtprotoAdminUpdateAccountEmail.InputSchema,
2954 opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions,
2955 ): Promise<ComAtprotoAdminUpdateAccountEmail.Response> {
2956 return this._client.call(
2957 "com.atproto.admin.updateAccountEmail",
2958 opts?.qp,
2959 data,
2960 opts,
2961 );
2962 }
2963
2964 updateAccountHandle(
2965 data?: ComAtprotoAdminUpdateAccountHandle.InputSchema,
2966 opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions,
2967 ): Promise<ComAtprotoAdminUpdateAccountHandle.Response> {
2968 return this._client.call(
2969 "com.atproto.admin.updateAccountHandle",
2970 opts?.qp,
2971 data,
2972 opts,
2973 );
2974 }
2975
2976 updateAccountPassword(
2977 data?: ComAtprotoAdminUpdateAccountPassword.InputSchema,
2978 opts?: ComAtprotoAdminUpdateAccountPassword.CallOptions,
2979 ): Promise<ComAtprotoAdminUpdateAccountPassword.Response> {
2980 return this._client.call(
2981 "com.atproto.admin.updateAccountPassword",
2982 opts?.qp,
2983 data,
2984 opts,
2985 );
2986 }
2987
2988 updateAccountSigningKey(
2989 data?: ComAtprotoAdminUpdateAccountSigningKey.InputSchema,
2990 opts?: ComAtprotoAdminUpdateAccountSigningKey.CallOptions,
2991 ): Promise<ComAtprotoAdminUpdateAccountSigningKey.Response> {
2992 return this._client.call(
2993 "com.atproto.admin.updateAccountSigningKey",
2994 opts?.qp,
2995 data,
2996 opts,
2997 );
2998 }
2999
3000 updateSubjectStatus(
3001 data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema,
3002 opts?: ComAtprotoAdminUpdateSubjectStatus.CallOptions,
3003 ): Promise<ComAtprotoAdminUpdateSubjectStatus.Response> {
3004 return this._client.call(
3005 "com.atproto.admin.updateSubjectStatus",
3006 opts?.qp,
3007 data,
3008 opts,
3009 );
3010 }
3011}
3012
3013export class ComAtprotoIdentityNS {
3014 _client: XrpcClient;
3015
3016 constructor(client: XrpcClient) {
3017 this._client = client;
3018 }
3019
3020 getRecommendedDidCredentials(
3021 params?: ComAtprotoIdentityGetRecommendedDidCredentials.QueryParams,
3022 opts?: ComAtprotoIdentityGetRecommendedDidCredentials.CallOptions,
3023 ): Promise<ComAtprotoIdentityGetRecommendedDidCredentials.Response> {
3024 return this._client.call(
3025 "com.atproto.identity.getRecommendedDidCredentials",
3026 params,
3027 undefined,
3028 opts,
3029 );
3030 }
3031
3032 refreshIdentity(
3033 data?: ComAtprotoIdentityRefreshIdentity.InputSchema,
3034 opts?: ComAtprotoIdentityRefreshIdentity.CallOptions,
3035 ): Promise<ComAtprotoIdentityRefreshIdentity.Response> {
3036 return this._client
3037 .call("com.atproto.identity.refreshIdentity", opts?.qp, data, opts)
3038 .catch((e) => {
3039 throw ComAtprotoIdentityRefreshIdentity.toKnownErr(e);
3040 });
3041 }
3042
3043 requestPlcOperationSignature(
3044 data?: ComAtprotoIdentityRequestPlcOperationSignature.InputSchema,
3045 opts?: ComAtprotoIdentityRequestPlcOperationSignature.CallOptions,
3046 ): Promise<ComAtprotoIdentityRequestPlcOperationSignature.Response> {
3047 return this._client.call(
3048 "com.atproto.identity.requestPlcOperationSignature",
3049 opts?.qp,
3050 data,
3051 opts,
3052 );
3053 }
3054
3055 resolveDid(
3056 params?: ComAtprotoIdentityResolveDid.QueryParams,
3057 opts?: ComAtprotoIdentityResolveDid.CallOptions,
3058 ): Promise<ComAtprotoIdentityResolveDid.Response> {
3059 return this._client
3060 .call("com.atproto.identity.resolveDid", params, undefined, opts)
3061 .catch((e) => {
3062 throw ComAtprotoIdentityResolveDid.toKnownErr(e);
3063 });
3064 }
3065
3066 resolveHandle(
3067 params?: ComAtprotoIdentityResolveHandle.QueryParams,
3068 opts?: ComAtprotoIdentityResolveHandle.CallOptions,
3069 ): Promise<ComAtprotoIdentityResolveHandle.Response> {
3070 return this._client
3071 .call("com.atproto.identity.resolveHandle", params, undefined, opts)
3072 .catch((e) => {
3073 throw ComAtprotoIdentityResolveHandle.toKnownErr(e);
3074 });
3075 }
3076
3077 resolveIdentity(
3078 params?: ComAtprotoIdentityResolveIdentity.QueryParams,
3079 opts?: ComAtprotoIdentityResolveIdentity.CallOptions,
3080 ): Promise<ComAtprotoIdentityResolveIdentity.Response> {
3081 return this._client
3082 .call("com.atproto.identity.resolveIdentity", params, undefined, opts)
3083 .catch((e) => {
3084 throw ComAtprotoIdentityResolveIdentity.toKnownErr(e);
3085 });
3086 }
3087
3088 signPlcOperation(
3089 data?: ComAtprotoIdentitySignPlcOperation.InputSchema,
3090 opts?: ComAtprotoIdentitySignPlcOperation.CallOptions,
3091 ): Promise<ComAtprotoIdentitySignPlcOperation.Response> {
3092 return this._client.call(
3093 "com.atproto.identity.signPlcOperation",
3094 opts?.qp,
3095 data,
3096 opts,
3097 );
3098 }
3099
3100 submitPlcOperation(
3101 data?: ComAtprotoIdentitySubmitPlcOperation.InputSchema,
3102 opts?: ComAtprotoIdentitySubmitPlcOperation.CallOptions,
3103 ): Promise<ComAtprotoIdentitySubmitPlcOperation.Response> {
3104 return this._client.call(
3105 "com.atproto.identity.submitPlcOperation",
3106 opts?.qp,
3107 data,
3108 opts,
3109 );
3110 }
3111
3112 updateHandle(
3113 data?: ComAtprotoIdentityUpdateHandle.InputSchema,
3114 opts?: ComAtprotoIdentityUpdateHandle.CallOptions,
3115 ): Promise<ComAtprotoIdentityUpdateHandle.Response> {
3116 return this._client.call(
3117 "com.atproto.identity.updateHandle",
3118 opts?.qp,
3119 data,
3120 opts,
3121 );
3122 }
3123}
3124
3125export class ComAtprotoLabelNS {
3126 _client: XrpcClient;
3127
3128 constructor(client: XrpcClient) {
3129 this._client = client;
3130 }
3131
3132 queryLabels(
3133 params?: ComAtprotoLabelQueryLabels.QueryParams,
3134 opts?: ComAtprotoLabelQueryLabels.CallOptions,
3135 ): Promise<ComAtprotoLabelQueryLabels.Response> {
3136 return this._client.call(
3137 "com.atproto.label.queryLabels",
3138 params,
3139 undefined,
3140 opts,
3141 );
3142 }
3143}
3144
3145export class ComAtprotoLexiconNS {
3146 _client: XrpcClient;
3147 schema: SchemaRecord;
3148
3149 constructor(client: XrpcClient) {
3150 this._client = client;
3151 this.schema = new SchemaRecord(client);
3152 }
3153}
3154
3155export class SchemaRecord {
3156 _client: XrpcClient;
3157
3158 constructor(client: XrpcClient) {
3159 this._client = client;
3160 }
3161
3162 async list(
3163 params: OmitKey<ComAtprotoRepoListRecords.QueryParams, "collection">,
3164 ): Promise<{
3165 cursor?: string;
3166 records: { uri: string; value: ComAtprotoLexiconSchema.Record }[];
3167 }> {
3168 const res = await this._client.call("com.atproto.repo.listRecords", {
3169 collection: "com.atproto.lexicon.schema",
3170 ...params,
3171 });
3172 return res.data;
3173 }
3174
3175 async get(
3176 params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, "collection">,
3177 ): Promise<{
3178 uri: string;
3179 cid: string;
3180 value: ComAtprotoLexiconSchema.Record;
3181 }> {
3182 const res = await this._client.call("com.atproto.repo.getRecord", {
3183 collection: "com.atproto.lexicon.schema",
3184 ...params,
3185 });
3186 return res.data;
3187 }
3188
3189 async create(
3190 params: OmitKey<
3191 ComAtprotoRepoCreateRecord.InputSchema,
3192 "collection" | "record"
3193 >,
3194 record: Un$Typed<ComAtprotoLexiconSchema.Record>,
3195 headers?: Record<string, string>,
3196 ): Promise<{ uri: string; cid: string }> {
3197 const collection = "com.atproto.lexicon.schema";
3198 const res = await this._client.call(
3199 "com.atproto.repo.createRecord",
3200 undefined,
3201 { collection, ...params, record: { ...record, $type: collection } },
3202 { encoding: "application/json", headers },
3203 );
3204 return res.data;
3205 }
3206
3207 async delete(
3208 params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, "collection">,
3209 headers?: Record<string, string>,
3210 ): Promise<void> {
3211 await this._client.call(
3212 "com.atproto.repo.deleteRecord",
3213 undefined,
3214 { collection: "com.atproto.lexicon.schema", ...params },
3215 { headers },
3216 );
3217 }
3218}
3219
3220export class ComAtprotoModerationNS {
3221 _client: XrpcClient;
3222
3223 constructor(client: XrpcClient) {
3224 this._client = client;
3225 }
3226
3227 createReport(
3228 data?: ComAtprotoModerationCreateReport.InputSchema,
3229 opts?: ComAtprotoModerationCreateReport.CallOptions,
3230 ): Promise<ComAtprotoModerationCreateReport.Response> {
3231 return this._client.call(
3232 "com.atproto.moderation.createReport",
3233 opts?.qp,
3234 data,
3235 opts,
3236 );
3237 }
3238}
3239
3240export class ComAtprotoRepoNS {
3241 _client: XrpcClient;
3242
3243 constructor(client: XrpcClient) {
3244 this._client = client;
3245 }
3246
3247 applyWrites(
3248 data?: ComAtprotoRepoApplyWrites.InputSchema,
3249 opts?: ComAtprotoRepoApplyWrites.CallOptions,
3250 ): Promise<ComAtprotoRepoApplyWrites.Response> {
3251 return this._client
3252 .call("com.atproto.repo.applyWrites", opts?.qp, data, opts)
3253 .catch((e) => {
3254 throw ComAtprotoRepoApplyWrites.toKnownErr(e);
3255 });
3256 }
3257
3258 createRecord(
3259 data?: ComAtprotoRepoCreateRecord.InputSchema,
3260 opts?: ComAtprotoRepoCreateRecord.CallOptions,
3261 ): Promise<ComAtprotoRepoCreateRecord.Response> {
3262 return this._client
3263 .call("com.atproto.repo.createRecord", opts?.qp, data, opts)
3264 .catch((e) => {
3265 throw ComAtprotoRepoCreateRecord.toKnownErr(e);
3266 });
3267 }
3268
3269 deleteRecord(
3270 data?: ComAtprotoRepoDeleteRecord.InputSchema,
3271 opts?: ComAtprotoRepoDeleteRecord.CallOptions,
3272 ): Promise<ComAtprotoRepoDeleteRecord.Response> {
3273 return this._client
3274 .call("com.atproto.repo.deleteRecord", opts?.qp, data, opts)
3275 .catch((e) => {
3276 throw ComAtprotoRepoDeleteRecord.toKnownErr(e);
3277 });
3278 }
3279
3280 describeRepo(
3281 params?: ComAtprotoRepoDescribeRepo.QueryParams,
3282 opts?: ComAtprotoRepoDescribeRepo.CallOptions,
3283 ): Promise<ComAtprotoRepoDescribeRepo.Response> {
3284 return this._client.call(
3285 "com.atproto.repo.describeRepo",
3286 params,
3287 undefined,
3288 opts,
3289 );
3290 }
3291
3292 getRecord(
3293 params?: ComAtprotoRepoGetRecord.QueryParams,
3294 opts?: ComAtprotoRepoGetRecord.CallOptions,
3295 ): Promise<ComAtprotoRepoGetRecord.Response> {
3296 return this._client
3297 .call("com.atproto.repo.getRecord", params, undefined, opts)
3298 .catch((e) => {
3299 throw ComAtprotoRepoGetRecord.toKnownErr(e);
3300 });
3301 }
3302
3303 importRepo(
3304 data?: ComAtprotoRepoImportRepo.InputSchema,
3305 opts?: ComAtprotoRepoImportRepo.CallOptions,
3306 ): Promise<ComAtprotoRepoImportRepo.Response> {
3307 return this._client.call(
3308 "com.atproto.repo.importRepo",
3309 opts?.qp,
3310 data,
3311 opts,
3312 );
3313 }
3314
3315 listMissingBlobs(
3316 params?: ComAtprotoRepoListMissingBlobs.QueryParams,
3317 opts?: ComAtprotoRepoListMissingBlobs.CallOptions,
3318 ): Promise<ComAtprotoRepoListMissingBlobs.Response> {
3319 return this._client.call(
3320 "com.atproto.repo.listMissingBlobs",
3321 params,
3322 undefined,
3323 opts,
3324 );
3325 }
3326
3327 listRecords(
3328 params?: ComAtprotoRepoListRecords.QueryParams,
3329 opts?: ComAtprotoRepoListRecords.CallOptions,
3330 ): Promise<ComAtprotoRepoListRecords.Response> {
3331 return this._client.call(
3332 "com.atproto.repo.listRecords",
3333 params,
3334 undefined,
3335 opts,
3336 );
3337 }
3338
3339 putRecord(
3340 data?: ComAtprotoRepoPutRecord.InputSchema,
3341 opts?: ComAtprotoRepoPutRecord.CallOptions,
3342 ): Promise<ComAtprotoRepoPutRecord.Response> {
3343 return this._client
3344 .call("com.atproto.repo.putRecord", opts?.qp, data, opts)
3345 .catch((e) => {
3346 throw ComAtprotoRepoPutRecord.toKnownErr(e);
3347 });
3348 }
3349
3350 uploadBlob(
3351 data?: ComAtprotoRepoUploadBlob.InputSchema,
3352 opts?: ComAtprotoRepoUploadBlob.CallOptions,
3353 ): Promise<ComAtprotoRepoUploadBlob.Response> {
3354 return this._client.call(
3355 "com.atproto.repo.uploadBlob",
3356 opts?.qp,
3357 data,
3358 opts,
3359 );
3360 }
3361}
3362
3363export class ComAtprotoServerNS {
3364 _client: XrpcClient;
3365
3366 constructor(client: XrpcClient) {
3367 this._client = client;
3368 }
3369
3370 activateAccount(
3371 data?: ComAtprotoServerActivateAccount.InputSchema,
3372 opts?: ComAtprotoServerActivateAccount.CallOptions,
3373 ): Promise<ComAtprotoServerActivateAccount.Response> {
3374 return this._client.call(
3375 "com.atproto.server.activateAccount",
3376 opts?.qp,
3377 data,
3378 opts,
3379 );
3380 }
3381
3382 checkAccountStatus(
3383 params?: ComAtprotoServerCheckAccountStatus.QueryParams,
3384 opts?: ComAtprotoServerCheckAccountStatus.CallOptions,
3385 ): Promise<ComAtprotoServerCheckAccountStatus.Response> {
3386 return this._client.call(
3387 "com.atproto.server.checkAccountStatus",
3388 params,
3389 undefined,
3390 opts,
3391 );
3392 }
3393
3394 confirmEmail(
3395 data?: ComAtprotoServerConfirmEmail.InputSchema,
3396 opts?: ComAtprotoServerConfirmEmail.CallOptions,
3397 ): Promise<ComAtprotoServerConfirmEmail.Response> {
3398 return this._client
3399 .call("com.atproto.server.confirmEmail", opts?.qp, data, opts)
3400 .catch((e) => {
3401 throw ComAtprotoServerConfirmEmail.toKnownErr(e);
3402 });
3403 }
3404
3405 createAccount(
3406 data?: ComAtprotoServerCreateAccount.InputSchema,
3407 opts?: ComAtprotoServerCreateAccount.CallOptions,
3408 ): Promise<ComAtprotoServerCreateAccount.Response> {
3409 return this._client
3410 .call("com.atproto.server.createAccount", opts?.qp, data, opts)
3411 .catch((e) => {
3412 throw ComAtprotoServerCreateAccount.toKnownErr(e);
3413 });
3414 }
3415
3416 createAppPassword(
3417 data?: ComAtprotoServerCreateAppPassword.InputSchema,
3418 opts?: ComAtprotoServerCreateAppPassword.CallOptions,
3419 ): Promise<ComAtprotoServerCreateAppPassword.Response> {
3420 return this._client
3421 .call("com.atproto.server.createAppPassword", opts?.qp, data, opts)
3422 .catch((e) => {
3423 throw ComAtprotoServerCreateAppPassword.toKnownErr(e);
3424 });
3425 }
3426
3427 createInviteCode(
3428 data?: ComAtprotoServerCreateInviteCode.InputSchema,
3429 opts?: ComAtprotoServerCreateInviteCode.CallOptions,
3430 ): Promise<ComAtprotoServerCreateInviteCode.Response> {
3431 return this._client.call(
3432 "com.atproto.server.createInviteCode",
3433 opts?.qp,
3434 data,
3435 opts,
3436 );
3437 }
3438
3439 createInviteCodes(
3440 data?: ComAtprotoServerCreateInviteCodes.InputSchema,
3441 opts?: ComAtprotoServerCreateInviteCodes.CallOptions,
3442 ): Promise<ComAtprotoServerCreateInviteCodes.Response> {
3443 return this._client.call(
3444 "com.atproto.server.createInviteCodes",
3445 opts?.qp,
3446 data,
3447 opts,
3448 );
3449 }
3450
3451 createSession(
3452 data?: ComAtprotoServerCreateSession.InputSchema,
3453 opts?: ComAtprotoServerCreateSession.CallOptions,
3454 ): Promise<ComAtprotoServerCreateSession.Response> {
3455 return this._client
3456 .call("com.atproto.server.createSession", opts?.qp, data, opts)
3457 .catch((e) => {
3458 throw ComAtprotoServerCreateSession.toKnownErr(e);
3459 });
3460 }
3461
3462 deactivateAccount(
3463 data?: ComAtprotoServerDeactivateAccount.InputSchema,
3464 opts?: ComAtprotoServerDeactivateAccount.CallOptions,
3465 ): Promise<ComAtprotoServerDeactivateAccount.Response> {
3466 return this._client.call(
3467 "com.atproto.server.deactivateAccount",
3468 opts?.qp,
3469 data,
3470 opts,
3471 );
3472 }
3473
3474 deleteAccount(
3475 data?: ComAtprotoServerDeleteAccount.InputSchema,
3476 opts?: ComAtprotoServerDeleteAccount.CallOptions,
3477 ): Promise<ComAtprotoServerDeleteAccount.Response> {
3478 return this._client
3479 .call("com.atproto.server.deleteAccount", opts?.qp, data, opts)
3480 .catch((e) => {
3481 throw ComAtprotoServerDeleteAccount.toKnownErr(e);
3482 });
3483 }
3484
3485 deleteSession(
3486 data?: ComAtprotoServerDeleteSession.InputSchema,
3487 opts?: ComAtprotoServerDeleteSession.CallOptions,
3488 ): Promise<ComAtprotoServerDeleteSession.Response> {
3489 return this._client.call(
3490 "com.atproto.server.deleteSession",
3491 opts?.qp,
3492 data,
3493 opts,
3494 );
3495 }
3496
3497 describeServer(
3498 params?: ComAtprotoServerDescribeServer.QueryParams,
3499 opts?: ComAtprotoServerDescribeServer.CallOptions,
3500 ): Promise<ComAtprotoServerDescribeServer.Response> {
3501 return this._client.call(
3502 "com.atproto.server.describeServer",
3503 params,
3504 undefined,
3505 opts,
3506 );
3507 }
3508
3509 getAccountInviteCodes(
3510 params?: ComAtprotoServerGetAccountInviteCodes.QueryParams,
3511 opts?: ComAtprotoServerGetAccountInviteCodes.CallOptions,
3512 ): Promise<ComAtprotoServerGetAccountInviteCodes.Response> {
3513 return this._client
3514 .call("com.atproto.server.getAccountInviteCodes", params, undefined, opts)
3515 .catch((e) => {
3516 throw ComAtprotoServerGetAccountInviteCodes.toKnownErr(e);
3517 });
3518 }
3519
3520 getServiceAuth(
3521 params?: ComAtprotoServerGetServiceAuth.QueryParams,
3522 opts?: ComAtprotoServerGetServiceAuth.CallOptions,
3523 ): Promise<ComAtprotoServerGetServiceAuth.Response> {
3524 return this._client
3525 .call("com.atproto.server.getServiceAuth", params, undefined, opts)
3526 .catch((e) => {
3527 throw ComAtprotoServerGetServiceAuth.toKnownErr(e);
3528 });
3529 }
3530
3531 getSession(
3532 params?: ComAtprotoServerGetSession.QueryParams,
3533 opts?: ComAtprotoServerGetSession.CallOptions,
3534 ): Promise<ComAtprotoServerGetSession.Response> {
3535 return this._client.call(
3536 "com.atproto.server.getSession",
3537 params,
3538 undefined,
3539 opts,
3540 );
3541 }
3542
3543 listAppPasswords(
3544 params?: ComAtprotoServerListAppPasswords.QueryParams,
3545 opts?: ComAtprotoServerListAppPasswords.CallOptions,
3546 ): Promise<ComAtprotoServerListAppPasswords.Response> {
3547 return this._client
3548 .call("com.atproto.server.listAppPasswords", params, undefined, opts)
3549 .catch((e) => {
3550 throw ComAtprotoServerListAppPasswords.toKnownErr(e);
3551 });
3552 }
3553
3554 refreshSession(
3555 data?: ComAtprotoServerRefreshSession.InputSchema,
3556 opts?: ComAtprotoServerRefreshSession.CallOptions,
3557 ): Promise<ComAtprotoServerRefreshSession.Response> {
3558 return this._client
3559 .call("com.atproto.server.refreshSession", opts?.qp, data, opts)
3560 .catch((e) => {
3561 throw ComAtprotoServerRefreshSession.toKnownErr(e);
3562 });
3563 }
3564
3565 requestAccountDelete(
3566 data?: ComAtprotoServerRequestAccountDelete.InputSchema,
3567 opts?: ComAtprotoServerRequestAccountDelete.CallOptions,
3568 ): Promise<ComAtprotoServerRequestAccountDelete.Response> {
3569 return this._client.call(
3570 "com.atproto.server.requestAccountDelete",
3571 opts?.qp,
3572 data,
3573 opts,
3574 );
3575 }
3576
3577 requestEmailConfirmation(
3578 data?: ComAtprotoServerRequestEmailConfirmation.InputSchema,
3579 opts?: ComAtprotoServerRequestEmailConfirmation.CallOptions,
3580 ): Promise<ComAtprotoServerRequestEmailConfirmation.Response> {
3581 return this._client.call(
3582 "com.atproto.server.requestEmailConfirmation",
3583 opts?.qp,
3584 data,
3585 opts,
3586 );
3587 }
3588
3589 requestEmailUpdate(
3590 data?: ComAtprotoServerRequestEmailUpdate.InputSchema,
3591 opts?: ComAtprotoServerRequestEmailUpdate.CallOptions,
3592 ): Promise<ComAtprotoServerRequestEmailUpdate.Response> {
3593 return this._client.call(
3594 "com.atproto.server.requestEmailUpdate",
3595 opts?.qp,
3596 data,
3597 opts,
3598 );
3599 }
3600
3601 requestPasswordReset(
3602 data?: ComAtprotoServerRequestPasswordReset.InputSchema,
3603 opts?: ComAtprotoServerRequestPasswordReset.CallOptions,
3604 ): Promise<ComAtprotoServerRequestPasswordReset.Response> {
3605 return this._client.call(
3606 "com.atproto.server.requestPasswordReset",
3607 opts?.qp,
3608 data,
3609 opts,
3610 );
3611 }
3612
3613 reserveSigningKey(
3614 data?: ComAtprotoServerReserveSigningKey.InputSchema,
3615 opts?: ComAtprotoServerReserveSigningKey.CallOptions,
3616 ): Promise<ComAtprotoServerReserveSigningKey.Response> {
3617 return this._client.call(
3618 "com.atproto.server.reserveSigningKey",
3619 opts?.qp,
3620 data,
3621 opts,
3622 );
3623 }
3624
3625 resetPassword(
3626 data?: ComAtprotoServerResetPassword.InputSchema,
3627 opts?: ComAtprotoServerResetPassword.CallOptions,
3628 ): Promise<ComAtprotoServerResetPassword.Response> {
3629 return this._client
3630 .call("com.atproto.server.resetPassword", opts?.qp, data, opts)
3631 .catch((e) => {
3632 throw ComAtprotoServerResetPassword.toKnownErr(e);
3633 });
3634 }
3635
3636 revokeAppPassword(
3637 data?: ComAtprotoServerRevokeAppPassword.InputSchema,
3638 opts?: ComAtprotoServerRevokeAppPassword.CallOptions,
3639 ): Promise<ComAtprotoServerRevokeAppPassword.Response> {
3640 return this._client.call(
3641 "com.atproto.server.revokeAppPassword",
3642 opts?.qp,
3643 data,
3644 opts,
3645 );
3646 }
3647
3648 updateEmail(
3649 data?: ComAtprotoServerUpdateEmail.InputSchema,
3650 opts?: ComAtprotoServerUpdateEmail.CallOptions,
3651 ): Promise<ComAtprotoServerUpdateEmail.Response> {
3652 return this._client
3653 .call("com.atproto.server.updateEmail", opts?.qp, data, opts)
3654 .catch((e) => {
3655 throw ComAtprotoServerUpdateEmail.toKnownErr(e);
3656 });
3657 }
3658}
3659
3660export class ComAtprotoSyncNS {
3661 _client: XrpcClient;
3662
3663 constructor(client: XrpcClient) {
3664 this._client = client;
3665 }
3666
3667 getBlob(
3668 params?: ComAtprotoSyncGetBlob.QueryParams,
3669 opts?: ComAtprotoSyncGetBlob.CallOptions,
3670 ): Promise<ComAtprotoSyncGetBlob.Response> {
3671 return this._client
3672 .call("com.atproto.sync.getBlob", params, undefined, opts)
3673 .catch((e) => {
3674 throw ComAtprotoSyncGetBlob.toKnownErr(e);
3675 });
3676 }
3677
3678 getBlocks(
3679 params?: ComAtprotoSyncGetBlocks.QueryParams,
3680 opts?: ComAtprotoSyncGetBlocks.CallOptions,
3681 ): Promise<ComAtprotoSyncGetBlocks.Response> {
3682 return this._client
3683 .call("com.atproto.sync.getBlocks", params, undefined, opts)
3684 .catch((e) => {
3685 throw ComAtprotoSyncGetBlocks.toKnownErr(e);
3686 });
3687 }
3688
3689 getCheckout(
3690 params?: ComAtprotoSyncGetCheckout.QueryParams,
3691 opts?: ComAtprotoSyncGetCheckout.CallOptions,
3692 ): Promise<ComAtprotoSyncGetCheckout.Response> {
3693 return this._client.call(
3694 "com.atproto.sync.getCheckout",
3695 params,
3696 undefined,
3697 opts,
3698 );
3699 }
3700
3701 getHead(
3702 params?: ComAtprotoSyncGetHead.QueryParams,
3703 opts?: ComAtprotoSyncGetHead.CallOptions,
3704 ): Promise<ComAtprotoSyncGetHead.Response> {
3705 return this._client
3706 .call("com.atproto.sync.getHead", params, undefined, opts)
3707 .catch((e) => {
3708 throw ComAtprotoSyncGetHead.toKnownErr(e);
3709 });
3710 }
3711
3712 getHostStatus(
3713 params?: ComAtprotoSyncGetHostStatus.QueryParams,
3714 opts?: ComAtprotoSyncGetHostStatus.CallOptions,
3715 ): Promise<ComAtprotoSyncGetHostStatus.Response> {
3716 return this._client
3717 .call("com.atproto.sync.getHostStatus", params, undefined, opts)
3718 .catch((e) => {
3719 throw ComAtprotoSyncGetHostStatus.toKnownErr(e);
3720 });
3721 }
3722
3723 getLatestCommit(
3724 params?: ComAtprotoSyncGetLatestCommit.QueryParams,
3725 opts?: ComAtprotoSyncGetLatestCommit.CallOptions,
3726 ): Promise<ComAtprotoSyncGetLatestCommit.Response> {
3727 return this._client
3728 .call("com.atproto.sync.getLatestCommit", params, undefined, opts)
3729 .catch((e) => {
3730 throw ComAtprotoSyncGetLatestCommit.toKnownErr(e);
3731 });
3732 }
3733
3734 getRecord(
3735 params?: ComAtprotoSyncGetRecord.QueryParams,
3736 opts?: ComAtprotoSyncGetRecord.CallOptions,
3737 ): Promise<ComAtprotoSyncGetRecord.Response> {
3738 return this._client
3739 .call("com.atproto.sync.getRecord", params, undefined, opts)
3740 .catch((e) => {
3741 throw ComAtprotoSyncGetRecord.toKnownErr(e);
3742 });
3743 }
3744
3745 getRepo(
3746 params?: ComAtprotoSyncGetRepo.QueryParams,
3747 opts?: ComAtprotoSyncGetRepo.CallOptions,
3748 ): Promise<ComAtprotoSyncGetRepo.Response> {
3749 return this._client
3750 .call("com.atproto.sync.getRepo", params, undefined, opts)
3751 .catch((e) => {
3752 throw ComAtprotoSyncGetRepo.toKnownErr(e);
3753 });
3754 }
3755
3756 getRepoStatus(
3757 params?: ComAtprotoSyncGetRepoStatus.QueryParams,
3758 opts?: ComAtprotoSyncGetRepoStatus.CallOptions,
3759 ): Promise<ComAtprotoSyncGetRepoStatus.Response> {
3760 return this._client
3761 .call("com.atproto.sync.getRepoStatus", params, undefined, opts)
3762 .catch((e) => {
3763 throw ComAtprotoSyncGetRepoStatus.toKnownErr(e);
3764 });
3765 }
3766
3767 listBlobs(
3768 params?: ComAtprotoSyncListBlobs.QueryParams,
3769 opts?: ComAtprotoSyncListBlobs.CallOptions,
3770 ): Promise<ComAtprotoSyncListBlobs.Response> {
3771 return this._client
3772 .call("com.atproto.sync.listBlobs", params, undefined, opts)
3773 .catch((e) => {
3774 throw ComAtprotoSyncListBlobs.toKnownErr(e);
3775 });
3776 }
3777
3778 listHosts(
3779 params?: ComAtprotoSyncListHosts.QueryParams,
3780 opts?: ComAtprotoSyncListHosts.CallOptions,
3781 ): Promise<ComAtprotoSyncListHosts.Response> {
3782 return this._client.call(
3783 "com.atproto.sync.listHosts",
3784 params,
3785 undefined,
3786 opts,
3787 );
3788 }
3789
3790 listRepos(
3791 params?: ComAtprotoSyncListRepos.QueryParams,
3792 opts?: ComAtprotoSyncListRepos.CallOptions,
3793 ): Promise<ComAtprotoSyncListRepos.Response> {
3794 return this._client.call(
3795 "com.atproto.sync.listRepos",
3796 params,
3797 undefined,
3798 opts,
3799 );
3800 }
3801
3802 listReposByCollection(
3803 params?: ComAtprotoSyncListReposByCollection.QueryParams,
3804 opts?: ComAtprotoSyncListReposByCollection.CallOptions,
3805 ): Promise<ComAtprotoSyncListReposByCollection.Response> {
3806 return this._client.call(
3807 "com.atproto.sync.listReposByCollection",
3808 params,
3809 undefined,
3810 opts,
3811 );
3812 }
3813
3814 notifyOfUpdate(
3815 data?: ComAtprotoSyncNotifyOfUpdate.InputSchema,
3816 opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions,
3817 ): Promise<ComAtprotoSyncNotifyOfUpdate.Response> {
3818 return this._client.call(
3819 "com.atproto.sync.notifyOfUpdate",
3820 opts?.qp,
3821 data,
3822 opts,
3823 );
3824 }
3825
3826 requestCrawl(
3827 data?: ComAtprotoSyncRequestCrawl.InputSchema,
3828 opts?: ComAtprotoSyncRequestCrawl.CallOptions,
3829 ): Promise<ComAtprotoSyncRequestCrawl.Response> {
3830 return this._client
3831 .call("com.atproto.sync.requestCrawl", opts?.qp, data, opts)
3832 .catch((e) => {
3833 throw ComAtprotoSyncRequestCrawl.toKnownErr(e);
3834 });
3835 }
3836}
3837
3838export class ComAtprotoTempNS {
3839 _client: XrpcClient;
3840
3841 constructor(client: XrpcClient) {
3842 this._client = client;
3843 }
3844
3845 addReservedHandle(
3846 data?: ComAtprotoTempAddReservedHandle.InputSchema,
3847 opts?: ComAtprotoTempAddReservedHandle.CallOptions,
3848 ): Promise<ComAtprotoTempAddReservedHandle.Response> {
3849 return this._client.call(
3850 "com.atproto.temp.addReservedHandle",
3851 opts?.qp,
3852 data,
3853 opts,
3854 );
3855 }
3856
3857 checkSignupQueue(
3858 params?: ComAtprotoTempCheckSignupQueue.QueryParams,
3859 opts?: ComAtprotoTempCheckSignupQueue.CallOptions,
3860 ): Promise<ComAtprotoTempCheckSignupQueue.Response> {
3861 return this._client.call(
3862 "com.atproto.temp.checkSignupQueue",
3863 params,
3864 undefined,
3865 opts,
3866 );
3867 }
3868
3869 fetchLabels(
3870 params?: ComAtprotoTempFetchLabels.QueryParams,
3871 opts?: ComAtprotoTempFetchLabels.CallOptions,
3872 ): Promise<ComAtprotoTempFetchLabels.Response> {
3873 return this._client.call(
3874 "com.atproto.temp.fetchLabels",
3875 params,
3876 undefined,
3877 opts,
3878 );
3879 }
3880
3881 requestPhoneVerification(
3882 data?: ComAtprotoTempRequestPhoneVerification.InputSchema,
3883 opts?: ComAtprotoTempRequestPhoneVerification.CallOptions,
3884 ): Promise<ComAtprotoTempRequestPhoneVerification.Response> {
3885 return this._client.call(
3886 "com.atproto.temp.requestPhoneVerification",
3887 opts?.qp,
3888 data,
3889 opts,
3890 );
3891 }
3892}
3893
3894export class ToolsNS {
3895 _client: XrpcClient;
3896 ozone: ToolsOzoneNS;
3897
3898 constructor(client: XrpcClient) {
3899 this._client = client;
3900 this.ozone = new ToolsOzoneNS(client);
3901 }
3902}
3903
3904export class ToolsOzoneNS {
3905 _client: XrpcClient;
3906 communication: ToolsOzoneCommunicationNS;
3907 moderation: ToolsOzoneModerationNS;
3908 server: ToolsOzoneServerNS;
3909 set: ToolsOzoneSetNS;
3910 setting: ToolsOzoneSettingNS;
3911 signature: ToolsOzoneSignatureNS;
3912 team: ToolsOzoneTeamNS;
3913
3914 constructor(client: XrpcClient) {
3915 this._client = client;
3916 this.communication = new ToolsOzoneCommunicationNS(client);
3917 this.moderation = new ToolsOzoneModerationNS(client);
3918 this.server = new ToolsOzoneServerNS(client);
3919 this.set = new ToolsOzoneSetNS(client);
3920 this.setting = new ToolsOzoneSettingNS(client);
3921 this.signature = new ToolsOzoneSignatureNS(client);
3922 this.team = new ToolsOzoneTeamNS(client);
3923 }
3924}
3925
3926export class ToolsOzoneCommunicationNS {
3927 _client: XrpcClient;
3928
3929 constructor(client: XrpcClient) {
3930 this._client = client;
3931 }
3932
3933 createTemplate(
3934 data?: ToolsOzoneCommunicationCreateTemplate.InputSchema,
3935 opts?: ToolsOzoneCommunicationCreateTemplate.CallOptions,
3936 ): Promise<ToolsOzoneCommunicationCreateTemplate.Response> {
3937 return this._client
3938 .call("tools.ozone.communication.createTemplate", opts?.qp, data, opts)
3939 .catch((e) => {
3940 throw ToolsOzoneCommunicationCreateTemplate.toKnownErr(e);
3941 });
3942 }
3943
3944 deleteTemplate(
3945 data?: ToolsOzoneCommunicationDeleteTemplate.InputSchema,
3946 opts?: ToolsOzoneCommunicationDeleteTemplate.CallOptions,
3947 ): Promise<ToolsOzoneCommunicationDeleteTemplate.Response> {
3948 return this._client.call(
3949 "tools.ozone.communication.deleteTemplate",
3950 opts?.qp,
3951 data,
3952 opts,
3953 );
3954 }
3955
3956 listTemplates(
3957 params?: ToolsOzoneCommunicationListTemplates.QueryParams,
3958 opts?: ToolsOzoneCommunicationListTemplates.CallOptions,
3959 ): Promise<ToolsOzoneCommunicationListTemplates.Response> {
3960 return this._client.call(
3961 "tools.ozone.communication.listTemplates",
3962 params,
3963 undefined,
3964 opts,
3965 );
3966 }
3967
3968 updateTemplate(
3969 data?: ToolsOzoneCommunicationUpdateTemplate.InputSchema,
3970 opts?: ToolsOzoneCommunicationUpdateTemplate.CallOptions,
3971 ): Promise<ToolsOzoneCommunicationUpdateTemplate.Response> {
3972 return this._client
3973 .call("tools.ozone.communication.updateTemplate", opts?.qp, data, opts)
3974 .catch((e) => {
3975 throw ToolsOzoneCommunicationUpdateTemplate.toKnownErr(e);
3976 });
3977 }
3978}
3979
3980export class ToolsOzoneModerationNS {
3981 _client: XrpcClient;
3982
3983 constructor(client: XrpcClient) {
3984 this._client = client;
3985 }
3986
3987 emitEvent(
3988 data?: ToolsOzoneModerationEmitEvent.InputSchema,
3989 opts?: ToolsOzoneModerationEmitEvent.CallOptions,
3990 ): Promise<ToolsOzoneModerationEmitEvent.Response> {
3991 return this._client
3992 .call("tools.ozone.moderation.emitEvent", opts?.qp, data, opts)
3993 .catch((e) => {
3994 throw ToolsOzoneModerationEmitEvent.toKnownErr(e);
3995 });
3996 }
3997
3998 getEvent(
3999 params?: ToolsOzoneModerationGetEvent.QueryParams,
4000 opts?: ToolsOzoneModerationGetEvent.CallOptions,
4001 ): Promise<ToolsOzoneModerationGetEvent.Response> {
4002 return this._client.call(
4003 "tools.ozone.moderation.getEvent",
4004 params,
4005 undefined,
4006 opts,
4007 );
4008 }
4009
4010 getRecord(
4011 params?: ToolsOzoneModerationGetRecord.QueryParams,
4012 opts?: ToolsOzoneModerationGetRecord.CallOptions,
4013 ): Promise<ToolsOzoneModerationGetRecord.Response> {
4014 return this._client
4015 .call("tools.ozone.moderation.getRecord", params, undefined, opts)
4016 .catch((e) => {
4017 throw ToolsOzoneModerationGetRecord.toKnownErr(e);
4018 });
4019 }
4020
4021 getRecords(
4022 params?: ToolsOzoneModerationGetRecords.QueryParams,
4023 opts?: ToolsOzoneModerationGetRecords.CallOptions,
4024 ): Promise<ToolsOzoneModerationGetRecords.Response> {
4025 return this._client.call(
4026 "tools.ozone.moderation.getRecords",
4027 params,
4028 undefined,
4029 opts,
4030 );
4031 }
4032
4033 getRepo(
4034 params?: ToolsOzoneModerationGetRepo.QueryParams,
4035 opts?: ToolsOzoneModerationGetRepo.CallOptions,
4036 ): Promise<ToolsOzoneModerationGetRepo.Response> {
4037 return this._client
4038 .call("tools.ozone.moderation.getRepo", params, undefined, opts)
4039 .catch((e) => {
4040 throw ToolsOzoneModerationGetRepo.toKnownErr(e);
4041 });
4042 }
4043
4044 getReporterStats(
4045 params?: ToolsOzoneModerationGetReporterStats.QueryParams,
4046 opts?: ToolsOzoneModerationGetReporterStats.CallOptions,
4047 ): Promise<ToolsOzoneModerationGetReporterStats.Response> {
4048 return this._client.call(
4049 "tools.ozone.moderation.getReporterStats",
4050 params,
4051 undefined,
4052 opts,
4053 );
4054 }
4055
4056 getRepos(
4057 params?: ToolsOzoneModerationGetRepos.QueryParams,
4058 opts?: ToolsOzoneModerationGetRepos.CallOptions,
4059 ): Promise<ToolsOzoneModerationGetRepos.Response> {
4060 return this._client.call(
4061 "tools.ozone.moderation.getRepos",
4062 params,
4063 undefined,
4064 opts,
4065 );
4066 }
4067
4068 getSubjects(
4069 params?: ToolsOzoneModerationGetSubjects.QueryParams,
4070 opts?: ToolsOzoneModerationGetSubjects.CallOptions,
4071 ): Promise<ToolsOzoneModerationGetSubjects.Response> {
4072 return this._client.call(
4073 "tools.ozone.moderation.getSubjects",
4074 params,
4075 undefined,
4076 opts,
4077 );
4078 }
4079
4080 queryEvents(
4081 params?: ToolsOzoneModerationQueryEvents.QueryParams,
4082 opts?: ToolsOzoneModerationQueryEvents.CallOptions,
4083 ): Promise<ToolsOzoneModerationQueryEvents.Response> {
4084 return this._client.call(
4085 "tools.ozone.moderation.queryEvents",
4086 params,
4087 undefined,
4088 opts,
4089 );
4090 }
4091
4092 queryStatuses(
4093 params?: ToolsOzoneModerationQueryStatuses.QueryParams,
4094 opts?: ToolsOzoneModerationQueryStatuses.CallOptions,
4095 ): Promise<ToolsOzoneModerationQueryStatuses.Response> {
4096 return this._client.call(
4097 "tools.ozone.moderation.queryStatuses",
4098 params,
4099 undefined,
4100 opts,
4101 );
4102 }
4103
4104 searchRepos(
4105 params?: ToolsOzoneModerationSearchRepos.QueryParams,
4106 opts?: ToolsOzoneModerationSearchRepos.CallOptions,
4107 ): Promise<ToolsOzoneModerationSearchRepos.Response> {
4108 return this._client.call(
4109 "tools.ozone.moderation.searchRepos",
4110 params,
4111 undefined,
4112 opts,
4113 );
4114 }
4115}
4116
4117export class ToolsOzoneServerNS {
4118 _client: XrpcClient;
4119
4120 constructor(client: XrpcClient) {
4121 this._client = client;
4122 }
4123
4124 getConfig(
4125 params?: ToolsOzoneServerGetConfig.QueryParams,
4126 opts?: ToolsOzoneServerGetConfig.CallOptions,
4127 ): Promise<ToolsOzoneServerGetConfig.Response> {
4128 return this._client.call(
4129 "tools.ozone.server.getConfig",
4130 params,
4131 undefined,
4132 opts,
4133 );
4134 }
4135}
4136
4137export class ToolsOzoneSetNS {
4138 _client: XrpcClient;
4139
4140 constructor(client: XrpcClient) {
4141 this._client = client;
4142 }
4143
4144 addValues(
4145 data?: ToolsOzoneSetAddValues.InputSchema,
4146 opts?: ToolsOzoneSetAddValues.CallOptions,
4147 ): Promise<ToolsOzoneSetAddValues.Response> {
4148 return this._client.call("tools.ozone.set.addValues", opts?.qp, data, opts);
4149 }
4150
4151 deleteSet(
4152 data?: ToolsOzoneSetDeleteSet.InputSchema,
4153 opts?: ToolsOzoneSetDeleteSet.CallOptions,
4154 ): Promise<ToolsOzoneSetDeleteSet.Response> {
4155 return this._client
4156 .call("tools.ozone.set.deleteSet", opts?.qp, data, opts)
4157 .catch((e) => {
4158 throw ToolsOzoneSetDeleteSet.toKnownErr(e);
4159 });
4160 }
4161
4162 deleteValues(
4163 data?: ToolsOzoneSetDeleteValues.InputSchema,
4164 opts?: ToolsOzoneSetDeleteValues.CallOptions,
4165 ): Promise<ToolsOzoneSetDeleteValues.Response> {
4166 return this._client
4167 .call("tools.ozone.set.deleteValues", opts?.qp, data, opts)
4168 .catch((e) => {
4169 throw ToolsOzoneSetDeleteValues.toKnownErr(e);
4170 });
4171 }
4172
4173 getValues(
4174 params?: ToolsOzoneSetGetValues.QueryParams,
4175 opts?: ToolsOzoneSetGetValues.CallOptions,
4176 ): Promise<ToolsOzoneSetGetValues.Response> {
4177 return this._client
4178 .call("tools.ozone.set.getValues", params, undefined, opts)
4179 .catch((e) => {
4180 throw ToolsOzoneSetGetValues.toKnownErr(e);
4181 });
4182 }
4183
4184 querySets(
4185 params?: ToolsOzoneSetQuerySets.QueryParams,
4186 opts?: ToolsOzoneSetQuerySets.CallOptions,
4187 ): Promise<ToolsOzoneSetQuerySets.Response> {
4188 return this._client.call(
4189 "tools.ozone.set.querySets",
4190 params,
4191 undefined,
4192 opts,
4193 );
4194 }
4195
4196 upsertSet(
4197 data?: ToolsOzoneSetUpsertSet.InputSchema,
4198 opts?: ToolsOzoneSetUpsertSet.CallOptions,
4199 ): Promise<ToolsOzoneSetUpsertSet.Response> {
4200 return this._client.call("tools.ozone.set.upsertSet", opts?.qp, data, opts);
4201 }
4202}
4203
4204export class ToolsOzoneSettingNS {
4205 _client: XrpcClient;
4206
4207 constructor(client: XrpcClient) {
4208 this._client = client;
4209 }
4210
4211 listOptions(
4212 params?: ToolsOzoneSettingListOptions.QueryParams,
4213 opts?: ToolsOzoneSettingListOptions.CallOptions,
4214 ): Promise<ToolsOzoneSettingListOptions.Response> {
4215 return this._client.call(
4216 "tools.ozone.setting.listOptions",
4217 params,
4218 undefined,
4219 opts,
4220 );
4221 }
4222
4223 removeOptions(
4224 data?: ToolsOzoneSettingRemoveOptions.InputSchema,
4225 opts?: ToolsOzoneSettingRemoveOptions.CallOptions,
4226 ): Promise<ToolsOzoneSettingRemoveOptions.Response> {
4227 return this._client.call(
4228 "tools.ozone.setting.removeOptions",
4229 opts?.qp,
4230 data,
4231 opts,
4232 );
4233 }
4234
4235 upsertOption(
4236 data?: ToolsOzoneSettingUpsertOption.InputSchema,
4237 opts?: ToolsOzoneSettingUpsertOption.CallOptions,
4238 ): Promise<ToolsOzoneSettingUpsertOption.Response> {
4239 return this._client.call(
4240 "tools.ozone.setting.upsertOption",
4241 opts?.qp,
4242 data,
4243 opts,
4244 );
4245 }
4246}
4247
4248export class ToolsOzoneSignatureNS {
4249 _client: XrpcClient;
4250
4251 constructor(client: XrpcClient) {
4252 this._client = client;
4253 }
4254
4255 findCorrelation(
4256 params?: ToolsOzoneSignatureFindCorrelation.QueryParams,
4257 opts?: ToolsOzoneSignatureFindCorrelation.CallOptions,
4258 ): Promise<ToolsOzoneSignatureFindCorrelation.Response> {
4259 return this._client.call(
4260 "tools.ozone.signature.findCorrelation",
4261 params,
4262 undefined,
4263 opts,
4264 );
4265 }
4266
4267 findRelatedAccounts(
4268 params?: ToolsOzoneSignatureFindRelatedAccounts.QueryParams,
4269 opts?: ToolsOzoneSignatureFindRelatedAccounts.CallOptions,
4270 ): Promise<ToolsOzoneSignatureFindRelatedAccounts.Response> {
4271 return this._client.call(
4272 "tools.ozone.signature.findRelatedAccounts",
4273 params,
4274 undefined,
4275 opts,
4276 );
4277 }
4278
4279 searchAccounts(
4280 params?: ToolsOzoneSignatureSearchAccounts.QueryParams,
4281 opts?: ToolsOzoneSignatureSearchAccounts.CallOptions,
4282 ): Promise<ToolsOzoneSignatureSearchAccounts.Response> {
4283 return this._client.call(
4284 "tools.ozone.signature.searchAccounts",
4285 params,
4286 undefined,
4287 opts,
4288 );
4289 }
4290}
4291
4292export class ToolsOzoneTeamNS {
4293 _client: XrpcClient;
4294
4295 constructor(client: XrpcClient) {
4296 this._client = client;
4297 }
4298
4299 addMember(
4300 data?: ToolsOzoneTeamAddMember.InputSchema,
4301 opts?: ToolsOzoneTeamAddMember.CallOptions,
4302 ): Promise<ToolsOzoneTeamAddMember.Response> {
4303 return this._client
4304 .call("tools.ozone.team.addMember", opts?.qp, data, opts)
4305 .catch((e) => {
4306 throw ToolsOzoneTeamAddMember.toKnownErr(e);
4307 });
4308 }
4309
4310 deleteMember(
4311 data?: ToolsOzoneTeamDeleteMember.InputSchema,
4312 opts?: ToolsOzoneTeamDeleteMember.CallOptions,
4313 ): Promise<ToolsOzoneTeamDeleteMember.Response> {
4314 return this._client
4315 .call("tools.ozone.team.deleteMember", opts?.qp, data, opts)
4316 .catch((e) => {
4317 throw ToolsOzoneTeamDeleteMember.toKnownErr(e);
4318 });
4319 }
4320
4321 listMembers(
4322 params?: ToolsOzoneTeamListMembers.QueryParams,
4323 opts?: ToolsOzoneTeamListMembers.CallOptions,
4324 ): Promise<ToolsOzoneTeamListMembers.Response> {
4325 return this._client.call(
4326 "tools.ozone.team.listMembers",
4327 params,
4328 undefined,
4329 opts,
4330 );
4331 }
4332
4333 updateMember(
4334 data?: ToolsOzoneTeamUpdateMember.InputSchema,
4335 opts?: ToolsOzoneTeamUpdateMember.CallOptions,
4336 ): Promise<ToolsOzoneTeamUpdateMember.Response> {
4337 return this._client
4338 .call("tools.ozone.team.updateMember", opts?.qp, data, opts)
4339 .catch((e) => {
4340 throw ToolsOzoneTeamUpdateMember.toKnownErr(e);
4341 });
4342 }
4343}