/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const AccountMetricsRequest$inboundSchema = z.object({
    set: components.AccountMetricSet$inboundSchema,
    start: z.number().int().optional(),
    end: z.number().int().optional(),
    interval: components.TimeseriesInterval$inboundSchema.optional(),
});
/** @internal */
export const AccountMetricsRequest$outboundSchema = z.object({
    set: components.AccountMetricSet$outboundSchema,
    start: z.number().int().optional(),
    end: z.number().int().optional(),
    interval: components.TimeseriesInterval$outboundSchema.optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AccountMetricsRequest$;
(function (AccountMetricsRequest$) {
    /** @deprecated use `AccountMetricsRequest$inboundSchema` instead. */
    AccountMetricsRequest$.inboundSchema = AccountMetricsRequest$inboundSchema;
    /** @deprecated use `AccountMetricsRequest$outboundSchema` instead. */
    AccountMetricsRequest$.outboundSchema = AccountMetricsRequest$outboundSchema;
})(AccountMetricsRequest$ || (AccountMetricsRequest$ = {}));
export function accountMetricsRequestToJSON(accountMetricsRequest) {
    return JSON.stringify(AccountMetricsRequest$outboundSchema.parse(accountMetricsRequest));
}
export function accountMetricsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AccountMetricsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountMetricsRequest' from JSON`);
}
//# sourceMappingURL=accountmetrics.js.map