@meistrari/chat-nuxt 2.0.0 → 3.1.0

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 (239) hide show
  1. package/README.md +7 -9
  2. package/dist/module.d.mts +3 -2
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +0 -39
  5. package/dist/runtime/conversations/components/chat-conversation-creator-filter.d.vue.ts +1 -1
  6. package/dist/runtime/conversations/components/chat-conversation-creator-filter.vue.d.ts +1 -1
  7. package/dist/runtime/conversations/components/chat-conversation-item.d.vue.ts +3 -3
  8. package/dist/runtime/conversations/components/chat-conversation-item.vue.d.ts +3 -3
  9. package/dist/runtime/conversations/components/chat-conversation-list.d.vue.ts +1 -1
  10. package/dist/runtime/conversations/components/chat-conversation-list.vue.d.ts +1 -1
  11. package/dist/runtime/conversations/components/chat-conversation-new-group-button.d.vue.ts +1 -1
  12. package/dist/runtime/conversations/components/chat-conversation-new-group-button.vue.d.ts +1 -1
  13. package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.d.vue.ts +4 -4
  14. package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.vue.d.ts +4 -4
  15. package/dist/runtime/conversations/components/chat-conversation-search.d.vue.ts +3 -3
  16. package/dist/runtime/conversations/components/chat-conversation-search.vue.d.ts +3 -3
  17. package/dist/runtime/conversations/components/chat-new-conversation-modal.d.vue.ts +23 -5
  18. package/dist/runtime/conversations/components/chat-new-conversation-modal.vue.d.ts +23 -5
  19. package/dist/runtime/conversations/composables/conversation-list.d.ts +58 -1
  20. package/dist/runtime/conversations/composables/conversations.d.ts +1 -4
  21. package/dist/runtime/conversations/composables/conversations.js +3 -6
  22. package/dist/runtime/embed/components/chat-configuration-modal.d.vue.ts +3 -3
  23. package/dist/runtime/embed/components/chat-configuration-modal.vue +59 -176
  24. package/dist/runtime/embed/components/chat-configuration-modal.vue.d.ts +3 -3
  25. package/dist/runtime/embed/components/chat-embed-inner.d.vue.ts +3 -3
  26. package/dist/runtime/embed/components/chat-embed-inner.vue +4 -35
  27. package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +3 -3
  28. package/dist/runtime/embed/components/chat-embed.d.vue.ts +6 -3
  29. package/dist/runtime/embed/components/chat-embed.vue +10 -2
  30. package/dist/runtime/embed/components/chat-embed.vue.d.ts +6 -3
  31. package/dist/runtime/embed/components/chat-topbar.d.vue.ts +5 -5
  32. package/dist/runtime/embed/components/chat-topbar.vue.d.ts +5 -5
  33. package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.d.vue.ts +13 -0
  34. package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.vue +167 -0
  35. package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.vue.d.ts +13 -0
  36. package/dist/runtime/embed/components/configuration/chat-configuration-credentials-tab.d.vue.ts +3 -3
  37. package/dist/runtime/embed/components/configuration/chat-configuration-credentials-tab.vue.d.ts +3 -3
  38. package/dist/runtime/embed/components/configuration/chat-configuration-knowledge-sources-tab.d.vue.ts +3 -3
  39. package/dist/runtime/embed/components/configuration/chat-configuration-knowledge-sources-tab.vue.d.ts +3 -3
  40. package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.d.vue.ts +3 -3
  41. package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.vue.d.ts +3 -3
  42. package/dist/runtime/embed/components/meistrari-chat-embed.vue +9 -1
  43. package/dist/runtime/embed/components/mobile/chat-mobile-bottom-sheet.d.vue.ts +3 -3
  44. package/dist/runtime/embed/components/mobile/chat-mobile-bottom-sheet.vue.d.ts +3 -3
  45. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.d.vue.ts +3 -3
  46. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue.d.ts +3 -3
  47. package/dist/runtime/embed/components/mobile/chat-mobile-file-preview.d.vue.ts +3 -3
  48. package/dist/runtime/embed/components/mobile/chat-mobile-file-preview.vue.d.ts +3 -3
  49. package/dist/runtime/embed/components/mobile/chat-mobile-files-view.d.vue.ts +3 -3
  50. package/dist/runtime/embed/components/mobile/chat-mobile-files-view.vue.d.ts +3 -3
  51. package/dist/runtime/embed/components/mobile/chat-mobile-header.d.vue.ts +5 -5
  52. package/dist/runtime/embed/components/mobile/chat-mobile-header.vue.d.ts +5 -5
  53. package/dist/runtime/embed/components/mobile/chat-mobile-home-header.d.vue.ts +3 -3
  54. package/dist/runtime/embed/components/mobile/chat-mobile-home-header.vue.d.ts +3 -3
  55. package/dist/runtime/embed/components/mobile/chat-mobile-home-recents.d.vue.ts +3 -3
  56. package/dist/runtime/embed/components/mobile/chat-mobile-home-recents.vue.d.ts +3 -3
  57. package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.d.vue.ts +3 -3
  58. package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.vue.d.ts +3 -3
  59. package/dist/runtime/embed/components/mobile/chat-mobile-info-bubble.d.vue.ts +1 -1
  60. package/dist/runtime/embed/components/mobile/chat-mobile-info-bubble.vue.d.ts +1 -1
  61. package/dist/runtime/embed/components/mobile/chat-mobile-outdated-settings-sheet.d.vue.ts +3 -3
  62. package/dist/runtime/embed/components/mobile/chat-mobile-outdated-settings-sheet.vue.d.ts +3 -3
  63. package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +41 -15
  64. package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue +2 -12
  65. package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +41 -15
  66. package/dist/runtime/embed/components/mobile/chat-mobile-usage-view.d.vue.ts +1 -1
  67. package/dist/runtime/embed/components/mobile/chat-mobile-usage-view.vue.d.ts +1 -1
  68. package/dist/runtime/embed/components/mobile/chat-mobile-workspace-sheet.d.vue.ts +3 -3
  69. package/dist/runtime/embed/components/mobile/chat-mobile-workspace-sheet.vue.d.ts +3 -3
  70. package/dist/runtime/embed/components/powered-by-tela.d.vue.ts +1 -1
  71. package/dist/runtime/embed/components/powered-by-tela.vue.d.ts +1 -1
  72. package/dist/runtime/embed/composables/embed-config.d.ts +6 -0
  73. package/dist/runtime/embed/composables/embed-config.js +11 -3
  74. package/dist/runtime/embed/feature-config.d.ts +0 -2
  75. package/dist/runtime/embed/feature-config.js +0 -1
  76. package/dist/runtime/embed/types.d.ts +14 -0
  77. package/dist/runtime/files/components/audio-preview.d.vue.ts +3 -3
  78. package/dist/runtime/files/components/audio-preview.vue.d.ts +3 -3
  79. package/dist/runtime/files/components/chat-file-preview.d.vue.ts +1 -1
  80. package/dist/runtime/files/components/chat-file-preview.vue.d.ts +1 -1
  81. package/dist/runtime/files/components/chat-files-view.d.vue.ts +1 -1
  82. package/dist/runtime/files/components/chat-files-view.vue.d.ts +1 -1
  83. package/dist/runtime/files/components/chat-vault-link.d.vue.ts +1 -1
  84. package/dist/runtime/files/components/chat-vault-link.vue.d.ts +1 -1
  85. package/dist/runtime/files/components/conversation-files-panel.d.vue.ts +1 -1
  86. package/dist/runtime/files/components/conversation-files-panel.vue.d.ts +1 -1
  87. package/dist/runtime/files/components/csv-preview.d.vue.ts +3 -3
  88. package/dist/runtime/files/components/csv-preview.vue.d.ts +3 -3
  89. package/dist/runtime/files/components/file-preview-panel.d.vue.ts +1 -1
  90. package/dist/runtime/files/components/file-preview-panel.vue.d.ts +1 -1
  91. package/dist/runtime/files/components/file-uploader.d.vue.ts +3 -3
  92. package/dist/runtime/files/components/file-uploader.vue.d.ts +3 -3
  93. package/dist/runtime/files/components/image-preview.d.vue.ts +3 -3
  94. package/dist/runtime/files/components/image-preview.vue.d.ts +3 -3
  95. package/dist/runtime/files/components/pdf-preview.client.d.vue.ts +3 -3
  96. package/dist/runtime/files/components/pdf-preview.client.vue.d.ts +3 -3
  97. package/dist/runtime/files/components/pdf-viewer.client.d.vue.ts +1 -1
  98. package/dist/runtime/files/components/pdf-viewer.client.vue.d.ts +1 -1
  99. package/dist/runtime/files/components/text-preview.d.vue.ts +3 -3
  100. package/dist/runtime/files/components/text-preview.vue.d.ts +3 -3
  101. package/dist/runtime/files/components/video-preview.d.vue.ts +3 -3
  102. package/dist/runtime/files/components/video-preview.vue.d.ts +3 -3
  103. package/dist/runtime/files/composables/pdf.d.ts +248 -27
  104. package/dist/runtime/files/file-limits.d.ts +2 -0
  105. package/dist/runtime/files/file-limits.js +2 -0
  106. package/dist/runtime/messages/components/chat-canvas-selector-modal.d.vue.ts +23 -5
  107. package/dist/runtime/messages/components/chat-canvas-selector-modal.vue.d.ts +23 -5
  108. package/dist/runtime/messages/components/chat-context-config.d.vue.ts +52 -10
  109. package/dist/runtime/messages/components/chat-context-config.vue +2 -2
  110. package/dist/runtime/messages/components/chat-context-config.vue.d.ts +52 -10
  111. package/dist/runtime/messages/components/chat-mention-dropdown.d.vue.ts +27 -5
  112. package/dist/runtime/messages/components/chat-mention-dropdown.vue.d.ts +27 -5
  113. package/dist/runtime/messages/components/chat-message-bubble.d.vue.ts +3 -3
  114. package/dist/runtime/messages/components/chat-message-bubble.vue +8 -4
  115. package/dist/runtime/messages/components/chat-message-bubble.vue.d.ts +3 -3
  116. package/dist/runtime/messages/components/chat-message-feedback.d.vue.ts +7 -0
  117. package/dist/runtime/messages/components/chat-message-feedback.vue +251 -0
  118. package/dist/runtime/messages/components/chat-message-feedback.vue.d.ts +7 -0
  119. package/dist/runtime/messages/components/chat-message-input.d.vue.ts +38 -16
  120. package/dist/runtime/messages/components/chat-message-input.vue +1 -8
  121. package/dist/runtime/messages/components/chat-message-input.vue.d.ts +38 -16
  122. package/dist/runtime/messages/components/chat-message-list.d.vue.ts +3 -3
  123. package/dist/runtime/messages/components/chat-message-list.vue.d.ts +3 -3
  124. package/dist/runtime/messages/components/chat-workstation-selector-modal.d.vue.ts +19 -5
  125. package/dist/runtime/messages/components/chat-workstation-selector-modal.vue.d.ts +19 -5
  126. package/dist/runtime/messages/components/reasoning/chat-reasoning-message.d.vue.ts +1 -1
  127. package/dist/runtime/messages/components/reasoning/chat-reasoning-message.vue.d.ts +1 -1
  128. package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.d.vue.ts +4 -4
  129. package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.vue.d.ts +4 -4
  130. package/dist/runtime/messages/components/reasoning/chat-reasoning-steps.d.vue.ts +2 -2
  131. package/dist/runtime/messages/components/reasoning/chat-reasoning-steps.vue.d.ts +2 -2
  132. package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.d.vue.ts +1 -1
  133. package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.vue.d.ts +1 -1
  134. package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.d.vue.ts +1 -1
  135. package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.vue.d.ts +1 -1
  136. package/dist/runtime/messages/components/widgets/chat-bash-widget.d.vue.ts +1 -1
  137. package/dist/runtime/messages/components/widgets/chat-bash-widget.vue.d.ts +1 -1
  138. package/dist/runtime/messages/components/widgets/chat-doc-sdk-widget.d.vue.ts +1 -1
  139. package/dist/runtime/messages/components/widgets/chat-doc-sdk-widget.vue.d.ts +1 -1
  140. package/dist/runtime/messages/components/widgets/chat-generic-tool-widget.d.vue.ts +1 -1
  141. package/dist/runtime/messages/components/widgets/chat-generic-tool-widget.vue.d.ts +1 -1
  142. package/dist/runtime/messages/components/widgets/chat-grep-widget.d.vue.ts +1 -1
  143. package/dist/runtime/messages/components/widgets/chat-grep-widget.vue.d.ts +1 -1
  144. package/dist/runtime/messages/components/widgets/chat-read-widget.d.vue.ts +1 -1
  145. package/dist/runtime/messages/components/widgets/chat-read-widget.vue.d.ts +1 -1
  146. package/dist/runtime/messages/components/widgets/chat-tela-skill-widget.d.vue.ts +1 -1
  147. package/dist/runtime/messages/components/widgets/chat-tela-skill-widget.vue.d.ts +1 -1
  148. package/dist/runtime/messages/components/widgets/chat-thinking-widget.d.vue.ts +1 -1
  149. package/dist/runtime/messages/components/widgets/chat-thinking-widget.vue.d.ts +1 -1
  150. package/dist/runtime/messages/components/widgets/chat-web-search-widget.d.vue.ts +1 -1
  151. package/dist/runtime/messages/components/widgets/chat-web-search-widget.vue.d.ts +1 -1
  152. package/dist/runtime/messages/components/widgets/chat-workstation-query-widget.d.vue.ts +1 -1
  153. package/dist/runtime/messages/components/widgets/chat-workstation-query-widget.vue.d.ts +1 -1
  154. package/dist/runtime/messages/components/widgets/chat-write-widget.d.vue.ts +1 -1
  155. package/dist/runtime/messages/components/widgets/chat-write-widget.vue.d.ts +1 -1
  156. package/dist/runtime/messages/composables/chat-feedback.d.ts +21 -0
  157. package/dist/runtime/messages/composables/chat-feedback.js +12 -0
  158. package/dist/runtime/messages/composables/chat.d.ts +1 -1
  159. package/dist/runtime/messages/composables/chat.js +37 -14
  160. package/dist/runtime/messages/message-state.d.ts +3 -0
  161. package/dist/runtime/messages/message-state.js +13 -0
  162. package/dist/runtime/rendering/components/app-markdown-render.d.vue.ts +2 -2
  163. package/dist/runtime/rendering/components/app-markdown-render.vue.d.ts +2 -2
  164. package/dist/runtime/rendering/components/renderers/artifact-display.d.vue.ts +3 -3
  165. package/dist/runtime/rendering/components/renderers/artifact-display.vue.d.ts +3 -3
  166. package/dist/runtime/rendering/components/renderers/audio-renderer.d.vue.ts +1 -1
  167. package/dist/runtime/rendering/components/renderers/audio-renderer.vue.d.ts +1 -1
  168. package/dist/runtime/rendering/components/renderers/csv-renderer.d.vue.ts +1 -1
  169. package/dist/runtime/rendering/components/renderers/csv-renderer.vue.d.ts +1 -1
  170. package/dist/runtime/rendering/components/renderers/image-renderer.d.vue.ts +1 -1
  171. package/dist/runtime/rendering/components/renderers/image-renderer.vue.d.ts +1 -1
  172. package/dist/runtime/rendering/components/renderers/markdown-renderer.d.vue.ts +1 -1
  173. package/dist/runtime/rendering/components/renderers/markdown-renderer.vue.d.ts +1 -1
  174. package/dist/runtime/rendering/components/renderers/mermaid-diagram.d.vue.ts +1 -1
  175. package/dist/runtime/rendering/components/renderers/mermaid-diagram.vue.d.ts +1 -1
  176. package/dist/runtime/rendering/components/renderers/text-renderer.d.vue.ts +1 -1
  177. package/dist/runtime/rendering/components/renderers/text-renderer.vue.d.ts +1 -1
  178. package/dist/runtime/rendering/components/renderers/video-renderer.d.vue.ts +1 -1
  179. package/dist/runtime/rendering/components/renderers/video-renderer.vue.d.ts +1 -1
  180. package/dist/runtime/shared/chat-api-error.d.ts +1 -0
  181. package/dist/runtime/shared/chat-api-error.js +5 -0
  182. package/dist/runtime/shared/components/app-status-toast.d.vue.ts +1 -1
  183. package/dist/runtime/shared/components/app-status-toast.vue.d.ts +1 -1
  184. package/dist/runtime/shared/components/icons/anthropic.d.vue.ts +1 -1
  185. package/dist/runtime/shared/components/icons/anthropic.vue.d.ts +1 -1
  186. package/dist/runtime/shared/components/icons/tela-chat.d.vue.ts +1 -1
  187. package/dist/runtime/shared/components/icons/tela-chat.vue.d.ts +1 -1
  188. package/dist/runtime/shared/components/icons/tela-wordmark.d.vue.ts +1 -1
  189. package/dist/runtime/shared/components/icons/tela-wordmark.vue.d.ts +1 -1
  190. package/dist/runtime/types/embed.d.ts +1 -0
  191. package/dist/runtime/types/schemas/chat/conversations.d.ts +2 -3
  192. package/dist/runtime/types/schemas/chat/conversations.js +2 -3
  193. package/dist/runtime/types/schemas/chat/messages.d.ts +6 -48
  194. package/dist/runtime/types/schemas/chat/messages.js +5 -4
  195. package/dist/runtime/types/schemas/chat/workspace-agent.d.ts +33 -0
  196. package/dist/runtime/types/schemas/chat/workspace-agent.js +12 -0
  197. package/dist/runtime/types/schemas/chat/workspace-settings.d.ts +0 -47
  198. package/dist/runtime/types/schemas/chat/workspace-settings.js +0 -1
  199. package/dist/runtime/types/schemas/index.d.ts +1 -0
  200. package/dist/runtime/types/schemas/index.js +1 -0
  201. package/dist/runtime/types/schemas/integrations/tela-agent-api.d.ts +34 -0
  202. package/dist/runtime/types/schemas/integrations/tela-agent-api.js +3 -0
  203. package/dist/runtime/types/workspace-settings.d.ts +1 -1
  204. package/dist/runtime/usage/components/chat-usage-view.d.vue.ts +1 -1
  205. package/dist/runtime/usage/components/chat-usage-view.vue.d.ts +1 -1
  206. package/dist/runtime/workspace/composables/github-skills-callback.js +1 -1
  207. package/dist/runtime/workspace/composables/workspace-agent.d.ts +8 -0
  208. package/dist/runtime/workspace/composables/workspace-agent.js +89 -0
  209. package/dist/runtime/workspace/composables/workspace-settings.d.ts +42 -1
  210. package/dist/types.d.mts +1 -1
  211. package/package.json +15 -15
  212. package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.d.vue.ts +0 -22
  213. package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.vue +0 -133
  214. package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.vue.d.ts +0 -22
  215. package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.d.vue.ts +0 -32
  216. package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.vue +0 -222
  217. package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.vue.d.ts +0 -32
  218. package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.d.vue.ts +0 -10
  219. package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.vue +0 -37
  220. package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.vue.d.ts +0 -10
  221. package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.d.vue.ts +0 -20
  222. package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.vue +0 -146
  223. package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.vue.d.ts +0 -20
  224. package/dist/runtime/internal/agent-environment-resolver.stub.d.ts +0 -2
  225. package/dist/runtime/internal/agent-environment-resolver.stub.js +0 -1
  226. package/dist/runtime/messages/components/chat-model-selector.d.vue.ts +0 -15
  227. package/dist/runtime/messages/components/chat-model-selector.vue +0 -42
  228. package/dist/runtime/messages/components/chat-model-selector.vue.d.ts +0 -15
  229. package/dist/runtime/messages/composables/selected-model.d.ts +0 -4
  230. package/dist/runtime/messages/composables/selected-model.js +0 -48
  231. package/dist/runtime/types/chat-agent-environment-resolver.d.ts +0 -4
  232. package/dist/runtime/workspace/composables/workspace-context-files.d.ts +0 -19
  233. package/dist/runtime/workspace/composables/workspace-context-files.js +0 -83
  234. package/dist/runtime/workspace/composables/workspace-external-skills.d.ts +0 -22
  235. package/dist/runtime/workspace/composables/workspace-external-skills.js +0 -137
  236. package/dist/runtime/workspace/composables/workspace-personalization.d.ts +0 -6
  237. package/dist/runtime/workspace/composables/workspace-personalization.js +0 -18
  238. package/dist/runtime/workspace/composables/workspace-tela-tools.d.ts +0 -13
  239. package/dist/runtime/workspace/composables/workspace-tela-tools.js +0 -91
