/* * 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 { VentriloMessage, VentriloMessage$inboundSchema, } from "./ventrilomessage.js"; export type Ventrilo = { attributes?: Array | null | undefined; messages?: Array | null | undefined; }; /** @internal */ export const Ventrilo$inboundSchema: z.ZodType< Ventrilo, z.ZodTypeDef, unknown > = z.object({ attributes: z.nullable(z.array(z.string())).optional(), messages: z.nullable(z.array(VentriloMessage$inboundSchema)).optional(), }); export function ventriloFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Ventrilo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ventrilo' from JSON`, ); }