@atproto/ozone 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE.txt +7 -0
- package/README.md +15 -0
- package/babel.config.js +3 -0
- package/bin/migration-create.ts +38 -0
- package/build.js +18 -0
- package/dist/api/admin/emitModerationEvent.d.ts +3 -0
- package/dist/api/admin/getModerationEvent.d.ts +3 -0
- package/dist/api/admin/getRecord.d.ts +3 -0
- package/dist/api/admin/getRepo.d.ts +3 -0
- package/dist/api/admin/queryModerationEvents.d.ts +3 -0
- package/dist/api/admin/queryModerationStatuses.d.ts +3 -0
- package/dist/api/admin/searchRepos.d.ts +3 -0
- package/dist/api/admin/util.d.ts +5 -0
- package/dist/api/com/atproto/admin/emitModerationEvent.d.ts +3 -0
- package/dist/api/com/atproto/admin/getModerationEvent.d.ts +3 -0
- package/dist/api/com/atproto/admin/getRecord.d.ts +3 -0
- package/dist/api/com/atproto/admin/getRepo.d.ts +3 -0
- package/dist/api/com/atproto/admin/queryModerationEvents.d.ts +3 -0
- package/dist/api/com/atproto/admin/queryModerationStatuses.d.ts +3 -0
- package/dist/api/com/atproto/admin/searchRepos.d.ts +3 -0
- package/dist/api/com/atproto/admin/util.d.ts +5 -0
- package/dist/api/com/atproto/moderation/createReport.d.ts +3 -0
- package/dist/api/com/atproto/moderation/util.d.ts +4 -0
- package/dist/api/com/atproto/temp/fetchLabels.d.ts +3 -0
- package/dist/api/health.d.ts +3 -0
- package/dist/api/index.d.ts +5 -0
- package/dist/api/label/queryLabels.d.ts +3 -0
- package/dist/api/label/subscribeLabels.d.ts +3 -0
- package/dist/api/moderation/createReport.d.ts +3 -0
- package/dist/api/moderation/util.d.ts +4 -0
- package/dist/api/temp/fetchLabels.d.ts +3 -0
- package/dist/api/util.d.ts +2 -0
- package/dist/api/well-known.d.ts +3 -0
- package/dist/auth-verifier.d.ts +47 -0
- package/dist/auth.d.ts +81 -0
- package/dist/background.d.ts +13 -0
- package/dist/config/config.d.ts +30 -0
- package/dist/config/env.d.ts +19 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/secrets.d.ts +8 -0
- package/dist/config.d.ts +42 -0
- package/dist/context.d.ts +140 -0
- package/dist/daemon/config.d.ts +23 -0
- package/dist/daemon/context.d.ts +25 -0
- package/dist/daemon/event-pusher.d.ts +48 -0
- package/dist/daemon/event-reverser.d.ts +16 -0
- package/dist/daemon/index.d.ts +13 -0
- package/dist/db/index.d.ts +32 -0
- package/dist/db/index.js +33707 -0
- package/dist/db/index.js.map +7 -0
- package/dist/db/migrations/20231219T205730722Z-init.d.ts +3 -0
- package/dist/db/migrations/index.d.ts +1 -0
- package/dist/db/migrations/provider.d.ts +11 -0
- package/dist/db/pagination.d.ts +66 -0
- package/dist/db/schema/blob_push_event.d.ts +17 -0
- package/dist/db/schema/index.d.ts +10 -0
- package/dist/db/schema/label.d.ts +12 -0
- package/dist/db/schema/moderation_event.d.ts +22 -0
- package/dist/db/schema/moderation_subject_status.d.ts +25 -0
- package/dist/db/schema/record_push_event.d.ts +17 -0
- package/dist/db/schema/repo_push_event.d.ts +15 -0
- package/dist/db/types.d.ts +12 -0
- package/dist/error.d.ts +2 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +131818 -0
- package/dist/index.js.map +7 -0
- package/dist/lexicon/index.d.ts +372 -0
- package/dist/lexicon/lexicons.d.ts +7553 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +104 -0
- package/dist/lexicon/types/app/bsky/actor/getPreferences.d.ts +31 -0
- package/dist/lexicon/types/app/bsky/actor/getProfile.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/actor/getProfiles.d.ts +32 -0
- package/dist/lexicon/types/app/bsky/actor/getSuggestions.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/actor/profile.d.ts +15 -0
- package/dist/lexicon/types/app/bsky/actor/putPreferences.d.ts +26 -0
- package/dist/lexicon/types/app/bsky/actor/searchActors.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/actor/searchActorsTypeahead.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/embed/external.d.ts +31 -0
- package/dist/lexicon/types/app/bsky/embed/images.d.ts +37 -0
- package/dist/lexicon/types/app/bsky/embed/record.d.ts +54 -0
- package/dist/lexicon/types/app/bsky/embed/recordWithMedia.d.ts +24 -0
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +151 -0
- package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.d.ts +46 -0
- package/dist/lexicon/types/app/bsky/feed/generator.d.ts +18 -0
- package/dist/lexicon/types/app/bsky/feed/getActorFeeds.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/feed/getActorLikes.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +37 -0
- package/dist/lexicon/types/app/bsky/feed/getFeed.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/feed/getFeedGenerator.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/feed/getFeedGenerators.d.ts +32 -0
- package/dist/lexicon/types/app/bsky/feed/getFeedSkeleton.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/feed/getLikes.d.ts +47 -0
- package/dist/lexicon/types/app/bsky/feed/getListFeed.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/feed/getPostThread.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/feed/getPosts.d.ts +32 -0
- package/dist/lexicon/types/app/bsky/feed/getRepostedBy.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/feed/getSuggestedFeeds.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/feed/getTimeline.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/feed/like.d.ts +9 -0
- package/dist/lexicon/types/app/bsky/feed/post.d.ts +50 -0
- package/dist/lexicon/types/app/bsky/feed/repost.d.ts +9 -0
- package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +37 -0
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +28 -0
- package/dist/lexicon/types/app/bsky/graph/block.d.ts +8 -0
- package/dist/lexicon/types/app/bsky/graph/defs.d.ts +47 -0
- package/dist/lexicon/types/app/bsky/graph/follow.d.ts +8 -0
- package/dist/lexicon/types/app/bsky/graph/getBlocks.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/graph/getFollowers.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/graph/getFollows.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/graph/getList.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/graph/getListBlocks.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/graph/getListMutes.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/graph/getLists.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/graph/getMutes.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +32 -0
- package/dist/lexicon/types/app/bsky/graph/list.d.ts +19 -0
- package/dist/lexicon/types/app/bsky/graph/listblock.d.ts +8 -0
- package/dist/lexicon/types/app/bsky/graph/listitem.d.ts +9 -0
- package/dist/lexicon/types/app/bsky/graph/muteActor.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/graph/muteActorList.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteActor.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteActorList.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/moderation/defs.d.ts +49 -0
- package/dist/lexicon/types/app/bsky/moderation/getService.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/moderation/getServices.d.ts +32 -0
- package/dist/lexicon/types/app/bsky/moderation/service.d.ts +17 -0
- package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts +31 -0
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +52 -0
- package/dist/lexicon/types/app/bsky/notification/registerPush.d.ts +28 -0
- package/dist/lexicon/types/app/bsky/notification/updateSeen.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/richtext/facet.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +13 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPopular.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +37 -0
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts +319 -0
- package/dist/lexicon/types/com/atproto/admin/deleteAccount.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/admin/disableAccountInvites.d.ts +26 -0
- package/dist/lexicon/types/com/atproto/admin/disableInviteCodes.d.ts +26 -0
- package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +45 -0
- package/dist/lexicon/types/com/atproto/admin/enableAccountInvites.d.ts +26 -0
- package/dist/lexicon/types/com/atproto/admin/getAccountInfo.d.ts +29 -0
- package/dist/lexicon/types/com/atproto/admin/getAccountInfos.d.ts +32 -0
- package/dist/lexicon/types/com/atproto/admin/getInviteCodes.d.ts +35 -0
- package/dist/lexicon/types/com/atproto/admin/getModerationEvent.d.ts +29 -0
- package/dist/lexicon/types/com/atproto/admin/getRecord.d.ts +31 -0
- package/dist/lexicon/types/com/atproto/admin/getRepo.d.ts +30 -0
- package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +39 -0
- package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +39 -0
- package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +48 -0
- package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/admin/sendEmail.d.ts +40 -0
- package/dist/lexicon/types/com/atproto/admin/updateAccountEmail.d.ts +26 -0
- package/dist/lexicon/types/com/atproto/admin/updateAccountHandle.d.ts +26 -0
- package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +46 -0
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +31 -0
- package/dist/lexicon/types/com/atproto/identity/updateHandle.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/label/defs.d.ts +24 -0
- package/dist/lexicon/types/com/atproto/label/queryLabels.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/label/subscribeLabels.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/moderation/createReport.d.ts +52 -0
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts +8 -0
- package/dist/lexicon/types/com/atproto/repo/applyWrites.d.ts +53 -0
- package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts +43 -0
- package/dist/lexicon/types/com/atproto/repo/deleteRecord.d.ts +30 -0
- package/dist/lexicon/types/com/atproto/repo/describeRepo.d.ts +35 -0
- package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +47 -0
- package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts +44 -0
- package/dist/lexicon/types/com/atproto/repo/strongRef.d.ts +8 -0
- package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/server/confirmEmail.d.ts +27 -0
- package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +49 -0
- package/dist/lexicon/types/com/atproto/server/createAppPassword.d.ts +43 -0
- package/dist/lexicon/types/com/atproto/server/createInviteCode.d.ts +37 -0
- package/dist/lexicon/types/com/atproto/server/createInviteCodes.d.ts +46 -0
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts +44 -0
- package/dist/lexicon/types/com/atproto/server/defs.d.ts +20 -0
- package/dist/lexicon/types/com/atproto/server/deleteAccount.d.ts +28 -0
- package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +41 -0
- package/dist/lexicon/types/com/atproto/server/getAccountInviteCodes.d.ts +34 -0
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +34 -0
- package/dist/lexicon/types/com/atproto/server/listAppPasswords.d.ts +39 -0
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +35 -0
- package/dist/lexicon/types/com/atproto/server/requestAccountDelete.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/server/requestEmailConfirmation.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +30 -0
- package/dist/lexicon/types/com/atproto/server/requestPasswordReset.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/server/resetPassword.d.ts +27 -0
- package/dist/lexicon/types/com/atproto/server/revokeAppPassword.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/server/updateEmail.d.ts +27 -0
- package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts +30 -0
- package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts +30 -0
- package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts +29 -0
- package/dist/lexicon/types/com/atproto/sync/getHead.d.ts +32 -0
- package/dist/lexicon/types/com/atproto/sync/getLatestCommit.d.ts +33 -0
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +32 -0
- package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts +30 -0
- package/dist/lexicon/types/com/atproto/sync/listBlobs.d.ts +35 -0
- package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +42 -0
- package/dist/lexicon/types/com/atproto/sync/notifyOfUpdate.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/sync/requestCrawl.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +80 -0
- package/dist/lexicon/types/com/atproto/temp/fetchLabels.d.ts +33 -0
- package/dist/lexicon/types/com/atproto/temp/importRepo.d.ts +32 -0
- package/dist/lexicon/types/com/atproto/temp/pushBlob.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/temp/requestPhoneVerification.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/temp/transferAccount.d.ts +42 -0
- package/dist/lexicon/util.d.ts +2 -0
- package/dist/logger.d.ts +4 -0
- package/dist/mod-service/index.d.ts +155 -0
- package/dist/mod-service/status.d.ts +12 -0
- package/dist/mod-service/subject.d.ts +59 -0
- package/dist/mod-service/types.d.ts +19 -0
- package/dist/mod-service/views.d.ts +49 -0
- package/dist/sequencer/index.d.ts +2 -0
- package/dist/sequencer/outbox.d.ts +16 -0
- package/dist/sequencer/sequencer.d.ts +35 -0
- package/dist/services/index.d.ts +7 -0
- package/dist/services/moderation/index.d.ts +144 -0
- package/dist/services/moderation/status.d.ts +12 -0
- package/dist/services/moderation/subject.d.ts +60 -0
- package/dist/services/moderation/types.d.ts +19 -0
- package/dist/services/moderation/views.d.ts +42 -0
- package/dist/services/types.d.ts +2 -0
- package/dist/util/date.d.ts +1 -0
- package/dist/util/debug.d.ts +1 -0
- package/dist/util/retry.d.ts +3 -0
- package/dist/util.d.ts +3 -0
- package/jest.config.js +6 -0
- package/package.json +67 -0
- package/src/api/admin/emitModerationEvent.ts +130 -0
- package/src/api/admin/getModerationEvent.ts +19 -0
- package/src/api/admin/getRecord.ts +34 -0
- package/src/api/admin/getRepo.ts +31 -0
- package/src/api/admin/queryModerationEvents.ts +40 -0
- package/src/api/admin/queryModerationStatuses.ts +57 -0
- package/src/api/admin/searchRepos.ts +42 -0
- package/src/api/admin/util.ts +54 -0
- package/src/api/health.ts +20 -0
- package/src/api/index.ts +28 -0
- package/src/api/moderation/createReport.ts +41 -0
- package/src/api/moderation/util.ts +65 -0
- package/src/api/temp/fetchLabels.ts +29 -0
- package/src/api/well-known.ts +35 -0
- package/src/auth.ts +147 -0
- package/src/background.ts +35 -0
- package/src/config/config.ts +84 -0
- package/src/config/env.ts +41 -0
- package/src/config/index.ts +3 -0
- package/src/config/secrets.ts +23 -0
- package/src/context.ts +180 -0
- package/src/daemon/context.ts +90 -0
- package/src/daemon/event-pusher.ts +296 -0
- package/src/daemon/event-reverser.ts +74 -0
- package/src/daemon/index.ts +33 -0
- package/src/db/index.ts +197 -0
- package/src/db/migrations/20231219T205730722Z-init.ts +164 -0
- package/src/db/migrations/index.ts +5 -0
- package/src/db/migrations/provider.ts +25 -0
- package/src/db/pagination.ts +216 -0
- package/src/db/schema/blob_push_event.ts +21 -0
- package/src/db/schema/index.ts +18 -0
- package/src/db/schema/label.ts +12 -0
- package/src/db/schema/moderation_event.ts +35 -0
- package/src/db/schema/moderation_subject_status.ts +32 -0
- package/src/db/schema/record_push_event.ts +21 -0
- package/src/db/schema/repo_push_event.ts +19 -0
- package/src/db/types.ts +15 -0
- package/src/error.ts +12 -0
- package/src/index.ts +102 -0
- package/src/lexicon/index.ts +1626 -0
- package/src/lexicon/lexicons.ts +8050 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +235 -0
- package/src/lexicon/types/app/bsky/actor/getPreferences.ts +44 -0
- package/src/lexicon/types/app/bsky/actor/getProfile.ts +41 -0
- package/src/lexicon/types/app/bsky/actor/getProfiles.ts +46 -0
- package/src/lexicon/types/app/bsky/actor/getSuggestions.ts +48 -0
- package/src/lexicon/types/app/bsky/actor/profile.ts +32 -0
- package/src/lexicon/types/app/bsky/actor/putPreferences.ts +39 -0
- package/src/lexicon/types/app/bsky/actor/searchActors.ts +52 -0
- package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +50 -0
- package/src/lexicon/types/app/bsky/embed/external.ts +82 -0
- package/src/lexicon/types/app/bsky/embed/images.ts +96 -0
- package/src/lexicon/types/app/bsky/embed/record.ts +120 -0
- package/src/lexicon/types/app/bsky/embed/recordWithMedia.ts +53 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +308 -0
- package/src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts +80 -0
- package/src/lexicon/types/app/bsky/feed/generator.ts +35 -0
- package/src/lexicon/types/app/bsky/feed/getActorFeeds.ts +49 -0
- package/src/lexicon/types/app/bsky/feed/getActorLikes.ts +50 -0
- package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +56 -0
- package/src/lexicon/types/app/bsky/feed/getFeed.ts +50 -0
- package/src/lexicon/types/app/bsky/feed/getFeedGenerator.ts +48 -0
- package/src/lexicon/types/app/bsky/feed/getFeedGenerators.ts +46 -0
- package/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts +50 -0
- package/src/lexicon/types/app/bsky/feed/getLikes.ts +69 -0
- package/src/lexicon/types/app/bsky/feed/getListFeed.ts +50 -0
- package/src/lexicon/types/app/bsky/feed/getPostThread.ts +53 -0
- package/src/lexicon/types/app/bsky/feed/getPosts.ts +46 -0
- package/src/lexicon/types/app/bsky/feed/getRepostedBy.ts +52 -0
- package/src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts +48 -0
- package/src/lexicon/types/app/bsky/feed/getTimeline.ts +49 -0
- package/src/lexicon/types/app/bsky/feed/like.ts +26 -0
- package/src/lexicon/types/app/bsky/feed/post.ts +102 -0
- package/src/lexicon/types/app/bsky/feed/repost.ts +27 -0
- package/src/lexicon/types/app/bsky/feed/searchPosts.ts +54 -0
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +84 -0
- package/src/lexicon/types/app/bsky/graph/block.ts +26 -0
- package/src/lexicon/types/app/bsky/graph/defs.ts +104 -0
- package/src/lexicon/types/app/bsky/graph/follow.ts +26 -0
- package/src/lexicon/types/app/bsky/graph/getBlocks.ts +48 -0
- package/src/lexicon/types/app/bsky/graph/getFollowers.ts +50 -0
- package/src/lexicon/types/app/bsky/graph/getFollows.ts +50 -0
- package/src/lexicon/types/app/bsky/graph/getList.ts +50 -0
- package/src/lexicon/types/app/bsky/graph/getListBlocks.ts +48 -0
- package/src/lexicon/types/app/bsky/graph/getListMutes.ts +48 -0
- package/src/lexicon/types/app/bsky/graph/getLists.ts +49 -0
- package/src/lexicon/types/app/bsky/graph/getMutes.ts +48 -0
- package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +46 -0
- package/src/lexicon/types/app/bsky/graph/list.ts +36 -0
- package/src/lexicon/types/app/bsky/graph/listblock.ts +26 -0
- package/src/lexicon/types/app/bsky/graph/listitem.ts +27 -0
- package/src/lexicon/types/app/bsky/graph/muteActor.ts +38 -0
- package/src/lexicon/types/app/bsky/graph/muteActorList.ts +38 -0
- package/src/lexicon/types/app/bsky/graph/unmuteActor.ts +38 -0
- package/src/lexicon/types/app/bsky/graph/unmuteActorList.ts +38 -0
- package/src/lexicon/types/app/bsky/notification/getUnreadCount.ts +45 -0
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +87 -0
- package/src/lexicon/types/app/bsky/notification/registerPush.ts +41 -0
- package/src/lexicon/types/app/bsky/notification/updateSeen.ts +38 -0
- package/src/lexicon/types/app/bsky/richtext/facet.ts +97 -0
- package/src/lexicon/types/app/bsky/unspecced/defs.ts +41 -0
- package/src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts +49 -0
- package/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts +49 -0
- package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +56 -0
- package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +54 -0
- package/src/lexicon/types/com/atproto/admin/defs.ts +719 -0
- package/src/lexicon/types/com/atproto/admin/deleteAccount.ts +38 -0
- package/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts +40 -0
- package/src/lexicon/types/com/atproto/admin/disableInviteCodes.ts +39 -0
- package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +66 -0
- package/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts +40 -0
- package/src/lexicon/types/com/atproto/admin/getAccountInfo.ts +41 -0
- package/src/lexicon/types/com/atproto/admin/getAccountInfos.ts +46 -0
- package/src/lexicon/types/com/atproto/admin/getInviteCodes.ts +49 -0
- package/src/lexicon/types/com/atproto/admin/getModerationEvent.ts +41 -0
- package/src/lexicon/types/com/atproto/admin/getRecord.ts +43 -0
- package/src/lexicon/types/com/atproto/admin/getRepo.ts +42 -0
- package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +54 -0
- package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +56 -0
- package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +72 -0
- package/src/lexicon/types/com/atproto/admin/searchRepos.ts +51 -0
- package/src/lexicon/types/com/atproto/admin/sendEmail.ts +54 -0
- package/src/lexicon/types/com/atproto/admin/updateAccountEmail.ts +40 -0
- package/src/lexicon/types/com/atproto/admin/updateAccountHandle.ts +39 -0
- package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +61 -0
- package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +46 -0
- package/src/lexicon/types/com/atproto/identity/updateHandle.ts +38 -0
- package/src/lexicon/types/com/atproto/label/defs.ts +73 -0
- package/src/lexicon/types/com/atproto/label/queryLabels.ts +52 -0
- package/src/lexicon/types/com/atproto/label/subscribeLabels.ts +67 -0
- package/src/lexicon/types/com/atproto/moderation/createReport.ts +65 -0
- package/src/lexicon/types/com/atproto/moderation/defs.ts +32 -0
- package/src/lexicon/types/com/atproto/repo/applyWrites.ts +103 -0
- package/src/lexicon/types/com/atproto/repo/createRecord.ts +62 -0
- package/src/lexicon/types/com/atproto/repo/deleteRecord.ts +48 -0
- package/src/lexicon/types/com/atproto/repo/describeRepo.ts +50 -0
- package/src/lexicon/types/com/atproto/repo/getRecord.ts +54 -0
- package/src/lexicon/types/com/atproto/repo/listRecords.ts +77 -0
- package/src/lexicon/types/com/atproto/repo/putRecord.ts +64 -0
- package/src/lexicon/types/com/atproto/repo/strongRef.ts +26 -0
- package/src/lexicon/types/com/atproto/repo/uploadBlob.ts +47 -0
- package/src/lexicon/types/com/atproto/server/confirmEmail.ts +40 -0
- package/src/lexicon/types/com/atproto/server/createAccount.ts +69 -0
- package/src/lexicon/types/com/atproto/server/createAppPassword.ts +69 -0
- package/src/lexicon/types/com/atproto/server/createInviteCode.ts +50 -0
- package/src/lexicon/types/com/atproto/server/createInviteCodes.ts +72 -0
- package/src/lexicon/types/com/atproto/server/createSession.ts +58 -0
- package/src/lexicon/types/com/atproto/server/defs.ts +48 -0
- package/src/lexicon/types/com/atproto/server/deleteAccount.ts +41 -0
- package/src/lexicon/types/com/atproto/server/deleteSession.ts +31 -0
- package/src/lexicon/types/com/atproto/server/describeServer.ts +64 -0
- package/src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts +48 -0
- package/src/lexicon/types/com/atproto/server/getSession.ts +47 -0
- package/src/lexicon/types/com/atproto/server/listAppPasswords.ts +62 -0
- package/src/lexicon/types/com/atproto/server/refreshSession.ts +48 -0
- package/src/lexicon/types/com/atproto/server/requestAccountDelete.ts +31 -0
- package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +31 -0
- package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +43 -0
- package/src/lexicon/types/com/atproto/server/requestPasswordReset.ts +38 -0
- package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +51 -0
- package/src/lexicon/types/com/atproto/server/resetPassword.ts +40 -0
- package/src/lexicon/types/com/atproto/server/revokeAppPassword.ts +38 -0
- package/src/lexicon/types/com/atproto/server/updateEmail.ts +41 -0
- package/src/lexicon/types/com/atproto/sync/getBlob.ts +43 -0
- package/src/lexicon/types/com/atproto/sync/getBlocks.ts +42 -0
- package/src/lexicon/types/com/atproto/sync/getCheckout.ts +41 -0
- package/src/lexicon/types/com/atproto/sync/getHead.ts +47 -0
- package/src/lexicon/types/com/atproto/sync/getLatestCommit.ts +48 -0
- package/src/lexicon/types/com/atproto/sync/getRecord.ts +45 -0
- package/src/lexicon/types/com/atproto/sync/getRepo.ts +43 -0
- package/src/lexicon/types/com/atproto/sync/listBlobs.ts +51 -0
- package/src/lexicon/types/com/atproto/sync/listRepos.ts +66 -0
- package/src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts +39 -0
- package/src/lexicon/types/com/atproto/sync/requestCrawl.ts +39 -0
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +161 -0
- package/src/lexicon/types/com/atproto/temp/fetchLabels.ts +47 -0
- package/src/lexicon/types/com/atproto/temp/importRepo.ts +45 -0
- package/src/lexicon/types/com/atproto/temp/pushBlob.ts +39 -0
- package/src/lexicon/types/com/atproto/temp/requestPhoneVerification.ts +38 -0
- package/src/lexicon/types/com/atproto/temp/transferAccount.ts +62 -0
- package/src/lexicon/util.ts +13 -0
- package/src/logger.ts +19 -0
- package/src/mod-service/index.ts +758 -0
- package/src/mod-service/status.ts +264 -0
- package/src/mod-service/subject.ts +136 -0
- package/src/mod-service/types.ts +32 -0
- package/src/mod-service/views.ts +531 -0
- package/src/util.ts +26 -0
- package/test.env +2 -0
- package/test.log +0 -0
- package/tests/__snapshots__/get-record.test.ts.snap +173 -0
- package/tests/__snapshots__/get-repo.test.ts.snap +57 -0
- package/tests/__snapshots__/moderation-events.test.ts.snap +168 -0
- package/tests/__snapshots__/moderation-statuses.test.ts.snap +64 -0
- package/tests/__snapshots__/moderation.test.ts.snap +55 -0
- package/tests/_util.ts +192 -0
- package/tests/db.test.ts +184 -0
- package/tests/get-record.test.ts +110 -0
- package/tests/get-repo.test.ts +131 -0
- package/tests/moderation-appeals.test.ts +269 -0
- package/tests/moderation-events.test.ts +220 -0
- package/tests/moderation-statuses.test.ts +144 -0
- package/tests/moderation.test.ts +961 -0
- package/tests/repo-search.test.ts +123 -0
- package/tests/server.test.ts +76 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,1626 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import {
|
|
5
|
+
createServer as createXrpcServer,
|
|
6
|
+
Server as XrpcServer,
|
|
7
|
+
Options as XrpcOptions,
|
|
8
|
+
AuthVerifier,
|
|
9
|
+
StreamAuthVerifier,
|
|
10
|
+
} from '@atproto/xrpc-server'
|
|
11
|
+
import { schemas } from './lexicons'
|
|
12
|
+
import * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount'
|
|
13
|
+
import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
|
|
14
|
+
import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
|
|
15
|
+
import * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
|
|
16
|
+
import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
|
|
17
|
+
import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo'
|
|
18
|
+
import * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
|
|
19
|
+
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
20
|
+
import * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/getModerationEvent'
|
|
21
|
+
import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
|
|
22
|
+
import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
|
|
23
|
+
import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
|
|
24
|
+
import * as ComAtprotoAdminQueryModerationEvents from './types/com/atproto/admin/queryModerationEvents'
|
|
25
|
+
import * as ComAtprotoAdminQueryModerationStatuses from './types/com/atproto/admin/queryModerationStatuses'
|
|
26
|
+
import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
|
|
27
|
+
import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
|
|
28
|
+
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
|
|
29
|
+
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
30
|
+
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
|
|
31
|
+
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
|
|
32
|
+
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
|
|
33
|
+
import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels'
|
|
34
|
+
import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels'
|
|
35
|
+
import * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport'
|
|
36
|
+
import * as ComAtprotoRepoApplyWrites from './types/com/atproto/repo/applyWrites'
|
|
37
|
+
import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'
|
|
38
|
+
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
|
|
39
|
+
import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo'
|
|
40
|
+
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
41
|
+
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
42
|
+
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
43
|
+
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
44
|
+
import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail'
|
|
45
|
+
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
46
|
+
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
|
|
47
|
+
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
|
|
48
|
+
import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
|
|
49
|
+
import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
|
|
50
|
+
import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount'
|
|
51
|
+
import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession'
|
|
52
|
+
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
|
|
53
|
+
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
|
|
54
|
+
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
|
|
55
|
+
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
|
|
56
|
+
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
|
|
57
|
+
import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
|
|
58
|
+
import * as ComAtprotoServerRequestEmailConfirmation from './types/com/atproto/server/requestEmailConfirmation'
|
|
59
|
+
import * as ComAtprotoServerRequestEmailUpdate from './types/com/atproto/server/requestEmailUpdate'
|
|
60
|
+
import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
|
|
61
|
+
import * as ComAtprotoServerReserveSigningKey from './types/com/atproto/server/reserveSigningKey'
|
|
62
|
+
import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
|
|
63
|
+
import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword'
|
|
64
|
+
import * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail'
|
|
65
|
+
import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
|
|
66
|
+
import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
|
|
67
|
+
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
68
|
+
import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
|
|
69
|
+
import * as ComAtprotoSyncGetLatestCommit from './types/com/atproto/sync/getLatestCommit'
|
|
70
|
+
import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
|
|
71
|
+
import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
|
|
72
|
+
import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs'
|
|
73
|
+
import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
|
|
74
|
+
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
|
|
75
|
+
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
|
|
76
|
+
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
|
|
77
|
+
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
|
|
78
|
+
import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
|
|
79
|
+
import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
|
|
80
|
+
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
81
|
+
import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
|
|
82
|
+
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
|
|
83
|
+
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
84
|
+
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
85
|
+
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
|
|
86
|
+
import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences'
|
|
87
|
+
import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors'
|
|
88
|
+
import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead'
|
|
89
|
+
import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator'
|
|
90
|
+
import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds'
|
|
91
|
+
import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes'
|
|
92
|
+
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'
|
|
93
|
+
import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed'
|
|
94
|
+
import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator'
|
|
95
|
+
import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators'
|
|
96
|
+
import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton'
|
|
97
|
+
import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes'
|
|
98
|
+
import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed'
|
|
99
|
+
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
|
|
100
|
+
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts'
|
|
101
|
+
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
|
|
102
|
+
import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds'
|
|
103
|
+
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
|
|
104
|
+
import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts'
|
|
105
|
+
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
106
|
+
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
107
|
+
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
108
|
+
import * as AppBskyGraphGetList from './types/app/bsky/graph/getList'
|
|
109
|
+
import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks'
|
|
110
|
+
import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
|
111
|
+
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists'
|
|
112
|
+
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
113
|
+
import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor'
|
|
114
|
+
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
115
|
+
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
116
|
+
import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
117
|
+
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
118
|
+
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount'
|
|
119
|
+
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
|
|
120
|
+
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush'
|
|
121
|
+
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
122
|
+
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
|
|
123
|
+
import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
|
|
124
|
+
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
|
|
125
|
+
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
|
|
126
|
+
|
|
127
|
+
export const COM_ATPROTO_ADMIN = {
|
|
128
|
+
DefsReviewOpen: 'com.atproto.admin.defs#reviewOpen',
|
|
129
|
+
DefsReviewEscalated: 'com.atproto.admin.defs#reviewEscalated',
|
|
130
|
+
DefsReviewClosed: 'com.atproto.admin.defs#reviewClosed',
|
|
131
|
+
}
|
|
132
|
+
export const COM_ATPROTO_MODERATION = {
|
|
133
|
+
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
134
|
+
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
|
|
135
|
+
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
|
|
136
|
+
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
|
|
137
|
+
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
138
|
+
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
139
|
+
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
140
|
+
}
|
|
141
|
+
export const APP_BSKY_GRAPH = {
|
|
142
|
+
DefsModlist: 'app.bsky.graph.defs#modlist',
|
|
143
|
+
DefsCuratelist: 'app.bsky.graph.defs#curatelist',
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function createServer(options?: XrpcOptions): Server {
|
|
147
|
+
return new Server(options)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export class Server {
|
|
151
|
+
xrpc: XrpcServer
|
|
152
|
+
com: ComNS
|
|
153
|
+
app: AppNS
|
|
154
|
+
|
|
155
|
+
constructor(options?: XrpcOptions) {
|
|
156
|
+
this.xrpc = createXrpcServer(schemas, options)
|
|
157
|
+
this.com = new ComNS(this)
|
|
158
|
+
this.app = new AppNS(this)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export class ComNS {
|
|
163
|
+
_server: Server
|
|
164
|
+
atproto: ComAtprotoNS
|
|
165
|
+
|
|
166
|
+
constructor(server: Server) {
|
|
167
|
+
this._server = server
|
|
168
|
+
this.atproto = new ComAtprotoNS(server)
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export class ComAtprotoNS {
|
|
173
|
+
_server: Server
|
|
174
|
+
admin: ComAtprotoAdminNS
|
|
175
|
+
identity: ComAtprotoIdentityNS
|
|
176
|
+
label: ComAtprotoLabelNS
|
|
177
|
+
moderation: ComAtprotoModerationNS
|
|
178
|
+
repo: ComAtprotoRepoNS
|
|
179
|
+
server: ComAtprotoServerNS
|
|
180
|
+
sync: ComAtprotoSyncNS
|
|
181
|
+
temp: ComAtprotoTempNS
|
|
182
|
+
|
|
183
|
+
constructor(server: Server) {
|
|
184
|
+
this._server = server
|
|
185
|
+
this.admin = new ComAtprotoAdminNS(server)
|
|
186
|
+
this.identity = new ComAtprotoIdentityNS(server)
|
|
187
|
+
this.label = new ComAtprotoLabelNS(server)
|
|
188
|
+
this.moderation = new ComAtprotoModerationNS(server)
|
|
189
|
+
this.repo = new ComAtprotoRepoNS(server)
|
|
190
|
+
this.server = new ComAtprotoServerNS(server)
|
|
191
|
+
this.sync = new ComAtprotoSyncNS(server)
|
|
192
|
+
this.temp = new ComAtprotoTempNS(server)
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export class ComAtprotoAdminNS {
|
|
197
|
+
_server: Server
|
|
198
|
+
|
|
199
|
+
constructor(server: Server) {
|
|
200
|
+
this._server = server
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
deleteAccount<AV extends AuthVerifier>(
|
|
204
|
+
cfg: ConfigOf<
|
|
205
|
+
AV,
|
|
206
|
+
ComAtprotoAdminDeleteAccount.Handler<ExtractAuth<AV>>,
|
|
207
|
+
ComAtprotoAdminDeleteAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
208
|
+
>,
|
|
209
|
+
) {
|
|
210
|
+
const nsid = 'com.atproto.admin.deleteAccount' // @ts-ignore
|
|
211
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
disableAccountInvites<AV extends AuthVerifier>(
|
|
215
|
+
cfg: ConfigOf<
|
|
216
|
+
AV,
|
|
217
|
+
ComAtprotoAdminDisableAccountInvites.Handler<ExtractAuth<AV>>,
|
|
218
|
+
ComAtprotoAdminDisableAccountInvites.HandlerReqCtx<ExtractAuth<AV>>
|
|
219
|
+
>,
|
|
220
|
+
) {
|
|
221
|
+
const nsid = 'com.atproto.admin.disableAccountInvites' // @ts-ignore
|
|
222
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
disableInviteCodes<AV extends AuthVerifier>(
|
|
226
|
+
cfg: ConfigOf<
|
|
227
|
+
AV,
|
|
228
|
+
ComAtprotoAdminDisableInviteCodes.Handler<ExtractAuth<AV>>,
|
|
229
|
+
ComAtprotoAdminDisableInviteCodes.HandlerReqCtx<ExtractAuth<AV>>
|
|
230
|
+
>,
|
|
231
|
+
) {
|
|
232
|
+
const nsid = 'com.atproto.admin.disableInviteCodes' // @ts-ignore
|
|
233
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
emitModerationEvent<AV extends AuthVerifier>(
|
|
237
|
+
cfg: ConfigOf<
|
|
238
|
+
AV,
|
|
239
|
+
ComAtprotoAdminEmitModerationEvent.Handler<ExtractAuth<AV>>,
|
|
240
|
+
ComAtprotoAdminEmitModerationEvent.HandlerReqCtx<ExtractAuth<AV>>
|
|
241
|
+
>,
|
|
242
|
+
) {
|
|
243
|
+
const nsid = 'com.atproto.admin.emitModerationEvent' // @ts-ignore
|
|
244
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
enableAccountInvites<AV extends AuthVerifier>(
|
|
248
|
+
cfg: ConfigOf<
|
|
249
|
+
AV,
|
|
250
|
+
ComAtprotoAdminEnableAccountInvites.Handler<ExtractAuth<AV>>,
|
|
251
|
+
ComAtprotoAdminEnableAccountInvites.HandlerReqCtx<ExtractAuth<AV>>
|
|
252
|
+
>,
|
|
253
|
+
) {
|
|
254
|
+
const nsid = 'com.atproto.admin.enableAccountInvites' // @ts-ignore
|
|
255
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
getAccountInfo<AV extends AuthVerifier>(
|
|
259
|
+
cfg: ConfigOf<
|
|
260
|
+
AV,
|
|
261
|
+
ComAtprotoAdminGetAccountInfo.Handler<ExtractAuth<AV>>,
|
|
262
|
+
ComAtprotoAdminGetAccountInfo.HandlerReqCtx<ExtractAuth<AV>>
|
|
263
|
+
>,
|
|
264
|
+
) {
|
|
265
|
+
const nsid = 'com.atproto.admin.getAccountInfo' // @ts-ignore
|
|
266
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
getAccountInfos<AV extends AuthVerifier>(
|
|
270
|
+
cfg: ConfigOf<
|
|
271
|
+
AV,
|
|
272
|
+
ComAtprotoAdminGetAccountInfos.Handler<ExtractAuth<AV>>,
|
|
273
|
+
ComAtprotoAdminGetAccountInfos.HandlerReqCtx<ExtractAuth<AV>>
|
|
274
|
+
>,
|
|
275
|
+
) {
|
|
276
|
+
const nsid = 'com.atproto.admin.getAccountInfos' // @ts-ignore
|
|
277
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
getInviteCodes<AV extends AuthVerifier>(
|
|
281
|
+
cfg: ConfigOf<
|
|
282
|
+
AV,
|
|
283
|
+
ComAtprotoAdminGetInviteCodes.Handler<ExtractAuth<AV>>,
|
|
284
|
+
ComAtprotoAdminGetInviteCodes.HandlerReqCtx<ExtractAuth<AV>>
|
|
285
|
+
>,
|
|
286
|
+
) {
|
|
287
|
+
const nsid = 'com.atproto.admin.getInviteCodes' // @ts-ignore
|
|
288
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
getModerationEvent<AV extends AuthVerifier>(
|
|
292
|
+
cfg: ConfigOf<
|
|
293
|
+
AV,
|
|
294
|
+
ComAtprotoAdminGetModerationEvent.Handler<ExtractAuth<AV>>,
|
|
295
|
+
ComAtprotoAdminGetModerationEvent.HandlerReqCtx<ExtractAuth<AV>>
|
|
296
|
+
>,
|
|
297
|
+
) {
|
|
298
|
+
const nsid = 'com.atproto.admin.getModerationEvent' // @ts-ignore
|
|
299
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
getRecord<AV extends AuthVerifier>(
|
|
303
|
+
cfg: ConfigOf<
|
|
304
|
+
AV,
|
|
305
|
+
ComAtprotoAdminGetRecord.Handler<ExtractAuth<AV>>,
|
|
306
|
+
ComAtprotoAdminGetRecord.HandlerReqCtx<ExtractAuth<AV>>
|
|
307
|
+
>,
|
|
308
|
+
) {
|
|
309
|
+
const nsid = 'com.atproto.admin.getRecord' // @ts-ignore
|
|
310
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
getRepo<AV extends AuthVerifier>(
|
|
314
|
+
cfg: ConfigOf<
|
|
315
|
+
AV,
|
|
316
|
+
ComAtprotoAdminGetRepo.Handler<ExtractAuth<AV>>,
|
|
317
|
+
ComAtprotoAdminGetRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
318
|
+
>,
|
|
319
|
+
) {
|
|
320
|
+
const nsid = 'com.atproto.admin.getRepo' // @ts-ignore
|
|
321
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
getSubjectStatus<AV extends AuthVerifier>(
|
|
325
|
+
cfg: ConfigOf<
|
|
326
|
+
AV,
|
|
327
|
+
ComAtprotoAdminGetSubjectStatus.Handler<ExtractAuth<AV>>,
|
|
328
|
+
ComAtprotoAdminGetSubjectStatus.HandlerReqCtx<ExtractAuth<AV>>
|
|
329
|
+
>,
|
|
330
|
+
) {
|
|
331
|
+
const nsid = 'com.atproto.admin.getSubjectStatus' // @ts-ignore
|
|
332
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
queryModerationEvents<AV extends AuthVerifier>(
|
|
336
|
+
cfg: ConfigOf<
|
|
337
|
+
AV,
|
|
338
|
+
ComAtprotoAdminQueryModerationEvents.Handler<ExtractAuth<AV>>,
|
|
339
|
+
ComAtprotoAdminQueryModerationEvents.HandlerReqCtx<ExtractAuth<AV>>
|
|
340
|
+
>,
|
|
341
|
+
) {
|
|
342
|
+
const nsid = 'com.atproto.admin.queryModerationEvents' // @ts-ignore
|
|
343
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
queryModerationStatuses<AV extends AuthVerifier>(
|
|
347
|
+
cfg: ConfigOf<
|
|
348
|
+
AV,
|
|
349
|
+
ComAtprotoAdminQueryModerationStatuses.Handler<ExtractAuth<AV>>,
|
|
350
|
+
ComAtprotoAdminQueryModerationStatuses.HandlerReqCtx<ExtractAuth<AV>>
|
|
351
|
+
>,
|
|
352
|
+
) {
|
|
353
|
+
const nsid = 'com.atproto.admin.queryModerationStatuses' // @ts-ignore
|
|
354
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
searchRepos<AV extends AuthVerifier>(
|
|
358
|
+
cfg: ConfigOf<
|
|
359
|
+
AV,
|
|
360
|
+
ComAtprotoAdminSearchRepos.Handler<ExtractAuth<AV>>,
|
|
361
|
+
ComAtprotoAdminSearchRepos.HandlerReqCtx<ExtractAuth<AV>>
|
|
362
|
+
>,
|
|
363
|
+
) {
|
|
364
|
+
const nsid = 'com.atproto.admin.searchRepos' // @ts-ignore
|
|
365
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
sendEmail<AV extends AuthVerifier>(
|
|
369
|
+
cfg: ConfigOf<
|
|
370
|
+
AV,
|
|
371
|
+
ComAtprotoAdminSendEmail.Handler<ExtractAuth<AV>>,
|
|
372
|
+
ComAtprotoAdminSendEmail.HandlerReqCtx<ExtractAuth<AV>>
|
|
373
|
+
>,
|
|
374
|
+
) {
|
|
375
|
+
const nsid = 'com.atproto.admin.sendEmail' // @ts-ignore
|
|
376
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
updateAccountEmail<AV extends AuthVerifier>(
|
|
380
|
+
cfg: ConfigOf<
|
|
381
|
+
AV,
|
|
382
|
+
ComAtprotoAdminUpdateAccountEmail.Handler<ExtractAuth<AV>>,
|
|
383
|
+
ComAtprotoAdminUpdateAccountEmail.HandlerReqCtx<ExtractAuth<AV>>
|
|
384
|
+
>,
|
|
385
|
+
) {
|
|
386
|
+
const nsid = 'com.atproto.admin.updateAccountEmail' // @ts-ignore
|
|
387
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
updateAccountHandle<AV extends AuthVerifier>(
|
|
391
|
+
cfg: ConfigOf<
|
|
392
|
+
AV,
|
|
393
|
+
ComAtprotoAdminUpdateAccountHandle.Handler<ExtractAuth<AV>>,
|
|
394
|
+
ComAtprotoAdminUpdateAccountHandle.HandlerReqCtx<ExtractAuth<AV>>
|
|
395
|
+
>,
|
|
396
|
+
) {
|
|
397
|
+
const nsid = 'com.atproto.admin.updateAccountHandle' // @ts-ignore
|
|
398
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
updateSubjectStatus<AV extends AuthVerifier>(
|
|
402
|
+
cfg: ConfigOf<
|
|
403
|
+
AV,
|
|
404
|
+
ComAtprotoAdminUpdateSubjectStatus.Handler<ExtractAuth<AV>>,
|
|
405
|
+
ComAtprotoAdminUpdateSubjectStatus.HandlerReqCtx<ExtractAuth<AV>>
|
|
406
|
+
>,
|
|
407
|
+
) {
|
|
408
|
+
const nsid = 'com.atproto.admin.updateSubjectStatus' // @ts-ignore
|
|
409
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export class ComAtprotoIdentityNS {
|
|
414
|
+
_server: Server
|
|
415
|
+
|
|
416
|
+
constructor(server: Server) {
|
|
417
|
+
this._server = server
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
resolveHandle<AV extends AuthVerifier>(
|
|
421
|
+
cfg: ConfigOf<
|
|
422
|
+
AV,
|
|
423
|
+
ComAtprotoIdentityResolveHandle.Handler<ExtractAuth<AV>>,
|
|
424
|
+
ComAtprotoIdentityResolveHandle.HandlerReqCtx<ExtractAuth<AV>>
|
|
425
|
+
>,
|
|
426
|
+
) {
|
|
427
|
+
const nsid = 'com.atproto.identity.resolveHandle' // @ts-ignore
|
|
428
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
updateHandle<AV extends AuthVerifier>(
|
|
432
|
+
cfg: ConfigOf<
|
|
433
|
+
AV,
|
|
434
|
+
ComAtprotoIdentityUpdateHandle.Handler<ExtractAuth<AV>>,
|
|
435
|
+
ComAtprotoIdentityUpdateHandle.HandlerReqCtx<ExtractAuth<AV>>
|
|
436
|
+
>,
|
|
437
|
+
) {
|
|
438
|
+
const nsid = 'com.atproto.identity.updateHandle' // @ts-ignore
|
|
439
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export class ComAtprotoLabelNS {
|
|
444
|
+
_server: Server
|
|
445
|
+
|
|
446
|
+
constructor(server: Server) {
|
|
447
|
+
this._server = server
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
queryLabels<AV extends AuthVerifier>(
|
|
451
|
+
cfg: ConfigOf<
|
|
452
|
+
AV,
|
|
453
|
+
ComAtprotoLabelQueryLabels.Handler<ExtractAuth<AV>>,
|
|
454
|
+
ComAtprotoLabelQueryLabels.HandlerReqCtx<ExtractAuth<AV>>
|
|
455
|
+
>,
|
|
456
|
+
) {
|
|
457
|
+
const nsid = 'com.atproto.label.queryLabels' // @ts-ignore
|
|
458
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
subscribeLabels<AV extends StreamAuthVerifier>(
|
|
462
|
+
cfg: ConfigOf<
|
|
463
|
+
AV,
|
|
464
|
+
ComAtprotoLabelSubscribeLabels.Handler<ExtractAuth<AV>>,
|
|
465
|
+
ComAtprotoLabelSubscribeLabels.HandlerReqCtx<ExtractAuth<AV>>
|
|
466
|
+
>,
|
|
467
|
+
) {
|
|
468
|
+
const nsid = 'com.atproto.label.subscribeLabels' // @ts-ignore
|
|
469
|
+
return this._server.xrpc.streamMethod(nsid, cfg)
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export class ComAtprotoModerationNS {
|
|
474
|
+
_server: Server
|
|
475
|
+
|
|
476
|
+
constructor(server: Server) {
|
|
477
|
+
this._server = server
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
createReport<AV extends AuthVerifier>(
|
|
481
|
+
cfg: ConfigOf<
|
|
482
|
+
AV,
|
|
483
|
+
ComAtprotoModerationCreateReport.Handler<ExtractAuth<AV>>,
|
|
484
|
+
ComAtprotoModerationCreateReport.HandlerReqCtx<ExtractAuth<AV>>
|
|
485
|
+
>,
|
|
486
|
+
) {
|
|
487
|
+
const nsid = 'com.atproto.moderation.createReport' // @ts-ignore
|
|
488
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export class ComAtprotoRepoNS {
|
|
493
|
+
_server: Server
|
|
494
|
+
|
|
495
|
+
constructor(server: Server) {
|
|
496
|
+
this._server = server
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
applyWrites<AV extends AuthVerifier>(
|
|
500
|
+
cfg: ConfigOf<
|
|
501
|
+
AV,
|
|
502
|
+
ComAtprotoRepoApplyWrites.Handler<ExtractAuth<AV>>,
|
|
503
|
+
ComAtprotoRepoApplyWrites.HandlerReqCtx<ExtractAuth<AV>>
|
|
504
|
+
>,
|
|
505
|
+
) {
|
|
506
|
+
const nsid = 'com.atproto.repo.applyWrites' // @ts-ignore
|
|
507
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
createRecord<AV extends AuthVerifier>(
|
|
511
|
+
cfg: ConfigOf<
|
|
512
|
+
AV,
|
|
513
|
+
ComAtprotoRepoCreateRecord.Handler<ExtractAuth<AV>>,
|
|
514
|
+
ComAtprotoRepoCreateRecord.HandlerReqCtx<ExtractAuth<AV>>
|
|
515
|
+
>,
|
|
516
|
+
) {
|
|
517
|
+
const nsid = 'com.atproto.repo.createRecord' // @ts-ignore
|
|
518
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
deleteRecord<AV extends AuthVerifier>(
|
|
522
|
+
cfg: ConfigOf<
|
|
523
|
+
AV,
|
|
524
|
+
ComAtprotoRepoDeleteRecord.Handler<ExtractAuth<AV>>,
|
|
525
|
+
ComAtprotoRepoDeleteRecord.HandlerReqCtx<ExtractAuth<AV>>
|
|
526
|
+
>,
|
|
527
|
+
) {
|
|
528
|
+
const nsid = 'com.atproto.repo.deleteRecord' // @ts-ignore
|
|
529
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
describeRepo<AV extends AuthVerifier>(
|
|
533
|
+
cfg: ConfigOf<
|
|
534
|
+
AV,
|
|
535
|
+
ComAtprotoRepoDescribeRepo.Handler<ExtractAuth<AV>>,
|
|
536
|
+
ComAtprotoRepoDescribeRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
537
|
+
>,
|
|
538
|
+
) {
|
|
539
|
+
const nsid = 'com.atproto.repo.describeRepo' // @ts-ignore
|
|
540
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
getRecord<AV extends AuthVerifier>(
|
|
544
|
+
cfg: ConfigOf<
|
|
545
|
+
AV,
|
|
546
|
+
ComAtprotoRepoGetRecord.Handler<ExtractAuth<AV>>,
|
|
547
|
+
ComAtprotoRepoGetRecord.HandlerReqCtx<ExtractAuth<AV>>
|
|
548
|
+
>,
|
|
549
|
+
) {
|
|
550
|
+
const nsid = 'com.atproto.repo.getRecord' // @ts-ignore
|
|
551
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
listRecords<AV extends AuthVerifier>(
|
|
555
|
+
cfg: ConfigOf<
|
|
556
|
+
AV,
|
|
557
|
+
ComAtprotoRepoListRecords.Handler<ExtractAuth<AV>>,
|
|
558
|
+
ComAtprotoRepoListRecords.HandlerReqCtx<ExtractAuth<AV>>
|
|
559
|
+
>,
|
|
560
|
+
) {
|
|
561
|
+
const nsid = 'com.atproto.repo.listRecords' // @ts-ignore
|
|
562
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
putRecord<AV extends AuthVerifier>(
|
|
566
|
+
cfg: ConfigOf<
|
|
567
|
+
AV,
|
|
568
|
+
ComAtprotoRepoPutRecord.Handler<ExtractAuth<AV>>,
|
|
569
|
+
ComAtprotoRepoPutRecord.HandlerReqCtx<ExtractAuth<AV>>
|
|
570
|
+
>,
|
|
571
|
+
) {
|
|
572
|
+
const nsid = 'com.atproto.repo.putRecord' // @ts-ignore
|
|
573
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
uploadBlob<AV extends AuthVerifier>(
|
|
577
|
+
cfg: ConfigOf<
|
|
578
|
+
AV,
|
|
579
|
+
ComAtprotoRepoUploadBlob.Handler<ExtractAuth<AV>>,
|
|
580
|
+
ComAtprotoRepoUploadBlob.HandlerReqCtx<ExtractAuth<AV>>
|
|
581
|
+
>,
|
|
582
|
+
) {
|
|
583
|
+
const nsid = 'com.atproto.repo.uploadBlob' // @ts-ignore
|
|
584
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export class ComAtprotoServerNS {
|
|
589
|
+
_server: Server
|
|
590
|
+
|
|
591
|
+
constructor(server: Server) {
|
|
592
|
+
this._server = server
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
confirmEmail<AV extends AuthVerifier>(
|
|
596
|
+
cfg: ConfigOf<
|
|
597
|
+
AV,
|
|
598
|
+
ComAtprotoServerConfirmEmail.Handler<ExtractAuth<AV>>,
|
|
599
|
+
ComAtprotoServerConfirmEmail.HandlerReqCtx<ExtractAuth<AV>>
|
|
600
|
+
>,
|
|
601
|
+
) {
|
|
602
|
+
const nsid = 'com.atproto.server.confirmEmail' // @ts-ignore
|
|
603
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
createAccount<AV extends AuthVerifier>(
|
|
607
|
+
cfg: ConfigOf<
|
|
608
|
+
AV,
|
|
609
|
+
ComAtprotoServerCreateAccount.Handler<ExtractAuth<AV>>,
|
|
610
|
+
ComAtprotoServerCreateAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
611
|
+
>,
|
|
612
|
+
) {
|
|
613
|
+
const nsid = 'com.atproto.server.createAccount' // @ts-ignore
|
|
614
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
createAppPassword<AV extends AuthVerifier>(
|
|
618
|
+
cfg: ConfigOf<
|
|
619
|
+
AV,
|
|
620
|
+
ComAtprotoServerCreateAppPassword.Handler<ExtractAuth<AV>>,
|
|
621
|
+
ComAtprotoServerCreateAppPassword.HandlerReqCtx<ExtractAuth<AV>>
|
|
622
|
+
>,
|
|
623
|
+
) {
|
|
624
|
+
const nsid = 'com.atproto.server.createAppPassword' // @ts-ignore
|
|
625
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
createInviteCode<AV extends AuthVerifier>(
|
|
629
|
+
cfg: ConfigOf<
|
|
630
|
+
AV,
|
|
631
|
+
ComAtprotoServerCreateInviteCode.Handler<ExtractAuth<AV>>,
|
|
632
|
+
ComAtprotoServerCreateInviteCode.HandlerReqCtx<ExtractAuth<AV>>
|
|
633
|
+
>,
|
|
634
|
+
) {
|
|
635
|
+
const nsid = 'com.atproto.server.createInviteCode' // @ts-ignore
|
|
636
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
createInviteCodes<AV extends AuthVerifier>(
|
|
640
|
+
cfg: ConfigOf<
|
|
641
|
+
AV,
|
|
642
|
+
ComAtprotoServerCreateInviteCodes.Handler<ExtractAuth<AV>>,
|
|
643
|
+
ComAtprotoServerCreateInviteCodes.HandlerReqCtx<ExtractAuth<AV>>
|
|
644
|
+
>,
|
|
645
|
+
) {
|
|
646
|
+
const nsid = 'com.atproto.server.createInviteCodes' // @ts-ignore
|
|
647
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
createSession<AV extends AuthVerifier>(
|
|
651
|
+
cfg: ConfigOf<
|
|
652
|
+
AV,
|
|
653
|
+
ComAtprotoServerCreateSession.Handler<ExtractAuth<AV>>,
|
|
654
|
+
ComAtprotoServerCreateSession.HandlerReqCtx<ExtractAuth<AV>>
|
|
655
|
+
>,
|
|
656
|
+
) {
|
|
657
|
+
const nsid = 'com.atproto.server.createSession' // @ts-ignore
|
|
658
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
deleteAccount<AV extends AuthVerifier>(
|
|
662
|
+
cfg: ConfigOf<
|
|
663
|
+
AV,
|
|
664
|
+
ComAtprotoServerDeleteAccount.Handler<ExtractAuth<AV>>,
|
|
665
|
+
ComAtprotoServerDeleteAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
666
|
+
>,
|
|
667
|
+
) {
|
|
668
|
+
const nsid = 'com.atproto.server.deleteAccount' // @ts-ignore
|
|
669
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
deleteSession<AV extends AuthVerifier>(
|
|
673
|
+
cfg: ConfigOf<
|
|
674
|
+
AV,
|
|
675
|
+
ComAtprotoServerDeleteSession.Handler<ExtractAuth<AV>>,
|
|
676
|
+
ComAtprotoServerDeleteSession.HandlerReqCtx<ExtractAuth<AV>>
|
|
677
|
+
>,
|
|
678
|
+
) {
|
|
679
|
+
const nsid = 'com.atproto.server.deleteSession' // @ts-ignore
|
|
680
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
describeServer<AV extends AuthVerifier>(
|
|
684
|
+
cfg: ConfigOf<
|
|
685
|
+
AV,
|
|
686
|
+
ComAtprotoServerDescribeServer.Handler<ExtractAuth<AV>>,
|
|
687
|
+
ComAtprotoServerDescribeServer.HandlerReqCtx<ExtractAuth<AV>>
|
|
688
|
+
>,
|
|
689
|
+
) {
|
|
690
|
+
const nsid = 'com.atproto.server.describeServer' // @ts-ignore
|
|
691
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
getAccountInviteCodes<AV extends AuthVerifier>(
|
|
695
|
+
cfg: ConfigOf<
|
|
696
|
+
AV,
|
|
697
|
+
ComAtprotoServerGetAccountInviteCodes.Handler<ExtractAuth<AV>>,
|
|
698
|
+
ComAtprotoServerGetAccountInviteCodes.HandlerReqCtx<ExtractAuth<AV>>
|
|
699
|
+
>,
|
|
700
|
+
) {
|
|
701
|
+
const nsid = 'com.atproto.server.getAccountInviteCodes' // @ts-ignore
|
|
702
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
getSession<AV extends AuthVerifier>(
|
|
706
|
+
cfg: ConfigOf<
|
|
707
|
+
AV,
|
|
708
|
+
ComAtprotoServerGetSession.Handler<ExtractAuth<AV>>,
|
|
709
|
+
ComAtprotoServerGetSession.HandlerReqCtx<ExtractAuth<AV>>
|
|
710
|
+
>,
|
|
711
|
+
) {
|
|
712
|
+
const nsid = 'com.atproto.server.getSession' // @ts-ignore
|
|
713
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
listAppPasswords<AV extends AuthVerifier>(
|
|
717
|
+
cfg: ConfigOf<
|
|
718
|
+
AV,
|
|
719
|
+
ComAtprotoServerListAppPasswords.Handler<ExtractAuth<AV>>,
|
|
720
|
+
ComAtprotoServerListAppPasswords.HandlerReqCtx<ExtractAuth<AV>>
|
|
721
|
+
>,
|
|
722
|
+
) {
|
|
723
|
+
const nsid = 'com.atproto.server.listAppPasswords' // @ts-ignore
|
|
724
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
refreshSession<AV extends AuthVerifier>(
|
|
728
|
+
cfg: ConfigOf<
|
|
729
|
+
AV,
|
|
730
|
+
ComAtprotoServerRefreshSession.Handler<ExtractAuth<AV>>,
|
|
731
|
+
ComAtprotoServerRefreshSession.HandlerReqCtx<ExtractAuth<AV>>
|
|
732
|
+
>,
|
|
733
|
+
) {
|
|
734
|
+
const nsid = 'com.atproto.server.refreshSession' // @ts-ignore
|
|
735
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
requestAccountDelete<AV extends AuthVerifier>(
|
|
739
|
+
cfg: ConfigOf<
|
|
740
|
+
AV,
|
|
741
|
+
ComAtprotoServerRequestAccountDelete.Handler<ExtractAuth<AV>>,
|
|
742
|
+
ComAtprotoServerRequestAccountDelete.HandlerReqCtx<ExtractAuth<AV>>
|
|
743
|
+
>,
|
|
744
|
+
) {
|
|
745
|
+
const nsid = 'com.atproto.server.requestAccountDelete' // @ts-ignore
|
|
746
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
requestEmailConfirmation<AV extends AuthVerifier>(
|
|
750
|
+
cfg: ConfigOf<
|
|
751
|
+
AV,
|
|
752
|
+
ComAtprotoServerRequestEmailConfirmation.Handler<ExtractAuth<AV>>,
|
|
753
|
+
ComAtprotoServerRequestEmailConfirmation.HandlerReqCtx<ExtractAuth<AV>>
|
|
754
|
+
>,
|
|
755
|
+
) {
|
|
756
|
+
const nsid = 'com.atproto.server.requestEmailConfirmation' // @ts-ignore
|
|
757
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
requestEmailUpdate<AV extends AuthVerifier>(
|
|
761
|
+
cfg: ConfigOf<
|
|
762
|
+
AV,
|
|
763
|
+
ComAtprotoServerRequestEmailUpdate.Handler<ExtractAuth<AV>>,
|
|
764
|
+
ComAtprotoServerRequestEmailUpdate.HandlerReqCtx<ExtractAuth<AV>>
|
|
765
|
+
>,
|
|
766
|
+
) {
|
|
767
|
+
const nsid = 'com.atproto.server.requestEmailUpdate' // @ts-ignore
|
|
768
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
requestPasswordReset<AV extends AuthVerifier>(
|
|
772
|
+
cfg: ConfigOf<
|
|
773
|
+
AV,
|
|
774
|
+
ComAtprotoServerRequestPasswordReset.Handler<ExtractAuth<AV>>,
|
|
775
|
+
ComAtprotoServerRequestPasswordReset.HandlerReqCtx<ExtractAuth<AV>>
|
|
776
|
+
>,
|
|
777
|
+
) {
|
|
778
|
+
const nsid = 'com.atproto.server.requestPasswordReset' // @ts-ignore
|
|
779
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
reserveSigningKey<AV extends AuthVerifier>(
|
|
783
|
+
cfg: ConfigOf<
|
|
784
|
+
AV,
|
|
785
|
+
ComAtprotoServerReserveSigningKey.Handler<ExtractAuth<AV>>,
|
|
786
|
+
ComAtprotoServerReserveSigningKey.HandlerReqCtx<ExtractAuth<AV>>
|
|
787
|
+
>,
|
|
788
|
+
) {
|
|
789
|
+
const nsid = 'com.atproto.server.reserveSigningKey' // @ts-ignore
|
|
790
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
resetPassword<AV extends AuthVerifier>(
|
|
794
|
+
cfg: ConfigOf<
|
|
795
|
+
AV,
|
|
796
|
+
ComAtprotoServerResetPassword.Handler<ExtractAuth<AV>>,
|
|
797
|
+
ComAtprotoServerResetPassword.HandlerReqCtx<ExtractAuth<AV>>
|
|
798
|
+
>,
|
|
799
|
+
) {
|
|
800
|
+
const nsid = 'com.atproto.server.resetPassword' // @ts-ignore
|
|
801
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
revokeAppPassword<AV extends AuthVerifier>(
|
|
805
|
+
cfg: ConfigOf<
|
|
806
|
+
AV,
|
|
807
|
+
ComAtprotoServerRevokeAppPassword.Handler<ExtractAuth<AV>>,
|
|
808
|
+
ComAtprotoServerRevokeAppPassword.HandlerReqCtx<ExtractAuth<AV>>
|
|
809
|
+
>,
|
|
810
|
+
) {
|
|
811
|
+
const nsid = 'com.atproto.server.revokeAppPassword' // @ts-ignore
|
|
812
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
updateEmail<AV extends AuthVerifier>(
|
|
816
|
+
cfg: ConfigOf<
|
|
817
|
+
AV,
|
|
818
|
+
ComAtprotoServerUpdateEmail.Handler<ExtractAuth<AV>>,
|
|
819
|
+
ComAtprotoServerUpdateEmail.HandlerReqCtx<ExtractAuth<AV>>
|
|
820
|
+
>,
|
|
821
|
+
) {
|
|
822
|
+
const nsid = 'com.atproto.server.updateEmail' // @ts-ignore
|
|
823
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export class ComAtprotoSyncNS {
|
|
828
|
+
_server: Server
|
|
829
|
+
|
|
830
|
+
constructor(server: Server) {
|
|
831
|
+
this._server = server
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
getBlob<AV extends AuthVerifier>(
|
|
835
|
+
cfg: ConfigOf<
|
|
836
|
+
AV,
|
|
837
|
+
ComAtprotoSyncGetBlob.Handler<ExtractAuth<AV>>,
|
|
838
|
+
ComAtprotoSyncGetBlob.HandlerReqCtx<ExtractAuth<AV>>
|
|
839
|
+
>,
|
|
840
|
+
) {
|
|
841
|
+
const nsid = 'com.atproto.sync.getBlob' // @ts-ignore
|
|
842
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
getBlocks<AV extends AuthVerifier>(
|
|
846
|
+
cfg: ConfigOf<
|
|
847
|
+
AV,
|
|
848
|
+
ComAtprotoSyncGetBlocks.Handler<ExtractAuth<AV>>,
|
|
849
|
+
ComAtprotoSyncGetBlocks.HandlerReqCtx<ExtractAuth<AV>>
|
|
850
|
+
>,
|
|
851
|
+
) {
|
|
852
|
+
const nsid = 'com.atproto.sync.getBlocks' // @ts-ignore
|
|
853
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
getCheckout<AV extends AuthVerifier>(
|
|
857
|
+
cfg: ConfigOf<
|
|
858
|
+
AV,
|
|
859
|
+
ComAtprotoSyncGetCheckout.Handler<ExtractAuth<AV>>,
|
|
860
|
+
ComAtprotoSyncGetCheckout.HandlerReqCtx<ExtractAuth<AV>>
|
|
861
|
+
>,
|
|
862
|
+
) {
|
|
863
|
+
const nsid = 'com.atproto.sync.getCheckout' // @ts-ignore
|
|
864
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
getHead<AV extends AuthVerifier>(
|
|
868
|
+
cfg: ConfigOf<
|
|
869
|
+
AV,
|
|
870
|
+
ComAtprotoSyncGetHead.Handler<ExtractAuth<AV>>,
|
|
871
|
+
ComAtprotoSyncGetHead.HandlerReqCtx<ExtractAuth<AV>>
|
|
872
|
+
>,
|
|
873
|
+
) {
|
|
874
|
+
const nsid = 'com.atproto.sync.getHead' // @ts-ignore
|
|
875
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
getLatestCommit<AV extends AuthVerifier>(
|
|
879
|
+
cfg: ConfigOf<
|
|
880
|
+
AV,
|
|
881
|
+
ComAtprotoSyncGetLatestCommit.Handler<ExtractAuth<AV>>,
|
|
882
|
+
ComAtprotoSyncGetLatestCommit.HandlerReqCtx<ExtractAuth<AV>>
|
|
883
|
+
>,
|
|
884
|
+
) {
|
|
885
|
+
const nsid = 'com.atproto.sync.getLatestCommit' // @ts-ignore
|
|
886
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
getRecord<AV extends AuthVerifier>(
|
|
890
|
+
cfg: ConfigOf<
|
|
891
|
+
AV,
|
|
892
|
+
ComAtprotoSyncGetRecord.Handler<ExtractAuth<AV>>,
|
|
893
|
+
ComAtprotoSyncGetRecord.HandlerReqCtx<ExtractAuth<AV>>
|
|
894
|
+
>,
|
|
895
|
+
) {
|
|
896
|
+
const nsid = 'com.atproto.sync.getRecord' // @ts-ignore
|
|
897
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
getRepo<AV extends AuthVerifier>(
|
|
901
|
+
cfg: ConfigOf<
|
|
902
|
+
AV,
|
|
903
|
+
ComAtprotoSyncGetRepo.Handler<ExtractAuth<AV>>,
|
|
904
|
+
ComAtprotoSyncGetRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
905
|
+
>,
|
|
906
|
+
) {
|
|
907
|
+
const nsid = 'com.atproto.sync.getRepo' // @ts-ignore
|
|
908
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
listBlobs<AV extends AuthVerifier>(
|
|
912
|
+
cfg: ConfigOf<
|
|
913
|
+
AV,
|
|
914
|
+
ComAtprotoSyncListBlobs.Handler<ExtractAuth<AV>>,
|
|
915
|
+
ComAtprotoSyncListBlobs.HandlerReqCtx<ExtractAuth<AV>>
|
|
916
|
+
>,
|
|
917
|
+
) {
|
|
918
|
+
const nsid = 'com.atproto.sync.listBlobs' // @ts-ignore
|
|
919
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
listRepos<AV extends AuthVerifier>(
|
|
923
|
+
cfg: ConfigOf<
|
|
924
|
+
AV,
|
|
925
|
+
ComAtprotoSyncListRepos.Handler<ExtractAuth<AV>>,
|
|
926
|
+
ComAtprotoSyncListRepos.HandlerReqCtx<ExtractAuth<AV>>
|
|
927
|
+
>,
|
|
928
|
+
) {
|
|
929
|
+
const nsid = 'com.atproto.sync.listRepos' // @ts-ignore
|
|
930
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
notifyOfUpdate<AV extends AuthVerifier>(
|
|
934
|
+
cfg: ConfigOf<
|
|
935
|
+
AV,
|
|
936
|
+
ComAtprotoSyncNotifyOfUpdate.Handler<ExtractAuth<AV>>,
|
|
937
|
+
ComAtprotoSyncNotifyOfUpdate.HandlerReqCtx<ExtractAuth<AV>>
|
|
938
|
+
>,
|
|
939
|
+
) {
|
|
940
|
+
const nsid = 'com.atproto.sync.notifyOfUpdate' // @ts-ignore
|
|
941
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
requestCrawl<AV extends AuthVerifier>(
|
|
945
|
+
cfg: ConfigOf<
|
|
946
|
+
AV,
|
|
947
|
+
ComAtprotoSyncRequestCrawl.Handler<ExtractAuth<AV>>,
|
|
948
|
+
ComAtprotoSyncRequestCrawl.HandlerReqCtx<ExtractAuth<AV>>
|
|
949
|
+
>,
|
|
950
|
+
) {
|
|
951
|
+
const nsid = 'com.atproto.sync.requestCrawl' // @ts-ignore
|
|
952
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
subscribeRepos<AV extends StreamAuthVerifier>(
|
|
956
|
+
cfg: ConfigOf<
|
|
957
|
+
AV,
|
|
958
|
+
ComAtprotoSyncSubscribeRepos.Handler<ExtractAuth<AV>>,
|
|
959
|
+
ComAtprotoSyncSubscribeRepos.HandlerReqCtx<ExtractAuth<AV>>
|
|
960
|
+
>,
|
|
961
|
+
) {
|
|
962
|
+
const nsid = 'com.atproto.sync.subscribeRepos' // @ts-ignore
|
|
963
|
+
return this._server.xrpc.streamMethod(nsid, cfg)
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
export class ComAtprotoTempNS {
|
|
968
|
+
_server: Server
|
|
969
|
+
|
|
970
|
+
constructor(server: Server) {
|
|
971
|
+
this._server = server
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
fetchLabels<AV extends AuthVerifier>(
|
|
975
|
+
cfg: ConfigOf<
|
|
976
|
+
AV,
|
|
977
|
+
ComAtprotoTempFetchLabels.Handler<ExtractAuth<AV>>,
|
|
978
|
+
ComAtprotoTempFetchLabels.HandlerReqCtx<ExtractAuth<AV>>
|
|
979
|
+
>,
|
|
980
|
+
) {
|
|
981
|
+
const nsid = 'com.atproto.temp.fetchLabels' // @ts-ignore
|
|
982
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
importRepo<AV extends AuthVerifier>(
|
|
986
|
+
cfg: ConfigOf<
|
|
987
|
+
AV,
|
|
988
|
+
ComAtprotoTempImportRepo.Handler<ExtractAuth<AV>>,
|
|
989
|
+
ComAtprotoTempImportRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
990
|
+
>,
|
|
991
|
+
) {
|
|
992
|
+
const nsid = 'com.atproto.temp.importRepo' // @ts-ignore
|
|
993
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
pushBlob<AV extends AuthVerifier>(
|
|
997
|
+
cfg: ConfigOf<
|
|
998
|
+
AV,
|
|
999
|
+
ComAtprotoTempPushBlob.Handler<ExtractAuth<AV>>,
|
|
1000
|
+
ComAtprotoTempPushBlob.HandlerReqCtx<ExtractAuth<AV>>
|
|
1001
|
+
>,
|
|
1002
|
+
) {
|
|
1003
|
+
const nsid = 'com.atproto.temp.pushBlob' // @ts-ignore
|
|
1004
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
requestPhoneVerification<AV extends AuthVerifier>(
|
|
1008
|
+
cfg: ConfigOf<
|
|
1009
|
+
AV,
|
|
1010
|
+
ComAtprotoTempRequestPhoneVerification.Handler<ExtractAuth<AV>>,
|
|
1011
|
+
ComAtprotoTempRequestPhoneVerification.HandlerReqCtx<ExtractAuth<AV>>
|
|
1012
|
+
>,
|
|
1013
|
+
) {
|
|
1014
|
+
const nsid = 'com.atproto.temp.requestPhoneVerification' // @ts-ignore
|
|
1015
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
transferAccount<AV extends AuthVerifier>(
|
|
1019
|
+
cfg: ConfigOf<
|
|
1020
|
+
AV,
|
|
1021
|
+
ComAtprotoTempTransferAccount.Handler<ExtractAuth<AV>>,
|
|
1022
|
+
ComAtprotoTempTransferAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
1023
|
+
>,
|
|
1024
|
+
) {
|
|
1025
|
+
const nsid = 'com.atproto.temp.transferAccount' // @ts-ignore
|
|
1026
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export class AppNS {
|
|
1031
|
+
_server: Server
|
|
1032
|
+
bsky: AppBskyNS
|
|
1033
|
+
|
|
1034
|
+
constructor(server: Server) {
|
|
1035
|
+
this._server = server
|
|
1036
|
+
this.bsky = new AppBskyNS(server)
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
export class AppBskyNS {
|
|
1041
|
+
_server: Server
|
|
1042
|
+
actor: AppBskyActorNS
|
|
1043
|
+
embed: AppBskyEmbedNS
|
|
1044
|
+
feed: AppBskyFeedNS
|
|
1045
|
+
graph: AppBskyGraphNS
|
|
1046
|
+
notification: AppBskyNotificationNS
|
|
1047
|
+
richtext: AppBskyRichtextNS
|
|
1048
|
+
unspecced: AppBskyUnspeccedNS
|
|
1049
|
+
|
|
1050
|
+
constructor(server: Server) {
|
|
1051
|
+
this._server = server
|
|
1052
|
+
this.actor = new AppBskyActorNS(server)
|
|
1053
|
+
this.embed = new AppBskyEmbedNS(server)
|
|
1054
|
+
this.feed = new AppBskyFeedNS(server)
|
|
1055
|
+
this.graph = new AppBskyGraphNS(server)
|
|
1056
|
+
this.notification = new AppBskyNotificationNS(server)
|
|
1057
|
+
this.richtext = new AppBskyRichtextNS(server)
|
|
1058
|
+
this.unspecced = new AppBskyUnspeccedNS(server)
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export class AppBskyActorNS {
|
|
1063
|
+
_server: Server
|
|
1064
|
+
|
|
1065
|
+
constructor(server: Server) {
|
|
1066
|
+
this._server = server
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
getPreferences<AV extends AuthVerifier>(
|
|
1070
|
+
cfg: ConfigOf<
|
|
1071
|
+
AV,
|
|
1072
|
+
AppBskyActorGetPreferences.Handler<ExtractAuth<AV>>,
|
|
1073
|
+
AppBskyActorGetPreferences.HandlerReqCtx<ExtractAuth<AV>>
|
|
1074
|
+
>,
|
|
1075
|
+
) {
|
|
1076
|
+
const nsid = 'app.bsky.actor.getPreferences' // @ts-ignore
|
|
1077
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
getProfile<AV extends AuthVerifier>(
|
|
1081
|
+
cfg: ConfigOf<
|
|
1082
|
+
AV,
|
|
1083
|
+
AppBskyActorGetProfile.Handler<ExtractAuth<AV>>,
|
|
1084
|
+
AppBskyActorGetProfile.HandlerReqCtx<ExtractAuth<AV>>
|
|
1085
|
+
>,
|
|
1086
|
+
) {
|
|
1087
|
+
const nsid = 'app.bsky.actor.getProfile' // @ts-ignore
|
|
1088
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
getProfiles<AV extends AuthVerifier>(
|
|
1092
|
+
cfg: ConfigOf<
|
|
1093
|
+
AV,
|
|
1094
|
+
AppBskyActorGetProfiles.Handler<ExtractAuth<AV>>,
|
|
1095
|
+
AppBskyActorGetProfiles.HandlerReqCtx<ExtractAuth<AV>>
|
|
1096
|
+
>,
|
|
1097
|
+
) {
|
|
1098
|
+
const nsid = 'app.bsky.actor.getProfiles' // @ts-ignore
|
|
1099
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
getSuggestions<AV extends AuthVerifier>(
|
|
1103
|
+
cfg: ConfigOf<
|
|
1104
|
+
AV,
|
|
1105
|
+
AppBskyActorGetSuggestions.Handler<ExtractAuth<AV>>,
|
|
1106
|
+
AppBskyActorGetSuggestions.HandlerReqCtx<ExtractAuth<AV>>
|
|
1107
|
+
>,
|
|
1108
|
+
) {
|
|
1109
|
+
const nsid = 'app.bsky.actor.getSuggestions' // @ts-ignore
|
|
1110
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
putPreferences<AV extends AuthVerifier>(
|
|
1114
|
+
cfg: ConfigOf<
|
|
1115
|
+
AV,
|
|
1116
|
+
AppBskyActorPutPreferences.Handler<ExtractAuth<AV>>,
|
|
1117
|
+
AppBskyActorPutPreferences.HandlerReqCtx<ExtractAuth<AV>>
|
|
1118
|
+
>,
|
|
1119
|
+
) {
|
|
1120
|
+
const nsid = 'app.bsky.actor.putPreferences' // @ts-ignore
|
|
1121
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
searchActors<AV extends AuthVerifier>(
|
|
1125
|
+
cfg: ConfigOf<
|
|
1126
|
+
AV,
|
|
1127
|
+
AppBskyActorSearchActors.Handler<ExtractAuth<AV>>,
|
|
1128
|
+
AppBskyActorSearchActors.HandlerReqCtx<ExtractAuth<AV>>
|
|
1129
|
+
>,
|
|
1130
|
+
) {
|
|
1131
|
+
const nsid = 'app.bsky.actor.searchActors' // @ts-ignore
|
|
1132
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
searchActorsTypeahead<AV extends AuthVerifier>(
|
|
1136
|
+
cfg: ConfigOf<
|
|
1137
|
+
AV,
|
|
1138
|
+
AppBskyActorSearchActorsTypeahead.Handler<ExtractAuth<AV>>,
|
|
1139
|
+
AppBskyActorSearchActorsTypeahead.HandlerReqCtx<ExtractAuth<AV>>
|
|
1140
|
+
>,
|
|
1141
|
+
) {
|
|
1142
|
+
const nsid = 'app.bsky.actor.searchActorsTypeahead' // @ts-ignore
|
|
1143
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
export class AppBskyEmbedNS {
|
|
1148
|
+
_server: Server
|
|
1149
|
+
|
|
1150
|
+
constructor(server: Server) {
|
|
1151
|
+
this._server = server
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export class AppBskyFeedNS {
|
|
1156
|
+
_server: Server
|
|
1157
|
+
|
|
1158
|
+
constructor(server: Server) {
|
|
1159
|
+
this._server = server
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
describeFeedGenerator<AV extends AuthVerifier>(
|
|
1163
|
+
cfg: ConfigOf<
|
|
1164
|
+
AV,
|
|
1165
|
+
AppBskyFeedDescribeFeedGenerator.Handler<ExtractAuth<AV>>,
|
|
1166
|
+
AppBskyFeedDescribeFeedGenerator.HandlerReqCtx<ExtractAuth<AV>>
|
|
1167
|
+
>,
|
|
1168
|
+
) {
|
|
1169
|
+
const nsid = 'app.bsky.feed.describeFeedGenerator' // @ts-ignore
|
|
1170
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
getActorFeeds<AV extends AuthVerifier>(
|
|
1174
|
+
cfg: ConfigOf<
|
|
1175
|
+
AV,
|
|
1176
|
+
AppBskyFeedGetActorFeeds.Handler<ExtractAuth<AV>>,
|
|
1177
|
+
AppBskyFeedGetActorFeeds.HandlerReqCtx<ExtractAuth<AV>>
|
|
1178
|
+
>,
|
|
1179
|
+
) {
|
|
1180
|
+
const nsid = 'app.bsky.feed.getActorFeeds' // @ts-ignore
|
|
1181
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
getActorLikes<AV extends AuthVerifier>(
|
|
1185
|
+
cfg: ConfigOf<
|
|
1186
|
+
AV,
|
|
1187
|
+
AppBskyFeedGetActorLikes.Handler<ExtractAuth<AV>>,
|
|
1188
|
+
AppBskyFeedGetActorLikes.HandlerReqCtx<ExtractAuth<AV>>
|
|
1189
|
+
>,
|
|
1190
|
+
) {
|
|
1191
|
+
const nsid = 'app.bsky.feed.getActorLikes' // @ts-ignore
|
|
1192
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
getAuthorFeed<AV extends AuthVerifier>(
|
|
1196
|
+
cfg: ConfigOf<
|
|
1197
|
+
AV,
|
|
1198
|
+
AppBskyFeedGetAuthorFeed.Handler<ExtractAuth<AV>>,
|
|
1199
|
+
AppBskyFeedGetAuthorFeed.HandlerReqCtx<ExtractAuth<AV>>
|
|
1200
|
+
>,
|
|
1201
|
+
) {
|
|
1202
|
+
const nsid = 'app.bsky.feed.getAuthorFeed' // @ts-ignore
|
|
1203
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
getFeed<AV extends AuthVerifier>(
|
|
1207
|
+
cfg: ConfigOf<
|
|
1208
|
+
AV,
|
|
1209
|
+
AppBskyFeedGetFeed.Handler<ExtractAuth<AV>>,
|
|
1210
|
+
AppBskyFeedGetFeed.HandlerReqCtx<ExtractAuth<AV>>
|
|
1211
|
+
>,
|
|
1212
|
+
) {
|
|
1213
|
+
const nsid = 'app.bsky.feed.getFeed' // @ts-ignore
|
|
1214
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
getFeedGenerator<AV extends AuthVerifier>(
|
|
1218
|
+
cfg: ConfigOf<
|
|
1219
|
+
AV,
|
|
1220
|
+
AppBskyFeedGetFeedGenerator.Handler<ExtractAuth<AV>>,
|
|
1221
|
+
AppBskyFeedGetFeedGenerator.HandlerReqCtx<ExtractAuth<AV>>
|
|
1222
|
+
>,
|
|
1223
|
+
) {
|
|
1224
|
+
const nsid = 'app.bsky.feed.getFeedGenerator' // @ts-ignore
|
|
1225
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
getFeedGenerators<AV extends AuthVerifier>(
|
|
1229
|
+
cfg: ConfigOf<
|
|
1230
|
+
AV,
|
|
1231
|
+
AppBskyFeedGetFeedGenerators.Handler<ExtractAuth<AV>>,
|
|
1232
|
+
AppBskyFeedGetFeedGenerators.HandlerReqCtx<ExtractAuth<AV>>
|
|
1233
|
+
>,
|
|
1234
|
+
) {
|
|
1235
|
+
const nsid = 'app.bsky.feed.getFeedGenerators' // @ts-ignore
|
|
1236
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
getFeedSkeleton<AV extends AuthVerifier>(
|
|
1240
|
+
cfg: ConfigOf<
|
|
1241
|
+
AV,
|
|
1242
|
+
AppBskyFeedGetFeedSkeleton.Handler<ExtractAuth<AV>>,
|
|
1243
|
+
AppBskyFeedGetFeedSkeleton.HandlerReqCtx<ExtractAuth<AV>>
|
|
1244
|
+
>,
|
|
1245
|
+
) {
|
|
1246
|
+
const nsid = 'app.bsky.feed.getFeedSkeleton' // @ts-ignore
|
|
1247
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
getLikes<AV extends AuthVerifier>(
|
|
1251
|
+
cfg: ConfigOf<
|
|
1252
|
+
AV,
|
|
1253
|
+
AppBskyFeedGetLikes.Handler<ExtractAuth<AV>>,
|
|
1254
|
+
AppBskyFeedGetLikes.HandlerReqCtx<ExtractAuth<AV>>
|
|
1255
|
+
>,
|
|
1256
|
+
) {
|
|
1257
|
+
const nsid = 'app.bsky.feed.getLikes' // @ts-ignore
|
|
1258
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
getListFeed<AV extends AuthVerifier>(
|
|
1262
|
+
cfg: ConfigOf<
|
|
1263
|
+
AV,
|
|
1264
|
+
AppBskyFeedGetListFeed.Handler<ExtractAuth<AV>>,
|
|
1265
|
+
AppBskyFeedGetListFeed.HandlerReqCtx<ExtractAuth<AV>>
|
|
1266
|
+
>,
|
|
1267
|
+
) {
|
|
1268
|
+
const nsid = 'app.bsky.feed.getListFeed' // @ts-ignore
|
|
1269
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
getPostThread<AV extends AuthVerifier>(
|
|
1273
|
+
cfg: ConfigOf<
|
|
1274
|
+
AV,
|
|
1275
|
+
AppBskyFeedGetPostThread.Handler<ExtractAuth<AV>>,
|
|
1276
|
+
AppBskyFeedGetPostThread.HandlerReqCtx<ExtractAuth<AV>>
|
|
1277
|
+
>,
|
|
1278
|
+
) {
|
|
1279
|
+
const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
|
|
1280
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
getPosts<AV extends AuthVerifier>(
|
|
1284
|
+
cfg: ConfigOf<
|
|
1285
|
+
AV,
|
|
1286
|
+
AppBskyFeedGetPosts.Handler<ExtractAuth<AV>>,
|
|
1287
|
+
AppBskyFeedGetPosts.HandlerReqCtx<ExtractAuth<AV>>
|
|
1288
|
+
>,
|
|
1289
|
+
) {
|
|
1290
|
+
const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
|
|
1291
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
getRepostedBy<AV extends AuthVerifier>(
|
|
1295
|
+
cfg: ConfigOf<
|
|
1296
|
+
AV,
|
|
1297
|
+
AppBskyFeedGetRepostedBy.Handler<ExtractAuth<AV>>,
|
|
1298
|
+
AppBskyFeedGetRepostedBy.HandlerReqCtx<ExtractAuth<AV>>
|
|
1299
|
+
>,
|
|
1300
|
+
) {
|
|
1301
|
+
const nsid = 'app.bsky.feed.getRepostedBy' // @ts-ignore
|
|
1302
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
getSuggestedFeeds<AV extends AuthVerifier>(
|
|
1306
|
+
cfg: ConfigOf<
|
|
1307
|
+
AV,
|
|
1308
|
+
AppBskyFeedGetSuggestedFeeds.Handler<ExtractAuth<AV>>,
|
|
1309
|
+
AppBskyFeedGetSuggestedFeeds.HandlerReqCtx<ExtractAuth<AV>>
|
|
1310
|
+
>,
|
|
1311
|
+
) {
|
|
1312
|
+
const nsid = 'app.bsky.feed.getSuggestedFeeds' // @ts-ignore
|
|
1313
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
getTimeline<AV extends AuthVerifier>(
|
|
1317
|
+
cfg: ConfigOf<
|
|
1318
|
+
AV,
|
|
1319
|
+
AppBskyFeedGetTimeline.Handler<ExtractAuth<AV>>,
|
|
1320
|
+
AppBskyFeedGetTimeline.HandlerReqCtx<ExtractAuth<AV>>
|
|
1321
|
+
>,
|
|
1322
|
+
) {
|
|
1323
|
+
const nsid = 'app.bsky.feed.getTimeline' // @ts-ignore
|
|
1324
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
searchPosts<AV extends AuthVerifier>(
|
|
1328
|
+
cfg: ConfigOf<
|
|
1329
|
+
AV,
|
|
1330
|
+
AppBskyFeedSearchPosts.Handler<ExtractAuth<AV>>,
|
|
1331
|
+
AppBskyFeedSearchPosts.HandlerReqCtx<ExtractAuth<AV>>
|
|
1332
|
+
>,
|
|
1333
|
+
) {
|
|
1334
|
+
const nsid = 'app.bsky.feed.searchPosts' // @ts-ignore
|
|
1335
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
export class AppBskyGraphNS {
|
|
1340
|
+
_server: Server
|
|
1341
|
+
|
|
1342
|
+
constructor(server: Server) {
|
|
1343
|
+
this._server = server
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
getBlocks<AV extends AuthVerifier>(
|
|
1347
|
+
cfg: ConfigOf<
|
|
1348
|
+
AV,
|
|
1349
|
+
AppBskyGraphGetBlocks.Handler<ExtractAuth<AV>>,
|
|
1350
|
+
AppBskyGraphGetBlocks.HandlerReqCtx<ExtractAuth<AV>>
|
|
1351
|
+
>,
|
|
1352
|
+
) {
|
|
1353
|
+
const nsid = 'app.bsky.graph.getBlocks' // @ts-ignore
|
|
1354
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
getFollowers<AV extends AuthVerifier>(
|
|
1358
|
+
cfg: ConfigOf<
|
|
1359
|
+
AV,
|
|
1360
|
+
AppBskyGraphGetFollowers.Handler<ExtractAuth<AV>>,
|
|
1361
|
+
AppBskyGraphGetFollowers.HandlerReqCtx<ExtractAuth<AV>>
|
|
1362
|
+
>,
|
|
1363
|
+
) {
|
|
1364
|
+
const nsid = 'app.bsky.graph.getFollowers' // @ts-ignore
|
|
1365
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
getFollows<AV extends AuthVerifier>(
|
|
1369
|
+
cfg: ConfigOf<
|
|
1370
|
+
AV,
|
|
1371
|
+
AppBskyGraphGetFollows.Handler<ExtractAuth<AV>>,
|
|
1372
|
+
AppBskyGraphGetFollows.HandlerReqCtx<ExtractAuth<AV>>
|
|
1373
|
+
>,
|
|
1374
|
+
) {
|
|
1375
|
+
const nsid = 'app.bsky.graph.getFollows' // @ts-ignore
|
|
1376
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
getList<AV extends AuthVerifier>(
|
|
1380
|
+
cfg: ConfigOf<
|
|
1381
|
+
AV,
|
|
1382
|
+
AppBskyGraphGetList.Handler<ExtractAuth<AV>>,
|
|
1383
|
+
AppBskyGraphGetList.HandlerReqCtx<ExtractAuth<AV>>
|
|
1384
|
+
>,
|
|
1385
|
+
) {
|
|
1386
|
+
const nsid = 'app.bsky.graph.getList' // @ts-ignore
|
|
1387
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
getListBlocks<AV extends AuthVerifier>(
|
|
1391
|
+
cfg: ConfigOf<
|
|
1392
|
+
AV,
|
|
1393
|
+
AppBskyGraphGetListBlocks.Handler<ExtractAuth<AV>>,
|
|
1394
|
+
AppBskyGraphGetListBlocks.HandlerReqCtx<ExtractAuth<AV>>
|
|
1395
|
+
>,
|
|
1396
|
+
) {
|
|
1397
|
+
const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore
|
|
1398
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
getListMutes<AV extends AuthVerifier>(
|
|
1402
|
+
cfg: ConfigOf<
|
|
1403
|
+
AV,
|
|
1404
|
+
AppBskyGraphGetListMutes.Handler<ExtractAuth<AV>>,
|
|
1405
|
+
AppBskyGraphGetListMutes.HandlerReqCtx<ExtractAuth<AV>>
|
|
1406
|
+
>,
|
|
1407
|
+
) {
|
|
1408
|
+
const nsid = 'app.bsky.graph.getListMutes' // @ts-ignore
|
|
1409
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
getLists<AV extends AuthVerifier>(
|
|
1413
|
+
cfg: ConfigOf<
|
|
1414
|
+
AV,
|
|
1415
|
+
AppBskyGraphGetLists.Handler<ExtractAuth<AV>>,
|
|
1416
|
+
AppBskyGraphGetLists.HandlerReqCtx<ExtractAuth<AV>>
|
|
1417
|
+
>,
|
|
1418
|
+
) {
|
|
1419
|
+
const nsid = 'app.bsky.graph.getLists' // @ts-ignore
|
|
1420
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
getMutes<AV extends AuthVerifier>(
|
|
1424
|
+
cfg: ConfigOf<
|
|
1425
|
+
AV,
|
|
1426
|
+
AppBskyGraphGetMutes.Handler<ExtractAuth<AV>>,
|
|
1427
|
+
AppBskyGraphGetMutes.HandlerReqCtx<ExtractAuth<AV>>
|
|
1428
|
+
>,
|
|
1429
|
+
) {
|
|
1430
|
+
const nsid = 'app.bsky.graph.getMutes' // @ts-ignore
|
|
1431
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
getSuggestedFollowsByActor<AV extends AuthVerifier>(
|
|
1435
|
+
cfg: ConfigOf<
|
|
1436
|
+
AV,
|
|
1437
|
+
AppBskyGraphGetSuggestedFollowsByActor.Handler<ExtractAuth<AV>>,
|
|
1438
|
+
AppBskyGraphGetSuggestedFollowsByActor.HandlerReqCtx<ExtractAuth<AV>>
|
|
1439
|
+
>,
|
|
1440
|
+
) {
|
|
1441
|
+
const nsid = 'app.bsky.graph.getSuggestedFollowsByActor' // @ts-ignore
|
|
1442
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
muteActor<AV extends AuthVerifier>(
|
|
1446
|
+
cfg: ConfigOf<
|
|
1447
|
+
AV,
|
|
1448
|
+
AppBskyGraphMuteActor.Handler<ExtractAuth<AV>>,
|
|
1449
|
+
AppBskyGraphMuteActor.HandlerReqCtx<ExtractAuth<AV>>
|
|
1450
|
+
>,
|
|
1451
|
+
) {
|
|
1452
|
+
const nsid = 'app.bsky.graph.muteActor' // @ts-ignore
|
|
1453
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
muteActorList<AV extends AuthVerifier>(
|
|
1457
|
+
cfg: ConfigOf<
|
|
1458
|
+
AV,
|
|
1459
|
+
AppBskyGraphMuteActorList.Handler<ExtractAuth<AV>>,
|
|
1460
|
+
AppBskyGraphMuteActorList.HandlerReqCtx<ExtractAuth<AV>>
|
|
1461
|
+
>,
|
|
1462
|
+
) {
|
|
1463
|
+
const nsid = 'app.bsky.graph.muteActorList' // @ts-ignore
|
|
1464
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
unmuteActor<AV extends AuthVerifier>(
|
|
1468
|
+
cfg: ConfigOf<
|
|
1469
|
+
AV,
|
|
1470
|
+
AppBskyGraphUnmuteActor.Handler<ExtractAuth<AV>>,
|
|
1471
|
+
AppBskyGraphUnmuteActor.HandlerReqCtx<ExtractAuth<AV>>
|
|
1472
|
+
>,
|
|
1473
|
+
) {
|
|
1474
|
+
const nsid = 'app.bsky.graph.unmuteActor' // @ts-ignore
|
|
1475
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
unmuteActorList<AV extends AuthVerifier>(
|
|
1479
|
+
cfg: ConfigOf<
|
|
1480
|
+
AV,
|
|
1481
|
+
AppBskyGraphUnmuteActorList.Handler<ExtractAuth<AV>>,
|
|
1482
|
+
AppBskyGraphUnmuteActorList.HandlerReqCtx<ExtractAuth<AV>>
|
|
1483
|
+
>,
|
|
1484
|
+
) {
|
|
1485
|
+
const nsid = 'app.bsky.graph.unmuteActorList' // @ts-ignore
|
|
1486
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
export class AppBskyNotificationNS {
|
|
1491
|
+
_server: Server
|
|
1492
|
+
|
|
1493
|
+
constructor(server: Server) {
|
|
1494
|
+
this._server = server
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
getUnreadCount<AV extends AuthVerifier>(
|
|
1498
|
+
cfg: ConfigOf<
|
|
1499
|
+
AV,
|
|
1500
|
+
AppBskyNotificationGetUnreadCount.Handler<ExtractAuth<AV>>,
|
|
1501
|
+
AppBskyNotificationGetUnreadCount.HandlerReqCtx<ExtractAuth<AV>>
|
|
1502
|
+
>,
|
|
1503
|
+
) {
|
|
1504
|
+
const nsid = 'app.bsky.notification.getUnreadCount' // @ts-ignore
|
|
1505
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
listNotifications<AV extends AuthVerifier>(
|
|
1509
|
+
cfg: ConfigOf<
|
|
1510
|
+
AV,
|
|
1511
|
+
AppBskyNotificationListNotifications.Handler<ExtractAuth<AV>>,
|
|
1512
|
+
AppBskyNotificationListNotifications.HandlerReqCtx<ExtractAuth<AV>>
|
|
1513
|
+
>,
|
|
1514
|
+
) {
|
|
1515
|
+
const nsid = 'app.bsky.notification.listNotifications' // @ts-ignore
|
|
1516
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
registerPush<AV extends AuthVerifier>(
|
|
1520
|
+
cfg: ConfigOf<
|
|
1521
|
+
AV,
|
|
1522
|
+
AppBskyNotificationRegisterPush.Handler<ExtractAuth<AV>>,
|
|
1523
|
+
AppBskyNotificationRegisterPush.HandlerReqCtx<ExtractAuth<AV>>
|
|
1524
|
+
>,
|
|
1525
|
+
) {
|
|
1526
|
+
const nsid = 'app.bsky.notification.registerPush' // @ts-ignore
|
|
1527
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
updateSeen<AV extends AuthVerifier>(
|
|
1531
|
+
cfg: ConfigOf<
|
|
1532
|
+
AV,
|
|
1533
|
+
AppBskyNotificationUpdateSeen.Handler<ExtractAuth<AV>>,
|
|
1534
|
+
AppBskyNotificationUpdateSeen.HandlerReqCtx<ExtractAuth<AV>>
|
|
1535
|
+
>,
|
|
1536
|
+
) {
|
|
1537
|
+
const nsid = 'app.bsky.notification.updateSeen' // @ts-ignore
|
|
1538
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
export class AppBskyRichtextNS {
|
|
1543
|
+
_server: Server
|
|
1544
|
+
|
|
1545
|
+
constructor(server: Server) {
|
|
1546
|
+
this._server = server
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
export class AppBskyUnspeccedNS {
|
|
1551
|
+
_server: Server
|
|
1552
|
+
|
|
1553
|
+
constructor(server: Server) {
|
|
1554
|
+
this._server = server
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
getPopularFeedGenerators<AV extends AuthVerifier>(
|
|
1558
|
+
cfg: ConfigOf<
|
|
1559
|
+
AV,
|
|
1560
|
+
AppBskyUnspeccedGetPopularFeedGenerators.Handler<ExtractAuth<AV>>,
|
|
1561
|
+
AppBskyUnspeccedGetPopularFeedGenerators.HandlerReqCtx<ExtractAuth<AV>>
|
|
1562
|
+
>,
|
|
1563
|
+
) {
|
|
1564
|
+
const nsid = 'app.bsky.unspecced.getPopularFeedGenerators' // @ts-ignore
|
|
1565
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
getTimelineSkeleton<AV extends AuthVerifier>(
|
|
1569
|
+
cfg: ConfigOf<
|
|
1570
|
+
AV,
|
|
1571
|
+
AppBskyUnspeccedGetTimelineSkeleton.Handler<ExtractAuth<AV>>,
|
|
1572
|
+
AppBskyUnspeccedGetTimelineSkeleton.HandlerReqCtx<ExtractAuth<AV>>
|
|
1573
|
+
>,
|
|
1574
|
+
) {
|
|
1575
|
+
const nsid = 'app.bsky.unspecced.getTimelineSkeleton' // @ts-ignore
|
|
1576
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
searchActorsSkeleton<AV extends AuthVerifier>(
|
|
1580
|
+
cfg: ConfigOf<
|
|
1581
|
+
AV,
|
|
1582
|
+
AppBskyUnspeccedSearchActorsSkeleton.Handler<ExtractAuth<AV>>,
|
|
1583
|
+
AppBskyUnspeccedSearchActorsSkeleton.HandlerReqCtx<ExtractAuth<AV>>
|
|
1584
|
+
>,
|
|
1585
|
+
) {
|
|
1586
|
+
const nsid = 'app.bsky.unspecced.searchActorsSkeleton' // @ts-ignore
|
|
1587
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
searchPostsSkeleton<AV extends AuthVerifier>(
|
|
1591
|
+
cfg: ConfigOf<
|
|
1592
|
+
AV,
|
|
1593
|
+
AppBskyUnspeccedSearchPostsSkeleton.Handler<ExtractAuth<AV>>,
|
|
1594
|
+
AppBskyUnspeccedSearchPostsSkeleton.HandlerReqCtx<ExtractAuth<AV>>
|
|
1595
|
+
>,
|
|
1596
|
+
) {
|
|
1597
|
+
const nsid = 'app.bsky.unspecced.searchPostsSkeleton' // @ts-ignore
|
|
1598
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
type SharedRateLimitOpts<T> = {
|
|
1603
|
+
name: string
|
|
1604
|
+
calcKey?: (ctx: T) => string
|
|
1605
|
+
calcPoints?: (ctx: T) => number
|
|
1606
|
+
}
|
|
1607
|
+
type RouteRateLimitOpts<T> = {
|
|
1608
|
+
durationMs: number
|
|
1609
|
+
points: number
|
|
1610
|
+
calcKey?: (ctx: T) => string
|
|
1611
|
+
calcPoints?: (ctx: T) => number
|
|
1612
|
+
}
|
|
1613
|
+
type HandlerOpts = { blobLimit?: number }
|
|
1614
|
+
type HandlerRateLimitOpts<T> = SharedRateLimitOpts<T> | RouteRateLimitOpts<T>
|
|
1615
|
+
type ConfigOf<Auth, Handler, ReqCtx> =
|
|
1616
|
+
| Handler
|
|
1617
|
+
| {
|
|
1618
|
+
auth?: Auth
|
|
1619
|
+
opts?: HandlerOpts
|
|
1620
|
+
rateLimit?: HandlerRateLimitOpts<ReqCtx> | HandlerRateLimitOpts<ReqCtx>[]
|
|
1621
|
+
handler: Handler
|
|
1622
|
+
}
|
|
1623
|
+
type ExtractAuth<AV extends AuthVerifier | StreamAuthVerifier> = Extract<
|
|
1624
|
+
Awaited<ReturnType<AV>>,
|
|
1625
|
+
{ credentials: unknown }
|
|
1626
|
+
>
|