@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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -219,6 +219,42 @@ export type AbortTransferResponse = {
219
219
  }) | undefined;
220
220
  /** 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)) */
221
221
  feeSponsorId?: string | undefined;
222
+ gasLimit?: string | undefined;
223
+ gasPrice?: string | undefined;
224
+ maxFeePerGas?: string | undefined;
225
+ maxPriorityFeePerGas?: string | undefined;
226
+ } | {
227
+ kind: "Erc20";
228
+ /** The ERC-20 contract address. */
229
+ contract: string;
230
+ /** The destination address. */
231
+ to: string;
232
+ /** The amount of tokens to transfer in minimum denomination. */
233
+ amount: string;
234
+ /** The priority that determines the fees paid for the transfer. */
235
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
236
+ /** 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)) */
237
+ externalId?: string | undefined;
238
+ /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
239
+ travelRule?: ({
240
+ kind: "Notabene";
241
+ beneficiaryVASPdid?: string | undefined;
242
+ beneficiaryProof?: {
243
+ [x: string]: any;
244
+ } | undefined;
245
+ originator: {
246
+ [x: string]: any;
247
+ };
248
+ beneficiary: {
249
+ [x: string]: any;
250
+ };
251
+ }) | undefined;
252
+ /** 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)) */
253
+ feeSponsorId?: string | undefined;
254
+ gasLimit?: string | undefined;
255
+ gasPrice?: string | undefined;
256
+ maxFeePerGas?: string | undefined;
257
+ maxPriorityFeePerGas?: string | undefined;
222
258
  } | {
223
259
  kind: "Aip21";
224
260
  /** The asset metadata address. */
@@ -409,34 +445,6 @@ export type AbortTransferResponse = {
409
445
  }) | undefined;
410
446
  /** 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)) */
411
447
  feeSponsorId?: string | undefined;
412
- } | {
413
- kind: "Erc20";
414
- /** The ERC-20 contract address. */
415
- contract: string;
416
- /** The destination address. */
417
- to: string;
418
- /** The amount of tokens to transfer in minimum denomination. */
419
- amount: string;
420
- /** The priority that determines the fees paid for the transfer. */
421
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
422
- /** 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)) */
423
- externalId?: string | undefined;
424
- /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
425
- travelRule?: ({
426
- kind: "Notabene";
427
- beneficiaryVASPdid?: string | undefined;
428
- beneficiaryProof?: {
429
- [x: string]: any;
430
- } | undefined;
431
- originator: {
432
- [x: string]: any;
433
- };
434
- beneficiary: {
435
- [x: string]: any;
436
- };
437
- }) | undefined;
438
- /** 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)) */
439
- feeSponsorId?: string | undefined;
440
448
  } | {
441
449
  kind: "Erc721";
442
450
  /** The ERC-721 contract address. */
@@ -1712,7 +1720,7 @@ export type CreateWalletBody = {
1712
1720
  path?: string | undefined;
1713
1721
  } | undefined;
1714
1722
  } | undefined;
1715
- /** ID of the end user to delegate this wallet to. The wallet will only be usable by the end user. More info [here](https://docs.dfns.co/advanced/delegated-signing). */
1723
+ /** ID of the end user to delegate this wallet to. The wallet will only be usable by the end user. More info [here](https://docs.dfns.co/advanced/delegated-wallets). */
1716
1724
  delegateTo?: string | undefined;
1717
1725
  /** Specify if you want to create the wallet from a service account and later [delegate it](/api-reference/keys/delegate-key) to an end user. */
1718
1726
  delayDelegation?: boolean | undefined;
@@ -2853,6 +2861,42 @@ export type GetTransferResponse = {
2853
2861
  }) | undefined;
2854
2862
  /** 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)) */
2855
2863
  feeSponsorId?: string | undefined;
