@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.
@@ -116,8 +116,8 @@ declare const realtimeSchema: {
116
116
  visitorId: z.ZodString;
117
117
  websiteId: z.ZodString;
118
118
  status: z.ZodDefault<z.ZodEnum<{
119
- resolved: "resolved";
120
119
  open: "open";
120
+ resolved: "resolved";
121
121
  spam: "spam";
122
122
  }>>;
123
123
  visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -162,6 +162,19 @@ declare const realtimeSchema: {
162
162
  }>>;
163
163
  progressMessage: z.ZodOptional<z.ZodString>;
164
164
  knowledgeId: z.ZodOptional<z.ZodString>;
165
+ toolTimeline: z.ZodOptional<z.ZodObject<{
166
+ logType: z.ZodEnum<{
167
+ customer_facing: "customer_facing";
168
+ log: "log";
169
+ decision: "decision";
170
+ }>;
171
+ triggerMessageId: z.ZodString;
172
+ workflowRunId: z.ZodString;
173
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
174
+ public: "public";
175
+ private: "private";
176
+ }>>;
177
+ }, z.core.$strip>>;
165
178
  }, z.core.$strip>>;
166
179
  }, z.core.$loose>>;
167
180
  }, z.core.$strip>, z.ZodObject<{
@@ -176,6 +189,29 @@ declare const realtimeSchema: {
176
189
  result: "result";
177
190
  }>;
178
191
  errorText: z.ZodOptional<z.ZodString>;
192
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
193
+ cossistant: z.ZodOptional<z.ZodObject<{
194
+ visibility: z.ZodOptional<z.ZodEnum<{
195
+ public: "public";
196
+ private: "private";
197
+ }>>;
198
+ progressMessage: z.ZodOptional<z.ZodString>;
199
+ knowledgeId: z.ZodOptional<z.ZodString>;
200
+ toolTimeline: z.ZodOptional<z.ZodObject<{
201
+ logType: z.ZodEnum<{
202
+ customer_facing: "customer_facing";
203
+ log: "log";
204
+ decision: "decision";
205
+ }>;
206
+ triggerMessageId: z.ZodString;
207
+ workflowRunId: z.ZodString;
208
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
209
+ public: "public";
210
+ private: "private";
211
+ }>>;
212
+ }, z.core.$strip>>;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$loose>>;
179
215
  providerMetadata: z.ZodOptional<z.ZodObject<{
180
216
  cossistant: z.ZodOptional<z.ZodObject<{
181
217
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -184,6 +220,19 @@ declare const realtimeSchema: {
184
220
  }>>;
185
221
  progressMessage: z.ZodOptional<z.ZodString>;
186
222
  knowledgeId: z.ZodOptional<z.ZodString>;
223
+ toolTimeline: z.ZodOptional<z.ZodObject<{
224
+ logType: z.ZodEnum<{
225
+ customer_facing: "customer_facing";
226
+ log: "log";
227
+ decision: "decision";
228
+ }>;
229
+ triggerMessageId: z.ZodString;
230
+ workflowRunId: z.ZodString;
231
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
232
+ public: "public";
233
+ private: "private";
234
+ }>>;
235
+ }, z.core.$strip>>;
187
236
  }, z.core.$strip>>;
188
237
  }, z.core.$loose>>;
189
238
  }, z.core.$strip>, z.ZodObject<{
@@ -199,6 +248,19 @@ declare const realtimeSchema: {
199
248
  }>>;
200
249
  progressMessage: z.ZodOptional<z.ZodString>;
201
250
  knowledgeId: z.ZodOptional<z.ZodString>;
251
+ toolTimeline: z.ZodOptional<z.ZodObject<{
252
+ logType: z.ZodEnum<{
253
+ customer_facing: "customer_facing";
254
+ log: "log";
255
+ decision: "decision";
256
+ }>;
257
+ triggerMessageId: z.ZodString;
258
+ workflowRunId: z.ZodString;
259
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
260
+ public: "public";
261
+ private: "private";
262
+ }>>;
263
+ }, z.core.$strip>>;
202
264
  }, z.core.$strip>>;
203
265
  }, z.core.$loose>>;
