// [nexus] API client for assistant memory endpoints import { api } from "./client"; export interface AssistantMemory { companyId: string; facts: string[]; updatedAt: string | null; } export const assistantMemoryApi = { getMemory(companyId: string): Promise { return api.get(`/assistant-memory/${companyId}`); }, appendFact(companyId: string, fact: string): Promise { return api.patch(`/assistant-memory/${companyId}`, { fact }); }, clearMemory(companyId: string): Promise { return api.delete(`/assistant-memory/${companyId}`); }, };