2864
+ gasLimit?: string | undefined;
2865
+ gasPrice?: string | undefined;
2866
+ maxFeePerGas?: string | undefined;
2867
+ maxPriorityFeePerGas?: string | undefined;
2868
+ } | {
2869
+ kind: "Erc20";
2870
+ /** The ERC-20 contract address. */
2871
+ contract: string;
2872
+ /** The destination address. */
2873
+ to: string;
2874
+ /** The amount of tokens to transfer in minimum denomination. */
2875
+ amount: string;
2876
+ /** The priority that determines the fees paid for the transfer. */
2877
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
2878
+ /** 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)) */
2879
+ externalId?: string | undefined;
2880
+ /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
2881
+ travelRule?: ({
2882
+ kind: "Notabene";
2883
+ beneficiaryVASPdid?: string | undefined;
2884
+ beneficiaryProof?: {
2885
+ [x: string]: any;
2886
+ } | undefined;
2887
+ originator: {
2888
+ [x: string]: any;
2889
+ };
2890
+ beneficiary: {
2891
+ [x: string]: any;
2892
+ };
2893
+ }) | undefined;
2894
+ /** 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)) */
2895
+ feeSponsorId?: string | undefined;
2896
+ gasLimit?: string | undefined;
2897
+ gasPrice?: string | undefined;
2898
+ maxFeePerGas?: string | undefined;
2899
+ maxPriorityFeePerGas?: string | undefined;
2856
2900
  } | {
2857
2901
  kind: "Aip21";
2858
2902
  /** The asset metadata address. */
@@ -3043,34 +3087,6 @@ export type GetTransferResponse = {
3043
3087
  }) | undefined;
3044
3088
  /** 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)) */
3045
3089
  feeSponsorId?: string | undefined;
3046
- } | {
3047
- kind: "Erc20";
3048
- /** The ERC-20 contract address. */
3049
- contract: string;
3050
- /** The destination address. */
3051
- to: string;
3052
- /** The amount of tokens to transfer in minimum denomination. */
3053
- amount: string;
3054
- /** The priority that determines the fees paid for the transfer. */
3055
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
3056
- /** 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)) */
3057
- externalId?: string | undefined;
3058
- /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
3059
- travelRule?: ({
3060
- kind: "Notabene";
3061
- beneficiaryVASPdid?: string | undefined;
3062
- beneficiaryProof?: {
3063
- [x: string]: any;
3064
- } | undefined;
3065
- originator: {
3066
- [x: string]: any;
3067
- };
3068
- beneficiary: {
3069
- [x: string]: any;
3070
- };
3071
- }) | undefined;
3072
- /** 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)) */
3073
- feeSponsorId?: string | undefined;
3074
3090
  } | {
3075
3091
  kind: "Erc721";
3076
3092
  /** The ERC-721 contract address. */
@@ -3642,7 +3658,7 @@ export type GetWalletHistoryQuery = {
3642
3658
  /** Transfer direction. */
3643
3659
  direction?: ("In" | "Out") | undefined;
3644
3660
  /** Blockchain event kind. */
3645
- kind?: ("NativeTransfer" | "Aip21Transfer" | "AsaTransfer" | "AssetTransfer" | "Cip56Transfer" | "Cis2Transfer" | "Cis7Transfer" | "CoinTransfer" | "Erc20Transfer" | "Erc721Transfer" | "Erc7984Transfer" | "HederaErc20Transfer" | "HederaErc721Transfer" | "Hip17Transfer" | "HtsTransfer" | "IouTransfer" | "LockedCoinTransfer" | "Sep41Transfer" | "Snip2Transfer" | "Snip3Transfer" | "SplTransfer" | "Spl2022Transfer" | "Tep74Transfer" | "Trc10Transfer" | "Trc20Transfer" | "Trc721Transfer" | "UtxoTransfer" | "Xls33Transfer") | undefined;
3661
+ kind?: ("NativeTransfer" | "Aip21Transfer" | "AsaTransfer" | "AssetTransfer" | "Cip56Transfer" | "Cis2Transfer" | "Cis7Transfer" | "CoinTransfer" | "Erc20Transfer" | "Erc721Transfer" | "Erc7984Transfer" | "HederaErc20Transfer" | "HederaErc721Transfer" | "Hip17Transfer" | "HtsTransfer" | "IouTransfer" | "LockedCoinTransfer" | "Sep41Transfer" | "Snip2Transfer" | "Snip3Transfer" | "SplTransfer" | "Spl2022Transfer" | "Tep74Transfer" | "Trc10Transfer" | "Trc20Transfer" | "Trc721Transfer" | "UtxoTransfer" | "Xls33Transfer" | "SmartContractEvent") | undefined;
3646
3662
  contract?: string | undefined;
3647
3663
  };
3648
3664
  export type GetWalletHistoryResponse = {
@@ -4752,10 +4768,51 @@ export type GetWalletHistoryResponse = {
4752
4768
  } | undefined;
4753
4769
  };
4754
4770
  kind: "UtxoTransfer";
4771
+ /** Only set for Cardano asset transfers. */
4772
+ assetId?: string | undefined;
4755
4773
  froms: string[];
4756
4774
  tos: string[];
4757
4775
  value: string;
4758
4776
  fee?: string | undefined;
4777
+ } | {
4778
+ walletId: string;
4779
+ direction: "In" | "Out";
4780
+ 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";
4781
+ blockNumber: number;
4782
+ txHash: string;
4783
+ index?: string | undefined;
4784
+ timestamp: string;
4785
+ status: "Included" | "Confirmed";
4786
+ metadata: {
4787
+ asset: {
4788
+ symbol?: string | undefined;
4789
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
4790
+ decimals?: number | undefined;
4791
+ /** Whether the asset is verified by DFNS as legitimate. */
4792
+ verified?: boolean | undefined;
4793
+ /** Corresponding asset price in USD at the time of transfer. */
4794
+ quotes?: {
4795
+ [x: string]: number;
4796
+ } | undefined;
4797
+ };
4798
+ fee?: {
4799
+ symbol?: string | undefined;
4800
+ /** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
4801
+ decimals?: number | undefined;
4802
+ /** Whether the asset is verified by DFNS as legitimate. */
4803
+ verified?: boolean | undefined;
4804
+ /** Corresponding asset price in USD at the time of transfer. */
4805
+ quotes?: {
4806
+ [x: string]: number;
4807
+ } | undefined;
4808
+ } | undefined;
4809
+ };
4810
+ kind: "SmartContractEvent";
4811
+ contract: string;
4812
+ /** Decoded contract event fields. */
4813
+ data: {
4814
+ [x: string]: unknown;
4815
+ };
4759
4816
  })[];
