@privy-io/api-types 0.8.0 → 0.9.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 +19 -0
  2. package/client.d.mts +19 -19
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +19 -19
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/internal/utils/env.js +2 -2
  10. package/internal/utils/env.js.map +1 -1
  11. package/internal/utils/env.mjs +2 -2
  12. package/internal/utils/env.mjs.map +1 -1
  13. package/package.json +1 -1
  14. package/resources/apps.d.mts +16 -2
  15. package/resources/apps.d.mts.map +1 -1
  16. package/resources/apps.d.ts +16 -2
  17. package/resources/apps.d.ts.map +1 -1
  18. package/resources/client-auth.d.mts +14 -14
  19. package/resources/client-auth.d.mts.map +1 -1
  20. package/resources/client-auth.d.ts +14 -14
  21. package/resources/client-auth.d.ts.map +1 -1
  22. package/resources/embedded-wallets.d.mts +50 -50
  23. package/resources/embedded-wallets.d.mts.map +1 -1
  24. package/resources/embedded-wallets.d.ts +50 -50
  25. package/resources/embedded-wallets.d.ts.map +1 -1
  26. package/resources/index.d.mts +11 -11
  27. package/resources/index.d.mts.map +1 -1
  28. package/resources/index.d.ts +11 -11
  29. package/resources/index.d.ts.map +1 -1
  30. package/resources/index.js.map +1 -1
  31. package/resources/index.mjs.map +1 -1
  32. package/resources/intents.d.mts +2 -2
  33. package/resources/intents.d.mts.map +1 -1
  34. package/resources/intents.d.ts +2 -2
  35. package/resources/intents.d.ts.map +1 -1
  36. package/resources/kraken-embed.d.mts +52 -1
  37. package/resources/kraken-embed.d.mts.map +1 -1
  38. package/resources/kraken-embed.d.ts +52 -1
  39. package/resources/kraken-embed.d.ts.map +1 -1
  40. package/resources/policies.d.mts +223 -112
  41. package/resources/policies.d.mts.map +1 -1
  42. package/resources/policies.d.ts +223 -112
  43. package/resources/policies.d.ts.map +1 -1
  44. package/resources/swaps.d.mts +3 -3
  45. package/resources/swaps.d.mts.map +1 -1
  46. package/resources/swaps.d.ts +3 -3
  47. package/resources/swaps.d.ts.map +1 -1
  48. package/resources/transactions.d.mts +10 -20
  49. package/resources/transactions.d.mts.map +1 -1
  50. package/resources/transactions.d.ts +10 -20
  51. package/resources/transactions.d.ts.map +1 -1
  52. package/resources/users.d.mts +199 -199
  53. package/resources/users.d.mts.map +1 -1
  54. package/resources/users.d.ts +199 -199
  55. package/resources/users.d.ts.map +1 -1
  56. package/resources/wallet-actions.d.mts +255 -3
  57. package/resources/wallet-actions.d.mts.map +1 -1
  58. package/resources/wallet-actions.d.ts +255 -3
  59. package/resources/wallet-actions.d.ts.map +1 -1
  60. package/resources/wallets/balance.d.mts +2 -1
  61. package/resources/wallets/balance.d.mts.map +1 -1
  62. package/resources/wallets/balance.d.ts +2 -1
  63. package/resources/wallets/balance.d.ts.map +1 -1
  64. package/resources/wallets/balance.js.map +1 -1
  65. package/resources/wallets/balance.mjs.map +1 -1
  66. package/resources/wallets/index.d.mts +1 -1
  67. package/resources/wallets/index.d.mts.map +1 -1
  68. package/resources/wallets/index.d.ts +1 -1
  69. package/resources/wallets/index.d.ts.map +1 -1
  70. package/resources/wallets/index.js.map +1 -1
  71. package/resources/wallets/index.mjs.map +1 -1
  72. package/resources/wallets/transactions.d.mts +10 -30
  73. package/resources/wallets/transactions.d.mts.map +1 -1
  74. package/resources/wallets/transactions.d.ts +10 -30
  75. package/resources/wallets/transactions.d.ts.map +1 -1
  76. package/resources/wallets/transactions.js.map +1 -1
  77. package/resources/wallets/transactions.mjs.map +1 -1
  78. package/resources/wallets/wallets.d.mts +222 -116
  79. package/resources/wallets/wallets.d.mts.map +1 -1
  80. package/resources/wallets/wallets.d.ts +222 -116
  81. package/resources/wallets/wallets.d.ts.map +1 -1
  82. package/resources/wallets/wallets.js +6 -5
  83. package/resources/wallets/wallets.js.map +1 -1
  84. package/resources/wallets/wallets.mjs +6 -5
  85. package/resources/wallets/wallets.mjs.map +1 -1
  86. package/resources/webhooks.d.mts +798 -93
  87. package/resources/webhooks.d.mts.map +1 -1
  88. package/resources/webhooks.d.ts +798 -93
  89. package/resources/webhooks.d.ts.map +1 -1
  90. package/src/client.ts +163 -35
  91. package/src/internal/utils/env.ts +2 -2
  92. package/src/resources/apps.ts +24 -1
  93. package/src/resources/client-auth.ts +17 -17
  94. package/src/resources/embedded-wallets.ts +59 -59
  95. package/src/resources/index.ts +92 -31
  96. package/src/resources/intents.ts +2 -2
  97. package/src/resources/kraken-embed.ts +105 -0
  98. package/src/resources/policies.ts +310 -181
  99. package/src/resources/swaps.ts +4 -4
  100. package/src/resources/transactions.ts +11 -38
  101. package/src/resources/users.ts +724 -724
  102. package/src/resources/wallet-actions.ts +324 -2
  103. package/src/resources/wallets/balance.ts +2 -1
  104. package/src/resources/wallets/index.ts +13 -2
  105. package/src/resources/wallets/transactions.ts +10 -88
  106. package/src/resources/wallets/wallets.ts +319 -136
  107. package/src/resources/webhooks.ts +1021 -141
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
@@ -19,7 +19,7 @@ export class Transactions extends APIResource {
19
19
  * );
