/* 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 SysAuthService { constructor(public readonly httpRequest: BaseHttpRequest) { } /** * @returns void * @throws ApiError */ public authenticate(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/authenticate', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public validate(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/validate', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public signup(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/signup', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public verifyResetOtp(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/verifyResetOTP', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public resetPassword(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/resetPassword', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public verifyPassword(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/verifyPassword', 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/auth/verify', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public verifySignup(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/verifySignup', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public register(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/register', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public login(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/login', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public getSessionId(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/getSessionID', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public logout(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/logout', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public info(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/info', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public generateOtp(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/generateOtp', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public verifyOtp(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/verifyOtp', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @param requestBody * @returns void * @throws ApiError */ public setWorkspace( requestBody?: { workspace: string }, ): CancelablePromise { return this.httpRequest.request({ method: 'POST', url: '/sys/auth/setWorkspace', body: requestBody, mediaType: 'application/json', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public basicProfile(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/basicProfile', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public updateProfile(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/updateProfile', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * @returns void * @throws ApiError */ public changePassword(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/sys/auth/changePassword', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } }