@privy-io/api-types 0.10.0 → 0.12.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 (135) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts +22 -28
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +22 -28
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -12
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -13
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/log.d.mts.map +1 -1
  11. package/internal/utils/log.d.ts.map +1 -1
  12. package/internal/utils/log.js +2 -0
  13. package/internal/utils/log.js.map +1 -1
  14. package/internal/utils/log.mjs +2 -0
  15. package/internal/utils/log.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/apps.d.mts +5 -0
  18. package/resources/apps.d.mts.map +1 -1
  19. package/resources/apps.d.ts +5 -0
  20. package/resources/apps.d.ts.map +1 -1
  21. package/resources/client-auth.d.mts +496 -514
  22. package/resources/client-auth.d.mts.map +1 -1
  23. package/resources/client-auth.d.ts +496 -514
  24. package/resources/client-auth.d.ts.map +1 -1
  25. package/resources/client-auth.js.map +1 -1
  26. package/resources/client-auth.mjs.map +1 -1
  27. package/resources/cross-app.d.mts +5 -0
  28. package/resources/cross-app.d.mts.map +1 -1
  29. package/resources/cross-app.d.ts +5 -0
  30. package/resources/cross-app.d.ts.map +1 -1
  31. package/resources/embedded-wallets.d.mts +10 -10
  32. package/resources/embedded-wallets.d.mts.map +1 -1
  33. package/resources/embedded-wallets.d.ts +10 -10
  34. package/resources/embedded-wallets.d.ts.map +1 -1
  35. package/resources/fiat.d.mts +110 -0
  36. package/resources/fiat.d.mts.map +1 -0
  37. package/resources/fiat.d.ts +110 -0
  38. package/resources/fiat.d.ts.map +1 -0
  39. package/resources/fiat.js +9 -0
  40. package/resources/fiat.js.map +1 -0
  41. package/resources/fiat.mjs +5 -0
  42. package/resources/fiat.mjs.map +1 -0
  43. package/resources/funding.d.mts +46 -46
  44. package/resources/funding.d.mts.map +1 -1
  45. package/resources/funding.d.ts +46 -46
  46. package/resources/funding.d.ts.map +1 -1
  47. package/resources/index.d.mts +11 -10
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +11 -10
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js +3 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs +2 -1
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/key-quorums.d.mts +1 -132
  56. package/resources/key-quorums.d.mts.map +1 -1
  57. package/resources/key-quorums.d.ts +1 -132
  58. package/resources/key-quorums.d.ts.map +1 -1
  59. package/resources/key-quorums.js +0 -92
  60. package/resources/key-quorums.js.map +1 -1
  61. package/resources/key-quorums.mjs +0 -92
  62. package/resources/key-quorums.mjs.map +1 -1
  63. package/resources/policies.d.mts +2 -312
  64. package/resources/policies.d.mts.map +1 -1
  65. package/resources/policies.d.ts +2 -312
  66. package/resources/policies.d.ts.map +1 -1
  67. package/resources/policies.js +0 -229
  68. package/resources/policies.js.map +1 -1
  69. package/resources/policies.mjs +0 -229
  70. package/resources/policies.mjs.map +1 -1
  71. package/resources/swaps.d.mts +54 -26
  72. package/resources/swaps.d.mts.map +1 -1
  73. package/resources/swaps.d.ts +54 -26
  74. package/resources/swaps.d.ts.map +1 -1
  75. package/resources/transactions.d.mts +28 -44
  76. package/resources/transactions.d.mts.map +1 -1
  77. package/resources/transactions.d.ts +28 -44
  78. package/resources/transactions.d.ts.map +1 -1
  79. package/resources/transactions.js +0 -17
  80. package/resources/transactions.js.map +1 -1
  81. package/resources/transactions.mjs +0 -17
  82. package/resources/transactions.mjs.map +1 -1
  83. package/resources/users.d.mts +1 -345
  84. package/resources/users.d.mts.map +1 -1
  85. package/resources/users.d.ts +1 -345
  86. package/resources/users.d.ts.map +1 -1
  87. package/resources/users.js +0 -272
  88. package/resources/users.js.map +1 -1
  89. package/resources/users.mjs +0 -272
  90. package/resources/users.mjs.map +1 -1
  91. package/resources/wallet-actions.d.mts +22 -3
  92. package/resources/wallet-actions.d.mts.map +1 -1
  93. package/resources/wallet-actions.d.ts +22 -3
  94. package/resources/wallet-actions.d.ts.map +1 -1
  95. package/resources/wallets/index.d.mts +1 -1
  96. package/resources/wallets/index.d.mts.map +1 -1
  97. package/resources/wallets/index.d.ts +1 -1
  98. package/resources/wallets/index.d.ts.map +1 -1
  99. package/resources/wallets/index.js.map +1 -1
  100. package/resources/wallets/index.mjs.map +1 -1
  101. package/resources/wallets/transactions.d.mts +6 -2
  102. package/resources/wallets/transactions.d.mts.map +1 -1
  103. package/resources/wallets/transactions.d.ts +6 -2
  104. package/resources/wallets/transactions.d.ts.map +1 -1
  105. package/resources/wallets/wallets.d.mts +184 -342
  106. package/resources/wallets/wallets.d.mts.map +1 -1
  107. package/resources/wallets/wallets.d.ts +184 -342
  108. package/resources/wallets/wallets.d.ts.map +1 -1
  109. package/resources/wallets/wallets.js +41 -102
  110. package/resources/wallets/wallets.js.map +1 -1
  111. package/resources/wallets/wallets.mjs +41 -102
  112. package/resources/wallets/wallets.mjs.map +1 -1
  113. package/src/client.ts +122 -153
  114. package/src/internal/utils/log.ts +2 -0
  115. package/src/resources/apps.ts +6 -0
  116. package/src/resources/client-auth.ts +743 -787
  117. package/src/resources/cross-app.ts +6 -0
  118. package/src/resources/embedded-wallets.ts +16 -15
  119. package/src/resources/fiat.ts +177 -0
  120. package/src/resources/funding.ts +65 -65
  121. package/src/resources/index.ts +97 -107
  122. package/src/resources/key-quorums.ts +1 -203
  123. package/src/resources/policies.ts +1 -495
  124. package/src/resources/swaps.ts +59 -25
  125. package/src/resources/transactions.ts +35 -55
  126. package/src/resources/users.ts +1 -479
  127. package/src/resources/wallet-actions.ts +38 -2
  128. package/src/resources/wallets/index.ts +4 -9
  129. package/src/resources/wallets/transactions.ts +6 -2
  130. package/src/resources/wallets/wallets.ts +236 -450
  131. package/src/version.ts +1 -1
  132. package/version.d.mts +1 -1
  133. package/version.d.ts +1 -1
  134. package/version.js +1 -1
  135. package/version.mjs +1 -1
