@privy-io/api-types 0.16.0 → 0.17.0

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 (112) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/client.d.mts +14 -17
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +14 -17
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/client-auth.d.mts +12 -4
  12. package/resources/client-auth.d.mts.map +1 -1
  13. package/resources/client-auth.d.ts +12 -4
  14. package/resources/client-auth.d.ts.map +1 -1
  15. package/resources/embedded-wallets.d.mts +6 -0
  16. package/resources/embedded-wallets.d.mts.map +1 -1
  17. package/resources/embedded-wallets.d.ts +6 -0
  18. package/resources/embedded-wallets.d.ts.map +1 -1
  19. package/resources/index.d.mts +7 -8
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +7 -8
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +1 -3
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +0 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/kraken-embed.d.mts +110 -17
  28. package/resources/kraken-embed.d.mts.map +1 -1
  29. package/resources/kraken-embed.d.ts +110 -17
  30. package/resources/kraken-embed.d.ts.map +1 -1
  31. package/resources/policies.d.mts +48 -8
  32. package/resources/policies.d.mts.map +1 -1
  33. package/resources/policies.d.ts +48 -8
  34. package/resources/policies.d.ts.map +1 -1
  35. package/resources/transactions.d.mts +9 -2
  36. package/resources/transactions.d.mts.map +1 -1
  37. package/resources/transactions.d.ts +9 -2
  38. package/resources/transactions.d.ts.map +1 -1
  39. package/resources/users.d.mts +33 -7
  40. package/resources/users.d.mts.map +1 -1
  41. package/resources/users.d.ts +33 -7
  42. package/resources/users.d.ts.map +1 -1
  43. package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +257 -55
  44. package/resources/wallets/actions.d.mts.map +1 -0
  45. package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +257 -55
  46. package/resources/wallets/actions.d.ts.map +1 -0
  47. package/resources/wallets/actions.js +9 -0
  48. package/resources/wallets/actions.js.map +1 -0
  49. package/resources/wallets/actions.mjs +5 -0
  50. package/resources/wallets/actions.mjs.map +1 -0
  51. package/resources/wallets/balance.d.mts +7 -4
  52. package/resources/wallets/balance.d.mts.map +1 -1
  53. package/resources/wallets/balance.d.ts +7 -4
  54. package/resources/wallets/balance.d.ts.map +1 -1
  55. package/resources/wallets/index.d.mts +2 -1
  56. package/resources/wallets/index.d.mts.map +1 -1
  57. package/resources/wallets/index.d.ts +2 -1
  58. package/resources/wallets/index.d.ts.map +1 -1
  59. package/resources/wallets/index.js +3 -1
  60. package/resources/wallets/index.js.map +1 -1
  61. package/resources/wallets/index.mjs +1 -0
  62. package/resources/wallets/index.mjs.map +1 -1
  63. package/resources/wallets/transactions.d.mts +10 -3
  64. package/resources/wallets/transactions.d.mts.map +1 -1
  65. package/resources/wallets/transactions.d.ts +10 -3
  66. package/resources/wallets/transactions.d.ts.map +1 -1
  67. package/resources/wallets/transactions.js.map +1 -1
  68. package/resources/wallets/transactions.mjs.map +1 -1
  69. package/resources/wallets/wallets.d.mts +261 -28
  70. package/resources/wallets/wallets.d.mts.map +1 -1
  71. package/resources/wallets/wallets.d.ts +261 -28
  72. package/resources/wallets/wallets.d.ts.map +1 -1
  73. package/resources/wallets/wallets.js +4 -0
  74. package/resources/wallets/wallets.js.map +1 -1
  75. package/resources/wallets/wallets.mjs +4 -0
  76. package/resources/wallets/wallets.mjs.map +1 -1
  77. package/resources/webhooks.d.mts +357 -56
  78. package/resources/webhooks.d.mts.map +1 -1
  79. package/resources/webhooks.d.ts +357 -56
  80. package/resources/webhooks.d.ts.map +1 -1
  81. package/resources/yield.d.mts +4 -3
  82. package/resources/yield.d.mts.map +1 -1
  83. package/resources/yield.d.ts +4 -3
  84. package/resources/yield.d.ts.map +1 -1
  85. package/resources/yield.js.map +1 -1
  86. package/resources/yield.mjs.map +1 -1
  87. package/src/client.ts +84 -83
  88. package/src/resources/client-auth.ts +19 -3
  89. package/src/resources/embedded-wallets.ts +7 -0
  90. package/src/resources/index.ts +42 -40
  91. package/src/resources/kraken-embed.ts +439 -848
  92. package/src/resources/policies.ts +96 -36
  93. package/src/resources/transactions.ts +18 -9
  94. package/src/resources/users.ts +38 -6
  95. package/src/resources/{wallet-actions.ts → wallets/actions.ts} +318 -62
  96. package/src/resources/wallets/balance.ts +20 -62
  97. package/src/resources/wallets/index.ts +59 -0
  98. package/src/resources/wallets/transactions.ts +11 -10
  99. package/src/resources/wallets/wallets.ts +513 -66
  100. package/src/resources/webhooks.ts +436 -61
  101. package/src/resources/yield.ts +4 -11
  102. package/src/version.ts +1 -1
  103. package/version.d.mts +1 -1
  104. package/version.d.ts +1 -1
  105. package/version.js +1 -1
  106. package/version.mjs +1 -1
  107. package/resources/wallet-actions.d.mts.map +0 -1
  108. package/resources/wallet-actions.d.ts.map +0 -1
  109. package/resources/wallet-actions.js +0 -9
  110. package/resources/wallet-actions.js.map +0 -1
  111. package/resources/wallet-actions.mjs +0 -5
  112. package/resources/wallet-actions.mjs.map +0 -1
