@kl1/contracts 1.3.7 → 1.3.9

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 (241) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +22 -23
  2. package/dist/api-contracts/src/activity-log/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/activity-log/schema.d.ts +5 -6
  4. package/dist/api-contracts/src/activity-log/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/attribute/index.d.ts +148 -164
  6. package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/attribute/schema.d.ts +8 -11
  8. package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
  9. package/dist/api-contracts/src/attribute-option/schema.d.ts +2 -3
  10. package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
  11. package/dist/api-contracts/src/auth/index.d.ts +24 -26
  12. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  13. package/dist/api-contracts/src/automation-queue/index.d.ts +170 -192
  14. package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
  15. package/dist/api-contracts/src/automation-queue/schema.d.ts +12 -15
  16. package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
  17. package/dist/api-contracts/src/aws/index.d.ts +6 -8
  18. package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
  19. package/dist/api-contracts/src/botpress/index.d.ts +13 -17
  20. package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/business-calendar/index.d.ts +28 -40
  22. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  23. package/dist/api-contracts/src/business-calendar/schema.d.ts +10 -15
  24. package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
  25. package/dist/api-contracts/src/call-log/schema.d.ts +4 -5
  26. package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
  27. package/dist/api-contracts/src/category/index.d.ts +109 -118
  28. package/dist/api-contracts/src/category/index.d.ts.map +1 -1
  29. package/dist/api-contracts/src/category/schema.d.ts +2 -3
  30. package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
  31. package/dist/api-contracts/src/channel/index.d.ts +1502 -1532
  32. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  33. package/dist/api-contracts/src/channel/schema.d.ts +54 -54
  34. package/dist/api-contracts/src/channel/validation.d.ts +72 -72
  35. package/dist/api-contracts/src/chat/index.d.ts +13141 -13645
  36. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  37. package/dist/api-contracts/src/chat/schema.d.ts +2308 -2467
  38. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  39. package/dist/api-contracts/src/chat/validation.d.ts +3331 -3414
  40. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  41. package/dist/api-contracts/src/comment/index.d.ts +299 -371
  42. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  43. package/dist/api-contracts/src/comment/schema.d.ts +75 -98
  44. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  45. package/dist/api-contracts/src/comment/validation.d.ts +1 -1
  46. package/dist/api-contracts/src/company/index.d.ts +109 -136
  47. package/dist/api-contracts/src/company/index.d.ts.map +1 -1
  48. package/dist/api-contracts/src/company/schema.d.ts +24 -33
  49. package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
  50. package/dist/api-contracts/src/company/validation.d.ts +62 -78
  51. package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
  52. package/dist/api-contracts/src/contact/index.d.ts +559 -677
  53. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  54. package/dist/api-contracts/src/contact/schema.d.ts +42 -56
  55. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  56. package/dist/api-contracts/src/contact/validation.d.ts +218 -299
  57. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  58. package/dist/api-contracts/src/contact-email/schema.d.ts +2 -3
  59. package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
  60. package/dist/api-contracts/src/contact-phone/schema.d.ts +2 -3
  61. package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
  62. package/dist/api-contracts/src/contract.d.ts +25882 -27370
  63. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  64. package/dist/api-contracts/src/custom-field/schema.d.ts +2 -3
  65. package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
  66. package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
  67. package/dist/api-contracts/src/custom-field-upload/schema.d.ts +2 -3
  68. package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
  69. package/dist/api-contracts/src/cx-intelligence/index.d.ts +47 -50
  70. package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -1
  71. package/dist/api-contracts/src/cx-log/index.d.ts +783 -831
  72. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  73. package/dist/api-contracts/src/cx-log/schema.d.ts +461 -514
  74. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  75. package/dist/api-contracts/src/cx-log/validation.d.ts +39 -39
  76. package/dist/api-contracts/src/dashboard/index.d.ts +361 -402
  77. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  78. package/dist/api-contracts/src/dashboard/schema.d.ts +4 -5
  79. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  80. package/dist/api-contracts/src/dashboard/validation.d.ts +18 -24
  81. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  82. package/dist/api-contracts/src/evaluate-form/index.d.ts +3 -4
  83. package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
  84. package/dist/api-contracts/src/evaluate-form/schema.d.ts +2 -3
  85. package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
  86. package/dist/api-contracts/src/export/index.d.ts +3 -4
  87. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  88. package/dist/api-contracts/src/extension/index.d.ts +112 -118
  89. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  90. package/dist/api-contracts/src/facebook-feed/index.d.ts +2211 -2291
  91. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  92. package/dist/api-contracts/src/facebook-feed/schema.d.ts +82 -94
  93. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  94. package/dist/api-contracts/src/facebook-feed/validation.d.ts +89 -106
  95. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  96. package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
  97. package/dist/api-contracts/src/group/schema.d.ts +2 -3
  98. package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
  99. package/dist/api-contracts/src/hold-label/index.d.ts +58 -77
  100. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  101. package/dist/api-contracts/src/hold-label/schema.d.ts +14 -20
  102. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  103. package/dist/api-contracts/src/index.d.ts +1 -0
  104. package/dist/api-contracts/src/index.d.ts.map +1 -1
  105. package/dist/api-contracts/src/instagram/index.d.ts +3873 -3933
  106. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  107. package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
  108. package/dist/api-contracts/src/line/index.d.ts +2073 -2133
  109. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  110. package/dist/api-contracts/src/line/schema.d.ts +11 -12
  111. package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
  112. package/dist/api-contracts/src/line/validation.d.ts +127 -127
  113. package/dist/api-contracts/src/log-form/schema.d.ts +2 -3
  114. package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
  115. package/dist/api-contracts/src/mail/account-contract.d.ts +174 -184
  116. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  117. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +3 -4
  118. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  119. package/dist/api-contracts/src/mail/mail-contract.d.ts +451 -502
  120. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  121. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +18 -24
  122. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  123. package/dist/api-contracts/src/mail/message-contract.d.ts +107 -113
  124. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  125. package/dist/api-contracts/src/mail/room-contract.d.ts +101 -130
  126. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  127. package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
  128. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +30 -36
  129. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  130. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +20 -27
  131. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  132. package/dist/api-contracts/src/messenger/index.d.ts +3873 -3935
  133. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  134. package/dist/api-contracts/src/messenger/validation.d.ts +89 -106
  135. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  136. package/dist/api-contracts/src/notification/index.d.ts +27 -34
  137. package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
  138. package/dist/api-contracts/src/notification/schema.d.ts +15 -18
  139. package/dist/api-contracts/src/notification/schema.d.ts.map +1 -1
  140. package/dist/api-contracts/src/notification/validation.d.ts +5 -6
  141. package/dist/api-contracts/src/notification/validation.d.ts.map +1 -1
  142. package/dist/api-contracts/src/permission/index.d.ts +17 -17
  143. package/dist/api-contracts/src/presence-status/index.d.ts +81 -84
  144. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  145. package/dist/api-contracts/src/public-api/index.d.ts +196 -260
  146. package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
  147. package/dist/api-contracts/src/public-api/schema.d.ts +34 -48
  148. package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
  149. package/dist/api-contracts/src/public-api/validation.d.ts +88 -113
  150. package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
  151. package/dist/api-contracts/src/role/index.d.ts +83 -88
  152. package/dist/api-contracts/src/role/index.d.ts.map +1 -1
  153. package/dist/api-contracts/src/sms/index.d.ts +345 -349
  154. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  155. package/dist/api-contracts/src/snippet/index.d.ts +54 -76
  156. package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
  157. package/dist/api-contracts/src/snippet/schema.d.ts +14 -21
  158. package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
  159. package/dist/api-contracts/src/snippet/validation.d.ts +4 -5
  160. package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
  161. package/dist/api-contracts/src/subscription/index.d.ts +51 -74
  162. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  163. package/dist/api-contracts/src/subscription/schema.d.ts +62 -93
  164. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  165. package/dist/api-contracts/src/tag/index.d.ts +72 -79
  166. package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
  167. package/dist/api-contracts/src/tag/schema.d.ts +2 -3
  168. package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
  169. package/dist/api-contracts/src/tag-group/schema.d.ts +2 -3
  170. package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
  171. package/dist/api-contracts/src/telegram/index.d.ts +1532 -1590
  172. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  173. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +50 -55
  174. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  175. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +7 -9
  176. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  177. package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
  178. package/dist/api-contracts/src/telephony-cdr/index.d.ts +1170 -1245
  179. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  180. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +196 -222
  181. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  182. package/dist/api-contracts/src/telephony-cdr/validation.d.ts +45 -52
  183. package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
  184. package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
  185. package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
  186. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +2 -3
  187. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
  188. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +2 -3
  189. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
  190. package/dist/api-contracts/src/tenant/schema.d.ts +2 -3
  191. package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
  192. package/dist/api-contracts/src/ticket/index.d.ts +679 -790
  193. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  194. package/dist/api-contracts/src/ticket/schema.d.ts +73 -99
  195. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  196. package/dist/api-contracts/src/ticket/validation.d.ts +55 -57
  197. package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
  198. package/dist/api-contracts/src/upload/index.d.ts +34 -36
  199. package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
  200. package/dist/api-contracts/src/upload/schema.d.ts +2 -3
  201. package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
  202. package/dist/api-contracts/src/user/index.d.ts +148 -159
  203. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  204. package/dist/api-contracts/src/user/schema.d.ts +5 -6
  205. package/dist/api-contracts/src/user/schema.d.ts.map +1 -1
  206. package/dist/api-contracts/src/user/validation.d.ts +4 -5
  207. package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
  208. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +31 -32
  209. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  210. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +7 -9
  211. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  212. package/dist/api-contracts/src/viber/index.d.ts +1785 -1843
  213. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  214. package/dist/api-contracts/src/webchat/index.d.ts +1551 -1609
  215. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  216. package/dist/api-contracts/src/whatsapp/index.d.ts +1920 -1982
  217. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  218. package/dist/api-contracts/src/whatsapp/validation.d.ts +6 -9
  219. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  220. package/dist/api-contracts/src/widget/index.d.ts +144 -155
  221. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  222. package/dist/api-contracts/src/widget/schema.d.ts +2 -3
  223. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  224. package/dist/api-contracts/src/widget/validation.d.ts +16 -16
  225. package/dist/api-contracts/src/workflow-rule/index.d.ts +2021 -2087
  226. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  227. package/dist/api-contracts/src/workflow-rule/schema.d.ts +2 -3
  228. package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
  229. package/dist/api-contracts/src/wrap-up-form/index.d.ts +147 -166
  230. package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
  231. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +6 -9
  232. package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
  233. package/dist/api-contracts/src/wrap-up-form/validation.d.ts +20 -21
  234. package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
  235. package/dist/api-contracts/utils.d.ts +3 -4
  236. package/dist/api-contracts/utils.d.ts.map +1 -1
  237. package/dist/index.js +53 -58
  238. package/dist/index.js.map +1 -1
  239. package/dist/index.mjs +52 -58
  240. package/dist/index.mjs.map +1 -1
  241. package/package.json +1 -1
