feat(frontend/openapi): Generated Openapi client for frontend

Generated The API client using the openapi.json file generated from the
services
This commit is contained in:
Maieul BOYER 2025-11-10 17:06:10 +01:00 committed by Maix0
parent 08c910c193
commit e8b0b7e310
78 changed files with 6075 additions and 0 deletions

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface DisableOtp200Response
*/
export interface DisableOtp200Response {
/**
*
* @type {string}
* @memberof DisableOtp200Response
*/
kind: DisableOtp200ResponseKindEnum;
/**
*
* @type {string}
* @memberof DisableOtp200Response
*/
msg: DisableOtp200ResponseMsgEnum;
}
/**
* @export
*/
export const DisableOtp200ResponseKindEnum = {
Success: 'success'
} as const;
export type DisableOtp200ResponseKindEnum = typeof DisableOtp200ResponseKindEnum[keyof typeof DisableOtp200ResponseKindEnum];
/**
* @export
*/
export const DisableOtp200ResponseMsgEnum = {
DisableOtpSuccess: 'disableOtp.success'
} as const;
export type DisableOtp200ResponseMsgEnum = typeof DisableOtp200ResponseMsgEnum[keyof typeof DisableOtp200ResponseMsgEnum];
/**
* Check if a given object implements the DisableOtp200Response interface.
*/
export function instanceOfDisableOtp200Response(value: object): value is DisableOtp200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function DisableOtp200ResponseFromJSON(json: any): DisableOtp200Response {
return DisableOtp200ResponseFromJSONTyped(json, false);
}
export function DisableOtp200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DisableOtp200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function DisableOtp200ResponseToJSON(json: any): DisableOtp200Response {
return DisableOtp200ResponseToJSONTyped(json, false);
}
export function DisableOtp200ResponseToJSONTyped(value?: DisableOtp200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,96 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface DisableOtp401Response
*/
export interface DisableOtp401Response {
/**
*
* @type {string}
* @memberof DisableOtp401Response
*/
kind: DisableOtp401ResponseKindEnum;
/**
*
* @type {string}
* @memberof DisableOtp401Response
*/
msg: DisableOtp401ResponseMsgEnum;
}
/**
* @export
*/
export const DisableOtp401ResponseKindEnum = {
NotLoggedIn: 'notLoggedIn'
} as const;
export type DisableOtp401ResponseKindEnum = typeof DisableOtp401ResponseKindEnum[keyof typeof DisableOtp401ResponseKindEnum];
/**
* @export
*/
export const DisableOtp401ResponseMsgEnum = {
AuthNoCookie: 'auth.noCookie',
AuthInvalidKind: 'auth.invalidKind',
AuthNoUser: 'auth.noUser',
AuthInvalid: 'auth.invalid'
} as const;
export type DisableOtp401ResponseMsgEnum = typeof DisableOtp401ResponseMsgEnum[keyof typeof DisableOtp401ResponseMsgEnum];
/**
* Check if a given object implements the DisableOtp401Response interface.
*/
export function instanceOfDisableOtp401Response(value: object): value is DisableOtp401Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function DisableOtp401ResponseFromJSON(json: any): DisableOtp401Response {
return DisableOtp401ResponseFromJSONTyped(json, false);
}
export function DisableOtp401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DisableOtp401Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function DisableOtp401ResponseToJSON(json: any): DisableOtp401Response {
return DisableOtp401ResponseToJSONTyped(json, false);
}
export function DisableOtp401ResponseToJSONTyped(value?: DisableOtp401Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface DisableOtp500Response
*/
export interface DisableOtp500Response {
/**
*
* @type {string}
* @memberof DisableOtp500Response
*/
kind: DisableOtp500ResponseKindEnum;
/**
*
* @type {string}
* @memberof DisableOtp500Response
*/
msg: DisableOtp500ResponseMsgEnum;
}
/**
* @export
*/
export const DisableOtp500ResponseKindEnum = {
Failure: 'failure'
} as const;
export type DisableOtp500ResponseKindEnum = typeof DisableOtp500ResponseKindEnum[keyof typeof DisableOtp500ResponseKindEnum];
/**
* @export
*/
export const DisableOtp500ResponseMsgEnum = {
DisableOtpFailureGeneric: 'disableOtp.failure.generic'
} as const;
export type DisableOtp500ResponseMsgEnum = typeof DisableOtp500ResponseMsgEnum[keyof typeof DisableOtp500ResponseMsgEnum];
/**
* Check if a given object implements the DisableOtp500Response interface.
*/
export function instanceOfDisableOtp500Response(value: object): value is DisableOtp500Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function DisableOtp500ResponseFromJSON(json: any): DisableOtp500Response {
return DisableOtp500ResponseFromJSONTyped(json, false);
}
export function DisableOtp500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DisableOtp500Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function DisableOtp500ResponseToJSON(json: any): DisableOtp500Response {
return DisableOtp500ResponseToJSONTyped(json, false);
}
export function DisableOtp500ResponseToJSONTyped(value?: DisableOtp500Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { EnableOtp200ResponsePayload } from './EnableOtp200ResponsePayload';
import {
EnableOtp200ResponsePayloadFromJSON,
EnableOtp200ResponsePayloadFromJSONTyped,
EnableOtp200ResponsePayloadToJSON,
EnableOtp200ResponsePayloadToJSONTyped,
} from './EnableOtp200ResponsePayload';
/**
*
* @export
* @interface EnableOtp200Response
*/
export interface EnableOtp200Response {
/**
*
* @type {string}
* @memberof EnableOtp200Response
*/
kind: EnableOtp200ResponseKindEnum;
/**
*
* @type {string}
* @memberof EnableOtp200Response
*/
msg: EnableOtp200ResponseMsgEnum;
/**
*
* @type {EnableOtp200ResponsePayload}
* @memberof EnableOtp200Response
*/
payload: EnableOtp200ResponsePayload;
}
/**
* @export
*/
export const EnableOtp200ResponseKindEnum = {
Success: 'success'
} as const;
export type EnableOtp200ResponseKindEnum = typeof EnableOtp200ResponseKindEnum[keyof typeof EnableOtp200ResponseKindEnum];
/**
* @export
*/
export const EnableOtp200ResponseMsgEnum = {
EnableOtpSuccess: 'enableOtp.success'
} as const;
export type EnableOtp200ResponseMsgEnum = typeof EnableOtp200ResponseMsgEnum[keyof typeof EnableOtp200ResponseMsgEnum];
/**
* Check if a given object implements the EnableOtp200Response interface.
*/
export function instanceOfEnableOtp200Response(value: object): value is EnableOtp200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function EnableOtp200ResponseFromJSON(json: any): EnableOtp200Response {
return EnableOtp200ResponseFromJSONTyped(json, false);
}
export function EnableOtp200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableOtp200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': EnableOtp200ResponsePayloadFromJSON(json['payload']),
};
}
export function EnableOtp200ResponseToJSON(json: any): EnableOtp200Response {
return EnableOtp200ResponseToJSONTyped(json, false);
}
export function EnableOtp200ResponseToJSONTyped(value?: EnableOtp200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': EnableOtp200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface EnableOtp200ResponsePayload
*/
export interface EnableOtp200ResponsePayload {
/**
* The otp url to feed into a 2fa app
* @type {string}
* @memberof EnableOtp200ResponsePayload
*/
url: string;
}
/**
* Check if a given object implements the EnableOtp200ResponsePayload interface.
*/
export function instanceOfEnableOtp200ResponsePayload(value: object): value is EnableOtp200ResponsePayload {
if (!('url' in value) || value['url'] === undefined) return false;
return true;
}
export function EnableOtp200ResponsePayloadFromJSON(json: any): EnableOtp200ResponsePayload {
return EnableOtp200ResponsePayloadFromJSONTyped(json, false);
}
export function EnableOtp200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableOtp200ResponsePayload {
if (json == null) {
return json;
}
return {
'url': json['url'],
};
}
export function EnableOtp200ResponsePayloadToJSON(json: any): EnableOtp200ResponsePayload {
return EnableOtp200ResponsePayloadToJSONTyped(json, false);
}
export function EnableOtp200ResponsePayloadToJSONTyped(value?: EnableOtp200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'url': value['url'],
};
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { GetUser200ResponsePayload } from './GetUser200ResponsePayload';
import {
GetUser200ResponsePayloadFromJSON,
GetUser200ResponsePayloadFromJSONTyped,
GetUser200ResponsePayloadToJSON,
GetUser200ResponsePayloadToJSONTyped,
} from './GetUser200ResponsePayload';
/**
*
* @export
* @interface GetUser200Response
*/
export interface GetUser200Response {
/**
*
* @type {string}
* @memberof GetUser200Response
*/
kind: GetUser200ResponseKindEnum;
/**
*
* @type {string}
* @memberof GetUser200Response
*/
msg: GetUser200ResponseMsgEnum;
/**
*
* @type {GetUser200ResponsePayload}
* @memberof GetUser200Response
*/
payload: GetUser200ResponsePayload;
}
/**
* @export
*/
export const GetUser200ResponseKindEnum = {
Success: 'success'
} as const;
export type GetUser200ResponseKindEnum = typeof GetUser200ResponseKindEnum[keyof typeof GetUser200ResponseKindEnum];
/**
* @export
*/
export const GetUser200ResponseMsgEnum = {
UserinfoSuccess: 'userinfo.success'
} as const;
export type GetUser200ResponseMsgEnum = typeof GetUser200ResponseMsgEnum[keyof typeof GetUser200ResponseMsgEnum];
/**
* Check if a given object implements the GetUser200Response interface.
*/
export function instanceOfGetUser200Response(value: object): value is GetUser200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function GetUser200ResponseFromJSON(json: any): GetUser200Response {
return GetUser200ResponseFromJSONTyped(json, false);
}
export function GetUser200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUser200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': GetUser200ResponsePayloadFromJSON(json['payload']),
};
}
export function GetUser200ResponseToJSON(json: any): GetUser200Response {
return GetUser200ResponseToJSONTyped(json, false);
}
export function GetUser200ResponseToJSONTyped(value?: GetUser200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': GetUser200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,84 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface GetUser200ResponsePayload
*/
export interface GetUser200ResponsePayload {
/**
*
* @type {string}
* @memberof GetUser200ResponsePayload
*/
name: string;
/**
*
* @type {string}
* @memberof GetUser200ResponsePayload
*/
id: string;
/**
*
* @type {boolean}
* @memberof GetUser200ResponsePayload
*/
guest: boolean;
}
/**
* Check if a given object implements the GetUser200ResponsePayload interface.
*/
export function instanceOfGetUser200ResponsePayload(value: object): value is GetUser200ResponsePayload {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('id' in value) || value['id'] === undefined) return false;
if (!('guest' in value) || value['guest'] === undefined) return false;
return true;
}
export function GetUser200ResponsePayloadFromJSON(json: any): GetUser200ResponsePayload {
return GetUser200ResponsePayloadFromJSONTyped(json, false);
}
export function GetUser200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUser200ResponsePayload {
if (json == null) {
return json;
}
return {
'name': json['name'],
'id': json['id'],
'guest': json['guest'],
};
}
export function GetUser200ResponsePayloadToJSON(json: any): GetUser200ResponsePayload {
return GetUser200ResponsePayloadToJSONTyped(json, false);
}
export function GetUser200ResponsePayloadToJSONTyped(value?: GetUser200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'id': value['id'],
'guest': value['guest'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface GetUser403Response
*/
export interface GetUser403Response {
/**
*
* @type {string}
* @memberof GetUser403Response
*/
kind: GetUser403ResponseKindEnum;
/**
*
* @type {string}
* @memberof GetUser403Response
*/
msg: GetUser403ResponseMsgEnum;
}
/**
* @export
*/
export const GetUser403ResponseKindEnum = {
Failure: 'failure'
} as const;
export type GetUser403ResponseKindEnum = typeof GetUser403ResponseKindEnum[keyof typeof GetUser403ResponseKindEnum];
/**
* @export
*/
export const GetUser403ResponseMsgEnum = {
UserinfoFailureNotLoggedIn: 'userinfo.failure.notLoggedIn'
} as const;
export type GetUser403ResponseMsgEnum = typeof GetUser403ResponseMsgEnum[keyof typeof GetUser403ResponseMsgEnum];
/**
* Check if a given object implements the GetUser403Response interface.
*/
export function instanceOfGetUser403Response(value: object): value is GetUser403Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function GetUser403ResponseFromJSON(json: any): GetUser403Response {
return GetUser403ResponseFromJSONTyped(json, false);
}
export function GetUser403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUser403Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function GetUser403ResponseToJSON(json: any): GetUser403Response {
return GetUser403ResponseToJSONTyped(json, false);
}
export function GetUser403ResponseToJSONTyped(value?: GetUser403Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface GetUser404Response
*/
export interface GetUser404Response {
/**
*
* @type {string}
* @memberof GetUser404Response
*/
kind: GetUser404ResponseKindEnum;
/**
*
* @type {string}
* @memberof GetUser404Response
*/
msg: GetUser404ResponseMsgEnum;
}
/**
* @export
*/
export const GetUser404ResponseKindEnum = {
Failure: 'failure'
} as const;
export type GetUser404ResponseKindEnum = typeof GetUser404ResponseKindEnum[keyof typeof GetUser404ResponseKindEnum];
/**
* @export
*/
export const GetUser404ResponseMsgEnum = {
UserinfoFailureUnknownUser: 'userinfo.failure.unknownUser'
} as const;
export type GetUser404ResponseMsgEnum = typeof GetUser404ResponseMsgEnum[keyof typeof GetUser404ResponseMsgEnum];
/**
* Check if a given object implements the GetUser404Response interface.
*/
export function instanceOfGetUser404Response(value: object): value is GetUser404Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function GetUser404ResponseFromJSON(json: any): GetUser404Response {
return GetUser404ResponseFromJSONTyped(json, false);
}
export function GetUser404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUser404Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function GetUser404ResponseToJSON(json: any): GetUser404Response {
return GetUser404ResponseToJSONTyped(json, false);
}
export function GetUser404ResponseToJSONTyped(value?: GetUser404Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface GetUserUserParameter
*/
export interface GetUserUserParameter {
}
/**
* Check if a given object implements the GetUserUserParameter interface.
*/
export function instanceOfGetUserUserParameter(value: object): value is GetUserUserParameter {
return true;
}
export function GetUserUserParameterFromJSON(json: any): GetUserUserParameter {
return GetUserUserParameterFromJSONTyped(json, false);
}
export function GetUserUserParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserUserParameter {
return json;
}
export function GetUserUserParameterToJSON(json: any): GetUserUserParameter {
return GetUserUserParameterToJSONTyped(json, false);
}
export function GetUserUserParameterToJSONTyped(value?: GetUserUserParameter | null, ignoreDiscriminator: boolean = false): any {
return value;
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { GuestLogin200ResponsePayload } from './GuestLogin200ResponsePayload';
import {
GuestLogin200ResponsePayloadFromJSON,
GuestLogin200ResponsePayloadFromJSONTyped,
GuestLogin200ResponsePayloadToJSON,
GuestLogin200ResponsePayloadToJSONTyped,
} from './GuestLogin200ResponsePayload';
/**
*
* @export
* @interface GuestLogin200Response
*/
export interface GuestLogin200Response {
/**
*
* @type {string}
* @memberof GuestLogin200Response
*/
kind: GuestLogin200ResponseKindEnum;
/**
*
* @type {string}
* @memberof GuestLogin200Response
*/
msg: GuestLogin200ResponseMsgEnum;
/**
*
* @type {GuestLogin200ResponsePayload}
* @memberof GuestLogin200Response
*/
payload: GuestLogin200ResponsePayload;
}
/**
* @export
*/
export const GuestLogin200ResponseKindEnum = {
Success: 'success'
} as const;
export type GuestLogin200ResponseKindEnum = typeof GuestLogin200ResponseKindEnum[keyof typeof GuestLogin200ResponseKindEnum];
/**
* @export
*/
export const GuestLogin200ResponseMsgEnum = {
GuestLoginSuccess: 'guestLogin.success'
} as const;
export type GuestLogin200ResponseMsgEnum = typeof GuestLogin200ResponseMsgEnum[keyof typeof GuestLogin200ResponseMsgEnum];
/**
* Check if a given object implements the GuestLogin200Response interface.
*/
export function instanceOfGuestLogin200Response(value: object): value is GuestLogin200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function GuestLogin200ResponseFromJSON(json: any): GuestLogin200Response {
return GuestLogin200ResponseFromJSONTyped(json, false);
}
export function GuestLogin200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuestLogin200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': GuestLogin200ResponsePayloadFromJSON(json['payload']),
};
}
export function GuestLogin200ResponseToJSON(json: any): GuestLogin200Response {
return GuestLogin200ResponseToJSONTyped(json, false);
}
export function GuestLogin200ResponseToJSONTyped(value?: GuestLogin200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': GuestLogin200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface GuestLogin200ResponsePayload
*/
export interface GuestLogin200ResponsePayload {
/**
* JWT that represent a logged in user
* @type {string}
* @memberof GuestLogin200ResponsePayload
*/
token: string;
}
/**
* Check if a given object implements the GuestLogin200ResponsePayload interface.
*/
export function instanceOfGuestLogin200ResponsePayload(value: object): value is GuestLogin200ResponsePayload {
if (!('token' in value) || value['token'] === undefined) return false;
return true;
}
export function GuestLogin200ResponsePayloadFromJSON(json: any): GuestLogin200ResponsePayload {
return GuestLogin200ResponsePayloadFromJSONTyped(json, false);
}
export function GuestLogin200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuestLogin200ResponsePayload {
if (json == null) {
return json;
}
return {
'token': json['token'],
};
}
export function GuestLogin200ResponsePayloadToJSON(json: any): GuestLogin200ResponsePayload {
return GuestLogin200ResponsePayloadToJSONTyped(json, false);
}
export function GuestLogin200ResponsePayloadToJSONTyped(value?: GuestLogin200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'token': value['token'],
};
}

View file

@ -0,0 +1,94 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface GuestLogin500Response
*/
export interface GuestLogin500Response {
/**
*
* @type {string}
* @memberof GuestLogin500Response
*/
kind: GuestLogin500ResponseKindEnum;
/**
*
* @type {string}
* @memberof GuestLogin500Response
*/
msg: GuestLogin500ResponseMsgEnum;
}
/**
* @export
*/
export const GuestLogin500ResponseKindEnum = {
Failed: 'failed'
} as const;
export type GuestLogin500ResponseKindEnum = typeof GuestLogin500ResponseKindEnum[keyof typeof GuestLogin500ResponseKindEnum];
/**
* @export
*/
export const GuestLogin500ResponseMsgEnum = {
GuestLoginFailedGenericUnknown: 'guestLogin.failed.generic.unknown',
GuestLoginFailedGenericError: 'guestLogin.failed.generic.error'
} as const;
export type GuestLogin500ResponseMsgEnum = typeof GuestLogin500ResponseMsgEnum[keyof typeof GuestLogin500ResponseMsgEnum];
/**
* Check if a given object implements the GuestLogin500Response interface.
*/
export function instanceOfGuestLogin500Response(value: object): value is GuestLogin500Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function GuestLogin500ResponseFromJSON(json: any): GuestLogin500Response {
return GuestLogin500ResponseFromJSONTyped(json, false);
}
export function GuestLogin500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuestLogin500Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function GuestLogin500ResponseToJSON(json: any): GuestLogin500Response {
return GuestLogin500ResponseToJSONTyped(json, false);
}
export function GuestLogin500ResponseToJSONTyped(value?: GuestLogin500Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { GuestLogin200ResponsePayload } from './GuestLogin200ResponsePayload';
import {
GuestLogin200ResponsePayloadFromJSON,
GuestLogin200ResponsePayloadFromJSONTyped,
GuestLogin200ResponsePayloadToJSON,
GuestLogin200ResponsePayloadToJSONTyped,
} from './GuestLogin200ResponsePayload';
/**
*
* @export
* @interface Login200Response
*/
export interface Login200Response {
/**
*
* @type {string}
* @memberof Login200Response
*/
kind: Login200ResponseKindEnum;
/**
*
* @type {string}
* @memberof Login200Response
*/
msg: Login200ResponseMsgEnum;
/**
*
* @type {GuestLogin200ResponsePayload}
* @memberof Login200Response
*/
payload: GuestLogin200ResponsePayload;
}
/**
* @export
*/
export const Login200ResponseKindEnum = {
Success: 'success'
} as const;
export type Login200ResponseKindEnum = typeof Login200ResponseKindEnum[keyof typeof Login200ResponseKindEnum];
/**
* @export
*/
export const Login200ResponseMsgEnum = {
LoginSuccess: 'login.success'
} as const;
export type Login200ResponseMsgEnum = typeof Login200ResponseMsgEnum[keyof typeof Login200ResponseMsgEnum];
/**
* Check if a given object implements the Login200Response interface.
*/
export function instanceOfLogin200Response(value: object): value is Login200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function Login200ResponseFromJSON(json: any): Login200Response {
return Login200ResponseFromJSONTyped(json, false);
}
export function Login200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': GuestLogin200ResponsePayloadFromJSON(json['payload']),
};
}
export function Login200ResponseToJSON(json: any): Login200Response {
return Login200ResponseToJSONTyped(json, false);
}
export function Login200ResponseToJSONTyped(value?: Login200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': GuestLogin200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { Login202ResponsePayload } from './Login202ResponsePayload';
import {
Login202ResponsePayloadFromJSON,
Login202ResponsePayloadFromJSONTyped,
Login202ResponsePayloadToJSON,
Login202ResponsePayloadToJSONTyped,
} from './Login202ResponsePayload';
/**
*
* @export
* @interface Login202Response
*/
export interface Login202Response {
/**
*
* @type {string}
* @memberof Login202Response
*/
kind: Login202ResponseKindEnum;
/**
*
* @type {string}
* @memberof Login202Response
*/
msg: Login202ResponseMsgEnum;
/**
*
* @type {Login202ResponsePayload}
* @memberof Login202Response
*/
payload: Login202ResponsePayload;
}
/**
* @export
*/
export const Login202ResponseKindEnum = {
OtpRequired: 'otpRequired'
} as const;
export type Login202ResponseKindEnum = typeof Login202ResponseKindEnum[keyof typeof Login202ResponseKindEnum];
/**
* @export
*/
export const Login202ResponseMsgEnum = {
LoginOtpRequired: 'login.otpRequired'
} as const;
export type Login202ResponseMsgEnum = typeof Login202ResponseMsgEnum[keyof typeof Login202ResponseMsgEnum];
/**
* Check if a given object implements the Login202Response interface.
*/
export function instanceOfLogin202Response(value: object): value is Login202Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function Login202ResponseFromJSON(json: any): Login202Response {
return Login202ResponseFromJSONTyped(json, false);
}
export function Login202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login202Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': Login202ResponsePayloadFromJSON(json['payload']),
};
}
export function Login202ResponseToJSON(json: any): Login202Response {
return Login202ResponseToJSONTyped(json, false);
}
export function Login202ResponseToJSONTyped(value?: Login202Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': Login202ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface Login202ResponsePayload
*/
export interface Login202ResponsePayload {
/**
* JWT to send with the OTP to finish login
* @type {string}
* @memberof Login202ResponsePayload
*/
token: string;
}
/**
* Check if a given object implements the Login202ResponsePayload interface.
*/
export function instanceOfLogin202ResponsePayload(value: object): value is Login202ResponsePayload {
if (!('token' in value) || value['token'] === undefined) return false;
return true;
}
export function Login202ResponsePayloadFromJSON(json: any): Login202ResponsePayload {
return Login202ResponsePayloadFromJSONTyped(json, false);
}
export function Login202ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login202ResponsePayload {
if (json == null) {
return json;
}
return {
'token': json['token'],
};
}
export function Login202ResponsePayloadToJSON(json: any): Login202ResponsePayload {
return Login202ResponsePayloadToJSONTyped(json, false);
}
export function Login202ResponsePayloadToJSONTyped(value?: Login202ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'token': value['token'],
};
}

View file

@ -0,0 +1,94 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface Login400Response
*/
export interface Login400Response {
/**
*
* @type {string}
* @memberof Login400Response
*/
kind: Login400ResponseKindEnum;
/**
*
* @type {string}
* @memberof Login400Response
*/
msg: Login400ResponseMsgEnum;
}
/**
* @export
*/
export const Login400ResponseKindEnum = {
Failed: 'failed'
} as const;
export type Login400ResponseKindEnum = typeof Login400ResponseKindEnum[keyof typeof Login400ResponseKindEnum];
/**
* @export
*/
export const Login400ResponseMsgEnum = {
LoginFailedGeneric: 'login.failed.generic',
LoginFailedInvalid: 'login.failed.invalid'
} as const;
export type Login400ResponseMsgEnum = typeof Login400ResponseMsgEnum[keyof typeof Login400ResponseMsgEnum];
/**
* Check if a given object implements the Login400Response interface.
*/
export function instanceOfLogin400Response(value: object): value is Login400Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function Login400ResponseFromJSON(json: any): Login400Response {
return Login400ResponseFromJSONTyped(json, false);
}
export function Login400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login400Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function Login400ResponseToJSON(json: any): Login400Response {
return Login400ResponseToJSONTyped(json, false);
}
export function Login400ResponseToJSONTyped(value?: Login400Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { LoginOtp200ResponsePayload } from './LoginOtp200ResponsePayload';
import {
LoginOtp200ResponsePayloadFromJSON,
LoginOtp200ResponsePayloadFromJSONTyped,
LoginOtp200ResponsePayloadToJSON,
LoginOtp200ResponsePayloadToJSONTyped,
} from './LoginOtp200ResponsePayload';
/**
*
* @export
* @interface LoginOtp200Response
*/
export interface LoginOtp200Response {
/**
*
* @type {string}
* @memberof LoginOtp200Response
*/
kind: LoginOtp200ResponseKindEnum;
/**
*
* @type {string}
* @memberof LoginOtp200Response
*/
msg: LoginOtp200ResponseMsgEnum;
/**
*
* @type {LoginOtp200ResponsePayload}
* @memberof LoginOtp200Response
*/
payload: LoginOtp200ResponsePayload;
}
/**
* @export
*/
export const LoginOtp200ResponseKindEnum = {
Success: 'success'
} as const;
export type LoginOtp200ResponseKindEnum = typeof LoginOtp200ResponseKindEnum[keyof typeof LoginOtp200ResponseKindEnum];
/**
* @export
*/
export const LoginOtp200ResponseMsgEnum = {
OtpSuccess: 'otp.success'
} as const;
export type LoginOtp200ResponseMsgEnum = typeof LoginOtp200ResponseMsgEnum[keyof typeof LoginOtp200ResponseMsgEnum];
/**
* Check if a given object implements the LoginOtp200Response interface.
*/
export function instanceOfLoginOtp200Response(value: object): value is LoginOtp200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function LoginOtp200ResponseFromJSON(json: any): LoginOtp200Response {
return LoginOtp200ResponseFromJSONTyped(json, false);
}
export function LoginOtp200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': LoginOtp200ResponsePayloadFromJSON(json['payload']),
};
}
export function LoginOtp200ResponseToJSON(json: any): LoginOtp200Response {
return LoginOtp200ResponseToJSONTyped(json, false);
}
export function LoginOtp200ResponseToJSONTyped(value?: LoginOtp200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': LoginOtp200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface LoginOtp200ResponsePayload
*/
export interface LoginOtp200ResponsePayload {
/**
* the JWT Token
* @type {string}
* @memberof LoginOtp200ResponsePayload
*/
token: string;
}
/**
* Check if a given object implements the LoginOtp200ResponsePayload interface.
*/
export function instanceOfLoginOtp200ResponsePayload(value: object): value is LoginOtp200ResponsePayload {
if (!('token' in value) || value['token'] === undefined) return false;
return true;
}
export function LoginOtp200ResponsePayloadFromJSON(json: any): LoginOtp200ResponsePayload {
return LoginOtp200ResponsePayloadFromJSONTyped(json, false);
}
export function LoginOtp200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp200ResponsePayload {
if (json == null) {
return json;
}
return {
'token': json['token'],
};
}
export function LoginOtp200ResponsePayloadToJSON(json: any): LoginOtp200ResponsePayload {
return LoginOtp200ResponsePayloadToJSONTyped(json, false);
}
export function LoginOtp200ResponsePayloadToJSONTyped(value?: LoginOtp200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'token': value['token'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface LoginOtp400Response
*/
export interface LoginOtp400Response {
/**
*
* @type {string}
* @memberof LoginOtp400Response
*/
kind: LoginOtp400ResponseKindEnum;
/**
*
* @type {string}
* @memberof LoginOtp400Response
*/
msg: LoginOtp400ResponseMsgEnum;
}
/**
* @export
*/
export const LoginOtp400ResponseKindEnum = {
Failed: 'failed'
} as const;
export type LoginOtp400ResponseKindEnum = typeof LoginOtp400ResponseKindEnum[keyof typeof LoginOtp400ResponseKindEnum];
/**
* @export
*/
export const LoginOtp400ResponseMsgEnum = {
OtpFailedInvalid: 'otp.failed.invalid'
} as const;
export type LoginOtp400ResponseMsgEnum = typeof LoginOtp400ResponseMsgEnum[keyof typeof LoginOtp400ResponseMsgEnum];
/**
* Check if a given object implements the LoginOtp400Response interface.
*/
export function instanceOfLoginOtp400Response(value: object): value is LoginOtp400Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function LoginOtp400ResponseFromJSON(json: any): LoginOtp400Response {
return LoginOtp400ResponseFromJSONTyped(json, false);
}
export function LoginOtp400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp400Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function LoginOtp400ResponseToJSON(json: any): LoginOtp400Response {
return LoginOtp400ResponseToJSONTyped(json, false);
}
export function LoginOtp400ResponseToJSONTyped(value?: LoginOtp400Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface LoginOtp401Response
*/
export interface LoginOtp401Response {
/**
*
* @type {string}
* @memberof LoginOtp401Response
*/
kind: LoginOtp401ResponseKindEnum;
/**
*
* @type {string}
* @memberof LoginOtp401Response
*/
msg: LoginOtp401ResponseMsgEnum;
}
/**
* @export
*/
export const LoginOtp401ResponseKindEnum = {
Failed: 'failed'
} as const;
export type LoginOtp401ResponseKindEnum = typeof LoginOtp401ResponseKindEnum[keyof typeof LoginOtp401ResponseKindEnum];
/**
* @export
*/
export const LoginOtp401ResponseMsgEnum = {
OtpFailedNoSecret: 'otp.failed.noSecret'
} as const;
export type LoginOtp401ResponseMsgEnum = typeof LoginOtp401ResponseMsgEnum[keyof typeof LoginOtp401ResponseMsgEnum];
/**
* Check if a given object implements the LoginOtp401Response interface.
*/
export function instanceOfLoginOtp401Response(value: object): value is LoginOtp401Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function LoginOtp401ResponseFromJSON(json: any): LoginOtp401Response {
return LoginOtp401ResponseFromJSONTyped(json, false);
}
export function LoginOtp401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp401Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function LoginOtp401ResponseToJSON(json: any): LoginOtp401Response {
return LoginOtp401ResponseToJSONTyped(json, false);
}
export function LoginOtp401ResponseToJSONTyped(value?: LoginOtp401Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface LoginOtp408Response
*/
export interface LoginOtp408Response {
/**
*
* @type {string}
* @memberof LoginOtp408Response
*/
kind: LoginOtp408ResponseKindEnum;
/**
*
* @type {string}
* @memberof LoginOtp408Response
*/
msg: LoginOtp408ResponseMsgEnum;
}
/**
* @export
*/
export const LoginOtp408ResponseKindEnum = {
Failed: 'failed'
} as const;
export type LoginOtp408ResponseKindEnum = typeof LoginOtp408ResponseKindEnum[keyof typeof LoginOtp408ResponseKindEnum];
/**
* @export
*/
export const LoginOtp408ResponseMsgEnum = {
OtpFailedTimeout: 'otp.failed.timeout'
} as const;
export type LoginOtp408ResponseMsgEnum = typeof LoginOtp408ResponseMsgEnum[keyof typeof LoginOtp408ResponseMsgEnum];
/**
* Check if a given object implements the LoginOtp408Response interface.
*/
export function instanceOfLoginOtp408Response(value: object): value is LoginOtp408Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function LoginOtp408ResponseFromJSON(json: any): LoginOtp408Response {
return LoginOtp408ResponseFromJSONTyped(json, false);
}
export function LoginOtp408ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp408Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function LoginOtp408ResponseToJSON(json: any): LoginOtp408Response {
return LoginOtp408ResponseToJSONTyped(json, false);
}
export function LoginOtp408ResponseToJSONTyped(value?: LoginOtp408Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface LoginOtp500Response
*/
export interface LoginOtp500Response {
/**
*
* @type {string}
* @memberof LoginOtp500Response
*/
kind: LoginOtp500ResponseKindEnum;
/**
*
* @type {string}
* @memberof LoginOtp500Response
*/
msg: LoginOtp500ResponseMsgEnum;
}
/**
* @export
*/
export const LoginOtp500ResponseKindEnum = {
Failed: 'failed'
} as const;
export type LoginOtp500ResponseKindEnum = typeof LoginOtp500ResponseKindEnum[keyof typeof LoginOtp500ResponseKindEnum];
/**
* @export
*/
export const LoginOtp500ResponseMsgEnum = {
OtpFailedGeneric: 'otp.failed.generic'
} as const;
export type LoginOtp500ResponseMsgEnum = typeof LoginOtp500ResponseMsgEnum[keyof typeof LoginOtp500ResponseMsgEnum];
/**
* Check if a given object implements the LoginOtp500Response interface.
*/
export function instanceOfLoginOtp500Response(value: object): value is LoginOtp500Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function LoginOtp500ResponseFromJSON(json: any): LoginOtp500Response {
return LoginOtp500ResponseFromJSONTyped(json, false);
}
export function LoginOtp500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp500Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function LoginOtp500ResponseToJSON(json: any): LoginOtp500Response {
return LoginOtp500ResponseToJSONTyped(json, false);
}
export function LoginOtp500ResponseToJSONTyped(value?: LoginOtp500Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,75 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface LoginOtpRequest
*/
export interface LoginOtpRequest {
/**
* The token given at the login phase
* @type {string}
* @memberof LoginOtpRequest
*/
token: string;
/**
* The OTP given by the user
* @type {string}
* @memberof LoginOtpRequest
*/
code: string;
}
/**
* Check if a given object implements the LoginOtpRequest interface.
*/
export function instanceOfLoginOtpRequest(value: object): value is LoginOtpRequest {
if (!('token' in value) || value['token'] === undefined) return false;
if (!('code' in value) || value['code'] === undefined) return false;
return true;
}
export function LoginOtpRequestFromJSON(json: any): LoginOtpRequest {
return LoginOtpRequestFromJSONTyped(json, false);
}
export function LoginOtpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtpRequest {
if (json == null) {
return json;
}
return {
'token': json['token'],
'code': json['code'],
};
}
export function LoginOtpRequestToJSON(json: any): LoginOtpRequest {
return LoginOtpRequestToJSONTyped(json, false);
}
export function LoginOtpRequestToJSONTyped(value?: LoginOtpRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'token': value['token'],
'code': value['code'],
};
}

View file

@ -0,0 +1,75 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface LoginRequest
*/
export interface LoginRequest {
/**
*
* @type {string}
* @memberof LoginRequest
*/
name: string;
/**
*
* @type {string}
* @memberof LoginRequest
*/
password: string;
}
/**
* Check if a given object implements the LoginRequest interface.
*/
export function instanceOfLoginRequest(value: object): value is LoginRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('password' in value) || value['password'] === undefined) return false;
return true;
}
export function LoginRequestFromJSON(json: any): LoginRequest {
return LoginRequestFromJSONTyped(json, false);
}
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'password': json['password'],
};
}
export function LoginRequestToJSON(json: any): LoginRequest {
return LoginRequestToJSONTyped(json, false);
}
export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'password': value['password'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface Logout200Response
*/
export interface Logout200Response {
/**
*
* @type {string}
* @memberof Logout200Response
*/
kind: Logout200ResponseKindEnum;
/**
*
* @type {string}
* @memberof Logout200Response
*/
msg: Logout200ResponseMsgEnum;
}
/**
* @export
*/
export const Logout200ResponseKindEnum = {
Success: 'success'
} as const;
export type Logout200ResponseKindEnum = typeof Logout200ResponseKindEnum[keyof typeof Logout200ResponseKindEnum];
/**
* @export
*/
export const Logout200ResponseMsgEnum = {
LogoutSuccess: 'logout.success'
} as const;
export type Logout200ResponseMsgEnum = typeof Logout200ResponseMsgEnum[keyof typeof Logout200ResponseMsgEnum];
/**
* Check if a given object implements the Logout200Response interface.
*/
export function instanceOfLogout200Response(value: object): value is Logout200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function Logout200ResponseFromJSON(json: any): Logout200Response {
return Logout200ResponseFromJSONTyped(json, false);
}
export function Logout200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Logout200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function Logout200ResponseToJSON(json: any): Logout200Response {
return Logout200ResponseToJSONTyped(json, false);
}
export function Logout200ResponseToJSONTyped(value?: Logout200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { Signin200ResponsePayload } from './Signin200ResponsePayload';
import {
Signin200ResponsePayloadFromJSON,
Signin200ResponsePayloadFromJSONTyped,
Signin200ResponsePayloadToJSON,
Signin200ResponsePayloadToJSONTyped,
} from './Signin200ResponsePayload';
/**
*
* @export
* @interface Signin200Response
*/
export interface Signin200Response {
/**
*
* @type {string}
* @memberof Signin200Response
*/
kind: Signin200ResponseKindEnum;
/**
*
* @type {string}
* @memberof Signin200Response
*/
msg: Signin200ResponseMsgEnum;
/**
*
* @type {Signin200ResponsePayload}
* @memberof Signin200Response
*/
payload: Signin200ResponsePayload;
}
/**
* @export
*/
export const Signin200ResponseKindEnum = {
Success: 'success'
} as const;
export type Signin200ResponseKindEnum = typeof Signin200ResponseKindEnum[keyof typeof Signin200ResponseKindEnum];
/**
* @export
*/
export const Signin200ResponseMsgEnum = {
SigninSuccess: 'signin.success'
} as const;
export type Signin200ResponseMsgEnum = typeof Signin200ResponseMsgEnum[keyof typeof Signin200ResponseMsgEnum];
/**
* Check if a given object implements the Signin200Response interface.
*/
export function instanceOfSignin200Response(value: object): value is Signin200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function Signin200ResponseFromJSON(json: any): Signin200Response {
return Signin200ResponseFromJSONTyped(json, false);
}
export function Signin200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Signin200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': Signin200ResponsePayloadFromJSON(json['payload']),
};
}
export function Signin200ResponseToJSON(json: any): Signin200Response {
return Signin200ResponseToJSONTyped(json, false);
}
export function Signin200ResponseToJSONTyped(value?: Signin200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': Signin200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface Signin200ResponsePayload
*/
export interface Signin200ResponsePayload {
/**
* the JWT token
* @type {string}
* @memberof Signin200ResponsePayload
*/
token: string;
}
/**
* Check if a given object implements the Signin200ResponsePayload interface.
*/
export function instanceOfSignin200ResponsePayload(value: object): value is Signin200ResponsePayload {
if (!('token' in value) || value['token'] === undefined) return false;
return true;
}
export function Signin200ResponsePayloadFromJSON(json: any): Signin200ResponsePayload {
return Signin200ResponsePayloadFromJSONTyped(json, false);
}
export function Signin200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Signin200ResponsePayload {
if (json == null) {
return json;
}
return {
'token': json['token'],
};
}
export function Signin200ResponsePayloadToJSON(json: any): Signin200ResponsePayload {
return Signin200ResponsePayloadToJSONTyped(json, false);
}
export function Signin200ResponsePayloadToJSONTyped(value?: Signin200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'token': value['token'],
};
}

View file

@ -0,0 +1,99 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface Signin400Response
*/
export interface Signin400Response {
/**
*
* @type {string}
* @memberof Signin400Response
*/
kind: Signin400ResponseKindEnum;
/**
*
* @type {string}
* @memberof Signin400Response
*/
msg: Signin400ResponseMsgEnum;
}
/**
* @export
*/
export const Signin400ResponseKindEnum = {
Failed: 'failed'
} as const;
export type Signin400ResponseKindEnum = typeof Signin400ResponseKindEnum[keyof typeof Signin400ResponseKindEnum];
/**
* @export
*/
export const Signin400ResponseMsgEnum = {
SigninFailedUsernameExisting: 'signin.failed.username.existing',
SigninFailedUsernameToolong: 'signin.failed.username.toolong',
SigninFailedUsernameTooshort: 'signin.failed.username.tooshort',
SigninFailedUsernameInvalid: 'signin.failed.username.invalid',
SigninFailedPasswordToolong: 'signin.failed.password.toolong',
SigninFailedPasswordTooshort: 'signin.failed.password.tooshort',
SigninFailedPasswordInvalid: 'signin.failed.password.invalid'
} as const;
export type Signin400ResponseMsgEnum = typeof Signin400ResponseMsgEnum[keyof typeof Signin400ResponseMsgEnum];
/**
* Check if a given object implements the Signin400Response interface.
*/
export function instanceOfSignin400Response(value: object): value is Signin400Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function Signin400ResponseFromJSON(json: any): Signin400Response {
return Signin400ResponseFromJSONTyped(json, false);
}
export function Signin400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Signin400Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function Signin400ResponseToJSON(json: any): Signin400Response {
return Signin400ResponseToJSONTyped(json, false);
}
export function Signin400ResponseToJSONTyped(value?: Signin400Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface Signin500Response
*/
export interface Signin500Response {
/**
*
* @type {string}
* @memberof Signin500Response
*/
kind: Signin500ResponseKindEnum;
/**
*
* @type {string}
* @memberof Signin500Response
*/
msg: Signin500ResponseMsgEnum;
}
/**
* @export
*/
export const Signin500ResponseKindEnum = {
Failed: 'failed'
} as const;
export type Signin500ResponseKindEnum = typeof Signin500ResponseKindEnum[keyof typeof Signin500ResponseKindEnum];
/**
* @export
*/
export const Signin500ResponseMsgEnum = {
SigninFailedGeneric: 'signin.failed.generic'
} as const;
export type Signin500ResponseMsgEnum = typeof Signin500ResponseMsgEnum[keyof typeof Signin500ResponseMsgEnum];
/**
* Check if a given object implements the Signin500Response interface.
*/
export function instanceOfSignin500Response(value: object): value is Signin500Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function Signin500ResponseFromJSON(json: any): Signin500Response {
return Signin500ResponseFromJSONTyped(json, false);
}
export function Signin500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Signin500Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function Signin500ResponseToJSON(json: any): Signin500Response {
return Signin500ResponseToJSONTyped(json, false);
}
export function Signin500ResponseToJSONTyped(value?: Signin500Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,124 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { EnableOtp200ResponsePayload } from './EnableOtp200ResponsePayload';
import {
EnableOtp200ResponsePayloadFromJSON,
EnableOtp200ResponsePayloadFromJSONTyped,
EnableOtp200ResponsePayloadToJSON,
EnableOtp200ResponsePayloadToJSONTyped,
} from './EnableOtp200ResponsePayload';
import type { StatusOtp200ResponseAnyOf } from './StatusOtp200ResponseAnyOf';
import {
StatusOtp200ResponseAnyOfFromJSON,
StatusOtp200ResponseAnyOfFromJSONTyped,
StatusOtp200ResponseAnyOfToJSON,
StatusOtp200ResponseAnyOfToJSONTyped,
} from './StatusOtp200ResponseAnyOf';
import type { StatusOtp200ResponseAnyOf1 } from './StatusOtp200ResponseAnyOf1';
import {
StatusOtp200ResponseAnyOf1FromJSON,
StatusOtp200ResponseAnyOf1FromJSONTyped,
StatusOtp200ResponseAnyOf1ToJSON,
StatusOtp200ResponseAnyOf1ToJSONTyped,
} from './StatusOtp200ResponseAnyOf1';
/**
*
* @export
* @interface StatusOtp200Response
*/
export interface StatusOtp200Response {
/**
*
* @type {string}
* @memberof StatusOtp200Response
*/
kind: StatusOtp200ResponseKindEnum;
/**
*
* @type {string}
* @memberof StatusOtp200Response
*/
msg: StatusOtp200ResponseMsgEnum;
/**
*
* @type {EnableOtp200ResponsePayload}
* @memberof StatusOtp200Response
*/
payload: EnableOtp200ResponsePayload;
}
/**
* @export
*/
export const StatusOtp200ResponseKindEnum = {
Success: 'success'
} as const;
export type StatusOtp200ResponseKindEnum = typeof StatusOtp200ResponseKindEnum[keyof typeof StatusOtp200ResponseKindEnum];
/**
* @export
*/
export const StatusOtp200ResponseMsgEnum = {
StatusOtpSuccessDisabled: 'statusOtp.success.disabled'
} as const;
export type StatusOtp200ResponseMsgEnum = typeof StatusOtp200ResponseMsgEnum[keyof typeof StatusOtp200ResponseMsgEnum];
/**
* Check if a given object implements the StatusOtp200Response interface.
*/
export function instanceOfStatusOtp200Response(value: object): value is StatusOtp200Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function StatusOtp200ResponseFromJSON(json: any): StatusOtp200Response {
return StatusOtp200ResponseFromJSONTyped(json, false);
}
export function StatusOtp200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp200Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': EnableOtp200ResponsePayloadFromJSON(json['payload']),
};
}
export function StatusOtp200ResponseToJSON(json: any): StatusOtp200Response {
return StatusOtp200ResponseToJSONTyped(json, false);
}
export function StatusOtp200ResponseToJSONTyped(value?: StatusOtp200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': EnableOtp200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,110 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { EnableOtp200ResponsePayload } from './EnableOtp200ResponsePayload';
import {
EnableOtp200ResponsePayloadFromJSON,
EnableOtp200ResponsePayloadFromJSONTyped,
EnableOtp200ResponsePayloadToJSON,
EnableOtp200ResponsePayloadToJSONTyped,
} from './EnableOtp200ResponsePayload';
/**
*
* @export
* @interface StatusOtp200ResponseAnyOf
*/
export interface StatusOtp200ResponseAnyOf {
/**
*
* @type {string}
* @memberof StatusOtp200ResponseAnyOf
*/
kind: StatusOtp200ResponseAnyOfKindEnum;
/**
*
* @type {string}
* @memberof StatusOtp200ResponseAnyOf
*/
msg: StatusOtp200ResponseAnyOfMsgEnum;
/**
*
* @type {EnableOtp200ResponsePayload}
* @memberof StatusOtp200ResponseAnyOf
*/
payload: EnableOtp200ResponsePayload;
}
/**
* @export
*/
export const StatusOtp200ResponseAnyOfKindEnum = {
Success: 'success'
} as const;
export type StatusOtp200ResponseAnyOfKindEnum = typeof StatusOtp200ResponseAnyOfKindEnum[keyof typeof StatusOtp200ResponseAnyOfKindEnum];
/**
* @export
*/
export const StatusOtp200ResponseAnyOfMsgEnum = {
StatusOtpSuccessEnabled: 'statusOtp.success.enabled'
} as const;
export type StatusOtp200ResponseAnyOfMsgEnum = typeof StatusOtp200ResponseAnyOfMsgEnum[keyof typeof StatusOtp200ResponseAnyOfMsgEnum];
/**
* Check if a given object implements the StatusOtp200ResponseAnyOf interface.
*/
export function instanceOfStatusOtp200ResponseAnyOf(value: object): value is StatusOtp200ResponseAnyOf {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
return true;
}
export function StatusOtp200ResponseAnyOfFromJSON(json: any): StatusOtp200ResponseAnyOf {
return StatusOtp200ResponseAnyOfFromJSONTyped(json, false);
}
export function StatusOtp200ResponseAnyOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp200ResponseAnyOf {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
'payload': EnableOtp200ResponsePayloadFromJSON(json['payload']),
};
}
export function StatusOtp200ResponseAnyOfToJSON(json: any): StatusOtp200ResponseAnyOf {
return StatusOtp200ResponseAnyOfToJSONTyped(json, false);
}
export function StatusOtp200ResponseAnyOfToJSONTyped(value?: StatusOtp200ResponseAnyOf | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
'payload': EnableOtp200ResponsePayloadToJSON(value['payload']),
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface StatusOtp200ResponseAnyOf1
*/
export interface StatusOtp200ResponseAnyOf1 {
/**
*
* @type {string}
* @memberof StatusOtp200ResponseAnyOf1
*/
kind: StatusOtp200ResponseAnyOf1KindEnum;
/**
*
* @type {string}
* @memberof StatusOtp200ResponseAnyOf1
*/
msg: StatusOtp200ResponseAnyOf1MsgEnum;
}
/**
* @export
*/
export const StatusOtp200ResponseAnyOf1KindEnum = {
Success: 'success'
} as const;
export type StatusOtp200ResponseAnyOf1KindEnum = typeof StatusOtp200ResponseAnyOf1KindEnum[keyof typeof StatusOtp200ResponseAnyOf1KindEnum];
/**
* @export
*/
export const StatusOtp200ResponseAnyOf1MsgEnum = {
StatusOtpSuccessDisabled: 'statusOtp.success.disabled'
} as const;
export type StatusOtp200ResponseAnyOf1MsgEnum = typeof StatusOtp200ResponseAnyOf1MsgEnum[keyof typeof StatusOtp200ResponseAnyOf1MsgEnum];
/**
* Check if a given object implements the StatusOtp200ResponseAnyOf1 interface.
*/
export function instanceOfStatusOtp200ResponseAnyOf1(value: object): value is StatusOtp200ResponseAnyOf1 {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function StatusOtp200ResponseAnyOf1FromJSON(json: any): StatusOtp200ResponseAnyOf1 {
return StatusOtp200ResponseAnyOf1FromJSONTyped(json, false);
}
export function StatusOtp200ResponseAnyOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp200ResponseAnyOf1 {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function StatusOtp200ResponseAnyOf1ToJSON(json: any): StatusOtp200ResponseAnyOf1 {
return StatusOtp200ResponseAnyOf1ToJSONTyped(json, false);
}
export function StatusOtp200ResponseAnyOf1ToJSONTyped(value?: StatusOtp200ResponseAnyOf1 | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* @fastify/swagger
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 9.6.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface StatusOtp500Response
*/
export interface StatusOtp500Response {
/**
*
* @type {string}
* @memberof StatusOtp500Response
*/
kind: StatusOtp500ResponseKindEnum;
/**
*
* @type {string}
* @memberof StatusOtp500Response
*/
msg: StatusOtp500ResponseMsgEnum;
}
/**
* @export
*/
export const StatusOtp500ResponseKindEnum = {
Failure: 'failure'
} as const;
export type StatusOtp500ResponseKindEnum = typeof StatusOtp500ResponseKindEnum[keyof typeof StatusOtp500ResponseKindEnum];
/**
* @export
*/
export const StatusOtp500ResponseMsgEnum = {
StatusOtpFailureGeneric: 'statusOtp.failure.generic'
} as const;
export type StatusOtp500ResponseMsgEnum = typeof StatusOtp500ResponseMsgEnum[keyof typeof StatusOtp500ResponseMsgEnum];
/**
* Check if a given object implements the StatusOtp500Response interface.
*/
export function instanceOfStatusOtp500Response(value: object): value is StatusOtp500Response {
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('msg' in value) || value['msg'] === undefined) return false;
return true;
}
export function StatusOtp500ResponseFromJSON(json: any): StatusOtp500Response {
return StatusOtp500ResponseFromJSONTyped(json, false);
}
export function StatusOtp500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp500Response {
if (json == null) {
return json;
}
return {
'kind': json['kind'],
'msg': json['msg'],
};
}
export function StatusOtp500ResponseToJSON(json: any): StatusOtp500Response {
return StatusOtp500ResponseToJSONTyped(json, false);
}
export function StatusOtp500ResponseToJSONTyped(value?: StatusOtp500Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'msg': value['msg'],
};
}

View file

@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
export * from './DisableOtp200Response';
export * from './DisableOtp401Response';
export * from './DisableOtp500Response';
export * from './EnableOtp200Response';
export * from './EnableOtp200ResponsePayload';
export * from './GetUser200Response';
export * from './GetUser200ResponsePayload';
export * from './GetUser403Response';
export * from './GetUser404Response';
export * from './GetUserUserParameter';
export * from './GuestLogin200Response';
export * from './GuestLogin200ResponsePayload';
export * from './GuestLogin500Response';
export * from './Login200Response';
export * from './Login202Response';
export * from './Login202ResponsePayload';
export * from './Login400Response';
export * from './LoginOtp200Response';
export * from './LoginOtp200ResponsePayload';
export * from './LoginOtp400Response';
export * from './LoginOtp401Response';
export * from './LoginOtp408Response';
export * from './LoginOtp500Response';
export * from './LoginOtpRequest';
export * from './LoginRequest';
export * from './Logout200Response';
export * from './Signin200Response';
export * from './Signin200ResponsePayload';
export * from './Signin400Response';
export * from './Signin500Response';
export * from './StatusOtp200Response';
export * from './StatusOtp200ResponseAnyOf';
export * from './StatusOtp200ResponseAnyOf1';
export * from './StatusOtp500Response';