@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,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,
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as TransactionsAPI from '../transactions';
4
5
  import * as WalletsAPI from './wallets';
5
6
  import { APIPromise } from '../../core/api-promise';
6
7
  import { RequestOptions } from '../../internal/request-options';
@@ -49,15 +50,10 @@ export namespace TransactionGetResponse {
49
50
 
50
51
  privy_transaction_id: string;
51
52
 
52
- status:
53
- | 'broadcasted'
54
- | 'confirmed'
55
- | 'execution_reverted'
56
- | 'failed'
57
- | 'replaced'
58
- | 'finalized'
59
- | 'provider_error'
60
- | 'pending';
53
+ /**
54
+ * Status of a blockchain transaction submitted by Privy.
55
+ */
56
+ status: TransactionsAPI.BlockchainTransactionStatus;
61
57
 
62
58
  transaction_hash: string | null;
63
59
 
@@ -77,7 +73,10 @@ export namespace TransactionGetResponse {
77
73
  }
78
74
 
79
75
  export interface TransactionGetParams {
80
- chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
76
+ /**
77
+ * Chains supported for transaction history queries.
78
+ */
79
+ chain: WalletsAPI.TransactionChainNameInput;
81
80
 
82
81
  /**
83
82
  * Exactly one of `token` or `asset` is required. Cannot be used together with
@@ -95,10 +94,13 @@ export interface TransactionGetParams {
95
94
  | 'eth'
96
95
  | 'avax'
97
96
  | 'pol'
97
+ | 'bnb'
98
98
  | 'usdt'
99
99
  | 'eurc'
100
100
  | 'usdb'
101
+ | 'pathusd'
101
102
  | 'sol'
103
+ | 'trx'
102
104
  | Array<WalletsAPI.WalletAsset>;
103
105
 
104
106
  cursor?: string;