Files
kandev/apps/web/lib/api/domains/agent-config-api.ts
T
2026-08-16 21:13:41 +00:00

30 lines
680 B
TypeScript

import { fetchJson, type ApiRequestOptions } from "../client";
export type AgentConfigBundleFile = {
source_path: string;
target_path: string;
available: boolean;
};
export type AgentConfigBundle = {
id: string;
agent_id: string;
display_name: string;
label: string;
files: AgentConfigBundleFile[];
available: boolean;
};
export type ListAgentConfigBundlesResponse = {
bundles: AgentConfigBundle[];
};
export async function listAgentConfigBundles(
options?: ApiRequestOptions,
): Promise<ListAgentConfigBundlesResponse> {
return fetchJson<ListAgentConfigBundlesResponse>("/api/v1/agent-config-bundles", {
...options,
cache: "no-store",
});
}