@riocrypto/common 1.0.1346 → 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.
|
@@ -42,6 +42,7 @@ import { UBO } from "../types/UBO";
|
|
|
42
42
|
import { UBOUpdate } from "../types/UBO-update";
|
|
43
43
|
import { IdentityVerificationType } from "../types/IdentityVerificationType";
|
|
44
44
|
import { AdminAuth } from "../types/admin-auth";
|
|
45
|
+
import { AdminAuthInput } from "../types/admin-auth-input";
|
|
45
46
|
export declare class RioAdminClient {
|
|
46
47
|
private axios;
|
|
47
48
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -123,12 +124,16 @@ export declare class RioAdminClient {
|
|
|
123
124
|
stopAdminTasks(adminId?: string): Promise<AdminAuth>;
|
|
124
125
|
getAdminTasks(taskTypes?: AdminTaskType[]): Promise<AdminTask[]>;
|
|
125
126
|
markAdminTaskComplete(id: string): Promise<AdminTask>;
|
|
127
|
+
createAdminAuth(adminAuth: AdminAuthInput): Promise<AdminAuth>;
|
|
126
128
|
createUser(user: UserInput): Promise<User>;
|
|
127
129
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
128
130
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
129
131
|
sendPhoneAuthCode(phoneNumber: string): Promise<{
|
|
130
132
|
hasAuthenticatorEnabled: boolean;
|
|
131
133
|
}>;
|
|
134
|
+
createAdminAuthenticatorSecret(id: string): Promise<{
|
|
135
|
+
secret: string;
|
|
136
|
+
}>;
|
|
132
137
|
getAuth(id: string): Promise<Auth>;
|
|
133
138
|
getAuths(): Promise<Auth[]>;
|
|
134
139
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
@@ -372,6 +372,12 @@ class RioAdminClient {
|
|
|
372
372
|
return data;
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
+
createAdminAuth(adminAuth) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
const { data } = yield this.axios.post("/api/auth/admin", adminAuth);
|
|
378
|
+
return data;
|
|
379
|
+
});
|
|
380
|
+
}
|
|
375
381
|
createUser(user) {
|
|
376
382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
377
383
|
const { data } = yield this.axios.post("/api/users", user);
|
|
@@ -399,6 +405,12 @@ class RioAdminClient {
|
|
|
399
405
|
return response.data;
|
|
400
406
|
});
|
|
401
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
|
+
}
|
|
402
414
|
getAuth(id) {
|
|
403
415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
416
|
const response = yield this.axios.get(`/api/auth/${id}`);
|