@privy-io/node 0.6.0 → 0.6.2

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 (62) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +3 -3
  11. package/resources/analytics.d.mts +17 -0
  12. package/resources/analytics.d.mts.map +1 -0
  13. package/resources/analytics.d.ts +17 -0
  14. package/resources/analytics.d.ts.map +1 -0
  15. package/resources/analytics.js +9 -0
  16. package/resources/analytics.js.map +1 -0
  17. package/resources/analytics.mjs +5 -0
  18. package/resources/analytics.mjs.map +1 -0
  19. package/resources/apps.d.mts +127 -0
  20. package/resources/apps.d.mts.map +1 -0
  21. package/resources/apps.d.ts +127 -0
  22. package/resources/apps.d.ts.map +1 -0
  23. package/resources/apps.js +9 -0
  24. package/resources/apps.js.map +1 -0
  25. package/resources/apps.mjs +5 -0
  26. package/resources/apps.mjs.map +1 -0
  27. package/resources/index.d.mts +3 -1
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +3 -1
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +5 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +2 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/wallets/index.d.mts +1 -1
  36. package/resources/wallets/index.d.mts.map +1 -1
  37. package/resources/wallets/index.d.ts +1 -1
  38. package/resources/wallets/index.d.ts.map +1 -1
  39. package/resources/wallets/index.js.map +1 -1
  40. package/resources/wallets/index.mjs.map +1 -1
  41. package/resources/wallets/transactions.d.mts +1 -1
  42. package/resources/wallets/transactions.d.mts.map +1 -1
  43. package/resources/wallets/transactions.d.ts +1 -1
  44. package/resources/wallets/transactions.d.ts.map +1 -1
  45. package/resources/wallets/wallets.d.mts +13 -6
  46. package/resources/wallets/wallets.d.mts.map +1 -1
  47. package/resources/wallets/wallets.d.ts +13 -6
  48. package/resources/wallets/wallets.d.ts.map +1 -1
  49. package/resources/wallets/wallets.js.map +1 -1
  50. package/resources/wallets/wallets.mjs.map +1 -1
  51. package/src/client.ts +12 -0
  52. package/src/resources/analytics.ts +20 -0
  53. package/src/resources/apps.ts +215 -0
  54. package/src/resources/index.ts +3 -0
  55. package/src/resources/wallets/index.ts +1 -0
  56. package/src/resources/wallets/transactions.ts +1 -1
  57. package/src/resources/wallets/wallets.ts +15 -5
  58. package/src/version.ts +1 -1
  59. package/version.d.mts +1 -1
  60. package/version.d.ts +1 -1
  61. package/version.js +1 -1
  62. package/version.mjs +1 -1
@@ -9,6 +9,7 @@ export {
9
9
  type Wallet,
10
10
  type WalletChainType,
11
11
  type ExtendedChainType,
12
+ type WalletCustodian,
12
13
  type EthereumPersonalSignRpcInput,
13
14
  type EthereumSignTransactionRpcInput,
14
15
  type EthereumSendTransactionRpcInput,
@@ -141,7 +141,7 @@ export namespace TransactionGetResponse {
141
141
  export interface TransactionGetParams {
142
142
  asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'sol' | Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'sol'>;
143
143
 
144
- chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana';
144
+ chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
145
145
 
146
146
  cursor?: string;
147
147
 
@@ -392,6 +392,13 @@ export type ExtendedChainType =
392
392
  | 'starknet'
393
393
  | 'spark';
394
394
 
395
+ /**
396
+ * Information about the custodian managing this wallet.
397
+ */
398
+ export interface WalletCustodian {
399
+ name: string;
400
+ }
401
+
395
402
  /**
396
403
  * Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
397
404
  */
@@ -956,6 +963,8 @@ export interface WalletInitImportResponse {
956
963
 
957
964
  export interface WalletRawSignResponse {
958
965
  data: WalletRawSignResponse.Data;
966
+
967
+ method: 'raw_sign';
959
968
  }
960
969
 
961
970
  export namespace WalletRawSignResponse {
@@ -1205,7 +1214,7 @@ export interface WalletRawSignParams {
1205
1214
  /**
1206
1215
  * Body param: Sign a pre-computed hash
1207
1216
  */
1208
- params: WalletRawSignParams.Hash | WalletRawSignParams.UnionMember1;
1217
+ params: WalletRawSignParams.Hash | WalletRawSignParams.Bytes;
1209
1218
 
1210
1219
  /**
1211
1220
  * Header param: Request authorization signature. If multiple signatures are
@@ -1232,21 +1241,21 @@ export namespace WalletRawSignParams {
1232
1241
  }
1233
1242
 
1234
1243
  /**
1235
- * Hash and sign bytes
1244
+ * Hash and sign bytes using the specified encoding and hash function.
1236
1245
  */
1237
- export interface UnionMember1 {
1246
+ export interface Bytes {
1238
1247
  /**
1239
1248
  * The bytes to hash and sign.
1240
1249
  */
1241
1250
  bytes: string;
1242
1251
 
1243
1252
  /**
1244
- * Encoding scheme for the bytes.
1253
+ * The encoding scheme for the bytes.
1245
1254
  */
1246
1255
  encoding: 'utf-8' | 'hex';
1247
1256
 
1248
1257
  /**
1249
- * Hash function to use for the bytes.
1258
+ * The hash function to hash the bytes.
1250
1259
  */
1251
1260
  hash_function: 'keccak256' | 'sha256';
1252
1261
  }
@@ -2045,6 +2054,7 @@ export declare namespace Wallets {
2045
2054
  type Wallet as Wallet,
2046
2055
  type WalletChainType as WalletChainType,
2047
2056
  type ExtendedChainType as ExtendedChainType,
2057
+ type WalletCustodian as WalletCustodian,
2048
2058
  type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
2049
2059
  type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput,
2050
2060
  type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.6.0'; // x-release-please-version
1
+ export const VERSION = '0.6.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.6.0";
1
+ export declare const VERSION = "0.6.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.6.0";
1
+ export declare const VERSION = "0.6.2";
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.6.0'; // x-release-please-version
4
+ exports.VERSION = '0.6.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.6.0'; // x-release-please-version
1
+ export const VERSION = '0.6.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map