@8wave/ai-elements 0.127.0-beta.8 → 0.127.0-beta.9

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 (38) hide show
  1. package/dist/ai-elements.es.js +13 -5
  2. package/dist/ai-elements.es.js.map +1 -1
  3. package/dist-vue/PkChatbot.js +1 -1
  4. package/dist-vue/PkChatbotViewChat.js +1 -1
  5. package/dist-vue/PkChatbotViewConversations.js +1 -1
  6. package/dist-vue/PkChatbotViewFiles.js +1 -1
  7. package/dist-vue/PkChatbotViewProfile.js +1 -1
  8. package/dist-vue/_chunks/{PkChatbot-z8y2N48s.js → PkChatbot-D-RZ4vXj.js} +6 -6
  9. package/dist-vue/_chunks/{PkChatbot-z8y2N48s.js.map → PkChatbot-D-RZ4vXj.js.map} +1 -1
  10. package/dist-vue/_chunks/{PkChatbotViewChat-DmhTbDrb.js → PkChatbotViewChat-Cip10EzB.js} +4 -4
  11. package/dist-vue/_chunks/{PkChatbotViewChat-DmhTbDrb.js.map → PkChatbotViewChat-Cip10EzB.js.map} +1 -1
  12. package/dist-vue/_chunks/{PkChatbotViewConversations-D6i4rxKl.js → PkChatbotViewConversations-RLG-s6pX.js} +2 -2
  13. package/dist-vue/_chunks/{PkChatbotViewConversations-D6i4rxKl.js.map → PkChatbotViewConversations-RLG-s6pX.js.map} +1 -1
  14. package/dist-vue/_chunks/{PkChatbotViewFiles-D9MF3DCL.js → PkChatbotViewFiles-2wpxHO9V.js} +2 -2
  15. package/dist-vue/_chunks/{PkChatbotViewFiles-D9MF3DCL.js.map → PkChatbotViewFiles-2wpxHO9V.js.map} +1 -1
  16. package/dist-vue/_chunks/{PkChatbotViewProfile-ufTg8n0v.js → PkChatbotViewProfile-DRQAn8tb.js} +2 -2
  17. package/dist-vue/_chunks/{PkChatbotViewProfile-ufTg8n0v.js.map → PkChatbotViewProfile-DRQAn8tb.js.map} +1 -1
  18. package/dist-vue/_chunks/{PkFilePreview-DFOGpWq1.js → PkFilePreview-D5xDM0jH.js} +2 -2
  19. package/dist-vue/_chunks/{PkFilePreview-DFOGpWq1.js.map → PkFilePreview-D5xDM0jH.js.map} +1 -1
  20. package/dist-vue/_chunks/{PkFilePreviewDialog-C9MPW3Ca.js → PkFilePreviewDialog-C0lp3E-k.js} +2 -2
  21. package/dist-vue/_chunks/{PkFilePreviewDialog-C9MPW3Ca.js.map → PkFilePreviewDialog-C0lp3E-k.js.map} +1 -1
  22. package/dist-vue/_chunks/{createChatbotApiClient-GhHO4Bni.js → createChatbotApiClient-BxqZ_a0M.js} +13 -4
  23. package/dist-vue/_chunks/createChatbotApiClient-BxqZ_a0M.js.map +1 -0
  24. package/dist-vue/_chunks/{useChatbotStore-BTq-tgZB.js → useChatbotStore-CYArauNl.js} +2 -2
  25. package/dist-vue/_chunks/{useChatbotStore-BTq-tgZB.js.map → useChatbotStore-CYArauNl.js.map} +1 -1
  26. package/dist-vue/api.js +1 -1
  27. package/dist-vue/composables.js +6 -4
  28. package/dist-vue/composables.js.map +1 -1
  29. package/dist-vue/index.js +10 -10
  30. package/dist-vue/index.js.map +1 -1
  31. package/dist-vue/packages/composable/src/chatbot/useChatProjectsStore.d.ts +31 -1
  32. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -1
  33. package/dist-vue/packages/composable/src/chatbot/useConversationActions.d.ts +2 -0
  34. package/dist-vue/packages/models/src/schema/Chat.d.ts +54 -0
  35. package/dist-vue/packages/models/src/schema/Organization.d.ts +8 -0
  36. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -0
  37. package/package.json +1 -1
  38. package/dist-vue/_chunks/createChatbotApiClient-GhHO4Bni.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { ChatProjectCreateDto, ChatProjectDeletion, ChatProjectUpdateDto, PlatformType, ToolGroupKind, BlockedReasonCode, ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, LlmIssueCategory, UserEngagement, AbuseConfidence, UIChatMessage } from '../../../models/src';
