/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { TimestampingMode$inboundSchema, TimestampingMode$outboundSchema, } from "./timestampingmode.js";
/** @internal */
export const TimestampingReconfiguration$inboundSchema = z.object({
    mode: z.nullable(TimestampingMode$inboundSchema).optional(),
    uncapped: z.nullable(z.boolean()).optional(),
});
/** @internal */
export const TimestampingReconfiguration$outboundSchema = z.object({
    mode: z.nullable(TimestampingMode$outboundSchema).optional(),
    uncapped: z.nullable(z.boolean()).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var TimestampingReconfiguration$;
(function (TimestampingReconfiguration$) {
    /** @deprecated use `TimestampingReconfiguration$inboundSchema` instead. */
    TimestampingReconfiguration$.inboundSchema = TimestampingReconfiguration$inboundSchema;
    /** @deprecated use `TimestampingReconfiguration$outboundSchema` instead. */
    TimestampingReconfiguration$.outboundSchema = TimestampingReconfiguration$outboundSchema;
})(TimestampingReconfiguration$ || (TimestampingReconfiguration$ = {}));
export function timestampingReconfigurationToJSON(timestampingReconfiguration) {
    return JSON.stringify(TimestampingReconfiguration$outboundSchema.parse(timestampingReconfiguration));
}
export function timestampingReconfigurationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => TimestampingReconfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TimestampingReconfiguration' from JSON`);
}
//# sourceMappingURL=timestampingreconfiguration.js.map