20
20
  * ```
21
21
  */
22
- get(transactionID: string, options?: RequestOptions): APIPromise<TransactionGetResponse> {
22
+ get(transactionID: string, options?: RequestOptions): APIPromise<Transaction> {
23
23
  return this._client.get(path`/v1/transactions/${transactionID}`, options);
24
24
  }
25
25
  }
@@ -217,43 +217,9 @@ export type TransactionScanningSimulationResult =
217
217
  | TransactionScanningSimulationSuccessResult;
218
218
 
219
219
  /**
220
- * A list of transactions.
220
+ * A transaction from a Privy wallet.
221
221
  */
222
- export interface TransactionList {
223
- transactions: Array<TransactionList.Transaction>;
224
- }
225
-
226
- export namespace TransactionList {
227
- export interface Transaction {
228
- id: string;
229
-
230
- caip2: string;
231
-
232
- created_at: number;
233
-
234
- status:
235
- | 'broadcasted'
236
- | 'confirmed'
237
- | 'execution_reverted'
238
- | 'failed'
239
- | 'replaced'
240
- | 'finalized'
241
- | 'provider_error'
242
- | 'pending';
243
-
244
- transaction_hash: string | null;
245
-
246
- wallet_id: string;
247
-
248
- reference_id?: string | null;
249
-
250
- sponsored?: boolean;
251
-
252
- user_operation_hash?: string;
253
- }
254
- }
255
-
256
- export interface TransactionGetResponse {
222
+ export interface Transaction {
257
223
  id: string;
258
224
 
259
225
  caip2: string;
@@ -281,6 +247,13 @@ export interface TransactionGetResponse {
281
247
  user_operation_hash?: string;
282
248
  }
283
249
 
250
+ /**
251
+ * A list of transactions.
252
+ */
253
+ export interface TransactionList {
254
+ transactions: Array<Transaction>;
255
+ }
256
+
284
257
  export declare namespace Transactions {
285
258
  export {
286
259
  type TransactionScanningRequestBody as TransactionScanningRequestBody,
@@ -299,7 +272,7 @@ export declare namespace Transactions {
299
272
  type TransactionScanningSimulationErrorResult as TransactionScanningSimulationErrorResult,
300
273
  type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult,
301
274
  type TransactionScanningSimulationResult as TransactionScanningSimulationResult,
275
+ type Transaction as Transaction,
302
276
  type TransactionList as TransactionList,
303
- type TransactionGetResponse as TransactionGetResponse,
304
277
  };
305
278
  }