@8wave/ai-elements 0.126.0-beta.40 → 0.126.0-beta.42

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 (155) hide show
  1. package/dist/_chunks/{Agent-DZEyfr8D.js → Agent-DJ6TBi6l.js} +143 -138
  2. package/dist/_chunks/Agent-DJ6TBi6l.js.map +1 -0
  3. package/dist/_chunks/{PkFilePreview-BHqmp1EW.js → PkFilePreview-BrWWeK4E.js} +3 -3
  4. package/dist/_chunks/{PkFilePreview-BHqmp1EW.js.map → PkFilePreview-BrWWeK4E.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-BHAgVlKs.js → PkFilePreviewDialog-BRZH_LxY.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-BHAgVlKs.js.map → PkFilePreviewDialog-BRZH_LxY.js.map} +1 -1
  7. package/dist/_chunks/{PkImageEditorDialog-BDwL39Du.js → PkImageEditorDialog-D21ggZkD.js} +6 -5
  8. package/dist/_chunks/{PkImageEditorDialog-BDwL39Du.js.map → PkImageEditorDialog-D21ggZkD.js.map} +1 -1
  9. package/dist/_chunks/{PkSelectionActions-DLsZ8-gW.js → PkSelectionActions-BLfFobXb.js} +2 -2
  10. package/dist/_chunks/{PkSelectionActions-DLsZ8-gW.js.map → PkSelectionActions-BLfFobXb.js.map} +1 -1
  11. package/dist/_chunks/{PkStreamingMarkdown-14rJ_FK2.js → PkStreamingMarkdown-Bekhx_vG.js} +300 -213
  12. package/dist/_chunks/PkStreamingMarkdown-Bekhx_vG.js.map +1 -0
  13. package/dist/_chunks/{PkToolChatFile-62j1S0Pq.js → PkToolChatFile-BzN4fMaY.js} +3 -3
  14. package/dist/_chunks/{PkToolChatFile-62j1S0Pq.js.map → PkToolChatFile-BzN4fMaY.js.map} +1 -1
  15. package/dist/_chunks/{PkToolRequestGeolocation-B9EM_K6O.js → PkToolRequestGeolocation-Dj5OxEMP.js} +2 -2
  16. package/dist/_chunks/{PkToolRequestGeolocation-B9EM_K6O.js.map → PkToolRequestGeolocation-Dj5OxEMP.js.map} +1 -1
  17. package/dist/_chunks/{PkToolRequestOAuthConnection-CfjfqCHX.js → PkToolRequestOAuthConnection-Cj_IYnrW.js} +2 -2
  18. package/dist/_chunks/{PkToolRequestOAuthConnection-CfjfqCHX.js.map → PkToolRequestOAuthConnection-Cj_IYnrW.js.map} +1 -1
  19. package/dist/_chunks/PkToolShowArtifact-BkGtejtb.js +110 -0
  20. package/dist/_chunks/PkToolShowArtifact-BkGtejtb.js.map +1 -0
  21. package/dist/_chunks/{PkToolShowContactForm-BeJ5GR6t.js → PkToolShowContactForm-BXsvfCKR.js} +2 -2
  22. package/dist/_chunks/{PkToolShowContactForm-BeJ5GR6t.js.map → PkToolShowContactForm-BXsvfCKR.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowForm-B9VDoS_W.js → PkToolShowForm-DeG_AzO9.js} +4 -4
  24. package/dist/_chunks/{PkToolShowForm-B9VDoS_W.js.map → PkToolShowForm-DeG_AzO9.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowImageGallery-DFuc5IJ1.js → PkToolShowImageGallery-Dri9KUNg.js} +2 -2
  26. package/dist/_chunks/{PkToolShowImageGallery-DFuc5IJ1.js.map → PkToolShowImageGallery-Dri9KUNg.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowProductList-C2EJKYOV.js → PkToolShowProductList-C-XQdsus.js} +2 -2
  28. package/dist/_chunks/{PkToolShowProductList-C2EJKYOV.js.map → PkToolShowProductList-C-XQdsus.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowSources-BL3DnfcN.js → PkToolShowSources-DMDML2kQ.js} +3 -3
  30. package/dist/_chunks/{PkToolShowSources-BL3DnfcN.js.map → PkToolShowSources-DMDML2kQ.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSuggestedReply-DLgtjBJ1.js → PkToolShowSuggestedReply-BYoW-L6k.js} +2 -2
  32. package/dist/_chunks/{PkToolShowSuggestedReply-DLgtjBJ1.js.map → PkToolShowSuggestedReply-BYoW-L6k.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowVideo-DcWXDcOZ.js → PkToolShowVideo-C_1ziurv.js} +2 -2
  34. package/dist/_chunks/{PkToolShowVideo-DcWXDcOZ.js.map → PkToolShowVideo-C_1ziurv.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowWebPages-CPqMC6qt.js → PkToolShowWebPages-yFdm0n0F.js} +2 -2
  36. package/dist/_chunks/{PkToolShowWebPages-CPqMC6qt.js.map → PkToolShowWebPages-yFdm0n0F.js.map} +1 -1
  37. package/dist/_chunks/{chatImagePolicy-DMt6O5iK.js → chatImagePolicy-Dqke0kDv.js} +2 -2
  38. package/dist/_chunks/{chatImagePolicy-DMt6O5iK.js.map → chatImagePolicy-Dqke0kDv.js.map} +1 -1
  39. package/dist/_chunks/{markdown-nw5sXwU0.js → markdown-Z_eeOlvv.js} +16 -16
  40. package/dist/_chunks/{markdown-nw5sXwU0.js.map → markdown-Z_eeOlvv.js.map} +1 -1
  41. package/dist/_chunks/{utils-DE4cAz37.js → utils-C1JaUBI_.js} +2 -2
  42. package/dist/_chunks/{utils-DE4cAz37.js.map → utils-C1JaUBI_.js.map} +1 -1
  43. package/dist/ai-elements.es.js +3754 -3573
  44. package/dist/ai-elements.es.js.map +1 -1
  45. package/dist-vue/PkChatbot.js +1 -1
  46. package/dist-vue/PkChatbotAuth.js +1 -1
  47. package/dist-vue/PkChatbotEmptyState.js +1 -1
  48. package/dist-vue/PkChatbotInput.js +1 -1
  49. package/dist-vue/PkChatbotMessages.js +1 -1
  50. package/dist-vue/PkChatbotStepPayload.js +1 -1
  51. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  52. package/dist-vue/PkChatbotSteps.js +1 -1
  53. package/dist-vue/PkChatbotViewChat.js +1 -1
  54. package/dist-vue/PkChatbotViewConversations.js +1 -1
  55. package/dist-vue/PkChatbotViewFiles.js +1 -1
  56. package/dist-vue/PkChatbotViewProfile.js +1 -1
  57. package/dist-vue/_chunks/{Agent-CBAd3F7k.js → Agent-DrnYCRFA.js} +2 -2
  58. package/dist-vue/_chunks/{Agent-CBAd3F7k.js.map → Agent-DrnYCRFA.js.map} +1 -1
  59. package/dist-vue/_chunks/{Document-B3w5H0R0.js → Document-CA7c3oZE.js} +11 -11
  60. package/dist-vue/_chunks/{Document-B3w5H0R0.js.map → Document-CA7c3oZE.js.map} +1 -1
  61. package/dist-vue/_chunks/{Media-0U2B_qCS.js → Media-BIlhY_h6.js} +31 -26
  62. package/dist-vue/_chunks/Media-BIlhY_h6.js.map +1 -0
  63. package/dist-vue/_chunks/{PkChatbot-aCgj2DMu.js → PkChatbot-QjeNY0h6.js} +8 -8
  64. package/dist-vue/_chunks/{PkChatbot-aCgj2DMu.js.map → PkChatbot-QjeNY0h6.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkChatbotAuth-C5agN8ht.js → PkChatbotAuth-C8ZjLNFY.js} +8 -8
  66. package/dist-vue/_chunks/{PkChatbotAuth-C5agN8ht.js.map → PkChatbotAuth-C8ZjLNFY.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkChatbotEmptyState-CLfzcH_t.js → PkChatbotEmptyState-D6S0iYe3.js} +2 -2
  68. package/dist-vue/_chunks/{PkChatbotEmptyState-CLfzcH_t.js.map → PkChatbotEmptyState-D6S0iYe3.js.map} +1 -1
  69. package/dist-vue/_chunks/PkChatbotInput-CunAf5Rq.js +708 -0
  70. package/dist-vue/_chunks/PkChatbotInput-CunAf5Rq.js.map +1 -0
  71. package/dist-vue/_chunks/{PkChatbotMessages-CG3UZYcP.js → PkChatbotMessages-CzPsgCAN.js} +351 -326
  72. package/dist-vue/_chunks/PkChatbotMessages-CzPsgCAN.js.map +1 -0
  73. package/dist-vue/_chunks/{PkChatbotStepPayload-fyrbP7yS.js → PkChatbotStepPayload-BQDpTDgn.js} +2 -2
  74. package/dist-vue/_chunks/{PkChatbotStepPayload-fyrbP7yS.js.map → PkChatbotStepPayload-BQDpTDgn.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Drhc6X-x.js → PkChatbotStepToolDetail-Dsf9t1B6.js} +3 -3
  76. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Drhc6X-x.js.map → PkChatbotStepToolDetail-Dsf9t1B6.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkChatbotSteps-DZwV7UVr.js → PkChatbotSteps-HACZ1RrB.js} +5 -5
  78. package/dist-vue/_chunks/{PkChatbotSteps-DZwV7UVr.js.map → PkChatbotSteps-HACZ1RrB.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkChatbotViewChat-IU3HJpxG.js → PkChatbotViewChat-BpDCX_72.js} +107 -107
  80. package/dist-vue/_chunks/PkChatbotViewChat-BpDCX_72.js.map +1 -0
  81. package/dist-vue/_chunks/{PkChatbotViewConversations-4zGrp7Fo.js → PkChatbotViewConversations-B0nUFwuu.js} +3 -3
  82. package/dist-vue/_chunks/{PkChatbotViewConversations-4zGrp7Fo.js.map → PkChatbotViewConversations-B0nUFwuu.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkChatbotViewFiles-PHdrHZOf.js → PkChatbotViewFiles-gGshDAPk.js} +3 -3
  84. package/dist-vue/_chunks/{PkChatbotViewFiles-PHdrHZOf.js.map → PkChatbotViewFiles-gGshDAPk.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkChatbotViewProfile-BrZ7oiUY.js → PkChatbotViewProfile-BuJtqq8F.js} +2 -2
  86. package/dist-vue/_chunks/{PkChatbotViewProfile-BrZ7oiUY.js.map → PkChatbotViewProfile-BuJtqq8F.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkFilePreview-WqS-s3vk.js → PkFilePreview-0p50S8Km.js} +4 -4
  88. package/dist-vue/_chunks/{PkFilePreview-WqS-s3vk.js.map → PkFilePreview-0p50S8Km.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkFilePreviewDialog-BIaTAK05.js → PkFilePreviewDialog-B1N4xDEu.js} +2 -2
  90. package/dist-vue/_chunks/{PkFilePreviewDialog-BIaTAK05.js.map → PkFilePreviewDialog-B1N4xDEu.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkImageEditorDialog-_-UkV0CO.js → PkImageEditorDialog-B-jW5yE8.js} +6 -5
  92. package/dist-vue/_chunks/{PkImageEditorDialog-_-UkV0CO.js.map → PkImageEditorDialog-B-jW5yE8.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkStreamingMarkdown-ha0V58V9.js → PkStreamingMarkdown-WIueQOg3.js} +530 -445
  94. package/dist-vue/_chunks/PkStreamingMarkdown-WIueQOg3.js.map +1 -0
  95. package/dist-vue/_chunks/{PkToolChatFile-OusYITiO.js → PkToolChatFile-W6OJP7HH.js} +3 -3
  96. package/dist-vue/_chunks/{PkToolChatFile-OusYITiO.js.map → PkToolChatFile-W6OJP7HH.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkToolRequestGeolocation-CyL_M1Rm.js → PkToolRequestGeolocation-BPZfJfR1.js} +2 -2
  98. package/dist-vue/_chunks/{PkToolRequestGeolocation-CyL_M1Rm.js.map → PkToolRequestGeolocation-BPZfJfR1.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DWkeVLpx.js → PkToolRequestOAuthConnection-BaMZkvU5.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DWkeVLpx.js.map → PkToolRequestOAuthConnection-BaMZkvU5.js.map} +1 -1
  101. package/dist-vue/_chunks/PkToolShowArtifact-CPBFsUrY.js +107 -0
  102. package/dist-vue/_chunks/PkToolShowArtifact-CPBFsUrY.js.map +1 -0
  103. package/dist-vue/_chunks/{PkToolShowChart-BSnYmoJJ.js → PkToolShowChart-BaUS47YU.js} +2 -2
  104. package/dist-vue/_chunks/{PkToolShowChart-BSnYmoJJ.js.map → PkToolShowChart-BaUS47YU.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowContactForm-DFufPNnQ.js → PkToolShowContactForm-6OQ-hjCt.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowContactForm-DFufPNnQ.js.map → PkToolShowContactForm-6OQ-hjCt.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowDiagram-BR4fE_be.js → PkToolShowDiagram-D6hPQVoe.js} +2 -2
  108. package/dist-vue/_chunks/{PkToolShowDiagram-BR4fE_be.js.map → PkToolShowDiagram-D6hPQVoe.js.map} +1 -1
  109. package/dist-vue/_chunks/{PkToolShowForm-yh0YAXcg.js → PkToolShowForm-CAadu_Pq.js} +4 -4
  110. package/dist-vue/_chunks/{PkToolShowForm-yh0YAXcg.js.map → PkToolShowForm-CAadu_Pq.js.map} +1 -1
  111. package/dist-vue/_chunks/{PkToolShowImageGallery-mmUY1Yfg.js → PkToolShowImageGallery-BlTyCF8h.js} +2 -2
  112. package/dist-vue/_chunks/{PkToolShowImageGallery-mmUY1Yfg.js.map → PkToolShowImageGallery-BlTyCF8h.js.map} +1 -1
  113. package/dist-vue/_chunks/{PkToolShowProductList-B-ya1TDt.js → PkToolShowProductList-CZFkf9UD.js} +2 -2
  114. package/dist-vue/_chunks/{PkToolShowProductList-B-ya1TDt.js.map → PkToolShowProductList-CZFkf9UD.js.map} +1 -1
  115. package/dist-vue/_chunks/{PkToolShowSources-DYkHkVdX.js → PkToolShowSources-Bci0Ab2u.js} +3 -3
  116. package/dist-vue/_chunks/{PkToolShowSources-DYkHkVdX.js.map → PkToolShowSources-Bci0Ab2u.js.map} +1 -1
  117. package/dist-vue/_chunks/{PkToolShowSuggestedReply-wKgwHTRO.js → PkToolShowSuggestedReply-DCZbwFhR.js} +2 -2
  118. package/dist-vue/_chunks/{PkToolShowSuggestedReply-wKgwHTRO.js.map → PkToolShowSuggestedReply-DCZbwFhR.js.map} +1 -1
  119. package/dist-vue/_chunks/{PkToolShowVideo-CRg2lAY8.js → PkToolShowVideo-BnSYdoTJ.js} +2 -2
  120. package/dist-vue/_chunks/{PkToolShowVideo-CRg2lAY8.js.map → PkToolShowVideo-BnSYdoTJ.js.map} +1 -1
  121. package/dist-vue/_chunks/{PkToolShowWebPages-C_pWag94.js → PkToolShowWebPages-CHrHuFZI.js} +2 -2
  122. package/dist-vue/_chunks/{PkToolShowWebPages-C_pWag94.js.map → PkToolShowWebPages-CHrHuFZI.js.map} +1 -1
  123. package/dist-vue/_chunks/{createChatbotApiClient-DBKfGL6y.js → createChatbotApiClient-_gh3Y1rl.js} +3 -3
  124. package/dist-vue/_chunks/createChatbotApiClient-_gh3Y1rl.js.map +1 -0
  125. package/dist-vue/_chunks/{useChatbotStore-Hb5EjISl.js → useChatbotStore-CjFPM9Q5.js} +3 -3
  126. package/dist-vue/_chunks/{useChatbotStore-Hb5EjISl.js.map → useChatbotStore-CjFPM9Q5.js.map} +1 -1
  127. package/dist-vue/_chunks/{utils-Df5n2cDc.js → utils-BYvQMZLG.js} +2 -2
  128. package/dist-vue/_chunks/{utils-Df5n2cDc.js.map → utils-BYvQMZLG.js.map} +1 -1
  129. package/dist-vue/api.js +1 -1
  130. package/dist-vue/composables.js +40 -8
  131. package/dist-vue/composables.js.map +1 -1
  132. package/dist-vue/index.js +71 -71
  133. package/dist-vue/index.js.map +1 -1
  134. package/dist-vue/locales.js +10 -0
  135. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +2 -2
  136. package/dist-vue/packages/components/src/chat/PkImageEditorDialog.d.ts +5 -0
  137. package/dist-vue/packages/components/src/chat/PkStreamingMarkdown.d.ts +6 -0
  138. package/dist-vue/packages/components/src/chat/richCopy.d.ts +33 -0
  139. package/dist-vue/packages/components/src/chat/screenshot.d.ts +38 -0
  140. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -1
  141. package/dist-vue/style.css +1 -1
  142. package/package.json +1 -1
  143. package/dist/_chunks/Agent-DZEyfr8D.js.map +0 -1
  144. package/dist/_chunks/PkStreamingMarkdown-14rJ_FK2.js.map +0 -1
  145. package/dist/_chunks/PkToolShowArtifact-I_QZS7Pf.js +0 -94
  146. package/dist/_chunks/PkToolShowArtifact-I_QZS7Pf.js.map +0 -1
  147. package/dist-vue/_chunks/Media-0U2B_qCS.js.map +0 -1
  148. package/dist-vue/_chunks/PkChatbotInput-C9l_1I3d.js +0 -584
  149. package/dist-vue/_chunks/PkChatbotInput-C9l_1I3d.js.map +0 -1
  150. package/dist-vue/_chunks/PkChatbotMessages-CG3UZYcP.js.map +0 -1
  151. package/dist-vue/_chunks/PkChatbotViewChat-IU3HJpxG.js.map +0 -1
  152. package/dist-vue/_chunks/PkStreamingMarkdown-ha0V58V9.js.map +0 -1
  153. package/dist-vue/_chunks/PkToolShowArtifact-x57Gri2a.js +0 -91
  154. package/dist-vue/_chunks/PkToolShowArtifact-x57Gri2a.js.map +0 -1
  155. package/dist-vue/_chunks/createChatbotApiClient-DBKfGL6y.js.map +0 -1
