/* * 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"; import { Export, Export$inboundSchema } from "./export.js"; export type Nbd = { exports?: Array | null | undefined; handshakeStyle?: string | undefined; policies?: Array | null | undefined; }; /** @internal */ export const Nbd$inboundSchema: z.ZodType = z .object({ exports: z.nullable(z.array(Export$inboundSchema)).optional(), handshake_style: z.string().optional(), policies: z.nullable(z.array(z.string())).optional(), }).transform((v) => { return remap$(v, { "handshake_style": "handshakeStyle", }); }); export function nbdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Nbd$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Nbd' from JSON`, ); }