@cossistant/types 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/api/ai-agent.d.ts +8 -40
- package/api/ai-agent.d.ts.map +1 -1
- package/api/ai-agent.js +10 -26
- package/api/ai-agent.js.map +1 -1
- package/api/common.d.ts.map +1 -1
- package/api/conversation.d.ts +458 -78
- package/api/conversation.d.ts.map +1 -1
- package/api/index.d.ts +3 -3
- package/api/index.js +3 -3
- 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 +2 -0
- 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 +580 -91
- 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 +4 -4
- package/index.js +4 -4
- package/package.json +1 -1
- package/realtime-events.d.ts +446 -48
- 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 -16
- package/schemas.d.ts.map +1 -1
- package/trpc/conversation.d.ts +369 -65
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/visitor.d.ts +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;
|
|
@@ -114,8 +120,8 @@ declare const realtimeSchema: {
|
|
|
114
120
|
visitorId: z.ZodString;
|
|
115
121
|
websiteId: z.ZodString;
|
|
116
122
|
status: z.ZodDefault<z.ZodEnum<{
|
|
117
|
-
open: "open";
|
|
118
123
|
resolved: "resolved";
|
|
124
|
+
open: "open";
|
|
119
125
|
spam: "spam";
|
|
120
126
|
}>>;
|
|
121
127
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -138,10 +144,99 @@ declare const realtimeSchema: {
|
|
|
138
144
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
139
145
|
type: z.ZodLiteral<"text">;
|
|
140
146
|
text: z.ZodString;
|
|
147
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
streaming: "streaming";
|
|
149
|
+
done: "done";
|
|
150
|
+
}>>;
|
|
151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
152
|
+
type: z.ZodLiteral<"reasoning">;
|
|
153
|
+
text: z.ZodString;
|
|
154
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
streaming: "streaming";
|
|
156
|
+
done: "done";
|
|
157
|
+
}>>;
|
|
158
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
161
|
+
public: "public";
|
|
162
|
+
private: "private";
|
|
163
|
+
}>>;
|
|
164
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
165
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
}, z.core.$loose>>;
|
|
168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
+
type: z.ZodString;
|
|
170
|
+
toolCallId: z.ZodString;
|
|
171
|
+
toolName: z.ZodString;
|
|
172
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
173
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
174
|
+
state: z.ZodEnum<{
|
|
175
|
+
error: "error";
|
|
176
|
+
partial: "partial";
|
|
177
|
+
result: "result";
|
|
178
|
+
}>;
|
|
179
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
180
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
183
|
+
public: "public";
|
|
184
|
+
private: "private";
|
|
185
|
+
}>>;
|
|
186
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
187
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
}, z.core.$loose>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
type: z.ZodLiteral<"source-url">;
|
|
192
|
+
sourceId: z.ZodString;
|
|
193
|
+
url: z.ZodString;
|
|
194
|
+
title: z.ZodOptional<z.ZodString>;
|
|
195
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
public: "public";
|
|
199
|
+
private: "private";
|
|
200
|
+
}>>;
|
|
201
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
202
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>>;
|
|
204
|
+
}, z.core.$loose>>;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
type: z.ZodLiteral<"source-document">;
|
|
207
|
+
sourceId: z.ZodString;
|
|
208
|
+
mediaType: z.ZodString;
|
|
209
|
+
title: z.ZodString;
|
|
210
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
211
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
public: "public";
|
|
215
|
+
private: "private";
|
|
216
|
+
}>>;
|
|
217
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
218
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>>;
|
|
220
|
+
}, z.core.$loose>>;
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
222
|
+
type: z.ZodLiteral<"step-start">;
|
|
223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
224
|
+
type: z.ZodLiteral<"file">;
|
|
225
|
+
url: z.ZodString;
|
|
226
|
+
mediaType: z.ZodString;
|
|
227
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
228
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
type: z.ZodLiteral<"image">;
|
|
231
|
+
url: z.ZodString;
|
|
232
|
+
mediaType: z.ZodString;
|
|
233
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
234
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
141
237
|
}, z.core.$strip>, z.ZodObject<{
|
|
142
238
|
type: z.ZodLiteral<"event">;
|
|
143
239
|
eventType: z.ZodEnum<{
|
|
144
|
-
resolved: "resolved";
|
|
145
240
|
assigned: "assigned";
|
|
146
241
|
unassigned: "unassigned";
|
|
147
242
|
participant_requested: "participant_requested";
|
|
@@ -151,6 +246,7 @@ declare const realtimeSchema: {
|
|
|
151
246
|
priority_changed: "priority_changed";
|
|
152
247
|
tag_added: "tag_added";
|
|
153
248
|
tag_removed: "tag_removed";
|
|
249
|
+
resolved: "resolved";
|
|
154
250
|
reopened: "reopened";
|
|
155
251
|
visitor_blocked: "visitor_blocked";
|
|
156
252
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -161,20 +257,6 @@ declare const realtimeSchema: {
|
|
|
161
257
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
162
258
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
163
259
|
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
260
|
}, z.core.$strip>, z.ZodObject<{
|
|
179
261
|
type: z.ZodLiteral<"metadata">;
|
|
180
262
|
source: z.ZodEnum<{
|
|
@@ -193,8 +275,8 @@ declare const realtimeSchema: {
|
|
|
193
275
|
header: z.ZodObject<{
|
|
194
276
|
id: z.ZodString;
|
|
195
277
|
status: z.ZodEnum<{
|
|
196
|
-
open: "open";
|
|
197
278
|
resolved: "resolved";
|
|
279
|
+
open: "open";
|
|
198
280
|
spam: "spam";
|
|
199
281
|
}>;
|
|
200
282
|
priority: z.ZodEnum<{
|
|
@@ -257,10 +339,99 @@ declare const realtimeSchema: {
|
|
|
257
339
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
258
340
|
type: z.ZodLiteral<"text">;
|
|
259
341
|
text: z.ZodString;
|
|
342
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
343
|
+
streaming: "streaming";
|
|
344
|
+
done: "done";
|
|
345
|
+
}>>;
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
type: z.ZodLiteral<"reasoning">;
|
|
348
|
+
text: z.ZodString;
|
|
349
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
350
|
+
streaming: "streaming";
|
|
351
|
+
done: "done";
|
|
352
|
+
}>>;
|
|
353
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
356
|
+
public: "public";
|
|
357
|
+
private: "private";
|
|
358
|
+
}>>;
|
|
359
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
360
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
361
|
+
}, z.core.$strip>>;
|
|
362
|
+
}, z.core.$loose>>;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
type: z.ZodString;
|
|
365
|
+
toolCallId: z.ZodString;
|
|
366
|
+
toolName: z.ZodString;
|
|
367
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
368
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
369
|
+
state: z.ZodEnum<{
|
|
370
|
+
error: "error";
|
|
371
|
+
partial: "partial";
|
|
372
|
+
result: "result";
|
|
373
|
+
}>;
|
|
374
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
375
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
376
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
public: "public";
|
|
379
|
+
private: "private";
|
|
380
|
+
}>>;
|
|
381
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
382
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
384
|
+
}, z.core.$loose>>;
|
|
385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
386
|
+
type: z.ZodLiteral<"source-url">;
|
|
387
|
+
sourceId: z.ZodString;
|
|
388
|
+
url: z.ZodString;
|
|
389
|
+
title: z.ZodOptional<z.ZodString>;
|
|
390
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
391
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
392
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
393
|
+
public: "public";
|
|
394
|
+
private: "private";
|
|
395
|
+
}>>;
|
|
396
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
397
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
398
|
+
}, z.core.$strip>>;
|
|
399
|
+
}, z.core.$loose>>;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"source-document">;
|
|
402
|
+
sourceId: z.ZodString;
|
|
403
|
+
mediaType: z.ZodString;
|
|
404
|
+
title: z.ZodString;
|
|
405
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
406
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
408
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
409
|
+
public: "public";
|
|
410
|
+
private: "private";
|
|
411
|
+
}>>;
|
|
412
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
413
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, z.core.$strip>>;
|
|
415
|
+
}, z.core.$loose>>;
|
|
416
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"step-start">;
|
|
418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
419
|
+
type: z.ZodLiteral<"file">;
|
|
420
|
+
url: z.ZodString;
|
|
421
|
+
mediaType: z.ZodString;
|
|
422
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
423
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
425
|
+
type: z.ZodLiteral<"image">;
|
|
426
|
+
url: z.ZodString;
|
|
427
|
+
mediaType: z.ZodString;
|
|
428
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
429
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
430
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
431
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
260
432
|
}, z.core.$strip>, z.ZodObject<{
|
|
261
433
|
type: z.ZodLiteral<"event">;
|
|
262
434
|
eventType: z.ZodEnum<{
|
|
263
|
-
resolved: "resolved";
|
|
264
435
|
assigned: "assigned";
|
|
265
436
|
unassigned: "unassigned";
|
|
266
437
|
participant_requested: "participant_requested";
|
|
@@ -270,6 +441,7 @@ declare const realtimeSchema: {
|
|
|
270
441
|
priority_changed: "priority_changed";
|
|
271
442
|
tag_added: "tag_added";
|
|
272
443
|
tag_removed: "tag_removed";
|
|
444
|
+
resolved: "resolved";
|
|
273
445
|
reopened: "reopened";
|
|
274
446
|
visitor_blocked: "visitor_blocked";
|
|
275
447
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -280,20 +452,6 @@ declare const realtimeSchema: {
|
|
|
280
452
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
281
453
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
282
454
|
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
455
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
456
|
type: z.ZodLiteral<"metadata">;
|
|
299
457
|
source: z.ZodEnum<{
|
|
@@ -326,10 +484,99 @@ declare const realtimeSchema: {
|
|
|
326
484
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
327
485
|
type: z.ZodLiteral<"text">;
|
|
328
486
|
text: z.ZodString;
|
|
487
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
488
|
+
streaming: "streaming";
|
|
489
|
+
done: "done";
|
|
490
|
+
}>>;
|
|
491
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
492
|
+
type: z.ZodLiteral<"reasoning">;
|
|
493
|
+
text: z.ZodString;
|
|
494
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
streaming: "streaming";
|
|
496
|
+
done: "done";
|
|
497
|
+
}>>;
|
|
498
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
500
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
501
|
+
public: "public";
|
|
502
|
+
private: "private";
|
|
503
|
+
}>>;
|
|
504
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
505
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
}, z.core.$loose>>;
|
|
508
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
509
|
+
type: z.ZodString;
|
|
510
|
+
toolCallId: z.ZodString;
|
|
511
|
+
toolName: z.ZodString;
|
|
512
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
513
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
514
|
+
state: z.ZodEnum<{
|
|
515
|
+
error: "error";
|
|
516
|
+
partial: "partial";
|
|
517
|
+
result: "result";
|
|
518
|
+
}>;
|
|
519
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
520
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
522
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
523
|
+
public: "public";
|
|
524
|
+
private: "private";
|
|
525
|
+
}>>;
|
|
526
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
527
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
}, z.core.$loose>>;
|
|
530
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
531
|
+
type: z.ZodLiteral<"source-url">;
|
|
532
|
+
sourceId: z.ZodString;
|
|
533
|
+
url: z.ZodString;
|
|
534
|
+
title: z.ZodOptional<z.ZodString>;
|
|
535
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
537
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
538
|
+
public: "public";
|
|
539
|
+
private: "private";
|
|
540
|
+
}>>;
|
|
541
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
542
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
543
|
+
}, z.core.$strip>>;
|
|
544
|
+
}, z.core.$loose>>;
|
|
545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
+
type: z.ZodLiteral<"source-document">;
|
|
547
|
+
sourceId: z.ZodString;
|
|
548
|
+
mediaType: z.ZodString;
|
|
549
|
+
title: z.ZodString;
|
|
550
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
551
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
552
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
553
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
public: "public";
|
|
555
|
+
private: "private";
|
|
556
|
+
}>>;
|
|
557
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
558
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
}, z.core.$loose>>;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
type: z.ZodLiteral<"step-start">;
|
|
563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
564
|
+
type: z.ZodLiteral<"file">;
|
|
565
|
+
url: z.ZodString;
|
|
566
|
+
mediaType: z.ZodString;
|
|
567
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
568
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
569
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
570
|
+
type: z.ZodLiteral<"image">;
|
|
571
|
+
url: z.ZodString;
|
|
572
|
+
mediaType: z.ZodString;
|
|
573
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
574
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
575
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
576
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
329
577
|
}, z.core.$strip>, z.ZodObject<{
|
|
330
578
|
type: z.ZodLiteral<"event">;
|
|
331
579
|
eventType: z.ZodEnum<{
|
|
332
|
-
resolved: "resolved";
|
|
333
580
|
assigned: "assigned";
|
|
334
581
|
unassigned: "unassigned";
|
|
335
582
|
participant_requested: "participant_requested";
|
|
@@ -339,6 +586,7 @@ declare const realtimeSchema: {
|
|
|
339
586
|
priority_changed: "priority_changed";
|
|
340
587
|
tag_added: "tag_added";
|
|
341
588
|
tag_removed: "tag_removed";
|
|
589
|
+
resolved: "resolved";
|
|
342
590
|
reopened: "reopened";
|
|
343
591
|
visitor_blocked: "visitor_blocked";
|
|
344
592
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -349,20 +597,6 @@ declare const realtimeSchema: {
|
|
|
349
597
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
350
598
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
351
599
|
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
600
|
}, z.core.$strip>, z.ZodObject<{
|
|
367
601
|
type: z.ZodLiteral<"metadata">;
|
|
368
602
|
source: z.ZodEnum<{
|
|
@@ -451,7 +685,6 @@ declare const realtimeSchema: {
|
|
|
451
685
|
conversationId: z.ZodString;
|
|
452
686
|
organizationId: z.ZodString;
|
|
453
687
|
type: z.ZodEnum<{
|
|
454
|
-
resolved: "resolved";
|
|
455
688
|
assigned: "assigned";
|
|
456
689
|
unassigned: "unassigned";
|
|
457
690
|
participant_requested: "participant_requested";
|
|
@@ -461,6 +694,7 @@ declare const realtimeSchema: {
|
|
|
461
694
|
priority_changed: "priority_changed";
|
|
462
695
|
tag_added: "tag_added";
|
|
463
696
|
tag_removed: "tag_removed";
|
|
697
|
+
resolved: "resolved";
|
|
464
698
|
reopened: "reopened";
|
|
465
699
|
visitor_blocked: "visitor_blocked";
|
|
466
700
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -496,6 +730,125 @@ declare const realtimeSchema: {
|
|
|
496
730
|
}, z.core.$strip>;
|
|
497
731
|
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
498
732
|
}, z.core.$strip>;
|
|
733
|
+
readonly aiAgentProcessingStarted: z.ZodObject<{
|
|
734
|
+
websiteId: z.ZodString;
|
|
735
|
+
organizationId: z.ZodString;
|
|
736
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
737
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
738
|
+
conversationId: z.ZodString;
|
|
739
|
+
aiAgentId: z.ZodString;
|
|
740
|
+
workflowRunId: z.ZodString;
|
|
741
|
+
triggerMessageId: z.ZodString;
|
|
742
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
743
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
744
|
+
all: "all";
|
|
745
|
+
dashboard: "dashboard";
|
|
746
|
+
}>>;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
readonly aiAgentDecisionMade: z.ZodObject<{
|
|
749
|
+
websiteId: z.ZodString;
|
|
750
|
+
organizationId: z.ZodString;
|
|
751
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
752
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
753
|
+
conversationId: z.ZodString;
|
|
754
|
+
aiAgentId: z.ZodString;
|
|
755
|
+
workflowRunId: z.ZodString;
|
|
756
|
+
shouldAct: z.ZodBoolean;
|
|
757
|
+
reason: z.ZodString;
|
|
758
|
+
mode: z.ZodEnum<{
|
|
759
|
+
respond_to_visitor: "respond_to_visitor";
|
|
760
|
+
respond_to_command: "respond_to_command";
|
|
761
|
+
background_only: "background_only";
|
|
762
|
+
}>;
|
|
763
|
+
audience: z.ZodEnum<{
|
|
764
|
+
all: "all";
|
|
765
|
+
dashboard: "dashboard";
|
|
766
|
+
}>;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
readonly aiAgentProcessingProgress: z.ZodObject<{
|
|
769
|
+
websiteId: z.ZodString;
|
|
770
|
+
organizationId: z.ZodString;
|
|
771
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
772
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
773
|
+
conversationId: z.ZodString;
|
|
774
|
+
aiAgentId: z.ZodString;
|
|
775
|
+
workflowRunId: z.ZodString;
|
|
776
|
+
phase: z.ZodString;
|
|
777
|
+
message: z.ZodNullable<z.ZodString>;
|
|
778
|
+
tool: z.ZodOptional<z.ZodObject<{
|
|
779
|
+
toolCallId: z.ZodString;
|
|
780
|
+
toolName: z.ZodString;
|
|
781
|
+
state: z.ZodEnum<{
|
|
782
|
+
error: "error";
|
|
783
|
+
partial: "partial";
|
|
784
|
+
result: "result";
|
|
785
|
+
}>;
|
|
786
|
+
}, z.core.$strip>>;
|
|
787
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
788
|
+
all: "all";
|
|
789
|
+
dashboard: "dashboard";
|
|
790
|
+
}>>;
|
|
791
|
+
}, z.core.$strip>;
|
|
792
|
+
readonly aiAgentProcessingCompleted: z.ZodObject<{
|
|
793
|
+
websiteId: z.ZodString;
|
|
794
|
+
organizationId: z.ZodString;
|
|
795
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
796
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
797
|
+
conversationId: z.ZodString;
|
|
798
|
+
aiAgentId: z.ZodString;
|
|
799
|
+
workflowRunId: z.ZodString;
|
|
800
|
+
status: z.ZodEnum<{
|
|
801
|
+
error: "error";
|
|
802
|
+
success: "success";
|
|
803
|
+
skipped: "skipped";
|
|
804
|
+
cancelled: "cancelled";
|
|
805
|
+
}>;
|
|
806
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
807
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
808
|
+
audience: z.ZodDefault<z.ZodEnum<{
|
|
809
|
+
all: "all";
|
|
810
|
+
dashboard: "dashboard";
|
|
811
|
+
}>>;
|
|
812
|
+
}, z.core.$strip>;
|
|
813
|
+
readonly timelineItemUpdated: z.ZodObject<{
|
|
814
|
+
websiteId: z.ZodString;
|
|
815
|
+
organizationId: z.ZodString;
|
|
816
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
817
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
818
|
+
conversationId: z.ZodString;
|
|
819
|
+
item: z.ZodObject<{
|
|
820
|
+
id: z.ZodString;
|
|
821
|
+
conversationId: z.ZodString;
|
|
822
|
+
organizationId: z.ZodString;
|
|
823
|
+
visibility: z.ZodEnum<{
|
|
824
|
+
public: "public";
|
|
825
|
+
private: "private";
|
|
826
|
+
}>;
|
|
827
|
+
type: z.ZodEnum<{
|
|
828
|
+
message: "message";
|
|
829
|
+
event: "event";
|
|
830
|
+
identification: "identification";
|
|
831
|
+
}>;
|
|
832
|
+
text: z.ZodNullable<z.ZodString>;
|
|
833
|
+
parts: z.ZodArray<z.ZodUnknown>;
|
|
834
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
835
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
836
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
837
|
+
createdAt: z.ZodString;
|
|
838
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
839
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
840
|
+
}, z.core.$strip>;
|
|
841
|
+
}, z.core.$strip>;
|
|
842
|
+
readonly timelineItemPartUpdated: z.ZodObject<{
|
|
843
|
+
websiteId: z.ZodString;
|
|
844
|
+
organizationId: z.ZodString;
|
|
845
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
846
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
847
|
+
conversationId: z.ZodString;
|
|
848
|
+
timelineItemId: z.ZodString;
|
|
849
|
+
partIndex: z.ZodNumber;
|
|
850
|
+
part: z.ZodUnknown;
|
|
851
|
+
}, z.core.$strip>;
|
|
499
852
|
readonly crawlStarted: z.ZodObject<{
|
|
500
853
|
websiteId: z.ZodString;
|
|
501
854
|
organizationId: z.ZodString;
|
|
@@ -595,6 +948,51 @@ declare const realtimeSchema: {
|
|
|
595
948
|
knowledgeId: z.ZodString;
|
|
596
949
|
}, z.core.$strip>;
|
|
597
950
|
}, z.core.$strip>;
|
|
951
|
+
readonly trainingStarted: z.ZodObject<{
|
|
952
|
+
websiteId: z.ZodString;
|
|
953
|
+
organizationId: z.ZodString;
|
|
954
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
955
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
956
|
+
aiAgentId: z.ZodString;
|
|
957
|
+
totalItems: z.ZodNumber;
|
|
958
|
+
}, z.core.$strip>;
|
|
959
|
+
readonly trainingProgress: z.ZodObject<{
|
|
960
|
+
websiteId: z.ZodString;
|
|
961
|
+
organizationId: z.ZodString;
|
|
962
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
963
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
964
|
+
aiAgentId: z.ZodString;
|
|
965
|
+
processedItems: z.ZodNumber;
|
|
966
|
+
totalItems: z.ZodNumber;
|
|
967
|
+
currentItem: z.ZodOptional<z.ZodObject<{
|
|
968
|
+
id: z.ZodString;
|
|
969
|
+
title: z.ZodNullable<z.ZodString>;
|
|
970
|
+
type: z.ZodEnum<{
|
|
971
|
+
url: "url";
|
|
972
|
+
faq: "faq";
|
|
973
|
+
article: "article";
|
|
974
|
+
}>;
|
|
975
|
+
}, z.core.$strip>>;
|
|
976
|
+
percentage: z.ZodNumber;
|
|
977
|
+
}, z.core.$strip>;
|
|
978
|
+
readonly trainingCompleted: z.ZodObject<{
|
|
979
|
+
websiteId: z.ZodString;
|
|
980
|
+
organizationId: z.ZodString;
|
|
981
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
982
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
983
|
+
aiAgentId: z.ZodString;
|
|
984
|
+
totalItems: z.ZodNumber;
|
|
985
|
+
totalChunks: z.ZodNumber;
|
|
986
|
+
duration: z.ZodNumber;
|
|
987
|
+
}, z.core.$strip>;
|
|
988
|
+
readonly trainingFailed: z.ZodObject<{
|
|
989
|
+
websiteId: z.ZodString;
|
|
990
|
+
organizationId: z.ZodString;
|
|
991
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
992
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
993
|
+
aiAgentId: z.ZodString;
|
|
994
|
+
error: z.ZodString;
|
|
995
|
+
}, z.core.$strip>;
|
|
598
996
|
};
|
|
599
997
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
600
998
|
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"}
|