/* 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 TaskAggregatedStatusEnum = {
    Queued: "queued",
    Consumed: "consumed",
    Preprocess: "preprocess",
    Running: "running",
    Postprocess: "postprocess",
    Rejected: "rejected",
    Done: "done",
    Info: "info",
    Warning: "warning",
    Error: "error",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type TaskAggregatedStatusEnum =
    (typeof TaskAggregatedStatusEnum)[keyof typeof TaskAggregatedStatusEnum];

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

export function TaskAggregatedStatusEnumFromJSON(json: any): TaskAggregatedStatusEnum {
    return TaskAggregatedStatusEnumFromJSONTyped(json, false);
}

export function TaskAggregatedStatusEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): TaskAggregatedStatusEnum {
    return json as TaskAggregatedStatusEnum;
}

export function TaskAggregatedStatusEnumToJSON(value?: TaskAggregatedStatusEnum | null): any {
    return value as any;
}

export function TaskAggregatedStatusEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): TaskAggregatedStatusEnum {
    return value as TaskAggregatedStatusEnum;
}
