/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const One$inboundSchema = z
    .object({
    age: z.number().int(),
});
/** @internal */
export const One$outboundSchema = z
    .object({
    age: z.number().int(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var One$;
(function (One$) {
    /** @deprecated use `One$inboundSchema` instead. */
    One$.inboundSchema = One$inboundSchema;
    /** @deprecated use `One$outboundSchema` instead. */
    One$.outboundSchema = One$outboundSchema;
})(One$ || (One$ = {}));
export function oneToJSON(one) {
    return JSON.stringify(One$outboundSchema.parse(one));
}
export function oneFromJSON(jsonString) {
    return safeParse(jsonString, (x) => One$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'One' from JSON`);
}
/** @internal */
export const RetentionPolicy$inboundSchema = z.lazy(() => One$inboundSchema);
/** @internal */
export const RetentionPolicy$outboundSchema = z.lazy(() => One$outboundSchema);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var RetentionPolicy$;
(function (RetentionPolicy$) {
    /** @deprecated use `RetentionPolicy$inboundSchema` instead. */
    RetentionPolicy$.inboundSchema = RetentionPolicy$inboundSchema;
    /** @deprecated use `RetentionPolicy$outboundSchema` instead. */
    RetentionPolicy$.outboundSchema = RetentionPolicy$outboundSchema;
})(RetentionPolicy$ || (RetentionPolicy$ = {}));
export function retentionPolicyToJSON(retentionPolicy) {
    return JSON.stringify(RetentionPolicy$outboundSchema.parse(retentionPolicy));
}
export function retentionPolicyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => RetentionPolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetentionPolicy' from JSON`);
}
//# sourceMappingURL=retentionpolicy.js.map