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


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

export function ConsentStageModeEnumFromJSON(json: any): ConsentStageModeEnum {
    return ConsentStageModeEnumFromJSONTyped(json, false);
}

export function ConsentStageModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentStageModeEnum {
    return json as ConsentStageModeEnum;
}

export function ConsentStageModeEnumToJSON(value?: ConsentStageModeEnum | null): any {
    return value as any;
}

export function ConsentStageModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): ConsentStageModeEnum {
    return value as ConsentStageModeEnum;
}

