@8wave/ai-elements 0.121.0-beta.52 → 0.121.0-beta.53

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 (116) hide show
  1. package/dist/_chunks/{Agent-CtLgGLbV.js → Agent-BdoXh8b0.js} +252 -250
  2. package/dist/_chunks/Agent-BdoXh8b0.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js → PkStreamingMarkdown-CR-xBRG2.js} +3 -3
  4. package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js.map → PkStreamingMarkdown-CR-xBRG2.js.map} +1 -1
  5. package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js → PkToolEditedFile-DAMPjKIn.js} +2 -2
  6. package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js.map → PkToolEditedFile-DAMPjKIn.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js → PkToolRequestGeolocation-BantUie4.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js.map → PkToolRequestGeolocation-BantUie4.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js → PkToolRequestOAuthConnection-CB5ziPOE.js} +2 -2
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js.map → PkToolRequestOAuthConnection-CB5ziPOE.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js → PkToolShowArtifact-B1J7a3o0.js} +2 -2
  12. package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js.map → PkToolShowArtifact-B1J7a3o0.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js → PkToolShowContactForm-DcNMM-j0.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js.map → PkToolShowContactForm-DcNMM-j0.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js → PkToolShowForm-CRa9HLZo.js} +3 -3
  16. package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js.map → PkToolShowForm-CRa9HLZo.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js → PkToolShowImageGallery-BisEror8.js} +2 -2
  18. package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js.map → PkToolShowImageGallery-BisEror8.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js → PkToolShowProductList-BmPdjUSS.js} +2 -2
  20. package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js.map → PkToolShowProductList-BmPdjUSS.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowSources-K-cNd52t.js → PkToolShowSources-LQ0DMKM1.js} +3 -3
  22. package/dist/_chunks/{PkToolShowSources-K-cNd52t.js.map → PkToolShowSources-LQ0DMKM1.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js → PkToolShowSuggestedReply-lzs6-CcI.js} +2 -2
  24. package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js.map → PkToolShowSuggestedReply-lzs6-CcI.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js → PkToolShowVideo-BPYYn43O.js} +2 -2
  26. package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js.map → PkToolShowVideo-BPYYn43O.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js → PkToolShowWebPages-CbE_bnHt.js} +2 -2
  28. package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js.map → PkToolShowWebPages-CbE_bnHt.js.map} +1 -1
  29. package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js → chatImagePolicy-CZeGEXvB.js} +2 -2
  30. package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js.map → chatImagePolicy-CZeGEXvB.js.map} +1 -1
  31. package/dist/_chunks/{markdown-B_eDHV3T.js → markdown-DtRRqlac.js} +2 -2
  32. package/dist/_chunks/{markdown-B_eDHV3T.js.map → markdown-DtRRqlac.js.map} +1 -1
  33. package/dist/ai-elements.es.js +19 -17
  34. package/dist/ai-elements.es.js.map +1 -1
  35. package/dist-vue/PkChatbot.js +1 -1
  36. package/dist-vue/PkChatbotEmptyState.js +1 -1
  37. package/dist-vue/PkChatbotInput.js +1 -1
  38. package/dist-vue/PkChatbotMessages.js +1 -1
  39. package/dist-vue/PkChatbotStepPayload.js +1 -1
  40. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  41. package/dist-vue/PkChatbotSteps.js +1 -1
  42. package/dist-vue/PkChatbotViewChat.js +1 -1
  43. package/dist-vue/PkChatbotViewConversations.js +1 -1
  44. package/dist-vue/PkChatbotViewFiles.js +1 -1
  45. package/dist-vue/PkChatbotViewProfile.js +1 -1
  46. package/dist-vue/_chunks/{Agent-BlWzW8Mg.js → Agent-B-jQOrER.js} +133 -131
  47. package/dist-vue/_chunks/Agent-B-jQOrER.js.map +1 -0
  48. package/dist-vue/_chunks/{Document-vkNbPo_T.js → Document-DQtliJu6.js} +2 -2
  49. package/dist-vue/_chunks/{Document-vkNbPo_T.js.map → Document-DQtliJu6.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js → PkChatbot-DKBnpYB0.js} +8 -8
  51. package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js.map → PkChatbot-DKBnpYB0.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js → PkChatbotEmptyState-CFCbJSjm.js} +2 -2
  53. package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js.map → PkChatbotEmptyState-CFCbJSjm.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js → PkChatbotInput-fte_uZHV.js} +2 -2
  55. package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js.map → PkChatbotInput-fte_uZHV.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkChatbotMessages-Ce7BtcBf.js → PkChatbotMessages-BVzOnfjU.js} +20 -18
  57. package/dist-vue/_chunks/PkChatbotMessages-BVzOnfjU.js.map +1 -0
  58. package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js → PkChatbotStepPayload-CgwZs9AM.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js.map → PkChatbotStepPayload-CgwZs9AM.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js → PkChatbotStepToolDetail-BOylJhFM.js} +3 -3
  61. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js.map → PkChatbotStepToolDetail-BOylJhFM.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js → PkChatbotSteps-Cmi5TBZM.js} +5 -5
  63. package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js.map → PkChatbotSteps-Cmi5TBZM.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js → PkChatbotViewChat-DuHSW8TF.js} +7 -7
  65. package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js.map → PkChatbotViewChat-DuHSW8TF.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js → PkChatbotViewConversations-Bf9oJIdi.js} +3 -3
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js.map → PkChatbotViewConversations-Bf9oJIdi.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js → PkChatbotViewFiles-B6R1ixAl.js} +3 -3
  69. package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js.map → PkChatbotViewFiles-B6R1ixAl.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js → PkChatbotViewProfile-x0oUCbeL.js} +2 -2
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js.map → PkChatbotViewProfile-x0oUCbeL.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js → PkStreamingMarkdown-BrBeaJes.js} +3 -3
  73. package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js.map → PkStreamingMarkdown-BrBeaJes.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js → PkToolEditedFile-BKyMjgs0.js} +2 -2
  75. package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js.map → PkToolEditedFile-BKyMjgs0.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js → PkToolRequestGeolocation-CY-NC6Rc.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js.map → PkToolRequestGeolocation-CY-NC6Rc.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js → PkToolRequestOAuthConnection-RkbnKSde.js} +2 -2
  79. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js.map → PkToolRequestOAuthConnection-RkbnKSde.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js → PkToolShowArtifact-BvvVHrP-.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js.map → PkToolShowArtifact-BvvVHrP-.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js → PkToolShowContactForm-Dz_IiYr1.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js.map → PkToolShowContactForm-Dz_IiYr1.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js → PkToolShowDiagram-DCSfCzrN.js} +2 -2
  85. package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js.map → PkToolShowDiagram-DCSfCzrN.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js → PkToolShowForm-qMBAEKxf.js} +4 -4
  87. package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js.map → PkToolShowForm-qMBAEKxf.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js → PkToolShowImageGallery-DWwUnIDq.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js.map → PkToolShowImageGallery-DWwUnIDq.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js → PkToolShowProductList-DreWhhfK.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js.map → PkToolShowProductList-DreWhhfK.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js → PkToolShowSources-DR-uaXeX.js} +3 -3
  93. package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js.map → PkToolShowSources-DR-uaXeX.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js → PkToolShowSuggestedReply-CThFJVUq.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js.map → PkToolShowSuggestedReply-CThFJVUq.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js → PkToolShowVideo-Xogv8wVt.js} +2 -2
  97. package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js.map → PkToolShowVideo-Xogv8wVt.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js → PkToolShowWebPages-BHTyFyDI.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js.map → PkToolShowWebPages-BHTyFyDI.js.map} +1 -1
  100. package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js → createChatbotApiClient-B3U31J_K.js} +2 -2
  101. package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js.map → createChatbotApiClient-B3U31J_K.js.map} +1 -1
  102. package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js → useChatbotStore-D2L4m3iJ.js} +3 -3
  103. package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js.map → useChatbotStore-D2L4m3iJ.js.map} +1 -1
  104. package/dist-vue/_chunks/{utils-BpnTWYko.js → utils-Df_SeBdX.js} +2 -2
  105. package/dist-vue/_chunks/{utils-BpnTWYko.js.map → utils-Df_SeBdX.js.map} +1 -1
  106. package/dist-vue/api.js +1 -1
  107. package/dist-vue/composables.js +4 -4
  108. package/dist-vue/index.js +24 -24
  109. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -0
  110. package/dist-vue/packages/models/src/schema/Agent.d.ts +55 -0
  111. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +12 -0
  112. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +12 -0
  113. package/package.json +1 -1
  114. package/dist/_chunks/Agent-CtLgGLbV.js.map +0 -1
  115. package/dist-vue/_chunks/Agent-BlWzW8Mg.js.map +0 -1
  116. package/dist-vue/_chunks/PkChatbotMessages-Ce7BtcBf.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
