Update types.ts

This commit is contained in:
fcarraUniSa
2026-02-17 11:26:05 +01:00
committed by GitHub
parent 2bd75c4491
commit 170c3fa76a

View File

@@ -67,6 +67,7 @@ export interface Ticket {
customerName: string; customerName: string;
messages: ChatMessage[]; messages: ChatMessage[];
attachments: Attachment[]; // Added attachments attachments: Attachment[]; // Added attachments
hasBeenAnalyzed?: boolean; // New flag to prevent duplicate AI analysis
} }
export interface KBArticle { export interface KBArticle {
@@ -77,6 +78,7 @@ export interface KBArticle {
type: 'article' | 'url'; type: 'article' | 'url';
url?: string; url?: string;
source?: 'manual' | 'ai'; // Track if created by AI for quotas source?: 'manual' | 'ai'; // Track if created by AI for quotas
visibility: 'public' | 'internal'; // New visibility flag
lastUpdated: string; lastUpdated: string;
} }
@@ -159,6 +161,10 @@ export interface AiConfig {
model: string; model: string;
baseUrl?: string; // For self-hosted/custom endpoints baseUrl?: string; // For self-hosted/custom endpoints
isActive: boolean; isActive: boolean;
// Customization fields
agentName?: string;
agentAvatar?: string;
customPrompt?: string;
} }
export interface AppSettings { export interface AppSettings {