@usecapsule/user-management-client
Advanced tools
Comparing version 1.8.1 to 1.9.0-alpha.0
@@ -515,2 +515,15 @@ "use strict"; | ||
} | ||
uploadEncryptedWalletPrivateKey(userId, encryptedWalletPrivateKey, encryptionKeyHash, biometricPublicKey) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const body = { encryptedWalletPrivateKey, encryptionKeyHash, biometricPublicKey }; | ||
const res = yield this.baseRequest.post(`/users/${userId}/encrypted-wallet-private-keys`, body); | ||
return res.data; | ||
}); | ||
} | ||
getEncryptedWalletPrivateKeys(userId, encryptionKeyHash) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.get(`/users/${userId}/encrypted-wallet-private-keys/${encryptionKeyHash}`); | ||
return res.data; | ||
}); | ||
} | ||
} | ||
@@ -517,0 +530,0 @@ exports.default = Client; |
@@ -509,2 +509,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
uploadEncryptedWalletPrivateKey(userId, encryptedWalletPrivateKey, encryptionKeyHash, biometricPublicKey) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const body = { encryptedWalletPrivateKey, encryptionKeyHash, biometricPublicKey }; | ||
const res = yield this.baseRequest.post(`/users/${userId}/encrypted-wallet-private-keys`, body); | ||
return res.data; | ||
}); | ||
} | ||
getEncryptedWalletPrivateKeys(userId, encryptionKeyHash) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.get(`/users/${userId}/encrypted-wallet-private-keys/${encryptionKeyHash}`); | ||
return res.data; | ||
}); | ||
} | ||
} | ||
@@ -511,0 +524,0 @@ export default Client; |
@@ -249,3 +249,5 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
keepSessionAlive(userId: string): Promise<any>; | ||
uploadEncryptedWalletPrivateKey(userId: string, encryptedWalletPrivateKey: string, encryptionKeyHash: string, biometricPublicKey: string): Promise<any>; | ||
getEncryptedWalletPrivateKeys(userId: string, encryptionKeyHash: string): Promise<any>; | ||
} | ||
export default Client; |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "1.8.1", | ||
"version": "1.9.0-alpha.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -33,3 +33,3 @@ "module": "dist/esm/index.js", | ||
}, | ||
"gitHead": "05ab8b03d82d27ff6815b29620d32db20d36ce50" | ||
"gitHead": "300cf8164e19b09331ef5ef80835a076ba0f576a" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
62652
1354
2