@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
@@ -10,22 +10,64 @@ type __VLS_Props = {
10
10
  disabled?: boolean;
11
11
  };
12
12
  declare function addFiles(files: File[]): void;
13
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
13
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {
14
14
  addFiles: typeof addFiles;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
16
16
  "update:systemMessage": (value: string) => any;
17
- "update:contextFiles": (value: ContextFile[]) => any;
18
- "update:canvasTools": (value: CanvasTool[]) => any;
19
- "update:knowledgeSources": (value: KnowledgeSource[]) => any;
17
+ "update:contextFiles": (value: {
18
+ url: string;
19
+ name: string;
20
+ vaultReference?: string | undefined;
21
+ mimeType?: string | undefined;
22
+ }[]) => any;
23
+ "update:canvasTools": (value: {
24
+ canvasId: string;
25
+ name: string;
26
+ description: string;
27
+ variables?: Record<string, {
28
+ name: string;
29
+ description: string;
30
+ type: "file" | "text";
31
+ }> | undefined;
32
+ }[]) => any;
33
+ "update:knowledgeSources": (value: {
34
+ type: "workstation";
35
+ id: string;
36
+ name: string;
37
+ projectId: string;
38
+ description?: string | undefined;
39
+ taskCount?: number | undefined;
40
+ }[]) => any;
20
41
  clearThread: () => any;
21
42
  saved: () => any;
22
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
43
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
44
  "onUpdate:systemMessage"?: ((value: string) => any) | undefined;
24
- "onUpdate:contextFiles"?: ((value: ContextFile[]) => any) | undefined;
25
- "onUpdate:canvasTools"?: ((value: CanvasTool[]) => any) | undefined;
26
- "onUpdate:knowledgeSources"?: ((value: KnowledgeSource[]) => any) | undefined;
45
+ "onUpdate:contextFiles"?: ((value: {
46
+ url: string;
47
+ name: string;
48
+ vaultReference?: string | undefined;
49
+ mimeType?: string | undefined;
50
+ }[]) => any) | undefined;
51
+ "onUpdate:canvasTools"?: ((value: {
52
+ canvasId: string;
53
+ name: string;
54
+ description: string;
55
+ variables?: Record<string, {
56
+ name: string;
57
+ description: string;
58
+ type: "file" | "text";
59
+ }> | undefined;
60
+ }[]) => any) | undefined;
61
+ "onUpdate:knowledgeSources"?: ((value: {
62
+ type: "workstation";
63
+ id: string;
64
+ name: string;
65
+ projectId: string;
66
+ description?: string | undefined;
67
+ taskCount?: number | undefined;
68
+ }[]) => any) | undefined;
27
69
  onClearThread?: (() => any) | undefined;
28
70
  onSaved?: (() => any) | undefined;
29
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
71
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
30
72
  declare const _default: typeof __VLS_export;
31
73
  export default _default;
@@ -1,8 +1,8 @@
1
1
  <script setup>
2
2
  import { useFileUpload } from "../../files/composables/file-upload";
3
- import { useTela } from "../../shared/composables/tela";
4
- import { MAX_FILES, MAX_FILE_SIZE } from "../../workspace/composables/workspace-context-files";
3
+ import { MAX_FILES, MAX_FILE_SIZE } from "../../files/file-limits";
5
4
  import { formatFileSize } from "../../files/formatting";
5
+ import { useTela } from "../../shared/composables/tela";
6
6
  const props = defineProps({
7
7
  systemMessage: { type: [String, null], required: true },
8
8
  contextFiles: { type: [Array, null], required: true },
@@ -10,22 +10,64 @@ type __VLS_Props = {
10
10
  disabled?: boolean;
11
11
  };
12
12
  declare function addFiles(files: File[]): void;
13
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
13
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {
14
14
  addFiles: typeof addFiles;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
16
16
  "update:systemMessage": (value: string) => any;
17
- "update:contextFiles": (value: ContextFile[]) => any;
18
- "update:canvasTools": (value: CanvasTool[]) => any;
19
- "update:knowledgeSources": (value: KnowledgeSource[]) => any;
17
+ "update:contextFiles": (value: {
18
+ url: string;
19
+ name: string;
20
+ vaultReference?: string | undefined;
21
+ mimeType?: string | undefined;
22
+ }[]) => any;
23
+ "update:canvasTools": (value: {
24
+ canvasId: string;
25
+ name: string;
26
+ description: string;
27
+ variables?: Record<string, {
28
+ name: string;
29
+ description: string;
30
+ type: "file" | "text";
31
+ }> | undefined;
32
+ }[]) => any;
33
+ "update:knowledgeSources": (value: {
34
+ type: "workstation";
35
+ id: string;
36
+ name: string;
37
+ projectId: string;
38
+ description?: string | undefined;
39
+ taskCount?: number | undefined;
40
+ }[]) => any;
20
41
  clearThread: () => any;
21
42
  saved: () => any;
22
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
43
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
44
  "onUpdate:systemMessage"?: ((value: string) => any) | undefined;
24
- "onUpdate:contextFiles"?: ((value: ContextFile[]) => any) | undefined;
25
- "onUpdate:canvasTools"?: ((value: CanvasTool[]) => any) | undefined;
26
- "onUpdate:knowledgeSources"?: ((value: KnowledgeSource[]) => any) | undefined;
45
+ "onUpdate:contextFiles"?: ((value: {
46
+ url: string;
47
+ name: string;
48
+ vaultReference?: string | undefined;
49
+ mimeType?: string | undefined;
50
+ }[]) => any) | undefined;
51
+ "onUpdate:canvasTools"?: ((value: {
52
+ canvasId: string;
53
+ name: string;
54
+ description: string;
55
+ variables?: Record<string, {
56
+ name: string;
57
+ description: string;
58
+ type: "file" | "text";
59
+ }> | undefined;
60
+ }[]) => any) | undefined;
61
+ "onUpdate:knowledgeSources"?: ((value: {
62
+ type: "workstation";
63
+ id: string;
64
+ name: string;
65
+ projectId: string;
66
+ description?: string | undefined;
67
+ taskCount?: number | undefined;
68
+ }[]) => any) | undefined;
27
69
  onClearThread?: (() => any) | undefined;
28
70
  onSaved?: (() => any) | undefined;
29
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
71
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
30
72
  declare const _default: typeof __VLS_export;
31
73
  export default _default;
@@ -5,10 +5,32 @@ type __VLS_Props = {
5
5
  trigger: '@' | '/';
6
6
  query: string;
7
7
  };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
- select: (item: MentionItem) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onSelect?: ((item: MentionItem) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
9
+ select: (item: {
10
+ id: string;
11
+ label: string;
12
+ icon: string;
13
+ category: "file" | "skill" | "canvas";
14
+ description?: string | undefined;
15
+ variables?: Record<string, {
16
+ name: string;
17
+ description: string;
18
+ type: "file" | "text";
19
+ }> | undefined;
20
+ }) => any;
21
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onSelect?: ((item: {
23
+ id: string;
24
+ label: string;
25
+ icon: string;
26
+ category: "file" | "skill" | "canvas";
27
+ description?: string | undefined;
28
+ variables?: Record<string, {
29
+ name: string;
30
+ description: string;
31
+ type: "file" | "text";
32
+ }> | undefined;
33
+ }) => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
35
  declare const _default: typeof __VLS_export;
14
36
  export default _default;
@@ -5,10 +5,32 @@ type __VLS_Props = {
5
5
  trigger: '@' | '/';
6
6
  query: string;
7
7
  };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
- select: (item: MentionItem) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onSelect?: ((item: MentionItem) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
9
+ select: (item: {
10
+ id: string;
11
+ label: string;
12
+ icon: string;
13
+ category: "file" | "skill" | "canvas";
14
+ description?: string | undefined;
15
+ variables?: Record<string, {
16
+ name: string;
17
+ description: string;
18
+ type: "file" | "text";
19
+ }> | undefined;
20
+ }) => any;
21
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onSelect?: ((item: {
23
+ id: string;
24
+ label: string;
25
+ icon: string;
26
+ category: "file" | "skill" | "canvas";
27
+ description?: string | undefined;
28
+ variables?: Record<string, {
29
+ name: string;
30
+ description: string;
31
+ type: "file" | "text";
32
+ }> | undefined;
33
+ }) => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
13
35
  declare const _default: typeof __VLS_export;
14
36
  export default _default;
@@ -2,10 +2,10 @@ import type { Message } from '../../types/schemas/chat/conversations.js';
2
2
  type __VLS_Props = {
3
3
  message: Message;
4
4
  };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
6
6
  retry: (messageId: string) => any;
7
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onRetry?: ((messageId: string) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
10
10
  declare const _default: typeof __VLS_export;
11
11
  export default _default;
@@ -16,6 +16,7 @@ const mergedCustomComponents = computed(() => ({
16
16
  ...embedConfig?.customComponents.value ?? {}
17
17
  }));
18
18
  const mergedCustomHtmlTags = computed(() => embedConfig?.customHtmlTags.value ?? []);
19
+ const hasMessageFeedback = computed(() => embedConfig?.feedbackConfig.value != null);
19
20
  const senderMember = computed(() => {
20
21
  const createdBy = props.message.createdBy?.trim();
21
22
  if (!createdBy) {
@@ -286,10 +287,13 @@ const hasDetectedFiles = computed(() => contentSegments.value.some((s) => s.type
286
287
  >
287
288
  <div w-full flex items-center justify-between gap-12px>
288
289
  <span>{{ formatTime(message.updatedAt || message.createdAt) }}</span>
289
- <span v-if="formattedTtft" flex items-center gap-4px text-black-300>
290
- <span i-ph-timer text-12px />
291
- TTFT: {{ formattedTtft }}
292
- </span>
290
+ <div flex items-center gap-8px>
291
+ <span v-if="formattedTtft" flex items-center gap-4px text-black-300>
292
+ <span i-ph-timer text-12px />
293
+ TTFT: {{ formattedTtft }}
294
+ </span>
295
+ <ChatMessageFeedback v-if="hasMessageFeedback" :message="message" />
296
+ </div>
293
297
  </div>
294
298
  </div>
295
299
  </template>
@@ -2,10 +2,10 @@ import type { Message } from '../../types/schemas/chat/conversations.js';
2
2
  type __VLS_Props = {
3
3
  message: Message;
4
4
  };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
6
6
  retry: (messageId: string) => any;
7
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onRetry?: ((messageId: string) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
10
10
  declare const _default: typeof __VLS_export;
11
11
  export default _default;
@@ -0,0 +1,7 @@
1
+ import type { Message } from '../../types/schemas/chat/conversations.js';
2
+ type __VLS_Props = {
3
+ message: Message;
4
+ };
5
+ 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>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,251 @@
1
+ <script setup>
2
+ import { useEmbedConfig } from "../../embed/composables/embed-config";
3
+ import { useMessageFeedback } from "../composables/chat-feedback";
4
+ const props = defineProps({
5
+ message: { type: null, required: true }
6
+ });
7
+ const embedConfig = useEmbedConfig();
8
+ const { emit: emitFeedback } = useMessageFeedback();
9
+ const config = computed(() => embedConfig?.feedbackConfig.value ?? null);
10
+ const positiveReasons = computed(() => config.value?.positiveReasons ?? []);
11
+ const negativeReasons = computed(() => config.value?.negativeReasons ?? []);
12
+ const persistedMap = computed(() => embedConfig?.messageFeedback.value ?? null);
13
+ const persistedRating = computed(() => persistedMap.value?.[props.message.id] ?? null);
14
+ const localRating = ref(null);
15
+ const rating = computed(() => persistedMap.value ? persistedRating.value : localRating.value);
16
+ const openRating = ref(null);
17
+ const positiveOpen = computed({
18
+ get: () => openRating.value === "positive",
19
+ set: (open) => {
20
+ openRating.value = open ? "positive" : null;
21
+ }
22
+ });
23
+ const negativeOpen = computed({
24
+ get: () => openRating.value === "negative",
25
+ set: (open) => {
26
+ openRating.value = open ? "negative" : null;
27
+ }
28
+ });
29
+ const selectedReasons = ref([]);
30
+ const comment = ref("");
31
+ watch(openRating, (opened) => {
32
+ if (opened) {
33
+ selectedReasons.value = [];
34
+ comment.value = "";
35
+ }
36
+ });
37
+ const canSubmitNegative = computed(() => {
38
+ if (!config.value?.requireReason)
39
+ return true;
40
+ if (negativeReasons.value.length > 0)
41
+ return selectedReasons.value.length > 0;
42
+ return comment.value.trim().length > 0;
43
+ });
44
+ function submitRating(next) {
45
+ emitFeedback({
46
+ conversationId: props.message.conversationId,
47
+ messageId: props.message.id,
48
+ rating: next,
49
+ reasons: [...selectedReasons.value],
50
+ comment: comment.value.trim()
51
+ });
52
+ localRating.value = next;
53
+ openRating.value = null;
54
+ }
55
+ function toggleReason(reason) {
56
+ selectedReasons.value = selectedReasons.value.includes(reason) ? selectedReasons.value.filter((item) => item !== reason) : [...selectedReasons.value, reason];
57
+ }
58
+ </script>
59
+
60
+ <template>
61
+ <div flex items-center gap-2px>
62
+ <!-- Frictionless 👍: with no positive reasons configured there is nothing
63
+ to ask, so the vote submits directly instead of opening an empty popover. -->
64
+ <button
65
+ v-if="positiveReasons.length === 0"
66
+ type="button"
67
+ h-28px w-28px
68
+ flex items-center justify-center
69
+ rounded-8px
70
+ transition-colors
71
+ cursor-pointer
72
+ :class="rating === 'positive' ? 'bg-green-100 text-green-700' : 'text-black-400 hover:bg-neutral-100 hover:text-black-600'"
73
+ aria-label="Resposta útil"
74
+ title="Resposta útil"
75
+ @click="submitRating('positive')"
76
+ >
77
+ <span :class="rating === 'positive' ? 'i-ph-thumbs-up-fill' : 'i-ph-thumbs-up'" text-15px />
78
+ </button>
79
+ <TelaPopover v-else v-model:open="positiveOpen">
80
+ <TelaPopoverTrigger as-child>
81
+ <button
82
+ type="button"
83
+ h-28px w-28px
84
+ flex items-center justify-center
85
+ rounded-8px
86
+ transition-colors
87
+ cursor-pointer
88
+ :class="rating === 'positive' ? 'bg-green-100 text-green-700' : 'text-black-400 hover:bg-neutral-100 hover:text-black-600'"
89
+ aria-label="Resposta útil"
90
+ title="Resposta útil"
91
+ >
92
+ <span :class="rating === 'positive' ? 'i-ph-thumbs-up-fill' : 'i-ph-thumbs-up'" text-15px />
93
+ </button>
94
+ </TelaPopoverTrigger>
95
+ <TelaPopoverContent
96
+ align="end"
97
+ :side-offset="4"
98
+ class="!w-auto !rounded-12px !border-neutral-200 !bg-white !p-0 !text-neutral-900 !shadow-lg"
99
+ >
100
+ <div w-288px p-12px flex="~ col" gap-10px>
101
+ <div flex="~ col" gap-2px>
102
+ <span text-14px font-medium text-neutral-900 leading-18px>O que ajudou?</span>
103
+ <span text-12px text-neutral-500 leading-16px>Marcar o que funcionou refina as próximas respostas.</span>
104
+ </div>
105
+ <div flex flex-wrap gap-6px>
106
+ <button
107
+ v-for="reason in positiveReasons"
108
+ :key="reason"
109
+ type="button"
110
+ h-26px px-10px
111
+ rounded-full
112
+ b=".5px solid"
113
+ text-12px leading-16px
114
+ transition-colors
115
+ cursor-pointer
116
+ :class="selectedReasons.includes(reason) ? 'bg-green-100 text-green-700 border-transparent font-medium' : 'bg-white text-neutral-600 border-neutral-300 hover:bg-neutral-50'"
117
+ @click="toggleReason(reason)"
118
+ >
119
+ {{ reason }}
120
+ </button>
121
+ </div>
122
+ <textarea
123
+ v-model="comment"
124
+ rows="2"
125
+ placeholder="Comentário (opcional)…"
126
+ aria-label="Comentário"
127
+ w-full
128
+ px-10px py-8px
129
+ rounded-8px
130
+ b=".5px neutral-300"
131
+ bg-white
132
+ outline-none
133
+ resize-none
134
+ text-13px text-neutral-900 leading-18px
135
+ focus:b-neutral-900
136
+ @keydown.escape.prevent.stop="positiveOpen = false"
137
+ />
138
+ <div flex justify-end gap-6px>
139
+ <button
140
+ type="button"
141
+ h-28px px-10px rounded-8px
142
+ text-13px font-medium text-neutral-700
143
+ hover:bg-neutral-100
144
+ transition-colors
145
+ @click="positiveOpen = false"
146
+ >
147
+ Cancelar
148
+ </button>
149
+ <button
150
+ type="button"
151
+ h-28px px-10px rounded-8px
152
+ bg-neutral-900 text-white
153
+ text-13px font-medium
154
+ transition-opacity
155
+ @click="submitRating('positive')"
156
+ >
157
+ Enviar
158
+ </button>
159
+ </div>
160
+ </div>
161
+ </TelaPopoverContent>
162
+ </TelaPopover>
163
+
164
+ <TelaPopover v-model:open="negativeOpen">
165
+ <TelaPopoverTrigger as-child>
166
+ <button
167
+ type="button"
168
+ h-28px w-28px
169
+ flex items-center justify-center
170
+ rounded-8px
171
+ transition-colors
172
+ cursor-pointer
173
+ :class="rating === 'negative' ? 'bg-red-100 text-red-700' : 'text-black-400 hover:bg-neutral-100 hover:text-black-600'"
174
+ aria-label="Resposta não útil"
175
+ title="Resposta não útil"
176
+ >
177
+ <span :class="rating === 'negative' ? 'i-ph-thumbs-down-fill' : 'i-ph-thumbs-down'" text-15px />
178
+ </button>
179
+ </TelaPopoverTrigger>
180
+ <TelaPopoverContent
181
+ align="end"
182
+ :side-offset="4"
183
+ class="!w-auto !rounded-12px !border-neutral-200 !bg-white !p-0 !text-neutral-900 !shadow-lg"
184
+ >
185
+ <div w-288px p-12px flex="~ col" gap-10px>
186
+ <div flex="~ col" gap-2px>
187
+ <span text-14px font-medium text-neutral-900 leading-18px>O que não funcionou?</span>
188
+ <span text-12px text-neutral-500 leading-16px>Seu retorno vai para a triagem de qualidade.</span>
189
+ </div>
190
+ <div v-if="negativeReasons.length > 0" flex flex-wrap gap-6px>
191
+ <button
192
+ v-for="reason in negativeReasons"
193
+ :key="reason"
194
+ type="button"
195
+ h-26px px-10px
196
+ rounded-full
197
+ b=".5px solid"
198
+ text-12px leading-16px
199
+ transition-colors
200
+ cursor-pointer
201
+ :class="selectedReasons.includes(reason) ? 'bg-blue-100 text-blue-900 border-transparent font-medium' : 'bg-white text-neutral-600 border-neutral-300 hover:bg-neutral-50'"
202
+ @click="toggleReason(reason)"
203
+ >
204
+ {{ reason }}
205
+ </button>
206
+ </div>
207
+ <textarea
208
+ v-model="comment"
209
+ rows="2"
210
+ placeholder="Conte o que faltou (opcional)…"
211
+ aria-label="Comentário"
212
+ w-full
213
+ px-10px py-8px
214
+ rounded-8px
215
+ b=".5px neutral-300"
216
+ bg-white
217
+ outline-none
218
+ resize-none
219
+ text-13px text-neutral-900 leading-18px
220
+ focus:b-neutral-900
221
+ @keydown.escape.prevent.stop="negativeOpen = false"
222
+ />
223
+ <div flex justify-end gap-6px>
224
+ <button
225
+ type="button"
226
+ h-28px px-10px rounded-8px
227
+ text-13px font-medium text-neutral-700
228
+ hover:bg-neutral-100
229
+ transition-colors
230
+ @click="negativeOpen = false"
231
+ >
232
+ Cancelar
233
+ </button>
234
+ <button
235
+ type="button"
236
+ h-28px px-10px rounded-8px
237
+ bg-neutral-900 text-white
238
+ text-13px font-medium
239
+ transition-opacity
240
+ :disabled="!canSubmitNegative"
241
+ :class="!canSubmitNegative && 'opacity-40 cursor-not-allowed'"
242
+ @click="submitRating('negative')"
243
+ >
244
+ Enviar
245
+ </button>
246
+ </div>
247
+ </div>
248
+ </TelaPopoverContent>
249
+ </TelaPopover>
250
+ </div>
251
+ </template>
@@ -0,0 +1,7 @@
1
+ import type { Message } from '../../types/schemas/chat/conversations.js';
2
+ type __VLS_Props = {
3
+ message: Message;
4
+ };
5
+ 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>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -1,7 +1,6 @@
1
1
  import type { DeepReadonly } from 'vue';
2
2
  import type { 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 { WorkspaceSettingsResponse as WorkspaceSettings } from '../../types/schemas/chat/workspace-settings.js';
6
5
  import type { TelaAgentInputVariable } from '../../types/schemas/integrations/tela-agent-api.js';
7
6
  type __VLS_Props = {
@@ -15,30 +14,53 @@ type __VLS_Props = {
15
14
  messages?: Message[];
16
15
  conversationFiles?: ConversationFile[];
17
16
  workspaceSettings?: DeepReadonly<WorkspaceSettings> | null;
18
- allowModelSelection?: boolean;
19
17
  agentInputSchema?: readonly TelaAgentInputVariable[] | null;
20
18
  agentInputSchemaLoading?: boolean;
21
- showModelSelector?: boolean;
22
19
  showCancelButton?: boolean;
23
20
  };
24
21
  declare function addFiles(files: File[], inputName?: string): void;
25
22
  declare function setDraft(text: string): void;
26
- type __VLS_ModelProps = {
27
- 'model'?: ChatModel;
28
- };
29
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
30
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
23
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {
31
24
  addFiles: typeof addFiles;
32
25
  setDraft: typeof setDraft;
33
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
- "update:model": (value: ChatModel) => any;
35
- } & {
26
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
36
27
  cancel: () => any;
37
- send: (content: string, files: FileUploadInput[], model?: any, agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
38
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ send: (content: string, files: {
29
+ url: string;
30
+ name: string;
31
+ mimeType?: string | undefined;
32
+ vaultReference?: string | undefined;
33
+ size?: number | undefined;
34
+ }[], agentInputs?: ({
35
+ type: "file";
36
+ name: string;
37
+ vaultRef: string;
38
+ filename: string;
39
+ metadata?: string | undefined;
40
+ } | {
41
+ type: "text";
42
+ name: string;
43
+ content: string;
44
+ })[] | undefined) => any;
45
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
46
  onCancel?: (() => any) | undefined;
40
- onSend?: ((content: string, files: FileUploadInput[], model?: any, agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
41
- "onUpdate:model"?: ((value: ChatModel) => any) | undefined;
42
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ onSend?: ((content: string, files: {
48
+ url: string;
49
+ name: string;
50
+ mimeType?: string | undefined;
51
+ vaultReference?: string | undefined;
52
+ size?: number | undefined;
53
+ }[], agentInputs?: ({
54
+ type: "file";
55
+ name: string;
56
+ vaultRef: string;
57
+ filename: string;
58
+ metadata?: string | undefined;
59
+ } | {
60
+ type: "text";
61
+ name: string;
62
+ content: string;
63
+ })[] | undefined) => any) | undefined;
64
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
43
65
  declare const _default: typeof __VLS_export;
44
66
  export default _default;