@atproto/bsky 0.0.226 → 0.0.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +3 -0
- package/dist/data-plane/server/routes/profile.js.map +1 -1
- package/dist/hydration/actor.d.ts +1 -0
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +1 -0
- package/dist/hydration/actor.js.map +1 -1
- package/dist/lexicons/app/bsky/actor/defs.defs.d.ts +1 -0
- package/dist/lexicons/app/bsky/actor/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/actor/defs.defs.js +1 -0
- package/dist/lexicons/app/bsky/actor/defs.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/actor/declaration.defs.d.ts +14 -0
- package/dist/lexicons/chat/bsky/actor/declaration.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/actor/declaration.defs.js +1 -0
- package/dist/lexicons/chat/bsky/actor/declaration.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/actor/defs.defs.d.ts +35 -0
- package/dist/lexicons/chat/bsky/actor/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/actor/defs.defs.js +17 -1
- package/dist/lexicons/chat/bsky/actor/defs.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/authFullChatClient.defs.js +1 -1
- package/dist/lexicons/chat/bsky/authFullChatClient.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/acceptConvo.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/addReaction.defs.d.ts +1 -1
- package/dist/lexicons/chat/bsky/convo/addReaction.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/addReaction.defs.js +7 -1
- package/dist/lexicons/chat/bsky/convo/addReaction.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts +470 -3
- package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/defs.defs.js +235 -2
- package/dist/lexicons/chat/bsky/convo/defs.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/deleteMessageForSelf.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvo.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/getConvo.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvo.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/getConvo.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.d.ts +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.js +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvoAvailability.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.js +8 -1
- package/dist/lexicons/chat/bsky/convo/getConvoForMembers.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.d.ts +3 -0
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.defs.d.ts +26 -0
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.defs.js +55 -0
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.js +45 -0
- package/dist/lexicons/chat/bsky/convo/getConvoMembers.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/getLog.defs.d.ts +2 -2
- package/dist/lexicons/chat/bsky/convo/getLog.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getLog.defs.js +17 -0
- package/dist/lexicons/chat/bsky/convo/getLog.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getMessages.defs.d.ts +4 -3
- package/dist/lexicons/chat/bsky/convo/getMessages.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/getMessages.defs.js +3 -1
- package/dist/lexicons/chat/bsky/convo/getMessages.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/leaveConvo.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.d.ts +3 -0
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.d.ts +25 -0
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.js +58 -0
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.js +45 -0
- package/dist/lexicons/chat/bsky/convo/listConvoRequests.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/listConvos.defs.d.ts +7 -0
- package/dist/lexicons/chat/bsky/convo/listConvos.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/listConvos.defs.js +2 -0
- package/dist/lexicons/chat/bsky/convo/listConvos.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/lockConvo.d.ts +3 -0
- package/dist/lexicons/chat/bsky/convo/lockConvo.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/lockConvo.defs.d.ts +22 -0
- package/dist/lexicons/chat/bsky/convo/lockConvo.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/lockConvo.defs.js +50 -0
- package/dist/lexicons/chat/bsky/convo/lockConvo.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/lockConvo.js +45 -0
- package/dist/lexicons/chat/bsky/convo/lockConvo.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/muteConvo.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/muteConvo.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/muteConvo.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/muteConvo.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/removeReaction.defs.d.ts +1 -1
- package/dist/lexicons/chat/bsky/convo/removeReaction.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/removeReaction.defs.js +6 -1
- package/dist/lexicons/chat/bsky/convo/removeReaction.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/sendMessage.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/sendMessage.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/sendMessage.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/sendMessage.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/sendMessageBatch.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/unlockConvo.d.ts +3 -0
- package/dist/lexicons/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.d.ts +22 -0
- package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.js +50 -0
- package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/unlockConvo.js +45 -0
- package/dist/lexicons/chat/bsky/convo/unlockConvo.js.map +1 -0
- package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/unmuteConvo.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.d.ts +1 -0
- package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.js +1 -0
- package/dist/lexicons/chat/bsky/convo/updateAllRead.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/updateRead.defs.d.ts +2 -1
- package/dist/lexicons/chat/bsky/convo/updateRead.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/updateRead.defs.js +2 -1
- package/dist/lexicons/chat/bsky/convo/updateRead.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo.d.ts +4 -0
- package/dist/lexicons/chat/bsky/convo.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo.js +5 -1
- package/dist/lexicons/chat/bsky/convo.js.map +1 -1
- package/dist/lexicons/chat/bsky/group/addMembers.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/addMembers.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/addMembers.defs.d.ts +31 -0
- package/dist/lexicons/chat/bsky/group/addMembers.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/addMembers.defs.js +65 -0
- package/dist/lexicons/chat/bsky/group/addMembers.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/addMembers.js +45 -0
- package/dist/lexicons/chat/bsky/group/addMembers.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.d.ts +28 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.js +50 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.js +45 -0
- package/dist/lexicons/chat/bsky/group/approveJoinRequest.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/createGroup.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/createGroup.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/createGroup.defs.d.ts +36 -0
- package/dist/lexicons/chat/bsky/group/createGroup.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/createGroup.defs.js +59 -0
- package/dist/lexicons/chat/bsky/group/createGroup.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/createGroup.js +45 -0
- package/dist/lexicons/chat/bsky/group/createGroup.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.defs.d.ts +26 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.defs.js +54 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.js +45 -0
- package/dist/lexicons/chat/bsky/group/createJoinLink.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/defs.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/defs.defs.d.ts +47 -0
- package/dist/lexicons/chat/bsky/group/defs.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/defs.defs.js +69 -0
- package/dist/lexicons/chat/bsky/group/defs.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/defs.js +45 -0
- package/dist/lexicons/chat/bsky/group/defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.d.ts +22 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.js +50 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.js +45 -0
- package/dist/lexicons/chat/bsky/group/disableJoinLink.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/editGroup.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/editGroup.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/editGroup.defs.d.ts +32 -0
- package/dist/lexicons/chat/bsky/group/editGroup.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/editGroup.defs.js +53 -0
- package/dist/lexicons/chat/bsky/group/editGroup.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/editGroup.js +45 -0
- package/dist/lexicons/chat/bsky/group/editGroup.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.defs.d.ts +26 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.defs.js +54 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.js +45 -0
- package/dist/lexicons/chat/bsky/group/editJoinLink.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.d.ts +22 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.js +50 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.js +45 -0
- package/dist/lexicons/chat/bsky/group/enableJoinLink.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.d.ts +20 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.js +50 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.js +45 -0
- package/dist/lexicons/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.d.ts +26 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.js +55 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.js +45 -0
- package/dist/lexicons/chat/bsky/group/listJoinRequests.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.d.ts +23 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.js +14 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.js +45 -0
- package/dist/lexicons/chat/bsky/group/rejectJoinRequest.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.defs.d.ts +28 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.defs.js +53 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.js +45 -0
- package/dist/lexicons/chat/bsky/group/removeMembers.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.d.ts +3 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.defs.d.ts +28 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.defs.js +58 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.js +45 -0
- package/dist/lexicons/chat/bsky/group/requestJoin.js.map +1 -0
- package/dist/lexicons/chat/bsky/group.d.ts +15 -0
- package/dist/lexicons/chat/bsky/group.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/group.js +54 -0
- package/dist/lexicons/chat/bsky/group.js.map +1 -0
- package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.d.ts +2 -2
- package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.js +1 -0
- package/dist/lexicons/chat/bsky/moderation/getMessageContext.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.d.ts +3 -0
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.d.ts +32 -0
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.d.ts.map +1 -0
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.js +23 -0
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.js.map +1 -0
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.js +45 -0
- package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
- package/dist/lexicons/chat/bsky/moderation.d.ts +1 -0
- package/dist/lexicons/chat/bsky/moderation.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/moderation.js +2 -1
- package/dist/lexicons/chat/bsky/moderation.js.map +1 -1
- package/dist/lexicons/chat/bsky.d.ts +1 -0
- package/dist/lexicons/chat/bsky.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky.js +2 -1
- package/dist/lexicons/chat/bsky.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +4 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +10 -0
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/proto/bsync_connect.d.ts +10 -1
- package/dist/proto/bsync_connect.d.ts.map +1 -1
- package/dist/proto/bsync_connect.js +9 -0
- package/dist/proto/bsync_connect.js.map +1 -1
- package/dist/proto/bsync_pb.d.ts +38 -0
- package/dist/proto/bsync_pb.d.ts.map +1 -1
- package/dist/proto/bsync_pb.js +113 -1
- package/dist/proto/bsync_pb.js.map +1 -1
- package/dist/views/index.d.ts +2 -1
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +10 -8
- package/dist/views/index.js.map +1 -1
- package/dist/views/types.d.ts +1 -0
- package/dist/views/types.d.ts.map +1 -1
- package/dist/views/types.js.map +1 -1
- package/package.json +3 -3
- package/proto/bsky.proto +1 -0
- package/src/data-plane/server/routes/profile.ts +4 -0
- package/src/hydration/actor.ts +2 -0
- package/src/proto/bsky_pb.ts +6 -0
- package/src/proto/bsync_connect.ts +10 -1
- package/src/proto/bsync_pb.ts +80 -0
- package/src/views/index.ts +11 -8
- package/src/views/types.ts +1 -0
- package/tests/views/profile.test.ts +64 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/views/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const isProfileRecordType: <TValue extends {
|
|
|
6
6
|
export type ProfileViewer = app.bsky.actor.defs.ViewerState;
|
|
7
7
|
export type KnownFollowers = app.bsky.actor.defs.KnownFollowers;
|
|
8
8
|
export type ProfileAssociatedActivitySubscription = app.bsky.actor.defs.ProfileAssociatedActivitySubscription;
|
|
9
|
+
export type ProfileAssociatedChat = app.bsky.actor.defs.ProfileAssociatedChat;
|
|
9
10
|
export type ProfileView = app.bsky.actor.defs.ProfileView;
|
|
10
11
|
export type ProfileViewBasic = app.bsky.actor.defs.ProfileViewBasic;
|
|
11
12
|
export type ProfileViewDetailed = app.bsky.actor.defs.ProfileViewDetailed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceR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,kBAAkB,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAA;AAC3E,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAA;AAEnE,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,UAAU,CAAA;AAChF,MAAM,MAAM,0BAA0B,GACpC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,UAAU,CAAA;AAItE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAA;AAIpE,MAAM,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAA;AAChD,eAAO,MAAM,gBAAgB,0JAA8C,CAAA;AAI3E,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAA;AACvD,eAAO,MAAM,iBAAiB;;;;EAA2C,CAAA;AAIzE,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,CAAA"}
|
package/dist/views/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/views/types.ts"],"names":[],"mappings":";;;AAAA,mDAAqD;AAKxC,QAAA,mBAAmB,GAAG,cAAG,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/views/types.ts"],"names":[],"mappings":";;;AAAA,mDAAqD;AAKxC,QAAA,mBAAmB,GAAG,c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G,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAA;AAcrE,oBAAoB;AAEP,QAAA,kBAAkB,GAAG,cAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAA;AAsB9D,QAAA,gBAAgB,GAAG,cAAG,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAA;AAK9D,QAAA,iBAAiB,GAAG,cAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAA","sourcesContent":["import { app, chat, com } from '../lexicons/index.js'\n\n// app.bsky.actor\n\nexport type ProfileRecord = app.bsky.actor.profile.Main\nexport const isProfileRecordType = app.bsky.actor.profile.$isTypeOf\n\nexport type ProfileViewer = app.bsky.actor.defs.ViewerState\nexport type KnownFollowers = app.bsky.actor.defs.KnownFollowers\nexport type ProfileAssociatedActivitySubscription =\n app.bsky.actor.defs.ProfileAssociatedActivitySubscription\nexport type ProfileAssociatedChat = app.bsky.actor.defs.ProfileAssociatedChat\nexport type ProfileView = app.bsky.actor.defs.ProfileView\nexport type ProfileViewBasic = app.bsky.actor.defs.ProfileViewBasic\nexport type ProfileViewDetailed = app.bsky.actor.defs.ProfileViewDetailed\nexport type StatusView = app.bsky.actor.defs.StatusView\nexport type VerificationState = app.bsky.actor.defs.VerificationState\nexport type VerificationView = app.bsky.actor.defs.VerificationView\n\nexport type StatusRecord = app.bsky.actor.status.Main\n\n// app.bsky.bookmark\n\nexport type BookmarkView = app.bsky.bookmark.defs.BookmarkView\n\n// app.bsky.embed\n\nexport const isImagesEmbedType = app.bsky.embed.images.$isTypeOf\nexport type ImagesEmbed = app.bsky.embed.images.Main\nexport type ImagesEmbedView = app.bsky.embed.images.View\n\nexport const isVideoEmbedType = app.bsky.embed.video.$isTypeOf\nexport type VideoEmbed = app.bsky.embed.video.Main\nexport type VideoEmbedView = app.bsky.embed.video.View\n\nexport const isExternalEmbedType = app.bsky.embed.external.$isTypeOf\nexport type ExternalEmbed = app.bsky.embed.external.Main\nexport type ExternalEmbedView = app.bsky.embed.external.View\n\nexport const isRecordEmbedType = app.bsky.embed.record.$isTypeOf\nexport type RecordEmbed = app.bsky.embed.record.Main\nexport type RecordEmbedView = app.bsky.embed.record.View\nexport type EmbedBlocked = app.bsky.embed.record.ViewBlocked\nexport type EmbedDetached = app.bsky.embed.record.ViewDetached\nexport type EmbedNotFound = app.bsky.embed.record.ViewNotFound\nexport type PostEmbedView = app.bsky.embed.record.ViewRecord\n\nexport const isRecordWithMediaType = app.bsky.embed.recordWithMedia.$isTypeOf\nexport type RecordWithMedia = app.bsky.embed.recordWithMedia.Main\nexport type RecordWithMediaView = app.bsky.embed.recordWithMedia.View\nexport type RecordWithMediaEmbedView = app.bsky.embed.recordWithMedia.View\n\nexport type Embed =\n | ImagesEmbed\n | VideoEmbed\n | ExternalEmbed\n | RecordEmbed\n | RecordWithMedia\n\nexport type EmbedView =\n | ImagesEmbedView\n | VideoEmbedView\n | ExternalEmbedView\n | RecordEmbedView\n | RecordWithMediaView\n\nexport type MaybePostView = PostView | NotFoundPost | BlockedPost\n\nexport type RecordEmbedViewInternal =\n | PostEmbedView\n | GeneratorView\n | ListView\n | LabelerView\n | StarterPackViewBasic\n\n// app.bsky.feed\n\nexport type LikeRecord = app.bsky.feed.like.Main\nexport type RepostRecord = app.bsky.feed.repost.Main\n\nexport type PostRecord = app.bsky.feed.post.Main\nexport const isPostRecordType = app.bsky.feed.post.$isTypeOf\n\nexport type PostgateRecord = app.bsky.feed.postgate.Main\nexport const isPostgateDisableRuleType =\n app.bsky.feed.postgate.disableRule.$isTypeOf\n\nexport type FeedViewPost = app.bsky.feed.defs.FeedViewPost\nexport type ReasonPin = app.bsky.feed.defs.ReasonPin\nexport type ReasonRepost = app.bsky.feed.defs.ReasonRepost\nexport type ReplyRef = app.bsky.feed.defs.ReplyRef\nexport type PostReplyRef = app.bsky.feed.post.ReplyRef\nexport type ThreadViewPost = app.bsky.feed.defs.ThreadViewPost\nexport type ThreadgateView = app.bsky.feed.defs.ThreadgateView\nexport type BlockedPost = app.bsky.feed.defs.BlockedPost\nexport type GeneratorView = app.bsky.feed.defs.GeneratorView\nexport type NotFoundPost = app.bsky.feed.defs.NotFoundPost\nexport type PostView = app.bsky.feed.defs.PostView\nexport const isPostViewType = app.bsky.feed.defs.postView.$isTypeOf\n\nexport type GateRecord = app.bsky.feed.threadgate.Main\nexport const isFollowerRuleType =\n app.bsky.feed.threadgate.followerRule.$isTypeOf\nexport const isFollowingRuleType =\n app.bsky.feed.threadgate.followingRule.$isTypeOf\nexport const isListRuleType = app.bsky.feed.threadgate.listRule.$isTypeOf\nexport const isMentionRuleType = app.bsky.feed.threadgate.mentionRule.$isTypeOf\n\nexport type FeedGenRecord = app.bsky.feed.generator.Main\n\n// app.bsky.graph\n\nexport type BlockRecord = app.bsky.graph.block.Main\nexport type FollowRecord = app.bsky.graph.follow.Main\nexport type ListItemRecord = app.bsky.graph.listitem.Main\nexport type ListItemView = app.bsky.graph.defs.ListItemView\nexport type ListRecord = app.bsky.graph.list.Main\nexport type ListView = app.bsky.graph.defs.ListView\nexport type ListViewBasic = app.bsky.graph.defs.ListViewBasic\nexport type StarterPackRecord = app.bsky.graph.starterpack.Main\nexport type StarterPackView = app.bsky.graph.defs.StarterPackView\nexport type StarterPackViewBasic = app.bsky.graph.defs.StarterPackViewBasic\nexport type VerificationRecord = app.bsky.graph.verification.Main\n\n// app.bsky.labeler\n\nexport type LabelerRecord = app.bsky.labeler.service.Main\nexport const isLabelerRecordType = app.bsky.labeler.service.$isTypeOf\nexport type LabelerView = app.bsky.labeler.defs.LabelerView\nexport type LabelerViewDetailed = app.bsky.labeler.defs.LabelerViewDetailed\n\n// app.bsky.notification\n\nexport type NotificationDeclarationRecord =\n app.bsky.notification.declaration.Main\nexport type ActivitySubscription =\n app.bsky.notification.defs.ActivitySubscription\nexport type NotificationRecordDeleted = app.bsky.notification.defs.RecordDeleted\nexport type NotificationView =\n app.bsky.notification.listNotifications.Notification\n\n// app.bsky.richtext\n\nexport const isMentionFacetType = app.bsky.richtext.facet.mention.$isTypeOf\n\n// app.bsky.unspecced\n\nexport type ThreadItemBlocked = app.bsky.unspecced.defs.ThreadItemBlocked\nexport type ThreadItemNoUnauthenticated =\n app.bsky.unspecced.defs.ThreadItemNoUnauthenticated\nexport type ThreadItemNotFound = app.bsky.unspecced.defs.ThreadItemNotFound\nexport type ThreadItemPost = app.bsky.unspecced.defs.ThreadItemPost\n\nexport type ThreadOtherItem = app.bsky.unspecced.getPostThreadOtherV2.ThreadItem\nexport type GetPostThreadV2QueryParams =\n app.bsky.unspecced.getPostThreadV2.$Params\nexport type ThreadItem = app.bsky.unspecced.getPostThreadV2.ThreadItem\n\n// chat.bsky.actor\n\nexport type ChatDeclarationRecord = chat.bsky.actor.declaration.Main\n\n// com.atproto.label\n\nexport type Label = com.atproto.label.defs.Label\nexport const isSelfLabelsType = com.atproto.label.defs.selfLabels.$isTypeOf\n\n// com.atproto.label\n\nexport type StrongRef = com.atproto.repo.strongRef.Main\nexport const validateStrongRef = com.atproto.repo.strongRef.$safeValidate\n\n// com.germnetwork.declaration\n\nexport type GermDeclarationRecord = com.germnetwork.declaration.Main\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.227",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"zod": "3.23.8",
|
|
53
53
|
"@atproto-labs/fetch-node": "^0.2.0",
|
|
54
54
|
"@atproto-labs/xrpc-utils": "^0.0.24",
|
|
55
|
-
"@atproto/api": "^0.19.
|
|
55
|
+
"@atproto/api": "^0.19.10",
|
|
56
56
|
"@atproto/common": "^0.5.16",
|
|
57
57
|
"@atproto/crypto": "^0.4.5",
|
|
58
58
|
"@atproto/did": "^0.3.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"jest": "^28.1.2",
|
|
78
78
|
"ts-node": "^10.8.2",
|
|
79
79
|
"typescript": "^5.6.3",
|
|
80
|
-
"@atproto/pds": "^0.4.
|
|
80
|
+
"@atproto/pds": "^0.4.220"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"codegen": "lex build --override --indexFile --lexicons ../../lexicons",
|
package/proto/bsky.proto
CHANGED
|
@@ -173,6 +173,10 @@ export default (db: Database): Partial<ServiceImpl<typeof Service>> => ({
|
|
|
173
173
|
typeof chatDeclaration?.['allowIncoming'] === 'string'
|
|
174
174
|
? chatDeclaration['allowIncoming']
|
|
175
175
|
: undefined,
|
|
176
|
+
allowGroupChatInvitesFrom:
|
|
177
|
+
typeof chatDeclaration?.['allowGroupInvites'] === 'string'
|
|
178
|
+
? chatDeclaration['allowGroupInvites']
|
|
179
|
+
: undefined,
|
|
176
180
|
upstreamStatus: row?.upstreamStatus ?? '',
|
|
177
181
|
createdAt: profiles.records[i].createdAt, // @NOTE profile creation date not trusted in production
|
|
178
182
|
priorityNotifications: row?.priorityNotifs ?? false,
|
package/src/hydration/actor.ts
CHANGED
|
@@ -45,6 +45,7 @@ export type Actor = {
|
|
|
45
45
|
takedownRef?: string
|
|
46
46
|
isLabeler: boolean
|
|
47
47
|
allowIncomingChatsFrom?: string
|
|
48
|
+
allowGroupChatInvitesFrom?: string
|
|
48
49
|
upstreamStatus?: string
|
|
49
50
|
createdAt?: Date
|
|
50
51
|
priorityNotifications: boolean
|
|
@@ -298,6 +299,7 @@ export class ActorHydrator {
|
|
|
298
299
|
takedownRef: safeTakedownRef(actor),
|
|
299
300
|
isLabeler: actor.labeler ?? false,
|
|
300
301
|
allowIncomingChatsFrom: actor.allowIncomingChatsFrom || undefined,
|
|
302
|
+
allowGroupChatInvitesFrom: actor.allowGroupChatInvitesFrom || undefined,
|
|
301
303
|
upstreamStatus: actor.upstreamStatus || undefined,
|
|
302
304
|
createdAt: parseDate(actor.createdAt),
|
|
303
305
|
priorityNotifications: actor.priorityNotifications,
|
package/src/proto/bsky_pb.ts
CHANGED
|
@@ -3896,6 +3896,11 @@ export class ActorInfo extends Message<ActorInfo> {
|
|
|
3896
3896
|
*/
|
|
3897
3897
|
germRecord?: Record;
|
|
3898
3898
|
|
|
3899
|
+
/**
|
|
3900
|
+
* @generated from field: string allow_group_chat_invites_from = 22;
|
|
3901
|
+
*/
|
|
3902
|
+
allowGroupChatInvitesFrom = "";
|
|
3903
|
+
|
|
3899
3904
|
constructor(data?: PartialMessage<ActorInfo>) {
|
|
3900
3905
|
super();
|
|
3901
3906
|
proto3.util.initPartial(data, this);
|
|
@@ -3924,6 +3929,7 @@ export class ActorInfo extends Message<ActorInfo> {
|
|
|
3924
3929
|
{ no: 18, name: "allow_activity_subscriptions_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3925
3930
|
{ no: 19, name: "age_assurance_status", kind: "message", T: AgeAssuranceStatus, opt: true },
|
|
3926
3931
|
{ no: 21, name: "germ_record", kind: "message", T: Record },
|
|
3932
|
+
{ no: 22, name: "allow_group_chat_invites_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3927
3933
|
]);
|
|
3928
3934
|
|
|
3929
3935
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActorInfo {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { AddMuteOperationRequest, AddMuteOperationResponse, AddNotifOperationRequest, AddNotifOperationResponse, PingRequest, PingResponse, PutOperationRequest, PutOperationResponse, ScanMuteOperationsRequest, ScanMuteOperationsResponse, ScanNotifOperationsRequest, ScanNotifOperationsResponse, ScanOperationsRequest, ScanOperationsResponse } from "./bsync_pb";
|
|
6
|
+
import { AddMuteOperationRequest, AddMuteOperationResponse, AddNotifOperationRequest, AddNotifOperationResponse, DeleteOperationsByActorAndNamespaceRequest, DeleteOperationsByActorAndNamespaceResponse, PingRequest, PingResponse, PutOperationRequest, PutOperationResponse, ScanMuteOperationsRequest, ScanMuteOperationsResponse, ScanNotifOperationsRequest, ScanNotifOperationsResponse, ScanOperationsRequest, ScanOperationsResponse } from "./bsync_pb";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -68,6 +68,15 @@ export const Service = {
|
|
|
68
68
|
O: ScanOperationsResponse,
|
|
69
69
|
kind: MethodKind.Unary,
|
|
70
70
|
},
|
|
71
|
+
/**
|
|
72
|
+
* @generated from rpc bsync.Service.DeleteOperationsByActorAndNamespace
|
|
73
|
+
*/
|
|
74
|
+
deleteOperationsByActorAndNamespace: {
|
|
75
|
+
name: "DeleteOperationsByActorAndNamespace",
|
|
76
|
+
I: DeleteOperationsByActorAndNamespaceRequest,
|
|
77
|
+
O: DeleteOperationsByActorAndNamespaceResponse,
|
|
78
|
+
kind: MethodKind.Unary,
|
|
79
|
+
},
|
|
71
80
|
/**
|
|
72
81
|
* Ping
|
|
73
82
|
*
|
package/src/proto/bsync_pb.ts
CHANGED
|
@@ -763,6 +763,86 @@ export class ScanOperationsResponse extends Message<ScanOperationsResponse> {
|
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
|
|
766
|
+
/**
|
|
767
|
+
* @generated from message bsync.DeleteOperationsByActorAndNamespaceRequest
|
|
768
|
+
*/
|
|
769
|
+
export class DeleteOperationsByActorAndNamespaceRequest extends Message<DeleteOperationsByActorAndNamespaceRequest> {
|
|
770
|
+
/**
|
|
771
|
+
* @generated from field: string actor_did = 1;
|
|
772
|
+
*/
|
|
773
|
+
actorDid = "";
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* @generated from field: string namespace = 2;
|
|
777
|
+
*/
|
|
778
|
+
namespace = "";
|
|
779
|
+
|
|
780
|
+
constructor(data?: PartialMessage<DeleteOperationsByActorAndNamespaceRequest>) {
|
|
781
|
+
super();
|
|
782
|
+
proto3.util.initPartial(data, this);
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
786
|
+
static readonly typeName = "bsync.DeleteOperationsByActorAndNamespaceRequest";
|
|
787
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
788
|
+
{ no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
789
|
+
{ no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
790
|
+
]);
|
|
791
|
+
|
|
792
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOperationsByActorAndNamespaceRequest {
|
|
793
|
+
return new DeleteOperationsByActorAndNamespaceRequest().fromBinary(bytes, options);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOperationsByActorAndNamespaceRequest {
|
|
797
|
+
return new DeleteOperationsByActorAndNamespaceRequest().fromJson(jsonValue, options);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOperationsByActorAndNamespaceRequest {
|
|
801
|
+
return new DeleteOperationsByActorAndNamespaceRequest().fromJsonString(jsonString, options);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
static equals(a: DeleteOperationsByActorAndNamespaceRequest | PlainMessage<DeleteOperationsByActorAndNamespaceRequest> | undefined, b: DeleteOperationsByActorAndNamespaceRequest | PlainMessage<DeleteOperationsByActorAndNamespaceRequest> | undefined): boolean {
|
|
805
|
+
return proto3.util.equals(DeleteOperationsByActorAndNamespaceRequest, a, b);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @generated from message bsync.DeleteOperationsByActorAndNamespaceResponse
|
|
811
|
+
*/
|
|
812
|
+
export class DeleteOperationsByActorAndNamespaceResponse extends Message<DeleteOperationsByActorAndNamespaceResponse> {
|
|
813
|
+
/**
|
|
814
|
+
* @generated from field: int32 deleted_count = 1;
|
|
815
|
+
*/
|
|
816
|
+
deletedCount = 0;
|
|
817
|
+
|
|
818
|
+
constructor(data?: PartialMessage<DeleteOperationsByActorAndNamespaceResponse>) {
|
|
819
|
+
super();
|
|
820
|
+
proto3.util.initPartial(data, this);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
824
|
+
static readonly typeName = "bsync.DeleteOperationsByActorAndNamespaceResponse";
|
|
825
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
826
|
+
{ no: 1, name: "deleted_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
827
|
+
]);
|
|
828
|
+
|
|
829
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOperationsByActorAndNamespaceResponse {
|
|
830
|
+
return new DeleteOperationsByActorAndNamespaceResponse().fromBinary(bytes, options);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOperationsByActorAndNamespaceResponse {
|
|
834
|
+
return new DeleteOperationsByActorAndNamespaceResponse().fromJson(jsonValue, options);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOperationsByActorAndNamespaceResponse {
|
|
838
|
+
return new DeleteOperationsByActorAndNamespaceResponse().fromJsonString(jsonString, options);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
static equals(a: DeleteOperationsByActorAndNamespaceResponse | PlainMessage<DeleteOperationsByActorAndNamespaceResponse> | undefined, b: DeleteOperationsByActorAndNamespaceResponse | PlainMessage<DeleteOperationsByActorAndNamespaceResponse> | undefined): boolean {
|
|
842
|
+
return proto3.util.equals(DeleteOperationsByActorAndNamespaceResponse, a, b);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
766
846
|
/**
|
|
767
847
|
* Ping
|
|
768
848
|
*
|
package/src/views/index.ts
CHANGED
|
@@ -72,6 +72,7 @@ import {
|
|
|
72
72
|
PostRecord,
|
|
73
73
|
PostView,
|
|
74
74
|
ProfileAssociatedActivitySubscription,
|
|
75
|
+
ProfileAssociatedChat,
|
|
75
76
|
ProfileRecord,
|
|
76
77
|
ProfileView,
|
|
77
78
|
ProfileViewBasic,
|
|
@@ -290,10 +291,7 @@ export class Views {
|
|
|
290
291
|
feedgens: profileAggs?.feeds,
|
|
291
292
|
starterPacks: profileAggs?.starterPacks,
|
|
292
293
|
labeler: actor.isLabeler,
|
|
293
|
-
|
|
294
|
-
chat: actor.allowIncomingChatsFrom
|
|
295
|
-
? { allowIncoming: actor.allowIncomingChatsFrom }
|
|
296
|
-
: undefined,
|
|
294
|
+
chat: this.profileAssociatedChat(actor),
|
|
297
295
|
activitySubscription: this.profileAssociatedActivitySubscription(actor),
|
|
298
296
|
germ: actor.germ?.record.messageMe
|
|
299
297
|
? {
|
|
@@ -365,10 +363,7 @@ export class Views {
|
|
|
365
363
|
// on profile and profile-basic views, but should be on profile-detailed.
|
|
366
364
|
associated: {
|
|
367
365
|
labeler: actor.isLabeler ? true : undefined,
|
|
368
|
-
|
|
369
|
-
chat: actor.allowIncomingChatsFrom
|
|
370
|
-
? { allowIncoming: actor.allowIncomingChatsFrom }
|
|
371
|
-
: undefined,
|
|
366
|
+
chat: this.profileAssociatedChat(actor),
|
|
372
367
|
activitySubscription: this.profileAssociatedActivitySubscription(actor),
|
|
373
368
|
germ: actor.germ?.record.messageMe
|
|
374
369
|
? {
|
|
@@ -388,6 +383,14 @@ export class Views {
|
|
|
388
383
|
}
|
|
389
384
|
}
|
|
390
385
|
|
|
386
|
+
profileAssociatedChat(actor: Actor): ProfileAssociatedChat | undefined {
|
|
387
|
+
if (!actor.allowIncomingChatsFrom) return undefined
|
|
388
|
+
return {
|
|
389
|
+
allowIncoming: actor.allowIncomingChatsFrom,
|
|
390
|
+
allowGroupInvites: actor.allowGroupChatInvitesFrom,
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
391
394
|
profileAssociatedActivitySubscription(
|
|
392
395
|
actor: Actor,
|
|
393
396
|
): ProfileAssociatedActivitySubscription {
|
package/src/views/types.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type ProfileViewer = app.bsky.actor.defs.ViewerState
|
|
|
9
9
|
export type KnownFollowers = app.bsky.actor.defs.KnownFollowers
|
|
10
10
|
export type ProfileAssociatedActivitySubscription =
|
|
11
11
|
app.bsky.actor.defs.ProfileAssociatedActivitySubscription
|
|
12
|
+
export type ProfileAssociatedChat = app.bsky.actor.defs.ProfileAssociatedChat
|
|
12
13
|
export type ProfileView = app.bsky.actor.defs.ProfileView
|
|
13
14
|
export type ProfileViewBasic = app.bsky.actor.defs.ProfileViewBasic
|
|
14
15
|
export type ProfileViewDetailed = app.bsky.actor.defs.ProfileViewDetailed
|
|
@@ -613,6 +613,70 @@ describe('pds profile views', () => {
|
|
|
613
613
|
})
|
|
614
614
|
})
|
|
615
615
|
|
|
616
|
+
describe('chat', () => {
|
|
617
|
+
it('omits chat if no declaration exists', async () => {
|
|
618
|
+
const { data } = await agent.api.app.bsky.actor.getProfile(
|
|
619
|
+
{ actor: alice },
|
|
620
|
+
{
|
|
621
|
+
headers: await network.serviceHeaders(
|
|
622
|
+
alice,
|
|
623
|
+
ids.AppBskyActorGetProfile,
|
|
624
|
+
),
|
|
625
|
+
},
|
|
626
|
+
)
|
|
627
|
+
expect(data.associated?.chat).toBeUndefined()
|
|
628
|
+
})
|
|
629
|
+
|
|
630
|
+
it('returns allowIncoming when only that field is set', async () => {
|
|
631
|
+
const { data } = await agent.api.app.bsky.actor.getProfile(
|
|
632
|
+
{ actor: dan },
|
|
633
|
+
{
|
|
634
|
+
headers: await network.serviceHeaders(
|
|
635
|
+
alice,
|
|
636
|
+
ids.AppBskyActorGetProfile,
|
|
637
|
+
),
|
|
638
|
+
},
|
|
639
|
+
)
|
|
640
|
+
expect(data.associated?.chat).toEqual({
|
|
641
|
+
allowIncoming: 'none',
|
|
642
|
+
})
|
|
643
|
+
})
|
|
644
|
+
|
|
645
|
+
it('returns both allowIncoming and allowGroupInvites when both are set', async () => {
|
|
646
|
+
await sc.agent.com.atproto.repo.putRecord(
|
|
647
|
+
{
|
|
648
|
+
repo: eve,
|
|
649
|
+
collection: ids.ChatBskyActorDeclaration,
|
|
650
|
+
rkey: 'self',
|
|
651
|
+
record: {
|
|
652
|
+
$type: ids.ChatBskyActorDeclaration,
|
|
653
|
+
allowIncoming: 'following',
|
|
654
|
+
allowGroupInvites: 'all',
|
|
655
|
+
},
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
headers: sc.getHeaders(eve),
|
|
659
|
+
encoding: 'application/json',
|
|
660
|
+
},
|
|
661
|
+
)
|
|
662
|
+
await network.processAll()
|
|
663
|
+
|
|
664
|
+
const { data } = await agent.api.app.bsky.actor.getProfile(
|
|
665
|
+
{ actor: eve },
|
|
666
|
+
{
|
|
667
|
+
headers: await network.serviceHeaders(
|
|
668
|
+
alice,
|
|
669
|
+
ids.AppBskyActorGetProfile,
|
|
670
|
+
),
|
|
671
|
+
},
|
|
672
|
+
)
|
|
673
|
+
expect(data.associated?.chat).toEqual({
|
|
674
|
+
allowIncoming: 'following',
|
|
675
|
+
allowGroupInvites: 'all',
|
|
676
|
+
})
|
|
677
|
+
})
|
|
678
|
+
})
|
|
679
|
+
|
|
616
680
|
describe('germ', () => {
|
|
617
681
|
const germDeclaration: ComGermnetworkDeclaration.Main = {
|
|
618
682
|
$type: ids.ComGermnetworkDeclaration,
|