@8wave/ai-elements 0.119.0-beta.48 → 0.119.0-beta.54
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-DU38SnNd.js.map +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-xnhBbPf5.js → PkStreamingMarkdown-pEgm7m-B.js} +4 -4
- package/dist/_chunks/PkStreamingMarkdown-pEgm7m-B.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-DPt1qDUk.js → PkToolShowArtifact-D6ZTw5vh.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DPt1qDUk.js.map → PkToolShowArtifact-D6ZTw5vh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-OdC7bsXd.js → PkToolShowContactForm-CW7gKQ7h.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-OdC7bsXd.js.map → PkToolShowContactForm-CW7gKQ7h.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-uFmaQoI1.js → PkToolShowForm-D_2FmDwq.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-uFmaQoI1.js.map → PkToolShowForm-D_2FmDwq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BlpCKc4N.js → PkToolShowSources-DyzheirE.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-BlpCKc4N.js.map → PkToolShowSources-DyzheirE.js.map} +1 -1
- package/dist/_chunks/markdown-BKLfFJPr.js.map +1 -1
- package/dist/ai-elements.es.js +1176 -1174
- 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-DDm9cCaN.js → Agent-DUdd9NbF.js} +79 -70
- package/dist-vue/_chunks/Agent-DUdd9NbF.js.map +1 -0
- package/dist-vue/_chunks/{Document-CZemm1AR.js → Document-B4q9uYmN.js} +10 -10
- package/dist-vue/_chunks/Document-B4q9uYmN.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-DXwMfwN4.js → PkChatbot-Ck6RO0Rd.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-DXwMfwN4.js.map → PkChatbot-Ck6RO0Rd.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dve5Ci2Y.js → PkChatbotEmptyState-DhJDJhxj.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dve5Ci2Y.js.map → PkChatbotEmptyState-DhJDJhxj.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-DiCxEime.js → PkChatbotInput--ULB71Ld.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-DiCxEime.js.map → PkChatbotInput--ULB71Ld.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-CTp0NkY2.js → PkChatbotMessages-Bni4EjEB.js} +17 -17
- package/dist-vue/_chunks/{PkChatbotMessages-CTp0NkY2.js.map → PkChatbotMessages-Bni4EjEB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-B1o2DbQz.js → PkChatbotStepPayload-D8Y5I01D.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-B1o2DbQz.js.map → PkChatbotStepPayload-D8Y5I01D.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DpYV0KLn.js → PkChatbotStepToolDetail-CwstaTuG.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DpYV0KLn.js.map → PkChatbotStepToolDetail-CwstaTuG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BPon4zjv.js → PkChatbotSteps-Caz3eJgv.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-BPon4zjv.js.map → PkChatbotSteps-Caz3eJgv.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-dJE2iHPN.js → PkChatbotViewChat-B_T3HkON.js} +174 -174
- package/dist-vue/_chunks/PkChatbotViewChat-B_T3HkON.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-DcEcJgwV.js → PkChatbotViewConversations-CvGu-4t3.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-DcEcJgwV.js.map → PkChatbotViewConversations-CvGu-4t3.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DDEJqXct.js → PkChatbotViewFiles-CWyaCSXx.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DDEJqXct.js.map → PkChatbotViewFiles-CWyaCSXx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-B79UynQ8.js → PkChatbotViewProfile-gGx0SEXR.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-B79UynQ8.js.map → PkChatbotViewProfile-gGx0SEXR.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CqT_orLj.js → PkStreamingMarkdown-DZ8jmXzh.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-CqT_orLj.js.map → PkStreamingMarkdown-DZ8jmXzh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Dcp3VFzY.js → PkToolEditSpreadsheet-CtRusPSR.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Dcp3VFzY.js.map → PkToolEditSpreadsheet-CtRusPSR.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DG4-qKRq.js → PkToolRequestGeolocation-P_QxEXD5.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DG4-qKRq.js.map → PkToolRequestGeolocation-P_QxEXD5.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CZhNEM-o.js → PkToolRequestOAuthConnection-BlngXdPM.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CZhNEM-o.js.map → PkToolRequestOAuthConnection-BlngXdPM.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Qfkz64NY.js → PkToolShowArtifact-CoBUA6lk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Qfkz64NY.js.map → PkToolShowArtifact-CoBUA6lk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CRLEkYSE.js → PkToolShowContactForm-BjE4mrDv.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CRLEkYSE.js.map → PkToolShowContactForm-BjE4mrDv.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-j4FJ34Ta.js → PkToolShowDiagram-CVmV8ip6.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-j4FJ34Ta.js.map → PkToolShowDiagram-CVmV8ip6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DdFBwLMf.js → PkToolShowForm-CbAHlcVY.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-DdFBwLMf.js.map → PkToolShowForm-CbAHlcVY.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-CxlOwuTJ.js → PkToolShowImageGallery-lwId4MH0.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-CxlOwuTJ.js.map → PkToolShowImageGallery-lwId4MH0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-dfd3vmhl.js → PkToolShowProductList-uilv8927.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-dfd3vmhl.js.map → PkToolShowProductList-uilv8927.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-B8Euk3rp.js → PkToolShowSources-Cg2POjp8.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-B8Euk3rp.js.map → PkToolShowSources-Cg2POjp8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cl3Pswi4.js → PkToolShowSuggestedReply-CMXG6Ntj.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cl3Pswi4.js.map → PkToolShowSuggestedReply-CMXG6Ntj.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-C84UrvZ7.js → PkToolShowVideo-D04Xeojs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-C84UrvZ7.js.map → PkToolShowVideo-D04Xeojs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CzzuVQqL.js → PkToolShowWebPages-D7bEHkyy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CzzuVQqL.js.map → PkToolShowWebPages-D7bEHkyy.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DrUsRvCw.js → createChatbotApiClient-pAQ5kfjL.js} +14 -14
- package/dist-vue/_chunks/{createChatbotApiClient-DrUsRvCw.js.map → createChatbotApiClient-pAQ5kfjL.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DHmjHPR5.js → useChatbotStore-B2KlwdHy.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-DHmjHPR5.js.map → useChatbotStore-B2KlwdHy.js.map} +1 -1
- package/dist-vue/_chunks/{utils-7oPvmwwu.js → utils-JCvPK7lV.js} +5 -5
- package/dist-vue/_chunks/utils-JCvPK7lV.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +9 -7
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3365 -3359
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +6 -0
- package/dist-vue/packages/auth/src/invitation-resend-plugin.d.ts +16 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +22 -0
- package/dist-vue/packages/models/src/schema/Invitation.d.ts +7 -0
- package/dist-vue/packages/models/src/schema/constants.d.ts +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkStreamingMarkdown-xnhBbPf5.js.map +0 -1
- package/dist-vue/_chunks/Agent-DDm9cCaN.js.map +0 -1
- package/dist-vue/_chunks/Document-CZemm1AR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-dJE2iHPN.js.map +0 -1
- package/dist-vue/_chunks/utils-7oPvmwwu.js.map +0 -1
package/dist-vue/PkChatbot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbot-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbot-Ck6RO0Rd.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-DhJDJhxj.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput--ULB71Ld.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-Bni4EjEB.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-D8Y5I01D.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-CwstaTuG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-Caz3eJgv.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-B_T3HkON.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-CvGu-4t3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-CWyaCSXx.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-gGx0SEXR.js";
|
|
@@ -447,7 +447,16 @@ var tt = d({
|
|
|
447
447
|
maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
|
|
448
448
|
}), U = /* @__PURE__ */ function(e) {
|
|
449
449
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
450
|
-
}({}), nt =
|
|
450
|
+
}({}), nt = {
|
|
451
|
+
openai: "OpenAI",
|
|
452
|
+
anthropic: "Anthropic",
|
|
453
|
+
google: "Google"
|
|
454
|
+
};
|
|
455
|
+
function rt(e) {
|
|
456
|
+
let t = e.split("/")[0];
|
|
457
|
+
return Object.prototype.hasOwnProperty.call(nt, t) ? nt[t] : void 0;
|
|
458
|
+
}
|
|
459
|
+
var it = d({
|
|
451
460
|
maxResults: i().int().min(1).max(20).optional(),
|
|
452
461
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
453
462
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -460,7 +469,7 @@ var tt = d({
|
|
|
460
469
|
"month",
|
|
461
470
|
"year"
|
|
462
471
|
]).optional()
|
|
463
|
-
}),
|
|
472
|
+
}), at = d({
|
|
464
473
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
465
474
|
maxResults: i().int().min(1).max(20).optional(),
|
|
466
475
|
sourcePolicy: d({
|
|
@@ -473,7 +482,7 @@ var tt = d({
|
|
|
473
482
|
maxCharsTotal: i().int().positive().optional()
|
|
474
483
|
}).optional(),
|
|
475
484
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
476
|
-
}),
|
|
485
|
+
}), ot = d({
|
|
477
486
|
openai: d({}).optional(),
|
|
478
487
|
anthropic: d({
|
|
479
488
|
maxUses: i().int().positive().optional(),
|
|
@@ -491,10 +500,10 @@ var tt = d({
|
|
|
491
500
|
}), W = d({
|
|
492
501
|
enabled: u().default(!1),
|
|
493
502
|
provider: l(U).optional().default(U.Native),
|
|
494
|
-
perplexity:
|
|
495
|
-
parallel:
|
|
496
|
-
native:
|
|
497
|
-
}),
|
|
503
|
+
perplexity: it.optional(),
|
|
504
|
+
parallel: at.optional(),
|
|
505
|
+
native: ot.optional()
|
|
506
|
+
}), st = d({ useAllUserKb: u().default(!1) }), ct = d({ useAllUserFiles: u().default(!1) }), lt = d({ tools: c(n()).default([]) }), ut = d({
|
|
498
507
|
disabled: c(l(H)).default([
|
|
499
508
|
H.UserMemory,
|
|
500
509
|
H.SearchInUserFiles,
|
|
@@ -504,10 +513,10 @@ var tt = d({
|
|
|
504
513
|
]),
|
|
505
514
|
showForm: tt.optional().default(() => tt.parse({})),
|
|
506
515
|
webSearch: W.optional().default(() => W.parse({})),
|
|
507
|
-
userMemory:
|
|
508
|
-
userFiles:
|
|
509
|
-
approval:
|
|
510
|
-
}),
|
|
516
|
+
userMemory: st.optional().default(() => st.parse({})),
|
|
517
|
+
userFiles: ct.optional().default(() => ct.parse({})),
|
|
518
|
+
approval: lt.optional().default(() => lt.parse({}))
|
|
519
|
+
}), G = d({
|
|
511
520
|
freshness: d({
|
|
512
521
|
enabled: u().default(!1),
|
|
513
522
|
scale: i().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -519,7 +528,7 @@ var tt = d({
|
|
|
519
528
|
diversity: i().min(0).max(1).default(.3),
|
|
520
529
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
521
530
|
}).prefault({})
|
|
522
|
-
}).prefault({}),
|
|
531
|
+
}).prefault({}), dt = d({
|
|
523
532
|
prompt: n().optional(),
|
|
524
533
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
525
534
|
maxOutputTokens: i().positive().optional(),
|
|
@@ -529,13 +538,13 @@ var tt = d({
|
|
|
529
538
|
limit: i().positive().max(100).optional().default(10),
|
|
530
539
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
531
540
|
reasoning: Le,
|
|
532
|
-
ranking:
|
|
533
|
-
}),
|
|
541
|
+
ranking: G.optional().default(() => G.parse({}))
|
|
542
|
+
}), K = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), ft = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", q = /* @__PURE__ */ function(e) {
|
|
534
543
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
535
|
-
}({}),
|
|
544
|
+
}({}), J = /* @__PURE__ */ function(e) {
|
|
536
545
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
537
|
-
}({}),
|
|
538
|
-
function
|
|
546
|
+
}({}), pt = Object.values(J), mt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
547
|
+
function ht(e) {
|
|
539
548
|
let t = e.trim().toLowerCase();
|
|
540
549
|
if (!t) return "";
|
|
541
550
|
try {
|
|
@@ -544,7 +553,7 @@ function ft(e) {
|
|
|
544
553
|
return t;
|
|
545
554
|
}
|
|
546
555
|
}
|
|
547
|
-
var
|
|
556
|
+
var Y = d({
|
|
548
557
|
media: ne.optional(),
|
|
549
558
|
logo: n().optional(),
|
|
550
559
|
theme: l([
|
|
@@ -559,24 +568,24 @@ var X = d({
|
|
|
559
568
|
"black"
|
|
560
569
|
]).optional().default("auto"),
|
|
561
570
|
useColorsForAgentHeader: u().optional().default(!1),
|
|
562
|
-
initialMessage:
|
|
563
|
-
greeting: c(
|
|
564
|
-
messagePlaceholder:
|
|
565
|
-
dismissableNotice:
|
|
566
|
-
footerMessage:
|
|
567
|
-
privacyPolicyNotice:
|
|
571
|
+
initialMessage: K.optional(),
|
|
572
|
+
greeting: c(K).min(1).max(10).optional(),
|
|
573
|
+
messagePlaceholder: K.optional(),
|
|
574
|
+
dismissableNotice: K.optional(),
|
|
575
|
+
footerMessage: K.optional(),
|
|
576
|
+
privacyPolicyNotice: K.optional(),
|
|
568
577
|
interactiveLogin: u().optional().default(!0),
|
|
569
578
|
welcomePopup: u().optional().default(!1),
|
|
570
579
|
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
571
580
|
maxMessageLength: i().int().positive().optional(),
|
|
572
|
-
widgetUrl: r().default(
|
|
581
|
+
widgetUrl: r().default(ft),
|
|
573
582
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
574
|
-
loaderStrategy: l(
|
|
583
|
+
loaderStrategy: l(q).optional().default(q.InlineModule),
|
|
575
584
|
customCss: n().optional(),
|
|
576
585
|
smoothStream: u().optional().default(!1),
|
|
577
586
|
showExtendedSteps: u().optional().default(!1),
|
|
578
|
-
imageHosts: c(n().overwrite(
|
|
579
|
-
}),
|
|
587
|
+
imageHosts: c(n().overwrite(ht).refine((e) => e === "" || mt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
588
|
+
}), gt = [
|
|
580
589
|
"image/jpeg",
|
|
581
590
|
"image/png",
|
|
582
591
|
"image/gif",
|
|
@@ -585,19 +594,19 @@ var X = d({
|
|
|
585
594
|
"text/plain",
|
|
586
595
|
"text/markdown",
|
|
587
596
|
"text/csv"
|
|
588
|
-
],
|
|
597
|
+
], _t = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", X = d({
|
|
589
598
|
enabled: u().default(!1),
|
|
590
599
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
591
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([...
|
|
600
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...gt]),
|
|
592
601
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
593
602
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
594
|
-
}),
|
|
603
|
+
}), Z = d({
|
|
595
604
|
zeroDataRetention: u().default(!0),
|
|
596
605
|
disallowPromptTraining: u().default(!0),
|
|
597
606
|
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
598
|
-
}),
|
|
607
|
+
}), vt = d({ enabled: u().default(!1) }), Q = /* @__PURE__ */ function(e) {
|
|
599
608
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
600
|
-
}({}),
|
|
609
|
+
}({}), yt = d({ mode: l(Q).default(Q.Off) }), bt = d({
|
|
601
610
|
enabled: u().default(!1),
|
|
602
611
|
voiceId: n().optional(),
|
|
603
612
|
language: n().min(2).max(5).default("it"),
|
|
@@ -616,38 +625,38 @@ var X = d({
|
|
|
616
625
|
providerAgentId: n().optional(),
|
|
617
626
|
providerSecretId: n().optional(),
|
|
618
627
|
providerApiKeyId: n().optional()
|
|
619
|
-
}),
|
|
628
|
+
}), xt = d({ enabled: u() });
|
|
620
629
|
d({
|
|
621
630
|
chatId: n().min(1).optional(),
|
|
622
631
|
deviceContext: ke.optional(),
|
|
623
632
|
externalContext: p(n(), f()).optional()
|
|
624
633
|
});
|
|
625
|
-
var
|
|
634
|
+
var St = d({
|
|
626
635
|
sessionId: n(),
|
|
627
636
|
signedUrl: n(),
|
|
628
637
|
providerAgentId: n(),
|
|
629
638
|
chatId: n(),
|
|
630
639
|
maxSessionSeconds: i().int()
|
|
631
|
-
}),
|
|
640
|
+
}), Ct = d({
|
|
632
641
|
voiceId: n(),
|
|
633
642
|
name: n(),
|
|
634
643
|
category: n().optional(),
|
|
635
644
|
previewUrl: n().optional(),
|
|
636
645
|
labels: p(n(), n()).optional()
|
|
637
646
|
});
|
|
638
|
-
c(
|
|
639
|
-
var
|
|
640
|
-
model:
|
|
641
|
-
interface:
|
|
642
|
-
tools:
|
|
643
|
-
fileUpload:
|
|
644
|
-
gatewayOptions:
|
|
645
|
-
channels: c(l(
|
|
647
|
+
c(Ct);
|
|
648
|
+
var wt = d({
|
|
649
|
+
model: dt,
|
|
650
|
+
interface: Y,
|
|
651
|
+
tools: ut.optional().default(() => ut.parse({})),
|
|
652
|
+
fileUpload: X.optional().default(() => X.parse({})),
|
|
653
|
+
gatewayOptions: Z.optional().default(() => Z.parse({})),
|
|
654
|
+
channels: c(l(J)).optional().default(() => [...pt]),
|
|
646
655
|
externalContextSchema: ae.optional(),
|
|
647
|
-
openaiApi:
|
|
648
|
-
voice:
|
|
649
|
-
toolWorkingSet:
|
|
650
|
-
}),
|
|
656
|
+
openaiApi: vt.optional().default(() => vt.parse({})),
|
|
657
|
+
voice: bt.optional().default(() => bt.parse({})),
|
|
658
|
+
toolWorkingSet: yt.optional().default(() => yt.parse({}))
|
|
659
|
+
}), Tt = d({
|
|
651
660
|
rateLimits: d({
|
|
652
661
|
minuteRateLimit: i().int().min(0).optional(),
|
|
653
662
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -664,8 +673,8 @@ d({
|
|
|
664
673
|
fallbackModels: c(n()).default([]),
|
|
665
674
|
status: l(A).default(A.Draft),
|
|
666
675
|
visibility: l(j).default(j.Organization),
|
|
667
|
-
settings:
|
|
668
|
-
security:
|
|
676
|
+
settings: wt,
|
|
677
|
+
security: Tt.nullish(),
|
|
669
678
|
type: l(M).default(M.Chat),
|
|
670
679
|
organizationId: n()
|
|
671
680
|
}), ee(() => d({
|
|
@@ -676,8 +685,8 @@ d({
|
|
|
676
685
|
fallbackModels: c(n()).nullable().default([]),
|
|
677
686
|
status: l(A).default(A.Draft),
|
|
678
687
|
visibility: l(j).default(j.Organization),
|
|
679
|
-
settings:
|
|
680
|
-
security:
|
|
688
|
+
settings: wt,
|
|
689
|
+
security: Tt.nullable(),
|
|
681
690
|
type: l(M).default(M.Chat),
|
|
682
691
|
organizationId: n(),
|
|
683
692
|
createdAt: m(),
|
|
@@ -690,50 +699,50 @@ d({
|
|
|
690
699
|
outOfBudget: u().optional().default(!1),
|
|
691
700
|
outOfBudgetReason: n().optional().default("")
|
|
692
701
|
}));
|
|
693
|
-
var
|
|
702
|
+
var $ = d({
|
|
694
703
|
id: n(),
|
|
695
704
|
name: n(),
|
|
696
705
|
status: l(A),
|
|
697
706
|
visibility: l(j),
|
|
698
707
|
organizationId: n(),
|
|
699
|
-
interface:
|
|
708
|
+
interface: Y,
|
|
700
709
|
createdAt: m(),
|
|
701
710
|
updatedAt: m(),
|
|
702
711
|
capabilities: d({
|
|
703
|
-
fileUpload:
|
|
704
|
-
voice:
|
|
712
|
+
fileUpload: X,
|
|
713
|
+
voice: xt
|
|
705
714
|
}),
|
|
706
|
-
channels: c(l(
|
|
707
|
-
}),
|
|
715
|
+
channels: c(l(J)).default(() => [...pt])
|
|
716
|
+
}), Et = Y.pick({
|
|
708
717
|
logo: !0,
|
|
709
718
|
mainColor: !0,
|
|
710
719
|
textColor: !0,
|
|
711
720
|
theme: !0,
|
|
712
721
|
floatingButtonPosition: !0,
|
|
713
722
|
customCss: !0
|
|
714
|
-
}),
|
|
723
|
+
}), Dt = $.pick({
|
|
715
724
|
id: !0,
|
|
716
725
|
name: !0,
|
|
717
726
|
organizationId: !0
|
|
718
|
-
}).extend({ interface:
|
|
727
|
+
}).extend({ interface: Et }), Ot = d({
|
|
719
728
|
emailPassword: u(),
|
|
720
729
|
google: u(),
|
|
721
730
|
microsoft: u()
|
|
722
|
-
}),
|
|
731
|
+
}), kt = d({
|
|
723
732
|
requiresAuth: s(!1),
|
|
724
|
-
agent:
|
|
733
|
+
agent: $,
|
|
725
734
|
branding: a()
|
|
726
|
-
}),
|
|
735
|
+
}), At = d({
|
|
727
736
|
requiresAuth: s(!0),
|
|
728
737
|
agent: a(),
|
|
729
|
-
branding:
|
|
738
|
+
branding: Dt
|
|
730
739
|
});
|
|
731
|
-
te("requiresAuth", [
|
|
732
|
-
var
|
|
733
|
-
authMethods:
|
|
740
|
+
te("requiresAuth", [kt, At]);
|
|
741
|
+
var jt = d({
|
|
742
|
+
authMethods: Ot,
|
|
734
743
|
deploymentBranding: fe.nullish()
|
|
735
744
|
});
|
|
736
|
-
te("requiresAuth", [
|
|
745
|
+
te("requiresAuth", [kt.extend(jt.shape), At.extend(jt.shape)]), d({
|
|
737
746
|
id: t(),
|
|
738
747
|
agentIds: c(t())
|
|
739
748
|
}), d({
|
|
@@ -754,6 +763,6 @@ te("requiresAuth", [Dt.extend(kt.shape), Ot.extend(kt.shape)]), d({
|
|
|
754
763
|
...g.ids()
|
|
755
764
|
});
|
|
756
765
|
//#endregion
|
|
757
|
-
export { Pe as A,
|
|
766
|
+
export { Pe as A, _ as B, Ue as C, U as D, St as E, rt as F, me as G, ye as H, ht as I, g as J, h as K, ke as L, Ke as M, Xe as N, Ge as O, et as P, b as R, _t as S, Qe as T, ue as U, we as V, Te as W, z as _, X as a, P as b, G as c, Q as d, M as f, We as g, ft as h, J as i, Je as j, Be as k, Le as l, Ze as m, He as n, Z as o, W as p, le as q, H as r, q as s, F as t, N as u, I as v, Ye as w, L as x, Ve as y, D as z };
|
|
758
767
|
|
|
759
|
-
//# sourceMappingURL=Agent-
|
|
768
|
+
//# sourceMappingURL=Agent-DUdd9NbF.js.map
|