@kl1/contracts 1.1.4 → 1.1.5-uat

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 (43) hide show
  1. package/dist/index.js +951 -888
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +950 -888
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/chat/index.d.ts +2985 -2123
  6. package/dist/src/chat/index.d.ts.map +1 -1
  7. package/dist/src/chat/schema.d.ts +24 -8
  8. package/dist/src/chat/schema.d.ts.map +1 -1
  9. package/dist/src/chat/validation.d.ts +76 -7
  10. package/dist/src/chat/validation.d.ts.map +1 -1
  11. package/dist/src/contract.d.ts +5473 -3651
  12. package/dist/src/contract.d.ts.map +1 -1
  13. package/dist/src/index.d.ts +1 -0
  14. package/dist/src/index.d.ts.map +1 -1
  15. package/dist/src/instagram/index.d.ts +73 -7
  16. package/dist/src/instagram/index.d.ts.map +1 -1
  17. package/dist/src/line/index.d.ts +73 -7
  18. package/dist/src/line/index.d.ts.map +1 -1
  19. package/dist/src/mail/account-contract.d.ts +360 -137
  20. package/dist/src/mail/account-contract.d.ts.map +1 -1
  21. package/dist/src/mail/index.d.ts +10 -0
  22. package/dist/src/mail/index.d.ts.map +1 -1
  23. package/dist/src/mail/mail-contract.d.ts +1849 -1163
  24. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  25. package/dist/src/mail/mail-server-contract.d.ts +477 -18
  26. package/dist/src/mail/mail-server-contract.d.ts.map +1 -1
  27. package/dist/src/mail/message-contract.d.ts +54 -54
  28. package/dist/src/mail/room-contract.d.ts +960 -954
  29. package/dist/src/mail/room-contract.d.ts.map +1 -1
  30. package/dist/src/mail/schemas/account-validation.schema.d.ts +140 -140
  31. package/dist/src/mail/schemas/account-validation.schema.d.ts.map +1 -1
  32. package/dist/src/mail/schemas/account.schema.d.ts +32 -32
  33. package/dist/src/mail/schemas/message.schema.d.ts +42 -42
  34. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  35. package/dist/src/mail/schemas/room-validation.schema.d.ts +328 -322
  36. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  37. package/dist/src/mail/schemas/room.schema.d.ts +683 -259
  38. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  39. package/dist/src/messenger/index.d.ts +83 -7
  40. package/dist/src/messenger/index.d.ts.map +1 -1
  41. package/dist/src/viber/index.d.ts +73 -7
  42. package/dist/src/viber/index.d.ts.map +1 -1
  43. package/package.json +1 -1
@@ -100,8 +100,71 @@ export declare const accountContract: {
100
100
  'x-client-timezone'?: string | undefined;
101
101
  }>>>;
102
102
  };
