@atproto/pds 0.4.20 → 0.4.22
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/dist/api/app/bsky/actor/index.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/index.js +0 -6
- package/dist/api/app/bsky/actor/index.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.js +1 -3
- package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/index.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/index.js +0 -20
- package/dist/api/app/bsky/feed/index.js.map +1 -1
- package/dist/api/app/bsky/index.d.ts.map +1 -1
- package/dist/api/app/bsky/index.js +0 -6
- package/dist/api/app/bsky/index.js.map +1 -1
- package/dist/api/app/bsky/notification/index.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/index.js +0 -6
- package/dist/api/app/bsky/notification/index.js.map +1 -1
- package/dist/api/com/atproto/index.d.ts.map +1 -1
- package/dist/api/com/atproto/index.js +0 -2
- package/dist/api/com/atproto/index.js.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.js +1 -1
- package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +30 -0
- package/dist/context.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -45
- package/dist/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +59 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +164 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +907 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +932 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
- package/dist/pipethrough.d.ts +12 -22
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +159 -81
- package/dist/pipethrough.js.map +1 -1
- package/package.json +5 -5
- package/src/api/app/bsky/actor/index.ts +0 -6
- package/src/api/app/bsky/feed/getFeed.ts +1 -3
- package/src/api/app/bsky/feed/index.ts +0 -20
- package/src/api/app/bsky/index.ts +0 -6
- package/src/api/app/bsky/notification/index.ts +0 -7
- package/src/api/com/atproto/index.ts +0 -2
- package/src/api/com/atproto/repo/getRecord.ts +1 -1
- package/src/api/index.ts +0 -2
- package/src/context.ts +34 -1
- package/src/index.ts +27 -51
- package/src/lexicon/index.ts +254 -0
- package/src/lexicon/lexicons.ts +933 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
- package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
- package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
- package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
- package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
- package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
- package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
- package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
- package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
- package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +52 -0
- package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
- package/src/pipethrough.ts +184 -114
- package/dist/api/app/bsky/actor/getSuggestions.d.ts +0 -4
- package/dist/api/app/bsky/actor/getSuggestions.d.ts.map +0 -1
- package/dist/api/app/bsky/actor/getSuggestions.js +0 -19
- package/dist/api/app/bsky/actor/getSuggestions.js.map +0 -1
- package/dist/api/app/bsky/actor/searchActors.d.ts +0 -4
- package/dist/api/app/bsky/actor/searchActors.d.ts.map +0 -1
- package/dist/api/app/bsky/actor/searchActors.js +0 -17
- package/dist/api/app/bsky/actor/searchActors.js.map +0 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts +0 -4
- package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts.map +0 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js +0 -17
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +0 -1
- package/dist/api/app/bsky/feed/getActorFeeds.d.ts +0 -4
- package/dist/api/app/bsky/feed/getActorFeeds.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getActorFeeds.js +0 -17
- package/dist/api/app/bsky/feed/getActorFeeds.js.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerator.d.ts +0 -4
- package/dist/api/app/bsky/feed/getFeedGenerator.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerator.js +0 -17
- package/dist/api/app/bsky/feed/getFeedGenerator.js.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerators.d.ts +0 -4
- package/dist/api/app/bsky/feed/getFeedGenerators.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getFeedGenerators.js +0 -17
- package/dist/api/app/bsky/feed/getFeedGenerators.js.map +0 -1
- package/dist/api/app/bsky/feed/getLikes.d.ts +0 -4
- package/dist/api/app/bsky/feed/getLikes.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getLikes.js +0 -17
- package/dist/api/app/bsky/feed/getLikes.js.map +0 -1
- package/dist/api/app/bsky/feed/getListFeed.d.ts +0 -4
- package/dist/api/app/bsky/feed/getListFeed.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getListFeed.js +0 -17
- package/dist/api/app/bsky/feed/getListFeed.js.map +0 -1
- package/dist/api/app/bsky/feed/getPosts.d.ts +0 -4
- package/dist/api/app/bsky/feed/getPosts.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getPosts.js +0 -17
- package/dist/api/app/bsky/feed/getPosts.js.map +0 -1
- package/dist/api/app/bsky/feed/getRepostedBy.d.ts +0 -4
- package/dist/api/app/bsky/feed/getRepostedBy.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getRepostedBy.js +0 -17
- package/dist/api/app/bsky/feed/getRepostedBy.js.map +0 -1
- package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts +0 -4
- package/dist/api/app/bsky/feed/getSuggestedFeeds.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/getSuggestedFeeds.js +0 -17
- package/dist/api/app/bsky/feed/getSuggestedFeeds.js.map +0 -1
- package/dist/api/app/bsky/feed/searchPosts.d.ts +0 -4
- package/dist/api/app/bsky/feed/searchPosts.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/searchPosts.js +0 -17
- package/dist/api/app/bsky/feed/searchPosts.js.map +0 -1
- package/dist/api/app/bsky/feed/sendInteractions.d.ts +0 -4
- package/dist/api/app/bsky/feed/sendInteractions.d.ts.map +0 -1
- package/dist/api/app/bsky/feed/sendInteractions.js +0 -14
- package/dist/api/app/bsky/feed/sendInteractions.js.map +0 -1
- package/dist/api/app/bsky/graph/getBlocks.d.ts +0 -4
- package/dist/api/app/bsky/graph/getBlocks.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getBlocks.js +0 -17
- package/dist/api/app/bsky/graph/getBlocks.js.map +0 -1
- package/dist/api/app/bsky/graph/getFollowers.d.ts +0 -4
- package/dist/api/app/bsky/graph/getFollowers.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getFollowers.js +0 -17
- package/dist/api/app/bsky/graph/getFollowers.js.map +0 -1
- package/dist/api/app/bsky/graph/getFollows.d.ts +0 -4
- package/dist/api/app/bsky/graph/getFollows.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getFollows.js +0 -17
- package/dist/api/app/bsky/graph/getFollows.js.map +0 -1
- package/dist/api/app/bsky/graph/getList.d.ts +0 -4
- package/dist/api/app/bsky/graph/getList.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getList.js +0 -17
- package/dist/api/app/bsky/graph/getList.js.map +0 -1
- package/dist/api/app/bsky/graph/getListBlocks.d.ts +0 -4
- package/dist/api/app/bsky/graph/getListBlocks.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getListBlocks.js +0 -17
- package/dist/api/app/bsky/graph/getListBlocks.js.map +0 -1
- package/dist/api/app/bsky/graph/getListMutes.d.ts +0 -4
- package/dist/api/app/bsky/graph/getListMutes.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getListMutes.js +0 -17
- package/dist/api/app/bsky/graph/getListMutes.js.map +0 -1
- package/dist/api/app/bsky/graph/getLists.d.ts +0 -4
- package/dist/api/app/bsky/graph/getLists.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getLists.js +0 -17
- package/dist/api/app/bsky/graph/getLists.js.map +0 -1
- package/dist/api/app/bsky/graph/getMutes.d.ts +0 -4
- package/dist/api/app/bsky/graph/getMutes.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getMutes.js +0 -17
- package/dist/api/app/bsky/graph/getMutes.js.map +0 -1
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts +0 -4
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js +0 -17
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +0 -1
- package/dist/api/app/bsky/graph/index.d.ts +0 -4
- package/dist/api/app/bsky/graph/index.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/index.js +0 -35
- package/dist/api/app/bsky/graph/index.js.map +0 -1
- package/dist/api/app/bsky/graph/muteActor.d.ts +0 -4
- package/dist/api/app/bsky/graph/muteActor.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/muteActor.js +0 -14
- package/dist/api/app/bsky/graph/muteActor.js.map +0 -1
- package/dist/api/app/bsky/graph/muteActorList.d.ts +0 -4
- package/dist/api/app/bsky/graph/muteActorList.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/muteActorList.js +0 -14
- package/dist/api/app/bsky/graph/muteActorList.js.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActor.d.ts +0 -4
- package/dist/api/app/bsky/graph/unmuteActor.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActor.js +0 -14
- package/dist/api/app/bsky/graph/unmuteActor.js.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActorList.d.ts +0 -4
- package/dist/api/app/bsky/graph/unmuteActorList.d.ts.map +0 -1
- package/dist/api/app/bsky/graph/unmuteActorList.js +0 -14
- package/dist/api/app/bsky/graph/unmuteActorList.js.map +0 -1
- package/dist/api/app/bsky/labeler/getServices.d.ts +0 -4
- package/dist/api/app/bsky/labeler/getServices.d.ts.map +0 -1
- package/dist/api/app/bsky/labeler/getServices.js +0 -14
- package/dist/api/app/bsky/labeler/getServices.js.map +0 -1
- package/dist/api/app/bsky/labeler/index.d.ts +0 -4
- package/dist/api/app/bsky/labeler/index.d.ts.map +0 -1
- package/dist/api/app/bsky/labeler/index.js +0 -11
- package/dist/api/app/bsky/labeler/index.js.map +0 -1
- package/dist/api/app/bsky/notification/getUnreadCount.d.ts +0 -4
- package/dist/api/app/bsky/notification/getUnreadCount.d.ts.map +0 -1
- package/dist/api/app/bsky/notification/getUnreadCount.js +0 -17
- package/dist/api/app/bsky/notification/getUnreadCount.js.map +0 -1
- package/dist/api/app/bsky/notification/listNotifications.d.ts +0 -4
- package/dist/api/app/bsky/notification/listNotifications.d.ts.map +0 -1
- package/dist/api/app/bsky/notification/listNotifications.js +0 -17
- package/dist/api/app/bsky/notification/listNotifications.js.map +0 -1
- package/dist/api/app/bsky/notification/updateSeen.d.ts +0 -4
- package/dist/api/app/bsky/notification/updateSeen.d.ts.map +0 -1
- package/dist/api/app/bsky/notification/updateSeen.js +0 -14
- package/dist/api/app/bsky/notification/updateSeen.js.map +0 -1
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js +0 -18
- package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js.map +0 -1
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js +0 -18
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.js.map +0 -1
- package/dist/api/app/bsky/unspecced/index.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/index.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/index.js +0 -14
- package/dist/api/app/bsky/unspecced/index.js.map +0 -1
- package/dist/api/com/atproto/moderation/createReport.d.ts +0 -4
- package/dist/api/com/atproto/moderation/createReport.d.ts.map +0 -1
- package/dist/api/com/atproto/moderation/createReport.js +0 -14
- package/dist/api/com/atproto/moderation/createReport.js.map +0 -1
- package/dist/api/com/atproto/moderation/index.d.ts +0 -4
- package/dist/api/com/atproto/moderation/index.d.ts.map +0 -1
- package/dist/api/com/atproto/moderation/index.js +0 -11
- package/dist/api/com/atproto/moderation/index.js.map +0 -1
- package/dist/api/tools/ozone/communication/createTemplate.d.ts +0 -4
- package/dist/api/tools/ozone/communication/createTemplate.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/createTemplate.js +0 -14
- package/dist/api/tools/ozone/communication/createTemplate.js.map +0 -1
- package/dist/api/tools/ozone/communication/deleteTemplate.d.ts +0 -4
- package/dist/api/tools/ozone/communication/deleteTemplate.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/deleteTemplate.js +0 -14
- package/dist/api/tools/ozone/communication/deleteTemplate.js.map +0 -1
- package/dist/api/tools/ozone/communication/index.d.ts +0 -4
- package/dist/api/tools/ozone/communication/index.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/index.js +0 -17
- package/dist/api/tools/ozone/communication/index.js.map +0 -1
- package/dist/api/tools/ozone/communication/listTemplates.d.ts +0 -4
- package/dist/api/tools/ozone/communication/listTemplates.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/listTemplates.js +0 -14
- package/dist/api/tools/ozone/communication/listTemplates.js.map +0 -1
- package/dist/api/tools/ozone/communication/updateTemplate.d.ts +0 -4
- package/dist/api/tools/ozone/communication/updateTemplate.d.ts.map +0 -1
- package/dist/api/tools/ozone/communication/updateTemplate.js +0 -14
- package/dist/api/tools/ozone/communication/updateTemplate.js.map +0 -1
- package/dist/api/tools/ozone/index.d.ts +0 -4
- package/dist/api/tools/ozone/index.d.ts.map +0 -1
- package/dist/api/tools/ozone/index.js +0 -13
- package/dist/api/tools/ozone/index.js.map +0 -1
- package/dist/api/tools/ozone/moderation/emitEvent.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/emitEvent.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/emitEvent.js +0 -14
- package/dist/api/tools/ozone/moderation/emitEvent.js.map +0 -1
- package/dist/api/tools/ozone/moderation/getEvent.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/getEvent.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/getEvent.js +0 -14
- package/dist/api/tools/ozone/moderation/getEvent.js.map +0 -1
- package/dist/api/tools/ozone/moderation/getRecord.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/getRecord.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/getRecord.js +0 -14
- package/dist/api/tools/ozone/moderation/getRecord.js.map +0 -1
- package/dist/api/tools/ozone/moderation/getRepo.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/getRepo.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/getRepo.js +0 -14
- package/dist/api/tools/ozone/moderation/getRepo.js.map +0 -1
- package/dist/api/tools/ozone/moderation/index.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/index.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/index.js +0 -23
- package/dist/api/tools/ozone/moderation/index.js.map +0 -1
- package/dist/api/tools/ozone/moderation/queryEvents.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/queryEvents.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/queryEvents.js +0 -14
- package/dist/api/tools/ozone/moderation/queryEvents.js.map +0 -1
- package/dist/api/tools/ozone/moderation/queryStatuses.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/queryStatuses.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/queryStatuses.js +0 -14
- package/dist/api/tools/ozone/moderation/queryStatuses.js.map +0 -1
- package/dist/api/tools/ozone/moderation/searchRepos.d.ts +0 -4
- package/dist/api/tools/ozone/moderation/searchRepos.d.ts.map +0 -1
- package/dist/api/tools/ozone/moderation/searchRepos.js +0 -14
- package/dist/api/tools/ozone/moderation/searchRepos.js.map +0 -1
- package/src/api/app/bsky/actor/getSuggestions.ts +0 -17
- package/src/api/app/bsky/actor/searchActors.ts +0 -15
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +0 -15
- package/src/api/app/bsky/feed/getActorFeeds.ts +0 -15
- package/src/api/app/bsky/feed/getFeedGenerator.ts +0 -15
- package/src/api/app/bsky/feed/getFeedGenerators.ts +0 -15
- package/src/api/app/bsky/feed/getLikes.ts +0 -15
- package/src/api/app/bsky/feed/getListFeed.ts +0 -15
- package/src/api/app/bsky/feed/getPosts.ts +0 -15
- package/src/api/app/bsky/feed/getRepostedBy.ts +0 -15
- package/src/api/app/bsky/feed/getSuggestedFeeds.ts +0 -15
- package/src/api/app/bsky/feed/searchPosts.ts +0 -15
- package/src/api/app/bsky/feed/sendInteractions.ts +0 -13
- package/src/api/app/bsky/graph/getBlocks.ts +0 -15
- package/src/api/app/bsky/graph/getFollowers.ts +0 -15
- package/src/api/app/bsky/graph/getFollows.ts +0 -15
- package/src/api/app/bsky/graph/getList.ts +0 -15
- package/src/api/app/bsky/graph/getListBlocks.ts +0 -15
- package/src/api/app/bsky/graph/getListMutes.ts +0 -15
- package/src/api/app/bsky/graph/getLists.ts +0 -15
- package/src/api/app/bsky/graph/getMutes.ts +0 -15
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -15
- package/src/api/app/bsky/graph/index.ts +0 -31
- package/src/api/app/bsky/graph/muteActor.ts +0 -13
- package/src/api/app/bsky/graph/muteActorList.ts +0 -13
- package/src/api/app/bsky/graph/unmuteActor.ts +0 -13
- package/src/api/app/bsky/graph/unmuteActorList.ts +0 -13
- package/src/api/app/bsky/labeler/getServices.ts +0 -13
- package/src/api/app/bsky/labeler/index.ts +0 -7
- package/src/api/app/bsky/notification/getUnreadCount.ts +0 -15
- package/src/api/app/bsky/notification/listNotifications.ts +0 -15
- package/src/api/app/bsky/notification/updateSeen.ts +0 -13
- package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -16
- package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +0 -16
- package/src/api/app/bsky/unspecced/index.ts +0 -10
- package/src/api/com/atproto/moderation/createReport.ts +0 -13
- package/src/api/com/atproto/moderation/index.ts +0 -7
- package/src/api/tools/ozone/communication/createTemplate.ts +0 -13
- package/src/api/tools/ozone/communication/deleteTemplate.ts +0 -13
- package/src/api/tools/ozone/communication/index.ts +0 -13
- package/src/api/tools/ozone/communication/listTemplates.ts +0 -13
- package/src/api/tools/ozone/communication/updateTemplate.ts +0 -13
- package/src/api/tools/ozone/index.ts +0 -9
- package/src/api/tools/ozone/moderation/emitEvent.ts +0 -13
- package/src/api/tools/ozone/moderation/getEvent.ts +0 -13
- package/src/api/tools/ozone/moderation/getRecord.ts +0 -13
- package/src/api/tools/ozone/moderation/getRepo.ts +0 -13
- package/src/api/tools/ozone/moderation/index.ts +0 -19
- package/src/api/tools/ozone/moderation/queryEvents.ts +0 -13
- package/src/api/tools/ozone/moderation/queryStatuses.ts +0 -13
- package/src/api/tools/ozone/moderation/searchRepos.ts +0 -13
@@ -1,35 +1,15 @@
|
|
1
1
|
import { Server } from '../../../../lexicon'
|
2
2
|
import AppContext from '../../../../context'
|
3
|
-
import getActorFeeds from './getActorFeeds'
|
4
3
|
import getActorLikes from './getActorLikes'
|
5
4
|
import getAuthorFeed from './getAuthorFeed'
|
6
5
|
import getFeed from './getFeed'
|
7
|
-
import getFeedGenerator from './getFeedGenerator'
|
8
|
-
import getFeedGenerators from './getFeedGenerators'
|
9
|
-
import getLikes from './getLikes'
|
10
|
-
import getListFeed from './getListFeed'
|
11
|
-
import getPosts from './getPosts'
|
12
6
|
import getPostThread from './getPostThread'
|
13
|
-
import getRepostedBy from './getRepostedBy'
|
14
|
-
import getSuggestedFeeds from './getSuggestedFeeds'
|
15
7
|
import getTimeline from './getTimeline'
|
16
|
-
import searchPosts from './searchPosts'
|
17
|
-
import sendInteractions from './sendInteractions'
|
18
8
|
|
19
9
|
export default function (server: Server, ctx: AppContext) {
|
20
|
-
getActorFeeds(server, ctx)
|
21
10
|
getActorLikes(server, ctx)
|
22
11
|
getAuthorFeed(server, ctx)
|
23
12
|
getFeed(server, ctx)
|
24
|
-
getFeedGenerator(server, ctx)
|
25
|
-
getFeedGenerators(server, ctx)
|
26
|
-
getLikes(server, ctx)
|
27
|
-
getListFeed(server, ctx)
|
28
|
-
getPosts(server, ctx)
|
29
13
|
getPostThread(server, ctx)
|
30
|
-
getRepostedBy(server, ctx)
|
31
|
-
getSuggestedFeeds(server, ctx)
|
32
14
|
getTimeline(server, ctx)
|
33
|
-
searchPosts(server, ctx)
|
34
|
-
sendInteractions(server, ctx)
|
35
15
|
}
|
@@ -2,16 +2,10 @@ import { Server } from '../../../lexicon'
|
|
2
2
|
import AppContext from '../../../context'
|
3
3
|
import actor from './actor'
|
4
4
|
import feed from './feed'
|
5
|
-
import graph from './graph'
|
6
|
-
import labeler from './labeler'
|
7
5
|
import notification from './notification'
|
8
|
-
import unspecced from './unspecced'
|
9
6
|
|
10
7
|
export default function (server: Server, ctx: AppContext) {
|
11
8
|
actor(server, ctx)
|
12
9
|
feed(server, ctx)
|
13
|
-
graph(server, ctx)
|
14
|
-
labeler(server, ctx)
|
15
10
|
notification(server, ctx)
|
16
|
-
unspecced(server, ctx)
|
17
11
|
}
|
@@ -1,14 +1,7 @@
|
|
1
1
|
import { Server } from '../../../../lexicon'
|
2
2
|
import AppContext from '../../../../context'
|
3
|
-
|
4
|
-
import getUnreadCount from './getUnreadCount'
|
5
|
-
import listNotifications from './listNotifications'
|
6
3
|
import registerPush from './registerPush'
|
7
|
-
import updateSeen from './updateSeen'
|
8
4
|
|
9
5
|
export default function (server: Server, ctx: AppContext) {
|
10
|
-
getUnreadCount(server, ctx)
|
11
|
-
listNotifications(server, ctx)
|
12
6
|
registerPush(server, ctx)
|
13
|
-
updateSeen(server, ctx)
|
14
7
|
}
|
@@ -2,7 +2,6 @@ import AppContext from '../../../context'
|
|
2
2
|
import { Server } from '../../../lexicon'
|
3
3
|
import admin from './admin'
|
4
4
|
import identity from './identity'
|
5
|
-
import moderation from './moderation'
|
6
5
|
import repo from './repo'
|
7
6
|
import serverMethods from './server'
|
8
7
|
import sync from './sync'
|
@@ -11,7 +10,6 @@ import temp from './temp'
|
|
11
10
|
export default function (server: Server, ctx: AppContext) {
|
12
11
|
admin(server, ctx)
|
13
12
|
identity(server, ctx)
|
14
|
-
moderation(server, ctx)
|
15
13
|
repo(server, ctx)
|
16
14
|
serverMethods(server, ctx)
|
17
15
|
sync(server, ctx)
|
package/src/api/index.ts
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
import { Server } from '../lexicon'
|
2
2
|
import comAtproto from './com/atproto'
|
3
3
|
import appBsky from './app/bsky'
|
4
|
-
import toolsOzone from './tools/ozone'
|
5
4
|
import AppContext from '../context'
|
6
5
|
|
7
6
|
export default function (server: Server, ctx: AppContext) {
|
8
7
|
comAtproto(server, ctx)
|
9
8
|
appBsky(server, ctx)
|
10
|
-
toolsOzone(server, ctx)
|
11
9
|
return server
|
12
10
|
}
|
package/src/context.ts
CHANGED
@@ -6,7 +6,12 @@ import * as crypto from '@atproto/crypto'
|
|
6
6
|
import { IdResolver } from '@atproto/identity'
|
7
7
|
import { AtpAgent } from '@atproto/api'
|
8
8
|
import { KmsKeypair, S3BlobStore } from '@atproto/aws'
|
9
|
-
import {
|
9
|
+
import {
|
10
|
+
RateLimiter,
|
11
|
+
RateLimiterCreator,
|
12
|
+
RateLimiterOpts,
|
13
|
+
createServiceAuthHeaders,
|
14
|
+
} from '@atproto/xrpc-server'
|
10
15
|
import { ServerConfig, ServerSecrets } from './config'
|
11
16
|
import {
|
12
17
|
AuthVerifier,
|
@@ -39,6 +44,7 @@ export type AppContextOptions = {
|
|
39
44
|
sequencer: Sequencer
|
40
45
|
backgroundQueue: BackgroundQueue
|
41
46
|
redisScratch?: Redis
|
47
|
+
ratelimitCreator?: RateLimiterCreator
|
42
48
|
crawlers: Crawlers
|
43
49
|
appViewAgent?: AtpAgent
|
44
50
|
moderationAgent?: AtpAgent
|
@@ -62,6 +68,7 @@ export class AppContext {
|
|
62
68
|
public sequencer: Sequencer
|
63
69
|
public backgroundQueue: BackgroundQueue
|
64
70
|
public redisScratch?: Redis
|
71
|
+
public ratelimitCreator?: RateLimiterCreator
|
65
72
|
public crawlers: Crawlers
|
66
73
|
public appViewAgent: AtpAgent | undefined
|
67
74
|
public moderationAgent: AtpAgent | undefined
|
@@ -84,6 +91,7 @@ export class AppContext {
|
|
84
91
|
this.sequencer = opts.sequencer
|
85
92
|
this.backgroundQueue = opts.backgroundQueue
|
86
93
|
this.redisScratch = opts.redisScratch
|
94
|
+
this.ratelimitCreator = opts.ratelimitCreator
|
87
95
|
this.crawlers = opts.crawlers
|
88
96
|
this.appViewAgent = opts.appViewAgent
|
89
97
|
this.moderationAgent = opts.moderationAgent
|
@@ -160,6 +168,30 @@ export class AppContext {
|
|
160
168
|
? getRedisClient(cfg.redis.address, cfg.redis.password)
|
161
169
|
: undefined
|
162
170
|
|
171
|
+
let ratelimitCreator: RateLimiterCreator | undefined = undefined
|
172
|
+
if (cfg.rateLimits.enabled) {
|
173
|
+
const bypassSecret = cfg.rateLimits.bypassKey
|
174
|
+
const bypassIps = cfg.rateLimits.bypassIps
|
175
|
+
if (cfg.rateLimits.mode === 'redis') {
|
176
|
+
if (!redisScratch) {
|
177
|
+
throw new Error('Redis not set up for ratelimiting mode: `redis`')
|
178
|
+
}
|
179
|
+
ratelimitCreator = (opts: RateLimiterOpts) =>
|
180
|
+
RateLimiter.redis(redisScratch, {
|
181
|
+
bypassSecret,
|
182
|
+
bypassIps,
|
183
|
+
...opts,
|
184
|
+
})
|
185
|
+
} else {
|
186
|
+
ratelimitCreator = (opts: RateLimiterOpts) =>
|
187
|
+
RateLimiter.memory({
|
188
|
+
bypassSecret,
|
189
|
+
bypassIps,
|
190
|
+
...opts,
|
191
|
+
})
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
163
195
|
const appViewAgent = cfg.bskyAppView
|
164
196
|
? new AtpAgent({ service: cfg.bskyAppView.url })
|
165
197
|
: undefined
|
@@ -231,6 +263,7 @@ export class AppContext {
|
|
231
263
|
sequencer,
|
232
264
|
backgroundQueue,
|
233
265
|
redisScratch,
|
266
|
+
ratelimitCreator,
|
234
267
|
crawlers,
|
235
268
|
appViewAgent,
|
236
269
|
moderationAgent,
|
package/src/index.ts
CHANGED
@@ -8,12 +8,7 @@ import express from 'express'
|
|
8
8
|
import cors from 'cors'
|
9
9
|
import http from 'http'
|
10
10
|
import events from 'events'
|
11
|
-
import {
|
12
|
-
RateLimiter,
|
13
|
-
RateLimiterCreator,
|
14
|
-
RateLimiterOpts,
|
15
|
-
Options as XrpcServerOptions,
|
16
|
-
} from '@atproto/xrpc-server'
|
11
|
+
import { Options as XrpcServerOptions } from '@atproto/xrpc-server'
|
17
12
|
import { DAY, HOUR, MINUTE } from '@atproto/common'
|
18
13
|
import API from './api'
|
19
14
|
import * as basicRoutes from './basic-routes'
|
@@ -25,6 +20,7 @@ import { createServer } from './lexicon'
|
|
25
20
|
import { createHttpTerminator, HttpTerminator } from 'http-terminator'
|
26
21
|
import AppContext, { AppContextOptions } from './context'
|
27
22
|
import compression from './util/compression'
|
23
|
+
import { proxyHandler } from './pipethrough'
|
28
24
|
|
29
25
|
export * from './config'
|
30
26
|
export { Database } from './db'
|
@@ -71,51 +67,31 @@ export class PDS {
|
|
71
67
|
textLimit: 100 * 1024, // 100kb
|
72
68
|
blobLimit: cfg.service.blobUploadLimit,
|
73
69
|
},
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
global: [
|
100
|
-
{
|
101
|
-
name: 'global-ip',
|
102
|
-
durationMs: 5 * MINUTE,
|
103
|
-
points: 3000,
|
104
|
-
},
|
105
|
-
],
|
106
|
-
shared: [
|
107
|
-
{
|
108
|
-
name: 'repo-write-hour',
|
109
|
-
durationMs: HOUR,
|
110
|
-
points: 5000, // creates=3, puts=2, deletes=1
|
111
|
-
},
|
112
|
-
{
|
113
|
-
name: 'repo-write-day',
|
114
|
-
durationMs: DAY,
|
115
|
-
points: 35000, // creates=3, puts=2, deletes=1
|
116
|
-
},
|
117
|
-
],
|
118
|
-
}
|
70
|
+
catchall: proxyHandler(ctx),
|
71
|
+
rateLimits: ctx.ratelimitCreator
|
72
|
+
? {
|
73
|
+
creator: ctx.ratelimitCreator,
|
74
|
+
global: [
|
75
|
+
{
|
76
|
+
name: 'global-ip',
|
77
|
+
durationMs: 5 * MINUTE,
|
78
|
+
points: 3000,
|
79
|
+
},
|
80
|
+
],
|
81
|
+
shared: [
|
82
|
+
{
|
83
|
+
name: 'repo-write-hour',
|
84
|
+
durationMs: HOUR,
|
85
|
+
points: 5000, // creates=3, puts=2, deletes=1
|
86
|
+
},
|
87
|
+
{
|
88
|
+
name: 'repo-write-day',
|
89
|
+
durationMs: DAY,
|
90
|
+
points: 35000, // creates=3, puts=2, deletes=1
|
91
|
+
},
|
92
|
+
],
|
93
|
+
}
|
94
|
+
: undefined,
|
119
95
|
}
|
120
96
|
|
121
97
|
let server = createServer(xrpcOpts)
|
package/src/lexicon/index.ts
CHANGED
@@ -129,6 +129,23 @@ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
|
|
129
129
|
import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
|
130
130
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
|
131
131
|
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
|
132
|
+
import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount'
|
133
|
+
import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData'
|
134
|
+
import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf'
|
135
|
+
import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo'
|
136
|
+
import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers'
|
137
|
+
import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog'
|
138
|
+
import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages'
|
139
|
+
import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo'
|
140
|
+
import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos'
|
141
|
+
import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo'
|
142
|
+
import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage'
|
143
|
+
import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch'
|
144
|
+
import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo'
|
145
|
+
import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead'
|
146
|
+
import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata'
|
147
|
+
import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext'
|
148
|
+
import * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess'
|
132
149
|
import * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/communication/createTemplate'
|
133
150
|
import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate'
|
134
151
|
import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates'
|
@@ -183,12 +200,14 @@ export class Server {
|
|
183
200
|
xrpc: XrpcServer
|
184
201
|
com: ComNS
|
185
202
|
app: AppNS
|
203
|
+
chat: ChatNS
|
186
204
|
tools: ToolsNS
|
187
205
|
|
188
206
|
constructor(options?: XrpcOptions) {
|
189
207
|
this.xrpc = createXrpcServer(schemas, options)
|
190
208
|
this.com = new ComNS(this)
|
191
209
|
this.app = new AppNS(this)
|
210
|
+
this.chat = new ChatNS(this)
|
192
211
|
this.tools = new ToolsNS(this)
|
193
212
|
}
|
194
213
|
}
|
@@ -1713,6 +1732,241 @@ export class AppBskyUnspeccedNS {
|
|
1713
1732
|
}
|
1714
1733
|
}
|
1715
1734
|
|
1735
|
+
export class ChatNS {
|
1736
|
+
_server: Server
|
1737
|
+
bsky: ChatBskyNS
|
1738
|
+
|
1739
|
+
constructor(server: Server) {
|
1740
|
+
this._server = server
|
1741
|
+
this.bsky = new ChatBskyNS(server)
|
1742
|
+
}
|
1743
|
+
}
|
1744
|
+
|
1745
|
+
export class ChatBskyNS {
|
1746
|
+
_server: Server
|
1747
|
+
actor: ChatBskyActorNS
|
1748
|
+
convo: ChatBskyConvoNS
|
1749
|
+
moderation: ChatBskyModerationNS
|
1750
|
+
|
1751
|
+
constructor(server: Server) {
|
1752
|
+
this._server = server
|
1753
|
+
this.actor = new ChatBskyActorNS(server)
|
1754
|
+
this.convo = new ChatBskyConvoNS(server)
|
1755
|
+
this.moderation = new ChatBskyModerationNS(server)
|
1756
|
+
}
|
1757
|
+
}
|
1758
|
+
|
1759
|
+
export class ChatBskyActorNS {
|
1760
|
+
_server: Server
|
1761
|
+
|
1762
|
+
constructor(server: Server) {
|
1763
|
+
this._server = server
|
1764
|
+
}
|
1765
|
+
|
1766
|
+
deleteAccount<AV extends AuthVerifier>(
|
1767
|
+
cfg: ConfigOf<
|
1768
|
+
AV,
|
1769
|
+
ChatBskyActorDeleteAccount.Handler<ExtractAuth<AV>>,
|
1770
|
+
ChatBskyActorDeleteAccount.HandlerReqCtx<ExtractAuth<AV>>
|
1771
|
+
>,
|
1772
|
+
) {
|
1773
|
+
const nsid = 'chat.bsky.actor.deleteAccount' // @ts-ignore
|
1774
|
+
return this._server.xrpc.method(nsid, cfg)
|
1775
|
+
}
|
1776
|
+
|
1777
|
+
exportAccountData<AV extends AuthVerifier>(
|
1778
|
+
cfg: ConfigOf<
|
1779
|
+
AV,
|
1780
|
+
ChatBskyActorExportAccountData.Handler<ExtractAuth<AV>>,
|
1781
|
+
ChatBskyActorExportAccountData.HandlerReqCtx<ExtractAuth<AV>>
|
1782
|
+
>,
|
1783
|
+
) {
|
1784
|
+
const nsid = 'chat.bsky.actor.exportAccountData' // @ts-ignore
|
1785
|
+
return this._server.xrpc.method(nsid, cfg)
|
1786
|
+
}
|
1787
|
+
}
|
1788
|
+
|
1789
|
+
export class ChatBskyConvoNS {
|
1790
|
+
_server: Server
|
1791
|
+
|
1792
|
+
constructor(server: Server) {
|
1793
|
+
this._server = server
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
deleteMessageForSelf<AV extends AuthVerifier>(
|
1797
|
+
cfg: ConfigOf<
|
1798
|
+
AV,
|
1799
|
+
ChatBskyConvoDeleteMessageForSelf.Handler<ExtractAuth<AV>>,
|
1800
|
+
ChatBskyConvoDeleteMessageForSelf.HandlerReqCtx<ExtractAuth<AV>>
|
1801
|
+
>,
|
1802
|
+
) {
|
1803
|
+
const nsid = 'chat.bsky.convo.deleteMessageForSelf' // @ts-ignore
|
1804
|
+
return this._server.xrpc.method(nsid, cfg)
|
1805
|
+
}
|
1806
|
+
|
1807
|
+
getConvo<AV extends AuthVerifier>(
|
1808
|
+
cfg: ConfigOf<
|
1809
|
+
AV,
|
1810
|
+
ChatBskyConvoGetConvo.Handler<ExtractAuth<AV>>,
|
1811
|
+
ChatBskyConvoGetConvo.HandlerReqCtx<ExtractAuth<AV>>
|
1812
|
+
>,
|
1813
|
+
) {
|
1814
|
+
const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore
|
1815
|
+
return this._server.xrpc.method(nsid, cfg)
|
1816
|
+
}
|
1817
|
+
|
1818
|
+
getConvoForMembers<AV extends AuthVerifier>(
|
1819
|
+
cfg: ConfigOf<
|
1820
|
+
AV,
|
1821
|
+
ChatBskyConvoGetConvoForMembers.Handler<ExtractAuth<AV>>,
|
1822
|
+
ChatBskyConvoGetConvoForMembers.HandlerReqCtx<ExtractAuth<AV>>
|
1823
|
+
>,
|
1824
|
+
) {
|
1825
|
+
const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore
|
1826
|
+
return this._server.xrpc.method(nsid, cfg)
|
1827
|
+
}
|
1828
|
+
|
1829
|
+
getLog<AV extends AuthVerifier>(
|
1830
|
+
cfg: ConfigOf<
|
1831
|
+
AV,
|
1832
|
+
ChatBskyConvoGetLog.Handler<ExtractAuth<AV>>,
|
1833
|
+
ChatBskyConvoGetLog.HandlerReqCtx<ExtractAuth<AV>>
|
1834
|
+
>,
|
1835
|
+
) {
|
1836
|
+
const nsid = 'chat.bsky.convo.getLog' // @ts-ignore
|
1837
|
+
return this._server.xrpc.method(nsid, cfg)
|
1838
|
+
}
|
1839
|
+
|
1840
|
+
getMessages<AV extends AuthVerifier>(
|
1841
|
+
cfg: ConfigOf<
|
1842
|
+
AV,
|
1843
|
+
ChatBskyConvoGetMessages.Handler<ExtractAuth<AV>>,
|
1844
|
+
ChatBskyConvoGetMessages.HandlerReqCtx<ExtractAuth<AV>>
|
1845
|
+
>,
|
1846
|
+
) {
|
1847
|
+
const nsid = 'chat.bsky.convo.getMessages' // @ts-ignore
|
1848
|
+
return this._server.xrpc.method(nsid, cfg)
|
1849
|
+
}
|
1850
|
+
|
1851
|
+
leaveConvo<AV extends AuthVerifier>(
|
1852
|
+
cfg: ConfigOf<
|
1853
|
+
AV,
|
1854
|
+
ChatBskyConvoLeaveConvo.Handler<ExtractAuth<AV>>,
|
1855
|
+
ChatBskyConvoLeaveConvo.HandlerReqCtx<ExtractAuth<AV>>
|
1856
|
+
>,
|
1857
|
+
) {
|
1858
|
+
const nsid = 'chat.bsky.convo.leaveConvo' // @ts-ignore
|
1859
|
+
return this._server.xrpc.method(nsid, cfg)
|
1860
|
+
}
|
1861
|
+
|
1862
|
+
listConvos<AV extends AuthVerifier>(
|
1863
|
+
cfg: ConfigOf<
|
1864
|
+
AV,
|
1865
|
+
ChatBskyConvoListConvos.Handler<ExtractAuth<AV>>,
|
1866
|
+
ChatBskyConvoListConvos.HandlerReqCtx<ExtractAuth<AV>>
|
1867
|
+
>,
|
1868
|
+
) {
|
1869
|
+
const nsid = 'chat.bsky.convo.listConvos' // @ts-ignore
|
1870
|
+
return this._server.xrpc.method(nsid, cfg)
|
1871
|
+
}
|
1872
|
+
|
1873
|
+
muteConvo<AV extends AuthVerifier>(
|
1874
|
+
cfg: ConfigOf<
|
1875
|
+
AV,
|
1876
|
+
ChatBskyConvoMuteConvo.Handler<ExtractAuth<AV>>,
|
1877
|
+
ChatBskyConvoMuteConvo.HandlerReqCtx<ExtractAuth<AV>>
|
1878
|
+
>,
|
1879
|
+
) {
|
1880
|
+
const nsid = 'chat.bsky.convo.muteConvo' // @ts-ignore
|
1881
|
+
return this._server.xrpc.method(nsid, cfg)
|
1882
|
+
}
|
1883
|
+
|
1884
|
+
sendMessage<AV extends AuthVerifier>(
|
1885
|
+
cfg: ConfigOf<
|
1886
|
+
AV,
|
1887
|
+
ChatBskyConvoSendMessage.Handler<ExtractAuth<AV>>,
|
1888
|
+
ChatBskyConvoSendMessage.HandlerReqCtx<ExtractAuth<AV>>
|
1889
|
+
>,
|
1890
|
+
) {
|
1891
|
+
const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore
|
1892
|
+
return this._server.xrpc.method(nsid, cfg)
|
1893
|
+
}
|
1894
|
+
|
1895
|
+
sendMessageBatch<AV extends AuthVerifier>(
|
1896
|
+
cfg: ConfigOf<
|
1897
|
+
AV,
|
1898
|
+
ChatBskyConvoSendMessageBatch.Handler<ExtractAuth<AV>>,
|
1899
|
+
ChatBskyConvoSendMessageBatch.HandlerReqCtx<ExtractAuth<AV>>
|
1900
|
+
>,
|
1901
|
+
) {
|
1902
|
+
const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore
|
1903
|
+
return this._server.xrpc.method(nsid, cfg)
|
1904
|
+
}
|
1905
|
+
|
1906
|
+
unmuteConvo<AV extends AuthVerifier>(
|
1907
|
+
cfg: ConfigOf<
|
1908
|
+
AV,
|
1909
|
+
ChatBskyConvoUnmuteConvo.Handler<ExtractAuth<AV>>,
|
1910
|
+
ChatBskyConvoUnmuteConvo.HandlerReqCtx<ExtractAuth<AV>>
|
1911
|
+
>,
|
1912
|
+
) {
|
1913
|
+
const nsid = 'chat.bsky.convo.unmuteConvo' // @ts-ignore
|
1914
|
+
return this._server.xrpc.method(nsid, cfg)
|
1915
|
+
}
|
1916
|
+
|
1917
|
+
updateRead<AV extends AuthVerifier>(
|
1918
|
+
cfg: ConfigOf<
|
1919
|
+
AV,
|
1920
|
+
ChatBskyConvoUpdateRead.Handler<ExtractAuth<AV>>,
|
1921
|
+
ChatBskyConvoUpdateRead.HandlerReqCtx<ExtractAuth<AV>>
|
1922
|
+
>,
|
1923
|
+
) {
|
1924
|
+
const nsid = 'chat.bsky.convo.updateRead' // @ts-ignore
|
1925
|
+
return this._server.xrpc.method(nsid, cfg)
|
1926
|
+
}
|
1927
|
+
}
|
1928
|
+
|
1929
|
+
export class ChatBskyModerationNS {
|
1930
|
+
_server: Server
|
1931
|
+
|
1932
|
+
constructor(server: Server) {
|
1933
|
+
this._server = server
|
1934
|
+
}
|
1935
|
+
|
1936
|
+
getActorMetadata<AV extends AuthVerifier>(
|
1937
|
+
cfg: ConfigOf<
|
1938
|
+
AV,
|
1939
|
+
ChatBskyModerationGetActorMetadata.Handler<ExtractAuth<AV>>,
|
1940
|
+
ChatBskyModerationGetActorMetadata.HandlerReqCtx<ExtractAuth<AV>>
|
1941
|
+
>,
|
1942
|
+
) {
|
1943
|
+
const nsid = 'chat.bsky.moderation.getActorMetadata' // @ts-ignore
|
1944
|
+
return this._server.xrpc.method(nsid, cfg)
|
1945
|
+
}
|
1946
|
+
|
1947
|
+
getMessageContext<AV extends AuthVerifier>(
|
1948
|
+
cfg: ConfigOf<
|
1949
|
+
AV,
|
1950
|
+
ChatBskyModerationGetMessageContext.Handler<ExtractAuth<AV>>,
|
1951
|
+
ChatBskyModerationGetMessageContext.HandlerReqCtx<ExtractAuth<AV>>
|
1952
|
+
>,
|
1953
|
+
) {
|
1954
|
+
const nsid = 'chat.bsky.moderation.getMessageContext' // @ts-ignore
|
1955
|
+
return this._server.xrpc.method(nsid, cfg)
|
1956
|
+
}
|
1957
|
+
|
1958
|
+
updateActorAccess<AV extends AuthVerifier>(
|
1959
|
+
cfg: ConfigOf<
|
1960
|
+
AV,
|
1961
|
+
ChatBskyModerationUpdateActorAccess.Handler<ExtractAuth<AV>>,
|
1962
|
+
ChatBskyModerationUpdateActorAccess.HandlerReqCtx<ExtractAuth<AV>>
|
1963
|
+
>,
|
1964
|
+
) {
|
1965
|
+
const nsid = 'chat.bsky.moderation.updateActorAccess' // @ts-ignore
|
1966
|
+
return this._server.xrpc.method(nsid, cfg)
|
1967
|
+
}
|
1968
|
+
}
|
1969
|
+
|
1716
1970
|
export class ToolsNS {
|
1717
1971
|
_server: Server
|
1718
1972
|
ozone: ToolsOzoneNS
|