@privy-io/api-types 0.16.0 → 0.18.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 (128) hide show
  1. package/CHANGELOG.md +74 -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/accounts.d.mts +1 -1
  12. package/resources/accounts.d.ts +1 -1
  13. package/resources/apps.d.mts +3 -3
  14. package/resources/apps.d.mts.map +1 -1
  15. package/resources/apps.d.ts +3 -3
  16. package/resources/apps.d.ts.map +1 -1
  17. package/resources/client-auth.d.mts +42 -4
  18. package/resources/client-auth.d.mts.map +1 -1
  19. package/resources/client-auth.d.ts +42 -4
  20. package/resources/client-auth.d.ts.map +1 -1
  21. package/resources/embedded-wallets.d.mts +6 -0
  22. package/resources/embedded-wallets.d.mts.map +1 -1
  23. package/resources/embedded-wallets.d.ts +6 -0
  24. package/resources/embedded-wallets.d.ts.map +1 -1
  25. package/resources/index.d.mts +7 -8
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +7 -8
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js +1 -3
  30. package/resources/index.js.map +1 -1
  31. package/resources/index.mjs +0 -1
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/kraken-embed.d.mts +110 -17
  34. package/resources/kraken-embed.d.mts.map +1 -1
  35. package/resources/kraken-embed.d.ts +110 -17
  36. package/resources/kraken-embed.d.ts.map +1 -1
  37. package/resources/onramps.d.mts +4 -4
  38. package/resources/onramps.d.ts +4 -4
  39. package/resources/policies.d.mts +48 -8
  40. package/resources/policies.d.mts.map +1 -1
  41. package/resources/policies.d.ts +48 -8
  42. package/resources/policies.d.ts.map +1 -1
  43. package/resources/swaps.d.mts +2 -1
  44. package/resources/swaps.d.mts.map +1 -1
  45. package/resources/swaps.d.ts +2 -1
  46. package/resources/swaps.d.ts.map +1 -1
  47. package/resources/transactions.d.mts +9 -2
  48. package/resources/transactions.d.mts.map +1 -1
  49. package/resources/transactions.d.ts +9 -2
  50. package/resources/transactions.d.ts.map +1 -1
  51. package/resources/users.d.mts +41 -8
  52. package/resources/users.d.mts.map +1 -1
  53. package/resources/users.d.ts +41 -8
  54. package/resources/users.d.ts.map +1 -1
  55. package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +262 -60
  56. package/resources/wallets/actions.d.mts.map +1 -0
  57. package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +262 -60
  58. package/resources/wallets/actions.d.ts.map +1 -0
  59. package/resources/wallets/actions.js +9 -0
  60. package/resources/wallets/actions.js.map +1 -0
  61. package/resources/wallets/actions.mjs +5 -0
  62. package/resources/wallets/actions.mjs.map +1 -0
  63. package/resources/wallets/balance.d.mts +9 -6
  64. package/resources/wallets/balance.d.mts.map +1 -1
  65. package/resources/wallets/balance.d.ts +9 -6
  66. package/resources/wallets/balance.d.ts.map +1 -1
  67. package/resources/wallets/index.d.mts +2 -1
  68. package/resources/wallets/index.d.mts.map +1 -1
  69. package/resources/wallets/index.d.ts +2 -1
  70. package/resources/wallets/index.d.ts.map +1 -1
  71. package/resources/wallets/index.js +3 -1
  72. package/resources/wallets/index.js.map +1 -1
  73. package/resources/wallets/index.mjs +1 -0
  74. package/resources/wallets/index.mjs.map +1 -1
  75. package/resources/wallets/transactions.d.mts +10 -3
  76. package/resources/wallets/transactions.d.mts.map +1 -1
  77. package/resources/wallets/transactions.d.ts +10 -3
  78. package/resources/wallets/transactions.d.ts.map +1 -1
  79. package/resources/wallets/transactions.js.map +1 -1
  80. package/resources/wallets/transactions.mjs.map +1 -1
  81. package/resources/wallets/wallets.d.mts +323 -78
  82. package/resources/wallets/wallets.d.mts.map +1 -1
  83. package/resources/wallets/wallets.d.ts +323 -78
  84. package/resources/wallets/wallets.d.ts.map +1 -1
  85. package/resources/wallets/wallets.js +4 -0
  86. package/resources/wallets/wallets.js.map +1 -1
  87. package/resources/wallets/wallets.mjs +4 -0
  88. package/resources/wallets/wallets.mjs.map +1 -1
  89. package/resources/webhooks.d.mts +379 -71
  90. package/resources/webhooks.d.mts.map +1 -1
  91. package/resources/webhooks.d.ts +379 -71
  92. package/resources/webhooks.d.ts.map +1 -1
  93. package/resources/yield.d.mts +11 -7
  94. package/resources/yield.d.mts.map +1 -1
  95. package/resources/yield.d.ts +11 -7
  96. package/resources/yield.d.ts.map +1 -1
  97. package/resources/yield.js.map +1 -1
  98. package/resources/yield.mjs.map +1 -1
  99. package/src/client.ts +96 -83
  100. package/src/resources/accounts.ts +1 -1
  101. package/src/resources/apps.ts +3 -3
  102. package/src/resources/client-auth.ts +61 -3
  103. package/src/resources/embedded-wallets.ts +7 -0
  104. package/src/resources/index.ts +48 -40
  105. package/src/resources/kraken-embed.ts +439 -848
  106. package/src/resources/onramps.ts +4 -4
  107. package/src/resources/policies.ts +96 -36
  108. package/src/resources/swaps.ts +2 -1
  109. package/src/resources/transactions.ts +18 -9
  110. package/src/resources/users.ts +49 -7
  111. package/src/resources/{wallet-actions.ts → wallets/actions.ts} +323 -67
  112. package/src/resources/wallets/balance.ts +24 -64
  113. package/src/resources/wallets/index.ts +59 -0
  114. package/src/resources/wallets/transactions.ts +12 -10
  115. package/src/resources/wallets/wallets.ts +582 -116
  116. package/src/resources/webhooks.ts +458 -76
  117. package/src/resources/yield.ts +11 -15
  118. package/src/version.ts +1 -1
  119. package/version.d.mts +1 -1
  120. package/version.d.ts +1 -1
  121. package/version.js +1 -1
  122. package/version.mjs +1 -1
  123. package/resources/wallet-actions.d.mts.map +0 -1
  124. package/resources/wallet-actions.d.ts.map +0 -1
  125. package/resources/wallet-actions.js +0 -9
  126. package/resources/wallet-actions.js.map +0 -1
  127. package/resources/wallet-actions.mjs +0 -5
  128. 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:4217" for Tempo, "eip155:8453" for Base).
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
  */
