/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { SemanticThreadFilter$inboundSchema, SemanticThreadFilter$outboundSchema, } from "./semanticthreadfilter.js";
/** @internal */
export const SemanticThreadFilterAND$inboundSchema = z.object({
    and: z.array(z.lazy(() => SemanticThreadFilter$inboundSchema)),
});
/** @internal */
export const SemanticThreadFilterAND$outboundSchema = z.object({
    and: z.array(z.lazy(() => SemanticThreadFilter$outboundSchema)),
});
export function semanticThreadFilterANDToJSON(semanticThreadFilterAND) {
    return JSON.stringify(SemanticThreadFilterAND$outboundSchema.parse(semanticThreadFilterAND));
}
export function semanticThreadFilterANDFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadFilterAND$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadFilterAND' from JSON`);
}
/** @internal */
export const SemanticThreadFilterANDAND$inboundSchema = z.lazy(() => SemanticThreadFilter$inboundSchema);
/** @internal */
export const SemanticThreadFilterANDAND$outboundSchema = z.lazy(() => SemanticThreadFilter$outboundSchema);
export function semanticThreadFilterANDANDToJSON(semanticThreadFilterANDAND) {
    return JSON.stringify(SemanticThreadFilterANDAND$outboundSchema.parse(semanticThreadFilterANDAND));
}
export function semanticThreadFilterANDANDFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadFilterANDAND$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadFilterANDAND' from JSON`);
}
//# sourceMappingURL=semanticthreadfilterand.js.map