// React Query query keys export const queryKeys = { // Notes notes: (notebookId?: string | null) => ['notes', notebookId] as const, note: (noteId: string) => ['note', noteId] as const, notesWithReminders: () => ['notes', 'reminders'] as const, noteHistory: (noteId: string) => ['note', noteId, 'history'] as const, // Notebooks notebooks: () => ['notebooks'] as const, notebook: (notebookId: string) => ['notebooks', notebookId] as const, // Labels labels: (notebookId?: string | null) => ['labels', notebookId] as const, // AI aiSettings: (userId: string) => ['ai', 'settings', userId] as const, titleSuggestions: (content: string) => ['ai', 'title-suggestions', content] as const, autoTags: (content: string, notebookId?: string | null) => ['ai', 'auto-tags', content, notebookId] as const, // Brainstorm brainstormSessions: () => ['brainstorm', 'sessions'] as const, brainstormSharedSessions: () => ['brainstorm', 'shared-sessions'] as const, brainstormSession: (sessionId: string) => ['brainstorm', 'session', sessionId] as const, } as const export type QueryKeys = typeof queryKeys