@cossistant/react 0.0.29 → 0.0.30
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/_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-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 +10 -3
- 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 +6 -3
- 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 +5 -3
- package/{conversation.d.ts → packages/types/src/api/conversation.d.ts} +365 -61
- 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} +443 -45
- package/packages/types/src/realtime-events.d.ts.map +1 -0
- package/{schemas3.d.ts → packages/types/src/schemas.d.ts} +94 -18
- 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.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 +33 -8
- 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 +3 -1
- 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-timeline.d.ts +1 -1
- package/support/components/conversation-timeline.js +3 -3
- package/support/components/conversation-timeline.js.map +1 -1
- package/support/components/header.js +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.js +1 -1
- 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.js +1 -1
- 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 +1 -1
- package/support/text/locales/en.js.map +1 -1
- package/support/text/locales/es.js +1 -1
- package/support/text/locales/es.js.map +1 -1
- package/support/text/locales/fr.js +1 -1
- package/support/text/locales/fr.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
|
+
user: "user";
|
|
62
|
+
visitor: "visitor";
|
|
63
|
+
ai_agent: "ai_agent";
|
|
64
|
+
}>;
|
|
65
|
+
actorId: ZodString;
|
|
60
66
|
}, $strip>;
|
|
61
67
|
readonly conversationTyping: ZodObject<{
|
|
62
68
|
websiteId: ZodString;
|
|
@@ -135,6 +141,96 @@ declare const realtimeSchema: {
|
|
|
135
141
|
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
136
142
|
type: ZodLiteral<"text">;
|
|
137
143
|
text: ZodString;
|
|
144
|
+
state: ZodOptional<ZodEnum<{
|
|
145
|
+
done: "done";
|
|
146
|
+
streaming: "streaming";
|
|
147
|
+
}>>;
|
|
148
|
+
}, $strip>, ZodObject<{
|
|
149
|
+
type: ZodLiteral<"reasoning">;
|
|
150
|
+
text: ZodString;
|
|
151
|
+
state: ZodOptional<ZodEnum<{
|
|
152
|
+
done: "done";
|
|
153
|
+
streaming: "streaming";
|
|
154
|
+
}>>;
|
|
155
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
156
|
+
cossistant: ZodOptional<ZodObject<{
|
|
157
|
+
visibility: ZodOptional<ZodEnum<{
|
|
158
|
+
public: "public";
|
|
159
|
+
private: "private";
|
|
160
|
+
}>>;
|
|
161
|
+
progressMessage: ZodOptional<ZodString>;
|
|
162
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
163
|
+
}, $strip>>;
|
|
164
|
+
}, $loose>>;
|
|
165
|
+
}, $strip>, ZodObject<{
|
|
166
|
+
type: ZodString;
|
|
167
|
+
toolCallId: ZodString;
|
|
168
|
+
toolName: ZodString;
|
|
169
|
+
input: ZodRecord<ZodString, ZodUnknown>;
|
|
170
|
+
output: ZodOptional<ZodUnknown>;
|
|
171
|
+
state: ZodEnum<{
|
|
172
|
+
error: "error";
|
|
173
|
+
result: "result";
|
|
174
|
+
partial: "partial";
|
|
175
|
+
}>;
|
|
176
|
+
errorText: ZodOptional<ZodString>;
|
|
177
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
178
|
+
cossistant: ZodOptional<ZodObject<{
|
|
179
|
+
visibility: ZodOptional<ZodEnum<{
|
|
180
|
+
public: "public";
|
|
181
|
+
private: "private";
|
|
182
|
+
}>>;
|
|
183
|
+
progressMessage: ZodOptional<ZodString>;
|
|
184
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
185
|
+
}, $strip>>;
|
|
186
|
+
}, $loose>>;
|
|
187
|
+
}, $strip>, ZodObject<{
|
|
188
|
+
type: ZodLiteral<"source-url">;
|
|
189
|
+
sourceId: ZodString;
|
|
190
|
+
url: ZodString;
|
|
191
|
+
title: ZodOptional<ZodString>;
|
|
192
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
193
|
+
cossistant: ZodOptional<ZodObject<{
|
|
194
|
+
visibility: ZodOptional<ZodEnum<{
|
|
195
|
+
public: "public";
|
|
196
|
+
private: "private";
|
|
197
|
+
}>>;
|
|
198
|
+
progressMessage: ZodOptional<ZodString>;
|
|
199
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
200
|
+
}, $strip>>;
|
|
201
|
+
}, $loose>>;
|
|
202
|
+
}, $strip>, ZodObject<{
|
|
203
|
+
type: ZodLiteral<"source-document">;
|
|
204
|
+
sourceId: ZodString;
|
|
205
|
+
mediaType: ZodString;
|
|
206
|
+
title: ZodString;
|
|
207
|
+
filename: ZodOptional<ZodString>;
|
|
208
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
209
|
+
cossistant: ZodOptional<ZodObject<{
|
|
210
|
+
visibility: ZodOptional<ZodEnum<{
|
|
211
|
+
public: "public";
|
|
212
|
+
private: "private";
|
|
213
|
+
}>>;
|
|
214
|
+
progressMessage: ZodOptional<ZodString>;
|
|
215
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
216
|
+
}, $strip>>;
|
|
217
|
+
}, $loose>>;
|
|
218
|
+
}, $strip>, ZodObject<{
|
|
219
|
+
type: ZodLiteral<"step-start">;
|
|
220
|
+
}, $strip>, ZodObject<{
|
|
221
|
+
type: ZodLiteral<"file">;
|
|
222
|
+
url: ZodString;
|
|
223
|
+
mediaType: ZodString;
|
|
224
|
+
filename: ZodOptional<ZodString>;
|
|
225
|
+
size: ZodOptional<ZodNumber>;
|
|
226
|
+
}, $strip>, ZodObject<{
|
|
227
|
+
type: ZodLiteral<"image">;
|
|
228
|
+
url: ZodString;
|
|
229
|
+
mediaType: ZodString;
|
|
230
|
+
filename: ZodOptional<ZodString>;
|
|
231
|
+
size: ZodOptional<ZodNumber>;
|
|
232
|
+
width: ZodOptional<ZodNumber>;
|
|
233
|
+
height: ZodOptional<ZodNumber>;
|
|
138
234
|
}, $strip>, ZodObject<{
|
|
139
235
|
type: ZodLiteral<"event">;
|
|
140
236
|
eventType: ZodEnum<{
|
|
@@ -158,20 +254,6 @@ declare const realtimeSchema: {
|
|
|
158
254
|
targetUserId: ZodNullable<ZodString>;
|
|
159
255
|
targetAiAgentId: ZodNullable<ZodString>;
|
|
160
256
|
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
257
|
}, $strip>, ZodObject<{
|
|
176
258
|
type: ZodLiteral<"metadata">;
|
|
177
259
|
source: ZodEnum<{
|
|
@@ -254,6 +336,96 @@ declare const realtimeSchema: {
|
|
|
254
336
|
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
255
337
|
type: ZodLiteral<"text">;
|
|
256
338
|
text: ZodString;
|
|
339
|
+
state: ZodOptional<ZodEnum<{
|
|
340
|
+
done: "done";
|
|
341
|
+
streaming: "streaming";
|
|
342
|
+
}>>;
|
|
343
|
+
}, $strip>, ZodObject<{
|
|
344
|
+
type: ZodLiteral<"reasoning">;
|
|
345
|
+
text: ZodString;
|
|
346
|
+
state: ZodOptional<ZodEnum<{
|
|
347
|
+
done: "done";
|
|
348
|
+
streaming: "streaming";
|
|
349
|
+
}>>;
|
|
350
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
351
|
+
cossistant: ZodOptional<ZodObject<{
|
|
352
|
+
visibility: ZodOptional<ZodEnum<{
|
|
353
|
+
public: "public";
|
|
354
|
+
private: "private";
|
|
355
|
+
}>>;
|
|
356
|
+
progressMessage: ZodOptional<ZodString>;
|
|
357
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
358
|
+
}, $strip>>;
|
|
359
|
+
}, $loose>>;
|
|
360
|
+
}, $strip>, ZodObject<{
|
|
361
|
+
type: ZodString;
|
|
362
|
+
toolCallId: ZodString;
|
|
363
|
+
toolName: ZodString;
|
|
364
|
+
input: ZodRecord<ZodString, ZodUnknown>;
|
|
365
|
+
output: ZodOptional<ZodUnknown>;
|
|
366
|
+
state: ZodEnum<{
|
|
367
|
+
error: "error";
|
|
368
|
+
result: "result";
|
|
369
|
+
partial: "partial";
|
|
370
|
+
}>;
|
|
371
|
+
errorText: ZodOptional<ZodString>;
|
|
372
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
373
|
+
cossistant: ZodOptional<ZodObject<{
|
|
374
|
+
visibility: ZodOptional<ZodEnum<{
|
|
375
|
+
public: "public";
|
|
376
|
+
private: "private";
|
|
377
|
+
}>>;
|
|
378
|
+
progressMessage: ZodOptional<ZodString>;
|
|
379
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
380
|
+
}, $strip>>;
|
|
381
|
+
}, $loose>>;
|
|
382
|
+
}, $strip>, ZodObject<{
|
|
383
|
+
type: ZodLiteral<"source-url">;
|
|
384
|
+
sourceId: ZodString;
|
|
385
|
+
url: ZodString;
|
|
386
|
+
title: ZodOptional<ZodString>;
|
|
387
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
388
|
+
cossistant: ZodOptional<ZodObject<{
|
|
389
|
+
visibility: ZodOptional<ZodEnum<{
|
|
390
|
+
public: "public";
|
|
391
|
+
private: "private";
|
|
392
|
+
}>>;
|
|
393
|
+
progressMessage: ZodOptional<ZodString>;
|
|
394
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
395
|
+
}, $strip>>;
|
|
396
|
+
}, $loose>>;
|
|
397
|
+
}, $strip>, ZodObject<{
|
|
398
|
+
type: ZodLiteral<"source-document">;
|
|
399
|
+
sourceId: ZodString;
|
|
400
|
+
mediaType: ZodString;
|
|
401
|
+
title: ZodString;
|
|
402
|
+
filename: ZodOptional<ZodString>;
|
|
403
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
404
|
+
cossistant: ZodOptional<ZodObject<{
|
|
405
|
+
visibility: ZodOptional<ZodEnum<{
|
|
406
|
+
public: "public";
|
|
407
|
+
private: "private";
|
|
408
|
+
}>>;
|
|
409
|
+
progressMessage: ZodOptional<ZodString>;
|
|
410
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
411
|
+
}, $strip>>;
|
|
412
|
+
}, $loose>>;
|
|
413
|
+
}, $strip>, ZodObject<{
|
|
414
|
+
type: ZodLiteral<"step-start">;
|
|
415
|
+
}, $strip>, ZodObject<{
|
|
416
|
+
type: ZodLiteral<"file">;
|
|
417
|
+
url: ZodString;
|
|
418
|
+
mediaType: ZodString;
|
|
419
|
+
filename: ZodOptional<ZodString>;
|
|
420
|
+
size: ZodOptional<ZodNumber>;
|
|
421
|
+
}, $strip>, ZodObject<{
|
|
422
|
+
type: ZodLiteral<"image">;
|
|
423
|
+
url: ZodString;
|
|
424
|
+
mediaType: ZodString;
|
|
425
|
+
filename: ZodOptional<ZodString>;
|
|
426
|
+
size: ZodOptional<ZodNumber>;
|
|
427
|
+
width: ZodOptional<ZodNumber>;
|
|
428
|
+
height: ZodOptional<ZodNumber>;
|
|
257
429
|
}, $strip>, ZodObject<{
|
|
258
430
|
type: ZodLiteral<"event">;
|
|
259
431
|
eventType: ZodEnum<{
|
|
@@ -277,20 +449,6 @@ declare const realtimeSchema: {
|
|
|
277
449
|
targetUserId: ZodNullable<ZodString>;
|
|
278
450
|
targetAiAgentId: ZodNullable<ZodString>;
|
|
279
451
|
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
452
|
}, $strip>, ZodObject<{
|
|
295
453
|
type: ZodLiteral<"metadata">;
|
|
296
454
|
source: ZodEnum<{
|
|
@@ -323,6 +481,96 @@ declare const realtimeSchema: {
|
|
|
323
481
|
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
324
482
|
type: ZodLiteral<"text">;
|
|
325
483
|
text: ZodString;
|
|
484
|
+
state: ZodOptional<ZodEnum<{
|
|
485
|
+
done: "done";
|
|
486
|
+
streaming: "streaming";
|
|
487
|
+
}>>;
|
|
488
|
+
}, $strip>, ZodObject<{
|
|
489
|
+
type: ZodLiteral<"reasoning">;
|
|
490
|
+
text: ZodString;
|
|
491
|
+
state: ZodOptional<ZodEnum<{
|
|
492
|
+
done: "done";
|
|
493
|
+
streaming: "streaming";
|
|
494
|
+
}>>;
|
|
495
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
496
|
+
cossistant: ZodOptional<ZodObject<{
|
|
497
|
+
visibility: ZodOptional<ZodEnum<{
|
|
498
|
+
public: "public";
|
|
499
|
+
private: "private";
|
|
500
|
+
}>>;
|
|
501
|
+
progressMessage: ZodOptional<ZodString>;
|
|
502
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
503
|
+
}, $strip>>;
|
|
504
|
+
}, $loose>>;
|
|
505
|
+
}, $strip>, ZodObject<{
|
|
506
|
+
type: ZodString;
|
|
507
|
+
toolCallId: ZodString;
|
|
508
|
+
toolName: ZodString;
|
|
509
|
+
input: ZodRecord<ZodString, ZodUnknown>;
|
|
510
|
+
output: ZodOptional<ZodUnknown>;
|
|
511
|
+
state: ZodEnum<{
|
|
512
|
+
error: "error";
|
|
513
|
+
result: "result";
|
|
514
|
+
partial: "partial";
|
|
515
|
+
}>;
|
|
516
|
+
errorText: ZodOptional<ZodString>;
|
|
517
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
518
|
+
cossistant: ZodOptional<ZodObject<{
|
|
519
|
+
visibility: ZodOptional<ZodEnum<{
|
|
520
|
+
public: "public";
|
|
521
|
+
private: "private";
|
|
522
|
+
}>>;
|
|
523
|
+
progressMessage: ZodOptional<ZodString>;
|
|
524
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
525
|
+
}, $strip>>;
|
|
526
|
+
}, $loose>>;
|
|
527
|
+
}, $strip>, ZodObject<{
|
|
528
|
+
type: ZodLiteral<"source-url">;
|
|
529
|
+
sourceId: ZodString;
|
|
530
|
+
url: ZodString;
|
|
531
|
+
title: ZodOptional<ZodString>;
|
|
532
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
533
|
+
cossistant: ZodOptional<ZodObject<{
|
|
534
|
+
visibility: ZodOptional<ZodEnum<{
|
|
535
|
+
public: "public";
|
|
536
|
+
private: "private";
|
|
537
|
+
}>>;
|
|
538
|
+
progressMessage: ZodOptional<ZodString>;
|
|
539
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
540
|
+
}, $strip>>;
|
|
541
|
+
}, $loose>>;
|
|
542
|
+
}, $strip>, ZodObject<{
|
|
543
|
+
type: ZodLiteral<"source-document">;
|
|
544
|
+
sourceId: ZodString;
|
|
545
|
+
mediaType: ZodString;
|
|
546
|
+
title: ZodString;
|
|
547
|
+
filename: ZodOptional<ZodString>;
|
|
548
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
549
|
+
cossistant: ZodOptional<ZodObject<{
|
|
550
|
+
visibility: ZodOptional<ZodEnum<{
|
|
551
|
+
public: "public";
|
|
552
|
+
private: "private";
|
|
553
|
+
}>>;
|
|
554
|
+
progressMessage: ZodOptional<ZodString>;
|
|
555
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
556
|
+
}, $strip>>;
|
|
557
|
+
}, $loose>>;
|
|
558
|
+
}, $strip>, ZodObject<{
|
|
559
|
+
type: ZodLiteral<"step-start">;
|
|
560
|
+
}, $strip>, ZodObject<{
|
|
561
|
+
type: ZodLiteral<"file">;
|
|
562
|
+
url: ZodString;
|
|
563
|
+
mediaType: ZodString;
|
|
564
|
+
filename: ZodOptional<ZodString>;
|
|
565
|
+
size: ZodOptional<ZodNumber>;
|
|
566
|
+
}, $strip>, ZodObject<{
|
|
567
|
+
type: ZodLiteral<"image">;
|
|
568
|
+
url: ZodString;
|
|
569
|
+
mediaType: ZodString;
|
|
570
|
+
filename: ZodOptional<ZodString>;
|
|
571
|
+
size: ZodOptional<ZodNumber>;
|
|
572
|
+
width: ZodOptional<ZodNumber>;
|
|
573
|
+
height: ZodOptional<ZodNumber>;
|
|
326
574
|
}, $strip>, ZodObject<{
|
|
327
575
|
type: ZodLiteral<"event">;
|
|
328
576
|
eventType: ZodEnum<{
|
|
@@ -346,20 +594,6 @@ declare const realtimeSchema: {
|
|
|
346
594
|
targetUserId: ZodNullable<ZodString>;
|
|
347
595
|
targetAiAgentId: ZodNullable<ZodString>;
|
|
348
596
|
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
597
|
}, $strip>, ZodObject<{
|
|
364
598
|
type: ZodLiteral<"metadata">;
|
|
365
599
|
source: ZodEnum<{
|
|
@@ -493,6 +727,125 @@ declare const realtimeSchema: {
|
|
|
493
727
|
}, $strip>;
|
|
494
728
|
aiAgentId: ZodNullable<ZodString>;
|
|
495
729
|
}, $strip>;
|
|
730
|
+
readonly aiAgentProcessingStarted: ZodObject<{
|
|
731
|
+
websiteId: ZodString;
|
|
732
|
+
organizationId: ZodString;
|
|
733
|
+
visitorId: ZodNullable<ZodString>;
|
|
734
|
+
userId: ZodNullable<ZodString>;
|
|
735
|
+
conversationId: ZodString;
|
|
736
|
+
aiAgentId: ZodString;
|
|
737
|
+
workflowRunId: ZodString;
|
|
738
|
+
triggerMessageId: ZodString;
|
|
739
|
+
phase: ZodOptional<ZodString>;
|
|
740
|
+
audience: ZodDefault<ZodEnum<{
|
|
741
|
+
all: "all";
|
|
742
|
+
dashboard: "dashboard";
|
|
743
|
+
}>>;
|
|
744
|
+
}, $strip>;
|
|
745
|
+
readonly aiAgentDecisionMade: ZodObject<{
|
|
746
|
+
websiteId: ZodString;
|
|
747
|
+
organizationId: ZodString;
|
|
748
|
+
visitorId: ZodNullable<ZodString>;
|
|
749
|
+
userId: ZodNullable<ZodString>;
|
|
750
|
+
conversationId: ZodString;
|
|
751
|
+
aiAgentId: ZodString;
|
|
752
|
+
workflowRunId: ZodString;
|
|
753
|
+
shouldAct: ZodBoolean;
|
|
754
|
+
reason: ZodString;
|
|
755
|
+
mode: ZodEnum<{
|
|
756
|
+
respond_to_visitor: "respond_to_visitor";
|
|
757
|
+
respond_to_command: "respond_to_command";
|
|
758
|
+
background_only: "background_only";
|
|
759
|
+
}>;
|
|
760
|
+
audience: ZodEnum<{
|
|
761
|
+
all: "all";
|
|
762
|
+
dashboard: "dashboard";
|
|
763
|
+
}>;
|
|
764
|
+
}, $strip>;
|
|
765
|
+
readonly aiAgentProcessingProgress: ZodObject<{
|
|
766
|
+
websiteId: ZodString;
|
|
767
|
+
organizationId: ZodString;
|
|
768
|
+
visitorId: ZodNullable<ZodString>;
|
|
769
|
+
userId: ZodNullable<ZodString>;
|
|
770
|
+
conversationId: ZodString;
|
|
771
|
+
aiAgentId: ZodString;
|
|
772
|
+
workflowRunId: ZodString;
|
|
773
|
+
phase: ZodString;
|
|
774
|
+
message: ZodNullable<ZodString>;
|
|
775
|
+
tool: ZodOptional<ZodObject<{
|
|
776
|
+
toolCallId: ZodString;
|
|
777
|
+
toolName: ZodString;
|
|
778
|
+
state: ZodEnum<{
|
|
779
|
+
error: "error";
|
|
780
|
+
result: "result";
|
|
781
|
+
partial: "partial";
|
|
782
|
+
}>;
|
|
783
|
+
}, $strip>>;
|
|
784
|
+
audience: ZodDefault<ZodEnum<{
|
|
785
|
+
all: "all";
|
|
786
|
+
dashboard: "dashboard";
|
|
787
|
+
}>>;
|
|
788
|
+
}, $strip>;
|
|
789
|
+
readonly aiAgentProcessingCompleted: ZodObject<{
|
|
790
|
+
websiteId: ZodString;
|
|
791
|
+
organizationId: ZodString;
|
|
792
|
+
visitorId: ZodNullable<ZodString>;
|
|
793
|
+
userId: ZodNullable<ZodString>;
|
|
794
|
+
conversationId: ZodString;
|
|
795
|
+
aiAgentId: ZodString;
|
|
796
|
+
workflowRunId: ZodString;
|
|
797
|
+
status: ZodEnum<{
|
|
798
|
+
error: "error";
|
|
799
|
+
success: "success";
|
|
800
|
+
skipped: "skipped";
|
|
801
|
+
cancelled: "cancelled";
|
|
802
|
+
}>;
|
|
803
|
+
action: ZodOptional<ZodNullable<ZodString>>;
|
|
804
|
+
reason: ZodOptional<ZodNullable<ZodString>>;
|
|
805
|
+
audience: ZodDefault<ZodEnum<{
|
|
806
|
+
all: "all";
|
|
807
|
+
dashboard: "dashboard";
|
|
808
|
+
}>>;
|
|
809
|
+
}, $strip>;
|
|
810
|
+
readonly timelineItemUpdated: ZodObject<{
|
|
811
|
+
websiteId: ZodString;
|
|
812
|
+
organizationId: ZodString;
|
|
813
|
+
visitorId: ZodNullable<ZodString>;
|
|
814
|
+
userId: ZodNullable<ZodString>;
|
|
815
|
+
conversationId: ZodString;
|
|
816
|
+
item: ZodObject<{
|
|
817
|
+
id: ZodString;
|
|
818
|
+
conversationId: ZodString;
|
|
819
|
+
organizationId: ZodString;
|
|
820
|
+
visibility: ZodEnum<{
|
|
821
|
+
public: "public";
|
|
822
|
+
private: "private";
|
|
823
|
+
}>;
|
|
824
|
+
type: ZodEnum<{
|
|
825
|
+
message: "message";
|
|
826
|
+
event: "event";
|
|
827
|
+
identification: "identification";
|
|
828
|
+
}>;
|
|
829
|
+
text: ZodNullable<ZodString>;
|
|
830
|
+
parts: ZodArray<ZodUnknown>;
|
|
831
|
+
userId: ZodNullable<ZodString>;
|
|
832
|
+
visitorId: ZodNullable<ZodString>;
|
|
833
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
834
|
+
createdAt: ZodString;
|
|
835
|
+
deletedAt: ZodNullable<ZodString>;
|
|
836
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
837
|
+
}, $strip>;
|
|
838
|
+
}, $strip>;
|
|
839
|
+
readonly timelineItemPartUpdated: ZodObject<{
|
|
840
|
+
websiteId: ZodString;
|
|
841
|
+
organizationId: ZodString;
|
|
842
|
+
visitorId: ZodNullable<ZodString>;
|
|
843
|
+
userId: ZodNullable<ZodString>;
|
|
844
|
+
conversationId: ZodString;
|
|
845
|
+
timelineItemId: ZodString;
|
|
846
|
+
partIndex: ZodNumber;
|
|
847
|
+
part: ZodUnknown;
|
|
848
|
+
}, $strip>;
|
|
496
849
|
readonly crawlStarted: ZodObject<{
|
|
497
850
|
websiteId: ZodString;
|
|
498
851
|
organizationId: ZodString;
|
|
@@ -592,6 +945,51 @@ declare const realtimeSchema: {
|
|
|
592
945
|
knowledgeId: ZodString;
|
|
593
946
|
}, $strip>;
|
|
594
947
|
}, $strip>;
|
|
948
|
+
readonly trainingStarted: ZodObject<{
|
|
949
|
+
websiteId: ZodString;
|
|
950
|
+
organizationId: ZodString;
|
|
951
|
+
visitorId: ZodNullable<ZodString>;
|
|
952
|
+
userId: ZodNullable<ZodString>;
|
|
953
|
+
aiAgentId: ZodString;
|
|
954
|
+
totalItems: ZodNumber;
|
|
955
|
+
}, $strip>;
|
|
956
|
+
readonly trainingProgress: ZodObject<{
|
|
957
|
+
websiteId: ZodString;
|
|
958
|
+
organizationId: ZodString;
|
|
959
|
+
visitorId: ZodNullable<ZodString>;
|
|
960
|
+
userId: ZodNullable<ZodString>;
|
|
961
|
+
aiAgentId: ZodString;
|
|
962
|
+
processedItems: ZodNumber;
|
|
963
|
+
totalItems: ZodNumber;
|
|
964
|
+
currentItem: ZodOptional<ZodObject<{
|
|
965
|
+
id: ZodString;
|
|
966
|
+
title: ZodNullable<ZodString>;
|
|
967
|
+
type: ZodEnum<{
|
|
968
|
+
article: "article";
|
|
969
|
+
url: "url";
|
|
970
|
+
faq: "faq";
|
|
971
|
+
}>;
|
|
972
|
+
}, $strip>>;
|
|
973
|
+
percentage: ZodNumber;
|
|
974
|
+
}, $strip>;
|
|
975
|
+
readonly trainingCompleted: ZodObject<{
|
|
976
|
+
websiteId: ZodString;
|
|
977
|
+
organizationId: ZodString;
|
|
978
|
+
visitorId: ZodNullable<ZodString>;
|
|
979
|
+
userId: ZodNullable<ZodString>;
|
|
980
|
+
aiAgentId: ZodString;
|
|
981
|
+
totalItems: ZodNumber;
|
|
982
|
+
totalChunks: ZodNumber;
|
|
983
|
+
duration: ZodNumber;
|
|
984
|
+
}, $strip>;
|
|
985
|
+
readonly trainingFailed: ZodObject<{
|
|
986
|
+
websiteId: ZodString;
|
|
987
|
+
organizationId: ZodString;
|
|
988
|
+
visitorId: ZodNullable<ZodString>;
|
|
989
|
+
userId: ZodNullable<ZodString>;
|
|
990
|
+
aiAgentId: ZodString;
|
|
991
|
+
error: ZodString;
|
|
992
|
+
}, $strip>;
|
|
595
993
|
};
|
|
596
994
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
597
995
|
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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $strip } from "
|
|
2
|
-
import { output } from "
|
|
3
|
-
import { ZodArray, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodUnion } 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, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodUnion, ZodUnknown } from "../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js";
|
|
4
4
|
|
|
5
5
|
//#region ../types/src/schemas.d.ts
|
|
6
6
|
|
|
@@ -36,6 +36,96 @@ declare const conversationSchema: ZodObject<{
|
|
|
36
36
|
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
37
37
|
type: ZodLiteral<"text">;
|
|
38
38
|
text: ZodString;
|
|
39
|
+
state: ZodOptional<ZodEnum<{
|
|
40
|
+
done: "done";
|
|
41
|
+
streaming: "streaming";
|
|
42
|
+
}>>;
|
|
43
|
+
}, $strip>, ZodObject<{
|
|
44
|
+
type: ZodLiteral<"reasoning">;
|
|
45
|
+
text: ZodString;
|
|
46
|
+
state: ZodOptional<ZodEnum<{
|
|
47
|
+
done: "done";
|
|
48
|
+
streaming: "streaming";
|
|
49
|
+
}>>;
|
|
50
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
51
|
+
cossistant: ZodOptional<ZodObject<{
|
|
52
|
+
visibility: ZodOptional<ZodEnum<{
|
|
53
|
+
public: "public";
|
|
54
|
+
private: "private";
|
|
55
|
+
}>>;
|
|
56
|
+
progressMessage: ZodOptional<ZodString>;
|
|
57
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
58
|
+
}, $strip>>;
|
|
59
|
+
}, $loose>>;
|
|
60
|
+
}, $strip>, ZodObject<{
|
|
61
|
+
type: ZodString;
|
|
62
|
+
toolCallId: ZodString;
|
|
63
|
+
toolName: ZodString;
|
|
64
|
+
input: ZodRecord<ZodString, ZodUnknown>;
|
|
65
|
+
output: ZodOptional<ZodUnknown>;
|
|
66
|
+
state: ZodEnum<{
|
|
67
|
+
error: "error";
|
|
68
|
+
result: "result";
|
|
69
|
+
partial: "partial";
|
|
70
|
+
}>;
|
|
71
|
+
errorText: ZodOptional<ZodString>;
|
|
72
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
73
|
+
cossistant: ZodOptional<ZodObject<{
|
|
74
|
+
visibility: ZodOptional<ZodEnum<{
|
|
75
|
+
public: "public";
|
|
76
|
+
private: "private";
|
|
77
|
+
}>>;
|
|
78
|
+
progressMessage: ZodOptional<ZodString>;
|
|
79
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
80
|
+
}, $strip>>;
|
|
81
|
+
}, $loose>>;
|
|
82
|
+
}, $strip>, ZodObject<{
|
|
83
|
+
type: ZodLiteral<"source-url">;
|
|
84
|
+
sourceId: ZodString;
|
|
85
|
+
url: ZodString;
|
|
86
|
+
title: ZodOptional<ZodString>;
|
|
87
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
88
|
+
cossistant: ZodOptional<ZodObject<{
|
|
89
|
+
visibility: ZodOptional<ZodEnum<{
|
|
90
|
+
public: "public";
|
|
91
|
+
private: "private";
|
|
92
|
+
}>>;
|
|
93
|
+
progressMessage: ZodOptional<ZodString>;
|
|
94
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
95
|
+
}, $strip>>;
|
|
96
|
+
}, $loose>>;
|
|
97
|
+
}, $strip>, ZodObject<{
|
|
98
|
+
type: ZodLiteral<"source-document">;
|
|
99
|
+
sourceId: ZodString;
|
|
100
|
+
mediaType: ZodString;
|
|
101
|
+
title: ZodString;
|
|
102
|
+
filename: ZodOptional<ZodString>;
|
|
103
|
+
providerMetadata: ZodOptional<ZodObject<{
|
|
104
|
+
cossistant: ZodOptional<ZodObject<{
|
|
105
|
+
visibility: ZodOptional<ZodEnum<{
|
|
106
|
+
public: "public";
|
|
107
|
+
private: "private";
|
|
108
|
+
}>>;
|
|
109
|
+
progressMessage: ZodOptional<ZodString>;
|
|
110
|
+
knowledgeId: ZodOptional<ZodString>;
|
|
111
|
+
}, $strip>>;
|
|
112
|
+
}, $loose>>;
|
|
113
|
+
}, $strip>, ZodObject<{
|
|
114
|
+
type: ZodLiteral<"step-start">;
|
|
115
|
+
}, $strip>, ZodObject<{
|
|
116
|
+
type: ZodLiteral<"file">;
|
|
117
|
+
url: ZodString;
|
|
118
|
+
mediaType: ZodString;
|
|
119
|
+
filename: ZodOptional<ZodString>;
|
|
120
|
+
size: ZodOptional<ZodNumber>;
|
|
121
|
+
}, $strip>, ZodObject<{
|
|
122
|
+
type: ZodLiteral<"image">;
|
|
123
|
+
url: ZodString;
|
|
124
|
+
mediaType: ZodString;
|
|
125
|
+
filename: ZodOptional<ZodString>;
|
|
126
|
+
size: ZodOptional<ZodNumber>;
|
|
127
|
+
width: ZodOptional<ZodNumber>;
|
|
128
|
+
height: ZodOptional<ZodNumber>;
|
|
39
129
|
}, $strip>, ZodObject<{
|
|
40
130
|
type: ZodLiteral<"event">;
|
|
41
131
|
eventType: ZodEnum<{
|
|
@@ -59,20 +149,6 @@ declare const conversationSchema: ZodObject<{
|
|
|
59
149
|
targetUserId: ZodNullable<ZodString>;
|
|
60
150
|
targetAiAgentId: ZodNullable<ZodString>;
|
|
61
151
|
message: ZodOptional<ZodNullable<ZodString>>;
|
|
62
|
-
}, $strip>, ZodObject<{
|
|
63
|
-
type: ZodLiteral<"image">;
|
|
64
|
-
url: ZodString;
|
|
65
|
-
mediaType: ZodString;
|
|
66
|
-
fileName: ZodOptional<ZodString>;
|
|
67
|
-
size: ZodOptional<ZodNumber>;
|
|
68
|
-
width: ZodOptional<ZodNumber>;
|
|
69
|
-
height: ZodOptional<ZodNumber>;
|
|
70
|
-
}, $strip>, ZodObject<{
|
|
71
|
-
type: ZodLiteral<"file">;
|
|
72
|
-
url: ZodString;
|
|
73
|
-
mediaType: ZodString;
|
|
74
|
-
fileName: ZodOptional<ZodString>;
|
|
75
|
-
size: ZodOptional<ZodNumber>;
|
|
76
152
|
}, $strip>, ZodObject<{
|
|
77
153
|
type: ZodLiteral<"metadata">;
|
|
78
154
|
source: ZodEnum<{
|
|
@@ -103,4 +179,4 @@ declare const conversationSeenSchema: ZodObject<{
|
|
|
103
179
|
type ConversationSeen = output<typeof conversationSeenSchema>;
|
|
104
180
|
//#endregion
|
|
105
181
|
export { Conversation, ConversationSeen };
|
|
106
|
-
//# sourceMappingURL=
|
|
182
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../../../../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;;cAkBa,oBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmBnB,YAAA,GAAe,cAAe;cAE7B,wBAAsB;;;;;;EArBJ,UAAA,WAAA;EAAA,SAAA,WAAA;EAmBnB,SAAA,WAAY;EAEX,SAAA,aAAA,UAUX,CAAA;;KAEU,gBAAA,GAAmB,cAAe"}
|