/** * Status of an individual integration health check. */ export interface IntegrationHealthStatus { /** Name of the integration being checked */ service: string; /** Whether the integration is reachable */ healthy: boolean; /** Human-readable status message */ message: string; /** Time taken to check in milliseconds */ latencyMs: number; /** Error details if unhealthy */ error?: string; } /** * Overall health check result for all configured integrations. */ export interface HealthCheckResult { /** Whether all checked integrations are healthy */ healthy: boolean; /** Timestamp of the health check */ timestamp: string; /** Individual integration statuses */ integrations: IntegrationHealthStatus[]; /** Total time taken for all checks in milliseconds */ totalLatencyMs: number; } /** * Runs health checks for all configured integrations. * * Checks credential configuration for each external service. Does not make * actual API calls (to avoid side effects and rate limit consumption). * For connectivity verification, consumers should use the individual service * functions with appropriate error handling. * * @param services - Optional list of service names to check. If omitted, checks all. * @returns Health check result with individual integration statuses * * @example * const result = await checkIntegrationHealth(); * if (!result.healthy) { * console.error('Unhealthy integrations:', result.integrations.filter(i => !i.healthy)); * } * * @example * // Check specific services only * const result = await checkIntegrationHealth(['openai', 'slack']); */ export declare function checkIntegrationHealth(services?: string[]): Promise;