@8wave/ai-elements 0.121.0-beta.55 → 0.121.0-beta.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/_chunks/{Agent-BdoXh8b0.js → Agent-FDL4Wq0B.js} +95 -71
  2. package/dist/_chunks/Agent-FDL4Wq0B.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-Bev81_Lp.js → PkStreamingMarkdown-DPW6VsEn.js} +6 -6
  4. package/dist/_chunks/{PkStreamingMarkdown-Bev81_Lp.js.map → PkStreamingMarkdown-DPW6VsEn.js.map} +1 -1
  5. package/dist/_chunks/{PkToolChatFile-a37ez2k5.js → PkToolChatFile-BL6_6_YP.js} +4 -4
  6. package/dist/_chunks/{PkToolChatFile-a37ez2k5.js.map → PkToolChatFile-BL6_6_YP.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestGeolocation-BantUie4.js → PkToolRequestGeolocation-nLx_fany.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestGeolocation-BantUie4.js.map → PkToolRequestGeolocation-nLx_fany.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-CB5ziPOE.js → PkToolRequestOAuthConnection-BeULtYsM.js} +2 -2
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-CB5ziPOE.js.map → PkToolRequestOAuthConnection-BeULtYsM.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowArtifact-CecXXZSh.js → PkToolShowArtifact-BbxJB9sw.js} +2 -2
  12. package/dist/_chunks/{PkToolShowArtifact-CecXXZSh.js.map → PkToolShowArtifact-BbxJB9sw.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-3BGkXgD9.js → PkToolShowContactForm-MPqFOYBD.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-3BGkXgD9.js.map → PkToolShowContactForm-MPqFOYBD.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-BXOmY4ce.js → PkToolShowForm-BCt6k0Qn.js} +3 -3
  16. package/dist/_chunks/{PkToolShowForm-BXOmY4ce.js.map → PkToolShowForm-BCt6k0Qn.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowImageGallery-BisEror8.js → PkToolShowImageGallery-D5Mj0OMR.js} +2 -2
  18. package/dist/_chunks/{PkToolShowImageGallery-BisEror8.js.map → PkToolShowImageGallery-D5Mj0OMR.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowProductList-BmPdjUSS.js → PkToolShowProductList-Fsm9LxbT.js} +2 -2
  20. package/dist/_chunks/{PkToolShowProductList-BmPdjUSS.js.map → PkToolShowProductList-Fsm9LxbT.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowSources-Cv8UguNA.js → PkToolShowSources-CmSKmV61.js} +3 -3
  22. package/dist/_chunks/{PkToolShowSources-Cv8UguNA.js.map → PkToolShowSources-CmSKmV61.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowSuggestedReply-lzs6-CcI.js → PkToolShowSuggestedReply-Bp3CzPjY.js} +2 -2
  24. package/dist/_chunks/{PkToolShowSuggestedReply-lzs6-CcI.js.map → PkToolShowSuggestedReply-Bp3CzPjY.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowVideo-BPYYn43O.js → PkToolShowVideo-2G2Sty3S.js} +2 -2
  26. package/dist/_chunks/{PkToolShowVideo-BPYYn43O.js.map → PkToolShowVideo-2G2Sty3S.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowWebPages-CbE_bnHt.js → PkToolShowWebPages-BpNBC0sK.js} +2 -2
  28. package/dist/_chunks/{PkToolShowWebPages-CbE_bnHt.js.map → PkToolShowWebPages-BpNBC0sK.js.map} +1 -1
  29. package/dist/_chunks/{chatImagePolicy-CZeGEXvB.js → chatImagePolicy-ulDURWxd.js} +2 -2
  30. package/dist/_chunks/{chatImagePolicy-CZeGEXvB.js.map → chatImagePolicy-ulDURWxd.js.map} +1 -1
  31. package/dist/_chunks/{markdown-DtRRqlac.js → markdown-CYo6_RtA.js} +8 -8
  32. package/dist/_chunks/{markdown-DtRRqlac.js.map → markdown-CYo6_RtA.js.map} +1 -1
  33. package/dist/ai-elements.es.js +2419 -2422
  34. package/dist/ai-elements.es.js.map +1 -1
  35. package/dist-vue/PkChatbot.js +1 -1
  36. package/dist-vue/PkChatbotEmptyState.js +1 -1
  37. package/dist-vue/PkChatbotInput.js +1 -1
  38. package/dist-vue/PkChatbotMessages.js +1 -1
  39. package/dist-vue/PkChatbotStepPayload.js +1 -1
  40. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  41. package/dist-vue/PkChatbotSteps.js +1 -1
  42. package/dist-vue/PkChatbotViewChat.js +1 -1
  43. package/dist-vue/PkChatbotViewConversations.js +1 -1
  44. package/dist-vue/PkChatbotViewFiles.js +1 -1
  45. package/dist-vue/PkChatbotViewProfile.js +1 -1
  46. package/dist-vue/_chunks/{Agent-B-jQOrER.js → Agent-CZUFbLo7.js} +85 -80
  47. package/dist-vue/_chunks/Agent-CZUFbLo7.js.map +1 -0
  48. package/dist-vue/_chunks/{Document-DQtliJu6.js → Document-C06S5S5M.js} +2 -2
  49. package/dist-vue/_chunks/{Document-DQtliJu6.js.map → Document-C06S5S5M.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbot-BFAcqm6m.js → PkChatbot-BjD_4yaD.js} +8 -8
  51. package/dist-vue/_chunks/{PkChatbot-BFAcqm6m.js.map → PkChatbot-BjD_4yaD.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkChatbotEmptyState-fADhr37n.js → PkChatbotEmptyState-CMNmmQdu.js} +2 -2
  53. package/dist-vue/_chunks/{PkChatbotEmptyState-fADhr37n.js.map → PkChatbotEmptyState-CMNmmQdu.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbotInput-CUOcwWDz.js → PkChatbotInput-CdpjDIzr.js} +2 -2
  55. package/dist-vue/_chunks/{PkChatbotInput-CUOcwWDz.js.map → PkChatbotInput-CdpjDIzr.js.map} +1 -1
  56. package/dist-vue/_chunks/PkChatbotMessages-ozG-o8mm.js +965 -0
  57. package/dist-vue/_chunks/PkChatbotMessages-ozG-o8mm.js.map +1 -0
  58. package/dist-vue/_chunks/{PkChatbotStepPayload-CQD8lb4l.js → PkChatbotStepPayload-WwVYTghY.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-CQD8lb4l.js.map → PkChatbotStepPayload-WwVYTghY.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bj1ZBPMz.js → PkChatbotStepToolDetail-BV2J0bAi.js} +3 -3
  61. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bj1ZBPMz.js.map → PkChatbotStepToolDetail-BV2J0bAi.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotSteps-DhIEYst5.js → PkChatbotSteps-D2z1P3h3.js} +5 -5
  63. package/dist-vue/_chunks/{PkChatbotSteps-DhIEYst5.js.map → PkChatbotSteps-D2z1P3h3.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotViewChat-CW4SxAtr.js → PkChatbotViewChat-BqFY0Evp.js} +7 -7
  65. package/dist-vue/_chunks/{PkChatbotViewChat-CW4SxAtr.js.map → PkChatbotViewChat-BqFY0Evp.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkChatbotViewConversations-BXxXUgso.js → PkChatbotViewConversations-DF_c4X6k.js} +3 -3
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-BXxXUgso.js.map → PkChatbotViewConversations-DF_c4X6k.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotViewFiles-i_OUsdlU.js → PkChatbotViewFiles-B76IwGGP.js} +3 -3
  69. package/dist-vue/_chunks/{PkChatbotViewFiles-i_OUsdlU.js.map → PkChatbotViewFiles-B76IwGGP.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotViewProfile-x0oUCbeL.js → PkChatbotViewProfile-Bt0eH8fO.js} +2 -2
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-x0oUCbeL.js.map → PkChatbotViewProfile-Bt0eH8fO.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkStreamingMarkdown-qZLlI83D.js → PkStreamingMarkdown-DbcGdYgv.js} +3 -3
  73. package/dist-vue/_chunks/{PkStreamingMarkdown-qZLlI83D.js.map → PkStreamingMarkdown-DbcGdYgv.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkToolChatFile-DPkLqqDt.js → PkToolChatFile-CVRYORvL.js} +2 -2
  75. package/dist-vue/_chunks/{PkToolChatFile-DPkLqqDt.js.map → PkToolChatFile-CVRYORvL.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkToolRequestGeolocation-CY-NC6Rc.js → PkToolRequestGeolocation-DXHDyI5N.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolRequestGeolocation-CY-NC6Rc.js.map → PkToolRequestGeolocation-DXHDyI5N.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-RkbnKSde.js → PkToolRequestOAuthConnection-D5hBaUNG.js} +2 -2
  79. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-RkbnKSde.js.map → PkToolRequestOAuthConnection-D5hBaUNG.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkToolShowArtifact-BDZjRnfs.js → PkToolShowArtifact-CucTREqR.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowArtifact-BDZjRnfs.js.map → PkToolShowArtifact-CucTREqR.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowContactForm-CcIF7fNS.js → PkToolShowContactForm-B3uOHhnG.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolShowContactForm-CcIF7fNS.js.map → PkToolShowContactForm-B3uOHhnG.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolShowDiagram-CD70YQgq.js → PkToolShowDiagram-CHLApsxe.js} +2 -2
  85. package/dist-vue/_chunks/{PkToolShowDiagram-CD70YQgq.js.map → PkToolShowDiagram-CHLApsxe.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShowForm-edPn56Ka.js → PkToolShowForm-CblYA_3B.js} +4 -4
  87. package/dist-vue/_chunks/{PkToolShowForm-edPn56Ka.js.map → PkToolShowForm-CblYA_3B.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowImageGallery-82BzTTbf.js → PkToolShowImageGallery-uhRKuPJK.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolShowImageGallery-82BzTTbf.js.map → PkToolShowImageGallery-uhRKuPJK.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowProductList-CKPDiMkx.js → PkToolShowProductList-BIbKoptX.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowProductList-CKPDiMkx.js.map → PkToolShowProductList-BIbKoptX.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowSources-CHH2vKVG.js → PkToolShowSources-Ci8ssht-.js} +3 -3
  93. package/dist-vue/_chunks/{PkToolShowSources-CHH2vKVG.js.map → PkToolShowSources-Ci8ssht-.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowSuggestedReply-CThFJVUq.js → PkToolShowSuggestedReply-CQgkPMgE.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowSuggestedReply-CThFJVUq.js.map → PkToolShowSuggestedReply-CQgkPMgE.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowVideo-C5TKoW1f.js → PkToolShowVideo-hQQ_Kr8f.js} +2 -2
  97. package/dist-vue/_chunks/{PkToolShowVideo-C5TKoW1f.js.map → PkToolShowVideo-hQQ_Kr8f.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowWebPages-CuwLXH1I.js → PkToolShowWebPages-BUlVSK43.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowWebPages-CuwLXH1I.js.map → PkToolShowWebPages-BUlVSK43.js.map} +1 -1
  100. package/dist-vue/_chunks/{createChatbotApiClient-B3U31J_K.js → createChatbotApiClient-BYGLKd_e.js} +14 -14
  101. package/dist-vue/_chunks/{createChatbotApiClient-B3U31J_K.js.map → createChatbotApiClient-BYGLKd_e.js.map} +1 -1
  102. package/dist-vue/_chunks/{useChatbotStore-D2L4m3iJ.js → useChatbotStore-O0u7mVit.js} +475 -475
  103. package/dist-vue/_chunks/{useChatbotStore-D2L4m3iJ.js.map → useChatbotStore-O0u7mVit.js.map} +1 -1
  104. package/dist-vue/_chunks/{utils-C8jnMPj0.js → utils-CqPytB2D.js} +8 -8
  105. package/dist-vue/_chunks/{utils-C8jnMPj0.js.map → utils-CqPytB2D.js.map} +1 -1
  106. package/dist-vue/api.js +1 -1
  107. package/dist-vue/composables.js +6 -6
  108. package/dist-vue/composables.js.map +1 -1
  109. package/dist-vue/index.js +140 -140
  110. package/dist-vue/index.js.map +1 -1
  111. package/dist-vue/locales.js +4 -4
  112. package/dist-vue/packages/models/src/schema/Agent.d.ts +6 -0
  113. package/package.json +1 -1
  114. package/dist/_chunks/Agent-BdoXh8b0.js.map +0 -1
  115. package/dist-vue/_chunks/Agent-B-jQOrER.js.map +0 -1
  116. package/dist-vue/_chunks/PkChatbotMessages-CcTQozaF.js +0 -968
  117. package/dist-vue/_chunks/PkChatbotMessages-CcTQozaF.js.map +0 -1
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbot-BFAcqm6m.js";
1
+ export { t as default } from "./_chunks/PkChatbot-BjD_4yaD.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotEmptyState-fADhr37n.js";
1
+ export { t as default } from "./_chunks/PkChatbotEmptyState-CMNmmQdu.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotInput-CUOcwWDz.js";
1
+ export { t as default } from "./_chunks/PkChatbotInput-CdpjDIzr.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotMessages-CcTQozaF.js";
1
+ export { t as default } from "./_chunks/PkChatbotMessages-ozG-o8mm.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotStepPayload-CQD8lb4l.js";
1
+ export { t as default } from "./_chunks/PkChatbotStepPayload-WwVYTghY.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotStepToolDetail-Bj1ZBPMz.js";
1
+ export { t as default } from "./_chunks/PkChatbotStepToolDetail-BV2J0bAi.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotSteps-DhIEYst5.js";
1
+ export { t as default } from "./_chunks/PkChatbotSteps-D2z1P3h3.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewChat-CW4SxAtr.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewChat-BqFY0Evp.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewConversations-BXxXUgso.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewConversations-DF_c4X6k.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewFiles-i_OUsdlU.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewFiles-B76IwGGP.js";
@@ -1 +1 @@
1
- export { t as default } from "./_chunks/PkChatbotViewProfile-x0oUCbeL.js";
1
+ export { t as default } from "./_chunks/PkChatbotViewProfile-Bt0eH8fO.js";
@@ -458,6 +458,11 @@ function ut(e) {
458
458
  return e === U.RequestConfirm || e === U.ShowArtifact || e === U.ShowCalendarEvent || e === U.ShowComparison || e === U.ShowContactForm || e === U.ShowDiagram || e === U.ShowEmail || e === U.ShowImageGallery || e === U.ShowLocation || e === U.ShowMessage || e === U.ShowForm || e === U.ShowMultipleChoice || e === U.ShowProductList || e === U.ShowQrCode || e === U.ShowSources || e === U.ShowSuggestedReply || e === U.ShowVideo || e === U.ShowWeather || e === U.ShowWebPages;
459
459
  }
