@cossistant/core 0.0.31 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","names":[],"sources":["../../../../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B,cAAA,eAAA,YAoBV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAES,6BAAA,GAAgC,CAAA,CAAE,aACtC;cAGK,kCAAgC,CAAA,CAAA;;;;;;;;;;;;;;;;;MA1BD,IAAA,cAAA,CAAA,MAAA,CAAA;MAAA,IAAA,aAAA;MAsBhC,KAAA,eAAA,UAA6B,CAAA;QAI5B,SAAA,EAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KASD,8BAAA,GAAiC,CAAA,CAAE,aACvC;cAGK,gCAA8B,CAAA,CAAA;;;;;;;;;;;;;;;;;KA6B/B,wBAAA,GAA2B,CAAA,CAAE,aACjC;cAGK,iCAA+B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA9CC,IAAA,cAAA,CAAA,MAAA,CAAA;QAAA,IAAA,aAAA;Q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A,YAAA,CAAA;IAuCtC,SAAA,eAAA,YAA+B,CAAA;;;;;;;KAA/B,+BAAA,GAAkC,CAAA,CAAE,aACxC"}
@@ -14,6 +14,7 @@ declare const timelineItemSchema: z.ZodObject<{
14
14
  message: "message";
15
15
  event: "event";
16
16
  identification: "identification";
17
+ tool: "tool";
17
18
  }>;
18
19
  text: z.ZodNullable<z.ZodString>;
19
20
  tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -39,6 +40,19 @@ declare const timelineItemSchema: z.ZodObject<{
39
40
  }>>;
40
41
  progressMessage: z.ZodOptional<z.ZodString>;
41
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>>;
42
56
  }, z.core.$strip>>;
43
57
  }, z.core.$loose>>;
44
58
  }, z.core.$strip>, z.ZodObject<{
@@ -53,6 +67,29 @@ declare const timelineItemSchema: z.ZodObject<{
53
67
  result: "result";
54
68
  }>;
55
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>>;
56
93
  providerMetadata: z.ZodOptional<z.ZodObject<{
57
94
  cossistant: z.ZodOptional<z.ZodObject<{
58
95
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -61,6 +98,19 @@ declare const timelineItemSchema: z.ZodObject<{
61
98
  }>>;
62
99
  progressMessage: z.ZodOptional<z.ZodString>;
63
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>>;
64
114
  }, z.core.$strip>>;
65
115
  }, z.core.$loose>>;
66
116
  }, z.core.$strip>, z.ZodObject<{
@@ -76,6 +126,19 @@ declare const timelineItemSchema: z.ZodObject<{
76
126
  }>>;
77
127
  progressMessage: z.ZodOptional<z.ZodString>;
78
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>>;
79
142
  }, z.core.$strip>>;
80
143
  }, z.core.$loose>>;
81
144
  }, z.core.$strip>, z.ZodObject<{
@@ -92,6 +155,19 @@ declare const timelineItemSchema: z.ZodObject<{
92
155
  }>>;
93
156
  progressMessage: z.ZodOptional<z.ZodString>;
94
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>>;
95
171
  }, z.core.$strip>>;
96
172
  }, z.core.$loose>>;
97
173
  }, z.core.$strip>, z.ZodObject<{
@@ -113,6 +189,7 @@ declare const timelineItemSchema: z.ZodObject<{
113
189
  }, z.core.$strip>, z.ZodObject<{
114
190
  type: z.ZodLiteral<"event">;
115
191
  eventType: z.ZodEnum<{
192
+ resolved: "resolved";
116
193
  assigned: "assigned";
117
194
  unassigned: "unassigned";
118
195
  participant_requested: "participant_requested";
@@ -122,7 +199,6 @@ declare const timelineItemSchema: z.ZodObject<{
122
199
  priority_changed: "priority_changed";
123
200
  tag_added: "tag_added";
124
201
  tag_removed: "tag_removed";
125
- resolved: "resolved";
126
202
  reopened: "reopened";
127
203
  visitor_blocked: "visitor_blocked";
128
204
  visitor_unblocked: "visitor_unblocked";
@@ -167,6 +243,7 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
167
243
  message: "message";
168
244
  event: "event";
169
245
  identification: "identification";
246
+ tool: "tool";
170
247
  }>;
171
248
  text: z.ZodNullable<z.ZodString>;
172
249
  tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -192,6 +269,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
192
269
  }>>;
193
270
  progressMessage: z.ZodOptional<z.ZodString>;
194
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>>;
195
285
  }, z.core.$strip>>;
196
286
  }, z.core.$loose>>;
