@cossistant/react 0.0.29 → 0.0.31
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/README.md +3 -1
- package/_virtual/rolldown_runtime.js +9 -23
- package/hooks/index.d.ts +2 -2
- package/hooks/private/store/use-conversations-store.d.ts +2 -0
- package/hooks/private/store/use-conversations-store.d.ts.map +1 -1
- package/hooks/private/store/use-conversations-store.js +15 -8
- package/hooks/private/store/use-conversations-store.js.map +1 -1
- package/hooks/private/store/use-store-selector.d.ts +3 -0
- package/hooks/private/store/use-store-selector.d.ts.map +1 -1
- package/hooks/private/store/use-store-selector.js +4 -8
- package/hooks/private/store/use-store-selector.js.map +1 -1
- package/hooks/private/store/use-website-store.d.ts +3 -1
- package/hooks/private/store/use-website-store.d.ts.map +1 -1
- package/hooks/private/store/use-website-store.js +14 -6
- package/hooks/private/store/use-website-store.js.map +1 -1
- package/hooks/private/use-client-query.d.ts +1 -1
- package/hooks/private/use-client-query.d.ts.map +1 -1
- package/hooks/private/use-client-query.js +1 -0
- package/hooks/private/use-client-query.js.map +1 -1
- package/hooks/private/use-default-messages.d.ts +1 -1
- package/hooks/private/use-grouped-messages.d.ts +2 -2
- package/hooks/private/use-grouped-messages.d.ts.map +1 -1
- package/hooks/private/use-grouped-messages.js +34 -10
- package/hooks/private/use-grouped-messages.js.map +1 -1
- package/hooks/private/use-rest-client.d.ts +13 -3
- package/hooks/private/use-rest-client.d.ts.map +1 -1
- package/hooks/private/use-rest-client.js +49 -22
- package/hooks/private/use-rest-client.js.map +1 -1
- package/hooks/private/use-visitor-typing-reporter.d.ts +1 -1
- package/hooks/use-conversation-auto-seen.d.ts +1 -1
- package/hooks/use-conversation-page.d.ts +1 -1
- package/hooks/use-conversation-page.d.ts.map +1 -1
- package/hooks/use-conversation-page.js +13 -4
- package/hooks/use-conversation-page.js.map +1 -1
- package/hooks/use-conversation-preview.d.ts +3 -1
- package/hooks/use-conversation-preview.d.ts.map +1 -1
- package/hooks/use-conversation-preview.js +8 -4
- package/hooks/use-conversation-preview.js.map +1 -1
- package/hooks/use-conversation-seen.d.ts +1 -1
- package/hooks/use-conversation-timeline-items.d.ts +1 -1
- package/hooks/use-conversation-timeline-items.js +2 -3
- package/hooks/use-conversation-timeline-items.js.map +1 -1
- package/hooks/use-conversation-timeline.d.ts +1 -1
- package/hooks/use-conversation.d.ts +1 -1
- package/hooks/use-conversation.js +2 -3
- package/hooks/use-conversation.js.map +1 -1
- package/hooks/use-conversations.d.ts +1 -1
- package/hooks/use-conversations.js +5 -3
- package/hooks/use-conversations.js.map +1 -1
- package/hooks/use-create-conversation.d.ts +3 -3
- package/hooks/use-create-conversation.js +1 -0
- package/hooks/use-create-conversation.js.map +1 -1
- package/hooks/use-file-upload.d.ts +1 -1
- package/hooks/use-file-upload.js +3 -3
- package/hooks/use-file-upload.js.map +1 -1
- package/hooks/use-home-page.js +3 -3
- package/hooks/use-home-page.js.map +1 -1
- package/hooks/use-message-composer.d.ts +10 -3
- package/hooks/use-message-composer.d.ts.map +1 -1
- package/hooks/use-message-composer.js +5 -2
- package/hooks/use-message-composer.js.map +1 -1
- package/hooks/use-realtime-support.d.ts +1 -1
- package/hooks/use-send-message.d.ts +8 -2
- package/hooks/use-send-message.d.ts.map +1 -1
- package/hooks/use-send-message.js +5 -3
- package/hooks/use-send-message.js.map +1 -1
- package/hooks/use-visitor.js +2 -2
- package/hooks/use-visitor.js.map +1 -1
- package/identify-visitor.d.ts.map +1 -1
- package/identify-visitor.js +15 -1
- package/identify-visitor.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/package.json +6 -3
- package/{conversation.d.ts → packages/types/src/api/conversation.d.ts} +374 -64
- package/packages/types/src/api/conversation.d.ts.map +1 -0
- package/packages/types/src/api/timeline-item.d.ts +460 -0
- package/packages/types/src/api/timeline-item.d.ts.map +1 -0
- package/{realtime-events.d.ts → packages/types/src/realtime-events.d.ts} +449 -47
- package/packages/types/src/realtime-events.d.ts.map +1 -0
- package/{schemas3.d.ts → packages/types/src/schemas.d.ts} +97 -19
- package/packages/types/src/schemas.d.ts.map +1 -0
- package/primitives/avatar/avatar.js +1 -1
- package/primitives/avatar/avatar.js.map +1 -1
- package/primitives/avatar/fallback.js +1 -1
- package/primitives/avatar/fallback.js.map +1 -1
- package/primitives/avatar/image.js +1 -1
- package/primitives/avatar/image.js.map +1 -1
- package/primitives/button.js +1 -1
- package/primitives/button.js.map +1 -1
- package/primitives/conversation-timeline.d.ts +1 -1
- package/primitives/conversation-timeline.js +4 -4
- package/primitives/conversation-timeline.js.map +1 -1
- package/primitives/day-separator.js +3 -3
- package/primitives/day-separator.js.map +1 -1
- package/primitives/multimodal-input.d.ts +2 -2
- package/primitives/multimodal-input.d.ts.map +1 -1
- package/primitives/multimodal-input.js +2 -2
- package/primitives/multimodal-input.js.map +1 -1
- package/primitives/timeline-item-attachments.d.ts +1 -1
- package/primitives/timeline-item-attachments.js +6 -7
- package/primitives/timeline-item-attachments.js.map +1 -1
- package/primitives/timeline-item-group.d.ts +1 -1
- package/primitives/timeline-item-group.js +7 -7
- package/primitives/timeline-item-group.js.map +1 -1
- package/primitives/timeline-item.d.ts +1 -1
- package/primitives/timeline-item.d.ts.map +1 -1
- package/primitives/timeline-item.js +54 -14
- package/primitives/timeline-item.js.map +1 -1
- package/primitives/trigger.js +1 -1
- package/primitives/trigger.js.map +1 -1
- package/primitives/window.js +1 -1
- package/primitives/window.js.map +1 -1
- package/provider.d.ts +4 -2
- package/provider.d.ts.map +1 -1
- package/provider.js +56 -8
- package/provider.js.map +1 -1
- package/realtime/event-filter.d.ts +4 -1
- package/realtime/event-filter.d.ts.map +1 -1
- package/realtime/event-filter.js +14 -0
- package/realtime/event-filter.js.map +1 -1
- package/realtime/provider.d.ts +1 -1
- package/realtime/provider.d.ts.map +1 -1
- package/realtime/provider.js +1 -2
- package/realtime/provider.js.map +1 -1
- package/realtime/seen-store.d.ts +2 -2
- package/realtime/support-provider.js +3 -2
- package/realtime/support-provider.js.map +1 -1
- package/realtime/typing-store.d.ts +1 -1
- package/realtime/use-realtime.d.ts +1 -1
- package/support/components/avatar-stack.d.ts.map +1 -1
- package/support/components/avatar-stack.js +32 -12
- package/support/components/avatar-stack.js.map +1 -1
- package/support/components/avatar.d.ts +34 -3
- package/support/components/avatar.d.ts.map +1 -1
- package/support/components/avatar.js +61 -8
- package/support/components/avatar.js.map +1 -1
- package/support/components/button.d.ts +4 -2
- package/support/components/button.d.ts.map +1 -1
- package/support/components/button.js +3 -3
- package/support/components/button.js.map +1 -1
- package/support/components/configuration-error.d.ts +16 -0
- package/support/components/configuration-error.d.ts.map +1 -0
- package/support/components/configuration-error.js +162 -0
- package/support/components/configuration-error.js.map +1 -0
- package/support/components/content.js +1 -2
- package/support/components/content.js.map +1 -1
- package/support/components/conversation-button-link.js +18 -23
- package/support/components/conversation-button-link.js.map +1 -1
- package/support/components/conversation-event.d.ts.map +1 -1
- package/support/components/conversation-event.js +7 -5
- package/support/components/conversation-event.js.map +1 -1
- package/support/components/conversation-resolved-feedback.d.ts +21 -0
- package/support/components/conversation-resolved-feedback.d.ts.map +1 -0
- package/support/components/conversation-resolved-feedback.js +59 -0
- package/support/components/conversation-resolved-feedback.js.map +1 -0
- package/support/components/conversation-timeline-utils.d.ts +5 -0
- package/support/components/conversation-timeline-utils.d.ts.map +1 -0
- package/support/components/conversation-timeline-utils.js +10 -0
- package/support/components/conversation-timeline-utils.js.map +1 -0
- package/support/components/conversation-timeline.d.ts +1 -1
- package/support/components/conversation-timeline.d.ts.map +1 -1
- package/support/components/conversation-timeline.js +5 -4
- package/support/components/conversation-timeline.js.map +1 -1
- package/support/components/header.js +1 -1
- package/support/components/icons.d.ts +1 -1
- package/support/components/icons.d.ts.map +1 -1
- package/support/components/icons.js +6 -2
- package/support/components/icons.js.map +1 -1
- package/support/components/image-lightbox.d.ts +1 -1
- package/support/components/image-lightbox.js +1 -2
- package/support/components/image-lightbox.js.map +1 -1
- package/support/components/index.d.ts +2 -1
- package/support/components/index.js +3 -2
- package/support/components/multimodal-input.js +0 -1
- package/support/components/multimodal-input.js.map +1 -1
- package/support/components/navigation-tab.js +1 -1
- package/support/components/online-indicator.d.ts +50 -0
- package/support/components/online-indicator.d.ts.map +1 -0
- package/support/components/online-indicator.js +65 -0
- package/support/components/online-indicator.js.map +1 -0
- package/support/components/root.js +0 -1
- package/support/components/root.js.map +1 -1
- package/support/components/timeline-identification-tool.js +4 -4
- package/support/components/timeline-identification-tool.js.map +1 -1
- package/support/components/timeline-message-group.d.ts +1 -1
- package/support/components/timeline-message-group.d.ts.map +1 -1
- package/support/components/timeline-message-group.js +6 -4
- package/support/components/timeline-message-group.js.map +1 -1
- package/support/components/timeline-message-item.d.ts +1 -1
- package/support/components/timeline-message-item.js +4 -4
- package/support/components/timeline-message-item.js.map +1 -1
- package/support/components/trigger.js +1 -2
- package/support/components/trigger.js.map +1 -1
- package/support/components/typing-indicator.js +1 -1
- package/support/components/typing-indicator.js.map +1 -1
- package/support/context/controlled-state.js +0 -1
- package/support/context/controlled-state.js.map +1 -1
- package/support/context/events.d.ts +1 -1
- package/support/context/events.js +0 -1
- package/support/context/events.js.map +1 -1
- package/support/context/handle.js +0 -1
- package/support/context/handle.js.map +1 -1
- package/support/context/identification.d.ts +33 -0
- package/support/context/identification.d.ts.map +1 -0
- package/support/context/identification.js +34 -0
- package/support/context/identification.js.map +1 -0
- package/support/context/positioning.js +0 -1
- package/support/context/positioning.js.map +1 -1
- package/support/context/slots.js +0 -1
- package/support/context/slots.js.map +1 -1
- package/support/context/websocket.d.ts +1 -1
- package/support/context/websocket.js +0 -1
- package/support/context/websocket.js.map +1 -1
- package/support/index.d.ts.map +1 -1
- package/support/index.js +51 -18
- package/support/index.js.map +1 -1
- package/support/pages/conversation-history.js +2 -1
- package/support/pages/conversation-history.js.map +1 -1
- package/support/pages/conversation.d.ts +1 -1
- package/support/pages/conversation.d.ts.map +1 -1
- package/support/pages/conversation.js +34 -8
- package/support/pages/conversation.js.map +1 -1
- package/support/pages/home.js +5 -3
- package/support/pages/home.js.map +1 -1
- package/support/router.d.ts.map +1 -1
- package/support/router.js +4 -0
- package/support/router.js.map +1 -1
- package/support/store/support-store.js +0 -1
- package/support/store/support-store.js.map +1 -1
- package/support/{support-C7Xaw-N6.css → support-DmViRaga.css} +2 -2
- package/support/{support-C7Xaw-N6.css.map → support-DmViRaga.css.map} +1 -1
- package/support/text/index.js +1 -1
- package/support/text/index.js.map +1 -1
- package/support/text/locales/en.js +10 -1
- package/support/text/locales/en.js.map +1 -1
- package/support/text/locales/es.js +10 -1
- package/support/text/locales/es.js.map +1 -1
- package/support/text/locales/fr.js +10 -1
- package/support/text/locales/fr.js.map +1 -1
- package/support/text/locales/keys.d.ts +11 -0
- package/support/text/locales/keys.d.ts.map +1 -1
- package/support/text/locales/keys.js +3 -0
- package/support/text/locales/keys.js.map +1 -1
- package/support/utils/index.d.ts +1 -1
- package/support-config.js +0 -1
- package/support-config.js.map +1 -1
- package/support.css +1 -1
- package/tailwind.css +1 -1
- package/utils/conversation.d.ts.map +1 -1
- package/utils/conversation.js +1 -3
- package/utils/conversation.js.map +1 -1
- package/utils/use-render-element.js +2 -2
- package/utils/use-render-element.js.map +1 -1
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/clsx.d.ts +0 -7
- package/clsx.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/conversation.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -130
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/json-schema.d.ts +0 -70
- package/json-schema.d.ts.map +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/realtime-events.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas.d.ts +0 -971
- package/schemas.d.ts.map +0 -1
- package/schemas2.d.ts +0 -345
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -121
- package/standard-schema.d.ts.map +0 -1
- package/timeline-item.d.ts +0 -227
- package/timeline-item.d.ts.map +0 -1
- package/to-json-schema.d.ts +0 -96
- package/to-json-schema.d.ts.map +0 -1
- package/util.d.ts +0 -45
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $strip } from "
|
|
2
|
-
import { output } from "
|
|
3
|
-
import { ZodArray, ZodBoolean, ZodDefault, ZodEmail, ZodEnum, ZodLiteral, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion, ZodUnknown } from "
|
|
1
|
+
import { $loose, $strip } from "../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js";
|
|
2
|
+
import { output } from "../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js";
|
|
3
|
+
import { ZodArray, ZodBoolean, ZodDefault, ZodEmail, ZodEnum, ZodLiteral, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion, ZodUnknown } from "../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js";
|
|
4
4
|
|
|
5
5
|
//#region ../types/src/realtime-events.d.ts
|
|
6
6
|
|
|
@@ -57,6 +57,12 @@ declare const realtimeSchema: {
|
|
|
57
57
|
conversationId: ZodString;
|
|
58
58
|
aiAgentId: ZodNullable<ZodString>;
|
|
59
59
|
lastSeenAt: ZodString;
|
|
60
|
+
actorType: ZodEnum<{
|
|
61
|
+
visitor: "visitor";
|
|
62
|
+
user: "user";
|
|
63
|
+
ai_agent: "ai_agent";
|
|
64
|
+
}>;
|
|
65
|
+
actorId: ZodString;
|
|
60
66
|
}, $strip>;
|
|
61
67
|
readonly conversationTyping: ZodObject<{
|
|
62
68
|
websiteId: ZodString;
|
|
@@ -111,10 +117,12 @@ declare const realtimeSchema: {
|
|
|
111
117
|
visitorId: ZodString;
|
|
112
118
|
websiteId: ZodString;
|
|
113
119
|
status: ZodDefault<ZodEnum<{
|
|
114
|
-
open: "open";
|
|
115
120
|
resolved: "resolved";
|
|
121
|
+
open: "open";
|
|
116
122
|
spam: "spam";
|
|
117
123
|
}>>;
|
|
124
|
+
visitorRating: ZodOptional<ZodNullable<ZodNumber>>;
|
|
125
|
+
visitorRatingAt: ZodOptional<ZodNullable<ZodString>>;
|
|
118
126
|
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
119
127
|
visitorLastSeenAt: ZodOptional<ZodNullable<ZodString>>;
|
|
120
128
|
lastTimelineItem: ZodOptional<ZodObject<{
|
|
@@ -135,6 +143,96 @@ declare const realtimeSchema: {
|
|
|
135
143
|
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
136
144
|
type: ZodLiteral<"text">;
|
|
137
145
|
text: ZodString;
|
|
146
|
+
state: ZodOptional<ZodEnum<{
|
|
147
|
+
streaming: "streaming";
|
|
148
|
+
done: "done";
|
|
149
|
+
}>>;
|
|
150
|
+
}, $strip>, ZodObject<{
|
|
151
|
+
type: ZodLiteral<"reasoning">;
|
|
152
|
+
text: ZodString;
|
|
153
|
+
state: ZodOptional<ZodEnum<{
|
|
154
|
+
streaming: "streaming";
|
|
155
|
+
done: "done";
|
|
156
|
+
}>>;
|
|
157
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
158
|
+
cossistant: ZodOptional<ZodObject<{
|
|
159
|
+
visibility: ZodOptional<ZodEnum<{
|
|
160
|
+
public: "public";
|
|
161
|
+
private: "private";
|
|
162
|
+
}>>;
|
|
163
|
+
progressMessage: ZodOptional<ZodString>;
|
|
164
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
165
|
+
}, $strip>>;
|
|
166
|
+
}, $loose>>;
|
|
167
|
+
}, $strip>, ZodObject<{
|
|
168
|
+
type: ZodString;
|
|
169
|
+
toolCallId: ZodString;
|
|
170
|
+
toolName: ZodString;
|
|
171
|
+
input: ZodRecord<ZodString, ZodUnknown>;
|
|
172
|
+
output: ZodOptional<ZodUnknown>;
|
|
173
|
+
state: ZodEnum<{
|
|
174
|
+
error: "error";
|
|
175
|
+
partial: "partial";
|
|
176
|
+
result: "result";
|
|
177
|
+
}>;
|
|
178
|
+
errorText: ZodOptional<ZodString>;
|
|
179
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
180
|
+
cossistant: ZodOptional<ZodObject<{
|
|
181
|
+
visibility: ZodOptional<ZodEnum<{
|
|
182
|
+
public: "public";
|
|
183
|
+
private: "private";
|
|
184
|
+
}>>;
|
|
185
|
+
progressMessage: ZodOptional<ZodString>;
|
|
186
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
187
|
+
}, $strip>>;
|
|
188
|
+
}, $loose>>;
|
|
189
|
+
}, $strip>, ZodObject<{
|
|
190
|
+
type: ZodLiteral<"source-url">;
|
|
191
|
+
sourceId: ZodString;
|
|
192
|
+
url: ZodString;
|
|
193
|
+
title: ZodOptional<ZodString>;
|
|
194
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
195
|
+
cossistant: ZodOptional<ZodObject<{
|
|
196
|
+
visibility: ZodOptional<ZodEnum<{
|
|
197
|
+
public: "public";
|
|
198
|
+
private: "private";
|
|
199
|
+
}>>;
|
|
200
|
+
progressMessage: ZodOptional<ZodString>;
|
|
201
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
202
|
+
}, $strip>>;
|
|
203
|
+
}, $loose>>;
|
|
204
|
+
}, $strip>, ZodObject<{
|
|
205
|
+
type: ZodLiteral<"source-document">;
|
|
206
|
+
sourceId: ZodString;
|
|
207
|
+
mediaType: ZodString;
|
|
208
|
+
title: ZodString;
|
|
209
|
+
filename: ZodOptional<ZodString>;
|
|
210
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
211
|
+
cossistant: ZodOptional<ZodObject<{
|
|
212
|
+
visibility: ZodOptional<ZodEnum<{
|
|
213
|
+
public: "public";
|
|
214
|
+
private: "private";
|
|
215
|
+
}>>;
|
|
216
|
+
progressMessage: ZodOptional<ZodString>;
|
|
217
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
218
|
+
}, $strip>>;
|
|
219
|
+
}, $loose>>;
|
|
220
|
+
}, $strip>, ZodObject<{
|
|
221
|
+
type: ZodLiteral<"step-start">;
|
|
222
|
+
}, $strip>, ZodObject<{
|
|
223
|
+
type: ZodLiteral<"file">;
|
|
224
|
+
url: ZodString;
|
|
225
|
+
mediaType: ZodString;
|
|
226
|
+
filename: ZodOptional<ZodString>;
|
|
227
|
+
size: ZodOptional<ZodNumber>;
|
|
228
|
+
}, $strip>, ZodObject<{
|
|
229
|
+
type: ZodLiteral<"image">;
|
|
230
|
+
url: ZodString;
|
|
231
|
+
mediaType: ZodString;
|
|
232
|
+
filename: ZodOptional<ZodString>;
|
|
233
|
+
size: ZodOptional<ZodNumber>;
|
|
234
|
+
width: ZodOptional<ZodNumber>;
|
|
235
|
+
height: ZodOptional<ZodNumber>;
|
|
138
236
|
}, $strip>, ZodObject<{
|
|
139
237
|
type: ZodLiteral<"event">;
|
|
140
238
|
eventType: ZodEnum<{
|
|
@@ -158,20 +256,6 @@ declare const realtimeSchema: {
|
|
|
158
256
|
targetUserId: ZodNullable<ZodString>;
|
|
159
257
|
targetAiAgentId: ZodNullable<ZodString>;
|
|
160
258
|
message: ZodOptional<ZodNullable<ZodString>>;
|
|
161
|
-
}, $strip>, ZodObject<{
|
|
162
|
-
type: ZodLiteral<"image">;
|
|
163
|
-
url: ZodString;
|
|
164
|
-
mediaType: ZodString;
|
|
165
|
-
fileName: ZodOptional<ZodString>;
|
|
166
|
-
size: ZodOptional<ZodNumber>;
|
|
167
|
-
width: ZodOptional<ZodNumber>;
|
|
168
|
-
height: ZodOptional<ZodNumber>;
|
|
169
|
-
}, $strip>, ZodObject<{
|
|
170
|
-
type: ZodLiteral<"file">;
|
|
171
|
-
url: ZodString;
|
|
172
|
-
mediaType: ZodString;
|
|
173
|
-
fileName: ZodOptional<ZodString>;
|
|
174
|
-
size: ZodOptional<ZodNumber>;
|
|
175
259
|
}, $strip>, ZodObject<{
|
|
176
260
|
type: ZodLiteral<"metadata">;
|
|
177
261
|
source: ZodEnum<{
|
|
@@ -190,8 +274,8 @@ declare const realtimeSchema: {
|
|
|
190
274
|
header: ZodObject<{
|
|
191
275
|
id: ZodString;
|
|
192
276
|
status: ZodEnum<{
|
|
193
|
-
open: "open";
|
|
194
277
|
resolved: "resolved";
|
|
278
|
+
open: "open";
|
|
195
279
|
spam: "spam";
|
|
196
280
|
}>;
|
|
197
281
|
priority: ZodEnum<{
|
|
@@ -220,6 +304,8 @@ declare const realtimeSchema: {
|
|
|
220
304
|
channel: ZodString;
|
|
221
305
|
title: ZodNullable<ZodString>;
|
|
222
306
|
resolutionTime: ZodNullable<ZodNumber>;
|
|
307
|
+
visitorRating: ZodNullable<ZodNumber>;
|
|
308
|
+
visitorRatingAt: ZodNullable<ZodString>;
|
|
223
309
|
startedAt: ZodNullable<ZodString>;
|
|
224
310
|
firstResponseAt: ZodNullable<ZodString>;
|
|
225
311
|
resolvedAt: ZodNullable<ZodString>;
|
|
@@ -254,6 +340,96 @@ declare const realtimeSchema: {
|
|
|
254
340
|
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
255
341
|
type: ZodLiteral<"text">;
|
|
256
342
|
text: ZodString;
|
|
343
|
+
state: ZodOptional<ZodEnum<{
|
|
344
|
+
streaming: "streaming";
|
|
345
|
+
done: "done";
|
|
346
|
+
}>>;
|
|
347
|
+
}, $strip>, ZodObject<{
|
|
348
|
+
type: ZodLiteral<"reasoning">;
|
|
349
|
+
text: ZodString;
|
|
350
|
+
state: ZodOptional<ZodEnum<{
|
|
351
|
+
streaming: "streaming";
|
|
352
|
+
done: "done";
|
|
353
|
+
}>>;
|
|
354
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
355
|
+
cossistant: ZodOptional<ZodObject<{
|
|
356
|
+
visibility: ZodOptional<ZodEnum<{
|
|
357
|
+
public: "public";
|
|
358
|
+
private: "private";
|
|
359
|
+
}>>;
|
|
360
|
+
progressMessage: ZodOptional<ZodString>;
|
|
361
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
362
|
+
}, $strip>>;
|
|
363
|
+
}, $loose>>;
|
|
364
|
+
}, $strip>, ZodObject<{
|
|
365
|
+
type: ZodString;
|
|
366
|
+
toolCallId: ZodString;
|
|
367
|
+
toolName: ZodString;
|
|
368
|
+
input: ZodRecord<ZodString, ZodUnknown>;
|
|
369
|
+
output: ZodOptional<ZodUnknown>;
|
|
370
|
+
state: ZodEnum<{
|
|
371
|
+
error: "error";
|
|
372
|
+
partial: "partial";
|
|
373
|
+
result: "result";
|
|
374
|
+
}>;
|
|
375
|
+
errorText: ZodOptional<ZodString>;
|
|
376
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
377
|
+
cossistant: ZodOptional<ZodObject<{
|
|
378
|
+
visibility: ZodOptional<ZodEnum<{
|
|
379
|
+
public: "public";
|
|
380
|
+
private: "private";
|
|
381
|
+
}>>;
|
|
382
|
+
progressMessage: ZodOptional<ZodString>;
|
|
383
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
384
|
+
}, $strip>>;
|
|
385
|
+
}, $loose>>;
|
|
386
|
+
}, $strip>, ZodObject<{
|
|
387
|
+
type: ZodLiteral<"source-url">;
|
|
388
|
+
sourceId: ZodString;
|
|
389
|
+
url: ZodString;
|
|
390
|
+
title: ZodOptional<ZodString>;
|
|
391
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
392
|
+
cossistant: ZodOptional<ZodObject<{
|
|
393
|
+
visibility: ZodOptional<ZodEnum<{
|
|
394
|
+
public: "public";
|
|
395
|
+
private: "private";
|
|
396
|
+
}>>;
|
|
397
|
+
progressMessage: ZodOptional<ZodString>;
|
|
398
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
399
|
+
}, $strip>>;
|
|
400
|
+
}, $loose>>;
|
|
401
|
+
}, $strip>, ZodObject<{
|
|
402
|
+
type: ZodLiteral<"source-document">;
|
|
403
|
+
sourceId: ZodString;
|
|
404
|
+
mediaType: ZodString;
|
|
405
|
+
title: ZodString;
|
|
406
|
+
filename: ZodOptional<ZodString>;
|
|
407
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
408
|
+
cossistant: ZodOptional<ZodObject<{
|
|
409
|
+
visibility: ZodOptional<ZodEnum<{
|
|
410
|
+
public: "public";
|
|
411
|
+
private: "private";
|
|
412
|
+
}>>;
|
|
413
|
+
progressMessage: ZodOptional<ZodString>;
|
|
414
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
415
|
+
}, $strip>>;
|
|
416
|
+
}, $loose>>;
|
|
417
|
+
}, $strip>, ZodObject<{
|
|
418
|
+
type: ZodLiteral<"step-start">;
|
|
419
|
+
}, $strip>, ZodObject<{
|
|
420
|
+
type: ZodLiteral<"file">;
|
|
421
|
+
url: ZodString;
|
|
422
|
+
mediaType: ZodString;
|
|
423
|
+
filename: ZodOptional<ZodString>;
|
|
424
|
+
size: ZodOptional<ZodNumber>;
|
|
425
|
+
}, $strip>, ZodObject<{
|
|
426
|
+
type: ZodLiteral<"image">;
|
|
427
|
+
url: ZodString;
|
|
428
|
+
mediaType: ZodString;
|
|
429
|
+
filename: ZodOptional<ZodString>;
|
|
430
|
+
size: ZodOptional<ZodNumber>;
|
|
431
|
+
width: ZodOptional<ZodNumber>;
|
|
432
|
+
height: ZodOptional<ZodNumber>;
|
|
257
433
|
}, $strip>, ZodObject<{
|
|
258
434
|
type: ZodLiteral<"event">;
|
|
259
435
|
eventType: ZodEnum<{
|
|
@@ -277,20 +453,6 @@ declare const realtimeSchema: {
|
|
|
277
453
|
targetUserId: ZodNullable<ZodString>;
|
|
278
454
|
targetAiAgentId: ZodNullable<ZodString>;
|
|
279
455
|
message: ZodOptional<ZodNullable<ZodString>>;
|
|
280
|
-
}, $strip>, ZodObject<{
|
|
281
|
-
type: ZodLiteral<"image">;
|
|
282
|
-
url: ZodString;
|
|
283
|
-
mediaType: ZodString;
|
|
284
|
-
fileName: ZodOptional<ZodString>;
|
|
285
|
-
size: ZodOptional<ZodNumber>;
|
|
286
|
-
width: ZodOptional<ZodNumber>;
|
|
287
|
-
height: ZodOptional<ZodNumber>;
|
|
288
|
-
}, $strip>, ZodObject<{
|
|
289
|
-
type: ZodLiteral<"file">;
|
|
290
|
-
url: ZodString;
|
|
291
|
-
mediaType: ZodString;
|
|
292
|
-
fileName: ZodOptional<ZodString>;
|
|
293
|
-
size: ZodOptional<ZodNumber>;
|
|
294
456
|
}, $strip>, ZodObject<{
|
|
295
457
|
type: ZodLiteral<"metadata">;
|
|
296
458
|
source: ZodEnum<{
|
|
@@ -323,6 +485,96 @@ declare const realtimeSchema: {
|
|
|
323
485
|
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
324
486
|
type: ZodLiteral<"text">;
|
|
325
487
|
text: ZodString;
|
|
488
|
+
state: ZodOptional<ZodEnum<{
|
|
489
|
+
streaming: "streaming";
|
|
490
|
+
done: "done";
|
|
491
|
+
}>>;
|
|
492
|
+
}, $strip>, ZodObject<{
|
|
493
|
+
type: ZodLiteral<"reasoning">;
|
|
494
|
+
text: ZodString;
|
|
495
|
+
state: ZodOptional<ZodEnum<{
|
|
496
|
+
streaming: "streaming";
|
|
497
|
+
done: "done";
|
|
498
|
+
}>>;
|
|
499
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
500
|
+
cossistant: ZodOptional<ZodObject<{
|
|
501
|
+
visibility: ZodOptional<ZodEnum<{
|
|
502
|
+
public: "public";
|
|
503
|
+
private: "private";
|
|
504
|
+
}>>;
|
|
505
|
+
progressMessage: ZodOptional<ZodString>;
|
|
506
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
507
|
+
}, $strip>>;
|
|
508
|
+
}, $loose>>;
|
|
509
|
+
}, $strip>, ZodObject<{
|
|
510
|
+
type: ZodString;
|
|
511
|
+
toolCallId: ZodString;
|
|
512
|
+
toolName: ZodString;
|
|
513
|
+
input: ZodRecord<ZodString, ZodUnknown>;
|
|
514
|
+
output: ZodOptional<ZodUnknown>;
|
|
515
|
+
state: ZodEnum<{
|
|
516
|
+
error: "error";
|
|
517
|
+
partial: "partial";
|
|
518
|
+
result: "result";
|
|
519
|
+
}>;
|
|
520
|
+
errorText: ZodOptional<ZodString>;
|
|
521
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
522
|
+
cossistant: ZodOptional<ZodObject<{
|
|
523
|
+
visibility: ZodOptional<ZodEnum<{
|
|
524
|
+
public: "public";
|
|
525
|
+
private: "private";
|
|
526
|
+
}>>;
|
|
527
|
+
progressMessage: ZodOptional<ZodString>;
|
|
528
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
529
|
+
}, $strip>>;
|
|
530
|
+
}, $loose>>;
|
|
531
|
+
}, $strip>, ZodObject<{
|
|
532
|
+
type: ZodLiteral<"source-url">;
|
|
533
|
+
sourceId: ZodString;
|
|
534
|
+
url: ZodString;
|
|
535
|
+
title: ZodOptional<ZodString>;
|
|
536
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
537
|
+
cossistant: ZodOptional<ZodObject<{
|
|
538
|
+
visibility: ZodOptional<ZodEnum<{
|
|
539
|
+
public: "public";
|
|
540
|
+
private: "private";
|
|
541
|
+
}>>;
|
|
542
|
+
progressMessage: ZodOptional<ZodString>;
|
|
543
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
544
|
+
}, $strip>>;
|
|
545
|
+
}, $loose>>;
|
|
546
|
+
}, $strip>, ZodObject<{
|
|
547
|
+
type: ZodLiteral<"source-document">;
|
|
548
|
+
sourceId: ZodString;
|
|
549
|
+
mediaType: ZodString;
|
|
550
|
+
title: ZodString;
|
|
551
|
+
filename: ZodOptional<ZodString>;
|
|
552
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
553
|
+
cossistant: ZodOptional<ZodObject<{
|
|
554
|
+
visibility: ZodOptional<ZodEnum<{
|
|
555
|
+
public: "public";
|
|
556
|
+
private: "private";
|
|
557
|
+
}>>;
|
|
558
|
+
progressMessage: ZodOptional<ZodString>;
|
|
559
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
560
|
+
}, $strip>>;
|
|
561
|
+
}, $loose>>;
|
|
562
|
+
}, $strip>, ZodObject<{
|
|
563
|
+
type: ZodLiteral<"step-start">;
|
|
564
|
+
}, $strip>, ZodObject<{
|
|
565
|
+
type: ZodLiteral<"file">;
|
|
566
|
+
url: ZodString;
|
|
567
|
+
mediaType: ZodString;
|
|
568
|
+
filename: ZodOptional<ZodString>;
|
|
569
|
+
size: ZodOptional<ZodNumber>;
|
|
570
|
+
}, $strip>, ZodObject<{
|
|
571
|
+
type: ZodLiteral<"image">;
|
|
572
|
+
url: ZodString;
|
|
573
|
+
mediaType: ZodString;
|
|
574
|
+
filename: ZodOptional<ZodString>;
|
|
575
|
+
size: ZodOptional<ZodNumber>;
|
|
576
|
+
width: ZodOptional<ZodNumber>;
|
|
577
|
+
height: ZodOptional<ZodNumber>;
|
|
326
578
|
}, $strip>, ZodObject<{
|
|
327
579
|
type: ZodLiteral<"event">;
|
|
328
580
|
eventType: ZodEnum<{
|
|
@@ -346,20 +598,6 @@ declare const realtimeSchema: {
|
|
|
346
598
|
targetUserId: ZodNullable<ZodString>;
|
|
347
599
|
targetAiAgentId: ZodNullable<ZodString>;
|
|
348
600
|
message: ZodOptional<ZodNullable<ZodString>>;
|
|
349
|
-
}, $strip>, ZodObject<{
|
|
350
|
-
type: ZodLiteral<"image">;
|
|
351
|
-
url: ZodString;
|
|
352
|
-
mediaType: ZodString;
|
|
353
|
-
fileName: ZodOptional<ZodString>;
|
|
354
|
-
size: ZodOptional<ZodNumber>;
|
|
355
|
-
width: ZodOptional<ZodNumber>;
|
|
356
|
-
height: ZodOptional<ZodNumber>;
|
|
357
|
-
}, $strip>, ZodObject<{
|
|
358
|
-
type: ZodLiteral<"file">;
|
|
359
|
-
url: ZodString;
|
|
360
|
-
mediaType: ZodString;
|
|
361
|
-
fileName: ZodOptional<ZodString>;
|
|
362
|
-
size: ZodOptional<ZodNumber>;
|
|
363
601
|
}, $strip>, ZodObject<{
|
|
364
602
|
type: ZodLiteral<"metadata">;
|
|
365
603
|
source: ZodEnum<{
|
|
@@ -493,6 +731,125 @@ declare const realtimeSchema: {
|
|
|
493
731
|
}, $strip>;
|
|
494
732
|
aiAgentId: ZodNullable<ZodString>;
|
|
495
733
|
}, $strip>;
|
|
734
|
+
readonly aiAgentProcessingStarted: ZodObject<{
|
|
735
|
+
websiteId: ZodString;
|
|
736
|
+
organizationId: ZodString;
|
|
737
|
+
visitorId: ZodNullable<ZodString>;
|
|
738
|
+
userId: ZodNullable<ZodString>;
|
|
739
|
+
conversationId: ZodString;
|
|
740
|
+
aiAgentId: ZodString;
|
|
741
|
+
workflowRunId: ZodString;
|
|
742
|
+
triggerMessageId: ZodString;
|
|
743
|
+
phase: ZodOptional<ZodString>;
|
|
744
|
+
audience: ZodDefault<ZodEnum<{
|
|
745
|
+
all: "all";
|
|
746
|
+
dashboard: "dashboard";
|
|
747
|
+
}>>;
|
|
748
|
+
}, $strip>;
|
|
749
|
+
readonly aiAgentDecisionMade: ZodObject<{
|
|
750
|
+
websiteId: ZodString;
|
|
751
|
+
organizationId: ZodString;
|
|
752
|
+
visitorId: ZodNullable<ZodString>;
|
|
753
|
+
userId: ZodNullable<ZodString>;
|
|
754
|
+
conversationId: ZodString;
|
|
755
|
+
aiAgentId: ZodString;
|
|
756
|
+
workflowRunId: ZodString;
|
|
757
|
+
shouldAct: ZodBoolean;
|
|
758
|
+
reason: ZodString;
|
|
759
|
+
mode: ZodEnum<{
|
|
760
|
+
respond_to_visitor: "respond_to_visitor";
|
|
761
|
+
respond_to_command: "respond_to_command";
|
|
762
|
+
background_only: "background_only";
|
|
763
|
+
}>;
|
|
764
|
+
audience: ZodEnum<{
|
|
765
|
+
all: "all";
|
|
766
|
+
dashboard: "dashboard";
|
|
767
|
+
}>;
|
|
768
|
+
}, $strip>;
|
|
769
|
+
readonly aiAgentProcessingProgress: ZodObject<{
|
|
770
|
+
websiteId: ZodString;
|
|
771
|
+
organizationId: ZodString;
|
|
772
|
+
visitorId: ZodNullable<ZodString>;
|
|
773
|
+
userId: ZodNullable<ZodString>;
|
|
774
|
+
conversationId: ZodString;
|
|
775
|
+
aiAgentId: ZodString;
|
|
776
|
+
workflowRunId: ZodString;
|
|
777
|
+
phase: ZodString;
|
|
778
|
+
message: ZodNullable<ZodString>;
|
|
779
|
+
tool: ZodOptional<ZodObject<{
|
|
780
|
+
toolCallId: ZodString;
|
|
781
|
+
toolName: ZodString;
|
|
782
|
+
state: ZodEnum<{
|
|
783
|
+
error: "error";
|
|
784
|
+
partial: "partial";
|
|
785
|
+
result: "result";
|
|
786
|
+
}>;
|
|
787
|
+
}, $strip>>;
|
|
788
|
+
audience: ZodDefault<ZodEnum<{
|
|
789
|
+
all: "all";
|
|
790
|
+
dashboard: "dashboard";
|
|
791
|
+
}>>;
|
|
792
|
+
}, $strip>;
|
|
793
|
+
readonly aiAgentProcessingCompleted: ZodObject<{
|
|
794
|
+
websiteId: ZodString;
|
|
795
|
+
organizationId: ZodString;
|
|
796
|
+
visitorId: ZodNullable<ZodString>;
|
|
797
|
+
userId: ZodNullable<ZodString>;
|
|
798
|
+
conversationId: ZodString;
|
|
799
|
+
aiAgentId: ZodString;
|
|
800
|
+
workflowRunId: ZodString;
|
|
801
|
+
status: ZodEnum<{
|
|
802
|
+
success: "success";
|
|
803
|
+
error: "error";
|
|
804
|
+
skipped: "skipped";
|
|
805
|
+
cancelled: "cancelled";
|
|
806
|
+
}>;
|
|
807
|
+
action: ZodOptional<ZodNullable<ZodString>>;
|
|
808
|
+
reason: ZodOptional<ZodNullable<ZodString>>;
|
|
809
|
+
audience: ZodDefault<ZodEnum<{
|
|
810
|
+
all: "all";
|
|
811
|
+
dashboard: "dashboard";
|
|
812
|
+
}>>;
|
|
813
|
+
}, $strip>;
|
|
814
|
+
readonly timelineItemUpdated: ZodObject<{
|
|
815
|
+
websiteId: ZodString;
|
|
816
|
+
organizationId: ZodString;
|
|
817
|
+
visitorId: ZodNullable<ZodString>;
|
|
818
|
+
userId: ZodNullable<ZodString>;
|
|
819
|
+
conversationId: ZodString;
|
|
820
|
+
item: ZodObject<{
|
|
821
|
+
id: ZodString;
|
|
822
|
+
conversationId: ZodString;
|
|
823
|
+
organizationId: ZodString;
|
|
824
|
+
visibility: ZodEnum<{
|
|
825
|
+
public: "public";
|
|
826
|
+
private: "private";
|
|
827
|
+
}>;
|
|
828
|
+
type: ZodEnum<{
|
|
829
|
+
message: "message";
|
|
830
|
+
event: "event";
|
|
831
|
+
identification: "identification";
|
|
832
|
+
}>;
|
|
833
|
+
text: ZodNullable<ZodString>;
|
|
834
|
+
parts: ZodArray<ZodUnknown>;
|
|
835
|
+
userId: ZodNullable<ZodString>;
|
|
836
|
+
visitorId: ZodNullable<ZodString>;
|
|
837
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
838
|
+
createdAt: ZodString;
|
|
839
|
+
deletedAt: ZodNullable<ZodString>;
|
|
840
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
841
|
+
}, $strip>;
|
|
842
|
+
}, $strip>;
|
|
843
|
+
readonly timelineItemPartUpdated: ZodObject<{
|
|
844
|
+
websiteId: ZodString;
|
|
845
|
+
organizationId: ZodString;
|
|
846
|
+
visitorId: ZodNullable<ZodString>;
|
|
847
|
+
userId: ZodNullable<ZodString>;
|
|
848
|
+
conversationId: ZodString;
|
|
849
|
+
timelineItemId: ZodString;
|
|
850
|
+
partIndex: ZodNumber;
|
|
851
|
+
part: ZodUnknown;
|
|
852
|
+
}, $strip>;
|
|
496
853
|
readonly crawlStarted: ZodObject<{
|
|
497
854
|
websiteId: ZodString;
|
|
498
855
|
organizationId: ZodString;
|
|
@@ -592,6 +949,51 @@ declare const realtimeSchema: {
|
|
|
592
949
|
knowledgeId: ZodString;
|
|
593
950
|
}, $strip>;
|
|
594
951
|
}, $strip>;
|
|
952
|
+
readonly trainingStarted: ZodObject<{
|
|
953
|
+
websiteId: ZodString;
|
|
954
|
+
organizationId: ZodString;
|
|
955
|
+
visitorId: ZodNullable<ZodString>;
|
|
956
|
+
userId: ZodNullable<ZodString>;
|
|
957
|
+
aiAgentId: ZodString;
|
|
958
|
+
totalItems: ZodNumber;
|
|
959
|
+
}, $strip>;
|
|
960
|
+
readonly trainingProgress: ZodObject<{
|
|
961
|
+
websiteId: ZodString;
|
|
962
|
+
organizationId: ZodString;
|
|
963
|
+
visitorId: ZodNullable<ZodString>;
|
|
964
|
+
userId: ZodNullable<ZodString>;
|
|
965
|
+
aiAgentId: ZodString;
|
|
966
|
+
processedItems: ZodNumber;
|
|
967
|
+
totalItems: ZodNumber;
|
|
968
|
+
currentItem: ZodOptional<ZodObject<{
|
|
969
|
+
id: ZodString;
|
|
970
|
+
title: ZodNullable<ZodString>;
|
|
971
|
+
type: ZodEnum<{
|
|
972
|
+
url: "url";
|
|
973
|
+
article: "article";
|
|
974
|
+
faq: "faq";
|
|
975
|
+
}>;
|
|
976
|
+
}, $strip>>;
|
|
977
|
+
percentage: ZodNumber;
|
|
978
|
+
}, $strip>;
|
|
979
|
+
readonly trainingCompleted: ZodObject<{
|
|
980
|
+
websiteId: ZodString;
|
|
981
|
+
organizationId: ZodString;
|
|
982
|
+
visitorId: ZodNullable<ZodString>;
|
|
983
|
+
userId: ZodNullable<ZodString>;
|
|
984
|
+
aiAgentId: ZodString;
|
|
985
|
+
totalItems: ZodNumber;
|
|
986
|
+
totalChunks: ZodNumber;
|
|
987
|
+
duration: ZodNumber;
|
|
988
|
+
}, $strip>;
|
|
989
|
+
readonly trainingFailed: ZodObject<{
|
|
990
|
+
websiteId: ZodString;
|
|
991
|
+
organizationId: ZodString;
|
|
992
|
+
visitorId: ZodNullable<ZodString>;
|
|
993
|
+
userId: ZodNullable<ZodString>;
|
|
994
|
+
aiAgentId: ZodString;
|
|
995
|
+
error: ZodString;
|
|
996
|
+
}, $strip>;
|
|
595
997
|
};
|
|
596
998
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
597
999
|
type RealtimeEventPayload<T extends RealtimeEventType> = output<(typeof realtimeSchema)[T]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../../../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAqBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8VD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB"}
|