@dfns/sdk 0.8.24 → 0.8.25

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.
@@ -402,6 +402,42 @@ export type CreateApprovalDecisionResponse = {
402
402
  }) | undefined;
403
403
  /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
404
404
  feeSponsorId?: string | undefined;
405
+ gasLimit?: string | undefined;
406
+ gasPrice?: string | undefined;
407
+ maxFeePerGas?: string | undefined;
408
+ maxPriorityFeePerGas?: string | undefined;
409
+ } | {
410
+ kind: "Erc20";
411
+ /** The ERC-20 contract address. */
412
+ contract: string;
413
+ /** The destination address. */
414
+ to: string;
415
+ /** The amount of tokens to transfer in minimum denomination. */
416
+ amount: string;
417
+ /** The priority that determines the fees paid for the transfer. */
418
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
419
+ /** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
420
+ externalId?: string | undefined;
421
+ /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
422
+ travelRule?: ({
423
+ kind: "Notabene";
424
+ beneficiaryVASPdid?: string | undefined;
425
+ beneficiaryProof?: {
426
+ [x: string]: any;
427
+ } | undefined;
428
+ originator: {
429
+ [x: string]: any;
430
+ };
431
+ beneficiary: {
432
+ [x: string]: any;
433
+ };
434
+ }) | undefined;
435
+ /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
436
+ feeSponsorId?: string | undefined;
437
+ gasLimit?: string | undefined;
438
+ gasPrice?: string | undefined;
439
+ maxFeePerGas?: string | undefined;
440
+ maxPriorityFeePerGas?: string | undefined;
405
441
  } | {
406
442
  kind: "Aip21";
407
443
  /** The asset metadata address. */
@@ -592,34 +628,6 @@ export type CreateApprovalDecisionResponse = {
592
628
  }) | undefined;
593
629
  /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
594
630
  feeSponsorId?: string | undefined;
595
- } | {
596
- kind: "Erc20";
597
- /** The ERC-20 contract address. */
598
- contract: string;
599
- /** The destination address. */
600
- to: string;
601
- /** The amount of tokens to transfer in minimum denomination. */
602
- amount: string;
603
- /** The priority that determines the fees paid for the transfer. */
604
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
605
- /** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
606
- externalId?: string | undefined;
607
- /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
608
- travelRule?: ({
609
- kind: "Notabene";
610
- beneficiaryVASPdid?: string | undefined;
611
- beneficiaryProof?: {
612
- [x: string]: any;
613
- } | undefined;
614
- originator: {
615
- [x: string]: any;
616
- };
617
- beneficiary: {
618
- [x: string]: any;
619
- };
620
- }) | undefined;
621
- /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
622
- feeSponsorId?: string | undefined;
623
631
  } | {
624
632
  kind: "Erc721";
625
633
  /** The ERC-721 contract address. */
@@ -2802,10 +2810,51 @@ export type CreateApprovalDecisionResponse = {
2802
2810
  } | undefined;
2803
2811
  };
2804
2812
  kind: "UtxoTransfer";
2813
+ /** Only set for Cardano asset transfers. */
2814
+ assetId?: string | undefined;
2805
2815
  froms: string[];
2806
2816
  tos: string[];
2807
2817
  value: string;
2808
2818
  fee?: string | undefined;
