@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
package/src/error.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { XRPCError } from '@atproto/xrpc-server'
|
2
1
|
import { ErrorRequestHandler } from 'express'
|
3
|
-
import { httpLogger as log } from './logger'
|
4
2
|
import { OAuthError } from '@atproto/oauth-provider'
|
3
|
+
import { XRPCError } from '@atproto/xrpc-server'
|
4
|
+
import { httpLogger as log } from './logger'
|
5
5
|
|
6
6
|
export const handler: ErrorRequestHandler = (err, _req, res, next) => {
|
7
7
|
log.error(err, 'unexpected internal server error')
|
package/src/handle/index.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as ident from '@atproto/syntax'
|
2
2
|
import { InvalidRequestError } from '@atproto/xrpc-server'
|
3
|
-
import {
|
3
|
+
import { AppContext } from '../context'
|
4
4
|
import { hasExplicitSlur } from './explicit-slurs'
|
5
|
-
import
|
5
|
+
import { reservedSubdomains } from './reserved'
|
6
6
|
|
7
7
|
export const normalizeAndValidateHandle = async (opts: {
|
8
8
|
ctx: AppContext
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { BskyAppView } from '../bsky-app-view'
|
2
|
+
import { ids } from '../lexicon/lexicons'
|
3
|
+
|
4
|
+
export class ImageUrlBuilder {
|
5
|
+
constructor(
|
6
|
+
readonly pdsHostname: string,
|
7
|
+
readonly bskyAppView?: BskyAppView,
|
8
|
+
) {}
|
9
|
+
|
10
|
+
build(pattern: string, did: string, cid: string): string {
|
11
|
+
return (
|
12
|
+
this.bskyAppView?.getImageUrl(pattern, did, cid) ??
|
13
|
+
`https://${this.pdsHostname}/xrpc/${ids.ComAtprotoSyncGetBlob}?did=${did}&cid=${cid}`
|
14
|
+
)
|
15
|
+
}
|
16
|
+
}
|
package/src/image/index.ts
CHANGED
package/src/index.ts
CHANGED
@@ -4,27 +4,29 @@
|
|
4
4
|
// leave at top of file before importing Routes
|
5
5
|
import 'express-async-errors'
|
6
6
|
|
7
|
-
import
|
7
|
+
import events from 'node:events'
|
8
|
+
import http from 'node:http'
|
9
|
+
import { PlcClientError } from '@did-plc/lib'
|
8
10
|
import cors from 'cors'
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import { Options as XrpcServerOptions } from '@atproto/xrpc-server'
|
11
|
+
import express from 'express'
|
12
|
+
import { HttpTerminator, createHttpTerminator } from 'http-terminator'
|
12
13
|
import { DAY, HOUR, MINUTE, SECOND } from '@atproto/common'
|
13
|
-
import {
|
14
|
-
|
15
|
-
|
14
|
+
import {
|
15
|
+
Options as XrpcServerOptions,
|
16
|
+
ResponseType,
|
17
|
+
XRPCError,
|
18
|
+
} from '@atproto/xrpc-server'
|
16
19
|
import API from './api'
|
17
20
|
import * as authRoutes from './auth-routes'
|
18
21
|
import * as basicRoutes from './basic-routes'
|
19
|
-
import * as wellKnown from './well-known'
|
20
|
-
import * as error from './error'
|
21
|
-
import { loggerMiddleware } from './logger'
|
22
22
|
import { ServerConfig, ServerSecrets } from './config'
|
23
|
+
import { AppContext, AppContextOptions } from './context'
|
24
|
+
import * as error from './error'
|
23
25
|
import { createServer } from './lexicon'
|
24
|
-
import {
|
25
|
-
import AppContext, { AppContextOptions } from './context'
|
26
|
-
import compression from './util/compression'
|
26
|
+
import { loggerMiddleware } from './logger'
|
27
27
|
import { proxyHandler } from './pipethrough'
|
28
|
+
import compression from './util/compression'
|
29
|
+
import * as wellKnown from './well-known'
|
28
30
|
|
29
31
|
export * from './config'
|
30
32
|
export { Database } from './db'
|
package/src/lexicon/lexicons.ts
CHANGED
@@ -4381,6 +4381,7 @@ export const schemaDict = {
|
|
4381
4381
|
'lex:app.bsky.actor.defs#hiddenPostsPref',
|
4382
4382
|
'lex:app.bsky.actor.defs#bskyAppStatePref',
|
4383
4383
|
'lex:app.bsky.actor.defs#labelersPref',
|
4384
|
+
'lex:app.bsky.actor.defs#postInteractionSettingsPref',
|
4384
4385
|
],
|
4385
4386
|
},
|
4386
4387
|
},
|
@@ -4714,6 +4715,38 @@ export const schemaDict = {
|
|
4714
4715
|
},
|
4715
4716
|
},
|
4716
4717
|
},
|
4718
|
+
postInteractionSettingsPref: {
|
4719
|
+
type: 'object',
|
4720
|
+
description:
|
4721
|
+
'Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.',
|
4722
|
+
required: [],
|
4723
|
+
properties: {
|
4724
|
+
threadgateAllowRules: {
|
4725
|
+
description:
|
4726
|
+
'Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.',
|
4727
|
+
type: 'array',
|
4728
|
+
maxLength: 5,
|
4729
|
+
items: {
|
4730
|
+
type: 'union',
|
4731
|
+
refs: [
|
4732
|
+
'lex:app.bsky.feed.threadgate#mentionRule',
|
4733
|
+
'lex:app.bsky.feed.threadgate#followingRule',
|
4734
|
+
'lex:app.bsky.feed.threadgate#listRule',
|
4735
|
+
],
|
4736
|
+
},
|
4737
|
+
},
|
4738
|
+
postgateEmbeddingRules: {
|
4739
|
+
description:
|
4740
|
+
'Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.',
|
4741
|
+
type: 'array',
|
4742
|
+
maxLength: 5,
|
4743
|
+
items: {
|
4744
|
+
type: 'union',
|
4745
|
+
refs: ['lex:app.bsky.feed.postgate#disableRule'],
|
4746
|
+
},
|
4747
|
+
},
|
4748
|
+
},
|
4749
|
+
},
|
4717
4750
|
},
|
4718
4751
|
},
|
4719
4752
|
AppBskyActorGetPreferences: {
|
@@ -7120,6 +7153,8 @@ export const schemaDict = {
|
|
7120
7153
|
'List of AT-URIs embedding this post that the author has detached from.',
|
7121
7154
|
},
|
7122
7155
|
embeddingRules: {
|
7156
|
+
description:
|
7157
|
+
'List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.',
|
7123
7158
|
type: 'array',
|
7124
7159
|
maxLength: 5,
|
7125
7160
|
items: {
|
@@ -7333,6 +7368,8 @@ export const schemaDict = {
|
|
7333
7368
|
description: 'Reference (AT-URI) to the post record.',
|
7334
7369
|
},
|
7335
7370
|
allow: {
|
7371
|
+
description:
|
7372
|
+
'List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.',
|
7336
7373
|
type: 'array',
|
7337
7374
|
maxLength: 5,
|
7338
7375
|
items: {
|
@@ -8,6 +8,8 @@ import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
9
9
|
import * as AppBskyGraphDefs from '../graph/defs'
|
10
10
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
11
|
+
import * as AppBskyFeedThreadgate from '../feed/threadgate'
|
12
|
+
import * as AppBskyFeedPostgate from '../feed/postgate'
|
11
13
|
|
12
14
|
export interface ProfileViewBasic {
|
13
15
|
did: string
|
@@ -188,6 +190,7 @@ export type Preferences = (
|
|
188
190
|
| HiddenPostsPref
|
189
191
|
| BskyAppStatePref
|
190
192
|
| LabelersPref
|
193
|
+
| PostInteractionSettingsPref
|
191
194
|
| { $type: string; [k: string]: unknown }
|
192
195
|
)[]
|
193
196
|
|
@@ -532,3 +535,36 @@ export function isNux(v: unknown): v is Nux {
|
|
532
535
|
export function validateNux(v: unknown): ValidationResult {
|
533
536
|
return lexicons.validate('app.bsky.actor.defs#nux', v)
|
534
537
|
}
|
538
|
+
|
539
|
+
/** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
|
540
|
+
export interface PostInteractionSettingsPref {
|
541
|
+
/** Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */
|
542
|
+
threadgateAllowRules?: (
|
543
|
+
| AppBskyFeedThreadgate.MentionRule
|
544
|
+
| AppBskyFeedThreadgate.FollowingRule
|
545
|
+
| AppBskyFeedThreadgate.ListRule
|
546
|
+
| { $type: string; [k: string]: unknown }
|
547
|
+
)[]
|
548
|
+
/** Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */
|
549
|
+
postgateEmbeddingRules?: (
|
550
|
+
| AppBskyFeedPostgate.DisableRule
|
551
|
+
| { $type: string; [k: string]: unknown }
|
552
|
+
)[]
|
553
|
+
[k: string]: unknown
|
554
|
+
}
|
555
|
+
|
556
|
+
export function isPostInteractionSettingsPref(
|
557
|
+
v: unknown,
|
558
|
+
): v is PostInteractionSettingsPref {
|
559
|
+
return (
|
560
|
+
isObj(v) &&
|
561
|
+
hasProp(v, '$type') &&
|
562
|
+
v.$type === 'app.bsky.actor.defs#postInteractionSettingsPref'
|
563
|
+
)
|
564
|
+
}
|
565
|
+
|
566
|
+
export function validatePostInteractionSettingsPref(
|
567
|
+
v: unknown,
|
568
|
+
): ValidationResult {
|
569
|
+
return lexicons.validate('app.bsky.actor.defs#postInteractionSettingsPref', v)
|
570
|
+
}
|
@@ -12,6 +12,7 @@ export interface Record {
|
|
12
12
|
post: string
|
13
13
|
/** List of AT-URIs embedding this post that the author has detached from. */
|
14
14
|
detachedEmbeddingUris?: string[]
|
15
|
+
/** List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */
|
15
16
|
embeddingRules?: (DisableRule | { $type: string; [k: string]: unknown })[]
|
16
17
|
[k: string]: unknown
|
17
18
|
}
|
@@ -9,6 +9,7 @@ import { CID } from 'multiformats/cid'
|
|
9
9
|
export interface Record {
|
10
10
|
/** Reference (AT-URI) to the post record. */
|
11
11
|
post: string
|
12
|
+
/** List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */
|
12
13
|
allow?: (
|
13
14
|
| MentionRule
|
14
15
|
| FollowingRule
|
package/src/logger.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type IncomingMessage } from 'node:http'
|
2
2
|
import { stdSerializers } from 'pino'
|
3
|
-
import pinoHttp from 'pino-http'
|
3
|
+
import { pinoHttp } from 'pino-http'
|
4
4
|
import { obfuscateHeaders, subsystemLogger } from '@atproto/common'
|
5
5
|
|
6
6
|
export const dbLogger = subsystemLogger('pds:db')
|
package/src/mailer/index.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import { Transporter } from 'nodemailer'
|
2
|
-
import { htmlToText } from 'nodemailer-html-to-text'
|
3
2
|
import Mail from 'nodemailer/lib/mailer'
|
4
3
|
import SMTPTransport from 'nodemailer/lib/smtp-transport'
|
4
|
+
import { htmlToText } from 'nodemailer-html-to-text'
|
5
5
|
import { ServerConfig } from '../config'
|
6
6
|
import { mailerLogger } from '../logger'
|
7
|
-
|
8
7
|
import * as templates from './templates'
|
9
8
|
|
10
9
|
export class ServerMailer {
|
package/src/mailer/moderation.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Transporter } from 'nodemailer'
|
2
2
|
import Mail from 'nodemailer/lib/mailer'
|
3
|
-
import { htmlToText } from 'nodemailer-html-to-text'
|
4
3
|
import SMTPTransport from 'nodemailer/lib/smtp-transport'
|
4
|
+
import { htmlToText } from 'nodemailer-html-to-text'
|
5
5
|
import { ServerConfig } from '../config'
|
6
6
|
import { mailerLogger } from '../logger'
|
7
7
|
|
package/src/oauth/provider.ts
CHANGED
@@ -3,17 +3,11 @@ import {
|
|
3
3
|
OAuthProvider,
|
4
4
|
OAuthProviderOptions,
|
5
5
|
} from '@atproto/oauth-provider'
|
6
|
-
|
7
6
|
import { AccountManager } from '../account-manager/index'
|
8
|
-
import { ActorStore } from '../actor-store/index'
|
9
7
|
import { oauthLogger } from '../logger'
|
10
|
-
import { LocalViewerCreator } from '../read-after-write/index'
|
11
|
-
import { DetailedAccountStore } from './detailed-account-store'
|
12
8
|
|
13
9
|
export type AuthProviderOptions = {
|
14
10
|
accountManager: AccountManager
|
15
|
-
actorStore: ActorStore
|
16
|
-
localViewer: LocalViewerCreator
|
17
11
|
} & Pick<
|
18
12
|
OAuthProviderOptions,
|
19
13
|
'issuer' | 'redis' | 'keyset' | 'dpopSecret' | 'customization'
|
@@ -23,8 +17,6 @@ export type AuthProviderOptions = {
|
|
23
17
|
export class PdsOAuthProvider extends OAuthProvider {
|
24
18
|
constructor({
|
25
19
|
accountManager,
|
26
|
-
actorStore,
|
27
|
-
localViewer,
|
28
20
|
keyset,
|
29
21
|
redis,
|
30
22
|
dpopSecret,
|
@@ -39,6 +31,7 @@ export class PdsOAuthProvider extends OAuthProvider {
|
|
39
31
|
redis,
|
40
32
|
safeFetch,
|
41
33
|
customization,
|
34
|
+
store: accountManager,
|
42
35
|
metadata: {
|
43
36
|
// PdsOAuthProvider is used when the PDS is both an authorization server
|
44
37
|
// & resource server, in which case the issuer origin is also the
|
@@ -48,15 +41,6 @@ export class PdsOAuthProvider extends OAuthProvider {
|
|
48
41
|
scopes_supported: ['transition:generic', 'transition:chat.bsky'],
|
49
42
|
},
|
50
43
|
|
51
|
-
accountStore: new DetailedAccountStore(
|
52
|
-
accountManager,
|
53
|
-
actorStore,
|
54
|
-
localViewer,
|
55
|
-
),
|
56
|
-
requestStore: accountManager,
|
57
|
-
deviceStore: accountManager,
|
58
|
-
tokenStore: accountManager,
|
59
|
-
|
60
44
|
// If the PDS is both an authorization server & resource server (no
|
61
45
|
// entryway), there is no need to use JWTs as access tokens. Instead,
|
62
46
|
// the PDS can use tokenId as access tokens. This allows the PDS to
|
package/src/pipethrough.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
import express from 'express'
|
2
1
|
import { IncomingHttpHeaders, ServerResponse } from 'node:http'
|
3
2
|
import { PassThrough, Readable } from 'node:stream'
|
3
|
+
import express from 'express'
|
4
4
|
import { Dispatcher } from 'undici'
|
5
|
-
|
6
|
-
import { buildProxiedContentEncoding } from '@atproto-labs/xrpc-utils'
|
7
5
|
import {
|
8
6
|
decodeStream,
|
9
7
|
getServiceEndpoint,
|
@@ -17,11 +15,11 @@ import {
|
|
17
15
|
HandlerPipeThroughStream,
|
18
16
|
InternalServerError,
|
19
17
|
InvalidRequestError,
|
20
|
-
parseReqNsid,
|
21
18
|
XRPCError as XRPCServerError,
|
19
|
+
parseReqNsid,
|
22
20
|
} from '@atproto/xrpc-server'
|
23
|
-
|
24
|
-
import AppContext from './context'
|
21
|
+
import { buildProxiedContentEncoding } from '@atproto-labs/xrpc-utils'
|
22
|
+
import { AppContext } from './context'
|
25
23
|
import { ids } from './lexicon/lexicons'
|
26
24
|
import { httpLogger } from './logger'
|
27
25
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { Headers } from '@atproto/xrpc'
|
2
|
-
import { AtUri } from '@atproto/syntax'
|
3
1
|
import { CID } from 'multiformats/cid'
|
4
|
-
import {
|
2
|
+
import { AtUri } from '@atproto/syntax'
|
3
|
+
import { Headers } from '@atproto/xrpc'
|
5
4
|
import { Record as ProfileRecord } from '../lexicon/types/app/bsky/actor/profile'
|
5
|
+
import { Record as PostRecord } from '../lexicon/types/app/bsky/feed/post'
|
6
6
|
import { LocalViewer } from './viewer'
|
7
7
|
|
8
8
|
export type LocalRecords = {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import express from 'express'
|
1
2
|
import { jsonToLex } from '@atproto/lexicon'
|
2
3
|
import { HeadersMap } from '@atproto/xrpc'
|
3
4
|
import {
|
@@ -5,9 +6,7 @@ import {
|
|
5
6
|
HandlerPipeThroughBuffer,
|
6
7
|
parseReqNsid,
|
7
8
|
} from '@atproto/xrpc-server'
|
8
|
-
import
|
9
|
-
|
10
|
-
import AppContext from '../context'
|
9
|
+
import { AppContext } from '../context'
|
11
10
|
import { lexicons } from '../lexicon/lexicons'
|
12
11
|
import { readStickyLogger as log } from '../logger'
|
13
12
|
import {
|
@@ -16,7 +15,6 @@ import {
|
|
16
15
|
pipethrough,
|
17
16
|
} from '../pipethrough'
|
18
17
|
import { HandlerResponse, LocalRecords, MungeFn } from './types'
|
19
|
-
import { getRecordsSinceRev } from './viewer'
|
20
18
|
|
21
19
|
const REPO_REV_HEADER = 'atproto-repo-rev'
|
22
20
|
|
@@ -62,7 +60,7 @@ export const pipethroughReadAfterWrite = async <T>(
|
|
62
60
|
const lxm = parseReqNsid(req)
|
63
61
|
|
64
62
|
return await ctx.actorStore.read(requester, async (store) => {
|
65
|
-
const local = await getRecordsSinceRev(
|
63
|
+
const local = await store.record.getRecordsSinceRev(rev)
|
66
64
|
if (local.count === 0) return streamRes
|
67
65
|
|
68
66
|
const { buffer } = (bufferRes = await asPipeThroughBuffer(streamRes))
|