@8wave/ai-elements 0.127.0-beta.7 → 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.
- package/dist/_chunks/{Agent-nB9V45mr.js → Agent-C5Jpr5i5.js} +76 -58
- package/dist/_chunks/Agent-C5Jpr5i5.js.map +1 -0
- package/dist/_chunks/{Document-Dm5GM40t.js → Document-lhfsmafy.js} +2 -2
- package/dist/_chunks/{Document-Dm5GM40t.js.map → Document-lhfsmafy.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-BaJet5cw.js → PkFilePreview-yKT0QkEB.js} +3 -3
- package/dist/_chunks/{PkFilePreview-BaJet5cw.js.map → PkFilePreview-yKT0QkEB.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-Cq8DGCD1.js → PkFilePreviewDialog-B4yKQbLi.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-Cq8DGCD1.js.map → PkFilePreviewDialog-B4yKQbLi.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-5Px7Y_8G.js → PkImageEditorDialog-BF6tQvTY.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-5Px7Y_8G.js.map → PkImageEditorDialog-BF6tQvTY.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-DDhbwE4U.js → PkSelectionActions-J1AaO8Of.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-DDhbwE4U.js.map → PkSelectionActions-J1AaO8Of.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-5WfFCjFv.js → PkStreamingMarkdown-CvIq4j9U.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-5WfFCjFv.js.map → PkStreamingMarkdown-CvIq4j9U.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-fTo6gdqx.js → PkToolChatFile-Y5CR96-B.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-fTo6gdqx.js.map → PkToolChatFile-Y5CR96-B.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-BeFZQQxz.js → PkToolRequestGeolocation-UQJ9S20q.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-BeFZQQxz.js.map → PkToolRequestGeolocation-UQJ9S20q.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-_01ct5du.js → PkToolRequestOAuthConnection-DunGTHsM.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-_01ct5du.js.map → PkToolRequestOAuthConnection-DunGTHsM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-C28dOM5W.js → PkToolShowArtifact-CBsIMKuq.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-C28dOM5W.js.map → PkToolShowArtifact-CBsIMKuq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-D06qrkHm.js → PkToolShowContactForm-D8tYijcg.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-D06qrkHm.js.map → PkToolShowContactForm-D8tYijcg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-qj_f9Z5D.js → PkToolShowForm-CM63L5WC.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-qj_f9Z5D.js.map → PkToolShowForm-CM63L5WC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-Dm2UEfWl.js → PkToolShowImageGallery-DN6kSeuD.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-Dm2UEfWl.js.map → PkToolShowImageGallery-DN6kSeuD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-DorHQJMd.js → PkToolShowProductList-BkmajNm0.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-DorHQJMd.js.map → PkToolShowProductList-BkmajNm0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BMJeacz7.js → PkToolShowSources-BoJmMb4K.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-BMJeacz7.js.map → PkToolShowSources-BoJmMb4K.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DBfeOl05.js → PkToolShowSuggestedReply-BVMpjsys.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DBfeOl05.js.map → PkToolShowSuggestedReply-BVMpjsys.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-YwSq8c2P.js → PkToolShowVideo-DP2fDXF9.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-YwSq8c2P.js.map → PkToolShowVideo-DP2fDXF9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DtZC0KHO.js → PkToolShowWebPages-B7w6G2iO.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-DtZC0KHO.js.map → PkToolShowWebPages-B7w6G2iO.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-Cj5lkTVq.js → chatImagePolicy-DSoafnHw.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-Cj5lkTVq.js.map → chatImagePolicy-DSoafnHw.js.map} +1 -1
- package/dist/_chunks/{utils-CRy3kzE3.js → utils-BYVRPDrv.js} +2 -2
- package/dist/_chunks/{utils-CRy3kzE3.js.map → utils-BYVRPDrv.js.map} +1 -1
- package/dist/ai-elements.es.js +37 -26
- 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-DKefaJeG.js → Agent-BmgzrjcZ.js} +302 -280
- package/dist-vue/_chunks/Agent-BmgzrjcZ.js.map +1 -0
- package/dist-vue/_chunks/{Document-B49E_gxT.js → Document-ebwxbTSm.js} +12 -12
- package/dist-vue/_chunks/{Document-B49E_gxT.js.map → Document-ebwxbTSm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-CuCgECW2.js → PkChatbot-D-RZ4vXj.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CuCgECW2.js.map → PkChatbot-D-RZ4vXj.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-C_htXOSW.js → PkChatbotEmptyState-BSdctGUp.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-C_htXOSW.js.map → PkChatbotEmptyState-BSdctGUp.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CJ5lPtpH.js → PkChatbotInput-Bkr2FMAR.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotInput-CJ5lPtpH.js.map → PkChatbotInput-Bkr2FMAR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-CDDoxZAf.js → PkChatbotMessages-DDlmLGyp.js} +21 -21
- package/dist-vue/_chunks/{PkChatbotMessages-CDDoxZAf.js.map → PkChatbotMessages-DDlmLGyp.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-BLjH1pkP.js → PkChatbotStepPayload-BWeGBOGl.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BLjH1pkP.js.map → PkChatbotStepPayload-BWeGBOGl.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-wIZmkvr-.js → PkChatbotStepToolDetail-k_purHyE.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-wIZmkvr-.js.map → PkChatbotStepToolDetail-k_purHyE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-DG09GyCb.js → PkChatbotSteps-DvYhk_xP.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotSteps-DG09GyCb.js.map → PkChatbotSteps-DvYhk_xP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-FtOpDmks.js → PkChatbotViewChat-Cip10EzB.js} +9 -9
- package/dist-vue/_chunks/{PkChatbotViewChat-FtOpDmks.js.map → PkChatbotViewChat-Cip10EzB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-NA_PCvZR.js → PkChatbotViewConversations-RLG-s6pX.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewConversations-NA_PCvZR.js.map → PkChatbotViewConversations-RLG-s6pX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-D8_Khdu2.js → PkChatbotViewFiles-2wpxHO9V.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-D8_Khdu2.js.map → PkChatbotViewFiles-2wpxHO9V.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-iTBiQVsZ.js → PkChatbotViewProfile-DRQAn8tb.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-iTBiQVsZ.js.map → PkChatbotViewProfile-DRQAn8tb.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-B6PSJcvA.js → PkFilePreview-D5xDM0jH.js} +3 -3
- package/dist-vue/_chunks/{PkFilePreview-B6PSJcvA.js.map → PkFilePreview-D5xDM0jH.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-3HJbVudc.js → PkFilePreviewDialog-C0lp3E-k.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-3HJbVudc.js.map → PkFilePreviewDialog-C0lp3E-k.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-CrjpCier.js → PkImageEditorDialog-bt-_WXJ7.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-CrjpCier.js.map → PkImageEditorDialog-bt-_WXJ7.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CgKFdzCI.js → PkStreamingMarkdown-D38PPSbB.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-CgKFdzCI.js.map → PkStreamingMarkdown-D38PPSbB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-IEQxfzjM.js → PkToolChatFile-Dvn6Jg9n.js} +4 -4
- package/dist-vue/_chunks/{PkToolChatFile-IEQxfzjM.js.map → PkToolChatFile-Dvn6Jg9n.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-BmrbMPke.js → PkToolRequestGeolocation-B9t-ttW_.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-BmrbMPke.js.map → PkToolRequestGeolocation-B9t-ttW_.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yKgXyOUN.js → PkToolRequestOAuthConnection-D73L805S.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yKgXyOUN.js.map → PkToolRequestOAuthConnection-D73L805S.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-CF90yFCe.js → PkToolShowArtifact-Clkqoz26.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-CF90yFCe.js.map → PkToolShowArtifact-Clkqoz26.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-CDR8ag4q.js → PkToolShowChart-RLAsKQT7.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-CDR8ag4q.js.map → PkToolShowChart-RLAsKQT7.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-Cg2TiqP1.js → PkToolShowContactForm-BSDtKWWD.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-Cg2TiqP1.js.map → PkToolShowContactForm-BSDtKWWD.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-Do20AvFb.js → PkToolShowDiagram-9EYiOJXE.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-Do20AvFb.js.map → PkToolShowDiagram-9EYiOJXE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DfFmPOt6.js → PkToolShowForm-mXmiZPIW.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-DfFmPOt6.js.map → PkToolShowForm-mXmiZPIW.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DA6KW2g_.js → PkToolShowImageGallery-B2phVedq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DA6KW2g_.js.map → PkToolShowImageGallery-B2phVedq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-FcDDabPI.js → PkToolShowProductList-BX9D6A8k.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-FcDDabPI.js.map → PkToolShowProductList-BX9D6A8k.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-afCYBONq.js → PkToolShowSources-B0Xw8RR2.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-afCYBONq.js.map → PkToolShowSources-B0Xw8RR2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-C863wgtU.js → PkToolShowSuggestedReply-C4ymiiHa.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-C863wgtU.js.map → PkToolShowSuggestedReply-C4ymiiHa.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-kUiwxRlz.js → PkToolShowVideo-DyOPeNq_.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-kUiwxRlz.js.map → PkToolShowVideo-DyOPeNq_.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-Dw9D1__u.js → PkToolShowWebPages-DajE3TAx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-Dw9D1__u.js.map → PkToolShowWebPages-DajE3TAx.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DzrHp52e.js → createChatbotApiClient-BxqZ_a0M.js} +30 -20
- package/dist-vue/_chunks/createChatbotApiClient-BxqZ_a0M.js.map +1 -0
- package/dist-vue/_chunks/{localFolders-ChZp8dLu.js → localFolders-D8DxM-5y.js} +46 -46
- package/dist-vue/_chunks/{localFolders-ChZp8dLu.js.map → localFolders-D8DxM-5y.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DZlc7dzK.js → useChatbotStore-CYArauNl.js} +21 -21
- package/dist-vue/_chunks/{useChatbotStore-DZlc7dzK.js.map → useChatbotStore-CYArauNl.js.map} +1 -1
- package/dist-vue/_chunks/{utils-CY0jFRnG.js → utils-SmeQuVL1.js} +8 -8
- package/dist-vue/_chunks/{utils-CY0jFRnG.js.map → utils-SmeQuVL1.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +17 -13
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4876 -4802
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +14 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +11 -2
- package/dist-vue/packages/composable/src/chatbot/useChatProjectsStore.d.ts +40 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +40 -1
- package/dist-vue/packages/composable/src/chatbot/useConversationActions.d.ts +3 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +53 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +55 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +18 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +13 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +10 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-nB9V45mr.js.map +0 -1
- package/dist-vue/_chunks/Agent-DKefaJeG.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-DzrHp52e.js.map +0 -1
|
@@ -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;
|
|
@@ -606,6 +632,7 @@ export declare const ChatSchema: z.ZodObject<{
|
|
|
606
632
|
title: z.ZodNullable<z.ZodString>;
|
|
607
633
|
summary: z.ZodNullable<z.ZodString>;
|
|
608
634
|
messageCountAtLastSummary: z.ZodNullable<z.ZodString>;
|
|
635
|
+
messageCountAtLastAnalysis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
609
636
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
610
637
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
611
638
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -645,6 +672,8 @@ export declare const ChatSchema: z.ZodObject<{
|
|
|
645
672
|
turnInProgress: z.ZodOptional<z.ZodBoolean>;
|
|
646
673
|
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
674
|
authorName: z.ZodOptional<z.ZodString>;
|
|
675
|
+
operatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
676
|
+
operatorSince: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
648
677
|
}, z.core.$strip>;
|
|
649
678
|
/**
|
|
650
679
|
* `filter[projectId]` of the chat list: a project's id lists the chats of
|
|
@@ -690,5 +719,31 @@ export declare const ChatsPublicSchema: z.ZodObject<{
|
|
|
690
719
|
turnInProgress: z.ZodOptional<z.ZodBoolean>;
|
|
691
720
|
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
692
721
|
authorName: z.ZodOptional<z.ZodString>;
|
|
722
|
+
operatorActive: z.ZodOptional<z.ZodBoolean>;
|
|
693
723
|
}, z.core.$strip>;
|
|
694
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,24 @@ 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",
|
|
460
|
+
/**
|
|
461
|
+
* The analysis of the conversations (spec context-compaction.md): a
|
|
462
|
+
* model reads them for abuse, for the assistant's mistakes and for the
|
|
463
|
+
* facts the user states about themselves. It reaches the runtime: off,
|
|
464
|
+
* no conversation of the organization is analyzed, neither after a turn
|
|
465
|
+
* nor from the chat log, so no automatic block, no notification to the
|
|
466
|
+
* admins and no memory written from what the user said. The analyses
|
|
467
|
+
* already stored stay readable.
|
|
468
|
+
*/
|
|
469
|
+
ConversationAnalysis = "conversationAnalysis",
|
|
452
470
|
/**
|
|
453
471
|
* One flag per agent visibility an organization may go without (spec
|
|
454
472
|
* agent-visibility-modes.md, "Modalità per organizzazione"), and none
|
|
@@ -879,6 +879,11 @@ export declare const ReasoningChatSchema: z.ZodObject<{
|
|
|
879
879
|
}, z.core.$strip>>>;
|
|
880
880
|
}, z.core.$strip>>>;
|
|
881
881
|
}, z.core.$strip>>;
|
|
882
|
+
conversation: z.ZodOptional<z.ZodObject<{
|
|
883
|
+
compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
|
|
884
|
+
compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
885
|
+
analysisInterval: z.ZodOptional<z.ZodNumber>;
|
|
886
|
+
}, z.core.$strip>>;
|
|
882
887
|
}, z.core.$strip>;
|
|
883
888
|
security: z.ZodNullable<z.ZodObject<{
|
|
884
889
|
rateLimits: z.ZodObject<{
|
|
@@ -909,6 +914,7 @@ export declare const ReasoningChatSchema: z.ZodObject<{
|
|
|
909
914
|
title: z.ZodNullable<z.ZodString>;
|
|
910
915
|
summary: z.ZodNullable<z.ZodString>;
|
|
911
916
|
messageCountAtLastSummary: z.ZodNullable<z.ZodString>;
|
|
917
|
+
messageCountAtLastAnalysis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
912
918
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
913
919
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
914
920
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -948,6 +954,8 @@ export declare const ReasoningChatSchema: z.ZodObject<{
|
|
|
948
954
|
turnInProgress: z.ZodOptional<z.ZodBoolean>;
|
|
949
955
|
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
950
956
|
authorName: z.ZodOptional<z.ZodString>;
|
|
957
|
+
operatorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
operatorSince: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
951
959
|
agent: z.ZodLazy<z.ZodObject<{
|
|
952
960
|
id: z.ZodString;
|
|
953
961
|
name: z.ZodString;
|
|
@@ -1807,6 +1815,11 @@ export declare const ReasoningChatSchema: z.ZodObject<{
|
|
|
1807
1815
|
}, z.core.$strip>>>;
|
|
1808
1816
|
}, z.core.$strip>>>;
|
|
1809
1817
|
}, z.core.$strip>>;
|
|
1818
|
+
conversation: z.ZodOptional<z.ZodObject<{
|
|
1819
|
+
compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
|
|
1820
|
+
compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1821
|
+
analysisInterval: z.ZodOptional<z.ZodNumber>;
|
|
1822
|
+
}, z.core.$strip>>;
|
|
1810
1823
|
}, z.core.$strip>;
|
|
1811
1824
|
security: z.ZodNullable<z.ZodObject<{
|
|
1812
1825
|
rateLimits: z.ZodObject<{
|
|
@@ -879,6 +879,11 @@ export declare const SubAgentSchema: z.ZodObject<{
|
|
|
879
879
|
}, z.core.$strip>>>;
|
|
880
880
|
}, z.core.$strip>>>;
|
|
881
881
|
}, z.core.$strip>>;
|
|
882
|
+
conversation: z.ZodOptional<z.ZodObject<{
|
|
883
|
+
compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
|
|
884
|
+
compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
885
|
+
analysisInterval: z.ZodOptional<z.ZodNumber>;
|
|
886
|
+
}, z.core.$strip>>;
|
|
882
887
|
}, z.core.$strip>;
|
|
883
888
|
security: z.ZodNullable<z.ZodObject<{
|
|
884
889
|
rateLimits: z.ZodObject<{
|
|
@@ -1762,6 +1767,11 @@ export declare const SubAgentSchema: z.ZodObject<{
|
|
|
1762
1767
|
}, z.core.$strip>>>;
|
|
1763
1768
|
}, z.core.$strip>>>;
|
|
1764
1769
|
}, z.core.$strip>>;
|
|
1770
|
+
conversation: z.ZodOptional<z.ZodObject<{
|
|
1771
|
+
compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
|
|
1772
|
+
compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1773
|
+
analysisInterval: z.ZodOptional<z.ZodNumber>;
|
|
1774
|
+
}, z.core.$strip>>;
|
|
1765
1775
|
}, z.core.$strip>;
|
|
1766
1776
|
security: z.ZodNullable<z.ZodObject<{
|
|
1767
1777
|
rateLimits: z.ZodObject<{
|