2819
+ } | {
2820
+ walletId: string;
2821
+ direction: "In" | "Out";
2822
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
2823
+ blockNumber: number;
2824
+ txHash: string;
2825
+ index?: string | undefined;
2826
+ timestamp: string;
2827
+ status: "Included" | "Confirmed";
2828
+ metadata: {
2829
+ asset: {
2830
+ symbol?: string | undefined;
2831
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
2832
+ decimals?: number | undefined;
2833
+ /** Whether the asset is verified by DFNS as legitimate. */
2834
+ verified?: boolean | undefined;
2835
+ /** Corresponding asset price in USD at the time of transfer. */
2836
+ quotes?: {
2837
+ [x: string]: number;
2838
+ } | undefined;
2839
+ };
2840
+ fee?: {
2841
+ symbol?: string | undefined;
2842
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
2843
+ decimals?: number | undefined;
2844
+ /** Whether the asset is verified by DFNS as legitimate. */
2845
+ verified?: boolean | undefined;
2846
+ /** Corresponding asset price in USD at the time of transfer. */
2847
+ quotes?: {
2848
+ [x: string]: number;
2849
+ } | undefined;
2850
+ } | undefined;
2851
+ };
2852
+ kind: "SmartContractEvent";
2853
+ contract: string;
2854
+ /** Decoded contract event fields. */
2855
+ data: {
2856
+ [x: string]: unknown;
2857
+ };
2809
2858
  };
2810
2859
  } | {
2811
2860
  kind: "Policies:Modify";
@@ -3279,7 +3328,7 @@ export type CreateApprovalDecisionResponse = {
3279
3328
  id: string;
3280
3329
  name: string;
3281
3330
  description?: string | undefined;
3282
- network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
3331
+ network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiPacific1" | "SeiAtlantic2" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
3283
3332
  address: string;
3284
3333
  schema?: any;
3285
3334
  };
@@ -4015,6 +4064,42 @@ export type GetApprovalResponse = {
4015
4064
  }) | undefined;
4016
4065
  /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
4017
4066
  feeSponsorId?: string | undefined;
4067
+ gasLimit?: string | undefined;
4068
+ gasPrice?: string | undefined;
4069
+ maxFeePerGas?: string | undefined;
4070
+ maxPriorityFeePerGas?: string | undefined;
4071
+ } | {
4072
+ kind: "Erc20";
4073
+ /** The ERC-20 contract address. */
4074
+ contract: string;
4075
+ /** The destination address. */
4076
+ to: string;
4077
+ /** The amount of tokens to transfer in minimum denomination. */
4078
+ amount: string;
4079
+ /** The priority that determines the fees paid for the transfer. */
4080
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
4081
+ /** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
4082
+ externalId?: string | undefined;
4083
+ /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
4084
+ travelRule?: ({
4085
+ kind: "Notabene";
4086
+ beneficiaryVASPdid?: string | undefined;
4087
+ beneficiaryProof?: {
4088
+ [x: string]: any;
4089
+ } | undefined;
4090
+ originator: {
4091
+ [x: string]: any;
4092
+ };
4093
+ beneficiary: {
4094
+ [x: string]: any;
4095
+ };
4096
+ }) | undefined;
4097
+ /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
4098
+ feeSponsorId?: string | undefined;
4099
+ gasLimit?: string | undefined;
4100
+ gasPrice?: string | undefined;
4101
+ maxFeePerGas?: string | undefined;
4102
+ maxPriorityFeePerGas?: string | undefined;
4018
4103
  } | {
4019
4104
  kind: "Aip21";
4020
4105
  /** The asset metadata address. */
@@ -4205,34 +4290,6 @@ export type GetApprovalResponse = {
4205
4290
  }) | undefined;
4206
4291
  /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
4207
4292
  feeSponsorId?: string | undefined;
4208
- } | {
4209
- kind: "Erc20";
4210
- /** The ERC-20 contract address. */
4211
- contract: string;
4212
- /** The destination address. */
4213
- to: string;
4214
- /** The amount of tokens to transfer in minimum denomination. */
4215
- amount: string;
4216
- /** The priority that determines the fees paid for the transfer. */
4217
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
4218
- /** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
4219
- externalId?: string | undefined;
4220
- /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
4221
- travelRule?: ({
4222
- kind: "Notabene";
4223
- beneficiaryVASPdid?: string | undefined;
4224
- beneficiaryProof?: {
4225
- [x: string]: any;
4226
- } | undefined;
4227
- originator: {
4228
- [x: string]: any;
4229
- };
4230
- beneficiary: {
4231
- [x: string]: any;
4232
- };
4233
- }) | undefined;
4234
- /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
4235
- feeSponsorId?: string | undefined;
4236
4293
  } | {
4237
4294
  kind: "Erc721";
4238
4295
  /** The ERC-721 contract address. */
@@ -6415,10 +6472,51 @@ export type GetApprovalResponse = {
6415
6472
  } | undefined;
6416
6473
  };
