@cossistant/types 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.
@@ -167,6 +167,19 @@ declare const realtimeSchema: {
167
167
  }>>;
168
168
  progressMessage: z.ZodOptional<z.ZodString>;
169
169
  knowledgeId: z.ZodOptional<z.ZodString>;
170
+ toolTimeline: z.ZodOptional<z.ZodObject<{
171
+ logType: z.ZodEnum<{
172
+ customer_facing: "customer_facing";
173
+ log: "log";
174
+ decision: "decision";
175
+ }>;
176
+ triggerMessageId: z.ZodString;
177
+ workflowRunId: z.ZodString;
178
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
179
+ public: "public";
180
+ private: "private";
181
+ }>>;
182
+ }, z.core.$strip>>;
170
183
  }, z.core.$strip>>;
171
184
  }, z.core.$loose>>;
172
185
  }, z.core.$strip>, z.ZodObject<{
@@ -181,6 +194,29 @@ declare const realtimeSchema: {
181
194
  result: "result";
182
195
  }>;
183
196
  errorText: z.ZodOptional<z.ZodString>;
197
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
198
+ cossistant: z.ZodOptional<z.ZodObject<{
199
+ visibility: z.ZodOptional<z.ZodEnum<{
200
+ public: "public";
201
+ private: "private";
202
+ }>>;
203
+ progressMessage: z.ZodOptional<z.ZodString>;
204
+ knowledgeId: z.ZodOptional<z.ZodString>;
205
+ toolTimeline: z.ZodOptional<z.ZodObject<{
206
+ logType: z.ZodEnum<{
207
+ customer_facing: "customer_facing";
208
+ log: "log";
209
+ decision: "decision";
210
+ }>;
211
+ triggerMessageId: z.ZodString;
212
+ workflowRunId: z.ZodString;
213
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
214
+ public: "public";
215
+ private: "private";
216
+ }>>;
217
+ }, z.core.$strip>>;
218
+ }, z.core.$strip>>;
219
+ }, z.core.$loose>>;
184
220
  providerMetadata: z.ZodOptional<z.ZodObject<{
185
221
  cossistant: z.ZodOptional<z.ZodObject<{
186
222
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -189,6 +225,19 @@ declare const realtimeSchema: {
189
225
  }>>;
190
226
  progressMessage: z.ZodOptional<z.ZodString>;
191
227
  knowledgeId: z.ZodOptional<z.ZodString>;
228
+ toolTimeline: z.ZodOptional<z.ZodObject<{
229
+ logType: z.ZodEnum<{
230
+ customer_facing: "customer_facing";
231
+ log: "log";
232
+ decision: "decision";
233
+ }>;
234
+ triggerMessageId: z.ZodString;
235
+ workflowRunId: z.ZodString;
236
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
237
+ public: "public";
238
+ private: "private";
239
+ }>>;
240
+ }, z.core.$strip>>;
192
241
  }, z.core.$strip>>;
193
242
  }, z.core.$loose>>;
194
243
  }, z.core.$strip>, z.ZodObject<{
@@ -204,6 +253,19 @@ declare const realtimeSchema: {
204
253
  }>>;
205
254
  progressMessage: z.ZodOptional<z.ZodString>;
206
255
  knowledgeId: z.ZodOptional<z.ZodString>;
256
+ toolTimeline: z.ZodOptional<z.ZodObject<{
257
+ logType: z.ZodEnum<{
258
+ customer_facing: "customer_facing";
259
+ log: "log";
260
+ decision: "decision";
261
+ }>;
262
+ triggerMessageId: z.ZodString;
263
+ workflowRunId: z.ZodString;
264
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
265
+ public: "public";
266
+ private: "private";
267
+ }>>;
268
+ }, z.core.$strip>>;
207
269
  }, z.core.$strip>>;
208
270
  }, z.core.$loose>>;
