@kl1/contracts 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/api-contracts/src/auth/index.d.ts +436 -0
  2. package/dist/api-contracts/src/auth/index.d.ts.map +1 -0
  3. package/dist/api-contracts/src/auth/permission-schema.d.ts +27 -0
  4. package/dist/api-contracts/src/auth/permission-schema.d.ts.map +1 -0
  5. package/dist/api-contracts/src/auth/role-schema.d.ts +70 -0
  6. package/dist/api-contracts/src/auth/role-schema.d.ts.map +1 -0
  7. package/dist/api-contracts/src/auth/user-schema.d.ts +140 -0
  8. package/dist/api-contracts/src/auth/user-schema.d.ts.map +1 -0
  9. package/dist/api-contracts/src/base-contract.d.ts +85 -0
  10. package/dist/api-contracts/src/base-contract.d.ts.map +1 -0
  11. package/dist/api-contracts/src/contract.d.ts +593 -0
  12. package/dist/api-contracts/src/contract.d.ts.map +1 -0
  13. package/dist/api-contracts/src/cx-log/cx-log-schema.d.ts +54 -0
  14. package/dist/api-contracts/src/cx-log/cx-log-schema.d.ts.map +1 -0
  15. package/dist/api-contracts/src/cx-log/index.d.ts +252 -0
  16. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -0
  17. package/dist/api-contracts/src/index.d.ts +2 -0
  18. package/dist/api-contracts/src/index.d.ts.map +1 -0
  19. package/dist/attribute/schema.d.ts +42 -0
  20. package/dist/attribute/schema.d.ts.map +1 -0
  21. package/dist/attribute-option/schema.d.ts +33 -0
  22. package/dist/attribute-option/schema.d.ts.map +1 -0
  23. package/dist/auth/index.d.ts +436 -0
  24. package/dist/auth/index.d.ts.map +1 -0
  25. package/dist/auth/permission-schema.d.ts +27 -0
  26. package/dist/auth/permission-schema.d.ts.map +1 -0
  27. package/dist/auth/role-schema.d.ts +70 -0
  28. package/dist/auth/role-schema.d.ts.map +1 -0
  29. package/dist/auth/user-schema.d.ts +140 -0
  30. package/dist/auth/user-schema.d.ts.map +1 -0
  31. package/dist/base-contract.d.ts +85 -0
  32. package/dist/base-contract.d.ts.map +1 -0
  33. package/dist/call-log/index.d.ts +4 -0
  34. package/dist/call-log/index.d.ts.map +1 -0
  35. package/dist/call-log/schema.d.ts +57 -0
  36. package/dist/call-log/schema.d.ts.map +1 -0
  37. package/dist/call-log/validation.d.ts +24 -0
  38. package/dist/call-log/validation.d.ts.map +1 -0
  39. package/dist/company/schema.d.ts +30 -0
  40. package/dist/company/schema.d.ts.map +1 -0
  41. package/dist/contact/schema.d.ts +42 -0
  42. package/dist/contact/schema.d.ts.map +1 -0
  43. package/dist/contact-email/schema.d.ts +27 -0
  44. package/dist/contact-email/schema.d.ts.map +1 -0
  45. package/dist/contact-phone/schema.d.ts +27 -0
  46. package/dist/contact-phone/schema.d.ts.map +1 -0
  47. package/dist/contract.d.ts +663 -0
  48. package/dist/contract.d.ts.map +1 -0
  49. package/dist/custom-field/schema.d.ts +36 -0
  50. package/dist/custom-field/schema.d.ts.map +1 -0
  51. package/dist/custom-field-upload/schema.d.ts +24 -0
  52. package/dist/custom-field-upload/schema.d.ts.map +1 -0
  53. package/dist/cx-log/cx-log-schema.d.ts +54 -0
  54. package/dist/cx-log/cx-log-schema.d.ts.map +1 -0
  55. package/dist/cx-log/index.d.ts +230 -0
  56. package/dist/cx-log/index.d.ts.map +1 -0
  57. package/dist/cx-log/schema.d.ts +54 -0
  58. package/dist/cx-log/schema.d.ts.map +1 -0
  59. package/dist/cx-log/validation.d.ts +95 -0
  60. package/dist/cx-log/validation.d.ts.map +1 -0
  61. package/dist/entities/src/base.entity.d.ts +7 -0
  62. package/dist/entities/src/base.entity.d.ts.map +1 -0
  63. package/dist/entities/src/tenants/attribute-option.entity.d.ts +9 -0
  64. package/dist/entities/src/tenants/attribute-option.entity.d.ts.map +1 -0
  65. package/dist/entities/src/tenants/attribute.entity.d.ts +12 -0
  66. package/dist/entities/src/tenants/attribute.entity.d.ts.map +1 -0
  67. package/dist/entities/src/tenants/call-log.entity.d.ts +18 -0
  68. package/dist/entities/src/tenants/call-log.entity.d.ts.map +1 -0
  69. package/dist/entities/src/tenants/company.entity.d.ts +8 -0
  70. package/dist/entities/src/tenants/company.entity.d.ts.map +1 -0
  71. package/dist/entities/src/tenants/contact-custom-field.entity.d.ts +14 -0
  72. package/dist/entities/src/tenants/contact-custom-field.entity.d.ts.map +1 -0
  73. package/dist/entities/src/tenants/contact-email.entity.d.ts +7 -0
  74. package/dist/entities/src/tenants/contact-email.entity.d.ts.map +1 -0
  75. package/dist/entities/src/tenants/contact-phone.entity.d.ts +7 -0
  76. package/dist/entities/src/tenants/contact-phone.entity.d.ts.map +1 -0
  77. package/dist/entities/src/tenants/contact.entity.d.ts +14 -0
  78. package/dist/entities/src/tenants/contact.entity.d.ts.map +1 -0
  79. package/dist/entities/src/tenants/custom-field-upload.entity.d.ts +8 -0
  80. package/dist/entities/src/tenants/custom-field-upload.entity.d.ts.map +1 -0
  81. package/dist/entities/src/tenants/custom-field.entity.d.ts +10 -0
  82. package/dist/entities/src/tenants/custom-field.entity.d.ts.map +1 -0
  83. package/dist/entities/src/tenants/cx-log.entity.d.ts +20 -0
  84. package/dist/entities/src/tenants/cx-log.entity.d.ts.map +1 -0
  85. package/dist/entities/src/tenants/evaluate-form.entity.d.ts +9 -0
  86. package/dist/entities/src/tenants/evaluate-form.entity.d.ts.map +1 -0
  87. package/dist/entities/src/tenants/extension.entity.d.ts +10 -0
  88. package/dist/entities/src/tenants/extension.entity.d.ts.map +1 -0
  89. package/dist/entities/src/tenants/group.entity.d.ts +6 -0
  90. package/dist/entities/src/tenants/group.entity.d.ts.map +1 -0
  91. package/dist/entities/src/tenants/index.d.ts +25 -0
  92. package/dist/entities/src/tenants/index.d.ts.map +1 -0
  93. package/dist/entities/src/tenants/log-form.entity.d.ts +6 -0
  94. package/dist/entities/src/tenants/log-form.entity.d.ts.map +1 -0
  95. package/dist/entities/src/tenants/permission.entity.d.ts +9 -0
  96. package/dist/entities/src/tenants/permission.entity.d.ts.map +1 -0
  97. package/dist/entities/src/tenants/platform-contact.entity.d.ts +8 -0
  98. package/dist/entities/src/tenants/platform-contact.entity.d.ts.map +1 -0
  99. package/dist/entities/src/tenants/role.entity.d.ts +11 -0
  100. package/dist/entities/src/tenants/role.entity.d.ts.map +1 -0
  101. package/dist/entities/src/tenants/tag-group.entity.d.ts +8 -0
  102. package/dist/entities/src/tenants/tag-group.entity.d.ts.map +1 -0
  103. package/dist/entities/src/tenants/tag.entity.d.ts +11 -0
  104. package/dist/entities/src/tenants/tag.entity.d.ts.map +1 -0
  105. package/dist/entities/src/tenants/telephony-cdr.entity.d.ts +23 -0
  106. package/dist/entities/src/tenants/telephony-cdr.entity.d.ts.map +1 -0
  107. package/dist/entities/src/tenants/telephony-live-queue-call.entity.d.ts +7 -0
  108. package/dist/entities/src/tenants/telephony-live-queue-call.entity.d.ts.map +1 -0
  109. package/dist/entities/src/tenants/telephony-queue-call-count.entity.d.ts +15 -0
  110. package/dist/entities/src/tenants/telephony-queue-call-count.entity.d.ts.map +1 -0
  111. package/dist/entities/src/tenants/ticket.entity.d.ts +17 -0
  112. package/dist/entities/src/tenants/ticket.entity.d.ts.map +1 -0
  113. package/dist/entities/src/tenants/upload.entity.d.ts +8 -0
  114. package/dist/entities/src/tenants/upload.entity.d.ts.map +1 -0
  115. package/dist/entities/src/tenants/user.entity.d.ts +13 -0
  116. package/dist/entities/src/tenants/user.entity.d.ts.map +1 -0
  117. package/dist/entities/src/tenants/widget.entity.d.ts +9 -0
  118. package/dist/entities/src/tenants/widget.entity.d.ts.map +1 -0
  119. package/dist/evaluate-form/schema.d.ts +27 -0
  120. package/dist/evaluate-form/schema.d.ts.map +1 -0
  121. package/dist/exchange-token/index.d.ts +32 -0
  122. package/dist/exchange-token/index.d.ts.map +1 -0
  123. package/dist/extension/schema.d.ts +36 -0
  124. package/dist/extension/schema.d.ts.map +1 -0
  125. package/dist/group/schema.d.ts +24 -0
  126. package/dist/group/schema.d.ts.map +1 -0
  127. package/dist/index.d.ts +3 -0
  128. package/dist/index.d.ts.map +1 -0
  129. package/dist/index.js +855 -0
  130. package/dist/index.js.map +1 -0
  131. package/dist/index.mjs +817 -0
  132. package/dist/index.mjs.map +1 -0
  133. package/dist/log-form/schema.d.ts +24 -0
  134. package/dist/log-form/schema.d.ts.map +1 -0
  135. package/dist/permission/schema.d.ts +27 -0
  136. package/dist/permission/schema.d.ts.map +1 -0
  137. package/dist/platform-contact/schema.d.ts +30 -0
  138. package/dist/platform-contact/schema.d.ts.map +1 -0
  139. package/dist/posts/index.d.ts +118 -0
  140. package/dist/posts/index.d.ts.map +1 -0
  141. package/dist/role/schema.d.ts +70 -0
  142. package/dist/role/schema.d.ts.map +1 -0
  143. package/dist/src/attribute/index.d.ts +433 -0
  144. package/dist/src/attribute/index.d.ts.map +1 -0
  145. package/dist/src/attribute/schema.d.ts +42 -0
  146. package/dist/src/attribute/schema.d.ts.map +1 -0
  147. package/dist/src/attribute/validation.d.ts +131 -0
  148. package/dist/src/attribute/validation.d.ts.map +1 -0
  149. package/dist/src/attribute-option/schema.d.ts +33 -0
  150. package/dist/src/attribute-option/schema.d.ts.map +1 -0
  151. package/dist/src/auth/index.d.ts +431 -0
  152. package/dist/src/auth/index.d.ts.map +1 -0
  153. package/dist/src/base-contract.d.ts +117 -0
  154. package/dist/src/base-contract.d.ts.map +1 -0
  155. package/dist/src/call-log/index.d.ts +4 -0
  156. package/dist/src/call-log/index.d.ts.map +1 -0
  157. package/dist/src/call-log/schema.d.ts +57 -0
  158. package/dist/src/call-log/schema.d.ts.map +1 -0
  159. package/dist/src/call-log/validation.d.ts +24 -0
  160. package/dist/src/call-log/validation.d.ts.map +1 -0
  161. package/dist/src/category/index.d.ts +633 -0
  162. package/dist/src/category/index.d.ts.map +1 -0
  163. package/dist/src/category/schema.d.ts +94 -0
  164. package/dist/src/category/schema.d.ts.map +1 -0
  165. package/dist/src/category/validation.d.ts +45 -0
  166. package/dist/src/category/validation.d.ts.map +1 -0
  167. package/dist/src/company/schema.d.ts +30 -0
  168. package/dist/src/company/schema.d.ts.map +1 -0
  169. package/dist/src/contact/schema.d.ts +42 -0
  170. package/dist/src/contact/schema.d.ts.map +1 -0
  171. package/dist/src/contact-email/schema.d.ts +27 -0
  172. package/dist/src/contact-email/schema.d.ts.map +1 -0
  173. package/dist/src/contact-phone/schema.d.ts +27 -0
  174. package/dist/src/contact-phone/schema.d.ts.map +1 -0
  175. package/dist/src/contract.d.ts +3196 -0
  176. package/dist/src/contract.d.ts.map +1 -0
  177. package/dist/src/custom-field/schema.d.ts +36 -0
  178. package/dist/src/custom-field/schema.d.ts.map +1 -0
  179. package/dist/src/custom-field-upload/schema.d.ts +24 -0
  180. package/dist/src/custom-field-upload/schema.d.ts.map +1 -0
  181. package/dist/src/cx-log/index.d.ts +230 -0
  182. package/dist/src/cx-log/index.d.ts.map +1 -0
  183. package/dist/src/cx-log/schema.d.ts +54 -0
  184. package/dist/src/cx-log/schema.d.ts.map +1 -0
  185. package/dist/src/cx-log/validation.d.ts +95 -0
  186. package/dist/src/cx-log/validation.d.ts.map +1 -0
  187. package/dist/src/evaluate-form/schema.d.ts +27 -0
  188. package/dist/src/evaluate-form/schema.d.ts.map +1 -0
  189. package/dist/src/extension/schema.d.ts +36 -0
  190. package/dist/src/extension/schema.d.ts.map +1 -0
  191. package/dist/src/group/schema.d.ts +24 -0
  192. package/dist/src/group/schema.d.ts.map +1 -0
  193. package/dist/src/index.d.ts +6 -0
  194. package/dist/src/index.d.ts.map +1 -0
  195. package/dist/src/log-form/schema.d.ts +24 -0
  196. package/dist/src/log-form/schema.d.ts.map +1 -0
  197. package/dist/src/mail/account-contract.d.ts +1250 -0
  198. package/dist/src/mail/account-contract.d.ts.map +1 -0
  199. package/dist/src/mail/email-engine-webhooks-events.contract.d.ts +22 -0
  200. package/dist/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -0
  201. package/dist/src/mail/mail-contract.d.ts +1894 -0
  202. package/dist/src/mail/mail-contract.d.ts.map +1 -0
  203. package/dist/src/mail/mail-server.d.ts +216 -0
  204. package/dist/src/mail/mail-server.d.ts.map +1 -0
  205. package/dist/src/mail/message-contract.d.ts +216 -0
  206. package/dist/src/mail/message-contract.d.ts.map +1 -0
  207. package/dist/src/mail/room-contract.d.ts +216 -0
  208. package/dist/src/mail/room-contract.d.ts.map +1 -0
  209. package/dist/src/mail/schemas/account.schema.d.ts +1004 -0
  210. package/dist/src/mail/schemas/account.schema.d.ts.map +1 -0
  211. package/dist/src/permission/schema.d.ts +27 -0
  212. package/dist/src/permission/schema.d.ts.map +1 -0
  213. package/dist/src/platform-contact/schema.d.ts +30 -0
  214. package/dist/src/platform-contact/schema.d.ts.map +1 -0
  215. package/dist/src/role/schema.d.ts +70 -0
  216. package/dist/src/role/schema.d.ts.map +1 -0
  217. package/dist/src/tag/schema.d.ts +21 -0
  218. package/dist/src/tag/schema.d.ts.map +1 -0
  219. package/dist/src/tag-group/schema.d.ts +24 -0
  220. package/dist/src/tag-group/schema.d.ts.map +1 -0
  221. package/dist/src/telephony-cdr/index.d.ts +4 -0
  222. package/dist/src/telephony-cdr/index.d.ts.map +1 -0
  223. package/dist/src/telephony-cdr/schema.d.ts +75 -0
  224. package/dist/src/telephony-cdr/schema.d.ts.map +1 -0
  225. package/dist/src/telephony-cdr/validation.d.ts +48 -0
  226. package/dist/src/telephony-cdr/validation.d.ts.map +1 -0
  227. package/dist/src/telephony-live-queue-call/schema.d.ts +27 -0
  228. package/dist/src/telephony-live-queue-call/schema.d.ts.map +1 -0
  229. package/dist/src/telephony-queue-call-count/schema.d.ts +51 -0
  230. package/dist/src/telephony-queue-call-count/schema.d.ts.map +1 -0
  231. package/dist/src/ticket/schema.d.ts +51 -0
  232. package/dist/src/ticket/schema.d.ts.map +1 -0
  233. package/dist/src/upload/schema.d.ts +30 -0
  234. package/dist/src/upload/schema.d.ts.map +1 -0
  235. package/dist/src/user/schema.d.ts +137 -0
  236. package/dist/src/user/schema.d.ts.map +1 -0
  237. package/dist/src/widget/schema.d.ts +33 -0
  238. package/dist/src/widget/schema.d.ts.map +1 -0
  239. package/dist/tag/schema.d.ts +21 -0
  240. package/dist/tag/schema.d.ts.map +1 -0
  241. package/dist/tag-group/schema.d.ts +24 -0
  242. package/dist/tag-group/schema.d.ts.map +1 -0
  243. package/dist/telephony-cdr/index.d.ts +4 -0
  244. package/dist/telephony-cdr/index.d.ts.map +1 -0
  245. package/dist/telephony-cdr/schema.d.ts +75 -0
  246. package/dist/telephony-cdr/schema.d.ts.map +1 -0
  247. package/dist/telephony-cdr/validation.d.ts +48 -0
  248. package/dist/telephony-cdr/validation.d.ts.map +1 -0
  249. package/dist/telephony-live-queue-call/schema.d.ts +27 -0
  250. package/dist/telephony-live-queue-call/schema.d.ts.map +1 -0
  251. package/dist/telephony-queue-call-count/schema.d.ts +51 -0
  252. package/dist/telephony-queue-call-count/schema.d.ts.map +1 -0
  253. package/dist/ticket/schema.d.ts +51 -0
  254. package/dist/ticket/schema.d.ts.map +1 -0
  255. package/dist/upload/schema.d.ts +30 -0
  256. package/dist/upload/schema.d.ts.map +1 -0
  257. package/dist/user/schema.d.ts +140 -0
  258. package/dist/user/schema.d.ts.map +1 -0
  259. package/dist/utils.d.ts +37 -0
  260. package/dist/utils.d.ts.map +1 -0
  261. package/dist/widget/schema.d.ts +33 -0
  262. package/dist/widget/schema.d.ts.map +1 -0
  263. package/package.json +48 -0