1
+ import { ChatProjectCreateDto, ChatProjectDeletion, ChatProjectUpdateDto, PlatformType, ToolGroupKind, ChatOperatorNotice, BlockedReasonCode, ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, LlmIssueCategory, UserEngagement, AbuseConfidence, UIChatMessage } from '../../../models/src';
2
2
  import { Store } from 'pinia';
3
3
  import { SharedV4ProviderMetadata, JSONObject } from '@ai-sdk/provider';
4
4
  import { ProviderMetadata, LanguageModelUsage } from 'ai';
@@ -209,6 +209,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
209
209
  hiddenColumns?: string[] | undefined;
210
210
  sample?: string | undefined;
211
211
  } | undefined;
212
+ operator?: true | undefined;
213
+ operatorNotice?: ChatOperatorNotice | undefined;
212
214
  } | undefined;
213
215
  parts: ({
214
216
  type: "text";
@@ -662,6 +664,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
662
664
  turnInProgress?: boolean | undefined;
663
665
  projectId?: string | null | undefined;
664
666
  authorName?: string | undefined;
667
+ operatorId?: string | null | undefined;
668
+ operatorSince?: Date | null | undefined;
665
669
  }[], {
666
670
  id: string;
667
671
  messages: UIChatMessage[];
@@ -708,6 +712,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
708
712
  turnInProgress?: boolean | undefined;
709
713
  projectId?: string | null | undefined;
710
714
  authorName?: string | undefined;
715
+ operatorId?: string | null | undefined;
716
+ operatorSince?: Date | null | undefined;
711
717
  }[] | {
712
718
  id: string;
713
719
  messages: {
@@ -854,6 +860,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
854
860
  hiddenColumns?: string[] | undefined;
855
861
  sample?: string | undefined;
856
862
  } | undefined;
863
+ operator?: true | undefined;
864
+ operatorNotice?: ChatOperatorNotice | undefined;
857
865
  } | undefined;
858
866
  parts: ({
859
867
  type: "text";
@@ -1307,6 +1315,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
1307
1315
  turnInProgress?: boolean | undefined;
1308
1316
  projectId?: string | null | undefined;
1309
1317
  authorName?: string | undefined;
1318
+ operatorId?: string | null | undefined;
1319
+ operatorSince?: Date | null | undefined;
1310
1320
  }[]>;
1311
1321
  isLoadingProjectChats: globalThis.Ref<boolean, boolean>;
1312
1322
  load: () => Promise<void>;
@@ -1543,6 +1553,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
1543
1553
  hiddenColumns?: string[] | undefined;
1544
1554
  sample?: string | undefined;
1545
1555
  } | undefined;
1556
+ operator?: true | undefined;
1557
+ operatorNotice?: ChatOperatorNotice | undefined;
1546
1558
  } | undefined;
