import type { Issue } from "@paperclipai/shared"; import { api } from "./client"; export const agentChatsApi = { list: (companyId: string) => api.get(`/companies/${companyId}/chats`), get: (companyId: string, agentRef: string) => api.get( `/companies/${companyId}/chats/${encodeURIComponent(agentRef)}`, ), ensure: (companyId: string, agentRef: string) => api.post( `/companies/${companyId}/chats/${encodeURIComponent(agentRef)}`, {}, ), };