@aakash58/chatbot 1.1.19 → 1.1.21

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 (351) hide show
  1. package/.editorconfig +17 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +41 -0
  4. package/.vscode/settings.json +14 -0
  5. package/.vscode/tasks.json +60 -0
  6. package/README.md +298 -22
  7. package/angular.json +132 -0
  8. package/docs/PUBLISHING_GUIDE.md +104 -0
  9. package/package.json +75 -29
  10. package/projects/app-doohbot/public/assets/const/app-const.json +15 -0
  11. package/projects/app-doohbot/public/assets/const/doohclick_license.json +6 -0
  12. package/projects/app-doohbot/public/favicon.ico +0 -0
  13. package/projects/app-doohbot/src/app/app.config.ts +13 -0
  14. package/projects/app-doohbot/src/app/app.html +31 -0
  15. package/projects/app-doohbot/src/app/app.routes.ts +3 -0
  16. package/projects/app-doohbot/src/app/app.scss +279 -0
  17. package/projects/app-doohbot/src/app/app.spec.ts +23 -0
  18. package/projects/app-doohbot/src/app/app.ts +72 -0
  19. package/projects/app-doohbot/src/index.html +15 -0
  20. package/projects/app-doohbot/src/main.ts +6 -0
  21. package/projects/app-doohbot/src/styles.scss +15 -0
  22. package/projects/app-doohbot/tsconfig.app.json +15 -0
  23. package/projects/app-doohbot/tsconfig.spec.json +14 -0
  24. package/projects/doohbot/README.md +64 -0
  25. package/projects/doohbot/docs/README.md +140 -0
  26. package/projects/doohbot/ng-package.json +10 -0
  27. package/projects/doohbot/package.json +16 -0
  28. package/projects/doohbot/src/lib/app/chat/chat-ui-state.service.ts +194 -0
  29. package/projects/doohbot/src/lib/app/chat/chat.service.ts +547 -0
  30. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.html +27 -0
  31. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.scss +115 -0
  32. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.ts +35 -0
  33. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.html +3 -0
  34. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +20 -0
  35. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.ts +12 -0
  36. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.html +34 -0
  37. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.scss +78 -0
  38. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.ts +52 -0
  39. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.html +77 -0
  40. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.scss +346 -0
  41. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.ts +188 -0
  42. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.html +146 -0
  43. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.scss +187 -0
  44. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.ts +256 -0
  45. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.html +17 -0
  46. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.scss +59 -0
  47. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.ts +28 -0
  48. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.html +138 -0
  49. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.scss +436 -0
  50. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.ts +106 -0
  51. package/projects/doohbot/src/lib/app/chat/model/chat-history.model.ts +57 -0
  52. package/projects/doohbot/src/lib/app/chat/model/chat-request.model.ts +17 -0
  53. package/projects/doohbot/src/lib/app/chat/model/chat-response.model.ts +9 -0
  54. package/projects/doohbot/src/lib/app/chat/model/chat-session.model.ts +14 -0
  55. package/{lib/app/chat/model/chat-stream-message.model.d.ts → projects/doohbot/src/lib/app/chat/model/chat-stream-message.model.ts} +6 -5
  56. package/projects/doohbot/src/lib/app/chat/model/chat-stream-response.model.ts +12 -0
  57. package/projects/doohbot/src/lib/app/chat/services/chat-api.service.ts +82 -0
  58. package/projects/doohbot/src/lib/app/chat/services/chat-audio.service.ts +44 -0
  59. package/projects/doohbot/src/lib/app/chat/services/chat-history.service.ts +303 -0
  60. package/projects/doohbot/src/lib/app/login/login-form.component.html +80 -0
  61. package/projects/doohbot/src/lib/app/login/login-form.component.scss +189 -0
  62. package/projects/doohbot/src/lib/app/login/login-form.component.ts +45 -0
  63. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.html +81 -0
  64. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.scss +179 -0
  65. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.ts +217 -0
  66. package/projects/doohbot/src/lib/app/personalization/personalization.service.ts +197 -0
  67. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.html +111 -0
  68. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.scss +218 -0
  69. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.ts +121 -0
  70. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.html +46 -0
  71. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.scss +138 -0
  72. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.ts +28 -0
  73. package/projects/doohbot/src/lib/app/personalization/sections/preferences/color-picker-dialog.component.ts +92 -0
  74. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.html +198 -0
  75. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +107 -0
  76. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.ts +103 -0
  77. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.html +46 -0
  78. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.scss +131 -0
  79. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.ts +23 -0
  80. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.html +33 -0
  81. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.scss +61 -0
  82. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.ts +20 -0
  83. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.html +30 -0
  84. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.scss +59 -0
  85. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.ts +12 -0
  86. package/projects/doohbot/src/lib/constant/doohbot-constant.ts +40 -0
  87. package/projects/doohbot/src/lib/constant/html-entities.ts +8 -0
  88. package/projects/doohbot/src/lib/constant/utf8.ts +9 -0
  89. package/projects/doohbot/src/lib/core/app-const.ts +63 -0
  90. package/projects/doohbot/src/lib/core/auth/account-api.service.ts +53 -0
  91. package/projects/doohbot/src/lib/core/auth/auth.service.ts +478 -0
  92. package/projects/doohbot/src/lib/core/auth/models/auth-result.model.ts +4 -0
  93. package/projects/doohbot/src/lib/core/auth/models/federated-login-request.model.ts +5 -0
  94. package/projects/doohbot/src/lib/core/auth/models/login-request.model.ts +6 -0
  95. package/projects/doohbot/src/lib/core/auth/storage.service.ts +113 -0
  96. package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.directive.ts +123 -0
  97. package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.module.ts +9 -0
  98. package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.directive.ts +58 -0
  99. package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.module.ts +9 -0
  100. package/projects/doohbot/src/lib/core/directives/popout/popout.directive.ts +169 -0
  101. package/projects/doohbot/src/lib/core/directives/popout/popout.module.ts +9 -0
  102. package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.directive.ts +197 -0
  103. package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.module.ts +9 -0
  104. package/projects/doohbot/src/lib/core/enums/api-request-state.enum.ts +9 -0
  105. package/projects/doohbot/src/lib/core/environments/environment.prod.ts +14 -0
  106. package/projects/doohbot/src/lib/core/environments/environment.ts +14 -0
  107. package/projects/doohbot/src/lib/core/helpers/crypto-helper.service.ts +72 -0
  108. package/projects/doohbot/src/lib/core/http/http-stream.service.ts +105 -0
  109. package/projects/doohbot/src/lib/core/http/http.service.ts +148 -0
  110. package/projects/doohbot/src/lib/core/interceptors/auth.interceptor.ts +118 -0
  111. package/projects/doohbot/src/lib/core/interceptors/license.interceptor.ts +50 -0
  112. package/projects/doohbot/src/lib/core/models/api-config.model.ts +82 -0
  113. package/projects/doohbot/src/lib/core/models/api-request.model.ts +92 -0
  114. package/projects/doohbot/src/lib/core/models/api-response.model.ts +13 -0
  115. package/projects/doohbot/src/lib/core/models/doohbot-config.model.ts +109 -0
  116. package/{lib/core/models/license.model.d.ts → projects/doohbot/src/lib/core/models/license.model.ts} +27 -23
  117. package/projects/doohbot/src/lib/core/models/message.ts +18 -0
  118. package/projects/doohbot/src/lib/core/models/theme-config.model.ts +48 -0
  119. package/projects/doohbot/src/lib/core/services/core-config.service.ts +53 -0
  120. package/projects/doohbot/src/lib/core/services/doohbot-api.service.ts +207 -0
  121. package/projects/doohbot/src/lib/core/services/license.service.ts +171 -0
  122. package/projects/doohbot/src/lib/core/services/markdown.service.ts +73 -0
  123. package/projects/doohbot/src/lib/core/services/theme.service.ts +305 -0
  124. package/{lib/core/types/auth-mode.type.d.ts → projects/doohbot/src/lib/core/types/auth-mode.type.ts} +4 -4
  125. package/{lib/core/types/auth-status.type.d.ts → projects/doohbot/src/lib/core/types/auth-status.type.ts} +5 -4
  126. package/{lib/core/types/chat-stream.type.d.ts → projects/doohbot/src/lib/core/types/chat-stream.type.ts} +4 -4
  127. package/{lib/core/types/message-role.type.d.ts → projects/doohbot/src/lib/core/types/message-role.type.ts} +4 -4
  128. package/{lib/core/types/prompt-mode.type.d.ts → projects/doohbot/src/lib/core/types/prompt-mode.type.ts} +5 -4
  129. package/{lib/core/types/snackbar-error.type.d.ts → projects/doohbot/src/lib/core/types/snackbar-error.type.ts} +5 -4
  130. package/{lib/core/types/tenant-resolution-strategy.type.d.ts → projects/doohbot/src/lib/core/types/tenant-resolution-strategy.type.ts} +4 -4
  131. package/projects/doohbot/src/lib/core/utils/error-handler.util.ts +31 -0
  132. package/projects/doohbot/src/lib/core/utils/logger.service.ts +45 -0
  133. package/projects/doohbot/src/lib/doohbot-input.ts +19 -0
  134. package/projects/doohbot/src/lib/doohbot.component.html +34 -0
  135. package/projects/doohbot/src/lib/doohbot.component.scss +17 -0
  136. package/projects/doohbot/src/lib/doohbot.component.spec.ts +31 -0
  137. package/projects/doohbot/src/lib/doohbot.component.ts +545 -0
  138. package/projects/doohbot/src/lib/elements.ts +25 -0
  139. package/projects/doohbot/src/lib/predefined_messages.ts +14 -0
  140. package/projects/doohbot/src/lib/shared/chips/chips.component.html +9 -0
  141. package/projects/doohbot/src/lib/shared/chips/chips.component.scss +29 -0
  142. package/projects/doohbot/src/lib/shared/chips/chips.component.spec.ts +22 -0
  143. package/projects/doohbot/src/lib/shared/chips/chips.component.ts +20 -0
  144. package/projects/doohbot/src/lib/shared/dialog/dialog.component.html +29 -0
  145. package/projects/doohbot/src/lib/shared/dialog/dialog.component.scss +100 -0
  146. package/projects/doohbot/src/lib/shared/dialog/dialog.component.ts +42 -0
  147. package/projects/doohbot/src/lib/shared/dialog/dialog.service.ts +62 -0
  148. package/projects/doohbot/src/lib/shared/dialog/dialog.utils.ts +102 -0
  149. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.html +30 -0
  150. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +53 -0
  151. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.spec.ts +22 -0
  152. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.ts +35 -0
  153. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.html +16 -0
  154. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.scss +45 -0
  155. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.ts +46 -0
  156. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.html +5 -0
  157. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.scss +0 -0
  158. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.spec.ts +22 -0
  159. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.ts +20 -0
  160. package/projects/doohbot/src/lib/shared/pipes/simple-markdown.pipe.ts +19 -0
  161. package/projects/doohbot/src/lib/shared/popout/popout.html +1 -0
  162. package/projects/doohbot/src/lib/shared/popout/popout.scss +0 -0
  163. package/projects/doohbot/src/lib/shared/popout/popout.spec.ts +23 -0
  164. package/projects/doohbot/src/lib/shared/popout/popout.ts +11 -0
  165. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.html +7 -0
  166. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.scss +125 -0
  167. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.spec.ts +21 -0
  168. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.ts +44 -0
  169. package/projects/doohbot/src/lib/shared/snackbar/snackbar.service.ts +54 -0
  170. package/{lib/shared/snackbar/snackbar.utils.d.ts → projects/doohbot/src/lib/shared/snackbar/snackbar.utils.ts} +49 -33
  171. package/projects/doohbot/src/lib/styles/_theme.scss +132 -0
  172. package/projects/doohbot/src/lib/styles/material-override.scss +302 -0
  173. package/projects/doohbot/src/lib/styles/utility.scss +588 -0
  174. package/projects/doohbot/src/public-api.ts +42 -0
  175. package/projects/doohbot/tsconfig.lib.json +15 -0
  176. package/projects/doohbot/tsconfig.lib.prod.json +11 -0
  177. package/projects/doohbot/tsconfig.spec.json +10 -0
  178. package/proxy.conf.json +8 -0
  179. package/publish.config.js +25 -0
  180. package/scripts/publishing/index.ts +67 -0
  181. package/scripts/publishing/pipeline/01-clean.ts +11 -0
  182. package/scripts/publishing/pipeline/02-validate-pre.ts +8 -0
  183. package/scripts/publishing/pipeline/03-build.ts +7 -0
  184. package/scripts/publishing/pipeline/04-validate-post.ts +8 -0
  185. package/scripts/publishing/pipeline/05-prepare-package.ts +29 -0
  186. package/scripts/publishing/pipeline/06-version.ts +23 -0
  187. package/scripts/publishing/pipeline/07-publish.ts +14 -0
  188. package/scripts/publishing/pipeline/08-cleanup.ts +5 -0
  189. package/scripts/publishing/types.ts +36 -0
  190. package/scripts/publishing/utils/command.ts +15 -0
  191. package/scripts/publishing/utils/config.ts +17 -0
  192. package/scripts/validate.ts +166 -0
  193. package/tsconfig.json +45 -0
  194. package/tsconfig.scripts.json +15 -0
  195. package/esm2022/aakash58-chatbot.mjs +0 -5
  196. package/esm2022/lib/app/chat/chat-ui-state.service.mjs +0 -170
  197. package/esm2022/lib/app/chat/chat.service.mjs +0 -445
  198. package/esm2022/lib/app/chat/components/chat-button/chat-button.component.mjs +0 -50
  199. package/esm2022/lib/app/chat/components/chat-footer/chat-footer.component.mjs +0 -12
  200. package/esm2022/lib/app/chat/components/chat-header/chat-header.component.mjs +0 -66
  201. package/esm2022/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.mjs +0 -186
  202. package/esm2022/lib/app/chat/components/chat-window/chat-window.component.mjs +0 -312
  203. package/esm2022/lib/app/chat/components/message-input/message-input.component.mjs +0 -36
  204. package/esm2022/lib/app/chat/components/message-list/message-list.component.mjs +0 -115
  205. package/esm2022/lib/app/chat/model/chat-history.model.mjs +0 -2
  206. package/esm2022/lib/app/chat/model/chat-request.model.mjs +0 -2
  207. package/esm2022/lib/app/chat/model/chat-response.model.mjs +0 -2
  208. package/esm2022/lib/app/chat/model/chat-session.model.mjs +0 -2
  209. package/esm2022/lib/app/chat/model/chat-stream-message.model.mjs +0 -2
  210. package/esm2022/lib/app/chat/model/chat-stream-response.model.mjs +0 -2
  211. package/esm2022/lib/app/chat/services/chat-api.service.mjs +0 -61
  212. package/esm2022/lib/app/chat/services/chat-audio.service.mjs +0 -50
  213. package/esm2022/lib/app/chat/services/chat-history.service.mjs +0 -252
  214. package/esm2022/lib/app/login/login-form.component.mjs +0 -46
  215. package/esm2022/lib/app/personalization/personalization-dialog.component.mjs +0 -194
  216. package/esm2022/lib/app/personalization/personalization.service.mjs +0 -149
  217. package/esm2022/lib/app/personalization/sections/account/account-section.component.mjs +0 -122
  218. package/esm2022/lib/app/personalization/sections/preferences/color-picker-dialog.component.mjs +0 -86
  219. package/esm2022/lib/app/personalization/sections/preferences/preferences-section.component.mjs +0 -115
  220. package/esm2022/lib/app/personalization/sections/profile/profile-section.component.mjs +0 -29
  221. package/esm2022/lib/app/personalization/sections/settings/setting-section.component.mjs +0 -30
  222. package/esm2022/lib/app/personalization/sections/terms/terms-section.component.mjs +0 -12
  223. package/esm2022/lib/constant/doohbot-constant.mjs +0 -28
  224. package/esm2022/lib/constant/html-entities.mjs +0 -9
  225. package/esm2022/lib/constant/utf8.mjs +0 -10
  226. package/esm2022/lib/core/app-const.mjs +0 -61
  227. package/esm2022/lib/core/auth/account-api.service.mjs +0 -40
  228. package/esm2022/lib/core/auth/auth.service.mjs +0 -391
  229. package/esm2022/lib/core/auth/models/auth-result.model.mjs +0 -3
  230. package/esm2022/lib/core/auth/models/federated-login-request.model.mjs +0 -6
  231. package/esm2022/lib/core/auth/models/login-request.model.mjs +0 -6
  232. package/esm2022/lib/core/auth/storage.service.mjs +0 -110
  233. package/esm2022/lib/core/directives/draggable/draggable-dialog.directive.mjs +0 -112
  234. package/esm2022/lib/core/directives/fullscreen/fullscreen.directive.mjs +0 -55
  235. package/esm2022/lib/core/directives/resizable/resizable-dialog.directive.mjs +0 -179
  236. package/esm2022/lib/core/environments/environment.mjs +0 -15
  237. package/esm2022/lib/core/environments/environment.prod.mjs +0 -15
  238. package/esm2022/lib/core/helpers/crypto-helper.service.mjs +0 -52
  239. package/esm2022/lib/core/http/http-stream.service.mjs +0 -97
  240. package/esm2022/lib/core/http/http.service.mjs +0 -103
  241. package/esm2022/lib/core/interceptors/auth.interceptor.mjs +0 -96
  242. package/esm2022/lib/core/interceptors/license.interceptor.mjs +0 -44
  243. package/esm2022/lib/core/models/api-config.model.mjs +0 -18
  244. package/esm2022/lib/core/models/api-request.model.mjs +0 -2
  245. package/esm2022/lib/core/models/api-response.model.mjs +0 -8
  246. package/esm2022/lib/core/models/doohbot-config.model.mjs +0 -18
  247. package/esm2022/lib/core/models/license.model.mjs +0 -2
  248. package/esm2022/lib/core/models/message.mjs +0 -2
  249. package/esm2022/lib/core/models/theme-config.model.mjs +0 -2
  250. package/esm2022/lib/core/services/core-config.service.mjs +0 -52
  251. package/esm2022/lib/core/services/license.service.mjs +0 -145
  252. package/esm2022/lib/core/services/markdown.service.mjs +0 -64
  253. package/esm2022/lib/core/services/theme.service.mjs +0 -248
  254. package/esm2022/lib/core/types/auth-mode.type.mjs +0 -2
  255. package/esm2022/lib/core/types/auth-status.type.mjs +0 -5
  256. package/esm2022/lib/core/types/chat-stream.type.mjs +0 -2
  257. package/esm2022/lib/core/types/message-role.type.mjs +0 -2
  258. package/esm2022/lib/core/types/prompt-mode.type.mjs +0 -5
  259. package/esm2022/lib/core/types/snackbar-error.type.mjs +0 -5
  260. package/esm2022/lib/core/types/tenant-resolution-strategy.type.mjs +0 -2
  261. package/esm2022/lib/core/utils/logger.service.mjs +0 -42
  262. package/esm2022/lib/doohbot-input.mjs +0 -20
  263. package/esm2022/lib/doohbot.component.mjs +0 -444
  264. package/esm2022/lib/predefined_messages.mjs +0 -15
  265. package/esm2022/lib/shared/chips/chips.component.mjs +0 -28
  266. package/esm2022/lib/shared/dialog/dialog.component.mjs +0 -36
  267. package/esm2022/lib/shared/dialog/dialog.service.mjs +0 -64
  268. package/esm2022/lib/shared/dialog/dialog.utils.mjs +0 -85
  269. package/esm2022/lib/shared/dropdown-menu/dropdown-menu.component.mjs +0 -29
  270. package/esm2022/lib/shared/input-dialog/input-dialog.component.mjs +0 -38
  271. package/esm2022/lib/shared/menu-item/menu-item.component.mjs +0 -24
  272. package/esm2022/lib/shared/pipes/simple-markdown.pipe.mjs +0 -27
  273. package/esm2022/lib/shared/snackbar/snackbar.component.mjs +0 -43
  274. package/esm2022/lib/shared/snackbar/snackbar.service.mjs +0 -46
  275. package/esm2022/lib/shared/snackbar/snackbar.utils.mjs +0 -43
  276. package/esm2022/public-api.mjs +0 -37
  277. package/fesm2022/aakash58-chatbot.mjs +0 -5193
  278. package/fesm2022/aakash58-chatbot.mjs.map +0 -1
  279. package/index.d.ts +0 -5
  280. package/lib/app/chat/chat-ui-state.service.d.ts +0 -96
  281. package/lib/app/chat/chat.service.d.ts +0 -88
  282. package/lib/app/chat/components/chat-button/chat-button.component.d.ts +0 -16
  283. package/lib/app/chat/components/chat-footer/chat-footer.component.d.ts +0 -5
  284. package/lib/app/chat/components/chat-header/chat-header.component.d.ts +0 -24
  285. package/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.d.ts +0 -49
  286. package/lib/app/chat/components/chat-window/chat-window.component.d.ts +0 -107
  287. package/lib/app/chat/components/message-input/message-input.component.d.ts +0 -12
  288. package/lib/app/chat/components/message-list/message-list.component.d.ts +0 -40
  289. package/lib/app/chat/model/chat-history.model.d.ts +0 -51
  290. package/lib/app/chat/model/chat-request.model.d.ts +0 -10
  291. package/lib/app/chat/model/chat-response.model.d.ts +0 -9
  292. package/lib/app/chat/model/chat-session.model.d.ts +0 -12
  293. package/lib/app/chat/model/chat-stream-response.model.d.ts +0 -10
  294. package/lib/app/chat/services/chat-api.service.d.ts +0 -30
  295. package/lib/app/chat/services/chat-audio.service.d.ts +0 -19
  296. package/lib/app/chat/services/chat-history.service.d.ts +0 -53
  297. package/lib/app/login/login-form.component.d.ts +0 -20
  298. package/lib/app/personalization/personalization-dialog.component.d.ts +0 -53
  299. package/lib/app/personalization/personalization.service.d.ts +0 -66
  300. package/lib/app/personalization/sections/account/account-section.component.d.ts +0 -30
  301. package/lib/app/personalization/sections/preferences/color-picker-dialog.component.d.ts +0 -17
  302. package/lib/app/personalization/sections/preferences/preferences-section.component.d.ts +0 -27
  303. package/lib/app/personalization/sections/profile/profile-section.component.d.ts +0 -17
  304. package/lib/app/personalization/sections/settings/setting-section.component.d.ts +0 -10
  305. package/lib/app/personalization/sections/terms/terms-section.component.d.ts +0 -5
  306. package/lib/constant/doohbot-constant.d.ts +0 -12
  307. package/lib/constant/html-entities.d.ts +0 -8
  308. package/lib/constant/utf8.d.ts +0 -9
  309. package/lib/core/app-const.d.ts +0 -11
  310. package/lib/core/auth/account-api.service.d.ts +0 -20
  311. package/lib/core/auth/auth.service.d.ts +0 -90
  312. package/lib/core/auth/models/auth-result.model.d.ts +0 -4
  313. package/lib/core/auth/models/federated-login-request.model.d.ts +0 -5
  314. package/lib/core/auth/models/login-request.model.d.ts +0 -6
  315. package/lib/core/auth/storage.service.d.ts +0 -21
  316. package/lib/core/directives/draggable/draggable-dialog.directive.d.ts +0 -23
  317. package/lib/core/directives/fullscreen/fullscreen.directive.d.ts +0 -14
  318. package/lib/core/directives/resizable/resizable-dialog.directive.d.ts +0 -30
  319. package/lib/core/environments/environment.d.ts +0 -7
  320. package/lib/core/environments/environment.prod.d.ts +0 -7
  321. package/lib/core/helpers/crypto-helper.service.d.ts +0 -12
  322. package/lib/core/http/http-stream.service.d.ts +0 -18
  323. package/lib/core/http/http.service.d.ts +0 -20
  324. package/lib/core/interceptors/auth.interceptor.d.ts +0 -18
  325. package/lib/core/interceptors/license.interceptor.d.ts +0 -11
  326. package/lib/core/models/api-config.model.d.ts +0 -58
  327. package/lib/core/models/api-request.model.d.ts +0 -77
  328. package/lib/core/models/api-response.model.d.ts +0 -6
  329. package/lib/core/models/doohbot-config.model.d.ts +0 -81
  330. package/lib/core/models/message.d.ts +0 -16
  331. package/lib/core/models/theme-config.model.d.ts +0 -28
  332. package/lib/core/services/core-config.service.d.ts +0 -23
  333. package/lib/core/services/license.service.d.ts +0 -33
  334. package/lib/core/services/markdown.service.d.ts +0 -8
  335. package/lib/core/services/theme.service.d.ts +0 -40
  336. package/lib/core/utils/logger.service.d.ts +0 -11
  337. package/lib/doohbot-input.d.ts +0 -19
  338. package/lib/doohbot.component.d.ts +0 -108
  339. package/lib/predefined_messages.d.ts +0 -2
  340. package/lib/shared/chips/chips.component.d.ts +0 -10
  341. package/lib/shared/dialog/dialog.component.d.ts +0 -19
  342. package/lib/shared/dialog/dialog.service.d.ts +0 -29
  343. package/lib/shared/dialog/dialog.utils.d.ts +0 -41
  344. package/lib/shared/dropdown-menu/dropdown-menu.component.d.ts +0 -11
  345. package/lib/shared/input-dialog/input-dialog.component.d.ts +0 -20
  346. package/lib/shared/menu-item/menu-item.component.d.ts +0 -9
  347. package/lib/shared/pipes/simple-markdown.pipe.d.ts +0 -10
  348. package/lib/shared/snackbar/snackbar.component.d.ts +0 -14
  349. package/lib/shared/snackbar/snackbar.service.d.ts +0 -19
  350. package/public-api.d.ts +0 -11
  351. /package/{src → projects/doohbot/src}/assets/bot.mp3 +0 -0
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@aakash58/chatbot" />
5
- export * from './public-api';
@@ -1,96 +0,0 @@
1
- import { Signal } from '@angular/core';
2
- import { Message } from '../../core/models/message';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * ChatUIStateService - Centralized UI state management
6
- *
7
- * Manages all UI-related state for the chat component including:
8
- * - Chat window open/close state
9
- * - History sidebar visibility
10
- * - Unread message tracking
11
- * - Fullscreen state
12
- *
13
- * This service uses Angular signals for reactive state management,
14
- * allowing components to subscribe to state changes efficiently.
15
- */
16
- export declare class ChatUIStateService {
17
- /**
18
- * Whether the chat window is currently open
19
- */
20
- isChatOpen: import("@angular/core").WritableSignal<boolean>;
21
- /**
22
- * Whether the history sidebar is currently open
23
- */
24
- isHistorySidebarOpen: import("@angular/core").WritableSignal<boolean>;
25
- /**
26
- * Whether the chat is in fullscreen mode
27
- */
28
- isFullScreen: import("@angular/core").WritableSignal<boolean>;
29
- /**
30
- * ID of the last message that was read by the user
31
- */
32
- private lastReadMessageId;
33
- /**
34
- * Reference to current messages (injected from outside)
35
- */
36
- private messagesSignal;
37
- /**
38
- * Computed number of unread bot messages
39
- */
40
- unreadCount: Signal<number>;
41
- /**
42
- * Effect to automatically mark messages as read when chat is opened
43
- */
44
- markAsReadEffect: import("@angular/core").EffectRef;
45
- /**
46
- * Set the messages signal reference from an external source
47
- * This allows the UI state service to track messages from MessageService
48
- */
49
- setMessagesSignal(messagesSignal: Signal<Message[]>): void;
50
- /**
51
- * Toggle the chat window open/close state
52
- */
53
- toggleChat(): void;
54
- /**
55
- * Toggle the history sidebar open/close state
56
- */
57
- toggleHistorySidebar(): void;
58
- /**
59
- * Close the chat window
60
- */
61
- closeChat(): void;
62
- /**
63
- * Open the chat window
64
- */
65
- openChat(): void;
66
- /**
67
- * Close the history sidebar
68
- */
69
- closeHistorySidebar(): void;
70
- /**
71
- * Open the history sidebar
72
- */
73
- openHistorySidebar(): void;
74
- /**
75
- * Toggle fullscreen mode
76
- */
77
- toggleFullscreen(): void;
78
- /**
79
- * Set fullscreen state
80
- */
81
- setFullscreen(isFullscreen: boolean): void;
82
- /**
83
- * Manually mark messages as read up to a specific message ID
84
- */
85
- markMessagesAsRead(messageId: string): void;
86
- /**
87
- * Reset last read message ID
88
- */
89
- resetLastRead(): void;
90
- /**
91
- * Get the last read message ID
92
- */
93
- getLastReadMessageId(): string | null;
94
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatUIStateService, never>;
95
- static ɵprov: i0.ɵɵInjectableDeclaration<ChatUIStateService>;
96
- }
@@ -1,88 +0,0 @@
1
- import { ChatSession } from './model/chat-session.model';
2
- import { ChatApiError } from '../../core/models/api-request.model';
3
- import { Message } from '../../core/models/message';
4
- import { PromptMode } from '../../core/types/prompt-mode.type';
5
- import { ChatStreamMessage } from './model/chat-stream-message.model';
6
- import * as i0 from "@angular/core";
7
- export declare class ChatService {
8
- private apiService;
9
- private authService;
10
- private audioService;
11
- private config;
12
- private chatHistoryService;
13
- private chatUIStateService;
14
- private personalization;
15
- private chatSessions;
16
- messages: import("@angular/core").WritableSignal<Message[]>;
17
- /**
18
- * Determine if suggestion chips should be shown
19
- */
20
- showSuggestionChips: import("@angular/core").Signal<boolean>;
21
- private activeSession;
22
- isLoadingApi: import("@angular/core").WritableSignal<boolean>;
23
- apiError: import("@angular/core").WritableSignal<ChatApiError | null>;
24
- isBotTyping: import("@angular/core").WritableSignal<boolean>;
25
- promptMode: import("@angular/core").WritableSignal<PromptMode>;
26
- isStreaming: import("@angular/core").WritableSignal<boolean>;
27
- messagesStream: Array<ChatStreamMessage>;
28
- currentResponse: string;
29
- private streamSubscription?;
30
- private cancelSubject;
31
- getFallbackReply(): string;
32
- getFallbackError(): string;
33
- constructor();
34
- /**
35
- * Generate a unique session ID
36
- */
37
- private generateSessionId;
38
- /**
39
- * Create a new chat session
40
- */
41
- createSession(userId: string): ChatSession;
42
- /**
43
- * Start a new chat session
44
- */
45
- startNewSession(): void;
46
- /**
47
- * Load an existing session
48
- */
49
- loadSession(session: ChatSession): void;
50
- /**
51
- * Get active session
52
- */
53
- getActiveSession(): ChatSession | null;
54
- /**
55
- * Clear messages for current session and start new one
56
- */
57
- clearMessages(): void;
58
- /**
59
- * Add message to current session
60
- */
61
- addMessage(message: Message): void;
62
- /**
63
- * Continue a chat session
64
- */
65
- continueSession(sessionId: string): void;
66
- /**
67
- * Process a user message: add it, get bot reply, and add bot reply
68
- */
69
- sendMessage(text: string, maxLength?: number): Promise<void>;
70
- getBotReply(userText: string): Promise<string>;
71
- /**
72
- * Builds a chat request payload with the given user text and optional active session
73
- * @param {string} userInput - The text provided by the user
74
- * @returns {ChatRequest} - A chat request payload with the user text and optional active session
75
- * @memberof ChatService
76
- */
77
- private buildChatRequest;
78
- private ask;
79
- private stream;
80
- cancelRequest(): void;
81
- unlockAudio(): void;
82
- /**
83
- * Map local placeholder session ID to backend-generated ID
84
- */
85
- private mapSessionId;
86
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatService, never>;
87
- static ɵprov: i0.ɵɵInjectableDeclaration<ChatService>;
88
- }
@@ -1,16 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ChatButtonComponent {
4
- buttonStyle: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
5
- isChatOpen: boolean;
6
- unreadCount: number;
7
- appTitle: string;
8
- appLogoUrl: string;
9
- appTextLogoUrl: string;
10
- toggle: EventEmitter<void>;
11
- get isSidebar(): boolean;
12
- get sidebarPosition(): 'top' | 'center' | 'bottom';
13
- onToggle(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatButtonComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatButtonComponent, "app-chat-button", never, { "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "isChatOpen": { "alias": "isChatOpen"; "required": false; }; "unreadCount": { "alias": "unreadCount"; "required": false; }; "appTitle": { "alias": "appTitle"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appTextLogoUrl": { "alias": "appTextLogoUrl"; "required": false; }; }, { "toggle": "toggle"; }, never, never, true, never>;
16
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ChatFooterComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatFooterComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatFooterComponent, "app-chat-footer", never, {}, {}, never, never, true, never>;
5
- }
@@ -1,24 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { ThemeService } from '../../../../core/services/theme.service';
3
- import { ChatService } from '../../chat.service';
4
- import * as i0 from "@angular/core";
5
- export declare class ChatHeaderComponent {
6
- appHeaderLogoUrl: string;
7
- isAuthenticated: boolean;
8
- isFullScreen: boolean;
9
- settingsMenu: any;
10
- isNewChatDisabled: boolean;
11
- toggleChat: EventEmitter<void>;
12
- toggleFullScreen: EventEmitter<void>;
13
- toggleHistorySidebar: EventEmitter<void>;
14
- clearChat: EventEmitter<void>;
15
- themeService: ThemeService;
16
- chatService: ChatService;
17
- private uiState;
18
- onToggleChat(): void;
19
- onToggleHistorySidebar(): void;
20
- onToggleFullScreen(): void;
21
- onStartNewConversation(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatHeaderComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatHeaderComponent, "app-chat-header", never, { "appHeaderLogoUrl": { "alias": "appHeaderLogoUrl"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "isFullScreen": { "alias": "isFullScreen"; "required": false; }; "settingsMenu": { "alias": "settingsMenu"; "required": false; }; "isNewChatDisabled": { "alias": "isNewChatDisabled"; "required": false; }; }, { "toggleChat": "toggleChat"; "toggleFullScreen": "toggleFullScreen"; "toggleHistorySidebar": "toggleHistorySidebar"; "clearChat": "clearChat"; }, never, never, true, never>;
24
- }
@@ -1,49 +0,0 @@
1
- import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
- import { DialogService } from '../../../../shared/dialog/dialog.service';
3
- import { ChatSession, ChatSessionGroup } from '../../model/chat-session.model';
4
- import * as i0 from "@angular/core";
5
- export declare class ChatHistorySidebarComponent implements OnInit, OnChanges {
6
- private dialogService;
7
- sessions: ChatSession[];
8
- isOpen: boolean;
9
- userName: string;
10
- isLoading: boolean;
11
- hasMoreSessions: boolean;
12
- isLoadingMore: boolean;
13
- processingSessionId: string | null;
14
- sessionSelected: EventEmitter<ChatSession>;
15
- sessionDeleted: EventEmitter<string>;
16
- closed: EventEmitter<void>;
17
- loadMore: EventEmitter<void>;
18
- refresh: EventEmitter<void>;
19
- sessionRenamed: EventEmitter<{
20
- sessionId: string;
21
- newTitle: string;
22
- }>;
23
- deleteAll: EventEmitter<void>;
24
- chatHistory: ChatSessionGroup[];
25
- constructor(dialogService: DialogService);
26
- ngOnInit(): void;
27
- ngOnChanges(changes: SimpleChanges): void;
28
- groupedSessions(): ChatSessionGroup[];
29
- onSessionClick(session: ChatSession): void;
30
- onEditClick(event: Event, session: ChatSession): void;
31
- onDeleteClick(event: Event, sessionId: string): void;
32
- onClose(): void;
33
- formatTime(date: Date): string;
34
- formatDate(date: Date): string;
35
- /**
36
- * Handle scroll event for infinite scroll
37
- */
38
- onScroll(event: Event): void;
39
- /**
40
- * Handle manual refresh
41
- */
42
- onRefresh(): void;
43
- /**
44
- * Handle clear all history
45
- */
46
- onClearAllClick(): void;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatHistorySidebarComponent, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatHistorySidebarComponent, "app-chat-history-sidebar", never, { "sessions": { "alias": "sessions"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "hasMoreSessions": { "alias": "hasMoreSessions"; "required": false; }; "isLoadingMore": { "alias": "isLoadingMore"; "required": false; }; "processingSessionId": { "alias": "processingSessionId"; "required": false; }; }, { "sessionSelected": "sessionSelected"; "sessionDeleted": "sessionDeleted"; "closed": "closed"; "loadMore": "loadMore"; "refresh": "refresh"; "sessionRenamed": "sessionRenamed"; "deleteAll": "deleteAll"; }, never, never, true, never>;
49
- }
@@ -1,107 +0,0 @@
1
- import { EventEmitter, TrackByFunction, OnDestroy, OnInit, SimpleChanges, OnChanges } from '@angular/core';
2
- import { AuthService } from '../../../../core/auth/auth.service';
3
- import { Message } from '../../../../core/models/message';
4
- import { DoohbotThemeConfig } from '../../../../core/models/theme-config.model';
5
- import { ThemeService } from '../../../../core/services/theme.service';
6
- import { ChatSession } from '../../model/chat-session.model';
7
- import * as i0 from "@angular/core";
8
- export declare class ChatWindowComponent implements OnInit, OnDestroy, OnChanges {
9
- isChatOpen: boolean;
10
- enableDrag: boolean;
11
- enableResize: boolean;
12
- isFullScreen: boolean;
13
- isStreaming: boolean;
14
- isAuthenticated: boolean;
15
- appTitle: string;
16
- appLogoUrl: string;
17
- appTextLogoUrl: string;
18
- appHeaderLogoUrl: string;
19
- messages: Message[];
20
- isBotTyping: boolean;
21
- appSubtitle: string;
22
- welcomeDesc: string;
23
- predefinedMessages: string[];
24
- suggestedMessages: string[];
25
- botAvatarUrl: string;
26
- userAvatarUrl: string;
27
- userName: string;
28
- trackByMessageId: TrackByFunction<Message>;
29
- hintText: string;
30
- messageError: string | null;
31
- showSuggestionChips: boolean;
32
- isHistorySidebarOpen: boolean;
33
- chatSessions: ChatSession[];
34
- chatHistoryUserName: string;
35
- isLoggingIn: boolean;
36
- authError: string | null;
37
- authSuccess: string | null;
38
- isLoadingSessions: boolean;
39
- hasMoreSessions: boolean;
40
- isLoadingMoreSessions: boolean;
41
- processingSessionId: string | null;
42
- themeConfig: DoohbotThemeConfig | undefined;
43
- buttonStyle: string;
44
- toggleChat: EventEmitter<void>;
45
- toggleFullScreen: EventEmitter<void>;
46
- toggleHistorySidebar: EventEmitter<void>;
47
- openSettings: EventEmitter<void>;
48
- suggestionClick: EventEmitter<string>;
49
- send: EventEmitter<string>;
50
- stop: EventEmitter<void>;
51
- clearMessageError: EventEmitter<void>;
52
- clearChat: EventEmitter<void>;
53
- sessionSelected: EventEmitter<ChatSession>;
54
- sessionDeleted: EventEmitter<string>;
55
- loadMoreSessions: EventEmitter<void>;
56
- refreshSessions: EventEmitter<void>;
57
- sessionRenamed: EventEmitter<{
58
- sessionId: string;
59
- newTitle: string;
60
- }>;
61
- deleteAllSessions: EventEmitter<void>;
62
- loginSubmit: EventEmitter<{
63
- username: string;
64
- password: string;
65
- rememberMe: boolean;
66
- }>;
67
- logout: EventEmitter<void>;
68
- themeService: ThemeService;
69
- authService: AuthService;
70
- private dialog;
71
- showLoginForm: boolean;
72
- get canDrag(): boolean;
73
- get canResize(): boolean;
74
- constructor();
75
- onToggleChat(): void;
76
- onToggleHistorySidebar(): void;
77
- onLoginClick(): void;
78
- onLoginSubmit(credentials: {
79
- username: string;
80
- password: string;
81
- rememberMe: boolean;
82
- }): void;
83
- onCancelLogin(): void;
84
- onToggleFullScreen(): void;
85
- onOpenSettings(): void;
86
- onOpenPersonalization(): void;
87
- onSuggestionClick(text: string): void;
88
- onSend(text: string): void;
89
- onStop(): void;
90
- onClearMessageError(): void;
91
- onClearAuthError(): void;
92
- onClearChat(): void;
93
- onLogout(): void;
94
- onSessionSelected(session: ChatSession): void;
95
- onSessionDeleted(sessionId: string): void;
96
- onSessionRenamed(event: {
97
- sessionId: string;
98
- newTitle: string;
99
- }): void;
100
- onDeleteAllSessions(): void;
101
- onPopoutShown(win: Window): void;
102
- ngOnInit(): void;
103
- ngOnChanges(changes: SimpleChanges): void;
104
- ngOnDestroy(): void;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatWindowComponent, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatWindowComponent, "app-chat-window", never, { "isChatOpen": { "alias": "isChatOpen"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "isFullScreen": { "alias": "isFullScreen"; "required": false; }; "isStreaming": { "alias": "isStreaming"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "appTitle": { "alias": "appTitle"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appTextLogoUrl": { "alias": "appTextLogoUrl"; "required": false; }; "appHeaderLogoUrl": { "alias": "appHeaderLogoUrl"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "welcomeDesc": { "alias": "welcomeDesc"; "required": false; }; "predefinedMessages": { "alias": "predefinedMessages"; "required": false; }; "suggestedMessages": { "alias": "suggestedMessages"; "required": false; }; "botAvatarUrl": { "alias": "botAvatarUrl"; "required": false; }; "userAvatarUrl": { "alias": "userAvatarUrl"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "trackByMessageId": { "alias": "trackByMessageId"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "messageError": { "alias": "messageError"; "required": false; }; "showSuggestionChips": { "alias": "showSuggestionChips"; "required": false; }; "isHistorySidebarOpen": { "alias": "isHistorySidebarOpen"; "required": false; }; "chatSessions": { "alias": "chatSessions"; "required": false; }; "chatHistoryUserName": { "alias": "chatHistoryUserName"; "required": false; }; "isLoggingIn": { "alias": "isLoggingIn"; "required": false; }; "authError": { "alias": "authError"; "required": false; }; "authSuccess": { "alias": "authSuccess"; "required": false; }; "isLoadingSessions": { "alias": "isLoadingSessions"; "required": false; }; "hasMoreSessions": { "alias": "hasMoreSessions"; "required": false; }; "isLoadingMoreSessions": { "alias": "isLoadingMoreSessions"; "required": false; }; "processingSessionId": { "alias": "processingSessionId"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; }, { "toggleChat": "toggleChat"; "toggleFullScreen": "toggleFullScreen"; "toggleHistorySidebar": "toggleHistorySidebar"; "openSettings": "openSettings"; "suggestionClick": "suggestionClick"; "send": "send"; "stop": "stop"; "clearMessageError": "clearMessageError"; "clearChat": "clearChat"; "sessionSelected": "sessionSelected"; "sessionDeleted": "sessionDeleted"; "loadMoreSessions": "loadMoreSessions"; "refreshSessions": "refreshSessions"; "sessionRenamed": "sessionRenamed"; "deleteAllSessions": "deleteAllSessions"; "loginSubmit": "loginSubmit"; "logout": "logout"; }, never, never, true, never>;
107
- }
@@ -1,12 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class MessageInputComponent {
4
- isBotTyping: boolean;
5
- hintText: string;
6
- send: EventEmitter<string>;
7
- stop: EventEmitter<void>;
8
- onSend(text: string): void;
9
- onStop(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "app-message-input", never, { "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; }, { "send": "send"; "stop": "stop"; }, never, never, true, never>;
12
- }
@@ -1,40 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, TrackByFunction } from '@angular/core';
2
- import { Message } from '../../../../core/models/message';
3
- import * as i0 from "@angular/core";
4
- export declare class MessageListComponent implements AfterViewInit, OnDestroy {
5
- private cdr;
6
- messages: Message[];
7
- isBotTyping: boolean;
8
- isStreaming: boolean;
9
- appLogoUrl: string;
10
- appSubtitle: string;
11
- welcomeDesc: string;
12
- predefinedMessages: string[];
13
- botAvatarUrl: string;
14
- userAvatarUrl: string;
15
- userName: string;
16
- isAuthenticated: boolean;
17
- isLoggingIn: boolean;
18
- trackByMessageId: TrackByFunction<Message>;
19
- suggestionClick: EventEmitter<string>;
20
- loginClick: EventEmitter<void>;
21
- private chatMessagesContainer;
22
- private mutationObserver;
23
- appEmoji: {
24
- waveHand: string;
25
- robotFace: string;
26
- partyPopper: string;
27
- thinkingFace: string;
28
- thumbsUp: string;
29
- thumbsDown: string;
30
- redHeart: string;
31
- };
32
- constructor(cdr: ChangeDetectorRef);
33
- ngAfterViewInit(): void;
34
- private scrollToBottom;
35
- onPredefinedClick(text: string): void;
36
- copyMessage(message: Message): void;
37
- ngOnDestroy(): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "app-message-list", never, { "messages": { "alias": "messages"; "required": false; }; "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "isStreaming": { "alias": "isStreaming"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "welcomeDesc": { "alias": "welcomeDesc"; "required": false; }; "predefinedMessages": { "alias": "predefinedMessages"; "required": false; }; "botAvatarUrl": { "alias": "botAvatarUrl"; "required": false; }; "userAvatarUrl": { "alias": "userAvatarUrl"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "isLoggingIn": { "alias": "isLoggingIn"; "required": false; }; "trackByMessageId": { "alias": "trackByMessageId"; "required": false; }; }, { "suggestionClick": "suggestionClick"; "loginClick": "loginClick"; }, never, never, true, never>;
40
- }
@@ -1,51 +0,0 @@
1
- import { MessageRole } from '../../../core/types/message-role.type';
2
- /**
3
- * Chat History Request Model
4
- */
5
- export interface ChatHistoryRequest {
6
- limit: number;
7
- offset: number;
8
- }
9
- /**
10
- * Chat Message from API
11
- */
12
- export interface ChatMessage {
13
- message_id?: string;
14
- role: MessageRole;
15
- content: string;
16
- model_name: string | null;
17
- prompt_tokens: number | null;
18
- completion_tokens: number | null;
19
- created_at: string;
20
- }
21
- /**
22
- * Chat Session from API
23
- */
24
- export interface ChatSessionResponse {
25
- response_id: string;
26
- title: string;
27
- last_message_at: string;
28
- chat_session_id?: string;
29
- is_active?: boolean;
30
- created_at?: string;
31
- updated_at?: string;
32
- messages?: ChatMessage[];
33
- }
34
- /**
35
- * Chat History Data from API
36
- */
37
- export interface ChatHistoryData {
38
- sessions: ChatSessionResponse[];
39
- total: number;
40
- limit: number;
41
- offset: number;
42
- }
43
- /**
44
- * Chat History API Response
45
- */
46
- export interface ChatHistoryResponse {
47
- success: boolean;
48
- message: string;
49
- data: ChatHistoryData;
50
- timestamp: string;
51
- }
@@ -1,10 +0,0 @@
1
- import { PromptMode } from '../../../core/types/prompt-mode.type';
2
- export interface ChatRequest {
3
- question: string;
4
- temperature?: number;
5
- max_tokens?: number;
6
- prompt_mode?: PromptMode;
7
- organization_id: string;
8
- response_id?: string;
9
- custom_instructions?: string;
10
- }
@@ -1,9 +0,0 @@
1
- export interface ChatResponse {
2
- id: string;
3
- content: string;
4
- created_at: string;
5
- isComplete: boolean;
6
- sources: any[];
7
- error?: any;
8
- response_id?: string;
9
- }
@@ -1,12 +0,0 @@
1
- import { Message } from '../../../core/models/message';
2
- export interface ChatSession {
3
- id: string;
4
- timestamp: Date;
5
- title: string;
6
- messages: Message[];
7
- userId: string;
8
- }
9
- export interface ChatSessionGroup {
10
- label: string;
11
- sessions: ChatSession[];
12
- }
@@ -1,10 +0,0 @@
1
- import { ChatStream } from '../../../core/types/chat-stream.type';
2
- export interface ChatStreamResponse {
3
- id: string;
4
- type: ChatStream;
5
- content: string;
6
- error?: any;
7
- created_at: string;
8
- sources: any[];
9
- response_id?: string;
10
- }
@@ -1,30 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ChatHistoryData, ChatHistoryRequest, ChatMessage } from '../model/chat-history.model';
3
- import { HttpStreamService } from '../../../core/http/http-stream.service';
4
- import { HttpService } from '../../../core/http/http.service';
5
- import { ApiResponse } from '../../../core/models/api-response.model';
6
- import { ChatRequest } from '../model/chat-request.model';
7
- import { ChatResponse } from '../model/chat-response.model';
8
- import { ChatStreamResponse } from '../model/chat-stream-response.model';
9
- import * as i0 from "@angular/core";
10
- export declare class ChatApiService {
11
- private http;
12
- private httpStreamService;
13
- get apiUrl(): string;
14
- constructor(http: HttpService, httpStreamService: HttpStreamService);
15
- /**
16
- * Send chat message and get full response
17
- */
18
- sendMessage(request?: ChatRequest, showLoader?: boolean): Observable<ApiResponse<ChatResponse>>;
19
- /**
20
- * Send chat message and get streaming response
21
- */
22
- sendMessageStream(request: ChatRequest): Observable<ChatStreamResponse>;
23
- getChatHistory(request: ChatHistoryRequest, showLoader?: boolean): Observable<ApiResponse<ChatHistoryData>>;
24
- getChatSession(chatSessionId: string, showLoader?: boolean): Observable<ApiResponse<ChatMessage[]>>;
25
- deleteChatSession(chatSessionId: string, showLoader?: boolean): Observable<ApiResponse<void>>;
26
- updateChatTitle(chatSessionId: string, title: string, showLoader?: boolean): Observable<ApiResponse<void>>;
27
- clearChatHistory(request?: object, showLoader?: boolean): Observable<ApiResponse<void>>;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatApiService, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<ChatApiService>;
30
- }
@@ -1,19 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ChatAudioService {
3
- private audioUnlocked;
4
- constructor();
5
- /**
6
- * Unlock audio playback (required for autoplay in browsers)
7
- */
8
- unlockAudio(): void;
9
- /**
10
- * Play bot message sound
11
- */
12
- playBotSound(): void;
13
- /**
14
- * Check if audio is unlocked
15
- */
16
- isAudioUnlocked(): boolean;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatAudioService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<ChatAudioService>;
19
- }
@@ -1,53 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ChatSession } from '../model/chat-session.model';
3
- import { Message } from '../../../core/models/message';
4
- import { ChatSessionResponse } from '../model/chat-history.model';
5
- import * as i0 from "@angular/core";
6
- export declare class ChatHistoryService {
7
- private chatApiService;
8
- sessions: import("@angular/core").WritableSignal<ChatSession[]>;
9
- isLoading: import("@angular/core").WritableSignal<boolean>;
10
- isLoadingMore: import("@angular/core").WritableSignal<boolean>;
11
- hasMore: import("@angular/core").WritableSignal<boolean>;
12
- historyOffset: import("@angular/core").WritableSignal<number>;
13
- isCacheValid: import("@angular/core").WritableSignal<boolean>;
14
- processingSessionId: import("@angular/core").WritableSignal<string | null>;
15
- /**
16
- * Map API session response to ChatSession model
17
- */
18
- mapSessionResponseToSession(sessionResponse: ChatSessionResponse, userId: string): ChatSession;
19
- /**
20
- * Load all chat sessions for a specific user
21
- */
22
- loadSessions(userId: string, forceRefresh?: boolean): void;
23
- /**
24
- * Load more sessions for infinite scroll
25
- */
26
- loadMoreSessions(userId: string): void;
27
- /**
28
- * Load messages for a specific session
29
- */
30
- loadSessionMessages(sessionId: string): Observable<Message[]>;
31
- /**
32
- * Delete a specific session
33
- */
34
- deleteSession(sessionId: string, userId: string): Observable<void>;
35
- /**
36
- * Delete all history
37
- */
38
- deleteAllHistory(userId: string): Observable<void>;
39
- /**
40
- * Update session title
41
- */
42
- updateSessionTitle(sessionId: string, newTitle: string, userId: string): Observable<boolean>;
43
- /**
44
- * Invalidate cache
45
- */
46
- invalidateCache(): void;
47
- /**
48
- * Clear all history state
49
- */
50
- clearState(): void;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatHistoryService, never>;
52
- static ɵprov: i0.ɵɵInjectableDeclaration<ChatHistoryService>;
53
- }