@atproto/pds 0.4.64 → 0.4.66
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/account-manager/db/index.d.ts.map +1 -1
- package/dist/account-manager/db/migrations/001-init.js +2 -3
- package/dist/account-manager/db/migrations/001-init.js.map +1 -1
- package/dist/account-manager/db/migrations/002-account-deactivation.js +2 -3
- package/dist/account-manager/db/migrations/002-account-deactivation.js.map +1 -1
- package/dist/account-manager/db/migrations/003-privileged-app-passwords.js +2 -3
- package/dist/account-manager/db/migrations/003-privileged-app-passwords.js.map +1 -1
- package/dist/account-manager/db/migrations/004-oauth.js +2 -3
- package/dist/account-manager/db/migrations/004-oauth.js.map +1 -1
- package/dist/account-manager/helpers/account.d.ts.map +1 -1
- package/dist/account-manager/helpers/auth.d.ts +0 -1
- package/dist/account-manager/helpers/auth.d.ts.map +1 -1
- package/dist/account-manager/helpers/authorization-request.d.ts.map +1 -1
- package/dist/account-manager/helpers/device-account.d.ts.map +1 -1
- package/dist/account-manager/helpers/device-account.js +3 -3
- package/dist/account-manager/helpers/device-account.js.map +1 -1
- package/dist/account-manager/helpers/device.d.ts.map +1 -1
- package/dist/account-manager/helpers/email-token.d.ts.map +1 -1
- package/dist/account-manager/helpers/invite.d.ts.map +1 -1
- package/dist/account-manager/helpers/password.d.ts.map +1 -1
- package/dist/account-manager/helpers/repo.d.ts.map +1 -1
- package/dist/account-manager/helpers/scrypt.d.ts.map +1 -1
- package/dist/account-manager/helpers/token.d.ts.map +1 -1
- package/dist/account-manager/helpers/used-refresh-token.d.ts.map +1 -1
- package/dist/account-manager/index.d.ts +0 -1
- package/dist/account-manager/index.d.ts.map +1 -1
- package/dist/actor-store/blob/reader.d.ts +0 -1
- package/dist/actor-store/blob/reader.d.ts.map +1 -1
- package/dist/actor-store/blob/transactor.d.ts +0 -1
- package/dist/actor-store/blob/transactor.d.ts.map +1 -1
- package/dist/actor-store/db/index.d.ts.map +1 -1
- package/dist/actor-store/db/migrations/001-init.js +2 -3
- package/dist/actor-store/db/migrations/001-init.js.map +1 -1
- package/dist/actor-store/migrate.d.ts.map +1 -1
- package/dist/actor-store/record/transactor.d.ts +1 -1
- package/dist/actor-store/record/transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/sql-repo-reader.d.ts +0 -1
- package/dist/actor-store/repo/sql-repo-reader.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.js +1 -1
- package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
- package/dist/api/app/bsky/actor/getProfiles.js +1 -1
- package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
- package/dist/api/app/bsky/actor/index.js +1 -1
- package/dist/api/app/bsky/actor/index.js.map +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js.map +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.js +1 -1
- package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.js +1 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.js +1 -1
- package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/api/app/bsky/feed/getTimeline.js +1 -1
- package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
- package/dist/api/app/bsky/feed/index.js +1 -1
- package/dist/api/app/bsky/feed/index.js.map +1 -1
- package/dist/api/app/bsky/index.js +1 -1
- package/dist/api/app/bsky/index.js.map +1 -1
- package/dist/api/app/bsky/notification/index.js +1 -1
- package/dist/api/app/bsky/notification/index.js.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.js +1 -1
- package/dist/api/app/bsky/notification/registerPush.js.map +1 -1
- package/dist/api/app/bsky/util/resolver.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.js +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/admin/disableAccountInvites.js +1 -1
- package/dist/api/com/atproto/admin/disableAccountInvites.js.map +1 -1
- package/dist/api/com/atproto/admin/disableInviteCodes.js +1 -1
- package/dist/api/com/atproto/admin/disableInviteCodes.js.map +1 -1
- package/dist/api/com/atproto/admin/enableAccountInvites.js +1 -1
- package/dist/api/com/atproto/admin/enableAccountInvites.js.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfo.js +1 -1
- package/dist/api/com/atproto/admin/getAccountInfo.js.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.js +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.js.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.js +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.js.map +1 -1
- package/dist/api/com/atproto/admin/index.js +1 -1
- package/dist/api/com/atproto/admin/index.js.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.js +1 -1
- package/dist/api/com/atproto/admin/updateAccountEmail.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.js +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountPassword.js +1 -1
- package/dist/api/com/atproto/admin/updateAccountPassword.js.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.js +2 -3
- package/dist/api/com/atproto/admin/util.js.map +1 -1
- package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js +1 -1
- package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js.map +1 -1
- package/dist/api/com/atproto/identity/index.js +1 -1
- package/dist/api/com/atproto/identity/index.js.map +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.js +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.js.map +1 -1
- package/dist/api/com/atproto/identity/submitPlcOperation.js +1 -1
- package/dist/api/com/atproto/identity/submitPlcOperation.js.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.js +1 -1
- package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
- package/dist/api/com/atproto/index.js +1 -1
- package/dist/api/com/atproto/index.js.map +1 -1
- package/dist/api/com/atproto/repo/applyWrites.js +1 -1
- package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/api/com/atproto/repo/createRecord.js +1 -1
- package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.js +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.js.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.js +1 -1
- package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/importRepo.js +1 -1
- package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
- package/dist/api/com/atproto/repo/index.js +1 -1
- package/dist/api/com/atproto/repo/index.js.map +1 -1
- package/dist/api/com/atproto/repo/listMissingBlobs.js +1 -1
- package/dist/api/com/atproto/repo/listMissingBlobs.js.map +1 -1
- package/dist/api/com/atproto/repo/listRecords.js +1 -1
- package/dist/api/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.js +1 -1
- package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js.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.js +1 -1
- package/dist/api/com/atproto/server/checkAccountStatus.js.map +1 -1
- package/dist/api/com/atproto/server/confirmEmail.js +1 -1
- package/dist/api/com/atproto/server/confirmEmail.js.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +1 -1
- package/dist/api/com/atproto/server/createAccount.js.map +1 -1
- package/dist/api/com/atproto/server/createAppPassword.js +1 -1
- package/dist/api/com/atproto/server/createAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/createInviteCode.js +1 -1
- package/dist/api/com/atproto/server/createInviteCode.js.map +1 -1
- package/dist/api/com/atproto/server/createInviteCodes.js +1 -1
- package/dist/api/com/atproto/server/createInviteCodes.js.map +1 -1
- package/dist/api/com/atproto/server/createSession.js +1 -1
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.js +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.js.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.js +1 -1
- package/dist/api/com/atproto/server/deleteSession.js.map +1 -1
- package/dist/api/com/atproto/server/describeServer.js +1 -1
- package/dist/api/com/atproto/server/describeServer.js.map +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.js +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.js.map +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.js +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
- package/dist/api/com/atproto/server/getSession.js +1 -1
- package/dist/api/com/atproto/server/getSession.js.map +1 -1
- package/dist/api/com/atproto/server/index.js +1 -1
- package/dist/api/com/atproto/server/index.js.map +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.js +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.js.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.js +1 -1
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.js +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.js +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.js +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.js.map +1 -1
- package/dist/api/com/atproto/server/requestPasswordReset.js +1 -1
- package/dist/api/com/atproto/server/requestPasswordReset.js.map +1 -1
- package/dist/api/com/atproto/server/reserveSigningKey.js +1 -1
- package/dist/api/com/atproto/server/reserveSigningKey.js.map +1 -1
- package/dist/api/com/atproto/server/resetPassword.js +1 -1
- package/dist/api/com/atproto/server/resetPassword.js.map +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.js +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/updateEmail.js +1 -1
- package/dist/api/com/atproto/server/updateEmail.js.map +1 -1
- package/dist/api/com/atproto/server/util.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.js +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.js.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.js +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.js.map +1 -1
- package/dist/api/com/atproto/sync/getBlob.js +1 -1
- package/dist/api/com/atproto/sync/getBlob.js.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.js +1 -1
- package/dist/api/com/atproto/sync/getLatestCommit.js.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 +0 -1
- 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.js +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
- package/dist/api/com/atproto/sync/index.js +1 -1
- package/dist/api/com/atproto/sync/index.js.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.js +1 -1
- package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.js +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/util.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.js +1 -1
- package/dist/api/com/atproto/temp/index.js.map +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/proxy.d.ts +0 -1
- package/dist/api/proxy.d.ts.map +1 -1
- package/dist/api/proxy.js +2 -2
- package/dist/api/proxy.js.map +1 -1
- package/dist/auth-routes.d.ts.map +1 -1
- package/dist/auth-routes.js +1 -0
- package/dist/auth-routes.js.map +1 -1
- package/dist/auth-verifier.d.ts +0 -1
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/basic-routes.d.ts.map +1 -1
- package/dist/db/cast.d.ts +1 -1
- package/dist/db/cast.d.ts.map +1 -1
- package/dist/db/cast.js +2 -2
- package/dist/db/cast.js.map +1 -1
- package/dist/db/pagination.d.ts +1 -1
- package/dist/db/pagination.d.ts.map +1 -1
- package/dist/db/util.d.ts.map +1 -1
- package/dist/did-cache/db/index.d.ts.map +1 -1
- package/dist/did-cache/db/migrations.d.ts.map +1 -1
- package/dist/disk-blobstore.d.ts +0 -1
- package/dist/disk-blobstore.d.ts.map +1 -1
- package/dist/handle/index.d.ts.map +1 -1
- package/dist/image/index.d.ts +0 -1
- package/dist/image/index.d.ts.map +1 -1
- package/dist/image/index.js +3 -3
- package/dist/image/index.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/lexicon/index.d.ts +17 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +45 -2
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +292 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +298 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +48 -49
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/profile.js +2 -3
- package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/defs.js +2 -3
- package/dist/lexicon/types/app/bsky/embed/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/external.js +8 -9
- package/dist/lexicon/types/app/bsky/embed/external.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/images.js +8 -9
- package/dist/lexicon/types/app/bsky/embed/images.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/record.js +12 -13
- package/dist/lexicon/types/app/bsky/embed/record.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/recordWithMedia.js +4 -5
- package/dist/lexicon/types/app/bsky/embed/recordWithMedia.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.js +6 -7
- package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.js +35 -35
- package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.js +4 -5
- package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/generator.js +2 -3
- package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/getLikes.js +2 -3
- package/dist/lexicon/types/app/bsky/feed/getLikes.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/like.js +2 -3
- package/dist/lexicon/types/app/bsky/feed/like.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/post.js +8 -9
- package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.js +4 -5
- package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/repost.js +2 -3
- package/dist/lexicon/types/app/bsky/feed/repost.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.js +8 -9
- package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/block.js +2 -3
- package/dist/lexicon/types/app/bsky/graph/block.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/defs.js +17 -17
- package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/follow.js +2 -3
- package/dist/lexicon/types/app/bsky/graph/follow.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/list.js +2 -3
- package/dist/lexicon/types/app/bsky/graph/list.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listblock.js +2 -3
- package/dist/lexicon/types/app/bsky/graph/listblock.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listitem.js +2 -3
- package/dist/lexicon/types/app/bsky/graph/listitem.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/starterpack.js +4 -5
- package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/defs.js +8 -9
- package/dist/lexicon/types/app/bsky/labeler/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.js +2 -3
- package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.js +2 -3
- package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/lexicon/types/app/bsky/richtext/facet.js +10 -11
- package/dist/lexicon/types/app/bsky/richtext/facet.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/defs.js +4 -5
- package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.js +2 -3
- package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.js.map +1 -1
- package/dist/lexicon/types/app/bsky/video/defs.js +2 -3
- package/dist/lexicon/types/app/bsky/video/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts +0 -2
- package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.js +2 -3
- package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/defs.js +2 -3
- package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +0 -1
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/defs.js +20 -21
- package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +2 -3
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +2 -3
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -1
- package/dist/lexicon/types/com/atproto/admin/defs.js +8 -9
- package/dist/lexicon/types/com/atproto/admin/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/label/defs.js +10 -11
- package/dist/lexicon/types/com/atproto/label/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/label/subscribeLabels.d.ts +0 -3
- package/dist/lexicon/types/com/atproto/label/subscribeLabels.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/label/subscribeLabels.js +4 -5
- package/dist/lexicon/types/com/atproto/label/subscribeLabels.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/applyWrites.js +12 -13
- package/dist/lexicon/types/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/defs.js +2 -3
- package/dist/lexicon/types/com/atproto/repo/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/importRepo.d.ts +0 -2
- package/dist/lexicon/types/com/atproto/repo/importRepo.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/listMissingBlobs.js +2 -3
- package/dist/lexicon/types/com/atproto/repo/listMissingBlobs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/listRecords.js +2 -3
- package/dist/lexicon/types/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/strongRef.js +2 -3
- package/dist/lexicon/types/com/atproto/repo/strongRef.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts +0 -2
- package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/createAppPassword.js +2 -3
- package/dist/lexicon/types/com/atproto/server/createAppPassword.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/createInviteCodes.js +2 -3
- package/dist/lexicon/types/com/atproto/server/createInviteCodes.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/defs.js +4 -5
- package/dist/lexicon/types/com/atproto/server/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/describeServer.js +4 -5
- package/dist/lexicon/types/com/atproto/server/describeServer.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/listAppPasswords.js +2 -3
- package/dist/lexicon/types/com/atproto/server/listAppPasswords.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts +0 -1
- package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts +0 -1
- package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts +0 -1
- package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +0 -1
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts +0 -1
- package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/listRepos.js +2 -3
- package/dist/lexicon/types/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +0 -3
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +16 -17
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/communication/defs.js +2 -3
- package/dist/lexicon/types/tools/ozone/communication/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js +59 -60
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/server/getConfig.js +4 -5
- package/dist/lexicon/types/tools/ozone/server/getConfig.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/set/addValues.d.ts +32 -0
- package/dist/lexicon/types/tools/ozone/set/addValues.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/addValues.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/addValues.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/defs.d.ts +22 -0
- package/dist/lexicon/types/tools/ozone/set/defs.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/defs.js +23 -0
- package/dist/lexicon/types/tools/ozone/set/defs.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts +41 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts +33 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.d.ts +41 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.d.ts +42 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts +35 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/defs.js +2 -3
- package/dist/lexicon/types/tools/ozone/signature/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js +2 -3
- package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/team/defs.js +3 -3
- package/dist/lexicon/types/tools/ozone/team/defs.js.map +1 -1
- package/dist/lexicon/util.js +2 -3
- package/dist/lexicon/util.js.map +1 -1
- package/dist/logger.d.ts +0 -2
- package/dist/logger.d.ts.map +1 -1
- package/dist/oauth/provider.d.ts +0 -2
- package/dist/oauth/provider.d.ts.map +1 -1
- package/dist/pipethrough.d.ts +1 -3
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +5 -5
- package/dist/pipethrough.js.map +1 -1
- package/dist/read-after-write/util.d.ts +0 -1
- package/dist/read-after-write/util.d.ts.map +1 -1
- package/dist/read-after-write/viewer.d.ts.map +1 -1
- package/dist/repo/prepare.d.ts.map +1 -1
- package/dist/sequencer/db/index.d.ts.map +1 -1
- package/dist/sequencer/db/migrations/001-init.js +2 -3
- package/dist/sequencer/db/migrations/001-init.js.map +1 -1
- package/dist/sequencer/events.d.ts.map +1 -1
- package/dist/sequencer/outbox.d.ts +0 -1
- package/dist/sequencer/outbox.d.ts.map +1 -1
- package/dist/sequencer/sequencer.d.ts.map +1 -1
- package/dist/util/compression.js +1 -1
- package/dist/util/compression.js.map +1 -1
- package/dist/util/debug.d.ts.map +1 -1
- package/dist/well-known.d.ts.map +1 -1
- package/jest.config.js +5 -1
- package/package.json +9 -6
- package/src/auth-routes.ts +1 -0
- package/src/lexicon/index.ts +82 -0
- package/src/lexicon/lexicons.ts +301 -0
- package/src/lexicon/types/tools/ozone/set/addValues.ts +41 -0
- package/src/lexicon/types/tools/ozone/set/defs.ts +44 -0
- package/src/lexicon/types/tools/ozone/set/deleteSet.ts +50 -0
- package/src/lexicon/types/tools/ozone/set/deleteValues.ts +42 -0
- package/src/lexicon/types/tools/ozone/set/getValues.ts +51 -0
- package/src/lexicon/types/tools/ozone/set/querySets.ts +52 -0
- package/src/lexicon/types/tools/ozone/set/upsertSet.ts +43 -0
- package/tests/oauth.test.ts +152 -0
- package/tests/proxied/proxy-catchall.test.ts +3 -3
- package/tests/proxied/proxy-header.test.ts +8 -3
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.tests.tsbuildinfo +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.66",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -45,13 +45,13 @@
|
|
45
45
|
"undici": "^6.19.8",
|
46
46
|
"zod": "^3.23.8",
|
47
47
|
"@atproto-labs/fetch-node": "0.1.3",
|
48
|
-
"@atproto/api": "^0.13.
|
48
|
+
"@atproto/api": "^0.13.12",
|
49
49
|
"@atproto/aws": "^0.2.7",
|
50
50
|
"@atproto/common": "^0.4.4",
|
51
51
|
"@atproto/crypto": "^0.4.1",
|
52
52
|
"@atproto/identity": "^0.4.2",
|
53
53
|
"@atproto/lexicon": "^0.4.2",
|
54
|
-
"@atproto/oauth-provider": "^0.2.
|
54
|
+
"@atproto/oauth-provider": "^0.2.6",
|
55
55
|
"@atproto/repo": "^0.5.3",
|
56
56
|
"@atproto/syntax": "^0.3.0",
|
57
57
|
"@atproto/xrpc": "^0.6.3",
|
@@ -71,11 +71,14 @@
|
|
71
71
|
"esbuild-plugin-handlebars": "^1.0.3",
|
72
72
|
"get-port": "^6.1.2",
|
73
73
|
"jest": "^28.1.2",
|
74
|
+
"puppeteer": "^23.5.2",
|
74
75
|
"ts-node": "^10.8.2",
|
76
|
+
"typescript": "^5.6.3",
|
75
77
|
"ws": "^8.12.0",
|
76
|
-
"@atproto/api": "^0.13.
|
77
|
-
"@atproto/bsky": "^0.0.
|
78
|
-
"@atproto/lex-cli": "^0.5.1"
|
78
|
+
"@atproto/api": "^0.13.12",
|
79
|
+
"@atproto/bsky": "^0.0.90",
|
80
|
+
"@atproto/lex-cli": "^0.5.1",
|
81
|
+
"@atproto/oauth-client-browser-example": "0.0.0"
|
79
82
|
},
|
80
83
|
"scripts": {
|
81
84
|
"codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
package/src/auth-routes.ts
CHANGED
@@ -18,6 +18,7 @@ export const createRouter = ({ authProvider, cfg }: AppContext): Router => {
|
|
18
18
|
router.get('/.well-known/oauth-protected-resource', (req, res) => {
|
19
19
|
res.setHeader('Access-Control-Allow-Origin', '*')
|
20
20
|
res.setHeader('Access-Control-Allow-Method', '*')
|
21
|
+
res.setHeader('Access-Control-Allow-Headers', '*')
|
21
22
|
res.status(200).json(oauthProtectedResourceMetadata)
|
22
23
|
})
|
23
24
|
|
package/src/lexicon/index.ts
CHANGED
@@ -173,6 +173,12 @@ import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation
|
|
173
173
|
import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
|
174
174
|
import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
|
175
175
|
import * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
|
176
|
+
import * as ToolsOzoneSetAddValues from './types/tools/ozone/set/addValues'
|
177
|
+
import * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet'
|
178
|
+
import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues'
|
179
|
+
import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues'
|
180
|
+
import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets'
|
181
|
+
import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet'
|
176
182
|
import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
|
177
183
|
import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
|
178
184
|
import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts'
|
@@ -2164,6 +2170,7 @@ export class ToolsOzoneNS {
|
|
2164
2170
|
communication: ToolsOzoneCommunicationNS
|
2165
2171
|
moderation: ToolsOzoneModerationNS
|
2166
2172
|
server: ToolsOzoneServerNS
|
2173
|
+
set: ToolsOzoneSetNS
|
2167
2174
|
signature: ToolsOzoneSignatureNS
|
2168
2175
|
team: ToolsOzoneTeamNS
|
2169
2176
|
|
@@ -2172,6 +2179,7 @@ export class ToolsOzoneNS {
|
|
2172
2179
|
this.communication = new ToolsOzoneCommunicationNS(server)
|
2173
2180
|
this.moderation = new ToolsOzoneModerationNS(server)
|
2174
2181
|
this.server = new ToolsOzoneServerNS(server)
|
2182
|
+
this.set = new ToolsOzoneSetNS(server)
|
2175
2183
|
this.signature = new ToolsOzoneSignatureNS(server)
|
2176
2184
|
this.team = new ToolsOzoneTeamNS(server)
|
2177
2185
|
}
|
@@ -2355,6 +2363,80 @@ export class ToolsOzoneServerNS {
|
|
2355
2363
|
}
|
2356
2364
|
}
|
2357
2365
|
|
2366
|
+
export class ToolsOzoneSetNS {
|
2367
|
+
_server: Server
|
2368
|
+
|
2369
|
+
constructor(server: Server) {
|
2370
|
+
this._server = server
|
2371
|
+
}
|
2372
|
+
|
2373
|
+
addValues<AV extends AuthVerifier>(
|
2374
|
+
cfg: ConfigOf<
|
2375
|
+
AV,
|
2376
|
+
ToolsOzoneSetAddValues.Handler<ExtractAuth<AV>>,
|
2377
|
+
ToolsOzoneSetAddValues.HandlerReqCtx<ExtractAuth<AV>>
|
2378
|
+
>,
|
2379
|
+
) {
|
2380
|
+
const nsid = 'tools.ozone.set.addValues' // @ts-ignore
|
2381
|
+
return this._server.xrpc.method(nsid, cfg)
|
2382
|
+
}
|
2383
|
+
|
2384
|
+
deleteSet<AV extends AuthVerifier>(
|
2385
|
+
cfg: ConfigOf<
|
2386
|
+
AV,
|
2387
|
+
ToolsOzoneSetDeleteSet.Handler<ExtractAuth<AV>>,
|
2388
|
+
ToolsOzoneSetDeleteSet.HandlerReqCtx<ExtractAuth<AV>>
|
2389
|
+
>,
|
2390
|
+
) {
|
2391
|
+
const nsid = 'tools.ozone.set.deleteSet' // @ts-ignore
|
2392
|
+
return this._server.xrpc.method(nsid, cfg)
|
2393
|
+
}
|
2394
|
+
|
2395
|
+
deleteValues<AV extends AuthVerifier>(
|
2396
|
+
cfg: ConfigOf<
|
2397
|
+
AV,
|
2398
|
+
ToolsOzoneSetDeleteValues.Handler<ExtractAuth<AV>>,
|
2399
|
+
ToolsOzoneSetDeleteValues.HandlerReqCtx<ExtractAuth<AV>>
|
2400
|
+
>,
|
2401
|
+
) {
|
2402
|
+
const nsid = 'tools.ozone.set.deleteValues' // @ts-ignore
|
2403
|
+
return this._server.xrpc.method(nsid, cfg)
|
2404
|
+
}
|
2405
|
+
|
2406
|
+
getValues<AV extends AuthVerifier>(
|
2407
|
+
cfg: ConfigOf<
|
2408
|
+
AV,
|
2409
|
+
ToolsOzoneSetGetValues.Handler<ExtractAuth<AV>>,
|
2410
|
+
ToolsOzoneSetGetValues.HandlerReqCtx<ExtractAuth<AV>>
|
2411
|
+
>,
|
2412
|
+
) {
|
2413
|
+
const nsid = 'tools.ozone.set.getValues' // @ts-ignore
|
2414
|
+
return this._server.xrpc.method(nsid, cfg)
|
2415
|
+
}
|
2416
|
+
|
2417
|
+
querySets<AV extends AuthVerifier>(
|
2418
|
+
cfg: ConfigOf<
|
2419
|
+
AV,
|
2420
|
+
ToolsOzoneSetQuerySets.Handler<ExtractAuth<AV>>,
|
2421
|
+
ToolsOzoneSetQuerySets.HandlerReqCtx<ExtractAuth<AV>>
|
2422
|
+
>,
|
2423
|
+
) {
|
2424
|
+
const nsid = 'tools.ozone.set.querySets' // @ts-ignore
|
2425
|
+
return this._server.xrpc.method(nsid, cfg)
|
2426
|
+
}
|
2427
|
+
|
2428
|
+
upsertSet<AV extends AuthVerifier>(
|
2429
|
+
cfg: ConfigOf<
|
2430
|
+
AV,
|
2431
|
+
ToolsOzoneSetUpsertSet.Handler<ExtractAuth<AV>>,
|
2432
|
+
ToolsOzoneSetUpsertSet.HandlerReqCtx<ExtractAuth<AV>>
|
2433
|
+
>,
|
2434
|
+
) {
|
2435
|
+
const nsid = 'tools.ozone.set.upsertSet' // @ts-ignore
|
2436
|
+
return this._server.xrpc.method(nsid, cfg)
|
2437
|
+
}
|
2438
|
+
}
|
2439
|
+
|
2358
2440
|
export class ToolsOzoneSignatureNS {
|
2359
2441
|
_server: Server
|
2360
2442
|
|
package/src/lexicon/lexicons.ts
CHANGED
@@ -12139,6 +12139,300 @@ export const schemaDict = {
|
|
12139
12139
|
},
|
12140
12140
|
},
|
12141
12141
|
},
|
12142
|
+
ToolsOzoneSetAddValues: {
|
12143
|
+
lexicon: 1,
|
12144
|
+
id: 'tools.ozone.set.addValues',
|
12145
|
+
defs: {
|
12146
|
+
main: {
|
12147
|
+
type: 'procedure',
|
12148
|
+
description:
|
12149
|
+
'Add values to a specific set. Attempting to add values to a set that does not exist will result in an error.',
|
12150
|
+
input: {
|
12151
|
+
encoding: 'application/json',
|
12152
|
+
schema: {
|
12153
|
+
type: 'object',
|
12154
|
+
required: ['name', 'values'],
|
12155
|
+
properties: {
|
12156
|
+
name: {
|
12157
|
+
type: 'string',
|
12158
|
+
description: 'Name of the set to add values to',
|
12159
|
+
},
|
12160
|
+
values: {
|
12161
|
+
type: 'array',
|
12162
|
+
minLength: 1,
|
12163
|
+
maxLength: 1000,
|
12164
|
+
items: {
|
12165
|
+
type: 'string',
|
12166
|
+
},
|
12167
|
+
description: 'Array of string values to add to the set',
|
12168
|
+
},
|
12169
|
+
},
|
12170
|
+
},
|
12171
|
+
},
|
12172
|
+
},
|
12173
|
+
},
|
12174
|
+
},
|
12175
|
+
ToolsOzoneSetDefs: {
|
12176
|
+
lexicon: 1,
|
12177
|
+
id: 'tools.ozone.set.defs',
|
12178
|
+
defs: {
|
12179
|
+
set: {
|
12180
|
+
type: 'object',
|
12181
|
+
required: ['name'],
|
12182
|
+
properties: {
|
12183
|
+
name: {
|
12184
|
+
type: 'string',
|
12185
|
+
minLength: 3,
|
12186
|
+
maxLength: 128,
|
12187
|
+
},
|
12188
|
+
description: {
|
12189
|
+
type: 'string',
|
12190
|
+
maxGraphemes: 1024,
|
12191
|
+
maxLength: 10240,
|
12192
|
+
},
|
12193
|
+
},
|
12194
|
+
},
|
12195
|
+
setView: {
|
12196
|
+
type: 'object',
|
12197
|
+
required: ['name', 'setSize', 'createdAt', 'updatedAt'],
|
12198
|
+
properties: {
|
12199
|
+
name: {
|
12200
|
+
type: 'string',
|
12201
|
+
minLength: 3,
|
12202
|
+
maxLength: 128,
|
12203
|
+
},
|
12204
|
+
description: {
|
12205
|
+
type: 'string',
|
12206
|
+
maxGraphemes: 1024,
|
12207
|
+
maxLength: 10240,
|
12208
|
+
},
|
12209
|
+
setSize: {
|
12210
|
+
type: 'integer',
|
12211
|
+
},
|
12212
|
+
createdAt: {
|
12213
|
+
type: 'string',
|
12214
|
+
format: 'datetime',
|
12215
|
+
},
|
12216
|
+
updatedAt: {
|
12217
|
+
type: 'string',
|
12218
|
+
format: 'datetime',
|
12219
|
+
},
|
12220
|
+
},
|
12221
|
+
},
|
12222
|
+
},
|
12223
|
+
},
|
12224
|
+
ToolsOzoneSetDeleteSet: {
|
12225
|
+
lexicon: 1,
|
12226
|
+
id: 'tools.ozone.set.deleteSet',
|
12227
|
+
defs: {
|
12228
|
+
main: {
|
12229
|
+
type: 'procedure',
|
12230
|
+
description:
|
12231
|
+
'Delete an entire set. Attempting to delete a set that does not exist will result in an error.',
|
12232
|
+
input: {
|
12233
|
+
encoding: 'application/json',
|
12234
|
+
schema: {
|
12235
|
+
type: 'object',
|
12236
|
+
required: ['name'],
|
12237
|
+
properties: {
|
12238
|
+
name: {
|
12239
|
+
type: 'string',
|
12240
|
+
description: 'Name of the set to delete',
|
12241
|
+
},
|
12242
|
+
},
|
12243
|
+
},
|
12244
|
+
},
|
12245
|
+
output: {
|
12246
|
+
encoding: 'application/json',
|
12247
|
+
schema: {
|
12248
|
+
type: 'object',
|
12249
|
+
properties: {},
|
12250
|
+
},
|
12251
|
+
},
|
12252
|
+
errors: [
|
12253
|
+
{
|
12254
|
+
name: 'SetNotFound',
|
12255
|
+
description: 'set with the given name does not exist',
|
12256
|
+
},
|
12257
|
+
],
|
12258
|
+
},
|
12259
|
+
},
|
12260
|
+
},
|
12261
|
+
ToolsOzoneSetDeleteValues: {
|
12262
|
+
lexicon: 1,
|
12263
|
+
id: 'tools.ozone.set.deleteValues',
|
12264
|
+
defs: {
|
12265
|
+
main: {
|
12266
|
+
type: 'procedure',
|
12267
|
+
description:
|
12268
|
+
'Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error',
|
12269
|
+
input: {
|
12270
|
+
encoding: 'application/json',
|
12271
|
+
schema: {
|
12272
|
+
type: 'object',
|
12273
|
+
required: ['name', 'values'],
|
12274
|
+
properties: {
|
12275
|
+
name: {
|
12276
|
+
type: 'string',
|
12277
|
+
description: 'Name of the set to delete values from',
|
12278
|
+
},
|
12279
|
+
values: {
|
12280
|
+
type: 'array',
|
12281
|
+
minLength: 1,
|
12282
|
+
items: {
|
12283
|
+
type: 'string',
|
12284
|
+
},
|
12285
|
+
description: 'Array of string values to delete from the set',
|
12286
|
+
},
|
12287
|
+
},
|
12288
|
+
},
|
12289
|
+
},
|
12290
|
+
errors: [
|
12291
|
+
{
|
12292
|
+
name: 'SetNotFound',
|
12293
|
+
description: 'set with the given name does not exist',
|
12294
|
+
},
|
12295
|
+
],
|
12296
|
+
},
|
12297
|
+
},
|
12298
|
+
},
|
12299
|
+
ToolsOzoneSetGetValues: {
|
12300
|
+
lexicon: 1,
|
12301
|
+
id: 'tools.ozone.set.getValues',
|
12302
|
+
defs: {
|
12303
|
+
main: {
|
12304
|
+
type: 'query',
|
12305
|
+
description: 'Get a specific set and its values',
|
12306
|
+
parameters: {
|
12307
|
+
type: 'params',
|
12308
|
+
required: ['name'],
|
12309
|
+
properties: {
|
12310
|
+
name: {
|
12311
|
+
type: 'string',
|
12312
|
+
},
|
12313
|
+
limit: {
|
12314
|
+
type: 'integer',
|
12315
|
+
minimum: 1,
|
12316
|
+
maximum: 1000,
|
12317
|
+
default: 100,
|
12318
|
+
},
|
12319
|
+
cursor: {
|
12320
|
+
type: 'string',
|
12321
|
+
},
|
12322
|
+
},
|
12323
|
+
},
|
12324
|
+
output: {
|
12325
|
+
encoding: 'application/json',
|
12326
|
+
schema: {
|
12327
|
+
type: 'object',
|
12328
|
+
required: ['set', 'values'],
|
12329
|
+
properties: {
|
12330
|
+
set: {
|
12331
|
+
type: 'ref',
|
12332
|
+
ref: 'lex:tools.ozone.set.defs#setView',
|
12333
|
+
},
|
12334
|
+
values: {
|
12335
|
+
type: 'array',
|
12336
|
+
items: {
|
12337
|
+
type: 'string',
|
12338
|
+
},
|
12339
|
+
},
|
12340
|
+
cursor: {
|
12341
|
+
type: 'string',
|
12342
|
+
},
|
12343
|
+
},
|
12344
|
+
},
|
12345
|
+
},
|
12346
|
+
errors: [
|
12347
|
+
{
|
12348
|
+
name: 'SetNotFound',
|
12349
|
+
description: 'set with the given name does not exist',
|
12350
|
+
},
|
12351
|
+
],
|
12352
|
+
},
|
12353
|
+
},
|
12354
|
+
},
|
12355
|
+
ToolsOzoneSetQuerySets: {
|
12356
|
+
lexicon: 1,
|
12357
|
+
id: 'tools.ozone.set.querySets',
|
12358
|
+
defs: {
|
12359
|
+
main: {
|
12360
|
+
type: 'query',
|
12361
|
+
description: 'Query available sets',
|
12362
|
+
parameters: {
|
12363
|
+
type: 'params',
|
12364
|
+
properties: {
|
12365
|
+
limit: {
|
12366
|
+
type: 'integer',
|
12367
|
+
minimum: 1,
|
12368
|
+
maximum: 100,
|
12369
|
+
default: 50,
|
12370
|
+
},
|
12371
|
+
cursor: {
|
12372
|
+
type: 'string',
|
12373
|
+
},
|
12374
|
+
namePrefix: {
|
12375
|
+
type: 'string',
|
12376
|
+
},
|
12377
|
+
sortBy: {
|
12378
|
+
type: 'string',
|
12379
|
+
enum: ['name', 'createdAt', 'updatedAt'],
|
12380
|
+
default: 'name',
|
12381
|
+
},
|
12382
|
+
sortDirection: {
|
12383
|
+
type: 'string',
|
12384
|
+
default: 'asc',
|
12385
|
+
enum: ['asc', 'desc'],
|
12386
|
+
description: 'Defaults to ascending order of name field.',
|
12387
|
+
},
|
12388
|
+
},
|
12389
|
+
},
|
12390
|
+
output: {
|
12391
|
+
encoding: 'application/json',
|
12392
|
+
schema: {
|
12393
|
+
type: 'object',
|
12394
|
+
required: ['sets'],
|
12395
|
+
properties: {
|
12396
|
+
sets: {
|
12397
|
+
type: 'array',
|
12398
|
+
items: {
|
12399
|
+
type: 'ref',
|
12400
|
+
ref: 'lex:tools.ozone.set.defs#setView',
|
12401
|
+
},
|
12402
|
+
},
|
12403
|
+
cursor: {
|
12404
|
+
type: 'string',
|
12405
|
+
},
|
12406
|
+
},
|
12407
|
+
},
|
12408
|
+
},
|
12409
|
+
},
|
12410
|
+
},
|
12411
|
+
},
|
12412
|
+
ToolsOzoneSetUpsertSet: {
|
12413
|
+
lexicon: 1,
|
12414
|
+
id: 'tools.ozone.set.upsertSet',
|
12415
|
+
defs: {
|
12416
|
+
main: {
|
12417
|
+
type: 'procedure',
|
12418
|
+
description: 'Create or update set metadata',
|
12419
|
+
input: {
|
12420
|
+
encoding: 'application/json',
|
12421
|
+
schema: {
|
12422
|
+
type: 'ref',
|
12423
|
+
ref: 'lex:tools.ozone.set.defs#set',
|
12424
|
+
},
|
12425
|
+
},
|
12426
|
+
output: {
|
12427
|
+
encoding: 'application/json',
|
12428
|
+
schema: {
|
12429
|
+
type: 'ref',
|
12430
|
+
ref: 'lex:tools.ozone.set.defs#setView',
|
12431
|
+
},
|
12432
|
+
},
|
12433
|
+
},
|
12434
|
+
},
|
12435
|
+
},
|
12142
12436
|
ToolsOzoneSignatureDefs: {
|
12143
12437
|
lexicon: 1,
|
12144
12438
|
id: 'tools.ozone.signature.defs',
|
@@ -12764,6 +13058,13 @@ export const ids = {
|
|
12764
13058
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
12765
13059
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
12766
13060
|
ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
|
13061
|
+
ToolsOzoneSetAddValues: 'tools.ozone.set.addValues',
|
13062
|
+
ToolsOzoneSetDefs: 'tools.ozone.set.defs',
|
13063
|
+
ToolsOzoneSetDeleteSet: 'tools.ozone.set.deleteSet',
|
13064
|
+
ToolsOzoneSetDeleteValues: 'tools.ozone.set.deleteValues',
|
13065
|
+
ToolsOzoneSetGetValues: 'tools.ozone.set.getValues',
|
13066
|
+
ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets',
|
13067
|
+
ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet',
|
12767
13068
|
ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs',
|
12768
13069
|
ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation',
|
12769
13070
|
ToolsOzoneSignatureFindRelatedAccounts:
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export interface InputSchema {
|
14
|
+
/** Name of the set to add values to */
|
15
|
+
name: string
|
16
|
+
/** Array of string values to add to the set */
|
17
|
+
values: string[]
|
18
|
+
[k: string]: unknown
|
19
|
+
}
|
20
|
+
|
21
|
+
export interface HandlerInput {
|
22
|
+
encoding: 'application/json'
|
23
|
+
body: InputSchema
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface HandlerError {
|
27
|
+
status: number
|
28
|
+
message?: string
|
29
|
+
}
|
30
|
+
|
31
|
+
export type HandlerOutput = HandlerError | void
|
32
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
33
|
+
auth: HA
|
34
|
+
params: QueryParams
|
35
|
+
input: HandlerInput
|
36
|
+
req: express.Request
|
37
|
+
res: express.Response
|
38
|
+
}
|
39
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
40
|
+
ctx: HandlerReqCtx<HA>,
|
41
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { lexicons } from '../../../../lexicons'
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
7
|
+
import { CID } from 'multiformats/cid'
|
8
|
+
|
9
|
+
export interface Set {
|
10
|
+
name: string
|
11
|
+
description?: string
|
12
|
+
[k: string]: unknown
|
13
|
+
}
|
14
|
+
|
15
|
+
export function isSet(v: unknown): v is Set {
|
16
|
+
return (
|
17
|
+
isObj(v) && hasProp(v, '$type') && v.$type === 'tools.ozone.set.defs#set'
|
18
|
+
)
|
19
|
+
}
|
20
|
+
|
21
|
+
export function validateSet(v: unknown): ValidationResult {
|
22
|
+
return lexicons.validate('tools.ozone.set.defs#set', v)
|
23
|
+
}
|
24
|
+
|
25
|
+
export interface SetView {
|
26
|
+
name: string
|
27
|
+
description?: string
|
28
|
+
setSize: number
|
29
|
+
createdAt: string
|
30
|
+
updatedAt: string
|
31
|
+
[k: string]: unknown
|
32
|
+
}
|
33
|
+
|
34
|
+
export function isSetView(v: unknown): v is SetView {
|
35
|
+
return (
|
36
|
+
isObj(v) &&
|
37
|
+
hasProp(v, '$type') &&
|
38
|
+
v.$type === 'tools.ozone.set.defs#setView'
|
39
|
+
)
|
40
|
+
}
|
41
|
+
|
42
|
+
export function validateSetView(v: unknown): ValidationResult {
|
43
|
+
return lexicons.validate('tools.ozone.set.defs#setView', v)
|
44
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export interface InputSchema {
|
14
|
+
/** Name of the set to delete */
|
15
|
+
name: string
|
16
|
+
[k: string]: unknown
|
17
|
+
}
|
18
|
+
|
19
|
+
export interface OutputSchema {
|
20
|
+
[k: string]: unknown
|
21
|
+
}
|
22
|
+
|
23
|
+
export interface HandlerInput {
|
24
|
+
encoding: 'application/json'
|
25
|
+
body: InputSchema
|
26
|
+
}
|
27
|
+
|
28
|
+
export interface HandlerSuccess {
|
29
|
+
encoding: 'application/json'
|
30
|
+
body: OutputSchema
|
31
|
+
headers?: { [key: string]: string }
|
32
|
+
}
|
33
|
+
|
34
|
+
export interface HandlerError {
|
35
|
+
status: number
|
36
|
+
message?: string
|
37
|
+
error?: 'SetNotFound'
|
38
|
+
}
|
39
|
+
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
41
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
42
|
+
auth: HA
|
43
|
+
params: QueryParams
|
44
|
+
input: HandlerInput
|
45
|
+
req: express.Request
|
46
|
+
res: express.Response
|
47
|
+
}
|
48
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
49
|
+
ctx: HandlerReqCtx<HA>,
|
50
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export interface InputSchema {
|
14
|
+
/** Name of the set to delete values from */
|
15
|
+
name: string
|
16
|
+
/** Array of string values to delete from the set */
|
17
|
+
values: string[]
|
18
|
+
[k: string]: unknown
|
19
|
+
}
|
20
|
+
|
21
|
+
export interface HandlerInput {
|
22
|
+
encoding: 'application/json'
|
23
|
+
body: InputSchema
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface HandlerError {
|
27
|
+
status: number
|
28
|
+
message?: string
|
29
|
+
error?: 'SetNotFound'
|
30
|
+
}
|
31
|
+
|
32
|
+
export type HandlerOutput = HandlerError | void
|
33
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
34
|
+
auth: HA
|
35
|
+
params: QueryParams
|
36
|
+
input: HandlerInput
|
37
|
+
req: express.Request
|
38
|
+
res: express.Response
|
39
|
+
}
|
40
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
41
|
+
ctx: HandlerReqCtx<HA>,
|
42
|
+
) => Promise<HandlerOutput> | HandlerOutput
|