/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PushFieldValidation, PushFieldValidation$inboundSchema, } from "./pushfieldvalidation.js"; export type PushValidationInfo = { warnings?: Array | null | undefined; information?: Array | null | undefined; }; /** @internal */ export const PushValidationInfo$inboundSchema: z.ZodType< PushValidationInfo, z.ZodTypeDef, unknown > = z.object({ warnings: z.nullable(z.array(PushFieldValidation$inboundSchema)).optional(), information: z.nullable(z.array(PushFieldValidation$inboundSchema)) .optional(), }); export function pushValidationInfoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PushValidationInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PushValidationInfo' from JSON`, ); }