@kl1/contracts 1.1.25 → 1.1.26

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 (58) hide show
  1. package/dist/index.js +935 -924
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +934 -924
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/chat/index.d.ts +4867 -22
  6. package/dist/src/chat/index.d.ts.map +1 -1
  7. package/dist/src/chat/schema.d.ts +773 -22
  8. package/dist/src/chat/schema.d.ts.map +1 -1
  9. package/dist/src/chat/validation.d.ts +975 -5
  10. package/dist/src/chat/validation.d.ts.map +1 -1
  11. package/dist/src/contact/index.d.ts +3 -0
  12. package/dist/src/contact/index.d.ts.map +1 -1
  13. package/dist/src/contact/schema.d.ts.map +1 -1
  14. package/dist/src/contact/validation.d.ts +3 -0
  15. package/dist/src/contact/validation.d.ts.map +1 -1
  16. package/dist/src/contract.d.ts +164160 -131652
  17. package/dist/src/contract.d.ts.map +1 -1
  18. package/dist/src/cx-log/index.d.ts +352 -2
  19. package/dist/src/cx-log/index.d.ts.map +1 -1
  20. package/dist/src/cx-log/schema.d.ts +557 -4
  21. package/dist/src/cx-log/schema.d.ts.map +1 -1
  22. package/dist/src/instagram/index.d.ts +487 -2
  23. package/dist/src/instagram/index.d.ts.map +1 -1
  24. package/dist/src/line/index.d.ts +487 -2
  25. package/dist/src/line/index.d.ts.map +1 -1
  26. package/dist/src/mail/mail-contract.d.ts +30477 -6759
  27. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  28. package/dist/src/mail/message-contract.d.ts +6424 -64
  29. package/dist/src/mail/message-contract.d.ts.map +1 -1
  30. package/dist/src/mail/room-contract.d.ts +19532 -2172
  31. package/dist/src/mail/room-contract.d.ts.map +1 -1
  32. package/dist/src/mail/schemas/message-validation.schema.d.ts +7 -4
  33. package/dist/src/mail/schemas/message-validation.schema.d.ts.map +1 -1
  34. package/dist/src/mail/schemas/message.schema.d.ts +762 -40
  35. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  36. package/dist/src/mail/schemas/room-validation.schema.d.ts +6057 -350
  37. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  38. package/dist/src/mail/schemas/room.schema.d.ts +5984 -308
  39. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  40. package/dist/src/messenger/index.d.ts +487 -2
  41. package/dist/src/messenger/index.d.ts.map +1 -1
  42. package/dist/src/telephony-cdr/call-report.schema.d.ts +62 -62
  43. package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -1
  44. package/dist/src/telephony-cdr/index.d.ts +1 -622
  45. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  46. package/dist/src/viber/index.d.ts +487 -2
  47. package/dist/src/viber/index.d.ts.map +1 -1
  48. package/dist/src/webchat/index.d.ts +487 -2
  49. package/dist/src/webchat/index.d.ts.map +1 -1
  50. package/dist/src/workflow-rule/index.d.ts +834 -4
  51. package/dist/src/workflow-rule/index.d.ts.map +1 -1
  52. package/dist/src/wrap-up-form/index.d.ts +1447 -6
  53. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  54. package/dist/src/wrap-up-form/schema.d.ts +207 -2
  55. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  56. package/dist/src/wrap-up-form/validation.d.ts +29 -0
  57. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  58. package/package.json +1 -1
@@ -16,94 +16,628 @@ 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;
19
21
  seemsLikeNew: z.ZodBoolean;
20
22
  from: z.ZodArray<z.ZodObject<{
21
23
  id: z.ZodString;
22
24
  createdAt: z.ZodDate;
23
25
  updatedAt: z.ZodDate;
24
26
  deletedAt: z.ZodNullable<z.ZodDate>;
25
- name: z.ZodString;
26
- address: z.ZodString;
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
+ }>;
27
116
  }, "strip", z.ZodTypeAny, {
28
117
  id: string;
29
- address: string;
30
- name: string;
31
118
  createdAt: Date;
32
119
  updatedAt: Date;
33
120
  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
+ };
34
146
  }, {
35
147
  id: string;
36
- address: string;
37
- name: string;
38
148
  createdAt: Date;
39
149
  updatedAt: Date;
40
150
  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
+ };
41
176
  }>, "many">;
