import type * as HydraDB from "../index.js"; export interface HandlerConnectorStatusResponse { /** Connector this resource belongs to. */ connectorId?: string; /** Error message, empty string on success. */ error?: HydraDB.HandlerConnectorStatusError; /** RFC3339 timestamp of the most recent sync attempt (successful or not). */ lastAttemptedSyncAt?: string; /** RFC3339 timestamp of the last successful sync completion. */ lastSuccessfulSyncAt?: string; /** * Lifecycle is the derived what-is-it-doing-now field (PRO-1565): * reconnect | syncing | pending_setup | ingesting | active. Orthogonal to * the health rollup above — a connector can be ingesting and healthy, or * active and degraded. */ lifecycle?: string; /** RFC3339 timestamp when the next scheduled sync will run. */ nextSyncAt?: string; planCap?: HydraDB.HandlerPlanCapView; /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */ provider?: string; /** * Resources is one entry per configured resource, always non-nil so it * serialises as [] rather than null. */ resources?: HydraDB.HandlerConnectorResourceStatus[]; /** * Status is the rollup: healthy | degraded | failed | checking, or capped * when the org is at an enforced plan cap and the rollup was healthy, * degraded or checking (PlanCap then says which cap). It is the worst of * the credential state and every resource state. */ status?: string; /** * SyncStatus is the in-progress indicator ("syncing"/"idle"), orthogonal to * Status — a connector can be mid-sync and degraded at the same time. */ syncStatus?: string; }