/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const Value4$inboundSchema = z
    .union([z.string(), z.number(), z.boolean()]);
/** @internal */
export const Value4$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var Value4$;
(function (Value4$) {
    /** @deprecated use `Value4$inboundSchema` instead. */
    Value4$.inboundSchema = Value4$inboundSchema;
    /** @deprecated use `Value4$outboundSchema` instead. */
    Value4$.outboundSchema = Value4$outboundSchema;
})(Value4$ || (Value4$ = {}));
export function value4ToJSON(value4) {
    return JSON.stringify(Value4$outboundSchema.parse(value4));
}
export function value4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => Value4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Value4' from JSON`);
}
/** @internal */
export const EventsFilterConditionValueValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))),
]);
/** @internal */
export const EventsFilterConditionValueValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var EventsFilterConditionValueValue$;
(function (EventsFilterConditionValueValue$) {
    /** @deprecated use `EventsFilterConditionValueValue$inboundSchema` instead. */
    EventsFilterConditionValueValue$.inboundSchema = EventsFilterConditionValueValue$inboundSchema;
    /** @deprecated use `EventsFilterConditionValueValue$outboundSchema` instead. */
    EventsFilterConditionValueValue$.outboundSchema = EventsFilterConditionValueValue$outboundSchema;
})(EventsFilterConditionValueValue$ || (EventsFilterConditionValueValue$ = {}));
export function eventsFilterConditionValueValueToJSON(eventsFilterConditionValueValue) {
    return JSON.stringify(EventsFilterConditionValueValue$outboundSchema.parse(eventsFilterConditionValueValue));
}
export function eventsFilterConditionValueValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilterConditionValueValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterConditionValueValue' from JSON`);
}
/** @internal */
export const EventsFilterConditionValue6$inboundSchema = z.object({
    path: z.array(z.string()),
    value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))),
    ])),
});
/** @internal */
export const EventsFilterConditionValue6$outboundSchema = z.object({
    path: z.array(z.string()),
    value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))),
    ])),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var EventsFilterConditionValue6$;
(function (EventsFilterConditionValue6$) {
    /** @deprecated use `EventsFilterConditionValue6$inboundSchema` instead. */
    EventsFilterConditionValue6$.inboundSchema = EventsFilterConditionValue6$inboundSchema;
    /** @deprecated use `EventsFilterConditionValue6$outboundSchema` instead. */
    EventsFilterConditionValue6$.outboundSchema = EventsFilterConditionValue6$outboundSchema;
})(EventsFilterConditionValue6$ || (EventsFilterConditionValue6$ = {}));
export function eventsFilterConditionValue6ToJSON(eventsFilterConditionValue6) {
    return JSON.stringify(EventsFilterConditionValue6$outboundSchema.parse(eventsFilterConditionValue6));
}
export function eventsFilterConditionValue6FromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilterConditionValue6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterConditionValue6' from JSON`);
}
/** @internal */
export const EventsFilterConditionValue$inboundSchema = z.union([
    z.lazy(() => EventsFilterConditionValue6$inboundSchema),
    z.string(),
    z.boolean(),
    z.number(),
    z.array(z.string()),
    z.record(z.any()),
]);
/** @internal */
export const EventsFilterConditionValue$outboundSchema = z.union([
    z.lazy(() => EventsFilterConditionValue6$outboundSchema),
    z.string(),
    z.boolean(),
    z.number(),
    z.array(z.string()),
    z.record(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var EventsFilterConditionValue$;
(function (EventsFilterConditionValue$) {
    /** @deprecated use `EventsFilterConditionValue$inboundSchema` instead. */
    EventsFilterConditionValue$.inboundSchema = EventsFilterConditionValue$inboundSchema;
    /** @deprecated use `EventsFilterConditionValue$outboundSchema` instead. */
    EventsFilterConditionValue$.outboundSchema = EventsFilterConditionValue$outboundSchema;
})(EventsFilterConditionValue$ || (EventsFilterConditionValue$ = {}));
export function eventsFilterConditionValueToJSON(eventsFilterConditionValue) {
    return JSON.stringify(EventsFilterConditionValue$outboundSchema.parse(eventsFilterConditionValue));
}
export function eventsFilterConditionValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsFilterConditionValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterConditionValue' from JSON`);
}
//# sourceMappingURL=eventsfilterconditionvalue.js.map