@8wave/ai-elements 0.119.0-beta.1 → 0.119.0-beta.8

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 (77) hide show
  1. package/dist/_chunks/{PkStreamingMarkdown-kpEBZA4d.js → PkStreamingMarkdown-Bry3y6Ru.js} +3 -3
  2. package/dist/_chunks/PkStreamingMarkdown-Bry3y6Ru.js.map +1 -0
  3. package/dist/_chunks/{PkToolShowArtifact-B8TOTS6A.js → PkToolShowArtifact-CfJLe8vD.js} +2 -2
  4. package/dist/_chunks/{PkToolShowArtifact-B8TOTS6A.js.map → PkToolShowArtifact-CfJLe8vD.js.map} +1 -1
  5. package/dist/_chunks/{PkToolShowContactForm-B89p05XM.js → PkToolShowContactForm-CQQ6p4bJ.js} +2 -2
  6. package/dist/_chunks/{PkToolShowContactForm-B89p05XM.js.map → PkToolShowContactForm-CQQ6p4bJ.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowForm-DTKQtFij.js → PkToolShowForm-CGAc1O6K.js} +2 -2
  8. package/dist/_chunks/{PkToolShowForm-DTKQtFij.js.map → PkToolShowForm-CGAc1O6K.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowSources-CbwixpOb.js → PkToolShowSources-BJ-XFrLD.js} +3 -3
  10. package/dist/_chunks/{PkToolShowSources-CbwixpOb.js.map → PkToolShowSources-BJ-XFrLD.js.map} +1 -1
  11. package/dist/_chunks/{markdown-c59ir6tw.js → markdown-DpoAzJSk.js} +64 -61
  12. package/dist/_chunks/markdown-DpoAzJSk.js.map +1 -0
  13. package/dist/ai-elements.es.js +64 -10
  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/PkChatbotViewFiles.js +1 -1
  24. package/dist-vue/_chunks/{Document-B-oyVh7v.js → Document-CV-RJu_p.js} +64 -61
  25. package/dist-vue/_chunks/Document-CV-RJu_p.js.map +1 -0
  26. package/dist-vue/_chunks/{PkChatbot-C_OzxC0s.js → PkChatbot-CcNC2r_E.js} +5 -5
  27. package/dist-vue/_chunks/{PkChatbot-C_OzxC0s.js.map → PkChatbot-CcNC2r_E.js.map} +1 -1
  28. package/dist-vue/_chunks/{PkChatbotEmptyState-BEQCnqui.js → PkChatbotEmptyState-Toj4CqXV.js} +2 -2
  29. package/dist-vue/_chunks/{PkChatbotEmptyState-BEQCnqui.js.map → PkChatbotEmptyState-Toj4CqXV.js.map} +1 -1
  30. package/dist-vue/_chunks/{PkChatbotInput-KJxWrDIT.js → PkChatbotInput-BfZqRpQ2.js} +2 -2
  31. package/dist-vue/_chunks/{PkChatbotInput-KJxWrDIT.js.map → PkChatbotInput-BfZqRpQ2.js.map} +1 -1
  32. package/dist-vue/_chunks/{PkChatbotMessages-Zhuxom46.js → PkChatbotMessages-B6qYZsMZ.js} +14 -14
  33. package/dist-vue/_chunks/{PkChatbotMessages-Zhuxom46.js.map → PkChatbotMessages-B6qYZsMZ.js.map} +1 -1
  34. package/dist-vue/_chunks/{PkChatbotStepPayload-Da4N5CKa.js → PkChatbotStepPayload-D0eoPBQ8.js} +2 -2
  35. package/dist-vue/_chunks/{PkChatbotStepPayload-Da4N5CKa.js.map → PkChatbotStepPayload-D0eoPBQ8.js.map} +1 -1
  36. package/dist-vue/_chunks/{PkChatbotStepToolDetail-rrtImvq5.js → PkChatbotStepToolDetail-CMx4cw1D.js} +3 -3
  37. package/dist-vue/_chunks/{PkChatbotStepToolDetail-rrtImvq5.js.map → PkChatbotStepToolDetail-CMx4cw1D.js.map} +1 -1
  38. package/dist-vue/_chunks/{PkChatbotSteps-LEfOolAc.js → PkChatbotSteps-DeZQhGRU.js} +5 -5
  39. package/dist-vue/_chunks/{PkChatbotSteps-LEfOolAc.js.map → PkChatbotSteps-DeZQhGRU.js.map} +1 -1
  40. package/dist-vue/_chunks/{PkChatbotViewChat-BJ0YHCvA.js → PkChatbotViewChat--Q90F_Kg.js} +6 -6
  41. package/dist-vue/_chunks/{PkChatbotViewChat-BJ0YHCvA.js.map → PkChatbotViewChat--Q90F_Kg.js.map} +1 -1
  42. package/dist-vue/_chunks/{PkChatbotViewFiles-gqCumfod.js → PkChatbotViewFiles-CA20TBFY.js} +2 -2
  43. package/dist-vue/_chunks/{PkChatbotViewFiles-gqCumfod.js.map → PkChatbotViewFiles-CA20TBFY.js.map} +1 -1
  44. package/dist-vue/_chunks/{PkStreamingMarkdown-BWEvuFZm.js → PkStreamingMarkdown-C55Fi0Pd.js} +2 -2
  45. package/dist-vue/_chunks/{PkStreamingMarkdown-BWEvuFZm.js.map → PkStreamingMarkdown-C55Fi0Pd.js.map} +1 -1
  46. package/dist-vue/_chunks/{PkToolShowArtifact-tNEG6-r_.js → PkToolShowArtifact-z1qTnFkA.js} +2 -2
  47. package/dist-vue/_chunks/{PkToolShowArtifact-tNEG6-r_.js.map → PkToolShowArtifact-z1qTnFkA.js.map} +1 -1
  48. package/dist-vue/_chunks/{PkToolShowContactForm-DBC6f9gR.js → PkToolShowContactForm-BjNpnv6y.js} +2 -2
  49. package/dist-vue/_chunks/{PkToolShowContactForm-DBC6f9gR.js.map → PkToolShowContactForm-BjNpnv6y.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkToolShowDiagram-Bbq0ETt1.js → PkToolShowDiagram-CqkabP0e.js} +2 -2
  51. package/dist-vue/_chunks/{PkToolShowDiagram-Bbq0ETt1.js.map → PkToolShowDiagram-CqkabP0e.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkToolShowForm-BG-8aTHy.js → PkToolShowForm-CZFWZub7.js} +3 -3
  53. package/dist-vue/_chunks/{PkToolShowForm-BG-8aTHy.js.map → PkToolShowForm-CZFWZub7.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkToolShowImageGallery-DXn-bxHv.js → PkToolShowImageGallery-CkfXP_lD.js} +2 -2
  55. package/dist-vue/_chunks/{PkToolShowImageGallery-DXn-bxHv.js.map → PkToolShowImageGallery-CkfXP_lD.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkToolShowProductList-BZ_fDRCq.js → PkToolShowProductList-De-PtmD-.js} +2 -2
  57. package/dist-vue/_chunks/{PkToolShowProductList-BZ_fDRCq.js.map → PkToolShowProductList-De-PtmD-.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkToolShowSources-CUURb0PG.js → PkToolShowSources-CSN7S0zo.js} +3 -3
  59. package/dist-vue/_chunks/{PkToolShowSources-CUURb0PG.js.map → PkToolShowSources-CSN7S0zo.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkToolShowVideo-FNlPjswi.js → PkToolShowVideo-B_Q93E2y.js} +2 -2
  61. package/dist-vue/_chunks/{PkToolShowVideo-FNlPjswi.js.map → PkToolShowVideo-B_Q93E2y.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkToolShowWebPages-CWV79tsb.js → PkToolShowWebPages-D3CdjJUc.js} +2 -2
  63. package/dist-vue/_chunks/{PkToolShowWebPages-CWV79tsb.js.map → PkToolShowWebPages-D3CdjJUc.js.map} +1 -1
  64. package/dist-vue/_chunks/{utils-Dk2jFXR_.js → utils-CwIMEuAv.js} +3 -3
  65. package/dist-vue/_chunks/{utils-Dk2jFXR_.js.map → utils-CwIMEuAv.js.map} +1 -1
  66. package/dist-vue/composables.js +57 -3
  67. package/dist-vue/composables.js.map +1 -1
  68. package/dist-vue/index.js +4007 -3982
  69. package/dist-vue/index.js.map +1 -1
  70. package/dist-vue/locales.js +4 -0
  71. package/dist-vue/packages/models/src/schema/Document.d.ts +25 -0
  72. package/dist-vue/packages/models/src/schema/Notification.d.ts +2 -0
  73. package/dist-vue/packages/models/src/schema/Platform.d.ts +72 -0
  74. package/package.json +1 -1
  75. package/dist/_chunks/PkStreamingMarkdown-kpEBZA4d.js.map +0 -1
  76. package/dist/_chunks/markdown-c59ir6tw.js.map +0 -1
  77. package/dist-vue/_chunks/Document-B-oyVh7v.js.map +0 -1
