import type * as Extend from "../../index"; /** * @example * { * file: { * url: "https://example.com/bank_statement.pdf", * name: "bank_statement.pdf" * } * } */ export interface ParseRequest { /** * Controls the format of the response chunks. Defaults to `json` if not specified. * * `json` - Returns parsed outputs in the response body * * `url` - Return a presigned URL to the parsed content in the response body */ responseType?: Extend.ParseRequestResponseType; /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */ "x-extend-workspace-id"?: string; /** The file to be parsed. Files can be provided as a URL or an Extend file ID. */ file: Extend.ParseRequestFile; config?: Extend.ParseConfig; metadata?: Extend.RunMetadata; }