// Nexa — UI schema only.
// All runtime data is fetched from the API. The only thing kept here is
// the schema for the Add-Rule form: the set of policy types we know how
// to render and how to shape their inputs.

const RULE_TYPES = [
  { value: "transaction_limit",     label: "Per-Transaction Limit",  shape: "amount" },
  { value: "daily_limit",           label: "Daily Aggregate Limit",  shape: "amount" },
  { value: "weekly_limit",          label: "Weekly Aggregate Limit", shape: "amount" },
  { value: "monthly_limit",         label: "Monthly Aggregate Limit", shape: "amount" },
  { value: "approval_threshold",    label: "Approval Threshold",     shape: "amount" },
  { value: "min_balance",           label: "Minimum Balance Floor",  shape: "amount" },
  { value: "counterparty_whitelist", label: "Counterparty Whitelist", shape: "list" },
  { value: "counterparty_blacklist", label: "Counterparty Blacklist", shape: "list" },
  { value: "currency_whitelist",    label: "Currency Whitelist",     shape: "list" },
  { value: "corridor_blacklist",    label: "Corridor Blacklist",     shape: "list" },
  { value: "velocity_limit",        label: "Velocity Limit",         shape: "velocity" },
  { value: "time_window",           label: "Time Window",            shape: "time" },
];

window.DASHBOARD_DATA = { RULE_TYPES };
