/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const DeleteOnEmptyReconfiguration$inboundSchema = z.object({
    min_age_secs: z.nullable(z.number().int()).optional(),
}).transform((v) => {
    return remap$(v, {
        "min_age_secs": "minAgeSecs",
    });
});
/** @internal */
export const DeleteOnEmptyReconfiguration$outboundSchema = z.object({
    minAgeSecs: z.nullable(z.number().int()).optional(),
}).transform((v) => {
    return remap$(v, {
        minAgeSecs: "min_age_secs",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DeleteOnEmptyReconfiguration$;
(function (DeleteOnEmptyReconfiguration$) {
    /** @deprecated use `DeleteOnEmptyReconfiguration$inboundSchema` instead. */
    DeleteOnEmptyReconfiguration$.inboundSchema = DeleteOnEmptyReconfiguration$inboundSchema;
    /** @deprecated use `DeleteOnEmptyReconfiguration$outboundSchema` instead. */
    DeleteOnEmptyReconfiguration$.outboundSchema = DeleteOnEmptyReconfiguration$outboundSchema;
})(DeleteOnEmptyReconfiguration$ || (DeleteOnEmptyReconfiguration$ = {}));
export function deleteOnEmptyReconfigurationToJSON(deleteOnEmptyReconfiguration) {
    return JSON.stringify(DeleteOnEmptyReconfiguration$outboundSchema.parse(deleteOnEmptyReconfiguration));
}
export function deleteOnEmptyReconfigurationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteOnEmptyReconfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteOnEmptyReconfiguration' from JSON`);
}
//# sourceMappingURL=deleteonemptyreconfiguration.js.map