@kl1/contracts 1.1.21 → 1.1.22-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 (32) hide show
  1. package/dist/index.js +435 -195
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +434 -195
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/contract.d.ts +4841 -2215
  6. package/dist/src/contract.d.ts.map +1 -1
  7. package/dist/src/cx-log/index.d.ts +10 -0
  8. package/dist/src/cx-log/index.d.ts.map +1 -1
  9. package/dist/src/cx-log/schema.d.ts +6 -0
  10. package/dist/src/cx-log/schema.d.ts.map +1 -1
  11. package/dist/src/index.d.ts +1 -0
  12. package/dist/src/index.d.ts.map +1 -1
  13. package/dist/src/line/schema.d.ts.map +1 -1
  14. package/dist/src/line/validation.d.ts.map +1 -1
  15. package/dist/src/mail/account-contract.d.ts +71 -1
  16. package/dist/src/mail/account-contract.d.ts.map +1 -1
  17. package/dist/src/mail/mail-contract.d.ts +1969 -528
  18. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  19. package/dist/src/mail/message-contract.d.ts +58 -1
  20. package/dist/src/mail/message-contract.d.ts.map +1 -1
  21. package/dist/src/mail/room-contract.d.ts +1767 -453
  22. package/dist/src/mail/room-contract.d.ts.map +1 -1
  23. package/dist/src/mail/schemas/room-validation.schema.d.ts +316 -6
  24. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  25. package/dist/src/mail/schemas/room.schema.d.ts +212 -0
  26. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  27. package/dist/src/snippet/index.d.ts +545 -97
  28. package/dist/src/snippet/index.d.ts.map +1 -1
  29. package/dist/src/snippet/schema.d.ts +220 -19
  30. package/dist/src/snippet/schema.d.ts.map +1 -1
  31. package/dist/src/snippet/validation.d.ts +5 -5
  32. package/package.json +1 -1
@@ -54,19 +54,49 @@ export declare const roomContract: {
54
54
  query: z.ZodObject<{
55
55
  page: z.ZodDefault<z.ZodNumber>;
56
56
  pageSize: z.ZodDefault<z.ZodNumber>;
57
- keyword: z.ZodOptional<z.ZodString>;
57
+ keyword: z.ZodOptional<z.ZodObject<{
58
+ value: z.ZodString;
59
+ category: z.ZodUnion<[z.ZodLiteral<"contact">, z.ZodLiteral<"message">]>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ value: string;
62
+ category: "message" | "contact";
63
+ }, {
64
+ value: string;
65
+ category: "message" | "contact";
66
+ }>>;
67
+ contactLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68
+ channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
+ date: z.ZodOptional<z.ZodString>;
70
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
72
  level1: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"close">, z.ZodLiteral<"inbox">, z.ZodLiteral<"sent">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"starred">]>>;
59
73
  level2: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"unassign">, z.ZodLiteral<"mine">, z.ZodLiteral<"other">]>>;
60
74
  }, "strip", z.ZodTypeAny, {
61
75
  page: number;
62
76
  pageSize: number;
63
- keyword?: string | undefined;
77
+ keyword?: {
78
+ value: string;
79
+ category: "message" | "contact";
80
+ } | undefined;
81
+ contactLabels?: string[] | undefined;
82
+ channels?: string[] | undefined;
83
+ date?: string | undefined;
84
+ contacts?: string[] | undefined;
85
+ assignees?: string[] | undefined;
64
86
  level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
65
87
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
66
88
  }, {
67
89
  page?: number | undefined;
68
90
  pageSize?: number | undefined;
69
- keyword?: string | undefined;
91
+ keyword?: {
92
+ value: string;
93
+ category: "message" | "contact";
94
+ } | undefined;
95
+ contactLabels?: string[] | undefined;
96
+ channels?: string[] | undefined;
97
+ date?: string | undefined;
98
+ contacts?: string[] | undefined;
99
+ assignees?: string[] | undefined;
70
100
  level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
71
101
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
72
102
  }>;
@@ -1827,6 +1857,150 @@ export declare const roomContract: {
1827
1857
  };
1828
1858
  }>;
1829
1859
  unReadMessageCount: z.ZodNumber;
