/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 5004fc28f9a3 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { smartUnion } from "../../types/smartUnion.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type WorkflowExecutionTraceSummaryAttributesValues = | string | number | number | boolean | Array; /** @internal */ export const WorkflowExecutionTraceSummaryAttributesValues$inboundSchema: z.ZodType = smartUnion([ z.string(), z.int(), z.number(), z.boolean(), z.array(z.any()), ]); export function workflowExecutionTraceSummaryAttributesValuesFromJSON( jsonString: string, ): SafeParseResult< WorkflowExecutionTraceSummaryAttributesValues, SDKValidationError > { return safeParse( jsonString, (x) => WorkflowExecutionTraceSummaryAttributesValues$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'WorkflowExecutionTraceSummaryAttributesValues' from JSON`, ); }