/* * 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 RdpEmbeddedRSACert = { keyLength?: number | undefined; magic?: number | undefined; maxBytesDatalen?: number | undefined; modulus?: string | undefined; modulusBitlen?: number | undefined; publicExponent?: number | undefined; signature?: string | undefined; }; /** @internal */ export const RdpEmbeddedRSACert$inboundSchema: z.ZodType< RdpEmbeddedRSACert, z.ZodTypeDef, unknown > = z.object({ key_length: z.number().int().optional(), magic: z.number().int().optional(), max_bytes_datalen: z.number().int().optional(), modulus: z.string().optional(), modulus_bitlen: z.number().int().optional(), public_exponent: z.number().int().optional(), signature: z.string().optional(), }).transform((v) => { return remap$(v, { "key_length": "keyLength", "max_bytes_datalen": "maxBytesDatalen", "modulus_bitlen": "modulusBitlen", "public_exponent": "publicExponent", }); }); export function rdpEmbeddedRSACertFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => RdpEmbeddedRSACert$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RdpEmbeddedRSACert' from JSON`, ); }