@kl1/contracts 1.4.66 → 1.4.68

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 (256) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +21 -20
  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 +4 -3
  4. package/dist/api-contracts/src/activity-log/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/attribute/index.d.ts +132 -116
  6. package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/attribute/schema.d.ts +5 -2
  8. package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
  9. package/dist/api-contracts/src/attribute-option/schema.d.ts +1 -0
  10. package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
  11. package/dist/api-contracts/src/auth/index.d.ts +22 -20
  12. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  13. package/dist/api-contracts/src/automation-queue/index.d.ts +148 -126
  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 +9 -6
  16. package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
  17. package/dist/api-contracts/src/aws/index.d.ts +4 -2
  18. package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
  19. package/dist/api-contracts/src/botpress/index.d.ts +29 -22
  20. package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/botpress/validation.d.ts +20 -17
  22. package/dist/api-contracts/src/botpress/validation.d.ts.map +1 -1
  23. package/dist/api-contracts/src/business-calendar/index.d.ts +16 -4
  24. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  25. package/dist/api-contracts/src/business-calendar/schema.d.ts +5 -0
  26. package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
  27. package/dist/api-contracts/src/call-log/schema.d.ts +3 -2
  28. package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
  29. package/dist/api-contracts/src/category/index.d.ts +100 -91
  30. package/dist/api-contracts/src/category/index.d.ts.map +1 -1
  31. package/dist/api-contracts/src/category/schema.d.ts +1 -0
  32. package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
  33. package/dist/api-contracts/src/channel/index.d.ts +2241 -2146
  34. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  35. package/dist/api-contracts/src/channel/schema.d.ts +82 -82
  36. package/dist/api-contracts/src/channel/validation.d.ts +168 -104
  37. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  38. package/dist/api-contracts/src/chat/index.d.ts +13567 -12971
  39. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  40. package/dist/api-contracts/src/chat/schema.d.ts +3072 -2896
  41. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  42. package/dist/api-contracts/src/chat/validation.d.ts +3398 -3298
  43. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  44. package/dist/api-contracts/src/comment/index.d.ts +227 -155
  45. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  46. package/dist/api-contracts/src/comment/schema.d.ts +52 -29
  47. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  48. package/dist/api-contracts/src/company/index.d.ts +82 -55
  49. package/dist/api-contracts/src/company/index.d.ts.map +1 -1
  50. package/dist/api-contracts/src/company/schema.d.ts +15 -6
  51. package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
  52. package/dist/api-contracts/src/company/validation.d.ts +46 -30
  53. package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
  54. package/dist/api-contracts/src/contact/index.d.ts +437 -318
  55. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  56. package/dist/api-contracts/src/contact/schema.d.ts +28 -14
  57. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  58. package/dist/api-contracts/src/contact/validation.d.ts +137 -56
  59. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  60. package/dist/api-contracts/src/contact-email/schema.d.ts +1 -0
  61. package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
  62. package/dist/api-contracts/src/contact-phone/schema.d.ts +1 -0
  63. package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
  64. package/dist/api-contracts/src/contract.d.ts +29623 -23768
  65. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  66. package/dist/api-contracts/src/custom-field/schema.d.ts +1 -0
  67. package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
  68. package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
  69. package/dist/api-contracts/src/custom-field-upload/schema.d.ts +1 -0
  70. package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
  71. package/dist/api-contracts/src/cx-intelligence/index.d.ts +44 -41
  72. package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -1
  73. package/dist/api-contracts/src/cx-log/index.d.ts +675 -627
  74. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  75. package/dist/api-contracts/src/cx-log/schema.d.ts +455 -402
  76. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  77. package/dist/api-contracts/src/cx-log/validation.d.ts +40 -40
  78. package/dist/api-contracts/src/dashboard/index.d.ts +355 -312
  79. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  80. package/dist/api-contracts/src/dashboard/schema.d.ts +3 -2
  81. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  82. package/dist/api-contracts/src/dashboard/validation.d.ts +14 -10
  83. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  84. package/dist/api-contracts/src/evaluate-form/index.d.ts +2 -1
  85. package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
  86. package/dist/api-contracts/src/evaluate-form/schema.d.ts +1 -0
  87. package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
  88. package/dist/api-contracts/src/export/index.d.ts +2 -1
  89. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  90. package/dist/api-contracts/src/extension/index.d.ts +106 -100
  91. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  92. package/dist/api-contracts/src/facebook-feed/index.d.ts +3235 -3150
  93. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  94. package/dist/api-contracts/src/facebook-feed/schema.d.ts +93 -81
  95. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  96. package/dist/api-contracts/src/facebook-feed/validation.d.ts +94 -83
  97. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  98. package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
  99. package/dist/api-contracts/src/group/schema.d.ts +1 -0
  100. package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
  101. package/dist/api-contracts/src/hold-label/index.d.ts +49 -30
  102. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  103. package/dist/api-contracts/src/hold-label/schema.d.ts +10 -4
  104. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  105. package/dist/api-contracts/src/hold-label/validation.d.ts +2 -2
  106. package/dist/api-contracts/src/index.d.ts +1 -0
  107. package/dist/api-contracts/src/index.d.ts.map +1 -1
  108. package/dist/api-contracts/src/instagram/index.d.ts +2040 -1968
  109. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  110. package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
  111. package/dist/api-contracts/src/invoice/index.d.ts +3 -1
  112. package/dist/api-contracts/src/invoice/index.d.ts.map +1 -1
  113. package/dist/api-contracts/src/invoice/schema.d.ts +1 -0
  114. package/dist/api-contracts/src/invoice/schema.d.ts.map +1 -1
  115. package/dist/api-contracts/src/klink-chat/index.d.ts +1779 -1708
  116. package/dist/api-contracts/src/klink-chat/index.d.ts.map +1 -1
  117. package/dist/api-contracts/src/line/index.d.ts +2009 -1937
  118. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  119. package/dist/api-contracts/src/line/schema.d.ts +10 -9
  120. package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
  121. package/dist/api-contracts/src/line/validation.d.ts +148 -148
  122. package/dist/api-contracts/src/log-form/schema.d.ts +1 -0
  123. package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
  124. package/dist/api-contracts/src/mail/account-contract.d.ts +184 -174
  125. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  126. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +2 -1
  127. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  128. package/dist/api-contracts/src/mail/mail-contract.d.ts +354 -303
  129. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  130. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +12 -6
  131. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  132. package/dist/api-contracts/src/mail/message-contract.d.ts +86 -80
  133. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  134. package/dist/api-contracts/src/mail/room-contract.d.ts +72 -43
  135. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  136. package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
  137. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +24 -18
  138. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  139. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +13 -6
  140. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  141. package/dist/api-contracts/src/messenger/index.d.ts +2033 -1960
  142. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  143. package/dist/api-contracts/src/messenger/validation.d.ts +94 -83
  144. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  145. package/dist/api-contracts/src/notification/index.d.ts +20 -13
  146. package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
  147. package/dist/api-contracts/src/notification/schema.d.ts +12 -9
  148. package/dist/api-contracts/src/notification/schema.d.ts.map +1 -1
  149. package/dist/api-contracts/src/notification/validation.d.ts +4 -3
  150. package/dist/api-contracts/src/notification/validation.d.ts.map +1 -1
  151. package/dist/api-contracts/src/permission/index.d.ts +17 -17
  152. package/dist/api-contracts/src/presence-status/index.d.ts +87 -83
  153. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  154. package/dist/api-contracts/src/presence-status/schema.d.ts +4 -3
  155. package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -1
  156. package/dist/api-contracts/src/public-api/index.d.ts +4516 -104
  157. package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
  158. package/dist/api-contracts/src/public-api/schema.d.ts +20 -6
  159. package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
  160. package/dist/api-contracts/src/public-api/validation.d.ts +63 -38
  161. package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
  162. package/dist/api-contracts/src/role/index.d.ts +80 -75
  163. package/dist/api-contracts/src/role/index.d.ts.map +1 -1
  164. package/dist/api-contracts/src/sms/index.d.ts +546 -542
  165. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  166. package/dist/api-contracts/src/snippet/index.d.ts +32 -10
  167. package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
  168. package/dist/api-contracts/src/snippet/schema.d.ts +7 -0
  169. package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
  170. package/dist/api-contracts/src/snippet/validation.d.ts +3 -2
  171. package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
  172. package/dist/api-contracts/src/subscription/index.d.ts +474 -6
  173. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  174. package/dist/api-contracts/src/subscription/schema.d.ts +31 -0
  175. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  176. package/dist/api-contracts/src/tag/index.d.ts +65 -58
  177. package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
  178. package/dist/api-contracts/src/tag/schema.d.ts +1 -0
  179. package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
  180. package/dist/api-contracts/src/tag-group/schema.d.ts +1 -0
  181. package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
  182. package/dist/api-contracts/src/telegram/index.d.ts +2451 -2381
  183. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  184. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +38 -463
  185. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  186. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +5 -6
  187. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  188. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +0 -3
  189. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
  190. package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
  191. package/dist/api-contracts/src/telephony-cdr/index.d.ts +756 -702
  192. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  193. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +170 -144
  194. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  195. package/dist/api-contracts/src/telephony-cdr/validation.d.ts +43 -39
  196. package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
  197. package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
  198. package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
  199. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +1 -0
  200. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
  201. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +1 -0
  202. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
  203. package/dist/api-contracts/src/tenant/schema.d.ts +1 -0
  204. package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
  205. package/dist/api-contracts/src/ticket/index.d.ts +564 -452
  206. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  207. package/dist/api-contracts/src/ticket/schema.d.ts +47 -21
  208. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  209. package/dist/api-contracts/src/ticket/validation.d.ts +53 -51
  210. package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
  211. package/dist/api-contracts/src/upload/index.d.ts +32 -30
  212. package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
  213. package/dist/api-contracts/src/upload/schema.d.ts +1 -0
  214. package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
  215. package/dist/api-contracts/src/user/index.d.ts +137 -126
  216. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  217. package/dist/api-contracts/src/user/schema.d.ts +4 -3
  218. package/dist/api-contracts/src/user/schema.d.ts.map +1 -1
  219. package/dist/api-contracts/src/user/validation.d.ts +3 -2
  220. package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
  221. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +34 -32
  222. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  223. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +5 -3
  224. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  225. package/dist/api-contracts/src/viber/index.d.ts +2440 -2370
  226. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  227. package/dist/api-contracts/src/webchat/index.d.ts +1700 -1630
  228. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  229. package/dist/api-contracts/src/whatsapp/index.d.ts +1777 -1703
  230. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  231. package/dist/api-contracts/src/whatsapp/validation.d.ts +3 -0
  232. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  233. package/dist/api-contracts/src/widget/index.d.ts +145 -132
  234. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  235. package/dist/api-contracts/src/widget/schema.d.ts +1 -0
  236. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  237. package/dist/api-contracts/src/widget/validation.d.ts +16 -16
  238. package/dist/api-contracts/src/workflow-rule/index.d.ts +2068 -1937
  239. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  240. package/dist/api-contracts/src/workflow-rule/schema.d.ts +1 -0
  241. package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
  242. package/dist/api-contracts/src/wrap-up-form/index.d.ts +128 -109
  243. package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
  244. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +3 -0
  245. package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
  246. package/dist/api-contracts/src/wrap-up-form/validation.d.ts +19 -18
  247. package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
  248. package/dist/api-contracts/utils.d.ts +2 -1
  249. package/dist/api-contracts/utils.d.ts.map +1 -1
  250. package/dist/entities/src/enums/chat.d.ts +1 -0
  251. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  252. package/dist/index.js +1771 -1687
  253. package/dist/index.js.map +1 -1
  254. package/dist/index.mjs +1770 -1687
  255. package/dist/index.mjs.map +1 -1
  256. package/package.json +3 -3