209
271
  }, z.core.$strip>, z.ZodObject<{
@@ -220,6 +282,19 @@ declare const realtimeSchema: {
220
282
  }>>;
221
283
  progressMessage: z.ZodOptional<z.ZodString>;
222
284
  knowledgeId: z.ZodOptional<z.ZodString>;
285
+ toolTimeline: z.ZodOptional<z.ZodObject<{
286
+ logType: z.ZodEnum<{
287
+ customer_facing: "customer_facing";
288
+ log: "log";
289
+ decision: "decision";
290
+ }>;
291
+ triggerMessageId: z.ZodString;
292
+ workflowRunId: z.ZodString;
293
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
294
+ public: "public";
295
+ private: "private";
296
+ }>>;
297
+ }, z.core.$strip>>;
223
298
  }, z.core.$strip>>;
224
299
  }, z.core.$loose>>;
225
300
  }, z.core.$strip>, z.ZodObject<{
@@ -365,6 +440,19 @@ declare const realtimeSchema: {
365
440
  }>>;
366
441
  progressMessage: z.ZodOptional<z.ZodString>;
367
442
  knowledgeId: z.ZodOptional<z.ZodString>;
443
+ toolTimeline: z.ZodOptional<z.ZodObject<{
444
+ logType: z.ZodEnum<{
445
+ customer_facing: "customer_facing";
446
+ log: "log";
447
+ decision: "decision";
448
+ }>;
449
+ triggerMessageId: z.ZodString;
450
+ workflowRunId: z.ZodString;
451
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
452
+ public: "public";
453
+ private: "private";
454
+ }>>;
455
+ }, z.core.$strip>>;
368
456
  }, z.core.$strip>>;
369
457
  }, z.core.$loose>>;
370
458
  }, z.core.$strip>, z.ZodObject<{
@@ -379,6 +467,29 @@ declare const realtimeSchema: {
379
467
  result: "result";
380
468
  }>;
381
469
  errorText: z.ZodOptional<z.ZodString>;
470
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
471
+ cossistant: z.ZodOptional<z.ZodObject<{
472
+ visibility: z.ZodOptional<z.ZodEnum<{
473
+ public: "public";
474
+ private: "private";
475
+ }>>;
476
+ progressMessage: z.ZodOptional<z.ZodString>;
477
+ knowledgeId: z.ZodOptional<z.ZodString>;
478
+ toolTimeline: z.ZodOptional<z.ZodObject<{
479
+ logType: z.ZodEnum<{
480
+ customer_facing: "customer_facing";
481
+ log: "log";
482
+ decision: "decision";
483
+ }>;
484
+ triggerMessageId: z.ZodString;
485
+ workflowRunId: z.ZodString;
486
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
487
+ public: "public";
488
+ private: "private";
489
+ }>>;
490
+ }, z.core.$strip>>;
491
+ }, z.core.$strip>>;
492
+ }, z.core.$loose>>;
382
493
  providerMetadata: z.ZodOptional<z.ZodObject<{
383
494
  cossistant: z.ZodOptional<z.ZodObject<{
384
495
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -387,6 +498,19 @@ declare const realtimeSchema: {
387
498
  }>>;
388
499
  progressMessage: z.ZodOptional<z.ZodString>;
389
500
  knowledgeId: z.ZodOptional<z.ZodString>;
501
+ toolTimeline: z.ZodOptional<z.ZodObject<{
502
+ logType: z.ZodEnum<{
503
+ customer_facing: "customer_facing";
504
+ log: "log";
505
+ decision: "decision";
506
+ }>;
507
+ triggerMessageId: z.ZodString;
508
+ workflowRunId: z.ZodString;
509
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
510
+ public: "public";
511
+ private: "private";
512
+ }>>;
513
+ }, z.core.$strip>>;
390
514
  }, z.core.$strip>>;
391
515
  }, z.core.$loose>>;
392
516
  }, z.core.$strip>, z.ZodObject<{
@@ -402,6 +526,19 @@ declare const realtimeSchema: {
402
526
  }>>;
403
527
  progressMessage: z.ZodOptional<z.ZodString>;
404
528
  knowledgeId: z.ZodOptional<z.ZodString>;
529
+ toolTimeline: z.ZodOptional<z.ZodObject<{
530
+ logType: z.ZodEnum<{
531
+ customer_facing: "customer_facing";
532
+ log: "log";
533
+ decision: "decision";
534
+ }>;
535
+ triggerMessageId: z.ZodString;
536
+ workflowRunId: z.ZodString;
537
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
538
+ public: "public";
539
+ private: "private";
540
+ }>>;
541
+ }, z.core.$strip>>;
405
542
  }, z.core.$strip>>;
