/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 6d7d416736a3
 */

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 TempoTraceAttributeIntValue = {
  /**
   * The integer value of the attribute
   */
  intValue: string;
};

/** @internal */
export const TempoTraceAttributeIntValue$inboundSchema: z.ZodType<
  TempoTraceAttributeIntValue,
  unknown
> = z.object({
  intValue: z.string(),
});

export function tempoTraceAttributeIntValueFromJSON(
  jsonString: string,
): SafeParseResult<TempoTraceAttributeIntValue, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TempoTraceAttributeIntValue$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TempoTraceAttributeIntValue' from JSON`,
  );
}
