/* * 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 RedlionCrimson = { configsExposed?: boolean | undefined; controlEngineStatus?: string | undefined; currentSoftwareLevel?: string | undefined; executionStatus?: string | undefined; manufacturer?: string | undefined; model?: string | undefined; }; /** @internal */ export const RedlionCrimson$inboundSchema: z.ZodType< RedlionCrimson, z.ZodTypeDef, unknown > = z.object({ configs_exposed: z.boolean().optional(), control_engine_status: z.string().optional(), current_software_level: z.string().optional(), execution_status: z.string().optional(), manufacturer: z.string().optional(), model: z.string().optional(), }).transform((v) => { return remap$(v, { "configs_exposed": "configsExposed", "control_engine_status": "controlEngineStatus", "current_software_level": "currentSoftwareLevel", "execution_status": "executionStatus", }); }); export function redlionCrimsonFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => RedlionCrimson$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RedlionCrimson' from JSON`, ); }