@clioplaylists/clio 0.1.1 → 0.1.3
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/package.json +4 -4
- package/dist/.env +0 -7
- package/dist/api/com/clioplaylists/alpha/actor/getProfile.d.ts +0 -0
- package/dist/api/com/clioplaylists/alpha/actor/getProfile.js +0 -37
- package/dist/api/com/clioplaylists/alpha/feed/getSongs.d.ts +0 -0
- package/dist/api/com/clioplaylists/alpha/feed/getSongs.js +0 -37
- package/dist/api/health.d.ts +0 -3
- package/dist/api/health.js +0 -32
- package/dist/api/index.d.ts +0 -4
- package/dist/api/index.js +0 -43
- package/dist/api/util.d.ts +0 -9
- package/dist/api/util.js +0 -17
- package/dist/auth-verifier.d.ts +0 -92
- package/dist/auth-verifier.js +0 -473
- package/dist/client.d.ts +0 -9
- package/dist/client.js +0 -40
- package/dist/config.d.ts +0 -21
- package/dist/config.js +0 -65
- package/dist/context.d.ts +0 -11
- package/dist/context.js +0 -19
- package/dist/dataplane/bsync/index.js +0 -150
- package/dist/dataplane/client.d.ts +0 -27
- package/dist/dataplane/client.js +0 -165
- package/dist/dataplane/index.d.ts +0 -2
- package/dist/dataplane/index.js +0 -18
- package/dist/dataplane/server/background.d.ts +0 -13
- package/dist/dataplane/server/background.js +0 -51
- package/dist/dataplane/server/db/database-schema.d.ts +0 -13
- package/dist/dataplane/server/db/database-schema.js +0 -2
- package/dist/dataplane/server/db/db.d.ts +0 -32
- package/dist/dataplane/server/db/db.js +0 -228
- package/dist/dataplane/server/db/index.d.ts +0 -1
- package/dist/dataplane/server/db/index.js +0 -17
- package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.d.ts +0 -3
- package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.js +0 -117
- package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.d.ts +0 -3
- package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.js +0 -15
- package/dist/dataplane/server/db/migrations/index.d.ts +0 -2
- package/dist/dataplane/server/db/migrations/index.js +0 -41
- package/dist/dataplane/server/db/migrations/provider.d.ts +0 -11
- package/dist/dataplane/server/db/migrations/provider.js +0 -31
- package/dist/dataplane/server/db/pagination.d.ts +0 -86
- package/dist/dataplane/server/db/pagination.js +0 -144
- package/dist/dataplane/server/db/tables/actor-sync.d.ts +0 -9
- package/dist/dataplane/server/db/tables/actor-sync.js +0 -4
- package/dist/dataplane/server/db/tables/actor.d.ts +0 -11
- package/dist/dataplane/server/db/tables/actor.js +0 -4
- package/dist/dataplane/server/db/tables/artist-list-item.d.ts +0 -11
- package/dist/dataplane/server/db/tables/artist-list-item.js +0 -4
- package/dist/dataplane/server/db/tables/artist.d.ts +0 -10
- package/dist/dataplane/server/db/tables/artist.js +0 -4
- package/dist/dataplane/server/db/tables/playlist-idea.d.ts +0 -14
- package/dist/dataplane/server/db/tables/playlist-idea.js +0 -4
- package/dist/dataplane/server/db/tables/playlist-item.d.ts +0 -11
- package/dist/dataplane/server/db/tables/playlist-item.js +0 -4
- package/dist/dataplane/server/db/tables/playlist.d.ts +0 -10
- package/dist/dataplane/server/db/tables/playlist.js +0 -4
- package/dist/dataplane/server/db/tables/profile.d.ts +0 -15
- package/dist/dataplane/server/db/tables/profile.js +0 -4
- package/dist/dataplane/server/db/tables/record.d.ts +0 -12
- package/dist/dataplane/server/db/tables/record.js +0 -4
- package/dist/dataplane/server/db/tables/song.d.ts +0 -12
- package/dist/dataplane/server/db/tables/song.js +0 -4
- package/dist/dataplane/server/db/types.d.ts +0 -9
- package/dist/dataplane/server/db/types.js +0 -2
- package/dist/dataplane/server/db/util.d.ts +0 -20
- package/dist/dataplane/server/db/util.js +0 -48
- package/dist/dataplane/server/index.d.ts +0 -11
- package/dist/dataplane/server/index.js +0 -52
- package/dist/dataplane/server/indexing/index.d.ts +0 -32
- package/dist/dataplane/server/indexing/index.js +0 -321
- package/dist/dataplane/server/indexing/plugins/playlist-idea.d.ts +0 -14
- package/dist/dataplane/server/indexing/plugins/playlist-idea.js +0 -163
- package/dist/dataplane/server/indexing/plugins/profile.d.ts +0 -8
- package/dist/dataplane/server/indexing/plugins/profile.js +0 -81
- package/dist/dataplane/server/indexing/processor.d.ts +0 -22
- package/dist/dataplane/server/indexing/processor.js +0 -90
- package/dist/dataplane/server/routes/blocks.js +0 -95
- package/dist/dataplane/server/routes/feed-gens.js +0 -56
- package/dist/dataplane/server/routes/feeds.js +0 -128
- package/dist/dataplane/server/routes/follows.js +0 -122
- package/dist/dataplane/server/routes/identity.d.ts +0 -6
- package/dist/dataplane/server/routes/identity.js +0 -56
- package/dist/dataplane/server/routes/index.d.ts +0 -5
- package/dist/dataplane/server/routes/index.js +0 -19
- package/dist/dataplane/server/routes/interactions.js +0 -111
- package/dist/dataplane/server/routes/labels.js +0 -73
- package/dist/dataplane/server/routes/likes.js +0 -76
- package/dist/dataplane/server/routes/lists.js +0 -77
- package/dist/dataplane/server/routes/moderation.js +0 -92
- package/dist/dataplane/server/routes/mutes.js +0 -166
- package/dist/dataplane/server/routes/notifs.js +0 -137
- package/dist/dataplane/server/routes/posts.js +0 -19
- package/dist/dataplane/server/routes/profile.d.ts +0 -5
- package/dist/dataplane/server/routes/profile.js +0 -61
- package/dist/dataplane/server/routes/quotes.js +0 -26
- package/dist/dataplane/server/routes/records.d.ts +0 -11
- package/dist/dataplane/server/routes/records.js +0 -88
- package/dist/dataplane/server/routes/relationships.js +0 -157
- package/dist/dataplane/server/routes/reposts.js +0 -59
- package/dist/dataplane/server/routes/search.js +0 -70
- package/dist/dataplane/server/routes/starter-packs.js +0 -24
- package/dist/dataplane/server/routes/suggestions.js +0 -134
- package/dist/dataplane/server/routes/sync.d.ts +0 -5
- package/dist/dataplane/server/routes/sync.js +0 -14
- package/dist/dataplane/server/routes/threads.js +0 -31
- package/dist/dataplane/server/subscription.d.ts +0 -25
- package/dist/dataplane/server/subscription.js +0 -114
- package/dist/dataplane/server/util.js +0 -117
- package/dist/error.d.ts +0 -2
- package/dist/error.js +0 -14
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -115
- package/dist/lexicons/index.d.ts +0 -278
- package/dist/lexicons/index.js +0 -638
- package/dist/lexicons/lexicons.d.ts +0 -8466
- package/dist/lexicons/lexicons.js +0 -4551
- package/dist/lexicons/types/com/atproto/admin/defs.d.ts +0 -50
- package/dist/lexicons/types/com/atproto/admin/defs.js +0 -54
- package/dist/lexicons/types/com/atproto/admin/deleteAccount.d.ts +0 -29
- package/dist/lexicons/types/com/atproto/admin/deleteAccount.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.d.ts +0 -31
- package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.d.ts +0 -30
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.d.ts +0 -31
- package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/getAccountInfo.d.ts +0 -33
- package/dist/lexicons/types/com/atproto/admin/getAccountInfo.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.d.ts +0 -36
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.d.ts +0 -39
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.d.ts +0 -44
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.d.ts +0 -39
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/sendEmail.d.ts +0 -45
- package/dist/lexicons/types/com/atproto/admin/sendEmail.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.d.ts +0 -31
- package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.d.ts +0 -30
- package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.d.ts +0 -30
- package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.js +0 -2
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.d.ts +0 -51
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/defs.d.ts +0 -14
- package/dist/lexicons/types/com/atproto/identity/defs.js +0 -14
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +0 -38
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/refreshIdentity.d.ts +0 -39
- package/dist/lexicons/types/com/atproto/identity/refreshIdentity.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.d.ts +0 -23
- package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/resolveDid.d.ts +0 -38
- package/dist/lexicons/types/com/atproto/identity/resolveDid.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/resolveHandle.d.ts +0 -37
- package/dist/lexicons/types/com/atproto/identity/resolveHandle.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/resolveIdentity.d.ts +0 -35
- package/dist/lexicons/types/com/atproto/identity/resolveIdentity.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.d.ts +0 -46
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.d.ts +0 -29
- package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.js +0 -2
- package/dist/lexicons/types/com/atproto/identity/updateHandle.d.ts +0 -30
- package/dist/lexicons/types/com/atproto/identity/updateHandle.js +0 -2
- package/dist/lexicons/types/com/atproto/label/defs.d.ts +0 -73
- package/dist/lexicons/types/com/atproto/label/defs.js +0 -54
- package/dist/lexicons/types/com/atproto/label/queryLabels.d.ts +0 -42
- package/dist/lexicons/types/com/atproto/label/queryLabels.js +0 -2
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.d.ts +0 -38
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.js +0 -24
- package/dist/lexicons/types/com/atproto/lexicon/schema.d.ts +0 -11
- package/dist/lexicons/types/com/atproto/lexicon/schema.js +0 -15
- package/dist/lexicons/types/com/atproto/moderation/createReport.d.ts +0 -57
- package/dist/lexicons/types/com/atproto/moderation/createReport.js +0 -2
- package/dist/lexicons/types/com/atproto/moderation/defs.d.ts +0 -20
- package/dist/lexicons/types/com/atproto/moderation/defs.js +0 -20
- package/dist/lexicons/types/com/atproto/repo/applyWrites.d.ts +0 -98
- package/dist/lexicons/types/com/atproto/repo/applyWrites.js +0 -64
- package/dist/lexicons/types/com/atproto/repo/createRecord.d.ts +0 -56
- package/dist/lexicons/types/com/atproto/repo/createRecord.js +0 -2
- package/dist/lexicons/types/com/atproto/repo/defs.d.ts +0 -11
- package/dist/lexicons/types/com/atproto/repo/defs.js +0 -14
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.d.ts +0 -51
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.js +0 -2
- package/dist/lexicons/types/com/atproto/repo/describeRepo.d.ts +0 -43
- package/dist/lexicons/types/com/atproto/repo/describeRepo.js +0 -2
- package/dist/lexicons/types/com/atproto/repo/getRecord.d.ts +0 -45
- package/dist/lexicons/types/com/atproto/repo/getRecord.js +0 -2
- package/dist/lexicons/types/com/atproto/repo/importRepo.d.ts +0 -27
- package/dist/lexicons/types/com/atproto/repo/importRepo.js +0 -2
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.d.ts +0 -45
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.js +0 -14
- package/dist/lexicons/types/com/atproto/repo/listRecords.d.ts +0 -53
- package/dist/lexicons/types/com/atproto/repo/listRecords.js +0 -14
- package/dist/lexicons/types/com/atproto/repo/putRecord.d.ts +0 -58
- package/dist/lexicons/types/com/atproto/repo/putRecord.js +0 -2
- package/dist/lexicons/types/com/atproto/repo/strongRef.d.ts +0 -11
- package/dist/lexicons/types/com/atproto/repo/strongRef.js +0 -15
- package/dist/lexicons/types/com/atproto/repo/uploadBlob.d.ts +0 -39
- package/dist/lexicons/types/com/atproto/repo/uploadBlob.js +0 -2
- package/dist/lexicons/types/com/atproto/server/activateAccount.d.ts +0 -23
- package/dist/lexicons/types/com/atproto/server/activateAccount.js +0 -2
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.d.ts +0 -42
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.js +0 -2
- package/dist/lexicons/types/com/atproto/server/confirmEmail.d.ts +0 -31
- package/dist/lexicons/types/com/atproto/server/confirmEmail.js +0 -2
- package/dist/lexicons/types/com/atproto/server/createAccount.d.ts +0 -61
- package/dist/lexicons/types/com/atproto/server/createAccount.js +0 -2
- package/dist/lexicons/types/com/atproto/server/createAppPassword.d.ts +0 -51
- package/dist/lexicons/types/com/atproto/server/createAppPassword.js +0 -14
- package/dist/lexicons/types/com/atproto/server/createInviteCode.d.ts +0 -41
- package/dist/lexicons/types/com/atproto/server/createInviteCode.js +0 -2
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.d.ts +0 -50
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.js +0 -14
- package/dist/lexicons/types/com/atproto/server/createSession.d.ts +0 -56
- package/dist/lexicons/types/com/atproto/server/createSession.js +0 -2
- package/dist/lexicons/types/com/atproto/server/deactivateAccount.d.ts +0 -30
- package/dist/lexicons/types/com/atproto/server/deactivateAccount.js +0 -2
- package/dist/lexicons/types/com/atproto/server/defs.d.ts +0 -23
- package/dist/lexicons/types/com/atproto/server/defs.js +0 -24
- package/dist/lexicons/types/com/atproto/server/deleteAccount.d.ts +0 -32
- package/dist/lexicons/types/com/atproto/server/deleteAccount.js +0 -2
- package/dist/lexicons/types/com/atproto/server/deleteSession.d.ts +0 -23
- package/dist/lexicons/types/com/atproto/server/deleteSession.js +0 -2
- package/dist/lexicons/types/com/atproto/server/describeServer.d.ts +0 -56
- package/dist/lexicons/types/com/atproto/server/describeServer.js +0 -24
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.d.ts +0 -39
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.js +0 -2
- package/dist/lexicons/types/com/atproto/server/getServiceAuth.d.ts +0 -41
- package/dist/lexicons/types/com/atproto/server/getServiceAuth.js +0 -2
- package/dist/lexicons/types/com/atproto/server/getSession.d.ts +0 -42
- package/dist/lexicons/types/com/atproto/server/getSession.js +0 -2
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.d.ts +0 -44
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.js +0 -14
- package/dist/lexicons/types/com/atproto/server/refreshSession.d.ts +0 -42
- package/dist/lexicons/types/com/atproto/server/refreshSession.js +0 -2
- package/dist/lexicons/types/com/atproto/server/requestAccountDelete.d.ts +0 -23
- package/dist/lexicons/types/com/atproto/server/requestAccountDelete.js +0 -2
- package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.d.ts +0 -23
- package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.js +0 -2
- package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.d.ts +0 -34
- package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.js +0 -2
- package/dist/lexicons/types/com/atproto/server/requestPasswordReset.d.ts +0 -29
- package/dist/lexicons/types/com/atproto/server/requestPasswordReset.js +0 -2
- package/dist/lexicons/types/com/atproto/server/reserveSigningKey.d.ts +0 -42
- package/dist/lexicons/types/com/atproto/server/reserveSigningKey.js +0 -2
- package/dist/lexicons/types/com/atproto/server/resetPassword.d.ts +0 -31
- package/dist/lexicons/types/com/atproto/server/resetPassword.js +0 -2
- package/dist/lexicons/types/com/atproto/server/revokeAppPassword.d.ts +0 -29
- package/dist/lexicons/types/com/atproto/server/revokeAppPassword.js +0 -2
- package/dist/lexicons/types/com/atproto/server/updateEmail.d.ts +0 -33
- package/dist/lexicons/types/com/atproto/server/updateEmail.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getBlob.d.ts +0 -36
- package/dist/lexicons/types/com/atproto/sync/getBlob.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getBlocks.d.ts +0 -35
- package/dist/lexicons/types/com/atproto/sync/getBlocks.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getCheckout.d.ts +0 -33
- package/dist/lexicons/types/com/atproto/sync/getCheckout.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getHead.d.ts +0 -37
- package/dist/lexicons/types/com/atproto/sync/getHead.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.d.ts +0 -38
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getRecord.d.ts +0 -37
- package/dist/lexicons/types/com/atproto/sync/getRecord.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getRepo.d.ts +0 -36
- package/dist/lexicons/types/com/atproto/sync/getRepo.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.d.ts +0 -42
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/listBlobs.d.ts +0 -42
- package/dist/lexicons/types/com/atproto/sync/listBlobs.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/listRepos.d.ts +0 -50
- package/dist/lexicons/types/com/atproto/sync/listRepos.js +0 -14
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.d.ts +0 -46
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.js +0 -14
- package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.d.ts +0 -30
- package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/requestCrawl.d.ts +0 -30
- package/dist/lexicons/types/com/atproto/sync/requestCrawl.js +0 -2
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.d.ts +0 -111
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.js +0 -64
- package/dist/lexicons/types/com/atproto/temp/addReservedHandle.d.ts +0 -39
- package/dist/lexicons/types/com/atproto/temp/addReservedHandle.js +0 -2
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.d.ts +0 -36
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.js +0 -2
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.d.ts +0 -37
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.js +0 -2
- package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.d.ts +0 -29
- package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.js +0 -2
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.d.ts +0 -19
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.js +0 -15
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.d.ts +0 -32
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.js +0 -24
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.d.ts +0 -37
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.js +0 -2
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.d.ts +0 -32
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.js +0 -35
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/song.js +0 -25
- package/dist/lexicons/util.d.ts +0 -5
- package/dist/lexicons/util.js +0 -13
- package/dist/logger.d.ts +0 -6
- package/dist/logger.js +0 -26
- package/dist/rpc/clio_connect.d.ts +0 -103
- package/dist/rpc/clio_connect.js +0 -110
- package/dist/rpc/clio_pb.d.ts +0 -457
- package/dist/rpc/clio_pb.js +0 -1365
- package/dist/start.d.ts +0 -1
- package/dist/util/retry.d.ts +0 -2
- package/dist/util/retry.js +0 -16
- package/dist/util/uris.d.ts +0 -1
- package/dist/util/uris.js +0 -7
- package/dist/util.d.ts +0 -23
- package/dist/util.js +0 -119
- /package/{dist/start.js → start.js} +0 -0
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
import { ErrorFrame, HandlerAuth } from '@atproto/xrpc-server';
|
|
6
|
-
import { IncomingMessage } from 'http';
|
|
7
|
-
import { CID } from 'multiformats/cid';
|
|
8
|
-
export interface QueryParams {
|
|
9
|
-
/** The last known event seq number to backfill from. */
|
|
10
|
-
cursor?: number;
|
|
11
|
-
}
|
|
12
|
-
export type OutputSchema = Commit | Sync | Identity | Account | Info | {
|
|
13
|
-
$type: string;
|
|
14
|
-
[k: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
export type HandlerError = ErrorFrame<'FutureCursor' | 'ConsumerTooSlow'>;
|
|
17
|
-
export type HandlerOutput = HandlerError | OutputSchema;
|
|
18
|
-
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
19
|
-
auth: HA;
|
|
20
|
-
params: QueryParams;
|
|
21
|
-
req: IncomingMessage;
|
|
22
|
-
signal: AbortSignal;
|
|
23
|
-
};
|
|
24
|
-
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => AsyncIterable<HandlerOutput>;
|
|
25
|
-
/** Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. */
|
|
26
|
-
export interface Commit {
|
|
27
|
-
/** The stream sequence number of this message. */
|
|
28
|
-
seq: number;
|
|
29
|
-
/** DEPRECATED -- unused */
|
|
30
|
-
rebase: boolean;
|
|
31
|
-
/** DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. */
|
|
32
|
-
tooBig: boolean;
|
|
33
|
-
/** The repo this event comes from. Note that all other message types name this field 'did'. */
|
|
34
|
-
repo: string;
|
|
35
|
-
/** Repo commit object CID. */
|
|
36
|
-
commit: CID;
|
|
37
|
-
/** The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. */
|
|
38
|
-
rev: string;
|
|
39
|
-
/** The rev of the last emitted commit from this repo (if any). */
|
|
40
|
-
since: string | null;
|
|
41
|
-
/** CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list. */
|
|
42
|
-
blocks: Uint8Array;
|
|
43
|
-
ops: RepoOp[];
|
|
44
|
-
blobs: CID[];
|
|
45
|
-
/** The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose. */
|
|
46
|
-
prevData?: CID;
|
|
47
|
-
/** Timestamp of when this message was originally broadcast. */
|
|
48
|
-
time: string;
|
|
49
|
-
[k: string]: unknown;
|
|
50
|
-
}
|
|
51
|
-
export declare function isCommit(v: unknown): v is Commit;
|
|
52
|
-
export declare function validateCommit(v: unknown): ValidationResult;
|
|
53
|
-
/** Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository. */
|
|
54
|
-
export interface Sync {
|
|
55
|
-
/** The stream sequence number of this message. */
|
|
56
|
-
seq: number;
|
|
57
|
-
/** The account this repo event corresponds to. Must match that in the commit object. */
|
|
58
|
-
did: string;
|
|
59
|
-
/** CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. */
|
|
60
|
-
blocks: Uint8Array;
|
|
61
|
-
/** The rev of the commit. This value must match that in the commit object. */
|
|
62
|
-
rev: string;
|
|
63
|
-
/** Timestamp of when this message was originally broadcast. */
|
|
64
|
-
time: string;
|
|
65
|
-
[k: string]: unknown;
|
|
66
|
-
}
|
|
67
|
-
export declare function isSync(v: unknown): v is Sync;
|
|
68
|
-
export declare function validateSync(v: unknown): ValidationResult;
|
|
69
|
-
/** Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache. */
|
|
70
|
-
export interface Identity {
|
|
71
|
-
seq: number;
|
|
72
|
-
did: string;
|
|
73
|
-
time: string;
|
|
74
|
-
/** The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details. */
|
|
75
|
-
handle?: string;
|
|
76
|
-
[k: string]: unknown;
|
|
77
|
-
}
|
|
78
|
-
export declare function isIdentity(v: unknown): v is Identity;
|
|
79
|
-
export declare function validateIdentity(v: unknown): ValidationResult;
|
|
80
|
-
/** Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active. */
|
|
81
|
-
export interface Account {
|
|
82
|
-
seq: number;
|
|
83
|
-
did: string;
|
|
84
|
-
time: string;
|
|
85
|
-
/** Indicates that the account has a repository which can be fetched from the host that emitted this event. */
|
|
86
|
-
active: boolean;
|
|
87
|
-
/** If active=false, this optional field indicates a reason for why the account is not active. */
|
|
88
|
-
status?: 'takendown' | 'suspended' | 'deleted' | 'deactivated' | 'desynchronized' | 'throttled' | (string & {});
|
|
89
|
-
[k: string]: unknown;
|
|
90
|
-
}
|
|
91
|
-
export declare function isAccount(v: unknown): v is Account;
|
|
92
|
-
export declare function validateAccount(v: unknown): ValidationResult;
|
|
93
|
-
export interface Info {
|
|
94
|
-
name: 'OutdatedCursor' | (string & {});
|
|
95
|
-
message?: string;
|
|
96
|
-
[k: string]: unknown;
|
|
97
|
-
}
|
|
98
|
-
export declare function isInfo(v: unknown): v is Info;
|
|
99
|
-
export declare function validateInfo(v: unknown): ValidationResult;
|
|
100
|
-
/** A repo operation, ie a mutation of a single record. */
|
|
101
|
-
export interface RepoOp {
|
|
102
|
-
action: 'create' | 'update' | 'delete' | (string & {});
|
|
103
|
-
path: string;
|
|
104
|
-
/** For creates and updates, the new record CID. For deletions, null. */
|
|
105
|
-
cid: CID | null;
|
|
106
|
-
/** For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. */
|
|
107
|
-
prev?: CID;
|
|
108
|
-
[k: string]: unknown;
|
|
109
|
-
}
|
|
110
|
-
export declare function isRepoOp(v: unknown): v is RepoOp;
|
|
111
|
-
export declare function validateRepoOp(v: unknown): ValidationResult;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isCommit = isCommit;
|
|
4
|
-
exports.validateCommit = validateCommit;
|
|
5
|
-
exports.isSync = isSync;
|
|
6
|
-
exports.validateSync = validateSync;
|
|
7
|
-
exports.isIdentity = isIdentity;
|
|
8
|
-
exports.validateIdentity = validateIdentity;
|
|
9
|
-
exports.isAccount = isAccount;
|
|
10
|
-
exports.validateAccount = validateAccount;
|
|
11
|
-
exports.isInfo = isInfo;
|
|
12
|
-
exports.validateInfo = validateInfo;
|
|
13
|
-
exports.isRepoOp = isRepoOp;
|
|
14
|
-
exports.validateRepoOp = validateRepoOp;
|
|
15
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
16
|
-
const util_1 = require("../../../../util");
|
|
17
|
-
function isCommit(v) {
|
|
18
|
-
return ((0, util_1.isObj)(v) &&
|
|
19
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
20
|
-
v.$type === 'com.atproto.sync.subscribeRepos#commit');
|
|
21
|
-
}
|
|
22
|
-
function validateCommit(v) {
|
|
23
|
-
return lexicons_1.lexicons.validate('com.atproto.sync.subscribeRepos#commit', v);
|
|
24
|
-
}
|
|
25
|
-
function isSync(v) {
|
|
26
|
-
return ((0, util_1.isObj)(v) &&
|
|
27
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
28
|
-
v.$type === 'com.atproto.sync.subscribeRepos#sync');
|
|
29
|
-
}
|
|
30
|
-
function validateSync(v) {
|
|
31
|
-
return lexicons_1.lexicons.validate('com.atproto.sync.subscribeRepos#sync', v);
|
|
32
|
-
}
|
|
33
|
-
function isIdentity(v) {
|
|
34
|
-
return ((0, util_1.isObj)(v) &&
|
|
35
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
36
|
-
v.$type === 'com.atproto.sync.subscribeRepos#identity');
|
|
37
|
-
}
|
|
38
|
-
function validateIdentity(v) {
|
|
39
|
-
return lexicons_1.lexicons.validate('com.atproto.sync.subscribeRepos#identity', v);
|
|
40
|
-
}
|
|
41
|
-
function isAccount(v) {
|
|
42
|
-
return ((0, util_1.isObj)(v) &&
|
|
43
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
44
|
-
v.$type === 'com.atproto.sync.subscribeRepos#account');
|
|
45
|
-
}
|
|
46
|
-
function validateAccount(v) {
|
|
47
|
-
return lexicons_1.lexicons.validate('com.atproto.sync.subscribeRepos#account', v);
|
|
48
|
-
}
|
|
49
|
-
function isInfo(v) {
|
|
50
|
-
return ((0, util_1.isObj)(v) &&
|
|
51
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
52
|
-
v.$type === 'com.atproto.sync.subscribeRepos#info');
|
|
53
|
-
}
|
|
54
|
-
function validateInfo(v) {
|
|
55
|
-
return lexicons_1.lexicons.validate('com.atproto.sync.subscribeRepos#info', v);
|
|
56
|
-
}
|
|
57
|
-
function isRepoOp(v) {
|
|
58
|
-
return ((0, util_1.isObj)(v) &&
|
|
59
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
60
|
-
v.$type === 'com.atproto.sync.subscribeRepos#repoOp');
|
|
61
|
-
}
|
|
62
|
-
function validateRepoOp(v) {
|
|
63
|
-
return lexicons_1.lexicons.validate('com.atproto.sync.subscribeRepos#repoOp', v);
|
|
64
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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: string;
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface OutputSchema {
|
|
13
|
-
[k: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
export interface HandlerInput {
|
|
16
|
-
encoding: 'application/json';
|
|
17
|
-
body: InputSchema;
|
|
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;
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
placeInQueue?: number;
|
|
12
|
-
estimatedTimeMs?: number;
|
|
13
|
-
[k: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
export type HandlerInput = undefined;
|
|
16
|
-
export interface HandlerSuccess {
|
|
17
|
-
encoding: 'application/json';
|
|
18
|
-
body: OutputSchema;
|
|
19
|
-
headers?: {
|
|
20
|
-
[key: string]: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export interface HandlerError {
|
|
24
|
-
status: number;
|
|
25
|
-
message?: string;
|
|
26
|
-
}
|
|
27
|
-
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
28
|
-
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
29
|
-
auth: HA;
|
|
30
|
-
params: QueryParams;
|
|
31
|
-
input: HandlerInput;
|
|
32
|
-
req: express.Request;
|
|
33
|
-
res: express.Response;
|
|
34
|
-
resetRouteRateLimits: () => Promise<void>;
|
|
35
|
-
};
|
|
36
|
-
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
5
|
-
import express from 'express';
|
|
6
|
-
import * as ComAtprotoLabelDefs from '../label/defs';
|
|
7
|
-
export interface QueryParams {
|
|
8
|
-
since?: number;
|
|
9
|
-
limit: number;
|
|
10
|
-
}
|
|
11
|
-
export type InputSchema = undefined;
|
|
12
|
-
export interface OutputSchema {
|
|
13
|
-
labels: ComAtprotoLabelDefs.Label[];
|
|
14
|
-
[k: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
export type HandlerInput = undefined;
|
|
17
|
-
export interface HandlerSuccess {
|
|
18
|
-
encoding: 'application/json';
|
|
19
|
-
body: OutputSchema;
|
|
20
|
-
headers?: {
|
|
21
|
-
[key: string]: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface HandlerError {
|
|
25
|
-
status: number;
|
|
26
|
-
message?: string;
|
|
27
|
-
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
|
-
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
|
-
auth: HA;
|
|
31
|
-
params: QueryParams;
|
|
32
|
-
input: HandlerInput;
|
|
33
|
-
req: express.Request;
|
|
34
|
-
res: express.Response;
|
|
35
|
-
resetRouteRateLimits: () => Promise<void>;
|
|
36
|
-
};
|
|
37
|
-
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
phoneNumber: string;
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface HandlerInput {
|
|
13
|
-
encoding: 'application/json';
|
|
14
|
-
body: InputSchema;
|
|
15
|
-
}
|
|
16
|
-
export interface HandlerError {
|
|
17
|
-
status: number;
|
|
18
|
-
message?: string;
|
|
19
|
-
}
|
|
20
|
-
export type HandlerOutput = HandlerError | void;
|
|
21
|
-
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
22
|
-
auth: HA;
|
|
23
|
-
params: QueryParams;
|
|
24
|
-
input: HandlerInput;
|
|
25
|
-
req: express.Request;
|
|
26
|
-
res: express.Response;
|
|
27
|
-
resetRouteRateLimits: () => Promise<void>;
|
|
28
|
-
};
|
|
29
|
-
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { BlobRef, ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
import * as ComAtprotoRepoStrongRef from '../../../atproto/repo/strongRef';
|
|
6
|
-
export interface Record {
|
|
7
|
-
displayName?: string;
|
|
8
|
-
/** Free-form profile description text. */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Small image to be displayed next to posts from account. AKA, 'profile picture' */
|
|
11
|
-
avatar?: BlobRef;
|
|
12
|
-
/** Larger horizontal image to display behind profile view. */
|
|
13
|
-
banner?: BlobRef;
|
|
14
|
-
pinnedPlaylistIdea?: ComAtprotoRepoStrongRef.Main;
|
|
15
|
-
createdAt?: string;
|
|
16
|
-
[k: string]: unknown;
|
|
17
|
-
}
|
|
18
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
19
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRecord = isRecord;
|
|
4
|
-
exports.validateRecord = validateRecord;
|
|
5
|
-
const lexicons_1 = require("../../../../../lexicons");
|
|
6
|
-
const util_1 = require("../../../../../util");
|
|
7
|
-
function isRecord(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
10
|
-
(v.$type === 'com.clioplaylists.alpha.actor.profile#main' ||
|
|
11
|
-
v.$type === 'com.clioplaylists.alpha.actor.profile'));
|
|
12
|
-
}
|
|
13
|
-
function validateRecord(v) {
|
|
14
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.actor.profile#main', v);
|
|
15
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { BlobRef, ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
export interface Song {
|
|
6
|
-
/** The title of the track. */
|
|
7
|
-
trackName: string;
|
|
8
|
-
/** Array of artist names in order of original appearance. */
|
|
9
|
-
artistNames: string[];
|
|
10
|
-
/** The MusicBrainz ID of the track. */
|
|
11
|
-
trackMbId: string;
|
|
12
|
-
/** Array of Musicbrainz artist IDs. */
|
|
13
|
-
artistMbIds: string[];
|
|
14
|
-
/** Image associated with the song's album. */
|
|
15
|
-
albumArtwork?: BlobRef;
|
|
16
|
-
/** Client-declared timestamp when this record was originally created. */
|
|
17
|
-
createdAt?: string;
|
|
18
|
-
[k: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
export declare function isSong(v: unknown): v is Song;
|
|
21
|
-
export declare function validateSong(v: unknown): ValidationResult;
|
|
22
|
-
export interface SongView {
|
|
23
|
-
trackName: string;
|
|
24
|
-
artistNames: string[];
|
|
25
|
-
trackMbId: string;
|
|
26
|
-
artistMbIds: string[];
|
|
27
|
-
albumArtwork?: BlobRef;
|
|
28
|
-
indexedAt?: string;
|
|
29
|
-
[k: string]: unknown;
|
|
30
|
-
}
|
|
31
|
-
export declare function isSongView(v: unknown): v is SongView;
|
|
32
|
-
export declare function validateSongView(v: unknown): ValidationResult;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSong = isSong;
|
|
4
|
-
exports.validateSong = validateSong;
|
|
5
|
-
exports.isSongView = isSongView;
|
|
6
|
-
exports.validateSongView = validateSongView;
|
|
7
|
-
const lexicons_1 = require("../../../../../lexicons");
|
|
8
|
-
const util_1 = require("../../../../../util");
|
|
9
|
-
function isSong(v) {
|
|
10
|
-
return ((0, util_1.isObj)(v) &&
|
|
11
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
12
|
-
v.$type === 'com.clioplaylists.alpha.feed.defs#song');
|
|
13
|
-
}
|
|
14
|
-
function validateSong(v) {
|
|
15
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.feed.defs#song', v);
|
|
16
|
-
}
|
|
17
|
-
function isSongView(v) {
|
|
18
|
-
return ((0, util_1.isObj)(v) &&
|
|
19
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
20
|
-
v.$type === 'com.clioplaylists.alpha.feed.defs#songView');
|
|
21
|
-
}
|
|
22
|
-
function validateSongView(v) {
|
|
23
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.feed.defs#songView', v);
|
|
24
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
5
|
-
import express from 'express';
|
|
6
|
-
import * as ComClioplaylistsAlphaFeedDefs from './defs';
|
|
7
|
-
export interface QueryParams {
|
|
8
|
-
/** List of MusicBrainz IDs for the songs to return */
|
|
9
|
-
trackMbIds?: string[];
|
|
10
|
-
}
|
|
11
|
-
export type InputSchema = undefined;
|
|
12
|
-
export interface OutputSchema {
|
|
13
|
-
songs: ComClioplaylistsAlphaFeedDefs.SongView[];
|
|
14
|
-
[k: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
export type HandlerInput = undefined;
|
|
17
|
-
export interface HandlerSuccess {
|
|
18
|
-
encoding: 'application/json';
|
|
19
|
-
body: OutputSchema;
|
|
20
|
-
headers?: {
|
|
21
|
-
[key: string]: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface HandlerError {
|
|
25
|
-
status: number;
|
|
26
|
-
message?: string;
|
|
27
|
-
}
|
|
28
|
-
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
29
|
-
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
30
|
-
auth: HA;
|
|
31
|
-
params: QueryParams;
|
|
32
|
-
input: HandlerInput;
|
|
33
|
-
req: express.Request;
|
|
34
|
-
res: express.Response;
|
|
35
|
-
resetRouteRateLimits: () => Promise<void>;
|
|
36
|
-
};
|
|
37
|
-
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
import * as ComClioplaylistsAlphaFeedDefs from './defs';
|
|
6
|
-
export interface Record {
|
|
7
|
-
/** A concise title that gives other users an idea of the vibe of the playlist. */
|
|
8
|
-
title: string;
|
|
9
|
-
/** A description of the playlist that explains more about what the user is looking for from the playlist. */
|
|
10
|
-
description?: string;
|
|
11
|
-
creatorDid: string;
|
|
12
|
-
ownerDid: string;
|
|
13
|
-
masterPlaylist?: MasterPlaylist;
|
|
14
|
-
recommendedPlaylist?: RecommendedPlaylist;
|
|
15
|
-
/** Client-declared timestamp when this record was originally created. */
|
|
16
|
-
createdAt: string;
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
20
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
21
|
-
export interface MasterPlaylist {
|
|
22
|
-
songs: ComClioplaylistsAlphaFeedDefs.Song[];
|
|
23
|
-
[k: string]: unknown;
|
|
24
|
-
}
|
|
25
|
-
export declare function isMasterPlaylist(v: unknown): v is MasterPlaylist;
|
|
26
|
-
export declare function validateMasterPlaylist(v: unknown): ValidationResult;
|
|
27
|
-
export interface RecommendedPlaylist {
|
|
28
|
-
songs: ComClioplaylistsAlphaFeedDefs.Song[];
|
|
29
|
-
[k: string]: unknown;
|
|
30
|
-
}
|
|
31
|
-
export declare function isRecommendedPlaylist(v: unknown): v is RecommendedPlaylist;
|
|
32
|
-
export declare function validateRecommendedPlaylist(v: unknown): ValidationResult;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRecord = isRecord;
|
|
4
|
-
exports.validateRecord = validateRecord;
|
|
5
|
-
exports.isMasterPlaylist = isMasterPlaylist;
|
|
6
|
-
exports.validateMasterPlaylist = validateMasterPlaylist;
|
|
7
|
-
exports.isRecommendedPlaylist = isRecommendedPlaylist;
|
|
8
|
-
exports.validateRecommendedPlaylist = validateRecommendedPlaylist;
|
|
9
|
-
const lexicons_1 = require("../../../../../lexicons");
|
|
10
|
-
const util_1 = require("../../../../../util");
|
|
11
|
-
function isRecord(v) {
|
|
12
|
-
return ((0, util_1.isObj)(v) &&
|
|
13
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
14
|
-
(v.$type === 'com.clioplaylists.alpha.feed.playlistIdea#main' ||
|
|
15
|
-
v.$type === 'com.clioplaylists.alpha.feed.playlistIdea'));
|
|
16
|
-
}
|
|
17
|
-
function validateRecord(v) {
|
|
18
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.feed.playlistIdea#main', v);
|
|
19
|
-
}
|
|
20
|
-
function isMasterPlaylist(v) {
|
|
21
|
-
return ((0, util_1.isObj)(v) &&
|
|
22
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
23
|
-
v.$type === 'com.clioplaylists.alpha.feed.playlistIdea#masterPlaylist');
|
|
24
|
-
}
|
|
25
|
-
function validateMasterPlaylist(v) {
|
|
26
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.feed.playlistIdea#masterPlaylist', v);
|
|
27
|
-
}
|
|
28
|
-
function isRecommendedPlaylist(v) {
|
|
29
|
-
return ((0, util_1.isObj)(v) &&
|
|
30
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
31
|
-
v.$type === 'com.clioplaylists.alpha.feed.playlistIdea#recommendedPlaylist');
|
|
32
|
-
}
|
|
33
|
-
function validateRecommendedPlaylist(v) {
|
|
34
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.feed.playlistIdea#recommendedPlaylist', v);
|
|
35
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMain = isMain;
|
|
4
|
-
exports.validateMain = validateMain;
|
|
5
|
-
exports.isSongView = isSongView;
|
|
6
|
-
exports.validateSongView = validateSongView;
|
|
7
|
-
const lexicons_1 = require("../../../../../lexicons");
|
|
8
|
-
const util_1 = require("../../../../../util");
|
|
9
|
-
function isMain(v) {
|
|
10
|
-
return ((0, util_1.isObj)(v) &&
|
|
11
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
12
|
-
(v.$type === 'com.clioplaylists.alpha.feed.song#main' ||
|
|
13
|
-
v.$type === 'com.clioplaylists.alpha.feed.song'));
|
|
14
|
-
}
|
|
15
|
-
function validateMain(v) {
|
|
16
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.feed.song#main', v);
|
|
17
|
-
}
|
|
18
|
-
function isSongView(v) {
|
|
19
|
-
return ((0, util_1.isObj)(v) &&
|
|
20
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
21
|
-
v.$type === 'com.clioplaylists.alpha.feed.song#songView');
|
|
22
|
-
}
|
|
23
|
-
function validateSongView(v) {
|
|
24
|
-
return lexicons_1.lexicons.validate('com.clioplaylists.alpha.feed.song#songView', v);
|
|
25
|
-
}
|
package/dist/lexicons/util.d.ts
DELETED
package/dist/lexicons/util.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isObj = isObj;
|
|
4
|
-
exports.hasProp = hasProp;
|
|
5
|
-
/**
|
|
6
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
7
|
-
*/
|
|
8
|
-
function isObj(v) {
|
|
9
|
-
return typeof v === 'object' && v !== null;
|
|
10
|
-
}
|
|
11
|
-
function hasProp(data, prop) {
|
|
12
|
-
return prop in data;
|
|
13
|
-
}
|
package/dist/logger.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { subsystemLogger } from '@atproto/common';
|
|
2
|
-
import { IncomingMessage } from 'node:http';
|
|
3
|
-
export declare const dbLogger: ReturnType<typeof subsystemLogger>;
|
|
4
|
-
export declare const subLogger: ReturnType<typeof subsystemLogger>;
|
|
5
|
-
export declare const httpLogger: ReturnType<typeof subsystemLogger>;
|
|
6
|
-
export declare const loggerMiddleware: import("pino-http").HttpLogger<IncomingMessage, import("http").ServerResponse<IncomingMessage>, never>;
|
package/dist/logger.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.loggerMiddleware = exports.httpLogger = exports.subLogger = exports.dbLogger = void 0;
|
|
7
|
-
const common_1 = require("@atproto/common");
|
|
8
|
-
const pino_1 = require("pino");
|
|
9
|
-
const pino_http_1 = __importDefault(require("pino-http"));
|
|
10
|
-
exports.dbLogger = (0, common_1.subsystemLogger)('clio:db');
|
|
11
|
-
exports.subLogger = (0, common_1.subsystemLogger)('clio:sub');
|
|
12
|
-
exports.httpLogger = (0, common_1.subsystemLogger)('clio');
|
|
13
|
-
exports.loggerMiddleware = (0, pino_http_1.default)({
|
|
14
|
-
logger: exports.httpLogger,
|
|
15
|
-
serializers: {
|
|
16
|
-
err: (err) => ({
|
|
17
|
-
code: err?.['code'],
|
|
18
|
-
message: err?.['message'],
|
|
19
|
-
}),
|
|
20
|
-
req: (req) => {
|
|
21
|
-
const serialized = pino_1.stdSerializers.req(req);
|
|
22
|
-
const headers = (0, common_1.obfuscateHeaders)(serialized.headers);
|
|
23
|
-
return { ...serialized, headers };
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
});
|