(refactor:attach) centralize attachment state

This commit is contained in:
ManishMadan2882
2025-04-10 03:02:39 +05:30
parent b4c6b2b08b
commit 292257770c
5 changed files with 159 additions and 187 deletions

View File

@@ -9,11 +9,21 @@ export interface Message {
type: MESSAGE_TYPE;
}
export interface Attachment {
id?: string;
fileName: string;
status: 'uploading' | 'processing' | 'completed' | 'failed';
progress: number;
taskId?: string;
token_count?: number;
}
export interface ConversationState {
queries: Query[];
status: Status;
conversationId: string | null;
attachments?: { fileName: string; id: string }[];
attachments: Attachment[];
}
export interface Answer {