/* 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 PolicyEngineMode = {
    All: 'all',
    Any: 'any',
    UnknownDefaultOpenApi: '11184809'
} as const;
export type PolicyEngineMode = typeof PolicyEngineMode[keyof typeof PolicyEngineMode];


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

export function PolicyEngineModeFromJSON(json: any): PolicyEngineMode {
    return PolicyEngineModeFromJSONTyped(json, false);
}

export function PolicyEngineModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyEngineMode {
    return json as PolicyEngineMode;
}

export function PolicyEngineModeToJSON(value?: PolicyEngineMode | null): any {
    return value as any;
}

export function PolicyEngineModeToJSONTyped(value: any, ignoreDiscriminator: boolean): PolicyEngineMode {
    return value as PolicyEngineMode;
}

