@clioplaylists/clio 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/com/clioplaylists/alpha/feed/getRecommendedPlaylistsByUser.d.ts +3 -0
- package/dist/api/com/clioplaylists/alpha/feed/getRecommendedPlaylistsByUser.js +70 -0
- package/dist/api/health.js +10 -3
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +40 -2
- package/dist/api/oauth.d.ts +3 -0
- package/dist/api/oauth.js +63 -0
- package/dist/api/util.d.ts +1 -0
- package/dist/api/util.js +11 -6
- package/dist/api/well-known.d.ts +3 -0
- package/dist/api/well-known.js +35 -0
- package/dist/auth-verifier.d.ts +17 -4
- package/dist/auth-verifier.js +171 -165
- package/dist/client.js +15 -8
- package/dist/config.d.ts +23 -0
- package/dist/config.js +87 -7
- package/dist/context.d.ts +14 -0
- package/dist/context.js +17 -1
- package/dist/dataplane/client/hosts.d.ts +21 -0
- package/dist/dataplane/client/hosts.js +29 -0
- package/dist/dataplane/client/index.d.ts +13 -0
- package/dist/dataplane/client/index.js +120 -0
- package/dist/dataplane/client/util.d.ts +20 -0
- package/dist/dataplane/client/util.js +92 -0
- package/dist/dataplane/index.js +18 -2
- package/dist/dataplane/server/background.d.ts +1 -1
- package/dist/dataplane/server/background.js +12 -5
- package/dist/dataplane/server/db/database-schema.d.ts +5 -1
- package/dist/dataplane/server/db/database-schema.js +2 -1
- package/dist/dataplane/server/db/db.js +60 -20
- package/dist/dataplane/server/db/index.js +17 -1
- package/dist/dataplane/server/db/migrations/20250515T045948368Z-init.d.ts +3 -0
- package/dist/dataplane/server/db/migrations/20250515T045948368Z-init.js +170 -0
- package/dist/dataplane/server/db/migrations/20260119T210000000Z-song-recommendation.d.ts +3 -0
- package/dist/dataplane/server/db/migrations/20260119T210000000Z-song-recommendation.js +36 -0
- package/dist/dataplane/server/db/migrations/20260119T220000000Z-oauth.d.ts +3 -0
- package/dist/dataplane/server/db/migrations/20260119T220000000Z-oauth.js +25 -0
- package/dist/dataplane/server/db/migrations/index.d.ts +3 -2
- package/dist/dataplane/server/db/migrations/index.js +39 -2
- package/dist/dataplane/server/db/migrations/provider.js +5 -1
- package/dist/dataplane/server/db/pagination.d.ts +1 -1
- package/dist/dataplane/server/db/pagination.js +38 -25
- package/dist/dataplane/server/db/tables/actor-sync.d.ts +2 -2
- package/dist/dataplane/server/db/tables/actor-sync.js +4 -1
- package/dist/dataplane/server/db/tables/actor.d.ts +3 -3
- package/dist/dataplane/server/db/tables/actor.js +4 -1
- package/dist/dataplane/server/db/tables/artist-list-item.d.ts +2 -2
- package/dist/dataplane/server/db/tables/artist-list-item.js +4 -1
- package/dist/dataplane/server/db/tables/artist.js +4 -1
- package/dist/dataplane/server/db/tables/oauth-session.d.ts +9 -0
- package/dist/dataplane/server/db/tables/oauth-session.js +4 -0
- package/dist/dataplane/server/db/tables/oauth-state.d.ts +10 -0
- package/dist/dataplane/server/db/tables/oauth-state.js +4 -0
- package/dist/dataplane/server/db/tables/playlist-idea.d.ts +3 -3
- package/dist/dataplane/server/db/tables/playlist-idea.js +4 -1
- package/dist/dataplane/server/db/tables/playlist-item.js +4 -1
- package/dist/dataplane/server/db/tables/playlist.d.ts +1 -0
- package/dist/dataplane/server/db/tables/playlist.js +4 -1
- package/dist/dataplane/server/db/tables/profile.d.ts +5 -5
- package/dist/dataplane/server/db/tables/profile.js +4 -1
- package/dist/dataplane/server/db/tables/record.d.ts +1 -1
- package/dist/dataplane/server/db/tables/record.js +4 -1
- package/dist/dataplane/server/db/tables/song-recommendation.d.ts +17 -0
- package/dist/dataplane/server/db/tables/song-recommendation.js +4 -0
- package/dist/dataplane/server/db/tables/song.d.ts +2 -2
- package/dist/dataplane/server/db/tables/song.js +4 -1
- package/dist/dataplane/server/db/tables/subscription-cursor.d.ts +9 -0
- package/dist/dataplane/server/db/tables/subscription-cursor.js +4 -0
- package/dist/dataplane/server/db/types.js +2 -1
- package/dist/dataplane/server/db/util.d.ts +7 -3
- package/dist/dataplane/server/db/util.js +26 -18
- package/dist/dataplane/server/index.js +21 -13
- package/dist/dataplane/server/indexing/index.d.ts +2 -0
- package/dist/dataplane/server/indexing/index.js +82 -66
- package/dist/dataplane/server/indexing/plugins/playlist-idea.d.ts +1 -2
- package/dist/dataplane/server/indexing/plugins/playlist-idea.js +50 -41
- package/dist/dataplane/server/indexing/plugins/profile.js +45 -12
- package/dist/dataplane/server/indexing/plugins/song-recommendation.d.ts +9 -0
- package/dist/dataplane/server/indexing/plugins/song-recommendation.js +101 -0
- package/dist/dataplane/server/indexing/processor.js +12 -11
- package/dist/dataplane/server/routes/identity.d.ts +19 -0
- package/dist/dataplane/server/routes/identity.js +32 -25
- package/dist/dataplane/server/routes/index.js +15 -10
- package/dist/dataplane/server/routes/profile.js +17 -25
- package/dist/dataplane/server/routes/records.d.ts +18 -0
- package/dist/dataplane/server/routes/records.js +48 -22
- package/dist/dataplane/server/routes/sync.js +5 -3
- package/dist/dataplane/server/storage/subscription-cursor.d.ts +3 -0
- package/dist/dataplane/server/storage/subscription-cursor.js +25 -0
- package/dist/dataplane/server/subscription.d.ts +6 -3
- package/dist/dataplane/server/subscription.js +73 -63
- package/dist/error.js +9 -5
- package/dist/index.d.ts +8 -3
- package/dist/index.js +96 -27
- package/dist/lexicons/index.d.ts +3 -210
- package/dist/lexicons/index.js +26 -403
- package/dist/lexicons/lexicons.d.ts +409 -8107
- package/dist/lexicons/lexicons.js +134 -4276
- package/dist/lexicons/types/com/atproto/repo/strongRef.d.ts +4 -4
- package/dist/lexicons/types/com/atproto/repo/strongRef.js +13 -9
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.d.ts +10 -8
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.js +13 -9
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.d.ts +20 -11
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.js +29 -14
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getRecommendedPlaylistsByUser.d.ts +36 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getRecommendedPlaylistsByUser.js +6 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.d.ts +11 -14
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.js +20 -23
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/recommendedPlaylist.d.ts +18 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/recommendedPlaylist.js +15 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/songRecommendation.d.ts +18 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/songRecommendation.js +15 -0
- package/dist/lexicons/util.d.ts +33 -2
- package/dist/lexicons/util.js +32 -4
- package/dist/logger.js +16 -10
- package/dist/oauth/client.d.ts +14 -0
- package/dist/oauth/client.js +126 -0
- package/dist/oauth/pds-agent.d.ts +3 -0
- package/dist/oauth/pds-agent.js +15 -0
- package/dist/rpc/clio_connect.d.ts +101 -11
- package/dist/rpc/clio_connect.js +138 -45
- package/dist/rpc/clio_pb.d.ts +448 -30
- package/dist/rpc/clio_pb.js +967 -272
- package/dist/start.js +9 -1
- package/dist/util/retry.js +10 -9
- package/dist/util/uris.js +6 -3
- package/dist/util.d.ts +0 -1
- package/dist/util.js +61 -20
- package/package.json +26 -5
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOauthClient = exports.getOauthClientMetadata = exports.getOauthDb = exports.getOauthRedirectUri = void 0;
|
|
4
|
+
const oauth_client_node_1 = require("@atproto/oauth-client-node");
|
|
5
|
+
const db_1 = require("../dataplane/server/db");
|
|
6
|
+
const isRedirectUri = (uri) => {
|
|
7
|
+
if (uri.startsWith('https://'))
|
|
8
|
+
return true;
|
|
9
|
+
// Local dev patterns accepted by @atproto/oauth-client types.
|
|
10
|
+
if (uri === 'http://127.0.0.1')
|
|
11
|
+
return true;
|
|
12
|
+
if (uri.startsWith('http://127.0.0.1/'))
|
|
13
|
+
return true;
|
|
14
|
+
if (uri.startsWith('http://127.0.0.1:'))
|
|
15
|
+
return true;
|
|
16
|
+
if (uri.startsWith('http://127.0.0.1?'))
|
|
17
|
+
return true;
|
|
18
|
+
if (uri.startsWith('http://127.0.0.1#'))
|
|
19
|
+
return true;
|
|
20
|
+
if (uri.startsWith('http://[::1]'))
|
|
21
|
+
return true;
|
|
22
|
+
// Native app style redirect (e.g. "com.example:/callback")
|
|
23
|
+
return /^[a-zA-Z][a-zA-Z0-9+.-]*\.[a-zA-Z0-9+.-]+:\/.+/.test(uri);
|
|
24
|
+
};
|
|
25
|
+
const getOauthRedirectUri = (ctx) => {
|
|
26
|
+
const redirectUri = `${ctx.cfg.publicUrl}/oauth/callback`;
|
|
27
|
+
if (!isRedirectUri(redirectUri)) {
|
|
28
|
+
throw new Error(`Invalid OAuth redirect_uri derived from publicUrl: ${redirectUri}`);
|
|
29
|
+
}
|
|
30
|
+
return redirectUri;
|
|
31
|
+
};
|
|
32
|
+
exports.getOauthRedirectUri = getOauthRedirectUri;
|
|
33
|
+
const createDbStateStore = (db) => {
|
|
34
|
+
const store = {
|
|
35
|
+
get: async (key) => {
|
|
36
|
+
const row = await db.selectFrom('oauth_state').select(['key', 'value', 'expires_at']).where('key', '=', key).executeTakeFirst();
|
|
37
|
+
if (!row)
|
|
38
|
+
return undefined;
|
|
39
|
+
if (row.expires_at < Date.now()) {
|
|
40
|
+
await db.deleteFrom('oauth_state').where('key', '=', key).execute();
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
return row.value;
|
|
44
|
+
},
|
|
45
|
+
set: async (key, value) => {
|
|
46
|
+
const now = Date.now();
|
|
47
|
+
const expiresAt = now + 15 * 60 * 1000;
|
|
48
|
+
await db
|
|
49
|
+
.insertInto('oauth_state')
|
|
50
|
+
.values({ key, value, created_at: now, expires_at: expiresAt })
|
|
51
|
+
.onConflict((oc) => oc.column('key').doUpdateSet({ value, expires_at: expiresAt }))
|
|
52
|
+
.execute();
|
|
53
|
+
},
|
|
54
|
+
del: async (key) => {
|
|
55
|
+
await db.deleteFrom('oauth_state').where('key', '=', key).execute();
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
return store;
|
|
59
|
+
};
|
|
60
|
+
const createDbSessionStore = (db) => {
|
|
61
|
+
const store = {
|
|
62
|
+
get: async (key) => {
|
|
63
|
+
const row = await db.selectFrom('oauth_session').select(['key', 'value']).where('key', '=', key).executeTakeFirst();
|
|
64
|
+
if (!row)
|
|
65
|
+
return undefined;
|
|
66
|
+
return row.value;
|
|
67
|
+
},
|
|
68
|
+
set: async (key, value) => {
|
|
69
|
+
const now = Date.now();
|
|
70
|
+
await db
|
|
71
|
+
.insertInto('oauth_session')
|
|
72
|
+
.values({ key, value, updated_at: now })
|
|
73
|
+
.onConflict((oc) => oc.column('key').doUpdateSet({ value, updated_at: now }))
|
|
74
|
+
.execute();
|
|
75
|
+
},
|
|
76
|
+
del: async (key) => {
|
|
77
|
+
await db.deleteFrom('oauth_session').where('key', '=', key).execute();
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
return store;
|
|
81
|
+
};
|
|
82
|
+
const getOauthDb = (ctx) => {
|
|
83
|
+
const url = ctx.cfg.dbPostgresUrl;
|
|
84
|
+
if (!url) {
|
|
85
|
+
throw new Error('CLIO_DB_POSTGRES_URL is required for OAuth');
|
|
86
|
+
}
|
|
87
|
+
return new db_1.Database({ url, schema: ctx.cfg.dbPostgresSchema });
|
|
88
|
+
};
|
|
89
|
+
exports.getOauthDb = getOauthDb;
|
|
90
|
+
const getOauthClientMetadata = (ctx) => {
|
|
91
|
+
const publicUrl = ctx.cfg.publicUrl;
|
|
92
|
+
const clientId = `${publicUrl}/.well-known/atproto-oauth-client.json`;
|
|
93
|
+
const redirectUri = (0, exports.getOauthRedirectUri)(ctx);
|
|
94
|
+
const redirectUris = [redirectUri];
|
|
95
|
+
return {
|
|
96
|
+
client_id: clientId,
|
|
97
|
+
application_type: 'web',
|
|
98
|
+
grant_types: ['authorization_code', 'refresh_token'],
|
|
99
|
+
response_types: ['code'],
|
|
100
|
+
redirect_uris: redirectUris,
|
|
101
|
+
scope: ctx.cfg.oauthScope,
|
|
102
|
+
token_endpoint_auth_method: 'none',
|
|
103
|
+
dpop_bound_access_tokens: true,
|
|
104
|
+
client_name: 'Clio',
|
|
105
|
+
client_uri: publicUrl,
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
exports.getOauthClientMetadata = getOauthClientMetadata;
|
|
109
|
+
exports.getOauthClient = (() => {
|
|
110
|
+
let client;
|
|
111
|
+
let db;
|
|
112
|
+
return (ctx) => {
|
|
113
|
+
if (client && db)
|
|
114
|
+
return client;
|
|
115
|
+
db = (0, exports.getOauthDb)(ctx);
|
|
116
|
+
const stateStore = createDbStateStore(db.db);
|
|
117
|
+
const sessionStore = createDbSessionStore(db.db);
|
|
118
|
+
client = new oauth_client_node_1.NodeOAuthClient({
|
|
119
|
+
allowHttp: ctx.cfg.oauthAllowHttp,
|
|
120
|
+
clientMetadata: (0, exports.getOauthClientMetadata)(ctx),
|
|
121
|
+
stateStore,
|
|
122
|
+
sessionStore,
|
|
123
|
+
});
|
|
124
|
+
return client;
|
|
125
|
+
};
|
|
126
|
+
})();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPdsAgentForDid = void 0;
|
|
4
|
+
const api_1 = require("@atproto/api");
|
|
5
|
+
const client_1 = require("./client");
|
|
6
|
+
const createPdsAgentForDid = async (ctx, did) => {
|
|
7
|
+
const oauth = (0, client_1.getOauthClient)(ctx);
|
|
8
|
+
const session = await oauth.restore(did, 'auto');
|
|
9
|
+
const mgr = {
|
|
10
|
+
did: session.did,
|
|
11
|
+
fetchHandler: async (url, init) => session.fetchHandler(url, init),
|
|
12
|
+
};
|
|
13
|
+
return new api_1.Agent(mgr);
|
|
14
|
+
};
|
|
15
|
+
exports.createPdsAgentForDid = createPdsAgentForDid;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { GetActorsRequest, GetActorsResponse, GetActorTakedownRequest, GetActorTakedownResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetIdentityByDidRequest, GetIdentityByDidResponse, GetIdentityByHandleRequest, GetIdentityByHandleResponse, GetLatestRevRequest, GetLatestRevResponse, GetProfileRecordsRequest, GetProfileRecordsResponse, GetRecommendedPlaylistsForPlaylistIdeaRequest, GetRecommendedPlaylistsForPlaylistIdeaResponse, GetRecordTakedownRequest, GetRecordTakedownResponse, GetSongRecommendationRecordsByUserRequest, GetSongRecommendationRecordsByUserResponse, HealthCheckRequest, HealthCheckResponse, TakedownActorRequest, TakedownActorResponse, TakedownBlobRequest, TakedownBlobResponse, TakedownRecordRequest, TakedownRecordResponse, UntakedownActorRequest, UntakedownActorResponse, UntakedownBlobRequest, UntakedownBlobResponse, UntakedownRecordRequest, UntakedownRecordResponse, UpdateActorUpstreamStatusRequest, UpdateActorUpstreamStatusResponse } from "./clio_pb";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service clio.ClioService
|
|
5
5
|
*/
|
|
@@ -9,15 +9,6 @@ export declare const ClioService: {
|
|
|
9
9
|
/**
|
|
10
10
|
* Records
|
|
11
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
12
|
* @generated from rpc clio.ClioService.GetProfileRecords
|
|
22
13
|
*/
|
|
23
14
|
readonly getProfileRecords: {
|
|
@@ -26,6 +17,24 @@ export declare const ClioService: {
|
|
|
26
17
|
readonly O: typeof GetProfileRecordsResponse;
|
|
27
18
|
readonly kind: MethodKind.Unary;
|
|
28
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc clio.ClioService.GetRecommendedPlaylistsForPlaylistIdea
|
|
22
|
+
*/
|
|
23
|
+
readonly getRecommendedPlaylistsForPlaylistIdea: {
|
|
24
|
+
readonly name: "GetRecommendedPlaylistsForPlaylistIdea";
|
|
25
|
+
readonly I: typeof GetRecommendedPlaylistsForPlaylistIdeaRequest;
|
|
26
|
+
readonly O: typeof GetRecommendedPlaylistsForPlaylistIdeaResponse;
|
|
27
|
+
readonly kind: MethodKind.Unary;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @generated from rpc clio.ClioService.GetSongRecommendationRecordsByUser
|
|
31
|
+
*/
|
|
32
|
+
readonly getSongRecommendationRecordsByUser: {
|
|
33
|
+
readonly name: "GetSongRecommendationRecordsByUser";
|
|
34
|
+
readonly I: typeof GetSongRecommendationRecordsByUserRequest;
|
|
35
|
+
readonly O: typeof GetSongRecommendationRecordsByUserResponse;
|
|
36
|
+
readonly kind: MethodKind.Unary;
|
|
37
|
+
};
|
|
29
38
|
/**
|
|
30
39
|
* Profile
|
|
31
40
|
*
|
|
@@ -80,6 +89,60 @@ export declare const ClioService: {
|
|
|
80
89
|
/**
|
|
81
90
|
* Moderation
|
|
82
91
|
*
|
|
92
|
+
* @generated from rpc clio.ClioService.TakedownBlob
|
|
93
|
+
*/
|
|
94
|
+
readonly takedownBlob: {
|
|
95
|
+
readonly name: "TakedownBlob";
|
|
96
|
+
readonly I: typeof TakedownBlobRequest;
|
|
97
|
+
readonly O: typeof TakedownBlobResponse;
|
|
98
|
+
readonly kind: MethodKind.Unary;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* @generated from rpc clio.ClioService.TakedownRecord
|
|
102
|
+
*/
|
|
103
|
+
readonly takedownRecord: {
|
|
104
|
+
readonly name: "TakedownRecord";
|
|
105
|
+
readonly I: typeof TakedownRecordRequest;
|
|
106
|
+
readonly O: typeof TakedownRecordResponse;
|
|
107
|
+
readonly kind: MethodKind.Unary;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* @generated from rpc clio.ClioService.TakedownActor
|
|
111
|
+
*/
|
|
112
|
+
readonly takedownActor: {
|
|
113
|
+
readonly name: "TakedownActor";
|
|
114
|
+
readonly I: typeof TakedownActorRequest;
|
|
115
|
+
readonly O: typeof TakedownActorResponse;
|
|
116
|
+
readonly kind: MethodKind.Unary;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* @generated from rpc clio.ClioService.UntakedownBlob
|
|
120
|
+
*/
|
|
121
|
+
readonly untakedownBlob: {
|
|
122
|
+
readonly name: "UntakedownBlob";
|
|
123
|
+
readonly I: typeof UntakedownBlobRequest;
|
|
124
|
+
readonly O: typeof UntakedownBlobResponse;
|
|
125
|
+
readonly kind: MethodKind.Unary;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* @generated from rpc clio.ClioService.UntakedownRecord
|
|
129
|
+
*/
|
|
130
|
+
readonly untakedownRecord: {
|
|
131
|
+
readonly name: "UntakedownRecord";
|
|
132
|
+
readonly I: typeof UntakedownRecordRequest;
|
|
133
|
+
readonly O: typeof UntakedownRecordResponse;
|
|
134
|
+
readonly kind: MethodKind.Unary;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* @generated from rpc clio.ClioService.UntakedownActor
|
|
138
|
+
*/
|
|
139
|
+
readonly untakedownActor: {
|
|
140
|
+
readonly name: "UntakedownActor";
|
|
141
|
+
readonly I: typeof UntakedownActorRequest;
|
|
142
|
+
readonly O: typeof UntakedownActorResponse;
|
|
143
|
+
readonly kind: MethodKind.Unary;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
83
146
|
* @generated from rpc clio.ClioService.UpdateActorUpstreamStatus
|
|
84
147
|
*/
|
|
85
148
|
readonly updateActorUpstreamStatus: {
|
|
@@ -88,6 +151,33 @@ export declare const ClioService: {
|
|
|
88
151
|
readonly O: typeof UpdateActorUpstreamStatusResponse;
|
|
89
152
|
readonly kind: MethodKind.Unary;
|
|
90
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* @generated from rpc clio.ClioService.GetBlobTakedown
|
|
156
|
+
*/
|
|
157
|
+
readonly getBlobTakedown: {
|
|
158
|
+
readonly name: "GetBlobTakedown";
|
|
159
|
+
readonly I: typeof GetBlobTakedownRequest;
|
|
160
|
+
readonly O: typeof GetBlobTakedownResponse;
|
|
161
|
+
readonly kind: MethodKind.Unary;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* @generated from rpc clio.ClioService.GetRecordTakedown
|
|
165
|
+
*/
|
|
166
|
+
readonly getRecordTakedown: {
|
|
167
|
+
readonly name: "GetRecordTakedown";
|
|
168
|
+
readonly I: typeof GetRecordTakedownRequest;
|
|
169
|
+
readonly O: typeof GetRecordTakedownResponse;
|
|
170
|
+
readonly kind: MethodKind.Unary;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* @generated from rpc clio.ClioService.GetActorTakedown
|
|
174
|
+
*/
|
|
175
|
+
readonly getActorTakedown: {
|
|
176
|
+
readonly name: "GetActorTakedown";
|
|
177
|
+
readonly I: typeof GetActorTakedownRequest;
|
|
178
|
+
readonly O: typeof GetActorTakedownResponse;
|
|
179
|
+
readonly kind: MethodKind.Unary;
|
|
180
|
+
};
|
|
91
181
|
/**
|
|
92
182
|
* Health Check
|
|
93
183
|
*
|
package/dist/rpc/clio_connect.js
CHANGED
|
@@ -1,34 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension="
|
|
2
3
|
// @generated from file clio.proto (package clio, syntax proto3)
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ClioService = void 0;
|
|
8
|
+
const clio_pb_1 = require("./clio_pb");
|
|
9
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
7
10
|
/**
|
|
8
11
|
* @generated from service clio.ClioService
|
|
9
12
|
*/
|
|
10
|
-
|
|
11
|
-
typeName:
|
|
13
|
+
exports.ClioService = {
|
|
14
|
+
typeName: "clio.ClioService",
|
|
12
15
|
methods: {
|
|
13
16
|
/**
|
|
14
17
|
* Records
|
|
15
18
|
*
|
|
16
|
-
* @generated from rpc clio.ClioService.
|
|
19
|
+
* @generated from rpc clio.ClioService.GetProfileRecords
|
|
17
20
|
*/
|
|
18
|
-
|
|
19
|
-
name:
|
|
20
|
-
I:
|
|
21
|
-
O:
|
|
22
|
-
kind: MethodKind.Unary,
|
|
21
|
+
getProfileRecords: {
|
|
22
|
+
name: "GetProfileRecords",
|
|
23
|
+
I: clio_pb_1.GetProfileRecordsRequest,
|
|
24
|
+
O: clio_pb_1.GetProfileRecordsResponse,
|
|
25
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
23
26
|
},
|
|
24
27
|
/**
|
|
25
|
-
* @generated from rpc clio.ClioService.
|
|
28
|
+
* @generated from rpc clio.ClioService.GetRecommendedPlaylistsForPlaylistIdea
|
|
26
29
|
*/
|
|
27
|
-
|
|
28
|
-
name:
|
|
29
|
-
I:
|
|
30
|
-
O:
|
|
31
|
-
kind: MethodKind.Unary,
|
|
30
|
+
getRecommendedPlaylistsForPlaylistIdea: {
|
|
31
|
+
name: "GetRecommendedPlaylistsForPlaylistIdea",
|
|
32
|
+
I: clio_pb_1.GetRecommendedPlaylistsForPlaylistIdeaRequest,
|
|
33
|
+
O: clio_pb_1.GetRecommendedPlaylistsForPlaylistIdeaResponse,
|
|
34
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* @generated from rpc clio.ClioService.GetSongRecommendationRecordsByUser
|
|
38
|
+
*/
|
|
39
|
+
getSongRecommendationRecordsByUser: {
|
|
40
|
+
name: "GetSongRecommendationRecordsByUser",
|
|
41
|
+
I: clio_pb_1.GetSongRecommendationRecordsByUserRequest,
|
|
42
|
+
O: clio_pb_1.GetSongRecommendationRecordsByUserResponse,
|
|
43
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
32
44
|
},
|
|
33
45
|
/**
|
|
34
46
|
* Profile
|
|
@@ -36,19 +48,19 @@ export const ClioService = {
|
|
|
36
48
|
* @generated from rpc clio.ClioService.GetActors
|
|
37
49
|
*/
|
|
38
50
|
getActors: {
|
|
39
|
-
name:
|
|
40
|
-
I: GetActorsRequest,
|
|
41
|
-
O: GetActorsResponse,
|
|
42
|
-
kind: MethodKind.Unary,
|
|
51
|
+
name: "GetActors",
|
|
52
|
+
I: clio_pb_1.GetActorsRequest,
|
|
53
|
+
O: clio_pb_1.GetActorsResponse,
|
|
54
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
43
55
|
},
|
|
44
56
|
/**
|
|
45
57
|
* @generated from rpc clio.ClioService.GetDidsByHandles
|
|
46
58
|
*/
|
|
47
59
|
getDidsByHandles: {
|
|
48
|
-
name:
|
|
49
|
-
I: GetDidsByHandlesRequest,
|
|
50
|
-
O: GetDidsByHandlesResponse,
|
|
51
|
-
kind: MethodKind.Unary,
|
|
60
|
+
name: "GetDidsByHandles",
|
|
61
|
+
I: clio_pb_1.GetDidsByHandlesRequest,
|
|
62
|
+
O: clio_pb_1.GetDidsByHandlesResponse,
|
|
63
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
52
64
|
},
|
|
53
65
|
/**
|
|
54
66
|
* Sync
|
|
@@ -56,10 +68,10 @@ export const ClioService = {
|
|
|
56
68
|
* @generated from rpc clio.ClioService.GetLatestRev
|
|
57
69
|
*/
|
|
58
70
|
getLatestRev: {
|
|
59
|
-
name:
|
|
60
|
-
I: GetLatestRevRequest,
|
|
61
|
-
O: GetLatestRevResponse,
|
|
62
|
-
kind: MethodKind.Unary,
|
|
71
|
+
name: "GetLatestRev",
|
|
72
|
+
I: clio_pb_1.GetLatestRevRequest,
|
|
73
|
+
O: clio_pb_1.GetLatestRevResponse,
|
|
74
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
63
75
|
},
|
|
64
76
|
/**
|
|
65
77
|
* Identity
|
|
@@ -67,30 +79,111 @@ export const ClioService = {
|
|
|
67
79
|
* @generated from rpc clio.ClioService.GetIdentityByDid
|
|
68
80
|
*/
|
|
69
81
|
getIdentityByDid: {
|
|
70
|
-
name:
|
|
71
|
-
I: GetIdentityByDidRequest,
|
|
72
|
-
O: GetIdentityByDidResponse,
|
|
73
|
-
kind: MethodKind.Unary,
|
|
82
|
+
name: "GetIdentityByDid",
|
|
83
|
+
I: clio_pb_1.GetIdentityByDidRequest,
|
|
84
|
+
O: clio_pb_1.GetIdentityByDidResponse,
|
|
85
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
74
86
|
},
|
|
75
87
|
/**
|
|
76
88
|
* @generated from rpc clio.ClioService.GetIdentityByHandle
|
|
77
89
|
*/
|
|
78
90
|
getIdentityByHandle: {
|
|
79
|
-
name:
|
|
80
|
-
I: GetIdentityByHandleRequest,
|
|
81
|
-
O: GetIdentityByHandleResponse,
|
|
82
|
-
kind: MethodKind.Unary,
|
|
91
|
+
name: "GetIdentityByHandle",
|
|
92
|
+
I: clio_pb_1.GetIdentityByHandleRequest,
|
|
93
|
+
O: clio_pb_1.GetIdentityByHandleResponse,
|
|
94
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
83
95
|
},
|
|
84
96
|
/**
|
|
85
97
|
* Moderation
|
|
86
98
|
*
|
|
99
|
+
* @generated from rpc clio.ClioService.TakedownBlob
|
|
100
|
+
*/
|
|
101
|
+
takedownBlob: {
|
|
102
|
+
name: "TakedownBlob",
|
|
103
|
+
I: clio_pb_1.TakedownBlobRequest,
|
|
104
|
+
O: clio_pb_1.TakedownBlobResponse,
|
|
105
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* @generated from rpc clio.ClioService.TakedownRecord
|
|
109
|
+
*/
|
|
110
|
+
takedownRecord: {
|
|
111
|
+
name: "TakedownRecord",
|
|
112
|
+
I: clio_pb_1.TakedownRecordRequest,
|
|
113
|
+
O: clio_pb_1.TakedownRecordResponse,
|
|
114
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* @generated from rpc clio.ClioService.TakedownActor
|
|
118
|
+
*/
|
|
119
|
+
takedownActor: {
|
|
120
|
+
name: "TakedownActor",
|
|
121
|
+
I: clio_pb_1.TakedownActorRequest,
|
|
122
|
+
O: clio_pb_1.TakedownActorResponse,
|
|
123
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* @generated from rpc clio.ClioService.UntakedownBlob
|
|
127
|
+
*/
|
|
128
|
+
untakedownBlob: {
|
|
129
|
+
name: "UntakedownBlob",
|
|
130
|
+
I: clio_pb_1.UntakedownBlobRequest,
|
|
131
|
+
O: clio_pb_1.UntakedownBlobResponse,
|
|
132
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* @generated from rpc clio.ClioService.UntakedownRecord
|
|
136
|
+
*/
|
|
137
|
+
untakedownRecord: {
|
|
138
|
+
name: "UntakedownRecord",
|
|
139
|
+
I: clio_pb_1.UntakedownRecordRequest,
|
|
140
|
+
O: clio_pb_1.UntakedownRecordResponse,
|
|
141
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* @generated from rpc clio.ClioService.UntakedownActor
|
|
145
|
+
*/
|
|
146
|
+
untakedownActor: {
|
|
147
|
+
name: "UntakedownActor",
|
|
148
|
+
I: clio_pb_1.UntakedownActorRequest,
|
|
149
|
+
O: clio_pb_1.UntakedownActorResponse,
|
|
150
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
87
153
|
* @generated from rpc clio.ClioService.UpdateActorUpstreamStatus
|
|
88
154
|
*/
|
|
89
155
|
updateActorUpstreamStatus: {
|
|
90
|
-
name:
|
|
91
|
-
I: UpdateActorUpstreamStatusRequest,
|
|
92
|
-
O: UpdateActorUpstreamStatusResponse,
|
|
93
|
-
kind: MethodKind.Unary,
|
|
156
|
+
name: "UpdateActorUpstreamStatus",
|
|
157
|
+
I: clio_pb_1.UpdateActorUpstreamStatusRequest,
|
|
158
|
+
O: clio_pb_1.UpdateActorUpstreamStatusResponse,
|
|
159
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* @generated from rpc clio.ClioService.GetBlobTakedown
|
|
163
|
+
*/
|
|
164
|
+
getBlobTakedown: {
|
|
165
|
+
name: "GetBlobTakedown",
|
|
166
|
+
I: clio_pb_1.GetBlobTakedownRequest,
|
|
167
|
+
O: clio_pb_1.GetBlobTakedownResponse,
|
|
168
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
169
|
+
},
|
|
170
|
+
/**
|
|
171
|
+
* @generated from rpc clio.ClioService.GetRecordTakedown
|
|
172
|
+
*/
|
|
173
|
+
getRecordTakedown: {
|
|
174
|
+
name: "GetRecordTakedown",
|
|
175
|
+
I: clio_pb_1.GetRecordTakedownRequest,
|
|
176
|
+
O: clio_pb_1.GetRecordTakedownResponse,
|
|
177
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* @generated from rpc clio.ClioService.GetActorTakedown
|
|
181
|
+
*/
|
|
182
|
+
getActorTakedown: {
|
|
183
|
+
name: "GetActorTakedown",
|
|
184
|
+
I: clio_pb_1.GetActorTakedownRequest,
|
|
185
|
+
O: clio_pb_1.GetActorTakedownResponse,
|
|
186
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
94
187
|
},
|
|
95
188
|
/**
|
|
96
189
|
* Health Check
|
|
@@ -98,10 +191,10 @@ export const ClioService = {
|
|
|
98
191
|
* @generated from rpc clio.ClioService.HealthCheck
|
|
99
192
|
*/
|
|
100
193
|
healthCheck: {
|
|
101
|
-
name:
|
|
102
|
-
I: HealthCheckRequest,
|
|
103
|
-
O: HealthCheckResponse,
|
|
104
|
-
kind: MethodKind.Unary,
|
|
194
|
+
name: "HealthCheck",
|
|
195
|
+
I: clio_pb_1.HealthCheckRequest,
|
|
196
|
+
O: clio_pb_1.HealthCheckResponse,
|
|
197
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
105
198
|
},
|
|
106
|
-
}
|
|
199
|
+
}
|
|
107
200
|
};
|