/* * 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 { PcAnywhereStatus, PcAnywhereStatus$inboundSchema, } from "./pcanywherestatus.js"; export type PcAnywhere = { /** * Workstation Name, with padding bytes removed */ name?: string | undefined; /** * Full 'NR' query response */ nr?: string | undefined; status?: PcAnywhereStatus | undefined; }; /** @internal */ export const PcAnywhere$inboundSchema: z.ZodType< PcAnywhere, z.ZodTypeDef, unknown > = z.object({ name: z.string().optional(), nr: z.string().optional(), status: PcAnywhereStatus$inboundSchema.optional(), }); export function pcAnywhereFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PcAnywhere$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PcAnywhere' from JSON`, ); }