@8wave/ai-elements 0.114.0-beta.8 → 0.115.0-beta.13

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.
Files changed (164) hide show
  1. package/dist/_chunks/Agent-DK76k05_.js +566 -0
  2. package/dist/_chunks/Agent-DK76k05_.js.map +1 -0
  3. package/dist/_chunks/{PkStreamingMarkdown-C1sANAr5.js → PkStreamingMarkdown-BKxA6Ntl.js} +688 -672
  4. package/dist/_chunks/PkStreamingMarkdown-BKxA6Ntl.js.map +1 -0
  5. package/dist/_chunks/{PkToolRequestGeolocation-BbxYKt-9.js → PkToolRequestGeolocation-OF1PWhMw.js} +2 -2
  6. package/{dist-vue/_chunks/PkToolRequestGeolocation-9vfYNaQo.js.map → dist/_chunks/PkToolRequestGeolocation-OF1PWhMw.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-CTp2w60F.js → PkToolRequestOAuthConnection-CgQePKKb.js} +4 -4
  8. package/dist/_chunks/PkToolRequestOAuthConnection-CgQePKKb.js.map +1 -0
  9. package/dist/_chunks/{PkToolShowArtifact-BfTjxGOT.js → PkToolShowArtifact-CHxeuKEU.js} +2 -2
  10. package/dist/_chunks/{PkToolShowArtifact-BfTjxGOT.js.map → PkToolShowArtifact-CHxeuKEU.js.map} +1 -1
  11. package/dist/_chunks/PkToolShowComparison-8d6fAhRp.js +72 -0
  12. package/dist/_chunks/PkToolShowComparison-8d6fAhRp.js.map +1 -0
  13. package/dist/_chunks/{PkToolShowContactForm-PFpY9dIp.js → PkToolShowContactForm-DqVLVwqJ.js} +2 -2
  14. package/dist/_chunks/{PkToolShowContactForm-PFpY9dIp.js.map → PkToolShowContactForm-DqVLVwqJ.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowForm-CMtSN0oX.js → PkToolShowForm-YJQPYfEe.js} +5 -5
  16. package/dist/_chunks/{PkToolShowForm-CMtSN0oX.js.map → PkToolShowForm-YJQPYfEe.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowSources-C6cu66Ts.js → PkToolShowSources-kGQlIKaN.js} +3 -3
  18. package/dist/_chunks/{PkToolShowSources-C6cu66Ts.js.map → PkToolShowSources-kGQlIKaN.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowSuggestedReply-CFO8wV1b.js → PkToolShowSuggestedReply-Dl4x_nEJ.js} +2 -2
  20. package/dist/_chunks/{PkToolShowSuggestedReply-CFO8wV1b.js.map → PkToolShowSuggestedReply-Dl4x_nEJ.js.map} +1 -1
  21. package/dist/_chunks/{markdown-BRD-hDrH.js → markdown-B4cYQGBo.js} +37 -21
  22. package/dist/_chunks/markdown-B4cYQGBo.js.map +1 -0
  23. package/dist/ai-elements.es.js +3177 -2748
  24. package/dist/ai-elements.es.js.map +1 -1
  25. package/dist-vue/PkChatbot.js +1 -1
  26. package/dist-vue/PkChatbotAuth.js +1 -1
  27. package/dist-vue/PkChatbotEmptyState.js +1 -1
  28. package/dist-vue/PkChatbotInput.js +1 -1
  29. package/dist-vue/PkChatbotMessages.js +1 -1
  30. package/dist-vue/PkChatbotStepPayload.js +1 -1
  31. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  32. package/dist-vue/PkChatbotSteps.js +1 -1
  33. package/dist-vue/PkChatbotViewChat.js +1 -1
  34. package/dist-vue/PkChatbotViewConversations.js +1 -1
  35. package/dist-vue/PkChatbotViewFiles.js +1 -1
  36. package/dist-vue/PkChatbotViewProfile.js +1 -1
  37. package/dist-vue/_chunks/{Agent-BNlmK-uJ.js → Agent-tbKw8Mdt.js} +2 -2
  38. package/dist-vue/_chunks/{Agent-BNlmK-uJ.js.map → Agent-tbKw8Mdt.js.map} +1 -1
  39. package/dist-vue/_chunks/{Document-2X01-F4Z.js → Document-BWz2HySu.js} +37 -21
  40. package/dist-vue/_chunks/Document-BWz2HySu.js.map +1 -0
  41. package/dist-vue/_chunks/Media-_HfFLHGD.js.map +1 -1
  42. package/dist-vue/_chunks/{PkChatbot-HRayDr2d.js → PkChatbot-DtyZYAzj.js} +8 -8
  43. package/dist-vue/_chunks/{PkChatbot-HRayDr2d.js.map → PkChatbot-DtyZYAzj.js.map} +1 -1
  44. package/dist-vue/_chunks/PkChatbotAuth-jzoNJkmH.js +421 -0
  45. package/dist-vue/_chunks/PkChatbotAuth-jzoNJkmH.js.map +1 -0
  46. package/dist-vue/_chunks/{PkChatbotEmptyState-CPOcfoRC.js → PkChatbotEmptyState-Dicjr_Fv.js} +2 -2
  47. package/dist-vue/_chunks/{PkChatbotEmptyState-CPOcfoRC.js.map → PkChatbotEmptyState-Dicjr_Fv.js.map} +1 -1
  48. package/dist-vue/_chunks/{PkChatbotInput-pLJQIu7v.js → PkChatbotInput-DcLmOqA1.js} +2 -2
  49. package/dist-vue/_chunks/{PkChatbotInput-pLJQIu7v.js.map → PkChatbotInput-DcLmOqA1.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbotMessages-GZStJbx_.js → PkChatbotMessages-CrhRrcBs.js} +258 -256
  51. package/dist-vue/_chunks/PkChatbotMessages-CrhRrcBs.js.map +1 -0
  52. package/dist-vue/_chunks/{PkChatbotStepPayload-DU0W-eUp.js → PkChatbotStepPayload-rKaeDQDj.js} +2 -2
  53. package/dist-vue/_chunks/{PkChatbotStepPayload-DU0W-eUp.js.map → PkChatbotStepPayload-rKaeDQDj.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbotStepToolDetail-etlBryOg.js → PkChatbotStepToolDetail-5HdSV8Im.js} +3 -3
  55. package/dist-vue/_chunks/{PkChatbotStepToolDetail-etlBryOg.js.map → PkChatbotStepToolDetail-5HdSV8Im.js.map} +1 -1
  56. package/dist-vue/_chunks/PkChatbotSteps-CPPjwTJN.js +191 -0
  57. package/dist-vue/_chunks/PkChatbotSteps-CPPjwTJN.js.map +1 -0
  58. package/dist-vue/_chunks/{PkChatbotViewChat-DIfBWFoG.js → PkChatbotViewChat-B13nCznB.js} +7 -7
  59. package/dist-vue/_chunks/{PkChatbotViewChat-DIfBWFoG.js.map → PkChatbotViewChat-B13nCznB.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotViewConversations-BCdolW0R.js → PkChatbotViewConversations-CHpN4vhm.js} +2 -2
  61. package/dist-vue/_chunks/{PkChatbotViewConversations-BCdolW0R.js.map → PkChatbotViewConversations-CHpN4vhm.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotViewFiles-Cudao8ew.js → PkChatbotViewFiles-cRyG5X3P.js} +3 -3
  63. package/dist-vue/_chunks/{PkChatbotViewFiles-Cudao8ew.js.map → PkChatbotViewFiles-cRyG5X3P.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotViewProfile-DDsKOkcC.js → PkChatbotViewProfile-CosaHA-g.js} +2 -2
  65. package/dist-vue/_chunks/{PkChatbotViewProfile-DDsKOkcC.js.map → PkChatbotViewProfile-CosaHA-g.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkStreamingMarkdown-BloMJaIW.js → PkStreamingMarkdown-DYy79C1P.js} +214 -205
  67. package/dist-vue/_chunks/{PkStreamingMarkdown-BloMJaIW.js.map → PkStreamingMarkdown-DYy79C1P.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkToolRequestGeolocation-9vfYNaQo.js → PkToolRequestGeolocation-BOVbaCzQ.js} +2 -2
  69. package/{dist/_chunks/PkToolRequestGeolocation-BbxYKt-9.js.map → dist-vue/_chunks/PkToolRequestGeolocation-BOVbaCzQ.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BorR5NmZ.js → PkToolRequestOAuthConnection-a2LegFoE.js} +4 -4
  71. package/dist-vue/_chunks/PkToolRequestOAuthConnection-a2LegFoE.js.map +1 -0
  72. package/dist-vue/_chunks/{PkToolShowArtifact-BuMY7GNj.js → PkToolShowArtifact-DUOnFdfa.js} +2 -2
  73. package/dist-vue/_chunks/{PkToolShowArtifact-BuMY7GNj.js.map → PkToolShowArtifact-DUOnFdfa.js.map} +1 -1
  74. package/dist-vue/_chunks/PkToolShowComparison-DQs3E6-k.js +72 -0
  75. package/dist-vue/_chunks/PkToolShowComparison-DQs3E6-k.js.map +1 -0
  76. package/dist-vue/_chunks/{PkToolShowContactForm-0OQRqT8m.js → PkToolShowContactForm-1TFKvG_s.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolShowContactForm-0OQRqT8m.js.map → PkToolShowContactForm-1TFKvG_s.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolShowDiagram-BGL27iHG.js → PkToolShowDiagram-BnbkymPD.js} +2 -2
  79. package/dist-vue/_chunks/{PkToolShowDiagram-BGL27iHG.js.map → PkToolShowDiagram-BnbkymPD.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkToolShowEmail-BJJpS69F.js → PkToolShowEmail-BDsBoETQ.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowEmail-BJJpS69F.js.map → PkToolShowEmail-BDsBoETQ.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowForm-DDcPpOZ8.js → PkToolShowForm-DwFKxMJd.js} +4 -4
  83. package/dist-vue/_chunks/{PkToolShowForm-DDcPpOZ8.js.map → PkToolShowForm-DwFKxMJd.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolShowMessage-BFGynf3p.js → PkToolShowMessage-Dau3agUy.js} +2 -2
  85. package/dist-vue/_chunks/{PkToolShowMessage-BFGynf3p.js.map → PkToolShowMessage-Dau3agUy.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolShowProductList-6t1Ir5CW.js → PkToolShowProductList-CsupMsuy.js} +2 -2
  87. package/dist-vue/_chunks/{PkToolShowProductList-6t1Ir5CW.js.map → PkToolShowProductList-CsupMsuy.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolShowSources-cOF0ZxOj.js → PkToolShowSources-C8r1vKJk.js} +4 -4
  89. package/dist-vue/_chunks/{PkToolShowSources-cOF0ZxOj.js.map → PkToolShowSources-C8r1vKJk.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DA4NEjHB.js → PkToolShowSuggestedReply-qAWdCUhr.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowSuggestedReply-DA4NEjHB.js.map → PkToolShowSuggestedReply-qAWdCUhr.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowWebPages-OgaT1vYJ.js → PkToolShowWebPages-D4E3Xzg1.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolShowWebPages-OgaT1vYJ.js.map → PkToolShowWebPages-D4E3Xzg1.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkUrl-Cd69XP5z.js → PkUrl-Cu3qKl4G.js} +2 -2
  95. package/dist-vue/_chunks/{PkUrl-Cd69XP5z.js.map → PkUrl-Cu3qKl4G.js.map} +1 -1
  96. package/dist-vue/_chunks/{createChatbotApiClient-CaVLm5W9.js → createChatbotApiClient-BlWs282E.js} +137 -168
  97. package/dist-vue/_chunks/createChatbotApiClient-BlWs282E.js.map +1 -0
  98. package/dist-vue/_chunks/{useChatbotStore-BwrBZJCq.js → useChatbotStore-CMo47fnS.js} +3 -3
  99. package/dist-vue/_chunks/{useChatbotStore-BwrBZJCq.js.map → useChatbotStore-CMo47fnS.js.map} +1 -1
  100. package/dist-vue/_chunks/utils-B45A2ONa.js +184 -0
  101. package/dist-vue/_chunks/utils-B45A2ONa.js.map +1 -0
  102. package/dist-vue/api.js +1 -1
  103. package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
  104. package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +53 -5
  105. package/dist-vue/apps/web-component/src/composables/useChatbotAuthForm.d.ts +14 -0
  106. package/dist-vue/composables.js +524 -39
  107. package/dist-vue/composables.js.map +1 -1
  108. package/dist-vue/index.js +3366 -3240
  109. package/dist-vue/index.js.map +1 -1
  110. package/dist-vue/locales.js +46 -0
  111. package/dist-vue/packages/ability/src/index.d.ts +10 -14
  112. package/dist-vue/packages/auth/src/active-membership.d.ts +36 -0
  113. package/dist-vue/packages/auth/src/add-member-to-organization.d.ts +12 -2
  114. package/dist-vue/packages/auth/src/additional-fields.d.ts +48 -0
  115. package/dist-vue/packages/auth/src/organization-member-limit.d.ts +12 -0
  116. package/dist-vue/packages/auth/src/passkey-policy-client-plugin.d.ts +31 -0
  117. package/dist-vue/packages/auth/src/passkey-policy-plugin.d.ts +22 -0
  118. package/dist-vue/packages/auth/src/two-factor-admin-plugin.d.ts +2 -0
  119. package/dist-vue/packages/auth/src/two-factor-policy-client-plugin.d.ts +163 -0
  120. package/dist-vue/packages/auth/src/two-factor-policy-plugin.d.ts +106 -0
  121. package/dist-vue/packages/components/src/PkQrCode.d.ts +14 -0
  122. package/dist-vue/packages/components/src/chat/PkChatbotAuth.d.ts +19 -0
  123. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +8 -4
  124. package/dist-vue/packages/components/src/chat/PkChatbotSteps.d.ts +1 -0
  125. package/dist-vue/packages/components/src/chat/PkTurnEvaluation.d.ts +8 -0
  126. package/dist-vue/packages/components/src/chat/utils.d.ts +9 -0
  127. package/dist-vue/packages/components/src/index.d.ts +2 -1
  128. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +60 -0
  129. package/dist-vue/packages/models/src/schema/Chat.d.ts +42 -0
  130. package/dist-vue/packages/models/src/schema/Document.d.ts +494 -0
  131. package/dist-vue/packages/models/src/schema/DocumentFolder.d.ts +10 -0
  132. package/dist-vue/packages/models/src/schema/DocumentSyncSource.d.ts +71 -1
  133. package/dist-vue/packages/models/src/schema/Lead.d.ts +1 -1
  134. package/dist-vue/packages/models/src/schema/McpServer.d.ts +13 -0
  135. package/dist-vue/packages/models/src/schema/Media.d.ts +0 -1
  136. package/dist-vue/packages/models/src/schema/Member.d.ts +10 -0
  137. package/dist-vue/packages/models/src/schema/Notification.d.ts +31 -0
  138. package/dist-vue/packages/models/src/schema/Organization.d.ts +20 -0
  139. package/dist-vue/packages/models/src/schema/SignInSecurity.d.ts +168 -0
  140. package/dist-vue/packages/models/src/schema/User.d.ts +1 -0
  141. package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
  142. package/dist-vue/style.css +1 -1
  143. package/package.json +1 -1
  144. package/dist/_chunks/Agent-DTLrWpzX.js +0 -460
  145. package/dist/_chunks/Agent-DTLrWpzX.js.map +0 -1
  146. package/dist/_chunks/Media-Cft7Pwrh.js +0 -108
  147. package/dist/_chunks/Media-Cft7Pwrh.js.map +0 -1
  148. package/dist/_chunks/PkStreamingMarkdown-C1sANAr5.js.map +0 -1
  149. package/dist/_chunks/PkToolRequestOAuthConnection-CTp2w60F.js.map +0 -1
  150. package/dist/_chunks/PkToolShowComparison-BJ7QBXtf.js +0 -60
  151. package/dist/_chunks/PkToolShowComparison-BJ7QBXtf.js.map +0 -1
  152. package/dist/_chunks/markdown-BRD-hDrH.js.map +0 -1
  153. package/dist-vue/_chunks/Document-2X01-F4Z.js.map +0 -1
  154. package/dist-vue/_chunks/PkChatbotAuth-Bi508F1u.js +0 -349
  155. package/dist-vue/_chunks/PkChatbotAuth-Bi508F1u.js.map +0 -1
  156. package/dist-vue/_chunks/PkChatbotMessages-GZStJbx_.js.map +0 -1
  157. package/dist-vue/_chunks/PkChatbotSteps-Cl4pVtPJ.js +0 -190
  158. package/dist-vue/_chunks/PkChatbotSteps-Cl4pVtPJ.js.map +0 -1
  159. package/dist-vue/_chunks/PkToolRequestOAuthConnection-BorR5NmZ.js.map +0 -1
  160. package/dist-vue/_chunks/PkToolShowComparison-BLn4pkno.js +0 -61
  161. package/dist-vue/_chunks/PkToolShowComparison-BLn4pkno.js.map +0 -1
  162. package/dist-vue/_chunks/createChatbotApiClient-CaVLm5W9.js.map +0 -1
  163. package/dist-vue/_chunks/utils-h4C7rRcu.js +0 -177
  164. package/dist-vue/_chunks/utils-h4C7rRcu.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { ChatMessageActions, MessageFeedback, RevisedAnswer, UIChatMessage } from '../../../models/src';
