@dfns/sdk 0.7.3-rc → 0.7.4
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/feeSponsors/types.d.ts +7 -0
- package/generated/keys/types.d.ts +4 -64
- package/generated/networks/client.d.ts +2 -0
- package/generated/networks/client.js +24 -0
- package/generated/networks/delegatedClient.d.ts +4 -0
- package/generated/networks/delegatedClient.js +54 -0
- package/generated/networks/types.d.ts +39 -0
- package/generated/permissions/client.js +1 -1
- package/generated/permissions/delegatedClient.js +2 -2
- package/generated/permissions/types.d.ts +8 -3
- package/generated/policies/types.d.ts +108 -81
- package/generated/wallets/types.d.ts +12 -108
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export type ActivateFeeSponsorParams = {
|
|
|
3
3
|
};
|
|
4
4
|
export type ActivateFeeSponsorResponse = {
|
|
5
5
|
id: string;
|
|
6
|
+
name?: string | undefined;
|
|
6
7
|
walletId: string;
|
|
7
8
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
8
9
|
status: "Active" | "Deactivated" | "Archived";
|
|
@@ -10,10 +11,12 @@ export type ActivateFeeSponsorResponse = {
|
|
|
10
11
|
};
|
|
11
12
|
export type ActivateFeeSponsorRequest = ActivateFeeSponsorParams;
|
|
12
13
|
export type CreateFeeSponsorBody = {
|
|
14
|
+
name?: string | undefined;
|
|
13
15
|
walletId: string;
|
|
14
16
|
};
|
|
15
17
|
export type CreateFeeSponsorResponse = {
|
|
16
18
|
id: string;
|
|
19
|
+
name?: string | undefined;
|
|
17
20
|
walletId: string;
|
|
18
21
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
19
22
|
status: "Active" | "Deactivated" | "Archived";
|
|
@@ -27,6 +30,7 @@ export type DeactivateFeeSponsorParams = {
|
|
|
27
30
|
};
|
|
28
31
|
export type DeactivateFeeSponsorResponse = {
|
|
29
32
|
id: string;
|
|
33
|
+
name?: string | undefined;
|
|
30
34
|
walletId: string;
|
|
31
35
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
32
36
|
status: "Active" | "Deactivated" | "Archived";
|
|
@@ -38,6 +42,7 @@ export type DeleteFeeSponsorParams = {
|
|
|
38
42
|
};
|
|
39
43
|
export type DeleteFeeSponsorResponse = {
|
|
40
44
|
id: string;
|
|
45
|
+
name?: string | undefined;
|
|
41
46
|
walletId: string;
|
|
42
47
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
43
48
|
status: "Active" | "Deactivated" | "Archived";
|
|
@@ -49,6 +54,7 @@ export type GetFeeSponsorParams = {
|
|
|
49
54
|
};
|
|
50
55
|
export type GetFeeSponsorResponse = {
|
|
51
56
|
id: string;
|
|
57
|
+
name?: string | undefined;
|
|
52
58
|
walletId: string;
|
|
53
59
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
54
60
|
status: "Active" | "Deactivated" | "Archived";
|
|
@@ -62,6 +68,7 @@ export type ListFeeSponsorsQuery = {
|
|
|
62
68
|
export type ListFeeSponsorsResponse = {
|
|
63
69
|
items: {
|
|
64
70
|
id: string;
|
|
71
|
+
name?: string | undefined;
|
|
65
72
|
walletId: string;
|
|
66
73
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
67
74
|
status: "Active" | "Deactivated" | "Archived";
|
|
@@ -160,22 +160,7 @@ export type GenerateSignatureBody = {
|
|
|
160
160
|
externalId?: string | undefined;
|
|
161
161
|
} | {
|
|
162
162
|
kind: "SignerPayload";
|
|
163
|
-
payload: string | {
|
|
164
|
-
address: string;
|
|
165
|
-
blockHash: string;
|
|
166
|
-
blockNumber: string;
|
|
167
|
-
era: string;
|
|
168
|
-
genesisHash: string;
|
|
169
|
-
metadataHash?: string | undefined;
|
|
170
|
-
method: string;
|
|
171
|
-
mode?: number | undefined;
|
|
172
|
-
nonce: string;
|
|
173
|
-
specVersion: string;
|
|
174
|
-
tip: string;
|
|
175
|
-
transactionVersion: string;
|
|
176
|
-
signedExtensions: string[];
|
|
177
|
-
version: number;
|
|
178
|
-
};
|
|
163
|
+
payload: string | {};
|
|
179
164
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
180
165
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
181
166
|
externalId?: string | undefined;
|
|
@@ -259,22 +244,7 @@ export type GenerateSignatureResponse = {
|
|
|
259
244
|
externalId?: string | undefined;
|
|
260
245
|
} | {
|
|
261
246
|
kind: "SignerPayload";
|
|
262
|
-
payload: string | {
|
|
263
|
-
address: string;
|
|
264
|
-
blockHash: string;
|
|
265
|
-
blockNumber: string;
|
|
266
|
-
era: string;
|
|
267
|
-
genesisHash: string;
|
|
268
|
-
metadataHash?: string | undefined;
|
|
269
|
-
method: string;
|
|
270
|
-
mode?: number | undefined;
|
|
271
|
-
nonce: string;
|
|
272
|
-
specVersion: string;
|
|
273
|
-
tip: string;
|
|
274
|
-
transactionVersion: string;
|
|
275
|
-
signedExtensions: string[];
|
|
276
|
-
version: number;
|
|
277
|
-
};
|
|
247
|
+
payload: string | {};
|
|
278
248
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
279
249
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
280
250
|
externalId?: string | undefined;
|
|
@@ -412,22 +382,7 @@ export type GetSignatureResponse = {
|
|
|
412
382
|
externalId?: string | undefined;
|
|
413
383
|
} | {
|
|
414
384
|
kind: "SignerPayload";
|
|
415
|
-
payload: string | {
|
|
416
|
-
address: string;
|
|
417
|
-
blockHash: string;
|
|
418
|
-
blockNumber: string;
|
|
419
|
-
era: string;
|
|
420
|
-
genesisHash: string;
|
|
421
|
-
metadataHash?: string | undefined;
|
|
422
|
-
method: string;
|
|
423
|
-
mode?: number | undefined;
|
|
424
|
-
nonce: string;
|
|
425
|
-
specVersion: string;
|
|
426
|
-
tip: string;
|
|
427
|
-
transactionVersion: string;
|
|
428
|
-
signedExtensions: string[];
|
|
429
|
-
version: number;
|
|
430
|
-
};
|
|
385
|
+
payload: string | {};
|
|
431
386
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
432
387
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
433
388
|
externalId?: string | undefined;
|
|
@@ -593,22 +548,7 @@ export type ListSignaturesResponse = {
|
|
|
593
548
|
externalId?: string | undefined;
|
|
594
549
|
} | {
|
|
595
550
|
kind: "SignerPayload";
|
|
596
|
-
payload: string | {
|
|
597
|
-
address: string;
|
|
598
|
-
blockHash: string;
|
|
599
|
-
blockNumber: string;
|
|
600
|
-
era: string;
|
|
601
|
-
genesisHash: string;
|
|
602
|
-
metadataHash?: string | undefined;
|
|
603
|
-
method: string;
|
|
604
|
-
mode?: number | undefined;
|
|
605
|
-
nonce: string;
|
|
606
|
-
specVersion: string;
|
|
607
|
-
tip: string;
|
|
608
|
-
transactionVersion: string;
|
|
609
|
-
signedExtensions: string[];
|
|
610
|
-
version: number;
|
|
611
|
-
};
|
|
551
|
+
payload: string | {};
|
|
612
552
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
613
553
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
614
554
|
externalId?: string | undefined;
|
|
@@ -4,7 +4,9 @@ export declare class NetworksClient {
|
|
|
4
4
|
private apiOptions;
|
|
5
5
|
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
6
|
createCantonValidator(request: T.CreateCantonValidatorRequest): Promise<T.CreateCantonValidatorResponse>;
|
|
7
|
+
deleteCantonValidator(request: T.DeleteCantonValidatorRequest): Promise<T.DeleteCantonValidatorResponse>;
|
|
7
8
|
getFees(request?: T.GetFeesRequest): Promise<T.GetFeesResponse>;
|
|
8
9
|
listCantonValidators(request: T.ListCantonValidatorsRequest): Promise<T.ListCantonValidatorsResponse>;
|
|
9
10
|
readContract(request: T.ReadContractRequest): Promise<T.ReadContractResponse>;
|
|
11
|
+
updateCantonValidator(request: T.UpdateCantonValidatorRequest): Promise<T.UpdateCantonValidatorResponse>;
|
|
10
12
|
}
|
|
@@ -21,6 +21,18 @@ class NetworksClient {
|
|
|
21
21
|
});
|
|
22
22
|
return response.json();
|
|
23
23
|
}
|
|
24
|
+
async deleteCantonValidator(request) {
|
|
25
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
26
|
+
path: request ?? {},
|
|
27
|
+
query: {},
|
|
28
|
+
});
|
|
29
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
30
|
+
method: 'DELETE',
|
|
31
|
+
body: {},
|
|
32
|
+
apiOptions: this.apiOptions,
|
|
33
|
+
});
|
|
34
|
+
return response.json();
|
|
35
|
+
}
|
|
24
36
|
async getFees(request) {
|
|
25
37
|
const path = (0, url_1.buildPathAndQuery)('/networks/fees', {
|
|
26
38
|
path: request ?? {},
|
|
@@ -55,5 +67,17 @@ class NetworksClient {
|
|
|
55
67
|
});
|
|
56
68
|
return response.json();
|
|
57
69
|
}
|
|
70
|
+
async updateCantonValidator(request) {
|
|
71
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
72
|
+
path: request ?? {},
|
|
73
|
+
query: {},
|
|
74
|
+
});
|
|
75
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
76
|
+
method: 'PUT',
|
|
77
|
+
body: request.body,
|
|
78
|
+
apiOptions: this.apiOptions,
|
|
79
|
+
});
|
|
80
|
+
return response.json();
|
|
81
|
+
}
|
|
58
82
|
}
|
|
59
83
|
exports.NetworksClient = NetworksClient;
|
|
@@ -6,7 +6,11 @@ export declare class DelegatedNetworksClient {
|
|
|
6
6
|
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
7
|
createCantonValidatorInit(request: T.CreateCantonValidatorRequest): Promise<UserActionChallengeResponse>;
|
|
8
8
|
createCantonValidatorComplete(request: T.CreateCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateCantonValidatorResponse>;
|
|
9
|
+
deleteCantonValidatorInit(request: T.DeleteCantonValidatorRequest): Promise<UserActionChallengeResponse>;
|
|
10
|
+
deleteCantonValidatorComplete(request: T.DeleteCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeleteCantonValidatorResponse>;
|
|
9
11
|
getFees(request?: T.GetFeesRequest): Promise<T.GetFeesResponse>;
|
|
10
12
|
listCantonValidators(request: T.ListCantonValidatorsRequest): Promise<T.ListCantonValidatorsResponse>;
|
|
11
13
|
readContract(request: T.ReadContractRequest): Promise<T.ReadContractResponse>;
|
|
14
|
+
updateCantonValidatorInit(request: T.UpdateCantonValidatorRequest): Promise<UserActionChallengeResponse>;
|
|
15
|
+
updateCantonValidatorComplete(request: T.UpdateCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateCantonValidatorResponse>;
|
|
12
16
|
}
|
|
@@ -35,6 +35,33 @@ class DelegatedNetworksClient {
|
|
|
35
35
|
});
|
|
36
36
|
return response.json();
|
|
37
37
|
}
|
|
38
|
+
async deleteCantonValidatorInit(request) {
|
|
39
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
40
|
+
path: request ?? {},
|
|
41
|
+
query: {},
|
|
42
|
+
});
|
|
43
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
44
|
+
userActionHttpMethod: 'DELETE',
|
|
45
|
+
userActionHttpPath: path,
|
|
46
|
+
userActionPayload: JSON.stringify({}),
|
|
47
|
+
userActionServerKind: 'Api',
|
|
48
|
+
}, this.apiOptions);
|
|
49
|
+
return challenge;
|
|
50
|
+
}
|
|
51
|
+
async deleteCantonValidatorComplete(request, signedChallenge) {
|
|
52
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
53
|
+
path: request ?? {},
|
|
54
|
+
query: {},
|
|
55
|
+
});
|
|
56
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
57
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
58
|
+
method: 'DELETE',
|
|
59
|
+
body: {},
|
|
60
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
61
|
+
apiOptions: this.apiOptions,
|
|
62
|
+
});
|
|
63
|
+
return response.json();
|
|
64
|
+
}
|
|
38
65
|
async getFees(request) {
|
|
39
66
|
const path = (0, url_1.buildPathAndQuery)('/networks/fees', {
|
|
40
67
|
path: request ?? {},
|
|
@@ -69,5 +96,32 @@ class DelegatedNetworksClient {
|
|
|
69
96
|
});
|
|
70
97
|
return response.json();
|
|
71
98
|
}
|
|
99
|
+
async updateCantonValidatorInit(request) {
|
|
100
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
101
|
+
path: request ?? {},
|
|
102
|
+
query: {},
|
|
103
|
+
});
|
|
104
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
105
|
+
userActionHttpMethod: 'PUT',
|
|
106
|
+
userActionHttpPath: path,
|
|
107
|
+
userActionPayload: JSON.stringify(request.body),
|
|
108
|
+
userActionServerKind: 'Api',
|
|
109
|
+
}, this.apiOptions);
|
|
110
|
+
return challenge;
|
|
111
|
+
}
|
|
112
|
+
async updateCantonValidatorComplete(request, signedChallenge) {
|
|
113
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
114
|
+
path: request ?? {},
|
|
115
|
+
query: {},
|
|
116
|
+
});
|
|
117
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
118
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
119
|
+
method: 'PUT',
|
|
120
|
+
body: request.body,
|
|
121
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
122
|
+
apiOptions: this.apiOptions,
|
|
123
|
+
});
|
|
124
|
+
return response.json();
|
|
125
|
+
}
|
|
72
126
|
}
|
|
73
127
|
exports.DelegatedNetworksClient = DelegatedNetworksClient;
|
|
@@ -27,6 +27,19 @@ export type CreateCantonValidatorResponse = {
|
|
|
27
27
|
export type CreateCantonValidatorRequest = CreateCantonValidatorParams & {
|
|
28
28
|
body: CreateCantonValidatorBody;
|
|
29
29
|
};
|
|
30
|
+
export type DeleteCantonValidatorParams = {
|
|
31
|
+
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
32
|
+
validatorId: string;
|
|
33
|
+
};
|
|
34
|
+
export type DeleteCantonValidatorResponse = {
|
|
35
|
+
id: string;
|
|
36
|
+
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
kind: "Shared" | "Custom";
|
|
39
|
+
dateCreated: string;
|
|
40
|
+
partyHint: string;
|
|
41
|
+
};
|
|
42
|
+
export type DeleteCantonValidatorRequest = DeleteCantonValidatorParams;
|
|
30
43
|
export type GetFeesQuery = {
|
|
31
44
|
network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
32
45
|
};
|
|
@@ -101,3 +114,29 @@ export type ReadContractResponse = {
|
|
|
101
114
|
export type ReadContractRequest = {
|
|
102
115
|
body: ReadContractBody;
|
|
103
116
|
};
|
|
117
|
+
export type UpdateCantonValidatorBody = {
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
url?: string | undefined;
|
|
120
|
+
oauth2?: {
|
|
121
|
+
domain: string;
|
|
122
|
+
clientId: string;
|
|
123
|
+
clientSecret: string;
|
|
124
|
+
audience: string;
|
|
125
|
+
tokenPath?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
};
|
|
128
|
+
export type UpdateCantonValidatorParams = {
|
|
129
|
+
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
130
|
+
validatorId: string;
|
|
131
|
+
};
|
|
132
|
+
export type UpdateCantonValidatorResponse = {
|
|
133
|
+
id: string;
|
|
134
|
+
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
kind: "Shared" | "Custom";
|
|
137
|
+
dateCreated: string;
|
|
138
|
+
partyHint: string;
|
|
139
|
+
};
|
|
140
|
+
export type UpdateCantonValidatorRequest = UpdateCantonValidatorParams & {
|
|
141
|
+
body: UpdateCantonValidatorBody;
|
|
142
|
+
};
|
|
@@ -48,7 +48,7 @@ class PermissionsClient {
|
|
|
48
48
|
async deleteAssignment(request) {
|
|
49
49
|
const path = (0, url_1.buildPathAndQuery)('/permissions/:permissionId/assignments/:assignmentId', {
|
|
50
50
|
path: request ?? {},
|
|
51
|
-
query: {},
|
|
51
|
+
query: request.query ?? {},
|
|
52
52
|
});
|
|
53
53
|
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
54
54
|
method: 'DELETE',
|
|
@@ -92,7 +92,7 @@ class DelegatedPermissionsClient {
|
|
|
92
92
|
async deleteAssignmentInit(request) {
|
|
93
93
|
const path = (0, url_1.buildPathAndQuery)('/permissions/:permissionId/assignments/:assignmentId', {
|
|
94
94
|
path: request ?? {},
|
|
95
|
-
query: {},
|
|
95
|
+
query: request.query ?? {},
|
|
96
96
|
});
|
|
97
97
|
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
98
98
|
userActionHttpMethod: 'DELETE',
|
|
@@ -105,7 +105,7 @@ class DelegatedPermissionsClient {
|
|
|
105
105
|
async deleteAssignmentComplete(request, signedChallenge) {
|
|
106
106
|
const path = (0, url_1.buildPathAndQuery)('/permissions/:permissionId/assignments/:assignmentId', {
|
|
107
107
|
path: request ?? {},
|
|
108
|
-
query: {},
|
|
108
|
+
query: request.query ?? {},
|
|
109
109
|
});
|
|
110
110
|
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
111
111
|
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
|
|
|
36
36
|
};
|
|
37
37
|
export type CreatePermissionBody = {
|
|
38
38
|
name: string;
|
|
39
|
-
operations: (("Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
|
|
39
|
+
operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
|
|
40
40
|
};
|
|
41
41
|
export type CreatePermissionResponse = {
|
|
42
42
|
id: string;
|
|
@@ -55,8 +55,13 @@ export type DeleteAssignmentParams = {
|
|
|
55
55
|
permissionId: string;
|
|
56
56
|
assignmentId: string;
|
|
57
57
|
};
|
|
58
|
+
export type DeleteAssignmentQuery = {
|
|
59
|
+
force?: boolean;
|
|
60
|
+
};
|
|
58
61
|
export type DeleteAssignmentResponse = void | undefined;
|
|
59
|
-
export type DeleteAssignmentRequest = DeleteAssignmentParams
|
|
62
|
+
export type DeleteAssignmentRequest = DeleteAssignmentParams & {
|
|
63
|
+
query?: DeleteAssignmentQuery;
|
|
64
|
+
};
|
|
60
65
|
export type GetPermissionParams = {
|
|
61
66
|
permissionId: string;
|
|
62
67
|
};
|
|
@@ -178,7 +183,7 @@ export type ListPermissionsRequest = {
|
|
|
178
183
|
};
|
|
179
184
|
export type UpdatePermissionBody = {
|
|
180
185
|
name?: string | undefined;
|
|
181
|
-
operations?: (("Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
|
|
186
|
+
operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
|
|
182
187
|
};
|
|
183
188
|
export type UpdatePermissionParams = {
|
|
184
189
|
permissionId: string;
|
|
@@ -245,7 +245,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
245
245
|
};
|
|
246
246
|
requestBody: {
|
|
247
247
|
kind: "Native";
|
|
248
|
-
to: string
|
|
248
|
+
to: string;
|
|
249
249
|
amount: string;
|
|
250
250
|
memo?: string | undefined;
|
|
251
251
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -536,7 +536,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
536
536
|
};
|
|
537
537
|
requestBody: {
|
|
538
538
|
kind: "Transaction";
|
|
539
|
-
transaction: string;
|
|
539
|
+
transaction: string | {};
|
|
540
540
|
externalId?: string | undefined;
|
|
541
541
|
} | {
|
|
542
542
|
kind: "Evm";
|
|
@@ -556,15 +556,6 @@ export type CreateApprovalDecisionResponse = {
|
|
|
556
556
|
maxFeePerGas?: (string | string) | undefined;
|
|
557
557
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
558
558
|
externalId?: string | undefined;
|
|
559
|
-
} | {
|
|
560
|
-
kind: "EvmLegacy";
|
|
561
|
-
to?: string | undefined;
|
|
562
|
-
value?: (string | string) | undefined;
|
|
563
|
-
data?: string | undefined;
|
|
564
|
-
nonce?: (number | string | string) | undefined;
|
|
565
|
-
gasLimit?: (string | string) | undefined;
|
|
566
|
-
gasPrice?: (string | string) | undefined;
|
|
567
|
-
externalId?: string | undefined;
|
|
568
559
|
} | {
|
|
569
560
|
kind: "Psbt";
|
|
570
561
|
psbt: string;
|
|
@@ -670,22 +661,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
670
661
|
externalId?: string | undefined;
|
|
671
662
|
} | {
|
|
672
663
|
kind: "SignerPayload";
|
|
673
|
-
payload: string | {
|
|
674
|
-
address: string;
|
|
675
|
-
blockHash: string;
|
|
676
|
-
blockNumber: string;
|
|
677
|
-
era: string;
|
|
678
|
-
genesisHash: string;
|
|
679
|
-
metadataHash?: string | undefined;
|
|
680
|
-
method: string;
|
|
681
|
-
mode?: number | undefined;
|
|
682
|
-
nonce: string;
|
|
683
|
-
specVersion: string;
|
|
684
|
-
tip: string;
|
|
685
|
-
transactionVersion: string;
|
|
686
|
-
signedExtensions: string[];
|
|
687
|
-
version: number;
|
|
688
|
-
};
|
|
664
|
+
payload: string | {};
|
|
689
665
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
690
666
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
691
667
|
externalId?: string | undefined;
|
|
@@ -715,6 +691,39 @@ export type CreateApprovalDecisionResponse = {
|
|
|
715
691
|
dateConfirmed?: string | undefined;
|
|
716
692
|
externalId?: string | undefined;
|
|
717
693
|
} | undefined;
|
|
694
|
+
swapRequest?: {
|
|
695
|
+
id: string;
|
|
696
|
+
quoteId: string;
|
|
697
|
+
sourceWalletId: string;
|
|
698
|
+
targetWalletId: string;
|
|
699
|
+
status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed";
|
|
700
|
+
quotedSourceAsset: {
|
|
701
|
+
kind: "Native";
|
|
702
|
+
amount: string;
|
|
703
|
+
} | {
|
|
704
|
+
kind: "Erc20";
|
|
705
|
+
contract: string;
|
|
706
|
+
amount: string;
|
|
707
|
+
};
|
|
708
|
+
quotedTargetAsset: {
|
|
709
|
+
kind: "Native";
|
|
710
|
+
amount: string;
|
|
711
|
+
} | {
|
|
712
|
+
kind: "Erc20";
|
|
713
|
+
contract: string;
|
|
714
|
+
amount: string;
|
|
715
|
+
};
|
|
716
|
+
slippageToleranceInBps: number;
|
|
717
|
+
dateCreated: string;
|
|
718
|
+
requestBody: {
|
|
719
|
+
sourceWalletId: string;
|
|
720
|
+
quoteId: string;
|
|
721
|
+
};
|
|
722
|
+
requester: {
|
|
723
|
+
userId: string;
|
|
724
|
+
tokenId?: string | undefined;
|
|
725
|
+
};
|
|
726
|
+
} | undefined;
|
|
718
727
|
} | {
|
|
719
728
|
kind: "Wallets:IncomingTransaction";
|
|
720
729
|
blockchainEvent: {
|
|
@@ -1972,7 +1981,7 @@ export type GetApprovalResponse = {
|
|
|
1972
1981
|
};
|
|
1973
1982
|
requestBody: {
|
|
1974
1983
|
kind: "Native";
|
|
1975
|
-
to: string
|
|
1984
|
+
to: string;
|
|
1976
1985
|
amount: string;
|
|
1977
1986
|
memo?: string | undefined;
|
|
1978
1987
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -2263,7 +2272,7 @@ export type GetApprovalResponse = {
|
|
|
2263
2272
|
};
|
|
2264
2273
|
requestBody: {
|
|
2265
2274
|
kind: "Transaction";
|
|
2266
|
-
transaction: string;
|
|
2275
|
+
transaction: string | {};
|
|
2267
2276
|
externalId?: string | undefined;
|
|
2268
2277
|
} | {
|
|
2269
2278
|
kind: "Evm";
|
|
@@ -2283,15 +2292,6 @@ export type GetApprovalResponse = {
|
|
|
2283
2292
|
maxFeePerGas?: (string | string) | undefined;
|
|
2284
2293
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
2285
2294
|
externalId?: string | undefined;
|
|
2286
|
-
} | {
|
|
2287
|
-
kind: "EvmLegacy";
|
|
2288
|
-
to?: string | undefined;
|
|
2289
|
-
value?: (string | string) | undefined;
|
|
2290
|
-
data?: string | undefined;
|
|
2291
|
-
nonce?: (number | string | string) | undefined;
|
|
2292
|
-
gasLimit?: (string | string) | undefined;
|
|
2293
|
-
gasPrice?: (string | string) | undefined;
|
|
2294
|
-
externalId?: string | undefined;
|
|
2295
2295
|
} | {
|
|
2296
2296
|
kind: "Psbt";
|
|
2297
2297
|
psbt: string;
|
|
@@ -2397,22 +2397,7 @@ export type GetApprovalResponse = {
|
|
|
2397
2397
|
externalId?: string | undefined;
|
|
2398
2398
|
} | {
|
|
2399
2399
|
kind: "SignerPayload";
|
|
2400
|
-
payload: string | {
|
|
2401
|
-
address: string;
|
|
2402
|
-
blockHash: string;
|
|
2403
|
-
blockNumber: string;
|
|
2404
|
-
era: string;
|
|
2405
|
-
genesisHash: string;
|
|
2406
|
-
metadataHash?: string | undefined;
|
|
2407
|
-
method: string;
|
|
2408
|
-
mode?: number | undefined;
|
|
2409
|
-
nonce: string;
|
|
2410
|
-
specVersion: string;
|
|
2411
|
-
tip: string;
|
|
2412
|
-
transactionVersion: string;
|
|
2413
|
-
signedExtensions: string[];
|
|
2414
|
-
version: number;
|
|
2415
|
-
};
|
|
2400
|
+
payload: string | {};
|
|
2416
2401
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
2417
2402
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
2418
2403
|
externalId?: string | undefined;
|
|
@@ -2442,6 +2427,39 @@ export type GetApprovalResponse = {
|
|
|
2442
2427
|
dateConfirmed?: string | undefined;
|
|
2443
2428
|
externalId?: string | undefined;
|
|
2444
2429
|
} | undefined;
|
|
2430
|
+
swapRequest?: {
|
|
2431
|
+
id: string;
|
|
2432
|
+
quoteId: string;
|
|
2433
|
+
sourceWalletId: string;
|
|
2434
|
+
targetWalletId: string;
|
|
2435
|
+
status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed";
|
|
2436
|
+
quotedSourceAsset: {
|
|
2437
|
+
kind: "Native";
|
|
2438
|
+
amount: string;
|
|
2439
|
+
} | {
|
|
2440
|
+
kind: "Erc20";
|
|
2441
|
+
contract: string;
|
|
2442
|
+
amount: string;
|
|
2443
|
+
};
|
|
2444
|
+
quotedTargetAsset: {
|
|
2445
|
+
kind: "Native";
|
|
2446
|
+
amount: string;
|
|
2447
|
+
} | {
|
|
2448
|
+
kind: "Erc20";
|
|
2449
|
+
contract: string;
|
|
2450
|
+
amount: string;
|
|
2451
|
+
};
|
|
2452
|
+
slippageToleranceInBps: number;
|
|
2453
|
+
dateCreated: string;
|
|
2454
|
+
requestBody: {
|
|
2455
|
+
sourceWalletId: string;
|
|
2456
|
+
quoteId: string;
|
|
2457
|
+
};
|
|
2458
|
+
requester: {
|
|
2459
|
+
userId: string;
|
|
2460
|
+
tokenId?: string | undefined;
|
|
2461
|
+
};
|
|
2462
|
+
} | undefined;
|
|
2445
2463
|
} | {
|
|
2446
2464
|
kind: "Wallets:IncomingTransaction";
|
|
2447
2465
|
blockchainEvent: {
|
|
@@ -3739,7 +3757,7 @@ export type ListApprovalsResponse = {
|
|
|
3739
3757
|
};
|
|
3740
3758
|
requestBody: {
|
|
3741
3759
|
kind: "Native";
|
|
3742
|
-
to: string
|
|
3760
|
+
to: string;
|
|
3743
3761
|
amount: string;
|
|
3744
3762
|
memo?: string | undefined;
|
|
3745
3763
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -4030,7 +4048,7 @@ export type ListApprovalsResponse = {
|
|
|
4030
4048
|
};
|
|
4031
4049
|
requestBody: {
|
|
4032
4050
|
kind: "Transaction";
|
|
4033
|
-
transaction: string;
|
|
4051
|
+
transaction: string | {};
|
|
4034
4052
|
externalId?: string | undefined;
|
|
4035
4053
|
} | {
|
|
4036
4054
|
kind: "Evm";
|
|
@@ -4050,15 +4068,6 @@ export type ListApprovalsResponse = {
|
|
|
4050
4068
|
maxFeePerGas?: (string | string) | undefined;
|
|
4051
4069
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
4052
4070
|
externalId?: string | undefined;
|
|
4053
|
-
} | {
|
|
4054
|
-
kind: "EvmLegacy";
|
|
4055
|
-
to?: string | undefined;
|
|
4056
|
-
value?: (string | string) | undefined;
|
|
4057
|
-
data?: string | undefined;
|
|
4058
|
-
nonce?: (number | string | string) | undefined;
|
|
4059
|
-
gasLimit?: (string | string) | undefined;
|
|
4060
|
-
gasPrice?: (string | string) | undefined;
|
|
4061
|
-
externalId?: string | undefined;
|
|
4062
4071
|
} | {
|
|
4063
4072
|
kind: "Psbt";
|
|
4064
4073
|
psbt: string;
|
|
@@ -4164,22 +4173,7 @@ export type ListApprovalsResponse = {
|
|
|
4164
4173
|
externalId?: string | undefined;
|
|
4165
4174
|
} | {
|
|
4166
4175
|
kind: "SignerPayload";
|
|
4167
|
-
payload: string | {
|
|
4168
|
-
address: string;
|
|
4169
|
-
blockHash: string;
|
|
4170
|
-
blockNumber: string;
|
|
4171
|
-
era: string;
|
|
4172
|
-
genesisHash: string;
|
|
4173
|
-
metadataHash?: string | undefined;
|
|
4174
|
-
method: string;
|
|
4175
|
-
mode?: number | undefined;
|
|
4176
|
-
nonce: string;
|
|
4177
|
-
specVersion: string;
|
|
4178
|
-
tip: string;
|
|
4179
|
-
transactionVersion: string;
|
|
4180
|
-
signedExtensions: string[];
|
|
4181
|
-
version: number;
|
|
4182
|
-
};
|
|
4176
|
+
payload: string | {};
|
|
4183
4177
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
4184
4178
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
4185
4179
|
externalId?: string | undefined;
|
|
@@ -4209,6 +4203,39 @@ export type ListApprovalsResponse = {
|
|
|
4209
4203
|
dateConfirmed?: string | undefined;
|
|
4210
4204
|
externalId?: string | undefined;
|
|
4211
4205
|
} | undefined;
|
|
4206
|
+
swapRequest?: {
|
|
4207
|
+
id: string;
|
|
4208
|
+
quoteId: string;
|
|
4209
|
+
sourceWalletId: string;
|
|
4210
|
+
targetWalletId: string;
|
|
4211
|
+
status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed";
|
|
4212
|
+
quotedSourceAsset: {
|
|
4213
|
+
kind: "Native";
|
|
4214
|
+
amount: string;
|
|
4215
|
+
} | {
|
|
4216
|
+
kind: "Erc20";
|
|
4217
|
+
contract: string;
|
|
4218
|
+
amount: string;
|
|
4219
|
+
};
|
|
4220
|
+
quotedTargetAsset: {
|
|
4221
|
+
kind: "Native";
|
|
4222
|
+
amount: string;
|
|
4223
|
+
} | {
|
|
4224
|
+
kind: "Erc20";
|
|
4225
|
+
contract: string;
|
|
4226
|
+
amount: string;
|
|
4227
|
+
};
|
|
4228
|
+
slippageToleranceInBps: number;
|
|
4229
|
+
dateCreated: string;
|
|
4230
|
+
requestBody: {
|
|
4231
|
+
sourceWalletId: string;
|
|
4232
|
+
quoteId: string;
|
|
4233
|
+
};
|
|
4234
|
+
requester: {
|
|
4235
|
+
userId: string;
|
|
4236
|
+
tokenId?: string | undefined;
|
|
4237
|
+
};
|
|
4238
|
+
} | undefined;
|
|
4212
4239
|
} | {
|
|
4213
4240
|
kind: "Wallets:IncomingTransaction";
|
|
4214
4241
|
blockchainEvent: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type BroadcastTransactionBody = {
|
|
2
2
|
kind: "Transaction";
|
|
3
|
-
transaction: string;
|
|
3
|
+
transaction: string | {};
|
|
4
4
|
externalId?: string | undefined;
|
|
5
5
|
} | {
|
|
6
6
|
kind: "Evm";
|
|
@@ -20,15 +20,6 @@ export type BroadcastTransactionBody = {
|
|
|
20
20
|
maxFeePerGas?: (string | string) | undefined;
|
|
21
21
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
22
22
|
externalId?: string | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
kind: "EvmLegacy";
|
|
25
|
-
to?: string | undefined;
|
|
26
|
-
value?: (string | string) | undefined;
|
|
27
|
-
data?: string | undefined;
|
|
28
|
-
nonce?: (number | string | string) | undefined;
|
|
29
|
-
gasLimit?: (string | string) | undefined;
|
|
30
|
-
gasPrice?: (string | string) | undefined;
|
|
31
|
-
externalId?: string | undefined;
|
|
32
23
|
} | {
|
|
33
24
|
kind: "Psbt";
|
|
34
25
|
psbt: string;
|
|
@@ -60,7 +51,7 @@ export type BroadcastTransactionResponse = {
|
|
|
60
51
|
};
|
|
61
52
|
requestBody: {
|
|
62
53
|
kind: "Transaction";
|
|
63
|
-
transaction: string;
|
|
54
|
+
transaction: string | {};
|
|
64
55
|
externalId?: string | undefined;
|
|
65
56
|
} | {
|
|
66
57
|
kind: "Evm";
|
|
@@ -80,15 +71,6 @@ export type BroadcastTransactionResponse = {
|
|
|
80
71
|
maxFeePerGas?: (string | string) | undefined;
|
|
81
72
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
82
73
|
externalId?: string | undefined;
|
|
83
|
-
} | {
|
|
84
|
-
kind: "EvmLegacy";
|
|
85
|
-
to?: string | undefined;
|
|
86
|
-
value?: (string | string) | undefined;
|
|
87
|
-
data?: string | undefined;
|
|
88
|
-
nonce?: (number | string | string) | undefined;
|
|
89
|
-
gasLimit?: (string | string) | undefined;
|
|
90
|
-
gasPrice?: (string | string) | undefined;
|
|
91
|
-
externalId?: string | undefined;
|
|
92
74
|
} | {
|
|
93
75
|
kind: "Psbt";
|
|
94
76
|
psbt: string;
|
|
@@ -268,22 +250,7 @@ export type GenerateSignatureBody = {
|
|
|
268
250
|
externalId?: string | undefined;
|
|
269
251
|
} | {
|
|
270
252
|
kind: "SignerPayload";
|
|
271
|
-
payload: string | {
|
|
272
|
-
address: string;
|
|
273
|
-
blockHash: string;
|
|
274
|
-
blockNumber: string;
|
|
275
|
-
era: string;
|
|
276
|
-
genesisHash: string;
|
|
277
|
-
metadataHash?: string | undefined;
|
|
278
|
-
method: string;
|
|
279
|
-
mode?: number | undefined;
|
|
280
|
-
nonce: string;
|
|
281
|
-
specVersion: string;
|
|
282
|
-
tip: string;
|
|
283
|
-
transactionVersion: string;
|
|
284
|
-
signedExtensions: string[];
|
|
285
|
-
version: number;
|
|
286
|
-
};
|
|
253
|
+
payload: string | {};
|
|
287
254
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
288
255
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
289
256
|
externalId?: string | undefined;
|
|
@@ -367,22 +334,7 @@ export type GenerateSignatureResponse = {
|
|
|
367
334
|
externalId?: string | undefined;
|
|
368
335
|
} | {
|
|
369
336
|
kind: "SignerPayload";
|
|
370
|
-
payload: string | {
|
|
371
|
-
address: string;
|
|
372
|
-
blockHash: string;
|
|
373
|
-
blockNumber: string;
|
|
374
|
-
era: string;
|
|
375
|
-
genesisHash: string;
|
|
376
|
-
metadataHash?: string | undefined;
|
|
377
|
-
method: string;
|
|
378
|
-
mode?: number | undefined;
|
|
379
|
-
nonce: string;
|
|
380
|
-
specVersion: string;
|
|
381
|
-
tip: string;
|
|
382
|
-
transactionVersion: string;
|
|
383
|
-
signedExtensions: string[];
|
|
384
|
-
version: number;
|
|
385
|
-
};
|
|
337
|
+
payload: string | {};
|
|
386
338
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
387
339
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
388
340
|
externalId?: string | undefined;
|
|
@@ -496,22 +448,7 @@ export type GetSignatureResponse = {
|
|
|
496
448
|
externalId?: string | undefined;
|
|
497
449
|
} | {
|
|
498
450
|
kind: "SignerPayload";
|
|
499
|
-
payload: string | {
|
|
500
|
-
address: string;
|
|
501
|
-
blockHash: string;
|
|
502
|
-
blockNumber: string;
|
|
503
|
-
era: string;
|
|
504
|
-
genesisHash: string;
|
|
505
|
-
metadataHash?: string | undefined;
|
|
506
|
-
method: string;
|
|
507
|
-
mode?: number | undefined;
|
|
508
|
-
nonce: string;
|
|
509
|
-
specVersion: string;
|
|
510
|
-
tip: string;
|
|
511
|
-
transactionVersion: string;
|
|
512
|
-
signedExtensions: string[];
|
|
513
|
-
version: number;
|
|
514
|
-
};
|
|
451
|
+
payload: string | {};
|
|
515
452
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
516
453
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
517
454
|
externalId?: string | undefined;
|
|
@@ -556,7 +493,7 @@ export type GetTransactionResponse = {
|
|
|
556
493
|
};
|
|
557
494
|
requestBody: {
|
|
558
495
|
kind: "Transaction";
|
|
559
|
-
transaction: string;
|
|
496
|
+
transaction: string | {};
|
|
560
497
|
externalId?: string | undefined;
|
|
561
498
|
} | {
|
|
562
499
|
kind: "Evm";
|
|
@@ -576,15 +513,6 @@ export type GetTransactionResponse = {
|
|
|
576
513
|
maxFeePerGas?: (string | string) | undefined;
|
|
577
514
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
578
515
|
externalId?: string | undefined;
|
|
579
|
-
} | {
|
|
580
|
-
kind: "EvmLegacy";
|
|
581
|
-
to?: string | undefined;
|
|
582
|
-
value?: (string | string) | undefined;
|
|
583
|
-
data?: string | undefined;
|
|
584
|
-
nonce?: (number | string | string) | undefined;
|
|
585
|
-
gasLimit?: (string | string) | undefined;
|
|
586
|
-
gasPrice?: (string | string) | undefined;
|
|
587
|
-
externalId?: string | undefined;
|
|
588
516
|
} | {
|
|
589
517
|
kind: "Psbt";
|
|
590
518
|
psbt: string;
|
|
@@ -629,7 +557,7 @@ export type GetTransferResponse = {
|
|
|
629
557
|
};
|
|
630
558
|
requestBody: {
|
|
631
559
|
kind: "Native";
|
|
632
|
-
to: string
|
|
560
|
+
to: string;
|
|
633
561
|
amount: string;
|
|
634
562
|
memo?: string | undefined;
|
|
635
563
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -1655,22 +1583,7 @@ export type ListSignaturesResponse = {
|
|
|
1655
1583
|
externalId?: string | undefined;
|
|
1656
1584
|
} | {
|
|
1657
1585
|
kind: "SignerPayload";
|
|
1658
|
-
payload: string | {
|
|
1659
|
-
address: string;
|
|
1660
|
-
blockHash: string;
|
|
1661
|
-
blockNumber: string;
|
|
1662
|
-
era: string;
|
|
1663
|
-
genesisHash: string;
|
|
1664
|
-
metadataHash?: string | undefined;
|
|
1665
|
-
method: string;
|
|
1666
|
-
mode?: number | undefined;
|
|
1667
|
-
nonce: string;
|
|
1668
|
-
specVersion: string;
|
|
1669
|
-
tip: string;
|
|
1670
|
-
transactionVersion: string;
|
|
1671
|
-
signedExtensions: string[];
|
|
1672
|
-
version: number;
|
|
1673
|
-
};
|
|
1586
|
+
payload: string | {};
|
|
1674
1587
|
network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
|
|
1675
1588
|
blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
|
|
1676
1589
|
externalId?: string | undefined;
|
|
@@ -1724,7 +1637,7 @@ export type ListTransactionsResponse = {
|
|
|
1724
1637
|
};
|
|
1725
1638
|
requestBody: {
|
|
1726
1639
|
kind: "Transaction";
|
|
1727
|
-
transaction: string;
|
|
1640
|
+
transaction: string | {};
|
|
1728
1641
|
externalId?: string | undefined;
|
|
1729
1642
|
} | {
|
|
1730
1643
|
kind: "Evm";
|
|
@@ -1744,15 +1657,6 @@ export type ListTransactionsResponse = {
|
|
|
1744
1657
|
maxFeePerGas?: (string | string) | undefined;
|
|
1745
1658
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
1746
1659
|
externalId?: string | undefined;
|
|
1747
|
-
} | {
|
|
1748
|
-
kind: "EvmLegacy";
|
|
1749
|
-
to?: string | undefined;
|
|
1750
|
-
value?: (string | string) | undefined;
|
|
1751
|
-
data?: string | undefined;
|
|
1752
|
-
nonce?: (number | string | string) | undefined;
|
|
1753
|
-
gasLimit?: (string | string) | undefined;
|
|
1754
|
-
gasPrice?: (string | string) | undefined;
|
|
1755
|
-
externalId?: string | undefined;
|
|
1756
1660
|
} | {
|
|
1757
1661
|
kind: "Psbt";
|
|
1758
1662
|
psbt: string;
|
|
@@ -1806,7 +1710,7 @@ export type ListTransfersResponse = {
|
|
|
1806
1710
|
};
|
|
1807
1711
|
requestBody: {
|
|
1808
1712
|
kind: "Native";
|
|
1809
|
-
to: string
|
|
1713
|
+
to: string;
|
|
1810
1714
|
amount: string;
|
|
1811
1715
|
memo?: string | undefined;
|
|
1812
1716
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -2139,7 +2043,7 @@ export type TagWalletRequest = TagWalletParams & {
|
|
|
2139
2043
|
};
|
|
2140
2044
|
export type TransferAssetBody = {
|
|
2141
2045
|
kind: "Native";
|
|
2142
|
-
to: string
|
|
2046
|
+
to: string;
|
|
2143
2047
|
amount: string;
|
|
2144
2048
|
memo?: string | undefined;
|
|
2145
2049
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -2411,7 +2315,7 @@ export type TransferAssetResponse = {
|
|
|
2411
2315
|
};
|
|
2412
2316
|
requestBody: {
|
|
2413
2317
|
kind: "Native";
|
|
2414
|
-
to: string
|
|
2318
|
+
to: string;
|
|
2415
2319
|
amount: string;
|
|
2416
2320
|
memo?: string | undefined;
|
|
2417
2321
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|