/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { Metric$inboundSchema, Metric$outboundSchema, } from "./metric.js";
/** @internal */
export const MetricSetResponse$inboundSchema = z.object({
    values: z.array(Metric$inboundSchema),
});
/** @internal */
export const MetricSetResponse$outboundSchema = z.object({
    values: z.array(Metric$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var MetricSetResponse$;
(function (MetricSetResponse$) {
    /** @deprecated use `MetricSetResponse$inboundSchema` instead. */
    MetricSetResponse$.inboundSchema = MetricSetResponse$inboundSchema;
    /** @deprecated use `MetricSetResponse$outboundSchema` instead. */
    MetricSetResponse$.outboundSchema = MetricSetResponse$outboundSchema;
})(MetricSetResponse$ || (MetricSetResponse$ = {}));
export function metricSetResponseToJSON(metricSetResponse) {
    return JSON.stringify(MetricSetResponse$outboundSchema.parse(metricSetResponse));
}
export function metricSetResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => MetricSetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MetricSetResponse' from JSON`);
}
//# sourceMappingURL=metricsetresponse.js.map