export type ActivityType = 'document' | 'billing' | 'comms' | 'research' | 'analysis' | 'check' | 'calendar'

export const ACTIVITY_ICONS: Record<ActivityType, string> = {
  document: 'ri-file-text-line',
  billing:  'ri-money-dollar-circle-line',
  comms:    'ri-send-plane-line',
  research: 'ri-search-eye-line',
  analysis: 'ri-bar-chart-line',
  check:    'ri-shield-check-line',
  calendar: 'ri-calendar-check-line',
}

interface ActivityMeta {
  action:       string
  activityType: ActivityType
  color:        'primary' | 'success' | 'info' | 'warning' | 'error' | 'secondary'
}

export const TOOL_ACTIVITY_MAP: Record<string, ActivityMeta> = {
  classify_document:        { action: 'Reviewed incoming document',        activityType: 'document',  color: 'primary' },
  delegate_to_case_analyst: { action: 'Analysed request',                  activityType: 'analysis',  color: 'info'    },
  search_clients:           { action: 'Located client record',             activityType: 'check',     color: 'primary' },
  get_client_context:       { action: 'Retrieved matter summary',          activityType: 'analysis',  color: 'primary' },
  list_pending_emails:      { action: 'Scanned incoming messages',         activityType: 'comms',     color: 'info'    },
  associate_email:          { action: 'Routed correspondence',             activityType: 'comms',     color: 'success' },
  get_calendar:             { action: 'Checked upcoming schedule',         activityType: 'calendar',  color: 'info'    },
  get_overdue_invoices:     { action: 'Reviewed outstanding invoices',     activityType: 'billing',   color: 'warning' },
  retrieve_stock_forms:     { action: 'Fetched official government forms', activityType: 'document',  color: 'success' },
  fetch_laws:               { action: 'Checked current regulations',       activityType: 'research',  color: 'warning' },
  search_law_corpus:        { action: 'Searched legal knowledge base',     activityType: 'research',  color: 'warning' },
  search_form_library:      { action: 'Located relevant forms',            activityType: 'document',  color: 'primary' },
  search_matters:           { action: 'Located matter records',            activityType: 'check',     color: 'primary' },
}