2
- import { TextUIPart, UIToolInvocation, UITool } from 'ai';
2
+ import { TextUIPart, CustomContentUIPart, ReasoningUIPart, DynamicToolUIPart, SourceUrlUIPart, SourceDocumentUIPart, ReasoningFileUIPart, StepStartUIPart, UIToolInvocation, UITool } from 'ai';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  type __VLS_Props = {
5
5
  status?: 'submitted' | 'streaming' | 'ready' | 'error';
@@ -55,11 +55,15 @@ declare var __VLS_25: {
55
55
  part: TextUIPart;
56
56
  index: number;
57
57
  isLoading: boolean;
58
- }, __VLS_73: `tool-${string}`, __VLS_74: {
58
+ }, __VLS_73: "custom" | "reasoning" | "text" | "dynamic-tool" | "source-url" | "source-document" | "reasoning-file" | "step-start" | `data-${string}` | `tool-${string}`, __VLS_74: {
59
59
  message: UIChatMessage;
60
- part: {
60
+ part: TextUIPart | CustomContentUIPart | ReasoningUIPart | DynamicToolUIPart | SourceUrlUIPart | SourceDocumentUIPart | ReasoningFileUIPart | StepStartUIPart | ({
61
61
  type: `tool-${string}`;
62
- } & UIToolInvocation<UITool>;
62
+ } & UIToolInvocation<UITool>) | {
63
+ type: `data-${string}`;
64
+ id?: string;
65
+ data: unknown;
66
+ };
63
67
  index: number;
64
68
  isLoading: boolean;
65
69
  };
@@ -3,6 +3,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  type __VLS_Props = {
4
4
  message: UIChatMessage;
5
5
  isStreaming?: boolean;
6
+ hasContent?: boolean;
6
7
  isDark?: boolean;
7
8
  };
8
9
  declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,8 @@
1
+ import { UIChatMessage } from '../../../models/src';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ message: UIChatMessage;
5
+ };
6
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -7,6 +7,15 @@ export { isTextPart, isFilePart, isToolPart, isReasoningPart, hasPartText, hasTe
7
7
  * that should logically be a single block of text.
8
8
  */
9
9
  export declare function mergeConsecutiveTextParts(parts: UIMessage['parts']): UIMessage['parts'];
10
+ /**
11
+ * Drops a widget call refused for its arguments when a later call of the same
12
+ * widget in the message was drawn: the turn corrected it (the backend's
13
+ * `correctableInputRefusals`), and the refusal would sit next to the working
14
+ * widget, `showForm` drawing its render error above the form. A refusal with
15
+ * nothing drawn after it stays. Only the feed reads this: the steps timeline
16
+ * keeps every call, the refused one included.
17
+ */
18
+ export declare function dropCorrectedWidgetErrors(parts: UIMessage['parts']): UIMessage['parts'];
10
19
  export declare function isStreamingPart(part: UIMessage['parts'][number] | null | undefined): part is Extract<UIMessage['parts'][number], {
11
20
  streaming?: boolean;
12
21
  }>;
@@ -22,6 +22,7 @@ import { default as PkLoader } from './PkLoader';
22
22
  import { default as PkMedia } from './PkMedia';
23
23
  import { default as PkOfflineScreen } from './PkOfflineScreen';
24
24
  import { default as PkPwaNotices } from './PkPwaNotices';
25
+ import { default as PkQrCode } from './PkQrCode';
25
26
  import { default as PkRelativeTime } from './PkRelativeTime';
26
27
  import { default as PkSkeleton } from './PkSkeleton';
27
28
  import { default as PkSvgViewer } from './PkSvgViewer';
@@ -32,4 +33,4 @@ export * from './chat';
32
33
  export * from './input';
33
34
  export * from './table';
34
35
  export * from './types';
35
- export { PkBadge, PkEditorAgentType, PkEditorDocumentType, PkEditorNotificationType, PkEditorCode, PkEditorJsonSchema, PkEditorMarkdown, PkEditorMedia, PkEditorPrompt, PkEditorRadioButtons, PkEditorCheckboxButtons, PkEditorRepeater, PkEditorWyswyg, PkCheckboxField, PkFieldset, PkInfobox, PkSchemaField, PkIntegrationProvider, PkLazyImg, PkLightbox, PkLoader, PkMedia, PkOfflineScreen, PkPwaNotices, PkRelativeTime, PkSkeleton, PkSvgViewer, PkUrl, };
36
+ export { PkBadge, PkEditorAgentType, PkEditorDocumentType, PkEditorNotificationType, PkEditorCode, PkEditorJsonSchema, PkEditorMarkdown, PkEditorMedia, PkEditorPrompt, PkEditorRadioButtons, PkEditorCheckboxButtons, PkEditorRepeater, PkEditorWyswyg, PkCheckboxField, PkFieldset, PkInfobox, PkSchemaField, PkIntegrationProvider, PkLazyImg, PkLightbox, PkLoader, PkMedia, PkOfflineScreen, PkPwaNotices, PkQrCode, PkRelativeTime, PkSkeleton, PkSvgViewer, PkUrl, };
@@ -633,6 +633,16 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
633
633
  failed?: boolean | undefined;
634
634
  } | undefined;
