/** Per docs/backend/PHASE-4-CONNECTOR-FRAMEWORK-CONTRACT.md §2. */
export interface Connector {
  id: string;
  marketplaceId: string;
  provider: string;
  authType: 'webhook_signed' | 'api_key' | 'oauth2';
  status: 'active' | 'paused' | 'error';
  lastSuccessAt?: string;
  lagSeconds?: number;
  errorCount: number;
  backlogCount: number;
  unmatchedCount: number;
}

export interface DeadLetterEntry {
  id: string;
  connectorId: string;
  reason: string;
  retryCount: number;
  lastAttemptAt: string;
}
