import type { Transport } from './transport'; /** * Names to add to / remove from the manifest `api_tools` include and exclude * lists (`POST /api/api-tools`). Each field is a bare name list; the server * refuses a body whose four lists are all empty. */ export interface ApiToolsListsBody { readonly include_add?: string[]; readonly include_remove?: string[]; readonly exclude_add?: string[]; readonly exclude_remove?: string[]; } /** * Body for the combined env+manifest secret op (POST `/api/mcp-config/secret-env`). * The server generates the env key from `value` (shaping the name from `key_hint`), * then writes the env value and the literal `!ENV ${KEY}` manifest leaf at * `manifest_pointer` atomically. `manifest_pointer`'s head segment MUST be `mcp` * (the server refuses any other with a loud 400). */ export interface SetMcpSecretEnvBody { readonly value: string; readonly key_hint: string; readonly manifest_pointer: string; } export declare function manifestClient(t: Transport): { getManifest: (signal?: AbortSignal) => Promise<{ mcp: { [x: string]: unknown; managed?: { connection_id: string; provider_id: string; sub_service: string; } | null | undefined; }[]; user_tools: string[]; }>; setMcpConfig: (mcp: unknown[]) => Promise<{ status: string; env_keys: number; fanout: { mode: "local-only"; note: string; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "fleet"; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "unreachable"; }; }>; getMcpStatus: (signal?: AbortSignal) => Promise<{ bound: Record; failed: { title: string; status: string; }[]; }>; reloadMcp: (title: string) => Promise<{ op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; }>; addToolsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{ status: string; env_keys: number; fanout: { mode: "local-only"; note: string; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "fleet"; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "unreachable"; }; }>; removeToolsEntry: (title: string) => Promise<{ status: string; env_keys: number; fanout: { mode: "local-only"; note: string; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "fleet"; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "unreachable"; }; }>; addAgentsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{ status: string; env_keys: number; fanout: { mode: "local-only"; note: string; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "fleet"; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "unreachable"; }; }>; removeAgentsEntry: (title: string) => Promise<{ status: string; env_keys: number; fanout: { mode: "local-only"; note: string; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "fleet"; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "unreachable"; }; }>; updateApiTools: (body: ApiToolsListsBody) => Promise<{ status: string; env_keys: number; fanout: { mode: "local-only"; note: string; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "fleet"; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "unreachable"; }; }>; listFailedMcps: (signal?: AbortSignal) => Promise<{ op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; }>; reloadFailedMcps: () => Promise<{ op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; }>; deregisterMcp: (title: string) => Promise<{ op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; }>; }; export declare function manifestSecretEnvClient(t: Transport): { setMcpSecretEnv: (body: SetMcpSecretEnvBody) => Promise<{ status: string; env_keys: number; fanout: { mode: "local-only"; note: string; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "fleet"; } | { op: string; reachable: boolean; local_only: boolean; results: { name: string; outcome: "failed" | "applied" | "resyncing" | "recycling" | "stale" | "missing" | "departed" | "timed_out"; payload: unknown; error: string | null; detail: string | null; }[]; error: string | null; mode: "unreachable"; }; }>; getManifestPreserved: (signal?: AbortSignal) => Promise<{ mcp: { [x: string]: unknown; managed?: { connection_id: string; provider_id: string; sub_service: string; } | null | undefined; }[]; user_tools: string[]; }>; getMcpEnvRefs: (signal?: AbortSignal) => Promise<{ var: string; pointer: string; has_default: boolean; set: boolean; }[]>; }; //# sourceMappingURL=manifest-client.d.ts.map