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