/*
 * 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 TimestampingConfig$inboundSchema = z.object({
    mode: z.nullable(TimestampingMode$inboundSchema).optional(),
    uncapped: z.nullable(z.boolean()).optional(),
});
/** @internal */
export const TimestampingConfig$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 TimestampingConfig$;
(function (TimestampingConfig$) {
    /** @deprecated use `TimestampingConfig$inboundSchema` instead. */
    TimestampingConfig$.inboundSchema = TimestampingConfig$inboundSchema;
    /** @deprecated use `TimestampingConfig$outboundSchema` instead. */
    TimestampingConfig$.outboundSchema = TimestampingConfig$outboundSchema;
})(TimestampingConfig$ || (TimestampingConfig$ = {}));
export function timestampingConfigToJSON(timestampingConfig) {
    return JSON.stringify(TimestampingConfig$outboundSchema.parse(timestampingConfig));
}
export function timestampingConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => TimestampingConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TimestampingConfig' from JSON`);
}
//# sourceMappingURL=timestampingconfig.js.map