@0xsequence/api 0.29.8 → 0.33.1
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/CHANGELOG.md +24 -0
- package/dist/0xsequence-api.cjs.dev.js +24 -4
- package/dist/0xsequence-api.cjs.prod.js +24 -4
- package/dist/0xsequence-api.esm.js +22 -2
- package/dist/declarations/src/api.gen.d.ts +17 -1
- package/package.json +1 -1
- package/src/api.gen.ts +42 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @0xsequence/api
|
|
2
2
|
|
|
3
|
+
## 0.33.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- update bindings
|
|
8
|
+
|
|
9
|
+
## 0.31.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- - upgrading to ethers v5.5
|
|
14
|
+
|
|
15
|
+
## 0.30.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- - upgrade most deps
|
|
20
|
+
|
|
21
|
+
## 0.29.9
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- update client
|
|
26
|
+
|
|
3
27
|
## 0.29.8
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -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
|
|
|
@@ -253,6 +253,16 @@ class API {
|
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
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
|
+
|
|
256
266
|
this.isUsingGoogleMail = (args, headers) => {
|
|
257
267
|
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
258
268
|
return buildResponse(res).then(_data => {
|
|
@@ -273,6 +283,16 @@ class API {
|
|
|
273
283
|
});
|
|
274
284
|
};
|
|
275
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
|
+
|
|
276
296
|
this.internalClaimAccessCode = (args, headers) => {
|
|
277
297
|
return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
278
298
|
return buildResponse(res).then(_data => {
|
|
@@ -337,7 +357,7 @@ const buildResponse = res => {
|
|
|
337
357
|
|
|
338
358
|
class SequenceAPIClient extends API {
|
|
339
359
|
constructor(hostname, jwtAuth) {
|
|
340
|
-
super(hostname, fetch__default[
|
|
360
|
+
super(hostname, fetch__default["default"]);
|
|
341
361
|
this.jwtAuth = jwtAuth;
|
|
342
362
|
|
|
343
363
|
this._fetch = (input, init) => {
|
|
@@ -351,7 +371,7 @@ class SequenceAPIClient extends API {
|
|
|
351
371
|
|
|
352
372
|
|
|
353
373
|
init.headers = _extends({}, init.headers, headers);
|
|
354
|
-
return fetch__default[
|
|
374
|
+
return fetch__default["default"](input, init);
|
|
355
375
|
};
|
|
356
376
|
|
|
357
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
|
|
|
@@ -253,6 +253,16 @@ class API {
|
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
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
|
+
|
|
256
266
|
this.isUsingGoogleMail = (args, headers) => {
|
|
257
267
|
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
258
268
|
return buildResponse(res).then(_data => {
|
|
@@ -273,6 +283,16 @@ class API {
|
|
|
273
283
|
});
|
|
274
284
|
};
|
|
275
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
|
+
|
|
276
296
|
this.internalClaimAccessCode = (args, headers) => {
|
|
277
297
|
return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
278
298
|
return buildResponse(res).then(_data => {
|
|
@@ -337,7 +357,7 @@ const buildResponse = res => {
|
|
|
337
357
|
|
|
338
358
|
class SequenceAPIClient extends API {
|
|
339
359
|
constructor(hostname, jwtAuth) {
|
|
340
|
-
super(hostname, fetch__default[
|
|
360
|
+
super(hostname, fetch__default["default"]);
|
|
341
361
|
this.jwtAuth = jwtAuth;
|
|
342
362
|
|
|
343
363
|
this._fetch = (input, init) => {
|
|
@@ -351,7 +371,7 @@ class SequenceAPIClient extends API {
|
|
|
351
371
|
|
|
352
372
|
|
|
353
373
|
init.headers = _extends({}, init.headers, headers);
|
|
354
|
-
return fetch__default[
|
|
374
|
+
return fetch__default["default"](input, init);
|
|
355
375
|
};
|
|
356
376
|
|
|
357
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
|
|
|
@@ -245,6 +245,16 @@ class API {
|
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
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
|
+
|
|
248
258
|
this.isUsingGoogleMail = (args, headers) => {
|
|
249
259
|
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
250
260
|
return buildResponse(res).then(_data => {
|
|
@@ -265,6 +275,16 @@ class API {
|
|
|
265
275
|
});
|
|
266
276
|
};
|
|
267
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
|
+
|
|
268
288
|
this.internalClaimAccessCode = (args, headers) => {
|
|
269
289
|
return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {
|
|
270
290
|
return buildResponse(res).then(_data => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39";
|
|
4
4
|
export declare enum SortOrder {
|
|
5
5
|
DESC = "DESC",
|
|
6
6
|
ASC = "ASC"
|
|
@@ -132,8 +132,10 @@ export interface API {
|
|
|
132
132
|
userStorageSave(args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn>;
|
|
133
133
|
userStorageDelete(args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn>;
|
|
134
134
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>;
|
|
135
|
+
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>;
|
|
135
136
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
136
137
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
138
|
+
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
137
139
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
138
140
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>;
|
|
139
141
|
}
|
|
@@ -266,6 +268,12 @@ export interface UserStorageFetchAllReturn {
|
|
|
266
268
|
[key: string]: any;
|
|
267
269
|
};
|
|
268
270
|
}
|
|
271
|
+
export interface GetMoonpayLinkArgs {
|
|
272
|
+
url: string;
|
|
273
|
+
}
|
|
274
|
+
export interface GetMoonpayLinkReturn {
|
|
275
|
+
signedUrl: string;
|
|
276
|
+
}
|
|
269
277
|
export interface IsUsingGoogleMailArgs {
|
|
270
278
|
domain: string;
|
|
271
279
|
}
|
|
@@ -277,6 +285,12 @@ export interface GetInviteInfoArgs {
|
|
|
277
285
|
export interface GetInviteInfoReturn {
|
|
278
286
|
inviteInfo: InviteInfo;
|
|
279
287
|
}
|
|
288
|
+
export interface IsValidAccessCodeArgs {
|
|
289
|
+
accessCode: string;
|
|
290
|
+
}
|
|
291
|
+
export interface IsValidAccessCodeReturn {
|
|
292
|
+
status: boolean;
|
|
293
|
+
}
|
|
280
294
|
export interface InternalClaimAccessCodeArgs {
|
|
281
295
|
address: string;
|
|
282
296
|
accessCode: string;
|
|
@@ -316,8 +330,10 @@ export declare class API implements API {
|
|
|
316
330
|
userStorageSave: (args: UserStorageSaveArgs, headers?: object | undefined) => Promise<UserStorageSaveReturn>;
|
|
317
331
|
userStorageDelete: (args: UserStorageDeleteArgs, headers?: object | undefined) => Promise<UserStorageDeleteReturn>;
|
|
318
332
|
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>;
|
|
333
|
+
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>;
|
|
319
334
|
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
320
335
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
336
|
+
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
321
337
|
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
|
322
338
|
walletRecover: (args: WalletRecoverArgs, headers?: object | undefined) => Promise<WalletRecoverReturn>;
|
|
323
339
|
}
|
package/package.json
CHANGED
package/src/api.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-api v0.4.0
|
|
2
|
+
// sequence-api v0.4.0 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
3
3
|
// --
|
|
4
4
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
5
5
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -11,7 +11,7 @@ export const WebRPCVersion = "v1"
|
|
|
11
11
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
12
12
|
|
|
13
13
|
// Schema hash generated from your RIDL schema
|
|
14
|
-
export const WebRPCSchemaHash = "
|
|
14
|
+
export const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -170,8 +170,10 @@ export interface API {
|
|
|
170
170
|
userStorageSave(args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn>
|
|
171
171
|
userStorageDelete(args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn>
|
|
172
172
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>
|
|
173
|
+
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>
|
|
173
174
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>
|
|
174
175
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
176
|
+
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
175
177
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
176
178
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>
|
|
177
179
|
}
|
|
@@ -322,6 +324,13 @@ export interface UserStorageFetchAllArgs {
|
|
|
322
324
|
export interface UserStorageFetchAllReturn {
|
|
323
325
|
objects: {[key: string]: any}
|
|
324
326
|
}
|
|
327
|
+
export interface GetMoonpayLinkArgs {
|
|
328
|
+
url: string
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface GetMoonpayLinkReturn {
|
|
332
|
+
signedUrl: string
|
|
333
|
+
}
|
|
325
334
|
export interface IsUsingGoogleMailArgs {
|
|
326
335
|
domain: string
|
|
327
336
|
}
|
|
@@ -335,6 +344,13 @@ export interface GetInviteInfoArgs {
|
|
|
335
344
|
export interface GetInviteInfoReturn {
|
|
336
345
|
inviteInfo: InviteInfo
|
|
337
346
|
}
|
|
347
|
+
export interface IsValidAccessCodeArgs {
|
|
348
|
+
accessCode: string
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export interface IsValidAccessCodeReturn {
|
|
352
|
+
status: boolean
|
|
353
|
+
}
|
|
338
354
|
export interface InternalClaimAccessCodeArgs {
|
|
339
355
|
address: string
|
|
340
356
|
accessCode: string
|
|
@@ -610,6 +626,18 @@ export class API implements API {
|
|
|
610
626
|
})
|
|
611
627
|
}
|
|
612
628
|
|
|
629
|
+
getMoonpayLink = (args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn> => {
|
|
630
|
+
return this.fetch(
|
|
631
|
+
this.url('GetMoonpayLink'),
|
|
632
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
633
|
+
return buildResponse(res).then(_data => {
|
|
634
|
+
return {
|
|
635
|
+
signedUrl: <string>(_data.signedUrl)
|
|
636
|
+
}
|
|
637
|
+
})
|
|
638
|
+
})
|
|
639
|
+
}
|
|
640
|
+
|
|
613
641
|
isUsingGoogleMail = (args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn> => {
|
|
614
642
|
return this.fetch(
|
|
615
643
|
this.url('IsUsingGoogleMail'),
|
|
@@ -635,6 +663,18 @@ export class API implements API {
|
|
|
635
663
|
})
|
|
636
664
|
}
|
|
637
665
|
|
|
666
|
+
isValidAccessCode = (args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn> => {
|
|
667
|
+
return this.fetch(
|
|
668
|
+
this.url('IsValidAccessCode'),
|
|
669
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
670
|
+
return buildResponse(res).then(_data => {
|
|
671
|
+
return {
|
|
672
|
+
status: <boolean>(_data.status)
|
|
673
|
+
}
|
|
674
|
+
})
|
|
675
|
+
})
|
|
676
|
+
}
|
|
677
|
+
|
|
638
678
|
internalClaimAccessCode = (args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn> => {
|
|
639
679
|
return this.fetch(
|
|
640
680
|
this.url('InternalClaimAccessCode'),
|