/* 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';
/**
 * 
 * @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'],
    };
}

