@aslaluroba/help-center
Version:
A powerful and customizable help center widget for Angular applications with real-time chat functionality, AI assistance, and multi-language support.
39 lines (38 loc) • 865 B
TypeScript
export type Language = 'en' | 'ar';
export interface TokenResponse {
token: string;
expiresIn: number;
}
export interface Option {
id: string;
helpScreenId: string;
parentOptionId: string | null;
nestedOptions: Option[];
title: string;
paragraphs: string[];
chatWithUs: boolean;
assistantId?: string;
assistant?: {
id: string;
tenantId: string;
tenant: {
id: string;
name: string;
key: string;
};
name: string;
openAIAssistantId: string;
greeting: string;
closing: string;
};
hasNestedOptions: boolean;
order: number;
}
export interface Message {
id: string | number;
sender: 'user' | 'assistant' | 'agent';
senderType: number;
messageContent: string;
sentAt: Date;
isSeen: boolean;
}