/* 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 EndpointAuthModeEnum = {
    Static: "static",
    Prompt: "prompt",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type EndpointAuthModeEnum = (typeof EndpointAuthModeEnum)[keyof typeof EndpointAuthModeEnum];

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

export function EndpointAuthModeEnumFromJSON(json: any): EndpointAuthModeEnum {
    return EndpointAuthModeEnumFromJSONTyped(json, false);
}

export function EndpointAuthModeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): EndpointAuthModeEnum {
    return json as EndpointAuthModeEnum;
}

export function EndpointAuthModeEnumToJSON(value?: EndpointAuthModeEnum | null): any {
    return value as any;
}

export function EndpointAuthModeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): EndpointAuthModeEnum {
    return value as EndpointAuthModeEnum;
}
