@cossistant/react 0.0.32 → 0.0.33
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/hooks/index.d.ts +2 -2
- package/hooks/index.js +2 -2
- package/hooks/private/use-grouped-messages.d.ts +27 -2
- package/hooks/private/use-grouped-messages.d.ts.map +1 -1
- package/hooks/private/use-grouped-messages.js +154 -106
- package/hooks/private/use-grouped-messages.js.map +1 -1
- package/hooks/use-new-message-sound.d.ts.map +1 -1
- package/hooks/use-new-message-sound.js +2 -2
- package/hooks/use-new-message-sound.js.map +1 -1
- package/hooks/use-typing-sound.d.ts.map +1 -1
- package/hooks/use-typing-sound.js +2 -2
- package/hooks/use-typing-sound.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +3 -5
- package/packages/tiny-markdown/src/context/index.d.ts +1 -0
- package/packages/tiny-markdown/src/context/tiny-markdown-context.d.ts +3 -0
- package/packages/tiny-markdown/src/hooks/index.d.ts +4 -0
- package/packages/tiny-markdown/src/hooks/use-caret-position.d.ts +1 -0
- package/packages/tiny-markdown/src/hooks/use-tiny-markdown.d.ts +1 -0
- package/packages/tiny-markdown/src/hooks/use-tiny-mention.d.ts +1 -0
- package/packages/tiny-markdown/src/hooks/use-tiny-shortcuts.d.ts +1 -0
- package/packages/tiny-markdown/src/index.d.ts +4 -0
- package/packages/tiny-markdown/src/types.d.ts +75 -0
- package/packages/tiny-markdown/src/types.d.ts.map +1 -0
- package/packages/tiny-markdown/src/utils/index.d.ts +3 -0
- package/packages/tiny-markdown/src/utils/markdown-parser.d.ts +1 -0
- package/packages/tiny-markdown/src/utils/mention-parser.d.ts +1 -0
- package/packages/tiny-markdown/src/utils/merge-refs.d.ts +1 -0
- package/packages/types/src/api/conversation.d.ts +304 -4
- package/packages/types/src/api/conversation.d.ts.map +1 -1
- package/packages/types/src/api/timeline-item.d.ts +228 -3
- package/packages/types/src/api/timeline-item.d.ts.map +1 -1
- package/packages/types/src/realtime-events.d.ts +229 -4
- package/packages/types/src/realtime-events.d.ts.map +1 -1
- package/packages/types/src/schemas.d.ts +76 -1
- package/packages/types/src/schemas.d.ts.map +1 -1
- package/primitives/command-block-utils.d.ts +26 -0
- package/primitives/command-block-utils.d.ts.map +1 -0
- package/primitives/command-block-utils.js +310 -0
- package/primitives/command-block-utils.js.map +1 -0
- package/primitives/index.d.ts +7 -3
- package/primitives/index.js +11 -2
- package/primitives/index.parts.d.ts +6 -2
- package/primitives/index.parts.js +5 -1
- package/primitives/multimodal-input.d.ts +2 -2
- package/primitives/multimodal-input.d.ts.map +1 -1
- package/primitives/timeline-code-block.d.ts +32 -0
- package/primitives/timeline-code-block.d.ts.map +1 -0
- package/primitives/timeline-code-block.js +66 -0
- package/primitives/timeline-code-block.js.map +1 -0
- package/primitives/timeline-command-block.d.ts +29 -0
- package/primitives/timeline-command-block.d.ts.map +1 -0
- package/primitives/timeline-command-block.js +97 -0
- package/primitives/timeline-command-block.js.map +1 -0
- package/primitives/timeline-item-group.d.ts.map +1 -1
- package/primitives/timeline-item-group.js +5 -15
- package/primitives/timeline-item-group.js.map +1 -1
- package/primitives/timeline-item.d.ts +21 -1
- package/primitives/timeline-item.d.ts.map +1 -1
- package/primitives/timeline-item.js +148 -83
- package/primitives/timeline-item.js.map +1 -1
- package/primitives/timeline-message-layout.d.ts +9 -0
- package/primitives/timeline-message-layout.d.ts.map +1 -0
- package/primitives/timeline-message-layout.js +20 -0
- package/primitives/timeline-message-layout.js.map +1 -0
- package/realtime/event-filter.js +4 -3
- package/realtime/event-filter.js.map +1 -1
- package/sounds/sound-data.d.ts +6 -0
- package/sounds/sound-data.d.ts.map +1 -0
- package/sounds/sound-data.js +7 -0
- package/sounds/sound-data.js.map +1 -0
- package/support/components/button.d.ts +2 -2
- package/support/components/button.d.ts.map +1 -1
- package/support/components/button.js +1 -0
- package/support/components/button.js.map +1 -1
- package/support/components/conversation-event.d.ts +3 -0
- package/support/components/conversation-event.d.ts.map +1 -1
- package/support/components/conversation-event.js +46 -15
- package/support/components/conversation-event.js.map +1 -1
- package/support/components/conversation-timeline.d.ts.map +1 -1
- package/support/components/conversation-timeline.js +12 -0
- package/support/components/conversation-timeline.js.map +1 -1
- package/support/components/index.d.ts +2 -1
- package/support/components/index.js +2 -1
- package/support/components/timeline-activity-group.d.ts +25 -0
- package/support/components/timeline-activity-group.d.ts.map +1 -0
- package/support/components/timeline-activity-group.js +104 -0
- package/support/components/timeline-activity-group.js.map +1 -0
- package/support/components/timeline-code-block.d.ts +14 -0
- package/support/components/timeline-code-block.d.ts.map +1 -0
- package/support/components/timeline-code-block.js +44 -0
- package/support/components/timeline-code-block.js.map +1 -0
- package/support/components/timeline-command-block.d.ts +12 -0
- package/support/components/timeline-command-block.d.ts.map +1 -0
- package/support/components/timeline-command-block.js +42 -0
- package/support/components/timeline-command-block.js.map +1 -0
- package/support/components/timeline-message-item.d.ts +2 -1
- package/support/components/timeline-message-item.d.ts.map +1 -1
- package/support/components/timeline-message-item.js +23 -3
- package/support/components/timeline-message-item.js.map +1 -1
- package/support/index.d.ts +4 -4
- package/support/store/support-store.d.ts +5 -5
- package/utils/metadata-hash.d.ts +1 -1
- package/utils/metadata-hash.js +9 -4
- package/utils/metadata-hash.js.map +1 -1
- package/utils/timeline-item-sender.d.ts +17 -0
- package/utils/timeline-item-sender.d.ts.map +1 -0
- package/utils/timeline-item-sender.js +43 -0
- package/utils/timeline-item-sender.js.map +1 -0
- package/utils/use-render-element.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import { useMultimodalInput } from "./hooks/private/use-multimodal-input.js";
|
|
|
26
26
|
import { useSendMessage } from "./hooks/use-send-message.js";
|
|
27
27
|
import { useMessageComposer } from "./hooks/use-message-composer.js";
|
|
28
28
|
import { useConversationPage } from "./hooks/use-conversation-page.js";
|
|
29
|
-
import { useGroupedMessages } from "./hooks/private/use-grouped-messages.js";
|
|
29
|
+
import { TIMELINE_GROUP_WINDOW_MS, buildTimelineReadReceiptData, groupTimelineItems, prepareTimelineItems, useGroupedMessages } from "./hooks/private/use-grouped-messages.js";
|
|
30
30
|
import { useConversationSeen, useDebouncedConversationSeen } from "./hooks/use-conversation-seen.js";
|
|
31
31
|
import { useConversationTyping } from "./hooks/use-conversation-typing.js";
|
|
32
32
|
import { useConversationTimeline } from "./hooks/use-conversation-timeline.js";
|
|
@@ -45,4 +45,4 @@ import { useFileUpload } from "./hooks/use-file-upload.js";
|
|
|
45
45
|
import { useRealtimeSupport } from "./hooks/use-realtime-support.js";
|
|
46
46
|
import { IdentifySupportVisitor } from "./identify-visitor.js";
|
|
47
47
|
|
|
48
|
-
export { CoButton as Button, CONVERSATION_AUTO_SEEN_DELAY_MS, Header, IdentifySupportVisitor, primitives_exports as Primitives, RealtimeProvider, Support, SupportConfig, SupportContext, SupportProvider, SupportRealtimeProvider, Text, WebSocketProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useFileUpload, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportEventEmitter, useSupportEvents, useSupportHandle, useSupportNavigation, useSupportStore, useSupportText, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
|
48
|
+
export { CoButton as Button, CONVERSATION_AUTO_SEEN_DELAY_MS, Header, IdentifySupportVisitor, primitives_exports as Primitives, RealtimeProvider, Support, SupportConfig, SupportContext, SupportProvider, SupportRealtimeProvider, TIMELINE_GROUP_WINDOW_MS, Text, WebSocketProvider, applyConversationSeenEvent, applyConversationTypingEvent, buildTimelineReadReceiptData, clearTypingFromTimelineItem, clearTypingState, groupTimelineItems, hydrateConversationSeen, prepareTimelineItems, setTypingState, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useFileUpload, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportEventEmitter, useSupportEvents, useSupportHandle, useSupportNavigation, useSupportStore, useSupportText, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cossistant/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.33",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Cossistant team",
|
|
7
7
|
"description": "Headless React SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.",
|
|
@@ -88,17 +88,15 @@
|
|
|
88
88
|
"*.css"
|
|
89
89
|
],
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@cossistant/core": "0.0.
|
|
91
|
+
"@cossistant/core": "0.0.33",
|
|
92
92
|
"@cossistant/tiny-markdown": "0.0.1",
|
|
93
|
-
"@cossistant/types": "0.0.
|
|
93
|
+
"@cossistant/types": "0.0.33",
|
|
94
94
|
"facehash": "0.0.7",
|
|
95
95
|
"@floating-ui/react": "^0.27.16",
|
|
96
96
|
"class-variance-authority": "^0.7.1",
|
|
97
97
|
"clsx": "^2.1.1",
|
|
98
98
|
"nanoid": "^5.1.5",
|
|
99
|
-
"react-markdown": "^10.1.0",
|
|
100
99
|
"react-use-websocket": "^4.13.0",
|
|
101
|
-
"remark-breaks": "^4.0.0",
|
|
102
100
|
"tailwind-merge": "^3.3.1",
|
|
103
101
|
"ulid": "^3.0.1"
|
|
104
102
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./tiny-markdown-context.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../types.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BlockquoteToken, CodeToken, EmToken, HeaderToken, LineBreakToken, LinkToken, ListItemToken, MarkdownToken, Mention, MentionToken, MentionType, OrderedListToken, ParagraphToken, ParsedMention, StrongToken, TextToken, UnorderedListToken } from "./types.js";
|
|
2
|
+
import "./context/index.js";
|
|
3
|
+
import "./hooks/index.js";
|
|
4
|
+
import "./utils/index.js";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
|
|
3
|
+
//#region ../tiny-markdown/src/types.d.ts
|
|
4
|
+
type MentionType = "visitor" | "ai-agent" | "human-agent";
|
|
5
|
+
type Mention = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: MentionType;
|
|
9
|
+
avatar?: string;
|
|
10
|
+
};
|
|
11
|
+
type ParsedMention = Mention & {
|
|
12
|
+
raw: string;
|
|
13
|
+
startIndex: number;
|
|
14
|
+
endIndex: number;
|
|
15
|
+
};
|
|
16
|
+
type TextToken = {
|
|
17
|
+
type: "text";
|
|
18
|
+
content: string;
|
|
19
|
+
};
|
|
20
|
+
type StrongToken = {
|
|
21
|
+
type: "strong";
|
|
22
|
+
children: MarkdownToken[];
|
|
23
|
+
};
|
|
24
|
+
type EmToken = {
|
|
25
|
+
type: "em";
|
|
26
|
+
children: MarkdownToken[];
|
|
27
|
+
};
|
|
28
|
+
type CodeToken = {
|
|
29
|
+
type: "code";
|
|
30
|
+
content: string;
|
|
31
|
+
inline: boolean;
|
|
32
|
+
language?: string;
|
|
33
|
+
fileName?: string;
|
|
34
|
+
};
|
|
35
|
+
type ParagraphToken = {
|
|
36
|
+
type: "p";
|
|
37
|
+
children: MarkdownToken[];
|
|
38
|
+
};
|
|
39
|
+
type BlockquoteToken = {
|
|
40
|
+
type: "blockquote";
|
|
41
|
+
children: MarkdownToken[];
|
|
42
|
+
};
|
|
43
|
+
type UnorderedListToken = {
|
|
44
|
+
type: "ul";
|
|
45
|
+
children: MarkdownToken[];
|
|
46
|
+
};
|
|
47
|
+
type OrderedListToken = {
|
|
48
|
+
type: "ol";
|
|
49
|
+
children: MarkdownToken[];
|
|
50
|
+
};
|
|
51
|
+
type ListItemToken = {
|
|
52
|
+
type: "li";
|
|
53
|
+
children: MarkdownToken[];
|
|
54
|
+
};
|
|
55
|
+
type LinkToken = {
|
|
56
|
+
type: "a";
|
|
57
|
+
href: string;
|
|
58
|
+
children: MarkdownToken[];
|
|
59
|
+
};
|
|
60
|
+
type LineBreakToken = {
|
|
61
|
+
type: "br";
|
|
62
|
+
};
|
|
63
|
+
type MentionToken = {
|
|
64
|
+
type: "mention";
|
|
65
|
+
mention: ParsedMention;
|
|
66
|
+
};
|
|
67
|
+
type HeaderToken = {
|
|
68
|
+
type: "header";
|
|
69
|
+
level: 1 | 2 | 3;
|
|
70
|
+
children: MarkdownToken[];
|
|
71
|
+
};
|
|
72
|
+
type MarkdownToken = TextToken | StrongToken | EmToken | CodeToken | ParagraphToken | BlockquoteToken | UnorderedListToken | OrderedListToken | ListItemToken | LinkToken | LineBreakToken | MentionToken | HeaderToken;
|
|
73
|
+
//#endregion
|
|
74
|
+
export { BlockquoteToken, CodeToken, EmToken, HeaderToken, LineBreakToken, LinkToken, ListItemToken, MarkdownToken, Mention, MentionToken, MentionType, OrderedListToken, ParagraphToken, ParsedMention, StrongToken, TextToken, UnorderedListToken };
|
|
75
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../../tiny-markdown/src/types.ts"],"sourcesContent":[],"mappings":";;;KAMY,WAAA;KAEA,OAAA;EAFA,EAAA,EAAA,MAAA;EAEA,IAAA,EAAA,MAAO;EAOP,IAAA,EAJL,WAIkB;EA+Bb,MAAA,CAAA,EAAA,MAAS;AACrB,CAAA;AACY,KAjCA,aAAA,GAAgB,OAiCkB,GAAA;EAClC,GAAA,EAAA,MAAA;EAOA,UAAA,EAAA,MAAc;EACd,QAAA,EAAA,MAAA;AACZ,CAAA;AAyBG,KArCS,SAAA,GAqCT;EACA,IAAA,EAAA,MAAA;EACA,OAAA,EAAA,MAAA;CACA;AACA,KAxCS,WAAA,GAwCT;EAAW,IAAA,EAAA,QAAA;YAxCwC;;KAC1C,OAAA;;YAAkC;;KAClC,SAAA;;;;;;;KAOA,cAAA;;YAAwC;;KACxC,eAAA;;YAAkD;;KAClD,kBAAA;;YAA6C;;KAC7C,gBAAA;;YAA2C;;KAC3C,aAAA;;YAAwC;;KACxC,SAAA;;;YAGD;;KAEC,cAAA;;;KACA,YAAA;;WAA2C;;KAC3C,WAAA;;;YAGD;;KAGC,aAAA,GACT,YACA,cACA,UACA,YACA,iBACA,kBACA,qBACA,mBACA,gBACA,YACA,iBACA,eACA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "react";
|
|
@@ -45,6 +45,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
45
45
|
}>>;
|
|
46
46
|
progressMessage: ZodOptional<ZodString>;
|
|
47
47
|
knowledgeId: ZodOptional<ZodString>;
|
|
48
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
49
|
+
logType: ZodEnum<{
|
|
50
|
+
log: "log";
|
|
51
|
+
customer_facing: "customer_facing";
|
|
52
|
+
decision: "decision";
|
|
53
|
+
}>;
|
|
54
|
+
triggerMessageId: ZodString;
|
|
55
|
+
workflowRunId: ZodString;
|
|
56
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
57
|
+
public: "public";
|
|
58
|
+
private: "private";
|
|
59
|
+
}>>;
|
|
60
|
+
}, $strip>>;
|
|
48
61
|
}, $strip>>;
|
|
49
62
|
}, $loose>>;
|
|
50
63
|
}, $strip>, ZodObject<{
|
|
@@ -54,11 +67,34 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
54
67
|
input: ZodRecord<ZodString, ZodUnknown>;
|
|
55
68
|
output: ZodOptional<ZodUnknown>;
|
|
56
69
|
state: ZodEnum<{
|
|
57
|
-
error: "error";
|
|
58
70
|
result: "result";
|
|
71
|
+
error: "error";
|
|
59
72
|
partial: "partial";
|
|
60
73
|
}>;
|
|
61
74
|
errorText: ZodOptional<ZodString>;
|
|
75
|
+
callProviderMetadata: ZodOptional<ZodObject<{
|
|
76
|
+
cossistant: ZodOptional<ZodObject<{
|
|
77
|
+
visibility: ZodOptional<ZodEnum<{
|
|
78
|
+
public: "public";
|
|
79
|
+
private: "private";
|
|
80
|
+
}>>;
|
|
81
|
+
progressMessage: ZodOptional<ZodString>;
|
|
82
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
83
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
84
|
+
logType: ZodEnum<{
|
|
85
|
+
log: "log";
|
|
86
|
+
customer_facing: "customer_facing";
|
|
87
|
+
decision: "decision";
|
|
88
|
+
}>;
|
|
89
|
+
triggerMessageId: ZodString;
|
|
90
|
+
workflowRunId: ZodString;
|
|
91
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
92
|
+
public: "public";
|
|
93
|
+
private: "private";
|
|
94
|
+
}>>;
|
|
95
|
+
}, $strip>>;
|
|
96
|
+
}, $strip>>;
|
|
97
|
+
}, $loose>>;
|
|
62
98
|
providerMetadata: ZodOptional<ZodObject<{
|
|
63
99
|
cossistant: ZodOptional<ZodObject<{
|
|
64
100
|
visibility: ZodOptional<ZodEnum<{
|
|
@@ -67,6 +103,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
67
103
|
}>>;
|
|
68
104
|
progressMessage: ZodOptional<ZodString>;
|
|
69
105
|
knowledgeId: ZodOptional<ZodString>;
|
|
106
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
107
|
+
logType: ZodEnum<{
|
|
108
|
+
log: "log";
|
|
109
|
+
customer_facing: "customer_facing";
|
|
110
|
+
decision: "decision";
|
|
111
|
+
}>;
|
|
112
|
+
triggerMessageId: ZodString;
|
|
113
|
+
workflowRunId: ZodString;
|
|
114
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
115
|
+
public: "public";
|
|
116
|
+
private: "private";
|
|
117
|
+
}>>;
|
|
118
|
+
}, $strip>>;
|
|
70
119
|
}, $strip>>;
|
|
71
120
|
}, $loose>>;
|
|
72
121
|
}, $strip>, ZodObject<{
|
|
@@ -82,6 +131,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
82
131
|
}>>;
|
|
83
132
|
progressMessage: ZodOptional<ZodString>;
|
|
84
133
|
knowledgeId: ZodOptional<ZodString>;
|
|
134
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
135
|
+
logType: ZodEnum<{
|
|
136
|
+
log: "log";
|
|
137
|
+
customer_facing: "customer_facing";
|
|
138
|
+
decision: "decision";
|
|
139
|
+
}>;
|
|
140
|
+
triggerMessageId: ZodString;
|
|
141
|
+
workflowRunId: ZodString;
|
|
142
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
143
|
+
public: "public";
|
|
144
|
+
private: "private";
|
|
145
|
+
}>>;
|
|
146
|
+
}, $strip>>;
|
|
85
147
|
}, $strip>>;
|
|
86
148
|
}, $loose>>;
|
|
87
149
|
}, $strip>, ZodObject<{
|
|
@@ -98,6 +160,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
98
160
|
}>>;
|
|
99
161
|
progressMessage: ZodOptional<ZodString>;
|
|
100
162
|
knowledgeId: ZodOptional<ZodString>;
|
|
163
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
164
|
+
logType: ZodEnum<{
|
|
165
|
+
log: "log";
|
|
166
|
+
customer_facing: "customer_facing";
|
|
167
|
+
decision: "decision";
|
|
168
|
+
}>;
|
|
169
|
+
triggerMessageId: ZodString;
|
|
170
|
+
workflowRunId: ZodString;
|
|
171
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
172
|
+
public: "public";
|
|
173
|
+
private: "private";
|
|
174
|
+
}>>;
|
|
175
|
+
}, $strip>>;
|
|
101
176
|
}, $strip>>;
|
|
102
177
|
}, $loose>>;
|
|
103
178
|
}, $strip>, ZodObject<{
|
|
@@ -207,6 +282,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
207
282
|
}>>;
|
|
208
283
|
progressMessage: ZodOptional<ZodString>;
|
|
209
284
|
knowledgeId: ZodOptional<ZodString>;
|
|
285
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
286
|
+
logType: ZodEnum<{
|
|
287
|
+
log: "log";
|
|
288
|
+
customer_facing: "customer_facing";
|
|
289
|
+
decision: "decision";
|
|
290
|
+
}>;
|
|
291
|
+
triggerMessageId: ZodString;
|
|
292
|
+
workflowRunId: ZodString;
|
|
293
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
294
|
+
public: "public";
|
|
295
|
+
private: "private";
|
|
296
|
+
}>>;
|
|
297
|
+
}, $strip>>;
|
|
210
298
|
}, $strip>>;
|
|
211
299
|
}, $loose>>;
|
|
212
300
|
}, $strip>, ZodObject<{
|
|
@@ -216,11 +304,34 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
216
304
|
input: ZodRecord<ZodString, ZodUnknown>;
|
|
217
305
|
output: ZodOptional<ZodUnknown>;
|
|
218
306
|
state: ZodEnum<{
|
|
219
|
-
error: "error";
|
|
220
307
|
result: "result";
|
|
308
|
+
error: "error";
|
|
221
309
|
partial: "partial";
|
|
222
310
|
}>;
|
|
223
311
|
errorText: ZodOptional<ZodString>;
|
|
312
|
+
callProviderMetadata: ZodOptional<ZodObject<{
|
|
313
|
+
cossistant: ZodOptional<ZodObject<{
|
|
314
|
+
visibility: ZodOptional<ZodEnum<{
|
|
315
|
+
public: "public";
|
|
316
|
+
private: "private";
|
|
317
|
+
}>>;
|
|
318
|
+
progressMessage: ZodOptional<ZodString>;
|
|
319
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
320
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
321
|
+
logType: ZodEnum<{
|
|
322
|
+
log: "log";
|
|
323
|
+
customer_facing: "customer_facing";
|
|
324
|
+
decision: "decision";
|
|
325
|
+
}>;
|
|
326
|
+
triggerMessageId: ZodString;
|
|
327
|
+
workflowRunId: ZodString;
|
|
328
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
329
|
+
public: "public";
|
|
330
|
+
private: "private";
|
|
331
|
+
}>>;
|
|
332
|
+
}, $strip>>;
|
|
333
|
+
}, $strip>>;
|
|
334
|
+
}, $loose>>;
|
|
224
335
|
providerMetadata: ZodOptional<ZodObject<{
|
|
225
336
|
cossistant: ZodOptional<ZodObject<{
|
|
226
337
|
visibility: ZodOptional<ZodEnum<{
|
|
@@ -229,6 +340,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
229
340
|
}>>;
|
|
230
341
|
progressMessage: ZodOptional<ZodString>;
|
|
231
342
|
knowledgeId: ZodOptional<ZodString>;
|
|
343
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
344
|
+
logType: ZodEnum<{
|
|
345
|
+
log: "log";
|
|
346
|
+
customer_facing: "customer_facing";
|
|
347
|
+
decision: "decision";
|
|
348
|
+
}>;
|
|
349
|
+
triggerMessageId: ZodString;
|
|
350
|
+
workflowRunId: ZodString;
|
|
351
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
352
|
+
public: "public";
|
|
353
|
+
private: "private";
|
|
354
|
+
}>>;
|
|
355
|
+
}, $strip>>;
|
|
232
356
|
}, $strip>>;
|
|
233
357
|
}, $loose>>;
|
|
234
358
|
}, $strip>, ZodObject<{
|
|
@@ -244,6 +368,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
244
368
|
}>>;
|
|
245
369
|
progressMessage: ZodOptional<ZodString>;
|
|
246
370
|
knowledgeId: ZodOptional<ZodString>;
|
|
371
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
372
|
+
logType: ZodEnum<{
|
|
373
|
+
log: "log";
|
|
374
|
+
customer_facing: "customer_facing";
|
|
375
|
+
decision: "decision";
|
|
376
|
+
}>;
|
|
377
|
+
triggerMessageId: ZodString;
|
|
378
|
+
workflowRunId: ZodString;
|
|
379
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
380
|
+
public: "public";
|
|
381
|
+
private: "private";
|
|
382
|
+
}>>;
|
|
383
|
+
}, $strip>>;
|
|
247
384
|
}, $strip>>;
|
|
248
385
|
}, $loose>>;
|
|
249
386
|
}, $strip>, ZodObject<{
|
|
@@ -260,6 +397,19 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
260
397
|
}>>;
|
|
261
398
|
progressMessage: ZodOptional<ZodString>;
|
|
262
399
|
knowledgeId: ZodOptional<ZodString>;
|
|
400
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
401
|
+
logType: ZodEnum<{
|
|
402
|
+
log: "log";
|
|
403
|
+
customer_facing: "customer_facing";
|
|
404
|
+
decision: "decision";
|
|
405
|
+
}>;
|
|
406
|
+
triggerMessageId: ZodString;
|
|
407
|
+
workflowRunId: ZodString;
|
|
408
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
409
|
+
public: "public";
|
|
410
|
+
private: "private";
|
|
411
|
+
}>>;
|
|
412
|
+
}, $strip>>;
|
|
263
413
|
}, $strip>>;
|
|
264
414
|
}, $loose>>;
|
|
265
415
|
}, $strip>, ZodObject<{
|
|
@@ -391,6 +541,19 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
391
541
|
}>>;
|
|
392
542
|
progressMessage: ZodOptional<ZodString>;
|
|
393
543
|
knowledgeId: ZodOptional<ZodString>;
|
|
544
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
545
|
+
logType: ZodEnum<{
|
|
546
|
+
log: "log";
|
|
547
|
+
customer_facing: "customer_facing";
|
|
548
|
+
decision: "decision";
|
|
549
|
+
}>;
|
|
550
|
+
triggerMessageId: ZodString;
|
|
551
|
+
workflowRunId: ZodString;
|
|
552
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
553
|
+
public: "public";
|
|
554
|
+
private: "private";
|
|
555
|
+
}>>;
|
|
556
|
+
}, $strip>>;
|
|
394
557
|
}, $strip>>;
|
|
395
558
|
}, $loose>>;
|
|
396
559
|
}, $strip>, ZodObject<{
|
|
@@ -400,11 +563,34 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
400
563
|
input: ZodRecord<ZodString, ZodUnknown>;
|
|
401
564
|
output: ZodOptional<ZodUnknown>;
|
|
402
565
|
state: ZodEnum<{
|
|
403
|
-
error: "error";
|
|
404
566
|
result: "result";
|
|
567
|
+
error: "error";
|
|
405
568
|
partial: "partial";
|
|
406
569
|
}>;
|
|
407
570
|
errorText: ZodOptional<ZodString>;
|
|
571
|
+
callProviderMetadata: ZodOptional<ZodObject<{
|
|
572
|
+
cossistant: ZodOptional<ZodObject<{
|
|
573
|
+
visibility: ZodOptional<ZodEnum<{
|
|
574
|
+
public: "public";
|
|
575
|
+
private: "private";
|
|
576
|
+
}>>;
|
|
577
|
+
progressMessage: ZodOptional<ZodString>;
|
|
578
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
579
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
580
|
+
logType: ZodEnum<{
|
|
581
|
+
log: "log";
|
|
582
|
+
customer_facing: "customer_facing";
|
|
583
|
+
decision: "decision";
|
|
584
|
+
}>;
|
|
585
|
+
triggerMessageId: ZodString;
|
|
586
|
+
workflowRunId: ZodString;
|
|
587
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
588
|
+
public: "public";
|
|
589
|
+
private: "private";
|
|
590
|
+
}>>;
|
|
591
|
+
}, $strip>>;
|
|
592
|
+
}, $strip>>;
|
|
593
|
+
}, $loose>>;
|
|
408
594
|
providerMetadata: ZodOptional<ZodObject<{
|
|
409
595
|
cossistant: ZodOptional<ZodObject<{
|
|
410
596
|
visibility: ZodOptional<ZodEnum<{
|
|
@@ -413,6 +599,19 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
413
599
|
}>>;
|
|
414
600
|
progressMessage: ZodOptional<ZodString>;
|
|
415
601
|
knowledgeId: ZodOptional<ZodString>;
|
|
602
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
603
|
+
logType: ZodEnum<{
|
|
604
|
+
log: "log";
|
|
605
|
+
customer_facing: "customer_facing";
|
|
606
|
+
decision: "decision";
|
|
607
|
+
}>;
|
|
608
|
+
triggerMessageId: ZodString;
|
|
609
|
+
workflowRunId: ZodString;
|
|
610
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
611
|
+
public: "public";
|
|
612
|
+
private: "private";
|
|
613
|
+
}>>;
|
|
614
|
+
}, $strip>>;
|
|
416
615
|
}, $strip>>;
|
|
417
616
|
}, $loose>>;
|
|
418
617
|
}, $strip>, ZodObject<{
|
|
@@ -428,6 +627,19 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
428
627
|
}>>;
|
|
429
628
|
progressMessage: ZodOptional<ZodString>;
|
|
430
629
|
knowledgeId: ZodOptional<ZodString>;
|
|
630
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
631
|
+
logType: ZodEnum<{
|
|
632
|
+
log: "log";
|
|
633
|
+
customer_facing: "customer_facing";
|
|
634
|
+
decision: "decision";
|
|
635
|
+
}>;
|
|
636
|
+
triggerMessageId: ZodString;
|
|
637
|
+
workflowRunId: ZodString;
|
|
638
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
639
|
+
public: "public";
|
|
640
|
+
private: "private";
|
|
641
|
+
}>>;
|
|
642
|
+
}, $strip>>;
|
|
431
643
|
}, $strip>>;
|
|
432
644
|
}, $loose>>;
|
|
433
645
|
}, $strip>, ZodObject<{
|
|
@@ -444,6 +656,19 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
444
656
|
}>>;
|
|
445
657
|
progressMessage: ZodOptional<ZodString>;
|
|
446
658
|
knowledgeId: ZodOptional<ZodString>;
|
|
659
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
660
|
+
logType: ZodEnum<{
|
|
661
|
+
log: "log";
|
|
662
|
+
customer_facing: "customer_facing";
|
|
663
|
+
decision: "decision";
|
|
664
|
+
}>;
|
|
665
|
+
triggerMessageId: ZodString;
|
|
666
|
+
workflowRunId: ZodString;
|
|
667
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
668
|
+
public: "public";
|
|
669
|
+
private: "private";
|
|
670
|
+
}>>;
|
|
671
|
+
}, $strip>>;
|
|
447
672
|
}, $strip>>;
|
|
448
673
|
}, $loose>>;
|
|
449
674
|
}, $strip>, ZodObject<{
|
|
@@ -568,6 +793,19 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
568
793
|
}>>;
|
|
569
794
|
progressMessage: ZodOptional<ZodString>;
|
|
570
795
|
knowledgeId: ZodOptional<ZodString>;
|
|
796
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
797
|
+
logType: ZodEnum<{
|
|
798
|
+
log: "log";
|
|
799
|
+
customer_facing: "customer_facing";
|
|
800
|
+
decision: "decision";
|
|
801
|
+
}>;
|
|
802
|
+
triggerMessageId: ZodString;
|
|
803
|
+
workflowRunId: ZodString;
|
|
804
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
805
|
+
public: "public";
|
|
806
|
+
private: "private";
|
|
807
|
+
}>>;
|
|
808
|
+
}, $strip>>;
|
|
571
809
|
}, $strip>>;
|
|
572
810
|
}, $loose>>;
|
|
573
811
|
}, $strip>, ZodObject<{
|
|
@@ -577,11 +815,34 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
577
815
|
input: ZodRecord<ZodString, ZodUnknown>;
|
|
578
816
|
output: ZodOptional<ZodUnknown>;
|
|
579
817
|
state: ZodEnum<{
|
|
580
|
-
error: "error";
|
|
581
818
|
result: "result";
|
|
819
|
+
error: "error";
|
|
582
820
|
partial: "partial";
|
|
583
821
|
}>;
|
|
584
822
|
errorText: ZodOptional<ZodString>;
|
|
823
|
+
callProviderMetadata: ZodOptional<ZodObject<{
|
|
824
|
+
cossistant: ZodOptional<ZodObject<{
|
|
825
|
+
visibility: ZodOptional<ZodEnum<{
|
|
826
|
+
public: "public";
|
|
827
|
+
private: "private";
|
|
828
|
+
}>>;
|
|
829
|
+
progressMessage: ZodOptional<ZodString>;
|
|
830
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
831
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
832
|
+
logType: ZodEnum<{
|
|
833
|
+
log: "log";
|
|
834
|
+
customer_facing: "customer_facing";
|
|
835
|
+
decision: "decision";
|
|
836
|
+
}>;
|
|
837
|
+
triggerMessageId: ZodString;
|
|
838
|
+
workflowRunId: ZodString;
|
|
839
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
840
|
+
public: "public";
|
|
841
|
+
private: "private";
|
|
842
|
+
}>>;
|
|
843
|
+
}, $strip>>;
|
|
844
|
+
}, $strip>>;
|
|
845
|
+
}, $loose>>;
|
|
585
846
|
providerMetadata: ZodOptional<ZodObject<{
|
|
586
847
|
cossistant: ZodOptional<ZodObject<{
|
|
587
848
|
visibility: ZodOptional<ZodEnum<{
|
|
@@ -590,6 +851,19 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
590
851
|
}>>;
|
|
591
852
|
progressMessage: ZodOptional<ZodString>;
|
|
592
853
|
knowledgeId: ZodOptional<ZodString>;
|
|
854
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
855
|
+
logType: ZodEnum<{
|
|
856
|
+
log: "log";
|
|
857
|
+
customer_facing: "customer_facing";
|
|
858
|
+
decision: "decision";
|
|
859
|
+
}>;
|
|
860
|
+
triggerMessageId: ZodString;
|
|
861
|
+
workflowRunId: ZodString;
|
|
862
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
863
|
+
public: "public";
|
|
864
|
+
private: "private";
|
|
865
|
+
}>>;
|
|
866
|
+
}, $strip>>;
|
|
593
867
|
}, $strip>>;
|
|
594
868
|
}, $loose>>;
|
|
595
869
|
}, $strip>, ZodObject<{
|
|
@@ -605,6 +879,19 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
605
879
|
}>>;
|
|
606
880
|
progressMessage: ZodOptional<ZodString>;
|
|
607
881
|
knowledgeId: ZodOptional<ZodString>;
|
|
882
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
883
|
+
logType: ZodEnum<{
|
|
884
|
+
log: "log";
|
|
885
|
+
customer_facing: "customer_facing";
|
|
886
|
+
decision: "decision";
|
|
887
|
+
}>;
|
|
888
|
+
triggerMessageId: ZodString;
|
|
889
|
+
workflowRunId: ZodString;
|
|
890
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
891
|
+
public: "public";
|
|
892
|
+
private: "private";
|
|
893
|
+
}>>;
|
|
894
|
+
}, $strip>>;
|
|
608
895
|
}, $strip>>;
|
|
609
896
|
}, $loose>>;
|
|
610
897
|
}, $strip>, ZodObject<{
|
|
@@ -621,6 +908,19 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
621
908
|
}>>;
|
|
622
909
|
progressMessage: ZodOptional<ZodString>;
|
|
623
910
|
knowledgeId: ZodOptional<ZodString>;
|
|
911
|
+
toolTimeline: ZodOptional<ZodObject<{
|
|
912
|
+
logType: ZodEnum<{
|
|
913
|
+
log: "log";
|
|
914
|
+
customer_facing: "customer_facing";
|
|
915
|
+
decision: "decision";
|
|
916
|
+
}>;
|
|
917
|
+
triggerMessageId: ZodString;
|
|
918
|
+
workflowRunId: ZodString;
|
|
919
|
+
triggerVisibility: ZodOptional<ZodEnum<{
|
|
920
|
+
public: "public";
|
|
921
|
+
private: "private";
|
|
922
|
+
}>>;
|
|
923
|
+
}, $strip>>;
|
|
624
924
|
}, $strip>>;
|
|
625
925
|
}, $loose>>;
|
|
626
926
|
}, $strip>, ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../../../../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA8Ba,kCAAgC
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../../../../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA8Ba,kCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,KAAA,aAAA,UAAA,CAAA;IAAA,SAAA,WAAA;IASjC,SAAA,WAAA;IAIC,SAAA,WAAA;;;;;;;;;;;;;;MAA8B,cAAA,WAAA;MAAA,UAAA,SAAA,CAAA;QA6B/B,MAAA,EAAA,QAAwB;QAIvB,OAAA,EAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KArCD,8BAAA,GAAiC,cACrC;cAGK,gCAA8B;;;;;;;;;;;;;;;;;KA6B/B,wBAAA,GAA2B,cAC/B;cAGK,iCAA+B;;;;;;;IAAA,SAAA,WAAA;IAAA,MAAA,YAAA,QAAA,CAAA;MAehC,QAAA,EAAA,UAAyB;MAIxB,IAAA,EAAA,MAAA;;;IAA4B,aAAA,aAAA,YAAA,UAAA,CAAA,CAAA;IAAA,eAAA,aAAA,YAAA,UAAA,CAAA,CAAA;IAU7B,SAAA,YAAsB,YAC1B,UAAA,CAAA,CAAA;IAGK,iBAAA,aAMV,YAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAxBS,yBAAA,GAA4B,cAChC;cAGK,8BAA4B;;;AAcC,KAJ9B,sBAAA,GAAyB,MAIK,CAAA,OAHlC,4BAGkC,CAAA;AAAA,cAA7B,6BAA6B,EAAA,SAAA,CAAA;EAQ9B,YAAA,WAAA,CAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAvB,uBAAA,GAA0B,cAC9B"}
|