@atproto/pds 0.4.91 → 0.4.92
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 +25 -0
- package/bin/migration-create.ts +2 -2
- package/dist/account-manager/db/index.d.ts.map +1 -1
- package/dist/account-manager/db/index.js.map +1 -1
- package/dist/account-manager/db/schema/authorization-request.d.ts +1 -1
- package/dist/account-manager/db/schema/authorization-request.d.ts.map +1 -1
- package/dist/account-manager/db/schema/device.d.ts +1 -1
- package/dist/account-manager/db/schema/device.d.ts.map +1 -1
- package/dist/account-manager/db/schema/index.d.ts +7 -7
- package/dist/account-manager/db/schema/index.d.ts.map +1 -1
- package/dist/account-manager/db/schema/token.d.ts +1 -1
- package/dist/account-manager/db/schema/token.d.ts.map +1 -1
- package/dist/account-manager/db/schema/token.js.map +1 -1
- package/dist/account-manager/db/schema/used-refresh-token.d.ts +1 -1
- package/dist/account-manager/db/schema/used-refresh-token.d.ts.map +1 -1
- package/dist/account-manager/helpers/account.d.ts +8 -8
- package/dist/account-manager/helpers/account.d.ts.map +1 -1
- package/dist/account-manager/helpers/account.js +1 -1
- package/dist/account-manager/helpers/account.js.map +1 -1
- package/dist/account-manager/helpers/authorization-request.d.ts +1 -1
- package/dist/account-manager/helpers/authorization-request.d.ts.map +1 -1
- package/dist/account-manager/helpers/device-account.d.ts +37 -37
- package/dist/account-manager/helpers/device-account.d.ts.map +1 -1
- package/dist/account-manager/helpers/device-account.js.map +1 -1
- package/dist/account-manager/helpers/device.d.ts +2 -2
- package/dist/account-manager/helpers/device.d.ts.map +1 -1
- package/dist/account-manager/helpers/email-token.js +1 -1
- package/dist/account-manager/helpers/email-token.js.map +1 -1
- package/dist/account-manager/helpers/invite.d.ts.map +1 -1
- package/dist/account-manager/helpers/invite.js.map +1 -1
- package/dist/account-manager/helpers/password.d.ts +1 -1
- package/dist/account-manager/helpers/password.d.ts.map +1 -1
- package/dist/account-manager/helpers/password.js.map +1 -1
- package/dist/account-manager/helpers/scrypt.js +6 -6
- package/dist/account-manager/helpers/scrypt.js.map +1 -1
- package/dist/account-manager/helpers/token.d.ts +201 -201
- package/dist/account-manager/helpers/token.d.ts.map +1 -1
- package/dist/account-manager/index.d.ts +8 -3
- package/dist/account-manager/index.d.ts.map +1 -1
- package/dist/account-manager/index.js +34 -5
- package/dist/account-manager/index.js.map +1 -1
- package/dist/actor-store/actor-store-reader.d.ts +19 -0
- package/dist/actor-store/actor-store-reader.d.ts.map +1 -0
- package/dist/actor-store/actor-store-reader.js +69 -0
- package/dist/actor-store/actor-store-reader.js.map +1 -0
- package/dist/actor-store/actor-store-resources.d.ts +8 -0
- package/dist/actor-store/actor-store-resources.d.ts.map +1 -0
- package/dist/actor-store/actor-store-resources.js +3 -0
- package/dist/actor-store/actor-store-resources.js.map +1 -0
- package/dist/actor-store/actor-store-transactor.d.ts +17 -0
- package/dist/actor-store/actor-store-transactor.d.ts.map +1 -0
- package/dist/actor-store/actor-store-transactor.js +58 -0
- package/dist/actor-store/actor-store-transactor.js.map +1 -0
- package/dist/actor-store/actor-store-writer.d.ts +5 -0
- package/dist/actor-store/actor-store-writer.d.ts.map +1 -0
- package/dist/actor-store/actor-store-writer.js +14 -0
- package/dist/actor-store/actor-store-writer.js.map +1 -0
- package/dist/actor-store/actor-store.d.ts +33 -0
- package/dist/actor-store/actor-store.d.ts.map +1 -0
- package/dist/actor-store/{index.js → actor-store.js} +37 -82
- package/dist/actor-store/actor-store.js.map +1 -0
- package/dist/actor-store/blob/reader.d.ts +4 -2
- package/dist/actor-store/blob/reader.d.ts.map +1 -1
- package/dist/actor-store/blob/reader.js +14 -0
- package/dist/actor-store/blob/reader.js.map +1 -1
- package/dist/actor-store/blob/transactor.d.ts +6 -5
- package/dist/actor-store/blob/transactor.d.ts.map +1 -1
- package/dist/actor-store/blob/transactor.js +18 -5
- package/dist/actor-store/blob/transactor.js.map +1 -1
- package/dist/actor-store/db/index.d.ts +1 -1
- package/dist/actor-store/db/index.d.ts.map +1 -1
- package/dist/actor-store/db/index.js.map +1 -1
- package/dist/actor-store/db/schema/index.d.ts +3 -3
- package/dist/actor-store/db/schema/index.d.ts.map +1 -1
- package/dist/actor-store/migrate.d.ts +1 -1
- package/dist/actor-store/migrate.d.ts.map +1 -1
- package/dist/actor-store/migrate.js.map +1 -1
- package/dist/actor-store/preference/transactor.d.ts +1 -1
- package/dist/actor-store/preference/transactor.d.ts.map +1 -1
- package/dist/actor-store/preference/transactor.js.map +1 -1
- package/dist/actor-store/record/reader.d.ts +18 -6
- package/dist/actor-store/record/reader.d.ts.map +1 -1
- package/dist/actor-store/record/reader.js +104 -2
- package/dist/actor-store/record/reader.js.map +1 -1
- package/dist/actor-store/record/transactor.d.ts +3 -3
- package/dist/actor-store/record/transactor.d.ts.map +1 -1
- package/dist/actor-store/record/transactor.js.map +1 -1
- package/dist/actor-store/repo/reader.d.ts +1 -1
- package/dist/actor-store/repo/reader.d.ts.map +1 -1
- package/dist/actor-store/repo/reader.js +1 -1
- package/dist/actor-store/repo/reader.js.map +1 -1
- package/dist/actor-store/repo/sql-repo-reader.d.ts +2 -2
- package/dist/actor-store/repo/sql-repo-reader.d.ts.map +1 -1
- package/dist/actor-store/repo/sql-repo-reader.js +6 -5
- package/dist/actor-store/repo/sql-repo-reader.js.map +1 -1
- package/dist/actor-store/repo/sql-repo-transactor.d.ts +1 -1
- package/dist/actor-store/repo/sql-repo-transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/sql-repo-transactor.js +2 -2
- package/dist/actor-store/repo/sql-repo-transactor.js.map +1 -1
- package/dist/actor-store/repo/transactor.d.ts +7 -6
- package/dist/actor-store/repo/transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/transactor.js +22 -15
- package/dist/actor-store/repo/transactor.js.map +1 -1
- package/dist/api/app/bsky/actor/getPreferences.d.ts +1 -1
- package/dist/api/app/bsky/actor/getPreferences.d.ts.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.d.ts +1 -1
- package/dist/api/app/bsky/actor/getProfile.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getProfile.js +1 -2
- package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
- package/dist/api/app/bsky/actor/getProfiles.d.ts +1 -1
- package/dist/api/app/bsky/actor/getProfiles.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getProfiles.js +1 -2
- package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
- package/dist/api/app/bsky/actor/index.d.ts +1 -1
- package/dist/api/app/bsky/actor/index.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/index.js.map +1 -1
- package/dist/api/app/bsky/actor/putPreferences.d.ts +1 -1
- package/dist/api/app/bsky/actor/putPreferences.d.ts.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.d.ts +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.js +1 -2
- package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.js +1 -2
- package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.d.ts +1 -1
- package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.js +6 -7
- package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.d.ts +1 -1
- package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +4 -5
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/api/app/bsky/feed/getTimeline.d.ts +1 -1
- package/dist/api/app/bsky/feed/getTimeline.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getTimeline.js +1 -2
- package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
- package/dist/api/app/bsky/feed/index.d.ts +1 -1
- package/dist/api/app/bsky/feed/index.d.ts.map +1 -1
- package/dist/api/app/bsky/index.d.ts +1 -1
- package/dist/api/app/bsky/index.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/index.d.ts +1 -1
- package/dist/api/app/bsky/notification/index.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.d.ts +1 -1
- package/dist/api/app/bsky/notification/registerPush.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.js +6 -6
- package/dist/api/app/bsky/notification/registerPush.js.map +1 -1
- package/dist/api/app/bsky/util/resolver.d.ts +1 -1
- package/dist/api/app/bsky/util/resolver.d.ts.map +1 -1
- package/dist/api/app/bsky/util/resolver.js.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.d.ts +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/admin/disableAccountInvites.d.ts +1 -1
- package/dist/api/com/atproto/admin/disableAccountInvites.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/disableInviteCodes.d.ts +1 -1
- package/dist/api/com/atproto/admin/disableInviteCodes.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/enableAccountInvites.d.ts +1 -1
- package/dist/api/com/atproto/admin/enableAccountInvites.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfo.d.ts +1 -1
- package/dist/api/com/atproto/admin/getAccountInfo.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfo.js.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.d.ts +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getInviteCodes.d.ts +2 -2
- package/dist/api/com/atproto/admin/getInviteCodes.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getInviteCodes.js +1 -1
- package/dist/api/com/atproto/admin/getInviteCodes.js.map +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.d.ts +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/index.d.ts +1 -1
- package/dist/api/com/atproto/admin/index.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/index.js +8 -8
- package/dist/api/com/atproto/admin/index.js.map +1 -1
- package/dist/api/com/atproto/admin/sendEmail.d.ts +1 -1
- package/dist/api/com/atproto/admin/sendEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/sendEmail.js +1 -1
- package/dist/api/com/atproto/admin/sendEmail.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountEmail.d.ts +1 -1
- package/dist/api/com/atproto/admin/updateAccountEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.d.ts +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountPassword.d.ts +1 -1
- package/dist/api/com/atproto/admin/updateAccountPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.js +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.js.map +1 -1
- package/dist/api/com/atproto/admin/util.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/util.js.map +1 -1
- package/dist/api/com/atproto/identity/getRecommendedDidCredentials.d.ts +1 -1
- package/dist/api/com/atproto/identity/getRecommendedDidCredentials.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/index.d.ts +1 -1
- package/dist/api/com/atproto/identity/index.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/index.js +2 -2
- package/dist/api/com/atproto/identity/index.js.map +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.d.ts +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.d.ts.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/resolveHandle.d.ts +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js +11 -14
- package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.d.ts +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.d.ts.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 +1 -1
- package/dist/api/com/atproto/identity/submitPlcOperation.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/submitPlcOperation.js.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.d.ts +1 -1
- package/dist/api/com/atproto/identity/updateHandle.d.ts.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/index.d.ts +1 -1
- package/dist/api/com/atproto/index.d.ts.map +1 -1
- package/dist/api/com/atproto/moderation/createReport.d.ts +1 -1
- package/dist/api/com/atproto/moderation/createReport.d.ts.map +1 -1
- package/dist/api/com/atproto/moderation/createReport.js +2 -2
- package/dist/api/com/atproto/moderation/createReport.js.map +1 -1
- package/dist/api/com/atproto/moderation/index.d.ts +1 -1
- package/dist/api/com/atproto/moderation/index.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/applyWrites.d.ts +1 -1
- package/dist/api/com/atproto/repo/applyWrites.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/applyWrites.js +4 -5
- package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/api/com/atproto/repo/createRecord.d.ts +1 -1
- package/dist/api/com/atproto/repo/createRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/createRecord.js +3 -4
- package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.d.ts +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.js +3 -4
- package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/describeRepo.d.ts +1 -1
- package/dist/api/com/atproto/repo/describeRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/describeRepo.js +1 -1
- package/dist/api/com/atproto/repo/describeRepo.js.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.d.ts +1 -1
- package/dist/api/com/atproto/repo/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/importRepo.d.ts +2 -2
- package/dist/api/com/atproto/repo/importRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/importRepo.js +6 -22
- package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
- package/dist/api/com/atproto/repo/index.d.ts +1 -1
- package/dist/api/com/atproto/repo/index.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/index.js +2 -2
- package/dist/api/com/atproto/repo/index.js.map +1 -1
- package/dist/api/com/atproto/repo/listMissingBlobs.d.ts +1 -1
- package/dist/api/com/atproto/repo/listMissingBlobs.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/listRecords.d.ts +1 -1
- package/dist/api/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/listRecords.js +1 -1
- package/dist/api/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.d.ts +1 -1
- package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.js +5 -6
- package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.d.ts +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.d.ts +1 -1
- package/dist/api/com/atproto/server/activateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.js +1 -1
- package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/checkAccountStatus.d.ts +1 -1
- package/dist/api/com/atproto/server/checkAccountStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/server/confirmEmail.d.ts +1 -1
- package/dist/api/com/atproto/server/confirmEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/server/confirmEmail.js.map +1 -1
- package/dist/api/com/atproto/server/createAccount.d.ts +1 -1
- package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +5 -5
- package/dist/api/com/atproto/server/createAccount.js.map +1 -1
- package/dist/api/com/atproto/server/createAppPassword.d.ts +1 -1
- package/dist/api/com/atproto/server/createAppPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/createInviteCode.d.ts +1 -1
- package/dist/api/com/atproto/server/createInviteCode.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createInviteCodes.d.ts +1 -1
- package/dist/api/com/atproto/server/createInviteCodes.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createInviteCodes.js.map +1 -1
- package/dist/api/com/atproto/server/createSession.d.ts +1 -1
- package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.d.ts +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.d.ts +1 -1
- package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.js +1 -1
- package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/server/deleteSession.d.ts +1 -1
- package/dist/api/com/atproto/server/deleteSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/describeServer.d.ts +1 -1
- package/dist/api/com/atproto/server/describeServer.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.d.ts +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.d.ts.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.d.ts +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.js +2 -2
- package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
- package/dist/api/com/atproto/server/getSession.d.ts +1 -1
- package/dist/api/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getSession.js +2 -2
- package/dist/api/com/atproto/server/getSession.js.map +1 -1
- package/dist/api/com/atproto/server/index.d.ts +1 -1
- package/dist/api/com/atproto/server/index.d.ts.map +1 -1
- package/dist/api/com/atproto/server/index.js +17 -17
- package/dist/api/com/atproto/server/index.js.map +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.d.ts +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.d.ts.map +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.js.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.d.ts +1 -1
- package/dist/api/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.js +1 -1
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.d.ts +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.d.ts.map +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.d.ts +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.d.ts.map +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.d.ts +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.d.ts.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/requestPasswordReset.d.ts +1 -1
- package/dist/api/com/atproto/server/requestPasswordReset.d.ts.map +1 -1
- package/dist/api/com/atproto/server/reserveSigningKey.d.ts +1 -1
- package/dist/api/com/atproto/server/reserveSigningKey.d.ts.map +1 -1
- package/dist/api/com/atproto/server/resetPassword.d.ts +1 -1
- package/dist/api/com/atproto/server/resetPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/server/resetPassword.js.map +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.d.ts +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/updateEmail.d.ts +1 -1
- package/dist/api/com/atproto/server/updateEmail.d.ts.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 -1
- package/dist/api/com/atproto/server/util.d.ts.map +1 -1
- package/dist/api/com/atproto/server/util.js +2 -2
- package/dist/api/com/atproto/server/util.js.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.d.ts +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.d.ts +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getBlob.d.ts +1 -1
- package/dist/api/com/atproto/sync/getBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getBlob.js +2 -2
- package/dist/api/com/atproto/sync/getBlob.js.map +1 -1
- package/dist/api/com/atproto/sync/getBlocks.d.ts +1 -1
- package/dist/api/com/atproto/sync/getBlocks.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getBlocks.js +1 -1
- package/dist/api/com/atproto/sync/getBlocks.js.map +1 -1
- package/dist/api/com/atproto/sync/getLatestCommit.d.ts +1 -1
- package/dist/api/com/atproto/sync/getLatestCommit.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.d.ts +1 -1
- package/dist/api/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.js +1 -1
- package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepo.d.ts +2 -2
- package/dist/api/com/atproto/sync/getRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRepo.js +1 -1
- package/dist/api/com/atproto/sync/getRepo.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.d.ts +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
- package/dist/api/com/atproto/sync/index.d.ts +1 -1
- package/dist/api/com/atproto/sync/index.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/index.js +4 -4
- package/dist/api/com/atproto/sync/index.js.map +1 -1
- package/dist/api/com/atproto/sync/listBlobs.d.ts +1 -1
- package/dist/api/com/atproto/sync/listBlobs.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/listBlobs.js +1 -1
- package/dist/api/com/atproto/sync/listBlobs.js.map +1 -1
- package/dist/api/com/atproto/sync/listRepos.d.ts +2 -2
- package/dist/api/com/atproto/sync/listRepos.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/listRepos.js +1 -1
- package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.d.ts +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.js +2 -5
- package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/util.d.ts +1 -1
- package/dist/api/com/atproto/sync/util.d.ts.map +1 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.d.ts +1 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.d.ts.map +1 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.js +1 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.js.map +1 -1
- package/dist/api/com/atproto/temp/index.d.ts +1 -1
- package/dist/api/com/atproto/temp/index.d.ts.map +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/proxy.d.ts +1 -1
- package/dist/api/proxy.d.ts.map +1 -1
- package/dist/api/proxy.js.map +1 -1
- package/dist/auth-routes.d.ts +1 -1
- package/dist/auth-routes.d.ts.map +1 -1
- package/dist/auth-routes.js +1 -1
- package/dist/auth-routes.js.map +1 -1
- package/dist/auth-verifier.d.ts +1 -1
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +2 -2
- package/dist/auth-verifier.js.map +1 -1
- package/dist/basic-routes.d.ts +3 -3
- package/dist/basic-routes.d.ts.map +1 -1
- package/dist/basic-routes.js +2 -5
- package/dist/basic-routes.js.map +1 -1
- package/dist/bsky-app-view.d.ts +15 -0
- package/dist/bsky-app-view.d.ts.map +1 -0
- package/dist/bsky-app-view.js +43 -0
- package/dist/bsky-app-view.js.map +1 -0
- package/dist/config/config.js +1 -1
- package/dist/config/config.js.map +1 -1
- package/dist/context.d.ts +15 -15
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +30 -36
- package/dist/context.js.map +1 -1
- package/dist/crawlers.d.ts.map +1 -1
- package/dist/crawlers.js +1 -1
- package/dist/crawlers.js.map +1 -1
- package/dist/db/db.d.ts +2 -2
- package/dist/db/db.d.ts.map +1 -1
- package/dist/db/db.js +4 -4
- package/dist/db/db.js.map +1 -1
- package/dist/db/migrator.d.ts +1 -1
- package/dist/db/migrator.d.ts.map +1 -1
- package/dist/db/tables/moderation.d.ts +1 -1
- package/dist/db/tables/moderation.d.ts.map +1 -1
- package/dist/db/util.d.ts.map +1 -1
- package/dist/db/util.js +1 -1
- package/dist/db/util.js.map +1 -1
- package/dist/did-cache/db/index.d.ts.map +1 -1
- package/dist/did-cache/db/index.js.map +1 -1
- package/dist/disk-blobstore.d.ts +1 -2
- package/dist/disk-blobstore.d.ts.map +1 -1
- package/dist/disk-blobstore.js +17 -18
- package/dist/disk-blobstore.js.map +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +1 -1
- package/dist/error.js.map +1 -1
- package/dist/handle/index.d.ts +1 -1
- package/dist/handle/index.d.ts.map +1 -1
- package/dist/handle/index.js +1 -1
- package/dist/handle/index.js.map +1 -1
- package/dist/image/image-url-builder.d.ts +8 -0
- package/dist/image/image-url-builder.d.ts.map +1 -0
- package/dist/image/image-url-builder.js +26 -0
- package/dist/image/image-url-builder.js.map +1 -0
- package/dist/image/index.d.ts +1 -1
- package/dist/image/index.d.ts.map +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +56 -2
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +32 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +19 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +10 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/logger.js +2 -5
- package/dist/logger.js.map +1 -1
- package/dist/mailer/index.d.ts.map +1 -1
- package/dist/mailer/index.js.map +1 -1
- package/dist/mailer/moderation.d.ts.map +1 -1
- package/dist/mailer/moderation.js.map +1 -1
- package/dist/oauth/provider.d.ts +1 -5
- package/dist/oauth/provider.d.ts.map +1 -1
- package/dist/oauth/provider.js +2 -6
- package/dist/oauth/provider.js.map +1 -1
- package/dist/pipethrough.d.ts +2 -2
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +1 -1
- package/dist/pipethrough.js.map +1 -1
- package/dist/read-after-write/types.d.ts +3 -3
- package/dist/read-after-write/types.d.ts.map +1 -1
- package/dist/read-after-write/util.d.ts +2 -2
- package/dist/read-after-write/util.d.ts.map +1 -1
- package/dist/read-after-write/util.js +1 -2
- package/dist/read-after-write/util.js.map +1 -1
- package/dist/read-after-write/viewer.d.ts +16 -31
- package/dist/read-after-write/viewer.d.ts.map +1 -1
- package/dist/read-after-write/viewer.js +28 -110
- package/dist/read-after-write/viewer.js.map +1 -1
- package/dist/redis.js +2 -2
- package/dist/redis.js.map +1 -1
- package/dist/repo/prepare.d.ts +2 -2
- package/dist/repo/prepare.d.ts.map +1 -1
- package/dist/repo/prepare.js +6 -6
- package/dist/repo/prepare.js.map +1 -1
- package/dist/repo/types.d.ts +2 -2
- package/dist/repo/types.d.ts.map +1 -1
- package/dist/scripts/rebuild-repo.d.ts +1 -1
- package/dist/scripts/rebuild-repo.d.ts.map +1 -1
- package/dist/scripts/rebuild-repo.js +3 -46
- package/dist/scripts/rebuild-repo.js.map +1 -1
- package/dist/sequencer/db/index.d.ts.map +1 -1
- package/dist/sequencer/db/index.js.map +1 -1
- package/dist/sequencer/events.d.ts +7 -7
- package/dist/sequencer/events.d.ts.map +1 -1
- package/dist/sequencer/events.js.map +1 -1
- package/dist/sequencer/outbox.d.ts +1 -2
- package/dist/sequencer/outbox.d.ts.map +1 -1
- package/dist/sequencer/outbox.js +0 -1
- package/dist/sequencer/outbox.js.map +1 -1
- package/dist/sequencer/sequencer.d.ts +4 -4
- package/dist/sequencer/sequencer.d.ts.map +1 -1
- package/dist/sequencer/sequencer.js +9 -9
- package/dist/sequencer/sequencer.js.map +1 -1
- package/dist/util/compression.js.map +1 -1
- package/dist/util/params.d.ts.map +1 -1
- package/dist/util/params.js +1 -1
- package/dist/util/params.js.map +1 -1
- package/dist/well-known.d.ts +3 -3
- package/dist/well-known.d.ts.map +1 -1
- package/dist/well-known.js +2 -5
- package/dist/well-known.js.map +1 -1
- package/package.json +21 -18
- package/src/account-manager/db/index.ts +1 -1
- package/src/account-manager/db/schema/authorization-request.ts +1 -1
- package/src/account-manager/db/schema/device.ts +1 -1
- package/src/account-manager/db/schema/index.ts +7 -7
- package/src/account-manager/db/schema/token.ts +1 -2
- package/src/account-manager/db/schema/used-refresh-token.ts +1 -1
- package/src/account-manager/helpers/account.ts +2 -2
- package/src/account-manager/helpers/authorization-request.ts +2 -2
- package/src/account-manager/helpers/device-account.ts +1 -2
- package/src/account-manager/helpers/device.ts +3 -3
- package/src/account-manager/helpers/email-token.ts +1 -1
- package/src/account-manager/helpers/invite.ts +1 -1
- package/src/account-manager/helpers/password.ts +2 -2
- package/src/account-manager/helpers/scrypt.ts +2 -2
- package/src/account-manager/helpers/token.ts +1 -1
- package/src/account-manager/index.ts +38 -8
- package/src/actor-store/actor-store-reader.ts +45 -0
- package/src/actor-store/actor-store-resources.ts +8 -0
- package/src/actor-store/actor-store-transactor.ts +31 -0
- package/src/actor-store/actor-store-writer.ts +17 -0
- package/src/actor-store/{index.ts → actor-store.ts} +26 -117
- package/src/actor-store/blob/reader.ts +17 -2
- package/src/actor-store/blob/transactor.ts +25 -10
- package/src/actor-store/db/index.ts +1 -1
- package/src/actor-store/db/schema/index.ts +3 -3
- package/src/actor-store/migrate.ts +1 -1
- package/src/actor-store/preference/transactor.ts +2 -2
- package/src/actor-store/record/reader.ts +125 -4
- package/src/actor-store/record/transactor.ts +3 -3
- package/src/actor-store/repo/reader.ts +1 -1
- package/src/actor-store/repo/sql-repo-reader.ts +7 -6
- package/src/actor-store/repo/sql-repo-transactor.ts +2 -2
- package/src/actor-store/repo/transactor.ts +16 -9
- package/src/api/app/bsky/actor/getPreferences.ts +4 -3
- package/src/api/app/bsky/actor/getProfile.ts +4 -4
- package/src/api/app/bsky/actor/getProfiles.ts +4 -4
- package/src/api/app/bsky/actor/index.ts +1 -2
- package/src/api/app/bsky/actor/putPreferences.ts +4 -3
- package/src/api/app/bsky/feed/getActorLikes.ts +4 -4
- package/src/api/app/bsky/feed/getAuthorFeed.ts +5 -5
- package/src/api/app/bsky/feed/getFeed.ts +8 -8
- package/src/api/app/bsky/feed/getPostThread.ts +14 -14
- package/src/api/app/bsky/feed/getTimeline.ts +4 -4
- package/src/api/app/bsky/feed/index.ts +1 -1
- package/src/api/app/bsky/index.ts +1 -1
- package/src/api/app/bsky/notification/index.ts +1 -1
- package/src/api/app/bsky/notification/registerPush.ts +9 -8
- package/src/api/app/bsky/util/resolver.ts +1 -1
- package/src/api/com/atproto/admin/deleteAccount.ts +2 -2
- package/src/api/com/atproto/admin/disableAccountInvites.ts +1 -1
- package/src/api/com/atproto/admin/disableInviteCodes.ts +1 -1
- package/src/api/com/atproto/admin/enableAccountInvites.ts +1 -1
- package/src/api/com/atproto/admin/getAccountInfo.ts +2 -3
- package/src/api/com/atproto/admin/getAccountInfos.ts +1 -1
- package/src/api/com/atproto/admin/getInviteCodes.ts +4 -4
- package/src/api/com/atproto/admin/getSubjectStatus.ts +1 -1
- package/src/api/com/atproto/admin/index.ts +9 -9
- package/src/api/com/atproto/admin/sendEmail.ts +2 -2
- package/src/api/com/atproto/admin/updateAccountEmail.ts +1 -1
- package/src/api/com/atproto/admin/updateAccountHandle.ts +1 -1
- package/src/api/com/atproto/admin/updateAccountPassword.ts +1 -1
- package/src/api/com/atproto/admin/updateSubjectStatus.ts +3 -3
- package/src/api/com/atproto/admin/util.ts +1 -1
- package/src/api/com/atproto/identity/getRecommendedDidCredentials.ts +1 -1
- package/src/api/com/atproto/identity/index.ts +3 -3
- package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +2 -4
- package/src/api/com/atproto/identity/resolveHandle.ts +12 -16
- package/src/api/com/atproto/identity/signPlcOperation.ts +2 -4
- package/src/api/com/atproto/identity/submitPlcOperation.ts +2 -2
- package/src/api/com/atproto/identity/updateHandle.ts +3 -3
- package/src/api/com/atproto/index.ts +1 -1
- package/src/api/com/atproto/moderation/createReport.ts +4 -4
- package/src/api/com/atproto/moderation/index.ts +1 -1
- package/src/api/com/atproto/repo/applyWrites.ts +9 -7
- package/src/api/com/atproto/repo/createRecord.ts +4 -3
- package/src/api/com/atproto/repo/deleteRecord.ts +7 -4
- package/src/api/com/atproto/repo/describeRepo.ts +3 -3
- package/src/api/com/atproto/repo/getRecord.ts +2 -2
- package/src/api/com/atproto/repo/importRepo.ts +12 -27
- package/src/api/com/atproto/repo/index.ts +3 -3
- package/src/api/com/atproto/repo/listMissingBlobs.ts +1 -1
- package/src/api/com/atproto/repo/listRecords.ts +2 -2
- package/src/api/com/atproto/repo/putRecord.ts +8 -7
- package/src/api/com/atproto/repo/uploadBlob.ts +2 -2
- package/src/api/com/atproto/server/activateAccount.ts +2 -3
- package/src/api/com/atproto/server/checkAccountStatus.ts +1 -1
- package/src/api/com/atproto/server/confirmEmail.ts +1 -3
- package/src/api/com/atproto/server/createAccount.ts +6 -7
- package/src/api/com/atproto/server/createAppPassword.ts +1 -2
- package/src/api/com/atproto/server/createInviteCode.ts +1 -1
- package/src/api/com/atproto/server/createInviteCodes.ts +2 -2
- package/src/api/com/atproto/server/createSession.ts +1 -2
- package/src/api/com/atproto/server/deactivateAccount.ts +1 -1
- package/src/api/com/atproto/server/deleteAccount.ts +2 -2
- package/src/api/com/atproto/server/deleteSession.ts +1 -1
- package/src/api/com/atproto/server/describeServer.ts +1 -1
- package/src/api/com/atproto/server/getAccountInviteCodes.ts +2 -4
- package/src/api/com/atproto/server/getServiceAuth.ts +4 -4
- package/src/api/com/atproto/server/getSession.ts +3 -4
- package/src/api/com/atproto/server/index.ts +18 -27
- package/src/api/com/atproto/server/listAppPasswords.ts +1 -2
- package/src/api/com/atproto/server/refreshSession.ts +2 -3
- package/src/api/com/atproto/server/requestAccountDelete.ts +1 -3
- package/src/api/com/atproto/server/requestEmailConfirmation.ts +1 -3
- package/src/api/com/atproto/server/requestEmailUpdate.ts +2 -4
- package/src/api/com/atproto/server/requestPasswordReset.ts +1 -1
- package/src/api/com/atproto/server/reserveSigningKey.ts +1 -1
- package/src/api/com/atproto/server/resetPassword.ts +2 -2
- package/src/api/com/atproto/server/revokeAppPassword.ts +1 -2
- package/src/api/com/atproto/server/updateEmail.ts +2 -4
- package/src/api/com/atproto/server/util.ts +3 -3
- package/src/api/com/atproto/sync/deprecated/getCheckout.ts +1 -1
- package/src/api/com/atproto/sync/deprecated/getHead.ts +1 -1
- package/src/api/com/atproto/sync/getBlob.ts +4 -4
- package/src/api/com/atproto/sync/getBlocks.ts +2 -2
- package/src/api/com/atproto/sync/getLatestCommit.ts +1 -1
- package/src/api/com/atproto/sync/getRecord.ts +4 -4
- package/src/api/com/atproto/sync/getRepo.ts +4 -4
- package/src/api/com/atproto/sync/getRepoStatus.ts +2 -2
- package/src/api/com/atproto/sync/index.ts +5 -5
- package/src/api/com/atproto/sync/listBlobs.ts +2 -2
- package/src/api/com/atproto/sync/listRepos.ts +3 -3
- package/src/api/com/atproto/sync/subscribeRepos.ts +2 -2
- package/src/api/com/atproto/sync/util.ts +1 -1
- package/src/api/com/atproto/temp/checkSignupQueue.ts +2 -2
- package/src/api/com/atproto/temp/index.ts +1 -1
- package/src/api/index.ts +2 -2
- package/src/api/proxy.ts +1 -1
- package/src/auth-routes.ts +2 -3
- package/src/auth-verifier.ts +2 -3
- package/src/basic-routes.ts +4 -4
- package/src/bsky-app-view.ts +26 -0
- package/src/config/config.ts +1 -1
- package/src/config/env.ts +1 -1
- package/src/context.ts +49 -46
- package/src/crawlers.ts +1 -1
- package/src/db/db.ts +7 -7
- package/src/db/migrator.ts +1 -1
- package/src/db/tables/moderation.ts +2 -2
- package/src/db/util.ts +2 -2
- package/src/did-cache/db/index.ts +1 -1
- package/src/did-cache/index.ts +1 -1
- package/src/disk-blobstore.ts +6 -8
- package/src/error.ts +2 -2
- package/src/handle/index.ts +2 -2
- package/src/image/image-url-builder.ts +16 -0
- package/src/image/index.ts +2 -2
- package/src/index.ts +15 -13
- package/src/lexicon/lexicons.ts +37 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +36 -0
- package/src/lexicon/types/app/bsky/feed/postgate.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +1 -0
- package/src/logger.ts +1 -1
- package/src/mailer/index.ts +1 -2
- package/src/mailer/moderation.ts +1 -1
- package/src/mailer/templates/confirm-email.d.ts +1 -1
- package/src/mailer/templates/delete-account.d.ts +1 -1
- package/src/mailer/templates/plc-operation.d.ts +1 -1
- package/src/mailer/templates/reset-password.d.ts +1 -1
- package/src/mailer/templates/update-email.d.ts +1 -1
- package/src/oauth/provider.ts +1 -17
- package/src/pipethrough.ts +4 -6
- package/src/read-after-write/types.ts +3 -3
- package/src/read-after-write/util.ts +3 -5
- package/src/read-after-write/viewer.ts +50 -124
- package/src/redis.ts +1 -1
- package/src/repo/prepare.ts +18 -18
- package/src/repo/types.ts +2 -2
- package/src/scripts/rebuild-repo.ts +4 -61
- package/src/sequencer/db/index.ts +1 -1
- package/src/sequencer/events.ts +3 -3
- package/src/sequencer/outbox.ts +1 -3
- package/src/sequencer/sequencer.ts +12 -12
- package/src/util/compression.ts +1 -1
- package/src/util/params.ts +1 -1
- package/src/well-known.ts +4 -4
- package/tests/_util.ts +5 -5
- package/tests/account-deletion.test.ts +7 -7
- package/tests/account-migration.test.ts +3 -3
- package/tests/account.test.ts +2 -2
- package/tests/app-passwords.test.ts +1 -1
- package/tests/blob-deletes.test.ts +4 -6
- package/tests/create-post.test.ts +3 -3
- package/tests/crud.test.ts +12 -16
- package/tests/email-confirmation.test.ts +5 -5
- package/tests/entryway.test.ts +5 -5
- package/tests/file-uploads.test.ts +7 -7
- package/tests/handles.test.ts +3 -3
- package/tests/invites-admin.test.ts +1 -1
- package/tests/moderation.test.ts +2 -2
- package/tests/moderator-auth.test.ts +4 -4
- package/tests/oauth.test.ts +4 -4
- package/tests/plc-operations.test.ts +6 -6
- package/tests/preferences.test.ts +2 -2
- package/tests/proxied/admin.test.ts +2 -2
- package/tests/proxied/feedgen.test.ts +4 -4
- package/tests/proxied/notif.test.ts +5 -5
- package/tests/proxied/procedures.test.ts +1 -1
- package/tests/proxied/proxy-catchall.test.ts +6 -6
- package/tests/proxied/proxy-header.test.ts +5 -5
- package/tests/proxied/read-after-write.test.ts +6 -6
- package/tests/proxied/views.test.ts +3 -3
- package/tests/races.test.ts +2 -2
- package/tests/rate-limits.test.ts +1 -1
- package/tests/sequencer.test.ts +7 -7
- package/tests/server.test.ts +4 -4
- package/tests/sync/list.test.ts +1 -1
- package/tests/sync/subscribe-repos.test.ts +9 -9
- package/tests/sync/sync.test.ts +3 -3
- package/tests/takedown-appeal.test.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/actor-store/index.d.ts +0 -65
- package/dist/actor-store/index.d.ts.map +0 -1
- package/dist/actor-store/index.js.map +0 -1
- package/dist/oauth/detailed-account-store.d.ts +0 -27
- package/dist/oauth/detailed-account-store.d.ts.map +0 -1
- package/dist/oauth/detailed-account-store.js +0 -76
- package/dist/oauth/detailed-account-store.js.map +0 -1
- package/src/oauth/detailed-account-store.ts +0 -96
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AsyncBuffer } from '@atproto/common';
|
2
|
-
import {
|
2
|
+
import { SeqEvt, Sequencer } from '.';
|
3
3
|
export type OutboxOpts = {
|
4
4
|
maxBufferSize: number;
|
5
5
|
};
|
@@ -13,5 +13,4 @@ export declare class Outbox {
|
|
13
13
|
events(backfillCursor?: number, signal?: AbortSignal): AsyncGenerator<SeqEvt>;
|
14
14
|
getBackfill(backfillCursor: number): AsyncGenerator<SeqEvt, void, unknown>;
|
15
15
|
}
|
16
|
-
export default Outbox;
|
17
16
|
//# sourceMappingURL=outbox.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"outbox.d.ts","sourceRoot":"","sources":["../../src/sequencer/outbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"outbox.d.ts","sourceRoot":"","sources":["../../src/sequencer/outbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,iBAAiB,CAAA;AAEnE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,CAAA;AAErC,MAAM,MAAM,UAAU,GAAG;IACvB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,qBAAa,MAAM;IAQR,SAAS,EAAE,SAAS;IAP7B,OAAO,CAAC,QAAQ,CAAQ;IACxB,QAAQ,SAAK;IAEb,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;gBAGrB,SAAS,EAAE,SAAS,EAC3B,IAAI,GAAE,OAAO,CAAC,UAAU,CAAM;IAgBzB,MAAM,CACX,cAAc,CAAC,EAAE,MAAM,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,cAAc,CAAC,MAAM,CAAC;IAsElB,WAAW,CAAC,cAAc,EAAE,MAAM;CAgB1C"}
|
package/dist/sequencer/outbox.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"outbox.js","sourceRoot":"","sources":["../../src/sequencer/outbox.ts"],"names":[],"mappings":";;;AAAA,4CAAmE;
|
1
|
+
{"version":3,"file":"outbox.js","sourceRoot":"","sources":["../../src/sequencer/outbox.ts"],"names":[],"mappings":";;;AAAA,4CAAmE;AACnE,sDAA0D;AAO1D,MAAa,MAAM;IAOjB,YACS,SAAoB,EAC3B,OAA4B,EAAE;QAD9B;;;;mBAAO,SAAS;WAAW;QAPrB;;;;mBAAW,KAAK;WAAA;QACxB;;;;mBAAW,CAAC,CAAC;WAAA;QAEb;;;;;WAAuB;QACvB;;;;;WAA8B;QAM5B,MAAM,EAAE,aAAa,GAAG,GAAG,EAAE,GAAG,IAAI,CAAA;QACpC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAA;QACvB,IAAI,CAAC,SAAS,GAAG,IAAI,oBAAW,CAAS,aAAa,CAAC,CAAA;IACzD,CAAC;IAED,kCAAkC;IAClC,uGAAuG;IACvG,oEAAoE;IACpE,gFAAgF;IAChF,qFAAqF;IACrF,wGAAwG;IACxG,yGAAyG;IACzG,8FAA8F;IAC9F,yBAAyB;IACzB,KAAK,CAAC,CAAC,MAAM,CACX,cAAuB,EACvB,MAAoB;QAEpB,6BAA6B;QAC7B,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,IAAI,KAAK,EAAE,MAAM,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;gBACzD,IAAI,MAAM,EAAE,OAAO;oBAAE,OAAM;gBAC3B,IAAI,CAAC,QAAQ,GAAG,G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,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAA;YAC/C,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,GAAG,SAAS,GAAG,CAAC;gBAAE,MAAK;YACpD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,MAAK;QAC5B,CAAC;IACH,CAAC;CACF;AAlHD,wBAkHC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import TypedEmitter from 'typed-emitter';
|
2
2
|
import { CommitData } from '@atproto/repo';
|
3
|
-
import { SeqEvt } from './events';
|
4
|
-
import { SequencerDb, RepoSeqEntry, RepoSeqInsert } from './db';
|
5
|
-
import { PreparedWrite } from '../repo';
|
6
|
-
import { Crawlers } from '../crawlers';
|
7
3
|
import { AccountStatus } from '../account-manager/helpers/account';
|
4
|
+
import { Crawlers } from '../crawlers';
|
5
|
+
import { PreparedWrite } from '../repo';
|
6
|
+
import { RepoSeqEntry, RepoSeqInsert, SequencerDb } from './db';
|
7
|
+
import { SeqEvt } from './events';
|
8
8
|
export * from './events';
|
9
9
|
declare const Sequencer_base: new () => SequencerEmitter;
|
10
10
|
export declare class Sequencer extends Sequencer_base {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sequencer.d.ts","sourceRoot":"","sources":["../../src/sequencer/sequencer.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,eAAe,CAAA;
|
1
|
+
{"version":3,"file":"sequencer.d.ts","sourceRoot":"","sources":["../../src/sequencer/sequencer.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,eAAe,CAAA;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EACL,YAAY,EACZ,aA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AM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKlE,kBAAkB,CACtB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,CAAC;IAKZ,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAK/C,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,GAAE,MAAM,EAAO;CAUjE;AAED,KAAK,MAAM,GAAG,YAAY,CAAA;AAE1B,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAChC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;AAE5D,eAAe,SAAS,CAAA"}
|
@@ -18,13 +18,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
18
|
};
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
20
|
exports.Sequencer = void 0;
|
21
|
-
const
|
22
|
-
const logger_1 = require("../logger");
|
21
|
+
const node_events_1 = __importDefault(require("node:events"));
|
23
22
|
const common_1 = require("@atproto/common");
|
24
|
-
const
|
23
|
+
const logger_1 = require("../logger");
|
25
24
|
const db_1 = require("./db");
|
25
|
+
const events_1 = require("./events");
|
26
26
|
__exportStar(require("./events"), exports);
|
27
|
-
class Sequencer extends
|
27
|
+
class Sequencer extends node_events_1.default {
|
28
28
|
constructor(dbLocation, crawlers, lastSeen = 0, disableWalAutoCheckpoint = false) {
|
29
29
|
super();
|
30
30
|
Object.defineProperty(this, "crawlers", {
|
@@ -223,23 +223,23 @@ class Sequencer extends events_1.default {
|
|
223
223
|
return res[0].seq;
|
224
224
|
}
|
225
225
|
async sequenceCommit(did, commitData, writes) {
|
226
|
-
const evt = await (0,
|
226
|
+
const evt = await (0, events_1.formatSeqCommit)(did, commitData, writes);
|
227
227
|
return await this.sequenceEvt(evt);
|
228
228
|
}
|
229
229
|
async sequenceHandleUpdate(did, handle) {
|
230
|
-
const evt = await (0,
|
230
|
+
const evt = await (0, events_1.formatSeqHandleUpdate)(did, handle);
|
231
231
|
return await this.sequenceEvt(evt);
|
232
232
|
}
|
233
233
|
async sequenceIdentityEvt(did, handle) {
|
234
|
-
const evt = await (0,
|
234
|
+
const evt = await (0, events_1.formatSeqIdentityEvt)(did, handle);
|
235
235
|
return await this.sequenceEvt(evt);
|
236
236
|
}
|
237
237
|
async sequenceAccountEvt(did, status) {
|
238
|
-
const evt = await (0,
|
238
|
+
const evt = await (0, events_1.formatSeqAccountEvt)(did, status);
|
239
239
|
return await this.sequenceEvt(evt);
|
240
240
|
}
|
241
241
|
async sequenceTombstone(did) {
|
242
|
-
const evt = await (0,
|
242
|
+
const evt = await (0, events_1.formatSeqTombstone)(did);
|
243
243
|
return await this.sequenceEvt(evt);
|
244
244
|
}
|
245
245
|
async deleteAllForUser(did, excludingSeqs = []) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sequencer.js","sourceRoot":"","sources":["../../src/sequencer/sequencer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"sequencer.js","sourceRoot":"","sources":["../../src/sequencer/sequencer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAsC;AAEtC,4CAA0D;AAI1D,sCAA4C;AAE5C,6BAMa;AACb,qCAYiB;AAEjB,2CAAwB;AAExB,MAAa,SAAU,SAAS,qBAA2C;IAMzE,YACE,UAAkB,EACX,QAAkB,EAClB,WAAW,CAAC,EACnB,wBAAwB,GAAG,KAAK;QAEhC,KAAK,EAAE,CAAA;QAJP;;;;mBAAO,QAAQ;WAAU;QACzB;;;;mBAAO,QAAQ;WAAI;QARrB;;;;;WAAe;QACf;;;;mBAAY,KAAK;WAAA;QACjB;;;;mBAAoC,I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SAAS,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"compression.js","sourceRoot":"","sources":["../../src/util/compression.ts"],"names":[],"mappings":";;;;;AAGA,4BAIC;
|
1
|
+
{"version":3,"file":"compression.js","sourceRoot":"","sources":["../../src/util/compression.ts"],"names":[],"mappings":";;;;;AAGA,4BAIC;AAPD,8DAAqC;AAGrC;IACE,OAAO,IAAA,qBAAW,EAAC;QACjB,MAAM;KACP,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,MAAM,CAAC,IAAqB,EAAE,GAAqB;IAC1D,MAAM,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACjD,IAAI,WAAW,KAAK,0BAA0B,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,qBAAW,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;AACtC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../src/util/params.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../src/util/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAGtC,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,GAS3C,CAAA"}
|
package/dist/util/params.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.parseCidParam = void 0;
|
4
|
-
const xrpc_server_1 = require("@atproto/xrpc-server");
|
5
4
|
const cid_1 = require("multiformats/cid");
|
5
|
+
const xrpc_server_1 = require("@atproto/xrpc-server");
|
6
6
|
const parseCidParam = (cid) => {
|
7
7
|
try {
|
8
8
|
return cid_1.CID.parse(cid);
|
package/dist/util/params.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"params.js","sourceRoot":"","sources":["../../src/util/params.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"params.js","sourceRoot":"","sources":["../../src/util/params.ts"],"names":[],"mappings":";;;AAAA,0CAAsC;AACtC,sDAA0D;AAEnD,MAAM,aAAa,GAAG,CAAC,GAAW,EAAO,EAAE;IAChD,IAAI,CAAC;QACH,OAAO,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACvB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,GAAG,YAAY,WAAW,EAAE,CAAC;YAC/B,MAAM,IAAI,iCAAmB,CAAC,aAAa,CAAC,CAAA;QAC9C,CAAC;QACD,MAAM,GAAG,CAAA;IACX,CAAC;AACH,CAAC,CAAA;AATY,QAAA,aAAa,iBASzB"}
|
package/dist/well-known.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import AppContext from './context';
|
3
|
-
export declare const createRouter: (ctx: AppContext) =>
|
1
|
+
import { Router } from 'express';
|
2
|
+
import { AppContext } from './context';
|
3
|
+
export declare const createRouter: (ctx: AppContext) => Router;
|
4
4
|
//# sourceMappingURL=well-known.d.ts.map
|
package/dist/well-known.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"well-known.d.ts","sourceRoot":"","sources":["../src/well-known.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"well-known.d.ts","sourceRoot":"","sources":["../src/well-known.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,MAyB9C,CAAA"}
|
package/dist/well-known.js
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.createRouter = void 0;
|
7
|
-
const express_1 =
|
4
|
+
const express_1 = require("express");
|
8
5
|
const createRouter = (ctx) => {
|
9
|
-
const router = express_1.
|
6
|
+
const router = (0, express_1.Router)();
|
10
7
|
router.get('/.well-known/atproto-did', async function (req, res) {
|
11
8
|
const handle = req.hostname;
|
12
9
|
const supportedHandle = ctx.cfg.identity.serviceHandleDomains.some((host) => handle.endsWith(host) || handle === host.slice(1));
|
package/dist/well-known.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"well-known.js","sourceRoot":"","sources":["../src/well-known.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"well-known.js","sourceRoot":"","sources":["../src/well-known.ts"],"names":[],"mappings":";;;AAAA,qCAAgC;AAGzB,MAAM,YAAY,GAAG,CAAC,GAAe,EAAU,EAAE;IACtD,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAA;IAEvB,MAAM,CAAC,GAAG,CAAC,0BAA0B,EAAE,KAAK,WAAW,GAAG,EAAE,GAAG;QAC7D,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAA;QAC3B,MAAM,eAAe,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAChE,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,MAAM,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAC5D,CAAA;QACD,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;QAC/C,CAAC;QACD,IAAI,GAAuB,CAAA;QAC3B,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;YACxD,GAAG,GAAG,IAAI,EAAE,GAAG,CAAA;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;QACtD,CAAC;QACD,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;QAC/C,CAAC;QACD,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAClC,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAzBY,QAAA,YAAY,gBAyBxB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.92",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -16,6 +16,9 @@
|
|
16
16
|
"main": "dist/index.js",
|
17
17
|
"types": "dist/index.d.ts",
|
18
18
|
"bin": "dist/bin.js",
|
19
|
+
"engines": {
|
20
|
+
"node": ">=18.7.0"
|
21
|
+
},
|
19
22
|
"dependencies": {
|
20
23
|
"@did-plc/lib": "^0.0.4",
|
21
24
|
"@hapi/address": "^5.1.1",
|
@@ -45,19 +48,19 @@
|
|
45
48
|
"uint8arrays": "3.0.0",
|
46
49
|
"undici": "^6.19.8",
|
47
50
|
"zod": "^3.23.8",
|
48
|
-
"@atproto-labs/fetch-node": "0.1.
|
49
|
-
"@atproto-labs/xrpc-utils": "0.0.
|
50
|
-
"@atproto/api": "^0.13.
|
51
|
-
"@atproto/aws": "^0.2.
|
52
|
-
"@atproto/common": "^0.4.
|
53
|
-
"@atproto/crypto": "^0.4.
|
54
|
-
"@atproto/identity": "^0.4.
|
55
|
-
"@atproto/lexicon": "^0.4.
|
56
|
-
"@atproto/oauth-provider": "^0.2.
|
57
|
-
"@atproto/repo": "^0.6.
|
58
|
-
"@atproto/syntax": "^0.3.
|
59
|
-
"@atproto/xrpc": "^0.6.
|
60
|
-
"@atproto/xrpc-server": "^0.7.
|
51
|
+
"@atproto-labs/fetch-node": "0.1.7",
|
52
|
+
"@atproto-labs/xrpc-utils": "0.0.6",
|
53
|
+
"@atproto/api": "^0.13.33",
|
54
|
+
"@atproto/aws": "^0.2.14",
|
55
|
+
"@atproto/common": "^0.4.8",
|
56
|
+
"@atproto/crypto": "^0.4.4",
|
57
|
+
"@atproto/identity": "^0.4.6",
|
58
|
+
"@atproto/lexicon": "^0.4.6",
|
59
|
+
"@atproto/oauth-provider": "^0.2.17",
|
60
|
+
"@atproto/repo": "^0.6.4",
|
61
|
+
"@atproto/syntax": "^0.3.2",
|
62
|
+
"@atproto/xrpc": "^0.6.8",
|
63
|
+
"@atproto/xrpc-server": "^0.7.10"
|
61
64
|
},
|
62
65
|
"devDependencies": {
|
63
66
|
"@atproto/pds-entryway": "npm:@atproto/pds@0.3.0-entryway.3",
|
@@ -75,10 +78,10 @@
|
|
75
78
|
"ts-node": "^10.8.2",
|
76
79
|
"typescript": "^5.6.3",
|
77
80
|
"ws": "^8.12.0",
|
78
|
-
"@atproto/api": "^0.13.
|
79
|
-
"@atproto/bsky": "^0.0.
|
80
|
-
"@atproto/lex-cli": "^0.5.
|
81
|
-
"@atproto/oauth-client-browser-example": "0.0.
|
81
|
+
"@atproto/api": "^0.13.33",
|
82
|
+
"@atproto/bsky": "^0.0.114",
|
83
|
+
"@atproto/lex-cli": "^0.5.7",
|
84
|
+
"@atproto/oauth-client-browser-example": "0.0.1"
|
82
85
|
},
|
83
86
|
"scripts": {
|
84
87
|
"codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
@@ -1,10 +1,10 @@
|
|
1
|
+
import { Selectable } from 'kysely'
|
1
2
|
import {
|
2
3
|
Code,
|
3
4
|
DeviceId,
|
4
5
|
OAuthClientId,
|
5
6
|
RequestId,
|
6
7
|
} from '@atproto/oauth-provider'
|
7
|
-
import { Selectable } from 'kysely'
|
8
8
|
import { DateISO, JsonObject } from '../../../db'
|
9
9
|
|
10
10
|
export interface AuthorizationRequest {
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import * as actor from './actor'
|
2
1
|
import * as account from './account'
|
2
|
+
import * as actor from './actor'
|
3
|
+
import * as appPassword from './app-password'
|
4
|
+
import * as oauthRequest from './authorization-request'
|
3
5
|
import * as device from './device'
|
4
6
|
import * as deviceAccount from './device-account'
|
5
|
-
import * as
|
7
|
+
import * as emailToken from './email-token'
|
8
|
+
import * as inviteCode from './invite-code'
|
9
|
+
import * as refreshToken from './refresh-token'
|
10
|
+
import * as repoRoot from './repo-root'
|
6
11
|
import * as token from './token'
|
7
12
|
import * as usedRefreshToken from './used-refresh-token'
|
8
|
-
import * as repoRoot from './repo-root'
|
9
|
-
import * as refreshToken from './refresh-token'
|
10
|
-
import * as appPassword from './app-password'
|
11
|
-
import * as inviteCode from './invite-code'
|
12
|
-
import * as emailToken from './email-token'
|
13
13
|
|
14
14
|
export type DatabaseSchema = actor.PartialDB &
|
15
15
|
account.PartialDB &
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Generated, Selectable } from 'kysely'
|
1
2
|
import {
|
2
3
|
Code,
|
3
4
|
DeviceId,
|
@@ -6,8 +7,6 @@ import {
|
|
6
7
|
Sub,
|
7
8
|
TokenId,
|
8
9
|
} from '@atproto/oauth-provider'
|
9
|
-
import { Generated, Selectable } from 'kysely'
|
10
|
-
|
11
10
|
import { DateISO, JsonArray, JsonObject } from '../../../db/cast'
|
12
11
|
|
13
12
|
export interface Token {
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { DAY } from '@atproto/common'
|
1
2
|
import { isErrUniqueViolation, notSoftDeletedClause } from '../../db'
|
2
|
-
import { AccountDb, ActorEntry } from '../db'
|
3
3
|
import { StatusAttr } from '../../lexicon/types/com/atproto/admin/defs'
|
4
|
-
import {
|
4
|
+
import { AccountDb, ActorEntry } from '../db'
|
5
5
|
|
6
6
|
export class UserAlreadyExistsError extends Error {}
|
7
7
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Insertable, Selectable } from 'kysely'
|
1
2
|
import {
|
2
3
|
Code,
|
3
4
|
FoundRequestResult,
|
@@ -5,9 +6,8 @@ import {
|
|
5
6
|
RequestId,
|
6
7
|
UpdateRequestData,
|
7
8
|
} from '@atproto/oauth-provider'
|
8
|
-
import { AccountDb, AuthorizationRequest } from '../db'
|
9
9
|
import { fromDateISO, fromJsonObject, toDateISO, toJsonObject } from '../../db'
|
10
|
-
import {
|
10
|
+
import { AccountDb, AuthorizationRequest } from '../db'
|
11
11
|
|
12
12
|
export const rowToRequestData = (
|
13
13
|
row: Selectable<AuthorizationRequest>,
|
@@ -1,11 +1,10 @@
|
|
1
|
+
import { Insertable, Selectable } from 'kysely'
|
1
2
|
import {
|
2
3
|
Account,
|
3
4
|
DeviceAccountInfo,
|
4
5
|
DeviceId,
|
5
6
|
OAuthClientId,
|
6
7
|
} from '@atproto/oauth-provider'
|
7
|
-
import { Insertable, Selectable } from 'kysely'
|
8
|
-
|
9
8
|
import { fromDateISO, fromJsonArray, toDateISO, toJsonArray } from '../../db'
|
10
9
|
import { AccountDb } from '../db'
|
11
10
|
import { DeviceAccount } from '../db/schema/device-account'
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { DeviceId, DeviceData } from '@atproto/oauth-provider'
|
2
|
-
import { AccountDb, Device } from '../db'
|
3
|
-
import { fromDateISO, toDateISO } from '../../db'
|
4
1
|
import { Selectable } from 'kysely'
|
2
|
+
import { DeviceData, DeviceId } from '@atproto/oauth-provider'
|
3
|
+
import { fromDateISO, toDateISO } from '../../db'
|
4
|
+
import { AccountDb, Device } from '../db'
|
5
5
|
|
6
6
|
export const rowToDeviceData = (row: Selectable<Device>): DeviceData => ({
|
7
7
|
sessionId: row.sessionId,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { InvalidRequestError } from '@atproto/xrpc-server'
|
2
1
|
import { MINUTE, lessThanAgoMs } from '@atproto/common'
|
2
|
+
import { InvalidRequestError } from '@atproto/xrpc-server'
|
3
3
|
import { getRandomToken } from '../../api/com/atproto/server/util'
|
4
4
|
import { AccountDb, EmailTokenPurpose } from '../db'
|
5
5
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { chunkArray } from '@atproto/common'
|
2
2
|
import { InvalidRequestError } from '@atproto/xrpc-server'
|
3
|
-
import { AccountDb, InviteCode } from '../db'
|
4
3
|
import { countAll } from '../../db'
|
4
|
+
import { AccountDb, InviteCode } from '../db'
|
5
5
|
|
6
6
|
export const createInviteCodes = async (
|
7
7
|
db: AccountDb,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { randomStr } from '@atproto/crypto'
|
2
2
|
import { InvalidRequestError } from '@atproto/xrpc-server'
|
3
|
-
import * as scrypt from './scrypt'
|
4
|
-
import { AccountDb } from '../db'
|
5
3
|
import { AppPassword } from '../../lexicon/types/com/atproto/server/createAppPassword'
|
4
|
+
import { AccountDb } from '../db'
|
5
|
+
import * as scrypt from './scrypt'
|
6
6
|
|
7
7
|
export type AppPassDescript = {
|
8
8
|
name: string
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import crypto from 'crypto'
|
2
|
-
import { sha256 } from '@atproto/crypto'
|
1
|
+
import crypto from 'node:crypto'
|
3
2
|
import * as ui8 from 'uint8arrays'
|
3
|
+
import { sha256 } from '@atproto/crypto'
|
4
4
|
|
5
5
|
export const genSaltAndHash = (password: string): Promise<string> => {
|
6
6
|
const salt = crypto.randomBytes(16).toString('hex')
|
@@ -1,5 +1,9 @@
|
|
1
|
+
import { KeyObject } from 'node:crypto'
|
2
|
+
import { Selectable } from 'kysely'
|
3
|
+
import { CID } from 'multiformats/cid'
|
1
4
|
import { HOUR, wait } from '@atproto/common'
|
2
5
|
import {
|
6
|
+
Account,
|
3
7
|
AccountInfo,
|
4
8
|
AccountStore,
|
5
9
|
Code,
|
@@ -20,12 +24,11 @@ import {
|
|
20
24
|
UpdateRequestData,
|
21
25
|
} from '@atproto/oauth-provider'
|
22
26
|
import { AuthRequiredError } from '@atproto/xrpc-server'
|
23
|
-
import {
|
24
|
-
import { KeyObject } from 'node:crypto'
|
25
|
-
|
27
|
+
import { ActorStore } from '../actor-store/actor-store'
|
26
28
|
import { AuthScope } from '../auth-verifier'
|
27
29
|
import { BackgroundQueue } from '../background'
|
28
30
|
import { softDeleted } from '../db'
|
31
|
+
import { ImageUrlBuilder } from '../image/image-url-builder'
|
29
32
|
import { StatusAttr } from '../lexicon/types/com/atproto/admin/defs'
|
30
33
|
import { AccountDb, EmailTokenPurpose, getDb, getMigrator } from './db'
|
31
34
|
import * as account from './helpers/account'
|
@@ -50,6 +53,8 @@ export class AccountManager
|
|
50
53
|
db: AccountDb
|
51
54
|
|
52
55
|
constructor(
|
56
|
+
private actorStore: ActorStore,
|
57
|
+
private imageUrlBuilder: ImageUrlBuilder,
|
53
58
|
private backgroundQueue: BackgroundQueue,
|
54
59
|
dbLocation: string,
|
55
60
|
private jwtKey: KeyObject,
|
@@ -500,6 +505,29 @@ export class AccountManager
|
|
500
505
|
|
501
506
|
// AccountStore
|
502
507
|
|
508
|
+
private async buildAccount(row: Selectable<ActorAccount>): Promise<Account> {
|
509
|
+
const account = deviceAccount.toAccount(row, this.serviceDid)
|
510
|
+
|
511
|
+
if (!account.name || !account.picture) {
|
512
|
+
const did = account.sub
|
513
|
+
|
514
|
+
const profile = await this.actorStore.read(did, async (store) => {
|
515
|
+
return store.record.getProfileRecord()
|
516
|
+
})
|
517
|
+
|
518
|
+
if (profile) {
|
519
|
+
const { avatar, displayName } = profile
|
520
|
+
|
521
|
+
account.name ||= displayName
|
522
|
+
account.picture ||= avatar
|
523
|
+
? this.imageUrlBuilder.build('avatar', did, avatar.ref.toString())
|
524
|
+
: undefined
|
525
|
+
}
|
526
|
+
}
|
527
|
+
|
528
|
+
return account
|
529
|
+
}
|
530
|
+
|
503
531
|
async authenticateAccount(
|
504
532
|
{ username: identifier, password, remember = false }: SignInCredentials,
|
505
533
|
deviceId: DeviceId,
|
@@ -554,7 +582,7 @@ export class AccountManager
|
|
554
582
|
if (!row) return null
|
555
583
|
|
556
584
|
return {
|
557
|
-
account:
|
585
|
+
account: await this.buildAccount(row),
|
558
586
|
info: deviceAccount.toDeviceAccountInfo(row),
|
559
587
|
}
|
560
588
|
}
|
@@ -564,10 +592,12 @@ export class AccountManager
|
|
564
592
|
.listRememberedQB(this.db, deviceId)
|
565
593
|
.execute()
|
566
594
|
|
567
|
-
return
|
568
|
-
|
569
|
-
|
570
|
-
|
595
|
+
return Promise.all(
|
596
|
+
rows.map(async (row) => ({
|
597
|
+
account: await this.buildAccount(row),
|
598
|
+
info: deviceAccount.toDeviceAccountInfo(row),
|
599
|
+
})),
|
600
|
+
)
|
571
601
|
}
|
572
602
|
|
573
603
|
async removeDeviceAccount(deviceId: DeviceId, sub: string): Promise<void> {
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { Keypair } from '@atproto/crypto'
|
2
|
+
import { ActorStoreResources } from './actor-store-resources'
|
3
|
+
import { ActorStoreTransactor } from './actor-store-transactor'
|
4
|
+
import { ActorDb } from './db'
|
5
|
+
import { PreferenceReader } from './preference/reader'
|
6
|
+
import { RecordReader } from './record/reader'
|
7
|
+
import { RepoReader } from './repo/reader'
|
8
|
+
|
9
|
+
export class ActorStoreReader {
|
10
|
+
public readonly repo: RepoReader
|
11
|
+
public readonly record: RecordReader
|
12
|
+
public readonly pref: PreferenceReader
|
13
|
+
|
14
|
+
constructor(
|
15
|
+
public readonly did: string,
|
16
|
+
protected readonly db: ActorDb,
|
17
|
+
protected readonly resources: ActorStoreResources,
|
18
|
+
public readonly keypair: () => Promise<Keypair>,
|
19
|
+
) {
|
20
|
+
const blobstore = resources.blobstore(did)
|
21
|
+
|
22
|
+
this.repo = new RepoReader(db, blobstore)
|
23
|
+
this.record = new RecordReader(db)
|
24
|
+
this.pref = new PreferenceReader(db)
|
25
|
+
|
26
|
+
// Invoke "keypair" once. Also avoids leaking "this" as keypair context.
|
27
|
+
let keypairPromise: Promise<Keypair>
|
28
|
+
this.keypair = () => (keypairPromise ??= Promise.resolve().then(keypair))
|
29
|
+
}
|
30
|
+
|
31
|
+
async transact<T>(
|
32
|
+
fn: (fn: ActorStoreTransactor) => T | PromiseLike<T>,
|
33
|
+
): Promise<T> {
|
34
|
+
const keypair = await this.keypair()
|
35
|
+
return this.db.transaction((dbTxn) => {
|
36
|
+
const store = new ActorStoreTransactor(
|
37
|
+
this.did,
|
38
|
+
dbTxn,
|
39
|
+
keypair,
|
40
|
+
this.resources,
|
41
|
+
)
|
42
|
+
return fn(store)
|
43
|
+
})
|
44
|
+
}
|
45
|
+
}
|