/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 353481879c3a
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const OCRUsageInfo$inboundSchema = z
    .object({
    pages_processed: z.int(),
    doc_size_bytes: z.nullable(z.int()).optional(),
}).transform((v) => {
    return remap$(v, {
        "pages_processed": "pagesProcessed",
        "doc_size_bytes": "docSizeBytes",
    });
});
export function ocrUsageInfoFromJSON(jsonString) {
    return safeParse(jsonString, (x) => OCRUsageInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OCRUsageInfo' from JSON`);
}
//# sourceMappingURL=ocrusageinfo.js.map