@_henriquewilson/gabirubi-domain 1.5.0 → 1.5.2

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.
@@ -6,28 +6,28 @@ declare const authorSchema: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  email: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- id: string;
10
9
  type: string;
11
- email: string;
10
+ id: string;
12
11
  name: string;
12
+ email: string;
13
13
  }, {
14
- id: string;
15
14
  type: string;
16
- email: string;
15
+ id: string;
17
16
  name: string;
17
+ email: string;
18
18
  }>;
19
19
  declare const contactSchema: z.ZodObject<{
20
20
  type: z.ZodString;
21
21
  id: z.ZodString;
22
22
  external_id: z.ZodString;
23
23
  }, "strip", z.ZodTypeAny, {
24
- external_id: string;
25
- id: string;
26
24
  type: string;
27
- }, {
28
- external_id: string;
29
25
  id: string;
26
+ external_id: string;
27
+ }, {
30
28
  type: string;
29
+ id: string;
30
+ external_id: string;
31
31
  }>;
32
32
  declare const firstContactReplySchema: z.ZodObject<{
33
33
  created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -46,11 +46,11 @@ declare const appliedBySchema: z.ZodObject<{
46
46
  type: z.ZodString;
47
47
  id: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
- id: string;
50
49
  type: string;
51
- }, {
52
50
  id: string;
51
+ }, {
53
52
  type: string;
53
+ id: string;
54
54
  }>;
55
55
  declare const statisticsSchema: z.ZodObject<{
56
56
  type: z.ZodString;
@@ -74,44 +74,44 @@ declare const statisticsSchema: z.ZodObject<{
74
74
  count_conversation_parts: z.ZodNumber;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  type: string;
77
- count_assignments: number;
78
- count_conversation_parts: number;
79
- count_reopens: number;
80
77
  first_contact_reply_at: number;
81
78
  last_contact_reply_at: number;
82
- first_admin_reply_at?: any;
79
+ count_reopens: number;
80
+ count_assignments: number;
81
+ count_conversation_parts: number;
82
+ time_to_assignment?: any;
83
+ time_to_admin_reply?: any;
84
+ time_to_first_close?: any;
85
+ time_to_last_close?: any;
86
+ median_time_to_reply?: any;
83
87
  first_assignment_at?: any;
88
+ first_admin_reply_at?: any;
84
89
  first_close_at?: any;
85
- last_admin_reply_at?: any;
86
- last_assignment_admin_reply_at?: any;
87
90
  last_assignment_at?: any;
91
+ last_assignment_admin_reply_at?: any;
92
+ last_admin_reply_at?: any;
88
93
  last_close_at?: any;
89
94
  last_closed_by_id?: any;
90
- median_time_to_reply?: any;
91
- time_to_admin_reply?: any;
92
- time_to_assignment?: any;
93
- time_to_first_close?: any;
94
- time_to_last_close?: any;
95
95
  }, {
96
96
  type: string;
97
- count_assignments: number;
98
- count_conversation_parts: number;
99
- count_reopens: number;
100
97
  first_contact_reply_at: number;
101
98
  last_contact_reply_at: number;
102
- first_admin_reply_at?: any;
99
+ count_reopens: number;
100
+ count_assignments: number;
101
+ count_conversation_parts: number;
102
+ time_to_assignment?: any;
103
+ time_to_admin_reply?: any;
104
+ time_to_first_close?: any;
105
+ time_to_last_close?: any;
106
+ median_time_to_reply?: any;
103
107
  first_assignment_at?: any;
108
+ first_admin_reply_at?: any;
104
109
  first_close_at?: any;
105
- last_admin_reply_at?: any;
106
- last_assignment_admin_reply_at?: any;
107
110
  last_assignment_at?: any;
111
+ last_assignment_admin_reply_at?: any;
112
+ last_admin_reply_at?: any;
108
113
  last_close_at?: any;
109
114
  last_closed_by_id?: any;
110
- median_time_to_reply?: any;
111
- time_to_admin_reply?: any;
112
- time_to_assignment?: any;
113
- time_to_first_close?: any;
114
- time_to_last_close?: any;
115
115
  }>;
116
116
  declare const teammatesSchema: z.ZodObject<{
117
117
  type: z.ZodString;
@@ -129,12 +129,12 @@ declare const topicsSchema: z.ZodObject<{
129
129
  total_count: z.ZodNumber;
130
130
  }, "strip", z.ZodTypeAny, {
131
131
  type: string;
132
- total_count: number;
133
132
  topics: any[];
133
+ total_count: number;
134
134
  }, {
135
135
  type: string;
136
- total_count: number;
137
136
  topics: any[];
137
+ total_count: number;
138
138
  }>;
139
139
  declare const linkedObjectsSchema: z.ZodObject<{
140
140
  type: z.ZodString;
@@ -143,14 +143,14 @@ declare const linkedObjectsSchema: z.ZodObject<{
143
143
  has_more: z.ZodBoolean;
144
144
  }, "strip", z.ZodTypeAny, {
145
145
  type: string;
146
+ total_count: number;
146
147
  data: any[];
147
148
  has_more: boolean;
148
- total_count: number;
149
149
  }, {
150
150
  type: string;
151
+ total_count: number;
151
152
  data: any[];
152
153
  has_more: boolean;
153
- total_count: number;
154
154
  }>;
155
155
  declare const author2Schema: z.ZodObject<{
156
156
  id: z.ZodString;
@@ -158,15 +158,15 @@ declare const author2Schema: z.ZodObject<{
158
158
  name: z.ZodString;
159
159
  email: z.ZodString;
160
160
  }, "strip", z.ZodTypeAny, {
161
- id: string;
162
161
  type: string;
163
- email: string;
162
+ id: string;
164
163
  name: string;
164
+ email: string;
165
165
  }, {
166
- id: string;
167
166
  type: string;
168
- email: string;
167
+ id: string;
169
168
  name: string;
169
+ email: string;
170
170
  }>;
171
171
  declare const sourceSchema: z.ZodObject<{
172
172
  type: z.ZodString;
@@ -180,49 +180,49 @@ declare const sourceSchema: z.ZodObject<{
180
180
  name: z.ZodString;
181
181
  email: z.ZodString;
182
182
  }, "strip", z.ZodTypeAny, {
183
- id: string;
184
183
  type: string;
185
- email: string;
184
+ id: string;
186
185
  name: string;
186
+ email: string;
187
187
  }, {
188
- id: string;
189
188
  type: string;
190
- email: string;
189
+ id: string;
191
190
  name: string;
191
+ email: string;
192
192
  }>;
193
193
  attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
194
194
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
195
  redacted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
196
196
  }, "strip", z.ZodTypeAny, {
197
- id: string;
198
197
  type: string;
198
+ id: string;
199
199
  author: {
200
- id: string;
201
200
  type: string;
202
- email: string;
201
+ id: string;
203
202
  name: string;
203
+ email: string;
204
204
  };
205
205
  url?: string | null | undefined;
206
- attachments?: any[] | null | undefined;
207
- body?: string | null | undefined;
208
206
  delivered_as?: string | null | undefined;
209
- redacted?: boolean | null | undefined;
210
207
  subject?: string | null | undefined;
208
+ body?: string | null | undefined;
209
+ attachments?: any[] | null | undefined;
210
+ redacted?: boolean | null | undefined;
211
211
  }, {
212
- id: string;
213
212
  type: string;
213
+ id: string;
214
214
  author: {
215
- id: string;
216
215
  type: string;
217
- email: string;
216
+ id: string;
218
217
  name: string;
218
+ email: string;
219
219
  };
220
220
  url?: string | null | undefined;
221
- attachments?: any[] | null | undefined;
222
- body?: string | null | undefined;
223
221
  delivered_as?: string | null | undefined;
224
- redacted?: boolean | null | undefined;
225
222
  subject?: string | null | undefined;
223
+ body?: string | null | undefined;
224
+ attachments?: any[] | null | undefined;
225
+ redacted?: boolean | null | undefined;
226
226
  }>;
227
227
  declare const contactsSchema: z.ZodObject<{
228
228
  type: z.ZodString;
@@ -231,27 +231,27 @@ declare const contactsSchema: z.ZodObject<{
231
231
  id: z.ZodString;
232
232
  external_id: z.ZodString;
233
233
  }, "strip", z.ZodTypeAny, {
234
- external_id: string;
235
- id: string;
236
234
  type: string;
237
- }, {
238
- external_id: string;
239
235
  id: string;
236
+ external_id: string;
237
+ }, {
240
238
  type: string;
239
+ id: string;
240
+ external_id: string;
241
241
  }>, "many">;
242
242
  }, "strip", z.ZodTypeAny, {
243
243
  type: string;
244
244
  contacts: {
245
- external_id: string;
246
- id: string;
247
245
  type: string;
246
+ id: string;
247
+ external_id: string;
248
248
  }[];
249
249
  }, {
250
250
  type: string;
251
251
  contacts: {
252
- external_id: string;
253
- id: string;
254
252
  type: string;
253
+ id: string;
254
+ external_id: string;
255
255
  }[];
256
256
  }>;
257
257
  declare const tagSchema: z.ZodObject<{
@@ -263,29 +263,29 @@ declare const tagSchema: z.ZodObject<{
263
263
  type: z.ZodString;
264
264
  id: z.ZodString;
265
265
  }, "strip", z.ZodTypeAny, {
266
- id: string;
267
266
  type: string;
268
- }, {
269
267
  id: string;
268
+ }, {
270
269
  type: string;
270
+ id: string;
271
271
  }>;
272
272
  }, "strip", z.ZodTypeAny, {
273
- id: string;
274
273
  type: string;
274
+ id: string;
275
275
  name: string;
276
276
  applied_at: number;
277
277
  applied_by: {
278
- id: string;
279
278
  type: string;
279
+ id: string;
280
280
  };
281
281
  }, {
282
- id: string;
283
282
  type: string;
283
+ id: string;
284
284
  name: string;
285
285
  applied_at: number;
286
286
  applied_by: {
287
- id: string;
288
287
  type: string;
288
+ id: string;
289
289
  };
290
290
  }>;
291
291
  declare const conversationPartSchema: z.ZodObject<{
@@ -303,52 +303,52 @@ declare const conversationPartSchema: z.ZodObject<{
303
303
  name: z.ZodString;
304
304
  email: z.ZodString;
305
305
  }, "strip", z.ZodTypeAny, {
306
- id: string;
307
306
  type: string;
308
- email: string;
307
+ id: string;
309
308
  name: string;
309
+ email: string;
310
310
  }, {
311
- id: string;
312
311
  type: string;
313
- email: string;
312
+ id: string;
314
313
  name: string;
314
+ email: string;
315
315
  }>;
316
316
  attachments: z.ZodArray<z.ZodAny, "many">;
317
317
  external_id: z.ZodAny;
318
318
  redacted: z.ZodBoolean;
319
319
  }, "strip", z.ZodTypeAny, {
320
- id: string;
321
320
  type: string;
321
+ id: string;
322
322
  created_at: number;
323
- attachments: any[];
324
323
  author: {
325
- id: string;
326
324
  type: string;
327
- email: string;
325
+ id: string;
328
326
  name: string;
327
+ email: string;
329
328
  };
329
+ attachments: any[];
330
330
  redacted: boolean;
331
- notified_at: number;
332
331
  part_type: string;
333
332
  updated_at: number;
333
+ notified_at: number;
334
334
  external_id?: any;
335
335
  body?: string | undefined;
336
336
  assigned_to?: any;
337
337
  }, {
338
- id: string;
339
338
  type: string;
339
+ id: string;
340
340
  created_at: number;
341
- attachments: any[];
342
341
  author: {
343
- id: string;
344
342
  type: string;
345
- email: string;
343
+ id: string;
346
344
  name: string;
345
+ email: string;
347
346
  };
347
+ attachments: any[];
348
348
  redacted: boolean;
349
- notified_at: number;
350
349
  part_type: string;
351
350
  updated_at: number;
351
+ notified_at: number;
352
352
  external_id?: any;
353
353
  body?: string | undefined;
354
354
  assigned_to?: any;
@@ -364,53 +364,53 @@ declare const tagsSchema: z.ZodObject<{
364
364
  type: z.ZodString;
365
365
  id: z.ZodString;
366
366
  }, "strip", z.ZodTypeAny, {
367
- id: string;
368
367
  type: string;
369
- }, {
370
368
  id: string;
369
+ }, {
371
370
  type: string;
371
+ id: string;
372
372
  }>;
373
373
  }, "strip", z.ZodTypeAny, {
374
- id: string;
375
374
  type: string;
375
+ id: string;
376
376
  name: string;
377
377
  applied_at: number;
378
378
  applied_by: {
379
- id: string;
380
379
  type: string;
380
+ id: string;
381
381
  };
382
382
  }, {
383
- id: string;
384
383
  type: string;
384
+ id: string;
385
385
  name: string;
386
386
  applied_at: number;
387
387
  applied_by: {
388
- id: string;
389
388
  type: string;
389
+ id: string;
390
390
  };
391
391
  }>, "many">;
392
392
  }, "strip", z.ZodTypeAny, {
393
393
  type: string;
394
394
  tags: {
395
- id: string;
396
395
  type: string;
396
+ id: string;
397
397
  name: string;
398
398
  applied_at: number;
399
399
  applied_by: {
400
- id: string;
401
400
  type: string;
401
+ id: string;
402
402
  };
403
403
  }[];
404
404
  }, {
405
405
  type: string;
406
406
  tags: {
407
- id: string;
408
407
  type: string;
408
+ id: string;
409
409
  name: string;
410
410
  applied_at: number;
411
411
  applied_by: {
412
- id: string;
413
412
  type: string;
413
+ id: string;
414
414
  };
415
415
  }[];
416
416
  }>;
@@ -431,52 +431,52 @@ declare const conversationPartsSchema: z.ZodObject<{
431
431
  name: z.ZodString;
432
432
  email: z.ZodString;
433
433
  }, "strip", z.ZodTypeAny, {
434
- id: string;
435
434
  type: string;
436
- email: string;
435
+ id: string;
437
436
  name: string;
437
+ email: string;
438
438
  }, {
439
- id: string;
440
439
  type: string;
441
- email: string;
440
+ id: string;
442
441
  name: string;
442
+ email: string;
443
443
  }>;
444
444
  attachments: z.ZodArray<z.ZodAny, "many">;
445
445
  external_id: z.ZodAny;
446
446
  redacted: z.ZodBoolean;
447
447
  }, "strip", z.ZodTypeAny, {
448
- id: string;
449
448
  type: string;
449
+ id: string;
450
450
  created_at: number;
451
- attachments: any[];
452
451
  author: {
453
- id: string;
454
452
  type: string;
455
- email: string;
453
+ id: string;
456
454
  name: string;
455
+ email: string;
457
456
  };
457
+ attachments: any[];
458
458
  redacted: boolean;
459
- notified_at: number;
460
459
  part_type: string;
461
460
  updated_at: number;
461
+ notified_at: number;
462
462
  external_id?: any;
463
463
  body?: string | undefined;
464
464
  assigned_to?: any;
465
465
  }, {
466
- id: string;
467
466
  type: string;
467
+ id: string;
468
468
  created_at: number;
469
- attachments: any[];
470
469
  author: {
471
- id: string;
472
470
  type: string;
473
- email: string;
471
+ id: string;
474
472
  name: string;
473
+ email: string;
475
474
  };
475
+ attachments: any[];
476
476
  redacted: boolean;
477
- notified_at: number;
478
477
  part_type: string;
479
478
  updated_at: number;
479
+ notified_at: number;
480
480
  external_id?: any;
481
481
  body?: string | undefined;
482
482
  assigned_to?: any;
@@ -486,20 +486,20 @@ declare const conversationPartsSchema: z.ZodObject<{
486
486
  type: string;
487
487
  total_count: number;
488
488
  conversation_parts: {
489
- id: string;
490
489
  type: string;
490
+ id: string;
491
491
  created_at: number;
492
- attachments: any[];
493
492
  author: {
494
- id: string;
495
493
  type: string;
496
- email: string;
494
+ id: string;
497
495
  name: string;
496
+ email: string;
498
497
  };
498
+ attachments: any[];
499
499
  redacted: boolean;
500
- notified_at: number;
501
500
  part_type: string;
502
501
  updated_at: number;
502
+ notified_at: number;
503
503
  external_id?: any;
504
504
  body?: string | undefined;
505
505
  assigned_to?: any;
@@ -508,20 +508,20 @@ declare const conversationPartsSchema: z.ZodObject<{
508
508
  type: string;
509
509
  total_count: number;
510
510
  conversation_parts: {
511
- id: string;
512
511
  type: string;
512
+ id: string;
513
513
  created_at: number;
514
- attachments: any[];
515
514
  author: {
516
- id: string;
517
515
  type: string;
518
- email: string;
516
+ id: string;
519
517
  name: string;
518
+ email: string;
520
519
  };
520
+ attachments: any[];
521
521
  redacted: boolean;
522
- notified_at: number;
523
522
  part_type: string;
524
523
  updated_at: number;
524
+ notified_at: number;
525
525
  external_id?: any;
526
526
  body?: string | undefined;
527
527
  assigned_to?: any;
@@ -575,49 +575,49 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
575
575
  name: z.ZodString;
576
576
  email: z.ZodString;
577
577
  }, "strip", z.ZodTypeAny, {
578
- id: string;
579
578
  type: string;
580
- email: string;
579
+ id: string;
581
580
  name: string;
581
+ email: string;
582
582
  }, {
583
- id: string;
584
583
  type: string;
585
- email: string;
584
+ id: string;
586
585
  name: string;
586
+ email: string;
587
587
  }>;
588
588
  attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
589
589
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
590
590
  redacted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
591
591
  }, "strip", z.ZodTypeAny, {
592
- id: string;
593
592
  type: string;
593
+ id: string;
594
594
  author: {
595
- id: string;
596
595
  type: string;
597
- email: string;
596
+ id: string;
598
597
  name: string;
598
+ email: string;
599
599
  };
600
600
  url?: string | null | undefined;
601
- attachments?: any[] | null | undefined;
602
- body?: string | null | undefined;
603
601
  delivered_as?: string | null | undefined;
604
- redacted?: boolean | null | undefined;
605
602
  subject?: string | null | undefined;
603
+ body?: string | null | undefined;
604
+ attachments?: any[] | null | undefined;
605
+ redacted?: boolean | null | undefined;
606
606
  }, {
607
- id: string;
608
607
  type: string;
608
+ id: string;
609
609
  author: {
610
- id: string;
611
610
  type: string;
612
- email: string;
611
+ id: string;
613
612
  name: string;
613
+ email: string;
614
614
  };
615
615
  url?: string | null | undefined;
616
- attachments?: any[] | null | undefined;
617
- body?: string | null | undefined;
618
616
  delivered_as?: string | null | undefined;
619
- redacted?: boolean | null | undefined;
620
617
  subject?: string | null | undefined;
618
+ body?: string | null | undefined;
619
+ attachments?: any[] | null | undefined;
620
+ redacted?: boolean | null | undefined;
621
621
  }>;
622
622
  contacts: z.ZodObject<{
623
623
  type: z.ZodString;
@@ -626,27 +626,27 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
626
626
  id: z.ZodString;
627
627
  external_id: z.ZodString;
628
628
  }, "strip", z.ZodTypeAny, {
629
- external_id: string;
630
- id: string;
631
629
  type: string;
632
- }, {
633
- external_id: string;
634
630
  id: string;
631
+ external_id: string;
632
+ }, {
635
633
  type: string;
634
+ id: string;
635
+ external_id: string;
636
636
  }>, "many">;
637
637
  }, "strip", z.ZodTypeAny, {
638
638
  type: string;
639
639
  contacts: {
640
- external_id: string;
641
- id: string;
642
640
  type: string;
641
+ id: string;
642
+ external_id: string;
643
643
  }[];
644
644
  }, {
645
645
  type: string;
646
646
  contacts: {
647
- external_id: string;
648
- id: string;
649
647
  type: string;
648
+ id: string;
649
+ external_id: string;
650
650
  }[];
651
651
  }>;
652
652
  first_contact_reply: z.ZodObject<{
@@ -678,53 +678,53 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
678
678
  type: z.ZodString;
679
679
  id: z.ZodString;
680
680
  }, "strip", z.ZodTypeAny, {
681
- id: string;
682
681
  type: string;
683
- }, {
684
682
  id: string;
683
+ }, {
685
684
  type: string;
685
+ id: string;
686
686
  }>;
687
687
  }, "strip", z.ZodTypeAny, {
688
- id: string;
689
688
  type: string;
689
+ id: string;
690
690
  name: string;
691
691
  applied_at: number;
692
692
  applied_by: {
693
- id: string;
694
693
  type: string;
694
+ id: string;
695
695
  };
696
696
  }, {
697
- id: string;
698
697
  type: string;
698
+ id: string;
699
699
  name: string;
700
700
  applied_at: number;
701
701
  applied_by: {
702
- id: string;
703
702
  type: string;
703
+ id: string;
704
704
  };
705
705
  }>, "many">;
706
706
  }, "strip", z.ZodTypeAny, {
707
707
  type: string;
708
708
  tags: {
709
- id: string;
710
709
  type: string;
710
+ id: string;
711
711
  name: string;
712
712
  applied_at: number;
713
713
  applied_by: {
714
- id: string;
715
714
  type: string;
715
+ id: string;
716
716
  };
717
717
  }[];
718
718
  }, {
719
719
  type: string;
720
720
  tags: {
721
- id: string;
722
721
  type: string;
722
+ id: string;
723
723
  name: string;
724
724
  applied_at: number;
725
725
  applied_by: {
726
- id: string;
727
726
  type: string;
727
+ id: string;
728
728
  };
729
729
  }[];
730
730
  }>;
@@ -752,44 +752,44 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
752
752
  count_conversation_parts: z.ZodNumber;
753
753
  }, "strip", z.ZodTypeAny, {
754
754
  type: string;
755
- count_assignments: number;
756
- count_conversation_parts: number;
757
- count_reopens: number;
758
755
  first_contact_reply_at: number;
759
756
  last_contact_reply_at: number;
760
- first_admin_reply_at?: any;
757
+ count_reopens: number;
758
+ count_assignments: number;
759
+ count_conversation_parts: number;
760
+ time_to_assignment?: any;
761
+ time_to_admin_reply?: any;
762
+ time_to_first_close?: any;
763
+ time_to_last_close?: any;
764
+ median_time_to_reply?: any;
761
765
  first_assignment_at?: any;
766
+ first_admin_reply_at?: any;
762
767
  first_close_at?: any;
763
- last_admin_reply_at?: any;
764
- last_assignment_admin_reply_at?: any;
765
768
  last_assignment_at?: any;
769
+ last_assignment_admin_reply_at?: any;
770
+ last_admin_reply_at?: any;
766
771
  last_close_at?: any;
767
772
  last_closed_by_id?: any;
768
- median_time_to_reply?: any;
769
- time_to_admin_reply?: any;
770
- time_to_assignment?: any;
771
- time_to_first_close?: any;
772
- time_to_last_close?: any;
773
773
  }, {
774
774
  type: string;
775
- count_assignments: number;
776
- count_conversation_parts: number;
777
- count_reopens: number;
778
775
  first_contact_reply_at: number;
779
776
  last_contact_reply_at: number;
780
- first_admin_reply_at?: any;
777
+ count_reopens: number;
778
+ count_assignments: number;
779
+ count_conversation_parts: number;
780
+ time_to_assignment?: any;
781
+ time_to_admin_reply?: any;
782
+ time_to_first_close?: any;
783
+ time_to_last_close?: any;
784
+ median_time_to_reply?: any;
781
785
  first_assignment_at?: any;
786
+ first_admin_reply_at?: any;
782
787
  first_close_at?: any;
783
- last_admin_reply_at?: any;
784
- last_assignment_admin_reply_at?: any;
785
788
  last_assignment_at?: any;
789
+ last_assignment_admin_reply_at?: any;
790
+ last_admin_reply_at?: any;
786
791
  last_close_at?: any;
787
792
  last_closed_by_id?: any;
788
- median_time_to_reply?: any;
789
- time_to_admin_reply?: any;
790
- time_to_assignment?: any;
791
- time_to_first_close?: any;
792
- time_to_last_close?: any;
793
793
  }>;
794
794
  conversation_rating: z.ZodAny;
795
795
  teammates: z.ZodObject<{
@@ -834,12 +834,12 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
834
834
  total_count: z.ZodNumber;
835
835
  }, "strip", z.ZodTypeAny, {
836
836
  type: string;
837
- total_count: number;
838
837
  topics: any[];
838
+ total_count: number;
839
839
  }, {
840
840
  type: string;
841
- total_count: number;
842
841
  topics: any[];
842
+ total_count: number;
843
843
  }>;
844
844
  ticket: z.ZodAny;
845
845
  linked_objects: z.ZodObject<{
@@ -849,14 +849,14 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
849
849
  has_more: z.ZodBoolean;
850
850
  }, "strip", z.ZodTypeAny, {
851
851
  type: string;
852
+ total_count: number;
852
853
  data: any[];
853
854
  has_more: boolean;
854
- total_count: number;
855
855
  }, {
856
856
  type: string;
857
+ total_count: number;
857
858
  data: any[];
858
859
  has_more: boolean;
859
- total_count: number;
860
860
  }>;
861
861
  ai_agent: z.ZodAny;
862
862
  ai_agent_participated: z.ZodBoolean;
@@ -877,52 +877,52 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
877
877
  name: z.ZodString;
878
878
  email: z.ZodString;
879
879
  }, "strip", z.ZodTypeAny, {
880
- id: string;
881
880
  type: string;
882
- email: string;
881
+ id: string;
883
882
  name: string;
883
+ email: string;
884
884
  }, {
885
- id: string;
886
885
  type: string;
887
- email: string;
886
+ id: string;
888
887
  name: string;
888
+ email: string;
889
889
  }>;
890
890
  attachments: z.ZodArray<z.ZodAny, "many">;
891
891
  external_id: z.ZodAny;
892
892
  redacted: z.ZodBoolean;
893
893
  }, "strip", z.ZodTypeAny, {
894
- id: string;
895
894
  type: string;
895
+ id: string;
896
896
  created_at: number;
897
- attachments: any[];
898
897
  author: {
899
- id: string;
900
898
  type: string;
901
- email: string;
899
+ id: string;
902
900
  name: string;
901
+ email: string;
903
902
  };
903
+ attachments: any[];
904
904
  redacted: boolean;
905
- notified_at: number;
906
905
  part_type: string;
907
906
  updated_at: number;
907
+ notified_at: number;
908
908
  external_id?: any;
909
909
  body?: string | undefined;
910
910
  assigned_to?: any;
911
911
  }, {
912
- id: string;
913
912
  type: string;
913
+ id: string;
914
914
  created_at: number;
915
- attachments: any[];
916
915
  author: {
917
- id: string;
918
916
  type: string;
919
- email: string;
917
+ id: string;
920
918
  name: string;
919
+ email: string;
921
920
  };
921
+ attachments: any[];
922
922
  redacted: boolean;
923
- notified_at: number;
924
923
  part_type: string;
925
924
  updated_at: number;
925
+ notified_at: number;
926
926
  external_id?: any;
927
927
  body?: string | undefined;
928
928
  assigned_to?: any;
@@ -932,20 +932,20 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
932
932
  type: string;
933
933
  total_count: number;
934
934
  conversation_parts: {
935
- id: string;
936
935
  type: string;
936
+ id: string;
937
937
  created_at: number;
938
- attachments: any[];
939
938
  author: {
940
- id: string;
941
939
  type: string;
942
- email: string;
940
+ id: string;
943
941
  name: string;
942
+ email: string;
944
943
  };
944
+ attachments: any[];
945
945
  redacted: boolean;
946
- notified_at: number;
947
946
  part_type: string;
948
947
  updated_at: number;
948
+ notified_at: number;
949
949
  external_id?: any;
950
950
  body?: string | undefined;
951
951
  assigned_to?: any;
@@ -954,80 +954,79 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
954
954
  type: string;
955
955
  total_count: number;
956
956
  conversation_parts: {
957
- id: string;
958
957
  type: string;
958
+ id: string;
959
959
  created_at: number;
960
- attachments: any[];
961
960
  author: {
962
- id: string;
963
961
  type: string;
964
- email: string;
962
+ id: string;
965
963
  name: string;
964
+ email: string;
966
965
  };
966
+ attachments: any[];
967
967
  redacted: boolean;
968
- notified_at: number;
969
968
  part_type: string;
970
969
  updated_at: number;
970
+ notified_at: number;
971
971
  external_id?: any;
972
972
  body?: string | undefined;
973
973
  assigned_to?: any;
974
974
  }[];
975
975
  }>;
976
976
  }>, "strip", z.ZodTypeAny, {
977
- id: string | number;
978
977
  type: string;
978
+ id: string | number;
979
979
  created_at: number;
980
- tags: {
981
- type: string;
982
- tags: {
983
- id: string;
984
- type: string;
985
- name: string;
986
- applied_at: number;
987
- applied_by: {
988
- id: string;
989
- type: string;
990
- };
991
- }[];
992
- };
993
980
  topics: {
994
981
  type: string;
995
- total_count: number;
996
982
  topics: any[];
983
+ total_count: number;
997
984
  };
998
985
  contacts: {
999
986
  type: string;
1000
987
  contacts: {
1001
- external_id: string;
1002
- id: string;
1003
988
  type: string;
989
+ id: string;
990
+ external_id: string;
1004
991
  }[];
1005
992
  };
1006
993
  updated_at: number;
994
+ tags: {
995
+ type: string;
996
+ tags: {
997
+ type: string;
998
+ id: string;
999
+ name: string;
1000
+ applied_at: number;
1001
+ applied_by: {
1002
+ type: string;
1003
+ id: string;
1004
+ };
1005
+ }[];
1006
+ };
1007
1007
  conversation_parts: {
1008
1008
  type: string;
1009
1009
  total_count: number;
1010
1010
  conversation_parts: {
1011
- id: string;
1012
1011
  type: string;
1012
+ id: string;
1013
1013
  created_at: number;
1014
- attachments: any[];
1015
1014
  author: {
1016
- id: string;
1017
1015
  type: string;
1018
- email: string;
1016
+ id: string;
1019
1017
  name: string;
1018
+ email: string;
1020
1019
  };
1020
+ attachments: any[];
1021
1021
  redacted: boolean;
1022
- notified_at: number;
1023
1022
  part_type: string;
1024
1023
  updated_at: number;
1024
+ notified_at: number;
1025
1025
  external_id?: any;
1026
1026
  body?: string | undefined;
1027
1027
  assigned_to?: any;
1028
1028
  }[];
1029
1029
  };
1030
- ai_agent_participated: boolean;
1031
1030
  custom_attributes: {
1032
1031
  activity_name?: string | undefined;
1033
1032
  activity_module?: string | undefined;
@@ -1039,128 +1038,128 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
1039
1038
  } & {
1040
1039
  [k: string]: string | number | boolean;
1041
1040
  };
1042
- first_contact_reply: {
1043
- type?: string | null | undefined;
1044
- created_at?: number | null | undefined;
1045
- url?: string | null | undefined;
1046
- };
1047
- linked_objects: {
1048
- type: string;
1049
- data: any[];
1050
- has_more: boolean;
1051
- total_count: number;
1052
- };
1053
- open: boolean;
1054
- priority: string;
1055
- read: boolean;
1041
+ waiting_since: number;
1056
1042
  source: {
1057
- id: string;
1058
1043
  type: string;
1044
+ id: string;
1059
1045
  author: {
1060
- id: string;
1061
1046
  type: string;
1062
- email: string;
1047
+ id: string;
1063
1048
  name: string;
1049
+ email: string;
1064
1050
  };
1065
1051
  url?: string | null | undefined;
1066
- attachments?: any[] | null | undefined;
1067
- body?: string | null | undefined;
1068
1052
  delivered_as?: string | null | undefined;
1069
- redacted?: boolean | null | undefined;
1070
1053
  subject?: string | null | undefined;
1054
+ body?: string | null | undefined;
1055
+ attachments?: any[] | null | undefined;
1056
+ redacted?: boolean | null | undefined;
1057
+ };
1058
+ first_contact_reply: {
1059
+ type?: string | null | undefined;
1060
+ created_at?: number | null | undefined;
1061
+ url?: string | null | undefined;
1071
1062
  };
1063
+ open: boolean;
1072
1064
  state: string;
1065
+ read: boolean;
1066
+ priority: string;
1073
1067
  statistics: {
1074
1068
  type: string;
1075
- count_assignments: number;
1076
- count_conversation_parts: number;
1077
- count_reopens: number;
1078
1069
  first_contact_reply_at: number;
1079
1070
  last_contact_reply_at: number;
1080
- first_admin_reply_at?: any;
1071
+ count_reopens: number;
1072
+ count_assignments: number;
1073
+ count_conversation_parts: number;
1074
+ time_to_assignment?: any;
1075
+ time_to_admin_reply?: any;
1076
+ time_to_first_close?: any;
1077
+ time_to_last_close?: any;
1078
+ median_time_to_reply?: any;
1081
1079
  first_assignment_at?: any;
1080
+ first_admin_reply_at?: any;
1082
1081
  first_close_at?: any;
1083
- last_admin_reply_at?: any;
1084
- last_assignment_admin_reply_at?: any;
1085
1082
  last_assignment_at?: any;
1083
+ last_assignment_admin_reply_at?: any;
1084
+ last_admin_reply_at?: any;
1086
1085
  last_close_at?: any;
1087
1086
  last_closed_by_id?: any;
1088
- median_time_to_reply?: any;
1089
- time_to_admin_reply?: any;
1090
- time_to_assignment?: any;
1091
- time_to_first_close?: any;
1092
- time_to_last_close?: any;
1093
1087
  };
1094
1088
  teammates: {
1095
1089
  type: string;
1096
1090
  admins: any[];
1097
1091
  };
1098
1092
  title: string;
1099
- waiting_since: number;
1100
- admin_assignee_id?: any;
1101
- ai_agent?: any;
1102
- conversation_rating?: any;
1103
- sla_applied?: any;
1104
- snoozed_until?: any;
1105
- team_assignee_id?: any;
1106
- ticket?: any;
1093
+ linked_objects: {
1094
+ type: string;
1095
+ total_count: number;
1096
+ data: any[];
1097
+ has_more: boolean;
1098
+ };
1099
+ ai_agent_participated: boolean;
1107
1100
  createdAt?: FirebaseFirestore.Timestamp | null | undefined;
1108
1101
  updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
1109
1102
  order?: number | null | undefined;
1103
+ snoozed_until?: any;
1104
+ admin_assignee_id?: any;
1105
+ team_assignee_id?: any;
1106
+ sla_applied?: any;
1107
+ conversation_rating?: any;
1108
+ ticket?: any;
1109
+ ai_agent?: any;
1110
1110
  }, {
1111
1111
  type: string;
1112
1112
  created_at: number;
1113
- tags: {
1114
- type: string;
1115
- tags: {
1116
- id: string;
1117
- type: string;
1118
- name: string;
1119
- applied_at: number;
1120
- applied_by: {
1121
- id: string;
1122
- type: string;
1123
- };
1124
- }[];
1125
- };
1126
1113
  topics: {
1127
1114
  type: string;
1128
- total_count: number;
1129
1115
  topics: any[];
1116
+ total_count: number;
1130
1117
  };
1131
1118
  contacts: {
1132
1119
  type: string;
1133
1120
  contacts: {
1134
- external_id: string;
1135
- id: string;
1136
1121
  type: string;
1122
+ id: string;
1123
+ external_id: string;
1137
1124
  }[];
1138
1125
  };
1139
1126
  updated_at: number;
1127
+ tags: {
1128
+ type: string;
1129
+ tags: {
1130
+ type: string;
1131
+ id: string;
1132
+ name: string;
1133
+ applied_at: number;
1134
+ applied_by: {
1135
+ type: string;
1136
+ id: string;
1137
+ };
1138
+ }[];
1139
+ };
1140
1140
  conversation_parts: {
1141
1141
  type: string;
1142
1142
  total_count: number;
1143
1143
  conversation_parts: {
1144
- id: string;
1145
1144
  type: string;
1145
+ id: string;
1146
1146
  created_at: number;
1147
- attachments: any[];
1148
1147
  author: {
1149
- id: string;
1150
1148
  type: string;
1151
- email: string;
1149
+ id: string;
1152
1150
  name: string;
1151
+ email: string;
1153
1152
  };
1153
+ attachments: any[];
1154
1154
  redacted: boolean;
1155
- notified_at: number;
1156
1155
  part_type: string;
1157
1156
  updated_at: number;
1157
+ notified_at: number;
1158
1158
  external_id?: any;
1159
1159
  body?: string | undefined;
1160
1160
  assigned_to?: any;
1161
1161
  }[];
1162
1162
  };
1163
- ai_agent_participated: boolean;
1164
1163
  custom_attributes: {
1165
1164
  activity_name?: string | undefined;
1166
1165
  activity_module?: string | undefined;
@@ -1172,75 +1171,76 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
1172
1171
  } & {
1173
1172
  [k: string]: string | number | boolean;
1174
1173
  };
1175
- first_contact_reply: {
1176
- type?: string | null | undefined;
1177
- created_at?: number | null | undefined;
1178
- url?: string | null | undefined;
1179
- };
1180
- linked_objects: {
1181
- type: string;
1182
- data: any[];
1183
- has_more: boolean;
1184
- total_count: number;
1185
- };
1186
- open: boolean;
1187
- priority: string;
1188
- read: boolean;
1174
+ waiting_since: number;
1189
1175
  source: {
1190
- id: string;
1191
1176
  type: string;
1177
+ id: string;
1192
1178
  author: {
1193
- id: string;
1194
1179
  type: string;
1195
- email: string;
1180
+ id: string;
1196
1181
  name: string;
1182
+ email: string;
1197
1183
  };
1198
1184
  url?: string | null | undefined;
1199
- attachments?: any[] | null | undefined;
1200
- body?: string | null | undefined;
1201
1185
  delivered_as?: string | null | undefined;
1202
- redacted?: boolean | null | undefined;
1203
1186
  subject?: string | null | undefined;
1187
+ body?: string | null | undefined;
1188
+ attachments?: any[] | null | undefined;
1189
+ redacted?: boolean | null | undefined;
1190
+ };
1191
+ first_contact_reply: {
1192
+ type?: string | null | undefined;
1193
+ created_at?: number | null | undefined;
1194
+ url?: string | null | undefined;
1204
1195
  };
1196
+ open: boolean;
1205
1197
  state: string;
1198
+ read: boolean;
1199
+ priority: string;
1206
1200
  statistics: {
1207
1201
  type: string;
1208
- count_assignments: number;
1209
- count_conversation_parts: number;
1210
- count_reopens: number;
1211
1202
  first_contact_reply_at: number;
1212
1203
  last_contact_reply_at: number;
1213
- first_admin_reply_at?: any;
1204
+ count_reopens: number;
1205
+ count_assignments: number;
1206
+ count_conversation_parts: number;
1207
+ time_to_assignment?: any;
1208
+ time_to_admin_reply?: any;
1209
+ time_to_first_close?: any;
1210
+ time_to_last_close?: any;
1211
+ median_time_to_reply?: any;
1214
1212
  first_assignment_at?: any;
1213
+ first_admin_reply_at?: any;
1215
1214
  first_close_at?: any;
1216
- last_admin_reply_at?: any;
1217
- last_assignment_admin_reply_at?: any;
1218
1215
  last_assignment_at?: any;
1216
+ last_assignment_admin_reply_at?: any;
1217
+ last_admin_reply_at?: any;
1219
1218
  last_close_at?: any;
1220
1219
  last_closed_by_id?: any;
1221
- median_time_to_reply?: any;
1222
- time_to_admin_reply?: any;
1223
- time_to_assignment?: any;
1224
- time_to_first_close?: any;
1225
- time_to_last_close?: any;
1226
1220
  };
1227
1221
  teammates: {
1228
1222
  type: string;
1229
1223
  admins: any[];
1230
1224
  };
1231
1225
  title: string;
1232
- waiting_since: number;
1226
+ linked_objects: {
1227
+ type: string;
1228
+ total_count: number;
1229
+ data: any[];
1230
+ has_more: boolean;
1231
+ };
1232
+ ai_agent_participated: boolean;
1233
1233
  id?: unknown;
1234
- admin_assignee_id?: any;
1235
- ai_agent?: any;
1236
- conversation_rating?: any;
1237
- sla_applied?: any;
1238
- snoozed_until?: any;
1239
- team_assignee_id?: any;
1240
- ticket?: any;
1241
1234
  createdAt?: unknown;
1242
1235
  updatedAt?: unknown;
1243
1236
  order?: number | null | undefined;
1237
+ snoozed_until?: any;
1238
+ admin_assignee_id?: any;
1239
+ team_assignee_id?: any;
1240
+ sla_applied?: any;
1241
+ conversation_rating?: any;
1242
+ ticket?: any;
1243
+ ai_agent?: any;
1244
1244
  }>;
1245
1245
  type Conversation = z.infer<typeof ConversationSchema>;
1246
1246