@@ -544,6 +544,8 @@ var e = {
544
544
  showVideo: "Loading video…",
545
545
  showSuggestedReply: "Suggest a reply…",
546
546
  disconnectOAuthConnection: "Disconnecting…",
547
+ requestAccountLink: "Sending the sign-in link…",
548
+ unlinkAccount: "Unlinking the number…",
547
549
  webSearch: "Searching the web…",
548
550
  tool: "Running a tool…",
549
551
  reasoning: "Reasoning…",
@@ -1155,6 +1157,8 @@ var e = {
1155
1157
  showVideo: "Caricamento video…",
1156
1158
  showSuggestedReply: "Suggerisco una risposta…",
1157
1159
  disconnectOAuthConnection: "Disconnessione in corso…",
1160
+ requestAccountLink: "Invio del link di accesso…",
1161
+ unlinkAccount: "Scollegamento del numero…",
1158
1162
  webSearch: "Ricerca sul web…",
1159
1163
  tool: "Esecuzione di un tool…",
1160
1164
  reasoning: "Ragionamento…",
@@ -58,6 +58,30 @@ export interface SearchIndexFacts {
58
58
  * written after it belong to a newer sync, still to come.
59
59
  */
60
60
  export declare function searchIndexStatusOf(facts: SearchIndexFacts): SearchIndexStatus;
61
+ /**
62
+ * Whether the record of a sync that gave up still speaks for the chunks of a
63
+ * document out of the index: only when none of them is newer than it. The
64
+ * documents list asks it of the rows it filters by state, so that the filter
65
+ * reads the record the way the badge does.
66
+ */
67
+ export declare function searchIndexGaveUp(searchIndexFailedAt: string | null | undefined, newestChunkAt: number | null): boolean;
68
+ /**
69
+ * What the badge of a row in the documents list reads, which is what the list
70
+ * filters by (`filter[status]`): the conversion until it has succeeded, then
71
+ * whether the search finds the document. Two words would mean different
72
+ * things in the two stages, so the search values are named after their label:
73
+ * its `pending` reads "Preparing", its `failed` "Not indexed".
74
+ */
75
+ export declare enum DocumentListStatus {
76
+ Pending = "pending",
77
+ Processing = "processing",
78
+ Failed = "failed",
79
+ Preparing = "preparing",
80
+ Indexed = "indexed",
81
+ NotIndexed = "not-indexed",
82
+ Unavailable = "unavailable",
83
+ Empty = "empty"
84
+ }
61
85
  /**
62
86
  * Conversion options for document processing
63
87
  * Used when creating or reprocessing documents
@@ -1994,6 +2018,7 @@ export declare const DocumentQuerystringSchema: z.ZodObject<{
1994
2018
  'filter[hasRedundantChunks]': z.ZodOptional<z.ZodString>;
1995
2019
  'filter[refreshInterval]': z.ZodOptional<z.ZodString>;
1996
2020
  'filter[sourceProvider]': z.ZodOptional<z.ZodString>;
2021
+ 'filter[status]': z.ZodOptional<z.ZodEnum<typeof DocumentListStatus>>;
1997
2022
  ids: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1998
2023
  "filter[fullText]": z.ZodOptional<z.ZodString>;
1999
2024
  'filter[deleted]': z.ZodOptional<z.ZodEnum<{
@@ -14,6 +14,8 @@ export declare const NotificationType: {
14
14
  readonly WebSourceRemovalHeld: "web_source_removal_held";
15
15
  /** A platform administrator ended one of the user's integration sign-ins. */
16
16
  readonly McpConnectionRevoked: "mcp_connection_revoked";
17
+ /** A messaging number (WhatsApp) now writes as the user's account. */
18
+ readonly PlatformAccountLinked: "platform_account_linked";
17
19
  readonly ChatWarning: "chat_warning";
18
20
  readonly ChatBlocked: "chat_blocked";
19
21
  /** An agent woke up in the user's chat and has something new to say. */
@@ -293,3 +293,75 @@ export interface PlatformConnectionMetadata {
293
293
  teamsManifest?: TeamsManifestMetadata;
294
294
  [key: string]: unknown;
295
295
  }
296
+ /**
297
+ * The messaging platforms whose senders link their web account from the chat
298
+ * (docs/specs/platform-chat-otp-verification.md). Teams is not one of them:
299
+ * its sender arrives already verified by Microsoft.
300
+ */
301
+ export declare const LinkablePlatformSchema: z.ZodEnum<{
302
+ whatsapp: "whatsapp";
303
+ }>;
304
+ export type LinkablePlatform = z.infer<typeof LinkablePlatformSchema>;
305
+ /**
306
+ * Whether an issuer of `user_external_identity` is a messaging platform's:
307
+ * `whatsapp` for a number linked from the chat, `teams:<tenant>` for a
308
+ * verified Teams sender. The external sign-in keys its identities in the same
309
+ * table, so a token with such an `iss` would sign in as the account a number
310
+ * or a Teams user is linked to: it must refuse them.
311
+ */
312
+ export declare function isPlatformIdentityIssuer(issuer: string): boolean;
313
+ /** Where an account link stands for the signed-in user who opened it. */
314
+ export declare const PlatformAccountLinkStatus: {
315
+ /** The number is free, and the account has no other one on that platform. */
316
+ readonly Available: "available";
317
+ /** Already this account's: confirming changes nothing. */
318
+ readonly LinkedHere: "linked_here";
319
+ /** Another account's, which has to unlink it first. */
320
+ readonly LinkedElsewhere: "linked_elsewhere";
321
+ /** The account has another number on that platform: confirming replaces it. */
322
+ readonly ReplacesOther: "replaces_other";
323
+ readonly Expired: "expired";
324
+ /** Tampered with, issued by another installation, or already used. */
325
+ readonly Invalid: "invalid";
326
+ };
327
+ export type PlatformAccountLinkStatus = (typeof PlatformAccountLinkStatus)[keyof typeof PlatformAccountLinkStatus];
328
+ /** What the page shows before the user confirms an account link. */
329
+ export declare const PlatformAccountLinkPreviewSchema: z.ZodObject<{
330
+ status: z.ZodEnum<{
331
+ /** The number is free, and the account has no other one on that platform. */
332
+ readonly Available: "available";
333
+ /** Already this account's: confirming changes nothing. */
334
+ readonly LinkedHere: "linked_here";
335
+ /** Another account's, which has to unlink it first. */
336
+ readonly LinkedElsewhere: "linked_elsewhere";
337
+ /** The account has another number on that platform: confirming replaces it. */
338
+ readonly ReplacesOther: "replaces_other";
339
+ readonly Expired: "expired";
340
+ /** Tampered with, issued by another installation, or already used. */
341
+ readonly Invalid: "invalid";
342
+ }>;
343
+ platform: z.ZodOptional<z.ZodEnum<{
344
+ whatsapp: "whatsapp";
345
+ }>>;
346
+ phoneNumber: z.ZodOptional<z.ZodString>;
347
+ currentPhoneNumber: z.ZodOptional<z.ZodString>;
348
+ issuedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
349
+ expiresAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
350
+ }, z.core.$strip>;
351
+ export type PlatformAccountLinkPreview = z.infer<typeof PlatformAccountLinkPreviewSchema>;
352
+ /** The user's confirmation of an account link. */
353
+ export declare const PlatformAccountLinkConfirmSchema: z.ZodObject<{
354
+ token: z.ZodString;
355
+ replace: z.ZodOptional<z.ZodBoolean>;
356
+ locale: z.ZodOptional<z.ZodString>;
357
+ }, z.core.$strip>;
358
+ export type PlatformAccountLinkConfirm = z.infer<typeof PlatformAccountLinkConfirmSchema>;
359
+ /** A messaging number linked to the user's account, as the profile lists it. */
360
+ export declare const PlatformIdentitySchema: z.ZodObject<{
361
+ platform: z.ZodEnum<{
362
+ whatsapp: "whatsapp";
363
+ }>;
364
+ phoneNumber: z.ZodString;
365
+ linkedAt: z.ZodCoercedDate<unknown>;
366
+ }, z.core.$strip>;
367
+ export type PlatformIdentity = z.infer<typeof PlatformIdentitySchema>;
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.1",
4
+ "version": "0.119.0-beta.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",