@riocrypto/common 1.0.1200 → 1.0.1202

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.
@@ -91,7 +91,7 @@ export declare class RioAdminClient {
91
91
  createUser(user: UserInput): Promise<User>;
92
92
  getBankPayment(orderId: string): Promise<BankPayment>;
93
93
  verifyBankPayment(orderId: string): Promise<any>;
94
- sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
94
+ sendPhoneAuthCode(phoneNumber: string): Promise<void>;
95
95
  getAuth(phoneNumber?: string): Promise<{
96
96
  auth: Auth;
97
97
  missing: string[];
@@ -269,12 +269,12 @@ class RioAdminClient {
269
269
  });
270
270
  });
271
271
  }
272
- sendPhoneAuthCode(phoneNumber, isNewPhoneNumber) {
272
+ sendPhoneAuthCode(phoneNumber) {
273
273
  return __awaiter(this, void 0, void 0, function* () {
274
- yield this.axios.post("/api/auth/phone/send", {
274
+ const response = yield this.axios.post("/api/auth/send-code", {
275
275
  phoneNumber,
276
- isNewPhoneNumber,
277
276
  });
277
+ return response.data;
278
278
  });
279
279
  }
280
280
  getAuth(phoneNumber) {
@@ -61,7 +61,7 @@ export declare class RioClient {
61
61
  uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
62
62
  getBankPayment(orderId: string): Promise<BankPayment>;
63
63
  verifyBankPayment(orderId: string): Promise<any>;
64
- sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
64
+ sendPhoneAuthCode(phoneNumber: string): Promise<void>;
65
65
  getAuth(phoneNumber?: string): Promise<Auth>;
66
66
  getSecurityQuestion(): Promise<SecurityQuestion>;
67
67
  authHasSecurityQuestion(): Promise<Boolean>;
@@ -176,12 +176,12 @@ class RioClient {
176
176
  });
177
177
  });
178
178
  }
179
- sendPhoneAuthCode(phoneNumber, isNewPhoneNumber) {
179
+ sendPhoneAuthCode(phoneNumber) {
180
180
  return __awaiter(this, void 0, void 0, function* () {
181
- yield this.axios.post("/api/auth/send-code", {
181
+ const response = yield this.axios.post("/api/auth/send-code", {
182
182
  phoneNumber,
183
- isNewPhoneNumber,
184
183
  });
184
+ return response.data;
185
185
  });
186
186
  }
187
187
  getAuth(phoneNumber) {
@@ -9,6 +9,7 @@ export interface Auth {
9
9
  previousPasswords?: string[];
10
10
  apiKeys?: APIKey[];
11
11
  isDisabled?: boolean;
12
+ authenticatorSecret?: string;
12
13
  telegram: {
13
14
  username?: string;
14
15
  lastVerified?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1200",
3
+ "version": "1.0.1202",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",