1547
1559
  parts: ({
1548
1560
  type: "text";
@@ -1996,6 +2008,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
1996
2008
  turnInProgress?: boolean | undefined;
1997
2009
  projectId?: string | null | undefined;
1998
2010
  authorName?: string | undefined;
2011
+ operatorId?: string | null | undefined;
2012
+ operatorSince?: Date | null | undefined;
1999
2013
  }[], {
2000
2014
  id: string;
2001
2015
  messages: UIChatMessage[];
@@ -2042,6 +2056,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
2042
2056
  turnInProgress?: boolean | undefined;
2043
2057
  projectId?: string | null | undefined;
2044
2058
  authorName?: string | undefined;
2059
+ operatorId?: string | null | undefined;
2060
+ operatorSince?: Date | null | undefined;
2045
2061
  }[] | {
2046
2062
  id: string;
2047
2063
  messages: {
@@ -2188,6 +2204,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
2188
2204
  hiddenColumns?: string[] | undefined;
2189
2205
  sample?: string | undefined;
2190
2206
  } | undefined;
2207
+ operator?: true | undefined;
2208
+ operatorNotice?: ChatOperatorNotice | undefined;
2191
2209
  } | undefined;
2192
2210
  parts: ({
2193
2211
  type: "text";
@@ -2641,6 +2659,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
2641
2659
  turnInProgress?: boolean | undefined;
2642
2660
  projectId?: string | null | undefined;
2643
2661
  authorName?: string | undefined;
2662
+ operatorId?: string | null | undefined;
2663
+ operatorSince?: Date | null | undefined;
2644
2664
  }[]>;
2645
2665
  isLoadingProjectChats: globalThis.Ref<boolean, boolean>;
2646
2666
  load: () => Promise<void>;
@@ -2877,6 +2897,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
2877
2897
  hiddenColumns?: string[] | undefined;
2878
2898
  sample?: string | undefined;
2879
2899
  } | undefined;
2900
+ operator?: true | undefined;
2901
+ operatorNotice?: ChatOperatorNotice | undefined;
2880
2902
  } | undefined;
2881
2903
  parts: ({
2882
2904
  type: "text";
@@ -3330,6 +3352,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
3330
3352
  turnInProgress?: boolean | undefined;
3331
3353
  projectId?: string | null | undefined;
3332
3354
  authorName?: string | undefined;
3355
+ operatorId?: string | null | undefined;
3356
+ operatorSince?: Date | null | undefined;
3333
3357
  }[], {
3334
3358
  id: string;
3335
3359
  messages: UIChatMessage[];
@@ -3376,6 +3400,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
3376
3400
  turnInProgress?: boolean | undefined;
3377
3401
  projectId?: string | null | undefined;
3378
3402
  authorName?: string | undefined;
3403
+ operatorId?: string | null | undefined;
3404
+ operatorSince?: Date | null | undefined;
3379
3405
  }[] | {
3380
3406
  id: string;
3381
3407
  messages: {
@@ -3522,6 +3548,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
3522
3548
  hiddenColumns?: string[] | undefined;
3523
3549
  sample?: string | undefined;
3524
3550
  } | undefined;
3551
+ operator?: true | undefined;
3552
+ operatorNotice?: ChatOperatorNotice | undefined;
3525
3553
  } | undefined;
3526
3554
  parts: ({
3527
3555
  type: "text";
@@ -3975,6 +4003,8 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
3975
4003
  turnInProgress?: boolean | undefined;
3976
4004
  projectId?: string | null | undefined;
3977
4005
  authorName?: string | undefined;
4006
+ operatorId?: string | null | undefined;
4007
+ operatorSince?: Date | null | undefined;
3978
4008
  }[]>;
3979
4009
  isLoadingProjectChats: globalThis.Ref<boolean, boolean>;
3980
4010
  load: () => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { FileUIPart, ChatStatus, ChatRequestOptions, ChatAddToolOutputFunction, ChatAddToolApproveResponseFunction, ProviderMetadata, LanguageModelUsage } from 'ai';
2
- import { PageAccessLevel, Chat as ChatRecord, ChatMessageActions, UIChatMessage, UIChatMessageMetadata, PagePointer, FilePointer, AgentWidgetLayout, AgentWidgetAppearance, AgentLoaderStrategy, StoragePolicy, AgentSearchMode, AgentBuiltInTool, WebSearchProvider, PlatformType, ToolGroupKind, BlockedReasonCode, ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, LlmIssueCategory, UserEngagement, AbuseConfidence, UserFileKind } from '../../../models/src';
2
+ import { PageAccessLevel, Chat as ChatRecord, ChatMessageActions, UIChatMessage, UIChatMessageMetadata, PagePointer, FilePointer, AgentWidgetLayout, AgentWidgetAppearance, AgentLoaderStrategy, StoragePolicy, AgentSearchMode, AgentBuiltInTool, WebSearchProvider, PlatformType, ToolGroupKind, ChatOperatorNotice, BlockedReasonCode, ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, LlmIssueCategory, UserEngagement, AbuseConfidence, UserFileKind } from '../../../models/src';
3
3
  import { ConfirmationMode, HostToolConfirmation, RegisteredHostTool } from './hostTools';
4
4
  import { ConnectedLocalFolder } from './localFolders';
5
5
  import { ChatbotFile } from './api';
@@ -962,6 +962,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
962
962
  hiddenColumns?: string[] | undefined;
963
963
  sample?: string | undefined;
964
964
  } | undefined;
965
+ operator?: true | undefined;
966
+ operatorNotice?: ChatOperatorNotice | undefined;
965
967
  } | undefined;
