@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.
- package/dist/.env +1 -1
- package/dist/api/com/clioplaylists/alpha/actor/getProfile.d.ts +0 -0
- package/dist/api/com/clioplaylists/alpha/feed/getSongs.d.ts +0 -0
- package/dist/api/health.d.ts +3 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/util.d.ts +9 -0
- package/dist/auth-verifier.d.ts +92 -0
- package/dist/client.d.ts +9 -0
- package/dist/config.d.ts +21 -0
- package/dist/context.d.ts +11 -0
- package/dist/dataplane/client.d.ts +27 -0
- package/dist/dataplane/index.d.ts +2 -0
- package/dist/dataplane/server/background.d.ts +13 -0
- package/dist/dataplane/server/db/database-schema.d.ts +13 -0
- package/dist/dataplane/server/db/db.d.ts +32 -0
- package/dist/dataplane/server/db/index.d.ts +1 -0
- package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.d.ts +3 -0
- package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.d.ts +3 -0
- package/dist/dataplane/server/db/migrations/index.d.ts +2 -0
- package/dist/dataplane/server/db/migrations/provider.d.ts +11 -0
- package/dist/dataplane/server/db/pagination.d.ts +86 -0
- package/dist/dataplane/server/db/tables/actor-sync.d.ts +9 -0
- package/dist/dataplane/server/db/tables/actor.d.ts +11 -0
- package/dist/dataplane/server/db/tables/artist-list-item.d.ts +11 -0
- package/dist/dataplane/server/db/tables/artist.d.ts +10 -0
- package/dist/dataplane/server/db/tables/playlist-idea.d.ts +14 -0
- package/dist/dataplane/server/db/tables/playlist-item.d.ts +11 -0
- package/dist/dataplane/server/db/tables/playlist.d.ts +10 -0
- package/dist/dataplane/server/db/tables/profile.d.ts +15 -0
- package/dist/dataplane/server/db/tables/record.d.ts +12 -0
- package/dist/dataplane/server/db/tables/song.d.ts +12 -0
- package/dist/dataplane/server/db/types.d.ts +9 -0
- package/dist/dataplane/server/db/util.d.ts +20 -0
- package/dist/dataplane/server/index.d.ts +11 -0
- package/dist/dataplane/server/indexing/index.d.ts +32 -0
- package/dist/dataplane/server/indexing/plugins/playlist-idea.d.ts +14 -0
- package/dist/dataplane/server/indexing/plugins/profile.d.ts +8 -0
- package/dist/dataplane/server/indexing/processor.d.ts +22 -0
- package/dist/dataplane/server/routes/identity.d.ts +6 -0
- package/dist/dataplane/server/routes/index.d.ts +5 -0
- package/dist/dataplane/server/routes/profile.d.ts +5 -0
- package/dist/dataplane/server/routes/records.d.ts +11 -0
- package/dist/dataplane/server/routes/sync.d.ts +5 -0
- package/dist/dataplane/server/subscription.d.ts +25 -0
- package/dist/error.d.ts +2 -0
- package/dist/index.d.ts +20 -0
- package/dist/lexicons/index.d.ts +278 -0
- package/dist/lexicons/lexicons.d.ts +8466 -0
- package/dist/lexicons/types/com/atproto/admin/defs.d.ts +50 -0
- package/dist/lexicons/types/com/atproto/admin/deleteAccount.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/admin/getAccountInfo.d.ts +33 -0
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.d.ts +44 -0
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/admin/sendEmail.d.ts +45 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.d.ts +51 -0
- package/dist/lexicons/types/com/atproto/identity/defs.d.ts +14 -0
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/identity/resolveDid.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/identity/resolveHandle.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/identity/resolveIdentity.d.ts +35 -0
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.d.ts +46 -0
- package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/identity/updateHandle.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/label/defs.d.ts +73 -0
- package/dist/lexicons/types/com/atproto/label/queryLabels.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/lexicon/schema.d.ts +11 -0
- package/dist/lexicons/types/com/atproto/moderation/createReport.d.ts +57 -0
- package/dist/lexicons/types/com/atproto/moderation/defs.d.ts +20 -0
- package/dist/lexicons/types/com/atproto/repo/applyWrites.d.ts +98 -0
- package/dist/lexicons/types/com/atproto/repo/createRecord.d.ts +56 -0
- package/dist/lexicons/types/com/atproto/repo/defs.d.ts +11 -0
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.d.ts +51 -0
- package/dist/lexicons/types/com/atproto/repo/describeRepo.d.ts +43 -0
- package/dist/lexicons/types/com/atproto/repo/getRecord.d.ts +45 -0
- package/dist/lexicons/types/com/atproto/repo/importRepo.d.ts +27 -0
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.d.ts +45 -0
- package/dist/lexicons/types/com/atproto/repo/listRecords.d.ts +53 -0
- package/dist/lexicons/types/com/atproto/repo/putRecord.d.ts +58 -0
- package/dist/lexicons/types/com/atproto/repo/strongRef.d.ts +11 -0
- package/dist/lexicons/types/com/atproto/repo/uploadBlob.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/server/activateAccount.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/confirmEmail.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/server/createAccount.d.ts +61 -0
- package/dist/lexicons/types/com/atproto/server/createAppPassword.d.ts +51 -0
- package/dist/lexicons/types/com/atproto/server/createInviteCode.d.ts +41 -0
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.d.ts +50 -0
- package/dist/lexicons/types/com/atproto/server/createSession.d.ts +56 -0
- package/dist/lexicons/types/com/atproto/server/deactivateAccount.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/server/defs.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/deleteAccount.d.ts +32 -0
- package/dist/lexicons/types/com/atproto/server/deleteSession.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/describeServer.d.ts +56 -0
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/server/getServiceAuth.d.ts +41 -0
- package/dist/lexicons/types/com/atproto/server/getSession.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.d.ts +44 -0
- package/dist/lexicons/types/com/atproto/server/refreshSession.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/requestAccountDelete.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.d.ts +23 -0
- package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.d.ts +34 -0
- package/dist/lexicons/types/com/atproto/server/requestPasswordReset.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/server/reserveSigningKey.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/server/resetPassword.d.ts +31 -0
- package/dist/lexicons/types/com/atproto/server/revokeAppPassword.d.ts +29 -0
- package/dist/lexicons/types/com/atproto/server/updateEmail.d.ts +33 -0
- package/dist/lexicons/types/com/atproto/sync/getBlob.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/sync/getBlocks.d.ts +35 -0
- package/dist/lexicons/types/com/atproto/sync/getCheckout.d.ts +33 -0
- package/dist/lexicons/types/com/atproto/sync/getHead.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.d.ts +38 -0
- package/dist/lexicons/types/com/atproto/sync/getRecord.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/sync/getRepo.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/sync/listBlobs.d.ts +42 -0
- package/dist/lexicons/types/com/atproto/sync/listRepos.d.ts +50 -0
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.d.ts +46 -0
- package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/sync/requestCrawl.d.ts +30 -0
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.d.ts +111 -0
- package/dist/lexicons/types/com/atproto/temp/addReservedHandle.d.ts +39 -0
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.d.ts +36 -0
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.d.ts +37 -0
- package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.d.ts +29 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.d.ts +19 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.d.ts +32 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.d.ts +37 -0
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.d.ts +32 -0
- package/dist/lexicons/util.d.ts +5 -0
- package/dist/logger.d.ts +6 -0
- package/dist/package.json +74 -0
- package/dist/rpc/clio_connect.d.ts +103 -0
- package/dist/rpc/clio_pb.d.ts +457 -0
- package/dist/start.d.ts +1 -0
- package/dist/util/retry.d.ts +2 -0
- package/dist/util/uris.d.ts +1 -0
- package/dist/util.d.ts +23 -0
- package/package.json +4 -3
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import { Message, proto3, Timestamp } from '@bufbuild/protobuf';
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message clio.Record
|
|
5
|
+
*/
|
|
6
|
+
export declare class Record extends Message<Record> {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from field: bytes record = 1;
|
|
9
|
+
*/
|
|
10
|
+
record: Uint8Array<ArrayBuffer>;
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: string cid = 2;
|
|
13
|
+
*/
|
|
14
|
+
cid: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: google.protobuf.Timestamp indexed_at = 4;
|
|
17
|
+
*/
|
|
18
|
+
indexedAt?: Timestamp;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: bool taken_down = 5;
|
|
21
|
+
*/
|
|
22
|
+
takenDown: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
25
|
+
*/
|
|
26
|
+
createdAt?: Timestamp;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: google.protobuf.Timestamp sorted_at = 7;
|
|
29
|
+
*/
|
|
30
|
+
sortedAt?: Timestamp;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: string takedown_ref = 8;
|
|
33
|
+
*/
|
|
34
|
+
takedownRef: string;
|
|
35
|
+
constructor(data?: PartialMessage<Record>);
|
|
36
|
+
static readonly runtime: typeof proto3;
|
|
37
|
+
static readonly typeName = "clio.Record";
|
|
38
|
+
static readonly fields: FieldList;
|
|
39
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Record;
|
|
40
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Record;
|
|
41
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Record;
|
|
42
|
+
static equals(a: Record | PlainMessage<Record> | undefined, b: Record | PlainMessage<Record> | undefined): boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @generated from message clio.GetSongRecordsRequest
|
|
46
|
+
*/
|
|
47
|
+
export declare class GetSongRecordsRequest extends Message<GetSongRecordsRequest> {
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: repeated string track_mb_ids = 1;
|
|
50
|
+
*/
|
|
51
|
+
trackMbIds: string[];
|
|
52
|
+
constructor(data?: PartialMessage<GetSongRecordsRequest>);
|
|
53
|
+
static readonly runtime: typeof proto3;
|
|
54
|
+
static readonly typeName = "clio.GetSongRecordsRequest";
|
|
55
|
+
static readonly fields: FieldList;
|
|
56
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSongRecordsRequest;
|
|
57
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSongRecordsRequest;
|
|
58
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSongRecordsRequest;
|
|
59
|
+
static equals(a: GetSongRecordsRequest | PlainMessage<GetSongRecordsRequest> | undefined, b: GetSongRecordsRequest | PlainMessage<GetSongRecordsRequest> | undefined): boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @generated from message clio.GetSongRecordsResponse
|
|
63
|
+
*/
|
|
64
|
+
export declare class GetSongRecordsResponse extends Message<GetSongRecordsResponse> {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: repeated clio.Record records = 1;
|
|
67
|
+
*/
|
|
68
|
+
records: Record[];
|
|
69
|
+
constructor(data?: PartialMessage<GetSongRecordsResponse>);
|
|
70
|
+
static readonly runtime: typeof proto3;
|
|
71
|
+
static readonly typeName = "clio.GetSongRecordsResponse";
|
|
72
|
+
static readonly fields: FieldList;
|
|
73
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSongRecordsResponse;
|
|
74
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSongRecordsResponse;
|
|
75
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSongRecordsResponse;
|
|
76
|
+
static equals(a: GetSongRecordsResponse | PlainMessage<GetSongRecordsResponse> | undefined, b: GetSongRecordsResponse | PlainMessage<GetSongRecordsResponse> | undefined): boolean;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated from message clio.GetProfileRecordsRequest
|
|
80
|
+
*/
|
|
81
|
+
export declare class GetProfileRecordsRequest extends Message<GetProfileRecordsRequest> {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: repeated string uris = 1;
|
|
84
|
+
*/
|
|
85
|
+
uris: string[];
|
|
86
|
+
constructor(data?: PartialMessage<GetProfileRecordsRequest>);
|
|
87
|
+
static readonly runtime: typeof proto3;
|
|
88
|
+
static readonly typeName = "clio.GetProfileRecordsRequest";
|
|
89
|
+
static readonly fields: FieldList;
|
|
90
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProfileRecordsRequest;
|
|
91
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProfileRecordsRequest;
|
|
92
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProfileRecordsRequest;
|
|
93
|
+
static equals(a: GetProfileRecordsRequest | PlainMessage<GetProfileRecordsRequest> | undefined, b: GetProfileRecordsRequest | PlainMessage<GetProfileRecordsRequest> | undefined): boolean;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @generated from message clio.GetProfileRecordsResponse
|
|
97
|
+
*/
|
|
98
|
+
export declare class GetProfileRecordsResponse extends Message<GetProfileRecordsResponse> {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: repeated clio.Record records = 1;
|
|
101
|
+
*/
|
|
102
|
+
records: Record[];
|
|
103
|
+
constructor(data?: PartialMessage<GetProfileRecordsResponse>);
|
|
104
|
+
static readonly runtime: typeof proto3;
|
|
105
|
+
static readonly typeName = "clio.GetProfileRecordsResponse";
|
|
106
|
+
static readonly fields: FieldList;
|
|
107
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProfileRecordsResponse;
|
|
108
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProfileRecordsResponse;
|
|
109
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProfileRecordsResponse;
|
|
110
|
+
static equals(a: GetProfileRecordsResponse | PlainMessage<GetProfileRecordsResponse> | undefined, b: GetProfileRecordsResponse | PlainMessage<GetProfileRecordsResponse> | undefined): boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* - return actor information for dids A, B, C…
|
|
114
|
+
* - profile hydration
|
|
115
|
+
* - should this include handles? apply repo takedown?
|
|
116
|
+
*
|
|
117
|
+
* @generated from message clio.GetActorsRequest
|
|
118
|
+
*/
|
|
119
|
+
export declare class GetActorsRequest extends Message<GetActorsRequest> {
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: repeated string dids = 1;
|
|
122
|
+
*/
|
|
123
|
+
dids: string[];
|
|
124
|
+
constructor(data?: PartialMessage<GetActorsRequest>);
|
|
125
|
+
static readonly runtime: typeof proto3;
|
|
126
|
+
static readonly typeName = "clio.GetActorsRequest";
|
|
127
|
+
static readonly fields: FieldList;
|
|
128
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActorsRequest;
|
|
129
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActorsRequest;
|
|
130
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActorsRequest;
|
|
131
|
+
static equals(a: GetActorsRequest | PlainMessage<GetActorsRequest> | undefined, b: GetActorsRequest | PlainMessage<GetActorsRequest> | undefined): boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated from message clio.ActorInfo
|
|
135
|
+
*/
|
|
136
|
+
export declare class ActorInfo extends Message<ActorInfo> {
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: bool exists = 1;
|
|
139
|
+
*/
|
|
140
|
+
exists: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: string handle = 2;
|
|
143
|
+
*/
|
|
144
|
+
handle: string;
|
|
145
|
+
/**
|
|
146
|
+
* @generated from field: clio.Record profile = 3;
|
|
147
|
+
*/
|
|
148
|
+
profile?: Record;
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: bool taken_down = 4;
|
|
151
|
+
*/
|
|
152
|
+
takenDown: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: string takedown_ref = 5;
|
|
155
|
+
*/
|
|
156
|
+
takedownRef: string;
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: google.protobuf.Timestamp tombstoned_at = 6;
|
|
159
|
+
*/
|
|
160
|
+
tombstonedAt?: Timestamp;
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: bool labeler = 7;
|
|
163
|
+
*/
|
|
164
|
+
labeler: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string allow_incoming_chats_from = 8;
|
|
167
|
+
*/
|
|
168
|
+
allowIncomingChatsFrom: string;
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string upstream_status = 9;
|
|
171
|
+
*/
|
|
172
|
+
upstreamStatus: string;
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: google.protobuf.Timestamp created_at = 10;
|
|
175
|
+
*/
|
|
176
|
+
createdAt?: Timestamp;
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: bool priority_notifications = 11;
|
|
179
|
+
*/
|
|
180
|
+
priorityNotifications: boolean;
|
|
181
|
+
constructor(data?: PartialMessage<ActorInfo>);
|
|
182
|
+
static readonly runtime: typeof proto3;
|
|
183
|
+
static readonly typeName = "clio.ActorInfo";
|
|
184
|
+
static readonly fields: FieldList;
|
|
185
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActorInfo;
|
|
186
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActorInfo;
|
|
187
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActorInfo;
|
|
188
|
+
static equals(a: ActorInfo | PlainMessage<ActorInfo> | undefined, b: ActorInfo | PlainMessage<ActorInfo> | undefined): boolean;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @generated from message clio.GetActorsResponse
|
|
192
|
+
*/
|
|
193
|
+
export declare class GetActorsResponse extends Message<GetActorsResponse> {
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: repeated clio.ActorInfo actors = 1;
|
|
196
|
+
*/
|
|
197
|
+
actors: ActorInfo[];
|
|
198
|
+
constructor(data?: PartialMessage<GetActorsResponse>);
|
|
199
|
+
static readonly runtime: typeof proto3;
|
|
200
|
+
static readonly typeName = "clio.GetActorsResponse";
|
|
201
|
+
static readonly fields: FieldList;
|
|
202
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActorsResponse;
|
|
203
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActorsResponse;
|
|
204
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActorsResponse;
|
|
205
|
+
static equals(a: GetActorsResponse | PlainMessage<GetActorsResponse> | undefined, b: GetActorsResponse | PlainMessage<GetActorsResponse> | undefined): boolean;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* - return did for handle A
|
|
209
|
+
* - `resolveHandle`
|
|
210
|
+
* - answering queries where the query param is a handle
|
|
211
|
+
*
|
|
212
|
+
* @generated from message clio.GetDidsByHandlesRequest
|
|
213
|
+
*/
|
|
214
|
+
export declare class GetDidsByHandlesRequest extends Message<GetDidsByHandlesRequest> {
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: repeated string handles = 1;
|
|
217
|
+
*/
|
|
218
|
+
handles: string[];
|
|
219
|
+
constructor(data?: PartialMessage<GetDidsByHandlesRequest>);
|
|
220
|
+
static readonly runtime: typeof proto3;
|
|
221
|
+
static readonly typeName = "clio.GetDidsByHandlesRequest";
|
|
222
|
+
static readonly fields: FieldList;
|
|
223
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDidsByHandlesRequest;
|
|
224
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDidsByHandlesRequest;
|
|
225
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDidsByHandlesRequest;
|
|
226
|
+
static equals(a: GetDidsByHandlesRequest | PlainMessage<GetDidsByHandlesRequest> | undefined, b: GetDidsByHandlesRequest | PlainMessage<GetDidsByHandlesRequest> | undefined): boolean;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @generated from message clio.GetDidsByHandlesResponse
|
|
230
|
+
*/
|
|
231
|
+
export declare class GetDidsByHandlesResponse extends Message<GetDidsByHandlesResponse> {
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: repeated string dids = 1;
|
|
234
|
+
*/
|
|
235
|
+
dids: string[];
|
|
236
|
+
constructor(data?: PartialMessage<GetDidsByHandlesResponse>);
|
|
237
|
+
static readonly runtime: typeof proto3;
|
|
238
|
+
static readonly typeName = "clio.GetDidsByHandlesResponse";
|
|
239
|
+
static readonly fields: FieldList;
|
|
240
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDidsByHandlesResponse;
|
|
241
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDidsByHandlesResponse;
|
|
242
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDidsByHandlesResponse;
|
|
243
|
+
static equals(a: GetDidsByHandlesResponse | PlainMessage<GetDidsByHandlesResponse> | undefined, b: GetDidsByHandlesResponse | PlainMessage<GetDidsByHandlesResponse> | undefined): boolean;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* - Latest repo rev of user w/ DID
|
|
247
|
+
*
|
|
248
|
+
* @generated from message clio.GetLatestRevRequest
|
|
249
|
+
*/
|
|
250
|
+
export declare class GetLatestRevRequest extends Message<GetLatestRevRequest> {
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: string actor_did = 1;
|
|
253
|
+
*/
|
|
254
|
+
actorDid: string;
|
|
255
|
+
constructor(data?: PartialMessage<GetLatestRevRequest>);
|
|
256
|
+
static readonly runtime: typeof proto3;
|
|
257
|
+
static readonly typeName = "clio.GetLatestRevRequest";
|
|
258
|
+
static readonly fields: FieldList;
|
|
259
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLatestRevRequest;
|
|
260
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLatestRevRequest;
|
|
261
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestRevRequest;
|
|
262
|
+
static equals(a: GetLatestRevRequest | PlainMessage<GetLatestRevRequest> | undefined, b: GetLatestRevRequest | PlainMessage<GetLatestRevRequest> | undefined): boolean;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* @generated from message clio.GetLatestRevResponse
|
|
266
|
+
*/
|
|
267
|
+
export declare class GetLatestRevResponse extends Message<GetLatestRevResponse> {
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: string rev = 1;
|
|
270
|
+
*/
|
|
271
|
+
rev: string;
|
|
272
|
+
constructor(data?: PartialMessage<GetLatestRevResponse>);
|
|
273
|
+
static readonly runtime: typeof proto3;
|
|
274
|
+
static readonly typeName = "clio.GetLatestRevResponse";
|
|
275
|
+
static readonly fields: FieldList;
|
|
276
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLatestRevResponse;
|
|
277
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLatestRevResponse;
|
|
278
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestRevResponse;
|
|
279
|
+
static equals(a: GetLatestRevResponse | PlainMessage<GetLatestRevResponse> | undefined, b: GetLatestRevResponse | PlainMessage<GetLatestRevResponse> | undefined): boolean;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* @generated from message clio.GetIdentityByDidRequest
|
|
283
|
+
*/
|
|
284
|
+
export declare class GetIdentityByDidRequest extends Message<GetIdentityByDidRequest> {
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: string did = 1;
|
|
287
|
+
*/
|
|
288
|
+
did: string;
|
|
289
|
+
constructor(data?: PartialMessage<GetIdentityByDidRequest>);
|
|
290
|
+
static readonly runtime: typeof proto3;
|
|
291
|
+
static readonly typeName = "clio.GetIdentityByDidRequest";
|
|
292
|
+
static readonly fields: FieldList;
|
|
293
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetIdentityByDidRequest;
|
|
294
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetIdentityByDidRequest;
|
|
295
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetIdentityByDidRequest;
|
|
296
|
+
static equals(a: GetIdentityByDidRequest | PlainMessage<GetIdentityByDidRequest> | undefined, b: GetIdentityByDidRequest | PlainMessage<GetIdentityByDidRequest> | undefined): boolean;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @generated from message clio.GetIdentityByDidResponse
|
|
300
|
+
*/
|
|
301
|
+
export declare class GetIdentityByDidResponse extends Message<GetIdentityByDidResponse> {
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: string did = 1;
|
|
304
|
+
*/
|
|
305
|
+
did: string;
|
|
306
|
+
/**
|
|
307
|
+
* @generated from field: string handle = 2;
|
|
308
|
+
*/
|
|
309
|
+
handle: string;
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: bytes keys = 3;
|
|
312
|
+
*/
|
|
313
|
+
keys: Uint8Array<ArrayBuffer>;
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: bytes services = 4;
|
|
316
|
+
*/
|
|
317
|
+
services: Uint8Array<ArrayBuffer>;
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: google.protobuf.Timestamp updated = 5;
|
|
320
|
+
*/
|
|
321
|
+
updated?: Timestamp;
|
|
322
|
+
constructor(data?: PartialMessage<GetIdentityByDidResponse>);
|
|
323
|
+
static readonly runtime: typeof proto3;
|
|
324
|
+
static readonly typeName = "clio.GetIdentityByDidResponse";
|
|
325
|
+
static readonly fields: FieldList;
|
|
326
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetIdentityByDidResponse;
|
|
327
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetIdentityByDidResponse;
|
|
328
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetIdentityByDidResponse;
|
|
329
|
+
static equals(a: GetIdentityByDidResponse | PlainMessage<GetIdentityByDidResponse> | undefined, b: GetIdentityByDidResponse | PlainMessage<GetIdentityByDidResponse> | undefined): boolean;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* @generated from message clio.GetIdentityByHandleRequest
|
|
333
|
+
*/
|
|
334
|
+
export declare class GetIdentityByHandleRequest extends Message<GetIdentityByHandleRequest> {
|
|
335
|
+
/**
|
|
336
|
+
* @generated from field: string handle = 1;
|
|
337
|
+
*/
|
|
338
|
+
handle: string;
|
|
339
|
+
constructor(data?: PartialMessage<GetIdentityByHandleRequest>);
|
|
340
|
+
static readonly runtime: typeof proto3;
|
|
341
|
+
static readonly typeName = "clio.GetIdentityByHandleRequest";
|
|
342
|
+
static readonly fields: FieldList;
|
|
343
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetIdentityByHandleRequest;
|
|
344
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetIdentityByHandleRequest;
|
|
345
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetIdentityByHandleRequest;
|
|
346
|
+
static equals(a: GetIdentityByHandleRequest | PlainMessage<GetIdentityByHandleRequest> | undefined, b: GetIdentityByHandleRequest | PlainMessage<GetIdentityByHandleRequest> | undefined): boolean;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* @generated from message clio.GetIdentityByHandleResponse
|
|
350
|
+
*/
|
|
351
|
+
export declare class GetIdentityByHandleResponse extends Message<GetIdentityByHandleResponse> {
|
|
352
|
+
/**
|
|
353
|
+
* @generated from field: string handle = 1;
|
|
354
|
+
*/
|
|
355
|
+
handle: string;
|
|
356
|
+
/**
|
|
357
|
+
* @generated from field: string did = 2;
|
|
358
|
+
*/
|
|
359
|
+
did: string;
|
|
360
|
+
/**
|
|
361
|
+
* @generated from field: bytes keys = 3;
|
|
362
|
+
*/
|
|
363
|
+
keys: Uint8Array<ArrayBuffer>;
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: bytes services = 4;
|
|
366
|
+
*/
|
|
367
|
+
services: Uint8Array<ArrayBuffer>;
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: google.protobuf.Timestamp updated = 5;
|
|
370
|
+
*/
|
|
371
|
+
updated?: Timestamp;
|
|
372
|
+
constructor(data?: PartialMessage<GetIdentityByHandleResponse>);
|
|
373
|
+
static readonly runtime: typeof proto3;
|
|
374
|
+
static readonly typeName = "clio.GetIdentityByHandleResponse";
|
|
375
|
+
static readonly fields: FieldList;
|
|
376
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetIdentityByHandleResponse;
|
|
377
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetIdentityByHandleResponse;
|
|
378
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetIdentityByHandleResponse;
|
|
379
|
+
static equals(a: GetIdentityByHandleResponse | PlainMessage<GetIdentityByHandleResponse> | undefined, b: GetIdentityByHandleResponse | PlainMessage<GetIdentityByHandleResponse> | undefined): boolean;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @generated from message clio.UpdateActorUpstreamStatusRequest
|
|
383
|
+
*/
|
|
384
|
+
export declare class UpdateActorUpstreamStatusRequest extends Message<UpdateActorUpstreamStatusRequest> {
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: string actor_did = 1;
|
|
387
|
+
*/
|
|
388
|
+
actorDid: string;
|
|
389
|
+
/**
|
|
390
|
+
* @generated from field: bool active = 2;
|
|
391
|
+
*/
|
|
392
|
+
active: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: string upstream_status = 3;
|
|
395
|
+
*/
|
|
396
|
+
upstreamStatus: string;
|
|
397
|
+
constructor(data?: PartialMessage<UpdateActorUpstreamStatusRequest>);
|
|
398
|
+
static readonly runtime: typeof proto3;
|
|
399
|
+
static readonly typeName = "clio.UpdateActorUpstreamStatusRequest";
|
|
400
|
+
static readonly fields: FieldList;
|
|
401
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateActorUpstreamStatusRequest;
|
|
402
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateActorUpstreamStatusRequest;
|
|
403
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateActorUpstreamStatusRequest;
|
|
404
|
+
static equals(a: UpdateActorUpstreamStatusRequest | PlainMessage<UpdateActorUpstreamStatusRequest> | undefined, b: UpdateActorUpstreamStatusRequest | PlainMessage<UpdateActorUpstreamStatusRequest> | undefined): boolean;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* @generated from message clio.UpdateActorUpstreamStatusResponse
|
|
408
|
+
*/
|
|
409
|
+
export declare class UpdateActorUpstreamStatusResponse extends Message<UpdateActorUpstreamStatusResponse> {
|
|
410
|
+
constructor(data?: PartialMessage<UpdateActorUpstreamStatusResponse>);
|
|
411
|
+
static readonly runtime: typeof proto3;
|
|
412
|
+
static readonly typeName = "clio.UpdateActorUpstreamStatusResponse";
|
|
413
|
+
static readonly fields: FieldList;
|
|
414
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateActorUpstreamStatusResponse;
|
|
415
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateActorUpstreamStatusResponse;
|
|
416
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateActorUpstreamStatusResponse;
|
|
417
|
+
static equals(a: UpdateActorUpstreamStatusResponse | PlainMessage<UpdateActorUpstreamStatusResponse> | undefined, b: UpdateActorUpstreamStatusResponse | PlainMessage<UpdateActorUpstreamStatusResponse> | undefined): boolean;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* @generated from message clio.HealthCheckRequest
|
|
421
|
+
*/
|
|
422
|
+
export declare class HealthCheckRequest extends Message<HealthCheckRequest> {
|
|
423
|
+
constructor(data?: PartialMessage<HealthCheckRequest>);
|
|
424
|
+
static readonly runtime: typeof proto3;
|
|
425
|
+
static readonly typeName = "clio.HealthCheckRequest";
|
|
426
|
+
static readonly fields: FieldList;
|
|
427
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HealthCheckRequest;
|
|
428
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HealthCheckRequest;
|
|
429
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HealthCheckRequest;
|
|
430
|
+
static equals(a: HealthCheckRequest | PlainMessage<HealthCheckRequest> | undefined, b: HealthCheckRequest | PlainMessage<HealthCheckRequest> | undefined): boolean;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* @generated from message clio.HealthCheck
|
|
434
|
+
*/
|
|
435
|
+
export declare class HealthCheck extends Message<HealthCheck> {
|
|
436
|
+
constructor(data?: PartialMessage<HealthCheck>);
|
|
437
|
+
static readonly runtime: typeof proto3;
|
|
438
|
+
static readonly typeName = "clio.HealthCheck";
|
|
439
|
+
static readonly fields: FieldList;
|
|
440
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HealthCheck;
|
|
441
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HealthCheck;
|
|
442
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HealthCheck;
|
|
443
|
+
static equals(a: HealthCheck | PlainMessage<HealthCheck> | undefined, b: HealthCheck | PlainMessage<HealthCheck> | undefined): boolean;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* @generated from message clio.HealthCheckResponse
|
|
447
|
+
*/
|
|
448
|
+
export declare class HealthCheckResponse extends Message<HealthCheckResponse> {
|
|
449
|
+
constructor(data?: PartialMessage<HealthCheckResponse>);
|
|
450
|
+
static readonly runtime: typeof proto3;
|
|
451
|
+
static readonly typeName = "clio.HealthCheckResponse";
|
|
452
|
+
static readonly fields: FieldList;
|
|
453
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HealthCheckResponse;
|
|
454
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HealthCheckResponse;
|
|
455
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HealthCheckResponse;
|
|
456
|
+
static equals(a: HealthCheckResponse | PlainMessage<HealthCheckResponse> | undefined, b: HealthCheckResponse | PlainMessage<HealthCheckResponse> | undefined): boolean;
|
|
457
|
+
}
|
package/dist/start.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function uriToDid(uri: string): string;
|
package/dist/util.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CID } from 'multiformats/cid';
|
|
2
|
+
import { Record } from './rpc/clio_pb';
|
|
3
|
+
export type ParsedLabelers = {
|
|
4
|
+
dids: string[];
|
|
5
|
+
redact: Set<string>;
|
|
6
|
+
};
|
|
7
|
+
export type RecordInfo<T> = {
|
|
8
|
+
record: T;
|
|
9
|
+
cid: string;
|
|
10
|
+
sortedAt: Date;
|
|
11
|
+
indexedAt: Date;
|
|
12
|
+
takedownRef: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare const defaultLabelerHeader: (dids: string[]) => ParsedLabelers;
|
|
15
|
+
export declare const formatLabelerHeader: (parsed: ParsedLabelers) => string;
|
|
16
|
+
export declare const parseRecord: <T>(entry: Record, includeTakedowns: boolean) => RecordInfo<T> | undefined;
|
|
17
|
+
export declare const parseRecordBytes: <T>(bytes: Uint8Array | undefined) => T | undefined;
|
|
18
|
+
export declare const parseJsonBytes: (bytes: Uint8Array | undefined) => unknown;
|
|
19
|
+
export declare const parseCid: (cidStr: string | undefined) => CID | undefined;
|
|
20
|
+
export declare const safeTakedownRef: (obj?: {
|
|
21
|
+
takenDown: boolean;
|
|
22
|
+
takedownRef: string;
|
|
23
|
+
}) => string | undefined;
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clioplaylists/clio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Appview server for the Clio application",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "start.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"build": "tsc --project ./tsconfig.json && cp .env ./dist",
|
|
8
|
+
"build": "tsc --project ./tsconfig.json && cp ./{.env,package.json} ./dist",
|
|
8
9
|
"start": "node dist/start.js",
|
|
9
10
|
"dev": "nodemon -r tsconfig-paths/register src/index.ts",
|
|
10
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|