import { z } from "zod";
import { RELEASE_GATE_CATEGORIES, RELEASE_GATE_COMPARISONS } from "@app/shared-types";

export const releaseGateUpdateSchema = z.object({
  targetValue: z.number().finite(),
  comparison: z.enum(RELEASE_GATE_COMPARISONS),
  evaluationWindowDays: z.number().int().min(1).max(365),
  blocking: z.boolean(),
  notes: z.string().max(2000).optional(),
});

export type ReleaseGateUpdateInput = z.infer<typeof releaseGateUpdateSchema>;
