@dfns/sdk 0.8.11 → 0.8.13

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.
Files changed (37) hide show
  1. package/dfnsApiClient.d.ts +10 -8
  2. package/dfnsApiClient.js +16 -12
  3. package/dfnsDelegatedApiClient.d.ts +12 -2
  4. package/dfnsDelegatedApiClient.js +23 -3
  5. package/generated/auth/client.js +2 -2
  6. package/generated/auth/delegatedClient.js +4 -4
  7. package/generated/auth/types.d.ts +14 -2
  8. package/generated/keys/types.d.ts +4 -4
  9. package/generated/networks/types.d.ts +14 -1
  10. package/generated/payouts/client.d.ts +11 -0
  11. package/generated/payouts/client.js +71 -0
  12. package/generated/payouts/delegatedClient.d.ts +14 -0
  13. package/generated/payouts/delegatedClient.js +100 -0
  14. package/generated/payouts/index.d.ts +3 -0
  15. package/generated/payouts/index.js +19 -0
  16. package/generated/payouts/types.d.ts +427 -0
  17. package/generated/payouts/types.js +2 -0
  18. package/generated/permissions/client.js +1 -1
  19. package/generated/permissions/delegatedClient.js +1 -1
  20. package/generated/permissions/types.d.ts +95 -4
  21. package/generated/policies/types.d.ts +234 -30
  22. package/generated/swaps/types.d.ts +6 -0
  23. package/generated/wallets/types.d.ts +53 -45
  24. package/generated/webhooks/types.d.ts +9 -9
  25. package/package.json +1 -1
  26. package/types/agreements.d.ts +1 -0
  27. package/types/agreements.js +17 -0
  28. package/types/allocations.d.ts +1 -0
  29. package/types/allocations.js +17 -0
  30. package/types/payouts.d.ts +1 -0
  31. package/types/payouts.js +17 -0
  32. package/types/staking.d.ts +1 -0
  33. package/types/staking.js +17 -0
  34. package/types/swaps.d.ts +1 -0
  35. package/types/swaps.js +17 -0
  36. package/utils/url.d.ts +1 -1
  37. package/utils/url.js +11 -2
@@ -25,6 +25,8 @@ export type ArchivePolicyResponse = {
25
25
  };
26
26
  /** Whether the initiator of the activity can participate in the approval. */
27
27
  initiatorCanApprove?: boolean | undefined;
28
+ /** Whether service accounts can participate in the approval for this group. */
29
+ serviceAccountsCanApprove?: boolean | undefined;
28
30
  }[];
29
31
  autoRejectTimeout?: (number | undefined) | null;
30
32
  } | {
@@ -55,6 +57,8 @@ export type ArchivePolicyResponse = {
55
57
  };
56
58
  /** Whether the initiator of the activity can participate in the approval. */
57
59
  initiatorCanApprove?: boolean | undefined;
60
+ /** Whether service accounts can participate in the approval for this group. */
61
+ serviceAccountsCanApprove?: boolean | undefined;
58
62
  }[];
59
63
  autoRejectTimeout?: (number | undefined) | null;
60
64
  } | {
@@ -89,6 +93,8 @@ export type ArchivePolicyResponse = {
89
93
  };
90
94
  /** Whether the initiator of the activity can participate in the approval. */
91
95
  initiatorCanApprove?: boolean | undefined;
96
+ /** Whether service accounts can participate in the approval for this group. */
97
+ serviceAccountsCanApprove?: boolean | undefined;
92
98
  }[];
93
99
  autoRejectTimeout?: (number | undefined) | null;
94
100
  } | {
@@ -123,6 +129,8 @@ export type ArchivePolicyResponse = {
123
129
  };
124
130
  /** Whether the initiator of the activity can participate in the approval. */
125
131
  initiatorCanApprove?: boolean | undefined;
132
+ /** Whether service accounts can participate in the approval for this group. */
133
+ serviceAccountsCanApprove?: boolean | undefined;
126
134
  }[];
127
135
  autoRejectTimeout?: (number | undefined) | null;
128
136
  };
@@ -155,6 +163,8 @@ export type ArchivePolicyResponse = {
155
163
  };
156
164
  /** Whether the initiator of the activity can participate in the approval. */
157
165
  initiatorCanApprove?: boolean | undefined;
166
+ /** Whether service accounts can participate in the approval for this group. */
167
+ serviceAccountsCanApprove?: boolean | undefined;
158
168
  }[];
159
169
  autoRejectTimeout?: (number | undefined) | null;
160
170
  } | {
@@ -266,6 +276,8 @@ export type ArchivePolicyResponse = {
266
276
  };
267
277
  /** Whether the initiator of the activity can participate in the approval. */
268
278
  initiatorCanApprove?: boolean | undefined;
279
+ /** Whether service accounts can participate in the approval for this group. */
280
+ serviceAccountsCanApprove?: boolean | undefined;
269
281
  }[];
270
282
  autoRejectTimeout?: (number | undefined) | null;
