@privy-io/api-types 0.2.0 → 0.3.1

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 (57) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/analytics.d.mts +1 -1
  10. package/resources/analytics.d.mts.map +1 -1
  11. package/resources/analytics.d.ts +1 -1
  12. package/resources/analytics.d.ts.map +1 -1
  13. package/resources/index.d.mts +1 -1
  14. package/resources/index.d.mts.map +1 -1
  15. package/resources/index.d.ts +1 -1
  16. package/resources/index.d.ts.map +1 -1
  17. package/resources/index.js.map +1 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/policies.d.mts +122 -18
  20. package/resources/policies.d.mts.map +1 -1
  21. package/resources/policies.d.ts +122 -18
  22. package/resources/policies.d.ts.map +1 -1
  23. package/resources/users.d.mts +4 -1
  24. package/resources/users.d.mts.map +1 -1
  25. package/resources/users.d.ts +4 -1
  26. package/resources/users.d.ts.map +1 -1
  27. package/resources/wallets/index.d.mts +1 -1
  28. package/resources/wallets/index.d.mts.map +1 -1
  29. package/resources/wallets/index.d.ts +1 -1
  30. package/resources/wallets/index.d.ts.map +1 -1
  31. package/resources/wallets/index.js.map +1 -1
  32. package/resources/wallets/index.mjs.map +1 -1
  33. package/resources/wallets/transactions.d.mts +2 -2
  34. package/resources/wallets/transactions.d.mts.map +1 -1
  35. package/resources/wallets/transactions.d.ts +2 -2
  36. package/resources/wallets/transactions.d.ts.map +1 -1
  37. package/resources/wallets/transactions.js +1 -1
  38. package/resources/wallets/transactions.mjs +1 -1
  39. package/resources/wallets/wallets.d.mts +20 -9
  40. package/resources/wallets/wallets.d.mts.map +1 -1
  41. package/resources/wallets/wallets.d.ts +20 -9
  42. package/resources/wallets/wallets.d.ts.map +1 -1
  43. package/resources/wallets/wallets.js.map +1 -1
  44. package/resources/wallets/wallets.mjs.map +1 -1
  45. package/src/client.ts +2 -0
  46. package/src/resources/analytics.ts +2 -2
  47. package/src/resources/index.ts +1 -0
  48. package/src/resources/policies.ts +210 -2
  49. package/src/resources/users.ts +4 -14
  50. package/src/resources/wallets/index.ts +1 -0
  51. package/src/resources/wallets/transactions.ts +2 -2
  52. package/src/resources/wallets/wallets.ts +33 -21
  53. package/src/version.ts +1 -1
  54. package/version.d.mts +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/version.mjs +1 -1
@@ -13,7 +13,7 @@ export class Transactions extends APIResource {
13
13
  * ```ts
14
14
  * const transaction = await client.wallets.transactions.get(
15
15
  * 'wallet_id',
16
- * { asset: 'usdc', chain: 'base' },
16
+ * { asset: 'usdc', chain: 'ethereum' },
17
17
  * );
18
18
  * ```
19
19
  */
@@ -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: 'base';
144
+ chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
145
145
 
146
146
  cursor?: string;
147
147
 
@@ -288,7 +288,7 @@ export type CurveSigningChainType =
288
288
  /**
289
289
  * The wallet chain types that offer first class support.
290
290
  */
291
- export type FirstClassChainType = 'solana' | 'ethereum';
291
+ export type FirstClassChainType = 'ethereum' | 'solana';
292
292
 
293
293
  export interface Wallet {
294
294
  /**
@@ -362,8 +362,8 @@ export namespace Wallet {
362
362
  * The wallet chain types.
363
363
  */
364
364
  export type WalletChainType =
365
- | 'solana'
366
365
  | 'ethereum'
366
+ | 'solana'
367
367
  | 'cosmos'
368
368
  | 'stellar'
369
369
  | 'sui'
@@ -383,6 +383,22 @@ export interface WalletRevokeResponse {
383
383
  message: string;
384
384
  }
385
385
 
386
+ /**
387
+ * The wallet chain types that are not first class chains.
388
+ */
389
+ export type ExtendedChainType =
390
+ | 'cosmos'
391
+ | 'stellar'
392
+ | 'sui'
393
+ | 'aptos'
394
+ | 'movement'
395
+ | 'tron'
396
+ | 'bitcoin-segwit'
397
+ | 'near'
398
+ | 'ton'
399
+ | 'starknet'
400
+ | 'spark';
401
+
386
402
  /**
387
403
  * Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
388
404
  */
@@ -1110,20 +1126,10 @@ export namespace WalletCreateParams {
1110
1126
  }
1111
1127
 
1112
1128
  export interface WalletListParams extends CursorParams {
1113
- chain_type?:
1114
- | 'cosmos'
1115
- | 'stellar'
1116
- | 'sui'
1117
- | 'aptos'
1118
- | 'movement'
1119
- | 'tron'
1120
- | 'bitcoin-segwit'
1121
- | 'near'
1122
- | 'ton'
1123
- | 'starknet'
1124
- | 'spark'
1125
- | 'solana'
1126
- | 'ethereum';
1129
+ /**
1130
+ * The wallet chain types.
1131
+ */
1132
+ chain_type?: WalletChainType;
1127
1133
 
1128
1134
  user_id?: string;
1129
1135
  }
@@ -1206,7 +1212,7 @@ export interface WalletRawSignParams {
1206
1212
  /**
1207
1213
  * Body param: Sign a pre-computed hash
1208
1214
  */
1209
- params: WalletRawSignParams.Hash | WalletRawSignParams.Bytes;
1215
+ params: WalletRawSignParams.Hash | WalletRawSignParams.UnionMember1;
1210
1216
 
1211
1217
  /**
1212
1218
  * Header param: Request authorization signature. If multiple signatures are
@@ -1233,18 +1239,23 @@ export namespace WalletRawSignParams {
1233
1239
  }
1234
1240
 
1235
1241
  /**
1236
- * Hash and sign bytes (Tron only)
1242
+ * Hash and sign bytes
1237
1243
  */
1238
- export interface Bytes {
1244
+ export interface UnionMember1 {
1239
1245
  /**
1240
1246
  * The bytes to hash and sign.
1241
1247
  */
1242
1248
  bytes: string;
1243
1249
 
1244
1250
  /**
1245
- * Encoding scheme. Currently only utf-8 is supported.
1251
+ * Encoding scheme for the bytes.
1252
+ */
1253
+ encoding: 'utf-8' | 'hex';
1254
+
1255
+ /**
1256
+ * Hash function to use for the bytes.
1246
1257
  */
1247
- encoding: 'utf-8';
1258
+ hash_function: 'keccak256' | 'sha256';
1248
1259
  }
1249
1260
  }
1250
1261
 
@@ -2041,6 +2052,7 @@ export declare namespace Wallets {
2041
2052
  type Wallet as Wallet,
2042
2053
  type WalletChainType as WalletChainType,
2043
2054
  type WalletRevokeResponse as WalletRevokeResponse,
2055
+ type ExtendedChainType as ExtendedChainType,
2044
2056
  type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
2045
2057
  type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput,
2046
2058
  type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0'; // x-release-please-version
1
+ export const VERSION = '0.3.1'; // 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.1";
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.1";
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.1'; // 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.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map