@kl1/contracts 1.2.25-uat → 1.2.27-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +17 -17
  2. package/dist/api-contracts/src/attribute/index.d.ts +164 -148
  3. package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
  4. package/dist/api-contracts/src/attribute/schema.d.ts +11 -8
  5. package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
  6. package/dist/api-contracts/src/attribute-option/schema.d.ts +3 -2
  7. package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
  8. package/dist/api-contracts/src/auth/index.d.ts +51 -47
  9. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  10. package/dist/api-contracts/src/automation-queue/index.d.ts +43 -31
  11. package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
  12. package/dist/api-contracts/src/automation-queue/schema.d.ts +3 -2
  13. package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
  14. package/dist/api-contracts/src/aws/index.d.ts +8 -6
  15. package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
  16. package/dist/api-contracts/src/botpress/index.d.ts +17 -13
  17. package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
  18. package/dist/api-contracts/src/business-calendar/index.d.ts +40 -28
  19. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  20. package/dist/api-contracts/src/business-calendar/schema.d.ts +15 -10
  21. package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
  22. package/dist/api-contracts/src/call-log/schema.d.ts +5 -4
  23. package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
  24. package/dist/api-contracts/src/category/index.d.ts +118 -109
  25. package/dist/api-contracts/src/category/index.d.ts.map +1 -1
  26. package/dist/api-contracts/src/category/schema.d.ts +3 -2
  27. package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
  28. package/dist/api-contracts/src/channel/index.d.ts +1064 -1039
  29. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  30. package/dist/api-contracts/src/channel/schema.d.ts +38 -38
  31. package/dist/api-contracts/src/channel/validation.d.ts +52 -52
  32. package/dist/api-contracts/src/chat/index.d.ts +14725 -14189
  33. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  34. package/dist/api-contracts/src/chat/schema.d.ts +2120 -1984
  35. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  36. package/dist/api-contracts/src/chat/validation.d.ts +3894 -3827
  37. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  38. package/dist/api-contracts/src/comment/index.d.ts +281 -224
  39. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  40. package/dist/api-contracts/src/comment/schema.d.ts +68 -50
  41. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  42. package/dist/api-contracts/src/comment/validation.d.ts +1 -1
  43. package/dist/api-contracts/src/company/index.d.ts +136 -109
  44. package/dist/api-contracts/src/company/index.d.ts.map +1 -1
  45. package/dist/api-contracts/src/company/schema.d.ts +33 -24
  46. package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
  47. package/dist/api-contracts/src/company/validation.d.ts +78 -62
  48. package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
  49. package/dist/api-contracts/src/contact/index.d.ts +686 -568
  50. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  51. package/dist/api-contracts/src/contact/schema.d.ts +56 -42
  52. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  53. package/dist/api-contracts/src/contact/validation.d.ts +299 -218
  54. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  55. package/dist/api-contracts/src/contact-email/schema.d.ts +3 -2
  56. package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
  57. package/dist/api-contracts/src/contact-phone/schema.d.ts +3 -2
  58. package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
  59. package/dist/api-contracts/src/contract.d.ts +23919 -22617
  60. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  61. package/dist/api-contracts/src/custom-field/schema.d.ts +3 -2
  62. package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
  63. package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
  64. package/dist/api-contracts/src/custom-field-upload/schema.d.ts +3 -2
  65. package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
  66. package/dist/api-contracts/src/cx-log/index.d.ts +684 -644
  67. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  68. package/dist/api-contracts/src/cx-log/schema.d.ts +448 -405
  69. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  70. package/dist/api-contracts/src/cx-log/validation.d.ts +39 -39
  71. package/dist/api-contracts/src/dashboard/index.d.ts +378 -337
  72. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  73. package/dist/api-contracts/src/dashboard/schema.d.ts +7 -6
  74. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  75. package/dist/api-contracts/src/dashboard/validation.d.ts +24 -18
  76. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  77. package/dist/api-contracts/src/evaluate-form/index.d.ts +4 -3
  78. package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
  79. package/dist/api-contracts/src/evaluate-form/schema.d.ts +3 -2
  80. package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
  81. package/dist/api-contracts/src/export/index.d.ts +4 -3
  82. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  83. package/dist/api-contracts/src/extension/index.d.ts +118 -112
  84. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  85. package/dist/api-contracts/src/facebook-feed/index.d.ts +1872 -1802
  86. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  87. package/dist/api-contracts/src/facebook-feed/schema.d.ts +73 -62
  88. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  89. package/dist/api-contracts/src/facebook-feed/validation.d.ts +96 -79
  90. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  91. package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
  92. package/dist/api-contracts/src/group/schema.d.ts +3 -2
  93. package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
  94. package/dist/api-contracts/src/hold-label/index.d.ts +37 -27
  95. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  96. package/dist/api-contracts/src/hold-label/schema.d.ts +3 -2
  97. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  98. package/dist/api-contracts/src/index.d.ts +1 -0
  99. package/dist/api-contracts/src/index.d.ts.map +1 -1
  100. package/dist/api-contracts/src/instagram/index.d.ts +1366 -1316
  101. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  102. package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
  103. package/dist/api-contracts/src/line/index.d.ts +1469 -1419
  104. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  105. package/dist/api-contracts/src/line/schema.d.ts +12 -11
  106. package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
  107. package/dist/api-contracts/src/line/validation.d.ts +98 -98
  108. package/dist/api-contracts/src/log-form/schema.d.ts +3 -2
  109. package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
  110. package/dist/api-contracts/src/mail/account-contract.d.ts +184 -174
  111. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  112. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +4 -3
  113. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  114. package/dist/api-contracts/src/mail/mail-contract.d.ts +461 -416
  115. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  116. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +24 -18
  117. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  118. package/dist/api-contracts/src/mail/message-contract.d.ts +113 -107
  119. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  120. package/dist/api-contracts/src/mail/room-contract.d.ts +88 -65
  121. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  122. package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
  123. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +22 -18
  124. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  125. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +15 -10
  126. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  127. package/dist/api-contracts/src/messenger/index.d.ts +1368 -1316
  128. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  129. package/dist/api-contracts/src/messenger/validation.d.ts +96 -79
  130. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  131. package/dist/api-contracts/src/notification/index.d.ts +16 -12
  132. package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
  133. package/dist/api-contracts/src/permission/index.d.ts +17 -17
  134. package/dist/api-contracts/src/presence-status/index.d.ts +84 -81
  135. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  136. package/dist/api-contracts/src/public-api/index.d.ts +260 -196
  137. package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
  138. package/dist/api-contracts/src/public-api/schema.d.ts +48 -34
  139. package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
  140. package/dist/api-contracts/src/public-api/validation.d.ts +113 -88
  141. package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
  142. package/dist/api-contracts/src/role/index.d.ts +88 -83
  143. package/dist/api-contracts/src/role/index.d.ts.map +1 -1
  144. package/dist/api-contracts/src/sms/index.d.ts +209 -154
  145. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  146. package/dist/api-contracts/src/sms/schema.d.ts +22 -0
  147. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  148. package/dist/api-contracts/src/snippet/index.d.ts +76 -54
  149. package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
  150. package/dist/api-contracts/src/snippet/schema.d.ts +21 -14
  151. package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
  152. package/dist/api-contracts/src/snippet/validation.d.ts +5 -4
  153. package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
  154. package/dist/api-contracts/src/subscription/index.d.ts +71 -49
  155. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  156. package/dist/api-contracts/src/subscription/schema.d.ts +90 -60
  157. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  158. package/dist/api-contracts/src/tag/index.d.ts +79 -72
  159. package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
  160. package/dist/api-contracts/src/tag/schema.d.ts +3 -2
  161. package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
  162. package/dist/api-contracts/src/tag-group/schema.d.ts +3 -2
  163. package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
  164. package/dist/api-contracts/src/telegram/index.d.ts +1214 -1166
  165. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  166. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +58 -54
  167. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  168. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +3 -2
  169. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  170. package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
  171. package/dist/api-contracts/src/telephony-cdr/index.d.ts +1214 -1149
  172. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  173. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +186 -166
  174. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  175. package/dist/api-contracts/src/telephony-cdr/validation.d.ts +52 -45
  176. package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
  177. package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
  178. package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
  179. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +3 -2
  180. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
  181. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +3 -2
  182. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
  183. package/dist/api-contracts/src/tenant/schema.d.ts +3 -2
  184. package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
  185. package/dist/api-contracts/src/ticket/index.d.ts +722 -623
  186. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  187. package/dist/api-contracts/src/ticket/schema.d.ts +81 -58
  188. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  189. package/dist/api-contracts/src/ticket/validation.d.ts +57 -55
  190. package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
  191. package/dist/api-contracts/src/upload/index.d.ts +36 -34
  192. package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
  193. package/dist/api-contracts/src/upload/schema.d.ts +3 -2
  194. package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
  195. package/dist/api-contracts/src/user/index.d.ts +114 -108
  196. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  197. package/dist/api-contracts/src/user/validation.d.ts +5 -4
  198. package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
  199. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +32 -31
  200. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  201. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +3 -2
  202. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  203. package/dist/api-contracts/src/viber/index.d.ts +1341 -1293
  204. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  205. package/dist/api-contracts/src/webchat/index.d.ts +2461 -2416
  206. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  207. package/dist/api-contracts/src/whatsapp/index.d.ts +2715 -2666
  208. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  209. package/dist/api-contracts/src/whatsapp/validation.d.ts +3 -2
  210. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  211. package/dist/api-contracts/src/widget/index.d.ts +139 -128
  212. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  213. package/dist/api-contracts/src/widget/schema.d.ts +3 -2
  214. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  215. package/dist/api-contracts/src/workflow-rule/index.d.ts +1500 -1465
  216. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  217. package/dist/api-contracts/src/workflow-rule/schema.d.ts +3 -2
  218. package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
  219. package/dist/api-contracts/src/wrap-up-form/index.d.ts +166 -147
  220. package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
  221. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +9 -6
  222. package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
  223. package/dist/api-contracts/src/wrap-up-form/validation.d.ts +21 -20
  224. package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
  225. package/dist/api-contracts/utils.d.ts +4 -3
  226. package/dist/api-contracts/utils.d.ts.map +1 -1
  227. package/dist/index.js +4246 -4208
  228. package/dist/index.js.map +1 -1
  229. package/dist/index.mjs +4243 -4206
  230. package/dist/index.mjs.map +1 -1
  231. package/package.json +1 -1
