@8wave/ai-elements 0.125.0-beta.34 → 0.125.0-beta.36
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-CnCu6gNx.js → Agent-D9MWMkLp.js} +15 -11
- package/dist/_chunks/Agent-D9MWMkLp.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-Ctp30WJH.js → PkFilePreview-Bic0SA47.js} +524 -450
- package/dist/_chunks/PkFilePreview-Bic0SA47.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-B8JKpCXy.js → PkFilePreviewDialog-WKJ0Zm3O.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-B8JKpCXy.js.map → PkFilePreviewDialog-WKJ0Zm3O.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-BOuC5Dvy.js → PkSelectionActions-mna8QQGY.js} +66 -56
- package/dist/_chunks/PkSelectionActions-mna8QQGY.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-B0iGNA8Y.js → PkStreamingMarkdown-DKTxy47I.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-B0iGNA8Y.js.map → PkStreamingMarkdown-DKTxy47I.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-DbmXl92B.js → PkToolChatFile-CTBwDxvV.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-DbmXl92B.js.map → PkToolChatFile-CTBwDxvV.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DqrwL2xq.js → PkToolRequestGeolocation-XmQTnuwg.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DqrwL2xq.js.map → PkToolRequestGeolocation-XmQTnuwg.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CRHMFsVo.js → PkToolRequestOAuthConnection-BSKa66Nf.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CRHMFsVo.js.map → PkToolRequestOAuthConnection-BSKa66Nf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BiIFmeNh.js → PkToolShowArtifact-C27hZNJd.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BiIFmeNh.js.map → PkToolShowArtifact-C27hZNJd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-CNLEoesy.js → PkToolShowContactForm-VVgxhvQd.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-CNLEoesy.js.map → PkToolShowContactForm-VVgxhvQd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DSUzABRs.js → PkToolShowForm-C4t_v1ps.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-DSUzABRs.js.map → PkToolShowForm-C4t_v1ps.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CuSEzHyb.js → PkToolShowImageGallery-y3iOOanc.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CuSEzHyb.js.map → PkToolShowImageGallery-y3iOOanc.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-BHV90ovg.js → PkToolShowProductList-CTB2wcrz.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-BHV90ovg.js.map → PkToolShowProductList-CTB2wcrz.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-LxKdEl5a.js → PkToolShowSources-Byv7DkHR.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-LxKdEl5a.js.map → PkToolShowSources-Byv7DkHR.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DQ64E-n3.js → PkToolShowSuggestedReply-D8FQu6Pd.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DQ64E-n3.js.map → PkToolShowSuggestedReply-D8FQu6Pd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-m9TYCZU4.js → PkToolShowVideo-B8Ql2lYD.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-m9TYCZU4.js.map → PkToolShowVideo-B8Ql2lYD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D836KB_D.js → PkToolShowWebPages-CR-eQrdv.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-D836KB_D.js.map → PkToolShowWebPages-CR-eQrdv.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-DMvnRaBQ.js → chatImagePolicy-XBxAhi8o.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-DMvnRaBQ.js.map → chatImagePolicy-XBxAhi8o.js.map} +1 -1
- package/dist/_chunks/{markdown-BLSDivef.js → markdown-DGKSBppG.js} +2 -2
- package/dist/_chunks/{markdown-BLSDivef.js.map → markdown-DGKSBppG.js.map} +1 -1
- package/dist/_chunks/{utils-BF9VwhRy.js → utils-DYtnrtNk.js} +2 -2
- package/dist/_chunks/{utils-BF9VwhRy.js.map → utils-DYtnrtNk.js.map} +1 -1
- package/dist/ai-elements.es.js +39 -33
- 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-DuB5Hh7M.js → Agent-hvrlDtLK.js} +15 -11
- package/dist-vue/_chunks/Agent-hvrlDtLK.js.map +1 -0
- package/dist-vue/_chunks/{Document-BJxoQzKV.js → Document-DXSWegFn.js} +2 -2
- package/dist-vue/_chunks/{Document-BJxoQzKV.js.map → Document-DXSWegFn.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-CXW3IFfs.js → PkChatbot-BtJsIn4h.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CXW3IFfs.js.map → PkChatbot-BtJsIn4h.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-CD6ehXRE.js → PkChatbotEmptyState-BYrTqidA.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CD6ehXRE.js.map → PkChatbotEmptyState-BYrTqidA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-2zUenuUE.js → PkChatbotInput-Cwkz19oM.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotInput-2zUenuUE.js.map → PkChatbotInput-Cwkz19oM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DbgmLmbz.js → PkChatbotMessages-Bmrvz0Nv.js} +17 -17
- package/dist-vue/_chunks/{PkChatbotMessages-DbgmLmbz.js.map → PkChatbotMessages-Bmrvz0Nv.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-CkTJ1nFP.js → PkChatbotStepPayload-C4yEGoXA.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CkTJ1nFP.js.map → PkChatbotStepPayload-C4yEGoXA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DBi87nYU.js → PkChatbotStepToolDetail-DnGYrFSt.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DBi87nYU.js.map → PkChatbotStepToolDetail-DnGYrFSt.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BC2gLvzh.js → PkChatbotSteps-CoP1JyWG.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-BC2gLvzh.js.map → PkChatbotSteps-CoP1JyWG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-9BKIdCDD.js → PkChatbotViewChat-B14w_WuO.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-9BKIdCDD.js.map → PkChatbotViewChat-B14w_WuO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BWj_CaXs.js → PkChatbotViewConversations-oYUIHDwb.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BWj_CaXs.js.map → PkChatbotViewConversations-oYUIHDwb.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-9kcgLUrQ.js → PkChatbotViewFiles-C1ggPJvX.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-9kcgLUrQ.js.map → PkChatbotViewFiles-C1ggPJvX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-CJR38-Zw.js → PkChatbotViewProfile-BZJ8OZ9h.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-CJR38-Zw.js.map → PkChatbotViewProfile-BZJ8OZ9h.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-CmET6sdA.js → PkFilePreview-CTsoIgC0.js} +516 -432
- package/dist-vue/_chunks/PkFilePreview-CTsoIgC0.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-CqQBzL5n.js → PkFilePreviewDialog-DbTpN0hb.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-CqQBzL5n.js.map → PkFilePreviewDialog-DbTpN0hb.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-Db4sGE5U.js → PkStreamingMarkdown-BiS7Huii.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-Db4sGE5U.js.map → PkStreamingMarkdown-BiS7Huii.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-CuilyyQV.js → PkToolChatFile-DJouw7ft.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-CuilyyQV.js.map → PkToolChatFile-DJouw7ft.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBjweLxM.js → PkToolRequestGeolocation-Du8b17X9.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBjweLxM.js.map → PkToolRequestGeolocation-Du8b17X9.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C3RPmvS9.js → PkToolRequestOAuthConnection-X00hZZJe.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C3RPmvS9.js.map → PkToolRequestOAuthConnection-X00hZZJe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BPM1M44f.js → PkToolShowArtifact-BAfGUGM4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BPM1M44f.js.map → PkToolShowArtifact-BAfGUGM4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-B3Um_vEc.js → PkToolShowContactForm-BEWOoCVa.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-B3Um_vEc.js.map → PkToolShowContactForm-BEWOoCVa.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BDyGph2_.js → PkToolShowDiagram-CgOAGQCq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BDyGph2_.js.map → PkToolShowDiagram-CgOAGQCq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-D14J_UP1.js → PkToolShowForm-BXpPnVzJ.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-D14J_UP1.js.map → PkToolShowForm-BXpPnVzJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-BVrAQqq5.js → PkToolShowImageGallery-DOsnvy1W.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-BVrAQqq5.js.map → PkToolShowImageGallery-DOsnvy1W.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-DkDNFoIh.js → PkToolShowProductList-Buw-GpNJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-DkDNFoIh.js.map → PkToolShowProductList-Buw-GpNJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BIsZaSr3.js → PkToolShowSources-CPvjMvqB.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-BIsZaSr3.js.map → PkToolShowSources-CPvjMvqB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-qbQz8Ia2.js → PkToolShowSuggestedReply-HLFecN53.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-qbQz8Ia2.js.map → PkToolShowSuggestedReply-HLFecN53.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-BursN2E9.js → PkToolShowVideo-DPZtAuLl.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-BursN2E9.js.map → PkToolShowVideo-DPZtAuLl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-C2QqzOZx.js → PkToolShowWebPages-DXjDxztJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-C2QqzOZx.js.map → PkToolShowWebPages-DXjDxztJ.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CWQKS07V.js → createChatbotApiClient-CWLca1yc.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-CWQKS07V.js.map → createChatbotApiClient-CWLca1yc.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-qgCC4aIL.js → useChatbotStore-CNQ8lTub.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-qgCC4aIL.js.map → useChatbotStore-CNQ8lTub.js.map} +1 -1
- package/dist-vue/_chunks/{utils-BcFZVBxd.js → utils-Dqyng-2B.js} +2 -2
- package/dist-vue/_chunks/{utils-BcFZVBxd.js.map → utils-Dqyng-2B.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
- package/dist-vue/composables.js +12 -12
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +2917 -2897
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +6 -6
- package/dist-vue/packages/components/src/chat/PkAgentSelectionActionsSettings.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +42 -2
- package/dist-vue/packages/composable/src/useSettledSelection.d.ts +13 -4
- package/dist-vue/packages/models/src/schema/Agent.d.ts +1 -1
- package/dist-vue/packages/models/src/schema/AgentChatStatistics.d.ts +27 -0
- package/dist-vue/packages/models/src/schema/CostReport.d.ts +40 -0
- package/dist-vue/packages/models/src/schema/SelectionAction.d.ts +5 -2
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-CnCu6gNx.js.map +0 -1
- package/dist/_chunks/PkFilePreview-Ctp30WJH.js.map +0 -1
- package/dist/_chunks/PkSelectionActions-BOuC5Dvy.js.map +0 -1
- package/dist-vue/_chunks/Agent-DuB5Hh7M.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-CmET6sdA.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -468,7 +468,7 @@ var e = {
|
|
|
468
468
|
pageAccessPointer: "A button in the chat input to point at an element of the page, or select its text, and ask about it.",
|
|
469
469
|
pageAccessNotice: "Empty, the widget uses the level's own text.",
|
|
470
470
|
selectionActionPrompt: "Sent with the selected text",
|
|
471
|
-
selectionActionsMax: "At most {count} actions
|
|
471
|
+
selectionActionsMax: "At most {count} actions in the menu, built-in and the agent's together.",
|
|
472
472
|
modelRetired: "No longer available on the platform: move the agents using it to another model.",
|
|
473
473
|
modelNotCompatible: "Not compatible with the privacy flags of this agent.",
|
|
474
474
|
modelGuaranteedOnSome: "The guarantees you switched on hold only on some providers of this model: the gateway routes accordingly.",
|
|
@@ -583,7 +583,7 @@ var e = {
|
|
|
583
583
|
noHostToolsAllowed: "No tool allowed",
|
|
584
584
|
select: "Select",
|
|
585
585
|
noPageAccessExcludeSelectors: "No excluded area besides data-agent-ignore",
|
|
586
|
-
noSelectionActions: "No actions of the agent: the
|
|
586
|
+
noSelectionActions: "No actions of the agent: the menu shows the chosen built-ins and “Ask…”",
|
|
587
587
|
uploadFile: "Upload a file",
|
|
588
588
|
askAnything: "Type your message…",
|
|
589
589
|
noTrustedOrigins: "No trusted origins configured",
|
|
@@ -931,8 +931,8 @@ var e = {
|
|
|
931
931
|
labelCell: "{file}, sheet {sheet}, cell {cell}",
|
|
932
932
|
notLatest: "This is version {version}: edits start from the latest one.",
|
|
933
933
|
openLatest: "Open the latest",
|
|
934
|
-
label: "Actions on the selection",
|
|
935
934
|
askPlaceholder: "What should be done with the selection?",
|
|
935
|
+
label: "Actions on the selection",
|
|
936
936
|
ask: "Ask…",
|
|
937
937
|
card: {
|
|
938
938
|
aiNotice: "Answered by artificial intelligence",
|
|
@@ -1471,7 +1471,7 @@ var e = {
|
|
|
1471
1471
|
pageAccessPointer: "Un pulsante nel campo della chat per indicare un elemento della pagina, o selezionarne il testo, e chiedere.",
|
|
1472
1472
|
pageAccessNotice: "Vuoto, il widget usa il testo del livello.",
|
|
1473
1473
|
selectionActionPrompt: "Parte con il testo selezionato",
|
|
1474
|
-
selectionActionsMax: "Al massimo {count} azioni
|
|
1474
|
+
selectionActionsMax: "Al massimo {count} azioni nel menu, predefinite e dell'agente insieme.",
|
|
1475
1475
|
modelRetired: "Non più disponibile sulla piattaforma: sposta su un altro modello gli agenti che lo usano.",
|
|
1476
1476
|
modelNotCompatible: "Non compatibile con i flag di riservatezza di questo agente.",
|
|
1477
1477
|
modelGuaranteedOnSome: "Le garanzie che hai acceso valgono solo su alcuni provider di questo modello: il gateway instrada di conseguenza.",
|
|
@@ -1586,7 +1586,7 @@ var e = {
|
|
|
1586
1586
|
noHostToolsAllowed: "Nessun tool ammesso",
|
|
1587
1587
|
select: "Seleziona",
|
|
1588
1588
|
noPageAccessExcludeSelectors: "Nessuna zona esclusa oltre a data-agent-ignore",
|
|
1589
|
-
noSelectionActions: "Nessuna azione dell'agente:
|
|
1589
|
+
noSelectionActions: "Nessuna azione dell'agente: il menu mostra le predefinite scelte e «Chiedi…»",
|
|
1590
1590
|
uploadFile: "Carica un file",
|
|
1591
1591
|
askAnything: "Scrivi la tua domanda…",
|
|
1592
1592
|
noTrustedOrigins: "Nessuna origine attendibile configurata",
|
|
@@ -1934,8 +1934,8 @@ var e = {
|
|
|
1934
1934
|
labelCell: "{file}, foglio {sheet}, cella {cell}",
|
|
1935
1935
|
notLatest: "Questa è la versione {version}: le modifiche partono dall'ultima.",
|
|
1936
1936
|
openLatest: "Apri l'ultima",
|
|
1937
|
-
label: "Azioni sulla selezione",
|
|
1938
1937
|
askPlaceholder: "Cosa vuoi fare con la selezione?",
|
|
1938
|
+
label: "Azioni sulla selezione",
|
|
1939
1939
|
ask: "Chiedi…",
|
|
1940
1940
|
card: {
|
|
1941
1941
|
aiNotice: "Risponde un'intelligenza artificiale",
|
|
@@ -14,6 +14,12 @@ type __VLS_Props = {
|
|
|
14
14
|
surface: SelectionSurface;
|
|
15
15
|
/** The agent's languages, the interface's first: a tab each, as the agent's other texts. */
|
|
16
16
|
locales: string[];
|
|
17
|
+
/**
|
|
18
|
+
* No frame of its own: in the advanced options of a tool, which are
|
|
19
|
+
* framed already and name the tool. A third frame there left the
|
|
20
|
+
* instruction a few words wide.
|
|
21
|
+
*/
|
|
22
|
+
bare?: boolean;
|
|
17
23
|
};
|
|
18
24
|
type __VLS_ModelProps = {
|
|
19
25
|
modelValue?: Partial<Group> | undefined;
|
|
@@ -140,6 +140,10 @@ type __VLS_ModelProps = {
|
|
|
140
140
|
'pageAccess'?: Partial<PageAccessSettings> | undefined;
|
|
141
141
|
/** The bar of actions on a text selected on the page (spec `selection-actions.md`). */
|
|
142
142
|
'selectionActionsPage'?: Partial<SelectionActionsSettings['page']> | undefined;
|
|
143
|
+
/** The menu on a text selected in a Word document of the chat (spec `chat-file-selection-edit.md`). */
|
|
144
|
+
'selectionActionsWord'?: Partial<SelectionActionsSettings['word']> | undefined;
|
|
145
|
+
/** The menu on a range of cells of an Excel sheet of the chat. */
|
|
146
|
+
'selectionActionsExcel'?: Partial<SelectionActionsSettings['excel']> | undefined;
|
|
143
147
|
/** The user may choose automatic confirmations in the chat (spec `auto-confirmations.md`). */
|
|
144
148
|
'confirmationsAllowAutomatic'?: boolean;
|
|
145
149
|
'ranking'?: {
|
|
@@ -159,9 +163,9 @@ type __VLS_ModelProps = {
|
|
|
159
163
|
} | undefined;
|
|
160
164
|
};
|
|
161
165
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
162
|
-
declare var
|
|
166
|
+
declare var __VLS_929: {};
|
|
163
167
|
type __VLS_Slots = {} & {
|
|
164
|
-
default?: (props: typeof
|
|
168
|
+
default?: (props: typeof __VLS_929) => any;
|
|
165
169
|
};
|
|
166
170
|
declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
167
171
|
"update:reasoning": (value: {
|
|
@@ -429,6 +433,24 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
429
433
|
prompt: Record<string, string>;
|
|
430
434
|
}[];
|
|
431
435
|
}> | undefined) => any;
|
|
436
|
+
"update:selectionActionsWord": (value: Partial<{
|
|
437
|
+
enabled: boolean;
|
|
438
|
+
builtIns: ("rewrite" | "shorten" | "proofread" | "translate")[];
|
|
439
|
+
actions: {
|
|
440
|
+
id: string;
|
|
441
|
+
label: Record<string, string>;
|
|
442
|
+
prompt: Record<string, string>;
|
|
443
|
+
}[];
|
|
444
|
+
}> | undefined) => any;
|
|
445
|
+
"update:selectionActionsExcel": (value: Partial<{
|
|
446
|
+
enabled: boolean;
|
|
447
|
+
builtIns: ("explain" | "summarize" | "chart")[];
|
|
448
|
+
actions: {
|
|
449
|
+
id: string;
|
|
450
|
+
label: Record<string, string>;
|
|
451
|
+
prompt: Record<string, string>;
|
|
452
|
+
}[];
|
|
453
|
+
}> | undefined) => any;
|
|
432
454
|
"update:confirmationsAllowAutomatic": (value: boolean) => any;
|
|
433
455
|
"update:ranking": (value: {
|
|
434
456
|
freshness?: {
|
|
@@ -712,6 +734,24 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
712
734
|
prompt: Record<string, string>;
|
|
713
735
|
}[];
|
|
714
736
|
}> | undefined) => any) | undefined;
|
|
737
|
+
"onUpdate:selectionActionsWord"?: ((value: Partial<{
|
|
738
|
+
enabled: boolean;
|
|
739
|
+
builtIns: ("rewrite" | "shorten" | "proofread" | "translate")[];
|
|
740
|
+
actions: {
|
|
741
|
+
id: string;
|
|
742
|
+
label: Record<string, string>;
|
|
743
|
+
prompt: Record<string, string>;
|
|
744
|
+
}[];
|
|
745
|
+
}> | undefined) => any) | undefined;
|
|
746
|
+
"onUpdate:selectionActionsExcel"?: ((value: Partial<{
|
|
747
|
+
enabled: boolean;
|
|
748
|
+
builtIns: ("explain" | "summarize" | "chart")[];
|
|
749
|
+
actions: {
|
|
750
|
+
id: string;
|
|
751
|
+
label: Record<string, string>;
|
|
752
|
+
prompt: Record<string, string>;
|
|
753
|
+
}[];
|
|
754
|
+
}> | undefined) => any) | undefined;
|
|
715
755
|
"onUpdate:confirmationsAllowAutomatic"?: ((value: boolean) => any) | undefined;
|
|
716
756
|
"onUpdate:ranking"?: ((value: {
|
|
717
757
|
freshness?: {
|
|
@@ -16,17 +16,26 @@ export interface UseSettledSelectionOptions {
|
|
|
16
16
|
delay?: number;
|
|
17
17
|
/** The shortest text that counts. */
|
|
18
18
|
minChars?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Also on a touch screen, where the bar goes below the selection, away
|
|
21
|
+
* from the system's menu: the chat's file viewer (spec
|
|
22
|
+
* `chat-file-selection-edit.md`, F4). The page leaves a touch selection
|
|
23
|
+
* to the system's menu (spec `selection-actions.md`, F3).
|
|
24
|
+
*/
|
|
25
|
+
touch?: boolean;
|
|
19
26
|
}
|
|
27
|
+
/** True on a touch screen, where a selection's bar goes below it. */
|
|
28
|
+
export declare function isTouchScreen(): boolean;
|
|
20
29
|
/**
|
|
21
30
|
* The selection once it stays still (spec `selection-actions.md`, "Cosa è
|
|
22
31
|
* comune"): what the bar of actions appears on, on the page that embeds the
|
|
23
32
|
* widget and in the chat's file viewer. `selectionchange` fires on the
|
|
24
33
|
* document wherever the selection is, so the document is always listened to
|
|
25
|
-
* and `root` only says where the range is read. Nothing on a touch screen
|
|
26
|
-
* Undefined while the selection moves, is collapsed or
|
|
27
|
-
* `minChars`; each reader then checks that the range is its own.
|
|
34
|
+
* and `root` only says where the range is read. Nothing on a touch screen
|
|
35
|
+
* unless `touch`. Undefined while the selection moves, is collapsed or
|
|
36
|
+
* shorter than `minChars`; each reader then checks that the range is its own.
|
|
28
37
|
*/
|
|
29
|
-
export declare function useSettledSelection({ root, enabled, delay, minChars, }: UseSettledSelectionOptions): {
|
|
38
|
+
export declare function useSettledSelection({ root, enabled, delay, minChars, touch, }: UseSettledSelectionOptions): {
|
|
30
39
|
selection: Readonly<ShallowRef<SettledSelection | undefined>>;
|
|
31
40
|
clear: () => void;
|
|
32
41
|
};
|
|
@@ -10,6 +10,9 @@ export declare const AgentChatStatisticsQuerystringSchema: z.ZodObject<{
|
|
|
10
10
|
hour: "hour";
|
|
11
11
|
}>>;
|
|
12
12
|
channels: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof ChatChannel>, z.ZodArray<z.ZodEnum<typeof ChatChannel>>]>>;
|
|
13
|
+
compare: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
previous: "previous";
|
|
15
|
+
}>>;
|
|
13
16
|
}, z.core.$strip>;
|
|
14
17
|
export type AgentChatStatisticsQuerystring = z.infer<typeof AgentChatStatisticsQuerystringSchema>;
|
|
15
18
|
export declare const AgentChatStatisticsSummarySchema: z.ZodObject<{
|
|
@@ -168,6 +171,21 @@ export declare const AgentChatStatisticsTimeSeriesItemSchema: z.ZodObject<{
|
|
|
168
171
|
costUsd: z.ZodNumber;
|
|
169
172
|
}, z.core.$strip>;
|
|
170
173
|
export type AgentChatStatisticsTimeSeriesItem = z.infer<typeof AgentChatStatisticsTimeSeriesItemSchema>;
|
|
174
|
+
/**
|
|
175
|
+
* The headline figures of the period before, same filters, same number of
|
|
176
|
+
* buckets, ending right where the requested period starts. `dateFrom` and
|
|
177
|
+
* `dateTo` are its bounds, inclusive, after the truncation to the bucket.
|
|
178
|
+
*/
|
|
179
|
+
export declare const AgentChatStatisticsPreviousSchema: z.ZodObject<{
|
|
180
|
+
totalConversations: z.ZodNumber;
|
|
181
|
+
totalMessages: z.ZodNumber;
|
|
182
|
+
uniqueUsers: z.ZodNumber;
|
|
183
|
+
avgMessagesPerChat: z.ZodNumber;
|
|
184
|
+
avgConversationsPerUser: z.ZodNumber;
|
|
185
|
+
dateFrom: z.ZodString;
|
|
186
|
+
dateTo: z.ZodString;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
export type AgentChatStatisticsPrevious = z.infer<typeof AgentChatStatisticsPreviousSchema>;
|
|
171
189
|
export declare const AgentChatStatisticsResponseSchema: z.ZodObject<{
|
|
172
190
|
summary: z.ZodObject<{
|
|
173
191
|
totalConversations: z.ZodNumber;
|
|
@@ -323,5 +341,14 @@ export declare const AgentChatStatisticsResponseSchema: z.ZodObject<{
|
|
|
323
341
|
uniqueUsers: z.ZodNumber;
|
|
324
342
|
costUsd: z.ZodNumber;
|
|
325
343
|
}, z.core.$strip>>;
|
|
344
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
345
|
+
totalConversations: z.ZodNumber;
|
|
346
|
+
totalMessages: z.ZodNumber;
|
|
347
|
+
uniqueUsers: z.ZodNumber;
|
|
348
|
+
avgMessagesPerChat: z.ZodNumber;
|
|
349
|
+
avgConversationsPerUser: z.ZodNumber;
|
|
350
|
+
dateFrom: z.ZodString;
|
|
351
|
+
dateTo: z.ZodString;
|
|
352
|
+
}, z.core.$strip>>;
|
|
326
353
|
}, z.core.$strip>;
|
|
327
354
|
export type AgentChatStatisticsResponse = z.infer<typeof AgentChatStatisticsResponseSchema>;
|
|
@@ -37,3 +37,43 @@ export declare const costReportsQuerystringSchema: z.ZodObject<{
|
|
|
37
37
|
'page[size]': z.ZodDefault<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export type CostReportsQuerystring = z.infer<typeof costReportsQuerystringSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* The period and agent of the per-user consumption table of the dashboard
|
|
42
|
+
* (docs/specs/dashboard-usage-reports.md, F2). No organization: the backend
|
|
43
|
+
* reads it from the session.
|
|
44
|
+
*/
|
|
45
|
+
export declare const UserUsageQuerystringSchema: z.ZodObject<{
|
|
46
|
+
dateFrom: z.ZodCoercedDate<unknown>;
|
|
47
|
+
dateTo: z.ZodCoercedDate<unknown>;
|
|
48
|
+
agentId: z.ZodOptional<z.ZodUUID>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type UserUsageQuerystring = z.infer<typeof UserUsageQuerystringSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* What one person spent with one agent over the period. `userId`, `name`
|
|
53
|
+
* and `email` are null on the rows of the people who cannot be named:
|
|
54
|
+
* anonymous visitors, unverified platform users and erased accounts, summed
|
|
55
|
+
* per agent.
|
|
56
|
+
*/
|
|
57
|
+
export declare const UserUsageRowSchema: z.ZodObject<{
|
|
58
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
name: z.ZodNullable<z.ZodString>;
|
|
60
|
+
email: z.ZodNullable<z.ZodString>;
|
|
61
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
conversations: z.ZodNumber;
|
|
63
|
+
tokens: z.ZodNumber;
|
|
64
|
+
cost: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type UserUsageRow = z.infer<typeof UserUsageRowSchema>;
|
|
67
|
+
export declare const UserUsageSchema: z.ZodObject<{
|
|
68
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
69
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
70
|
+
name: z.ZodNullable<z.ZodString>;
|
|
71
|
+
email: z.ZodNullable<z.ZodString>;
|
|
72
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
73
|
+
conversations: z.ZodNumber;
|
|
74
|
+
tokens: z.ZodNumber;
|
|
75
|
+
cost: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
unidentifiedUsers: z.ZodNumber;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type UserUsage = z.infer<typeof UserUsageSchema>;
|
|
@@ -43,11 +43,14 @@ export type SelectionAction = z.infer<typeof SelectionActionSchema>;
|
|
|
43
43
|
* The check of a save on `settings`, for `AgentDtoSchema`: every action of a
|
|
44
44
|
* group that is on has its label and instruction in each locale written, the
|
|
45
45
|
* issue on the field that lacks it. A group switched off is not checked: its
|
|
46
|
-
* fields are not on screen, and the bar does not show it.
|
|
46
|
+
* fields are not on screen, and the bar does not show it. Nor is a group
|
|
47
|
+
* whose condition is off (`shown`: the page access, the tool of the format):
|
|
48
|
+
* the backoffice hides it with its condition, and a half-written action
|
|
49
|
+
* there refused every save until the tool was switched on again.
|
|
47
50
|
*/
|
|
48
51
|
export declare function refineSelectionActions(settings: {
|
|
49
52
|
selectionActions?: Partial<SelectionActionsSettings>;
|
|
50
|
-
}, context: z.RefinementCtx): void;
|
|
53
|
+
}, context: z.RefinementCtx, shown?: Partial<Record<SelectionSurface, boolean>>): void;
|
|
51
54
|
export declare const PageSelectionGroupSchema: z.ZodObject<{
|
|
52
55
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
53
56
|
builtIns: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|