@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.
- package/dist/_chunks/Agent-DU38SnNd.js.map +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-xnhBbPf5.js → PkStreamingMarkdown-pEgm7m-B.js} +4 -4
- package/dist/_chunks/PkStreamingMarkdown-pEgm7m-B.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-DPt1qDUk.js → PkToolShowArtifact-D6ZTw5vh.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DPt1qDUk.js.map → PkToolShowArtifact-D6ZTw5vh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-OdC7bsXd.js → PkToolShowContactForm-CW7gKQ7h.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-OdC7bsXd.js.map → PkToolShowContactForm-CW7gKQ7h.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-uFmaQoI1.js → PkToolShowForm-D_2FmDwq.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-uFmaQoI1.js.map → PkToolShowForm-D_2FmDwq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BlpCKc4N.js → PkToolShowSources-DyzheirE.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-BlpCKc4N.js.map → PkToolShowSources-DyzheirE.js.map} +1 -1
- package/dist/_chunks/markdown-BKLfFJPr.js.map +1 -1
- package/dist/ai-elements.es.js +1176 -1174
- 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-DDm9cCaN.js → Agent-DUdd9NbF.js} +79 -70
- package/dist-vue/_chunks/Agent-DUdd9NbF.js.map +1 -0
- package/dist-vue/_chunks/{Document-CZemm1AR.js → Document-B4q9uYmN.js} +10 -10
- package/dist-vue/_chunks/Document-B4q9uYmN.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-DXwMfwN4.js → PkChatbot-Ck6RO0Rd.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-DXwMfwN4.js.map → PkChatbot-Ck6RO0Rd.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dve5Ci2Y.js → PkChatbotEmptyState-DhJDJhxj.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-Dve5Ci2Y.js.map → PkChatbotEmptyState-DhJDJhxj.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-DiCxEime.js → PkChatbotInput--ULB71Ld.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-DiCxEime.js.map → PkChatbotInput--ULB71Ld.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-CTp0NkY2.js → PkChatbotMessages-Bni4EjEB.js} +17 -17
- package/dist-vue/_chunks/{PkChatbotMessages-CTp0NkY2.js.map → PkChatbotMessages-Bni4EjEB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-B1o2DbQz.js → PkChatbotStepPayload-D8Y5I01D.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-B1o2DbQz.js.map → PkChatbotStepPayload-D8Y5I01D.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DpYV0KLn.js → PkChatbotStepToolDetail-CwstaTuG.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-DpYV0KLn.js.map → PkChatbotStepToolDetail-CwstaTuG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BPon4zjv.js → PkChatbotSteps-Caz3eJgv.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-BPon4zjv.js.map → PkChatbotSteps-Caz3eJgv.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-dJE2iHPN.js → PkChatbotViewChat-B_T3HkON.js} +174 -174
- package/dist-vue/_chunks/PkChatbotViewChat-B_T3HkON.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-DcEcJgwV.js → PkChatbotViewConversations-CvGu-4t3.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-DcEcJgwV.js.map → PkChatbotViewConversations-CvGu-4t3.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DDEJqXct.js → PkChatbotViewFiles-CWyaCSXx.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DDEJqXct.js.map → PkChatbotViewFiles-CWyaCSXx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-B79UynQ8.js → PkChatbotViewProfile-gGx0SEXR.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-B79UynQ8.js.map → PkChatbotViewProfile-gGx0SEXR.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CqT_orLj.js → PkStreamingMarkdown-DZ8jmXzh.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-CqT_orLj.js.map → PkStreamingMarkdown-DZ8jmXzh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Dcp3VFzY.js → PkToolEditSpreadsheet-CtRusPSR.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-Dcp3VFzY.js.map → PkToolEditSpreadsheet-CtRusPSR.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DG4-qKRq.js → PkToolRequestGeolocation-P_QxEXD5.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DG4-qKRq.js.map → PkToolRequestGeolocation-P_QxEXD5.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CZhNEM-o.js → PkToolRequestOAuthConnection-BlngXdPM.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CZhNEM-o.js.map → PkToolRequestOAuthConnection-BlngXdPM.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Qfkz64NY.js → PkToolShowArtifact-CoBUA6lk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Qfkz64NY.js.map → PkToolShowArtifact-CoBUA6lk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CRLEkYSE.js → PkToolShowContactForm-BjE4mrDv.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CRLEkYSE.js.map → PkToolShowContactForm-BjE4mrDv.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-j4FJ34Ta.js → PkToolShowDiagram-CVmV8ip6.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-j4FJ34Ta.js.map → PkToolShowDiagram-CVmV8ip6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DdFBwLMf.js → PkToolShowForm-CbAHlcVY.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-DdFBwLMf.js.map → PkToolShowForm-CbAHlcVY.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-CxlOwuTJ.js → PkToolShowImageGallery-lwId4MH0.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-CxlOwuTJ.js.map → PkToolShowImageGallery-lwId4MH0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-dfd3vmhl.js → PkToolShowProductList-uilv8927.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-dfd3vmhl.js.map → PkToolShowProductList-uilv8927.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-B8Euk3rp.js → PkToolShowSources-Cg2POjp8.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-B8Euk3rp.js.map → PkToolShowSources-Cg2POjp8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cl3Pswi4.js → PkToolShowSuggestedReply-CMXG6Ntj.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Cl3Pswi4.js.map → PkToolShowSuggestedReply-CMXG6Ntj.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-C84UrvZ7.js → PkToolShowVideo-D04Xeojs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-C84UrvZ7.js.map → PkToolShowVideo-D04Xeojs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CzzuVQqL.js → PkToolShowWebPages-D7bEHkyy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CzzuVQqL.js.map → PkToolShowWebPages-D7bEHkyy.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DrUsRvCw.js → createChatbotApiClient-pAQ5kfjL.js} +14 -14
- package/dist-vue/_chunks/{createChatbotApiClient-DrUsRvCw.js.map → createChatbotApiClient-pAQ5kfjL.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DHmjHPR5.js → useChatbotStore-B2KlwdHy.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-DHmjHPR5.js.map → useChatbotStore-B2KlwdHy.js.map} +1 -1
- package/dist-vue/_chunks/{utils-7oPvmwwu.js → utils-JCvPK7lV.js} +5 -5
- package/dist-vue/_chunks/utils-JCvPK7lV.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +9 -7
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3365 -3359
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +6 -0
- package/dist-vue/packages/auth/src/invitation-resend-plugin.d.ts +16 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +22 -0
- package/dist-vue/packages/models/src/schema/Invitation.d.ts +7 -0
- package/dist-vue/packages/models/src/schema/constants.d.ts +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkStreamingMarkdown-xnhBbPf5.js.map +0 -1
- package/dist-vue/_chunks/Agent-DDm9cCaN.js.map +0 -1
- package/dist-vue/_chunks/Document-CZemm1AR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-dJE2iHPN.js.map +0 -1
- package/dist-vue/_chunks/utils-7oPvmwwu.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -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 `
|
|
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
|