4760
4817
  /** token to use as `paginationToken` to request the next page. */
4761
4818
  nextPageToken?: string | undefined;
@@ -5491,6 +5548,42 @@ export type ListTransfersResponse = {
5491
5548
  }) | undefined;
5492
5549
  /** 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)) */
5493
5550
  feeSponsorId?: string | undefined;
5551
+ gasLimit?: string | undefined;
5552
+ gasPrice?: string | undefined;
5553
+ maxFeePerGas?: string | undefined;
5554
+ maxPriorityFeePerGas?: string | undefined;
5555
+ } | {
5556
+ kind: "Erc20";
5557
+ /** The ERC-20 contract address. */
5558
+ contract: string;
5559
+ /** The destination address. */
5560
+ to: string;
5561
+ /** The amount of tokens to transfer in minimum denomination. */
5562
+ amount: string;
5563
+ /** The priority that determines the fees paid for the transfer. */
5564
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
5565
+ /** 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)) */
5566
+ externalId?: string | undefined;
5567
+ /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
5568
+ travelRule?: ({
5569
+ kind: "Notabene";
5570
+ beneficiaryVASPdid?: string | undefined;
5571
+ beneficiaryProof?: {
5572
+ [x: string]: any;
5573
+ } | undefined;
5574
+ originator: {
5575
+ [x: string]: any;
5576
+ };
5577
+ beneficiary: {
5578
+ [x: string]: any;
5579
+ };
5580
+ }) | undefined;
5581
+ /** 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)) */
5582
+ feeSponsorId?: string | undefined;
5583
+ gasLimit?: string | undefined;
5584
+ gasPrice?: string | undefined;
5585
+ maxFeePerGas?: string | undefined;
5586
+ maxPriorityFeePerGas?: string | undefined;
5494
5587
  } | {
5495
5588
  kind: "Aip21";
5496
5589
  /** The asset metadata address. */
@@ -5681,34 +5774,6 @@ export type ListTransfersResponse = {
5681
5774
  }) | undefined;
