/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 97f2cd366488
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { OCRPageObject$inboundSchema } from "./ocrpageobject.js";
import { OCRUsageInfo$inboundSchema } from "./ocrusageinfo.js";
/** @internal */
export const OCRResponse$inboundSchema = z
    .object({
    pages: z.array(OCRPageObject$inboundSchema),
    model: z.string(),
    document_annotation: z.nullable(z.string()).optional(),
    usage_info: OCRUsageInfo$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "document_annotation": "documentAnnotation",
        "usage_info": "usageInfo",
    });
});
export function ocrResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => OCRResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OCRResponse' from JSON`);
}
//# sourceMappingURL=ocrresponse.js.map