- }), se = n({
54
+ }), C = 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
- }), C = n({
60
+ }), w = 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: se,
71
- text: C
70
+ assets: C,
71
+ text: w
72
72
  }).extend({ version: i() });
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({
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({
77
77
  colors: y.nullish(),
78
78
  mode: u(b).nullish(),
79
- assets: w.nullish(),
80
- text: T.nullish()
79
+ assets: T.nullish(),
80
+ text: E.nullish()
81
81
  });
82
82
  n({
83
- patch: le,
83
+ patch: ce,
84
84
  revision: i().min(1).max(64)
85
85
  });
86
- var E = (e) => e.optional().catch(void 0);
86
+ var D = (e) => e.optional().catch(void 0);
87
87
  n({
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)
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)
96
96
  }).nullable()),
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)
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)
103
103
  }).nullable())
104
- }), D({
105
- ...D({
104
+ }), O({
105
+ ...O({
106
106
  colors: {
107
107
  light: {
108
108
  brand: "#140e33",
@@ -139,15 +139,15 @@ n({
139
139
  companyName: null
140
140
  }
141
141
  });
142
- function D(e) {
142
+ function O(e) {
143
143
  if (e && typeof e == "object") {
144
- for (let t of Object.values(e)) D(t);
144
+ for (let t of Object.values(e)) O(t);
145
145
  Object.freeze(e);
146
146
  }
147
147
  return e;
148
148
  }
149
149
  // ../../packages/models/src/schema/DeviceContext.ts
150
- var O = n({
150
+ var le = n({
151
151
  dateTime: i().optional(),
152
152
  timezone: i().optional(),
153
153
  language: i().optional(),
@@ -229,7 +229,7 @@ function be(e) {
229
229
  return !1;
230
230
  }
231
231
  }
232
- var j = n({
232
+ var xe = n({
233
233
  level: u(A).default(A.Off),
234
234
  excludeSelectors: c(i().max(200).refine(be, "Not a valid CSS selector")).max(50).default([]),
235
235
  confirmEveryAction: d().default(!1),
@@ -237,19 +237,19 @@ var j = n({
237
237
  acknowledgedBy: i().optional(),
238
238
  acknowledgedAt: f().optional(),
239
239
  acknowledgedLevel: u(A).optional()
240
- }), xe = (e) => e.startsWith("page_") || e.startsWith("form_"), Se = j.pick({
240
+ }), Se = (e) => e.startsWith("page_") || e.startsWith("form_"), Ce = xe.pick({
241
241
  level: !0,
242
242
  excludeSelectors: !0,
243
243
  confirmEveryAction: !0,
244
244
  notice: !0
245
- }), Ce = ["fill-fields"];
245
+ }), we = ["fill-fields"];
246
246
  n({
247
247
  version: l(1),
248
248
  forms: c(t()).max(16).default([]),
249
249
  features: c(i().max(40)).max(16).default([])
250
250
  });
251
251
  // ../../packages/models/src/schema/Media.ts
252
- var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
252
+ var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, Te = new Set([
253
253
  [".mp3", "audio/mpeg"],
254
254
  [".m4a", "audio/mp4"],
255
255
  [".m4a", "audio/x-m4a"],
@@ -262,7 +262,7 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
262
262
  [".opus", "audio/ogg"],
263
263
  [".flac", "audio/flac"],
264
264
  [".flac", "audio/x-flac"]
265
- ].map(([e]) => e)), Te = /* @__PURE__ */ new Set([
265
+ ].map(([e]) => e)), Ee = /* @__PURE__ */ new Set([
266
266
  ".amr",
267
267
  ".3ga",
268
268
  ".aif",
@@ -272,10 +272,10 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
272
272
  ".mka",
273
273
  ".weba",
274
274
  ".wma"
275
- ]), Ee = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", De = (e, t) => {
276
- let n = He(e ?? "");
277
- return Ee(t).startsWith("audio/") || we.has(n) || Te.has(n);
278
- }, N = [
275
+ ]), De = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Oe = (e, t) => {
276
+ let n = Ue(e ?? "");
277
+ return De(t).startsWith("audio/") || Te.has(n) || Ee.has(n);
278
+ }, M = [
279
279
  {
280
280
  extensions: [".html", ".htm"],
281
281
  mimeType: "text/html",
@@ -429,16 +429,16 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
429
429
  ]
430
430
  }
431
431
  ];
432
- N.map((e) => e.mimeType);
433
- var Oe = (e) => N.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), ke = (e, t) => {
432
+ M.map((e) => e.mimeType);
433
+ var ke = (e) => M.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Ae = (e, t) => {
434
434
  if (t.length === 0) return !0;
435
- let n = N.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
435
+ let n = M.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
436
436
  "",
437
437
  "application/octet-stream",
438
438
  "text/plain",
439
439
  ...n.flatMap((e) => e.aliases)
440
440
  ] : []);
441
- return e.length > 0 && e.every((e) => r.has(Ee(e)) || t.some((t) => e.includes(t)));
441
+ return e.length > 0 && e.every((e) => r.has(De(e)) || t.some((t) => e.includes(t)));
442
442
  };
443
443
  n({
444
444
  status: u([
@@ -452,47 +452,47 @@ n({
452
452
  durationSeconds: s().optional(),
453
453
  model: i().optional()
454
454
  });
455
- var Ae = /* @__PURE__ */ function(e) {
455
+ var je = /* @__PURE__ */ function(e) {
456
456
  return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
457
- }({}), je = n({
457
+ }({}), Me = n({
458
458
  type: l("azure-blob"),
459
459
  blobUri: e(),
460
460
  containerName: i().min(1),
461
461
  pathRelativeToContainer: i().min(1)
462
- }), Me = n({
462
+ }), Ne = n({
463
463
  type: l("s3"),
464
464
  bucket: i().min(1),
465
465
  key: i().min(1),
466
466
  region: i().min(1)
467
- }), Ne = p("type", [je, Me]), P = n({
467
+ }), Pe = p("type", [Me, Ne]), N = n({
468
468
  type: i().min(1),
469
469
  name: i().min(1),
470
- mimeType: i().regex(M),
470
+ mimeType: i().regex(j),
471
471
  bytesCount: s().positive(),
472
472
  extension: i().regex(/^\.[a-zA-Z0-9]+$/).overwrite((e) => e.toLowerCase()),
473
473
  storedFileName: i().optional(),
474
474
  metadata: h(i(), i()).default({}),
475
475
  tags: h(i(), i()).default({})
476
476
  }).extend({
477
- storageHandle: Ne,
478
- storagePolicy: u(Ae),
477
+ storageHandle: Pe,
478
+ storagePolicy: u(je),
479
479
  signData: i().optional(),
480
480
  storedFileName: i().min(1)
481
- }), Pe = n({
481
+ }), Fe = n({
482
482
  name: i().min(1),
483
- src: P,
484
- srcSet: c(P).default([]),
483
+ src: N,
484
+ srcSet: c(N).default([]),
485
485
  rawOptions: ee().optional()
486
486
  });
487
487
  n({
488
- src: P,
488
+ src: N,
489
489
  uploadHandle: n({
490
490
  uploadSasuri: e(),
491
491
  metadata: h(i(), i()).default({}),
492
492
  tags: h(i(), i()).default({})
493
493
  })
494
494
  }), n({
495
- src: P,
495
+ src: N,
496
496
  downloadHandle: n({
497
497
  downloadSasuri: e(),
498
498
  viewSasuri: e(),
@@ -501,200 +501,200 @@ n({
501
501
  type: i()
502
502
  })
503
503
  });
504
- var F = /* @__PURE__ */ function(e) {
504
+ var P = /* @__PURE__ */ function(e) {
505
505
  return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
506
- }({}), Fe = n({
507
- type: l(F.picture),
506
+ }({}), Ie = n({
507
+ type: l(P.picture),
508
508
  width: s().positive(),
509
509
  height: s().positive(),
510
510
  blurhash: i().optional()
511
- }), Ie = n({
512
- type: l(F.video),
511
+ }), Le = n({
512
+ type: l(P.video),
513
513
  width: s().positive(),
514
514
  height: s().positive(),
515
515
  duration: s().nonnegative()
516
- }), Le = n({
517
- type: l(F.audio),
516
+ }), Re = n({
517
+ type: l(P.audio),
518
518
  duration: s().nonnegative()
519
- }), Re = n({ type: l(F.office) }), ze = n({ type: l(F.archive) }), Be = n({ type: l(F.binary) }), Ve = n({ type: l(F.executable) });
519
+ }), ze = n({ type: l(P.office) }), Be = n({ type: l(P.archive) }), Ve = n({ type: l(P.binary) }), He = n({ type: l(P.executable) });
520
520
  p("type", [
521
- Fe,
522
521
  Ie,
523
522
  Le,
524
523
  Re,
525
524
  ze,
526
525
  Be,
527
- Ve
526
+ Ve,
527
+ He
528
528
  ]);
529
- var He = (e) => {
529
+ var Ue = (e) => {
530
530
  let t = e.lastIndexOf(".");
531
531
  return t === -1 ? "" : e.slice(t).toLowerCase();
532
- }, I = /* @__PURE__ */ function(e) {
532
+ }, F = /* @__PURE__ */ function(e) {
533
533
  return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
534
- }({}), L = /* @__PURE__ */ function(e) {
534
+ }({}), I = /* @__PURE__ */ function(e) {
535
535
  return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
536
536
  }({});
537
- L.Organization, L.Restricted;
538
- var R = /* @__PURE__ */ function(e) {
537
+ I.Organization, I.Restricted;
538
+ var L = /* @__PURE__ */ function(e) {
539
539
  return e.Chat = "chat", e.Reasoning = "reasoning", e;
540
- }({}), z = /* @__PURE__ */ function(e) {
540
+ }({}), R = /* @__PURE__ */ function(e) {
541
541
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
542
- }({}), Ue = [
542
+ }({}), We = [
543
543
  "none",
544
544
  "low",
545
545
  "medium",
546
546
  "high",
547
547
  "xhigh",
548
548
  "max"
549
- ], We = [
549
+ ], Ge = [
550
550
  "low",
551
551
  "medium",
552
552
  "high",
553
553
  "xhigh",
554
554
  "max"
555
- ], Ge = [
555
+ ], Ke = [
556
556
  "minimal",
557
557
  "low",
558
558
  "medium",
559
559
  "high"
560
- ], Ke = [
560
+ ], qe = [
561
561
  "auto",
562
562
  "detailed",
563
563
  "concise"
564
- ], qe = n({
565
- reasoningEffort: u(Ue).optional(),
566
- reasoningSummary: u(Ke).optional()
567
- }), Je = n({
564
+ ], Je = n({
565
+ reasoningEffort: u(We).optional(),
566
+ reasoningSummary: u(qe).optional()
567
+ }), Ye = n({
568
568
  type: u([
569
569
  "adaptive",
570
570
  "enabled",
571
571
  "disabled"
572
572
  ]).optional(),
573
- effort: u(We).optional(),
573
+ effort: u(Ge).optional(),
574
574
  display: u(["summarized", "omitted"]).optional(),
575
575
  budgetTokens: s().int().positive().optional()
576
- }), Ye = n({
577
- thinkingLevel: u(Ge).optional(),
576
+ }), Xe = n({
577
+ thinkingLevel: u(Ke).optional(),
578
578
  thinkingBudget: s().int().optional(),
579
579
  includeThoughts: d().optional()
580
- }), Xe = n({ type: u(["enabled", "disabled"]).optional() }), B = [
580
+ }), Ze = n({ type: u(["enabled", "disabled"]).optional() }), z = [
581
581
  "alibaba",
582
582
  "meta",
583
583
  "moonshotai",
584
584
  "spacexai",
585
585
  "xiaomi",
586
586
  "zai"
587
- ], Ze = [
587
+ ], Qe = [
588
588
  "none",
589
589
  "minimal",
590
590
  "low",
591
591
  "medium",
592
592
  "high",
593
593
  "xhigh"
594
- ], V = n({ reasoningEffort: u(Ze).optional() });
595
- function H(e, t) {
594
+ ], B = n({ reasoningEffort: u(Qe).optional() });
595
+ function V(e, t) {
596
596
  return e && t.includes(e) ? e : void 0;
597
597
  }
598
- var Qe = n({
599
- openai: qe.optional(),
600
- anthropic: Je.optional(),
601
- google: Ye.optional(),
602
- deepseek: Xe.optional(),
603
- alibaba: V.optional(),
604
- meta: V.optional(),
605
- moonshotai: V.optional(),
606
- spacexai: V.optional(),
607
- xiaomi: V.optional(),
608
- zai: V.optional()
598
+ var $e = n({
599
+ openai: Je.optional(),
600
+ anthropic: Ye.optional(),
601
+ google: Xe.optional(),
602
+ deepseek: Ze.optional(),
603
+ alibaba: B.optional(),
604
+ meta: B.optional(),
605
+ moonshotai: B.optional(),
606
+ spacexai: B.optional(),
607
+ xiaomi: B.optional(),
608
+ zai: B.optional()
609
609
  });
610
- function $e(e) {
610
+ function et(e) {
611
611
  if (!e || typeof e != "object") return e;
612
612
  let t = e, n = [
613
613
  "openai",
614
614
  "anthropic",
615
615
  "google",
616
616
  "deepseek",
617
- ...B
617
+ ...z
618
618
  ].some((e) => e in t);
619
619
  if ("effort" in t && !n) {
620
620
  let e = t.effort, n = t.reasoningSummary, r = {};
621
621
  if (e && e !== "off" && e !== "none") {
622
- let t = H(e, Ue), i = H(n, Ke);
622
+ let t = V(e, We), i = V(n, qe);
623
623
  (t || i) && (r.openai = {
624
624
  ...t && { reasoningEffort: t },
625
625
  ...i && { reasoningSummary: i }
626
626
  });
627
- let a = H(e, We);
627
+ let a = V(e, Ge);
628
628
  a && (r.anthropic = {
629
629
  type: "adaptive",
630
630
  effort: a
631
631
  });
632
- let o = H(e === "xhigh" || e === "max" ? "high" : e, Ge);
632
+ let o = V(e === "xhigh" || e === "max" ? "high" : e, Ke);
633
633
  o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
634
- let s = H(e === "max" ? "xhigh" : e, Ze);
635
- if (s) for (let e of B) r[e] = { reasoningEffort: s };
634
+ let s = V(e === "max" ? "xhigh" : e, Qe);
635
+ if (s) for (let e of z) r[e] = { reasoningEffort: s };
636
636
  } else {
637
637
  r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
638
- for (let e of B) r[e] = { reasoningEffort: "none" };
638
+ for (let e of z) r[e] = { reasoningEffort: "none" };
639
639
  }
640
640
  return r;
641
641
  }
642
642
  return e;
643
643
  }
644
- var et = g(t(), Qe, $e).optional(), U = /* @__PURE__ */ function(e) {
645
- 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.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;
646
- }({}), tt = "mcp-", nt = "api-", rt = "subagent-";
647
- function it(e) {
648
- 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;
644
+ var tt = g(t(), $e, et).optional(), H = /* @__PURE__ */ function(e) {
645
+ 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.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;
646
+ }({}), nt = "mcp-", rt = "api-", it = "subagent-";
647
+ function at(e) {
648
+ 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;
649
649
  }
650
- 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;
651
- var at = /* @__PURE__ */ new Set([
652
- U.RequestConfirm,
653
- U.RequestGeolocation,
654
- U.ShowForm,
655
- U.ShowMultipleChoice,
650
+ H.RequestConfirm, H.ShowArtifact, H.ShowWeather, H.ShowLocation, H.ShowComparison, H.ShowProductList, H.ShowWebPages, H.ShowImageGallery, H.ShowVideo, H.ShowSources, H.ShowSuggestedReply, H.ShowCalendarEvent, H.ShowEmail, H.ShowMessage, H.ShowForm, H.ShareDocument;
651
+ var ot = /* @__PURE__ */ new Set([
652
+ H.RequestConfirm,
653
+ H.RequestGeolocation,
654
+ H.ShowForm,
655
+ H.ShowMultipleChoice,
656
656
  "requestOAuthConnection"
657
657
  ]);
658
- function ot(e) {
659
- return at.has(e);
658
+ function st(e) {
659
+ return ot.has(e);
660
660
  }
661
- var st = /* @__PURE__ */ new Set([
662
- U.RequestConfirm,
663
- U.RequestGeolocation,
664
- U.ShowArtifact,
665
- U.ShowCalendarEvent,
666
- U.ShowContactForm,
667
- U.ShowComparison,
668
- U.ShowDiagram,
669
- U.ShowEmail,
670
- U.ShowForm,
671
- U.ShowImageGallery,
672
- U.ShowLocation,
673
- U.ShowMessage,
674
- U.ShowMultipleChoice,
675
- U.ShowProductList,
676
- U.ShowQrCode,
677
- U.ShowSources,
678
- U.ShowSuggestedReply,
679
- U.ShowVideo,
680
- U.ShowWeather,
681
- U.ShowWebPages
682
- ]), ct = "Shown on the caller's screen";
683
- function lt(e) {
684
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(ct));
661
+ var ct = /* @__PURE__ */ new Set([
662
+ H.RequestConfirm,
663
+ H.RequestGeolocation,
664
+ H.ShowArtifact,
665
+ H.ShowCalendarEvent,
666
+ H.ShowContactForm,
667
+ H.ShowComparison,
668
+ H.ShowDiagram,
669
+ H.ShowEmail,
670
+ H.ShowForm,
671
+ H.ShowImageGallery,
672
+ H.ShowLocation,
673
+ H.ShowMessage,
674
+ H.ShowMultipleChoice,
675
+ H.ShowProductList,
676
+ H.ShowQrCode,
677
+ H.ShowSources,
678
+ H.ShowSuggestedReply,
679
+ H.ShowVideo,
680
+ H.ShowWeather,
681
+ H.ShowWebPages
682
+ ]), lt = "Shown on the caller's screen";
683
+ function ut(e) {
684
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(lt));
685
685
  }
686
- var W = n({
686
+ var dt = n({
687
687
  maxSteps: s().int().min(1).max(10).optional().default(5),
688
688
  maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
689
- }), ut = /* @__PURE__ */ function(e) {
689
+ }), ft = /* @__PURE__ */ function(e) {
690
690
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
691
- }({}), dt = [
691
+ }({}), pt = [
692
692
  "perplexity_search",
693
693
  "parallel_search",
694
694
  "web_search",
695
695
  "openai_web_search",
696
696
  "google_search"
697
- ], ft = n({
697
+ ], mt = n({
698
698
  maxResults: s().int().min(1).max(20).optional(),
699
699
  maxTokens: s().int().positive().max(1e6).optional(),
700
700
  maxTokensPerPage: s().int().positive().optional(),
@@ -707,7 +707,7 @@ var W = n({
707
707
  "month",
708
708
  "year"
709
709
  ]).optional()
710
- }), pt = n({
710
+ }), ht = n({
711
711
  mode: u(["one-shot", "agentic"]).optional(),
712
712
  maxResults: s().int().min(1).max(20).optional(),
713
713
  sourcePolicy: n({
@@ -720,7 +720,7 @@ var W = n({
720
720
  maxCharsTotal: s().int().positive().optional()
721
721
  }).optional(),
722
722
  fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
723
- }), mt = n({
723
+ }), gt = n({
724
724
  openai: n({}).optional(),
725
725
  anthropic: n({
726
726
  maxUses: s().int().positive().optional(),
@@ -735,27 +735,29 @@ var W = n({
735
735
  }).optional()
736
736
  }).optional(),
737
737
  google: n({}).optional()
738
- }), G = n({
738
+ }), U = n({
739
739
  enabled: d().default(!1),
740
- provider: u(ut).optional().default(ut.Native),
741
- perplexity: ft.optional(),
742
- parallel: pt.optional(),
743
- native: mt.optional()
744
- }), 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({
745
- disabled: c(u(U)).default([
746
- U.UserMemory,
747
- U.SearchInUserFiles,
748
- U.RunWorker,
749
- U.FetchTeamsChannelHistory,
750
- U.ScheduleWakeup
740
+ provider: u(ft).optional().default(ft.Native),
741
+ perplexity: mt.optional(),
742
+ parallel: ht.optional(),
743
+ native: gt.optional()
744
+ }), _t = n({ useAllUserKb: d().default(!1) }), vt = n({ useAllUserFiles: d().default(!1) }), yt = n({ enabled: d().default(!1) }), W = n({ enabled: d().default(!1) }), bt = n({ tools: c(i()).default([]) }), xt = n({
745
+ disabled: c(u(H)).default([
746
+ H.UserMemory,
747
+ H.SearchInUserFiles,
748
+ H.RunWorker,
749
+ H.FetchTeamsChannelHistory,
750
+ H.ScheduleWakeup
751
751
  ]),
752
- showForm: W.optional().default(() => W.parse({})),
753
- webSearch: G.optional().default(() => G.parse({})),
754
- userMemory: ht.optional().default(() => ht.parse({})),
755
- userFiles: gt.optional().default(() => gt.parse({})),
756
- shareDocument: _t.optional().default(() => _t.parse({})),
757
- approval: vt.optional().default(() => vt.parse({}))
758
- }), K = n({
752
+ showForm: dt.optional().default(() => dt.parse({})),
753
+ webSearch: U.optional().default(() => U.parse({})),
754
+ userMemory: _t.optional().default(() => _t.parse({})),
755
+ userFiles: vt.optional().default(() => vt.parse({})),
756
+ shareDocument: yt.optional().default(() => yt.parse({})),
757
+ createSpreadsheet: W.optional().default(() => W.parse({})),
758
+ createWordDocument: W.optional().default(() => W.parse({})),
759
+ approval: bt.optional().default(() => bt.parse({}))
760
+ }), G = n({
759
761
  freshness: n({
760
762
  enabled: d().default(!1),
761
763
  scale: s().int().min(86400).max(31536e3).default(7776e3),
@@ -767,27 +769,27 @@ var W = n({
767
769
  diversity: s().min(0).max(1).default(.3),
768
770
  candidatesLimit: s().int().min(20).max(100).default(50)
769
771
  }).prefault({})
770
- }).prefault({}), bt = n({
772
+ }).prefault({}), St = n({
771
773
  prompt: i().optional(),
772
774
  temperature: s().min(0).max(2).optional().default(.6),
773
775
  maxOutputTokens: s().positive().optional(),
774
776
  presencePenalty: s().min(-2).max(2).optional(),
775
777
  frequencyPenalty: s().min(-2).max(2).optional(),
776
- searchMode: u(z).optional().default(z.Balanced),
778
+ searchMode: u(R).optional().default(R.Balanced),
777
779
  limit: s().positive().max(100).optional().default(10),
778
780
  maxStepCount: s().int().min(1).max(40).optional().default(10),
779
- reasoning: et,
780
- ranking: K.optional().default(() => K.parse({}))
781
- }), 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) {
781
+ reasoning: tt,
782
+ ranking: G.optional().default(() => G.parse({}))
783
+ }), K = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Ct = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", wt = /* @__PURE__ */ function(e) {
782
784
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
783
- }({}), J = /* @__PURE__ */ function(e) {
785
+ }({}), q = /* @__PURE__ */ function(e) {
784
786
  return e.Floating = "floating", e.Copilot = "copilot", e;
785
- }({}), Y = /* @__PURE__ */ function(e) {
787
+ }({}), J = /* @__PURE__ */ function(e) {
786
788
  return e.Solid = "solid", e.Glass = "glass", e;
787
- }({}), X = /* @__PURE__ */ function(e) {
789
+ }({}), Y = /* @__PURE__ */ function(e) {
788
790
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
789
- }({}), Ct = Object.values(X), wt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
790
- function Tt(e) {
791
+ }({}), Tt = Object.values(Y), Et = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
792
+ function Dt(e) {
791
793
  let t = e.trim().toLowerCase();
792
794
  if (!t) return "";
793
795
  try {
@@ -796,8 +798,8 @@ function Tt(e) {
796
798
  return t;
797
799
  }
798
800
  }
799
- var Z = n({
800
- media: Pe.optional(),
801
+ var X = n({
802
+ media: Fe.optional(),
801
803
  logo: i().optional(),
802
804
  theme: u([
803
805
  "light",
@@ -811,29 +813,29 @@ var Z = n({
811
813
  "black"
812
814
  ]).optional().default("auto"),
813
815
  useColorsForAgentHeader: d().optional().default(!1),
814
- initialMessage: q.optional(),
815
- greeting: c(q).min(1).max(10).optional(),
816
- messagePlaceholder: q.optional(),
817
- dismissableNotice: q.optional(),
818
- footerMessage: q.optional(),
819
- privacyPolicyNotice: q.optional(),
816
+ initialMessage: K.optional(),
817
+ greeting: c(K).min(1).max(10).optional(),
818
+ messagePlaceholder: K.optional(),
819
+ dismissableNotice: K.optional(),
820
+ footerMessage: K.optional(),
821
+ privacyPolicyNotice: K.optional(),
820
822
  interactiveLogin: d().optional().default(!0),
821
823
  welcomePopup: d().optional().default(!1),
822
824
  floatingButtonPosition: u(["left", "right"]).optional().default("right"),
823
- layout: u(J).optional().default(J.Floating),
824
- appearance: u(Y).optional().default(Y.Solid),
825
+ layout: u(q).optional().default(q.Floating),
826
+ appearance: u(J).optional().default(J.Solid),
825
827
  hideFloatingButton: d().optional().default(!1),
826
828
  workingGlow: d().optional().default(!0),
827
829
  copilotPageCss: i().optional(),
828
830
  maxMessageLength: s().int().positive().optional(),
829
- widgetUrl: e().default(xt),
831
+ widgetUrl: e().default(Ct),
830
832
  loadDelay: s().int().min(0).max(3e4).optional().default(0),
831
- loaderStrategy: u(St).optional().default(St.InlineModule),
833
+ loaderStrategy: u(wt).optional().default(wt.InlineModule),
832
834
  customCss: i().optional(),
833
835
  smoothStream: d().optional().default(!1),
834
836
  showExtendedSteps: d().optional().default(!1),
835
- 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([])
836
- }), Et = [
837
+ imageHosts: c(i().overwrite(Dt).refine((e) => e === "" || Et.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
838
+ }), Ot = [
837
839
  "image/jpeg",
838
840
  "image/png",
839
841
  "image/gif",
@@ -842,19 +844,19 @@ var Z = n({
842
844
  "text/plain",
843
845
  "text/markdown",
844
846
  "text/csv"
845
- ], Dt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Ot = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Q = n({
847
+ ], kt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", At = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Z = n({
846
848
  enabled: d().default(!1),
847
849
  maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
848
- allowedMimeTypes: c(i().regex(M)).optional().default([...Et]),
850
+ allowedMimeTypes: c(i().regex(j)).optional().default([...Ot]),
849
851
  maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
850
852
  maxFilesPerChat: s().int().positive().max(50).optional().default(20)
851
- }), $ = n({
853
+ }), Q = n({
852
854
  zeroDataRetention: d().default(!0),
853
855
  disallowPromptTraining: d().default(!0),
854
856
  providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
855
- }), kt = n({ enabled: d().default(!1) }), At = /* @__PURE__ */ function(e) {
857
+ }), jt = n({ enabled: d().default(!1) }), Mt = /* @__PURE__ */ function(e) {
856
858
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
857
- }({}), jt = n({ mode: u(At).default(At.Off) }), Mt = n({
859
+ }({}), Nt = n({ mode: u(Mt).default(Mt.Off) }), $ = n({
858
860
  enabled: d().default(!1),
859
861
  voiceId: i().optional(),
860
862
  language: i().min(2).max(5).default("it"),
@@ -873,40 +875,40 @@ var Z = n({
873
875
  providerAgentId: i().optional(),
874
876
  providerSecretId: i().optional(),
875
877
  providerApiKeyId: i().optional()
876
- }), Nt = n({ enabled: d() });
878
+ }), Pt = n({ enabled: d() });
877
879
  n({
878
880
  chatId: i().min(1).optional(),
879
- deviceContext: O.optional(),
881
+ deviceContext: le.optional(),
880
882
  externalContext: h(i(), t()).optional()
881
883
  });
882
- var Pt = n({
884
+ var Ft = n({
883
885
  sessionId: i(),
884
886
  signedUrl: i(),
885
887
  providerAgentId: i(),
886
888
  chatId: i(),
887
889
  maxSessionSeconds: s().int()
888
- }), Ft = n({
890
+ }), It = n({
889
891
  voiceId: i(),
890
892
  name: i(),
891
893
  category: i().optional(),
892
894
  previewUrl: i().optional(),
893
895
  labels: h(i(), i()).optional()
894
896
  });
895
- c(Ft);
896
- var It = n({
897
- model: bt,
898
- interface: Z,
899
- tools: yt.optional().default(() => yt.parse({})),
900
- fileUpload: Q.optional().default(() => Q.parse({})),
901
- gatewayOptions: $.optional().default(() => $.parse({})),
902
- channels: c(u(X)).optional().default(() => [...Ct]),
897
+ c(It);
898
+ var Lt = n({
899
+ model: St,
900
+ interface: X,
901
+ tools: xt.optional().default(() => xt.parse({})),
902
+ fileUpload: Z.optional().default(() => Z.parse({})),
903
+ gatewayOptions: Q.optional().default(() => Q.parse({})),
904
+ channels: c(u(Y)).optional().default(() => [...Tt]),
903
905
  externalContextSchema: re.optional(),
904
- openaiApi: kt.optional().default(() => kt.parse({})),
905
- voice: Mt.optional().default(() => Mt.parse({})),
906
- toolWorkingSet: jt.optional().default(() => jt.parse({})),
906
+ openaiApi: jt.optional().default(() => jt.parse({})),
907
+ voice: $.optional().default(() => $.parse({})),
908
+ toolWorkingSet: Nt.optional().default(() => Nt.parse({})),
907
909
  hostTools: pe.optional(),
908
- pageAccess: j.optional()
909
- }), Lt = n({
910
+ pageAccess: xe.optional()
911
+ }), Rt = n({
910
912
  rateLimits: n({
911
913
  minuteRateLimit: s().int().min(0).optional(),
912
914
  hourRateLimit: s().int().min(0).optional(),
@@ -921,11 +923,11 @@ n({
921
923
  prompt: i().optional(),
922
924
  model: i().optional(),
923
925
  fallbackModels: c(i()).default([]),
924
- status: u(I).default(I.Draft),
925
- visibility: u(L).default(L.Organization),
926
- settings: It,
927
- security: Lt.nullish(),
928
- type: u(R).default(R.Chat),
926
+ status: u(F).default(F.Draft),
927
+ visibility: u(I).default(I.Organization),
928
+ settings: Lt,
929
+ security: Rt.nullish(),
930
+ type: u(L).default(L.Chat),
929
931
  organizationId: i()
930
932
  }), o(() => n({
931
933
  id: i(),
@@ -933,11 +935,11 @@ n({
933
935
  prompt: i(),
934
936
  model: i(),
935
937
  fallbackModels: c(i()).nullable().default([]),
936
- status: u(I).default(I.Draft),
937
- visibility: u(L).default(L.Organization),
938
- settings: It,
939
- security: Lt.nullable(),
940
- type: u(R).default(R.Chat),
938
+ status: u(F).default(F.Draft),
939
+ visibility: u(I).default(I.Organization),
940
+ settings: Lt,
941
+ security: Rt.nullable(),
942
+ type: u(L).default(L.Chat),
941
943
  organizationId: i(),
942
944
  createdAt: f(),
943
945
  createdBy: i(),
@@ -949,23 +951,23 @@ n({
949
951
  outOfBudget: d().optional().default(!1),
950
952
  outOfBudgetReason: i().optional().default("")
951
953
  }));
952
- var Rt = n({
954
+ var zt = n({
953
955
  id: i(),
954
956
  name: i(),
955
- status: u(I),
956
- visibility: u(L),
957
+ status: u(F),
958
+ visibility: u(I),
957
959
  organizationId: i(),
958
- interface: Z,
960
+ interface: X,
959
961
  createdAt: f(),
960
962
  updatedAt: f(),
961
963
  capabilities: n({
962
- fileUpload: Q,
963
- voice: Nt,
964
+ fileUpload: Z,
965
+ voice: Pt,
964
966
  hostTools: me.optional(),
965
- pageAccess: Se.optional()
967
+ pageAccess: Ce.optional()
966
968
  }),
967
- channels: c(u(X)).default(() => [...Ct])
968
- }), zt = Z.pick({
969
+ channels: c(u(Y)).default(() => [...Tt])
970
+ }), Bt = X.pick({
969
971
  logo: !0,
970
972
  mainColor: !0,
971
973
  textColor: !0,
@@ -976,41 +978,41 @@ var Rt = n({
976
978
  hideFloatingButton: !0,
977
979
  copilotPageCss: !0,
978
980
  customCss: !0
979
- }), Bt = Rt.pick({
981
+ }), Vt = zt.pick({
980
982
  id: !0,
981
983
  name: !0,
982
984
  organizationId: !0
983
- }).extend({ interface: zt }), Vt = n({
985
+ }).extend({ interface: Bt }), Ht = n({
984
986
  emailPassword: d(),
985
987
  google: d(),
986
988
  microsoft: d()
987
- }), Ht = n({
989
+ }), Ut = n({
988
990
  requiresAuth: l(!1),
989
- agent: Rt,
991
+ agent: zt,
990
992
  branding: r()
991
- }), Ut = n({
993
+ }), Wt = n({
992
994
  requiresAuth: l(!0),
993
995
  agent: r(),
994
- branding: Bt
996
+ branding: Vt
995
997
  });
996
- p("requiresAuth", [Ht, Ut]);
997
- var Wt = n({
998
+ p("requiresAuth", [Ut, Wt]);
999
+ var Gt = n({
998
1000
  frontendUrl: i().optional(),
999
1001
  telemetry: n({
1000
1002
  environment: i(),
1001
1003
  samplingRate: s().min(0).max(1)
1002
1004
  }).nullable()
1003
- }), Gt = n({
1004
- authMethods: Vt,
1005
- deploymentBranding: ce.nullish(),
1006
- deployment: Wt.optional()
1005
+ }), Kt = n({
1006
+ authMethods: Ht,
1007
+ deploymentBranding: se.nullish(),
1008
+ deployment: Gt.optional()
1007
1009
  });
1008
- p("requiresAuth", [Ht.extend(Gt.shape), Ut.extend(Gt.shape)]), n({
1010
+ p("requiresAuth", [Ut.extend(Kt.shape), Wt.extend(Kt.shape)]), n({
1009
1011
  id: m(),
1010
1012
  limited: d(),
1011
1013
  agentIds: c(m())
1012
1014
  });
1013
- var Kt = n({
1015
+ var qt = n({
1014
1016
  userId: m(),
1015
1017
  name: i(),
1016
1018
  email: i(),
@@ -1021,7 +1023,7 @@ var Kt = n({
1021
1023
  });
1022
1024
  n({
1023
1025
  id: m(),
1024
- members: c(Kt)
1026
+ members: c(qt)
1025
1027
  }), n({
1026
1028
  id: m(),
1027
1029
  userIds: c(m())
@@ -1042,6 +1044,6 @@ n({
1042
1044
  ..._.fullText(),
1043
1045
  ..._.ids()
1044
1046
  });
1045
- export { be as A, Pe as C, Ce as D, De as E, he as F, O as I, g as L, _e as M, ue as N, A as O, ge as P, _ as R, M as S, Oe as T, Ot as _, et as a, lt as b, Y as c, Dt as d, rt as f, dt as g, Pt as h, K as i, ye as j, xe 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, it as v, ke as w, Tt as x, ot as y };
1047
+ export { be as A, Fe as C, we as D, Oe as E, he as F, le as I, g as L, _e as M, ue as N, A as O, ge as P, _ as R, j as S, ke as T, At as _, tt as a, ut as b, J as c, kt as d, it as f, pt as g, Ft as h, G as i, ye as j, Se as k, q as l, ct as m, H as n, R as o, ot as p, Q as r, U as s, rt as t, nt as u, at as v, Ae as w, Dt as x, st as y };
1046
1048
 
1047
- //# sourceMappingURL=Agent-CtLgGLbV.js.map
1049
+ //# sourceMappingURL=Agent-BdoXh8b0.js.map