/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 37621b75e11b */ 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"; import { TempoTraceAttribute, TempoTraceAttribute$inboundSchema, } from "./tempotraceattribute.js"; export type TempoTraceResource = { /** * The attributes of the resource */ attributes?: Array | undefined; }; /** @internal */ export const TempoTraceResource$inboundSchema: z.ZodType< TempoTraceResource, unknown > = z.object({ attributes: z.array(TempoTraceAttribute$inboundSchema).optional(), }); export function tempoTraceResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TempoTraceResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TempoTraceResource' from JSON`, ); }