/* 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 ProxyMode = {
    Proxy: "proxy",
    ForwardSingle: "forward_single",
    ForwardDomain: "forward_domain",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type ProxyMode = (typeof ProxyMode)[keyof typeof ProxyMode];

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

export function ProxyModeFromJSON(json: any): ProxyMode {
    return ProxyModeFromJSONTyped(json, false);
}

export function ProxyModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProxyMode {
    return json as ProxyMode;
}

export function ProxyModeToJSON(value?: ProxyMode | null): any {
    return value as any;
}

export function ProxyModeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProxyMode {
    return value as ProxyMode;
}
