import type { PipelineError } from '../sdk'; import type { PipelineStateValueV1, PipelineStatusValue } from '../sdk/pipeline/types'; /** Aggregate health of the pipeline's source connections while it is running. */ export type SourceHealthState = 'healthy' | 'unhealthy'; export interface PipelineStatus { /** Undefined while the pipeline definition is loading. */ pipelineName?: string; /** Run state from the pipeline status endpoint. Undefined while resolving. */ pipelineState?: PipelineStateValueV1; /** * Lifecycle status reported by the RDI status endpoint (started, stopped, * starting, error, …). Undefined while the status query is resolving. */ pipelineStatus?: PipelineStatusValue; /** Errors reported by the status endpoint. Empty/undefined when healthy. */ errors?: PipelineError[]; /** True while either underlying query is still resolving. */ isLoading: boolean; }