/*
 * 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 DeleteOnEmptyConfig$inboundSchema = z.object({
    min_age_secs: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "min_age_secs": "minAgeSecs",
    });
});
/** @internal */
export const DeleteOnEmptyConfig$outboundSchema = z.object({
    minAgeSecs: 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 DeleteOnEmptyConfig$;
(function (DeleteOnEmptyConfig$) {
    /** @deprecated use `DeleteOnEmptyConfig$inboundSchema` instead. */
    DeleteOnEmptyConfig$.inboundSchema = DeleteOnEmptyConfig$inboundSchema;
    /** @deprecated use `DeleteOnEmptyConfig$outboundSchema` instead. */
    DeleteOnEmptyConfig$.outboundSchema = DeleteOnEmptyConfig$outboundSchema;
})(DeleteOnEmptyConfig$ || (DeleteOnEmptyConfig$ = {}));
export function deleteOnEmptyConfigToJSON(deleteOnEmptyConfig) {
    return JSON.stringify(DeleteOnEmptyConfig$outboundSchema.parse(deleteOnEmptyConfig));
}
export function deleteOnEmptyConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteOnEmptyConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteOnEmptyConfig' from JSON`);
}
//# sourceMappingURL=deleteonemptyconfig.js.map