@8wave/ai-elements 0.117.0-beta.12 → 0.117.0-beta.14

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 (138) hide show
  1. package/dist/_chunks/{Agent-BxyaZeuL.js → Agent-CFkAjuTy.js} +204 -168
  2. package/dist/_chunks/Agent-CFkAjuTy.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-B8mvCNou.js → PkStreamingMarkdown-BoVR7gtl.js} +670 -644
  4. package/dist/_chunks/PkStreamingMarkdown-BoVR7gtl.js.map +1 -0
  5. package/dist/_chunks/{PkToolEditSpreadsheet-Bp-ES8B0.js → PkToolEditSpreadsheet-BlfsM7Qp.js} +2 -2
  6. package/dist/_chunks/{PkToolEditSpreadsheet-Bp-ES8B0.js.map → PkToolEditSpreadsheet-BlfsM7Qp.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestGeolocation-DcPMMyJH.js → PkToolRequestGeolocation-DdQ91rpB.js} +2 -2
  8. package/dist/_chunks/{PkToolRequestGeolocation-DcPMMyJH.js.map → PkToolRequestGeolocation-DdQ91rpB.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestOAuthConnection-Cc2qViGX.js → PkToolRequestOAuthConnection-yuTNMEFj.js} +2 -2
  10. package/dist/_chunks/{PkToolRequestOAuthConnection-Cc2qViGX.js.map → PkToolRequestOAuthConnection-yuTNMEFj.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowArtifact-CcwAlOFM.js → PkToolShowArtifact-DaTlDsDo.js} +2 -2
  12. package/dist/_chunks/{PkToolShowArtifact-CcwAlOFM.js.map → PkToolShowArtifact-DaTlDsDo.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-DByjGK_F.js → PkToolShowContactForm-Dxh6bEZt.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-DByjGK_F.js.map → PkToolShowContactForm-Dxh6bEZt.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-CGrjJ-9k.js → PkToolShowForm-D1VzwMmq.js} +3 -3
  16. package/dist/_chunks/{PkToolShowForm-CGrjJ-9k.js.map → PkToolShowForm-D1VzwMmq.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowImageGallery-C3ZaW1jQ.js → PkToolShowImageGallery-Cs8FxK9V.js} +2 -2
  18. package/dist/_chunks/{PkToolShowImageGallery-C3ZaW1jQ.js.map → PkToolShowImageGallery-Cs8FxK9V.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowProductList-BAHoB6mi.js → PkToolShowProductList-B4fxqFaf.js} +2 -2
  20. package/dist/_chunks/{PkToolShowProductList-BAHoB6mi.js.map → PkToolShowProductList-B4fxqFaf.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowSources-BgnumOzQ.js → PkToolShowSources-DNiiBz9b.js} +3 -3
  22. package/dist/_chunks/{PkToolShowSources-BgnumOzQ.js.map → PkToolShowSources-DNiiBz9b.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowSuggestedReply-CpixDpsJ.js → PkToolShowSuggestedReply-Bn1w6HdI.js} +2 -2
  24. package/dist/_chunks/{PkToolShowSuggestedReply-CpixDpsJ.js.map → PkToolShowSuggestedReply-Bn1w6HdI.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowVideo-94-l_bBW.js → PkToolShowVideo-Be5bKhUf.js} +2 -2
  26. package/dist/_chunks/{PkToolShowVideo-94-l_bBW.js.map → PkToolShowVideo-Be5bKhUf.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowWebPages-q1gLOgDl.js → PkToolShowWebPages-Bs251x0h.js} +2 -2
  28. package/dist/_chunks/{PkToolShowWebPages-q1gLOgDl.js.map → PkToolShowWebPages-Bs251x0h.js.map} +1 -1
  29. package/dist/_chunks/{chatImagePolicy-D4kQJejM.js → chatImagePolicy-BACuW8x3.js} +2 -2
  30. package/dist/_chunks/{chatImagePolicy-D4kQJejM.js.map → chatImagePolicy-BACuW8x3.js.map} +1 -1
  31. package/dist/_chunks/{markdown-DCYDJNwF.js → markdown-Bk1clNA6.js} +13 -13
  32. package/dist/_chunks/{markdown-DCYDJNwF.js.map → markdown-Bk1clNA6.js.map} +1 -1
  33. package/dist/ai-elements.es.js +1963 -1881
  34. package/dist/ai-elements.es.js.map +1 -1
  35. package/dist-vue/PkChatbot.js +1 -1
  36. package/dist-vue/PkChatbotAudioTranscript.d.ts +2 -0
  37. package/dist-vue/PkChatbotAudioTranscript.js +1 -0
  38. package/dist-vue/PkChatbotAuth.js +1 -1
  39. package/dist-vue/PkChatbotEmptyState.js +1 -1
  40. package/dist-vue/PkChatbotInput.js +1 -1
  41. package/dist-vue/PkChatbotMessages.js +1 -1
  42. package/dist-vue/PkChatbotStepPayload.js +1 -1
  43. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  44. package/dist-vue/PkChatbotSteps.js +1 -1
  45. package/dist-vue/PkChatbotViewChat.js +1 -1
  46. package/dist-vue/PkChatbotViewConversations.js +1 -1
  47. package/dist-vue/PkChatbotViewFiles.js +1 -1
  48. package/dist-vue/PkChatbotViewProfile.js +1 -1
  49. package/dist-vue/_chunks/{Agent-CSXbmC44.js → Agent-CNJ3b9Je.js} +2 -2
  50. package/dist-vue/_chunks/{Agent-CSXbmC44.js.map → Agent-CNJ3b9Je.js.map} +1 -1
  51. package/dist-vue/_chunks/{Document-Ol8nGgij.js → Document-Bp3YJuQQ.js} +11 -11
  52. package/dist-vue/_chunks/{Document-Ol8nGgij.js.map → Document-Bp3YJuQQ.js.map} +1 -1
  53. package/dist-vue/_chunks/{Media-Cv7ou2tP.js → Media-C6Xsb1Lm.js} +77 -27
  54. package/dist-vue/_chunks/Media-C6Xsb1Lm.js.map +1 -0
  55. package/dist-vue/_chunks/{PkChatbot-BmpFnkde.js → PkChatbot-CSMWib9A.js} +8 -8
  56. package/dist-vue/_chunks/{PkChatbot-BmpFnkde.js.map → PkChatbot-CSMWib9A.js.map} +1 -1
  57. package/dist-vue/_chunks/PkChatbotAudioTranscript-B-cSKvWR.js +52 -0
  58. package/dist-vue/_chunks/PkChatbotAudioTranscript-B-cSKvWR.js.map +1 -0
  59. package/dist-vue/_chunks/{PkChatbotAuth-Dolfz0pa.js → PkChatbotAuth-C0qfDOGh.js} +8 -8
  60. package/dist-vue/_chunks/{PkChatbotAuth-Dolfz0pa.js.map → PkChatbotAuth-C0qfDOGh.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotEmptyState-BaiGfaAD.js → PkChatbotEmptyState-DjmF3dcI.js} +2 -2
  62. package/dist-vue/_chunks/{PkChatbotEmptyState-BaiGfaAD.js.map → PkChatbotEmptyState-DjmF3dcI.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkChatbotInput-BjfW_bML.js → PkChatbotInput-B8hKYdD9.js} +2 -2
  64. package/dist-vue/_chunks/{PkChatbotInput-BjfW_bML.js.map → PkChatbotInput-B8hKYdD9.js.map} +1 -1
  65. package/dist-vue/_chunks/PkChatbotMessages-DJmRPFB8.js +861 -0
  66. package/dist-vue/_chunks/PkChatbotMessages-DJmRPFB8.js.map +1 -0
  67. package/dist-vue/_chunks/{PkChatbotStepPayload-CGAdiGR5.js → PkChatbotStepPayload-BGYwwXaT.js} +2 -2
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-CGAdiGR5.js.map → PkChatbotStepPayload-BGYwwXaT.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DQsmXnKT.js → PkChatbotStepToolDetail-BH07XycE.js} +3 -3
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DQsmXnKT.js.map → PkChatbotStepToolDetail-BH07XycE.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkChatbotSteps-DzajeHKc.js → PkChatbotSteps-qyUOh42z.js} +6 -6
  72. package/dist-vue/_chunks/{PkChatbotSteps-DzajeHKc.js.map → PkChatbotSteps-qyUOh42z.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkChatbotViewChat-DZbQQNQn.js → PkChatbotViewChat-C7eA7hef.js} +7 -7
  74. package/dist-vue/_chunks/{PkChatbotViewChat-DZbQQNQn.js.map → PkChatbotViewChat-C7eA7hef.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkChatbotViewConversations-BXtTZ3kb.js → PkChatbotViewConversations-ClJLe1bm.js} +3 -3
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-BXtTZ3kb.js.map → PkChatbotViewConversations-ClJLe1bm.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkChatbotViewFiles--wM5SVAl.js → PkChatbotViewFiles-Do6tpo9O.js} +3 -3
  78. package/dist-vue/_chunks/{PkChatbotViewFiles--wM5SVAl.js.map → PkChatbotViewFiles-Do6tpo9O.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkChatbotViewProfile-B8T0AQC8.js → PkChatbotViewProfile-590b78yi.js} +2 -2
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-B8T0AQC8.js.map → PkChatbotViewProfile-590b78yi.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkStreamingMarkdown-D6y6g6vP.js → PkStreamingMarkdown-NWO3WTw9.js} +3 -3
  82. package/dist-vue/_chunks/{PkStreamingMarkdown-D6y6g6vP.js.map → PkStreamingMarkdown-NWO3WTw9.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolEditSpreadsheet-BkjEQag2.js → PkToolEditSpreadsheet-BnMSzlCi.js} +2 -2
  84. package/dist-vue/_chunks/{PkToolEditSpreadsheet-BkjEQag2.js.map → PkToolEditSpreadsheet-BnMSzlCi.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolRequestGeolocation-BWWUGKHJ.js → PkToolRequestGeolocation-B2UNj6dx.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolRequestGeolocation-BWWUGKHJ.js.map → PkToolRequestGeolocation-B2UNj6dx.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DvvLZ8yi.js → PkToolRequestOAuthConnection-B262JqNh.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DvvLZ8yi.js.map → PkToolRequestOAuthConnection-B262JqNh.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowArtifact-CP-dG3-Y.js → PkToolShowArtifact-Dr0NHXDG.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowArtifact-CP-dG3-Y.js.map → PkToolShowArtifact-Dr0NHXDG.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowContactForm-BK7B-Qzr.js → PkToolShowContactForm-BDm1w3UK.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowContactForm-BK7B-Qzr.js.map → PkToolShowContactForm-BDm1w3UK.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowDiagram-9THUQfbg.js → PkToolShowDiagram-BKz7OPHC.js} +2 -2
  94. package/dist-vue/_chunks/{PkToolShowDiagram-9THUQfbg.js.map → PkToolShowDiagram-BKz7OPHC.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolShowForm-CjN-_-1j.js → PkToolShowForm-cKgWwvPD.js} +4 -4
  96. package/dist-vue/_chunks/{PkToolShowForm-CjN-_-1j.js.map → PkToolShowForm-cKgWwvPD.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkToolShowImageGallery-8cmWigYT.js → PkToolShowImageGallery-DsAQhyOq.js} +2 -2
  98. package/dist-vue/_chunks/{PkToolShowImageGallery-8cmWigYT.js.map → PkToolShowImageGallery-DsAQhyOq.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkToolShowProductList-BxsK6LXl.js → PkToolShowProductList-OwGaM5qj.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowProductList-BxsK6LXl.js.map → PkToolShowProductList-OwGaM5qj.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkToolShowSources-BfWNsyLw.js → PkToolShowSources-BVOqH-ZV.js} +3 -3
  102. package/dist-vue/_chunks/{PkToolShowSources-BfWNsyLw.js.map → PkToolShowSources-BVOqH-ZV.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkToolShowSuggestedReply-_bH3Jikn.js → PkToolShowSuggestedReply-CF31zmck.js} +2 -2
  104. package/dist-vue/_chunks/{PkToolShowSuggestedReply-_bH3Jikn.js.map → PkToolShowSuggestedReply-CF31zmck.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowVideo-2_EdyT_U.js → PkToolShowVideo-BAqSAfdq.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowVideo-2_EdyT_U.js.map → PkToolShowVideo-BAqSAfdq.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowWebPages-B0glenu5.js → PkToolShowWebPages-BeMJqIkW.js} +2 -2
  108. package/dist-vue/_chunks/{PkToolShowWebPages-B0glenu5.js.map → PkToolShowWebPages-BeMJqIkW.js.map} +1 -1
  109. package/dist-vue/_chunks/{createChatbotApiClient-DgtSqixO.js → createChatbotApiClient-DmqgH9Ul.js} +3 -3
  110. package/dist-vue/_chunks/{createChatbotApiClient-DgtSqixO.js.map → createChatbotApiClient-DmqgH9Ul.js.map} +1 -1
  111. package/dist-vue/_chunks/message-BOiF6Bt5.js +59 -0
  112. package/dist-vue/_chunks/message-BOiF6Bt5.js.map +1 -0
  113. package/dist-vue/_chunks/{useChatbotStore-A33jT5Cp.js → useChatbotStore-CiF_gfIk.js} +656 -653
  114. package/dist-vue/_chunks/useChatbotStore-CiF_gfIk.js.map +1 -0
  115. package/dist-vue/_chunks/{utils-ByN6GORv.js → utils-DxuGvgWg.js} +37 -37
  116. package/dist-vue/_chunks/{utils-ByN6GORv.js.map → utils-DxuGvgWg.js.map} +1 -1
  117. package/dist-vue/api.js +1 -1
  118. package/dist-vue/composables.js +15 -5
  119. package/dist-vue/composables.js.map +1 -1
  120. package/dist-vue/index.js +4754 -4749
  121. package/dist-vue/index.js.map +1 -1
  122. package/dist-vue/locales.js +52 -40
  123. package/dist-vue/packages/components/src/chat/PkChatbotAudioTranscript.d.ts +13 -0
  124. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
  125. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +1 -1
  126. package/dist-vue/packages/models/src/schema/Agent.d.ts +4 -4
  127. package/dist-vue/packages/models/src/schema/Media.d.ts +21 -0
  128. package/dist-vue/packages/models/src/schema/Tabular.d.ts +1 -1
  129. package/dist-vue/style.css +1 -1
  130. package/package.json +1 -1
  131. package/dist/_chunks/Agent-BxyaZeuL.js.map +0 -1
  132. package/dist/_chunks/PkStreamingMarkdown-B8mvCNou.js.map +0 -1
  133. package/dist-vue/_chunks/Media-Cv7ou2tP.js.map +0 -1
  134. package/dist-vue/_chunks/PkChatbotMessages-CztL_AMB.js +0 -837
  135. package/dist-vue/_chunks/PkChatbotMessages-CztL_AMB.js.map +0 -1
  136. package/dist-vue/_chunks/message-RohfrdWS.js +0 -33
  137. package/dist-vue/_chunks/message-RohfrdWS.js.map +0 -1
  138. package/dist-vue/_chunks/useChatbotStore-A33jT5Cp.js.map +0 -1