@@ -1,9 +1,78 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
- import * as WalletsAPI from './wallets/wallets';
3
+ import { APIResource } from '../../core/resource';
4
+ import * as WalletsAPI from './wallets';
5
5
 
6
- export class WalletActions extends APIResource {}
6
+ export class Actions extends APIResource {}
7
+
8
+ /**
9
+ * Vault details for an Aave earn vault, including fee visibility.
10
+ */
11
+ export interface AaveVaultDetails {
12
+ /**
13
+ * Vault identifier.
14
+ */
15
+ id: string;
16
+
17
+ /**
18
+ * EVM address of the vault admin wallet.
19
+ */
20
+ admin_wallet_address: string;
21
+
22
+ /**
23
+ * Privy wallet ID of the vault admin.
24
+ */
25
+ admin_wallet_id: string;
26
+
27
+ /**
28
+ * Annual percentage yield earned by the app from fee wrapper fees, in basis
29
+ * points.
30
+ */
31
+ app_apy: number | null;
32
+
33
+ /**
34
+ * Asset metadata for an earn vault position.
35
+ */
36
+ asset: EarnAsset;
37
+
38
+ /**
39
+ * Fees available to collect, in smallest unit of the underlying asset.
40
+ */
41
+ available_fees: string;
42
+
43
+ /**
44
+ * Available liquidity in USD.
45
+ */
46
+ available_liquidity_usd: number | null;
47
+
48
+ /**
49
+ * CAIP-2 chain identifier (e.g. "eip155:8453").
50
+ */
51
+ caip2: string;
52
+
53
+ /**
54
+ * Human-readable vault name from the yield provider.
55
+ */
56
+ name: string;
57
+
58
+ provider: 'aave';
59
+
60
+ /**
61
+ * Total value locked in USD.
62
+ */
63
+ tvl_usd: number | null;
64
+
65
+ /**
66
+ * Annual percentage yield available to the user, after fees and excluding rewards,
67
+ * in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
68
+ */
69
+ user_apy: number | null;
70
+
71
+ /**
72
+ * Onchain vault contract address.
73
+ */
74
+ vault_address: string;
75
+ }
7
76
 
8
77
  /**
9
78
  * A wallet action step representing a transaction executed by a custodian (e.g.
@@ -74,6 +143,11 @@ export interface EvmTransactionWalletActionStep {
74
143
  finalized?: boolean;
75
144
  }
76
145
 
146
+ /**
147
+ * The ERC-4337 entrypoint contract version used by the user operation.
148
+ */
149
+ export type EvmUserOperationEntrypointVersion = '0.6' | '0.7' | '0.8' | '0.9';
150
+
77
151
  /**
78
152
  * A wallet action step consisting of an EVM user operation.
79
153
  */
