/* * 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"; export type Telnet = { do?: { [k: string]: string | null } | undefined; dont?: { [k: string]: string | null } | undefined; will?: { [k: string]: string | null } | undefined; wont?: { [k: string]: string | null } | undefined; }; /** @internal */ export const Telnet$inboundSchema: z.ZodType = z .object({ do: z.record(z.nullable(z.string())).optional(), dont: z.record(z.nullable(z.string())).optional(), will: z.record(z.nullable(z.string())).optional(), wont: z.record(z.nullable(z.string())).optional(), }); export function telnetFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Telnet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Telnet' from JSON`, ); }