mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
* (fix:attachements) sep id for redux ops * (fix:ui) popups, toast, share modal * (feat:agentsPreview) stable preview, ui fixes * (fix:ui) light theme icon, sleek scroll * (chore:i18n) missin keys * (chore:i18n) missing keys * (feat:preferrenceSlice) autoclear invalid source from storage * (fix:general) delete all conv close btn * (fix:tts) play one at a time * (fix:tts) gracefully unmount * (feat:tts) audio LRU cache * (feat:tts) pointer on hovered area * (feat:tts) clean text for speach --------- Co-authored-by: GH Action - Upstream Sync <action@github.com>
42 lines
912 B
TypeScript
42 lines
912 B
TypeScript
export type ActiveState = 'ACTIVE' | 'INACTIVE';
|
|
|
|
export type User = {
|
|
avatar: string;
|
|
};
|
|
export type Doc = {
|
|
id?: string;
|
|
name: string;
|
|
date: string;
|
|
model: string;
|
|
tokens?: string;
|
|
type?: string;
|
|
retriever?: string;
|
|
syncFrequency?: string;
|
|
isNested?: boolean;
|
|
};
|
|
|
|
export type GetDocsResponse = {
|
|
docs: Doc[];
|
|
totalDocuments: number;
|
|
totalPages: number;
|
|
nextCursor: string;
|
|
};
|
|
|
|
export type Prompt = {
|
|
name: string;
|
|
id: string;
|
|
type: string;
|
|
};
|
|
|
|
export type PromptProps = {
|
|
prompts: { name: string; id: string; type: string }[];
|
|
selectedPrompt: { name: string; id: string; type: string };
|
|
onSelectPrompt: (name: string, id: string, type: string) => void;
|
|
setPrompts: (prompts: { name: string; id: string; type: string }[]) => void;
|
|
};
|
|
|
|
export type DocumentsProps = {
|
|
paginatedDocuments: Doc[] | null;
|
|
handleDeleteDocument: (index: number, document: Doc) => void;
|
|
};
|