/** * Dashboard-scoped adapter management. Sits behind `requireDashboardAuth` * (admin) so the SPA can manage adapter lifecycle without touching the * gateway-secret-gated `/api/wizards` + `/api/adapters/:id/sync` pair. * * Surface: * GET /api/dashboard/adapters — every configured adapter * → { adapters: Array<{ id, kind, slug, status, lastRunAt?, lastError? }> } * GET /api/dashboard/adapters/:id — one adapter's full detail * (secrets redacted with the literal "__REDACTED__" sentinel — * the wizard renderer renders that as "Click to replace") * POST /api/dashboard/adapters/:id/pause — set enabled=false in cortex.yaml + reload * POST /api/dashboard/adapters/:id/resume — set enabled=true + reload * POST /api/dashboard/adapters/:id/trigger-fetch * — fire the live adapter's fetch+transform+classify+ingest pass * inline; returns the sync result so the UI can toast it. * DELETE /api/dashboard/adapters/:id — remove from cortex.yaml + * drop the adapter's declared secrets from .env * * Status enum: `idle` (configured, not currently running, no last-error), * `running`, `paused` (entry present but `enabled=false`), `error` (last * heartbeat run reported errors). */ import type { IncomingMessage, ServerResponse } from "node:http"; import type { RouteContext } from "../route-context.js"; export declare function handle(req: IncomingMessage, res: ServerResponse, ctx: RouteContext): Promise; //# sourceMappingURL=dashboard-adapters.d.ts.map