204
266
  }, z.core.$strip>, z.ZodObject<{
@@ -215,6 +277,19 @@ declare const realtimeSchema: {
215
277
  }>>;
216
278
  progressMessage: z.ZodOptional<z.ZodString>;
217
279
  knowledgeId: z.ZodOptional<z.ZodString>;
280
+ toolTimeline: z.ZodOptional<z.ZodObject<{
281
+ logType: z.ZodEnum<{
282
+ customer_facing: "customer_facing";
283
+ log: "log";
284
+ decision: "decision";
285
+ }>;
286
+ triggerMessageId: z.ZodString;
287
+ workflowRunId: z.ZodString;
288
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
289
+ public: "public";
290
+ private: "private";
291
+ }>>;
292
+ }, z.core.$strip>>;
218
293
  }, z.core.$strip>>;
219
294
  }, z.core.$loose>>;
220
295
  }, z.core.$strip>, z.ZodObject<{
@@ -236,6 +311,7 @@ declare const realtimeSchema: {
236
311
  }, z.core.$strip>, z.ZodObject<{
237
312
  type: z.ZodLiteral<"event">;
238
313
  eventType: z.ZodEnum<{
314
+ resolved: "resolved";
239
315
  assigned: "assigned";
240
316
  unassigned: "unassigned";
241
317
  participant_requested: "participant_requested";
@@ -245,7 +321,6 @@ declare const realtimeSchema: {
245
321
  priority_changed: "priority_changed";
246
322
  tag_added: "tag_added";
247
323
  tag_removed: "tag_removed";
248
- resolved: "resolved";
249
324
  reopened: "reopened";
250
325
  visitor_blocked: "visitor_blocked";
251
326
  visitor_unblocked: "visitor_unblocked";
@@ -274,8 +349,8 @@ declare const realtimeSchema: {
274
349
  header: z.ZodObject<{
275
350
  id: z.ZodString;
276
351
  status: z.ZodEnum<{
277
- resolved: "resolved";
278
352
  open: "open";
353
+ resolved: "resolved";
279
354
  spam: "spam";
280
355
  }>;
281
356
  priority: z.ZodEnum<{
@@ -360,6 +435,19 @@ declare const realtimeSchema: {
360
435
  }>>;
361
436
  progressMessage: z.ZodOptional<z.ZodString>;
362
437
  knowledgeId: z.ZodOptional<z.ZodString>;
438
+ toolTimeline: z.ZodOptional<z.ZodObject<{
439
+ logType: z.ZodEnum<{
440
+ customer_facing: "customer_facing";
441
+ log: "log";
442
+ decision: "decision";
443
+ }>;
444
+ triggerMessageId: z.ZodString;
445
+ workflowRunId: z.ZodString;
446
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
447
+ public: "public";
448
+ private: "private";
449
+ }>>;
450
+ }, z.core.$strip>>;
363
451
  }, z.core.$strip>>;
364
452
  }, z.core.$loose>>;
365
453
  }, z.core.$strip>, z.ZodObject<{
@@ -374,6 +462,29 @@ declare const realtimeSchema: {
374
462
  result: "result";
375
463
  }>;
376
464
  errorText: z.ZodOptional<z.ZodString>;
465
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
466
+ cossistant: z.ZodOptional<z.ZodObject<{
467
+ visibility: z.ZodOptional<z.ZodEnum<{
468
+ public: "public";
469
+ private: "private";
470
+ }>>;
471
+ progressMessage: z.ZodOptional<z.ZodString>;
472
+ knowledgeId: z.ZodOptional<z.ZodString>;
473
+ toolTimeline: z.ZodOptional<z.ZodObject<{
474
+ logType: z.ZodEnum<{
475
+ customer_facing: "customer_facing";
476
+ log: "log";
477
+ decision: "decision";
478
+ }>;
479
+ triggerMessageId: z.ZodString;
480
+ workflowRunId: z.ZodString;
481
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
482
+ public: "public";
483
+ private: "private";
484
+ }>>;
485
+ }, z.core.$strip>>;
486
+ }, z.core.$strip>>;
487
+ }, z.core.$loose>>;
377
488
  providerMetadata: z.ZodOptional<z.ZodObject<{
378
489
  cossistant: z.ZodOptional<z.ZodObject<{
379
490
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -382,6 +493,19 @@ declare const realtimeSchema: {
382
493
  }>>;
383
494
  progressMessage: z.ZodOptional<z.ZodString>;
384
495
  knowledgeId: z.ZodOptional<z.ZodString>;
496
+ toolTimeline: z.ZodOptional<z.ZodObject<{
497
+ logType: z.ZodEnum<{
498
+ customer_facing: "customer_facing";
499
+ log: "log";
500
+ decision: "decision";
501
+ }>;
502
+ triggerMessageId: z.ZodString;
503
+ workflowRunId: z.ZodString;
504
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
505
+ public: "public";
506
+ private: "private";
507
+ }>>;
508
+ }, z.core.$strip>>;
385
509
  }, z.core.$strip>>;
386
510
  }, z.core.$loose>>;
387
511
  }, z.core.$strip>, z.ZodObject<{
@@ -397,6 +521,19 @@ declare const realtimeSchema: {
397
521
  }>>;
398
522
  progressMessage: z.ZodOptional<z.ZodString>;
399
523
  knowledgeId: z.ZodOptional<z.ZodString>;
524
+ toolTimeline: z.ZodOptional<z.ZodObject<{
525
+ logType: z.ZodEnum<{
526
+ customer_facing: "customer_facing";
527
+ log: "log";
528
+ decision: "decision";
529
+ }>;
530
+ triggerMessageId: z.ZodString;
531
+ workflowRunId: z.ZodString;
532
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
533
+ public: "public";
534
+ private: "private";
535
+ }>>;
536
+ }, z.core.$strip>>;
400
537
  }, z.core.$strip>>;