271
283
  } | {
@@ -422,7 +434,7 @@ export type CreateApprovalDecisionResponse = {
422
434
  to: string;
423
435
  /** The amount of tokens to transfer in minimum denomination. */
424
436
  amount: string;
425
- /** The memo. */
437
+ /** The memo or destination tag. */
426
438
  memo?: (string | "") | undefined;
427
439
  /** 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)) */
428
440
  externalId?: string | undefined;
@@ -641,7 +653,7 @@ export type CreateApprovalDecisionResponse = {
641
653
  serialNumber: string;
642
654
  /** The destination address. */
643
655
  to: string;
644
- /** The memo. */
656
+ /** The memo or destination tag. */
645
657
  memo?: (string | "") | undefined;
646
658
  /** 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)) */
647
659
  externalId?: string | undefined;
@@ -699,8 +711,8 @@ export type CreateApprovalDecisionResponse = {
699
711
  to: string;
700
712
  /** The amount of tokens to transfer in minimum denomination. */
701
713
  amount: string;
702
- /** The memo or destination tag for XRPL transactions. */
703
- memo?: string | undefined;
714
+ /** The memo or destination tag. */
715
+ memo?: (string | "") | undefined;
704
716
  /** 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)) */
705
717
  externalId?: string | undefined;
706
718
  /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
@@ -751,7 +763,7 @@ export type CreateApprovalDecisionResponse = {
751
763
  feeSponsorId?: string | undefined;
752
764
  } | {
753
765
  kind: "Snip2";
754
- /** The Snip2 (ERC-20-like) contract address. */
766
+ /** The SNIP-2 (ERC-20-like) contract address. */
755
767
  contract: string;
756
768
  /** The destination address. */
757
769
  to: string;
@@ -777,7 +789,7 @@ export type CreateApprovalDecisionResponse = {
777
789
  feeSponsorId?: string | undefined;
778
790
  } | {
779
791
  kind: "Snip3";
780
- /** The Snip3 (ERC-721) contract address. */
792
+ /** The SNIP-3 (ERC-721) contract address. */
781
793
  contract: string;
782
794
  /** The destination address. */
783
795
  to: string;
@@ -809,6 +821,8 @@ export type CreateApprovalDecisionResponse = {
809
821
  amount: string;
810
822
  /** The mint account address. */
811
823
  mint: string;
824
+ /** The memo or destination tag. */
825
+ memo?: (string | "") | undefined;
812
826
  /** If `true`, pay to create the associated token account for the recipient if it doesn't exist. Defaults to `false`. */
813
827
  createDestinationAccount?: boolean | undefined;
814
828
  /** 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)) */
@@ -943,8 +957,8 @@ export type CreateApprovalDecisionResponse = {
943
957
  to: string;
944
958
  /** The amount of tokens to transfer in minimum denomination. */
945
959
  amount: string;
946
- /** The memo or destination tag for XRPL transactions. */
947
- memo?: string | undefined;
960
+ /** The memo or destination tag. */
961
+ memo?: (string | "") | undefined;
948
962
  /** 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)) */
949
963
  externalId?: string | undefined;
950
964
  /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
@@ -1021,7 +1035,7 @@ export type CreateApprovalDecisionResponse = {
1021
1035
  };
1022
1036
  requestBody: {
1023
1037
  kind: "Transaction";
1024
- /** The unsigned hex encoded transaction. EVM transactions also accept JSON objects. */
1038
+ /** The unsigned hex encoded transaction or JSON transactions for compatible networks. */
1025
1039
  transaction: string | {};
1026
1040
  /** 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)). */
1027
1041
  externalId?: string | undefined;
@@ -1148,7 +1162,7 @@ export type CreateApprovalDecisionResponse = {
1148
1162
  externalId?: string | undefined;
1149
1163
  } | {
1150
1164
  kind: "Transaction";
1151
- /** The unsigned hex-encoded transaction. */
1165
+ /** The unsigned hex encoded transaction or JSON object for compatible networks */
1152
1166
  transaction: string | {};
1153
1167
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "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" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
1154
1168
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Concordium" | "Cosmos" | "Evm" | "Hedera" | "Icp" | "Iota" | "Kaspa" | "Near" | "Polymesh" | "Solana" | "Starknet" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
@@ -1439,6 +1453,8 @@ export type CreateApprovalDecisionResponse = {
1439
1453
  /** Token id. */
1440
1454
  tokenId?: string | undefined;
1441
1455
  };
1456
+ /** The failure reason, if any. Only present when status is Failed. */
1457
+ failureReason?: string | undefined;
1442
1458
  } | undefined;
1443
1459
  } | {
1444
1460
  kind: "Wallets:IncomingTransaction";
@@ -2426,6 +2442,8 @@ export type CreateApprovalDecisionResponse = {
2426
2442
  };
2427
2443
  /** Whether the initiator of the activity can participate in the approval. */
2428
2444
  initiatorCanApprove?: boolean | undefined;
2445
+ /** Whether service accounts can participate in the approval for this group. */
2446
+ serviceAccountsCanApprove?: boolean | undefined;
2429
2447
  }[];
2430
2448
  autoRejectTimeout?: (number | undefined) | null;
2431
2449
  } | {
@@ -2456,6 +2474,8 @@ export type CreateApprovalDecisionResponse = {
2456
2474
  };
2457
2475
  /** Whether the initiator of the activity can participate in the approval. */
2458
2476
  initiatorCanApprove?: boolean | undefined;
2477
+ /** Whether service accounts can participate in the approval for this group. */
2478
+ serviceAccountsCanApprove?: boolean | undefined;
2459
2479
  }[];
2460
2480
  autoRejectTimeout?: (number | undefined) | null;
2461
2481
  } | {
@@ -2490,6 +2510,8 @@ export type CreateApprovalDecisionResponse = {
2490
2510
  };
2491
2511
  /** Whether the initiator of the activity can participate in the approval. */
2492
2512
  initiatorCanApprove?: boolean | undefined;
2513
+ /** Whether service accounts can participate in the approval for this group. */
2514
+ serviceAccountsCanApprove?: boolean | undefined;
2493
2515
  }[];
2494
2516
  autoRejectTimeout?: (number | undefined) | null;
2495
2517
  } | {
@@ -2524,6 +2546,8 @@ export type CreateApprovalDecisionResponse = {
2524
2546
  };
2525
2547
  /** Whether the initiator of the activity can participate in the approval. */
2526
2548
  initiatorCanApprove?: boolean | undefined;
2549
+ /** Whether service accounts can participate in the approval for this group. */
2550
+ serviceAccountsCanApprove?: boolean | undefined;
2527
2551
  }[];
2528
2552
  autoRejectTimeout?: (number | undefined) | null;
2529
2553
  };
@@ -2556,6 +2580,8 @@ export type CreateApprovalDecisionResponse = {
2556
2580
  };
2557
2581
  /** Whether the initiator of the activity can participate in the approval. */
2558
2582
  initiatorCanApprove?: boolean | undefined;
2583
+ /** Whether service accounts can participate in the approval for this group. */
2584
+ serviceAccountsCanApprove?: boolean | undefined;
2559
2585
  }[];
2560
2586
  autoRejectTimeout?: (number | undefined) | null;
2561
2587
  } | {
@@ -2667,6 +2693,8 @@ export type CreateApprovalDecisionResponse = {
2667
2693
  };
2668
2694
  /** Whether the initiator of the activity can participate in the approval. */
2669
2695
  initiatorCanApprove?: boolean | undefined;
2696
+ /** Whether service accounts can participate in the approval for this group. */
2697
+ serviceAccountsCanApprove?: boolean | undefined;
2670
2698
  }[];
2671
2699
  autoRejectTimeout?: (number | undefined) | null;
2672
2700
  } | {
@@ -2732,6 +2760,7 @@ export type CreateApprovalDecisionResponse = {
2732
2760
  } | {
2733
2761
  kind: "Permissions:Modify";
2734
2762
  changeRequest: {
2763
+ /** ID of the change request. */
2735
2764
  id: string;
2736
2765
  /** The user who initiated the change request. */
2737
2766
  requester: {
@@ -2739,7 +2768,9 @@ export type CreateApprovalDecisionResponse = {
2739
2768
  tokenId?: string | undefined;
2740
2769
  appId?: string | undefined;
2741
2770
  };
2771
+ /** Current status of the change request. */
2742
2772
  status: "Applied" | "Failed" | "Pending" | "Rejected";
2773
+ /** ID of the entity being changed. */
2743
2774
  entityId: string;
2744
2775
  dateCreated: string;
2745
2776
  dateResolved?: string | undefined;
@@ -2747,17 +2778,24 @@ export type CreateApprovalDecisionResponse = {
2747
2778
  kind: "Permission";
2748
2779
  operationKind: "Update";
2749
2780
  body: {
2781
+ /** ID of the permission (also referred to as "role" in the dashboard). */
2750
2782
  id: string;
2783
+ /** Human-readable name of the permission (role). */
2751
2784
  name: string;
2785
+ /** Current status of the permission. */
2752
2786
  status: "Active";
2787
+ /** List of API operations this permission grants access to. See [Permissions List](https://docs.dfns.co/core-concepts/roles-and-permissions#list-of-permissions) for available operations. */
2753
2788
  operations: string[];
2789
+ /** Whether this permission is system-managed and cannot be modified. */
2754
2790
  isImmutable: boolean;
2791
+ /** Whether this permission has been archived (soft-deleted). */
2755
2792
  isArchived: boolean;
2756
2793
  };
2757
2794
  };
2758
2795
  } | {
2759
2796
  kind: "Permissions:Assign";
2760
2797
  changeRequest: {
2798
+ /** ID of the change request. */
2761
2799
  id: string;
2762
2800
  /** The user who initiated the change request. */
2763
2801
  requester: {
@@ -2765,7 +2803,9 @@ export type CreateApprovalDecisionResponse = {
2765
2803
  tokenId?: string | undefined;
2766
2804
  appId?: string | undefined;
2767
2805
  };
2806
+ /** Current status of the change request. */
2768
2807
  status: "Applied" | "Failed" | "Pending" | "Rejected";
2808
+ /** ID of the entity being changed. */
2769
2809
  entityId: string;
2770
2810
  dateCreated: string;
2771
2811
  dateResolved?: string | undefined;
@@ -2773,9 +2813,13 @@ export type CreateApprovalDecisionResponse = {
2773
2813
  kind: "Assignment";
2774
2814
  operationKind: "Create" | "Delete";
2775
2815
  body: {
2816
+ /** ID of the permission assignment. */
2776
2817
  id: string;
2818
+ /** ID of the permission (also referred to as "role" in the dashboard). */
2777
2819
  permissionId: string;
2820
+ /** ID of the identity the permission is assigned to. Can be a user ID, a service account ID, or a personal access token (PAT) ID. */
2778
2821
  identityId: string;
2822
+ /** Whether this assignment is system-managed and cannot be modified. */
2779
2823
  isImmutable: boolean;
2780
2824
  };
2781
2825
  };
@@ -2876,6 +2920,8 @@ export type CreatePolicyBody = {
2876
2920
  };
2877
2921
  /** Whether the initiator of the activity can participate in the approval. */
2878
2922
  initiatorCanApprove?: boolean | undefined;
2923
+ /** Whether service accounts can participate in the approval for this group. */
2924
+ serviceAccountsCanApprove?: boolean | undefined;
2879
2925
  }[];
2880
2926
  autoRejectTimeout?: (number | undefined) | null;
2881
2927
  } | {
@@ -2902,6 +2948,8 @@ export type CreatePolicyBody = {
2902
2948
  };
2903
2949
  /** Whether the initiator of the activity can participate in the approval. */
2904
2950
  initiatorCanApprove?: boolean | undefined;
2951
+ /** Whether service accounts can participate in the approval for this group. */
2952
+ serviceAccountsCanApprove?: boolean | undefined;
2905
2953
  }[];
2906
2954
  autoRejectTimeout?: (number | undefined) | null;
2907
2955
  } | {
@@ -2932,6 +2980,8 @@ export type CreatePolicyBody = {
2932
2980
  };
2933
2981
  /** Whether the initiator of the activity can participate in the approval. */
2934
2982
  initiatorCanApprove?: boolean | undefined;
2983
+ /** Whether service accounts can participate in the approval for this group. */
2984
+ serviceAccountsCanApprove?: boolean | undefined;
2935
2985
  }[];
2936
2986
  autoRejectTimeout?: (number | undefined) | null;
2937
2987
  } | {
@@ -2962,6 +3012,8 @@ export type CreatePolicyBody = {
2962
3012
  };
2963
3013
  /** Whether the initiator of the activity can participate in the approval. */
2964
3014
  initiatorCanApprove?: boolean | undefined;
3015
+ /** Whether service accounts can participate in the approval for this group. */
3016
+ serviceAccountsCanApprove?: boolean | undefined;
2965
3017
  }[];
2966
3018
  autoRejectTimeout?: (number | undefined) | null;
2967
3019
  };
@@ -2990,6 +3042,8 @@ export type CreatePolicyBody = {
2990
3042
  };
2991
3043
  /** Whether the initiator of the activity can participate in the approval. */
2992
3044
  initiatorCanApprove?: boolean | undefined;
3045
+ /** Whether service accounts can participate in the approval for this group. */
3046
+ serviceAccountsCanApprove?: boolean | undefined;
2993
3047
  }[];
2994
3048
  autoRejectTimeout?: (number | undefined) | null;
2995
3049
  } | {
@@ -3097,6 +3151,8 @@ export type CreatePolicyBody = {
3097
3151
  };
3098
3152
  /** Whether the initiator of the activity can participate in the approval. */
3099
3153
  initiatorCanApprove?: boolean | undefined;
3154
+ /** Whether service accounts can participate in the approval for this group. */
3155
+ serviceAccountsCanApprove?: boolean | undefined;
3100
3156
  }[];
