@0xsequence/api 0.0.0-202182517435 → 0.0.0-20220425195445
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/0xsequence-api.cjs.dev.js +84 -4
- package/dist/0xsequence-api.cjs.prod.js +84 -4
- package/dist/0xsequence-api.esm.js +83 -3
- package/dist/declarations/src/api.gen.d.ts +345 -270
- package/dist/declarations/src/index.d.ts +7 -7
- package/package.json +2 -2
- package/src/api.gen.ts +172 -2
- package/src/index.ts +1 -1
- package/CHANGELOG.md +0 -362
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -109,6 +109,16 @@ class API {
|
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
+
this.sendPasswordlessLink = (args, headers) => {
|
|
113
|
+
return this.fetch(this.url('SendPasswordlessLink'), createHTTPRequest(args, headers)).then(res => {
|
|
114
|
+
return buildResponse(res).then(_data => {
|
|
115
|
+
return {
|
|
116
|
+
status: _data.status
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
|
|
112
122
|
this.friendList = (args, headers) => {
|
|
113
123
|
return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers)).then(res => {
|
|
114
124
|
return buildResponse(res).then(_data => {
|
|
@@ -203,6 +213,66 @@ class API {
|
|
|
203
213
|
});
|
|
204
214
|
};
|
|
205
215
|
|
|
216
|
+
this.userStorageFetch = (args, headers) => {
|
|
217
|
+
return this.fetch(this.url('UserStorageFetch'), createHTTPRequest(args, headers)).then(res => {
|
|
218
|
+
return buildResponse(res).then(_data => {
|
|
219
|
+
return {
|
|
220
|
+
object: _data.object
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
this.userStorageSave = (args, headers) => {
|
|
227
|
+
return this.fetch(this.url('UserStorageSave'), createHTTPRequest(args, headers)).then(res => {
|
|
228
|
+
return buildResponse(res).then(_data => {
|
|
229
|
+
return {
|
|
230
|
+
ok: _data.ok
|
|
231
|
+
};
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
this.userStorageDelete = (args, headers) => {
|
|
237
|
+
return this.fetch(this.url('UserStorageDelete'), createHTTPRequest(args, headers)).then(res => {
|
|
238
|
+
return buildResponse(res).then(_data => {
|
|
239
|
+
return {
|
|
240
|
+
ok: _data.ok
|
|
241
|
+
};
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
this.userStorageFetchAll = (args, headers) => {
|
|
247
|
+
return this.fetch(this.url('UserStorageFetchAll'), createHTTPRequest(args, headers)).then(res => {
|
|
248
|
+
return buildResponse(res).then(_data => {
|
|
249
|
+
return {
|
|
250
|
+
objects: _data.objects
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
this.getMoonpayLink = (args, headers) => {
|
|
257
|
+
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => {
|
|
258
|
+
return buildResponse(res).then(_data => {
|
|
259
|
+
return {
|
|
260
|
+
signedUrl: _data.signedUrl
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
this.isUsingGoogleMail = (args, headers) => {
|
|
267
|
+
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
268
|
+
return buildResponse(res).then(_data => {
|
|
269
|
+
return {
|
|
270
|
+
yes: _data.yes
|
|
271
|
+
};
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
|
|
206
276
|
this.getInviteInfo = headers => {
|
|
207
277
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
208
278
|
return buildResponse(res).then(_data => {
|
|
@@ -213,6 +283,16 @@ class API {
|
|
|
213
283
|
});
|
|
214
284
|
};
|
|
215
285
|
|
|
286
|
+
this.isValidAccessCode = (args, headers) => {
|
|
287
|
+
return this.fetch(this.url('IsValidAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
288
|
+
return buildResponse(res).then(_data => {
|
|
289
|
+
return {
|
|
290
|
+
status: _data.status
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
|
|
216
296
|
this.internalClaimAccessCode = (args, headers) => {
|
|
217
297
|
return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
218
298
|
return buildResponse(res).then(_data => {
|
|
@@ -277,7 +357,7 @@ const buildResponse = res => {
|
|
|
277
357
|
|
|
278
358
|
class SequenceAPIClient extends API {
|
|
279
359
|
constructor(hostname, jwtAuth) {
|
|
280
|
-
super(hostname, fetch__default[
|
|
360
|
+
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch__default["default"]);
|
|
281
361
|
this.jwtAuth = jwtAuth;
|
|
282
362
|
|
|
283
363
|
this._fetch = (input, init) => {
|
|
@@ -291,7 +371,7 @@ class SequenceAPIClient extends API {
|
|
|
291
371
|
|
|
292
372
|
|
|
293
373
|
init.headers = _extends({}, init.headers, headers);
|
|
294
|
-
return fetch__default[
|
|
374
|
+
return fetch__default["default"](input, init);
|
|
295
375
|
};
|
|
296
376
|
|
|
297
377
|
this.fetch = this._fetch;
|
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -109,6 +109,16 @@ class API {
|
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
+
this.sendPasswordlessLink = (args, headers) => {
|
|
113
|
+
return this.fetch(this.url('SendPasswordlessLink'), createHTTPRequest(args, headers)).then(res => {
|
|
114
|
+
return buildResponse(res).then(_data => {
|
|
115
|
+
return {
|
|
116
|
+
status: _data.status
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
|
|
112
122
|
this.friendList = (args, headers) => {
|
|
113
123
|
return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers)).then(res => {
|
|
114
124
|
return buildResponse(res).then(_data => {
|
|
@@ -203,6 +213,66 @@ class API {
|
|
|
203
213
|
});
|
|
204
214
|
};
|
|
205
215
|
|
|
216
|
+
this.userStorageFetch = (args, headers) => {
|
|
217
|
+
return this.fetch(this.url('UserStorageFetch'), createHTTPRequest(args, headers)).then(res => {
|
|
218
|
+
return buildResponse(res).then(_data => {
|
|
219
|
+
return {
|
|
220
|
+
object: _data.object
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
this.userStorageSave = (args, headers) => {
|
|
227
|
+
return this.fetch(this.url('UserStorageSave'), createHTTPRequest(args, headers)).then(res => {
|
|
228
|
+
return buildResponse(res).then(_data => {
|
|
229
|
+
return {
|
|
230
|
+
ok: _data.ok
|
|
231
|
+
};
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
this.userStorageDelete = (args, headers) => {
|
|
237
|
+
return this.fetch(this.url('UserStorageDelete'), createHTTPRequest(args, headers)).then(res => {
|
|
238
|
+
return buildResponse(res).then(_data => {
|
|
239
|
+
return {
|
|
240
|
+
ok: _data.ok
|
|
241
|
+
};
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
this.userStorageFetchAll = (args, headers) => {
|
|
247
|
+
return this.fetch(this.url('UserStorageFetchAll'), createHTTPRequest(args, headers)).then(res => {
|
|
248
|
+
return buildResponse(res).then(_data => {
|
|
249
|
+
return {
|
|
250
|
+
objects: _data.objects
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
this.getMoonpayLink = (args, headers) => {
|
|
257
|
+
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => {
|
|
258
|
+
return buildResponse(res).then(_data => {
|
|
259
|
+
return {
|
|
260
|
+
signedUrl: _data.signedUrl
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
this.isUsingGoogleMail = (args, headers) => {
|
|
267
|
+
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
268
|
+
return buildResponse(res).then(_data => {
|
|
269
|
+
return {
|
|
270
|
+
yes: _data.yes
|
|
271
|
+
};
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
|
|
206
276
|
this.getInviteInfo = headers => {
|
|
207
277
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
208
278
|
return buildResponse(res).then(_data => {
|
|
@@ -213,6 +283,16 @@ class API {
|
|
|
213
283
|
});
|
|
214
284
|
};
|
|
215
285
|
|
|
286
|
+
this.isValidAccessCode = (args, headers) => {
|
|
287
|
+
return this.fetch(this.url('IsValidAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
288
|
+
return buildResponse(res).then(_data => {
|
|
289
|
+
return {
|
|
290
|
+
status: _data.status
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
|
|
216
296
|
this.internalClaimAccessCode = (args, headers) => {
|
|
217
297
|
return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
218
298
|
return buildResponse(res).then(_data => {
|
|
@@ -277,7 +357,7 @@ const buildResponse = res => {
|
|
|
277
357
|
|
|
278
358
|
class SequenceAPIClient extends API {
|
|
279
359
|
constructor(hostname, jwtAuth) {
|
|
280
|
-
super(hostname, fetch__default[
|
|
360
|
+
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch__default["default"]);
|
|
281
361
|
this.jwtAuth = jwtAuth;
|
|
282
362
|
|
|
283
363
|
this._fetch = (input, init) => {
|
|
@@ -291,7 +371,7 @@ class SequenceAPIClient extends API {
|
|
|
291
371
|
|
|
292
372
|
|
|
293
373
|
init.headers = _extends({}, init.headers, headers);
|
|
294
|
-
return fetch__default[
|
|
374
|
+
return fetch__default["default"](input, init);
|
|
295
375
|
};
|
|
296
376
|
|
|
297
377
|
this.fetch = this._fetch;
|
|
@@ -19,7 +19,7 @@ function _extends() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* eslint-disable */
|
|
22
|
-
// sequence-api v0.4.0
|
|
22
|
+
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
23
23
|
// --
|
|
24
24
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
25
25
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -28,7 +28,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
28
28
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
30
30
|
|
|
31
|
-
const WebRPCSchemaHash = "
|
|
31
|
+
const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -101,6 +101,16 @@ class API {
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
+
this.sendPasswordlessLink = (args, headers) => {
|
|
105
|
+
return this.fetch(this.url('SendPasswordlessLink'), createHTTPRequest(args, headers)).then(res => {
|
|
106
|
+
return buildResponse(res).then(_data => {
|
|
107
|
+
return {
|
|
108
|
+
status: _data.status
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
|
|
104
114
|
this.friendList = (args, headers) => {
|
|
105
115
|
return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers)).then(res => {
|
|
106
116
|
return buildResponse(res).then(_data => {
|
|
@@ -195,6 +205,66 @@ class API {
|
|
|
195
205
|
});
|
|
196
206
|
};
|
|
197
207
|
|
|
208
|
+
this.userStorageFetch = (args, headers) => {
|
|
209
|
+
return this.fetch(this.url('UserStorageFetch'), createHTTPRequest(args, headers)).then(res => {
|
|
210
|
+
return buildResponse(res).then(_data => {
|
|
211
|
+
return {
|
|
212
|
+
object: _data.object
|
|
213
|
+
};
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
this.userStorageSave = (args, headers) => {
|
|
219
|
+
return this.fetch(this.url('UserStorageSave'), createHTTPRequest(args, headers)).then(res => {
|
|
220
|
+
return buildResponse(res).then(_data => {
|
|
221
|
+
return {
|
|
222
|
+
ok: _data.ok
|
|
223
|
+
};
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
this.userStorageDelete = (args, headers) => {
|
|
229
|
+
return this.fetch(this.url('UserStorageDelete'), createHTTPRequest(args, headers)).then(res => {
|
|
230
|
+
return buildResponse(res).then(_data => {
|
|
231
|
+
return {
|
|
232
|
+
ok: _data.ok
|
|
233
|
+
};
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
this.userStorageFetchAll = (args, headers) => {
|
|
239
|
+
return this.fetch(this.url('UserStorageFetchAll'), createHTTPRequest(args, headers)).then(res => {
|
|
240
|
+
return buildResponse(res).then(_data => {
|
|
241
|
+
return {
|
|
242
|
+
objects: _data.objects
|
|
243
|
+
};
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
this.getMoonpayLink = (args, headers) => {
|
|
249
|
+
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => {
|
|
250
|
+
return buildResponse(res).then(_data => {
|
|
251
|
+
return {
|
|
252
|
+
signedUrl: _data.signedUrl
|
|
253
|
+
};
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
this.isUsingGoogleMail = (args, headers) => {
|
|
259
|
+
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
260
|
+
return buildResponse(res).then(_data => {
|
|
261
|
+
return {
|
|
262
|
+
yes: _data.yes
|
|
263
|
+
};
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
|
|
198
268
|
this.getInviteInfo = headers => {
|
|
199
269
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
200
270
|
return buildResponse(res).then(_data => {
|
|
@@ -205,6 +275,16 @@ class API {
|
|
|
205
275
|
});
|
|
206
276
|
};
|
|
207
277
|
|
|
278
|
+
this.isValidAccessCode = (args, headers) => {
|
|
279
|
+
return this.fetch(this.url('IsValidAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
280
|
+
return buildResponse(res).then(_data => {
|
|
281
|
+
return {
|
|
282
|
+
status: _data.status
|
|
283
|
+
};
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
|
|
208
288
|
this.internalClaimAccessCode = (args, headers) => {
|
|
209
289
|
return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
210
290
|
return buildResponse(res).then(_data => {
|
|
@@ -269,7 +349,7 @@ const buildResponse = res => {
|
|
|
269
349
|
|
|
270
350
|
class SequenceAPIClient extends API {
|
|
271
351
|
constructor(hostname, jwtAuth) {
|
|
272
|
-
super(hostname, fetch);
|
|
352
|
+
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
273
353
|
this.jwtAuth = jwtAuth;
|
|
274
354
|
|
|
275
355
|
this._fetch = (input, init) => {
|