@@ -4,6 +4,7 @@ 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/";
7
8
  responses: {
8
9
  401: import("zod").ZodObject<{
9
10
  message: import("zod").ZodString;
@@ -37,6 +38,7 @@ export declare const mailContract: {
37
38
  }>;
38
39
  200: import("zod").ZodObject<{
39
40
  requestId: import("zod").ZodString;
41
+ } & {
40
42
  message: import("zod").ZodString;
41
43
  }, "strip", import("zod").ZodTypeAny, {
42
44
  message: string;
@@ -46,7 +48,6 @@ export declare const mailContract: {
46
48
  requestId: string;
47
49
  }>;
48
50
  };
49
- path: "ems/mail/room/";
50
51
  };
51
52
  getAll: {
52
53
  summary: "Get mail rooms";
@@ -74,32 +75,33 @@ export declare const mailContract: {
74
75
  }, "strip", import("zod").ZodTypeAny, {
75
76
  page: number;
76
77
  pageSize: number;
78
+ date?: string | undefined;
79
+ contacts?: string[] | undefined;
77
80
  keyword?: {
78
81
  value: string;
79
82
  category: "message" | "contact";
80
83
  } | undefined;
81
- contactLabels?: string[] | undefined;
82
84
  channels?: string[] | undefined;
83
- date?: string | undefined;
84
- contacts?: string[] | undefined;
85
+ contactLabels?: string[] | undefined;
85
86
  assignees?: string[] | undefined;
86
87
  level1?: "open" | "close" | "starred" | "inbox" | "sent" | "scheduled" | undefined;
87
88
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
88
89
  }, {
89
90
  page?: number | undefined;
91
+ date?: string | undefined;
90
92
  pageSize?: number | undefined;
93
+ contacts?: string[] | undefined;
91
94
  keyword?: {
92
95
  value: string;
93
96
  category: "message" | "contact";
94
97
  } | undefined;
95
- contactLabels?: string[] | undefined;
96
98
  channels?: string[] | undefined;
97
- date?: string | undefined;
98
- contacts?: string[] | undefined;
99
+ contactLabels?: string[] | undefined;
99
100
  assignees?: string[] | undefined;
100
101
  level1?: "open" | "close" | "starred" | "inbox" | "sent" | "scheduled" | undefined;
101
102
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
102
103
  }>;
104
+ path: "ems/mail/room";
103
105
  responses: {
104
106
  401: import("zod").ZodObject<{
105
107
  message: import("zod").ZodString;
@@ -133,6 +135,7 @@ export declare const mailContract: {
133
135
  }>;
134
136
  200: import("zod").ZodObject<{
135
137
  requestId: import("zod").ZodString;
138
+ } & {
136
139
  data: import("zod").ZodArray<import("zod").ZodObject<{
137
140
  id: import("zod").ZodString;
138
141
  createdAt: import("zod").ZodDate;
@@ -5282,6 +5285,7 @@ export declare const mailContract: {
5282
5285
  createdAt: import("zod").ZodDate;
5283
5286
  updatedAt: import("zod").ZodDate;
5284
5287
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5288
+ } & {
5285
5289
  caseId: import("zod").ZodNumber;
5286
5290
  entityId: import("zod").ZodString;
5287
5291
  entityName: import("zod").ZodString;
@@ -5302,6 +5306,7 @@ export declare const mailContract: {
5302
5306
  createdAt: import("zod").ZodDate;
5303
5307
  updatedAt: import("zod").ZodDate;
5304
5308
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5309
+ } & {
5305
5310
  note: import("zod").ZodNullable<import("zod").ZodString>;
5306
5311
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
5307
5312
  type: import("zod").ZodString;
@@ -5310,6 +5315,7 @@ export declare const mailContract: {
5310
5315
  createdAt: import("zod").ZodDate;
5311
5316
  updatedAt: import("zod").ZodDate;
5312
5317
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5318
+ } & {
5313
5319
  name: import("zod").ZodString;
5314
5320
  }, "strip", import("zod").ZodTypeAny, {
5315
5321
  name: string;
@@ -5329,6 +5335,7 @@ export declare const mailContract: {
5329
5335
  createdAt: import("zod").ZodDate;
5330
5336
  updatedAt: import("zod").ZodDate;
5331
5337
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5338
+ } & {
5332
5339
  value: import("zod").ZodString;
5333
5340
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
5334
5341
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -5568,6 +5575,7 @@ export declare const mailContract: {
5568
5575
  createdAt: import("zod").ZodDate;
5569
5576
  updatedAt: import("zod").ZodDate;
5570
5577
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5578
+ } & {
5571
5579
  startedAt: import("zod").ZodString;
5572
5580
  endedAt: import("zod").ZodNullable<import("zod").ZodString>;
5573
5581
  duration: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -5576,6 +5584,7 @@ export declare const mailContract: {
5576
5584
  createdAt: import("zod").ZodDate;
5577
5585
  updatedAt: import("zod").ZodDate;
5578
5586
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5587
+ } & {
5579
5588
  name: import("zod").ZodString;
5580
5589
  position: import("zod").ZodNumber;
5581
5590
  isDefault: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -5598,12 +5607,12 @@ export declare const mailContract: {
5598
5607
  }>>>;
5599
5608
  }, "strip", import("zod").ZodTypeAny, {
5600
5609
  id: string;
5610
+ duration: number | null;
5601
5611
  createdAt: Date;
5602
5612
  updatedAt: Date;
5603
5613
  deletedAt: Date | null;
5604
5614
  startedAt: string;
5605
5615
  endedAt: string | null;
5606
- duration: number | null;
5607
5616
  holdLabel?: {
5608
5617
  name: string;
5609
5618
  id: string;
@@ -5615,12 +5624,12 @@ export declare const mailContract: {
5615
5624
  } | null | undefined;
5616
5625
  }, {
5617
5626
  id: string;
5627
+ duration: number | null;
5618
5628
  createdAt: Date;
5619
5629
  updatedAt: Date;
5620
5630
  deletedAt: Date | null;
5621
5631
  startedAt: string;
5622
5632
  endedAt: string | null;
5623
- duration: number | null;
5624
5633
  holdLabel?: {
5625
5634
  name: string;
5626
5635
  id: string;
@@ -5705,12 +5714,12 @@ export declare const mailContract: {
5705
5714
  } | null;
5706
5715
  holdLogs?: {
5707
5716
  id: string;
5717
+ duration: number | null;
5708
5718
  createdAt: Date;
5709
5719
  updatedAt: Date;
5710
5720
  deletedAt: Date | null;
5711
5721
  startedAt: string;
5712
5722
  endedAt: string | null;
5713
- duration: number | null;
5714
5723
  holdLabel?: {
5715
5724
  name: string;
5716
5725
  id: string;
@@ -5795,12 +5804,12 @@ export declare const mailContract: {
5795
5804
  } | null;
5796
5805
  holdLogs?: {
5797
5806
  id: string;
5807
+ duration: number | null;
5798
5808
  createdAt: Date;
5799
5809
  updatedAt: Date;
5800
5810
  deletedAt: Date | null;
5801
5811
  startedAt: string;
5802
5812
  endedAt: string | null;
5803
- duration: number | null;
5804
5813
  holdLabel?: {
5805
5814
  name: string;
5806
5815
  id: string;
@@ -6082,12 +6091,12 @@ export declare const mailContract: {
6082
6091
  } | null;
6083
6092
  holdLogs?: {
6084
6093
  id: string;
6094
+ duration: number | null;
6085
6095
  createdAt: Date;
6086
6096
  updatedAt: Date;
6087
6097
  deletedAt: Date | null;
6088
6098
  startedAt: string;
6089
6099
  endedAt: string | null;
6090
- duration: number | null;
6091
6100
  holdLabel?: {
6092
6101
  name: string;
6093
6102
  id: string;
@@ -7051,12 +7060,12 @@ export declare const mailContract: {
7051
7060
  } | null;
7052
7061
  holdLogs?: {
7053
7062
  id: string;
7063
+ duration: number | null;
7054
7064
  createdAt: Date;
7055
7065
  updatedAt: Date;
7056
7066
  deletedAt: Date | null;
7057
7067
  startedAt: string;
7058
7068
  endedAt: string | null;
7059
- duration: number | null;
7060
7069
  holdLabel?: {
7061
7070
  name: string;
7062
7071
  id: string;
@@ -8025,12 +8034,12 @@ export declare const mailContract: {
8025
8034
  } | null;
8026
8035
  holdLogs?: {
8027
8036
  id: string;
8037
+ duration: number | null;
8028
8038
  createdAt: Date;
8029
8039
  updatedAt: Date;
8030
8040
  deletedAt: Date | null;
8031
8041
  startedAt: string;
8032
8042
  endedAt: string | null;
8033
- duration: number | null;
8034
8043
  holdLabel?: {
8035
8044
  name: string;
8036
8045
  id: string;
@@ -9000,12 +9009,12 @@ export declare const mailContract: {
9000
9009
  } | null;
9001
9010
  holdLogs?: {
9002
9011
  id: string;
9012
+ duration: number | null;
9003
9013
  createdAt: Date;
9004
9014
  updatedAt: Date;
9005
9015
  deletedAt: Date | null;
9006
9016
  startedAt: string;
9007
9017
  endedAt: string | null;
9008
- duration: number | null;
9009
9018
  holdLabel?: {
9010
9019
  name: string;
9011
9020
  id: string;
@@ -9706,11 +9715,11 @@ export declare const mailContract: {
9706
9715
  requestId: string;
9707
9716
  }>;
9708
9717
  };
9709
- path: "ems/mail/room";
9710
9718
  };
9711
9719
  getRoomCounts: {
9712
9720
  summary: "Get unread message counts for filter like \"open\", \"close\", \"inbox\" and etc...";
9713
9721
  method: "GET";
9722
+ path: "ems/mail/room/count_rooms/all";
9714
9723
  responses: {
9715
9724
  401: import("zod").ZodObject<{
9716
9725
  message: import("zod").ZodString;
@@ -9744,6 +9753,7 @@ export declare const mailContract: {
9744
9753
  }>;
9745
9754
  200: import("zod").ZodObject<{
9746
9755
  requestId: import("zod").ZodString;
9756
+ } & {
9747
9757
  data: import("zod").ZodObject<{
9748
9758
  general: import("zod").ZodArray<import("zod").ZodObject<{
9749
9759
  name: import("zod").ZodString;
@@ -9927,6 +9937,7 @@ export declare const mailContract: {
9927
9937
  createdAt: import("zod").ZodDate;
9928
9938
  updatedAt: import("zod").ZodDate;
9929
9939
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
9940
+ } & {
9930
9941
  name: import("zod").ZodString;
9931
9942
  }, "strip", import("zod").ZodTypeAny, {
9932
9943
  name: string;
@@ -10150,7 +10161,6 @@ export declare const mailContract: {
10150
10161
  requestId: string;
10151
10162
  }>;
10152
10163
  };
10153
- path: "ems/mail/room/count_rooms/all";
10154
10164
  };
10155
10165
  getAttachments: {
10156
10166
  summary: "Get all the attachments of a room";
@@ -10162,6 +10172,7 @@ export declare const mailContract: {
10162
10172
  }, {
10163
10173
  id: string;
10164
10174
  }>;
10175
+ path: "ems/mail/room/:id/attachments";
10165
10176
  responses: {
10166
10177
  401: import("zod").ZodObject<{
10167
10178
  message: import("zod").ZodString;
@@ -10195,6 +10206,7 @@ export declare const mailContract: {
10195
10206
  }>;
10196
10207
  200: import("zod").ZodObject<{
10197
10208
  requestId: import("zod").ZodString;
10209
+ } & {
10198
10210
  data: import("zod").ZodArray<import("zod").ZodObject<{
10199
10211
  fileName: import("zod").ZodString;
10200
10212
  fileType: import("zod").ZodString;
@@ -10207,6 +10219,7 @@ export declare const mailContract: {
10207
10219
  createdAt: import("zod").ZodDate;
10208
10220
  updatedAt: import("zod").ZodDate;
10209
10221
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
10222
+ } & {
10210
10223
  bucketName: import("zod").ZodString;
10211
10224
  fileName: import("zod").ZodString;
10212
10225
  fileSize: import("zod").ZodNumber;
@@ -10321,7 +10334,6 @@ export declare const mailContract: {
10321
10334
  requestId: string;
10322
10335
  }>;
10323
10336
  };
10324
- path: "ems/mail/room/:id/attachments";
10325
10337
  };
10326
10338
  getParticipants: {
10327
10339
  summary: "Get all the attachments of a room";
@@ -10333,6 +10345,7 @@ export declare const mailContract: {
10333
10345
  }, {
10334
10346
  id: string;
10335
10347
  }>;
10348
+ path: "ems/mail/room/:id/participants";
10336
10349
  responses: {
10337
10350
  401: import("zod").ZodObject<{
10338
10351
  message: import("zod").ZodString;
@@ -10366,6 +10379,7 @@ export declare const mailContract: {
10366
10379
  }>;
10367
10380
  200: import("zod").ZodObject<{
10368
10381
  requestId: import("zod").ZodString;
10382
+ } & {
10369
10383
  data: import("zod").ZodArray<import("zod").ZodObject<{
10370
10384
  id: import("zod").ZodString;
10371
10385
  createdAt: import("zod").ZodDate;
@@ -10589,7 +10603,6 @@ export declare const mailContract: {
10589
10603
  requestId: string;
10590
10604
  }>;
10591
10605
  };
10592
- path: "ems/mail/room/:id/participants";
10593
10606
  };
10594
10607
  addNewEmailToContact: {
10595
10608
  body: import("zod").ZodObject<{
@@ -10607,6 +10620,7 @@ export declare const mailContract: {
10607
10620
  }>;
10608
10621
  summary: "Add a new email of a mail room participant to an existing contact";
10609
10622
  method: "POST";
10623
+ path: "ems/mail/room/add_email_to_contact";
10610
10624
  responses: {
10611
10625
  401: import("zod").ZodObject<{
10612
10626
  message: import("zod").ZodString;
@@ -10640,6 +10654,7 @@ export declare const mailContract: {
10640
10654
  }>;
10641
10655
  200: import("zod").ZodObject<{
10642
10656
  requestId: import("zod").ZodString;
10657
+ } & {
10643
10658
  data: import("zod").ZodString;
10644
10659
  }, "strip", import("zod").ZodTypeAny, {
10645
10660
  data: string;
@@ -10649,7 +10664,6 @@ export declare const mailContract: {
10649
10664
  requestId: string;
10650
10665
  }>;
10651
10666
  };
10652
- path: "ems/mail/room/add_email_to_contact";
10653
10667
  };
10654
10668
  update: {
10655
10669
  body: import("zod").ZodObject<{
@@ -10661,16 +10675,16 @@ export declare const mailContract: {
10661
10675
  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">]>>>;
10662
10676
  }, "strip", import("zod").ZodTypeAny, {
10663
10677
  disposition?: string | null | undefined;
10664
- assigneeId?: string | null | undefined;
10665
- note?: string | undefined;
10666
10678
  tags?: string[] | undefined;
10679
+ note?: string | undefined;
10680
+ assigneeId?: string | null | undefined;
10667
10681
  handover?: boolean | null | undefined;
10668
10682
  selfAssign?: boolean | null | undefined;
10669
10683
  }, {
10670
10684
  disposition?: string | null | undefined;
10671
- assigneeId?: string | null | undefined;
10672
- note?: string | undefined;
10673
10685
  tags?: string[] | undefined;
10686
+ note?: string | undefined;
10687
+ assigneeId?: string | null | undefined;
10674
10688
  handover?: boolean | "false" | "true" | null | undefined;
10675
10689
  selfAssign?: boolean | "false" | "true" | null | undefined;
10676
10690
  }>;
@@ -10683,6 +10697,7 @@ export declare const mailContract: {
10683
10697
  }, {
10684
10698
  id: string;
10685
10699
  }>;
10700
+ path: "ems/mail/room/:id";
10686
10701
  responses: {
10687
10702
  401: import("zod").ZodObject<{
10688
10703
  message: import("zod").ZodString;
@@ -10716,6 +10731,7 @@ export declare const mailContract: {
10716
10731
  }>;
10717
10732
  200: import("zod").ZodObject<{
10718
10733
  requestId: import("zod").ZodString;
10734
+ } & {
10719
10735
  data: import("zod").ZodObject<{
10720
10736
  id: import("zod").ZodString;
10721
10737
  createdAt: import("zod").ZodDate;
@@ -15865,6 +15881,7 @@ export declare const mailContract: {
15865
15881
  createdAt: import("zod").ZodDate;
15866
15882
  updatedAt: import("zod").ZodDate;
15867
15883
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15884
+ } & {
15868
15885
  caseId: import("zod").ZodNumber;
15869
15886
  entityId: import("zod").ZodString;
15870
15887
  entityName: import("zod").ZodString;
@@ -15885,6 +15902,7 @@ export declare const mailContract: {
15885
15902
  createdAt: import("zod").ZodDate;
15886
15903
  updatedAt: import("zod").ZodDate;
15887
15904
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15905
+ } & {
15888
15906
  note: import("zod").ZodNullable<import("zod").ZodString>;
15889
15907
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
15890
15908
  type: import("zod").ZodString;
@@ -15893,6 +15911,7 @@ export declare const mailContract: {
15893
15911
  createdAt: import("zod").ZodDate;
15894
15912
  updatedAt: import("zod").ZodDate;
15895
15913
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15914
+ } & {
15896
15915
  name: import("zod").ZodString;
15897
15916
  }, "strip", import("zod").ZodTypeAny, {
15898
15917
  name: string;
@@ -15912,6 +15931,7 @@ export declare const mailContract: {
15912
15931
  createdAt: import("zod").ZodDate;
15913
15932
  updatedAt: import("zod").ZodDate;
15914
15933
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15934
+ } & {
15915
15935
  value: import("zod").ZodString;
15916
15936
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
15917
15937
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -16151,6 +16171,7 @@ export declare const mailContract: {
16151
16171
  createdAt: import("zod").ZodDate;
16152
16172
  updatedAt: import("zod").ZodDate;
16153
16173
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
16174
+ } & {
16154
16175
  startedAt: import("zod").ZodString;
16155
16176
  endedAt: import("zod").ZodNullable<import("zod").ZodString>;
16156
16177
  duration: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -16159,6 +16180,7 @@ export declare const mailContract: {
16159
16180
  createdAt: import("zod").ZodDate;
16160
16181
  updatedAt: import("zod").ZodDate;
16161
16182
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
16183
+ } & {
16162
16184
  name: import("zod").ZodString;
16163
16185
  position: import("zod").ZodNumber;
16164
16186
  isDefault: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -16181,12 +16203,12 @@ export declare const mailContract: {
16181
16203
  }>>>;
16182
16204
  }, "strip", import("zod").ZodTypeAny, {
16183
16205
  id: string;
16206
+ duration: number | null;
16184
16207
  createdAt: Date;
16185
16208
  updatedAt: Date;
16186
16209
  deletedAt: Date | null;
16187
16210
  startedAt: string;
16188
16211
  endedAt: string | null;
16189
- duration: number | null;
16190
16212
  holdLabel?: {
16191
16213
  name: string;
16192
16214
  id: string;
@@ -16198,12 +16220,12 @@ export declare const mailContract: {
16198
16220
  } | null | undefined;
16199
16221
  }, {
16200
16222
  id: string;
16223
+ duration: number | null;
16201
16224
  createdAt: Date;
16202
16225
  updatedAt: Date;
16203
16226
  deletedAt: Date | null;
16204
16227
  startedAt: string;
16205
16228
  endedAt: string | null;
16206
- duration: number | null;
16207
16229
  holdLabel?: {
16208
16230
  name: string;
16209
16231
  id: string;
@@ -16288,12 +16310,12 @@ export declare const mailContract: {
16288
16310
  } | null;
16289
16311
  holdLogs?: {
16290
16312
  id: string;
16313
+ duration: number | null;
16291
16314
  createdAt: Date;
16292
16315
  updatedAt: Date;
16293
16316
  deletedAt: Date | null;
16294
16317
  startedAt: string;
16295
16318
  endedAt: string | null;
16296
- duration: number | null;
16297
16319
  holdLabel?: {
16298
16320
  name: string;
16299
16321
  id: string;
@@ -16378,12 +16400,12 @@ export declare const mailContract: {
16378
16400
  } | null;
16379
16401
  holdLogs?: {
16380
16402
  id: string;
16403
+ duration: number | null;
16381
16404
  createdAt: Date;
16382
16405
  updatedAt: Date;
16383
16406
  deletedAt: Date | null;
16384
16407
  startedAt: string;
16385
16408
  endedAt: string | null;
16386
- duration: number | null;
16387
16409
  holdLabel?: {
16388
16410
  name: string;
16389
16411
  id: string;
@@ -16665,12 +16687,12 @@ export declare const mailContract: {
16665
16687
  } | null;
16666
16688
  holdLogs?: {
16667
16689
  id: string;
16690
+ duration: number | null;
16668
16691
  createdAt: Date;
16669
16692
  updatedAt: Date;
16670
16693
  deletedAt: Date | null;
16671
16694
  startedAt: string;
16672
16695
  endedAt: string | null;
16673
- duration: number | null;
16674
16696
  holdLabel?: {
16675
16697
  name: string;
16676
16698
  id: string;
@@ -17634,12 +17656,12 @@ export declare const mailContract: {
17634
17656
  } | null;
17635
17657
  holdLogs?: {
17636
17658
  id: string;
17659
+ duration: number | null;
17637
17660
  createdAt: Date;
17638
17661
  updatedAt: Date;
17639
17662
  deletedAt: Date | null;
17640
17663
  startedAt: string;
17641
17664
  endedAt: string | null;
17642
- duration: number | null;
17643
17665
  holdLabel?: {
17644
17666
  name: string;
17645
17667
  id: string;
@@ -18605,12 +18627,12 @@ export declare const mailContract: {
18605
18627
  } | null;
18606
18628
  holdLogs?: {
18607
18629
  id: string;
18630
+ duration: number | null;
18608
18631
  createdAt: Date;
18609
18632
  updatedAt: Date;
18610
18633
  deletedAt: Date | null;
18611
18634
  startedAt: string;
18612
18635
  endedAt: string | null;
18613
- duration: number | null;
18614
18636
  holdLabel?: {
18615
18637
  name: string;
18616
18638
  id: string;
@@ -19577,12 +19599,12 @@ export declare const mailContract: {
19577
19599
  } | null;
19578
19600
  holdLogs?: {
19579
19601
  id: string;
19602
+ duration: number | null;
19580
19603
  createdAt: Date;
19581
19604
  updatedAt: Date;
19582
19605
  deletedAt: Date | null;
19583
19606
  startedAt: string;
19584
19607
  endedAt: string | null;
19585
- duration: number | null;
19586
19608
  holdLabel?: {
19587
19609
  name: string;
19588
19610
  id: string;
@@ -20280,7 +20302,6 @@ export declare const mailContract: {
20280
20302
  requestId: string;
20281
20303
  }>;
20282
20304
  };
20283
- path: "ems/mail/room/:id";
20284
20305
  };
20285
20306
  markAsRead: {
20286
20307
  body: import("zod").ZodObject<{
@@ -20292,6 +20313,7 @@ export declare const mailContract: {
20292
20313
  }>;
20293
20314
  summary: "Mark all the unread messages of a room as read";
20294
20315
  method: "POST";
20316
+ path: "ems/mail/room/mark_as_read";
20295
20317
  responses: {
20296
20318
  401: import("zod").ZodObject<{
20297
20319
  message: import("zod").ZodString;
@@ -20325,6 +20347,7 @@ export declare const mailContract: {
20325
20347
  }>;
20326
20348
  200: import("zod").ZodObject<{
20327
20349
  requestId: import("zod").ZodString;
20350
+ } & {
20328
20351
  message: import("zod").ZodString;
20329
20352
  }, "strip", import("zod").ZodTypeAny, {
20330
20353
  message: string;
@@ -20334,7 +20357,6 @@ export declare const mailContract: {
20334
20357
  requestId: string;
20335
20358
  }>;
20336
20359
  };
20337
- path: "ems/mail/room/mark_as_read";
20338
20360
  };
20339
20361
  getById: {
20340
20362
  summary: "Get a mail room by id";
@@ -20346,6 +20368,7 @@ export declare const mailContract: {
20346
20368
  }, {
20347
20369
  id: string;
20348
20370
  }>;
20371
+ path: "ems/mail/room/:id";
20349
20372
  responses: {
20350
20373
  401: import("zod").ZodObject<{
20351
20374
  message: import("zod").ZodString;
@@ -20379,6 +20402,7 @@ export declare const mailContract: {
20379
20402
  }>;
20380
20403
  200: import("zod").ZodObject<{
20381
20404
  requestId: import("zod").ZodString;
20405
+ } & {
20382
20406
  data: import("zod").ZodObject<{
20383
20407
  id: import("zod").ZodString;
20384
20408
  createdAt: import("zod").ZodDate;
@@ -25528,6 +25552,7 @@ export declare const mailContract: {
25528
25552
  createdAt: import("zod").ZodDate;
25529
25553
  updatedAt: import("zod").ZodDate;
25530
25554
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25555
+ } & {
25531
25556
  caseId: import("zod").ZodNumber;
25532
25557
  entityId: import("zod").ZodString;
25533
25558
  entityName: import("zod").ZodString;
@@ -25548,6 +25573,7 @@ export declare const mailContract: {
25548
25573
  createdAt: import("zod").ZodDate;
25549
25574
  updatedAt: import("zod").ZodDate;
25550
25575
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25576
+ } & {
25551
25577
  note: import("zod").ZodNullable<import("zod").ZodString>;
25552
25578
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
25553
25579
  type: import("zod").ZodString;
@@ -25556,6 +25582,7 @@ export declare const mailContract: {
25556
25582
  createdAt: import("zod").ZodDate;
25557
25583
  updatedAt: import("zod").ZodDate;
25558
25584
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25585
+ } & {
25559
25586
  name: import("zod").ZodString;
25560
25587
  }, "strip", import("zod").ZodTypeAny, {
25561
25588
  name: string;
@@ -25575,6 +25602,7 @@ export declare const mailContract: {
25575
25602
  createdAt: import("zod").ZodDate;
25576
25603
  updatedAt: import("zod").ZodDate;
25577
25604
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25605
+ } & {
25578
25606
  value: import("zod").ZodString;
25579
25607
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
25580
25608
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -25814,6 +25842,7 @@ export declare const mailContract: {
25814
25842
  createdAt: import("zod").ZodDate;
25815
25843
  updatedAt: import("zod").ZodDate;
25816
25844
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25845
+ } & {
25817
25846
  startedAt: import("zod").ZodString;
25818
25847
  endedAt: import("zod").ZodNullable<import("zod").ZodString>;
25819
25848
  duration: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -25822,6 +25851,7 @@ export declare const mailContract: {
25822
25851
  createdAt: import("zod").ZodDate;
25823
25852
  updatedAt: import("zod").ZodDate;
25824
25853
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25854
+ } & {
25825
25855
  name: import("zod").ZodString;
25826
25856
  position: import("zod").ZodNumber;
25827
25857
  isDefault: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -25844,12 +25874,12 @@ export declare const mailContract: {
25844
25874
  }>>>;
25845
25875
  }, "strip", import("zod").ZodTypeAny, {
25846
25876
  id: string;
25877
+ duration: number | null;
25847
25878
  createdAt: Date;
25848
25879
  updatedAt: Date;
25849
25880
  deletedAt: Date | null;
25850
25881
  startedAt: string;
25851
25882
  endedAt: string | null;
25852
- duration: number | null;
25853
25883
  holdLabel?: {
25854
25884
  name: string;
25855
25885
  id: string;
@@ -25861,12 +25891,12 @@ export declare const mailContract: {
25861
25891
  } | null | undefined;
25862
25892
  }, {
25863
25893
  id: string;
25894
+ duration: number | null;
25864
25895
  createdAt: Date;
25865
25896
  updatedAt: Date;
25866
25897
  deletedAt: Date | null;
25867
25898
  startedAt: string;
25868
25899
  endedAt: string | null;
25869
- duration: number | null;
25870
25900
  holdLabel?: {
25871
25901
  name: string;
25872
25902
  id: string;
@@ -25951,12 +25981,12 @@ export declare const mailContract: {
25951
25981
  } | null;
25952
25982
  holdLogs?: {
25953
25983
  id: string;
25984
+ duration: number | null;
25954
25985
  createdAt: Date;
25955
25986
  updatedAt: Date;
25956
25987
  deletedAt: Date | null;
25957
25988
  startedAt: string;
25958
25989
  endedAt: string | null;
25959
- duration: number | null;
25960
25990
  holdLabel?: {
25961
25991
  name: string;
25962
25992
  id: string;
@@ -26041,12 +26071,12 @@ export declare const mailContract: {
26041
26071
  } | null;
26042
26072
  holdLogs?: {
26043
26073
  id: string;
26074
+ duration: number | null;
26044
26075
  createdAt: Date;
26045
26076
  updatedAt: Date;
26046
26077
  deletedAt: Date | null;
26047
26078
  startedAt: string;
26048
26079
  endedAt: string | null;
26049
- duration: number | null;
26050
26080
  holdLabel?: {
26051
26081
  name: string;
26052
26082
  id: string;
@@ -26328,12 +26358,12 @@ export declare const mailContract: {
26328
26358
  } | null;
26329
26359
  holdLogs?: {
26330
26360
  id: string;
26361
+ duration: number | null;
26331
26362
  createdAt: Date;
26332
26363
  updatedAt: Date;
26333
26364
  deletedAt: Date | null;
26334
26365
  startedAt: string;
26335
26366
  endedAt: string | null;
26336
- duration: number | null;
26337
26367
  holdLabel?: {
26338
26368
  name: string;
26339
26369
  id: string;
@@ -27297,12 +27327,12 @@ export declare const mailContract: {
27297
27327
  } | null;
27298
27328
  holdLogs?: {
27299
27329
  id: string;
27330
+ duration: number | null;
27300
27331
  createdAt: Date;
27301
27332
  updatedAt: Date;
27302
27333
  deletedAt: Date | null;
27303
27334
  startedAt: string;
27304
27335
  endedAt: string | null;
27305
- duration: number | null;
27306
27336
  holdLabel?: {
27307
27337
  name: string;
27308
27338
  id: string;
@@ -28268,12 +28298,12 @@ export declare const mailContract: {
28268
28298
  } | null;
28269
28299
  holdLogs?: {
28270
28300
  id: string;
28301
+ duration: number | null;
28271
28302
  createdAt: Date;
28272
28303
  updatedAt: Date;
28273
28304
  deletedAt: Date | null;
28274
28305
  startedAt: string;
28275
28306
  endedAt: string | null;
28276
- duration: number | null;
28277
28307
  holdLabel?: {
28278
28308
  name: string;
28279
28309
  id: string;
@@ -29240,12 +29270,12 @@ export declare const mailContract: {
29240
29270
  } | null;
29241
29271
  holdLogs?: {
29242
29272
  id: string;
29273
+ duration: number | null;
29243
29274
  createdAt: Date;
29244
29275
  updatedAt: Date;
29245
29276
  deletedAt: Date | null;
29246
29277
  startedAt: string;
29247
29278
  endedAt: string | null;
29248
- duration: number | null;
29249
29279
  holdLabel?: {
29250
29280
  name: string;
29251
29281
  id: string;
@@ -29943,7 +29973,6 @@ export declare const mailContract: {
29943
29973
  requestId: string;
29944
29974
  }>;
29945
29975
  };
29946
- path: "ems/mail/room/:id";
29947
29976
  };
29948
29977
  };
29949
29978
  message: {
@@ -30037,6 +30066,14 @@ export declare const mailContract: {
30037
30066
  address: string;
30038
30067
  name?: string | undefined;
30039
30068
  };
30069
+ attachments?: {
30070
+ fileName: string;
30071
+ fileType: string;
30072
+ fileKey: string;
30073
+ bucketName: string;
30074
+ fileSize: number;
30075
+ presignedUrl: string;
30076
+ }[] | undefined;
30040
30077
  cc?: {
30041
30078
  address: string;
30042
30079
  name?: string | undefined;
@@ -30050,14 +30087,6 @@ export declare const mailContract: {
30050
30087
  action: "forward" | "reply";
30051
30088
  messageId: string;
30052
30089
  } | undefined;
30053
- attachments?: {
30054
- fileName: string;
30055
- fileType: string;
30056
- fileKey: string;
30057
- bucketName: string;
30058
- fileSize: number;
30059
- presignedUrl: string;
30060
- }[] | undefined;
30061
30090
  }, {
30062
30091
  html: string;
30063
30092
  text: string;
@@ -30070,6 +30099,14 @@ export declare const mailContract: {
30070
30099
  address: string;
30071
30100
  name?: string | undefined;
30072
30101
  };
30102
+ attachments?: {
30103
+ fileName: string;
30104
+ fileType: string;
30105
+ fileKey: string;
30106
+ bucketName: string;
30107
+ fileSize: number;
30108
+ presignedUrl: string;
30109
+ }[] | undefined;
30073
30110
  cc?: {
30074
30111
  address: string;
30075
30112
  name?: string | undefined;
@@ -30083,17 +30120,10 @@ export declare const mailContract: {
30083
30120
  action: "forward" | "reply";
30084
30121
  messageId: string;
30085
30122
  } | undefined;
30086
- attachments?: {
30087
- fileName: string;
30088
- fileType: string;
30089
- fileKey: string;
30090
- bucketName: string;
30091
- fileSize: number;
30092
- presignedUrl: string;
30093
- }[] | undefined;
30094
30123
  }>;
30095
30124
  summary: "Submit a message such as compose, reply or forward";
30096
30125
  method: "POST";
30126
+ path: "ems/mail/message/submit";
30097
30127
  responses: {
30098
30128
  500: import("zod").ZodObject<{
30099
30129
  message: import("zod").ZodString;
@@ -30137,6 +30167,7 @@ export declare const mailContract: {
30137
30167
  }>;
30138
30168
  200: import("zod").ZodObject<{
30139
30169
  requestId: import("zod").ZodString;
30170
+ } & {
30140
30171
  data: import("zod").ZodObject<{
30141
30172
  response: import("zod").ZodString;
30142
30173
  messageId: import("zod").ZodString;
@@ -30171,11 +30202,11 @@ export declare const mailContract: {
30171
30202
  requestId: string;
30172
30203
  }>;
30173
30204
  };
30174
- path: "ems/mail/message/submit";
30175
30205
  };
30176
30206
  getTotalUnreadMessageCount: {
30177
30207
  summary: "Get total unread messages counts";
30178
30208
  method: "GET";
30209
+ path: "ems/mail/message/new_message_count";
30179
30210
  responses: {
30180
30211
  401: import("zod").ZodObject<{
30181
30212
  message: import("zod").ZodString;
@@ -30209,6 +30240,7 @@ export declare const mailContract: {
30209
30240
  }>;
30210
30241
  200: import("zod").ZodObject<{
30211
30242
  requestId: import("zod").ZodString;
30243
+ } & {
30212
30244
  data: import("zod").ZodObject<{
30213
30245
  count: import("zod").ZodNumber;
30214
30246
  }, "strip", import("zod").ZodTypeAny, {
@@ -30228,7 +30260,6 @@ export declare const mailContract: {
30228
30260
  requestId: string;
30229
30261
  }>;
30230
30262
  };
30231
- path: "ems/mail/message/new_message_count";
30232
30263
  };
30233
30264
  getById: {
30234
30265
  summary: "Get a message";
@@ -30240,6 +30271,7 @@ export declare const mailContract: {
30240
30271
  }, {
30241
30272
  id: string;
30242
30273
  }>;
30274
+ path: "ems/mail/message/:id";
30243
30275
  responses: {
30244
30276
  401: import("zod").ZodObject<{
30245
30277
  message: import("zod").ZodString;
@@ -30273,6 +30305,7 @@ export declare const mailContract: {
30273
30305
  }>;
30274
30306
  200: import("zod").ZodObject<{
30275
30307
  requestId: import("zod").ZodString;
30308
+ } & {
30276
30309
  data: import("zod").ZodObject<{
30277
30310
  id: import("zod").ZodString;
30278
30311
  createdAt: import("zod").ZodDate;
@@ -31686,7 +31719,6 @@ export declare const mailContract: {
31686
31719
  requestId: string;
31687
31720
  }>;
31688
31721
  };
31689
- path: "ems/mail/message/:id";
31690
31722
  };
31691
31723
  update: {
31692
31724
  body: import("zod").ZodObject<{
@@ -32423,24 +32455,37 @@ export declare const mailContract: {
32423
32455
  }>, "many">>;
32424
32456
  }, "strip", import("zod").ZodTypeAny, {
32425
32457
  id?: string | undefined;
32458
+ direction?: string | undefined;
32459
+ action?: string | undefined;
32460
+ date?: Date | undefined;
32426
32461
  createdAt?: Date | undefined;
32427
32462
  updatedAt?: Date | undefined;
32428
32463
  deletedAt?: Date | null | undefined;
32429
32464
  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
+ attachments?: {
32466
+ id: string;
32467
+ createdAt: Date;
32468
+ updatedAt: Date;
32469
+ deletedAt: Date | null;
32470
+ fileName: string;
32471
+ fileType: string;
32472
+ uploadId: string;
32473
+ upload: {
32474
+ id: string;
32475
+ createdAt: Date;
32476
+ updatedAt: Date;
32477
+ deletedAt: Date | null;
32478
+ extensionName: string;
32479
+ fileName: string;
32480
+ fileKey: string;
32481
+ bucketName: string;
32482
+ fileSize: number;
32483
+ fileUrl: string;
32484
+ };
32485
+ roomId: string;
32486
+ messageId: string;
32487
+ emailEngineAttachmentId: string;
32488
+ }[] | undefined;
32444
32489
  from?: {
32445
32490
  id: string;
32446
32491
  createdAt: Date;
@@ -32472,6 +32517,7 @@ export declare const mailContract: {
32472
32517
  isNewContact: boolean;
32473
32518
  };
32474
32519
  }[] | undefined;
32520
+ subject?: string | undefined;
32475
32521
  to?: {
32476
32522
  id: string;
32477
32523
  createdAt: Date;
@@ -32565,6 +32611,25 @@ export declare const mailContract: {
32565
32611
  isNewContact: boolean;
32566
32612
  };
32567
32613
  }[] | undefined;
32614
+ sendAt?: Date | undefined;
32615
+ textPlain?: string | undefined;
32616
+ textHtml?: string | undefined;
32617
+ textId?: string | undefined;
32618
+ emailEngineEmailId?: string | undefined;
32619
+ emailEngineMessageId?: string | undefined;
32620
+ emailEngineReplyTo?: string | null | undefined;
32621
+ unseen?: boolean | undefined;
32622
+ starred?: boolean | undefined;
32623
+ 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;
32568
32633
  attachments?: {
32569
32634
  id: string;
32570
32635
  createdAt: Date;
@@ -32589,26 +32654,6 @@ export declare const mailContract: {
32589
32654
  messageId: string;
32590
32655
  emailEngineAttachmentId: string;
32591
32656
  }[] | 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;
32599
- textPlain?: string | undefined;
32600
- textHtml?: string | undefined;
32601
- textId?: string | undefined;
32602
- emailEngineEmailId?: string | undefined;
32603
- emailEngineMessageId?: string | undefined;
32604
- emailEngineReplyTo?: string | null | undefined;
32605
- direction?: string | undefined;
32606
- date?: Date | undefined;
32607
- action?: string | undefined;
32608
- unseen?: boolean | undefined;
32609
- sendAt?: Date | undefined;
32610
- starred?: boolean | undefined;
32611
- seemsLikeNew?: boolean | undefined;
32612
32657
  from?: {
32613
32658
  id: string;
32614
32659
  createdAt: Date;
@@ -32640,6 +32685,7 @@ export declare const mailContract: {
32640
32685
  isNewContact: boolean;
32641
32686
  };
32642
32687
  }[] | undefined;
32688
+ subject?: string | undefined;
32643
32689
  to?: {
32644
32690
  id: string;
32645
32691
  createdAt: Date;
@@ -32733,30 +32779,16 @@ export declare const mailContract: {
32733
32779
  isNewContact: boolean;
32734
32780
  };
32735
32781
  }[] | 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;
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;
32760
32792
  }>;
32761
32793
  summary: "Update a message";
32762
32794
  method: "PATCH";
@@ -32767,6 +32799,7 @@ export declare const mailContract: {
32767
32799
  }, {
32768
32800
  id: string;
32769
32801
  }>;
32802
+ path: "ems/mail/message/:id";
32770
32803
  responses: {
32771
32804
  401: import("zod").ZodObject<{
32772
32805
  message: import("zod").ZodString;
@@ -32800,6 +32833,7 @@ export declare const mailContract: {
32800
32833
  }>;
32801
32834
  200: import("zod").ZodObject<{
32802
32835
  requestId: import("zod").ZodString;
32836
+ } & {
32803
32837
  data: import("zod").ZodObject<{
32804
32838
  id: import("zod").ZodString;
32805
32839
  createdAt: import("zod").ZodDate;
@@ -34213,7 +34247,6 @@ export declare const mailContract: {
34213
34247
  requestId: string;
34214
34248
  }>;
34215
34249
  };
34216
- path: "ems/mail/message/:id";
34217
34250
  };
34218
34251
  delete: {
34219
34252
  body: null;
@@ -34226,6 +34259,7 @@ export declare const mailContract: {
34226
34259
  }, {
34227
34260
  id: string;
34228
34261
  }>;
34262
+ path: "ems/mail/message/:id";
34229
34263
  responses: {
34230
34264
  401: import("zod").ZodObject<{
34231
34265
  message: import("zod").ZodString;
@@ -34259,6 +34293,7 @@ export declare const mailContract: {
34259
34293
  }>;
34260
34294
  200: import("zod").ZodObject<{
34261
34295
  requestId: import("zod").ZodString;
34296
+ } & {
34262
34297
  data: import("zod").ZodObject<{
34263
34298
  id: import("zod").ZodString;
34264
34299
  createdAt: import("zod").ZodDate;
@@ -35672,7 +35707,6 @@ export declare const mailContract: {
35672
35707
  requestId: string;
35673
35708
  }>;
35674
35709
  };
35675
- path: "ems/mail/message/:id";
35676
35710
  };
35677
35711
  cancelScheduledMessage: {
35678
35712
  body: null;
@@ -35685,6 +35719,7 @@ export declare const mailContract: {
35685
35719
  }, {
35686
35720
  id: string;
35687
35721
  }>;
35722
+ path: "ems/mail/message/scheduled_message/:id";
35688
35723
  responses: {
35689
35724
  401: import("zod").ZodObject<{
35690
35725
  message: import("zod").ZodString;
@@ -35718,6 +35753,7 @@ export declare const mailContract: {
35718
35753
  }>;
35719
35754
  200: import("zod").ZodObject<{
35720
35755
  requestId: import("zod").ZodString;
35756
+ } & {
35721
35757
  data: import("zod").ZodObject<{
35722
35758
  totalMessagesCount: import("zod").ZodNumber;
35723
35759
  }, "strip", import("zod").ZodTypeAny, {
@@ -35737,7 +35773,6 @@ export declare const mailContract: {
35737
35773
  requestId: string;
35738
35774
  }>;
35739
35775
  };
35740
- path: "ems/mail/message/scheduled_message/:id";
35741
35776
  };
35742
35777
  };
35743
35778
  account: {
@@ -35760,6 +35795,23 @@ export declare const mailContract: {
35760
35795
  }>;
35761
35796
  summary: "Register a new mail account";
35762
35797
  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
+ }>>>;
35763
35815
  responses: {
35764
35816
  401: import("zod").ZodObject<{
35765
35817
  message: import("zod").ZodString;
@@ -35793,6 +35845,7 @@ export declare const mailContract: {
35793
35845
  }>;
35794
35846
  201: import("zod").ZodObject<{
35795
35847
  requestId: import("zod").ZodString;
35848
+ } & {
35796
35849
  data: import("zod").ZodObject<{
35797
35850
  id: import("zod").ZodString;
35798
35851
  name: import("zod").ZodString;
@@ -35976,23 +36029,6 @@ export declare const mailContract: {
35976
36029
  message: string;
35977
36030
  }>;
35978
36031
  };
35979
- path: "ems/mail/account";
35980
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35981
- 'x-tenant': import("zod").ZodString;
35982
- 'x-service-token': import("zod").ZodString;
35983
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
35984
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
35985
- }, "strip", import("zod").ZodTypeAny, {
35986
- 'x-tenant': string;
35987
- 'x-service-token': string;
35988
- 'x-client-timezone': string;
35989
- 'x-code'?: string | undefined;
35990
- }, {
35991
- 'x-tenant': string;
35992
- 'x-service-token': string;
35993
- 'x-code'?: string | undefined;
35994
- 'x-client-timezone'?: string | undefined;
35995
- }>>>;
35996
36032
  };
35997
36033
  createWithCustomSmtpAndImap: {
35998
36034
  body: import("zod").ZodObject<{
@@ -36056,6 +36092,23 @@ export declare const mailContract: {
36056
36092
  }>;
36057
36093
  summary: "Register a new mail account";
36058
36094
  method: "POST";
36095
+ path: "ems/mail/account/smtp-imap";
36096
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36097
+ 'x-tenant': import("zod").ZodString;
36098
+ 'x-service-token': import("zod").ZodString;
36099
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
36100
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
36101
+ }, "strip", import("zod").ZodTypeAny, {
36102
+ 'x-tenant': string;
36103
+ 'x-service-token': string;
36104
+ 'x-client-timezone': string;
36105
+ 'x-code'?: string | undefined;
36106
+ }, {
36107
+ 'x-tenant': string;
36108
+ 'x-service-token': string;
36109
+ 'x-code'?: string | undefined;
36110
+ 'x-client-timezone'?: string | undefined;
36111
+ }>>>;
36059
36112
  responses: {
36060
36113
  401: import("zod").ZodObject<{
36061
36114
  message: import("zod").ZodString;
@@ -36116,7 +36169,21 @@ export declare const mailContract: {
36116
36169
  message: string;
36117
36170
  }>;
36118
36171
  };
36119
- path: "ems/mail/account/smtp-imap";
36172
+ };
36173
+ generateOAuth2AuthenticationLink: {
36174
+ body: import("zod").ZodObject<{
36175
+ oAuth2AppId: import("zod").ZodString;
36176
+ mailServerId: import("zod").ZodString;
36177
+ }, "strip", import("zod").ZodTypeAny, {
36178
+ mailServerId: string;
36179
+ oAuth2AppId: string;
36180
+ }, {
36181
+ mailServerId: string;
36182
+ oAuth2AppId: string;
36183
+ }>;
36184
+ summary: "Generate oauth2 authentication form link";
36185
+ method: "POST";
36186
+ path: "ems/mail/account/oauth2_authentication_form_link";
36120
36187
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36121
36188
  'x-tenant': import("zod").ZodString;
36122
36189
  'x-service-token': import("zod").ZodString;
@@ -36133,20 +36200,6 @@ export declare const mailContract: {
36133
36200
  'x-code'?: string | undefined;
36134
36201
  'x-client-timezone'?: string | undefined;
36135
36202
  }>>>;
36136
- };
36137
- generateOAuth2AuthenticationLink: {
36138
- body: import("zod").ZodObject<{
36139
- oAuth2AppId: import("zod").ZodString;
36140
- mailServerId: import("zod").ZodString;
36141
- }, "strip", import("zod").ZodTypeAny, {
36142
- mailServerId: string;
36143
- oAuth2AppId: string;
36144
- }, {
36145
- mailServerId: string;
36146
- oAuth2AppId: string;
36147
- }>;
36148
- summary: "Generate oauth2 authentication form link";
36149
- method: "POST";
36150
36203
  responses: {
36151
36204
  401: import("zod").ZodObject<{
36152
36205
  message: import("zod").ZodString;
@@ -36180,6 +36233,7 @@ export declare const mailContract: {
36180
36233
  }>;
36181
36234
  201: import("zod").ZodObject<{
36182
36235
  requestId: import("zod").ZodString;
36236
+ } & {
36183
36237
  data: import("zod").ZodObject<{
36184
36238
  url: import("zod").ZodString;
36185
36239
  account: import("zod").ZodString;
@@ -36225,7 +36279,11 @@ export declare const mailContract: {
36225
36279
  message: string;
36226
36280
  }>;
36227
36281
  };
36228
- path: "ems/mail/account/oauth2_authentication_form_link";
36282
+ };
36283
+ sync: {
36284
+ summary: "Sync all accounts state from email engine to system";
36285
+ method: "GET";
36286
+ path: "ems/mail/account/sync";
36229
36287
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36230
36288
  'x-tenant': import("zod").ZodString;
36231
36289
  'x-service-token': import("zod").ZodString;
@@ -36242,10 +36300,6 @@ export declare const mailContract: {
36242
36300
  'x-code'?: string | undefined;
36243
36301
  'x-client-timezone'?: string | undefined;
36244
36302
  }>>>;
36245
- };
36246
- sync: {
36247
- summary: "Sync all accounts state from email engine to system";
36248
- method: "GET";
36249
36303
  responses: {
36250
36304
  401: import("zod").ZodObject<{
36251
36305
  message: import("zod").ZodString;
@@ -36279,6 +36333,7 @@ export declare const mailContract: {
36279
36333
  }>;
36280
36334
  200: import("zod").ZodObject<{
36281
36335
  requestId: import("zod").ZodString;
36336
+ } & {
36282
36337
  message: import("zod").ZodString;
36283
36338
  }, "strip", import("zod").ZodTypeAny, {
36284
36339
  message: string;
@@ -36288,7 +36343,18 @@ export declare const mailContract: {
36288
36343
  requestId: string;
36289
36344
  }>;
36290
36345
  };
36291
- path: "ems/mail/account/sync";
36346
+ };
36347
+ getById: {
36348
+ summary: "Get an account by id";
36349
+ method: "GET";
36350
+ pathParams: import("zod").ZodObject<{
36351
+ id: import("zod").ZodString;
36352
+ }, "strip", import("zod").ZodTypeAny, {
36353
+ id: string;
36354
+ }, {
36355
+ id: string;
36356
+ }>;
36357
+ path: "ems/mail/account/:id";
36292
36358
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36293
36359
  'x-tenant': import("zod").ZodString;
36294
36360
  'x-service-token': import("zod").ZodString;
@@ -36305,17 +36371,6 @@ export declare const mailContract: {
36305
36371
  'x-code'?: string | undefined;
36306
36372
  'x-client-timezone'?: string | undefined;
36307
36373
  }>>>;
36308
- };
36309
- getById: {
36310
- summary: "Get an account by id";
36311
- method: "GET";
36312
- pathParams: import("zod").ZodObject<{
36313
- id: import("zod").ZodString;
36314
- }, "strip", import("zod").ZodTypeAny, {
36315
- id: string;
36316
- }, {
36317
- id: string;
36318
- }>;
36319
36374
  responses: {
36320
36375
  401: import("zod").ZodObject<{
36321
36376
  message: import("zod").ZodString;
@@ -36349,6 +36404,7 @@ export declare const mailContract: {
36349
36404
  }>;
36350
36405
  200: import("zod").ZodObject<{
36351
36406
  requestId: import("zod").ZodString;
36407
+ } & {
36352
36408
  data: import("zod").ZodObject<{
36353
36409
  id: import("zod").ZodString;
36354
36410
  name: import("zod").ZodString;
@@ -36511,7 +36567,21 @@ export declare const mailContract: {
36511
36567
  requestId: string;
36512
36568
  }>;
36513
36569
  };
36514
- path: "ems/mail/account/:id";
36570
+ };
36571
+ getAll: {
36572
+ summary: "Get all accounts";
36573
+ method: "GET";
36574
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
36575
+ state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
36576
+ withDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
36577
+ }, "strip", import("zod").ZodTypeAny, {
36578
+ withDeleted: boolean;
36579
+ state?: "connected" | "disconnected" | undefined;
36580
+ }, {
36581
+ state?: "connected" | "disconnected" | undefined;
36582
+ withDeleted?: boolean | undefined;
36583
+ }>>;
36584
+ path: "ems/mail/account";
36515
36585
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36516
36586
  'x-tenant': import("zod").ZodString;
36517
36587
  'x-service-token': import("zod").ZodString;
@@ -36528,20 +36598,6 @@ export declare const mailContract: {
36528
36598
  'x-code'?: string | undefined;
36529
36599
  'x-client-timezone'?: string | undefined;
36530
36600
  }>>>;
36531
- };
36532
- getAll: {
36533
- summary: "Get all accounts";
36534
- method: "GET";
36535
- query: import("zod").ZodOptional<import("zod").ZodObject<{
36536
- state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
36537
- withDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
36538
- }, "strip", import("zod").ZodTypeAny, {
36539
- withDeleted: boolean;
36540
- state?: "connected" | "disconnected" | undefined;
36541
- }, {
36542
- state?: "connected" | "disconnected" | undefined;
36543
- withDeleted?: boolean | undefined;
36544
- }>>;
36545
36601
  responses: {
36546
36602
  401: import("zod").ZodObject<{
36547
36603
  message: import("zod").ZodString;
@@ -36575,6 +36631,7 @@ export declare const mailContract: {
36575
36631
  }>;
36576
36632
  200: import("zod").ZodObject<{
36577
36633
  requestId: import("zod").ZodString;
36634
+ } & {
36578
36635
  data: import("zod").ZodArray<import("zod").ZodObject<{
36579
36636
  id: import("zod").ZodString;
36580
36637
  name: import("zod").ZodString;
@@ -36737,23 +36794,6 @@ export declare const mailContract: {
36737
36794
  requestId: string;
36738
36795
  }>;
36739
36796
  };
36740
- path: "ems/mail/account";
36741
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36742
- 'x-tenant': import("zod").ZodString;
36743
- 'x-service-token': import("zod").ZodString;
36744
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
36745
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
36746
- }, "strip", import("zod").ZodTypeAny, {
36747
- 'x-tenant': string;
36748
- 'x-service-token': string;
36749
- 'x-client-timezone': string;
36750
- 'x-code'?: string | undefined;
36751
- }, {
36752
- 'x-tenant': string;
36753
- 'x-service-token': string;
36754
- 'x-code'?: string | undefined;
36755
- 'x-client-timezone'?: string | undefined;
36756
- }>>>;
36757
36797
  };
36758
36798
  update: {
36759
36799
  body: import("zod").ZodObject<{
@@ -36810,9 +36850,13 @@ export declare const mailContract: {
36810
36850
  updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
36811
36851
  deletedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
36812
36852
  }, "strip", import("zod").ZodTypeAny, {
36813
- id?: string | undefined;
36814
36853
  name?: string | undefined;
36854
+ id?: string | undefined;
36855
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36815
36856
  address?: string | undefined;
36857
+ createdAt?: Date | undefined;
36858
+ updatedAt?: Date | undefined;
36859
+ deletedAt?: Date | null | undefined;
36816
36860
  accountId?: string | undefined;
36817
36861
  mailServerId?: string | undefined;
36818
36862
  mailServer?: {
@@ -36830,14 +36874,14 @@ export declare const mailContract: {
36830
36874
  imapTlsPort: number;
36831
36875
  useTlsForImap: boolean;
36832
36876
  } | undefined;
36877
+ }, {
36878
+ name?: string | undefined;
36879
+ id?: string | undefined;
36833
36880
  state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36881
+ address?: string | undefined;
36834
36882
  createdAt?: Date | undefined;
36835
36883
  updatedAt?: Date | undefined;
36836
36884
  deletedAt?: Date | null | undefined;
36837
- }, {
36838
- id?: string | undefined;
36839
- name?: string | undefined;
36840
- address?: string | undefined;
36841
36885
  accountId?: string | undefined;
36842
36886
  mailServerId?: string | undefined;
36843
36887
  mailServer?: {
@@ -36855,10 +36899,6 @@ export declare const mailContract: {
36855
36899
  imapTlsPort: number;
36856
36900
  useTlsForImap: boolean;
36857
36901
  } | undefined;
36858
- state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36859
- createdAt?: Date | undefined;
36860
- updatedAt?: Date | undefined;
36861
- deletedAt?: Date | null | undefined;
36862
36902
  }>;
36863
36903
  summary: "Update a account by id";
36864
36904
  method: "PATCH";
@@ -36869,6 +36909,23 @@ export declare const mailContract: {
36869
36909
  }, {
36870
36910
  id: string;
36871
36911
  }>;
36912
+ path: "ems/mail/account/:id";
36913
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36914
+ 'x-tenant': import("zod").ZodString;
36915
+ 'x-service-token': import("zod").ZodString;
36916
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
36917
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
36918
+ }, "strip", import("zod").ZodTypeAny, {
36919
+ 'x-tenant': string;
36920
+ 'x-service-token': string;
36921
+ 'x-client-timezone': string;
36922
+ 'x-code'?: string | undefined;
36923
+ }, {
36924
+ 'x-tenant': string;
36925
+ 'x-service-token': string;
36926
+ 'x-code'?: string | undefined;
36927
+ 'x-client-timezone'?: string | undefined;
36928
+ }>>>;
36872
36929
  responses: {
36873
36930
  401: import("zod").ZodObject<{
36874
36931
  message: import("zod").ZodString;
@@ -36902,6 +36959,7 @@ export declare const mailContract: {
36902
36959
  }>;
36903
36960
  201: import("zod").ZodObject<{
36904
36961
  requestId: import("zod").ZodString;
36962
+ } & {
36905
36963
  data: import("zod").ZodObject<{
36906
36964
  id: import("zod").ZodString;
36907
36965
  name: import("zod").ZodString;
@@ -37064,7 +37122,19 @@ export declare const mailContract: {
37064
37122
  requestId: string;
37065
37123
  }>;
37066
37124
  };
37067
- path: "ems/mail/account/:id";
37125
+ };
37126
+ disconnect: {
37127
+ body: null;
37128
+ summary: "Disconnect an account";
37129
+ method: "PATCH";
37130
+ pathParams: import("zod").ZodObject<{
37131
+ id: import("zod").ZodString;
37132
+ }, "strip", import("zod").ZodTypeAny, {
37133
+ id: string;
37134
+ }, {
37135
+ id: string;
37136
+ }>;
37137
+ path: "ems/mail/account/:id/disconnect";
37068
37138
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37069
37139
  'x-tenant': import("zod").ZodString;
37070
37140
  'x-service-token': import("zod").ZodString;
@@ -37081,18 +37151,6 @@ export declare const mailContract: {
37081
37151
  'x-code'?: string | undefined;
37082
37152
  'x-client-timezone'?: string | undefined;
37083
37153
  }>>>;
37084
- };
37085
- disconnect: {
37086
- body: null;
37087
- summary: "Disconnect an account";
37088
- method: "PATCH";
37089
- pathParams: import("zod").ZodObject<{
37090
- id: import("zod").ZodString;
37091
- }, "strip", import("zod").ZodTypeAny, {
37092
- id: string;
37093
- }, {
37094
- id: string;
37095
- }>;
37096
37154
  responses: {
37097
37155
  401: import("zod").ZodObject<{
37098
37156
  message: import("zod").ZodString;
@@ -37126,6 +37184,7 @@ export declare const mailContract: {
37126
37184
  }>;
37127
37185
  201: import("zod").ZodObject<{
37128
37186
  requestId: import("zod").ZodString;
37187
+ } & {
37129
37188
  data: import("zod").ZodObject<{
37130
37189
  id: import("zod").ZodString;
37131
37190
  name: import("zod").ZodString;
@@ -37288,7 +37347,19 @@ export declare const mailContract: {
37288
37347
  requestId: string;
37289
37348
  }>;
37290
37349
  };
37291
- path: "ems/mail/account/:id/disconnect";
37350
+ };
37351
+ reconnect: {
37352
+ body: null;
37353
+ summary: "Reconnect a disconncted account";
37354
+ method: "PATCH";
37355
+ pathParams: import("zod").ZodObject<{
37356
+ id: import("zod").ZodString;
37357
+ }, "strip", import("zod").ZodTypeAny, {
37358
+ id: string;
37359
+ }, {
37360
+ id: string;
37361
+ }>;
37362
+ path: "ems/mail/account/:id/reconnect";
37292
37363
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37293
37364
  'x-tenant': import("zod").ZodString;
37294
37365
  'x-service-token': import("zod").ZodString;
@@ -37305,18 +37376,6 @@ export declare const mailContract: {
37305
37376
  'x-code'?: string | undefined;
37306
37377
  'x-client-timezone'?: string | undefined;
37307
37378
  }>>>;
37308
- };
37309
- reconnect: {
37310
- body: null;
37311
- summary: "Reconnect a disconncted account";
37312
- method: "PATCH";
37313
- pathParams: import("zod").ZodObject<{
37314
- id: import("zod").ZodString;
37315
- }, "strip", import("zod").ZodTypeAny, {
37316
- id: string;
37317
- }, {
37318
- id: string;
37319
- }>;
37320
37379
  responses: {
37321
37380
  401: import("zod").ZodObject<{
37322
37381
  message: import("zod").ZodString;
@@ -37350,6 +37409,7 @@ export declare const mailContract: {
37350
37409
  }>;
37351
37410
  201: import("zod").ZodObject<{
37352
37411
  requestId: import("zod").ZodString;
37412
+ } & {
37353
37413
  data: import("zod").ZodObject<{
37354
37414
  id: import("zod").ZodString;
37355
37415
  name: import("zod").ZodString;
@@ -37512,7 +37572,19 @@ export declare const mailContract: {
37512
37572
  requestId: string;
37513
37573
  }>;
37514
37574
  };
37515
- path: "ems/mail/account/:id/reconnect";
37575
+ };
37576
+ delete: {
37577
+ body: null;
37578
+ summary: "Delete an account by id";
37579
+ method: "DELETE";
37580
+ pathParams: import("zod").ZodObject<{
37581
+ id: import("zod").ZodString;
37582
+ }, "strip", import("zod").ZodTypeAny, {
37583
+ id: string;
37584
+ }, {
37585
+ id: string;
37586
+ }>;
37587
+ path: "ems/mail/account/:id";
37516
37588
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37517
37589
  'x-tenant': import("zod").ZodString;
37518
37590
  'x-service-token': import("zod").ZodString;
@@ -37529,18 +37601,6 @@ export declare const mailContract: {
37529
37601
  'x-code'?: string | undefined;
37530
37602
  'x-client-timezone'?: string | undefined;
37531
37603
  }>>>;
37532
- };
37533
- delete: {
37534
- body: null;
37535
- summary: "Delete an account by id";
37536
- method: "DELETE";
37537
- pathParams: import("zod").ZodObject<{
37538
- id: import("zod").ZodString;
37539
- }, "strip", import("zod").ZodTypeAny, {
37540
- id: string;
37541
- }, {
37542
- id: string;
37543
- }>;
37544
37604
  responses: {
37545
37605
  401: import("zod").ZodObject<{
37546
37606
  message: import("zod").ZodString;
@@ -37574,6 +37634,7 @@ export declare const mailContract: {
37574
37634
  }>;
37575
37635
  200: import("zod").ZodObject<{
37576
37636
  requestId: import("zod").ZodString;
37637
+ } & {
37577
37638
  message: import("zod").ZodString;
37578
37639
  }, "strip", import("zod").ZodTypeAny, {
37579
37640
  message: string;
@@ -37583,7 +37644,19 @@ export declare const mailContract: {
37583
37644
  requestId: string;
37584
37645
  }>;
37585
37646
  };
37586
- path: "ems/mail/account/:id";
37647
+ };
37648
+ deleteEmailEngineAcc: {
37649
+ body: null;
37650
+ summary: "Delete an account by id";
37651
+ method: "DELETE";
37652
+ pathParams: import("zod").ZodObject<{
37653
+ account: import("zod").ZodString;
37654
+ }, "strip", import("zod").ZodTypeAny, {
37655
+ account: string;
37656
+ }, {
37657
+ account: string;
37658
+ }>;
37659
+ path: "ems/mail/account/email-engine/:account";
37587
37660
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37588
37661
  'x-tenant': import("zod").ZodString;
37589
37662
  'x-service-token': import("zod").ZodString;
@@ -37600,18 +37673,6 @@ export declare const mailContract: {
37600
37673
  'x-code'?: string | undefined;
37601
37674
  'x-client-timezone'?: string | undefined;
37602
37675
  }>>>;
37603
- };
37604
- deleteEmailEngineAcc: {
37605
- body: null;
37606
- summary: "Delete an account by id";
37607
- method: "DELETE";
37608
- pathParams: import("zod").ZodObject<{
37609
- account: import("zod").ZodString;
37610
- }, "strip", import("zod").ZodTypeAny, {
37611
- account: string;
37612
- }, {
37613
- account: string;
37614
- }>;
37615
37676
  responses: {
37616
37677
  401: import("zod").ZodObject<{
37617
37678
  message: import("zod").ZodString;
@@ -37645,6 +37706,7 @@ export declare const mailContract: {
37645
37706
  }>;
37646
37707
  200: import("zod").ZodObject<{
37647
37708
  requestId: import("zod").ZodString;
37709
+ } & {
37648
37710
  message: import("zod").ZodString;
37649
37711
  }, "strip", import("zod").ZodTypeAny, {
37650
37712
  message: string;
@@ -37654,7 +37716,21 @@ export declare const mailContract: {
37654
37716
  requestId: string;
37655
37717
  }>;
37656
37718
  };
37657
- path: "ems/mail/account/email-engine/:account";
37719
+ };
37720
+ createOAuth2Acc: {
37721
+ body: import("zod").ZodObject<{
37722
+ account: import("zod").ZodString;
37723
+ name: import("zod").ZodString;
37724
+ }, "strip", import("zod").ZodTypeAny, {
37725
+ name: string;
37726
+ account: string;
37727
+ }, {
37728
+ name: string;
37729
+ account: string;
37730
+ }>;
37731
+ summary: "Register OAuth2 account.";
37732
+ method: "POST";
37733
+ path: "ems/mail/account/oauth2";
37658
37734
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37659
37735
  'x-tenant': import("zod").ZodString;
37660
37736
  'x-service-token': import("zod").ZodString;
@@ -37671,20 +37747,6 @@ export declare const mailContract: {
37671
37747
  'x-code'?: string | undefined;
37672
37748
  'x-client-timezone'?: string | undefined;
37673
37749
  }>>>;
37674
- };
37675
- createOAuth2Acc: {
37676
- body: import("zod").ZodObject<{
37677
- account: import("zod").ZodString;
37678
- name: import("zod").ZodString;
37679
- }, "strip", import("zod").ZodTypeAny, {
37680
- name: string;
37681
- account: string;
37682
- }, {
37683
- name: string;
37684
- account: string;
37685
- }>;
37686
- summary: "Register OAuth2 account.";
37687
- method: "POST";
37688
37750
  responses: {
37689
37751
  401: import("zod").ZodObject<{
37690
37752
  message: import("zod").ZodString;
@@ -37821,23 +37883,6 @@ export declare const mailContract: {
37821
37883
  };
37822
37884
  }>;
37823
37885
  };
37824
- path: "ems/mail/account/oauth2";
37825
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37826
- 'x-tenant': import("zod").ZodString;
37827
- 'x-service-token': import("zod").ZodString;
37828
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
37829
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
37830
- }, "strip", import("zod").ZodTypeAny, {
37831
- 'x-tenant': string;
37832
- 'x-service-token': string;
37833
- 'x-client-timezone': string;
37834
- 'x-code'?: string | undefined;
37835
- }, {
37836
- 'x-tenant': string;
37837
- 'x-service-token': string;
37838
- 'x-code'?: string | undefined;
37839
- 'x-client-timezone'?: string | undefined;
37840
- }>>>;
37841
37886
  };
37842
37887
  };
37843
37888
  server: {
@@ -37875,6 +37920,7 @@ export declare const mailContract: {
37875
37920
  }>;
37876
37921
  summary: "Register a new mail server";
37877
37922
  method: "POST";
37923
+ path: "ems/mail/server/";
37878
37924
  responses: {
37879
37925
  401: import("zod").ZodObject<{
37880
37926
  message: import("zod").ZodString;
@@ -37908,6 +37954,7 @@ export declare const mailContract: {
37908
37954
  }>;
37909
37955
  201: import("zod").ZodObject<{
37910
37956
  requestId: import("zod").ZodString;
37957
+ } & {
37911
37958
  data: import("zod").ZodObject<{
37912
37959
  id: import("zod").ZodString;
37913
37960
  createdAt: import("zod").ZodDate;
@@ -37987,11 +38034,11 @@ export declare const mailContract: {
37987
38034
  requestId: string;
37988
38035
  }>;
37989
38036
  };
37990
- path: "ems/mail/server/";
37991
38037
  };
37992
38038
  getOAuth2Apps: {
37993
38039
  summary: "Get all oauth2 apps";
37994
38040
  method: "GET";
38041
+ path: "ems/mail/server/oauth2/apps";
37995
38042
  responses: {
37996
38043
  401: import("zod").ZodObject<{
37997
38044
  message: import("zod").ZodString;
@@ -38025,6 +38072,7 @@ export declare const mailContract: {
38025
38072
  }>;
38026
38073
  200: import("zod").ZodObject<{
38027
38074
  requestId: import("zod").ZodString;
38075
+ } & {
38028
38076
  data: import("zod").ZodObject<{
38029
38077
  total: import("zod").ZodNumber;
38030
38078
  pages: import("zod").ZodNumber;
@@ -38192,7 +38240,6 @@ export declare const mailContract: {
38192
38240
  requestId: string;
38193
38241
  }>;
38194
38242
  };
38195
- path: "ems/mail/server/oauth2/apps";
38196
38243
  };
38197
38244
  getById: {
38198
38245
  summary: "Get a mail server by id";
@@ -38204,6 +38251,7 @@ export declare const mailContract: {
38204
38251
  }, {
38205
38252
  id: string;
38206
38253
  }>;
38254
+ path: "ems/mail/server/:id";
38207
38255
  responses: {
38208
38256
  401: import("zod").ZodObject<{
38209
38257
  message: import("zod").ZodString;
@@ -38237,6 +38285,7 @@ export declare const mailContract: {
38237
38285
  }>;
38238
38286
  200: import("zod").ZodObject<{
38239
38287
  requestId: import("zod").ZodString;
38288
+ } & {
38240
38289
  data: import("zod").ZodObject<{
38241
38290
  id: import("zod").ZodString;
38242
38291
  createdAt: import("zod").ZodDate;
@@ -38316,11 +38365,11 @@ export declare const mailContract: {
38316
38365
  requestId: string;
38317
38366
  }>;
38318
38367
  };
38319
- path: "ems/mail/server/:id";
38320
38368
  };
38321
38369
  getAll: {
38322
38370
  summary: "Get all mail servers";
38323
38371
  method: "GET";
38372
+ path: "ems/mail/server/";
38324
38373
  responses: {
38325
38374
  401: import("zod").ZodObject<{
38326
38375
  message: import("zod").ZodString;
@@ -38354,6 +38403,7 @@ export declare const mailContract: {
38354
38403
  }>;
38355
38404
  200: import("zod").ZodObject<{
38356
38405
  requestId: import("zod").ZodString;
38406
+ } & {
38357
38407
  data: import("zod").ZodArray<import("zod").ZodObject<{
38358
38408
  id: import("zod").ZodString;
38359
38409
  createdAt: import("zod").ZodDate;
@@ -38433,7 +38483,6 @@ export declare const mailContract: {
38433
38483
  requestId: string;
38434
38484
  }>;
38435
38485
  };
38436
- path: "ems/mail/server/";
38437
38486
  };
38438
38487
  update: {
38439
38488
  body: import("zod").ZodObject<{
@@ -38476,6 +38525,7 @@ export declare const mailContract: {
38476
38525
  }, {
38477
38526
  id: string;
38478
38527
  }>;
38528
+ path: "ems/mail/server/:id";
38479
38529
  responses: {
38480
38530
  401: import("zod").ZodObject<{
38481
38531
  message: import("zod").ZodString;
@@ -38509,6 +38559,7 @@ export declare const mailContract: {
38509
38559
  }>;
38510
38560
  200: import("zod").ZodObject<{
38511
38561
  requestId: import("zod").ZodString;
38562
+ } & {
38512
38563
  data: import("zod").ZodObject<{
38513
38564
  id: import("zod").ZodString;
38514
38565
  createdAt: import("zod").ZodDate;
@@ -38588,7 +38639,6 @@ export declare const mailContract: {
38588
38639
  requestId: string;
38589
38640
  }>;
38590
38641
  };
38591
- path: "ems/mail/server/:id";
38592
38642
  };
38593
38643
  delete: {
38594
38644
  body: null;
@@ -38601,6 +38651,7 @@ export declare const mailContract: {
38601
38651
  }, {
38602
38652
  id: string;
38603
38653
  }>;
38654
+ path: "ems/mail/server/:id";
38604
38655
  responses: {
38605
38656
  401: import("zod").ZodObject<{
38606
38657
  message: import("zod").ZodString;
@@ -38634,6 +38685,7 @@ export declare const mailContract: {
38634
38685
  }>;
38635
38686
  200: import("zod").ZodObject<{
38636
38687
  requestId: import("zod").ZodString;
38688
+ } & {
38637
38689
  data: import("zod").ZodObject<{
38638
38690
  id: import("zod").ZodString;
38639
38691
  createdAt: import("zod").ZodDate;
@@ -38713,7 +38765,6 @@ export declare const mailContract: {
38713
38765
  requestId: string;
38714
38766
  }>;
38715
38767
  };
38716
- path: "ems/mail/server/:id";
38717
38768
  };
38718
38769
  };
38719
38770
  };