/* tslint:disable */
/* eslint-disable */
/**
 * Fabro Run API
 * HTTP API for managing Fabro workflow run executions.
 *
 * The version of the OpenAPI document: 0.2.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


// May contain unused imports in some cases
// @ts-ignore
import type { ErrorResponseEntry } from './error-response-entry';
// May contain unused imports in some cases
// @ts-ignore
import type { Run } from './run';

/**
 * Result for one run in a batch archive or unarchive request.
 */
export interface BatchRunLifecycleResult {
    /**
     * Run ID from the request item.
     */
    'run_id': string;
    /**
     * Whether this item succeeded.
     */
    'ok': boolean;
    /**
     * Machine-readable item outcome.
     */
    'outcome': BatchRunLifecycleResultOutcomeEnum;
    /**
     * Decorated run summary for successful items when it can be loaded.
     */
    'run'?: Run;
    /**
     * Structured item error for failed items.
     */
    'error'?: ErrorResponseEntry;
}

export const BatchRunLifecycleResultOutcomeEnum = {
    ARCHIVED: 'archived',
    ALREADY_ARCHIVED: 'already_archived',
    UNARCHIVED: 'unarchived',
    NOT_ARCHIVED: 'not_archived',
    NOT_FOUND: 'not_found',
    CONFLICT: 'conflict',
    ERROR: 'error'
} as const;

export type BatchRunLifecycleResultOutcomeEnum = typeof BatchRunLifecycleResultOutcomeEnum[keyof typeof BatchRunLifecycleResultOutcomeEnum];
