@aakash58/chatbot 1.1.22 → 1.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/fesm2022/aakash58-chatbot.mjs +684 -654
  2. package/fesm2022/aakash58-chatbot.mjs.map +1 -1
  3. package/index.d.ts +374 -3
  4. package/package.json +2 -4
  5. package/esm2022/aakash58-chatbot.mjs +0 -5
  6. package/esm2022/lib/app/chat/chat-ui-state.service.mjs +0 -170
  7. package/esm2022/lib/app/chat/chat.service.mjs +0 -445
  8. package/esm2022/lib/app/chat/components/chat-button/chat-button.component.mjs +0 -50
  9. package/esm2022/lib/app/chat/components/chat-footer/chat-footer.component.mjs +0 -12
  10. package/esm2022/lib/app/chat/components/chat-header/chat-header.component.mjs +0 -66
  11. package/esm2022/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.mjs +0 -186
  12. package/esm2022/lib/app/chat/components/chat-window/chat-window.component.mjs +0 -312
  13. package/esm2022/lib/app/chat/components/message-input/message-input.component.mjs +0 -36
  14. package/esm2022/lib/app/chat/components/message-list/message-list.component.mjs +0 -115
  15. package/esm2022/lib/app/chat/model/chat-history.model.mjs +0 -2
  16. package/esm2022/lib/app/chat/model/chat-request.model.mjs +0 -2
  17. package/esm2022/lib/app/chat/model/chat-response.model.mjs +0 -2
  18. package/esm2022/lib/app/chat/model/chat-session.model.mjs +0 -2
  19. package/esm2022/lib/app/chat/model/chat-stream-message.model.mjs +0 -2
  20. package/esm2022/lib/app/chat/model/chat-stream-response.model.mjs +0 -2
  21. package/esm2022/lib/app/chat/services/chat-api.service.mjs +0 -61
  22. package/esm2022/lib/app/chat/services/chat-audio.service.mjs +0 -50
  23. package/esm2022/lib/app/chat/services/chat-history.service.mjs +0 -252
  24. package/esm2022/lib/app/login/login-form.component.mjs +0 -46
  25. package/esm2022/lib/app/personalization/personalization-dialog.component.mjs +0 -194
  26. package/esm2022/lib/app/personalization/personalization.service.mjs +0 -149
  27. package/esm2022/lib/app/personalization/sections/account/account-section.component.mjs +0 -122
  28. package/esm2022/lib/app/personalization/sections/preferences/color-picker-dialog.component.mjs +0 -86
  29. package/esm2022/lib/app/personalization/sections/preferences/preferences-section.component.mjs +0 -115
  30. package/esm2022/lib/app/personalization/sections/profile/profile-section.component.mjs +0 -29
  31. package/esm2022/lib/app/personalization/sections/settings/setting-section.component.mjs +0 -30
  32. package/esm2022/lib/app/personalization/sections/terms/terms-section.component.mjs +0 -12
  33. package/esm2022/lib/constant/doohbot-constant.mjs +0 -28
  34. package/esm2022/lib/constant/html-entities.mjs +0 -9
  35. package/esm2022/lib/constant/utf8.mjs +0 -10
  36. package/esm2022/lib/core/app-const.mjs +0 -61
  37. package/esm2022/lib/core/auth/account-api.service.mjs +0 -40
  38. package/esm2022/lib/core/auth/auth.service.mjs +0 -391
  39. package/esm2022/lib/core/auth/models/auth-result.model.mjs +0 -3
  40. package/esm2022/lib/core/auth/models/federated-login-request.model.mjs +0 -6
  41. package/esm2022/lib/core/auth/models/login-request.model.mjs +0 -6
  42. package/esm2022/lib/core/auth/storage.service.mjs +0 -110
  43. package/esm2022/lib/core/directives/draggable/draggable-dialog.directive.mjs +0 -112
  44. package/esm2022/lib/core/directives/fullscreen/fullscreen.directive.mjs +0 -55
  45. package/esm2022/lib/core/directives/resizable/resizable-dialog.directive.mjs +0 -179
  46. package/esm2022/lib/core/environments/environment.mjs +0 -15
  47. package/esm2022/lib/core/environments/environment.prod.mjs +0 -15
  48. package/esm2022/lib/core/helpers/crypto-helper.service.mjs +0 -52
  49. package/esm2022/lib/core/http/http-stream.service.mjs +0 -97
  50. package/esm2022/lib/core/http/http.service.mjs +0 -103
  51. package/esm2022/lib/core/interceptors/auth.interceptor.mjs +0 -96
  52. package/esm2022/lib/core/interceptors/license.interceptor.mjs +0 -44
  53. package/esm2022/lib/core/models/api-config.model.mjs +0 -18
  54. package/esm2022/lib/core/models/api-request.model.mjs +0 -2
  55. package/esm2022/lib/core/models/api-response.model.mjs +0 -8
  56. package/esm2022/lib/core/models/doohbot-config.model.mjs +0 -18
  57. package/esm2022/lib/core/models/license.model.mjs +0 -2
  58. package/esm2022/lib/core/models/message.mjs +0 -2
  59. package/esm2022/lib/core/models/theme-config.model.mjs +0 -2
  60. package/esm2022/lib/core/services/core-config.service.mjs +0 -52
  61. package/esm2022/lib/core/services/license.service.mjs +0 -145
  62. package/esm2022/lib/core/services/markdown.service.mjs +0 -64
  63. package/esm2022/lib/core/services/theme.service.mjs +0 -248
  64. package/esm2022/lib/core/types/auth-mode.type.mjs +0 -2
  65. package/esm2022/lib/core/types/auth-status.type.mjs +0 -5
  66. package/esm2022/lib/core/types/chat-stream.type.mjs +0 -2
  67. package/esm2022/lib/core/types/message-role.type.mjs +0 -2
  68. package/esm2022/lib/core/types/prompt-mode.type.mjs +0 -5
  69. package/esm2022/lib/core/types/snackbar-error.type.mjs +0 -5
  70. package/esm2022/lib/core/types/tenant-resolution-strategy.type.mjs +0 -2
  71. package/esm2022/lib/core/utils/logger.service.mjs +0 -42
  72. package/esm2022/lib/doohbot-input.mjs +0 -20
  73. package/esm2022/lib/doohbot.component.mjs +0 -444
  74. package/esm2022/lib/predefined_messages.mjs +0 -15
  75. package/esm2022/lib/shared/chips/chips.component.mjs +0 -28
  76. package/esm2022/lib/shared/dialog/dialog.component.mjs +0 -36
  77. package/esm2022/lib/shared/dialog/dialog.service.mjs +0 -64
  78. package/esm2022/lib/shared/dialog/dialog.utils.mjs +0 -85
  79. package/esm2022/lib/shared/dropdown-menu/dropdown-menu.component.mjs +0 -29
  80. package/esm2022/lib/shared/input-dialog/input-dialog.component.mjs +0 -38
  81. package/esm2022/lib/shared/menu-item/menu-item.component.mjs +0 -24
  82. package/esm2022/lib/shared/pipes/simple-markdown.pipe.mjs +0 -27
  83. package/esm2022/lib/shared/snackbar/snackbar.component.mjs +0 -43
  84. package/esm2022/lib/shared/snackbar/snackbar.service.mjs +0 -46
  85. package/esm2022/lib/shared/snackbar/snackbar.utils.mjs +0 -43
  86. package/esm2022/public-api.mjs +0 -37
  87. package/lib/app/chat/chat-ui-state.service.d.ts +0 -96
  88. package/lib/app/chat/chat.service.d.ts +0 -88
  89. package/lib/app/chat/components/chat-button/chat-button.component.d.ts +0 -16
  90. package/lib/app/chat/components/chat-footer/chat-footer.component.d.ts +0 -5
  91. package/lib/app/chat/components/chat-header/chat-header.component.d.ts +0 -24
  92. package/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.d.ts +0 -49
  93. package/lib/app/chat/components/chat-window/chat-window.component.d.ts +0 -107
  94. package/lib/app/chat/components/message-input/message-input.component.d.ts +0 -12
  95. package/lib/app/chat/components/message-list/message-list.component.d.ts +0 -40
  96. package/lib/app/chat/model/chat-history.model.d.ts +0 -51
  97. package/lib/app/chat/model/chat-request.model.d.ts +0 -10
  98. package/lib/app/chat/model/chat-response.model.d.ts +0 -9
  99. package/lib/app/chat/model/chat-session.model.d.ts +0 -12
  100. package/lib/app/chat/model/chat-stream-message.model.d.ts +0 -5
  101. package/lib/app/chat/model/chat-stream-response.model.d.ts +0 -10
  102. package/lib/app/chat/services/chat-api.service.d.ts +0 -30
  103. package/lib/app/chat/services/chat-audio.service.d.ts +0 -19
  104. package/lib/app/chat/services/chat-history.service.d.ts +0 -53
  105. package/lib/app/login/login-form.component.d.ts +0 -20
  106. package/lib/app/personalization/personalization-dialog.component.d.ts +0 -53
  107. package/lib/app/personalization/personalization.service.d.ts +0 -66
  108. package/lib/app/personalization/sections/account/account-section.component.d.ts +0 -30
  109. package/lib/app/personalization/sections/preferences/color-picker-dialog.component.d.ts +0 -17
  110. package/lib/app/personalization/sections/preferences/preferences-section.component.d.ts +0 -27
  111. package/lib/app/personalization/sections/profile/profile-section.component.d.ts +0 -17
  112. package/lib/app/personalization/sections/settings/setting-section.component.d.ts +0 -10
  113. package/lib/app/personalization/sections/terms/terms-section.component.d.ts +0 -5
  114. package/lib/constant/doohbot-constant.d.ts +0 -12
  115. package/lib/constant/html-entities.d.ts +0 -8
  116. package/lib/constant/utf8.d.ts +0 -9
  117. package/lib/core/app-const.d.ts +0 -11
  118. package/lib/core/auth/account-api.service.d.ts +0 -20
  119. package/lib/core/auth/auth.service.d.ts +0 -90
  120. package/lib/core/auth/models/auth-result.model.d.ts +0 -4
  121. package/lib/core/auth/models/federated-login-request.model.d.ts +0 -5
  122. package/lib/core/auth/models/login-request.model.d.ts +0 -6
  123. package/lib/core/auth/storage.service.d.ts +0 -21
  124. package/lib/core/directives/draggable/draggable-dialog.directive.d.ts +0 -23
  125. package/lib/core/directives/fullscreen/fullscreen.directive.d.ts +0 -14
  126. package/lib/core/directives/resizable/resizable-dialog.directive.d.ts +0 -30
  127. package/lib/core/environments/environment.d.ts +0 -7
  128. package/lib/core/environments/environment.prod.d.ts +0 -7
  129. package/lib/core/helpers/crypto-helper.service.d.ts +0 -12
  130. package/lib/core/http/http-stream.service.d.ts +0 -18
  131. package/lib/core/http/http.service.d.ts +0 -20
  132. package/lib/core/interceptors/auth.interceptor.d.ts +0 -18
  133. package/lib/core/interceptors/license.interceptor.d.ts +0 -11
  134. package/lib/core/models/api-config.model.d.ts +0 -58
  135. package/lib/core/models/api-request.model.d.ts +0 -77
  136. package/lib/core/models/api-response.model.d.ts +0 -6
  137. package/lib/core/models/doohbot-config.model.d.ts +0 -81
  138. package/lib/core/models/license.model.d.ts +0 -23
  139. package/lib/core/models/message.d.ts +0 -16
  140. package/lib/core/models/theme-config.model.d.ts +0 -28
  141. package/lib/core/services/core-config.service.d.ts +0 -23
  142. package/lib/core/services/license.service.d.ts +0 -33
  143. package/lib/core/services/markdown.service.d.ts +0 -8
  144. package/lib/core/services/theme.service.d.ts +0 -40
  145. package/lib/core/types/auth-mode.type.d.ts +0 -4
  146. package/lib/core/types/auth-status.type.d.ts +0 -4
  147. package/lib/core/types/chat-stream.type.d.ts +0 -4
  148. package/lib/core/types/message-role.type.d.ts +0 -4
  149. package/lib/core/types/prompt-mode.type.d.ts +0 -4
  150. package/lib/core/types/snackbar-error.type.d.ts +0 -4
  151. package/lib/core/types/tenant-resolution-strategy.type.d.ts +0 -4
  152. package/lib/core/utils/logger.service.d.ts +0 -11
  153. package/lib/doohbot-input.d.ts +0 -19
  154. package/lib/doohbot.component.d.ts +0 -108
  155. package/lib/predefined_messages.d.ts +0 -2
  156. package/lib/shared/chips/chips.component.d.ts +0 -10
  157. package/lib/shared/dialog/dialog.component.d.ts +0 -19
  158. package/lib/shared/dialog/dialog.service.d.ts +0 -29
  159. package/lib/shared/dialog/dialog.utils.d.ts +0 -41
  160. package/lib/shared/dropdown-menu/dropdown-menu.component.d.ts +0 -11
  161. package/lib/shared/input-dialog/input-dialog.component.d.ts +0 -20
  162. package/lib/shared/menu-item/menu-item.component.d.ts +0 -9
  163. package/lib/shared/pipes/simple-markdown.pipe.d.ts +0 -10
  164. package/lib/shared/snackbar/snackbar.component.d.ts +0 -14
  165. package/lib/shared/snackbar/snackbar.service.d.ts +0 -19
  166. package/lib/shared/snackbar/snackbar.utils.d.ts +0 -33
  167. package/public-api.d.ts +0 -11
  168. package/src/assets/bot.mp3 +0 -0
