@8wave/ai-elements 0.121.0-beta.46 → 0.121.0-beta.47

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 (129) hide show
  1. package/dist/_chunks/{Agent-BuPgJIt4.js → Agent-jMXkLts9.js} +36 -36
  2. package/dist/_chunks/Agent-jMXkLts9.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-BlTH2AJX.js → PkStreamingMarkdown-C43RVcRW.js} +16 -10
  4. package/dist/_chunks/PkStreamingMarkdown-C43RVcRW.js.map +1 -0
  5. package/dist/_chunks/PkToolEditedFile-BZUXx8ZG.js +51 -0
  6. package/dist/_chunks/PkToolEditedFile-BZUXx8ZG.js.map +1 -0
  7. package/dist/_chunks/{PkToolRequestGeolocation-CxMAoAv6.js → PkToolRequestGeolocation-BJc2Ki0-.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestGeolocation-CxMAoAv6.js.map → PkToolRequestGeolocation-BJc2Ki0-.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-DU1Y2odZ.js → PkToolRequestOAuthConnection-OU56LTl0.js} +2 -2
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-DU1Y2odZ.js.map → PkToolRequestOAuthConnection-OU56LTl0.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowArtifact-jQeIv65U.js → PkToolShowArtifact-yP7FXi0H.js} +2 -2
  12. package/dist/_chunks/{PkToolShowArtifact-jQeIv65U.js.map → PkToolShowArtifact-yP7FXi0H.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-D7wg3Jlu.js → PkToolShowContactForm-w6aLTe1i.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-D7wg3Jlu.js.map → PkToolShowContactForm-w6aLTe1i.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-BMVgXxzl.js → PkToolShowForm-ChhVlxqc.js} +3 -3
  16. package/dist/_chunks/{PkToolShowForm-BMVgXxzl.js.map → PkToolShowForm-ChhVlxqc.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowImageGallery-Ba0CfKt6.js → PkToolShowImageGallery-D88a9a0P.js} +2 -2
  18. package/dist/_chunks/{PkToolShowImageGallery-Ba0CfKt6.js.map → PkToolShowImageGallery-D88a9a0P.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowProductList-DbZfUUWe.js → PkToolShowProductList-Jff9j3eQ.js} +2 -2
  20. package/dist/_chunks/{PkToolShowProductList-DbZfUUWe.js.map → PkToolShowProductList-Jff9j3eQ.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowSources-Dkt4IId2.js → PkToolShowSources-lWRoFGvC.js} +3 -3
  22. package/dist/_chunks/{PkToolShowSources-Dkt4IId2.js.map → PkToolShowSources-lWRoFGvC.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowSuggestedReply-BF2sT3B1.js → PkToolShowSuggestedReply-Ds0Yf31m.js} +2 -2
  24. package/dist/_chunks/{PkToolShowSuggestedReply-BF2sT3B1.js.map → PkToolShowSuggestedReply-Ds0Yf31m.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowVideo-l8JoSKCj.js → PkToolShowVideo-fNFvCi1_.js} +2 -2
  26. package/dist/_chunks/{PkToolShowVideo-l8JoSKCj.js.map → PkToolShowVideo-fNFvCi1_.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowWebPages-DtcEmrYt.js → PkToolShowWebPages-Bah-YhpM.js} +2 -2
  28. package/dist/_chunks/{PkToolShowWebPages-DtcEmrYt.js.map → PkToolShowWebPages-Bah-YhpM.js.map} +1 -1
  29. package/dist/_chunks/{chatImagePolicy-CQYTWTkP.js → chatImagePolicy-BvKnRHdM.js} +2 -2
  30. package/dist/_chunks/{chatImagePolicy-CQYTWTkP.js.map → chatImagePolicy-BvKnRHdM.js.map} +1 -1
  31. package/dist/_chunks/{markdown-Br9ROCBT.js → markdown-B1y2QQAa.js} +13 -13
  32. package/dist/_chunks/{markdown-Br9ROCBT.js.map → markdown-B1y2QQAa.js.map} +1 -1
  33. package/dist/ai-elements.es.js +160 -144
  34. package/dist/ai-elements.es.js.map +1 -1
  35. package/dist-vue/PkChatbot.js +1 -1
  36. package/dist-vue/PkChatbotEmptyState.js +1 -1
  37. package/dist-vue/PkChatbotInput.js +1 -1
  38. package/dist-vue/PkChatbotMessages.js +1 -1
  39. package/dist-vue/PkChatbotStepPayload.js +1 -1
  40. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  41. package/dist-vue/PkChatbotSteps.js +1 -1
  42. package/dist-vue/PkChatbotViewChat.js +1 -1
  43. package/dist-vue/PkChatbotViewConversations.js +1 -1
  44. package/dist-vue/PkChatbotViewFiles.js +1 -1
  45. package/dist-vue/PkChatbotViewProfile.js +1 -1
  46. package/dist-vue/_chunks/{Agent-DZb775Ak.js → Agent-BYwOk7Tt.js} +102 -102
  47. package/dist-vue/_chunks/Agent-BYwOk7Tt.js.map +1 -0
  48. package/dist-vue/_chunks/{Document-E72l_VU6.js → Document-CQdYPyrv.js} +2 -2
  49. package/dist-vue/_chunks/{Document-E72l_VU6.js.map → Document-CQdYPyrv.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbot-CObEhs2T.js → PkChatbot-DI4aTSTJ.js} +8 -8
  51. package/dist-vue/_chunks/{PkChatbot-CObEhs2T.js.map → PkChatbot-DI4aTSTJ.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkChatbotEmptyState-Dh7ETVnf.js → PkChatbotEmptyState-CaNM6c77.js} +2 -2
  53. package/dist-vue/_chunks/{PkChatbotEmptyState-Dh7ETVnf.js.map → PkChatbotEmptyState-CaNM6c77.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbotInput-CuEoeb_M.js → PkChatbotInput-Bt02PGbZ.js} +2 -2
  55. package/dist-vue/_chunks/{PkChatbotInput-CuEoeb_M.js.map → PkChatbotInput-Bt02PGbZ.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkChatbotMessages-DMSActW1.js → PkChatbotMessages-DIeAiZ7I.js} +25 -24
  57. package/dist-vue/_chunks/PkChatbotMessages-DIeAiZ7I.js.map +1 -0
  58. package/dist-vue/_chunks/{PkChatbotStepPayload-CXdsUMrw.js → PkChatbotStepPayload-D1_JG-M8.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-CXdsUMrw.js.map → PkChatbotStepPayload-D1_JG-M8.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbpXR7jh.js → PkChatbotStepToolDetail-DKJ3qg98.js} +3 -3
  61. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbpXR7jh.js.map → PkChatbotStepToolDetail-DKJ3qg98.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotSteps-QFFZ0DjH.js → PkChatbotSteps-DgaJc9Pv.js} +5 -5
  63. package/dist-vue/_chunks/{PkChatbotSteps-QFFZ0DjH.js.map → PkChatbotSteps-DgaJc9Pv.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotViewChat-BZb-U7Ju.js → PkChatbotViewChat-DDf8UaBR.js} +30 -25
  65. package/dist-vue/_chunks/PkChatbotViewChat-DDf8UaBR.js.map +1 -0
  66. package/dist-vue/_chunks/{PkChatbotViewConversations-CCPRWCKs.js → PkChatbotViewConversations-hsboinns.js} +3 -3
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-CCPRWCKs.js.map → PkChatbotViewConversations-hsboinns.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotViewFiles-BgqksCn0.js → PkChatbotViewFiles-DDO_L8UB.js} +9 -9
  69. package/dist-vue/_chunks/PkChatbotViewFiles-DDO_L8UB.js.map +1 -0
  70. package/dist-vue/_chunks/{PkChatbotViewProfile-B6tHWrqn.js → PkChatbotViewProfile-BC7Ok94X.js} +2 -2
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-B6tHWrqn.js.map → PkChatbotViewProfile-BC7Ok94X.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkStreamingMarkdown-DwDs-cGP.js → PkStreamingMarkdown-0jN60Rku.js} +3 -3
  73. package/dist-vue/_chunks/{PkStreamingMarkdown-DwDs-cGP.js.map → PkStreamingMarkdown-0jN60Rku.js.map} +1 -1
  74. package/dist-vue/_chunks/PkToolEditedFile-DsiNIHAR.js +50 -0
  75. package/dist-vue/_chunks/PkToolEditedFile-DsiNIHAR.js.map +1 -0
  76. package/dist-vue/_chunks/{PkToolRequestGeolocation-DC8hSH0j.js → PkToolRequestGeolocation-jkEuN6_1.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolRequestGeolocation-DC8hSH0j.js.map → PkToolRequestGeolocation-jkEuN6_1.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BH_-drvw.js → PkToolRequestOAuthConnection-BTNd8Urz.js} +2 -2
  79. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BH_-drvw.js.map → PkToolRequestOAuthConnection-BTNd8Urz.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkToolShowArtifact-CjVN96wJ.js → PkToolShowArtifact-BitKlzvt.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowArtifact-CjVN96wJ.js.map → PkToolShowArtifact-BitKlzvt.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowContactForm-CmBLigw8.js → PkToolShowContactForm-DKkapC2s.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolShowContactForm-CmBLigw8.js.map → PkToolShowContactForm-DKkapC2s.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolShowDiagram-dKUU5_6F.js → PkToolShowDiagram-BI-fI2vG.js} +2 -2
  85. package/dist-vue/_chunks/{PkToolShowDiagram-dKUU5_6F.js.map → PkToolShowDiagram-BI-fI2vG.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShowForm-B6ESvq-5.js → PkToolShowForm-LR8mW4SY.js} +4 -4
  87. package/dist-vue/_chunks/{PkToolShowForm-B6ESvq-5.js.map → PkToolShowForm-LR8mW4SY.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowImageGallery-Daq0IwTH.js → PkToolShowImageGallery-DuJ_cbcf.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolShowImageGallery-Daq0IwTH.js.map → PkToolShowImageGallery-DuJ_cbcf.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowProductList-Bc3Gzyxy.js → PkToolShowProductList-D7Tw7_NR.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowProductList-Bc3Gzyxy.js.map → PkToolShowProductList-D7Tw7_NR.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowSources-BDvRbenn.js → PkToolShowSources-DeplEks2.js} +3 -3
  93. package/dist-vue/_chunks/{PkToolShowSources-BDvRbenn.js.map → PkToolShowSources-DeplEks2.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cd6VkzvJ.js → PkToolShowSuggestedReply-Dw-yePEO.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cd6VkzvJ.js.map → PkToolShowSuggestedReply-Dw-yePEO.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowVideo-Bo1gsD97.js → PkToolShowVideo-CAJhU52k.js} +2 -2
  97. package/dist-vue/_chunks/{PkToolShowVideo-Bo1gsD97.js.map → PkToolShowVideo-CAJhU52k.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowWebPages-DI3sZiqh.js → PkToolShowWebPages-Be6dKCsO.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowWebPages-DI3sZiqh.js.map → PkToolShowWebPages-Be6dKCsO.js.map} +1 -1
  100. package/dist-vue/_chunks/{createChatbotApiClient-hcFAulTq.js → createChatbotApiClient-huxzfST2.js} +16 -16
  101. package/dist-vue/_chunks/{createChatbotApiClient-hcFAulTq.js.map → createChatbotApiClient-huxzfST2.js.map} +1 -1
  102. package/dist-vue/_chunks/{useChatbotStore-Ct7G-voO.js → useChatbotStore-8tG3oA_R.js} +20 -20
  103. package/dist-vue/_chunks/{useChatbotStore-Ct7G-voO.js.map → useChatbotStore-8tG3oA_R.js.map} +1 -1
  104. package/dist-vue/_chunks/{utils-EPX3V3VI.js → utils-_H2BDYuj.js} +16 -10
  105. package/dist-vue/_chunks/utils-_H2BDYuj.js.map +1 -0
  106. package/dist-vue/api.js +1 -1
  107. package/dist-vue/composables.js +28 -18
  108. package/dist-vue/composables.js.map +1 -1
  109. package/dist-vue/index.js +5213 -5196
  110. package/dist-vue/index.js.map +1 -1
  111. package/dist-vue/locales.js +10 -0
  112. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +2 -2
  113. package/dist-vue/packages/components/src/chat/{PkToolEditSpreadsheet.d.ts → PkToolEditedFile.d.ts} +4 -3
  114. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +5 -5
  115. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +7 -7
  116. package/dist-vue/packages/composable/src/useFileRow.d.ts +7 -6
  117. package/dist-vue/packages/models/src/schema/Agent.d.ts +42 -0
  118. package/package.json +1 -1
  119. package/dist/_chunks/Agent-BuPgJIt4.js.map +0 -1
  120. package/dist/_chunks/PkStreamingMarkdown-BlTH2AJX.js.map +0 -1
  121. package/dist/_chunks/PkToolEditSpreadsheet-CDxglslA.js +0 -41
  122. package/dist/_chunks/PkToolEditSpreadsheet-CDxglslA.js.map +0 -1
  123. package/dist-vue/_chunks/Agent-DZb775Ak.js.map +0 -1
  124. package/dist-vue/_chunks/PkChatbotMessages-DMSActW1.js.map +0 -1
  125. package/dist-vue/_chunks/PkChatbotViewChat-BZb-U7Ju.js.map +0 -1
  126. package/dist-vue/_chunks/PkChatbotViewFiles-BgqksCn0.js.map +0 -1
  127. package/dist-vue/_chunks/PkToolEditSpreadsheet-B61LtERY.js +0 -40
  128. package/dist-vue/_chunks/PkToolEditSpreadsheet-B61LtERY.js.map +0 -1
  129. package/dist-vue/_chunks/utils-EPX3V3VI.js.map +0 -1