401
538
  }, z.core.$loose>>;
402
539
  }, z.core.$strip>, z.ZodObject<{
@@ -413,6 +550,19 @@ declare const realtimeSchema: {
413
550
  }>>;
414
551
  progressMessage: z.ZodOptional<z.ZodString>;
415
552
  knowledgeId: z.ZodOptional<z.ZodString>;
553
+ toolTimeline: z.ZodOptional<z.ZodObject<{
554
+ logType: z.ZodEnum<{
555
+ customer_facing: "customer_facing";
556
+ log: "log";
557
+ decision: "decision";
558
+ }>;
559
+ triggerMessageId: z.ZodString;
560
+ workflowRunId: z.ZodString;
561
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
562
+ public: "public";
563
+ private: "private";
564
+ }>>;
565
+ }, z.core.$strip>>;
416
566
  }, z.core.$strip>>;
417
567
  }, z.core.$loose>>;
418
568
  }, z.core.$strip>, z.ZodObject<{
@@ -434,6 +584,7 @@ declare const realtimeSchema: {
434
584
  }, z.core.$strip>, z.ZodObject<{
435
585
  type: z.ZodLiteral<"event">;
436
586
  eventType: z.ZodEnum<{
587
+ resolved: "resolved";
437
588
  assigned: "assigned";
438
589
  unassigned: "unassigned";
439
590
  participant_requested: "participant_requested";
@@ -443,7 +594,6 @@ declare const realtimeSchema: {
443
594
  priority_changed: "priority_changed";
444
595
  tag_added: "tag_added";
445
596
  tag_removed: "tag_removed";
446
- resolved: "resolved";
447
597
  reopened: "reopened";
448
598
  visitor_blocked: "visitor_blocked";
449
599
  visitor_unblocked: "visitor_unblocked";
@@ -506,6 +656,19 @@ declare const realtimeSchema: {
506
656
  }>>;
507
657
  progressMessage: z.ZodOptional<z.ZodString>;
508
658
  knowledgeId: z.ZodOptional<z.ZodString>;
659
+ toolTimeline: z.ZodOptional<z.ZodObject<{
660
+ logType: z.ZodEnum<{
661
+ customer_facing: "customer_facing";
662
+ log: "log";
663
+ decision: "decision";
664
+ }>;
665
+ triggerMessageId: z.ZodString;
666
+ workflowRunId: z.ZodString;
667
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
668
+ public: "public";
669
+ private: "private";
670
+ }>>;
671
+ }, z.core.$strip>>;
509
672
  }, z.core.$strip>>;
510
673
  }, z.core.$loose>>;
511
674
  }, z.core.$strip>, z.ZodObject<{
@@ -520,6 +683,29 @@ declare const realtimeSchema: {
520
683
  result: "result";
521
684
  }>;
522
685
  errorText: z.ZodOptional<z.ZodString>;
686
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
687
+ cossistant: z.ZodOptional<z.ZodObject<{
688
+ visibility: z.ZodOptional<z.ZodEnum<{
689
+ public: "public";
690
+ private: "private";
691
+ }>>;
692
+ progressMessage: z.ZodOptional<z.ZodString>;
693
+ knowledgeId: z.ZodOptional<z.ZodString>;
694
+ toolTimeline: z.ZodOptional<z.ZodObject<{
695
+ logType: z.ZodEnum<{
696
+ customer_facing: "customer_facing";
697
+ log: "log";
698
+ decision: "decision";
699
+ }>;
700
+ triggerMessageId: z.ZodString;
701
+ workflowRunId: z.ZodString;
702
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
703
+ public: "public";
704
+ private: "private";
705
+ }>>;
706
+ }, z.core.$strip>>;
707
+ }, z.core.$strip>>;
708
+ }, z.core.$loose>>;
523
709
  providerMetadata: z.ZodOptional<z.ZodObject<{
524
710
  cossistant: z.ZodOptional<z.ZodObject<{
525
711
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -528,6 +714,19 @@ declare const realtimeSchema: {
528
714
  }>>;
529
715
  progressMessage: z.ZodOptional<z.ZodString>;
530
716
  knowledgeId: z.ZodOptional<z.ZodString>;
717
+ toolTimeline: z.ZodOptional<z.ZodObject<{
718
+ logType: z.ZodEnum<{
719
+ customer_facing: "customer_facing";
720
+ log: "log";
721
+ decision: "decision";
722
+ }>;
723
+ triggerMessageId: z.ZodString;
724
+ workflowRunId: z.ZodString;
725
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
726
+ public: "public";
727
+ private: "private";
728
+ }>>;
729
+ }, z.core.$strip>>;
531
730
  }, z.core.$strip>>;
