@privy-io/node 0.4.0 → 0.4.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 (37) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/package.json +1 -1
  4. package/resources/key-quorums.d.mts +18 -3
  5. package/resources/key-quorums.d.mts.map +1 -1
  6. package/resources/key-quorums.d.ts +18 -3
  7. package/resources/key-quorums.d.ts.map +1 -1
  8. package/resources/policies.d.mts +6 -4
  9. package/resources/policies.d.mts.map +1 -1
  10. package/resources/policies.d.ts +6 -4
  11. package/resources/policies.d.ts.map +1 -1
  12. package/resources/users.d.mts +1 -1
  13. package/resources/users.d.mts.map +1 -1
  14. package/resources/users.d.ts +1 -1
  15. package/resources/users.d.ts.map +1 -1
  16. package/resources/wallets/transactions.d.mts +1 -0
  17. package/resources/wallets/transactions.d.mts.map +1 -1
  18. package/resources/wallets/transactions.d.ts +1 -0
  19. package/resources/wallets/transactions.d.ts.map +1 -1
  20. package/resources/wallets/wallets.d.mts +31 -9
  21. package/resources/wallets/wallets.d.mts.map +1 -1
  22. package/resources/wallets/wallets.d.ts +31 -9
  23. package/resources/wallets/wallets.d.ts.map +1 -1
  24. package/resources/wallets/wallets.js +5 -1
  25. package/resources/wallets/wallets.js.map +1 -1
  26. package/resources/wallets/wallets.mjs +5 -1
  27. package/resources/wallets/wallets.mjs.map +1 -1
  28. package/src/resources/key-quorums.ts +18 -3
  29. package/src/resources/policies.ts +6 -4
  30. package/src/resources/users.ts +1 -1
  31. package/src/resources/wallets/transactions.ts +2 -0
  32. package/src/resources/wallets/wallets.ts +33 -9
  33. package/src/version.ts +1 -1
  34. package/version.d.mts +1 -1
  35. package/version.d.ts +1 -1
  36. package/version.js +1 -1
  37. package/version.mjs +1 -1
@@ -1100,8 +1100,8 @@ export namespace LinkedAccountEmbeddedWalletWithID {
1100
1100
  export type SmartWalletType =
1101
1101
  | 'safe'
1102
1102
  | 'kernel'
1103
- | 'biconomy'
1104
1103
  | 'light_account'
1104
+ | 'biconomy'
1105
1105
  | 'coinbase_smart_wallet'
1106
1106
  | 'thirdweb';
1107
1107
 
@@ -146,6 +146,8 @@ export interface TransactionGetParams {
146
146
  cursor?: string;
147
147
 
148
148
  limit?: number | null;
149
+
150
+ tx_hash?: string;
149
151
  }
150
152
 
151
153
  export declare namespace Transactions {
@@ -113,7 +113,11 @@ export class Wallets extends APIResource {
113
113
  * ```ts
114
114
  * const response = await client.wallets._rawSign(
115
115
  * 'wallet_id',
116
- * { params: {} },
116
+ * {
117
+ * params: {
118
+ * hash: '0x0775aeed9c9ce6e0fbc4db25c5e4e6368029651c905c286f813126a09025a21e',
119
+ * },
120
+ * },
117
121
  * );
118
122
  * ```
119
123
  */
@@ -718,8 +722,9 @@ export namespace WalletCreateParams {
718
722
  }
719
723
 
720
724
  /**
721
- * The P-256 public key of the owner of the resource. If you provide this, do not
722
- * specify an owner_id as it will be generated automatically.
725
+ * The P-256 public key of the owner of the resource, in base64-encoded DER format.
726
+ * If you provide this, do not specify an owner_id as it will be generated
727
+ * automatically.
723
728
  */
724
729
  export interface PublicKeyOwner {
725
730
  public_key: string;
@@ -830,9 +835,9 @@ export declare namespace WalletInitImportParams {
830
835
 
831
836
  export interface WalletRawSignParams {
832
837
  /**
833
- * Body param:
838
+ * Body param: Sign a pre-computed hash
834
839
  */
835
- params: WalletRawSignParams.Params;
840
+ params: WalletRawSignParams.Hash | WalletRawSignParams.UnionMember1;
836
841
 
837
842
  /**
838
843
  * Header param: Request authorization signature. If multiple signatures are
@@ -848,11 +853,29 @@ export interface WalletRawSignParams {
848
853
  }
849
854
 
850
855
  export namespace WalletRawSignParams {
851
- export interface Params {
856
+ /**
857
+ * Sign a pre-computed hash
858
+ */
859
+ export interface Hash {
852
860
  /**
853
861
  * The hash to sign. Must start with `0x`.
854
862
  */
855
- hash?: string;
863
+ hash: string;
864
+ }
865
+
866
+ /**
867
+ * Hash and sign bytes (Tron only)
868
+ */
869
+ export interface UnionMember1 {
870
+ /**
871
+ * The bytes to hash and sign.
872
+ */
873
+ bytes: string;
874
+
875
+ /**
876
+ * Encoding scheme. Currently only utf-8 is supported.
877
+ */
878
+ encoding: 'utf-8';
856
879
  }
857
880
  }
858
881
 
@@ -1475,8 +1498,9 @@ export namespace WalletUpdateParams {
1475
1498
  }
1476
1499
 
1477
1500
  /**
1478
- * The P-256 public key of the owner of the resource. If you provide this, do not
1479
- * specify an owner_id as it will be generated automatically.
1501
+ * The P-256 public key of the owner of the resource, in base64-encoded DER format.
1502
+ * If you provide this, do not specify an owner_id as it will be generated
1503
+ * automatically.
1480
1504
  */
1481
1505
  export interface PublicKeyOwner {
1482
1506
  public_key: string;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.4.0'; // x-release-please-version
1
+ export const VERSION = '0.4.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.4.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.4.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.4.0'; // x-release-please-version
4
+ exports.VERSION = '0.4.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.4.0'; // x-release-please-version
1
+ export const VERSION = '0.4.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map