5682
5775
  /** 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)) */
5683
5776
  feeSponsorId?: string | undefined;
5684
- } | {
5685
- kind: "Erc20";
5686
- /** The ERC-20 contract address. */
5687
- contract: string;
5688
- /** The destination address. */
5689
- to: string;
5690
- /** The amount of tokens to transfer in minimum denomination. */
5691
- amount: string;
5692
- /** The priority that determines the fees paid for the transfer. */
5693
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
5694
- /** 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)) */
5695
- externalId?: string | undefined;
5696
- /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
5697
- travelRule?: ({
5698
- kind: "Notabene";
5699
- beneficiaryVASPdid?: string | undefined;
5700
- beneficiaryProof?: {
5701
- [x: string]: any;
5702
- } | undefined;
5703
- originator: {
5704
- [x: string]: any;
5705
- };
5706
- beneficiary: {
5707
- [x: string]: any;
5708
- };
5709
- }) | undefined;
5710
- /** 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)) */
5711
- feeSponsorId?: string | undefined;
5712
5777
  } | {
5713
5778
  kind: "Erc721";
5714
5779
  /** The ERC-721 contract address. */
@@ -7291,6 +7356,42 @@ export type TransferAssetResponse = {
7291
7356
  }) | undefined;
7292
7357
  /** 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)) */
7293
7358
  feeSponsorId?: string | undefined;
7359
+ gasLimit?: string | undefined;
7360
+ gasPrice?: string | undefined;
7361
+ maxFeePerGas?: string | undefined;
7362
+ maxPriorityFeePerGas?: string | undefined;
7363
+ } | {
7364
+ kind: "Erc20";
7365
+ /** The ERC-20 contract address. */
7366
+ contract: string;
7367
+ /** The destination address. */
7368
+ to: string;
7369
+ /** The amount of tokens to transfer in minimum denomination. */
7370
+ amount: string;
7371
+ /** The priority that determines the fees paid for the transfer. */
7372
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
7373
+ /** 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)) */
7374
+ externalId?: string | undefined;
7375
+ /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
7376
+ travelRule?: ({
7377
+ kind: "Notabene";
7378
+ beneficiaryVASPdid?: string | undefined;
7379
+ beneficiaryProof?: {
7380
+ [x: string]: any;
7381
+ } | undefined;
7382
+ originator: {
7383
+ [x: string]: any;
7384
+ };
7385
+ beneficiary: {
7386
+ [x: string]: any;
7387
+ };
7388
+ }) | undefined;
7389
+ /** 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)) */
7390
+ feeSponsorId?: string | undefined;
7391
+ gasLimit?: string | undefined;
7392
+ gasPrice?: string | undefined;
7393
+ maxFeePerGas?: string | undefined;
7394
+ maxPriorityFeePerGas?: string | undefined;
7294
7395
  } | {
7295
7396
  kind: "Aip21";
7296
7397
  /** The asset metadata address. */
@@ -7481,34 +7582,6 @@ export type TransferAssetResponse = {
7481
7582
  }) | undefined;
7482
7583
  /** 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)) */
7483
7584
  feeSponsorId?: string | undefined;
