@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
@@ -89,6 +89,7 @@ export interface ProfileAssociated {
|
|
89
89
|
lists?: number
|
90
90
|
feedgens?: number
|
91
91
|
labeler?: boolean
|
92
|
+
chat?: ProfileAssociatedChat
|
92
93
|
[k: string]: unknown
|
93
94
|
}
|
94
95
|
|
@@ -104,6 +105,25 @@ export function validateProfileAssociated(v: unknown): ValidationResult {
|
|
104
105
|
return lexicons.validate('app.bsky.actor.defs#profileAssociated', v)
|
105
106
|
}
|
106
107
|
|
108
|
+
export interface ProfileAssociatedChat {
|
109
|
+
allowIncoming: 'all' | 'none' | 'following' | (string & {})
|
110
|
+
[k: string]: unknown
|
111
|
+
}
|
112
|
+
|
113
|
+
export function isProfileAssociatedChat(
|
114
|
+
v: unknown,
|
115
|
+
): v is ProfileAssociatedChat {
|
116
|
+
return (
|
117
|
+
isObj(v) &&
|
118
|
+
hasProp(v, '$type') &&
|
119
|
+
v.$type === 'app.bsky.actor.defs#profileAssociatedChat'
|
120
|
+
)
|
121
|
+
}
|
122
|
+
|
123
|
+
export function validateProfileAssociatedChat(v: unknown): ValidationResult {
|
124
|
+
return lexicons.validate('app.bsky.actor.defs#profileAssociatedChat', v)
|
125
|
+
}
|
126
|
+
|
107
127
|
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
108
128
|
export interface ViewerState {
|
109
129
|
muted?: boolean
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { lexicons } from '../../../../lexicons'
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
7
|
+
import { CID } from 'multiformats/cid'
|
8
|
+
|
9
|
+
export interface Record {
|
10
|
+
allowIncoming: 'all' | 'none' | 'following' | (string & {})
|
11
|
+
[k: string]: unknown
|
12
|
+
}
|
13
|
+
|
14
|
+
export function isRecord(v: unknown): v is Record {
|
15
|
+
return (
|
16
|
+
isObj(v) &&
|
17
|
+
hasProp(v, '$type') &&
|
18
|
+
(v.$type === 'chat.bsky.actor.declaration#main' ||
|
19
|
+
v.$type === 'chat.bsky.actor.declaration')
|
20
|
+
)
|
21
|
+
}
|
22
|
+
|
23
|
+
export function validateRecord(v: unknown): ValidationResult {
|
24
|
+
return lexicons.validate('chat.bsky.actor.declaration#main', v)
|
25
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { lexicons } from '../../../../lexicons'
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
7
|
+
import { CID } from 'multiformats/cid'
|
8
|
+
import * as AppBskyActorDefs from '../../../app/bsky/actor/defs'
|
9
|
+
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
10
|
+
|
11
|
+
export interface ProfileViewBasic {
|
12
|
+
did: string
|
13
|
+
handle: string
|
14
|
+
displayName?: string
|
15
|
+
avatar?: string
|
16
|
+
associated?: AppBskyActorDefs.ProfileAssociated
|
17
|
+
viewer?: AppBskyActorDefs.ViewerState
|
18
|
+
labels?: ComAtprotoLabelDefs.Label[]
|
19
|
+
/** Set to true when the actor cannot actively participate in converations */
|
20
|
+
chatDisabled?: boolean
|
21
|
+
[k: string]: unknown
|
22
|
+
}
|
23
|
+
|
24
|
+
export function isProfileViewBasic(v: unknown): v is ProfileViewBasic {
|
25
|
+
return (
|
26
|
+
isObj(v) &&
|
27
|
+
hasProp(v, '$type') &&
|
28
|
+
v.$type === 'chat.bsky.actor.defs#profileViewBasic'
|
29
|
+
)
|
30
|
+
}
|
31
|
+
|
32
|
+
export function validateProfileViewBasic(v: unknown): ValidationResult {
|
33
|
+
return lexicons.validate('chat.bsky.actor.defs#profileViewBasic', v)
|
34
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export type InputSchema = undefined
|
14
|
+
|
15
|
+
export interface OutputSchema {
|
16
|
+
[k: string]: unknown
|
17
|
+
}
|
18
|
+
|
19
|
+
export type HandlerInput = undefined
|
20
|
+
|
21
|
+
export interface HandlerSuccess {
|
22
|
+
encoding: 'application/json'
|
23
|
+
body: OutputSchema
|
24
|
+
headers?: { [key: string]: string }
|
25
|
+
}
|
26
|
+
|
27
|
+
export interface HandlerError {
|
28
|
+
status: number
|
29
|
+
message?: string
|
30
|
+
}
|
31
|
+
|
32
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
33
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
34
|
+
auth: HA
|
35
|
+
params: QueryParams
|
36
|
+
input: HandlerInput
|
37
|
+
req: express.Request
|
38
|
+
res: express.Response
|
39
|
+
}
|
40
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
41
|
+
ctx: HandlerReqCtx<HA>,
|
42
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import stream from 'stream'
|
6
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
8
|
+
import { isObj, hasProp } from '../../../../util'
|
9
|
+
import { CID } from 'multiformats/cid'
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
11
|
+
|
12
|
+
export interface QueryParams {}
|
13
|
+
|
14
|
+
export type InputSchema = undefined
|
15
|
+
export type HandlerInput = undefined
|
16
|
+
|
17
|
+
export interface HandlerSuccess {
|
18
|
+
encoding: 'application/jsonl'
|
19
|
+
body: Uint8Array | stream.Readable
|
20
|
+
headers?: { [key: string]: string }
|
21
|
+
}
|
22
|
+
|
23
|
+
export interface HandlerError {
|
24
|
+
status: number
|
25
|
+
message?: string
|
26
|
+
}
|
27
|
+
|
28
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
29
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
30
|
+
auth: HA
|
31
|
+
params: QueryParams
|
32
|
+
input: HandlerInput
|
33
|
+
req: express.Request
|
34
|
+
res: express.Response
|
35
|
+
}
|
36
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
37
|
+
ctx: HandlerReqCtx<HA>,
|
38
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,215 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { lexicons } from '../../../../lexicons'
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
7
|
+
import { CID } from 'multiformats/cid'
|
8
|
+
import * as AppBskyRichtextFacet from '../../../app/bsky/richtext/facet'
|
9
|
+
import * as AppBskyEmbedRecord from '../../../app/bsky/embed/record'
|
10
|
+
import * as ChatBskyActorDefs from '../actor/defs'
|
11
|
+
|
12
|
+
export interface MessageRef {
|
13
|
+
did: string
|
14
|
+
messageId: string
|
15
|
+
[k: string]: unknown
|
16
|
+
}
|
17
|
+
|
18
|
+
export function isMessageRef(v: unknown): v is MessageRef {
|
19
|
+
return (
|
20
|
+
isObj(v) &&
|
21
|
+
hasProp(v, '$type') &&
|
22
|
+
v.$type === 'chat.bsky.convo.defs#messageRef'
|
23
|
+
)
|
24
|
+
}
|
25
|
+
|
26
|
+
export function validateMessageRef(v: unknown): ValidationResult {
|
27
|
+
return lexicons.validate('chat.bsky.convo.defs#messageRef', v)
|
28
|
+
}
|
29
|
+
|
30
|
+
export interface Message {
|
31
|
+
id?: string
|
32
|
+
text: string
|
33
|
+
/** Annotations of text (mentions, URLs, hashtags, etc) */
|
34
|
+
facets?: AppBskyRichtextFacet.Main[]
|
35
|
+
embed?: AppBskyEmbedRecord.Main | { $type: string; [k: string]: unknown }
|
36
|
+
[k: string]: unknown
|
37
|
+
}
|
38
|
+
|
39
|
+
export function isMessage(v: unknown): v is Message {
|
40
|
+
return (
|
41
|
+
isObj(v) &&
|
42
|
+
hasProp(v, '$type') &&
|
43
|
+
v.$type === 'chat.bsky.convo.defs#message'
|
44
|
+
)
|
45
|
+
}
|
46
|
+
|
47
|
+
export function validateMessage(v: unknown): ValidationResult {
|
48
|
+
return lexicons.validate('chat.bsky.convo.defs#message', v)
|
49
|
+
}
|
50
|
+
|
51
|
+
export interface MessageView {
|
52
|
+
id: string
|
53
|
+
rev: string
|
54
|
+
text: string
|
55
|
+
/** Annotations of text (mentions, URLs, hashtags, etc) */
|
56
|
+
facets?: AppBskyRichtextFacet.Main[]
|
57
|
+
embed?: AppBskyEmbedRecord.Main | { $type: string; [k: string]: unknown }
|
58
|
+
sender: MessageViewSender
|
59
|
+
sentAt: string
|
60
|
+
[k: string]: unknown
|
61
|
+
}
|
62
|
+
|
63
|
+
export function isMessageView(v: unknown): v is MessageView {
|
64
|
+
return (
|
65
|
+
isObj(v) &&
|
66
|
+
hasProp(v, '$type') &&
|
67
|
+
v.$type === 'chat.bsky.convo.defs#messageView'
|
68
|
+
)
|
69
|
+
}
|
70
|
+
|
71
|
+
export function validateMessageView(v: unknown): ValidationResult {
|
72
|
+
return lexicons.validate('chat.bsky.convo.defs#messageView', v)
|
73
|
+
}
|
74
|
+
|
75
|
+
export interface DeletedMessageView {
|
76
|
+
id: string
|
77
|
+
rev: string
|
78
|
+
sender: MessageViewSender
|
79
|
+
sentAt: string
|
80
|
+
[k: string]: unknown
|
81
|
+
}
|
82
|
+
|
83
|
+
export function isDeletedMessageView(v: unknown): v is DeletedMessageView {
|
84
|
+
return (
|
85
|
+
isObj(v) &&
|
86
|
+
hasProp(v, '$type') &&
|
87
|
+
v.$type === 'chat.bsky.convo.defs#deletedMessageView'
|
88
|
+
)
|
89
|
+
}
|
90
|
+
|
91
|
+
export function validateDeletedMessageView(v: unknown): ValidationResult {
|
92
|
+
return lexicons.validate('chat.bsky.convo.defs#deletedMessageView', v)
|
93
|
+
}
|
94
|
+
|
95
|
+
export interface MessageViewSender {
|
96
|
+
did: string
|
97
|
+
[k: string]: unknown
|
98
|
+
}
|
99
|
+
|
100
|
+
export function isMessageViewSender(v: unknown): v is MessageViewSender {
|
101
|
+
return (
|
102
|
+
isObj(v) &&
|
103
|
+
hasProp(v, '$type') &&
|
104
|
+
v.$type === 'chat.bsky.convo.defs#messageViewSender'
|
105
|
+
)
|
106
|
+
}
|
107
|
+
|
108
|
+
export function validateMessageViewSender(v: unknown): ValidationResult {
|
109
|
+
return lexicons.validate('chat.bsky.convo.defs#messageViewSender', v)
|
110
|
+
}
|
111
|
+
|
112
|
+
export interface ConvoView {
|
113
|
+
id: string
|
114
|
+
rev: string
|
115
|
+
members: ChatBskyActorDefs.ProfileViewBasic[]
|
116
|
+
lastMessage?:
|
117
|
+
| MessageView
|
118
|
+
| DeletedMessageView
|
119
|
+
| { $type: string; [k: string]: unknown }
|
120
|
+
muted: boolean
|
121
|
+
unreadCount: number
|
122
|
+
[k: string]: unknown
|
123
|
+
}
|
124
|
+
|
125
|
+
export function isConvoView(v: unknown): v is ConvoView {
|
126
|
+
return (
|
127
|
+
isObj(v) &&
|
128
|
+
hasProp(v, '$type') &&
|
129
|
+
v.$type === 'chat.bsky.convo.defs#convoView'
|
130
|
+
)
|
131
|
+
}
|
132
|
+
|
133
|
+
export function validateConvoView(v: unknown): ValidationResult {
|
134
|
+
return lexicons.validate('chat.bsky.convo.defs#convoView', v)
|
135
|
+
}
|
136
|
+
|
137
|
+
export interface LogBeginConvo {
|
138
|
+
rev: string
|
139
|
+
convoId: string
|
140
|
+
[k: string]: unknown
|
141
|
+
}
|
142
|
+
|
143
|
+
export function isLogBeginConvo(v: unknown): v is LogBeginConvo {
|
144
|
+
return (
|
145
|
+
isObj(v) &&
|
146
|
+
hasProp(v, '$type') &&
|
147
|
+
v.$type === 'chat.bsky.convo.defs#logBeginConvo'
|
148
|
+
)
|
149
|
+
}
|
150
|
+
|
151
|
+
export function validateLogBeginConvo(v: unknown): ValidationResult {
|
152
|
+
return lexicons.validate('chat.bsky.convo.defs#logBeginConvo', v)
|
153
|
+
}
|
154
|
+
|
155
|
+
export interface LogLeaveConvo {
|
156
|
+
rev: string
|
157
|
+
convoId: string
|
158
|
+
[k: string]: unknown
|
159
|
+
}
|
160
|
+
|
161
|
+
export function isLogLeaveConvo(v: unknown): v is LogLeaveConvo {
|
162
|
+
return (
|
163
|
+
isObj(v) &&
|
164
|
+
hasProp(v, '$type') &&
|
165
|
+
v.$type === 'chat.bsky.convo.defs#logLeaveConvo'
|
166
|
+
)
|
167
|
+
}
|
168
|
+
|
169
|
+
export function validateLogLeaveConvo(v: unknown): ValidationResult {
|
170
|
+
return lexicons.validate('chat.bsky.convo.defs#logLeaveConvo', v)
|
171
|
+
}
|
172
|
+
|
173
|
+
export interface LogCreateMessage {
|
174
|
+
rev: string
|
175
|
+
convoId: string
|
176
|
+
message:
|
177
|
+
| MessageView
|
178
|
+
| DeletedMessageView
|
179
|
+
| { $type: string; [k: string]: unknown }
|
180
|
+
[k: string]: unknown
|
181
|
+
}
|
182
|
+
|
183
|
+
export function isLogCreateMessage(v: unknown): v is LogCreateMessage {
|
184
|
+
return (
|
185
|
+
isObj(v) &&
|
186
|
+
hasProp(v, '$type') &&
|
187
|
+
v.$type === 'chat.bsky.convo.defs#logCreateMessage'
|
188
|
+
)
|
189
|
+
}
|
190
|
+
|
191
|
+
export function validateLogCreateMessage(v: unknown): ValidationResult {
|
192
|
+
return lexicons.validate('chat.bsky.convo.defs#logCreateMessage', v)
|
193
|
+
}
|
194
|
+
|
195
|
+
export interface LogDeleteMessage {
|
196
|
+
rev: string
|
197
|
+
convoId: string
|
198
|
+
message:
|
199
|
+
| MessageView
|
200
|
+
| DeletedMessageView
|
201
|
+
| { $type: string; [k: string]: unknown }
|
202
|
+
[k: string]: unknown
|
203
|
+
}
|
204
|
+
|
205
|
+
export function isLogDeleteMessage(v: unknown): v is LogDeleteMessage {
|
206
|
+
return (
|
207
|
+
isObj(v) &&
|
208
|
+
hasProp(v, '$type') &&
|
209
|
+
v.$type === 'chat.bsky.convo.defs#logDeleteMessage'
|
210
|
+
)
|
211
|
+
}
|
212
|
+
|
213
|
+
export function validateLogDeleteMessage(v: unknown): ValidationResult {
|
214
|
+
return lexicons.validate('chat.bsky.convo.defs#logDeleteMessage', v)
|
215
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ChatBskyConvoDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {}
|
13
|
+
|
14
|
+
export interface InputSchema {
|
15
|
+
convoId: string
|
16
|
+
messageId: string
|
17
|
+
[k: string]: unknown
|
18
|
+
}
|
19
|
+
|
20
|
+
export type OutputSchema = ChatBskyConvoDefs.DeletedMessageView
|
21
|
+
|
22
|
+
export interface HandlerInput {
|
23
|
+
encoding: 'application/json'
|
24
|
+
body: InputSchema
|
25
|
+
}
|
26
|
+
|
27
|
+
export interface HandlerSuccess {
|
28
|
+
encoding: 'application/json'
|
29
|
+
body: OutputSchema
|
30
|
+
headers?: { [key: string]: string }
|
31
|
+
}
|
32
|
+
|
33
|
+
export interface HandlerError {
|
34
|
+
status: number
|
35
|
+
message?: string
|
36
|
+
}
|
37
|
+
|
38
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
39
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
40
|
+
auth: HA
|
41
|
+
params: QueryParams
|
42
|
+
input: HandlerInput
|
43
|
+
req: express.Request
|
44
|
+
res: express.Response
|
45
|
+
}
|
46
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
47
|
+
ctx: HandlerReqCtx<HA>,
|
48
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ChatBskyConvoDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
convoId: string
|
14
|
+
}
|
15
|
+
|
16
|
+
export type InputSchema = undefined
|
17
|
+
|
18
|
+
export interface OutputSchema {
|
19
|
+
convo: ChatBskyConvoDefs.ConvoView
|
20
|
+
[k: string]: unknown
|
21
|
+
}
|
22
|
+
|
23
|
+
export type HandlerInput = undefined
|
24
|
+
|
25
|
+
export interface HandlerSuccess {
|
26
|
+
encoding: 'application/json'
|
27
|
+
body: OutputSchema
|
28
|
+
headers?: { [key: string]: string }
|
29
|
+
}
|
30
|
+
|
31
|
+
export interface HandlerError {
|
32
|
+
status: number
|
33
|
+
message?: string
|
34
|
+
}
|
35
|
+
|
36
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
37
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
38
|
+
auth: HA
|
39
|
+
params: QueryParams
|
40
|
+
input: HandlerInput
|
41
|
+
req: express.Request
|
42
|
+
res: express.Response
|
43
|
+
}
|
44
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
45
|
+
ctx: HandlerReqCtx<HA>,
|
46
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ChatBskyConvoDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
members: string[]
|
14
|
+
}
|
15
|
+
|
16
|
+
export type InputSchema = undefined
|
17
|
+
|
18
|
+
export interface OutputSchema {
|
19
|
+
convo: ChatBskyConvoDefs.ConvoView
|
20
|
+
[k: string]: unknown
|
21
|
+
}
|
22
|
+
|
23
|
+
export type HandlerInput = undefined
|
24
|
+
|
25
|
+
export interface HandlerSuccess {
|
26
|
+
encoding: 'application/json'
|
27
|
+
body: OutputSchema
|
28
|
+
headers?: { [key: string]: string }
|
29
|
+
}
|
30
|
+
|
31
|
+
export interface HandlerError {
|
32
|
+
status: number
|
33
|
+
message?: string
|
34
|
+
}
|
35
|
+
|
36
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
37
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
38
|
+
auth: HA
|
39
|
+
params: QueryParams
|
40
|
+
input: HandlerInput
|
41
|
+
req: express.Request
|
42
|
+
res: express.Response
|
43
|
+
}
|
44
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
45
|
+
ctx: HandlerReqCtx<HA>,
|
46
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,53 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ChatBskyConvoDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
cursor?: string
|
14
|
+
}
|
15
|
+
|
16
|
+
export type InputSchema = undefined
|
17
|
+
|
18
|
+
export interface OutputSchema {
|
19
|
+
cursor?: string
|
20
|
+
logs: (
|
21
|
+
| ChatBskyConvoDefs.LogBeginConvo
|
22
|
+
| ChatBskyConvoDefs.LogLeaveConvo
|
23
|
+
| ChatBskyConvoDefs.LogCreateMessage
|
24
|
+
| ChatBskyConvoDefs.LogDeleteMessage
|
25
|
+
| { $type: string; [k: string]: unknown }
|
26
|
+
)[]
|
27
|
+
[k: string]: unknown
|
28
|
+
}
|
29
|
+
|
30
|
+
export type HandlerInput = undefined
|
31
|
+
|
32
|
+
export interface HandlerSuccess {
|
33
|
+
encoding: 'application/json'
|
34
|
+
body: OutputSchema
|
35
|
+
headers?: { [key: string]: string }
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface HandlerError {
|
39
|
+
status: number
|
40
|
+
message?: string
|
41
|
+
}
|
42
|
+
|
43
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
44
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
45
|
+
auth: HA
|
46
|
+
params: QueryParams
|
47
|
+
input: HandlerInput
|
48
|
+
req: express.Request
|
49
|
+
res: express.Response
|
50
|
+
}
|
51
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
52
|
+
ctx: HandlerReqCtx<HA>,
|
53
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,53 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ChatBskyConvoDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
convoId: string
|
14
|
+
limit: number
|
15
|
+
cursor?: string
|
16
|
+
}
|
17
|
+
|
18
|
+
export type InputSchema = undefined
|
19
|
+
|
20
|
+
export interface OutputSchema {
|
21
|
+
cursor?: string
|
22
|
+
messages: (
|
23
|
+
| ChatBskyConvoDefs.MessageView
|
24
|
+
| ChatBskyConvoDefs.DeletedMessageView
|
25
|
+
| { $type: string; [k: string]: unknown }
|
26
|
+
)[]
|
27
|
+
[k: string]: unknown
|
28
|
+
}
|
29
|
+
|
30
|
+
export type HandlerInput = undefined
|
31
|
+
|
32
|
+
export interface HandlerSuccess {
|
33
|
+
encoding: 'application/json'
|
34
|
+
body: OutputSchema
|
35
|
+
headers?: { [key: string]: string }
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface HandlerError {
|
39
|
+
status: number
|
40
|
+
message?: string
|
41
|
+
}
|
42
|
+
|
43
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
44
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
45
|
+
auth: HA
|
46
|
+
params: QueryParams
|
47
|
+
input: HandlerInput
|
48
|
+
req: express.Request
|
49
|
+
res: express.Response
|
50
|
+
}
|
51
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
52
|
+
ctx: HandlerReqCtx<HA>,
|
53
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export interface InputSchema {
|
14
|
+
convoId: string
|
15
|
+
[k: string]: unknown
|
16
|
+
}
|
17
|
+
|
18
|
+
export interface OutputSchema {
|
19
|
+
convoId: string
|
20
|
+
rev: string
|
21
|
+
[k: string]: unknown
|
22
|
+
}
|
23
|
+
|
24
|
+
export interface HandlerInput {
|
25
|
+
encoding: 'application/json'
|
26
|
+
body: InputSchema
|
27
|
+
}
|
28
|
+
|
29
|
+
export interface HandlerSuccess {
|
30
|
+
encoding: 'application/json'
|
31
|
+
body: OutputSchema
|
32
|
+
headers?: { [key: string]: string }
|
33
|
+
}
|
34
|
+
|
35
|
+
export interface HandlerError {
|
36
|
+
status: number
|
37
|
+
message?: string
|
38
|
+
}
|
39
|
+
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
41
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
42
|
+
auth: HA
|
43
|
+
params: QueryParams
|
44
|
+
input: HandlerInput
|
45
|
+
req: express.Request
|
46
|
+
res: express.Response
|
47
|
+
}
|
48
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
49
|
+
ctx: HandlerReqCtx<HA>,
|
50
|
+
) => Promise<HandlerOutput> | HandlerOutput
|