/* 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 { ChangePassword401Response } from './ChangePassword401Response';
import {
    ChangePassword401ResponseFromJSON,
    ChangePassword401ResponseFromJSONTyped,
    ChangePassword401ResponseToJSON,
    ChangePassword401ResponseToJSONTyped,
} from './ChangePassword401Response';

/**
 * 
 * @export
 * @interface StatusOtp401Response
 */
export interface StatusOtp401Response {
    /**
     * 
     * @type {string}
     * @memberof StatusOtp401Response
     */
    kind: StatusOtp401ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof StatusOtp401Response
     */
    msg: StatusOtp401ResponseMsgEnum;
}


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

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


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

export function StatusOtp401ResponseFromJSON(json: any): StatusOtp401Response {
    return StatusOtp401ResponseFromJSONTyped(json, false);
}

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

export function StatusOtp401ResponseToJSON(json: any): StatusOtp401Response {
    return StatusOtp401ResponseToJSONTyped(json, false);
}

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

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

