import type * as SarvamAI from "../index.mjs"; export interface DocAiJobStatusResponse { /** The unique identifier of the job. */ job_id: string; /** Current status of the job. Terminal statuses: `completed`, `partially_completed`, `failed`, `rejected`. */ status: string; /** Job pipeline: `parse` or `extract`. Classify and Split jobs report `type` instead. */ pipeline?: string | undefined; usage: SarvamAI.DocAiUsage; /** Job creation timestamp. */ created_at: string; /** Timestamp of the last job update. */ updated_at: string; /** Job type. Present for Classify and Split jobs: `classify` or `split`. */ type?: string | undefined; /** Processing phase of a Classify or Split job, e.g. `commit` when finished. */ phase?: string | undefined; /** Progress counters for a Classify or Split job, such as `pages_read`, `pages_analyzed` and `pages_total_selected`. */ progress?: Record | undefined; /** Revision of the result. Present for Classify and Split jobs. */ result_revision?: number | undefined; /** The unique identifier of the job run. */ run_id?: string | undefined; /** Path to fetch the results from. */ results_url?: string | undefined; /** For a batch, one entry per submitted document with its own `job_id`, `status` and URLs. */ documents?: Record[] | undefined; }