3101
3157
  autoRejectTimeout?: (number | undefined) | null;
3102
3158
  } | {
@@ -3178,6 +3234,8 @@ export type CreatePolicyResponse = {
3178
3234
  };
3179
3235
  /** Whether the initiator of the activity can participate in the approval. */
3180
3236
  initiatorCanApprove?: boolean | undefined;
3237
+ /** Whether service accounts can participate in the approval for this group. */
3238
+ serviceAccountsCanApprove?: boolean | undefined;
3181
3239
  }[];
3182
3240
  autoRejectTimeout?: (number | undefined) | null;
3183
3241
  } | {
@@ -3208,6 +3266,8 @@ export type CreatePolicyResponse = {
3208
3266
  };
3209
3267
  /** Whether the initiator of the activity can participate in the approval. */
3210
3268
  initiatorCanApprove?: boolean | undefined;
3269
+ /** Whether service accounts can participate in the approval for this group. */
3270
+ serviceAccountsCanApprove?: boolean | undefined;
3211
3271
  }[];
3212
3272
  autoRejectTimeout?: (number | undefined) | null;
3213
3273
  } | {
@@ -3242,6 +3302,8 @@ export type CreatePolicyResponse = {
3242
3302
  };
3243
3303
  /** Whether the initiator of the activity can participate in the approval. */
3244
3304
  initiatorCanApprove?: boolean | undefined;
3305
+ /** Whether service accounts can participate in the approval for this group. */
3306
+ serviceAccountsCanApprove?: boolean | undefined;
3245
3307
  }[];
3246
3308
  autoRejectTimeout?: (number | undefined) | null;
3247
3309
  } | {
@@ -3276,6 +3338,8 @@ export type CreatePolicyResponse = {
3276
3338
  };
3277
3339
  /** Whether the initiator of the activity can participate in the approval. */
3278
3340
  initiatorCanApprove?: boolean | undefined;
3341
+ /** Whether service accounts can participate in the approval for this group. */
3342
+ serviceAccountsCanApprove?: boolean | undefined;
3279
3343
  }[];
3280
3344
  autoRejectTimeout?: (number | undefined) | null;
3281
3345
  };
@@ -3308,6 +3372,8 @@ export type CreatePolicyResponse = {
3308
3372
  };
3309
3373
  /** Whether the initiator of the activity can participate in the approval. */
3310
3374
  initiatorCanApprove?: boolean | undefined;
3375
+ /** Whether service accounts can participate in the approval for this group. */
3376
+ serviceAccountsCanApprove?: boolean | undefined;
3311
3377
  }[];
3312
3378
  autoRejectTimeout?: (number | undefined) | null;
3313
3379
  } | {
@@ -3419,6 +3485,8 @@ export type CreatePolicyResponse = {
3419
3485
  };
3420
3486
  /** Whether the initiator of the activity can participate in the approval. */
3421
3487
  initiatorCanApprove?: boolean | undefined;
3488
+ /** Whether service accounts can participate in the approval for this group. */
3489
+ serviceAccountsCanApprove?: boolean | undefined;
3422
3490
  }[];
3423
3491
  autoRejectTimeout?: (number | undefined) | null;
