if-emotion-ux/types.ts
Danny Stocker 3a88d69d1d feat: Initialize project with Vite and React
Sets up the project structure, dependencies, and configuration for a new Vite-based React application. Includes basic HTML, TypeScript configurations, and necessary build tools for local development and deployment.
2025-11-30 05:12:38 +01:00

50 lines
No EOL
741 B
TypeScript

export enum Role {
USER = 'user',
MODEL = 'model',
}
export interface Message {
id: string;
role: Role;
text: string;
timestamp: Date;
isError?: boolean;
reactions?: string[];
}
export interface Session {
id: string;
folderId?: string; // Optional folder association
title: string;
messages: Message[];
updatedAt: Date;
}
export interface Folder {
id: string;
name: string;
}
export enum Language {
EN = 'en',
ES = 'es',
FR = 'fr',
}
export enum AppMode {
SIMPLE = 'simple',
ADVANCED = 'advanced',
}
export interface UIString {
en: string;
es: string;
fr: string;
}
export type LocalizedStrings = {
[key: string]: UIString;
};
export type ExportFormat = 'json' | 'md' | 'txt' | 'pdf';