@kl1/contracts 1.1.26 → 1.1.27

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.
Files changed (34) hide show
  1. package/dist/index.js +27 -125
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +27 -124
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/chat/schema.d.ts +18 -3
  6. package/dist/src/chat/schema.d.ts.map +1 -1
  7. package/dist/src/contact/index.d.ts +0 -3
  8. package/dist/src/contact/index.d.ts.map +1 -1
  9. package/dist/src/contact/schema.d.ts.map +1 -1
  10. package/dist/src/contact/validation.d.ts +0 -3
  11. package/dist/src/contact/validation.d.ts.map +1 -1
  12. package/dist/src/contract.d.ts +145440 -167912
  13. package/dist/src/contract.d.ts.map +1 -1
  14. package/dist/src/mail/mail-contract.d.ts +7881 -30354
  15. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  16. package/dist/src/mail/message-contract.d.ts +61 -6421
  17. package/dist/src/mail/message-contract.d.ts.map +1 -1
  18. package/dist/src/mail/room-contract.d.ts +1568 -17683
  19. package/dist/src/mail/room-contract.d.ts.map +1 -1
  20. package/dist/src/mail/schemas/message-validation.schema.d.ts +4 -7
  21. package/dist/src/mail/schemas/message-validation.schema.d.ts.map +1 -1
  22. package/dist/src/mail/schemas/message.schema.d.ts +40 -762
  23. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  24. package/dist/src/mail/schemas/room-validation.schema.d.ts +376 -5668
  25. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  26. package/dist/src/mail/schemas/room.schema.d.ts +477 -5808
  27. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  28. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  29. package/dist/src/wrap-up-form/index.d.ts +6 -0
  30. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  31. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  32. package/dist/src/wrap-up-form/validation.d.ts +6 -0
  33. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  34. package/package.json +4 -10
