export type IntegrationType =
  | 'proxmox'
  | 'docker'
  | 'netbird'
  | 'cloudflare'
  | 'aws'
  | 'uptime_kuma'
  | 'weather'
  | 'ssh'
  | 'remote_desktop'

export interface IntegrationConfig {
  [key: string]: string
}

export interface TestResult {
  ok: boolean
  message: string
}

export interface Resource {
  name: string
  status: 'healthy' | 'warning' | 'critical' | 'unknown'
  detail?: string
}

export interface IntegrationAdapter {
  testConnection(config: IntegrationConfig, secrets: Record<string, string>): Promise<TestResult>
  listResources?(config: IntegrationConfig, secrets: Record<string, string>): Promise<Resource[]>
}
