/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 0d07d9ebb1ef
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
/** @internal */
export const ScalarMetricValue$inboundSchema = smartUnion([z.int(), z.number()]);
export function scalarMetricValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ScalarMetricValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScalarMetricValue' from JSON`);
}
/** @internal */
export const ScalarMetric$inboundSchema = z
    .object({
    value: smartUnion([z.int(), z.number()]),
});
export function scalarMetricFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ScalarMetric$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScalarMetric' from JSON`);
}
//# sourceMappingURL=scalarmetric.js.map