42
177
  to: z.ZodArray<z.ZodObject<{
43
178
  id: z.ZodString;
44
179
  createdAt: z.ZodDate;
45
180
  updatedAt: z.ZodDate;
46
181
  deletedAt: z.ZodNullable<z.ZodDate>;
47
- name: z.ZodString;
48
- address: z.ZodString;
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
+ }>;
49
271
  }, "strip", z.ZodTypeAny, {
50
272
  id: string;
51
- address: string;
52
- name: string;
53
273
  createdAt: Date;
54
274
  updatedAt: Date;
55
275
  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
+ };
56
301
  }, {
57
302
  id: string;
58
- address: string;
59
- name: string;
60
303
  createdAt: Date;
61
304
  updatedAt: Date;
62
305
  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
+ };
63
331
  }>, "many">;
64
332
  cc: z.ZodArray<z.ZodObject<{
65
333
  id: z.ZodString;
66
334
  createdAt: z.ZodDate;
67
335
  updatedAt: z.ZodDate;
68
336
  deletedAt: z.ZodNullable<z.ZodDate>;
69
- name: z.ZodString;
70
- address: z.ZodString;
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
+ }>;
71
426
  }, "strip", z.ZodTypeAny, {
72
427
  id: string;
73
- address: string;
74
- name: string;
75
428
  createdAt: Date;
76
429
  updatedAt: Date;
77
430
  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
+ };
78
456
  }, {
79
457
  id: string;
80
- address: string;
81
- name: string;
82
458
  createdAt: Date;
83
459
  updatedAt: Date;
84
460
  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
+ };
85
486
  }>, "many">;
86
487
  bcc: z.ZodArray<z.ZodObject<{
87
488
  id: z.ZodString;
88
489
  createdAt: z.ZodDate;
89
490
  updatedAt: z.ZodDate;
90
491
  deletedAt: z.ZodNullable<z.ZodDate>;
91
- name: z.ZodString;
92
- address: z.ZodString;
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
+ }>;
93
581
  }, "strip", z.ZodTypeAny, {
94
582
  id: string;
95
- address: string;
96
- name: string;
97
583
  createdAt: Date;
98
584
  updatedAt: Date;
99
585
  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
+ };
100
611
  }, {
101
612
  id: string;
102
- address: string;
103
- name: string;
104
613
  createdAt: Date;
105
614
  updatedAt: Date;
106
615
  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
+ };
107
641
  }>, "many">;
108
642
  attachments: z.ZodArray<z.ZodObject<{
109
643
  id: z.ZodString;
@@ -214,38 +748,132 @@ export declare const MessageSchema: z.ZodObject<{
214
748
  emailEngineMessageId: string;
215
749
  emailEngineReplyTo: string | null;
216
750
  unseen: boolean;
751
+ sendAt: Date;
752
+ starred: boolean;
217
753
  seemsLikeNew: boolean;
218
754
  from: {
219
755
  id: string;
220
- address: string;
221
- name: string;
222
756
  createdAt: Date;
223
757
  updatedAt: Date;
224
758
  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
+ };
225
784
  }[];
226
785
  to: {
227
786
  id: string;
228
- address: string;
229
- name: string;
230
787
  createdAt: Date;
231
788
  updatedAt: Date;
232
789
  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
+ };
233
815
  }[];
234
816
  cc: {
235
817
  id: string;
236
- address: string;
237
- name: string;
238
818
  createdAt: Date;
239
819
  updatedAt: Date;
240
820
  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
+ };
241
846
  }[];
242
847
  bcc: {
243
848
  id: string;
244
- address: string;
245
- name: string;
246
849
  createdAt: Date;
247
850
  updatedAt: Date;
248
851
  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
+ };
249
877
  }[];
250
878
  attachments: {
251
879
  id: string;
@@ -288,38 +916,132 @@ export declare const MessageSchema: z.ZodObject<{
288
916
  emailEngineMessageId: string;
289
917
  emailEngineReplyTo: string | null;
290
918
  unseen: boolean;
919
+ sendAt: Date;
920
+ starred: boolean;
291
921
  seemsLikeNew: boolean;
292
922
  from: {
293
923
  id: string;
294
- address: string;
295
- name: string;
296
924
  createdAt: Date;
297
925
  updatedAt: Date;
298
926
  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
+ };
299
952
  }[];
300
953
  to: {
301
954
  id: string;
302
- address: string;
303
- name: string;
304
955
  createdAt: Date;
305
956
  updatedAt: Date;
306
957
  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
+ };
307
983
  }[];
308
984
  cc: {
309
985
  id: string;
310
- address: string;
311
- name: string;
312
986
  createdAt: Date;
313
987
  updatedAt: Date;
314
988
  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
+ };
315
1014
  }[];
316
1015
  bcc: {
317
1016
  id: string;
318
- address: string;
319
- name: string;
320
1017
  createdAt: Date;
321
1018
  updatedAt: Date;
322
1019
  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
+ };
323
1045
  }[];
324
1046
  attachments: {
325
1047
  id: string;