635
635
  } | undefined;
636
+ turnEvaluation?: {
637
+ version: number;
638
+ mode: "shadow";
639
+ probabilities: Record<string, number>;
640
+ latencyMs: number;
641
+ budgetMs: number;
642
+ cost?: number | undefined;
643
+ inputTokens?: number | undefined;
644
+ failed?: true | undefined;
645
+ } | undefined;
636
646
  } | undefined;
637
647
  parts: ({
638
648
  type: "text";
@@ -1139,6 +1149,16 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1139
1149
  failed?: boolean | undefined;
1140
1150
  } | undefined;
1141
1151
  } | undefined;
1152
+ turnEvaluation?: {
1153
+ version: number;
1154
+ mode: "shadow";
1155
+ probabilities: Record<string, number>;
1156
+ latencyMs: number;
1157
+ budgetMs: number;
1158
+ cost?: number | undefined;
1159
+ inputTokens?: number | undefined;
1160
+ failed?: true | undefined;
1161
+ } | undefined;
1142
1162
  } | undefined;
1143
1163
  parts: ({
1144
1164
  type: "text";
@@ -2343,6 +2363,16 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
2343
2363
  failed?: boolean | undefined;
2344
2364
  } | undefined;
2345
2365
  } | undefined;
2366
+ turnEvaluation?: {
2367
+ version: number;
2368
+ mode: "shadow";
2369
+ probabilities: Record<string, number>;
2370
+ latencyMs: number;
2371
+ budgetMs: number;
2372
+ cost?: number | undefined;
2373
+ inputTokens?: number | undefined;
2374
+ failed?: true | undefined;
2375
+ } | undefined;
2346
2376
  } | undefined;
