/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { FeedbackFilterAND$inboundSchema, FeedbackFilterAND$outboundSchema, } from "./feedbackfilterand.js";
import { FeedbackFilterCondition$inboundSchema, FeedbackFilterCondition$outboundSchema, } from "./feedbackfiltercondition.js";
import { FeedbackFilterOR$inboundSchema, FeedbackFilterOR$outboundSchema, } from "./feedbackfilteror.js";
/** @internal */
export const FeedbackFilter$inboundSchema = z.union([
    FeedbackFilterCondition$inboundSchema,
    z.lazy(() => FeedbackFilterAND$inboundSchema),
    z.lazy(() => FeedbackFilterOR$inboundSchema),
]);
/** @internal */
export const FeedbackFilter$outboundSchema = z.union([
    FeedbackFilterCondition$outboundSchema,
    z.lazy(() => FeedbackFilterAND$outboundSchema),
    z.lazy(() => FeedbackFilterOR$outboundSchema),
]);
export function feedbackFilterToJSON(feedbackFilter) {
    return JSON.stringify(FeedbackFilter$outboundSchema.parse(feedbackFilter));
}
export function feedbackFilterFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FeedbackFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeedbackFilter' from JSON`);
}
//# sourceMappingURL=feedbackfilter.js.map