/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { ConversationsFilter$inboundSchema, ConversationsFilter$outboundSchema, } from "./conversationsfilter.js";
/** @internal */
export const ConversationsFilterAND$inboundSchema = z.object({
    and: z.array(z.lazy(() => ConversationsFilter$inboundSchema)),
});
/** @internal */
export const ConversationsFilterAND$outboundSchema = z.object({
    and: z.array(z.lazy(() => ConversationsFilter$outboundSchema)),
});
export function conversationsFilterANDToJSON(conversationsFilterAND) {
    return JSON.stringify(ConversationsFilterAND$outboundSchema.parse(conversationsFilterAND));
}
export function conversationsFilterANDFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ConversationsFilterAND$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConversationsFilterAND' from JSON`);
}
/** @internal */
export const And$inboundSchema = z.lazy(() => ConversationsFilter$inboundSchema);
/** @internal */
export const And$outboundSchema = z
    .lazy(() => ConversationsFilter$outboundSchema);
export function andToJSON(and) {
    return JSON.stringify(And$outboundSchema.parse(and));
}
export function andFromJSON(jsonString) {
    return safeParse(jsonString, (x) => And$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'And' from JSON`);
}
//# sourceMappingURL=conversationsfilterand.js.map