import type { RetentionAction } from "./pii-types";

export type PurgeSchedule =
  | "daily"
  | "weekly"
  | "monthly"
  | (string & Record<never, never>);

export type CollectionRetention = {
  activeRetention?: {
    duration: string;
    trigger: "from-creation" | "from-last-access";
  };
  postDeletion?: {
    duration: string;
    trigger: "after-deletion";
    action: RetentionAction;
  };
  purgeSchedule: PurgeSchedule;
  coldArchive?: { duration: string; trigger: "from-creation" };
};