532
731
  }, z.core.$loose>>;
533
732
  }, z.core.$strip>, z.ZodObject<{
@@ -543,6 +742,19 @@ declare const realtimeSchema: {
543
742
  }>>;
544
743
  progressMessage: z.ZodOptional<z.ZodString>;
545
744
  knowledgeId: z.ZodOptional<z.ZodString>;
745
+ toolTimeline: z.ZodOptional<z.ZodObject<{
746
+ logType: z.ZodEnum<{
747
+ customer_facing: "customer_facing";
748
+ log: "log";
749
+ decision: "decision";
750
+ }>;
751
+ triggerMessageId: z.ZodString;
752
+ workflowRunId: z.ZodString;
753
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
754
+ public: "public";
755
+ private: "private";
756
+ }>>;
757
+ }, z.core.$strip>>;
546
758
  }, z.core.$strip>>;
547
759
  }, z.core.$loose>>;
548
760
  }, z.core.$strip>, z.ZodObject<{
@@ -559,6 +771,19 @@ declare const realtimeSchema: {
559
771
  }>>;
560
772
  progressMessage: z.ZodOptional<z.ZodString>;
561
773
  knowledgeId: z.ZodOptional<z.ZodString>;
774
+ toolTimeline: z.ZodOptional<z.ZodObject<{
775
+ logType: z.ZodEnum<{
776
+ customer_facing: "customer_facing";
777
+ log: "log";
778
+ decision: "decision";
779
+ }>;
780
+ triggerMessageId: z.ZodString;
781
+ workflowRunId: z.ZodString;
782
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
783
+ public: "public";
784
+ private: "private";
785
+ }>>;
786
+ }, z.core.$strip>>;
562
787
  }, z.core.$strip>>;
563
788
  }, z.core.$loose>>;
