File size: 601 Bytes
5da4770
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { createQueryKeys } from "@/hooks/use-query";

export const threadKeys = createQueryKeys({
  all: ['threads'] as const,
  details: (threadId: string) => ['thread', threadId] as const,
  messages: (threadId: string) => ['thread', threadId, 'messages'] as const,
  project: (projectId: string) => ['project', projectId] as const,
  publicProjects: () => ['public-projects'] as const,
  agentRuns: (threadId: string) => ['thread', threadId, 'agent-runs'] as const,
  billingStatus: ['billing', 'status'] as const,
  byProject: (projectId: string) => ['project', projectId, 'threads'] as const,
});