@@ -1,18 +0,0 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { StorageService } from '../auth/storage.service';
4
- import { Injector } from '@angular/core';
5
- import * as i0 from "@angular/core";
6
- export declare class AuthInterceptor implements HttpInterceptor {
7
- private tokenStorage;
8
- private injector;
9
- private isRefreshing;
10
- private clearingAuth;
11
- private refreshTokenSubject;
12
- constructor(tokenStorage: StorageService, injector: Injector);
13
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
14
- private handle401Error;
15
- getRequestWithHeaders(req: HttpRequest<any>): HttpRequest<any>;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
18
- }
@@ -1,11 +0,0 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Injector } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class LicenseInterceptor implements HttpInterceptor {
6
- private injector;
7
- constructor(injector: Injector);
8
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<LicenseInterceptor, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<LicenseInterceptor>;
11
- }
@@ -1,58 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Configuration for Doohbot API integration
4
- */
5
- export interface DoohbotApiConfig {
6
- /**
7
- * Backend API endpoint URL
8
- * Example: 'https://api.example.com/chat'
9
- */
10
- apiUrl: string;
11
- /**
12
- * Optional API key for authentication
13
- */
14
- apiKey?: string;
15
- /**
16
- * Request timeout in milliseconds
17
- * @default 30000 (30 seconds)
18
- */
19
- timeout?: number;
20
- /**
21
- * Enable API mode (true) or use local intent matching (false)
22
- * @default false
23
- */
24
- enableApi?: boolean;
25
- /**
26
- * Include message history in API requests
27
- * @default false
28
- */
29
- includeHistory?: boolean;
30
- /**
31
- * Maximum number of history messages to include in requests
32
- * @default 10
33
- */
34
- maxHistoryMessages?: number;
35
- /**
36
- * Custom headers to include in API requests
37
- */
38
- customHeaders?: Record<string, string>;
39
- /**
40
- * Enable retry on failure
41
- * @default true
42
- */
43
- enableRetry?: boolean;
44
- /**
45
- * Number of retry attempts
46
- * @default 2
47
- */
48
- retryAttempts?: number;
49
- /**
50
- * Delay between retries in milliseconds
51
- * @default 1000
52
- */
53
- retryDelay?: number;
54
- }
55
- /**
56
- * Injection token for providing Doohbot API configuration
57
- */
58
- export declare const DOOHBOT_API_CONFIG: InjectionToken<DoohbotApiConfig>;
@@ -1,77 +0,0 @@
1
- import { PromptMode } from '../types/prompt-mode.type';
2
- import { Message } from './message';
3
- /**
4
- * Request payload for chat API
5
- */
6
- export interface ChatApiRequest {
7
- /**
8
- * User's message text
9
- */
10
- message: string;
11
- /**
12
- * Prompt mode
13
- */
14
- prompt_mode?: PromptMode;
15
- /**
16
- * Optional message history for context
17
- */
18
- history?: Message[];
19
- /**
20
- * Optional metadata
21
- */
22
- metadata?: Record<string, any>;
23
- /**
24
- * Timestamp of the request
25
- */
26
- timestamp?: string;
27
- }
28
- /**
29
- * Response from chat API
30
- */
31
- export interface ChatApiResponse {
32
- /**
33
- * Bot's reply message
34
- */
35
- reply: string;
36
- /**
37
- * Optional confidence score (0-1)
38
- */
39
- confidence?: number;
40
- /**
41
- * Whether to show suggestion chips
42
- */
43
- showSuggestions?: boolean;
44
- /**
45
- * Optional suggested responses
46
- */
47
- suggestions?: string[];
48
- /**
49
- * Optional metadata from the API
50
- */
51
- metadata?: Record<string, any>;
52
- /**
53
- * Optional message ID from the backend
54
- */
55
- messageId?: string;
56
- }
57
- /**
58
- * Error response from chat API
59
- */
60
- export interface ChatApiError {
61
- /**
62
- * Error message
63
- */
64
- message: string;
65
- /**
66
- * Error code
67
- */
68
- code?: string;
69
- /**
70
- * HTTP status code
71
- */
72
- statusCode?: number;
73
- /**
74
- * Additional error details
75
- */
76
- details?: any;
77
- }
@@ -1,6 +0,0 @@
1
- export declare class ApiResponse<T> {
2
- success: boolean;
3
- message: string;
4
- data?: T;
5
- constructor(success: boolean, message: string, data?: T);
6
- }
@@ -1,81 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { AuthMode } from '../types/auth-mode.type';
3
- import { TenantResolutionStrategy } from '../types/tenant-resolution-strategy.type';
4
- import { PromptMode } from '../types/prompt-mode.type';
5
- /**
6
- * Advanced configuration for DoohBot package
7
- * Supports both simple and complex use cases
8
- */
9
- export interface DoohbotAdvancedConfig {
10
- /**
11
- * Authentication mode
12
- * - 'manual': You provide platformTenant, subTenant, agent manually
13
- * - 'auto': Package reads from your auth service via resolver
14
- * @default 'manual'
15
- */
16
- authMode?: AuthMode;
17
- /**
18
- * Tenant resolution strategy
19
- * - 'static': Use fixed values provided via inputs
20
- * - 'dynamic': Automatically update when auth state changes
21
- * - 'callback': Use custom resolver function
22
- * @default 'static'
23
- */
24
- tenantResolution?: TenantResolutionStrategy;
25
- /**
26
- * Auto-configure from localStorage key
27
- * If provided, package will read auth data from localStorage
28
- * Example: 'auth_user' or 'saas_session'
29
- */
30
- autoConfigFromStorage?: string;
31
- /**
32
- * Enable multi-tenant mode
33
- * Allows switching between different tenant contexts
34
- * @default false
35
- */
36
- enableMultiTenant?: boolean;
37
- /**
38
- * Persist chat history per tenant
39
- * @default true
40
- */
41
- persistChatPerTenant?: boolean;
42
- /**
43
- * Custom authentication header name
44
- * @default 'Authorization'
45
- */
46
- authHeaderName?: string;
47
- /**
48
- * Custom authentication header format
49
- * Use {token} as placeholder
50
- * @default 'Bearer {token}'
51
- */
52
- authHeaderFormat?: string;
53
- /**
54
- * Enable role-based features
55
- * Shows/hides features based on user permissions
56
- * @default false
57
- */
58
- enableRoleBasedFeatures?: boolean;
59
- /**
60
- * User permissions (for role-based features)
61
- */
62
- userPermissions?: string[];
63
- /**
64
- * Callback when authentication fails
65
- */
66
- onAuthFailure?: (error: any) => void;
67
- /**
68
- * Enable debug mode (logs configuration and requests)
69
- * @default false
70
- */
71
- debugMode?: boolean;
72
- /**
73
- * Prompt mode for chat responses
74
- * @default 'markdown'
75
- */
76
- promptMode?: PromptMode;
77
- }
78
- /**
79
- * Injection token for advanced configuration
80
- */
81
- export declare const DOOHBOT_ADVANCED_CONFIG: InjectionToken<DoohbotAdvancedConfig>;
@@ -1,23 +0,0 @@
1
- export interface LicensingContext {
2
- tenantId: string;
3
- principalId: string;
4
- roles?: string[];
5
- }
6
- export interface LicensePackage {
7
- [packageId: string]: string;
8
- }
9
- export interface SubjectLicense {
10
- subjectType: 'user' | 'role' | 'tenant';
11
- subjectId: string;
12
- packages: LicensePackage;
13
- }
14
- export interface LicenseFileContent {
15
- accountId: string;
16
- issuedBy: string;
17
- issuedAt: string;
18
- licenses: SubjectLicense[];
19
- }
20
- export interface LicenseRegistry {
21
- accountId: string;
22
- subjectLicenses: Map<string, LicensePackage>;
23
- }
@@ -1,16 +0,0 @@
1
- import { MessageRole } from '../types/message-role.type';
2
- export interface Message {
3
- id: string;
4
- sender: MessageRole;
5
- senderName?: string;
6
- text: string;
7
- chunks?: string[];
8
- timestamp?: Date;
9
- showSuggestions?: boolean;
10
- platformTenant?: string;
11
- subTenant?: string;
12
- agent?: string;
13
- completed: boolean | true;
14
- isHistory: boolean | true;
15
- copied?: boolean;
16
- }
@@ -1,28 +0,0 @@
1
- export interface DoohbotThemeConfig {
2
- fontFamily?: string;
3
- primaryColor?: string;
4
- secondaryColor?: string;
5
- backgroundColor?: string;
6
- chatInputColor?: string;
7
- textAltColor?: string;
8
- textColor?: string;
9
- secondaryTextColor?: string;
10
- hintTextColor?: string;
11
- buttonColor?: string;
12
- userMessageColor?: string;
13
- botMessageColor?: string;
14
- userTextColor?: string;
15
- botTextColor?: string;
16
- borderColor?: string;
17
- borderShadowColor?: string;
18
- borderTopColor?: string;
19
- typingIndicatorColor?: string;
20
- white?: string;
21
- black?: string;
22
- grey?: string;
23
- red?: string;
24
- yellow?: string;
25
- orange?: string;
26
- green?: string;
27
- blue?: string;
28
- }
@@ -1,23 +0,0 @@
1
- import { DoohbotInput } from '../../doohbot-input';
2
- import * as i0 from "@angular/core";
3
- export declare class CoreConfigService {
4
- private configSignal;
5
- config$: import("@angular/core").Signal<DoohbotInput>;
6
- /**
7
- * Updates the global library configuration
8
- */
9
- updateConfig(config: DoohbotInput): void;
10
- /**
11
- * Dynamic getters for common config properties
12
- */
13
- get apiUrl(): string;
14
- get storageKey(): string;
15
- get secretKey(): string;
16
- get companyCode(): string;
17
- get tenancyName(): string;
18
- get licenseKey(): string;
19
- get licenseFilePath(): string;
20
- get rememberMe(): boolean;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<CoreConfigService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<CoreConfigService>;
23
- }
@@ -1,33 +0,0 @@
1
- import { LicensingContext } from '../models/license.model';
2
- import * as i0 from "@angular/core";
3
- export declare class LicenseService {
4
- private http;
5
- private coreConfig;
6
- private registry;
7
- /**
8
- * Load the license configuration from a JSON file.
9
- * Supports both Hierarchical (entitlements) and Flat-map (package:key) formats.
10
- * @param filePath Path to the license JSON file
11
- */
12
- loadLicenseFile(filePath?: string): Promise<void>;
13
- private processHierarchicalLicense;
14
- private processFlatMapLicense;
15
- /**
16
- * Resolve the correct license key based on context and requested package
17
- * @param context The current licensing context (tenant, user, roles)
18
- * @param packageId The ID of the package requesting a license
19
- * @returns The resolved license key, or null if unauthorized
20
- */
21
- resolveLicenseKey(context: LicensingContext, packageId: string): string | null;
22
- private resolveFromRegistry;
23
- /**
24
- * Resolves the license key for the current tenant.
25
- */
26
- resolveTenantLicenseKey(tenancyName?: string): string | null;
27
- /**
28
- * Check if a registry is currently loaded
29
- */
30
- isRegistryLoaded(): boolean;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<LicenseService, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<LicenseService>;
33
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class MarkdownService {
3
- constructor();
4
- convert(markdown: string): string;
5
- private escapeHtml;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<MarkdownService>;
8
- }
@@ -1,40 +0,0 @@
1
- import { OnDestroy, RendererFactory2 } from '@angular/core';
2
- import { OverlayContainer } from '@angular/cdk/overlay';
3
- import { DoohbotThemeConfig } from '../models/theme-config.model';
4
- import { PersonalizationService } from '../../app/personalization/personalization.service';
5
- import * as i0 from "@angular/core";
6
- export type ThemeMode = 'light' | 'dark' | 'auto';
7
- export declare class ThemeService implements OnDestroy {
8
- private overlay;
9
- private personalization;
10
- private renderer;
11
- private _theme;
12
- theme: import("@angular/core").Signal<ThemeMode>;
13
- private _activeTheme;
14
- activeTheme: import("@angular/core").Signal<"light-theme" | "dark-theme">;
15
- private observer;
16
- constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer, personalization: PersonalizationService);
17
- private _currentConfig;
18
- private rootElement;
19
- setThemeConfig(config: DoohbotThemeConfig, rootElement: HTMLElement): void;
20
- applyPrimaryColorToGlobal(colorInput: string): void;
21
- /**
22
- * Simple luminance-based contrast calculation
23
- * Returns #ffffff for dark colors and #000000 for light colors
24
- */
25
- private getContrastColor;
26
- setTheme(mode: ThemeMode): void;
27
- private updateActiveTheme;
28
- private handleAutoTheme;
29
- private detectAndApplyParentTheme;
30
- private isParentDark;
31
- private applyThemeToGlobal;
32
- private cleanupObservers;
33
- ngOnDestroy(): void;
34
- /**
35
- * @deprecated Manual CSS variable application is now handled via theme.css tokens
36
- */
37
- applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
39
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
40
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Authentication mode for the chatbot
3
- */
4
- export type AuthMode = 'manual' | 'auto';
@@ -1,4 +0,0 @@
1
- /**
2
- * Authentication status
3
- */
4
- export type AuthStatus = 'authenticated' | 'unauthenticated' | 'expired';
@@ -1,4 +0,0 @@
1
- /**
2
- * Chat stream type
3
- */
4
- export type ChatStream = 'chunk' | 'complete' | 'error';
@@ -1,4 +0,0 @@
1
- /**
2
- * Message role types for chat messages
3
- */
4
- export type MessageRole = 'user' | 'assistant';
@@ -1,4 +0,0 @@
1
- /**
2
- * Prompt mode
3
- */
4
- export type PromptMode = 'markdown' | 'plain';
@@ -1,4 +0,0 @@
1
- /**
2
- * Error types for snackbar
3
- */
4
- export type SnackBarError = 'warn' | 'error' | 'success' | 'info';
@@ -1,4 +0,0 @@
1
- /**
2
- * Tenant resolution strategy
3
- */
4
- export type TenantResolutionStrategy = 'static' | 'dynamic' | 'callback';
@@ -1,11 +0,0 @@
1
- declare class Logger {
2
- private static prefix;
3
- private static styles;
4
- private static canLog;
5
- static log(message: string, ...args: any[]): void;
6
- static info(message: string, ...args: any[]): void;
7
- static warn(message: string, ...args: any[]): void;
8
- static error(message: string, ...args: any[]): void;
9
- static debug(message: string, ...args: any[]): void;
10
- }
11
- export default Logger;
@@ -1,19 +0,0 @@
1
- export declare class DoohbotInput {
2
- username: string;
3
- password: string;
4
- rememberMe?: boolean;
5
- authToken?: string;
6
- license?: string;
7
- licenseCode?: string;
8
- licenseKey?: string;
9
- licenseFilePath?: string;
10
- apiBaseUrl?: string;
11
- apiSegment?: string;
12
- tenancyName?: string;
13
- storageKey?: string;
14
- secretKey?: string;
15
- companyCode?: string;
16
- buttonStyle?: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
17
- primaryColor?: string;
18
- accentColor?: string;
19
- }
@@ -1,108 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
- import { LoginRequest } from './core/auth/models/login-request.model';
3
- import { DoohbotInput } from './doohbot-input';
4
- import { DoohbotApiConfig } from './core/models/api-config.model';
5
- import { DoohbotThemeConfig } from './core/models/theme-config.model';
6
- import { FullscreenDirective } from './core/directives/fullscreen/fullscreen.directive';
7
- import { ChatSession } from './app/chat/model/chat-session.model';
8
- import { AuthStatus } from './core/types/auth-status.type';
9
- import * as i0 from "@angular/core";
10
- export declare class Doohbot extends DoohbotInput implements OnInit, OnDestroy {
11
- private elementRef;
12
- private renderer;
13
- config: DoohbotInput;
14
- buttonStyle?: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
15
- enableDrag: boolean;
16
- enableResize: boolean;
17
- apiConfig?: DoohbotApiConfig;
18
- themeConfig: DoohbotThemeConfig | undefined;
19
- private chatHistory;
20
- private uiState;
21
- private themeService;
22
- private authService;
23
- private chatService;
24
- private dialogService;
25
- private snackbarService;
26
- private personalization;
27
- private licenseService;
28
- isChatOpen: import("@angular/core").WritableSignal<boolean>;
29
- isHistorySidebarOpen: import("@angular/core").WritableSignal<boolean>;
30
- isFullScreen: import("@angular/core").WritableSignal<boolean>;
31
- unreadCount: import("@angular/core").Signal<number>;
32
- messages: import("@angular/core").WritableSignal<import("./core/models/message").Message[]>;
33
- isBotTyping: import("@angular/core").WritableSignal<boolean>;
34
- isStreaming: import("@angular/core").WritableSignal<boolean>;
35
- messageError: import("@angular/core").Signal<string | null>;
36
- showSuggestionChips: import("@angular/core").Signal<boolean>;
37
- chatSessions: import("@angular/core").WritableSignal<ChatSession[]>;
38
- hasMoreHistory: import("@angular/core").WritableSignal<boolean>;
39
- isLoadingMore: import("@angular/core").WritableSignal<boolean>;
40
- isLoadingSessions: import("@angular/core").WritableSignal<boolean>;
41
- processingSessionId: import("@angular/core").WritableSignal<string | null>;
42
- isLoggingIn: import("@angular/core").WritableSignal<boolean>;
43
- authError: import("@angular/core").WritableSignal<string | null>;
44
- authSuccess: import("@angular/core").WritableSignal<string | null>;
45
- activeButtonStyle: import("@angular/core").Signal<"fab" | "sidebar" | "sidebar-top" | "sidebar-bottom">;
46
- userName: string;
47
- predefinedMessages: string[];
48
- suggestedMessages: string[];
49
- maxMessageLength: number;
50
- readonly DoohbotConst: {
51
- appTitle: string;
52
- appSubtitle: string;
53
- welcomeDescription: string;
54
- hintText: string;
55
- errorMessage: string;
56
- appLogo: string;
57
- appTextLogo: string;
58
- appHeaderLogo: string;
59
- userAvatar: string;
60
- botAvatar: string;
61
- };
62
- private contextCleanup?;
63
- authStatus: import("@angular/core").WritableSignal<AuthStatus>;
64
- isAuthenticated: import("@angular/core").WritableSignal<boolean>;
65
- chatWindowRef: ElementRef;
66
- fullscreenDirective: FullscreenDirective;
67
- constructor(elementRef: ElementRef, renderer: Renderer2);
68
- ngOnInit(): Promise<void>;
69
- private canAttemptFederatedLogin;
70
- private initializeUI;
71
- ngOnChanges(changes: SimpleChanges): void;
72
- onNormalLogin(credentials: LoginRequest): void;
73
- onFederatedLogin(token?: string): Promise<void>;
74
- performLogout(): void;
75
- toggleChat(): void;
76
- sendMessage(text: string): Promise<void>;
77
- onStopRequest(): void;
78
- clearChat(): void;
79
- clearMessageError(): void;
80
- toggleHistorySidebar(): void;
81
- loadChatSession(session: ChatSession): void;
82
- deleteSession(sessionId: string): void;
83
- deleteAllSessions(): void;
84
- renameSession(event: {
85
- sessionId: string;
86
- newTitle: string;
87
- }): void;
88
- private loadUserSessions;
89
- /**
90
- * Load more sessions for infinite scroll
91
- */
92
- loadMoreHistory(): void;
93
- /**
94
- * Manually refresh history
95
- */
96
- refreshHistory(): void;
97
- toggleFullScreen(): void;
98
- trackByMessageId(index: number, item: any): string;
99
- /**
100
- * Resolve and update the username from all available sources
101
- */
102
- private updateUserName;
103
- userAvatarUrl(): string;
104
- ngOnDestroy(): void;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, {}, never, never, true, never>;
107
- }
108
- export declare function initializeApp(): Promise<any>;
@@ -1,2 +0,0 @@
1
- export declare const PredefinedMessages: string[];
2
- export declare const SuggestedMessages: string[];
@@ -1,10 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class Chips {
4
- messages: string[];
5
- disabled: boolean;
6
- chipClick: EventEmitter<string>;
7
- onChipClick(msg: string): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<Chips, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<Chips, "app-chips", never, { "messages": { "alias": "messages"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "chipClick": "chipClick"; }, never, never, true, never>;
10
- }
@@ -1,19 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import * as i0 from "@angular/core";
3
- export interface DialogData {
4
- title: string;
5
- message: string;
6
- confirmText?: string;
7
- cancelText?: string;
8
- confirmButtonColor?: 'primary' | 'accent' | 'warn';
9
- icon?: string;
10
- }
11
- export declare class DialogComponent {
12
- dialogRef: MatDialogRef<DialogComponent>;
13
- data: DialogData;
14
- constructor(dialogRef: MatDialogRef<DialogComponent>, data: DialogData);
15
- onCancel(): void;
16
- onConfirm(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never, true, never>;
19
- }