/** * Error returned by the Classify, Split and job endpoints. Retry only when `retryable` is `true`, using the same `Idempotency-Key`. Include `request_id` when reporting an issue. */ export interface DocAiJobError { /** Machine-readable error code, e.g. `INVALID_REQUEST`, `UNAUTHORIZED`, `NOT_FOUND`, `RESULTS_NOT_READY`, `IDEMPOTENCY_CONFLICT`, `PAGE_RANGE_INVALID`, `UNSUPPORTED_CAPABILITY`, `UNSUPPORTED_INPUT` or `TOO_MANY_DOCUMENTS`. */ code: string; /** Human-readable summary. */ message: string; /** Explanation specific to this occurrence. */ detail?: string | undefined; /** JSON pointer to the offending field, e.g. `/config/scope`. */ pointer?: string | undefined; /** Whether retrying the same request can succeed. */ retryable: boolean; /** Request identifier to quote when reporting an issue. */ request_id?: string | undefined; /** HTTP status code. */ status?: number | undefined; /** Short title of the HTTP status. */ title?: string | undefined; /** Present on `RESULTS_NOT_READY`, the current status of the job. */ job_status?: string | undefined; }