import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Schema definition for creating a reusable extraction template. Extraction schemas define the structure and validation rules for data extraction from files. */ export type ExtractionSchema = { /** * Name of the extraction schema. Must be between 1 and 100 characters. Used to identify and reference the schema. */ name: string; /** * Optional description of the schema. Maximum 500 characters. Helps document the purpose and usage of the schema. */ description?: string | undefined; /** * JSON Schema object defining the structure of data to extract. Specifies the fields, types, and validation rules for the extracted data. */ schema: { [k: string]: any; }; /** * Optional metadata for the schema. Can store additional information like version, author, or custom properties. */ metadata?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const ExtractionSchema$inboundSchema: z.ZodType; /** @internal */ export type ExtractionSchema$Outbound = { name: string; description?: string | undefined; schema: { [k: string]: any; }; metadata?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const ExtractionSchema$outboundSchema: z.ZodType; export declare function extractionSchemaToJSON(extractionSchema: ExtractionSchema): string; export declare function extractionSchemaFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=extractionschema.d.ts.map