import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ExtractFile = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; export type ExtractRequestBody = { /** * ID of the model to use for extraction */ model: string; /** * JSON Schema object or JSON string defining the structure of data to extract */ schema: string; /** * Optional metadata as JSON object or JSON string */ metadata?: string | undefined; /** * The file to extract structured data from */ file: ExtractFile | Blob; /** * Optional custom system prompt to guide extraction */ prompt?: string | undefined; }; export type ExtractRequest = { /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; requestBody: ExtractRequestBody; }; /** @internal */ export declare const ExtractFile$inboundSchema: z.ZodType; /** @internal */ export type ExtractFile$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const ExtractFile$outboundSchema: z.ZodType; export declare function extractFileToJSON(extractFile: ExtractFile): string; export declare function extractFileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractRequestBody$inboundSchema: z.ZodType; /** @internal */ export type ExtractRequestBody$Outbound = { model: string; schema: string; metadata?: string | undefined; file: ExtractFile$Outbound | Blob; prompt?: string | undefined; }; /** @internal */ export declare const ExtractRequestBody$outboundSchema: z.ZodType; export declare function extractRequestBodyToJSON(extractRequestBody: ExtractRequestBody): string; export declare function extractRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractRequest$inboundSchema: z.ZodType; /** @internal */ export type ExtractRequest$Outbound = { "X-On-Behalf-Of"?: string | undefined; RequestBody: ExtractRequestBody$Outbound; }; /** @internal */ export declare const ExtractRequest$outboundSchema: z.ZodType; export declare function extractRequestToJSON(extractRequest: ExtractRequest): string; export declare function extractRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=extract.d.ts.map