@@ -13,7 +13,7 @@ type __VLS_Props = {
13
13
  showDebugOption?: boolean;
14
14
  showDrawerButton?: boolean;
15
15
  };
16
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
17
17
  delete: () => any;
18
18
  rename: () => any;
19
19
  duplicate: () => any;
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
22
22
  openDrawer: () => any;
23
23
  openOutdatedSettings: () => any;
24
24
  debug: () => any;
25
- tabChange: (tab: TopbarTab) => any;
26
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ tabChange: (tab: "files" | "usage" | "chat") => any;
26
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
27
  onDelete?: (() => any) | undefined;
28
28
  onRename?: (() => any) | undefined;
29
29
  onDuplicate?: (() => any) | undefined;
@@ -32,9 +32,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
32
32
  onOpenDrawer?: (() => any) | undefined;
33
33
  onOpenOutdatedSettings?: (() => any) | undefined;
34
34
  onDebug?: (() => any) | undefined;
35
- onTabChange?: ((tab: TopbarTab) => any) | undefined;
35
+ onTabChange?: ((tab: "files" | "usage" | "chat") => any) | undefined;
36
36
  }>, {
37
37
  showDrawerButton: boolean;
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
39
39
  declare const _default: typeof __VLS_export;
40
40
  export default _default;
@@ -5,15 +5,15 @@ type __VLS_Props = {
5
5
  workspaceLogo?: string;
6
6
  workspaceName?: string;
7
7
  };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
9
9
  openDrawer: () => any;
10
10
  openWorkspace: () => any;
11
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
12
  onOpenDrawer?: (() => any) | undefined;
13
13
  onOpenWorkspace?: (() => any) | undefined;
14
14
  }>, {
15
15
  showDrawerButton: boolean;
16
16
  showWorkspaceButton: boolean;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -5,15 +5,15 @@ type __VLS_Props = {
5
5
  workspaceLogo?: string;
6
6
  workspaceName?: string;
7
7
  };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
9
9
  openDrawer: () => any;
10
10
  openWorkspace: () => any;
11
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
12
  onOpenDrawer?: (() => any) | undefined;
13
13
  onOpenWorkspace?: (() => any) | undefined;
14
14
  }>, {
15
15
  showDrawerButton: boolean;
16
16
  showWorkspaceButton: boolean;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -3,12 +3,12 @@ import type { Conversation } from '../../../types/schemas/chat/conversations.js'
3
3
  type __VLS_Props = {
4
4
  conversations: DeepReadonly<Conversation[]>;
5
5
  };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
7
7
  select: (id: string) => any;
8
8
  seeAll: () => any;
9
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onSelect?: ((id: string) => any) | undefined;
11
11
  onSeeAll?: (() => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -3,12 +3,12 @@ import type { Conversation } from '../../../types/schemas/chat/conversations.js'
3
3
  type __VLS_Props = {
4
4
  conversations: DeepReadonly<Conversation[]>;
5
5
  };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
7
7
  select: (id: string) => any;
8
8
  seeAll: () => any;
9
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onSelect?: ((id: string) => any) | undefined;
11
11
  onSeeAll?: (() => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -1,7 +1,7 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
1
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
2
2
  pick: (label: string) => any;
3
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
3
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{
4
4
  onPick?: ((label: string) => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
1
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
2
2
  pick: (label: string) => any;
3
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
3
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{
4
4
  onPick?: ((label: string) => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
@@ -1,6 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  text: string;
3
3
  };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5
5
  declare const _default: typeof __VLS_export;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  text: string;
3
3
  };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5
5
  declare const _default: typeof __VLS_export;
6
6
  export default _default;
@@ -1,14 +1,14 @@
1
1
  type __VLS_Props = {
2
2
  open: boolean;
3
3
  };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
5
5
  close: () => any;
6
6
  dismiss: () => any;
7
7
  newConversation: () => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  onDismiss?: (() => any) | undefined;
11
11
  onNewConversation?: (() => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -1,14 +1,14 @@
1
1
  type __VLS_Props = {
2
2
  open: boolean;
3
3
  };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
5
5
  close: () => any;
6
6
  dismiss: () => any;
7
7
  newConversation: () => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  onDismiss?: (() => any) | undefined;
11
11
  onNewConversation?: (() => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -1,7 +1,6 @@
1
1
  import type { DeepReadonly } from 'vue';
2
2
  import type { Conversation, ConversationWithMessages, Message } from '../../../types/schemas/chat/conversations.js';
3
3
  import type { ConversationFile } from '../../../types/schemas/chat/files.js';
4
- import type { ChatModel } from '../../../types/schemas/chat/models.js';
5
4
  import type { TopbarTab } from '../../../types/schemas/chat/ui.js';
6
5
  import type { WorkspaceSettingsResponse as WorkspaceSettings } from '../../../types/schemas/chat/workspace-settings.js';
7
6
  import type { TelaAgentInputVariable } from '../../../types/schemas/integrations/tela-agent-api.js';
@@ -13,7 +12,6 @@ type __VLS_Props = {
13
12
  currentUser?: ChatActor | null;
14
13
  activeTab: TopbarTab;
15
14
  activeConversationId: string | null;
16
- allowModelSelection?: boolean;
17
15
  agentInputSchema?: readonly TelaAgentInputVariable[] | null;
18
16
  agentInputSchemaLoading?: boolean;
19
17
  conversations: DeepReadonly<Conversation[]>;
@@ -30,10 +28,8 @@ type __VLS_Props = {
30
28
  isEditing: boolean;
31
29
  loading?: boolean;
32
30
  messages: Message[];
33
- model: ChatModel;
34
31
  showCancelButton?: boolean;
35
32
  showDebugOption?: boolean;
36
- showModelSelector?: boolean;
37
33
  showOutdatedBadge?: boolean;
38
34
  showOutdatedBanner?: boolean;
39
35
  showUsageTab?: boolean;
@@ -50,19 +46,34 @@ type __VLS_Slots = {} & {
50
46
  } & {
51
47
  default?: (props: typeof __VLS_101) => any;
52
48
  };
53
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
49
+ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
50
+ cancel: () => any;
54
51
  delete: () => any;
55
52
  rename: () => any;
56
53
  duplicate: () => any;
57
54
  export: () => any;
58
55
  copyLink: () => any;
59
56
  selectConversation: (id: string) => any;
60
- cancel: () => any;
61
- send: (content: string, files: FileUploadInput[], model?: any, agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
62
57
  settings: () => any;
63
- "update:model": (value: ChatModel) => any;
58
+ send: (content: string, files: {
59
+ url: string;
60
+ name: string;
61
+ mimeType?: string | undefined;
62
+ vaultReference?: string | undefined;
63
+ size?: number | undefined;
64
+ }[], agentInputs?: ({
65
+ type: "file";
66
+ name: string;
67
+ vaultRef: string;
68
+ filename: string;
69
+ metadata?: string | undefined;
70
+ } | {
71
+ type: "text";
72
+ name: string;
73
+ content: string;
74
+ })[] | undefined) => any;
64
75
  debug: () => any;
65
- tabChange: (tab: TopbarTab) => any;
76
+ tabChange: (tab: "files" | "usage" | "chat") => any;
66
77
  newConversation: (groupId?: string | null | undefined) => any;
67
78
  switchWorkspace: () => any;
68
79
  signout: () => any;
@@ -72,19 +83,34 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
72
83
  "update:drawerOpen": (value: boolean) => any;
73
84
  "update:editTitle": (value: string) => any;
74
85
  "update:workspaceSheetOpen": (value: boolean) => any;
75
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
86
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
87
+ onCancel?: (() => any) | undefined;
76
88
  onDelete?: (() => any) | undefined;
77
89
  onRename?: (() => any) | undefined;
78
90
  onDuplicate?: (() => any) | undefined;
79
91
  onExport?: (() => any) | undefined;
80
92
  onCopyLink?: (() => any) | undefined;
81
93
  onSelectConversation?: ((id: string) => any) | undefined;
82
- onCancel?: (() => any) | undefined;
83
- onSend?: ((content: string, files: FileUploadInput[], model?: any, agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
84
94
  onSettings?: (() => any) | undefined;
85
- "onUpdate:model"?: ((value: ChatModel) => any) | undefined;
95
+ onSend?: ((content: string, files: {
96
+ url: string;
97
+ name: string;
98
+ mimeType?: string | undefined;
99
+ vaultReference?: string | undefined;
100
+ size?: number | undefined;
101
+ }[], agentInputs?: ({
102
+ type: "file";
103
+ name: string;
104
+ vaultRef: string;
105
+ filename: string;
106
+ metadata?: string | undefined;
107
+ } | {
108
+ type: "text";
109
+ name: string;
110
+ content: string;
111
+ })[] | undefined) => any) | undefined;
86
112
  onDebug?: (() => any) | undefined;
87
- onTabChange?: ((tab: TopbarTab) => any) | undefined;
113
+ onTabChange?: ((tab: "files" | "usage" | "chat") => any) | undefined;
88
114
  onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
89
115
  onSwitchWorkspace?: (() => any) | undefined;
90
116
  onSignout?: (() => any) | undefined;
@@ -94,7 +120,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
94
120
  "onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
95
121
  "onUpdate:editTitle"?: ((value: string) => any) | undefined;
96
122
  "onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
97
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
123
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
98
124
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
99
125
  declare const _default: typeof __VLS_export;
100
126
  export default _default;
@@ -17,7 +17,6 @@ const props = defineProps({
17
17
  currentUser: { type: [Object, null], required: false },
18
18
  activeTab: { type: null, required: true },
19
19
  activeConversationId: { type: [String, null], required: true },
20
- allowModelSelection: { type: Boolean, required: false },
21
20
  agentInputSchema: { type: [Array, null], required: false },
22
21
  agentInputSchemaLoading: { type: Boolean, required: false },
23
22
  conversations: { type: null, required: true },
@@ -34,10 +33,8 @@ const props = defineProps({
34
33
  isEditing: { type: Boolean, required: true },
35
34
  loading: { type: Boolean, required: false },
36
35
  messages: { type: Array, required: true },
37
- model: { type: null, required: true },
38
36
  showCancelButton: { type: Boolean, required: false },
39
37
  showDebugOption: { type: Boolean, required: false },
40
- showModelSelector: { type: Boolean, required: false },
41
38
  showOutdatedBadge: { type: Boolean, required: false },
42
39
  showOutdatedBanner: { type: Boolean, required: false },
43
40
  showUsageTab: { type: Boolean, required: false },
@@ -46,7 +43,7 @@ const props = defineProps({
46
43
  workspaceSettings: { type: null, required: false },
47
44
  workspaceSheetOpen: { type: Boolean, required: true }
48
45
  });
49
- const emit = defineEmits(["cancel", "cancelEditing", "copyLink", "debug", "delete", "dismissOutdatedBanner", "duplicate", "export", "newConversation", "rename", "saveTitle", "selectConversation", "send", "settings", "signout", "switchWorkspace", "tabChange", "update:drawerOpen", "update:editTitle", "update:model", "update:workspaceSheetOpen"]);
46
+ const emit = defineEmits(["cancel", "cancelEditing", "copyLink", "debug", "delete", "dismissOutdatedBanner", "duplicate", "export", "newConversation", "rename", "saveTitle", "selectConversation", "send", "settings", "signout", "switchWorkspace", "tabChange", "update:drawerOpen", "update:editTitle", "update:workspaceSheetOpen"]);
50
47
  const renameInputRef = ref(null);
51
48
  const homeInputRef = ref(null);
52
49
  const outdatedSettingsSheetOpen = ref(false);
@@ -56,10 +53,6 @@ const editTitleModel = computed({
56
53
  get: () => props.editTitle,
57
54
  set: (value) => emit("update:editTitle", value)
58
55
  });
59
- const selectedModel = computed({
60
- get: () => props.model,
61
- set: (value) => emit("update:model", value)
62
- });
63
56
  watch(() => props.isEditing, async (editing) => {
64
57
  if (!editing)
65
58
  return;
@@ -227,7 +220,6 @@ function startNewConversationFromOutdatedSettings() {
227
220
  <div px-14px pb-12px>
228
221
  <ChatMessageInput
229
222
  ref="homeInputRef"
230
- v-model:model="selectedModel"
231
223
  :disabled="hasPendingMessage"
232
224
  :loading="hasPendingMessage"
233
225
  :creator-name="currentUser?.name ?? void 0"
@@ -236,13 +228,11 @@ function startNewConversationFromOutdatedSettings() {
236
228
  :messages="messages"
237
229
  :conversation-files="conversationFiles"
238
230
  :workspace-settings="workspaceSettings"
239
- :allow-model-selection="allowModelSelection"
240
231
  :agent-input-schema="agentInputSchema"
241
232
  :agent-input-schema-loading="agentInputSchemaLoading"
242
- :show-model-selector="showModelSelector"
243
233
  :show-cancel-button="showCancelButton"
244
234
  centered
245
- @send="(content, files, model, agentInputs) => emit('send', content, files, model, agentInputs)"
235
+ @send="(content, files, agentInputs) => emit('send', content, files, agentInputs)"
246
236
  @cancel="emit('cancel')"
247
237
  />
248
238
  </div>
@@ -1,7 +1,6 @@
1
1
  import type { DeepReadonly } from 'vue';
2
2
  import type { Conversation, ConversationWithMessages, Message } from '../../../types/schemas/chat/conversations.js';
3
3
  import type { ConversationFile } from '../../../types/schemas/chat/files.js';
4
- import type { ChatModel } from '../../../types/schemas/chat/models.js';
5
4
  import type { TopbarTab } from '../../../types/schemas/chat/ui.js';
6
5
  import type { WorkspaceSettingsResponse as WorkspaceSettings } from '../../../types/schemas/chat/workspace-settings.js';
7
6
  import type { TelaAgentInputVariable } from '../../../types/schemas/integrations/tela-agent-api.js';
@@ -13,7 +12,6 @@ type __VLS_Props = {
13
12
  currentUser?: ChatActor | null;
14
13
  activeTab: TopbarTab;
15
14
  activeConversationId: string | null;
16
- allowModelSelection?: boolean;
17
15
  agentInputSchema?: readonly TelaAgentInputVariable[] | null;
18
16
  agentInputSchemaLoading?: boolean;
19
17
  conversations: DeepReadonly<Conversation[]>;
@@ -30,10 +28,8 @@ type __VLS_Props = {
30
28
  isEditing: boolean;
31
29
  loading?: boolean;
32
30
  messages: Message[];
33
- model: ChatModel;
34
31
  showCancelButton?: boolean;
35
32
  showDebugOption?: boolean;
36
- showModelSelector?: boolean;
37
33
  showOutdatedBadge?: boolean;
38
34
  showOutdatedBanner?: boolean;
39
35
  showUsageTab?: boolean;
@@ -50,19 +46,34 @@ type __VLS_Slots = {} & {
50
46
  } & {
51
47
  default?: (props: typeof __VLS_101) => any;
52
48
  };
53
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
49
+ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
50
+ cancel: () => any;
54
51
  delete: () => any;
55
52
  rename: () => any;
56
53
  duplicate: () => any;
57
54
  export: () => any;
58
55
  copyLink: () => any;
59
56
  selectConversation: (id: string) => any;
60
- cancel: () => any;
61
- send: (content: string, files: FileUploadInput[], model?: any, agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
62
57
  settings: () => any;
63
- "update:model": (value: ChatModel) => any;
58
+ send: (content: string, files: {
59
+ url: string;
60
+ name: string;
61
+ mimeType?: string | undefined;
62
+ vaultReference?: string | undefined;
63
+ size?: number | undefined;
64
+ }[], agentInputs?: ({
65
+ type: "file";
66
+ name: string;
67
+ vaultRef: string;
68
+ filename: string;
69
+ metadata?: string | undefined;
70
+ } | {
71
+ type: "text";
72
+ name: string;
73
+ content: string;
74
+ })[] | undefined) => any;
64
75
  debug: () => any;
65
- tabChange: (tab: TopbarTab) => any;
76
+ tabChange: (tab: "files" | "usage" | "chat") => any;
66
77
  newConversation: (groupId?: string | null | undefined) => any;
67
78
  switchWorkspace: () => any;
68
79
  signout: () => any;
@@ -72,19 +83,34 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
72
83
  "update:drawerOpen": (value: boolean) => any;
73
84
  "update:editTitle": (value: string) => any;
74
85
  "update:workspaceSheetOpen": (value: boolean) => any;
75
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
86
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
87
+ onCancel?: (() => any) | undefined;
76
88
  onDelete?: (() => any) | undefined;
77
89
  onRename?: (() => any) | undefined;
78
90
  onDuplicate?: (() => any) | undefined;
79
91
  onExport?: (() => any) | undefined;
80
92
  onCopyLink?: (() => any) | undefined;
81
93
  onSelectConversation?: ((id: string) => any) | undefined;
82
- onCancel?: (() => any) | undefined;
83
- onSend?: ((content: string, files: FileUploadInput[], model?: any, agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
84
94
  onSettings?: (() => any) | undefined;
85
- "onUpdate:model"?: ((value: ChatModel) => any) | undefined;
95
+ onSend?: ((content: string, files: {
96
+ url: string;
97
+ name: string;
98
+ mimeType?: string | undefined;
99
+ vaultReference?: string | undefined;
100
+ size?: number | undefined;
101
+ }[], agentInputs?: ({
102
+ type: "file";
103
+ name: string;
104
+ vaultRef: string;
105
+ filename: string;
106
+ metadata?: string | undefined;
107
+ } | {
108
+ type: "text";
109
+ name: string;
110
+ content: string;
111
+ })[] | undefined) => any) | undefined;
86
112
  onDebug?: (() => any) | undefined;
87
- onTabChange?: ((tab: TopbarTab) => any) | undefined;
113
+ onTabChange?: ((tab: "files" | "usage" | "chat") => any) | undefined;
88
114
  onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
89
115
  onSwitchWorkspace?: (() => any) | undefined;
90
116
  onSignout?: (() => any) | undefined;
@@ -94,7 +120,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
94
120
  "onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
95
121
  "onUpdate:editTitle"?: ((value: string) => any) | undefined;
96
122
  "onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
97
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
123
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
98
124
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
99
125
  declare const _default: typeof __VLS_export;
100
126
  export default _default;
@@ -3,6 +3,6 @@ type __VLS_Props = {
3
3
  createdAt?: string | Date;
4
4
  updatedAt?: string | Date;
5
5
  };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  export default _default;
@@ -3,6 +3,6 @@ type __VLS_Props = {
3
3
  createdAt?: string | Date;
4
4
  updatedAt?: string | Date;
5
5
  };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  export default _default;
@@ -4,16 +4,16 @@ type __VLS_Props = {
4
4
  workspaceLogo?: string;
5
5
  workspaceSubtitle?: string;
6
6
  };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
8
8
  close: () => void;
9
9
  settings: () => void;
10
10
  switchWorkspace: () => void;
11
11
  signout: () => void;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
13
  onClose?: (() => any) | undefined;
14
14
  onSettings?: (() => any) | undefined;
15
15
  onSwitchWorkspace?: (() => any) | undefined;
16
16
  onSignout?: (() => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -4,16 +4,16 @@ type __VLS_Props = {
4
4
  workspaceLogo?: string;
5
5
  workspaceSubtitle?: string;
6
6
  };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
8
8
  close: () => void;
9
9
  settings: () => void;
10
10
  switchWorkspace: () => void;
11
11
  signout: () => void;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
13
  onClose?: (() => any) | undefined;
14
14
  onSettings?: (() => any) | undefined;
15
15
  onSwitchWorkspace?: (() => any) | undefined;
16
16
  onSignout?: (() => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -1,3 +1,3 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
@@ -3,7 +3,9 @@ import type { ConversationCreatorFilter } from '../../types/schemas/chat/primiti
3
3
  import type { WorkspaceSettingsResponse as WorkspaceSettings } from '../../types/schemas/chat/workspace-settings.js';
4
4
  import type { TelaAgentExecutionInput } from '../../types/schemas/integrations/tela-agent-api.js';
5
5
  import type { ChatLoadingMessageMode } from '../loading-messages.js';
6
+ import type { MessageFeedbackConfig, MessageFeedbackRating } from '../../messages/composables/chat-feedback.js';
6
7
  type ConfiguredTelaAgentInputs = DeepReadonly<TelaAgentExecutionInput[]> | null | undefined;
8
+ type ConfiguredMessageFeedback = Readonly<Record<string, MessageFeedbackRating>> | null | undefined;
7
9
  export type EmbedConfig = {
8
10
  workspaceId: Ref<string>;
9
11
  telaAgentId: Ref<string | null>;
@@ -17,6 +19,8 @@ export type EmbedConfig = {
17
19
  loadingMessagesMode: Ref<ChatLoadingMessageMode | null | undefined>;
18
20
  customComponents: Ref<Record<string, Component> | undefined>;
19
21
  customHtmlTags: Ref<readonly string[] | undefined>;
22
+ feedbackConfig: Ref<MessageFeedbackConfig | null | undefined>;
23
+ messageFeedback: Ref<ConfiguredMessageFeedback>;
20
24
  };
21
25
  type EmbedConfigInput = {
22
26
  workspaceId: MaybeRefOrGetter<string>;
@@ -31,6 +35,8 @@ type EmbedConfigInput = {
31
35
  loadingMessagesMode?: MaybeRefOrGetter<ChatLoadingMessageMode | null | undefined>;
32
36
  customComponents?: MaybeRefOrGetter<Record<string, Component> | undefined>;
33
37
  customHtmlTags?: MaybeRefOrGetter<readonly string[] | undefined>;
38
+ feedbackConfig?: MaybeRefOrGetter<MessageFeedbackConfig | null | undefined>;
39
+ messageFeedback?: MaybeRefOrGetter<ConfiguredMessageFeedback>;
34
40
  };
35
41
  type ProvideEmbedConfigOptions = {
36
42
  syncGlobal?: boolean;
@@ -19,7 +19,9 @@ function useGlobalEmbedConfigState() {
19
19
  loadingMessages: useState("chat-embed-config-loading-messages", () => void 0),
20
20
  loadingMessagesMode: useState("chat-embed-config-loading-messages-mode", () => void 0),
21
21
  customComponents: useGlobalCustomComponentsState(),
22
- customHtmlTags: useState("chat-embed-config-custom-html-tags", () => void 0)
22
+ customHtmlTags: useState("chat-embed-config-custom-html-tags", () => void 0),
23
+ feedbackConfig: useState("chat-embed-config-feedback-config", () => void 0),
24
+ messageFeedback: useState("chat-embed-config-message-feedback", () => void 0)
23
25
  };
24
26
  }
25
27
  export function provideEmbedConfig(input, options = {}) {
@@ -35,7 +37,9 @@ export function provideEmbedConfig(input, options = {}) {
35
37
  loadingMessages: computed(() => toValue(input.loadingMessages)),
36
38
  loadingMessagesMode: computed(() => toValue(input.loadingMessagesMode)),
37
39
  customComponents: computed(() => toValue(input.customComponents)),
38
- customHtmlTags: computed(() => toValue(input.customHtmlTags))
40
+ customHtmlTags: computed(() => toValue(input.customHtmlTags)),
41
+ feedbackConfig: computed(() => toValue(input.feedbackConfig)),
42
+ messageFeedback: computed(() => toValue(input.messageFeedback))
39
43
  };
40
44
  const globalConfig = useGlobalEmbedConfigState();
41
45
  if (options.syncGlobal ?? true) {
@@ -53,6 +57,8 @@ export function provideEmbedConfig(input, options = {}) {
53
57
  globalConfig.loadingMessagesMode.value = config.loadingMessagesMode.value;
54
58
  globalConfig.customComponents.value = config.customComponents.value;
55
59
  globalConfig.customHtmlTags.value = config.customHtmlTags.value;
60
+ globalConfig.feedbackConfig.value = config.feedbackConfig.value;
61
+ globalConfig.messageFeedback.value = config.messageFeedback.value;
56
62
  });
57
63
  }
58
64
  provide(EMBED_CONFIG_KEY, config);
@@ -76,6 +82,8 @@ export function useEmbedConfig() {
76
82
  loadingMessages: computed(() => globalConfig.loadingMessages.value),
77
83
  loadingMessagesMode: computed(() => globalConfig.loadingMessagesMode.value),
78
84
  customComponents: computed(() => globalConfig.customComponents.value),
79
- customHtmlTags: computed(() => globalConfig.customHtmlTags.value)
85
+ customHtmlTags: computed(() => globalConfig.customHtmlTags.value),
86
+ feedbackConfig: computed(() => globalConfig.feedbackConfig.value),
87
+ messageFeedback: computed(() => globalConfig.messageFeedback.value)
80
88
  };
81
89
  }