/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: f3d681ad3f03
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const ScheduleInterval$inboundSchema = z.object({
    every: z.string(),
    offset: z.nullable(z.string()).optional(),
});
/** @internal */
export const ScheduleInterval$outboundSchema = z.object({
    every: z.string(),
    offset: z.nullable(z.string()).optional(),
});
export function scheduleIntervalToJSON(scheduleInterval) {
    return JSON.stringify(ScheduleInterval$outboundSchema.parse(scheduleInterval));
}
export function scheduleIntervalFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ScheduleInterval$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScheduleInterval' from JSON`);
}
//# sourceMappingURL=scheduleinterval.js.map