@8wave/ai-elements 0.119.0-beta.48 → 0.119.0-beta.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/_chunks/Agent-DU38SnNd.js.map +1 -1
  2. package/dist/_chunks/{PkStreamingMarkdown-xnhBbPf5.js → PkStreamingMarkdown-pEgm7m-B.js} +4 -4
  3. package/dist/_chunks/PkStreamingMarkdown-pEgm7m-B.js.map +1 -0
  4. package/dist/_chunks/{PkToolShowArtifact-DPt1qDUk.js → PkToolShowArtifact-D6ZTw5vh.js} +2 -2
  5. package/dist/_chunks/{PkToolShowArtifact-DPt1qDUk.js.map → PkToolShowArtifact-D6ZTw5vh.js.map} +1 -1
  6. package/dist/_chunks/{PkToolShowContactForm-OdC7bsXd.js → PkToolShowContactForm-CW7gKQ7h.js} +2 -2
  7. package/dist/_chunks/{PkToolShowContactForm-OdC7bsXd.js.map → PkToolShowContactForm-CW7gKQ7h.js.map} +1 -1
  8. package/dist/_chunks/{PkToolShowForm-uFmaQoI1.js → PkToolShowForm-D_2FmDwq.js} +2 -2
  9. package/dist/_chunks/{PkToolShowForm-uFmaQoI1.js.map → PkToolShowForm-D_2FmDwq.js.map} +1 -1
  10. package/dist/_chunks/{PkToolShowSources-BlpCKc4N.js → PkToolShowSources-DyzheirE.js} +2 -2
  11. package/dist/_chunks/{PkToolShowSources-BlpCKc4N.js.map → PkToolShowSources-DyzheirE.js.map} +1 -1
  12. package/dist/_chunks/markdown-BKLfFJPr.js.map +1 -1
  13. package/dist/ai-elements.es.js +1176 -1174
  14. package/dist/ai-elements.es.js.map +1 -1
  15. package/dist-vue/PkChatbot.js +1 -1
  16. package/dist-vue/PkChatbotEmptyState.js +1 -1
  17. package/dist-vue/PkChatbotInput.js +1 -1
  18. package/dist-vue/PkChatbotMessages.js +1 -1
  19. package/dist-vue/PkChatbotStepPayload.js +1 -1
  20. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  21. package/dist-vue/PkChatbotSteps.js +1 -1
  22. package/dist-vue/PkChatbotViewChat.js +1 -1
  23. package/dist-vue/PkChatbotViewConversations.js +1 -1
  24. package/dist-vue/PkChatbotViewFiles.js +1 -1
  25. package/dist-vue/PkChatbotViewProfile.js +1 -1
  26. package/dist-vue/_chunks/{Agent-DDm9cCaN.js → Agent-DUdd9NbF.js} +79 -70
  27. package/dist-vue/_chunks/Agent-DUdd9NbF.js.map +1 -0
  28. package/dist-vue/_chunks/{Document-CZemm1AR.js → Document-B4q9uYmN.js} +10 -10
  29. package/dist-vue/_chunks/Document-B4q9uYmN.js.map +1 -0
  30. package/dist-vue/_chunks/{PkChatbot-DXwMfwN4.js → PkChatbot-Ck6RO0Rd.js} +8 -8
  31. package/dist-vue/_chunks/{PkChatbot-DXwMfwN4.js.map → PkChatbot-Ck6RO0Rd.js.map} +1 -1
  32. package/dist-vue/_chunks/{PkChatbotEmptyState-Dve5Ci2Y.js → PkChatbotEmptyState-DhJDJhxj.js} +2 -2
  33. package/dist-vue/_chunks/{PkChatbotEmptyState-Dve5Ci2Y.js.map → PkChatbotEmptyState-DhJDJhxj.js.map} +1 -1
  34. package/dist-vue/_chunks/{PkChatbotInput-DiCxEime.js → PkChatbotInput--ULB71Ld.js} +2 -2
  35. package/dist-vue/_chunks/{PkChatbotInput-DiCxEime.js.map → PkChatbotInput--ULB71Ld.js.map} +1 -1
  36. package/dist-vue/_chunks/{PkChatbotMessages-CTp0NkY2.js → PkChatbotMessages-Bni4EjEB.js} +17 -17
  37. package/dist-vue/_chunks/{PkChatbotMessages-CTp0NkY2.js.map → PkChatbotMessages-Bni4EjEB.js.map} +1 -1
  38. package/dist-vue/_chunks/{PkChatbotStepPayload-B1o2DbQz.js → PkChatbotStepPayload-D8Y5I01D.js} +2 -2
  39. package/dist-vue/_chunks/{PkChatbotStepPayload-B1o2DbQz.js.map → PkChatbotStepPayload-D8Y5I01D.js.map} +1 -1
  40. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DpYV0KLn.js → PkChatbotStepToolDetail-CwstaTuG.js} +3 -3
  41. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DpYV0KLn.js.map → PkChatbotStepToolDetail-CwstaTuG.js.map} +1 -1
  42. package/dist-vue/_chunks/{PkChatbotSteps-BPon4zjv.js → PkChatbotSteps-Caz3eJgv.js} +5 -5
  43. package/dist-vue/_chunks/{PkChatbotSteps-BPon4zjv.js.map → PkChatbotSteps-Caz3eJgv.js.map} +1 -1
  44. package/dist-vue/_chunks/{PkChatbotViewChat-dJE2iHPN.js → PkChatbotViewChat-B_T3HkON.js} +174 -174
  45. package/dist-vue/_chunks/PkChatbotViewChat-B_T3HkON.js.map +1 -0
  46. package/dist-vue/_chunks/{PkChatbotViewConversations-DcEcJgwV.js → PkChatbotViewConversations-CvGu-4t3.js} +3 -3
  47. package/dist-vue/_chunks/{PkChatbotViewConversations-DcEcJgwV.js.map → PkChatbotViewConversations-CvGu-4t3.js.map} +1 -1
  48. package/dist-vue/_chunks/{PkChatbotViewFiles-DDEJqXct.js → PkChatbotViewFiles-CWyaCSXx.js} +3 -3
  49. package/dist-vue/_chunks/{PkChatbotViewFiles-DDEJqXct.js.map → PkChatbotViewFiles-CWyaCSXx.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkChatbotViewProfile-B79UynQ8.js → PkChatbotViewProfile-gGx0SEXR.js} +2 -2
  51. package/dist-vue/_chunks/{PkChatbotViewProfile-B79UynQ8.js.map → PkChatbotViewProfile-gGx0SEXR.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkStreamingMarkdown-CqT_orLj.js → PkStreamingMarkdown-DZ8jmXzh.js} +3 -3
  53. package/dist-vue/_chunks/{PkStreamingMarkdown-CqT_orLj.js.map → PkStreamingMarkdown-DZ8jmXzh.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkToolEditSpreadsheet-Dcp3VFzY.js → PkToolEditSpreadsheet-CtRusPSR.js} +2 -2
  55. package/dist-vue/_chunks/{PkToolEditSpreadsheet-Dcp3VFzY.js.map → PkToolEditSpreadsheet-CtRusPSR.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkToolRequestGeolocation-DG4-qKRq.js → PkToolRequestGeolocation-P_QxEXD5.js} +2 -2
  57. package/dist-vue/_chunks/{PkToolRequestGeolocation-DG4-qKRq.js.map → PkToolRequestGeolocation-P_QxEXD5.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CZhNEM-o.js → PkToolRequestOAuthConnection-BlngXdPM.js} +2 -2
  59. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CZhNEM-o.js.map → PkToolRequestOAuthConnection-BlngXdPM.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkToolShowArtifact-Qfkz64NY.js → PkToolShowArtifact-CoBUA6lk.js} +2 -2
  61. package/dist-vue/_chunks/{PkToolShowArtifact-Qfkz64NY.js.map → PkToolShowArtifact-CoBUA6lk.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkToolShowContactForm-CRLEkYSE.js → PkToolShowContactForm-BjE4mrDv.js} +2 -2
  63. package/dist-vue/_chunks/{PkToolShowContactForm-CRLEkYSE.js.map → PkToolShowContactForm-BjE4mrDv.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkToolShowDiagram-j4FJ34Ta.js → PkToolShowDiagram-CVmV8ip6.js} +2 -2
  65. package/dist-vue/_chunks/{PkToolShowDiagram-j4FJ34Ta.js.map → PkToolShowDiagram-CVmV8ip6.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkToolShowForm-DdFBwLMf.js → PkToolShowForm-CbAHlcVY.js} +4 -4
  67. package/dist-vue/_chunks/{PkToolShowForm-DdFBwLMf.js.map → PkToolShowForm-CbAHlcVY.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkToolShowImageGallery-CxlOwuTJ.js → PkToolShowImageGallery-lwId4MH0.js} +2 -2
  69. package/dist-vue/_chunks/{PkToolShowImageGallery-CxlOwuTJ.js.map → PkToolShowImageGallery-lwId4MH0.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkToolShowProductList-dfd3vmhl.js → PkToolShowProductList-uilv8927.js} +2 -2
  71. package/dist-vue/_chunks/{PkToolShowProductList-dfd3vmhl.js.map → PkToolShowProductList-uilv8927.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkToolShowSources-B8Euk3rp.js → PkToolShowSources-Cg2POjp8.js} +3 -3
  73. package/dist-vue/_chunks/{PkToolShowSources-B8Euk3rp.js.map → PkToolShowSources-Cg2POjp8.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cl3Pswi4.js → PkToolShowSuggestedReply-CMXG6Ntj.js} +2 -2
  75. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cl3Pswi4.js.map → PkToolShowSuggestedReply-CMXG6Ntj.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkToolShowVideo-C84UrvZ7.js → PkToolShowVideo-D04Xeojs.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolShowVideo-C84UrvZ7.js.map → PkToolShowVideo-D04Xeojs.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolShowWebPages-CzzuVQqL.js → PkToolShowWebPages-D7bEHkyy.js} +2 -2
  79. package/dist-vue/_chunks/{PkToolShowWebPages-CzzuVQqL.js.map → PkToolShowWebPages-D7bEHkyy.js.map} +1 -1
  80. package/dist-vue/_chunks/{createChatbotApiClient-DrUsRvCw.js → createChatbotApiClient-pAQ5kfjL.js} +14 -14
  81. package/dist-vue/_chunks/{createChatbotApiClient-DrUsRvCw.js.map → createChatbotApiClient-pAQ5kfjL.js.map} +1 -1
  82. package/dist-vue/_chunks/{useChatbotStore-DHmjHPR5.js → useChatbotStore-B2KlwdHy.js} +3 -3
  83. package/dist-vue/_chunks/{useChatbotStore-DHmjHPR5.js.map → useChatbotStore-B2KlwdHy.js.map} +1 -1
  84. package/dist-vue/_chunks/{utils-7oPvmwwu.js → utils-JCvPK7lV.js} +5 -5
  85. package/dist-vue/_chunks/utils-JCvPK7lV.js.map +1 -0
  86. package/dist-vue/api.js +1 -1
  87. package/dist-vue/composables.js +9 -7
  88. package/dist-vue/composables.js.map +1 -1
  89. package/dist-vue/index.js +3365 -3359
  90. package/dist-vue/index.js.map +1 -1
  91. package/dist-vue/locales.js +6 -0
  92. package/dist-vue/packages/auth/src/invitation-resend-plugin.d.ts +16 -0
  93. package/dist-vue/packages/models/src/schema/Agent.d.ts +22 -0
  94. package/dist-vue/packages/models/src/schema/Invitation.d.ts +7 -0
  95. package/dist-vue/packages/models/src/schema/constants.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/dist/_chunks/PkStreamingMarkdown-xnhBbPf5.js.map +0 -1
  98. package/dist-vue/_chunks/Agent-DDm9cCaN.js.map +0 -1
  99. package/dist-vue/_chunks/Document-CZemm1AR.js.map +0 -1
  100. package/dist-vue/_chunks/PkChatbotViewChat-dJE2iHPN.js.map +0 -1
  101. package/dist-vue/_chunks/utils-7oPvmwwu.js.map +0 -1
