@8wave/ai-elements 0.115.0-beta.2 → 0.115.0-beta.30

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 (126) hide show
  1. package/dist/_chunks/{PkStreamingMarkdown-BKxA6Ntl.js → PkStreamingMarkdown-B7SRIqnV.js} +2 -2
  2. package/dist/_chunks/{PkStreamingMarkdown-BKxA6Ntl.js.map → PkStreamingMarkdown-B7SRIqnV.js.map} +1 -1
  3. package/dist/_chunks/{PkToolRequestOAuthConnection-CgQePKKb.js → PkToolRequestOAuthConnection-CbZn1f14.js} +31 -25
  4. package/dist/_chunks/PkToolRequestOAuthConnection-CbZn1f14.js.map +1 -0
  5. package/dist/_chunks/{PkToolShowArtifact-CHxeuKEU.js → PkToolShowArtifact-CRQySuGC.js} +2 -2
  6. package/dist/_chunks/{PkToolShowArtifact-CHxeuKEU.js.map → PkToolShowArtifact-CRQySuGC.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowCalendarEvent-D0jVbqWt.js → PkToolShowCalendarEvent-Cj7yRj-0.js} +2 -2
  8. package/dist/_chunks/{PkToolShowCalendarEvent-D0jVbqWt.js.map → PkToolShowCalendarEvent-Cj7yRj-0.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowContactForm-DqVLVwqJ.js → PkToolShowContactForm-DGmzPa3d.js} +2 -2
  10. package/dist/_chunks/{PkToolShowContactForm-DqVLVwqJ.js.map → PkToolShowContactForm-DGmzPa3d.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowForm-YJQPYfEe.js → PkToolShowForm-76LQdZHH.js} +2 -2
  12. package/dist/_chunks/{PkToolShowForm-YJQPYfEe.js.map → PkToolShowForm-76LQdZHH.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowImageGallery-1mq-_cnp.js → PkToolShowImageGallery-BmpcrdIL.js} +2 -2
  14. package/dist/_chunks/{PkToolShowImageGallery-1mq-_cnp.js.map → PkToolShowImageGallery-BmpcrdIL.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowSources-VFoI0YS8.js → PkToolShowSources-13IBQve7.js} +3 -3
  16. package/dist/_chunks/{PkToolShowSources-VFoI0YS8.js.map → PkToolShowSources-13IBQve7.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowWebPages-BgXlRdmH.js → PkToolShowWebPages-CCSRAlz5.js} +2 -2
  18. package/dist/_chunks/{PkToolShowWebPages-BgXlRdmH.js.map → PkToolShowWebPages-CCSRAlz5.js.map} +1 -1
  19. package/dist/_chunks/{markdown-BL7WANiX.js → markdown-tS_2A0k9.js} +39 -11
  20. package/dist/_chunks/markdown-tS_2A0k9.js.map +1 -0
  21. package/dist/_chunks/{url-validation-uLMZ5-AU.js → url-validation-9DstIfq2.js} +9 -2
  22. package/dist/_chunks/{url-validation-uLMZ5-AU.js.map → url-validation-9DstIfq2.js.map} +1 -1
  23. package/dist/ai-elements.es.js +1697 -1578
  24. package/dist/ai-elements.es.js.map +1 -1
  25. package/dist-vue/PkChatbot.js +1 -1
  26. package/dist-vue/PkChatbotEmptyState.js +1 -1
  27. package/dist-vue/PkChatbotInput.js +1 -1
  28. package/dist-vue/PkChatbotMessages.js +1 -1
  29. package/dist-vue/PkChatbotSteps.js +1 -1
  30. package/dist-vue/PkChatbotViewChat.js +1 -1
  31. package/dist-vue/PkChatbotViewConversations.js +1 -1
  32. package/dist-vue/PkChatbotViewFiles.js +1 -1
  33. package/dist-vue/PkChatbotViewProfile.js +1 -1
  34. package/dist-vue/_chunks/{Document-nCWwJC2h.js → Document-BmfGStvM.js} +40 -12
  35. package/dist-vue/_chunks/Document-BmfGStvM.js.map +1 -0
  36. package/dist-vue/_chunks/{PkChatbot-CdtYJ1Lf.js → PkChatbot-DKqKEsUn.js} +7 -7
  37. package/dist-vue/_chunks/{PkChatbot-CdtYJ1Lf.js.map → PkChatbot-DKqKEsUn.js.map} +1 -1
  38. package/dist-vue/_chunks/PkChatbotAuth-jzoNJkmH.js.map +1 -1
  39. package/dist-vue/_chunks/{PkChatbotEmptyState-Dicjr_Fv.js → PkChatbotEmptyState-BPPP0-0U.js} +2 -2
  40. package/dist-vue/_chunks/{PkChatbotEmptyState-Dicjr_Fv.js.map → PkChatbotEmptyState-BPPP0-0U.js.map} +1 -1
  41. package/dist-vue/_chunks/PkChatbotFilePreview-CwiVQDF2.js.map +1 -1
  42. package/dist-vue/_chunks/{PkChatbotInput-DcLmOqA1.js → PkChatbotInput-BHcxLnWU.js} +2 -2
  43. package/dist-vue/_chunks/PkChatbotInput-BHcxLnWU.js.map +1 -0
  44. package/dist-vue/_chunks/PkChatbotMessageFeedback-BYmrVaCE.js.map +1 -1
  45. package/dist-vue/_chunks/{PkChatbotMessages-R1EsTJpM.js → PkChatbotMessages-CaHFzdIC.js} +122 -113
  46. package/dist-vue/_chunks/PkChatbotMessages-CaHFzdIC.js.map +1 -0
  47. package/dist-vue/_chunks/{PkChatbotSteps-CPPjwTJN.js → PkChatbotSteps-CXiFF3Z-.js} +2 -2
  48. package/dist-vue/_chunks/{PkChatbotSteps-CPPjwTJN.js.map → PkChatbotSteps-CXiFF3Z-.js.map} +1 -1
  49. package/dist-vue/_chunks/{PkChatbotViewChat-CbqrHEC6.js → PkChatbotViewChat-D5HtjK3u.js} +9 -7
  50. package/dist-vue/_chunks/{PkChatbotViewChat-CbqrHEC6.js.map → PkChatbotViewChat-D5HtjK3u.js.map} +1 -1
  51. package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js → PkChatbotViewConversations-C5O-IocA.js} +2 -2
  52. package/dist-vue/_chunks/{PkChatbotViewConversations-CHpN4vhm.js.map → PkChatbotViewConversations-C5O-IocA.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkChatbotViewFiles-Bk9-K6Hw.js → PkChatbotViewFiles-W8DDmtTi.js} +3 -3
  54. package/dist-vue/_chunks/{PkChatbotViewFiles-Bk9-K6Hw.js.map → PkChatbotViewFiles-W8DDmtTi.js.map} +1 -1
  55. package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js → PkChatbotViewProfile--upofqcF.js} +2 -2
  56. package/dist-vue/_chunks/{PkChatbotViewProfile-CosaHA-g.js.map → PkChatbotViewProfile--upofqcF.js.map} +1 -1
  57. package/dist-vue/_chunks/{PkStreamingMarkdown-DYy79C1P.js → PkStreamingMarkdown-it3X7T75.js} +2 -2
  58. package/dist-vue/_chunks/{PkStreamingMarkdown-DYy79C1P.js.map → PkStreamingMarkdown-it3X7T75.js.map} +1 -1
  59. package/dist-vue/_chunks/PkToolRequestOAuthConnection-BiaSF6R_.js +124 -0
  60. package/dist-vue/_chunks/PkToolRequestOAuthConnection-BiaSF6R_.js.map +1 -0
  61. package/dist-vue/_chunks/{PkToolShowArtifact-DUOnFdfa.js → PkToolShowArtifact-BFyFYjHI.js} +2 -2
  62. package/dist-vue/_chunks/{PkToolShowArtifact-DUOnFdfa.js.map → PkToolShowArtifact-BFyFYjHI.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkToolShowCalendarEvent-BsBdsbV0.js → PkToolShowCalendarEvent-yttlTHiX.js} +2 -2
  64. package/dist-vue/_chunks/{PkToolShowCalendarEvent-BsBdsbV0.js.map → PkToolShowCalendarEvent-yttlTHiX.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkToolShowContactForm-1TFKvG_s.js → PkToolShowContactForm-YpaC_31s.js} +2 -2
  66. package/dist-vue/_chunks/{PkToolShowContactForm-1TFKvG_s.js.map → PkToolShowContactForm-YpaC_31s.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkToolShowDiagram-Dmtqu3th.js → PkToolShowDiagram-Bdxjd0BJ.js} +2 -2
  68. package/dist-vue/_chunks/{PkToolShowDiagram-Dmtqu3th.js.map → PkToolShowDiagram-Bdxjd0BJ.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkToolShowEmail-BDsBoETQ.js → PkToolShowEmail-CNkFP7qC.js} +2 -2
  70. package/dist-vue/_chunks/{PkToolShowEmail-BDsBoETQ.js.map → PkToolShowEmail-CNkFP7qC.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkToolShowForm-DwFKxMJd.js → PkToolShowForm-FKJNKXPq.js} +2 -2
  72. package/dist-vue/_chunks/{PkToolShowForm-DwFKxMJd.js.map → PkToolShowForm-FKJNKXPq.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkToolShowImageGallery-DudQzBx4.js → PkToolShowImageGallery-DmhZLnBk.js} +2 -2
  74. package/dist-vue/_chunks/{PkToolShowImageGallery-DudQzBx4.js.map → PkToolShowImageGallery-DmhZLnBk.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkToolShowMessage-Dau3agUy.js → PkToolShowMessage-C9xFAi1s.js} +2 -2
  76. package/dist-vue/_chunks/{PkToolShowMessage-Dau3agUy.js.map → PkToolShowMessage-C9xFAi1s.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkToolShowProductList-CsupMsuy.js → PkToolShowProductList-k1ckf1Ko.js} +2 -2
  78. package/dist-vue/_chunks/{PkToolShowProductList-CsupMsuy.js.map → PkToolShowProductList-k1ckf1Ko.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkToolShowSources-TzkNgwnr.js → PkToolShowSources-DE0RO8z9.js} +4 -4
  80. package/dist-vue/_chunks/{PkToolShowSources-TzkNgwnr.js.map → PkToolShowSources-DE0RO8z9.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolShowWebPages-D4E3Xzg1.js → PkToolShowWebPages-v-6DGCNM.js} +3 -3
  82. package/dist-vue/_chunks/{PkToolShowWebPages-D4E3Xzg1.js.map → PkToolShowWebPages-v-6DGCNM.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkUrl-Cu3qKl4G.js → PkUrl-C5UXwNxy.js} +2 -2
  84. package/dist-vue/_chunks/{PkUrl-Cu3qKl4G.js.map → PkUrl-C5UXwNxy.js.map} +1 -1
  85. package/dist-vue/_chunks/{createChatbotApiClient-BlWs282E.js → createChatbotApiClient-L7wpQUUA.js} +110 -110
  86. package/dist-vue/_chunks/createChatbotApiClient-L7wpQUUA.js.map +1 -0
  87. package/dist-vue/_chunks/mcpOAuthReport-DG84H11Y.js +9 -0
  88. package/dist-vue/_chunks/mcpOAuthReport-DG84H11Y.js.map +1 -0
  89. package/dist-vue/_chunks/{url-validation-uLMZ5-AU.js → url-validation-9DstIfq2.js} +9 -2
  90. package/dist-vue/_chunks/{url-validation-uLMZ5-AU.js.map → url-validation-9DstIfq2.js.map} +1 -1
  91. package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js → useChatbotStore-Ctr5gDIr.js} +2 -2
  92. package/dist-vue/_chunks/{useChatbotStore-CMo47fnS.js.map → useChatbotStore-Ctr5gDIr.js.map} +1 -1
  93. package/dist-vue/api.js +1 -1
  94. package/dist-vue/composables.js +118 -10
  95. package/dist-vue/composables.js.map +1 -1
  96. package/dist-vue/index.js +2976 -2972
  97. package/dist-vue/index.js.map +1 -1
  98. package/dist-vue/locales.js +4 -0
  99. package/dist-vue/packages/auth/src/active-membership.d.ts +36 -0
  100. package/dist-vue/packages/auth/src/add-member-to-organization.d.ts +5 -1
  101. package/dist-vue/packages/auth/src/passkey-policy-client-plugin.d.ts +1 -1
  102. package/dist-vue/packages/auth/src/social-redirect-plugin.d.ts +13 -1
  103. package/dist-vue/packages/auth/src/two-factor-policy-client-plugin.d.ts +3 -3
  104. package/dist-vue/packages/auth/src/two-factor-policy-plugin.d.ts +1 -1
  105. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +5 -0
  106. package/dist-vue/packages/components/src/chat/PkToolRequestOAuthConnection.d.ts +5 -0
  107. package/dist-vue/packages/components/src/chat/index.d.ts +1 -0
  108. package/dist-vue/packages/components/src/chat/mcpOAuthReport.d.ts +11 -0
  109. package/dist-vue/packages/models/src/schema/AgentApiTool.d.ts +5 -8
  110. package/dist-vue/packages/models/src/schema/ConversationAnalysis.d.ts +6 -1
  111. package/dist-vue/packages/models/src/schema/Document.d.ts +478 -0
  112. package/dist-vue/packages/models/src/schema/Header.d.ts +39 -0
  113. package/dist-vue/packages/models/src/schema/McpServer.d.ts +76 -11
  114. package/dist-vue/packages/models/src/schema/Notification.d.ts +2 -0
  115. package/dist-vue/packages/models/src/schema/Organization.d.ts +23 -6
  116. package/dist-vue/packages/models/src/schema/SignInSecurity.d.ts +1 -1
  117. package/dist-vue/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/_chunks/PkToolRequestOAuthConnection-CgQePKKb.js.map +0 -1
  120. package/dist/_chunks/markdown-BL7WANiX.js.map +0 -1
  121. package/dist-vue/_chunks/Document-nCWwJC2h.js.map +0 -1
  122. package/dist-vue/_chunks/PkChatbotInput-DcLmOqA1.js.map +0 -1
  123. package/dist-vue/_chunks/PkChatbotMessages-R1EsTJpM.js.map +0 -1
  124. package/dist-vue/_chunks/PkToolRequestOAuthConnection-a2LegFoE.js +0 -122
  125. package/dist-vue/_chunks/PkToolRequestOAuthConnection-a2LegFoE.js.map +0 -1
  126. package/dist-vue/_chunks/createChatbotApiClient-BlWs282E.js.map +0 -1