406
543
  }, z.core.$loose>>;
407
544
  }, z.core.$strip>, z.ZodObject<{
@@ -418,6 +555,19 @@ declare const realtimeSchema: {
418
555
  }>>;
419
556
  progressMessage: z.ZodOptional<z.ZodString>;
420
557
  knowledgeId: z.ZodOptional<z.ZodString>;
558
+ toolTimeline: z.ZodOptional<z.ZodObject<{
559
+ logType: z.ZodEnum<{
560
+ customer_facing: "customer_facing";
561
+ log: "log";
562
+ decision: "decision";
563
+ }>;
564
+ triggerMessageId: z.ZodString;
565
+ workflowRunId: z.ZodString;
566
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
567
+ public: "public";
568
+ private: "private";
569
+ }>>;
570
+ }, z.core.$strip>>;
421
571
  }, z.core.$strip>>;
422
572
  }, z.core.$loose>>;
423
573
  }, z.core.$strip>, z.ZodObject<{
@@ -511,6 +661,19 @@ declare const realtimeSchema: {
511
661
  }>>;
512
662
  progressMessage: z.ZodOptional<z.ZodString>;
513
663
  knowledgeId: z.ZodOptional<z.ZodString>;
664
+ toolTimeline: z.ZodOptional<z.ZodObject<{
665
+ logType: z.ZodEnum<{
666
+ customer_facing: "customer_facing";
667
+ log: "log";
668
+ decision: "decision";
669
+ }>;
670
+ triggerMessageId: z.ZodString;
671
+ workflowRunId: z.ZodString;
672
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
673
+ public: "public";
674
+ private: "private";
675
+ }>>;
676
+ }, z.core.$strip>>;
514
677
  }, z.core.$strip>>;
515
678
  }, z.core.$loose>>;
516
679
  }, z.core.$strip>, z.ZodObject<{
@@ -525,6 +688,29 @@ declare const realtimeSchema: {
525
688
  result: "result";
526
689
  }>;
527
690
  errorText: z.ZodOptional<z.ZodString>;
691
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
692
+ cossistant: z.ZodOptional<z.ZodObject<{
693
+ visibility: z.ZodOptional<z.ZodEnum<{
694
+ public: "public";
695
+ private: "private";
696
+ }>>;
697
+ progressMessage: z.ZodOptional<z.ZodString>;
698
+ knowledgeId: z.ZodOptional<z.ZodString>;
699
+ toolTimeline: z.ZodOptional<z.ZodObject<{
700
+ logType: z.ZodEnum<{
701
+ customer_facing: "customer_facing";
702
+ log: "log";
703
+ decision: "decision";
704
+ }>;
705
+ triggerMessageId: z.ZodString;
706
+ workflowRunId: z.ZodString;
707
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
708
+ public: "public";
709
+ private: "private";
710
+ }>>;
711
+ }, z.core.$strip>>;
712
+ }, z.core.$strip>>;
713
+ }, z.core.$loose>>;
528
714
  providerMetadata: z.ZodOptional<z.ZodObject<{
529
715
  cossistant: z.ZodOptional<z.ZodObject<{
530
716
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -533,6 +719,19 @@ declare const realtimeSchema: {
533
719
  }>>;
534
720
  progressMessage: z.ZodOptional<z.ZodString>;
535
721
  knowledgeId: z.ZodOptional<z.ZodString>;
722
+ toolTimeline: z.ZodOptional<z.ZodObject<{
723
+ logType: z.ZodEnum<{
724
+ customer_facing: "customer_facing";
725
+ log: "log";
726
+ decision: "decision";
727
+ }>;
728
+ triggerMessageId: z.ZodString;
729
+ workflowRunId: z.ZodString;
730
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
731
+ public: "public";
732
+ private: "private";
733
+ }>>;
734
+ }, z.core.$strip>>;
536
735
  }, z.core.$strip>>;
537
736
  }, z.core.$loose>>;
