@clioplaylists/clio 0.1.0 → 0.1.2

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.
Files changed (149) hide show
  1. package/dist/.env +1 -1
  2. package/dist/api/com/clioplaylists/alpha/actor/getProfile.d.ts +0 -0
  3. package/dist/api/com/clioplaylists/alpha/feed/getSongs.d.ts +0 -0
  4. package/dist/api/health.d.ts +3 -0
  5. package/dist/api/index.d.ts +4 -0
  6. package/dist/api/util.d.ts +9 -0
  7. package/dist/auth-verifier.d.ts +92 -0
  8. package/dist/client.d.ts +9 -0
  9. package/dist/config.d.ts +21 -0
  10. package/dist/context.d.ts +11 -0
  11. package/dist/dataplane/client.d.ts +27 -0
  12. package/dist/dataplane/index.d.ts +2 -0
  13. package/dist/dataplane/server/background.d.ts +13 -0
  14. package/dist/dataplane/server/db/database-schema.d.ts +13 -0
  15. package/dist/dataplane/server/db/db.d.ts +32 -0
  16. package/dist/dataplane/server/db/index.d.ts +1 -0
  17. package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.d.ts +3 -0
  18. package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.d.ts +3 -0
  19. package/dist/dataplane/server/db/migrations/index.d.ts +2 -0
  20. package/dist/dataplane/server/db/migrations/provider.d.ts +11 -0
  21. package/dist/dataplane/server/db/pagination.d.ts +86 -0
  22. package/dist/dataplane/server/db/tables/actor-sync.d.ts +9 -0
  23. package/dist/dataplane/server/db/tables/actor.d.ts +11 -0
  24. package/dist/dataplane/server/db/tables/artist-list-item.d.ts +11 -0
  25. package/dist/dataplane/server/db/tables/artist.d.ts +10 -0
  26. package/dist/dataplane/server/db/tables/playlist-idea.d.ts +14 -0
  27. package/dist/dataplane/server/db/tables/playlist-item.d.ts +11 -0
  28. package/dist/dataplane/server/db/tables/playlist.d.ts +10 -0
  29. package/dist/dataplane/server/db/tables/profile.d.ts +15 -0
  30. package/dist/dataplane/server/db/tables/record.d.ts +12 -0
  31. package/dist/dataplane/server/db/tables/song.d.ts +12 -0
  32. package/dist/dataplane/server/db/types.d.ts +9 -0
  33. package/dist/dataplane/server/db/util.d.ts +20 -0
  34. package/dist/dataplane/server/index.d.ts +11 -0
  35. package/dist/dataplane/server/indexing/index.d.ts +32 -0
  36. package/dist/dataplane/server/indexing/plugins/playlist-idea.d.ts +14 -0
  37. package/dist/dataplane/server/indexing/plugins/profile.d.ts +8 -0
  38. package/dist/dataplane/server/indexing/processor.d.ts +22 -0
  39. package/dist/dataplane/server/routes/identity.d.ts +6 -0
  40. package/dist/dataplane/server/routes/index.d.ts +5 -0
  41. package/dist/dataplane/server/routes/profile.d.ts +5 -0
  42. package/dist/dataplane/server/routes/records.d.ts +11 -0
  43. package/dist/dataplane/server/routes/sync.d.ts +5 -0
  44. package/dist/dataplane/server/subscription.d.ts +25 -0
  45. package/dist/error.d.ts +2 -0
  46. package/dist/index.d.ts +20 -0
  47. package/dist/lexicons/index.d.ts +278 -0
  48. package/dist/lexicons/lexicons.d.ts +8466 -0
  49. package/dist/lexicons/types/com/atproto/admin/defs.d.ts +50 -0
  50. package/dist/lexicons/types/com/atproto/admin/deleteAccount.d.ts +29 -0
  51. package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.d.ts +31 -0
  52. package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.d.ts +30 -0
  53. package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.d.ts +31 -0
  54. package/dist/lexicons/types/com/atproto/admin/getAccountInfo.d.ts +33 -0
  55. package/dist/lexicons/types/com/atproto/admin/getAccountInfos.d.ts +36 -0
  56. package/dist/lexicons/types/com/atproto/admin/getInviteCodes.d.ts +39 -0
  57. package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.d.ts +44 -0
  58. package/dist/lexicons/types/com/atproto/admin/searchAccounts.d.ts +39 -0
  59. package/dist/lexicons/types/com/atproto/admin/sendEmail.d.ts +45 -0
  60. package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.d.ts +31 -0
  61. package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.d.ts +30 -0
  62. package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.d.ts +30 -0
  63. package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.d.ts +51 -0
  64. package/dist/lexicons/types/com/atproto/identity/defs.d.ts +14 -0
  65. package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +38 -0
  66. package/dist/lexicons/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
  67. package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.d.ts +23 -0
  68. package/dist/lexicons/types/com/atproto/identity/resolveDid.d.ts +38 -0
  69. package/dist/lexicons/types/com/atproto/identity/resolveHandle.d.ts +37 -0
  70. package/dist/lexicons/types/com/atproto/identity/resolveIdentity.d.ts +35 -0
  71. package/dist/lexicons/types/com/atproto/identity/signPlcOperation.d.ts +46 -0
  72. package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.d.ts +29 -0
  73. package/dist/lexicons/types/com/atproto/identity/updateHandle.d.ts +30 -0
  74. package/dist/lexicons/types/com/atproto/label/defs.d.ts +73 -0
  75. package/dist/lexicons/types/com/atproto/label/queryLabels.d.ts +42 -0
  76. package/dist/lexicons/types/com/atproto/label/subscribeLabels.d.ts +38 -0
  77. package/dist/lexicons/types/com/atproto/lexicon/schema.d.ts +11 -0
  78. package/dist/lexicons/types/com/atproto/moderation/createReport.d.ts +57 -0
  79. package/dist/lexicons/types/com/atproto/moderation/defs.d.ts +20 -0
  80. package/dist/lexicons/types/com/atproto/repo/applyWrites.d.ts +98 -0
  81. package/dist/lexicons/types/com/atproto/repo/createRecord.d.ts +56 -0
  82. package/dist/lexicons/types/com/atproto/repo/defs.d.ts +11 -0
  83. package/dist/lexicons/types/com/atproto/repo/deleteRecord.d.ts +51 -0
  84. package/dist/lexicons/types/com/atproto/repo/describeRepo.d.ts +43 -0
  85. package/dist/lexicons/types/com/atproto/repo/getRecord.d.ts +45 -0
  86. package/dist/lexicons/types/com/atproto/repo/importRepo.d.ts +27 -0
  87. package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.d.ts +45 -0
  88. package/dist/lexicons/types/com/atproto/repo/listRecords.d.ts +53 -0
  89. package/dist/lexicons/types/com/atproto/repo/putRecord.d.ts +58 -0
  90. package/dist/lexicons/types/com/atproto/repo/strongRef.d.ts +11 -0
  91. package/dist/lexicons/types/com/atproto/repo/uploadBlob.d.ts +39 -0
  92. package/dist/lexicons/types/com/atproto/server/activateAccount.d.ts +23 -0
  93. package/dist/lexicons/types/com/atproto/server/checkAccountStatus.d.ts +42 -0
  94. package/dist/lexicons/types/com/atproto/server/confirmEmail.d.ts +31 -0
  95. package/dist/lexicons/types/com/atproto/server/createAccount.d.ts +61 -0
  96. package/dist/lexicons/types/com/atproto/server/createAppPassword.d.ts +51 -0
  97. package/dist/lexicons/types/com/atproto/server/createInviteCode.d.ts +41 -0
  98. package/dist/lexicons/types/com/atproto/server/createInviteCodes.d.ts +50 -0
  99. package/dist/lexicons/types/com/atproto/server/createSession.d.ts +56 -0
  100. package/dist/lexicons/types/com/atproto/server/deactivateAccount.d.ts +30 -0
  101. package/dist/lexicons/types/com/atproto/server/defs.d.ts +23 -0
  102. package/dist/lexicons/types/com/atproto/server/deleteAccount.d.ts +32 -0
  103. package/dist/lexicons/types/com/atproto/server/deleteSession.d.ts +23 -0
  104. package/dist/lexicons/types/com/atproto/server/describeServer.d.ts +56 -0
  105. package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.d.ts +39 -0
  106. package/dist/lexicons/types/com/atproto/server/getServiceAuth.d.ts +41 -0
  107. package/dist/lexicons/types/com/atproto/server/getSession.d.ts +42 -0
  108. package/dist/lexicons/types/com/atproto/server/listAppPasswords.d.ts +44 -0
  109. package/dist/lexicons/types/com/atproto/server/refreshSession.d.ts +42 -0
  110. package/dist/lexicons/types/com/atproto/server/requestAccountDelete.d.ts +23 -0
  111. package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.d.ts +23 -0
  112. package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.d.ts +34 -0
  113. package/dist/lexicons/types/com/atproto/server/requestPasswordReset.d.ts +29 -0
  114. package/dist/lexicons/types/com/atproto/server/reserveSigningKey.d.ts +42 -0
  115. package/dist/lexicons/types/com/atproto/server/resetPassword.d.ts +31 -0
  116. package/dist/lexicons/types/com/atproto/server/revokeAppPassword.d.ts +29 -0
  117. package/dist/lexicons/types/com/atproto/server/updateEmail.d.ts +33 -0
  118. package/dist/lexicons/types/com/atproto/sync/getBlob.d.ts +36 -0
  119. package/dist/lexicons/types/com/atproto/sync/getBlocks.d.ts +35 -0
  120. package/dist/lexicons/types/com/atproto/sync/getCheckout.d.ts +33 -0
  121. package/dist/lexicons/types/com/atproto/sync/getHead.d.ts +37 -0
  122. package/dist/lexicons/types/com/atproto/sync/getLatestCommit.d.ts +38 -0
  123. package/dist/lexicons/types/com/atproto/sync/getRecord.d.ts +37 -0
  124. package/dist/lexicons/types/com/atproto/sync/getRepo.d.ts +36 -0
  125. package/dist/lexicons/types/com/atproto/sync/getRepoStatus.d.ts +42 -0
  126. package/dist/lexicons/types/com/atproto/sync/listBlobs.d.ts +42 -0
  127. package/dist/lexicons/types/com/atproto/sync/listRepos.d.ts +50 -0
  128. package/dist/lexicons/types/com/atproto/sync/listReposByCollection.d.ts +46 -0
  129. package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.d.ts +30 -0
  130. package/dist/lexicons/types/com/atproto/sync/requestCrawl.d.ts +30 -0
  131. package/dist/lexicons/types/com/atproto/sync/subscribeRepos.d.ts +111 -0
  132. package/dist/lexicons/types/com/atproto/temp/addReservedHandle.d.ts +39 -0
  133. package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.d.ts +36 -0
  134. package/dist/lexicons/types/com/atproto/temp/fetchLabels.d.ts +37 -0
  135. package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.d.ts +29 -0
  136. package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.d.ts +19 -0
  137. package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.d.ts +32 -0
  138. package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.d.ts +37 -0
  139. package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.d.ts +32 -0
  140. package/dist/lexicons/util.d.ts +5 -0
  141. package/dist/logger.d.ts +6 -0
  142. package/dist/package.json +74 -0
  143. package/dist/rpc/clio_connect.d.ts +103 -0
  144. package/dist/rpc/clio_pb.d.ts +457 -0
  145. package/dist/start.d.ts +1 -0
  146. package/dist/util/retry.d.ts +2 -0
  147. package/dist/util/uris.d.ts +1 -0
  148. package/dist/util.d.ts +23 -0
  149. package/package.json +4 -3
