@cossistant/types 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/api/ai-agent.d.ts +28 -40
- package/api/ai-agent.d.ts.map +1 -1
- package/api/ai-agent.js +17 -25
- package/api/ai-agent.js.map +1 -1
- package/api/common.d.ts.map +1 -1
- package/api/contact.d.ts.map +1 -1
- package/api/conversation.d.ts +468 -71
- package/api/conversation.d.ts.map +1 -1
- package/api/conversation.js +13 -1
- package/api/conversation.js.map +1 -1
- package/api/index.d.ts +4 -4
- package/api/index.js +4 -4
- package/api/knowledge.d.ts +57 -25
- package/api/knowledge.d.ts.map +1 -1
- package/api/knowledge.js +61 -11
- package/api/knowledge.js.map +1 -1
- package/api/link-source.d.ts +6 -4
- package/api/link-source.d.ts.map +1 -1
- package/api/link-source.js +8 -0
- package/api/link-source.js.map +1 -1
- package/api/timeline-item.d.ts +574 -85
- package/api/timeline-item.d.ts.map +1 -1
- package/api/timeline-item.js +68 -20
- package/api/timeline-item.js.map +1 -1
- package/index.d.ts +6 -6
- package/index.js +6 -6
- package/package.json +1 -1
- package/realtime-events.d.ts +445 -43
- package/realtime-events.d.ts.map +1 -1
- package/realtime-events.js +116 -1
- package/realtime-events.js.map +1 -1
- package/schemas.d.ts +92 -14
- package/schemas.d.ts.map +1 -1
- package/schemas.js +2 -0
- package/schemas.js.map +1 -1
- package/trpc/conversation.d.ts +406 -57
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/conversation.js +32 -1
- package/trpc/conversation.js.map +1 -1
- package/trpc/visitor.d.ts +2 -0
- package/trpc/visitor.d.ts.map +1 -1
package/realtime-events.d.ts
CHANGED
|
@@ -60,6 +60,12 @@ declare const realtimeSchema: {
|
|
|
60
60
|
conversationId: z.ZodString;
|
|
61
61
|
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
62
62
|
lastSeenAt: z.ZodString;
|
|
63
|
+
actorType: z.ZodEnum<{
|
|
64
|
+
visitor: "visitor";
|
|
65
|
+
user: "user";
|
|
66
|
+
ai_agent: "ai_agent";
|
|
67
|
+
}>;
|
|
68
|
+
actorId: z.ZodString;
|
|
63
69
|
}, z.core.$strip>;
|
|
64
70
|
readonly conversationTyping: z.ZodObject<{
|
|
65
71
|
websiteId: z.ZodString;
|
|
@@ -118,6 +124,8 @@ declare const realtimeSchema: {
|
|
|
118
124
|
resolved: "resolved";
|
|
119
125
|
spam: "spam";
|
|
120
126
|
}>>;
|
|
127
|
+
visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
128
|
+
visitorRatingAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
129
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
122
130
|
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
131
|
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
@@ -138,6 +146,96 @@ declare const realtimeSchema: {
|
|
|
138
146
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
139
147
|
type: z.ZodLiteral<"text">;
|
|
140
148
|
text: z.ZodString;
|
|
149
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
streaming: "streaming";
|
|
151
|
+
done: "done";
|
|
152
|
+
}>>;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"reasoning">;
|
|
155
|
+
text: z.ZodString;
|
|
156
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
157
|
+
streaming: "streaming";
|
|
158
|
+
done: "done";
|
|
159
|
+
}>>;
|
|
160
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
public: "public";
|
|
164
|
+
private: "private";
|
|
165
|
+
}>>;
|
|
166
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
167
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
}, z.core.$loose>>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
type: z.ZodString;
|
|
172
|
+
toolCallId: z.ZodString;
|
|
173
|
+
toolName: z.ZodString;
|
|
174
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
175
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
176
|
+
state: z.ZodEnum<{
|
|
177
|
+
error: "error";
|
|
178
|
+
partial: "partial";
|
|
179
|
+
result: "result";
|
|
180
|
+
}>;
|
|
181
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
182
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
185
|
+
public: "public";
|
|
186
|
+
private: "private";
|
|
187
|
+
}>>;
|
|
188
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
189
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
}, z.core.$loose>>;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
type: z.ZodLiteral<"source-url">;
|
|
194
|
+
sourceId: z.ZodString;
|
|
195
|
+
url: z.ZodString;
|
|
196
|
+
title: z.ZodOptional<z.ZodString>;
|
|
197
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
public: "public";
|
|
201
|
+
private: "private";
|
|
202
|
+
}>>;
|
|
203
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
204
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
}, z.core.$loose>>;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
type: z.ZodLiteral<"source-document">;
|
|
209
|
+
sourceId: z.ZodString;
|
|
210
|
+
mediaType: z.ZodString;
|
|
211
|
+
title: z.ZodString;
|
|
212
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
213
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
214
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
public: "public";
|
|
217
|
+
private: "private";
|
|
218
|
+
}>>;
|
|
219
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
220
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
}, z.core.$loose>>;
|
|
223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
224
|
+
type: z.ZodLiteral<"step-start">;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"file">;
|
|
227
|
+
url: z.ZodString;
|
|
228
|
+
mediaType: z.ZodString;
|
|
229
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
230
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
+
type: z.ZodLiteral<"image">;
|
|
233
|
+
url: z.ZodString;
|
|
234
|
+
mediaType: z.ZodString;
|
|
235
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
236
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
141
239
|
}, z.core.$strip>, z.ZodObject<{
|
|
142
240
|
type: z.ZodLiteral<"event">;
|
|
143
241
|
eventType: z.ZodEnum<{
|
|
@@ -161,20 +259,6 @@ declare const realtimeSchema: {
|
|
|
161
259
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
162
260
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
163
261
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
-
type: z.ZodLiteral<"image">;
|
|
166
|
-
url: z.ZodString;
|
|
167
|
-
mediaType: z.ZodString;
|
|
168
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
169
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
171
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
172
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
-
type: z.ZodLiteral<"file">;
|
|
174
|
-
url: z.ZodString;
|
|
175
|
-
mediaType: z.ZodString;
|
|
176
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
177
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
178
262
|
}, z.core.$strip>, z.ZodObject<{
|
|
179
263
|
type: z.ZodLiteral<"metadata">;
|
|
180
264
|
source: z.ZodEnum<{
|
|
@@ -223,6 +307,8 @@ declare const realtimeSchema: {
|
|
|
223
307
|
channel: z.ZodString;
|
|
224
308
|
title: z.ZodNullable<z.ZodString>;
|
|
225
309
|
resolutionTime: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
visitorRating: z.ZodNullable<z.ZodNumber>;
|
|
311
|
+
visitorRatingAt: z.ZodNullable<z.ZodString>;
|
|
226
312
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
227
313
|
firstResponseAt: z.ZodNullable<z.ZodString>;
|
|
228
314
|
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -257,6 +343,96 @@ declare const realtimeSchema: {
|
|
|
257
343
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
258
344
|
type: z.ZodLiteral<"text">;
|
|
259
345
|
text: z.ZodString;
|
|
346
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
347
|
+
streaming: "streaming";
|
|
348
|
+
done: "done";
|
|
349
|
+
}>>;
|
|
350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
351
|
+
type: z.ZodLiteral<"reasoning">;
|
|
352
|
+
text: z.ZodString;
|
|
353
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
streaming: "streaming";
|
|
355
|
+
done: "done";
|
|
356
|
+
}>>;
|
|
357
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
358
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
public: "public";
|
|
361
|
+
private: "private";
|
|
362
|
+
}>>;
|
|
363
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
364
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
}, z.core.$loose>>;
|
|
367
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
368
|
+
type: z.ZodString;
|
|
369
|
+
toolCallId: z.ZodString;
|
|
370
|
+
toolName: z.ZodString;
|
|
371
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
372
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
373
|
+
state: z.ZodEnum<{
|
|
374
|
+
error: "error";
|
|
375
|
+
partial: "partial";
|
|
376
|
+
result: "result";
|
|
377
|
+
}>;
|
|
378
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
379
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
380
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
381
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
382
|
+
public: "public";
|
|
383
|
+
private: "private";
|
|
384
|
+
}>>;
|
|
385
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
386
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
387
|
+
}, z.core.$strip>>;
|
|
388
|
+
}, z.core.$loose>>;
|
|
389
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
390
|
+
type: z.ZodLiteral<"source-url">;
|
|
391
|
+
sourceId: z.ZodString;
|
|
392
|
+
url: z.ZodString;
|
|
393
|
+
title: z.ZodOptional<z.ZodString>;
|
|
394
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
397
|
+
public: "public";
|
|
398
|
+
private: "private";
|
|
399
|
+
}>>;
|
|
400
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
401
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
}, z.core.$loose>>;
|
|
404
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
405
|
+
type: z.ZodLiteral<"source-document">;
|
|
406
|
+
sourceId: z.ZodString;
|
|
407
|
+
mediaType: z.ZodString;
|
|
408
|
+
title: z.ZodString;
|
|
409
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
410
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
412
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
413
|
+
public: "public";
|
|
414
|
+
private: "private";
|
|
415
|
+
}>>;
|
|
416
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
417
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
}, z.core.$loose>>;
|
|
420
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
421
|
+
type: z.ZodLiteral<"step-start">;
|
|
422
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
423
|
+
type: z.ZodLiteral<"file">;
|
|
424
|
+
url: z.ZodString;
|
|
425
|
+
mediaType: z.ZodString;
|
|
426
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
427
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
428
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
429
|
+
type: z.ZodLiteral<"image">;
|
|
430
|
+
url: z.ZodString;
|
|
431
|
+
mediaType: z.ZodString;
|
|
432
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
433
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
260
436
|
}, z.core.$strip>, z.ZodObject<{
|
|
261
437
|
type: z.ZodLiteral<"event">;
|
|
262
438
|
eventType: z.ZodEnum<{
|
|
@@ -280,20 +456,6 @@ declare const realtimeSchema: {
|
|
|
280
456
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
281
457
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
282
458
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
284
|
-
type: z.ZodLiteral<"image">;
|
|
285
|
-
url: z.ZodString;
|
|
286
|
-
mediaType: z.ZodString;
|
|
287
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
288
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
290
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
291
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
-
type: z.ZodLiteral<"file">;
|
|
293
|
-
url: z.ZodString;
|
|
294
|
-
mediaType: z.ZodString;
|
|
295
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
296
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
297
459
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
460
|
type: z.ZodLiteral<"metadata">;
|
|
299
461
|
source: z.ZodEnum<{
|
|
@@ -326,6 +488,96 @@ declare const realtimeSchema: {
|
|
|
326
488
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
327
489
|
type: z.ZodLiteral<"text">;
|
|
328
490
|
text: z.ZodString;
|
|
491
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
492
|
+
streaming: "streaming";
|
|
493
|
+
done: "done";
|
|
494
|
+
}>>;
|
|
495
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
496
|
+
type: z.ZodLiteral<"reasoning">;
|
|
497
|
+
text: z.ZodString;
|
|
498
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
streaming: "streaming";
|
|
500
|
+
done: "done";
|
|
501
|
+
}>>;
|
|
502
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
505
|
+
public: "public";
|
|
506
|
+
private: "private";
|
|
507
|
+
}>>;
|
|
508
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
509
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.core.$strip>>;
|
|
511
|
+
}, z.core.$loose>>;
|
|
512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
+
type: z.ZodString;
|
|
514
|
+
toolCallId: z.ZodString;
|
|
515
|
+
toolName: z.ZodString;
|
|
516
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
517
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
518
|
+
state: z.ZodEnum<{
|
|
519
|
+
error: "error";
|
|
520
|
+
partial: "partial";
|
|
521
|
+
result: "result";
|
|
522
|
+
}>;
|
|
523
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
524
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
525
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
527
|
+
public: "public";
|
|
528
|
+
private: "private";
|
|
529
|
+
}>>;
|
|
530
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
531
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
532
|
+
}, z.core.$strip>>;
|
|
533
|
+
}, z.core.$loose>>;
|
|
534
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
535
|
+
type: z.ZodLiteral<"source-url">;
|
|
536
|
+
sourceId: z.ZodString;
|
|
537
|
+
url: z.ZodString;
|
|
538
|
+
title: z.ZodOptional<z.ZodString>;
|
|
539
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
540
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
541
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
542
|
+
public: "public";
|
|
543
|
+
private: "private";
|
|
544
|
+
}>>;
|
|
545
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
546
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
547
|
+
}, z.core.$strip>>;
|
|
548
|
+
}, z.core.$loose>>;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
type: z.ZodLiteral<"source-document">;
|
|
551
|
+
sourceId: z.ZodString;
|
|
552
|
+
mediaType: z.ZodString;
|
|
553
|
+
title: z.ZodString;
|
|
554
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
555
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
557
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
558
|
+
public: "public";
|
|
559
|
+
private: "private";
|
|
560
|
+
}>>;
|
|
561
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
562
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
}, z.core.$loose>>;
|
|
565
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
566
|
+
type: z.ZodLiteral<"step-start">;
|
|
567
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
568
|
+
type: z.ZodLiteral<"file">;
|
|
569
|
+
url: z.ZodString;
|
|
570
|
+
mediaType: z.ZodString;
|
|
571
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
572
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
+
type: z.ZodLiteral<"image">;
|
|
575
|
+
url: z.ZodString;
|
|
576
|
+
mediaType: z.ZodString;
|
|
577
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
578
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
580
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
329
581
|
}, z.core.$strip>, z.ZodObject<{
|
|
330
582
|
type: z.ZodLiteral<"event">;
|
|
331
583
|
eventType: z.ZodEnum<{
|
|
@@ -349,20 +601,6 @@ declare const realtimeSchema: {
|
|
|
349
601
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
350
602
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
351
603
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
-
type: z.ZodLiteral<"image">;
|
|
354
|
-
url: z.ZodString;
|
|
355
|
-
mediaType: z.ZodString;
|
|
356
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
357
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
358
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
359
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
360
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
361
|
-
type: z.ZodLiteral<"file">;
|
|
362
|
-
url: z.ZodString;
|
|
363
|
-
mediaType: z.ZodString;
|
|
364
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
365
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
366
604
|
}, z.core.$strip>, z.ZodObject<{
|
|
367
605
|
type: z.ZodLiteral<"metadata">;
|
|
368
606
|
source: z.ZodEnum<{
|
|
@@ -496,6 +734,125 @@ declare const realtimeSchema: {
|
|
|
496
734
|
}, z.core.$strip>;
|
|
497
735
|
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
498
736
|
}, z.core.$strip>;
|
|
737
|
+
readonly aiAgentProcessingStarted: z.ZodObject<{
|
|
738
|
+
websiteId: z.ZodString;
|
|
739
|
+
organizationId: z.ZodString;
|
|
740
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
741
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
742
|
+
conversationId: z.ZodString;
|
|
743
|
+
aiAgentId: z.ZodString;
|
|
744
|
+
workflowRunId: z.ZodString;
|
|
745
|
+
triggerMessageId: z.ZodString;
|
|
746
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
747
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
748
|
+
all: "all";
|
|
749
|
+
dashboard: "dashboard";
|
|
750
|
+
}>>;
|
|
751
|
+
}, z.core.$strip>;
|
|
752
|
+
readonly aiAgentDecisionMade: z.ZodObject<{
|
|
753
|
+
websiteId: z.ZodString;
|
|
754
|
+
organizationId: z.ZodString;
|
|
755
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
756
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
757
|
+
conversationId: z.ZodString;
|
|
758
|
+
aiAgentId: z.ZodString;
|
|
759
|
+
workflowRunId: z.ZodString;
|
|
760
|
+
shouldAct: z.ZodBoolean;
|
|
761
|
+
reason: z.ZodString;
|
|
762
|
+
mode: z.ZodEnum<{
|
|
763
|
+
respond_to_visitor: "respond_to_visitor";
|
|
764
|
+
respond_to_command: "respond_to_command";
|
|
765
|
+
background_only: "background_only";
|
|
766
|
+
}>;
|
|
767
|
+
audience: z.ZodEnum<{
|
|
768
|
+
all: "all";
|
|
769
|
+
dashboard: "dashboard";
|
|
770
|
+
}>;
|
|
771
|
+
}, z.core.$strip>;
|
|
772
|
+
readonly aiAgentProcessingProgress: z.ZodObject<{
|
|
773
|
+
websiteId: z.ZodString;
|
|
774
|
+
organizationId: z.ZodString;
|
|
775
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
776
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
777
|
+
conversationId: z.ZodString;
|
|
778
|
+
aiAgentId: z.ZodString;
|
|
779
|
+
workflowRunId: z.ZodString;
|
|
780
|
+
phase: z.ZodString;
|
|
781
|
+
message: z.ZodNullable<z.ZodString>;
|
|
782
|
+
tool: z.ZodOptional<z.ZodObject<{
|
|
783
|
+
toolCallId: z.ZodString;
|
|
784
|
+
toolName: z.ZodString;
|
|
785
|
+
state: z.ZodEnum<{
|
|
786
|
+
error: "error";
|
|
787
|
+
partial: "partial";
|
|
788
|
+
result: "result";
|
|
789
|
+
}>;
|
|
790
|
+
}, z.core.$strip>>;
|
|
791
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
792
|
+
all: "all";
|
|
793
|
+
dashboard: "dashboard";
|
|
794
|
+
}>>;
|
|
795
|
+
}, z.core.$strip>;
|
|
796
|
+
readonly aiAgentProcessingCompleted: z.ZodObject<{
|
|
797
|
+
websiteId: z.ZodString;
|
|
798
|
+
organizationId: z.ZodString;
|
|
799
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
800
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
801
|
+
conversationId: z.ZodString;
|
|
802
|
+
aiAgentId: z.ZodString;
|
|
803
|
+
workflowRunId: z.ZodString;
|
|
804
|
+
status: z.ZodEnum<{
|
|
805
|
+
error: "error";
|
|
806
|
+
success: "success";
|
|
807
|
+
skipped: "skipped";
|
|
808
|
+
cancelled: "cancelled";
|
|
809
|
+
}>;
|
|
810
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
811
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
813
|
+
all: "all";
|
|
814
|
+
dashboard: "dashboard";
|
|
815
|
+
}>>;
|
|
816
|
+
}, z.core.$strip>;
|
|
817
|
+
readonly timelineItemUpdated: z.ZodObject<{
|
|
818
|
+
websiteId: z.ZodString;
|
|
819
|
+
organizationId: z.ZodString;
|
|
820
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
821
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
822
|
+
conversationId: z.ZodString;
|
|
823
|
+
item: z.ZodObject<{
|
|
824
|
+
id: z.ZodString;
|
|
825
|
+
conversationId: z.ZodString;
|
|
826
|
+
organizationId: z.ZodString;
|
|
827
|
+
visibility: z.ZodEnum<{
|
|
828
|
+
public: "public";
|
|
829
|
+
private: "private";
|
|
830
|
+
}>;
|
|
831
|
+
type: z.ZodEnum<{
|
|
832
|
+
message: "message";
|
|
833
|
+
event: "event";
|
|
834
|
+
identification: "identification";
|
|
835
|
+
}>;
|
|
836
|
+
text: z.ZodNullable<z.ZodString>;
|
|
837
|
+
parts: z.ZodArray<z.ZodUnknown>;
|
|
838
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
839
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
840
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
841
|
+
createdAt: z.ZodString;
|
|
842
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
843
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
844
|
+
}, z.core.$strip>;
|
|
845
|
+
}, z.core.$strip>;
|
|
846
|
+
readonly timelineItemPartUpdated: z.ZodObject<{
|
|
847
|
+
websiteId: z.ZodString;
|
|
848
|
+
organizationId: z.ZodString;
|
|
849
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
850
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
851
|
+
conversationId: z.ZodString;
|
|
852
|
+
timelineItemId: z.ZodString;
|
|
853
|
+
partIndex: z.ZodNumber;
|
|
854
|
+
part: z.ZodUnknown;
|
|
855
|
+
}, z.core.$strip>;
|
|
499
856
|
readonly crawlStarted: z.ZodObject<{
|
|
500
857
|
websiteId: z.ZodString;
|
|
501
858
|
organizationId: z.ZodString;
|
|
@@ -560,10 +917,10 @@ declare const realtimeSchema: {
|
|
|
560
917
|
linkSourceId: z.ZodString;
|
|
561
918
|
status: z.ZodEnum<{
|
|
562
919
|
pending: "pending";
|
|
563
|
-
mapping: "mapping";
|
|
564
920
|
crawling: "crawling";
|
|
565
921
|
completed: "completed";
|
|
566
922
|
failed: "failed";
|
|
923
|
+
mapping: "mapping";
|
|
567
924
|
}>;
|
|
568
925
|
discoveredPagesCount: z.ZodOptional<z.ZodNumber>;
|
|
569
926
|
crawledPagesCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -595,6 +952,51 @@ declare const realtimeSchema: {
|
|
|
595
952
|
knowledgeId: z.ZodString;
|
|
596
953
|
}, z.core.$strip>;
|
|
597
954
|
}, z.core.$strip>;
|
|
955
|
+
readonly trainingStarted: z.ZodObject<{
|
|
956
|
+
websiteId: z.ZodString;
|
|
957
|
+
organizationId: z.ZodString;
|
|
958
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
959
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
960
|
+
aiAgentId: z.ZodString;
|
|
961
|
+
totalItems: z.ZodNumber;
|
|
962
|
+
}, z.core.$strip>;
|
|
963
|
+
readonly trainingProgress: z.ZodObject<{
|
|
964
|
+
websiteId: z.ZodString;
|
|
965
|
+
organizationId: z.ZodString;
|
|
966
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
967
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
968
|
+
aiAgentId: z.ZodString;
|
|
969
|
+
processedItems: z.ZodNumber;
|
|
970
|
+
totalItems: z.ZodNumber;
|
|
971
|
+
currentItem: z.ZodOptional<z.ZodObject<{
|
|
972
|
+
id: z.ZodString;
|
|
973
|
+
title: z.ZodNullable<z.ZodString>;
|
|
974
|
+
type: z.ZodEnum<{
|
|
975
|
+
url: "url";
|
|
976
|
+
faq: "faq";
|
|
977
|
+
article: "article";
|
|
978
|
+
}>;
|
|
979
|
+
}, z.core.$strip>>;
|
|
980
|
+
percentage: z.ZodNumber;
|
|
981
|
+
}, z.core.$strip>;
|
|
982
|
+
readonly trainingCompleted: z.ZodObject<{
|
|
983
|
+
websiteId: z.ZodString;
|
|
984
|
+
organizationId: z.ZodString;
|
|
985
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
986
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
987
|
+
aiAgentId: z.ZodString;
|
|
988
|
+
totalItems: z.ZodNumber;
|
|
989
|
+
totalChunks: z.ZodNumber;
|
|
990
|
+
duration: z.ZodNumber;
|
|
991
|
+
}, z.core.$strip>;
|
|
992
|
+
readonly trainingFailed: z.ZodObject<{
|
|
993
|
+
websiteId: z.ZodString;
|
|
994
|
+
organizationId: z.ZodString;
|
|
995
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
996
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
997
|
+
aiAgentId: z.ZodString;
|
|
998
|
+
error: z.ZodString;
|
|
999
|
+
}, z.core.$strip>;
|
|
598
1000
|
};
|
|
599
1001
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
600
1002
|
type RealtimeEventPayload<T extends RealtimeEventType> = z.infer<(typeof realtimeSchema)[T]>;
|
package/realtime-events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;cAUa,mBAAiB,CAAA,CAAA;;EAAjB,cAAA,aAKX;;;;;;;;AAL4B,cAWjB,cAXiB,EAAA;EAAA,SAAA,aAAA,aAAA,CAAA;IAWjB,SAAA,
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;cAUa,mBAAiB,CAAA,CAAA;;EAAjB,cAAA,aAKX;;;;;;;;AAL4B,cAWjB,cAXiB,EAAA;EAAA,SAAA,aAAA,aAAA,CAAA;IAWjB,SAAA,aA4VH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEE,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB;;;;iBAKN,gCAAgC,yBACzC,mBAEJ,qBAAqB;;;;iBAQR,gBAAA,yBAAyC;iBAIzC,0BAA0B,0BAClC,cAAc,KACnB,qBAAqB"}
|