import { object, string, minLength, optional, number, picklist } from "valibot";

export const CreateEnrollmentSchema = object({
  name: string([minLength(1)]),
  audioBase64: string([minLength(1)]),
});

export const DeleteEnrollmentSchema = object({
  enrollmentId: string([minLength(1)]),
});

export const AnalyzeAudioSchema = object({
  audioBase64: string([minLength(1)]),
  enrollmentId: optional(string()),
});

export const AnalysisFilterSchema = object({
  page: optional(number(), 1),
  limit: optional(number(), 20),
  verdict: optional(picklist(["NATURAL", "SYNTHETIC", "UNCERTAIN"])),
});

export const AnalysisResultSchema = object({
  analysisId: string([minLength(1)]),
});

export const JobStatusSchema = object({
  jobId: string([minLength(1)]),
});