@@ -0,0 +1,39 @@
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;
@@ -0,0 +1,36 @@
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;
@@ -0,0 +1,37 @@
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;
@@ -0,0 +1,29 @@
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;
@@ -0,0 +1,19 @@
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;
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,37 @@
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;
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ export declare function isObj(v: unknown): v is Record<string, unknown>;
5
+ export declare function hasProp<K extends PropertyKey>(data: object, prop: K): data is Record<K, unknown>;
@@ -0,0 +1,6 @@
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>;
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@clioplaylists/clio",
3
+ "version": "0.1.2",
4
+ "description": "Appview server for the Clio application",
5
+ "main": "start.js",
6
+ "types": "index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc --project ./tsconfig.json && cp ./{.env,package.json} ./dist",
9
+ "start": "node dist/start.js",
10
+ "dev": "nodemon -r tsconfig-paths/register src/index.ts",
11
+ "test": "echo \"Error: no test specified\" && exit 1",
12
+ "lex:gen": "lex gen-server --yes ./src/lexicons ../../lexicons/com/clioplaylists/alpha/*/* ../../lexicons/com/atproto/*/*",
13
+ "buf:gen": "buf generate ./src/rpc",
14
+ "pretty": "prettier --write .",
15
+ "pretty:check": "prettier --check ."
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/Hoid/clio.git"
20
+ },
21
+ "keywords": [
22
+ "clio"
23
+ ],
24
+ "author": "Ezra Boeth",
25
+ "license": "AGPL-3.0-or-later",
26
+ "bugs": {
27
+ "url": "https://github.com/Hoid/clio/issues"
28
+ },
29
+ "homepage": "https://github.com/Hoid/clio#readme",
30
+ "files": [ "./dist" ],
31
+ "dependencies": {
32
+ "@atproto/api": "^0.13.35",
33
+ "@atproto/common": "^0.4.4",
34
+ "@atproto/crypto": "^0.4.4",
35
+ "@atproto/identity": "^0.4.6",
36
+ "@atproto/lexicon": "^0.4.6",
37
+ "@atproto/repo": "^0.5.5",
38
+ "@atproto/sync": "^0.1.13",
39
+ "@atproto/syntax": "^0.3.2",
40
+ "@atproto/xrpc-server": "^0.7.10",
41
+ "@bufbuild/protobuf": "^1.5.0",
42
+ "@connectrpc/connect": "^1.1.4",
43
+ "@connectrpc/connect-express": "^1.6.1",
44
+ "@connectrpc/connect-node": "^1.1.4",
45
+ "@connectrpc/connect-web": "^1.1.4",
46
+ "@types/cors": "^2.8.17",
47
+ "dotenv": "^16.4.7",
48
+ "express": "^4.21.1",
49
+ "pg": "^8.13.3",
50
+ "structured-headers": "^2.0.0",
51
+ "tsconfig-paths": "^4.2.0",
52
+ "uint8arrays": "^3.0.0",
53
+ "ws": "^8.18.0"
54
+ },
55
+ "devDependencies": {
56
+ "@atproto/lex-cli": "^0.5.7",
57
+ "@atproto/pds": "^0.4.34",
58
+ "@atproto/xrpc": "^0.6.4",
59
+ "@bufbuild/buf": "^1.50.0",
60
+ "@bufbuild/protoc-gen-es": "^1.5.0",
61
+ "@connectrpc/protoc-gen-connect-es": "^1.1.4",
62
+ "@types/express": "^5.0.0",
63
+ "@types/node": "^22.10.1",
64
+ "@types/pg": "^8.11.11",
65
+ "@types/ws": "^8.5.13",
66
+ "concurrently": "^9.1.0",
67
+ "nodemon": "^3.1.7",
68
+ "prettier": "^3.5.3",
69
+ "prettier-plugin-organize-imports": "^4.1.0",
70
+ "ts-node": "^10.9.2",
71
+ "tsc-alias": "^1.8.10",
72
+ "typescript": "^5.7.2"
73
+ }
74
+ }
@@ -0,0 +1,103 @@
1
+ import { MethodKind } from '@bufbuild/protobuf';
2
+ import { GetActorsRequest, GetActorsResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetIdentityByDidRequest, GetIdentityByDidResponse, GetIdentityByHandleRequest, GetIdentityByHandleResponse, GetLatestRevRequest, GetLatestRevResponse, GetProfileRecordsRequest, GetProfileRecordsResponse, GetSongRecordsRequest, GetSongRecordsResponse, HealthCheckRequest, HealthCheckResponse, UpdateActorUpstreamStatusRequest, UpdateActorUpstreamStatusResponse } from './clio_pb';
3
+ /**
4
+ * @generated from service clio.ClioService
5
+ */
6
+ export declare const ClioService: {
7
+ readonly typeName: "clio.ClioService";
8
+ readonly methods: {
9
+ /**
10
+ * Records
11
+ *
12
+ * @generated from rpc clio.ClioService.GetSongRecords
13
+ */
14
+ readonly getSongRecords: {
15
+ readonly name: "GetSongRecords";
16
+ readonly I: typeof GetSongRecordsRequest;
17
+ readonly O: typeof GetSongRecordsResponse;
18
+ readonly kind: MethodKind.Unary;
19
+ };
20
+ /**
21
+ * @generated from rpc clio.ClioService.GetProfileRecords
22
+ */
23
+ readonly getProfileRecords: {
24
+ readonly name: "GetProfileRecords";
25
+ readonly I: typeof GetProfileRecordsRequest;
26
+ readonly O: typeof GetProfileRecordsResponse;
27
+ readonly kind: MethodKind.Unary;
28
+ };
29
+ /**
30
+ * Profile
31
+ *
32
+ * @generated from rpc clio.ClioService.GetActors
33
+ */
34
+ readonly getActors: {
35
+ readonly name: "GetActors";
36
+ readonly I: typeof GetActorsRequest;
37
+ readonly O: typeof GetActorsResponse;
38
+ readonly kind: MethodKind.Unary;
39
+ };
40
+ /**
41
+ * @generated from rpc clio.ClioService.GetDidsByHandles
42
+ */
43
+ readonly getDidsByHandles: {
44
+ readonly name: "GetDidsByHandles";
45
+ readonly I: typeof GetDidsByHandlesRequest;
46
+ readonly O: typeof GetDidsByHandlesResponse;
47
+ readonly kind: MethodKind.Unary;
48
+ };
49
+ /**
50
+ * Sync
51
+ *
52
+ * @generated from rpc clio.ClioService.GetLatestRev
53
+ */
54
+ readonly getLatestRev: {
55
+ readonly name: "GetLatestRev";
56
+ readonly I: typeof GetLatestRevRequest;
57
+ readonly O: typeof GetLatestRevResponse;
58
+ readonly kind: MethodKind.Unary;
59
+ };
60
+ /**
61
+ * Identity
62
+ *
63
+ * @generated from rpc clio.ClioService.GetIdentityByDid
64
+ */
65
+ readonly getIdentityByDid: {
66
+ readonly name: "GetIdentityByDid";
67
+ readonly I: typeof GetIdentityByDidRequest;
68
+ readonly O: typeof GetIdentityByDidResponse;
69
+ readonly kind: MethodKind.Unary;
70
+ };
71
+ /**
72
+ * @generated from rpc clio.ClioService.GetIdentityByHandle
73
+ */
74
+ readonly getIdentityByHandle: {
75
+ readonly name: "GetIdentityByHandle";
76
+ readonly I: typeof GetIdentityByHandleRequest;
77
+ readonly O: typeof GetIdentityByHandleResponse;
78
+ readonly kind: MethodKind.Unary;
79
+ };
80
+ /**
81
+ * Moderation
82
+ *
83
+ * @generated from rpc clio.ClioService.UpdateActorUpstreamStatus
84
+ */
85
+ readonly updateActorUpstreamStatus: {
86
+ readonly name: "UpdateActorUpstreamStatus";
87
+ readonly I: typeof UpdateActorUpstreamStatusRequest;
88
+ readonly O: typeof UpdateActorUpstreamStatusResponse;
89
+ readonly kind: MethodKind.Unary;
90
+ };
91
+ /**
92
+ * Health Check
93
+ *
94
+ * @generated from rpc clio.ClioService.HealthCheck
95
+ */
96
+ readonly healthCheck: {
97
+ readonly name: "HealthCheck";
98
+ readonly I: typeof HealthCheckRequest;
99
+ readonly O: typeof HealthCheckResponse;
100
+ readonly kind: MethodKind.Unary;
101
+ };
102
+ };
103
+ };