966
968
  parts: ({
967
969
  type: "text";
@@ -1415,6 +1417,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1415
1417
  turnInProgress?: boolean | undefined;
1416
1418
  projectId?: string | null | undefined;
1417
1419
  authorName?: string | undefined;
1420
+ operatorId?: string | null | undefined;
1421
+ operatorSince?: Date | null | undefined;
1418
1422
  }[], {
1419
1423
  id: string;
1420
1424
  messages: UIChatMessage[];
@@ -1461,6 +1465,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1461
1465
  turnInProgress?: boolean | undefined;
1462
1466
  projectId?: string | null | undefined;
1463
1467
  authorName?: string | undefined;
1468
+ operatorId?: string | null | undefined;
1469
+ operatorSince?: Date | null | undefined;
1464
1470
  }[] | {
1465
1471
  id: string;
1466
1472
  messages: {
@@ -1607,6 +1613,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1607
1613
  hiddenColumns?: string[] | undefined;
1608
1614
  sample?: string | undefined;
1609
1615
  } | undefined;
1616
+ operator?: true | undefined;
1617
+ operatorNotice?: ChatOperatorNotice | undefined;
1610
1618
  } | undefined;
1611
1619
  parts: ({
1612
1620
  type: "text";
@@ -2060,6 +2068,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
2060
2068
  turnInProgress?: boolean | undefined;
2061
2069
  projectId?: string | null | undefined;
2062
2070
  authorName?: string | undefined;
2071
+ operatorId?: string | null | undefined;
2072
+ operatorSince?: Date | null | undefined;
2063
2073
  }[]>;
2064
2074
  isLoadingConversations: globalThis.Ref<boolean, boolean>;
2065
2075
  hasMoreConversations: globalThis.Ref<boolean, boolean>;
@@ -3239,6 +3249,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3239
3249
  hiddenColumns?: string[] | undefined;
3240
3250
  sample?: string | undefined;
3241
3251
  } | undefined;
3252
+ operator?: true | undefined;
3253
+ operatorNotice?: ChatOperatorNotice | undefined;
3242
3254
  } | undefined;
3243
3255
  parts: ({
3244
3256
  type: "text";
@@ -3692,6 +3704,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3692
3704
  turnInProgress?: boolean | undefined;
3693
3705
  projectId?: string | null | undefined;
3694
3706
  authorName?: string | undefined;
3707
+ operatorId?: string | null | undefined;
3708
+ operatorSince?: Date | null | undefined;
3695
3709
  }[], {
3696
3710
  id: string;
3697
3711
  messages: UIChatMessage[];
@@ -3738,6 +3752,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3738
3752
  turnInProgress?: boolean | undefined;
3739
3753
  projectId?: string | null | undefined;
3740
3754
  authorName?: string | undefined;
3755
+ operatorId?: string | null | undefined;
3756
+ operatorSince?: Date | null | undefined;
3741
3757
  }[] | {
3742
3758
  id: string;
3743
3759
  messages: {
@@ -3884,6 +3900,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3884
3900
  hiddenColumns?: string[] | undefined;
3885
3901
  sample?: string | undefined;
3886
3902
  } | undefined;
3903
+ operator?: true | undefined;
3904
+ operatorNotice?: ChatOperatorNotice | undefined;
3887
3905
  } | undefined;
3888
3906
  parts: ({
3889
3907
  type: "text";
@@ -4337,6 +4355,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
4337
4355
  turnInProgress?: boolean | undefined;
4338
4356
  projectId?: string | null | undefined;
4339
4357
  authorName?: string | undefined;
4358
+ operatorId?: string | null | undefined;
4359
+ operatorSince?: Date | null | undefined;
4340
4360
  }[]>;
4341
4361
  isLoadingConversations: globalThis.Ref<boolean, boolean>;
4342
4362
  hasMoreConversations: globalThis.Ref<boolean, boolean>;
@@ -5516,6 +5536,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5516
5536
  hiddenColumns?: string[] | undefined;
5517
5537
  sample?: string | undefined;
5518
5538
  } | undefined;
5539
+ operator?: true | undefined;
5540
+ operatorNotice?: ChatOperatorNotice | undefined;
5519
5541
  } | undefined;