@@ -298,10 +298,10 @@ var O = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ne = new Set([
298
298
  ".mka",
299
299
  ".weba",
300
300
  ".wma"
301
- ]), Fe = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Ie = (e, t) => {
301
+ ]), k = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Fe = (e, t) => {
302
302
  let n = Ze(e ?? "");
303
- return Fe(t).startsWith("audio/") || Ne.has(n) || Pe.has(n);
304
- }, k = [
303
+ return k(t).startsWith("audio/") || Ne.has(n) || Pe.has(n);
304
+ }, A = [
305
305
  {
306
306
  extensions: [".html", ".htm"],
307
307
  mimeType: "text/html",
@@ -455,16 +455,21 @@ var O = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ne = new Set([
455
455
  ]
456
456
  }
457
457
  ];
458
- k.map((e) => e.mimeType);
459
- var Le = (e) => k.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Re = (e, t) => {
458
+ A.map((e) => e.mimeType);
459
+ var Ie = (e) => A.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Le = (e, t, n) => {
460
+ let r = k(t);
461
+ if (n.includes(r)) return r;
462
+ let i = Ze(e ?? ""), a = A.find((e) => e.extensions.includes(i)), o = r === "" || r === "application/octet-stream" || r === "text/plain";
463
+ return a && n.includes(a.mimeType) && (o || a.aliases.includes(r)) ? a.mimeType : t ?? "";
464
+ }, Re = (e, t) => {
460
465
  if (t.length === 0) return !0;
461
- let n = k.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
466
+ let n = A.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
462
467
  "",
463
468
  "application/octet-stream",
464
469
  "text/plain",
465
470
  ...n.flatMap((e) => e.aliases)
466
471
  ] : []);
467
- return e.length > 0 && e.every((e) => r.has(Fe(e)) || t.some((t) => e.includes(t)));
472
+ return e.length > 0 && e.every((e) => r.has(k(e)) || t.some((t) => e.includes(t)));
468
473
  };
