@8wave/ai-elements 0.115.0-beta.52 → 0.115.0-beta.60

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 (206) hide show
  1. package/dist/_chunks/Agent-Bz23Ejuh.js +705 -0
  2. package/dist/_chunks/Agent-Bz23Ejuh.js.map +1 -0
  3. package/dist/_chunks/{PkChatbotFilePreview-DcqwX9nI.js → PkChatbotFilePreview-CyaNjBrA.js} +2 -2
  4. package/dist/_chunks/{PkChatbotFilePreview-DcqwX9nI.js.map → PkChatbotFilePreview-CyaNjBrA.js.map} +1 -1
  5. package/dist/_chunks/{PkHeldImage-BtaPh0Jr.js → PkHeldImage-CtqqMvpW.js} +2 -2
  6. package/dist/_chunks/{PkHeldImage-BtaPh0Jr.js.map → PkHeldImage-CtqqMvpW.js.map} +1 -1
  7. package/dist/_chunks/{PkLazyImg-Cx2e4KmY.js → PkLazyImg-Ci06XyhW.js} +2 -2
  8. package/dist/_chunks/{PkLazyImg-Cx2e4KmY.js.map → PkLazyImg-Ci06XyhW.js.map} +1 -1
  9. package/dist/_chunks/{PkStreamingMarkdown-B_qmgO9_.js → PkStreamingMarkdown-DbSttKVa.js} +3 -3
  10. package/dist/_chunks/{PkStreamingMarkdown-B_qmgO9_.js.map → PkStreamingMarkdown-DbSttKVa.js.map} +1 -1
  11. package/dist/_chunks/{PkToolEditSpreadsheet-BSxYLcys.js → PkToolEditSpreadsheet-BrYSJlT4.js} +3 -3
  12. package/dist/_chunks/{PkToolEditSpreadsheet-BSxYLcys.js.map → PkToolEditSpreadsheet-BrYSJlT4.js.map} +1 -1
  13. package/dist/_chunks/{PkToolRequestGeolocation-YW0ilIxN.js → PkToolRequestGeolocation-D4rIR3LN.js} +3 -3
  14. package/dist/_chunks/{PkToolRequestGeolocation-YW0ilIxN.js.map → PkToolRequestGeolocation-D4rIR3LN.js.map} +1 -1
  15. package/dist/_chunks/{PkToolRequestOAuthConnection-Cx4aFL5g.js → PkToolRequestOAuthConnection-epwcNb5F.js} +3 -3
  16. package/dist/_chunks/{PkToolRequestOAuthConnection-Cx4aFL5g.js.map → PkToolRequestOAuthConnection-epwcNb5F.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowArtifact-Bgj02cPe.js → PkToolShowArtifact-BGUn1sMi.js} +3 -3
  18. package/dist/_chunks/{PkToolShowArtifact-Bgj02cPe.js.map → PkToolShowArtifact-BGUn1sMi.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowCalendarEvent-BLSTS6zf.js → PkToolShowCalendarEvent-DwxqgAUr.js} +3 -3
  20. package/dist/_chunks/PkToolShowCalendarEvent-DwxqgAUr.js.map +1 -0
  21. package/dist/_chunks/{PkToolShowComparison-DdT-C7iJ.js → PkToolShowComparison-hDhhVvwp.js} +2 -2
  22. package/dist/_chunks/{PkToolShowComparison-DdT-C7iJ.js.map → PkToolShowComparison-hDhhVvwp.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowContactForm-Die8UpNv.js → PkToolShowContactForm-ChaAOt5I.js} +4 -4
  24. package/dist/_chunks/{PkToolShowContactForm-Die8UpNv.js.map → PkToolShowContactForm-ChaAOt5I.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowDiagram-Ct-dFEmS.js → PkToolShowDiagram-CyNPq6j7.js} +2 -2
  26. package/dist/_chunks/{PkToolShowDiagram-Ct-dFEmS.js.map → PkToolShowDiagram-CyNPq6j7.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowEmail-BvH4Czk2.js → PkToolShowEmail-BM16pMjW.js} +2 -2
  28. package/dist/_chunks/{PkToolShowEmail-BvH4Czk2.js.map → PkToolShowEmail-BM16pMjW.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowForm-Dmq95u6b.js → PkToolShowForm-BpTuRgHg.js} +8 -8
  30. package/dist/_chunks/PkToolShowForm-BpTuRgHg.js.map +1 -0
  31. package/dist/_chunks/{PkToolShowImageGallery-CKuyTxih.js → PkToolShowImageGallery-CgjP34RE.js} +4 -4
  32. package/dist/_chunks/{PkToolShowImageGallery-CKuyTxih.js.map → PkToolShowImageGallery-CgjP34RE.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowLocation-DLYMzcrZ.js → PkToolShowLocation-rK5fcW4y.js} +2 -2
  34. package/dist/_chunks/{PkToolShowLocation-DLYMzcrZ.js.map → PkToolShowLocation-rK5fcW4y.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowMessage-BGcIhbEe.js → PkToolShowMessage-DgT-JkYg.js} +2 -2
  36. package/dist/_chunks/{PkToolShowMessage-BGcIhbEe.js.map → PkToolShowMessage-DgT-JkYg.js.map} +1 -1
  37. package/dist/_chunks/PkToolShowProductList-BIeg8NR-.js +72 -0
  38. package/dist/_chunks/PkToolShowProductList-BIeg8NR-.js.map +1 -0
  39. package/dist/_chunks/{PkToolShowQrCode-DDT92XTk.js → PkToolShowQrCode-C2hZDGqM.js} +2 -2
  40. package/dist/_chunks/{PkToolShowQrCode-DDT92XTk.js.map → PkToolShowQrCode-C2hZDGqM.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowSources-MJRFeqMA.js → PkToolShowSources-B9nZyCAn.js} +4 -4
  42. package/dist/_chunks/{PkToolShowSources-MJRFeqMA.js.map → PkToolShowSources-B9nZyCAn.js.map} +1 -1
  43. package/dist/_chunks/{PkToolShowSuggestedReply-DPVS3C74.js → PkToolShowSuggestedReply-D6g3UYqI.js} +3 -3
  44. package/dist/_chunks/{PkToolShowSuggestedReply-DPVS3C74.js.map → PkToolShowSuggestedReply-D6g3UYqI.js.map} +1 -1
  45. package/dist/_chunks/{PkToolShowVideo-DnvvRE7H.js → PkToolShowVideo-B6GG8PJm.js} +4 -4
  46. package/dist/_chunks/{PkToolShowVideo-DnvvRE7H.js.map → PkToolShowVideo-B6GG8PJm.js.map} +1 -1
  47. package/dist/_chunks/{PkToolShowWeather-DrxYD77R.js → PkToolShowWeather-C80WsCYi.js} +2 -2
  48. package/dist/_chunks/{PkToolShowWeather-DrxYD77R.js.map → PkToolShowWeather-C80WsCYi.js.map} +1 -1
  49. package/dist/_chunks/{PkToolShowWebPages-CYbiGa7e.js → PkToolShowWebPages-BkUh-IyZ.js} +11 -11
  50. package/dist/_chunks/PkToolShowWebPages-BkUh-IyZ.js.map +1 -0
  51. package/dist/_chunks/{VvCheckbox.es-VDzdPrIO.js → VvCheckbox.es-UTRUhwdC.js} +2 -2
  52. package/dist/_chunks/{VvCheckbox.es-VDzdPrIO.js.map → VvCheckbox.es-UTRUhwdC.js.map} +1 -1
  53. package/dist/_chunks/{VvCheckboxGroup.es-D3Q0u-Xo.js → VvCheckboxGroup.es-Cj7KLXHq.js} +2 -2
  54. package/dist/_chunks/{VvCheckboxGroup.es-D3Q0u-Xo.js.map → VvCheckboxGroup.es-Cj7KLXHq.js.map} +1 -1
  55. package/dist/_chunks/{VvCombobox.es-CcgeeuW6.js → VvCombobox.es-DptfdnAe.js} +2 -2
  56. package/dist/_chunks/{VvCombobox.es-CcgeeuW6.js.map → VvCombobox.es-DptfdnAe.js.map} +1 -1
  57. package/dist/_chunks/{VvInputText.es-C5Y-NpdS.js → VvInputText.es-DqLQDq9I.js} +2 -2
  58. package/dist/_chunks/{VvInputText.es-C5Y-NpdS.js.map → VvInputText.es-DqLQDq9I.js.map} +1 -1
  59. package/dist/_chunks/{VvRadio.es-CgueGQnO.js → VvRadio.es-D7Ws1in6.js} +2 -2
  60. package/dist/_chunks/{VvRadio.es-CgueGQnO.js.map → VvRadio.es-D7Ws1in6.js.map} +1 -1
  61. package/dist/_chunks/{VvRadioGroup.es-CoyUKzWp.js → VvRadioGroup.es-BDgpsR9Z.js} +2 -2
  62. package/dist/_chunks/{VvRadioGroup.es-CoyUKzWp.js.map → VvRadioGroup.es-BDgpsR9Z.js.map} +1 -1
  63. package/dist/_chunks/{VvSelect.es-DJWvclS9.js → VvSelect.es-DWbNpZKw.js} +2 -2
  64. package/dist/_chunks/{VvSelect.es-DJWvclS9.js.map → VvSelect.es-DWbNpZKw.js.map} +1 -1
  65. package/dist/_chunks/{VvTextarea.es-zXk1Uruf.js → VvTextarea.es-5UD9_C3G.js} +2 -2
  66. package/dist/_chunks/{VvTextarea.es-zXk1Uruf.js.map → VvTextarea.es-5UD9_C3G.js.map} +1 -1
  67. package/dist/_chunks/{chatImagePolicy-C5eH4Cpq.js → chatImagePolicy-Cnmsgd96.js} +2 -2
  68. package/dist/_chunks/{chatImagePolicy-C5eH4Cpq.js.map → chatImagePolicy-Cnmsgd96.js.map} +1 -1
  69. package/dist/_chunks/{index.es-_UjFDhTh.js → index.es-B9zAw2XU.js} +2 -2
  70. package/dist/_chunks/{index.es-_UjFDhTh.js.map → index.es-B9zAw2XU.js.map} +1 -1
  71. package/dist/_chunks/{index.es-BVC277zB.js → index.es-D9VqgSyV.js} +10 -10
  72. package/dist/_chunks/{index.es-BVC277zB.js.map → index.es-D9VqgSyV.js.map} +1 -1
  73. package/dist/_chunks/{markdown-qIVVfGoX.js → markdown-25UY48qE.js} +2 -2
  74. package/dist/_chunks/{markdown-qIVVfGoX.js.map → markdown-25UY48qE.js.map} +1 -1
  75. package/dist/ai-elements.es.js +939 -785
  76. package/dist/ai-elements.es.js.map +1 -1
  77. package/dist-vue/PkChatbot.js +1 -1
  78. package/dist-vue/PkChatbotAuth.js +1 -1
  79. package/dist-vue/PkChatbotEmptyState.js +1 -1
  80. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  81. package/dist-vue/PkChatbotInput.js +1 -1
  82. package/dist-vue/PkChatbotMessages.js +1 -1
  83. package/dist-vue/PkChatbotStepPayload.js +1 -1
  84. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  85. package/dist-vue/PkChatbotSteps.js +1 -1
  86. package/dist-vue/PkChatbotViewChat.js +1 -1
  87. package/dist-vue/PkChatbotViewConversations.js +1 -1
  88. package/dist-vue/PkChatbotViewFiles.js +1 -1
  89. package/dist-vue/PkChatbotViewProfile.js +1 -1
  90. package/dist-vue/_chunks/Agent-Ci7XnQ12.js +742 -0
  91. package/dist-vue/_chunks/Agent-Ci7XnQ12.js.map +1 -0
  92. package/dist-vue/_chunks/{Document-DmBTgjd4.js → Document-Bhlc3wdt.js} +10 -10
  93. package/dist-vue/_chunks/{Document-DmBTgjd4.js.map → Document-Bhlc3wdt.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkChatbot-W9tO1H9i.js → PkChatbot-C05Rv5zO.js} +8 -8
  95. package/dist-vue/_chunks/{PkChatbot-W9tO1H9i.js.map → PkChatbot-C05Rv5zO.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkChatbotAuth-C2TpCnWH.js → PkChatbotAuth-DD5RF7kY.js} +3 -3
  97. package/dist-vue/_chunks/PkChatbotAuth-DD5RF7kY.js.map +1 -0
  98. package/dist-vue/_chunks/{PkChatbotEmptyState-BY3f3T0T.js → PkChatbotEmptyState-B5qeL1kv.js} +2 -2
  99. package/dist-vue/_chunks/{PkChatbotEmptyState-BY3f3T0T.js.map → PkChatbotEmptyState-B5qeL1kv.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkChatbotFeedbackForm-h4mjmVTG.js → PkChatbotFeedbackForm-BJ_Omuq2.js} +2 -2
  101. package/dist-vue/_chunks/{PkChatbotFeedbackForm-h4mjmVTG.js.map → PkChatbotFeedbackForm-BJ_Omuq2.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkChatbotInput-C5l6QDQY.js → PkChatbotInput-BLzTQmvy.js} +2 -2
  103. package/dist-vue/_chunks/{PkChatbotInput-C5l6QDQY.js.map → PkChatbotInput-BLzTQmvy.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkChatbotMessages-3RZER9PO.js → PkChatbotMessages-CxTz0W0d.js} +22 -22
  105. package/dist-vue/_chunks/PkChatbotMessages-CxTz0W0d.js.map +1 -0
  106. package/dist-vue/_chunks/{PkChatbotStepPayload-C-xnhmzZ.js → PkChatbotStepPayload-B04aqOGu.js} +2 -2
  107. package/dist-vue/_chunks/{PkChatbotStepPayload-C-xnhmzZ.js.map → PkChatbotStepPayload-B04aqOGu.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Cko1vU0N.js → PkChatbotStepToolDetail-yII_Dk3p.js} +3 -3
  109. package/dist-vue/_chunks/{PkChatbotStepToolDetail-Cko1vU0N.js.map → PkChatbotStepToolDetail-yII_Dk3p.js.map} +1 -1
  110. package/dist-vue/_chunks/{PkChatbotSteps-BkZ3Kq2M.js → PkChatbotSteps-DYiCeWOd.js} +5 -5
  111. package/dist-vue/_chunks/{PkChatbotSteps-BkZ3Kq2M.js.map → PkChatbotSteps-DYiCeWOd.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkChatbotViewChat-BFImSy1X.js → PkChatbotViewChat-s-Vx4U1E.js} +7 -7
  113. package/dist-vue/_chunks/PkChatbotViewChat-s-Vx4U1E.js.map +1 -0
  114. package/dist-vue/_chunks/PkChatbotViewConversations-D7XHDBGS.js +195 -0
  115. package/dist-vue/_chunks/PkChatbotViewConversations-D7XHDBGS.js.map +1 -0
  116. package/dist-vue/_chunks/{PkChatbotViewFiles-CMQdbZN6.js → PkChatbotViewFiles-t07w-VNZ.js} +36 -36
  117. package/dist-vue/_chunks/PkChatbotViewFiles-t07w-VNZ.js.map +1 -0
  118. package/dist-vue/_chunks/{PkChatbotViewProfile-CDCy1LEX.js → PkChatbotViewProfile-DJT5AEkZ.js} +2 -2
  119. package/dist-vue/_chunks/{PkChatbotViewProfile-CDCy1LEX.js.map → PkChatbotViewProfile-DJT5AEkZ.js.map} +1 -1
  120. package/dist-vue/_chunks/{PkStreamingMarkdown-DJG-aPx2.js → PkStreamingMarkdown-ALhm02o3.js} +3 -3
  121. package/dist-vue/_chunks/{PkStreamingMarkdown-DJG-aPx2.js.map → PkStreamingMarkdown-ALhm02o3.js.map} +1 -1
  122. package/dist-vue/_chunks/{PkToolEditSpreadsheet-BHh7NUdR.js → PkToolEditSpreadsheet-DU3RBd6q.js} +2 -2
  123. package/dist-vue/_chunks/{PkToolEditSpreadsheet-BHh7NUdR.js.map → PkToolEditSpreadsheet-DU3RBd6q.js.map} +1 -1
  124. package/dist-vue/_chunks/{PkToolRequestGeolocation-Ccbhljmn.js → PkToolRequestGeolocation-CE4zQofM.js} +2 -2
  125. package/dist-vue/_chunks/{PkToolRequestGeolocation-Ccbhljmn.js.map → PkToolRequestGeolocation-CE4zQofM.js.map} +1 -1
  126. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BXf5ZRzR.js → PkToolRequestOAuthConnection-CAk5s541.js} +2 -2
  127. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BXf5ZRzR.js.map → PkToolRequestOAuthConnection-CAk5s541.js.map} +1 -1
  128. package/dist-vue/_chunks/{PkToolShowArtifact-BsfbvfVC.js → PkToolShowArtifact-CA1sKasD.js} +2 -2
  129. package/dist-vue/_chunks/{PkToolShowArtifact-BsfbvfVC.js.map → PkToolShowArtifact-CA1sKasD.js.map} +1 -1
  130. package/dist-vue/_chunks/{PkToolShowCalendarEvent-yttlTHiX.js → PkToolShowCalendarEvent-Cb3lmDQZ.js} +2 -2
  131. package/dist-vue/_chunks/PkToolShowCalendarEvent-Cb3lmDQZ.js.map +1 -0
  132. package/dist-vue/_chunks/{PkToolShowContactForm-C-YbtBlG.js → PkToolShowContactForm-C0QHEj5k.js} +3 -3
  133. package/dist-vue/_chunks/{PkToolShowContactForm-C-YbtBlG.js.map → PkToolShowContactForm-C0QHEj5k.js.map} +1 -1
  134. package/dist-vue/_chunks/{PkToolShowDiagram-CIHVrQ3e.js → PkToolShowDiagram-CQUd_reA.js} +2 -2
  135. package/dist-vue/_chunks/{PkToolShowDiagram-CIHVrQ3e.js.map → PkToolShowDiagram-CQUd_reA.js.map} +1 -1
  136. package/dist-vue/_chunks/{PkToolShowForm-BwYJhEVO.js → PkToolShowForm-B_ezmfuo.js} +8 -8
  137. package/dist-vue/_chunks/PkToolShowForm-B_ezmfuo.js.map +1 -0
  138. package/dist-vue/_chunks/{PkToolShowImageGallery-1A9zyOVn.js → PkToolShowImageGallery-B8gmmHvk.js} +2 -2
  139. package/dist-vue/_chunks/{PkToolShowImageGallery-1A9zyOVn.js.map → PkToolShowImageGallery-B8gmmHvk.js.map} +1 -1
  140. package/dist-vue/_chunks/PkToolShowProductList-BMvt5mKe.js +72 -0
  141. package/dist-vue/_chunks/PkToolShowProductList-BMvt5mKe.js.map +1 -0
  142. package/dist-vue/_chunks/{PkToolShowSources-BQpdJE_m.js → PkToolShowSources-DEmjN0Ou.js} +3 -3
  143. package/dist-vue/_chunks/{PkToolShowSources-BQpdJE_m.js.map → PkToolShowSources-DEmjN0Ou.js.map} +1 -1
  144. package/dist-vue/_chunks/{PkToolShowSuggestedReply-D3jLsbKJ.js → PkToolShowSuggestedReply-BE6gBA-2.js} +2 -2
  145. package/dist-vue/_chunks/{PkToolShowSuggestedReply-D3jLsbKJ.js.map → PkToolShowSuggestedReply-BE6gBA-2.js.map} +1 -1
  146. package/dist-vue/_chunks/{PkToolShowVideo-DUdkb3qb.js → PkToolShowVideo-ZPDVzjPX.js} +2 -2
  147. package/dist-vue/_chunks/{PkToolShowVideo-DUdkb3qb.js.map → PkToolShowVideo-ZPDVzjPX.js.map} +1 -1
  148. package/dist-vue/_chunks/{PkToolShowWebPages-BeeBiv9R.js → PkToolShowWebPages-dI4WMr7F.js} +8 -8
  149. package/dist-vue/_chunks/PkToolShowWebPages-dI4WMr7F.js.map +1 -0
  150. package/dist-vue/_chunks/{createChatbotApiClient-CDrs7NwO.js → createChatbotApiClient-IlTQndxL.js} +2 -2
  151. package/dist-vue/_chunks/{createChatbotApiClient-CDrs7NwO.js.map → createChatbotApiClient-IlTQndxL.js.map} +1 -1
  152. package/dist-vue/_chunks/{index.es-D7kQZyxD.js → index.es-VzNLOQUv.js} +2 -2
  153. package/dist-vue/_chunks/{index.es-D7kQZyxD.js.map → index.es-VzNLOQUv.js.map} +1 -1
  154. package/dist-vue/_chunks/{useChatbotStore-D6YNk8Rx.js → useChatbotStore-CtJ3bwuy.js} +3 -3
  155. package/dist-vue/_chunks/{useChatbotStore-D6YNk8Rx.js.map → useChatbotStore-CtJ3bwuy.js.map} +1 -1
  156. package/dist-vue/_chunks/{useDialogConfirm-KWz0ohCQ.js → useDialogConfirm-BxhvsnRr.js} +9 -8
  157. package/dist-vue/_chunks/useDialogConfirm-BxhvsnRr.js.map +1 -0
  158. package/dist-vue/_chunks/{utils-roi6YVNC.js → utils-BzypADaU.js} +2 -2
  159. package/dist-vue/_chunks/{utils-roi6YVNC.js.map → utils-BzypADaU.js.map} +1 -1
  160. package/dist-vue/api.js +1 -1
  161. package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
  162. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +5 -4
  163. package/dist-vue/apps/web-component/src/composables/useChatbotProfileProvider.d.ts +1 -1
  164. package/dist-vue/composables.js +169 -24
  165. package/dist-vue/composables.js.map +1 -1
  166. package/dist-vue/index.js +3477 -3384
  167. package/dist-vue/index.js.map +1 -1
  168. package/dist-vue/packages/auth/src/email-brand.d.ts +11 -0
  169. package/dist-vue/packages/components/src/PkEditorMarkdown.d.ts +1 -1
  170. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +1 -1
  171. package/dist-vue/packages/components/src/table/PkTableEmpty.d.ts +1 -1
  172. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -6
  173. package/dist-vue/packages/composable/src/index.d.ts +1 -0
  174. package/dist-vue/packages/composable/src/useBranding.d.ts +89 -0
  175. package/dist-vue/packages/composable/src/useDialogConfirm.d.ts +2 -1
  176. package/dist-vue/packages/composable/src/useSettingsStore.d.ts +8 -3
  177. package/dist-vue/packages/models/src/schema/Agent.d.ts +20 -14
  178. package/dist-vue/packages/models/src/schema/Branding.d.ts +625 -0
  179. package/dist-vue/packages/models/src/schema/Platform.d.ts +8 -0
  180. package/dist-vue/packages/models/src/schema/PwaManifest.d.ts +38 -0
  181. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -2
  182. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +2 -2
  183. package/dist-vue/packages/models/src/schema/index.d.ts +2 -0
  184. package/dist-vue/style.css +1 -1
  185. package/package.json +1 -1
  186. package/dist/_chunks/Agent-CJbRpoZG.js +0 -577
  187. package/dist/_chunks/Agent-CJbRpoZG.js.map +0 -1
  188. package/dist/_chunks/PkToolShowCalendarEvent-BLSTS6zf.js.map +0 -1
  189. package/dist/_chunks/PkToolShowForm-Dmq95u6b.js.map +0 -1
  190. package/dist/_chunks/PkToolShowProductList-DjS9nvXe.js +0 -72
  191. package/dist/_chunks/PkToolShowProductList-DjS9nvXe.js.map +0 -1
  192. package/dist/_chunks/PkToolShowWebPages-CYbiGa7e.js.map +0 -1
  193. package/dist-vue/_chunks/Agent---jwXeaB.js +0 -558
  194. package/dist-vue/_chunks/Agent---jwXeaB.js.map +0 -1
  195. package/dist-vue/_chunks/PkChatbotAuth-C2TpCnWH.js.map +0 -1
  196. package/dist-vue/_chunks/PkChatbotMessages-3RZER9PO.js.map +0 -1
  197. package/dist-vue/_chunks/PkChatbotViewChat-BFImSy1X.js.map +0 -1
  198. package/dist-vue/_chunks/PkChatbotViewConversations-C6T4ZxxX.js +0 -195
  199. package/dist-vue/_chunks/PkChatbotViewConversations-C6T4ZxxX.js.map +0 -1
  200. package/dist-vue/_chunks/PkChatbotViewFiles-CMQdbZN6.js.map +0 -1
  201. package/dist-vue/_chunks/PkToolShowCalendarEvent-yttlTHiX.js.map +0 -1
  202. package/dist-vue/_chunks/PkToolShowForm-BwYJhEVO.js.map +0 -1
  203. package/dist-vue/_chunks/PkToolShowProductList-D61i6AMs.js +0 -72
  204. package/dist-vue/_chunks/PkToolShowProductList-D61i6AMs.js.map +0 -1
  205. package/dist-vue/_chunks/PkToolShowWebPages-BeeBiv9R.js.map +0 -1
  206. package/dist-vue/_chunks/useDialogConfirm-KWz0ohCQ.js.map +0 -1