3424
3492
  } | {
@@ -3573,7 +3641,7 @@ export type GetApprovalResponse = {
3573
3641
  to: string;
3574
3642
  /** The amount of tokens to transfer in minimum denomination. */
3575
3643
  amount: string;
3576
- /** The memo. */
3644
+ /** The memo or destination tag. */
3577
3645
  memo?: (string | "") | undefined;
3578
3646
  /** 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)) */
3579
3647
  externalId?: string | undefined;
@@ -3792,7 +3860,7 @@ export type GetApprovalResponse = {
3792
3860
  serialNumber: string;
3793
3861
  /** The destination address. */
3794
3862
  to: string;
3795
- /** The memo. */
3863
+ /** The memo or destination tag. */
3796
3864
  memo?: (string | "") | undefined;
3797
3865
  /** 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)) */
3798
3866
  externalId?: string | undefined;
@@ -3850,8 +3918,8 @@ export type GetApprovalResponse = {
3850
3918
  to: string;
3851
3919
  /** The amount of tokens to transfer in minimum denomination. */
3852
3920
  amount: string;
3853
- /** The memo or destination tag for XRPL transactions. */
3854
- memo?: string | undefined;
3921
+ /** The memo or destination tag. */
3922
+ memo?: (string | "") | undefined;
3855
3923
  /** 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)) */
3856
3924
  externalId?: string | undefined;
3857
3925
  /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
@@ -3902,7 +3970,7 @@ export type GetApprovalResponse = {
3902
3970
  feeSponsorId?: string | undefined;
3903
3971
  } | {
3904
3972
  kind: "Snip2";
3905
- /** The Snip2 (ERC-20-like) contract address. */
3973
+ /** The SNIP-2 (ERC-20-like) contract address. */
3906
3974
  contract: string;
3907
3975
  /** The destination address. */
3908
3976
  to: string;
@@ -3928,7 +3996,7 @@ export type GetApprovalResponse = {
3928
3996
  feeSponsorId?: string | undefined;
3929
3997
  } | {
3930
3998
  kind: "Snip3";
3931
- /** The Snip3 (ERC-721) contract address. */
3999
+ /** The SNIP-3 (ERC-721) contract address. */
3932
4000
  contract: string;
3933
4001
  /** The destination address. */
3934
4002
  to: string;
@@ -3960,6 +4028,8 @@ export type GetApprovalResponse = {
3960
4028
  amount: string;
3961
4029
  /** The mint account address. */
3962
4030
  mint: string;
4031
+ /** The memo or destination tag. */
4032
+ memo?: (string | "") | undefined;
3963
4033
  /** If `true`, pay to create the associated token account for the recipient if it doesn't exist. Defaults to `false`. */
3964
4034
  createDestinationAccount?: boolean | undefined;
3965
4035
  /** 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)) */
@@ -4094,8 +4164,8 @@ export type GetApprovalResponse = {
4094
4164
  to: string;
4095
4165
  /** The amount of tokens to transfer in minimum denomination. */
4096
4166
  amount: string;
4097
- /** The memo or destination tag for XRPL transactions. */
4098
- memo?: string | undefined;
4167
+ /** The memo or destination tag. */
4168
+ memo?: (string | "") | undefined;
4099
4169
  /** 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)) */
4100
4170
  externalId?: string | undefined;
4101
4171
  /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
@@ -4172,7 +4242,7 @@ export type GetApprovalResponse = {
4172
4242
  };
4173
4243
  requestBody: {
4174
4244
  kind: "Transaction";
4175
- /** The unsigned hex encoded transaction. EVM transactions also accept JSON objects. */
4245
+ /** The unsigned hex encoded transaction or JSON transactions for compatible networks. */
4176
4246
  transaction: string | {};
4177
4247
  /** 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)). */
4178
4248
  externalId?: string | undefined;
@@ -4299,7 +4369,7 @@ export type GetApprovalResponse = {
4299
4369
  externalId?: string | undefined;
4300
4370
  } | {
4301
4371
  kind: "Transaction";
4302
- /** The unsigned hex-encoded transaction. */
4372
+ /** The unsigned hex encoded transaction or JSON object for compatible networks */
4303
4373
  transaction: string | {};
4304
4374
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "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" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
4305
4375
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Concordium" | "Cosmos" | "Evm" | "Hedera" | "Icp" | "Iota" | "Kaspa" | "Near" | "Polymesh" | "Solana" | "Starknet" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
@@ -4590,6 +4660,8 @@ export type GetApprovalResponse = {
4590
4660
  /** Token id. */
4591
4661
  tokenId?: string | undefined;
4592
4662
  };
4663
+ /** The failure reason, if any. Only present when status is Failed. */
4664
+ failureReason?: string | undefined;
4593
4665
  } | undefined;
4594
4666
  } | {
4595
4667
  kind: "Wallets:IncomingTransaction";
@@ -5577,6 +5649,8 @@ export type GetApprovalResponse = {
5577
5649
  };
5578
5650
  /** Whether the initiator of the activity can participate in the approval. */
5579
5651
  initiatorCanApprove?: boolean | undefined;
5652
+ /** Whether service accounts can participate in the approval for this group. */
5653
+ serviceAccountsCanApprove?: boolean | undefined;
5580
5654
  }[];
5581
5655
  autoRejectTimeout?: (number | undefined) | null;
5582
5656
  } | {
@@ -5607,6 +5681,8 @@ export type GetApprovalResponse = {
5607
5681
  };
5608
5682
  /** Whether the initiator of the activity can participate in the approval. */
5609
5683
  initiatorCanApprove?: boolean | undefined;
5684
+ /** Whether service accounts can participate in the approval for this group. */
5685
+ serviceAccountsCanApprove?: boolean | undefined;
5610
5686
  }[];
5611
5687
  autoRejectTimeout?: (number | undefined) | null;
5612
5688
  } | {
@@ -5641,6 +5717,8 @@ export type GetApprovalResponse = {
5641
5717
  };
5642
5718
  /** Whether the initiator of the activity can participate in the approval. */
5643
5719
  initiatorCanApprove?: boolean | undefined;
5720
+ /** Whether service accounts can participate in the approval for this group. */
5721
+ serviceAccountsCanApprove?: boolean | undefined;
5644
5722
  }[];
5645
5723
  autoRejectTimeout?: (number | undefined) | null;
5646
5724
  } | {
@@ -5675,6 +5753,8 @@ export type GetApprovalResponse = {
5675
5753
  };
5676
5754
  /** Whether the initiator of the activity can participate in the approval. */
5677
5755
  initiatorCanApprove?: boolean | undefined;
5756
+ /** Whether service accounts can participate in the approval for this group. */
5757
+ serviceAccountsCanApprove?: boolean | undefined;
5678
5758
  }[];
5679
5759
  autoRejectTimeout?: (number | undefined) | null;
5680
5760
  };
@@ -5707,6 +5787,8 @@ export type GetApprovalResponse = {
5707
5787
  };
5708
5788
  /** Whether the initiator of the activity can participate in the approval. */
5709
5789
  initiatorCanApprove?: boolean | undefined;
5790
+ /** Whether service accounts can participate in the approval for this group. */
5791
+ serviceAccountsCanApprove?: boolean | undefined;
5710
5792
  }[];
5711
5793
  autoRejectTimeout?: (number | undefined) | null;
5712
5794
  } | {
@@ -5818,6 +5900,8 @@ export type GetApprovalResponse = {
5818
5900
  };
5819
5901
  /** Whether the initiator of the activity can participate in the approval. */
5820
5902
  initiatorCanApprove?: boolean | undefined;
5903
+ /** Whether service accounts can participate in the approval for this group. */
5904
+ serviceAccountsCanApprove?: boolean | undefined;
5821
5905
  }[];
5822
5906
  autoRejectTimeout?: (number | undefined) | null;
5823
5907
  } | {
@@ -5883,6 +5967,7 @@ export type GetApprovalResponse = {
5883
5967
  } | {
5884
5968
  kind: "Permissions:Modify";
5885
5969
  changeRequest: {
5970
+ /** ID of the change request. */
5886
5971
  id: string;
5887
5972
  /** The user who initiated the change request. */
5888
5973
  requester: {
@@ -5890,7 +5975,9 @@ export type GetApprovalResponse = {
5890
5975
  tokenId?: string | undefined;
5891
5976
  appId?: string | undefined;
5892
5977
  };
5978
+ /** Current status of the change request. */
5893
5979
  status: "Applied" | "Failed" | "Pending" | "Rejected";
5980
+ /** ID of the entity being changed. */
5894
5981
  entityId: string;
5895
5982
  dateCreated: string;
5896
5983
  dateResolved?: string | undefined;
@@ -5898,17 +5985,24 @@ export type GetApprovalResponse = {
5898
5985
  kind: "Permission";
5899
5986
  operationKind: "Update";
5900
5987
  body: {
5988
+ /** ID of the permission (also referred to as "role" in the dashboard). */
5901
5989
  id: string;
5990
+ /** Human-readable name of the permission (role). */
5902
5991
  name: string;
5992
+ /** Current status of the permission. */
5903
5993
  status: "Active";
5994
+ /** List of API operations this permission grants access to. See [Permissions List](https://docs.dfns.co/core-concepts/roles-and-permissions#list-of-permissions) for available operations. */
5904
5995
  operations: string[];
5996
+ /** Whether this permission is system-managed and cannot be modified. */
5905
5997
  isImmutable: boolean;
5998
+ /** Whether this permission has been archived (soft-deleted). */
5906
5999
  isArchived: boolean;
5907
6000
  };
5908
6001
  };
5909
6002
  } | {
5910
6003
  kind: "Permissions:Assign";
5911
6004
  changeRequest: {
6005
+ /** ID of the change request. */
5912
6006
  id: string;
5913
6007
  /** The user who initiated the change request. */
5914
6008
  requester: {
@@ -5916,7 +6010,9 @@ export type GetApprovalResponse = {
5916
6010
  tokenId?: string | undefined;
5917
6011
  appId?: string | undefined;
5918
6012
  };
6013
+ /** Current status of the change request. */
5919
6014
  status: "Applied" | "Failed" | "Pending" | "Rejected";
6015
+ /** ID of the entity being changed. */
5920
6016
  entityId: string;
5921
6017
  dateCreated: string;
5922
6018
  dateResolved?: string | undefined;
@@ -5924,9 +6020,13 @@ export type GetApprovalResponse = {
5924
6020
  kind: "Assignment";
5925
6021
  operationKind: "Create" | "Delete";
5926
6022
  body: {
6023
+ /** ID of the permission assignment. */
5927
6024
  id: string;
6025
+ /** ID of the permission (also referred to as "role" in the dashboard). */
5928
6026
  permissionId: string;
6027
+ /** ID of the identity the permission is assigned to. Can be a user ID, a service account ID, or a personal access token (PAT) ID. */
5929
6028
  identityId: string;
6029
+ /** Whether this assignment is system-managed and cannot be modified. */
5930
6030
  isImmutable: boolean;
5931
6031
  };
5932
6032
  };
@@ -6032,6 +6132,8 @@ export type GetPolicyResponse = ({
6032
6132
  };
6033
6133
  /** Whether the initiator of the activity can participate in the approval. */
6034
6134
  initiatorCanApprove?: boolean | undefined;
6135
+ /** Whether service accounts can participate in the approval for this group. */
6136
+ serviceAccountsCanApprove?: boolean | undefined;
6035
6137
  }[];
6036
6138
  autoRejectTimeout?: (number | undefined) | null;
6037
6139
  } | {
@@ -6062,6 +6164,8 @@ export type GetPolicyResponse = ({
6062
6164
  };
6063
6165
  /** Whether the initiator of the activity can participate in the approval. */
6064
6166
  initiatorCanApprove?: boolean | undefined;
6167
+ /** Whether service accounts can participate in the approval for this group. */
6168
+ serviceAccountsCanApprove?: boolean | undefined;
6065
6169
  }[];
6066
6170
  autoRejectTimeout?: (number | undefined) | null;
6067
6171
  } | {
@@ -6096,6 +6200,8 @@ export type GetPolicyResponse = ({
6096
6200
  };
6097
6201
  /** Whether the initiator of the activity can participate in the approval. */
6098
6202
  initiatorCanApprove?: boolean | undefined;
6203
+ /** Whether service accounts can participate in the approval for this group. */
6204
+ serviceAccountsCanApprove?: boolean | undefined;
6099
6205
  }[];
6100
6206
  autoRejectTimeout?: (number | undefined) | null;
6101
6207
  } | {
@@ -6130,6 +6236,8 @@ export type GetPolicyResponse = ({
6130
6236
  };
6131
6237
  /** Whether the initiator of the activity can participate in the approval. */
6132
6238
  initiatorCanApprove?: boolean | undefined;
6239
+ /** Whether service accounts can participate in the approval for this group. */
6240
+ serviceAccountsCanApprove?: boolean | undefined;
6133
6241
  }[];
6134
6242
  autoRejectTimeout?: (number | undefined) | null;
6135
6243
  };
@@ -6162,6 +6270,8 @@ export type GetPolicyResponse = ({
6162
6270
  };
6163
6271
  /** Whether the initiator of the activity can participate in the approval. */
6164
6272
  initiatorCanApprove?: boolean | undefined;
6273
+ /** Whether service accounts can participate in the approval for this group. */
6274
+ serviceAccountsCanApprove?: boolean | undefined;
6165
6275
  }[];
6166
6276
  autoRejectTimeout?: (number | undefined) | null;
6167
6277
  } | {
@@ -6273,6 +6383,8 @@ export type GetPolicyResponse = ({
6273
6383
  };
6274
6384
  /** Whether the initiator of the activity can participate in the approval. */
6275
6385
  initiatorCanApprove?: boolean | undefined;
6386
+ /** Whether service accounts can participate in the approval for this group. */
6387
+ serviceAccountsCanApprove?: boolean | undefined;
6276
6388
  }[];
6277
6389
  autoRejectTimeout?: (number | undefined) | null;
6278
6390
  } | {
@@ -6373,6 +6485,8 @@ export type GetPolicyResponse = ({
6373
6485
  };
6374
6486
  /** Whether the initiator of the activity can participate in the approval. */
6375
6487
  initiatorCanApprove?: boolean | undefined;
6488
+ /** Whether service accounts can participate in the approval for this group. */
6489
+ serviceAccountsCanApprove?: boolean | undefined;
6376
6490
  }[];
6377
6491
  autoRejectTimeout?: (number | undefined) | null;
6378
6492
  } | {
@@ -6403,6 +6517,8 @@ export type GetPolicyResponse = ({
6403
6517
  };
6404
6518
  /** Whether the initiator of the activity can participate in the approval. */
6405
6519
  initiatorCanApprove?: boolean | undefined;
6520
+ /** Whether service accounts can participate in the approval for this group. */
6521
+ serviceAccountsCanApprove?: boolean | undefined;
6406
6522
  }[];
6407
6523
  autoRejectTimeout?: (number | undefined) | null;
6408
6524
  } | {
@@ -6437,6 +6553,8 @@ export type GetPolicyResponse = ({
6437
6553
  };
6438
6554
  /** Whether the initiator of the activity can participate in the approval. */
6439
6555
  initiatorCanApprove?: boolean | undefined;
6556
+ /** Whether service accounts can participate in the approval for this group. */
6557
+ serviceAccountsCanApprove?: boolean | undefined;
6440
6558
  }[];
6441
6559
  autoRejectTimeout?: (number | undefined) | null;
6442
6560
  } | {
@@ -6471,6 +6589,8 @@ export type GetPolicyResponse = ({
6471
6589
  };
6472
6590
  /** Whether the initiator of the activity can participate in the approval. */
6473
6591
  initiatorCanApprove?: boolean | undefined;
6592
+ /** Whether service accounts can participate in the approval for this group. */
6593
+ serviceAccountsCanApprove?: boolean | undefined;
6474
6594
  }[];
6475
6595
  autoRejectTimeout?: (number | undefined) | null;
6476
6596
  };
@@ -6503,6 +6623,8 @@ export type GetPolicyResponse = ({
6503
6623
  };
6504
6624
  /** Whether the initiator of the activity can participate in the approval. */
6505
6625
  initiatorCanApprove?: boolean | undefined;
6626
+ /** Whether service accounts can participate in the approval for this group. */
6627
+ serviceAccountsCanApprove?: boolean | undefined;
6506
6628
  }[];
6507
6629
  autoRejectTimeout?: (number | undefined) | null;
6508
6630
  } | {
@@ -6614,6 +6736,8 @@ export type GetPolicyResponse = ({
6614
6736
  };
6615
6737
  /** Whether the initiator of the activity can participate in the approval. */
6616
6738
  initiatorCanApprove?: boolean | undefined;
6739
+ /** Whether service accounts can participate in the approval for this group. */
6740
+ serviceAccountsCanApprove?: boolean | undefined;
6617
6741
  }[];
6618
6742
  autoRejectTimeout?: (number | undefined) | null;
6619
6743
  } | {
@@ -6773,7 +6897,7 @@ export type ListApprovalsResponse = {
6773
6897
  to: string;
6774
6898
  /** The amount of tokens to transfer in minimum denomination. */
6775
6899
  amount: string;
6776
- /** The memo. */
6900
+ /** The memo or destination tag. */
6777
6901
  memo?: (string | "") | undefined;
6778
6902
  /** 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)) */
6779
6903
  externalId?: string | undefined;
@@ -6992,7 +7116,7 @@ export type ListApprovalsResponse = {
6992
7116
  serialNumber: string;
6993
7117
  /** The destination address. */
6994
7118
  to: string;
6995
- /** The memo. */
7119
+ /** The memo or destination tag. */
6996
7120
  memo?: (string | "") | undefined;
6997
7121
  /** 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)) */
6998
7122
  externalId?: string | undefined;
@@ -7050,8 +7174,8 @@ export type ListApprovalsResponse = {
7050
7174
  to: string;
7051
7175
  /** The amount of tokens to transfer in minimum denomination. */
7052
7176
  amount: string;
7053
- /** The memo or destination tag for XRPL transactions. */
7054
- memo?: string | undefined;
7177
+ /** The memo or destination tag. */
7178
+ memo?: (string | "") | undefined;
7055
7179
  /** 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)) */
7056
7180
  externalId?: string | undefined;
7057
7181
  /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
@@ -7102,7 +7226,7 @@ export type ListApprovalsResponse = {
7102
7226
  feeSponsorId?: string | undefined;
7103
7227
  } | {
7104
7228
  kind: "Snip2";
7105
- /** The Snip2 (ERC-20-like) contract address. */
7229
+ /** The SNIP-2 (ERC-20-like) contract address. */
7106
7230
  contract: string;
7107
7231
  /** The destination address. */
7108
7232
  to: string;
@@ -7128,7 +7252,7 @@ export type ListApprovalsResponse = {
7128
7252
  feeSponsorId?: string | undefined;
7129
7253
  } | {
7130
7254
  kind: "Snip3";
7131
- /** The Snip3 (ERC-721) contract address. */
7255
+ /** The SNIP-3 (ERC-721) contract address. */
7132
7256
  contract: string;
7133
7257
  /** The destination address. */
7134
7258
  to: string;
@@ -7160,6 +7284,8 @@ export type ListApprovalsResponse = {
7160
7284
  amount: string;
7161
7285
  /** The mint account address. */
7162
7286
  mint: string;
7287
+ /** The memo or destination tag. */
7288
+ memo?: (string | "") | undefined;
7163
7289
  /** If `true`, pay to create the associated token account for the recipient if it doesn't exist. Defaults to `false`. */
7164
7290
  createDestinationAccount?: boolean | undefined;
7165
7291
  /** 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)) */
@@ -7294,8 +7420,8 @@ export type ListApprovalsResponse = {
7294
7420
  to: string;
7295
7421
  /** The amount of tokens to transfer in minimum denomination. */
7296
7422
  amount: string;
7297
- /** The memo or destination tag for XRPL transactions. */
7298
- memo?: string | undefined;
7423
+ /** The memo or destination tag. */
7424
+ memo?: (string | "") | undefined;
7299
7425
  /** 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)) */
7300
7426
  externalId?: string | undefined;
7301
7427
  /** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
@@ -7372,7 +7498,7 @@ export type ListApprovalsResponse = {
7372
7498
  };
7373
7499
  requestBody: {
7374
7500
  kind: "Transaction";
7375
- /** The unsigned hex encoded transaction. EVM transactions also accept JSON objects. */
7501
+ /** The unsigned hex encoded transaction or JSON transactions for compatible networks. */
7376
7502
  transaction: string | {};
7377
7503
  /** 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)). */
7378
7504
  externalId?: string | undefined;
@@ -7499,7 +7625,7 @@ export type ListApprovalsResponse = {
7499
7625
  externalId?: string | undefined;
7500
7626
  } | {
7501
7627
  kind: "Transaction";
7502
- /** The unsigned hex-encoded transaction. */
7628
+ /** The unsigned hex encoded transaction or JSON object for compatible networks */
7503
7629
  transaction: string | {};
7504
7630
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "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" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
7505
7631
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Concordium" | "Cosmos" | "Evm" | "Hedera" | "Icp" | "Iota" | "Kaspa" | "Near" | "Polymesh" | "Solana" | "Starknet" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
@@ -7790,6 +7916,8 @@ export type ListApprovalsResponse = {
7790
7916
  /** Token id. */
7791
7917
  tokenId?: string | undefined;
7792
7918
  };
7919
+ /** The failure reason, if any. Only present when status is Failed. */
7920
+ failureReason?: string | undefined;
7793
7921
  } | undefined;
7794
7922
  } | {
7795
7923
  kind: "Wallets:IncomingTransaction";
@@ -8777,6 +8905,8 @@ export type ListApprovalsResponse = {
8777
8905
  };
8778
8906
  /** Whether the initiator of the activity can participate in the approval. */
8779
8907
  initiatorCanApprove?: boolean | undefined;
8908
+ /** Whether service accounts can participate in the approval for this group. */
8909
+ serviceAccountsCanApprove?: boolean | undefined;
8780
8910
  }[];
8781
8911
  autoRejectTimeout?: (number | undefined) | null;
8782
8912
  } | {
@@ -8807,6 +8937,8 @@ export type ListApprovalsResponse = {
8807
8937
  };
8808
8938
  /** Whether the initiator of the activity can participate in the approval. */
8809
8939
  initiatorCanApprove?: boolean | undefined;
8940
+ /** Whether service accounts can participate in the approval for this group. */
8941
+ serviceAccountsCanApprove?: boolean | undefined;
8810
8942
  }[];
8811
8943
  autoRejectTimeout?: (number | undefined) | null;
8812
8944
  } | {
@@ -8841,6 +8973,8 @@ export type ListApprovalsResponse = {
8841
8973
  };
8842
8974
  /** Whether the initiator of the activity can participate in the approval. */
8843
8975
  initiatorCanApprove?: boolean | undefined;
8976
+ /** Whether service accounts can participate in the approval for this group. */
8977
+ serviceAccountsCanApprove?: boolean | undefined;
8844
8978
  }[];
8845
8979
  autoRejectTimeout?: (number | undefined) | null;
8846
8980
  } | {
@@ -8875,6 +9009,8 @@ export type ListApprovalsResponse = {
8875
9009
  };
8876
9010
  /** Whether the initiator of the activity can participate in the approval. */
8877
9011
  initiatorCanApprove?: boolean | undefined;
9012
+ /** Whether service accounts can participate in the approval for this group. */
9013
+ serviceAccountsCanApprove?: boolean | undefined;
8878
9014
  }[];
8879
9015
  autoRejectTimeout?: (number | undefined) | null;
8880
9016
  };
@@ -8907,6 +9043,8 @@ export type ListApprovalsResponse = {
8907
9043
  };
8908
9044
  /** Whether the initiator of the activity can participate in the approval. */
8909
9045
  initiatorCanApprove?: boolean | undefined;
9046
+ /** Whether service accounts can participate in the approval for this group. */
9047
+ serviceAccountsCanApprove?: boolean | undefined;
8910
9048
  }[];
8911
9049
  autoRejectTimeout?: (number | undefined) | null;
8912
9050
  } | {
@@ -9018,6 +9156,8 @@ export type ListApprovalsResponse = {
9018
9156
  };
9019
9157
  /** Whether the initiator of the activity can participate in the approval. */
9020
9158
  initiatorCanApprove?: boolean | undefined;
9159
+ /** Whether service accounts can participate in the approval for this group. */
9160
+ serviceAccountsCanApprove?: boolean | undefined;
9021
9161
  }[];
9022
9162
  autoRejectTimeout?: (number | undefined) | null;
9023
9163
  } | {
@@ -9083,6 +9223,7 @@ export type ListApprovalsResponse = {
9083
9223
  } | {
9084
9224
  kind: "Permissions:Modify";
9085
9225
  changeRequest: {
9226
+ /** ID of the change request. */
9086
9227
  id: string;
9087
9228
  /** The user who initiated the change request. */
9088
9229
  requester: {
@@ -9090,7 +9231,9 @@ export type ListApprovalsResponse = {
9090
9231
  tokenId?: string | undefined;
9091
9232
  appId?: string | undefined;
9092
9233
  };
9234
+ /** Current status of the change request. */
9093
9235
  status: "Applied" | "Failed" | "Pending" | "Rejected";
9236
+ /** ID of the entity being changed. */
9094
9237
  entityId: string;
9095
9238
  dateCreated: string;
9096
9239
  dateResolved?: string | undefined;
@@ -9098,17 +9241,24 @@ export type ListApprovalsResponse = {
9098
9241
  kind: "Permission";
9099
9242
  operationKind: "Update";
9100
9243
  body: {
9244
+ /** ID of the permission (also referred to as "role" in the dashboard). */
9101
9245
  id: string;
9246
+ /** Human-readable name of the permission (role). */
9102
9247
  name: string;
9248
+ /** Current status of the permission. */
9103
9249
  status: "Active";
9250
+ /** List of API operations this permission grants access to. See [Permissions List](https://docs.dfns.co/core-concepts/roles-and-permissions#list-of-permissions) for available operations. */
9104
9251
  operations: string[];
9252
+ /** Whether this permission is system-managed and cannot be modified. */
9105
9253
  isImmutable: boolean;
9254
+ /** Whether this permission has been archived (soft-deleted). */
9106
9255
  isArchived: boolean;
9107
9256
  };
9108
9257
  };
9109
9258
  } | {
9110
9259
  kind: "Permissions:Assign";
9111
9260
  changeRequest: {
9261
+ /** ID of the change request. */
9112
9262
  id: string;
9113
9263
  /** The user who initiated the change request. */
9114
9264
  requester: {
@@ -9116,7 +9266,9 @@ export type ListApprovalsResponse = {
9116
9266
  tokenId?: string | undefined;
9117
9267
  appId?: string | undefined;
9118
9268
  };
9269
+ /** Current status of the change request. */
9119
9270
  status: "Applied" | "Failed" | "Pending" | "Rejected";
9271
+ /** ID of the entity being changed. */
9120
9272
  entityId: string;
9121
9273
  dateCreated: string;
9122
9274
  dateResolved?: string | undefined;
@@ -9124,9 +9276,13 @@ export type ListApprovalsResponse = {
9124
9276
  kind: "Assignment";
9125
9277
  operationKind: "Create" | "Delete";
9126
9278
  body: {
9279
+ /** ID of the permission assignment. */
9127
9280
  id: string;
9281
+ /** ID of the permission (also referred to as "role" in the dashboard). */
9128
9282
  permissionId: string;
9283
+ /** ID of the identity the permission is assigned to. Can be a user ID, a service account ID, or a personal access token (PAT) ID. */
9129
9284
  identityId: string;
9285
+ /** Whether this assignment is system-managed and cannot be modified. */
9130
9286
  isImmutable: boolean;
9131
9287
  };
9132
9288
  };
@@ -9239,6 +9395,8 @@ export type ListPoliciesResponse = {
9239
9395
  };
9240
9396
  /** Whether the initiator of the activity can participate in the approval. */
9241
9397
  initiatorCanApprove?: boolean | undefined;
9398
+ /** Whether service accounts can participate in the approval for this group. */
9399
+ serviceAccountsCanApprove?: boolean | undefined;
9242
9400
  }[];
9243
9401
  autoRejectTimeout?: (number | undefined) | null;
9244
9402
  } | {
@@ -9269,6 +9427,8 @@ export type ListPoliciesResponse = {
9269
9427
  };
9270
9428
  /** Whether the initiator of the activity can participate in the approval. */
9271
9429
  initiatorCanApprove?: boolean | undefined;
9430
+ /** Whether service accounts can participate in the approval for this group. */
9431
+ serviceAccountsCanApprove?: boolean | undefined;
9272
9432
  }[];
9273
9433
  autoRejectTimeout?: (number | undefined) | null;
9274
9434
  } | {
@@ -9303,6 +9463,8 @@ export type ListPoliciesResponse = {
9303
9463
  };
9304
9464
  /** Whether the initiator of the activity can participate in the approval. */
9305
9465
  initiatorCanApprove?: boolean | undefined;
9466
+ /** Whether service accounts can participate in the approval for this group. */
9467
+ serviceAccountsCanApprove?: boolean | undefined;
9306
9468
  }[];
9307
9469
  autoRejectTimeout?: (number | undefined) | null;
9308
9470
  } | {
@@ -9337,6 +9499,8 @@ export type ListPoliciesResponse = {
9337
9499
  };
9338
9500
  /** Whether the initiator of the activity can participate in the approval. */
9339
9501
  initiatorCanApprove?: boolean | undefined;
9502
+ /** Whether service accounts can participate in the approval for this group. */
9503
+ serviceAccountsCanApprove?: boolean | undefined;
9340
9504
  }[];
9341
9505
  autoRejectTimeout?: (number | undefined) | null;
9342
9506
  };
@@ -9369,6 +9533,8 @@ export type ListPoliciesResponse = {
9369
9533
  };
9370
9534
  /** Whether the initiator of the activity can participate in the approval. */
9371
9535
  initiatorCanApprove?: boolean | undefined;
9536
+ /** Whether service accounts can participate in the approval for this group. */
9537
+ serviceAccountsCanApprove?: boolean | undefined;
9372
9538
  }[];
9373
9539
  autoRejectTimeout?: (number | undefined) | null;
9374
9540
  } | {
@@ -9480,6 +9646,8 @@ export type ListPoliciesResponse = {
9480
9646
  };
9481
9647
  /** Whether the initiator of the activity can participate in the approval. */
9482
9648
  initiatorCanApprove?: boolean | undefined;
9649
+ /** Whether service accounts can participate in the approval for this group. */
9650
+ serviceAccountsCanApprove?: boolean | undefined;
9483
9651
  }[];
9484
9652
  autoRejectTimeout?: (number | undefined) | null;
9485
9653
  } | {
@@ -9580,6 +9748,8 @@ export type ListPoliciesResponse = {
9580
9748
  };
9581
9749
  /** Whether the initiator of the activity can participate in the approval. */
9582
9750
  initiatorCanApprove?: boolean | undefined;
9751
+ /** Whether service accounts can participate in the approval for this group. */
9752
+ serviceAccountsCanApprove?: boolean | undefined;
9583
9753
  }[];
9584
9754
  autoRejectTimeout?: (number | undefined) | null;
9585
9755
  } | {
@@ -9610,6 +9780,8 @@ export type ListPoliciesResponse = {
9610
9780
  };
9611
9781
  /** Whether the initiator of the activity can participate in the approval. */
9612
9782
  initiatorCanApprove?: boolean | undefined;
9783
+ /** Whether service accounts can participate in the approval for this group. */
9784
+ serviceAccountsCanApprove?: boolean | undefined;
9613
9785
  }[];
9614
9786
  autoRejectTimeout?: (number | undefined) | null;
9615
9787
  } | {
@@ -9644,6 +9816,8 @@ export type ListPoliciesResponse = {
9644
9816
  };
9645
9817
  /** Whether the initiator of the activity can participate in the approval. */
9646
9818
  initiatorCanApprove?: boolean | undefined;
9819
+ /** Whether service accounts can participate in the approval for this group. */
9820
+ serviceAccountsCanApprove?: boolean | undefined;
9647
9821
  }[];
