22 lines
602 B
TypeScript
22 lines
602 B
TypeScript
import { Conversation } from './chat';
|
|
import { Folder } from './folder';
|
|
import { PluginKey } from './plugin';
|
|
import { Prompt } from './prompt';
|
|
|
|
// keep track of local storage schema
|
|
export interface LocalStorage {
|
|
apiKey: string;
|
|
conversationHistory: Conversation[];
|
|
selectedConversation: Conversation;
|
|
theme: 'light' | 'dark';
|
|
// added folders (3/23/23)
|
|
folders: Folder[];
|
|
// added prompts (3/26/23)
|
|
prompts: Prompt[];
|
|
// added showChatbar and showPromptbar (3/26/23)
|
|
showChatbar: boolean;
|
|
showPromptbar: boolean;
|
|
// added plugin keys (4/3/23)
|
|
pluginKeys: PluginKey[];
|
|
}
|