'use strict'; var v4 = require('zod/v4'); // src/server/schemas/rule-group.ts var ruleSchema = v4.z.object({ field: v4.z.string(), operator: v4.z.enum([ "equals", "not_equals", "contains", "not_contains", "greater_than", "less_than", "greater_than_or_equal", "less_than_or_equal", "in", "not_in", "exists", "not_exists" ]), value: v4.z.unknown().optional() }); var ruleGroupDepth2 = v4.z.object({ operator: v4.z.enum(["AND", "OR"]), conditions: v4.z.array(ruleSchema) }); var ruleGroupDepth1 = v4.z.object({ operator: v4.z.enum(["AND", "OR"]), conditions: v4.z.array(v4.z.union([ruleSchema, ruleGroupDepth2])) }); var ruleGroupSchema = v4.z.object({ operator: v4.z.enum(["AND", "OR"]), conditions: v4.z.array(v4.z.union([ruleSchema, ruleGroupDepth1])) }); exports.ruleGroupSchema = ruleGroupSchema; exports.ruleSchema = ruleSchema; //# sourceMappingURL=chunk-24YYB3J7.cjs.map //# sourceMappingURL=chunk-24YYB3J7.cjs.map