/* 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 FlowDesignationEnum = {
    Authentication: "authentication",
    Authorization: "authorization",
    Invalidation: "invalidation",
    Enrollment: "enrollment",
    Unenrollment: "unenrollment",
    Recovery: "recovery",
    StageConfiguration: "stage_configuration",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type FlowDesignationEnum = (typeof FlowDesignationEnum)[keyof typeof FlowDesignationEnum];

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

export function FlowDesignationEnumFromJSON(json: any): FlowDesignationEnum {
    return FlowDesignationEnumFromJSONTyped(json, false);
}

export function FlowDesignationEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): FlowDesignationEnum {
    return json as FlowDesignationEnum;
}

export function FlowDesignationEnumToJSON(value?: FlowDesignationEnum | null): any {
    return value as any;
}

export function FlowDesignationEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): FlowDesignationEnum {
    return value as FlowDesignationEnum;
}