@@ -90,9 +164,9 @@ export interface EvmUserOperationWalletActionStep {
90
164
  caip2: string;
91
165
 
92
166
  /**
93
- * The entrypoint version of the user operation.
167
+ * The ERC-4337 entrypoint contract version used by the user operation.
94
168
  */
95
- entrypoint_version: '0.6' | '0.7' | '0.8' | '0.9';
169
+ entrypoint_version: EvmUserOperationEntrypointVersion;
96
170
 
97
171
  /**
98
172
  * Status of an EVM step in a wallet action.
@@ -266,6 +340,98 @@ export interface EarnDepositRequestBody {
266
340
  raw_amount?: string;
267
341
  }
268
342
 
343
+ /**
344
+ * Response for an earn fee collect action.
345
+ */
346
+ export interface EarnFeeCollectActionResponse {
347
+ /**
348
+ * The ID of the wallet action.
349
+ */
350
+ id: string;
351
+
352
+ /**
353
+ * Underlying asset token address.
354
+ */
355
+ asset_address: string;
356
+
357
+ /**
358
+ * CAIP-2 chain identifier.
359
+ */
360
+ caip2: string;
361
+
362
+ /**
363
+ * ISO 8601 timestamp of when the wallet action was created.
364
+ */
365
+ created_at: string;
366
+
367
+ /**
368
+ * Base-unit amount of fees collected (e.g. "1500000"). Populated after on-chain
369
+ * confirmation.
370
+ */
371
+ raw_amount: string | null;
372
+
373
+ /**
374
+ * Status of a wallet action.
375
+ */
376
+ status: WalletActionStatus;
377
+
378
+ type: 'earn_fee_collect';
379
+
380
+ /**
381
+ * ERC-4626 vault contract address.
382
+ */
383
+ vault_address: string;
384
+
385
+ /**
386
+ * The vault ID.
387
+ */
388
+ vault_id: string;
389
+
390
+ /**
391
+ * The ID of the wallet involved in the action.
392
+ */
393
+ wallet_id: string;
394
+
395
+ /**
396
+ * Human-readable decimal amount of fees collected (e.g. "1.5"). Omitted when the
397
+ * token is not in the asset registry. Null while the action is pending; populated
398
+ * after on-chain confirmation.
399
+ */
400
+ amount?: string | null;
401
+
402
+ /**
403
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
404
+ * the asset registry.
405
+ */
406
+ asset?: string;
407
+
408
+ /**
409
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
410
+ * present when the token is known in the asset registry.
411
+ */
412
+ decimals?: number;
413
+
414
+ /**
415
+ * A description of why a wallet action (or a step within a wallet action) failed.
416
+ */
417
+ failure_reason?: FailureReason;
418
+
419
+ /**
420
+ * The steps of the wallet action. Only returned if `?include=steps` is provided.
421
+ */
422
+ steps?: Array<WalletActionStep>;
423
+ }
424
+
425
+ /**
426
+ * Input for collecting accumulated fees from an Aave vault.
427
+ */
428
+ export interface EarnFeeCollectRequestBody {
429
+ /**
430
+ * The ID of the vault to collect fees from.
431
+ */
432
+ vault_id: string;
433
+ }
434
+
269
435
  /**
270
436
  * Response for an earn incentive claim action.
271
437
  */
@@ -557,64 +723,13 @@ export interface EthereumEarnPositionResponse {
557
723
  /**
558
724
  * Supported earn provider protocols.
559
725
  */
560
- export type EthereumEarnProvider = 'morpho' | 'aave';
726
+ export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda';
561
727
 
562
728
  /**
563
729
  * Detailed vault information including current APY, liquidity, and asset metadata.
730
+ * Discriminated on provider.
564
731
  */
565
- export interface EthereumEarnVaultDetailsResponse {
566
- /**
567
- * Vault identifier.
568
- */
569
- id: string;
570
-
571
- /**
572
- * Annual percentage yield earned by the app from fee wrapper fees, in basis
573
- * points.
574
- */
575
- app_apy: number | null;
576
-
577
- /**
578
- * Asset metadata for an earn vault position.
579
- */
580
- asset: EarnAsset;
581
-
582
- /**
583
- * Available liquidity in USD.
584
- */
585
- available_liquidity_usd: number | null;
586
-
587
- /**
588
- * CAIP-2 chain identifier (e.g. "eip155:8453").
589
- */
590
- caip2: string;
591
-
592
- /**
593
- * Human-readable vault name from the yield provider.
594
- */
595
- name: string;
596
-
597
- /**
598
- * Supported earn provider protocols.
599
- */
600
- provider: EthereumEarnProvider;
601
-
602
- /**
603
- * Total value locked in USD.
604
- */
605
- tvl_usd: number | null;
606
-
607
- /**
608
- * Current annual percentage yield in basis points (e.g. 500 for 5%). 1 basis point
609
- * = 0.01%.
610
- */
611
- user_apy: number | null;
612
-
613
- /**
614
- * Onchain vault contract address.
615
- */
616
- vault_address: string;
617
- }
732
+ export type EthereumEarnVaultDetailsResponse = AaveVaultDetails | MorphoVaultDetails | VedaVaultDetails;
618
733
 
619
734
  /**
620
735
  * A wallet action step representing a cross-chain/cross-asset fill by an external
@@ -683,6 +798,75 @@ export interface ListWalletActionsResponse {
683
798
  next_cursor: string | null;
684
799
  }
685
800
 
801
+ /**
802
+ * Vault details for a Morpho earn vault.
803
+ */
804
+ export interface MorphoVaultDetails {
805
+ /**
806
+ * Vault identifier.
807
+ */
808
+ id: string;
809
+
810
+ /**
811
+ * EVM address of the vault admin wallet.
812
+ */
813
+ admin_wallet_address: string;
814
+
815
+ /**
816
+ * Privy wallet ID of the vault admin.
817
+ */
818
+ admin_wallet_id: string;
819
+
820
+ /**
821
+ * Annual percentage yield earned by the app from fee wrapper fees, in basis
822
+ * points.
823
+ */
824
+ app_apy: number | null;
825
+
826
+ /**
827
+ * Asset metadata for an earn vault position.
828
+ */
829
+ asset: EarnAsset;
830
+
831
+ /**
832
+ * Available liquidity in USD.
833
+ */
834
+ available_liquidity_usd: number | null;
835
+
836
+ /**
837
+ * CAIP-2 chain identifier (e.g. "eip155:8453").
838
+ */
839
+ caip2: string;
840
+
841
+ /**
842
+ * Human-readable vault name from the yield provider.
843
+ */
844
+ name: string;
845
+
846
+ provider: 'morpho';
847
+
848
+ /**
849
+ * Total rewards annual percentage rate in basis points.
850
+ */
851
+ total_rewards_apr: number;
852
+
853
+ /**
854
+ * Total value locked in USD.
855
+ */
856
+ tvl_usd: number | null;
857
+
858
+ /**
859
+ * Annual percentage yield available to the user, after fees and excluding rewards,
860
+ * in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
861
+ */
862
+ user_apy: number | null;
863
+
864
+ /**
865
+ * Onchain vault contract address.
866
+ */
867
+ vault_address: string;
868
+ }
869
+
686
870
  /**
687
871
  * A wallet action step consisting of an SVM (Solana) transaction.
688
872
  */
@@ -987,6 +1171,70 @@ export interface TransferActionResponse {
987
1171
  steps?: Array<WalletActionStep>;
988
1172
  }
989
1173
 
1174
+ /**
1175
+ * Vault details for a Veda (BoringVault) earn vault.
1176
+ */
1177
+ export interface VedaVaultDetails {
1178
+ /**
1179
+ * Vault identifier.
1180
+ */
1181
+ id: string;
1182
+
1183
+ /**
1184
+ * EVM address of the vault admin wallet.
1185
+ */
1186
+ admin_wallet_address: string;
1187
+
1188
+ /**
1189
+ * Privy wallet ID of the vault admin.
1190
+ */
1191
+ admin_wallet_id: string;
1192
+
1193
+ /**
1194
+ * Annual percentage yield earned by the app from fee wrapper fees, in basis
1195
+ * points.
1196
+ */
1197
+ app_apy: number | null;
1198
+
1199
+ /**
1200
+ * Asset metadata for an earn vault position.
1201
+ */
1202
+ asset: EarnAsset;
1203
+
1204
+ /**
1205
+ * Available liquidity in USD.
1206
+ */
1207
+ available_liquidity_usd: number | null;
1208
+
1209
+ /**
1210
+ * CAIP-2 chain identifier (e.g. "eip155:8453").
1211
+ */
1212
+ caip2: string;
1213
+
1214
+ /**
1215
+ * Human-readable vault name from the yield provider.
1216
+ */
1217
+ name: string;
1218
+
1219
+ provider: 'veda';
1220
+
1221
+ /**
1222
+ * Total value locked in USD.
1223
+ */
1224
+ tvl_usd: number | null;
1225
+
1226
+ /**
1227
+ * Annual percentage yield available to the user, after fees and excluding rewards,
1228
+ * in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
1229
+ */
1230
+ user_apy: number | null;
1231
+
1232
+ /**
1233
+ * Onchain vault contract address.
1234
+ */
1235
+ vault_address: string;
1236
+ }
1237
+
990
1238
  /**
991
1239
  * Expandable relations to include on a wallet action response.
992
1240
  */
@@ -1000,7 +1248,8 @@ export type WalletActionResponse =
1000
1248
  | TransferActionResponse
1001
1249
  | EarnDepositActionResponse
1002
1250
  | EarnWithdrawActionResponse
1003
- | EarnIncentiveClaimActionResponse;
1251
+ | EarnIncentiveClaimActionResponse
1252
+ | EarnFeeCollectActionResponse;
1004
1253
 
1005
1254
  /**
1006
1255
  * Status of a wallet action.
@@ -1037,18 +1286,23 @@ export type WalletActionType =
1037
1286
  | 'transfer'
1038
1287
  | 'earn_deposit'
1039
1288
  | 'earn_withdraw'
1040
- | 'earn_incentive_claim';
1289
+ | 'earn_incentive_claim'
1290
+ | 'earn_fee_collect';
1041
1291
 
1042
- export declare namespace WalletActions {
1292
+ export declare namespace Actions {
1043
1293
  export {
1294
+ type AaveVaultDetails as AaveVaultDetails,
1044
1295
  type CustodianTransactionWalletActionStep as CustodianTransactionWalletActionStep,
1045
1296
  type CustodianTransactionWalletActionStepStatus as CustodianTransactionWalletActionStepStatus,
1046
1297
  type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep,
1298
+ type EvmUserOperationEntrypointVersion as EvmUserOperationEntrypointVersion,
1047
1299
  type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep,
1048
1300
  type EvmWalletActionStepStatus as EvmWalletActionStepStatus,
1049
1301
  type EarnAsset as EarnAsset,
1050
1302
  type EarnDepositActionResponse as EarnDepositActionResponse,
1051
1303
  type EarnDepositRequestBody as EarnDepositRequestBody,
1304
+ type EarnFeeCollectActionResponse as EarnFeeCollectActionResponse,
1305
+ type EarnFeeCollectRequestBody as EarnFeeCollectRequestBody,
1052
1306
  type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse,
1053
1307
  type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody,
1054
1308
  type EarnIncentiveRewardEntry as EarnIncentiveRewardEntry,
@@ -1066,12 +1320,14 @@ export declare namespace WalletActions {
1066
1320
  type FailureReason as FailureReason,
1067
1321
  type ListWalletActionsQuery as ListWalletActionsQuery,
1068
1322
  type ListWalletActionsResponse as ListWalletActionsResponse,
1323
+ type MorphoVaultDetails as MorphoVaultDetails,
1069
1324
  type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
1070
1325
  type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
1071
1326
  type SwapActionResponse as SwapActionResponse,
1072
1327
  type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
1073
1328
  type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
1074
1329
  type TransferActionResponse as TransferActionResponse,
1330
+ type VedaVaultDetails as VedaVaultDetails,
1075
1331
  type WalletActionInclude as WalletActionInclude,
1076
1332
  type WalletActionResponse as WalletActionResponse,
1077
1333
  type WalletActionStatus as WalletActionStatus,
@@ -35,28 +35,24 @@ export interface BalanceGetResponse {
35
35
 
36
36
  export namespace BalanceGetResponse {
37
37
  export interface Balance {
38
- asset: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
38
+ asset:
39
+ | 'usdc'
40
+ | 'usdc.e'
41
+ | 'eth'
42
+ | 'avax'
43
+ | 'pol'
44
+ | 'bnb'
45
+ | 'usdt'
46
+ | 'eurc'
47
+ | 'usdb'
48
+ | 'sol'
49
+ | 'trx'
50
+ | (string & {});
39
51
 
40
- chain:
41
- | 'ethereum'
42
- | 'arbitrum'
43
- | 'avalanche'
44
- | 'base'
45
- | 'tempo'
46
- | 'linea'
47
- | 'optimism'
48
- | 'polygon'
49
- | 'solana'
50
- | 'zksync_era'
51
- | 'sepolia'
52
- | 'arbitrum_sepolia'
53
- | 'avalanche_fuji'
54
- | 'base_sepolia'
55
- | 'linea_testnet'
56
- | 'optimism_sepolia'
57
- | 'polygon_amoy'
58
- | 'solana_devnet'
59
- | 'solana_testnet';
52
+ /**
53
+ * Supported blockchain network names for wallet balance and transaction queries.
54
+ */
55
+ chain: WalletsAPI.WalletAssetChainNameInput;
60
56
 
61
57
  display_values: { [key: string]: string };
62
58
 
@@ -85,57 +81,19 @@ export interface BalanceGetParams {
85
81
  | 'eth'
86
82
  | 'avax'
87
83
  | 'pol'
84
+ | 'bnb'
88
85
  | 'usdt'
89
86
  | 'eurc'
90
87
  | 'usdb'
91
88
  | 'sol'
89
+ | 'trx'
92
90
  | Array<WalletsAPI.WalletAsset>;
93
91
 
94
92
  /**
95
93
  * Chain(s) to query named assets on (e.g. `base`, `ethereum`). Use together with
96
94
  * `asset`. Cannot be used with `token`.
97
95
  */
98
- chain?:
99
- | 'ethereum'
100
- | 'arbitrum'
101
- | 'avalanche'
102
- | 'base'
103
- | 'tempo'
104
- | 'linea'
105
- | 'optimism'
106
- | 'polygon'
107
- | 'solana'
108
- | 'zksync_era'
109
- | 'sepolia'
110
- | 'arbitrum_sepolia'
111
- | 'avalanche_fuji'
112
- | 'base_sepolia'
113
- | 'linea_testnet'
114
- | 'optimism_sepolia'
115
- | 'polygon_amoy'
116
- | 'solana_devnet'
117
- | 'solana_testnet'
118
- | Array<
119
- | 'ethereum'
120
- | 'arbitrum'
121
- | 'avalanche'
122
- | 'base'
123
- | 'tempo'
124
- | 'linea'
125
- | 'optimism'
126
- | 'polygon'
127
- | 'solana'
128
- | 'zksync_era'
129
- | 'sepolia'
130
- | 'arbitrum_sepolia'
131
- | 'avalanche_fuji'
132
- | 'base_sepolia'
133
- | 'linea_testnet'
134
- | 'optimism_sepolia'
135
- | 'polygon_amoy'
136
- | 'solana_devnet'
137
- | 'solana_testnet'
138
- >;
96
+ chain?: WalletsAPI.WalletAssetChainNameInput | Array<WalletsAPI.WalletAssetChainNameInput>;
139
97
 
140
98
  /**
141
99
  * Include archived wallets in lookup. Defaults to false.
@@ -1,5 +1,51 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Actions,
5
+ type AaveVaultDetails,
6
+ type CustodianTransactionWalletActionStep,
7
+ type CustodianTransactionWalletActionStepStatus,
8
+ type EvmTransactionWalletActionStep,
9
+ type EvmUserOperationEntrypointVersion,
10
+ type EvmUserOperationWalletActionStep,
11
+ type EvmWalletActionStepStatus,
12
+ type EarnAsset,
13
+ type EarnDepositActionResponse,
14
+ type EarnDepositRequestBody,
15
+ type EarnFeeCollectActionResponse,
16
+ type EarnFeeCollectRequestBody,
17
+ type EarnIncentiveClaimActionResponse,
18
+ type EarnIncentiveClaimRequestBody,
19
+ type EarnIncentiveRewardEntry,
20
+ type EarnIncentiveRewardsQuery,
21
+ type EarnIncentiveRewardsResponse,
22
+ type EarnIncetiveClaimRewardEntry,
23
+ type EarnWithdrawActionResponse,
24
+ type EarnWithdrawRequestBody,
25
+ type EthereumEarnPositionQuery,
26
+ type EthereumEarnPositionResponse,
27
+ type EthereumEarnProvider,
28
+ type EthereumEarnVaultDetailsResponse,
29
+ type ExternalTransactionWalletActionStep,
30
+ type ExternalTransactionWalletActionStepStatus,
31
+ type FailureReason,
32
+ type ListWalletActionsQuery,
33
+ type ListWalletActionsResponse,
34
+ type MorphoVaultDetails,
35
+ type SvmTransactionWalletActionStep,
36
+ type SvmWalletActionStepStatus,
37
+ type SwapActionResponse,
38
+ type TvmTransactionWalletActionStep,
39
+ type TvmWalletActionStepStatus,
40
+ type TransferActionResponse,
41
+ type VedaVaultDetails,
42
+ type WalletActionInclude,
43
+ type WalletActionResponse,
44
+ type WalletActionStatus,
45
+ type WalletActionStep,
46
+ type WalletActionStepType,
47
+ type WalletActionType,
48
+ } from './actions';
3
49
  export { Balance, type BalanceGetResponse, type BalanceGetParams } from './balance';
4
50
  export { Transactions, type TransactionGetResponse, type TransactionGetParams } from './transactions';
5
51
  export {
@@ -128,9 +174,13 @@ export {
128
174
  type SparkClaimStaticDepositRpcInputParams,
129
175
  type SparkClaimStaticDepositRpcResponse,
130
176
  type SparkClaimStaticDepositRpcResponseData,
177
+ type SparkCoopExitFeeQuote,
178
+ type SparkCoopExitRequest,
131
179
  type SparkCreateLightningInvoiceRpcInput,
132
180
  type SparkCreateLightningInvoiceRpcInputParams,
133
181
  type SparkCreateLightningInvoiceRpcResponse,
182
+ type SparkCurrencyAmount,
183
+ type SparkExitSpeed,
134
184
  type SparkGetBalanceRpcInput,
135
185
  type SparkGetBalanceRpcResponse,
136
186
  type SparkGetClaimStaticDepositQuoteRpcInput,
@@ -140,6 +190,9 @@ export {
140
190
  type SparkGetStaticDepositAddressRpcInput,
141
191
  type SparkGetStaticDepositAddressRpcResponse,
142
192
  type SparkGetStaticDepositAddressRpcResponseData,
193
+ type SparkGetWithdrawalFeeQuoteRpcInput,
194
+ type SparkGetWithdrawalFeeQuoteRpcInputParams,
195
+ type SparkGetWithdrawalFeeQuoteRpcResponse,
143
196
  type SparkLightningFee,
144
197
  type SparkLightningReceiveRequest,
145
198
  type SparkLightningSendRequest,
@@ -167,6 +220,9 @@ export {
167
220
  type SparkTransferTokensRpcResponseData,
168
221
  type SparkUserTokenMetadata,
169
222
  type SparkWalletLeaf,
223
+ type SparkWithdrawRpcInput,
224
+ type SparkWithdrawRpcInputParams,
225
+ type SparkWithdrawRpcResponse,
170
226
  type SuiCommandName,
171
227
  type SwapSubmissionStatus,
172
228
  type TempoAaAuthorization,
@@ -176,6 +232,7 @@ export {
176
232
  type TokenTransferDestination,
177
233
  type TokenTransferSource,
178
234
  type TotalFeeConfigurationBps,
235
+ type TransactionChainNameInput,
179
236
  type TransactionDetail,
180
237
  type TransactionTokenAddressInput,
181
238
  type TransferQuoteRequestBody,
@@ -212,6 +269,7 @@ export {
212
269
  type WalletAPIRegisterAuthorizationKeyInput,
213
270
  type WalletAPIRevokeAuthorizationKeyInput,
214
271
  type WalletAsset,
272
+ type WalletAssetChainNameInput,
215
273
  type WalletAuthenticateBoundEncryptedRequestBody,
216
274
  type WalletAuthenticateBoundRequestBody,
217
275
  type WalletAuthenticateBoundUnencryptedRequestBody,
@@ -237,6 +295,7 @@ export {
237
295
  type WalletRpcRequestBody,
238
296
  type WalletRpcResponse,
239
297
  type WalletSolanaAsset,
298
+ type WalletTronAsset,
240
299
  type WalletUpdateRequestBody,
241
300
  type WalletCreateParams,
242
301
  type WalletUpdateParams,