import { DocumentReference as FHIRDocumentReference } from "@medplum/fhirtypes"; import { z } from "zod"; /** * Optional webhook metadata for a document query request. Mirrors the legacy * `cxRequestMetadataSchema` shape so existing callers keep working unchanged. */ export declare const documentQueryMetadataSchema: z.ZodEffects, Record, Record>; /** * Request body for `POST /medical/v1/document/query`. * * - `hie` is the new per-request HIE control (e.g. exclude CareQuality). * - `metadata` is preserved from the prior body shape and continues to flow through * to webhook payloads — both fields are optional and may be combined. */ export declare const documentQueryBodySchema: z.ZodObject<{ hie: z.ZodOptional; }, "strict", z.ZodTypeAny, { exclude?: boolean | undefined; }, { exclude?: boolean | undefined; }>>; commonwell: z.ZodOptional; }, "strict", z.ZodTypeAny, { exclude?: boolean | undefined; }, { exclude?: boolean | undefined; }>>; ehex: z.ZodOptional; }, "strict", z.ZodTypeAny, { exclude?: boolean | undefined; }, { exclude?: boolean | undefined; }>>; }, "strict", z.ZodTypeAny, { carequality?: { exclude?: boolean | undefined; } | undefined; commonwell?: { exclude?: boolean | undefined; } | undefined; ehex?: { exclude?: boolean | undefined; } | undefined; }, { carequality?: { exclude?: boolean | undefined; } | undefined; commonwell?: { exclude?: boolean | undefined; } | undefined; ehex?: { exclude?: boolean | undefined; } | undefined; }>, { carequality?: { exclude?: boolean | undefined; } | undefined; commonwell?: { exclude?: boolean | undefined; } | undefined; ehex?: { exclude?: boolean | undefined; } | undefined; }, { carequality?: { exclude?: boolean | undefined; } | undefined; commonwell?: { exclude?: boolean | undefined; } | undefined; ehex?: { exclude?: boolean | undefined; } | undefined; }>>; metadata: z.ZodOptional, Record, Record>>; }, "strip", z.ZodTypeAny, { metadata?: Record | undefined; hie?: { carequality?: { exclude?: boolean | undefined; } | undefined; commonwell?: { exclude?: boolean | undefined; } | undefined; ehex?: { exclude?: boolean | undefined; } | undefined; } | undefined; }, { metadata?: Record | undefined; hie?: { carequality?: { exclude?: boolean | undefined; } | undefined; commonwell?: { exclude?: boolean | undefined; } | undefined; ehex?: { exclude?: boolean | undefined; } | undefined; } | undefined; }>; export type DocumentQueryBody = z.infer; export declare const documentReferenceSchema: z.ZodObject<{ id: z.ZodString; fileName: z.ZodString; description: z.ZodOptional; status: z.ZodOptional; indexed: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; type: z.ZodOptional>; code: z.ZodNullable>; display: z.ZodNullable>; }, "strip", z.ZodTypeAny, { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }, { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }>, "many">>; text: z.ZodOptional; }, "strip", z.ZodTypeAny, { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; }, { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; fileName: string; type?: { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; } | undefined; status?: string | undefined; description?: string | undefined; indexed?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, { id: string; fileName: string; type?: { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; } | undefined; status?: string | undefined; description?: string | undefined; indexed?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }>; export type DocumentReference = z.infer; export declare const documentQueryStatusSchema: z.ZodEnum<["processing", "completed", "failed"]>; export type DocumentQueryStatus = z.infer; export declare const progressSchema: z.ZodObject<{ status: z.ZodEnum<["processing", "completed", "failed"]>; total: z.ZodOptional; successful: z.ZodOptional; errors: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; }, { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; }>; export declare const documentQuerySchema: z.ZodObject<{ download: z.ZodOptional; total: z.ZodOptional; successful: z.ZodOptional; errors: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; }, { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; }>>; convert: z.ZodOptional; total: z.ZodOptional; successful: z.ZodOptional; errors: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; }, { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; }>>; requestId: z.ZodOptional; }, "strip", z.ZodTypeAny, { download?: { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; } | undefined; convert?: { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; } | undefined; requestId?: string | undefined; }, { download?: { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; } | undefined; convert?: { status: "processing" | "completed" | "failed"; total?: number | undefined; successful?: number | undefined; errors?: number | undefined; } | undefined; requestId?: string | undefined; }>; export declare const bulkGetDocumentUrlQuerySchema: z.ZodObject<{ status: z.ZodEnum<["processing", "completed", "failed"]>; requestId: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "processing" | "completed" | "failed"; requestId?: string | undefined; }, { status: "processing" | "completed" | "failed"; requestId?: string | undefined; }>; export type BulkGetDocumentUrlQuery = z.infer; export type DocumentQuery = z.infer; export declare const documentListSchema: z.ZodObject<{ documents: z.ZodArray; status: z.ZodOptional; indexed: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; type: z.ZodOptional>; code: z.ZodNullable>; display: z.ZodNullable>; }, "strip", z.ZodTypeAny, { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }, { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }>, "many">>; text: z.ZodOptional; }, "strip", z.ZodTypeAny, { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; }, { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; fileName: string; type?: { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; } | undefined; status?: string | undefined; description?: string | undefined; indexed?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, { id: string; fileName: string; type?: { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; } | undefined; status?: string | undefined; description?: string | undefined; indexed?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { documents: { id: string; fileName: string; type?: { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; } | undefined; status?: string | undefined; description?: string | undefined; indexed?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }[]; }, { documents: { id: string; fileName: string; type?: { coding?: { code?: string | null | undefined; system?: string | null | undefined; display?: string | null | undefined; }[] | undefined; text?: string | undefined; } | undefined; status?: string | undefined; description?: string | undefined; indexed?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }[]; }>; export type DocumentList = z.infer; export type ListDocumentFilters = { dateFrom?: string | Date; dateTo?: string | Date; content?: string; }; export type ListDocumentResult = { documents: FHIRDocumentReference[]; }; export type UploadDocumentResult = { documentReferenceId: string; uploadUrl: string; }; //# sourceMappingURL=document.d.ts.map