/* 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.1
 * 
 *
 * 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 { EnableOtp401ResponseAnyOf } from './EnableOtp401ResponseAnyOf';
import {
    EnableOtp401ResponseAnyOfFromJSON,
    EnableOtp401ResponseAnyOfFromJSONTyped,
    EnableOtp401ResponseAnyOfToJSON,
    EnableOtp401ResponseAnyOfToJSONTyped,
} from './EnableOtp401ResponseAnyOf';
import type { ChangePassword401Response } from './ChangePassword401Response';
import {
    ChangePassword401ResponseFromJSON,
    ChangePassword401ResponseFromJSONTyped,
    ChangePassword401ResponseToJSON,
    ChangePassword401ResponseToJSONTyped,
} from './ChangePassword401Response';

/**
 * 
 * @export
 * @interface EnableOtp401Response
 */
export interface EnableOtp401Response {
    /**
     * 
     * @type {string}
     * @memberof EnableOtp401Response
     */
    kind: EnableOtp401ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof EnableOtp401Response
     */
    msg: EnableOtp401ResponseMsgEnum;
}


/**
 * @export
 */
export const EnableOtp401ResponseKindEnum = {
    NotLoggedIn: 'notLoggedIn'
} as const;
export type EnableOtp401ResponseKindEnum = typeof EnableOtp401ResponseKindEnum[keyof typeof EnableOtp401ResponseKindEnum];

/**
 * @export
 */
export const EnableOtp401ResponseMsgEnum = {
    AuthNoCookie: 'auth.noCookie',
    AuthInvalidKind: 'auth.invalidKind',
    AuthNoUser: 'auth.noUser',
    AuthInvalid: 'auth.invalid'
} as const;
export type EnableOtp401ResponseMsgEnum = typeof EnableOtp401ResponseMsgEnum[keyof typeof EnableOtp401ResponseMsgEnum];


/**
 * Check if a given object implements the EnableOtp401Response interface.
 */
export function instanceOfEnableOtp401Response(value: object): value is EnableOtp401Response {
    if (!('kind' in value) || value['kind'] === undefined) return false;
    if (!('msg' in value) || value['msg'] === undefined) return false;
    return true;
}

export function EnableOtp401ResponseFromJSON(json: any): EnableOtp401Response {
    return EnableOtp401ResponseFromJSONTyped(json, false);
}

export function EnableOtp401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableOtp401Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
    };
}

export function EnableOtp401ResponseToJSON(json: any): EnableOtp401Response {
    return EnableOtp401ResponseToJSONTyped(json, false);
}

export function EnableOtp401ResponseToJSONTyped(value?: EnableOtp401Response | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
    };
}

