/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SshEndpointId = { comment?: string | undefined; protocolVersion?: string | undefined; raw?: string | undefined; softwareVersion?: string | undefined; }; /** @internal */ export const SshEndpointId$inboundSchema: z.ZodType< SshEndpointId, z.ZodTypeDef, unknown > = z.object({ comment: z.string().optional(), protocol_version: z.string().optional(), raw: z.string().optional(), software_version: z.string().optional(), }).transform((v) => { return remap$(v, { "protocol_version": "protocolVersion", "software_version": "softwareVersion", }); }); export function sshEndpointIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SshEndpointId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SshEndpointId' from JSON`, ); }