@@ -266,6 +266,7 @@ var e = {
266
266
  comment: "Comment",
267
267
  file: "File",
268
268
  message: "Message",
269
+ messageNumber: "Message {n}",
269
270
  tokens: "tokens",
270
271
  answeringOnTheCall: "Answering…",
271
272
  conversationOutline: "Conversation outline",
@@ -367,6 +368,7 @@ var e = {
367
368
  voiceId: "Cloned voices are not listed: the provider forbids them here.",
368
369
  freshnessScaleExplanationMonths: "A document updated today gets a +{weight} bonus. This bonus halves to +{halfWeight} after {half} days and practically drops to zero (+{zeroWeight}) after {zero} days (approx. {months} months).",
369
370
  freshnessScaleExplanationDays: "A document updated today gets a +{weight} bonus. This bonus halves to +{halfWeight} after {half} days and practically drops to zero (+{zeroWeight}) after {zero} days.",
371
+ reasoningVisibility: "A reasoning agent is always visible to the members of its organization only.",
370
372
  agentOnOwnEndpoint: "This agent runs on your organization's endpoint.",
371
373
  providerTimeoutMs: "Timeout in milliseconds before falling back to the next provider (min 1000, max 789000). BYOK credentials only.",
372
374
  showExtendedSteps: "Shows reasoning and tool calls as an expandable timeline in the chat.",
@@ -857,6 +859,7 @@ var e = {
857
859
  comment: "Commento",
858
860
  file: "File",
859
861
  message: "Messaggio",
862
+ messageNumber: "Messaggio {n}",
860
863
  tokens: "token",
861
864
  answeringOnTheCall: "Sto rispondendo…",
862
865
  conversationOutline: "Indice della conversazione",
@@ -958,6 +961,7 @@ var e = {
958
961
  voiceId: "Le voci clonate non sono in elenco: il fornitore non le ammette qui.",
959
962
  freshnessScaleExplanationMonths: "Un documento modificato oggi ottiene un bonus di +{weight}. Il bonus si dimezza a +{halfWeight} dopo {half} giorni e si azzera praticamente (+{zeroWeight}) dopo {zero} giorni (circa {months} mesi).",
960
963
  freshnessScaleExplanationDays: "Un documento modificato oggi ottiene un bonus di +{weight}. Il bonus si dimezza a +{halfWeight} dopo {half} giorni e si azzera praticamente (+{zeroWeight}) dopo {zero} giorni.",
964
+ reasoningVisibility: "Un agente reasoning è sempre visibile solo ai membri dell'organizzazione.",
961
965
  agentOnOwnEndpoint: "Questo agente gira sull’endpoint della tua organizzazione.",
962
966
  providerTimeoutMs: "Timeout in millisecondi prima di passare al provider successivo (min 1000, max 789000). Solo credenziali BYOK.",
963
967
  showExtendedSteps: "Visualizza la timeline con il ragionamento e gli strumenti nella chat.",
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The role `userId` holds in `organizationId` now, or `null` when they are
3
+ * not a member. A role is cached, an absence is not: a membership created
4
+ * after a refusal is seen on the next request, so the paths that add members
5
+ * have nothing to invalidate.
6
+ */
7
+ export declare function currentMemberRole(userId: string, organizationId: string): Promise<string | null>;
8
+ type OrganizationSession = {
9
+ userId: string;
10
+ activeOrganizationId?: string | null;
11
+ organizationRole?: string | null;
12
+ };
13
+ /**
14
+ * The session as a request may trust it: its active organization only while
15
+ * the user is still a member of it, and the role they hold there now.
16
+ *
17
+ * The two fields are written when the organization is activated and nothing
18
+ * rewrites them when the membership changes. Every service reads the tenant
19
+ * from the first and every permission from the second, so a member removed
20
+ * from an organization kept reading and writing it for the life of their
21
+ * session (90 days, renewed daily), and a demoted admin kept the admin rules.
22
+ * A session whose organization was unset kept the role it had there, which
23
+ * still opened the audience gates.
24
+ */
25
+ export declare function withCurrentMembership<T extends OrganizationSession>(session: T): Promise<T>;
26
+ /**
27
+ * Brings the stored sessions of `userId` in line with their membership of
28
+ * `organizationId`, after a write to it: a new role replaces the old one, a
29
+ * membership that is gone takes the active organization with it. Call it
30
+ * after every role change and every removal. The request check does not
31
+ * depend on it, it reads the membership itself, but the client does: it
32
+ * reads its organization and role from the session. The role is read from
33
+ * the database, not the cache, which a request may still be refilling.
34
+ */
35
+ export declare function syncSessionsWithMembership(userId: string, organizationId: string): Promise<void>;
36
+ export {};
@@ -5,7 +5,11 @@
5
5
  * because the organization is full. An automatic join does not take a seat
6
6
  * an open invitation holds either, and a skipped one is not retried at the
7
7
  * next sign-in: the person joins through an invitation once a seat is free.
8
+ *
9
+ * The role has no default: it used to be `member`, and the external login,
10
+ * which did not pass one, made every visitor of the widget a member with the
11
+ * frontoffice of the organization, whatever its configuration said.
8
12
  */
9
- export declare function addMemberToOrganizationIfNotExists(userId: string, organizationId: string, role?: string, { respectMemberLimit }?: {
13
+ export declare function addMemberToOrganizationIfNotExists(userId: string, organizationId: string, role: string, { respectMemberLimit }?: {
10
14
  respectMemberLimit?: boolean;
11
15
  }): Promise<boolean>;
@@ -1,7 +1,7 @@
1
1
  import { BetterFetch } from 'better-auth/client';
2
2
  /**
3
3
  * Client counterpart of the server `passkeyPolicy()` plugin, see
4
- * docs/specs/two-factor-authentication.md, D10.
4
+ * docs/specs/released/two-factor-authentication.md, D10.
5
5
  */
6
6
  export declare function passkeyPolicyClient(): {
7
7
  id: "passkey-policy";
@@ -7,6 +7,17 @@ import { BetterAuthPlugin } from 'better-auth';
7
7
  * whose host it refuses cannot run anyway.
8
8
  */
9
9
  export declare function isListedOrigin(value: string, trusted: string[]): boolean;
10
+ /**
11
+ * The provider's authorization URL with its account chooser asked for.
12
+ *
13
+ * The widget's popup hands the session it creates to the page that opened it,
14
+ * a page listed by an agent and so chosen by a customer. Without a prompt, a
15
+ * visitor already signed in at the provider who had consented once went
16
+ * through without a single screen: one click anywhere on such a page was
17
+ * enough for it to receive their session. The chooser makes signing in
18
+ * something the visitor does. An existing prompt is kept, except `none`.
19
+ */
20
+ export declare function withAccountChooser(location: string): string;
10
21
  /**
11
22
  * Backs the social sign-in that runs in a browser window on the backend origin.
12
23
  *
@@ -23,6 +34,7 @@ export declare function isListedOrigin(value: string, trusted: string[]): boolea
23
34
  * callback hands back the token of the session it just created, and only to the
24
35
  * origin that started it.
25
36
  *
26
- * The before hook narrows the origin `oauthPopup` accepts to the listed ones.
37
+ * The before hook narrows the origin `oauthPopup` accepts to the listed ones,
38
+ * the after hook makes the provider show its account chooser.
27
39
  */
28
40
  export declare function socialRedirect(): BetterAuthPlugin;
@@ -2,7 +2,7 @@ import { SignInSecurityState } from '../../models/src';
2
2
  import { BetterFetch } from 'better-auth/client';
3
3
  /**
4
4
  * What `GET /two-factor-policy/user-security` answers to a system
5
- * administrator, see docs/specs/two-factor-system-assistance.md (D3). Dates
5
+ * administrator, see docs/specs/released/two-factor-system-assistance.md (D3). Dates
6
6
  * arrive as ISO strings.
7
7
  */
8
8
  export interface UserSignInSecurity {
@@ -60,8 +60,8 @@ export interface TwoFactorStatus {
60
60
  }
61
61
  /**
62
62
  * Client counterpart of the server `twoFactorPolicy()` and `twoFactorAdmin()`
63
- * plugins, see docs/specs/two-factor-authentication.md and
64
- * docs/specs/two-factor-system-assistance.md.
63
+ * plugins, see docs/specs/released/two-factor-authentication.md and
64
+ * docs/specs/released/two-factor-system-assistance.md.
65
65
  */
66
66
  export declare function twoFactorPolicyClient(): {
67
67
  id: "two-factor-policy";
@@ -95,7 +95,7 @@ export declare function isTwoFactorSetupRequiredForSession(input: {
95
95
  }): Promise<boolean>;
96
96
  /**
97
97
  * The status endpoint, the widget bridge and the announcements of
98
- * docs/specs/two-factor-authentication.md. The administrator's endpoints are
98
+ * docs/specs/released/two-factor-authentication.md. The administrator's endpoints are
99
99
  * in two-factor-admin-plugin.ts.
100
100
  *
101
101
  * The endpoints live under `/two-factor-policy/` and not `/two-factor/` on
@@ -19,6 +19,11 @@ type __VLS_Props = {
19
19
  disableHeightAdjustment?: boolean;
20
20
  showMessageDateTime?: boolean;
21
21
  showMessageTokensCount?: boolean;
22
+ /**
23
+ * Shows each answer's position in the chat, from 1, the numbering the
24
+ * conversation analysis cites ("message 62").
25
+ */
26
+ showMessageNumber?: boolean;
22
27
  showAllMessageParts?: boolean;
23
28
  /**
24
29
  * Lets the user answer the tool requests rendered in the feed (approval
@@ -1,6 +1,11 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  type __VLS_Props = {
3
3
  part: unknown;
4
+ /**
5
+ * The backend the chat talks to, where the sign-in's callback page
6
+ * runs. Without it the card hears no report and relies on its poll.
7
+ */
8
+ backendUrl?: string;
4
9
  resolveConnection?: (serverName: string) => Promise<{
5
10
  mcpServerId: string;
6
11
  authorizeUrl: string;
@@ -53,4 +53,5 @@ import { default as PkVoiceSession } from './PkVoiceSession';
53
53
  import { default as PkVoiceOrb } from './PkVoiceOrb';
54
54
  import { default as PkChatButton } from './PkChatButton';
55
55
  export { MODEL_CATALOG_KEY, provideModelCatalog, useModelCatalogEntry, } from './modelCatalog';
56
+ export { isMcpOAuthReport } from './mcpOAuthReport';
56
57
  export { PkAgentSelectorInline, PkAgentSettingsPanel, PkAuroraCanvas, PkAvatar, PkChatSidebar, PkChatSidebarConversationItem, PkChatbot, PkChatbotEmptyState, PkChatbotError, PkChatbotFeedbackForm, PkChatbotFilePreview, PkChatbotInput, PkChatbotMessages, PkChatbotSteps, PkChatbotStepToolDetail, PkChatbotStepPayload, PkChatbotViewChat, PkChunkPreview, PkChatbotViewConversations, PkChatbotViewProfile, PkCode, PkCopyBlock, PkDocumentHeader, PkLanguageModel, PkLanguageModelCombobox, PkModelOption, PkMessageParts, PkMessageDetail, PkStreamingMarkdown, PkStreamingMarkdownAutoscroll, PkToolShowForm, PkToolShowArtifact, PkToolApprovalBadge, PkToolShowEmail, PkToolShowMessage, PkToolShowWebPages, PkToolShowProductList, PkToolShowContactForm, PkToolShowCalendarEvent, PkToolShowComparison, PkToolShowLocation, PkToolShowQrCode, PkToolShowImageGallery, PkToolShowSuggestedReply, PkToolShowSources, PkRetryCountdown, PkReasoningChat, PkReasoningSettings, PkWebSearchSettings, PkWelcomePopup, PkChatbotAuth, PkVoiceSession, PkVoiceOrb, PkChatButton, };
@@ -0,0 +1,11 @@
1
+ /** The `type` the MCP sign-in callback page posts (mcpOAuth.controller.ts). */
2
+ export declare const MCP_OAUTH_REPORT_TYPE = "mcp-oauth-complete";
3
+ /**
4
+ * Whether a `message` event is the report of the MCP sign-in a page opened:
5
+ * posted by that window while it shows the callback page, which runs on the
6
+ * backend's origin. Any other window holding the page could post the same
7
+ * message, success included, and so could the provider's own pages, which run
8
+ * in that same window before the callback. Without the window or the backend
9
+ * URL nothing is a report, and the caller relies on reading the connection.
10
+ */
11
+ export declare function isMcpOAuthReport(event: MessageEvent, signInWindow: Window | null | undefined, backendUrl: string | undefined): boolean;
@@ -64,13 +64,10 @@ export declare const AgentApiToolSchema: z.ZodObject<{
64
64
  description: z.ZodString;
65
65
  method: z.ZodEnum<typeof HttpMethod>;
66
66
  url: z.ZodString;
67
- headers: z.ZodOptional<z.ZodNullable<z.ZodCodec<z.ZodArray<z.ZodObject<{
68
- key: z.ZodOptional<z.ZodString>;
69
- value: z.ZodOptional<z.ZodString>;
70
- }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
67
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
71
68
  key: z.ZodString;
72
- value: z.ZodString;
73
- }, z.core.$strip>>>>>;
69
+ hasValue: z.ZodBoolean;
70
+ }, z.core.$strip>>>;
74
71
  secretParameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
75
72
  name: z.ZodString;
76
73
  position: z.ZodEnum<typeof AgentApiToolSecretPosition>;
@@ -98,7 +95,7 @@ export declare const AgentApiToolCreateSchema: z.ZodObject<{
98
95
  value: z.ZodOptional<z.ZodString>;
99
96
  }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
100
97
  key: z.ZodString;
101
- value: z.ZodString;
98
+ value: z.ZodOptional<z.ZodString>;
102
99
  }, z.core.$strip>>>>>;
103
100
  secretParameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
104
101
  name: z.ZodString;
@@ -120,7 +117,7 @@ export declare const AgentApiToolUpdateSchema: z.ZodObject<{
120
117
  value: z.ZodOptional<z.ZodString>;
121
118
  }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
122
119
  key: z.ZodString;
123
- value: z.ZodString;
120
+ value: z.ZodOptional<z.ZodString>;
124
121
  }, z.core.$strip>>>>>;
125
122
  secretParameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
126
123
  name: z.ZodString;
@@ -23,7 +23,10 @@ export declare enum LlmIssueCategory {
23
23
  DataLeak = "data_leak",
24
24
  InappropriateTone = "inappropriate_tone",
25
25
  RefusalLoop = "refusal_loop",
26
- Repetition = "repetition"
26
+ Repetition = "repetition",
27
+ FailedAction = "failed_action",
28
+ EmptyReply = "empty_reply",
29
+ StuckFlow = "stuck_flow"
27
30
  }
28
31
  export declare enum ConversationAnalysisTrigger {
29
32
  SummaryCycle = "summary_cycle",
@@ -55,6 +58,8 @@ export declare enum SentimentTrend {
55
58
  Stable = "stable",
56
59
  Degrading = "degrading"
57
60
  }
61
+ /** Longest abuse or LLM issue summary an analysis stores. */
62
+ export declare const CONVERSATION_ANALYSIS_SUMMARY_MAX_CHARS = 1000;
58
63
  export declare const ConversationAnalysisSchema: z.ZodObject<{
59
64
  analyzedAt: z.ZodCoercedDate<unknown>;
60
65
  analysisTrigger: z.ZodEnum<typeof ConversationAnalysisTrigger>;