2347
2377
  parts: ({
2348
2378
  type: "text";
@@ -2849,6 +2879,16 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
2849
2879
  failed?: boolean | undefined;
2850
2880
  } | undefined;
2851
2881
  } | undefined;
2882
+ turnEvaluation?: {
2883
+ version: number;
2884
+ mode: "shadow";
2885
+ probabilities: Record<string, number>;
2886
+ latencyMs: number;
2887
+ budgetMs: number;
2888
+ cost?: number | undefined;
2889
+ inputTokens?: number | undefined;
2890
+ failed?: true | undefined;
2891
+ } | undefined;
2852
2892
  } | undefined;
2853
2893
  parts: ({
2854
2894
  type: "text";
@@ -4053,6 +4093,16 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
4053
4093
  failed?: boolean | undefined;
4054
4094
  } | undefined;
4055
4095
  } | undefined;
4096
+ turnEvaluation?: {
4097
+ version: number;
4098
+ mode: "shadow";
4099
+ probabilities: Record<string, number>;
4100
+ latencyMs: number;
4101
+ budgetMs: number;
4102
+ cost?: number | undefined;
4103
+ inputTokens?: number | undefined;
4104
+ failed?: true | undefined;
4105
+ } | undefined;
4056
4106
  } | undefined;
4057
4107
  parts: ({
4058
4108
  type: "text";
@@ -4559,6 +4609,16 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
4559
4609
  failed?: boolean | undefined;
4560
4610
  } | undefined;
4561
4611
  } | undefined;
