import { request } from "../request"; import type { ACPAgentConfig, ACPConfig, ACPNodeRuntimeStatus, ACPNodeRuntimeUpdate, } from "../types"; export const acpApi = { getACPConfig: () => request("/config/acp"), getACPNodeRuntime: () => request("/config/acp/node-runtime"), getACPAgentConfig: (agentName: string) => request(`/config/acp/${encodeURIComponent(agentName)}`), updateACPConfig: (body: ACPConfig) => request("/config/acp", { method: "PUT", body: JSON.stringify(body), }), updateACPNodeRuntime: (body: ACPNodeRuntimeUpdate) => request("/config/acp/node-runtime", { method: "PUT", body: JSON.stringify(body), }), updateACPAgentConfig: (agentName: string, body: ACPAgentConfig) => request(`/config/acp/${encodeURIComponent(agentName)}`, { method: "PUT", body: JSON.stringify(body), }), };