@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
package/dist-vue/_chunks/{createChatbotApiClient-Dv-9sFRF.js → createChatbotApiClient-DSLxswr4.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as d, t as f } from "./Media-
|
|
3
|
-
import { C as ee,
|
|
1
|
+
import { S as e, T as t, _ as n, m as r, o as i, r as a, s as o, u as s, v as c, w as l, x as u } from "./schemas-Bu1lick6.js";
|
|
2
|
+
import { o as d, t as f } from "./Media-C6RS-s98.js";
|
|
3
|
+
import { C as ee, N as te, U as p, W as m, a as h, c as g, f as ne, l as re, n as ie, s as ae } from "./Agent-dGF8mkG9.js";
|
|
4
4
|
import { t as oe } from "./StreamError-D1AtGgS3.js";
|
|
5
5
|
import "./src-DCfvejyT.js";
|
|
6
6
|
import { r as _, t as se } from "./url-validation-9DstIfq2.js";
|
|
@@ -30,58 +30,58 @@ var me = /* @__PURE__ */ function(e) {
|
|
|
30
30
|
sentiment: a(S).describe("Overall user sentiment in the conversation."),
|
|
31
31
|
sentimentTrend: a(C).describe("How the user sentiment evolved during the conversation."),
|
|
32
32
|
userTone: a(x).describe("Predominant tone of the user messages."),
|
|
33
|
-
language:
|
|
34
|
-
topics: i(
|
|
33
|
+
language: e().max(10).describe("ISO 639-1 language code of the conversation (e.g. \"en\", \"it\")."),
|
|
34
|
+
topics: i(e().max(100)).max(10).describe("Main topics discussed, as short lowercase labels."),
|
|
35
35
|
userAbuseDetected: o().describe("Whether user abuse was detected. If false, userAbuseCategories MUST be empty."),
|
|
36
36
|
userAbuseCategories: i(a(me)).default([]).describe("Abuse categories detected. Non-empty only if userAbuseDetected is true."),
|
|
37
37
|
userAbuseConfidence: a(he).optional().describe("Confidence level of the abuse detection. Set only if userAbuseDetected is true."),
|
|
38
|
-
userAbuseSummary:
|
|
38
|
+
userAbuseSummary: e().max(w).optional().describe("Brief description of the abusive behavior detected. Always write in English. Set only if userAbuseDetected is true."),
|
|
39
39
|
llmIssueDetected: o().describe("Whether an LLM quality issue was detected. If false, llmIssueCategories MUST be empty."),
|
|
40
40
|
llmIssueCategories: i(a(ge)).default([]).describe("LLM issue categories detected. Non-empty only if llmIssueDetected is true."),
|
|
41
|
-
llmIssueSummary:
|
|
41
|
+
llmIssueSummary: e().max(w).optional().describe("Brief description of the LLM quality issue detected. Always write in English. Set only if llmIssueDetected is true."),
|
|
42
42
|
userEngagement: a(b).describe("Level of user engagement in the conversation."),
|
|
43
43
|
conversationGoalMet: o().optional().describe("Whether the user seems to have achieved what they came for. Leave undefined if unclear."),
|
|
44
|
-
riskScore:
|
|
44
|
+
riskScore: n().int().min(0).max(100).describe("Overall risk score (0 = safe, 100 = critical). Combination of abuse severity, persistence and escalation.")
|
|
45
45
|
}), E = c({
|
|
46
46
|
type: r("text"),
|
|
47
|
-
text:
|
|
47
|
+
text: e()
|
|
48
48
|
}), D = c({
|
|
49
49
|
type: r("file"),
|
|
50
|
-
mediaType:
|
|
51
|
-
url:
|
|
52
|
-
filename:
|
|
53
|
-
providerMetadata:
|
|
50
|
+
mediaType: e().regex(f),
|
|
51
|
+
url: t(),
|
|
52
|
+
filename: e().optional(),
|
|
53
|
+
providerMetadata: u(e(), u(e(), l())).optional()
|
|
54
54
|
}), O = s("type", [E, D]);
|
|
55
55
|
c({
|
|
56
|
-
id:
|
|
56
|
+
id: e(),
|
|
57
57
|
messages: i(c({
|
|
58
|
-
id:
|
|
58
|
+
id: e().optional(),
|
|
59
59
|
role: a(["assistant", "user"]),
|
|
60
|
-
content:
|
|
60
|
+
content: e(),
|
|
61
61
|
parts: i(O),
|
|
62
|
-
createdAt:
|
|
62
|
+
createdAt: e().optional()
|
|
63
63
|
})),
|
|
64
|
-
model:
|
|
65
|
-
temperature:
|
|
66
|
-
prompt:
|
|
67
|
-
maxOutputTokens:
|
|
68
|
-
presencePenalty:
|
|
69
|
-
frequencyPenalty:
|
|
64
|
+
model: e().optional(),
|
|
65
|
+
temperature: n().optional(),
|
|
66
|
+
prompt: e().optional(),
|
|
67
|
+
maxOutputTokens: n().positive().optional(),
|
|
68
|
+
presencePenalty: n().min(-2).max(2).optional(),
|
|
69
|
+
frequencyPenalty: n().min(-2).max(2).optional(),
|
|
70
70
|
searchMode: a(re).optional(),
|
|
71
|
-
limit:
|
|
71
|
+
limit: n().optional(),
|
|
72
72
|
ranking: ae.optional(),
|
|
73
73
|
reasoning: g,
|
|
74
74
|
webSearch: ne.optional(),
|
|
75
|
-
maxStepCount:
|
|
75
|
+
maxStepCount: n().int().min(1).max(40).optional(),
|
|
76
76
|
disabledTools: i(a(ie)).optional(),
|
|
77
|
-
fallbackModels: i(
|
|
77
|
+
fallbackModels: i(e()).optional(),
|
|
78
78
|
gatewayOptions: h.partial().optional(),
|
|
79
|
-
deviceContext:
|
|
80
|
-
externalContext:
|
|
79
|
+
deviceContext: te.optional(),
|
|
80
|
+
externalContext: u(e(), l()).optional(),
|
|
81
81
|
smoothStream: o().optional()
|
|
82
82
|
}), c({
|
|
83
|
-
id:
|
|
84
|
-
messages: i(c({ role:
|
|
83
|
+
id: e().min(1),
|
|
84
|
+
messages: i(c({ role: e() }).loose()).min(1)
|
|
85
85
|
}).loose();
|
|
86
86
|
var k = /* @__PURE__ */ function(e) {
|
|
87
87
|
return e.SevereAbuse = "severe_abuse", e.HighRiskScore = "high_risk_score", e.RepeatedWarnings = "repeated_warnings", e;
|
|
@@ -104,7 +104,7 @@ function A(e) {
|
|
|
104
104
|
}
|
|
105
105
|
continue;
|
|
106
106
|
}
|
|
107
|
-
let n =
|
|
107
|
+
let n = p(e, r.keys()), s = n && r.get(n);
|
|
108
108
|
s && (t.state === "output-error" && oe.test(t.errorText ?? "") ? o.add(s) : a.add(s));
|
|
109
109
|
}
|
|
110
110
|
let s = new Set(n.selected), c = new Set(n.seeded), l = t.groups.map((e) => ({
|
|
@@ -136,28 +136,28 @@ var j = [
|
|
|
136
136
|
"output-error",
|
|
137
137
|
"output-denied"
|
|
138
138
|
]), N = c({
|
|
139
|
-
id:
|
|
140
|
-
messages: i(
|
|
141
|
-
title:
|
|
142
|
-
summary:
|
|
143
|
-
messageCountAtLastSummary:
|
|
139
|
+
id: e(),
|
|
140
|
+
messages: i(l()),
|
|
141
|
+
title: e().nullable(),
|
|
142
|
+
summary: e().nullable(),
|
|
143
|
+
messageCountAtLastSummary: e().nullable(),
|
|
144
144
|
createdAt: d(),
|
|
145
145
|
updatedAt: d(),
|
|
146
|
-
metadata:
|
|
147
|
-
totalCostInUSD:
|
|
148
|
-
usage:
|
|
149
|
-
agentId:
|
|
150
|
-
userId:
|
|
151
|
-
organizationId:
|
|
146
|
+
metadata: u(e(), l()),
|
|
147
|
+
totalCostInUSD: e(),
|
|
148
|
+
usage: l(),
|
|
149
|
+
agentId: e().nullable(),
|
|
150
|
+
userId: e(),
|
|
151
|
+
organizationId: e(),
|
|
152
152
|
deleted: o(),
|
|
153
153
|
deletedAt: d().nullable(),
|
|
154
|
-
deletedBy:
|
|
154
|
+
deletedBy: e().nullable(),
|
|
155
155
|
conversationAnalysis: T.nullable().optional(),
|
|
156
156
|
blocked: o(),
|
|
157
157
|
blockedAt: d().nullable(),
|
|
158
158
|
blockedReasonCode: a(k).nullable(),
|
|
159
|
-
blockedReason:
|
|
160
|
-
warningCount:
|
|
159
|
+
blockedReason: e().nullable(),
|
|
160
|
+
warningCount: n(),
|
|
161
161
|
lastMessageAt: d()
|
|
162
162
|
});
|
|
163
163
|
c({
|
|
@@ -171,20 +171,20 @@ c({
|
|
|
171
171
|
...m.range("updatedAt"),
|
|
172
172
|
...m.range("lastMessageAt"),
|
|
173
173
|
...m.ids(),
|
|
174
|
-
startDate:
|
|
175
|
-
endDate:
|
|
174
|
+
startDate: e().optional(),
|
|
175
|
+
endDate: e().optional()
|
|
176
176
|
});
|
|
177
177
|
var P = c({
|
|
178
|
-
id:
|
|
179
|
-
agentId:
|
|
180
|
-
organizationId:
|
|
181
|
-
summary:
|
|
182
|
-
title:
|
|
183
|
-
userId:
|
|
178
|
+
id: e(),
|
|
179
|
+
agentId: e().optional(),
|
|
180
|
+
organizationId: e(),
|
|
181
|
+
summary: e().optional(),
|
|
182
|
+
title: e().optional(),
|
|
183
|
+
userId: e(),
|
|
184
184
|
createdAt: d(),
|
|
185
185
|
updatedAt: d(),
|
|
186
186
|
lastMessageAt: d(),
|
|
187
|
-
messages: i(
|
|
187
|
+
messages: i(l()),
|
|
188
188
|
blocked: o()
|
|
189
189
|
}), F = class {
|
|
190
190
|
constructor(e, t) {
|
|
@@ -453,6 +453,9 @@ function ze(e) {
|
|
|
453
453
|
async stopChatWakeup(e, t) {
|
|
454
454
|
return i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}/wakeup`, { method: "DELETE" });
|
|
455
455
|
},
|
|
456
|
+
async markChatWakeupPresence(e, t) {
|
|
457
|
+
await i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}/wakeup/presence`, { method: "PUT" }, "void");
|
|
458
|
+
},
|
|
456
459
|
async updateChatTitle(e, t, n) {
|
|
457
460
|
return $(await i(`/agents/${encodeURIComponent(e)}/chats/${encodeURIComponent(t)}`, {
|
|
458
461
|
method: "PATCH",
|
|
@@ -590,4 +593,4 @@ function ze(e) {
|
|
|
590
593
|
//#endregion
|
|
591
594
|
export { A as a, j as i, Z as n, M as r, ze as t };
|
|
592
595
|
|
|
593
|
-
//# sourceMappingURL=createChatbotApiClient-
|
|
596
|
+
//# sourceMappingURL=createChatbotApiClient-DSLxswr4.js.map
|