@clioplaylists/clio 0.1.2 → 0.1.4
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 +1 -1
- 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/package.json +0 -74
- 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
package/package.json
CHANGED
package/dist/.env
DELETED
|
File without changes
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import AppContext from '../../../../../context'
|
|
3
|
-
// import { Server } from '../../../../../lexicons'
|
|
4
|
-
// import { OutputSchema } from '../../../../../lexicons/types/com/clioplaylists/alpha/feed/getSongs'
|
|
5
|
-
// import { Record as SongRecord } from '../../../../../lexicons/types/com/clioplaylists/alpha/feed/song'
|
|
6
|
-
// import { parseRecord } from '../../../../../util'
|
|
7
|
-
// import { resHeaders } from '../../../../util'
|
|
8
|
-
// export default function (server: Server, ctx: AppContext) {
|
|
9
|
-
// server.com.clioplaylists.alpha.feed.getSongs({
|
|
10
|
-
// handler: async ({ params, auth, req }) => {
|
|
11
|
-
// const res = await ctx.dataplane.getSongRecords({})
|
|
12
|
-
// let results: OutputSchema = {
|
|
13
|
-
// songs: []
|
|
14
|
-
// }
|
|
15
|
-
// res.records.forEach((recordWrapper) => {
|
|
16
|
-
// const recordRes = parseRecord<SongRecord>(recordWrapper, false)
|
|
17
|
-
// if (!recordRes) {
|
|
18
|
-
// console.log("Could not deserialize SongRecord")
|
|
19
|
-
// return
|
|
20
|
-
// }
|
|
21
|
-
// results.songs.push({
|
|
22
|
-
// trackName: recordRes.record.trackName,
|
|
23
|
-
// trackMbId: recordRes.record.trackMbId,
|
|
24
|
-
// artistNames: recordRes.record.artistNames,
|
|
25
|
-
// artistMbIds: recordRes.record.artistMbIds,
|
|
26
|
-
// albumArtwork: recordRes.record.albumArtwork,
|
|
27
|
-
// createdAt: recordRes.record.createdAt
|
|
28
|
-
// })
|
|
29
|
-
// })
|
|
30
|
-
// return {
|
|
31
|
-
// encoding: 'application/json',
|
|
32
|
-
// body: results,
|
|
33
|
-
// headers: resHeaders({}),
|
|
34
|
-
// }
|
|
35
|
-
// }
|
|
36
|
-
// })
|
|
37
|
-
// }
|
|
File without changes
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import AppContext from '../../../../../context'
|
|
3
|
-
// import { Server } from '../../../../../lexicons'
|
|
4
|
-
// import { OutputSchema } from '../../../../../lexicons/types/com/clioplaylists/alpha/feed/getSongs'
|
|
5
|
-
// import { Record as SongRecord } from '../../../../../lexicons/types/com/clioplaylists/alpha/feed/song'
|
|
6
|
-
// import { parseRecord } from '../../../../../util'
|
|
7
|
-
// import { resHeaders } from '../../../../util'
|
|
8
|
-
// export default function (server: Server, ctx: AppContext) {
|
|
9
|
-
// server.com.clioplaylists.alpha.feed.getSongs({
|
|
10
|
-
// handler: async ({ params, auth, req }) => {
|
|
11
|
-
// const res = await ctx.dataplane.getSongRecords({})
|
|
12
|
-
// let results: OutputSchema = {
|
|
13
|
-
// songs: []
|
|
14
|
-
// }
|
|
15
|
-
// res.records.forEach((recordWrapper) => {
|
|
16
|
-
// const recordRes = parseRecord<SongRecord>(recordWrapper, false)
|
|
17
|
-
// if (!recordRes) {
|
|
18
|
-
// console.log("Could not deserialize SongRecord")
|
|
19
|
-
// return
|
|
20
|
-
// }
|
|
21
|
-
// results.songs.push({
|
|
22
|
-
// trackName: recordRes.record.trackName,
|
|
23
|
-
// trackMbId: recordRes.record.trackMbId,
|
|
24
|
-
// artistNames: recordRes.record.artistNames,
|
|
25
|
-
// artistMbIds: recordRes.record.artistMbIds,
|
|
26
|
-
// albumArtwork: recordRes.record.albumArtwork,
|
|
27
|
-
// createdAt: recordRes.record.createdAt
|
|
28
|
-
// })
|
|
29
|
-
// })
|
|
30
|
-
// return {
|
|
31
|
-
// encoding: 'application/json',
|
|
32
|
-
// body: results,
|
|
33
|
-
// headers: resHeaders({}),
|
|
34
|
-
// }
|
|
35
|
-
// }
|
|
36
|
-
// })
|
|
37
|
-
// }
|
package/dist/api/health.d.ts
DELETED
package/dist/api/health.js
DELETED
|
@@ -1,32 +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.createRouter = void 0;
|
|
7
|
-
const express_1 = __importDefault(require("express"));
|
|
8
|
-
const createRouter = (ctx) => {
|
|
9
|
-
const router = express_1.default.Router();
|
|
10
|
-
router.get('/', function (req, res) {
|
|
11
|
-
res.type('text/plain');
|
|
12
|
-
res.send(`
|
|
13
|
-
___ __ ____ _____
|
|
14
|
-
/ __)( ) (_ _)( _ )
|
|
15
|
-
( (__ )(__ _)(_ )(_)(
|
|
16
|
-
\___)(____)(____)(_____)
|
|
17
|
-
|
|
18
|
-
This is an AT Protocol Application View (AppView) for the "clioplaylists.com" application.
|
|
19
|
-
|
|
20
|
-
Most API routes are under /xrpc/
|
|
21
|
-
|
|
22
|
-
Code: https://github.com/Hoid/clio-api
|
|
23
|
-
Protocol: https://atproto.com
|
|
24
|
-
`);
|
|
25
|
-
});
|
|
26
|
-
router.get('/xrpc/_health', async function (req, res) {
|
|
27
|
-
const { version } = ctx.cfg;
|
|
28
|
-
res.send({ version });
|
|
29
|
-
});
|
|
30
|
-
return router;
|
|
31
|
-
};
|
|
32
|
-
exports.createRouter = createRouter;
|
package/dist/api/index.d.ts
DELETED
package/dist/api/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.health = void 0;
|
|
37
|
-
exports.default = default_1;
|
|
38
|
-
// import getSongs from './com/clioplaylists/alpha/feed/getSongs'
|
|
39
|
-
exports.health = __importStar(require("./health"));
|
|
40
|
-
function default_1(server, ctx) {
|
|
41
|
-
// getSongs(server, ctx)
|
|
42
|
-
return server;
|
|
43
|
-
}
|
package/dist/api/util.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ParsedLabelers } from '../util';
|
|
2
|
-
export declare const ATPROTO_CONTENT_LABELERS = "Atproto-Content-Labelers";
|
|
3
|
-
export declare const ATPROTO_REPO_REV = "Atproto-Repo-Rev";
|
|
4
|
-
type ResHeaderOpts = {
|
|
5
|
-
labelers: ParsedLabelers;
|
|
6
|
-
repoRev: string | null;
|
|
7
|
-
};
|
|
8
|
-
export declare const resHeaders: (opts: Partial<ResHeaderOpts>) => Record<string, string>;
|
|
9
|
-
export {};
|
package/dist/api/util.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resHeaders = exports.ATPROTO_REPO_REV = exports.ATPROTO_CONTENT_LABELERS = void 0;
|
|
4
|
-
const util_1 = require("../util");
|
|
5
|
-
exports.ATPROTO_CONTENT_LABELERS = 'Atproto-Content-Labelers';
|
|
6
|
-
exports.ATPROTO_REPO_REV = 'Atproto-Repo-Rev';
|
|
7
|
-
const resHeaders = (opts) => {
|
|
8
|
-
const headers = {};
|
|
9
|
-
if (opts.labelers) {
|
|
10
|
-
headers[exports.ATPROTO_CONTENT_LABELERS] = (0, util_1.formatLabelerHeader)(opts.labelers);
|
|
11
|
-
}
|
|
12
|
-
if (opts.repoRev) {
|
|
13
|
-
headers[exports.ATPROTO_REPO_REV] = opts.repoRev;
|
|
14
|
-
}
|
|
15
|
-
return headers;
|
|
16
|
-
};
|
|
17
|
-
exports.resHeaders = resHeaders;
|
package/dist/auth-verifier.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { VerifySignatureWithKeyFn } from '@atproto/xrpc-server';
|
|
2
|
-
import express from 'express';
|
|
3
|
-
import { KeyObject } from 'node:crypto';
|
|
4
|
-
import { DataPlaneClient } from './client';
|
|
5
|
-
type ReqCtx = {
|
|
6
|
-
req: express.Request;
|
|
7
|
-
};
|
|
8
|
-
type StandardAuthOpts = {
|
|
9
|
-
skipAudCheck?: boolean;
|
|
10
|
-
lxmCheck?: (method?: string) => boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare enum RoleStatus {
|
|
13
|
-
Valid = 0,
|
|
14
|
-
Invalid = 1,
|
|
15
|
-
Missing = 2
|
|
16
|
-
}
|
|
17
|
-
type NullOutput = {
|
|
18
|
-
credentials: {
|
|
19
|
-
type: 'none';
|
|
20
|
-
iss: null;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
type StandardOutput = {
|
|
24
|
-
credentials: {
|
|
25
|
-
type: 'standard';
|
|
26
|
-
aud: string;
|
|
27
|
-
iss: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
type RoleOutput = {
|
|
31
|
-
credentials: {
|
|
32
|
-
type: 'role';
|
|
33
|
-
admin: boolean;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
type ModServiceOutput = {
|
|
37
|
-
credentials: {
|
|
38
|
-
type: 'mod_service';
|
|
39
|
-
aud: string;
|
|
40
|
-
iss: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export type AuthVerifierOpts = {
|
|
44
|
-
ownDid: string;
|
|
45
|
-
alternateAudienceDids: string[];
|
|
46
|
-
modServiceDid: string;
|
|
47
|
-
adminPasses: string[];
|
|
48
|
-
entrywayJwtPublicKey?: KeyObject;
|
|
49
|
-
};
|
|
50
|
-
export declare class AuthVerifier {
|
|
51
|
-
dataplane: DataPlaneClient;
|
|
52
|
-
ownDid: string;
|
|
53
|
-
standardAudienceDids: Set<string>;
|
|
54
|
-
modServiceDid: string;
|
|
55
|
-
private adminPasses;
|
|
56
|
-
private entrywayJwtPublicKey?;
|
|
57
|
-
constructor(dataplane: DataPlaneClient, opts: AuthVerifierOpts);
|
|
58
|
-
standardOptionalParameterized: (opts: StandardAuthOpts) => (ctx: ReqCtx) => Promise<StandardOutput | NullOutput>;
|
|
59
|
-
standardOptional: (ctx: ReqCtx) => Promise<StandardOutput | NullOutput>;
|
|
60
|
-
standard: (ctx: ReqCtx) => Promise<StandardOutput>;
|
|
61
|
-
role: (ctx: ReqCtx) => RoleOutput;
|
|
62
|
-
standardOrRole: (ctx: ReqCtx) => Promise<StandardOutput | RoleOutput>;
|
|
63
|
-
optionalStandardOrRole: (ctx: ReqCtx) => Promise<StandardOutput | RoleOutput | NullOutput>;
|
|
64
|
-
entrywaySession: (reqCtx: ReqCtx) => Promise<StandardOutput>;
|
|
65
|
-
parseRoleCreds(req: express.Request): {
|
|
66
|
-
status: RoleStatus;
|
|
67
|
-
admin: boolean;
|
|
68
|
-
moderator: boolean;
|
|
69
|
-
triage: boolean;
|
|
70
|
-
} | {
|
|
71
|
-
status: RoleStatus;
|
|
72
|
-
admin: boolean;
|
|
73
|
-
moderator?: undefined;
|
|
74
|
-
triage?: undefined;
|
|
75
|
-
};
|
|
76
|
-
isModService(iss: string): boolean;
|
|
77
|
-
nullCreds(): NullOutput;
|
|
78
|
-
parseCreds(creds: StandardOutput | RoleOutput | ModServiceOutput | NullOutput): {
|
|
79
|
-
viewer: string | null;
|
|
80
|
-
includeTakedowns: boolean;
|
|
81
|
-
include3pBlocks: boolean;
|
|
82
|
-
canPerformTakedown: boolean;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export declare const parseBasicAuth: (token: string) => {
|
|
86
|
-
username: string;
|
|
87
|
-
password: string;
|
|
88
|
-
} | null;
|
|
89
|
-
export declare const buildBasicAuth: (username: string, password: string) => string;
|
|
90
|
-
export declare const createPublicKeyObject: (publicKeyHex: string) => KeyObject;
|
|
91
|
-
export declare const verifySignatureWithKey: VerifySignatureWithKeyFn;
|
|
92
|
-
export {};
|