@@ -0,0 +1,1894 @@
1
+ import z from 'zod';
2
+ export declare const mailContract: {
3
+ room: {
4
+ create: {
5
+ body: null;
6
+ summary: "Create a new room for new incoming mail";
7
+ method: "POST";
8
+ responses: {
9
+ 401: z.ZodObject<{
10
+ message: z.ZodString;
11
+ error: z.ZodAny;
12
+ }, "strip", z.ZodTypeAny, {
13
+ message: string;
14
+ error?: any;
15
+ }, {
16
+ message: string;
17
+ error?: any;
18
+ }>;
19
+ 404: z.ZodObject<{
20
+ message: z.ZodString;
21
+ error: z.ZodAny;
22
+ }, "strip", z.ZodTypeAny, {
23
+ message: string;
24
+ error?: any;
25
+ }, {
26
+ message: string;
27
+ error?: any;
28
+ }>;
29
+ 422: z.ZodObject<{
30
+ message: z.ZodString;
31
+ error: z.ZodAny;
32
+ }, "strip", z.ZodTypeAny, {
33
+ message: string;
34
+ error?: any;
35
+ }, {
36
+ message: string;
37
+ error?: any;
38
+ }>;
39
+ 200: z.ZodObject<{
40
+ requestId: z.ZodString;
41
+ message: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ message: string;
44
+ requestId: string;
45
+ }, {
46
+ message: string;
47
+ requestId: string;
48
+ }>;
49
+ };
50
+ path: "/room/";
51
+ };
52
+ get: {
53
+ summary: "Get a mail room by id";
54
+ method: "GET";
55
+ pathParams: z.ZodObject<{
56
+ id: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ id: string;
59
+ }, {
60
+ id: string;
61
+ }>;
62
+ responses: {
63
+ 401: z.ZodObject<{
64
+ message: z.ZodString;
65
+ error: z.ZodAny;
66
+ }, "strip", z.ZodTypeAny, {
67
+ message: string;
68
+ error?: any;
69
+ }, {
70
+ message: string;
71
+ error?: any;
72
+ }>;
73
+ 404: z.ZodObject<{
74
+ message: z.ZodString;
75
+ error: z.ZodAny;
76
+ }, "strip", z.ZodTypeAny, {
77
+ message: string;
78
+ error?: any;
79
+ }, {
80
+ message: string;
81
+ error?: any;
82
+ }>;
83
+ 422: z.ZodObject<{
84
+ message: z.ZodString;
85
+ error: z.ZodAny;
86
+ }, "strip", z.ZodTypeAny, {
87
+ message: string;
88
+ error?: any;
89
+ }, {
90
+ message: string;
91
+ error?: any;
92
+ }>;
93
+ 200: z.ZodObject<{
94
+ requestId: z.ZodString;
95
+ message: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ message: string;
98
+ requestId: string;
99
+ }, {
100
+ message: string;
101
+ requestId: string;
102
+ }>;
103
+ };
104
+ path: "/room/:id";
105
+ };
106
+ update: {
107
+ body: null;
108
+ summary: "Update a mail room by id";
109
+ method: "PATCH";
110
+ pathParams: z.ZodObject<{
111
+ id: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
113
+ id: string;
114
+ }, {
115
+ id: string;
116
+ }>;
117
+ responses: {
118
+ 401: z.ZodObject<{
119
+ message: z.ZodString;
120
+ error: z.ZodAny;
121
+ }, "strip", z.ZodTypeAny, {
122
+ message: string;
123
+ error?: any;
124
+ }, {
125
+ message: string;
126
+ error?: any;
127
+ }>;
128
+ 404: z.ZodObject<{
129
+ message: z.ZodString;
130
+ error: z.ZodAny;
131
+ }, "strip", z.ZodTypeAny, {
132
+ message: string;
133
+ error?: any;
134
+ }, {
135
+ message: string;
136
+ error?: any;
137
+ }>;
138
+ 422: z.ZodObject<{
139
+ message: z.ZodString;
140
+ error: z.ZodAny;
141
+ }, "strip", z.ZodTypeAny, {
142
+ message: string;
143
+ error?: any;
144
+ }, {
145
+ message: string;
146
+ error?: any;
147
+ }>;
148
+ 200: z.ZodObject<{
149
+ requestId: z.ZodString;
150
+ message: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ message: string;
153
+ requestId: string;
154
+ }, {
155
+ message: string;
156
+ requestId: string;
157
+ }>;
158
+ };
159
+ path: "/room/:id";
160
+ };
161
+ delete: {
162
+ body: null;
163
+ summary: "Delete a mail room by id";
164
+ method: "PATCH";
165
+ pathParams: z.ZodObject<{
166
+ id: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ id: string;
169
+ }, {
170
+ id: string;
171
+ }>;
172
+ responses: {
173
+ 401: z.ZodObject<{
174
+ message: z.ZodString;
175
+ error: z.ZodAny;
176
+ }, "strip", z.ZodTypeAny, {
177
+ message: string;
178
+ error?: any;
179
+ }, {
180
+ message: string;
181
+ error?: any;
182
+ }>;
183
+ 404: z.ZodObject<{
184
+ message: z.ZodString;
185
+ error: z.ZodAny;
186
+ }, "strip", z.ZodTypeAny, {
187
+ message: string;
188
+ error?: any;
189
+ }, {
190
+ message: string;
191
+ error?: any;
192
+ }>;
193
+ 422: z.ZodObject<{
194
+ message: z.ZodString;
195
+ error: z.ZodAny;
196
+ }, "strip", z.ZodTypeAny, {
197
+ message: string;
198
+ error?: any;
199
+ }, {
200
+ message: string;
201
+ error?: any;
202
+ }>;
203
+ 200: z.ZodObject<{
204
+ requestId: z.ZodString;
205
+ message: z.ZodString;
206
+ }, "strip", z.ZodTypeAny, {
207
+ message: string;
208
+ requestId: string;
209
+ }, {
210
+ message: string;
211
+ requestId: string;
212
+ }>;
213
+ };
214
+ path: "/room/:id";
215
+ };
216
+ };
217
+ message: {
218
+ create: {
219
+ body: null;
220
+ summary: "Add a new message into a room";
221
+ method: "POST";
222
+ responses: {
223
+ 401: z.ZodObject<{
224
+ message: z.ZodString;
225
+ error: z.ZodAny;
226
+ }, "strip", z.ZodTypeAny, {
227
+ message: string;
228
+ error?: any;
229
+ }, {
230
+ message: string;
231
+ error?: any;
232
+ }>;
233
+ 404: z.ZodObject<{
234
+ message: z.ZodString;
235
+ error: z.ZodAny;
236
+ }, "strip", z.ZodTypeAny, {
237
+ message: string;
238
+ error?: any;
239
+ }, {
240
+ message: string;
241
+ error?: any;
242
+ }>;
243
+ 422: z.ZodObject<{
244
+ message: z.ZodString;
245
+ error: z.ZodAny;
246
+ }, "strip", z.ZodTypeAny, {
247
+ message: string;
248
+ error?: any;
249
+ }, {
250
+ message: string;
251
+ error?: any;
252
+ }>;
253
+ 200: z.ZodObject<{
254
+ requestId: z.ZodString;
255
+ message: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
257
+ message: string;
258
+ requestId: string;
259
+ }, {
260
+ message: string;
261
+ requestId: string;
262
+ }>;
263
+ };
264
+ path: "/message/";
265
+ };
266
+ get: {
267
+ summary: "Get a message by id";
268
+ method: "GET";
269
+ pathParams: z.ZodObject<{
270
+ id: z.ZodString;
271
+ }, "strip", z.ZodTypeAny, {
272
+ id: string;
273
+ }, {
274
+ id: string;
275
+ }>;
276
+ responses: {
277
+ 401: z.ZodObject<{
278
+ message: z.ZodString;
279
+ error: z.ZodAny;
280
+ }, "strip", z.ZodTypeAny, {
281
+ message: string;
282
+ error?: any;
283
+ }, {
284
+ message: string;
285
+ error?: any;
286
+ }>;
287
+ 404: z.ZodObject<{
288
+ message: z.ZodString;
289
+ error: z.ZodAny;
290
+ }, "strip", z.ZodTypeAny, {
291
+ message: string;
292
+ error?: any;
293
+ }, {
294
+ message: string;
295
+ error?: any;
296
+ }>;
297
+ 422: z.ZodObject<{
298
+ message: z.ZodString;
299
+ error: z.ZodAny;
300
+ }, "strip", z.ZodTypeAny, {
301
+ message: string;
302
+ error?: any;
303
+ }, {
304
+ message: string;
305
+ error?: any;
306
+ }>;
307
+ 200: z.ZodObject<{
308
+ requestId: z.ZodString;
309
+ message: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ message: string;
312
+ requestId: string;
313
+ }, {
314
+ message: string;
315
+ requestId: string;
316
+ }>;
317
+ };
318
+ path: "/message/:id";
319
+ };
320
+ update: {
321
+ body: null;
322
+ summary: "Update a message by id";
323
+ method: "PATCH";
324
+ pathParams: z.ZodObject<{
325
+ id: z.ZodString;
326
+ }, "strip", z.ZodTypeAny, {
327
+ id: string;
328
+ }, {
329
+ id: string;
330
+ }>;
331
+ responses: {
332
+ 401: z.ZodObject<{
333
+ message: z.ZodString;
334
+ error: z.ZodAny;
335
+ }, "strip", z.ZodTypeAny, {
336
+ message: string;
337
+ error?: any;
338
+ }, {
339
+ message: string;
340
+ error?: any;
341
+ }>;
342
+ 404: z.ZodObject<{
343
+ message: z.ZodString;
344
+ error: z.ZodAny;
345
+ }, "strip", z.ZodTypeAny, {
346
+ message: string;
347
+ error?: any;
348
+ }, {
349
+ message: string;
350
+ error?: any;
351
+ }>;
352
+ 422: z.ZodObject<{
353
+ message: z.ZodString;
354
+ error: z.ZodAny;
355
+ }, "strip", z.ZodTypeAny, {
356
+ message: string;
357
+ error?: any;
358
+ }, {
359
+ message: string;
360
+ error?: any;
361
+ }>;
362
+ 200: z.ZodObject<{
363
+ requestId: z.ZodString;
364
+ message: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ message: string;
367
+ requestId: string;
368
+ }, {
369
+ message: string;
370
+ requestId: string;
371
+ }>;
372
+ };
373
+ path: "/message/:id";
374
+ };
375
+ delete: {
376
+ body: null;
377
+ summary: "Delete a message by id";
378
+ method: "PATCH";
379
+ pathParams: z.ZodObject<{
380
+ id: z.ZodString;
381
+ }, "strip", z.ZodTypeAny, {
382
+ id: string;
383
+ }, {
384
+ id: string;
385
+ }>;
386
+ responses: {
387
+ 401: z.ZodObject<{
388
+ message: z.ZodString;
389
+ error: z.ZodAny;
390
+ }, "strip", z.ZodTypeAny, {
391
+ message: string;
392
+ error?: any;
393
+ }, {
394
+ message: string;
395
+ error?: any;
396
+ }>;
397
+ 404: z.ZodObject<{
398
+ message: z.ZodString;
399
+ error: z.ZodAny;
400
+ }, "strip", z.ZodTypeAny, {
401
+ message: string;
402
+ error?: any;
403
+ }, {
404
+ message: string;
405
+ error?: any;
406
+ }>;
407
+ 422: z.ZodObject<{
408
+ message: z.ZodString;
409
+ error: z.ZodAny;
410
+ }, "strip", z.ZodTypeAny, {
411
+ message: string;
412
+ error?: any;
413
+ }, {
414
+ message: string;
415
+ error?: any;
416
+ }>;
417
+ 200: z.ZodObject<{
418
+ requestId: z.ZodString;
419
+ message: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ message: string;
422
+ requestId: string;
423
+ }, {
424
+ message: string;
425
+ requestId: string;
426
+ }>;
427
+ };
428
+ path: "/message/:id";
429
+ };
430
+ };
431
+ account: {
432
+ create: {
433
+ body: z.ZodObject<{
434
+ address: z.ZodString;
435
+ name: z.ZodString;
436
+ password: z.ZodString;
437
+ mailServerId: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ address: string;
440
+ name: string;
441
+ mailServerId: string;
442
+ password: string;
443
+ }, {
444
+ address: string;
445
+ name: string;
446
+ mailServerId: string;
447
+ password: string;
448
+ }>;
449
+ summary: "Register a new mail account";
450
+ method: "POST";
451
+ responses: {
452
+ 401: z.ZodObject<{
453
+ message: z.ZodString;
454
+ error: z.ZodAny;
455
+ }, "strip", z.ZodTypeAny, {
456
+ message: string;
457
+ error?: any;
458
+ }, {
459
+ message: string;
460
+ error?: any;
461
+ }>;
462
+ 404: z.ZodObject<{
463
+ message: z.ZodString;
464
+ error: z.ZodAny;
465
+ }, "strip", z.ZodTypeAny, {
466
+ message: string;
467
+ error?: any;
468
+ }, {
469
+ message: string;
470
+ error?: any;
471
+ }>;
472
+ 422: z.ZodObject<{
473
+ message: z.ZodString;
474
+ error: z.ZodAny;
475
+ }, "strip", z.ZodTypeAny, {
476
+ message: string;
477
+ error?: any;
478
+ }, {
479
+ message: string;
480
+ error?: any;
481
+ }>;
482
+ 201: z.ZodObject<{
483
+ requestId: z.ZodString;
484
+ message: z.ZodString;
485
+ }, "strip", z.ZodTypeAny, {
486
+ message: string;
487
+ requestId: string;
488
+ }, {
489
+ message: string;
490
+ requestId: string;
491
+ }>;
492
+ 400: z.ZodObject<{
493
+ message: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ message: string;
496
+ }, {
497
+ message: string;
498
+ }>;
499
+ 409: z.ZodObject<{
500
+ message: z.ZodString;
501
+ }, "strip", z.ZodTypeAny, {
502
+ message: string;
503
+ }, {
504
+ message: string;
505
+ }>;
506
+ 500: z.ZodObject<{
507
+ message: z.ZodString;
508
+ }, "strip", z.ZodTypeAny, {
509
+ message: string;
510
+ }, {
511
+ message: string;
512
+ }>;
513
+ };
514
+ path: "mail/account";
515
+ headers: z.ZodObject<{
516
+ 'x-tenant': z.ZodString;
517
+ authorization: z.ZodString;
518
+ }, "strip", z.ZodTypeAny, {
519
+ 'x-tenant': string;
520
+ authorization: string;
521
+ }, {
522
+ 'x-tenant': string;
523
+ authorization: string;
524
+ }>;
525
+ };
526
+ getById: {
527
+ summary: "Get a account by id";
528
+ method: "GET";
529
+ pathParams: z.ZodObject<{
530
+ id: z.ZodString;
531
+ }, "strip", z.ZodTypeAny, {
532
+ id: string;
533
+ }, {
534
+ id: string;
535
+ }>;
536
+ responses: {
537
+ 401: z.ZodObject<{
538
+ message: z.ZodString;
539
+ error: z.ZodAny;
540
+ }, "strip", z.ZodTypeAny, {
541
+ message: string;
542
+ error?: any;
543
+ }, {
544
+ message: string;
545
+ error?: any;
546
+ }>;
547
+ 404: z.ZodObject<{
548
+ message: z.ZodString;
549
+ error: z.ZodAny;
550
+ }, "strip", z.ZodTypeAny, {
551
+ message: string;
552
+ error?: any;
553
+ }, {
554
+ message: string;
555
+ error?: any;
556
+ }>;
557
+ 422: z.ZodObject<{
558
+ message: z.ZodString;
559
+ error: z.ZodAny;
560
+ }, "strip", z.ZodTypeAny, {
561
+ message: string;
562
+ error?: any;
563
+ }, {
564
+ message: string;
565
+ error?: any;
566
+ }>;
567
+ 200: z.ZodObject<{
568
+ requestId: z.ZodString;
569
+ data: z.ZodObject<{
570
+ id: z.ZodString;
571
+ created_at: z.ZodString;
572
+ updated_at: z.ZodString;
573
+ deletedAt: z.ZodNullable<z.ZodDate>;
574
+ tenant_id: z.ZodString;
575
+ name: z.ZodString;
576
+ address: z.ZodString;
577
+ accountId: z.ZodString;
578
+ mailServerId: z.ZodString;
579
+ mailServer: z.ZodObject<{
580
+ id: z.ZodString;
581
+ created_at: z.ZodString;
582
+ updated_at: z.ZodString;
583
+ deletedAt: z.ZodNullable<z.ZodString>;
584
+ tenant_id: z.ZodString;
585
+ name: z.ZodString;
586
+ smtpHost: z.ZodString;
587
+ smtpPort: z.ZodString;
588
+ smtpTlsPort: z.ZodString;
589
+ useTlsForSmtp: z.ZodBoolean;
590
+ imapHost: z.ZodString;
591
+ imapPort: z.ZodString;
592
+ imapTlsPort: z.ZodString;
593
+ useTlsForImap: z.ZodBoolean;
594
+ }, "strip", z.ZodTypeAny, {
595
+ id: string;
596
+ name: string;
597
+ deletedAt: string | null;
598
+ created_at: string;
599
+ updated_at: string;
600
+ tenant_id: string;
601
+ smtpHost: string;
602
+ smtpPort: string;
603
+ smtpTlsPort: string;
604
+ useTlsForSmtp: boolean;
605
+ imapHost: string;
606
+ imapPort: string;
607
+ imapTlsPort: string;
608
+ useTlsForImap: boolean;
609
+ }, {
610
+ id: string;
611
+ name: string;
612
+ deletedAt: string | null;
613
+ created_at: string;
614
+ updated_at: string;
615
+ tenant_id: string;
616
+ smtpHost: string;
617
+ smtpPort: string;
618
+ smtpTlsPort: string;
619
+ useTlsForSmtp: boolean;
620
+ imapHost: string;
621
+ imapPort: string;
622
+ imapTlsPort: string;
623
+ useTlsForImap: boolean;
624
+ }>;
625
+ state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ id: string;
628
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
629
+ address: string;
630
+ name: string;
631
+ deletedAt: Date | null;
632
+ created_at: string;
633
+ updated_at: string;
634
+ tenant_id: string;
635
+ accountId: string;
636
+ mailServerId: string;
637
+ mailServer: {
638
+ id: string;
639
+ name: string;
640
+ deletedAt: string | null;
641
+ created_at: string;
642
+ updated_at: string;
643
+ tenant_id: string;
644
+ smtpHost: string;
645
+ smtpPort: string;
646
+ smtpTlsPort: string;
647
+ useTlsForSmtp: boolean;
648
+ imapHost: string;
649
+ imapPort: string;
650
+ imapTlsPort: string;
651
+ useTlsForImap: boolean;
652
+ };
653
+ }, {
654
+ id: string;
655
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
656
+ address: string;
657
+ name: string;
658
+ deletedAt: Date | null;
659
+ created_at: string;
660
+ updated_at: string;
661
+ tenant_id: string;
662
+ accountId: string;
663
+ mailServerId: string;
664
+ mailServer: {
665
+ id: string;
666
+ name: string;
667
+ deletedAt: string | null;
668
+ created_at: string;
669
+ updated_at: string;
670
+ tenant_id: string;
671
+ smtpHost: string;
672
+ smtpPort: string;
673
+ smtpTlsPort: string;
674
+ useTlsForSmtp: boolean;
675
+ imapHost: string;
676
+ imapPort: string;
677
+ imapTlsPort: string;
678
+ useTlsForImap: boolean;
679
+ };
680
+ }>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ data: {
683
+ id: string;
684
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
685
+ address: string;
686
+ name: string;
687
+ deletedAt: Date | null;
688
+ created_at: string;
689
+ updated_at: string;
690
+ tenant_id: string;
691
+ accountId: string;
692
+ mailServerId: string;
693
+ mailServer: {
694
+ id: string;
695
+ name: string;
696
+ deletedAt: string | null;
697
+ created_at: string;
698
+ updated_at: string;
699
+ tenant_id: string;
700
+ smtpHost: string;
701
+ smtpPort: string;
702
+ smtpTlsPort: string;
703
+ useTlsForSmtp: boolean;
704
+ imapHost: string;
705
+ imapPort: string;
706
+ imapTlsPort: string;
707
+ useTlsForImap: boolean;
708
+ };
709
+ };
710
+ requestId: string;
711
+ }, {
712
+ data: {
713
+ id: string;
714
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
715
+ address: string;
716
+ name: string;
717
+ deletedAt: Date | null;
718
+ created_at: string;
719
+ updated_at: string;
720
+ tenant_id: string;
721
+ accountId: string;
722
+ mailServerId: string;
723
+ mailServer: {
724
+ id: string;
725
+ name: string;
726
+ deletedAt: string | null;
727
+ created_at: string;
728
+ updated_at: string;
729
+ tenant_id: string;
730
+ smtpHost: string;
731
+ smtpPort: string;
732
+ smtpTlsPort: string;
733
+ useTlsForSmtp: boolean;
734
+ imapHost: string;
735
+ imapPort: string;
736
+ imapTlsPort: string;
737
+ useTlsForImap: boolean;
738
+ };
739
+ };
740
+ requestId: string;
741
+ }>;
742
+ };
743
+ path: "mail/account/:id";
744
+ headers: z.ZodObject<{
745
+ 'x-tenant': z.ZodString;
746
+ authorization: z.ZodString;
747
+ }, "strip", z.ZodTypeAny, {
748
+ 'x-tenant': string;
749
+ authorization: string;
750
+ }, {
751
+ 'x-tenant': string;
752
+ authorization: string;
753
+ }>;
754
+ };
755
+ getAll: {
756
+ summary: "Get al accounts";
757
+ method: "GET";
758
+ responses: {
759
+ 401: z.ZodObject<{
760
+ message: z.ZodString;
761
+ error: z.ZodAny;
762
+ }, "strip", z.ZodTypeAny, {
763
+ message: string;
764
+ error?: any;
765
+ }, {
766
+ message: string;
767
+ error?: any;
768
+ }>;
769
+ 404: z.ZodObject<{
770
+ message: z.ZodString;
771
+ error: z.ZodAny;
772
+ }, "strip", z.ZodTypeAny, {
773
+ message: string;
774
+ error?: any;
775
+ }, {
776
+ message: string;
777
+ error?: any;
778
+ }>;
779
+ 422: z.ZodObject<{
780
+ message: z.ZodString;
781
+ error: z.ZodAny;
782
+ }, "strip", z.ZodTypeAny, {
783
+ message: string;
784
+ error?: any;
785
+ }, {
786
+ message: string;
787
+ error?: any;
788
+ }>;
789
+ 200: z.ZodObject<{
790
+ requestId: z.ZodString;
791
+ data: z.ZodAny;
792
+ }, "strip", z.ZodTypeAny, {
793
+ requestId: string;
794
+ data?: any;
795
+ }, {
796
+ requestId: string;
797
+ data?: any;
798
+ }>;
799
+ };
800
+ path: "mail/account";
801
+ headers: z.ZodObject<{
802
+ 'x-tenant': z.ZodString;
803
+ authorization: z.ZodString;
804
+ }, "strip", z.ZodTypeAny, {
805
+ 'x-tenant': string;
806
+ authorization: string;
807
+ }, {
808
+ 'x-tenant': string;
809
+ authorization: string;
810
+ }>;
811
+ };
812
+ update: {
813
+ body: z.ZodObject<{
814
+ id: z.ZodOptional<z.ZodString>;
815
+ created_at: z.ZodOptional<z.ZodString>;
816
+ updated_at: z.ZodOptional<z.ZodString>;
817
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
818
+ tenant_id: z.ZodOptional<z.ZodString>;
819
+ name: z.ZodOptional<z.ZodString>;
820
+ address: z.ZodOptional<z.ZodString>;
821
+ accountId: z.ZodOptional<z.ZodString>;
822
+ mailServerId: z.ZodOptional<z.ZodString>;
823
+ mailServer: z.ZodOptional<z.ZodObject<{
824
+ id: z.ZodString;
825
+ created_at: z.ZodString;
826
+ updated_at: z.ZodString;
827
+ deletedAt: z.ZodNullable<z.ZodString>;
828
+ tenant_id: z.ZodString;
829
+ name: z.ZodString;
830
+ smtpHost: z.ZodString;
831
+ smtpPort: z.ZodString;
832
+ smtpTlsPort: z.ZodString;
833
+ useTlsForSmtp: z.ZodBoolean;
834
+ imapHost: z.ZodString;
835
+ imapPort: z.ZodString;
836
+ imapTlsPort: z.ZodString;
837
+ useTlsForImap: z.ZodBoolean;
838
+ }, "strip", z.ZodTypeAny, {
839
+ id: string;
840
+ name: string;
841
+ deletedAt: string | null;
842
+ created_at: string;
843
+ updated_at: string;
844
+ tenant_id: string;
845
+ smtpHost: string;
846
+ smtpPort: string;
847
+ smtpTlsPort: string;
848
+ useTlsForSmtp: boolean;
849
+ imapHost: string;
850
+ imapPort: string;
851
+ imapTlsPort: string;
852
+ useTlsForImap: boolean;
853
+ }, {
854
+ id: string;
855
+ name: string;
856
+ deletedAt: string | null;
857
+ created_at: string;
858
+ updated_at: string;
859
+ tenant_id: string;
860
+ smtpHost: string;
861
+ smtpPort: string;
862
+ smtpTlsPort: string;
863
+ useTlsForSmtp: boolean;
864
+ imapHost: string;
865
+ imapPort: string;
866
+ imapTlsPort: string;
867
+ useTlsForImap: boolean;
868
+ }>>;
869
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ id?: string | undefined;
872
+ created_at?: string | undefined;
873
+ updated_at?: string | undefined;
874
+ deletedAt?: Date | null | undefined;
875
+ tenant_id?: string | undefined;
876
+ name?: string | undefined;
877
+ address?: string | undefined;
878
+ accountId?: string | undefined;
879
+ mailServerId?: string | undefined;
880
+ mailServer?: {
881
+ id: string;
882
+ name: string;
883
+ deletedAt: string | null;
884
+ created_at: string;
885
+ updated_at: string;
886
+ tenant_id: string;
887
+ smtpHost: string;
888
+ smtpPort: string;
889
+ smtpTlsPort: string;
890
+ useTlsForSmtp: boolean;
891
+ imapHost: string;
892
+ imapPort: string;
893
+ imapTlsPort: string;
894
+ useTlsForImap: boolean;
895
+ } | undefined;
896
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
897
+ }, {
898
+ id?: string | undefined;
899
+ created_at?: string | undefined;
900
+ updated_at?: string | undefined;
901
+ deletedAt?: Date | null | undefined;
902
+ tenant_id?: string | undefined;
903
+ name?: string | undefined;
904
+ address?: string | undefined;
905
+ accountId?: string | undefined;
906
+ mailServerId?: string | undefined;
907
+ mailServer?: {
908
+ id: string;
909
+ name: string;
910
+ deletedAt: string | null;
911
+ created_at: string;
912
+ updated_at: string;
913
+ tenant_id: string;
914
+ smtpHost: string;
915
+ smtpPort: string;
916
+ smtpTlsPort: string;
917
+ useTlsForSmtp: boolean;
918
+ imapHost: string;
919
+ imapPort: string;
920
+ imapTlsPort: string;
921
+ useTlsForImap: boolean;
922
+ } | undefined;
923
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
924
+ }>;
925
+ summary: "Update a account by id";
926
+ method: "PATCH";
927
+ pathParams: z.ZodObject<{
928
+ id: z.ZodString;
929
+ }, "strip", z.ZodTypeAny, {
930
+ id: string;
931
+ }, {
932
+ id: string;
933
+ }>;
934
+ responses: {
935
+ 401: z.ZodObject<{
936
+ message: z.ZodString;
937
+ error: z.ZodAny;
938
+ }, "strip", z.ZodTypeAny, {
939
+ message: string;
940
+ error?: any;
941
+ }, {
942
+ message: string;
943
+ error?: any;
944
+ }>;
945
+ 404: z.ZodObject<{
946
+ message: z.ZodString;
947
+ error: z.ZodAny;
948
+ }, "strip", z.ZodTypeAny, {
949
+ message: string;
950
+ error?: any;
951
+ }, {
952
+ message: string;
953
+ error?: any;
954
+ }>;
955
+ 422: z.ZodObject<{
956
+ message: z.ZodString;
957
+ error: z.ZodAny;
958
+ }, "strip", z.ZodTypeAny, {
959
+ message: string;
960
+ error?: any;
961
+ }, {
962
+ message: string;
963
+ error?: any;
964
+ }>;
965
+ 201: z.ZodObject<{
966
+ requestId: z.ZodString;
967
+ data: z.ZodObject<{
968
+ id: z.ZodString;
969
+ created_at: z.ZodString;
970
+ updated_at: z.ZodString;
971
+ deletedAt: z.ZodNullable<z.ZodDate>;
972
+ tenant_id: z.ZodString;
973
+ name: z.ZodString;
974
+ address: z.ZodString;
975
+ accountId: z.ZodString;
976
+ mailServerId: z.ZodString;
977
+ mailServer: z.ZodObject<{
978
+ id: z.ZodString;
979
+ created_at: z.ZodString;
980
+ updated_at: z.ZodString;
981
+ deletedAt: z.ZodNullable<z.ZodString>;
982
+ tenant_id: z.ZodString;
983
+ name: z.ZodString;
984
+ smtpHost: z.ZodString;
985
+ smtpPort: z.ZodString;
986
+ smtpTlsPort: z.ZodString;
987
+ useTlsForSmtp: z.ZodBoolean;
988
+ imapHost: z.ZodString;
989
+ imapPort: z.ZodString;
990
+ imapTlsPort: z.ZodString;
991
+ useTlsForImap: z.ZodBoolean;
992
+ }, "strip", z.ZodTypeAny, {
993
+ id: string;
994
+ name: string;
995
+ deletedAt: string | null;
996
+ created_at: string;
997
+ updated_at: string;
998
+ tenant_id: string;
999
+ smtpHost: string;
1000
+ smtpPort: string;
1001
+ smtpTlsPort: string;
1002
+ useTlsForSmtp: boolean;
1003
+ imapHost: string;
1004
+ imapPort: string;
1005
+ imapTlsPort: string;
1006
+ useTlsForImap: boolean;
1007
+ }, {
1008
+ id: string;
1009
+ name: string;
1010
+ deletedAt: string | null;
1011
+ created_at: string;
1012
+ updated_at: string;
1013
+ tenant_id: string;
1014
+ smtpHost: string;
1015
+ smtpPort: string;
1016
+ smtpTlsPort: string;
1017
+ useTlsForSmtp: boolean;
1018
+ imapHost: string;
1019
+ imapPort: string;
1020
+ imapTlsPort: string;
1021
+ useTlsForImap: boolean;
1022
+ }>;
1023
+ state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ id: string;
1026
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1027
+ address: string;
1028
+ name: string;
1029
+ deletedAt: Date | null;
1030
+ created_at: string;
1031
+ updated_at: string;
1032
+ tenant_id: string;
1033
+ accountId: string;
1034
+ mailServerId: string;
1035
+ mailServer: {
1036
+ id: string;
1037
+ name: string;
1038
+ deletedAt: string | null;
1039
+ created_at: string;
1040
+ updated_at: string;
1041
+ tenant_id: string;
1042
+ smtpHost: string;
1043
+ smtpPort: string;
1044
+ smtpTlsPort: string;
1045
+ useTlsForSmtp: boolean;
1046
+ imapHost: string;
1047
+ imapPort: string;
1048
+ imapTlsPort: string;
1049
+ useTlsForImap: boolean;
1050
+ };
1051
+ }, {
1052
+ id: string;
1053
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1054
+ address: string;
1055
+ name: string;
1056
+ deletedAt: Date | null;
1057
+ created_at: string;
1058
+ updated_at: string;
1059
+ tenant_id: string;
1060
+ accountId: string;
1061
+ mailServerId: string;
1062
+ mailServer: {
1063
+ id: string;
1064
+ name: string;
1065
+ deletedAt: string | null;
1066
+ created_at: string;
1067
+ updated_at: string;
1068
+ tenant_id: string;
1069
+ smtpHost: string;
1070
+ smtpPort: string;
1071
+ smtpTlsPort: string;
1072
+ useTlsForSmtp: boolean;
1073
+ imapHost: string;
1074
+ imapPort: string;
1075
+ imapTlsPort: string;
1076
+ useTlsForImap: boolean;
1077
+ };
1078
+ }>;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ data: {
1081
+ id: string;
1082
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1083
+ address: string;
1084
+ name: string;
1085
+ deletedAt: Date | null;
1086
+ created_at: string;
1087
+ updated_at: string;
1088
+ tenant_id: string;
1089
+ accountId: string;
1090
+ mailServerId: string;
1091
+ mailServer: {
1092
+ id: string;
1093
+ name: string;
1094
+ deletedAt: string | null;
1095
+ created_at: string;
1096
+ updated_at: string;
1097
+ tenant_id: string;
1098
+ smtpHost: string;
1099
+ smtpPort: string;
1100
+ smtpTlsPort: string;
1101
+ useTlsForSmtp: boolean;
1102
+ imapHost: string;
1103
+ imapPort: string;
1104
+ imapTlsPort: string;
1105
+ useTlsForImap: boolean;
1106
+ };
1107
+ };
1108
+ requestId: string;
1109
+ }, {
1110
+ data: {
1111
+ id: string;
1112
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1113
+ address: string;
1114
+ name: string;
1115
+ deletedAt: Date | null;
1116
+ created_at: string;
1117
+ updated_at: string;
1118
+ tenant_id: string;
1119
+ accountId: string;
1120
+ mailServerId: string;
1121
+ mailServer: {
1122
+ id: string;
1123
+ name: string;
1124
+ deletedAt: string | null;
1125
+ created_at: string;
1126
+ updated_at: string;
1127
+ tenant_id: string;
1128
+ smtpHost: string;
1129
+ smtpPort: string;
1130
+ smtpTlsPort: string;
1131
+ useTlsForSmtp: boolean;
1132
+ imapHost: string;
1133
+ imapPort: string;
1134
+ imapTlsPort: string;
1135
+ useTlsForImap: boolean;
1136
+ };
1137
+ };
1138
+ requestId: string;
1139
+ }>;
1140
+ };
1141
+ path: "mail/account/:id";
1142
+ headers: z.ZodObject<{
1143
+ 'x-tenant': z.ZodString;
1144
+ authorization: z.ZodString;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ 'x-tenant': string;
1147
+ authorization: string;
1148
+ }, {
1149
+ 'x-tenant': string;
1150
+ authorization: string;
1151
+ }>;
1152
+ };
1153
+ disconnect: {
1154
+ body: null;
1155
+ summary: "Disconnect an account";
1156
+ method: "PATCH";
1157
+ pathParams: z.ZodObject<{
1158
+ id: z.ZodString;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ id: string;
1161
+ }, {
1162
+ id: string;
1163
+ }>;
1164
+ responses: {
1165
+ 401: z.ZodObject<{
1166
+ message: z.ZodString;
1167
+ error: z.ZodAny;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ message: string;
1170
+ error?: any;
1171
+ }, {
1172
+ message: string;
1173
+ error?: any;
1174
+ }>;
1175
+ 404: z.ZodObject<{
1176
+ message: z.ZodString;
1177
+ error: z.ZodAny;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ message: string;
1180
+ error?: any;
1181
+ }, {
1182
+ message: string;
1183
+ error?: any;
1184
+ }>;
1185
+ 422: z.ZodObject<{
1186
+ message: z.ZodString;
1187
+ error: z.ZodAny;
1188
+ }, "strip", z.ZodTypeAny, {
1189
+ message: string;
1190
+ error?: any;
1191
+ }, {
1192
+ message: string;
1193
+ error?: any;
1194
+ }>;
1195
+ 201: z.ZodObject<{
1196
+ requestId: z.ZodString;
1197
+ data: z.ZodObject<{
1198
+ id: z.ZodString;
1199
+ created_at: z.ZodString;
1200
+ updated_at: z.ZodString;
1201
+ deletedAt: z.ZodNullable<z.ZodDate>;
1202
+ tenant_id: z.ZodString;
1203
+ name: z.ZodString;
1204
+ address: z.ZodString;
1205
+ accountId: z.ZodString;
1206
+ mailServerId: z.ZodString;
1207
+ mailServer: z.ZodObject<{
1208
+ id: z.ZodString;
1209
+ created_at: z.ZodString;
1210
+ updated_at: z.ZodString;
1211
+ deletedAt: z.ZodNullable<z.ZodString>;
1212
+ tenant_id: z.ZodString;
1213
+ name: z.ZodString;
1214
+ smtpHost: z.ZodString;
1215
+ smtpPort: z.ZodString;
1216
+ smtpTlsPort: z.ZodString;
1217
+ useTlsForSmtp: z.ZodBoolean;
1218
+ imapHost: z.ZodString;
1219
+ imapPort: z.ZodString;
1220
+ imapTlsPort: z.ZodString;
1221
+ useTlsForImap: z.ZodBoolean;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ id: string;
1224
+ name: string;
1225
+ deletedAt: string | null;
1226
+ created_at: string;
1227
+ updated_at: string;
1228
+ tenant_id: string;
1229
+ smtpHost: string;
1230
+ smtpPort: string;
1231
+ smtpTlsPort: string;
1232
+ useTlsForSmtp: boolean;
1233
+ imapHost: string;
1234
+ imapPort: string;
1235
+ imapTlsPort: string;
1236
+ useTlsForImap: boolean;
1237
+ }, {
1238
+ id: string;
1239
+ name: string;
1240
+ deletedAt: string | null;
1241
+ created_at: string;
1242
+ updated_at: string;
1243
+ tenant_id: string;
1244
+ smtpHost: string;
1245
+ smtpPort: string;
1246
+ smtpTlsPort: string;
1247
+ useTlsForSmtp: boolean;
1248
+ imapHost: string;
1249
+ imapPort: string;
1250
+ imapTlsPort: string;
1251
+ useTlsForImap: boolean;
1252
+ }>;
1253
+ state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ id: string;
1256
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1257
+ address: string;
1258
+ name: string;
1259
+ deletedAt: Date | null;
1260
+ created_at: string;
1261
+ updated_at: string;
1262
+ tenant_id: string;
1263
+ accountId: string;
1264
+ mailServerId: string;
1265
+ mailServer: {
1266
+ id: string;
1267
+ name: string;
1268
+ deletedAt: string | null;
1269
+ created_at: string;
1270
+ updated_at: string;
1271
+ tenant_id: string;
1272
+ smtpHost: string;
1273
+ smtpPort: string;
1274
+ smtpTlsPort: string;
1275
+ useTlsForSmtp: boolean;
1276
+ imapHost: string;
1277
+ imapPort: string;
1278
+ imapTlsPort: string;
1279
+ useTlsForImap: boolean;
1280
+ };
1281
+ }, {
1282
+ id: string;
1283
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1284
+ address: string;
1285
+ name: string;
1286
+ deletedAt: Date | null;
1287
+ created_at: string;
1288
+ updated_at: string;
1289
+ tenant_id: string;
1290
+ accountId: string;
1291
+ mailServerId: string;
1292
+ mailServer: {
1293
+ id: string;
1294
+ name: string;
1295
+ deletedAt: string | null;
1296
+ created_at: string;
1297
+ updated_at: string;
1298
+ tenant_id: string;
1299
+ smtpHost: string;
1300
+ smtpPort: string;
1301
+ smtpTlsPort: string;
1302
+ useTlsForSmtp: boolean;
1303
+ imapHost: string;
1304
+ imapPort: string;
1305
+ imapTlsPort: string;
1306
+ useTlsForImap: boolean;
1307
+ };
1308
+ }>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ data: {
1311
+ id: string;
1312
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1313
+ address: string;
1314
+ name: string;
1315
+ deletedAt: Date | null;
1316
+ created_at: string;
1317
+ updated_at: string;
1318
+ tenant_id: string;
1319
+ accountId: string;
1320
+ mailServerId: string;
1321
+ mailServer: {
1322
+ id: string;
1323
+ name: string;
1324
+ deletedAt: string | null;
1325
+ created_at: string;
1326
+ updated_at: string;
1327
+ tenant_id: string;
1328
+ smtpHost: string;
1329
+ smtpPort: string;
1330
+ smtpTlsPort: string;
1331
+ useTlsForSmtp: boolean;
1332
+ imapHost: string;
1333
+ imapPort: string;
1334
+ imapTlsPort: string;
1335
+ useTlsForImap: boolean;
1336
+ };
1337
+ };
1338
+ requestId: string;
1339
+ }, {
1340
+ data: {
1341
+ id: string;
1342
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1343
+ address: string;
1344
+ name: string;
1345
+ deletedAt: Date | null;
1346
+ created_at: string;
1347
+ updated_at: string;
1348
+ tenant_id: string;
1349
+ accountId: string;
1350
+ mailServerId: string;
1351
+ mailServer: {
1352
+ id: string;
1353
+ name: string;
1354
+ deletedAt: string | null;
1355
+ created_at: string;
1356
+ updated_at: string;
1357
+ tenant_id: string;
1358
+ smtpHost: string;
1359
+ smtpPort: string;
1360
+ smtpTlsPort: string;
1361
+ useTlsForSmtp: boolean;
1362
+ imapHost: string;
1363
+ imapPort: string;
1364
+ imapTlsPort: string;
1365
+ useTlsForImap: boolean;
1366
+ };
1367
+ };
1368
+ requestId: string;
1369
+ }>;
1370
+ };
1371
+ path: "mail/account/:id/disconnect";
1372
+ headers: z.ZodObject<{
1373
+ 'x-tenant': z.ZodString;
1374
+ authorization: z.ZodString;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ 'x-tenant': string;
1377
+ authorization: string;
1378
+ }, {
1379
+ 'x-tenant': string;
1380
+ authorization: string;
1381
+ }>;
1382
+ };
1383
+ reconnect: {
1384
+ body: null;
1385
+ summary: "Reconnect a disconncted account";
1386
+ method: "PATCH";
1387
+ pathParams: z.ZodObject<{
1388
+ id: z.ZodString;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ id: string;
1391
+ }, {
1392
+ id: string;
1393
+ }>;
1394
+ responses: {
1395
+ 401: z.ZodObject<{
1396
+ message: z.ZodString;
1397
+ error: z.ZodAny;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ message: string;
1400
+ error?: any;
1401
+ }, {
1402
+ message: string;
1403
+ error?: any;
1404
+ }>;
1405
+ 404: z.ZodObject<{
1406
+ message: z.ZodString;
1407
+ error: z.ZodAny;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ message: string;
1410
+ error?: any;
1411
+ }, {
1412
+ message: string;
1413
+ error?: any;
1414
+ }>;
1415
+ 422: z.ZodObject<{
1416
+ message: z.ZodString;
1417
+ error: z.ZodAny;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ message: string;
1420
+ error?: any;
1421
+ }, {
1422
+ message: string;
1423
+ error?: any;
1424
+ }>;
1425
+ 201: z.ZodObject<{
1426
+ requestId: z.ZodString;
1427
+ data: z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ created_at: z.ZodString;
1430
+ updated_at: z.ZodString;
1431
+ deletedAt: z.ZodNullable<z.ZodDate>;
1432
+ tenant_id: z.ZodString;
1433
+ name: z.ZodString;
1434
+ address: z.ZodString;
1435
+ accountId: z.ZodString;
1436
+ mailServerId: z.ZodString;
1437
+ mailServer: z.ZodObject<{
1438
+ id: z.ZodString;
1439
+ created_at: z.ZodString;
1440
+ updated_at: z.ZodString;
1441
+ deletedAt: z.ZodNullable<z.ZodString>;
1442
+ tenant_id: z.ZodString;
1443
+ name: z.ZodString;
1444
+ smtpHost: z.ZodString;
1445
+ smtpPort: z.ZodString;
1446
+ smtpTlsPort: z.ZodString;
1447
+ useTlsForSmtp: z.ZodBoolean;
1448
+ imapHost: z.ZodString;
1449
+ imapPort: z.ZodString;
1450
+ imapTlsPort: z.ZodString;
1451
+ useTlsForImap: z.ZodBoolean;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ id: string;
1454
+ name: string;
1455
+ deletedAt: string | null;
1456
+ created_at: string;
1457
+ updated_at: string;
1458
+ tenant_id: string;
1459
+ smtpHost: string;
1460
+ smtpPort: string;
1461
+ smtpTlsPort: string;
1462
+ useTlsForSmtp: boolean;
1463
+ imapHost: string;
1464
+ imapPort: string;
1465
+ imapTlsPort: string;
1466
+ useTlsForImap: boolean;
1467
+ }, {
1468
+ id: string;
1469
+ name: string;
1470
+ deletedAt: string | null;
1471
+ created_at: string;
1472
+ updated_at: string;
1473
+ tenant_id: string;
1474
+ smtpHost: string;
1475
+ smtpPort: string;
1476
+ smtpTlsPort: string;
1477
+ useTlsForSmtp: boolean;
1478
+ imapHost: string;
1479
+ imapPort: string;
1480
+ imapTlsPort: string;
1481
+ useTlsForImap: boolean;
1482
+ }>;
1483
+ state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ id: string;
1486
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1487
+ address: string;
1488
+ name: string;
1489
+ deletedAt: Date | null;
1490
+ created_at: string;
1491
+ updated_at: string;
1492
+ tenant_id: string;
1493
+ accountId: string;
1494
+ mailServerId: string;
1495
+ mailServer: {
1496
+ id: string;
1497
+ name: string;
1498
+ deletedAt: string | null;
1499
+ created_at: string;
1500
+ updated_at: string;
1501
+ tenant_id: string;
1502
+ smtpHost: string;
1503
+ smtpPort: string;
1504
+ smtpTlsPort: string;
1505
+ useTlsForSmtp: boolean;
1506
+ imapHost: string;
1507
+ imapPort: string;
1508
+ imapTlsPort: string;
1509
+ useTlsForImap: boolean;
1510
+ };
1511
+ }, {
1512
+ id: string;
1513
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1514
+ address: string;
1515
+ name: string;
1516
+ deletedAt: Date | null;
1517
+ created_at: string;
1518
+ updated_at: string;
1519
+ tenant_id: string;
1520
+ accountId: string;
1521
+ mailServerId: string;
1522
+ mailServer: {
1523
+ id: string;
1524
+ name: string;
1525
+ deletedAt: string | null;
1526
+ created_at: string;
1527
+ updated_at: string;
1528
+ tenant_id: string;
1529
+ smtpHost: string;
1530
+ smtpPort: string;
1531
+ smtpTlsPort: string;
1532
+ useTlsForSmtp: boolean;
1533
+ imapHost: string;
1534
+ imapPort: string;
1535
+ imapTlsPort: string;
1536
+ useTlsForImap: boolean;
1537
+ };
1538
+ }>;
1539
+ }, "strip", z.ZodTypeAny, {
1540
+ data: {
1541
+ id: string;
1542
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1543
+ address: string;
1544
+ name: string;
1545
+ deletedAt: Date | null;
1546
+ created_at: string;
1547
+ updated_at: string;
1548
+ tenant_id: string;
1549
+ accountId: string;
1550
+ mailServerId: string;
1551
+ mailServer: {
1552
+ id: string;
1553
+ name: string;
1554
+ deletedAt: string | null;
1555
+ created_at: string;
1556
+ updated_at: string;
1557
+ tenant_id: string;
1558
+ smtpHost: string;
1559
+ smtpPort: string;
1560
+ smtpTlsPort: string;
1561
+ useTlsForSmtp: boolean;
1562
+ imapHost: string;
1563
+ imapPort: string;
1564
+ imapTlsPort: string;
1565
+ useTlsForImap: boolean;
1566
+ };
1567
+ };
1568
+ requestId: string;
1569
+ }, {
1570
+ data: {
1571
+ id: string;
1572
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1573
+ address: string;
1574
+ name: string;
1575
+ deletedAt: Date | null;
1576
+ created_at: string;
1577
+ updated_at: string;
1578
+ tenant_id: string;
1579
+ accountId: string;
1580
+ mailServerId: string;
1581
+ mailServer: {
1582
+ id: string;
1583
+ name: string;
1584
+ deletedAt: string | null;
1585
+ created_at: string;
1586
+ updated_at: string;
1587
+ tenant_id: string;
1588
+ smtpHost: string;
1589
+ smtpPort: string;
1590
+ smtpTlsPort: string;
1591
+ useTlsForSmtp: boolean;
1592
+ imapHost: string;
1593
+ imapPort: string;
1594
+ imapTlsPort: string;
1595
+ useTlsForImap: boolean;
1596
+ };
1597
+ };
1598
+ requestId: string;
1599
+ }>;
1600
+ };
1601
+ path: "mail/account/:id/reconnect";
1602
+ headers: z.ZodObject<{
1603
+ 'x-tenant': z.ZodString;
1604
+ authorization: z.ZodString;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ 'x-tenant': string;
1607
+ authorization: string;
1608
+ }, {
1609
+ 'x-tenant': string;
1610
+ authorization: string;
1611
+ }>;
1612
+ };
1613
+ delete: {
1614
+ body: null;
1615
+ summary: "Delete an account by id";
1616
+ method: "DELETE";
1617
+ pathParams: z.ZodObject<{
1618
+ id: z.ZodString;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ id: string;
1621
+ }, {
1622
+ id: string;
1623
+ }>;
1624
+ responses: {
1625
+ 401: z.ZodObject<{
1626
+ message: z.ZodString;
1627
+ error: z.ZodAny;
1628
+ }, "strip", z.ZodTypeAny, {
1629
+ message: string;
1630
+ error?: any;
1631
+ }, {
1632
+ message: string;
1633
+ error?: any;
1634
+ }>;
1635
+ 404: z.ZodObject<{
1636
+ message: z.ZodString;
1637
+ error: z.ZodAny;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ message: string;
1640
+ error?: any;
1641
+ }, {
1642
+ message: string;
1643
+ error?: any;
1644
+ }>;
1645
+ 422: z.ZodObject<{
1646
+ message: z.ZodString;
1647
+ error: z.ZodAny;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ message: string;
1650
+ error?: any;
1651
+ }, {
1652
+ message: string;
1653
+ error?: any;
1654
+ }>;
1655
+ 200: z.ZodObject<{
1656
+ requestId: z.ZodString;
1657
+ message: z.ZodString;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ message: string;
1660
+ requestId: string;
1661
+ }, {
1662
+ message: string;
1663
+ requestId: string;
1664
+ }>;
1665
+ };
1666
+ path: "mail/account/:id";
1667
+ headers: z.ZodObject<{
1668
+ 'x-tenant': z.ZodString;
1669
+ authorization: z.ZodString;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ 'x-tenant': string;
1672
+ authorization: string;
1673
+ }, {
1674
+ 'x-tenant': string;
1675
+ authorization: string;
1676
+ }>;
1677
+ };
1678
+ };
1679
+ server: {
1680
+ create: {
1681
+ body: null;
1682
+ summary: "Register a new mail server";
1683
+ method: "POST";
1684
+ responses: {
1685
+ 401: z.ZodObject<{
1686
+ message: z.ZodString;
1687
+ error: z.ZodAny;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ message: string;
1690
+ error?: any;
1691
+ }, {
1692
+ message: string;
1693
+ error?: any;
1694
+ }>;
1695
+ 404: z.ZodObject<{
1696
+ message: z.ZodString;
1697
+ error: z.ZodAny;
1698
+ }, "strip", z.ZodTypeAny, {
1699
+ message: string;
1700
+ error?: any;
1701
+ }, {
1702
+ message: string;
1703
+ error?: any;
1704
+ }>;
1705
+ 422: z.ZodObject<{
1706
+ message: z.ZodString;
1707
+ error: z.ZodAny;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ message: string;
1710
+ error?: any;
1711
+ }, {
1712
+ message: string;
1713
+ error?: any;
1714
+ }>;
1715
+ 200: z.ZodObject<{
1716
+ requestId: z.ZodString;
1717
+ message: z.ZodString;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ message: string;
1720
+ requestId: string;
1721
+ }, {
1722
+ message: string;
1723
+ requestId: string;
1724
+ }>;
1725
+ };
1726
+ path: "/server/";
1727
+ };
1728
+ get: {
1729
+ summary: "Get a mail server by id";
1730
+ method: "GET";
1731
+ pathParams: z.ZodObject<{
1732
+ id: z.ZodString;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ id: string;
1735
+ }, {
1736
+ id: string;
1737
+ }>;
1738
+ responses: {
1739
+ 401: z.ZodObject<{
1740
+ message: z.ZodString;
1741
+ error: z.ZodAny;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ message: string;
1744
+ error?: any;
1745
+ }, {
1746
+ message: string;
1747
+ error?: any;
1748
+ }>;
1749
+ 404: z.ZodObject<{
1750
+ message: z.ZodString;
1751
+ error: z.ZodAny;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ message: string;
1754
+ error?: any;
1755
+ }, {
1756
+ message: string;
1757
+ error?: any;
1758
+ }>;
1759
+ 422: z.ZodObject<{
1760
+ message: z.ZodString;
1761
+ error: z.ZodAny;
1762
+ }, "strip", z.ZodTypeAny, {
1763
+ message: string;
1764
+ error?: any;
1765
+ }, {
1766
+ message: string;
1767
+ error?: any;
1768
+ }>;
1769
+ 200: z.ZodObject<{
1770
+ requestId: z.ZodString;
1771
+ message: z.ZodString;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ message: string;
1774
+ requestId: string;
1775
+ }, {
1776
+ message: string;
1777
+ requestId: string;
1778
+ }>;
1779
+ };
1780
+ path: "/server/:id";
1781
+ };
1782
+ update: {
1783
+ body: null;
1784
+ summary: "Update a mail server by id";
1785
+ method: "PATCH";
1786
+ pathParams: z.ZodObject<{
1787
+ id: z.ZodString;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ id: string;
1790
+ }, {
1791
+ id: string;
1792
+ }>;
1793
+ responses: {
1794
+ 401: z.ZodObject<{
1795
+ message: z.ZodString;
1796
+ error: z.ZodAny;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ message: string;
1799
+ error?: any;
1800
+ }, {
1801
+ message: string;
1802
+ error?: any;
1803
+ }>;
1804
+ 404: z.ZodObject<{
1805
+ message: z.ZodString;
1806
+ error: z.ZodAny;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ message: string;
1809
+ error?: any;
1810
+ }, {
1811
+ message: string;
1812
+ error?: any;
1813
+ }>;
1814
+ 422: z.ZodObject<{
1815
+ message: z.ZodString;
1816
+ error: z.ZodAny;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ message: string;
1819
+ error?: any;
1820
+ }, {
1821
+ message: string;
1822
+ error?: any;
1823
+ }>;
1824
+ 200: z.ZodObject<{
1825
+ requestId: z.ZodString;
1826
+ message: z.ZodString;
1827
+ }, "strip", z.ZodTypeAny, {
1828
+ message: string;
1829
+ requestId: string;
1830
+ }, {
1831
+ message: string;
1832
+ requestId: string;
1833
+ }>;
1834
+ };
1835
+ path: "/server/:id";
1836
+ };
1837
+ delete: {
1838
+ body: null;
1839
+ summary: "Delete a mail server by id";
1840
+ method: "PATCH";
1841
+ pathParams: z.ZodObject<{
1842
+ id: z.ZodString;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ id: string;
1845
+ }, {
1846
+ id: string;
1847
+ }>;
1848
+ responses: {
1849
+ 401: z.ZodObject<{
1850
+ message: z.ZodString;
1851
+ error: z.ZodAny;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ message: string;
1854
+ error?: any;
1855
+ }, {
1856
+ message: string;
1857
+ error?: any;
1858
+ }>;
1859
+ 404: z.ZodObject<{
1860
+ message: z.ZodString;
1861
+ error: z.ZodAny;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ message: string;
1864
+ error?: any;
1865
+ }, {
1866
+ message: string;
1867
+ error?: any;
1868
+ }>;
1869
+ 422: z.ZodObject<{
1870
+ message: z.ZodString;
1871
+ error: z.ZodAny;
1872
+ }, "strip", z.ZodTypeAny, {
1873
+ message: string;
1874
+ error?: any;
1875
+ }, {
1876
+ message: string;
1877
+ error?: any;
1878
+ }>;
1879
+ 200: z.ZodObject<{
1880
+ requestId: z.ZodString;
1881
+ message: z.ZodString;
1882
+ }, "strip", z.ZodTypeAny, {
1883
+ message: string;
1884
+ requestId: string;
1885
+ }, {
1886
+ message: string;
1887
+ requestId: string;
1888
+ }>;
1889
+ };
1890
+ path: "/server/:id";
1891
+ };
1892
+ };
1893
+ };
1894
+ //# sourceMappingURL=mail-contract.d.ts.map