@8wave/ai-elements 0.121.0-beta.52 → 0.121.0-beta.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{Agent-CtLgGLbV.js → Agent-BdoXh8b0.js} +252 -250
- package/dist/_chunks/Agent-BdoXh8b0.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js → PkStreamingMarkdown-CR-xBRG2.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-BP7HK2u0.js.map → PkStreamingMarkdown-CR-xBRG2.js.map} +1 -1
- package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js → PkToolEditedFile-DAMPjKIn.js} +2 -2
- package/dist/_chunks/{PkToolEditedFile-VFnIlU4j.js.map → PkToolEditedFile-DAMPjKIn.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js → PkToolRequestGeolocation-BantUie4.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-B51_MHPQ.js.map → PkToolRequestGeolocation-BantUie4.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js → PkToolRequestOAuthConnection-CB5ziPOE.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DfjwyGwk.js.map → PkToolRequestOAuthConnection-CB5ziPOE.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js → PkToolShowArtifact-B1J7a3o0.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-B8l3G0ae.js.map → PkToolShowArtifact-B1J7a3o0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js → PkToolShowContactForm-DcNMM-j0.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-wNiHeOQM.js.map → PkToolShowContactForm-DcNMM-j0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js → PkToolShowForm-CRa9HLZo.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-jA0SkiQC.js.map → PkToolShowForm-CRa9HLZo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js → PkToolShowImageGallery-BisEror8.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-B9PlDrmn.js.map → PkToolShowImageGallery-BisEror8.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js → PkToolShowProductList-BmPdjUSS.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-DRHSe2e7.js.map → PkToolShowProductList-BmPdjUSS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-K-cNd52t.js → PkToolShowSources-LQ0DMKM1.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-K-cNd52t.js.map → PkToolShowSources-LQ0DMKM1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js → PkToolShowSuggestedReply-lzs6-CcI.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BQHtnpb_.js.map → PkToolShowSuggestedReply-lzs6-CcI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js → PkToolShowVideo-BPYYn43O.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-B21JnsbY.js.map → PkToolShowVideo-BPYYn43O.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js → PkToolShowWebPages-CbE_bnHt.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-CW1Kdg6J.js.map → PkToolShowWebPages-CbE_bnHt.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js → chatImagePolicy-CZeGEXvB.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-Bf-fhvf6.js.map → chatImagePolicy-CZeGEXvB.js.map} +1 -1
- package/dist/_chunks/{markdown-B_eDHV3T.js → markdown-DtRRqlac.js} +2 -2
- package/dist/_chunks/{markdown-B_eDHV3T.js.map → markdown-DtRRqlac.js.map} +1 -1
- package/dist/ai-elements.es.js +19 -17
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-BlWzW8Mg.js → Agent-B-jQOrER.js} +133 -131
- package/dist-vue/_chunks/Agent-B-jQOrER.js.map +1 -0
- package/dist-vue/_chunks/{Document-vkNbPo_T.js → Document-DQtliJu6.js} +2 -2
- package/dist-vue/_chunks/{Document-vkNbPo_T.js.map → Document-DQtliJu6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js → PkChatbot-DKBnpYB0.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-DgKkkbCs.js.map → PkChatbot-DKBnpYB0.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js → PkChatbotEmptyState-CFCbJSjm.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-XWzSF0W0.js.map → PkChatbotEmptyState-CFCbJSjm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js → PkChatbotInput-fte_uZHV.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-a36iJO_a.js.map → PkChatbotInput-fte_uZHV.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-Ce7BtcBf.js → PkChatbotMessages-BVzOnfjU.js} +20 -18
- package/dist-vue/_chunks/PkChatbotMessages-BVzOnfjU.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js → PkChatbotStepPayload-CgwZs9AM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-jbQd7cML.js.map → PkChatbotStepPayload-CgwZs9AM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js → PkChatbotStepToolDetail-BOylJhFM.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B1SJqhIt.js.map → PkChatbotStepToolDetail-BOylJhFM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js → PkChatbotSteps-Cmi5TBZM.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-M7T71Lr9.js.map → PkChatbotSteps-Cmi5TBZM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js → PkChatbotViewChat-DuHSW8TF.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-58rvFSbr.js.map → PkChatbotViewChat-DuHSW8TF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js → PkChatbotViewConversations-Bf9oJIdi.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-DP1zMA-B.js.map → PkChatbotViewConversations-Bf9oJIdi.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js → PkChatbotViewFiles-B6R1ixAl.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DCo-erhU.js.map → PkChatbotViewFiles-B6R1ixAl.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js → PkChatbotViewProfile-x0oUCbeL.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Da6iqXLn.js.map → PkChatbotViewProfile-x0oUCbeL.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js → PkStreamingMarkdown-BrBeaJes.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-D00IssLd.js.map → PkStreamingMarkdown-BrBeaJes.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js → PkToolEditedFile-BKyMjgs0.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditedFile-ppesvE8O.js.map → PkToolEditedFile-BKyMjgs0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js → PkToolRequestGeolocation-CY-NC6Rc.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CK_AAzwh.js.map → PkToolRequestGeolocation-CY-NC6Rc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js → PkToolRequestOAuthConnection-RkbnKSde.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CXfvULza.js.map → PkToolRequestOAuthConnection-RkbnKSde.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js → PkToolShowArtifact-BvvVHrP-.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BH8xgFcB.js.map → PkToolShowArtifact-BvvVHrP-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js → PkToolShowContactForm-Dz_IiYr1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CdDx1Jxl.js.map → PkToolShowContactForm-Dz_IiYr1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js → PkToolShowDiagram-DCSfCzrN.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-D22AS39F.js.map → PkToolShowDiagram-DCSfCzrN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js → PkToolShowForm-qMBAEKxf.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-gUfRbKJS.js.map → PkToolShowForm-qMBAEKxf.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js → PkToolShowImageGallery-DWwUnIDq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-GEDLtNod.js.map → PkToolShowImageGallery-DWwUnIDq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js → PkToolShowProductList-DreWhhfK.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CERjht9c.js.map → PkToolShowProductList-DreWhhfK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js → PkToolShowSources-DR-uaXeX.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-B_4taLGg.js.map → PkToolShowSources-DR-uaXeX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js → PkToolShowSuggestedReply-CThFJVUq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DVYeAkEp.js.map → PkToolShowSuggestedReply-CThFJVUq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js → PkToolShowVideo-Xogv8wVt.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-GZ8wviqU.js.map → PkToolShowVideo-Xogv8wVt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js → PkToolShowWebPages-BHTyFyDI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DceCOjLQ.js.map → PkToolShowWebPages-BHTyFyDI.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js → createChatbotApiClient-B3U31J_K.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-7i_D_crv.js.map → createChatbotApiClient-B3U31J_K.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js → useChatbotStore-D2L4m3iJ.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-DhVxJwn6.js.map → useChatbotStore-D2L4m3iJ.js.map} +1 -1
- package/dist-vue/_chunks/{utils-BpnTWYko.js → utils-Df_SeBdX.js} +2 -2
- package/dist-vue/_chunks/{utils-BpnTWYko.js.map → utils-Df_SeBdX.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +4 -4
- package/dist-vue/index.js +24 -24
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +55 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +12 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +12 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-CtLgGLbV.js.map +0 -1
- package/dist-vue/_chunks/Agent-BlWzW8Mg.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-Ce7BtcBf.js.map +0 -1
|
@@ -51,13 +51,13 @@ var S = n({
|
|
|
51
51
|
]),
|
|
52
52
|
width: s().int().positive().nullable(),
|
|
53
53
|
height: s().int().positive().nullable()
|
|
54
|
-
}),
|
|
54
|
+
}), C = n({
|
|
55
55
|
[x.LogoLight]: S.nullable(),
|
|
56
56
|
[x.LogoDark]: S.nullable(),
|
|
57
57
|
[x.Mark]: S.nullable(),
|
|
58
58
|
[x.EmailLogo]: S.nullable(),
|
|
59
59
|
[x.EmailBanner]: S.nullable()
|
|
60
|
-
}),
|
|
60
|
+
}), 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 S = n({
|
|
|
67
67
|
n({
|
|
68
68
|
colors: y,
|
|
69
69
|
mode: u(b),
|
|
70
|
-
assets:
|
|
71
|
-
text:
|
|
70
|
+
assets: C,
|
|
71
|
+
text: w
|
|
72
72
|
}).extend({ version: i() });
|
|
73
|
-
var
|
|
74
|
-
productName:
|
|
75
|
-
shortName:
|
|
76
|
-
}),
|
|
73
|
+
var se = n({ css: i() }), T = C.partial(), E = w.partial().extend({
|
|
74
|
+
productName: w.shape.productName.nullish(),
|
|
75
|
+
shortName: w.shape.shortName.nullish()
|
|
76
|
+
}), ce = n({
|
|
77
77
|
colors: y.nullish(),
|
|
78
78
|
mode: u(b).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
|
-
[x.LogoLight]:
|
|
92
|
-
[x.LogoDark]:
|
|
93
|
-
[x.Mark]:
|
|
94
|
-
[x.EmailLogo]:
|
|
95
|
-
[x.EmailBanner]:
|
|
88
|
+
colors: D(y.nullable()),
|
|
89
|
+
mode: D(u(b).nullable()),
|
|
90
|
+
assets: D(n({
|
|
91
|
+
[x.LogoLight]: D(T.shape.logoLight),
|
|
92
|
+
[x.LogoDark]: D(T.shape.logoDark),
|
|
93
|
+
[x.Mark]: D(T.shape.mark),
|
|
94
|
+
[x.EmailLogo]: D(T.shape.emailLogo),
|
|
95
|
+
[x.EmailBanner]: D(T.shape.emailBanner)
|
|
96
96
|
}).nullable()),
|
|
97
|
-
text:
|
|
98
|
-
productName: E
|
|
99
|
-
shortName: E
|
|
100
|
-
description: E
|
|
101
|
-
productTagline: E
|
|
102
|
-
companyName: E
|
|
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,15 +139,15 @@ 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
|
// ../../packages/models/src/schema/DeviceContext.ts
|
|
150
|
-
var
|
|
150
|
+
var le = n({
|
|
151
151
|
dateTime: i().optional(),
|
|
152
152
|
timezone: i().optional(),
|
|
153
153
|
language: i().optional(),
|
|
@@ -229,7 +229,7 @@ function be(e) {
|
|
|
229
229
|
return !1;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
var
|
|
232
|
+
var xe = n({
|
|
233
233
|
level: u(A).default(A.Off),
|
|
234
234
|
excludeSelectors: c(i().max(200).refine(be, "Not a valid CSS selector")).max(50).default([]),
|
|
235
235
|
confirmEveryAction: d().default(!1),
|
|
@@ -237,19 +237,19 @@ var j = n({
|
|
|
237
237
|
acknowledgedBy: i().optional(),
|
|
238
238
|
acknowledgedAt: f().optional(),
|
|
239
239
|
acknowledgedLevel: u(A).optional()
|
|
240
|
-
}),
|
|
240
|
+
}), Se = (e) => e.startsWith("page_") || e.startsWith("form_"), Ce = xe.pick({
|
|
241
241
|
level: !0,
|
|
242
242
|
excludeSelectors: !0,
|
|
243
243
|
confirmEveryAction: !0,
|
|
244
244
|
notice: !0
|
|
245
|
-
}),
|
|
245
|
+
}), we = ["fill-fields"];
|
|
246
246
|
n({
|
|
247
247
|
version: l(1),
|
|
248
248
|
forms: c(t()).max(16).default([]),
|
|
249
249
|
features: c(i().max(40)).max(16).default([])
|
|
250
250
|
});
|
|
251
251
|
// ../../packages/models/src/schema/Media.ts
|
|
252
|
-
var
|
|
252
|
+
var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, Te = new Set([
|
|
253
253
|
[".mp3", "audio/mpeg"],
|
|
254
254
|
[".m4a", "audio/mp4"],
|
|
255
255
|
[".m4a", "audio/x-m4a"],
|
|
@@ -262,7 +262,7 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
|
|
|
262
262
|
[".opus", "audio/ogg"],
|
|
263
263
|
[".flac", "audio/flac"],
|
|
264
264
|
[".flac", "audio/x-flac"]
|
|
265
|
-
].map(([e]) => e)),
|
|
265
|
+
].map(([e]) => e)), Ee = /* @__PURE__ */ new Set([
|
|
266
266
|
".amr",
|
|
267
267
|
".3ga",
|
|
268
268
|
".aif",
|
|
@@ -272,10 +272,10 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
|
|
|
272
272
|
".mka",
|
|
273
273
|
".weba",
|
|
274
274
|
".wma"
|
|
275
|
-
]),
|
|
276
|
-
let n =
|
|
277
|
-
return
|
|
278
|
-
},
|
|
275
|
+
]), De = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Oe = (e, t) => {
|
|
276
|
+
let n = Ue(e ?? "");
|
|
277
|
+
return De(t).startsWith("audio/") || Te.has(n) || Ee.has(n);
|
|
278
|
+
}, M = [
|
|
279
279
|
{
|
|
280
280
|
extensions: [".html", ".htm"],
|
|
281
281
|
mimeType: "text/html",
|
|
@@ -429,16 +429,16 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, we = new Set([
|
|
|
429
429
|
]
|
|
430
430
|
}
|
|
431
431
|
];
|
|
432
|
-
|
|
433
|
-
var
|
|
432
|
+
M.map((e) => e.mimeType);
|
|
433
|
+
var ke = (e) => M.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Ae = (e, t) => {
|
|
434
434
|
if (t.length === 0) return !0;
|
|
435
|
-
let n =
|
|
435
|
+
let n = M.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
|
|
436
436
|
"",
|
|
437
437
|
"application/octet-stream",
|
|
438
438
|
"text/plain",
|
|
439
439
|
...n.flatMap((e) => e.aliases)
|
|
440
440
|
] : []);
|
|
441
|
-
return e.length > 0 && e.every((e) => r.has(
|
|
441
|
+
return e.length > 0 && e.every((e) => r.has(De(e)) || t.some((t) => e.includes(t)));
|
|
442
442
|
};
|
|
443
443
|
n({
|
|
444
444
|
status: u([
|
|
@@ -452,47 +452,47 @@ n({
|
|
|
452
452
|
durationSeconds: s().optional(),
|
|
453
453
|
model: i().optional()
|
|
454
454
|
});
|
|
455
|
-
var
|
|
455
|
+
var je = /* @__PURE__ */ function(e) {
|
|
456
456
|
return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
|
|
457
|
-
}({}),
|
|
457
|
+
}({}), Me = n({
|
|
458
458
|
type: l("azure-blob"),
|
|
459
459
|
blobUri: e(),
|
|
460
460
|
containerName: i().min(1),
|
|
461
461
|
pathRelativeToContainer: i().min(1)
|
|
462
|
-
}),
|
|
462
|
+
}), Ne = n({
|
|
463
463
|
type: l("s3"),
|
|
464
464
|
bucket: i().min(1),
|
|
465
465
|
key: i().min(1),
|
|
466
466
|
region: i().min(1)
|
|
467
|
-
}),
|
|
467
|
+
}), Pe = p("type", [Me, Ne]), N = n({
|
|
468
468
|
type: i().min(1),
|
|
469
469
|
name: i().min(1),
|
|
470
|
-
mimeType: i().regex(
|
|
470
|
+
mimeType: i().regex(j),
|
|
471
471
|
bytesCount: s().positive(),
|
|
472
472
|
extension: i().regex(/^\.[a-zA-Z0-9]+$/).overwrite((e) => e.toLowerCase()),
|
|
473
473
|
storedFileName: i().optional(),
|
|
474
474
|
metadata: h(i(), i()).default({}),
|
|
475
475
|
tags: h(i(), i()).default({})
|
|
476
476
|
}).extend({
|
|
477
|
-
storageHandle:
|
|
478
|
-
storagePolicy: u(
|
|
477
|
+
storageHandle: Pe,
|
|
478
|
+
storagePolicy: u(je),
|
|
479
479
|
signData: i().optional(),
|
|
480
480
|
storedFileName: i().min(1)
|
|
481
|
-
}),
|
|
481
|
+
}), Fe = n({
|
|
482
482
|
name: i().min(1),
|
|
483
|
-
src:
|
|
484
|
-
srcSet: c(
|
|
483
|
+
src: N,
|
|
484
|
+
srcSet: c(N).default([]),
|
|
485
485
|
rawOptions: ee().optional()
|
|
486
486
|
});
|
|
487
487
|
n({
|
|
488
|
-
src:
|
|
488
|
+
src: N,
|
|
489
489
|
uploadHandle: n({
|
|
490
490
|
uploadSasuri: e(),
|
|
491
491
|
metadata: h(i(), i()).default({}),
|
|
492
492
|
tags: h(i(), i()).default({})
|
|
493
493
|
})
|
|
494
494
|
}), n({
|
|
495
|
-
src:
|
|
495
|
+
src: N,
|
|
496
496
|
downloadHandle: n({
|
|
497
497
|
downloadSasuri: e(),
|
|
498
498
|
viewSasuri: e(),
|
|
@@ -501,200 +501,200 @@ n({
|
|
|
501
501
|
type: i()
|
|
502
502
|
})
|
|
503
503
|
});
|
|
504
|
-
var
|
|
504
|
+
var P = /* @__PURE__ */ function(e) {
|
|
505
505
|
return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
|
|
506
|
-
}({}),
|
|
507
|
-
type: l(
|
|
506
|
+
}({}), Ie = n({
|
|
507
|
+
type: l(P.picture),
|
|
508
508
|
width: s().positive(),
|
|
509
509
|
height: s().positive(),
|
|
510
510
|
blurhash: i().optional()
|
|
511
|
-
}),
|
|
512
|
-
type: l(
|
|
511
|
+
}), Le = n({
|
|
512
|
+
type: l(P.video),
|
|
513
513
|
width: s().positive(),
|
|
514
514
|
height: s().positive(),
|
|
515
515
|
duration: s().nonnegative()
|
|
516
|
-
}),
|
|
517
|
-
type: l(
|
|
516
|
+
}), Re = n({
|
|
517
|
+
type: l(P.audio),
|
|
518
518
|
duration: s().nonnegative()
|
|
519
|
-
}),
|
|
519
|
+
}), ze = n({ type: l(P.office) }), Be = n({ type: l(P.archive) }), Ve = n({ type: l(P.binary) }), He = n({ type: l(P.executable) });
|
|
520
520
|
p("type", [
|
|
521
|
-
Fe,
|
|
522
521
|
Ie,
|
|
523
522
|
Le,
|
|
524
523
|
Re,
|
|
525
524
|
ze,
|
|
526
525
|
Be,
|
|
527
|
-
Ve
|
|
526
|
+
Ve,
|
|
527
|
+
He
|
|
528
528
|
]);
|
|
529
|
-
var
|
|
529
|
+
var Ue = (e) => {
|
|
530
530
|
let t = e.lastIndexOf(".");
|
|
531
531
|
return t === -1 ? "" : e.slice(t).toLowerCase();
|
|
532
|
-
},
|
|
532
|
+
}, F = /* @__PURE__ */ function(e) {
|
|
533
533
|
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
534
|
-
}({}),
|
|
534
|
+
}({}), I = /* @__PURE__ */ function(e) {
|
|
535
535
|
return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
|
|
536
536
|
}({});
|
|
537
|
-
|
|
538
|
-
var
|
|
537
|
+
I.Organization, I.Restricted;
|
|
538
|
+
var L = /* @__PURE__ */ function(e) {
|
|
539
539
|
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
540
|
-
}({}),
|
|
540
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
541
541
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
542
|
-
}({}),
|
|
542
|
+
}({}), We = [
|
|
543
543
|
"none",
|
|
544
544
|
"low",
|
|
545
545
|
"medium",
|
|
546
546
|
"high",
|
|
547
547
|
"xhigh",
|
|
548
548
|
"max"
|
|
549
|
-
],
|
|
549
|
+
], Ge = [
|
|
550
550
|
"low",
|
|
551
551
|
"medium",
|
|
552
552
|
"high",
|
|
553
553
|
"xhigh",
|
|
554
554
|
"max"
|
|
555
|
-
],
|
|
555
|
+
], Ke = [
|
|
556
556
|
"minimal",
|
|
557
557
|
"low",
|
|
558
558
|
"medium",
|
|
559
559
|
"high"
|
|
560
|
-
],
|
|
560
|
+
], qe = [
|
|
561
561
|
"auto",
|
|
562
562
|
"detailed",
|
|
563
563
|
"concise"
|
|
564
|
-
],
|
|
565
|
-
reasoningEffort: u(
|
|
566
|
-
reasoningSummary: u(
|
|
567
|
-
}),
|
|
564
|
+
], Je = n({
|
|
565
|
+
reasoningEffort: u(We).optional(),
|
|
566
|
+
reasoningSummary: u(qe).optional()
|
|
567
|
+
}), Ye = n({
|
|
568
568
|
type: u([
|
|
569
569
|
"adaptive",
|
|
570
570
|
"enabled",
|
|
571
571
|
"disabled"
|
|
572
572
|
]).optional(),
|
|
573
|
-
effort: u(
|
|
573
|
+
effort: u(Ge).optional(),
|
|
574
574
|
display: u(["summarized", "omitted"]).optional(),
|
|
575
575
|
budgetTokens: s().int().positive().optional()
|
|
576
|
-
}),
|
|
577
|
-
thinkingLevel: u(
|
|
576
|
+
}), Xe = n({
|
|
577
|
+
thinkingLevel: u(Ke).optional(),
|
|
578
578
|
thinkingBudget: s().int().optional(),
|
|
579
579
|
includeThoughts: d().optional()
|
|
580
|
-
}),
|
|
580
|
+
}), Ze = n({ type: u(["enabled", "disabled"]).optional() }), z = [
|
|
581
581
|
"alibaba",
|
|
582
582
|
"meta",
|
|
583
583
|
"moonshotai",
|
|
584
584
|
"spacexai",
|
|
585
585
|
"xiaomi",
|
|
586
586
|
"zai"
|
|
587
|
-
],
|
|
587
|
+
], Qe = [
|
|
588
588
|
"none",
|
|
589
589
|
"minimal",
|
|
590
590
|
"low",
|
|
591
591
|
"medium",
|
|
592
592
|
"high",
|
|
593
593
|
"xhigh"
|
|
594
|
-
],
|
|
595
|
-
function
|
|
594
|
+
], B = n({ reasoningEffort: u(Qe).optional() });
|
|
595
|
+
function V(e, t) {
|
|
596
596
|
return e && t.includes(e) ? e : void 0;
|
|
597
597
|
}
|
|
598
|
-
var
|
|
599
|
-
openai:
|
|
600
|
-
anthropic:
|
|
601
|
-
google:
|
|
602
|
-
deepseek:
|
|
603
|
-
alibaba:
|
|
604
|
-
meta:
|
|
605
|
-
moonshotai:
|
|
606
|
-
spacexai:
|
|
607
|
-
xiaomi:
|
|
608
|
-
zai:
|
|
598
|
+
var $e = n({
|
|
599
|
+
openai: Je.optional(),
|
|
600
|
+
anthropic: Ye.optional(),
|
|
601
|
+
google: Xe.optional(),
|
|
602
|
+
deepseek: Ze.optional(),
|
|
603
|
+
alibaba: B.optional(),
|
|
604
|
+
meta: B.optional(),
|
|
605
|
+
moonshotai: B.optional(),
|
|
606
|
+
spacexai: B.optional(),
|
|
607
|
+
xiaomi: B.optional(),
|
|
608
|
+
zai: B.optional()
|
|
609
609
|
});
|
|
610
|
-
function
|
|
610
|
+
function et(e) {
|
|
611
611
|
if (!e || typeof e != "object") return e;
|
|
612
612
|
let t = e, n = [
|
|
613
613
|
"openai",
|
|
614
614
|
"anthropic",
|
|
615
615
|
"google",
|
|
616
616
|
"deepseek",
|
|
617
|
-
...
|
|
617
|
+
...z
|
|
618
618
|
].some((e) => e in t);
|
|
619
619
|
if ("effort" in t && !n) {
|
|
620
620
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
621
621
|
if (e && e !== "off" && e !== "none") {
|
|
622
|
-
let t =
|
|
622
|
+
let t = V(e, We), i = V(n, qe);
|
|
623
623
|
(t || i) && (r.openai = {
|
|
624
624
|
...t && { reasoningEffort: t },
|
|
625
625
|
...i && { reasoningSummary: i }
|
|
626
626
|
});
|
|
627
|
-
let a =
|
|
627
|
+
let a = V(e, Ge);
|
|
628
628
|
a && (r.anthropic = {
|
|
629
629
|
type: "adaptive",
|
|
630
630
|
effort: a
|
|
631
631
|
});
|
|
632
|
-
let o =
|
|
632
|
+
let o = V(e === "xhigh" || e === "max" ? "high" : e, Ke);
|
|
633
633
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
634
|
-
let s =
|
|
635
|
-
if (s) for (let e of
|
|
634
|
+
let s = V(e === "max" ? "xhigh" : e, Qe);
|
|
635
|
+
if (s) for (let e of z) r[e] = { reasoningEffort: s };
|
|
636
636
|
} else {
|
|
637
637
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
638
|
-
for (let e of
|
|
638
|
+
for (let e of z) r[e] = { reasoningEffort: "none" };
|
|
639
639
|
}
|
|
640
640
|
return r;
|
|
641
641
|
}
|
|
642
642
|
return e;
|
|
643
643
|
}
|
|
644
|
-
var
|
|
645
|
-
return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.Spreadsheet = "spreadsheet", e.QuerySpreadsheet = "querySpreadsheet", e.WordDocument = "wordDocument", e.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowComparison = "showComparison", e.ShowContactForm = "showContactForm", e.ShowDiagram = "showDiagram", e.ShowEmail = "showEmail", e.ShowImageGallery = "showImageGallery", e.ShowLocation = "showLocation", e.ShowMessage = "showMessage", e.ShowForm = "showForm", e.ShowProductList = "showProductList", e.ShowQrCode = "showQrCode", e.ShowSources = "showSources", e.ShowSuggestedReply = "showSuggestedReply", e.ShowVideo = "showVideo", e.ShowWeather = "showWeather", e.ShowWebPages = "showWebPages", e.ShowMultipleChoice = "showMultipleChoice", e;
|
|
646
|
-
}({}),
|
|
647
|
-
function
|
|
648
|
-
return e ===
|
|
644
|
+
var tt = g(t(), $e, et).optional(), H = /* @__PURE__ */ function(e) {
|
|
645
|
+
return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.Spreadsheet = "spreadsheet", e.QuerySpreadsheet = "querySpreadsheet", e.WordDocument = "wordDocument", e.CreateSpreadsheet = "createSpreadsheet", e.CreateWordDocument = "createWordDocument", e.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowComparison = "showComparison", e.ShowContactForm = "showContactForm", e.ShowDiagram = "showDiagram", e.ShowEmail = "showEmail", e.ShowImageGallery = "showImageGallery", e.ShowLocation = "showLocation", e.ShowMessage = "showMessage", e.ShowForm = "showForm", e.ShowProductList = "showProductList", e.ShowQrCode = "showQrCode", e.ShowSources = "showSources", e.ShowSuggestedReply = "showSuggestedReply", e.ShowVideo = "showVideo", e.ShowWeather = "showWeather", e.ShowWebPages = "showWebPages", e.ShowMultipleChoice = "showMultipleChoice", e;
|
|
646
|
+
}({}), nt = "mcp-", rt = "api-", it = "subagent-";
|
|
647
|
+
function at(e) {
|
|
648
|
+
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;
|
|
649
649
|
}
|
|
650
|
-
|
|
651
|
-
var
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
650
|
+
H.RequestConfirm, H.ShowArtifact, H.ShowWeather, H.ShowLocation, H.ShowComparison, H.ShowProductList, H.ShowWebPages, H.ShowImageGallery, H.ShowVideo, H.ShowSources, H.ShowSuggestedReply, H.ShowCalendarEvent, H.ShowEmail, H.ShowMessage, H.ShowForm, H.ShareDocument;
|
|
651
|
+
var ot = /* @__PURE__ */ new Set([
|
|
652
|
+
H.RequestConfirm,
|
|
653
|
+
H.RequestGeolocation,
|
|
654
|
+
H.ShowForm,
|
|
655
|
+
H.ShowMultipleChoice,
|
|
656
656
|
"requestOAuthConnection"
|
|
657
657
|
]);
|
|
658
|
-
function
|
|
659
|
-
return
|
|
658
|
+
function st(e) {
|
|
659
|
+
return ot.has(e);
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
]),
|
|
683
|
-
function
|
|
684
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
661
|
+
var ct = /* @__PURE__ */ new Set([
|
|
662
|
+
H.RequestConfirm,
|
|
663
|
+
H.RequestGeolocation,
|
|
664
|
+
H.ShowArtifact,
|
|
665
|
+
H.ShowCalendarEvent,
|
|
666
|
+
H.ShowContactForm,
|
|
667
|
+
H.ShowComparison,
|
|
668
|
+
H.ShowDiagram,
|
|
669
|
+
H.ShowEmail,
|
|
670
|
+
H.ShowForm,
|
|
671
|
+
H.ShowImageGallery,
|
|
672
|
+
H.ShowLocation,
|
|
673
|
+
H.ShowMessage,
|
|
674
|
+
H.ShowMultipleChoice,
|
|
675
|
+
H.ShowProductList,
|
|
676
|
+
H.ShowQrCode,
|
|
677
|
+
H.ShowSources,
|
|
678
|
+
H.ShowSuggestedReply,
|
|
679
|
+
H.ShowVideo,
|
|
680
|
+
H.ShowWeather,
|
|
681
|
+
H.ShowWebPages
|
|
682
|
+
]), lt = "Shown on the caller's screen";
|
|
683
|
+
function ut(e) {
|
|
684
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(lt));
|
|
685
685
|
}
|
|
686
|
-
var
|
|
686
|
+
var dt = n({
|
|
687
687
|
maxSteps: s().int().min(1).max(10).optional().default(5),
|
|
688
688
|
maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
|
|
689
|
-
}),
|
|
689
|
+
}), ft = /* @__PURE__ */ function(e) {
|
|
690
690
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
691
|
-
}({}),
|
|
691
|
+
}({}), pt = [
|
|
692
692
|
"perplexity_search",
|
|
693
693
|
"parallel_search",
|
|
694
694
|
"web_search",
|
|
695
695
|
"openai_web_search",
|
|
696
696
|
"google_search"
|
|
697
|
-
],
|
|
697
|
+
], mt = n({
|
|
698
698
|
maxResults: s().int().min(1).max(20).optional(),
|
|
699
699
|
maxTokens: s().int().positive().max(1e6).optional(),
|
|
700
700
|
maxTokensPerPage: s().int().positive().optional(),
|
|
@@ -707,7 +707,7 @@ var W = n({
|
|
|
707
707
|
"month",
|
|
708
708
|
"year"
|
|
709
709
|
]).optional()
|
|
710
|
-
}),
|
|
710
|
+
}), ht = n({
|
|
711
711
|
mode: u(["one-shot", "agentic"]).optional(),
|
|
712
712
|
maxResults: s().int().min(1).max(20).optional(),
|
|
713
713
|
sourcePolicy: n({
|
|
@@ -720,7 +720,7 @@ var W = n({
|
|
|
720
720
|
maxCharsTotal: s().int().positive().optional()
|
|
721
721
|
}).optional(),
|
|
722
722
|
fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
|
|
723
|
-
}),
|
|
723
|
+
}), gt = n({
|
|
724
724
|
openai: n({}).optional(),
|
|
725
725
|
anthropic: n({
|
|
726
726
|
maxUses: s().int().positive().optional(),
|
|
@@ -735,27 +735,29 @@ var W = n({
|
|
|
735
735
|
}).optional()
|
|
736
736
|
}).optional(),
|
|
737
737
|
google: n({}).optional()
|
|
738
|
-
}),
|
|
738
|
+
}), U = n({
|
|
739
739
|
enabled: d().default(!1),
|
|
740
|
-
provider: u(
|
|
741
|
-
perplexity:
|
|
742
|
-
parallel:
|
|
743
|
-
native:
|
|
744
|
-
}),
|
|
745
|
-
disabled: c(u(
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
740
|
+
provider: u(ft).optional().default(ft.Native),
|
|
741
|
+
perplexity: mt.optional(),
|
|
742
|
+
parallel: ht.optional(),
|
|
743
|
+
native: gt.optional()
|
|
744
|
+
}), _t = n({ useAllUserKb: d().default(!1) }), vt = n({ useAllUserFiles: d().default(!1) }), yt = n({ enabled: d().default(!1) }), W = n({ enabled: d().default(!1) }), bt = n({ tools: c(i()).default([]) }), xt = n({
|
|
745
|
+
disabled: c(u(H)).default([
|
|
746
|
+
H.UserMemory,
|
|
747
|
+
H.SearchInUserFiles,
|
|
748
|
+
H.RunWorker,
|
|
749
|
+
H.FetchTeamsChannelHistory,
|
|
750
|
+
H.ScheduleWakeup
|
|
751
751
|
]),
|
|
752
|
-
showForm:
|
|
753
|
-
webSearch:
|
|
754
|
-
userMemory:
|
|
755
|
-
userFiles:
|
|
756
|
-
shareDocument:
|
|
757
|
-
|
|
758
|
-
|
|
752
|
+
showForm: dt.optional().default(() => dt.parse({})),
|
|
753
|
+
webSearch: U.optional().default(() => U.parse({})),
|
|
754
|
+
userMemory: _t.optional().default(() => _t.parse({})),
|
|
755
|
+
userFiles: vt.optional().default(() => vt.parse({})),
|
|
756
|
+
shareDocument: yt.optional().default(() => yt.parse({})),
|
|
757
|
+
createSpreadsheet: W.optional().default(() => W.parse({})),
|
|
758
|
+
createWordDocument: W.optional().default(() => W.parse({})),
|
|
759
|
+
approval: bt.optional().default(() => bt.parse({}))
|
|
760
|
+
}), G = n({
|
|
759
761
|
freshness: n({
|
|
760
762
|
enabled: d().default(!1),
|
|
761
763
|
scale: s().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -767,27 +769,27 @@ var W = n({
|
|
|
767
769
|
diversity: s().min(0).max(1).default(.3),
|
|
768
770
|
candidatesLimit: s().int().min(20).max(100).default(50)
|
|
769
771
|
}).prefault({})
|
|
770
|
-
}).prefault({}),
|
|
772
|
+
}).prefault({}), St = n({
|
|
771
773
|
prompt: i().optional(),
|
|
772
774
|
temperature: s().min(0).max(2).optional().default(.6),
|
|
773
775
|
maxOutputTokens: s().positive().optional(),
|
|
774
776
|
presencePenalty: s().min(-2).max(2).optional(),
|
|
775
777
|
frequencyPenalty: s().min(-2).max(2).optional(),
|
|
776
|
-
searchMode: u(
|
|
778
|
+
searchMode: u(R).optional().default(R.Balanced),
|
|
777
779
|
limit: s().positive().max(100).optional().default(10),
|
|
778
780
|
maxStepCount: s().int().min(1).max(40).optional().default(10),
|
|
779
|
-
reasoning:
|
|
780
|
-
ranking:
|
|
781
|
-
}),
|
|
781
|
+
reasoning: tt,
|
|
782
|
+
ranking: G.optional().default(() => G.parse({}))
|
|
783
|
+
}), K = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Ct = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", wt = /* @__PURE__ */ function(e) {
|
|
782
784
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
783
|
-
}({}),
|
|
785
|
+
}({}), q = /* @__PURE__ */ function(e) {
|
|
784
786
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
785
|
-
}({}),
|
|
787
|
+
}({}), J = /* @__PURE__ */ function(e) {
|
|
786
788
|
return e.Solid = "solid", e.Glass = "glass", e;
|
|
787
|
-
}({}),
|
|
789
|
+
}({}), Y = /* @__PURE__ */ function(e) {
|
|
788
790
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
789
|
-
}({}),
|
|
790
|
-
function
|
|
791
|
+
}({}), Tt = Object.values(Y), Et = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
792
|
+
function Dt(e) {
|
|
791
793
|
let t = e.trim().toLowerCase();
|
|
792
794
|
if (!t) return "";
|
|
793
795
|
try {
|
|
@@ -796,8 +798,8 @@ function Tt(e) {
|
|
|
796
798
|
return t;
|
|
797
799
|
}
|
|
798
800
|
}
|
|
799
|
-
var
|
|
800
|
-
media:
|
|
801
|
+
var X = n({
|
|
802
|
+
media: Fe.optional(),
|
|
801
803
|
logo: i().optional(),
|
|
802
804
|
theme: u([
|
|
803
805
|
"light",
|
|
@@ -811,29 +813,29 @@ var Z = n({
|
|
|
811
813
|
"black"
|
|
812
814
|
]).optional().default("auto"),
|
|
813
815
|
useColorsForAgentHeader: d().optional().default(!1),
|
|
814
|
-
initialMessage:
|
|
815
|
-
greeting: c(
|
|
816
|
-
messagePlaceholder:
|
|
817
|
-
dismissableNotice:
|
|
818
|
-
footerMessage:
|
|
819
|
-
privacyPolicyNotice:
|
|
816
|
+
initialMessage: K.optional(),
|
|
817
|
+
greeting: c(K).min(1).max(10).optional(),
|
|
818
|
+
messagePlaceholder: K.optional(),
|
|
819
|
+
dismissableNotice: K.optional(),
|
|
820
|
+
footerMessage: K.optional(),
|
|
821
|
+
privacyPolicyNotice: K.optional(),
|
|
820
822
|
interactiveLogin: d().optional().default(!0),
|
|
821
823
|
welcomePopup: d().optional().default(!1),
|
|
822
824
|
floatingButtonPosition: u(["left", "right"]).optional().default("right"),
|
|
823
|
-
layout: u(
|
|
824
|
-
appearance: u(
|
|
825
|
+
layout: u(q).optional().default(q.Floating),
|
|
826
|
+
appearance: u(J).optional().default(J.Solid),
|
|
825
827
|
hideFloatingButton: d().optional().default(!1),
|
|
826
828
|
workingGlow: d().optional().default(!0),
|
|
827
829
|
copilotPageCss: i().optional(),
|
|
828
830
|
maxMessageLength: s().int().positive().optional(),
|
|
829
|
-
widgetUrl: e().default(
|
|
831
|
+
widgetUrl: e().default(Ct),
|
|
830
832
|
loadDelay: s().int().min(0).max(3e4).optional().default(0),
|
|
831
|
-
loaderStrategy: u(
|
|
833
|
+
loaderStrategy: u(wt).optional().default(wt.InlineModule),
|
|
832
834
|
customCss: i().optional(),
|
|
833
835
|
smoothStream: d().optional().default(!1),
|
|
834
836
|
showExtendedSteps: d().optional().default(!1),
|
|
835
|
-
imageHosts: c(i().overwrite(
|
|
836
|
-
}),
|
|
837
|
+
imageHosts: c(i().overwrite(Dt).refine((e) => e === "" || Et.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
838
|
+
}), Ot = [
|
|
837
839
|
"image/jpeg",
|
|
838
840
|
"image/png",
|
|
839
841
|
"image/gif",
|
|
@@ -842,19 +844,19 @@ var Z = n({
|
|
|
842
844
|
"text/plain",
|
|
843
845
|
"text/markdown",
|
|
844
846
|
"text/csv"
|
|
845
|
-
],
|
|
847
|
+
], kt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", At = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Z = n({
|
|
846
848
|
enabled: d().default(!1),
|
|
847
849
|
maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
|
|
848
|
-
allowedMimeTypes: c(i().regex(
|
|
850
|
+
allowedMimeTypes: c(i().regex(j)).optional().default([...Ot]),
|
|
849
851
|
maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
|
|
850
852
|
maxFilesPerChat: s().int().positive().max(50).optional().default(20)
|
|
851
|
-
}),
|
|
853
|
+
}), Q = n({
|
|
852
854
|
zeroDataRetention: d().default(!0),
|
|
853
855
|
disallowPromptTraining: d().default(!0),
|
|
854
856
|
providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
|
|
855
|
-
}),
|
|
857
|
+
}), jt = n({ enabled: d().default(!1) }), Mt = /* @__PURE__ */ function(e) {
|
|
856
858
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
857
|
-
}({}),
|
|
859
|
+
}({}), Nt = n({ mode: u(Mt).default(Mt.Off) }), $ = n({
|
|
858
860
|
enabled: d().default(!1),
|
|
859
861
|
voiceId: i().optional(),
|
|
860
862
|
language: i().min(2).max(5).default("it"),
|
|
@@ -873,40 +875,40 @@ var Z = n({
|
|
|
873
875
|
providerAgentId: i().optional(),
|
|
874
876
|
providerSecretId: i().optional(),
|
|
875
877
|
providerApiKeyId: i().optional()
|
|
876
|
-
}),
|
|
878
|
+
}), Pt = n({ enabled: d() });
|
|
877
879
|
n({
|
|
878
880
|
chatId: i().min(1).optional(),
|
|
879
|
-
deviceContext:
|
|
881
|
+
deviceContext: le.optional(),
|
|
880
882
|
externalContext: h(i(), t()).optional()
|
|
881
883
|
});
|
|
882
|
-
var
|
|
884
|
+
var Ft = n({
|
|
883
885
|
sessionId: i(),
|
|
884
886
|
signedUrl: i(),
|
|
885
887
|
providerAgentId: i(),
|
|
886
888
|
chatId: i(),
|
|
887
889
|
maxSessionSeconds: s().int()
|
|
888
|
-
}),
|
|
890
|
+
}), It = n({
|
|
889
891
|
voiceId: i(),
|
|
890
892
|
name: i(),
|
|
891
893
|
category: i().optional(),
|
|
892
894
|
previewUrl: i().optional(),
|
|
893
895
|
labels: h(i(), i()).optional()
|
|
894
896
|
});
|
|
895
|
-
c(
|
|
896
|
-
var
|
|
897
|
-
model:
|
|
898
|
-
interface:
|
|
899
|
-
tools:
|
|
900
|
-
fileUpload:
|
|
901
|
-
gatewayOptions:
|
|
902
|
-
channels: c(u(
|
|
897
|
+
c(It);
|
|
898
|
+
var Lt = n({
|
|
899
|
+
model: St,
|
|
900
|
+
interface: X,
|
|
901
|
+
tools: xt.optional().default(() => xt.parse({})),
|
|
902
|
+
fileUpload: Z.optional().default(() => Z.parse({})),
|
|
903
|
+
gatewayOptions: Q.optional().default(() => Q.parse({})),
|
|
904
|
+
channels: c(u(Y)).optional().default(() => [...Tt]),
|
|
903
905
|
externalContextSchema: re.optional(),
|
|
904
|
-
openaiApi:
|
|
905
|
-
voice:
|
|
906
|
-
toolWorkingSet:
|
|
906
|
+
openaiApi: jt.optional().default(() => jt.parse({})),
|
|
907
|
+
voice: $.optional().default(() => $.parse({})),
|
|
908
|
+
toolWorkingSet: Nt.optional().default(() => Nt.parse({})),
|
|
907
909
|
hostTools: pe.optional(),
|
|
908
|
-
pageAccess:
|
|
909
|
-
}),
|
|
910
|
+
pageAccess: xe.optional()
|
|
911
|
+
}), Rt = n({
|
|
910
912
|
rateLimits: n({
|
|
911
913
|
minuteRateLimit: s().int().min(0).optional(),
|
|
912
914
|
hourRateLimit: s().int().min(0).optional(),
|
|
@@ -921,11 +923,11 @@ n({
|
|
|
921
923
|
prompt: i().optional(),
|
|
922
924
|
model: i().optional(),
|
|
923
925
|
fallbackModels: c(i()).default([]),
|
|
924
|
-
status: u(
|
|
925
|
-
visibility: u(
|
|
926
|
-
settings:
|
|
927
|
-
security:
|
|
928
|
-
type: u(
|
|
926
|
+
status: u(F).default(F.Draft),
|
|
927
|
+
visibility: u(I).default(I.Organization),
|
|
928
|
+
settings: Lt,
|
|
929
|
+
security: Rt.nullish(),
|
|
930
|
+
type: u(L).default(L.Chat),
|
|
929
931
|
organizationId: i()
|
|
930
932
|
}), o(() => n({
|
|
931
933
|
id: i(),
|
|
@@ -933,11 +935,11 @@ n({
|
|
|
933
935
|
prompt: i(),
|
|
934
936
|
model: i(),
|
|
935
937
|
fallbackModels: c(i()).nullable().default([]),
|
|
936
|
-
status: u(
|
|
937
|
-
visibility: u(
|
|
938
|
-
settings:
|
|
939
|
-
security:
|
|
940
|
-
type: u(
|
|
938
|
+
status: u(F).default(F.Draft),
|
|
939
|
+
visibility: u(I).default(I.Organization),
|
|
940
|
+
settings: Lt,
|
|
941
|
+
security: Rt.nullable(),
|
|
942
|
+
type: u(L).default(L.Chat),
|
|
941
943
|
organizationId: i(),
|
|
942
944
|
createdAt: f(),
|
|
943
945
|
createdBy: i(),
|
|
@@ -949,23 +951,23 @@ n({
|
|
|
949
951
|
outOfBudget: d().optional().default(!1),
|
|
950
952
|
outOfBudgetReason: i().optional().default("")
|
|
951
953
|
}));
|
|
952
|
-
var
|
|
954
|
+
var zt = n({
|
|
953
955
|
id: i(),
|
|
954
956
|
name: i(),
|
|
955
|
-
status: u(
|
|
956
|
-
visibility: u(
|
|
957
|
+
status: u(F),
|
|
958
|
+
visibility: u(I),
|
|
957
959
|
organizationId: i(),
|
|
958
|
-
interface:
|
|
960
|
+
interface: X,
|
|
959
961
|
createdAt: f(),
|
|
960
962
|
updatedAt: f(),
|
|
961
963
|
capabilities: n({
|
|
962
|
-
fileUpload:
|
|
963
|
-
voice:
|
|
964
|
+
fileUpload: Z,
|
|
965
|
+
voice: Pt,
|
|
964
966
|
hostTools: me.optional(),
|
|
965
|
-
pageAccess:
|
|
967
|
+
pageAccess: Ce.optional()
|
|
966
968
|
}),
|
|
967
|
-
channels: c(u(
|
|
968
|
-
}),
|
|
969
|
+
channels: c(u(Y)).default(() => [...Tt])
|
|
970
|
+
}), Bt = X.pick({
|
|
969
971
|
logo: !0,
|
|
970
972
|
mainColor: !0,
|
|
971
973
|
textColor: !0,
|
|
@@ -976,41 +978,41 @@ var Rt = n({
|
|
|
976
978
|
hideFloatingButton: !0,
|
|
977
979
|
copilotPageCss: !0,
|
|
978
980
|
customCss: !0
|
|
979
|
-
}),
|
|
981
|
+
}), Vt = zt.pick({
|
|
980
982
|
id: !0,
|
|
981
983
|
name: !0,
|
|
982
984
|
organizationId: !0
|
|
983
|
-
}).extend({ interface:
|
|
985
|
+
}).extend({ interface: Bt }), Ht = n({
|
|
984
986
|
emailPassword: d(),
|
|
985
987
|
google: d(),
|
|
986
988
|
microsoft: d()
|
|
987
|
-
}),
|
|
989
|
+
}), Ut = n({
|
|
988
990
|
requiresAuth: l(!1),
|
|
989
|
-
agent:
|
|
991
|
+
agent: zt,
|
|
990
992
|
branding: r()
|
|
991
|
-
}),
|
|
993
|
+
}), Wt = n({
|
|
992
994
|
requiresAuth: l(!0),
|
|
993
995
|
agent: r(),
|
|
994
|
-
branding:
|
|
996
|
+
branding: Vt
|
|
995
997
|
});
|
|
996
|
-
p("requiresAuth", [
|
|
997
|
-
var
|
|
998
|
+
p("requiresAuth", [Ut, Wt]);
|
|
999
|
+
var Gt = n({
|
|
998
1000
|
frontendUrl: i().optional(),
|
|
999
1001
|
telemetry: n({
|
|
1000
1002
|
environment: i(),
|
|
1001
1003
|
samplingRate: s().min(0).max(1)
|
|
1002
1004
|
}).nullable()
|
|
1003
|
-
}),
|
|
1004
|
-
authMethods:
|
|
1005
|
-
deploymentBranding:
|
|
1006
|
-
deployment:
|
|
1005
|
+
}), Kt = n({
|
|
1006
|
+
authMethods: Ht,
|
|
1007
|
+
deploymentBranding: se.nullish(),
|
|
1008
|
+
deployment: Gt.optional()
|
|
1007
1009
|
});
|
|
1008
|
-
p("requiresAuth", [
|
|
1010
|
+
p("requiresAuth", [Ut.extend(Kt.shape), Wt.extend(Kt.shape)]), n({
|
|
1009
1011
|
id: m(),
|
|
1010
1012
|
limited: d(),
|
|
1011
1013
|
agentIds: c(m())
|
|
1012
1014
|
});
|
|
1013
|
-
var
|
|
1015
|
+
var qt = n({
|
|
1014
1016
|
userId: m(),
|
|
1015
1017
|
name: i(),
|
|
1016
1018
|
email: i(),
|
|
@@ -1021,7 +1023,7 @@ var Kt = n({
|
|
|
1021
1023
|
});
|
|
1022
1024
|
n({
|
|
1023
1025
|
id: m(),
|
|
1024
|
-
members: c(
|
|
1026
|
+
members: c(qt)
|
|
1025
1027
|
}), n({
|
|
1026
1028
|
id: m(),
|
|
1027
1029
|
userIds: c(m())
|
|
@@ -1042,6 +1044,6 @@ n({
|
|
|
1042
1044
|
..._.fullText(),
|
|
1043
1045
|
..._.ids()
|
|
1044
1046
|
});
|
|
1045
|
-
export { be as A,
|
|
1047
|
+
export { be as A, Fe as C, we as D, Oe as E, he as F, le as I, g as L, _e as M, ue as N, A as O, ge as P, _ as R, j as S, ke as T, At as _, tt as a, ut as b, J as c, kt as d, it as f, pt as g, Ft as h, G as i, ye as j, Se as k, q as l, ct as m, H as n, R as o, ot as p, Q as r, U as s, rt as t, nt as u, at as v, Ae as w, Dt as x, st as y };
|
|
1046
1048
|
|
|
1047
|
-
//# sourceMappingURL=Agent-
|
|
1049
|
+
//# sourceMappingURL=Agent-BdoXh8b0.js.map
|