538
737
  }, z.core.$strip>, z.ZodObject<{
@@ -548,6 +747,19 @@ declare const realtimeSchema: {
548
747
  }>>;
549
748
  progressMessage: z.ZodOptional<z.ZodString>;
550
749
  knowledgeId: z.ZodOptional<z.ZodString>;
750
+ toolTimeline: z.ZodOptional<z.ZodObject<{
751
+ logType: z.ZodEnum<{
752
+ customer_facing: "customer_facing";
753
+ log: "log";
754
+ decision: "decision";
755
+ }>;
756
+ triggerMessageId: z.ZodString;
757
+ workflowRunId: z.ZodString;
758
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
759
+ public: "public";
760
+ private: "private";
761
+ }>>;
762
+ }, z.core.$strip>>;
551
763
  }, z.core.$strip>>;
552
764
  }, z.core.$loose>>;
553
765
  }, z.core.$strip>, z.ZodObject<{
@@ -564,6 +776,19 @@ declare const realtimeSchema: {
564
776
  }>>;
565
777
  progressMessage: z.ZodOptional<z.ZodString>;
566
778
  knowledgeId: z.ZodOptional<z.ZodString>;
779
+ toolTimeline: z.ZodOptional<z.ZodObject<{
780
+ logType: z.ZodEnum<{
781
+ customer_facing: "customer_facing";
782
+ log: "log";
783
+ decision: "decision";
784
+ }>;
785
+ triggerMessageId: z.ZodString;
786
+ workflowRunId: z.ZodString;
787
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
788
+ public: "public";
789
+ private: "private";
790
+ }>>;
791
+ }, z.core.$strip>>;
567
792
  }, z.core.$strip>>;
568
793
  }, z.core.$loose>>;
569
794
  }, z.core.$strip>, z.ZodObject<{
@@ -938,10 +1163,10 @@ declare const realtimeSchema: {
938
1163
  linkSourceId: z.ZodString;
939
1164
  status: z.ZodEnum<{
940
1165
  pending: "pending";
941
- mapping: "mapping";
942
1166
  crawling: "crawling";
943
1167
  completed: "completed";
944
1168
  failed: "failed";
1169
+ mapping: "mapping";
945
1170
  }>;
946
1171
  discoveredPagesCount: z.ZodOptional<z.ZodNumber>;
947
1172
  crawledPagesCount: z.ZodOptional<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;cAWa,mBAAiB,CAAA,CAAA;;EAAjB,cAAA,aAKX;;;;;;;;AAL4B,cAWjB,cAXiB,EAAA;EAAA,SAAA,aAAA,aAAA,CAAA;IAWjB,SAAA,aA2WH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEE,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB;;;;iBAKN,gCAAgC,yBACzC,mBAEJ,qBAAqB;;;;iBAQR,gBAAA,yBAAyC;iBAIzC,0BAA0B,0BAClC,cAAc,KACnB,qBAAqB"}
package/schemas.d.ts CHANGED
@@ -67,6 +67,19 @@ declare const conversationSchema: z.ZodObject<{
67
67
  }>>;
68
68
  progressMessage: z.ZodOptional<z.ZodString>;
69
69
  knowledgeId: z.ZodOptional<z.ZodString>;
70
+ toolTimeline: z.ZodOptional<z.ZodObject<{
71
+ logType: z.ZodEnum<{
72
+ customer_facing: "customer_facing";
73
+ log: "log";
74
+ decision: "decision";
75
+ }>;
76
+ triggerMessageId: z.ZodString;
77
+ workflowRunId: z.ZodString;
78
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
79
+ public: "public";
80
+ private: "private";
81
+ }>>;
82
+ }, z.core.$strip>>;
70
83
  }, z.core.$strip>>;
71
84
  }, z.core.$loose>>;