5520
5542
  parts: ({
5521
5543
  type: "text";
@@ -5969,6 +5991,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5969
5991
  turnInProgress?: boolean | undefined;
5970
5992
  projectId?: string | null | undefined;
5971
5993
  authorName?: string | undefined;
5994
+ operatorId?: string | null | undefined;
5995
+ operatorSince?: Date | null | undefined;
5972
5996
  }[], {
5973
5997
  id: string;
5974
5998
  messages: UIChatMessage[];
@@ -6015,6 +6039,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
6015
6039
  turnInProgress?: boolean | undefined;
6016
6040
  projectId?: string | null | undefined;
6017
6041
  authorName?: string | undefined;
6042
+ operatorId?: string | null | undefined;
6043
+ operatorSince?: Date | null | undefined;
6018
6044
  }[] | {
6019
6045
  id: string;
6020
6046
  messages: {
@@ -6161,6 +6187,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
6161
6187
  hiddenColumns?: string[] | undefined;
6162
6188
  sample?: string | undefined;
6163
6189
  } | undefined;
6190
+ operator?: true | undefined;
6191
+ operatorNotice?: ChatOperatorNotice | undefined;
6164
6192
  } | undefined;
6165
6193
  parts: ({
6166
6194
  type: "text";
@@ -6614,6 +6642,8 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
6614
6642
  turnInProgress?: boolean | undefined;
6615
6643
  projectId?: string | null | undefined;
6616
6644
  authorName?: string | undefined;
6645
+ operatorId?: string | null | undefined;
6646
+ operatorSince?: Date | null | undefined;
6617
6647
  }[]>;
6618
6648
  isLoadingConversations: globalThis.Ref<boolean, boolean>;
6619
6649
  hasMoreConversations: globalThis.Ref<boolean, boolean>;
@@ -58,6 +58,8 @@ export declare function groupConversationsByDate(conversations: Conversation[]):
58
58
  turnInProgress?: boolean | undefined;
59
59
  projectId?: string | null | undefined;
60
60
  authorName?: string | undefined;
61
+ operatorId?: string | null | undefined;
62
+ operatorSince?: Date | null | undefined;
61
63
  }[];
62
64
  }[];
63
65
  /**
@@ -535,7 +535,33 @@ export type UIChatMessageMetadata = {
535
535
  * after the message's own.
536
536
  */
537
537
  filePointer?: FilePointer;
538
+ /**
539
+ * An answer a person wrote, holding the conversation as its operator
540
+ * (docs/specs/operatore-in-chat.md). It does not say which person: the
541
+ * visitor reads "Operatore", and the conversation keeps no link to an
542
+ * employee. Only the server sets it.
543
+ */
544
+ operator?: true;
545
+ /**
546
+ * A notice of the conversation passing to an operator or back to the
547
+ * agent: the client writes its text, the model never reads it. Only the
548
+ * server sets it.
549
+ */
550
+ operatorNotice?: ChatOperatorNotice;
538
551
  };
552
+ /** Who answers from here on, as a notice in the conversation says. */
553
+ export declare const ChatOperatorNotice: {
554
+ /** An operator took control: a person answers. */
555
+ readonly Taken: "taken";
556
+ /** The operator released it: the agent answers again. */
557
+ readonly Released: "released";
558
+ };
559
+ export type ChatOperatorNotice = (typeof ChatOperatorNotice)[keyof typeof ChatOperatorNotice];
560
+ /**
561
+ * An answer an operator wrote, or a notice of the conversation changing
562
+ * hands: an assistant message that is not the agent's.
563
+ */
564
+ export declare const isOperatorMessage: (message: UIChatMessage | undefined) => boolean;
539
565
  /** The wakeup a seed message belongs to (spec agent-wakeup). */