9648
9822
  autoRejectTimeout?: (number | undefined) | null;
9649
9823
  } | {
@@ -9678,6 +9852,8 @@ export type ListPoliciesResponse = {
9678
9852
  };
9679
9853
  /** Whether the initiator of the activity can participate in the approval. */
9680
9854
  initiatorCanApprove?: boolean | undefined;
9855
+ /** Whether service accounts can participate in the approval for this group. */
9856
+ serviceAccountsCanApprove?: boolean | undefined;
9681
9857
  }[];
9682
9858
  autoRejectTimeout?: (number | undefined) | null;
9683
9859
  };
@@ -9710,6 +9886,8 @@ export type ListPoliciesResponse = {
9710
9886
  };
9711
9887
  /** Whether the initiator of the activity can participate in the approval. */
9712
9888
  initiatorCanApprove?: boolean | undefined;
9889
+ /** Whether service accounts can participate in the approval for this group. */
9890
+ serviceAccountsCanApprove?: boolean | undefined;
9713
9891
  }[];
9714
9892
  autoRejectTimeout?: (number | undefined) | null;
9715
9893
  } | {
@@ -9821,6 +9999,8 @@ export type ListPoliciesResponse = {
9821
9999
  };
9822
10000
  /** Whether the initiator of the activity can participate in the approval. */
9823
10001
  initiatorCanApprove?: boolean | undefined;
10002
+ /** Whether service accounts can participate in the approval for this group. */
10003
+ serviceAccountsCanApprove?: boolean | undefined;
9824
10004
  }[];
