import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Metadata about the extraction request and execution */ export type ExtractionResponseMetadata = { /** * The model that was used to perform the extraction */ model: string; /** * The name of the file that was processed */ filename: string; /** * The size of the processed file in bytes */ fileSize: number; /** * ISO 8601 timestamp indicating when the extraction was performed */ extractedAt: string; /** * The ID of the extraction schema that was used (only present when using a saved schema) */ schemaId?: string | undefined; /** * The name of the extraction schema that was used (only present when using a saved schema) */ schemaName?: string | undefined; }; /** * Response from the extraction endpoint containing the extracted structured data and metadata about the extraction process. */ export type ExtractionResponse = { /** * Indicates whether the extraction request was successful */ success: boolean; /** * The extracted structured data conforming to the provided JSON Schema. This is the result of analyzing the file and extracting information according to the schema definition. */ data?: any | undefined; /** * Metadata about the extraction request and execution */ metadata: ExtractionResponseMetadata; }; /** @internal */ export declare const ExtractionResponseMetadata$inboundSchema: z.ZodType; /** @internal */ export type ExtractionResponseMetadata$Outbound = { model: string; filename: string; fileSize: number; extractedAt: string; schemaId?: string | undefined; schemaName?: string | undefined; }; /** @internal */ export declare const ExtractionResponseMetadata$outboundSchema: z.ZodType; export declare function extractionResponseMetadataToJSON(extractionResponseMetadata: ExtractionResponseMetadata): string; export declare function extractionResponseMetadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionResponse$inboundSchema: z.ZodType; /** @internal */ export type ExtractionResponse$Outbound = { success: boolean; data?: any | undefined; metadata: ExtractionResponseMetadata$Outbound; }; /** @internal */ export declare const ExtractionResponse$outboundSchema: z.ZodType; export declare function extractionResponseToJSON(extractionResponse: ExtractionResponse): string; export declare function extractionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=extractionresponse.d.ts.map