@dfns/sdk 0.5.6-alpha.6 → 0.5.6-alpha.8
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/generated/auth/client.d.ts +1 -1
- package/generated/auth/client.js +29 -28
- package/generated/auth/types.d.ts +2 -2
- package/generated/exchanges/client.d.ts +1 -1
- package/generated/exchanges/client.js +5 -4
- package/generated/exchanges/types.d.ts +81 -89
- package/generated/networks/client.d.ts +1 -1
- package/generated/networks/types.d.ts +3 -3
- package/generated/permissions/client.d.ts +1 -1
- package/generated/permissions/client.js +6 -5
- package/generated/policies/client.d.ts +1 -1
- package/generated/policies/client.js +5 -4
- package/generated/policies/types.d.ts +114 -45
- package/generated/signers/client.d.ts +1 -1
- package/generated/wallets/client.d.ts +1 -1
- package/generated/wallets/client.js +11 -10
- package/generated/wallets/types.d.ts +123 -34
- package/generated/webhooks/client.d.ts +1 -1
- package/generated/webhooks/client.js +5 -4
- package/package.json +1 -1
- package/types/generic.d.ts +13 -0
- package/types/generic.js +2 -0
- package/utils/fetch.d.ts +6 -3
- package/utils/fetch.js +8 -38
- package/utils/userActionFetch.d.ts +3 -0
- package/utils/userActionFetch.js +41 -0
package/generated/auth/client.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthClient = void 0;
|
|
4
4
|
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const userActionFetch_1 = require("../../utils/userActionFetch");
|
|
5
6
|
const url_1 = require("../../utils/url");
|
|
6
7
|
class AuthClient {
|
|
7
8
|
constructor(apiOptions) {
|
|
@@ -12,7 +13,7 @@ class AuthClient {
|
|
|
12
13
|
path: request ?? {},
|
|
13
14
|
query: {},
|
|
14
15
|
});
|
|
15
|
-
const response = await (0,
|
|
16
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
16
17
|
method: 'PUT',
|
|
17
18
|
body: {},
|
|
18
19
|
apiOptions: this.apiOptions,
|
|
@@ -24,7 +25,7 @@ class AuthClient {
|
|
|
24
25
|
path: request ?? {},
|
|
25
26
|
query: {},
|
|
26
27
|
});
|
|
27
|
-
const response = await (0,
|
|
28
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
28
29
|
method: 'PUT',
|
|
29
30
|
body: request.body,
|
|
30
31
|
apiOptions: this.apiOptions,
|
|
@@ -36,7 +37,7 @@ class AuthClient {
|
|
|
36
37
|
path: request ?? {},
|
|
37
38
|
query: {},
|
|
38
39
|
});
|
|
39
|
-
const response = await (0,
|
|
40
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
40
41
|
method: 'PUT',
|
|
41
42
|
body: {},
|
|
42
43
|
apiOptions: this.apiOptions,
|
|
@@ -48,7 +49,7 @@ class AuthClient {
|
|
|
48
49
|
path: request ?? {},
|
|
49
50
|
query: {},
|
|
50
51
|
});
|
|
51
|
-
const response = await (0,
|
|
52
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
52
53
|
method: 'PUT',
|
|
53
54
|
body: {},
|
|
54
55
|
apiOptions: this.apiOptions,
|
|
@@ -60,7 +61,7 @@ class AuthClient {
|
|
|
60
61
|
path: request ?? {},
|
|
61
62
|
query: {},
|
|
62
63
|
});
|
|
63
|
-
const response = await (0,
|
|
64
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
64
65
|
method: 'PUT',
|
|
65
66
|
body: {},
|
|
66
67
|
apiOptions: this.apiOptions,
|
|
@@ -72,7 +73,7 @@ class AuthClient {
|
|
|
72
73
|
path: request ?? {},
|
|
73
74
|
query: {},
|
|
74
75
|
});
|
|
75
|
-
const response = await (0,
|
|
76
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
76
77
|
method: 'DELETE',
|
|
77
78
|
body: {},
|
|
78
79
|
apiOptions: this.apiOptions,
|
|
@@ -84,7 +85,7 @@ class AuthClient {
|
|
|
84
85
|
path: request ?? {},
|
|
85
86
|
query: {},
|
|
86
87
|
});
|
|
87
|
-
const response = await (0,
|
|
88
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
88
89
|
method: 'DELETE',
|
|
89
90
|
body: {},
|
|
90
91
|
apiOptions: this.apiOptions,
|
|
@@ -96,7 +97,7 @@ class AuthClient {
|
|
|
96
97
|
path: request ?? {},
|
|
97
98
|
query: {},
|
|
98
99
|
});
|
|
99
|
-
const response = await (0,
|
|
100
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
100
101
|
method: 'DELETE',
|
|
101
102
|
body: {},
|
|
102
103
|
apiOptions: this.apiOptions,
|
|
@@ -108,7 +109,7 @@ class AuthClient {
|
|
|
108
109
|
path: request ?? {},
|
|
109
110
|
query: {},
|
|
110
111
|
});
|
|
111
|
-
const response = await (0,
|
|
112
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
112
113
|
method: 'DELETE',
|
|
113
114
|
body: {},
|
|
114
115
|
apiOptions: this.apiOptions,
|
|
@@ -120,7 +121,7 @@ class AuthClient {
|
|
|
120
121
|
path: request ?? {},
|
|
121
122
|
query: {},
|
|
122
123
|
});
|
|
123
|
-
const response = await (0,
|
|
124
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
124
125
|
method: 'POST',
|
|
125
126
|
body: request.body,
|
|
126
127
|
apiOptions: this.apiOptions,
|
|
@@ -132,7 +133,7 @@ class AuthClient {
|
|
|
132
133
|
path: request ?? {},
|
|
133
134
|
query: {},
|
|
134
135
|
});
|
|
135
|
-
const response = await (0,
|
|
136
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
136
137
|
method: 'POST',
|
|
137
138
|
body: request.body,
|
|
138
139
|
apiOptions: this.apiOptions,
|
|
@@ -176,7 +177,7 @@ class AuthClient {
|
|
|
176
177
|
path: request ?? {},
|
|
177
178
|
query: {},
|
|
178
179
|
});
|
|
179
|
-
const response = await (0,
|
|
180
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
180
181
|
method: 'POST',
|
|
181
182
|
body: request.body,
|
|
182
183
|
apiOptions: this.apiOptions,
|
|
@@ -200,7 +201,7 @@ class AuthClient {
|
|
|
200
201
|
path: request ?? {},
|
|
201
202
|
query: {},
|
|
202
203
|
});
|
|
203
|
-
const response = await (0,
|
|
204
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
204
205
|
method: 'POST',
|
|
205
206
|
body: request.body,
|
|
206
207
|
apiOptions: this.apiOptions,
|
|
@@ -216,7 +217,7 @@ class AuthClient {
|
|
|
216
217
|
path: request ?? {},
|
|
217
218
|
query: {},
|
|
218
219
|
});
|
|
219
|
-
const response = await (0,
|
|
220
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
220
221
|
method: 'POST',
|
|
221
222
|
body: request.body,
|
|
222
223
|
apiOptions: this.apiOptions,
|
|
@@ -244,7 +245,7 @@ class AuthClient {
|
|
|
244
245
|
path: request ?? {},
|
|
245
246
|
query: {},
|
|
246
247
|
});
|
|
247
|
-
const response = await (0,
|
|
248
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
248
249
|
method: 'POST',
|
|
249
250
|
body: request.body,
|
|
250
251
|
apiOptions: this.apiOptions,
|
|
@@ -280,7 +281,7 @@ class AuthClient {
|
|
|
280
281
|
path: request ?? {},
|
|
281
282
|
query: {},
|
|
282
283
|
});
|
|
283
|
-
const response = await (0,
|
|
284
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
284
285
|
method: 'POST',
|
|
285
286
|
body: request.body,
|
|
286
287
|
apiOptions: this.apiOptions,
|
|
@@ -304,7 +305,7 @@ class AuthClient {
|
|
|
304
305
|
path: request ?? {},
|
|
305
306
|
query: {},
|
|
306
307
|
});
|
|
307
|
-
const response = await (0,
|
|
308
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
308
309
|
method: 'POST',
|
|
309
310
|
body: request.body,
|
|
310
311
|
apiOptions: this.apiOptions,
|
|
@@ -344,7 +345,7 @@ class AuthClient {
|
|
|
344
345
|
path: request ?? {},
|
|
345
346
|
query: {},
|
|
346
347
|
});
|
|
347
|
-
const response = await (0,
|
|
348
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
348
349
|
method: 'PUT',
|
|
349
350
|
body: {},
|
|
350
351
|
apiOptions: this.apiOptions,
|
|
@@ -356,7 +357,7 @@ class AuthClient {
|
|
|
356
357
|
path: request ?? {},
|
|
357
358
|
query: {},
|
|
358
359
|
});
|
|
359
|
-
const response = await (0,
|
|
360
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
360
361
|
method: 'PUT',
|
|
361
362
|
body: request.body,
|
|
362
363
|
apiOptions: this.apiOptions,
|
|
@@ -368,7 +369,7 @@ class AuthClient {
|
|
|
368
369
|
path: request ?? {},
|
|
369
370
|
query: {},
|
|
370
371
|
});
|
|
371
|
-
const response = await (0,
|
|
372
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
372
373
|
method: 'PUT',
|
|
373
374
|
body: {},
|
|
374
375
|
apiOptions: this.apiOptions,
|
|
@@ -380,7 +381,7 @@ class AuthClient {
|
|
|
380
381
|
path: request ?? {},
|
|
381
382
|
query: {},
|
|
382
383
|
});
|
|
383
|
-
const response = await (0,
|
|
384
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
384
385
|
method: 'PUT',
|
|
385
386
|
body: {},
|
|
386
387
|
apiOptions: this.apiOptions,
|
|
@@ -392,7 +393,7 @@ class AuthClient {
|
|
|
392
393
|
path: request ?? {},
|
|
393
394
|
query: {},
|
|
394
395
|
});
|
|
395
|
-
const response = await (0,
|
|
396
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
396
397
|
method: 'PUT',
|
|
397
398
|
body: {},
|
|
398
399
|
apiOptions: this.apiOptions,
|
|
@@ -404,7 +405,7 @@ class AuthClient {
|
|
|
404
405
|
path: request ?? {},
|
|
405
406
|
query: {},
|
|
406
407
|
});
|
|
407
|
-
const response = await (0,
|
|
408
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
408
409
|
method: 'POST',
|
|
409
410
|
body: request.body,
|
|
410
411
|
apiOptions: this.apiOptions,
|
|
@@ -562,7 +563,7 @@ class AuthClient {
|
|
|
562
563
|
path: request ?? {},
|
|
563
564
|
query: {},
|
|
564
565
|
});
|
|
565
|
-
const response = await (0,
|
|
566
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
566
567
|
method: 'POST',
|
|
567
568
|
body: request.body,
|
|
568
569
|
apiOptions: this.apiOptions,
|
|
@@ -606,7 +607,7 @@ class AuthClient {
|
|
|
606
607
|
path: request ?? {},
|
|
607
608
|
query: {},
|
|
608
609
|
});
|
|
609
|
-
const response = await (0,
|
|
610
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
610
611
|
method: 'PUT',
|
|
611
612
|
body: request.body,
|
|
612
613
|
apiOptions: this.apiOptions,
|
|
@@ -654,7 +655,7 @@ class AuthClient {
|
|
|
654
655
|
path: request ?? {},
|
|
655
656
|
query: {},
|
|
656
657
|
});
|
|
657
|
-
const response = await (0,
|
|
658
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
658
659
|
method: 'POST',
|
|
659
660
|
body: request.body,
|
|
660
661
|
apiOptions: this.apiOptions,
|
|
@@ -666,7 +667,7 @@ class AuthClient {
|
|
|
666
667
|
path: request ?? {},
|
|
667
668
|
query: {},
|
|
668
669
|
});
|
|
669
|
-
const response = await (0,
|
|
670
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
670
671
|
method: 'PUT',
|
|
671
672
|
body: request.body,
|
|
672
673
|
apiOptions: this.apiOptions,
|
|
@@ -678,7 +679,7 @@ class AuthClient {
|
|
|
678
679
|
path: request ?? {},
|
|
679
680
|
query: {},
|
|
680
681
|
});
|
|
681
|
-
const response = await (0,
|
|
682
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
682
683
|
method: 'PUT',
|
|
683
684
|
body: request.body,
|
|
684
685
|
apiOptions: this.apiOptions,
|
|
@@ -1954,7 +1954,7 @@ export type RegisterEndUserBody = {
|
|
|
1954
1954
|
encryptedPrivateKey?: string | undefined;
|
|
1955
1955
|
} | undefined;
|
|
1956
1956
|
wallets: {
|
|
1957
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
1957
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
1958
1958
|
name?: string | undefined;
|
|
1959
1959
|
}[];
|
|
1960
1960
|
};
|
|
@@ -1974,7 +1974,7 @@ export type RegisterEndUserResponse = {
|
|
|
1974
1974
|
};
|
|
1975
1975
|
wallets: {
|
|
1976
1976
|
id: string;
|
|
1977
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "
|
|
1977
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1978
1978
|
address?: string | undefined;
|
|
1979
1979
|
signingKey: {
|
|
1980
1980
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExchangesClient = void 0;
|
|
4
4
|
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const userActionFetch_1 = require("../../utils/userActionFetch");
|
|
5
6
|
const url_1 = require("../../utils/url");
|
|
6
7
|
class ExchangesClient {
|
|
7
8
|
constructor(apiOptions) {
|
|
@@ -12,7 +13,7 @@ class ExchangesClient {
|
|
|
12
13
|
path: request ?? {},
|
|
13
14
|
query: {},
|
|
14
15
|
});
|
|
15
|
-
const response = await (0,
|
|
16
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
16
17
|
method: 'POST',
|
|
17
18
|
body: request.body,
|
|
18
19
|
apiOptions: this.apiOptions,
|
|
@@ -24,7 +25,7 @@ class ExchangesClient {
|
|
|
24
25
|
path: request ?? {},
|
|
25
26
|
query: {},
|
|
26
27
|
});
|
|
27
|
-
const response = await (0,
|
|
28
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
28
29
|
method: 'POST',
|
|
29
30
|
body: request.body,
|
|
30
31
|
apiOptions: this.apiOptions,
|
|
@@ -36,7 +37,7 @@ class ExchangesClient {
|
|
|
36
37
|
path: request ?? {},
|
|
37
38
|
query: {},
|
|
38
39
|
});
|
|
39
|
-
const response = await (0,
|
|
40
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
40
41
|
method: 'POST',
|
|
41
42
|
body: request.body,
|
|
42
43
|
apiOptions: this.apiOptions,
|
|
@@ -48,7 +49,7 @@ class ExchangesClient {
|
|
|
48
49
|
path: request ?? {},
|
|
49
50
|
query: {},
|
|
50
51
|
});
|
|
51
|
-
const response = await (0,
|
|
52
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
52
53
|
method: 'DELETE',
|
|
53
54
|
body: {},
|
|
54
55
|
apiOptions: this.apiOptions,
|