@@ -4,7 +4,6 @@ export declare const mailContract: {
4
4
  body: null;
5
5
  summary: "Create a new room for new incoming mail";
6
6
  method: "POST";
7
- path: "ems/mail/room/";
8
7
  responses: {
9
8
  401: import("zod").ZodObject<{
10
9
  message: import("zod").ZodString;
@@ -36,11 +35,10 @@ export declare const mailContract: {
36
35
  message: string;
37
36
  error?: any;
38
37
  }>;
39
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
38
+ 200: import("zod").ZodObject<{
40
39
  requestId: import("zod").ZodString;
41
- }, {
42
40
  message: import("zod").ZodString;
43
- }>, "strip", import("zod").ZodTypeAny, {
41
+ }, "strip", import("zod").ZodTypeAny, {
44
42
  message: string;
45
43
  requestId: string;
46
44
  }, {
@@ -48,6 +46,7 @@ export declare const mailContract: {
48
46
  requestId: string;
49
47
  }>;
50
48
  };
49
+ path: "ems/mail/room/";
51
50
  };
52
51
  getAll: {
53
52
  summary: "Get mail rooms";
@@ -75,33 +74,32 @@ export declare const mailContract: {
75
74
  }, "strip", import("zod").ZodTypeAny, {
76
75
  page: number;
77
76
  pageSize: number;
78
- date?: string | undefined;
79
- contacts?: string[] | undefined;
80
77
  keyword?: {
81
78
  value: string;
82
79
  category: "message" | "contact";
83
80
  } | undefined;
84
- channels?: string[] | undefined;
85
81
  contactLabels?: string[] | undefined;
82
+ channels?: string[] | undefined;
83
+ date?: string | undefined;
84
+ contacts?: string[] | undefined;
86
85
  assignees?: string[] | undefined;
87
86
  level1?: "open" | "close" | "starred" | "inbox" | "sent" | "scheduled" | undefined;
88
87
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
89
88
  }, {
90
89
  page?: number | undefined;
91
- date?: string | undefined;
92
90
  pageSize?: number | undefined;
93
- contacts?: string[] | undefined;
94
91
  keyword?: {
95
92
  value: string;
96
93
  category: "message" | "contact";
97
94
  } | undefined;
98
- channels?: string[] | undefined;
99
95
  contactLabels?: string[] | undefined;
96
+ channels?: string[] | undefined;
97
+ date?: string | undefined;
98
+ contacts?: string[] | undefined;
100
99
  assignees?: string[] | undefined;
101
100
  level1?: "open" | "close" | "starred" | "inbox" | "sent" | "scheduled" | undefined;
102
101
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
103
102
  }>;
104
- path: "ems/mail/room";
105
103
  responses: {
106
104
  401: import("zod").ZodObject<{
107
105
  message: import("zod").ZodString;
@@ -133,9 +131,8 @@ export declare const mailContract: {
133
131
  message: string;
134
132
  error?: any;
135
133
  }>;
136
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
134
+ 200: import("zod").ZodObject<{
137
135
  requestId: import("zod").ZodString;
138
- }, {
139
136
  data: import("zod").ZodArray<import("zod").ZodObject<{
140
137
  id: import("zod").ZodString;
141
138
  createdAt: import("zod").ZodDate;
@@ -5280,12 +5277,11 @@ export declare const mailContract: {
5280
5277
  };
5281
5278
  }>;
5282
5279
  unReadMessageCount: import("zod").ZodNumber;
5283
- cxlog: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5280
+ cxlog: import("zod").ZodObject<{
5284
5281
  id: import("zod").ZodString;
5285
5282
  createdAt: import("zod").ZodDate;
5286
5283
  updatedAt: import("zod").ZodDate;
5287
5284
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5288
- }, {
5289
5285
  caseId: import("zod").ZodNumber;
5290
5286
  entityId: import("zod").ZodString;
5291
5287
  entityName: import("zod").ZodString;
@@ -5301,23 +5297,21 @@ export declare const mailContract: {
5301
5297
  firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
5302
5298
  resolutionTime: import("zod").ZodNullable<import("zod").ZodNumber>;
5303
5299
  fullResolutionTime: import("zod").ZodNullable<import("zod").ZodNumber>;
5304
- wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5300
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
5305
5301
  id: import("zod").ZodString;
5306
5302
  createdAt: import("zod").ZodDate;
5307
5303
  updatedAt: import("zod").ZodDate;
5308
5304
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5309
- }, {
5310
5305
  note: import("zod").ZodNullable<import("zod").ZodString>;
5311
5306
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
5312
5307
  type: import("zod").ZodString;
5313
- tags: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5308
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
5314
5309
  id: import("zod").ZodString;
5315
5310
  createdAt: import("zod").ZodDate;
5316
5311
  updatedAt: import("zod").ZodDate;
5317
5312
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5318
- }, {
5319
5313
  name: import("zod").ZodString;
5320
- }>, "strip", import("zod").ZodTypeAny, {
5314
+ }, "strip", import("zod").ZodTypeAny, {
5321
5315
  name: string;
5322
5316
  id: string;
5323
5317
  createdAt: Date;
@@ -5330,12 +5324,11 @@ export declare const mailContract: {
5330
5324
  updatedAt: Date;
5331
5325
  deletedAt: Date | null;
5332
5326
  }>, "many">;
5333
- categories: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5327
+ categories: import("zod").ZodArray<import("zod").ZodObject<{
5334
5328
  id: import("zod").ZodString;
5335
5329
  createdAt: import("zod").ZodDate;
5336
5330
  updatedAt: import("zod").ZodDate;
5337
5331
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5338
- }, {
5339
5332
  value: import("zod").ZodString;
5340
5333
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
5341
5334
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -5388,7 +5381,7 @@ export declare const mailContract: {
5388
5381
  childCategoryList: any[];
5389
5382
  }[];
5390
5383
  }>, "many">;
5391
- }>, "strip", import("zod").ZodTypeAny, {
5384
+ }, "strip", import("zod").ZodTypeAny, {
5392
5385
  id: string;
5393
5386
  value: string;
5394
5387
  createdAt: Date;
@@ -5467,7 +5460,7 @@ export declare const mailContract: {
5467
5460
  numberValue: number | null;
5468
5461
  dateValue: Date | null;
5469
5462
  }>, "many">>>;
5470
- }>, "strip", import("zod").ZodTypeAny, {
5463
+ }, "strip", import("zod").ZodTypeAny, {
5471
5464
  type: string;
5472
5465
  id: string;
5473
5466
  disposition: string | null;
@@ -5570,25 +5563,23 @@ export declare const mailContract: {
5570
5563
  dateValue: Date | null;
5571
5564
  }[] | null | undefined;
5572
5565
  }>>;
5573
- holdLogs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5566
+ holdLogs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
5574
5567
  id: import("zod").ZodString;
5575
5568
  createdAt: import("zod").ZodDate;
5576
5569
  updatedAt: import("zod").ZodDate;
5577
5570
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5578
- }, {
5579
5571
  startedAt: import("zod").ZodString;
5580
5572
  endedAt: import("zod").ZodNullable<import("zod").ZodString>;
5581
5573
  duration: import("zod").ZodNullable<import("zod").ZodNumber>;
5582
- holdLabel: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5574
+ holdLabel: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
5583
5575
  id: import("zod").ZodString;
5584
5576
  createdAt: import("zod").ZodDate;
5585
5577
  updatedAt: import("zod").ZodDate;
5586
5578
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5587
- }, {
5588
5579
  name: import("zod").ZodString;
5589
5580
  position: import("zod").ZodNumber;
5590
5581
  isDefault: import("zod").ZodDefault<import("zod").ZodBoolean>;
5591
- }>, "strip", import("zod").ZodTypeAny, {
5582
+ }, "strip", import("zod").ZodTypeAny, {
5592
5583
  name: string;
5593
5584
  id: string;
5594
5585
  position: number;
@@ -5605,14 +5596,14 @@ export declare const mailContract: {
5605
5596
  deletedAt: Date | null;
5606
5597
  isDefault?: boolean | undefined;
5607
5598
  }>>>;
5608
- }>, "strip", import("zod").ZodTypeAny, {
5599
+ }, "strip", import("zod").ZodTypeAny, {
5609
5600
  id: string;
5610
- duration: number | null;
5611
5601
  createdAt: Date;
5612
5602
  updatedAt: Date;
5613
5603
  deletedAt: Date | null;
5614
5604
  startedAt: string;
5615
5605
  endedAt: string | null;
5606
+ duration: number | null;
5616
5607
  holdLabel?: {
5617
5608
  name: string;
5618
5609
  id: string;
@@ -5624,12 +5615,12 @@ export declare const mailContract: {
5624
5615
  } | null | undefined;
5625
5616
  }, {
5626
5617
  id: string;
5627
- duration: number | null;
5628
5618
  createdAt: Date;
5629
5619
  updatedAt: Date;
5630
5620
  deletedAt: Date | null;
5631
5621
  startedAt: string;
5632
5622
  endedAt: string | null;
5623
+ duration: number | null;
5633
5624
  holdLabel?: {
5634
5625
  name: string;
5635
5626
  id: string;
@@ -5640,7 +5631,7 @@ export declare const mailContract: {
5640
5631
  isDefault?: boolean | undefined;
5641
5632
  } | null | undefined;
5642
5633
  }>, "many">>>;
5643
- }>, "strip", import("zod").ZodTypeAny, {
5634
+ }, "strip", import("zod").ZodTypeAny, {
5644
5635
  id: string;
5645
5636
  channel: string | null;
5646
5637
  direction: string | null;
@@ -5714,12 +5705,12 @@ export declare const mailContract: {
5714
5705
  } | null;
5715
5706
  holdLogs?: {
5716
5707
  id: string;
5717
- duration: number | null;
5718
5708
  createdAt: Date;
5719
5709
  updatedAt: Date;
5720
5710
  deletedAt: Date | null;
5721
5711
  startedAt: string;
5722
5712
  endedAt: string | null;
5713
+ duration: number | null;
5723
5714
  holdLabel?: {
5724
5715
  name: string;
5725
5716
  id: string;
@@ -5804,12 +5795,12 @@ export declare const mailContract: {
5804
5795
  } | null;
5805
5796
  holdLogs?: {
5806
5797
  id: string;
5807
- duration: number | null;
5808
5798
  createdAt: Date;
5809
5799
  updatedAt: Date;
5810
5800
  deletedAt: Date | null;
5811
5801
  startedAt: string;
5812
5802
  endedAt: string | null;
5803
+ duration: number | null;
5813
5804
  holdLabel?: {
5814
5805
  name: string;
5815
5806
  id: string;
@@ -6091,12 +6082,12 @@ export declare const mailContract: {
6091
6082
  } | null;
6092
6083
  holdLogs?: {
6093
6084
  id: string;
6094
- duration: number | null;
6095
6085
  createdAt: Date;
6096
6086
  updatedAt: Date;
6097
6087
  deletedAt: Date | null;
6098
6088
  startedAt: string;
6099
6089
  endedAt: string | null;
6090
+ duration: number | null;
6100
6091
  holdLabel?: {
6101
6092
  name: string;
6102
6093
  id: string;
@@ -7060,12 +7051,12 @@ export declare const mailContract: {
7060
7051
  } | null;
7061
7052
  holdLogs?: {
7062
7053
  id: string;
7063
- duration: number | null;
7064
7054
  createdAt: Date;
7065
7055
  updatedAt: Date;
7066
7056
  deletedAt: Date | null;
7067
7057
  startedAt: string;
7068
7058
  endedAt: string | null;
7059
+ duration: number | null;
7069
7060
  holdLabel?: {
7070
7061
  name: string;
7071
7062
  id: string;
@@ -7763,7 +7754,7 @@ export declare const mailContract: {
7763
7754
  total: import("zod").ZodNumber;
7764
7755
  page: import("zod").ZodNumber;
7765
7756
  pageSize: import("zod").ZodNumber;
7766
- }>, "strip", import("zod").ZodTypeAny, {
7757
+ }, "strip", import("zod").ZodTypeAny, {
7767
7758
  data: {
7768
7759
  id: string;
7769
7760
  direction: string;
@@ -8034,12 +8025,12 @@ export declare const mailContract: {
8034
8025
  } | null;
8035
8026
  holdLogs?: {
8036
8027
  id: string;
8037
- duration: number | null;
8038
8028
  createdAt: Date;
8039
8029
  updatedAt: Date;
8040
8030
  deletedAt: Date | null;
8041
8031
  startedAt: string;
8042
8032
  endedAt: string | null;
8033
+ duration: number | null;
8043
8034
  holdLabel?: {
8044
8035
  name: string;
8045
8036
  id: string;
@@ -9009,12 +9000,12 @@ export declare const mailContract: {
9009
9000
  } | null;
9010
9001
  holdLogs?: {
9011
9002
  id: string;
9012
- duration: number | null;
9013
9003
  createdAt: Date;
9014
9004
  updatedAt: Date;
9015
9005
  deletedAt: Date | null;
9016
9006
  startedAt: string;
9017
9007
  endedAt: string | null;
9008
+ duration: number | null;
9018
9009
  holdLabel?: {
9019
9010
  name: string;
9020
9011
  id: string;
@@ -9715,11 +9706,11 @@ export declare const mailContract: {
9715
9706
  requestId: string;
9716
9707
  }>;
9717
9708
  };
9709
+ path: "ems/mail/room";
9718
9710
  };
9719
9711
  getRoomCounts: {
9720
9712
  summary: "Get unread message counts for filter like \"open\", \"close\", \"inbox\" and etc...";
9721
9713
  method: "GET";
9722
- path: "ems/mail/room/count_rooms/all";
9723
9714
  responses: {
9724
9715
  401: import("zod").ZodObject<{
9725
9716
  message: import("zod").ZodString;
@@ -9751,9 +9742,8 @@ export declare const mailContract: {
9751
9742
  message: string;
9752
9743
  error?: any;
9753
9744
  }>;
9754
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
9745
+ 200: import("zod").ZodObject<{
9755
9746
  requestId: import("zod").ZodString;
9756
- }, {
9757
9747
  data: import("zod").ZodObject<{
9758
9748
  general: import("zod").ZodArray<import("zod").ZodObject<{
9759
9749
  name: import("zod").ZodString;
@@ -9932,14 +9922,13 @@ export declare const mailContract: {
9932
9922
  count: number;
9933
9923
  }>, "many">;
9934
9924
  contactLabels: import("zod").ZodArray<import("zod").ZodObject<{
9935
- label: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
9925
+ label: import("zod").ZodObject<{
9936
9926
  id: import("zod").ZodString;
9937
9927
  createdAt: import("zod").ZodDate;
9938
9928
  updatedAt: import("zod").ZodDate;
9939
9929
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
9940
- }, {
9941
9930
  name: import("zod").ZodString;
9942
- }>, "strip", import("zod").ZodTypeAny, {
9931
+ }, "strip", import("zod").ZodTypeAny, {
9943
9932
  name: string;
9944
9933
  id: string;
9945
9934
  createdAt: Date;
@@ -10063,7 +10052,7 @@ export declare const mailContract: {
10063
10052
  count: number;
10064
10053
  }[];
10065
10054
  }>;
10066
- }>, "strip", import("zod").ZodTypeAny, {
10055
+ }, "strip", import("zod").ZodTypeAny, {
10067
10056
  data: {
10068
10057
  general: {
10069
10058
  name: string;
@@ -10161,6 +10150,7 @@ export declare const mailContract: {
10161
10150
  requestId: string;
10162
10151
  }>;
10163
10152
  };
10153
+ path: "ems/mail/room/count_rooms/all";
10164
10154
  };
10165
10155
  getAttachments: {
10166
10156
  summary: "Get all the attachments of a room";
@@ -10172,7 +10162,6 @@ export declare const mailContract: {
10172
10162
  }, {
10173
10163
  id: string;
10174
10164
  }>;
10175
- path: "ems/mail/room/:id/attachments";
10176
10165
  responses: {
10177
10166
  401: import("zod").ZodObject<{
10178
10167
  message: import("zod").ZodString;
@@ -10204,9 +10193,8 @@ export declare const mailContract: {
10204
10193
  message: string;
10205
10194
  error?: any;
10206
10195
  }>;
10207
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10196
+ 200: import("zod").ZodObject<{
10208
10197
  requestId: import("zod").ZodString;
10209
- }, {
10210
10198
  data: import("zod").ZodArray<import("zod").ZodObject<{
10211
10199
  fileName: import("zod").ZodString;
10212
10200
  fileType: import("zod").ZodString;
@@ -10214,19 +10202,18 @@ export declare const mailContract: {
10214
10202
  uploadId: import("zod").ZodString;
10215
10203
  messageId: import("zod").ZodString;
10216
10204
  roomId: import("zod").ZodString;
10217
- upload: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10205
+ upload: import("zod").ZodObject<{
10218
10206
  id: import("zod").ZodString;
10219
10207
  createdAt: import("zod").ZodDate;
10220
10208
  updatedAt: import("zod").ZodDate;
10221
10209
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
10222
- }, {
10223
10210
  bucketName: import("zod").ZodString;
10224
10211
  fileName: import("zod").ZodString;
10225
10212
  fileSize: import("zod").ZodNumber;
10226
10213
  fileKey: import("zod").ZodString;
10227
10214
  fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
10228
10215
  status: import("zod").ZodNullable<import("zod").ZodString>;
10229
- }>, "strip", import("zod").ZodTypeAny, {
10216
+ }, "strip", import("zod").ZodTypeAny, {
10230
10217
  id: string;
10231
10218
  status: string | null;
10232
10219
  createdAt: Date;
@@ -10288,7 +10275,7 @@ export declare const mailContract: {
10288
10275
  messageId: string;
10289
10276
  emailEngineAttachmentId: string;
10290
10277
  }>, "many">;
10291
- }>, "strip", import("zod").ZodTypeAny, {
10278
+ }, "strip", import("zod").ZodTypeAny, {
10292
10279
  data: {
10293
10280
  fileName: string;
10294
10281
  fileType: string;
@@ -10334,6 +10321,7 @@ export declare const mailContract: {
10334
10321
  requestId: string;
10335
10322
  }>;
10336
10323
  };
10324
+ path: "ems/mail/room/:id/attachments";
10337
10325
  };
10338
10326
  getParticipants: {
10339
10327
  summary: "Get all the attachments of a room";
@@ -10345,7 +10333,6 @@ export declare const mailContract: {
10345
10333
  }, {
10346
10334
  id: string;
10347
10335
  }>;
10348
- path: "ems/mail/room/:id/participants";
10349
10336
  responses: {
10350
10337
  401: import("zod").ZodObject<{
10351
10338
  message: import("zod").ZodString;
@@ -10377,9 +10364,8 @@ export declare const mailContract: {
10377
10364
  message: string;
10378
10365
  error?: any;
10379
10366
  }>;
10380
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10367
+ 200: import("zod").ZodObject<{
10381
10368
  requestId: import("zod").ZodString;
10382
- }, {
10383
10369
  data: import("zod").ZodArray<import("zod").ZodObject<{
10384
10370
  id: import("zod").ZodString;
10385
10371
  createdAt: import("zod").ZodDate;
@@ -10535,7 +10521,7 @@ export declare const mailContract: {
10535
10521
  isNewContact: boolean;
10536
10522
  };
10537
10523
  }>, "many">;
10538
- }>, "strip", import("zod").ZodTypeAny, {
10524
+ }, "strip", import("zod").ZodTypeAny, {
10539
10525
  data: {
10540
10526
  id: string;
10541
10527
  createdAt: Date;
@@ -10603,6 +10589,7 @@ export declare const mailContract: {
10603
10589
  requestId: string;
10604
10590
  }>;
10605
10591
  };
10592
+ path: "ems/mail/room/:id/participants";
10606
10593
  };
10607
10594
  addNewEmailToContact: {
10608
10595
  body: import("zod").ZodObject<{
@@ -10620,7 +10607,6 @@ export declare const mailContract: {
10620
10607
  }>;
10621
10608
  summary: "Add a new email of a mail room participant to an existing contact";
10622
10609
  method: "POST";
10623
- path: "ems/mail/room/add_email_to_contact";
10624
10610
  responses: {
10625
10611
  401: import("zod").ZodObject<{
10626
10612
  message: import("zod").ZodString;
@@ -10652,11 +10638,10 @@ export declare const mailContract: {
10652
10638
  message: string;
10653
10639
  error?: any;
10654
10640
  }>;
10655
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10641
+ 200: import("zod").ZodObject<{
10656
10642
  requestId: import("zod").ZodString;
10657
- }, {
10658
10643
  data: import("zod").ZodString;
10659
- }>, "strip", import("zod").ZodTypeAny, {
10644
+ }, "strip", import("zod").ZodTypeAny, {
10660
10645
  data: string;
10661
10646
  requestId: string;
10662
10647
  }, {
@@ -10664,6 +10649,7 @@ export declare const mailContract: {
10664
10649
  requestId: string;
10665
10650
  }>;
10666
10651
  };
10652
+ path: "ems/mail/room/add_email_to_contact";
10667
10653
  };
10668
10654
  update: {
10669
10655
  body: import("zod").ZodObject<{
@@ -10675,16 +10661,16 @@ export declare const mailContract: {
10675
10661
  selfAssign: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
10676
10662
  }, "strip", import("zod").ZodTypeAny, {
10677
10663
  disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
10678
- tags?: string[] | undefined;
10679
- note?: string | undefined;
10680
10664
  assigneeId?: string | null | undefined;
10665
+ note?: string | undefined;
10666
+ tags?: string[] | undefined;
10681
10667
  handover?: boolean | null | undefined;
10682
10668
  selfAssign?: boolean | null | undefined;
10683
10669
  }, {
10684
10670
  disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
10685
- tags?: string[] | undefined;
10686
- note?: string | undefined;
10687
10671
  assigneeId?: string | null | undefined;
10672
+ note?: string | undefined;
10673
+ tags?: string[] | undefined;
10688
10674
  handover?: boolean | "false" | "true" | null | undefined;
10689
10675
  selfAssign?: boolean | "false" | "true" | null | undefined;
10690
10676
  }>;
@@ -10697,7 +10683,6 @@ export declare const mailContract: {
10697
10683
  }, {
10698
10684
  id: string;
10699
10685
  }>;
10700
- path: "ems/mail/room/:id";
10701
10686
  responses: {
10702
10687
  401: import("zod").ZodObject<{
10703
10688
  message: import("zod").ZodString;
@@ -10729,9 +10714,8 @@ export declare const mailContract: {
10729
10714
  message: string;
10730
10715
  error?: any;
10731
10716
  }>;
10732
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10717
+ 200: import("zod").ZodObject<{
10733
10718
  requestId: import("zod").ZodString;
10734
- }, {
10735
10719
  data: import("zod").ZodObject<{
10736
10720
  id: import("zod").ZodString;
10737
10721
  createdAt: import("zod").ZodDate;
@@ -15876,12 +15860,11 @@ export declare const mailContract: {
15876
15860
  };
15877
15861
  }>;
15878
15862
  unReadMessageCount: import("zod").ZodNumber;
15879
- cxlog: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15863
+ cxlog: import("zod").ZodObject<{
15880
15864
  id: import("zod").ZodString;
15881
15865
  createdAt: import("zod").ZodDate;
15882
15866
  updatedAt: import("zod").ZodDate;
15883
15867
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15884
- }, {
15885
15868
  caseId: import("zod").ZodNumber;
15886
15869
  entityId: import("zod").ZodString;
15887
15870
  entityName: import("zod").ZodString;
@@ -15897,23 +15880,21 @@ export declare const mailContract: {
15897
15880
  firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
15898
15881
  resolutionTime: import("zod").ZodNullable<import("zod").ZodNumber>;
15899
15882
  fullResolutionTime: import("zod").ZodNullable<import("zod").ZodNumber>;
15900
- wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15883
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
15901
15884
  id: import("zod").ZodString;
15902
15885
  createdAt: import("zod").ZodDate;
15903
15886
  updatedAt: import("zod").ZodDate;
15904
15887
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15905
- }, {
15906
15888
  note: import("zod").ZodNullable<import("zod").ZodString>;
15907
15889
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
15908
15890
  type: import("zod").ZodString;
15909
- tags: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15891
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
15910
15892
  id: import("zod").ZodString;
15911
15893
  createdAt: import("zod").ZodDate;
15912
15894
  updatedAt: import("zod").ZodDate;
15913
15895
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15914
- }, {
15915
15896
  name: import("zod").ZodString;
15916
- }>, "strip", import("zod").ZodTypeAny, {
15897
+ }, "strip", import("zod").ZodTypeAny, {
15917
15898
  name: string;
15918
15899
  id: string;
15919
15900
  createdAt: Date;
@@ -15926,12 +15907,11 @@ export declare const mailContract: {
15926
15907
  updatedAt: Date;
15927
15908
  deletedAt: Date | null;
15928
15909
  }>, "many">;
15929
- categories: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15910
+ categories: import("zod").ZodArray<import("zod").ZodObject<{
15930
15911
  id: import("zod").ZodString;
15931
15912
  createdAt: import("zod").ZodDate;
15932
15913
  updatedAt: import("zod").ZodDate;
15933
15914
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15934
- }, {
15935
15915
  value: import("zod").ZodString;
15936
15916
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
15937
15917
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -15984,7 +15964,7 @@ export declare const mailContract: {
15984
15964
  childCategoryList: any[];
15985
15965
  }[];
15986
15966
  }>, "many">;
15987
- }>, "strip", import("zod").ZodTypeAny, {
15967
+ }, "strip", import("zod").ZodTypeAny, {
15988
15968
  id: string;
15989
15969
  value: string;
15990
15970
  createdAt: Date;
@@ -16063,7 +16043,7 @@ export declare const mailContract: {
16063
16043
  numberValue: number | null;
16064
16044
  dateValue: Date | null;
16065
16045
  }>, "many">>>;
16066
- }>, "strip", import("zod").ZodTypeAny, {
16046
+ }, "strip", import("zod").ZodTypeAny, {
16067
16047
  type: string;
16068
16048
  id: string;
16069
16049
  disposition: string | null;
@@ -16166,25 +16146,23 @@ export declare const mailContract: {
16166
16146
  dateValue: Date | null;
16167
16147
  }[] | null | undefined;
16168
16148
  }>>;
16169
- holdLogs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
16149
+ holdLogs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
16170
16150
  id: import("zod").ZodString;
16171
16151
  createdAt: import("zod").ZodDate;
16172
16152
  updatedAt: import("zod").ZodDate;
16173
16153
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
16174
- }, {
16175
16154
  startedAt: import("zod").ZodString;
16176
16155
  endedAt: import("zod").ZodNullable<import("zod").ZodString>;
16177
16156
  duration: import("zod").ZodNullable<import("zod").ZodNumber>;
16178
- holdLabel: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
16157
+ holdLabel: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
16179
16158
  id: import("zod").ZodString;
16180
16159
  createdAt: import("zod").ZodDate;
16181
16160
  updatedAt: import("zod").ZodDate;
16182
16161
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
16183
- }, {
16184
16162
  name: import("zod").ZodString;
16185
16163
  position: import("zod").ZodNumber;
16186
16164
  isDefault: import("zod").ZodDefault<import("zod").ZodBoolean>;
16187
- }>, "strip", import("zod").ZodTypeAny, {
16165
+ }, "strip", import("zod").ZodTypeAny, {
16188
16166
  name: string;
16189
16167
  id: string;
16190
16168
  position: number;
@@ -16201,14 +16179,14 @@ export declare const mailContract: {
16201
16179
  deletedAt: Date | null;
16202
16180
  isDefault?: boolean | undefined;
16203
16181
  }>>>;
16204
- }>, "strip", import("zod").ZodTypeAny, {
16182
+ }, "strip", import("zod").ZodTypeAny, {
16205
16183
  id: string;
16206
- duration: number | null;
16207
16184
  createdAt: Date;
16208
16185
  updatedAt: Date;
16209
16186
  deletedAt: Date | null;
16210
16187
  startedAt: string;
16211
16188
  endedAt: string | null;
16189
+ duration: number | null;
16212
16190
  holdLabel?: {
16213
16191
  name: string;
16214
16192
  id: string;
@@ -16220,12 +16198,12 @@ export declare const mailContract: {
16220
16198
  } | null | undefined;
16221
16199
  }, {
16222
16200
  id: string;
16223
- duration: number | null;
16224
16201
  createdAt: Date;
16225
16202
  updatedAt: Date;
16226
16203
  deletedAt: Date | null;
16227
16204
  startedAt: string;
16228
16205
  endedAt: string | null;
16206
+ duration: number | null;
16229
16207
  holdLabel?: {
16230
16208
  name: string;
16231
16209
  id: string;
@@ -16236,7 +16214,7 @@ export declare const mailContract: {
16236
16214
  isDefault?: boolean | undefined;
16237
16215
  } | null | undefined;
16238
16216
  }>, "many">>>;
16239
- }>, "strip", import("zod").ZodTypeAny, {
16217
+ }, "strip", import("zod").ZodTypeAny, {
16240
16218
  id: string;
16241
16219
  channel: string | null;
16242
16220
  direction: string | null;
@@ -16310,12 +16288,12 @@ export declare const mailContract: {
16310
16288
  } | null;
16311
16289
  holdLogs?: {
16312
16290
  id: string;
16313
- duration: number | null;
16314
16291
  createdAt: Date;
16315
16292
  updatedAt: Date;
16316
16293
  deletedAt: Date | null;
16317
16294
  startedAt: string;
16318
16295
  endedAt: string | null;
16296
+ duration: number | null;
16319
16297
  holdLabel?: {
16320
16298
  name: string;
16321
16299
  id: string;
@@ -16400,12 +16378,12 @@ export declare const mailContract: {
16400
16378
  } | null;
16401
16379
  holdLogs?: {
16402
16380
  id: string;
16403
- duration: number | null;
16404
16381
  createdAt: Date;
16405
16382
  updatedAt: Date;
16406
16383
  deletedAt: Date | null;
16407
16384
  startedAt: string;
16408
16385
  endedAt: string | null;
16386
+ duration: number | null;
16409
16387
  holdLabel?: {
16410
16388
  name: string;
16411
16389
  id: string;
@@ -16687,12 +16665,12 @@ export declare const mailContract: {
16687
16665
  } | null;
16688
16666
  holdLogs?: {
16689
16667
  id: string;
16690
- duration: number | null;
16691
16668
  createdAt: Date;
16692
16669
  updatedAt: Date;
16693
16670
  deletedAt: Date | null;
16694
16671
  startedAt: string;
16695
16672
  endedAt: string | null;
16673
+ duration: number | null;
16696
16674
  holdLabel?: {
16697
16675
  name: string;
16698
16676
  id: string;
@@ -17656,12 +17634,12 @@ export declare const mailContract: {
17656
17634
  } | null;
17657
17635
  holdLogs?: {
17658
17636
  id: string;
17659
- duration: number | null;
17660
17637
  createdAt: Date;
17661
17638
  updatedAt: Date;
17662
17639
  deletedAt: Date | null;
17663
17640
  startedAt: string;
17664
17641
  endedAt: string | null;
17642
+ duration: number | null;
17665
17643
  holdLabel?: {
17666
17644
  name: string;
17667
17645
  id: string;
@@ -18356,7 +18334,7 @@ export declare const mailContract: {
18356
18334
  };
18357
18335
  unReadMessageCount: number;
18358
18336
  }>;
18359
- }>, "strip", import("zod").ZodTypeAny, {
18337
+ }, "strip", import("zod").ZodTypeAny, {
18360
18338
  data: {
18361
18339
  id: string;
18362
18340
  direction: string;
@@ -18627,12 +18605,12 @@ export declare const mailContract: {
18627
18605
  } | null;
18628
18606
  holdLogs?: {
18629
18607
  id: string;
18630
- duration: number | null;
18631
18608
  createdAt: Date;
18632
18609
  updatedAt: Date;
18633
18610
  deletedAt: Date | null;
18634
18611
  startedAt: string;
18635
18612
  endedAt: string | null;
18613
+ duration: number | null;
18636
18614
  holdLabel?: {
18637
18615
  name: string;
18638
18616
  id: string;
@@ -19599,12 +19577,12 @@ export declare const mailContract: {
19599
19577
  } | null;
19600
19578
  holdLogs?: {
19601
19579
  id: string;
19602
- duration: number | null;
19603
19580
  createdAt: Date;
19604
19581
  updatedAt: Date;
19605
19582
  deletedAt: Date | null;
19606
19583
  startedAt: string;
19607
19584
  endedAt: string | null;
19585
+ duration: number | null;
19608
19586
  holdLabel?: {
19609
19587
  name: string;
19610
19588
  id: string;
@@ -20302,6 +20280,7 @@ export declare const mailContract: {
20302
20280
  requestId: string;
20303
20281
  }>;
20304
20282
  };
20283
+ path: "ems/mail/room/:id";
20305
20284
  };
20306
20285
  markAsRead: {
20307
20286
  body: import("zod").ZodObject<{
@@ -20313,7 +20292,6 @@ export declare const mailContract: {
20313
20292
  }>;
20314
20293
  summary: "Mark all the unread messages of a room as read";
20315
20294
  method: "POST";
20316
- path: "ems/mail/room/mark_as_read";
20317
20295
  responses: {
20318
20296
  401: import("zod").ZodObject<{
20319
20297
  message: import("zod").ZodString;
@@ -20345,11 +20323,10 @@ export declare const mailContract: {
20345
20323
  message: string;
20346
20324
  error?: any;
20347
20325
  }>;
20348
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
20326
+ 200: import("zod").ZodObject<{
20349
20327
  requestId: import("zod").ZodString;
20350
- }, {
20351
20328
  message: import("zod").ZodString;
20352
- }>, "strip", import("zod").ZodTypeAny, {
20329
+ }, "strip", import("zod").ZodTypeAny, {
20353
20330
  message: string;
20354
20331
  requestId: string;
20355
20332
  }, {
@@ -20357,6 +20334,7 @@ export declare const mailContract: {
20357
20334
  requestId: string;
20358
20335
  }>;
20359
20336
  };
20337
+ path: "ems/mail/room/mark_as_read";
20360
20338
  };
20361
20339
  getById: {
20362
20340
  summary: "Get a mail room by id";
@@ -20368,7 +20346,6 @@ export declare const mailContract: {
20368
20346
  }, {
20369
20347
  id: string;
20370
20348
  }>;
20371
- path: "ems/mail/room/:id";
20372
20349
  responses: {
20373
20350
  401: import("zod").ZodObject<{
20374
20351
  message: import("zod").ZodString;
@@ -20400,9 +20377,8 @@ export declare const mailContract: {
20400
20377
  message: string;
20401
20378
  error?: any;
20402
20379
  }>;
20403
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
20380
+ 200: import("zod").ZodObject<{
20404
20381
  requestId: import("zod").ZodString;
20405
- }, {
20406
20382
  data: import("zod").ZodObject<{
20407
20383
  id: import("zod").ZodString;
20408
20384
  createdAt: import("zod").ZodDate;
@@ -25547,12 +25523,11 @@ export declare const mailContract: {
25547
25523
  };
25548
25524
  }>;
25549
25525
  unReadMessageCount: import("zod").ZodNumber;
25550
- cxlog: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25526
+ cxlog: import("zod").ZodObject<{
25551
25527
  id: import("zod").ZodString;
25552
25528
  createdAt: import("zod").ZodDate;
25553
25529
  updatedAt: import("zod").ZodDate;
25554
25530
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25555
- }, {
25556
25531
  caseId: import("zod").ZodNumber;
25557
25532
  entityId: import("zod").ZodString;
25558
25533
  entityName: import("zod").ZodString;
@@ -25568,23 +25543,21 @@ export declare const mailContract: {
25568
25543
  firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
25569
25544
  resolutionTime: import("zod").ZodNullable<import("zod").ZodNumber>;
25570
25545
  fullResolutionTime: import("zod").ZodNullable<import("zod").ZodNumber>;
25571
- wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25546
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
25572
25547
  id: import("zod").ZodString;
25573
25548
  createdAt: import("zod").ZodDate;
25574
25549
  updatedAt: import("zod").ZodDate;
25575
25550
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25576
- }, {
25577
25551
  note: import("zod").ZodNullable<import("zod").ZodString>;
25578
25552
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
25579
25553
  type: import("zod").ZodString;
25580
- tags: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25554
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
25581
25555
  id: import("zod").ZodString;
25582
25556
  createdAt: import("zod").ZodDate;
25583
25557
  updatedAt: import("zod").ZodDate;
25584
25558
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25585
- }, {
25586
25559
  name: import("zod").ZodString;
25587
- }>, "strip", import("zod").ZodTypeAny, {
25560
+ }, "strip", import("zod").ZodTypeAny, {
25588
25561
  name: string;
25589
25562
  id: string;
25590
25563
  createdAt: Date;
@@ -25597,12 +25570,11 @@ export declare const mailContract: {
25597
25570
  updatedAt: Date;
25598
25571
  deletedAt: Date | null;
25599
25572
  }>, "many">;
25600
- categories: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25573
+ categories: import("zod").ZodArray<import("zod").ZodObject<{
25601
25574
  id: import("zod").ZodString;
25602
25575
  createdAt: import("zod").ZodDate;
25603
25576
  updatedAt: import("zod").ZodDate;
25604
25577
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25605
- }, {
25606
25578
  value: import("zod").ZodString;
25607
25579
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
25608
25580
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -25655,7 +25627,7 @@ export declare const mailContract: {
25655
25627
  childCategoryList: any[];
25656
25628
  }[];
25657
25629
  }>, "many">;
25658
- }>, "strip", import("zod").ZodTypeAny, {
25630
+ }, "strip", import("zod").ZodTypeAny, {
25659
25631
  id: string;
25660
25632
  value: string;
25661
25633
  createdAt: Date;
@@ -25734,7 +25706,7 @@ export declare const mailContract: {
25734
25706
  numberValue: number | null;
25735
25707
  dateValue: Date | null;
25736
25708
  }>, "many">>>;
25737
- }>, "strip", import("zod").ZodTypeAny, {
25709
+ }, "strip", import("zod").ZodTypeAny, {
25738
25710
  type: string;
25739
25711
  id: string;
25740
25712
  disposition: string | null;
@@ -25837,25 +25809,23 @@ export declare const mailContract: {
25837
25809
  dateValue: Date | null;
25838
25810
  }[] | null | undefined;
25839
25811
  }>>;
25840
- holdLogs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25812
+ holdLogs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
25841
25813
  id: import("zod").ZodString;
25842
25814
  createdAt: import("zod").ZodDate;
25843
25815
  updatedAt: import("zod").ZodDate;
25844
25816
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25845
- }, {
25846
25817
  startedAt: import("zod").ZodString;
25847
25818
  endedAt: import("zod").ZodNullable<import("zod").ZodString>;
25848
25819
  duration: import("zod").ZodNullable<import("zod").ZodNumber>;
25849
- holdLabel: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25820
+ holdLabel: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
25850
25821
  id: import("zod").ZodString;
25851
25822
  createdAt: import("zod").ZodDate;
25852
25823
  updatedAt: import("zod").ZodDate;
25853
25824
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25854
- }, {
25855
25825
  name: import("zod").ZodString;
25856
25826
  position: import("zod").ZodNumber;
25857
25827
  isDefault: import("zod").ZodDefault<import("zod").ZodBoolean>;
25858
- }>, "strip", import("zod").ZodTypeAny, {
25828
+ }, "strip", import("zod").ZodTypeAny, {
25859
25829
  name: string;
25860
25830
  id: string;
25861
25831
  position: number;
@@ -25872,14 +25842,14 @@ export declare const mailContract: {
25872
25842
  deletedAt: Date | null;
25873
25843
  isDefault?: boolean | undefined;
25874
25844
  }>>>;
25875
- }>, "strip", import("zod").ZodTypeAny, {
25845
+ }, "strip", import("zod").ZodTypeAny, {
25876
25846
  id: string;
25877
- duration: number | null;
25878
25847
  createdAt: Date;
25879
25848
  updatedAt: Date;
25880
25849
  deletedAt: Date | null;
25881
25850
  startedAt: string;
25882
25851
  endedAt: string | null;
25852
+ duration: number | null;
25883
25853
  holdLabel?: {
25884
25854
  name: string;
25885
25855
  id: string;
@@ -25891,12 +25861,12 @@ export declare const mailContract: {
25891
25861
  } | null | undefined;
25892
25862
  }, {
25893
25863
  id: string;
25894
- duration: number | null;
25895
25864
  createdAt: Date;
25896
25865
  updatedAt: Date;
25897
25866
  deletedAt: Date | null;
25898
25867
  startedAt: string;
25899
25868
  endedAt: string | null;
25869
+ duration: number | null;
25900
25870
  holdLabel?: {
25901
25871
  name: string;
25902
25872
  id: string;
@@ -25907,7 +25877,7 @@ export declare const mailContract: {
25907
25877
  isDefault?: boolean | undefined;
25908
25878
  } | null | undefined;
25909
25879
  }>, "many">>>;
25910
- }>, "strip", import("zod").ZodTypeAny, {
25880
+ }, "strip", import("zod").ZodTypeAny, {
25911
25881
  id: string;
25912
25882
  channel: string | null;
25913
25883
  direction: string | null;
@@ -25981,12 +25951,12 @@ export declare const mailContract: {
25981
25951
  } | null;
25982
25952
  holdLogs?: {
25983
25953
  id: string;
25984
- duration: number | null;
25985
25954
  createdAt: Date;
25986
25955
  updatedAt: Date;
25987
25956
  deletedAt: Date | null;
25988
25957
  startedAt: string;
25989
25958
  endedAt: string | null;
25959
+ duration: number | null;
25990
25960
  holdLabel?: {
25991
25961
  name: string;
25992
25962
  id: string;
@@ -26071,12 +26041,12 @@ export declare const mailContract: {
26071
26041
  } | null;
26072
26042
  holdLogs?: {
26073
26043
  id: string;
26074
- duration: number | null;
26075
26044
  createdAt: Date;
26076
26045
  updatedAt: Date;
26077
26046
  deletedAt: Date | null;
26078
26047
  startedAt: string;
26079
26048
  endedAt: string | null;
26049
+ duration: number | null;
26080
26050
  holdLabel?: {
26081
26051
  name: string;
26082
26052
  id: string;
@@ -26358,12 +26328,12 @@ export declare const mailContract: {
26358
26328
  } | null;
26359
26329
  holdLogs?: {
26360
26330
  id: string;
26361
- duration: number | null;
26362
26331
  createdAt: Date;
26363
26332
  updatedAt: Date;
26364
26333
  deletedAt: Date | null;
26365
26334
  startedAt: string;
26366
26335
  endedAt: string | null;
26336
+ duration: number | null;
26367
26337
  holdLabel?: {
26368
26338
  name: string;
26369
26339
  id: string;
@@ -27327,12 +27297,12 @@ export declare const mailContract: {
27327
27297
  } | null;
27328
27298
  holdLogs?: {
27329
27299
  id: string;
27330
- duration: number | null;
27331
27300
  createdAt: Date;
27332
27301
  updatedAt: Date;
27333
27302
  deletedAt: Date | null;
27334
27303
  startedAt: string;
27335
27304
  endedAt: string | null;
27305
+ duration: number | null;
27336
27306
  holdLabel?: {
27337
27307
  name: string;
27338
27308
  id: string;
@@ -28027,7 +27997,7 @@ export declare const mailContract: {
28027
27997
  };
28028
27998
  unReadMessageCount: number;
28029
27999
  }>;
28030
- }>, "strip", import("zod").ZodTypeAny, {
28000
+ }, "strip", import("zod").ZodTypeAny, {
28031
28001
  data: {
28032
28002
  id: string;
28033
28003
  direction: string;
@@ -28298,12 +28268,12 @@ export declare const mailContract: {
28298
28268
  } | null;
28299
28269
  holdLogs?: {
28300
28270
  id: string;
28301
- duration: number | null;
28302
28271
  createdAt: Date;
28303
28272
  updatedAt: Date;
28304
28273
  deletedAt: Date | null;
28305
28274
  startedAt: string;
28306
28275
  endedAt: string | null;
28276
+ duration: number | null;
28307
28277
  holdLabel?: {
28308
28278
  name: string;
28309
28279
  id: string;
@@ -29270,12 +29240,12 @@ export declare const mailContract: {
29270
29240
  } | null;
29271
29241
  holdLogs?: {
29272
29242
  id: string;
29273
- duration: number | null;
29274
29243
  createdAt: Date;
29275
29244
  updatedAt: Date;
29276
29245
  deletedAt: Date | null;
29277
29246
  startedAt: string;
29278
29247
  endedAt: string | null;
29248
+ duration: number | null;
29279
29249
  holdLabel?: {
29280
29250
  name: string;
29281
29251
  id: string;
@@ -29973,6 +29943,7 @@ export declare const mailContract: {
29973
29943
  requestId: string;
29974
29944
  }>;
29975
29945
  };
29946
+ path: "ems/mail/room/:id";
29976
29947
  };
29977
29948
  };
29978
29949
  message: {
@@ -30066,14 +30037,6 @@ export declare const mailContract: {
30066
30037
  address: string;
30067
30038
  name?: string | undefined;
30068
30039
  };
30069
- attachments?: {
30070
- fileName: string;
30071
- fileType: string;
30072
- fileKey: string;
30073
- bucketName: string;
30074
- fileSize: number;
30075
- presignedUrl: string;
30076
- }[] | undefined;
30077
30040
  cc?: {
30078
30041
  address: string;
30079
30042
  name?: string | undefined;
@@ -30087,6 +30050,14 @@ export declare const mailContract: {
30087
30050
  action: "forward" | "reply";
30088
30051
  messageId: string;
30089
30052
  } | undefined;
30053
+ attachments?: {
30054
+ fileName: string;
30055
+ fileType: string;
30056
+ fileKey: string;
30057
+ bucketName: string;
30058
+ fileSize: number;
30059
+ presignedUrl: string;
30060
+ }[] | undefined;
30090
30061
  }, {
30091
30062
  html: string;
30092
30063
  text: string;
@@ -30099,14 +30070,6 @@ export declare const mailContract: {
30099
30070
  address: string;
30100
30071
  name?: string | undefined;
30101
30072
  };
30102
- attachments?: {
30103
- fileName: string;
30104
- fileType: string;
30105
- fileKey: string;
30106
- bucketName: string;
30107
- fileSize: number;
30108
- presignedUrl: string;
30109
- }[] | undefined;
30110
30073
  cc?: {
30111
30074
  address: string;
30112
30075
  name?: string | undefined;
@@ -30120,10 +30083,17 @@ export declare const mailContract: {
30120
30083
  action: "forward" | "reply";
30121
30084
  messageId: string;
30122
30085
  } | undefined;
30086
+ attachments?: {
30087
+ fileName: string;
30088
+ fileType: string;
30089
+ fileKey: string;
30090
+ bucketName: string;
30091
+ fileSize: number;
30092
+ presignedUrl: string;
30093
+ }[] | undefined;
30123
30094
  }>;
30124
30095
  summary: "Submit a message such as compose, reply or forward";
30125
30096
  method: "POST";
30126
- path: "ems/mail/message/submit";
30127
30097
  responses: {
30128
30098
  500: import("zod").ZodObject<{
30129
30099
  message: import("zod").ZodString;
@@ -30165,9 +30135,8 @@ export declare const mailContract: {
30165
30135
  message: string;
30166
30136
  error?: any;
30167
30137
  }>;
30168
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
30138
+ 200: import("zod").ZodObject<{
30169
30139
  requestId: import("zod").ZodString;
30170
- }, {
30171
30140
  data: import("zod").ZodObject<{
30172
30141
  response: import("zod").ZodString;
30173
30142
  messageId: import("zod").ZodString;
@@ -30184,7 +30153,7 @@ export declare const mailContract: {
30184
30153
  messageId: string;
30185
30154
  sendAt: string;
30186
30155
  }>;
30187
- }>, "strip", import("zod").ZodTypeAny, {
30156
+ }, "strip", import("zod").ZodTypeAny, {
30188
30157
  data: {
30189
30158
  response: string;
30190
30159
  queueId: string;
@@ -30202,11 +30171,11 @@ export declare const mailContract: {
30202
30171
  requestId: string;
30203
30172
  }>;
30204
30173
  };
30174
+ path: "ems/mail/message/submit";
30205
30175
  };
30206
30176
  getTotalUnreadMessageCount: {
30207
30177
  summary: "Get total unread messages counts";
30208
30178
  method: "GET";
30209
- path: "ems/mail/message/new_message_count";
30210
30179
  responses: {
30211
30180
  401: import("zod").ZodObject<{
30212
30181
  message: import("zod").ZodString;
@@ -30238,9 +30207,8 @@ export declare const mailContract: {
30238
30207
  message: string;
30239
30208
  error?: any;
30240
30209
  }>;
30241
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
30210
+ 200: import("zod").ZodObject<{
30242
30211
  requestId: import("zod").ZodString;
30243
- }, {
30244
30212
  data: import("zod").ZodObject<{
30245
30213
  count: import("zod").ZodNumber;
30246
30214
  }, "strip", import("zod").ZodTypeAny, {
@@ -30248,7 +30216,7 @@ export declare const mailContract: {
30248
30216
  }, {
30249
30217
  count: number;
30250
30218
  }>;
30251
- }>, "strip", import("zod").ZodTypeAny, {
30219
+ }, "strip", import("zod").ZodTypeAny, {
30252
30220
  data: {
30253
30221
  count: number;
30254
30222
  };
@@ -30260,6 +30228,7 @@ export declare const mailContract: {
30260
30228
  requestId: string;
30261
30229
  }>;
30262
30230
  };
30231
+ path: "ems/mail/message/new_message_count";
30263
30232
  };
30264
30233
  getById: {
30265
30234
  summary: "Get a message";
@@ -30271,7 +30240,6 @@ export declare const mailContract: {
30271
30240
  }, {
30272
30241
  id: string;
30273
30242
  }>;
30274
- path: "ems/mail/message/:id";
30275
30243
  responses: {
30276
30244
  401: import("zod").ZodObject<{
30277
30245
  message: import("zod").ZodString;
@@ -30303,9 +30271,8 @@ export declare const mailContract: {
30303
30271
  message: string;
30304
30272
  error?: any;
30305
30273
  }>;
30306
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
30274
+ 200: import("zod").ZodObject<{
30307
30275
  requestId: import("zod").ZodString;
30308
- }, {
30309
30276
  data: import("zod").ZodObject<{
30310
30277
  id: import("zod").ZodString;
30311
30278
  createdAt: import("zod").ZodDate;
@@ -31375,7 +31342,7 @@ export declare const mailContract: {
31375
31342
  starred: boolean;
31376
31343
  seemsLikeNew: boolean;
31377
31344
  }>;
31378
- }>, "strip", import("zod").ZodTypeAny, {
31345
+ }, "strip", import("zod").ZodTypeAny, {
31379
31346
  data: {
31380
31347
  id: string;
31381
31348
  direction: string;
@@ -31719,6 +31686,7 @@ export declare const mailContract: {
31719
31686
  requestId: string;
31720
31687
  }>;
31721
31688
  };
31689
+ path: "ems/mail/message/:id";
31722
31690
  };
31723
31691
  update: {
31724
31692
  body: import("zod").ZodObject<{
@@ -32455,13 +32423,24 @@ export declare const mailContract: {
32455
32423
  }>, "many">>;
32456
32424
  }, "strip", import("zod").ZodTypeAny, {
32457
32425
  id?: string | undefined;
32458
- direction?: string | undefined;
32459
- action?: string | undefined;
32460
- date?: Date | undefined;
32461
32426
  createdAt?: Date | undefined;
32462
32427
  updatedAt?: Date | undefined;
32463
32428
  deletedAt?: Date | null | undefined;
32464
32429
  roomId?: string | undefined;
32430
+ subject?: string | undefined;
32431
+ textPlain?: string | undefined;
32432
+ textHtml?: string | undefined;
32433
+ textId?: string | undefined;
32434
+ emailEngineEmailId?: string | undefined;
32435
+ emailEngineMessageId?: string | undefined;
32436
+ emailEngineReplyTo?: string | null | undefined;
32437
+ direction?: string | undefined;
32438
+ date?: Date | undefined;
32439
+ action?: string | undefined;
32440
+ unseen?: boolean | undefined;
32441
+ sendAt?: Date | undefined;
32442
+ starred?: boolean | undefined;
32443
+ seemsLikeNew?: boolean | undefined;
32465
32444
  from?: {
32466
32445
  id: string;
32467
32446
  createdAt: Date;
@@ -32493,32 +32472,69 @@ export declare const mailContract: {
32493
32472
  isNewContact: boolean;
32494
32473
  };
32495
32474
  }[] | undefined;
32496
- attachments?: {
32497
- id: string;
32498
- createdAt: Date;
32499
- updatedAt: Date;
32500
- deletedAt: Date | null;
32501
- fileName: string;
32502
- fileType: string;
32503
- uploadId: string;
32504
- upload: {
32505
- id: string;
32506
- createdAt: Date;
32507
- updatedAt: Date;
32508
- deletedAt: Date | null;
32509
- extensionName: string;
32510
- fileName: string;
32511
- fileKey: string;
32512
- bucketName: string;
32513
- fileSize: number;
32514
- fileUrl: string;
32515
- };
32516
- roomId: string;
32517
- messageId: string;
32518
- emailEngineAttachmentId: string;
32519
- }[] | undefined;
32520
- subject?: string | undefined;
32521
- to?: {
32475
+ to?: {
32476
+ id: string;
32477
+ createdAt: Date;
32478
+ updatedAt: Date;
32479
+ deletedAt: Date | null;
32480
+ roomId: string;
32481
+ messageId: string;
32482
+ mailUserId: string;
32483
+ mailUser: {
32484
+ name: string;
32485
+ id: string;
32486
+ address: string;
32487
+ createdAt: Date;
32488
+ updatedAt: Date;
32489
+ deletedAt: Date | null;
32490
+ contact: {
32491
+ name: string;
32492
+ id: string;
32493
+ channel: string | null;
32494
+ address: string | null;
32495
+ createdAt: Date;
32496
+ updatedAt: Date;
32497
+ deletedAt: Date | null;
32498
+ notes: string | null;
32499
+ contactProfile: string | null;
32500
+ socialProfileUrl: string | null;
32501
+ };
32502
+ contactId: string;
32503
+ isNewContact: boolean;
32504
+ };
32505
+ }[] | undefined;
32506
+ cc?: {
32507
+ id: string;
32508
+ createdAt: Date;
32509
+ updatedAt: Date;
32510
+ deletedAt: Date | null;
32511
+ roomId: string;
32512
+ messageId: string;
32513
+ mailUserId: string;
32514
+ mailUser: {
32515
+ name: string;
32516
+ id: string;
32517
+ address: string;
32518
+ createdAt: Date;
32519
+ updatedAt: Date;
32520
+ deletedAt: Date | null;
32521
+ contact: {
32522
+ name: string;
32523
+ id: string;
32524
+ channel: string | null;
32525
+ address: string | null;
32526
+ createdAt: Date;
32527
+ updatedAt: Date;
32528
+ deletedAt: Date | null;
32529
+ notes: string | null;
32530
+ contactProfile: string | null;
32531
+ socialProfileUrl: string | null;
32532
+ };
32533
+ contactId: string;
32534
+ isNewContact: boolean;
32535
+ };
32536
+ }[] | undefined;
32537
+ bcc?: {
32522
32538
  id: string;
32523
32539
  createdAt: Date;
32524
32540
  updatedAt: Date;
@@ -32549,87 +32565,50 @@ export declare const mailContract: {
32549
32565
  isNewContact: boolean;
32550
32566
  };
32551
32567
  }[] | undefined;
32552
- cc?: {
32568
+ attachments?: {
32553
32569
  id: string;
32554
32570
  createdAt: Date;
32555
32571
  updatedAt: Date;
32556
32572
  deletedAt: Date | null;
32557
- roomId: string;
32558
- messageId: string;
32559
- mailUserId: string;
32560
- mailUser: {
32561
- name: string;
32573
+ fileName: string;
32574
+ fileType: string;
32575
+ uploadId: string;
32576
+ upload: {
32562
32577
  id: string;
32563
- address: string;
32564
32578
  createdAt: Date;
32565
32579
  updatedAt: Date;
32566
32580
  deletedAt: Date | null;
32567
- contact: {
32568
- name: string;
32569
- id: string;
32570
- channel: string | null;
32571
- address: string | null;
32572
- createdAt: Date;
32573
- updatedAt: Date;
32574
- deletedAt: Date | null;
32575
- notes: string | null;
32576
- contactProfile: string | null;
32577
- socialProfileUrl: string | null;
32578
- };
32579
- contactId: string;
32580
- isNewContact: boolean;
32581
+ extensionName: string;
32582
+ fileName: string;
32583
+ fileKey: string;
32584
+ bucketName: string;
32585
+ fileSize: number;
32586
+ fileUrl: string;
32581
32587
  };
32582
- }[] | undefined;
32583
- bcc?: {
32584
- id: string;
32585
- createdAt: Date;
32586
- updatedAt: Date;
32587
- deletedAt: Date | null;
32588
32588
  roomId: string;
32589
32589
  messageId: string;
32590
- mailUserId: string;
32591
- mailUser: {
32592
- name: string;
32593
- id: string;
32594
- address: string;
32595
- createdAt: Date;
32596
- updatedAt: Date;
32597
- deletedAt: Date | null;
32598
- contact: {
32599
- name: string;
32600
- id: string;
32601
- channel: string | null;
32602
- address: string | null;
32603
- createdAt: Date;
32604
- updatedAt: Date;
32605
- deletedAt: Date | null;
32606
- notes: string | null;
32607
- contactProfile: string | null;
32608
- socialProfileUrl: string | null;
32609
- };
32610
- contactId: string;
32611
- isNewContact: boolean;
32612
- };
32590
+ emailEngineAttachmentId: string;
32613
32591
  }[] | undefined;
32614
- sendAt?: Date | undefined;
32592
+ }, {
32593
+ id?: string | undefined;
32594
+ createdAt?: Date | undefined;
32595
+ updatedAt?: Date | undefined;
32596
+ deletedAt?: Date | null | undefined;
32597
+ roomId?: string | undefined;
32598
+ subject?: string | undefined;
32615
32599
  textPlain?: string | undefined;
32616
32600
  textHtml?: string | undefined;
32617
32601
  textId?: string | undefined;
32618
32602
  emailEngineEmailId?: string | undefined;
32619
32603
  emailEngineMessageId?: string | undefined;
32620
32604
  emailEngineReplyTo?: string | null | undefined;
32605
+ direction?: string | undefined;
32606
+ date?: Date | undefined;
32607
+ action?: string | undefined;
32621
32608
  unseen?: boolean | undefined;
32609
+ sendAt?: Date | undefined;
32622
32610
  starred?: boolean | undefined;
32623
32611
  seemsLikeNew?: boolean | undefined;
32624
- }, {
32625
- id?: string | undefined;
32626
- direction?: string | undefined;
32627
- action?: string | undefined;
32628
- date?: Date | undefined;
32629
- createdAt?: Date | undefined;
32630
- updatedAt?: Date | undefined;
32631
- deletedAt?: Date | null | undefined;
32632
- roomId?: string | undefined;
32633
32612
  from?: {
32634
32613
  id: string;
32635
32614
  createdAt: Date;
@@ -32661,31 +32640,6 @@ export declare const mailContract: {
32661
32640
  isNewContact: boolean;
32662
32641
  };
32663
32642
  }[] | undefined;
32664
- attachments?: {
32665
- id: string;
32666
- createdAt: Date;
32667
- updatedAt: Date;
32668
- deletedAt: Date | null;
32669
- fileName: string;
32670
- fileType: string;
32671
- uploadId: string;
32672
- upload: {
32673
- id: string;
32674
- createdAt: Date;
32675
- updatedAt: Date;
32676
- deletedAt: Date | null;
32677
- extensionName: string;
32678
- fileName: string;
32679
- fileKey: string;
32680
- bucketName: string;
32681
- fileSize: number;
32682
- fileUrl: string;
32683
- };
32684
- roomId: string;
32685
- messageId: string;
32686
- emailEngineAttachmentId: string;
32687
- }[] | undefined;
32688
- subject?: string | undefined;
32689
32643
  to?: {
32690
32644
  id: string;
32691
32645
  createdAt: Date;
@@ -32779,16 +32733,30 @@ export declare const mailContract: {
32779
32733
  isNewContact: boolean;
32780
32734
  };
32781
32735
  }[] | undefined;
32782
- sendAt?: Date | undefined;
32783
- textPlain?: string | undefined;
32784
- textHtml?: string | undefined;
32785
- textId?: string | undefined;
32786
- emailEngineEmailId?: string | undefined;
32787
- emailEngineMessageId?: string | undefined;
32788
- emailEngineReplyTo?: string | null | undefined;
32789
- unseen?: boolean | undefined;
32790
- starred?: boolean | undefined;
32791
- seemsLikeNew?: boolean | undefined;
32736
+ attachments?: {
32737
+ id: string;
32738
+ createdAt: Date;
32739
+ updatedAt: Date;
32740
+ deletedAt: Date | null;
32741
+ fileName: string;
32742
+ fileType: string;
32743
+ uploadId: string;
32744
+ upload: {
32745
+ id: string;
32746
+ createdAt: Date;
32747
+ updatedAt: Date;
32748
+ deletedAt: Date | null;
32749
+ extensionName: string;
32750
+ fileName: string;
32751
+ fileKey: string;
32752
+ bucketName: string;
32753
+ fileSize: number;
32754
+ fileUrl: string;
32755
+ };
32756
+ roomId: string;
32757
+ messageId: string;
32758
+ emailEngineAttachmentId: string;
32759
+ }[] | undefined;
32792
32760
  }>;
32793
32761
  summary: "Update a message";
32794
32762
  method: "PATCH";
@@ -32799,7 +32767,6 @@ export declare const mailContract: {
32799
32767
  }, {
32800
32768
  id: string;
32801
32769
  }>;
32802
- path: "ems/mail/message/:id";
32803
32770
  responses: {
32804
32771
  401: import("zod").ZodObject<{
32805
32772
  message: import("zod").ZodString;
@@ -32831,9 +32798,8 @@ export declare const mailContract: {
32831
32798
  message: string;
32832
32799
  error?: any;
32833
32800
  }>;
32834
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
32801
+ 200: import("zod").ZodObject<{
32835
32802
  requestId: import("zod").ZodString;
32836
- }, {
32837
32803
  data: import("zod").ZodObject<{
32838
32804
  id: import("zod").ZodString;
32839
32805
  createdAt: import("zod").ZodDate;
@@ -33903,7 +33869,7 @@ export declare const mailContract: {
33903
33869
  starred: boolean;
33904
33870
  seemsLikeNew: boolean;
33905
33871
  }>;
33906
- }>, "strip", import("zod").ZodTypeAny, {
33872
+ }, "strip", import("zod").ZodTypeAny, {
33907
33873
  data: {
33908
33874
  id: string;
33909
33875
  direction: string;
@@ -34247,6 +34213,7 @@ export declare const mailContract: {
34247
34213
  requestId: string;
34248
34214
  }>;
34249
34215
  };
34216
+ path: "ems/mail/message/:id";
34250
34217
  };
34251
34218
  delete: {
34252
34219
  body: null;
@@ -34259,7 +34226,6 @@ export declare const mailContract: {
34259
34226
  }, {
34260
34227
  id: string;
34261
34228
  }>;
34262
- path: "ems/mail/message/:id";
34263
34229
  responses: {
34264
34230
  401: import("zod").ZodObject<{
34265
34231
  message: import("zod").ZodString;
@@ -34291,9 +34257,8 @@ export declare const mailContract: {
34291
34257
  message: string;
34292
34258
  error?: any;
34293
34259
  }>;
34294
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
34260
+ 200: import("zod").ZodObject<{
34295
34261
  requestId: import("zod").ZodString;
34296
- }, {
34297
34262
  data: import("zod").ZodObject<{
34298
34263
  id: import("zod").ZodString;
34299
34264
  createdAt: import("zod").ZodDate;
@@ -35363,7 +35328,7 @@ export declare const mailContract: {
35363
35328
  starred: boolean;
35364
35329
  seemsLikeNew: boolean;
35365
35330
  }>;
35366
- }>, "strip", import("zod").ZodTypeAny, {
35331
+ }, "strip", import("zod").ZodTypeAny, {
35367
35332
  data: {
35368
35333
  id: string;
35369
35334
  direction: string;
@@ -35707,6 +35672,7 @@ export declare const mailContract: {
35707
35672
  requestId: string;
35708
35673
  }>;
35709
35674
  };
35675
+ path: "ems/mail/message/:id";
35710
35676
  };
35711
35677
  cancelScheduledMessage: {
35712
35678
  body: null;
@@ -35719,7 +35685,6 @@ export declare const mailContract: {
35719
35685
  }, {
35720
35686
  id: string;
35721
35687
  }>;
35722
- path: "ems/mail/message/scheduled_message/:id";
35723
35688
  responses: {
35724
35689
  401: import("zod").ZodObject<{
35725
35690
  message: import("zod").ZodString;
@@ -35751,9 +35716,8 @@ export declare const mailContract: {
35751
35716
  message: string;
35752
35717
  error?: any;
35753
35718
  }>;
35754
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35719
+ 200: import("zod").ZodObject<{
35755
35720
  requestId: import("zod").ZodString;
35756
- }, {
35757
35721
  data: import("zod").ZodObject<{
35758
35722
  totalMessagesCount: import("zod").ZodNumber;
35759
35723
  }, "strip", import("zod").ZodTypeAny, {
@@ -35761,7 +35725,7 @@ export declare const mailContract: {
35761
35725
  }, {
35762
35726
  totalMessagesCount: number;
35763
35727
  }>;
35764
- }>, "strip", import("zod").ZodTypeAny, {
35728
+ }, "strip", import("zod").ZodTypeAny, {
35765
35729
  data: {
35766
35730
  totalMessagesCount: number;
35767
35731
  };
@@ -35773,6 +35737,7 @@ export declare const mailContract: {
35773
35737
  requestId: string;
35774
35738
  }>;
35775
35739
  };
35740
+ path: "ems/mail/message/scheduled_message/:id";
35776
35741
  };
35777
35742
  };
35778
35743
  account: {
@@ -35795,23 +35760,6 @@ export declare const mailContract: {
35795
35760
  }>;
35796
35761
  summary: "Register a new mail account";
35797
35762
  method: "POST";
35798
- path: "ems/mail/account";
35799
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35800
- 'x-tenant': import("zod").ZodString;
35801
- 'x-service-token': import("zod").ZodString;
35802
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
35803
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
35804
- }, "strip", import("zod").ZodTypeAny, {
35805
- 'x-tenant': string;
35806
- 'x-service-token': string;
35807
- 'x-client-timezone': string;
35808
- 'x-code'?: string | undefined;
35809
- }, {
35810
- 'x-tenant': string;
35811
- 'x-service-token': string;
35812
- 'x-code'?: string | undefined;
35813
- 'x-client-timezone'?: string | undefined;
35814
- }>>>;
35815
35763
  responses: {
35816
35764
  401: import("zod").ZodObject<{
35817
35765
  message: import("zod").ZodString;
@@ -35843,9 +35791,8 @@ export declare const mailContract: {
35843
35791
  message: string;
35844
35792
  error?: any;
35845
35793
  }>;
35846
- 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35794
+ 201: import("zod").ZodObject<{
35847
35795
  requestId: import("zod").ZodString;
35848
- }, {
35849
35796
  data: import("zod").ZodObject<{
35850
35797
  id: import("zod").ZodString;
35851
35798
  createdAt: import("zod").ZodDate;
@@ -35950,7 +35897,7 @@ export declare const mailContract: {
35950
35897
  useTlsForImap: boolean;
35951
35898
  };
35952
35899
  }>;
35953
- }>, "strip", import("zod").ZodTypeAny, {
35900
+ }, "strip", import("zod").ZodTypeAny, {
35954
35901
  data: {
35955
35902
  name: string;
35956
35903
  id: string;
@@ -36029,21 +35976,7 @@ export declare const mailContract: {
36029
35976
  message: string;
36030
35977
  }>;
36031
35978
  };
36032
- };
36033
- generateOAuth2AuthenticationLink: {
36034
- body: import("zod").ZodObject<{
36035
- oAuth2AppId: import("zod").ZodString;
36036
- mailServerId: import("zod").ZodString;
36037
- }, "strip", import("zod").ZodTypeAny, {
36038
- mailServerId: string;
36039
- oAuth2AppId: string;
36040
- }, {
36041
- mailServerId: string;
36042
- oAuth2AppId: string;
36043
- }>;
36044
- summary: "Generate oauth2 authentication form link";
36045
- method: "POST";
36046
- path: "ems/mail/account/oauth2_authentication_form_link";
35979
+ path: "ems/mail/account";
36047
35980
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36048
35981
  'x-tenant': import("zod").ZodString;
36049
35982
  'x-service-token': import("zod").ZodString;
@@ -36060,6 +35993,20 @@ export declare const mailContract: {
36060
35993
  'x-code'?: string | undefined;
36061
35994
  'x-client-timezone'?: string | undefined;
36062
35995
  }>>>;
35996
+ };
35997
+ generateOAuth2AuthenticationLink: {
35998
+ body: import("zod").ZodObject<{
35999
+ oAuth2AppId: import("zod").ZodString;
36000
+ mailServerId: import("zod").ZodString;
36001
+ }, "strip", import("zod").ZodTypeAny, {
36002
+ mailServerId: string;
36003
+ oAuth2AppId: string;
36004
+ }, {
36005
+ mailServerId: string;
36006
+ oAuth2AppId: string;
36007
+ }>;
36008
+ summary: "Generate oauth2 authentication form link";
36009
+ method: "POST";
36063
36010
  responses: {
36064
36011
  401: import("zod").ZodObject<{
36065
36012
  message: import("zod").ZodString;
@@ -36091,9 +36038,8 @@ export declare const mailContract: {
36091
36038
  message: string;
36092
36039
  error?: any;
36093
36040
  }>;
36094
- 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36041
+ 201: import("zod").ZodObject<{
36095
36042
  requestId: import("zod").ZodString;
36096
- }, {
36097
36043
  data: import("zod").ZodObject<{
36098
36044
  url: import("zod").ZodString;
36099
36045
  account: import("zod").ZodString;
@@ -36104,7 +36050,7 @@ export declare const mailContract: {
36104
36050
  url: string;
36105
36051
  account: string;
36106
36052
  }>;
36107
- }>, "strip", import("zod").ZodTypeAny, {
36053
+ }, "strip", import("zod").ZodTypeAny, {
36108
36054
  data: {
36109
36055
  url: string;
36110
36056
  account: string;
@@ -36139,11 +36085,7 @@ export declare const mailContract: {
36139
36085
  message: string;
36140
36086
  }>;
36141
36087
  };
36142
- };
36143
- sync: {
36144
- summary: "Sync all accounts state from email engine to system";
36145
- method: "GET";
36146
- path: "ems/mail/account/sync";
36088
+ path: "ems/mail/account/oauth2_authentication_form_link";
36147
36089
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36148
36090
  'x-tenant': import("zod").ZodString;
36149
36091
  'x-service-token': import("zod").ZodString;
@@ -36160,6 +36102,10 @@ export declare const mailContract: {
36160
36102
  'x-code'?: string | undefined;
36161
36103
  'x-client-timezone'?: string | undefined;
36162
36104
  }>>>;
36105
+ };
36106
+ sync: {
36107
+ summary: "Sync all accounts state from email engine to system";
36108
+ method: "GET";
36163
36109
  responses: {
36164
36110
  401: import("zod").ZodObject<{
36165
36111
  message: import("zod").ZodString;
@@ -36191,11 +36137,10 @@ export declare const mailContract: {
36191
36137
  message: string;
36192
36138
  error?: any;
36193
36139
  }>;
36194
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36140
+ 200: import("zod").ZodObject<{
36195
36141
  requestId: import("zod").ZodString;
36196
- }, {
36197
36142
  message: import("zod").ZodString;
36198
- }>, "strip", import("zod").ZodTypeAny, {
36143
+ }, "strip", import("zod").ZodTypeAny, {
36199
36144
  message: string;
36200
36145
  requestId: string;
36201
36146
  }, {
@@ -36203,18 +36148,7 @@ export declare const mailContract: {
36203
36148
  requestId: string;
36204
36149
  }>;
36205
36150
  };
36206
- };
36207
- getById: {
36208
- summary: "Get an account by id";
36209
- method: "GET";
36210
- pathParams: import("zod").ZodObject<{
36211
- id: import("zod").ZodString;
36212
- }, "strip", import("zod").ZodTypeAny, {
36213
- id: string;
36214
- }, {
36215
- id: string;
36216
- }>;
36217
- path: "ems/mail/account/:id";
36151
+ path: "ems/mail/account/sync";
36218
36152
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36219
36153
  'x-tenant': import("zod").ZodString;
36220
36154
  'x-service-token': import("zod").ZodString;
@@ -36231,6 +36165,17 @@ export declare const mailContract: {
36231
36165
  'x-code'?: string | undefined;
36232
36166
  'x-client-timezone'?: string | undefined;
36233
36167
  }>>>;
36168
+ };
36169
+ getById: {
36170
+ summary: "Get an account by id";
36171
+ method: "GET";
36172
+ pathParams: import("zod").ZodObject<{
36173
+ id: import("zod").ZodString;
36174
+ }, "strip", import("zod").ZodTypeAny, {
36175
+ id: string;
36176
+ }, {
36177
+ id: string;
36178
+ }>;
36234
36179
  responses: {
36235
36180
  401: import("zod").ZodObject<{
36236
36181
  message: import("zod").ZodString;
@@ -36262,9 +36207,8 @@ export declare const mailContract: {
36262
36207
  message: string;
36263
36208
  error?: any;
36264
36209
  }>;
36265
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36210
+ 200: import("zod").ZodObject<{
36266
36211
  requestId: import("zod").ZodString;
36267
- }, {
36268
36212
  data: import("zod").ZodObject<{
36269
36213
  id: import("zod").ZodString;
36270
36214
  createdAt: import("zod").ZodDate;
@@ -36369,7 +36313,7 @@ export declare const mailContract: {
36369
36313
  useTlsForImap: boolean;
36370
36314
  };
36371
36315
  }>;
36372
- }>, "strip", import("zod").ZodTypeAny, {
36316
+ }, "strip", import("zod").ZodTypeAny, {
36373
36317
  data: {
36374
36318
  name: string;
36375
36319
  id: string;
@@ -36427,21 +36371,7 @@ export declare const mailContract: {
36427
36371
  requestId: string;
36428
36372
  }>;
36429
36373
  };
36430
- };
36431
- getAll: {
36432
- summary: "Get all accounts";
36433
- method: "GET";
36434
- query: import("zod").ZodOptional<import("zod").ZodObject<{
36435
- state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
36436
- withDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
36437
- }, "strip", import("zod").ZodTypeAny, {
36438
- withDeleted: boolean;
36439
- state?: "connected" | "disconnected" | undefined;
36440
- }, {
36441
- state?: "connected" | "disconnected" | undefined;
36442
- withDeleted?: boolean | undefined;
36443
- }>>;
36444
- path: "ems/mail/account";
36374
+ path: "ems/mail/account/:id";
36445
36375
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36446
36376
  'x-tenant': import("zod").ZodString;
36447
36377
  'x-service-token': import("zod").ZodString;
@@ -36458,6 +36388,20 @@ export declare const mailContract: {
36458
36388
  'x-code'?: string | undefined;
36459
36389
  'x-client-timezone'?: string | undefined;
36460
36390
  }>>>;
36391
+ };
36392
+ getAll: {
36393
+ summary: "Get all accounts";
36394
+ method: "GET";
36395
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
36396
+ state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
36397
+ withDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
36398
+ }, "strip", import("zod").ZodTypeAny, {
36399
+ withDeleted: boolean;
36400
+ state?: "connected" | "disconnected" | undefined;
36401
+ }, {
36402
+ state?: "connected" | "disconnected" | undefined;
36403
+ withDeleted?: boolean | undefined;
36404
+ }>>;
36461
36405
  responses: {
36462
36406
  401: import("zod").ZodObject<{
36463
36407
  message: import("zod").ZodString;
@@ -36489,9 +36433,8 @@ export declare const mailContract: {
36489
36433
  message: string;
36490
36434
  error?: any;
36491
36435
  }>;
36492
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36436
+ 200: import("zod").ZodObject<{
36493
36437
  requestId: import("zod").ZodString;
36494
- }, {
36495
36438
  data: import("zod").ZodArray<import("zod").ZodObject<{
36496
36439
  id: import("zod").ZodString;
36497
36440
  createdAt: import("zod").ZodDate;
@@ -36596,7 +36539,7 @@ export declare const mailContract: {
36596
36539
  useTlsForImap: boolean;
36597
36540
  };
36598
36541
  }>, "many">;
36599
- }>, "strip", import("zod").ZodTypeAny, {
36542
+ }, "strip", import("zod").ZodTypeAny, {
36600
36543
  data: {
36601
36544
  name: string;
36602
36545
  id: string;
@@ -36654,6 +36597,23 @@ export declare const mailContract: {
36654
36597
  requestId: string;
36655
36598
  }>;
36656
36599
  };
36600
+ path: "ems/mail/account";
36601
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36602
+ 'x-tenant': import("zod").ZodString;
36603
+ 'x-service-token': import("zod").ZodString;
36604
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
36605
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
36606
+ }, "strip", import("zod").ZodTypeAny, {
36607
+ 'x-tenant': string;
36608
+ 'x-service-token': string;
36609
+ 'x-client-timezone': string;
36610
+ 'x-code'?: string | undefined;
36611
+ }, {
36612
+ 'x-tenant': string;
36613
+ 'x-service-token': string;
36614
+ 'x-code'?: string | undefined;
36615
+ 'x-client-timezone'?: string | undefined;
36616
+ }>>>;
36657
36617
  };
36658
36618
  update: {
36659
36619
  body: import("zod").ZodObject<{
@@ -36710,13 +36670,12 @@ export declare const mailContract: {
36710
36670
  }>>;
36711
36671
  state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"init">, import("zod").ZodLiteral<"syncing">, import("zod").ZodLiteral<"connecting">, import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">, import("zod").ZodLiteral<"authenticationError">, import("zod").ZodLiteral<"connectError">, import("zod").ZodLiteral<"unset">]>>;
36712
36672
  }, "strip", import("zod").ZodTypeAny, {
36713
- name?: string | undefined;
36714
36673
  id?: string | undefined;
36715
- state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36716
- address?: string | undefined;
36717
36674
  createdAt?: Date | undefined;
36718
36675
  updatedAt?: Date | undefined;
36719
36676
  deletedAt?: Date | null | undefined;
36677
+ name?: string | undefined;
36678
+ address?: string | undefined;
36720
36679
  accountId?: string | undefined;
36721
36680
  mailServerId?: string | undefined;
36722
36681
  mailServer?: {
@@ -36734,14 +36693,14 @@ export declare const mailContract: {
36734
36693
  imapTlsPort: number;
36735
36694
  useTlsForImap: boolean;
36736
36695
  } | undefined;
36696
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36737
36697
  }, {
36738
- name?: string | undefined;
36739
36698
  id?: string | undefined;
36740
- state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36741
- address?: string | undefined;
36742
36699
  createdAt?: Date | undefined;
36743
36700
  updatedAt?: Date | undefined;
36744
36701
  deletedAt?: Date | null | undefined;
36702
+ name?: string | undefined;
36703
+ address?: string | undefined;
36745
36704
  accountId?: string | undefined;
36746
36705
  mailServerId?: string | undefined;
36747
36706
  mailServer?: {
@@ -36759,6 +36718,7 @@ export declare const mailContract: {
36759
36718
  imapTlsPort: number;
36760
36719
  useTlsForImap: boolean;
36761
36720
  } | undefined;
36721
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36762
36722
  }>;
36763
36723
  summary: "Update a account by id";
36764
36724
  method: "PATCH";
@@ -36769,23 +36729,6 @@ export declare const mailContract: {
36769
36729
  }, {
36770
36730
  id: string;
36771
36731
  }>;
36772
- path: "ems/mail/account/:id";
36773
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36774
- 'x-tenant': import("zod").ZodString;
36775
- 'x-service-token': import("zod").ZodString;
36776
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
36777
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
36778
- }, "strip", import("zod").ZodTypeAny, {
36779
- 'x-tenant': string;
36780
- 'x-service-token': string;
36781
- 'x-client-timezone': string;
36782
- 'x-code'?: string | undefined;
36783
- }, {
36784
- 'x-tenant': string;
36785
- 'x-service-token': string;
36786
- 'x-code'?: string | undefined;
36787
- 'x-client-timezone'?: string | undefined;
36788
- }>>>;
36789
36732
  responses: {
36790
36733
  401: import("zod").ZodObject<{
36791
36734
  message: import("zod").ZodString;
@@ -36817,9 +36760,8 @@ export declare const mailContract: {
36817
36760
  message: string;
36818
36761
  error?: any;
36819
36762
  }>;
36820
- 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36763
+ 201: import("zod").ZodObject<{
36821
36764
  requestId: import("zod").ZodString;
36822
- }, {
36823
36765
  data: import("zod").ZodObject<{
36824
36766
  id: import("zod").ZodString;
36825
36767
  createdAt: import("zod").ZodDate;
@@ -36924,7 +36866,7 @@ export declare const mailContract: {
36924
36866
  useTlsForImap: boolean;
36925
36867
  };
36926
36868
  }>;
36927
- }>, "strip", import("zod").ZodTypeAny, {
36869
+ }, "strip", import("zod").ZodTypeAny, {
36928
36870
  data: {
36929
36871
  name: string;
36930
36872
  id: string;
@@ -36982,19 +36924,7 @@ export declare const mailContract: {
36982
36924
  requestId: string;
36983
36925
  }>;
36984
36926
  };
36985
- };
36986
- disconnect: {
36987
- body: null;
36988
- summary: "Disconnect an account";
36989
- method: "PATCH";
36990
- pathParams: import("zod").ZodObject<{
36991
- id: import("zod").ZodString;
36992
- }, "strip", import("zod").ZodTypeAny, {
36993
- id: string;
36994
- }, {
36995
- id: string;
36996
- }>;
36997
- path: "ems/mail/account/:id/disconnect";
36927
+ path: "ems/mail/account/:id";
36998
36928
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36999
36929
  'x-tenant': import("zod").ZodString;
37000
36930
  'x-service-token': import("zod").ZodString;
@@ -37011,6 +36941,18 @@ export declare const mailContract: {
37011
36941
  'x-code'?: string | undefined;
37012
36942
  'x-client-timezone'?: string | undefined;
37013
36943
  }>>>;
36944
+ };
36945
+ disconnect: {
36946
+ body: null;
36947
+ summary: "Disconnect an account";
36948
+ method: "PATCH";
36949
+ pathParams: import("zod").ZodObject<{
36950
+ id: import("zod").ZodString;
36951
+ }, "strip", import("zod").ZodTypeAny, {
36952
+ id: string;
36953
+ }, {
36954
+ id: string;
36955
+ }>;
37014
36956
  responses: {
37015
36957
  401: import("zod").ZodObject<{
37016
36958
  message: import("zod").ZodString;
@@ -37042,9 +36984,8 @@ export declare const mailContract: {
37042
36984
  message: string;
37043
36985
  error?: any;
37044
36986
  }>;
37045
- 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36987
+ 201: import("zod").ZodObject<{
37046
36988
  requestId: import("zod").ZodString;
37047
- }, {
37048
36989
  data: import("zod").ZodObject<{
37049
36990
  id: import("zod").ZodString;
37050
36991
  createdAt: import("zod").ZodDate;
@@ -37149,7 +37090,7 @@ export declare const mailContract: {
37149
37090
  useTlsForImap: boolean;
37150
37091
  };
37151
37092
  }>;
37152
- }>, "strip", import("zod").ZodTypeAny, {
37093
+ }, "strip", import("zod").ZodTypeAny, {
37153
37094
  data: {
37154
37095
  name: string;
37155
37096
  id: string;
@@ -37207,19 +37148,7 @@ export declare const mailContract: {
37207
37148
  requestId: string;
37208
37149
  }>;
37209
37150
  };
37210
- };
37211
- reconnect: {
37212
- body: null;
37213
- summary: "Reconnect a disconncted account";
37214
- method: "PATCH";
37215
- pathParams: import("zod").ZodObject<{
37216
- id: import("zod").ZodString;
37217
- }, "strip", import("zod").ZodTypeAny, {
37218
- id: string;
37219
- }, {
37220
- id: string;
37221
- }>;
37222
- path: "ems/mail/account/:id/reconnect";
37151
+ path: "ems/mail/account/:id/disconnect";
37223
37152
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37224
37153
  'x-tenant': import("zod").ZodString;
37225
37154
  'x-service-token': import("zod").ZodString;
@@ -37236,6 +37165,18 @@ export declare const mailContract: {
37236
37165
  'x-code'?: string | undefined;
37237
37166
  'x-client-timezone'?: string | undefined;
37238
37167
  }>>>;
37168
+ };
37169
+ reconnect: {
37170
+ body: null;
37171
+ summary: "Reconnect a disconncted account";
37172
+ method: "PATCH";
37173
+ pathParams: import("zod").ZodObject<{
37174
+ id: import("zod").ZodString;
37175
+ }, "strip", import("zod").ZodTypeAny, {
37176
+ id: string;
37177
+ }, {
37178
+ id: string;
37179
+ }>;
37239
37180
  responses: {
37240
37181
  401: import("zod").ZodObject<{
37241
37182
  message: import("zod").ZodString;
@@ -37267,9 +37208,8 @@ export declare const mailContract: {
37267
37208
  message: string;
37268
37209
  error?: any;
37269
37210
  }>;
37270
- 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37211
+ 201: import("zod").ZodObject<{
37271
37212
  requestId: import("zod").ZodString;
37272
- }, {
37273
37213
  data: import("zod").ZodObject<{
37274
37214
  id: import("zod").ZodString;
37275
37215
  createdAt: import("zod").ZodDate;
@@ -37374,7 +37314,7 @@ export declare const mailContract: {
37374
37314
  useTlsForImap: boolean;
37375
37315
  };
37376
37316
  }>;
37377
- }>, "strip", import("zod").ZodTypeAny, {
37317
+ }, "strip", import("zod").ZodTypeAny, {
37378
37318
  data: {
37379
37319
  name: string;
37380
37320
  id: string;
@@ -37432,19 +37372,7 @@ export declare const mailContract: {
37432
37372
  requestId: string;
37433
37373
  }>;
37434
37374
  };
37435
- };
37436
- delete: {
37437
- body: null;
37438
- summary: "Delete an account by id";
37439
- method: "DELETE";
37440
- pathParams: import("zod").ZodObject<{
37441
- id: import("zod").ZodString;
37442
- }, "strip", import("zod").ZodTypeAny, {
37443
- id: string;
37444
- }, {
37445
- id: string;
37446
- }>;
37447
- path: "ems/mail/account/:id";
37375
+ path: "ems/mail/account/:id/reconnect";
37448
37376
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37449
37377
  'x-tenant': import("zod").ZodString;
37450
37378
  'x-service-token': import("zod").ZodString;
@@ -37461,6 +37389,18 @@ export declare const mailContract: {
37461
37389
  'x-code'?: string | undefined;
37462
37390
  'x-client-timezone'?: string | undefined;
37463
37391
  }>>>;
37392
+ };
37393
+ delete: {
37394
+ body: null;
37395
+ summary: "Delete an account by id";
37396
+ method: "DELETE";
37397
+ pathParams: import("zod").ZodObject<{
37398
+ id: import("zod").ZodString;
37399
+ }, "strip", import("zod").ZodTypeAny, {
37400
+ id: string;
37401
+ }, {
37402
+ id: string;
37403
+ }>;
37464
37404
  responses: {
37465
37405
  401: import("zod").ZodObject<{
37466
37406
  message: import("zod").ZodString;
@@ -37492,11 +37432,10 @@ export declare const mailContract: {
37492
37432
  message: string;
37493
37433
  error?: any;
37494
37434
  }>;
37495
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37435
+ 200: import("zod").ZodObject<{
37496
37436
  requestId: import("zod").ZodString;
37497
- }, {
37498
37437
  message: import("zod").ZodString;
37499
- }>, "strip", import("zod").ZodTypeAny, {
37438
+ }, "strip", import("zod").ZodTypeAny, {
37500
37439
  message: string;
37501
37440
  requestId: string;
37502
37441
  }, {
@@ -37504,19 +37443,7 @@ export declare const mailContract: {
37504
37443
  requestId: string;
37505
37444
  }>;
37506
37445
  };
37507
- };
37508
- deleteEmailEngineAcc: {
37509
- body: null;
37510
- summary: "Delete an account by id";
37511
- method: "DELETE";
37512
- pathParams: import("zod").ZodObject<{
37513
- account: import("zod").ZodString;
37514
- }, "strip", import("zod").ZodTypeAny, {
37515
- account: string;
37516
- }, {
37517
- account: string;
37518
- }>;
37519
- path: "ems/mail/account/email-engine/:account";
37446
+ path: "ems/mail/account/:id";
37520
37447
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37521
37448
  'x-tenant': import("zod").ZodString;
37522
37449
  'x-service-token': import("zod").ZodString;
@@ -37533,6 +37460,18 @@ export declare const mailContract: {
37533
37460
  'x-code'?: string | undefined;
37534
37461
  'x-client-timezone'?: string | undefined;
37535
37462
  }>>>;
37463
+ };
37464
+ deleteEmailEngineAcc: {
37465
+ body: null;
37466
+ summary: "Delete an account by id";
37467
+ method: "DELETE";
37468
+ pathParams: import("zod").ZodObject<{
37469
+ account: import("zod").ZodString;
37470
+ }, "strip", import("zod").ZodTypeAny, {
37471
+ account: string;
37472
+ }, {
37473
+ account: string;
37474
+ }>;
37536
37475
  responses: {
37537
37476
  401: import("zod").ZodObject<{
37538
37477
  message: import("zod").ZodString;
@@ -37564,11 +37503,10 @@ export declare const mailContract: {
37564
37503
  message: string;
37565
37504
  error?: any;
37566
37505
  }>;
37567
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37506
+ 200: import("zod").ZodObject<{
37568
37507
  requestId: import("zod").ZodString;
37569
- }, {
37570
37508
  message: import("zod").ZodString;
37571
- }>, "strip", import("zod").ZodTypeAny, {
37509
+ }, "strip", import("zod").ZodTypeAny, {
37572
37510
  message: string;
37573
37511
  requestId: string;
37574
37512
  }, {
@@ -37576,21 +37514,7 @@ export declare const mailContract: {
37576
37514
  requestId: string;
37577
37515
  }>;
37578
37516
  };
37579
- };
37580
- createOAuth2Acc: {
37581
- body: import("zod").ZodObject<{
37582
- account: import("zod").ZodString;
37583
- name: import("zod").ZodString;
37584
- }, "strip", import("zod").ZodTypeAny, {
37585
- name: string;
37586
- account: string;
37587
- }, {
37588
- name: string;
37589
- account: string;
37590
- }>;
37591
- summary: "Register OAuth2 account.";
37592
- method: "POST";
37593
- path: "ems/mail/account/oauth2";
37517
+ path: "ems/mail/account/email-engine/:account";
37594
37518
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37595
37519
  'x-tenant': import("zod").ZodString;
37596
37520
  'x-service-token': import("zod").ZodString;
@@ -37607,6 +37531,20 @@ export declare const mailContract: {
37607
37531
  'x-code'?: string | undefined;
37608
37532
  'x-client-timezone'?: string | undefined;
37609
37533
  }>>>;
37534
+ };
37535
+ createOAuth2Acc: {
37536
+ body: import("zod").ZodObject<{
37537
+ account: import("zod").ZodString;
37538
+ name: import("zod").ZodString;
37539
+ }, "strip", import("zod").ZodTypeAny, {
37540
+ name: string;
37541
+ account: string;
37542
+ }, {
37543
+ name: string;
37544
+ account: string;
37545
+ }>;
37546
+ summary: "Register OAuth2 account.";
37547
+ method: "POST";
37610
37548
  responses: {
37611
37549
  401: import("zod").ZodObject<{
37612
37550
  message: import("zod").ZodString;
@@ -37743,6 +37681,23 @@ export declare const mailContract: {
37743
37681
  };
37744
37682
  }>;
37745
37683
  };
37684
+ path: "ems/mail/account/oauth2";
37685
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37686
+ 'x-tenant': import("zod").ZodString;
37687
+ 'x-service-token': import("zod").ZodString;
37688
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
37689
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
37690
+ }, "strip", import("zod").ZodTypeAny, {
37691
+ 'x-tenant': string;
37692
+ 'x-service-token': string;
37693
+ 'x-client-timezone': string;
37694
+ 'x-code'?: string | undefined;
37695
+ }, {
37696
+ 'x-tenant': string;
37697
+ 'x-service-token': string;
37698
+ 'x-code'?: string | undefined;
37699
+ 'x-client-timezone'?: string | undefined;
37700
+ }>>>;
37746
37701
  };
37747
37702
  };
37748
37703
  server: {
@@ -37780,7 +37735,6 @@ export declare const mailContract: {
37780
37735
  }>;
37781
37736
  summary: "Register a new mail server";
37782
37737
  method: "POST";
37783
- path: "ems/mail/server/";
37784
37738
  responses: {
37785
37739
  401: import("zod").ZodObject<{
37786
37740
  message: import("zod").ZodString;
@@ -37812,9 +37766,8 @@ export declare const mailContract: {
37812
37766
  message: string;
37813
37767
  error?: any;
37814
37768
  }>;
37815
- 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37769
+ 201: import("zod").ZodObject<{
37816
37770
  requestId: import("zod").ZodString;
37817
- }, {
37818
37771
  data: import("zod").ZodObject<{
37819
37772
  id: import("zod").ZodString;
37820
37773
  createdAt: import("zod").ZodDate;
@@ -37858,7 +37811,7 @@ export declare const mailContract: {
37858
37811
  imapTlsPort: number;
37859
37812
  useTlsForImap: boolean;
37860
37813
  }>;
37861
- }>, "strip", import("zod").ZodTypeAny, {
37814
+ }, "strip", import("zod").ZodTypeAny, {
37862
37815
  data: {
37863
37816
  name: string;
37864
37817
  id: string;
@@ -37894,11 +37847,11 @@ export declare const mailContract: {
37894
37847
  requestId: string;
37895
37848
  }>;
37896
37849
  };
37850
+ path: "ems/mail/server/";
37897
37851
  };
37898
37852
  getOAuth2Apps: {
37899
37853
  summary: "Get all oauth2 apps";
37900
37854
  method: "GET";
37901
- path: "ems/mail/server/oauth2/apps";
37902
37855
  responses: {
37903
37856
  401: import("zod").ZodObject<{
37904
37857
  message: import("zod").ZodString;
@@ -37930,9 +37883,8 @@ export declare const mailContract: {
37930
37883
  message: string;
37931
37884
  error?: any;
37932
37885
  }>;
37933
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37886
+ 200: import("zod").ZodObject<{
37934
37887
  requestId: import("zod").ZodString;
37935
- }, {
37936
37888
  data: import("zod").ZodObject<{
37937
37889
  total: import("zod").ZodNumber;
37938
37890
  pages: import("zod").ZodNumber;
@@ -38044,7 +37996,7 @@ export declare const mailContract: {
38044
37996
  serviceKey: string;
38045
37997
  }[];
38046
37998
  }>;
38047
- }>, "strip", import("zod").ZodTypeAny, {
37999
+ }, "strip", import("zod").ZodTypeAny, {
38048
38000
  data: {
38049
38001
  total: number;
38050
38002
  page: number;
@@ -38100,6 +38052,7 @@ export declare const mailContract: {
38100
38052
  requestId: string;
38101
38053
  }>;
38102
38054
  };
38055
+ path: "ems/mail/server/oauth2/apps";
38103
38056
  };
38104
38057
  getById: {
38105
38058
  summary: "Get a mail server by id";
@@ -38111,7 +38064,6 @@ export declare const mailContract: {
38111
38064
  }, {
38112
38065
  id: string;
38113
38066
  }>;
38114
- path: "ems/mail/server/:id";
38115
38067
  responses: {
38116
38068
  401: import("zod").ZodObject<{
38117
38069
  message: import("zod").ZodString;
@@ -38143,9 +38095,8 @@ export declare const mailContract: {
38143
38095
  message: string;
38144
38096
  error?: any;
38145
38097
  }>;
38146
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
38098
+ 200: import("zod").ZodObject<{
38147
38099
  requestId: import("zod").ZodString;
38148
- }, {
38149
38100
  data: import("zod").ZodObject<{
38150
38101
  id: import("zod").ZodString;
38151
38102
  createdAt: import("zod").ZodDate;
@@ -38189,7 +38140,7 @@ export declare const mailContract: {
38189
38140
  imapTlsPort: number;
38190
38141
  useTlsForImap: boolean;
38191
38142
  }>;
38192
- }>, "strip", import("zod").ZodTypeAny, {
38143
+ }, "strip", import("zod").ZodTypeAny, {
38193
38144
  data: {
38194
38145
  name: string;
38195
38146
  id: string;
@@ -38225,11 +38176,11 @@ export declare const mailContract: {
38225
38176
  requestId: string;
38226
38177
  }>;
38227
38178
  };
38179
+ path: "ems/mail/server/:id";
38228
38180
  };
38229
38181
  getAll: {
38230
38182
  summary: "Get all mail servers";
38231
38183
  method: "GET";
38232
- path: "ems/mail/server/";
38233
38184
  responses: {
38234
38185
  401: import("zod").ZodObject<{
38235
38186
  message: import("zod").ZodString;
@@ -38261,9 +38212,8 @@ export declare const mailContract: {
38261
38212
  message: string;
38262
38213
  error?: any;
38263
38214
  }>;
38264
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
38215
+ 200: import("zod").ZodObject<{
38265
38216
  requestId: import("zod").ZodString;
38266
- }, {
38267
38217
  data: import("zod").ZodArray<import("zod").ZodObject<{
38268
38218
  id: import("zod").ZodString;
38269
38219
  createdAt: import("zod").ZodDate;
@@ -38307,7 +38257,7 @@ export declare const mailContract: {
38307
38257
  imapTlsPort: number;
38308
38258
  useTlsForImap: boolean;
38309
38259
  }>, "many">;
38310
- }>, "strip", import("zod").ZodTypeAny, {
38260
+ }, "strip", import("zod").ZodTypeAny, {
38311
38261
  data: {
38312
38262
  name: string;
38313
38263
  id: string;
@@ -38343,6 +38293,7 @@ export declare const mailContract: {
38343
38293
  requestId: string;
38344
38294
  }>;
38345
38295
  };
38296
+ path: "ems/mail/server/";
38346
38297
  };
38347
38298
  update: {
38348
38299
  body: import("zod").ZodObject<{
@@ -38385,7 +38336,6 @@ export declare const mailContract: {
38385
38336
  }, {
38386
38337
  id: string;
38387
38338
  }>;
38388
- path: "ems/mail/server/:id";
38389
38339
  responses: {
38390
38340
  401: import("zod").ZodObject<{
38391
38341
  message: import("zod").ZodString;
@@ -38417,9 +38367,8 @@ export declare const mailContract: {
38417
38367
  message: string;
38418
38368
  error?: any;
38419
38369
  }>;
38420
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
38370
+ 200: import("zod").ZodObject<{
38421
38371
  requestId: import("zod").ZodString;
38422
- }, {
38423
38372
  data: import("zod").ZodObject<{
38424
38373
  id: import("zod").ZodString;
38425
38374
  createdAt: import("zod").ZodDate;
@@ -38463,7 +38412,7 @@ export declare const mailContract: {
38463
38412
  imapTlsPort: number;
38464
38413
  useTlsForImap: boolean;
38465
38414
  }>;
38466
- }>, "strip", import("zod").ZodTypeAny, {
38415
+ }, "strip", import("zod").ZodTypeAny, {
38467
38416
  data: {
38468
38417
  name: string;
38469
38418
  id: string;
@@ -38499,6 +38448,7 @@ export declare const mailContract: {
38499
38448
  requestId: string;
38500
38449
  }>;
38501
38450
  };
38451
+ path: "ems/mail/server/:id";
38502
38452
  };
38503
38453
  delete: {
38504
38454
  body: null;
@@ -38511,7 +38461,6 @@ export declare const mailContract: {
38511
38461
  }, {
38512
38462
  id: string;
38513
38463
  }>;
38514
- path: "ems/mail/server/:id";
38515
38464
  responses: {
38516
38465
  401: import("zod").ZodObject<{
38517
38466
  message: import("zod").ZodString;
@@ -38543,9 +38492,8 @@ export declare const mailContract: {
38543
38492
  message: string;
38544
38493
  error?: any;
38545
38494
  }>;
38546
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
38495
+ 200: import("zod").ZodObject<{
38547
38496
  requestId: import("zod").ZodString;
38548
- }, {
38549
38497
  data: import("zod").ZodObject<{
38550
38498
  id: import("zod").ZodString;
38551
38499
  createdAt: import("zod").ZodDate;
@@ -38589,7 +38537,7 @@ export declare const mailContract: {
38589
38537
  imapTlsPort: number;
38590
38538
  useTlsForImap: boolean;
38591
38539
  }>;
38592
- }>, "strip", import("zod").ZodTypeAny, {
38540
+ }, "strip", import("zod").ZodTypeAny, {
38593
38541
  data: {
38594
38542
  name: string;
38595
38543
  id: string;
@@ -38625,6 +38573,7 @@ export declare const mailContract: {
38625
38573
  requestId: string;
38626
38574
  }>;
38627
38575
  };
38576
+ path: "ems/mail/server/:id";
38628
38577
  };
38629
38578
  };
38630
38579
  };