/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { EventsFilterAND$inboundSchema, EventsFilterAND$outboundSchema, } from "./eventsfilterand.js";
import { EventsFilterCondition$inboundSchema, EventsFilterCondition$outboundSchema, } from "./eventsfiltercondition.js";
import { EventsFilterOR$inboundSchema, EventsFilterOR$outboundSchema, } from "./eventsfilteror.js";
/** @internal */
export const EventsFilter$inboundSchema = z.union([
    EventsFilterCondition$inboundSchema,
    z.lazy(() => EventsFilterAND$inboundSchema),
    z.lazy(() => EventsFilterOR$inboundSchema),
]);
/** @internal */
export const EventsFilter$outboundSchema = z.union([
    EventsFilterCondition$outboundSchema,
    z.lazy(() => EventsFilterAND$outboundSchema),
    z.lazy(() => EventsFilterOR$outboundSchema),
]);
export function eventsFilterToJSON(eventsFilter) {
    return JSON.stringify(EventsFilter$outboundSchema.parse(eventsFilter));
}
export function eventsFilterFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilter' from JSON`);
}
//# sourceMappingURL=eventsfilter.js.map