6417
6474
  kind: "UtxoTransfer";
6475
+ /** Only set for Cardano asset transfers. */
6476
+ assetId?: string | undefined;
6418
6477
  froms: string[];
6419
6478
  tos: string[];
6420
6479
  value: string;
6421
6480
  fee?: string | undefined;
6481
+ } | {
6482
+ walletId: string;
6483
+ direction: "In" | "Out";
6484
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
6485
+ blockNumber: number;
6486
+ txHash: string;
6487
+ index?: string | undefined;
6488
+ timestamp: string;
6489
+ status: "Included" | "Confirmed";
6490
+ metadata: {
6491
+ asset: {
6492
+ symbol?: string | undefined;
6493
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
6494
+ decimals?: number | undefined;
6495
+ /** Whether the asset is verified by DFNS as legitimate. */
6496
+ verified?: boolean | undefined;
6497
+ /** Corresponding asset price in USD at the time of transfer. */
6498
+ quotes?: {
6499
+ [x: string]: number;
6500
+ } | undefined;
6501
+ };
6502
+ fee?: {
6503
+ symbol?: string | undefined;
6504
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
6505
+ decimals?: number | undefined;
6506
+ /** Whether the asset is verified by DFNS as legitimate. */
6507
+ verified?: boolean | undefined;
6508
+ /** Corresponding asset price in USD at the time of transfer. */
6509
+ quotes?: {
6510
+ [x: string]: number;
6511
+ } | undefined;
6512
+ } | undefined;
6513
+ };
6514
+ kind: "SmartContractEvent";
6515
+ contract: string;
6516
+ /** Decoded contract event fields. */
6517
+ data: {
6518
+ [x: string]: unknown;
6519
+ };
6422
6520
  };
6423
6521
  } | {
6424
6522
  kind: "Policies:Modify";
@@ -6892,7 +6990,7 @@ export type GetApprovalResponse = {
6892
6990
  id: string;
6893
6991
  name: string;
6894
6992
  description?: string | undefined;
6895
- network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
6993
+ network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiPacific1" | "SeiAtlantic2" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
6896
6994
  address: string;
6897
6995
  schema?: any;
6898
6996
  };
@@ -7677,6 +7775,42 @@ export type ListApprovalsResponse = {
7677
7775
  }) | undefined;
7678
7776
  /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
7679
7777
  feeSponsorId?: string | undefined;
7778
+ gasLimit?: string | undefined;
7779
+ gasPrice?: string | undefined;
7780
+ maxFeePerGas?: string | undefined;
7781
+ maxPriorityFeePerGas?: string | undefined;
7782
+ } | {
7783
+ kind: "Erc20";
7784
+ /** The ERC-20 contract address. */
7785
+ contract: string;
7786
+ /** The destination address. */
7787
+ to: string;
7788
+ /** The amount of tokens to transfer in minimum denomination. */
7789
+ amount: string;
7790
+ /** The priority that determines the fees paid for the transfer. */
7791
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
7792
+ /** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
7793
+ externalId?: string | undefined;
7794
+ /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
7795
+ travelRule?: ({
7796
+ kind: "Notabene";
7797
+ beneficiaryVASPdid?: string | undefined;
7798
+ beneficiaryProof?: {
7799
+ [x: string]: any;
7800
+ } | undefined;
7801
+ originator: {
7802
+ [x: string]: any;
7803
+ };
7804
+ beneficiary: {
7805
+ [x: string]: any;
7806
+ };
7807
+ }) | undefined;
7808
+ /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
7809
+ feeSponsorId?: string | undefined;
7810
+ gasLimit?: string | undefined;
7811
+ gasPrice?: string | undefined;
7812
+ maxFeePerGas?: string | undefined;
7813
+ maxPriorityFeePerGas?: string | undefined;
7680
7814
  } | {
7681
7815
  kind: "Aip21";
7682
7816
  /** The asset metadata address. */
@@ -7867,34 +8001,6 @@ export type ListApprovalsResponse = {
7867
8001
  }) | undefined;
