@0xsequence/api 0.0.0-20230612165320 → 0.0.0-20230612182042
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 +17 -25
- package/dist/0xsequence-api.cjs.prod.js +17 -25
- package/dist/0xsequence-api.esm.js +14 -25
- package/dist/declarations/src/api.gen.d.ts +1 -12
- package/package.json +1 -1
- package/src/api.gen.ts +4 -27
|
@@ -18,11 +18,11 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-api v0.4.0
|
|
21
|
+
// sequence-api v0.4.0 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
22
22
|
// --
|
|
23
|
-
// Code generated by webrpc-gen@v0.10.x-dev with typescript
|
|
23
|
+
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
25
|
-
// webrpc-gen -schema=api.ridl -target=typescript
|
|
25
|
+
// webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
|
|
26
26
|
|
|
27
27
|
// WebRPC description and code-gen version
|
|
28
28
|
const WebRPCVersion = "v1";
|
|
@@ -31,38 +31,36 @@ const WebRPCVersion = "v1";
|
|
|
31
31
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = "
|
|
34
|
+
const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
38
38
|
//
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
(function (SmartRampOrderStatus) {
|
|
40
|
+
let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
|
|
42
41
|
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
43
42
|
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
44
43
|
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
45
44
|
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
46
45
|
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
return SmartRampOrderStatus;
|
|
47
|
+
}({});
|
|
48
|
+
let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
|
|
50
49
|
SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
|
|
51
50
|
SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
52
51
|
SmartRampTxnStatus["FAILED"] = "FAILED";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return SmartRampTxnStatus;
|
|
53
|
+
}({});
|
|
54
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
56
55
|
SortOrder["DESC"] = "DESC";
|
|
57
56
|
SortOrder["ASC"] = "ASC";
|
|
58
|
-
|
|
57
|
+
return SortOrder;
|
|
58
|
+
}({});
|
|
59
59
|
//
|
|
60
60
|
// Client
|
|
61
61
|
//
|
|
62
62
|
class API {
|
|
63
63
|
constructor(hostname, fetch) {
|
|
64
|
-
this.hostname = void 0;
|
|
65
|
-
this.fetch = void 0;
|
|
66
64
|
this.path = '/rpc/API/';
|
|
67
65
|
this.ping = headers => {
|
|
68
66
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -555,15 +553,6 @@ class API {
|
|
|
555
553
|
});
|
|
556
554
|
});
|
|
557
555
|
};
|
|
558
|
-
this.paperSessionSecret2 = (args, headers) => {
|
|
559
|
-
return this.fetch(this.url('PaperSessionSecret2'), createHTTPRequest(args, headers)).then(res => {
|
|
560
|
-
return buildResponse(res).then(_data => {
|
|
561
|
-
return {
|
|
562
|
-
secret: _data.secret
|
|
563
|
-
};
|
|
564
|
-
});
|
|
565
|
-
});
|
|
566
|
-
};
|
|
567
556
|
this.hostname = hostname;
|
|
568
557
|
this.fetch = (input, init) => fetch(input, init);
|
|
569
558
|
}
|
|
@@ -604,7 +593,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
604
593
|
class SequenceAPIClient extends API {
|
|
605
594
|
constructor(hostname, jwtAuth) {
|
|
606
595
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
607
|
-
this.jwtAuth = jwtAuth;
|
|
608
596
|
this._fetch = (input, init) => {
|
|
609
597
|
// automatically include jwt auth header to requests
|
|
610
598
|
// if its been set on the api client
|
|
@@ -617,12 +605,16 @@ class SequenceAPIClient extends API {
|
|
|
617
605
|
init.headers = _extends({}, init.headers, headers);
|
|
618
606
|
return fetch(input, init);
|
|
619
607
|
};
|
|
608
|
+
this.jwtAuth = jwtAuth;
|
|
620
609
|
this.fetch = this._fetch;
|
|
621
610
|
}
|
|
622
611
|
}
|
|
623
612
|
|
|
624
613
|
exports.API = API;
|
|
625
614
|
exports.SequenceAPIClient = SequenceAPIClient;
|
|
615
|
+
exports.SmartRampOrderStatus = SmartRampOrderStatus;
|
|
616
|
+
exports.SmartRampTxnStatus = SmartRampTxnStatus;
|
|
617
|
+
exports.SortOrder = SortOrder;
|
|
626
618
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
627
619
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
628
620
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -18,11 +18,11 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-api v0.4.0
|
|
21
|
+
// sequence-api v0.4.0 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
22
22
|
// --
|
|
23
|
-
// Code generated by webrpc-gen@v0.10.x-dev with typescript
|
|
23
|
+
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
25
|
-
// webrpc-gen -schema=api.ridl -target=typescript
|
|
25
|
+
// webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
|
|
26
26
|
|
|
27
27
|
// WebRPC description and code-gen version
|
|
28
28
|
const WebRPCVersion = "v1";
|
|
@@ -31,38 +31,36 @@ const WebRPCVersion = "v1";
|
|
|
31
31
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = "
|
|
34
|
+
const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
38
38
|
//
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
(function (SmartRampOrderStatus) {
|
|
40
|
+
let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
|
|
42
41
|
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
43
42
|
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
44
43
|
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
45
44
|
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
46
45
|
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
return SmartRampOrderStatus;
|
|
47
|
+
}({});
|
|
48
|
+
let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
|
|
50
49
|
SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
|
|
51
50
|
SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
52
51
|
SmartRampTxnStatus["FAILED"] = "FAILED";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return SmartRampTxnStatus;
|
|
53
|
+
}({});
|
|
54
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
56
55
|
SortOrder["DESC"] = "DESC";
|
|
57
56
|
SortOrder["ASC"] = "ASC";
|
|
58
|
-
|
|
57
|
+
return SortOrder;
|
|
58
|
+
}({});
|
|
59
59
|
//
|
|
60
60
|
// Client
|
|
61
61
|
//
|
|
62
62
|
class API {
|
|
63
63
|
constructor(hostname, fetch) {
|
|
64
|
-
this.hostname = void 0;
|
|
65
|
-
this.fetch = void 0;
|
|
66
64
|
this.path = '/rpc/API/';
|
|
67
65
|
this.ping = headers => {
|
|
68
66
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -555,15 +553,6 @@ class API {
|
|
|
555
553
|
});
|
|
556
554
|
});
|
|
557
555
|
};
|
|
558
|
-
this.paperSessionSecret2 = (args, headers) => {
|
|
559
|
-
return this.fetch(this.url('PaperSessionSecret2'), createHTTPRequest(args, headers)).then(res => {
|
|
560
|
-
return buildResponse(res).then(_data => {
|
|
561
|
-
return {
|
|
562
|
-
secret: _data.secret
|
|
563
|
-
};
|
|
564
|
-
});
|
|
565
|
-
});
|
|
566
|
-
};
|
|
567
556
|
this.hostname = hostname;
|
|
568
557
|
this.fetch = (input, init) => fetch(input, init);
|
|
569
558
|
}
|
|
@@ -604,7 +593,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
604
593
|
class SequenceAPIClient extends API {
|
|
605
594
|
constructor(hostname, jwtAuth) {
|
|
606
595
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
607
|
-
this.jwtAuth = jwtAuth;
|
|
608
596
|
this._fetch = (input, init) => {
|
|
609
597
|
// automatically include jwt auth header to requests
|
|
610
598
|
// if its been set on the api client
|
|
@@ -617,12 +605,16 @@ class SequenceAPIClient extends API {
|
|
|
617
605
|
init.headers = _extends({}, init.headers, headers);
|
|
618
606
|
return fetch(input, init);
|
|
619
607
|
};
|
|
608
|
+
this.jwtAuth = jwtAuth;
|
|
620
609
|
this.fetch = this._fetch;
|
|
621
610
|
}
|
|
622
611
|
}
|
|
623
612
|
|
|
624
613
|
exports.API = API;
|
|
625
614
|
exports.SequenceAPIClient = SequenceAPIClient;
|
|
615
|
+
exports.SmartRampOrderStatus = SmartRampOrderStatus;
|
|
616
|
+
exports.SmartRampTxnStatus = SmartRampTxnStatus;
|
|
617
|
+
exports.SortOrder = SortOrder;
|
|
626
618
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
627
619
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
628
620
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -14,11 +14,11 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* eslint-disable */
|
|
17
|
-
// sequence-api v0.4.0
|
|
17
|
+
// sequence-api v0.4.0 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
18
18
|
// --
|
|
19
|
-
// Code generated by webrpc-gen@v0.10.x-dev with typescript
|
|
19
|
+
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
20
20
|
//
|
|
21
|
-
// webrpc-gen -schema=api.ridl -target=typescript
|
|
21
|
+
// webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
|
|
22
22
|
|
|
23
23
|
// WebRPC description and code-gen version
|
|
24
24
|
const WebRPCVersion = "v1";
|
|
@@ -27,38 +27,36 @@ const WebRPCVersion = "v1";
|
|
|
27
27
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
28
28
|
|
|
29
29
|
// Schema hash generated from your RIDL schema
|
|
30
|
-
const WebRPCSchemaHash = "
|
|
30
|
+
const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
31
31
|
|
|
32
32
|
//
|
|
33
33
|
// Types
|
|
34
34
|
//
|
|
35
35
|
|
|
36
|
-
let SmartRampOrderStatus
|
|
37
|
-
(function (SmartRampOrderStatus) {
|
|
36
|
+
let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
|
|
38
37
|
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
39
38
|
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
40
39
|
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
41
40
|
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
42
41
|
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
return SmartRampOrderStatus;
|
|
43
|
+
}({});
|
|
44
|
+
let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
|
|
46
45
|
SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
|
|
47
46
|
SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
48
47
|
SmartRampTxnStatus["FAILED"] = "FAILED";
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
return SmartRampTxnStatus;
|
|
49
|
+
}({});
|
|
50
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
52
51
|
SortOrder["DESC"] = "DESC";
|
|
53
52
|
SortOrder["ASC"] = "ASC";
|
|
54
|
-
|
|
53
|
+
return SortOrder;
|
|
54
|
+
}({});
|
|
55
55
|
//
|
|
56
56
|
// Client
|
|
57
57
|
//
|
|
58
58
|
class API {
|
|
59
59
|
constructor(hostname, fetch) {
|
|
60
|
-
this.hostname = void 0;
|
|
61
|
-
this.fetch = void 0;
|
|
62
60
|
this.path = '/rpc/API/';
|
|
63
61
|
this.ping = headers => {
|
|
64
62
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -551,15 +549,6 @@ class API {
|
|
|
551
549
|
});
|
|
552
550
|
});
|
|
553
551
|
};
|
|
554
|
-
this.paperSessionSecret2 = (args, headers) => {
|
|
555
|
-
return this.fetch(this.url('PaperSessionSecret2'), createHTTPRequest(args, headers)).then(res => {
|
|
556
|
-
return buildResponse(res).then(_data => {
|
|
557
|
-
return {
|
|
558
|
-
secret: _data.secret
|
|
559
|
-
};
|
|
560
|
-
});
|
|
561
|
-
});
|
|
562
|
-
};
|
|
563
552
|
this.hostname = hostname;
|
|
564
553
|
this.fetch = (input, init) => fetch(input, init);
|
|
565
554
|
}
|
|
@@ -600,7 +589,6 @@ const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
|
600
589
|
class SequenceAPIClient extends API {
|
|
601
590
|
constructor(hostname, jwtAuth) {
|
|
602
591
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
603
|
-
this.jwtAuth = jwtAuth;
|
|
604
592
|
this._fetch = (input, init) => {
|
|
605
593
|
// automatically include jwt auth header to requests
|
|
606
594
|
// if its been set on the api client
|
|
@@ -613,6 +601,7 @@ class SequenceAPIClient extends API {
|
|
|
613
601
|
init.headers = _extends({}, init.headers, headers);
|
|
614
602
|
return fetch(input, init);
|
|
615
603
|
};
|
|
604
|
+
this.jwtAuth = jwtAuth;
|
|
616
605
|
this.fetch = this._fetch;
|
|
617
606
|
}
|
|
618
607
|
}
|
|
@@ -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 = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
4
4
|
export declare enum SmartRampOrderStatus {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
RUNNING_CHECKS = "RUNNING_CHECKS",
|
|
@@ -295,7 +295,6 @@ export interface API {
|
|
|
295
295
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>;
|
|
296
296
|
blockNumberAtTime(args: BlockNumberAtTimeArgs, headers?: object): Promise<BlockNumberAtTimeReturn>;
|
|
297
297
|
paperSessionSecret(args: PaperSessionSecretArgs, headers?: object): Promise<PaperSessionSecretReturn>;
|
|
298
|
-
paperSessionSecret2(args: PaperSessionSecret2Args, headers?: object): Promise<PaperSessionSecret2Return>;
|
|
299
298
|
}
|
|
300
299
|
export interface PingArgs {
|
|
301
300
|
}
|
|
@@ -660,15 +659,6 @@ export interface PaperSessionSecretArgs {
|
|
|
660
659
|
export interface PaperSessionSecretReturn {
|
|
661
660
|
secret: string;
|
|
662
661
|
}
|
|
663
|
-
export interface PaperSessionSecret2Args {
|
|
664
|
-
chainName: string;
|
|
665
|
-
contractAddress: string;
|
|
666
|
-
paramsJson: string;
|
|
667
|
-
abi: string;
|
|
668
|
-
}
|
|
669
|
-
export interface PaperSessionSecret2Return {
|
|
670
|
-
secret: string;
|
|
671
|
-
}
|
|
672
662
|
export declare class API implements API {
|
|
673
663
|
protected hostname: string;
|
|
674
664
|
protected fetch: Fetch;
|
|
@@ -728,7 +718,6 @@ export declare class API implements API {
|
|
|
728
718
|
walletRecover: (args: WalletRecoverArgs, headers?: object | undefined) => Promise<WalletRecoverReturn>;
|
|
729
719
|
blockNumberAtTime: (args: BlockNumberAtTimeArgs, headers?: object | undefined) => Promise<BlockNumberAtTimeReturn>;
|
|
730
720
|
paperSessionSecret: (args: PaperSessionSecretArgs, headers?: object | undefined) => Promise<PaperSessionSecretReturn>;
|
|
731
|
-
paperSessionSecret2: (args: PaperSessionSecret2Args, headers?: object | undefined) => Promise<PaperSessionSecret2Return>;
|
|
732
721
|
}
|
|
733
722
|
export interface WebRPCError extends Error {
|
|
734
723
|
code: string;
|
package/package.json
CHANGED
package/src/api.gen.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-api v0.4.0
|
|
2
|
+
// sequence-api v0.4.0 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
3
3
|
// --
|
|
4
|
-
// Code generated by webrpc-gen@v0.10.x-dev with typescript
|
|
4
|
+
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
6
|
-
// webrpc-gen -schema=api.ridl -target=typescript
|
|
6
|
+
// webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
|
|
7
7
|
|
|
8
8
|
// WebRPC description and code-gen version
|
|
9
9
|
export const WebRPCVersion = "v1"
|
|
@@ -12,7 +12,7 @@ export const WebRPCVersion = "v1"
|
|
|
12
12
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
13
13
|
|
|
14
14
|
// Schema hash generated from your RIDL schema
|
|
15
|
-
export const WebRPCSchemaHash = "
|
|
15
|
+
export const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb"
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Types
|
|
@@ -342,7 +342,6 @@ export interface API {
|
|
|
342
342
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>
|
|
343
343
|
blockNumberAtTime(args: BlockNumberAtTimeArgs, headers?: object): Promise<BlockNumberAtTimeReturn>
|
|
344
344
|
paperSessionSecret(args: PaperSessionSecretArgs, headers?: object): Promise<PaperSessionSecretReturn>
|
|
345
|
-
paperSessionSecret2(args: PaperSessionSecret2Args, headers?: object): Promise<PaperSessionSecret2Return>
|
|
346
345
|
}
|
|
347
346
|
|
|
348
347
|
export interface PingArgs {
|
|
@@ -759,16 +758,6 @@ export interface PaperSessionSecretArgs {
|
|
|
759
758
|
export interface PaperSessionSecretReturn {
|
|
760
759
|
secret: string
|
|
761
760
|
}
|
|
762
|
-
export interface PaperSessionSecret2Args {
|
|
763
|
-
chainName: string
|
|
764
|
-
contractAddress: string
|
|
765
|
-
paramsJson: string
|
|
766
|
-
abi: string
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
export interface PaperSessionSecret2Return {
|
|
770
|
-
secret: string
|
|
771
|
-
}
|
|
772
761
|
|
|
773
762
|
|
|
774
763
|
|
|
@@ -1446,18 +1435,6 @@ export class API implements API {
|
|
|
1446
1435
|
})
|
|
1447
1436
|
}
|
|
1448
1437
|
|
|
1449
|
-
paperSessionSecret2 = (args: PaperSessionSecret2Args, headers?: object): Promise<PaperSessionSecret2Return> => {
|
|
1450
|
-
return this.fetch(
|
|
1451
|
-
this.url('PaperSessionSecret2'),
|
|
1452
|
-
createHTTPRequest(args, headers)).then((res) => {
|
|
1453
|
-
return buildResponse(res).then(_data => {
|
|
1454
|
-
return {
|
|
1455
|
-
secret: <string>(_data.secret)
|
|
1456
|
-
}
|
|
1457
|
-
})
|
|
1458
|
-
})
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
1438
|
}
|
|
1462
1439
|
|
|
1463
1440
|
|