197
287
  }, z.core.$strip>, z.ZodObject<{
@@ -206,6 +296,29 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
206
296
  result: "result";
207
297
  }>;
208
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>>;
209
322
  providerMetadata: z.ZodOptional<z.ZodObject<{
210
323
  cossistant: z.ZodOptional<z.ZodObject<{
211
324
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -214,6 +327,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
214
327
  }>>;
215
328
  progressMessage: z.ZodOptional<z.ZodString>;
216
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>>;
217
343
  }, z.core.$strip>>;
218
344
  }, z.core.$loose>>;
219
345
  }, z.core.$strip>, z.ZodObject<{
@@ -229,6 +355,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
229
355
  }>>;
230
356
  progressMessage: z.ZodOptional<z.ZodString>;
231
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>>;
232
371
  }, z.core.$strip>>;
233
372
  }, z.core.$loose>>;
234
373
  }, z.core.$strip>, z.ZodObject<{
@@ -245,6 +384,19 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
245
384
  }>>;
246
385
  progressMessage: z.ZodOptional<z.ZodString>;
247
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>>;
248
400
  }, z.core.$strip>>;
249
401
  }, z.core.$loose>>;
250
402
  }, z.core.$strip>, z.ZodObject<{
@@ -266,6 +418,7 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
266
418
  }, z.core.$strip>, z.ZodObject<{
267
419
  type: z.ZodLiteral<"event">;
268
420
  eventType: z.ZodEnum<{
421
+ resolved: "resolved";
269
422
  assigned: "assigned";
270
423
  unassigned: "unassigned";
271
424
  participant_requested: "participant_requested";
@@ -275,7 +428,6 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
275
428
  priority_changed: "priority_changed";
276
429
  tag_added: "tag_added";
277
430
  tag_removed: "tag_removed";
278
- resolved: "resolved";
279
431
  reopened: "reopened";
280
432
  visitor_blocked: "visitor_blocked";
281
433
  visitor_unblocked: "visitor_unblocked";
@@ -335,6 +487,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
335
487
  }>>;
336
488
  progressMessage: z.ZodOptional<z.ZodString>;
337
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>>;
338
503
  }, z.core.$strip>>;
339
504
  }, z.core.$loose>>;
340
505
  }, z.core.$strip>, z.ZodObject<{
@@ -349,6 +514,29 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
349
514
  result: "result";
350
515
  }>;
351
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>>;
352
540
  providerMetadata: z.ZodOptional<z.ZodObject<{
353
541
  cossistant: z.ZodOptional<z.ZodObject<{
354
542
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -357,6 +545,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
357
545
  }>>;
358
546
  progressMessage: z.ZodOptional<z.ZodString>;
359
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>>;
360
561
  }, z.core.$strip>>;
361
562
  }, z.core.$loose>>;
362
563
  }, z.core.$strip>, z.ZodObject<{
@@ -372,6 +573,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
372
573
  }>>;
373
574
  progressMessage: z.ZodOptional<z.ZodString>;
374
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>>;
375
589
  }, z.core.$strip>>;
376
590
  }, z.core.$loose>>;
377
591
  }, z.core.$strip>, z.ZodObject<{
@@ -388,6 +602,19 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
388
602
  }>>;
389
603
  progressMessage: z.ZodOptional<z.ZodString>;
390
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>>;
391
618
  }, z.core.$strip>>;
392
619
  }, z.core.$loose>>;
393
620
  }, z.core.$strip>, z.ZodObject<{
@@ -409,6 +636,7 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
409
636
  }, z.core.$strip>, z.ZodObject<{
410
637
  type: z.ZodLiteral<"event">;
411
638
  eventType: z.ZodEnum<{
639
+ resolved: "resolved";
412
640
  assigned: "assigned";
413
641
  unassigned: "unassigned";
414
642
  participant_requested: "participant_requested";
@@ -418,7 +646,6 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
418
646
  priority_changed: "priority_changed";
419
647
  tag_added: "tag_added";
420
648
  tag_removed: "tag_removed";
421
- resolved: "resolved";
422
649
  reopened: "reopened";
423
650
  visitor_blocked: "visitor_blocked";
424
651
  visitor_unblocked: "visitor_unblocked";
@@ -462,6 +689,7 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
462
689
  message: "message";
463
690
  event: "event";
464
691
  identification: "identification";
692
+ tool: "tool";
465
693
  }>;
466
694
  text: z.ZodNullable<z.ZodString>;
467
695
  tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -487,6 +715,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
487
715
  }>>;
