@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
package/dist/lexicons/index.js
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComAtprotoRepoNS = exports.ComAtprotoNS = exports.ComClioplaylistsAlphaFeedNS = exports.ComClioplaylistsAlphaActorNS = exports.ComClioplaylistsAlphaNS = exports.ComClioplaylistsNS = exports.ComNS = exports.Server = void 0;
|
|
4
|
+
exports.createServer = createServer;
|
|
1
5
|
/**
|
|
2
6
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
7
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
8
|
-
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
|
|
9
|
-
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
|
|
10
|
-
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
|
|
11
|
-
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
12
|
-
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
13
|
-
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
14
|
-
};
|
|
15
|
-
export function createServer(options) {
|
|
8
|
+
const xrpc_server_1 = require("@atproto/xrpc-server");
|
|
9
|
+
const lexicons_js_1 = require("./lexicons.js");
|
|
10
|
+
function createServer(options) {
|
|
16
11
|
return new Server(options);
|
|
17
12
|
}
|
|
18
|
-
|
|
13
|
+
class Server {
|
|
19
14
|
xrpc;
|
|
20
15
|
com;
|
|
21
16
|
constructor(options) {
|
|
22
|
-
this.xrpc =
|
|
17
|
+
this.xrpc = (0, xrpc_server_1.createServer)(lexicons_js_1.schemas, options);
|
|
23
18
|
this.com = new ComNS(this);
|
|
24
19
|
}
|
|
25
20
|
}
|
|
26
|
-
|
|
21
|
+
exports.Server = Server;
|
|
22
|
+
class ComNS {
|
|
27
23
|
_server;
|
|
28
24
|
clioplaylists;
|
|
29
25
|
atproto;
|
|
@@ -33,7 +29,8 @@ export class ComNS {
|
|
|
33
29
|
this.atproto = new ComAtprotoNS(server);
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
|
-
|
|
32
|
+
exports.ComNS = ComNS;
|
|
33
|
+
class ComClioplaylistsNS {
|
|
37
34
|
_server;
|
|
38
35
|
alpha;
|
|
39
36
|
constructor(server) {
|
|
@@ -41,7 +38,8 @@ export class ComClioplaylistsNS {
|
|
|
41
38
|
this.alpha = new ComClioplaylistsAlphaNS(server);
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
|
-
|
|
41
|
+
exports.ComClioplaylistsNS = ComClioplaylistsNS;
|
|
42
|
+
class ComClioplaylistsAlphaNS {
|
|
45
43
|
_server;
|
|
46
44
|
actor;
|
|
47
45
|
feed;
|
|
@@ -51,413 +49,38 @@ export class ComClioplaylistsAlphaNS {
|
|
|
51
49
|
this.feed = new ComClioplaylistsAlphaFeedNS(server);
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
|
-
|
|
52
|
+
exports.ComClioplaylistsAlphaNS = ComClioplaylistsAlphaNS;
|
|
53
|
+
class ComClioplaylistsAlphaActorNS {
|
|
55
54
|
_server;
|
|
56
55
|
constructor(server) {
|
|
57
56
|
this._server = server;
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
exports.ComClioplaylistsAlphaActorNS = ComClioplaylistsAlphaActorNS;
|
|
60
|
+
class ComClioplaylistsAlphaFeedNS {
|
|
61
61
|
_server;
|
|
62
62
|
constructor(server) {
|
|
63
63
|
this._server = server;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
const nsid = 'com.clioplaylists.alpha.feed.
|
|
65
|
+
getRecommendedPlaylistsByUser(cfg) {
|
|
66
|
+
const nsid = 'com.clioplaylists.alpha.feed.getRecommendedPlaylistsByUser'; // @ts-ignore
|
|
67
67
|
return this._server.xrpc.method(nsid, cfg);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
exports.ComClioplaylistsAlphaFeedNS = ComClioplaylistsAlphaFeedNS;
|
|
71
|
+
class ComAtprotoNS {
|
|
71
72
|
_server;
|
|
72
|
-
admin;
|
|
73
|
-
identity;
|
|
74
|
-
label;
|
|
75
|
-
lexicon;
|
|
76
|
-
moderation;
|
|
77
73
|
repo;
|
|
78
|
-
server;
|
|
79
|
-
sync;
|
|
80
|
-
temp;
|
|
81
74
|
constructor(server) {
|
|
82
75
|
this._server = server;
|
|
83
|
-
this.admin = new ComAtprotoAdminNS(server);
|
|
84
|
-
this.identity = new ComAtprotoIdentityNS(server);
|
|
85
|
-
this.label = new ComAtprotoLabelNS(server);
|
|
86
|
-
this.lexicon = new ComAtprotoLexiconNS(server);
|
|
87
|
-
this.moderation = new ComAtprotoModerationNS(server);
|
|
88
76
|
this.repo = new ComAtprotoRepoNS(server);
|
|
89
|
-
this.server = new ComAtprotoServerNS(server);
|
|
90
|
-
this.sync = new ComAtprotoSyncNS(server);
|
|
91
|
-
this.temp = new ComAtprotoTempNS(server);
|
|
92
77
|
}
|
|
93
78
|
}
|
|
94
|
-
|
|
79
|
+
exports.ComAtprotoNS = ComAtprotoNS;
|
|
80
|
+
class ComAtprotoRepoNS {
|
|
95
81
|
_server;
|
|
96
82
|
constructor(server) {
|
|
97
83
|
this._server = server;
|
|
98
84
|
}
|
|
99
|
-
deleteAccount(cfg) {
|
|
100
|
-
const nsid = 'com.atproto.admin.deleteAccount'; // @ts-ignore
|
|
101
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
102
|
-
}
|
|
103
|
-
disableAccountInvites(cfg) {
|
|
104
|
-
const nsid = 'com.atproto.admin.disableAccountInvites'; // @ts-ignore
|
|
105
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
106
|
-
}
|
|
107
|
-
disableInviteCodes(cfg) {
|
|
108
|
-
const nsid = 'com.atproto.admin.disableInviteCodes'; // @ts-ignore
|
|
109
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
110
|
-
}
|
|
111
|
-
enableAccountInvites(cfg) {
|
|
112
|
-
const nsid = 'com.atproto.admin.enableAccountInvites'; // @ts-ignore
|
|
113
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
114
|
-
}
|
|
115
|
-
getAccountInfo(cfg) {
|
|
116
|
-
const nsid = 'com.atproto.admin.getAccountInfo'; // @ts-ignore
|
|
117
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
118
|
-
}
|
|
119
|
-
getAccountInfos(cfg) {
|
|
120
|
-
const nsid = 'com.atproto.admin.getAccountInfos'; // @ts-ignore
|
|
121
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
122
|
-
}
|
|
123
|
-
getInviteCodes(cfg) {
|
|
124
|
-
const nsid = 'com.atproto.admin.getInviteCodes'; // @ts-ignore
|
|
125
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
126
|
-
}
|
|
127
|
-
getSubjectStatus(cfg) {
|
|
128
|
-
const nsid = 'com.atproto.admin.getSubjectStatus'; // @ts-ignore
|
|
129
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
130
|
-
}
|
|
131
|
-
searchAccounts(cfg) {
|
|
132
|
-
const nsid = 'com.atproto.admin.searchAccounts'; // @ts-ignore
|
|
133
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
134
|
-
}
|
|
135
|
-
sendEmail(cfg) {
|
|
136
|
-
const nsid = 'com.atproto.admin.sendEmail'; // @ts-ignore
|
|
137
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
138
|
-
}
|
|
139
|
-
updateAccountEmail(cfg) {
|
|
140
|
-
const nsid = 'com.atproto.admin.updateAccountEmail'; // @ts-ignore
|
|
141
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
142
|
-
}
|
|
143
|
-
updateAccountHandle(cfg) {
|
|
144
|
-
const nsid = 'com.atproto.admin.updateAccountHandle'; // @ts-ignore
|
|
145
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
146
|
-
}
|
|
147
|
-
updateAccountPassword(cfg) {
|
|
148
|
-
const nsid = 'com.atproto.admin.updateAccountPassword'; // @ts-ignore
|
|
149
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
150
|
-
}
|
|
151
|
-
updateSubjectStatus(cfg) {
|
|
152
|
-
const nsid = 'com.atproto.admin.updateSubjectStatus'; // @ts-ignore
|
|
153
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
export class ComAtprotoIdentityNS {
|
|
157
|
-
_server;
|
|
158
|
-
constructor(server) {
|
|
159
|
-
this._server = server;
|
|
160
|
-
}
|
|
161
|
-
getRecommendedDidCredentials(cfg) {
|
|
162
|
-
const nsid = 'com.atproto.identity.getRecommendedDidCredentials'; // @ts-ignore
|
|
163
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
164
|
-
}
|
|
165
|
-
refreshIdentity(cfg) {
|
|
166
|
-
const nsid = 'com.atproto.identity.refreshIdentity'; // @ts-ignore
|
|
167
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
168
|
-
}
|
|
169
|
-
requestPlcOperationSignature(cfg) {
|
|
170
|
-
const nsid = 'com.atproto.identity.requestPlcOperationSignature'; // @ts-ignore
|
|
171
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
172
|
-
}
|
|
173
|
-
resolveDid(cfg) {
|
|
174
|
-
const nsid = 'com.atproto.identity.resolveDid'; // @ts-ignore
|
|
175
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
176
|
-
}
|
|
177
|
-
resolveHandle(cfg) {
|
|
178
|
-
const nsid = 'com.atproto.identity.resolveHandle'; // @ts-ignore
|
|
179
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
180
|
-
}
|
|
181
|
-
resolveIdentity(cfg) {
|
|
182
|
-
const nsid = 'com.atproto.identity.resolveIdentity'; // @ts-ignore
|
|
183
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
184
|
-
}
|
|
185
|
-
signPlcOperation(cfg) {
|
|
186
|
-
const nsid = 'com.atproto.identity.signPlcOperation'; // @ts-ignore
|
|
187
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
188
|
-
}
|
|
189
|
-
submitPlcOperation(cfg) {
|
|
190
|
-
const nsid = 'com.atproto.identity.submitPlcOperation'; // @ts-ignore
|
|
191
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
192
|
-
}
|
|
193
|
-
updateHandle(cfg) {
|
|
194
|
-
const nsid = 'com.atproto.identity.updateHandle'; // @ts-ignore
|
|
195
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
export class ComAtprotoLabelNS {
|
|
199
|
-
_server;
|
|
200
|
-
constructor(server) {
|
|
201
|
-
this._server = server;
|
|
202
|
-
}
|
|
203
|
-
queryLabels(cfg) {
|
|
204
|
-
const nsid = 'com.atproto.label.queryLabels'; // @ts-ignore
|
|
205
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
206
|
-
}
|
|
207
|
-
subscribeLabels(cfg) {
|
|
208
|
-
const nsid = 'com.atproto.label.subscribeLabels'; // @ts-ignore
|
|
209
|
-
return this._server.xrpc.streamMethod(nsid, cfg);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
export class ComAtprotoLexiconNS {
|
|
213
|
-
_server;
|
|
214
|
-
constructor(server) {
|
|
215
|
-
this._server = server;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
export class ComAtprotoModerationNS {
|
|
219
|
-
_server;
|
|
220
|
-
constructor(server) {
|
|
221
|
-
this._server = server;
|
|
222
|
-
}
|
|
223
|
-
createReport(cfg) {
|
|
224
|
-
const nsid = 'com.atproto.moderation.createReport'; // @ts-ignore
|
|
225
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
export class ComAtprotoRepoNS {
|
|
229
|
-
_server;
|
|
230
|
-
constructor(server) {
|
|
231
|
-
this._server = server;
|
|
232
|
-
}
|
|
233
|
-
applyWrites(cfg) {
|
|
234
|
-
const nsid = 'com.atproto.repo.applyWrites'; // @ts-ignore
|
|
235
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
236
|
-
}
|
|
237
|
-
createRecord(cfg) {
|
|
238
|
-
const nsid = 'com.atproto.repo.createRecord'; // @ts-ignore
|
|
239
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
240
|
-
}
|
|
241
|
-
deleteRecord(cfg) {
|
|
242
|
-
const nsid = 'com.atproto.repo.deleteRecord'; // @ts-ignore
|
|
243
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
244
|
-
}
|
|
245
|
-
describeRepo(cfg) {
|
|
246
|
-
const nsid = 'com.atproto.repo.describeRepo'; // @ts-ignore
|
|
247
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
248
|
-
}
|
|
249
|
-
getRecord(cfg) {
|
|
250
|
-
const nsid = 'com.atproto.repo.getRecord'; // @ts-ignore
|
|
251
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
252
|
-
}
|
|
253
|
-
importRepo(cfg) {
|
|
254
|
-
const nsid = 'com.atproto.repo.importRepo'; // @ts-ignore
|
|
255
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
256
|
-
}
|
|
257
|
-
listMissingBlobs(cfg) {
|
|
258
|
-
const nsid = 'com.atproto.repo.listMissingBlobs'; // @ts-ignore
|
|
259
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
260
|
-
}
|
|
261
|
-
listRecords(cfg) {
|
|
262
|
-
const nsid = 'com.atproto.repo.listRecords'; // @ts-ignore
|
|
263
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
264
|
-
}
|
|
265
|
-
putRecord(cfg) {
|
|
266
|
-
const nsid = 'com.atproto.repo.putRecord'; // @ts-ignore
|
|
267
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
268
|
-
}
|
|
269
|
-
uploadBlob(cfg) {
|
|
270
|
-
const nsid = 'com.atproto.repo.uploadBlob'; // @ts-ignore
|
|
271
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
export class ComAtprotoServerNS {
|
|
275
|
-
_server;
|
|
276
|
-
constructor(server) {
|
|
277
|
-
this._server = server;
|
|
278
|
-
}
|
|
279
|
-
activateAccount(cfg) {
|
|
280
|
-
const nsid = 'com.atproto.server.activateAccount'; // @ts-ignore
|
|
281
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
282
|
-
}
|
|
283
|
-
checkAccountStatus(cfg) {
|
|
284
|
-
const nsid = 'com.atproto.server.checkAccountStatus'; // @ts-ignore
|
|
285
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
286
|
-
}
|
|
287
|
-
confirmEmail(cfg) {
|
|
288
|
-
const nsid = 'com.atproto.server.confirmEmail'; // @ts-ignore
|
|
289
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
290
|
-
}
|
|
291
|
-
createAccount(cfg) {
|
|
292
|
-
const nsid = 'com.atproto.server.createAccount'; // @ts-ignore
|
|
293
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
294
|
-
}
|
|
295
|
-
createAppPassword(cfg) {
|
|
296
|
-
const nsid = 'com.atproto.server.createAppPassword'; // @ts-ignore
|
|
297
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
298
|
-
}
|
|
299
|
-
createInviteCode(cfg) {
|
|
300
|
-
const nsid = 'com.atproto.server.createInviteCode'; // @ts-ignore
|
|
301
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
302
|
-
}
|
|
303
|
-
createInviteCodes(cfg) {
|
|
304
|
-
const nsid = 'com.atproto.server.createInviteCodes'; // @ts-ignore
|
|
305
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
306
|
-
}
|
|
307
|
-
createSession(cfg) {
|
|
308
|
-
const nsid = 'com.atproto.server.createSession'; // @ts-ignore
|
|
309
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
310
|
-
}
|
|
311
|
-
deactivateAccount(cfg) {
|
|
312
|
-
const nsid = 'com.atproto.server.deactivateAccount'; // @ts-ignore
|
|
313
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
314
|
-
}
|
|
315
|
-
deleteAccount(cfg) {
|
|
316
|
-
const nsid = 'com.atproto.server.deleteAccount'; // @ts-ignore
|
|
317
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
318
|
-
}
|
|
319
|
-
deleteSession(cfg) {
|
|
320
|
-
const nsid = 'com.atproto.server.deleteSession'; // @ts-ignore
|
|
321
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
322
|
-
}
|
|
323
|
-
describeServer(cfg) {
|
|
324
|
-
const nsid = 'com.atproto.server.describeServer'; // @ts-ignore
|
|
325
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
326
|
-
}
|
|
327
|
-
getAccountInviteCodes(cfg) {
|
|
328
|
-
const nsid = 'com.atproto.server.getAccountInviteCodes'; // @ts-ignore
|
|
329
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
330
|
-
}
|
|
331
|
-
getServiceAuth(cfg) {
|
|
332
|
-
const nsid = 'com.atproto.server.getServiceAuth'; // @ts-ignore
|
|
333
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
334
|
-
}
|
|
335
|
-
getSession(cfg) {
|
|
336
|
-
const nsid = 'com.atproto.server.getSession'; // @ts-ignore
|
|
337
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
338
|
-
}
|
|
339
|
-
listAppPasswords(cfg) {
|
|
340
|
-
const nsid = 'com.atproto.server.listAppPasswords'; // @ts-ignore
|
|
341
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
342
|
-
}
|
|
343
|
-
refreshSession(cfg) {
|
|
344
|
-
const nsid = 'com.atproto.server.refreshSession'; // @ts-ignore
|
|
345
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
346
|
-
}
|
|
347
|
-
requestAccountDelete(cfg) {
|
|
348
|
-
const nsid = 'com.atproto.server.requestAccountDelete'; // @ts-ignore
|
|
349
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
350
|
-
}
|
|
351
|
-
requestEmailConfirmation(cfg) {
|
|
352
|
-
const nsid = 'com.atproto.server.requestEmailConfirmation'; // @ts-ignore
|
|
353
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
354
|
-
}
|
|
355
|
-
requestEmailUpdate(cfg) {
|
|
356
|
-
const nsid = 'com.atproto.server.requestEmailUpdate'; // @ts-ignore
|
|
357
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
358
|
-
}
|
|
359
|
-
requestPasswordReset(cfg) {
|
|
360
|
-
const nsid = 'com.atproto.server.requestPasswordReset'; // @ts-ignore
|
|
361
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
362
|
-
}
|
|
363
|
-
reserveSigningKey(cfg) {
|
|
364
|
-
const nsid = 'com.atproto.server.reserveSigningKey'; // @ts-ignore
|
|
365
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
366
|
-
}
|
|
367
|
-
resetPassword(cfg) {
|
|
368
|
-
const nsid = 'com.atproto.server.resetPassword'; // @ts-ignore
|
|
369
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
370
|
-
}
|
|
371
|
-
revokeAppPassword(cfg) {
|
|
372
|
-
const nsid = 'com.atproto.server.revokeAppPassword'; // @ts-ignore
|
|
373
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
374
|
-
}
|
|
375
|
-
updateEmail(cfg) {
|
|
376
|
-
const nsid = 'com.atproto.server.updateEmail'; // @ts-ignore
|
|
377
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
export class ComAtprotoSyncNS {
|
|
381
|
-
_server;
|
|
382
|
-
constructor(server) {
|
|
383
|
-
this._server = server;
|
|
384
|
-
}
|
|
385
|
-
getBlob(cfg) {
|
|
386
|
-
const nsid = 'com.atproto.sync.getBlob'; // @ts-ignore
|
|
387
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
388
|
-
}
|
|
389
|
-
getBlocks(cfg) {
|
|
390
|
-
const nsid = 'com.atproto.sync.getBlocks'; // @ts-ignore
|
|
391
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
392
|
-
}
|
|
393
|
-
getCheckout(cfg) {
|
|
394
|
-
const nsid = 'com.atproto.sync.getCheckout'; // @ts-ignore
|
|
395
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
396
|
-
}
|
|
397
|
-
getHead(cfg) {
|
|
398
|
-
const nsid = 'com.atproto.sync.getHead'; // @ts-ignore
|
|
399
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
400
|
-
}
|
|
401
|
-
getLatestCommit(cfg) {
|
|
402
|
-
const nsid = 'com.atproto.sync.getLatestCommit'; // @ts-ignore
|
|
403
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
404
|
-
}
|
|
405
|
-
getRecord(cfg) {
|
|
406
|
-
const nsid = 'com.atproto.sync.getRecord'; // @ts-ignore
|
|
407
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
408
|
-
}
|
|
409
|
-
getRepo(cfg) {
|
|
410
|
-
const nsid = 'com.atproto.sync.getRepo'; // @ts-ignore
|
|
411
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
412
|
-
}
|
|
413
|
-
getRepoStatus(cfg) {
|
|
414
|
-
const nsid = 'com.atproto.sync.getRepoStatus'; // @ts-ignore
|
|
415
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
416
|
-
}
|
|
417
|
-
listBlobs(cfg) {
|
|
418
|
-
const nsid = 'com.atproto.sync.listBlobs'; // @ts-ignore
|
|
419
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
420
|
-
}
|
|
421
|
-
listRepos(cfg) {
|
|
422
|
-
const nsid = 'com.atproto.sync.listRepos'; // @ts-ignore
|
|
423
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
424
|
-
}
|
|
425
|
-
listReposByCollection(cfg) {
|
|
426
|
-
const nsid = 'com.atproto.sync.listReposByCollection'; // @ts-ignore
|
|
427
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
428
|
-
}
|
|
429
|
-
notifyOfUpdate(cfg) {
|
|
430
|
-
const nsid = 'com.atproto.sync.notifyOfUpdate'; // @ts-ignore
|
|
431
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
432
|
-
}
|
|
433
|
-
requestCrawl(cfg) {
|
|
434
|
-
const nsid = 'com.atproto.sync.requestCrawl'; // @ts-ignore
|
|
435
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
436
|
-
}
|
|
437
|
-
subscribeRepos(cfg) {
|
|
438
|
-
const nsid = 'com.atproto.sync.subscribeRepos'; // @ts-ignore
|
|
439
|
-
return this._server.xrpc.streamMethod(nsid, cfg);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
export class ComAtprotoTempNS {
|
|
443
|
-
_server;
|
|
444
|
-
constructor(server) {
|
|
445
|
-
this._server = server;
|
|
446
|
-
}
|
|
447
|
-
addReservedHandle(cfg) {
|
|
448
|
-
const nsid = 'com.atproto.temp.addReservedHandle'; // @ts-ignore
|
|
449
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
450
|
-
}
|
|
451
|
-
checkSignupQueue(cfg) {
|
|
452
|
-
const nsid = 'com.atproto.temp.checkSignupQueue'; // @ts-ignore
|
|
453
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
454
|
-
}
|
|
455
|
-
fetchLabels(cfg) {
|
|
456
|
-
const nsid = 'com.atproto.temp.fetchLabels'; // @ts-ignore
|
|
457
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
458
|
-
}
|
|
459
|
-
requestPhoneVerification(cfg) {
|
|
460
|
-
const nsid = 'com.atproto.temp.requestPhoneVerification'; // @ts-ignore
|
|
461
|
-
return this._server.xrpc.method(nsid, cfg);
|
|
462
|
-
}
|
|
463
85
|
}
|
|
86
|
+
exports.ComAtprotoRepoNS = ComAtprotoRepoNS;
|