564
789
  }, z.core.$strip>, z.ZodObject<{
@@ -580,6 +805,7 @@ declare const realtimeSchema: {
580
805
  }, z.core.$strip>, z.ZodObject<{
581
806
  type: z.ZodLiteral<"event">;
582
807
  eventType: z.ZodEnum<{
808
+ resolved: "resolved";
583
809
  assigned: "assigned";
584
810
  unassigned: "unassigned";
585
811
  participant_requested: "participant_requested";
@@ -589,7 +815,6 @@ declare const realtimeSchema: {
589
815
  priority_changed: "priority_changed";
590
816
  tag_added: "tag_added";
591
817
  tag_removed: "tag_removed";
592
- resolved: "resolved";
593
818
  reopened: "reopened";
594
819
  visitor_blocked: "visitor_blocked";
595
820
  visitor_unblocked: "visitor_unblocked";
@@ -688,6 +913,7 @@ declare const realtimeSchema: {
688
913
  conversationId: z.ZodString;
689
914
  organizationId: z.ZodString;
690
915
  type: z.ZodEnum<{
916
+ resolved: "resolved";
691
917
  assigned: "assigned";
692
918
  unassigned: "unassigned";
693
919
  participant_requested: "participant_requested";
@@ -697,7 +923,6 @@ declare const realtimeSchema: {
697
923
  priority_changed: "priority_changed";
698
924
  tag_added: "tag_added";
699
925
  tag_removed: "tag_removed";
700
- resolved: "resolved";
701
926
  reopened: "reopened";
702
927
  visitor_blocked: "visitor_blocked";
703
928
  visitor_unblocked: "visitor_unblocked";
@@ -731,8 +956,8 @@ declare const realtimeSchema: {
731
956
  escalatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
732
957
  escalationReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
958
  status: z.ZodOptional<z.ZodEnum<{
734
- resolved: "resolved";
735
959
  open: "open";
960
+ resolved: "resolved";
736
961
  spam: "spam";
737
962
  }>>;
738
963
  priority: z.ZodOptional<z.ZodEnum<{
@@ -817,8 +1042,8 @@ declare const realtimeSchema: {
817
1042
  aiAgentId: z.ZodString;
818
1043
  workflowRunId: z.ZodString;
819
1044
  status: z.ZodEnum<{
820
- error: "error";
821
1045
  success: "success";
1046
+ error: "error";
822
1047
  skipped: "skipped";
823
1048
  cancelled: "cancelled";
824
1049
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAsBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6WD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB"}
1
+ {"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAsBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6WD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB"}
@@ -10,8 +10,8 @@ declare const conversationSchema: z.ZodObject<{
10
10
  visitorId: z.ZodString;
11
11
  websiteId: z.ZodString;
12
12
  status: z.ZodDefault<z.ZodEnum<{
13
- resolved: "resolved";
14
13
  open: "open";
14
+ resolved: "resolved";
15
15
  spam: "spam";
16
16
  }>>;
17
17
  visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -56,6 +56,19 @@ declare const conversationSchema: z.ZodObject<{
56
56
  }>>;
57
57
  progressMessage: z.ZodOptional<z.ZodString>;
58
58
  knowledgeId: z.ZodOptional<z.ZodString>;
59
+ toolTimeline: z.ZodOptional<z.ZodObject<{
60
+ logType: z.ZodEnum<{
61
+ customer_facing: "customer_facing";
62
+ log: "log";
63
+ decision: "decision";
64
+ }>;
65
+ triggerMessageId: z.ZodString;
66
+ workflowRunId: z.ZodString;
67
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
68
+ public: "public";
69
+ private: "private";
70
+ }>>;
71
+ }, z.core.$strip>>;
59
72
  }, z.core.$strip>>;
60
73
  }, z.core.$loose>>;
61
74
  }, z.core.$strip>, z.ZodObject<{
@@ -70,6 +83,29 @@ declare const conversationSchema: z.ZodObject<{
70
83
  result: "result";
71
84
  }>;
72
85
  errorText: z.ZodOptional<z.ZodString>;
86
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
87
+ cossistant: z.ZodOptional<z.ZodObject<{
88
+ visibility: z.ZodOptional<z.ZodEnum<{
89
+ public: "public";
90
+ private: "private";
91
+ }>>;
92
+ progressMessage: z.ZodOptional<z.ZodString>;
93
+ knowledgeId: z.ZodOptional<z.ZodString>;
94
+ toolTimeline: z.ZodOptional<z.ZodObject<{
95
+ logType: z.ZodEnum<{
96
+ customer_facing: "customer_facing";
97
+ log: "log";
98
+ decision: "decision";
99
+ }>;
100
+ triggerMessageId: z.ZodString;
101
+ workflowRunId: z.ZodString;
102
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
103
+ public: "public";
104
+ private: "private";
105
+ }>>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>>;
108
+ }, z.core.$loose>>;
73
109
  providerMetadata: z.ZodOptional<z.ZodObject<{
74
110
  cossistant: z.ZodOptional<z.ZodObject<{
75
111
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -78,6 +114,19 @@ declare const conversationSchema: z.ZodObject<{
78
114
  }>>;
79
115
  progressMessage: z.ZodOptional<z.ZodString>;
80
116
  knowledgeId: z.ZodOptional<z.ZodString>;
117
+ toolTimeline: z.ZodOptional<z.ZodObject<{
118
+ logType: z.ZodEnum<{
119
+ customer_facing: "customer_facing";
120
+ log: "log";
121
+ decision: "decision";
122
+ }>;
123
+ triggerMessageId: z.ZodString;
124
+ workflowRunId: z.ZodString;
125
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
126
+ public: "public";
127
+ private: "private";
128
+ }>>;
129
+ }, z.core.$strip>>;
81
130
  }, z.core.$strip>>;
82
131
  }, z.core.$loose>>;
83
132
  }, z.core.$strip>, z.ZodObject<{
@@ -93,6 +142,19 @@ declare const conversationSchema: z.ZodObject<{
93
142
  }>>;
94
143
  progressMessage: z.ZodOptional<z.ZodString>;
95
144
  knowledgeId: z.ZodOptional<z.ZodString>;
145
+ toolTimeline: z.ZodOptional<z.ZodObject<{
146
+ logType: z.ZodEnum<{
147
+ customer_facing: "customer_facing";
148
+ log: "log";
149
+ decision: "decision";
150
+ }>;
151
+ triggerMessageId: z.ZodString;
152
+ workflowRunId: z.ZodString;
153
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
154
+ public: "public";
155
+ private: "private";
156
+ }>>;
157
+ }, z.core.$strip>>;
96
158
  }, z.core.$strip>>;
97
159
  }, z.core.$loose>>;
98
160
  }, z.core.$strip>, z.ZodObject<{
@@ -109,6 +171,19 @@ declare const conversationSchema: z.ZodObject<{
109
171
  }>>;
110
172
  progressMessage: z.ZodOptional<z.ZodString>;
111
173
  knowledgeId: z.ZodOptional<z.ZodString>;
174
+ toolTimeline: z.ZodOptional<z.ZodObject<{
175
+ logType: z.ZodEnum<{
176
+ customer_facing: "customer_facing";
177
+ log: "log";
178
+ decision: "decision";
179
+ }>;
180
+ triggerMessageId: z.ZodString;
181
+ workflowRunId: z.ZodString;
182
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
183
+ public: "public";
184
+ private: "private";
185
+ }>>;
186
+ }, z.core.$strip>>;
112
187
  }, z.core.$strip>>;
113
188
  }, z.core.$loose>>;
114
189
  }, z.core.$strip>, z.ZodObject<{
@@ -130,6 +205,7 @@ declare const conversationSchema: z.ZodObject<{
130
205
  }, z.core.$strip>, z.ZodObject<{
131
206
  type: z.ZodLiteral<"event">;
132
207
  eventType: z.ZodEnum<{
208
+ resolved: "resolved";
133
209
  assigned: "assigned";
134
210
  unassigned: "unassigned";
135
211
  participant_requested: "participant_requested";
@@ -139,7 +215,6 @@ declare const conversationSchema: z.ZodObject<{
139
215
  priority_changed: "priority_changed";
140
216
  tag_added: "tag_added";
141
217
  tag_removed: "tag_removed";
142
- resolved: "resolved";
143
218
  reopened: "reopened";
144
219
  visitor_blocked: "visitor_blocked";
145
220
  visitor_unblocked: "visitor_unblocked";
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","names":[],"sources":["../../../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;cAkBa,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqBnB,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;;;;;;EAvBJ,SAAA,aAAA;EAAA,SAAA,aAAA;EAqBnB,SAAA,eAAY,YAAkB,CAAA;AAE1C,CAAA,eAAa,CAAA;KAYD,gBAAA,GAAmB,CAAA,CAAE,aAAa"}
1
+ {"version":3,"file":"schemas.d.ts","names":[],"sources":["../../../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;cAkBa,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,CAAA,eAAA,CAAA,aAAA,CAAA;MAAA,IAAA,cAAA,CAAA,UAAA,CAAA;MAqBnB,MAAA,WAAY,CAAA;QAEX,KAAA,EAAA,OAUX;;;;;;;;;;;;KAZU,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;EAAA,cAAA,aAAA;EAAA,MAAA,eAAA,YAAA,CAAA;EAYvB,SAAA,eAAgB,YAAkB,CAAA;;;;;;;KAAlC,gBAAA,GAAmB,CAAA,CAAE,aAAa"}
@@ -0,0 +1,16 @@
1
+ //#region ../types/src/tool-timeline-policy.ts
2
+ const TOOL_TIMELINE_LOG_TYPE = {
3
+ CUSTOMER_FACING: "customer_facing",
4
+ LOG: "log",
5
+ DECISION: "decision"
6
+ };
7
+ const TOOL_TIMELINE_CONVERSATION_ALLOWLIST = [
8
+ "searchKnowledgeBase",
9
+ "updateConversationTitle",
10
+ "updateSentiment"
11
+ ];
12
+ const CONVERSATION_VISIBLE_TOOLS = new Set(TOOL_TIMELINE_CONVERSATION_ALLOWLIST);
13
+
14
+ //#endregion
15
+ export { TOOL_TIMELINE_LOG_TYPE };
16
+ //# sourceMappingURL=tool-timeline-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-timeline-policy.js","names":[],"sources":["../../../../types/src/tool-timeline-policy.ts"],"sourcesContent":["export const TOOL_TIMELINE_LOG_TYPE = {\n\tCUSTOMER_FACING: \"customer_facing\",\n\tLOG: \"log\",\n\tDECISION: \"decision\",\n} as const;\n\nexport type ToolTimelineLogType =\n\t(typeof TOOL_TIMELINE_LOG_TYPE)[keyof typeof TOOL_TIMELINE_LOG_TYPE];\n\nexport const TOOL_TIMELINE_CONVERSATION_ALLOWLIST = [\n\t\"searchKnowledgeBase\",\n\t\"updateConversationTitle\",\n\t\"updateSentiment\",\n] as const;\n\nconst CONVERSATION_VISIBLE_TOOLS = new Set<string>(\n\tTOOL_TIMELINE_CONVERSATION_ALLOWLIST\n);\n\nexport function isConversationVisibleTool(toolName: string): boolean {\n\treturn CONVERSATION_VISIBLE_TOOLS.has(toolName);\n}\n\nexport function getToolLogType(toolName: string): ToolTimelineLogType {\n\tif (toolName === \"aiDecision\") {\n\t\treturn TOOL_TIMELINE_LOG_TYPE.DECISION;\n\t}\n\n\tif (isConversationVisibleTool(toolName)) {\n\t\treturn TOOL_TIMELINE_LOG_TYPE.CUSTOMER_FACING;\n\t}\n\n\treturn TOOL_TIMELINE_LOG_TYPE.LOG;\n}\n"],"mappings":";AAAA,MAAa,yBAAyB;CACrC,iBAAiB;CACjB,KAAK;CACL,UAAU;CACV;AAKD,MAAa,uCAAuC;CACnD;CACA;CACA;CACA;AAED,MAAM,6BAA6B,IAAI,IACtC,qCACA"}
package/utils.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","names":[],"sources":["../src/utils.ts"],"sourcesContent":[],"mappings":";cAGa,YAAU;AAAV,iBAEG,WAAA,CAFoC,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAEpC,cAOH,sBAPc,EAAA,GAAA,GAAA,MAAA;AAOd,cAKA,iBAFZ,EAAA,GAAA,GAAA,MAAA"}
1
+ {"version":3,"file":"utils.d.ts","names":[],"sources":["../src/utils.ts"],"sourcesContent":[],"mappings":";cAGa,YAAU;AAAV,iBAEG,WAAA,CAFO,IAA6B,EAAA,MAAA,CAAA,EAAA,OAAA;AAEpC,cAOH,sBAPc,EAAA,GAAA,GAAA,MAAA;AAOd,cAKA,iBAFZ,EAAA,GAAA,GAAA,MAAA"}