/*
 * Shared shapes for the Team Activity pane components.
 * Local mirror of what the /xmem REST shims return — kept here so the
 * pane components don't import RTK types from store/api.ts directly,
 * which keeps the pane fully self-contained for revert.
 */

export interface TeamMemoryEvent {
  eventId: string;
  teamId: string;
  agentId: string;
  workspaceId: string;
  eventType: string;
  timestamp: string;
  payload: Record<string, unknown>;
  summary: string;
  metadata: Record<string, unknown>;
}

export interface BlockerEdge {
  blockedTaskId: string;
  blockedAgentId: string;
  blockingTaskId: string;
  blockingAgentId: string;
  status: 'active' | 'cleared';
  observedAt: string;
}