9825
10005
  autoRejectTimeout?: (number | undefined) | null;
9826
10006
  } | {
@@ -9909,6 +10089,8 @@ export type UpdatePolicyBody = {
9909
10089
  };
9910
10090
  /** Whether the initiator of the activity can participate in the approval. */
9911
10091
  initiatorCanApprove?: boolean | undefined;
10092
+ /** Whether service accounts can participate in the approval for this group. */
10093
+ serviceAccountsCanApprove?: boolean | undefined;
9912
10094
  }[];
9913
10095
  autoRejectTimeout?: (number | undefined) | null;
9914
10096
  } | {
@@ -9935,6 +10117,8 @@ export type UpdatePolicyBody = {
9935
10117
  };
9936
10118
  /** Whether the initiator of the activity can participate in the approval. */
9937
10119
  initiatorCanApprove?: boolean | undefined;
10120
+ /** Whether service accounts can participate in the approval for this group. */
10121
+ serviceAccountsCanApprove?: boolean | undefined;
9938
10122
  }[];
9939
10123
  autoRejectTimeout?: (number | undefined) | null;
9940
10124
  } | {
@@ -9965,6 +10149,8 @@ export type UpdatePolicyBody = {
9965
10149
  };
9966
10150
  /** Whether the initiator of the activity can participate in the approval. */
9967
10151
  initiatorCanApprove?: boolean | undefined;
10152
+ /** Whether service accounts can participate in the approval for this group. */
10153
+ serviceAccountsCanApprove?: boolean | undefined;
9968
10154
  }[];
