@clioplaylists/clio 0.1.5 → 0.1.7
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/dist/.env +7 -0
- package/dist/api/com/clioplaylists/alpha/actor/getProfile.d.ts +0 -0
- package/dist/api/com/clioplaylists/alpha/actor/getProfile.js +37 -0
- package/dist/api/com/clioplaylists/alpha/feed/getSongs.d.ts +0 -0
- package/dist/api/com/clioplaylists/alpha/feed/getSongs.js +37 -0
- package/dist/api/health.d.ts +3 -0
- package/dist/api/health.js +25 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +6 -0
- package/dist/api/util.d.ts +9 -0
- package/dist/api/util.js +13 -0
- package/dist/auth-verifier.d.ts +92 -0
- package/dist/auth-verifier.js +365 -0
- package/dist/client.d.ts +9 -0
- package/dist/client.js +33 -0
- package/dist/config.d.ts +21 -0
- package/dist/config.js +49 -0
- package/dist/context.d.ts +11 -0
- package/dist/context.js +12 -0
- package/dist/dataplane/client.d.ts +27 -0
- package/dist/dataplane/client.js +120 -0
- package/dist/dataplane/index.d.ts +2 -0
- package/dist/dataplane/index.js +2 -0
- package/dist/dataplane/server/background.d.ts +13 -0
- package/dist/dataplane/server/background.js +30 -0
- package/dist/dataplane/server/db/database-schema.d.ts +13 -0
- package/dist/dataplane/server/db/database-schema.js +1 -0
- package/dist/dataplane/server/db/db.d.ts +32 -0
- package/dist/dataplane/server/db/db.js +152 -0
- package/dist/dataplane/server/db/index.d.ts +1 -0
- package/dist/dataplane/server/db/index.js +1 -0
- package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.d.ts +3 -0
- package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.js +113 -0
- package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.d.ts +3 -0
- package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.js +11 -0
- package/dist/dataplane/server/db/migrations/index.d.ts +2 -0
- package/dist/dataplane/server/db/migrations/index.js +5 -0
- package/dist/dataplane/server/db/migrations/provider.d.ts +11 -0
- package/dist/dataplane/server/db/migrations/provider.js +19 -0
- package/dist/dataplane/server/db/pagination.d.ts +86 -0
- package/dist/dataplane/server/db/pagination.js +128 -0
- package/dist/dataplane/server/db/tables/actor-sync.d.ts +9 -0
- package/dist/dataplane/server/db/tables/actor-sync.js +1 -0
- package/dist/dataplane/server/db/tables/actor.d.ts +11 -0
- package/dist/dataplane/server/db/tables/actor.js +1 -0
- package/dist/dataplane/server/db/tables/artist-list-item.d.ts +11 -0
- package/dist/dataplane/server/db/tables/artist-list-item.js +1 -0
- package/dist/dataplane/server/db/tables/artist.d.ts +10 -0
- package/dist/dataplane/server/db/tables/artist.js +1 -0
- package/dist/dataplane/server/db/tables/playlist-idea.d.ts +14 -0
- package/dist/dataplane/server/db/tables/playlist-idea.js +1 -0
- package/dist/dataplane/server/db/tables/playlist-item.d.ts +11 -0
- package/dist/dataplane/server/db/tables/playlist-item.js +1 -0
- package/dist/dataplane/server/db/tables/playlist.d.ts +10 -0
- package/dist/dataplane/server/db/tables/playlist.js +1 -0
- package/dist/dataplane/server/db/tables/profile.d.ts +15 -0
- package/dist/dataplane/server/db/tables/profile.js +1 -0
- package/dist/dataplane/server/db/tables/record.d.ts +12 -0
- package/dist/dataplane/server/db/tables/record.js +1 -0
- package/dist/dataplane/server/db/tables/song.d.ts +12 -0
- package/dist/dataplane/server/db/tables/song.js +1 -0
- package/dist/dataplane/server/db/types.d.ts +9 -0
- package/dist/dataplane/server/db/types.js +1 -0
- package/dist/dataplane/server/db/util.d.ts +20 -0
- package/dist/dataplane/server/db/util.js +40 -0
- package/dist/dataplane/server/index.d.ts +11 -0
- package/dist/dataplane/server/index.js +36 -0
- package/dist/dataplane/server/indexing/index.d.ts +32 -0
- package/dist/dataplane/server/indexing/index.js +271 -0
- package/dist/dataplane/server/indexing/plugins/playlist-idea.d.ts +14 -0
- package/dist/dataplane/server/indexing/plugins/playlist-idea.js +126 -0
- package/dist/dataplane/server/indexing/plugins/profile.d.ts +8 -0
- package/dist/dataplane/server/indexing/plugins/profile.js +44 -0
- package/dist/dataplane/server/indexing/processor.d.ts +22 -0
- package/dist/dataplane/server/indexing/processor.js +72 -0
- package/dist/dataplane/server/routes/identity.d.ts +6 -0
- package/dist/dataplane/server/routes/identity.js +54 -0
- package/dist/dataplane/server/routes/index.d.ts +5 -0
- package/dist/dataplane/server/routes/index.js +14 -0
- package/dist/dataplane/server/routes/profile.d.ts +5 -0
- package/dist/dataplane/server/routes/profile.js +59 -0
- package/dist/dataplane/server/routes/records.d.ts +11 -0
- package/dist/dataplane/server/routes/records.js +51 -0
- package/dist/dataplane/server/routes/sync.d.ts +5 -0
- package/dist/dataplane/server/routes/sync.js +12 -0
- package/dist/dataplane/server/subscription.d.ts +25 -0
- package/dist/dataplane/server/subscription.js +86 -0
- package/dist/error.d.ts +2 -0
- package/dist/error.js +10 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +55 -0
- package/dist/lexicons/index.d.ts +278 -0
- package/dist/lexicons/index.js +463 -0
- package/dist/lexicons/lexicons.d.ts +8466 -0
- package/dist/lexicons/lexicons.js +4548 -0
- package/dist/lexicons/types/com/atproto/admin/defs.d.ts +50 -0
- package/dist/lexicons/types/com/atproto/admin/defs.js +42 -0
- package/dist/lexicons/types/com/atproto/admin/deleteAccount.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/admin/deleteAccount.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/getAccountInfo.d.ts +33 -0
- package/dist/lexicons/types/com/atproto/admin/getAccountInfo.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.d.ts +44 -0
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/sendEmail.d.ts +45 -0
- package/dist/lexicons/types/com/atproto/admin/sendEmail.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.js +1 -0
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.d.ts +51 -0
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/defs.d.ts +14 -0
- package/dist/lexicons/types/com/atproto/identity/defs.js +10 -0
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/identity/refreshIdentity.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/resolveDid.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/identity/resolveDid.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/resolveHandle.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/identity/resolveHandle.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/resolveIdentity.d.ts +35 -0
- package/dist/lexicons/types/com/atproto/identity/resolveIdentity.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.d.ts +46 -0
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.js +1 -0
- package/dist/lexicons/types/com/atproto/identity/updateHandle.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/identity/updateHandle.js +1 -0
- package/dist/lexicons/types/com/atproto/label/defs.d.ts +73 -0
- package/dist/lexicons/types/com/atproto/label/defs.js +42 -0
- package/dist/lexicons/types/com/atproto/label/queryLabels.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/label/queryLabels.js +1 -0
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.js +18 -0
- package/dist/lexicons/types/com/atproto/lexicon/schema.d.ts +11 -0
- package/dist/lexicons/types/com/atproto/lexicon/schema.js +11 -0
- package/dist/lexicons/types/com/atproto/moderation/createReport.d.ts +57 -0
- package/dist/lexicons/types/com/atproto/moderation/createReport.js +1 -0
- package/dist/lexicons/types/com/atproto/moderation/defs.d.ts +20 -0
- package/dist/lexicons/types/com/atproto/moderation/defs.js +17 -0
- package/dist/lexicons/types/com/atproto/repo/applyWrites.d.ts +98 -0
- package/dist/lexicons/types/com/atproto/repo/applyWrites.js +50 -0
- package/dist/lexicons/types/com/atproto/repo/createRecord.d.ts +56 -0
- package/dist/lexicons/types/com/atproto/repo/createRecord.js +1 -0
- package/dist/lexicons/types/com/atproto/repo/defs.d.ts +11 -0
- package/dist/lexicons/types/com/atproto/repo/defs.js +10 -0
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.d.ts +51 -0
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.js +1 -0
- package/dist/lexicons/types/com/atproto/repo/describeRepo.d.ts +43 -0
- package/dist/lexicons/types/com/atproto/repo/describeRepo.js +1 -0
- package/dist/lexicons/types/com/atproto/repo/getRecord.d.ts +45 -0
- package/dist/lexicons/types/com/atproto/repo/getRecord.js +1 -0
- package/dist/lexicons/types/com/atproto/repo/importRepo.d.ts +27 -0
- package/dist/lexicons/types/com/atproto/repo/importRepo.js +1 -0
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.d.ts +45 -0
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.js +10 -0
- package/dist/lexicons/types/com/atproto/repo/listRecords.d.ts +53 -0
- package/dist/lexicons/types/com/atproto/repo/listRecords.js +10 -0
- package/dist/lexicons/types/com/atproto/repo/putRecord.d.ts +58 -0
- package/dist/lexicons/types/com/atproto/repo/putRecord.js +1 -0
- package/dist/lexicons/types/com/atproto/repo/strongRef.d.ts +11 -0
- package/dist/lexicons/types/com/atproto/repo/strongRef.js +11 -0
- package/dist/lexicons/types/com/atproto/repo/uploadBlob.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/repo/uploadBlob.js +1 -0
- package/dist/lexicons/types/com/atproto/server/activateAccount.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/activateAccount.js +1 -0
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.js +1 -0
- package/dist/lexicons/types/com/atproto/server/confirmEmail.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/server/confirmEmail.js +1 -0
- package/dist/lexicons/types/com/atproto/server/createAccount.d.ts +61 -0
- package/dist/lexicons/types/com/atproto/server/createAccount.js +1 -0
- package/dist/lexicons/types/com/atproto/server/createAppPassword.d.ts +51 -0
- package/dist/lexicons/types/com/atproto/server/createAppPassword.js +10 -0
- package/dist/lexicons/types/com/atproto/server/createInviteCode.d.ts +41 -0
- package/dist/lexicons/types/com/atproto/server/createInviteCode.js +1 -0
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.d.ts +50 -0
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.js +10 -0
- package/dist/lexicons/types/com/atproto/server/createSession.d.ts +56 -0
- package/dist/lexicons/types/com/atproto/server/createSession.js +1 -0
- package/dist/lexicons/types/com/atproto/server/deactivateAccount.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/server/deactivateAccount.js +1 -0
- package/dist/lexicons/types/com/atproto/server/defs.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/defs.js +18 -0
- package/dist/lexicons/types/com/atproto/server/deleteAccount.d.ts +32 -0
- package/dist/lexicons/types/com/atproto/server/deleteAccount.js +1 -0
- package/dist/lexicons/types/com/atproto/server/deleteSession.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/deleteSession.js +1 -0
- package/dist/lexicons/types/com/atproto/server/describeServer.d.ts +56 -0
- package/dist/lexicons/types/com/atproto/server/describeServer.js +18 -0
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.js +1 -0
- package/dist/lexicons/types/com/atproto/server/getServiceAuth.d.ts +41 -0
- package/dist/lexicons/types/com/atproto/server/getServiceAuth.js +1 -0
- package/dist/lexicons/types/com/atproto/server/getSession.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/getSession.js +1 -0
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.d.ts +44 -0
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.js +10 -0
- package/dist/lexicons/types/com/atproto/server/refreshSession.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/refreshSession.js +1 -0
- package/dist/lexicons/types/com/atproto/server/requestAccountDelete.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/requestAccountDelete.js +1 -0
- package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.js +1 -0
- package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.d.ts +34 -0
- package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.js +1 -0
- package/dist/lexicons/types/com/atproto/server/requestPasswordReset.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/server/requestPasswordReset.js +1 -0
- package/dist/lexicons/types/com/atproto/server/reserveSigningKey.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/reserveSigningKey.js +1 -0
- package/dist/lexicons/types/com/atproto/server/resetPassword.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/server/resetPassword.js +1 -0
- package/dist/lexicons/types/com/atproto/server/revokeAppPassword.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/server/revokeAppPassword.js +1 -0
- package/dist/lexicons/types/com/atproto/server/updateEmail.d.ts +33 -0
- package/dist/lexicons/types/com/atproto/server/updateEmail.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getBlob.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/sync/getBlob.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getBlocks.d.ts +35 -0
- package/dist/lexicons/types/com/atproto/sync/getBlocks.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getCheckout.d.ts +33 -0
- package/dist/lexicons/types/com/atproto/sync/getCheckout.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getHead.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/sync/getHead.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getRecord.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/sync/getRecord.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getRepo.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/sync/getRepo.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/listBlobs.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/sync/listBlobs.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/listRepos.d.ts +50 -0
- package/dist/lexicons/types/com/atproto/sync/listRepos.js +10 -0
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.d.ts +46 -0
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.js +10 -0
- package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/requestCrawl.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/sync/requestCrawl.js +1 -0
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.d.ts +111 -0
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.js +50 -0
- package/dist/lexicons/types/com/atproto/temp/addReservedHandle.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/temp/addReservedHandle.js +1 -0
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.js +1 -0
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.js +1 -0
- package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.js +1 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.d.ts +19 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.js +11 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.d.ts +32 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.js +18 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.d.ts +37 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.js +1 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.d.ts +32 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.js +27 -0
- package/dist/lexicons/util.d.ts +5 -0
- package/dist/lexicons/util.js +9 -0
- package/dist/logger.d.ts +6 -0
- package/dist/logger.js +20 -0
- package/dist/rpc/clio_connect.d.ts +103 -0
- package/dist/rpc/clio_connect.js +107 -0
- package/dist/rpc/clio_pb.d.ts +457 -0
- package/dist/rpc/clio_pb.js +811 -0
- package/dist/start.d.ts +1 -0
- package/dist/util/retry.d.ts +2 -0
- package/dist/util/retry.js +13 -0
- package/dist/util/uris.d.ts +1 -0
- package/dist/util/uris.js +4 -0
- package/dist/util.d.ts +23 -0
- package/dist/util.js +76 -0
- package/package.json +7 -7
- /package/{start.js → dist/start.js} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
6
|
+
import express from 'express';
|
|
7
|
+
import stream from 'stream';
|
|
8
|
+
export interface QueryParams {
|
|
9
|
+
}
|
|
10
|
+
export type InputSchema = string | Uint8Array | Blob;
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
blob: BlobRef;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface HandlerInput {
|
|
16
|
+
encoding: '*/*';
|
|
17
|
+
body: stream.Readable;
|
|
18
|
+
}
|
|
19
|
+
export interface HandlerSuccess {
|
|
20
|
+
encoding: 'application/json';
|
|
21
|
+
body: OutputSchema;
|
|
22
|
+
headers?: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface HandlerError {
|
|
27
|
+
status: number;
|
|
28
|
+
message?: string;
|
|
29
|
+
}
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
|
+
auth: HA;
|
|
33
|
+
params: QueryParams;
|
|
34
|
+
input: HandlerInput;
|
|
35
|
+
req: express.Request;
|
|
36
|
+
res: express.Response;
|
|
37
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
38
|
+
};
|
|
39
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export type HandlerInput = undefined;
|
|
10
|
+
export interface HandlerError {
|
|
11
|
+
status: number;
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
export type HandlerOutput = HandlerError | void;
|
|
15
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
16
|
+
auth: HA;
|
|
17
|
+
params: QueryParams;
|
|
18
|
+
input: HandlerInput;
|
|
19
|
+
req: express.Request;
|
|
20
|
+
res: express.Response;
|
|
21
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
activated: boolean;
|
|
11
|
+
validDid: boolean;
|
|
12
|
+
repoCommit: string;
|
|
13
|
+
repoRev: string;
|
|
14
|
+
repoBlocks: number;
|
|
15
|
+
indexedRecords: number;
|
|
16
|
+
privateStateValues: number;
|
|
17
|
+
expectedBlobs: number;
|
|
18
|
+
importedBlobs: number;
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export type HandlerInput = undefined;
|
|
22
|
+
export interface HandlerSuccess {
|
|
23
|
+
encoding: 'application/json';
|
|
24
|
+
body: OutputSchema;
|
|
25
|
+
headers?: {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface HandlerError {
|
|
30
|
+
status: number;
|
|
31
|
+
message?: string;
|
|
32
|
+
}
|
|
33
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
34
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
35
|
+
auth: HA;
|
|
36
|
+
params: QueryParams;
|
|
37
|
+
input: HandlerInput;
|
|
38
|
+
req: express.Request;
|
|
39
|
+
res: express.Response;
|
|
40
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
41
|
+
};
|
|
42
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
email: string;
|
|
10
|
+
token: string;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface HandlerInput {
|
|
14
|
+
encoding: 'application/json';
|
|
15
|
+
body: InputSchema;
|
|
16
|
+
}
|
|
17
|
+
export interface HandlerError {
|
|
18
|
+
status: number;
|
|
19
|
+
message?: string;
|
|
20
|
+
error?: 'AccountNotFound' | 'ExpiredToken' | 'InvalidToken' | 'InvalidEmail';
|
|
21
|
+
}
|
|
22
|
+
export type HandlerOutput = HandlerError | void;
|
|
23
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
24
|
+
auth: HA;
|
|
25
|
+
params: QueryParams;
|
|
26
|
+
input: HandlerInput;
|
|
27
|
+
req: express.Request;
|
|
28
|
+
res: express.Response;
|
|
29
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
30
|
+
};
|
|
31
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
email?: string;
|
|
10
|
+
/** Requested handle for the account. */
|
|
11
|
+
handle: string;
|
|
12
|
+
/** Pre-existing atproto DID, being imported to a new account. */
|
|
13
|
+
did?: string;
|
|
14
|
+
inviteCode?: string;
|
|
15
|
+
verificationCode?: string;
|
|
16
|
+
verificationPhone?: string;
|
|
17
|
+
/** Initial account password. May need to meet instance-specific password strength requirements. */
|
|
18
|
+
password?: string;
|
|
19
|
+
/** DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. */
|
|
20
|
+
recoveryKey?: string;
|
|
21
|
+
/** A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. */
|
|
22
|
+
plcOp?: {};
|
|
23
|
+
[k: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
/** Account login session returned on successful account creation. */
|
|
26
|
+
export interface OutputSchema {
|
|
27
|
+
accessJwt: string;
|
|
28
|
+
refreshJwt: string;
|
|
29
|
+
handle: string;
|
|
30
|
+
/** The DID of the new account. */
|
|
31
|
+
did: string;
|
|
32
|
+
/** Complete DID document. */
|
|
33
|
+
didDoc?: {};
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export interface HandlerInput {
|
|
37
|
+
encoding: 'application/json';
|
|
38
|
+
body: InputSchema;
|
|
39
|
+
}
|
|
40
|
+
export interface HandlerSuccess {
|
|
41
|
+
encoding: 'application/json';
|
|
42
|
+
body: OutputSchema;
|
|
43
|
+
headers?: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface HandlerError {
|
|
48
|
+
status: number;
|
|
49
|
+
message?: string;
|
|
50
|
+
error?: 'InvalidHandle' | 'InvalidPassword' | 'InvalidInviteCode' | 'HandleNotAvailable' | 'UnsupportedDomain' | 'UnresolvableDid' | 'IncompatibleDidDoc';
|
|
51
|
+
}
|
|
52
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
53
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
54
|
+
auth: HA;
|
|
55
|
+
params: QueryParams;
|
|
56
|
+
input: HandlerInput;
|
|
57
|
+
req: express.Request;
|
|
58
|
+
res: express.Response;
|
|
59
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
60
|
+
};
|
|
61
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
6
|
+
import express from 'express';
|
|
7
|
+
export interface QueryParams {
|
|
8
|
+
}
|
|
9
|
+
export interface InputSchema {
|
|
10
|
+
/** A short name for the App Password, to help distinguish them. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. */
|
|
13
|
+
privileged?: boolean;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export type OutputSchema = AppPassword;
|
|
17
|
+
export interface HandlerInput {
|
|
18
|
+
encoding: 'application/json';
|
|
19
|
+
body: InputSchema;
|
|
20
|
+
}
|
|
21
|
+
export interface HandlerSuccess {
|
|
22
|
+
encoding: 'application/json';
|
|
23
|
+
body: OutputSchema;
|
|
24
|
+
headers?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface HandlerError {
|
|
29
|
+
status: number;
|
|
30
|
+
message?: string;
|
|
31
|
+
error?: 'AccountTakedown';
|
|
32
|
+
}
|
|
33
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
34
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
35
|
+
auth: HA;
|
|
36
|
+
params: QueryParams;
|
|
37
|
+
input: HandlerInput;
|
|
38
|
+
req: express.Request;
|
|
39
|
+
res: express.Response;
|
|
40
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
41
|
+
};
|
|
42
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
43
|
+
export interface AppPassword {
|
|
44
|
+
name: string;
|
|
45
|
+
password: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
privileged?: boolean;
|
|
48
|
+
[k: string]: unknown;
|
|
49
|
+
}
|
|
50
|
+
export declare function isAppPassword(v: unknown): v is AppPassword;
|
|
51
|
+
export declare function validateAppPassword(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isAppPassword(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
6
|
+
v.$type === 'com.atproto.server.createAppPassword#appPassword');
|
|
7
|
+
}
|
|
8
|
+
export function validateAppPassword(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.createAppPassword#appPassword', v);
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
useCount: number;
|
|
10
|
+
forAccount?: string;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
code: string;
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface HandlerInput {
|
|
18
|
+
encoding: 'application/json';
|
|
19
|
+
body: InputSchema;
|
|
20
|
+
}
|
|
21
|
+
export interface HandlerSuccess {
|
|
22
|
+
encoding: 'application/json';
|
|
23
|
+
body: OutputSchema;
|
|
24
|
+
headers?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface HandlerError {
|
|
29
|
+
status: number;
|
|
30
|
+
message?: string;
|
|
31
|
+
}
|
|
32
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
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
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
6
|
+
import express from 'express';
|
|
7
|
+
export interface QueryParams {
|
|
8
|
+
}
|
|
9
|
+
export interface InputSchema {
|
|
10
|
+
codeCount: number;
|
|
11
|
+
useCount: number;
|
|
12
|
+
forAccounts?: string[];
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface OutputSchema {
|
|
16
|
+
codes: AccountCodes[];
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface HandlerInput {
|
|
20
|
+
encoding: 'application/json';
|
|
21
|
+
body: InputSchema;
|
|
22
|
+
}
|
|
23
|
+
export interface HandlerSuccess {
|
|
24
|
+
encoding: 'application/json';
|
|
25
|
+
body: OutputSchema;
|
|
26
|
+
headers?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface HandlerError {
|
|
31
|
+
status: number;
|
|
32
|
+
message?: string;
|
|
33
|
+
}
|
|
34
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
35
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
36
|
+
auth: HA;
|
|
37
|
+
params: QueryParams;
|
|
38
|
+
input: HandlerInput;
|
|
39
|
+
req: express.Request;
|
|
40
|
+
res: express.Response;
|
|
41
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
42
|
+
};
|
|
43
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
44
|
+
export interface AccountCodes {
|
|
45
|
+
account: string;
|
|
46
|
+
codes: string[];
|
|
47
|
+
[k: string]: unknown;
|
|
48
|
+
}
|
|
49
|
+
export declare function isAccountCodes(v: unknown): v is AccountCodes;
|
|
50
|
+
export declare function validateAccountCodes(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isAccountCodes(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
6
|
+
v.$type === 'com.atproto.server.createInviteCodes#accountCodes');
|
|
7
|
+
}
|
|
8
|
+
export function validateAccountCodes(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.createInviteCodes#accountCodes', v);
|
|
10
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
/** Handle or other identifier supported by the server for the authenticating user. */
|
|
10
|
+
identifier: string;
|
|
11
|
+
password: string;
|
|
12
|
+
authFactorToken?: string;
|
|
13
|
+
/** When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned */
|
|
14
|
+
allowTakendown?: boolean;
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface OutputSchema {
|
|
18
|
+
accessJwt: string;
|
|
19
|
+
refreshJwt: string;
|
|
20
|
+
handle: string;
|
|
21
|
+
did: string;
|
|
22
|
+
didDoc?: {};
|
|
23
|
+
email?: string;
|
|
24
|
+
emailConfirmed?: boolean;
|
|
25
|
+
emailAuthFactor?: boolean;
|
|
26
|
+
active?: boolean;
|
|
27
|
+
/** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
|
|
28
|
+
status?: 'takendown' | 'suspended' | 'deactivated' | (string & {});
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
export interface HandlerInput {
|
|
32
|
+
encoding: 'application/json';
|
|
33
|
+
body: InputSchema;
|
|
34
|
+
}
|
|
35
|
+
export interface HandlerSuccess {
|
|
36
|
+
encoding: 'application/json';
|
|
37
|
+
body: OutputSchema;
|
|
38
|
+
headers?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface HandlerError {
|
|
43
|
+
status: number;
|
|
44
|
+
message?: string;
|
|
45
|
+
error?: 'AccountTakedown' | 'AuthFactorTokenRequired';
|
|
46
|
+
}
|
|
47
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
48
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
49
|
+
auth: HA;
|
|
50
|
+
params: QueryParams;
|
|
51
|
+
input: HandlerInput;
|
|
52
|
+
req: express.Request;
|
|
53
|
+
res: express.Response;
|
|
54
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
55
|
+
};
|
|
56
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
/** A recommendation to server as to how long they should hold onto the deactivated account before deleting. */
|
|
10
|
+
deleteAfter?: string;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface HandlerInput {
|
|
14
|
+
encoding: 'application/json';
|
|
15
|
+
body: InputSchema;
|
|
16
|
+
}
|
|
17
|
+
export interface HandlerError {
|
|
18
|
+
status: number;
|
|
19
|
+
message?: string;
|
|
20
|
+
}
|
|
21
|
+
export type HandlerOutput = HandlerError | void;
|
|
22
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
23
|
+
auth: HA;
|
|
24
|
+
params: QueryParams;
|
|
25
|
+
input: HandlerInput;
|
|
26
|
+
req: express.Request;
|
|
27
|
+
res: express.Response;
|
|
28
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
29
|
+
};
|
|
30
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
export interface InviteCode {
|
|
6
|
+
code: string;
|
|
7
|
+
available: number;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
forAccount: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
uses: InviteCodeUse[];
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export declare function isInviteCode(v: unknown): v is InviteCode;
|
|
16
|
+
export declare function validateInviteCode(v: unknown): ValidationResult;
|
|
17
|
+
export interface InviteCodeUse {
|
|
18
|
+
usedBy: string;
|
|
19
|
+
usedAt: string;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function isInviteCodeUse(v: unknown): v is InviteCodeUse;
|
|
23
|
+
export declare function validateInviteCodeUse(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isInviteCode(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
6
|
+
v.$type === 'com.atproto.server.defs#inviteCode');
|
|
7
|
+
}
|
|
8
|
+
export function validateInviteCode(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.defs#inviteCode', v);
|
|
10
|
+
}
|
|
11
|
+
export function isInviteCodeUse(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
14
|
+
v.$type === 'com.atproto.server.defs#inviteCodeUse');
|
|
15
|
+
}
|
|
16
|
+
export function validateInviteCodeUse(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.server.defs#inviteCodeUse', v);
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
did: string;
|
|
10
|
+
password: string;
|
|
11
|
+
token: string;
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface HandlerInput {
|
|
15
|
+
encoding: 'application/json';
|
|
16
|
+
body: InputSchema;
|
|
17
|
+
}
|
|
18
|
+
export interface HandlerError {
|
|
19
|
+
status: number;
|
|
20
|
+
message?: string;
|
|
21
|
+
error?: 'ExpiredToken' | 'InvalidToken';
|
|
22
|
+
}
|
|
23
|
+
export type HandlerOutput = HandlerError | void;
|
|
24
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
25
|
+
auth: HA;
|
|
26
|
+
params: QueryParams;
|
|
27
|
+
input: HandlerInput;
|
|
28
|
+
req: express.Request;
|
|
29
|
+
res: express.Response;
|
|
30
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export type HandlerInput = undefined;
|
|
10
|
+
export interface HandlerError {
|
|
11
|
+
status: number;
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
export type HandlerOutput = HandlerError | void;
|
|
15
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
16
|
+
auth: HA;
|
|
17
|
+
params: QueryParams;
|
|
18
|
+
input: HandlerInput;
|
|
19
|
+
req: express.Request;
|
|
20
|
+
res: express.Response;
|
|
21
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
6
|
+
import express from 'express';
|
|
7
|
+
export interface QueryParams {
|
|
8
|
+
}
|
|
9
|
+
export type InputSchema = undefined;
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
/** If true, an invite code must be supplied to create an account on this instance. */
|
|
12
|
+
inviteCodeRequired?: boolean;
|
|
13
|
+
/** If true, a phone verification token must be supplied to create an account on this instance. */
|
|
14
|
+
phoneVerificationRequired?: boolean;
|
|
15
|
+
/** List of domain suffixes that can be used in account handles. */
|
|
16
|
+
availableUserDomains: string[];
|
|
17
|
+
links?: Links;
|
|
18
|
+
contact?: Contact;
|
|
19
|
+
did: string;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export type HandlerInput = undefined;
|
|
23
|
+
export interface HandlerSuccess {
|
|
24
|
+
encoding: 'application/json';
|
|
25
|
+
body: OutputSchema;
|
|
26
|
+
headers?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface HandlerError {
|
|
31
|
+
status: number;
|
|
32
|
+
message?: string;
|
|
33
|
+
}
|
|
34
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
35
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
36
|
+
auth: HA;
|
|
37
|
+
params: QueryParams;
|
|
38
|
+
input: HandlerInput;
|
|
39
|
+
req: express.Request;
|
|
40
|
+
res: express.Response;
|
|
41
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
42
|
+
};
|
|
43
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
44
|
+
export interface Links {
|
|
45
|
+
privacyPolicy?: string;
|
|
46
|
+
termsOfService?: string;
|
|
47
|
+
[k: string]: unknown;
|
|
48
|
+
}
|
|
49
|
+
export declare function isLinks(v: unknown): v is Links;
|
|
50
|
+
export declare function validateLinks(v: unknown): ValidationResult;
|
|
51
|
+
export interface Contact {
|
|
52
|
+
email?: string;
|
|
53
|
+
[k: string]: unknown;
|
|
54
|
+
}
|
|
55
|
+
export declare function isContact(v: unknown): v is Contact;
|
|
56
|
+
export declare function validateContact(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isLinks(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
6
|
+
v.$type === 'com.atproto.server.describeServer#links');
|
|
7
|
+
}
|
|
8
|
+
export function validateLinks(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.describeServer#links', v);
|
|
10
|
+
}
|
|
11
|
+
export function isContact(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
14
|
+
v.$type === 'com.atproto.server.describeServer#contact');
|
|
15
|
+
}
|
|
16
|
+
export function validateContact(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.server.describeServer#contact', v);
|
|
18
|
+
}
|