"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventsFilterConditionValue$ = exports.EventsFilterConditionValue$outboundSchema = exports.EventsFilterConditionValue$inboundSchema = exports.EventsFilterConditionValue6$ = exports.EventsFilterConditionValue6$outboundSchema = exports.EventsFilterConditionValue6$inboundSchema = exports.EventsFilterConditionValueValue$ = exports.EventsFilterConditionValueValue$outboundSchema = exports.EventsFilterConditionValueValue$inboundSchema = exports.Value4$ = exports.Value4$outboundSchema = exports.Value4$inboundSchema = void 0;
exports.value4ToJSON = value4ToJSON;
exports.value4FromJSON = value4FromJSON;
exports.eventsFilterConditionValueValueToJSON = eventsFilterConditionValueValueToJSON;
exports.eventsFilterConditionValueValueFromJSON = eventsFilterConditionValueValueFromJSON;
exports.eventsFilterConditionValue6ToJSON = eventsFilterConditionValue6ToJSON;
exports.eventsFilterConditionValue6FromJSON = eventsFilterConditionValue6FromJSON;
exports.eventsFilterConditionValueToJSON = eventsFilterConditionValueToJSON;
exports.eventsFilterConditionValueFromJSON = eventsFilterConditionValueFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.Value4$inboundSchema = z
    .union([z.string(), z.number(), z.boolean()]);
/** @internal */
exports.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.
 */
var Value4$;
(function (Value4$) {
    /** @deprecated use `Value4$inboundSchema` instead. */
    Value4$.inboundSchema = exports.Value4$inboundSchema;
    /** @deprecated use `Value4$outboundSchema` instead. */
    Value4$.outboundSchema = exports.Value4$outboundSchema;
})(Value4$ || (exports.Value4$ = Value4$ = {}));
function value4ToJSON(value4) {
    return JSON.stringify(exports.Value4$outboundSchema.parse(value4));
}
function value4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Value4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Value4' from JSON`);
}
/** @internal */
exports.EventsFilterConditionValueValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))),
]);
/** @internal */
exports.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.
 */
var EventsFilterConditionValueValue$;
(function (EventsFilterConditionValueValue$) {
    /** @deprecated use `EventsFilterConditionValueValue$inboundSchema` instead. */
    EventsFilterConditionValueValue$.inboundSchema = exports.EventsFilterConditionValueValue$inboundSchema;
    /** @deprecated use `EventsFilterConditionValueValue$outboundSchema` instead. */
    EventsFilterConditionValueValue$.outboundSchema = exports.EventsFilterConditionValueValue$outboundSchema;
})(EventsFilterConditionValueValue$ || (exports.EventsFilterConditionValueValue$ = EventsFilterConditionValueValue$ = {}));
function eventsFilterConditionValueValueToJSON(eventsFilterConditionValueValue) {
    return JSON.stringify(exports.EventsFilterConditionValueValue$outboundSchema.parse(eventsFilterConditionValueValue));
}
function eventsFilterConditionValueValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EventsFilterConditionValueValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterConditionValueValue' from JSON`);
}
/** @internal */
exports.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 */
exports.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.
 */
var EventsFilterConditionValue6$;
(function (EventsFilterConditionValue6$) {
    /** @deprecated use `EventsFilterConditionValue6$inboundSchema` instead. */
    EventsFilterConditionValue6$.inboundSchema = exports.EventsFilterConditionValue6$inboundSchema;
    /** @deprecated use `EventsFilterConditionValue6$outboundSchema` instead. */
    EventsFilterConditionValue6$.outboundSchema = exports.EventsFilterConditionValue6$outboundSchema;
})(EventsFilterConditionValue6$ || (exports.EventsFilterConditionValue6$ = EventsFilterConditionValue6$ = {}));
function eventsFilterConditionValue6ToJSON(eventsFilterConditionValue6) {
    return JSON.stringify(exports.EventsFilterConditionValue6$outboundSchema.parse(eventsFilterConditionValue6));
}
function eventsFilterConditionValue6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EventsFilterConditionValue6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterConditionValue6' from JSON`);
}
/** @internal */
exports.EventsFilterConditionValue$inboundSchema = z.union([
    z.lazy(() => exports.EventsFilterConditionValue6$inboundSchema),
    z.string(),
    z.boolean(),
    z.number(),
    z.array(z.string()),
    z.record(z.any()),
]);
/** @internal */
exports.EventsFilterConditionValue$outboundSchema = z.union([
    z.lazy(() => exports.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.
 */
var EventsFilterConditionValue$;
(function (EventsFilterConditionValue$) {
    /** @deprecated use `EventsFilterConditionValue$inboundSchema` instead. */
    EventsFilterConditionValue$.inboundSchema = exports.EventsFilterConditionValue$inboundSchema;
    /** @deprecated use `EventsFilterConditionValue$outboundSchema` instead. */
    EventsFilterConditionValue$.outboundSchema = exports.EventsFilterConditionValue$outboundSchema;
})(EventsFilterConditionValue$ || (exports.EventsFilterConditionValue$ = EventsFilterConditionValue$ = {}));
function eventsFilterConditionValueToJSON(eventsFilterConditionValue) {
    return JSON.stringify(exports.EventsFilterConditionValue$outboundSchema.parse(eventsFilterConditionValue));
}
function eventsFilterConditionValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EventsFilterConditionValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsFilterConditionValue' from JSON`);
}
//# sourceMappingURL=eventsfilterconditionvalue.js.map