9969
10155
  autoRejectTimeout?: (number | undefined) | null;
9970
10156
  } | {
@@ -9995,6 +10181,8 @@ export type UpdatePolicyBody = {
9995
10181
  };
9996
10182
  /** Whether the initiator of the activity can participate in the approval. */
9997
10183
  initiatorCanApprove?: boolean | undefined;
10184
+ /** Whether service accounts can participate in the approval for this group. */
10185
+ serviceAccountsCanApprove?: boolean | undefined;
9998
10186
  }[];
9999
10187
  autoRejectTimeout?: (number | undefined) | null;
10000
10188
  };
@@ -10023,6 +10211,8 @@ export type UpdatePolicyBody = {
10023
10211
  };
10024
10212
  /** Whether the initiator of the activity can participate in the approval. */
10025
10213
  initiatorCanApprove?: boolean | undefined;
10214
+ /** Whether service accounts can participate in the approval for this group. */
10215
+ serviceAccountsCanApprove?: boolean | undefined;
10026
10216
  }[];
10027
10217
  autoRejectTimeout?: (number | undefined) | null;
10028
10218
  } | {
@@ -10130,6 +10320,8 @@ export type UpdatePolicyBody = {
10130
10320
  };
10131
10321
  /** Whether the initiator of the activity can participate in the approval. */
10132
10322
  initiatorCanApprove?: boolean | undefined;
10323
+ /** Whether service accounts can participate in the approval for this group. */
10324
+ serviceAccountsCanApprove?: boolean | undefined;
10133
10325
  }[];
