/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 950cdc4ecd09 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type OCRPageDimensions = { /** * Dots per inch of the page-image */ dpi: number; /** * Height of the image in pixels */ height: number; /** * Width of the image in pixels */ width: number; }; /** @internal */ export const OCRPageDimensions$inboundSchema: z.ZodType< OCRPageDimensions, unknown > = z.object({ dpi: z.int(), height: z.int(), width: z.int(), }); export function ocrPageDimensionsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OCRPageDimensions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OCRPageDimensions' from JSON`, ); }