Update types.ts
This commit is contained in:
6
types.ts
6
types.ts
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user