@@ -0,0 +1,742 @@
1
+ import { C as e, S as t, _ as n, a as r, b as i, f as a, g as o, i as s, l as ee, n as c, o as l, p as u, s as te, w as d, x as ne, y as f } from "./schemas-BIfOAo0P.js";
2
+ import { i as p, n as re, t as ie } from "./Media-Dk4odudr.js";
3
+ //#region ../../packages/models/src/utils.ts
4
+ var m = (e, t, n) => te(e, t, {
5
+ encode: (e) => e,
6
+ decode: n
7
+ }), ae = 51200, oe = f(i(), t()).refine((e) => JSON.stringify(e).length <= ae, { message: `Schema must not exceed ${ae / 1024} KB` });
8
+ d();
9
+ var se = (e) => [`${e}`, `-${e}`], ce = (e) => e.flatMap((e) => se(e)), h = {
10
+ pagination: (e = 1, t = 10) => ({
11
+ "page[number]": o().or(i()).transform((e) => Number(e)).default(e),
12
+ "page[size]": o().or(i()).transform((e) => Number(e)).default(t)
13
+ }),
14
+ filter: (e) => ({ [`filter[${e}]`]: i().optional() }),
15
+ include: (e) => ({ [`include[${e}]`]: i().optional() }),
16
+ range: (e) => ({
17
+ [`from[${e}]`]: i().optional(),
18
+ [`to[${e}]`]: i().optional()
19
+ }),
20
+ has: (e) => ({ [`has[${e}]`]: l().optional() }),
21
+ fullText: () => ({ "filter[fullText]": i().optional() }),
22
+ ids: () => ({ ids: ne([i(), r(i())]).optional() }),
23
+ deleted: () => ({ "filter[isDeleted]": l().default(!1) }),
24
+ filters: (e) => e.map((e) => h.filter(e)).reduce((e, t) => ({
25
+ ...e,
26
+ ...t
27
+ })),
28
+ sort: (e) => {
29
+ let t = ce(e);
30
+ return { sort: c(t).optional().default(t[0]) };
31
+ }
32
+ }, le = (e) => e.replace(/^[a-zA-Z_]+:/, ""), ue = (e, t) => {
33
+ let n = new Set(t), r = le(e);
34
+ if (r !== e && n.has(r)) return r;
35
+ if (n.has(e)) return e;
36
+ let i = [...n].filter((e) => e.endsWith(`-${r}`));
37
+ return i.length === 1 ? i[0] : void 0;
38
+ }, g = /^#[0-9A-Fa-f]{6}$/, _ = n({
39
+ brand: i().regex(g),
40
+ accent: i().regex(g),
41
+ info: i().regex(g)
42
+ }), v = n({
43
+ light: _,
44
+ dark: _
45
+ }), de = (e, t) => JSON.stringify(e).toLowerCase() === JSON.stringify(t).toLowerCase(), y = /* @__PURE__ */ function(e) {
46
+ return e.System = "system", e.ForceLight = "force-light", e.ForceDark = "force-dark", e;
47
+ }({}), b = /* @__PURE__ */ function(e) {
48
+ return e.LogoLight = "logoLight", e.LogoDark = "logoDark", e.Mark = "mark", e.EmailLogo = "emailLogo", e.EmailBanner = "emailBanner", e;
49
+ }({});
50
+ b.EmailLogo, b.EmailBanner;
51
+ var x = n({
52
+ checksum: i().regex(/^[0-9a-f]{64}$/),
53
+ mimeType: c([
54
+ "image/svg+xml",
55
+ "image/png",
56
+ "image/webp",
57
+ "image/jpeg"
58
+ ]),
59
+ width: o().int().positive().nullable(),
60
+ height: o().int().positive().nullable()
61
+ }), fe = n({
62
+ [b.LogoLight]: x.nullable(),
63
+ [b.LogoDark]: x.nullable(),
64
+ [b.Mark]: x.nullable(),
65
+ [b.EmailLogo]: x.nullable(),
66
+ [b.EmailBanner]: x.nullable()
67
+ }), S = n({
68
+ productName: i().trim().min(1).max(60),
69
+ shortName: i().trim().min(1).max(24),
70
+ description: i().trim().max(200).nullable(),
71
+ productTagline: i().trim().max(40).nullable(),
72
+ companyName: i().trim().max(80).nullable()
73
+ });
74
+ n({
75
+ colors: v,
76
+ mode: c(y),
77
+ assets: fe,
78
+ text: S
79
+ }).extend({
80
+ version: i(),
81
+ stylesheetVersion: i().optional()
82
+ });
83
+ var pe = n({ css: i() }), C = fe.partial(), w = S.partial().extend({
84
+ productName: S.shape.productName.nullish(),
85
+ shortName: S.shape.shortName.nullish()
86
+ }), me = n({
87
+ colors: v.nullish(),
88
+ mode: c(y).nullish(),
89
+ assets: C.nullish(),
90
+ text: w.nullish()
91
+ });
92
+ n({
93
+ patch: me,
94
+ revision: i().min(1).max(64)
95
+ });
96
+ var T = (e) => e.optional().catch(void 0);
97
+ n({
98
+ colors: T(v.nullable()),
99
+ mode: T(c(y).nullable()),
100
+ assets: T(n({
101
+ [b.LogoLight]: T(C.shape.logoLight),
102
+ [b.LogoDark]: T(C.shape.logoDark),
103
+ [b.Mark]: T(C.shape.mark),
104
+ [b.EmailLogo]: T(C.shape.emailLogo),
105
+ [b.EmailBanner]: T(C.shape.emailBanner)
106
+ }).nullable()),
107
+ text: T(n({
108
+ productName: T(w.shape.productName),
109
+ shortName: T(w.shape.shortName),
110
+ description: T(w.shape.description),
111
+ productTagline: T(w.shape.productTagline),
112
+ companyName: T(w.shape.companyName)
113
+ }).nullable())
114
+ });
115
+ var E = D({
116
+ colors: {
117
+ light: {
118
+ brand: "#140e33",
119
+ accent: "#9365ff",
120
+ info: "#86c8fb"
121
+ },
122
+ dark: {
123
+ brand: "#565676",
124
+ accent: "#9365ff",
125
+ info: "#86c8fb"
126
+ }
127
+ },
128
+ mode: y.System,
129
+ assets: {
130
+ [b.LogoLight]: null,
131
+ [b.LogoDark]: null,
132
+ [b.Mark]: null,
133
+ [b.EmailLogo]: null,
134
+ [b.EmailBanner]: null
135
+ },
136
+ text: {
137
+ productName: "Eight Wave Agent Studio",
138
+ shortName: "Agent Studio",
139
+ description: "Eight Wave platform to create and manage AI agents with a user-friendly interface.",
140
+ productTagline: "Eight Wave",
141
+ companyName: null
142
+ }
143
+ });
144
+ D({
145
+ ...E,
146
+ text: {
147
+ productName: "Agent Studio",
148
+ shortName: "Agent Studio",
149
+ description: null,
150
+ productTagline: null,
151
+ companyName: null
152
+ }
153
+ });
154
+ var he = (e) => e.productName === E.text.productName;
155
+ function ge(e) {
156
+ let t = Number.parseInt(e.slice(1), 16), [n, r, i] = [
157
+ t >> 16,
158
+ t >> 8 & 255,
159
+ t & 255
160
+ ].map((e) => {
161
+ let t = e / 255;
162
+ return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
163
+ });
164
+ return .2126 * n + .7152 * r + .0722 * i;
165
+ }
166
+ function _e(e) {
167
+ let t = e.match(/[\p{L}\p{N}]/u)?.[0] ?? "", n = t.toUpperCase();
168
+ return n.length === t.length ? n : t;
169
+ }
170
+ function ve(e, t, { rounded: n = !0 } = {}) {
171
+ let r = g.test(t) ? t : E.colors.light.brand, i = ge(r) > .179 ? "#000000" : "#ffffff", a = _e(e);
172
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32"${n ? " rx=\"7\"" : ""} fill="${r}"/><text x="16" y="16" dy="0.35em" text-anchor="middle" font-family="system-ui, sans-serif" font-size="18" font-weight="600" fill="${i}">${a}</text></svg>`;
173
+ }
174
+ var ye = (e, t) => `data:image/svg+xml,${encodeURIComponent(ve(e, t))}`;
175
+ function D(e) {
176
+ if (e && typeof e == "object") {
177
+ for (let t of Object.values(e)) D(t);
178
+ Object.freeze(e);
179
+ }
180
+ return e;
181
+ }
182
+ function O(e) {
183
+ return Array.isArray(e) ? `[${e.map(O).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${O(t)}`).join(",")}}` : JSON.stringify(e);
184
+ }
185
+ function be(e) {
186
+ let t = 2166136261, n = 16777619 ^ e.length;
187
+ for (let r = 0; r < e.length; r++) {
188
+ let i = e.charCodeAt(r);
189
+ t = Math.imul(t ^ i, 16777619) >>> 0, n = Math.imul(n ^ i, 1540483477) >>> 0;
190
+ }
191
+ return t.toString(16).padStart(8, "0") + n.toString(16).padStart(8, "0");
192
+ }
193
+ function xe(e) {
194
+ return be(`${Oe(e)}:${O(e)}`);
195
+ }
196
+ var Se = "/api/v1/public/branding", Ce = (e) => `${Se}/assets/${e}`, we = (e, t) => `${e.replace(/\/+$/, "")}${Ce(t)}`;
197
+ RegExp(`^${Se}(?:\\.css|/manifest\\.webmanifest|/icon/(?:\\d+|maskable)|/assets/[0-9a-f]{64}(?:/icon/\\d+)?)?(?:\\?|$)`);
198
+ function Te(e) {
199
+ return {
200
+ ...e,
201
+ version: xe(e),
202
+ stylesheetVersion: Oe(e)
203
+ };
204
+ }
205
+ function Ee(e) {
206
+ return _.safeParse(e).success ? `--color-brand:${e.brand};--color-accent:${e.accent};--color-info:${e.info};` : "";
207
+ }
208
+ function De(e) {
209
+ let t = Ee(e.colors.light), n = Ee(e.colors.dark);
210
+ return [
211
+ `:where(:root,.theme){${t}${t ? `--color-tint:${e.colors.light.brand};` : ""}}`,
212
+ `@media (prefers-color-scheme: dark){:where(:root:not(.theme--light),.theme:not(.theme--light)){${n}}}`,
213
+ `:where(.theme.theme--light){${t}}`,
214
+ `:where(.theme.theme--dark){${n}}`
215
+ ].join("\n");
216
+ }
217
+ var Oe = (e) => be(De(e)), ke = n({
218
+ dateTime: i().optional(),
219
+ timezone: i().optional(),
220
+ language: i().optional(),
221
+ languages: r(i()).optional(),
222
+ url: i().optional(),
223
+ pathname: i().optional(),
224
+ pageTitle: i().optional(),
225
+ referrer: i().optional(),
226
+ screenWidth: o().optional(),
227
+ screenHeight: o().optional(),
228
+ viewportWidth: o().optional(),
229
+ viewportHeight: o().optional(),
230
+ devicePixelRatio: o().optional(),
231
+ maxTouchPoints: o().optional(),
232
+ hardwareConcurrency: o().optional(),
233
+ deviceMemory: o().optional(),
234
+ platform: i().optional(),
235
+ connectionType: i().optional(),
236
+ connectionEffectiveType: i().optional(),
237
+ connectionDownlink: o().optional(),
238
+ connectionRtt: o().optional(),
239
+ saveData: l().optional(),
240
+ darkMode: l().optional(),
241
+ reducedMotion: l().optional(),
242
+ historyLength: o().optional(),
243
+ geolocationLatitude: o().optional(),
244
+ geolocationLongitude: o().optional(),
245
+ geolocationAccuracy: o().optional(),
246
+ geolocationCity: i().optional()
247
+ }), k = /* @__PURE__ */ function(e) {
248
+ return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
249
+ }({}), A = /* @__PURE__ */ function(e) {
250
+ return e.Public = "public", e.Private = "private", e.Organization = "organization", e;
251
+ }({}), j = /* @__PURE__ */ function(e) {
252
+ return e.Chat = "chat", e.Reasoning = "reasoning", e;
253
+ }({}), M = /* @__PURE__ */ function(e) {
254
+ return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
255
+ }({}), N = [
256
+ "none",
257
+ "low",
258
+ "medium",
259
+ "high",
260
+ "xhigh",
261
+ "max"
262
+ ], P = [
263
+ "low",
264
+ "medium",
265
+ "high",
266
+ "xhigh",
267
+ "max"
268
+ ], F = [
269
+ "minimal",
270
+ "low",
271
+ "medium",
272
+ "high"
273
+ ], I = [
274
+ "auto",
275
+ "detailed",
276
+ "concise"
277
+ ], Ae = n({
278
+ reasoningEffort: c(N).optional(),
279
+ reasoningSummary: c(I).optional()
280
+ }), je = n({
281
+ type: c([
282
+ "adaptive",
283
+ "enabled",
284
+ "disabled"
285
+ ]).optional(),
286
+ effort: c(P).optional(),
287
+ display: c(["summarized", "omitted"]).optional(),
288
+ budgetTokens: o().int().positive().optional()
289
+ }), Me = n({
290
+ thinkingLevel: c(F).optional(),
291
+ thinkingBudget: o().int().optional(),
292
+ includeThoughts: l().optional()
293
+ }), Ne = n({ type: c(["enabled", "disabled"]).optional() }), L = [
294
+ "alibaba",
295
+ "meta",
296
+ "moonshotai",
297
+ "spacexai",
298
+ "xiaomi",
299
+ "zai"
300
+ ];
301
+ function Pe(e) {
302
+ return L.includes(e);
303
+ }
304
+ var R = [
305
+ "none",
306
+ "minimal",
307
+ "low",
308
+ "medium",
309
+ "high",
310
+ "xhigh"
311
+ ], z = n({ reasoningEffort: c(R).optional() });
312
+ function B(e, t) {
313
+ return e && t.includes(e) ? e : void 0;
314
+ }
315
+ var Fe = n({
316
+ openai: Ae.optional(),
317
+ anthropic: je.optional(),
318
+ google: Me.optional(),
319
+ deepseek: Ne.optional(),
320
+ alibaba: z.optional(),
321
+ meta: z.optional(),
322
+ moonshotai: z.optional(),
323
+ spacexai: z.optional(),
324
+ xiaomi: z.optional(),
325
+ zai: z.optional()
326
+ });
327
+ function Ie(e) {
328
+ if (!e || typeof e != "object") return e;
329
+ let t = e, n = [
330
+ "openai",
331
+ "anthropic",
332
+ "google",
333
+ "deepseek",
334
+ ...L
335
+ ].some((e) => e in t);
336
+ if ("effort" in t && !n) {
337
+ let e = t.effort, n = t.reasoningSummary, r = {};
338
+ if (e && e !== "off" && e !== "none") {
339
+ let t = B(e, N), i = B(n, I);
340
+ (t || i) && (r.openai = {
341
+ ...t && { reasoningEffort: t },
342
+ ...i && { reasoningSummary: i }
343
+ });
344
+ let a = B(e, P);
345
+ a && (r.anthropic = {
346
+ type: "adaptive",
347
+ effort: a
348
+ });
349
+ let o = B(e === "xhigh" || e === "max" ? "high" : e, F);
350
+ o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
351
+ let s = B(e === "max" ? "xhigh" : e, R);
352
+ if (s) for (let e of L) r[e] = { reasoningEffort: s };
353
+ } else {
354
+ r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
355
+ for (let e of L) r[e] = { reasoningEffort: "none" };
356
+ }
357
+ return r;
358
+ }
359
+ return e;
360
+ }
361
+ var V = m(t(), Fe, Ie).optional(), Le = {
362
+ openai: { reasoningEffort: "low" },
363
+ anthropic: {
364
+ type: "adaptive",
365
+ effort: "low"
366
+ },
367
+ google: { thinkingLevel: "low" },
368
+ alibaba: { reasoningEffort: "low" },
369
+ meta: { reasoningEffort: "low" },
370
+ moonshotai: { reasoningEffort: "low" },
371
+ spacexai: { reasoningEffort: "low" },
372
+ xiaomi: { reasoningEffort: "low" },
373
+ zai: { reasoningEffort: "low" }
374
+ };
375
+ function Re(e) {
376
+ return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
377
+ }
378
+ function ze(e, t) {
379
+ let n = t?.[e];
380
+ return Re(n) ? n : Le[e];
381
+ }
382
+ var H = /* @__PURE__ */ function(e) {
383
+ 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.RunWorker = "runWorker", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", 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;
384
+ }({}), Be = "enableTools";
385
+ function Ve(e) {
386
+ return !He(e) && e !== H.RequestGeolocation;
387
+ }
388
+ function He(e) {
389
+ return e === H.RequestConfirm || e === H.ShowArtifact || e === H.ShowCalendarEvent || e === H.ShowComparison || e === H.ShowContactForm || e === H.ShowDiagram || e === H.ShowEmail || e === H.ShowImageGallery || e === H.ShowLocation || e === H.ShowMessage || e === H.ShowForm || e === H.ShowMultipleChoice || e === H.ShowProductList || e === H.ShowQrCode || e === H.ShowSources || e === H.ShowSuggestedReply || e === H.ShowVideo || e === H.ShowWeather || e === H.ShowWebPages;
390
+ }
391
+ var Ue = /* @__PURE__ */ new Set([
392
+ H.RequestConfirm,
393
+ H.ShowArtifact,
394
+ H.ShowWeather,
395
+ H.ShowLocation,
396
+ H.ShowComparison,
397
+ H.ShowProductList,
398
+ H.ShowWebPages,
399
+ H.ShowImageGallery,
400
+ H.ShowVideo,
401
+ H.ShowSources,
402
+ H.ShowSuggestedReply,
403
+ H.ShowCalendarEvent,
404
+ H.ShowEmail,
405
+ H.ShowMessage,
406
+ H.ShowForm
407
+ ]);
408
+ function We(e) {
409
+ return Ue.has(e);
410
+ }
411
+ var Ge = /* @__PURE__ */ new Set([
412
+ H.RequestConfirm,
413
+ H.RequestGeolocation,
414
+ H.ShowForm,
415
+ H.ShowMultipleChoice,
416
+ "requestOAuthConnection"
417
+ ]);
418
+ function Ke(e) {
419
+ return Ge.has(e);
420
+ }
421
+ var qe = /* @__PURE__ */ function(e) {
422
+ return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
423
+ }({});
424
+ H.RequestConfirm, H.RequestGeolocation, H.ShowArtifact, H.ShowCalendarEvent, H.ShowContactForm, H.ShowComparison, H.ShowDiagram, H.ShowEmail, H.ShowForm, H.ShowImageGallery, H.ShowLocation, H.ShowMessage, H.ShowMultipleChoice, H.ShowProductList, H.ShowQrCode, H.ShowSources, H.ShowSuggestedReply, H.ShowVideo, H.ShowWeather, H.ShowWebPages;
425
+ var Je = "Shown on the caller's screen";
426
+ function Ye(e) {
427
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Je));
428
+ }
429
+ var Xe = n({
430
+ maxSteps: o().int().min(1).max(10).optional().default(5),
431
+ maxOptionsPerStep: o().int().min(2).max(10).optional().default(5)
432
+ }), U = /* @__PURE__ */ function(e) {
433
+ return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
434
+ }({}), Ze = n({
435
+ maxResults: o().int().min(1).max(20).optional(),
436
+ maxTokens: o().int().positive().max(1e6).optional(),
437
+ maxTokensPerPage: o().int().positive().optional(),
438
+ country: i().max(2).optional(),
439
+ searchLanguageFilter: r(i().max(5)).max(10).optional(),
440
+ searchDomainFilter: r(i()).max(20).optional(),
441
+ searchRecencyFilter: c([
442
+ "day",
443
+ "week",
444
+ "month",
445
+ "year"
446
+ ]).optional()
447
+ }), Qe = n({
448
+ mode: c(["one-shot", "agentic"]).optional(),
449
+ maxResults: o().int().min(1).max(20).optional(),
450
+ sourcePolicy: n({
451
+ includeDomains: r(i()).optional(),
452
+ excludeDomains: r(i()).optional(),
453
+ afterDate: i().optional()
454
+ }).optional(),
455
+ excerpts: n({
456
+ maxCharsPerResult: o().int().positive().optional(),
457
+ maxCharsTotal: o().int().positive().optional()
458
+ }).optional(),
459
+ fetchPolicy: n({ maxAgeSeconds: o().int().positive().optional() }).optional()
460
+ }), $e = n({
461
+ openai: n({}).optional(),
462
+ anthropic: n({
463
+ maxUses: o().int().positive().optional(),
464
+ allowedDomains: r(i()).optional(),
465
+ blockedDomains: r(i()).optional(),
466
+ userLocation: n({
467
+ type: u("approximate").optional(),
468
+ country: i().optional(),
469
+ region: i().optional(),
470
+ city: i().optional(),
471
+ timezone: i().optional()
472
+ }).optional()
473
+ }).optional(),
474
+ google: n({}).optional()
475
+ }), W = n({
476
+ enabled: l().default(!1),
477
+ provider: c(U).optional().default(U.Native),
478
+ perplexity: Ze.optional(),
479
+ parallel: Qe.optional(),
480
+ native: $e.optional()
481
+ }), et = n({ useAllUserKb: l().default(!1) }), tt = n({ useAllUserFiles: l().default(!1) }), nt = n({ tools: r(i()).default([]) }), rt = n({
482
+ disabled: r(c(H)).default([
483
+ H.UserMemory,
484
+ H.SearchInUserFiles,
485
+ H.RunWorker,
486
+ H.FetchTeamsChannelHistory
487
+ ]),
488
+ showForm: Xe.optional().default(() => Xe.parse({})),
489
+ webSearch: W.optional().default(() => W.parse({})),
490
+ userMemory: et.optional().default(() => et.parse({})),
491
+ userFiles: tt.optional().default(() => tt.parse({})),
492
+ approval: nt.optional().default(() => nt.parse({}))
493
+ }), G = n({
494
+ freshness: n({
495
+ enabled: l().default(!1),
496
+ scale: o().int().min(86400).max(31536e3).default(7776e3),
497
+ weight: o().min(.05).max(.5).default(.1)
498
+ }).prefault({}),
499
+ priority: n({ enabled: l().default(!0) }).prefault({}),
500
+ mmr: n({
501
+ enabled: l().default(!1),
502
+ diversity: o().min(0).max(1).default(.3),
503
+ candidatesLimit: o().int().min(20).max(100).default(50)
504
+ }).prefault({})
505
+ }).prefault({}), it = n({
506
+ prompt: i().optional(),
507
+ temperature: o().min(0).max(2).optional().default(.6),
508
+ maxOutputTokens: o().positive().optional(),
509
+ presencePenalty: o().min(-2).max(2).optional(),
510
+ frequencyPenalty: o().min(-2).max(2).optional(),
511
+ searchMode: c(M).optional().default(M.Balanced),
512
+ limit: o().positive().max(100).optional().default(10),
513
+ maxStepCount: o().int().min(1).max(40).optional().default(10),
514
+ reasoning: V,
515
+ ranking: G.optional().default(() => G.parse({}))
516
+ }), K = m(t(), f(i(), i()), (e) => typeof e == "string" ? { it: e } : e), at = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", q = /* @__PURE__ */ function(e) {
517
+ return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
518
+ }({}), J = /* @__PURE__ */ function(e) {
519
+ return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
520
+ }({}), ot = Object.values(J), st = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
521
+ function ct(e) {
522
+ let t = e.trim().toLowerCase();
523
+ if (!t) return "";
524
+ try {
525
+ return new URL(t.includes("://") ? t : `https://${t}`).hostname;
526
+ } catch {
527
+ return t;
528
+ }
529
+ }
530
+ var Y = n({
531
+ media: re.optional(),
532
+ logo: i().optional(),
533
+ theme: c([
534
+ "light",
535
+ "dark",
536
+ "auto"
537
+ ]).optional().default("auto"),
538
+ mainColor: i().regex(g).optional().default("#000000"),
539
+ textColor: c([
540
+ "auto",
541
+ "white",
542
+ "black"
543
+ ]).optional().default("auto"),
544
+ useColorsForAgentHeader: l().optional().default(!1),
545
+ initialMessage: K.optional(),
546
+ greeting: r(K).min(1).max(10).optional(),
547
+ messagePlaceholder: K.optional(),
548
+ dismissableNotice: K.optional(),
549
+ footerMessage: K.optional(),
550
+ privacyPolicyNotice: K.optional(),
551
+ interactiveLogin: l().optional().default(!0),
552
+ welcomePopup: l().optional().default(!1),
553
+ floatingButtonPosition: c(["left", "right"]).optional().default("right"),
554
+ maxMessageLength: o().int().positive().optional(),
555
+ widgetUrl: e().default(at),
556
+ loadDelay: o().int().min(0).max(3e4).optional().default(0),
557
+ loaderStrategy: c(q).optional().default(q.InlineModule),
558
+ customCss: i().optional(),
559
+ smoothStream: l().optional().default(!1),
560
+ showExtendedSteps: l().optional().default(!1),
561
+ imageHosts: r(i().overwrite(ct).refine((e) => e === "" || st.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
562
+ }), lt = [
563
+ "image/jpeg",
564
+ "image/png",
565
+ "image/gif",
566
+ "image/webp",
567
+ "application/pdf",
568
+ "text/plain",
569
+ "text/markdown",
570
+ "text/csv"
571
+ ], ut = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", X = n({
572
+ enabled: l().default(!1),
573
+ maxFileSizeBytes: o().int().positive().max(104857600).optional().default(20971520),
574
+ allowedMimeTypes: r(i().regex(ie)).optional().default([...lt]),
575
+ maxFilesPerMessage: o().int().positive().max(10).optional().default(5),
576
+ maxFilesPerChat: o().int().positive().max(50).optional().default(20)
577
+ }), Z = n({
578
+ zeroDataRetention: l().default(!0),
579
+ disallowPromptTraining: l().default(!0),
580
+ providerTimeoutMs: o().int().min(1e3).max(789e3).optional()
581
+ }), dt = n({ enabled: l().default(!1) }), Q = /* @__PURE__ */ function(e) {
582
+ return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
583
+ }({}), ft = n({ mode: c(Q).default(Q.Off) }), pt = n({
584
+ enabled: l().default(!1),
585
+ voiceId: i().optional(),
586
+ language: i().min(2).max(5).default("it"),
587
+ maxSessionSeconds: o().int().min(30).max(3600).default(600),
588
+ cascadeTimeoutSeconds: o().min(1).max(15).default(15).transform((e) => Math.max(5, e)),
589
+ fillerAfterSeconds: o().min(.5).max(8).optional(),
590
+ fillerMessage: i().max(200).optional(),
591
+ ignoreBackgroundVoices: l().default(!0),
592
+ turnEagerness: c([
593
+ "patient",
594
+ "normal",
595
+ "eager"
596
+ ]).default("normal"),
597
+ turnTimeoutSeconds: o().min(1).max(30).default(5),
598
+ firstMessage: i().max(300).optional(),
599
+ providerAgentId: i().optional(),
600
+ providerSecretId: i().optional(),
601
+ providerApiKeyId: i().optional()
602
+ }), mt = n({ enabled: l() });
603
+ n({
604
+ chatId: i().min(1).optional(),
605
+ deviceContext: ke.optional(),
606
+ externalContext: f(i(), t()).optional()
607
+ });
608
+ var ht = n({
609
+ sessionId: i(),
610
+ signedUrl: i(),
611
+ providerAgentId: i(),
612
+ chatId: i(),
613
+ maxSessionSeconds: o().int()
614
+ }), gt = n({
615
+ voiceId: i(),
616
+ name: i(),
617
+ category: i().optional(),
618
+ previewUrl: i().optional(),
619
+ labels: f(i(), i()).optional()
620
+ });
621
+ r(gt);
622
+ var _t = n({
623
+ model: it,
624
+ interface: Y,
625
+ tools: rt.optional().default(() => rt.parse({})),
626
+ fileUpload: X.optional().default(() => X.parse({})),
627
+ gatewayOptions: Z.optional().default(() => Z.parse({})),
628
+ channels: r(c(J)).optional().default(() => [...ot]),
629
+ externalContextSchema: oe.optional(),
630
+ openaiApi: dt.optional().default(() => dt.parse({})),
631
+ voice: pt.optional().default(() => pt.parse({})),
632
+ toolWorkingSet: ft.optional().default(() => ft.parse({}))
633
+ }), vt = n({
634
+ rateLimits: n({
635
+ minuteRateLimit: o().int().min(0).optional(),
636
+ hourRateLimit: o().int().min(0).optional(),
637
+ dayRateLimit: o().int().min(0).optional(),
638
+ monthRateLimit: o().int().min(0).optional()
639
+ }),
640
+ trustedOrigins: n({ origins: r(e().or(u(""))).overwrite((e) => e?.filter((e) => e?.trim())).default([]) }).default({ origins: [] })
641
+ });
642
+ n({
643
+ id: i().optional(),
644
+ name: i(),
645
+ prompt: i().optional(),
646
+ model: i().optional(),
647
+ fallbackModels: r(i()).default([]),
648
+ status: c(k).default(k.Draft),
649
+ visibility: c(A).default(A.Organization),
650
+ settings: _t,
651
+ security: vt.nullish(),
652
+ type: c(j).default(j.Chat),
653
+ organizationId: i()
654
+ }), a(() => n({
655
+ id: i(),
656
+ name: i(),
657
+ prompt: i(),
658
+ model: i(),
659
+ fallbackModels: r(i()).nullable().default([]),
660
+ status: c(k).default(k.Draft),
661
+ visibility: c(A).default(A.Organization),
662
+ settings: _t,
663
+ security: vt.nullable(),
664
+ type: c(j).default(j.Chat),
665
+ organizationId: i(),
666
+ createdAt: p(),
667
+ createdBy: i(),
668
+ updatedAt: p(),
669
+ updatedBy: i(),
670
+ deleted: l(),
671
+ deletedAt: p().nullable(),
672
+ deletedBy: i().nullable(),
673
+ outOfBudget: l().optional().default(!1),
674
+ outOfBudgetReason: i().optional().default("")
675
+ }));
676
+ var yt = n({
677
+ id: i(),
678
+ name: i(),
679
+ status: c(k),
680
+ visibility: c(A),
681
+ organizationId: i(),
682
+ interface: Y,
683
+ createdAt: p(),
684
+ updatedAt: p(),
685
+ capabilities: n({
686
+ fileUpload: X,
687
+ voice: mt
688
+ }),
689
+ channels: r(c(J)).default(() => [...ot])
690
+ }), bt = Y.pick({
691
+ logo: !0,
692
+ mainColor: !0,
693
+ textColor: !0,
694
+ theme: !0,
695
+ floatingButtonPosition: !0,
696
+ customCss: !0
697
+ }), xt = yt.pick({
698
+ id: !0,
699
+ name: !0,
700
+ organizationId: !0
701
+ }).extend({ interface: bt }), St = n({
702
+ emailPassword: l(),
703
+ google: l(),
704
+ microsoft: l()
705
+ }), Ct = n({
706
+ requiresAuth: u(!1),
707
+ agent: yt,
708
+ branding: s()
709
+ }), wt = n({
710
+ requiresAuth: u(!0),
711
+ agent: s(),
712
+ branding: xt
713
+ });
714
+ ee("requiresAuth", [Ct, wt]);
715
+ var $ = n({
716
+ authMethods: St,
717
+ deploymentBranding: pe.nullish()
718
+ });
719
+ ee("requiresAuth", [Ct.extend($.shape), wt.extend($.shape)]), n({
720
+ id: d(),
721
+ agentIds: r(d())
722
+ }), n({
723
+ ...h.pagination(),
724
+ ...h.sort([
725
+ "id",
726
+ "updatedAt",
727
+ "createdAt",
728
+ "name",
729
+ "type",
730
+ "status",
731
+ "visibility",
732
+ "model"
733
+ ]),
734
+ ...h.filters(["done", "type"]),
735
+ ...h.filter("id"),
736
+ ...h.fullText(),
737
+ ...h.ids()
738
+ });
739
+ //#endregion
740
+ export { ct as A, ue as B, Ve as C, He as D, We as E, ye as F, de as I, Te as L, y as M, E as N, Ke as O, we as P, he as R, U as S, Pe as T, h as V, F as _, Z as a, ut as b, V as c, j as d, W as f, R as g, Be as h, X as i, ke as j, Ye as k, M as l, at as m, H as n, q as o, qe as p, J as r, G as s, P as t, Q as u, N as v, ze as w, ht as x, I as y, m as z };
741
+
742
+ //# sourceMappingURL=Agent-Ci7XnQ12.js.map