/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export class SysTwofaService { constructor(public readonly httpRequest: BaseHttpRequest) {} /** * @returns void * @throws ApiError */ public setup(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/setup', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public verifySetup(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/verifySetup', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public verify(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/verify', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public verifyBackup(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/verifyBackup', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public disable(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/disable', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public regenerateBackup(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/regenerateBackup', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public status(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/status', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public checkStatus(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/twofa/checkStatus', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } }