/* 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 LastTaskStatusEnum = {
    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 LastTaskStatusEnum = (typeof LastTaskStatusEnum)[keyof typeof LastTaskStatusEnum];

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

export function LastTaskStatusEnumFromJSON(json: any): LastTaskStatusEnum {
    return LastTaskStatusEnumFromJSONTyped(json, false);
}

export function LastTaskStatusEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): LastTaskStatusEnum {
    return json as LastTaskStatusEnum;
}

export function LastTaskStatusEnumToJSON(value?: LastTaskStatusEnum | null): any {
    return value as any;
}

export function LastTaskStatusEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): LastTaskStatusEnum {
    return value as LastTaskStatusEnum;
}
