@8wave/ai-elements 0.121.0-beta.2 → 0.121.0-beta.20
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-wt8Vi99H.js} +69 -61
- package/dist/_chunks/Agent-wt8Vi99H.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-CNoHyTuC.js → PkStreamingMarkdown-Br7Z60Vm.js} +846 -841
- package/dist/_chunks/PkStreamingMarkdown-Br7Z60Vm.js.map +1 -0
- package/dist/_chunks/{PkToolEditSpreadsheet-B8bO3vZa.js → PkToolEditSpreadsheet-Di9czFTy.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-B8bO3vZa.js.map → PkToolEditSpreadsheet-Di9czFTy.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DrvL0h9d.js → PkToolRequestGeolocation-dUTqHsV-.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DrvL0h9d.js.map → PkToolRequestGeolocation-dUTqHsV-.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BXti5Vkt.js → PkToolRequestOAuthConnection-cNDld72U.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-BXti5Vkt.js.map → PkToolRequestOAuthConnection-cNDld72U.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DR71LNck.js → PkToolShowArtifact-DtstlRsL.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DR71LNck.js.map → PkToolShowArtifact-DtstlRsL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-C4BshHSs.js → PkToolShowContactForm-BKaKlYGJ.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-C4BshHSs.js.map → PkToolShowContactForm-BKaKlYGJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BLSTn0xE.js → PkToolShowForm-OxANKx0g.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-BLSTn0xE.js.map → PkToolShowForm-OxANKx0g.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CqOXbo0Y.js → PkToolShowImageGallery-DRePOmUx.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CqOXbo0Y.js.map → PkToolShowImageGallery-DRePOmUx.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-westY5bY.js → PkToolShowProductList-Y9HR_RJ4.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-westY5bY.js.map → PkToolShowProductList-Y9HR_RJ4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Dy9VXRgv.js → PkToolShowSources-BQnaaL2a.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Dy9VXRgv.js.map → PkToolShowSources-BQnaaL2a.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BZ2U3ULB.js → PkToolShowSuggestedReply-ghiXQuDz.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BZ2U3ULB.js.map → PkToolShowSuggestedReply-ghiXQuDz.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CrFaQbMp.js → PkToolShowVideo-BcNWgJD7.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CrFaQbMp.js.map → PkToolShowVideo-BcNWgJD7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DXszshY9.js → PkToolShowWebPages-Ba6DkV0V.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-DXszshY9.js.map → PkToolShowWebPages-Ba6DkV0V.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-B5-QV037.js → chatImagePolicy-P0TZW1on.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-B5-QV037.js.map → chatImagePolicy-P0TZW1on.js.map} +1 -1
- package/dist/_chunks/{markdown-DO_FLvlJ.js → markdown-DLplFIBU.js} +10 -10
- package/dist/_chunks/{markdown-DO_FLvlJ.js.map → markdown-DLplFIBU.js.map} +1 -1
- package/dist/ai-elements.es.js +3949 -3244
- 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-DcoF75y8.js} +68 -60
- package/dist-vue/_chunks/Agent-DcoF75y8.js.map +1 -0
- package/dist-vue/_chunks/{Document-ChfbOVVs.js → Document-C1bD6VNU.js} +10 -10
- package/dist-vue/_chunks/{Document-ChfbOVVs.js.map → Document-C1bD6VNU.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-CTZPru6f.js → PkChatbot-wyaH2IgV.js} +9 -9
- package/dist-vue/_chunks/PkChatbot-wyaH2IgV.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-DqzgF4vH.js → PkChatbotEmptyState-h2qZ0JOD.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DqzgF4vH.js.map → PkChatbotEmptyState-h2qZ0JOD.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotInput-C-bMNHC-.js +397 -0
- package/dist-vue/_chunks/PkChatbotInput-C-bMNHC-.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-WryjcyH7.js → PkChatbotMessages-DU8qnlVX.js} +17 -17
- package/dist-vue/_chunks/{PkChatbotMessages-WryjcyH7.js.map → PkChatbotMessages-DU8qnlVX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bga_HEps.js → PkChatbotStepPayload-BOxfKD1b.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bga_HEps.js.map → PkChatbotStepPayload-BOxfKD1b.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-YbUYP-Y3.js → PkChatbotStepToolDetail-Df6EOYxj.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-YbUYP-Y3.js.map → PkChatbotStepToolDetail-Df6EOYxj.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CVAkaIzk.js → PkChatbotSteps-DnDtN4Q7.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CVAkaIzk.js.map → PkChatbotSteps-DnDtN4Q7.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CZjOJn6w.js → PkChatbotViewChat-D4iupq1A.js} +8 -11
- package/dist-vue/_chunks/PkChatbotViewChat-D4iupq1A.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-BHvHF0w7.js → PkChatbotViewConversations-dKZScKD9.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BHvHF0w7.js.map → PkChatbotViewConversations-dKZScKD9.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-C-4__qj_.js → PkChatbotViewFiles-CQC3rInD.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-C-4__qj_.js.map → PkChatbotViewFiles-CQC3rInD.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-_WMSVDlA.js → PkChatbotViewProfile-CkZyWh4V.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-_WMSVDlA.js.map → PkChatbotViewProfile-CkZyWh4V.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-6Y7qgbvS.js → PkStreamingMarkdown-BYV68skc.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-6Y7qgbvS.js.map → PkStreamingMarkdown-BYV68skc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BTauPyXT.js → PkToolEditSpreadsheet-DQxJQIY0.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BTauPyXT.js.map → PkToolEditSpreadsheet-DQxJQIY0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBzup6bn.js → PkToolRequestGeolocation-BpjglRbg.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBzup6bn.js.map → PkToolRequestGeolocation-BpjglRbg.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yrRDpNqp.js → PkToolRequestOAuthConnection-CD3M5DWj.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yrRDpNqp.js.map → PkToolRequestOAuthConnection-CD3M5DWj.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-fp37O1om.js → PkToolShowArtifact-Bm5VBF_n.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-fp37O1om.js.map → PkToolShowArtifact-Bm5VBF_n.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-iSx2ioyT.js → PkToolShowContactForm-CMQTQsU-.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-iSx2ioyT.js.map → PkToolShowContactForm-CMQTQsU-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BlKrh4gK.js → PkToolShowDiagram-adGuj4AF.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BlKrh4gK.js.map → PkToolShowDiagram-adGuj4AF.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CwlXH13N.js → PkToolShowForm-Cx5KdTlZ.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-CwlXH13N.js.map → PkToolShowForm-Cx5KdTlZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-C4esYiM_.js → PkToolShowImageGallery-BtQ0gnGB.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-C4esYiM_.js.map → PkToolShowImageGallery-BtQ0gnGB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CdeYQ-mF.js → PkToolShowProductList-Dvatk6p-.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CdeYQ-mF.js.map → PkToolShowProductList-Dvatk6p-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-D8IF7g0d.js → PkToolShowSources-DKkIYQ9r.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-D8IF7g0d.js.map → PkToolShowSources-DKkIYQ9r.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DXyO8ki2.js → PkToolShowSuggestedReply-BbAfjJP9.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DXyO8ki2.js.map → PkToolShowSuggestedReply-BbAfjJP9.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CA7MNSp_.js → PkToolShowVideo-DTNszfdU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CA7MNSp_.js.map → PkToolShowVideo-DTNszfdU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CKWnAbp8.js → PkToolShowWebPages-euov57FB.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CKWnAbp8.js.map → PkToolShowWebPages-euov57FB.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DecVahlB.js → createChatbotApiClient-qHjpFqPL.js} +19 -19
- package/dist-vue/_chunks/{createChatbotApiClient-DecVahlB.js.map → createChatbotApiClient-qHjpFqPL.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-BQTq8fq-.js → useChatbotStore-CBjfSN69.js} +1143 -1143
- package/dist-vue/_chunks/{useChatbotStore-BQTq8fq-.js.map → useChatbotStore-CBjfSN69.js.map} +1 -1
- package/dist-vue/_chunks/{utils-BLMOBcka.js → utils-BCGK2AFl.js} +35 -40
- package/dist-vue/_chunks/utils-BCGK2AFl.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 +201 -21
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4316 -4264
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +58 -22
- 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 +11 -5
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +3 -4
- 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/useChatbotStore.d.ts +13 -7
- package/dist-vue/packages/composable/src/chatbot/useGreeting.d.ts +5 -3
- package/dist-vue/packages/models/src/schema/Agent.d.ts +45 -18
- package/dist-vue/packages/models/src/schema/Member.d.ts +11 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +1 -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 +5 -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-CTZPru6f.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-CQup254H.js +0 -399
- package/dist-vue/_chunks/PkChatbotInput-CQup254H.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-CZjOJn6w.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-wyaH2IgV.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-h2qZ0JOD.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput-C-bMNHC-.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-DU8qnlVX.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-BOxfKD1b.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-Df6EOYxj.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-DnDtN4Q7.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-D4iupq1A.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-dKZScKD9.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-CQC3rInD.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-CkZyWh4V.js";
|
|
@@ -528,7 +528,13 @@ function yt(e) {
|
|
|
528
528
|
let t = e.split("/")[0];
|
|
529
529
|
return Object.prototype.hasOwnProperty.call(vt, t) ? vt[t] : void 0;
|
|
530
530
|
}
|
|
531
|
-
var bt =
|
|
531
|
+
var bt = [
|
|
532
|
+
"perplexity_search",
|
|
533
|
+
"parallel_search",
|
|
534
|
+
"web_search",
|
|
535
|
+
"openai_web_search",
|
|
536
|
+
"google_search"
|
|
537
|
+
], xt = d({
|
|
532
538
|
maxResults: i().int().min(1).max(20).optional(),
|
|
533
539
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
534
540
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -541,7 +547,7 @@ var bt = d({
|
|
|
541
547
|
"month",
|
|
542
548
|
"year"
|
|
543
549
|
]).optional()
|
|
544
|
-
}),
|
|
550
|
+
}), St = d({
|
|
545
551
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
546
552
|
maxResults: i().int().min(1).max(20).optional(),
|
|
547
553
|
sourcePolicy: d({
|
|
@@ -554,7 +560,7 @@ var bt = d({
|
|
|
554
560
|
maxCharsTotal: i().int().positive().optional()
|
|
555
561
|
}).optional(),
|
|
556
562
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
557
|
-
}),
|
|
563
|
+
}), Ct = d({
|
|
558
564
|
openai: d({}).optional(),
|
|
559
565
|
anthropic: d({
|
|
560
566
|
maxUses: i().int().positive().optional(),
|
|
@@ -572,10 +578,10 @@ var bt = d({
|
|
|
572
578
|
}), G = d({
|
|
573
579
|
enabled: u().default(!1),
|
|
574
580
|
provider: l(W).optional().default(W.Native),
|
|
575
|
-
perplexity:
|
|
576
|
-
parallel:
|
|
577
|
-
native:
|
|
578
|
-
}),
|
|
581
|
+
perplexity: xt.optional(),
|
|
582
|
+
parallel: St.optional(),
|
|
583
|
+
native: Ct.optional()
|
|
584
|
+
}), wt = d({ useAllUserKb: u().default(!1) }), Tt = d({ useAllUserFiles: u().default(!1) }), Et = d({ tools: c(n()).default([]) }), Dt = d({
|
|
579
585
|
disabled: c(l(U)).default([
|
|
580
586
|
U.UserMemory,
|
|
581
587
|
U.SearchInUserFiles,
|
|
@@ -585,9 +591,9 @@ var bt = d({
|
|
|
585
591
|
]),
|
|
586
592
|
showForm: _t.optional().default(() => _t.parse({})),
|
|
587
593
|
webSearch: G.optional().default(() => G.parse({})),
|
|
588
|
-
userMemory:
|
|
589
|
-
userFiles:
|
|
590
|
-
approval:
|
|
594
|
+
userMemory: wt.optional().default(() => wt.parse({})),
|
|
595
|
+
userFiles: Tt.optional().default(() => Tt.parse({})),
|
|
596
|
+
approval: Et.optional().default(() => Et.parse({}))
|
|
591
597
|
}), K = d({
|
|
592
598
|
freshness: d({
|
|
593
599
|
enabled: u().default(!1),
|
|
@@ -600,7 +606,7 @@ var bt = d({
|
|
|
600
606
|
diversity: i().min(0).max(1).default(.3),
|
|
601
607
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
602
608
|
}).prefault({})
|
|
603
|
-
}).prefault({}),
|
|
609
|
+
}).prefault({}), Ot = d({
|
|
604
610
|
prompt: n().optional(),
|
|
605
611
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
606
612
|
maxOutputTokens: i().positive().optional(),
|
|
@@ -611,16 +617,16 @@ var bt = d({
|
|
|
611
617
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
612
618
|
reasoning: $e,
|
|
613
619
|
ranking: K.optional().default(() => K.parse({}))
|
|
614
|
-
}), q = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e),
|
|
620
|
+
}), 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
621
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
616
622
|
}({}), Y = /* @__PURE__ */ function(e) {
|
|
617
623
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
618
624
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
619
|
-
return e.
|
|
625
|
+
return e.Solid = "solid", e.Glass = "glass", e;
|
|
620
626
|
}({}), Z = /* @__PURE__ */ function(e) {
|
|
621
627
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
622
|
-
}({}),
|
|
623
|
-
function
|
|
628
|
+
}({}), At = Object.values(Z), jt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
629
|
+
function Mt(e) {
|
|
624
630
|
let t = e.trim().toLowerCase();
|
|
625
631
|
if (!t) return "";
|
|
626
632
|
try {
|
|
@@ -654,18 +660,19 @@ var Q = d({
|
|
|
654
660
|
welcomePopup: u().optional().default(!1),
|
|
655
661
|
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
656
662
|
layout: l(Y).optional().default(Y.Floating),
|
|
657
|
-
|
|
663
|
+
appearance: l(X).optional().default(X.Solid),
|
|
664
|
+
hideFloatingButton: u().optional().default(!1),
|
|
658
665
|
workingGlow: u().optional().default(!0),
|
|
659
666
|
copilotPageCss: n().optional(),
|
|
660
667
|
maxMessageLength: i().int().positive().optional(),
|
|
661
|
-
widgetUrl: r().default(
|
|
668
|
+
widgetUrl: r().default(kt),
|
|
662
669
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
663
670
|
loaderStrategy: l(J).optional().default(J.InlineModule),
|
|
664
671
|
customCss: n().optional(),
|
|
665
672
|
smoothStream: u().optional().default(!1),
|
|
666
673
|
showExtendedSteps: u().optional().default(!1),
|
|
667
|
-
imageHosts: c(n().overwrite(
|
|
668
|
-
}),
|
|
674
|
+
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([])
|
|
675
|
+
}), Nt = [
|
|
669
676
|
"image/jpeg",
|
|
670
677
|
"image/png",
|
|
671
678
|
"image/gif",
|
|
@@ -674,19 +681,19 @@ var Q = d({
|
|
|
674
681
|
"text/plain",
|
|
675
682
|
"text/markdown",
|
|
676
683
|
"text/csv"
|
|
677
|
-
],
|
|
684
|
+
], Pt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $ = d({
|
|
678
685
|
enabled: u().default(!1),
|
|
679
686
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
680
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([...
|
|
687
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...Nt]),
|
|
681
688
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
682
689
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
683
|
-
}),
|
|
690
|
+
}), Ft = d({
|
|
684
691
|
zeroDataRetention: u().default(!0),
|
|
685
692
|
disallowPromptTraining: u().default(!0),
|
|
686
693
|
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
687
|
-
}),
|
|
694
|
+
}), It = d({ enabled: u().default(!1) }), Lt = /* @__PURE__ */ function(e) {
|
|
688
695
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
689
|
-
}({}),
|
|
696
|
+
}({}), Rt = d({ mode: l(Lt).default(Lt.Off) }), zt = d({
|
|
690
697
|
enabled: u().default(!1),
|
|
691
698
|
voiceId: n().optional(),
|
|
692
699
|
language: n().min(2).max(5).default("it"),
|
|
@@ -705,40 +712,40 @@ var Q = d({
|
|
|
705
712
|
providerAgentId: n().optional(),
|
|
706
713
|
providerSecretId: n().optional(),
|
|
707
714
|
providerApiKeyId: n().optional()
|
|
708
|
-
}),
|
|
715
|
+
}), Bt = d({ enabled: u() });
|
|
709
716
|
d({
|
|
710
717
|
chatId: n().min(1).optional(),
|
|
711
718
|
deviceContext: Ae.optional(),
|
|
712
719
|
externalContext: p(n(), f()).optional()
|
|
713
720
|
});
|
|
714
|
-
var
|
|
721
|
+
var Vt = d({
|
|
715
722
|
sessionId: n(),
|
|
716
723
|
signedUrl: n(),
|
|
717
724
|
providerAgentId: n(),
|
|
718
725
|
chatId: n(),
|
|
719
726
|
maxSessionSeconds: i().int()
|
|
720
|
-
}),
|
|
727
|
+
}), Ht = d({
|
|
721
728
|
voiceId: n(),
|
|
722
729
|
name: n(),
|
|
723
730
|
category: n().optional(),
|
|
724
731
|
previewUrl: n().optional(),
|
|
725
732
|
labels: p(n(), n()).optional()
|
|
726
733
|
});
|
|
727
|
-
c(
|
|
728
|
-
var
|
|
729
|
-
model:
|
|
734
|
+
c(Ht);
|
|
735
|
+
var Ut = d({
|
|
736
|
+
model: Ot,
|
|
730
737
|
interface: Q,
|
|
731
|
-
tools:
|
|
738
|
+
tools: Dt.optional().default(() => Dt.parse({})),
|
|
732
739
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
733
|
-
gatewayOptions:
|
|
734
|
-
channels: c(l(Z)).optional().default(() => [...
|
|
740
|
+
gatewayOptions: Ft.optional().default(() => Ft.parse({})),
|
|
741
|
+
channels: c(l(Z)).optional().default(() => [...At]),
|
|
735
742
|
externalContextSchema: ae.optional(),
|
|
736
|
-
openaiApi:
|
|
737
|
-
voice:
|
|
738
|
-
toolWorkingSet:
|
|
743
|
+
openaiApi: It.optional().default(() => It.parse({})),
|
|
744
|
+
voice: zt.optional().default(() => zt.parse({})),
|
|
745
|
+
toolWorkingSet: Rt.optional().default(() => Rt.parse({})),
|
|
739
746
|
hostTools: Pe.optional(),
|
|
740
747
|
pageAccess: He.optional()
|
|
741
|
-
}),
|
|
748
|
+
}), Wt = d({
|
|
742
749
|
rateLimits: d({
|
|
743
750
|
minuteRateLimit: i().int().min(0).optional(),
|
|
744
751
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -755,8 +762,8 @@ d({
|
|
|
755
762
|
fallbackModels: c(n()).default([]),
|
|
756
763
|
status: l(j).default(j.Draft),
|
|
757
764
|
visibility: l(M).default(M.Organization),
|
|
758
|
-
settings:
|
|
759
|
-
security:
|
|
765
|
+
settings: Ut,
|
|
766
|
+
security: Wt.nullish(),
|
|
760
767
|
type: l(N).default(N.Chat),
|
|
761
768
|
organizationId: n()
|
|
762
769
|
}), ee(() => d({
|
|
@@ -767,8 +774,8 @@ d({
|
|
|
767
774
|
fallbackModels: c(n()).nullable().default([]),
|
|
768
775
|
status: l(j).default(j.Draft),
|
|
769
776
|
visibility: l(M).default(M.Organization),
|
|
770
|
-
settings:
|
|
771
|
-
security:
|
|
777
|
+
settings: Ut,
|
|
778
|
+
security: Wt.nullable(),
|
|
772
779
|
type: l(N).default(N.Chat),
|
|
773
780
|
organizationId: n(),
|
|
774
781
|
createdAt: m(),
|
|
@@ -781,7 +788,7 @@ d({
|
|
|
781
788
|
outOfBudget: u().optional().default(!1),
|
|
782
789
|
outOfBudgetReason: n().optional().default("")
|
|
783
790
|
}));
|
|
784
|
-
var
|
|
791
|
+
var Gt = d({
|
|
785
792
|
id: n(),
|
|
786
793
|
name: n(),
|
|
787
794
|
status: l(j),
|
|
@@ -792,51 +799,52 @@ var Wt = d({
|
|
|
792
799
|
updatedAt: m(),
|
|
793
800
|
capabilities: d({
|
|
794
801
|
fileUpload: $,
|
|
795
|
-
voice:
|
|
802
|
+
voice: Bt,
|
|
796
803
|
hostTools: Fe.optional(),
|
|
797
804
|
pageAccess: Ge.optional()
|
|
798
805
|
}),
|
|
799
|
-
channels: c(l(Z)).default(() => [...
|
|
800
|
-
}),
|
|
806
|
+
channels: c(l(Z)).default(() => [...At])
|
|
807
|
+
}), Kt = Q.pick({
|
|
801
808
|
logo: !0,
|
|
802
809
|
mainColor: !0,
|
|
803
810
|
textColor: !0,
|
|
804
811
|
theme: !0,
|
|
805
812
|
floatingButtonPosition: !0,
|
|
806
813
|
layout: !0,
|
|
807
|
-
|
|
814
|
+
appearance: !0,
|
|
815
|
+
hideFloatingButton: !0,
|
|
808
816
|
copilotPageCss: !0,
|
|
809
817
|
customCss: !0
|
|
810
|
-
}),
|
|
818
|
+
}), qt = Gt.pick({
|
|
811
819
|
id: !0,
|
|
812
820
|
name: !0,
|
|
813
821
|
organizationId: !0
|
|
814
|
-
}).extend({ interface:
|
|
822
|
+
}).extend({ interface: Kt }), Jt = d({
|
|
815
823
|
emailPassword: u(),
|
|
816
824
|
google: u(),
|
|
817
825
|
microsoft: u()
|
|
818
|
-
}),
|
|
826
|
+
}), Yt = d({
|
|
819
827
|
requiresAuth: s(!1),
|
|
820
|
-
agent:
|
|
828
|
+
agent: Gt,
|
|
821
829
|
branding: a()
|
|
822
|
-
}),
|
|
830
|
+
}), Xt = d({
|
|
823
831
|
requiresAuth: s(!0),
|
|
824
832
|
agent: a(),
|
|
825
|
-
branding:
|
|
833
|
+
branding: qt
|
|
826
834
|
});
|
|
827
|
-
te("requiresAuth", [
|
|
828
|
-
var
|
|
835
|
+
te("requiresAuth", [Yt, Xt]);
|
|
836
|
+
var Zt = d({
|
|
829
837
|
frontendUrl: n().optional(),
|
|
830
838
|
telemetry: d({
|
|
831
839
|
environment: n(),
|
|
832
840
|
samplingRate: i().min(0).max(1)
|
|
833
841
|
}).nullable()
|
|
834
|
-
}),
|
|
835
|
-
authMethods:
|
|
842
|
+
}), Qt = d({
|
|
843
|
+
authMethods: Jt,
|
|
836
844
|
deploymentBranding: fe.nullish(),
|
|
837
|
-
deployment:
|
|
845
|
+
deployment: Zt.optional()
|
|
838
846
|
});
|
|
839
|
-
te("requiresAuth", [
|
|
847
|
+
te("requiresAuth", [Yt.extend(Qt.shape), Xt.extend(Qt.shape)]), d({
|
|
840
848
|
id: t(),
|
|
841
849
|
agentIds: c(t())
|
|
842
850
|
}), d({
|
|
@@ -857,6 +865,6 @@ te("requiresAuth", [Jt.extend(Zt.shape), Yt.extend(Zt.shape)]), d({
|
|
|
857
865
|
...g.ids()
|
|
858
866
|
});
|
|
859
867
|
//#endregion
|
|
860
|
-
export {
|
|
868
|
+
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
869
|
|
|
862
|
-
//# sourceMappingURL=Agent-
|
|
870
|
+
//# sourceMappingURL=Agent-DcoF75y8.js.map
|