@@ -452,6 +452,8 @@ var e = {
452
452
  includeThoughts: "Streams the model's thoughts to the client along with the response.",
453
453
  reasoningNotSupported: "Reasoning is not supported for the selected provider.",
454
454
  voiceRemaining: "Time left in this call",
455
+ webSearchNative: "Uses {provider}'s built-in web search capabilities.",
456
+ webSearchNativeFallback: "This model has no built-in web search: searches go through Perplexity.",
455
457
  webSearchEnabled: "Allow the agent to search the web during conversations.",
456
458
  allowedDomains: "Only search within these domains.",
457
459
  blockedDomains: "Exclude these domains from results."
@@ -535,6 +537,7 @@ var e = {
535
537
  scheduleWakeup: "Scheduling the next check…",
536
538
  fetchTeamsChannelHistory: "Reading channel history…",
537
539
  readEarlierMessages: "Rereading earlier messages…",
540
+ readChatAttachment: "Rereading an attached file…",
538
541
  enableTools: "Enabling tools…",
539
542
  searchingDocuments: "Memory search…",
540
543
  expandChunkContext: "Reading more context…",
@@ -1099,6 +1102,8 @@ var e = {
1099
1102
  includeThoughts: "Invia i pensieri del modello al client insieme alla risposta.",
1100
1103
  reasoningNotSupported: "Il reasoning non è supportato per il provider selezionato.",
1101
1104
  voiceRemaining: "Tempo che resta in questa chiamata",
1105
+ webSearchNative: "Usa le funzionalità di ricerca web integrate di {provider}.",
1106
+ webSearchNativeFallback: "Questo modello non ha una ricerca web integrata: le ricerche passano da Perplexity.",
1102
1107
  webSearchEnabled: "Permetti all'agente di cercare informazioni sul web durante le conversazioni.",
1103
1108
  allowedDomains: "Cerca solo all'interno di questi domini.",
1104
1109
  blockedDomains: "Escludi questi domini dai risultati."
@@ -1182,6 +1187,7 @@ var e = {
1182
1187
  scheduleWakeup: "Programmo il prossimo controllo…",
1183
1188
  fetchTeamsChannelHistory: "Lettura cronologia canale…",
1184
1189
  readEarlierMessages: "Rilettura dei messaggi precedenti…",
1190
+ readChatAttachment: "Rilettura di un file allegato…",
1185
1191
  enableTools: "Attivazione dei tool…",
1186
1192
  searchingDocuments: "Ricerca nella memoria…",
1187
1193
  expandChunkContext: "Lettura di altro contesto…",
@@ -0,0 +1,16 @@
1
+ import { BetterAuthPlugin } from 'better-auth';
2
+ /**
3
+ * Sending an expired invitation again renews it, as the user guide promises.
4
+ * better-auth resends only an invitation that has not expired: for an expired
5
+ * one it creates another, with a new id, and the agents chosen for the first
6
+ * (keyed on its id) and the language of its email stay behind. A new member
7
+ * coming in through that copy could use every agent of the organization.
8
+ *
9
+ * This hook runs before the invite route. On a resend whose most recent open
10
+ * invitation for that address has expired, it reopens that one for a moment,
11
+ * once the caller passes the checks better-auth would run, and better-auth's
12
+ * own resend takes it from there: same row, new expiry, the email in its
13
+ * language, the in-app notification with the same id. Anything else goes to
14
+ * better-auth unchanged, which refuses it or creates the invitation as before.
15
+ */
16
+ export declare function invitationResend(): BetterAuthPlugin;
@@ -593,6 +593,19 @@ export declare enum WebSearchProvider {
593
593
  Parallel = "parallel",
594
594
  Native = "native"
595
595
  }
596
+ /**
597
+ * The model providers with a web search of their own, by the prefix of the
598
+ * model id, with the name the settings show. `native` uses it; with a model
599
+ * of any other provider the search goes through Perplexity
600
+ * (`buildWebSearchTools` in the backend), which the settings say.
601
+ */
602
+ export declare const NATIVE_WEB_SEARCH_PROVIDERS: {
603
+ readonly openai: "OpenAI";
604
+ readonly anthropic: "Anthropic";
605
+ readonly google: "Google";
606
+ };
607
+ /** The name of the model provider whose own web search `native` uses, if any. */
608
+ export declare function nativeWebSearchProviderOf(model: string): string | undefined;
596
609
  export declare const PerplexitySearchConfigSchema: z.ZodObject<{
597
610
  maxResults: z.ZodOptional<z.ZodNumber>;
598
611
  maxTokens: z.ZodOptional<z.ZodNumber>;
@@ -952,6 +965,15 @@ export declare const AgentModelSchema: z.ZodObject<{
952
965
  export type AgentModel = z.infer<typeof AgentModelSchema>;
953
966
  export declare const LocalizedStringSchema: z.ZodCodec<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodString>>;
954
967
  export type LocalizedString = z.infer<typeof LocalizedStringSchema>;
968
+ /**
969
+ * The notice a new chat agent starts with (`interface.dismissableNotice`): it
970
+ * tells the user they are talking to an AI, as Art. 50 of the AI Act asks
971
+ * when the context does not make it obvious. Written into the agent, where
972
+ * the customer edits or clears it, so it is content and not an interface
973
+ * string: it lives here, where the server can read it, and not in the i18n
974
+ * package.
975
+ */
976
+ export declare const AGENT_DEFAULT_AI_NOTICE: LocalizedString;
955
977
  export declare const DEFAULT_WIDGET_URL = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js";
956
978
  export declare enum AgentLoaderStrategy {
957
979
  InlineModule = "inline-module",
@@ -27,4 +27,11 @@ export declare const InvitationsQuerystringSchema: z.ZodObject<{
27
27
  'page[size]': z.ZodDefault<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
28
28
  }, z.core.$strip>;
29
29
  export type InvitationsQuerystring = z.infer<typeof InvitationsQuerystringSchema>;
30
+ /**
31
+ * The status an invitation reads as. better-auth never writes `expired`: an
32
+ * open invitation past its expiry stays `pending`, and the ability rules that
33
+ * let it be resent and canceled read that stored status, so the expiry is
34
+ * applied where the status is shown and the row is left as it is.
35
+ */
36
+ export declare const getInvitationStatus: (invitation: Pick<Invitation, "status" | "expiresAt">, now?: Date) => Invitation["status"];
30
37
  export declare const getColorByInvitationStatus: (status: Invitation["status"]) => "success" | "danger" | "warning" | "info" | "gray" | undefined;
@@ -71,7 +71,7 @@ export declare enum EmbeddingModel {
71
71
  export declare const EMBED_MODEL = EmbeddingModel.geminiEmbedding2;
72
72
  /**
73
73
  * Model that answers typed questions (yes/no, choice, score) with calibrated
74
- * probabilities instead of text, through the gateway's `experimental_evaluate`
74
+ * probabilities instead of text, through the gateway's `experimental_decide`
75
75
  * (TypeSafe Jev). Out of the catalog like the embeddings: it decides for the
76
76
  * platform, it never answers the user. Its gateway listing reports no ZDR,
77
77
  * yet a ZDR request is served, routed to TypeSafe alone (measured
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.119.0-beta.48",
4
+ "version": "0.119.0-beta.54",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",