/*
 * 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 ConversationsFilterOR$inboundSchema = z.object({
    or: z.array(z.lazy(() => ConversationsFilter$inboundSchema)),
});
/** @internal */
export const ConversationsFilterOR$outboundSchema = z.object({
    or: z.array(z.lazy(() => ConversationsFilter$outboundSchema)),
});
export function conversationsFilterORToJSON(conversationsFilterOR) {
    return JSON.stringify(ConversationsFilterOR$outboundSchema.parse(conversationsFilterOR));
}
export function conversationsFilterORFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ConversationsFilterOR$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConversationsFilterOR' from JSON`);
}
/** @internal */
export const Or$inboundSchema = z.lazy(() => ConversationsFilter$inboundSchema);
/** @internal */
export const Or$outboundSchema = z
    .lazy(() => ConversationsFilter$outboundSchema);
export function orToJSON(or) {
    return JSON.stringify(Or$outboundSchema.parse(or));
}
export function orFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Or$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Or' from JSON`);
}
//# sourceMappingURL=conversationsfilteror.js.map