@@ -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: "email-service/mail/room/";
7
8
  responses: {
8
9
  401: import("zod").ZodObject<{
9
10
  message: import("zod").ZodString;
@@ -35,10 +36,11 @@ export declare const mailContract: {
35
36
  message: string;
36
37
  error?: any;
37
38
  }>;
38
- 200: import("zod").ZodObject<{
39
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
39
40
  requestId: import("zod").ZodString;
41
+ }, {
40
42
  message: import("zod").ZodString;
41
- }, "strip", import("zod").ZodTypeAny, {
43
+ }>, "strip", import("zod").ZodTypeAny, {
42
44
  message: string;
43
45
  requestId: string;
44
46
  }, {
@@ -46,7 +48,6 @@ export declare const mailContract: {
46
48
  requestId: string;
47
49
  }>;
48
50
  };
49
- path: "email-service/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: "email-service/mail/room";
103
105
  responses: {
104
106
  401: import("zod").ZodObject<{
105
107
  message: import("zod").ZodString;
@@ -131,8 +133,9 @@ export declare const mailContract: {
131
133
  message: string;
132
134
  error?: any;
133
135
  }>;
134
- 200: import("zod").ZodObject<{
136
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
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;
@@ -5277,11 +5280,12 @@ export declare const mailContract: {
5277
5280
  };
5278
5281
  }>;
5279
5282
  unReadMessageCount: import("zod").ZodNumber;
5280
- cxlog: import("zod").ZodObject<{
5283
+ cxlog: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5281
5284
  id: import("zod").ZodString;
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;
@@ -5293,21 +5297,23 @@ export declare const mailContract: {
5293
5297
  startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
5294
5298
  handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
5295
5299
  firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
5296
- wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
5300
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5297
5301
  id: import("zod").ZodString;
5298
5302
  createdAt: import("zod").ZodDate;
5299
5303
  updatedAt: import("zod").ZodDate;
5300
5304
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5305
+ }, {
5301
5306
  note: import("zod").ZodNullable<import("zod").ZodString>;
5302
5307
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
5303
5308
  type: import("zod").ZodString;
5304
- tags: import("zod").ZodArray<import("zod").ZodObject<{
5309
+ tags: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5305
5310
  id: import("zod").ZodString;
5306
5311
  createdAt: import("zod").ZodDate;
5307
5312
  updatedAt: import("zod").ZodDate;
5308
5313
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5314
+ }, {
5309
5315
  name: import("zod").ZodString;
5310
- }, "strip", import("zod").ZodTypeAny, {
5316
+ }>, "strip", import("zod").ZodTypeAny, {
5311
5317
  name: string;
5312
5318
  id: string;
5313
5319
  createdAt: Date;
@@ -5320,11 +5326,12 @@ export declare const mailContract: {
5320
5326
  updatedAt: Date;
5321
5327
  deletedAt: Date | null;
5322
5328
  }>, "many">;
5323
- categories: import("zod").ZodArray<import("zod").ZodObject<{
5329
+ categories: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
5324
5330
  id: import("zod").ZodString;
5325
5331
  createdAt: import("zod").ZodDate;
5326
5332
  updatedAt: import("zod").ZodDate;
5327
5333
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5334
+ }, {
5328
5335
  value: import("zod").ZodString;
5329
5336
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
5330
5337
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -5377,7 +5384,7 @@ export declare const mailContract: {
5377
5384
  childCategoryList: any[];
5378
5385
  }[];
5379
5386
  }>, "many">;
5380
- }, "strip", import("zod").ZodTypeAny, {
5387
+ }>, "strip", import("zod").ZodTypeAny, {
5381
5388
  id: string;
5382
5389
  value: string;
5383
5390
  createdAt: Date;
@@ -5456,7 +5463,7 @@ export declare const mailContract: {
5456
5463
  numberValue: number | null;
5457
5464
  dateValue: Date | null;
5458
5465
  }>, "many">>>;
5459
- }, "strip", import("zod").ZodTypeAny, {
5466
+ }>, "strip", import("zod").ZodTypeAny, {
5460
5467
  type: string;
5461
5468
  id: string;
5462
5469
  disposition: string | null;
@@ -5559,7 +5566,7 @@ export declare const mailContract: {
5559
5566
  dateValue: Date | null;
5560
5567
  }[] | null | undefined;
5561
5568
  }>>;
5562
- }, "strip", import("zod").ZodTypeAny, {
5569
+ }>, "strip", import("zod").ZodTypeAny, {
5563
5570
  id: string;
5564
5571
  channel: string | null;
5565
5572
  direction: string | null;
@@ -7594,7 +7601,7 @@ export declare const mailContract: {
7594
7601
  total: import("zod").ZodNumber;
7595
7602
  page: import("zod").ZodNumber;
7596
7603
  pageSize: import("zod").ZodNumber;
7597
- }, "strip", import("zod").ZodTypeAny, {
7604
+ }>, "strip", import("zod").ZodTypeAny, {
7598
7605
  data: {
7599
7606
  id: string;
7600
7607
  direction: string;
@@ -9502,11 +9509,11 @@ export declare const mailContract: {
9502
9509
  requestId: string;
9503
9510
  }>;
9504
9511
  };
9505
- path: "email-service/mail/room";
9506
9512
  };
9507
9513
  getRoomCounts: {
9508
9514
  summary: "Get unread message counts for filter like \"open\", \"close\", \"inbox\" and etc...";
9509
9515
  method: "GET";
9516
+ path: "email-service/mail/room/count_rooms/all";
9510
9517
  responses: {
9511
9518
  401: import("zod").ZodObject<{
9512
9519
  message: import("zod").ZodString;
@@ -9538,8 +9545,9 @@ export declare const mailContract: {
9538
9545
  message: string;
9539
9546
  error?: any;
9540
9547
  }>;
9541
- 200: import("zod").ZodObject<{
9548
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
9542
9549
  requestId: import("zod").ZodString;
9550
+ }, {
9543
9551
  data: import("zod").ZodObject<{
9544
9552
  general: import("zod").ZodArray<import("zod").ZodObject<{
9545
9553
  name: import("zod").ZodString;
@@ -9718,13 +9726,14 @@ export declare const mailContract: {
9718
9726
  count: number;
9719
9727
  }>, "many">;
9720
9728
  contactLabels: import("zod").ZodArray<import("zod").ZodObject<{
9721
- label: import("zod").ZodObject<{
9729
+ label: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
9722
9730
  id: import("zod").ZodString;
9723
9731
  createdAt: import("zod").ZodDate;
9724
9732
  updatedAt: import("zod").ZodDate;
9725
9733
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
9734
+ }, {
9726
9735
  name: import("zod").ZodString;
9727
- }, "strip", import("zod").ZodTypeAny, {
9736
+ }>, "strip", import("zod").ZodTypeAny, {
9728
9737
  name: string;
9729
9738
  id: string;
9730
9739
  createdAt: Date;
@@ -9848,7 +9857,7 @@ export declare const mailContract: {
9848
9857
  count: number;
9849
9858
  }[];
9850
9859
  }>;
9851
- }, "strip", import("zod").ZodTypeAny, {
9860
+ }>, "strip", import("zod").ZodTypeAny, {
9852
9861
  data: {
9853
9862
  general: {
9854
9863
  name: string;
@@ -9946,7 +9955,6 @@ export declare const mailContract: {
9946
9955
  requestId: string;
9947
9956
  }>;
9948
9957
  };
9949
- path: "email-service/mail/room/count_rooms/all";
9950
9958
  };
9951
9959
  getAttachments: {
9952
9960
  summary: "Get all the attachments of a room";
@@ -9958,6 +9966,7 @@ export declare const mailContract: {
9958
9966
  }, {
9959
9967
  id: string;
9960
9968
  }>;
9969
+ path: "email-service/mail/room/:id/attachments";
9961
9970
  responses: {
9962
9971
  401: import("zod").ZodObject<{
9963
9972
  message: import("zod").ZodString;
@@ -9989,8 +9998,9 @@ export declare const mailContract: {
9989
9998
  message: string;
9990
9999
  error?: any;
9991
10000
  }>;
9992
- 200: import("zod").ZodObject<{
10001
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
9993
10002
  requestId: import("zod").ZodString;
10003
+ }, {
9994
10004
  data: import("zod").ZodArray<import("zod").ZodObject<{
9995
10005
  fileName: import("zod").ZodString;
9996
10006
  fileType: import("zod").ZodString;
@@ -9998,18 +10008,19 @@ export declare const mailContract: {
9998
10008
  uploadId: import("zod").ZodString;
9999
10009
  messageId: import("zod").ZodString;
10000
10010
  roomId: import("zod").ZodString;
10001
- upload: import("zod").ZodObject<{
10011
+ upload: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10002
10012
  id: import("zod").ZodString;
10003
10013
  createdAt: import("zod").ZodDate;
10004
10014
  updatedAt: import("zod").ZodDate;
10005
10015
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
10016
+ }, {
10006
10017
  bucketName: import("zod").ZodString;
10007
10018
  fileName: import("zod").ZodString;
10008
10019
  fileSize: import("zod").ZodNumber;
10009
10020
  fileKey: import("zod").ZodString;
10010
10021
  fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
10011
10022
  status: import("zod").ZodNullable<import("zod").ZodString>;
10012
- }, "strip", import("zod").ZodTypeAny, {
10023
+ }>, "strip", import("zod").ZodTypeAny, {
10013
10024
  id: string;
10014
10025
  status: string | null;
10015
10026
  createdAt: Date;
@@ -10071,7 +10082,7 @@ export declare const mailContract: {
10071
10082
  messageId: string;
10072
10083
  emailEngineAttachmentId: string;
10073
10084
  }>, "many">;
10074
- }, "strip", import("zod").ZodTypeAny, {
10085
+ }>, "strip", import("zod").ZodTypeAny, {
10075
10086
  data: {
10076
10087
  fileName: string;
10077
10088
  fileType: string;
@@ -10117,7 +10128,6 @@ export declare const mailContract: {
10117
10128
  requestId: string;
10118
10129
  }>;
10119
10130
  };
10120
- path: "email-service/mail/room/:id/attachments";
10121
10131
  };
10122
10132
  getParticipants: {
10123
10133
  summary: "Get all the attachments of a room";
@@ -10129,6 +10139,7 @@ export declare const mailContract: {
10129
10139
  }, {
10130
10140
  id: string;
10131
10141
  }>;
10142
+ path: "email-service/mail/room/:id/participants";
10132
10143
  responses: {
10133
10144
  401: import("zod").ZodObject<{
10134
10145
  message: import("zod").ZodString;
@@ -10160,8 +10171,9 @@ export declare const mailContract: {
10160
10171
  message: string;
10161
10172
  error?: any;
10162
10173
  }>;
10163
- 200: import("zod").ZodObject<{
10174
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10164
10175
  requestId: import("zod").ZodString;
10176
+ }, {
10165
10177
  data: import("zod").ZodArray<import("zod").ZodObject<{
10166
10178
  id: import("zod").ZodString;
10167
10179
  createdAt: import("zod").ZodDate;
@@ -10317,7 +10329,7 @@ export declare const mailContract: {
10317
10329
  isNewContact: boolean;
10318
10330
  };
10319
10331
  }>, "many">;
10320
- }, "strip", import("zod").ZodTypeAny, {
10332
+ }>, "strip", import("zod").ZodTypeAny, {
10321
10333
  data: {
10322
10334
  id: string;
10323
10335
  createdAt: Date;
@@ -10385,7 +10397,6 @@ export declare const mailContract: {
10385
10397
  requestId: string;
10386
10398
  }>;
10387
10399
  };
10388
- path: "email-service/mail/room/:id/participants";
10389
10400
  };
10390
10401
  addNewEmailToContact: {
10391
10402
  body: import("zod").ZodObject<{
@@ -10403,6 +10414,7 @@ export declare const mailContract: {
10403
10414
  }>;
10404
10415
  summary: "Add a new email of a mail room participant to an existing contact";
10405
10416
  method: "POST";
10417
+ path: "email-service/mail/room/add_email_to_contact";
10406
10418
  responses: {
10407
10419
  401: import("zod").ZodObject<{
10408
10420
  message: import("zod").ZodString;
@@ -10434,10 +10446,11 @@ export declare const mailContract: {
10434
10446
  message: string;
10435
10447
  error?: any;
10436
10448
  }>;
10437
- 200: import("zod").ZodObject<{
10449
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10438
10450
  requestId: import("zod").ZodString;
10451
+ }, {
10439
10452
  data: import("zod").ZodString;
10440
- }, "strip", import("zod").ZodTypeAny, {
10453
+ }>, "strip", import("zod").ZodTypeAny, {
10441
10454
  data: string;
10442
10455
  requestId: string;
10443
10456
  }, {
@@ -10445,7 +10458,6 @@ export declare const mailContract: {
10445
10458
  requestId: string;
10446
10459
  }>;
10447
10460
  };
10448
- path: "email-service/mail/room/add_email_to_contact";
10449
10461
  };
10450
10462
  update: {
10451
10463
  body: import("zod").ZodObject<{
@@ -10457,16 +10469,16 @@ export declare const mailContract: {
10457
10469
  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">]>>>;
10458
10470
  }, "strip", import("zod").ZodTypeAny, {
10459
10471
  disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
10460
- assigneeId?: string | null | undefined;
10461
- note?: string | undefined;
10462
10472
  tags?: string[] | undefined;
10473
+ note?: string | undefined;
10474
+ assigneeId?: string | null | undefined;
10463
10475
  handover?: boolean | null | undefined;
10464
10476
  selfAssign?: boolean | null | undefined;
10465
10477
  }, {
10466
10478
  disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
10467
- assigneeId?: string | null | undefined;
10468
- note?: string | undefined;
10469
10479
  tags?: string[] | undefined;
10480
+ note?: string | undefined;
10481
+ assigneeId?: string | null | undefined;
10470
10482
  handover?: boolean | "false" | "true" | null | undefined;
10471
10483
  selfAssign?: boolean | "false" | "true" | null | undefined;
10472
10484
  }>;
@@ -10479,6 +10491,7 @@ export declare const mailContract: {
10479
10491
  }, {
10480
10492
  id: string;
10481
10493
  }>;
10494
+ path: "email-service/mail/room/:id";
10482
10495
  responses: {
10483
10496
  401: import("zod").ZodObject<{
10484
10497
  message: import("zod").ZodString;
@@ -10510,8 +10523,9 @@ export declare const mailContract: {
10510
10523
  message: string;
10511
10524
  error?: any;
10512
10525
  }>;
10513
- 200: import("zod").ZodObject<{
10526
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
10514
10527
  requestId: import("zod").ZodString;
10528
+ }, {
10515
10529
  data: import("zod").ZodObject<{
10516
10530
  id: import("zod").ZodString;
10517
10531
  createdAt: import("zod").ZodDate;
@@ -15656,11 +15670,12 @@ export declare const mailContract: {
15656
15670
  };
15657
15671
  }>;
15658
15672
  unReadMessageCount: import("zod").ZodNumber;
15659
- cxlog: import("zod").ZodObject<{
15673
+ cxlog: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15660
15674
  id: import("zod").ZodString;
15661
15675
  createdAt: import("zod").ZodDate;
15662
15676
  updatedAt: import("zod").ZodDate;
15663
15677
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15678
+ }, {
15664
15679
  caseId: import("zod").ZodNumber;
15665
15680
  entityId: import("zod").ZodString;
15666
15681
  entityName: import("zod").ZodString;
@@ -15672,21 +15687,23 @@ export declare const mailContract: {
15672
15687
  startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
15673
15688
  handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
15674
15689
  firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
15675
- wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
15690
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15676
15691
  id: import("zod").ZodString;
15677
15692
  createdAt: import("zod").ZodDate;
15678
15693
  updatedAt: import("zod").ZodDate;
15679
15694
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15695
+ }, {
15680
15696
  note: import("zod").ZodNullable<import("zod").ZodString>;
15681
15697
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
15682
15698
  type: import("zod").ZodString;
15683
- tags: import("zod").ZodArray<import("zod").ZodObject<{
15699
+ tags: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15684
15700
  id: import("zod").ZodString;
15685
15701
  createdAt: import("zod").ZodDate;
15686
15702
  updatedAt: import("zod").ZodDate;
15687
15703
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15704
+ }, {
15688
15705
  name: import("zod").ZodString;
15689
- }, "strip", import("zod").ZodTypeAny, {
15706
+ }>, "strip", import("zod").ZodTypeAny, {
15690
15707
  name: string;
15691
15708
  id: string;
15692
15709
  createdAt: Date;
@@ -15699,11 +15716,12 @@ export declare const mailContract: {
15699
15716
  updatedAt: Date;
15700
15717
  deletedAt: Date | null;
15701
15718
  }>, "many">;
15702
- categories: import("zod").ZodArray<import("zod").ZodObject<{
15719
+ categories: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
15703
15720
  id: import("zod").ZodString;
15704
15721
  createdAt: import("zod").ZodDate;
15705
15722
  updatedAt: import("zod").ZodDate;
15706
15723
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
15724
+ }, {
15707
15725
  value: import("zod").ZodString;
15708
15726
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
15709
15727
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -15756,7 +15774,7 @@ export declare const mailContract: {
15756
15774
  childCategoryList: any[];
15757
15775
  }[];
15758
15776
  }>, "many">;
15759
- }, "strip", import("zod").ZodTypeAny, {
15777
+ }>, "strip", import("zod").ZodTypeAny, {
15760
15778
  id: string;
15761
15779
  value: string;
15762
15780
  createdAt: Date;
@@ -15835,7 +15853,7 @@ export declare const mailContract: {
15835
15853
  numberValue: number | null;
15836
15854
  dateValue: Date | null;
15837
15855
  }>, "many">>>;
15838
- }, "strip", import("zod").ZodTypeAny, {
15856
+ }>, "strip", import("zod").ZodTypeAny, {
15839
15857
  type: string;
15840
15858
  id: string;
15841
15859
  disposition: string | null;
@@ -15938,7 +15956,7 @@ export declare const mailContract: {
15938
15956
  dateValue: Date | null;
15939
15957
  }[] | null | undefined;
15940
15958
  }>>;
15941
- }, "strip", import("zod").ZodTypeAny, {
15959
+ }>, "strip", import("zod").ZodTypeAny, {
15942
15960
  id: string;
15943
15961
  channel: string | null;
15944
15962
  direction: string | null;
@@ -17970,7 +17988,7 @@ export declare const mailContract: {
17970
17988
  };
17971
17989
  unReadMessageCount: number;
17972
17990
  }>;
17973
- }, "strip", import("zod").ZodTypeAny, {
17991
+ }>, "strip", import("zod").ZodTypeAny, {
17974
17992
  data: {
17975
17993
  id: string;
17976
17994
  direction: string;
@@ -19872,7 +19890,6 @@ export declare const mailContract: {
19872
19890
  requestId: string;
19873
19891
  }>;
19874
19892
  };
19875
- path: "email-service/mail/room/:id";
19876
19893
  };
19877
19894
  markAsRead: {
19878
19895
  body: import("zod").ZodObject<{
@@ -19884,6 +19901,7 @@ export declare const mailContract: {
19884
19901
  }>;
19885
19902
  summary: "Mark all the unread messages of a room as read";
19886
19903
  method: "POST";
19904
+ path: "email-service/mail/room/mark_as_read";
19887
19905
  responses: {
19888
19906
  401: import("zod").ZodObject<{
19889
19907
  message: import("zod").ZodString;
@@ -19915,10 +19933,11 @@ export declare const mailContract: {
19915
19933
  message: string;
19916
19934
  error?: any;
19917
19935
  }>;
19918
- 200: import("zod").ZodObject<{
19936
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
19919
19937
  requestId: import("zod").ZodString;
19938
+ }, {
19920
19939
  message: import("zod").ZodString;
19921
- }, "strip", import("zod").ZodTypeAny, {
19940
+ }>, "strip", import("zod").ZodTypeAny, {
19922
19941
  message: string;
19923
19942
  requestId: string;
19924
19943
  }, {
@@ -19926,7 +19945,6 @@ export declare const mailContract: {
19926
19945
  requestId: string;
19927
19946
  }>;
19928
19947
  };
19929
- path: "email-service/mail/room/mark_as_read";
19930
19948
  };
19931
19949
  getById: {
19932
19950
  summary: "Get a mail room by id";
@@ -19938,6 +19956,7 @@ export declare const mailContract: {
19938
19956
  }, {
19939
19957
  id: string;
19940
19958
  }>;
19959
+ path: "email-service/mail/room/:id";
19941
19960
  responses: {
19942
19961
  401: import("zod").ZodObject<{
19943
19962
  message: import("zod").ZodString;
@@ -19969,8 +19988,9 @@ export declare const mailContract: {
19969
19988
  message: string;
19970
19989
  error?: any;
19971
19990
  }>;
19972
- 200: import("zod").ZodObject<{
19991
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
19973
19992
  requestId: import("zod").ZodString;
19993
+ }, {
19974
19994
  data: import("zod").ZodObject<{
19975
19995
  id: import("zod").ZodString;
19976
19996
  createdAt: import("zod").ZodDate;
@@ -25115,11 +25135,12 @@ export declare const mailContract: {
25115
25135
  };
25116
25136
  }>;
25117
25137
  unReadMessageCount: import("zod").ZodNumber;
25118
- cxlog: import("zod").ZodObject<{
25138
+ cxlog: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25119
25139
  id: import("zod").ZodString;
25120
25140
  createdAt: import("zod").ZodDate;
25121
25141
  updatedAt: import("zod").ZodDate;
25122
25142
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25143
+ }, {
25123
25144
  caseId: import("zod").ZodNumber;
25124
25145
  entityId: import("zod").ZodString;
25125
25146
  entityName: import("zod").ZodString;
@@ -25131,21 +25152,23 @@ export declare const mailContract: {
25131
25152
  startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
25132
25153
  handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
25133
25154
  firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
25134
- wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
25155
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25135
25156
  id: import("zod").ZodString;
25136
25157
  createdAt: import("zod").ZodDate;
25137
25158
  updatedAt: import("zod").ZodDate;
25138
25159
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25160
+ }, {
25139
25161
  note: import("zod").ZodNullable<import("zod").ZodString>;
25140
25162
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
25141
25163
  type: import("zod").ZodString;
25142
- tags: import("zod").ZodArray<import("zod").ZodObject<{
25164
+ tags: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25143
25165
  id: import("zod").ZodString;
25144
25166
  createdAt: import("zod").ZodDate;
25145
25167
  updatedAt: import("zod").ZodDate;
25146
25168
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25169
+ }, {
25147
25170
  name: import("zod").ZodString;
25148
- }, "strip", import("zod").ZodTypeAny, {
25171
+ }>, "strip", import("zod").ZodTypeAny, {
25149
25172
  name: string;
25150
25173
  id: string;
25151
25174
  createdAt: Date;
@@ -25158,11 +25181,12 @@ export declare const mailContract: {
25158
25181
  updatedAt: Date;
25159
25182
  deletedAt: Date | null;
25160
25183
  }>, "many">;
25161
- categories: import("zod").ZodArray<import("zod").ZodObject<{
25184
+ categories: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
25162
25185
  id: import("zod").ZodString;
25163
25186
  createdAt: import("zod").ZodDate;
25164
25187
  updatedAt: import("zod").ZodDate;
25165
25188
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
25189
+ }, {
25166
25190
  value: import("zod").ZodString;
25167
25191
  level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
25168
25192
  parentId: import("zod").ZodNullable<import("zod").ZodString>;
@@ -25215,7 +25239,7 @@ export declare const mailContract: {
25215
25239
  childCategoryList: any[];
25216
25240
  }[];
25217
25241
  }>, "many">;
25218
- }, "strip", import("zod").ZodTypeAny, {
25242
+ }>, "strip", import("zod").ZodTypeAny, {
25219
25243
  id: string;
25220
25244
  value: string;
25221
25245
  createdAt: Date;
@@ -25294,7 +25318,7 @@ export declare const mailContract: {
25294
25318
  numberValue: number | null;
25295
25319
  dateValue: Date | null;
25296
25320
  }>, "many">>>;
25297
- }, "strip", import("zod").ZodTypeAny, {
25321
+ }>, "strip", import("zod").ZodTypeAny, {
25298
25322
  type: string;
25299
25323
  id: string;
25300
25324
  disposition: string | null;
@@ -25397,7 +25421,7 @@ export declare const mailContract: {
25397
25421
  dateValue: Date | null;
25398
25422
  }[] | null | undefined;
25399
25423
  }>>;
25400
- }, "strip", import("zod").ZodTypeAny, {
25424
+ }>, "strip", import("zod").ZodTypeAny, {
25401
25425
  id: string;
25402
25426
  channel: string | null;
25403
25427
  direction: string | null;
@@ -27429,7 +27453,7 @@ export declare const mailContract: {
27429
27453
  };
27430
27454
  unReadMessageCount: number;
27431
27455
  }>;
27432
- }, "strip", import("zod").ZodTypeAny, {
27456
+ }>, "strip", import("zod").ZodTypeAny, {
27433
27457
  data: {
27434
27458
  id: string;
27435
27459
  direction: string;
@@ -29331,7 +29355,6 @@ export declare const mailContract: {
29331
29355
  requestId: string;
29332
29356
  }>;
29333
29357
  };
29334
- path: "email-service/mail/room/:id";
29335
29358
  };
29336
29359
  };
29337
29360
  message: {
@@ -29425,6 +29448,14 @@ export declare const mailContract: {
29425
29448
  address: string;
29426
29449
  name?: string | undefined;
29427
29450
  };
29451
+ attachments?: {
29452
+ fileName: string;
29453
+ fileType: string;
29454
+ fileKey: string;
29455
+ bucketName: string;
29456
+ fileSize: number;
29457
+ presignedUrl: string;
29458
+ }[] | undefined;
29428
29459
  cc?: {
29429
29460
  address: string;
29430
29461
  name?: string | undefined;
@@ -29438,14 +29469,6 @@ export declare const mailContract: {
29438
29469
  action: "forward" | "reply";
29439
29470
  messageId: string;
29440
29471
  } | undefined;
29441
- attachments?: {
29442
- fileName: string;
29443
- fileType: string;
29444
- fileKey: string;
29445
- bucketName: string;
29446
- fileSize: number;
29447
- presignedUrl: string;
29448
- }[] | undefined;
29449
29472
  }, {
29450
29473
  html: string;
29451
29474
  text: string;
@@ -29458,6 +29481,14 @@ export declare const mailContract: {
29458
29481
  address: string;
29459
29482
  name?: string | undefined;
29460
29483
  };
29484
+ attachments?: {
29485
+ fileName: string;
29486
+ fileType: string;
29487
+ fileKey: string;
29488
+ bucketName: string;
29489
+ fileSize: number;
29490
+ presignedUrl: string;
29491
+ }[] | undefined;
29461
29492
  cc?: {
29462
29493
  address: string;
29463
29494
  name?: string | undefined;
@@ -29471,17 +29502,10 @@ export declare const mailContract: {
29471
29502
  action: "forward" | "reply";
29472
29503
  messageId: string;
29473
29504
  } | undefined;
29474
- attachments?: {
29475
- fileName: string;
29476
- fileType: string;
29477
- fileKey: string;
29478
- bucketName: string;
29479
- fileSize: number;
29480
- presignedUrl: string;
29481
- }[] | undefined;
29482
29505
  }>;
29483
29506
  summary: "Submit a message such as compose, reply or forward";
29484
29507
  method: "POST";
29508
+ path: "email-service/mail/message/submit";
29485
29509
  responses: {
29486
29510
  500: import("zod").ZodObject<{
29487
29511
  message: import("zod").ZodString;
@@ -29523,8 +29547,9 @@ export declare const mailContract: {
29523
29547
  message: string;
29524
29548
  error?: any;
29525
29549
  }>;
29526
- 200: import("zod").ZodObject<{
29550
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
29527
29551
  requestId: import("zod").ZodString;
29552
+ }, {
29528
29553
  data: import("zod").ZodObject<{
29529
29554
  response: import("zod").ZodString;
29530
29555
  messageId: import("zod").ZodString;
@@ -29541,7 +29566,7 @@ export declare const mailContract: {
29541
29566
  messageId: string;
29542
29567
  sendAt: string;
29543
29568
  }>;
29544
- }, "strip", import("zod").ZodTypeAny, {
29569
+ }>, "strip", import("zod").ZodTypeAny, {
29545
29570
  data: {
29546
29571
  response: string;
29547
29572
  queueId: string;
@@ -29559,11 +29584,11 @@ export declare const mailContract: {
29559
29584
  requestId: string;
29560
29585
  }>;
29561
29586
  };
29562
- path: "email-service/mail/message/submit";
29563
29587
  };
29564
29588
  getTotalUnreadMessageCount: {
29565
29589
  summary: "Get total unread messages counts";
29566
29590
  method: "GET";
29591
+ path: "email-service/mail/message/new_message_count";
29567
29592
  responses: {
29568
29593
  401: import("zod").ZodObject<{
29569
29594
  message: import("zod").ZodString;
@@ -29595,8 +29620,9 @@ export declare const mailContract: {
29595
29620
  message: string;
29596
29621
  error?: any;
29597
29622
  }>;
29598
- 200: import("zod").ZodObject<{
29623
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
29599
29624
  requestId: import("zod").ZodString;
29625
+ }, {
29600
29626
  data: import("zod").ZodObject<{
29601
29627
  count: import("zod").ZodNumber;
29602
29628
  }, "strip", import("zod").ZodTypeAny, {
@@ -29604,7 +29630,7 @@ export declare const mailContract: {
29604
29630
  }, {
29605
29631
  count: number;
29606
29632
  }>;
29607
- }, "strip", import("zod").ZodTypeAny, {
29633
+ }>, "strip", import("zod").ZodTypeAny, {
29608
29634
  data: {
29609
29635
  count: number;
29610
29636
  };
@@ -29616,7 +29642,6 @@ export declare const mailContract: {
29616
29642
  requestId: string;
29617
29643
  }>;
29618
29644
  };
29619
- path: "email-service/mail/message/new_message_count";
29620
29645
  };
29621
29646
  getById: {
29622
29647
  summary: "Get a message";
@@ -29628,6 +29653,7 @@ export declare const mailContract: {
29628
29653
  }, {
29629
29654
  id: string;
29630
29655
  }>;
29656
+ path: "email-service/mail/message/:id";
29631
29657
  responses: {
29632
29658
  401: import("zod").ZodObject<{
29633
29659
  message: import("zod").ZodString;
@@ -29659,8 +29685,9 @@ export declare const mailContract: {
29659
29685
  message: string;
29660
29686
  error?: any;
29661
29687
  }>;
29662
- 200: import("zod").ZodObject<{
29688
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
29663
29689
  requestId: import("zod").ZodString;
29690
+ }, {
29664
29691
  data: import("zod").ZodObject<{
29665
29692
  id: import("zod").ZodString;
29666
29693
  createdAt: import("zod").ZodDate;
@@ -30730,7 +30757,7 @@ export declare const mailContract: {
30730
30757
  starred: boolean;
30731
30758
  seemsLikeNew: boolean;
30732
30759
  }>;
30733
- }, "strip", import("zod").ZodTypeAny, {
30760
+ }>, "strip", import("zod").ZodTypeAny, {
30734
30761
  data: {
30735
30762
  id: string;
30736
30763
  direction: string;
@@ -31074,7 +31101,6 @@ export declare const mailContract: {
31074
31101
  requestId: string;
31075
31102
  }>;
31076
31103
  };
31077
- path: "email-service/mail/message/:id";
31078
31104
  };
31079
31105
  update: {
31080
31106
  body: import("zod").ZodObject<{
@@ -31811,24 +31837,13 @@ export declare const mailContract: {
31811
31837
  }>, "many">>;
31812
31838
  }, "strip", import("zod").ZodTypeAny, {
31813
31839
  id?: string | undefined;
31840
+ direction?: string | undefined;
31841
+ action?: string | undefined;
31842
+ date?: Date | undefined;
31814
31843
  createdAt?: Date | undefined;
31815
31844
  updatedAt?: Date | undefined;
31816
31845
  deletedAt?: Date | null | undefined;
31817
31846
  roomId?: string | undefined;
31818
- subject?: string | undefined;
31819
- textPlain?: string | undefined;
31820
- textHtml?: string | undefined;
31821
- textId?: string | undefined;
31822
- emailEngineEmailId?: string | undefined;
31823
- emailEngineMessageId?: string | undefined;
31824
- emailEngineReplyTo?: string | null | undefined;
31825
- direction?: string | undefined;
31826
- date?: Date | undefined;
31827
- action?: string | undefined;
31828
- unseen?: boolean | undefined;
31829
- sendAt?: Date | undefined;
31830
- starred?: boolean | undefined;
31831
- seemsLikeNew?: boolean | undefined;
31832
31847
  from?: {
31833
31848
  id: string;
31834
31849
  createdAt: Date;
@@ -31860,69 +31875,32 @@ export declare const mailContract: {
31860
31875
  isNewContact: boolean;
31861
31876
  };
31862
31877
  }[] | undefined;
31863
- to?: {
31878
+ attachments?: {
31864
31879
  id: string;
31865
31880
  createdAt: Date;
31866
31881
  updatedAt: Date;
31867
31882
  deletedAt: Date | null;
31868
- roomId: string;
31869
- messageId: string;
31870
- mailUserId: string;
31871
- mailUser: {
31872
- name: string;
31883
+ fileName: string;
31884
+ fileType: string;
31885
+ uploadId: string;
31886
+ upload: {
31873
31887
  id: string;
31874
- address: string;
31875
31888
  createdAt: Date;
31876
31889
  updatedAt: Date;
31877
31890
  deletedAt: Date | null;
31878
- contact: {
31879
- name: string;
31880
- id: string;
31881
- channel: string | null;
31882
- address: string | null;
31883
- createdAt: Date;
31884
- updatedAt: Date;
31885
- deletedAt: Date | null;
31886
- notes: string | null;
31887
- contactProfile: string | null;
31888
- socialProfileUrl: string | null;
31889
- };
31890
- contactId: string;
31891
- isNewContact: boolean;
31891
+ extensionName: string;
31892
+ fileName: string;
31893
+ fileKey: string;
31894
+ bucketName: string;
31895
+ fileSize: number;
31896
+ fileUrl: string;
31892
31897
  };
31893
- }[] | undefined;
31894
- cc?: {
31895
- id: string;
31896
- createdAt: Date;
31897
- updatedAt: Date;
31898
- deletedAt: Date | null;
31899
31898
  roomId: string;
31900
31899
  messageId: string;
31901
- mailUserId: string;
31902
- mailUser: {
31903
- name: string;
31904
- id: string;
31905
- address: string;
31906
- createdAt: Date;
31907
- updatedAt: Date;
31908
- deletedAt: Date | null;
31909
- contact: {
31910
- name: string;
31911
- id: string;
31912
- channel: string | null;
31913
- address: string | null;
31914
- createdAt: Date;
31915
- updatedAt: Date;
31916
- deletedAt: Date | null;
31917
- notes: string | null;
31918
- contactProfile: string | null;
31919
- socialProfileUrl: string | null;
31920
- };
31921
- contactId: string;
31922
- isNewContact: boolean;
31923
- };
31900
+ emailEngineAttachmentId: string;
31924
31901
  }[] | undefined;
31925
- bcc?: {
31902
+ subject?: string | undefined;
31903
+ to?: {
31926
31904
  id: string;
31927
31905
  createdAt: Date;
31928
31906
  updatedAt: Date;
@@ -31953,51 +31931,7 @@ export declare const mailContract: {
31953
31931
  isNewContact: boolean;
31954
31932
  };
31955
31933
  }[] | undefined;
31956
- attachments?: {
31957
- id: string;
31958
- createdAt: Date;
31959
- updatedAt: Date;
31960
- deletedAt: Date | null;
31961
- fileName: string;
31962
- fileType: string;
31963
- uploadId: string;
31964
- upload: {
31965
- id: string;
31966
- createdAt: Date;
31967
- updatedAt: Date;
31968
- deletedAt: Date | null;
31969
- extensionName: string;
31970
- fileName: string;
31971
- fileKey: string;
31972
- bucketName: string;
31973
- fileSize: number;
31974
- fileUrl: string;
31975
- };
31976
- roomId: string;
31977
- messageId: string;
31978
- emailEngineAttachmentId: string;
31979
- }[] | undefined;
31980
- }, {
31981
- id?: string | undefined;
31982
- createdAt?: Date | undefined;
31983
- updatedAt?: Date | undefined;
31984
- deletedAt?: Date | null | undefined;
31985
- roomId?: string | undefined;
31986
- subject?: string | undefined;
31987
- textPlain?: string | undefined;
31988
- textHtml?: string | undefined;
31989
- textId?: string | undefined;
31990
- emailEngineEmailId?: string | undefined;
31991
- emailEngineMessageId?: string | undefined;
31992
- emailEngineReplyTo?: string | null | undefined;
31993
- direction?: string | undefined;
31994
- date?: Date | undefined;
31995
- action?: string | undefined;
31996
- unseen?: boolean | undefined;
31997
- sendAt?: Date | undefined;
31998
- starred?: boolean | undefined;
31999
- seemsLikeNew?: boolean | undefined;
32000
- from?: {
31934
+ cc?: {
32001
31935
  id: string;
32002
31936
  createdAt: Date;
32003
31937
  updatedAt: Date;
@@ -32028,7 +31962,7 @@ export declare const mailContract: {
32028
31962
  isNewContact: boolean;
32029
31963
  };
32030
31964
  }[] | undefined;
32031
- to?: {
31965
+ bcc?: {
32032
31966
  id: string;
32033
31967
  createdAt: Date;
32034
31968
  updatedAt: Date;
@@ -32059,7 +31993,26 @@ export declare const mailContract: {
32059
31993
  isNewContact: boolean;
32060
31994
  };
32061
31995
  }[] | undefined;
32062
- cc?: {
31996
+ sendAt?: Date | undefined;
31997
+ textPlain?: string | undefined;
31998
+ textHtml?: string | undefined;
31999
+ textId?: string | undefined;
32000
+ emailEngineEmailId?: string | undefined;
32001
+ emailEngineMessageId?: string | undefined;
32002
+ emailEngineReplyTo?: string | null | undefined;
32003
+ unseen?: boolean | undefined;
32004
+ starred?: boolean | undefined;
32005
+ seemsLikeNew?: boolean | undefined;
32006
+ }, {
32007
+ id?: string | undefined;
32008
+ direction?: string | undefined;
32009
+ action?: string | undefined;
32010
+ date?: Date | undefined;
32011
+ createdAt?: Date | undefined;
32012
+ updatedAt?: Date | undefined;
32013
+ deletedAt?: Date | null | undefined;
32014
+ roomId?: string | undefined;
32015
+ from?: {
32063
32016
  id: string;
32064
32017
  createdAt: Date;
32065
32018
  updatedAt: Date;
@@ -32090,7 +32043,32 @@ export declare const mailContract: {
32090
32043
  isNewContact: boolean;
32091
32044
  };
32092
32045
  }[] | undefined;
32093
- bcc?: {
32046
+ attachments?: {
32047
+ id: string;
32048
+ createdAt: Date;
32049
+ updatedAt: Date;
32050
+ deletedAt: Date | null;
32051
+ fileName: string;
32052
+ fileType: string;
32053
+ uploadId: string;
32054
+ upload: {
32055
+ id: string;
32056
+ createdAt: Date;
32057
+ updatedAt: Date;
32058
+ deletedAt: Date | null;
32059
+ extensionName: string;
32060
+ fileName: string;
32061
+ fileKey: string;
32062
+ bucketName: string;
32063
+ fileSize: number;
32064
+ fileUrl: string;
32065
+ };
32066
+ roomId: string;
32067
+ messageId: string;
32068
+ emailEngineAttachmentId: string;
32069
+ }[] | undefined;
32070
+ subject?: string | undefined;
32071
+ to?: {
32094
32072
  id: string;
32095
32073
  createdAt: Date;
32096
32074
  updatedAt: Date;
@@ -32121,30 +32099,78 @@ export declare const mailContract: {
32121
32099
  isNewContact: boolean;
32122
32100
  };
32123
32101
  }[] | undefined;
32124
- attachments?: {
32102
+ cc?: {
32125
32103
  id: string;
32126
32104
  createdAt: Date;
32127
32105
  updatedAt: Date;
32128
32106
  deletedAt: Date | null;
32129
- fileName: string;
32130
- fileType: string;
32131
- uploadId: string;
32132
- upload: {
32107
+ roomId: string;
32108
+ messageId: string;
32109
+ mailUserId: string;
32110
+ mailUser: {
32111
+ name: string;
32133
32112
  id: string;
32113
+ address: string;
32134
32114
  createdAt: Date;
32135
32115
  updatedAt: Date;
32136
32116
  deletedAt: Date | null;
32137
- extensionName: string;
32138
- fileName: string;
32139
- fileKey: string;
32140
- bucketName: string;
32141
- fileSize: number;
32142
- fileUrl: string;
32117
+ contact: {
32118
+ name: string;
32119
+ id: string;
32120
+ channel: string | null;
32121
+ address: string | null;
32122
+ createdAt: Date;
32123
+ updatedAt: Date;
32124
+ deletedAt: Date | null;
32125
+ notes: string | null;
32126
+ contactProfile: string | null;
32127
+ socialProfileUrl: string | null;
32128
+ };
32129
+ contactId: string;
32130
+ isNewContact: boolean;
32143
32131
  };
32132
+ }[] | undefined;
32133
+ bcc?: {
32134
+ id: string;
32135
+ createdAt: Date;
32136
+ updatedAt: Date;
32137
+ deletedAt: Date | null;
32144
32138
  roomId: string;
32145
32139
  messageId: string;
32146
- emailEngineAttachmentId: string;
32140
+ mailUserId: string;
32141
+ mailUser: {
32142
+ name: string;
32143
+ id: string;
32144
+ address: string;
32145
+ createdAt: Date;
32146
+ updatedAt: Date;
32147
+ deletedAt: Date | null;
32148
+ contact: {
32149
+ name: string;
32150
+ id: string;
32151
+ channel: string | null;
32152
+ address: string | null;
32153
+ createdAt: Date;
32154
+ updatedAt: Date;
32155
+ deletedAt: Date | null;
32156
+ notes: string | null;
32157
+ contactProfile: string | null;
32158
+ socialProfileUrl: string | null;
32159
+ };
32160
+ contactId: string;
32161
+ isNewContact: boolean;
32162
+ };
32147
32163
  }[] | undefined;
32164
+ sendAt?: Date | undefined;
32165
+ textPlain?: string | undefined;
32166
+ textHtml?: string | undefined;
32167
+ textId?: string | undefined;
32168
+ emailEngineEmailId?: string | undefined;
32169
+ emailEngineMessageId?: string | undefined;
32170
+ emailEngineReplyTo?: string | null | undefined;
32171
+ unseen?: boolean | undefined;
32172
+ starred?: boolean | undefined;
32173
+ seemsLikeNew?: boolean | undefined;
32148
32174
  }>;
32149
32175
  summary: "Update a message";
32150
32176
  method: "PATCH";
@@ -32155,6 +32181,7 @@ export declare const mailContract: {
32155
32181
  }, {
32156
32182
  id: string;
32157
32183
  }>;
32184
+ path: "email-service/mail/message/:id";
32158
32185
  responses: {
32159
32186
  401: import("zod").ZodObject<{
32160
32187
  message: import("zod").ZodString;
@@ -32186,8 +32213,9 @@ export declare const mailContract: {
32186
32213
  message: string;
32187
32214
  error?: any;
32188
32215
  }>;
32189
- 200: import("zod").ZodObject<{
32216
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
32190
32217
  requestId: import("zod").ZodString;
32218
+ }, {
32191
32219
  data: import("zod").ZodObject<{
32192
32220
  id: import("zod").ZodString;
32193
32221
  createdAt: import("zod").ZodDate;
@@ -33257,7 +33285,7 @@ export declare const mailContract: {
33257
33285
  starred: boolean;
33258
33286
  seemsLikeNew: boolean;
33259
33287
  }>;
33260
- }, "strip", import("zod").ZodTypeAny, {
33288
+ }>, "strip", import("zod").ZodTypeAny, {
33261
33289
  data: {
33262
33290
  id: string;
33263
33291
  direction: string;
@@ -33601,7 +33629,6 @@ export declare const mailContract: {
33601
33629
  requestId: string;
33602
33630
  }>;
33603
33631
  };
33604
- path: "email-service/mail/message/:id";
33605
33632
  };
33606
33633
  delete: {
33607
33634
  body: null;
@@ -33614,6 +33641,7 @@ export declare const mailContract: {
33614
33641
  }, {
33615
33642
  id: string;
33616
33643
  }>;
33644
+ path: "email-service/mail/message/:id";
33617
33645
  responses: {
33618
33646
  401: import("zod").ZodObject<{
33619
33647
  message: import("zod").ZodString;
@@ -33645,8 +33673,9 @@ export declare const mailContract: {
33645
33673
  message: string;
33646
33674
  error?: any;
33647
33675
  }>;
33648
- 200: import("zod").ZodObject<{
33676
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
33649
33677
  requestId: import("zod").ZodString;
33678
+ }, {
33650
33679
  data: import("zod").ZodObject<{
33651
33680
  id: import("zod").ZodString;
33652
33681
  createdAt: import("zod").ZodDate;
@@ -34716,7 +34745,7 @@ export declare const mailContract: {
34716
34745
  starred: boolean;
34717
34746
  seemsLikeNew: boolean;
34718
34747
  }>;
34719
- }, "strip", import("zod").ZodTypeAny, {
34748
+ }>, "strip", import("zod").ZodTypeAny, {
34720
34749
  data: {
34721
34750
  id: string;
34722
34751
  direction: string;
@@ -35060,7 +35089,6 @@ export declare const mailContract: {
35060
35089
  requestId: string;
35061
35090
  }>;
35062
35091
  };
35063
- path: "email-service/mail/message/:id";
35064
35092
  };
35065
35093
  cancelScheduledMessage: {
35066
35094
  body: null;
@@ -35073,6 +35101,7 @@ export declare const mailContract: {
35073
35101
  }, {
35074
35102
  id: string;
35075
35103
  }>;
35104
+ path: "email-service/mail/message/scheduled_message/:id";
35076
35105
  responses: {
35077
35106
  401: import("zod").ZodObject<{
35078
35107
  message: import("zod").ZodString;
@@ -35104,8 +35133,9 @@ export declare const mailContract: {
35104
35133
  message: string;
35105
35134
  error?: any;
35106
35135
  }>;
35107
- 200: import("zod").ZodObject<{
35136
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35108
35137
  requestId: import("zod").ZodString;
35138
+ }, {
35109
35139
  data: import("zod").ZodObject<{
35110
35140
  totalMessagesCount: import("zod").ZodNumber;
35111
35141
  }, "strip", import("zod").ZodTypeAny, {
@@ -35113,7 +35143,7 @@ export declare const mailContract: {
35113
35143
  }, {
35114
35144
  totalMessagesCount: number;
35115
35145
  }>;
35116
- }, "strip", import("zod").ZodTypeAny, {
35146
+ }>, "strip", import("zod").ZodTypeAny, {
35117
35147
  data: {
35118
35148
  totalMessagesCount: number;
35119
35149
  };
@@ -35125,7 +35155,6 @@ export declare const mailContract: {
35125
35155
  requestId: string;
35126
35156
  }>;
35127
35157
  };
35128
- path: "email-service/mail/message/scheduled_message/:id";
35129
35158
  };
35130
35159
  };
35131
35160
  account: {
@@ -35148,6 +35177,23 @@ export declare const mailContract: {
35148
35177
  }>;
35149
35178
  summary: "Register a new mail account";
35150
35179
  method: "POST";
35180
+ path: "email-service/mail/account";
35181
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35182
+ 'x-tenant': import("zod").ZodString;
35183
+ authorization: import("zod").ZodString;
35184
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
35185
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
35186
+ }, "strip", import("zod").ZodTypeAny, {
35187
+ 'x-tenant': string;
35188
+ authorization: string;
35189
+ 'x-client-timezone': string;
35190
+ 'x-code'?: string | undefined;
35191
+ }, {
35192
+ 'x-tenant': string;
35193
+ authorization: string;
35194
+ 'x-code'?: string | undefined;
35195
+ 'x-client-timezone'?: string | undefined;
35196
+ }>>>;
35151
35197
  responses: {
35152
35198
  401: import("zod").ZodObject<{
35153
35199
  message: import("zod").ZodString;
@@ -35179,8 +35225,9 @@ export declare const mailContract: {
35179
35225
  message: string;
35180
35226
  error?: any;
35181
35227
  }>;
35182
- 201: import("zod").ZodObject<{
35228
+ 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35183
35229
  requestId: import("zod").ZodString;
35230
+ }, {
35184
35231
  data: import("zod").ZodObject<{
35185
35232
  id: import("zod").ZodString;
35186
35233
  createdAt: import("zod").ZodDate;
@@ -35285,7 +35332,7 @@ export declare const mailContract: {
35285
35332
  useTlsForImap: boolean;
35286
35333
  };
35287
35334
  }>;
35288
- }, "strip", import("zod").ZodTypeAny, {
35335
+ }>, "strip", import("zod").ZodTypeAny, {
35289
35336
  data: {
35290
35337
  name: string;
35291
35338
  id: string;
@@ -35364,7 +35411,21 @@ export declare const mailContract: {
35364
35411
  message: string;
35365
35412
  }>;
35366
35413
  };
35367
- path: "email-service/mail/account";
35414
+ };
35415
+ generateOAuth2AuthenticationLink: {
35416
+ body: import("zod").ZodObject<{
35417
+ oAuth2AppId: import("zod").ZodString;
35418
+ mailServerId: import("zod").ZodString;
35419
+ }, "strip", import("zod").ZodTypeAny, {
35420
+ mailServerId: string;
35421
+ oAuth2AppId: string;
35422
+ }, {
35423
+ mailServerId: string;
35424
+ oAuth2AppId: string;
35425
+ }>;
35426
+ summary: "Generate oauth2 authentication form link";
35427
+ method: "POST";
35428
+ path: "email-service/mail/account/oauth2_authentication_form_link";
35368
35429
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35369
35430
  'x-tenant': import("zod").ZodString;
35370
35431
  authorization: import("zod").ZodString;
@@ -35381,20 +35442,6 @@ export declare const mailContract: {
35381
35442
  'x-code'?: string | undefined;
35382
35443
  'x-client-timezone'?: string | undefined;
35383
35444
  }>>>;
35384
- };
35385
- generateOAuth2AuthenticationLink: {
35386
- body: import("zod").ZodObject<{
35387
- oAuth2AppId: import("zod").ZodString;
35388
- mailServerId: import("zod").ZodString;
35389
- }, "strip", import("zod").ZodTypeAny, {
35390
- mailServerId: string;
35391
- oAuth2AppId: string;
35392
- }, {
35393
- mailServerId: string;
35394
- oAuth2AppId: string;
35395
- }>;
35396
- summary: "Generate oauth2 authentication form link";
35397
- method: "POST";
35398
35445
  responses: {
35399
35446
  401: import("zod").ZodObject<{
35400
35447
  message: import("zod").ZodString;
@@ -35426,8 +35473,9 @@ export declare const mailContract: {
35426
35473
  message: string;
35427
35474
  error?: any;
35428
35475
  }>;
35429
- 201: import("zod").ZodObject<{
35476
+ 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35430
35477
  requestId: import("zod").ZodString;
35478
+ }, {
35431
35479
  data: import("zod").ZodObject<{
35432
35480
  url: import("zod").ZodString;
35433
35481
  account: import("zod").ZodString;
@@ -35438,7 +35486,7 @@ export declare const mailContract: {
35438
35486
  url: string;
35439
35487
  account: string;
35440
35488
  }>;
35441
- }, "strip", import("zod").ZodTypeAny, {
35489
+ }>, "strip", import("zod").ZodTypeAny, {
35442
35490
  data: {
35443
35491
  url: string;
35444
35492
  account: string;
@@ -35473,7 +35521,11 @@ export declare const mailContract: {
35473
35521
  message: string;
35474
35522
  }>;
35475
35523
  };
35476
- path: "email-service/mail/account/oauth2_authentication_form_link";
35524
+ };
35525
+ sync: {
35526
+ summary: "Sync all accounts state from email engine to system";
35527
+ method: "GET";
35528
+ path: "email-service/mail/account/sync";
35477
35529
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35478
35530
  'x-tenant': import("zod").ZodString;
35479
35531
  authorization: import("zod").ZodString;
@@ -35490,10 +35542,6 @@ export declare const mailContract: {
35490
35542
  'x-code'?: string | undefined;
35491
35543
  'x-client-timezone'?: string | undefined;
35492
35544
  }>>>;
35493
- };
35494
- sync: {
35495
- summary: "Sync all accounts state from email engine to system";
35496
- method: "GET";
35497
35545
  responses: {
35498
35546
  401: import("zod").ZodObject<{
35499
35547
  message: import("zod").ZodString;
@@ -35525,10 +35573,11 @@ export declare const mailContract: {
35525
35573
  message: string;
35526
35574
  error?: any;
35527
35575
  }>;
35528
- 200: import("zod").ZodObject<{
35576
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35529
35577
  requestId: import("zod").ZodString;
35578
+ }, {
35530
35579
  message: import("zod").ZodString;
35531
- }, "strip", import("zod").ZodTypeAny, {
35580
+ }>, "strip", import("zod").ZodTypeAny, {
35532
35581
  message: string;
35533
35582
  requestId: string;
35534
35583
  }, {
@@ -35536,7 +35585,18 @@ export declare const mailContract: {
35536
35585
  requestId: string;
35537
35586
  }>;
35538
35587
  };
35539
- path: "email-service/mail/account/sync";
35588
+ };
35589
+ getById: {
35590
+ summary: "Get an account by id";
35591
+ method: "GET";
35592
+ pathParams: import("zod").ZodObject<{
35593
+ id: import("zod").ZodString;
35594
+ }, "strip", import("zod").ZodTypeAny, {
35595
+ id: string;
35596
+ }, {
35597
+ id: string;
35598
+ }>;
35599
+ path: "email-service/mail/account/:id";
35540
35600
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35541
35601
  'x-tenant': import("zod").ZodString;
35542
35602
  authorization: import("zod").ZodString;
@@ -35553,17 +35613,6 @@ export declare const mailContract: {
35553
35613
  'x-code'?: string | undefined;
35554
35614
  'x-client-timezone'?: string | undefined;
35555
35615
  }>>>;
35556
- };
35557
- getById: {
35558
- summary: "Get an account by id";
35559
- method: "GET";
35560
- pathParams: import("zod").ZodObject<{
35561
- id: import("zod").ZodString;
35562
- }, "strip", import("zod").ZodTypeAny, {
35563
- id: string;
35564
- }, {
35565
- id: string;
35566
- }>;
35567
35616
  responses: {
35568
35617
  401: import("zod").ZodObject<{
35569
35618
  message: import("zod").ZodString;
@@ -35595,8 +35644,9 @@ export declare const mailContract: {
35595
35644
  message: string;
35596
35645
  error?: any;
35597
35646
  }>;
35598
- 200: import("zod").ZodObject<{
35647
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35599
35648
  requestId: import("zod").ZodString;
35649
+ }, {
35600
35650
  data: import("zod").ZodObject<{
35601
35651
  id: import("zod").ZodString;
35602
35652
  createdAt: import("zod").ZodDate;
@@ -35701,7 +35751,7 @@ export declare const mailContract: {
35701
35751
  useTlsForImap: boolean;
35702
35752
  };
35703
35753
  }>;
35704
- }, "strip", import("zod").ZodTypeAny, {
35754
+ }>, "strip", import("zod").ZodTypeAny, {
35705
35755
  data: {
35706
35756
  name: string;
35707
35757
  id: string;
@@ -35759,7 +35809,21 @@ export declare const mailContract: {
35759
35809
  requestId: string;
35760
35810
  }>;
35761
35811
  };
35762
- path: "email-service/mail/account/:id";
35812
+ };
35813
+ getAll: {
35814
+ summary: "Get all accounts";
35815
+ method: "GET";
35816
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
35817
+ state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
35818
+ withDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
35819
+ }, "strip", import("zod").ZodTypeAny, {
35820
+ withDeleted: boolean;
35821
+ state?: "connected" | "disconnected" | undefined;
35822
+ }, {
35823
+ state?: "connected" | "disconnected" | undefined;
35824
+ withDeleted?: boolean | undefined;
35825
+ }>>;
35826
+ path: "email-service/mail/account";
35763
35827
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35764
35828
  'x-tenant': import("zod").ZodString;
35765
35829
  authorization: import("zod").ZodString;
@@ -35776,20 +35840,6 @@ export declare const mailContract: {
35776
35840
  'x-code'?: string | undefined;
35777
35841
  'x-client-timezone'?: string | undefined;
35778
35842
  }>>>;
35779
- };
35780
- getAll: {
35781
- summary: "Get all accounts";
35782
- method: "GET";
35783
- query: import("zod").ZodOptional<import("zod").ZodObject<{
35784
- state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
35785
- withDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
35786
- }, "strip", import("zod").ZodTypeAny, {
35787
- withDeleted: boolean;
35788
- state?: "connected" | "disconnected" | undefined;
35789
- }, {
35790
- state?: "connected" | "disconnected" | undefined;
35791
- withDeleted?: boolean | undefined;
35792
- }>>;
35793
35843
  responses: {
35794
35844
  401: import("zod").ZodObject<{
35795
35845
  message: import("zod").ZodString;
@@ -35821,8 +35871,9 @@ export declare const mailContract: {
35821
35871
  message: string;
35822
35872
  error?: any;
35823
35873
  }>;
35824
- 200: import("zod").ZodObject<{
35874
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
35825
35875
  requestId: import("zod").ZodString;
35876
+ }, {
35826
35877
  data: import("zod").ZodArray<import("zod").ZodObject<{
35827
35878
  id: import("zod").ZodString;
35828
35879
  createdAt: import("zod").ZodDate;
@@ -35927,7 +35978,7 @@ export declare const mailContract: {
35927
35978
  useTlsForImap: boolean;
35928
35979
  };
35929
35980
  }>, "many">;
35930
- }, "strip", import("zod").ZodTypeAny, {
35981
+ }>, "strip", import("zod").ZodTypeAny, {
35931
35982
  data: {
35932
35983
  name: string;
35933
35984
  id: string;
@@ -35985,23 +36036,6 @@ export declare const mailContract: {
35985
36036
  requestId: string;
35986
36037
  }>;
35987
36038
  };
35988
- path: "email-service/mail/account";
35989
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
35990
- 'x-tenant': import("zod").ZodString;
35991
- authorization: import("zod").ZodString;
35992
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
35993
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
35994
- }, "strip", import("zod").ZodTypeAny, {
35995
- 'x-tenant': string;
35996
- authorization: string;
35997
- 'x-client-timezone': string;
35998
- 'x-code'?: string | undefined;
35999
- }, {
36000
- 'x-tenant': string;
36001
- authorization: string;
36002
- 'x-code'?: string | undefined;
36003
- 'x-client-timezone'?: string | undefined;
36004
- }>>>;
36005
36039
  };
36006
36040
  update: {
36007
36041
  body: import("zod").ZodObject<{
@@ -36058,12 +36092,13 @@ export declare const mailContract: {
36058
36092
  }>>;
36059
36093
  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">]>>;
36060
36094
  }, "strip", import("zod").ZodTypeAny, {
36095
+ name?: string | undefined;
36061
36096
  id?: string | undefined;
36097
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36098
+ address?: string | undefined;
36062
36099
  createdAt?: Date | undefined;
36063
36100
  updatedAt?: Date | undefined;
36064
36101
  deletedAt?: Date | null | undefined;
36065
- name?: string | undefined;
36066
- address?: string | undefined;
36067
36102
  accountId?: string | undefined;
36068
36103
  mailServerId?: string | undefined;
36069
36104
  mailServer?: {
@@ -36081,14 +36116,14 @@ export declare const mailContract: {
36081
36116
  imapTlsPort: number;
36082
36117
  useTlsForImap: boolean;
36083
36118
  } | undefined;
36084
- state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36085
36119
  }, {
36120
+ name?: string | undefined;
36086
36121
  id?: string | undefined;
36122
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36123
+ address?: string | undefined;
36087
36124
  createdAt?: Date | undefined;
36088
36125
  updatedAt?: Date | undefined;
36089
36126
  deletedAt?: Date | null | undefined;
36090
- name?: string | undefined;
36091
- address?: string | undefined;
36092
36127
  accountId?: string | undefined;
36093
36128
  mailServerId?: string | undefined;
36094
36129
  mailServer?: {
@@ -36106,7 +36141,6 @@ export declare const mailContract: {
36106
36141
  imapTlsPort: number;
36107
36142
  useTlsForImap: boolean;
36108
36143
  } | undefined;
36109
- state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
36110
36144
  }>;
36111
36145
  summary: "Update a account by id";
36112
36146
  method: "PATCH";
@@ -36117,6 +36151,23 @@ export declare const mailContract: {
36117
36151
  }, {
36118
36152
  id: string;
36119
36153
  }>;
36154
+ path: "email-service/mail/account/:id";
36155
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36156
+ 'x-tenant': import("zod").ZodString;
36157
+ authorization: import("zod").ZodString;
36158
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
36159
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
36160
+ }, "strip", import("zod").ZodTypeAny, {
36161
+ 'x-tenant': string;
36162
+ authorization: string;
36163
+ 'x-client-timezone': string;
36164
+ 'x-code'?: string | undefined;
36165
+ }, {
36166
+ 'x-tenant': string;
36167
+ authorization: string;
36168
+ 'x-code'?: string | undefined;
36169
+ 'x-client-timezone'?: string | undefined;
36170
+ }>>>;
36120
36171
  responses: {
36121
36172
  401: import("zod").ZodObject<{
36122
36173
  message: import("zod").ZodString;
@@ -36148,8 +36199,9 @@ export declare const mailContract: {
36148
36199
  message: string;
36149
36200
  error?: any;
36150
36201
  }>;
36151
- 201: import("zod").ZodObject<{
36202
+ 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36152
36203
  requestId: import("zod").ZodString;
36204
+ }, {
36153
36205
  data: import("zod").ZodObject<{
36154
36206
  id: import("zod").ZodString;
36155
36207
  createdAt: import("zod").ZodDate;
@@ -36254,7 +36306,7 @@ export declare const mailContract: {
36254
36306
  useTlsForImap: boolean;
36255
36307
  };
36256
36308
  }>;
36257
- }, "strip", import("zod").ZodTypeAny, {
36309
+ }>, "strip", import("zod").ZodTypeAny, {
36258
36310
  data: {
36259
36311
  name: string;
36260
36312
  id: string;
@@ -36312,7 +36364,19 @@ export declare const mailContract: {
36312
36364
  requestId: string;
36313
36365
  }>;
36314
36366
  };
36315
- path: "email-service/mail/account/:id";
36367
+ };
36368
+ disconnect: {
36369
+ body: null;
36370
+ summary: "Disconnect an account";
36371
+ method: "PATCH";
36372
+ pathParams: import("zod").ZodObject<{
36373
+ id: import("zod").ZodString;
36374
+ }, "strip", import("zod").ZodTypeAny, {
36375
+ id: string;
36376
+ }, {
36377
+ id: string;
36378
+ }>;
36379
+ path: "email-service/mail/account/:id/disconnect";
36316
36380
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36317
36381
  'x-tenant': import("zod").ZodString;
36318
36382
  authorization: import("zod").ZodString;
@@ -36329,18 +36393,6 @@ export declare const mailContract: {
36329
36393
  'x-code'?: string | undefined;
36330
36394
  'x-client-timezone'?: string | undefined;
36331
36395
  }>>>;
36332
- };
36333
- disconnect: {
36334
- body: null;
36335
- summary: "Disconnect an account";
36336
- method: "PATCH";
36337
- pathParams: import("zod").ZodObject<{
36338
- id: import("zod").ZodString;
36339
- }, "strip", import("zod").ZodTypeAny, {
36340
- id: string;
36341
- }, {
36342
- id: string;
36343
- }>;
36344
36396
  responses: {
36345
36397
  401: import("zod").ZodObject<{
36346
36398
  message: import("zod").ZodString;
@@ -36372,8 +36424,9 @@ export declare const mailContract: {
36372
36424
  message: string;
36373
36425
  error?: any;
36374
36426
  }>;
36375
- 201: import("zod").ZodObject<{
36427
+ 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36376
36428
  requestId: import("zod").ZodString;
36429
+ }, {
36377
36430
  data: import("zod").ZodObject<{
36378
36431
  id: import("zod").ZodString;
36379
36432
  createdAt: import("zod").ZodDate;
@@ -36478,7 +36531,7 @@ export declare const mailContract: {
36478
36531
  useTlsForImap: boolean;
36479
36532
  };
36480
36533
  }>;
36481
- }, "strip", import("zod").ZodTypeAny, {
36534
+ }>, "strip", import("zod").ZodTypeAny, {
36482
36535
  data: {
36483
36536
  name: string;
36484
36537
  id: string;
@@ -36536,7 +36589,19 @@ export declare const mailContract: {
36536
36589
  requestId: string;
36537
36590
  }>;
36538
36591
  };
36539
- path: "email-service/mail/account/:id/disconnect";
36592
+ };
36593
+ reconnect: {
36594
+ body: null;
36595
+ summary: "Reconnect a disconncted account";
36596
+ method: "PATCH";
36597
+ pathParams: import("zod").ZodObject<{
36598
+ id: import("zod").ZodString;
36599
+ }, "strip", import("zod").ZodTypeAny, {
36600
+ id: string;
36601
+ }, {
36602
+ id: string;
36603
+ }>;
36604
+ path: "email-service/mail/account/:id/reconnect";
36540
36605
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36541
36606
  'x-tenant': import("zod").ZodString;
36542
36607
  authorization: import("zod").ZodString;
@@ -36553,18 +36618,6 @@ export declare const mailContract: {
36553
36618
  'x-code'?: string | undefined;
36554
36619
  'x-client-timezone'?: string | undefined;
36555
36620
  }>>>;
36556
- };
36557
- reconnect: {
36558
- body: null;
36559
- summary: "Reconnect a disconncted account";
36560
- method: "PATCH";
36561
- pathParams: import("zod").ZodObject<{
36562
- id: import("zod").ZodString;
36563
- }, "strip", import("zod").ZodTypeAny, {
36564
- id: string;
36565
- }, {
36566
- id: string;
36567
- }>;
36568
36621
  responses: {
36569
36622
  401: import("zod").ZodObject<{
36570
36623
  message: import("zod").ZodString;
@@ -36596,8 +36649,9 @@ export declare const mailContract: {
36596
36649
  message: string;
36597
36650
  error?: any;
36598
36651
  }>;
36599
- 201: import("zod").ZodObject<{
36652
+ 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36600
36653
  requestId: import("zod").ZodString;
36654
+ }, {
36601
36655
  data: import("zod").ZodObject<{
36602
36656
  id: import("zod").ZodString;
36603
36657
  createdAt: import("zod").ZodDate;
@@ -36702,7 +36756,7 @@ export declare const mailContract: {
36702
36756
  useTlsForImap: boolean;
36703
36757
  };
36704
36758
  }>;
36705
- }, "strip", import("zod").ZodTypeAny, {
36759
+ }>, "strip", import("zod").ZodTypeAny, {
36706
36760
  data: {
36707
36761
  name: string;
36708
36762
  id: string;
@@ -36760,7 +36814,19 @@ export declare const mailContract: {
36760
36814
  requestId: string;
36761
36815
  }>;
36762
36816
  };
36763
- path: "email-service/mail/account/:id/reconnect";
36817
+ };
36818
+ delete: {
36819
+ body: null;
36820
+ summary: "Delete an account by id";
36821
+ method: "DELETE";
36822
+ pathParams: import("zod").ZodObject<{
36823
+ id: import("zod").ZodString;
36824
+ }, "strip", import("zod").ZodTypeAny, {
36825
+ id: string;
36826
+ }, {
36827
+ id: string;
36828
+ }>;
36829
+ path: "email-service/mail/account/:id";
36764
36830
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36765
36831
  'x-tenant': import("zod").ZodString;
36766
36832
  authorization: import("zod").ZodString;
@@ -36777,18 +36843,6 @@ export declare const mailContract: {
36777
36843
  'x-code'?: string | undefined;
36778
36844
  'x-client-timezone'?: string | undefined;
36779
36845
  }>>>;
36780
- };
36781
- delete: {
36782
- body: null;
36783
- summary: "Delete an account by id";
36784
- method: "DELETE";
36785
- pathParams: import("zod").ZodObject<{
36786
- id: import("zod").ZodString;
36787
- }, "strip", import("zod").ZodTypeAny, {
36788
- id: string;
36789
- }, {
36790
- id: string;
36791
- }>;
36792
36846
  responses: {
36793
36847
  401: import("zod").ZodObject<{
36794
36848
  message: import("zod").ZodString;
@@ -36820,10 +36874,11 @@ export declare const mailContract: {
36820
36874
  message: string;
36821
36875
  error?: any;
36822
36876
  }>;
36823
- 200: import("zod").ZodObject<{
36877
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36824
36878
  requestId: import("zod").ZodString;
36879
+ }, {
36825
36880
  message: import("zod").ZodString;
36826
- }, "strip", import("zod").ZodTypeAny, {
36881
+ }>, "strip", import("zod").ZodTypeAny, {
36827
36882
  message: string;
36828
36883
  requestId: string;
36829
36884
  }, {
@@ -36831,7 +36886,19 @@ export declare const mailContract: {
36831
36886
  requestId: string;
36832
36887
  }>;
36833
36888
  };
36834
- path: "email-service/mail/account/:id";
36889
+ };
36890
+ deleteEmailEngineAcc: {
36891
+ body: null;
36892
+ summary: "Delete an account by id";
36893
+ method: "DELETE";
36894
+ pathParams: import("zod").ZodObject<{
36895
+ account: import("zod").ZodString;
36896
+ }, "strip", import("zod").ZodTypeAny, {
36897
+ account: string;
36898
+ }, {
36899
+ account: string;
36900
+ }>;
36901
+ path: "email-service/mail/account/email-engine/:account";
36835
36902
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36836
36903
  'x-tenant': import("zod").ZodString;
36837
36904
  authorization: import("zod").ZodString;
@@ -36848,18 +36915,6 @@ export declare const mailContract: {
36848
36915
  'x-code'?: string | undefined;
36849
36916
  'x-client-timezone'?: string | undefined;
36850
36917
  }>>>;
36851
- };
36852
- deleteEmailEngineAcc: {
36853
- body: null;
36854
- summary: "Delete an account by id";
36855
- method: "DELETE";
36856
- pathParams: import("zod").ZodObject<{
36857
- account: import("zod").ZodString;
36858
- }, "strip", import("zod").ZodTypeAny, {
36859
- account: string;
36860
- }, {
36861
- account: string;
36862
- }>;
36863
36918
  responses: {
36864
36919
  401: import("zod").ZodObject<{
36865
36920
  message: import("zod").ZodString;
@@ -36891,10 +36946,11 @@ export declare const mailContract: {
36891
36946
  message: string;
36892
36947
  error?: any;
36893
36948
  }>;
36894
- 200: import("zod").ZodObject<{
36949
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
36895
36950
  requestId: import("zod").ZodString;
36951
+ }, {
36896
36952
  message: import("zod").ZodString;
36897
- }, "strip", import("zod").ZodTypeAny, {
36953
+ }>, "strip", import("zod").ZodTypeAny, {
36898
36954
  message: string;
36899
36955
  requestId: string;
36900
36956
  }, {
@@ -36902,7 +36958,21 @@ export declare const mailContract: {
36902
36958
  requestId: string;
36903
36959
  }>;
36904
36960
  };
36905
- path: "email-service/mail/account/email-engine/:account";
36961
+ };
36962
+ createOAuth2Acc: {
36963
+ body: import("zod").ZodObject<{
36964
+ account: import("zod").ZodString;
36965
+ name: import("zod").ZodString;
36966
+ }, "strip", import("zod").ZodTypeAny, {
36967
+ name: string;
36968
+ account: string;
36969
+ }, {
36970
+ name: string;
36971
+ account: string;
36972
+ }>;
36973
+ summary: "Register OAuth2 account.";
36974
+ method: "POST";
36975
+ path: "email-service/mail/account/oauth2";
36906
36976
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
36907
36977
  'x-tenant': import("zod").ZodString;
36908
36978
  authorization: import("zod").ZodString;
@@ -36919,20 +36989,6 @@ export declare const mailContract: {
36919
36989
  'x-code'?: string | undefined;
36920
36990
  'x-client-timezone'?: string | undefined;
36921
36991
  }>>>;
36922
- };
36923
- createOAuth2Acc: {
36924
- body: import("zod").ZodObject<{
36925
- account: import("zod").ZodString;
36926
- name: import("zod").ZodString;
36927
- }, "strip", import("zod").ZodTypeAny, {
36928
- name: string;
36929
- account: string;
36930
- }, {
36931
- name: string;
36932
- account: string;
36933
- }>;
36934
- summary: "Register OAuth2 account.";
36935
- method: "POST";
36936
36992
  responses: {
36937
36993
  401: import("zod").ZodObject<{
36938
36994
  message: import("zod").ZodString;
@@ -37069,23 +37125,6 @@ export declare const mailContract: {
37069
37125
  };
37070
37126
  }>;
37071
37127
  };
37072
- path: "email-service/mail/account/oauth2";
37073
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
37074
- 'x-tenant': import("zod").ZodString;
37075
- authorization: import("zod").ZodString;
37076
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
37077
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
37078
- }, "strip", import("zod").ZodTypeAny, {
37079
- 'x-tenant': string;
37080
- authorization: string;
37081
- 'x-client-timezone': string;
37082
- 'x-code'?: string | undefined;
37083
- }, {
37084
- 'x-tenant': string;
37085
- authorization: string;
37086
- 'x-code'?: string | undefined;
37087
- 'x-client-timezone'?: string | undefined;
37088
- }>>>;
37089
37128
  };
37090
37129
  };
37091
37130
  server: {
@@ -37123,6 +37162,7 @@ export declare const mailContract: {
37123
37162
  }>;
37124
37163
  summary: "Register a new mail server";
37125
37164
  method: "POST";
37165
+ path: "email-service/mail/server/";
37126
37166
  responses: {
37127
37167
  401: import("zod").ZodObject<{
37128
37168
  message: import("zod").ZodString;
@@ -37154,8 +37194,9 @@ export declare const mailContract: {
37154
37194
  message: string;
37155
37195
  error?: any;
37156
37196
  }>;
37157
- 201: import("zod").ZodObject<{
37197
+ 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37158
37198
  requestId: import("zod").ZodString;
37199
+ }, {
37159
37200
  data: import("zod").ZodObject<{
37160
37201
  id: import("zod").ZodString;
37161
37202
  createdAt: import("zod").ZodDate;
@@ -37199,7 +37240,7 @@ export declare const mailContract: {
37199
37240
  imapTlsPort: number;
37200
37241
  useTlsForImap: boolean;
37201
37242
  }>;
37202
- }, "strip", import("zod").ZodTypeAny, {
37243
+ }>, "strip", import("zod").ZodTypeAny, {
37203
37244
  data: {
37204
37245
  name: string;
37205
37246
  id: string;
@@ -37235,11 +37276,11 @@ export declare const mailContract: {
37235
37276
  requestId: string;
37236
37277
  }>;
37237
37278
  };
37238
- path: "email-service/mail/server/";
37239
37279
  };
37240
37280
  getOAuth2Apps: {
37241
37281
  summary: "Get all oauth2 apps";
37242
37282
  method: "GET";
37283
+ path: "email-service/mail/server/oauth2/apps";
37243
37284
  responses: {
37244
37285
  401: import("zod").ZodObject<{
37245
37286
  message: import("zod").ZodString;
@@ -37271,8 +37312,9 @@ export declare const mailContract: {
37271
37312
  message: string;
37272
37313
  error?: any;
37273
37314
  }>;
37274
- 200: import("zod").ZodObject<{
37315
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37275
37316
  requestId: import("zod").ZodString;
37317
+ }, {
37276
37318
  data: import("zod").ZodObject<{
37277
37319
  total: import("zod").ZodNumber;
37278
37320
  pages: import("zod").ZodNumber;
@@ -37384,7 +37426,7 @@ export declare const mailContract: {
37384
37426
  serviceKey: string;
37385
37427
  }[];
37386
37428
  }>;
37387
- }, "strip", import("zod").ZodTypeAny, {
37429
+ }>, "strip", import("zod").ZodTypeAny, {
37388
37430
  data: {
37389
37431
  total: number;
37390
37432
  page: number;
@@ -37440,7 +37482,6 @@ export declare const mailContract: {
37440
37482
  requestId: string;
37441
37483
  }>;
37442
37484
  };
37443
- path: "email-service/mail/server/oauth2/apps";
37444
37485
  };
37445
37486
  getById: {
37446
37487
  summary: "Get a mail server by id";
@@ -37452,6 +37493,7 @@ export declare const mailContract: {
37452
37493
  }, {
37453
37494
  id: string;
37454
37495
  }>;
37496
+ path: "email-service/mail/server/:id";
37455
37497
  responses: {
37456
37498
  401: import("zod").ZodObject<{
37457
37499
  message: import("zod").ZodString;
@@ -37483,8 +37525,9 @@ export declare const mailContract: {
37483
37525
  message: string;
37484
37526
  error?: any;
37485
37527
  }>;
37486
- 200: import("zod").ZodObject<{
37528
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37487
37529
  requestId: import("zod").ZodString;
37530
+ }, {
37488
37531
  data: import("zod").ZodObject<{
37489
37532
  id: import("zod").ZodString;
37490
37533
  createdAt: import("zod").ZodDate;
@@ -37528,7 +37571,7 @@ export declare const mailContract: {
37528
37571
  imapTlsPort: number;
37529
37572
  useTlsForImap: boolean;
37530
37573
  }>;
37531
- }, "strip", import("zod").ZodTypeAny, {
37574
+ }>, "strip", import("zod").ZodTypeAny, {
37532
37575
  data: {
37533
37576
  name: string;
37534
37577
  id: string;
@@ -37564,11 +37607,11 @@ export declare const mailContract: {
37564
37607
  requestId: string;
37565
37608
  }>;
37566
37609
  };
37567
- path: "email-service/mail/server/:id";
37568
37610
  };
37569
37611
  getAll: {
37570
37612
  summary: "Get all mail servers";
37571
37613
  method: "GET";
37614
+ path: "email-service/mail/server/";
37572
37615
  responses: {
37573
37616
  401: import("zod").ZodObject<{
37574
37617
  message: import("zod").ZodString;
@@ -37600,8 +37643,9 @@ export declare const mailContract: {
37600
37643
  message: string;
37601
37644
  error?: any;
37602
37645
  }>;
37603
- 200: import("zod").ZodObject<{
37646
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37604
37647
  requestId: import("zod").ZodString;
37648
+ }, {
37605
37649
  data: import("zod").ZodArray<import("zod").ZodObject<{
37606
37650
  id: import("zod").ZodString;
37607
37651
  createdAt: import("zod").ZodDate;
@@ -37645,7 +37689,7 @@ export declare const mailContract: {
37645
37689
  imapTlsPort: number;
37646
37690
  useTlsForImap: boolean;
37647
37691
  }>, "many">;
37648
- }, "strip", import("zod").ZodTypeAny, {
37692
+ }>, "strip", import("zod").ZodTypeAny, {
37649
37693
  data: {
37650
37694
  name: string;
37651
37695
  id: string;
@@ -37681,7 +37725,6 @@ export declare const mailContract: {
37681
37725
  requestId: string;
37682
37726
  }>;
37683
37727
  };
37684
- path: "email-service/mail/server/";
37685
37728
  };
37686
37729
  update: {
37687
37730
  body: import("zod").ZodObject<{
@@ -37724,6 +37767,7 @@ export declare const mailContract: {
37724
37767
  }, {
37725
37768
  id: string;
37726
37769
  }>;
37770
+ path: "email-service/mail/server/:id";
37727
37771
  responses: {
37728
37772
  401: import("zod").ZodObject<{
37729
37773
  message: import("zod").ZodString;
@@ -37755,8 +37799,9 @@ export declare const mailContract: {
37755
37799
  message: string;
37756
37800
  error?: any;
37757
37801
  }>;
37758
- 200: import("zod").ZodObject<{
37802
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37759
37803
  requestId: import("zod").ZodString;
37804
+ }, {
37760
37805
  data: import("zod").ZodObject<{
37761
37806
  id: import("zod").ZodString;
37762
37807
  createdAt: import("zod").ZodDate;
@@ -37800,7 +37845,7 @@ export declare const mailContract: {
37800
37845
  imapTlsPort: number;
37801
37846
  useTlsForImap: boolean;
37802
37847
  }>;
37803
- }, "strip", import("zod").ZodTypeAny, {
37848
+ }>, "strip", import("zod").ZodTypeAny, {
37804
37849
  data: {
37805
37850
  name: string;
37806
37851
  id: string;
@@ -37836,7 +37881,6 @@ export declare const mailContract: {
37836
37881
  requestId: string;
37837
37882
  }>;
37838
37883
  };
37839
- path: "email-service/mail/server/:id";
37840
37884
  };
37841
37885
  delete: {
37842
37886
  body: null;
@@ -37849,6 +37893,7 @@ export declare const mailContract: {
37849
37893
  }, {
37850
37894
  id: string;
37851
37895
  }>;
37896
+ path: "email-service/mail/server/:id";
37852
37897
  responses: {
37853
37898
  401: import("zod").ZodObject<{
37854
37899
  message: import("zod").ZodString;
@@ -37880,8 +37925,9 @@ export declare const mailContract: {
37880
37925
  message: string;
37881
37926
  error?: any;
37882
37927
  }>;
37883
- 200: import("zod").ZodObject<{
37928
+ 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
37884
37929
  requestId: import("zod").ZodString;
37930
+ }, {
37885
37931
  data: import("zod").ZodObject<{
37886
37932
  id: import("zod").ZodString;
37887
37933
  createdAt: import("zod").ZodDate;
@@ -37925,7 +37971,7 @@ export declare const mailContract: {
37925
37971
  imapTlsPort: number;
37926
37972
  useTlsForImap: boolean;
37927
37973
  }>;
37928
- }, "strip", import("zod").ZodTypeAny, {
37974
+ }>, "strip", import("zod").ZodTypeAny, {
37929
37975
  data: {
37930
37976
  name: string;
37931
37977
  id: string;
@@ -37961,7 +38007,6 @@ export declare const mailContract: {
37961
38007
  requestId: string;
37962
38008
  }>;
37963
38009
  };
37964
- path: "email-service/mail/server/:id";
37965
38010
  };
37966
38011
  };
37967
38012
  };