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

export const AddPropertySchema = object({
  address: string([minLength(1)]),
  parcelId: optional(string()),
  ownerName: optional(string()),
});

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

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

export const GetChangesSchema = object({
  propertyId: string([minLength(1)]),
  severity: optional(picklist(["info", "warning", "critical"])),
  changeType: optional(picklist(["tax_change", "deed_change", "ownership_transfer", "lien_filing", "metadata_change"])),
});

export const RunScanSchema = object({});
