/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 0b8a72dd07c0
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { OCRConfidenceScore$inboundSchema, } from "./ocrconfidencescore.js";
/** @internal */
export const OCRPageConfidenceScores$inboundSchema = z.object({
    word_confidence_scores: z.array(OCRConfidenceScore$inboundSchema).optional(),
    average_page_confidence_score: z.number(),
    minimum_page_confidence_score: z.number(),
}).transform((v) => {
    return remap$(v, {
        "word_confidence_scores": "wordConfidenceScores",
        "average_page_confidence_score": "averagePageConfidenceScore",
        "minimum_page_confidence_score": "minimumPageConfidenceScore",
    });
});
export function ocrPageConfidenceScoresFromJSON(jsonString) {
    return safeParse(jsonString, (x) => OCRPageConfidenceScores$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OCRPageConfidenceScores' from JSON`);
}
//# sourceMappingURL=ocrpageconfidencescores.js.map