@cossistant/core 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 +27 -12
- package/ai-sdk-utils.d.ts +141 -0
- package/ai-sdk-utils.d.ts.map +1 -0
- package/ai-sdk-utils.js +255 -0
- package/ai-sdk-utils.js.map +1 -0
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js +2 -2
- package/client.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/package.json +1 -1
- package/privacy-filter.d.ts +112 -0
- package/privacy-filter.d.ts.map +1 -0
- package/privacy-filter.js +170 -0
- package/privacy-filter.js.map +1 -0
- package/rest-client.d.ts +4 -4
- package/rest-client.d.ts.map +1 -1
- package/rest-client.js +4 -4
- package/rest-client.js.map +1 -1
- package/store/conversations-store.d.ts +1 -1
- package/store/seen-store.d.ts +2 -2
- package/store/timeline-items-store.d.ts +5 -5
- package/store/timeline-items-store.d.ts.map +1 -1
- package/store/timeline-items-store.js +1 -1
- package/store/timeline-items-store.js.map +1 -1
- package/store/typing-store.d.ts +1 -1
- package/store/typing-store.d.ts.map +1 -1
- package/store/typing-store.js +12 -19
- package/store/typing-store.js.map +1 -1
- package/types/src/api/contact.d.ts.map +1 -0
- package/{conversation.d.ts → types/src/api/conversation.d.ts} +458 -78
- package/types/src/api/conversation.d.ts.map +1 -0
- package/types/src/api/timeline-item.d.ts +602 -0
- package/types/src/api/timeline-item.d.ts.map +1 -0
- package/types/src/api/timeline-item.js +67 -19
- package/types/src/api/timeline-item.js.map +1 -1
- package/types/src/api/upload.d.ts.map +1 -0
- package/{realtime-events.d.ts → types/src/realtime-events.d.ts} +446 -48
- package/types/src/realtime-events.d.ts.map +1 -0
- package/{schemas.d.ts → types/src/schemas.d.ts} +92 -16
- package/types/src/schemas.d.ts.map +1 -0
- package/contact.d.ts.map +0 -1
- package/conversation.d.ts.map +0 -1
- package/realtime-events.d.ts.map +0 -1
- package/schemas.d.ts.map +0 -1
- package/timeline-item.d.ts +0 -298
- package/timeline-item.d.ts.map +0 -1
- package/upload.d.ts.map +0 -1
- /package/{contact.d.ts → types/src/api/contact.d.ts} +0 -0
- /package/{upload.d.ts → types/src/api/upload.d.ts} +0 -0
|
@@ -55,6 +55,12 @@ declare const realtimeSchema: {
|
|
|
55
55
|
conversationId: z.ZodString;
|
|
56
56
|
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
57
57
|
lastSeenAt: z.ZodString;
|
|
58
|
+
actorType: z.ZodEnum<{
|
|
59
|
+
user: "user";
|
|
60
|
+
visitor: "visitor";
|
|
61
|
+
ai_agent: "ai_agent";
|
|
62
|
+
}>;
|
|
63
|
+
actorId: z.ZodString;
|
|
58
64
|
}, z.core.$strip>;
|
|
59
65
|
readonly conversationTyping: z.ZodObject<{
|
|
60
66
|
websiteId: z.ZodString;
|
|
@@ -109,8 +115,8 @@ declare const realtimeSchema: {
|
|
|
109
115
|
visitorId: z.ZodString;
|
|
110
116
|
websiteId: z.ZodString;
|
|
111
117
|
status: z.ZodDefault<z.ZodEnum<{
|
|
112
|
-
resolved: "resolved";
|
|
113
118
|
open: "open";
|
|
119
|
+
resolved: "resolved";
|
|
114
120
|
spam: "spam";
|
|
115
121
|
}>>;
|
|
116
122
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -133,9 +139,100 @@ declare const realtimeSchema: {
|
|
|
133
139
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
134
140
|
type: z.ZodLiteral<"text">;
|
|
135
141
|
text: z.ZodString;
|
|
142
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
streaming: "streaming";
|
|
144
|
+
done: "done";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
type: z.ZodLiteral<"reasoning">;
|
|
148
|
+
text: z.ZodString;
|
|
149
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
streaming: "streaming";
|
|
151
|
+
done: "done";
|
|
152
|
+
}>>;
|
|
153
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
public: "public";
|
|
157
|
+
private: "private";
|
|
158
|
+
}>>;
|
|
159
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
160
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$loose>>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
type: z.ZodString;
|
|
165
|
+
toolCallId: z.ZodString;
|
|
166
|
+
toolName: z.ZodString;
|
|
167
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
168
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
169
|
+
state: z.ZodEnum<{
|
|
170
|
+
error: "error";
|
|
171
|
+
partial: "partial";
|
|
172
|
+
result: "result";
|
|
173
|
+
}>;
|
|
174
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
175
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
public: "public";
|
|
179
|
+
private: "private";
|
|
180
|
+
}>>;
|
|
181
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
182
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
}, z.core.$loose>>;
|
|
185
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
186
|
+
type: z.ZodLiteral<"source-url">;
|
|
187
|
+
sourceId: z.ZodString;
|
|
188
|
+
url: z.ZodString;
|
|
189
|
+
title: z.ZodOptional<z.ZodString>;
|
|
190
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
public: "public";
|
|
194
|
+
private: "private";
|
|
195
|
+
}>>;
|
|
196
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
197
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
}, z.core.$loose>>;
|
|
200
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
201
|
+
type: z.ZodLiteral<"source-document">;
|
|
202
|
+
sourceId: z.ZodString;
|
|
203
|
+
mediaType: z.ZodString;
|
|
204
|
+
title: z.ZodString;
|
|
205
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
206
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
public: "public";
|
|
210
|
+
private: "private";
|
|
211
|
+
}>>;
|
|
212
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
213
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$loose>>;
|
|
216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
+
type: z.ZodLiteral<"step-start">;
|
|
218
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
219
|
+
type: z.ZodLiteral<"file">;
|
|
220
|
+
url: z.ZodString;
|
|
221
|
+
mediaType: z.ZodString;
|
|
222
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
223
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
225
|
+
type: z.ZodLiteral<"image">;
|
|
226
|
+
url: z.ZodString;
|
|
227
|
+
mediaType: z.ZodString;
|
|
228
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
229
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
136
232
|
}, z.core.$strip>, z.ZodObject<{
|
|
137
233
|
type: z.ZodLiteral<"event">;
|
|
138
234
|
eventType: z.ZodEnum<{
|
|
235
|
+
resolved: "resolved";
|
|
139
236
|
assigned: "assigned";
|
|
140
237
|
unassigned: "unassigned";
|
|
141
238
|
participant_requested: "participant_requested";
|
|
@@ -145,7 +242,6 @@ declare const realtimeSchema: {
|
|
|
145
242
|
priority_changed: "priority_changed";
|
|
146
243
|
tag_added: "tag_added";
|
|
147
244
|
tag_removed: "tag_removed";
|
|
148
|
-
resolved: "resolved";
|
|
149
245
|
reopened: "reopened";
|
|
150
246
|
visitor_blocked: "visitor_blocked";
|
|
151
247
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -156,20 +252,6 @@ declare const realtimeSchema: {
|
|
|
156
252
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
157
253
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
158
254
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
-
type: z.ZodLiteral<"image">;
|
|
161
|
-
url: z.ZodString;
|
|
162
|
-
mediaType: z.ZodString;
|
|
163
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
164
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
166
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
-
type: z.ZodLiteral<"file">;
|
|
169
|
-
url: z.ZodString;
|
|
170
|
-
mediaType: z.ZodString;
|
|
171
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
172
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
173
255
|
}, z.core.$strip>, z.ZodObject<{
|
|
174
256
|
type: z.ZodLiteral<"metadata">;
|
|
175
257
|
source: z.ZodEnum<{
|
|
@@ -188,8 +270,8 @@ declare const realtimeSchema: {
|
|
|
188
270
|
header: z.ZodObject<{
|
|
189
271
|
id: z.ZodString;
|
|
190
272
|
status: z.ZodEnum<{
|
|
191
|
-
resolved: "resolved";
|
|
192
273
|
open: "open";
|
|
274
|
+
resolved: "resolved";
|
|
193
275
|
spam: "spam";
|
|
194
276
|
}>;
|
|
195
277
|
priority: z.ZodEnum<{
|
|
@@ -252,9 +334,100 @@ declare const realtimeSchema: {
|
|
|
252
334
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
253
335
|
type: z.ZodLiteral<"text">;
|
|
254
336
|
text: z.ZodString;
|
|
337
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
streaming: "streaming";
|
|
339
|
+
done: "done";
|
|
340
|
+
}>>;
|
|
341
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
+
type: z.ZodLiteral<"reasoning">;
|
|
343
|
+
text: z.ZodString;
|
|
344
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
345
|
+
streaming: "streaming";
|
|
346
|
+
done: "done";
|
|
347
|
+
}>>;
|
|
348
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
349
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
public: "public";
|
|
352
|
+
private: "private";
|
|
353
|
+
}>>;
|
|
354
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
355
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, z.core.$strip>>;
|
|
357
|
+
}, z.core.$loose>>;
|
|
358
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
359
|
+
type: z.ZodString;
|
|
360
|
+
toolCallId: z.ZodString;
|
|
361
|
+
toolName: z.ZodString;
|
|
362
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
363
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
364
|
+
state: z.ZodEnum<{
|
|
365
|
+
error: "error";
|
|
366
|
+
partial: "partial";
|
|
367
|
+
result: "result";
|
|
368
|
+
}>;
|
|
369
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
370
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
public: "public";
|
|
374
|
+
private: "private";
|
|
375
|
+
}>>;
|
|
376
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
377
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
378
|
+
}, z.core.$strip>>;
|
|
379
|
+
}, z.core.$loose>>;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
+
type: z.ZodLiteral<"source-url">;
|
|
382
|
+
sourceId: z.ZodString;
|
|
383
|
+
url: z.ZodString;
|
|
384
|
+
title: z.ZodOptional<z.ZodString>;
|
|
385
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
388
|
+
public: "public";
|
|
389
|
+
private: "private";
|
|
390
|
+
}>>;
|
|
391
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
392
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
}, z.core.$loose>>;
|
|
395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
396
|
+
type: z.ZodLiteral<"source-document">;
|
|
397
|
+
sourceId: z.ZodString;
|
|
398
|
+
mediaType: z.ZodString;
|
|
399
|
+
title: z.ZodString;
|
|
400
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
401
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
402
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
404
|
+
public: "public";
|
|
405
|
+
private: "private";
|
|
406
|
+
}>>;
|
|
407
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
408
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$strip>>;
|
|
410
|
+
}, z.core.$loose>>;
|
|
411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
+
type: z.ZodLiteral<"step-start">;
|
|
413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
type: z.ZodLiteral<"file">;
|
|
415
|
+
url: z.ZodString;
|
|
416
|
+
mediaType: z.ZodString;
|
|
417
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
418
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
420
|
+
type: z.ZodLiteral<"image">;
|
|
421
|
+
url: z.ZodString;
|
|
422
|
+
mediaType: z.ZodString;
|
|
423
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
424
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
255
427
|
}, z.core.$strip>, z.ZodObject<{
|
|
256
428
|
type: z.ZodLiteral<"event">;
|
|
257
429
|
eventType: z.ZodEnum<{
|
|
430
|
+
resolved: "resolved";
|
|
258
431
|
assigned: "assigned";
|
|
259
432
|
unassigned: "unassigned";
|
|
260
433
|
participant_requested: "participant_requested";
|
|
@@ -264,7 +437,6 @@ declare const realtimeSchema: {
|
|
|
264
437
|
priority_changed: "priority_changed";
|
|
265
438
|
tag_added: "tag_added";
|
|
266
439
|
tag_removed: "tag_removed";
|
|
267
|
-
resolved: "resolved";
|
|
268
440
|
reopened: "reopened";
|
|
269
441
|
visitor_blocked: "visitor_blocked";
|
|
270
442
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -275,20 +447,6 @@ declare const realtimeSchema: {
|
|
|
275
447
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
276
448
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
277
449
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
279
|
-
type: z.ZodLiteral<"image">;
|
|
280
|
-
url: z.ZodString;
|
|
281
|
-
mediaType: z.ZodString;
|
|
282
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
283
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
284
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
285
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
286
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
-
type: z.ZodLiteral<"file">;
|
|
288
|
-
url: z.ZodString;
|
|
289
|
-
mediaType: z.ZodString;
|
|
290
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
291
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
292
450
|
}, z.core.$strip>, z.ZodObject<{
|
|
293
451
|
type: z.ZodLiteral<"metadata">;
|
|
294
452
|
source: z.ZodEnum<{
|
|
@@ -321,9 +479,100 @@ declare const realtimeSchema: {
|
|
|
321
479
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
322
480
|
type: z.ZodLiteral<"text">;
|
|
323
481
|
text: z.ZodString;
|
|
482
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
streaming: "streaming";
|
|
484
|
+
done: "done";
|
|
485
|
+
}>>;
|
|
486
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
487
|
+
type: z.ZodLiteral<"reasoning">;
|
|
488
|
+
text: z.ZodString;
|
|
489
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
streaming: "streaming";
|
|
491
|
+
done: "done";
|
|
492
|
+
}>>;
|
|
493
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
495
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
496
|
+
public: "public";
|
|
497
|
+
private: "private";
|
|
498
|
+
}>>;
|
|
499
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
500
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
}, z.core.$loose>>;
|
|
503
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
504
|
+
type: z.ZodString;
|
|
505
|
+
toolCallId: z.ZodString;
|
|
506
|
+
toolName: z.ZodString;
|
|
507
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
508
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
509
|
+
state: z.ZodEnum<{
|
|
510
|
+
error: "error";
|
|
511
|
+
partial: "partial";
|
|
512
|
+
result: "result";
|
|
513
|
+
}>;
|
|
514
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
515
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
518
|
+
public: "public";
|
|
519
|
+
private: "private";
|
|
520
|
+
}>>;
|
|
521
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
522
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>>;
|
|
524
|
+
}, z.core.$loose>>;
|
|
525
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
526
|
+
type: z.ZodLiteral<"source-url">;
|
|
527
|
+
sourceId: z.ZodString;
|
|
528
|
+
url: z.ZodString;
|
|
529
|
+
title: z.ZodOptional<z.ZodString>;
|
|
530
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
531
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
532
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
533
|
+
public: "public";
|
|
534
|
+
private: "private";
|
|
535
|
+
}>>;
|
|
536
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
537
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, z.core.$strip>>;
|
|
539
|
+
}, z.core.$loose>>;
|
|
540
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
541
|
+
type: z.ZodLiteral<"source-document">;
|
|
542
|
+
sourceId: z.ZodString;
|
|
543
|
+
mediaType: z.ZodString;
|
|
544
|
+
title: z.ZodString;
|
|
545
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
546
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
547
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
548
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
549
|
+
public: "public";
|
|
550
|
+
private: "private";
|
|
551
|
+
}>>;
|
|
552
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
553
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
554
|
+
}, z.core.$strip>>;
|
|
555
|
+
}, z.core.$loose>>;
|
|
556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
+
type: z.ZodLiteral<"step-start">;
|
|
558
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
559
|
+
type: z.ZodLiteral<"file">;
|
|
560
|
+
url: z.ZodString;
|
|
561
|
+
mediaType: z.ZodString;
|
|
562
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
563
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"image">;
|
|
566
|
+
url: z.ZodString;
|
|
567
|
+
mediaType: z.ZodString;
|
|
568
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
569
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
570
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
571
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
324
572
|
}, z.core.$strip>, z.ZodObject<{
|
|
325
573
|
type: z.ZodLiteral<"event">;
|
|
326
574
|
eventType: z.ZodEnum<{
|
|
575
|
+
resolved: "resolved";
|
|
327
576
|
assigned: "assigned";
|
|
328
577
|
unassigned: "unassigned";
|
|
329
578
|
participant_requested: "participant_requested";
|
|
@@ -333,7 +582,6 @@ declare const realtimeSchema: {
|
|
|
333
582
|
priority_changed: "priority_changed";
|
|
334
583
|
tag_added: "tag_added";
|
|
335
584
|
tag_removed: "tag_removed";
|
|
336
|
-
resolved: "resolved";
|
|
337
585
|
reopened: "reopened";
|
|
338
586
|
visitor_blocked: "visitor_blocked";
|
|
339
587
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -344,20 +592,6 @@ declare const realtimeSchema: {
|
|
|
344
592
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
345
593
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
346
594
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
-
type: z.ZodLiteral<"image">;
|
|
349
|
-
url: z.ZodString;
|
|
350
|
-
mediaType: z.ZodString;
|
|
351
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
352
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
353
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
354
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
355
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
356
|
-
type: z.ZodLiteral<"file">;
|
|
357
|
-
url: z.ZodString;
|
|
358
|
-
mediaType: z.ZodString;
|
|
359
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
360
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
361
595
|
}, z.core.$strip>, z.ZodObject<{
|
|
362
596
|
type: z.ZodLiteral<"metadata">;
|
|
363
597
|
source: z.ZodEnum<{
|
|
@@ -446,6 +680,7 @@ declare const realtimeSchema: {
|
|
|
446
680
|
conversationId: z.ZodString;
|
|
447
681
|
organizationId: z.ZodString;
|
|
448
682
|
type: z.ZodEnum<{
|
|
683
|
+
resolved: "resolved";
|
|
449
684
|
assigned: "assigned";
|
|
450
685
|
unassigned: "unassigned";
|
|
451
686
|
participant_requested: "participant_requested";
|
|
@@ -455,7 +690,6 @@ declare const realtimeSchema: {
|
|
|
455
690
|
priority_changed: "priority_changed";
|
|
456
691
|
tag_added: "tag_added";
|
|
457
692
|
tag_removed: "tag_removed";
|
|
458
|
-
resolved: "resolved";
|
|
459
693
|
reopened: "reopened";
|
|
460
694
|
visitor_blocked: "visitor_blocked";
|
|
461
695
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -491,6 +725,125 @@ declare const realtimeSchema: {
|
|
|
491
725
|
}, z.core.$strip>;
|
|
492
726
|
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
493
727
|
}, z.core.$strip>;
|
|
728
|
+
readonly aiAgentProcessingStarted: z.ZodObject<{
|
|
729
|
+
websiteId: z.ZodString;
|
|
730
|
+
organizationId: z.ZodString;
|
|
731
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
732
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
733
|
+
conversationId: z.ZodString;
|
|
734
|
+
aiAgentId: z.ZodString;
|
|
735
|
+
workflowRunId: z.ZodString;
|
|
736
|
+
triggerMessageId: z.ZodString;
|
|
737
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
738
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
739
|
+
all: "all";
|
|
740
|
+
dashboard: "dashboard";
|
|
741
|
+
}>>;
|
|
742
|
+
}, z.core.$strip>;
|
|
743
|
+
readonly aiAgentDecisionMade: z.ZodObject<{
|
|
744
|
+
websiteId: z.ZodString;
|
|
745
|
+
organizationId: z.ZodString;
|
|
746
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
747
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
748
|
+
conversationId: z.ZodString;
|
|
749
|
+
aiAgentId: z.ZodString;
|
|
750
|
+
workflowRunId: z.ZodString;
|
|
751
|
+
shouldAct: z.ZodBoolean;
|
|
752
|
+
reason: z.ZodString;
|
|
753
|
+
mode: z.ZodEnum<{
|
|
754
|
+
respond_to_visitor: "respond_to_visitor";
|
|
755
|
+
respond_to_command: "respond_to_command";
|
|
756
|
+
background_only: "background_only";
|
|
757
|
+
}>;
|
|
758
|
+
audience: z.ZodEnum<{
|
|
759
|
+
all: "all";
|
|
760
|
+
dashboard: "dashboard";
|
|
761
|
+
}>;
|
|
762
|
+
}, z.core.$strip>;
|
|
763
|
+
readonly aiAgentProcessingProgress: z.ZodObject<{
|
|
764
|
+
websiteId: z.ZodString;
|
|
765
|
+
organizationId: z.ZodString;
|
|
766
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
767
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
768
|
+
conversationId: z.ZodString;
|
|
769
|
+
aiAgentId: z.ZodString;
|
|
770
|
+
workflowRunId: z.ZodString;
|
|
771
|
+
phase: z.ZodString;
|
|
772
|
+
message: z.ZodNullable<z.ZodString>;
|
|
773
|
+
tool: z.ZodOptional<z.ZodObject<{
|
|
774
|
+
toolCallId: z.ZodString;
|
|
775
|
+
toolName: z.ZodString;
|
|
776
|
+
state: z.ZodEnum<{
|
|
777
|
+
error: "error";
|
|
778
|
+
partial: "partial";
|
|
779
|
+
result: "result";
|
|
780
|
+
}>;
|
|
781
|
+
}, z.core.$strip>>;
|
|
782
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
783
|
+
all: "all";
|
|
784
|
+
dashboard: "dashboard";
|
|
785
|
+
}>>;
|
|
786
|
+
}, z.core.$strip>;
|
|
787
|
+
readonly aiAgentProcessingCompleted: z.ZodObject<{
|
|
788
|
+
websiteId: z.ZodString;
|
|
789
|
+
organizationId: z.ZodString;
|
|
790
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
791
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
792
|
+
conversationId: z.ZodString;
|
|
793
|
+
aiAgentId: z.ZodString;
|
|
794
|
+
workflowRunId: z.ZodString;
|
|
795
|
+
status: z.ZodEnum<{
|
|
796
|
+
success: "success";
|
|
797
|
+
error: "error";
|
|
798
|
+
skipped: "skipped";
|
|
799
|
+
cancelled: "cancelled";
|
|
800
|
+
}>;
|
|
801
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
802
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
803
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
804
|
+
all: "all";
|
|
805
|
+
dashboard: "dashboard";
|
|
806
|
+
}>>;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
readonly timelineItemUpdated: z.ZodObject<{
|
|
809
|
+
websiteId: z.ZodString;
|
|
810
|
+
organizationId: z.ZodString;
|
|
811
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
812
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
813
|
+
conversationId: z.ZodString;
|
|
814
|
+
item: z.ZodObject<{
|
|
815
|
+
id: z.ZodString;
|
|
816
|
+
conversationId: z.ZodString;
|
|
817
|
+
organizationId: z.ZodString;
|
|
818
|
+
visibility: z.ZodEnum<{
|
|
819
|
+
public: "public";
|
|
820
|
+
private: "private";
|
|
821
|
+
}>;
|
|
822
|
+
type: z.ZodEnum<{
|
|
823
|
+
message: "message";
|
|
824
|
+
event: "event";
|
|
825
|
+
identification: "identification";
|
|
826
|
+
}>;
|
|
827
|
+
text: z.ZodNullable<z.ZodString>;
|
|
828
|
+
parts: z.ZodArray<z.ZodUnknown>;
|
|
829
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
830
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
831
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
832
|
+
createdAt: z.ZodString;
|
|
833
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
834
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
835
|
+
}, z.core.$strip>;
|
|
836
|
+
}, z.core.$strip>;
|
|
837
|
+
readonly timelineItemPartUpdated: z.ZodObject<{
|
|
838
|
+
websiteId: z.ZodString;
|
|
839
|
+
organizationId: z.ZodString;
|
|
840
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
841
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
842
|
+
conversationId: z.ZodString;
|
|
843
|
+
timelineItemId: z.ZodString;
|
|
844
|
+
partIndex: z.ZodNumber;
|
|
845
|
+
part: z.ZodUnknown;
|
|
846
|
+
}, z.core.$strip>;
|
|
494
847
|
readonly crawlStarted: z.ZodObject<{
|
|
495
848
|
websiteId: z.ZodString;
|
|
496
849
|
organizationId: z.ZodString;
|
|
@@ -590,6 +943,51 @@ declare const realtimeSchema: {
|
|
|
590
943
|
knowledgeId: z.ZodString;
|
|
591
944
|
}, z.core.$strip>;
|
|
592
945
|
}, z.core.$strip>;
|
|
946
|
+
readonly trainingStarted: z.ZodObject<{
|
|
947
|
+
websiteId: z.ZodString;
|
|
948
|
+
organizationId: z.ZodString;
|
|
949
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
950
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
951
|
+
aiAgentId: z.ZodString;
|
|
952
|
+
totalItems: z.ZodNumber;
|
|
953
|
+
}, z.core.$strip>;
|
|
954
|
+
readonly trainingProgress: z.ZodObject<{
|
|
955
|
+
websiteId: z.ZodString;
|
|
956
|
+
organizationId: z.ZodString;
|
|
957
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
958
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
959
|
+
aiAgentId: z.ZodString;
|
|
960
|
+
processedItems: z.ZodNumber;
|
|
961
|
+
totalItems: z.ZodNumber;
|
|
962
|
+
currentItem: z.ZodOptional<z.ZodObject<{
|
|
963
|
+
id: z.ZodString;
|
|
964
|
+
title: z.ZodNullable<z.ZodString>;
|
|
965
|
+
type: z.ZodEnum<{
|
|
966
|
+
url: "url";
|
|
967
|
+
faq: "faq";
|
|
968
|
+
article: "article";
|
|
969
|
+
}>;
|
|
970
|
+
}, z.core.$strip>>;
|
|
971
|
+
percentage: z.ZodNumber;
|
|
972
|
+
}, z.core.$strip>;
|
|
973
|
+
readonly trainingCompleted: z.ZodObject<{
|
|
974
|
+
websiteId: z.ZodString;
|
|
975
|
+
organizationId: z.ZodString;
|
|
976
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
977
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
978
|
+
aiAgentId: z.ZodString;
|
|
979
|
+
totalItems: z.ZodNumber;
|
|
980
|
+
totalChunks: z.ZodNumber;
|
|
981
|
+
duration: z.ZodNumber;
|
|
982
|
+
}, z.core.$strip>;
|
|
983
|
+
readonly trainingFailed: z.ZodObject<{
|
|
984
|
+
websiteId: z.ZodString;
|
|
985
|
+
organizationId: z.ZodString;
|
|
986
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
987
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
988
|
+
aiAgentId: z.ZodString;
|
|
989
|
+
error: z.ZodString;
|
|
990
|
+
}, z.core.$strip>;
|
|
593
991
|
};
|
|
594
992
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
595
993
|
type RealtimeEventPayload<T extends RealtimeEventType> = z.infer<(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,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB"}
|