@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.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/resources/key-quorums.d.mts +18 -3
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +18 -3
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +6 -4
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +6 -4
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +1 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/transactions.d.mts +1 -0
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +1 -0
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +31 -9
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +31 -9
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +5 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +5 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/src/resources/key-quorums.ts +18 -3
- package/src/resources/policies.ts +6 -4
- package/src/resources/users.ts +1 -1
- package/src/resources/wallets/transactions.ts +2 -0
- package/src/resources/wallets/wallets.ts +33 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/users.ts
CHANGED
|
@@ -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
|
-
* {
|
|
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
|
|
722
|
-
* specify an owner_id as it will be generated
|
|
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.
|
|
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
|
-
|
|
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
|
|
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
|
|
1479
|
-
* specify an owner_id as it will be generated
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.4.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.4.
|
|
1
|
+
export const VERSION = '0.4.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|