/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const SemanticThreadFilterConditionValueValue4$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/** @internal */
export const SemanticThreadFilterConditionValueValue4$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 SemanticThreadFilterConditionValueValue4$;
(function (SemanticThreadFilterConditionValueValue4$) {
    /** @deprecated use `SemanticThreadFilterConditionValueValue4$inboundSchema` instead. */
    SemanticThreadFilterConditionValueValue4$.inboundSchema = SemanticThreadFilterConditionValueValue4$inboundSchema;
    /** @deprecated use `SemanticThreadFilterConditionValueValue4$outboundSchema` instead. */
    SemanticThreadFilterConditionValueValue4$.outboundSchema = SemanticThreadFilterConditionValueValue4$outboundSchema;
})(SemanticThreadFilterConditionValueValue4$ || (SemanticThreadFilterConditionValueValue4$ = {}));
export function semanticThreadFilterConditionValueValue4ToJSON(semanticThreadFilterConditionValueValue4) {
    return JSON.stringify(SemanticThreadFilterConditionValueValue4$outboundSchema.parse(semanticThreadFilterConditionValueValue4));
}
export function semanticThreadFilterConditionValueValue4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadFilterConditionValueValue4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadFilterConditionValueValue4' from JSON`);
}
/** @internal */
export const SemanticThreadFilterConditionValueValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))),
]);
/** @internal */
export const SemanticThreadFilterConditionValueValue$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 SemanticThreadFilterConditionValueValue$;
(function (SemanticThreadFilterConditionValueValue$) {
    /** @deprecated use `SemanticThreadFilterConditionValueValue$inboundSchema` instead. */
    SemanticThreadFilterConditionValueValue$.inboundSchema = SemanticThreadFilterConditionValueValue$inboundSchema;
    /** @deprecated use `SemanticThreadFilterConditionValueValue$outboundSchema` instead. */
    SemanticThreadFilterConditionValueValue$.outboundSchema = SemanticThreadFilterConditionValueValue$outboundSchema;
})(SemanticThreadFilterConditionValueValue$ || (SemanticThreadFilterConditionValueValue$ = {}));
export function semanticThreadFilterConditionValueValueToJSON(semanticThreadFilterConditionValueValue) {
    return JSON.stringify(SemanticThreadFilterConditionValueValue$outboundSchema.parse(semanticThreadFilterConditionValueValue));
}
export function semanticThreadFilterConditionValueValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadFilterConditionValueValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadFilterConditionValueValue' from JSON`);
}
/** @internal */
export const SemanticThreadFilterConditionValue6$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 SemanticThreadFilterConditionValue6$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 SemanticThreadFilterConditionValue6$;
(function (SemanticThreadFilterConditionValue6$) {
    /** @deprecated use `SemanticThreadFilterConditionValue6$inboundSchema` instead. */
    SemanticThreadFilterConditionValue6$.inboundSchema = SemanticThreadFilterConditionValue6$inboundSchema;
    /** @deprecated use `SemanticThreadFilterConditionValue6$outboundSchema` instead. */
    SemanticThreadFilterConditionValue6$.outboundSchema = SemanticThreadFilterConditionValue6$outboundSchema;
})(SemanticThreadFilterConditionValue6$ || (SemanticThreadFilterConditionValue6$ = {}));
export function semanticThreadFilterConditionValue6ToJSON(semanticThreadFilterConditionValue6) {
    return JSON.stringify(SemanticThreadFilterConditionValue6$outboundSchema.parse(semanticThreadFilterConditionValue6));
}
export function semanticThreadFilterConditionValue6FromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadFilterConditionValue6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadFilterConditionValue6' from JSON`);
}
/** @internal */
export const SemanticThreadFilterConditionValue$inboundSchema = z.union([
    z.lazy(() => SemanticThreadFilterConditionValue6$inboundSchema),
    z.string(),
    z.boolean(),
    z.number(),
    z.array(z.string()),
    z.record(z.any()),
]);
/** @internal */
export const SemanticThreadFilterConditionValue$outboundSchema = z.union([
    z.lazy(() => SemanticThreadFilterConditionValue6$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 SemanticThreadFilterConditionValue$;
(function (SemanticThreadFilterConditionValue$) {
    /** @deprecated use `SemanticThreadFilterConditionValue$inboundSchema` instead. */
    SemanticThreadFilterConditionValue$.inboundSchema = SemanticThreadFilterConditionValue$inboundSchema;
    /** @deprecated use `SemanticThreadFilterConditionValue$outboundSchema` instead. */
    SemanticThreadFilterConditionValue$.outboundSchema = SemanticThreadFilterConditionValue$outboundSchema;
})(SemanticThreadFilterConditionValue$ || (SemanticThreadFilterConditionValue$ = {}));
export function semanticThreadFilterConditionValueToJSON(semanticThreadFilterConditionValue) {
    return JSON.stringify(SemanticThreadFilterConditionValue$outboundSchema.parse(semanticThreadFilterConditionValue));
}
export function semanticThreadFilterConditionValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadFilterConditionValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadFilterConditionValue' from JSON`);
}
//# sourceMappingURL=semanticthreadfilterconditionvalue.js.map