@atproto/bsky 0.0.28 → 0.0.30
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 +15 -0
- package/LICENSE.txt +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +1 -0
- package/dist/auto-moderator/index.d.ts +1 -14
- package/dist/context.d.ts +0 -3
- package/dist/db/index.js +43762 -12377
- package/dist/db/index.js.map +3 -3
- package/dist/db/pagination.d.ts +1 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.js +2422 -2135
- package/dist/index.js.map +3 -3
- package/dist/indexer/config.d.ts +0 -8
- package/dist/lexicon/index.d.ts +0 -2
- package/dist/lexicon/lexicons.d.ts +134 -52
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/actor/getPreferences.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/getProfile.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/getProfiles.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/getSuggestions.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/searchActors.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/searchActorsTypeahead.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getActorFeeds.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getActorLikes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeed.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeedGenerator.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeedGenerators.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeedSkeleton.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getLikes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getListFeed.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getPostThread.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getPosts.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getRepostedBy.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getSuggestedFeeds.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getTimeline.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getBlocks.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getFollowers.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getFollows.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getList.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getListBlocks.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getListMutes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getLists.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getMutes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getRelationships.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/createCommunicationTemplate.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getAccountInfo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getAccountInfos.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getInviteCodes.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getModerationEvent.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/listCommunicationTemplates.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +9 -2
- package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/sendEmail.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/updateCommunicationTemplate.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/label/queryLabels.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/moderation/createReport.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/describeRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createAppPassword.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createInviteCode.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createInviteCodes.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/getAccountInviteCodes.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/listAppPasswords.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getHead.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getLatestCommit.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/listBlobs.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/checkSignupQueue.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/fetchLabels.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/importRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/transferAccount.d.ts +2 -2
- package/dist/services/feed/index.d.ts +2 -1
- package/package.json +8 -7
- package/src/api/app/bsky/actor/getSuggestions.ts +1 -1
- package/src/api/app/bsky/actor/searchActors.ts +1 -0
- package/src/api/app/bsky/feed/getActorFeeds.ts +6 -0
- package/src/api/app/bsky/feed/getActorLikes.ts +4 -0
- package/src/api/app/bsky/feed/getAuthorFeed.ts +16 -4
- package/src/api/app/bsky/feed/getFeed.ts +8 -5
- package/src/api/app/bsky/feed/getLikes.ts +4 -0
- package/src/api/app/bsky/feed/getListFeed.ts +4 -0
- package/src/api/app/bsky/feed/getRepostedBy.ts +4 -0
- package/src/api/app/bsky/feed/getSuggestedFeeds.ts +1 -1
- package/src/api/app/bsky/feed/getTimeline.ts +4 -0
- package/src/api/app/bsky/feed/searchPosts.ts +1 -0
- package/src/api/app/bsky/graph/getBlocks.ts +7 -0
- package/src/api/app/bsky/graph/getFollowers.ts +4 -0
- package/src/api/app/bsky/graph/getFollows.ts +4 -0
- package/src/api/app/bsky/graph/getList.ts +4 -0
- package/src/api/app/bsky/graph/getListBlocks.ts +4 -0
- package/src/api/app/bsky/graph/getListMutes.ts +7 -0
- package/src/api/app/bsky/graph/getLists.ts +7 -0
- package/src/api/app/bsky/graph/getMutes.ts +7 -0
- package/src/api/app/bsky/notification/listNotifications.ts +3 -0
- package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +7 -1
- package/src/api/index.ts +0 -6
- package/src/auto-moderator/index.ts +9 -176
- package/src/context.ts +0 -6
- package/src/db/pagination.ts +3 -0
- package/src/index.ts +1 -6
- package/src/indexer/config.ts +0 -29
- package/src/lexicon/index.ts +0 -12
- package/src/lexicon/lexicons.ts +382 -173
- package/src/lexicon/types/app/bsky/actor/defs.ts +2 -0
- package/src/lexicon/types/app/bsky/actor/getPreferences.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/getProfile.ts +3 -2
- package/src/lexicon/types/app/bsky/actor/getProfiles.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/getSuggestions.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/profile.ts +3 -0
- package/src/lexicon/types/app/bsky/actor/putPreferences.ts +1 -1
- package/src/lexicon/types/app/bsky/actor/searchActors.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +2 -2
- package/src/lexicon/types/app/bsky/embed/external.ts +1 -0
- package/src/lexicon/types/app/bsky/embed/images.ts +4 -0
- package/src/lexicon/types/app/bsky/embed/record.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getActorFeeds.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getActorLikes.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getFeed.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getFeedGenerator.ts +5 -2
- package/src/lexicon/types/app/bsky/feed/getFeedGenerators.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getLikes.ts +4 -2
- package/src/lexicon/types/app/bsky/feed/getListFeed.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getPostThread.ts +5 -2
- package/src/lexicon/types/app/bsky/feed/getPosts.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getRepostedBy.ts +4 -2
- package/src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getTimeline.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/post.ts +5 -1
- package/src/lexicon/types/app/bsky/feed/searchPosts.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/block.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/getBlocks.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getFollowers.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getFollows.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getList.ts +3 -2
- package/src/lexicon/types/app/bsky/graph/getListBlocks.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getListMutes.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getLists.ts +3 -2
- package/src/lexicon/types/app/bsky/graph/getMutes.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getRelationships.ts +4 -2
- package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/list.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/listblock.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/listitem.ts +2 -0
- package/src/lexicon/types/app/bsky/graph/muteActor.ts +1 -1
- package/src/lexicon/types/app/bsky/graph/muteActorList.ts +1 -1
- package/src/lexicon/types/app/bsky/graph/unmuteActor.ts +1 -1
- package/src/lexicon/types/app/bsky/graph/unmuteActorList.ts +1 -1
- package/src/lexicon/types/app/bsky/notification/getUnreadCount.ts +2 -2
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +2 -2
- package/src/lexicon/types/app/bsky/notification/registerPush.ts +1 -1
- package/src/lexicon/types/app/bsky/notification/updateSeen.ts +1 -1
- package/src/lexicon/types/app/bsky/richtext/facet.ts +5 -4
- package/src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts +2 -2
- package/src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts +2 -2
- package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +2 -2
- package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/createCommunicationTemplate.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/defs.ts +2 -0
- package/src/lexicon/types/com/atproto/admin/deleteAccount.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/disableInviteCodes.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/getAccountInfo.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getAccountInfos.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getInviteCodes.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getModerationEvent.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getRecord.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getRepo.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/listCommunicationTemplates.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +15 -2
- package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/searchRepos.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/sendEmail.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/updateAccountEmail.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/updateAccountHandle.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/updateCommunicationTemplate.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +2 -2
- package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +2 -2
- package/src/lexicon/types/com/atproto/identity/updateHandle.ts +2 -1
- package/src/lexicon/types/com/atproto/label/queryLabels.ts +2 -2
- package/src/lexicon/types/com/atproto/label/subscribeLabels.ts +1 -1
- package/src/lexicon/types/com/atproto/moderation/createReport.ts +3 -2
- package/src/lexicon/types/com/atproto/repo/applyWrites.ts +7 -6
- package/src/lexicon/types/com/atproto/repo/createRecord.ts +6 -6
- package/src/lexicon/types/com/atproto/repo/deleteRecord.ts +3 -3
- package/src/lexicon/types/com/atproto/repo/describeRepo.ts +5 -2
- package/src/lexicon/types/com/atproto/repo/getRecord.ts +3 -3
- package/src/lexicon/types/com/atproto/repo/listRecords.ts +2 -2
- package/src/lexicon/types/com/atproto/repo/putRecord.ts +6 -6
- package/src/lexicon/types/com/atproto/repo/uploadBlob.ts +2 -2
- package/src/lexicon/types/com/atproto/server/confirmEmail.ts +1 -1
- package/src/lexicon/types/com/atproto/server/createAccount.ts +10 -2
- package/src/lexicon/types/com/atproto/server/createAppPassword.ts +3 -2
- package/src/lexicon/types/com/atproto/server/createInviteCode.ts +2 -2
- package/src/lexicon/types/com/atproto/server/createInviteCodes.ts +2 -2
- package/src/lexicon/types/com/atproto/server/createSession.ts +2 -2
- package/src/lexicon/types/com/atproto/server/deleteAccount.ts +1 -1
- package/src/lexicon/types/com/atproto/server/deleteSession.ts +1 -1
- package/src/lexicon/types/com/atproto/server/describeServer.ts +5 -2
- package/src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts +3 -2
- package/src/lexicon/types/com/atproto/server/getSession.ts +2 -2
- package/src/lexicon/types/com/atproto/server/listAppPasswords.ts +2 -2
- package/src/lexicon/types/com/atproto/server/refreshSession.ts +2 -2
- package/src/lexicon/types/com/atproto/server/requestAccountDelete.ts +1 -1
- package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +1 -1
- package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +2 -2
- package/src/lexicon/types/com/atproto/server/requestPasswordReset.ts +1 -1
- package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +4 -4
- package/src/lexicon/types/com/atproto/server/resetPassword.ts +1 -1
- package/src/lexicon/types/com/atproto/server/revokeAppPassword.ts +1 -1
- package/src/lexicon/types/com/atproto/server/updateEmail.ts +1 -1
- package/src/lexicon/types/com/atproto/sync/getBlob.ts +3 -3
- package/src/lexicon/types/com/atproto/sync/getBlocks.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getCheckout.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getHead.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getLatestCommit.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getRecord.ts +3 -2
- package/src/lexicon/types/com/atproto/sync/getRepo.ts +3 -3
- package/src/lexicon/types/com/atproto/sync/listBlobs.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/listRepos.ts +3 -2
- package/src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/requestCrawl.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +17 -5
- package/src/lexicon/types/com/atproto/temp/checkSignupQueue.ts +2 -2
- package/src/lexicon/types/com/atproto/temp/fetchLabels.ts +2 -2
- package/src/lexicon/types/com/atproto/temp/importRepo.ts +2 -2
- package/src/lexicon/types/com/atproto/temp/pushBlob.ts +1 -1
- package/src/lexicon/types/com/atproto/temp/requestPhoneVerification.ts +1 -1
- package/src/lexicon/types/com/atproto/temp/transferAccount.ts +2 -2
- package/src/logger.ts +32 -0
- package/src/services/feed/index.ts +10 -4
- package/src/services/feed/views.ts +3 -1
- package/tests/auto-moderator/labeler.test.ts +2 -0
- package/tests/feed-generation.test.ts +0 -6
- package/tests/views/author-feed.test.ts +29 -9
- package/tests/views/notifications.test.ts +9 -0
- package/tests/views/timeline.test.ts +8 -0
- package/dist/api/app/bsky/feed/describeFeedGenerator.d.ts +0 -3
- package/dist/api/app/bsky/feed/getFeedSkeleton.d.ts +0 -3
- package/dist/api/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -3
- package/dist/auto-moderator/abyss.d.ts +0 -48
- package/dist/auto-moderator/fuzzy-matcher.d.ts +0 -14
- package/dist/feed-gen/bsky-team.d.ts +0 -3
- package/dist/feed-gen/hot-classic.d.ts +0 -3
- package/dist/feed-gen/index.d.ts +0 -2
- package/dist/feed-gen/mutuals.d.ts +0 -3
- package/dist/feed-gen/types.d.ts +0 -15
- package/dist/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -35
- package/src/api/app/bsky/feed/describeFeedGenerator.ts +0 -21
- package/src/api/app/bsky/feed/getFeedSkeleton.ts +0 -30
- package/src/api/app/bsky/unspecced/getTimelineSkeleton.ts +0 -26
- package/src/auto-moderator/abyss.ts +0 -114
- package/src/auto-moderator/fuzzy-matcher.ts +0 -126
- package/src/feed-gen/bsky-team.ts +0 -42
- package/src/feed-gen/hot-classic.ts +0 -55
- package/src/feed-gen/index.ts +0 -17
- package/src/feed-gen/mutuals.ts +0 -57
- package/src/feed-gen/types.ts +0 -32
- package/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts +0 -49
- package/tests/algos/hot-classic.test.ts +0 -87
- package/tests/auto-moderator/fuzzy-matcher.test.ts +0 -163
- package/tests/auto-moderator/takedowns.test.ts +0 -202
|
@@ -74,6 +74,7 @@ export declare function validateContentLabelPref(v: unknown): ValidationResult;
|
|
|
74
74
|
export interface SavedFeedsPref {
|
|
75
75
|
pinned: string[];
|
|
76
76
|
saved: string[];
|
|
77
|
+
timelineIndex?: number;
|
|
77
78
|
[k: string]: unknown;
|
|
78
79
|
}
|
|
79
80
|
export declare function isSavedFeedsPref(v: unknown): v is SavedFeedsPref;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
}
|
|
@@ -20,7 +20,7 @@ export interface HandlerError {
|
|
|
20
20
|
status: number;
|
|
21
21
|
message?: string;
|
|
22
22
|
}
|
|
23
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
23
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
24
24
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
25
25
|
auth: HA;
|
|
26
26
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -18,7 +18,7 @@ export interface HandlerError {
|
|
|
18
18
|
status: number;
|
|
19
19
|
message?: string;
|
|
20
20
|
}
|
|
21
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
21
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
22
22
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
23
23
|
auth: HA;
|
|
24
24
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actors: string[];
|
|
@@ -21,7 +21,7 @@ export interface HandlerError {
|
|
|
21
21
|
status: number;
|
|
22
22
|
message?: string;
|
|
23
23
|
}
|
|
24
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
24
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
25
25
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
26
26
|
auth: HA;
|
|
27
27
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
limit: number;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
term?: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
status: number;
|
|
26
26
|
message?: string;
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
term?: string;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
2
|
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
}
|
|
6
6
|
export type InputSchema = undefined;
|
|
@@ -22,7 +22,7 @@ export interface HandlerError {
|
|
|
22
22
|
status: number;
|
|
23
23
|
message?: string;
|
|
24
24
|
}
|
|
25
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
25
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
26
26
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
27
27
|
auth: HA;
|
|
28
28
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -24,7 +24,7 @@ export interface HandlerError {
|
|
|
24
24
|
status: number;
|
|
25
25
|
message?: string;
|
|
26
26
|
}
|
|
27
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
27
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
28
28
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
29
29
|
auth: HA;
|
|
30
30
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
message?: string;
|
|
26
26
|
error?: 'BlockedActor' | 'BlockedByActor';
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -26,7 +26,7 @@ export interface HandlerError {
|
|
|
26
26
|
message?: string;
|
|
27
27
|
error?: 'BlockedActor' | 'BlockedByActor';
|
|
28
28
|
}
|
|
29
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
29
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
30
30
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
31
31
|
auth: HA;
|
|
32
32
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
feed: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
message?: string;
|
|
26
26
|
error?: 'UnknownFeed';
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
feed: string;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
feeds: string[];
|
|
@@ -21,7 +21,7 @@ export interface HandlerError {
|
|
|
21
21
|
status: number;
|
|
22
22
|
message?: string;
|
|
23
23
|
}
|
|
24
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
24
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
25
25
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
26
26
|
auth: HA;
|
|
27
27
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
feed: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
message?: string;
|
|
26
26
|
error?: 'UnknownFeed';
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
2
|
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
4
4
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
5
5
|
export interface QueryParams {
|
|
6
6
|
uri: string;
|
|
@@ -28,7 +28,7 @@ export interface HandlerError {
|
|
|
28
28
|
status: number;
|
|
29
29
|
message?: string;
|
|
30
30
|
}
|
|
31
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
31
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
32
32
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
33
33
|
auth: HA;
|
|
34
34
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
list: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
message?: string;
|
|
26
26
|
error?: 'UnknownList';
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
uri: string;
|
|
@@ -27,7 +27,7 @@ export interface HandlerError {
|
|
|
27
27
|
message?: string;
|
|
28
28
|
error?: 'NotFound';
|
|
29
29
|
}
|
|
30
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
31
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
32
|
auth: HA;
|
|
33
33
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
uris: string[];
|
|
@@ -21,7 +21,7 @@ export interface HandlerError {
|
|
|
21
21
|
status: number;
|
|
22
22
|
message?: string;
|
|
23
23
|
}
|
|
24
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
24
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
25
25
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
26
26
|
auth: HA;
|
|
27
27
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
uri: string;
|
|
@@ -27,7 +27,7 @@ export interface HandlerError {
|
|
|
27
27
|
status: number;
|
|
28
28
|
message?: string;
|
|
29
29
|
}
|
|
30
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
31
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
32
|
auth: HA;
|
|
33
33
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
limit: number;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
algorithm?: string;
|
|
@@ -24,7 +24,7 @@ export interface HandlerError {
|
|
|
24
24
|
status: number;
|
|
25
25
|
message?: string;
|
|
26
26
|
}
|
|
27
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
27
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
28
28
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
29
29
|
auth: HA;
|
|
30
30
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
q: string;
|
|
@@ -26,7 +26,7 @@ export interface HandlerError {
|
|
|
26
26
|
message?: string;
|
|
27
27
|
error?: 'BadQueryString';
|
|
28
28
|
}
|
|
29
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
29
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
30
30
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
31
31
|
auth: HA;
|
|
32
32
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
limit: number;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
status: number;
|
|
26
26
|
message?: string;
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
status: number;
|
|
26
26
|
message?: string;
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyGraphDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
list: string;
|
|
@@ -25,7 +25,7 @@ export interface HandlerError {
|
|
|
25
25
|
status: number;
|
|
26
26
|
message?: string;
|
|
27
27
|
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
29
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
30
|
auth: HA;
|
|
31
31
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyGraphDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
limit: number;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyGraphDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
limit: number;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyGraphDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -24,7 +24,7 @@ export interface HandlerError {
|
|
|
24
24
|
status: number;
|
|
25
25
|
message?: string;
|
|
26
26
|
}
|
|
27
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
27
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
28
28
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
29
29
|
auth: HA;
|
|
30
30
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
limit: number;
|
|
@@ -23,7 +23,7 @@ export interface HandlerError {
|
|
|
23
23
|
status: number;
|
|
24
24
|
message?: string;
|
|
25
25
|
}
|
|
26
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
27
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
28
|
auth: HA;
|
|
29
29
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyGraphDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -27,7 +27,7 @@ export interface HandlerError {
|
|
|
27
27
|
message?: string;
|
|
28
28
|
error?: 'ActorNotFound';
|
|
29
29
|
}
|
|
30
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
31
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
32
|
auth: HA;
|
|
33
33
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
actor: string;
|
|
@@ -21,7 +21,7 @@ export interface HandlerError {
|
|
|
21
21
|
status: number;
|
|
22
22
|
message?: string;
|
|
23
23
|
}
|
|
24
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
24
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
25
25
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
26
26
|
auth: HA;
|
|
27
27
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
seenAt?: string;
|
|
5
5
|
}
|
|
@@ -20,7 +20,7 @@ export interface HandlerError {
|
|
|
20
20
|
status: number;
|
|
21
21
|
message?: string;
|
|
22
22
|
}
|
|
23
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
23
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
24
24
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
25
25
|
auth: HA;
|
|
26
26
|
params: QueryParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
2
|
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
4
4
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
5
5
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
|
|
6
6
|
export interface QueryParams {
|
|
@@ -27,7 +27,7 @@ export interface HandlerError {
|
|
|
27
27
|
status: number;
|
|
28
28
|
message?: string;
|
|
29
29
|
}
|
|
30
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
31
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
32
|
auth: HA;
|
|
33
33
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyFeedDefs from '../feed/defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
limit: number;
|
|
@@ -24,7 +24,7 @@ export interface HandlerError {
|
|
|
24
24
|
status: number;
|
|
25
25
|
message?: string;
|
|
26
26
|
}
|
|
27
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
27
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
28
28
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
29
29
|
auth: HA;
|
|
30
30
|
params: QueryParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
2
|
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
}
|
|
6
6
|
export type InputSchema = undefined;
|
|
@@ -20,7 +20,7 @@ export interface HandlerError {
|
|
|
20
20
|
status: number;
|
|
21
21
|
message?: string;
|
|
22
22
|
}
|
|
23
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
23
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
24
24
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
25
25
|
auth: HA;
|
|
26
26
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyUnspeccedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
q: string;
|
|
@@ -27,7 +27,7 @@ export interface HandlerError {
|
|
|
27
27
|
message?: string;
|
|
28
28
|
error?: 'BadQueryString';
|
|
29
29
|
}
|
|
30
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
31
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
32
|
auth: HA;
|
|
33
33
|
params: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
3
|
import * as AppBskyUnspeccedDefs from './defs';
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
q: string;
|
|
@@ -26,7 +26,7 @@ export interface HandlerError {
|
|
|
26
26
|
message?: string;
|
|
27
27
|
error?: 'BadQueryString';
|
|
28
28
|
}
|
|
29
|
-
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
29
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
30
30
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
31
31
|
auth: HA;
|
|
32
32
|
params: QueryParams;
|