@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,119 +1,77 @@
|
|
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
|
-
exports.
|
7
|
-
const util_1 = __importDefault(require("util"));
|
8
|
-
const cid_1 = require("multiformats/cid");
|
3
|
+
exports.LocalViewer = void 0;
|
9
4
|
const syntax_1 = require("@atproto/syntax");
|
10
|
-
const repo_1 = require("@atproto/repo");
|
11
5
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
12
6
|
const lexicons_1 = require("../lexicon/lexicons");
|
13
|
-
const images_1 = require("../lexicon/types/app/bsky/embed/images");
|
14
7
|
const external_1 = require("../lexicon/types/app/bsky/embed/external");
|
8
|
+
const images_1 = require("../lexicon/types/app/bsky/embed/images");
|
15
9
|
const record_1 = require("../lexicon/types/app/bsky/embed/record");
|
16
10
|
const recordWithMedia_1 = require("../lexicon/types/app/bsky/embed/recordWithMedia");
|
17
11
|
class LocalViewer {
|
18
|
-
constructor(
|
19
|
-
Object.defineProperty(this, "
|
20
|
-
enumerable: true,
|
21
|
-
configurable: true,
|
22
|
-
writable: true,
|
23
|
-
value: void 0
|
24
|
-
});
|
25
|
-
Object.defineProperty(this, "actorStore", {
|
12
|
+
constructor(actorStoreReader, accountManager, imageUrlBuilder, bskyAppView) {
|
13
|
+
Object.defineProperty(this, "actorStoreReader", {
|
26
14
|
enumerable: true,
|
27
15
|
configurable: true,
|
28
16
|
writable: true,
|
29
|
-
value:
|
17
|
+
value: actorStoreReader
|
30
18
|
});
|
31
19
|
Object.defineProperty(this, "accountManager", {
|
32
20
|
enumerable: true,
|
33
21
|
configurable: true,
|
34
22
|
writable: true,
|
35
|
-
value:
|
23
|
+
value: accountManager
|
36
24
|
});
|
37
|
-
Object.defineProperty(this, "
|
25
|
+
Object.defineProperty(this, "imageUrlBuilder", {
|
38
26
|
enumerable: true,
|
39
27
|
configurable: true,
|
40
28
|
writable: true,
|
41
|
-
value:
|
29
|
+
value: imageUrlBuilder
|
42
30
|
});
|
43
|
-
Object.defineProperty(this, "
|
31
|
+
Object.defineProperty(this, "bskyAppView", {
|
44
32
|
enumerable: true,
|
45
33
|
configurable: true,
|
46
34
|
writable: true,
|
47
|
-
value:
|
35
|
+
value: bskyAppView
|
48
36
|
});
|
49
|
-
Object.defineProperty(this, "appviewDid", {
|
50
|
-
enumerable: true,
|
51
|
-
configurable: true,
|
52
|
-
writable: true,
|
53
|
-
value: void 0
|
54
|
-
});
|
55
|
-
Object.defineProperty(this, "appviewCdnUrlPattern", {
|
56
|
-
enumerable: true,
|
57
|
-
configurable: true,
|
58
|
-
writable: true,
|
59
|
-
value: void 0
|
60
|
-
});
|
61
|
-
this.did = params.actorStore.did;
|
62
|
-
this.actorStore = params.actorStore;
|
63
|
-
this.accountManager = params.accountManager;
|
64
|
-
this.pdsHostname = params.pdsHostname;
|
65
|
-
this.appViewAgent = params.appViewAgent;
|
66
|
-
this.appviewDid = params.appviewDid;
|
67
|
-
this.appviewCdnUrlPattern = params.appviewCdnUrlPattern;
|
68
37
|
}
|
69
|
-
|
70
|
-
return
|
71
|
-
|
72
|
-
|
38
|
+
get did() {
|
39
|
+
return this.actorStoreReader.did;
|
40
|
+
}
|
41
|
+
static creator(accountManager, imageUrlBuilder, bskyAppView) {
|
42
|
+
return (actorStore) => new LocalViewer(actorStore, accountManager, imageUrlBuilder, bskyAppView);
|
73
43
|
}
|
74
44
|
getImageUrl(pattern, cid) {
|
75
|
-
|
76
|
-
return `https://${this.pdsHostname}/xrpc/${lexicons_1.ids.ComAtprotoSyncGetBlob}?did=${this.did}&cid=${cid}`;
|
77
|
-
}
|
78
|
-
return util_1.default.format(this.appviewCdnUrlPattern, pattern, this.did, cid);
|
45
|
+
return this.imageUrlBuilder.build(pattern, this.did, cid);
|
79
46
|
}
|
80
47
|
async serviceAuthHeaders(did, lxm) {
|
81
|
-
if (!this.
|
48
|
+
if (!this.bskyAppView) {
|
82
49
|
throw new Error('Could not find bsky appview did');
|
83
50
|
}
|
84
|
-
const keypair = await this.
|
51
|
+
const keypair = await this.actorStoreReader.keypair();
|
85
52
|
return (0, xrpc_server_1.createServiceAuthHeaders)({
|
86
53
|
iss: did,
|
87
|
-
aud: this.
|
54
|
+
aud: this.bskyAppView.did,
|
88
55
|
lxm,
|
89
56
|
keypair,
|
90
57
|
});
|
91
58
|
}
|
92
59
|
async getRecordsSinceRev(rev) {
|
93
|
-
return
|
60
|
+
return this.actorStoreReader.record.getRecordsSinceRev(rev);
|
94
61
|
}
|
95
62
|
async getProfileBasic() {
|
96
|
-
const profileQuery = this.actorStore.db.db
|
97
|
-
.selectFrom('record')
|
98
|
-
.leftJoin('repo_block', 'repo_block.cid', 'record.cid')
|
99
|
-
.where('record.collection', '=', lexicons_1.ids.AppBskyActorProfile)
|
100
|
-
.where('record.rkey', '=', 'self')
|
101
|
-
.selectAll();
|
102
63
|
const [profileRes, accountRes] = await Promise.all([
|
103
|
-
|
64
|
+
this.actorStoreReader.record.getProfileRecord(),
|
104
65
|
this.accountManager.getAccount(this.did),
|
105
66
|
]);
|
106
67
|
if (!accountRes)
|
107
68
|
return null;
|
108
|
-
const record = profileRes?.content
|
109
|
-
? (0, repo_1.cborToLexRecord)(profileRes.content)
|
110
|
-
: null;
|
111
69
|
return {
|
112
70
|
did: this.did,
|
113
71
|
handle: accountRes.handle ?? syntax_1.INVALID_HANDLE,
|
114
|
-
displayName:
|
115
|
-
avatar:
|
116
|
-
? this.getImageUrl('avatar',
|
72
|
+
displayName: profileRes?.displayName,
|
73
|
+
avatar: profileRes?.avatar
|
74
|
+
? this.getImageUrl('avatar', profileRes.avatar.ref.toString())
|
117
75
|
: undefined,
|
118
76
|
};
|
119
77
|
}
|
@@ -216,12 +174,12 @@ class LocalViewer {
|
|
216
174
|
};
|
217
175
|
}
|
218
176
|
async formatRecordEmbedInternal(embed) {
|
219
|
-
if (!this.
|
177
|
+
if (!this.bskyAppView) {
|
220
178
|
return null;
|
221
179
|
}
|
222
180
|
const collection = new syntax_1.AtUri(embed.record.uri).collection;
|
223
181
|
if (collection === lexicons_1.ids.AppBskyFeedPost) {
|
224
|
-
const res = await this.
|
182
|
+
const res = await this.bskyAppView.agent.app.bsky.feed.getPosts({ uris: [embed.record.uri] }, await this.serviceAuthHeaders(this.did, lexicons_1.ids.AppBskyFeedGetPosts));
|
225
183
|
const post = res.data.posts[0];
|
226
184
|
if (!post)
|
227
185
|
return null;
|
@@ -237,14 +195,14 @@ class LocalViewer {
|
|
237
195
|
};
|
238
196
|
}
|
239
197
|
else if (collection === lexicons_1.ids.AppBskyFeedGenerator) {
|
240
|
-
const res = await this.
|
198
|
+
const res = await this.bskyAppView.agent.app.bsky.feed.getFeedGenerator({ feed: embed.record.uri }, await this.serviceAuthHeaders(this.did, lexicons_1.ids.AppBskyFeedGetFeedGenerator));
|
241
199
|
return {
|
242
200
|
$type: 'app.bsky.feed.defs#generatorView',
|
243
201
|
...res.data.view,
|
244
202
|
};
|
245
203
|
}
|
246
204
|
else if (collection === lexicons_1.ids.AppBskyGraphList) {
|
247
|
-
const res = await this.
|
205
|
+
const res = await this.bskyAppView.agent.app.bsky.graph.getList({ list: embed.record.uri }, await this.serviceAuthHeaders(this.did, lexicons_1.ids.AppBskyGraphGetList));
|
248
206
|
return {
|
249
207
|
$type: 'app.bsky.graph.defs#listView',
|
250
208
|
...res.data.list,
|
@@ -289,44 +247,4 @@ class LocalViewer {
|
|
289
247
|
}
|
290
248
|
}
|
291
249
|
exports.LocalViewer = LocalViewer;
|
292
|
-
const getRecordsSinceRev = async (actorStore, rev) => {
|
293
|
-
const res = await actorStore.db.db
|
294
|
-
.selectFrom('record')
|
295
|
-
.innerJoin('repo_block', 'repo_block.cid', 'record.cid')
|
296
|
-
.select(['repo_block.content', 'uri', 'repo_block.cid', 'record.indexedAt'])
|
297
|
-
.where('record.repoRev', '>', rev)
|
298
|
-
.limit(10)
|
299
|
-
.orderBy('record.repoRev', 'asc')
|
300
|
-
.execute();
|
301
|
-
// sanity check to ensure that the clock received is not before _all_ local records (for instance in case of account migration)
|
302
|
-
if (res.length > 0) {
|
303
|
-
const sanityCheckRes = await actorStore.db.db
|
304
|
-
.selectFrom('record')
|
305
|
-
.selectAll()
|
306
|
-
.where('record.repoRev', '<=', rev)
|
307
|
-
.limit(1)
|
308
|
-
.executeTakeFirst();
|
309
|
-
if (!sanityCheckRes) {
|
310
|
-
return { count: 0, profile: null, posts: [] };
|
311
|
-
}
|
312
|
-
}
|
313
|
-
return res.reduce((acc, cur) => {
|
314
|
-
const descript = {
|
315
|
-
uri: new syntax_1.AtUri(cur.uri),
|
316
|
-
cid: cid_1.CID.parse(cur.cid),
|
317
|
-
indexedAt: cur.indexedAt,
|
318
|
-
record: (0, repo_1.cborToLexRecord)(cur.content),
|
319
|
-
};
|
320
|
-
if (descript.uri.collection === lexicons_1.ids.AppBskyActorProfile &&
|
321
|
-
descript.uri.rkey === 'self') {
|
322
|
-
acc.profile = descript;
|
323
|
-
}
|
324
|
-
else if (descript.uri.collection === lexicons_1.ids.AppBskyFeedPost) {
|
325
|
-
acc.posts.push(descript);
|
326
|
-
}
|
327
|
-
acc.count++;
|
328
|
-
return acc;
|
329
|
-
}, { count: 0, profile: null, posts: [] });
|
330
|
-
};
|
331
|
-
exports.getRecordsSinceRev = getRecordsSinceRev;
|
332
250
|
//# sourceMappingURL=viewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"viewer.js","sourceRoot":"","sources":["../../src/read-after-write/viewer.ts"],"names":[],"mappings":";;;;;;AAAA,gDAA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,CAAA;QACjD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QACzD,OAAO;YACL,KAAK,EAAE,qCAAqC;YAC5C,MAAM;YACN,KAAK;SACN,CAAA;IACH,CAAC;IAED,sBAAsB,CACpB,IAAsB,EACtB,MAAqB;QAErB,OAAO;YACL,GAAG,IAAI;YACP,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,MAAM,EAAE,MAAM,CAAC,MAAM;gBACnB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;gBAC1D,CAAC,CAAC,SAAS;SACd,CAAA;IACH,CAAC;IAED,iBAAiB,CAAC,IAAiB,EAAE,MAAqB;QACxD,OAAO;YACL,GAAG,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC;YAC5C,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC,CAAA;IACH,CAAC;IAED,qBAAqB,CACnB,IAAyB,EACzB,MAAqB;QAErB,OAAO;YACL,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC;YACvC,MAAM,EAAE,MAAM,CAAC,MAAM;gBACnB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;gBAC1D,CAAC,CAAC,SAAS;SACd,CAAA;IACH,CAAC;CACF;AAlQD,kCAkQC"}
|
package/dist/redis.js
CHANGED
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.redisAddressParts = exports.getRedisClient = void 0;
|
7
|
-
const
|
7
|
+
const node_assert_1 = __importDefault(require("node:assert"));
|
8
8
|
const ioredis_1 = require("ioredis");
|
9
9
|
const logger_1 = require("./logger");
|
10
10
|
const getRedisClient = (host, password) => {
|
@@ -22,7 +22,7 @@ exports.getRedisClient = getRedisClient;
|
|
22
22
|
const redisAddressParts = (addr, defaultPort = 6379) => {
|
23
23
|
const [host, portStr, ...others] = addr.split(':');
|
24
24
|
const port = portStr ? parseInt(portStr, 10) : defaultPort;
|
25
|
-
(0,
|
25
|
+
(0, node_assert_1.default)(host && !isNaN(port) && !others.length, `invalid address: ${addr}`);
|
26
26
|
return { host, port };
|
27
27
|
};
|
28
28
|
exports.redisAddressParts = redisAddressParts;
|
package/dist/redis.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"redis.js","sourceRoot":"","sources":["../src/redis.ts"],"names":[],"mappings":";;;;;;AAAA,
|
1
|
+
{"version":3,"file":"redis.js","sourceRoot":"","sources":["../src/redis.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAgC;AAChC,qCAA+B;AAC/B,qCAAsC;AAE/B,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,QAAiB,EAAS,EAAE;IACvE,MAAM,SAAS,GAAG,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAA;IACzC,MAAM,KAAK,GAAG,IAAI,eAAK,CAAC;QACtB,GAAG,SAAS;QACZ,QAAQ;KACT,CAAC,CAAA;IACF,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACxB,oBAAW,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,aAAa,CAAC,CAAA;IACjD,CAAC,CAAC,CAAA;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAVY,QAAA,cAAc,kBAU1B;AAEM,MAAM,iBAAiB,GAAG,CAC/B,IAAY,EACZ,WAAW,GAAG,IAAI,EACc,EAAE;IAClC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAClD,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAA;IAC1D,IAAA,qBAAM,EAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,IAAI,EAAE,CAAC,CAAA;IAC1E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;AACvB,CAAC,CAAA;AARY,QAAA,iBAAiB,qBAQ7B"}
|
package/dist/repo/prepare.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
2
2
|
import { BlobRef, LexValue, RepoRecord } from '@atproto/lexicon';
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import { RecordCreateOp, RecordDeleteOp, RecordUpdateOp, RecordWriteOp } from '@atproto/repo';
|
4
|
+
import { PreparedBlobRef, PreparedCreate, PreparedDelete, PreparedUpdate, PreparedWrite, ValidationStatus } from './types';
|
5
5
|
export declare const assertValidRecordWithStatus: (record: Record<string, unknown>, opts: {
|
6
6
|
requireLexicon: boolean;
|
7
7
|
}) => ValidationStatus;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../src/repo/prepare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;
|
1
|
+
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../src/repo/prepare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAEtC,OAAO,EACL,OAAO,EACP,QAAQ,EAER,UAAU,EAIX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EAGd,MAAM,eAAe,CAAA;AActB,OAAO,EAEL,eAAe,EACf,cAAc,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AAM,eAAe,UAAW,cAAc,KAAG,cAItD,CAAA;AAEF,eAAO,MAAM,SAAS,UAAW,aAAa,KAAG,aAWhD,CAAA;AA4CD,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,OAAO,CAAA;IACZ,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AAED,eAAO,MAAM,aAAa,WAChB,UAAU,YACR,OAAO,KAChB,eAAe,EAmBjB,CAAA;AAED,eAAO,MAAM,YAAY,QAClB,QAAQ,SACP,MAAM,EAAE,qBAEb,YAAY,EA6Bd,CAAA"}
|
package/dist/repo/prepare.js
CHANGED
@@ -25,19 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.findBlobRefs = exports.blobsForWrite = exports.writeToOp = exports.deleteWriteToOp = exports.updateWriteToOp = exports.createWriteToOp = exports.prepareDelete = exports.prepareUpdate = exports.prepareCreate = exports.setCollectionName = exports.assertValidCreatedAt = exports.assertValidRecordWithStatus = void 0;
|
27
27
|
const cid_1 = require("multiformats/cid");
|
28
|
-
const syntax_1 = require("@atproto/syntax");
|
29
28
|
const common_1 = require("@atproto/common");
|
30
29
|
const lexicon_1 = require("@atproto/lexicon");
|
31
30
|
const repo_1 = require("@atproto/repo");
|
32
|
-
const
|
31
|
+
const syntax_1 = require("@atproto/syntax");
|
32
|
+
const explicit_slurs_1 = require("../handle/explicit-slurs");
|
33
33
|
const lex = __importStar(require("../lexicon/lexicons"));
|
34
|
+
const profile_1 = require("../lexicon/types/app/bsky/actor/profile");
|
34
35
|
const generator_1 = require("../lexicon/types/app/bsky/feed/generator");
|
35
|
-
const starterpack_1 = require("../lexicon/types/app/bsky/graph/starterpack");
|
36
36
|
const post_1 = require("../lexicon/types/app/bsky/feed/post");
|
37
|
-
const facet_1 = require("../lexicon/types/app/bsky/richtext/facet");
|
38
37
|
const list_1 = require("../lexicon/types/app/bsky/graph/list");
|
39
|
-
const
|
40
|
-
const
|
38
|
+
const starterpack_1 = require("../lexicon/types/app/bsky/graph/starterpack");
|
39
|
+
const facet_1 = require("../lexicon/types/app/bsky/richtext/facet");
|
40
|
+
const types_1 = require("./types");
|
41
41
|
const assertValidRecordWithStatus = (record, opts) => {
|
42
42
|
if (typeof record.$type !== 'string') {
|
43
43
|
throw new types_1.InvalidRecordError('No $type provided');
|
package/dist/repo/prepare.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../../src/repo/prepare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAsC;AACtC,
|
1
|
+
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../../src/repo/prepare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAsC;AACtC,4CAA6D;AAC7D,8CAQyB;AACzB,wCAOsB;AACtB,4CAIwB;AACxB,6DAA0D;AAC1D,yDAA0C;AAC1C,qEAA+E;AAC/E,wEAAsF;AACtF,8DAAwE;AACxE,+DAAyE;AACzE,6EAAuF;AACvF,oEAAgE;AAChE,mCAQgB;AAET,MAAM,2BAA2B,GAAG,CACzC,MAA+B,EAC/B,IAAiC,EACf,EAAE;IACpB,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,0BAAkB,CAAC,mBAAmB,CAAC,CAAA;IACnD,CAAC;IACD,IAAI,CAAC;QACH,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACpD,IAAA,4BAAoB,EAAC,MAAM,CAAC,CAAA;IAC9B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,iCAAuB,EAAE,CAAC;YACzC,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;gBACxB,MAAM,IAAI,0BAAkB,CAAC,CAAC,CAAC,O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AAC,UAAU,CAAC,MAAM;KACxE;IACD,CAAC,GAAG,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE;QAC9B,MAAM,EACJ,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM;KACzE;IACD,CAAC,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE;QAC1B,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM;KAC3E;IACD,CAAC,GAAG,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE;QACzB,oBAAoB,EAClB,GAAG,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK;QAC/D,sBAAsB,EACpB,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;QACpE,0BAA0B,EACxB,GAAG,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK;QAC/D,4BAA4B,EAC1B,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;KACrE;CACF,CAAA"}
|
package/dist/repo/types.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
2
|
-
import { AtUri } from '@atproto/syntax';
|
3
|
-
import { WriteOpAction } from '@atproto/repo';
|
4
2
|
import { RepoRecord } from '@atproto/lexicon';
|
3
|
+
import { WriteOpAction } from '@atproto/repo';
|
4
|
+
import { AtUri } from '@atproto/syntax';
|
5
5
|
export type ValidationStatus = 'valid' | 'unknown' | undefined;
|
6
6
|
export type BlobConstraint = {
|
7
7
|
accept?: string[];
|
package/dist/repo/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/repo/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/repo/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,cAAc,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,aAAa,CAAC,MAAM,CAAA;IAC5B,GAAG,EAAE,KAAK,CAAA;IACV,GAAG,EAAE,GAAG,CAAA;IACR,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,gBAAgB,EAAE,gBAAgB,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,aAAa,CAAC,MAAM,CAAA;IAC5B,GAAG,EAAE,KAAK,CAAA;IACV,GAAG,EAAE,GAAG,CAAA;IACR,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,gBAAgB,EAAE,gBAAgB,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,aAAa,CAAC,MAAM,CAAA;IAC5B,GAAG,EAAE,KAAK,CAAA;IACV,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,cAAc,GAAG,cAAc,CAAA;AAE5E,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,qBAAa,kBAAmB,SAAQ,KAAK;IACxB,GAAG,EAAE,GAAG;gBAAR,GAAG,EAAE,GAAG;CAG5B;AAED,qBAAa,kBAAmB,SAAQ,KAAK;IACxB,GAAG,EAAE,GAAG,GAAG,IAAI;gBAAf,GAAG,EAAE,GAAG,GAAG,IAAI;CAGnC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rebuild-repo.d.ts","sourceRoot":"","sources":["../../src/scripts/rebuild-repo.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"rebuild-repo.d.ts","sourceRoot":"","sources":["../../src/scripts/rebuild-repo.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,WAAW,QAAe,UAAU,QAAQ,MAAM,EAAE,kBAkEhE,CAAA"}
|
@@ -5,10 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.rebuildRepo = void 0;
|
7
7
|
const promises_1 = __importDefault(require("node:readline/promises"));
|
8
|
-
const cid_1 = require("multiformats/cid");
|
9
|
-
const repo_1 = require("@atproto/repo");
|
10
|
-
const syntax_1 = require("@atproto/syntax");
|
11
8
|
const common_1 = require("@atproto/common");
|
9
|
+
const repo_1 = require("@atproto/repo");
|
12
10
|
const rebuildRepo = async (ctx, args) => {
|
13
11
|
const did = args[0];
|
14
12
|
if (!did || !did.startsWith('did:')) {
|
@@ -18,8 +16,8 @@ const rebuildRepo = async (ctx, args) => {
|
|
18
16
|
const rev = common_1.TID.nextStr();
|
19
17
|
const commit = await ctx.actorStore.transact(did, async (store) => {
|
20
18
|
const [records, existingCids] = await Promise.all([
|
21
|
-
|
22
|
-
listExistingBlocks(
|
19
|
+
store.record.listAll(),
|
20
|
+
store.record.listExistingBlocks(),
|
23
21
|
]);
|
24
22
|
let mst = await repo_1.MST.create(memoryStore);
|
25
23
|
for (const record of records) {
|
@@ -70,47 +68,6 @@ const rebuildRepo = async (ctx, args) => {
|
|
70
68
|
await ctx.sequencer.sequenceCommit(did, commit, []);
|
71
69
|
};
|
72
70
|
exports.rebuildRepo = rebuildRepo;
|
73
|
-
const listExistingBlocks = async (store) => {
|
74
|
-
const cids = new repo_1.CidSet();
|
75
|
-
let cursor = '';
|
76
|
-
while (cursor !== undefined) {
|
77
|
-
const res = await store.db.db
|
78
|
-
.selectFrom('repo_block')
|
79
|
-
.select('cid')
|
80
|
-
.where('cid', '>', cursor)
|
81
|
-
.orderBy('cid', 'asc')
|
82
|
-
.limit(1000)
|
83
|
-
.execute();
|
84
|
-
for (const row of res) {
|
85
|
-
cids.add(cid_1.CID.parse(row.cid));
|
86
|
-
}
|
87
|
-
cursor = res.at(-1)?.cid;
|
88
|
-
}
|
89
|
-
return cids;
|
90
|
-
};
|
91
|
-
const listAllRecords = async (store) => {
|
92
|
-
const records = [];
|
93
|
-
let cursor = '';
|
94
|
-
while (cursor !== undefined) {
|
95
|
-
const res = await store.db.db
|
96
|
-
.selectFrom('record')
|
97
|
-
.select(['uri', 'cid'])
|
98
|
-
.where('uri', '>', cursor)
|
99
|
-
.orderBy('uri', 'asc')
|
100
|
-
.limit(1000)
|
101
|
-
.execute();
|
102
|
-
for (const row of res) {
|
103
|
-
const parsed = new syntax_1.AtUri(row.uri);
|
104
|
-
records.push({
|
105
|
-
uri: row.uri,
|
106
|
-
path: (0, repo_1.formatDataKey)(parsed.collection, parsed.rkey),
|
107
|
-
cid: cid_1.CID.parse(row.cid),
|
108
|
-
});
|
109
|
-
}
|
110
|
-
cursor = res.at(-1)?.uri;
|
111
|
-
}
|
112
|
-
return records;
|
113
|
-
};
|
114
71
|
const promptContinue = async () => {
|
115
72
|
const rl = promises_1.default.createInterface({
|
116
73
|
input: process.stdin,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rebuild-repo.js","sourceRoot":"","sources":["../../src/scripts/rebuild-repo.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,
|
1
|
+
{"version":3,"file":"rebuild-repo.js","sourceRoot":"","sources":["../../src/scripts/rebuild-repo.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,4CAAqC;AACrC,wCAMsB;AAGf,MAAM,WAAW,GAAG,KAAK,EAAE,GAAe,EAAE,IAAc,EAAE,EAAE;IACnE,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;IACnB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAC7C,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,uBAAgB,EAAE,CAAA;IAC1C,MAAM,GAAG,GAAG,YAAG,CAAC,OAAO,EAAE,CAAA;IACzB,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAChE,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAChD,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;YACtB,KAAK,CAAC,MAAM,CAAC,kBAAkB,EAAE;SAClC,CAAC,CAAA;QACF,IAAI,GAAG,G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,CAAC,KAAK;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAA;IACF,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAA;IAClD,OAAO,MAAM,KAAK,EAAE,CAAA;AACtB,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sequencer/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sequencer/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,cAAc,UAAU,CAAA;AAExB,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAA;AAErD,eAAO,MAAM,KAAK,aACN,MAAM,yCAEf,WAKF,CAAA;AAED,eAAO,MAAM,WAAW,OAAQ,QAAQ,CAAC,iBAAiB,CAAC,gCAE1D,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sequencer/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iCAA6C;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sequencer/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iCAA6C;AAC7C,8DAAqC;AAGrC,2CAAwB;AAIjB,MAAM,KAAK,GAAG,CACnB,QAAgB,EAChB,wBAAwB,GAAG,KAAK,EACnB,EAAE;IACf,MAAM,OAAO,GAA2B,wBAAwB;QAC9D,CAAC,CAAC,EAAE,kBAAkB,EAAE,GAAG,EAAE;QAC7B,CAAC,CAAC,EAAE,CAAA;IACN,OAAO,aAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3C,CAAC,CAAA;AARY,QAAA,KAAK,SAQjB;AAEM,MAAM,WAAW,GAAG,CAAC,EAA+B,EAAE,EAAE;IAC7D,OAAO,IAAI,aAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAU,CAAC,CAAA;AACxC,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB"}
|
@@ -1,9 +1,9 @@
|
|
1
|
+
import { CID } from 'multiformats/cid';
|
1
2
|
import { z } from 'zod';
|
2
3
|
import { CommitData } from '@atproto/repo';
|
4
|
+
import { AccountStatus } from '../account-manager';
|
3
5
|
import { PreparedWrite } from '../repo';
|
4
|
-
import { CID } from 'multiformats/cid';
|
5
6
|
import { RepoSeqInsert } from './db';
|
6
|
-
import { AccountStatus } from '../account-manager';
|
7
7
|
export declare const formatSeqCommit: (did: string, commitData: CommitData, writes: PreparedWrite[]) => Promise<RepoSeqInsert>;
|
8
8
|
export declare const formatSeqHandleUpdate: (did: string, handle: string) => Promise<RepoSeqInsert>;
|
9
9
|
export declare const formatSeqIdentityEvt: (did: string, handle?: string) => Promise<RepoSeqInsert>;
|
@@ -14,8 +14,8 @@ export declare const commitEvtOp: z.ZodObject<{
|
|
14
14
|
path: z.ZodString;
|
15
15
|
cid: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
17
|
-
path: string;
|
18
17
|
cid: CID | null;
|
18
|
+
path: string;
|
19
19
|
action: "create" | "update" | "delete";
|
20
20
|
}, {
|
21
21
|
path: string;
|
@@ -37,8 +37,8 @@ export declare const commitEvt: z.ZodObject<{
|
|
37
37
|
path: z.ZodString;
|
38
38
|
cid: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
40
|
-
path: string;
|
41
40
|
cid: CID | null;
|
41
|
+
path: string;
|
42
42
|
action: "create" | "update" | "delete";
|
43
43
|
}, {
|
44
44
|
path: string;
|
@@ -47,23 +47,23 @@ export declare const commitEvt: z.ZodObject<{
|
|
47
47
|
}>, "many">;
|
48
48
|
blobs: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>, "many">;
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
50
|
+
rev: string;
|
50
51
|
repo: string;
|
51
52
|
commit: CID;
|
52
|
-
rev: string;
|
53
53
|
blobs: CID[];
|
54
54
|
since: string | null;
|
55
55
|
rebase: boolean;
|
56
56
|
tooBig: boolean;
|
57
57
|
blocks: Uint8Array;
|
58
58
|
ops: {
|
59
|
-
path: string;
|
60
59
|
cid: CID | null;
|
60
|
+
path: string;
|
61
61
|
action: "create" | "update" | "delete";
|
62
62
|
}[];
|
63
63
|
prev: CID | null;
|
64
64
|
}, {
|
65
|
-
repo: string;
|
66
65
|
rev: string;
|
66
|
+
repo: string;
|
67
67
|
blobs: any[];
|
68
68
|
since: string | null;
|
69
69
|
rebase: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/sequencer/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/sequencer/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAGL,UAAU,EAGX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAEpC,eAAO,MAAM,eAAe,QACrB,MAAM,cACC,UAA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AAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,SAAS,CAAA;CACf,CAAA;AACD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,SAAS,CAAA;CACf,CAAA;AACD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,WAAW,CAAA;CACjB,CAAA;AACD,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,SAAS,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,UAAU,CAAA;CAChB,CAAA;AACD,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,WAAW,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,YAAY,CAAA;CAClB,CAAA;AACD,MAAM,MAAM,MAAM,GACd,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,iBAAiB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/sequencer/events.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/sequencer/events.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AACvB,4CAAoD;AACpD,wCAMsB;AACtB,wDAAkD;AAI3C,MAAM,eAAe,GAAG,KAAK,EAClC,GAAW,EACX,UAAsB,EACtB,MAAuB,EACC,EAAE;IAC1B,IAAI,MAAe,CAAA;IACnB,MAAM,GAAG,GAAkB,EAAE,CAAA;IAC7B,MAAM,KAAK,GAAG,IAAI,aAAM,EAA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