@@ -190,6 +190,7 @@ var e = {
190
190
  mimeTypeText: "Text",
191
191
  mimeTypeCode: "Code (HTML, JavaScript, JSON, Python…)",
192
192
  mimeTypeSpreadsheets: "Spreadsheets (.xlsx)",
193
+ mimeTypeWordDocuments: "Word documents (.docx)",
193
194
  mimeTypeAudio: "Audio, transcribed (up to 25 MB)",
194
195
  general: "General",
195
196
  style: "Style",
@@ -434,6 +435,7 @@ var e = {
434
435
  voiceId: "Cloned voices are not allowed here.",
435
436
  freshnessScaleExplanationMonths: "A document updated today gets a +{weight} bonus. This bonus halves to +{halfWeight} after {half} days and practically drops to zero (+{zeroWeight}) after {zero} days (approx. {months} months).",
436
437
  freshnessScaleExplanationDays: "A document updated today gets a +{weight} bonus. This bonus halves to +{halfWeight} after {half} days and practically drops to zero (+{zeroWeight}) after {zero} days.",
438
+ fileUploadToolOff: "{types}: users cannot attach them while the tool that opens them is off. You find it further down, among the tools.",
437
439
  reasoningVisibility: "A reasoning agent is used within its organization only: Organization or Private.",
438
440
  agentOnOwnEndpoint: "This agent runs on your organization's endpoint.",
439
441
  providerTimeoutMs: "1000-789000, then the next one. BYOK only.",
@@ -586,6 +588,7 @@ var e = {
586
588
  stepCount: "{n} step | {n} steps",
587
589
  stepError: "Error",
588
590
  pageControlActive: "The agent is using the page",
591
+ editWordDocumentParagraphs: "{count} paragraph changed | {count} paragraphs changed",
589
592
  editSpreadsheetCells: "{count} cell changed | {count} cells changed",
590
593
  requestGeolocation: "Requesting location…",
591
594
  requestOAuthConnectionSuccess: "Successfully connected to {name}.",
@@ -618,6 +621,8 @@ var e = {
618
621
  readSpreadsheet: "Reading the spreadsheet…",
619
622
  editSpreadsheet: "Editing the spreadsheet…",
620
623
  shareDocument: "Preparing the document…",
624
+ readWordDocument: "Reading the Word document…",
625
+ editWordDocument: "Editing the Word document…",
621
626
  querySpreadsheet: "Querying the spreadsheet…",
622
627
  geocode: "Looking up a location…",
623
628
  getWeather: "Fetching weather data…",
@@ -953,6 +958,7 @@ var e = {
953
958
  mimeTypeText: "Testo",
954
959
  mimeTypeCode: "Codice (HTML, JavaScript, JSON, Python…)",
955
960
  mimeTypeSpreadsheets: "Fogli di calcolo (.xlsx)",
961
+ mimeTypeWordDocuments: "Documenti Word (.docx)",
956
962
  mimeTypeAudio: "Audio, trascritti (fino a 25 MB)",
957
963
  general: "Generale",
958
964
  style: "Stile",
@@ -1197,6 +1203,7 @@ var e = {
1197
1203
  voiceId: "Le voci clonate qui non sono ammesse.",
1198
1204
  freshnessScaleExplanationMonths: "Un documento modificato oggi ottiene un bonus di +{weight}. Il bonus si dimezza a +{halfWeight} dopo {half} giorni e si azzera praticamente (+{zeroWeight}) dopo {zero} giorni (circa {months} mesi).",
1199
1205
  freshnessScaleExplanationDays: "Un documento modificato oggi ottiene un bonus di +{weight}. Il bonus si dimezza a +{halfWeight} dopo {half} giorni e si azzera praticamente (+{zeroWeight}) dopo {zero} giorni.",
1206
+ fileUploadToolOff: "{types}: gli utenti non possono allegarli finché lo strumento che li apre è spento. Lo trovi più sotto, fra i tool.",
1200
1207
  reasoningVisibility: "Un agente reasoning si usa solo nell'organizzazione: Organizzazione oppure Privato.",
1201
1208
  agentOnOwnEndpoint: "Questo agente gira sull’endpoint della tua organizzazione.",
1202
1209
  providerTimeoutMs: "1000-789000, poi il successivo. Solo BYOK.",
@@ -1349,6 +1356,7 @@ var e = {
1349
1356
  stepCount: "{n} passaggio | {n} passaggi",
1350
1357
  stepError: "Errore",
1351
1358
  pageControlActive: "L'agente sta usando la pagina",
1359
+ editWordDocumentParagraphs: "{count} paragrafo modificato | {count} paragrafi modificati",
1352
1360
  editSpreadsheetCells: "{count} cella modificata | {count} celle modificate",
1353
1361
  requestGeolocation: "Richiesta posizione…",
1354
1362
  requestOAuthConnectionSuccess: "Connessione a {name} riuscita.",
@@ -1381,6 +1389,8 @@ var e = {
1381
1389
  readSpreadsheet: "Lettura del foglio di calcolo…",
1382
1390
  editSpreadsheet: "Modifica del foglio di calcolo…",
1383
1391
  shareDocument: "Preparazione del documento…",
1392
+ readWordDocument: "Lettura del documento Word…",
1393
+ editWordDocument: "Modifica del documento Word…",
1384
1394
  querySpreadsheet: "Interrogazione del foglio di calcolo…",
1385
1395
  geocode: "Ricerca della posizione…",
1386
1396
  getWeather: "Recupero dati meteo…",
@@ -143,9 +143,9 @@ type __VLS_ModelProps = {
143
143
  } | undefined;
144
144
  };
145
145
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
146
- declare var __VLS_848: {};
146
+ declare var __VLS_854: {};
147
147
  type __VLS_Slots = {} & {
148
- default?: (props: typeof __VLS_848) => any;
148
+ default?: (props: typeof __VLS_854) => any;
149
149
  };
150
150
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
151
151
  "update:reasoning": (value: {
@@ -1,8 +1,9 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  /**
3
- * The version an `editSpreadsheet` call wrote, as a file to download.
4
- * Drawn once the call has an output: while it runs, the feed's activity
5
- * indicator names it, and a refused edit is explained by the answer.
3
+ * The version an `editSpreadsheet` or `editWordDocument` call wrote, as a
4
+ * file to download. Drawn once the call has an output: while it runs, the
5
+ * feed's activity indicator names it, and a refused edit is explained by
6
+ * the answer.
6
7
  */
7
8
  type __VLS_Props = {
8
9
  part: unknown;
@@ -1,4 +1,4 @@
1
- import { AgentAccess, Chat, ChatWakeupState, DeviceContext, MessageFeedback, AgentPublic, MediaSource, VoiceSession } from '../../../../models/src';
1
+ import { AgentAccess, Chat, ChatWakeupState, DeviceContext, MessageFeedback, AgentPublic, MediaSource, UserFileKind, VoiceSession } from '../../../../models/src';
2
2
  export interface ChatbotApiClientOptions {
3
3
  baseUrl: string;
4
4
  basePath?: string;
@@ -19,12 +19,12 @@ export interface SubmitLeadPayload {
19
19
  chatId: string;
20
20
  [key: string]: unknown;
21
21
  }
22
- /** A file from the user's "My files" KB, or a spreadsheet of the chat with its
23
- * versions, as listed for a chat. */
22
+ /** A file from the user's "My files" KB, or a spreadsheet or Word document of
23
+ * the chat with its versions, as listed for a chat. */
24
24
  export interface ChatbotFile {
25
25
  documentId: string;
26
- kind: 'document' | 'spreadsheet';
27
- /** For a spreadsheet version, the attachment it is a version of. */
26
+ kind: UserFileKind;
27
+ /** For a version, the attachment it is a version of. */
28
28
  sourceAttachmentId: string | null;
29
29
  name: string | null;
30
30
  mimeType: string | null;
@@ -1,5 +1,5 @@
1
1
  import { FileUIPart, ChatStatus, ChatRequestOptions, ChatAddToolOutputFunction, ChatAddToolApproveResponseFunction, ProviderMetadata, LanguageModelUsage } from 'ai';
2
- import { PageAccessLevel, ChatMessageActions, UIChatMessage, AgentWidgetLayout, AgentWidgetAppearance, AgentLoaderStrategy, StoragePolicy, AgentSearchMode, AgentBuiltInTool, WebSearchProvider, UIChatMessageMetadata, PlatformType, ToolGroupKind, BlockedReasonCode, ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, LlmIssueCategory, UserEngagement, AbuseConfidence } from '../../../models/src';
2
+ import { PageAccessLevel, ChatMessageActions, UIChatMessage, AgentWidgetLayout, AgentWidgetAppearance, AgentLoaderStrategy, StoragePolicy, AgentSearchMode, AgentBuiltInTool, WebSearchProvider, UIChatMessageMetadata, PlatformType, ToolGroupKind, BlockedReasonCode, ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, LlmIssueCategory, UserEngagement, AbuseConfidence, UserFileKind } from '../../../models/src';
3
3
  import { HostToolConfirmation, RegisteredHostTool } from './hostTools';
4
4
  import { ChatbotFile } from './api';
5
5
  import { PendingAttachment } from './types';
@@ -1720,7 +1720,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1720
1720
  isLoadingConversations: globalThis.Ref<boolean, boolean>;
1721
1721
  chatFiles: globalThis.Ref<{
1722
1722
  documentId: string;
1723
- kind: "document" | "spreadsheet";
1723
+ kind: UserFileKind;
1724
1724
  sourceAttachmentId: string | null;
1725
1725
  name: string | null;
1726
1726
  mimeType: string | null;
@@ -1728,7 +1728,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1728
1728
  createdAt: string;
1729
1729
  }[], ChatbotFile[] | {
1730
1730
  documentId: string;
1731
- kind: "document" | "spreadsheet";
1731
+ kind: UserFileKind;
1732
1732
  sourceAttachmentId: string | null;
1733
1733
  name: string | null;
1734
1734
  mimeType: string | null;
@@ -3639,7 +3639,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3639
3639
  isLoadingConversations: globalThis.Ref<boolean, boolean>;
3640
3640
  chatFiles: globalThis.Ref<{
3641
3641
  documentId: string;
3642
- kind: "document" | "spreadsheet";
3642
+ kind: UserFileKind;
3643
3643
  sourceAttachmentId: string | null;
3644
3644
  name: string | null;
3645
3645
  mimeType: string | null;
@@ -3647,7 +3647,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3647
3647
  createdAt: string;
3648
3648
  }[], ChatbotFile[] | {
3649
3649
  documentId: string;
3650
- kind: "document" | "spreadsheet";
3650
+ kind: UserFileKind;
3651
3651
  sourceAttachmentId: string | null;
3652
3652
  name: string | null;
3653
3653
  mimeType: string | null;
@@ -5558,7 +5558,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5558
5558
  isLoadingConversations: globalThis.Ref<boolean, boolean>;
5559
5559
  chatFiles: globalThis.Ref<{
5560
5560
  documentId: string;
5561
- kind: "document" | "spreadsheet";
5561
+ kind: UserFileKind;
5562
5562
  sourceAttachmentId: string | null;
5563
5563
  name: string | null;
5564
5564
  mimeType: string | null;
@@ -5566,7 +5566,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5566
5566
  createdAt: string;
5567
5567
  }[], ChatbotFile[] | {
5568
5568
  documentId: string;
5569
- kind: "document" | "spreadsheet";
5569
+ kind: UserFileKind;
5570
5570
  sourceAttachmentId: string | null;
5571
5571
  name: string | null;
5572
5572
  mimeType: string | null;
@@ -1,3 +1,4 @@
1
+ import { UserFileKind } from '../../models/src';
1
2
  /** Minimal shape a file-list row needs for the shared display helpers. */
2
3
  export interface FileRowLike {
3
4
  documentId: string;
@@ -22,20 +23,20 @@ export declare function useFileRow(urls: {
22
23
  openFile: (file: FileRowLike, download?: boolean) => void;
23
24
  formatDate: (iso: string) => string;
24
25
  };
25
- /** What tells a spreadsheet row apart from a KB document. */
26
+ /** What tells a chat file row (a spreadsheet, a Word document) apart from a KB document. */
26
27
  export interface FileKindLike {
27
- kind?: 'document' | 'spreadsheet';
28
+ kind?: UserFileKind;
28
29
  sourceAttachmentId?: string | null;
29
30
  }
30
31
  /**
31
32
  * The wording that depends on what a "My files" row is. A KB document is a
32
33
  * copy of the upload: removing it only takes it out of the assistant's reach.
33
- * A spreadsheet is the chat attachment itself and never enters the KB: its row
34
- * says so, and removing it deletes it from its chat with every version the
35
- * assistant wrote of it.
34
+ * A spreadsheet or a Word document is the chat attachment itself and never
35
+ * enters the KB: its row says so, and removing it deletes it from its chat
36
+ * with every version the assistant wrote of it.
36
37
  */
37
38
  export declare function useUserFileKind(): {
38
- isSpreadsheet: (file: FileKindLike) => boolean;
39
+ isChatFile: (file: FileKindLike) => boolean;
39
40
  kindNote: (file: FileKindLike) => string | undefined;
40
41
  removeLabel: (file: FileKindLike) => string;
41
42
  removeConfirm: (file: FileKindLike) => {
@@ -340,6 +340,8 @@ export declare enum AgentBuiltInTool {
340
340
  Spreadsheet = "spreadsheet",
341
341
  /** `querySpreadsheet` on the spreadsheets of the knowledge base. */
342
342
  QuerySpreadsheet = "querySpreadsheet",
343
+ /** `readWordDocument` and `editWordDocument`, on a chat with an attached .docx. */
344
+ WordDocument = "wordDocument",
343
345
  RunWorker = "runWorker",
344
346
  /** `scheduleWakeup`: the agent resumes this chat by itself after a delay. */
345
347
  ScheduleWakeup = "scheduleWakeup",
@@ -1199,6 +1201,34 @@ export type ChatFileUploadMimeType = (typeof CHAT_FILE_UPLOAD_DEFAULT_MIME_TYPES
1199
1201
  * `chat-spreadsheet-editing.md`).
1200
1202
  */
1201
1203
  export declare const SPREADSHEET_MIME_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
1204
+ /**
1205
+ * A Word document (.docx). Opt-in like the spreadsheet: the model reads and
1206
+ * edits it through the Word tools instead of receiving the file (spec
1207
+ * `chat-office-files.md`).
1208
+ */
1209
+ export declare const WORD_MIME_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
1210
+ /**
1211
+ * Whether a chat file is read and edited by its own tools, which hand the
1212
+ * model a note with its id instead of the file: it is not signed for the
1213
+ * model, not imported into "My files" as a document, and its versions are
1214
+ * rows of its chat.
1215
+ */
1216
+ export declare const isToolEditedFile: (mimeType: string | undefined) => boolean;
1217
+ /**
1218
+ * Whether a tool-edited file is left without the built-in that opens it on an
1219
+ * agent whose disabled built-ins are `disabled`: the model would hold an id
1220
+ * that no tool takes.
1221
+ */
1222
+ export declare const isEditedFileToolOff: (mimeType: string | undefined, disabled: readonly AgentBuiltInTool[]) => boolean;
1223
+ /**
1224
+ * What a "My files" row is: a document of the knowledge base (a copy of the
1225
+ * upload), or a tool-edited file of a chat, the attachment itself with the
1226
+ * versions written of it. The one list the type and the response schema of
1227
+ * the route read: the schema kept a copy of its own, without the Word
1228
+ * document, and every listing holding one answered 500.
1229
+ */
1230
+ export declare const USER_FILE_KINDS: readonly ["document", "spreadsheet", "wordDocument"];
1231
+ export type UserFileKind = (typeof USER_FILE_KINDS)[number];
1202
1232
  export declare const CHAT_FILE_UPLOAD_MAX_FILE_SIZE_BYTES = 104857600;
1203
1233
  export declare const AgentFileUploadSchema: z.ZodObject<{
1204
1234
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -1208,6 +1238,18 @@ export declare const AgentFileUploadSchema: z.ZodObject<{
1208
1238
  maxFilesPerChat: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1209
1239
  }, z.core.$strip>;
1210
1240
  export type AgentFileUpload = z.infer<typeof AgentFileUploadSchema>;
1241
+ /**
1242
+ * The upload policy an agent applies, from its stored settings: a spreadsheet
1243
+ * or a Word document is accepted only while the built-in that opens it is on,
1244
+ * whatever its category says. The stored list keeps the type, so turning the
1245
+ * tool back on accepts it again.
1246
+ */
1247
+ export declare const agentFileUploadPolicy: (settings: {
1248
+ fileUpload?: unknown;
1249
+ tools?: {
1250
+ disabled?: readonly AgentBuiltInTool[];
1251
+ };
1252
+ } | undefined) => AgentFileUpload;
1211
1253
  export declare const AgentGatewayOptionsSchema: z.ZodObject<{
1212
1254
  zeroDataRetention: z.ZodDefault<z.ZodBoolean>;
1213
1255
  disallowPromptTraining: z.ZodDefault<z.ZodBoolean>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.121.0-beta.46",
4
+ "version": "0.121.0-beta.47",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",