"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AgenticDocumentAnalysisResponseSchema = exports.AgenticDocumentAnalysisInputSchema = void 0;
const zod_1 = require("zod");
exports.AgenticDocumentAnalysisInputSchema = zod_1.z.object({
    query: zod_1.z
        .object({
        pages: zod_1.z.string().nullable(),
        timeout: zod_1.z.number().nullable(),
    })
        .optional()
        .nullable(),
    body: zod_1.z.object({
        image: zod_1.z.string().nullable(),
        pdf: zod_1.z.string().nullable(),
        include_marginalia: zod_1.z.boolean().default(true),
        include_metadata_in_markdown: zod_1.z.boolean().default(true),
        fields_schema: zod_1.z.string().nullable(),
    }),
});
exports.AgenticDocumentAnalysisResponseSchema = zod_1.z.object({
    data: zod_1.z.object({
        markdown: zod_1.z.string(),
        chunks: zod_1.z.array(zod_1.z.object({
            text: zod_1.z.string(),
            chunk_type: zod_1.z.any(),
            chunk_id: zod_1.z.string(),
            grounding: zod_1.z.array(zod_1.z.any()).nullable(),
        })),
        extracted_schema: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullable(),
        extraction_metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullable(),
    }),
    errors: zod_1.z.array(zod_1.z.unknown()),
    extraction_error: zod_1.z.string().nullable(),
});
//# sourceMappingURL=AgenticDocumentAnalysis.schema.js.map