/* * 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 { NtlmInfo, NtlmInfo$inboundSchema } from "./ntlminfo.js"; export type Winrm = { authTypes?: Array | null | undefined; ntlmInfo?: NtlmInfo | undefined; }; /** @internal */ export const Winrm$inboundSchema: z.ZodType = z .object({ auth_types: z.nullable(z.array(z.string())).optional(), ntlm_info: NtlmInfo$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "auth_types": "authTypes", "ntlm_info": "ntlmInfo", }); }); export function winrmFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Winrm$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Winrm' from JSON`, ); }