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

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

export function TaskStatusEnumFromJSON(json: any): TaskStatusEnum {
    return TaskStatusEnumFromJSONTyped(json, false);
}

export function TaskStatusEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): TaskStatusEnum {
    return json as TaskStatusEnum;
}

export function TaskStatusEnumToJSON(value?: TaskStatusEnum | null): any {
    return value as any;
}

export function TaskStatusEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): TaskStatusEnum {
    return value as TaskStatusEnum;
}
