@riocrypto/common 1.0.1347 → 1.0.1348

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.
@@ -131,6 +131,9 @@ export declare class RioAdminClient {
131
131
  sendPhoneAuthCode(phoneNumber: string): Promise<{
132
132
  hasAuthenticatorEnabled: boolean;
133
133
  }>;
134
+ createAdminAuthenticatorSecret(id: string): Promise<{
135
+ secret: string;
136
+ }>;
134
137
  getAuth(id: string): Promise<Auth>;
135
138
  getAuths(): Promise<Auth[]>;
136
139
  authHasSecurityQuestion(): Promise<Boolean>;
@@ -405,6 +405,12 @@ class RioAdminClient {
405
405
  return response.data;
406
406
  });
407
407
  }
408
+ createAdminAuthenticatorSecret(id) {
409
+ return __awaiter(this, void 0, void 0, function* () {
410
+ const response = yield this.axios.post(`/api/auth/admin/${id}/authenticator`);
411
+ return response.data;
412
+ });
413
+ }
408
414
  getAuth(id) {
409
415
  return __awaiter(this, void 0, void 0, function* () {
410
416
  const response = yield this.axios.get(`/api/auth/${id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1347",
3
+ "version": "1.0.1348",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",