7868
8002
  /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
7869
8003
  feeSponsorId?: string | undefined;
7870
- } | {
7871
- kind: "Erc20";
7872
- /** The ERC-20 contract address. */
7873
- contract: string;
7874
- /** The destination address. */
7875
- to: string;
7876
- /** The amount of tokens to transfer in minimum denomination. */
7877
- amount: string;
7878
- /** The priority that determines the fees paid for the transfer. */
7879
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
7880
- /** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
7881
- externalId?: string | undefined;
7882
- /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
7883
- travelRule?: ({
7884
- kind: "Notabene";
7885
- beneficiaryVASPdid?: string | undefined;
7886
- beneficiaryProof?: {
7887
- [x: string]: any;
7888
- } | undefined;
7889
- originator: {
7890
- [x: string]: any;
7891
- };
7892
- beneficiary: {
7893
- [x: string]: any;
7894
- };
7895
- }) | undefined;
7896
- /** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
7897
- feeSponsorId?: string | undefined;
7898
8004
  } | {
7899
8005
  kind: "Erc721";
7900
8006
  /** The ERC-721 contract address. */
@@ -10077,10 +10183,51 @@ export type ListApprovalsResponse = {
10077
10183
  } | undefined;
10078
10184
  };
10079
10185
  kind: "UtxoTransfer";
10186
+ /** Only set for Cardano asset transfers. */
10187
+ assetId?: string | undefined;
10080
10188
  froms: string[];
10081
10189
  tos: string[];
10082
10190
  value: string;
10083
10191
  fee?: string | undefined;
10192
+ } | {
10193
+ walletId: string;
10194
+ direction: "In" | "Out";
10195
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
10196
+ blockNumber: number;
10197
+ txHash: string;
10198
+ index?: string | undefined;
10199
+ timestamp: string;
10200
+ status: "Included" | "Confirmed";
10201
+ metadata: {
10202
+ asset: {
10203
+ symbol?: string | undefined;
10204
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
10205
+ decimals?: number | undefined;
10206
+ /** Whether the asset is verified by DFNS as legitimate. */
10207
+ verified?: boolean | undefined;
10208
+ /** Corresponding asset price in USD at the time of transfer. */
10209
+ quotes?: {
10210
+ [x: string]: number;
10211
+ } | undefined;
10212
+ };
10213
+ fee?: {
10214
+ symbol?: string | undefined;
10215
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
10216
+ decimals?: number | undefined;
10217
+ /** Whether the asset is verified by DFNS as legitimate. */
10218
+ verified?: boolean | undefined;
10219
+ /** Corresponding asset price in USD at the time of transfer. */
10220
+ quotes?: {
10221
+ [x: string]: number;
10222
+ } | undefined;
10223
+ } | undefined;
10224
+ };
10225
+ kind: "SmartContractEvent";
10226
+ contract: string;
10227
+ /** Decoded contract event fields. */
10228
+ data: {
10229
+ [x: string]: unknown;
10230
+ };
10084
10231
  };