@@ -4,7 +4,6 @@ export { Balance, type BalanceGetResponse, type BalanceGetParams } from './balan
4
4
  export { Transactions, type TransactionGetResponse, type TransactionGetParams } from './transactions';
5
5
  export {
6
6
  Wallets,
7
- type WalletRevokeResponse,
8
7
  type AdditionalSignerInput,
9
8
  type AdditionalSignerItemInput,
10
9
  type Address,
@@ -176,12 +175,14 @@ export {
176
175
  type WalletAPIRevokeAuthorizationKeyInput,
177
176
  type WalletAsset,
178
177
  type WalletAuthenticateRequestBody,
178
+ type WalletAuthenticateWithJwtResponse,
179
179
  type WalletAuthorizationHeaders,
180
180
  type WalletBatchCreateInput,
181
181
  type WalletBatchCreateResponse,
182
182
  type WalletBatchCreateResult,
183
183
  type WalletBatchItemInput,
184
184
  type WalletChainType,
185
+ type WalletCreateWalletsWithRecoveryResponse,
185
186
  type WalletCustodian,
186
187
  type WalletEntropyType,
187
188
  type WalletEthereumAsset,
@@ -190,22 +191,16 @@ export {
190
191
  type WalletImportInitResponse,
191
192
  type WalletImportSupportedChains,
192
193
  type WalletImportSupportedEntropyTypes,
194
+ type WalletRevokeResponse,
193
195
  type WalletRpcRequestBody,
194
196
  type WalletRpcResponse,
195
197
  type WalletSolanaAsset,
196
198
  type WalletUpdateRequestBody,
197
- type WalletInitImportResponse,
198
- type WalletAuthenticateWithJwtResponse,
199
- type WalletCreateWalletsWithRecoveryResponse,
200
199
  type WalletCreateParams,
200
+ type WalletUpdateParams,
201
201
  type WalletListParams,
202
202
  type WalletExportParams,
203
- type WalletInitImportParams,
204
203
  type WalletRawSignParams,
205
204
  type WalletRpcParams,
206
- type WalletSubmitImportParams,
207
- type WalletUpdateParams,
208
- type WalletAuthenticateWithJwtParams,
209
- type WalletCreateWalletsWithRecoveryParams,
210
205
  type WalletsCursor,
211
206
  } from './wallets';
@@ -80,11 +80,15 @@ export interface TransactionGetParams {
80
80
  chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
81
81
 
82
82
  /**
83
- * Token contract address (EVM: 0x-prefixed hex) or mint address (Solana: base58),
84
- * used to filter wallet transactions.
83
+ * Exactly one of `token` or `asset` is required. Cannot be used together with
84
+ * `asset`.
85
85
  */
86
86
  token?: WalletsAPI.TransactionTokenAddressInput | Array<WalletsAPI.TransactionTokenAddressInput>;
87
87
 
88
+ /**
89
+ * Exactly one of `asset` or `token` is required. Cannot be used together with
90
+ * `token`.
91
+ */
88
92
  asset?:
89
93
  | 'usdc'
90
94
  | 'usdc.e'