10134
10326
  autoRejectTimeout?: (number | undefined) | null;
10135
10327
  } | {
@@ -10214,6 +10406,8 @@ export type UpdatePolicyResponse = {
10214
10406
  };
10215
10407
  /** Whether the initiator of the activity can participate in the approval. */
10216
10408
  initiatorCanApprove?: boolean | undefined;
10409
+ /** Whether service accounts can participate in the approval for this group. */
10410
+ serviceAccountsCanApprove?: boolean | undefined;
10217
10411
  }[];
10218
10412
  autoRejectTimeout?: (number | undefined) | null;
10219
10413
  } | {
@@ -10244,6 +10438,8 @@ export type UpdatePolicyResponse = {
10244
10438
  };
10245
10439
  /** Whether the initiator of the activity can participate in the approval. */
10246
10440
  initiatorCanApprove?: boolean | undefined;
10441
+ /** Whether service accounts can participate in the approval for this group. */
10442
+ serviceAccountsCanApprove?: boolean | undefined;
10247
10443
  }[];
10248
10444
  autoRejectTimeout?: (number | undefined) | null;
10249
10445
  } | {
@@ -10278,6 +10474,8 @@ export type UpdatePolicyResponse = {
10278
10474
  };
10279
10475
  /** Whether the initiator of the activity can participate in the approval. */
10280
10476
  initiatorCanApprove?: boolean | undefined;
10477
+ /** Whether service accounts can participate in the approval for this group. */
10478
+ serviceAccountsCanApprove?: boolean | undefined;
10281
10479
  }[];
10282
10480
  autoRejectTimeout?: (number | undefined) | null;
10283
10481
  } | {
@@ -10312,6 +10510,8 @@ export type UpdatePolicyResponse = {
10312
10510
  };
10313
10511
  /** Whether the initiator of the activity can participate in the approval. */
10314
10512
  initiatorCanApprove?: boolean | undefined;
10513
+ /** Whether service accounts can participate in the approval for this group. */
10514
+ serviceAccountsCanApprove?: boolean | undefined;
10315
10515
  }[];
10316
10516
  autoRejectTimeout?: (number | undefined) | null;
10317
10517
  };
@@ -10344,6 +10544,8 @@ export type UpdatePolicyResponse = {
10344
10544
  };
10345
10545
  /** Whether the initiator of the activity can participate in the approval. */
10346
10546
  initiatorCanApprove?: boolean | undefined;
10547
+ /** Whether service accounts can participate in the approval for this group. */
10548
+ serviceAccountsCanApprove?: boolean | undefined;
10347
10549
  }[];
10348
10550
  autoRejectTimeout?: (number | undefined) | null;
10349
10551
  } | {
@@ -10455,6 +10657,8 @@ export type UpdatePolicyResponse = {
10455
10657
  };
10456
10658
  /** Whether the initiator of the activity can participate in the approval. */
10457
10659
  initiatorCanApprove?: boolean | undefined;
10660
+ /** Whether service accounts can participate in the approval for this group. */
10661
+ serviceAccountsCanApprove?: boolean | undefined;
10458
10662
  }[];
10459
10663
  autoRejectTimeout?: (number | undefined) | null;
10460
10664
  } | {