103
+ sync: {
104
+ summary: "Sync all accounts state from email engine to system";
105
+ method: "GET";
106
+ responses: {
107
+ 401: z.ZodObject<{
108
+ message: z.ZodString;
109
+ error: z.ZodAny;
110
+ }, "strip", z.ZodTypeAny, {
111
+ message: string;
112
+ error?: any;
113
+ }, {
114
+ message: string;
115
+ error?: any;
116
+ }>;
117
+ 404: z.ZodObject<{
118
+ message: z.ZodString;
119
+ error: z.ZodAny;
120
+ }, "strip", z.ZodTypeAny, {
121
+ message: string;
122
+ error?: any;
123
+ }, {
124
+ message: string;
125
+ error?: any;
126
+ }>;
127
+ 422: z.ZodObject<{
128
+ message: z.ZodString;
129
+ error: z.ZodAny;
130
+ }, "strip", z.ZodTypeAny, {
131
+ message: string;
132
+ error?: any;
133
+ }, {
134
+ message: string;
135
+ error?: any;
136
+ }>;
137
+ 200: z.ZodObject<{
138
+ requestId: z.ZodString;
139
+ message: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ message: string;
142
+ requestId: string;
143
+ }, {
144
+ message: string;
145
+ requestId: string;
146
+ }>;
147
+ };
148
+ path: "mail/account/sync";
149
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
150
+ 'x-tenant': z.ZodString;
151
+ authorization: z.ZodString;
152
+ 'x-code': z.ZodOptional<z.ZodString>;
153
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ 'x-tenant': string;
156
+ authorization: string;
157
+ 'x-client-timezone': string;
158
+ 'x-code'?: string | undefined;
159
+ }, {
160
+ 'x-tenant': string;
161
+ authorization: string;
162
+ 'x-code'?: string | undefined;
163
+ 'x-client-timezone'?: string | undefined;
164
+ }>>>;
165
+ };
103
166
  getById: {
104
- summary: "Get a account by id";
167
+ summary: "Get an account by id";
105
168
  method: "GET";
106
169
  pathParams: z.ZodObject<{
107
170
  id: z.ZodString;
@@ -159,12 +222,12 @@ export declare const accountContract: {
159
222
  deletedAt: z.ZodNullable<z.ZodDate>;
160
223
  name: z.ZodString;
161
224
  smtpHost: z.ZodString;
162
- smtpPort: z.ZodString;
163
- smtpTlsPort: z.ZodString;
225
+ smtpPort: z.ZodNumber;
226
+ smtpTlsPort: z.ZodNumber;
164
227
  useTlsForSmtp: z.ZodBoolean;
165
228
  imapHost: z.ZodString;
166
- imapPort: z.ZodString;
167
- imapTlsPort: z.ZodString;
229
+ imapPort: z.ZodNumber;
230
+ imapTlsPort: z.ZodNumber;
168
231
  useTlsForImap: z.ZodBoolean;
169
232
  }, "strip", z.ZodTypeAny, {
170
233
  id: string;
@@ -173,12 +236,12 @@ export declare const accountContract: {
173
236
  updatedAt: Date;
174
237
  deletedAt: Date | null;
175
238
  smtpHost: string;
176
- smtpPort: string;
177
- smtpTlsPort: string;
239
+ smtpPort: number;
240
+ smtpTlsPort: number;
178
241
  useTlsForSmtp: boolean;
179
242
  imapHost: string;
180
- imapPort: string;
181
- imapTlsPort: string;
243
+ imapPort: number;
244
+ imapTlsPort: number;
182
245
  useTlsForImap: boolean;
183
246
  }, {
184
247
  id: string;
@@ -187,12 +250,12 @@ export declare const accountContract: {
187
250
  updatedAt: Date;
188
251
  deletedAt: Date | null;
189
252
  smtpHost: string;
190
- smtpPort: string;
191
- smtpTlsPort: string;
253
+ smtpPort: number;
254
+ smtpTlsPort: number;
192
255
  useTlsForSmtp: boolean;
193
256
  imapHost: string;
194
- imapPort: string;
195
- imapTlsPort: string;
257
+ imapPort: number;
258
+ imapTlsPort: number;
196
259
  useTlsForImap: boolean;
197
260
  }>;
198
261
  state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
@@ -213,12 +276,12 @@ export declare const accountContract: {
213
276
  updatedAt: Date;
214
277
  deletedAt: Date | null;
215
278
  smtpHost: string;
216
- smtpPort: string;
217
- smtpTlsPort: string;
279
+ smtpPort: number;
280
+ smtpTlsPort: number;
218
281
  useTlsForSmtp: boolean;
219
282
  imapHost: string;
220
- imapPort: string;
221
- imapTlsPort: string;
283
+ imapPort: number;
284
+ imapTlsPort: number;
222
285
  useTlsForImap: boolean;
223
286
  };
224
287
  }, {
@@ -238,12 +301,12 @@ export declare const accountContract: {
238
301
  updatedAt: Date;
239
302
  deletedAt: Date | null;
240
303
  smtpHost: string;
241
- smtpPort: string;
242
- smtpTlsPort: string;
304
+ smtpPort: number;
305
+ smtpTlsPort: number;
243
306
  useTlsForSmtp: boolean;
244
307
  imapHost: string;
245
- imapPort: string;
246
- imapTlsPort: string;
308
+ imapPort: number;
309
+ imapTlsPort: number;
247
310
  useTlsForImap: boolean;
248
311
  };
249
312
  }>;
@@ -265,12 +328,12 @@ export declare const accountContract: {
265
328
  updatedAt: Date;
266
329
  deletedAt: Date | null;
267
330
  smtpHost: string;
268
- smtpPort: string;
269
- smtpTlsPort: string;
331
+ smtpPort: number;
332
+ smtpTlsPort: number;
270
333
  useTlsForSmtp: boolean;
271
334
  imapHost: string;
272
- imapPort: string;
273
- imapTlsPort: string;
335
+ imapPort: number;
336
+ imapTlsPort: number;
274
337
  useTlsForImap: boolean;
275
338
  };
276
339
  };
@@ -293,12 +356,12 @@ export declare const accountContract: {
293
356
  updatedAt: Date;
294
357
  deletedAt: Date | null;
295
358
  smtpHost: string;
296
- smtpPort: string;
297
- smtpTlsPort: string;
359
+ smtpPort: number;
360
+ smtpTlsPort: number;
298
361
  useTlsForSmtp: boolean;
299
362
  imapHost: string;
300
- imapPort: string;
301
- imapTlsPort: string;
363
+ imapPort: number;
364
+ imapTlsPort: number;
302
365
  useTlsForImap: boolean;
303
366
  };
304
367
  };
@@ -324,8 +387,15 @@ export declare const accountContract: {
324
387
  }>>>;
325
388
  };
