import type * as core from "../../../../../core/index.mjs"; /** * @example * {} */ export interface DocAiExtractRequest { /** Document file(s) to extract from. Repeatable multipart part. Exactly one of `file` and `upload_ids` must be provided. */ file?: core.file.Uploadable[] | undefined; /** Comma-separated upload IDs returned by `POST /doc-ai/v1/job/upload`. Exactly one of `file` and `upload_ids` must be provided. */ upload_ids?: string; /** Inline extraction schema as a JSON string. The root must be `type: "object"` with non-empty `properties`; every field needs a `type` and a non-empty `description`. Supported types: `string`, `number`, `integer`, `boolean`, `object`, `array` (objects need `properties`, arrays need `items`); optional `enum`; maximum nesting depth 4. Exactly one of `schema` and `config_id` is required. */ schema?: string; /** Saved extraction configuration ID. Exactly one of `schema` and `config_id` is required. */ config_id?: string; /** Language code of the document (BCP-47), e.g. `en-IN`, `hi-IN`. */ language?: string; /** Output format of the extraction results. */ output_format?: DocAiExtractRequest.OutputFormat; /** Enable document classification. Boolean sent as text: `true` or `false`. */ classification?: string; /** Automatically correct page orientation before processing. Boolean sent as text: `true` or `false`. */ auto_orient?: string; /** Model to use for extraction. */ model?: string; } export declare namespace DocAiExtractRequest { /** Output format of the extraction results. */ const OutputFormat: { readonly Json: "json"; readonly Csv: "csv"; readonly Xlsx: "xlsx"; }; type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat]; }