import type * as Extend from "../../index"; /** * @example * { * config: { * classifications: [{ * id: "invoice", * type: "invoice", * description: "An invoice or bill for goods or services" * }, { * id: "receipt", * type: "receipt", * description: "A receipt confirming payment" * }, { * id: "other", * type: "other", * description: "Any other document type" * }] * }, * file: { * url: "https://example.com/document.pdf" * } * } */ export interface ClassifyRequest { /** Reference to an existing classifier. One of `classifier` or `config` must be provided. */ classifier?: Extend.ClassifyRequestClassifier; /** Inline classify configuration. One of `classifier` or `config` must be provided. */ config?: Extend.ClassifyConfig; /** The file to be classified. Files can be provided as a URL, an Extend file ID, or raw text. */ file: Extend.ClassifyRequestFile; metadata?: Extend.RunMetadata; }