@getpara/user-management-client 1.16.0 → 1.17.0
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/dist/types/client.d.ts +19 -3
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -143,6 +143,14 @@ interface sessionPasswordBody {
|
|
|
143
143
|
encryptedWalletPrivateKey?: string;
|
|
144
144
|
encryptionKeyHash?: string;
|
|
145
145
|
}
|
|
146
|
+
interface EncryptedWalletPrivateKey {
|
|
147
|
+
id: string;
|
|
148
|
+
userId: string;
|
|
149
|
+
encryptedPrivateKey: string;
|
|
150
|
+
encryptionKeyHash: string;
|
|
151
|
+
biometricPublicKey?: string;
|
|
152
|
+
passwordId?: string;
|
|
153
|
+
}
|
|
146
154
|
type BiometricLocationHintParams = AuthParams;
|
|
147
155
|
export type SDKType = 'WEB' | 'SERVER' | 'BRIDGE' | 'REACT_NATIVE';
|
|
148
156
|
export type VerifyTelegramRes = {
|
|
@@ -329,8 +337,12 @@ declare class Client {
|
|
|
329
337
|
publicKey: string;
|
|
330
338
|
}[];
|
|
331
339
|
}>;
|
|
332
|
-
uploadEncryptedWalletPrivateKey(userId: string, encryptedWalletPrivateKey: string, encryptionKeyHash: string, biometricPublicKey?: string, passwordId?: string): Promise<
|
|
333
|
-
|
|
340
|
+
uploadEncryptedWalletPrivateKey(userId: string, encryptedWalletPrivateKey: string, encryptionKeyHash: string, biometricPublicKey?: string, passwordId?: string): Promise<{
|
|
341
|
+
encryptedWalletPrivateKey: EncryptedWalletPrivateKey;
|
|
342
|
+
}>;
|
|
343
|
+
getEncryptedWalletPrivateKeys(userId: string, encryptionKeyHash: string): Promise<{
|
|
344
|
+
encryptedPrivateKeys: EncryptedWalletPrivateKey[];
|
|
345
|
+
}>;
|
|
334
346
|
getConversionRate(chainId: string, symbol: string, currency: string): Promise<any>;
|
|
335
347
|
getGasEstimate(chainId: string, totalGasPrice: string): Promise<any>;
|
|
336
348
|
getGasOracle(chainId: string): Promise<any>;
|
|
@@ -343,7 +355,11 @@ declare class Client {
|
|
|
343
355
|
getSupportedAuthMethods(auth: Auth): Promise<any>;
|
|
344
356
|
getPasswords(auth: Auth): Promise<PasswordEntity[]>;
|
|
345
357
|
verifyPasswordChallenge(partnerId: string, body: verifyPasswordChallengeBody): Promise<any>;
|
|
346
|
-
getEncryptedWalletPrivateKey(passwordId: string): Promise<
|
|
358
|
+
getEncryptedWalletPrivateKey(passwordId: string): Promise<{
|
|
359
|
+
data: {
|
|
360
|
+
encryptedWalletPrivateKey: EncryptedWalletPrivateKey;
|
|
361
|
+
};
|
|
362
|
+
}>;
|
|
347
363
|
getUser(userId: string): Promise<any>;
|
|
348
364
|
getAccountMetadata(userId: string, partnerId: string): Promise<{
|
|
349
365
|
accountMetadata: AccountMetadata;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/user-management-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"require": "./dist/cjs/index.js"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "857cb45a49040c475fa7431f36134b0d5cb630f5"
|
|
36
36
|
}
|