@cossistant/core 0.0.32 → 0.0.33
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/ai-sdk-utils.d.ts +33 -3
- package/ai-sdk-utils.d.ts.map +1 -1
- package/ai-sdk-utils.js +85 -21
- package/ai-sdk-utils.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
- package/privacy-filter.d.ts.map +1 -1
- package/privacy-filter.js +7 -2
- package/privacy-filter.js.map +1 -1
- package/store/timeline-items-store.d.ts.map +1 -1
- package/types/src/api/conversation.d.ts +383 -8
- package/types/src/api/conversation.d.ts.map +1 -1
- package/types/src/api/timeline-item.d.ts +304 -4
- package/types/src/api/timeline-item.d.ts.map +1 -1
- package/types/src/api/timeline-item.js +14 -1
- package/types/src/api/timeline-item.js.map +1 -1
- package/types/src/realtime-events.d.ts +233 -8
- package/types/src/realtime-events.d.ts.map +1 -1
- package/types/src/schemas.d.ts +77 -2
- package/types/src/schemas.d.ts.map +1 -1
- package/types/src/tool-timeline-policy.js +16 -0
- package/types/src/tool-timeline-policy.js.map +1 -0
- package/utils.d.ts.map +1 -1
|
@@ -40,6 +40,19 @@ declare const timelineItemSchema: z.ZodObject<{
|
|
|
40
40
|
}>>;
|
|
41
41
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
42
42
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
43
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
logType: z.ZodEnum<{
|
|
45
|
+
customer_facing: "customer_facing";
|
|
46
|
+
log: "log";
|
|
47
|
+
decision: "decision";
|
|
48
|
+
}>;
|
|
49
|
+
triggerMessageId: z.ZodString;
|
|
50
|
+
workflowRunId: z.ZodString;
|
|
51
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
public: "public";
|
|
53
|
+
private: "private";
|
|
54
|
+
}>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
43
56
|
}, z.core.$strip>>;
|
|
44
57
|
}, z.core.$loose>>;
|
|
45
58
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -54,6 +67,29 @@ declare const timelineItemSchema: z.ZodObject<{
|
|
|
54
67
|
result: "result";
|
|
55
68
|
}>;
|
|
56
69
|
errorText: z.ZodOptional<z.ZodString>;
|
|
70
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
public: "public";
|
|
74
|
+
private: "private";
|
|
75
|
+
}>>;
|
|
76
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
77
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
logType: z.ZodEnum<{
|
|
80
|
+
customer_facing: "customer_facing";
|
|
81
|
+
log: "log";
|
|
82
|
+
decision: "decision";
|
|
83
|
+
}>;
|
|
84
|
+
triggerMessageId: z.ZodString;
|
|
85
|
+
workflowRunId: z.ZodString;
|
|
86
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
public: "public";
|
|
88
|
+
private: "private";
|
|
89
|
+
}>>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
}, z.core.$loose>>;
|
|
57
93
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
58
94
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
59
95
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -62,6 +98,19 @@ declare const timelineItemSchema: z.ZodObject<{
|
|
|
62
98
|
}>>;
|
|
63
99
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
64
100
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
logType: z.ZodEnum<{
|
|
103
|
+
customer_facing: "customer_facing";
|
|
104
|
+
log: "log";
|
|
105
|
+
decision: "decision";
|
|
106
|
+
}>;
|
|
107
|
+
triggerMessageId: z.ZodString;
|
|
108
|
+
workflowRunId: z.ZodString;
|
|
109
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
110
|
+
public: "public";
|
|
111
|
+
private: "private";
|
|
112
|
+
}>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
65
114
|
}, z.core.$strip>>;
|
|
66
115
|
}, z.core.$loose>>;
|
|
67
116
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -77,6 +126,19 @@ declare const timelineItemSchema: z.ZodObject<{
|
|
|
77
126
|
}>>;
|
|
78
127
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
79
128
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
129
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
logType: z.ZodEnum<{
|
|
131
|
+
customer_facing: "customer_facing";
|
|
132
|
+
log: "log";
|
|
133
|
+
decision: "decision";
|
|
134
|
+
}>;
|
|
135
|
+
triggerMessageId: z.ZodString;
|
|
136
|
+
workflowRunId: z.ZodString;
|
|
137
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
138
|
+
public: "public";
|
|
139
|
+
private: "private";
|
|
140
|
+
}>>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
80
142
|
}, z.core.$strip>>;
|
|
81
143
|
}, z.core.$loose>>;
|
|
82
144
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -93,6 +155,19 @@ declare const timelineItemSchema: z.ZodObject<{
|
|
|
93
155
|
}>>;
|
|
94
156
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
95
157
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
158
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
logType: z.ZodEnum<{
|
|
160
|
+
customer_facing: "customer_facing";
|
|
161
|
+
log: "log";
|
|
162
|
+
decision: "decision";
|
|
163
|
+
}>;
|
|
164
|
+
triggerMessageId: z.ZodString;
|
|
165
|
+
workflowRunId: z.ZodString;
|
|
166
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
167
|
+
public: "public";
|
|
168
|
+
private: "private";
|
|
169
|
+
}>>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
96
171
|
}, z.core.$strip>>;
|
|
97
172
|
}, z.core.$loose>>;
|
|
98
173
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -114,6 +189,7 @@ declare const timelineItemSchema: z.ZodObject<{
|
|
|
114
189
|
}, z.core.$strip>, z.ZodObject<{
|
|
115
190
|
type: z.ZodLiteral<"event">;
|
|
116
191
|
eventType: z.ZodEnum<{
|
|
192
|
+
resolved: "resolved";
|
|
117
193
|
assigned: "assigned";
|
|
118
194
|
unassigned: "unassigned";
|
|
119
195
|
participant_requested: "participant_requested";
|
|
@@ -123,7 +199,6 @@ declare const timelineItemSchema: z.ZodObject<{
|
|
|
123
199
|
priority_changed: "priority_changed";
|
|
124
200
|
tag_added: "tag_added";
|
|
125
201
|
tag_removed: "tag_removed";
|
|
126
|
-
resolved: "resolved";
|
|
127
202
|
reopened: "reopened";
|
|
128
203
|
visitor_blocked: "visitor_blocked";
|
|
129
204
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -194,6 +269,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
|
194
269
|
}>>;
|
|
195
270
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
196
271
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
272
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
logType: z.ZodEnum<{
|
|
274
|
+
customer_facing: "customer_facing";
|
|
275
|
+
log: "log";
|
|
276
|
+
decision: "decision";
|
|
277
|
+
}>;
|
|
278
|
+
triggerMessageId: z.ZodString;
|
|
279
|
+
workflowRunId: z.ZodString;
|
|
280
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
281
|
+
public: "public";
|
|
282
|
+
private: "private";
|
|
283
|
+
}>>;
|
|
284
|
+
}, z.core.$strip>>;
|
|
197
285
|
}, z.core.$strip>>;
|
|
198
286
|
}, z.core.$loose>>;
|
|
199
287
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -208,6 +296,29 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
|
208
296
|
result: "result";
|
|
209
297
|
}>;
|
|
210
298
|
errorText: z.ZodOptional<z.ZodString>;
|
|
299
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
301
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
public: "public";
|
|
303
|
+
private: "private";
|
|
304
|
+
}>>;
|
|
305
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
306
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
307
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
logType: z.ZodEnum<{
|
|
309
|
+
customer_facing: "customer_facing";
|
|
310
|
+
log: "log";
|
|
311
|
+
decision: "decision";
|
|
312
|
+
}>;
|
|
313
|
+
triggerMessageId: z.ZodString;
|
|
314
|
+
workflowRunId: z.ZodString;
|
|
315
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
316
|
+
public: "public";
|
|
317
|
+
private: "private";
|
|
318
|
+
}>>;
|
|
319
|
+
}, z.core.$strip>>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
}, z.core.$loose>>;
|
|
211
322
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
212
323
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
213
324
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -216,6 +327,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
|
216
327
|
}>>;
|
|
217
328
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
218
329
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
330
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
331
|
+
logType: z.ZodEnum<{
|
|
332
|
+
customer_facing: "customer_facing";
|
|
333
|
+
log: "log";
|
|
334
|
+
decision: "decision";
|
|
335
|
+
}>;
|
|
336
|
+
triggerMessageId: z.ZodString;
|
|
337
|
+
workflowRunId: z.ZodString;
|
|
338
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
339
|
+
public: "public";
|
|
340
|
+
private: "private";
|
|
341
|
+
}>>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
219
343
|
}, z.core.$strip>>;
|
|
220
344
|
}, z.core.$loose>>;
|
|
221
345
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -231,6 +355,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
|
231
355
|
}>>;
|
|
232
356
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
233
357
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
358
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
logType: z.ZodEnum<{
|
|
360
|
+
customer_facing: "customer_facing";
|
|
361
|
+
log: "log";
|
|
362
|
+
decision: "decision";
|
|
363
|
+
}>;
|
|
364
|
+
triggerMessageId: z.ZodString;
|
|
365
|
+
workflowRunId: z.ZodString;
|
|
366
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
367
|
+
public: "public";
|
|
368
|
+
private: "private";
|
|
369
|
+
}>>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
234
371
|
}, z.core.$strip>>;
|
|
235
372
|
}, z.core.$loose>>;
|
|
236
373
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -247,6 +384,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
|
247
384
|
}>>;
|
|
248
385
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
249
386
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
387
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
logType: z.ZodEnum<{
|
|
389
|
+
customer_facing: "customer_facing";
|
|
390
|
+
log: "log";
|
|
391
|
+
decision: "decision";
|
|
392
|
+
}>;
|
|
393
|
+
triggerMessageId: z.ZodString;
|
|
394
|
+
workflowRunId: z.ZodString;
|
|
395
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
396
|
+
public: "public";
|
|
397
|
+
private: "private";
|
|
398
|
+
}>>;
|
|
399
|
+
}, z.core.$strip>>;
|
|
250
400
|
}, z.core.$strip>>;
|
|
251
401
|
}, z.core.$loose>>;
|
|
252
402
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -268,6 +418,7 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
|
268
418
|
}, z.core.$strip>, z.ZodObject<{
|
|
269
419
|
type: z.ZodLiteral<"event">;
|
|
270
420
|
eventType: z.ZodEnum<{
|
|
421
|
+
resolved: "resolved";
|
|
271
422
|
assigned: "assigned";
|
|
272
423
|
unassigned: "unassigned";
|
|
273
424
|
participant_requested: "participant_requested";
|
|
@@ -277,7 +428,6 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
|
277
428
|
priority_changed: "priority_changed";
|
|
278
429
|
tag_added: "tag_added";
|
|
279
430
|
tag_removed: "tag_removed";
|
|
280
|
-
resolved: "resolved";
|
|
281
431
|
reopened: "reopened";
|
|
282
432
|
visitor_blocked: "visitor_blocked";
|
|
283
433
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -337,6 +487,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
|
|
|
337
487
|
}>>;
|
|
338
488
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
339
489
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
490
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
logType: z.ZodEnum<{
|
|
492
|
+
customer_facing: "customer_facing";
|
|
493
|
+
log: "log";
|
|
494
|
+
decision: "decision";
|
|
495
|
+
}>;
|
|
496
|
+
triggerMessageId: z.ZodString;
|
|
497
|
+
workflowRunId: z.ZodString;
|
|
498
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
public: "public";
|
|
500
|
+
private: "private";
|
|
501
|
+
}>>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
340
503
|
}, z.core.$strip>>;
|
|
341
504
|
}, z.core.$loose>>;
|
|
342
505
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -351,6 +514,29 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
|
|
|
351
514
|
result: "result";
|
|
352
515
|
}>;
|
|
353
516
|
errorText: z.ZodOptional<z.ZodString>;
|
|
517
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
519
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
520
|
+
public: "public";
|
|
521
|
+
private: "private";
|
|
522
|
+
}>>;
|
|
523
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
524
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
525
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
logType: z.ZodEnum<{
|
|
527
|
+
customer_facing: "customer_facing";
|
|
528
|
+
log: "log";
|
|
529
|
+
decision: "decision";
|
|
530
|
+
}>;
|
|
531
|
+
triggerMessageId: z.ZodString;
|
|
532
|
+
workflowRunId: z.ZodString;
|
|
533
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
public: "public";
|
|
535
|
+
private: "private";
|
|
536
|
+
}>>;
|
|
537
|
+
}, z.core.$strip>>;
|
|
538
|
+
}, z.core.$strip>>;
|
|
539
|
+
}, z.core.$loose>>;
|
|
354
540
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
355
541
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
356
542
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -359,6 +545,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
|
|
|
359
545
|
}>>;
|
|
360
546
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
361
547
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
548
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
549
|
+
logType: z.ZodEnum<{
|
|
550
|
+
customer_facing: "customer_facing";
|
|
551
|
+
log: "log";
|
|
552
|
+
decision: "decision";
|
|
553
|
+
}>;
|
|
554
|
+
triggerMessageId: z.ZodString;
|
|
555
|
+
workflowRunId: z.ZodString;
|
|
556
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
public: "public";
|
|
558
|
+
private: "private";
|
|
559
|
+
}>>;
|
|
560
|
+
}, z.core.$strip>>;
|
|
362
561
|
}, z.core.$strip>>;
|
|
363
562
|
}, z.core.$loose>>;
|
|
364
563
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -374,6 +573,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
|
|
|
374
573
|
}>>;
|
|
375
574
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
376
575
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
576
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
577
|
+
logType: z.ZodEnum<{
|
|
578
|
+
customer_facing: "customer_facing";
|
|
579
|
+
log: "log";
|
|
580
|
+
decision: "decision";
|
|
581
|
+
}>;
|
|
582
|
+
triggerMessageId: z.ZodString;
|
|
583
|
+
workflowRunId: z.ZodString;
|
|
584
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
585
|
+
public: "public";
|
|
586
|
+
private: "private";
|
|
587
|
+
}>>;
|
|
588
|
+
}, z.core.$strip>>;
|
|
377
589
|
}, z.core.$strip>>;
|
|
378
590
|
}, z.core.$loose>>;
|
|
379
591
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -390,6 +602,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
|
|
|
390
602
|
}>>;
|
|
391
603
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
392
604
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
605
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
606
|
+
logType: z.ZodEnum<{
|
|
607
|
+
customer_facing: "customer_facing";
|
|
608
|
+
log: "log";
|
|
609
|
+
decision: "decision";
|
|
610
|
+
}>;
|
|
611
|
+
triggerMessageId: z.ZodString;
|
|
612
|
+
workflowRunId: z.ZodString;
|
|
613
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
614
|
+
public: "public";
|
|
615
|
+
private: "private";
|
|
616
|
+
}>>;
|
|
617
|
+
}, z.core.$strip>>;
|
|
393
618
|
}, z.core.$strip>>;
|
|
394
619
|
}, z.core.$loose>>;
|
|
395
620
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -411,6 +636,7 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
|
|
|
411
636
|
}, z.core.$strip>, z.ZodObject<{
|
|
412
637
|
type: z.ZodLiteral<"event">;
|
|
413
638
|
eventType: z.ZodEnum<{
|
|
639
|
+
resolved: "resolved";
|
|
414
640
|
assigned: "assigned";
|
|
415
641
|
unassigned: "unassigned";
|
|
416
642
|
participant_requested: "participant_requested";
|
|
@@ -420,7 +646,6 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
|
|
|
420
646
|
priority_changed: "priority_changed";
|
|
421
647
|
tag_added: "tag_added";
|
|
422
648
|
tag_removed: "tag_removed";
|
|
423
|
-
resolved: "resolved";
|
|
424
649
|
reopened: "reopened";
|
|
425
650
|
visitor_blocked: "visitor_blocked";
|
|
426
651
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -490,6 +715,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
|
|
|
490
715
|
}>>;
|
|
491
716
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
492
717
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
718
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
719
|
+
logType: z.ZodEnum<{
|
|
720
|
+
customer_facing: "customer_facing";
|
|
721
|
+
log: "log";
|
|
722
|
+
decision: "decision";
|
|
723
|
+
}>;
|
|
724
|
+
triggerMessageId: z.ZodString;
|
|
725
|
+
workflowRunId: z.ZodString;
|
|
726
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
727
|
+
public: "public";
|
|
728
|
+
private: "private";
|
|
729
|
+
}>>;
|
|
730
|
+
}, z.core.$strip>>;
|
|
493
731
|
}, z.core.$strip>>;
|
|
494
732
|
}, z.core.$loose>>;
|
|
495
733
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -504,6 +742,29 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
|
|
|
504
742
|
result: "result";
|
|
505
743
|
}>;
|
|
506
744
|
errorText: z.ZodOptional<z.ZodString>;
|
|
745
|
+
callProviderMetadata: z.ZodOptional<z.ZodObject<{
|
|
746
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
748
|
+
public: "public";
|
|
749
|
+
private: "private";
|
|
750
|
+
}>>;
|
|
751
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
752
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
753
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
754
|
+
logType: z.ZodEnum<{
|
|
755
|
+
customer_facing: "customer_facing";
|
|
756
|
+
log: "log";
|
|
757
|
+
decision: "decision";
|
|
758
|
+
}>;
|
|
759
|
+
triggerMessageId: z.ZodString;
|
|
760
|
+
workflowRunId: z.ZodString;
|
|
761
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
762
|
+
public: "public";
|
|
763
|
+
private: "private";
|
|
764
|
+
}>>;
|
|
765
|
+
}, z.core.$strip>>;
|
|
766
|
+
}, z.core.$strip>>;
|
|
767
|
+
}, z.core.$loose>>;
|
|
507
768
|
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
508
769
|
cossistant: z.ZodOptional<z.ZodObject<{
|
|
509
770
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
@@ -512,6 +773,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
|
|
|
512
773
|
}>>;
|
|
513
774
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
514
775
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
776
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
777
|
+
logType: z.ZodEnum<{
|
|
778
|
+
customer_facing: "customer_facing";
|
|
779
|
+
log: "log";
|
|
780
|
+
decision: "decision";
|
|
781
|
+
}>;
|
|
782
|
+
triggerMessageId: z.ZodString;
|
|
783
|
+
workflowRunId: z.ZodString;
|
|
784
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
785
|
+
public: "public";
|
|
786
|
+
private: "private";
|
|
787
|
+
}>>;
|
|
788
|
+
}, z.core.$strip>>;
|
|
515
789
|
}, z.core.$strip>>;
|
|
516
790
|
}, z.core.$loose>>;
|
|
517
791
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -527,6 +801,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
|
|
|
527
801
|
}>>;
|
|
528
802
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
529
803
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
804
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
805
|
+
logType: z.ZodEnum<{
|
|
806
|
+
customer_facing: "customer_facing";
|
|
807
|
+
log: "log";
|
|
808
|
+
decision: "decision";
|
|
809
|
+
}>;
|
|
810
|
+
triggerMessageId: z.ZodString;
|
|
811
|
+
workflowRunId: z.ZodString;
|
|
812
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
813
|
+
public: "public";
|
|
814
|
+
private: "private";
|
|
815
|
+
}>>;
|
|
816
|
+
}, z.core.$strip>>;
|
|
530
817
|
}, z.core.$strip>>;
|
|
531
818
|
}, z.core.$loose>>;
|
|
532
819
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -543,6 +830,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
|
|
|
543
830
|
}>>;
|
|
544
831
|
progressMessage: z.ZodOptional<z.ZodString>;
|
|
545
832
|
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
833
|
+
toolTimeline: z.ZodOptional<z.ZodObject<{
|
|
834
|
+
logType: z.ZodEnum<{
|
|
835
|
+
customer_facing: "customer_facing";
|
|
836
|
+
log: "log";
|
|
837
|
+
decision: "decision";
|
|
838
|
+
}>;
|
|
839
|
+
triggerMessageId: z.ZodString;
|
|
840
|
+
workflowRunId: z.ZodString;
|
|
841
|
+
triggerVisibility: z.ZodOptional<z.ZodEnum<{
|
|
842
|
+
public: "public";
|
|
843
|
+
private: "private";
|
|
844
|
+
}>>;
|
|
845
|
+
}, z.core.$strip>>;
|
|
546
846
|
}, z.core.$strip>>;
|
|
547
847
|
}, z.core.$loose>>;
|
|
548
848
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -564,6 +864,7 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
|
|
|
564
864
|
}, z.core.$strip>, z.ZodObject<{
|
|
565
865
|
type: z.ZodLiteral<"event">;
|
|
566
866
|
eventType: z.ZodEnum<{
|
|
867
|
+
resolved: "resolved";
|
|
567
868
|
assigned: "assigned";
|
|
568
869
|
unassigned: "unassigned";
|
|
569
870
|
participant_requested: "participant_requested";
|
|
@@ -573,7 +874,6 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
|
|
|
573
874
|
priority_changed: "priority_changed";
|
|
574
875
|
tag_added: "tag_added";
|
|
575
876
|
tag_removed: "tag_removed";
|
|
576
|
-
resolved: "resolved";
|
|
577
877
|
reopened: "reopened";
|
|
578
878
|
visitor_blocked: "visitor_blocked";
|
|
579
879
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../../../../types/src/api/timeline-item.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../../../../types/src/api/timeline-item.ts"],"sourcesContent":[],"mappings":";;;;cAiUa,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqJW,IAAA,cAAA,CAAA,UAAA,CAAA;IAAA,MAAA,WAAA,CAAA;MAoD9B,KAAA,EAAA,OAAA;MAIC,MAAA,EAAA,QAAA;;;;;;;;;;KAxJD,kBAAA,GAAqB,CAAA,CAAE,aAAa;KAEpC,YAAA,GAAe,CAAA,CAAE,aAAa;cAqD7B,2CAAyC,CAAA,CAAA;;;;KAe1C,mCAAA,GAAsC,CAAA,CAAE,aAC5C;cAGK,4CAA0C,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8EZ,GAAA,aAAA;MAAA,SAAA,aAAA;MAU/B,QAAA,eAAwB,YAC5B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAxEI,oCAAA,GAAuC,CAAA,CAAE,aAC7C;cAIK,+BAA6B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoD9B,uBAAA,GAA0B,CAAA,CAAE,aAChC;cAGK,gCAA8B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAU/B,wBAAA,GAA2B,CAAA,CAAE,aACjC"}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { ConversationEventType, ConversationTimelineType, TimelineItemVisibility } from "../enums.js";
|
|
2
|
+
import { TOOL_TIMELINE_LOG_TYPE } from "../tool-timeline-policy.js";
|
|
2
3
|
import { z } from "@hono/zod-openapi";
|
|
3
4
|
|
|
4
5
|
//#region ../types/src/api/timeline-item.ts
|
|
6
|
+
const cossistantToolTimelineMetadataSchema = z.object({
|
|
7
|
+
logType: z.enum([
|
|
8
|
+
TOOL_TIMELINE_LOG_TYPE.CUSTOMER_FACING,
|
|
9
|
+
TOOL_TIMELINE_LOG_TYPE.LOG,
|
|
10
|
+
TOOL_TIMELINE_LOG_TYPE.DECISION
|
|
11
|
+
]).openapi({ description: "Tool timeline classification: conversation-visible, log-only, or decision stage" }),
|
|
12
|
+
triggerMessageId: z.string().openapi({ description: "Message ID that triggered the tool/decision workflow execution" }),
|
|
13
|
+
workflowRunId: z.string().openapi({ description: "Workflow run identifier used to correlate tool timeline updates" }),
|
|
14
|
+
triggerVisibility: z.enum(["public", "private"]).optional().openapi({ description: "Visibility of the trigger message at the time the tool was executed" })
|
|
15
|
+
});
|
|
5
16
|
const cossistantProviderMetadataSchema = z.object({ cossistant: z.object({
|
|
6
17
|
visibility: z.enum(["public", "private"]).optional().openapi({ description: "Part-level visibility control for filtering" }),
|
|
7
18
|
progressMessage: z.string().optional().openapi({ description: "Custom progress message to display during execution" }),
|
|
8
|
-
knowledgeId: z.string().optional().openapi({ description: "Reference to a Cossistant knowledge entry" })
|
|
19
|
+
knowledgeId: z.string().optional().openapi({ description: "Reference to a Cossistant knowledge entry" }),
|
|
20
|
+
toolTimeline: cossistantToolTimelineMetadataSchema.optional().openapi({ description: "Tool timeline metadata used to classify visibility and trigger linkage" })
|
|
9
21
|
}).optional() }).passthrough().optional();
|
|
10
22
|
const textPartSchema = z.object({
|
|
11
23
|
type: z.literal("text").openapi({ description: "Text content part - matches AI SDK TextUIPart" }),
|
|
@@ -31,6 +43,7 @@ const toolPartSchema = z.object({
|
|
|
31
43
|
output: z.unknown().optional().openapi({ description: "Output returned by the tool (when state is 'result')" }),
|
|
32
44
|
state: toolStateSchema,
|
|
33
45
|
errorText: z.string().optional().openapi({ description: "Error message when state is 'error'" }),
|
|
46
|
+
callProviderMetadata: cossistantProviderMetadataSchema,
|
|
34
47
|
providerMetadata: cossistantProviderMetadataSchema
|
|
35
48
|
});
|
|
36
49
|
const sourceUrlPartSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item.js","names":[],"sources":["../../../../../types/src/api/timeline-item.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\n\nimport {\n\tConversationEventType,\n\tConversationTimelineType,\n\tTimelineItemVisibility,\n} from \"../enums\";\n\n// ============================================================================\n// AI SDK v6 COMPATIBLE PART SCHEMAS\n// These follow Vercel AI SDK v6 patterns for UIMessagePart types.\n// Cossistant extensions use providerMetadata.cossistant namespace.\n// ============================================================================\n\n// ----------------------------------------------------------------------------\n// Cossistant Provider Metadata (extension point for all parts)\n// ----------------------------------------------------------------------------\nconst cossistantProviderMetadataSchema = z\n\t.object({\n\t\tcossistant: z\n\t\t\t.object({\n\t\t\t\tvisibility: z.enum([\"public\", \"private\"]).optional().openapi({\n\t\t\t\t\tdescription: \"Part-level visibility control for filtering\",\n\t\t\t\t}),\n\t\t\t\tprogressMessage: z.string().optional().openapi({\n\t\t\t\t\tdescription: \"Custom progress message to display during execution\",\n\t\t\t\t}),\n\t\t\t\tknowledgeId: z.string().optional().openapi({\n\t\t\t\t\tdescription: \"Reference to a Cossistant knowledge entry\",\n\t\t\t\t}),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n\t.passthrough()\n\t.optional();\n\n// ----------------------------------------------------------------------------\n// TEXT PART (AI SDK compatible)\n// ----------------------------------------------------------------------------\nconst textPartSchema = z.object({\n\ttype: z.literal(\"text\").openapi({\n\t\tdescription: \"Text content part - matches AI SDK TextUIPart\",\n\t}),\n\ttext: z.string().openapi({\n\t\tdescription: \"The text content\",\n\t}),\n\tstate: z.enum([\"streaming\", \"done\"]).optional().openapi({\n\t\tdescription:\n\t\t\t\"AI SDK state: 'streaming' = still processing, 'done' = complete\",\n\t}),\n});\n\n// ----------------------------------------------------------------------------\n// REASONING PART (AI SDK compatible - for AI chain-of-thought)\n// ----------------------------------------------------------------------------\nconst reasoningPartSchema = z.object({\n\ttype: z.literal(\"reasoning\").openapi({\n\t\tdescription:\n\t\t\t\"AI reasoning/chain-of-thought - matches AI SDK ReasoningUIPart\",\n\t}),\n\ttext: z.string().openapi({\n\t\tdescription: \"The reasoning text content\",\n\t}),\n\tstate: z.enum([\"streaming\", \"done\"]).optional().openapi({\n\t\tdescription:\n\t\t\t\"AI SDK state: 'streaming' = still processing, 'done' = complete\",\n\t}),\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// TOOL PART (AI SDK compatible - for tool invocations)\n// AI SDK uses type: `tool-${toolName}` pattern, but we use a generic schema\n// with toolName field for flexibility. Type checking happens at runtime.\n// ----------------------------------------------------------------------------\nconst toolStateSchema = z.enum([\"partial\", \"result\", \"error\"]).openapi({\n\tdescription:\n\t\t\"AI SDK tool state: 'partial' = executing, 'result' = success, 'error' = failed\",\n});\n\nconst toolPartSchema = z.object({\n\ttype: z\n\t\t.string()\n\t\t.regex(/^tool-.+$/)\n\t\t.openapi({\n\t\t\tdescription: \"Tool type following AI SDK pattern: tool-{toolName}\",\n\t\t}),\n\ttoolCallId: z.string().openapi({\n\t\tdescription: \"Unique identifier for this tool invocation\",\n\t}),\n\ttoolName: z.string().openapi({\n\t\tdescription: \"Name of the tool being invoked\",\n\t}),\n\tinput: z.record(z.string(), z.unknown()).openapi({\n\t\tdescription: \"Input parameters passed to the tool\",\n\t}),\n\toutput: z.unknown().optional().openapi({\n\t\tdescription: \"Output returned by the tool (when state is 'result')\",\n\t}),\n\tstate: toolStateSchema,\n\terrorText: z.string().optional().openapi({\n\t\tdescription: \"Error message when state is 'error'\",\n\t}),\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// SOURCE URL PART (AI SDK compatible - for citations)\n// ----------------------------------------------------------------------------\nconst sourceUrlPartSchema = z.object({\n\ttype: z.literal(\"source-url\").openapi({\n\t\tdescription: \"URL source citation - matches AI SDK SourceUrlUIPart\",\n\t}),\n\tsourceId: z.string().openapi({\n\t\tdescription: \"Unique identifier for this source\",\n\t}),\n\turl: z.string().url().openapi({\n\t\tdescription: \"URL of the source\",\n\t}),\n\ttitle: z.string().optional().openapi({\n\t\tdescription: \"Title of the source\",\n\t}),\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// SOURCE DOCUMENT PART (AI SDK compatible - for document citations)\n// ----------------------------------------------------------------------------\nconst sourceDocumentPartSchema = z.object({\n\ttype: z.literal(\"source-document\").openapi({\n\t\tdescription:\n\t\t\t\"Document source citation - matches AI SDK SourceDocumentUIPart\",\n\t}),\n\tsourceId: z.string().openapi({\n\t\tdescription: \"Unique identifier for this source\",\n\t}),\n\tmediaType: z.string().openapi({\n\t\tdescription: \"IANA media type of the document\",\n\t}),\n\ttitle: z.string().openapi({\n\t\tdescription: \"Title of the document\",\n\t}),\n\tfilename: z.string().optional().openapi({\n\t\tdescription: \"Filename of the document\",\n\t}),\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// STEP START PART (AI SDK compatible - for multi-step boundaries)\n// ----------------------------------------------------------------------------\nconst stepStartPartSchema = z.object({\n\ttype: z.literal(\"step-start\").openapi({\n\t\tdescription: \"Step boundary marker - matches AI SDK StepStartUIPart\",\n\t}),\n});\n\n// ----------------------------------------------------------------------------\n// FILE PART (AI SDK compatible)\n// ----------------------------------------------------------------------------\nconst filePartSchema = z.object({\n\ttype: z.literal(\"file\").openapi({\n\t\tdescription: \"File attachment - matches AI SDK FileUIPart\",\n\t}),\n\turl: z.string().openapi({\n\t\tdescription: \"URL of the file (can be hosted URL or Data URL)\",\n\t}),\n\tmediaType: z.string().openapi({\n\t\tdescription: \"IANA media type of the file\",\n\t}),\n\tfilename: z.string().optional().openapi({\n\t\tdescription: \"Original filename\",\n\t}),\n\t// Cossistant extension: additional file metadata\n\tsize: z.number().optional().openapi({\n\t\tdescription: \"Size of the file in bytes\",\n\t}),\n});\n\n// ----------------------------------------------------------------------------\n// IMAGE PART (Cossistant extension - more detailed than AI SDK file)\n// ----------------------------------------------------------------------------\nconst imagePartSchema = z.object({\n\ttype: z.literal(\"image\").openapi({\n\t\tdescription: \"Image attachment with dimensions\",\n\t}),\n\turl: z.string().openapi({\n\t\tdescription: \"URL of the image\",\n\t}),\n\tmediaType: z.string().openapi({\n\t\tdescription: \"IANA media type of the image\",\n\t}),\n\t// Use lowercase 'filename' for AI SDK consistency\n\t// Note: Legacy data may have 'fileName' - conversion utilities handle both\n\tfilename: z.string().optional().openapi({\n\t\tdescription: \"Original filename of the image\",\n\t}),\n\tsize: z.number().optional().openapi({\n\t\tdescription: \"Size of the image in bytes\",\n\t}),\n\twidth: z.number().optional().openapi({\n\t\tdescription: \"Width of the image in pixels\",\n\t}),\n\theight: z.number().optional().openapi({\n\t\tdescription: \"Height of the image in pixels\",\n\t}),\n});\n\n// ============================================================================\n// COSSISTANT-SPECIFIC PART SCHEMAS\n// These are Cossistant-specific parts not in AI SDK\n// ============================================================================\n\nconst timelinePartEventSchema = z.object({\n\ttype: z.literal(\"event\").openapi({\n\t\tdescription: \"Type of timeline part - always 'event' for event parts\",\n\t}),\n\teventType: z\n\t\t.enum([\n\t\t\tConversationEventType.ASSIGNED,\n\t\t\tConversationEventType.UNASSIGNED,\n\t\t\tConversationEventType.PARTICIPANT_REQUESTED,\n\t\t\tConversationEventType.PARTICIPANT_JOINED,\n\t\t\tConversationEventType.PARTICIPANT_LEFT,\n\t\t\tConversationEventType.STATUS_CHANGED,\n\t\t\tConversationEventType.PRIORITY_CHANGED,\n\t\t\tConversationEventType.TAG_ADDED,\n\t\t\tConversationEventType.TAG_REMOVED,\n\t\t\tConversationEventType.RESOLVED,\n\t\t\tConversationEventType.REOPENED,\n\t\t\tConversationEventType.VISITOR_BLOCKED,\n\t\t\tConversationEventType.VISITOR_UNBLOCKED,\n\t\t\tConversationEventType.VISITOR_IDENTIFIED,\n\t\t])\n\t\t.openapi({\n\t\t\tdescription: \"Type of event that occurred\",\n\t\t}),\n\tactorUserId: z.string().nullable().openapi({\n\t\tdescription: \"User that triggered the event, if applicable\",\n\t}),\n\tactorAiAgentId: z.string().nullable().openapi({\n\t\tdescription: \"AI agent that triggered the event, if applicable\",\n\t}),\n\ttargetUserId: z.string().nullable().openapi({\n\t\tdescription: \"User targeted by the event, if applicable\",\n\t}),\n\ttargetAiAgentId: z.string().nullable().openapi({\n\t\tdescription: \"AI agent targeted by the event, if applicable\",\n\t}),\n\tmessage: z.string().nullable().optional().openapi({\n\t\tdescription: \"Optional human readable message attached to the event\",\n\t}),\n});\n\nconst timelinePartMetadataSchema = z.object({\n\ttype: z.literal(\"metadata\").openapi({\n\t\tdescription: \"Type of timeline part - always 'metadata' for metadata parts\",\n\t}),\n\tsource: z.enum([\"email\", \"widget\", \"api\"]).openapi({\n\t\tdescription: \"Source channel through which the message was created\",\n\t}),\n});\n\n// ============================================================================\n// TIMELINE ITEM PARTS UNION\n// Combines AI SDK compatible parts with Cossistant-specific parts\n// ============================================================================\n\nexport const timelineItemPartsSchema = z\n\t.array(\n\t\tz.union([\n\t\t\t// AI SDK compatible parts\n\t\t\ttextPartSchema,\n\t\t\treasoningPartSchema,\n\t\t\ttoolPartSchema,\n\t\t\tsourceUrlPartSchema,\n\t\t\tsourceDocumentPartSchema,\n\t\t\tstepStartPartSchema,\n\t\t\tfilePartSchema,\n\t\t\timagePartSchema,\n\t\t\t// Cossistant-specific parts\n\t\t\ttimelinePartEventSchema,\n\t\t\ttimelinePartMetadataSchema,\n\t\t])\n\t)\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Array of timeline parts that make up the timeline item content. Includes AI SDK compatible parts (text, reasoning, tool-*, source-url, source-document, step-start, file, image) and Cossistant-specific parts (event, metadata).\",\n\t});\n\nexport const timelineItemSchema = z.object({\n\tid: z.string().optional().openapi({\n\t\tdescription: \"Unique identifier for the timeline item\",\n\t}),\n\tconversationId: z.string().openapi({\n\t\tdescription: \"ID of the conversation this timeline item belongs to\",\n\t}),\n\torganizationId: z.string().openapi({\n\t\tdescription: \"ID of the organization this timeline item belongs to\",\n\t}),\n\tvisibility: z\n\t\t.enum([TimelineItemVisibility.PUBLIC, TimelineItemVisibility.PRIVATE])\n\t\t.openapi({\n\t\t\tdescription: \"Visibility level of the timeline item\",\n\t\t}),\n\ttype: z\n\t\t.enum([\n\t\t\tConversationTimelineType.MESSAGE,\n\t\t\tConversationTimelineType.EVENT,\n\t\t\tConversationTimelineType.IDENTIFICATION,\n\t\t\tConversationTimelineType.TOOL,\n\t\t])\n\t\t.openapi({\n\t\t\tdescription:\n\t\t\t\t\"Type of timeline item - message, event, identification, or tool call\",\n\t\t}),\n\ttext: z.string().nullable().openapi({\n\t\tdescription: \"Main text content of the timeline item\",\n\t}),\n\ttool: z.string().nullable().optional().openapi({\n\t\tdescription: \"Optional tool identifier associated with this timeline item\",\n\t}),\n\tparts: timelineItemPartsSchema,\n\tuserId: z.string().nullable().openapi({\n\t\tdescription: \"ID of the user who created this timeline item, if applicable\",\n\t}),\n\taiAgentId: z.string().nullable().openapi({\n\t\tdescription:\n\t\t\t\"ID of the AI agent that created this timeline item, if applicable\",\n\t}),\n\tvisitorId: z.string().nullable().openapi({\n\t\tdescription:\n\t\t\t\"ID of the visitor who created this timeline item, if applicable\",\n\t}),\n\tcreatedAt: z.string().openapi({\n\t\tdescription: \"ISO 8601 timestamp when the timeline item was created\",\n\t}),\n\tdeletedAt: z.string().nullable().optional().openapi({\n\t\tdescription:\n\t\t\t\"ISO 8601 timestamp when the timeline item was deleted, if applicable\",\n\t}),\n});\n\nexport type timelineItemSchema = z.infer<typeof timelineItemSchema>;\n\nexport type TimelineItem = z.infer<typeof timelineItemSchema>;\nexport type TimelineItemParts = z.infer<typeof timelineItemPartsSchema>;\n\n// AI SDK compatible part types\nexport type TextPart = z.infer<typeof textPartSchema>;\nexport type ReasoningPart = z.infer<typeof reasoningPartSchema>;\nexport type ToolPart = z.infer<typeof toolPartSchema>;\nexport type SourceUrlPart = z.infer<typeof sourceUrlPartSchema>;\nexport type SourceDocumentPart = z.infer<typeof sourceDocumentPartSchema>;\nexport type StepStartPart = z.infer<typeof stepStartPartSchema>;\nexport type FilePart = z.infer<typeof filePartSchema>;\nexport type ImagePart = z.infer<typeof imagePartSchema>;\n\n// Cossistant-specific part types\nexport type TimelinePartEvent = z.infer<typeof timelinePartEventSchema>;\nexport type TimelinePartMetadata = z.infer<typeof timelinePartMetadataSchema>;\n\n// Backward-compatible type aliases (deprecated, use new names)\n/** @deprecated Use `FilePart` instead */\nexport type TimelinePartFile = FilePart;\n/** @deprecated Use `ImagePart` instead */\nexport type TimelinePartImage = ImagePart;\n/** @deprecated Use `TextPart` instead */\nexport type TimelinePartText = TextPart;\n\n// Provider metadata type for extensions\nexport type CossistantProviderMetadata = z.infer<\n\ttypeof cossistantProviderMetadataSchema\n>;\n\n// Tool state type\nexport type ToolState = z.infer<typeof toolStateSchema>;\n\n// Export schemas for external use\nexport {\n\ttextPartSchema,\n\treasoningPartSchema,\n\ttoolPartSchema,\n\ttoolStateSchema,\n\tsourceUrlPartSchema,\n\tsourceDocumentPartSchema,\n\tstepStartPartSchema,\n\tfilePartSchema,\n\timagePartSchema,\n\ttimelinePartEventSchema,\n\ttimelinePartMetadataSchema,\n\tcossistantProviderMetadataSchema,\n};\n\n// REST API Schemas\nexport const getConversationTimelineItemsRequestSchema = z\n\t.object({\n\t\tlimit: z.coerce.number().min(1).max(100).default(50).openapi({\n\t\t\tdescription: \"Number of timeline items to fetch per page\",\n\t\t\tdefault: 50,\n\t\t}),\n\t\tcursor: z.string().nullable().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Cursor for pagination (timestamp_id format from previous response)\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Query parameters for fetching conversation timeline items\",\n\t});\n\nexport type GetConversationTimelineItemsRequest = z.infer<\n\ttypeof getConversationTimelineItemsRequestSchema\n>;\n\nexport const getConversationTimelineItemsResponseSchema = z\n\t.object({\n\t\titems: z.array(timelineItemSchema).openapi({\n\t\t\tdescription: \"Array of timeline items in chronological order\",\n\t\t}),\n\t\tnextCursor: z.string().nullable().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Cursor for the next page, null if no more items are available\",\n\t\t}),\n\t\thasNextPage: z.boolean().openapi({\n\t\t\tdescription: \"Whether there are more items available to fetch\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing paginated timeline items\",\n\t});\n\nexport type GetConversationTimelineItemsResponse = z.infer<\n\ttypeof getConversationTimelineItemsResponseSchema\n>;\n\n// Send Timeline Item (Message) Schemas\nexport const sendTimelineItemRequestSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"ID of the conversation to send the timeline item to\",\n\t\t}),\n\t\titem: z.object({\n\t\t\tid: z.string().optional().openapi({\n\t\t\t\tdescription: \"Optional client-generated ID for the timeline item\",\n\t\t\t}),\n\t\t\ttype: z\n\t\t\t\t.enum([\n\t\t\t\t\tConversationTimelineType.MESSAGE,\n\t\t\t\t\tConversationTimelineType.EVENT,\n\t\t\t\t])\n\t\t\t\t.default(ConversationTimelineType.MESSAGE)\n\t\t\t\t.openapi({\n\t\t\t\t\tdescription: \"Type of timeline item - defaults to MESSAGE\",\n\t\t\t\t\tdefault: ConversationTimelineType.MESSAGE,\n\t\t\t\t}),\n\t\t\ttext: z.string().openapi({\n\t\t\t\tdescription: \"Main text content of the timeline item\",\n\t\t\t}),\n\t\t\tparts: timelineItemPartsSchema.optional(),\n\t\t\tvisibility: z\n\t\t\t\t.enum([TimelineItemVisibility.PUBLIC, TimelineItemVisibility.PRIVATE])\n\t\t\t\t.default(TimelineItemVisibility.PUBLIC)\n\t\t\t\t.openapi({\n\t\t\t\t\tdescription: \"Visibility level of the timeline item\",\n\t\t\t\t\tdefault: TimelineItemVisibility.PUBLIC,\n\t\t\t\t}),\n\t\t\ttool: z.string().nullable().optional().openapi({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Optional tool identifier when sending non-message timeline items\",\n\t\t\t}),\n\t\t\tuserId: z.string().nullable().optional().openapi({\n\t\t\t\tdescription: \"ID of the user creating this timeline item\",\n\t\t\t}),\n\t\t\taiAgentId: z.string().nullable().optional().openapi({\n\t\t\t\tdescription: \"ID of the AI agent creating this timeline item\",\n\t\t\t}),\n\t\t\tvisitorId: z.string().nullable().optional().openapi({\n\t\t\t\tdescription: \"ID of the visitor creating this timeline item\",\n\t\t\t}),\n\t\t\tcreatedAt: z.string().optional().openapi({\n\t\t\t\tdescription: \"Optional timestamp for the timeline item\",\n\t\t\t}),\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Request body for sending a timeline item to a conversation\",\n\t});\n\nexport type SendTimelineItemRequest = z.infer<\n\ttypeof sendTimelineItemRequestSchema\n>;\n\nexport const sendTimelineItemResponseSchema = z\n\t.object({\n\t\titem: timelineItemSchema.openapi({\n\t\t\tdescription: \"The created timeline item\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing the created timeline item\",\n\t});\n\nexport type SendTimelineItemResponse = z.infer<\n\ttypeof sendTimelineItemResponseSchema\n>;\n"],"mappings":";;;;AAiBA,MAAM,mCAAmC,EACvC,OAAO,EACP,YAAY,EACV,OAAO;CACP,YAAY,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,UAAU,CAAC,QAAQ,EAC5D,aAAa,+CACb,CAAC;CACF,iBAAiB,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAC9C,aAAa,uDACb,CAAC;CACF,aAAa,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAC1C,aAAa,6CACb,CAAC;CACF,CAAC,CACD,UAAU,EACZ,CAAC,CACD,aAAa,CACb,UAAU;AAKZ,MAAM,iBAAiB,EAAE,OAAO;CAC/B,MAAM,EAAE,QAAQ,OAAO,CAAC,QAAQ,EAC/B,aAAa,iDACb,CAAC;CACF,MAAM,EAAE,QAAQ,CAAC,QAAQ,EACxB,aAAa,oBACb,CAAC;CACF,OAAO,EAAE,KAAK,CAAC,aAAa,OAAO,CAAC,CAAC,UAAU,CAAC,QAAQ,EACvD,aACC,mEACD,CAAC;CACF,CAAC;AAKF,MAAM,sBAAsB,EAAE,OAAO;CACpC,MAAM,EAAE,QAAQ,YAAY,CAAC,QAAQ,EACpC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,CAAC,QAAQ,EACnD,aAAa,iDACb,CAAC;EACF,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aAAa,4CACb,CAAC;EACF,CAAC;CACF,CAAC,CACD,QAAQ,EACR,aAAa,8DACb,CAAC;AAMH,MAAa,iCAAiC,EAC5C,OAAO,EACP,MAAM,mBAAmB,QAAQ,EAChC,aAAa,6BACb,CAAC,EACF,CAAC,CACD,QAAQ,EACR,aAAa,iDACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"timeline-item.js","names":[],"sources":["../../../../../types/src/api/timeline-item.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\n\nimport {\n\tConversationEventType,\n\tConversationTimelineType,\n\tTimelineItemVisibility,\n} from \"../enums\";\nimport { TOOL_TIMELINE_LOG_TYPE } from \"../tool-timeline-policy\";\n\n// ============================================================================\n// AI SDK v6 COMPATIBLE PART SCHEMAS\n// These follow Vercel AI SDK v6 patterns for UIMessagePart types.\n// Cossistant extensions use providerMetadata/callProviderMetadata.cossistant namespace.\n// ============================================================================\n\n// ----------------------------------------------------------------------------\n// Cossistant Provider Metadata (extension point for all parts)\n// ----------------------------------------------------------------------------\nconst cossistantToolTimelineMetadataSchema = z.object({\n\tlogType: z\n\t\t.enum([\n\t\t\tTOOL_TIMELINE_LOG_TYPE.CUSTOMER_FACING,\n\t\t\tTOOL_TIMELINE_LOG_TYPE.LOG,\n\t\t\tTOOL_TIMELINE_LOG_TYPE.DECISION,\n\t\t])\n\t\t.openapi({\n\t\t\tdescription:\n\t\t\t\t\"Tool timeline classification: conversation-visible, log-only, or decision stage\",\n\t\t}),\n\ttriggerMessageId: z.string().openapi({\n\t\tdescription:\n\t\t\t\"Message ID that triggered the tool/decision workflow execution\",\n\t}),\n\tworkflowRunId: z.string().openapi({\n\t\tdescription:\n\t\t\t\"Workflow run identifier used to correlate tool timeline updates\",\n\t}),\n\ttriggerVisibility: z.enum([\"public\", \"private\"]).optional().openapi({\n\t\tdescription:\n\t\t\t\"Visibility of the trigger message at the time the tool was executed\",\n\t}),\n});\n\nconst cossistantProviderMetadataSchema = z\n\t.object({\n\t\tcossistant: z\n\t\t\t.object({\n\t\t\t\tvisibility: z.enum([\"public\", \"private\"]).optional().openapi({\n\t\t\t\t\tdescription: \"Part-level visibility control for filtering\",\n\t\t\t\t}),\n\t\t\t\tprogressMessage: z.string().optional().openapi({\n\t\t\t\t\tdescription: \"Custom progress message to display during execution\",\n\t\t\t\t}),\n\t\t\t\tknowledgeId: z.string().optional().openapi({\n\t\t\t\t\tdescription: \"Reference to a Cossistant knowledge entry\",\n\t\t\t\t}),\n\t\t\t\ttoolTimeline: cossistantToolTimelineMetadataSchema.optional().openapi({\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t\"Tool timeline metadata used to classify visibility and trigger linkage\",\n\t\t\t\t}),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n\t.passthrough()\n\t.optional();\n\n// ----------------------------------------------------------------------------\n// TEXT PART (AI SDK compatible)\n// ----------------------------------------------------------------------------\nconst textPartSchema = z.object({\n\ttype: z.literal(\"text\").openapi({\n\t\tdescription: \"Text content part - matches AI SDK TextUIPart\",\n\t}),\n\ttext: z.string().openapi({\n\t\tdescription: \"The text content\",\n\t}),\n\tstate: z.enum([\"streaming\", \"done\"]).optional().openapi({\n\t\tdescription:\n\t\t\t\"AI SDK state: 'streaming' = still processing, 'done' = complete\",\n\t}),\n});\n\n// ----------------------------------------------------------------------------\n// REASONING PART (AI SDK compatible - for AI chain-of-thought)\n// ----------------------------------------------------------------------------\nconst reasoningPartSchema = z.object({\n\ttype: z.literal(\"reasoning\").openapi({\n\t\tdescription:\n\t\t\t\"AI reasoning/chain-of-thought - matches AI SDK ReasoningUIPart\",\n\t}),\n\ttext: z.string().openapi({\n\t\tdescription: \"The reasoning text content\",\n\t}),\n\tstate: z.enum([\"streaming\", \"done\"]).optional().openapi({\n\t\tdescription:\n\t\t\t\"AI SDK state: 'streaming' = still processing, 'done' = complete\",\n\t}),\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// TOOL PART (AI SDK compatible - for tool invocations)\n// AI SDK uses type: `tool-${toolName}` pattern, but we use a generic schema\n// with toolName field for flexibility. Type checking happens at runtime.\n// ----------------------------------------------------------------------------\nconst toolStateSchema = z.enum([\"partial\", \"result\", \"error\"]).openapi({\n\tdescription:\n\t\t\"AI SDK tool state: 'partial' = executing, 'result' = success, 'error' = failed\",\n});\n\nconst toolPartSchema = z.object({\n\ttype: z\n\t\t.string()\n\t\t.regex(/^tool-.+$/)\n\t\t.openapi({\n\t\t\tdescription: \"Tool type following AI SDK pattern: tool-{toolName}\",\n\t\t}),\n\ttoolCallId: z.string().openapi({\n\t\tdescription: \"Unique identifier for this tool invocation\",\n\t}),\n\ttoolName: z.string().openapi({\n\t\tdescription: \"Name of the tool being invoked\",\n\t}),\n\tinput: z.record(z.string(), z.unknown()).openapi({\n\t\tdescription: \"Input parameters passed to the tool\",\n\t}),\n\toutput: z.unknown().optional().openapi({\n\t\tdescription: \"Output returned by the tool (when state is 'result')\",\n\t}),\n\tstate: toolStateSchema,\n\terrorText: z.string().optional().openapi({\n\t\tdescription: \"Error message when state is 'error'\",\n\t}),\n\tcallProviderMetadata: cossistantProviderMetadataSchema,\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// SOURCE URL PART (AI SDK compatible - for citations)\n// ----------------------------------------------------------------------------\nconst sourceUrlPartSchema = z.object({\n\ttype: z.literal(\"source-url\").openapi({\n\t\tdescription: \"URL source citation - matches AI SDK SourceUrlUIPart\",\n\t}),\n\tsourceId: z.string().openapi({\n\t\tdescription: \"Unique identifier for this source\",\n\t}),\n\turl: z.string().url().openapi({\n\t\tdescription: \"URL of the source\",\n\t}),\n\ttitle: z.string().optional().openapi({\n\t\tdescription: \"Title of the source\",\n\t}),\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// SOURCE DOCUMENT PART (AI SDK compatible - for document citations)\n// ----------------------------------------------------------------------------\nconst sourceDocumentPartSchema = z.object({\n\ttype: z.literal(\"source-document\").openapi({\n\t\tdescription:\n\t\t\t\"Document source citation - matches AI SDK SourceDocumentUIPart\",\n\t}),\n\tsourceId: z.string().openapi({\n\t\tdescription: \"Unique identifier for this source\",\n\t}),\n\tmediaType: z.string().openapi({\n\t\tdescription: \"IANA media type of the document\",\n\t}),\n\ttitle: z.string().openapi({\n\t\tdescription: \"Title of the document\",\n\t}),\n\tfilename: z.string().optional().openapi({\n\t\tdescription: \"Filename of the document\",\n\t}),\n\tproviderMetadata: cossistantProviderMetadataSchema,\n});\n\n// ----------------------------------------------------------------------------\n// STEP START PART (AI SDK compatible - for multi-step boundaries)\n// ----------------------------------------------------------------------------\nconst stepStartPartSchema = z.object({\n\ttype: z.literal(\"step-start\").openapi({\n\t\tdescription: \"Step boundary marker - matches AI SDK StepStartUIPart\",\n\t}),\n});\n\n// ----------------------------------------------------------------------------\n// FILE PART (AI SDK compatible)\n// ----------------------------------------------------------------------------\nconst filePartSchema = z.object({\n\ttype: z.literal(\"file\").openapi({\n\t\tdescription: \"File attachment - matches AI SDK FileUIPart\",\n\t}),\n\turl: z.string().openapi({\n\t\tdescription: \"URL of the file (can be hosted URL or Data URL)\",\n\t}),\n\tmediaType: z.string().openapi({\n\t\tdescription: \"IANA media type of the file\",\n\t}),\n\tfilename: z.string().optional().openapi({\n\t\tdescription: \"Original filename\",\n\t}),\n\t// Cossistant extension: additional file metadata\n\tsize: z.number().optional().openapi({\n\t\tdescription: \"Size of the file in bytes\",\n\t}),\n});\n\n// ----------------------------------------------------------------------------\n// IMAGE PART (Cossistant extension - more detailed than AI SDK file)\n// ----------------------------------------------------------------------------\nconst imagePartSchema = z.object({\n\ttype: z.literal(\"image\").openapi({\n\t\tdescription: \"Image attachment with dimensions\",\n\t}),\n\turl: z.string().openapi({\n\t\tdescription: \"URL of the image\",\n\t}),\n\tmediaType: z.string().openapi({\n\t\tdescription: \"IANA media type of the image\",\n\t}),\n\t// Use lowercase 'filename' for AI SDK consistency\n\t// Note: Legacy data may have 'fileName' - conversion utilities handle both\n\tfilename: z.string().optional().openapi({\n\t\tdescription: \"Original filename of the image\",\n\t}),\n\tsize: z.number().optional().openapi({\n\t\tdescription: \"Size of the image in bytes\",\n\t}),\n\twidth: z.number().optional().openapi({\n\t\tdescription: \"Width of the image in pixels\",\n\t}),\n\theight: z.number().optional().openapi({\n\t\tdescription: \"Height of the image in pixels\",\n\t}),\n});\n\n// ============================================================================\n// COSSISTANT-SPECIFIC PART SCHEMAS\n// These are Cossistant-specific parts not in AI SDK\n// ============================================================================\n\nconst timelinePartEventSchema = z.object({\n\ttype: z.literal(\"event\").openapi({\n\t\tdescription: \"Type of timeline part - always 'event' for event parts\",\n\t}),\n\teventType: z\n\t\t.enum([\n\t\t\tConversationEventType.ASSIGNED,\n\t\t\tConversationEventType.UNASSIGNED,\n\t\t\tConversationEventType.PARTICIPANT_REQUESTED,\n\t\t\tConversationEventType.PARTICIPANT_JOINED,\n\t\t\tConversationEventType.PARTICIPANT_LEFT,\n\t\t\tConversationEventType.STATUS_CHANGED,\n\t\t\tConversationEventType.PRIORITY_CHANGED,\n\t\t\tConversationEventType.TAG_ADDED,\n\t\t\tConversationEventType.TAG_REMOVED,\n\t\t\tConversationEventType.RESOLVED,\n\t\t\tConversationEventType.REOPENED,\n\t\t\tConversationEventType.VISITOR_BLOCKED,\n\t\t\tConversationEventType.VISITOR_UNBLOCKED,\n\t\t\tConversationEventType.VISITOR_IDENTIFIED,\n\t\t])\n\t\t.openapi({\n\t\t\tdescription: \"Type of event that occurred\",\n\t\t}),\n\tactorUserId: z.string().nullable().openapi({\n\t\tdescription: \"User that triggered the event, if applicable\",\n\t}),\n\tactorAiAgentId: z.string().nullable().openapi({\n\t\tdescription: \"AI agent that triggered the event, if applicable\",\n\t}),\n\ttargetUserId: z.string().nullable().openapi({\n\t\tdescription: \"User targeted by the event, if applicable\",\n\t}),\n\ttargetAiAgentId: z.string().nullable().openapi({\n\t\tdescription: \"AI agent targeted by the event, if applicable\",\n\t}),\n\tmessage: z.string().nullable().optional().openapi({\n\t\tdescription: \"Optional human readable message attached to the event\",\n\t}),\n});\n\nconst timelinePartMetadataSchema = z.object({\n\ttype: z.literal(\"metadata\").openapi({\n\t\tdescription: \"Type of timeline part - always 'metadata' for metadata parts\",\n\t}),\n\tsource: z.enum([\"email\", \"widget\", \"api\"]).openapi({\n\t\tdescription: \"Source channel through which the message was created\",\n\t}),\n});\n\n// ============================================================================\n// TIMELINE ITEM PARTS UNION\n// Combines AI SDK compatible parts with Cossistant-specific parts\n// ============================================================================\n\nexport const timelineItemPartsSchema = z\n\t.array(\n\t\tz.union([\n\t\t\t// AI SDK compatible parts\n\t\t\ttextPartSchema,\n\t\t\treasoningPartSchema,\n\t\t\ttoolPartSchema,\n\t\t\tsourceUrlPartSchema,\n\t\t\tsourceDocumentPartSchema,\n\t\t\tstepStartPartSchema,\n\t\t\tfilePartSchema,\n\t\t\timagePartSchema,\n\t\t\t// Cossistant-specific parts\n\t\t\ttimelinePartEventSchema,\n\t\t\ttimelinePartMetadataSchema,\n\t\t])\n\t)\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Array of timeline parts that make up the timeline item content. Includes AI SDK compatible parts (text, reasoning, tool-*, source-url, source-document, step-start, file, image) and Cossistant-specific parts (event, metadata).\",\n\t});\n\nexport const timelineItemSchema = z.object({\n\tid: z.string().optional().openapi({\n\t\tdescription: \"Unique identifier for the timeline item\",\n\t}),\n\tconversationId: z.string().openapi({\n\t\tdescription: \"ID of the conversation this timeline item belongs to\",\n\t}),\n\torganizationId: z.string().openapi({\n\t\tdescription: \"ID of the organization this timeline item belongs to\",\n\t}),\n\tvisibility: z\n\t\t.enum([TimelineItemVisibility.PUBLIC, TimelineItemVisibility.PRIVATE])\n\t\t.openapi({\n\t\t\tdescription: \"Visibility level of the timeline item\",\n\t\t}),\n\ttype: z\n\t\t.enum([\n\t\t\tConversationTimelineType.MESSAGE,\n\t\t\tConversationTimelineType.EVENT,\n\t\t\tConversationTimelineType.IDENTIFICATION,\n\t\t\tConversationTimelineType.TOOL,\n\t\t])\n\t\t.openapi({\n\t\t\tdescription:\n\t\t\t\t\"Type of timeline item - message, event, identification, or tool call\",\n\t\t}),\n\ttext: z.string().nullable().openapi({\n\t\tdescription: \"Main text content of the timeline item\",\n\t}),\n\ttool: z.string().nullable().optional().openapi({\n\t\tdescription: \"Optional tool identifier associated with this timeline item\",\n\t}),\n\tparts: timelineItemPartsSchema,\n\tuserId: z.string().nullable().openapi({\n\t\tdescription: \"ID of the user who created this timeline item, if applicable\",\n\t}),\n\taiAgentId: z.string().nullable().openapi({\n\t\tdescription:\n\t\t\t\"ID of the AI agent that created this timeline item, if applicable\",\n\t}),\n\tvisitorId: z.string().nullable().openapi({\n\t\tdescription:\n\t\t\t\"ID of the visitor who created this timeline item, if applicable\",\n\t}),\n\tcreatedAt: z.string().openapi({\n\t\tdescription: \"ISO 8601 timestamp when the timeline item was created\",\n\t}),\n\tdeletedAt: z.string().nullable().optional().openapi({\n\t\tdescription:\n\t\t\t\"ISO 8601 timestamp when the timeline item was deleted, if applicable\",\n\t}),\n});\n\nexport type timelineItemSchema = z.infer<typeof timelineItemSchema>;\n\nexport type TimelineItem = z.infer<typeof timelineItemSchema>;\nexport type TimelineItemParts = z.infer<typeof timelineItemPartsSchema>;\n\n// AI SDK compatible part types\nexport type TextPart = z.infer<typeof textPartSchema>;\nexport type ReasoningPart = z.infer<typeof reasoningPartSchema>;\nexport type ToolPart = z.infer<typeof toolPartSchema>;\nexport type SourceUrlPart = z.infer<typeof sourceUrlPartSchema>;\nexport type SourceDocumentPart = z.infer<typeof sourceDocumentPartSchema>;\nexport type StepStartPart = z.infer<typeof stepStartPartSchema>;\nexport type FilePart = z.infer<typeof filePartSchema>;\nexport type ImagePart = z.infer<typeof imagePartSchema>;\n\n// Cossistant-specific part types\nexport type TimelinePartEvent = z.infer<typeof timelinePartEventSchema>;\nexport type TimelinePartMetadata = z.infer<typeof timelinePartMetadataSchema>;\n\n// Backward-compatible type aliases (deprecated, use new names)\n/** @deprecated Use `FilePart` instead */\nexport type TimelinePartFile = FilePart;\n/** @deprecated Use `ImagePart` instead */\nexport type TimelinePartImage = ImagePart;\n/** @deprecated Use `TextPart` instead */\nexport type TimelinePartText = TextPart;\n\n// Provider metadata type for extensions\nexport type CossistantProviderMetadata = z.infer<\n\ttypeof cossistantProviderMetadataSchema\n>;\nexport type CossistantToolTimelineMetadata = z.infer<\n\ttypeof cossistantToolTimelineMetadataSchema\n>;\n\n// Tool state type\nexport type ToolState = z.infer<typeof toolStateSchema>;\n\n// Export schemas for external use\nexport {\n\ttextPartSchema,\n\treasoningPartSchema,\n\ttoolPartSchema,\n\ttoolStateSchema,\n\tsourceUrlPartSchema,\n\tsourceDocumentPartSchema,\n\tstepStartPartSchema,\n\tfilePartSchema,\n\timagePartSchema,\n\ttimelinePartEventSchema,\n\ttimelinePartMetadataSchema,\n\tcossistantProviderMetadataSchema,\n};\n\n// REST API Schemas\nexport const getConversationTimelineItemsRequestSchema = z\n\t.object({\n\t\tlimit: z.coerce.number().min(1).max(100).default(50).openapi({\n\t\t\tdescription: \"Number of timeline items to fetch per page\",\n\t\t\tdefault: 50,\n\t\t}),\n\t\tcursor: z.string().nullable().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Cursor for pagination (timestamp_id format from previous response)\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Query parameters for fetching conversation timeline items\",\n\t});\n\nexport type GetConversationTimelineItemsRequest = z.infer<\n\ttypeof getConversationTimelineItemsRequestSchema\n>;\n\nexport const getConversationTimelineItemsResponseSchema = z\n\t.object({\n\t\titems: z.array(timelineItemSchema).openapi({\n\t\t\tdescription: \"Array of timeline items in chronological order\",\n\t\t}),\n\t\tnextCursor: z.string().nullable().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Cursor for the next page, null if no more items are available\",\n\t\t}),\n\t\thasNextPage: z.boolean().openapi({\n\t\t\tdescription: \"Whether there are more items available to fetch\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing paginated timeline items\",\n\t});\n\nexport type GetConversationTimelineItemsResponse = z.infer<\n\ttypeof getConversationTimelineItemsResponseSchema\n>;\n\n// Send Timeline Item (Message) Schemas\nexport const sendTimelineItemRequestSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"ID of the conversation to send the timeline item to\",\n\t\t}),\n\t\titem: z.object({\n\t\t\tid: z.string().optional().openapi({\n\t\t\t\tdescription: \"Optional client-generated ID for the timeline item\",\n\t\t\t}),\n\t\t\ttype: z\n\t\t\t\t.enum([\n\t\t\t\t\tConversationTimelineType.MESSAGE,\n\t\t\t\t\tConversationTimelineType.EVENT,\n\t\t\t\t])\n\t\t\t\t.default(ConversationTimelineType.MESSAGE)\n\t\t\t\t.openapi({\n\t\t\t\t\tdescription: \"Type of timeline item - defaults to MESSAGE\",\n\t\t\t\t\tdefault: ConversationTimelineType.MESSAGE,\n\t\t\t\t}),\n\t\t\ttext: z.string().openapi({\n\t\t\t\tdescription: \"Main text content of the timeline item\",\n\t\t\t}),\n\t\t\tparts: timelineItemPartsSchema.optional(),\n\t\t\tvisibility: z\n\t\t\t\t.enum([TimelineItemVisibility.PUBLIC, TimelineItemVisibility.PRIVATE])\n\t\t\t\t.default(TimelineItemVisibility.PUBLIC)\n\t\t\t\t.openapi({\n\t\t\t\t\tdescription: \"Visibility level of the timeline item\",\n\t\t\t\t\tdefault: TimelineItemVisibility.PUBLIC,\n\t\t\t\t}),\n\t\t\ttool: z.string().nullable().optional().openapi({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Optional tool identifier when sending non-message timeline items\",\n\t\t\t}),\n\t\t\tuserId: z.string().nullable().optional().openapi({\n\t\t\t\tdescription: \"ID of the user creating this timeline item\",\n\t\t\t}),\n\t\t\taiAgentId: z.string().nullable().optional().openapi({\n\t\t\t\tdescription: \"ID of the AI agent creating this timeline item\",\n\t\t\t}),\n\t\t\tvisitorId: z.string().nullable().optional().openapi({\n\t\t\t\tdescription: \"ID of the visitor creating this timeline item\",\n\t\t\t}),\n\t\t\tcreatedAt: z.string().optional().openapi({\n\t\t\t\tdescription: \"Optional timestamp for the timeline item\",\n\t\t\t}),\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Request body for sending a timeline item to a conversation\",\n\t});\n\nexport type SendTimelineItemRequest = z.infer<\n\ttypeof sendTimelineItemRequestSchema\n>;\n\nexport const sendTimelineItemResponseSchema = z\n\t.object({\n\t\titem: timelineItemSchema.openapi({\n\t\t\tdescription: \"The created timeline item\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing the created timeline item\",\n\t});\n\nexport type SendTimelineItemResponse = z.infer<\n\ttypeof sendTimelineItemResponseSchema\n>;\n"],"mappings":";;;;;AAkBA,MAAM,uCAAuC,EAAE,OAAO;CACrD,SAAS,EACP,KAAK;EACL,uBAAuB;EACvB,uBAAuB;EACvB,uBAAuB;EACvB,CAAC,CACD,QAAQ,EACR,aACC,mFACD,CAAC;CACH,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EACpC,aACC,kEACD,CAAC;CACF,eAAe,EAAE,QAAQ,CAAC,QAAQ,EACjC,aACC,mEACD,CAAC;CACF,mBAAmB,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,UAAU,CAAC,QAAQ,EACnE,aACC,uEACD,CAAC;CACF,CAAC;AAEF,MAAM,mCAAmC,EACvC,OAAO,EACP,YAAY,EACV,OAAO;CACP,YAAY,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,UAAU,CAAC,QAAQ,EAC5D,aAAa,+CACb,CAAC;CACF,iBAAiB,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAC9C,aAAa,uDACb,CAAC;CACF,aAAa,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAC1C,aA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