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