@8wave/ai-elements 0.117.0 → 0.118.0-beta.16
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-DDAyL-4q.js → Agent-D8YrsP52.js} +15 -11
- package/dist/_chunks/Agent-D8YrsP52.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js → PkStreamingMarkdown--CcBvs19.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-D58uGMVJ.js.map → PkStreamingMarkdown--CcBvs19.js.map} +1 -1
- package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js → PkToolEditSpreadsheet-5vHzEy4P.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-y3S5O_ld.js.map → PkToolEditSpreadsheet-5vHzEy4P.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js → PkToolRequestGeolocation-Cj8hTfNF.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DUD4RaA_.js.map → PkToolRequestGeolocation-Cj8hTfNF.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js → PkToolRequestOAuthConnection-BWxR1hV4.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-ryjE17UY.js.map → PkToolRequestOAuthConnection-BWxR1hV4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js → PkToolShowArtifact-BVGN7hV2.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-CefFRN9d.js.map → PkToolShowArtifact-BVGN7hV2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js → PkToolShowContactForm-Blrwqpl0.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-Q58lENmc.js.map → PkToolShowContactForm-Blrwqpl0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DCluttiO.js → PkToolShowForm-BpGHaN6x.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-DCluttiO.js.map → PkToolShowForm-BpGHaN6x.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js → PkToolShowImageGallery-CIhIrIcY.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DzU2_qQW.js.map → PkToolShowImageGallery-CIhIrIcY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js → PkToolShowProductList-BjWKnbyD.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-0P7S5Ywo.js.map → PkToolShowProductList-BjWKnbyD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js → PkToolShowSources-8c9RvGV1.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-D0IpU1NU.js.map → PkToolShowSources-8c9RvGV1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js → PkToolShowSuggestedReply-0KahUIlw.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-0RVUEzK_.js.map → PkToolShowSuggestedReply-0KahUIlw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js → PkToolShowVideo-_V_d-PDr.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-C5RfIsFU.js.map → PkToolShowVideo-_V_d-PDr.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js → PkToolShowWebPages-D55VEPjK.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-D-sv52_o.js.map → PkToolShowWebPages-D55VEPjK.js.map} +1 -1
- package/dist/_chunks/{browser-BJcsjj9S.js → browser-CuMi3Hhg.js} +796 -701
- package/dist/_chunks/browser-CuMi3Hhg.js.map +1 -0
- package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js → chatImagePolicy-DXkhb-N_.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-CiUR4uD1.js.map → chatImagePolicy-DXkhb-N_.js.map} +1 -1
- package/dist/_chunks/{markdown-lpamC2tL.js → markdown-c59ir6tw.js} +4 -3
- package/dist/_chunks/markdown-c59ir6tw.js.map +1 -0
- package/dist/ai-elements.es.js +245 -145
- 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/PkChatbotFeedbackForm.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-dGF8mkG9.js +758 -0
- package/dist-vue/_chunks/{Agent-Bd_4UVe4.js.map → Agent-dGF8mkG9.js.map} +1 -1
- package/dist-vue/_chunks/{Document-BrMThi12.js → Document-B-oyVh7v.js} +219 -218
- package/dist-vue/_chunks/Document-B-oyVh7v.js.map +1 -0
- package/dist-vue/_chunks/Media-C6RS-s98.js +139 -0
- package/dist-vue/_chunks/Media-C6RS-s98.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js → PkChatbot-Cm45hwYw.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-EnNiOHfT.js.map → PkChatbot-Cm45hwYw.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js → PkChatbotAuth-BMLLTSwK.js} +78 -78
- package/dist-vue/_chunks/{PkChatbotAuth-DaMi8miP.js.map → PkChatbotAuth-BMLLTSwK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js → PkChatbotEmptyState-D2dhInfG.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CeLapjG_.js.map → PkChatbotEmptyState-D2dhInfG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js → PkChatbotFeedbackForm-CMFXjoKR.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BBjQEC_J.js.map → PkChatbotFeedbackForm-CMFXjoKR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js → PkChatbotInput-CQdxFbBR.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-Chu3tBbe.js.map → PkChatbotInput-CQdxFbBR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js → PkChatbotMessages-coscJcpy.js} +29 -29
- package/dist-vue/_chunks/{PkChatbotMessages-B2_Tpjk6.js.map → PkChatbotMessages-coscJcpy.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js → PkChatbotStepPayload-DnqFluQZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BMRSMjrw.js.map → PkChatbotStepPayload-DnqFluQZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js → PkChatbotStepToolDetail-BMslY_BG.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DbAFKTSl.js.map → PkChatbotStepToolDetail-BMslY_BG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js → PkChatbotSteps-7FT6Ju6_.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CcXw6JiJ.js.map → PkChatbotSteps-7FT6Ju6_.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-eXFjwNkz.js → PkChatbotViewChat-Cko-Cw6c.js} +205 -198
- package/dist-vue/_chunks/PkChatbotViewChat-Cko-Cw6c.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js → PkChatbotViewConversations-DHeFtAfN.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-uaKc5XAv.js.map → PkChatbotViewConversations-DHeFtAfN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js → PkChatbotViewFiles-gqCumfod.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-53zY5v4R.js.map → PkChatbotViewFiles-gqCumfod.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js → PkChatbotViewProfile-B57VRVaO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-tUMdwSR1.js.map → PkChatbotViewProfile-B57VRVaO.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js → PkStreamingMarkdown-BtyWXY2k.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-BEya63gY.js.map → PkStreamingMarkdown-BtyWXY2k.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js → PkToolEditSpreadsheet-HAskd6d3.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Bl6jujR0.js.map → PkToolEditSpreadsheet-HAskd6d3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js → PkToolRequestGeolocation-BE22qwxB.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Dh2GZF9r.js.map → PkToolRequestGeolocation-BE22qwxB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js → PkToolRequestOAuthConnection-GfSalEJG.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CsVjz0dA.js.map → PkToolRequestOAuthConnection-GfSalEJG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js → PkToolShowArtifact-Ritx54_X.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-DC1baqls.js.map → PkToolShowArtifact-Ritx54_X.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js → PkToolShowContactForm-D30IsZGy.js} +8 -8
- package/dist-vue/_chunks/{PkToolShowContactForm-BXwBUTG-.js.map → PkToolShowContactForm-D30IsZGy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js → PkToolShowDiagram-PEozSAqU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CHPPJjrY.js.map → PkToolShowDiagram-PEozSAqU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js → PkToolShowForm-ZmdM9J9x.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-BiAd1nVG.js.map → PkToolShowForm-ZmdM9J9x.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js → PkToolShowImageGallery-Dkjf7Tw_.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-BkvHwtdK.js.map → PkToolShowImageGallery-Dkjf7Tw_.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js → PkToolShowProductList-CsHYM8vl.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-C8ynmJl_.js.map → PkToolShowProductList-CsHYM8vl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js → PkToolShowSources-CKZkcPLA.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DgjeP2WK.js.map → PkToolShowSources-CKZkcPLA.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js → PkToolShowSuggestedReply-DjutyiEi.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cvfzecie.js.map → PkToolShowSuggestedReply-DjutyiEi.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js → PkToolShowVideo-CKm1fVQs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-BMBG6A9a.js.map → PkToolShowVideo-CKm1fVQs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js → PkToolShowWebPages-DLEC9cuh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-B64pZeYb.js.map → PkToolShowWebPages-DLEC9cuh.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js → createChatbotApiClient-DSLxswr4.js} +58 -55
- package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js.map → createChatbotApiClient-DSLxswr4.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-DWf6im7k.js → index.es-C1u3kP7i.js} +14 -14
- package/dist-vue/_chunks/{index.es-DWf6im7k.js.map → index.es-C1u3kP7i.js.map} +1 -1
- package/dist-vue/_chunks/{schemas-Bt5eFdV0.js → schemas-Bu1lick6.js} +213 -204
- package/dist-vue/_chunks/schemas-Bu1lick6.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-Dmxnn4xV.js → useChatbotStore-rtl-oKqU.js} +22 -22
- package/dist-vue/_chunks/useChatbotStore-rtl-oKqU.js.map +1 -0
- package/dist-vue/_chunks/{utils-CGb6Qc_9.js → utils-fxHiCnzf.js} +2 -2
- package/dist-vue/_chunks/{utils-CGb6Qc_9.js.map → utils-fxHiCnzf.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +97 -7
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +5237 -5073
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/components/src/chat/useWakeupWatch.d.ts +5 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Document.d.ts +16 -8
- package/dist-vue/packages/models/src/schema/Integration.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/Media.d.ts +18 -0
- package/dist-vue/packages/models/src/schema/Notification.d.ts +94 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +35 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-DDAyL-4q.js.map +0 -1
- package/dist/_chunks/browser-BJcsjj9S.js.map +0 -1
- package/dist/_chunks/markdown-lpamC2tL.js.map +0 -1
- package/dist-vue/_chunks/Agent-Bd_4UVe4.js +0 -758
- package/dist-vue/_chunks/Document-BrMThi12.js.map +0 -1
- package/dist-vue/_chunks/Media-Bzv3zEWR.js +0 -135
- package/dist-vue/_chunks/Media-Bzv3zEWR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-eXFjwNkz.js.map +0 -1
- package/dist-vue/_chunks/schemas-Bt5eFdV0.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-Dmxnn4xV.js.map +0 -1
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { C as e, E as t, S as n, T as r, _ as i, a, c as o, m as s, o as c, p as ee, r as l, s as u, u as te, v as d, w as f, x as p } from "./schemas-Bu1lick6.js";
|
|
2
|
+
import { n as ne, o as m, t as re } from "./Media-C6RS-s98.js";
|
|
3
|
+
//#region ../../packages/models/src/utils.ts
|
|
4
|
+
var h = (e, t, n) => o(e, t, {
|
|
5
|
+
encode: (e) => e,
|
|
6
|
+
decode: n
|
|
7
|
+
}), ie = 51200, ae = p(n(), f()).refine((e) => JSON.stringify(e).length <= ie, { message: `Schema must not exceed ${ie / 1024} KB` });
|
|
8
|
+
t();
|
|
9
|
+
var oe = (e) => [`${e}`, `-${e}`], se = (e) => e.flatMap((e) => oe(e)), g = {
|
|
10
|
+
pagination: (e = 1, t = 10) => ({
|
|
11
|
+
"page[number]": i().or(n()).transform((e) => Number(e)).default(e),
|
|
12
|
+
"page[size]": i().or(n()).transform((e) => Number(e)).default(t)
|
|
13
|
+
}),
|
|
14
|
+
filter: (e) => ({ [`filter[${e}]`]: n().optional() }),
|
|
15
|
+
include: (e) => ({ [`include[${e}]`]: n().optional() }),
|
|
16
|
+
range: (e) => ({
|
|
17
|
+
[`from[${e}]`]: n().optional(),
|
|
18
|
+
[`to[${e}]`]: n().optional()
|
|
19
|
+
}),
|
|
20
|
+
has: (e) => ({ [`has[${e}]`]: u().optional() }),
|
|
21
|
+
fullText: () => ({ "filter[fullText]": n().optional() }),
|
|
22
|
+
ids: () => ({ ids: e([n(), c(n())]).optional() }),
|
|
23
|
+
deleted: () => ({ "filter[isDeleted]": u().default(!1) }),
|
|
24
|
+
filters: (e) => e.map((e) => g.filter(e)).reduce((e, t) => ({
|
|
25
|
+
...e,
|
|
26
|
+
...t
|
|
27
|
+
})),
|
|
28
|
+
sort: (e) => {
|
|
29
|
+
let t = se(e);
|
|
30
|
+
return { sort: l(t).optional().default(t[0]) };
|
|
31
|
+
}
|
|
32
|
+
}, ce = (e) => e.replace(/^[a-zA-Z_]+:/, ""), le = (e, t) => {
|
|
33
|
+
let n = new Set(t), r = ce(e);
|
|
34
|
+
if (r !== e && n.has(r)) return r;
|
|
35
|
+
if (n.has(e)) return e;
|
|
36
|
+
let i = [...n].filter((e) => e.endsWith(`-${r}`));
|
|
37
|
+
return i.length === 1 ? i[0] : void 0;
|
|
38
|
+
}, _ = /^#[0-9A-Fa-f]{6}$/, v = d({
|
|
39
|
+
brand: n().regex(_),
|
|
40
|
+
accent: n().regex(_),
|
|
41
|
+
info: n().regex(_)
|
|
42
|
+
}), y = d({
|
|
43
|
+
light: v,
|
|
44
|
+
dark: v
|
|
45
|
+
}), ue = (e, t) => JSON.stringify(e).toLowerCase() === JSON.stringify(t).toLowerCase(), b = /* @__PURE__ */ function(e) {
|
|
46
|
+
return e.System = "system", e.ForceLight = "force-light", e.ForceDark = "force-dark", e;
|
|
47
|
+
}({}), x = /* @__PURE__ */ function(e) {
|
|
48
|
+
return e.LogoLight = "logoLight", e.LogoDark = "logoDark", e.Mark = "mark", e.EmailLogo = "emailLogo", e.EmailBanner = "emailBanner", e;
|
|
49
|
+
}({});
|
|
50
|
+
x.EmailLogo, x.EmailBanner;
|
|
51
|
+
var S = d({
|
|
52
|
+
checksum: n().regex(/^[0-9a-f]{64}$/),
|
|
53
|
+
mimeType: l([
|
|
54
|
+
"image/svg+xml",
|
|
55
|
+
"image/png",
|
|
56
|
+
"image/webp",
|
|
57
|
+
"image/jpeg"
|
|
58
|
+
]),
|
|
59
|
+
width: i().int().positive().nullable(),
|
|
60
|
+
height: i().int().positive().nullable()
|
|
61
|
+
}), de = d({
|
|
62
|
+
[x.LogoLight]: S.nullable(),
|
|
63
|
+
[x.LogoDark]: S.nullable(),
|
|
64
|
+
[x.Mark]: S.nullable(),
|
|
65
|
+
[x.EmailLogo]: S.nullable(),
|
|
66
|
+
[x.EmailBanner]: S.nullable()
|
|
67
|
+
}), C = d({
|
|
68
|
+
productName: n().trim().min(1).max(60),
|
|
69
|
+
shortName: n().trim().min(1).max(24),
|
|
70
|
+
description: n().trim().max(200).nullable(),
|
|
71
|
+
productTagline: n().trim().max(40).nullable(),
|
|
72
|
+
companyName: n().trim().max(80).nullable()
|
|
73
|
+
});
|
|
74
|
+
d({
|
|
75
|
+
colors: y,
|
|
76
|
+
mode: l(b),
|
|
77
|
+
assets: de,
|
|
78
|
+
text: C
|
|
79
|
+
}).extend({ version: n() });
|
|
80
|
+
var fe = d({ css: n() }), w = de.partial(), T = C.partial().extend({
|
|
81
|
+
productName: C.shape.productName.nullish(),
|
|
82
|
+
shortName: C.shape.shortName.nullish()
|
|
83
|
+
}), pe = d({
|
|
84
|
+
colors: y.nullish(),
|
|
85
|
+
mode: l(b).nullish(),
|
|
86
|
+
assets: w.nullish(),
|
|
87
|
+
text: T.nullish()
|
|
88
|
+
});
|
|
89
|
+
d({
|
|
90
|
+
patch: pe,
|
|
91
|
+
revision: n().min(1).max(64)
|
|
92
|
+
});
|
|
93
|
+
var E = (e) => e.optional().catch(void 0);
|
|
94
|
+
d({
|
|
95
|
+
colors: E(y.nullable()),
|
|
96
|
+
mode: E(l(b).nullable()),
|
|
97
|
+
assets: E(d({
|
|
98
|
+
[x.LogoLight]: E(w.shape.logoLight),
|
|
99
|
+
[x.LogoDark]: E(w.shape.logoDark),
|
|
100
|
+
[x.Mark]: E(w.shape.mark),
|
|
101
|
+
[x.EmailLogo]: E(w.shape.emailLogo),
|
|
102
|
+
[x.EmailBanner]: E(w.shape.emailBanner)
|
|
103
|
+
}).nullable()),
|
|
104
|
+
text: E(d({
|
|
105
|
+
productName: E(T.shape.productName),
|
|
106
|
+
shortName: E(T.shape.shortName),
|
|
107
|
+
description: E(T.shape.description),
|
|
108
|
+
productTagline: E(T.shape.productTagline),
|
|
109
|
+
companyName: E(T.shape.companyName)
|
|
110
|
+
}).nullable())
|
|
111
|
+
});
|
|
112
|
+
var D = O({
|
|
113
|
+
colors: {
|
|
114
|
+
light: {
|
|
115
|
+
brand: "#140e33",
|
|
116
|
+
accent: "#9365ff",
|
|
117
|
+
info: "#86c8fb"
|
|
118
|
+
},
|
|
119
|
+
dark: {
|
|
120
|
+
brand: "#565676",
|
|
121
|
+
accent: "#9365ff",
|
|
122
|
+
info: "#86c8fb"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
mode: b.System,
|
|
126
|
+
assets: {
|
|
127
|
+
[x.LogoLight]: null,
|
|
128
|
+
[x.LogoDark]: null,
|
|
129
|
+
[x.Mark]: null,
|
|
130
|
+
[x.EmailLogo]: null,
|
|
131
|
+
[x.EmailBanner]: null
|
|
132
|
+
},
|
|
133
|
+
text: {
|
|
134
|
+
productName: "Eight Wave Agent Studio",
|
|
135
|
+
shortName: "Agent Studio",
|
|
136
|
+
description: "Eight Wave platform to create and manage AI agents with a user-friendly interface.",
|
|
137
|
+
productTagline: "Eight Wave",
|
|
138
|
+
companyName: null
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
O({
|
|
142
|
+
...D,
|
|
143
|
+
text: {
|
|
144
|
+
productName: "Agent Studio",
|
|
145
|
+
shortName: "Agent Studio",
|
|
146
|
+
description: null,
|
|
147
|
+
productTagline: null,
|
|
148
|
+
companyName: null
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
var me = (e) => e.productName === D.text.productName;
|
|
152
|
+
function he(e) {
|
|
153
|
+
let t = Number.parseInt(e.slice(1), 16), [n, r, i] = [
|
|
154
|
+
t >> 16,
|
|
155
|
+
t >> 8 & 255,
|
|
156
|
+
t & 255
|
|
157
|
+
].map((e) => {
|
|
158
|
+
let t = e / 255;
|
|
159
|
+
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
160
|
+
});
|
|
161
|
+
return .2126 * n + .7152 * r + .0722 * i;
|
|
162
|
+
}
|
|
163
|
+
function ge(e) {
|
|
164
|
+
let t = e.match(/[\p{L}\p{N}]/u)?.[0] ?? "", n = t.toUpperCase();
|
|
165
|
+
return n.length === t.length ? n : t;
|
|
166
|
+
}
|
|
167
|
+
function _e(e, t, { rounded: n = !0 } = {}) {
|
|
168
|
+
let r = _.test(t) ? t : D.colors.light.brand, i = he(r) > .179 ? "#000000" : "#ffffff", a = ge(e);
|
|
169
|
+
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>`;
|
|
170
|
+
}
|
|
171
|
+
var ve = (e, t) => `data:image/svg+xml,${encodeURIComponent(_e(e, t))}`;
|
|
172
|
+
function O(e) {
|
|
173
|
+
if (e && typeof e == "object") {
|
|
174
|
+
for (let t of Object.values(e)) O(t);
|
|
175
|
+
Object.freeze(e);
|
|
176
|
+
}
|
|
177
|
+
return e;
|
|
178
|
+
}
|
|
179
|
+
function k(e) {
|
|
180
|
+
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);
|
|
181
|
+
}
|
|
182
|
+
function ye(e) {
|
|
183
|
+
let t = 2166136261, n = 16777619 ^ e.length;
|
|
184
|
+
for (let r = 0; r < e.length; r++) {
|
|
185
|
+
let i = e.charCodeAt(r);
|
|
186
|
+
t = Math.imul(t ^ i, 16777619) >>> 0, n = Math.imul(n ^ i, 1540483477) >>> 0;
|
|
187
|
+
}
|
|
188
|
+
return t.toString(16).padStart(8, "0") + n.toString(16).padStart(8, "0");
|
|
189
|
+
}
|
|
190
|
+
function be(e) {
|
|
191
|
+
return ye(`${De(e)}:${k(e)}`);
|
|
192
|
+
}
|
|
193
|
+
var xe = "/api/v1/public/branding", Se = (e) => `${xe}/assets/${e}`, Ce = (e, t) => `${e.replace(/\/+$/, "")}${Se(t)}`;
|
|
194
|
+
RegExp(`^${xe}(?:\\.css|/manifest\\.webmanifest|/icon/(?:\\d+|maskable)|/assets/[0-9a-f]{64}(?:/icon/\\d+)?)?(?:\\?|$)`);
|
|
195
|
+
function we(e) {
|
|
196
|
+
return {
|
|
197
|
+
...e,
|
|
198
|
+
version: be(e)
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function Te(e) {
|
|
202
|
+
return v.safeParse(e).success ? `--color-brand:${e.brand};--color-accent:${e.accent};--color-info:${e.info};` : "";
|
|
203
|
+
}
|
|
204
|
+
function Ee(e) {
|
|
205
|
+
let t = Te(e.colors.light), n = Te(e.colors.dark);
|
|
206
|
+
return [
|
|
207
|
+
`:where(:root,.theme){${t}${t ? `--color-tint:${e.colors.light.brand};` : ""}}`,
|
|
208
|
+
`@media (prefers-color-scheme: dark){:where(:root:not(.theme--light),.theme:not(.theme--light)){${n}}}`,
|
|
209
|
+
`:where(.theme.theme--light){${t}}`,
|
|
210
|
+
`:where(.theme.theme--dark){${n}}`
|
|
211
|
+
].join("\n");
|
|
212
|
+
}
|
|
213
|
+
var De = (e) => ye(Ee(e)), Oe = d({
|
|
214
|
+
dateTime: n().optional(),
|
|
215
|
+
timezone: n().optional(),
|
|
216
|
+
language: n().optional(),
|
|
217
|
+
languages: c(n()).optional(),
|
|
218
|
+
url: n().optional(),
|
|
219
|
+
pathname: n().optional(),
|
|
220
|
+
pageTitle: n().optional(),
|
|
221
|
+
referrer: n().optional(),
|
|
222
|
+
screenWidth: i().optional(),
|
|
223
|
+
screenHeight: i().optional(),
|
|
224
|
+
viewportWidth: i().optional(),
|
|
225
|
+
viewportHeight: i().optional(),
|
|
226
|
+
devicePixelRatio: i().optional(),
|
|
227
|
+
maxTouchPoints: i().optional(),
|
|
228
|
+
hardwareConcurrency: i().optional(),
|
|
229
|
+
deviceMemory: i().optional(),
|
|
230
|
+
platform: n().optional(),
|
|
231
|
+
connectionType: n().optional(),
|
|
232
|
+
connectionEffectiveType: n().optional(),
|
|
233
|
+
connectionDownlink: i().optional(),
|
|
234
|
+
connectionRtt: i().optional(),
|
|
235
|
+
saveData: u().optional(),
|
|
236
|
+
darkMode: u().optional(),
|
|
237
|
+
reducedMotion: u().optional(),
|
|
238
|
+
historyLength: i().optional(),
|
|
239
|
+
geolocationLatitude: i().optional(),
|
|
240
|
+
geolocationLongitude: i().optional(),
|
|
241
|
+
geolocationAccuracy: i().optional(),
|
|
242
|
+
geolocationCity: n().optional()
|
|
243
|
+
}), A = /* @__PURE__ */ function(e) {
|
|
244
|
+
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
245
|
+
}({}), j = /* @__PURE__ */ function(e) {
|
|
246
|
+
return e.Public = "public", e.Private = "private", e.Organization = "organization", e;
|
|
247
|
+
}({}), M = /* @__PURE__ */ function(e) {
|
|
248
|
+
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
249
|
+
}({}), N = /* @__PURE__ */ function(e) {
|
|
250
|
+
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
251
|
+
}({}), P = [
|
|
252
|
+
"none",
|
|
253
|
+
"low",
|
|
254
|
+
"medium",
|
|
255
|
+
"high",
|
|
256
|
+
"xhigh",
|
|
257
|
+
"max"
|
|
258
|
+
], F = [
|
|
259
|
+
"low",
|
|
260
|
+
"medium",
|
|
261
|
+
"high",
|
|
262
|
+
"xhigh",
|
|
263
|
+
"max"
|
|
264
|
+
], I = [
|
|
265
|
+
"minimal",
|
|
266
|
+
"low",
|
|
267
|
+
"medium",
|
|
268
|
+
"high"
|
|
269
|
+
], L = [
|
|
270
|
+
"auto",
|
|
271
|
+
"detailed",
|
|
272
|
+
"concise"
|
|
273
|
+
], ke = d({
|
|
274
|
+
reasoningEffort: l(P).optional(),
|
|
275
|
+
reasoningSummary: l(L).optional()
|
|
276
|
+
}), Ae = d({
|
|
277
|
+
type: l([
|
|
278
|
+
"adaptive",
|
|
279
|
+
"enabled",
|
|
280
|
+
"disabled"
|
|
281
|
+
]).optional(),
|
|
282
|
+
effort: l(F).optional(),
|
|
283
|
+
display: l(["summarized", "omitted"]).optional(),
|
|
284
|
+
budgetTokens: i().int().positive().optional()
|
|
285
|
+
}), je = d({
|
|
286
|
+
thinkingLevel: l(I).optional(),
|
|
287
|
+
thinkingBudget: i().int().optional(),
|
|
288
|
+
includeThoughts: u().optional()
|
|
289
|
+
}), Me = d({ type: l(["enabled", "disabled"]).optional() }), R = [
|
|
290
|
+
"alibaba",
|
|
291
|
+
"meta",
|
|
292
|
+
"moonshotai",
|
|
293
|
+
"spacexai",
|
|
294
|
+
"xiaomi",
|
|
295
|
+
"zai"
|
|
296
|
+
];
|
|
297
|
+
function Ne(e) {
|
|
298
|
+
return R.includes(e);
|
|
299
|
+
}
|
|
300
|
+
var z = [
|
|
301
|
+
"none",
|
|
302
|
+
"minimal",
|
|
303
|
+
"low",
|
|
304
|
+
"medium",
|
|
305
|
+
"high",
|
|
306
|
+
"xhigh"
|
|
307
|
+
], B = d({ reasoningEffort: l(z).optional() });
|
|
308
|
+
function V(e, t) {
|
|
309
|
+
return e && t.includes(e) ? e : void 0;
|
|
310
|
+
}
|
|
311
|
+
var Pe = d({
|
|
312
|
+
openai: ke.optional(),
|
|
313
|
+
anthropic: Ae.optional(),
|
|
314
|
+
google: je.optional(),
|
|
315
|
+
deepseek: Me.optional(),
|
|
316
|
+
alibaba: B.optional(),
|
|
317
|
+
meta: B.optional(),
|
|
318
|
+
moonshotai: B.optional(),
|
|
319
|
+
spacexai: B.optional(),
|
|
320
|
+
xiaomi: B.optional(),
|
|
321
|
+
zai: B.optional()
|
|
322
|
+
});
|
|
323
|
+
function Fe(e) {
|
|
324
|
+
if (!e || typeof e != "object") return e;
|
|
325
|
+
let t = e, n = [
|
|
326
|
+
"openai",
|
|
327
|
+
"anthropic",
|
|
328
|
+
"google",
|
|
329
|
+
"deepseek",
|
|
330
|
+
...R
|
|
331
|
+
].some((e) => e in t);
|
|
332
|
+
if ("effort" in t && !n) {
|
|
333
|
+
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
334
|
+
if (e && e !== "off" && e !== "none") {
|
|
335
|
+
let t = V(e, P), i = V(n, L);
|
|
336
|
+
(t || i) && (r.openai = {
|
|
337
|
+
...t && { reasoningEffort: t },
|
|
338
|
+
...i && { reasoningSummary: i }
|
|
339
|
+
});
|
|
340
|
+
let a = V(e, F);
|
|
341
|
+
a && (r.anthropic = {
|
|
342
|
+
type: "adaptive",
|
|
343
|
+
effort: a
|
|
344
|
+
});
|
|
345
|
+
let o = V(e === "xhigh" || e === "max" ? "high" : e, I);
|
|
346
|
+
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
347
|
+
let s = V(e === "max" ? "xhigh" : e, z);
|
|
348
|
+
if (s) for (let e of R) r[e] = { reasoningEffort: s };
|
|
349
|
+
} else {
|
|
350
|
+
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
351
|
+
for (let e of R) r[e] = { reasoningEffort: "none" };
|
|
352
|
+
}
|
|
353
|
+
return r;
|
|
354
|
+
}
|
|
355
|
+
return e;
|
|
356
|
+
}
|
|
357
|
+
var Ie = h(f(), Pe, Fe).optional(), Le = {
|
|
358
|
+
openai: { reasoningEffort: "low" },
|
|
359
|
+
anthropic: {
|
|
360
|
+
type: "adaptive",
|
|
361
|
+
effort: "low"
|
|
362
|
+
},
|
|
363
|
+
google: { thinkingLevel: "low" },
|
|
364
|
+
alibaba: { reasoningEffort: "low" },
|
|
365
|
+
meta: { reasoningEffort: "low" },
|
|
366
|
+
moonshotai: { reasoningEffort: "low" },
|
|
367
|
+
spacexai: { reasoningEffort: "low" },
|
|
368
|
+
xiaomi: { reasoningEffort: "low" },
|
|
369
|
+
zai: { reasoningEffort: "low" }
|
|
370
|
+
};
|
|
371
|
+
function Re(e) {
|
|
372
|
+
return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
|
|
373
|
+
}
|
|
374
|
+
function ze(e, t) {
|
|
375
|
+
let n = t?.[e];
|
|
376
|
+
return Re(n) ? n : Le[e];
|
|
377
|
+
}
|
|
378
|
+
var H = /* @__PURE__ */ function(e) {
|
|
379
|
+
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;
|
|
380
|
+
}({}), Be = "enableTools";
|
|
381
|
+
function Ve(e) {
|
|
382
|
+
return !He(e) && e !== H.RequestGeolocation;
|
|
383
|
+
}
|
|
384
|
+
function He(e) {
|
|
385
|
+
return e === H.RequestConfirm || e === H.ShowArtifact || e === H.ShowCalendarEvent || e === H.ShowComparison || e === H.ShowContactForm || e === H.ShowDiagram || e === H.ShowEmail || e === H.ShowImageGallery || e === H.ShowLocation || e === H.ShowMessage || e === H.ShowForm || e === H.ShowMultipleChoice || e === H.ShowProductList || e === H.ShowQrCode || e === H.ShowSources || e === H.ShowSuggestedReply || e === H.ShowVideo || e === H.ShowWeather || e === H.ShowWebPages;
|
|
386
|
+
}
|
|
387
|
+
var Ue = /* @__PURE__ */ new Set([
|
|
388
|
+
H.RequestConfirm,
|
|
389
|
+
H.ShowArtifact,
|
|
390
|
+
H.ShowWeather,
|
|
391
|
+
H.ShowLocation,
|
|
392
|
+
H.ShowComparison,
|
|
393
|
+
H.ShowProductList,
|
|
394
|
+
H.ShowWebPages,
|
|
395
|
+
H.ShowImageGallery,
|
|
396
|
+
H.ShowVideo,
|
|
397
|
+
H.ShowSources,
|
|
398
|
+
H.ShowSuggestedReply,
|
|
399
|
+
H.ShowCalendarEvent,
|
|
400
|
+
H.ShowEmail,
|
|
401
|
+
H.ShowMessage,
|
|
402
|
+
H.ShowForm
|
|
403
|
+
]);
|
|
404
|
+
function We(e) {
|
|
405
|
+
return Ue.has(e);
|
|
406
|
+
}
|
|
407
|
+
var Ge = /* @__PURE__ */ new Set([
|
|
408
|
+
H.RequestConfirm,
|
|
409
|
+
H.RequestGeolocation,
|
|
410
|
+
H.ShowForm,
|
|
411
|
+
H.ShowMultipleChoice,
|
|
412
|
+
"requestOAuthConnection"
|
|
413
|
+
]);
|
|
414
|
+
function Ke(e) {
|
|
415
|
+
return Ge.has(e);
|
|
416
|
+
}
|
|
417
|
+
var qe = /* @__PURE__ */ function(e) {
|
|
418
|
+
return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
|
|
419
|
+
}({}), Je = /* @__PURE__ */ new Set([
|
|
420
|
+
H.RequestConfirm,
|
|
421
|
+
H.RequestGeolocation,
|
|
422
|
+
H.ShowArtifact,
|
|
423
|
+
H.ShowCalendarEvent,
|
|
424
|
+
H.ShowContactForm,
|
|
425
|
+
H.ShowComparison,
|
|
426
|
+
H.ShowDiagram,
|
|
427
|
+
H.ShowEmail,
|
|
428
|
+
H.ShowForm,
|
|
429
|
+
H.ShowImageGallery,
|
|
430
|
+
H.ShowLocation,
|
|
431
|
+
H.ShowMessage,
|
|
432
|
+
H.ShowMultipleChoice,
|
|
433
|
+
H.ShowProductList,
|
|
434
|
+
H.ShowQrCode,
|
|
435
|
+
H.ShowSources,
|
|
436
|
+
H.ShowSuggestedReply,
|
|
437
|
+
H.ShowVideo,
|
|
438
|
+
H.ShowWeather,
|
|
439
|
+
H.ShowWebPages
|
|
440
|
+
]), Ye = "Shown on the caller's screen";
|
|
441
|
+
function Xe(e) {
|
|
442
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ye));
|
|
443
|
+
}
|
|
444
|
+
var Ze = d({
|
|
445
|
+
maxSteps: i().int().min(1).max(10).optional().default(5),
|
|
446
|
+
maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
|
|
447
|
+
}), U = /* @__PURE__ */ function(e) {
|
|
448
|
+
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
449
|
+
}({}), Qe = d({
|
|
450
|
+
maxResults: i().int().min(1).max(20).optional(),
|
|
451
|
+
maxTokens: i().int().positive().max(1e6).optional(),
|
|
452
|
+
maxTokensPerPage: i().int().positive().optional(),
|
|
453
|
+
country: n().max(2).optional(),
|
|
454
|
+
searchLanguageFilter: c(n().max(5)).max(10).optional(),
|
|
455
|
+
searchDomainFilter: c(n()).max(20).optional(),
|
|
456
|
+
searchRecencyFilter: l([
|
|
457
|
+
"day",
|
|
458
|
+
"week",
|
|
459
|
+
"month",
|
|
460
|
+
"year"
|
|
461
|
+
]).optional()
|
|
462
|
+
}), $e = d({
|
|
463
|
+
mode: l(["one-shot", "agentic"]).optional(),
|
|
464
|
+
maxResults: i().int().min(1).max(20).optional(),
|
|
465
|
+
sourcePolicy: d({
|
|
466
|
+
includeDomains: c(n()).optional(),
|
|
467
|
+
excludeDomains: c(n()).optional(),
|
|
468
|
+
afterDate: n().optional()
|
|
469
|
+
}).optional(),
|
|
470
|
+
excerpts: d({
|
|
471
|
+
maxCharsPerResult: i().int().positive().optional(),
|
|
472
|
+
maxCharsTotal: i().int().positive().optional()
|
|
473
|
+
}).optional(),
|
|
474
|
+
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
475
|
+
}), et = d({
|
|
476
|
+
openai: d({}).optional(),
|
|
477
|
+
anthropic: d({
|
|
478
|
+
maxUses: i().int().positive().optional(),
|
|
479
|
+
allowedDomains: c(n()).optional(),
|
|
480
|
+
blockedDomains: c(n()).optional(),
|
|
481
|
+
userLocation: d({
|
|
482
|
+
type: s("approximate").optional(),
|
|
483
|
+
country: n().optional(),
|
|
484
|
+
region: n().optional(),
|
|
485
|
+
city: n().optional(),
|
|
486
|
+
timezone: n().optional()
|
|
487
|
+
}).optional()
|
|
488
|
+
}).optional(),
|
|
489
|
+
google: d({}).optional()
|
|
490
|
+
}), W = d({
|
|
491
|
+
enabled: u().default(!1),
|
|
492
|
+
provider: l(U).optional().default(U.Native),
|
|
493
|
+
perplexity: Qe.optional(),
|
|
494
|
+
parallel: $e.optional(),
|
|
495
|
+
native: et.optional()
|
|
496
|
+
}), tt = d({ useAllUserKb: u().default(!1) }), nt = d({ useAllUserFiles: u().default(!1) }), rt = d({ tools: c(n()).default([]) }), it = d({
|
|
497
|
+
disabled: c(l(H)).default([
|
|
498
|
+
H.UserMemory,
|
|
499
|
+
H.SearchInUserFiles,
|
|
500
|
+
H.RunWorker,
|
|
501
|
+
H.FetchTeamsChannelHistory,
|
|
502
|
+
H.ScheduleWakeup
|
|
503
|
+
]),
|
|
504
|
+
showForm: Ze.optional().default(() => Ze.parse({})),
|
|
505
|
+
webSearch: W.optional().default(() => W.parse({})),
|
|
506
|
+
userMemory: tt.optional().default(() => tt.parse({})),
|
|
507
|
+
userFiles: nt.optional().default(() => nt.parse({})),
|
|
508
|
+
approval: rt.optional().default(() => rt.parse({}))
|
|
509
|
+
}), G = d({
|
|
510
|
+
freshness: d({
|
|
511
|
+
enabled: u().default(!1),
|
|
512
|
+
scale: i().int().min(86400).max(31536e3).default(7776e3),
|
|
513
|
+
weight: i().min(.05).max(.5).default(.1)
|
|
514
|
+
}).prefault({}),
|
|
515
|
+
priority: d({ enabled: u().default(!0) }).prefault({}),
|
|
516
|
+
mmr: d({
|
|
517
|
+
enabled: u().default(!1),
|
|
518
|
+
diversity: i().min(0).max(1).default(.3),
|
|
519
|
+
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
520
|
+
}).prefault({})
|
|
521
|
+
}).prefault({}), at = d({
|
|
522
|
+
prompt: n().optional(),
|
|
523
|
+
temperature: i().min(0).max(2).optional().default(.6),
|
|
524
|
+
maxOutputTokens: i().positive().optional(),
|
|
525
|
+
presencePenalty: i().min(-2).max(2).optional(),
|
|
526
|
+
frequencyPenalty: i().min(-2).max(2).optional(),
|
|
527
|
+
searchMode: l(N).optional().default(N.Balanced),
|
|
528
|
+
limit: i().positive().max(100).optional().default(10),
|
|
529
|
+
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
530
|
+
reasoning: Ie,
|
|
531
|
+
ranking: G.optional().default(() => G.parse({}))
|
|
532
|
+
}), K = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), ot = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", q = /* @__PURE__ */ function(e) {
|
|
533
|
+
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
534
|
+
}({}), J = /* @__PURE__ */ function(e) {
|
|
535
|
+
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
536
|
+
}({}), st = Object.values(J), ct = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
537
|
+
function lt(e) {
|
|
538
|
+
let t = e.trim().toLowerCase();
|
|
539
|
+
if (!t) return "";
|
|
540
|
+
try {
|
|
541
|
+
return new URL(t.includes("://") ? t : `https://${t}`).hostname;
|
|
542
|
+
} catch {
|
|
543
|
+
return t;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
var Y = d({
|
|
547
|
+
media: ne.optional(),
|
|
548
|
+
logo: n().optional(),
|
|
549
|
+
theme: l([
|
|
550
|
+
"light",
|
|
551
|
+
"dark",
|
|
552
|
+
"auto"
|
|
553
|
+
]).optional().default("auto"),
|
|
554
|
+
mainColor: n().regex(_).optional().default("#000000"),
|
|
555
|
+
textColor: l([
|
|
556
|
+
"auto",
|
|
557
|
+
"white",
|
|
558
|
+
"black"
|
|
559
|
+
]).optional().default("auto"),
|
|
560
|
+
useColorsForAgentHeader: u().optional().default(!1),
|
|
561
|
+
initialMessage: K.optional(),
|
|
562
|
+
greeting: c(K).min(1).max(10).optional(),
|
|
563
|
+
messagePlaceholder: K.optional(),
|
|
564
|
+
dismissableNotice: K.optional(),
|
|
565
|
+
footerMessage: K.optional(),
|
|
566
|
+
privacyPolicyNotice: K.optional(),
|
|
567
|
+
interactiveLogin: u().optional().default(!0),
|
|
568
|
+
welcomePopup: u().optional().default(!1),
|
|
569
|
+
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
570
|
+
maxMessageLength: i().int().positive().optional(),
|
|
571
|
+
widgetUrl: r().default(ot),
|
|
572
|
+
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
573
|
+
loaderStrategy: l(q).optional().default(q.InlineModule),
|
|
574
|
+
customCss: n().optional(),
|
|
575
|
+
smoothStream: u().optional().default(!1),
|
|
576
|
+
showExtendedSteps: u().optional().default(!1),
|
|
577
|
+
imageHosts: c(n().overwrite(lt).refine((e) => e === "" || ct.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
578
|
+
}), ut = [
|
|
579
|
+
"image/jpeg",
|
|
580
|
+
"image/png",
|
|
581
|
+
"image/gif",
|
|
582
|
+
"image/webp",
|
|
583
|
+
"application/pdf",
|
|
584
|
+
"text/plain",
|
|
585
|
+
"text/markdown",
|
|
586
|
+
"text/csv"
|
|
587
|
+
], dt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", X = d({
|
|
588
|
+
enabled: u().default(!1),
|
|
589
|
+
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
590
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...ut]),
|
|
591
|
+
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
592
|
+
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
593
|
+
}), Z = d({
|
|
594
|
+
zeroDataRetention: u().default(!0),
|
|
595
|
+
disallowPromptTraining: u().default(!0),
|
|
596
|
+
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
597
|
+
}), ft = d({ enabled: u().default(!1) }), Q = /* @__PURE__ */ function(e) {
|
|
598
|
+
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
599
|
+
}({}), $ = d({ mode: l(Q).default(Q.Off) }), pt = d({
|
|
600
|
+
enabled: u().default(!1),
|
|
601
|
+
voiceId: n().optional(),
|
|
602
|
+
language: n().min(2).max(5).default("it"),
|
|
603
|
+
maxSessionSeconds: i().int().min(30).max(3600).default(600),
|
|
604
|
+
cascadeTimeoutSeconds: i().min(1).max(15).default(15).transform((e) => Math.max(5, e)),
|
|
605
|
+
fillerAfterSeconds: i().min(.5).max(8).optional(),
|
|
606
|
+
fillerMessage: n().max(200).optional(),
|
|
607
|
+
ignoreBackgroundVoices: u().default(!0),
|
|
608
|
+
turnEagerness: l([
|
|
609
|
+
"patient",
|
|
610
|
+
"normal",
|
|
611
|
+
"eager"
|
|
612
|
+
]).default("normal"),
|
|
613
|
+
turnTimeoutSeconds: i().min(1).max(30).default(5),
|
|
614
|
+
firstMessage: n().max(300).optional(),
|
|
615
|
+
providerAgentId: n().optional(),
|
|
616
|
+
providerSecretId: n().optional(),
|
|
617
|
+
providerApiKeyId: n().optional()
|
|
618
|
+
}), mt = d({ enabled: u() });
|
|
619
|
+
d({
|
|
620
|
+
chatId: n().min(1).optional(),
|
|
621
|
+
deviceContext: Oe.optional(),
|
|
622
|
+
externalContext: p(n(), f()).optional()
|
|
623
|
+
});
|
|
624
|
+
var ht = d({
|
|
625
|
+
sessionId: n(),
|
|
626
|
+
signedUrl: n(),
|
|
627
|
+
providerAgentId: n(),
|
|
628
|
+
chatId: n(),
|
|
629
|
+
maxSessionSeconds: i().int()
|
|
630
|
+
}), gt = d({
|
|
631
|
+
voiceId: n(),
|
|
632
|
+
name: n(),
|
|
633
|
+
category: n().optional(),
|
|
634
|
+
previewUrl: n().optional(),
|
|
635
|
+
labels: p(n(), n()).optional()
|
|
636
|
+
});
|
|
637
|
+
c(gt);
|
|
638
|
+
var _t = d({
|
|
639
|
+
model: at,
|
|
640
|
+
interface: Y,
|
|
641
|
+
tools: it.optional().default(() => it.parse({})),
|
|
642
|
+
fileUpload: X.optional().default(() => X.parse({})),
|
|
643
|
+
gatewayOptions: Z.optional().default(() => Z.parse({})),
|
|
644
|
+
channels: c(l(J)).optional().default(() => [...st]),
|
|
645
|
+
externalContextSchema: ae.optional(),
|
|
646
|
+
openaiApi: ft.optional().default(() => ft.parse({})),
|
|
647
|
+
voice: pt.optional().default(() => pt.parse({})),
|
|
648
|
+
toolWorkingSet: $.optional().default(() => $.parse({}))
|
|
649
|
+
}), vt = d({
|
|
650
|
+
rateLimits: d({
|
|
651
|
+
minuteRateLimit: i().int().min(0).optional(),
|
|
652
|
+
hourRateLimit: i().int().min(0).optional(),
|
|
653
|
+
dayRateLimit: i().int().min(0).optional(),
|
|
654
|
+
monthRateLimit: i().int().min(0).optional()
|
|
655
|
+
}),
|
|
656
|
+
trustedOrigins: d({ origins: c(r().or(s(""))).overwrite((e) => e?.filter((e) => e?.trim())).default([]) }).default({ origins: [] })
|
|
657
|
+
});
|
|
658
|
+
d({
|
|
659
|
+
id: n().optional(),
|
|
660
|
+
name: n(),
|
|
661
|
+
prompt: n().optional(),
|
|
662
|
+
model: n().optional(),
|
|
663
|
+
fallbackModels: c(n()).default([]),
|
|
664
|
+
status: l(A).default(A.Draft),
|
|
665
|
+
visibility: l(j).default(j.Organization),
|
|
666
|
+
settings: _t,
|
|
667
|
+
security: vt.nullish(),
|
|
668
|
+
type: l(M).default(M.Chat),
|
|
669
|
+
organizationId: n()
|
|
670
|
+
}), ee(() => d({
|
|
671
|
+
id: n(),
|
|
672
|
+
name: n(),
|
|
673
|
+
prompt: n(),
|
|
674
|
+
model: n(),
|
|
675
|
+
fallbackModels: c(n()).nullable().default([]),
|
|
676
|
+
status: l(A).default(A.Draft),
|
|
677
|
+
visibility: l(j).default(j.Organization),
|
|
678
|
+
settings: _t,
|
|
679
|
+
security: vt.nullable(),
|
|
680
|
+
type: l(M).default(M.Chat),
|
|
681
|
+
organizationId: n(),
|
|
682
|
+
createdAt: m(),
|
|
683
|
+
createdBy: n(),
|
|
684
|
+
updatedAt: m(),
|
|
685
|
+
updatedBy: n(),
|
|
686
|
+
deleted: u(),
|
|
687
|
+
deletedAt: m().nullable(),
|
|
688
|
+
deletedBy: n().nullable(),
|
|
689
|
+
outOfBudget: u().optional().default(!1),
|
|
690
|
+
outOfBudgetReason: n().optional().default("")
|
|
691
|
+
}));
|
|
692
|
+
var yt = d({
|
|
693
|
+
id: n(),
|
|
694
|
+
name: n(),
|
|
695
|
+
status: l(A),
|
|
696
|
+
visibility: l(j),
|
|
697
|
+
organizationId: n(),
|
|
698
|
+
interface: Y,
|
|
699
|
+
createdAt: m(),
|
|
700
|
+
updatedAt: m(),
|
|
701
|
+
capabilities: d({
|
|
702
|
+
fileUpload: X,
|
|
703
|
+
voice: mt
|
|
704
|
+
}),
|
|
705
|
+
channels: c(l(J)).default(() => [...st])
|
|
706
|
+
}), bt = Y.pick({
|
|
707
|
+
logo: !0,
|
|
708
|
+
mainColor: !0,
|
|
709
|
+
textColor: !0,
|
|
710
|
+
theme: !0,
|
|
711
|
+
floatingButtonPosition: !0,
|
|
712
|
+
customCss: !0
|
|
713
|
+
}), xt = yt.pick({
|
|
714
|
+
id: !0,
|
|
715
|
+
name: !0,
|
|
716
|
+
organizationId: !0
|
|
717
|
+
}).extend({ interface: bt }), St = d({
|
|
718
|
+
emailPassword: u(),
|
|
719
|
+
google: u(),
|
|
720
|
+
microsoft: u()
|
|
721
|
+
}), Ct = d({
|
|
722
|
+
requiresAuth: s(!1),
|
|
723
|
+
agent: yt,
|
|
724
|
+
branding: a()
|
|
725
|
+
}), wt = d({
|
|
726
|
+
requiresAuth: s(!0),
|
|
727
|
+
agent: a(),
|
|
728
|
+
branding: xt
|
|
729
|
+
});
|
|
730
|
+
te("requiresAuth", [Ct, wt]);
|
|
731
|
+
var Tt = d({
|
|
732
|
+
authMethods: St,
|
|
733
|
+
deploymentBranding: fe.nullish()
|
|
734
|
+
});
|
|
735
|
+
te("requiresAuth", [Ct.extend(Tt.shape), wt.extend(Tt.shape)]), d({
|
|
736
|
+
id: t(),
|
|
737
|
+
agentIds: c(t())
|
|
738
|
+
}), d({
|
|
739
|
+
...g.pagination(),
|
|
740
|
+
...g.sort([
|
|
741
|
+
"id",
|
|
742
|
+
"updatedAt",
|
|
743
|
+
"createdAt",
|
|
744
|
+
"name",
|
|
745
|
+
"type",
|
|
746
|
+
"status",
|
|
747
|
+
"visibility",
|
|
748
|
+
"model"
|
|
749
|
+
]),
|
|
750
|
+
...g.filters(["done", "type"]),
|
|
751
|
+
...g.filter("id"),
|
|
752
|
+
...g.fullText(),
|
|
753
|
+
...g.ids()
|
|
754
|
+
});
|
|
755
|
+
//#endregion
|
|
756
|
+
export { Ke as A, we as B, ht as C, Ne as D, ze as E, D as F, h as H, _ as I, Ce as L, lt as M, Oe as N, We as O, b as P, ve as R, Je as S, Ve as T, le as U, me as V, g as W, I as _, Z as a, dt as b, Ie as c, M as d, W as f, z as g, Be as h, X as i, Xe as j, He as k, N as l, ot as m, H as n, q as o, qe as p, J as r, G as s, F as t, Q as u, P as v, U as w, Ge as x, L as y, ue as z };
|
|
757
|
+
|
|
758
|
+
//# sourceMappingURL=Agent-dGF8mkG9.js.map
|