export const EventPatterns = {
  // agent-service events
  COMMAND_EXECUTED: 'command.executed',
  APPROVAL_REQUIRED: 'approval.required',
  TASK_STARTED: 'task.started',
  TASK_COMPLETED: 'task.completed',
  SESSION_CREATED: 'session.created',
  SESSION_ENDED: 'session.ended',

  // monitor-service events
  ALERT_FIRED: 'alert.fired',
  ALERT_RESOLVED: 'alert.resolved',
  HEALTH_CHECK_FAILED: 'health.check.failed',
  AGENT_METRICS: 'agent.metrics',

  // ops-service events
  OPS_TASK_CREATED: 'ops.task.created',
  OPS_TASK_COMPLETED: 'ops.task.completed',
  APPROVAL_GRANTED: 'approval.granted',
  APPROVAL_REJECTED: 'approval.rejected',
  APPROVAL_RESOLVED: 'approval.resolved',
  STANDING_ORDER_CREATED: 'standing.order.created',
  STANDING_ORDER_UPDATED: 'standing.order.updated',
  STANDING_ORDER_TRIGGERED: 'standing.order.triggered',
  STANDING_ORDER_EXECUTED: 'standing.order.executed',

  // comm-service events
  NOTIFICATION_SENT: 'notification.sent',
  NOTIFICATION_DELIVERED: 'notification.delivered',
  ESCALATION_TRIGGERED: 'escalation.triggered',
  HUMAN_RESPONSE_RECEIVED: 'human.response.received',

  // audit events
  AUDIT_LOG_CREATED: 'audit.log.created',

  // billing events
  USAGE_RECORDED: 'usage.recorded',
  SUBSCRIPTION_CHANGED: 'subscription.changed',
  QUOTA_EXCEEDED: 'quota.exceeded',
  PAYMENT_RECEIVED: 'payment.received',
} as const;
