import type { UserRole, AuditAction, ModuleStatus } from "./types"; export const MODULE_ICONS: Record = { watchman: "πŸ‘", digest: "πŸ“°", research: "πŸ”¬", scheduler: "⏱", notifications: "πŸ””", api_gateway: "🌐", auth: "πŸ”", database: "πŸ—„", cache: "⚑", logger: "πŸ“‹", metrics: "πŸ“Š", mail: "βœ‰οΈ", workers: "βš™οΈ", storage: "πŸ’Ύ", webhooks: "πŸͺ", ai_pipeline: "πŸ€–", build_monitor: "πŸ—", default: "πŸ“¦", }; export const ACTION_COLORS: Record = { login: "#22c55e", logout: "#94a3b8", module_toggle: "#3b82f6", settings_update: "#f59e0b", user_create: "#10b981", user_update: "#6366f1", user_delete: "#ef4444", api_key_rotate: "#f97316", system_restart: "#ec4899", }; export const ROLE_LABELS: Record = { superadmin: "Super Admin", admin: "Admin", operator: "Operator", viewer: "Viewer", }; export const ROLE_PERMISSIONS: Record = { superadmin: ["*"], admin: ["modules.*", "users.*", "audit.read", "settings.*"], operator: ["modules.toggle", "modules.read", "audit.read", "settings.read"], viewer: ["modules.read", "audit.read", "settings.read"], }; export const MODULE_STATUS_LABELS: Record = { active: "Active", inactive: "Inactive", error: "Error", loading: "Loading…", }; export const MODULE_STATUS_COLORS: Record = { active: "#22c55e", inactive: "#94a3b8", error: "#ef4444", loading: "#f59e0b", }; export const DEFAULT_PAGE_SIZE = 25; export const MAX_PAGE_SIZE = 100; export const TOKEN_EXPIRY_SECONDS = 3600; export const REFRESH_TOKEN_EXPIRY_SECONDS = 86400 * 7; export const AUDIT_RETENTION_DAYS = 90; export const METRICS_POLL_INTERVAL_MS = 5000;