@8wave/ai-elements 0.119.0-beta.45 → 0.119.0-beta.49
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/dist/_chunks/{Agent-Gdgpd3LA.js → Agent-DU38SnNd.js} +411 -247
- package/dist/_chunks/Agent-DU38SnNd.js.map +1 -0
- package/dist/_chunks/{PkChatbotFilePreview-3i9jZIdS.js → PkChatbotFilePreview-Bdi4_IFu.js} +2 -2
- package/dist/_chunks/PkChatbotFilePreview-Bdi4_IFu.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-B1t1tBvW.js → PkStreamingMarkdown-pEgm7m-B.js} +6 -6
- package/dist/_chunks/PkStreamingMarkdown-pEgm7m-B.js.map +1 -0
- package/dist/_chunks/{PkToolEditSpreadsheet-Xzum_9NH.js → PkToolEditSpreadsheet-Ct9pdQJ1.js} +3 -3
- package/dist/_chunks/{PkToolEditSpreadsheet-Xzum_9NH.js.map → PkToolEditSpreadsheet-Ct9pdQJ1.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-PxhQxMP1.js → PkToolRequestGeolocation-DzhrY8bg.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-PxhQxMP1.js.map → PkToolRequestGeolocation-DzhrY8bg.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-W3ilzpr7.js → PkToolRequestOAuthConnection-CzRKRGoG.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-W3ilzpr7.js.map → PkToolRequestOAuthConnection-CzRKRGoG.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DGGEb2LF.js → PkToolShowArtifact-D6ZTw5vh.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DGGEb2LF.js.map → PkToolShowArtifact-D6ZTw5vh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Dn6CEXF_.js → PkToolShowContactForm-CW7gKQ7h.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-Dn6CEXF_.js.map → PkToolShowContactForm-CW7gKQ7h.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CbuToc8O.js → PkToolShowForm-D_2FmDwq.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-CbuToc8O.js.map → PkToolShowForm-D_2FmDwq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-Dh0v2Df8.js → PkToolShowImageGallery-KmMO4UuQ.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-Dh0v2Df8.js.map → PkToolShowImageGallery-KmMO4UuQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-bAis8u1t.js → PkToolShowProductList-cld-FOFb.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-bAis8u1t.js.map → PkToolShowProductList-cld-FOFb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-B1zXilsH.js → PkToolShowSources-DyzheirE.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-B1zXilsH.js.map → PkToolShowSources-DyzheirE.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BISQY1ce.js → PkToolShowSuggestedReply-xUBuqStM.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BISQY1ce.js.map → PkToolShowSuggestedReply-xUBuqStM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DcMzLibC.js → PkToolShowVideo-KDNxItWl.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-DcMzLibC.js.map → PkToolShowVideo-KDNxItWl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-RuwkZDMH.js → PkToolShowWebPages-D35B7GzS.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-RuwkZDMH.js.map → PkToolShowWebPages-D35B7GzS.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-BL4O14e9.js → chatImagePolicy-B_6Xg-r7.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-BL4O14e9.js.map → chatImagePolicy-B_6Xg-r7.js.map} +1 -1
- package/dist/_chunks/{markdown-DtdG9Krq.js → markdown-BKLfFJPr.js} +2 -2
- package/dist/_chunks/{markdown-DtdG9Krq.js.map → markdown-BKLfFJPr.js.map} +1 -1
- package/dist/ai-elements.es.js +2549 -2544
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotFilePreview.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-DGCZCx4Y.js → Agent-DDm9cCaN.js} +2 -2
- package/dist-vue/_chunks/{Agent-DGCZCx4Y.js.map → Agent-DDm9cCaN.js.map} +1 -1
- package/dist-vue/_chunks/{Document-BZea8ewV.js → Document-CZemm1AR.js} +11 -11
- package/dist-vue/_chunks/{Document-BZea8ewV.js.map → Document-CZemm1AR.js.map} +1 -1
- package/dist-vue/_chunks/Media-D-UGzdcW.js +301 -0
- package/dist-vue/_chunks/Media-D-UGzdcW.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-BVWLvaXb.js → PkChatbot-viqlDa9r.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-BVWLvaXb.js.map → PkChatbot-viqlDa9r.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-BVZzjbK9.js → PkChatbotAuth-CHoEXxmg.js} +8 -8
- package/dist-vue/_chunks/{PkChatbotAuth-BVZzjbK9.js.map → PkChatbotAuth-CHoEXxmg.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-B7fZ51v1.js → PkChatbotEmptyState-B-2GZ2ZU.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-B7fZ51v1.js.map → PkChatbotEmptyState-B-2GZ2ZU.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFilePreview-Lxgu89Hg.js → PkChatbotFilePreview-D8XyjDPJ.js} +2 -2
- package/dist-vue/_chunks/PkChatbotFilePreview-D8XyjDPJ.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotInput-D4bT_1be.js +392 -0
- package/dist-vue/_chunks/PkChatbotInput-D4bT_1be.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-DHZNG6YM.js → PkChatbotMessages-BgcGen7D.js} +19 -19
- package/dist-vue/_chunks/{PkChatbotMessages-DHZNG6YM.js.map → PkChatbotMessages-BgcGen7D.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-DuI9ZYqp.js → PkChatbotStepPayload-CzCHmvUG.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-DuI9ZYqp.js.map → PkChatbotStepPayload-CzCHmvUG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B9hBMl15.js → PkChatbotStepToolDetail-qSHrVOGO.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B9hBMl15.js.map → PkChatbotStepToolDetail-qSHrVOGO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-3qySSEYh.js → PkChatbotSteps-dgj6C2hA.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-3qySSEYh.js.map → PkChatbotSteps-dgj6C2hA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CLyoZH3C.js → PkChatbotViewChat-BtbE6V2u.js} +259 -258
- package/dist-vue/_chunks/PkChatbotViewChat-BtbE6V2u.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-BbXFoEOv.js → PkChatbotViewConversations-Cw9fL47_.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BbXFoEOv.js.map → PkChatbotViewConversations-Cw9fL47_.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-7vcERhnZ.js → PkChatbotViewFiles-DDEJqXct.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-7vcERhnZ.js.map → PkChatbotViewFiles-DDEJqXct.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-RgFp-LpV.js → PkChatbotViewProfile-B79UynQ8.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-RgFp-LpV.js.map → PkChatbotViewProfile-B79UynQ8.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-Bmm1kZpL.js → PkStreamingMarkdown-DXoUbGsP.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-Bmm1kZpL.js.map → PkStreamingMarkdown-DXoUbGsP.js.map} +1 -1
- package/dist-vue/_chunks/{PkSvgViewer-DU8K_gAD.js → PkSvgViewer-CZASatr4.js} +2 -2
- package/dist-vue/_chunks/{PkSvgViewer-DU8K_gAD.js.map → PkSvgViewer-CZASatr4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BIQky1RK.js → PkToolEditSpreadsheet-Dcp3VFzY.js} +3 -3
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BIQky1RK.js.map → PkToolEditSpreadsheet-Dcp3VFzY.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CYEyXZSh.js → PkToolRequestGeolocation-DG4-qKRq.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CYEyXZSh.js.map → PkToolRequestGeolocation-DG4-qKRq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-B243GJ1-.js → PkToolRequestOAuthConnection-CZhNEM-o.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-B243GJ1-.js.map → PkToolRequestOAuthConnection-CZhNEM-o.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-CJG-B9mE.js → PkToolShowArtifact-BRtz1x7K.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-CJG-B9mE.js.map → PkToolShowArtifact-BRtz1x7K.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CG1H7xBz.js → PkToolShowContactForm-D0CR80e2.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CG1H7xBz.js.map → PkToolShowContactForm-D0CR80e2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-Cq0457a3.js → PkToolShowDiagram-CYpqqWLo.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowDiagram-Cq0457a3.js.map → PkToolShowDiagram-CYpqqWLo.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-IJ8B8_yT.js → PkToolShowForm-BIsu4XhQ.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-IJ8B8_yT.js.map → PkToolShowForm-BIsu4XhQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-ala8nlAj.js → PkToolShowImageGallery-DkEv-6Nu.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowImageGallery-ala8nlAj.js.map → PkToolShowImageGallery-DkEv-6Nu.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-BDg84ZQN.js → PkToolShowProductList-Dr2mQqsb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-BDg84ZQN.js.map → PkToolShowProductList-Dr2mQqsb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DaSijN_L.js → PkToolShowSources-CxUDh6cC.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DaSijN_L.js.map → PkToolShowSources-CxUDh6cC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-CLEFPrHP.js → PkToolShowSuggestedReply-Cl3Pswi4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-CLEFPrHP.js.map → PkToolShowSuggestedReply-Cl3Pswi4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-FmE-IRE7.js → PkToolShowVideo-Bh1oagOm.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-FmE-IRE7.js.map → PkToolShowVideo-Bh1oagOm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-B554-MlD.js → PkToolShowWebPages-ilQ1qTEC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-B554-MlD.js.map → PkToolShowWebPages-ilQ1qTEC.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CDS3C4i6.js → createChatbotApiClient-DrUsRvCw.js} +3 -3
- package/dist-vue/_chunks/{createChatbotApiClient-CDS3C4i6.js.map → createChatbotApiClient-DrUsRvCw.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-CBjBe7GI.js → useChatbotStore-DHmjHPR5.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-CBjBe7GI.js.map → useChatbotStore-DHmjHPR5.js.map} +1 -1
- package/dist-vue/_chunks/{utils-Cvijhryt.js → utils-Bopp5IPf.js} +5 -5
- package/dist-vue/_chunks/utils-Bopp5IPf.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +7 -5
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +5194 -5189
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +4 -0
- package/dist-vue/packages/models/src/schema/Media.d.ts +34 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-Gdgpd3LA.js.map +0 -1
- package/dist/_chunks/PkChatbotFilePreview-3i9jZIdS.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown-B1t1tBvW.js.map +0 -1
- package/dist-vue/_chunks/Media-C6RS-s98.js +0 -139
- package/dist-vue/_chunks/Media-C6RS-s98.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotFilePreview-Lxgu89Hg.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-Bo4Ewf6A.js +0 -388
- package/dist-vue/_chunks/PkChatbotInput-Bo4Ewf6A.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-CLyoZH3C.js.map +0 -1
- package/dist-vue/_chunks/utils-Cvijhryt.js.map +0 -1
|
@@ -3,9 +3,9 @@ import { C as e, S as t, _ as n, a as r, b as i, c as a, f as o, g as s, l as ee
|
|
|
3
3
|
var g = (e, t, n) => a(e, t, {
|
|
4
4
|
encode: (e) => e,
|
|
5
5
|
decode: n
|
|
6
|
-
}),
|
|
6
|
+
}), _ = 51200, ne = h(i(), t()).refine((e) => JSON.stringify(e).length <= _, { message: `Schema must not exceed ${_ / 1024} KB` });
|
|
7
7
|
m();
|
|
8
|
-
var
|
|
8
|
+
var re = (e) => [`${e}`, `-${e}`], ie = (e) => e.flatMap((e) => re(e)), v = {
|
|
9
9
|
pagination: (e = 1, t = 10) => ({
|
|
10
10
|
"page[number]": s().or(i()).transform((e) => Number(e)).default(e),
|
|
11
11
|
"page[size]": s().or(i()).transform((e) => Number(e)).default(t)
|
|
@@ -20,21 +20,21 @@ var ie = (e) => [`${e}`, `-${e}`], ae = (e) => e.flatMap((e) => ie(e)), _ = {
|
|
|
20
20
|
fullText: () => ({ "filter[fullText]": i().optional() }),
|
|
21
21
|
ids: () => ({ ids: te([i(), c(i())]).optional() }),
|
|
22
22
|
deleted: () => ({ "filter[isDeleted]": d().default(!1) }),
|
|
23
|
-
filters: (e) => e.map((e) =>
|
|
23
|
+
filters: (e) => e.map((e) => v.filter(e)).reduce((e, t) => ({
|
|
24
24
|
...e,
|
|
25
25
|
...t
|
|
26
26
|
})),
|
|
27
27
|
sort: (e) => {
|
|
28
|
-
let t =
|
|
28
|
+
let t = ie(e);
|
|
29
29
|
return { sort: u(t).optional().default(t[0]) };
|
|
30
30
|
}
|
|
31
|
-
},
|
|
32
|
-
brand: i().regex(
|
|
33
|
-
accent: i().regex(
|
|
34
|
-
info: i().regex(
|
|
31
|
+
}, y = /^#[0-9A-Fa-f]{6}$/, ae = n({
|
|
32
|
+
brand: i().regex(y),
|
|
33
|
+
accent: i().regex(y),
|
|
34
|
+
info: i().regex(y)
|
|
35
35
|
}), b = n({
|
|
36
|
-
light:
|
|
37
|
-
dark:
|
|
36
|
+
light: ae,
|
|
37
|
+
dark: ae
|
|
38
38
|
}), x = /* @__PURE__ */ function(e) {
|
|
39
39
|
return e.System = "system", e.ForceLight = "force-light", e.ForceDark = "force-dark", e;
|
|
40
40
|
}({}), S = /* @__PURE__ */ function(e) {
|
|
@@ -51,13 +51,13 @@ var C = n({
|
|
|
51
51
|
]),
|
|
52
52
|
width: s().int().positive().nullable(),
|
|
53
53
|
height: s().int().positive().nullable()
|
|
54
|
-
}),
|
|
54
|
+
}), oe = 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
|
-
}),
|
|
60
|
+
}), w = n({
|
|
61
61
|
productName: i().trim().min(1).max(60),
|
|
62
62
|
shortName: i().trim().min(1).max(24),
|
|
63
63
|
description: i().trim().max(200).nullable(),
|
|
@@ -67,42 +67,42 @@ var C = n({
|
|
|
67
67
|
n({
|
|
68
68
|
colors: b,
|
|
69
69
|
mode: u(x),
|
|
70
|
-
assets:
|
|
71
|
-
text:
|
|
70
|
+
assets: oe,
|
|
71
|
+
text: w
|
|
72
72
|
}).extend({ version: i() });
|
|
73
|
-
var
|
|
74
|
-
productName:
|
|
75
|
-
shortName:
|
|
76
|
-
}),
|
|
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({
|
|
77
77
|
colors: b.nullish(),
|
|
78
78
|
mode: u(x).nullish(),
|
|
79
|
-
assets:
|
|
80
|
-
text:
|
|
79
|
+
assets: T.nullish(),
|
|
80
|
+
text: E.nullish()
|
|
81
81
|
});
|
|
82
82
|
n({
|
|
83
|
-
patch:
|
|
83
|
+
patch: ce,
|
|
84
84
|
revision: i().min(1).max(64)
|
|
85
85
|
});
|
|
86
|
-
var
|
|
86
|
+
var D = (e) => e.optional().catch(void 0);
|
|
87
87
|
n({
|
|
88
|
-
colors:
|
|
89
|
-
mode:
|
|
90
|
-
assets:
|
|
91
|
-
[S.LogoLight]:
|
|
92
|
-
[S.LogoDark]:
|
|
93
|
-
[S.Mark]:
|
|
94
|
-
[S.EmailLogo]:
|
|
95
|
-
[S.EmailBanner]:
|
|
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)
|
|
96
96
|
}).nullable()),
|
|
97
|
-
text:
|
|
98
|
-
productName:
|
|
99
|
-
shortName:
|
|
100
|
-
description:
|
|
101
|
-
productTagline:
|
|
102
|
-
companyName:
|
|
97
|
+
text: D(n({
|
|
98
|
+
productName: D(E.shape.productName),
|
|
99
|
+
shortName: D(E.shape.shortName),
|
|
100
|
+
description: D(E.shape.description),
|
|
101
|
+
productTagline: D(E.shape.productTagline),
|
|
102
|
+
companyName: D(E.shape.companyName)
|
|
103
103
|
}).nullable())
|
|
104
|
-
}),
|
|
105
|
-
...
|
|
104
|
+
}), O({
|
|
105
|
+
...O({
|
|
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 O(e) {
|
|
143
143
|
if (e && typeof e == "object") {
|
|
144
|
-
for (let t of Object.values(e))
|
|
144
|
+
for (let t of Object.values(e)) O(t);
|
|
145
145
|
Object.freeze(e);
|
|
146
146
|
}
|
|
147
147
|
return e;
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region ../../packages/models/src/schema/DeviceContext.ts
|
|
151
|
-
var
|
|
151
|
+
var le = n({
|
|
152
152
|
dateTime: i().optional(),
|
|
153
153
|
timezone: i().optional(),
|
|
154
154
|
language: i().optional(),
|
|
@@ -178,7 +178,7 @@ var ce = n({
|
|
|
178
178
|
geolocationLongitude: s().optional(),
|
|
179
179
|
geolocationAccuracy: s().optional(),
|
|
180
180
|
geolocationCity: i().optional()
|
|
181
|
-
}),
|
|
181
|
+
}), k = /^[a-z]+\/[a-z0-9\-+.]+$/i, ue = new Set([
|
|
182
182
|
[".mp3", "audio/mpeg"],
|
|
183
183
|
[".m4a", "audio/mp4"],
|
|
184
184
|
[".m4a", "audio/x-m4a"],
|
|
@@ -191,7 +191,7 @@ var ce = n({
|
|
|
191
191
|
[".opus", "audio/ogg"],
|
|
192
192
|
[".flac", "audio/flac"],
|
|
193
193
|
[".flac", "audio/x-flac"]
|
|
194
|
-
].map(([e]) => e)),
|
|
194
|
+
].map(([e]) => e)), de = /* @__PURE__ */ new Set([
|
|
195
195
|
".amr",
|
|
196
196
|
".3ga",
|
|
197
197
|
".aif",
|
|
@@ -201,9 +201,173 @@ var ce = n({
|
|
|
201
201
|
".mka",
|
|
202
202
|
".weba",
|
|
203
203
|
".wma"
|
|
204
|
-
]),
|
|
205
|
-
let n =
|
|
206
|
-
return
|
|
204
|
+
]), A = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", fe = (e, t) => {
|
|
205
|
+
let n = Ee(e ?? "");
|
|
206
|
+
return A(t).startsWith("audio/") || ue.has(n) || de.has(n);
|
|
207
|
+
}, j = [
|
|
208
|
+
{
|
|
209
|
+
extensions: [".html", ".htm"],
|
|
210
|
+
mimeType: "text/html",
|
|
211
|
+
aliases: []
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
extensions: [".css"],
|
|
215
|
+
mimeType: "text/css",
|
|
216
|
+
aliases: []
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
extensions: [".scss"],
|
|
220
|
+
mimeType: "text/x-scss",
|
|
221
|
+
aliases: ["text/scss"]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
extensions: [
|
|
225
|
+
".js",
|
|
226
|
+
".mjs",
|
|
227
|
+
".cjs",
|
|
228
|
+
".jsx"
|
|
229
|
+
],
|
|
230
|
+
mimeType: "text/javascript",
|
|
231
|
+
aliases: [
|
|
232
|
+
"application/javascript",
|
|
233
|
+
"application/x-javascript",
|
|
234
|
+
"text/jsx"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
extensions: [
|
|
239
|
+
".ts",
|
|
240
|
+
".mts",
|
|
241
|
+
".cts",
|
|
242
|
+
".tsx"
|
|
243
|
+
],
|
|
244
|
+
mimeType: "text/x-typescript",
|
|
245
|
+
aliases: [
|
|
246
|
+
"application/typescript",
|
|
247
|
+
"application/x-typescript",
|
|
248
|
+
"text/typescript",
|
|
249
|
+
"text/tsx",
|
|
250
|
+
"video/mp2t"
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
extensions: [".vue"],
|
|
255
|
+
mimeType: "text/x-vue",
|
|
256
|
+
aliases: []
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
extensions: [".json"],
|
|
260
|
+
mimeType: "application/json",
|
|
261
|
+
aliases: ["text/json", "text/x-json"]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
extensions: [".xml"],
|
|
265
|
+
mimeType: "application/xml",
|
|
266
|
+
aliases: ["text/xml"]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
extensions: [".yaml", ".yml"],
|
|
270
|
+
mimeType: "application/yaml",
|
|
271
|
+
aliases: [
|
|
272
|
+
"application/x-yaml",
|
|
273
|
+
"text/yaml",
|
|
274
|
+
"text/x-yaml"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
extensions: [".toml"],
|
|
279
|
+
mimeType: "application/toml",
|
|
280
|
+
aliases: ["text/x-toml"]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
extensions: [".py"],
|
|
284
|
+
mimeType: "text/x-python",
|
|
285
|
+
aliases: ["text/x-python-script", "application/x-python"]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
extensions: [".java"],
|
|
289
|
+
mimeType: "text/x-java",
|
|
290
|
+
aliases: ["text/x-java-source"]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
extensions: [".kt"],
|
|
294
|
+
mimeType: "text/x-kotlin",
|
|
295
|
+
aliases: []
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
extensions: [".c", ".h"],
|
|
299
|
+
mimeType: "text/x-c",
|
|
300
|
+
aliases: ["text/x-csrc", "text/x-chdr"]
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
extensions: [
|
|
304
|
+
".cpp",
|
|
305
|
+
".cc",
|
|
306
|
+
".cxx",
|
|
307
|
+
".hpp"
|
|
308
|
+
],
|
|
309
|
+
mimeType: "text/x-c++",
|
|
310
|
+
aliases: ["text/x-c++src", "text/x-c++hdr"]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
extensions: [".cs"],
|
|
314
|
+
mimeType: "text/x-csharp",
|
|
315
|
+
aliases: []
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
extensions: [".go"],
|
|
319
|
+
mimeType: "text/x-go",
|
|
320
|
+
aliases: []
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
extensions: [".rs"],
|
|
324
|
+
mimeType: "text/x-rust",
|
|
325
|
+
aliases: ["application/rls-services+xml"]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
extensions: [".rb"],
|
|
329
|
+
mimeType: "text/x-ruby",
|
|
330
|
+
aliases: ["application/x-ruby"]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
extensions: [".php"],
|
|
334
|
+
mimeType: "text/x-php",
|
|
335
|
+
aliases: ["application/x-php", "application/x-httpd-php"]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
extensions: [".swift"],
|
|
339
|
+
mimeType: "text/x-swift",
|
|
340
|
+
aliases: []
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
extensions: [".sql"],
|
|
344
|
+
mimeType: "application/sql",
|
|
345
|
+
aliases: ["application/x-sql", "text/x-sql"]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
extensions: [
|
|
349
|
+
".sh",
|
|
350
|
+
".bash",
|
|
351
|
+
".zsh"
|
|
352
|
+
],
|
|
353
|
+
mimeType: "text/x-sh",
|
|
354
|
+
aliases: [
|
|
355
|
+
"application/x-sh",
|
|
356
|
+
"application/x-shellscript",
|
|
357
|
+
"text/x-shellscript"
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
];
|
|
361
|
+
j.map((e) => e.mimeType);
|
|
362
|
+
var pe = (e) => j.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), me = (e, t) => {
|
|
363
|
+
if (t.length === 0) return !0;
|
|
364
|
+
let n = j.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
|
|
365
|
+
"",
|
|
366
|
+
"application/octet-stream",
|
|
367
|
+
"text/plain",
|
|
368
|
+
...n.flatMap((e) => e.aliases)
|
|
369
|
+
] : []);
|
|
370
|
+
return e.length > 0 && e.every((e) => r.has(A(e)) || t.some((t) => e.includes(t)));
|
|
207
371
|
};
|
|
208
372
|
n({
|
|
209
373
|
status: u([
|
|
@@ -217,47 +381,47 @@ n({
|
|
|
217
381
|
durationSeconds: s().optional(),
|
|
218
382
|
model: i().optional()
|
|
219
383
|
});
|
|
220
|
-
var
|
|
384
|
+
var he = /* @__PURE__ */ function(e) {
|
|
221
385
|
return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
|
|
222
|
-
}({}),
|
|
386
|
+
}({}), ge = n({
|
|
223
387
|
type: l("azure-blob"),
|
|
224
388
|
blobUri: e(),
|
|
225
389
|
containerName: i().min(1),
|
|
226
390
|
pathRelativeToContainer: i().min(1)
|
|
227
|
-
}),
|
|
391
|
+
}), _e = n({
|
|
228
392
|
type: l("s3"),
|
|
229
393
|
bucket: i().min(1),
|
|
230
394
|
key: i().min(1),
|
|
231
395
|
region: i().min(1)
|
|
232
|
-
}),
|
|
396
|
+
}), ve = p("type", [ge, _e]), M = n({
|
|
233
397
|
type: i().min(1),
|
|
234
398
|
name: i().min(1),
|
|
235
|
-
mimeType: i().regex(
|
|
399
|
+
mimeType: i().regex(k),
|
|
236
400
|
bytesCount: s().positive(),
|
|
237
401
|
extension: i().regex(/^\.[a-zA-Z0-9]+$/).overwrite((e) => e.toLowerCase()),
|
|
238
402
|
storedFileName: i().optional(),
|
|
239
403
|
metadata: h(i(), i()).default({}),
|
|
240
404
|
tags: h(i(), i()).default({})
|
|
241
405
|
}).extend({
|
|
242
|
-
storageHandle:
|
|
243
|
-
storagePolicy: u(
|
|
406
|
+
storageHandle: ve,
|
|
407
|
+
storagePolicy: u(he),
|
|
244
408
|
signData: i().optional(),
|
|
245
409
|
storedFileName: i().min(1)
|
|
246
|
-
}),
|
|
410
|
+
}), N = n({
|
|
247
411
|
name: i().min(1),
|
|
248
|
-
src:
|
|
249
|
-
srcSet: c(
|
|
412
|
+
src: M,
|
|
413
|
+
srcSet: c(M).default([]),
|
|
250
414
|
rawOptions: ee().optional()
|
|
251
415
|
});
|
|
252
416
|
n({
|
|
253
|
-
src:
|
|
417
|
+
src: M,
|
|
254
418
|
uploadHandle: n({
|
|
255
419
|
uploadSasuri: e(),
|
|
256
420
|
metadata: h(i(), i()).default({}),
|
|
257
421
|
tags: h(i(), i()).default({})
|
|
258
422
|
})
|
|
259
423
|
}), n({
|
|
260
|
-
src:
|
|
424
|
+
src: M,
|
|
261
425
|
downloadHandle: n({
|
|
262
426
|
downloadSasuri: e(),
|
|
263
427
|
viewSasuri: e(),
|
|
@@ -266,192 +430,192 @@ n({
|
|
|
266
430
|
type: i()
|
|
267
431
|
})
|
|
268
432
|
});
|
|
269
|
-
var
|
|
433
|
+
var P = /* @__PURE__ */ function(e) {
|
|
270
434
|
return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
|
|
271
|
-
}({}),
|
|
272
|
-
type: l(
|
|
435
|
+
}({}), ye = n({
|
|
436
|
+
type: l(P.picture),
|
|
273
437
|
width: s().positive(),
|
|
274
438
|
height: s().positive(),
|
|
275
439
|
blurhash: i().optional()
|
|
276
|
-
}),
|
|
277
|
-
type: l(
|
|
440
|
+
}), be = n({
|
|
441
|
+
type: l(P.video),
|
|
278
442
|
width: s().positive(),
|
|
279
443
|
height: s().positive(),
|
|
280
444
|
duration: s().nonnegative()
|
|
281
|
-
}),
|
|
282
|
-
type: l(
|
|
445
|
+
}), xe = n({
|
|
446
|
+
type: l(P.audio),
|
|
283
447
|
duration: s().nonnegative()
|
|
284
|
-
}),
|
|
448
|
+
}), Se = n({ type: l(P.office) }), Ce = n({ type: l(P.archive) }), we = n({ type: l(P.binary) }), Te = n({ type: l(P.executable) });
|
|
285
449
|
p("type", [
|
|
286
|
-
_e,
|
|
287
|
-
ve,
|
|
288
450
|
ye,
|
|
289
451
|
be,
|
|
290
452
|
xe,
|
|
291
453
|
Se,
|
|
292
|
-
Ce
|
|
454
|
+
Ce,
|
|
455
|
+
we,
|
|
456
|
+
Te
|
|
293
457
|
]);
|
|
294
|
-
var
|
|
458
|
+
var Ee = (e) => {
|
|
295
459
|
let t = e.lastIndexOf(".");
|
|
296
460
|
return t === -1 ? "" : e.slice(t).toLowerCase();
|
|
297
|
-
},
|
|
461
|
+
}, F = /* @__PURE__ */ function(e) {
|
|
298
462
|
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
299
|
-
}({}), F = /* @__PURE__ */ function(e) {
|
|
300
|
-
return e.Public = "public", e.Private = "private", e.Organization = "organization", e;
|
|
301
463
|
}({}), I = /* @__PURE__ */ function(e) {
|
|
302
|
-
return e.
|
|
464
|
+
return e.Public = "public", e.Private = "private", e.Organization = "organization", e;
|
|
303
465
|
}({}), L = /* @__PURE__ */ function(e) {
|
|
466
|
+
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
467
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
304
468
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
305
|
-
}({}),
|
|
469
|
+
}({}), De = [
|
|
306
470
|
"none",
|
|
307
471
|
"low",
|
|
308
472
|
"medium",
|
|
309
473
|
"high",
|
|
310
474
|
"xhigh",
|
|
311
475
|
"max"
|
|
312
|
-
],
|
|
476
|
+
], Oe = [
|
|
313
477
|
"low",
|
|
314
478
|
"medium",
|
|
315
479
|
"high",
|
|
316
480
|
"xhigh",
|
|
317
481
|
"max"
|
|
318
|
-
],
|
|
482
|
+
], ke = [
|
|
319
483
|
"minimal",
|
|
320
484
|
"low",
|
|
321
485
|
"medium",
|
|
322
486
|
"high"
|
|
323
|
-
],
|
|
487
|
+
], Ae = [
|
|
324
488
|
"auto",
|
|
325
489
|
"detailed",
|
|
326
490
|
"concise"
|
|
327
|
-
],
|
|
328
|
-
reasoningEffort: u(
|
|
329
|
-
reasoningSummary: u(
|
|
330
|
-
}),
|
|
491
|
+
], je = n({
|
|
492
|
+
reasoningEffort: u(De).optional(),
|
|
493
|
+
reasoningSummary: u(Ae).optional()
|
|
494
|
+
}), Me = n({
|
|
331
495
|
type: u([
|
|
332
496
|
"adaptive",
|
|
333
497
|
"enabled",
|
|
334
498
|
"disabled"
|
|
335
499
|
]).optional(),
|
|
336
|
-
effort: u(
|
|
500
|
+
effort: u(Oe).optional(),
|
|
337
501
|
display: u(["summarized", "omitted"]).optional(),
|
|
338
502
|
budgetTokens: s().int().positive().optional()
|
|
339
|
-
}),
|
|
340
|
-
thinkingLevel: u(
|
|
503
|
+
}), Ne = n({
|
|
504
|
+
thinkingLevel: u(ke).optional(),
|
|
341
505
|
thinkingBudget: s().int().optional(),
|
|
342
506
|
includeThoughts: d().optional()
|
|
343
|
-
}),
|
|
507
|
+
}), Pe = n({ type: u(["enabled", "disabled"]).optional() }), z = [
|
|
344
508
|
"alibaba",
|
|
345
509
|
"meta",
|
|
346
510
|
"moonshotai",
|
|
347
511
|
"spacexai",
|
|
348
512
|
"xiaomi",
|
|
349
513
|
"zai"
|
|
350
|
-
],
|
|
514
|
+
], Fe = [
|
|
351
515
|
"none",
|
|
352
516
|
"minimal",
|
|
353
517
|
"low",
|
|
354
518
|
"medium",
|
|
355
519
|
"high",
|
|
356
520
|
"xhigh"
|
|
357
|
-
],
|
|
358
|
-
function
|
|
521
|
+
], B = n({ reasoningEffort: u(Fe).optional() });
|
|
522
|
+
function V(e, t) {
|
|
359
523
|
return e && t.includes(e) ? e : void 0;
|
|
360
524
|
}
|
|
361
|
-
var
|
|
362
|
-
openai:
|
|
363
|
-
anthropic:
|
|
364
|
-
google:
|
|
365
|
-
deepseek:
|
|
366
|
-
alibaba:
|
|
367
|
-
meta:
|
|
368
|
-
moonshotai:
|
|
369
|
-
spacexai:
|
|
370
|
-
xiaomi:
|
|
371
|
-
zai:
|
|
525
|
+
var Ie = n({
|
|
526
|
+
openai: je.optional(),
|
|
527
|
+
anthropic: Me.optional(),
|
|
528
|
+
google: Ne.optional(),
|
|
529
|
+
deepseek: Pe.optional(),
|
|
530
|
+
alibaba: B.optional(),
|
|
531
|
+
meta: B.optional(),
|
|
532
|
+
moonshotai: B.optional(),
|
|
533
|
+
spacexai: B.optional(),
|
|
534
|
+
xiaomi: B.optional(),
|
|
535
|
+
zai: B.optional()
|
|
372
536
|
});
|
|
373
|
-
function
|
|
537
|
+
function Le(e) {
|
|
374
538
|
if (!e || typeof e != "object") return e;
|
|
375
539
|
let t = e, n = [
|
|
376
540
|
"openai",
|
|
377
541
|
"anthropic",
|
|
378
542
|
"google",
|
|
379
543
|
"deepseek",
|
|
380
|
-
...
|
|
544
|
+
...z
|
|
381
545
|
].some((e) => e in t);
|
|
382
546
|
if ("effort" in t && !n) {
|
|
383
547
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
384
548
|
if (e && e !== "off" && e !== "none") {
|
|
385
|
-
let t =
|
|
549
|
+
let t = V(e, De), i = V(n, Ae);
|
|
386
550
|
(t || i) && (r.openai = {
|
|
387
551
|
...t && { reasoningEffort: t },
|
|
388
552
|
...i && { reasoningSummary: i }
|
|
389
553
|
});
|
|
390
|
-
let a =
|
|
554
|
+
let a = V(e, Oe);
|
|
391
555
|
a && (r.anthropic = {
|
|
392
556
|
type: "adaptive",
|
|
393
557
|
effort: a
|
|
394
558
|
});
|
|
395
|
-
let o =
|
|
559
|
+
let o = V(e === "xhigh" || e === "max" ? "high" : e, ke);
|
|
396
560
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
397
|
-
let s =
|
|
398
|
-
if (s) for (let e of
|
|
561
|
+
let s = V(e === "max" ? "xhigh" : e, Fe);
|
|
562
|
+
if (s) for (let e of z) r[e] = { reasoningEffort: s };
|
|
399
563
|
} else {
|
|
400
564
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
401
|
-
for (let e of
|
|
565
|
+
for (let e of z) r[e] = { reasoningEffort: "none" };
|
|
402
566
|
}
|
|
403
567
|
return r;
|
|
404
568
|
}
|
|
405
569
|
return e;
|
|
406
570
|
}
|
|
407
|
-
var
|
|
571
|
+
var H = g(t(), Ie, Le).optional(), U = /* @__PURE__ */ function(e) {
|
|
408
572
|
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;
|
|
409
|
-
}({}),
|
|
410
|
-
function
|
|
411
|
-
return e ===
|
|
573
|
+
}({}), Re = "mcp-", ze = "api-", Be = "subagent-";
|
|
574
|
+
function Ve(e) {
|
|
575
|
+
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;
|
|
412
576
|
}
|
|
413
|
-
|
|
414
|
-
var
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
577
|
+
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;
|
|
578
|
+
var W = /* @__PURE__ */ new Set([
|
|
579
|
+
U.RequestConfirm,
|
|
580
|
+
U.RequestGeolocation,
|
|
581
|
+
U.ShowForm,
|
|
582
|
+
U.ShowMultipleChoice,
|
|
419
583
|
"requestOAuthConnection"
|
|
420
584
|
]);
|
|
421
|
-
function ze(e) {
|
|
422
|
-
return Re.has(e);
|
|
423
|
-
}
|
|
424
|
-
var Be = /* @__PURE__ */ new Set([
|
|
425
|
-
W.RequestConfirm,
|
|
426
|
-
W.RequestGeolocation,
|
|
427
|
-
W.ShowArtifact,
|
|
428
|
-
W.ShowCalendarEvent,
|
|
429
|
-
W.ShowContactForm,
|
|
430
|
-
W.ShowComparison,
|
|
431
|
-
W.ShowDiagram,
|
|
432
|
-
W.ShowEmail,
|
|
433
|
-
W.ShowForm,
|
|
434
|
-
W.ShowImageGallery,
|
|
435
|
-
W.ShowLocation,
|
|
436
|
-
W.ShowMessage,
|
|
437
|
-
W.ShowMultipleChoice,
|
|
438
|
-
W.ShowProductList,
|
|
439
|
-
W.ShowQrCode,
|
|
440
|
-
W.ShowSources,
|
|
441
|
-
W.ShowSuggestedReply,
|
|
442
|
-
W.ShowVideo,
|
|
443
|
-
W.ShowWeather,
|
|
444
|
-
W.ShowWebPages
|
|
445
|
-
]), Ve = "Shown on the caller's screen";
|
|
446
585
|
function He(e) {
|
|
447
|
-
return
|
|
586
|
+
return W.has(e);
|
|
587
|
+
}
|
|
588
|
+
var Ue = /* @__PURE__ */ new Set([
|
|
589
|
+
U.RequestConfirm,
|
|
590
|
+
U.RequestGeolocation,
|
|
591
|
+
U.ShowArtifact,
|
|
592
|
+
U.ShowCalendarEvent,
|
|
593
|
+
U.ShowContactForm,
|
|
594
|
+
U.ShowComparison,
|
|
595
|
+
U.ShowDiagram,
|
|
596
|
+
U.ShowEmail,
|
|
597
|
+
U.ShowForm,
|
|
598
|
+
U.ShowImageGallery,
|
|
599
|
+
U.ShowLocation,
|
|
600
|
+
U.ShowMessage,
|
|
601
|
+
U.ShowMultipleChoice,
|
|
602
|
+
U.ShowProductList,
|
|
603
|
+
U.ShowQrCode,
|
|
604
|
+
U.ShowSources,
|
|
605
|
+
U.ShowSuggestedReply,
|
|
606
|
+
U.ShowVideo,
|
|
607
|
+
U.ShowWeather,
|
|
608
|
+
U.ShowWebPages
|
|
609
|
+
]), We = "Shown on the caller's screen";
|
|
610
|
+
function Ge(e) {
|
|
611
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(We));
|
|
448
612
|
}
|
|
449
|
-
var
|
|
613
|
+
var G = n({
|
|
450
614
|
maxSteps: s().int().min(1).max(10).optional().default(5),
|
|
451
615
|
maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
|
|
452
|
-
}),
|
|
616
|
+
}), K = /* @__PURE__ */ function(e) {
|
|
453
617
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
454
|
-
}({}),
|
|
618
|
+
}({}), Ke = n({
|
|
455
619
|
maxResults: s().int().min(1).max(20).optional(),
|
|
456
620
|
maxTokens: s().int().positive().max(1e6).optional(),
|
|
457
621
|
maxTokensPerPage: s().int().positive().optional(),
|
|
@@ -464,7 +628,7 @@ var Ue = n({
|
|
|
464
628
|
"month",
|
|
465
629
|
"year"
|
|
466
630
|
]).optional()
|
|
467
|
-
}),
|
|
631
|
+
}), qe = n({
|
|
468
632
|
mode: u(["one-shot", "agentic"]).optional(),
|
|
469
633
|
maxResults: s().int().min(1).max(20).optional(),
|
|
470
634
|
sourcePolicy: n({
|
|
@@ -477,7 +641,7 @@ var Ue = n({
|
|
|
477
641
|
maxCharsTotal: s().int().positive().optional()
|
|
478
642
|
}).optional(),
|
|
479
643
|
fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
|
|
480
|
-
}),
|
|
644
|
+
}), Je = n({
|
|
481
645
|
openai: n({}).optional(),
|
|
482
646
|
anthropic: n({
|
|
483
647
|
maxUses: s().int().positive().optional(),
|
|
@@ -492,26 +656,26 @@ var Ue = n({
|
|
|
492
656
|
}).optional()
|
|
493
657
|
}).optional(),
|
|
494
658
|
google: n({}).optional()
|
|
495
|
-
}),
|
|
659
|
+
}), q = n({
|
|
496
660
|
enabled: d().default(!1),
|
|
497
|
-
provider: u(
|
|
498
|
-
perplexity:
|
|
499
|
-
parallel:
|
|
500
|
-
native:
|
|
501
|
-
}),
|
|
502
|
-
disabled: c(u(
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
661
|
+
provider: u(K).optional().default(K.Native),
|
|
662
|
+
perplexity: Ke.optional(),
|
|
663
|
+
parallel: qe.optional(),
|
|
664
|
+
native: Je.optional()
|
|
665
|
+
}), Ye = n({ useAllUserKb: d().default(!1) }), Xe = n({ useAllUserFiles: d().default(!1) }), Ze = n({ tools: c(i()).default([]) }), Qe = n({
|
|
666
|
+
disabled: c(u(U)).default([
|
|
667
|
+
U.UserMemory,
|
|
668
|
+
U.SearchInUserFiles,
|
|
669
|
+
U.RunWorker,
|
|
670
|
+
U.FetchTeamsChannelHistory,
|
|
671
|
+
U.ScheduleWakeup
|
|
508
672
|
]),
|
|
509
|
-
showForm:
|
|
510
|
-
webSearch:
|
|
511
|
-
userMemory:
|
|
512
|
-
userFiles:
|
|
513
|
-
approval:
|
|
514
|
-
}),
|
|
673
|
+
showForm: G.optional().default(() => G.parse({})),
|
|
674
|
+
webSearch: q.optional().default(() => q.parse({})),
|
|
675
|
+
userMemory: Ye.optional().default(() => Ye.parse({})),
|
|
676
|
+
userFiles: Xe.optional().default(() => Xe.parse({})),
|
|
677
|
+
approval: Ze.optional().default(() => Ze.parse({}))
|
|
678
|
+
}), J = n({
|
|
515
679
|
freshness: n({
|
|
516
680
|
enabled: d().default(!1),
|
|
517
681
|
scale: s().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -523,23 +687,23 @@ var Ue = n({
|
|
|
523
687
|
diversity: s().min(0).max(1).default(.3),
|
|
524
688
|
candidatesLimit: s().int().min(20).max(100).default(50)
|
|
525
689
|
}).prefault({})
|
|
526
|
-
}).prefault({}),
|
|
690
|
+
}).prefault({}), $e = n({
|
|
527
691
|
prompt: i().optional(),
|
|
528
692
|
temperature: s().min(0).max(2).optional().default(.6),
|
|
529
693
|
maxOutputTokens: s().positive().optional(),
|
|
530
694
|
presencePenalty: s().min(-2).max(2).optional(),
|
|
531
695
|
frequencyPenalty: s().min(-2).max(2).optional(),
|
|
532
|
-
searchMode: u(
|
|
696
|
+
searchMode: u(R).optional().default(R.Balanced),
|
|
533
697
|
limit: s().positive().max(100).optional().default(10),
|
|
534
698
|
maxStepCount: s().int().min(1).max(40).optional().default(10),
|
|
535
|
-
reasoning:
|
|
536
|
-
ranking:
|
|
537
|
-
}),
|
|
699
|
+
reasoning: H,
|
|
700
|
+
ranking: J.optional().default(() => J.parse({}))
|
|
701
|
+
}), Y = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), et = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", tt = /* @__PURE__ */ function(e) {
|
|
538
702
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
539
|
-
}({}),
|
|
703
|
+
}({}), X = /* @__PURE__ */ function(e) {
|
|
540
704
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
541
|
-
}({}),
|
|
542
|
-
function
|
|
705
|
+
}({}), nt = Object.values(X), rt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
706
|
+
function it(e) {
|
|
543
707
|
let t = e.trim().toLowerCase();
|
|
544
708
|
if (!t) return "";
|
|
545
709
|
try {
|
|
@@ -548,39 +712,39 @@ function rt(e) {
|
|
|
548
712
|
return t;
|
|
549
713
|
}
|
|
550
714
|
}
|
|
551
|
-
var
|
|
552
|
-
media:
|
|
715
|
+
var Z = n({
|
|
716
|
+
media: N.optional(),
|
|
553
717
|
logo: i().optional(),
|
|
554
718
|
theme: u([
|
|
555
719
|
"light",
|
|
556
720
|
"dark",
|
|
557
721
|
"auto"
|
|
558
722
|
]).optional().default("auto"),
|
|
559
|
-
mainColor: i().regex(
|
|
723
|
+
mainColor: i().regex(y).optional().default("#000000"),
|
|
560
724
|
textColor: u([
|
|
561
725
|
"auto",
|
|
562
726
|
"white",
|
|
563
727
|
"black"
|
|
564
728
|
]).optional().default("auto"),
|
|
565
729
|
useColorsForAgentHeader: d().optional().default(!1),
|
|
566
|
-
initialMessage:
|
|
567
|
-
greeting: c(
|
|
568
|
-
messagePlaceholder:
|
|
569
|
-
dismissableNotice:
|
|
570
|
-
footerMessage:
|
|
571
|
-
privacyPolicyNotice:
|
|
730
|
+
initialMessage: Y.optional(),
|
|
731
|
+
greeting: c(Y).min(1).max(10).optional(),
|
|
732
|
+
messagePlaceholder: Y.optional(),
|
|
733
|
+
dismissableNotice: Y.optional(),
|
|
734
|
+
footerMessage: Y.optional(),
|
|
735
|
+
privacyPolicyNotice: Y.optional(),
|
|
572
736
|
interactiveLogin: d().optional().default(!0),
|
|
573
737
|
welcomePopup: d().optional().default(!1),
|
|
574
738
|
floatingButtonPosition: u(["left", "right"]).optional().default("right"),
|
|
575
739
|
maxMessageLength: s().int().positive().optional(),
|
|
576
|
-
widgetUrl: e().default(
|
|
740
|
+
widgetUrl: e().default(et),
|
|
577
741
|
loadDelay: s().int().min(0).max(3e4).optional().default(0),
|
|
578
|
-
loaderStrategy: u(
|
|
742
|
+
loaderStrategy: u(tt).optional().default(tt.InlineModule),
|
|
579
743
|
customCss: i().optional(),
|
|
580
744
|
smoothStream: d().optional().default(!1),
|
|
581
745
|
showExtendedSteps: d().optional().default(!1),
|
|
582
|
-
imageHosts: c(i().overwrite(
|
|
583
|
-
}),
|
|
746
|
+
imageHosts: c(i().overwrite(it).refine((e) => e === "" || rt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
747
|
+
}), at = [
|
|
584
748
|
"image/jpeg",
|
|
585
749
|
"image/png",
|
|
586
750
|
"image/gif",
|
|
@@ -589,19 +753,19 @@ var Y = n({
|
|
|
589
753
|
"text/plain",
|
|
590
754
|
"text/markdown",
|
|
591
755
|
"text/csv"
|
|
592
|
-
],
|
|
756
|
+
], ot = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Q = n({
|
|
593
757
|
enabled: d().default(!1),
|
|
594
758
|
maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
|
|
595
|
-
allowedMimeTypes: c(i().regex(
|
|
759
|
+
allowedMimeTypes: c(i().regex(k)).optional().default([...at]),
|
|
596
760
|
maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
|
|
597
761
|
maxFilesPerChat: s().int().positive().max(50).optional().default(20)
|
|
598
|
-
}),
|
|
762
|
+
}), $ = n({
|
|
599
763
|
zeroDataRetention: d().default(!0),
|
|
600
764
|
disallowPromptTraining: d().default(!0),
|
|
601
765
|
providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
|
|
602
|
-
}),
|
|
766
|
+
}), st = n({ enabled: d().default(!1) }), ct = /* @__PURE__ */ function(e) {
|
|
603
767
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
604
|
-
}({}),
|
|
768
|
+
}({}), lt = n({ mode: u(ct).default(ct.Off) }), ut = n({
|
|
605
769
|
enabled: d().default(!1),
|
|
606
770
|
voiceId: i().optional(),
|
|
607
771
|
language: i().min(2).max(5).default("it"),
|
|
@@ -620,38 +784,38 @@ var Y = n({
|
|
|
620
784
|
providerAgentId: i().optional(),
|
|
621
785
|
providerSecretId: i().optional(),
|
|
622
786
|
providerApiKeyId: i().optional()
|
|
623
|
-
}),
|
|
787
|
+
}), dt = n({ enabled: d() });
|
|
624
788
|
n({
|
|
625
789
|
chatId: i().min(1).optional(),
|
|
626
|
-
deviceContext:
|
|
790
|
+
deviceContext: le.optional(),
|
|
627
791
|
externalContext: h(i(), t()).optional()
|
|
628
792
|
});
|
|
629
|
-
var
|
|
793
|
+
var ft = n({
|
|
630
794
|
sessionId: i(),
|
|
631
795
|
signedUrl: i(),
|
|
632
796
|
providerAgentId: i(),
|
|
633
797
|
chatId: i(),
|
|
634
798
|
maxSessionSeconds: s().int()
|
|
635
|
-
}),
|
|
799
|
+
}), pt = n({
|
|
636
800
|
voiceId: i(),
|
|
637
801
|
name: i(),
|
|
638
802
|
category: i().optional(),
|
|
639
803
|
previewUrl: i().optional(),
|
|
640
804
|
labels: h(i(), i()).optional()
|
|
641
805
|
});
|
|
642
|
-
c(
|
|
643
|
-
var
|
|
644
|
-
model:
|
|
645
|
-
interface:
|
|
646
|
-
tools:
|
|
647
|
-
fileUpload:
|
|
648
|
-
gatewayOptions:
|
|
649
|
-
channels: c(u(
|
|
650
|
-
externalContextSchema:
|
|
651
|
-
openaiApi:
|
|
652
|
-
voice:
|
|
653
|
-
toolWorkingSet:
|
|
654
|
-
}),
|
|
806
|
+
c(pt);
|
|
807
|
+
var mt = n({
|
|
808
|
+
model: $e,
|
|
809
|
+
interface: Z,
|
|
810
|
+
tools: Qe.optional().default(() => Qe.parse({})),
|
|
811
|
+
fileUpload: Q.optional().default(() => Q.parse({})),
|
|
812
|
+
gatewayOptions: $.optional().default(() => $.parse({})),
|
|
813
|
+
channels: c(u(X)).optional().default(() => [...nt]),
|
|
814
|
+
externalContextSchema: ne.optional(),
|
|
815
|
+
openaiApi: st.optional().default(() => st.parse({})),
|
|
816
|
+
voice: ut.optional().default(() => ut.parse({})),
|
|
817
|
+
toolWorkingSet: lt.optional().default(() => lt.parse({}))
|
|
818
|
+
}), ht = n({
|
|
655
819
|
rateLimits: n({
|
|
656
820
|
minuteRateLimit: s().int().min(0).optional(),
|
|
657
821
|
hourRateLimit: s().int().min(0).optional(),
|
|
@@ -666,11 +830,11 @@ n({
|
|
|
666
830
|
prompt: i().optional(),
|
|
667
831
|
model: i().optional(),
|
|
668
832
|
fallbackModels: c(i()).default([]),
|
|
669
|
-
status: u(
|
|
670
|
-
visibility: u(
|
|
671
|
-
settings:
|
|
672
|
-
security:
|
|
673
|
-
type: u(
|
|
833
|
+
status: u(F).default(F.Draft),
|
|
834
|
+
visibility: u(I).default(I.Organization),
|
|
835
|
+
settings: mt,
|
|
836
|
+
security: ht.nullish(),
|
|
837
|
+
type: u(L).default(L.Chat),
|
|
674
838
|
organizationId: i()
|
|
675
839
|
}), o(() => n({
|
|
676
840
|
id: i(),
|
|
@@ -678,11 +842,11 @@ n({
|
|
|
678
842
|
prompt: i(),
|
|
679
843
|
model: i(),
|
|
680
844
|
fallbackModels: c(i()).nullable().default([]),
|
|
681
|
-
status: u(
|
|
682
|
-
visibility: u(
|
|
683
|
-
settings:
|
|
684
|
-
security:
|
|
685
|
-
type: u(
|
|
845
|
+
status: u(F).default(F.Draft),
|
|
846
|
+
visibility: u(I).default(I.Organization),
|
|
847
|
+
settings: mt,
|
|
848
|
+
security: ht.nullable(),
|
|
849
|
+
type: u(L).default(L.Chat),
|
|
686
850
|
organizationId: i(),
|
|
687
851
|
createdAt: f(),
|
|
688
852
|
createdBy: i(),
|
|
@@ -694,55 +858,55 @@ n({
|
|
|
694
858
|
outOfBudget: d().optional().default(!1),
|
|
695
859
|
outOfBudgetReason: i().optional().default("")
|
|
696
860
|
}));
|
|
697
|
-
var
|
|
861
|
+
var gt = n({
|
|
698
862
|
id: i(),
|
|
699
863
|
name: i(),
|
|
700
|
-
status: u(
|
|
701
|
-
visibility: u(
|
|
864
|
+
status: u(F),
|
|
865
|
+
visibility: u(I),
|
|
702
866
|
organizationId: i(),
|
|
703
|
-
interface:
|
|
867
|
+
interface: Z,
|
|
704
868
|
createdAt: f(),
|
|
705
869
|
updatedAt: f(),
|
|
706
870
|
capabilities: n({
|
|
707
|
-
fileUpload:
|
|
708
|
-
voice:
|
|
871
|
+
fileUpload: Q,
|
|
872
|
+
voice: dt
|
|
709
873
|
}),
|
|
710
|
-
channels: c(u(
|
|
711
|
-
}),
|
|
874
|
+
channels: c(u(X)).default(() => [...nt])
|
|
875
|
+
}), _t = Z.pick({
|
|
712
876
|
logo: !0,
|
|
713
877
|
mainColor: !0,
|
|
714
878
|
textColor: !0,
|
|
715
879
|
theme: !0,
|
|
716
880
|
floatingButtonPosition: !0,
|
|
717
881
|
customCss: !0
|
|
718
|
-
}),
|
|
882
|
+
}), vt = gt.pick({
|
|
719
883
|
id: !0,
|
|
720
884
|
name: !0,
|
|
721
885
|
organizationId: !0
|
|
722
|
-
}).extend({ interface:
|
|
886
|
+
}).extend({ interface: _t }), yt = n({
|
|
723
887
|
emailPassword: d(),
|
|
724
888
|
google: d(),
|
|
725
889
|
microsoft: d()
|
|
726
|
-
}),
|
|
890
|
+
}), bt = n({
|
|
727
891
|
requiresAuth: l(!1),
|
|
728
|
-
agent:
|
|
892
|
+
agent: gt,
|
|
729
893
|
branding: r()
|
|
730
|
-
}),
|
|
894
|
+
}), xt = n({
|
|
731
895
|
requiresAuth: l(!0),
|
|
732
896
|
agent: r(),
|
|
733
|
-
branding:
|
|
897
|
+
branding: vt
|
|
734
898
|
});
|
|
735
|
-
p("requiresAuth", [
|
|
736
|
-
var
|
|
737
|
-
authMethods:
|
|
738
|
-
deploymentBranding:
|
|
899
|
+
p("requiresAuth", [bt, xt]);
|
|
900
|
+
var St = n({
|
|
901
|
+
authMethods: yt,
|
|
902
|
+
deploymentBranding: se.nullish()
|
|
739
903
|
});
|
|
740
|
-
p("requiresAuth", [
|
|
904
|
+
p("requiresAuth", [bt.extend(St.shape), xt.extend(St.shape)]), n({
|
|
741
905
|
id: m(),
|
|
742
906
|
agentIds: c(m())
|
|
743
907
|
}), n({
|
|
744
|
-
...
|
|
745
|
-
...
|
|
908
|
+
...v.pagination(),
|
|
909
|
+
...v.sort([
|
|
746
910
|
"id",
|
|
747
911
|
"updatedAt",
|
|
748
912
|
"createdAt",
|
|
@@ -752,12 +916,12 @@ p("requiresAuth", [vt.extend($.shape), yt.extend($.shape)]), n({
|
|
|
752
916
|
"visibility",
|
|
753
917
|
"model"
|
|
754
918
|
]),
|
|
755
|
-
...
|
|
756
|
-
...
|
|
757
|
-
...
|
|
758
|
-
...
|
|
919
|
+
...v.filters(["done", "type"]),
|
|
920
|
+
...v.filter("id"),
|
|
921
|
+
...v.fullText(),
|
|
922
|
+
...v.ids()
|
|
759
923
|
});
|
|
760
924
|
//#endregion
|
|
761
|
-
export {
|
|
925
|
+
export { le as C, fe as S, v as T, it as _, H as a, me as b, Re as c, W as d, Ue as f, Ge as g, He as h, J as i, ot as l, Ve as m, U as n, R as o, ft as p, $ as r, q as s, ze as t, Be as u, k as v, g as w, pe as x, N as y };
|
|
762
926
|
|
|
763
|
-
//# sourceMappingURL=Agent-
|
|
927
|
+
//# sourceMappingURL=Agent-DU38SnNd.js.map
|