@8wave/ai-elements 0.121.0-beta.51 → 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.
- package/README.md +30 -0
- package/dist/_chunks/{Agent-CtLgGLbV.js → Agent-BdoXh8b0.js} +252 -250
- package/dist/_chunks/Agent-BdoXh8b0.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js → PkStreamingMarkdown-CR-xBRG2.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js.map → PkStreamingMarkdown-CR-xBRG2.js.map} +1 -1
- package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js → PkToolEditedFile-DAMPjKIn.js} +2 -2
- package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js.map → PkToolEditedFile-DAMPjKIn.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js → PkToolRequestGeolocation-BantUie4.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js.map → PkToolRequestGeolocation-BantUie4.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js → PkToolRequestOAuthConnection-CB5ziPOE.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js.map → PkToolRequestOAuthConnection-CB5ziPOE.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js → PkToolShowArtifact-B1J7a3o0.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js.map → PkToolShowArtifact-B1J7a3o0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js → PkToolShowContactForm-DcNMM-j0.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js.map → PkToolShowContactForm-DcNMM-j0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js → PkToolShowForm-CRa9HLZo.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js.map → PkToolShowForm-CRa9HLZo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js → PkToolShowImageGallery-BisEror8.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js.map → PkToolShowImageGallery-BisEror8.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js → PkToolShowProductList-BmPdjUSS.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js.map → PkToolShowProductList-BmPdjUSS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-K-cNd52t.js → PkToolShowSources-LQ0DMKM1.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-K-cNd52t.js.map → PkToolShowSources-LQ0DMKM1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js → PkToolShowSuggestedReply-lzs6-CcI.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js.map → PkToolShowSuggestedReply-lzs6-CcI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js → PkToolShowVideo-BPYYn43O.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js.map → PkToolShowVideo-BPYYn43O.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js → PkToolShowWebPages-CbE_bnHt.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js.map → PkToolShowWebPages-CbE_bnHt.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js → chatImagePolicy-CZeGEXvB.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js.map → chatImagePolicy-CZeGEXvB.js.map} +1 -1
- package/dist/_chunks/{markdown-B_eDHV3T.js → markdown-DtRRqlac.js} +2 -2
- package/dist/_chunks/{markdown-B_eDHV3T.js.map → markdown-DtRRqlac.js.map} +1 -1
- package/dist/ai-elements.es.js +1041 -840
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-BlWzW8Mg.js → Agent-B-jQOrER.js} +133 -131
- package/dist-vue/_chunks/Agent-B-jQOrER.js.map +1 -0
- package/dist-vue/_chunks/{Document-vkNbPo_T.js → Document-DQtliJu6.js} +2 -2
- package/dist-vue/_chunks/{Document-vkNbPo_T.js.map → Document-DQtliJu6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js → PkChatbot-DKBnpYB0.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js.map → PkChatbot-DKBnpYB0.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js → PkChatbotEmptyState-CFCbJSjm.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js.map → PkChatbotEmptyState-CFCbJSjm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js → PkChatbotInput-fte_uZHV.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js.map → PkChatbotInput-fte_uZHV.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-Ce7BtcBf.js → PkChatbotMessages-BVzOnfjU.js} +20 -18
- package/dist-vue/_chunks/PkChatbotMessages-BVzOnfjU.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js → PkChatbotStepPayload-CgwZs9AM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js.map → PkChatbotStepPayload-CgwZs9AM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js → PkChatbotStepToolDetail-BOylJhFM.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js.map → PkChatbotStepToolDetail-BOylJhFM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js → PkChatbotSteps-Cmi5TBZM.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js.map → PkChatbotSteps-Cmi5TBZM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js → PkChatbotViewChat-DuHSW8TF.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js.map → PkChatbotViewChat-DuHSW8TF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js → PkChatbotViewConversations-Bf9oJIdi.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js.map → PkChatbotViewConversations-Bf9oJIdi.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js → PkChatbotViewFiles-B6R1ixAl.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js.map → PkChatbotViewFiles-B6R1ixAl.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js → PkChatbotViewProfile-x0oUCbeL.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js.map → PkChatbotViewProfile-x0oUCbeL.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js → PkStreamingMarkdown-BrBeaJes.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js.map → PkStreamingMarkdown-BrBeaJes.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js → PkToolEditedFile-BKyMjgs0.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js.map → PkToolEditedFile-BKyMjgs0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js → PkToolRequestGeolocation-CY-NC6Rc.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js.map → PkToolRequestGeolocation-CY-NC6Rc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js → PkToolRequestOAuthConnection-RkbnKSde.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js.map → PkToolRequestOAuthConnection-RkbnKSde.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js → PkToolShowArtifact-BvvVHrP-.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js.map → PkToolShowArtifact-BvvVHrP-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js → PkToolShowContactForm-Dz_IiYr1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js.map → PkToolShowContactForm-Dz_IiYr1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js → PkToolShowDiagram-DCSfCzrN.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js.map → PkToolShowDiagram-DCSfCzrN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js → PkToolShowForm-qMBAEKxf.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js.map → PkToolShowForm-qMBAEKxf.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js → PkToolShowImageGallery-DWwUnIDq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js.map → PkToolShowImageGallery-DWwUnIDq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js → PkToolShowProductList-DreWhhfK.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js.map → PkToolShowProductList-DreWhhfK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js → PkToolShowSources-DR-uaXeX.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js.map → PkToolShowSources-DR-uaXeX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js → PkToolShowSuggestedReply-CThFJVUq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js.map → PkToolShowSuggestedReply-CThFJVUq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js → PkToolShowVideo-Xogv8wVt.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js.map → PkToolShowVideo-Xogv8wVt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js → PkToolShowWebPages-BHTyFyDI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js.map → PkToolShowWebPages-BHTyFyDI.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js → createChatbotApiClient-B3U31J_K.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js.map → createChatbotApiClient-B3U31J_K.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js → useChatbotStore-D2L4m3iJ.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js.map → useChatbotStore-D2L4m3iJ.js.map} +1 -1
- package/dist-vue/_chunks/{utils-BpnTWYko.js → utils-Df_SeBdX.js} +2 -2
- package/dist-vue/_chunks/{utils-BpnTWYko.js.map → utils-Df_SeBdX.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +7 -0
- package/dist-vue/apps/web-component/src/composables/usePageModal.d.ts +18 -0
- package/dist-vue/apps/web-component/src/lib.d.ts +3 -0
- package/dist-vue/composables.js +4 -4
- package/dist-vue/index.js +24 -24
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +55 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +12 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +12 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-CtLgGLbV.js.map +0 -1
- package/dist-vue/_chunks/Agent-BlWzW8Mg.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-Ce7BtcBf.js.map +0 -1
package/dist-vue/PkChatbot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbot-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbot-DKBnpYB0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-CFCbJSjm.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput-fte_uZHV.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-BVzOnfjU.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-CgwZs9AM.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-BOylJhFM.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-Cmi5TBZM.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-DuHSW8TF.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-Bf9oJIdi.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-B6R1ixAl.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-x0oUCbeL.js";
|
|
@@ -109,7 +109,7 @@ d({
|
|
|
109
109
|
companyName: E(T.shape.companyName)
|
|
110
110
|
}).nullable())
|
|
111
111
|
});
|
|
112
|
-
var D =
|
|
112
|
+
var D = O({
|
|
113
113
|
colors: {
|
|
114
114
|
light: {
|
|
115
115
|
brand: "#140e33",
|
|
@@ -138,7 +138,7 @@ var D = be({
|
|
|
138
138
|
companyName: null
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
|
|
141
|
+
O({
|
|
142
142
|
...D,
|
|
143
143
|
text: {
|
|
144
144
|
productName: "Agent Studio",
|
|
@@ -170,17 +170,17 @@ function ve(e, t, { rounded: n = !0 } = {}) {
|
|
|
170
170
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32"${n ? " rx=\"7\"" : ""} fill="${r}"/><text x="16" y="16" dy="0.35em" text-anchor="middle" font-family="system-ui, sans-serif" font-size="18" font-weight="600" fill="${i}">${a}</text></svg>`;
|
|
171
171
|
}
|
|
172
172
|
var ye = (e, t) => `data:image/svg+xml,${encodeURIComponent(ve(e, t))}`;
|
|
173
|
-
function
|
|
173
|
+
function O(e) {
|
|
174
174
|
if (e && typeof e == "object") {
|
|
175
|
-
for (let t of Object.values(e))
|
|
175
|
+
for (let t of Object.values(e)) O(t);
|
|
176
176
|
Object.freeze(e);
|
|
177
177
|
}
|
|
178
178
|
return e;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
return Array.isArray(e) ? `[${e.map(
|
|
180
|
+
function k(e) {
|
|
181
|
+
return Array.isArray(e) ? `[${e.map(k).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${k(t)}`).join(",")}}` : JSON.stringify(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function be(e) {
|
|
184
184
|
let t = 2166136261, n = 16777619 ^ e.length;
|
|
185
185
|
for (let r = 0; r < e.length; r++) {
|
|
186
186
|
let i = e.charCodeAt(r);
|
|
@@ -188,22 +188,22 @@ function xe(e) {
|
|
|
188
188
|
}
|
|
189
189
|
return t.toString(16).padStart(8, "0") + n.toString(16).padStart(8, "0");
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
191
|
+
function xe(e) {
|
|
192
|
+
return be(`${Oe(e)}:${k(e)}`);
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
RegExp(`^${
|
|
196
|
-
function
|
|
194
|
+
var Se = "/api/v1/public/branding", Ce = (e) => `${Se}/assets/${e}`, we = (e, t) => `${e.replace(/\/+$/, "")}${Ce(t)}`;
|
|
195
|
+
RegExp(`^${Se}(?:\\.css|/manifest\\.webmanifest|/icon/(?:\\d+|maskable)|/assets/[0-9a-f]{64}(?:/icon/\\d+)?)?(?:\\?|$)`);
|
|
196
|
+
function Te(e) {
|
|
197
197
|
return {
|
|
198
198
|
...e,
|
|
199
|
-
version:
|
|
199
|
+
version: xe(e)
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Ee(e) {
|
|
203
203
|
return v.safeParse(e).success ? `--color-brand:${e.brand};--color-accent:${e.accent};--color-info:${e.info};` : "";
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
let t =
|
|
205
|
+
function De(e) {
|
|
206
|
+
let t = Ee(e.colors.light), n = Ee(e.colors.dark);
|
|
207
207
|
return [
|
|
208
208
|
`:where(:root,.theme){${t}${t ? `--color-tint:${e.colors.light.brand};` : ""}}`,
|
|
209
209
|
`@media (prefers-color-scheme: dark){:where(:root:not(.theme--light),.theme:not(.theme--light)){${n}}}`,
|
|
@@ -211,7 +211,7 @@ function Oe(e) {
|
|
|
211
211
|
`:where(.theme.theme--dark){${n}}`
|
|
212
212
|
].join("\n");
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var Oe = (e) => be(De(e)), ke = d({
|
|
215
215
|
dateTime: n().optional(),
|
|
216
216
|
timezone: n().optional(),
|
|
217
217
|
language: n().optional(),
|
|
@@ -241,16 +241,16 @@ var ke = (e) => xe(Oe(e)), Ae = d({
|
|
|
241
241
|
geolocationLongitude: i().optional(),
|
|
242
242
|
geolocationAccuracy: i().optional(),
|
|
243
243
|
geolocationCity: n().optional()
|
|
244
|
-
}),
|
|
244
|
+
}), Ae = "host", A = /^[a-z][a-z0-9_]{0,63}$/, je = 2e3, Me = d({
|
|
245
245
|
title: n().max(80).optional(),
|
|
246
246
|
readOnlyHint: u().optional(),
|
|
247
247
|
destructiveHint: u().optional()
|
|
248
248
|
});
|
|
249
249
|
d({
|
|
250
|
-
name: n().regex(
|
|
251
|
-
description: n().max(
|
|
250
|
+
name: n().regex(A),
|
|
251
|
+
description: n().max(je).optional(),
|
|
252
252
|
inputSchema: p(n(), f()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
|
|
253
|
-
annotations:
|
|
253
|
+
annotations: Me.optional()
|
|
254
254
|
}), d({
|
|
255
255
|
content: c(d({
|
|
256
256
|
type: s("text"),
|
|
@@ -258,33 +258,33 @@ d({
|
|
|
258
258
|
})),
|
|
259
259
|
isError: u().optional()
|
|
260
260
|
});
|
|
261
|
-
var
|
|
261
|
+
var Ne = d({
|
|
262
262
|
enabled: u().default(!1),
|
|
263
263
|
label: n().max(40).default(""),
|
|
264
|
-
allowed: c(n().regex(
|
|
265
|
-
requireConfirmation: c(n().regex(
|
|
264
|
+
allowed: c(n().regex(A)).max(32).default([]),
|
|
265
|
+
requireConfirmation: c(n().regex(A)).default([]),
|
|
266
266
|
confirmDestructive: u().default(!0),
|
|
267
267
|
timeoutMs: i().int().min(5e3).max(12e4).default(3e4),
|
|
268
268
|
maxCallsPerTurn: i().int().min(1).max(50).default(20)
|
|
269
|
-
}),
|
|
269
|
+
}), Pe = Ne.pick({
|
|
270
270
|
label: !0,
|
|
271
271
|
allowed: !0,
|
|
272
272
|
requireConfirmation: !0,
|
|
273
273
|
confirmDestructive: !0,
|
|
274
274
|
timeoutMs: !0
|
|
275
|
-
}).extend({ origins: c(n()) }),
|
|
275
|
+
}).extend({ origins: c(n()) }), Fe = (e) => {
|
|
276
276
|
if (typeof e != "object" || !e) return !1;
|
|
277
277
|
let { type: t, toolMetadata: n } = e;
|
|
278
278
|
return t === "dynamic-tool" && n?.source === "host";
|
|
279
|
-
},
|
|
279
|
+
}, Ie = (e) => e ? "No result: the host app did not answer this call." : "Outcome unknown: the host app did not confirm this call. Check the current state with a read tool before repeating it.", Le = "The user refused this call. Do not repeat it unless the user asks.", j = /* @__PURE__ */ function(e) {
|
|
280
280
|
return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
|
|
281
|
-
}({}),
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
],
|
|
287
|
-
function
|
|
281
|
+
}({}), Re = [
|
|
282
|
+
j.Off,
|
|
283
|
+
j.Read,
|
|
284
|
+
j.Forms,
|
|
285
|
+
j.Full
|
|
286
|
+
], ze = (e, t) => Re.indexOf(e ?? j.Off) >= Re.indexOf(t);
|
|
287
|
+
function Be(e) {
|
|
288
288
|
if (!e.trim()) return !1;
|
|
289
289
|
if (typeof document > "u") return !0;
|
|
290
290
|
try {
|
|
@@ -293,70 +293,70 @@ function Ve(e) {
|
|
|
293
293
|
return !1;
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
var
|
|
297
|
-
level: l(
|
|
298
|
-
excludeSelectors: c(n().max(200).refine(
|
|
296
|
+
var Ve = d({
|
|
297
|
+
level: l(j).default(j.Off),
|
|
298
|
+
excludeSelectors: c(n().max(200).refine(Be, "Not a valid CSS selector")).max(50).default([]),
|
|
299
299
|
confirmEveryAction: u().default(!1),
|
|
300
300
|
notice: p(n(), n().max(500)).optional(),
|
|
301
301
|
acknowledgedBy: n().optional(),
|
|
302
302
|
acknowledgedAt: m().optional(),
|
|
303
|
-
acknowledgedLevel: l(
|
|
304
|
-
}),
|
|
303
|
+
acknowledgedLevel: l(j).optional()
|
|
304
|
+
}), He = (e, t) => !!e?.acknowledgedBy && e?.acknowledgedAt !== void 0 && ze(e.acknowledgedLevel, t), Ue = (e) => e.startsWith("page_") || e.startsWith("form_"), We = Ve.pick({
|
|
305
305
|
level: !0,
|
|
306
306
|
excludeSelectors: !0,
|
|
307
307
|
confirmEveryAction: !0,
|
|
308
308
|
notice: !0
|
|
309
|
-
}),
|
|
309
|
+
}), Ge = ["fill-fields"];
|
|
310
310
|
d({
|
|
311
311
|
version: s(1),
|
|
312
312
|
forms: c(f()).max(16).default([]),
|
|
313
313
|
features: c(n().max(40)).max(16).default([])
|
|
314
314
|
});
|
|
315
315
|
// ../../packages/models/src/schema/Agent.ts
|
|
316
|
-
var
|
|
316
|
+
var M = /* @__PURE__ */ function(e) {
|
|
317
317
|
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
318
|
-
}({}),
|
|
318
|
+
}({}), N = /* @__PURE__ */ function(e) {
|
|
319
319
|
return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
|
|
320
|
-
}({}),
|
|
320
|
+
}({}), Ke = [N.Organization, N.Restricted], P = /* @__PURE__ */ function(e) {
|
|
321
321
|
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
322
|
-
}({}),
|
|
322
|
+
}({}), F = /* @__PURE__ */ function(e) {
|
|
323
323
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
324
|
-
}({}),
|
|
324
|
+
}({}), I = [
|
|
325
325
|
"none",
|
|
326
326
|
"low",
|
|
327
327
|
"medium",
|
|
328
328
|
"high",
|
|
329
329
|
"xhigh",
|
|
330
330
|
"max"
|
|
331
|
-
],
|
|
331
|
+
], L = [
|
|
332
332
|
"low",
|
|
333
333
|
"medium",
|
|
334
334
|
"high",
|
|
335
335
|
"xhigh",
|
|
336
336
|
"max"
|
|
337
|
-
],
|
|
337
|
+
], R = [
|
|
338
338
|
"minimal",
|
|
339
339
|
"low",
|
|
340
340
|
"medium",
|
|
341
341
|
"high"
|
|
342
|
-
],
|
|
342
|
+
], qe = [
|
|
343
343
|
"auto",
|
|
344
344
|
"detailed",
|
|
345
345
|
"concise"
|
|
346
346
|
], Je = d({
|
|
347
|
-
reasoningEffort: l(
|
|
348
|
-
reasoningSummary: l(
|
|
347
|
+
reasoningEffort: l(I).optional(),
|
|
348
|
+
reasoningSummary: l(qe).optional()
|
|
349
349
|
}), Ye = d({
|
|
350
350
|
type: l([
|
|
351
351
|
"adaptive",
|
|
352
352
|
"enabled",
|
|
353
353
|
"disabled"
|
|
354
354
|
]).optional(),
|
|
355
|
-
effort: l(
|
|
355
|
+
effort: l(L).optional(),
|
|
356
356
|
display: l(["summarized", "omitted"]).optional(),
|
|
357
357
|
budgetTokens: i().int().positive().optional()
|
|
358
358
|
}), Xe = d({
|
|
359
|
-
thinkingLevel: l(
|
|
359
|
+
thinkingLevel: l(R).optional(),
|
|
360
360
|
thinkingBudget: i().int().optional(),
|
|
361
361
|
includeThoughts: u().optional()
|
|
362
362
|
}), Ze = d({ type: l(["enabled", "disabled"]).optional() }), z = [
|
|
@@ -405,17 +405,17 @@ function et(e) {
|
|
|
405
405
|
if ("effort" in t && !n) {
|
|
406
406
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
407
407
|
if (e && e !== "off" && e !== "none") {
|
|
408
|
-
let t = H(e,
|
|
408
|
+
let t = H(e, I), i = H(n, qe);
|
|
409
409
|
(t || i) && (r.openai = {
|
|
410
410
|
...t && { reasoningEffort: t },
|
|
411
411
|
...i && { reasoningSummary: i }
|
|
412
412
|
});
|
|
413
|
-
let a = H(e,
|
|
413
|
+
let a = H(e, L);
|
|
414
414
|
a && (r.anthropic = {
|
|
415
415
|
type: "adaptive",
|
|
416
416
|
effort: a
|
|
417
417
|
});
|
|
418
|
-
let o = H(e === "xhigh" || e === "max" ? "high" : e,
|
|
418
|
+
let o = H(e === "xhigh" || e === "max" ? "high" : e, R);
|
|
419
419
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
420
420
|
let s = H(e === "max" ? "xhigh" : e, B);
|
|
421
421
|
if (s) for (let e of z) r[e] = { reasoningEffort: s };
|
|
@@ -449,7 +449,7 @@ function it(e, t) {
|
|
|
449
449
|
return rt(n) ? n : nt[e];
|
|
450
450
|
}
|
|
451
451
|
var U = /* @__PURE__ */ function(e) {
|
|
452
|
-
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;
|
|
452
|
+
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;
|
|
453
453
|
}({}), at = "mcp-", ot = "api-", st = "subagent-", ct = "enableTools";
|
|
454
454
|
function lt(e) {
|
|
455
455
|
return !ut(e) && e !== U.RequestGeolocation;
|
|
@@ -583,7 +583,7 @@ var St = [
|
|
|
583
583
|
perplexity: Ct.optional(),
|
|
584
584
|
parallel: wt.optional(),
|
|
585
585
|
native: Tt.optional()
|
|
586
|
-
}), Et = d({ useAllUserKb: u().default(!1) }), Dt = d({ useAllUserFiles: u().default(!1) }), Ot = d({ enabled: u().default(!1) }), kt = d({ tools: c(n()).default([]) }), At = d({
|
|
586
|
+
}), Et = d({ useAllUserKb: u().default(!1) }), Dt = d({ useAllUserFiles: u().default(!1) }), Ot = d({ enabled: u().default(!1) }), K = d({ enabled: u().default(!1) }), kt = d({ tools: c(n()).default([]) }), At = d({
|
|
587
587
|
disabled: c(l(U)).default([
|
|
588
588
|
U.UserMemory,
|
|
589
589
|
U.SearchInUserFiles,
|
|
@@ -596,8 +596,10 @@ var St = [
|
|
|
596
596
|
userMemory: Et.optional().default(() => Et.parse({})),
|
|
597
597
|
userFiles: Dt.optional().default(() => Dt.parse({})),
|
|
598
598
|
shareDocument: Ot.optional().default(() => Ot.parse({})),
|
|
599
|
+
createSpreadsheet: K.optional().default(() => K.parse({})),
|
|
600
|
+
createWordDocument: K.optional().default(() => K.parse({})),
|
|
599
601
|
approval: kt.optional().default(() => kt.parse({}))
|
|
600
|
-
}),
|
|
602
|
+
}), q = d({
|
|
601
603
|
freshness: d({
|
|
602
604
|
enabled: u().default(!1),
|
|
603
605
|
scale: i().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -615,20 +617,20 @@ var St = [
|
|
|
615
617
|
maxOutputTokens: i().positive().optional(),
|
|
616
618
|
presencePenalty: i().min(-2).max(2).optional(),
|
|
617
619
|
frequencyPenalty: i().min(-2).max(2).optional(),
|
|
618
|
-
searchMode: l(
|
|
620
|
+
searchMode: l(F).optional().default(F.Balanced),
|
|
619
621
|
limit: i().positive().max(100).optional().default(10),
|
|
620
622
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
621
623
|
reasoning: tt,
|
|
622
|
-
ranking:
|
|
623
|
-
}),
|
|
624
|
+
ranking: q.optional().default(() => q.parse({}))
|
|
625
|
+
}), J = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), Mt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Y = /* @__PURE__ */ function(e) {
|
|
624
626
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
625
|
-
}({}), Y = /* @__PURE__ */ function(e) {
|
|
626
|
-
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
627
627
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
628
|
-
return e.
|
|
628
|
+
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
629
629
|
}({}), Z = /* @__PURE__ */ function(e) {
|
|
630
|
+
return e.Solid = "solid", e.Glass = "glass", e;
|
|
631
|
+
}({}), Q = /* @__PURE__ */ function(e) {
|
|
630
632
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
631
|
-
}({}), Nt = Object.values(
|
|
633
|
+
}({}), Nt = Object.values(Q), Pt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
632
634
|
function Ft(e) {
|
|
633
635
|
let t = e.trim().toLowerCase();
|
|
634
636
|
if (!t) return "";
|
|
@@ -638,7 +640,7 @@ function Ft(e) {
|
|
|
638
640
|
return t;
|
|
639
641
|
}
|
|
640
642
|
}
|
|
641
|
-
var
|
|
643
|
+
var It = d({
|
|
642
644
|
media: ne.optional(),
|
|
643
645
|
logo: n().optional(),
|
|
644
646
|
theme: l([
|
|
@@ -653,29 +655,29 @@ var Q = d({
|
|
|
653
655
|
"black"
|
|
654
656
|
]).optional().default("auto"),
|
|
655
657
|
useColorsForAgentHeader: u().optional().default(!1),
|
|
656
|
-
initialMessage:
|
|
657
|
-
greeting: c(
|
|
658
|
-
messagePlaceholder:
|
|
659
|
-
dismissableNotice:
|
|
660
|
-
footerMessage:
|
|
661
|
-
privacyPolicyNotice:
|
|
658
|
+
initialMessage: J.optional(),
|
|
659
|
+
greeting: c(J).min(1).max(10).optional(),
|
|
660
|
+
messagePlaceholder: J.optional(),
|
|
661
|
+
dismissableNotice: J.optional(),
|
|
662
|
+
footerMessage: J.optional(),
|
|
663
|
+
privacyPolicyNotice: J.optional(),
|
|
662
664
|
interactiveLogin: u().optional().default(!0),
|
|
663
665
|
welcomePopup: u().optional().default(!1),
|
|
664
666
|
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
665
|
-
layout: l(
|
|
666
|
-
appearance: l(
|
|
667
|
+
layout: l(X).optional().default(X.Floating),
|
|
668
|
+
appearance: l(Z).optional().default(Z.Solid),
|
|
667
669
|
hideFloatingButton: u().optional().default(!1),
|
|
668
670
|
workingGlow: u().optional().default(!0),
|
|
669
671
|
copilotPageCss: n().optional(),
|
|
670
672
|
maxMessageLength: i().int().positive().optional(),
|
|
671
673
|
widgetUrl: r().default(Mt),
|
|
672
674
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
673
|
-
loaderStrategy: l(
|
|
675
|
+
loaderStrategy: l(Y).optional().default(Y.InlineModule),
|
|
674
676
|
customCss: n().optional(),
|
|
675
677
|
smoothStream: u().optional().default(!1),
|
|
676
678
|
showExtendedSteps: u().optional().default(!1),
|
|
677
679
|
imageHosts: c(n().overwrite(Ft).refine((e) => e === "" || Pt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
678
|
-
}),
|
|
680
|
+
}), Lt = [
|
|
679
681
|
"image/jpeg",
|
|
680
682
|
"image/png",
|
|
681
683
|
"image/gif",
|
|
@@ -684,19 +686,19 @@ var Q = d({
|
|
|
684
686
|
"text/plain",
|
|
685
687
|
"text/markdown",
|
|
686
688
|
"text/csv"
|
|
687
|
-
],
|
|
689
|
+
], Rt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", zt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Bt = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(U.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(U.WordDocument), $ = d({
|
|
688
690
|
enabled: u().default(!1),
|
|
689
691
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
690
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([...
|
|
692
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...Lt]),
|
|
691
693
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
692
694
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
693
|
-
}),
|
|
695
|
+
}), Vt = d({
|
|
694
696
|
zeroDataRetention: u().default(!0),
|
|
695
697
|
disallowPromptTraining: u().default(!0),
|
|
696
698
|
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
697
|
-
}),
|
|
699
|
+
}), Ht = d({ enabled: u().default(!1) }), Ut = /* @__PURE__ */ function(e) {
|
|
698
700
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
699
|
-
}({}),
|
|
701
|
+
}({}), Wt = d({ mode: l(Ut).default(Ut.Off) }), Gt = d({
|
|
700
702
|
enabled: u().default(!1),
|
|
701
703
|
voiceId: n().optional(),
|
|
702
704
|
language: n().min(2).max(5).default("it"),
|
|
@@ -715,40 +717,40 @@ var Q = d({
|
|
|
715
717
|
providerAgentId: n().optional(),
|
|
716
718
|
providerSecretId: n().optional(),
|
|
717
719
|
providerApiKeyId: n().optional()
|
|
718
|
-
}),
|
|
720
|
+
}), Kt = d({ enabled: u() });
|
|
719
721
|
d({
|
|
720
722
|
chatId: n().min(1).optional(),
|
|
721
|
-
deviceContext:
|
|
723
|
+
deviceContext: ke.optional(),
|
|
722
724
|
externalContext: p(n(), f()).optional()
|
|
723
725
|
});
|
|
724
|
-
var
|
|
726
|
+
var qt = d({
|
|
725
727
|
sessionId: n(),
|
|
726
728
|
signedUrl: n(),
|
|
727
729
|
providerAgentId: n(),
|
|
728
730
|
chatId: n(),
|
|
729
731
|
maxSessionSeconds: i().int()
|
|
730
|
-
}),
|
|
732
|
+
}), Jt = d({
|
|
731
733
|
voiceId: n(),
|
|
732
734
|
name: n(),
|
|
733
735
|
category: n().optional(),
|
|
734
736
|
previewUrl: n().optional(),
|
|
735
737
|
labels: p(n(), n()).optional()
|
|
736
738
|
});
|
|
737
|
-
c(
|
|
738
|
-
var
|
|
739
|
+
c(Jt);
|
|
740
|
+
var Yt = d({
|
|
739
741
|
model: jt,
|
|
740
|
-
interface:
|
|
742
|
+
interface: It,
|
|
741
743
|
tools: At.optional().default(() => At.parse({})),
|
|
742
744
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
743
|
-
gatewayOptions:
|
|
744
|
-
channels: c(l(
|
|
745
|
+
gatewayOptions: Vt.optional().default(() => Vt.parse({})),
|
|
746
|
+
channels: c(l(Q)).optional().default(() => [...Nt]),
|
|
745
747
|
externalContextSchema: ae.optional(),
|
|
746
|
-
openaiApi:
|
|
747
|
-
voice:
|
|
748
|
-
toolWorkingSet:
|
|
749
|
-
hostTools:
|
|
750
|
-
pageAccess:
|
|
751
|
-
}),
|
|
748
|
+
openaiApi: Ht.optional().default(() => Ht.parse({})),
|
|
749
|
+
voice: Gt.optional().default(() => Gt.parse({})),
|
|
750
|
+
toolWorkingSet: Wt.optional().default(() => Wt.parse({})),
|
|
751
|
+
hostTools: Ne.optional(),
|
|
752
|
+
pageAccess: Ve.optional()
|
|
753
|
+
}), Xt = d({
|
|
752
754
|
rateLimits: d({
|
|
753
755
|
minuteRateLimit: i().int().min(0).optional(),
|
|
754
756
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -763,11 +765,11 @@ d({
|
|
|
763
765
|
prompt: n().optional(),
|
|
764
766
|
model: n().optional(),
|
|
765
767
|
fallbackModels: c(n()).default([]),
|
|
766
|
-
status: l(
|
|
767
|
-
visibility: l(
|
|
768
|
-
settings:
|
|
769
|
-
security:
|
|
770
|
-
type: l(
|
|
768
|
+
status: l(M).default(M.Draft),
|
|
769
|
+
visibility: l(N).default(N.Organization),
|
|
770
|
+
settings: Yt,
|
|
771
|
+
security: Xt.nullish(),
|
|
772
|
+
type: l(P).default(P.Chat),
|
|
771
773
|
organizationId: n()
|
|
772
774
|
}), ee(() => d({
|
|
773
775
|
id: n(),
|
|
@@ -775,11 +777,11 @@ d({
|
|
|
775
777
|
prompt: n(),
|
|
776
778
|
model: n(),
|
|
777
779
|
fallbackModels: c(n()).nullable().default([]),
|
|
778
|
-
status: l(
|
|
779
|
-
visibility: l(
|
|
780
|
-
settings:
|
|
781
|
-
security:
|
|
782
|
-
type: l(
|
|
780
|
+
status: l(M).default(M.Draft),
|
|
781
|
+
visibility: l(N).default(N.Organization),
|
|
782
|
+
settings: Yt,
|
|
783
|
+
security: Xt.nullable(),
|
|
784
|
+
type: l(P).default(P.Chat),
|
|
783
785
|
organizationId: n(),
|
|
784
786
|
createdAt: m(),
|
|
785
787
|
createdBy: n(),
|
|
@@ -791,23 +793,23 @@ d({
|
|
|
791
793
|
outOfBudget: u().optional().default(!1),
|
|
792
794
|
outOfBudgetReason: n().optional().default("")
|
|
793
795
|
}));
|
|
794
|
-
var
|
|
796
|
+
var Zt = d({
|
|
795
797
|
id: n(),
|
|
796
798
|
name: n(),
|
|
797
|
-
status: l(
|
|
798
|
-
visibility: l(
|
|
799
|
+
status: l(M),
|
|
800
|
+
visibility: l(N),
|
|
799
801
|
organizationId: n(),
|
|
800
|
-
interface:
|
|
802
|
+
interface: It,
|
|
801
803
|
createdAt: m(),
|
|
802
804
|
updatedAt: m(),
|
|
803
805
|
capabilities: d({
|
|
804
806
|
fileUpload: $,
|
|
805
|
-
voice:
|
|
806
|
-
hostTools:
|
|
807
|
-
pageAccess:
|
|
807
|
+
voice: Kt,
|
|
808
|
+
hostTools: Pe.optional(),
|
|
809
|
+
pageAccess: We.optional()
|
|
808
810
|
}),
|
|
809
|
-
channels: c(l(
|
|
810
|
-
}),
|
|
811
|
+
channels: c(l(Q)).default(() => [...Nt])
|
|
812
|
+
}), Qt = It.pick({
|
|
811
813
|
logo: !0,
|
|
812
814
|
mainColor: !0,
|
|
813
815
|
textColor: !0,
|
|
@@ -818,41 +820,41 @@ var Xt = d({
|
|
|
818
820
|
hideFloatingButton: !0,
|
|
819
821
|
copilotPageCss: !0,
|
|
820
822
|
customCss: !0
|
|
821
|
-
}),
|
|
823
|
+
}), $t = Zt.pick({
|
|
822
824
|
id: !0,
|
|
823
825
|
name: !0,
|
|
824
826
|
organizationId: !0
|
|
825
|
-
}).extend({ interface:
|
|
827
|
+
}).extend({ interface: Qt }), en = d({
|
|
826
828
|
emailPassword: u(),
|
|
827
829
|
google: u(),
|
|
828
830
|
microsoft: u()
|
|
829
|
-
}),
|
|
831
|
+
}), tn = d({
|
|
830
832
|
requiresAuth: s(!1),
|
|
831
|
-
agent:
|
|
833
|
+
agent: Zt,
|
|
832
834
|
branding: a()
|
|
833
|
-
}),
|
|
835
|
+
}), nn = d({
|
|
834
836
|
requiresAuth: s(!0),
|
|
835
837
|
agent: a(),
|
|
836
|
-
branding:
|
|
838
|
+
branding: $t
|
|
837
839
|
});
|
|
838
|
-
te("requiresAuth", [
|
|
839
|
-
var
|
|
840
|
+
te("requiresAuth", [tn, nn]);
|
|
841
|
+
var rn = d({
|
|
840
842
|
frontendUrl: n().optional(),
|
|
841
843
|
telemetry: d({
|
|
842
844
|
environment: n(),
|
|
843
845
|
samplingRate: i().min(0).max(1)
|
|
844
846
|
}).nullable()
|
|
845
|
-
}),
|
|
846
|
-
authMethods:
|
|
847
|
+
}), an = d({
|
|
848
|
+
authMethods: en,
|
|
847
849
|
deploymentBranding: fe.nullish(),
|
|
848
|
-
deployment:
|
|
850
|
+
deployment: rn.optional()
|
|
849
851
|
});
|
|
850
|
-
te("requiresAuth", [
|
|
852
|
+
te("requiresAuth", [tn.extend(an.shape), nn.extend(an.shape)]), d({
|
|
851
853
|
id: t(),
|
|
852
854
|
limited: u(),
|
|
853
855
|
agentIds: c(t())
|
|
854
856
|
});
|
|
855
|
-
var
|
|
857
|
+
var on = d({
|
|
856
858
|
userId: t(),
|
|
857
859
|
name: n(),
|
|
858
860
|
email: n(),
|
|
@@ -863,7 +865,7 @@ var an = d({
|
|
|
863
865
|
});
|
|
864
866
|
d({
|
|
865
867
|
id: t(),
|
|
866
|
-
members: c(
|
|
868
|
+
members: c(on)
|
|
867
869
|
}), d({
|
|
868
870
|
id: t(),
|
|
869
871
|
userIds: c(t())
|
|
@@ -884,6 +886,6 @@ d({
|
|
|
884
886
|
...g.fullText(),
|
|
885
887
|
...g.ids()
|
|
886
888
|
});
|
|
887
|
-
export {
|
|
889
|
+
export { Fe as $, St as A, vt as B, I as C, pt as D, st as E, Bt as F, He as G, Ft as H, Qe as I, ze as J, Ue as K, ft as L, W as M, lt as N, gt as O, it as P, Ie as Q, ut as R, Ke as S, Rt as T, Ge as U, xt as V, j as W, Le as X, A as Y, Ae as Z, ht as _, $ as a, ye as at, R as b, q as c, me as ct, Ut as d, g as dt, ke as et, P as f, X as g, Z as h, Q as i, we as it, zt as j, qt as k, tt as l, h as lt, G as m, ot as n, D as nt, Vt as o, ue as ot, N as p, Be as q, U as r, _ as rt, Y as s, Te as st, L as t, b as tt, F as u, le as ut, ct as v, qe as w, at as x, B as y, mt as z };
|
|
888
890
|
|
|
889
|
-
//# sourceMappingURL=Agent-
|
|
891
|
+
//# sourceMappingURL=Agent-B-jQOrER.js.map
|