Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

570 B
Raw Blame
import { createQueryKeys } from '@lukemorales/query-key-factory';

/** External chats never share channel cache keys or persisted pairing state. */
export const externalChatsKeys = createQueryKeys('external-chats', {
  list: (userId: string) => [userId],
  detail: (userId: string, chatId: string) => [userId, chatId],
  messages: (userId: string, chatId: string) => [userId, chatId],
  delivery: (userId: string, chatId: string) => ({
    queryKey: [userId, chatId],
    contextQueries: {
      sends: (sendIds: string[]) => ({ queryKey: [sendIds] }),
    },
  }),
});