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

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 TempoTraceAttributeBoolValue = {
  /**
   * The boolean value of the attribute
   */
  boolValue: boolean;
};

/** @internal */
export const TempoTraceAttributeBoolValue$inboundSchema: z.ZodType<
  TempoTraceAttributeBoolValue,
  unknown
> = z.object({
  boolValue: z.boolean(),
});

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