@getpara/user-management-client 1.15.1 → 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/cjs/client.js +2 -2
- package/dist/esm/client.js +2 -2
- package/dist/types/client.d.ts +22 -4
- package/package.json +2 -2
package/dist/cjs/client.js
CHANGED
|
@@ -309,8 +309,8 @@ class Client {
|
|
|
309
309
|
const res = yield this.baseRequest.post("/recovery", body);
|
|
310
310
|
return res;
|
|
311
311
|
});
|
|
312
|
-
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc) => __async(this, null, function* () {
|
|
313
|
-
const body = { message, scheme, cosmosSignDoc };
|
|
312
|
+
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId) => __async(this, null, function* () {
|
|
313
|
+
const body = { message, scheme, cosmosSignDoc, protocolId };
|
|
314
314
|
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/messages/sign`, body);
|
|
315
315
|
return res.data;
|
|
316
316
|
});
|
package/dist/esm/client.js
CHANGED
|
@@ -232,8 +232,8 @@ class Client {
|
|
|
232
232
|
const res = yield this.baseRequest.post("/recovery", body);
|
|
233
233
|
return res;
|
|
234
234
|
});
|
|
235
|
-
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc) => __async(this, null, function* () {
|
|
236
|
-
const body = { message, scheme, cosmosSignDoc };
|
|
235
|
+
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId) => __async(this, null, function* () {
|
|
236
|
+
const body = { message, scheme, cosmosSignDoc, protocolId };
|
|
237
237
|
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/messages/sign`, body);
|
|
238
238
|
return res.data;
|
|
239
239
|
});
|
package/dist/types/client.d.ts
CHANGED
|
@@ -124,11 +124,13 @@ interface claimPreGenWalletsBody {
|
|
|
124
124
|
interface signTransactionBody {
|
|
125
125
|
transaction: string;
|
|
126
126
|
chainId: string;
|
|
127
|
+
protocolId?: string;
|
|
127
128
|
}
|
|
128
129
|
interface sendTransactionBody {
|
|
129
130
|
transaction: string;
|
|
130
131
|
chain?: Chain;
|
|
131
132
|
chainId?: string;
|
|
133
|
+
protocolId?: string;
|
|
132
134
|
}
|
|
133
135
|
interface AcceptScopesBody {
|
|
134
136
|
scopeIds: string[];
|
|
@@ -141,6 +143,14 @@ interface sessionPasswordBody {
|
|
|
141
143
|
encryptedWalletPrivateKey?: string;
|
|
142
144
|
encryptionKeyHash?: string;
|
|
143
145
|
}
|
|
146
|
+
interface EncryptedWalletPrivateKey {
|
|
147
|
+
id: string;
|
|
148
|
+
userId: string;
|
|
149
|
+
encryptedPrivateKey: string;
|
|
150
|
+
encryptionKeyHash: string;
|
|
151
|
+
biometricPublicKey?: string;
|
|
152
|
+
passwordId?: string;
|
|
153
|
+
}
|
|
144
154
|
type BiometricLocationHintParams = AuthParams;
|
|
145
155
|
export type SDKType = 'WEB' | 'SERVER' | 'BRIDGE' | 'REACT_NATIVE';
|
|
146
156
|
export type VerifyTelegramRes = {
|
|
@@ -200,7 +210,7 @@ declare class Client {
|
|
|
200
210
|
logout: () => Promise<any>;
|
|
201
211
|
recoveryVerification: (email: string, verificationCode: string) => Promise<any>;
|
|
202
212
|
recoveryInit: (email: string) => Promise<any>;
|
|
203
|
-
preSignMessage: (userId: string, walletId: string, message: string, scheme?: WalletScheme, cosmosSignDoc?: string) => Promise<any>;
|
|
213
|
+
preSignMessage: (userId: string, walletId: string, message: string, scheme?: WalletScheme, cosmosSignDoc?: string, protocolId?: string) => Promise<any>;
|
|
204
214
|
deleteSelf: (userId: string) => Promise<any>;
|
|
205
215
|
uploadKeyshares(userId: string, walletId: string, encryptedKeyshares: EncryptedKeyShare[]): Promise<any>;
|
|
206
216
|
uploadUserKeyShares(userId: string, encryptedKeyshares: (EncryptedKeyShare & {
|
|
@@ -327,8 +337,12 @@ declare class Client {
|
|
|
327
337
|
publicKey: string;
|
|
328
338
|
}[];
|
|
329
339
|
}>;
|
|
330
|
-
uploadEncryptedWalletPrivateKey(userId: string, encryptedWalletPrivateKey: string, encryptionKeyHash: string, biometricPublicKey?: string, passwordId?: string): Promise<
|
|
331
|
-
|
|
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
|
+
}>;
|
|
332
346
|
getConversionRate(chainId: string, symbol: string, currency: string): Promise<any>;
|
|
333
347
|
getGasEstimate(chainId: string, totalGasPrice: string): Promise<any>;
|
|
334
348
|
getGasOracle(chainId: string): Promise<any>;
|
|
@@ -341,7 +355,11 @@ declare class Client {
|
|
|
341
355
|
getSupportedAuthMethods(auth: Auth): Promise<any>;
|
|
342
356
|
getPasswords(auth: Auth): Promise<PasswordEntity[]>;
|
|
343
357
|
verifyPasswordChallenge(partnerId: string, body: verifyPasswordChallengeBody): Promise<any>;
|
|
344
|
-
getEncryptedWalletPrivateKey(passwordId: string): Promise<
|
|
358
|
+
getEncryptedWalletPrivateKey(passwordId: string): Promise<{
|
|
359
|
+
data: {
|
|
360
|
+
encryptedWalletPrivateKey: EncryptedWalletPrivateKey;
|
|
361
|
+
};
|
|
362
|
+
}>;
|
|
345
363
|
getUser(userId: string): Promise<any>;
|
|
346
364
|
getAccountMetadata(userId: string, partnerId: string): Promise<{
|
|
347
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
|
}
|