10085
10232
  } | {
10086
10233
  kind: "Policies:Modify";
@@ -10554,7 +10701,7 @@ export type ListApprovalsResponse = {
10554
10701
  id: string;
10555
10702
  name: string;
10556
10703
  description?: string | undefined;
10557
- network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
10704
+ network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiPacific1" | "SeiAtlantic2" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
10558
10705
  address: string;
10559
10706
  schema?: any;
10560
10707
  };
@@ -0,0 +1,17 @@
1
+ import { DfnsApiClientOptions } from '../../types/generic';
2
+ import * as T from './types';
3
+ export declare class VaultsClient {
4
+ private apiOptions;
5
+ constructor(apiOptions: DfnsApiClientOptions);
6
+ createVault(request: T.CreateVaultRequest): Promise<T.CreateVaultResponse>;
7
+ createVaultAddress(request: T.CreateVaultAddressRequest): Promise<T.CreateVaultAddressResponse>;
8
+ createVaultTransfer(request: T.CreateVaultTransferRequest): Promise<T.CreateVaultTransferResponse>;
9
+ getVault(request: T.GetVaultRequest): Promise<T.GetVaultResponse>;
10
+ listVaultAssets(request: T.ListVaultAssetsRequest): Promise<T.ListVaultAssetsResponse>;
11
+ listVaultBalances(request: T.ListVaultBalancesRequest): Promise<T.ListVaultBalancesResponse>;
12
+ listVaults(request?: T.ListVaultsRequest): Promise<T.ListVaultsResponse>;
13
+ tagVault(request: T.TagVaultRequest): Promise<T.TagVaultResponse>;
14
+ unquarantine(request: T.UnquarantineRequest): Promise<T.UnquarantineResponse>;
15
+ untagVault(request: T.UntagVaultRequest): Promise<T.UntagVaultResponse>;
16
+ updateVault(request: T.UpdateVaultRequest): Promise<T.UpdateVaultResponse>;
17
+ }
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ /* eslint @typescript-eslint/no-unused-vars: 0 */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VaultsClient = void 0;
5
+ const fetch_1 = require("../../utils/fetch");
6
+ const userActionFetch_1 = require("../../utils/userActionFetch");
7
+ const url_1 = require("../../utils/url");
8
+ class VaultsClient {
9
+ constructor(apiOptions) {
10
+ this.apiOptions = apiOptions;
11
+ }
12
+ async createVault(request) {
13
+ const path = (0, url_1.buildPathAndQuery)('/vaults', {
14
+ path: request ?? {},
15
+ query: {},
16
+ });
17
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
18
+ method: 'POST',
19
+ body: request.body,
20
+ apiOptions: this.apiOptions,
21
+ });
22
+ return response.json();
23
+ }
24
+ async createVaultAddress(request) {
25
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId/addresses', {
26
+ path: request ?? {},
27
+ query: {},
28
+ });
29
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
30
+ method: 'POST',
31
+ body: request.body,
32
+ apiOptions: this.apiOptions,
33
+ });
34
+ return response.json();
35
+ }
36
+ async createVaultTransfer(request) {
37
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId/transfers', {
38
+ path: request ?? {},
39
+ query: {},
40
+ });
41
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
42
+ method: 'POST',
43
+ body: request.body,
44
+ apiOptions: this.apiOptions,
45
+ });
46
+ return response.json();
47
+ }
48
+ async getVault(request) {
49
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId', {
50
+ path: request ?? {},
51
+ query: {},
52
+ });
53
+ const response = await (0, fetch_1.simpleFetch)(path, {
54
+ method: 'GET',
55
+ apiOptions: this.apiOptions,
56
+ });
57
+ return response.json();
58
+ }
59
+ async listVaultAssets(request) {
60
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId/assets', {
61
+ path: request ?? {},
62
+ query: request.query ?? {},
63
+ });
64
+ const response = await (0, fetch_1.simpleFetch)(path, {
65
+ method: 'GET',
66
+ apiOptions: this.apiOptions,
67
+ });
68
+ return response.json();
69
+ }
70
+ async listVaultBalances(request) {
71
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId/balances', {
72
+ path: request ?? {},
73
+ query: request.query ?? {},
74
+ });
75
+ const response = await (0, fetch_1.simpleFetch)(path, {
76
+ method: 'GET',
77
+ apiOptions: this.apiOptions,
78
+ });
79
+ return response.json();
80
+ }
81
+ async listVaults(request) {
82
+ const path = (0, url_1.buildPathAndQuery)('/vaults', {
83
+ path: request ?? {},
84
+ query: request?.query ?? {},
85
+ });
86
+ const response = await (0, fetch_1.simpleFetch)(path, {
87
+ method: 'GET',
88
+ apiOptions: this.apiOptions,
89
+ });
90
+ return response.json();
91
+ }
92
+ async tagVault(request) {
93
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId/tags', {
94
+ path: request ?? {},
95
+ query: {},
96
+ });
97
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
98
+ method: 'PUT',
99
+ body: request.body,
100
+ apiOptions: this.apiOptions,
101
+ });
102
+ return response.json();
103
+ }
104
+ async unquarantine(request) {
105
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId/quarantines/:quarantineId', {
106
+ path: request ?? {},
107
+ query: {},
108
+ });
109
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
110
+ method: 'DELETE',
111
+ body: request.body,
112
+ apiOptions: this.apiOptions,
113
+ });
114
+ return response.json();
115
+ }
116
+ async untagVault(request) {
117
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId/tags', {
118
+ path: request ?? {},
119
+ query: {},
120
+ });
121
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
122
+ method: 'DELETE',
123
+ body: request.body,
124
+ apiOptions: this.apiOptions,
125
+ });
126
+ return response.json();
127
+ }
128
+ async updateVault(request) {
129
+ const path = (0, url_1.buildPathAndQuery)('/vaults/:vaultId', {
130
+ path: request ?? {},
131
+ query: {},
132
+ });
133
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
134
+ method: 'PUT',
135
+ body: request.body,
136
+ apiOptions: this.apiOptions,
137
+ });
138
+ return response.json();
139
+ }
140
+ }
141
+ exports.VaultsClient = VaultsClient;
@@ -0,0 +1,25 @@
1
+ import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
2
+ import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
3
+ import * as T from './types';
4
+ export declare class DelegatedVaultsClient {
5
+ private apiOptions;
6
+ constructor(apiOptions: DfnsDelegatedApiClientOptions);
7
+ createVaultInit(request: T.CreateVaultRequest): Promise<UserActionChallengeResponse>;
8
+ createVaultComplete(request: T.CreateVaultRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateVaultResponse>;
9
+ createVaultAddressInit(request: T.CreateVaultAddressRequest): Promise<UserActionChallengeResponse>;
10
+ createVaultAddressComplete(request: T.CreateVaultAddressRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateVaultAddressResponse>;
11
+ createVaultTransferInit(request: T.CreateVaultTransferRequest): Promise<UserActionChallengeResponse>;
12
+ createVaultTransferComplete(request: T.CreateVaultTransferRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateVaultTransferResponse>;
13
+ getVault(request: T.GetVaultRequest): Promise<T.GetVaultResponse>;
14
+ listVaultAssets(request: T.ListVaultAssetsRequest): Promise<T.ListVaultAssetsResponse>;
15
+ listVaultBalances(request: T.ListVaultBalancesRequest): Promise<T.ListVaultBalancesResponse>;
16
+ listVaults(request?: T.ListVaultsRequest): Promise<T.ListVaultsResponse>;
17
+ tagVaultInit(request: T.TagVaultRequest): Promise<UserActionChallengeResponse>;
18
+ tagVaultComplete(request: T.TagVaultRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.TagVaultResponse>;
19
+ unquarantineInit(request: T.UnquarantineRequest): Promise<UserActionChallengeResponse>;
20
+ unquarantineComplete(request: T.UnquarantineRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UnquarantineResponse>;
21
+ untagVaultInit(request: T.UntagVaultRequest): Promise<UserActionChallengeResponse>;
22
+ untagVaultComplete(request: T.UntagVaultRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UntagVaultResponse>;
23
+ updateVaultInit(request: T.UpdateVaultRequest): Promise<UserActionChallengeResponse>;
24
+ updateVaultComplete(request: T.UpdateVaultRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateVaultResponse>;
25
+ }