@@ -276,7 +442,7 @@ export interface EarnIncentiveClaimActionResponse {
276
442
  id: string;
277
443
 
278
444
  /**
279
- * EVM chain name (e.g. "base", "ethereum").
445
+ * EVM chain name (e.g. "tempo", "base").
280
446
  */
281
447
  chain: string;
282
448
 
@@ -319,8 +485,8 @@ export interface EarnIncentiveClaimActionResponse {
319
485
  export interface EarnIncentiveClaimRequestBody {
320
486
  /**
321
487
  * The blockchain network on which to perform the incentive claim. Supported chains
322
- * include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and more, along
323
- * with their respective testnets.
488
+ * include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and more,
489
+ * along with their respective testnets.
324
490
  */
325
491
  chain: string;
326
492
  }
@@ -360,7 +526,7 @@ export interface EarnIncentiveRewardEntry {
360
526
  */
361
527
  export interface EarnIncentiveRewardsQuery {
362
528
  /**
363
- * Chain name to fetch rewards for (e.g. "base", "ethereum").
529
+ * Chain name to fetch rewards for (e.g. "tempo", "base").
364
530
  */
365
531
  chain: string;
366
532
  }
@@ -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:4217" for Tempo, "eip155:8453" for Base).
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
  */
@@ -897,7 +1081,7 @@ export interface TransferActionResponse {
897
1081
  destination_amount: string | null;
898
1082
 
899
1083
  /**
900
- * Chain name (e.g. "base", "ethereum").
1084
+ * Chain name (e.g. "tempo", "base").
901
1085
  */
902
1086
  source_chain: string;
903
1087
 
@@ -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:4217" for Tempo, "eip155:8453" for Base).
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,25 @@ 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
+ | 'pathusd'
49
+ | 'sol'
50
+ | 'trx'
51
+ | (string & {});
39
52
 
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';
53
+ /**
54
+ * Supported blockchain network names for wallet balance and transaction queries.
55
+ */
56
+ chain: WalletsAPI.WalletAssetChainNameInput;
60
57
 
61
58
  display_values: { [key: string]: string };
62
59
 
@@ -69,7 +66,7 @@ export namespace BalanceGetResponse {
69
66
  export interface BalanceGetParams {
70
67
  /**
71
68
  * The token contract address(es) to query in format "chain:address" (e.g.,
72
- * "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" or
69
+ * "tempo:0x20c000000000000000000000b9537d11c60e8b50" or
73
70
  * "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"). Cannot be used together
74
71
  * with `asset`/`chain` or with `include_currency`.
75
72
  */
@@ -85,57 +82,20 @@ export interface BalanceGetParams {
85
82
  | 'eth'
86
83
  | 'avax'
87
84
  | 'pol'
85
+ | 'bnb'
88
86
  | 'usdt'
89
87
  | 'eurc'
90
88
  | 'usdb'
89
+ | 'pathusd'
91
90
  | 'sol'
91
+ | 'trx'
92
92
  | Array<WalletsAPI.WalletAsset>;
93
93
 
94
94
  /**
95
- * Chain(s) to query named assets on (e.g. `base`, `ethereum`). Use together with
95
+ * Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with
96
96
  * `asset`. Cannot be used with `token`.
97
97
  */
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
- >;
98
+ chain?: WalletsAPI.WalletAssetChainNameInput | Array<WalletsAPI.WalletAssetChainNameInput>;
139
99
 
140
100
  /**
141
101
  * Include archived wallets in lookup. Defaults to false.