488
716
  progressMessage: z.ZodOptional<z.ZodString>;
489
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>>;
490
731
  }, z.core.$strip>>;
491
732
  }, z.core.$loose>>;
492
733
  }, z.core.$strip>, z.ZodObject<{
@@ -501,6 +742,29 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
501
742
  result: "result";
502
743
  }>;
503
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>>;
504
768
  providerMetadata: z.ZodOptional<z.ZodObject<{
505
769
  cossistant: z.ZodOptional<z.ZodObject<{
506
770
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -509,6 +773,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
509
773
  }>>;
510
774
  progressMessage: z.ZodOptional<z.ZodString>;
511
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>>;
512
789
  }, z.core.$strip>>;
513
790
  }, z.core.$loose>>;
514
791
  }, z.core.$strip>, z.ZodObject<{
@@ -524,6 +801,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
524
801
  }>>;
525
802
  progressMessage: z.ZodOptional<z.ZodString>;
526
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>>;
527
817
  }, z.core.$strip>>;
528
818
  }, z.core.$loose>>;
529
819
  }, z.core.$strip>, z.ZodObject<{
@@ -540,6 +830,19 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
540
830
  }>>;
541
831
  progressMessage: z.ZodOptional<z.ZodString>;
542
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>>;
543
846
  }, z.core.$strip>>;
544
847
  }, z.core.$loose>>;
545
848
  }, z.core.$strip>, z.ZodObject<{
@@ -561,6 +864,7 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
561
864
  }, z.core.$strip>, z.ZodObject<{
562
865
  type: z.ZodLiteral<"event">;
563
866
  eventType: z.ZodEnum<{
867
+ resolved: "resolved";
564
868
  assigned: "assigned";
565
869
  unassigned: "unassigned";
566
870
  participant_requested: "participant_requested";
@@ -570,7 +874,6 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
570
874
  priority_changed: "priority_changed";
571
875
  tag_added: "tag_added";
572
876
  tag_removed: "tag_removed";
573
- resolved: "resolved";
574
877
  reopened: "reopened";
575
878
  visitor_blocked: "visitor_blocked";
576
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":";;;;cAkSa,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2HwB,GAAA,aAAA;IAAA,KAAA,eAAA,YAAA,CAAA;IAiB3C,gBAAA,eAAA,YAAoC,CAAA;MAKnC,UAAA,eAkDV,YAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA/IS,kBAAA,GAAqB,CAAA,CAAE,aAAa;KAEpC,YAAA,GAAe,CAAA,CAAE,aAAa;cAkD7B,2CAAyC,CAAA,CAAA;;;;KAe1C,mCAAA,GAAsC,CAAA,CAAE,aAC5C;cAGK,4CAA0C,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsBb,OAAA,EAAA,SAAA;UAAA,CAAA,CAAA,CAAA;UAoD9B,eAAuB,eAC3B,YAAA,CAAA;UAGK,WAAA,eAQV,YAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E } 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({
@@ -117,8 +130,9 @@ const timelineItemSchema = z.object({
117
130
  type: z.enum([
118
131
  ConversationTimelineType.MESSAGE,
119
132
  ConversationTimelineType.EVENT,
120
- ConversationTimelineType.IDENTIFICATION
121
- ]).openapi({ description: "Type of timeline item - message, event, or interactive identification tool" }),
133
+ ConversationTimelineType.IDENTIFICATION,
134
+ ConversationTimelineType.TOOL
135
+ ]).openapi({ description: "Type of timeline item - message, event, identification, or tool call" }),
122
136
  text: z.string().nullable().openapi({ description: "Main text content of the timeline item" }),
123
137
  tool: z.string().nullable().optional().openapi({ description: "Optional tool identifier associated with this timeline item" }),
124
138
  parts: timelineItemPartsSchema,