@cossistant/core 0.0.30 → 0.0.32

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.
@@ -90,6 +90,7 @@ declare const realtimeSchema: {
90
90
  message: "message";
91
91
  event: "event";
92
92
  identification: "identification";
93
+ tool: "tool";
93
94
  }>;
94
95
  text: z.ZodNullable<z.ZodString>;
95
96
  parts: z.ZodArray<z.ZodUnknown>;
@@ -115,10 +116,12 @@ declare const realtimeSchema: {
115
116
  visitorId: z.ZodString;
116
117
  websiteId: z.ZodString;
117
118
  status: z.ZodDefault<z.ZodEnum<{
118
- open: "open";
119
119
  resolved: "resolved";
120
+ open: "open";
120
121
  spam: "spam";
121
122
  }>>;
123
+ visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
124
+ visitorRatingAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
125
  deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
123
126
  visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
127
  lastTimelineItem: z.ZodOptional<z.ZodObject<{
@@ -133,6 +136,7 @@ declare const realtimeSchema: {
133
136
  message: "message";
134
137
  event: "event";
135
138
  identification: "identification";
139
+ tool: "tool";
136
140
  }>;
137
141
  text: z.ZodNullable<z.ZodString>;
138
142
  tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -232,7 +236,6 @@ declare const realtimeSchema: {
232
236
  }, z.core.$strip>, z.ZodObject<{
233
237
  type: z.ZodLiteral<"event">;
234
238
  eventType: z.ZodEnum<{
235
- resolved: "resolved";
236
239
  assigned: "assigned";
237
240
  unassigned: "unassigned";
238
241
  participant_requested: "participant_requested";
@@ -242,6 +245,7 @@ declare const realtimeSchema: {
242
245
  priority_changed: "priority_changed";
243
246
  tag_added: "tag_added";
244
247
  tag_removed: "tag_removed";
248
+ resolved: "resolved";
245
249
  reopened: "reopened";
246
250
  visitor_blocked: "visitor_blocked";
247
251
  visitor_unblocked: "visitor_unblocked";
@@ -270,8 +274,8 @@ declare const realtimeSchema: {
270
274
  header: z.ZodObject<{
271
275
  id: z.ZodString;
272
276
  status: z.ZodEnum<{
273
- open: "open";
274
277
  resolved: "resolved";
278
+ open: "open";
275
279
  spam: "spam";
276
280
  }>;
277
281
  priority: z.ZodEnum<{
@@ -300,6 +304,8 @@ declare const realtimeSchema: {
300
304
  channel: z.ZodString;
301
305
  title: z.ZodNullable<z.ZodString>;
302
306
  resolutionTime: z.ZodNullable<z.ZodNumber>;
307
+ visitorRating: z.ZodNullable<z.ZodNumber>;
308
+ visitorRatingAt: z.ZodNullable<z.ZodString>;
303
309
  startedAt: z.ZodNullable<z.ZodString>;
304
310
  firstResponseAt: z.ZodNullable<z.ZodString>;
305
311
  resolvedAt: z.ZodNullable<z.ZodString>;
@@ -328,6 +334,7 @@ declare const realtimeSchema: {
328
334
  message: "message";
329
335
  event: "event";
330
336
  identification: "identification";
337
+ tool: "tool";
331
338
  }>;
332
339
  text: z.ZodNullable<z.ZodString>;
333
340
  tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -427,7 +434,6 @@ declare const realtimeSchema: {
427
434
  }, z.core.$strip>, z.ZodObject<{
428
435
  type: z.ZodLiteral<"event">;
429
436
  eventType: z.ZodEnum<{
430
- resolved: "resolved";
431
437
  assigned: "assigned";
432
438
  unassigned: "unassigned";
433
439
  participant_requested: "participant_requested";
@@ -437,6 +443,7 @@ declare const realtimeSchema: {
437
443
  priority_changed: "priority_changed";
438
444
  tag_added: "tag_added";
439
445
  tag_removed: "tag_removed";
446
+ resolved: "resolved";
440
447
  reopened: "reopened";
441
448
  visitor_blocked: "visitor_blocked";
442
449
  visitor_unblocked: "visitor_unblocked";
@@ -473,6 +480,7 @@ declare const realtimeSchema: {
473
480
  message: "message";
474
481
  event: "event";
475
482
  identification: "identification";
483
+ tool: "tool";
476
484
  }>;
477
485
  text: z.ZodNullable<z.ZodString>;
478
486
  tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -572,7 +580,6 @@ declare const realtimeSchema: {
572
580
  }, z.core.$strip>, z.ZodObject<{
573
581
  type: z.ZodLiteral<"event">;
574
582
  eventType: z.ZodEnum<{
575
- resolved: "resolved";
576
583
  assigned: "assigned";
577
584
  unassigned: "unassigned";
578
585
  participant_requested: "participant_requested";
@@ -582,6 +589,7 @@ declare const realtimeSchema: {
582
589
  priority_changed: "priority_changed";
583
590
  tag_added: "tag_added";
584
591
  tag_removed: "tag_removed";
592
+ resolved: "resolved";
585
593
  reopened: "reopened";
586
594
  visitor_blocked: "visitor_blocked";
587
595
  visitor_unblocked: "visitor_unblocked";
@@ -680,7 +688,6 @@ declare const realtimeSchema: {
680
688
  conversationId: z.ZodString;
681
689
  organizationId: z.ZodString;
682
690
  type: z.ZodEnum<{
683
- resolved: "resolved";
684
691
  assigned: "assigned";
685
692
  unassigned: "unassigned";
686
693
  participant_requested: "participant_requested";
@@ -690,6 +697,7 @@ declare const realtimeSchema: {
690
697
  priority_changed: "priority_changed";
691
698
  tag_added: "tag_added";
692
699
  tag_removed: "tag_removed";
700
+ resolved: "resolved";
693
701
  reopened: "reopened";
694
702
  visitor_blocked: "visitor_blocked";
695
703
  visitor_unblocked: "visitor_unblocked";
@@ -722,6 +730,22 @@ declare const realtimeSchema: {
722
730
  sentimentConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
723
731
  escalatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
724
732
  escalationReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
+ status: z.ZodOptional<z.ZodEnum<{
734
+ resolved: "resolved";
735
+ open: "open";
736
+ spam: "spam";
737
+ }>>;
738
+ priority: z.ZodOptional<z.ZodEnum<{
739
+ low: "low";
740
+ normal: "normal";
741
+ high: "high";
742
+ urgent: "urgent";
743
+ }>>;
744
+ resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
745
+ resolvedByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
+ resolvedByAiAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
747
+ resolutionTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
748
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
725
749
  }, z.core.$strip>;
726
750
  aiAgentId: z.ZodNullable<z.ZodString>;
727
751
  }, z.core.$strip>;
@@ -793,8 +817,8 @@ declare const realtimeSchema: {
793
817
  aiAgentId: z.ZodString;
794
818
  workflowRunId: z.ZodString;
795
819
  status: z.ZodEnum<{
796
- success: "success";
797
820
  error: "error";
821
+ success: "success";
798
822
  skipped: "skipped";
799
823
  cancelled: "cancelled";
800
824
  }>;
@@ -823,6 +847,7 @@ declare const realtimeSchema: {
823
847
  message: "message";
824
848
  event: "event";
825
849
  identification: "identification";
850
+ tool: "tool";
826
851
  }>;
827
852
  text: z.ZodNullable<z.ZodString>;
828
853
  parts: z.ZodArray<z.ZodUnknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAqBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6WD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB"}
@@ -10,10 +10,12 @@ declare const conversationSchema: z.ZodObject<{
10
10
  visitorId: z.ZodString;
11
11
  websiteId: z.ZodString;
12
12
  status: z.ZodDefault<z.ZodEnum<{
13
- open: "open";
14
13
  resolved: "resolved";
14
+ open: "open";
15
15
  spam: "spam";
16
16
  }>>;
17
+ visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ visitorRatingAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
18
20
  visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  lastTimelineItem: z.ZodOptional<z.ZodObject<{
@@ -28,6 +30,7 @@ declare const conversationSchema: z.ZodObject<{
28
30
  message: "message";
29
31
  event: "event";
30
32
  identification: "identification";
33
+ tool: "tool";
31
34
  }>;
32
35
  text: z.ZodNullable<z.ZodString>;
33
36
  tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -127,7 +130,6 @@ declare const conversationSchema: z.ZodObject<{
127
130
  }, z.core.$strip>, z.ZodObject<{
128
131
  type: z.ZodLiteral<"event">;
129
132
  eventType: z.ZodEnum<{
130
- resolved: "resolved";
131
133
  assigned: "assigned";
132
134
  unassigned: "unassigned";
133
135
  participant_requested: "participant_requested";
@@ -137,6 +139,7 @@ declare const conversationSchema: z.ZodObject<{
137
139
  priority_changed: "priority_changed";
138
140
  tag_added: "tag_added";
139
141
  tag_removed: "tag_removed";
142
+ resolved: "resolved";
140
143
  reopened: "reopened";
141
144
  visitor_blocked: "visitor_blocked";
142
145
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmBnB,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;;;EArBJ,SAAA,eAAA,YAAA,CAAA;EAAA,SAAA,eAAA,YAAA,CAAA;EAmBnB,UAAA,aAAY;EAEX,SAAA,aAAA;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}