paperclip / ui /src /api /skillChanges.ts
Leon4gr45's picture
Bundle paperclip + openviking into HF Docker Space
64648ce
Raw
History Blame Contribute Delete
651 Bytes
import { api } from "./client";
export interface SkillChange {
id: string;
companyId: string;
skillId: string;
agentId: string | null;
changeType: "created" | "updated" | "deleted" | "enabled" | "disabled";
summary: string | null;
diff: string | null;
createdAt: string;
}
export const skillChangesApi = {
listForSkill: (companyId: string, skillId: string) =>
api.get<SkillChange[]>(
`/companies/${encodeURIComponent(companyId)}/skills/${encodeURIComponent(skillId)}/changes`,
),
listForAgent: (agentId: string) =>
api.get<SkillChange[]>(
`/agents/${encodeURIComponent(agentId)}/skill-changes`,
),
};