@privy-io/api-types 0.3.0 → 0.3.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 (45) hide show
  1. package/CHANGELOG.md +19 -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/wallets/index.d.mts +1 -1
  20. package/resources/wallets/index.d.mts.map +1 -1
  21. package/resources/wallets/index.d.ts +1 -1
  22. package/resources/wallets/index.d.ts.map +1 -1
  23. package/resources/wallets/index.js.map +1 -1
  24. package/resources/wallets/index.mjs.map +1 -1
  25. package/resources/wallets/transactions.d.mts +1 -1
  26. package/resources/wallets/transactions.d.mts.map +1 -1
  27. package/resources/wallets/transactions.d.ts +1 -1
  28. package/resources/wallets/transactions.d.ts.map +1 -1
  29. package/resources/wallets/wallets.d.mts +13 -6
  30. package/resources/wallets/wallets.d.mts.map +1 -1
  31. package/resources/wallets/wallets.d.ts +13 -6
  32. package/resources/wallets/wallets.d.ts.map +1 -1
  33. package/resources/wallets/wallets.js.map +1 -1
  34. package/resources/wallets/wallets.mjs.map +1 -1
  35. package/src/client.ts +2 -0
  36. package/src/resources/analytics.ts +2 -2
  37. package/src/resources/index.ts +1 -0
  38. package/src/resources/wallets/index.ts +1 -0
  39. package/src/resources/wallets/transactions.ts +1 -1
  40. package/src/resources/wallets/wallets.ts +15 -5
  41. package/src/version.ts +1 -1
  42. package/version.d.mts +1 -1
  43. package/version.d.ts +1 -1
  44. package/version.js +1 -1
  45. package/version.mjs +1 -1
@@ -399,6 +399,13 @@ export type ExtendedChainType =
399
399
  | 'starknet'
400
400
  | 'spark';
401
401
 
402
+ /**
403
+ * Information about the custodian managing this wallet.
404
+ */
405
+ export interface WalletCustodian {
406
+ name: string;
407
+ }
408
+
402
409
  /**
403
410
  * Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
404
411
  */
@@ -963,6 +970,8 @@ export interface WalletInitImportResponse {
963
970
 
964
971
  export interface WalletRawSignResponse {
965
972
  data: WalletRawSignResponse.Data;
973
+
974
+ method: 'raw_sign';
966
975
  }
967
976
 
968
977
  export namespace WalletRawSignResponse {
@@ -1212,7 +1221,7 @@ export interface WalletRawSignParams {
1212
1221
  /**
1213
1222
  * Body param: Sign a pre-computed hash
1214
1223
  */
1215
- params: WalletRawSignParams.Hash | WalletRawSignParams.UnionMember1;
1224
+ params: WalletRawSignParams.Hash | WalletRawSignParams.Bytes;
1216
1225
 
1217
1226
  /**
1218
1227
  * Header param: Request authorization signature. If multiple signatures are
@@ -1239,21 +1248,21 @@ export namespace WalletRawSignParams {
1239
1248
  }
1240
1249
 
1241
1250
  /**
1242
- * Hash and sign bytes
1251
+ * Hash and sign bytes using the specified encoding and hash function.
1243
1252
  */
1244
- export interface UnionMember1 {
1253
+ export interface Bytes {
1245
1254
  /**
1246
1255
  * The bytes to hash and sign.
1247
1256
  */
1248
1257
  bytes: string;
1249
1258
 
1250
1259
  /**
1251
- * Encoding scheme for the bytes.
1260
+ * The encoding scheme for the bytes.
1252
1261
  */
1253
1262
  encoding: 'utf-8' | 'hex';
1254
1263
 
1255
1264
  /**
1256
- * Hash function to use for the bytes.
1265
+ * The hash function to hash the bytes.
1257
1266
  */
1258
1267
  hash_function: 'keccak256' | 'sha256';
1259
1268
  }
@@ -2053,6 +2062,7 @@ export declare namespace Wallets {
2053
2062
  type WalletChainType as WalletChainType,
2054
2063
  type WalletRevokeResponse as WalletRevokeResponse,
2055
2064
  type ExtendedChainType as ExtendedChainType,
2065
+ type WalletCustodian as WalletCustodian,
2056
2066
  type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
2057
2067
  type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput,
2058
2068
  type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.3.0'; // x-release-please-version
1
+ export const VERSION = '0.3.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.3.0";
1
+ export declare const VERSION = "0.3.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.3.0";
1
+ export declare const VERSION = "0.3.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.3.0'; // x-release-please-version
4
+ exports.VERSION = '0.3.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.3.0'; // x-release-please-version
1
+ export const VERSION = '0.3.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map