1860
+ cxlog: z.ZodObject<{
1861
+ id: z.ZodString;
1862
+ createdAt: z.ZodDate;
1863
+ updatedAt: z.ZodDate;
1864
+ deletedAt: z.ZodNullable<z.ZodDate>;
1865
+ caseId: z.ZodNumber;
1866
+ entityId: z.ZodString;
1867
+ entityName: z.ZodString;
1868
+ contactId: z.ZodNullable<z.ZodString>;
1869
+ channel: z.ZodNullable<z.ZodString>;
1870
+ queueId: z.ZodNullable<z.ZodString>;
1871
+ agentId: z.ZodNullable<z.ZodString>;
1872
+ direction: z.ZodNullable<z.ZodString>;
1873
+ startedDate: z.ZodNullable<z.ZodDate>;
1874
+ handledTime: z.ZodNullable<z.ZodNumber>;
1875
+ firstResponseTime: z.ZodNullable<z.ZodNumber>;
1876
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
1877
+ id: z.ZodString;
1878
+ createdAt: z.ZodDate;
1879
+ updatedAt: z.ZodDate;
1880
+ deletedAt: z.ZodNullable<z.ZodDate>;
1881
+ note: z.ZodNullable<z.ZodString>;
1882
+ disposition: z.ZodNullable<z.ZodString>;
1883
+ callFrom: z.ZodNullable<z.ZodString>;
1884
+ callTo: z.ZodNullable<z.ZodString>;
1885
+ tags: z.ZodArray<z.ZodObject<{
1886
+ id: z.ZodString;
1887
+ createdAt: z.ZodDate;
1888
+ updatedAt: z.ZodDate;
1889
+ deletedAt: z.ZodNullable<z.ZodDate>;
1890
+ name: z.ZodString;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ id: string;
1893
+ name: string;
1894
+ createdAt: Date;
1895
+ updatedAt: Date;
1896
+ deletedAt: Date | null;
1897
+ }, {
1898
+ id: string;
1899
+ name: string;
1900
+ createdAt: Date;
1901
+ updatedAt: Date;
1902
+ deletedAt: Date | null;
1903
+ }>, "many">;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ id: string;
1906
+ disposition: string | null;
1907
+ createdAt: Date;
1908
+ updatedAt: Date;
1909
+ deletedAt: Date | null;
1910
+ tags: {
1911
+ id: string;
1912
+ name: string;
1913
+ createdAt: Date;
1914
+ updatedAt: Date;
1915
+ deletedAt: Date | null;
1916
+ }[];
1917
+ callFrom: string | null;
1918
+ callTo: string | null;
1919
+ note: string | null;
1920
+ }, {
1921
+ id: string;
1922
+ disposition: string | null;
1923
+ createdAt: Date;
1924
+ updatedAt: Date;
1925
+ deletedAt: Date | null;
1926
+ tags: {
1927
+ id: string;
1928
+ name: string;
1929
+ createdAt: Date;
1930
+ updatedAt: Date;
1931
+ deletedAt: Date | null;
1932
+ }[];
1933
+ callFrom: string | null;
1934
+ callTo: string | null;
1935
+ note: string | null;
1936
+ }>>;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ id: string;
1939
+ channel: string | null;
1940
+ direction: string | null;
1941
+ createdAt: Date;
1942
+ updatedAt: Date;
1943
+ deletedAt: Date | null;
1944
+ entityId: string;
1945
+ queueId: string | null;
1946
+ contactId: string | null;
1947
+ caseId: number;
1948
+ entityName: string;
1949
+ agentId: string | null;
1950
+ startedDate: Date | null;
1951
+ handledTime: number | null;
1952
+ firstResponseTime: number | null;
1953
+ wrapUpForm: {
1954
+ id: string;
1955
+ disposition: string | null;
1956
+ createdAt: Date;
1957
+ updatedAt: Date;
1958
+ deletedAt: Date | null;
1959
+ tags: {
1960
+ id: string;
1961
+ name: string;
1962
+ createdAt: Date;
1963
+ updatedAt: Date;
1964
+ deletedAt: Date | null;
1965
+ }[];
1966
+ callFrom: string | null;
1967
+ callTo: string | null;
1968
+ note: string | null;
1969
+ } | null;
1970
+ }, {
1971
+ id: string;
1972
+ channel: string | null;
1973
+ direction: string | null;
1974
+ createdAt: Date;
1975
+ updatedAt: Date;
1976
+ deletedAt: Date | null;
1977
+ entityId: string;
1978
+ queueId: string | null;
1979
+ contactId: string | null;
1980
+ caseId: number;
1981
+ entityName: string;
1982
+ agentId: string | null;
1983
+ startedDate: Date | null;
1984
+ handledTime: number | null;
1985
+ firstResponseTime: number | null;
1986
+ wrapUpForm: {
1987
+ id: string;
1988
+ disposition: string | null;
1989
+ createdAt: Date;
1990
+ updatedAt: Date;
1991
+ deletedAt: Date | null;
1992
+ tags: {
1993
+ id: string;
1994
+ name: string;
1995
+ createdAt: Date;
1996
+ updatedAt: Date;
1997
+ deletedAt: Date | null;
1998
+ }[];
1999
+ callFrom: string | null;
2000
+ callTo: string | null;
2001
+ note: string | null;
2002
+ } | null;
2003
+ }>;
1830
2004
  }, "strip", z.ZodTypeAny, {
1831
2005
  id: string;
1832
2006
  direction: string;
@@ -1929,6 +2103,40 @@ export declare const roomContract: {
1929
2103
  notificationCount: number | null;
1930
2104
  };
1931
2105
  resolved: boolean;
2106
+ cxlog: {
2107
+ id: string;
2108
+ channel: string | null;
2109
+ direction: string | null;
2110
+ createdAt: Date;
2111
+ updatedAt: Date;
2112
+ deletedAt: Date | null;
2113
+ entityId: string;
2114
+ queueId: string | null;
2115
+ contactId: string | null;
2116
+ caseId: number;
2117
+ entityName: string;
2118
+ agentId: string | null;
2119
+ startedDate: Date | null;
2120
+ handledTime: number | null;
2121
+ firstResponseTime: number | null;
2122
+ wrapUpForm: {
2123
+ id: string;
2124
+ disposition: string | null;
2125
+ createdAt: Date;
2126
+ updatedAt: Date;
2127
+ deletedAt: Date | null;
2128
+ tags: {
2129
+ id: string;
2130
+ name: string;
2131
+ createdAt: Date;
2132
+ updatedAt: Date;
2133
+ deletedAt: Date | null;
2134
+ }[];
2135
+ callFrom: string | null;
2136
+ callTo: string | null;
2137
+ note: string | null;
2138
+ } | null;
2139
+ };
1932
2140
  assigneeId: string | null;
1933
2141
  subject: string;
1934
2142
  from: {
@@ -2339,6 +2547,40 @@ export declare const roomContract: {
2339
2547
  notificationCount: number | null;
2340
2548
  };
2341
2549
  resolved: boolean;
2550
+ cxlog: {
2551
+ id: string;
2552
+ channel: string | null;
2553
+ direction: string | null;
2554
+ createdAt: Date;
2555
+ updatedAt: Date;
2556
+ deletedAt: Date | null;
2557
+ entityId: string;
2558
+ queueId: string | null;
2559
+ contactId: string | null;
2560
+ caseId: number;
2561
+ entityName: string;
2562
+ agentId: string | null;
2563
+ startedDate: Date | null;
2564
+ handledTime: number | null;
2565
+ firstResponseTime: number | null;
2566
+ wrapUpForm: {
2567
+ id: string;
2568
+ disposition: string | null;
2569
+ createdAt: Date;
2570
+ updatedAt: Date;
2571
+ deletedAt: Date | null;
2572
+ tags: {
2573
+ id: string;
2574
+ name: string;
2575
+ createdAt: Date;
2576
+ updatedAt: Date;
2577
+ deletedAt: Date | null;
2578
+ }[];
2579
+ callFrom: string | null;
2580
+ callTo: string | null;
2581
+ note: string | null;
2582
+ } | null;
2583
+ };
2342
2584
  assigneeId: string | null;
2343
2585
  subject: string;
2344
2586
  from: {
@@ -2754,6 +2996,40 @@ export declare const roomContract: {
2754
2996
  notificationCount: number | null;
2755
2997
  };
2756
2998
  resolved: boolean;
2999
+ cxlog: {
3000
+ id: string;
3001
+ channel: string | null;
3002
+ direction: string | null;
3003
+ createdAt: Date;
3004
+ updatedAt: Date;
3005
+ deletedAt: Date | null;
3006
+ entityId: string;
3007
+ queueId: string | null;
3008
+ contactId: string | null;
3009
+ caseId: number;
3010
+ entityName: string;
3011
+ agentId: string | null;
3012
+ startedDate: Date | null;
3013
+ handledTime: number | null;
3014
+ firstResponseTime: number | null;
3015
+ wrapUpForm: {
3016
+ id: string;
3017
+ disposition: string | null;
3018
+ createdAt: Date;
3019
+ updatedAt: Date;
3020
+ deletedAt: Date | null;
3021
+ tags: {
3022
+ id: string;
3023
+ name: string;
3024
+ createdAt: Date;
3025
+ updatedAt: Date;
3026
+ deletedAt: Date | null;
3027
+ }[];
3028
+ callFrom: string | null;
3029
+ callTo: string | null;
3030
+ note: string | null;
3031
+ } | null;
3032
+ };
2757
3033
  assigneeId: string | null;
2758
3034
  subject: string;
2759
3035
  from: {
@@ -3170,6 +3446,40 @@ export declare const roomContract: {
3170
3446
  notificationCount: number | null;
3171
3447
  };
3172
3448
  resolved: boolean;
3449
+ cxlog: {
3450
+ id: string;
3451
+ channel: string | null;
3452
+ direction: string | null;
3453
+ createdAt: Date;
3454
+ updatedAt: Date;
3455
+ deletedAt: Date | null;
3456
+ entityId: string;
3457
+ queueId: string | null;
3458
+ contactId: string | null;
3459
+ caseId: number;
3460
+ entityName: string;
3461
+ agentId: string | null;
3462
+ startedDate: Date | null;
3463
+ handledTime: number | null;
3464
+ firstResponseTime: number | null;
3465
+ wrapUpForm: {
3466
+ id: string;
3467
+ disposition: string | null;
3468
+ createdAt: Date;
3469
+ updatedAt: Date;
3470
+ deletedAt: Date | null;
3471
+ tags: {
3472
+ id: string;
3473
+ name: string;
3474
+ createdAt: Date;
3475
+ updatedAt: Date;
3476
+ deletedAt: Date | null;
3477
+ }[];
3478
+ callFrom: string | null;
3479
+ callTo: string | null;
3480
+ note: string | null;
3481
+ } | null;
3482
+ };
3173
3483
  assigneeId: string | null;
3174
3484
  subject: string;
3175
3485
  from: {
@@ -3487,16 +3797,9 @@ export declare const roomContract: {
3487
3797
  };
3488
3798
  path: "mail/room";
3489
3799
  };
3490
- getById: {
3491
- summary: "Get a mail room by id";
3800
+ getRoomCounts: {
3801
+ summary: "Get unread message counts for filter like \"open\", \"close\", \"inbox\" and etc...";
3492
3802
  method: "GET";
3493
- pathParams: z.ZodObject<{
3494
- id: z.ZodString;
3495
- }, "strip", z.ZodTypeAny, {
3496
- id: string;
3497
- }, {
3498
- id: string;
3499
- }>;
3500
3803
  responses: {
3501
3804
  401: z.ZodObject<{
3502
3805
  message: z.ZodString;
@@ -3531,144 +3834,877 @@ export declare const roomContract: {
3531
3834
  200: z.ZodObject<{
3532
3835
  requestId: z.ZodString;
3533
3836
  data: z.ZodObject<{
3534
- id: z.ZodString;
3535
- createdAt: z.ZodDate;
3536
- updatedAt: z.ZodDate;
3537
- deletedAt: z.ZodNullable<z.ZodDate>;
3538
- subject: z.ZodString;
3539
- resolved: z.ZodBoolean;
3540
- assigneeId: z.ZodNullable<z.ZodString>;
3541
- note: z.ZodString;
3542
- mailId: z.ZodString;
3543
- direction: z.ZodString;
3544
- lastMessageId: z.ZodString;
3545
- firstMessageId: z.ZodString;
3546
- from: z.ZodArray<z.ZodObject<{
3547
- id: z.ZodString;
3548
- createdAt: z.ZodDate;
3549
- updatedAt: z.ZodDate;
3550
- deletedAt: z.ZodNullable<z.ZodDate>;
3551
- name: z.ZodString;
3552
- address: z.ZodString;
3553
- }, "strip", z.ZodTypeAny, {
3554
- id: string;
3555
- address: string;
3556
- name: string;
3557
- createdAt: Date;
3558
- updatedAt: Date;
3559
- deletedAt: Date | null;
3560
- }, {
3561
- id: string;
3562
- address: string;
3563
- name: string;
3564
- createdAt: Date;
3565
- updatedAt: Date;
3566
- deletedAt: Date | null;
3567
- }>, "many">;
3568
- to: z.ZodArray<z.ZodObject<{
3569
- id: z.ZodString;
3570
- createdAt: z.ZodDate;
3571
- updatedAt: z.ZodDate;
3572
- deletedAt: z.ZodNullable<z.ZodDate>;
3573
- name: z.ZodString;
3574
- address: z.ZodString;
3575
- }, "strip", z.ZodTypeAny, {
3576
- id: string;
3577
- address: string;
3578
- name: string;
3579
- createdAt: Date;
3580
- updatedAt: Date;
3581
- deletedAt: Date | null;
3582
- }, {
3583
- id: string;
3584
- address: string;
3585
- name: string;
3586
- createdAt: Date;
3587
- updatedAt: Date;
3588
- deletedAt: Date | null;
3589
- }>, "many">;
3590
- cc: z.ZodArray<z.ZodObject<{
3591
- id: z.ZodString;
3592
- createdAt: z.ZodDate;
3593
- updatedAt: z.ZodDate;
3594
- deletedAt: z.ZodNullable<z.ZodDate>;
3595
- name: z.ZodString;
3596
- address: z.ZodString;
3597
- }, "strip", z.ZodTypeAny, {
3598
- id: string;
3599
- address: string;
3600
- name: string;
3601
- createdAt: Date;
3602
- updatedAt: Date;
3603
- deletedAt: Date | null;
3604
- }, {
3605
- id: string;
3606
- address: string;
3607
- name: string;
3608
- createdAt: Date;
3609
- updatedAt: Date;
3610
- deletedAt: Date | null;
3611
- }>, "many">;
3612
- bcc: z.ZodArray<z.ZodObject<{
3613
- id: z.ZodString;
3614
- createdAt: z.ZodDate;
3615
- updatedAt: z.ZodDate;
3616
- deletedAt: z.ZodNullable<z.ZodDate>;
3837
+ general: z.ZodArray<z.ZodObject<{
3617
3838
  name: z.ZodString;
3618
- address: z.ZodString;
3839
+ count: z.ZodNumber;
3840
+ unReadMessagesCount: z.ZodNumber;
3619
3841
  }, "strip", z.ZodTypeAny, {
3620
- id: string;
3621
- address: string;
3622
3842
  name: string;
3623
- createdAt: Date;
3624
- updatedAt: Date;
3625
- deletedAt: Date | null;
3843
+ count: number;
3844
+ unReadMessagesCount: number;
3626
3845
  }, {
3627
- id: string;
3628
- address: string;
3629
3846
  name: string;
3630
- createdAt: Date;
3631
- updatedAt: Date;
3632
- deletedAt: Date | null;
3847
+ count: number;
3848
+ unReadMessagesCount: number;
3633
3849
  }>, "many">;
3634
- firstMessage: z.ZodObject<{
3635
- id: z.ZodString;
3636
- createdAt: z.ZodDate;
3637
- updatedAt: z.ZodDate;
3638
- deletedAt: z.ZodNullable<z.ZodDate>;
3639
- roomId: z.ZodString;
3640
- subject: z.ZodString;
3641
- textPlain: z.ZodString;
3642
- textHtml: z.ZodString;
3643
- textId: z.ZodString;
3644
- emailEngineEmailId: z.ZodString;
3645
- emailEngineMessageId: z.ZodString;
3646
- emailEngineReplyTo: z.ZodNullable<z.ZodString>;
3647
- direction: z.ZodString;
3648
- date: z.ZodDate;
3649
- action: z.ZodString;
3650
- unseen: z.ZodBoolean;
3651
- seemsLikeNew: z.ZodBoolean;
3652
- from: z.ZodArray<z.ZodObject<{
3850
+ channels: z.ZodArray<z.ZodObject<{
3851
+ channel: z.ZodObject<{
3653
3852
  id: z.ZodString;
3654
3853
  createdAt: z.ZodDate;
3655
3854
  updatedAt: z.ZodDate;
3656
3855
  deletedAt: z.ZodNullable<z.ZodDate>;
3657
3856
  name: z.ZodString;
3658
3857
  address: z.ZodString;
3659
- }, "strip", z.ZodTypeAny, {
3660
- id: string;
3661
- address: string;
3662
- name: string;
3663
- createdAt: Date;
3664
- updatedAt: Date;
3665
- deletedAt: Date | null;
3666
- }, {
3667
- id: string;
3668
- address: string;
3669
- name: string;
3670
- createdAt: Date;
3671
- updatedAt: Date;
3858
+ accountId: z.ZodString;
3859
+ mailServerId: z.ZodString;
3860
+ mailServer: z.ZodObject<{
3861
+ id: z.ZodString;
3862
+ createdAt: z.ZodDate;
3863
+ updatedAt: z.ZodDate;
3864
+ deletedAt: z.ZodNullable<z.ZodDate>;
3865
+ name: z.ZodString;
3866
+ smtpHost: z.ZodString;
3867
+ smtpPort: z.ZodNumber;
3868
+ smtpTlsPort: z.ZodNumber;
3869
+ useTlsForSmtp: z.ZodBoolean;
3870
+ imapHost: z.ZodString;
3871
+ imapPort: z.ZodNumber;
3872
+ imapTlsPort: z.ZodNumber;
3873
+ useTlsForImap: z.ZodBoolean;
3874
+ }, "strip", z.ZodTypeAny, {
3875
+ id: string;
3876
+ name: string;
3877
+ createdAt: Date;
3878
+ updatedAt: Date;
3879
+ deletedAt: Date | null;
3880
+ smtpHost: string;
3881
+ smtpPort: number;
3882
+ smtpTlsPort: number;
3883
+ useTlsForSmtp: boolean;
3884
+ imapHost: string;
3885
+ imapPort: number;
3886
+ imapTlsPort: number;
3887
+ useTlsForImap: boolean;
3888
+ }, {
3889
+ id: string;
3890
+ name: string;
3891
+ createdAt: Date;
3892
+ updatedAt: Date;
3893
+ deletedAt: Date | null;
3894
+ smtpHost: string;
3895
+ smtpPort: number;
3896
+ smtpTlsPort: number;
3897
+ useTlsForSmtp: boolean;
3898
+ imapHost: string;
3899
+ imapPort: number;
3900
+ imapTlsPort: number;
3901
+ useTlsForImap: boolean;
3902
+ }>;
3903
+ 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">]>;
3904
+ }, "strip", z.ZodTypeAny, {
3905
+ id: string;
3906
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
3907
+ address: string;
3908
+ name: string;
3909
+ createdAt: Date;
3910
+ updatedAt: Date;
3911
+ deletedAt: Date | null;
3912
+ accountId: string;
3913
+ mailServerId: string;
3914
+ mailServer: {
3915
+ id: string;
3916
+ name: string;
3917
+ createdAt: Date;
3918
+ updatedAt: Date;
3919
+ deletedAt: Date | null;
3920
+ smtpHost: string;
3921
+ smtpPort: number;
3922
+ smtpTlsPort: number;
3923
+ useTlsForSmtp: boolean;
3924
+ imapHost: string;
3925
+ imapPort: number;
3926
+ imapTlsPort: number;
3927
+ useTlsForImap: boolean;
3928
+ };
3929
+ }, {
3930
+ id: string;
3931
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
3932
+ address: string;
3933
+ name: string;
3934
+ createdAt: Date;
3935
+ updatedAt: Date;
3936
+ deletedAt: Date | null;
3937
+ accountId: string;
3938
+ mailServerId: string;
3939
+ mailServer: {
3940
+ id: string;
3941
+ name: string;
3942
+ createdAt: Date;
3943
+ updatedAt: Date;
3944
+ deletedAt: Date | null;
3945
+ smtpHost: string;
3946
+ smtpPort: number;
3947
+ smtpTlsPort: number;
3948
+ useTlsForSmtp: boolean;
3949
+ imapHost: string;
3950
+ imapPort: number;
3951
+ imapTlsPort: number;
3952
+ useTlsForImap: boolean;
3953
+ };
3954
+ }>;
3955
+ count: z.ZodNumber;
3956
+ }, "strip", z.ZodTypeAny, {
3957
+ channel: {
3958
+ id: string;
3959
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
3960
+ address: string;
3961
+ name: string;
3962
+ createdAt: Date;
3963
+ updatedAt: Date;
3964
+ deletedAt: Date | null;
3965
+ accountId: string;
3966
+ mailServerId: string;
3967
+ mailServer: {
3968
+ id: string;
3969
+ name: string;
3970
+ createdAt: Date;
3971
+ updatedAt: Date;
3972
+ deletedAt: Date | null;
3973
+ smtpHost: string;
3974
+ smtpPort: number;
3975
+ smtpTlsPort: number;
3976
+ useTlsForSmtp: boolean;
3977
+ imapHost: string;
3978
+ imapPort: number;
3979
+ imapTlsPort: number;
3980
+ useTlsForImap: boolean;
3981
+ };
3982
+ };
3983
+ count: number;
3984
+ }, {
3985
+ channel: {
3986
+ id: string;
3987
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
3988
+ address: string;
3989
+ name: string;
3990
+ createdAt: Date;
3991
+ updatedAt: Date;
3992
+ deletedAt: Date | null;
3993
+ accountId: string;
3994
+ mailServerId: string;
3995
+ mailServer: {
3996
+ id: string;
3997
+ name: string;
3998
+ createdAt: Date;
3999
+ updatedAt: Date;
4000
+ deletedAt: Date | null;
4001
+ smtpHost: string;
4002
+ smtpPort: number;
4003
+ smtpTlsPort: number;
4004
+ useTlsForSmtp: boolean;
4005
+ imapHost: string;
4006
+ imapPort: number;
4007
+ imapTlsPort: number;
4008
+ useTlsForImap: boolean;
4009
+ };
4010
+ };
4011
+ count: number;
4012
+ }>, "many">;
4013
+ contactLabels: z.ZodArray<z.ZodObject<{
4014
+ label: z.ZodObject<{
4015
+ id: z.ZodString;
4016
+ createdAt: z.ZodDate;
4017
+ updatedAt: z.ZodDate;
4018
+ deletedAt: z.ZodNullable<z.ZodDate>;
4019
+ name: z.ZodString;
4020
+ }, "strip", z.ZodTypeAny, {
4021
+ id: string;
4022
+ name: string;
4023
+ createdAt: Date;
4024
+ updatedAt: Date;
4025
+ deletedAt: Date | null;
4026
+ }, {
4027
+ id: string;
4028
+ name: string;
4029
+ createdAt: Date;
4030
+ updatedAt: Date;
4031
+ deletedAt: Date | null;
4032
+ }>;
4033
+ count: z.ZodNumber;
4034
+ }, "strip", z.ZodTypeAny, {
4035
+ label: {
4036
+ id: string;
4037
+ name: string;
4038
+ createdAt: Date;
4039
+ updatedAt: Date;
4040
+ deletedAt: Date | null;
4041
+ };
4042
+ count: number;
4043
+ }, {
4044
+ label: {
4045
+ id: string;
4046
+ name: string;
4047
+ createdAt: Date;
4048
+ updatedAt: Date;
4049
+ deletedAt: Date | null;
4050
+ };
4051
+ count: number;
4052
+ }>, "many">;
4053
+ }, "strip", z.ZodTypeAny, {
4054
+ general: {
4055
+ name: string;
4056
+ count: number;
4057
+ unReadMessagesCount: number;
4058
+ }[];
4059
+ channels: {
4060
+ channel: {
4061
+ id: string;
4062
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4063
+ address: string;
4064
+ name: string;
4065
+ createdAt: Date;
4066
+ updatedAt: Date;
4067
+ deletedAt: Date | null;
4068
+ accountId: string;
4069
+ mailServerId: string;
4070
+ mailServer: {
4071
+ id: string;
4072
+ name: string;
4073
+ createdAt: Date;
4074
+ updatedAt: Date;
4075
+ deletedAt: Date | null;
4076
+ smtpHost: string;
4077
+ smtpPort: number;
4078
+ smtpTlsPort: number;
4079
+ useTlsForSmtp: boolean;
4080
+ imapHost: string;
4081
+ imapPort: number;
4082
+ imapTlsPort: number;
4083
+ useTlsForImap: boolean;
4084
+ };
4085
+ };
4086
+ count: number;
4087
+ }[];
4088
+ contactLabels: {
4089
+ label: {
4090
+ id: string;
4091
+ name: string;
4092
+ createdAt: Date;
4093
+ updatedAt: Date;
4094
+ deletedAt: Date | null;
4095
+ };
4096
+ count: number;
4097
+ }[];
4098
+ }, {
4099
+ general: {
4100
+ name: string;
4101
+ count: number;
4102
+ unReadMessagesCount: number;
4103
+ }[];
4104
+ channels: {
4105
+ channel: {
4106
+ id: string;
4107
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4108
+ address: string;
4109
+ name: string;
4110
+ createdAt: Date;
4111
+ updatedAt: Date;
4112
+ deletedAt: Date | null;
4113
+ accountId: string;
4114
+ mailServerId: string;
4115
+ mailServer: {
4116
+ id: string;
4117
+ name: string;
4118
+ createdAt: Date;
4119
+ updatedAt: Date;
4120
+ deletedAt: Date | null;
4121
+ smtpHost: string;
4122
+ smtpPort: number;
4123
+ smtpTlsPort: number;
4124
+ useTlsForSmtp: boolean;
4125
+ imapHost: string;
4126
+ imapPort: number;
4127
+ imapTlsPort: number;
4128
+ useTlsForImap: boolean;
4129
+ };
4130
+ };
4131
+ count: number;
4132
+ }[];
4133
+ contactLabels: {
4134
+ label: {
4135
+ id: string;
4136
+ name: string;
4137
+ createdAt: Date;
4138
+ updatedAt: Date;
4139
+ deletedAt: Date | null;
4140
+ };
4141
+ count: number;
4142
+ }[];
4143
+ }>;
4144
+ }, "strip", z.ZodTypeAny, {
4145
+ data: {
4146
+ general: {
4147
+ name: string;
4148
+ count: number;
4149
+ unReadMessagesCount: number;
4150
+ }[];
4151
+ channels: {
4152
+ channel: {
4153
+ id: string;
4154
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4155
+ address: string;
4156
+ name: string;
4157
+ createdAt: Date;
4158
+ updatedAt: Date;
4159
+ deletedAt: Date | null;
4160
+ accountId: string;
4161
+ mailServerId: string;
4162
+ mailServer: {
4163
+ id: string;
4164
+ name: string;
4165
+ createdAt: Date;
4166
+ updatedAt: Date;
4167
+ deletedAt: Date | null;
4168
+ smtpHost: string;
4169
+ smtpPort: number;
4170
+ smtpTlsPort: number;
4171
+ useTlsForSmtp: boolean;
4172
+ imapHost: string;
4173
+ imapPort: number;
4174
+ imapTlsPort: number;
4175
+ useTlsForImap: boolean;
4176
+ };
4177
+ };
4178
+ count: number;
4179
+ }[];
4180
+ contactLabels: {
4181
+ label: {
4182
+ id: string;
4183
+ name: string;
4184
+ createdAt: Date;
4185
+ updatedAt: Date;
4186
+ deletedAt: Date | null;
4187
+ };
4188
+ count: number;
4189
+ }[];
4190
+ };
4191
+ requestId: string;
4192
+ }, {
4193
+ data: {
4194
+ general: {
4195
+ name: string;
4196
+ count: number;
4197
+ unReadMessagesCount: number;
4198
+ }[];
4199
+ channels: {
4200
+ channel: {
4201
+ id: string;
4202
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4203
+ address: string;
4204
+ name: string;
4205
+ createdAt: Date;
4206
+ updatedAt: Date;
4207
+ deletedAt: Date | null;
4208
+ accountId: string;
4209
+ mailServerId: string;
4210
+ mailServer: {
4211
+ id: string;
4212
+ name: string;
4213
+ createdAt: Date;
4214
+ updatedAt: Date;
4215
+ deletedAt: Date | null;
4216
+ smtpHost: string;
4217
+ smtpPort: number;
4218
+ smtpTlsPort: number;
4219
+ useTlsForSmtp: boolean;
4220
+ imapHost: string;
4221
+ imapPort: number;
4222
+ imapTlsPort: number;
4223
+ useTlsForImap: boolean;
4224
+ };
4225
+ };
4226
+ count: number;
4227
+ }[];
4228
+ contactLabels: {
4229
+ label: {
4230
+ id: string;
4231
+ name: string;
4232
+ createdAt: Date;
4233
+ updatedAt: Date;
4234
+ deletedAt: Date | null;
4235
+ };
4236
+ count: number;
4237
+ }[];
4238
+ };
4239
+ requestId: string;
4240
+ }>;
4241
+ };
4242
+ path: "mail/room/count_rooms/all";
4243
+ };
4244
+ getAttachments: {
4245
+ summary: "Get all the attachments of a room";
4246
+ method: "GET";
4247
+ pathParams: z.ZodObject<{
4248
+ id: z.ZodString;
4249
+ }, "strip", z.ZodTypeAny, {
4250
+ id: string;
4251
+ }, {
4252
+ id: string;
4253
+ }>;
4254
+ responses: {
4255
+ 401: z.ZodObject<{
4256
+ message: z.ZodString;
4257
+ error: z.ZodAny;
4258
+ }, "strip", z.ZodTypeAny, {
4259
+ message: string;
4260
+ error?: any;
4261
+ }, {
4262
+ message: string;
4263
+ error?: any;
4264
+ }>;
4265
+ 404: z.ZodObject<{
4266
+ message: z.ZodString;
4267
+ error: z.ZodAny;
4268
+ }, "strip", z.ZodTypeAny, {
4269
+ message: string;
4270
+ error?: any;
4271
+ }, {
4272
+ message: string;
4273
+ error?: any;
4274
+ }>;
4275
+ 422: z.ZodObject<{
4276
+ message: z.ZodString;
4277
+ error: z.ZodAny;
4278
+ }, "strip", z.ZodTypeAny, {
4279
+ message: string;
4280
+ error?: any;
4281
+ }, {
4282
+ message: string;
4283
+ error?: any;
4284
+ }>;
4285
+ 200: z.ZodObject<{
4286
+ requestId: z.ZodString;
4287
+ data: z.ZodArray<z.ZodObject<{
4288
+ fileName: z.ZodString;
4289
+ fileType: z.ZodString;
4290
+ emailEngineAttachmentId: z.ZodString;
4291
+ uploadId: z.ZodString;
4292
+ messageId: z.ZodString;
4293
+ roomId: z.ZodString;
4294
+ upload: z.ZodObject<{
4295
+ id: z.ZodString;
4296
+ createdAt: z.ZodDate;
4297
+ updatedAt: z.ZodDate;
4298
+ deletedAt: z.ZodNullable<z.ZodDate>;
4299
+ bucketName: z.ZodString;
4300
+ fileName: z.ZodString;
4301
+ fileSize: z.ZodNumber;
4302
+ fileKey: z.ZodString;
4303
+ fileUrl: z.ZodNullable<z.ZodString>;
4304
+ status: z.ZodOptional<z.ZodString>;
4305
+ }, "strip", z.ZodTypeAny, {
4306
+ id: string;
4307
+ createdAt: Date;
4308
+ updatedAt: Date;
4309
+ deletedAt: Date | null;
4310
+ fileName: string;
4311
+ fileKey: string;
4312
+ bucketName: string;
4313
+ fileSize: number;
4314
+ fileUrl: string | null;
4315
+ status?: string | undefined;
4316
+ }, {
4317
+ id: string;
4318
+ createdAt: Date;
4319
+ updatedAt: Date;
4320
+ deletedAt: Date | null;
4321
+ fileName: string;
4322
+ fileKey: string;
4323
+ bucketName: string;
4324
+ fileSize: number;
4325
+ fileUrl: string | null;
4326
+ status?: string | undefined;
4327
+ }>;
4328
+ }, "strip", z.ZodTypeAny, {
4329
+ fileName: string;
4330
+ fileType: string;
4331
+ uploadId: string;
4332
+ upload: {
4333
+ id: string;
4334
+ createdAt: Date;
4335
+ updatedAt: Date;
4336
+ deletedAt: Date | null;
4337
+ fileName: string;
4338
+ fileKey: string;
4339
+ bucketName: string;
4340
+ fileSize: number;
4341
+ fileUrl: string | null;
4342
+ status?: string | undefined;
4343
+ };
4344
+ roomId: string;
4345
+ messageId: string;
4346
+ emailEngineAttachmentId: string;
4347
+ }, {
4348
+ fileName: string;
4349
+ fileType: string;
4350
+ uploadId: string;
4351
+ upload: {
4352
+ id: string;
4353
+ createdAt: Date;
4354
+ updatedAt: Date;
4355
+ deletedAt: Date | null;
4356
+ fileName: string;
4357
+ fileKey: string;
4358
+ bucketName: string;
4359
+ fileSize: number;
4360
+ fileUrl: string | null;
4361
+ status?: string | undefined;
4362
+ };
4363
+ roomId: string;
4364
+ messageId: string;
4365
+ emailEngineAttachmentId: string;
4366
+ }>, "many">;
4367
+ }, "strip", z.ZodTypeAny, {
4368
+ data: {
4369
+ fileName: string;
4370
+ fileType: string;
4371
+ uploadId: string;
4372
+ upload: {
4373
+ id: string;
4374
+ createdAt: Date;
4375
+ updatedAt: Date;
4376
+ deletedAt: Date | null;
4377
+ fileName: string;
4378
+ fileKey: string;
4379
+ bucketName: string;
4380
+ fileSize: number;
4381
+ fileUrl: string | null;
4382
+ status?: string | undefined;
4383
+ };
4384
+ roomId: string;
4385
+ messageId: string;
4386
+ emailEngineAttachmentId: string;
4387
+ }[];
4388
+ requestId: string;
4389
+ }, {
4390
+ data: {
4391
+ fileName: string;
4392
+ fileType: string;
4393
+ uploadId: string;
4394
+ upload: {
4395
+ id: string;
4396
+ createdAt: Date;
4397
+ updatedAt: Date;
4398
+ deletedAt: Date | null;
4399
+ fileName: string;
4400
+ fileKey: string;
4401
+ bucketName: string;
4402
+ fileSize: number;
4403
+ fileUrl: string | null;
4404
+ status?: string | undefined;
4405
+ };
4406
+ roomId: string;
4407
+ messageId: string;
4408
+ emailEngineAttachmentId: string;
4409
+ }[];
4410
+ requestId: string;
4411
+ }>;
4412
+ };
4413
+ path: "mail/room/:id/attachments";
4414
+ };
4415
+ getParticipants: {
4416
+ summary: "Get all the attachments of a room";
4417
+ method: "GET";
4418
+ pathParams: z.ZodObject<{
4419
+ id: z.ZodString;
4420
+ }, "strip", z.ZodTypeAny, {
4421
+ id: string;
4422
+ }, {
4423
+ id: string;
4424
+ }>;
4425
+ responses: {
4426
+ 401: z.ZodObject<{
4427
+ message: z.ZodString;
4428
+ error: z.ZodAny;
4429
+ }, "strip", z.ZodTypeAny, {
4430
+ message: string;
4431
+ error?: any;
4432
+ }, {
4433
+ message: string;
4434
+ error?: any;
4435
+ }>;
4436
+ 404: z.ZodObject<{
4437
+ message: z.ZodString;
4438
+ error: z.ZodAny;
4439
+ }, "strip", z.ZodTypeAny, {
4440
+ message: string;
4441
+ error?: any;
4442
+ }, {
4443
+ message: string;
4444
+ error?: any;
4445
+ }>;
4446
+ 422: z.ZodObject<{
4447
+ message: z.ZodString;
4448
+ error: z.ZodAny;
4449
+ }, "strip", z.ZodTypeAny, {
4450
+ message: string;
4451
+ error?: any;
4452
+ }, {
4453
+ message: string;
4454
+ error?: any;
4455
+ }>;
4456
+ 200: z.ZodObject<{
4457
+ requestId: z.ZodString;
4458
+ data: z.ZodArray<z.ZodObject<{
4459
+ id: z.ZodString;
4460
+ createdAt: z.ZodDate;
4461
+ updatedAt: z.ZodDate;
4462
+ deletedAt: z.ZodNullable<z.ZodDate>;
4463
+ name: z.ZodString;
4464
+ address: z.ZodString;
4465
+ }, "strip", z.ZodTypeAny, {
4466
+ id: string;
4467
+ address: string;
4468
+ name: string;
4469
+ createdAt: Date;
4470
+ updatedAt: Date;
4471
+ deletedAt: Date | null;
4472
+ }, {
4473
+ id: string;
4474
+ address: string;
4475
+ name: string;
4476
+ createdAt: Date;
4477
+ updatedAt: Date;
4478
+ deletedAt: Date | null;
4479
+ }>, "many">;
4480
+ }, "strip", z.ZodTypeAny, {
4481
+ data: {
4482
+ id: string;
4483
+ address: string;
4484
+ name: string;
4485
+ createdAt: Date;
4486
+ updatedAt: Date;
4487
+ deletedAt: Date | null;
4488
+ }[];
4489
+ requestId: string;
4490
+ }, {
4491
+ data: {
4492
+ id: string;
4493
+ address: string;
4494
+ name: string;
4495
+ createdAt: Date;
4496
+ updatedAt: Date;
4497
+ deletedAt: Date | null;
4498
+ }[];
4499
+ requestId: string;
4500
+ }>;
4501
+ };
4502
+ path: "mail/room/:id/participants";
4503
+ };
4504
+ update: {
4505
+ body: z.ZodObject<{
4506
+ disposition: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"resolved">, z.ZodLiteral<"follow up">, z.ZodLiteral<"escalated">, z.ZodLiteral<"dropped">, z.ZodLiteral<"prank">, z.ZodLiteral<"blank">]>>>;
4507
+ assigneeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4508
+ note: z.ZodOptional<z.ZodString>;
4509
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4510
+ handover: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
4511
+ selfAssign: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
4512
+ }, "strip", z.ZodTypeAny, {
4513
+ disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
4514
+ assigneeId?: string | null | undefined;
4515
+ note?: string | undefined;
4516
+ tags?: string[] | undefined;
4517
+ handover?: boolean | null | undefined;
4518
+ selfAssign?: boolean | null | undefined;
4519
+ }, {
4520
+ disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
4521
+ assigneeId?: string | null | undefined;
4522
+ note?: string | undefined;
4523
+ tags?: string[] | undefined;
4524
+ handover?: boolean | "false" | "true" | null | undefined;
4525
+ selfAssign?: boolean | "false" | "true" | null | undefined;
4526
+ }>;
4527
+ summary: "Update a mail room by id";
4528
+ method: "PATCH";
4529
+ pathParams: z.ZodObject<{
4530
+ id: z.ZodString;
4531
+ }, "strip", z.ZodTypeAny, {
4532
+ id: string;
4533
+ }, {
4534
+ id: string;
4535
+ }>;
4536
+ responses: {
4537
+ 401: z.ZodObject<{
4538
+ message: z.ZodString;
4539
+ error: z.ZodAny;
4540
+ }, "strip", z.ZodTypeAny, {
4541
+ message: string;
4542
+ error?: any;
4543
+ }, {
4544
+ message: string;
4545
+ error?: any;
4546
+ }>;
4547
+ 404: z.ZodObject<{
4548
+ message: z.ZodString;
4549
+ error: z.ZodAny;
4550
+ }, "strip", z.ZodTypeAny, {
4551
+ message: string;
4552
+ error?: any;
4553
+ }, {
4554
+ message: string;
4555
+ error?: any;
4556
+ }>;
4557
+ 422: z.ZodObject<{
4558
+ message: z.ZodString;
4559
+ error: z.ZodAny;
4560
+ }, "strip", z.ZodTypeAny, {
4561
+ message: string;
4562
+ error?: any;
4563
+ }, {
4564
+ message: string;
4565
+ error?: any;
4566
+ }>;
4567
+ 200: z.ZodObject<{
4568
+ requestId: z.ZodString;
4569
+ data: z.ZodObject<{
4570
+ id: z.ZodString;
4571
+ createdAt: z.ZodDate;
4572
+ updatedAt: z.ZodDate;
4573
+ deletedAt: z.ZodNullable<z.ZodDate>;
4574
+ subject: z.ZodString;
4575
+ resolved: z.ZodBoolean;
4576
+ assigneeId: z.ZodNullable<z.ZodString>;
4577
+ note: z.ZodString;
4578
+ mailId: z.ZodString;
4579
+ direction: z.ZodString;
4580
+ lastMessageId: z.ZodString;
4581
+ firstMessageId: z.ZodString;
4582
+ from: z.ZodArray<z.ZodObject<{
4583
+ id: z.ZodString;
4584
+ createdAt: z.ZodDate;
4585
+ updatedAt: z.ZodDate;
4586
+ deletedAt: z.ZodNullable<z.ZodDate>;
4587
+ name: z.ZodString;
4588
+ address: z.ZodString;
4589
+ }, "strip", z.ZodTypeAny, {
4590
+ id: string;
4591
+ address: string;
4592
+ name: string;
4593
+ createdAt: Date;
4594
+ updatedAt: Date;
4595
+ deletedAt: Date | null;
4596
+ }, {
4597
+ id: string;
4598
+ address: string;
4599
+ name: string;
4600
+ createdAt: Date;
4601
+ updatedAt: Date;
4602
+ deletedAt: Date | null;
4603
+ }>, "many">;
4604
+ to: z.ZodArray<z.ZodObject<{
4605
+ id: z.ZodString;
4606
+ createdAt: z.ZodDate;
4607
+ updatedAt: z.ZodDate;
4608
+ deletedAt: z.ZodNullable<z.ZodDate>;
4609
+ name: z.ZodString;
4610
+ address: z.ZodString;
4611
+ }, "strip", z.ZodTypeAny, {
4612
+ id: string;
4613
+ address: string;
4614
+ name: string;
4615
+ createdAt: Date;
4616
+ updatedAt: Date;
4617
+ deletedAt: Date | null;
4618
+ }, {
4619
+ id: string;
4620
+ address: string;
4621
+ name: string;
4622
+ createdAt: Date;
4623
+ updatedAt: Date;
4624
+ deletedAt: Date | null;
4625
+ }>, "many">;
4626
+ cc: z.ZodArray<z.ZodObject<{
4627
+ id: z.ZodString;
4628
+ createdAt: z.ZodDate;
4629
+ updatedAt: z.ZodDate;
4630
+ deletedAt: z.ZodNullable<z.ZodDate>;
4631
+ name: z.ZodString;
4632
+ address: z.ZodString;
4633
+ }, "strip", z.ZodTypeAny, {
4634
+ id: string;
4635
+ address: string;
4636
+ name: string;
4637
+ createdAt: Date;
4638
+ updatedAt: Date;
4639
+ deletedAt: Date | null;
4640
+ }, {
4641
+ id: string;
4642
+ address: string;
4643
+ name: string;
4644
+ createdAt: Date;
4645
+ updatedAt: Date;
4646
+ deletedAt: Date | null;
4647
+ }>, "many">;
4648
+ bcc: z.ZodArray<z.ZodObject<{
4649
+ id: z.ZodString;
4650
+ createdAt: z.ZodDate;
4651
+ updatedAt: z.ZodDate;
4652
+ deletedAt: z.ZodNullable<z.ZodDate>;
4653
+ name: z.ZodString;
4654
+ address: z.ZodString;
4655
+ }, "strip", z.ZodTypeAny, {
4656
+ id: string;
4657
+ address: string;
4658
+ name: string;
4659
+ createdAt: Date;
4660
+ updatedAt: Date;
4661
+ deletedAt: Date | null;
4662
+ }, {
4663
+ id: string;
4664
+ address: string;
4665
+ name: string;
4666
+ createdAt: Date;
4667
+ updatedAt: Date;
4668
+ deletedAt: Date | null;
4669
+ }>, "many">;
4670
+ firstMessage: z.ZodObject<{
4671
+ id: z.ZodString;
4672
+ createdAt: z.ZodDate;
4673
+ updatedAt: z.ZodDate;
4674
+ deletedAt: z.ZodNullable<z.ZodDate>;
4675
+ roomId: z.ZodString;
4676
+ subject: z.ZodString;
4677
+ textPlain: z.ZodString;
4678
+ textHtml: z.ZodString;
4679
+ textId: z.ZodString;
4680
+ emailEngineEmailId: z.ZodString;
4681
+ emailEngineMessageId: z.ZodString;
4682
+ emailEngineReplyTo: z.ZodNullable<z.ZodString>;
4683
+ direction: z.ZodString;
4684
+ date: z.ZodDate;
4685
+ action: z.ZodString;
4686
+ unseen: z.ZodBoolean;
4687
+ seemsLikeNew: z.ZodBoolean;
4688
+ from: z.ZodArray<z.ZodObject<{
4689
+ id: z.ZodString;
4690
+ createdAt: z.ZodDate;
4691
+ updatedAt: z.ZodDate;
4692
+ deletedAt: z.ZodNullable<z.ZodDate>;
4693
+ name: z.ZodString;
4694
+ address: z.ZodString;
4695
+ }, "strip", z.ZodTypeAny, {
4696
+ id: string;
4697
+ address: string;
4698
+ name: string;
4699
+ createdAt: Date;
4700
+ updatedAt: Date;
4701
+ deletedAt: Date | null;
4702
+ }, {
4703
+ id: string;
4704
+ address: string;
4705
+ name: string;
4706
+ createdAt: Date;
4707
+ updatedAt: Date;
3672
4708
  deletedAt: Date | null;
3673
4709
  }>, "many">;
3674
4710
  to: z.ZodArray<z.ZodObject<{
@@ -5229,31 +6265,175 @@ export declare const roomContract: {
5229
6265
  };
5230
6266
  }, {
5231
6267
  id: string;
5232
- state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
5233
- address: string;
5234
- name: string;
6268
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
6269
+ address: string;
6270
+ name: string;
6271
+ createdAt: Date;
6272
+ updatedAt: Date;
6273
+ deletedAt: Date | null;
6274
+ accountId: string;
6275
+ mailServerId: string;
6276
+ mailServer: {
6277
+ id: string;
6278
+ name: string;
6279
+ createdAt: Date;
6280
+ updatedAt: Date;
6281
+ deletedAt: Date | null;
6282
+ smtpHost: string;
6283
+ smtpPort: number;
6284
+ smtpTlsPort: number;
6285
+ useTlsForSmtp: boolean;
6286
+ imapHost: string;
6287
+ imapPort: number;
6288
+ imapTlsPort: number;
6289
+ useTlsForImap: boolean;
6290
+ };
6291
+ }>;
6292
+ unReadMessageCount: z.ZodNumber;
6293
+ cxlog: z.ZodObject<{
6294
+ id: z.ZodString;
6295
+ createdAt: z.ZodDate;
6296
+ updatedAt: z.ZodDate;
6297
+ deletedAt: z.ZodNullable<z.ZodDate>;
6298
+ caseId: z.ZodNumber;
6299
+ entityId: z.ZodString;
6300
+ entityName: z.ZodString;
6301
+ contactId: z.ZodNullable<z.ZodString>;
6302
+ channel: z.ZodNullable<z.ZodString>;
6303
+ queueId: z.ZodNullable<z.ZodString>;
6304
+ agentId: z.ZodNullable<z.ZodString>;
6305
+ direction: z.ZodNullable<z.ZodString>;
6306
+ startedDate: z.ZodNullable<z.ZodDate>;
6307
+ handledTime: z.ZodNullable<z.ZodNumber>;
6308
+ firstResponseTime: z.ZodNullable<z.ZodNumber>;
6309
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
6310
+ id: z.ZodString;
6311
+ createdAt: z.ZodDate;
6312
+ updatedAt: z.ZodDate;
6313
+ deletedAt: z.ZodNullable<z.ZodDate>;
6314
+ note: z.ZodNullable<z.ZodString>;
6315
+ disposition: z.ZodNullable<z.ZodString>;
6316
+ callFrom: z.ZodNullable<z.ZodString>;
6317
+ callTo: z.ZodNullable<z.ZodString>;
6318
+ tags: z.ZodArray<z.ZodObject<{
6319
+ id: z.ZodString;
6320
+ createdAt: z.ZodDate;
6321
+ updatedAt: z.ZodDate;
6322
+ deletedAt: z.ZodNullable<z.ZodDate>;
6323
+ name: z.ZodString;
6324
+ }, "strip", z.ZodTypeAny, {
6325
+ id: string;
6326
+ name: string;
6327
+ createdAt: Date;
6328
+ updatedAt: Date;
6329
+ deletedAt: Date | null;
6330
+ }, {
6331
+ id: string;
6332
+ name: string;
6333
+ createdAt: Date;
6334
+ updatedAt: Date;
6335
+ deletedAt: Date | null;
6336
+ }>, "many">;
6337
+ }, "strip", z.ZodTypeAny, {
6338
+ id: string;
6339
+ disposition: string | null;
6340
+ createdAt: Date;
6341
+ updatedAt: Date;
6342
+ deletedAt: Date | null;
6343
+ tags: {
6344
+ id: string;
6345
+ name: string;
6346
+ createdAt: Date;
6347
+ updatedAt: Date;
6348
+ deletedAt: Date | null;
6349
+ }[];
6350
+ callFrom: string | null;
6351
+ callTo: string | null;
6352
+ note: string | null;
6353
+ }, {
6354
+ id: string;
6355
+ disposition: string | null;
6356
+ createdAt: Date;
6357
+ updatedAt: Date;
6358
+ deletedAt: Date | null;
6359
+ tags: {
6360
+ id: string;
6361
+ name: string;
6362
+ createdAt: Date;
6363
+ updatedAt: Date;
6364
+ deletedAt: Date | null;
6365
+ }[];
6366
+ callFrom: string | null;
6367
+ callTo: string | null;
6368
+ note: string | null;
6369
+ }>>;
6370
+ }, "strip", z.ZodTypeAny, {
6371
+ id: string;
6372
+ channel: string | null;
6373
+ direction: string | null;
6374
+ createdAt: Date;
6375
+ updatedAt: Date;
6376
+ deletedAt: Date | null;
6377
+ entityId: string;
6378
+ queueId: string | null;
6379
+ contactId: string | null;
6380
+ caseId: number;
6381
+ entityName: string;
6382
+ agentId: string | null;
6383
+ startedDate: Date | null;
6384
+ handledTime: number | null;
6385
+ firstResponseTime: number | null;
6386
+ wrapUpForm: {
6387
+ id: string;
6388
+ disposition: string | null;
6389
+ createdAt: Date;
6390
+ updatedAt: Date;
6391
+ deletedAt: Date | null;
6392
+ tags: {
6393
+ id: string;
6394
+ name: string;
6395
+ createdAt: Date;
6396
+ updatedAt: Date;
6397
+ deletedAt: Date | null;
6398
+ }[];
6399
+ callFrom: string | null;
6400
+ callTo: string | null;
6401
+ note: string | null;
6402
+ } | null;
6403
+ }, {
6404
+ id: string;
6405
+ channel: string | null;
6406
+ direction: string | null;
5235
6407
  createdAt: Date;
5236
6408
  updatedAt: Date;
5237
6409
  deletedAt: Date | null;
5238
- accountId: string;
5239
- mailServerId: string;
5240
- mailServer: {
6410
+ entityId: string;
6411
+ queueId: string | null;
6412
+ contactId: string | null;
6413
+ caseId: number;
6414
+ entityName: string;
6415
+ agentId: string | null;
6416
+ startedDate: Date | null;
6417
+ handledTime: number | null;
6418
+ firstResponseTime: number | null;
6419
+ wrapUpForm: {
5241
6420
  id: string;
5242
- name: string;
6421
+ disposition: string | null;
5243
6422
  createdAt: Date;
5244
6423
  updatedAt: Date;
5245
6424
  deletedAt: Date | null;
5246
- smtpHost: string;
5247
- smtpPort: number;
5248
- smtpTlsPort: number;
5249
- useTlsForSmtp: boolean;
5250
- imapHost: string;
5251
- imapPort: number;
5252
- imapTlsPort: number;
5253
- useTlsForImap: boolean;
5254
- };
6425
+ tags: {
6426
+ id: string;
6427
+ name: string;
6428
+ createdAt: Date;
6429
+ updatedAt: Date;
6430
+ deletedAt: Date | null;
6431
+ }[];
6432
+ callFrom: string | null;
6433
+ callTo: string | null;
6434
+ note: string | null;
6435
+ } | null;
5255
6436
  }>;
5256
- unReadMessageCount: z.ZodNumber;
5257
6437
  }, "strip", z.ZodTypeAny, {
5258
6438
  id: string;
5259
6439
  direction: string;
@@ -5356,6 +6536,40 @@ export declare const roomContract: {
5356
6536
  notificationCount: number | null;
5357
6537
  };
5358
6538
  resolved: boolean;
6539
+ cxlog: {
6540
+ id: string;
6541
+ channel: string | null;
6542
+ direction: string | null;
6543
+ createdAt: Date;
6544
+ updatedAt: Date;
6545
+ deletedAt: Date | null;
6546
+ entityId: string;
6547
+ queueId: string | null;
6548
+ contactId: string | null;
6549
+ caseId: number;
6550
+ entityName: string;
6551
+ agentId: string | null;
6552
+ startedDate: Date | null;
6553
+ handledTime: number | null;
6554
+ firstResponseTime: number | null;
6555
+ wrapUpForm: {
6556
+ id: string;
6557
+ disposition: string | null;
6558
+ createdAt: Date;
6559
+ updatedAt: Date;
6560
+ deletedAt: Date | null;
6561
+ tags: {
6562
+ id: string;
6563
+ name: string;
6564
+ createdAt: Date;
6565
+ updatedAt: Date;
6566
+ deletedAt: Date | null;
6567
+ }[];
6568
+ callFrom: string | null;
6569
+ callTo: string | null;
6570
+ note: string | null;
6571
+ } | null;
6572
+ };
5359
6573
  assigneeId: string | null;
5360
6574
  subject: string;
5361
6575
  from: {
@@ -5766,6 +6980,40 @@ export declare const roomContract: {
5766
6980
  notificationCount: number | null;
5767
6981
  };
5768
6982
  resolved: boolean;
6983
+ cxlog: {
6984
+ id: string;
6985
+ channel: string | null;
6986
+ direction: string | null;
6987
+ createdAt: Date;
6988
+ updatedAt: Date;
6989
+ deletedAt: Date | null;
6990
+ entityId: string;
6991
+ queueId: string | null;
6992
+ contactId: string | null;
6993
+ caseId: number;
6994
+ entityName: string;
6995
+ agentId: string | null;
6996
+ startedDate: Date | null;
6997
+ handledTime: number | null;
6998
+ firstResponseTime: number | null;
6999
+ wrapUpForm: {
7000
+ id: string;
7001
+ disposition: string | null;
7002
+ createdAt: Date;
7003
+ updatedAt: Date;
7004
+ deletedAt: Date | null;
7005
+ tags: {
7006
+ id: string;
7007
+ name: string;
7008
+ createdAt: Date;
7009
+ updatedAt: Date;
7010
+ deletedAt: Date | null;
7011
+ }[];
7012
+ callFrom: string | null;
7013
+ callTo: string | null;
7014
+ note: string | null;
7015
+ } | null;
7016
+ };
5769
7017
  assigneeId: string | null;
5770
7018
  subject: string;
5771
7019
  from: {
@@ -6178,6 +7426,40 @@ export declare const roomContract: {
6178
7426
  notificationCount: number | null;
6179
7427
  };
6180
7428
  resolved: boolean;
7429
+ cxlog: {
7430
+ id: string;
7431
+ channel: string | null;
7432
+ direction: string | null;
7433
+ createdAt: Date;
7434
+ updatedAt: Date;
7435
+ deletedAt: Date | null;
7436
+ entityId: string;
7437
+ queueId: string | null;
7438
+ contactId: string | null;
7439
+ caseId: number;
7440
+ entityName: string;
7441
+ agentId: string | null;
7442
+ startedDate: Date | null;
7443
+ handledTime: number | null;
7444
+ firstResponseTime: number | null;
7445
+ wrapUpForm: {
7446
+ id: string;
7447
+ disposition: string | null;
7448
+ createdAt: Date;
7449
+ updatedAt: Date;
7450
+ deletedAt: Date | null;
7451
+ tags: {
7452
+ id: string;
7453
+ name: string;
7454
+ createdAt: Date;
7455
+ updatedAt: Date;
7456
+ deletedAt: Date | null;
7457
+ }[];
7458
+ callFrom: string | null;
7459
+ callTo: string | null;
7460
+ note: string | null;
7461
+ } | null;
7462
+ };
6181
7463
  assigneeId: string | null;
6182
7464
  subject: string;
6183
7465
  from: {
@@ -6591,6 +7873,40 @@ export declare const roomContract: {
6591
7873
  notificationCount: number | null;
6592
7874
  };
6593
7875
  resolved: boolean;
7876
+ cxlog: {
7877
+ id: string;
7878
+ channel: string | null;
7879
+ direction: string | null;
7880
+ createdAt: Date;
7881
+ updatedAt: Date;
7882
+ deletedAt: Date | null;
7883
+ entityId: string;
7884
+ queueId: string | null;
7885
+ contactId: string | null;
7886
+ caseId: number;
7887
+ entityName: string;
7888
+ agentId: string | null;
7889
+ startedDate: Date | null;
7890
+ handledTime: number | null;
7891
+ firstResponseTime: number | null;
7892
+ wrapUpForm: {
7893
+ id: string;
7894
+ disposition: string | null;
7895
+ createdAt: Date;
7896
+ updatedAt: Date;
7897
+ deletedAt: Date | null;
7898
+ tags: {
7899
+ id: string;
7900
+ name: string;
7901
+ createdAt: Date;
7902
+ updatedAt: Date;
7903
+ deletedAt: Date | null;
7904
+ }[];
7905
+ callFrom: string | null;
7906
+ callTo: string | null;
7907
+ note: string | null;
7908
+ } | null;
7909
+ };
6594
7910
  assigneeId: string | null;
6595
7911
  subject: string;
6596
7912
  from: {
@@ -6895,197 +8211,26 @@ export declare const roomContract: {
6895
8211
  imapHost: string;
6896
8212
  imapPort: number;
6897
8213
  imapTlsPort: number;
6898
- useTlsForImap: boolean;
6899
- };
6900
- };
6901
- unReadMessageCount: number;
6902
- };
6903
- requestId: string;
6904
- }>;
6905
- };
6906
- path: "mail/room/:id";
6907
- };
6908
- getAttachments: {
6909
- summary: "Get all the attachments of a room";
6910
- method: "GET";
6911
- pathParams: z.ZodObject<{
6912
- id: z.ZodString;
6913
- }, "strip", z.ZodTypeAny, {
6914
- id: string;
6915
- }, {
6916
- id: string;
6917
- }>;
6918
- responses: {
6919
- 401: z.ZodObject<{
6920
- message: z.ZodString;
6921
- error: z.ZodAny;
6922
- }, "strip", z.ZodTypeAny, {
6923
- message: string;
6924
- error?: any;
6925
- }, {
6926
- message: string;
6927
- error?: any;
6928
- }>;
6929
- 404: z.ZodObject<{
6930
- message: z.ZodString;
6931
- error: z.ZodAny;
6932
- }, "strip", z.ZodTypeAny, {
6933
- message: string;
6934
- error?: any;
6935
- }, {
6936
- message: string;
6937
- error?: any;
6938
- }>;
6939
- 422: z.ZodObject<{
6940
- message: z.ZodString;
6941
- error: z.ZodAny;
6942
- }, "strip", z.ZodTypeAny, {
6943
- message: string;
6944
- error?: any;
6945
- }, {
6946
- message: string;
6947
- error?: any;
6948
- }>;
6949
- 200: z.ZodObject<{
6950
- requestId: z.ZodString;
6951
- data: z.ZodArray<z.ZodObject<{
6952
- fileName: z.ZodString;
6953
- fileType: z.ZodString;
6954
- emailEngineAttachmentId: z.ZodString;
6955
- uploadId: z.ZodString;
6956
- messageId: z.ZodString;
6957
- roomId: z.ZodString;
6958
- upload: z.ZodObject<{
6959
- id: z.ZodString;
6960
- createdAt: z.ZodDate;
6961
- updatedAt: z.ZodDate;
6962
- deletedAt: z.ZodNullable<z.ZodDate>;
6963
- bucketName: z.ZodString;
6964
- fileName: z.ZodString;
6965
- fileSize: z.ZodNumber;
6966
- fileKey: z.ZodString;
6967
- fileUrl: z.ZodNullable<z.ZodString>;
6968
- status: z.ZodOptional<z.ZodString>;
6969
- }, "strip", z.ZodTypeAny, {
6970
- id: string;
6971
- createdAt: Date;
6972
- updatedAt: Date;
6973
- deletedAt: Date | null;
6974
- fileName: string;
6975
- fileKey: string;
6976
- bucketName: string;
6977
- fileSize: number;
6978
- fileUrl: string | null;
6979
- status?: string | undefined;
6980
- }, {
6981
- id: string;
6982
- createdAt: Date;
6983
- updatedAt: Date;
6984
- deletedAt: Date | null;
6985
- fileName: string;
6986
- fileKey: string;
6987
- bucketName: string;
6988
- fileSize: number;
6989
- fileUrl: string | null;
6990
- status?: string | undefined;
6991
- }>;
6992
- }, "strip", z.ZodTypeAny, {
6993
- fileName: string;
6994
- fileType: string;
6995
- uploadId: string;
6996
- upload: {
6997
- id: string;
6998
- createdAt: Date;
6999
- updatedAt: Date;
7000
- deletedAt: Date | null;
7001
- fileName: string;
7002
- fileKey: string;
7003
- bucketName: string;
7004
- fileSize: number;
7005
- fileUrl: string | null;
7006
- status?: string | undefined;
7007
- };
7008
- roomId: string;
7009
- messageId: string;
7010
- emailEngineAttachmentId: string;
7011
- }, {
7012
- fileName: string;
7013
- fileType: string;
7014
- uploadId: string;
7015
- upload: {
7016
- id: string;
7017
- createdAt: Date;
7018
- updatedAt: Date;
7019
- deletedAt: Date | null;
7020
- fileName: string;
7021
- fileKey: string;
7022
- bucketName: string;
7023
- fileSize: number;
7024
- fileUrl: string | null;
7025
- status?: string | undefined;
7026
- };
7027
- roomId: string;
7028
- messageId: string;
7029
- emailEngineAttachmentId: string;
7030
- }>, "many">;
7031
- }, "strip", z.ZodTypeAny, {
7032
- data: {
7033
- fileName: string;
7034
- fileType: string;
7035
- uploadId: string;
7036
- upload: {
7037
- id: string;
7038
- createdAt: Date;
7039
- updatedAt: Date;
7040
- deletedAt: Date | null;
7041
- fileName: string;
7042
- fileKey: string;
7043
- bucketName: string;
7044
- fileSize: number;
7045
- fileUrl: string | null;
7046
- status?: string | undefined;
7047
- };
7048
- roomId: string;
7049
- messageId: string;
7050
- emailEngineAttachmentId: string;
7051
- }[];
7052
- requestId: string;
7053
- }, {
7054
- data: {
7055
- fileName: string;
7056
- fileType: string;
7057
- uploadId: string;
7058
- upload: {
7059
- id: string;
7060
- createdAt: Date;
7061
- updatedAt: Date;
7062
- deletedAt: Date | null;
7063
- fileName: string;
7064
- fileKey: string;
7065
- bucketName: string;
7066
- fileSize: number;
7067
- fileUrl: string | null;
7068
- status?: string | undefined;
8214
+ useTlsForImap: boolean;
8215
+ };
7069
8216
  };
7070
- roomId: string;
7071
- messageId: string;
7072
- emailEngineAttachmentId: string;
7073
- }[];
8217
+ unReadMessageCount: number;
8218
+ };
7074
8219
  requestId: string;
7075
8220
  }>;
7076
8221
  };
7077
- path: "mail/room/:id/attachments";
8222
+ path: "mail/room/:id";
7078
8223
  };
7079
- getParticipants: {
7080
- summary: "Get all the attachments of a room";
7081
- method: "GET";
7082
- pathParams: z.ZodObject<{
8224
+ markAsRead: {
8225
+ body: z.ZodObject<{
7083
8226
  id: z.ZodString;
7084
8227
  }, "strip", z.ZodTypeAny, {
7085
8228
  id: string;
7086
8229
  }, {
7087
8230
  id: string;
7088
8231
  }>;
8232
+ summary: "Mark all the unread messages of a room as read";
8233
+ method: "POST";
7089
8234
  responses: {
7090
8235
  401: z.ZodObject<{
7091
8236
  message: z.ZodString;
@@ -7119,77 +8264,20 @@ export declare const roomContract: {
7119
8264
  }>;
7120
8265
  200: z.ZodObject<{
7121
8266
  requestId: z.ZodString;
7122
- data: z.ZodArray<z.ZodObject<{
7123
- id: z.ZodString;
7124
- createdAt: z.ZodDate;
7125
- updatedAt: z.ZodDate;
7126
- deletedAt: z.ZodNullable<z.ZodDate>;
7127
- name: z.ZodString;
7128
- address: z.ZodString;
7129
- }, "strip", z.ZodTypeAny, {
7130
- id: string;
7131
- address: string;
7132
- name: string;
7133
- createdAt: Date;
7134
- updatedAt: Date;
7135
- deletedAt: Date | null;
7136
- }, {
7137
- id: string;
7138
- address: string;
7139
- name: string;
7140
- createdAt: Date;
7141
- updatedAt: Date;
7142
- deletedAt: Date | null;
7143
- }>, "many">;
8267
+ message: z.ZodString;
7144
8268
  }, "strip", z.ZodTypeAny, {
7145
- data: {
7146
- id: string;
7147
- address: string;
7148
- name: string;
7149
- createdAt: Date;
7150
- updatedAt: Date;
7151
- deletedAt: Date | null;
7152
- }[];
8269
+ message: string;
7153
8270
  requestId: string;
7154
8271
  }, {
7155
- data: {
7156
- id: string;
7157
- address: string;
7158
- name: string;
7159
- createdAt: Date;
7160
- updatedAt: Date;
7161
- deletedAt: Date | null;
7162
- }[];
8272
+ message: string;
7163
8273
  requestId: string;
7164
8274
  }>;
7165
8275
  };
7166
- path: "mail/room/:id/participants";
8276
+ path: "mail/room/mark_as_read";
7167
8277
  };
7168
- update: {
7169
- body: z.ZodObject<{
7170
- resolved: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
7171
- assigneeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7172
- note: z.ZodOptional<z.ZodString>;
7173
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7174
- handover: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
7175
- selfAssign: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
7176
- }, "strip", z.ZodTypeAny, {
7177
- resolved?: boolean | null | undefined;
7178
- assigneeId?: string | null | undefined;
7179
- note?: string | undefined;
7180
- tags?: string[] | undefined;
7181
- handover?: boolean | null | undefined;
7182
- selfAssign?: boolean | null | undefined;
7183
- }, {
7184
- resolved?: boolean | "false" | "true" | null | undefined;
7185
- assigneeId?: string | null | undefined;
7186
- note?: string | undefined;
7187
- tags?: string[] | undefined;
7188
- handover?: boolean | "false" | "true" | null | undefined;
7189
- selfAssign?: boolean | "false" | "true" | null | undefined;
7190
- }>;
7191
- summary: "Update a mail room by id";
7192
- method: "PATCH";
8278
+ getById: {
8279
+ summary: "Get a mail room by id";
8280
+ method: "GET";
7193
8281
  pathParams: z.ZodObject<{
7194
8282
  id: z.ZodString;
7195
8283
  }, "strip", z.ZodTypeAny, {
@@ -8954,6 +10042,150 @@ export declare const roomContract: {
8954
10042
  };
8955
10043
  }>;
8956
10044
  unReadMessageCount: z.ZodNumber;
10045
+ cxlog: z.ZodObject<{
10046
+ id: z.ZodString;
10047
+ createdAt: z.ZodDate;
10048
+ updatedAt: z.ZodDate;
10049
+ deletedAt: z.ZodNullable<z.ZodDate>;
10050
+ caseId: z.ZodNumber;
10051
+ entityId: z.ZodString;
10052
+ entityName: z.ZodString;
10053
+ contactId: z.ZodNullable<z.ZodString>;
10054
+ channel: z.ZodNullable<z.ZodString>;
10055
+ queueId: z.ZodNullable<z.ZodString>;
10056
+ agentId: z.ZodNullable<z.ZodString>;
10057
+ direction: z.ZodNullable<z.ZodString>;
10058
+ startedDate: z.ZodNullable<z.ZodDate>;
10059
+ handledTime: z.ZodNullable<z.ZodNumber>;
10060
+ firstResponseTime: z.ZodNullable<z.ZodNumber>;
10061
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
10062
+ id: z.ZodString;
10063
+ createdAt: z.ZodDate;
10064
+ updatedAt: z.ZodDate;
10065
+ deletedAt: z.ZodNullable<z.ZodDate>;
10066
+ note: z.ZodNullable<z.ZodString>;
10067
+ disposition: z.ZodNullable<z.ZodString>;
10068
+ callFrom: z.ZodNullable<z.ZodString>;
10069
+ callTo: z.ZodNullable<z.ZodString>;
10070
+ tags: z.ZodArray<z.ZodObject<{
10071
+ id: z.ZodString;
10072
+ createdAt: z.ZodDate;
10073
+ updatedAt: z.ZodDate;
10074
+ deletedAt: z.ZodNullable<z.ZodDate>;
10075
+ name: z.ZodString;
10076
+ }, "strip", z.ZodTypeAny, {
10077
+ id: string;
10078
+ name: string;
10079
+ createdAt: Date;
10080
+ updatedAt: Date;
10081
+ deletedAt: Date | null;
10082
+ }, {
10083
+ id: string;
10084
+ name: string;
10085
+ createdAt: Date;
10086
+ updatedAt: Date;
10087
+ deletedAt: Date | null;
10088
+ }>, "many">;
10089
+ }, "strip", z.ZodTypeAny, {
10090
+ id: string;
10091
+ disposition: string | null;
10092
+ createdAt: Date;
10093
+ updatedAt: Date;
10094
+ deletedAt: Date | null;
10095
+ tags: {
10096
+ id: string;
10097
+ name: string;
10098
+ createdAt: Date;
10099
+ updatedAt: Date;
10100
+ deletedAt: Date | null;
10101
+ }[];
10102
+ callFrom: string | null;
10103
+ callTo: string | null;
10104
+ note: string | null;
10105
+ }, {
10106
+ id: string;
10107
+ disposition: string | null;
10108
+ createdAt: Date;
10109
+ updatedAt: Date;
10110
+ deletedAt: Date | null;
10111
+ tags: {
10112
+ id: string;
10113
+ name: string;
10114
+ createdAt: Date;
10115
+ updatedAt: Date;
10116
+ deletedAt: Date | null;
10117
+ }[];
10118
+ callFrom: string | null;
10119
+ callTo: string | null;
10120
+ note: string | null;
10121
+ }>>;
10122
+ }, "strip", z.ZodTypeAny, {
10123
+ id: string;
10124
+ channel: string | null;
10125
+ direction: string | null;
10126
+ createdAt: Date;
10127
+ updatedAt: Date;
10128
+ deletedAt: Date | null;
10129
+ entityId: string;
10130
+ queueId: string | null;
10131
+ contactId: string | null;
10132
+ caseId: number;
10133
+ entityName: string;
10134
+ agentId: string | null;
10135
+ startedDate: Date | null;
10136
+ handledTime: number | null;
10137
+ firstResponseTime: number | null;
10138
+ wrapUpForm: {
10139
+ id: string;
10140
+ disposition: string | null;
10141
+ createdAt: Date;
10142
+ updatedAt: Date;
10143
+ deletedAt: Date | null;
10144
+ tags: {
10145
+ id: string;
10146
+ name: string;
10147
+ createdAt: Date;
10148
+ updatedAt: Date;
10149
+ deletedAt: Date | null;
10150
+ }[];
10151
+ callFrom: string | null;
10152
+ callTo: string | null;
10153
+ note: string | null;
10154
+ } | null;
10155
+ }, {
10156
+ id: string;
10157
+ channel: string | null;
10158
+ direction: string | null;
10159
+ createdAt: Date;
10160
+ updatedAt: Date;
10161
+ deletedAt: Date | null;
10162
+ entityId: string;
10163
+ queueId: string | null;
10164
+ contactId: string | null;
10165
+ caseId: number;
10166
+ entityName: string;
10167
+ agentId: string | null;
10168
+ startedDate: Date | null;
10169
+ handledTime: number | null;
10170
+ firstResponseTime: number | null;
10171
+ wrapUpForm: {
10172
+ id: string;
10173
+ disposition: string | null;
10174
+ createdAt: Date;
10175
+ updatedAt: Date;
10176
+ deletedAt: Date | null;
10177
+ tags: {
10178
+ id: string;
10179
+ name: string;
10180
+ createdAt: Date;
10181
+ updatedAt: Date;
10182
+ deletedAt: Date | null;
10183
+ }[];
10184
+ callFrom: string | null;
10185
+ callTo: string | null;
10186
+ note: string | null;
10187
+ } | null;
10188
+ }>;
8957
10189
  }, "strip", z.ZodTypeAny, {
8958
10190
  id: string;
8959
10191
  direction: string;
@@ -9056,6 +10288,40 @@ export declare const roomContract: {
9056
10288
  notificationCount: number | null;
9057
10289
  };
9058
10290
  resolved: boolean;
10291
+ cxlog: {
10292
+ id: string;
10293
+ channel: string | null;
10294
+ direction: string | null;
10295
+ createdAt: Date;
10296
+ updatedAt: Date;
10297
+ deletedAt: Date | null;
10298
+ entityId: string;
10299
+ queueId: string | null;
10300
+ contactId: string | null;
10301
+ caseId: number;
10302
+ entityName: string;
10303
+ agentId: string | null;
10304
+ startedDate: Date | null;
10305
+ handledTime: number | null;
10306
+ firstResponseTime: number | null;
10307
+ wrapUpForm: {
10308
+ id: string;
10309
+ disposition: string | null;
10310
+ createdAt: Date;
10311
+ updatedAt: Date;
10312
+ deletedAt: Date | null;
10313
+ tags: {
10314
+ id: string;
10315
+ name: string;
10316
+ createdAt: Date;
10317
+ updatedAt: Date;
10318
+ deletedAt: Date | null;
10319
+ }[];
10320
+ callFrom: string | null;
10321
+ callTo: string | null;
10322
+ note: string | null;
10323
+ } | null;
10324
+ };
9059
10325
  assigneeId: string | null;
9060
10326
  subject: string;
9061
10327
  from: {
@@ -9466,6 +10732,40 @@ export declare const roomContract: {
9466
10732
  notificationCount: number | null;
9467
10733
  };
9468
10734
  resolved: boolean;
10735
+ cxlog: {
10736
+ id: string;
10737
+ channel: string | null;
10738
+ direction: string | null;
10739
+ createdAt: Date;
10740
+ updatedAt: Date;
10741
+ deletedAt: Date | null;
10742
+ entityId: string;
10743
+ queueId: string | null;
10744
+ contactId: string | null;
10745
+ caseId: number;
10746
+ entityName: string;
10747
+ agentId: string | null;
10748
+ startedDate: Date | null;
10749
+ handledTime: number | null;
10750
+ firstResponseTime: number | null;
10751
+ wrapUpForm: {
10752
+ id: string;
10753
+ disposition: string | null;
10754
+ createdAt: Date;
10755
+ updatedAt: Date;
10756
+ deletedAt: Date | null;
10757
+ tags: {
10758
+ id: string;
10759
+ name: string;
10760
+ createdAt: Date;
10761
+ updatedAt: Date;
10762
+ deletedAt: Date | null;
10763
+ }[];
10764
+ callFrom: string | null;
10765
+ callTo: string | null;
10766
+ note: string | null;
10767
+ } | null;
10768
+ };
9469
10769
  assigneeId: string | null;
9470
10770
  subject: string;
9471
10771
  from: {
@@ -9878,6 +11178,40 @@ export declare const roomContract: {
9878
11178
  notificationCount: number | null;
9879
11179
  };
9880
11180
  resolved: boolean;
11181
+ cxlog: {
11182
+ id: string;
11183
+ channel: string | null;
11184
+ direction: string | null;
11185
+ createdAt: Date;
11186
+ updatedAt: Date;
11187
+ deletedAt: Date | null;
11188
+ entityId: string;
11189
+ queueId: string | null;
11190
+ contactId: string | null;
11191
+ caseId: number;
11192
+ entityName: string;
11193
+ agentId: string | null;
11194
+ startedDate: Date | null;
11195
+ handledTime: number | null;
11196
+ firstResponseTime: number | null;
11197
+ wrapUpForm: {
11198
+ id: string;
11199
+ disposition: string | null;
11200
+ createdAt: Date;
11201
+ updatedAt: Date;
11202
+ deletedAt: Date | null;
11203
+ tags: {
11204
+ id: string;
11205
+ name: string;
11206
+ createdAt: Date;
11207
+ updatedAt: Date;
11208
+ deletedAt: Date | null;
11209
+ }[];
11210
+ callFrom: string | null;
11211
+ callTo: string | null;
11212
+ note: string | null;
11213
+ } | null;
11214
+ };
9881
11215
  assigneeId: string | null;
9882
11216
  subject: string;
9883
11217
  from: {
@@ -10291,6 +11625,40 @@ export declare const roomContract: {
10291
11625
  notificationCount: number | null;
10292
11626
  };
10293
11627
  resolved: boolean;
11628
+ cxlog: {
11629
+ id: string;
11630
+ channel: string | null;
11631
+ direction: string | null;
11632
+ createdAt: Date;
11633
+ updatedAt: Date;
11634
+ deletedAt: Date | null;
11635
+ entityId: string;
11636
+ queueId: string | null;
11637
+ contactId: string | null;
11638
+ caseId: number;
11639
+ entityName: string;
11640
+ agentId: string | null;
11641
+ startedDate: Date | null;
11642
+ handledTime: number | null;
11643
+ firstResponseTime: number | null;
11644
+ wrapUpForm: {
11645
+ id: string;
11646
+ disposition: string | null;
11647
+ createdAt: Date;
11648
+ updatedAt: Date;
11649
+ deletedAt: Date | null;
11650
+ tags: {
11651
+ id: string;
11652
+ name: string;
11653
+ createdAt: Date;
11654
+ updatedAt: Date;
11655
+ deletedAt: Date | null;
11656
+ }[];
11657
+ callFrom: string | null;
11658
+ callTo: string | null;
11659
+ note: string | null;
11660
+ } | null;
11661
+ };
10294
11662
  assigneeId: string | null;
10295
11663
  subject: string;
10296
11664
  from: {
@@ -10605,59 +11973,5 @@ export declare const roomContract: {
10605
11973
  };
10606
11974
  path: "mail/room/:id";
10607
11975
  };
10608
- markAsRead: {
10609
- summary: "Mark all the un read messages as read";
10610
- method: "GET";
10611
- pathParams: z.ZodObject<{
10612
- id: z.ZodString;
10613
- }, "strip", z.ZodTypeAny, {
10614
- id: string;
10615
- }, {
10616
- id: string;
10617
- }>;
10618
- responses: {
10619
- 401: z.ZodObject<{
10620
- message: z.ZodString;
10621
- error: z.ZodAny;
10622
- }, "strip", z.ZodTypeAny, {
10623
- message: string;
10624
- error?: any;
10625
- }, {
10626
- message: string;
10627
- error?: any;
10628
- }>;
10629
- 404: z.ZodObject<{
10630
- message: z.ZodString;
10631
- error: z.ZodAny;
10632
- }, "strip", z.ZodTypeAny, {
10633
- message: string;
10634
- error?: any;
10635
- }, {
10636
- message: string;
10637
- error?: any;
10638
- }>;
10639
- 422: z.ZodObject<{
10640
- message: z.ZodString;
10641
- error: z.ZodAny;
10642
- }, "strip", z.ZodTypeAny, {
10643
- message: string;
10644
- error?: any;
10645
- }, {
10646
- message: string;
10647
- error?: any;
10648
- }>;
10649
- 200: z.ZodObject<{
10650
- requestId: z.ZodString;
10651
- message: z.ZodString;
10652
- }, "strip", z.ZodTypeAny, {
10653
- message: string;
10654
- requestId: string;
10655
- }, {
10656
- message: string;
10657
- requestId: string;
10658
- }>;
10659
- };
10660
- path: "mail/room/:id";
10661
- };
10662
11976
  };
10663
11977
  //# sourceMappingURL=room-contract.d.ts.map