@8wave/ai-elements 0.121.0-beta.3 → 0.121.0-beta.31
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 +4049 -4013
- 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/PkChatbot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbot-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbot-CLy8LgF8.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-DLg5tLl5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput-CjE0vZAK.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-Dzc0kzyo.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-DjGNmloY.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-CUIWz1nJ.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-B4r68w6z.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-B1iNTeQm.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-D608ghH3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-CTg7R5HF.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-HBgg-zuj.js";
|
|
@@ -472,7 +472,8 @@ var lt = /* @__PURE__ */ new Set([
|
|
|
472
472
|
U.ShowCalendarEvent,
|
|
473
473
|
U.ShowEmail,
|
|
474
474
|
U.ShowMessage,
|
|
475
|
-
U.ShowForm
|
|
475
|
+
U.ShowForm,
|
|
476
|
+
"editSpreadsheet"
|
|
476
477
|
]);
|
|
477
478
|
function ut(e) {
|
|
478
479
|
return lt.has(e);
|
|
@@ -528,7 +529,13 @@ function yt(e) {
|
|
|
528
529
|
let t = e.split("/")[0];
|
|
529
530
|
return Object.prototype.hasOwnProperty.call(vt, t) ? vt[t] : void 0;
|
|
530
531
|
}
|
|
531
|
-
var bt =
|
|
532
|
+
var bt = [
|
|
533
|
+
"perplexity_search",
|
|
534
|
+
"parallel_search",
|
|
535
|
+
"web_search",
|
|
536
|
+
"openai_web_search",
|
|
537
|
+
"google_search"
|
|
538
|
+
], xt = d({
|
|
532
539
|
maxResults: i().int().min(1).max(20).optional(),
|
|
533
540
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
534
541
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -541,7 +548,7 @@ var bt = d({
|
|
|
541
548
|
"month",
|
|
542
549
|
"year"
|
|
543
550
|
]).optional()
|
|
544
|
-
}),
|
|
551
|
+
}), St = d({
|
|
545
552
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
546
553
|
maxResults: i().int().min(1).max(20).optional(),
|
|
547
554
|
sourcePolicy: d({
|
|
@@ -554,7 +561,7 @@ var bt = d({
|
|
|
554
561
|
maxCharsTotal: i().int().positive().optional()
|
|
555
562
|
}).optional(),
|
|
556
563
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
557
|
-
}),
|
|
564
|
+
}), Ct = d({
|
|
558
565
|
openai: d({}).optional(),
|
|
559
566
|
anthropic: d({
|
|
560
567
|
maxUses: i().int().positive().optional(),
|
|
@@ -572,10 +579,10 @@ var bt = d({
|
|
|
572
579
|
}), G = d({
|
|
573
580
|
enabled: u().default(!1),
|
|
574
581
|
provider: l(W).optional().default(W.Native),
|
|
575
|
-
perplexity:
|
|
576
|
-
parallel:
|
|
577
|
-
native:
|
|
578
|
-
}),
|
|
582
|
+
perplexity: xt.optional(),
|
|
583
|
+
parallel: St.optional(),
|
|
584
|
+
native: Ct.optional()
|
|
585
|
+
}), wt = d({ useAllUserKb: u().default(!1) }), Tt = d({ useAllUserFiles: u().default(!1) }), Et = d({ tools: c(n()).default([]) }), Dt = d({
|
|
579
586
|
disabled: c(l(U)).default([
|
|
580
587
|
U.UserMemory,
|
|
581
588
|
U.SearchInUserFiles,
|
|
@@ -585,9 +592,9 @@ var bt = d({
|
|
|
585
592
|
]),
|
|
586
593
|
showForm: _t.optional().default(() => _t.parse({})),
|
|
587
594
|
webSearch: G.optional().default(() => G.parse({})),
|
|
588
|
-
userMemory:
|
|
589
|
-
userFiles:
|
|
590
|
-
approval:
|
|
595
|
+
userMemory: wt.optional().default(() => wt.parse({})),
|
|
596
|
+
userFiles: Tt.optional().default(() => Tt.parse({})),
|
|
597
|
+
approval: Et.optional().default(() => Et.parse({}))
|
|
591
598
|
}), K = d({
|
|
592
599
|
freshness: d({
|
|
593
600
|
enabled: u().default(!1),
|
|
@@ -600,7 +607,7 @@ var bt = d({
|
|
|
600
607
|
diversity: i().min(0).max(1).default(.3),
|
|
601
608
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
602
609
|
}).prefault({})
|
|
603
|
-
}).prefault({}),
|
|
610
|
+
}).prefault({}), Ot = d({
|
|
604
611
|
prompt: n().optional(),
|
|
605
612
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
606
613
|
maxOutputTokens: i().positive().optional(),
|
|
@@ -611,16 +618,16 @@ var bt = d({
|
|
|
611
618
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
612
619
|
reasoning: $e,
|
|
613
620
|
ranking: K.optional().default(() => K.parse({}))
|
|
614
|
-
}), q = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e),
|
|
621
|
+
}), q = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), kt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", J = /* @__PURE__ */ function(e) {
|
|
615
622
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
616
623
|
}({}), Y = /* @__PURE__ */ function(e) {
|
|
617
624
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
618
625
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
619
|
-
return e.
|
|
626
|
+
return e.Solid = "solid", e.Glass = "glass", e;
|
|
620
627
|
}({}), Z = /* @__PURE__ */ function(e) {
|
|
621
628
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
622
|
-
}({}),
|
|
623
|
-
function
|
|
629
|
+
}({}), At = Object.values(Z), jt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
630
|
+
function Mt(e) {
|
|
624
631
|
let t = e.trim().toLowerCase();
|
|
625
632
|
if (!t) return "";
|
|
626
633
|
try {
|
|
@@ -654,18 +661,19 @@ var Q = d({
|
|
|
654
661
|
welcomePopup: u().optional().default(!1),
|
|
655
662
|
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
656
663
|
layout: l(Y).optional().default(Y.Floating),
|
|
657
|
-
|
|
664
|
+
appearance: l(X).optional().default(X.Solid),
|
|
665
|
+
hideFloatingButton: u().optional().default(!1),
|
|
658
666
|
workingGlow: u().optional().default(!0),
|
|
659
667
|
copilotPageCss: n().optional(),
|
|
660
668
|
maxMessageLength: i().int().positive().optional(),
|
|
661
|
-
widgetUrl: r().default(
|
|
669
|
+
widgetUrl: r().default(kt),
|
|
662
670
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
663
671
|
loaderStrategy: l(J).optional().default(J.InlineModule),
|
|
664
672
|
customCss: n().optional(),
|
|
665
673
|
smoothStream: u().optional().default(!1),
|
|
666
674
|
showExtendedSteps: u().optional().default(!1),
|
|
667
|
-
imageHosts: c(n().overwrite(
|
|
668
|
-
}),
|
|
675
|
+
imageHosts: c(n().overwrite(Mt).refine((e) => e === "" || jt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
676
|
+
}), Nt = [
|
|
669
677
|
"image/jpeg",
|
|
670
678
|
"image/png",
|
|
671
679
|
"image/gif",
|
|
@@ -674,19 +682,19 @@ var Q = d({
|
|
|
674
682
|
"text/plain",
|
|
675
683
|
"text/markdown",
|
|
676
684
|
"text/csv"
|
|
677
|
-
],
|
|
685
|
+
], Pt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $ = d({
|
|
678
686
|
enabled: u().default(!1),
|
|
679
687
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
680
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([...
|
|
688
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...Nt]),
|
|
681
689
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
682
690
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
683
|
-
}),
|
|
691
|
+
}), Ft = d({
|
|
684
692
|
zeroDataRetention: u().default(!0),
|
|
685
693
|
disallowPromptTraining: u().default(!0),
|
|
686
694
|
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
687
|
-
}),
|
|
695
|
+
}), It = d({ enabled: u().default(!1) }), Lt = /* @__PURE__ */ function(e) {
|
|
688
696
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
689
|
-
}({}),
|
|
697
|
+
}({}), Rt = d({ mode: l(Lt).default(Lt.Off) }), zt = d({
|
|
690
698
|
enabled: u().default(!1),
|
|
691
699
|
voiceId: n().optional(),
|
|
692
700
|
language: n().min(2).max(5).default("it"),
|
|
@@ -705,40 +713,40 @@ var Q = d({
|
|
|
705
713
|
providerAgentId: n().optional(),
|
|
706
714
|
providerSecretId: n().optional(),
|
|
707
715
|
providerApiKeyId: n().optional()
|
|
708
|
-
}),
|
|
716
|
+
}), Bt = d({ enabled: u() });
|
|
709
717
|
d({
|
|
710
718
|
chatId: n().min(1).optional(),
|
|
711
719
|
deviceContext: Ae.optional(),
|
|
712
720
|
externalContext: p(n(), f()).optional()
|
|
713
721
|
});
|
|
714
|
-
var
|
|
722
|
+
var Vt = d({
|
|
715
723
|
sessionId: n(),
|
|
716
724
|
signedUrl: n(),
|
|
717
725
|
providerAgentId: n(),
|
|
718
726
|
chatId: n(),
|
|
719
727
|
maxSessionSeconds: i().int()
|
|
720
|
-
}),
|
|
728
|
+
}), Ht = d({
|
|
721
729
|
voiceId: n(),
|
|
722
730
|
name: n(),
|
|
723
731
|
category: n().optional(),
|
|
724
732
|
previewUrl: n().optional(),
|
|
725
733
|
labels: p(n(), n()).optional()
|
|
726
734
|
});
|
|
727
|
-
c(
|
|
728
|
-
var
|
|
729
|
-
model:
|
|
735
|
+
c(Ht);
|
|
736
|
+
var Ut = d({
|
|
737
|
+
model: Ot,
|
|
730
738
|
interface: Q,
|
|
731
|
-
tools:
|
|
739
|
+
tools: Dt.optional().default(() => Dt.parse({})),
|
|
732
740
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
733
|
-
gatewayOptions:
|
|
734
|
-
channels: c(l(Z)).optional().default(() => [...
|
|
741
|
+
gatewayOptions: Ft.optional().default(() => Ft.parse({})),
|
|
742
|
+
channels: c(l(Z)).optional().default(() => [...At]),
|
|
735
743
|
externalContextSchema: ae.optional(),
|
|
736
|
-
openaiApi:
|
|
737
|
-
voice:
|
|
738
|
-
toolWorkingSet:
|
|
744
|
+
openaiApi: It.optional().default(() => It.parse({})),
|
|
745
|
+
voice: zt.optional().default(() => zt.parse({})),
|
|
746
|
+
toolWorkingSet: Rt.optional().default(() => Rt.parse({})),
|
|
739
747
|
hostTools: Pe.optional(),
|
|
740
748
|
pageAccess: He.optional()
|
|
741
|
-
}),
|
|
749
|
+
}), Wt = d({
|
|
742
750
|
rateLimits: d({
|
|
743
751
|
minuteRateLimit: i().int().min(0).optional(),
|
|
744
752
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -755,8 +763,8 @@ d({
|
|
|
755
763
|
fallbackModels: c(n()).default([]),
|
|
756
764
|
status: l(j).default(j.Draft),
|
|
757
765
|
visibility: l(M).default(M.Organization),
|
|
758
|
-
settings:
|
|
759
|
-
security:
|
|
766
|
+
settings: Ut,
|
|
767
|
+
security: Wt.nullish(),
|
|
760
768
|
type: l(N).default(N.Chat),
|
|
761
769
|
organizationId: n()
|
|
762
770
|
}), ee(() => d({
|
|
@@ -767,8 +775,8 @@ d({
|
|
|
767
775
|
fallbackModels: c(n()).nullable().default([]),
|
|
768
776
|
status: l(j).default(j.Draft),
|
|
769
777
|
visibility: l(M).default(M.Organization),
|
|
770
|
-
settings:
|
|
771
|
-
security:
|
|
778
|
+
settings: Ut,
|
|
779
|
+
security: Wt.nullable(),
|
|
772
780
|
type: l(N).default(N.Chat),
|
|
773
781
|
organizationId: n(),
|
|
774
782
|
createdAt: m(),
|
|
@@ -781,7 +789,7 @@ d({
|
|
|
781
789
|
outOfBudget: u().optional().default(!1),
|
|
782
790
|
outOfBudgetReason: n().optional().default("")
|
|
783
791
|
}));
|
|
784
|
-
var
|
|
792
|
+
var Gt = d({
|
|
785
793
|
id: n(),
|
|
786
794
|
name: n(),
|
|
787
795
|
status: l(j),
|
|
@@ -792,52 +800,54 @@ var Wt = d({
|
|
|
792
800
|
updatedAt: m(),
|
|
793
801
|
capabilities: d({
|
|
794
802
|
fileUpload: $,
|
|
795
|
-
voice:
|
|
803
|
+
voice: Bt,
|
|
796
804
|
hostTools: Fe.optional(),
|
|
797
805
|
pageAccess: Ge.optional()
|
|
798
806
|
}),
|
|
799
|
-
channels: c(l(Z)).default(() => [...
|
|
800
|
-
}),
|
|
807
|
+
channels: c(l(Z)).default(() => [...At])
|
|
808
|
+
}), Kt = Q.pick({
|
|
801
809
|
logo: !0,
|
|
802
810
|
mainColor: !0,
|
|
803
811
|
textColor: !0,
|
|
804
812
|
theme: !0,
|
|
805
813
|
floatingButtonPosition: !0,
|
|
806
814
|
layout: !0,
|
|
807
|
-
|
|
815
|
+
appearance: !0,
|
|
816
|
+
hideFloatingButton: !0,
|
|
808
817
|
copilotPageCss: !0,
|
|
809
818
|
customCss: !0
|
|
810
|
-
}),
|
|
819
|
+
}), qt = Gt.pick({
|
|
811
820
|
id: !0,
|
|
812
821
|
name: !0,
|
|
813
822
|
organizationId: !0
|
|
814
|
-
}).extend({ interface:
|
|
823
|
+
}).extend({ interface: Kt }), Jt = d({
|
|
815
824
|
emailPassword: u(),
|
|
816
825
|
google: u(),
|
|
817
826
|
microsoft: u()
|
|
818
|
-
}),
|
|
827
|
+
}), Yt = d({
|
|
819
828
|
requiresAuth: s(!1),
|
|
820
|
-
agent:
|
|
829
|
+
agent: Gt,
|
|
821
830
|
branding: a()
|
|
822
|
-
}),
|
|
831
|
+
}), Xt = d({
|
|
823
832
|
requiresAuth: s(!0),
|
|
824
833
|
agent: a(),
|
|
825
|
-
branding:
|
|
834
|
+
branding: qt
|
|
826
835
|
});
|
|
827
|
-
te("requiresAuth", [
|
|
828
|
-
var
|
|
836
|
+
te("requiresAuth", [Yt, Xt]);
|
|
837
|
+
var Zt = d({
|
|
829
838
|
frontendUrl: n().optional(),
|
|
830
839
|
telemetry: d({
|
|
831
840
|
environment: n(),
|
|
832
841
|
samplingRate: i().min(0).max(1)
|
|
833
842
|
}).nullable()
|
|
834
|
-
}),
|
|
835
|
-
authMethods:
|
|
843
|
+
}), Qt = d({
|
|
844
|
+
authMethods: Jt,
|
|
836
845
|
deploymentBranding: fe.nullish(),
|
|
837
|
-
deployment:
|
|
846
|
+
deployment: Zt.optional()
|
|
838
847
|
});
|
|
839
|
-
te("requiresAuth", [
|
|
848
|
+
te("requiresAuth", [Yt.extend(Qt.shape), Xt.extend(Qt.shape)]), d({
|
|
840
849
|
id: t(),
|
|
850
|
+
limited: u(),
|
|
841
851
|
agentIds: c(t())
|
|
842
852
|
}), d({
|
|
843
853
|
...g.pagination(),
|
|
@@ -857,6 +867,6 @@ te("requiresAuth", [Jt.extend(Zt.shape), Yt.extend(Zt.shape)]), d({
|
|
|
857
867
|
...g.ids()
|
|
858
868
|
});
|
|
859
869
|
//#endregion
|
|
860
|
-
export {
|
|
870
|
+
export { Te as $, st as A, Ue as B, Pt as C, Vt as D, mt as E, ft as F, Re as G, Ve as H, gt as I, Ie as J, je as K, yt as L, Xe as M, ut as N, bt as O, ct as P, _ as Q, Mt as R, R as S, dt as T, Be as U, We as V, k as W, b as X, Ae as Y, D as Z, ot as _, $ as a, le as at, rt as b, K as c, Lt as d, ye as et, N as f, pt as g, Y as h, Z as i, h as it, nt as j, W as k, $e as l, X as m, it as n, Ee as nt, Ft as o, g as ot, G as p, Le as q, U as r, me as rt, J as s, I as t, ue as tt, P as u, B as v, at as w, F as x, L as y, A as z };
|
|
861
871
|
|
|
862
|
-
//# sourceMappingURL=Agent-
|
|
872
|
+
//# sourceMappingURL=Agent-ywfLo1Hg.js.map
|