/* * 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 { CiscoIpslaHandshakeHeader, CiscoIpslaHandshakeHeader$inboundSchema, } from "./ciscoipslahandshakeheader.js"; import { CiscoIpslaHandshakeMessage, CiscoIpslaHandshakeMessage$inboundSchema, } from "./ciscoipslahandshakemessage.js"; export type CiscoIpslaHandshake = { header?: CiscoIpslaHandshakeHeader | undefined; message?: CiscoIpslaHandshakeMessage | undefined; }; /** @internal */ export const CiscoIpslaHandshake$inboundSchema: z.ZodType< CiscoIpslaHandshake, z.ZodTypeDef, unknown > = z.object({ header: CiscoIpslaHandshakeHeader$inboundSchema.optional(), message: CiscoIpslaHandshakeMessage$inboundSchema.optional(), }); export function ciscoIpslaHandshakeFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => CiscoIpslaHandshake$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CiscoIpslaHandshake' from JSON`, ); }