export interface NoteTagAssignment { id: string; tagId: string; tag?: { id: string; label?: string; key?: string; color?: string | null; } | null; entityType: string; entityId: string; source: string; assignedBy?: string | null; assignedAt?: string | null; } export type NoteVisibility = 'PRIVATE' | 'WORKSPACE'; export interface Note { id: string; workspaceId: string; vibeId: string | null; title: string; content: string; /** @deprecated Use tagAssignments for structured tag data */ tags: string[]; tagAssignments?: NoteTagAssignment[]; isPinned: boolean; visibility: NoteVisibility; createdBy: string; metadata: Record; createdAt: string; updatedAt: string; vibe?: { id: string; name: string; }; } export interface NoteFilter { workspaceId?: string; vibeId?: string | null; tags?: string[]; isPinned?: boolean; search?: string; } export interface CreateNoteInput { workspaceId: string; vibeId?: string; title: string; content: string; tags?: string[]; isPinned?: boolean; visibility?: NoteVisibility; metadata?: Record; } export interface UpdateNoteInput { title?: string; content?: string; vibeId?: string | null; tags?: string[]; metadata?: Record; }