/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { EventsField$inboundSchema, EventsField$outboundSchema, } from "./eventsfield.js";
import { EventsFilterConditionValue$inboundSchema, EventsFilterConditionValue$outboundSchema, } from "./eventsfilterconditionvalue.js";
import { FilterOperator$inboundSchema, FilterOperator$outboundSchema, } from "./filteroperator.js";
/** @internal */
export const EventsFilterConditionCondition$inboundSchema = z.object({
    field: EventsField$inboundSchema,
    operator: FilterOperator$inboundSchema,
    value: EventsFilterConditionValue$inboundSchema,
});
/** @internal */
export const EventsFilterConditionCondition$outboundSchema = z.object({
    field: EventsField$outboundSchema,
    operator: FilterOperator$outboundSchema,
    value: EventsFilterConditionValue$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var EventsFilterConditionCondition$;
(function (EventsFilterConditionCondition$) {
    /** @deprecated use `EventsFilterConditionCondition$inboundSchema` instead. */
    EventsFilterConditionCondition$.inboundSchema = EventsFilterConditionCondition$inboundSchema;
    /** @deprecated use `EventsFilterConditionCondition$outboundSchema` instead. */
    EventsFilterConditionCondition$.outboundSchema = EventsFilterConditionCondition$outboundSchema;
})(EventsFilterConditionCondition$ || (EventsFilterConditionCondition$ = {}));
export function eventsFilterConditionConditionToJSON(eventsFilterConditionCondition) {
    return JSON.stringify(EventsFilterConditionCondition$outboundSchema.parse(eventsFilterConditionCondition));
}
export function eventsFilterConditionConditionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilterConditionCondition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterConditionCondition' from JSON`);
}
/** @internal */
export const EventsFilterCondition$inboundSchema = z.object({
    condition: z.lazy(() => EventsFilterConditionCondition$inboundSchema),
});
/** @internal */
export const EventsFilterCondition$outboundSchema = z.object({
    condition: z.lazy(() => EventsFilterConditionCondition$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var EventsFilterCondition$;
(function (EventsFilterCondition$) {
    /** @deprecated use `EventsFilterCondition$inboundSchema` instead. */
    EventsFilterCondition$.inboundSchema = EventsFilterCondition$inboundSchema;
    /** @deprecated use `EventsFilterCondition$outboundSchema` instead. */
    EventsFilterCondition$.outboundSchema = EventsFilterCondition$outboundSchema;
})(EventsFilterCondition$ || (EventsFilterCondition$ = {}));
export function eventsFilterConditionToJSON(eventsFilterCondition) {
    return JSON.stringify(EventsFilterCondition$outboundSchema.parse(eventsFilterCondition));
}
export function eventsFilterConditionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilterCondition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterCondition' from JSON`);
}
//# sourceMappingURL=eventsfiltercondition.js.map