/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


/**
 * 
 * @export
 */
export const UserMatchingModeEnum = {
    Identifier: 'identifier',
    EmailLink: 'email_link',
    EmailDeny: 'email_deny',
    UsernameLink: 'username_link',
    UsernameDeny: 'username_deny',
    UnknownDefaultOpenApi: '11184809'
} as const;
export type UserMatchingModeEnum = typeof UserMatchingModeEnum[keyof typeof UserMatchingModeEnum];


export function instanceOfUserMatchingModeEnum(value: any): boolean {
    for (const key in UserMatchingModeEnum) {
        if (Object.prototype.hasOwnProperty.call(UserMatchingModeEnum, key)) {
            if (UserMatchingModeEnum[key as keyof typeof UserMatchingModeEnum] === value) {
                return true;
            }
        }
    }
    return false;
}

export function UserMatchingModeEnumFromJSON(json: any): UserMatchingModeEnum {
    return UserMatchingModeEnumFromJSONTyped(json, false);
}

export function UserMatchingModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserMatchingModeEnum {
    return json as UserMatchingModeEnum;
}

export function UserMatchingModeEnumToJSON(value?: UserMatchingModeEnum | null): any {
    return value as any;
}

export function UserMatchingModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): UserMatchingModeEnum {
    return value as UserMatchingModeEnum;
}