72
85
  }, z.core.$strip>, z.ZodObject<{
@@ -81,6 +94,29 @@ declare const conversationSchema: z.ZodObject<{
81
94
  result: "result";
82
95
  }>;
83
96
  errorText: z.ZodOptional<z.ZodString>;
97
+ callProviderMetadata: z.ZodOptional<z.ZodObject<{
98
+ cossistant: z.ZodOptional<z.ZodObject<{
99
+ visibility: z.ZodOptional<z.ZodEnum<{
100
+ public: "public";
101
+ private: "private";
102
+ }>>;
103
+ progressMessage: z.ZodOptional<z.ZodString>;
104
+ knowledgeId: z.ZodOptional<z.ZodString>;
105
+ toolTimeline: z.ZodOptional<z.ZodObject<{
106
+ logType: z.ZodEnum<{
107
+ customer_facing: "customer_facing";
108
+ log: "log";
109
+ decision: "decision";
110
+ }>;
111
+ triggerMessageId: z.ZodString;
112
+ workflowRunId: z.ZodString;
113
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
114
+ public: "public";
115
+ private: "private";
116
+ }>>;
117
+ }, z.core.$strip>>;
118
+ }, z.core.$strip>>;
119
+ }, z.core.$loose>>;
84
120
  providerMetadata: z.ZodOptional<z.ZodObject<{
85
121
  cossistant: z.ZodOptional<z.ZodObject<{
86
122
  visibility: z.ZodOptional<z.ZodEnum<{
@@ -89,6 +125,19 @@ declare const conversationSchema: z.ZodObject<{
89
125
  }>>;
90
126
  progressMessage: z.ZodOptional<z.ZodString>;
91
127
  knowledgeId: z.ZodOptional<z.ZodString>;
128
+ toolTimeline: z.ZodOptional<z.ZodObject<{
129
+ logType: z.ZodEnum<{
130
+ customer_facing: "customer_facing";
131
+ log: "log";
132
+ decision: "decision";
133
+ }>;
134
+ triggerMessageId: z.ZodString;
135
+ workflowRunId: z.ZodString;
136
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
137
+ public: "public";
138
+ private: "private";
139
+ }>>;
140
+ }, z.core.$strip>>;
92
141
  }, z.core.$strip>>;
93
142
  }, z.core.$loose>>;
94
143
  }, z.core.$strip>, z.ZodObject<{
@@ -104,6 +153,19 @@ declare const conversationSchema: z.ZodObject<{
104
153
  }>>;
105
154
  progressMessage: z.ZodOptional<z.ZodString>;
106
155
  knowledgeId: z.ZodOptional<z.ZodString>;
156
+ toolTimeline: z.ZodOptional<z.ZodObject<{
157
+ logType: z.ZodEnum<{
158
+ customer_facing: "customer_facing";
159
+ log: "log";
160
+ decision: "decision";
161
+ }>;
162
+ triggerMessageId: z.ZodString;
163
+ workflowRunId: z.ZodString;
164
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
165
+ public: "public";
166
+ private: "private";
167
+ }>>;
168
+ }, z.core.$strip>>;
107
169
  }, z.core.$strip>>;
108
170
  }, z.core.$loose>>;
109
171
  }, z.core.$strip>, z.ZodObject<{
@@ -120,6 +182,19 @@ declare const conversationSchema: z.ZodObject<{
120
182
  }>>;
121
183
  progressMessage: z.ZodOptional<z.ZodString>;
122
184
  knowledgeId: z.ZodOptional<z.ZodString>;
185
+ toolTimeline: z.ZodOptional<z.ZodObject<{
186
+ logType: z.ZodEnum<{
187
+ customer_facing: "customer_facing";
188
+ log: "log";
189
+ decision: "decision";
190
+ }>;
191
+ triggerMessageId: z.ZodString;
192
+ workflowRunId: z.ZodString;
193
+ triggerVisibility: z.ZodOptional<z.ZodEnum<{
194
+ public: "public";
195
+ private: "private";
196
+ }>>;
197
+ }, z.core.$strip>>;
123
198
  }, z.core.$strip>>;
124
199
  }, z.core.$loose>>;
