@8wave/ai-elements 0.121.0-beta.3 → 0.121.0-beta.30
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.
- package/README.md +125 -54
- package/dist/_chunks/{Agent-BYC51e6E.js → Agent-wvUJZjp3.js} +70 -61
- package/dist/_chunks/Agent-wvUJZjp3.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-CNoHyTuC.js → PkStreamingMarkdown-DeZn-hPo.js} +846 -841
- package/dist/_chunks/PkStreamingMarkdown-DeZn-hPo.js.map +1 -0
- package/dist/_chunks/{PkToolEditSpreadsheet-B8bO3vZa.js → PkToolEditSpreadsheet-BJEWc_nV.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-B8bO3vZa.js.map → PkToolEditSpreadsheet-BJEWc_nV.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DrvL0h9d.js → PkToolRequestGeolocation-CPU3e3iJ.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DrvL0h9d.js.map → PkToolRequestGeolocation-CPU3e3iJ.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BXti5Vkt.js → PkToolRequestOAuthConnection-C8nfpS3d.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-BXti5Vkt.js.map → PkToolRequestOAuthConnection-C8nfpS3d.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DR71LNck.js → PkToolShowArtifact-Bt_qBvdI.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DR71LNck.js.map → PkToolShowArtifact-Bt_qBvdI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-C4BshHSs.js → PkToolShowContactForm-BwKW5txM.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-C4BshHSs.js.map → PkToolShowContactForm-BwKW5txM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BLSTn0xE.js → PkToolShowForm-DJhe2pV3.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-BLSTn0xE.js.map → PkToolShowForm-DJhe2pV3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CqOXbo0Y.js → PkToolShowImageGallery-DPEIoeDc.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CqOXbo0Y.js.map → PkToolShowImageGallery-DPEIoeDc.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-westY5bY.js → PkToolShowProductList-C5alYUrB.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-westY5bY.js.map → PkToolShowProductList-C5alYUrB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Dy9VXRgv.js → PkToolShowSources-CkwbyMdU.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Dy9VXRgv.js.map → PkToolShowSources-CkwbyMdU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BZ2U3ULB.js → PkToolShowSuggestedReply-C-yCzH_d.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BZ2U3ULB.js.map → PkToolShowSuggestedReply-C-yCzH_d.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CrFaQbMp.js → PkToolShowVideo-DL554qVB.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CrFaQbMp.js.map → PkToolShowVideo-DL554qVB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DXszshY9.js → PkToolShowWebPages-D35l7s9P.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-DXszshY9.js.map → PkToolShowWebPages-D35l7s9P.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-B5-QV037.js → chatImagePolicy-Caj4GsFN.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-B5-QV037.js.map → chatImagePolicy-Caj4GsFN.js.map} +1 -1
- package/dist/_chunks/{markdown-DO_FLvlJ.js → markdown-DzN3Q-au.js} +10 -10
- package/dist/_chunks/{markdown-DO_FLvlJ.js.map → markdown-DzN3Q-au.js.map} +1 -1
- package/dist/ai-elements.es.js +3912 -3048
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-2DVqpLwz.js → Agent-ywfLo1Hg.js} +71 -61
- package/dist-vue/_chunks/Agent-ywfLo1Hg.js.map +1 -0
- package/dist-vue/_chunks/{Document-ChfbOVVs.js → Document-DqkgJZNx.js} +10 -10
- package/dist-vue/_chunks/{Document-ChfbOVVs.js.map → Document-DqkgJZNx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-DsZ8mAbt.js → PkChatbot-CLy8LgF8.js} +9 -9
- package/dist-vue/_chunks/PkChatbot-CLy8LgF8.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-DqzgF4vH.js → PkChatbotEmptyState-DLg5tLl5.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DqzgF4vH.js.map → PkChatbotEmptyState-DLg5tLl5.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-BRhIG8HR.js → PkChatbotInput-CjE0vZAK.js} +87 -80
- package/dist-vue/_chunks/PkChatbotInput-CjE0vZAK.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-WryjcyH7.js → PkChatbotMessages-Dzc0kzyo.js} +18 -18
- package/dist-vue/_chunks/PkChatbotMessages-Dzc0kzyo.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bga_HEps.js → PkChatbotStepPayload-DjGNmloY.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bga_HEps.js.map → PkChatbotStepPayload-DjGNmloY.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-YbUYP-Y3.js → PkChatbotStepToolDetail-CUIWz1nJ.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-YbUYP-Y3.js.map → PkChatbotStepToolDetail-CUIWz1nJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CVAkaIzk.js → PkChatbotSteps-B4r68w6z.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CVAkaIzk.js.map → PkChatbotSteps-B4r68w6z.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-B1gbdvs1.js → PkChatbotViewChat-B1iNTeQm.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-B1gbdvs1.js.map → PkChatbotViewChat-B1iNTeQm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BHvHF0w7.js → PkChatbotViewConversations-D608ghH3.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BHvHF0w7.js.map → PkChatbotViewConversations-D608ghH3.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-C-4__qj_.js → PkChatbotViewFiles-CTg7R5HF.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-C-4__qj_.js.map → PkChatbotViewFiles-CTg7R5HF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-_WMSVDlA.js → PkChatbotViewProfile-HBgg-zuj.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-_WMSVDlA.js.map → PkChatbotViewProfile-HBgg-zuj.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-6Y7qgbvS.js → PkStreamingMarkdown-O7p8Vyju.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-6Y7qgbvS.js.map → PkStreamingMarkdown-O7p8Vyju.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BTauPyXT.js → PkToolEditSpreadsheet-B_Ge2pGx.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BTauPyXT.js.map → PkToolEditSpreadsheet-B_Ge2pGx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBzup6bn.js → PkToolRequestGeolocation-D0FIRJk2.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBzup6bn.js.map → PkToolRequestGeolocation-D0FIRJk2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yrRDpNqp.js → PkToolRequestOAuthConnection-DFlZkvLP.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yrRDpNqp.js.map → PkToolRequestOAuthConnection-DFlZkvLP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-fp37O1om.js → PkToolShowArtifact-BTY19659.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-fp37O1om.js.map → PkToolShowArtifact-BTY19659.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-iSx2ioyT.js → PkToolShowContactForm-D82n3tZ4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-iSx2ioyT.js.map → PkToolShowContactForm-D82n3tZ4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BlKrh4gK.js → PkToolShowDiagram-BlIarn5u.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BlKrh4gK.js.map → PkToolShowDiagram-BlIarn5u.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CwlXH13N.js → PkToolShowForm-b5m2ahty.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-CwlXH13N.js.map → PkToolShowForm-b5m2ahty.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-C4esYiM_.js → PkToolShowImageGallery-CtIphioH.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-C4esYiM_.js.map → PkToolShowImageGallery-CtIphioH.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CdeYQ-mF.js → PkToolShowProductList-Vq4zUoN5.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CdeYQ-mF.js.map → PkToolShowProductList-Vq4zUoN5.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-D8IF7g0d.js → PkToolShowSources-B-r0dOgi.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-D8IF7g0d.js.map → PkToolShowSources-B-r0dOgi.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DXyO8ki2.js → PkToolShowSuggestedReply-Dl2VLfJk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DXyO8ki2.js.map → PkToolShowSuggestedReply-Dl2VLfJk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CA7MNSp_.js → PkToolShowVideo-CssORBGr.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CA7MNSp_.js.map → PkToolShowVideo-CssORBGr.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CKWnAbp8.js → PkToolShowWebPages-Bhpc1HA2.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CKWnAbp8.js.map → PkToolShowWebPages-Bhpc1HA2.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DecVahlB.js → createChatbotApiClient-DN6SHs1X.js} +29 -21
- package/dist-vue/_chunks/createChatbotApiClient-DN6SHs1X.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-BQTq8fq-.js → useChatbotStore-BlIWevWi.js} +1037 -920
- package/dist-vue/_chunks/useChatbotStore-BlIWevWi.js.map +1 -0
- package/dist-vue/_chunks/{utils-BLMOBcka.js → utils-FkhB6Tl2.js} +36 -41
- package/dist-vue/_chunks/utils-FkhB6Tl2.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +12 -4
- package/dist-vue/apps/web-component/src/components/FloatingChatWidget.ce.d.ts +4 -3
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +11 -5
- package/dist-vue/apps/web-component/src/composables/useChatbotProfileProvider.d.ts +3 -2
- package/dist-vue/apps/web-component/src/composables/useCopilotPageCss.d.ts +12 -4
- package/dist-vue/apps/web-component/src/composables/usePageModal.d.ts +19 -0
- package/dist-vue/apps/web-component/src/lib.d.ts +10 -3
- package/dist-vue/apps/web-component/src/pageTools/actions.d.ts +33 -0
- package/dist-vue/apps/web-component/src/pageTools/navigation.d.ts +27 -0
- package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +18 -2
- package/dist-vue/apps/web-component/src/utils/emitWidgetEvent.d.ts +8 -0
- package/dist-vue/apps/web-component/src/utils/layout.d.ts +3 -3
- package/dist-vue/composables.js +213 -25
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4051 -4015
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +54 -20
- package/dist-vue/packages/auth/src/active-membership.d.ts +2 -0
- package/dist-vue/packages/components/src/PkSkeleton.d.ts +1 -1
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +8 -5
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmDialog.d.ts +19 -0
- package/dist-vue/packages/components/src/chat/PkWebSearchSettings.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +5 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +7 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +123 -13
- package/dist-vue/packages/models/src/schema/Agent.d.ts +53 -25
- package/dist-vue/packages/models/src/schema/Chat.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Member.d.ts +13 -2
- package/dist-vue/packages/models/src/schema/Organization.d.ts +105 -0
- package/dist-vue/packages/models/src/schema/OrganizationDeletion.d.ts +197 -0
- package/dist-vue/packages/models/src/schema/OrganizationExternalAuth.d.ts +8 -2
- package/dist-vue/packages/models/src/schema/OrganizationIdentityProvider.d.ts +4 -1
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -3
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +5 -3
- package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-BYC51e6E.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown-CNoHyTuC.js.map +0 -1
- package/dist-vue/_chunks/Agent-2DVqpLwz.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-DsZ8mAbt.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-BRhIG8HR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-WryjcyH7.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-DecVahlB.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-BQTq8fq-.js.map +0 -1
- package/dist-vue/_chunks/utils-BLMOBcka.js.map +0 -1
- package/dist-vue/apps/web-component/src/composables/useCopilotPush.d.ts +0 -25
package/dist-vue/locales.js
CHANGED
|
@@ -248,9 +248,10 @@ var e = {
|
|
|
248
248
|
floatingButtonPosition: "Side",
|
|
249
249
|
left: "Left",
|
|
250
250
|
right: "Right",
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
widgetAppearance: "Appearance",
|
|
252
|
+
widgetAppearanceSolid: "Solid",
|
|
253
|
+
widgetAppearanceGlass: "Glass",
|
|
254
|
+
hideFloatingButton: "Hide the open button",
|
|
254
255
|
workingGlow: "Glow while working",
|
|
255
256
|
copilotPageCss: "Page CSS",
|
|
256
257
|
maxMessageLength: "Max message length",
|
|
@@ -454,8 +455,9 @@ var e = {
|
|
|
454
455
|
interactiveLogin: "Lets anonymous users sign in from the chat. The external token stays active.",
|
|
455
456
|
widgetLayoutCopilot: "Docked on one side, the site framed beside it.",
|
|
456
457
|
widgetLayoutFloating: "A button opens the chat in a card over the page.",
|
|
457
|
-
|
|
458
|
-
|
|
458
|
+
widgetAppearanceGlass: "The site shows through the chat, blurred; on a phone it stays solid.",
|
|
459
|
+
widgetAppearanceSolid: "The chat has the theme's solid background.",
|
|
460
|
+
hideFloatingButton: "The chat opens only from a button on your site, which you add: it calls open() on the widget, see the README.",
|
|
459
461
|
workingGlow: "A light runs along the frame of the site while the agent works.",
|
|
460
462
|
copilotPageCss: "Added to your site's page while the chat is open beside it: move a fixed header aside with right: var(--chatbot-copilot-width).",
|
|
461
463
|
customCss: "CSS injected into the widget shadow DOM. Allows styling the chat interface from the outside.",
|
|
@@ -483,7 +485,7 @@ var e = {
|
|
|
483
485
|
userFeedbackNegative: "The user rated this answer negatively",
|
|
484
486
|
userFeedbackReaction: "The user reacted to this answer",
|
|
485
487
|
channel: {
|
|
486
|
-
frontoffice: "The agent
|
|
488
|
+
frontoffice: "The agent appears in the platform: on the Try page and the other Monitor pages.",
|
|
487
489
|
app: "The agent is accessible via the dedicated public page.",
|
|
488
490
|
widget: "The agent can be embedded in websites via embed script."
|
|
489
491
|
},
|
|
@@ -493,8 +495,11 @@ var e = {
|
|
|
493
495
|
includeThoughts: "Streams the model's thoughts to the client along with the response.",
|
|
494
496
|
reasoningNotSupported: "Reasoning is not supported for the selected provider.",
|
|
495
497
|
voiceRemaining: "Time left in this call",
|
|
496
|
-
webSearchNative: "Uses {provider}'s built-in web search capabilities.",
|
|
497
498
|
webSearchNativeFallback: "This model has no built-in web search: searches go through Perplexity.",
|
|
499
|
+
webSearchNativeWithoutSearch: "Uses {provider}'s built-in search; a fallback model without one does not search.",
|
|
500
|
+
webSearchNative: "Uses {provider}'s built-in web search capabilities.",
|
|
501
|
+
webSearchNativeChainWithoutSearch: "Each model uses its own provider's built-in search ({providers}); a fallback model without one does not search.",
|
|
502
|
+
webSearchNativeChain: "Each model uses its own provider's built-in search: {providers}.",
|
|
498
503
|
webSearchEnabled: "Allow the agent to search the web during conversations.",
|
|
499
504
|
allowedDomains: "Only search within these domains.",
|
|
500
505
|
blockedDomains: "Exclude these domains from results."
|
|
@@ -540,7 +545,7 @@ var e = {
|
|
|
540
545
|
runWorker: "Parallel workers"
|
|
541
546
|
},
|
|
542
547
|
channel: {
|
|
543
|
-
frontoffice: "
|
|
548
|
+
frontoffice: "Platform",
|
|
544
549
|
app: "App",
|
|
545
550
|
widget: "Widget"
|
|
546
551
|
}
|
|
@@ -600,6 +605,7 @@ var e = {
|
|
|
600
605
|
fetchTeamsChannelHistory: "Reading channel history…",
|
|
601
606
|
readEarlierMessages: "Rereading earlier messages…",
|
|
602
607
|
readChatAttachment: "Rereading an attached file…",
|
|
608
|
+
sendChatFile: "Sending the file again…",
|
|
603
609
|
enableTools: "Enabling tools…",
|
|
604
610
|
searchingDocuments: "Memory search…",
|
|
605
611
|
expandChunkContext: "Reading more context…",
|
|
@@ -640,9 +646,15 @@ var e = {
|
|
|
640
646
|
form: "Filling in a form…",
|
|
641
647
|
snapshot: "Reading the page…",
|
|
642
648
|
read: "Reading a section of the page…",
|
|
649
|
+
find: "Finding on the page…",
|
|
650
|
+
wait: "Waiting for the page…",
|
|
643
651
|
click: "Clicking on the page…",
|
|
644
652
|
fill: "Filling in a field…",
|
|
645
|
-
scroll: "Scrolling the page…"
|
|
653
|
+
scroll: "Scrolling the page…",
|
|
654
|
+
hover: "Pointing at an element…",
|
|
655
|
+
press: "Pressing a key…",
|
|
656
|
+
back: "Going back…",
|
|
657
|
+
navigate: "Opening a page…"
|
|
646
658
|
}
|
|
647
659
|
},
|
|
648
660
|
twoFactor: {
|
|
@@ -679,8 +691,13 @@ var e = {
|
|
|
679
691
|
pageElement: "an element",
|
|
680
692
|
pageSubmit: "The agent wants to submit the form with “{name}”. Allow it?",
|
|
681
693
|
pageOpen: "The agent wants to open “{name}”: the page will change. Allow it?",
|
|
694
|
+
pageAnswer: "The page asks: “{question}” The agent wants to answer “{name}”. Allow it?",
|
|
682
695
|
pageClick: "The agent wants to click “{name}”. Allow it?",
|
|
683
|
-
pageFill: "The agent wants to write in “{name}”. Allow it?"
|
|
696
|
+
pageFill: "The agent wants to write “{value}” in “{name}”. Allow it?",
|
|
697
|
+
pageHover: "The agent wants to point at “{name}”. Allow it?",
|
|
698
|
+
pagePress: "The agent wants to press {key} on “{name}”. Allow it?",
|
|
699
|
+
pageBack: "The agent wants to go back to the previous page. Allow it?",
|
|
700
|
+
pageNavigate: "The agent wants to open “{url}”. Allow it?"
|
|
684
701
|
},
|
|
685
702
|
confirmTitle: { deleteMyConversations: "Delete all your conversations?" },
|
|
686
703
|
toolSelection: {
|
|
@@ -975,9 +992,10 @@ var e = {
|
|
|
975
992
|
floatingButtonPosition: "Lato",
|
|
976
993
|
left: "Sinistra",
|
|
977
994
|
right: "Destra",
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
995
|
+
widgetAppearance: "Aspetto",
|
|
996
|
+
widgetAppearanceSolid: "Pieno",
|
|
997
|
+
widgetAppearanceGlass: "Vetro",
|
|
998
|
+
hideFloatingButton: "Nascondi il pulsante di apertura",
|
|
981
999
|
workingGlow: "Bagliore mentre lavora",
|
|
982
1000
|
copilotPageCss: "CSS della pagina",
|
|
983
1001
|
maxMessageLength: "Lunghezza massima messaggio",
|
|
@@ -1181,8 +1199,9 @@ var e = {
|
|
|
1181
1199
|
interactiveLogin: "Permette agli utenti anonimi di accedere dalla chat. L'external token resta sempre attivo.",
|
|
1182
1200
|
widgetLayoutCopilot: "Agganciata a un lato, con il sito incorniciato accanto.",
|
|
1183
1201
|
widgetLayoutFloating: "Un pulsante apre la chat in una scheda sopra la pagina.",
|
|
1184
|
-
|
|
1185
|
-
|
|
1202
|
+
widgetAppearanceGlass: "Il sito si vede sfocato dietro la chat; sul telefono resta piena.",
|
|
1203
|
+
widgetAppearanceSolid: "La chat ha lo sfondo pieno del tema.",
|
|
1204
|
+
hideFloatingButton: "La chat si apre solo da un pulsante del sito, che va aggiunto: chiama open() sul widget, vedi il README.",
|
|
1186
1205
|
workingGlow: "Una luce percorre la cornice del sito mentre l'agente lavora.",
|
|
1187
1206
|
copilotPageCss: "Aggiunto alla pagina del sito mentre la chat è aperta accanto: sposta un'intestazione fissa con right: var(--chatbot-copilot-width).",
|
|
1188
1207
|
customCss: "CSS iniettato nello shadow DOM del widget. Permette di personalizzare l'interfaccia della chat dall'esterno.",
|
|
@@ -1210,7 +1229,7 @@ var e = {
|
|
|
1210
1229
|
userFeedbackNegative: "L'utente ha valutato negativamente questa risposta",
|
|
1211
1230
|
userFeedbackReaction: "L'utente ha reagito a questa risposta",
|
|
1212
1231
|
channel: {
|
|
1213
|
-
frontoffice: "L'agente
|
|
1232
|
+
frontoffice: "L'agente compare nella piattaforma: nella pagina Prova e nelle altre pagine di Monitora.",
|
|
1214
1233
|
app: "L'agente è accessibile tramite la pagina pubblica dedicata.",
|
|
1215
1234
|
widget: "L'agente è incorporabile nei siti web tramite embed script."
|
|
1216
1235
|
},
|
|
@@ -1220,8 +1239,11 @@ var e = {
|
|
|
1220
1239
|
includeThoughts: "Invia i pensieri del modello al client insieme alla risposta.",
|
|
1221
1240
|
reasoningNotSupported: "Il reasoning non è supportato per il provider selezionato.",
|
|
1222
1241
|
voiceRemaining: "Tempo che resta in questa chiamata",
|
|
1223
|
-
webSearchNative: "Usa le funzionalità di ricerca web integrate di {provider}.",
|
|
1224
1242
|
webSearchNativeFallback: "Questo modello non ha una ricerca web integrata: le ricerche passano da Perplexity.",
|
|
1243
|
+
webSearchNativeWithoutSearch: "Usa la ricerca integrata di {provider}; un modello di fallback che non ce l'ha non cerca.",
|
|
1244
|
+
webSearchNative: "Usa le funzionalità di ricerca web integrate di {provider}.",
|
|
1245
|
+
webSearchNativeChainWithoutSearch: "Ogni modello usa la ricerca integrata del suo fornitore ({providers}); un modello di fallback che non ce l'ha non cerca.",
|
|
1246
|
+
webSearchNativeChain: "Ogni modello usa la ricerca integrata del suo fornitore: {providers}.",
|
|
1225
1247
|
webSearchEnabled: "Permetti all'agente di cercare informazioni sul web durante le conversazioni.",
|
|
1226
1248
|
allowedDomains: "Cerca solo all'interno di questi domini.",
|
|
1227
1249
|
blockedDomains: "Escludi questi domini dai risultati."
|
|
@@ -1267,7 +1289,7 @@ var e = {
|
|
|
1267
1289
|
runWorker: "Worker parallelo"
|
|
1268
1290
|
},
|
|
1269
1291
|
channel: {
|
|
1270
|
-
frontoffice: "
|
|
1292
|
+
frontoffice: "Piattaforma",
|
|
1271
1293
|
app: "App",
|
|
1272
1294
|
widget: "Widget"
|
|
1273
1295
|
}
|
|
@@ -1327,6 +1349,7 @@ var e = {
|
|
|
1327
1349
|
fetchTeamsChannelHistory: "Lettura cronologia canale…",
|
|
1328
1350
|
readEarlierMessages: "Rilettura dei messaggi precedenti…",
|
|
1329
1351
|
readChatAttachment: "Rilettura di un file allegato…",
|
|
1352
|
+
sendChatFile: "Nuovo invio del file…",
|
|
1330
1353
|
enableTools: "Attivazione dei tool…",
|
|
1331
1354
|
searchingDocuments: "Ricerca nella memoria…",
|
|
1332
1355
|
expandChunkContext: "Lettura di altro contesto…",
|
|
@@ -1367,9 +1390,15 @@ var e = {
|
|
|
1367
1390
|
form: "Compilazione di un modulo…",
|
|
1368
1391
|
snapshot: "Lettura della pagina…",
|
|
1369
1392
|
read: "Lettura di una sezione della pagina…",
|
|
1393
|
+
find: "Ricerca nella pagina…",
|
|
1394
|
+
wait: "Attesa della pagina…",
|
|
1370
1395
|
click: "Clic sulla pagina…",
|
|
1371
1396
|
fill: "Compilazione di un campo…",
|
|
1372
|
-
scroll: "Scorrimento della pagina…"
|
|
1397
|
+
scroll: "Scorrimento della pagina…",
|
|
1398
|
+
hover: "Puntamento di un elemento…",
|
|
1399
|
+
press: "Pressione di un tasto…",
|
|
1400
|
+
back: "Ritorno alla pagina precedente…",
|
|
1401
|
+
navigate: "Apertura di una pagina…"
|
|
1373
1402
|
}
|
|
1374
1403
|
},
|
|
1375
1404
|
twoFactor: {
|
|
@@ -1406,8 +1435,13 @@ var e = {
|
|
|
1406
1435
|
pageElement: "un elemento",
|
|
1407
1436
|
pageSubmit: "L'agente vuole inviare il modulo con «{name}». Consenti?",
|
|
1408
1437
|
pageOpen: "L'agente vuole aprire «{name}»: la pagina cambierà. Consenti?",
|
|
1438
|
+
pageAnswer: "La pagina chiede: «{question}» L'agente vuole rispondere «{name}». Consenti?",
|
|
1409
1439
|
pageClick: "L'agente vuole cliccare «{name}». Consenti?",
|
|
1410
|
-
pageFill: "L'agente vuole scrivere in «{name}». Consenti?"
|
|
1440
|
+
pageFill: "L'agente vuole scrivere «{value}» in «{name}». Consenti?",
|
|
1441
|
+
pageHover: "L'agente vuole puntare «{name}». Consenti?",
|
|
1442
|
+
pagePress: "L'agente vuole premere {key} su «{name}». Consenti?",
|
|
1443
|
+
pageBack: "L'agente vuole tornare alla pagina precedente. Consenti?",
|
|
1444
|
+
pageNavigate: "L'agente vuole aprire «{url}». Consenti?"
|
|
1411
1445
|
},
|
|
1412
1446
|
confirmTitle: { deleteMyConversations: "Eliminare tutte le vostre conversazioni?" },
|
|
1413
1447
|
toolSelection: {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** The role in the database, or `null` when the user is not a member. */
|
|
2
|
+
export declare function storedMemberRole(userId: string, organizationId: string): Promise<string | null>;
|
|
1
3
|
/**
|
|
2
4
|
* The role `userId` holds in `organizationId` now, or `null` when they are
|
|
3
5
|
* not a member. A role is cached, an absence is not: a membership created
|
|
@@ -10,8 +10,8 @@ declare const __VLS_export: __VLS_WithSlots< DefineComponent<{
|
|
|
10
10
|
rows?: number | string;
|
|
11
11
|
rowClasses?: string[];
|
|
12
12
|
}> & Readonly<{}>, {
|
|
13
|
-
loading: boolean;
|
|
14
13
|
rows: number | string;
|
|
14
|
+
loading: boolean;
|
|
15
15
|
rowClasses: string[];
|
|
16
16
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
17
17
|
skeleton?: (props: {}) => any;
|
|
@@ -55,7 +55,8 @@ type __VLS_ModelProps = {
|
|
|
55
55
|
'floatingButtonPosition'?: 'left' | 'right';
|
|
56
56
|
'layout'?: 'floating' | 'copilot';
|
|
57
57
|
'workingGlow'?: boolean;
|
|
58
|
-
'
|
|
58
|
+
'appearance'?: 'solid' | 'glass';
|
|
59
|
+
'hideFloatingButton'?: boolean;
|
|
59
60
|
'copilotPageCss'?: string | undefined;
|
|
60
61
|
'maxMessageLength'?: number | undefined;
|
|
61
62
|
'media'?: Media | undefined;
|
|
@@ -131,9 +132,9 @@ type __VLS_ModelProps = {
|
|
|
131
132
|
} | undefined;
|
|
132
133
|
};
|
|
133
134
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
134
|
-
declare var
|
|
135
|
+
declare var __VLS_841: {};
|
|
135
136
|
type __VLS_Slots = {} & {
|
|
136
|
-
default?: (props: typeof
|
|
137
|
+
default?: (props: typeof __VLS_841) => any;
|
|
137
138
|
};
|
|
138
139
|
declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
139
140
|
"update:reasoning": (value: {
|
|
@@ -247,7 +248,8 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
247
248
|
"update:floatingButtonPosition": (value: "left" | "right") => any;
|
|
248
249
|
"update:layout": (value: "floating" | "copilot") => any;
|
|
249
250
|
"update:workingGlow": (value: boolean) => any;
|
|
250
|
-
"update:
|
|
251
|
+
"update:appearance": (value: "solid" | "glass") => any;
|
|
252
|
+
"update:hideFloatingButton": (value: boolean) => any;
|
|
251
253
|
"update:copilotPageCss": (value: string | undefined) => any;
|
|
252
254
|
"update:maxMessageLength": (value: number | undefined) => any;
|
|
253
255
|
"update:media": (value: {
|
|
@@ -510,7 +512,8 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
510
512
|
"onUpdate:floatingButtonPosition"?: ((value: "left" | "right") => any) | undefined;
|
|
511
513
|
"onUpdate:layout"?: ((value: "floating" | "copilot") => any) | undefined;
|
|
512
514
|
"onUpdate:workingGlow"?: ((value: boolean) => any) | undefined;
|
|
513
|
-
"onUpdate:
|
|
515
|
+
"onUpdate:appearance"?: ((value: "solid" | "glass") => any) | undefined;
|
|
516
|
+
"onUpdate:hideFloatingButton"?: ((value: boolean) => any) | undefined;
|
|
514
517
|
"onUpdate:copilotPageCss"?: ((value: string | undefined) => any) | undefined;
|
|
515
518
|
"onUpdate:maxMessageLength"?: ((value: number | undefined) => any) | undefined;
|
|
516
519
|
"onUpdate:media"?: ((value: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* The confirmation card of a host call, in the top layer: shown while the
|
|
4
|
+
* page that embeds the widget has a modal dialog open (spec
|
|
5
|
+
* `page-tools.md`). That dialog makes everything else inert, the chat and
|
|
6
|
+
* its card included, so the card the agent waits on could not be clicked.
|
|
7
|
+
* A modal dialog of its own, opened last, is the one the page lets the
|
|
8
|
+
* user answer; once answered, the page's dialog is active again.
|
|
9
|
+
*/
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
question: string;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14
|
+
respond: (approved: boolean) => any;
|
|
15
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onRespond?: ((approved: boolean) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -2,6 +2,8 @@ import { AgentWebSearch, WebSearchProvider } from '../../../models/src';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
activeProvider: string;
|
|
5
|
+
/** The agent's fallback models, which the gateway may answer with. */
|
|
6
|
+
fallbackModels?: string[];
|
|
5
7
|
disabled?: boolean;
|
|
6
8
|
};
|
|
7
9
|
type __VLS_ModelProps = {
|
|
@@ -76,6 +76,11 @@ export declare function getToolApprovalId(part: UIMessage['parts'][number] | nul
|
|
|
76
76
|
export declare function getPartState(part: UIMessage['parts'][number] | null | undefined): string | undefined;
|
|
77
77
|
export declare function isLoadingState(state?: string): boolean;
|
|
78
78
|
export declare function getContrast(hexcolor?: string): 'black' | 'white';
|
|
79
|
+
/**
|
|
80
|
+
* True for a hex color with almost no hue: black, white and the grays between.
|
|
81
|
+
* Anything else, a color the function cannot read included, counts as colored.
|
|
82
|
+
*/
|
|
83
|
+
export declare function isAchromaticColor(hexcolor: string | undefined): boolean;
|
|
79
84
|
/**
|
|
80
85
|
* Resolves the contrast color based on the user's `textColor` preference.
|
|
81
86
|
* Falls back to WCAG auto-detection via `getContrast` when set to `'auto'` or `undefined`.
|
|
@@ -40,6 +40,11 @@ export interface ChatbotApiClient {
|
|
|
40
40
|
stopChatWakeup(agentId: string, chatId: string): Promise<ChatWakeupState>;
|
|
41
41
|
/** The chat is open in a visible tab: its wakeups mail nothing meanwhile. */
|
|
42
42
|
markChatWakeupPresence(agentId: string, chatId: string): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* The user's Stop of the turn running in a chat (spec
|
|
45
|
+
* resumable-chat-streams): false when none was, so its answer is stored.
|
|
46
|
+
*/
|
|
47
|
+
stopChatTurn(agentId: string, chatId: string): Promise<boolean>;
|
|
43
48
|
updateChatTitle(agentId: string, chatId: string, title: string): Promise<Chat>;
|
|
44
49
|
deleteChat(agentId: string, chatId: string): Promise<void>;
|
|
45
50
|
getMessageFeedbacks(chatId: string): Promise<MessageFeedback[]>;
|
|
@@ -53,6 +58,8 @@ export interface ChatbotApiClient {
|
|
|
53
58
|
appendAuthToken(url: string): string;
|
|
54
59
|
uploadMedia(agentId: string, chatId: string, file: File): Promise<MediaSource>;
|
|
55
60
|
getChatEndpoint(agentId: string, type?: 'chat' | 'reasoning'): string;
|
|
61
|
+
/** Where a client resumes the stream of the turn running in a chat. */
|
|
62
|
+
getChatStreamEndpoint(agentId: string, chatId: string): string;
|
|
56
63
|
expandSourceContext(agentId: string, documentId: string, chunkIndex: number, windowSize?: number): Promise<{
|
|
57
64
|
content: string;
|
|
58
65
|
}>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PageAccessLevel, ChatMessageActions, UIChatMessage, AgentWidgetLayout,
|
|
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';
|
|
3
3
|
import { RegisteredHostTool } from './hostTools';
|
|
4
4
|
import { ChatbotFile } from './api';
|
|
5
5
|
import { PendingAttachment } from './types';
|
|
6
6
|
import { Store } from 'pinia';
|
|
7
7
|
import { ChatbotApiClient } from '../../../../apps/web-component/src/api';
|
|
8
8
|
import { SharedV4ProviderMetadata, JSONObject } from '@ai-sdk/provider';
|
|
9
|
-
import { ProviderMetadata, LanguageModelUsage, ChatRequestOptions } from 'ai';
|
|
10
9
|
export type { JSONObject } from '@ai-sdk/provider';
|
|
11
10
|
/**
|
|
12
11
|
* Id prefix of the spoken QUESTIONS the client shows before the server has
|
|
@@ -56,7 +55,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
56
55
|
welcomePopup: boolean;
|
|
57
56
|
floatingButtonPosition: "left" | "right";
|
|
58
57
|
layout: AgentWidgetLayout;
|
|
59
|
-
|
|
58
|
+
appearance: AgentWidgetAppearance;
|
|
59
|
+
hideFloatingButton: boolean;
|
|
60
60
|
workingGlow: boolean;
|
|
61
61
|
widgetUrl: string;
|
|
62
62
|
loadDelay: number;
|
|
@@ -154,7 +154,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
154
154
|
welcomePopup: boolean;
|
|
155
155
|
floatingButtonPosition: "left" | "right";
|
|
156
156
|
layout: AgentWidgetLayout;
|
|
157
|
-
|
|
157
|
+
appearance: AgentWidgetAppearance;
|
|
158
|
+
hideFloatingButton: boolean;
|
|
158
159
|
workingGlow: boolean;
|
|
159
160
|
widgetUrl: string;
|
|
160
161
|
loadDelay: number;
|
|
@@ -608,7 +609,39 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
608
609
|
systemTheme: globalThis.Ref<"light" | "dark" | undefined, "light" | "dark" | undefined>;
|
|
609
610
|
hideWelcomeMessage: globalThis.Ref<boolean, boolean>;
|
|
610
611
|
isDark: globalThis.ComputedRef<boolean>;
|
|
611
|
-
chat: globalThis.ComputedRef<
|
|
612
|
+
chat: globalThis.ComputedRef<{
|
|
613
|
+
id: string;
|
|
614
|
+
error: Error | undefined;
|
|
615
|
+
status: ChatStatus;
|
|
616
|
+
messages: UIChatMessage[];
|
|
617
|
+
regenerate: ({ messageId, ...options }?: {
|
|
618
|
+
messageId?: string;
|
|
619
|
+
} & ChatRequestOptions) => Promise<void>;
|
|
620
|
+
stop: () => Promise<void>;
|
|
621
|
+
sendMessage: (message?: (Omit<UIChatMessage, "id" | "role"> & {
|
|
622
|
+
id?: string | undefined;
|
|
623
|
+
role?: "assistant" | "user" | "system" | undefined;
|
|
624
|
+
} & {
|
|
625
|
+
text?: never;
|
|
626
|
+
files?: never;
|
|
627
|
+
messageId?: string;
|
|
628
|
+
}) | {
|
|
629
|
+
text: string;
|
|
630
|
+
files?: FileList | FileUIPart[];
|
|
631
|
+
metadata?: UIChatMessageMetadata | undefined;
|
|
632
|
+
parts?: never;
|
|
633
|
+
messageId?: string;
|
|
634
|
+
} | {
|
|
635
|
+
files: FileList | FileUIPart[];
|
|
636
|
+
metadata?: UIChatMessageMetadata | undefined;
|
|
637
|
+
parts?: never;
|
|
638
|
+
messageId?: string;
|
|
639
|
+
} | undefined, options?: ChatRequestOptions) => Promise<void>;
|
|
640
|
+
resumeStream: (options?: ChatRequestOptions) => Promise<void>;
|
|
641
|
+
addToolOutput: ChatAddToolOutputFunction<UIChatMessage>;
|
|
642
|
+
addToolApprovalResponse: ChatAddToolApproveResponseFunction;
|
|
643
|
+
clearError: () => void;
|
|
644
|
+
}>;
|
|
612
645
|
messages: globalThis.ComputedRef<UIChatMessage[]>;
|
|
613
646
|
conversations: globalThis.Ref<{
|
|
614
647
|
id: string;
|
|
@@ -1119,6 +1152,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
1119
1152
|
llmIssueSummary?: string | undefined;
|
|
1120
1153
|
conversationGoalMet?: boolean | undefined;
|
|
1121
1154
|
} | null | undefined;
|
|
1155
|
+
turnInProgress?: boolean | undefined;
|
|
1122
1156
|
}[], {
|
|
1123
1157
|
id: string;
|
|
1124
1158
|
messages: UIChatMessage[];
|
|
@@ -1161,6 +1195,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
1161
1195
|
llmIssueSummary?: string | undefined;
|
|
1162
1196
|
conversationGoalMet?: boolean | undefined;
|
|
1163
1197
|
} | null | undefined;
|
|
1198
|
+
turnInProgress?: boolean | undefined;
|
|
1164
1199
|
}[] | {
|
|
1165
1200
|
id: string;
|
|
1166
1201
|
messages: {
|
|
@@ -1670,6 +1705,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
1670
1705
|
llmIssueSummary?: string | undefined;
|
|
1671
1706
|
conversationGoalMet?: boolean | undefined;
|
|
1672
1707
|
} | null | undefined;
|
|
1708
|
+
turnInProgress?: boolean | undefined;
|
|
1673
1709
|
}[]>;
|
|
1674
1710
|
isLoadingConversations: globalThis.Ref<boolean, boolean>;
|
|
1675
1711
|
chatFiles: globalThis.Ref<{
|
|
@@ -1919,7 +1955,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
1919
1955
|
welcomePopup: boolean;
|
|
1920
1956
|
floatingButtonPosition: "left" | "right";
|
|
1921
1957
|
layout: AgentWidgetLayout;
|
|
1922
|
-
|
|
1958
|
+
appearance: AgentWidgetAppearance;
|
|
1959
|
+
hideFloatingButton: boolean;
|
|
1923
1960
|
workingGlow: boolean;
|
|
1924
1961
|
widgetUrl: string;
|
|
1925
1962
|
loadDelay: number;
|
|
@@ -2017,7 +2054,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
2017
2054
|
welcomePopup: boolean;
|
|
2018
2055
|
floatingButtonPosition: "left" | "right";
|
|
2019
2056
|
layout: AgentWidgetLayout;
|
|
2020
|
-
|
|
2057
|
+
appearance: AgentWidgetAppearance;
|
|
2058
|
+
hideFloatingButton: boolean;
|
|
2021
2059
|
workingGlow: boolean;
|
|
2022
2060
|
widgetUrl: string;
|
|
2023
2061
|
loadDelay: number;
|
|
@@ -2471,7 +2509,39 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
2471
2509
|
systemTheme: globalThis.Ref<"light" | "dark" | undefined, "light" | "dark" | undefined>;
|
|
2472
2510
|
hideWelcomeMessage: globalThis.Ref<boolean, boolean>;
|
|
2473
2511
|
isDark: globalThis.ComputedRef<boolean>;
|
|
2474
|
-
chat: globalThis.ComputedRef<
|
|
2512
|
+
chat: globalThis.ComputedRef<{
|
|
2513
|
+
id: string;
|
|
2514
|
+
error: Error | undefined;
|
|
2515
|
+
status: ChatStatus;
|
|
2516
|
+
messages: UIChatMessage[];
|
|
2517
|
+
regenerate: ({ messageId, ...options }?: {
|
|
2518
|
+
messageId?: string;
|
|
2519
|
+
} & ChatRequestOptions) => Promise<void>;
|
|
2520
|
+
stop: () => Promise<void>;
|
|
2521
|
+
sendMessage: (message?: (Omit<UIChatMessage, "id" | "role"> & {
|
|
2522
|
+
id?: string | undefined;
|
|
2523
|
+
role?: "assistant" | "user" | "system" | undefined;
|
|
2524
|
+
} & {
|
|
2525
|
+
text?: never;
|
|
2526
|
+
files?: never;
|
|
2527
|
+
messageId?: string;
|
|
2528
|
+
}) | {
|
|
2529
|
+
text: string;
|
|
2530
|
+
files?: FileList | FileUIPart[];
|
|
2531
|
+
metadata?: UIChatMessageMetadata | undefined;
|
|
2532
|
+
parts?: never;
|
|
2533
|
+
messageId?: string;
|
|
2534
|
+
} | {
|
|
2535
|
+
files: FileList | FileUIPart[];
|
|
2536
|
+
metadata?: UIChatMessageMetadata | undefined;
|
|
2537
|
+
parts?: never;
|
|
2538
|
+
messageId?: string;
|
|
2539
|
+
} | undefined, options?: ChatRequestOptions) => Promise<void>;
|
|
2540
|
+
resumeStream: (options?: ChatRequestOptions) => Promise<void>;
|
|
2541
|
+
addToolOutput: ChatAddToolOutputFunction<UIChatMessage>;
|
|
2542
|
+
addToolApprovalResponse: ChatAddToolApproveResponseFunction;
|
|
2543
|
+
clearError: () => void;
|
|
2544
|
+
}>;
|
|
2475
2545
|
messages: globalThis.ComputedRef<UIChatMessage[]>;
|
|
2476
2546
|
conversations: globalThis.Ref<{
|
|
2477
2547
|
id: string;
|
|
@@ -2982,6 +3052,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
2982
3052
|
llmIssueSummary?: string | undefined;
|
|
2983
3053
|
conversationGoalMet?: boolean | undefined;
|
|
2984
3054
|
} | null | undefined;
|
|
3055
|
+
turnInProgress?: boolean | undefined;
|
|
2985
3056
|
}[], {
|
|
2986
3057
|
id: string;
|
|
2987
3058
|
messages: UIChatMessage[];
|
|
@@ -3024,6 +3095,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
3024
3095
|
llmIssueSummary?: string | undefined;
|
|
3025
3096
|
conversationGoalMet?: boolean | undefined;
|
|
3026
3097
|
} | null | undefined;
|
|
3098
|
+
turnInProgress?: boolean | undefined;
|
|
3027
3099
|
}[] | {
|
|
3028
3100
|
id: string;
|
|
3029
3101
|
messages: {
|
|
@@ -3533,6 +3605,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
3533
3605
|
llmIssueSummary?: string | undefined;
|
|
3534
3606
|
conversationGoalMet?: boolean | undefined;
|
|
3535
3607
|
} | null | undefined;
|
|
3608
|
+
turnInProgress?: boolean | undefined;
|
|
3536
3609
|
}[]>;
|
|
3537
3610
|
isLoadingConversations: globalThis.Ref<boolean, boolean>;
|
|
3538
3611
|
chatFiles: globalThis.Ref<{
|
|
@@ -3782,7 +3855,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
3782
3855
|
welcomePopup: boolean;
|
|
3783
3856
|
floatingButtonPosition: "left" | "right";
|
|
3784
3857
|
layout: AgentWidgetLayout;
|
|
3785
|
-
|
|
3858
|
+
appearance: AgentWidgetAppearance;
|
|
3859
|
+
hideFloatingButton: boolean;
|
|
3786
3860
|
workingGlow: boolean;
|
|
3787
3861
|
widgetUrl: string;
|
|
3788
3862
|
loadDelay: number;
|
|
@@ -3880,7 +3954,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
3880
3954
|
welcomePopup: boolean;
|
|
3881
3955
|
floatingButtonPosition: "left" | "right";
|
|
3882
3956
|
layout: AgentWidgetLayout;
|
|
3883
|
-
|
|
3957
|
+
appearance: AgentWidgetAppearance;
|
|
3958
|
+
hideFloatingButton: boolean;
|
|
3884
3959
|
workingGlow: boolean;
|
|
3885
3960
|
widgetUrl: string;
|
|
3886
3961
|
loadDelay: number;
|
|
@@ -4334,7 +4409,39 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
4334
4409
|
systemTheme: globalThis.Ref<"light" | "dark" | undefined, "light" | "dark" | undefined>;
|
|
4335
4410
|
hideWelcomeMessage: globalThis.Ref<boolean, boolean>;
|
|
4336
4411
|
isDark: globalThis.ComputedRef<boolean>;
|
|
4337
|
-
chat: globalThis.ComputedRef<
|
|
4412
|
+
chat: globalThis.ComputedRef<{
|
|
4413
|
+
id: string;
|
|
4414
|
+
error: Error | undefined;
|
|
4415
|
+
status: ChatStatus;
|
|
4416
|
+
messages: UIChatMessage[];
|
|
4417
|
+
regenerate: ({ messageId, ...options }?: {
|
|
4418
|
+
messageId?: string;
|
|
4419
|
+
} & ChatRequestOptions) => Promise<void>;
|
|
4420
|
+
stop: () => Promise<void>;
|
|
4421
|
+
sendMessage: (message?: (Omit<UIChatMessage, "id" | "role"> & {
|
|
4422
|
+
id?: string | undefined;
|
|
4423
|
+
role?: "assistant" | "user" | "system" | undefined;
|
|
4424
|
+
} & {
|
|
4425
|
+
text?: never;
|
|
4426
|
+
files?: never;
|
|
4427
|
+
messageId?: string;
|
|
4428
|
+
}) | {
|
|
4429
|
+
text: string;
|
|
4430
|
+
files?: FileList | FileUIPart[];
|
|
4431
|
+
metadata?: UIChatMessageMetadata | undefined;
|
|
4432
|
+
parts?: never;
|
|
4433
|
+
messageId?: string;
|
|
4434
|
+
} | {
|
|
4435
|
+
files: FileList | FileUIPart[];
|
|
4436
|
+
metadata?: UIChatMessageMetadata | undefined;
|
|
4437
|
+
parts?: never;
|
|
4438
|
+
messageId?: string;
|
|
4439
|
+
} | undefined, options?: ChatRequestOptions) => Promise<void>;
|
|
4440
|
+
resumeStream: (options?: ChatRequestOptions) => Promise<void>;
|
|
4441
|
+
addToolOutput: ChatAddToolOutputFunction<UIChatMessage>;
|
|
4442
|
+
addToolApprovalResponse: ChatAddToolApproveResponseFunction;
|
|
4443
|
+
clearError: () => void;
|
|
4444
|
+
}>;
|
|
4338
4445
|
messages: globalThis.ComputedRef<UIChatMessage[]>;
|
|
4339
4446
|
conversations: globalThis.Ref<{
|
|
4340
4447
|
id: string;
|
|
@@ -4845,6 +4952,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
4845
4952
|
llmIssueSummary?: string | undefined;
|
|
4846
4953
|
conversationGoalMet?: boolean | undefined;
|
|
4847
4954
|
} | null | undefined;
|
|
4955
|
+
turnInProgress?: boolean | undefined;
|
|
4848
4956
|
}[], {
|
|
4849
4957
|
id: string;
|
|
4850
4958
|
messages: UIChatMessage[];
|
|
@@ -4887,6 +4995,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
4887
4995
|
llmIssueSummary?: string | undefined;
|
|
4888
4996
|
conversationGoalMet?: boolean | undefined;
|
|
4889
4997
|
} | null | undefined;
|
|
4998
|
+
turnInProgress?: boolean | undefined;
|
|
4890
4999
|
}[] | {
|
|
4891
5000
|
id: string;
|
|
4892
5001
|
messages: {
|
|
@@ -5396,6 +5505,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
5396
5505
|
llmIssueSummary?: string | undefined;
|
|
5397
5506
|
conversationGoalMet?: boolean | undefined;
|
|
5398
5507
|
} | null | undefined;
|
|
5508
|
+
turnInProgress?: boolean | undefined;
|
|
5399
5509
|
}[]>;
|
|
5400
5510
|
isLoadingConversations: globalThis.Ref<boolean, boolean>;
|
|
5401
5511
|
chatFiles: globalThis.Ref<{
|
|
@@ -5628,4 +5738,4 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
5628
5738
|
navigate: (view: ChatbotView) => void;
|
|
5629
5739
|
renameChatTitle: (chatId: string, title: string) => Promise<void>;
|
|
5630
5740
|
deleteChat: (chatId: string) => Promise<void>;
|
|
5631
|
-
}, "regenerate" | "stopHostActions" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "
|
|
5741
|
+
}, "regenerate" | "sendMessage" | "addToolOutput" | "addToolApprovalResponse" | "stopHostActions" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "stopGeneration" | "startNewChat" | "handleFileSelect" | "clearFileLimitError" | "clearPendingAttachments" | "onUpvote" | "onDownvote" | "onFeedback" | "onFeedbackSubmit" | "onLeadSubmit" | "navigate" | "renameChatTitle" | "deleteChat">>;
|