326
389
  getAll: {
327
- summary: "Get al accounts";
390
+ summary: "Get all accounts";
328
391
  method: "GET";
392
+ query: z.ZodOptional<z.ZodObject<{
393
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">]>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ state?: "connected" | "disconnected" | undefined;
396
+ }, {
397
+ state?: "connected" | "disconnected" | undefined;
398
+ }>>;
329
399
  responses: {
330
400
  401: z.ZodObject<{
331
401
  message: z.ZodString;
@@ -359,13 +429,166 @@ export declare const accountContract: {
359
429
  }>;
360
430
  200: z.ZodObject<{
361
431
  requestId: z.ZodString;
362
- data: z.ZodAny;
432
+ data: z.ZodArray<z.ZodObject<{
433
+ id: z.ZodString;
434
+ createdAt: z.ZodDate;
435
+ updatedAt: z.ZodDate;
436
+ deletedAt: z.ZodNullable<z.ZodDate>;
437
+ name: z.ZodString;
438
+ address: z.ZodString;
439
+ accountId: z.ZodString;
440
+ mailServerId: z.ZodString;
441
+ mailServer: z.ZodObject<{
442
+ id: z.ZodString;
443
+ createdAt: z.ZodDate;
444
+ updatedAt: z.ZodDate;
445
+ deletedAt: z.ZodNullable<z.ZodDate>;
446
+ name: z.ZodString;
447
+ smtpHost: z.ZodString;
448
+ smtpPort: z.ZodNumber;
449
+ smtpTlsPort: z.ZodNumber;
450
+ useTlsForSmtp: z.ZodBoolean;
451
+ imapHost: z.ZodString;
452
+ imapPort: z.ZodNumber;
453
+ imapTlsPort: z.ZodNumber;
454
+ useTlsForImap: z.ZodBoolean;
455
+ }, "strip", z.ZodTypeAny, {
456
+ id: string;
457
+ name: string;
458
+ createdAt: Date;
459
+ updatedAt: Date;
460
+ deletedAt: Date | null;
461
+ smtpHost: string;
462
+ smtpPort: number;
463
+ smtpTlsPort: number;
464
+ useTlsForSmtp: boolean;
465
+ imapHost: string;
466
+ imapPort: number;
467
+ imapTlsPort: number;
468
+ useTlsForImap: boolean;
469
+ }, {
470
+ id: string;
471
+ name: string;
472
+ createdAt: Date;
473
+ updatedAt: Date;
474
+ deletedAt: Date | null;
475
+ smtpHost: string;
476
+ smtpPort: number;
477
+ smtpTlsPort: number;
478
+ useTlsForSmtp: boolean;
479
+ imapHost: string;
480
+ imapPort: number;
481
+ imapTlsPort: number;
482
+ useTlsForImap: boolean;
483
+ }>;
484
+ state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ id: string;
487
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
488
+ address: string;
489
+ name: string;
490
+ createdAt: Date;
491
+ updatedAt: Date;
492
+ deletedAt: Date | null;
493
+ accountId: string;
494
+ mailServerId: string;
495
+ mailServer: {
496
+ id: string;
497
+ name: string;
498
+ createdAt: Date;
499
+ updatedAt: Date;
500
+ deletedAt: Date | null;
501
+ smtpHost: string;
502
+ smtpPort: number;
503
+ smtpTlsPort: number;
504
+ useTlsForSmtp: boolean;
505
+ imapHost: string;
506
+ imapPort: number;
507
+ imapTlsPort: number;
508
+ useTlsForImap: boolean;
509
+ };
510
+ }, {
511
+ id: string;
512
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
513
+ address: string;
514
+ name: string;
515
+ createdAt: Date;
516
+ updatedAt: Date;
517
+ deletedAt: Date | null;
518
+ accountId: string;
519
+ mailServerId: string;
520
+ mailServer: {
521
+ id: string;
522
+ name: string;
523
+ createdAt: Date;
524
+ updatedAt: Date;
525
+ deletedAt: Date | null;
526
+ smtpHost: string;
527
+ smtpPort: number;
528
+ smtpTlsPort: number;
529
+ useTlsForSmtp: boolean;
530
+ imapHost: string;
531
+ imapPort: number;
532
+ imapTlsPort: number;
533
+ useTlsForImap: boolean;
534
+ };
535
+ }>, "many">;
363
536
  }, "strip", z.ZodTypeAny, {
537
+ data: {
538
+ id: string;
539
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
540
+ address: string;
541
+ name: string;
542
+ createdAt: Date;
543
+ updatedAt: Date;
544
+ deletedAt: Date | null;
545
+ accountId: string;
546
+ mailServerId: string;
547
+ mailServer: {
548
+ id: string;
549
+ name: string;
550
+ createdAt: Date;
551
+ updatedAt: Date;
552
+ deletedAt: Date | null;
553
+ smtpHost: string;
554
+ smtpPort: number;
555
+ smtpTlsPort: number;
556
+ useTlsForSmtp: boolean;
557
+ imapHost: string;
558
+ imapPort: number;
559
+ imapTlsPort: number;
560
+ useTlsForImap: boolean;
561
+ };
562
+ }[];
364
563
  requestId: string;
365
- data?: any;
366
564
  }, {
565
+ data: {
566
+ id: string;
567
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
568
+ address: string;
569
+ name: string;
570
+ createdAt: Date;
571
+ updatedAt: Date;
572
+ deletedAt: Date | null;
573
+ accountId: string;
574
+ mailServerId: string;
575
+ mailServer: {
576
+ id: string;
577
+ name: string;
578
+ createdAt: Date;
579
+ updatedAt: Date;
580
+ deletedAt: Date | null;
581
+ smtpHost: string;
582
+ smtpPort: number;
583
+ smtpTlsPort: number;
584
+ useTlsForSmtp: boolean;
585
+ imapHost: string;
586
+ imapPort: number;
587
+ imapTlsPort: number;
588
+ useTlsForImap: boolean;
589
+ };
590
+ }[];
367
591
  requestId: string;
368
- data?: any;
369
592
  }>;
370
593
  };
371
594
  path: "mail/account";
@@ -403,12 +626,12 @@ export declare const accountContract: {
403
626
  deletedAt: z.ZodNullable<z.ZodDate>;
404
627
  name: z.ZodString;
405
628
  smtpHost: z.ZodString;
406
- smtpPort: z.ZodString;
407
- smtpTlsPort: z.ZodString;
629
+ smtpPort: z.ZodNumber;
630
+ smtpTlsPort: z.ZodNumber;
408
631
  useTlsForSmtp: z.ZodBoolean;
409
632
  imapHost: z.ZodString;
410
- imapPort: z.ZodString;
411
- imapTlsPort: z.ZodString;
633
+ imapPort: z.ZodNumber;
634
+ imapTlsPort: z.ZodNumber;
412
635
  useTlsForImap: z.ZodBoolean;
413
636
  }, "strip", z.ZodTypeAny, {
414
637
  id: string;
@@ -417,12 +640,12 @@ export declare const accountContract: {
417
640
  updatedAt: Date;
418
641
  deletedAt: Date | null;
419
642
  smtpHost: string;
420
- smtpPort: string;
421
- smtpTlsPort: string;
643
+ smtpPort: number;
644
+ smtpTlsPort: number;
422
645
  useTlsForSmtp: boolean;
423
646
  imapHost: string;
424
- imapPort: string;
425
- imapTlsPort: string;
647
+ imapPort: number;
648
+ imapTlsPort: number;
426
649
  useTlsForImap: boolean;
427
650
  }, {
428
651
  id: string;
@@ -431,12 +654,12 @@ export declare const accountContract: {
431
654
  updatedAt: Date;
432
655
  deletedAt: Date | null;
433
656
  smtpHost: string;
434
- smtpPort: string;
435
- smtpTlsPort: string;
657
+ smtpPort: number;
658
+ smtpTlsPort: number;
436
659
  useTlsForSmtp: boolean;
437
660
  imapHost: string;
438
- imapPort: string;
439
- imapTlsPort: string;
661
+ imapPort: number;
662
+ imapTlsPort: number;
440
663
  useTlsForImap: boolean;
441
664
  }>>;
442
665
  state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>>;
@@ -456,12 +679,12 @@ export declare const accountContract: {
456
679
  updatedAt: Date;
457
680
  deletedAt: Date | null;
458
681
  smtpHost: string;
459
- smtpPort: string;
460
- smtpTlsPort: string;
682
+ smtpPort: number;
683
+ smtpTlsPort: number;
461
684
  useTlsForSmtp: boolean;
462
685
  imapHost: string;
463
- imapPort: string;
464
- imapTlsPort: string;
686
+ imapPort: number;
687
+ imapTlsPort: number;
465
688
  useTlsForImap: boolean;
466
689
  } | undefined;
467
690
  state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
@@ -481,12 +704,12 @@ export declare const accountContract: {
481
704
  updatedAt: Date;
482
705
  deletedAt: Date | null;
483
706
  smtpHost: string;
484
- smtpPort: string;
485
- smtpTlsPort: string;
707
+ smtpPort: number;
708
+ smtpTlsPort: number;
486
709
  useTlsForSmtp: boolean;
487
710
  imapHost: string;
488
- imapPort: string;
489
- imapTlsPort: string;
711
+ imapPort: number;
712
+ imapTlsPort: number;
490
713
  useTlsForImap: boolean;
491
714
  } | undefined;
492
715
  state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
@@ -549,12 +772,12 @@ export declare const accountContract: {
549
772
  deletedAt: z.ZodNullable<z.ZodDate>;
550
773
  name: z.ZodString;
551
774
  smtpHost: z.ZodString;
552
- smtpPort: z.ZodString;
553
- smtpTlsPort: z.ZodString;
775
+ smtpPort: z.ZodNumber;
776
+ smtpTlsPort: z.ZodNumber;
554
777
  useTlsForSmtp: z.ZodBoolean;
555
778
  imapHost: z.ZodString;
556
- imapPort: z.ZodString;
557
- imapTlsPort: z.ZodString;
779
+ imapPort: z.ZodNumber;
780
+ imapTlsPort: z.ZodNumber;
558
781
  useTlsForImap: z.ZodBoolean;
559
782
  }, "strip", z.ZodTypeAny, {
560
783
  id: string;
@@ -563,12 +786,12 @@ export declare const accountContract: {
563
786
  updatedAt: Date;
564
787
  deletedAt: Date | null;
565
788
  smtpHost: string;
566
- smtpPort: string;
567
- smtpTlsPort: string;
789
+ smtpPort: number;
790
+ smtpTlsPort: number;
568
791
  useTlsForSmtp: boolean;
569
792
  imapHost: string;
570
- imapPort: string;
571
- imapTlsPort: string;
793
+ imapPort: number;
794
+ imapTlsPort: number;
572
795
  useTlsForImap: boolean;
573
796
  }, {
574
797
  id: string;
@@ -577,12 +800,12 @@ export declare const accountContract: {
577
800
  updatedAt: Date;
578
801
  deletedAt: Date | null;
579
802
  smtpHost: string;
580
- smtpPort: string;
581
- smtpTlsPort: string;
803
+ smtpPort: number;
804
+ smtpTlsPort: number;
582
805
  useTlsForSmtp: boolean;
583
806
  imapHost: string;
584
- imapPort: string;
585
- imapTlsPort: string;
807
+ imapPort: number;
808
+ imapTlsPort: number;
586
809
  useTlsForImap: boolean;
587
810
  }>;
588
811
  state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
@@ -603,12 +826,12 @@ export declare const accountContract: {
603
826
  updatedAt: Date;
604
827
  deletedAt: Date | null;
605
828
  smtpHost: string;
606
- smtpPort: string;
607
- smtpTlsPort: string;
829
+ smtpPort: number;
830
+ smtpTlsPort: number;
608
831
  useTlsForSmtp: boolean;
609
832
  imapHost: string;
610
- imapPort: string;
611
- imapTlsPort: string;
833
+ imapPort: number;
834
+ imapTlsPort: number;
612
835
  useTlsForImap: boolean;
613
836
  };
614
837
  }, {
@@ -628,12 +851,12 @@ export declare const accountContract: {
628
851
  updatedAt: Date;
629
852
  deletedAt: Date | null;
630
853
  smtpHost: string;
631
- smtpPort: string;
632
- smtpTlsPort: string;
854
+ smtpPort: number;
855
+ smtpTlsPort: number;
633
856
  useTlsForSmtp: boolean;
634
857
  imapHost: string;
635
- imapPort: string;
636
- imapTlsPort: string;
858
+ imapPort: number;
859
+ imapTlsPort: number;
637
860
  useTlsForImap: boolean;
638
861
  };
639
862
  }>;
@@ -655,12 +878,12 @@ export declare const accountContract: {
655
878
  updatedAt: Date;
656
879
  deletedAt: Date | null;
657
880
  smtpHost: string;
658
- smtpPort: string;
659
- smtpTlsPort: string;
881
+ smtpPort: number;
882
+ smtpTlsPort: number;
660
883
  useTlsForSmtp: boolean;
661
884
  imapHost: string;
662
- imapPort: string;
663
- imapTlsPort: string;
885
+ imapPort: number;
886
+ imapTlsPort: number;
664
887
  useTlsForImap: boolean;
665
888
  };
666
889
  };
@@ -683,12 +906,12 @@ export declare const accountContract: {
683
906
  updatedAt: Date;
684
907
  deletedAt: Date | null;
685
908
  smtpHost: string;
686
- smtpPort: string;
687
- smtpTlsPort: string;
909
+ smtpPort: number;
910
+ smtpTlsPort: number;
688
911
  useTlsForSmtp: boolean;
689
912
  imapHost: string;
690
- imapPort: string;
691
- imapTlsPort: string;
913
+ imapPort: number;
914
+ imapTlsPort: number;
692
915
  useTlsForImap: boolean;
693
916
  };
694
917
  };
@@ -773,12 +996,12 @@ export declare const accountContract: {
773
996
  deletedAt: z.ZodNullable<z.ZodDate>;
774
997
  name: z.ZodString;
775
998
  smtpHost: z.ZodString;
776
- smtpPort: z.ZodString;
777
- smtpTlsPort: z.ZodString;
999
+ smtpPort: z.ZodNumber;
1000
+ smtpTlsPort: z.ZodNumber;
778
1001
  useTlsForSmtp: z.ZodBoolean;
779
1002
  imapHost: z.ZodString;
780
- imapPort: z.ZodString;
781
- imapTlsPort: z.ZodString;
1003
+ imapPort: z.ZodNumber;
1004
+ imapTlsPort: z.ZodNumber;
782
1005
  useTlsForImap: z.ZodBoolean;
783
1006
  }, "strip", z.ZodTypeAny, {
784
1007
  id: string;
@@ -787,12 +1010,12 @@ export declare const accountContract: {
787
1010
  updatedAt: Date;
788
1011
  deletedAt: Date | null;
789
1012
  smtpHost: string;
790
- smtpPort: string;
791
- smtpTlsPort: string;
1013
+ smtpPort: number;
1014
+ smtpTlsPort: number;
792
1015
  useTlsForSmtp: boolean;
793
1016
  imapHost: string;
794
- imapPort: string;
795
- imapTlsPort: string;
1017
+ imapPort: number;
1018
+ imapTlsPort: number;
796
1019
  useTlsForImap: boolean;
797
1020
  }, {
798
1021
  id: string;
@@ -801,12 +1024,12 @@ export declare const accountContract: {
801
1024
  updatedAt: Date;
802
1025
  deletedAt: Date | null;
803
1026
  smtpHost: string;
804
- smtpPort: string;
805
- smtpTlsPort: string;
1027
+ smtpPort: number;
1028
+ smtpTlsPort: number;
806
1029
  useTlsForSmtp: boolean;
807
1030
  imapHost: string;
808
- imapPort: string;
809
- imapTlsPort: string;
1031
+ imapPort: number;
1032
+ imapTlsPort: number;
810
1033
  useTlsForImap: boolean;
811
1034
  }>;
812
1035
  state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
@@ -827,12 +1050,12 @@ export declare const accountContract: {
827
1050
  updatedAt: Date;
828
1051
  deletedAt: Date | null;
829
1052
  smtpHost: string;
830
- smtpPort: string;
831
- smtpTlsPort: string;
1053
+ smtpPort: number;
1054
+ smtpTlsPort: number;
832
1055
  useTlsForSmtp: boolean;
833
1056
  imapHost: string;
834
- imapPort: string;
835
- imapTlsPort: string;
1057
+ imapPort: number;
1058
+ imapTlsPort: number;
836
1059
  useTlsForImap: boolean;
837
1060
  };
838
1061
  }, {
@@ -852,12 +1075,12 @@ export declare const accountContract: {
852
1075
  updatedAt: Date;
853
1076
  deletedAt: Date | null;
854
1077
  smtpHost: string;
855
- smtpPort: string;
856
- smtpTlsPort: string;
1078
+ smtpPort: number;
1079
+ smtpTlsPort: number;
857
1080
  useTlsForSmtp: boolean;
858
1081
  imapHost: string;
859
- imapPort: string;
860
- imapTlsPort: string;
1082
+ imapPort: number;
1083
+ imapTlsPort: number;
861
1084
  useTlsForImap: boolean;
862
1085
  };
863
1086
  }>;
@@ -879,12 +1102,12 @@ export declare const accountContract: {
879
1102
  updatedAt: Date;
880
1103
  deletedAt: Date | null;
881
1104
  smtpHost: string;
882
- smtpPort: string;
883
- smtpTlsPort: string;
1105
+ smtpPort: number;
1106
+ smtpTlsPort: number;
884
1107
  useTlsForSmtp: boolean;
885
1108
  imapHost: string;
886
- imapPort: string;
887
- imapTlsPort: string;
1109
+ imapPort: number;
1110
+ imapTlsPort: number;
888
1111
  useTlsForImap: boolean;
889
1112
  };
890
1113
  };
@@ -907,12 +1130,12 @@ export declare const accountContract: {
907
1130
  updatedAt: Date;
908
1131
  deletedAt: Date | null;
909
1132
  smtpHost: string;
910
- smtpPort: string;
911
- smtpTlsPort: string;
1133
+ smtpPort: number;
1134
+ smtpTlsPort: number;
912
1135
  useTlsForSmtp: boolean;
913
1136
  imapHost: string;
914
- imapPort: string;
915
- imapTlsPort: string;
1137
+ imapPort: number;
1138
+ imapTlsPort: number;
916
1139
  useTlsForImap: boolean;
917
1140
  };
918
1141
  };
@@ -997,12 +1220,12 @@ export declare const accountContract: {
997
1220
  deletedAt: z.ZodNullable<z.ZodDate>;
998
1221
  name: z.ZodString;
999
1222
  smtpHost: z.ZodString;
1000
- smtpPort: z.ZodString;
1001
- smtpTlsPort: z.ZodString;
1223
+ smtpPort: z.ZodNumber;
1224
+ smtpTlsPort: z.ZodNumber;
1002
1225
  useTlsForSmtp: z.ZodBoolean;
1003
1226
  imapHost: z.ZodString;
1004
- imapPort: z.ZodString;
1005
- imapTlsPort: z.ZodString;
1227
+ imapPort: z.ZodNumber;
1228
+ imapTlsPort: z.ZodNumber;
1006
1229
  useTlsForImap: z.ZodBoolean;
1007
1230
  }, "strip", z.ZodTypeAny, {
1008
1231
  id: string;
@@ -1011,12 +1234,12 @@ export declare const accountContract: {
1011
1234
  updatedAt: Date;
1012
1235
  deletedAt: Date | null;
1013
1236
  smtpHost: string;
1014
- smtpPort: string;
1015
- smtpTlsPort: string;
1237
+ smtpPort: number;
1238
+ smtpTlsPort: number;
1016
1239
  useTlsForSmtp: boolean;
1017
1240
  imapHost: string;
1018
- imapPort: string;
1019
- imapTlsPort: string;
1241
+ imapPort: number;
1242
+ imapTlsPort: number;
1020
1243
  useTlsForImap: boolean;
1021
1244
  }, {
1022
1245
  id: string;
@@ -1025,12 +1248,12 @@ export declare const accountContract: {
1025
1248
  updatedAt: Date;
1026
1249
  deletedAt: Date | null;
1027
1250
  smtpHost: string;
1028
- smtpPort: string;
1029
- smtpTlsPort: string;
1251
+ smtpPort: number;
1252
+ smtpTlsPort: number;
1030
1253
  useTlsForSmtp: boolean;
1031
1254
  imapHost: string;
1032
- imapPort: string;
1033
- imapTlsPort: string;
1255
+ imapPort: number;
1256
+ imapTlsPort: number;
1034
1257
  useTlsForImap: boolean;
1035
1258
  }>;
1036
1259
  state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
@@ -1051,12 +1274,12 @@ export declare const accountContract: {
1051
1274
  updatedAt: Date;
1052
1275
  deletedAt: Date | null;
1053
1276
  smtpHost: string;
1054
- smtpPort: string;
1055
- smtpTlsPort: string;
1277
+ smtpPort: number;
1278
+ smtpTlsPort: number;
1056
1279
  useTlsForSmtp: boolean;
1057
1280
  imapHost: string;
1058
- imapPort: string;
1059
- imapTlsPort: string;
1281
+ imapPort: number;
1282
+ imapTlsPort: number;
1060
1283
  useTlsForImap: boolean;
1061
1284
  };
1062
1285
  }, {
@@ -1076,12 +1299,12 @@ export declare const accountContract: {
1076
1299
  updatedAt: Date;
1077
1300
  deletedAt: Date | null;
1078
1301
  smtpHost: string;
1079
- smtpPort: string;
1080
- smtpTlsPort: string;
1302
+ smtpPort: number;
1303
+ smtpTlsPort: number;
1081
1304
  useTlsForSmtp: boolean;
1082
1305
  imapHost: string;
1083
- imapPort: string;
1084
- imapTlsPort: string;
1306
+ imapPort: number;
1307
+ imapTlsPort: number;
1085
1308
  useTlsForImap: boolean;
1086
1309
  };
1087
1310
  }>;
@@ -1103,12 +1326,12 @@ export declare const accountContract: {
1103
1326
  updatedAt: Date;
1104
1327
  deletedAt: Date | null;
1105
1328
  smtpHost: string;
1106
- smtpPort: string;
1107
- smtpTlsPort: string;
1329
+ smtpPort: number;
1330
+ smtpTlsPort: number;
1108
1331
  useTlsForSmtp: boolean;
1109
1332
  imapHost: string;
1110
- imapPort: string;
1111
- imapTlsPort: string;
1333
+ imapPort: number;
1334
+ imapTlsPort: number;
1112
1335
  useTlsForImap: boolean;
1113
1336
  };
1114
1337
  };
@@ -1131,12 +1354,12 @@ export declare const accountContract: {
1131
1354
  updatedAt: Date;
1132
1355
  deletedAt: Date | null;
1133
1356
  smtpHost: string;
1134
- smtpPort: string;
1135
- smtpTlsPort: string;
1357
+ smtpPort: number;
1358
+ smtpTlsPort: number;
1136
1359
  useTlsForSmtp: boolean;
1137
1360
  imapHost: string;
1138
- imapPort: string;
1139
- imapTlsPort: string;
1361
+ imapPort: number;
1362
+ imapTlsPort: number;
1140
1363
  useTlsForImap: boolean;
1141
1364
  };
1142
1365
  };