/* 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 ConsentModeEnum = {
    AlwaysRequire: "always_require",
    Permanent: "permanent",
    Expiring: "expiring",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type ConsentModeEnum = (typeof ConsentModeEnum)[keyof typeof ConsentModeEnum];

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

export function ConsentModeEnumFromJSON(json: any): ConsentModeEnum {
    return ConsentModeEnumFromJSONTyped(json, false);
}

export function ConsentModeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): ConsentModeEnum {
    return json as ConsentModeEnum;
}

export function ConsentModeEnumToJSON(value?: ConsentModeEnum | null): any {
    return value as any;
}

export function ConsentModeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): ConsentModeEnum {
    return value as ConsentModeEnum;
}