7484
- } | {
7485
- kind: "Erc20";
7486
- /** The ERC-20 contract address. */
7487
- contract: string;
7488
- /** The destination address. */
7489
- to: string;
7490
- /** The amount of tokens to transfer in minimum denomination. */
7491
- amount: string;
7492
- /** The priority that determines the fees paid for the transfer. */
7493
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
7494
- /** 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)) */
7495
- externalId?: string | undefined;
7496
- /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
7497
- travelRule?: ({
7498
- kind: "Notabene";
7499
- beneficiaryVASPdid?: string | undefined;
7500
- beneficiaryProof?: {
7501
- [x: string]: any;
7502
- } | undefined;
7503
- originator: {
7504
- [x: string]: any;
7505
- };
7506
- beneficiary: {
7507
- [x: string]: any;
7508
- };
7509
- }) | undefined;
7510
- /** 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)) */
7511
- feeSponsorId?: string | undefined;
7512
7585
  } | {
7513
7586
  kind: "Erc721";
7514
7587
  /** The ERC-721 contract address. */
@@ -3,7 +3,7 @@ export type CreateWebhookBody = {
3
3
  /** Webhook status */
4
4
  status?: ("Enabled" | "Disabled") | undefined;
5
5
  description?: string | undefined;
6
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required") | "*")[];
6
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required") | "*")[];
7
7
  };
8
8
  export type CreateWebhookResponse = {
9
9
  /** Webhook ID */
@@ -11,7 +11,7 @@ export type CreateWebhookResponse = {
11
11
  /** Webhook url */
12
12
  url: string;
13
13
  /** All events this webhook is subscribed to. */
14
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required") | "*")[];
14
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required") | "*")[];
15
15
  /** Webhook status */
16
16
  status: "Enabled" | "Disabled";
17
17
  /** Short description this webhook's purpose */
@@ -42,7 +42,7 @@ export type GetWebhookResponse = {
42
42
  /** Webhook url */
43
43
  url: string;
44
44
  /** All events this webhook is subscribed to. */
45
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required") | "*")[];
45
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required") | "*")[];
46
46
  /** Webhook status */
47
47
  status: "Enabled" | "Disabled";
48
48
  /** Short description this webhook's purpose */
@@ -63,7 +63,7 @@ export type GetWebhookEventResponse = {
63
63
  /** ISO date string when event was raised */
64
64
  date: string;
65
65
  /** Webhook event */
66
- kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required";
66
+ kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required";
67
67
  data: {
68
68
  [x: string]: any;
69
69
  };
@@ -79,7 +79,7 @@ export type ListWebhookEventsParams = {
79
79
  webhookId: string;
80
80
  };
81
81
  export type ListWebhookEventsQuery = {
82
- kind?: ("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required") | undefined;
82
+ kind?: ("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required") | undefined;
83
83
  deliveryFailed?: ("true" | "false") | undefined;
84
84
  limit?: number | undefined;
85
85
  paginationToken?: string | undefined;
@@ -91,7 +91,7 @@ export type ListWebhookEventsResponse = {
91
91
  /** ISO date string when event was raised */
92
92
  date: string;
93
93
  /** Webhook event */
94
- kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required";
94
+ kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required";
95
95
  data: {
96
96
  [x: string]: any;
97
97
  };
@@ -118,7 +118,7 @@ export type ListWebhooksResponse = {
118
118
  /** Webhook url */
119
119
  url: string;
120
120
  /** All events this webhook is subscribed to. */
121
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required") | "*")[];
121
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required") | "*")[];
122
122
  /** Webhook status */
123
123
  status: "Enabled" | "Disabled";
124
124
  /** Short description this webhook's purpose */
@@ -144,7 +144,7 @@ export type PingWebhookRequest = PingWebhookParams;
144
144
  export type UpdateWebhookBody = {
145
145
  url?: string | undefined;
146
146
  description?: (string | undefined) | undefined;
147
- events?: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required") | "*")[] | undefined;
147
+ events?: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required") | "*")[] | undefined;
148
148
  /** Webhook status */
149
149
  status?: (("Enabled" | "Disabled") | undefined) | undefined;
150
150
  };
@@ -157,7 +157,7 @@ export type UpdateWebhookResponse = {
157
157
  /** Webhook url */
158
158
  url: string;
159
159
  /** All events this webhook is subscribed to. */
160
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "payout.action.required") | "*")[];
160
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.blockchain_event.transfer.included" | "wallet.created" | "wallet.activated" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.offer.withdrawn" | "wallet.tags.modified" | "vault.created" | "vault.updated" | "vault.tags.modified" | "vault.event.created" | "payout.action.required") | "*")[];
161
161
  /** Webhook status */
162
162
  status: "Enabled" | "Disabled";
163
163
  /** Short description this webhook's purpose */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.8.24",
3
+ "version": "0.8.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dfns/dfns-sdk-ts.git",