@usecapsule/user-management-client
Advanced tools
Comparing version 0.15.8 to 0.16.0-dev.1
@@ -474,2 +474,10 @@ import axios, { AxiosInstance, AxiosRequestHeaders, AxiosResponseHeaders } from 'axios'; | ||
// POST /recovery/users/:userId/wallets/:walletId/finish | ||
async finalizeRecovery(userId: string, walletId: string) { | ||
const res = await this.baseRequest.post<any>( | ||
`/recovery/users/${userId}/wallets/${walletId}/finish` | ||
); | ||
return res; | ||
} | ||
// POST /recovery/verify-email | ||
@@ -476,0 +484,0 @@ async verifyEmailForRecovery(email: string, verificationCode: string) { |
@@ -149,2 +149,3 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
initializeRecovery(email: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
finalizeRecovery(userId: string, walletId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
verifyEmailForRecovery(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
@@ -151,0 +152,0 @@ verify2FA(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; |
@@ -626,2 +626,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
// POST /recovery/users/:userId/wallets/:walletId/finish | ||
Client.prototype.finalizeRecovery = function (userId, walletId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.baseRequest.post("/recovery/users/".concat(userId, "/wallets/").concat(walletId, "/finish"))]; | ||
case 1: | ||
res = _a.sent(); | ||
return [2 /*return*/, res]; | ||
} | ||
}); | ||
}); | ||
}; | ||
// POST /recovery/verify-email | ||
@@ -628,0 +642,0 @@ Client.prototype.verifyEmailForRecovery = function (email, verificationCode) { |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "0.15.8", | ||
"version": "0.16.0-dev.1", | ||
"main": "dist/client.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/client.d.ts", |
Sorry, the diff of this file is not supported yet
74092
1451