/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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 AuthTypeEnum = {
    Basic: "basic",
    Bearer: "bearer",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type AuthTypeEnum = (typeof AuthTypeEnum)[keyof typeof AuthTypeEnum];

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

export function AuthTypeEnumFromJSON(json: any): AuthTypeEnum {
    return AuthTypeEnumFromJSONTyped(json, false);
}

export function AuthTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthTypeEnum {
    return json as AuthTypeEnum;
}

export function AuthTypeEnumToJSON(value?: AuthTypeEnum | null): any {
    return value as any;
}

export function AuthTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AuthTypeEnum {
    return value as AuthTypeEnum;
}