469
474
  a({
470
475
  status: n([
@@ -490,7 +495,7 @@ var ze = /* @__PURE__ */ function(e) {
490
495
  bucket: u().min(1),
491
496
  key: u().min(1),
492
497
  region: u().min(1)
493
- }), He = e("type", [Be, Ve]), A = a({
498
+ }), He = e("type", [Be, Ve]), j = a({
494
499
  type: u().min(1),
495
500
  name: u().min(1),
496
501
  mimeType: u().regex(O),
@@ -506,19 +511,19 @@ var ze = /* @__PURE__ */ function(e) {
506
511
  storedFileName: u().min(1)
507
512
  }), Ue = a({
508
513
  name: u().min(1),
509
- src: A,
510
- srcSet: i(A).default([]),
514
+ src: j,
515
+ srcSet: i(j).default([]),
511
516
  rawOptions: re().optional()
512
517
  });
513
518
  a({
514
- src: A,
519
+ src: j,
515
520
  uploadHandle: a({
516
521
  uploadSasuri: d(),
517
522
  metadata: s(u(), u()).default({}),
518
523
  tags: s(u(), u()).default({})
519
524
  })
520
525
  }), a({
521
- src: A,
526
+ src: j,
522
527
  downloadHandle: a({
523
528
  downloadSasuri: d(),
524
529
  viewSasuri: d(),
@@ -527,22 +532,22 @@ a({
527
532
  type: u()
528
533
  })
529
534
  });
530
- var j = /* @__PURE__ */ function(e) {
535
+ var M = /* @__PURE__ */ function(e) {
531
536
  return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
532
537
  }({}), We = a({
533
- type: c(j.picture),
538
+ type: c(M.picture),
534
539
  width: l().positive(),
535
540
  height: l().positive(),
536
541
  blurhash: u().optional()
537
542
  }), Ge = a({
538
- type: c(j.video),
543
+ type: c(M.video),
539
544
  width: l().positive(),
540
545
  height: l().positive(),
541
546
  duration: l().nonnegative()
542
547
  }), Ke = a({
543
- type: c(j.audio),
548
+ type: c(M.audio),
544
549
  duration: l().nonnegative()
545
- }), qe = a({ type: c(j.office) }), Je = a({ type: c(j.archive) }), Ye = a({ type: c(j.binary) }), Xe = a({ type: c(j.executable) });
550
+ }), qe = a({ type: c(M.office) }), Je = a({ type: c(M.archive) }), Ye = a({ type: c(M.binary) }), Xe = a({ type: c(M.executable) });
546
551
  e("type", [
547
552
  We,
548
553
  Ge,
@@ -567,7 +572,7 @@ var Ze = (e) => {
567
572
  "page",
568
573
  "word",
569
574
  "excel"
570
- ], M = {
575
+ ], N = {
571
576
  page: ["explain", "summarize"],
572
577
  word: [
573
578
  "rewrite",
@@ -580,8 +585,8 @@ var Ze = (e) => {
580
585
  "summarize",
581
586
  "chart"
582
587
  ]
583
- }, et = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), N = (e) => s(u(), u().trim().min(1).max(e));
584
- function tt(e) {
588
+ }, et = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), tt = (e) => s(u(), u().trim().min(1).max(e));
589
+ function nt(e) {
585
590
  let t = (e) => Object.keys(e ?? {}).filter((t) => !!e?.[t]?.trim()), n = t(e.label), r = t(e.prompt);
586
591
  return {
587
592
  empty: n.length === 0 && r.length === 0,
@@ -589,13 +594,13 @@ function tt(e) {
589
594
  prompt: n.filter((e) => !r.includes(e))
590
595
  };
591
596
  }
592
- var nt = a({
597
+ var rt = a({
593
598
  id: u().trim().min(1).max(64),
594
- label: N(40),
595
- prompt: N(500),
599
+ label: tt(40),
600
+ prompt: tt(500),
596
601
  icon: n(et).optional().catch(void 0)
597
602
  });
598
- function rt(e, t, n = {}) {
603
+ function it(e, t, n = {}) {
599
604
  for (let r of $e) {
600
605
  let i = e.selectionActions?.[r];
601
606
  if (i?.enabled && n[r] !== !1) for (let [e, n] of (i.actions ?? []).entries()) {
@@ -604,7 +609,7 @@ function rt(e, t, n = {}) {
604
609
  r,
605
610
  "actions",
606
611
  e
607
- ], a = tt(n);
612
+ ], a = nt(n);
608
613
  a.empty && t.addIssue({
609
614
  code: "custom",
610
615
  message: "An action needs a label and an instruction",
@@ -625,7 +630,7 @@ function rt(e, t, n = {}) {
625
630
  var P = (e, t) => a({
626
631
  enabled: r().default(t),
627
632
  builtIns: i(n(e)).default(() => [...e]),
628
- actions: i(nt).default([])
633
+ actions: i(rt).default([])
629
634
  }).refine((e) => new Set(e.builtIns).size === e.builtIns.length, {
630
635
  message: "A built-in action is listed twice",
631
636
  path: ["builtIns"]
@@ -635,14 +640,14 @@ var P = (e, t) => a({
635
640
  }).refine((e) => e.builtIns.length + e.actions.length <= 4, {
636
641
  message: "At most 4 actions, built-in and the agent's together",
637
642
  path: ["actions"]
638
- }), it = P(M.page, !1), at = P(M.word, !0), ot = P(M.excel, !0), st = a({
639
- page: it.optional().default(() => it.parse({})),
640
- word: at.optional().default(() => at.parse({})),
641
- excel: ot.optional().default(() => ot.parse({}))
643
+ }), at = P(N.page, !1), ot = P(N.word, !0), st = P(N.excel, !0), ct = a({
644
+ page: at.optional().default(() => at.parse({})),
645
+ word: ot.optional().default(() => ot.parse({})),
646
+ excel: st.optional().default(() => st.parse({}))
642
647
  }), F = a({
643
648
  builtIns: i(n(Qe)),
644
- actions: i(nt)
645
- }), ct = a({
649
+ actions: i(rt)
650
+ }), lt = a({
646
651
  page: F.optional(),
647
652
  word: F.optional(),
648
653
  excel: F.optional()
@@ -656,67 +661,67 @@ var R = /* @__PURE__ */ function(e) {
656
661
  return e.Chat = "chat", e.Reasoning = "reasoning", e;
657
662
  }({}), z = /* @__PURE__ */ function(e) {
658
663
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
659
- }({}), lt = [
664
+ }({}), ut = [
660
665
  "none",
661
666
  "low",
662
667
  "medium",
663
668
  "high",
664
669
  "xhigh",
665
670
  "max"
666
- ], ut = [
671
+ ], dt = [
667
672
  "low",
668
673
  "medium",
669
674
  "high",
670
675
  "xhigh",
671
676
  "max"
672
- ], dt = [
677
+ ], ft = [
673
678
  "minimal",
674
679
  "low",
675
680
  "medium",
676
681
  "high"
677
- ], ft = [
682
+ ], pt = [
678
683
  "auto",
679
684
  "detailed",
680
685
  "concise"
681
- ], pt = a({
682
- reasoningEffort: n(lt).optional(),
683
- reasoningSummary: n(ft).optional()
684
- }), mt = a({
686
+ ], mt = a({
687
+ reasoningEffort: n(ut).optional(),
688
+ reasoningSummary: n(pt).optional()
689
+ }), ht = a({
685
690
  type: n([
686
691
  "adaptive",
687
692
  "enabled",
688
693
  "disabled"
689
694
  ]).optional(),
690
- effort: n(ut).optional(),
695
+ effort: n(dt).optional(),
691
696
  display: n(["summarized", "omitted"]).optional(),
692
697
  budgetTokens: l().int().positive().optional()
693
- }), ht = a({
694
- thinkingLevel: n(dt).optional(),
698
+ }), gt = a({
699
+ thinkingLevel: n(ft).optional(),
695
700
  thinkingBudget: l().int().optional(),
696
701
  includeThoughts: r().optional()
697
- }), gt = a({ type: n(["enabled", "disabled"]).optional() }), B = [
702
+ }), _t = a({ type: n(["enabled", "disabled"]).optional() }), B = [
698
703
  "alibaba",
699
704
  "meta",
700
705
  "moonshotai",
701
706
  "spacexai",
702
707
  "xiaomi",
703
708
  "zai"
704
- ], _t = [
709
+ ], vt = [
705
710
  "none",
706
711
  "minimal",
707
712
  "low",
708
713
  "medium",
709
714
  "high",
710
715
  "xhigh"
711
- ], V = a({ reasoningEffort: n(_t).optional() });
716
+ ], V = a({ reasoningEffort: n(vt).optional() });
712
717
  function H(e, t) {
713
718
  return e && t.includes(e) ? e : void 0;
714
719
  }
715
- var vt = a({
716
- openai: pt.optional(),
717
- anthropic: mt.optional(),
718
- google: ht.optional(),
719
- deepseek: gt.optional(),
720
+ var yt = a({
721
+ openai: mt.optional(),
722
+ anthropic: ht.optional(),
723
+ google: gt.optional(),
724
+ deepseek: _t.optional(),
720
725
  alibaba: V.optional(),
721
726
  meta: V.optional(),
722
727
  moonshotai: V.optional(),
@@ -724,7 +729,7 @@ var vt = a({
724
729
  xiaomi: V.optional(),
725
730
  zai: V.optional()
726
731
  });
727
- function yt(e) {
732
+ function bt(e) {
728
733
  if (!e || typeof e != "object") return e;
729
734
  let t = e, n = [
730
735
  "openai",
@@ -736,19 +741,19 @@ function yt(e) {
736
741
  if ("effort" in t && !n) {
737
742
  let e = t.effort, n = t.reasoningSummary, r = {};
738
743
  if (e && e !== "off" && e !== "none") {
739
- let t = H(e, lt), i = H(n, ft);
744
+ let t = H(e, ut), i = H(n, pt);
740
745
  (t || i) && (r.openai = {
741
746
  ...t && { reasoningEffort: t },
742
747
  ...i && { reasoningSummary: i }
743
748
  });
744
- let a = H(e, ut);
749
+ let a = H(e, dt);
745
750
  a && (r.anthropic = {
746
751
  type: "adaptive",
747
752
  effort: a
748
753
  });
749
- let o = H(e === "xhigh" || e === "max" ? "high" : e, dt);
754
+ let o = H(e === "xhigh" || e === "max" ? "high" : e, ft);
750
755
  o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
751
- let s = H(e === "max" ? "xhigh" : e, _t);
756
+ let s = H(e === "max" ? "xhigh" : e, vt);
752
757
  if (s) for (let e of B) r[e] = { reasoningEffort: s };
753
758
  } else {
754
759
  r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
@@ -758,13 +763,13 @@ function yt(e) {
758
763
  }
759
764
  return e;
760
765
  }
761
- var bt = p(t(), vt, yt).optional(), U = /* @__PURE__ */ function(e) {
766
+ var xt = p(t(), yt, bt).optional(), U = /* @__PURE__ */ function(e) {
762
767
  return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.Spreadsheet = "spreadsheet", e.QuerySpreadsheet = "querySpreadsheet", e.WordDocument = "wordDocument", e.CreateSpreadsheet = "createSpreadsheet", e.CreateWordDocument = "createWordDocument", e.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.CronTasks = "cronTasks", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowChart = "showChart", e.ShowComparison = "showComparison", e.ShowContactForm = "showContactForm", e.ShowDiagram = "showDiagram", e.ShowEmail = "showEmail", e.ShowImageGallery = "showImageGallery", e.ShowLocation = "showLocation", e.ShowMessage = "showMessage", e.ShowForm = "showForm", e.ShowProductList = "showProductList", e.ShowQrCode = "showQrCode", e.ShowSources = "showSources", e.ShowSuggestedReply = "showSuggestedReply", e.ShowVideo = "showVideo", e.ShowWeather = "showWeather", e.ShowWebPages = "showWebPages", e.ShowMultipleChoice = "showMultipleChoice", e;
763
- }({}), xt = "mcp-", St = "api-", Ct = "subagent-";
764
- function wt(e) {
768
+ }({}), St = "mcp-", Ct = "api-", wt = "subagent-";
769
+ function Tt(e) {
765
770
  return e === U.RequestConfirm || e === U.ShowArtifact || e === U.ShowCalendarEvent || e === U.ShowChart || 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;
766
771
  }
767
- var Tt = /* @__PURE__ */ new Set([
772
+ var Et = /* @__PURE__ */ new Set([
768
773
  "editSpreadsheet",
769
774
  "editWordDocument",
770
775
  U.CreateSpreadsheet,
@@ -786,20 +791,20 @@ var Tt = /* @__PURE__ */ new Set([
786
791
  U.ShowEmail,
787
792
  U.ShowMessage,
788
793
  U.ShowForm,
789
- ...Tt,
794
+ ...Et,
790
795
  U.ShareDocument
791
796
  ];
792
- var Et = /* @__PURE__ */ new Set([
797
+ var Dt = /* @__PURE__ */ new Set([
793
798
  U.RequestConfirm,
794
799
  U.RequestGeolocation,
795
800
  U.ShowForm,
796
801
  U.ShowMultipleChoice,
797
802
  "requestOAuthConnection"
798
803
  ]);
799
- function Dt(e) {
800
- return Et.has(e);
804
+ function Ot(e) {
805
+ return Dt.has(e);
801
806
  }
802
- var Ot = /* @__PURE__ */ new Set([
807
+ var kt = /* @__PURE__ */ new Set([
803
808
  U.RequestConfirm,
804
809
  U.RequestGeolocation,
805
810
  U.ShowArtifact,
@@ -821,22 +826,22 @@ var Ot = /* @__PURE__ */ new Set([
821
826
  U.ShowVideo,
822
827
  U.ShowWeather,
823
828
  U.ShowWebPages
824
- ]), kt = "Shown on the caller's screen";
825
- function At(e) {
826
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(kt));
829
+ ]), At = "Shown on the caller's screen";
830
+ function jt(e) {
831
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(At));
827
832
  }
828
- var jt = a({
833
+ var Mt = a({
829
834
  maxSteps: l().int().min(1).max(10).optional().default(5),
830
835
  maxOptionsPerStep: l().int().min(2).max(10).optional().default(5)
831
- }), Mt = /* @__PURE__ */ function(e) {
836
+ }), Nt = /* @__PURE__ */ function(e) {
832
837
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
833
- }({}), Nt = [
838
+ }({}), Pt = [
834
839
  "perplexity_search",
835
840
  "parallel_search",
836
841
  "web_search",
837
842
  "openai_web_search",
838
843
  "google_search"
839
- ], Pt = a({
844
+ ], Ft = a({
840
845
  maxResults: l().int().min(1).max(20).optional(),
841
846
  maxTokens: l().int().positive().max(1e6).optional(),
842
847
  maxTokensPerPage: l().int().positive().optional(),
@@ -849,7 +854,7 @@ var jt = a({
849
854
  "month",
850
855
  "year"
851
856
  ]).optional()
852
- }), Ft = a({
857
+ }), It = a({
853
858
  mode: n(["one-shot", "agentic"]).optional(),
854
859
  maxResults: l().int().min(1).max(20).optional(),
855
860
  sourcePolicy: a({
@@ -862,7 +867,7 @@ var jt = a({
862
867
  maxCharsTotal: l().int().positive().optional()
863
868
  }).optional(),
864
869
  fetchPolicy: a({ maxAgeSeconds: l().int().positive().optional() }).optional()
865
- }), It = a({
870
+ }), Lt = a({
866
871
  openai: a({}).optional(),
867
872
  anthropic: a({
868
873
  maxUses: l().int().positive().optional(),
@@ -879,11 +884,11 @@ var jt = a({
879
884
  google: a({}).optional()
880
885
  }), W = a({
881
886
  enabled: r().default(!1),
882
- provider: n(Mt).optional().default(Mt.Native),
883
- perplexity: Pt.optional(),
884
- parallel: Ft.optional(),
885
- native: It.optional()
886
- }), Lt = a({ useAllUserKb: r().default(!1) }), Rt = a({ useAllUserFiles: r().default(!1) }), zt = a({ enabled: r().default(!1) }), G = a({ enabled: r().default(!1) }), Bt = a({ tools: i(u()).default([]) }), Vt = a({
887
+ provider: n(Nt).optional().default(Nt.Native),
888
+ perplexity: Ft.optional(),
889
+ parallel: It.optional(),
890
+ native: Lt.optional()
891
+ }), Rt = a({ useAllUserKb: r().default(!1) }), zt = a({ useAllUserFiles: r().default(!1) }), Bt = a({ enabled: r().default(!1) }), G = a({ enabled: r().default(!1) }), Vt = a({ tools: i(u()).default([]) }), Ht = a({
887
892
  disabled: i(n(U)).default([
888
893
  U.UserMemory,
889
894
  U.SearchInUserFiles,
@@ -892,14 +897,14 @@ var jt = a({
892
897
  U.ScheduleWakeup,
893
898
  U.CronTasks
894
899
  ]),
895
- showForm: jt.optional().default(() => jt.parse({})),
900
+ showForm: Mt.optional().default(() => Mt.parse({})),
896
901
  webSearch: W.optional().default(() => W.parse({})),
897
- userMemory: Lt.optional().default(() => Lt.parse({})),
898
- userFiles: Rt.optional().default(() => Rt.parse({})),
899
- shareDocument: zt.optional().default(() => zt.parse({})),
902
+ userMemory: Rt.optional().default(() => Rt.parse({})),
903
+ userFiles: zt.optional().default(() => zt.parse({})),
904
+ shareDocument: Bt.optional().default(() => Bt.parse({})),
900
905
  createSpreadsheet: G.optional().default(() => G.parse({})),
901
906
  createWordDocument: G.optional().default(() => G.parse({})),
902
- approval: Bt.optional().default(() => Bt.parse({}))
907
+ approval: Vt.optional().default(() => Vt.parse({}))
903
908
  }), K = a({
904
909
  freshness: a({
905
910
  enabled: r().default(!1),
@@ -912,7 +917,7 @@ var jt = a({
912
917
  diversity: l().min(0).max(1).default(.3),
913
918
  candidatesLimit: l().int().min(20).max(100).default(50)
914
919
  }).prefault({})
915
- }).prefault({}), Ht = a({
920
+ }).prefault({}), Ut = a({
916
921
  prompt: u().optional(),
917
922
  temperature: l().min(0).max(2).optional().default(.6),
918
923
  maxOutputTokens: l().positive().optional(),
@@ -921,9 +926,9 @@ var jt = a({
921
926
  searchMode: n(z).optional().default(z.Balanced),
922
927
  limit: l().positive().max(100).optional().default(10),
923
928
  maxStepCount: l().int().min(1).max(40).optional().default(10),
924
- reasoning: bt,
929
+ reasoning: xt,
925
930
  ranking: K.optional().default(() => K.parse({}))
926
- }), q = p(t(), s(u(), u()), (e) => typeof e == "string" ? { it: e } : e), Ut = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Wt = /* @__PURE__ */ function(e) {
931
+ }), q = p(t(), s(u(), u()), (e) => typeof e == "string" ? { it: e } : e), Wt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Gt = /* @__PURE__ */ function(e) {
927
932
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
928
933
  }({}), J = /* @__PURE__ */ function(e) {
929
934
  return e.Floating = "floating", e.Copilot = "copilot", e;
@@ -931,8 +936,8 @@ var jt = a({
931
936
  return e.Solid = "solid", e.Glass = "glass", e;
932
937
  }({}), X = /* @__PURE__ */ function(e) {
933
938
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
934
- }({}), Gt = Object.values(X), Kt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
935
- function qt(e) {
939
+ }({}), Kt = Object.values(X), qt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
940
+ function Jt(e) {
936
941
  let t = e.trim().toLowerCase();
937
942
  if (!t) return "";
938
943
  try {
@@ -978,16 +983,16 @@ var Z = a({
978
983
  workingGlow: r().optional().default(!0),
979
984
  copilotPageCss: u().optional(),
980
985
  maxMessageLength: l().int().positive().optional(),
981
- widgetUrl: d().default(Ut),
986
+ widgetUrl: d().default(Wt),
982
987
  loadDelay: l().int().min(0).max(3e4).optional().default(0),
983
- loaderStrategy: n(Wt).optional().default(Wt.InlineModule),
988
+ loaderStrategy: n(Gt).optional().default(Gt.InlineModule),
984
989
  customCss: u().optional(),
985
990
  smoothStream: r().optional().default(!1),
986
991
  showExtendedSteps: r().optional().default(!1),
987
992
  showReasoning: r().optional().default(!0),
988
993
  holdExternalImages: r().optional().default(!1),
989
- imageHosts: i(u().overwrite(qt).refine((e) => e === "" || Kt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
990
- }), Jt = [
994
+ imageHosts: i(u().overwrite(Jt).refine((e) => e === "" || qt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
995
+ }), Yt = [
991
996
  "image/jpeg",
992
997
  "image/png",
993
998
  "image/gif",
@@ -996,10 +1001,10 @@ var Z = a({
996
1001
  "text/plain",
997
1002
  "text/markdown",
998
1003
  "text/csv"
999
- ], Yt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Xt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Q = a({
1004
+ ], Xt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Zt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Q = a({
1000
1005
  enabled: r().default(!1),
1001
1006
  maxFileSizeBytes: l().int().positive().max(104857600).optional().default(20971520),
1002
- allowedMimeTypes: i(u().regex(O)).optional().default([...Jt]),
1007
+ allowedMimeTypes: i(u().regex(O)).optional().default([...Yt]),
1003
1008
  maxFilesPerMessage: l().int().positive().max(10).optional().default(5),
1004
1009
  maxFilesPerChat: l().int().positive().max(50).optional().default(20)
1005
1010
  }), $ = a({
@@ -1007,9 +1012,9 @@ var Z = a({
1007
1012
  disallowPromptTraining: r().default(!0),
1008
1013
  providerTimeoutMs: l().int().min(1e3).max(789e3).optional(),
1009
1014
  inferenceRegion: n(ue).optional()
1010
- }), Zt = a({ enabled: r().default(!1) }), Qt = /* @__PURE__ */ function(e) {
1015
+ }), Qt = a({ enabled: r().default(!1) }), $t = /* @__PURE__ */ function(e) {
1011
1016
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
1012
- }({}), $t = a({ mode: n(Qt).default(Qt.Off) }), en = a({
1017
+ }({}), en = a({ mode: n($t).default($t.Off) }), tn = a({
1013
1018
  enabled: r().default(!1),
1014
1019
  voiceId: u().optional(),
1015
1020
  language: u().min(2).max(5).default("it"),
@@ -1028,44 +1033,44 @@ var Z = a({
1028
1033
  providerAgentId: u().optional(),
1029
1034
  providerSecretId: u().optional(),
1030
1035
  providerApiKeyId: u().optional()
1031
- }), tn = a({ enabled: r() }), nn = c("automatic");
1036
+ }), nn = a({ enabled: r() }), rn = c("automatic");
1032
1037
  a({
1033
1038
  chatId: u().min(1).optional(),
1034
1039
  deviceContext: _e.optional(),
1035
1040
  externalContext: s(u(), t()).optional(),
1036
1041
  pageTools: t().optional(),
1037
- confirmations: nn.optional()
1042
+ confirmations: rn.optional()
1038
1043
  });
1039
- var rn = a({
1044
+ var an = a({
1040
1045
  sessionId: u(),
1041
1046
  signedUrl: u(),
1042
1047
  providerAgentId: u(),
1043
1048
  chatId: u(),
1044
1049
  maxSessionSeconds: l().int()
1045
- }), an = a({
1050
+ }), on = a({
1046
1051
  voiceId: u(),
1047
1052
  name: u(),
1048
1053
  category: u().optional(),
1049
1054
  previewUrl: u().optional(),
1050
1055
  labels: s(u(), u()).optional()
1051
1056
  });
1052
- i(an);
1053
- var on = a({ allowAutomatic: r().default(!1) }), sn = a({ allowAutomatic: c(!0) }), cn = a({
1054
- model: Ht,
1057
+ i(on);
1058
+ var sn = a({ allowAutomatic: r().default(!1) }), cn = a({ allowAutomatic: c(!0) }), ln = a({
1059
+ model: Ut,
1055
1060
  interface: Z,
1056
- tools: Vt.optional().default(() => Vt.parse({})),
1061
+ tools: Ht.optional().default(() => Ht.parse({})),
1057
1062
  fileUpload: Q.optional().default(() => Q.parse({})),
1058
1063
  gatewayOptions: $.optional().default(() => $.parse({})),
1059
- channels: i(n(X)).optional().default(() => [...Gt]),
1064
+ channels: i(n(X)).optional().default(() => [...Kt]),
1060
1065
  externalContextSchema: oe.optional(),
1061
- openaiApi: Zt.optional().default(() => Zt.parse({})),
1062
- voice: en.optional().default(() => en.parse({})),
1063
- toolWorkingSet: $t.optional().default(() => $t.parse({})),
1066
+ openaiApi: Qt.optional().default(() => Qt.parse({})),
1067
+ voice: tn.optional().default(() => tn.parse({})),
1068
+ toolWorkingSet: en.optional().default(() => en.parse({})),
1064
1069
  hostTools: xe.optional(),
1065
1070
  pageAccess: ke.optional(),
1066
- confirmations: on.optional(),
1067
- selectionActions: st.optional()
1068
- }), ln = a({
1071
+ confirmations: sn.optional(),
1072
+ selectionActions: ct.optional()
1073
+ }), un = a({
1069
1074
  rateLimits: a({
1070
1075
  minuteRateLimit: l().int().min(0).optional(),
1071
1076
  hourRateLimit: l().int().min(0).optional(),
@@ -1082,12 +1087,12 @@ a({
1082
1087
  fallbackModels: i(u()).default([]),
1083
1088
  status: n(I).default(I.Draft),
1084
1089
  visibility: n(L).default(L.Organization),
1085
- settings: cn.superRefine((e, t) => rt(e, t, {
1090
+ settings: ln.superRefine((e, t) => it(e, t, {
1086
1091
  page: (e.pageAccess?.level ?? D.Off) !== D.Off,
1087
1092
  word: !e.tools.disabled.includes(U.WordDocument),
1088
1093
  excel: !e.tools.disabled.includes(U.Spreadsheet)
1089
1094
  })),
1090
- security: ln.nullish(),
1095
+ security: un.nullish(),
1091
1096
  type: n(R).default(R.Chat),
1092
1097
  organizationId: u()
1093
1098
  }), ee(() => a({
@@ -1098,8 +1103,8 @@ a({
1098
1103
  fallbackModels: i(u()).nullable().default([]),
1099
1104
  status: n(I).default(I.Draft),
1100
1105
  visibility: n(L).default(L.Organization),
1101
- settings: cn,
1102
- security: ln.nullable(),
1106
+ settings: ln,
1107
+ security: un.nullable(),
1103
1108
  type: n(R).default(R.Chat),
1104
1109
  organizationId: u(),
1105
1110
  createdAt: f(),
@@ -1112,7 +1117,7 @@ a({
1112
1117
  outOfBudget: r().optional().default(!1),
1113
1118
  outOfBudgetReason: u().optional().default("")
1114
1119
  }));
1115
- var un = a({
1120
+ var dn = a({
1116
1121
  id: u(),
1117
1122
  name: u(),
1118
1123
  status: n(I),
@@ -1123,14 +1128,14 @@ var un = a({
1123
1128
  updatedAt: f(),
1124
1129
  capabilities: a({
1125
1130
  fileUpload: Q,
1126
- voice: tn,
1131
+ voice: nn,
1127
1132
  hostTools: Se.optional(),
1128
1133
  pageAccess: je.optional(),
1129
- confirmations: sn.optional(),
1130
- selectionActions: ct.optional()
1134
+ confirmations: cn.optional(),
1135
+ selectionActions: lt.optional()
1131
1136
  }),
1132
- channels: i(n(X)).default(() => [...Gt])
1133
- }), dn = Z.pick({
1137
+ channels: i(n(X)).default(() => [...Kt])
1138
+ }), fn = Z.pick({
1134
1139
  logo: !0,
1135
1140
  mainColor: !0,
1136
1141
  textColor: !0,
@@ -1141,41 +1146,41 @@ var un = a({
1141
1146
  hideFloatingButton: !0,
1142
1147
  copilotPageCss: !0,
1143
1148
  customCss: !0
1144
- }), fn = un.pick({
1149
+ }), pn = dn.pick({
1145
1150
  id: !0,
1146
1151
  name: !0,
1147
1152
  organizationId: !0
1148
- }).extend({ interface: dn }), pn = a({
1153
+ }).extend({ interface: fn }), mn = a({
1149
1154
  emailPassword: r(),
1150
1155
  google: r(),
1151
1156
  microsoft: r()
1152
- }), mn = a({
1157
+ }), hn = a({
1153
1158
  requiresAuth: c(!1),
1154
- agent: un,
1159
+ agent: dn,
1155
1160
  branding: ne()
1156
- }), hn = a({
1161
+ }), gn = a({
1157
1162
  requiresAuth: c(!0),
1158
1163
  agent: ne(),
1159
- branding: fn
1164
+ branding: pn
1160
1165
  });
1161
- e("requiresAuth", [mn, hn]);
1162
- var gn = a({
1166
+ e("requiresAuth", [hn, gn]);
1167
+ var _n = a({
1163
1168
  frontendUrl: u().optional(),
1164
1169
  telemetry: a({
1165
1170
  environment: u(),
1166
1171
  samplingRate: l().min(0).max(1)
1167
1172
  }).nullable()
1168
- }), _n = a({
1169
- authMethods: pn,
1173
+ }), vn = a({
1174
+ authMethods: mn,
1170
1175
  deploymentBranding: he.nullish(),
1171
- deployment: gn.optional()
1176
+ deployment: _n.optional()
1172
1177
  });
1173
- e("requiresAuth", [mn.extend(_n.shape), hn.extend(_n.shape)]), a({
1178
+ e("requiresAuth", [hn.extend(vn.shape), gn.extend(vn.shape)]), a({
1174
1179
  id: o(),
1175
1180
  limited: r(),
1176
1181
  agentIds: i(o())
1177
1182
  });
1178
- var vn = a({
1183
+ var yn = a({
1179
1184
  userId: o(),
1180
1185
  name: u(),
1181
1186
  email: u(),
@@ -1186,7 +1191,7 @@ var vn = a({
1186
1191
  });
1187
1192
  a({
1188
1193
  id: o(),
1189
- members: i(vn)
1194
+ members: i(yn)
1190
1195
  }), a({
1191
1196
  id: o(),
1192
1197
  userIds: i(o())
@@ -1208,6 +1213,6 @@ a({
1208
1213
  ...m.fullText(),
1209
1214
  ...m.ids()
1210
1215
  });
1211
- export { D as A, de as B, qt as C, Le as D, Re as E, ve as F, p as H, we as I, Ce as L, Oe as M, De as N, Ie as O, Te as P, _e as R, At as S, Ue as T, m as U, h as V, rn as _, bt as a, wt as b, Y as c, nn as d, xt as f, Ot as g, Et as h, K as i, Ae as j, Me as k, J as l, Ct as m, U as n, z as o, Yt as p, $ as r, W as s, St as t, Tt as u, Nt as v, O as w, Dt as x, Xt as y, fe as z };
1216
+ export { Me as A, fe as B, Jt as C, Le as D, Re as E, Te as F, h as H, ve as I, we as L, Ae as M, Oe as N, Ie as O, De as P, Ce as R, jt as S, Ue as T, p as U, de as V, m as W, an as _, xt as a, Tt as b, Y as c, rn as d, St as f, kt as g, Dt as h, K as i, D as j, Fe as k, J as l, wt as m, U as n, z as o, Xt as p, $ as r, W as s, Ct as t, Et as u, Pt as v, O as w, Ot as x, Zt as y, _e as z };
1212
1217
 
1213
- //# sourceMappingURL=Agent-DZEyfr8D.js.map
1218
+ //# sourceMappingURL=Agent-DJ6TBi6l.js.map