540
566
  export type UIChatMessageWakeup = {
541
567
  id: string;
@@ -646,6 +672,8 @@ export declare const ChatSchema: z.ZodObject<{
646
672
  turnInProgress: z.ZodOptional<z.ZodBoolean>;
647
673
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
674
  authorName: z.ZodOptional<z.ZodString>;
675
+ operatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
+ operatorSince: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
649
677
  }, z.core.$strip>;
650
678
  /**
651
679
  * `filter[projectId]` of the chat list: a project's id lists the chats of
@@ -691,5 +719,31 @@ export declare const ChatsPublicSchema: z.ZodObject<{
691
719
  turnInProgress: z.ZodOptional<z.ZodBoolean>;
692
720
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
721
  authorName: z.ZodOptional<z.ZodString>;
722
+ operatorActive: z.ZodOptional<z.ZodBoolean>;
694
723
  }, z.core.$strip>;
695
724
  export type ChatPublic = z.infer<typeof ChatsPublicSchema>;
725
+ /** The longest answer an operator writes, as an agent's message counter. */
726
+ export declare const CHAT_OPERATOR_MESSAGE_MAX_LENGTH = 10000;
727
+ /**
728
+ * Taking control of a conversation: who the caller believes holds it now,
729
+ * `null` for nobody. A page that is no longer right is refused, so it never
730
+ * takes the conversation from a colleague by mistake.
731
+ */
732
+ export declare const ChatOperatorTakeoverDtoSchema: z.ZodObject<{
733
+ expectedOperatorId: z.ZodNullable<z.ZodUUID>;
734
+ }, z.core.$strip>;
735
+ export type ChatOperatorTakeoverDto = z.infer<typeof ChatOperatorTakeoverDtoSchema>;
736
+ /** An operator's answer to the visitor: text only. */
737
+ export declare const ChatOperatorMessageDtoSchema: z.ZodObject<{
738
+ text: z.ZodString;
739
+ }, z.core.$strip>;
740
+ export type ChatOperatorMessageDto = z.infer<typeof ChatOperatorMessageDtoSchema>;
741
+ /**
742
+ * Who holds a conversation after an operator's action. The conversation
743
+ * itself the client reads again, as for every change of its live channel.
744
+ */
745
+ export declare const ChatOperatorStateSchema: z.ZodObject<{
746
+ operatorId: z.ZodNullable<z.ZodString>;
747
+ operatorSince: z.ZodNullable<z.ZodCoercedDate<unknown>>;
748
+ }, z.core.$strip>;
749
+ export type ChatOperatorState = z.infer<typeof ChatOperatorStateSchema>;
@@ -449,6 +449,14 @@ export declare enum OrganizationFeature {
449
449
  * while the phases ship.
450
450
  */
451
451
  ChatProjects = "chatProjects",
452
+ /**
453
+ * A person who monitors the agent takes control of a conversation from
454
+ * the chat logs, and the agent stops answering it until they release it
455
+ * (docs/specs/operatore-in-chat.md). It gates the operator routes and the
456
+ * live channel; off, a conversation still held is answered by the agent
457
+ * again. Off by default: born for one customer.
458
+ */
459
+ OperatorTakeover = "operatorTakeover",
452
460
  /**
453
461
  * The analysis of the conversations (spec context-compaction.md): a
454
462
  * model reads them for abuse, for the assistant's mistakes and for the
@@ -954,6 +954,8 @@ export declare const ReasoningChatSchema: z.ZodObject<{
954
954
  turnInProgress: z.ZodOptional<z.ZodBoolean>;
955
955
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
956
  authorName: z.ZodOptional<z.ZodString>;
957
+ operatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
958
+ operatorSince: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
957
959
  agent: z.ZodLazy<z.ZodObject<{
958
960
  id: z.ZodString;
959
961
  name: z.ZodString;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.127.0-beta.8",
4
+ "version": "0.127.0-beta.9",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",