125
200
  }, z.core.$strip>, z.ZodObject<{
package/schemas.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;cAIa,YAAU,CAAA,CAAA;;EAAV,IAAA,aAUX;;;;;;;;;KAEU,SAAA,GAAY,CAAA,CAAE,aAAa;cAE1B,oBAAkB,CAAA,CAAA;;;;EAdR,SAAA,aAAA;EAAA,SAAA,aAAA;EAYX,SAAA,aAAS;EAER,MAAA,cAAA,UAmBX,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;;;;;;;;;;KAYvB,gBAAA,GAAmB,CAAA,CAAE,aAAa"}
1
+ {"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;cAIa,YAAU,CAAA,CAAA;;EAAV,IAAA,aAUX;;;;;;;;;KAEU,SAAA,GAAY,CAAA,CAAE,aAAa;cAE1B,oBAAkB,CAAA,CAAA;;;;EAdR,SAAA,aAAA;EAAA,SAAA,aAAA;EAYX,SAAA,aAAS;EAER,MAAA,cAAA,UAmBX,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;EAvBJ,EAAA,aAAA;EAAA,cAAA,aAAA;EAqBnB,MAAA,eAAY,YAAkB,CAAA;EAE7B,SAAA,eAAA,YAUX,CAAA;;;;;;;KAEU,gBAAA,GAAmB,CAAA,CAAE,aAAa"}
@@ -0,0 +1,13 @@
1
+ //#region src/tool-timeline-policy.d.ts
2
+ declare const TOOL_TIMELINE_LOG_TYPE: {
3
+ readonly CUSTOMER_FACING: "customer_facing";
4
+ readonly LOG: "log";
5
+ readonly DECISION: "decision";
6
+ };
7
+ type ToolTimelineLogType = (typeof TOOL_TIMELINE_LOG_TYPE)[keyof typeof TOOL_TIMELINE_LOG_TYPE];
8
+ declare const TOOL_TIMELINE_CONVERSATION_ALLOWLIST: readonly ["searchKnowledgeBase", "updateConversationTitle", "updateSentiment"];
9
+ declare function isConversationVisibleTool(toolName: string): boolean;
10
+ declare function getToolLogType(toolName: string): ToolTimelineLogType;
11
+ //#endregion
12
+ export { TOOL_TIMELINE_CONVERSATION_ALLOWLIST, TOOL_TIMELINE_LOG_TYPE, ToolTimelineLogType, getToolLogType, isConversationVisibleTool };
13
+ //# sourceMappingURL=tool-timeline-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-timeline-policy.d.ts","names":[],"sources":["../src/tool-timeline-policy.ts"],"sourcesContent":[],"mappings":";cAAa;EAAA,SAAA,eAAA,EAIH,iBAAA;EAEE,SAAA,GAAA,EAAA,KAAA;EAGC,SAAA,QAAA,EAAA,UAAA;AAUb,CAAA;AAIgB,KAjBJ,mBAAA,GAiBsC,CAAA,OAhBzC,sBAgB4D,CAAA,CAAA,MAAA,OAhBvB,sBAgBuB,CAAA;cAdxD;iBAUG,yBAAA;iBAIA,cAAA,oBAAkC"}
@@ -0,0 +1,24 @@
1
+ //#region 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
+ function isConversationVisibleTool(toolName) {
14
+ return CONVERSATION_VISIBLE_TOOLS.has(toolName);
15
+ }
16
+ function getToolLogType(toolName) {
17
+ if (toolName === "aiDecision") return TOOL_TIMELINE_LOG_TYPE.DECISION;
18
+ if (isConversationVisibleTool(toolName)) return TOOL_TIMELINE_LOG_TYPE.CUSTOMER_FACING;
19
+ return TOOL_TIMELINE_LOG_TYPE.LOG;
20
+ }
21
+
22
+ //#endregion
23
+ export { TOOL_TIMELINE_CONVERSATION_ALLOWLIST, TOOL_TIMELINE_LOG_TYPE, getToolLogType, isConversationVisibleTool };
24
+ //# sourceMappingURL=tool-timeline-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-timeline-policy.js","names":[],"sources":["../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;AAED,SAAgB,0BAA0B,UAA2B;AACpE,QAAO,2BAA2B,IAAI,SAAS;;AAGhD,SAAgB,eAAe,UAAuC;AACrE,KAAI,aAAa,aAChB,QAAO,uBAAuB;AAG/B,KAAI,0BAA0B,SAAS,CACtC,QAAO,uBAAuB;AAG/B,QAAO,uBAAuB"}