460
460
  var dt = /* @__PURE__ */ new Set([
461
+ "editSpreadsheet",
462
+ "editWordDocument",
463
+ U.CreateSpreadsheet,
464
+ U.CreateWordDocument
465
+ ]), ft = /* @__PURE__ */ new Set([
461
466
  U.RequestConfirm,
462
467
  U.ShowArtifact,
463
468
  U.ShowWeather,
@@ -473,25 +478,25 @@ var dt = /* @__PURE__ */ new Set([
473
478
  U.ShowEmail,
474
479
  U.ShowMessage,
475
480
  U.ShowForm,
476
- "editSpreadsheet",
481
+ ...dt,
477
482
  U.ShareDocument
478
483
  ]);
479
- function ft(e) {
480
- return dt.has(e);
484
+ function pt(e) {
485
+ return ft.has(e);
481
486
  }
482
- var pt = /* @__PURE__ */ new Set([
487
+ var mt = /* @__PURE__ */ new Set([
483
488
  U.RequestConfirm,
484
489
  U.RequestGeolocation,
485
490
  U.ShowForm,
486
491
  U.ShowMultipleChoice,
487
492
  "requestOAuthConnection"
488
493
  ]);
489
- function mt(e) {
490
- return pt.has(e);
494
+ function ht(e) {
495
+ return mt.has(e);
491
496
  }
492
- var ht = /* @__PURE__ */ function(e) {
497
+ var gt = /* @__PURE__ */ function(e) {
493
498
  return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
494
- }({}), gt = /* @__PURE__ */ new Set([
499
+ }({}), _t = /* @__PURE__ */ new Set([
495
500
  U.RequestConfirm,
496
501
  U.RequestGeolocation,
497
502
  U.ShowArtifact,
@@ -512,31 +517,31 @@ var ht = /* @__PURE__ */ function(e) {
512
517
  U.ShowVideo,
513
518
  U.ShowWeather,
514
519
  U.ShowWebPages
515
- ]), _t = "Shown on the caller's screen";
516
- function vt(e) {
517
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(_t));
520
+ ]), vt = "Shown on the caller's screen";
521
+ function yt(e) {
522
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(vt));
518
523
  }
519
- var yt = d({
524
+ var bt = d({
520
525
  maxSteps: i().int().min(1).max(10).optional().default(5),
521
526
  maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
522
527
  }), W = /* @__PURE__ */ function(e) {
523
528
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
524
- }({}), bt = {
529
+ }({}), xt = {
525
530
  openai: "OpenAI",
526
531
  anthropic: "Anthropic",
527
532
  google: "Google"
528
533
  };
529
- function xt(e) {
534
+ function St(e) {
530
535
  let t = e.split("/")[0];
531
- return Object.prototype.hasOwnProperty.call(bt, t) ? bt[t] : void 0;
536
+ return Object.prototype.hasOwnProperty.call(xt, t) ? xt[t] : void 0;
532
537
  }
533
- var St = [
538
+ var Ct = [
534
539
  "perplexity_search",
535
540
  "parallel_search",
536
541
  "web_search",
537
542
  "openai_web_search",
538
543
  "google_search"
539
- ], Ct = d({
544
+ ], wt = d({
540
545
  maxResults: i().int().min(1).max(20).optional(),
541
546
  maxTokens: i().int().positive().max(1e6).optional(),
542
547
  maxTokensPerPage: i().int().positive().optional(),
@@ -549,7 +554,7 @@ var St = [
549
554
  "month",
550
555
  "year"
551
556
  ]).optional()
552
- }), wt = d({
557
+ }), Tt = d({
553
558
  mode: l(["one-shot", "agentic"]).optional(),
554
559
  maxResults: i().int().min(1).max(20).optional(),
555
560
  sourcePolicy: d({
@@ -562,7 +567,7 @@ var St = [
562
567
  maxCharsTotal: i().int().positive().optional()
563
568
  }).optional(),
564
569
  fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
565
- }), Tt = d({
570
+ }), Et = d({
566
571
  openai: d({}).optional(),
567
572
  anthropic: d({
568
573
  maxUses: i().int().positive().optional(),
@@ -580,10 +585,10 @@ var St = [
580
585
  }), G = d({
581
586
  enabled: u().default(!1),
582
587
  provider: l(W).optional().default(W.Native),
583
- perplexity: Ct.optional(),
584
- parallel: wt.optional(),
585
- native: Tt.optional()
586
- }), Et = d({ useAllUserKb: u().default(!1) }), Dt = d({ useAllUserFiles: u().default(!1) }), Ot = d({ enabled: u().default(!1) }), K = d({ enabled: u().default(!1) }), kt = d({ tools: c(n()).default([]) }), At = d({
588
+ perplexity: wt.optional(),
589
+ parallel: Tt.optional(),
590
+ native: Et.optional()
591
+ }), Dt = d({ useAllUserKb: u().default(!1) }), Ot = d({ useAllUserFiles: u().default(!1) }), kt = d({ enabled: u().default(!1) }), K = d({ enabled: u().default(!1) }), At = d({ tools: c(n()).default([]) }), jt = d({
587
592
  disabled: c(l(U)).default([
588
593
  U.UserMemory,
589
594
  U.SearchInUserFiles,
@@ -591,14 +596,14 @@ var St = [
591
596
  U.FetchTeamsChannelHistory,
592
597
  U.ScheduleWakeup
593
598
  ]),
594
- showForm: yt.optional().default(() => yt.parse({})),
599
+ showForm: bt.optional().default(() => bt.parse({})),
595
600
  webSearch: G.optional().default(() => G.parse({})),
596
- userMemory: Et.optional().default(() => Et.parse({})),
597
- userFiles: Dt.optional().default(() => Dt.parse({})),
598
- shareDocument: Ot.optional().default(() => Ot.parse({})),
601
+ userMemory: Dt.optional().default(() => Dt.parse({})),
602
+ userFiles: Ot.optional().default(() => Ot.parse({})),
603
+ shareDocument: kt.optional().default(() => kt.parse({})),
599
604
  createSpreadsheet: K.optional().default(() => K.parse({})),
600
605
  createWordDocument: K.optional().default(() => K.parse({})),
601
- approval: kt.optional().default(() => kt.parse({}))
606
+ approval: At.optional().default(() => At.parse({}))
602
607
  }), q = d({
603
608
  freshness: d({
604
609
  enabled: u().default(!1),
@@ -611,7 +616,7 @@ var St = [
611
616
  diversity: i().min(0).max(1).default(.3),
612
617
  candidatesLimit: i().int().min(20).max(100).default(50)
613
618
  }).prefault({})
614
- }).prefault({}), jt = d({
619
+ }).prefault({}), Mt = d({
615
620
  prompt: n().optional(),
616
621
  temperature: i().min(0).max(2).optional().default(.6),
617
622
  maxOutputTokens: i().positive().optional(),
@@ -622,7 +627,7 @@ var St = [
622
627
  maxStepCount: i().int().min(1).max(40).optional().default(10),
623
628
  reasoning: tt,
624
629
  ranking: q.optional().default(() => q.parse({}))
625
- }), J = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), Mt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Y = /* @__PURE__ */ function(e) {
630
+ }), J = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), Nt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Y = /* @__PURE__ */ function(e) {
626
631
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
627
632
  }({}), X = /* @__PURE__ */ function(e) {
628
633
  return e.Floating = "floating", e.Copilot = "copilot", e;
@@ -630,8 +635,8 @@ var St = [
630
635
  return e.Solid = "solid", e.Glass = "glass", e;
631
636
  }({}), Q = /* @__PURE__ */ function(e) {
632
637
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
633
- }({}), Nt = Object.values(Q), Pt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
634
- function Ft(e) {
638
+ }({}), Pt = Object.values(Q), Ft = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
639
+ function It(e) {
635
640
  let t = e.trim().toLowerCase();
636
641
  if (!t) return "";
637
642
  try {
@@ -640,7 +645,7 @@ function Ft(e) {
640
645
  return t;
641
646
  }
642
647
  }
643
- var It = d({
648
+ var Lt = d({
644
649
  media: ne.optional(),
645
650
  logo: n().optional(),
646
651
  theme: l([
@@ -670,14 +675,14 @@ var It = d({
670
675
  workingGlow: u().optional().default(!0),
671
676
  copilotPageCss: n().optional(),
672
677
  maxMessageLength: i().int().positive().optional(),
673
- widgetUrl: r().default(Mt),
678
+ widgetUrl: r().default(Nt),
674
679
  loadDelay: i().int().min(0).max(3e4).optional().default(0),
675
680
  loaderStrategy: l(Y).optional().default(Y.InlineModule),
676
681
  customCss: n().optional(),
677
682
  smoothStream: u().optional().default(!1),
678
683
  showExtendedSteps: u().optional().default(!1),
679
- imageHosts: c(n().overwrite(Ft).refine((e) => e === "" || Pt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
680
- }), Lt = [
684
+ imageHosts: c(n().overwrite(It).refine((e) => e === "" || Ft.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
685
+ }), Rt = [
681
686
  "image/jpeg",
682
687
  "image/png",
683
688
  "image/gif",
@@ -686,19 +691,19 @@ var It = d({
686
691
  "text/plain",
687
692
  "text/markdown",
688
693
  "text/csv"
689
- ], Rt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", zt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Bt = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(U.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(U.WordDocument), $ = d({
694
+ ], zt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Bt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Vt = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(U.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(U.WordDocument), $ = d({
690
695
  enabled: u().default(!1),
691
696
  maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
692
- allowedMimeTypes: c(n().regex(re)).optional().default([...Lt]),
697
+ allowedMimeTypes: c(n().regex(re)).optional().default([...Rt]),
693
698
  maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
694
699
  maxFilesPerChat: i().int().positive().max(50).optional().default(20)
695
- }), Vt = d({
700
+ }), Ht = d({
696
701
  zeroDataRetention: u().default(!0),
697
702
  disallowPromptTraining: u().default(!0),
698
703
  providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
699
- }), Ht = d({ enabled: u().default(!1) }), Ut = /* @__PURE__ */ function(e) {
704
+ }), Ut = d({ enabled: u().default(!1) }), Wt = /* @__PURE__ */ function(e) {
700
705
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
701
- }({}), Wt = d({ mode: l(Ut).default(Ut.Off) }), Gt = d({
706
+ }({}), Gt = d({ mode: l(Wt).default(Wt.Off) }), Kt = d({
702
707
  enabled: u().default(!1),
703
708
  voiceId: n().optional(),
704
709
  language: n().min(2).max(5).default("it"),
@@ -717,40 +722,40 @@ var It = d({
717
722
  providerAgentId: n().optional(),
718
723
  providerSecretId: n().optional(),
719
724
  providerApiKeyId: n().optional()
720
- }), Kt = d({ enabled: u() });
725
+ }), qt = d({ enabled: u() });
721
726
  d({
722
727
  chatId: n().min(1).optional(),
723
728
  deviceContext: ke.optional(),
724
729
  externalContext: p(n(), f()).optional()
725
730
  });
726
- var qt = d({
731
+ var Jt = d({
727
732
  sessionId: n(),
728
733
  signedUrl: n(),
729
734
  providerAgentId: n(),
730
735
  chatId: n(),
731
736
  maxSessionSeconds: i().int()
732
- }), Jt = d({
737
+ }), Yt = d({
733
738
  voiceId: n(),
734
739
  name: n(),
735
740
  category: n().optional(),
736
741
  previewUrl: n().optional(),
737
742
  labels: p(n(), n()).optional()
738
743
  });
739
- c(Jt);
740
- var Yt = d({
741
- model: jt,
742
- interface: It,
743
- tools: At.optional().default(() => At.parse({})),
744
+ c(Yt);
745
+ var Xt = d({
746
+ model: Mt,
747
+ interface: Lt,
748
+ tools: jt.optional().default(() => jt.parse({})),
744
749
  fileUpload: $.optional().default(() => $.parse({})),
745
- gatewayOptions: Vt.optional().default(() => Vt.parse({})),
746
- channels: c(l(Q)).optional().default(() => [...Nt]),
750
+ gatewayOptions: Ht.optional().default(() => Ht.parse({})),
751
+ channels: c(l(Q)).optional().default(() => [...Pt]),
747
752
  externalContextSchema: ae.optional(),
748
- openaiApi: Ht.optional().default(() => Ht.parse({})),
749
- voice: Gt.optional().default(() => Gt.parse({})),
750
- toolWorkingSet: Wt.optional().default(() => Wt.parse({})),
753
+ openaiApi: Ut.optional().default(() => Ut.parse({})),
754
+ voice: Kt.optional().default(() => Kt.parse({})),
755
+ toolWorkingSet: Gt.optional().default(() => Gt.parse({})),
751
756
  hostTools: Ne.optional(),
752
757
  pageAccess: Ve.optional()
753
- }), Xt = d({
758
+ }), Zt = d({
754
759
  rateLimits: d({
755
760
  minuteRateLimit: i().int().min(0).optional(),
756
761
  hourRateLimit: i().int().min(0).optional(),
@@ -767,8 +772,8 @@ d({
767
772
  fallbackModels: c(n()).default([]),
768
773
  status: l(M).default(M.Draft),
769
774
  visibility: l(N).default(N.Organization),
770
- settings: Yt,
771
- security: Xt.nullish(),
775
+ settings: Xt,
776
+ security: Zt.nullish(),
772
777
  type: l(P).default(P.Chat),
773
778
  organizationId: n()
774
779
  }), ee(() => d({
@@ -779,8 +784,8 @@ d({
779
784
  fallbackModels: c(n()).nullable().default([]),
780
785
  status: l(M).default(M.Draft),
781
786
  visibility: l(N).default(N.Organization),
782
- settings: Yt,
783
- security: Xt.nullable(),
787
+ settings: Xt,
788
+ security: Zt.nullable(),
784
789
  type: l(P).default(P.Chat),
785
790
  organizationId: n(),
786
791
  createdAt: m(),
@@ -793,23 +798,23 @@ d({
793
798
  outOfBudget: u().optional().default(!1),
794
799
  outOfBudgetReason: n().optional().default("")
795
800
  }));
796
- var Zt = d({
801
+ var Qt = d({
797
802
  id: n(),
798
803
  name: n(),
799
804
  status: l(M),
800
805
  visibility: l(N),
801
806
  organizationId: n(),
802
- interface: It,
807
+ interface: Lt,
803
808
  createdAt: m(),
804
809
  updatedAt: m(),
805
810
  capabilities: d({
806
811
  fileUpload: $,
807
- voice: Kt,
812
+ voice: qt,
808
813
  hostTools: Pe.optional(),
809
814
  pageAccess: We.optional()
810
815
  }),
811
- channels: c(l(Q)).default(() => [...Nt])
812
- }), Qt = It.pick({
816
+ channels: c(l(Q)).default(() => [...Pt])
817
+ }), $t = Lt.pick({
813
818
  logo: !0,
814
819
  mainColor: !0,
815
820
  textColor: !0,
@@ -820,41 +825,41 @@ var Zt = d({
820
825
  hideFloatingButton: !0,
821
826
  copilotPageCss: !0,
822
827
  customCss: !0
823
- }), $t = Zt.pick({
828
+ }), en = Qt.pick({
824
829
  id: !0,
825
830
  name: !0,
826
831
  organizationId: !0
827
- }).extend({ interface: Qt }), en = d({
832
+ }).extend({ interface: $t }), tn = d({
828
833
  emailPassword: u(),
829
834
  google: u(),
830
835
  microsoft: u()
831
- }), tn = d({
836
+ }), nn = d({
832
837
  requiresAuth: s(!1),
833
- agent: Zt,
838
+ agent: Qt,
834
839
  branding: a()
835
- }), nn = d({
840
+ }), rn = d({
836
841
  requiresAuth: s(!0),
837
842
  agent: a(),
838
- branding: $t
843
+ branding: en
839
844
  });
840
- te("requiresAuth", [tn, nn]);
841
- var rn = d({
845
+ te("requiresAuth", [nn, rn]);
846
+ var an = d({
842
847
  frontendUrl: n().optional(),
843
848
  telemetry: d({
844
849
  environment: n(),
845
850
  samplingRate: i().min(0).max(1)
846
851
  }).nullable()
847
- }), an = d({
848
- authMethods: en,
852
+ }), on = d({
853
+ authMethods: tn,
849
854
  deploymentBranding: fe.nullish(),
850
- deployment: rn.optional()
855
+ deployment: an.optional()
851
856
  });
852
- te("requiresAuth", [tn.extend(an.shape), nn.extend(an.shape)]), d({
857
+ te("requiresAuth", [nn.extend(on.shape), rn.extend(on.shape)]), d({
853
858
  id: t(),
854
859
  limited: u(),
855
860
  agentIds: c(t())
856
861
  });
857
- var on = d({
862
+ var sn = d({
858
863
  userId: t(),
859
864
  name: n(),
860
865
  email: n(),
@@ -865,7 +870,7 @@ var on = d({
865
870
  });
866
871
  d({
867
872
  id: t(),
868
- members: c(on)
873
+ members: c(sn)
869
874
  }), d({
870
875
  id: t(),
871
876
  userIds: c(t())
@@ -886,6 +891,6 @@ d({
886
891
  ...g.fullText(),
887
892
  ...g.ids()
888
893
  });
889
- export { Fe as $, St as A, vt as B, I as C, pt as D, st as E, Bt as F, He as G, Ft as H, Qe as I, ze as J, Ue as K, ft as L, W as M, lt as N, gt as O, it as P, Ie as Q, ut as R, Ke as S, Rt as T, Ge as U, xt as V, j as W, Le as X, A as Y, Ae as Z, ht as _, $ as a, ye as at, R as b, q as c, me as ct, Ut as d, g as dt, ke as et, P as f, X as g, Z as h, Q as i, we as it, zt as j, qt as k, tt as l, h as lt, G as m, ot as n, D as nt, Vt as o, ue as ot, N as p, Be as q, U as r, _ as rt, Y as s, Te as st, L as t, b as tt, F as u, le as ut, ct as v, qe as w, at as x, B as y, mt as z };
894
+ export { Ie as $, Jt as A, ht as B, Ke as C, st as D, zt as E, it as F, j as G, St as H, Vt as I, Be as J, He as K, Qe as L, Bt as M, W as N, mt as O, lt as P, Ae as Q, pt as R, at as S, qe as T, It as U, yt as V, Ge as W, A as X, ze as Y, Le as Z, dt as _, $ as a, we as at, B as b, q as c, Te as ct, Wt as d, le as dt, Fe as et, P as f, g as ft, X as g, Z as h, Q as i, _ as it, Ct as j, _t as k, tt as l, me as lt, G as m, ot as n, b as nt, Ht as o, ye as ot, N as p, Ue as q, U as r, D as rt, Y as s, ue as st, L as t, ke as tt, F as u, h as ut, gt as v, I as w, R as x, ct as y, ut as z };
890
895
 
891
- //# sourceMappingURL=Agent-B-jQOrER.js.map
896
+ //# sourceMappingURL=Agent-CZUFbLo7.js.map