@clioplaylists/clio 0.1.6 → 0.1.7
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 +7 -0
- package/dist/api/health.js +3 -10
- package/dist/api/index.js +2 -39
- package/dist/api/util.js +6 -10
- package/dist/auth-verifier.js +165 -273
- package/dist/client.js +8 -15
- package/dist/config.js +7 -23
- package/dist/context.js +3 -10
- package/dist/dataplane/client.js +25 -70
- package/dist/dataplane/index.js +2 -18
- package/dist/dataplane/server/background.js +8 -29
- package/dist/dataplane/server/db/database-schema.js +1 -2
- package/dist/dataplane/server/db/db.js +27 -103
- package/dist/dataplane/server/db/index.js +1 -17
- package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.js +7 -11
- package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.js +2 -6
- package/dist/dataplane/server/db/migrations/index.js +2 -38
- package/dist/dataplane/server/db/migrations/provider.js +5 -17
- package/dist/dataplane/server/db/pagination.js +21 -37
- package/dist/dataplane/server/db/tables/actor-sync.js +1 -4
- package/dist/dataplane/server/db/tables/actor.js +1 -4
- package/dist/dataplane/server/db/tables/artist-list-item.js +1 -4
- package/dist/dataplane/server/db/tables/artist.js +1 -4
- package/dist/dataplane/server/db/tables/playlist-idea.js +1 -4
- package/dist/dataplane/server/db/tables/playlist-item.js +1 -4
- package/dist/dataplane/server/db/tables/playlist.js +1 -4
- package/dist/dataplane/server/db/tables/profile.js +1 -4
- package/dist/dataplane/server/db/tables/record.js +1 -4
- package/dist/dataplane/server/db/tables/song.js +1 -4
- package/dist/dataplane/server/db/types.js +1 -2
- package/dist/dataplane/server/db/util.js +18 -26
- package/dist/dataplane/server/index.js +17 -33
- package/dist/dataplane/server/indexing/index.js +39 -89
- package/dist/dataplane/server/indexing/plugins/playlist-idea.js +7 -44
- package/dist/dataplane/server/indexing/plugins/profile.js +5 -42
- package/dist/dataplane/server/indexing/processor.js +11 -29
- package/dist/dataplane/server/routes/identity.js +11 -13
- package/dist/dataplane/server/routes/index.js +10 -15
- package/dist/dataplane/server/routes/profile.js +9 -11
- package/dist/dataplane/server/routes/records.js +14 -51
- package/dist/dataplane/server/routes/sync.js +1 -3
- package/dist/dataplane/server/subscription.js +19 -47
- package/dist/error.js +5 -9
- package/dist/index.js +29 -89
- package/dist/lexicons/index.js +52 -227
- package/dist/lexicons/lexicons.js +5 -8
- package/dist/lexicons/types/com/atproto/admin/defs.js +27 -39
- package/dist/lexicons/types/com/atproto/admin/deleteAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getAccountInfo.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/sendEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/defs.js +7 -11
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/refreshIdentity.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/resolveDid.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/resolveHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/resolveIdentity.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/updateHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/label/defs.js +27 -39
- package/dist/lexicons/types/com/atproto/label/queryLabels.js +1 -2
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.js +12 -18
- package/dist/lexicons/types/com/atproto/lexicon/schema.js +7 -11
- package/dist/lexicons/types/com/atproto/moderation/createReport.js +1 -2
- package/dist/lexicons/types/com/atproto/moderation/defs.js +7 -10
- package/dist/lexicons/types/com/atproto/repo/applyWrites.js +32 -46
- package/dist/lexicons/types/com/atproto/repo/createRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/defs.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/describeRepo.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/getRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/importRepo.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/listRecords.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/putRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/strongRef.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/uploadBlob.js +1 -2
- package/dist/lexicons/types/com/atproto/server/activateAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/server/confirmEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/server/createAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/createAppPassword.js +7 -11
- package/dist/lexicons/types/com/atproto/server/createInviteCode.js +1 -2
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.js +7 -11
- package/dist/lexicons/types/com/atproto/server/createSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/deactivateAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/defs.js +12 -18
- package/dist/lexicons/types/com/atproto/server/deleteAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/deleteSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/describeServer.js +12 -18
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.js +1 -2
- package/dist/lexicons/types/com/atproto/server/getServiceAuth.js +1 -2
- package/dist/lexicons/types/com/atproto/server/getSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.js +7 -11
- package/dist/lexicons/types/com/atproto/server/refreshSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestAccountDelete.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestPasswordReset.js +1 -2
- package/dist/lexicons/types/com/atproto/server/reserveSigningKey.js +1 -2
- package/dist/lexicons/types/com/atproto/server/resetPassword.js +1 -2
- package/dist/lexicons/types/com/atproto/server/revokeAppPassword.js +1 -2
- package/dist/lexicons/types/com/atproto/server/updateEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getBlob.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getBlocks.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getCheckout.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getHead.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getRepo.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/listBlobs.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/listRepos.js +7 -11
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.js +7 -11
- package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/requestCrawl.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.js +32 -46
- package/dist/lexicons/types/com/atproto/temp/addReservedHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.js +1 -2
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.js +1 -2
- package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.js +1 -2
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.js +7 -11
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.js +12 -18
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.js +1 -2
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.js +17 -25
- package/dist/lexicons/util.js +2 -6
- package/dist/logger.js +10 -16
- package/dist/rpc/clio_connect.js +30 -33
- package/dist/rpc/clio_pb.js +402 -956
- package/dist/util/retry.js +7 -10
- package/dist/util/uris.js +3 -6
- package/dist/util.js +17 -60
- package/package.json +4 -4
package/dist/lexicons/index.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ComAtprotoTempNS = exports.ComAtprotoSyncNS = exports.ComAtprotoServerNS = exports.ComAtprotoRepoNS = exports.ComAtprotoModerationNS = exports.ComAtprotoLexiconNS = exports.ComAtprotoLabelNS = exports.ComAtprotoIdentityNS = exports.ComAtprotoAdminNS = exports.ComAtprotoNS = exports.ComClioplaylistsAlphaFeedNS = exports.ComClioplaylistsAlphaActorNS = exports.ComClioplaylistsAlphaNS = exports.ComClioplaylistsNS = exports.ComNS = exports.Server = exports.COM_ATPROTO_MODERATION = void 0;
|
|
4
|
-
exports.createServer = createServer;
|
|
5
1
|
/**
|
|
6
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
7
3
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import { createServer as createXrpcServer, } from '@atproto/xrpc-server';
|
|
5
|
+
import { schemas } from './lexicons';
|
|
6
|
+
export const COM_ATPROTO_MODERATION = {
|
|
11
7
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
12
8
|
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
|
|
13
9
|
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
|
|
@@ -16,119 +12,54 @@ exports.COM_ATPROTO_MODERATION = {
|
|
|
16
12
|
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
17
13
|
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
18
14
|
};
|
|
19
|
-
function createServer(options) {
|
|
15
|
+
export function createServer(options) {
|
|
20
16
|
return new Server(options);
|
|
21
17
|
}
|
|
22
|
-
class Server {
|
|
18
|
+
export class Server {
|
|
19
|
+
xrpc;
|
|
20
|
+
com;
|
|
23
21
|
constructor(options) {
|
|
24
|
-
|
|
25
|
-
enumerable: true,
|
|
26
|
-
configurable: true,
|
|
27
|
-
writable: true,
|
|
28
|
-
value: void 0
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(this, "com", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true,
|
|
34
|
-
value: void 0
|
|
35
|
-
});
|
|
36
|
-
this.xrpc = (0, xrpc_server_1.createServer)(lexicons_1.schemas, options);
|
|
22
|
+
this.xrpc = createXrpcServer(schemas, options);
|
|
37
23
|
this.com = new ComNS(this);
|
|
38
24
|
}
|
|
39
25
|
}
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
export class ComNS {
|
|
27
|
+
_server;
|
|
28
|
+
clioplaylists;
|
|
29
|
+
atproto;
|
|
42
30
|
constructor(server) {
|
|
43
|
-
Object.defineProperty(this, "_server", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
configurable: true,
|
|
46
|
-
writable: true,
|
|
47
|
-
value: void 0
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(this, "clioplaylists", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true,
|
|
52
|
-
writable: true,
|
|
53
|
-
value: void 0
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(this, "atproto", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true,
|
|
58
|
-
writable: true,
|
|
59
|
-
value: void 0
|
|
60
|
-
});
|
|
61
31
|
this._server = server;
|
|
62
32
|
this.clioplaylists = new ComClioplaylistsNS(server);
|
|
63
33
|
this.atproto = new ComAtprotoNS(server);
|
|
64
34
|
}
|
|
65
35
|
}
|
|
66
|
-
|
|
67
|
-
|
|
36
|
+
export class ComClioplaylistsNS {
|
|
37
|
+
_server;
|
|
38
|
+
alpha;
|
|
68
39
|
constructor(server) {
|
|
69
|
-
Object.defineProperty(this, "_server", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true,
|
|
72
|
-
writable: true,
|
|
73
|
-
value: void 0
|
|
74
|
-
});
|
|
75
|
-
Object.defineProperty(this, "alpha", {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
configurable: true,
|
|
78
|
-
writable: true,
|
|
79
|
-
value: void 0
|
|
80
|
-
});
|
|
81
40
|
this._server = server;
|
|
82
41
|
this.alpha = new ComClioplaylistsAlphaNS(server);
|
|
83
42
|
}
|
|
84
43
|
}
|
|
85
|
-
|
|
86
|
-
|
|
44
|
+
export class ComClioplaylistsAlphaNS {
|
|
45
|
+
_server;
|
|
46
|
+
actor;
|
|
47
|
+
feed;
|
|
87
48
|
constructor(server) {
|
|
88
|
-
Object.defineProperty(this, "_server", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
configurable: true,
|
|
91
|
-
writable: true,
|
|
92
|
-
value: void 0
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(this, "actor", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
configurable: true,
|
|
97
|
-
writable: true,
|
|
98
|
-
value: void 0
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(this, "feed", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
configurable: true,
|
|
103
|
-
writable: true,
|
|
104
|
-
value: void 0
|
|
105
|
-
});
|
|
106
49
|
this._server = server;
|
|
107
50
|
this.actor = new ComClioplaylistsAlphaActorNS(server);
|
|
108
51
|
this.feed = new ComClioplaylistsAlphaFeedNS(server);
|
|
109
52
|
}
|
|
110
53
|
}
|
|
111
|
-
|
|
112
|
-
|
|
54
|
+
export class ComClioplaylistsAlphaActorNS {
|
|
55
|
+
_server;
|
|
113
56
|
constructor(server) {
|
|
114
|
-
Object.defineProperty(this, "_server", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
configurable: true,
|
|
117
|
-
writable: true,
|
|
118
|
-
value: void 0
|
|
119
|
-
});
|
|
120
57
|
this._server = server;
|
|
121
58
|
}
|
|
122
59
|
}
|
|
123
|
-
|
|
124
|
-
|
|
60
|
+
export class ComClioplaylistsAlphaFeedNS {
|
|
61
|
+
_server;
|
|
125
62
|
constructor(server) {
|
|
126
|
-
Object.defineProperty(this, "_server", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
configurable: true,
|
|
129
|
-
writable: true,
|
|
130
|
-
value: void 0
|
|
131
|
-
});
|
|
132
63
|
this._server = server;
|
|
133
64
|
}
|
|
134
65
|
getSongs(cfg) {
|
|
@@ -136,69 +67,18 @@ class ComClioplaylistsAlphaFeedNS {
|
|
|
136
67
|
return this._server.xrpc.method(nsid, cfg);
|
|
137
68
|
}
|
|
138
69
|
}
|
|
139
|
-
|
|
140
|
-
|
|
70
|
+
export class ComAtprotoNS {
|
|
71
|
+
_server;
|
|
72
|
+
admin;
|
|
73
|
+
identity;
|
|
74
|
+
label;
|
|
75
|
+
lexicon;
|
|
76
|
+
moderation;
|
|
77
|
+
repo;
|
|
78
|
+
server;
|
|
79
|
+
sync;
|
|
80
|
+
temp;
|
|
141
81
|
constructor(server) {
|
|
142
|
-
Object.defineProperty(this, "_server", {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
configurable: true,
|
|
145
|
-
writable: true,
|
|
146
|
-
value: void 0
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(this, "admin", {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
configurable: true,
|
|
151
|
-
writable: true,
|
|
152
|
-
value: void 0
|
|
153
|
-
});
|
|
154
|
-
Object.defineProperty(this, "identity", {
|
|
155
|
-
enumerable: true,
|
|
156
|
-
configurable: true,
|
|
157
|
-
writable: true,
|
|
158
|
-
value: void 0
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(this, "label", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
configurable: true,
|
|
163
|
-
writable: true,
|
|
164
|
-
value: void 0
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(this, "lexicon", {
|
|
167
|
-
enumerable: true,
|
|
168
|
-
configurable: true,
|
|
169
|
-
writable: true,
|
|
170
|
-
value: void 0
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(this, "moderation", {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
configurable: true,
|
|
175
|
-
writable: true,
|
|
176
|
-
value: void 0
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(this, "repo", {
|
|
179
|
-
enumerable: true,
|
|
180
|
-
configurable: true,
|
|
181
|
-
writable: true,
|
|
182
|
-
value: void 0
|
|
183
|
-
});
|
|
184
|
-
Object.defineProperty(this, "server", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
configurable: true,
|
|
187
|
-
writable: true,
|
|
188
|
-
value: void 0
|
|
189
|
-
});
|
|
190
|
-
Object.defineProperty(this, "sync", {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
configurable: true,
|
|
193
|
-
writable: true,
|
|
194
|
-
value: void 0
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(this, "temp", {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
configurable: true,
|
|
199
|
-
writable: true,
|
|
200
|
-
value: void 0
|
|
201
|
-
});
|
|
202
82
|
this._server = server;
|
|
203
83
|
this.admin = new ComAtprotoAdminNS(server);
|
|
204
84
|
this.identity = new ComAtprotoIdentityNS(server);
|
|
@@ -211,15 +91,9 @@ class ComAtprotoNS {
|
|
|
211
91
|
this.temp = new ComAtprotoTempNS(server);
|
|
212
92
|
}
|
|
213
93
|
}
|
|
214
|
-
|
|
215
|
-
|
|
94
|
+
export class ComAtprotoAdminNS {
|
|
95
|
+
_server;
|
|
216
96
|
constructor(server) {
|
|
217
|
-
Object.defineProperty(this, "_server", {
|
|
218
|
-
enumerable: true,
|
|
219
|
-
configurable: true,
|
|
220
|
-
writable: true,
|
|
221
|
-
value: void 0
|
|
222
|
-
});
|
|
223
97
|
this._server = server;
|
|
224
98
|
}
|
|
225
99
|
deleteAccount(cfg) {
|
|
@@ -279,15 +153,9 @@ class ComAtprotoAdminNS {
|
|
|
279
153
|
return this._server.xrpc.method(nsid, cfg);
|
|
280
154
|
}
|
|
281
155
|
}
|
|
282
|
-
|
|
283
|
-
|
|
156
|
+
export class ComAtprotoIdentityNS {
|
|
157
|
+
_server;
|
|
284
158
|
constructor(server) {
|
|
285
|
-
Object.defineProperty(this, "_server", {
|
|
286
|
-
enumerable: true,
|
|
287
|
-
configurable: true,
|
|
288
|
-
writable: true,
|
|
289
|
-
value: void 0
|
|
290
|
-
});
|
|
291
159
|
this._server = server;
|
|
292
160
|
}
|
|
293
161
|
getRecommendedDidCredentials(cfg) {
|
|
@@ -327,15 +195,9 @@ class ComAtprotoIdentityNS {
|
|
|
327
195
|
return this._server.xrpc.method(nsid, cfg);
|
|
328
196
|
}
|
|
329
197
|
}
|
|
330
|
-
|
|
331
|
-
|
|
198
|
+
export class ComAtprotoLabelNS {
|
|
199
|
+
_server;
|
|
332
200
|
constructor(server) {
|
|
333
|
-
Object.defineProperty(this, "_server", {
|
|
334
|
-
enumerable: true,
|
|
335
|
-
configurable: true,
|
|
336
|
-
writable: true,
|
|
337
|
-
value: void 0
|
|
338
|
-
});
|
|
339
201
|
this._server = server;
|
|
340
202
|
}
|
|
341
203
|
queryLabels(cfg) {
|
|
@@ -347,27 +209,15 @@ class ComAtprotoLabelNS {
|
|
|
347
209
|
return this._server.xrpc.streamMethod(nsid, cfg);
|
|
348
210
|
}
|
|
349
211
|
}
|
|
350
|
-
|
|
351
|
-
|
|
212
|
+
export class ComAtprotoLexiconNS {
|
|
213
|
+
_server;
|
|
352
214
|
constructor(server) {
|
|
353
|
-
Object.defineProperty(this, "_server", {
|
|
354
|
-
enumerable: true,
|
|
355
|
-
configurable: true,
|
|
356
|
-
writable: true,
|
|
357
|
-
value: void 0
|
|
358
|
-
});
|
|
359
215
|
this._server = server;
|
|
360
216
|
}
|
|
361
217
|
}
|
|
362
|
-
|
|
363
|
-
|
|
218
|
+
export class ComAtprotoModerationNS {
|
|
219
|
+
_server;
|
|
364
220
|
constructor(server) {
|
|
365
|
-
Object.defineProperty(this, "_server", {
|
|
366
|
-
enumerable: true,
|
|
367
|
-
configurable: true,
|
|
368
|
-
writable: true,
|
|
369
|
-
value: void 0
|
|
370
|
-
});
|
|
371
221
|
this._server = server;
|
|
372
222
|
}
|
|
373
223
|
createReport(cfg) {
|
|
@@ -375,15 +225,9 @@ class ComAtprotoModerationNS {
|
|
|
375
225
|
return this._server.xrpc.method(nsid, cfg);
|
|
376
226
|
}
|
|
377
227
|
}
|
|
378
|
-
|
|
379
|
-
|
|
228
|
+
export class ComAtprotoRepoNS {
|
|
229
|
+
_server;
|
|
380
230
|
constructor(server) {
|
|
381
|
-
Object.defineProperty(this, "_server", {
|
|
382
|
-
enumerable: true,
|
|
383
|
-
configurable: true,
|
|
384
|
-
writable: true,
|
|
385
|
-
value: void 0
|
|
386
|
-
});
|
|
387
231
|
this._server = server;
|
|
388
232
|
}
|
|
389
233
|
applyWrites(cfg) {
|
|
@@ -427,15 +271,9 @@ class ComAtprotoRepoNS {
|
|
|
427
271
|
return this._server.xrpc.method(nsid, cfg);
|
|
428
272
|
}
|
|
429
273
|
}
|
|
430
|
-
|
|
431
|
-
|
|
274
|
+
export class ComAtprotoServerNS {
|
|
275
|
+
_server;
|
|
432
276
|
constructor(server) {
|
|
433
|
-
Object.defineProperty(this, "_server", {
|
|
434
|
-
enumerable: true,
|
|
435
|
-
configurable: true,
|
|
436
|
-
writable: true,
|
|
437
|
-
value: void 0
|
|
438
|
-
});
|
|
439
277
|
this._server = server;
|
|
440
278
|
}
|
|
441
279
|
activateAccount(cfg) {
|
|
@@ -539,15 +377,9 @@ class ComAtprotoServerNS {
|
|
|
539
377
|
return this._server.xrpc.method(nsid, cfg);
|
|
540
378
|
}
|
|
541
379
|
}
|
|
542
|
-
|
|
543
|
-
|
|
380
|
+
export class ComAtprotoSyncNS {
|
|
381
|
+
_server;
|
|
544
382
|
constructor(server) {
|
|
545
|
-
Object.defineProperty(this, "_server", {
|
|
546
|
-
enumerable: true,
|
|
547
|
-
configurable: true,
|
|
548
|
-
writable: true,
|
|
549
|
-
value: void 0
|
|
550
|
-
});
|
|
551
383
|
this._server = server;
|
|
552
384
|
}
|
|
553
385
|
getBlob(cfg) {
|
|
@@ -607,15 +439,9 @@ class ComAtprotoSyncNS {
|
|
|
607
439
|
return this._server.xrpc.streamMethod(nsid, cfg);
|
|
608
440
|
}
|
|
609
441
|
}
|
|
610
|
-
|
|
611
|
-
|
|
442
|
+
export class ComAtprotoTempNS {
|
|
443
|
+
_server;
|
|
612
444
|
constructor(server) {
|
|
613
|
-
Object.defineProperty(this, "_server", {
|
|
614
|
-
enumerable: true,
|
|
615
|
-
configurable: true,
|
|
616
|
-
writable: true,
|
|
617
|
-
value: void 0
|
|
618
|
-
});
|
|
619
445
|
this._server = server;
|
|
620
446
|
}
|
|
621
447
|
addReservedHandle(cfg) {
|
|
@@ -635,4 +461,3 @@ class ComAtprotoTempNS {
|
|
|
635
461
|
return this._server.xrpc.method(nsid, cfg);
|
|
636
462
|
}
|
|
637
463
|
}
|
|
638
|
-
exports.ComAtprotoTempNS = ComAtprotoTempNS;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ids = exports.lexicons = exports.schemas = exports.schemaDict = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
6
3
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { Lexicons } from '@atproto/lexicon';
|
|
5
|
+
export const schemaDict = {
|
|
9
6
|
ComClioplaylistsAlphaActorProfile: {
|
|
10
7
|
lexicon: 1,
|
|
11
8
|
id: 'com.clioplaylists.alpha.actor.profile',
|
|
@@ -4454,9 +4451,9 @@ exports.schemaDict = {
|
|
|
4454
4451
|
},
|
|
4455
4452
|
},
|
|
4456
4453
|
};
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4454
|
+
export const schemas = Object.values(schemaDict);
|
|
4455
|
+
export const lexicons = new Lexicons(schemas);
|
|
4456
|
+
export const ids = {
|
|
4460
4457
|
ComClioplaylistsAlphaActorProfile: 'com.clioplaylists.alpha.actor.profile',
|
|
4461
4458
|
ComClioplaylistsAlphaFeedDefs: 'com.clioplaylists.alpha.feed.defs',
|
|
4462
4459
|
ComClioplaylistsAlphaFeedGetSongs: 'com.clioplaylists.alpha.feed.getSongs',
|
|
@@ -1,54 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.validateAccountView = validateAccountView;
|
|
7
|
-
exports.isRepoRef = isRepoRef;
|
|
8
|
-
exports.validateRepoRef = validateRepoRef;
|
|
9
|
-
exports.isRepoBlobRef = isRepoBlobRef;
|
|
10
|
-
exports.validateRepoBlobRef = validateRepoBlobRef;
|
|
11
|
-
exports.isThreatSignature = isThreatSignature;
|
|
12
|
-
exports.validateThreatSignature = validateThreatSignature;
|
|
13
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
14
|
-
const util_1 = require("../../../../util");
|
|
15
|
-
function isStatusAttr(v) {
|
|
16
|
-
return ((0, util_1.isObj)(v) &&
|
|
17
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isStatusAttr(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
18
6
|
v.$type === 'com.atproto.admin.defs#statusAttr');
|
|
19
7
|
}
|
|
20
|
-
function validateStatusAttr(v) {
|
|
21
|
-
return
|
|
8
|
+
export function validateStatusAttr(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.admin.defs#statusAttr', v);
|
|
22
10
|
}
|
|
23
|
-
function isAccountView(v) {
|
|
24
|
-
return (
|
|
25
|
-
|
|
11
|
+
export function isAccountView(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
26
14
|
v.$type === 'com.atproto.admin.defs#accountView');
|
|
27
15
|
}
|
|
28
|
-
function validateAccountView(v) {
|
|
29
|
-
return
|
|
16
|
+
export function validateAccountView(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.admin.defs#accountView', v);
|
|
30
18
|
}
|
|
31
|
-
function isRepoRef(v) {
|
|
32
|
-
return (
|
|
33
|
-
|
|
19
|
+
export function isRepoRef(v) {
|
|
20
|
+
return (isObj(v) &&
|
|
21
|
+
hasProp(v, '$type') &&
|
|
34
22
|
v.$type === 'com.atproto.admin.defs#repoRef');
|
|
35
23
|
}
|
|
36
|
-
function validateRepoRef(v) {
|
|
37
|
-
return
|
|
24
|
+
export function validateRepoRef(v) {
|
|
25
|
+
return lexicons.validate('com.atproto.admin.defs#repoRef', v);
|
|
38
26
|
}
|
|
39
|
-
function isRepoBlobRef(v) {
|
|
40
|
-
return (
|
|
41
|
-
|
|
27
|
+
export function isRepoBlobRef(v) {
|
|
28
|
+
return (isObj(v) &&
|
|
29
|
+
hasProp(v, '$type') &&
|
|
42
30
|
v.$type === 'com.atproto.admin.defs#repoBlobRef');
|
|
43
31
|
}
|
|
44
|
-
function validateRepoBlobRef(v) {
|
|
45
|
-
return
|
|
32
|
+
export function validateRepoBlobRef(v) {
|
|
33
|
+
return lexicons.validate('com.atproto.admin.defs#repoBlobRef', v);
|
|
46
34
|
}
|
|
47
|
-
function isThreatSignature(v) {
|
|
48
|
-
return (
|
|
49
|
-
|
|
35
|
+
export function isThreatSignature(v) {
|
|
36
|
+
return (isObj(v) &&
|
|
37
|
+
hasProp(v, '$type') &&
|
|
50
38
|
v.$type === 'com.atproto.admin.defs#threatSignature');
|
|
51
39
|
}
|
|
52
|
-
function validateThreatSignature(v) {
|
|
53
|
-
return
|
|
40
|
+
export function validateThreatSignature(v) {
|
|
41
|
+
return lexicons.validate('com.atproto.admin.defs#threatSignature', v);
|
|
54
42
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isIdentityInfo(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isIdentityInfo(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
v.$type === 'com.atproto.identity.defs#identityInfo');
|
|
11
7
|
}
|
|
12
|
-
function validateIdentityInfo(v) {
|
|
13
|
-
return
|
|
8
|
+
export function validateIdentityInfo(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.identity.defs#identityInfo', v);
|
|
14
10
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|