/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 966f06934202 */ 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 { FeedResultGetSpan, FeedResultGetSpan$inboundSchema, } from "./feedresultgetspan.js"; export type GetSpans = { spans: FeedResultGetSpan; }; /** @internal */ export const GetSpans$inboundSchema: z.ZodType = z.object({ spans: FeedResultGetSpan$inboundSchema, }); export function getSpansFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetSpans$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSpans' from JSON`, ); }