/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { EventsFilter$inboundSchema, EventsFilter$outboundSchema, } from "./eventsfilter.js";
/** @internal */
export const EventsFilterOR$inboundSchema = z.object({
    or: z.array(z.lazy(() => EventsFilter$inboundSchema)),
});
/** @internal */
export const EventsFilterOR$outboundSchema = z.object({
    or: z.array(z.lazy(() => EventsFilter$outboundSchema)),
});
export function eventsFilterORToJSON(eventsFilterOR) {
    return JSON.stringify(EventsFilterOR$outboundSchema.parse(eventsFilterOR));
}
export function eventsFilterORFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilterOR$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterOR' from JSON`);
}
/** @internal */
export const EventsFilterOROR$inboundSchema = z.lazy(() => EventsFilter$inboundSchema);
/** @internal */
export const EventsFilterOROR$outboundSchema = z.lazy(() => EventsFilter$outboundSchema);
export function eventsFilterORORToJSON(eventsFilterOROR) {
    return JSON.stringify(EventsFilterOROR$outboundSchema.parse(eventsFilterOROR));
}
export function eventsFilterORORFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilterOROR$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterOROR' from JSON`);
}
//# sourceMappingURL=eventsfilteror.js.map