@8wave/ai-elements 0.121.0-beta.39 → 0.121.0-beta.40

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 (142) hide show
  1. package/README.md +67 -15
  2. package/dist/_chunks/{Agent-C3m0UmlL.js → Agent-BuPgJIt4.js} +203 -202
  3. package/dist/_chunks/Agent-BuPgJIt4.js.map +1 -0
  4. package/dist/_chunks/{PkStreamingMarkdown--PCkA4Fg.js → PkStreamingMarkdown-D2aqCD0I.js} +953 -927
  5. package/dist/_chunks/PkStreamingMarkdown-D2aqCD0I.js.map +1 -0
  6. package/dist/_chunks/{PkToolEditSpreadsheet-DAMWWIVt.js → PkToolEditSpreadsheet-83ZdmGeA.js} +2 -2
  7. package/dist/_chunks/{PkToolEditSpreadsheet-DAMWWIVt.js.map → PkToolEditSpreadsheet-83ZdmGeA.js.map} +1 -1
  8. package/dist/_chunks/{PkToolRequestGeolocation-BgsvQb7Q.js → PkToolRequestGeolocation-1cOmCG8P.js} +2 -2
  9. package/dist/_chunks/{PkToolRequestGeolocation-BgsvQb7Q.js.map → PkToolRequestGeolocation-1cOmCG8P.js.map} +1 -1
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-DtuZw7yk.js → PkToolRequestOAuthConnection-CCu3FCyo.js} +2 -2
  11. package/dist/_chunks/{PkToolRequestOAuthConnection-DtuZw7yk.js.map → PkToolRequestOAuthConnection-CCu3FCyo.js.map} +1 -1
  12. package/dist/_chunks/{PkToolShowArtifact-B163OvqY.js → PkToolShowArtifact-CiYkZkpe.js} +2 -2
  13. package/dist/_chunks/{PkToolShowArtifact-B163OvqY.js.map → PkToolShowArtifact-CiYkZkpe.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShowContactForm-C_ptr7Xs.js → PkToolShowContactForm-D7TEzrYe.js} +2 -2
  15. package/dist/_chunks/{PkToolShowContactForm-C_ptr7Xs.js.map → PkToolShowContactForm-D7TEzrYe.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowForm-fburTpQm.js → PkToolShowForm-CSh4Q6sl.js} +5 -5
  17. package/dist/_chunks/{PkToolShowForm-fburTpQm.js.map → PkToolShowForm-CSh4Q6sl.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowImageGallery-ChauJukk.js → PkToolShowImageGallery-CQEaEfYE.js} +2 -2
  19. package/dist/_chunks/{PkToolShowImageGallery-ChauJukk.js.map → PkToolShowImageGallery-CQEaEfYE.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowProductList-B_XZezYw.js → PkToolShowProductList-BCmULLct.js} +2 -2
  21. package/dist/_chunks/{PkToolShowProductList-B_XZezYw.js.map → PkToolShowProductList-BCmULLct.js.map} +1 -1
  22. package/dist/_chunks/{PkToolShowSources-CS4nEuL0.js → PkToolShowSources-R9KWsfTQ.js} +3 -3
  23. package/dist/_chunks/{PkToolShowSources-CS4nEuL0.js.map → PkToolShowSources-R9KWsfTQ.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowSuggestedReply-BIe56XdA.js → PkToolShowSuggestedReply-DYZz9aV2.js} +2 -2
  25. package/dist/_chunks/{PkToolShowSuggestedReply-BIe56XdA.js.map → PkToolShowSuggestedReply-DYZz9aV2.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowVideo-DzU1XJqv.js → PkToolShowVideo-C_9SZtZM.js} +2 -2
  27. package/dist/_chunks/{PkToolShowVideo-DzU1XJqv.js.map → PkToolShowVideo-C_9SZtZM.js.map} +1 -1
  28. package/dist/_chunks/{PkToolShowWebPages-BlKe8Arf.js → PkToolShowWebPages-DwRYfle9.js} +2 -2
  29. package/dist/_chunks/{PkToolShowWebPages-BlKe8Arf.js.map → PkToolShowWebPages-DwRYfle9.js.map} +1 -1
  30. package/dist/_chunks/{chatImagePolicy-ChSkpiw6.js → chatImagePolicy-CQYTWTkP.js} +2 -2
  31. package/dist/_chunks/{chatImagePolicy-ChSkpiw6.js.map → chatImagePolicy-CQYTWTkP.js.map} +1 -1
  32. package/dist/_chunks/{markdown-D3iMlF6T.js → markdown-Br9ROCBT.js} +2 -2
  33. package/dist/_chunks/{markdown-D3iMlF6T.js.map → markdown-Br9ROCBT.js.map} +1 -1
  34. package/dist/ai-elements.es.js +4378 -3756
  35. package/dist/ai-elements.es.js.map +1 -1
  36. package/dist-vue/PkChatbot.js +1 -1
  37. package/dist-vue/PkChatbotEmptyState.js +1 -1
  38. package/dist-vue/PkChatbotInput.js +1 -1
  39. package/dist-vue/PkChatbotMessages.js +1 -1
  40. package/dist-vue/PkChatbotStepPayload.js +1 -1
  41. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  42. package/dist-vue/PkChatbotSteps.js +1 -1
  43. package/dist-vue/PkChatbotViewChat.js +1 -1
  44. package/dist-vue/PkChatbotViewConversations.js +1 -1
  45. package/dist-vue/PkChatbotViewFiles.js +1 -1
  46. package/dist-vue/PkChatbotViewProfile.js +1 -1
  47. package/dist-vue/_chunks/{Agent-3IHYHv05.js → Agent-DZb775Ak.js} +193 -192
  48. package/dist-vue/_chunks/Agent-DZb775Ak.js.map +1 -0
  49. package/dist-vue/_chunks/{Document-B0A_y6N5.js → Document-E72l_VU6.js} +2 -2
  50. package/dist-vue/_chunks/{Document-B0A_y6N5.js.map → Document-E72l_VU6.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkChatbot-Bu76hH4F.js → PkChatbot-DIqduIwr.js} +9 -9
  52. package/dist-vue/_chunks/{PkChatbot-Bu76hH4F.js.map → PkChatbot-DIqduIwr.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkChatbotEmptyState-ilPJoYjk.js → PkChatbotEmptyState-Dh7ETVnf.js} +2 -2
  54. package/dist-vue/_chunks/{PkChatbotEmptyState-ilPJoYjk.js.map → PkChatbotEmptyState-Dh7ETVnf.js.map} +1 -1
  55. package/dist-vue/_chunks/{PkChatbotInput-CY0YRGkG.js → PkChatbotInput-BJHtmPR-.js} +2 -2
  56. package/dist-vue/_chunks/{PkChatbotInput-CY0YRGkG.js.map → PkChatbotInput-BJHtmPR-.js.map} +1 -1
  57. package/dist-vue/_chunks/PkChatbotMessages-DMSActW1.js +968 -0
  58. package/dist-vue/_chunks/PkChatbotMessages-DMSActW1.js.map +1 -0
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-CiEcIlzW.js → PkChatbotStepPayload-CXdsUMrw.js} +2 -2
  60. package/dist-vue/_chunks/{PkChatbotStepPayload-CiEcIlzW.js.map → PkChatbotStepPayload-CXdsUMrw.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotStepToolDetail-VqLkuWi7.js → PkChatbotStepToolDetail-DbpXR7jh.js} +16 -16
  62. package/dist-vue/_chunks/{PkChatbotStepToolDetail-VqLkuWi7.js.map → PkChatbotStepToolDetail-DbpXR7jh.js.map} +1 -1
  63. package/dist-vue/_chunks/PkChatbotSteps-QFFZ0DjH.js +189 -0
  64. package/dist-vue/_chunks/PkChatbotSteps-QFFZ0DjH.js.map +1 -0
  65. package/dist-vue/_chunks/{PkChatbotViewChat-t-XkwFbe.js → PkChatbotViewChat-BI_PtT72.js} +300 -298
  66. package/dist-vue/_chunks/PkChatbotViewChat-BI_PtT72.js.map +1 -0
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-CgRMohUQ.js → PkChatbotViewConversations-Bg4jSO9a.js} +3 -3
  68. package/dist-vue/_chunks/{PkChatbotViewConversations-CgRMohUQ.js.map → PkChatbotViewConversations-Bg4jSO9a.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkChatbotViewFiles-DkeysDGW.js → PkChatbotViewFiles-Cwm-JQMF.js} +3 -3
  70. package/dist-vue/_chunks/{PkChatbotViewFiles-DkeysDGW.js.map → PkChatbotViewFiles-Cwm-JQMF.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-kgqu10ED.js → PkChatbotViewProfile-C_GElIM3.js} +2 -2
  72. package/dist-vue/_chunks/{PkChatbotViewProfile-kgqu10ED.js.map → PkChatbotViewProfile-C_GElIM3.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkStreamingMarkdown-CDlpb5w0.js → PkStreamingMarkdown-DwDs-cGP.js} +3 -3
  74. package/dist-vue/_chunks/{PkStreamingMarkdown-CDlpb5w0.js.map → PkStreamingMarkdown-DwDs-cGP.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkToolEditSpreadsheet-D0EPgCmp.js → PkToolEditSpreadsheet-B61LtERY.js} +2 -2
  76. package/dist-vue/_chunks/{PkToolEditSpreadsheet-D0EPgCmp.js.map → PkToolEditSpreadsheet-B61LtERY.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkToolRequestGeolocation-DZnJd1od.js → PkToolRequestGeolocation-DC8hSH0j.js} +2 -2
  78. package/dist-vue/_chunks/{PkToolRequestGeolocation-DZnJd1od.js.map → PkToolRequestGeolocation-DC8hSH0j.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C8MGtBlh.js → PkToolRequestOAuthConnection-BH_-drvw.js} +2 -2
  80. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C8MGtBlh.js.map → PkToolRequestOAuthConnection-BH_-drvw.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolShowArtifact-CtXB1-vJ.js → PkToolShowArtifact-CjVN96wJ.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolShowArtifact-CtXB1-vJ.js.map → PkToolShowArtifact-CjVN96wJ.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowContactForm-DlZdfcNw.js → PkToolShowContactForm-CmBLigw8.js} +2 -2
  84. package/dist-vue/_chunks/{PkToolShowContactForm-DlZdfcNw.js.map → PkToolShowContactForm-CmBLigw8.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowDiagram-BUUjmUpE.js → PkToolShowDiagram-dKUU5_6F.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowDiagram-BUUjmUpE.js.map → PkToolShowDiagram-dKUU5_6F.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowForm-DxiiMSCC.js → PkToolShowForm-B6ESvq-5.js} +4 -4
  88. package/dist-vue/_chunks/{PkToolShowForm-DxiiMSCC.js.map → PkToolShowForm-B6ESvq-5.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowImageGallery-D01aM-9U.js → PkToolShowImageGallery-Daq0IwTH.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowImageGallery-D01aM-9U.js.map → PkToolShowImageGallery-Daq0IwTH.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowProductList-BRMF3WJf.js → PkToolShowProductList-Bc3Gzyxy.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowProductList-BRMF3WJf.js.map → PkToolShowProductList-Bc3Gzyxy.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowSources-C0_MwX7m.js → PkToolShowSources-BDvRbenn.js} +3 -3
  94. package/dist-vue/_chunks/{PkToolShowSources-C0_MwX7m.js.map → PkToolShowSources-BDvRbenn.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BcjKYwbk.js → PkToolShowSuggestedReply-Cd6VkzvJ.js} +2 -2
  96. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BcjKYwbk.js.map → PkToolShowSuggestedReply-Cd6VkzvJ.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkToolShowVideo-CjjoQH7j.js → PkToolShowVideo-Bo1gsD97.js} +2 -2
  98. package/dist-vue/_chunks/{PkToolShowVideo-CjjoQH7j.js.map → PkToolShowVideo-Bo1gsD97.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkToolShowWebPages-B5reGh4g.js → PkToolShowWebPages-DI3sZiqh.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowWebPages-B5reGh4g.js.map → PkToolShowWebPages-DI3sZiqh.js.map} +1 -1
  101. package/dist-vue/_chunks/{createChatbotApiClient-DcLpptlt.js → createChatbotApiClient-DUz4dwzY.js} +12 -12
  102. package/dist-vue/_chunks/{createChatbotApiClient-DcLpptlt.js.map → createChatbotApiClient-DUz4dwzY.js.map} +1 -1
  103. package/dist-vue/_chunks/{useChatbotStore-BliRphuB.js → useChatbotStore-D7LcpA-6.js} +481 -455
  104. package/dist-vue/_chunks/useChatbotStore-D7LcpA-6.js.map +1 -0
  105. package/dist-vue/_chunks/{utils-C7-KrzRE.js → utils-EPX3V3VI.js} +112 -86
  106. package/dist-vue/_chunks/utils-EPX3V3VI.js.map +1 -0
  107. package/dist-vue/api.js +1 -1
  108. package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +2 -0
  109. package/dist-vue/apps/web-component/src/components/FloatingChatWidget.ce.d.ts +2 -0
  110. package/dist-vue/apps/web-component/src/composables/usePageTools.d.ts +1 -0
  111. package/dist-vue/apps/web-component/src/lib.d.ts +10 -0
  112. package/dist-vue/apps/web-component/src/pageTools/actions.d.ts +2 -0
  113. package/dist-vue/apps/web-component/src/pageTools/announcements.d.ts +9 -0
  114. package/dist-vue/apps/web-component/src/pageTools/index.d.ts +12 -1
  115. package/dist-vue/apps/web-component/src/pageTools/navigation.d.ts +40 -8
  116. package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +60 -0
  117. package/dist-vue/composables.js +34 -8
  118. package/dist-vue/composables.js.map +1 -1
  119. package/dist-vue/index.js +145 -125
  120. package/dist-vue/index.js.map +1 -1
  121. package/dist-vue/locales.js +28 -2
  122. package/dist-vue/packages/components/src/PkEditorPrompt.d.ts +6 -0
  123. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +4 -0
  124. package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +7 -1
  125. package/dist-vue/packages/components/src/chat/PkHostCallConfirmDialog.d.ts +4 -0
  126. package/dist-vue/packages/components/src/chat/PkPageControlBar.d.ts +5 -1
  127. package/dist-vue/packages/components/src/chat/utils.d.ts +11 -1
  128. package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +37 -8
  129. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +8 -2
  130. package/dist-vue/packages/models/src/schema/PageAccess.d.ts +9 -0
  131. package/dist-vue/style.css +1 -1
  132. package/package.json +1 -1
  133. package/dist/_chunks/Agent-C3m0UmlL.js.map +0 -1
  134. package/dist/_chunks/PkStreamingMarkdown--PCkA4Fg.js.map +0 -1
  135. package/dist-vue/_chunks/Agent-3IHYHv05.js.map +0 -1
  136. package/dist-vue/_chunks/PkChatbotMessages-BfKqJ8n_.js +0 -954
  137. package/dist-vue/_chunks/PkChatbotMessages-BfKqJ8n_.js.map +0 -1
  138. package/dist-vue/_chunks/PkChatbotSteps-CoDtEaL7.js +0 -189
  139. package/dist-vue/_chunks/PkChatbotSteps-CoDtEaL7.js.map +0 -1
  140. package/dist-vue/_chunks/PkChatbotViewChat-t-XkwFbe.js.map +0 -1
  141. package/dist-vue/_chunks/useChatbotStore-BliRphuB.js.map +0 -1
  142. package/dist-vue/_chunks/utils-C7-KrzRE.js.map +0 -1
