@privy-io/node 0.2.0 → 0.3.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 (50) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/internal/to-file.d.mts +1 -1
  3. package/internal/to-file.d.ts +1 -1
  4. package/internal/to-file.js +1 -1
  5. package/internal/to-file.mjs +1 -1
  6. package/package.json +4 -3
  7. package/public-api/PrivyClient.d.mts +5 -1
  8. package/public-api/PrivyClient.d.mts.map +1 -1
  9. package/public-api/PrivyClient.d.ts +5 -1
  10. package/public-api/PrivyClient.d.ts.map +1 -1
  11. package/public-api/PrivyClient.js +6 -1
  12. package/public-api/PrivyClient.js.map +1 -1
  13. package/public-api/PrivyClient.mjs +6 -1
  14. package/public-api/PrivyClient.mjs.map +1 -1
  15. package/public-api/services/webhooks.d.mts +34 -0
  16. package/public-api/services/webhooks.d.mts.map +1 -0
  17. package/public-api/services/webhooks.d.ts +34 -0
  18. package/public-api/services/webhooks.d.ts.map +1 -0
  19. package/public-api/services/webhooks.js +48 -0
  20. package/public-api/services/webhooks.js.map +1 -0
  21. package/public-api/services/webhooks.mjs +43 -0
  22. package/public-api/services/webhooks.mjs.map +1 -0
  23. package/resources/transactions.d.mts +1 -1
  24. package/resources/transactions.d.mts.map +1 -1
  25. package/resources/transactions.d.ts +1 -1
  26. package/resources/transactions.d.ts.map +1 -1
  27. package/resources/users.d.mts +16 -3
  28. package/resources/users.d.mts.map +1 -1
  29. package/resources/users.d.ts +16 -3
  30. package/resources/users.d.ts.map +1 -1
  31. package/resources/wallets/balance.d.mts +4 -4
  32. package/resources/wallets/balance.d.mts.map +1 -1
  33. package/resources/wallets/balance.d.ts +4 -4
  34. package/resources/wallets/balance.d.ts.map +1 -1
  35. package/resources/wallets/transactions.d.mts +6 -6
  36. package/resources/wallets/transactions.d.mts.map +1 -1
  37. package/resources/wallets/transactions.d.ts +6 -6
  38. package/resources/wallets/transactions.d.ts.map +1 -1
  39. package/src/internal/to-file.ts +1 -1
  40. package/src/public-api/PrivyClient.ts +9 -0
  41. package/src/public-api/services/webhooks.ts +63 -0
  42. package/src/resources/transactions.ts +9 -1
  43. package/src/resources/users.ts +27 -1
  44. package/src/resources/wallets/balance.ts +39 -4
  45. package/src/resources/wallets/transactions.ts +44 -8
  46. package/src/version.ts +1 -1
  47. package/version.d.mts +1 -1
  48. package/version.d.ts +1 -1
  49. package/version.js +1 -1
  50. package/version.mjs +1 -1
@@ -42,7 +42,15 @@ export namespace TransactionGetResponse {
42
42
 
43
43
  privy_transaction_id: string;
44
44
 
45
- status: 'broadcasted' | 'confirmed' | 'execution_reverted' | 'failed' | 'replaced';
45
+ status:
46
+ | 'broadcasted'
47
+ | 'confirmed'
48
+ | 'execution_reverted'
49
+ | 'failed'
50
+ | 'replaced'
51
+ | 'finalized'
52
+ | 'provider_error'
53
+ | 'pending';
46
54
 
47
55
  transaction_hash: string | null;
48
56
 
@@ -53,9 +61,23 @@ export namespace TransactionGetResponse {
53
61
 
54
62
  export namespace Transaction {
55
63
  export interface UnionMember0 {
56
- asset: 'usdc' | 'eth' | 'pol' | 'sol';
57
-
58
- chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era';
64
+ asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'sol';
65
+
66
+ chain:
67
+ | 'ethereum'
68
+ | 'arbitrum'
69
+ | 'base'
70
+ | 'linea'
71
+ | 'optimism'
72
+ | 'polygon'
73
+ | 'solana'
74
+ | 'zksync_era'
75
+ | 'sepolia'
76
+ | 'arbitrum_sepolia'
77
+ | 'base_sepolia'
78
+ | 'linea_testnet'
79
+ | 'optimism_sepolia'
80
+ | 'polygon_amoy';
59
81
 
60
82
  display_values: { [key: string]: string };
61
83
 
@@ -75,9 +97,23 @@ export namespace TransactionGetResponse {
75
97
  }
76
98
 
77
99
  export interface UnionMember1 {
78
- asset: 'usdc' | 'eth' | 'pol' | 'sol';
79
-
80
- chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era';
100
+ asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'sol';
101
+
102
+ chain:
103
+ | 'ethereum'
104
+ | 'arbitrum'
105
+ | 'base'
106
+ | 'linea'
107
+ | 'optimism'
108
+ | 'polygon'
109
+ | 'solana'
110
+ | 'zksync_era'
111
+ | 'sepolia'
112
+ | 'arbitrum_sepolia'
113
+ | 'base_sepolia'
114
+ | 'linea_testnet'
115
+ | 'optimism_sepolia'
116
+ | 'polygon_amoy';
81
117
 
82
118
  display_values: { [key: string]: string };
83
119
 
@@ -99,7 +135,7 @@ export namespace TransactionGetResponse {
99
135
  }
100
136
 
101
137
  export interface TransactionGetParams {
102
- asset: 'usdc' | 'eth' | 'pol' | 'sol' | Array<'usdc' | 'eth' | 'pol' | 'sol'>;
138
+ asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'sol' | Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'sol'>;
103
139
 
104
140
  chain: 'base';
105
141
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0'; // x-release-please-version
1
+ export const VERSION = '0.3.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0";
1
+ export declare const VERSION = "0.3.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0";
1
+ export declare const VERSION = "0.3.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.2.0'; // x-release-please-version
4
+ exports.VERSION = '0.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.0'; // x-release-please-version
1
+ export const VERSION = '0.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map