@atproto/pds 0.4.28 → 0.4.30
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/account-manager/helpers/account.d.ts +20 -1
- package/dist/account-manager/helpers/account.d.ts.map +1 -1
- package/dist/account-manager/helpers/account.js +32 -7
- package/dist/account-manager/helpers/account.js.map +1 -1
- package/dist/account-manager/index.d.ts +7 -2
- package/dist/account-manager/index.d.ts.map +1 -1
- package/dist/account-manager/index.js +24 -8
- package/dist/account-manager/index.js.map +1 -1
- package/dist/api/app/bsky/actor/getPreferences.js +1 -1
- package/dist/api/app/bsky/actor/getPreferences.js.map +1 -1
- package/dist/api/app/bsky/actor/getProfile.js +1 -1
- package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
- package/dist/api/app/bsky/actor/getProfiles.js +1 -1
- package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js.map +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.js +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.js +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.js +1 -1
- package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/api/app/bsky/feed/getTimeline.js +1 -1
- package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.js +4 -1
- package/dist/api/app/bsky/notification/registerPush.js.map +1 -1
- package/dist/api/chat/index.js +14 -14
- package/dist/api/chat/index.js.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.js +4 -2
- package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfo.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfo.js +1 -0
- package/dist/api/com/atproto/admin/getAccountInfo.js.map +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.js +4 -3
- package/dist/api/com/atproto/admin/getSubjectStatus.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.js +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.js +2 -0
- package/dist/api/com/atproto/admin/updateSubjectStatus.js.map +1 -1
- package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js +1 -1
- package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js.map +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js.map +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.js +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.js.map +1 -1
- package/dist/api/com/atproto/identity/submitPlcOperation.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/submitPlcOperation.js +1 -1
- package/dist/api/com/atproto/identity/submitPlcOperation.js.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.js +2 -2
- package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
- package/dist/api/com/atproto/repo/applyWrites.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/applyWrites.js +4 -1
- package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/api/com/atproto/repo/createRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/createRecord.js +4 -1
- package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.js +4 -1
- package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/describeRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/describeRepo.js +2 -4
- package/dist/api/com/atproto/repo/describeRepo.js.map +1 -1
- package/dist/api/com/atproto/repo/importRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/importRepo.js +3 -1
- package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
- package/dist/api/com/atproto/repo/listMissingBlobs.js +1 -1
- package/dist/api/com/atproto/repo/listMissingBlobs.js.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.js +4 -1
- package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js +3 -1
- package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.js +3 -2
- package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/checkAccountStatus.js +1 -1
- package/dist/api/com/atproto/server/checkAccountStatus.js.map +1 -1
- package/dist/api/com/atproto/server/confirmEmail.js +1 -1
- package/dist/api/com/atproto/server/confirmEmail.js.map +1 -1
- package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +4 -2
- package/dist/api/com/atproto/server/createAccount.js.map +1 -1
- package/dist/api/com/atproto/server/createAppPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAppPassword.js +3 -1
- package/dist/api/com/atproto/server/createAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createSession.js +2 -0
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.js +3 -1
- package/dist/api/com/atproto/server/deactivateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.js +4 -3
- package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.js +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.js.map +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.js +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
- package/dist/api/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getSession.js +7 -2
- package/dist/api/com/atproto/server/getSession.js.map +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.js +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.js.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.js +2 -0
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.js +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.js +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.js +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.js.map +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.js +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/updateEmail.js +1 -1
- package/dist/api/com/atproto/server/updateEmail.js.map +1 -1
- package/dist/api/com/atproto/server/util.d.ts +1 -0
- package/dist/api/com/atproto/server/util.d.ts.map +1 -1
- package/dist/api/com/atproto/server/util.js +9 -6
- package/dist/api/com/atproto/server/util.js.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.js +2 -8
- package/dist/api/com/atproto/sync/deprecated/getCheckout.js.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.js +2 -7
- package/dist/api/com/atproto/sync/deprecated/getHead.js.map +1 -1
- package/dist/api/com/atproto/sync/getBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getBlob.js +3 -6
- package/dist/api/com/atproto/sync/getBlob.js.map +1 -1
- package/dist/api/com/atproto/sync/getBlocks.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getBlocks.js +2 -7
- package/dist/api/com/atproto/sync/getBlocks.js.map +1 -1
- package/dist/api/com/atproto/sync/getLatestCommit.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getLatestCommit.js +2 -7
- package/dist/api/com/atproto/sync/getLatestCommit.js.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.js +2 -7
- package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRepo.js +2 -7
- package/dist/api/com/atproto/sync/getRepo.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.d.ts +4 -0
- package/dist/api/com/atproto/sync/getRepoStatus.d.ts.map +1 -0
- package/dist/api/com/atproto/sync/getRepoStatus.js +28 -0
- package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -0
- package/dist/api/com/atproto/sync/index.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/index.js +2 -0
- package/dist/api/com/atproto/sync/index.js.map +1 -1
- package/dist/api/com/atproto/sync/listBlobs.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/listBlobs.js +2 -8
- package/dist/api/com/atproto/sync/listBlobs.js.map +1 -1
- package/dist/api/com/atproto/sync/listRepos.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/listRepos.js +13 -8
- package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.js +8 -0
- package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/util.d.ts +4 -0
- package/dist/api/com/atproto/sync/util.d.ts.map +1 -0
- package/dist/api/com/atproto/sync/util.js +25 -0
- package/dist/api/com/atproto/sync/util.js.map +1 -0
- package/dist/api/com/atproto/temp/checkSignupQueue.d.ts.map +1 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.js +4 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.js.map +1 -1
- package/dist/auth-verifier.d.ts +13 -7
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +29 -46
- package/dist/auth-verifier.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +2 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +4 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +145 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +225 -4
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +1 -1
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/admin/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts +3 -0
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +3 -0
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +3 -0
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getLatestCommit.d.ts +1 -1
- package/dist/lexicon/types/com/atproto/sync/getLatestCommit.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRepoStatus.d.ts +42 -0
- package/dist/lexicon/types/com/atproto/sync/getRepoStatus.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/getRepoStatus.js +3 -0
- package/dist/lexicon/types/com/atproto/sync/getRepoStatus.js.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/listBlobs.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/sync/listBlobs.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +3 -0
- package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +19 -4
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +11 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +17 -14
- package/dist/pipethrough.js.map +1 -1
- package/dist/scripts/index.d.ts +4 -0
- package/dist/scripts/index.d.ts.map +1 -0
- package/dist/scripts/index.js +8 -0
- package/dist/scripts/index.js.map +1 -0
- package/dist/scripts/rebuild-repo.d.ts +3 -0
- package/dist/scripts/rebuild-repo.d.ts.map +1 -0
- package/dist/scripts/rebuild-repo.js +121 -0
- package/dist/scripts/rebuild-repo.js.map +1 -0
- package/dist/sequencer/db/schema.d.ts +1 -1
- package/dist/sequencer/db/schema.d.ts.map +1 -1
- package/dist/sequencer/events.d.ts +27 -2
- package/dist/sequencer/events.d.ts.map +1 -1
- package/dist/sequencer/events.js +35 -2
- package/dist/sequencer/events.js.map +1 -1
- package/dist/sequencer/sequencer.d.ts +8 -6
- package/dist/sequencer/sequencer.d.ts.map +1 -1
- package/dist/sequencer/sequencer.js +22 -9
- package/dist/sequencer/sequencer.js.map +1 -1
- package/package.json +4 -4
- package/src/account-manager/helpers/account.ts +38 -6
- package/src/account-manager/index.ts +21 -8
- package/src/api/app/bsky/actor/getPreferences.ts +1 -1
- package/src/api/app/bsky/actor/getProfile.ts +1 -1
- package/src/api/app/bsky/actor/getProfiles.ts +1 -1
- package/src/api/app/bsky/actor/putPreferences.ts +1 -1
- package/src/api/app/bsky/feed/getActorLikes.ts +1 -1
- package/src/api/app/bsky/feed/getAuthorFeed.ts +1 -1
- package/src/api/app/bsky/feed/getFeed.ts +1 -1
- package/src/api/app/bsky/feed/getPostThread.ts +1 -1
- package/src/api/app/bsky/feed/getTimeline.ts +1 -1
- package/src/api/app/bsky/notification/registerPush.ts +4 -1
- package/src/api/chat/index.ts +14 -14
- package/src/api/com/atproto/admin/deleteAccount.ts +7 -2
- package/src/api/com/atproto/admin/getAccountInfo.ts +1 -0
- package/src/api/com/atproto/admin/getSubjectStatus.ts +4 -3
- package/src/api/com/atproto/admin/updateAccountHandle.ts +1 -1
- package/src/api/com/atproto/admin/updateSubjectStatus.ts +2 -0
- package/src/api/com/atproto/identity/getRecommendedDidCredentials.ts +1 -1
- package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +1 -1
- package/src/api/com/atproto/identity/signPlcOperation.ts +1 -1
- package/src/api/com/atproto/identity/submitPlcOperation.ts +2 -1
- package/src/api/com/atproto/identity/updateHandle.ts +2 -2
- package/src/api/com/atproto/repo/applyWrites.ts +4 -1
- package/src/api/com/atproto/repo/createRecord.ts +4 -1
- package/src/api/com/atproto/repo/deleteRecord.ts +4 -1
- package/src/api/com/atproto/repo/describeRepo.ts +2 -4
- package/src/api/com/atproto/repo/importRepo.ts +3 -1
- package/src/api/com/atproto/repo/listMissingBlobs.ts +1 -1
- package/src/api/com/atproto/repo/putRecord.ts +4 -1
- package/src/api/com/atproto/repo/uploadBlob.ts +3 -1
- package/src/api/com/atproto/server/activateAccount.ts +3 -2
- package/src/api/com/atproto/server/checkAccountStatus.ts +1 -1
- package/src/api/com/atproto/server/confirmEmail.ts +1 -1
- package/src/api/com/atproto/server/createAccount.ts +6 -3
- package/src/api/com/atproto/server/createAppPassword.ts +3 -1
- package/src/api/com/atproto/server/createSession.ts +2 -0
- package/src/api/com/atproto/server/deactivateAccount.ts +3 -1
- package/src/api/com/atproto/server/deleteAccount.ts +7 -3
- package/src/api/com/atproto/server/getAccountInviteCodes.ts +1 -1
- package/src/api/com/atproto/server/getServiceAuth.ts +1 -1
- package/src/api/com/atproto/server/getSession.ts +7 -2
- package/src/api/com/atproto/server/listAppPasswords.ts +1 -1
- package/src/api/com/atproto/server/refreshSession.ts +2 -0
- package/src/api/com/atproto/server/requestAccountDelete.ts +1 -1
- package/src/api/com/atproto/server/requestEmailConfirmation.ts +1 -1
- package/src/api/com/atproto/server/requestEmailUpdate.ts +1 -1
- package/src/api/com/atproto/server/revokeAppPassword.ts +1 -1
- package/src/api/com/atproto/server/updateEmail.ts +1 -1
- package/src/api/com/atproto/server/util.ts +12 -5
- package/src/api/com/atproto/sync/deprecated/getCheckout.ts +6 -8
- package/src/api/com/atproto/sync/deprecated/getHead.ts +7 -10
- package/src/api/com/atproto/sync/getBlob.ts +8 -6
- package/src/api/com/atproto/sync/getBlocks.ts +6 -7
- package/src/api/com/atproto/sync/getLatestCommit.ts +7 -10
- package/src/api/com/atproto/sync/getRecord.ts +7 -7
- package/src/api/com/atproto/sync/getRepo.ts +6 -7
- package/src/api/com/atproto/sync/getRepoStatus.ts +31 -0
- package/src/api/com/atproto/sync/index.ts +2 -0
- package/src/api/com/atproto/sync/listBlobs.ts +6 -8
- package/src/api/com/atproto/sync/listRepos.ts +13 -8
- package/src/api/com/atproto/sync/subscribeRepos.ts +7 -0
- package/src/api/com/atproto/sync/util.ts +36 -0
- package/src/api/com/atproto/temp/checkSignupQueue.ts +4 -1
- package/src/auth-verifier.ts +62 -47
- package/src/index.ts +1 -0
- package/src/lexicon/index.ts +12 -0
- package/src/lexicon/lexicons.ts +236 -7
- package/src/lexicon/types/chat/bsky/convo/defs.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/defs.ts +1 -0
- package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +1 -0
- package/src/lexicon/types/com/atproto/server/createSession.ts +3 -0
- package/src/lexicon/types/com/atproto/server/getSession.ts +3 -0
- package/src/lexicon/types/com/atproto/server/refreshSession.ts +3 -0
- package/src/lexicon/types/com/atproto/sync/getBlob.ts +6 -0
- package/src/lexicon/types/com/atproto/sync/getBlocks.ts +6 -0
- package/src/lexicon/types/com/atproto/sync/getLatestCommit.ts +1 -1
- package/src/lexicon/types/com/atproto/sync/getRecord.ts +6 -0
- package/src/lexicon/types/com/atproto/sync/getRepo.ts +1 -0
- package/src/lexicon/types/com/atproto/sync/getRepoStatus.ts +52 -0
- package/src/lexicon/types/com/atproto/sync/listBlobs.ts +1 -0
- package/src/lexicon/types/com/atproto/sync/listRepos.ts +3 -0
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +30 -3
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
- package/src/pipethrough.ts +5 -4
- package/src/scripts/index.ts +5 -0
- package/src/scripts/rebuild-repo.ts +143 -0
- package/src/sequencer/db/schema.ts +1 -0
- package/src/sequencer/events.ts +47 -0
- package/src/sequencer/sequencer.ts +35 -14
- package/tests/account-deactivation.test.ts +67 -12
- package/tests/account-deletion.test.ts +10 -2
- package/tests/auth.test.ts +3 -0
- package/tests/moderation.test.ts +2 -2
- package/tests/proxied/notif.test.ts +1 -0
- package/tests/sequencer.test.ts +2 -2
- package/tests/sync/list.test.ts +1 -0
- package/tests/sync/subscribe-repos.test.ts +224 -40
- package/tests/sync/sync.test.ts +48 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.30
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2531](https://github.com/bluesky-social/atproto/pull/2531) [`255d5ea1f`](https://github.com/bluesky-social/atproto/commit/255d5ea1f06726547cdbe59c83bd18f2d4746912) Thanks [@dholms](https://github.com/dholms)! - Account deactivation. Current hosting status returned on session routes.
|
8
|
+
|
9
|
+
- Updated dependencies [[`255d5ea1f`](https://github.com/bluesky-social/atproto/commit/255d5ea1f06726547cdbe59c83bd18f2d4746912)]:
|
10
|
+
- @atproto/api@0.12.15
|
11
|
+
|
12
|
+
## 0.4.29
|
13
|
+
|
14
|
+
### Patch Changes
|
15
|
+
|
16
|
+
- Updated dependencies [[`c4af6a409`](https://github.com/bluesky-social/atproto/commit/c4af6a409ea2171c3cf1d0e7c8ed496794a3f049)]:
|
17
|
+
- @atproto/api@0.12.14
|
18
|
+
|
3
19
|
## 0.4.28
|
4
20
|
|
5
21
|
### Patch Changes
|
@@ -6,11 +6,20 @@ export type ActorAccount = ActorEntry & {
|
|
6
6
|
email: string | null;
|
7
7
|
emailConfirmedAt: string | null;
|
8
8
|
invitesDisabled: 0 | 1 | null;
|
9
|
+
active: boolean;
|
10
|
+
status?: AccountStatus;
|
9
11
|
};
|
10
12
|
export type AvailabilityFlags = {
|
11
13
|
includeTakenDown?: boolean;
|
12
14
|
includeDeactivated?: boolean;
|
13
15
|
};
|
16
|
+
export declare enum AccountStatus {
|
17
|
+
Active = "active",
|
18
|
+
Takendown = "takendown",
|
19
|
+
Suspended = "suspended",
|
20
|
+
Deleted = "deleted",
|
21
|
+
Deactivated = "deactivated"
|
22
|
+
}
|
14
23
|
export declare const getAccount: (db: AccountDb, handleOrDid: string, flags?: AvailabilityFlags) => Promise<ActorAccount | null>;
|
15
24
|
export declare const getAccountByEmail: (db: AccountDb, email: string, flags?: AvailabilityFlags) => Promise<ActorAccount | null>;
|
16
25
|
export declare const registerActor: (db: AccountDb, opts: {
|
@@ -27,8 +36,18 @@ export declare const deleteAccount: (db: AccountDb, did: string) => Promise<void
|
|
27
36
|
export declare const updateHandle: (db: AccountDb, did: string, handle: string) => Promise<void>;
|
28
37
|
export declare const updateEmail: (db: AccountDb, did: string, email: string) => Promise<void>;
|
29
38
|
export declare const setEmailConfirmedAt: (db: AccountDb, did: string, emailConfirmedAt: string) => Promise<void>;
|
30
|
-
export declare const
|
39
|
+
export declare const getAccountAdminStatus: (db: AccountDb, did: string) => Promise<{
|
40
|
+
takedown: StatusAttr;
|
41
|
+
deactivated: StatusAttr;
|
42
|
+
} | null>;
|
31
43
|
export declare const updateAccountTakedownStatus: (db: AccountDb, did: string, takedown: StatusAttr) => Promise<void>;
|
32
44
|
export declare const deactivateAccount: (db: AccountDb, did: string, deleteAfter: string | null) => Promise<void>;
|
33
45
|
export declare const activateAccount: (db: AccountDb, did: string) => Promise<void>;
|
46
|
+
export declare const formatAccountStatus: (account: {
|
47
|
+
takedownRef: string | null;
|
48
|
+
deactivatedAt: string | null;
|
49
|
+
}) => {
|
50
|
+
active: boolean;
|
51
|
+
status?: AccountStatus;
|
52
|
+
};
|
34
53
|
//# sourceMappingURL=account.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/account-manager/helpers/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AAGvE,qBAAa,sBAAuB,SAAQ,KAAK;CAAG;AAEpD,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACtC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,eAAe,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/account-manager/helpers/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AAGvE,qBAAa,sBAAuB,SAAQ,KAAK;CAAG;AAEpD,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACtC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,eAAe,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,aAAa,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED,oBAAY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,GAAG,IAAI,CAAA;IAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B,KAAG;IACF,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,aAAa,CAAA;CAavB,CAAA"}
|
@@ -1,11 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.activateAccount = exports.deactivateAccount = exports.updateAccountTakedownStatus = exports.
|
3
|
+
exports.formatAccountStatus = exports.activateAccount = exports.deactivateAccount = exports.updateAccountTakedownStatus = exports.getAccountAdminStatus = exports.setEmailConfirmedAt = exports.updateEmail = exports.updateHandle = exports.deleteAccount = exports.registerAccount = exports.registerActor = exports.getAccountByEmail = exports.getAccount = exports.AccountStatus = exports.UserAlreadyExistsError = void 0;
|
4
4
|
const db_1 = require("../../db");
|
5
5
|
const common_1 = require("@atproto/common");
|
6
6
|
class UserAlreadyExistsError extends Error {
|
7
7
|
}
|
8
8
|
exports.UserAlreadyExistsError = UserAlreadyExistsError;
|
9
|
+
var AccountStatus;
|
10
|
+
(function (AccountStatus) {
|
11
|
+
AccountStatus["Active"] = "active";
|
12
|
+
AccountStatus["Takendown"] = "takendown";
|
13
|
+
AccountStatus["Suspended"] = "suspended";
|
14
|
+
AccountStatus["Deleted"] = "deleted";
|
15
|
+
AccountStatus["Deactivated"] = "deactivated";
|
16
|
+
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
9
17
|
const selectAccountQB = (db, flags) => {
|
10
18
|
const { includeTakenDown = false, includeDeactivated = false } = flags ?? {};
|
11
19
|
const { ref } = db.db.dynamic;
|
@@ -37,14 +45,14 @@ const getAccount = async (db, handleOrDid, flags) => {
|
|
37
45
|
}
|
38
46
|
})
|
39
47
|
.executeTakeFirst();
|
40
|
-
return found
|
48
|
+
return found ? { ...found, ...(0, exports.formatAccountStatus)(found) } : null;
|
41
49
|
};
|
42
50
|
exports.getAccount = getAccount;
|
43
51
|
const getAccountByEmail = async (db, email, flags) => {
|
44
52
|
const found = await selectAccountQB(db, flags)
|
45
53
|
.where('email', '=', email.toLowerCase())
|
46
54
|
.executeTakeFirst();
|
47
|
-
return found
|
55
|
+
return found ? { ...found, ...(0, exports.formatAccountStatus)(found) } : null;
|
48
56
|
};
|
49
57
|
exports.getAccountByEmail = getAccountByEmail;
|
50
58
|
const registerActor = async (db, opts) => {
|
@@ -126,19 +134,21 @@ const setEmailConfirmedAt = async (db, did, emailConfirmedAt) => {
|
|
126
134
|
.where('did', '=', did));
|
127
135
|
};
|
128
136
|
exports.setEmailConfirmedAt = setEmailConfirmedAt;
|
129
|
-
const
|
137
|
+
const getAccountAdminStatus = async (db, did) => {
|
130
138
|
const res = await db.db
|
131
139
|
.selectFrom('actor')
|
132
|
-
.select('takedownRef')
|
140
|
+
.select(['takedownRef', 'deactivatedAt'])
|
133
141
|
.where('did', '=', did)
|
134
142
|
.executeTakeFirst();
|
135
143
|
if (!res)
|
136
144
|
return null;
|
137
|
-
|
145
|
+
const takedown = res.takedownRef
|
138
146
|
? { applied: true, ref: res.takedownRef }
|
139
147
|
: { applied: false };
|
148
|
+
const deactivated = res.deactivatedAt ? { applied: true } : { applied: false };
|
149
|
+
return { takedown, deactivated };
|
140
150
|
};
|
141
|
-
exports.
|
151
|
+
exports.getAccountAdminStatus = getAccountAdminStatus;
|
142
152
|
const updateAccountTakedownStatus = async (db, did, takedown) => {
|
143
153
|
const takedownRef = takedown.applied
|
144
154
|
? takedown.ref ?? new Date().toISOString()
|
@@ -166,4 +176,19 @@ const activateAccount = async (db, did) => {
|
|
166
176
|
.where('did', '=', did));
|
167
177
|
};
|
168
178
|
exports.activateAccount = activateAccount;
|
179
|
+
const formatAccountStatus = (account) => {
|
180
|
+
let status = undefined;
|
181
|
+
if (account.takedownRef) {
|
182
|
+
status = AccountStatus.Takendown;
|
183
|
+
}
|
184
|
+
else if (account.deactivatedAt) {
|
185
|
+
status = AccountStatus.Deactivated;
|
186
|
+
}
|
187
|
+
const active = !status;
|
188
|
+
return {
|
189
|
+
active,
|
190
|
+
status,
|
191
|
+
};
|
192
|
+
};
|
193
|
+
exports.formatAccountStatus = formatAccountStatus;
|
169
194
|
//# sourceMappingURL=account.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/account-manager/helpers/account.ts"],"names":[],"mappings":";;;AAAA,iCAAqE;AAGrE,4CAAqC;AAErC,MAAa,sBAAuB,SAAQ,KAAK;CAAG;AAApD,wDAAoD;
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/account-manager/helpers/account.ts"],"names":[],"mappings":";;;AAAA,iCAAqE;AAGrE,4CAAqC;AAErC,MAAa,sBAAuB,SAAQ,KAAK;CAAG;AAApD,wDAAoD;AAepD,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,4CAA2B,CAAA;AAC7B,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAED,MAAM,eAAe,GAAG,CAAC,EAAa,EAAE,KAAyB,EAAE,EAAE;IACnE,MAAM,EAAE,gBAAgB,GAAG,KAAK,EAAE,kBAAkB,GAAG,KAAK,EAAE,GAAG,KAAK,IAAI,EAAE,CAAA;IAC5E,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,OAAO,CAAA;IAC7B,OAAO,EAAE,CAAC,EAAE;SACT,UAAU,CAAC,OAAO,CAAC;SACnB,QAAQ,CAAC,SAAS,EAAE,WAAW,EAAE,aAAa,CAAC;SAC/C,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAA,yBAAoB,EAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SAC3E,EAAE,CAAC,CAAC,kBAAkB,EAAE,CAAC,EAAE,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AC;QACjC,MAAM,GAAG,aAAa,CAAC,WAAW,CAAA;IACpC,CAAC;IACD,MAAM,MAAM,GAAG,CAAC,MAAM,CAAA;IACtB,OAAO;QACL,MAAM;QACN,MAAM;KACP,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,mBAAmB,uBAkB/B"}
|
@@ -3,10 +3,12 @@ import { KeyObject } from 'node:crypto';
|
|
3
3
|
import { CID } from 'multiformats/cid';
|
4
4
|
import { AccountDb, EmailTokenPurpose } from './db';
|
5
5
|
import * as account from './helpers/account';
|
6
|
+
import { AccountStatus } from './helpers/account';
|
6
7
|
import { ActorAccount } from './helpers/account';
|
7
8
|
import * as invite from './helpers/invite';
|
8
9
|
import * as password from './helpers/password';
|
9
10
|
import { StatusAttr } from '../lexicon/types/com/atproto/admin/defs';
|
11
|
+
export { AccountStatus } from './helpers/account';
|
10
12
|
export declare class AccountManager {
|
11
13
|
private jwtKey;
|
12
14
|
private serviceDid;
|
@@ -16,9 +18,9 @@ export declare class AccountManager {
|
|
16
18
|
close(): void;
|
17
19
|
getAccount(handleOrDid: string, flags?: account.AvailabilityFlags): Promise<ActorAccount | null>;
|
18
20
|
getAccountByEmail(email: string, flags?: account.AvailabilityFlags): Promise<ActorAccount | null>;
|
19
|
-
isRepoAvailable(did: string): Promise<boolean>;
|
20
21
|
isAccountActivated(did: string): Promise<boolean>;
|
21
22
|
getDidForActor(handleOrDid: string, flags?: account.AvailabilityFlags): Promise<string | null>;
|
23
|
+
getAccountStatus(handleOrDid: string): Promise<AccountStatus>;
|
22
24
|
createAccount(opts: {
|
23
25
|
did: string;
|
24
26
|
handle: string;
|
@@ -35,7 +37,10 @@ export declare class AccountManager {
|
|
35
37
|
updateHandle(did: string, handle: string): Promise<void>;
|
36
38
|
deleteAccount(did: string): Promise<void>;
|
37
39
|
takedownAccount(did: string, takedown: StatusAttr): Promise<void>;
|
38
|
-
|
40
|
+
getAccountAdminStatus(did: string): Promise<{
|
41
|
+
takedown: StatusAttr;
|
42
|
+
deactivated: StatusAttr;
|
43
|
+
} | null>;
|
39
44
|
updateRepoRoot(did: string, cid: CID, rev: string): Promise<void>;
|
40
45
|
deactivateAccount(did: string, deleteAfter: string | null): Promise<void>;
|
41
46
|
activateAccount(did: string): Promise<void>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAsB,MAAM,MAAM,CAAA;AAEvE,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGhD,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AAEpE,qBAAa,cAAc;IAKvB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU;IALpB,EAAE,EAAE,SAAS,CAAA;gBAGX,UAAU,EAAE,MAAM,EACV,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,MAAM,EAC1B,wBAAwB,UAAQ;IAK5B,cAAc;IAKpB,KAAK;IAOC,UAAU,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,GAChC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzB,iBAAiB,CACrB,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,GAChC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,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EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAWpE"}
|
@@ -23,17 +23,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.AccountManager = void 0;
|
26
|
+
exports.AccountManager = exports.AccountStatus = void 0;
|
27
27
|
const common_1 = require("@atproto/common");
|
28
28
|
const db_1 = require("./db");
|
29
29
|
const scrypt = __importStar(require("./helpers/scrypt"));
|
30
30
|
const account = __importStar(require("./helpers/account"));
|
31
|
+
const account_1 = require("./helpers/account");
|
31
32
|
const repo = __importStar(require("./helpers/repo"));
|
32
33
|
const auth = __importStar(require("./helpers/auth"));
|
33
34
|
const invite = __importStar(require("./helpers/invite"));
|
34
35
|
const password = __importStar(require("./helpers/password"));
|
35
36
|
const emailToken = __importStar(require("./helpers/email-token"));
|
36
37
|
const auth_verifier_1 = require("../auth-verifier");
|
38
|
+
var account_2 = require("./helpers/account");
|
39
|
+
Object.defineProperty(exports, "AccountStatus", { enumerable: true, get: function () { return account_2.AccountStatus; } });
|
37
40
|
class AccountManager {
|
38
41
|
constructor(dbLocation, jwtKey, serviceDid, disableWalAutoCheckpoint = false) {
|
39
42
|
Object.defineProperty(this, "jwtKey", {
|
@@ -71,11 +74,6 @@ class AccountManager {
|
|
71
74
|
async getAccountByEmail(email, flags) {
|
72
75
|
return account.getAccountByEmail(this.db, email, flags);
|
73
76
|
}
|
74
|
-
// Repo exists and is not taken-down
|
75
|
-
async isRepoAvailable(did) {
|
76
|
-
const got = await this.getAccount(did);
|
77
|
-
return !!got;
|
78
|
-
}
|
79
77
|
async isAccountActivated(did) {
|
80
78
|
const account = await this.getAccount(did, { includeDeactivated: true });
|
81
79
|
if (!account)
|
@@ -86,6 +84,24 @@ class AccountManager {
|
|
86
84
|
const got = await this.getAccount(handleOrDid, flags);
|
87
85
|
return got?.did ?? null;
|
88
86
|
}
|
87
|
+
async getAccountStatus(handleOrDid) {
|
88
|
+
const got = await this.getAccount(handleOrDid, {
|
89
|
+
includeDeactivated: true,
|
90
|
+
includeTakenDown: true,
|
91
|
+
});
|
92
|
+
if (!got) {
|
93
|
+
return account_1.AccountStatus.Deleted;
|
94
|
+
}
|
95
|
+
else if (got.takedownRef) {
|
96
|
+
return account_1.AccountStatus.Takendown;
|
97
|
+
}
|
98
|
+
else if (got.deactivatedAt) {
|
99
|
+
return account_1.AccountStatus.Deactivated;
|
100
|
+
}
|
101
|
+
else {
|
102
|
+
return account_1.AccountStatus.Active;
|
103
|
+
}
|
104
|
+
}
|
89
105
|
async createAccount(opts) {
|
90
106
|
const { did, handle, email, password, repoCid, repoRev, inviteCode, deactivated, } = opts;
|
91
107
|
const passwordScrypt = password
|
@@ -133,8 +149,8 @@ class AccountManager {
|
|
133
149
|
auth.revokeRefreshTokensByDid(dbTxn, did),
|
134
150
|
]));
|
135
151
|
}
|
136
|
-
async
|
137
|
-
return account.
|
152
|
+
async getAccountAdminStatus(did) {
|
153
|
+
return account.getAccountAdminStatus(this.db, did);
|
138
154
|
}
|
139
155
|
async updateRepoRoot(did, cid, rev) {
|
140
156
|
return repo.updateRoot(this.db, did, cid, rev);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4CAAsC;AAEtC,6BAAuE;AACvE,yDAA0C;AAC1C,2DAA4C;AAE5C,qDAAsC;AACtC,qDAAsC;AACtC,yDAA0C;AAC1C,6DAA8C;AAC9C,kEAAmD;AACnD,oDAA4C;AAG5C,MAAa,cAAc;IAGzB,YACE,UAAkB,EACV,MAAiB,EACjB,UAAkB,EAC1B,wBAAwB,GAAG,KAAK;QAFhC;;;;mBAAQ,MAAM;WAAW;QACzB;;;;mBAAQ,UAAU;WAAQ;QAL5B;;;;;WAAa;QAQX,IAAI,CAAC,EAAE,GAA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B,IAAI,CAAC,KAAK,CACX,CAAA;QACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;IACpE,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,IAAuC;QACjE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;QACpB,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACjE,MAAM,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CACxC,OAAO,CAAC,GAAG,CAAC;YACV,QAAQ,CAAC,kBAAkB,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;YAC3D,UAAU,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,gBAAgB,CAAC;YACzD,IAAI,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG,CAAC;SAC1C,CAAC,CACH,CAAA;IACH,CAAC;CACF;AA/XD,wCA+XC"}
|
@@ -5,7 +5,7 @@ function default_1(server, ctx) {
|
|
5
5
|
if (!ctx.cfg.bskyAppView)
|
6
6
|
return;
|
7
7
|
server.app.bsky.actor.getPreferences({
|
8
|
-
auth: ctx.authVerifier.
|
8
|
+
auth: ctx.authVerifier.accessStandard(),
|
9
9
|
handler: async ({ auth }) => {
|
10
10
|
const requester = auth.credentials.did;
|
11
11
|
let preferences = await ctx.actorStore.read(requester, (store) => store.pref.getPreferences('app.bsky'));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":";;AAEA,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":";;AAEA,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,IAAI,WAAW,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAC/D,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CACtC,CAAA;YACD,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,yBAAS,CAAC,MAAM,EAAE,CAAC;gBAChD,gDAAgD;gBAChD,WAAW,GAAG,WAAW,CAAC,MAAM,CAC9B,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,yCAAyC,CACnE,CAAA;YACH,CAAC;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,WAAW,EAAE;aACtB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AArBD,4BAqBC"}
|
@@ -8,7 +8,7 @@ function default_1(server, ctx) {
|
|
8
8
|
if (!bskyAppView)
|
9
9
|
return;
|
10
10
|
server.app.bsky.actor.getProfile({
|
11
|
-
auth: ctx.authVerifier.
|
11
|
+
auth: ctx.authVerifier.accessStandard(),
|
12
12
|
handler: async ({ req, auth }) => {
|
13
13
|
const requester = auth.credentials.did;
|
14
14
|
const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getProfile.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfile.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"getProfile.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfile.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,GAAG,CAAA;YACZ,CAAC;YACD,OAAO,IAAA,uCAAoB,EACzB,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,eAAe,CAChB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AApBD,4BAoBC;AAED,MAAM,eAAe,GAAG,KAAK,EAC3B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,IAAI,CAAC,KAAK,CAAC,OAAO;QAAE,OAAO,QAAQ,CAAA;IACnC,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC/C,OAAO,WAAW,CAAC,qBAAqB,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;AAC1E,CAAC,CAAA"}
|
@@ -8,7 +8,7 @@ function default_1(server, ctx) {
|
|
8
8
|
if (!bskyAppView)
|
9
9
|
return;
|
10
10
|
server.app.bsky.actor.getProfiles({
|
11
|
-
auth: ctx.authVerifier.
|
11
|
+
auth: ctx.authVerifier.accessStandard(),
|
12
12
|
handler: async ({ req, auth }) => {
|
13
13
|
const requester = auth.credentials.did;
|
14
14
|
const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getProfiles.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfiles.ts"],"names":[],"mappings":";;AAGA,yDAAqD;AACrD,mEAIqC;AAErC,MAAM,WAAW,GAAG,4BAA4B,CAAA;AAEhD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;QAChC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"getProfiles.js","sourceRoot":"","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;QACX,QAAQ;KACT,CAAA;AACH,CAAC,CAAA"}
|
@@ -5,7 +5,7 @@ function default_1(server, ctx) {
|
|
5
5
|
if (!ctx.cfg.bskyAppView)
|
6
6
|
return;
|
7
7
|
server.app.bsky.actor.putPreferences({
|
8
|
-
auth: ctx.authVerifier.
|
8
|
+
auth: ctx.authVerifier.accessStandard({ checkTakedown: true }),
|
9
9
|
handler: async ({ auth, input }) => {
|
10
10
|
const { preferences } = input.body;
|
11
11
|
const requester = auth.credentials.did;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"putPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/putPreferences.ts"],"names":[],"mappings":";;AAAA,sDAA0D;AAK1D,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"putPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/putPreferences.ts"],"names":[],"mappings":";;AAAA,sDAA0D;AAK1D,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QAC9D,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACjC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YAClC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,kBAAkB,GAAwB,EAAE,CAAA;YAClD,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;gBAC/B,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;oBACnC,kBAAkB,CAAC,IAAI,CAAC,IAAyB,CAAC,CAAA;gBACpD,CAAC;qBAAM,CAAC;oBACN,MAAM,IAAI,iCAAmB,CAAC,+BAA+B,CAAC,CAAA;gBAChE,CAAC;YACH,CAAC;YACD,MAAM,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;gBAC1D,MAAM,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAA;YACpE,CAAC,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AApBD,4BAoBC"}
|
@@ -8,7 +8,7 @@ function default_1(server, ctx) {
|
|
8
8
|
if (!bskyAppView)
|
9
9
|
return;
|
10
10
|
server.app.bsky.feed.getActorLikes({
|
11
|
-
auth: ctx.authVerifier.
|
11
|
+
auth: ctx.authVerifier.accessStandard(),
|
12
12
|
handler: async ({ req, auth }) => {
|
13
13
|
const requester = auth.credentials.did;
|
14
14
|
const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getActorLikes.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getActorLikes.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|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S,EAAE,CAAC;gBACvC,OAAO;oBACL,GAAG,IAAI;oBACP,IAAI,EAAE;wBACJ,GAAG,IAAI,CAAC,IAAI;wBACZ,MAAM,EAAE,WAAW,CAAC,sBAAsB,CACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAChB,SAAS,CAAC,MAAM,CACjB;qBACF;iBACF,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
|
@@ -9,7 +9,7 @@ function default_1(server, ctx) {
|
|
9
9
|
if (!bskyAppView)
|
10
10
|
return;
|
11
11
|
server.app.bsky.feed.getAuthorFeed({
|
12
|
-
auth: ctx.authVerifier.
|
12
|
+
auth: ctx.authVerifier.accessStandard(),
|
13
13
|
handler: async ({ req, auth }) => {
|
14
14
|
const requester = auth.credentials.did;
|
15
15
|
const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getAuthorFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":";;AAGA,uEAA6E;AAC7E,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"getAuthorFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":";;AAGA,uEAA6E;AAC7E,mEAI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KAAK,SAAS,EAAE,CAAC;gBACvC,OAAO;oBACL,GAAG,IAAI;oBACP,IAAI,EAAE;wBACJ,GAAG,IAAI,CAAC,IAAI;wBACZ,MAAM,EAAE,WAAW,CAAC,sBAAsB,CACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAChB,SAAS,CAAC,MAAM,CACjB;qBACF;iBACF,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,IAAI,GAAG,MAAM,WAAW,CAAC,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;IACtE,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,IAAkB,EAAE,SAAiB,EAAE,EAAE;IAC5D,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;IAC7B,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAA;IACxB,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IACrE,IAAI,IAAA,qBAAc,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,SAAS;QACnE,OAAO,IAAI,CAAA;IACb,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
|
@@ -7,7 +7,7 @@ function default_1(server, ctx) {
|
|
7
7
|
if (!appViewAgent || !bskyAppView)
|
8
8
|
return;
|
9
9
|
server.app.bsky.feed.getFeed({
|
10
|
-
auth: ctx.authVerifier.
|
10
|
+
auth: ctx.authVerifier.accessStandard(),
|
11
11
|
handler: async ({ params, auth, req }) => {
|
12
12
|
const requester = auth.credentials.did;
|
13
13
|
const { data: feed } = await appViewAgent.api.app.bsky.feed.getFeedGenerator({ feed: params.feed }, await ctx.appviewAuthHeaders(requester));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW;QAAE,OAAM;IACzC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW;QAAE,OAAM;IACzC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAClB,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACnD,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EACrB,MAAM,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CACxC,CAAA;YACH,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACxD,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAjBD,4BAiBC"}
|
@@ -15,7 +15,7 @@ function default_1(server, ctx) {
|
|
15
15
|
if (!bskyAppView)
|
16
16
|
return;
|
17
17
|
server.app.bsky.feed.getPostThread({
|
18
|
-
auth: ctx.authVerifier.
|
18
|
+
auth: ctx.authVerifier.accessStandard(),
|
19
19
|
handler: async ({ req, auth, params }) => {
|
20
20
|
const requester = auth.credentials.did;
|
21
21
|
try {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPostThread.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,4CAAuC;AACvC,wCAAkD;AAGlD,uEAGqD;AAMrD,mEAQqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"getPostThread.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,4CAAuC;AACvC,wCAAkD;AAGlD,uEAGqD;AAMrD,mEAQqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,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
auth: ctx.authVerifier.accessStandard(),
|
12
12
|
handler: async ({ req, auth }) => {
|
13
13
|
const requester = auth.credentials.did;
|
14
14
|
const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getTimeline.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getTimeline.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"getTimeline.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getTimeline.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,gBAAgB,CACjB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAjBD,4BAiBC;AAED,MAAM,gBAAgB,GAAG,KAAK,EAC5B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACI,EAAE;IACzB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,0BAA0B,CACvD,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,EAClB,KAAK,CAAC,KAAK,CACZ,CAAA;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registerPush.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"registerPush.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAO5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA+BvD"}
|
@@ -4,12 +4,15 @@ const identity_1 = require("@atproto/identity");
|
|
4
4
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
5
5
|
const api_1 = require("@atproto/api");
|
6
6
|
const resolver_1 = require("../util/resolver");
|
7
|
+
const auth_verifier_1 = require("../../../../auth-verifier");
|
7
8
|
function default_1(server, ctx) {
|
8
9
|
const { appViewAgent } = ctx;
|
9
10
|
if (!appViewAgent)
|
10
11
|
return;
|
11
12
|
server.app.bsky.notification.registerPush({
|
12
|
-
auth: ctx.authVerifier.
|
13
|
+
auth: ctx.authVerifier.accessStandard({
|
14
|
+
additional: [auth_verifier_1.AuthScope.SignupQueued],
|
15
|
+
}),
|
13
16
|
handler: async ({ auth, input }) => {
|
14
17
|
const { serviceDid } = input.body;
|
15
18
|
const { credentials: { did }, } = auth;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registerPush.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":";;AAEA,gDAA4C;AAC5C,sDAA0D;AAC1D,sCAAuC;AACvC,+CAA4C;
|
1
|
+
{"version":3,"file":"registerPush.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":";;AAEA,gDAA4C;AAC5C,sDAA0D;AAC1D,sCAAuC;AACvC,+CAA4C;AAC5C,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,IAAI,CAAC,YAAY;QAAE,OAAM;IACzB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC;QACxC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,UAAU,EAAE,CAAC,yBAAS,CAAC,YAAY,CAAC;SACrC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACjC,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YACjC,MAAM,EACJ,WAAW,EAAE,EAAE,GAAG,EAAE,GACrB,GAAG,IAAI,CAAA;YAER,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;YAEjE,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,KAAK,UAAU,EAAE,CAAC;gBAC5C,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CA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