/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 60df60e9be84 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type StackInputValueRequest = string | number | boolean | Array; /** @internal */ export const StackInputValueRequest$inboundSchema: z.ZodType< StackInputValueRequest, unknown > = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]); /** @internal */ export type StackInputValueRequest$Outbound = | string | number | boolean | Array; /** @internal */ export const StackInputValueRequest$outboundSchema: z.ZodType< StackInputValueRequest$Outbound, StackInputValueRequest > = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]); export function stackInputValueRequestToJSON( stackInputValueRequest: StackInputValueRequest, ): string { return JSON.stringify( StackInputValueRequest$outboundSchema.parse(stackInputValueRequest), ); } export function stackInputValueRequestFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => StackInputValueRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StackInputValueRequest' from JSON`, ); }