@privy-io/node 0.10.1 → 0.11.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 (214) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/client.d.mts +37 -19
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +37 -19
  5. package/client.d.ts.map +1 -1
  6. package/client.js +29 -10
  7. package/client.js.map +1 -1
  8. package/client.mjs +30 -11
  9. package/client.mjs.map +1 -1
  10. package/index.d.mts +2 -0
  11. package/index.d.mts.map +1 -1
  12. package/index.d.ts +2 -0
  13. package/index.d.ts.map +1 -1
  14. package/index.js.map +1 -1
  15. package/index.mjs.map +1 -1
  16. package/package.json +12 -1
  17. package/public-api/PrivyClient.d.mts +3 -0
  18. package/public-api/PrivyClient.d.mts.map +1 -1
  19. package/public-api/PrivyClient.d.ts +3 -0
  20. package/public-api/PrivyClient.d.ts.map +1 -1
  21. package/public-api/PrivyClient.js +5 -0
  22. package/public-api/PrivyClient.js.map +1 -1
  23. package/public-api/PrivyClient.mjs +5 -0
  24. package/public-api/PrivyClient.mjs.map +1 -1
  25. package/public-api/services/apps.d.mts +25 -0
  26. package/public-api/services/apps.d.mts.map +1 -0
  27. package/public-api/services/apps.d.ts +25 -0
  28. package/public-api/services/apps.d.ts.map +1 -0
  29. package/public-api/services/apps.js +56 -0
  30. package/public-api/services/apps.js.map +1 -0
  31. package/public-api/services/apps.mjs +52 -0
  32. package/public-api/services/apps.mjs.map +1 -0
  33. package/public-api/services/policies.d.mts +6 -2
  34. package/public-api/services/policies.d.mts.map +1 -1
  35. package/public-api/services/policies.d.ts +6 -2
  36. package/public-api/services/policies.d.ts.map +1 -1
  37. package/public-api/services/policies.js +6 -0
  38. package/public-api/services/policies.js.map +1 -1
  39. package/public-api/services/policies.mjs +6 -0
  40. package/public-api/services/policies.mjs.map +1 -1
  41. package/public-api/services/wallets.d.mts +5 -1
  42. package/public-api/services/wallets.d.mts.map +1 -1
  43. package/public-api/services/wallets.d.ts +5 -1
  44. package/public-api/services/wallets.d.ts.map +1 -1
  45. package/public-api/services/wallets.js +6 -0
  46. package/public-api/services/wallets.js.map +1 -1
  47. package/public-api/services/wallets.mjs +6 -0
  48. package/public-api/services/wallets.mjs.map +1 -1
  49. package/resources/accounts.d.mts +182 -4
  50. package/resources/accounts.d.mts.map +1 -1
  51. package/resources/accounts.d.ts +182 -4
  52. package/resources/accounts.d.ts.map +1 -1
  53. package/resources/apps/allowlist.d.mts +81 -0
  54. package/resources/apps/allowlist.d.mts.map +1 -0
  55. package/resources/apps/allowlist.d.ts +81 -0
  56. package/resources/apps/allowlist.d.ts.map +1 -0
  57. package/resources/apps/allowlist.js +56 -0
  58. package/resources/apps/allowlist.js.map +1 -0
  59. package/resources/apps/allowlist.mjs +52 -0
  60. package/resources/apps/allowlist.mjs.map +1 -0
  61. package/resources/apps/apps.d.mts +238 -0
  62. package/resources/apps/apps.d.mts.map +1 -0
  63. package/resources/apps/apps.d.ts +238 -0
  64. package/resources/apps/apps.d.ts.map +1 -0
  65. package/resources/apps/apps.js +44 -0
  66. package/resources/apps/apps.js.map +1 -0
  67. package/resources/apps/apps.mjs +39 -0
  68. package/resources/apps/apps.mjs.map +1 -0
  69. package/resources/apps/index.d.mts +3 -0
  70. package/resources/apps/index.d.mts.map +1 -0
  71. package/resources/apps/index.d.ts +3 -0
  72. package/resources/apps/index.d.ts.map +1 -0
  73. package/resources/apps/index.js +9 -0
  74. package/resources/apps/index.js.map +1 -0
  75. package/resources/apps/index.mjs +4 -0
  76. package/resources/apps/index.mjs.map +1 -0
  77. package/resources/apps.d.mts +1 -151
  78. package/resources/apps.d.mts.map +1 -1
  79. package/resources/apps.d.ts +1 -151
  80. package/resources/apps.d.ts.map +1 -1
  81. package/resources/apps.js +2 -5
  82. package/resources/apps.js.map +1 -1
  83. package/resources/apps.mjs +1 -3
  84. package/resources/apps.mjs.map +1 -1
  85. package/resources/client-auth.d.mts +144 -1
  86. package/resources/client-auth.d.mts.map +1 -1
  87. package/resources/client-auth.d.ts +144 -1
  88. package/resources/client-auth.d.ts.map +1 -1
  89. package/resources/index.d.mts +11 -10
  90. package/resources/index.d.mts.map +1 -1
  91. package/resources/index.d.ts +11 -10
  92. package/resources/index.d.ts.map +1 -1
  93. package/resources/index.js +4 -2
  94. package/resources/index.js.map +1 -1
  95. package/resources/index.mjs +3 -2
  96. package/resources/index.mjs.map +1 -1
  97. package/resources/intents.d.mts +2815 -31
  98. package/resources/intents.d.mts.map +1 -1
  99. package/resources/intents.d.ts +2815 -31
  100. package/resources/intents.d.ts.map +1 -1
  101. package/resources/intents.js +156 -0
  102. package/resources/intents.js.map +1 -1
  103. package/resources/intents.mjs +156 -0
  104. package/resources/intents.mjs.map +1 -1
  105. package/resources/key-quorums.d.mts +45 -2
  106. package/resources/key-quorums.d.mts.map +1 -1
  107. package/resources/key-quorums.d.ts +45 -2
  108. package/resources/key-quorums.d.ts.map +1 -1
  109. package/resources/key-quorums.js +18 -1
  110. package/resources/key-quorums.js.map +1 -1
  111. package/resources/key-quorums.mjs +18 -1
  112. package/resources/key-quorums.mjs.map +1 -1
  113. package/resources/kraken-embed.d.mts +62 -0
  114. package/resources/kraken-embed.d.mts.map +1 -0
  115. package/resources/kraken-embed.d.ts +62 -0
  116. package/resources/kraken-embed.d.ts.map +1 -0
  117. package/resources/kraken-embed.js +9 -0
  118. package/resources/kraken-embed.js.map +1 -0
  119. package/resources/kraken-embed.mjs +5 -0
  120. package/resources/kraken-embed.mjs.map +1 -0
  121. package/resources/policies.d.mts +63 -56
  122. package/resources/policies.d.mts.map +1 -1
  123. package/resources/policies.d.ts +63 -56
  124. package/resources/policies.d.ts.map +1 -1
  125. package/resources/policies.js +3 -0
  126. package/resources/policies.js.map +1 -1
  127. package/resources/policies.mjs +3 -0
  128. package/resources/policies.mjs.map +1 -1
  129. package/resources/transactions.d.mts +3 -0
  130. package/resources/transactions.d.mts.map +1 -1
  131. package/resources/transactions.d.ts +3 -0
  132. package/resources/transactions.d.ts.map +1 -1
  133. package/resources/transactions.js +3 -0
  134. package/resources/transactions.js.map +1 -1
  135. package/resources/transactions.mjs +3 -0
  136. package/resources/transactions.mjs.map +1 -1
  137. package/resources/users.d.mts +50 -47
  138. package/resources/users.d.mts.map +1 -1
  139. package/resources/users.d.ts +50 -47
  140. package/resources/users.d.ts.map +1 -1
  141. package/resources/users.js +3 -0
  142. package/resources/users.js.map +1 -1
  143. package/resources/users.mjs +3 -0
  144. package/resources/users.mjs.map +1 -1
  145. package/resources/wallets/balance.d.mts +7 -4
  146. package/resources/wallets/balance.d.mts.map +1 -1
  147. package/resources/wallets/balance.d.ts +7 -4
  148. package/resources/wallets/balance.d.ts.map +1 -1
  149. package/resources/wallets/balance.js +3 -0
  150. package/resources/wallets/balance.js.map +1 -1
  151. package/resources/wallets/balance.mjs +3 -0
  152. package/resources/wallets/balance.mjs.map +1 -1
  153. package/resources/wallets/index.d.mts +1 -1
  154. package/resources/wallets/index.d.mts.map +1 -1
  155. package/resources/wallets/index.d.ts +1 -1
  156. package/resources/wallets/index.d.ts.map +1 -1
  157. package/resources/wallets/index.js.map +1 -1
  158. package/resources/wallets/index.mjs.map +1 -1
  159. package/resources/wallets/transactions.d.mts +9 -6
  160. package/resources/wallets/transactions.d.mts.map +1 -1
  161. package/resources/wallets/transactions.d.ts +9 -6
  162. package/resources/wallets/transactions.d.ts.map +1 -1
  163. package/resources/wallets/transactions.js +3 -0
  164. package/resources/wallets/transactions.js.map +1 -1
  165. package/resources/wallets/transactions.mjs +3 -0
  166. package/resources/wallets/transactions.mjs.map +1 -1
  167. package/resources/wallets/wallets.d.mts +126 -69
  168. package/resources/wallets/wallets.d.mts.map +1 -1
  169. package/resources/wallets/wallets.d.ts +126 -69
  170. package/resources/wallets/wallets.d.ts.map +1 -1
  171. package/resources/wallets/wallets.js +11 -5
  172. package/resources/wallets/wallets.js.map +1 -1
  173. package/resources/wallets/wallets.mjs +11 -5
  174. package/resources/wallets/wallets.mjs.map +1 -1
  175. package/resources/webhooks.d.mts +319 -283
  176. package/resources/webhooks.d.mts.map +1 -1
  177. package/resources/webhooks.d.ts +319 -283
  178. package/resources/webhooks.d.ts.map +1 -1
  179. package/resources/webhooks.js.map +1 -1
  180. package/resources/webhooks.mjs.map +1 -1
  181. package/resources/yield.d.mts +26 -9
  182. package/resources/yield.d.mts.map +1 -1
  183. package/resources/yield.d.ts +26 -9
  184. package/resources/yield.d.ts.map +1 -1
  185. package/src/client.ts +196 -37
  186. package/src/index.ts +10 -0
  187. package/src/public-api/PrivyClient.ts +7 -0
  188. package/src/public-api/services/apps.ts +85 -0
  189. package/src/public-api/services/policies.ts +15 -1
  190. package/src/public-api/services/wallets.ts +14 -0
  191. package/src/resources/accounts.ts +217 -3
  192. package/src/resources/apps/allowlist.ts +126 -0
  193. package/src/resources/apps/apps.ts +391 -0
  194. package/src/resources/apps/index.ts +20 -0
  195. package/src/resources/apps.ts +1 -257
  196. package/src/resources/client-auth.ts +202 -0
  197. package/src/resources/index.ts +93 -21
  198. package/src/resources/intents.ts +4579 -40
  199. package/src/resources/key-quorums.ts +50 -2
  200. package/src/resources/kraken-embed.ts +85 -0
  201. package/src/resources/policies.ts +83 -76
  202. package/src/resources/transactions.ts +3 -0
  203. package/src/resources/users.ts +66 -63
  204. package/src/resources/wallets/balance.ts +9 -2
  205. package/src/resources/wallets/index.ts +4 -2
  206. package/src/resources/wallets/transactions.ts +10 -4
  207. package/src/resources/wallets/wallets.ts +171 -93
  208. package/src/resources/webhooks.ts +454 -438
  209. package/src/resources/yield.ts +39 -10
  210. package/src/version.ts +1 -1
  211. package/version.d.mts +1 -1
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/version.mjs +1 -1
@@ -65,11 +65,6 @@ export interface EthereumYieldSweepResponse {
65
65
  */
66
66
  id: string;
67
67
 
68
- /**
69
- * The ID of the ERC-20 approval transaction (for deposits).
70
- */
71
- approval_transaction_id: string | null;
72
-
73
68
  /**
74
69
  * The amount of underlying assets involved. Set after the sweep is confirmed
75
70
  * on-chain.
@@ -91,11 +86,6 @@ export interface EthereumYieldSweepResponse {
91
86
  */
92
87
  status: EthereumYieldSweepStatus;
93
88
 
94
- /**
95
- * The ID of the underlying blockchain transaction (deposit/withdraw).
96
- */
97
- transaction_id: string | null;
98
-
99
89
  /**
100
90
  * Type of yield sweep.
101
91
  */
@@ -202,6 +192,11 @@ export interface EthereumVaultDetailsResponse {
202
192
  */
203
193
  caip2: string;
204
194
 
195
+ /**
196
+ * Human-readable vault name from the yield provider.
197
+ */
198
+ name: string;
199
+
205
200
  /**
206
201
  * Supported yield/lending protocol providers.
207
202
  */
@@ -360,10 +355,43 @@ export interface EthereumYieldClaimResponse {
360
355
  */
361
356
  caip2: EvmCaip2ChainID;
362
357
 
358
+ /**
359
+ * Unix timestamp of when the claim was created, in milliseconds.
360
+ */
361
+ created_at: number;
362
+
363
363
  /**
364
364
  * List of reward tokens claimed.
365
365
  */
366
366
  rewards: Array<EthereumYieldClaimReward>;
367
+
368
+ /**
369
+ * The current status of the claim transaction.
370
+ */
371
+ status:
372
+ | 'broadcasted'
373
+ | 'confirmed'
374
+ | 'execution_reverted'
375
+ | 'failed'
376
+ | 'replaced'
377
+ | 'finalized'
378
+ | 'provider_error'
379
+ | 'pending';
380
+
381
+ /**
382
+ * Unix timestamp of when the claim was last updated, in milliseconds.
383
+ */
384
+ updated_at: number;
385
+ }
386
+
387
+ /**
388
+ * Input for fetching a yield reward claim by ID.
389
+ */
390
+ export interface EthereumYieldClaimIDInput {
391
+ /**
392
+ * The yield claim transaction ID.
393
+ */
394
+ id: string;
367
395
  }
368
396
 
369
397
  export declare namespace Yield {
@@ -385,5 +413,6 @@ export declare namespace Yield {
385
413
  type EthereumYieldClaimInput as EthereumYieldClaimInput,
386
414
  type EthereumYieldClaimReward as EthereumYieldClaimReward,
387
415
  type EthereumYieldClaimResponse as EthereumYieldClaimResponse,
416
+ type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput,
388
417
  };
389
418
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.10.1'; // x-release-please-version
1
+ export const VERSION = '0.11.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.10.1";
1
+ export declare const VERSION = "0.11.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.10.1";
1
+ export declare const VERSION = "0.11.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.10.1'; // x-release-please-version
4
+ exports.VERSION = '0.11.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.10.1'; // x-release-please-version
1
+ export const VERSION = '0.11.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map