4612
+ turnEvaluation?: {
4613
+ version: number;
4614
+ mode: "shadow";
4615
+ probabilities: Record<string, number>;
4616
+ latencyMs: number;
4617
+ budgetMs: number;
4618
+ cost?: number | undefined;
4619
+ inputTokens?: number | undefined;
4620
+ failed?: true | undefined;
4621
+ } | undefined;
4562
4622
  } | undefined;
4563
4623
  parts: ({
4564
4624
  type: "text";
@@ -492,10 +492,52 @@ export type UIChatMessageMetadata = {
492
492
  * organization ({@link withoutToolCatalogue}).
493
493
  */
494
494
  toolCatalogue?: ToolCatalogueRecord;
495
+ /**
496
+ * The evaluation of the turn after the reply (spec post-turn-evaluation):
497
+ * a probability per question. Written after the answer, and removed from
498
+ * a public read ({@link withoutTurnEvaluation}).
499
+ */
500
+ turnEvaluation?: TurnEvaluationRecord;
501
+ };
502
+ /**
503
+ * The questions of the post-turn evaluation, in the order they are asked and
504
+ * listed. The backend's questions are typed against it, so the two cannot
505
+ * drift. A reader orders by this list and not by the record: jsonb keeps the
506
+ * keys of an object sorted by length, not in the order they were written.
507
+ */
508
+ export declare const TURN_EVALUATION_QUESTION_IDS: readonly ["durableFact", "abusive", "manipulation", "asksHuman", "missingInfo", "informationGap"];
509
+ export type TurnEvaluationQuestionId = (typeof TURN_EVALUATION_QUESTION_IDS)[number];
510
+ /**
511
+ * The evaluation model's answers on a finished turn (spec
512
+ * post-turn-evaluation, F1). Recorded in shadow only: nothing reads it yet.
513
+ */
514
+ export type TurnEvaluationRecord = {
515
+ /**
516
+ * The wording of the questions: a threshold holds only for the wording
517
+ * it was measured on, so a record says which one it answered.
518
+ */
519
+ version: number;
520
+ mode: 'shadow';
521
+ /** Probability per question, two decimals. Empty when the request failed. */
522
+ probabilities: Record<string, number>;
523
+ latencyMs: number;
524
+ budgetMs: number;
525
+ /** Market cost of the request in USD. */
526
+ cost?: number;
527
+ inputTokens?: number;
528
+ /** The request failed or ran past its budget: no answer was recorded. */
529
+ failed?: true;
495
530
  };
496
531
  export type UIChatMessage = UIMessage & {
497
532
  metadata?: UIChatMessageMetadata;
498
533
  };
534
+ /**
535
+ * The history without the turn evaluations, for a public read: a probability
536
+ * of abuse on a user must not reach the widget. Kept apart from
537
+ * {@link withoutToolCatalogue}, which the data export uses too, because
538
+ * whether the export includes this judgment is still to be decided.
539
+ */
540
+ export declare function withoutTurnEvaluation(messages: UIChatMessage[]): UIChatMessage[];
499
541
  /**
500
542
  * The history without the tool catalogue records, for a reader outside the
501
543
  * organization (a public chat read, the data export): a record names every