@@ -51,13 +51,13 @@ var S = n({
51
51
  ]),
52
52
  width: s().int().positive().nullable(),
53
53
  height: s().int().positive().nullable()
54
- }), C = n({
54
+ }), se = n({
55
55
  [x.LogoLight]: S.nullable(),
56
56
  [x.LogoDark]: S.nullable(),
57
57
  [x.Mark]: S.nullable(),
58
58
  [x.EmailLogo]: S.nullable(),
59
59
  [x.EmailBanner]: S.nullable()
60
- }), w = n({
60
+ }), C = n({
61
61
  productName: i().trim().min(1).max(60),
62
62
  shortName: i().trim().min(1).max(24),
63
63
  description: i().trim().max(200).nullable(),
@@ -67,42 +67,42 @@ var S = n({
67
67
  n({
68
68
  colors: y,
69
69
  mode: u(b),
70
- assets: C,
71
- text: w
70
+ assets: se,
71
+ text: C
72
72
  }).extend({ version: i() });
73
- var se = n({ css: i() }), T = C.partial(), E = w.partial().extend({
74
- productName: w.shape.productName.nullish(),
75
- shortName: w.shape.shortName.nullish()
76
- }), ce = n({
73
+ var ce = n({ css: i() }), w = se.partial(), T = C.partial().extend({
74
+ productName: C.shape.productName.nullish(),
75
+ shortName: C.shape.shortName.nullish()
76
+ }), le = n({
77
77
  colors: y.nullish(),
78
78
  mode: u(b).nullish(),
79
- assets: T.nullish(),
80
- text: E.nullish()
79
+ assets: w.nullish(),
80
+ text: T.nullish()
81
81
  });
82
82
  n({
83
- patch: ce,
83
+ patch: le,
84
84
  revision: i().min(1).max(64)
85
85
  });
86
- var D = (e) => e.optional().catch(void 0);
86
+ var E = (e) => e.optional().catch(void 0);
87
87
  n({
88
- colors: D(y.nullable()),
89
- mode: D(u(b).nullable()),
90
- assets: D(n({
91
- [x.LogoLight]: D(T.shape.logoLight),
92
- [x.LogoDark]: D(T.shape.logoDark),
93
- [x.Mark]: D(T.shape.mark),
94
- [x.EmailLogo]: D(T.shape.emailLogo),
95
- [x.EmailBanner]: D(T.shape.emailBanner)
88
+ colors: E(y.nullable()),
89
+ mode: E(u(b).nullable()),
90
+ assets: E(n({
91
+ [x.LogoLight]: E(w.shape.logoLight),
92
+ [x.LogoDark]: E(w.shape.logoDark),
93
+ [x.Mark]: E(w.shape.mark),
94
+ [x.EmailLogo]: E(w.shape.emailLogo),
95
+ [x.EmailBanner]: E(w.shape.emailBanner)
96
96
  }).nullable()),
97
- text: D(n({
98
- productName: D(E.shape.productName),
99
- shortName: D(E.shape.shortName),
100
- description: D(E.shape.description),
101
- productTagline: D(E.shape.productTagline),
102
- companyName: D(E.shape.companyName)
97
+ text: E(n({
98
+ productName: E(T.shape.productName),
99
+ shortName: E(T.shape.shortName),
100
+ description: E(T.shape.description),
101
+ productTagline: E(T.shape.productTagline),
102
+ companyName: E(T.shape.companyName)
103
103
  }).nullable())
104
- }), O({
105
- ...O({
104
+ }), D({
105
+ ...D({
106
106
  colors: {
107
107
  light: {
108
108
  brand: "#140e33",
@@ -139,16 +139,16 @@ n({
139
139
  companyName: null
140
140
  }
141
141
  });
142
- function O(e) {
142
+ function D(e) {
143
143
  if (e && typeof e == "object") {
144
- for (let t of Object.values(e)) O(t);
144
+ for (let t of Object.values(e)) D(t);
145
145
  Object.freeze(e);
146
146
  }
147
147
  return e;
148
148
  }
149
149
  //#endregion
150
150
  //#region ../../packages/models/src/schema/DeviceContext.ts
151
- var le = n({
151
+ var O = n({
152
152
  dateTime: i().optional(),
153
153
  timezone: i().optional(),
154
154
  language: i().optional(),
@@ -230,7 +230,7 @@ function be(e) {
230
230
  return !1;
231
231
  }
232
232
  }
233
- var xe = n({
233
+ var j = n({
234
234
  level: u(A).default(A.Off),
235
235
  excludeSelectors: c(i().max(200).refine(be, "Not a valid CSS selector")).max(50).default([]),
236
236
  confirmEveryAction: d().default(!1),
@@ -238,19 +238,20 @@ var xe = n({
238
238
  acknowledgedBy: i().optional(),
239
239
  acknowledgedAt: f().optional(),
240
240
  acknowledgedLevel: u(A).optional()
241
- }), Se = (e) => e.startsWith("page_") || e.startsWith("form_"), Ce = xe.pick({
241
+ }), xe = (e) => e.startsWith("page_") || e.startsWith("form_"), Se = j.pick({
242
242
  level: !0,
243
243
  excludeSelectors: !0,
244
244
  confirmEveryAction: !0,
245
245
  notice: !0
246
- });
246
+ }), Ce = ["fill-fields"];
247
247
  n({
248
248
  version: l(1),
249
- forms: c(t()).max(16).default([])
249
+ forms: c(t()).max(16).default([]),
250
+ features: c(i().max(40)).max(16).default([])
250
251
  });
251
252
  //#endregion
252
253
  //#region ../../packages/models/src/schema/Media.ts
253
- var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
254
+ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
254
255
  [".mp3", "audio/mpeg"],
255
256
  [".m4a", "audio/mp4"],
256
257
  [".m4a", "audio/x-m4a"],
@@ -273,9 +274,9 @@ var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
273
274
  ".mka",
274
275
  ".weba",
275
276
  ".wma"
276
- ]), M = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Ee = (e, t) => {
277
- let n = Ve(e ?? "");
278
- return M(t).startsWith("audio/") || we.has(n) || Te.has(n);
277
+ ]), Ee = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", De = (e, t) => {
278
+ let n = He(e ?? "");
279
+ return Ee(t).startsWith("audio/") || we.has(n) || Te.has(n);
279
280
  }, N = [
280
281
  {
281
282
  extensions: [".html", ".htm"],
@@ -431,7 +432,7 @@ var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
431
432
  }
432
433
  ];
433
434
  N.map((e) => e.mimeType);
434
- var De = (e) => N.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Oe = (e, t) => {
435
+ var Oe = (e) => N.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), ke = (e, t) => {
435
436
  if (t.length === 0) return !0;
436
437
  let n = N.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
437
438
  "",
@@ -439,7 +440,7 @@ var De = (e) => N.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensi
439
440
  "text/plain",
440
441
  ...n.flatMap((e) => e.aliases)
441
442
  ] : []);
442
- return e.length > 0 && e.every((e) => r.has(M(e)) || t.some((t) => e.includes(t)));
443
+ return e.length > 0 && e.every((e) => r.has(Ee(e)) || t.some((t) => e.includes(t)));
443
444
  };
444
445
  n({
445
446
  status: u([
@@ -453,33 +454,33 @@ n({
453
454
  durationSeconds: s().optional(),
454
455
  model: i().optional()
455
456
  });
456
- var ke = /* @__PURE__ */ function(e) {
457
+ var Ae = /* @__PURE__ */ function(e) {
457
458
  return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
458
- }({}), Ae = n({
459
+ }({}), je = n({
459
460
  type: l("azure-blob"),
460
461
  blobUri: e(),
461
462
  containerName: i().min(1),
462
463
  pathRelativeToContainer: i().min(1)
463
- }), je = n({
464
+ }), Me = n({
464
465
  type: l("s3"),
465
466
  bucket: i().min(1),
466
467
  key: i().min(1),
467
468
  region: i().min(1)
468
- }), Me = p("type", [Ae, je]), P = n({
469
+ }), Ne = p("type", [je, Me]), P = n({
469
470
  type: i().min(1),
470
471
  name: i().min(1),
471
- mimeType: i().regex(j),
472
+ mimeType: i().regex(M),
472
473
  bytesCount: s().positive(),
473
474
  extension: i().regex(/^\.[a-zA-Z0-9]+$/).overwrite((e) => e.toLowerCase()),
474
475
  storedFileName: i().optional(),
475
476
  metadata: h(i(), i()).default({}),
476
477
  tags: h(i(), i()).default({})
477
478
  }).extend({
478
- storageHandle: Me,
479
- storagePolicy: u(ke),
479
+ storageHandle: Ne,
480
+ storagePolicy: u(Ae),
480
481
  signData: i().optional(),
481
482
  storedFileName: i().min(1)
482
- }), Ne = n({
483
+ }), Pe = n({
483
484
  name: i().min(1),
484
485
  src: P,
485
486
  srcSet: c(P).default([]),
@@ -504,30 +505,30 @@ n({
504
505
  });
505
506
  var F = /* @__PURE__ */ function(e) {
506
507
  return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
507
- }({}), Pe = n({
508
+ }({}), Fe = n({
508
509
  type: l(F.picture),
509
510
  width: s().positive(),
510
511
  height: s().positive(),
511
512
  blurhash: i().optional()
512
- }), Fe = n({
513
+ }), Ie = n({
513
514
  type: l(F.video),
514
515
  width: s().positive(),
515
516
  height: s().positive(),
516
517
  duration: s().nonnegative()
517
- }), Ie = n({
518
+ }), Le = n({
518
519
  type: l(F.audio),
519
520
  duration: s().nonnegative()
520
- }), Le = n({ type: l(F.office) }), Re = n({ type: l(F.archive) }), ze = n({ type: l(F.binary) }), Be = n({ type: l(F.executable) });
521
+ }), Re = n({ type: l(F.office) }), ze = n({ type: l(F.archive) }), Be = n({ type: l(F.binary) }), Ve = n({ type: l(F.executable) });
521
522
  p("type", [
522
- Pe,
523
523
  Fe,
524
524
  Ie,
525
525
  Le,
526
526
  Re,
527
527
  ze,
528
- Be
528
+ Be,
529
+ Ve
529
530
  ]);
530
- var Ve = (e) => {
531
+ var He = (e) => {
531
532
  let t = e.lastIndexOf(".");
532
533
  return t === -1 ? "" : e.slice(t).toLowerCase();
533
534
  }, I = /* @__PURE__ */ function(e) {
@@ -540,162 +541,162 @@ var R = /* @__PURE__ */ function(e) {
540
541
  return e.Chat = "chat", e.Reasoning = "reasoning", e;
541
542
  }({}), z = /* @__PURE__ */ function(e) {
542
543
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
543
- }({}), He = [
544
+ }({}), Ue = [
544
545
  "none",
545
546
  "low",
546
547
  "medium",
547
548
  "high",
548
549
  "xhigh",
549
550
  "max"
550
- ], Ue = [
551
+ ], We = [
551
552
  "low",
552
553
  "medium",
553
554
  "high",
554
555
  "xhigh",
555
556
  "max"
556
- ], B = [
557
+ ], Ge = [
557
558
  "minimal",
558
559
  "low",
559
560
  "medium",
560
561
  "high"
561
- ], We = [
562
+ ], Ke = [
562
563
  "auto",
563
564
  "detailed",
564
565
  "concise"
565
- ], Ge = n({
566
- reasoningEffort: u(He).optional(),
567
- reasoningSummary: u(We).optional()
568
- }), Ke = n({
566
+ ], qe = n({
567
+ reasoningEffort: u(Ue).optional(),
568
+ reasoningSummary: u(Ke).optional()
569
+ }), Je = n({
569
570
  type: u([
570
571
  "adaptive",
571
572
  "enabled",
572
573
  "disabled"
573
574
  ]).optional(),
574
- effort: u(Ue).optional(),
575
+ effort: u(We).optional(),
575
576
  display: u(["summarized", "omitted"]).optional(),
576
577
  budgetTokens: s().int().positive().optional()
577
- }), qe = n({
578
- thinkingLevel: u(B).optional(),
578
+ }), Ye = n({
579
+ thinkingLevel: u(Ge).optional(),
579
580
  thinkingBudget: s().int().optional(),
580
581
  includeThoughts: d().optional()
581
- }), Je = n({ type: u(["enabled", "disabled"]).optional() }), V = [
582
+ }), Xe = n({ type: u(["enabled", "disabled"]).optional() }), B = [
582
583
  "alibaba",
583
584
  "meta",
584
585
  "moonshotai",
585
586
  "spacexai",
586
587
  "xiaomi",
587
588
  "zai"
588
- ], Ye = [
589
+ ], Ze = [
589
590
  "none",
590
591
  "minimal",
591
592
  "low",
592
593
  "medium",
593
594
  "high",
594
595
  "xhigh"
595
- ], H = n({ reasoningEffort: u(Ye).optional() });
596
- function U(e, t) {
596
+ ], V = n({ reasoningEffort: u(Ze).optional() });
597
+ function H(e, t) {
597
598
  return e && t.includes(e) ? e : void 0;
598
599
  }
599
- var Xe = n({
600
- openai: Ge.optional(),
601
- anthropic: Ke.optional(),
602
- google: qe.optional(),
603
- deepseek: Je.optional(),
604
- alibaba: H.optional(),
605
- meta: H.optional(),
606
- moonshotai: H.optional(),
607
- spacexai: H.optional(),
608
- xiaomi: H.optional(),
609
- zai: H.optional()
600
+ var Qe = n({
601
+ openai: qe.optional(),
602
+ anthropic: Je.optional(),
603
+ google: Ye.optional(),
604
+ deepseek: Xe.optional(),
605
+ alibaba: V.optional(),
606
+ meta: V.optional(),
607
+ moonshotai: V.optional(),
608
+ spacexai: V.optional(),
609
+ xiaomi: V.optional(),
610
+ zai: V.optional()
610
611
  });
611
- function Ze(e) {
612
+ function $e(e) {
612
613
  if (!e || typeof e != "object") return e;
613
614
  let t = e, n = [
614
615
  "openai",
615
616
  "anthropic",
616
617
  "google",
617
618
  "deepseek",
618
- ...V
619
+ ...B
619
620
  ].some((e) => e in t);
620
621
  if ("effort" in t && !n) {
621
622
  let e = t.effort, n = t.reasoningSummary, r = {};
622
623
  if (e && e !== "off" && e !== "none") {
623
- let t = U(e, He), i = U(n, We);
624
+ let t = H(e, Ue), i = H(n, Ke);
624
625
  (t || i) && (r.openai = {
625
626
  ...t && { reasoningEffort: t },
626
627
  ...i && { reasoningSummary: i }
627
628
  });
628
- let a = U(e, Ue);
629
+ let a = H(e, We);
629
630
  a && (r.anthropic = {
630
631
  type: "adaptive",
631
632
  effort: a
632
633
  });
633
- let o = U(e === "xhigh" || e === "max" ? "high" : e, B);
634
+ let o = H(e === "xhigh" || e === "max" ? "high" : e, Ge);
634
635
  o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
635
- let s = U(e === "max" ? "xhigh" : e, Ye);
636
- if (s) for (let e of V) r[e] = { reasoningEffort: s };
636
+ let s = H(e === "max" ? "xhigh" : e, Ze);
637
+ if (s) for (let e of B) r[e] = { reasoningEffort: s };
637
638
  } else {
638
639
  r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
639
- for (let e of V) r[e] = { reasoningEffort: "none" };
640
+ for (let e of B) r[e] = { reasoningEffort: "none" };
640
641
  }
641
642
  return r;
642
643
  }
643
644
  return e;
644
645
  }
645
- var Qe = g(t(), Xe, Ze).optional(), W = /* @__PURE__ */ function(e) {
646
+ var et = g(t(), Qe, $e).optional(), U = /* @__PURE__ */ function(e) {
646
647
  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.ScheduleWakeup = "scheduleWakeup", e.ShareDocument = "shareDocument", 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;
647
- }({}), $e = "mcp-", et = "api-", tt = "subagent-";
648
- function nt(e) {
649
- return e === W.RequestConfirm || e === W.ShowArtifact || e === W.ShowCalendarEvent || e === W.ShowComparison || e === W.ShowContactForm || e === W.ShowDiagram || e === W.ShowEmail || e === W.ShowImageGallery || e === W.ShowLocation || e === W.ShowMessage || e === W.ShowForm || e === W.ShowMultipleChoice || e === W.ShowProductList || e === W.ShowQrCode || e === W.ShowSources || e === W.ShowSuggestedReply || e === W.ShowVideo || e === W.ShowWeather || e === W.ShowWebPages;
648
+ }({}), tt = "mcp-", nt = "api-", rt = "subagent-";
649
+ function it(e) {
650
+ 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;
650
651
  }
651
- W.RequestConfirm, W.ShowArtifact, W.ShowWeather, W.ShowLocation, W.ShowComparison, W.ShowProductList, W.ShowWebPages, W.ShowImageGallery, W.ShowVideo, W.ShowSources, W.ShowSuggestedReply, W.ShowCalendarEvent, W.ShowEmail, W.ShowMessage, W.ShowForm, W.ShareDocument;
652
- var rt = /* @__PURE__ */ new Set([
653
- W.RequestConfirm,
654
- W.RequestGeolocation,
655
- W.ShowForm,
656
- W.ShowMultipleChoice,
652
+ U.RequestConfirm, U.ShowArtifact, U.ShowWeather, U.ShowLocation, U.ShowComparison, U.ShowProductList, U.ShowWebPages, U.ShowImageGallery, U.ShowVideo, U.ShowSources, U.ShowSuggestedReply, U.ShowCalendarEvent, U.ShowEmail, U.ShowMessage, U.ShowForm, U.ShareDocument;
653
+ var at = /* @__PURE__ */ new Set([
654
+ U.RequestConfirm,
655
+ U.RequestGeolocation,
656
+ U.ShowForm,
657
+ U.ShowMultipleChoice,
657
658
  "requestOAuthConnection"
658
659
  ]);
659
- function it(e) {
660
- return rt.has(e);
660
+ function ot(e) {
661
+ return at.has(e);
661
662
  }
662
- var at = /* @__PURE__ */ new Set([
663
- W.RequestConfirm,
664
- W.RequestGeolocation,
665
- W.ShowArtifact,
666
- W.ShowCalendarEvent,
667
- W.ShowContactForm,
668
- W.ShowComparison,
669
- W.ShowDiagram,
670
- W.ShowEmail,
671
- W.ShowForm,
672
- W.ShowImageGallery,
673
- W.ShowLocation,
674
- W.ShowMessage,
675
- W.ShowMultipleChoice,
676
- W.ShowProductList,
677
- W.ShowQrCode,
678
- W.ShowSources,
679
- W.ShowSuggestedReply,
680
- W.ShowVideo,
681
- W.ShowWeather,
682
- W.ShowWebPages
683
- ]), ot = "Shown on the caller's screen";
684
- function st(e) {
685
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(ot));
663
+ var st = /* @__PURE__ */ new Set([
664
+ U.RequestConfirm,
665
+ U.RequestGeolocation,
666
+ U.ShowArtifact,
667
+ U.ShowCalendarEvent,
668
+ U.ShowContactForm,
669
+ U.ShowComparison,
670
+ U.ShowDiagram,
671
+ U.ShowEmail,
672
+ U.ShowForm,
673
+ U.ShowImageGallery,
674
+ U.ShowLocation,
675
+ U.ShowMessage,
676
+ U.ShowMultipleChoice,
677
+ U.ShowProductList,
678
+ U.ShowQrCode,
679
+ U.ShowSources,
680
+ U.ShowSuggestedReply,
681
+ U.ShowVideo,
682
+ U.ShowWeather,
683
+ U.ShowWebPages
684
+ ]), ct = "Shown on the caller's screen";
685
+ function lt(e) {
686
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(ct));
686
687
  }
687
- var ct = n({
688
+ var W = n({
688
689
  maxSteps: s().int().min(1).max(10).optional().default(5),
689
690
  maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
690
- }), lt = /* @__PURE__ */ function(e) {
691
+ }), ut = /* @__PURE__ */ function(e) {
691
692
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
692
- }({}), ut = [
693
+ }({}), dt = [
693
694
  "perplexity_search",
694
695
  "parallel_search",
695
696
  "web_search",
696
697
  "openai_web_search",
697
698
  "google_search"
698
- ], dt = n({
699
+ ], ft = n({
699
700
  maxResults: s().int().min(1).max(20).optional(),
700
701
  maxTokens: s().int().positive().max(1e6).optional(),
701
702
  maxTokensPerPage: s().int().positive().optional(),
@@ -708,7 +709,7 @@ var ct = n({
708
709
  "month",
709
710
  "year"
710
711
  ]).optional()
711
- }), ft = n({
712
+ }), pt = n({
712
713
  mode: u(["one-shot", "agentic"]).optional(),
713
714
  maxResults: s().int().min(1).max(20).optional(),
714
715
  sourcePolicy: n({
@@ -721,7 +722,7 @@ var ct = n({
721
722
  maxCharsTotal: s().int().positive().optional()
722
723
  }).optional(),
723
724
  fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
724
- }), pt = n({
725
+ }), mt = n({
725
726
  openai: n({}).optional(),
726
727
  anthropic: n({
727
728
  maxUses: s().int().positive().optional(),
@@ -738,24 +739,24 @@ var ct = n({
738
739
  google: n({}).optional()
739
740
  }), G = n({
740
741
  enabled: d().default(!1),
741
- provider: u(lt).optional().default(lt.Native),
742
- perplexity: dt.optional(),
743
- parallel: ft.optional(),
744
- native: pt.optional()
745
- }), mt = n({ useAllUserKb: d().default(!1) }), ht = n({ useAllUserFiles: d().default(!1) }), gt = n({ enabled: d().default(!1) }), _t = n({ tools: c(i()).default([]) }), vt = n({
746
- disabled: c(u(W)).default([
747
- W.UserMemory,
748
- W.SearchInUserFiles,
749
- W.RunWorker,
750
- W.FetchTeamsChannelHistory,
751
- W.ScheduleWakeup
742
+ provider: u(ut).optional().default(ut.Native),
743
+ perplexity: ft.optional(),
744
+ parallel: pt.optional(),
745
+ native: mt.optional()
746
+ }), ht = n({ useAllUserKb: d().default(!1) }), gt = n({ useAllUserFiles: d().default(!1) }), _t = n({ enabled: d().default(!1) }), vt = n({ tools: c(i()).default([]) }), yt = n({
747
+ disabled: c(u(U)).default([
748
+ U.UserMemory,
749
+ U.SearchInUserFiles,
750
+ U.RunWorker,
751
+ U.FetchTeamsChannelHistory,
752
+ U.ScheduleWakeup
752
753
  ]),
753
- showForm: ct.optional().default(() => ct.parse({})),
754
+ showForm: W.optional().default(() => W.parse({})),
754
755
  webSearch: G.optional().default(() => G.parse({})),
755
- userMemory: mt.optional().default(() => mt.parse({})),
756
- userFiles: ht.optional().default(() => ht.parse({})),
757
- shareDocument: gt.optional().default(() => gt.parse({})),
758
- approval: _t.optional().default(() => _t.parse({}))
756
+ userMemory: ht.optional().default(() => ht.parse({})),
757
+ userFiles: gt.optional().default(() => gt.parse({})),
758
+ shareDocument: _t.optional().default(() => _t.parse({})),
759
+ approval: vt.optional().default(() => vt.parse({}))
759
760
  }), K = n({
760
761
  freshness: n({
761
762
  enabled: d().default(!1),
@@ -768,7 +769,7 @@ var ct = n({
768
769
  diversity: s().min(0).max(1).default(.3),
769
770
  candidatesLimit: s().int().min(20).max(100).default(50)
770
771
  }).prefault({})
771
- }).prefault({}), yt = n({
772
+ }).prefault({}), bt = n({
772
773
  prompt: i().optional(),
773
774
  temperature: s().min(0).max(2).optional().default(.6),
774
775
  maxOutputTokens: s().positive().optional(),
@@ -777,9 +778,9 @@ var ct = n({
777
778
  searchMode: u(z).optional().default(z.Balanced),
778
779
  limit: s().positive().max(100).optional().default(10),
779
780
  maxStepCount: s().int().min(1).max(40).optional().default(10),
780
- reasoning: Qe,
781
+ reasoning: et,
781
782
  ranking: K.optional().default(() => K.parse({}))
782
- }), q = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), bt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", xt = /* @__PURE__ */ function(e) {
783
+ }), q = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), xt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", St = /* @__PURE__ */ function(e) {
783
784
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
784
785
  }({}), J = /* @__PURE__ */ function(e) {
785
786
  return e.Floating = "floating", e.Copilot = "copilot", e;
@@ -787,8 +788,8 @@ var ct = n({
787
788
  return e.Solid = "solid", e.Glass = "glass", e;
788
789
  }({}), X = /* @__PURE__ */ function(e) {
789
790
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
790
- }({}), St = Object.values(X), Ct = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
791
- function wt(e) {
791
+ }({}), Ct = Object.values(X), wt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
792
+ function Tt(e) {
792
793
  let t = e.trim().toLowerCase();
793
794
  if (!t) return "";
794
795
  try {
@@ -798,7 +799,7 @@ function wt(e) {
798
799
  }
799
800
  }
800
801
  var Z = n({
801
- media: Ne.optional(),
802
+ media: Pe.optional(),
802
803
  logo: i().optional(),
803
804
  theme: u([
804
805
  "light",
@@ -827,14 +828,14 @@ var Z = n({
827
828
  workingGlow: d().optional().default(!0),
828
829
  copilotPageCss: i().optional(),
829
830
  maxMessageLength: s().int().positive().optional(),
830
- widgetUrl: e().default(bt),
831
+ widgetUrl: e().default(xt),
831
832
  loadDelay: s().int().min(0).max(3e4).optional().default(0),
832
- loaderStrategy: u(xt).optional().default(xt.InlineModule),
833
+ loaderStrategy: u(St).optional().default(St.InlineModule),
833
834
  customCss: i().optional(),
834
835
  smoothStream: d().optional().default(!1),
835
836
  showExtendedSteps: d().optional().default(!1),
836
- imageHosts: c(i().overwrite(wt).refine((e) => e === "" || Ct.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
837
- }), Tt = [
837
+ imageHosts: c(i().overwrite(Tt).refine((e) => e === "" || wt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
838
+ }), Et = [
838
839
  "image/jpeg",
839
840
  "image/png",
840
841
  "image/gif",
@@ -843,19 +844,19 @@ var Z = n({
843
844
  "text/plain",
844
845
  "text/markdown",
845
846
  "text/csv"
846
- ], Et = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Q = n({
847
+ ], Dt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Q = n({
847
848
  enabled: d().default(!1),
848
849
  maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
849
- allowedMimeTypes: c(i().regex(j)).optional().default([...Tt]),
850
+ allowedMimeTypes: c(i().regex(M)).optional().default([...Et]),
850
851
  maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
851
852
  maxFilesPerChat: s().int().positive().max(50).optional().default(20)
852
853
  }), $ = n({
853
854
  zeroDataRetention: d().default(!0),
854
855
  disallowPromptTraining: d().default(!0),
855
856
  providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
856
- }), Dt = n({ enabled: d().default(!1) }), Ot = /* @__PURE__ */ function(e) {
857
+ }), Ot = n({ enabled: d().default(!1) }), kt = /* @__PURE__ */ function(e) {
857
858
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
858
- }({}), kt = n({ mode: u(Ot).default(Ot.Off) }), At = n({
859
+ }({}), At = n({ mode: u(kt).default(kt.Off) }), jt = n({
859
860
  enabled: d().default(!1),
860
861
  voiceId: i().optional(),
861
862
  language: i().min(2).max(5).default("it"),
@@ -874,40 +875,40 @@ var Z = n({
874
875
  providerAgentId: i().optional(),
875
876
  providerSecretId: i().optional(),
876
877
  providerApiKeyId: i().optional()
877
- }), jt = n({ enabled: d() });
878
+ }), Mt = n({ enabled: d() });
878
879
  n({
879
880
  chatId: i().min(1).optional(),
880
- deviceContext: le.optional(),
881
+ deviceContext: O.optional(),
881
882
  externalContext: h(i(), t()).optional()
882
883
  });
883
- var Mt = n({
884
+ var Nt = n({
884
885
  sessionId: i(),
885
886
  signedUrl: i(),
886
887
  providerAgentId: i(),
887
888
  chatId: i(),
888
889
  maxSessionSeconds: s().int()
889
- }), Nt = n({
890
+ }), Pt = n({
890
891
  voiceId: i(),
891
892
  name: i(),
892
893
  category: i().optional(),
893
894
  previewUrl: i().optional(),
894
895
  labels: h(i(), i()).optional()
895
896
  });
896
- c(Nt);
897
- var Pt = n({
898
- model: yt,
897
+ c(Pt);
898
+ var Ft = n({
899
+ model: bt,
899
900
  interface: Z,
900
- tools: vt.optional().default(() => vt.parse({})),
901
+ tools: yt.optional().default(() => yt.parse({})),
901
902
  fileUpload: Q.optional().default(() => Q.parse({})),
902
903
  gatewayOptions: $.optional().default(() => $.parse({})),
903
- channels: c(u(X)).optional().default(() => [...St]),
904
+ channels: c(u(X)).optional().default(() => [...Ct]),
904
905
  externalContextSchema: re.optional(),
905
- openaiApi: Dt.optional().default(() => Dt.parse({})),
906
- voice: At.optional().default(() => At.parse({})),
907
- toolWorkingSet: kt.optional().default(() => kt.parse({})),
906
+ openaiApi: Ot.optional().default(() => Ot.parse({})),
907
+ voice: jt.optional().default(() => jt.parse({})),
908
+ toolWorkingSet: At.optional().default(() => At.parse({})),
908
909
  hostTools: pe.optional(),
909
- pageAccess: xe.optional()
910
- }), Ft = n({
910
+ pageAccess: j.optional()
911
+ }), It = n({
911
912
  rateLimits: n({
912
913
  minuteRateLimit: s().int().min(0).optional(),
913
914
  hourRateLimit: s().int().min(0).optional(),
@@ -924,8 +925,8 @@ n({
924
925
  fallbackModels: c(i()).default([]),
925
926
  status: u(I).default(I.Draft),
926
927
  visibility: u(L).default(L.Organization),
927
- settings: Pt,
928
- security: Ft.nullish(),
928
+ settings: Ft,
929
+ security: It.nullish(),
929
930
  type: u(R).default(R.Chat),
930
931
  organizationId: i()
931
932
  }), o(() => n({
@@ -936,8 +937,8 @@ n({
936
937
  fallbackModels: c(i()).nullable().default([]),
937
938
  status: u(I).default(I.Draft),
938
939
  visibility: u(L).default(L.Organization),
939
- settings: Pt,
940
- security: Ft.nullable(),
940
+ settings: Ft,
941
+ security: It.nullable(),
941
942
  type: u(R).default(R.Chat),
942
943
  organizationId: i(),
943
944
  createdAt: f(),
@@ -950,7 +951,7 @@ n({
950
951
  outOfBudget: d().optional().default(!1),
951
952
  outOfBudgetReason: i().optional().default("")
952
953
  }));
953
- var It = n({
954
+ var Lt = n({
954
955
  id: i(),
955
956
  name: i(),
956
957
  status: u(I),
@@ -961,12 +962,12 @@ var It = n({
961
962
  updatedAt: f(),
962
963
  capabilities: n({
963
964
  fileUpload: Q,
964
- voice: jt,
965
+ voice: Mt,
965
966
  hostTools: me.optional(),
966
- pageAccess: Ce.optional()
967
+ pageAccess: Se.optional()
967
968
  }),
968
- channels: c(u(X)).default(() => [...St])
969
- }), Lt = Z.pick({
969
+ channels: c(u(X)).default(() => [...Ct])
970
+ }), Rt = Z.pick({
970
971
  logo: !0,
971
972
  mainColor: !0,
972
973
  textColor: !0,
@@ -977,41 +978,41 @@ var It = n({
977
978
  hideFloatingButton: !0,
978
979
  copilotPageCss: !0,
979
980
  customCss: !0
980
- }), Rt = It.pick({
981
+ }), zt = Lt.pick({
981
982
  id: !0,
982
983
  name: !0,
983
984
  organizationId: !0
984
- }).extend({ interface: Lt }), zt = n({
985
+ }).extend({ interface: Rt }), Bt = n({
985
986
  emailPassword: d(),
986
987
  google: d(),
987
988
  microsoft: d()
988
- }), Bt = n({
989
+ }), Vt = n({
989
990
  requiresAuth: l(!1),
990
- agent: It,
991
+ agent: Lt,
991
992
  branding: r()
992
- }), Vt = n({
993
+ }), Ht = n({
993
994
  requiresAuth: l(!0),
994
995
  agent: r(),
995
- branding: Rt
996
+ branding: zt
996
997
  });
997
- p("requiresAuth", [Bt, Vt]);
998
- var Ht = n({
998
+ p("requiresAuth", [Vt, Ht]);
999
+ var Ut = n({
999
1000
  frontendUrl: i().optional(),
1000
1001
  telemetry: n({
1001
1002
  environment: i(),
1002
1003
  samplingRate: s().min(0).max(1)
1003
1004
  }).nullable()
1004
- }), Ut = n({
1005
- authMethods: zt,
1006
- deploymentBranding: se.nullish(),
1007
- deployment: Ht.optional()
1005
+ }), Wt = n({
1006
+ authMethods: Bt,
1007
+ deploymentBranding: ce.nullish(),
1008
+ deployment: Ut.optional()
1008
1009
  });
1009
- p("requiresAuth", [Bt.extend(Ut.shape), Vt.extend(Ut.shape)]), n({
1010
+ p("requiresAuth", [Vt.extend(Wt.shape), Ht.extend(Wt.shape)]), n({
1010
1011
  id: m(),
1011
1012
  limited: d(),
1012
1013
  agentIds: c(m())
1013
1014
  });
1014
- var Wt = n({
1015
+ var Gt = n({
1015
1016
  userId: m(),
1016
1017
  name: i(),
1017
1018
  email: i(),
@@ -1022,7 +1023,7 @@ var Wt = n({
1022
1023
  });
1023
1024
  n({
1024
1025
  id: m(),
1025
- members: c(Wt)
1026
+ members: c(Gt)
1026
1027
  }), n({
1027
1028
  id: m(),
1028
1029
  userIds: c(m())
@@ -1044,6 +1045,6 @@ n({
1044
1045
  ..._.ids()
1045
1046
  });
1046
1047
  //#endregion
1047
- export { _e as A, Oe as C, Se as D, A as E, g as F, _ as I, ge as M, he as N, be as O, le as P, Ne as S, Ee as T, nt as _, Qe as a, wt as b, Y as c, Et as d, tt as f, ut as g, Mt as h, K as i, ue as j, ye as k, J as l, at as m, W as n, z as o, rt as p, $ as r, G as s, et as t, $e as u, it as v, De as w, j as x, st as y };
1048
+ export { ye as A, ke as C, A as D, Ce as E, O as F, g as I, _ as L, ue as M, ge as N, xe as O, he as P, Pe as S, De as T, it as _, et as a, Tt as b, Y as c, Dt as d, rt as f, dt as g, Nt as h, K as i, _e as j, be as k, J as l, st as m, U as n, z as o, at as p, $ as r, G as s, nt as t, tt as u, ot as v, Oe as w, M as x, lt as y };
1048
1049
 
1049
- //# sourceMappingURL=Agent-C3m0UmlL.js.map
1050
+ //# sourceMappingURL=Agent-BuPgJIt4.js.map