@@ -51,13 +51,13 @@ var C = n({
51
51
  ]),
52
52
  width: s().int().positive().nullable(),
53
53
  height: s().int().positive().nullable()
54
- }), oe = n({
54
+ }), w = n({
55
55
  [S.LogoLight]: C.nullable(),
56
56
  [S.LogoDark]: C.nullable(),
57
57
  [S.Mark]: C.nullable(),
58
58
  [S.EmailLogo]: C.nullable(),
59
59
  [S.EmailBanner]: C.nullable()
60
- }), w = n({
60
+ }), T = 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 C = n({
67
67
  n({
68
68
  colors: b,
69
69
  mode: u(x),
70
- assets: oe,
71
- text: w
70
+ assets: w,
71
+ text: T
72
72
  }).extend({ version: i() });
73
- var se = n({ css: i() }), T = oe.partial(), E = w.partial().extend({
74
- productName: w.shape.productName.nullish(),
75
- shortName: w.shape.shortName.nullish()
76
- }), ce = n({
73
+ var oe = n({ css: i() }), E = w.partial(), D = T.partial().extend({
74
+ productName: T.shape.productName.nullish(),
75
+ shortName: T.shape.shortName.nullish()
76
+ }), se = n({
77
77
  colors: b.nullish(),
78
78
  mode: u(x).nullish(),
79
- assets: T.nullish(),
80
- text: E.nullish()
79
+ assets: E.nullish(),
80
+ text: D.nullish()
81
81
  });
82
82
  n({
83
- patch: ce,
83
+ patch: se,
84
84
  revision: i().min(1).max(64)
85
85
  });
86
- var D = (e) => e.optional().catch(void 0);
86
+ var O = (e) => e.optional().catch(void 0);
87
87
  n({
88
- colors: D(b.nullable()),
89
- mode: D(u(x).nullable()),
90
- assets: D(n({
91
- [S.LogoLight]: D(T.shape.logoLight),
92
- [S.LogoDark]: D(T.shape.logoDark),
93
- [S.Mark]: D(T.shape.mark),
94
- [S.EmailLogo]: D(T.shape.emailLogo),
95
- [S.EmailBanner]: D(T.shape.emailBanner)
88
+ colors: O(b.nullable()),
89
+ mode: O(u(x).nullable()),
90
+ assets: O(n({
91
+ [S.LogoLight]: O(E.shape.logoLight),
92
+ [S.LogoDark]: O(E.shape.logoDark),
93
+ [S.Mark]: O(E.shape.mark),
94
+ [S.EmailLogo]: O(E.shape.emailLogo),
95
+ [S.EmailBanner]: O(E.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: O(n({
98
+ productName: O(D.shape.productName),
99
+ shortName: O(D.shape.shortName),
100
+ description: O(D.shape.description),
101
+ productTagline: O(D.shape.productTagline),
102
+ companyName: O(D.shape.companyName)
103
103
  }).nullable())
104
- }), O({
105
- ...O({
104
+ }), k({
105
+ ...k({
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 k(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)) k(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 k = n({
151
+ var ce = n({
152
152
  dateTime: i().optional(),
153
153
  timezone: i().optional(),
154
154
  language: i().optional(),
@@ -178,19 +178,54 @@ var k = n({
178
178
  geolocationLongitude: s().optional(),
179
179
  geolocationAccuracy: s().optional(),
180
180
  geolocationCity: i().optional()
181
- }), A = /^[a-z]+\/[a-z0-9\-+.]+$/i, le = /* @__PURE__ */ function(e) {
181
+ }), A = /^[a-z]+\/[a-z0-9\-+.]+$/i, le = /* @__PURE__ */ new Set([
182
+ ".mp3",
183
+ ".m4a",
184
+ ".aac",
185
+ ".wav",
186
+ ".ogg",
187
+ ".oga",
188
+ ".opus",
189
+ ".flac"
190
+ ]), ue = /* @__PURE__ */ new Set([
191
+ ".amr",
192
+ ".3ga",
193
+ ".aif",
194
+ ".aiff",
195
+ ".caf",
196
+ ".m4b",
197
+ ".mka",
198
+ ".weba",
199
+ ".wma"
200
+ ]), de = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", fe = (e, t) => {
201
+ let n = we(e ?? "");
202
+ return de(t).startsWith("audio/") || le.has(n) || ue.has(n);
203
+ };
204
+ n({
205
+ status: u([
206
+ "ready",
207
+ "no-speech",
208
+ "failed",
209
+ "off"
210
+ ]),
211
+ text: i().optional(),
212
+ language: i().optional(),
213
+ durationSeconds: s().optional(),
214
+ model: i().optional()
215
+ });
216
+ var pe = /* @__PURE__ */ function(e) {
182
217
  return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
183
- }({}), ue = n({
218
+ }({}), me = n({
184
219
  type: l("azure-blob"),
185
220
  blobUri: e(),
186
221
  containerName: i().min(1),
187
222
  pathRelativeToContainer: i().min(1)
188
- }), de = n({
223
+ }), he = n({
189
224
  type: l("s3"),
190
225
  bucket: i().min(1),
191
226
  key: i().min(1),
192
227
  region: i().min(1)
193
- }), fe = p("type", [ue, de]), j = n({
228
+ }), ge = p("type", [me, he]), j = n({
194
229
  type: i().min(1),
195
230
  name: i().min(1),
196
231
  mimeType: i().regex(A),
@@ -200,11 +235,11 @@ var k = n({
200
235
  metadata: h(i(), i()).default({}),
201
236
  tags: h(i(), i()).default({})
202
237
  }).extend({
203
- storageHandle: fe,
204
- storagePolicy: u(le),
238
+ storageHandle: ge,
239
+ storagePolicy: u(pe),
205
240
  signData: i().optional(),
206
241
  storedFileName: i().min(1)
207
- }), pe = n({
242
+ }), M = n({
208
243
  name: i().min(1),
209
244
  src: j,
210
245
  srcSet: c(j).default([]),
@@ -227,171 +262,172 @@ n({
227
262
  type: i()
228
263
  })
229
264
  });
230
- var M = /* @__PURE__ */ function(e) {
265
+ var N = /* @__PURE__ */ function(e) {
231
266
  return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
232
- }({}), me = n({
233
- type: l(M.picture),
267
+ }({}), _e = n({
268
+ type: l(N.picture),
234
269
  width: s().positive(),
235
270
  height: s().positive(),
236
271
  blurhash: i().optional()
237
- }), he = n({
238
- type: l(M.video),
272
+ }), ve = n({
273
+ type: l(N.video),
239
274
  width: s().positive(),
240
275
  height: s().positive(),
241
276
  duration: s().nonnegative()
242
- }), ge = n({
243
- type: l(M.audio),
277
+ }), ye = n({
278
+ type: l(N.audio),
244
279
  duration: s().nonnegative()
245
- }), _e = n({ type: l(M.office) }), ve = n({ type: l(M.archive) }), ye = n({ type: l(M.binary) }), be = n({ type: l(M.executable) });
280
+ }), be = n({ type: l(N.office) }), xe = n({ type: l(N.archive) }), Se = n({ type: l(N.binary) }), Ce = n({ type: l(N.executable) });
246
281
  p("type", [
247
- me,
248
- he,
249
- ge,
250
282
  _e,
251
283
  ve,
252
284
  ye,
253
- be
285
+ be,
286
+ xe,
287
+ Se,
288
+ Ce
254
289
  ]);
255
- //#endregion
256
- //#region ../../packages/models/src/schema/Agent.ts
257
- var N = /* @__PURE__ */ function(e) {
290
+ var we = (e) => {
291
+ let t = e.lastIndexOf(".");
292
+ return t === -1 ? "" : e.slice(t).toLowerCase();
293
+ }, P = /* @__PURE__ */ function(e) {
258
294
  return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
259
- }({}), P = /* @__PURE__ */ function(e) {
260
- return e.Public = "public", e.Private = "private", e.Organization = "organization", e;
261
295
  }({}), F = /* @__PURE__ */ function(e) {
262
- return e.Chat = "chat", e.Reasoning = "reasoning", e;
296
+ return e.Public = "public", e.Private = "private", e.Organization = "organization", e;
263
297
  }({}), I = /* @__PURE__ */ function(e) {
298
+ return e.Chat = "chat", e.Reasoning = "reasoning", e;
299
+ }({}), L = /* @__PURE__ */ function(e) {
264
300
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
265
- }({}), L = [
301
+ }({}), R = [
266
302
  "none",
267
303
  "low",
268
304
  "medium",
269
305
  "high",
270
306
  "xhigh",
271
307
  "max"
272
- ], R = [
308
+ ], z = [
273
309
  "low",
274
310
  "medium",
275
311
  "high",
276
312
  "xhigh",
277
313
  "max"
278
- ], z = [
314
+ ], B = [
279
315
  "minimal",
280
316
  "low",
281
317
  "medium",
282
318
  "high"
283
- ], B = [
319
+ ], V = [
284
320
  "auto",
285
321
  "detailed",
286
322
  "concise"
287
- ], xe = n({
288
- reasoningEffort: u(L).optional(),
289
- reasoningSummary: u(B).optional()
290
- }), Se = n({
323
+ ], Te = n({
324
+ reasoningEffort: u(R).optional(),
325
+ reasoningSummary: u(V).optional()
326
+ }), Ee = n({
291
327
  type: u([
292
328
  "adaptive",
293
329
  "enabled",
294
330
  "disabled"
295
331
  ]).optional(),
296
- effort: u(R).optional(),
332
+ effort: u(z).optional(),
297
333
  display: u(["summarized", "omitted"]).optional(),
298
334
  budgetTokens: s().int().positive().optional()
299
- }), Ce = n({
300
- thinkingLevel: u(z).optional(),
335
+ }), De = n({
336
+ thinkingLevel: u(B).optional(),
301
337
  thinkingBudget: s().int().optional(),
302
338
  includeThoughts: d().optional()
303
- }), we = n({ type: u(["enabled", "disabled"]).optional() }), V = [
339
+ }), Oe = n({ type: u(["enabled", "disabled"]).optional() }), H = [
304
340
  "alibaba",
305
341
  "meta",
306
342
  "moonshotai",
307
343
  "spacexai",
308
344
  "xiaomi",
309
345
  "zai"
310
- ], Te = [
346
+ ], ke = [
311
347
  "none",
312
348
  "minimal",
313
349
  "low",
314
350
  "medium",
315
351
  "high",
316
352
  "xhigh"
317
- ], H = n({ reasoningEffort: u(Te).optional() });
318
- function U(e, t) {
353
+ ], U = n({ reasoningEffort: u(ke).optional() });
354
+ function W(e, t) {
319
355
  return e && t.includes(e) ? e : void 0;
320
356
  }
321
- var Ee = n({
322
- openai: xe.optional(),
323
- anthropic: Se.optional(),
324
- google: Ce.optional(),
325
- deepseek: we.optional(),
326
- alibaba: H.optional(),
327
- meta: H.optional(),
328
- moonshotai: H.optional(),
329
- spacexai: H.optional(),
330
- xiaomi: H.optional(),
331
- zai: H.optional()
357
+ var Ae = n({
358
+ openai: Te.optional(),
359
+ anthropic: Ee.optional(),
360
+ google: De.optional(),
361
+ deepseek: Oe.optional(),
362
+ alibaba: U.optional(),
363
+ meta: U.optional(),
364
+ moonshotai: U.optional(),
365
+ spacexai: U.optional(),
366
+ xiaomi: U.optional(),
367
+ zai: U.optional()
332
368
  });
333
- function De(e) {
369
+ function je(e) {
334
370
  if (!e || typeof e != "object") return e;
335
371
  let t = e, n = [
336
372
  "openai",
337
373
  "anthropic",
338
374
  "google",
339
375
  "deepseek",
340
- ...V
376
+ ...H
341
377
  ].some((e) => e in t);
342
378
  if ("effort" in t && !n) {
343
379
  let e = t.effort, n = t.reasoningSummary, r = {};
344
380
  if (e && e !== "off" && e !== "none") {
345
- let t = U(e, L), i = U(n, B);
381
+ let t = W(e, R), i = W(n, V);
346
382
  (t || i) && (r.openai = {
347
383
  ...t && { reasoningEffort: t },
348
384
  ...i && { reasoningSummary: i }
349
385
  });
350
- let a = U(e, R);
386
+ let a = W(e, z);
351
387
  a && (r.anthropic = {
352
388
  type: "adaptive",
353
389
  effort: a
354
390
  });
355
- let o = U(e === "xhigh" || e === "max" ? "high" : e, z);
391
+ let o = W(e === "xhigh" || e === "max" ? "high" : e, B);
356
392
  o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
357
- let s = U(e === "max" ? "xhigh" : e, Te);
358
- if (s) for (let e of V) r[e] = { reasoningEffort: s };
393
+ let s = W(e === "max" ? "xhigh" : e, ke);
394
+ if (s) for (let e of H) r[e] = { reasoningEffort: s };
359
395
  } else {
360
396
  r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
361
- for (let e of V) r[e] = { reasoningEffort: "none" };
397
+ for (let e of H) r[e] = { reasoningEffort: "none" };
362
398
  }
363
399
  return r;
364
400
  }
365
401
  return e;
366
402
  }
367
- var W = g(t(), Ee, De).optional(), G = /* @__PURE__ */ function(e) {
403
+ var Me = g(t(), Ae, je).optional(), G = /* @__PURE__ */ function(e) {
368
404
  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.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;
369
405
  }({});
370
- function Oe(e) {
406
+ function Ne(e) {
371
407
  return e === G.RequestConfirm || e === G.ShowArtifact || e === G.ShowCalendarEvent || e === G.ShowComparison || e === G.ShowContactForm || e === G.ShowDiagram || e === G.ShowEmail || e === G.ShowImageGallery || e === G.ShowLocation || e === G.ShowMessage || e === G.ShowForm || e === G.ShowMultipleChoice || e === G.ShowProductList || e === G.ShowQrCode || e === G.ShowSources || e === G.ShowSuggestedReply || e === G.ShowVideo || e === G.ShowWeather || e === G.ShowWebPages;
372
408
  }
373
409
  G.RequestConfirm, G.ShowArtifact, G.ShowWeather, G.ShowLocation, G.ShowComparison, G.ShowProductList, G.ShowWebPages, G.ShowImageGallery, G.ShowVideo, G.ShowSources, G.ShowSuggestedReply, G.ShowCalendarEvent, G.ShowEmail, G.ShowMessage, G.ShowForm;
374
- var ke = /* @__PURE__ */ new Set([
410
+ var Pe = /* @__PURE__ */ new Set([
375
411
  G.RequestConfirm,
376
412
  G.RequestGeolocation,
377
413
  G.ShowForm,
378
414
  G.ShowMultipleChoice,
379
415
  "requestOAuthConnection"
380
416
  ]);
381
- function Ae(e) {
382
- return ke.has(e);
417
+ function Fe(e) {
418
+ return Pe.has(e);
383
419
  }
384
420
  G.RequestConfirm, G.RequestGeolocation, G.ShowArtifact, G.ShowCalendarEvent, G.ShowContactForm, G.ShowComparison, G.ShowDiagram, G.ShowEmail, G.ShowForm, G.ShowImageGallery, G.ShowLocation, G.ShowMessage, G.ShowMultipleChoice, G.ShowProductList, G.ShowQrCode, G.ShowSources, G.ShowSuggestedReply, G.ShowVideo, G.ShowWeather, G.ShowWebPages;
385
- var je = "Shown on the caller's screen";
386
- function Me(e) {
387
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(je));
421
+ var Ie = "Shown on the caller's screen";
422
+ function Le(e) {
423
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ie));
388
424
  }
389
- var Ne = n({
425
+ var Re = n({
390
426
  maxSteps: s().int().min(1).max(10).optional().default(5),
391
427
  maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
392
- }), Pe = /* @__PURE__ */ function(e) {
428
+ }), ze = /* @__PURE__ */ function(e) {
393
429
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
394
- }({}), Fe = n({
430
+ }({}), Be = n({
395
431
  maxResults: s().int().min(1).max(20).optional(),
396
432
  maxTokens: s().int().positive().max(1e6).optional(),
397
433
  maxTokensPerPage: s().int().positive().optional(),
@@ -404,7 +440,7 @@ var Ne = n({
404
440
  "month",
405
441
  "year"
406
442
  ]).optional()
407
- }), Ie = n({
443
+ }), Ve = n({
408
444
  mode: u(["one-shot", "agentic"]).optional(),
409
445
  maxResults: s().int().min(1).max(20).optional(),
410
446
  sourcePolicy: n({
@@ -417,7 +453,7 @@ var Ne = n({
417
453
  maxCharsTotal: s().int().positive().optional()
418
454
  }).optional(),
419
455
  fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
420
- }), Le = n({
456
+ }), He = n({
421
457
  openai: n({}).optional(),
422
458
  anthropic: n({
423
459
  maxUses: s().int().positive().optional(),
@@ -434,11 +470,11 @@ var Ne = n({
434
470
  google: n({}).optional()
435
471
  }), K = n({
436
472
  enabled: d().default(!1),
437
- provider: u(Pe).optional().default(Pe.Native),
438
- perplexity: Fe.optional(),
439
- parallel: Ie.optional(),
440
- native: Le.optional()
441
- }), Re = n({ useAllUserKb: d().default(!1) }), ze = n({ useAllUserFiles: d().default(!1) }), Be = n({ tools: c(i()).default([]) }), Ve = n({
473
+ provider: u(ze).optional().default(ze.Native),
474
+ perplexity: Be.optional(),
475
+ parallel: Ve.optional(),
476
+ native: He.optional()
477
+ }), Ue = n({ useAllUserKb: d().default(!1) }), We = n({ useAllUserFiles: d().default(!1) }), Ge = n({ tools: c(i()).default([]) }), Ke = n({
442
478
  disabled: c(u(G)).default([
443
479
  G.UserMemory,
444
480
  G.SearchInUserFiles,
@@ -446,11 +482,11 @@ var Ne = n({
446
482
  G.FetchTeamsChannelHistory,
447
483
  G.ScheduleWakeup
448
484
  ]),
449
- showForm: Ne.optional().default(() => Ne.parse({})),
485
+ showForm: Re.optional().default(() => Re.parse({})),
450
486
  webSearch: K.optional().default(() => K.parse({})),
451
- userMemory: Re.optional().default(() => Re.parse({})),
452
- userFiles: ze.optional().default(() => ze.parse({})),
453
- approval: Be.optional().default(() => Be.parse({}))
487
+ userMemory: Ue.optional().default(() => Ue.parse({})),
488
+ userFiles: We.optional().default(() => We.parse({})),
489
+ approval: Ge.optional().default(() => Ge.parse({}))
454
490
  }), q = n({
455
491
  freshness: n({
456
492
  enabled: d().default(!1),
@@ -463,23 +499,23 @@ var Ne = n({
463
499
  diversity: s().min(0).max(1).default(.3),
464
500
  candidatesLimit: s().int().min(20).max(100).default(50)
465
501
  }).prefault({})
466
- }).prefault({}), He = n({
502
+ }).prefault({}), qe = n({
467
503
  prompt: i().optional(),
468
504
  temperature: s().min(0).max(2).optional().default(.6),
469
505
  maxOutputTokens: s().positive().optional(),
470
506
  presencePenalty: s().min(-2).max(2).optional(),
471
507
  frequencyPenalty: s().min(-2).max(2).optional(),
472
- searchMode: u(I).optional().default(I.Balanced),
508
+ searchMode: u(L).optional().default(L.Balanced),
473
509
  limit: s().positive().max(100).optional().default(10),
474
510
  maxStepCount: s().int().min(1).max(40).optional().default(10),
475
- reasoning: W,
511
+ reasoning: Me,
476
512
  ranking: q.optional().default(() => q.parse({}))
477
- }), J = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Ue = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", We = /* @__PURE__ */ function(e) {
513
+ }), J = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Je = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Ye = /* @__PURE__ */ function(e) {
478
514
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
479
515
  }({}), Y = /* @__PURE__ */ function(e) {
480
516
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
481
- }({}), Ge = Object.values(Y), Ke = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
482
- function qe(e) {
517
+ }({}), Xe = Object.values(Y), Ze = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
518
+ function Qe(e) {
483
519
  let t = e.trim().toLowerCase();
484
520
  if (!t) return "";
485
521
  try {
@@ -489,7 +525,7 @@ function qe(e) {
489
525
  }
490
526
  }
491
527
  var X = n({
492
- media: pe.optional(),
528
+ media: M.optional(),
493
529
  logo: i().optional(),
494
530
  theme: u([
495
531
  "light",
@@ -513,14 +549,14 @@ var X = n({
513
549
  welcomePopup: d().optional().default(!1),
514
550
  floatingButtonPosition: u(["left", "right"]).optional().default("right"),
515
551
  maxMessageLength: s().int().positive().optional(),
516
- widgetUrl: e().default(Ue),
552
+ widgetUrl: e().default(Je),
517
553
  loadDelay: s().int().min(0).max(3e4).optional().default(0),
518
- loaderStrategy: u(We).optional().default(We.InlineModule),
554
+ loaderStrategy: u(Ye).optional().default(Ye.InlineModule),
519
555
  customCss: i().optional(),
520
556
  smoothStream: d().optional().default(!1),
521
557
  showExtendedSteps: d().optional().default(!1),
522
- imageHosts: c(i().overwrite(qe).refine((e) => e === "" || Ke.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
523
- }), Je = [
558
+ imageHosts: c(i().overwrite(Qe).refine((e) => e === "" || Ze.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
559
+ }), $e = [
524
560
  "image/jpeg",
525
561
  "image/png",
526
562
  "image/gif",
@@ -529,19 +565,19 @@ var X = n({
529
565
  "text/plain",
530
566
  "text/markdown",
531
567
  "text/csv"
532
- ], Ye = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Z = n({
568
+ ], et = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Z = n({
533
569
  enabled: d().default(!1),
534
570
  maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
535
- allowedMimeTypes: c(i().regex(A)).optional().default([...Je]),
571
+ allowedMimeTypes: c(i().regex(A)).optional().default([...$e]),
536
572
  maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
537
573
  maxFilesPerChat: s().int().positive().max(50).optional().default(20)
538
574
  }), Q = n({
539
575
  zeroDataRetention: d().default(!0),
540
576
  disallowPromptTraining: d().default(!0),
541
577
  providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
542
- }), Xe = n({ enabled: d().default(!1) }), Ze = /* @__PURE__ */ function(e) {
578
+ }), tt = n({ enabled: d().default(!1) }), nt = /* @__PURE__ */ function(e) {
543
579
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
544
- }({}), Qe = n({ mode: u(Ze).default(Ze.Off) }), $e = n({
580
+ }({}), rt = n({ mode: u(nt).default(nt.Off) }), it = n({
545
581
  enabled: d().default(!1),
546
582
  voiceId: i().optional(),
547
583
  language: i().min(2).max(5).default("it"),
@@ -560,38 +596,38 @@ var X = n({
560
596
  providerAgentId: i().optional(),
561
597
  providerSecretId: i().optional(),
562
598
  providerApiKeyId: i().optional()
563
- }), et = n({ enabled: d() });
599
+ }), at = n({ enabled: d() });
564
600
  n({
565
601
  chatId: i().min(1).optional(),
566
- deviceContext: k.optional(),
602
+ deviceContext: ce.optional(),
567
603
  externalContext: h(i(), t()).optional()
568
604
  });
569
- var tt = n({
605
+ var ot = n({
570
606
  sessionId: i(),
571
607
  signedUrl: i(),
572
608
  providerAgentId: i(),
573
609
  chatId: i(),
574
610
  maxSessionSeconds: s().int()
575
- }), nt = n({
611
+ }), st = n({
576
612
  voiceId: i(),
577
613
  name: i(),
578
614
  category: i().optional(),
579
615
  previewUrl: i().optional(),
580
616
  labels: h(i(), i()).optional()
581
617
  });
582
- c(nt);
583
- var rt = n({
584
- model: He,
618
+ c(st);
619
+ var ct = n({
620
+ model: qe,
585
621
  interface: X,
586
- tools: Ve.optional().default(() => Ve.parse({})),
622
+ tools: Ke.optional().default(() => Ke.parse({})),
587
623
  fileUpload: Z.optional().default(() => Z.parse({})),
588
624
  gatewayOptions: Q.optional().default(() => Q.parse({})),
589
- channels: c(u(Y)).optional().default(() => [...Ge]),
625
+ channels: c(u(Y)).optional().default(() => [...Xe]),
590
626
  externalContextSchema: re.optional(),
591
- openaiApi: Xe.optional().default(() => Xe.parse({})),
592
- voice: $e.optional().default(() => $e.parse({})),
593
- toolWorkingSet: Qe.optional().default(() => Qe.parse({}))
594
- }), it = n({
627
+ openaiApi: tt.optional().default(() => tt.parse({})),
628
+ voice: it.optional().default(() => it.parse({})),
629
+ toolWorkingSet: rt.optional().default(() => rt.parse({}))
630
+ }), lt = n({
595
631
  rateLimits: n({
596
632
  minuteRateLimit: s().int().min(0).optional(),
597
633
  hourRateLimit: s().int().min(0).optional(),
@@ -606,11 +642,11 @@ n({
606
642
  prompt: i().optional(),
607
643
  model: i().optional(),
608
644
  fallbackModels: c(i()).default([]),
609
- status: u(N).default(N.Draft),
610
- visibility: u(P).default(P.Organization),
611
- settings: rt,
612
- security: it.nullish(),
613
- type: u(F).default(F.Chat),
645
+ status: u(P).default(P.Draft),
646
+ visibility: u(F).default(F.Organization),
647
+ settings: ct,
648
+ security: lt.nullish(),
649
+ type: u(I).default(I.Chat),
614
650
  organizationId: i()
615
651
  }), o(() => n({
616
652
  id: i(),
@@ -618,11 +654,11 @@ n({
618
654
  prompt: i(),
619
655
  model: i(),
620
656
  fallbackModels: c(i()).nullable().default([]),
621
- status: u(N).default(N.Draft),
622
- visibility: u(P).default(P.Organization),
623
- settings: rt,
624
- security: it.nullable(),
625
- type: u(F).default(F.Chat),
657
+ status: u(P).default(P.Draft),
658
+ visibility: u(F).default(F.Organization),
659
+ settings: ct,
660
+ security: lt.nullable(),
661
+ type: u(I).default(I.Chat),
626
662
  organizationId: i(),
627
663
  createdAt: f(),
628
664
  createdBy: i(),
@@ -634,50 +670,50 @@ n({
634
670
  outOfBudget: d().optional().default(!1),
635
671
  outOfBudgetReason: i().optional().default("")
636
672
  }));
637
- var at = n({
673
+ var ut = n({
638
674
  id: i(),
639
675
  name: i(),
640
- status: u(N),
641
- visibility: u(P),
676
+ status: u(P),
677
+ visibility: u(F),
642
678
  organizationId: i(),
643
679
  interface: X,
644
680
  createdAt: f(),
645
681
  updatedAt: f(),
646
682
  capabilities: n({
647
683
  fileUpload: Z,
648
- voice: et
684
+ voice: at
649
685
  }),
650
- channels: c(u(Y)).default(() => [...Ge])
651
- }), ot = X.pick({
686
+ channels: c(u(Y)).default(() => [...Xe])
687
+ }), dt = X.pick({
652
688
  logo: !0,
653
689
  mainColor: !0,
654
690
  textColor: !0,
655
691
  theme: !0,
656
692
  floatingButtonPosition: !0,
657
693
  customCss: !0
658
- }), st = at.pick({
694
+ }), ft = ut.pick({
659
695
  id: !0,
660
696
  name: !0,
661
697
  organizationId: !0
662
- }).extend({ interface: ot }), ct = n({
698
+ }).extend({ interface: dt }), pt = n({
663
699
  emailPassword: d(),
664
700
  google: d(),
665
701
  microsoft: d()
666
- }), lt = n({
702
+ }), mt = n({
667
703
  requiresAuth: l(!1),
668
- agent: at,
704
+ agent: ut,
669
705
  branding: r()
670
- }), ut = n({
706
+ }), ht = n({
671
707
  requiresAuth: l(!0),
672
708
  agent: r(),
673
- branding: st
709
+ branding: ft
674
710
  });
675
- p("requiresAuth", [lt, ut]);
711
+ p("requiresAuth", [mt, ht]);
676
712
  var $ = n({
677
- authMethods: ct,
678
- deploymentBranding: se.nullish()
713
+ authMethods: pt,
714
+ deploymentBranding: oe.nullish()
679
715
  });
680
- p("requiresAuth", [lt.extend($.shape), ut.extend($.shape)]), n({
716
+ p("requiresAuth", [mt.extend($.shape), ht.extend($.shape)]), n({
681
717
  id: m(),
682
718
  agentIds: c(m())
683
719
  }), n({
@@ -698,6 +734,6 @@ p("requiresAuth", [lt.extend($.shape), ut.extend($.shape)]), n({
698
734
  ..._.ids()
699
735
  });
700
736
  //#endregion
701
- export { _, I as a, tt as c, Me as d, qe as f, g, k as h, W as i, Oe as l, pe as m, Q as n, K as o, A as p, q as r, Ye as s, G as t, Ae as u };
737
+ export { g as _, L as a, ot as c, Le as d, Qe as f, ce as g, fe as h, Me as i, Ne as l, M as m, Q as n, K as o, A as p, q as r, et as s, G as t, Fe as u, _ as v };
702
738
 
703
- //# sourceMappingURL=Agent-BxyaZeuL.js.map
739
+ //# sourceMappingURL=Agent-CFkAjuTy.js.map