@@ -16,628 +16,94 @@ export declare const MessageSchema: z.ZodObject<{
16
16
  date: z.ZodDate;
17
17
  action: z.ZodString;
18
18
  unseen: z.ZodBoolean;
19
- sendAt: z.ZodDate;
20
- starred: z.ZodBoolean;
21
19
  seemsLikeNew: z.ZodBoolean;
22
20
  from: z.ZodArray<z.ZodObject<{
23
21
  id: z.ZodString;
24
22
  createdAt: z.ZodDate;
25
23
  updatedAt: z.ZodDate;
26
24
  deletedAt: z.ZodNullable<z.ZodDate>;
27
- roomId: z.ZodString;
28
- messageId: z.ZodString;
29
- mailUserId: z.ZodString;
30
- mailUser: z.ZodObject<{
31
- id: z.ZodString;
32
- createdAt: z.ZodDate;
33
- updatedAt: z.ZodDate;
34
- deletedAt: z.ZodNullable<z.ZodDate>;
35
- name: z.ZodString;
36
- address: z.ZodString;
37
- contactId: z.ZodString;
38
- contact: z.ZodObject<{
39
- id: z.ZodString;
40
- createdAt: z.ZodDate;
41
- updatedAt: z.ZodDate;
42
- deletedAt: z.ZodNullable<z.ZodDate>;
43
- name: z.ZodString;
44
- address: z.ZodNullable<z.ZodString>;
45
- channel: z.ZodNullable<z.ZodString>;
46
- notes: z.ZodNullable<z.ZodString>;
47
- contactProfile: z.ZodNullable<z.ZodString>;
48
- socialProfileUrl: z.ZodNullable<z.ZodString>;
49
- }, "strip", z.ZodTypeAny, {
50
- id: string;
51
- channel: string | null;
52
- address: string | null;
53
- name: string;
54
- createdAt: Date;
55
- updatedAt: Date;
56
- deletedAt: Date | null;
57
- notes: string | null;
58
- contactProfile: string | null;
59
- socialProfileUrl: string | null;
60
- }, {
61
- id: string;
62
- channel: string | null;
63
- address: string | null;
64
- name: string;
65
- createdAt: Date;
66
- updatedAt: Date;
67
- deletedAt: Date | null;
68
- notes: string | null;
69
- contactProfile: string | null;
70
- socialProfileUrl: string | null;
71
- }>;
72
- isNewContact: z.ZodBoolean;
73
- }, "strip", z.ZodTypeAny, {
74
- id: string;
75
- address: string;
76
- name: string;
77
- createdAt: Date;
78
- updatedAt: Date;
79
- deletedAt: Date | null;
80
- contact: {
81
- id: string;
82
- channel: string | null;
83
- address: string | null;
84
- name: string;
85
- createdAt: Date;
86
- updatedAt: Date;
87
- deletedAt: Date | null;
88
- notes: string | null;
89
- contactProfile: string | null;
90
- socialProfileUrl: string | null;
91
- };
92
- contactId: string;
93
- isNewContact: boolean;
94
- }, {
95
- id: string;
96
- address: string;
97
- name: string;
98
- createdAt: Date;
99
- updatedAt: Date;
100
- deletedAt: Date | null;
101
- contact: {
102
- id: string;
103
- channel: string | null;
104
- address: string | null;
105
- name: string;
106
- createdAt: Date;
107
- updatedAt: Date;
108
- deletedAt: Date | null;
109
- notes: string | null;
110
- contactProfile: string | null;
111
- socialProfileUrl: string | null;
112
- };
113
- contactId: string;
114
- isNewContact: boolean;
115
- }>;
25
+ name: z.ZodString;
26
+ address: z.ZodString;
116
27
  }, "strip", z.ZodTypeAny, {
117
28
  id: string;
29
+ address: string;
30
+ name: string;
118
31
  createdAt: Date;
119
32
  updatedAt: Date;
120
33
  deletedAt: Date | null;
121
- roomId: string;
122
- messageId: string;
123
- mailUserId: string;
124
- mailUser: {
125
- id: string;
126
- address: string;
127
- name: string;
128
- createdAt: Date;
129
- updatedAt: Date;
130
- deletedAt: Date | null;
131
- contact: {
132
- id: string;
133
- channel: string | null;
134
- address: string | null;
135
- name: string;
136
- createdAt: Date;
137
- updatedAt: Date;
138
- deletedAt: Date | null;
139
- notes: string | null;
140
- contactProfile: string | null;
141
- socialProfileUrl: string | null;
142
- };
143
- contactId: string;
144
- isNewContact: boolean;
145
- };
146
34
  }, {
147
35
  id: string;
36
+ address: string;
37
+ name: string;
148
38
  createdAt: Date;
149
39
  updatedAt: Date;
150
40
  deletedAt: Date | null;
151
- roomId: string;
152
- messageId: string;
153
- mailUserId: string;
154
- mailUser: {
155
- id: string;
156
- address: string;
157
- name: string;
158
- createdAt: Date;
159
- updatedAt: Date;
160
- deletedAt: Date | null;
161
- contact: {
162
- id: string;
163
- channel: string | null;
164
- address: string | null;
165
- name: string;
166
- createdAt: Date;
167
- updatedAt: Date;
168
- deletedAt: Date | null;
169
- notes: string | null;
170
- contactProfile: string | null;
171
- socialProfileUrl: string | null;
172
- };
173
- contactId: string;
174
- isNewContact: boolean;
175
- };
176
41
  }>, "many">;
177
42
  to: z.ZodArray<z.ZodObject<{
178
43
  id: z.ZodString;
179
44
  createdAt: z.ZodDate;
180
45
  updatedAt: z.ZodDate;
181
46
  deletedAt: z.ZodNullable<z.ZodDate>;
182
- roomId: z.ZodString;
183
- messageId: z.ZodString;
184
- mailUserId: z.ZodString;
185
- mailUser: z.ZodObject<{
186
- id: z.ZodString;
187
- createdAt: z.ZodDate;
188
- updatedAt: z.ZodDate;
189
- deletedAt: z.ZodNullable<z.ZodDate>;
190
- name: z.ZodString;
191
- address: z.ZodString;
192
- contactId: z.ZodString;
193
- contact: z.ZodObject<{
194
- id: z.ZodString;
195
- createdAt: z.ZodDate;
196
- updatedAt: z.ZodDate;
197
- deletedAt: z.ZodNullable<z.ZodDate>;
198
- name: z.ZodString;
199
- address: z.ZodNullable<z.ZodString>;
200
- channel: z.ZodNullable<z.ZodString>;
201
- notes: z.ZodNullable<z.ZodString>;
202
- contactProfile: z.ZodNullable<z.ZodString>;
203
- socialProfileUrl: z.ZodNullable<z.ZodString>;
204
- }, "strip", z.ZodTypeAny, {
205
- id: string;
206
- channel: string | null;
207
- address: string | null;
208
- name: string;
209
- createdAt: Date;
210
- updatedAt: Date;
211
- deletedAt: Date | null;
212
- notes: string | null;
213
- contactProfile: string | null;
214
- socialProfileUrl: string | null;
215
- }, {
216
- id: string;
217
- channel: string | null;
218
- address: string | null;
219
- name: string;
220
- createdAt: Date;
221
- updatedAt: Date;
222
- deletedAt: Date | null;
223
- notes: string | null;
224
- contactProfile: string | null;
225
- socialProfileUrl: string | null;
226
- }>;
227
- isNewContact: z.ZodBoolean;
228
- }, "strip", z.ZodTypeAny, {
229
- id: string;
230
- address: string;
231
- name: string;
232
- createdAt: Date;
233
- updatedAt: Date;
234
- deletedAt: Date | null;
235
- contact: {
236
- id: string;
237
- channel: string | null;
238
- address: string | null;
239
- name: string;
240
- createdAt: Date;
241
- updatedAt: Date;
242
- deletedAt: Date | null;
243
- notes: string | null;
244
- contactProfile: string | null;
245
- socialProfileUrl: string | null;
246
- };
247
- contactId: string;
248
- isNewContact: boolean;
249
- }, {
250
- id: string;
251
- address: string;
252
- name: string;
253
- createdAt: Date;
254
- updatedAt: Date;
255
- deletedAt: Date | null;
256
- contact: {
257
- id: string;
258
- channel: string | null;
259
- address: string | null;
260
- name: string;
261
- createdAt: Date;
262
- updatedAt: Date;
263
- deletedAt: Date | null;
264
- notes: string | null;
265
- contactProfile: string | null;
266
- socialProfileUrl: string | null;
267
- };
268
- contactId: string;
269
- isNewContact: boolean;
270
- }>;
47
+ name: z.ZodString;
48
+ address: z.ZodString;
271
49
  }, "strip", z.ZodTypeAny, {
272
50
  id: string;
51
+ address: string;
52
+ name: string;
273
53
  createdAt: Date;
274
54
  updatedAt: Date;
275
55
  deletedAt: Date | null;
276
- roomId: string;
277
- messageId: string;
278
- mailUserId: string;
279
- mailUser: {
280
- id: string;
281
- address: string;
282
- name: string;
283
- createdAt: Date;
284
- updatedAt: Date;
285
- deletedAt: Date | null;
286
- contact: {
287
- id: string;
288
- channel: string | null;
289
- address: string | null;
290
- name: string;
291
- createdAt: Date;
292
- updatedAt: Date;
293
- deletedAt: Date | null;
294
- notes: string | null;
295
- contactProfile: string | null;
296
- socialProfileUrl: string | null;
297
- };
298
- contactId: string;
299
- isNewContact: boolean;
300
- };
301
56
  }, {
302
57
  id: string;
58
+ address: string;
59
+ name: string;
303
60
  createdAt: Date;
304
61
  updatedAt: Date;
305
62
  deletedAt: Date | null;
306
- roomId: string;
307
- messageId: string;
308
- mailUserId: string;
309
- mailUser: {
310
- id: string;
311
- address: string;
312
- name: string;
313
- createdAt: Date;
314
- updatedAt: Date;
315
- deletedAt: Date | null;
316
- contact: {
317
- id: string;
318
- channel: string | null;
319
- address: string | null;
320
- name: string;
321
- createdAt: Date;
322
- updatedAt: Date;
323
- deletedAt: Date | null;
324
- notes: string | null;
325
- contactProfile: string | null;
326
- socialProfileUrl: string | null;
327
- };
328
- contactId: string;
329
- isNewContact: boolean;
330
- };
331
63
  }>, "many">;
332
64
  cc: z.ZodArray<z.ZodObject<{
333
65
  id: z.ZodString;
334
66
  createdAt: z.ZodDate;
335
67
  updatedAt: z.ZodDate;
336
68
  deletedAt: z.ZodNullable<z.ZodDate>;
337
- roomId: z.ZodString;
338
- messageId: z.ZodString;
339
- mailUserId: z.ZodString;
340
- mailUser: z.ZodObject<{
341
- id: z.ZodString;
342
- createdAt: z.ZodDate;
343
- updatedAt: z.ZodDate;
344
- deletedAt: z.ZodNullable<z.ZodDate>;
345
- name: z.ZodString;
346
- address: z.ZodString;
347
- contactId: z.ZodString;
348
- contact: z.ZodObject<{
349
- id: z.ZodString;
350
- createdAt: z.ZodDate;
351
- updatedAt: z.ZodDate;
352
- deletedAt: z.ZodNullable<z.ZodDate>;
353
- name: z.ZodString;
354
- address: z.ZodNullable<z.ZodString>;
355
- channel: z.ZodNullable<z.ZodString>;
356
- notes: z.ZodNullable<z.ZodString>;
357
- contactProfile: z.ZodNullable<z.ZodString>;
358
- socialProfileUrl: z.ZodNullable<z.ZodString>;
359
- }, "strip", z.ZodTypeAny, {
360
- id: string;
361
- channel: string | null;
362
- address: string | null;
363
- name: string;
364
- createdAt: Date;
365
- updatedAt: Date;
366
- deletedAt: Date | null;
367
- notes: string | null;
368
- contactProfile: string | null;
369
- socialProfileUrl: string | null;
370
- }, {
371
- id: string;
372
- channel: string | null;
373
- address: string | null;
374
- name: string;
375
- createdAt: Date;
376
- updatedAt: Date;
377
- deletedAt: Date | null;
378
- notes: string | null;
379
- contactProfile: string | null;
380
- socialProfileUrl: string | null;
381
- }>;
382
- isNewContact: z.ZodBoolean;
383
- }, "strip", z.ZodTypeAny, {
384
- id: string;
385
- address: string;
386
- name: string;
387
- createdAt: Date;
388
- updatedAt: Date;
389
- deletedAt: Date | null;
390
- contact: {
391
- id: string;
392
- channel: string | null;
393
- address: string | null;
394
- name: string;
395
- createdAt: Date;
396
- updatedAt: Date;
397
- deletedAt: Date | null;
398
- notes: string | null;
399
- contactProfile: string | null;
400
- socialProfileUrl: string | null;
401
- };
402
- contactId: string;
403
- isNewContact: boolean;
404
- }, {
405
- id: string;
406
- address: string;
407
- name: string;
408
- createdAt: Date;
409
- updatedAt: Date;
410
- deletedAt: Date | null;
411
- contact: {
412
- id: string;
413
- channel: string | null;
414
- address: string | null;
415
- name: string;
416
- createdAt: Date;
417
- updatedAt: Date;
418
- deletedAt: Date | null;
419
- notes: string | null;
420
- contactProfile: string | null;
421
- socialProfileUrl: string | null;
422
- };
423
- contactId: string;
424
- isNewContact: boolean;
425
- }>;
69
+ name: z.ZodString;
70
+ address: z.ZodString;
426
71
  }, "strip", z.ZodTypeAny, {
427
72
  id: string;
73
+ address: string;
74
+ name: string;
428
75
  createdAt: Date;
429
76
  updatedAt: Date;
430
77
  deletedAt: Date | null;
431
- roomId: string;
432
- messageId: string;
433
- mailUserId: string;
434
- mailUser: {
435
- id: string;
436
- address: string;
437
- name: string;
438
- createdAt: Date;
439
- updatedAt: Date;
440
- deletedAt: Date | null;
441
- contact: {
442
- id: string;
443
- channel: string | null;
444
- address: string | null;
445
- name: string;
446
- createdAt: Date;
447
- updatedAt: Date;
448
- deletedAt: Date | null;
449
- notes: string | null;
450
- contactProfile: string | null;
451
- socialProfileUrl: string | null;
452
- };
453
- contactId: string;
454
- isNewContact: boolean;
455
- };
456
78
  }, {
457
79
  id: string;
80
+ address: string;
81
+ name: string;
458
82
  createdAt: Date;
459
83
  updatedAt: Date;
460
84
  deletedAt: Date | null;
461
- roomId: string;
462
- messageId: string;
463
- mailUserId: string;
464
- mailUser: {
465
- id: string;
466
- address: string;
467
- name: string;
468
- createdAt: Date;
469
- updatedAt: Date;
470
- deletedAt: Date | null;
471
- contact: {
472
- id: string;
473
- channel: string | null;
474
- address: string | null;
475
- name: string;
476
- createdAt: Date;
477
- updatedAt: Date;
478
- deletedAt: Date | null;
479
- notes: string | null;
480
- contactProfile: string | null;
481
- socialProfileUrl: string | null;
482
- };
483
- contactId: string;
484
- isNewContact: boolean;
485
- };
486
85
  }>, "many">;
487
86
  bcc: z.ZodArray<z.ZodObject<{
488
87
  id: z.ZodString;
489
88
  createdAt: z.ZodDate;
490
89
  updatedAt: z.ZodDate;
491
90
  deletedAt: z.ZodNullable<z.ZodDate>;
492
- roomId: z.ZodString;
493
- messageId: z.ZodString;
494
- mailUserId: z.ZodString;
495
- mailUser: z.ZodObject<{
496
- id: z.ZodString;
497
- createdAt: z.ZodDate;
498
- updatedAt: z.ZodDate;
499
- deletedAt: z.ZodNullable<z.ZodDate>;
500
- name: z.ZodString;
501
- address: z.ZodString;
502
- contactId: z.ZodString;
503
- contact: z.ZodObject<{
504
- id: z.ZodString;
505
- createdAt: z.ZodDate;
506
- updatedAt: z.ZodDate;
507
- deletedAt: z.ZodNullable<z.ZodDate>;
508
- name: z.ZodString;
509
- address: z.ZodNullable<z.ZodString>;
510
- channel: z.ZodNullable<z.ZodString>;
511
- notes: z.ZodNullable<z.ZodString>;
512
- contactProfile: z.ZodNullable<z.ZodString>;
513
- socialProfileUrl: z.ZodNullable<z.ZodString>;
514
- }, "strip", z.ZodTypeAny, {
515
- id: string;
516
- channel: string | null;
517
- address: string | null;
518
- name: string;
519
- createdAt: Date;
520
- updatedAt: Date;
521
- deletedAt: Date | null;
522
- notes: string | null;
523
- contactProfile: string | null;
524
- socialProfileUrl: string | null;
525
- }, {
526
- id: string;
527
- channel: string | null;
528
- address: string | null;
529
- name: string;
530
- createdAt: Date;
531
- updatedAt: Date;
532
- deletedAt: Date | null;
533
- notes: string | null;
534
- contactProfile: string | null;
535
- socialProfileUrl: string | null;
536
- }>;
537
- isNewContact: z.ZodBoolean;
538
- }, "strip", z.ZodTypeAny, {
539
- id: string;
540
- address: string;
541
- name: string;
542
- createdAt: Date;
543
- updatedAt: Date;
544
- deletedAt: Date | null;
545
- contact: {
546
- id: string;
547
- channel: string | null;
548
- address: string | null;
549
- name: string;
550
- createdAt: Date;
551
- updatedAt: Date;
552
- deletedAt: Date | null;
553
- notes: string | null;
554
- contactProfile: string | null;
555
- socialProfileUrl: string | null;
556
- };
557
- contactId: string;
558
- isNewContact: boolean;
559
- }, {
560
- id: string;
561
- address: string;
562
- name: string;
563
- createdAt: Date;
564
- updatedAt: Date;
565
- deletedAt: Date | null;
566
- contact: {
567
- id: string;
568
- channel: string | null;
569
- address: string | null;
570
- name: string;
571
- createdAt: Date;
572
- updatedAt: Date;
573
- deletedAt: Date | null;
574
- notes: string | null;
575
- contactProfile: string | null;
576
- socialProfileUrl: string | null;
577
- };
578
- contactId: string;
579
- isNewContact: boolean;
580
- }>;
91
+ name: z.ZodString;
92
+ address: z.ZodString;
581
93
  }, "strip", z.ZodTypeAny, {
582
94
  id: string;
95
+ address: string;
96
+ name: string;
583
97
  createdAt: Date;
584
98
  updatedAt: Date;
585
99
  deletedAt: Date | null;
586
- roomId: string;
587
- messageId: string;
588
- mailUserId: string;
589
- mailUser: {
590
- id: string;
591
- address: string;
592
- name: string;
593
- createdAt: Date;
594
- updatedAt: Date;
595
- deletedAt: Date | null;
596
- contact: {
597
- id: string;
598
- channel: string | null;
599
- address: string | null;
600
- name: string;
601
- createdAt: Date;
602
- updatedAt: Date;
603
- deletedAt: Date | null;
604
- notes: string | null;
605
- contactProfile: string | null;
606
- socialProfileUrl: string | null;
607
- };
608
- contactId: string;
609
- isNewContact: boolean;
610
- };
611
100
  }, {
612
101
  id: string;
102
+ address: string;
103
+ name: string;
613
104
  createdAt: Date;
614
105
  updatedAt: Date;
615
106
  deletedAt: Date | null;
616
- roomId: string;
617
- messageId: string;
618
- mailUserId: string;
619
- mailUser: {
620
- id: string;
621
- address: string;
622
- name: string;
623
- createdAt: Date;
624
- updatedAt: Date;
625
- deletedAt: Date | null;
626
- contact: {
627
- id: string;
628
- channel: string | null;
629
- address: string | null;
630
- name: string;
631
- createdAt: Date;
632
- updatedAt: Date;
633
- deletedAt: Date | null;
634
- notes: string | null;
635
- contactProfile: string | null;
636
- socialProfileUrl: string | null;
637
- };
638
- contactId: string;
639
- isNewContact: boolean;
640
- };
641
107
  }>, "many">;
642
108
  attachments: z.ZodArray<z.ZodObject<{
643
109
  id: z.ZodString;
@@ -748,132 +214,38 @@ export declare const MessageSchema: z.ZodObject<{
748
214
  emailEngineMessageId: string;
749
215
  emailEngineReplyTo: string | null;
750
216
  unseen: boolean;
751
- sendAt: Date;
752
- starred: boolean;
753
217
  seemsLikeNew: boolean;
754
218
  from: {
755
219
  id: string;
220
+ address: string;
221
+ name: string;
756
222
  createdAt: Date;
757
223
  updatedAt: Date;
758
224
  deletedAt: Date | null;
759
- roomId: string;
760
- messageId: string;
761
- mailUserId: string;
762
- mailUser: {
763
- id: string;
764
- address: string;
765
- name: string;
766
- createdAt: Date;
767
- updatedAt: Date;
768
- deletedAt: Date | null;
769
- contact: {
770
- id: string;
771
- channel: string | null;
772
- address: string | null;
773
- name: string;
774
- createdAt: Date;
775
- updatedAt: Date;
776
- deletedAt: Date | null;
777
- notes: string | null;
778
- contactProfile: string | null;
779
- socialProfileUrl: string | null;
780
- };
781
- contactId: string;
782
- isNewContact: boolean;
783
- };
784
225
  }[];
785
226
  to: {
786
227
  id: string;
228
+ address: string;
229
+ name: string;
787
230
  createdAt: Date;
788
231
  updatedAt: Date;
789
232
  deletedAt: Date | null;
790
- roomId: string;
791
- messageId: string;
792
- mailUserId: string;
793
- mailUser: {
794
- id: string;
795
- address: string;
796
- name: string;
797
- createdAt: Date;
798
- updatedAt: Date;
799
- deletedAt: Date | null;
800
- contact: {
801
- id: string;
802
- channel: string | null;
803
- address: string | null;
804
- name: string;
805
- createdAt: Date;
806
- updatedAt: Date;
807
- deletedAt: Date | null;
808
- notes: string | null;
809
- contactProfile: string | null;
810
- socialProfileUrl: string | null;
811
- };
812
- contactId: string;
813
- isNewContact: boolean;
814
- };
815
233
  }[];
816
234
  cc: {
817
235
  id: string;
236
+ address: string;
237
+ name: string;
818
238
  createdAt: Date;
819
239
  updatedAt: Date;
820
240
  deletedAt: Date | null;
821
- roomId: string;
822
- messageId: string;
823
- mailUserId: string;
824
- mailUser: {
825
- id: string;
826
- address: string;
827
- name: string;
828
- createdAt: Date;
829
- updatedAt: Date;
830
- deletedAt: Date | null;
831
- contact: {
832
- id: string;
833
- channel: string | null;
834
- address: string | null;
835
- name: string;
836
- createdAt: Date;
837
- updatedAt: Date;
838
- deletedAt: Date | null;
839
- notes: string | null;
840
- contactProfile: string | null;
841
- socialProfileUrl: string | null;
842
- };
843
- contactId: string;
844
- isNewContact: boolean;
845
- };
846
241
  }[];
847
242
  bcc: {
848
243
  id: string;
244
+ address: string;
245
+ name: string;
849
246
  createdAt: Date;
850
247
  updatedAt: Date;
851
248
  deletedAt: Date | null;
852
- roomId: string;
853
- messageId: string;
854
- mailUserId: string;
855
- mailUser: {
856
- id: string;
857
- address: string;
858
- name: string;
859
- createdAt: Date;
860
- updatedAt: Date;
861
- deletedAt: Date | null;
862
- contact: {
863
- id: string;
864
- channel: string | null;
865
- address: string | null;
866
- name: string;
867
- createdAt: Date;
868
- updatedAt: Date;
869
- deletedAt: Date | null;
870
- notes: string | null;
871
- contactProfile: string | null;
872
- socialProfileUrl: string | null;
873
- };
874
- contactId: string;
875
- isNewContact: boolean;
876
- };
877
249
  }[];
878
250
  attachments: {
879
251
  id: string;
@@ -916,132 +288,38 @@ export declare const MessageSchema: z.ZodObject<{
916
288
  emailEngineMessageId: string;
917
289
  emailEngineReplyTo: string | null;
918
290
  unseen: boolean;
919
- sendAt: Date;
920
- starred: boolean;
921
291
  seemsLikeNew: boolean;
922
292
  from: {
923
293
  id: string;
294
+ address: string;
295
+ name: string;
924
296
  createdAt: Date;
925
297
  updatedAt: Date;
926
298
  deletedAt: Date | null;
927
- roomId: string;
928
- messageId: string;
929
- mailUserId: string;
930
- mailUser: {
931
- id: string;
932
- address: string;
933
- name: string;
934
- createdAt: Date;
935
- updatedAt: Date;
936
- deletedAt: Date | null;
937
- contact: {
938
- id: string;
939
- channel: string | null;
940
- address: string | null;
941
- name: string;
942
- createdAt: Date;
943
- updatedAt: Date;
944
- deletedAt: Date | null;
945
- notes: string | null;
946
- contactProfile: string | null;
947
- socialProfileUrl: string | null;
948
- };
949
- contactId: string;
950
- isNewContact: boolean;
951
- };
952
299
  }[];
953
300
  to: {
954
301
  id: string;
302
+ address: string;
303
+ name: string;
955
304
  createdAt: Date;
956
305
  updatedAt: Date;
957
306
  deletedAt: Date | null;
958
- roomId: string;
959
- messageId: string;
960
- mailUserId: string;
961
- mailUser: {
962
- id: string;
963
- address: string;
964
- name: string;
965
- createdAt: Date;
966
- updatedAt: Date;
967
- deletedAt: Date | null;
968
- contact: {
969
- id: string;
970
- channel: string | null;
971
- address: string | null;
972
- name: string;
973
- createdAt: Date;
974
- updatedAt: Date;
975
- deletedAt: Date | null;
976
- notes: string | null;
977
- contactProfile: string | null;
978
- socialProfileUrl: string | null;
979
- };
980
- contactId: string;
981
- isNewContact: boolean;
982
- };
983
307
  }[];
984
308
  cc: {
985
309
  id: string;
310
+ address: string;
311
+ name: string;
986
312
  createdAt: Date;
987
313
  updatedAt: Date;
988
314
  deletedAt: Date | null;
989
- roomId: string;
990
- messageId: string;
991
- mailUserId: string;
992
- mailUser: {
993
- id: string;
994
- address: string;
995
- name: string;
996
- createdAt: Date;
997
- updatedAt: Date;
998
- deletedAt: Date | null;
999
- contact: {
1000
- id: string;
1001
- channel: string | null;
1002
- address: string | null;
1003
- name: string;
1004
- createdAt: Date;
1005
- updatedAt: Date;
1006
- deletedAt: Date | null;
1007
- notes: string | null;
1008
- contactProfile: string | null;
1009
- socialProfileUrl: string | null;
1010
- };
1011
- contactId: string;
1012
- isNewContact: boolean;
1013
- };
1014
315
  }[];
1015
316
  bcc: {
1016
317
  id: string;
318
+ address: string;
319
+ name: string;
1017
320
  createdAt: Date;
1018
321
  updatedAt: Date;
1019
322
  deletedAt: Date | null;
1020
- roomId: string;
1021
- messageId: string;
1022
- mailUserId: string;
1023
- mailUser: {
1024
- id: string;
1025
- address: string;
1026
- name: string;
1027
- createdAt: Date;
1028
- updatedAt: Date;
1029
- deletedAt: Date | null;
1030
- contact: {
1031
- id: string;
1032
- channel: string | null;
1033
- address: string | null;
1034
- name: string;
1035
- createdAt: Date;
1036
- updatedAt: Date;
1037
- deletedAt: Date | null;
1038
- notes: string | null;
1039
- contactProfile: string | null;
1040
- socialProfileUrl: string | null;
1041
- };
1042
- contactId: string;
1043
- isNewContact: boolean;
1044
- };
1045
323
  }[];
1046
324
  attachments: {
1047
325
  id: string;