@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,3196 @@
1
+ export declare const apiContract: {
2
+ auth: {
3
+ refreshToken: {
4
+ body: null;
5
+ summary: "Refresh token";
6
+ method: "POST";
7
+ responses: {
8
+ 200: import("zod").ZodObject<{
9
+ requestId: import("zod").ZodString;
10
+ accessToken: import("zod").ZodString;
11
+ refreshToken: import("zod").ZodString;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ requestId: string;
14
+ refreshToken: string;
15
+ accessToken: string;
16
+ }, {
17
+ requestId: string;
18
+ refreshToken: string;
19
+ accessToken: string;
20
+ }>;
21
+ 401: import("zod").ZodObject<{
22
+ message: import("zod").ZodString;
23
+ error: import("zod").ZodAny;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ message: string;
26
+ error?: any;
27
+ }, {
28
+ message: string;
29
+ error?: any;
30
+ }>;
31
+ 404: import("zod").ZodObject<{
32
+ message: import("zod").ZodString;
33
+ error: import("zod").ZodAny;
34
+ }, "strip", import("zod").ZodTypeAny, {
35
+ message: string;
36
+ error?: any;
37
+ }, {
38
+ message: string;
39
+ error?: any;
40
+ }>;
41
+ 422: import("zod").ZodObject<{
42
+ message: import("zod").ZodString;
43
+ error: import("zod").ZodAny;
44
+ }, "strip", import("zod").ZodTypeAny, {
45
+ message: string;
46
+ error?: any;
47
+ }, {
48
+ message: string;
49
+ error?: any;
50
+ }>;
51
+ };
52
+ path: "auth/refresh-token";
53
+ headers: import("zod").ZodObject<{
54
+ 'x-tenant': import("zod").ZodString;
55
+ authorization: import("zod").ZodString;
56
+ }, "strip", import("zod").ZodTypeAny, {
57
+ 'x-tenant': string;
58
+ authorization: string;
59
+ }, {
60
+ 'x-tenant': string;
61
+ authorization: string;
62
+ }>;
63
+ };
64
+ exchangeToken: {
65
+ body: null;
66
+ summary: "Exchange jwt token";
67
+ method: "POST";
68
+ responses: {
69
+ 200: import("zod").ZodObject<{
70
+ requestId: import("zod").ZodString;
71
+ accessToken: import("zod").ZodString;
72
+ refreshToken: import("zod").ZodString;
73
+ }, "strip", import("zod").ZodTypeAny, {
74
+ requestId: string;
75
+ refreshToken: string;
76
+ accessToken: string;
77
+ }, {
78
+ requestId: string;
79
+ refreshToken: string;
80
+ accessToken: string;
81
+ }>;
82
+ 401: import("zod").ZodObject<{
83
+ message: import("zod").ZodString;
84
+ error: import("zod").ZodAny;
85
+ }, "strip", import("zod").ZodTypeAny, {
86
+ message: string;
87
+ error?: any;
88
+ }, {
89
+ message: string;
90
+ error?: any;
91
+ }>;
92
+ 404: import("zod").ZodObject<{
93
+ message: import("zod").ZodString;
94
+ error: import("zod").ZodAny;
95
+ }, "strip", import("zod").ZodTypeAny, {
96
+ message: string;
97
+ error?: any;
98
+ }, {
99
+ message: string;
100
+ error?: any;
101
+ }>;
102
+ 422: import("zod").ZodObject<{
103
+ message: import("zod").ZodString;
104
+ error: import("zod").ZodAny;
105
+ }, "strip", import("zod").ZodTypeAny, {
106
+ message: string;
107
+ error?: any;
108
+ }, {
109
+ message: string;
110
+ error?: any;
111
+ }>;
112
+ };
113
+ path: "auth/exchange-token";
114
+ headers: import("zod").ZodObject<{
115
+ 'x-tenant': import("zod").ZodString;
116
+ authorization: import("zod").ZodString;
117
+ }, "strip", import("zod").ZodTypeAny, {
118
+ 'x-tenant': string;
119
+ authorization: string;
120
+ }, {
121
+ 'x-tenant': string;
122
+ authorization: string;
123
+ }>;
124
+ };
125
+ logout: {
126
+ body: null;
127
+ summary: "Logout";
128
+ method: "POST";
129
+ responses: {
130
+ 200: import("zod").ZodObject<{
131
+ requestId: import("zod").ZodString;
132
+ message: import("zod").ZodString;
133
+ }, "strip", import("zod").ZodTypeAny, {
134
+ message: string;
135
+ requestId: string;
136
+ }, {
137
+ message: string;
138
+ requestId: string;
139
+ }>;
140
+ 401: import("zod").ZodObject<{
141
+ message: import("zod").ZodString;
142
+ error: import("zod").ZodAny;
143
+ }, "strip", import("zod").ZodTypeAny, {
144
+ message: string;
145
+ error?: any;
146
+ }, {
147
+ message: string;
148
+ error?: any;
149
+ }>;
150
+ 404: import("zod").ZodObject<{
151
+ message: import("zod").ZodString;
152
+ error: import("zod").ZodAny;
153
+ }, "strip", import("zod").ZodTypeAny, {
154
+ message: string;
155
+ error?: any;
156
+ }, {
157
+ message: string;
158
+ error?: any;
159
+ }>;
160
+ 422: import("zod").ZodObject<{
161
+ message: import("zod").ZodString;
162
+ error: import("zod").ZodAny;
163
+ }, "strip", import("zod").ZodTypeAny, {
164
+ message: string;
165
+ error?: any;
166
+ }, {
167
+ message: string;
168
+ error?: any;
169
+ }>;
170
+ };
171
+ path: "auth/logout";
172
+ headers: import("zod").ZodObject<{
173
+ 'x-tenant': import("zod").ZodString;
174
+ authorization: import("zod").ZodString;
175
+ }, "strip", import("zod").ZodTypeAny, {
176
+ 'x-tenant': string;
177
+ authorization: string;
178
+ }, {
179
+ 'x-tenant': string;
180
+ authorization: string;
181
+ }>;
182
+ };
183
+ me: {
184
+ summary: "Get current user";
185
+ method: "GET";
186
+ responses: {
187
+ 200: import("zod").ZodObject<{
188
+ requestId: import("zod").ZodString;
189
+ user: import("zod").ZodObject<{
190
+ id: import("zod").ZodString;
191
+ createdAt: import("zod").ZodDate;
192
+ updatedAt: import("zod").ZodDate;
193
+ deletedAt: import("zod").ZodDate;
194
+ name: import("zod").ZodString;
195
+ email: import("zod").ZodString;
196
+ address: import("zod").ZodNullable<import("zod").ZodString>;
197
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
198
+ notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
199
+ roles: import("zod").ZodArray<import("zod").ZodObject<{
200
+ id: import("zod").ZodString;
201
+ createdAt: import("zod").ZodDate;
202
+ updatedAt: import("zod").ZodDate;
203
+ deletedAt: import("zod").ZodDate;
204
+ systemName: import("zod").ZodString;
205
+ displayName: import("zod").ZodString;
206
+ description: import("zod").ZodNullable<import("zod").ZodString>;
207
+ permissions: import("zod").ZodArray<import("zod").ZodObject<{
208
+ id: import("zod").ZodString;
209
+ createdAt: import("zod").ZodDate;
210
+ updatedAt: import("zod").ZodDate;
211
+ deletedAt: import("zod").ZodDate;
212
+ systemName: import("zod").ZodString;
213
+ displayName: import("zod").ZodString;
214
+ description: import("zod").ZodNullable<import("zod").ZodString>;
215
+ }, "strip", import("zod").ZodTypeAny, {
216
+ id: string;
217
+ description: string | null;
218
+ createdAt: Date;
219
+ updatedAt: Date;
220
+ deletedAt: Date;
221
+ systemName: string;
222
+ displayName: string;
223
+ }, {
224
+ id: string;
225
+ description: string | null;
226
+ createdAt: Date;
227
+ updatedAt: Date;
228
+ deletedAt: Date;
229
+ systemName: string;
230
+ displayName: string;
231
+ }>, "many">;
232
+ }, "strip", import("zod").ZodTypeAny, {
233
+ id: string;
234
+ description: string | null;
235
+ createdAt: Date;
236
+ updatedAt: Date;
237
+ deletedAt: Date;
238
+ systemName: string;
239
+ displayName: string;
240
+ permissions: {
241
+ id: string;
242
+ description: string | null;
243
+ createdAt: Date;
244
+ updatedAt: Date;
245
+ deletedAt: Date;
246
+ systemName: string;
247
+ displayName: string;
248
+ }[];
249
+ }, {
250
+ id: string;
251
+ description: string | null;
252
+ createdAt: Date;
253
+ updatedAt: Date;
254
+ deletedAt: Date;
255
+ systemName: string;
256
+ displayName: string;
257
+ permissions: {
258
+ id: string;
259
+ description: string | null;
260
+ createdAt: Date;
261
+ updatedAt: Date;
262
+ deletedAt: Date;
263
+ systemName: string;
264
+ displayName: string;
265
+ }[];
266
+ }>, "many">;
267
+ }, "strip", import("zod").ZodTypeAny, {
268
+ id: string;
269
+ address: string | null;
270
+ name: string;
271
+ email: string;
272
+ createdAt: Date;
273
+ updatedAt: Date;
274
+ deletedAt: Date;
275
+ phone: string | null;
276
+ notificationCount: number | null;
277
+ roles: {
278
+ id: string;
279
+ description: string | null;
280
+ createdAt: Date;
281
+ updatedAt: Date;
282
+ deletedAt: Date;
283
+ systemName: string;
284
+ displayName: string;
285
+ permissions: {
286
+ id: string;
287
+ description: string | null;
288
+ createdAt: Date;
289
+ updatedAt: Date;
290
+ deletedAt: Date;
291
+ systemName: string;
292
+ displayName: string;
293
+ }[];
294
+ }[];
295
+ }, {
296
+ id: string;
297
+ address: string | null;
298
+ name: string;
299
+ email: string;
300
+ createdAt: Date;
301
+ updatedAt: Date;
302
+ deletedAt: Date;
303
+ phone: string | null;
304
+ notificationCount: number | null;
305
+ roles: {
306
+ id: string;
307
+ description: string | null;
308
+ createdAt: Date;
309
+ updatedAt: Date;
310
+ deletedAt: Date;
311
+ systemName: string;
312
+ displayName: string;
313
+ permissions: {
314
+ id: string;
315
+ description: string | null;
316
+ createdAt: Date;
317
+ updatedAt: Date;
318
+ deletedAt: Date;
319
+ systemName: string;
320
+ displayName: string;
321
+ }[];
322
+ }[];
323
+ }>;
324
+ }, "strip", import("zod").ZodTypeAny, {
325
+ user: {
326
+ id: string;
327
+ address: string | null;
328
+ name: string;
329
+ email: string;
330
+ createdAt: Date;
331
+ updatedAt: Date;
332
+ deletedAt: Date;
333
+ phone: string | null;
334
+ notificationCount: number | null;
335
+ roles: {
336
+ id: string;
337
+ description: string | null;
338
+ createdAt: Date;
339
+ updatedAt: Date;
340
+ deletedAt: Date;
341
+ systemName: string;
342
+ displayName: string;
343
+ permissions: {
344
+ id: string;
345
+ description: string | null;
346
+ createdAt: Date;
347
+ updatedAt: Date;
348
+ deletedAt: Date;
349
+ systemName: string;
350
+ displayName: string;
351
+ }[];
352
+ }[];
353
+ };
354
+ requestId: string;
355
+ }, {
356
+ user: {
357
+ id: string;
358
+ address: string | null;
359
+ name: string;
360
+ email: string;
361
+ createdAt: Date;
362
+ updatedAt: Date;
363
+ deletedAt: Date;
364
+ phone: string | null;
365
+ notificationCount: number | null;
366
+ roles: {
367
+ id: string;
368
+ description: string | null;
369
+ createdAt: Date;
370
+ updatedAt: Date;
371
+ deletedAt: Date;
372
+ systemName: string;
373
+ displayName: string;
374
+ permissions: {
375
+ id: string;
376
+ description: string | null;
377
+ createdAt: Date;
378
+ updatedAt: Date;
379
+ deletedAt: Date;
380
+ systemName: string;
381
+ displayName: string;
382
+ }[];
383
+ }[];
384
+ };
385
+ requestId: string;
386
+ }>;
387
+ 401: import("zod").ZodObject<{
388
+ message: import("zod").ZodString;
389
+ error: import("zod").ZodAny;
390
+ }, "strip", import("zod").ZodTypeAny, {
391
+ message: string;
392
+ error?: any;
393
+ }, {
394
+ message: string;
395
+ error?: any;
396
+ }>;
397
+ 404: import("zod").ZodObject<{
398
+ message: import("zod").ZodString;
399
+ error: import("zod").ZodAny;
400
+ }, "strip", import("zod").ZodTypeAny, {
401
+ message: string;
402
+ error?: any;
403
+ }, {
404
+ message: string;
405
+ error?: any;
406
+ }>;
407
+ 422: import("zod").ZodObject<{
408
+ message: import("zod").ZodString;
409
+ error: import("zod").ZodAny;
410
+ }, "strip", import("zod").ZodTypeAny, {
411
+ message: string;
412
+ error?: any;
413
+ }, {
414
+ message: string;
415
+ error?: any;
416
+ }>;
417
+ };
418
+ path: "auth/me";
419
+ headers: import("zod").ZodObject<{
420
+ 'x-tenant': import("zod").ZodString;
421
+ authorization: import("zod").ZodString;
422
+ }, "strip", import("zod").ZodTypeAny, {
423
+ 'x-tenant': string;
424
+ authorization: string;
425
+ }, {
426
+ 'x-tenant': string;
427
+ authorization: string;
428
+ }>;
429
+ };
430
+ };
431
+ mail: {
432
+ room: {
433
+ create: {
434
+ body: null;
435
+ summary: "Create a new room for new incoming mail";
436
+ method: "POST";
437
+ responses: {
438
+ 401: import("zod").ZodObject<{
439
+ message: import("zod").ZodString;
440
+ error: import("zod").ZodAny;
441
+ }, "strip", import("zod").ZodTypeAny, {
442
+ message: string;
443
+ error?: any;
444
+ }, {
445
+ message: string;
446
+ error?: any;
447
+ }>;
448
+ 404: import("zod").ZodObject<{
449
+ message: import("zod").ZodString;
450
+ error: import("zod").ZodAny;
451
+ }, "strip", import("zod").ZodTypeAny, {
452
+ message: string;
453
+ error?: any;
454
+ }, {
455
+ message: string;
456
+ error?: any;
457
+ }>;
458
+ 422: import("zod").ZodObject<{
459
+ message: import("zod").ZodString;
460
+ error: import("zod").ZodAny;
461
+ }, "strip", import("zod").ZodTypeAny, {
462
+ message: string;
463
+ error?: any;
464
+ }, {
465
+ message: string;
466
+ error?: any;
467
+ }>;
468
+ 200: import("zod").ZodObject<{
469
+ requestId: import("zod").ZodString;
470
+ message: import("zod").ZodString;
471
+ }, "strip", import("zod").ZodTypeAny, {
472
+ message: string;
473
+ requestId: string;
474
+ }, {
475
+ message: string;
476
+ requestId: string;
477
+ }>;
478
+ };
479
+ path: "/room/";
480
+ };
481
+ get: {
482
+ summary: "Get a mail room by id";
483
+ method: "GET";
484
+ pathParams: import("zod").ZodObject<{
485
+ id: import("zod").ZodString;
486
+ }, "strip", import("zod").ZodTypeAny, {
487
+ id: string;
488
+ }, {
489
+ id: string;
490
+ }>;
491
+ responses: {
492
+ 401: import("zod").ZodObject<{
493
+ message: import("zod").ZodString;
494
+ error: import("zod").ZodAny;
495
+ }, "strip", import("zod").ZodTypeAny, {
496
+ message: string;
497
+ error?: any;
498
+ }, {
499
+ message: string;
500
+ error?: any;
501
+ }>;
502
+ 404: import("zod").ZodObject<{
503
+ message: import("zod").ZodString;
504
+ error: import("zod").ZodAny;
505
+ }, "strip", import("zod").ZodTypeAny, {
506
+ message: string;
507
+ error?: any;
508
+ }, {
509
+ message: string;
510
+ error?: any;
511
+ }>;
512
+ 422: import("zod").ZodObject<{
513
+ message: import("zod").ZodString;
514
+ error: import("zod").ZodAny;
515
+ }, "strip", import("zod").ZodTypeAny, {
516
+ message: string;
517
+ error?: any;
518
+ }, {
519
+ message: string;
520
+ error?: any;
521
+ }>;
522
+ 200: import("zod").ZodObject<{
523
+ requestId: import("zod").ZodString;
524
+ message: import("zod").ZodString;
525
+ }, "strip", import("zod").ZodTypeAny, {
526
+ message: string;
527
+ requestId: string;
528
+ }, {
529
+ message: string;
530
+ requestId: string;
531
+ }>;
532
+ };
533
+ path: "/room/:id";
534
+ };
535
+ update: {
536
+ body: null;
537
+ summary: "Update a mail room by id";
538
+ method: "PATCH";
539
+ pathParams: import("zod").ZodObject<{
540
+ id: import("zod").ZodString;
541
+ }, "strip", import("zod").ZodTypeAny, {
542
+ id: string;
543
+ }, {
544
+ id: string;
545
+ }>;
546
+ responses: {
547
+ 401: import("zod").ZodObject<{
548
+ message: import("zod").ZodString;
549
+ error: import("zod").ZodAny;
550
+ }, "strip", import("zod").ZodTypeAny, {
551
+ message: string;
552
+ error?: any;
553
+ }, {
554
+ message: string;
555
+ error?: any;
556
+ }>;
557
+ 404: import("zod").ZodObject<{
558
+ message: import("zod").ZodString;
559
+ error: import("zod").ZodAny;
560
+ }, "strip", import("zod").ZodTypeAny, {
561
+ message: string;
562
+ error?: any;
563
+ }, {
564
+ message: string;
565
+ error?: any;
566
+ }>;
567
+ 422: import("zod").ZodObject<{
568
+ message: import("zod").ZodString;
569
+ error: import("zod").ZodAny;
570
+ }, "strip", import("zod").ZodTypeAny, {
571
+ message: string;
572
+ error?: any;
573
+ }, {
574
+ message: string;
575
+ error?: any;
576
+ }>;
577
+ 200: import("zod").ZodObject<{
578
+ requestId: import("zod").ZodString;
579
+ message: import("zod").ZodString;
580
+ }, "strip", import("zod").ZodTypeAny, {
581
+ message: string;
582
+ requestId: string;
583
+ }, {
584
+ message: string;
585
+ requestId: string;
586
+ }>;
587
+ };
588
+ path: "/room/:id";
589
+ };
590
+ delete: {
591
+ body: null;
592
+ summary: "Delete a mail room by id";
593
+ method: "PATCH";
594
+ pathParams: import("zod").ZodObject<{
595
+ id: import("zod").ZodString;
596
+ }, "strip", import("zod").ZodTypeAny, {
597
+ id: string;
598
+ }, {
599
+ id: string;
600
+ }>;
601
+ responses: {
602
+ 401: import("zod").ZodObject<{
603
+ message: import("zod").ZodString;
604
+ error: import("zod").ZodAny;
605
+ }, "strip", import("zod").ZodTypeAny, {
606
+ message: string;
607
+ error?: any;
608
+ }, {
609
+ message: string;
610
+ error?: any;
611
+ }>;
612
+ 404: import("zod").ZodObject<{
613
+ message: import("zod").ZodString;
614
+ error: import("zod").ZodAny;
615
+ }, "strip", import("zod").ZodTypeAny, {
616
+ message: string;
617
+ error?: any;
618
+ }, {
619
+ message: string;
620
+ error?: any;
621
+ }>;
622
+ 422: import("zod").ZodObject<{
623
+ message: import("zod").ZodString;
624
+ error: import("zod").ZodAny;
625
+ }, "strip", import("zod").ZodTypeAny, {
626
+ message: string;
627
+ error?: any;
628
+ }, {
629
+ message: string;
630
+ error?: any;
631
+ }>;
632
+ 200: import("zod").ZodObject<{
633
+ requestId: import("zod").ZodString;
634
+ message: import("zod").ZodString;
635
+ }, "strip", import("zod").ZodTypeAny, {
636
+ message: string;
637
+ requestId: string;
638
+ }, {
639
+ message: string;
640
+ requestId: string;
641
+ }>;
642
+ };
643
+ path: "/room/:id";
644
+ };
645
+ };
646
+ message: {
647
+ create: {
648
+ body: null;
649
+ summary: "Add a new message into a room";
650
+ method: "POST";
651
+ responses: {
652
+ 401: import("zod").ZodObject<{
653
+ message: import("zod").ZodString;
654
+ error: import("zod").ZodAny;
655
+ }, "strip", import("zod").ZodTypeAny, {
656
+ message: string;
657
+ error?: any;
658
+ }, {
659
+ message: string;
660
+ error?: any;
661
+ }>;
662
+ 404: import("zod").ZodObject<{
663
+ message: import("zod").ZodString;
664
+ error: import("zod").ZodAny;
665
+ }, "strip", import("zod").ZodTypeAny, {
666
+ message: string;
667
+ error?: any;
668
+ }, {
669
+ message: string;
670
+ error?: any;
671
+ }>;
672
+ 422: import("zod").ZodObject<{
673
+ message: import("zod").ZodString;
674
+ error: import("zod").ZodAny;
675
+ }, "strip", import("zod").ZodTypeAny, {
676
+ message: string;
677
+ error?: any;
678
+ }, {
679
+ message: string;
680
+ error?: any;
681
+ }>;
682
+ 200: import("zod").ZodObject<{
683
+ requestId: import("zod").ZodString;
684
+ message: import("zod").ZodString;
685
+ }, "strip", import("zod").ZodTypeAny, {
686
+ message: string;
687
+ requestId: string;
688
+ }, {
689
+ message: string;
690
+ requestId: string;
691
+ }>;
692
+ };
693
+ path: "/message/";
694
+ };
695
+ get: {
696
+ summary: "Get a message by id";
697
+ method: "GET";
698
+ pathParams: import("zod").ZodObject<{
699
+ id: import("zod").ZodString;
700
+ }, "strip", import("zod").ZodTypeAny, {
701
+ id: string;
702
+ }, {
703
+ id: string;
704
+ }>;
705
+ responses: {
706
+ 401: import("zod").ZodObject<{
707
+ message: import("zod").ZodString;
708
+ error: import("zod").ZodAny;
709
+ }, "strip", import("zod").ZodTypeAny, {
710
+ message: string;
711
+ error?: any;
712
+ }, {
713
+ message: string;
714
+ error?: any;
715
+ }>;
716
+ 404: import("zod").ZodObject<{
717
+ message: import("zod").ZodString;
718
+ error: import("zod").ZodAny;
719
+ }, "strip", import("zod").ZodTypeAny, {
720
+ message: string;
721
+ error?: any;
722
+ }, {
723
+ message: string;
724
+ error?: any;
725
+ }>;
726
+ 422: import("zod").ZodObject<{
727
+ message: import("zod").ZodString;
728
+ error: import("zod").ZodAny;
729
+ }, "strip", import("zod").ZodTypeAny, {
730
+ message: string;
731
+ error?: any;
732
+ }, {
733
+ message: string;
734
+ error?: any;
735
+ }>;
736
+ 200: import("zod").ZodObject<{
737
+ requestId: import("zod").ZodString;
738
+ message: import("zod").ZodString;
739
+ }, "strip", import("zod").ZodTypeAny, {
740
+ message: string;
741
+ requestId: string;
742
+ }, {
743
+ message: string;
744
+ requestId: string;
745
+ }>;
746
+ };
747
+ path: "/message/:id";
748
+ };
749
+ update: {
750
+ body: null;
751
+ summary: "Update a message by id";
752
+ method: "PATCH";
753
+ pathParams: import("zod").ZodObject<{
754
+ id: import("zod").ZodString;
755
+ }, "strip", import("zod").ZodTypeAny, {
756
+ id: string;
757
+ }, {
758
+ id: string;
759
+ }>;
760
+ responses: {
761
+ 401: import("zod").ZodObject<{
762
+ message: import("zod").ZodString;
763
+ error: import("zod").ZodAny;
764
+ }, "strip", import("zod").ZodTypeAny, {
765
+ message: string;
766
+ error?: any;
767
+ }, {
768
+ message: string;
769
+ error?: any;
770
+ }>;
771
+ 404: import("zod").ZodObject<{
772
+ message: import("zod").ZodString;
773
+ error: import("zod").ZodAny;
774
+ }, "strip", import("zod").ZodTypeAny, {
775
+ message: string;
776
+ error?: any;
777
+ }, {
778
+ message: string;
779
+ error?: any;
780
+ }>;
781
+ 422: import("zod").ZodObject<{
782
+ message: import("zod").ZodString;
783
+ error: import("zod").ZodAny;
784
+ }, "strip", import("zod").ZodTypeAny, {
785
+ message: string;
786
+ error?: any;
787
+ }, {
788
+ message: string;
789
+ error?: any;
790
+ }>;
791
+ 200: import("zod").ZodObject<{
792
+ requestId: import("zod").ZodString;
793
+ message: import("zod").ZodString;
794
+ }, "strip", import("zod").ZodTypeAny, {
795
+ message: string;
796
+ requestId: string;
797
+ }, {
798
+ message: string;
799
+ requestId: string;
800
+ }>;
801
+ };
802
+ path: "/message/:id";
803
+ };
804
+ delete: {
805
+ body: null;
806
+ summary: "Delete a message by id";
807
+ method: "PATCH";
808
+ pathParams: import("zod").ZodObject<{
809
+ id: import("zod").ZodString;
810
+ }, "strip", import("zod").ZodTypeAny, {
811
+ id: string;
812
+ }, {
813
+ id: string;
814
+ }>;
815
+ responses: {
816
+ 401: import("zod").ZodObject<{
817
+ message: import("zod").ZodString;
818
+ error: import("zod").ZodAny;
819
+ }, "strip", import("zod").ZodTypeAny, {
820
+ message: string;
821
+ error?: any;
822
+ }, {
823
+ message: string;
824
+ error?: any;
825
+ }>;
826
+ 404: import("zod").ZodObject<{
827
+ message: import("zod").ZodString;
828
+ error: import("zod").ZodAny;
829
+ }, "strip", import("zod").ZodTypeAny, {
830
+ message: string;
831
+ error?: any;
832
+ }, {
833
+ message: string;
834
+ error?: any;
835
+ }>;
836
+ 422: import("zod").ZodObject<{
837
+ message: import("zod").ZodString;
838
+ error: import("zod").ZodAny;
839
+ }, "strip", import("zod").ZodTypeAny, {
840
+ message: string;
841
+ error?: any;
842
+ }, {
843
+ message: string;
844
+ error?: any;
845
+ }>;
846
+ 200: import("zod").ZodObject<{
847
+ requestId: import("zod").ZodString;
848
+ message: import("zod").ZodString;
849
+ }, "strip", import("zod").ZodTypeAny, {
850
+ message: string;
851
+ requestId: string;
852
+ }, {
853
+ message: string;
854
+ requestId: string;
855
+ }>;
856
+ };
857
+ path: "/message/:id";
858
+ };
859
+ };
860
+ account: {
861
+ create: {
862
+ body: import("zod").ZodObject<{
863
+ address: import("zod").ZodString;
864
+ name: import("zod").ZodString;
865
+ password: import("zod").ZodString;
866
+ mailServerId: import("zod").ZodString;
867
+ }, "strip", import("zod").ZodTypeAny, {
868
+ address: string;
869
+ name: string;
870
+ mailServerId: string;
871
+ password: string;
872
+ }, {
873
+ address: string;
874
+ name: string;
875
+ mailServerId: string;
876
+ password: string;
877
+ }>;
878
+ summary: "Register a new mail account";
879
+ method: "POST";
880
+ responses: {
881
+ 401: import("zod").ZodObject<{
882
+ message: import("zod").ZodString;
883
+ error: import("zod").ZodAny;
884
+ }, "strip", import("zod").ZodTypeAny, {
885
+ message: string;
886
+ error?: any;
887
+ }, {
888
+ message: string;
889
+ error?: any;
890
+ }>;
891
+ 404: import("zod").ZodObject<{
892
+ message: import("zod").ZodString;
893
+ error: import("zod").ZodAny;
894
+ }, "strip", import("zod").ZodTypeAny, {
895
+ message: string;
896
+ error?: any;
897
+ }, {
898
+ message: string;
899
+ error?: any;
900
+ }>;
901
+ 422: import("zod").ZodObject<{
902
+ message: import("zod").ZodString;
903
+ error: import("zod").ZodAny;
904
+ }, "strip", import("zod").ZodTypeAny, {
905
+ message: string;
906
+ error?: any;
907
+ }, {
908
+ message: string;
909
+ error?: any;
910
+ }>;
911
+ 201: import("zod").ZodObject<{
912
+ requestId: import("zod").ZodString;
913
+ message: import("zod").ZodString;
914
+ }, "strip", import("zod").ZodTypeAny, {
915
+ message: string;
916
+ requestId: string;
917
+ }, {
918
+ message: string;
919
+ requestId: string;
920
+ }>;
921
+ 400: import("zod").ZodObject<{
922
+ message: import("zod").ZodString;
923
+ }, "strip", import("zod").ZodTypeAny, {
924
+ message: string;
925
+ }, {
926
+ message: string;
927
+ }>;
928
+ 409: import("zod").ZodObject<{
929
+ message: import("zod").ZodString;
930
+ }, "strip", import("zod").ZodTypeAny, {
931
+ message: string;
932
+ }, {
933
+ message: string;
934
+ }>;
935
+ 500: import("zod").ZodObject<{
936
+ message: import("zod").ZodString;
937
+ }, "strip", import("zod").ZodTypeAny, {
938
+ message: string;
939
+ }, {
940
+ message: string;
941
+ }>;
942
+ };
943
+ path: "mail/account";
944
+ headers: import("zod").ZodObject<{
945
+ 'x-tenant': import("zod").ZodString;
946
+ authorization: import("zod").ZodString;
947
+ }, "strip", import("zod").ZodTypeAny, {
948
+ 'x-tenant': string;
949
+ authorization: string;
950
+ }, {
951
+ 'x-tenant': string;
952
+ authorization: string;
953
+ }>;
954
+ };
955
+ getById: {
956
+ summary: "Get a account by id";
957
+ method: "GET";
958
+ pathParams: import("zod").ZodObject<{
959
+ id: import("zod").ZodString;
960
+ }, "strip", import("zod").ZodTypeAny, {
961
+ id: string;
962
+ }, {
963
+ id: string;
964
+ }>;
965
+ responses: {
966
+ 401: import("zod").ZodObject<{
967
+ message: import("zod").ZodString;
968
+ error: import("zod").ZodAny;
969
+ }, "strip", import("zod").ZodTypeAny, {
970
+ message: string;
971
+ error?: any;
972
+ }, {
973
+ message: string;
974
+ error?: any;
975
+ }>;
976
+ 404: import("zod").ZodObject<{
977
+ message: import("zod").ZodString;
978
+ error: import("zod").ZodAny;
979
+ }, "strip", import("zod").ZodTypeAny, {
980
+ message: string;
981
+ error?: any;
982
+ }, {
983
+ message: string;
984
+ error?: any;
985
+ }>;
986
+ 422: import("zod").ZodObject<{
987
+ message: import("zod").ZodString;
988
+ error: import("zod").ZodAny;
989
+ }, "strip", import("zod").ZodTypeAny, {
990
+ message: string;
991
+ error?: any;
992
+ }, {
993
+ message: string;
994
+ error?: any;
995
+ }>;
996
+ 200: import("zod").ZodObject<{
997
+ requestId: import("zod").ZodString;
998
+ data: import("zod").ZodObject<{
999
+ id: import("zod").ZodString;
1000
+ created_at: import("zod").ZodString;
1001
+ updated_at: import("zod").ZodString;
1002
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1003
+ tenant_id: import("zod").ZodString;
1004
+ name: import("zod").ZodString;
1005
+ address: import("zod").ZodString;
1006
+ accountId: import("zod").ZodString;
1007
+ mailServerId: import("zod").ZodString;
1008
+ mailServer: import("zod").ZodObject<{
1009
+ id: import("zod").ZodString;
1010
+ created_at: import("zod").ZodString;
1011
+ updated_at: import("zod").ZodString;
1012
+ deletedAt: import("zod").ZodNullable<import("zod").ZodString>;
1013
+ tenant_id: import("zod").ZodString;
1014
+ name: import("zod").ZodString;
1015
+ smtpHost: import("zod").ZodString;
1016
+ smtpPort: import("zod").ZodString;
1017
+ smtpTlsPort: import("zod").ZodString;
1018
+ useTlsForSmtp: import("zod").ZodBoolean;
1019
+ imapHost: import("zod").ZodString;
1020
+ imapPort: import("zod").ZodString;
1021
+ imapTlsPort: import("zod").ZodString;
1022
+ useTlsForImap: import("zod").ZodBoolean;
1023
+ }, "strip", import("zod").ZodTypeAny, {
1024
+ id: string;
1025
+ name: string;
1026
+ deletedAt: string | null;
1027
+ created_at: string;
1028
+ updated_at: string;
1029
+ tenant_id: string;
1030
+ smtpHost: string;
1031
+ smtpPort: string;
1032
+ smtpTlsPort: string;
1033
+ useTlsForSmtp: boolean;
1034
+ imapHost: string;
1035
+ imapPort: string;
1036
+ imapTlsPort: string;
1037
+ useTlsForImap: boolean;
1038
+ }, {
1039
+ id: string;
1040
+ name: string;
1041
+ deletedAt: string | null;
1042
+ created_at: string;
1043
+ updated_at: string;
1044
+ tenant_id: string;
1045
+ smtpHost: string;
1046
+ smtpPort: string;
1047
+ smtpTlsPort: string;
1048
+ useTlsForSmtp: boolean;
1049
+ imapHost: string;
1050
+ imapPort: string;
1051
+ imapTlsPort: string;
1052
+ useTlsForImap: boolean;
1053
+ }>;
1054
+ state: 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">]>;
1055
+ }, "strip", import("zod").ZodTypeAny, {
1056
+ id: string;
1057
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1058
+ address: string;
1059
+ name: string;
1060
+ deletedAt: Date | null;
1061
+ created_at: string;
1062
+ updated_at: string;
1063
+ tenant_id: string;
1064
+ accountId: string;
1065
+ mailServerId: string;
1066
+ mailServer: {
1067
+ id: string;
1068
+ name: string;
1069
+ deletedAt: string | null;
1070
+ created_at: string;
1071
+ updated_at: string;
1072
+ tenant_id: string;
1073
+ smtpHost: string;
1074
+ smtpPort: string;
1075
+ smtpTlsPort: string;
1076
+ useTlsForSmtp: boolean;
1077
+ imapHost: string;
1078
+ imapPort: string;
1079
+ imapTlsPort: string;
1080
+ useTlsForImap: boolean;
1081
+ };
1082
+ }, {
1083
+ id: string;
1084
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1085
+ address: string;
1086
+ name: string;
1087
+ deletedAt: Date | null;
1088
+ created_at: string;
1089
+ updated_at: string;
1090
+ tenant_id: string;
1091
+ accountId: string;
1092
+ mailServerId: string;
1093
+ mailServer: {
1094
+ id: string;
1095
+ name: string;
1096
+ deletedAt: string | null;
1097
+ created_at: string;
1098
+ updated_at: string;
1099
+ tenant_id: string;
1100
+ smtpHost: string;
1101
+ smtpPort: string;
1102
+ smtpTlsPort: string;
1103
+ useTlsForSmtp: boolean;
1104
+ imapHost: string;
1105
+ imapPort: string;
1106
+ imapTlsPort: string;
1107
+ useTlsForImap: boolean;
1108
+ };
1109
+ }>;
1110
+ }, "strip", import("zod").ZodTypeAny, {
1111
+ data: {
1112
+ id: string;
1113
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1114
+ address: string;
1115
+ name: string;
1116
+ deletedAt: Date | null;
1117
+ created_at: string;
1118
+ updated_at: string;
1119
+ tenant_id: string;
1120
+ accountId: string;
1121
+ mailServerId: string;
1122
+ mailServer: {
1123
+ id: string;
1124
+ name: string;
1125
+ deletedAt: string | null;
1126
+ created_at: string;
1127
+ updated_at: string;
1128
+ tenant_id: string;
1129
+ smtpHost: string;
1130
+ smtpPort: string;
1131
+ smtpTlsPort: string;
1132
+ useTlsForSmtp: boolean;
1133
+ imapHost: string;
1134
+ imapPort: string;
1135
+ imapTlsPort: string;
1136
+ useTlsForImap: boolean;
1137
+ };
1138
+ };
1139
+ requestId: string;
1140
+ }, {
1141
+ data: {
1142
+ id: string;
1143
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1144
+ address: string;
1145
+ name: string;
1146
+ deletedAt: Date | null;
1147
+ created_at: string;
1148
+ updated_at: string;
1149
+ tenant_id: string;
1150
+ accountId: string;
1151
+ mailServerId: string;
1152
+ mailServer: {
1153
+ id: string;
1154
+ name: string;
1155
+ deletedAt: string | null;
1156
+ created_at: string;
1157
+ updated_at: string;
1158
+ tenant_id: string;
1159
+ smtpHost: string;
1160
+ smtpPort: string;
1161
+ smtpTlsPort: string;
1162
+ useTlsForSmtp: boolean;
1163
+ imapHost: string;
1164
+ imapPort: string;
1165
+ imapTlsPort: string;
1166
+ useTlsForImap: boolean;
1167
+ };
1168
+ };
1169
+ requestId: string;
1170
+ }>;
1171
+ };
1172
+ path: "mail/account/:id";
1173
+ headers: import("zod").ZodObject<{
1174
+ 'x-tenant': import("zod").ZodString;
1175
+ authorization: import("zod").ZodString;
1176
+ }, "strip", import("zod").ZodTypeAny, {
1177
+ 'x-tenant': string;
1178
+ authorization: string;
1179
+ }, {
1180
+ 'x-tenant': string;
1181
+ authorization: string;
1182
+ }>;
1183
+ };
1184
+ getAll: {
1185
+ summary: "Get al accounts";
1186
+ method: "GET";
1187
+ responses: {
1188
+ 401: import("zod").ZodObject<{
1189
+ message: import("zod").ZodString;
1190
+ error: import("zod").ZodAny;
1191
+ }, "strip", import("zod").ZodTypeAny, {
1192
+ message: string;
1193
+ error?: any;
1194
+ }, {
1195
+ message: string;
1196
+ error?: any;
1197
+ }>;
1198
+ 404: import("zod").ZodObject<{
1199
+ message: import("zod").ZodString;
1200
+ error: import("zod").ZodAny;
1201
+ }, "strip", import("zod").ZodTypeAny, {
1202
+ message: string;
1203
+ error?: any;
1204
+ }, {
1205
+ message: string;
1206
+ error?: any;
1207
+ }>;
1208
+ 422: import("zod").ZodObject<{
1209
+ message: import("zod").ZodString;
1210
+ error: import("zod").ZodAny;
1211
+ }, "strip", import("zod").ZodTypeAny, {
1212
+ message: string;
1213
+ error?: any;
1214
+ }, {
1215
+ message: string;
1216
+ error?: any;
1217
+ }>;
1218
+ 200: import("zod").ZodObject<{
1219
+ requestId: import("zod").ZodString;
1220
+ data: import("zod").ZodAny;
1221
+ }, "strip", import("zod").ZodTypeAny, {
1222
+ requestId: string;
1223
+ data?: any;
1224
+ }, {
1225
+ requestId: string;
1226
+ data?: any;
1227
+ }>;
1228
+ };
1229
+ path: "mail/account";
1230
+ headers: import("zod").ZodObject<{
1231
+ 'x-tenant': import("zod").ZodString;
1232
+ authorization: import("zod").ZodString;
1233
+ }, "strip", import("zod").ZodTypeAny, {
1234
+ 'x-tenant': string;
1235
+ authorization: string;
1236
+ }, {
1237
+ 'x-tenant': string;
1238
+ authorization: string;
1239
+ }>;
1240
+ };
1241
+ update: {
1242
+ body: import("zod").ZodObject<{
1243
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1244
+ created_at: import("zod").ZodOptional<import("zod").ZodString>;
1245
+ updated_at: import("zod").ZodOptional<import("zod").ZodString>;
1246
+ deletedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1247
+ tenant_id: import("zod").ZodOptional<import("zod").ZodString>;
1248
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1249
+ address: import("zod").ZodOptional<import("zod").ZodString>;
1250
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
1251
+ mailServerId: import("zod").ZodOptional<import("zod").ZodString>;
1252
+ mailServer: import("zod").ZodOptional<import("zod").ZodObject<{
1253
+ id: import("zod").ZodString;
1254
+ created_at: import("zod").ZodString;
1255
+ updated_at: import("zod").ZodString;
1256
+ deletedAt: import("zod").ZodNullable<import("zod").ZodString>;
1257
+ tenant_id: import("zod").ZodString;
1258
+ name: import("zod").ZodString;
1259
+ smtpHost: import("zod").ZodString;
1260
+ smtpPort: import("zod").ZodString;
1261
+ smtpTlsPort: import("zod").ZodString;
1262
+ useTlsForSmtp: import("zod").ZodBoolean;
1263
+ imapHost: import("zod").ZodString;
1264
+ imapPort: import("zod").ZodString;
1265
+ imapTlsPort: import("zod").ZodString;
1266
+ useTlsForImap: import("zod").ZodBoolean;
1267
+ }, "strip", import("zod").ZodTypeAny, {
1268
+ id: string;
1269
+ name: string;
1270
+ deletedAt: string | null;
1271
+ created_at: string;
1272
+ updated_at: string;
1273
+ tenant_id: string;
1274
+ smtpHost: string;
1275
+ smtpPort: string;
1276
+ smtpTlsPort: string;
1277
+ useTlsForSmtp: boolean;
1278
+ imapHost: string;
1279
+ imapPort: string;
1280
+ imapTlsPort: string;
1281
+ useTlsForImap: boolean;
1282
+ }, {
1283
+ id: string;
1284
+ name: string;
1285
+ deletedAt: string | null;
1286
+ created_at: string;
1287
+ updated_at: string;
1288
+ tenant_id: string;
1289
+ smtpHost: string;
1290
+ smtpPort: string;
1291
+ smtpTlsPort: string;
1292
+ useTlsForSmtp: boolean;
1293
+ imapHost: string;
1294
+ imapPort: string;
1295
+ imapTlsPort: string;
1296
+ useTlsForImap: boolean;
1297
+ }>>;
1298
+ 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">]>>;
1299
+ }, "strip", import("zod").ZodTypeAny, {
1300
+ id?: string | undefined;
1301
+ created_at?: string | undefined;
1302
+ updated_at?: string | undefined;
1303
+ deletedAt?: Date | null | undefined;
1304
+ tenant_id?: string | undefined;
1305
+ name?: string | undefined;
1306
+ address?: string | undefined;
1307
+ accountId?: string | undefined;
1308
+ mailServerId?: string | undefined;
1309
+ mailServer?: {
1310
+ id: string;
1311
+ name: string;
1312
+ deletedAt: string | null;
1313
+ created_at: string;
1314
+ updated_at: string;
1315
+ tenant_id: string;
1316
+ smtpHost: string;
1317
+ smtpPort: string;
1318
+ smtpTlsPort: string;
1319
+ useTlsForSmtp: boolean;
1320
+ imapHost: string;
1321
+ imapPort: string;
1322
+ imapTlsPort: string;
1323
+ useTlsForImap: boolean;
1324
+ } | undefined;
1325
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
1326
+ }, {
1327
+ id?: string | undefined;
1328
+ created_at?: string | undefined;
1329
+ updated_at?: string | undefined;
1330
+ deletedAt?: Date | null | undefined;
1331
+ tenant_id?: string | undefined;
1332
+ name?: string | undefined;
1333
+ address?: string | undefined;
1334
+ accountId?: string | undefined;
1335
+ mailServerId?: string | undefined;
1336
+ mailServer?: {
1337
+ id: string;
1338
+ name: string;
1339
+ deletedAt: string | null;
1340
+ created_at: string;
1341
+ updated_at: string;
1342
+ tenant_id: string;
1343
+ smtpHost: string;
1344
+ smtpPort: string;
1345
+ smtpTlsPort: string;
1346
+ useTlsForSmtp: boolean;
1347
+ imapHost: string;
1348
+ imapPort: string;
1349
+ imapTlsPort: string;
1350
+ useTlsForImap: boolean;
1351
+ } | undefined;
1352
+ state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
1353
+ }>;
1354
+ summary: "Update a account by id";
1355
+ method: "PATCH";
1356
+ pathParams: import("zod").ZodObject<{
1357
+ id: import("zod").ZodString;
1358
+ }, "strip", import("zod").ZodTypeAny, {
1359
+ id: string;
1360
+ }, {
1361
+ id: string;
1362
+ }>;
1363
+ responses: {
1364
+ 401: import("zod").ZodObject<{
1365
+ message: import("zod").ZodString;
1366
+ error: import("zod").ZodAny;
1367
+ }, "strip", import("zod").ZodTypeAny, {
1368
+ message: string;
1369
+ error?: any;
1370
+ }, {
1371
+ message: string;
1372
+ error?: any;
1373
+ }>;
1374
+ 404: import("zod").ZodObject<{
1375
+ message: import("zod").ZodString;
1376
+ error: import("zod").ZodAny;
1377
+ }, "strip", import("zod").ZodTypeAny, {
1378
+ message: string;
1379
+ error?: any;
1380
+ }, {
1381
+ message: string;
1382
+ error?: any;
1383
+ }>;
1384
+ 422: import("zod").ZodObject<{
1385
+ message: import("zod").ZodString;
1386
+ error: import("zod").ZodAny;
1387
+ }, "strip", import("zod").ZodTypeAny, {
1388
+ message: string;
1389
+ error?: any;
1390
+ }, {
1391
+ message: string;
1392
+ error?: any;
1393
+ }>;
1394
+ 201: import("zod").ZodObject<{
1395
+ requestId: import("zod").ZodString;
1396
+ data: import("zod").ZodObject<{
1397
+ id: import("zod").ZodString;
1398
+ created_at: import("zod").ZodString;
1399
+ updated_at: import("zod").ZodString;
1400
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1401
+ tenant_id: import("zod").ZodString;
1402
+ name: import("zod").ZodString;
1403
+ address: import("zod").ZodString;
1404
+ accountId: import("zod").ZodString;
1405
+ mailServerId: import("zod").ZodString;
1406
+ mailServer: import("zod").ZodObject<{
1407
+ id: import("zod").ZodString;
1408
+ created_at: import("zod").ZodString;
1409
+ updated_at: import("zod").ZodString;
1410
+ deletedAt: import("zod").ZodNullable<import("zod").ZodString>;
1411
+ tenant_id: import("zod").ZodString;
1412
+ name: import("zod").ZodString;
1413
+ smtpHost: import("zod").ZodString;
1414
+ smtpPort: import("zod").ZodString;
1415
+ smtpTlsPort: import("zod").ZodString;
1416
+ useTlsForSmtp: import("zod").ZodBoolean;
1417
+ imapHost: import("zod").ZodString;
1418
+ imapPort: import("zod").ZodString;
1419
+ imapTlsPort: import("zod").ZodString;
1420
+ useTlsForImap: import("zod").ZodBoolean;
1421
+ }, "strip", import("zod").ZodTypeAny, {
1422
+ id: string;
1423
+ name: string;
1424
+ deletedAt: string | null;
1425
+ created_at: string;
1426
+ updated_at: string;
1427
+ tenant_id: string;
1428
+ smtpHost: string;
1429
+ smtpPort: string;
1430
+ smtpTlsPort: string;
1431
+ useTlsForSmtp: boolean;
1432
+ imapHost: string;
1433
+ imapPort: string;
1434
+ imapTlsPort: string;
1435
+ useTlsForImap: boolean;
1436
+ }, {
1437
+ id: string;
1438
+ name: string;
1439
+ deletedAt: string | null;
1440
+ created_at: string;
1441
+ updated_at: string;
1442
+ tenant_id: string;
1443
+ smtpHost: string;
1444
+ smtpPort: string;
1445
+ smtpTlsPort: string;
1446
+ useTlsForSmtp: boolean;
1447
+ imapHost: string;
1448
+ imapPort: string;
1449
+ imapTlsPort: string;
1450
+ useTlsForImap: boolean;
1451
+ }>;
1452
+ state: 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">]>;
1453
+ }, "strip", import("zod").ZodTypeAny, {
1454
+ id: string;
1455
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1456
+ address: string;
1457
+ name: string;
1458
+ deletedAt: Date | null;
1459
+ created_at: string;
1460
+ updated_at: string;
1461
+ tenant_id: string;
1462
+ accountId: string;
1463
+ mailServerId: string;
1464
+ mailServer: {
1465
+ id: string;
1466
+ name: string;
1467
+ deletedAt: string | null;
1468
+ created_at: string;
1469
+ updated_at: string;
1470
+ tenant_id: string;
1471
+ smtpHost: string;
1472
+ smtpPort: string;
1473
+ smtpTlsPort: string;
1474
+ useTlsForSmtp: boolean;
1475
+ imapHost: string;
1476
+ imapPort: string;
1477
+ imapTlsPort: string;
1478
+ useTlsForImap: boolean;
1479
+ };
1480
+ }, {
1481
+ id: string;
1482
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1483
+ address: string;
1484
+ name: string;
1485
+ deletedAt: Date | null;
1486
+ created_at: string;
1487
+ updated_at: string;
1488
+ tenant_id: string;
1489
+ accountId: string;
1490
+ mailServerId: string;
1491
+ mailServer: {
1492
+ id: string;
1493
+ name: string;
1494
+ deletedAt: string | null;
1495
+ created_at: string;
1496
+ updated_at: string;
1497
+ tenant_id: string;
1498
+ smtpHost: string;
1499
+ smtpPort: string;
1500
+ smtpTlsPort: string;
1501
+ useTlsForSmtp: boolean;
1502
+ imapHost: string;
1503
+ imapPort: string;
1504
+ imapTlsPort: string;
1505
+ useTlsForImap: boolean;
1506
+ };
1507
+ }>;
1508
+ }, "strip", import("zod").ZodTypeAny, {
1509
+ data: {
1510
+ id: string;
1511
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1512
+ address: string;
1513
+ name: string;
1514
+ deletedAt: Date | null;
1515
+ created_at: string;
1516
+ updated_at: string;
1517
+ tenant_id: string;
1518
+ accountId: string;
1519
+ mailServerId: string;
1520
+ mailServer: {
1521
+ id: string;
1522
+ name: string;
1523
+ deletedAt: string | null;
1524
+ created_at: string;
1525
+ updated_at: string;
1526
+ tenant_id: string;
1527
+ smtpHost: string;
1528
+ smtpPort: string;
1529
+ smtpTlsPort: string;
1530
+ useTlsForSmtp: boolean;
1531
+ imapHost: string;
1532
+ imapPort: string;
1533
+ imapTlsPort: string;
1534
+ useTlsForImap: boolean;
1535
+ };
1536
+ };
1537
+ requestId: string;
1538
+ }, {
1539
+ data: {
1540
+ id: string;
1541
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1542
+ address: string;
1543
+ name: string;
1544
+ deletedAt: Date | null;
1545
+ created_at: string;
1546
+ updated_at: string;
1547
+ tenant_id: string;
1548
+ accountId: string;
1549
+ mailServerId: string;
1550
+ mailServer: {
1551
+ id: string;
1552
+ name: string;
1553
+ deletedAt: string | null;
1554
+ created_at: string;
1555
+ updated_at: string;
1556
+ tenant_id: string;
1557
+ smtpHost: string;
1558
+ smtpPort: string;
1559
+ smtpTlsPort: string;
1560
+ useTlsForSmtp: boolean;
1561
+ imapHost: string;
1562
+ imapPort: string;
1563
+ imapTlsPort: string;
1564
+ useTlsForImap: boolean;
1565
+ };
1566
+ };
1567
+ requestId: string;
1568
+ }>;
1569
+ };
1570
+ path: "mail/account/:id";
1571
+ headers: import("zod").ZodObject<{
1572
+ 'x-tenant': import("zod").ZodString;
1573
+ authorization: import("zod").ZodString;
1574
+ }, "strip", import("zod").ZodTypeAny, {
1575
+ 'x-tenant': string;
1576
+ authorization: string;
1577
+ }, {
1578
+ 'x-tenant': string;
1579
+ authorization: string;
1580
+ }>;
1581
+ };
1582
+ disconnect: {
1583
+ body: null;
1584
+ summary: "Disconnect an account";
1585
+ method: "PATCH";
1586
+ pathParams: import("zod").ZodObject<{
1587
+ id: import("zod").ZodString;
1588
+ }, "strip", import("zod").ZodTypeAny, {
1589
+ id: string;
1590
+ }, {
1591
+ id: string;
1592
+ }>;
1593
+ responses: {
1594
+ 401: import("zod").ZodObject<{
1595
+ message: import("zod").ZodString;
1596
+ error: import("zod").ZodAny;
1597
+ }, "strip", import("zod").ZodTypeAny, {
1598
+ message: string;
1599
+ error?: any;
1600
+ }, {
1601
+ message: string;
1602
+ error?: any;
1603
+ }>;
1604
+ 404: import("zod").ZodObject<{
1605
+ message: import("zod").ZodString;
1606
+ error: import("zod").ZodAny;
1607
+ }, "strip", import("zod").ZodTypeAny, {
1608
+ message: string;
1609
+ error?: any;
1610
+ }, {
1611
+ message: string;
1612
+ error?: any;
1613
+ }>;
1614
+ 422: import("zod").ZodObject<{
1615
+ message: import("zod").ZodString;
1616
+ error: import("zod").ZodAny;
1617
+ }, "strip", import("zod").ZodTypeAny, {
1618
+ message: string;
1619
+ error?: any;
1620
+ }, {
1621
+ message: string;
1622
+ error?: any;
1623
+ }>;
1624
+ 201: import("zod").ZodObject<{
1625
+ requestId: import("zod").ZodString;
1626
+ data: import("zod").ZodObject<{
1627
+ id: import("zod").ZodString;
1628
+ created_at: import("zod").ZodString;
1629
+ updated_at: import("zod").ZodString;
1630
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1631
+ tenant_id: import("zod").ZodString;
1632
+ name: import("zod").ZodString;
1633
+ address: import("zod").ZodString;
1634
+ accountId: import("zod").ZodString;
1635
+ mailServerId: import("zod").ZodString;
1636
+ mailServer: import("zod").ZodObject<{
1637
+ id: import("zod").ZodString;
1638
+ created_at: import("zod").ZodString;
1639
+ updated_at: import("zod").ZodString;
1640
+ deletedAt: import("zod").ZodNullable<import("zod").ZodString>;
1641
+ tenant_id: import("zod").ZodString;
1642
+ name: import("zod").ZodString;
1643
+ smtpHost: import("zod").ZodString;
1644
+ smtpPort: import("zod").ZodString;
1645
+ smtpTlsPort: import("zod").ZodString;
1646
+ useTlsForSmtp: import("zod").ZodBoolean;
1647
+ imapHost: import("zod").ZodString;
1648
+ imapPort: import("zod").ZodString;
1649
+ imapTlsPort: import("zod").ZodString;
1650
+ useTlsForImap: import("zod").ZodBoolean;
1651
+ }, "strip", import("zod").ZodTypeAny, {
1652
+ id: string;
1653
+ name: string;
1654
+ deletedAt: string | null;
1655
+ created_at: string;
1656
+ updated_at: string;
1657
+ tenant_id: string;
1658
+ smtpHost: string;
1659
+ smtpPort: string;
1660
+ smtpTlsPort: string;
1661
+ useTlsForSmtp: boolean;
1662
+ imapHost: string;
1663
+ imapPort: string;
1664
+ imapTlsPort: string;
1665
+ useTlsForImap: boolean;
1666
+ }, {
1667
+ id: string;
1668
+ name: string;
1669
+ deletedAt: string | null;
1670
+ created_at: string;
1671
+ updated_at: string;
1672
+ tenant_id: string;
1673
+ smtpHost: string;
1674
+ smtpPort: string;
1675
+ smtpTlsPort: string;
1676
+ useTlsForSmtp: boolean;
1677
+ imapHost: string;
1678
+ imapPort: string;
1679
+ imapTlsPort: string;
1680
+ useTlsForImap: boolean;
1681
+ }>;
1682
+ state: 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">]>;
1683
+ }, "strip", import("zod").ZodTypeAny, {
1684
+ id: string;
1685
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1686
+ address: string;
1687
+ name: string;
1688
+ deletedAt: Date | null;
1689
+ created_at: string;
1690
+ updated_at: string;
1691
+ tenant_id: string;
1692
+ accountId: string;
1693
+ mailServerId: string;
1694
+ mailServer: {
1695
+ id: string;
1696
+ name: string;
1697
+ deletedAt: string | null;
1698
+ created_at: string;
1699
+ updated_at: string;
1700
+ tenant_id: string;
1701
+ smtpHost: string;
1702
+ smtpPort: string;
1703
+ smtpTlsPort: string;
1704
+ useTlsForSmtp: boolean;
1705
+ imapHost: string;
1706
+ imapPort: string;
1707
+ imapTlsPort: string;
1708
+ useTlsForImap: boolean;
1709
+ };
1710
+ }, {
1711
+ id: string;
1712
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1713
+ address: string;
1714
+ name: string;
1715
+ deletedAt: Date | null;
1716
+ created_at: string;
1717
+ updated_at: string;
1718
+ tenant_id: string;
1719
+ accountId: string;
1720
+ mailServerId: string;
1721
+ mailServer: {
1722
+ id: string;
1723
+ name: string;
1724
+ deletedAt: string | null;
1725
+ created_at: string;
1726
+ updated_at: string;
1727
+ tenant_id: string;
1728
+ smtpHost: string;
1729
+ smtpPort: string;
1730
+ smtpTlsPort: string;
1731
+ useTlsForSmtp: boolean;
1732
+ imapHost: string;
1733
+ imapPort: string;
1734
+ imapTlsPort: string;
1735
+ useTlsForImap: boolean;
1736
+ };
1737
+ }>;
1738
+ }, "strip", import("zod").ZodTypeAny, {
1739
+ data: {
1740
+ id: string;
1741
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1742
+ address: string;
1743
+ name: string;
1744
+ deletedAt: Date | null;
1745
+ created_at: string;
1746
+ updated_at: string;
1747
+ tenant_id: string;
1748
+ accountId: string;
1749
+ mailServerId: string;
1750
+ mailServer: {
1751
+ id: string;
1752
+ name: string;
1753
+ deletedAt: string | null;
1754
+ created_at: string;
1755
+ updated_at: string;
1756
+ tenant_id: string;
1757
+ smtpHost: string;
1758
+ smtpPort: string;
1759
+ smtpTlsPort: string;
1760
+ useTlsForSmtp: boolean;
1761
+ imapHost: string;
1762
+ imapPort: string;
1763
+ imapTlsPort: string;
1764
+ useTlsForImap: boolean;
1765
+ };
1766
+ };
1767
+ requestId: string;
1768
+ }, {
1769
+ data: {
1770
+ id: string;
1771
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1772
+ address: string;
1773
+ name: string;
1774
+ deletedAt: Date | null;
1775
+ created_at: string;
1776
+ updated_at: string;
1777
+ tenant_id: string;
1778
+ accountId: string;
1779
+ mailServerId: string;
1780
+ mailServer: {
1781
+ id: string;
1782
+ name: string;
1783
+ deletedAt: string | null;
1784
+ created_at: string;
1785
+ updated_at: string;
1786
+ tenant_id: string;
1787
+ smtpHost: string;
1788
+ smtpPort: string;
1789
+ smtpTlsPort: string;
1790
+ useTlsForSmtp: boolean;
1791
+ imapHost: string;
1792
+ imapPort: string;
1793
+ imapTlsPort: string;
1794
+ useTlsForImap: boolean;
1795
+ };
1796
+ };
1797
+ requestId: string;
1798
+ }>;
1799
+ };
1800
+ path: "mail/account/:id/disconnect";
1801
+ headers: import("zod").ZodObject<{
1802
+ 'x-tenant': import("zod").ZodString;
1803
+ authorization: import("zod").ZodString;
1804
+ }, "strip", import("zod").ZodTypeAny, {
1805
+ 'x-tenant': string;
1806
+ authorization: string;
1807
+ }, {
1808
+ 'x-tenant': string;
1809
+ authorization: string;
1810
+ }>;
1811
+ };
1812
+ reconnect: {
1813
+ body: null;
1814
+ summary: "Reconnect a disconncted account";
1815
+ method: "PATCH";
1816
+ pathParams: import("zod").ZodObject<{
1817
+ id: import("zod").ZodString;
1818
+ }, "strip", import("zod").ZodTypeAny, {
1819
+ id: string;
1820
+ }, {
1821
+ id: string;
1822
+ }>;
1823
+ responses: {
1824
+ 401: import("zod").ZodObject<{
1825
+ message: import("zod").ZodString;
1826
+ error: import("zod").ZodAny;
1827
+ }, "strip", import("zod").ZodTypeAny, {
1828
+ message: string;
1829
+ error?: any;
1830
+ }, {
1831
+ message: string;
1832
+ error?: any;
1833
+ }>;
1834
+ 404: import("zod").ZodObject<{
1835
+ message: import("zod").ZodString;
1836
+ error: import("zod").ZodAny;
1837
+ }, "strip", import("zod").ZodTypeAny, {
1838
+ message: string;
1839
+ error?: any;
1840
+ }, {
1841
+ message: string;
1842
+ error?: any;
1843
+ }>;
1844
+ 422: import("zod").ZodObject<{
1845
+ message: import("zod").ZodString;
1846
+ error: import("zod").ZodAny;
1847
+ }, "strip", import("zod").ZodTypeAny, {
1848
+ message: string;
1849
+ error?: any;
1850
+ }, {
1851
+ message: string;
1852
+ error?: any;
1853
+ }>;
1854
+ 201: import("zod").ZodObject<{
1855
+ requestId: import("zod").ZodString;
1856
+ data: import("zod").ZodObject<{
1857
+ id: import("zod").ZodString;
1858
+ created_at: import("zod").ZodString;
1859
+ updated_at: import("zod").ZodString;
1860
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1861
+ tenant_id: import("zod").ZodString;
1862
+ name: import("zod").ZodString;
1863
+ address: import("zod").ZodString;
1864
+ accountId: import("zod").ZodString;
1865
+ mailServerId: import("zod").ZodString;
1866
+ mailServer: import("zod").ZodObject<{
1867
+ id: import("zod").ZodString;
1868
+ created_at: import("zod").ZodString;
1869
+ updated_at: import("zod").ZodString;
1870
+ deletedAt: import("zod").ZodNullable<import("zod").ZodString>;
1871
+ tenant_id: import("zod").ZodString;
1872
+ name: import("zod").ZodString;
1873
+ smtpHost: import("zod").ZodString;
1874
+ smtpPort: import("zod").ZodString;
1875
+ smtpTlsPort: import("zod").ZodString;
1876
+ useTlsForSmtp: import("zod").ZodBoolean;
1877
+ imapHost: import("zod").ZodString;
1878
+ imapPort: import("zod").ZodString;
1879
+ imapTlsPort: import("zod").ZodString;
1880
+ useTlsForImap: import("zod").ZodBoolean;
1881
+ }, "strip", import("zod").ZodTypeAny, {
1882
+ id: string;
1883
+ name: string;
1884
+ deletedAt: string | null;
1885
+ created_at: string;
1886
+ updated_at: string;
1887
+ tenant_id: string;
1888
+ smtpHost: string;
1889
+ smtpPort: string;
1890
+ smtpTlsPort: string;
1891
+ useTlsForSmtp: boolean;
1892
+ imapHost: string;
1893
+ imapPort: string;
1894
+ imapTlsPort: string;
1895
+ useTlsForImap: boolean;
1896
+ }, {
1897
+ id: string;
1898
+ name: string;
1899
+ deletedAt: string | null;
1900
+ created_at: string;
1901
+ updated_at: string;
1902
+ tenant_id: string;
1903
+ smtpHost: string;
1904
+ smtpPort: string;
1905
+ smtpTlsPort: string;
1906
+ useTlsForSmtp: boolean;
1907
+ imapHost: string;
1908
+ imapPort: string;
1909
+ imapTlsPort: string;
1910
+ useTlsForImap: boolean;
1911
+ }>;
1912
+ state: 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">]>;
1913
+ }, "strip", import("zod").ZodTypeAny, {
1914
+ id: string;
1915
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1916
+ address: string;
1917
+ name: string;
1918
+ deletedAt: Date | null;
1919
+ created_at: string;
1920
+ updated_at: string;
1921
+ tenant_id: string;
1922
+ accountId: string;
1923
+ mailServerId: string;
1924
+ mailServer: {
1925
+ id: string;
1926
+ name: string;
1927
+ deletedAt: string | null;
1928
+ created_at: string;
1929
+ updated_at: string;
1930
+ tenant_id: string;
1931
+ smtpHost: string;
1932
+ smtpPort: string;
1933
+ smtpTlsPort: string;
1934
+ useTlsForSmtp: boolean;
1935
+ imapHost: string;
1936
+ imapPort: string;
1937
+ imapTlsPort: string;
1938
+ useTlsForImap: boolean;
1939
+ };
1940
+ }, {
1941
+ id: string;
1942
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1943
+ address: string;
1944
+ name: string;
1945
+ deletedAt: Date | null;
1946
+ created_at: string;
1947
+ updated_at: string;
1948
+ tenant_id: string;
1949
+ accountId: string;
1950
+ mailServerId: string;
1951
+ mailServer: {
1952
+ id: string;
1953
+ name: string;
1954
+ deletedAt: string | null;
1955
+ created_at: string;
1956
+ updated_at: string;
1957
+ tenant_id: string;
1958
+ smtpHost: string;
1959
+ smtpPort: string;
1960
+ smtpTlsPort: string;
1961
+ useTlsForSmtp: boolean;
1962
+ imapHost: string;
1963
+ imapPort: string;
1964
+ imapTlsPort: string;
1965
+ useTlsForImap: boolean;
1966
+ };
1967
+ }>;
1968
+ }, "strip", import("zod").ZodTypeAny, {
1969
+ data: {
1970
+ id: string;
1971
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
1972
+ address: string;
1973
+ name: string;
1974
+ deletedAt: Date | null;
1975
+ created_at: string;
1976
+ updated_at: string;
1977
+ tenant_id: string;
1978
+ accountId: string;
1979
+ mailServerId: string;
1980
+ mailServer: {
1981
+ id: string;
1982
+ name: string;
1983
+ deletedAt: string | null;
1984
+ created_at: string;
1985
+ updated_at: string;
1986
+ tenant_id: string;
1987
+ smtpHost: string;
1988
+ smtpPort: string;
1989
+ smtpTlsPort: string;
1990
+ useTlsForSmtp: boolean;
1991
+ imapHost: string;
1992
+ imapPort: string;
1993
+ imapTlsPort: string;
1994
+ useTlsForImap: boolean;
1995
+ };
1996
+ };
1997
+ requestId: string;
1998
+ }, {
1999
+ data: {
2000
+ id: string;
2001
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
2002
+ address: string;
2003
+ name: string;
2004
+ deletedAt: Date | null;
2005
+ created_at: string;
2006
+ updated_at: string;
2007
+ tenant_id: string;
2008
+ accountId: string;
2009
+ mailServerId: string;
2010
+ mailServer: {
2011
+ id: string;
2012
+ name: string;
2013
+ deletedAt: string | null;
2014
+ created_at: string;
2015
+ updated_at: string;
2016
+ tenant_id: string;
2017
+ smtpHost: string;
2018
+ smtpPort: string;
2019
+ smtpTlsPort: string;
2020
+ useTlsForSmtp: boolean;
2021
+ imapHost: string;
2022
+ imapPort: string;
2023
+ imapTlsPort: string;
2024
+ useTlsForImap: boolean;
2025
+ };
2026
+ };
2027
+ requestId: string;
2028
+ }>;
2029
+ };
2030
+ path: "mail/account/:id/reconnect";
2031
+ headers: import("zod").ZodObject<{
2032
+ 'x-tenant': import("zod").ZodString;
2033
+ authorization: import("zod").ZodString;
2034
+ }, "strip", import("zod").ZodTypeAny, {
2035
+ 'x-tenant': string;
2036
+ authorization: string;
2037
+ }, {
2038
+ 'x-tenant': string;
2039
+ authorization: string;
2040
+ }>;
2041
+ };
2042
+ delete: {
2043
+ body: null;
2044
+ summary: "Delete an account by id";
2045
+ method: "DELETE";
2046
+ pathParams: import("zod").ZodObject<{
2047
+ id: import("zod").ZodString;
2048
+ }, "strip", import("zod").ZodTypeAny, {
2049
+ id: string;
2050
+ }, {
2051
+ id: string;
2052
+ }>;
2053
+ responses: {
2054
+ 401: import("zod").ZodObject<{
2055
+ message: import("zod").ZodString;
2056
+ error: import("zod").ZodAny;
2057
+ }, "strip", import("zod").ZodTypeAny, {
2058
+ message: string;
2059
+ error?: any;
2060
+ }, {
2061
+ message: string;
2062
+ error?: any;
2063
+ }>;
2064
+ 404: import("zod").ZodObject<{
2065
+ message: import("zod").ZodString;
2066
+ error: import("zod").ZodAny;
2067
+ }, "strip", import("zod").ZodTypeAny, {
2068
+ message: string;
2069
+ error?: any;
2070
+ }, {
2071
+ message: string;
2072
+ error?: any;
2073
+ }>;
2074
+ 422: import("zod").ZodObject<{
2075
+ message: import("zod").ZodString;
2076
+ error: import("zod").ZodAny;
2077
+ }, "strip", import("zod").ZodTypeAny, {
2078
+ message: string;
2079
+ error?: any;
2080
+ }, {
2081
+ message: string;
2082
+ error?: any;
2083
+ }>;
2084
+ 200: import("zod").ZodObject<{
2085
+ requestId: import("zod").ZodString;
2086
+ message: import("zod").ZodString;
2087
+ }, "strip", import("zod").ZodTypeAny, {
2088
+ message: string;
2089
+ requestId: string;
2090
+ }, {
2091
+ message: string;
2092
+ requestId: string;
2093
+ }>;
2094
+ };
2095
+ path: "mail/account/:id";
2096
+ headers: import("zod").ZodObject<{
2097
+ 'x-tenant': import("zod").ZodString;
2098
+ authorization: import("zod").ZodString;
2099
+ }, "strip", import("zod").ZodTypeAny, {
2100
+ 'x-tenant': string;
2101
+ authorization: string;
2102
+ }, {
2103
+ 'x-tenant': string;
2104
+ authorization: string;
2105
+ }>;
2106
+ };
2107
+ };
2108
+ server: {
2109
+ create: {
2110
+ body: null;
2111
+ summary: "Register a new mail server";
2112
+ method: "POST";
2113
+ responses: {
2114
+ 401: import("zod").ZodObject<{
2115
+ message: import("zod").ZodString;
2116
+ error: import("zod").ZodAny;
2117
+ }, "strip", import("zod").ZodTypeAny, {
2118
+ message: string;
2119
+ error?: any;
2120
+ }, {
2121
+ message: string;
2122
+ error?: any;
2123
+ }>;
2124
+ 404: import("zod").ZodObject<{
2125
+ message: import("zod").ZodString;
2126
+ error: import("zod").ZodAny;
2127
+ }, "strip", import("zod").ZodTypeAny, {
2128
+ message: string;
2129
+ error?: any;
2130
+ }, {
2131
+ message: string;
2132
+ error?: any;
2133
+ }>;
2134
+ 422: import("zod").ZodObject<{
2135
+ message: import("zod").ZodString;
2136
+ error: import("zod").ZodAny;
2137
+ }, "strip", import("zod").ZodTypeAny, {
2138
+ message: string;
2139
+ error?: any;
2140
+ }, {
2141
+ message: string;
2142
+ error?: any;
2143
+ }>;
2144
+ 200: import("zod").ZodObject<{
2145
+ requestId: import("zod").ZodString;
2146
+ message: import("zod").ZodString;
2147
+ }, "strip", import("zod").ZodTypeAny, {
2148
+ message: string;
2149
+ requestId: string;
2150
+ }, {
2151
+ message: string;
2152
+ requestId: string;
2153
+ }>;
2154
+ };
2155
+ path: "/server/";
2156
+ };
2157
+ get: {
2158
+ summary: "Get a mail server by id";
2159
+ method: "GET";
2160
+ pathParams: import("zod").ZodObject<{
2161
+ id: import("zod").ZodString;
2162
+ }, "strip", import("zod").ZodTypeAny, {
2163
+ id: string;
2164
+ }, {
2165
+ id: string;
2166
+ }>;
2167
+ responses: {
2168
+ 401: import("zod").ZodObject<{
2169
+ message: import("zod").ZodString;
2170
+ error: import("zod").ZodAny;
2171
+ }, "strip", import("zod").ZodTypeAny, {
2172
+ message: string;
2173
+ error?: any;
2174
+ }, {
2175
+ message: string;
2176
+ error?: any;
2177
+ }>;
2178
+ 404: import("zod").ZodObject<{
2179
+ message: import("zod").ZodString;
2180
+ error: import("zod").ZodAny;
2181
+ }, "strip", import("zod").ZodTypeAny, {
2182
+ message: string;
2183
+ error?: any;
2184
+ }, {
2185
+ message: string;
2186
+ error?: any;
2187
+ }>;
2188
+ 422: import("zod").ZodObject<{
2189
+ message: import("zod").ZodString;
2190
+ error: import("zod").ZodAny;
2191
+ }, "strip", import("zod").ZodTypeAny, {
2192
+ message: string;
2193
+ error?: any;
2194
+ }, {
2195
+ message: string;
2196
+ error?: any;
2197
+ }>;
2198
+ 200: import("zod").ZodObject<{
2199
+ requestId: import("zod").ZodString;
2200
+ message: import("zod").ZodString;
2201
+ }, "strip", import("zod").ZodTypeAny, {
2202
+ message: string;
2203
+ requestId: string;
2204
+ }, {
2205
+ message: string;
2206
+ requestId: string;
2207
+ }>;
2208
+ };
2209
+ path: "/server/:id";
2210
+ };
2211
+ update: {
2212
+ body: null;
2213
+ summary: "Update a mail server by id";
2214
+ method: "PATCH";
2215
+ pathParams: import("zod").ZodObject<{
2216
+ id: import("zod").ZodString;
2217
+ }, "strip", import("zod").ZodTypeAny, {
2218
+ id: string;
2219
+ }, {
2220
+ id: string;
2221
+ }>;
2222
+ responses: {
2223
+ 401: import("zod").ZodObject<{
2224
+ message: import("zod").ZodString;
2225
+ error: import("zod").ZodAny;
2226
+ }, "strip", import("zod").ZodTypeAny, {
2227
+ message: string;
2228
+ error?: any;
2229
+ }, {
2230
+ message: string;
2231
+ error?: any;
2232
+ }>;
2233
+ 404: import("zod").ZodObject<{
2234
+ message: import("zod").ZodString;
2235
+ error: import("zod").ZodAny;
2236
+ }, "strip", import("zod").ZodTypeAny, {
2237
+ message: string;
2238
+ error?: any;
2239
+ }, {
2240
+ message: string;
2241
+ error?: any;
2242
+ }>;
2243
+ 422: import("zod").ZodObject<{
2244
+ message: import("zod").ZodString;
2245
+ error: import("zod").ZodAny;
2246
+ }, "strip", import("zod").ZodTypeAny, {
2247
+ message: string;
2248
+ error?: any;
2249
+ }, {
2250
+ message: string;
2251
+ error?: any;
2252
+ }>;
2253
+ 200: import("zod").ZodObject<{
2254
+ requestId: import("zod").ZodString;
2255
+ message: import("zod").ZodString;
2256
+ }, "strip", import("zod").ZodTypeAny, {
2257
+ message: string;
2258
+ requestId: string;
2259
+ }, {
2260
+ message: string;
2261
+ requestId: string;
2262
+ }>;
2263
+ };
2264
+ path: "/server/:id";
2265
+ };
2266
+ delete: {
2267
+ body: null;
2268
+ summary: "Delete a mail server by id";
2269
+ method: "PATCH";
2270
+ pathParams: import("zod").ZodObject<{
2271
+ id: import("zod").ZodString;
2272
+ }, "strip", import("zod").ZodTypeAny, {
2273
+ id: string;
2274
+ }, {
2275
+ id: string;
2276
+ }>;
2277
+ responses: {
2278
+ 401: import("zod").ZodObject<{
2279
+ message: import("zod").ZodString;
2280
+ error: import("zod").ZodAny;
2281
+ }, "strip", import("zod").ZodTypeAny, {
2282
+ message: string;
2283
+ error?: any;
2284
+ }, {
2285
+ message: string;
2286
+ error?: any;
2287
+ }>;
2288
+ 404: import("zod").ZodObject<{
2289
+ message: import("zod").ZodString;
2290
+ error: import("zod").ZodAny;
2291
+ }, "strip", import("zod").ZodTypeAny, {
2292
+ message: string;
2293
+ error?: any;
2294
+ }, {
2295
+ message: string;
2296
+ error?: any;
2297
+ }>;
2298
+ 422: import("zod").ZodObject<{
2299
+ message: import("zod").ZodString;
2300
+ error: import("zod").ZodAny;
2301
+ }, "strip", import("zod").ZodTypeAny, {
2302
+ message: string;
2303
+ error?: any;
2304
+ }, {
2305
+ message: string;
2306
+ error?: any;
2307
+ }>;
2308
+ 200: import("zod").ZodObject<{
2309
+ requestId: import("zod").ZodString;
2310
+ message: import("zod").ZodString;
2311
+ }, "strip", import("zod").ZodTypeAny, {
2312
+ message: string;
2313
+ requestId: string;
2314
+ }, {
2315
+ message: string;
2316
+ requestId: string;
2317
+ }>;
2318
+ };
2319
+ path: "/server/:id";
2320
+ };
2321
+ };
2322
+ };
2323
+ cxLog: {
2324
+ findAll: {
2325
+ summary: "Get all cx-logs";
2326
+ method: "GET";
2327
+ query: import("zod").ZodObject<{
2328
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
2329
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
2330
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
2331
+ channelIds: import("zod").ZodOptional<import("zod").ZodString>;
2332
+ queueIds: import("zod").ZodOptional<import("zod").ZodString>;
2333
+ direction: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["inbound", "outbound"]>, "many">>;
2334
+ sentimentScore: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["positive", "negative"]>, "many">>;
2335
+ csatScore: import("zod").ZodOptional<import("zod").ZodString>;
2336
+ sla: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["meet", "unmeet"]>, "many">>;
2337
+ caseId: import("zod").ZodOptional<import("zod").ZodString>;
2338
+ name: import("zod").ZodOptional<import("zod").ZodString>;
2339
+ email: import("zod").ZodOptional<import("zod").ZodString>;
2340
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
2341
+ address: import("zod").ZodOptional<import("zod").ZodString>;
2342
+ company: import("zod").ZodOptional<import("zod").ZodString>;
2343
+ agentIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2344
+ channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2345
+ disposition: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2346
+ notes: import("zod").ZodOptional<import("zod").ZodString>;
2347
+ contactLabels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2348
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2349
+ selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
2350
+ customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2351
+ attributeId: import("zod").ZodString;
2352
+ value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
2353
+ type: import("zod").ZodString;
2354
+ }, "strip", import("zod").ZodTypeAny, {
2355
+ type: string;
2356
+ value: (string | string[]) & (string | string[] | undefined);
2357
+ attributeId: string;
2358
+ }, {
2359
+ type: string;
2360
+ value: (string | string[]) & (string | string[] | undefined);
2361
+ attributeId: string;
2362
+ }>, "many">>;
2363
+ }, "strip", import("zod").ZodTypeAny, {
2364
+ page: number;
2365
+ pageSize: number;
2366
+ contactId?: string | undefined;
2367
+ channelIds?: string | undefined;
2368
+ queueIds?: string | undefined;
2369
+ direction?: ("inbound" | "outbound")[] | undefined;
2370
+ sentimentScore?: ("positive" | "negative")[] | undefined;
2371
+ csatScore?: string | undefined;
2372
+ sla?: ("meet" | "unmeet")[] | undefined;
2373
+ caseId?: string | undefined;
2374
+ name?: string | undefined;
2375
+ email?: string | undefined;
2376
+ phone?: string | undefined;
2377
+ address?: string | undefined;
2378
+ company?: string | undefined;
2379
+ agentIds?: string[] | undefined;
2380
+ channel?: string[] | undefined;
2381
+ disposition?: string[] | undefined;
2382
+ notes?: string | undefined;
2383
+ contactLabels?: string[] | undefined;
2384
+ tags?: string[] | undefined;
2385
+ selectedDate?: string | undefined;
2386
+ customFields?: {
2387
+ type: string;
2388
+ value: (string | string[]) & (string | string[] | undefined);
2389
+ attributeId: string;
2390
+ }[] | undefined;
2391
+ }, {
2392
+ page?: number | undefined;
2393
+ pageSize?: number | undefined;
2394
+ contactId?: string | undefined;
2395
+ channelIds?: string | undefined;
2396
+ queueIds?: string | undefined;
2397
+ direction?: ("inbound" | "outbound")[] | undefined;
2398
+ sentimentScore?: ("positive" | "negative")[] | undefined;
2399
+ csatScore?: string | undefined;
2400
+ sla?: ("meet" | "unmeet")[] | undefined;
2401
+ caseId?: string | undefined;
2402
+ name?: string | undefined;
2403
+ email?: string | undefined;
2404
+ phone?: string | undefined;
2405
+ address?: string | undefined;
2406
+ company?: string | undefined;
2407
+ agentIds?: string[] | undefined;
2408
+ channel?: string[] | undefined;
2409
+ disposition?: string[] | undefined;
2410
+ notes?: string | undefined;
2411
+ contactLabels?: string[] | undefined;
2412
+ tags?: string[] | undefined;
2413
+ selectedDate?: string | undefined;
2414
+ customFields?: {
2415
+ type: string;
2416
+ value: (string | string[]) & (string | string[] | undefined);
2417
+ attributeId: string;
2418
+ }[] | undefined;
2419
+ }>;
2420
+ responses: {
2421
+ 200: import("zod").ZodObject<{
2422
+ requestId: import("zod").ZodString;
2423
+ total: import("zod").ZodNumber;
2424
+ page: import("zod").ZodNumber;
2425
+ pageSize: import("zod").ZodNumber;
2426
+ cxLogs: import("zod").ZodArray<import("zod").ZodObject<{
2427
+ id: import("zod").ZodString;
2428
+ createdAt: import("zod").ZodDate;
2429
+ updatedAt: import("zod").ZodDate;
2430
+ deletedAt: import("zod").ZodDate;
2431
+ caseId: import("zod").ZodNumber;
2432
+ entityId: import("zod").ZodString;
2433
+ entityName: import("zod").ZodString;
2434
+ contactId: import("zod").ZodNullable<import("zod").ZodString>;
2435
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
2436
+ queueId: import("zod").ZodNullable<import("zod").ZodString>;
2437
+ agentId: import("zod").ZodNullable<import("zod").ZodString>;
2438
+ direction: import("zod").ZodNullable<import("zod").ZodString>;
2439
+ startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
2440
+ handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2441
+ firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2442
+ disposition: import("zod").ZodNullable<import("zod").ZodString>;
2443
+ }, "strip", import("zod").ZodTypeAny, {
2444
+ id: string;
2445
+ channel: string | null;
2446
+ disposition: string | null;
2447
+ direction: string | null;
2448
+ createdAt: Date;
2449
+ updatedAt: Date;
2450
+ deletedAt: Date;
2451
+ caseId: number;
2452
+ entityId: string;
2453
+ entityName: string;
2454
+ contactId: string | null;
2455
+ queueId: string | null;
2456
+ agentId: string | null;
2457
+ startedDate: Date | null;
2458
+ handledTime: number | null;
2459
+ firstResponseTime: number | null;
2460
+ }, {
2461
+ id: string;
2462
+ channel: string | null;
2463
+ disposition: string | null;
2464
+ direction: string | null;
2465
+ createdAt: Date;
2466
+ updatedAt: Date;
2467
+ deletedAt: Date;
2468
+ caseId: number;
2469
+ entityId: string;
2470
+ entityName: string;
2471
+ contactId: string | null;
2472
+ queueId: string | null;
2473
+ agentId: string | null;
2474
+ startedDate: Date | null;
2475
+ handledTime: number | null;
2476
+ firstResponseTime: number | null;
2477
+ }>, "many">;
2478
+ }, "strip", import("zod").ZodTypeAny, {
2479
+ total: number;
2480
+ page: number;
2481
+ pageSize: number;
2482
+ requestId: string;
2483
+ cxLogs: {
2484
+ id: string;
2485
+ channel: string | null;
2486
+ disposition: string | null;
2487
+ direction: string | null;
2488
+ createdAt: Date;
2489
+ updatedAt: Date;
2490
+ deletedAt: Date;
2491
+ caseId: number;
2492
+ entityId: string;
2493
+ entityName: string;
2494
+ contactId: string | null;
2495
+ queueId: string | null;
2496
+ agentId: string | null;
2497
+ startedDate: Date | null;
2498
+ handledTime: number | null;
2499
+ firstResponseTime: number | null;
2500
+ }[];
2501
+ }, {
2502
+ total: number;
2503
+ page: number;
2504
+ pageSize: number;
2505
+ requestId: string;
2506
+ cxLogs: {
2507
+ id: string;
2508
+ channel: string | null;
2509
+ disposition: string | null;
2510
+ direction: string | null;
2511
+ createdAt: Date;
2512
+ updatedAt: Date;
2513
+ deletedAt: Date;
2514
+ caseId: number;
2515
+ entityId: string;
2516
+ entityName: string;
2517
+ contactId: string | null;
2518
+ queueId: string | null;
2519
+ agentId: string | null;
2520
+ startedDate: Date | null;
2521
+ handledTime: number | null;
2522
+ firstResponseTime: number | null;
2523
+ }[];
2524
+ }>;
2525
+ 401: import("zod").ZodObject<{
2526
+ message: import("zod").ZodString;
2527
+ error: import("zod").ZodAny;
2528
+ }, "strip", import("zod").ZodTypeAny, {
2529
+ message: string;
2530
+ error?: any;
2531
+ }, {
2532
+ message: string;
2533
+ error?: any;
2534
+ }>;
2535
+ };
2536
+ path: "/cx-logs";
2537
+ headers: import("zod").ZodObject<{
2538
+ 'x-tenant': import("zod").ZodString;
2539
+ authorization: import("zod").ZodString;
2540
+ }, "strip", import("zod").ZodTypeAny, {
2541
+ 'x-tenant': string;
2542
+ authorization: string;
2543
+ }, {
2544
+ 'x-tenant': string;
2545
+ authorization: string;
2546
+ }>;
2547
+ };
2548
+ };
2549
+ emailEngineWebhooks: {
2550
+ handleWebhooksEvents: {
2551
+ body: null;
2552
+ summary: "Handle email engine webhooks events such as authenticationSuccess, messageNew";
2553
+ method: "POST";
2554
+ responses: {
2555
+ 200: import("zod").ZodObject<{
2556
+ requestId: import("zod").ZodString;
2557
+ message: import("zod").ZodString;
2558
+ }, "strip", import("zod").ZodTypeAny, {
2559
+ message: string;
2560
+ requestId: string;
2561
+ }, {
2562
+ message: string;
2563
+ requestId: string;
2564
+ }>;
2565
+ };
2566
+ path: "/email_engine/webhooks";
2567
+ };
2568
+ };
2569
+ category: {
2570
+ createCategory: {
2571
+ body: import("zod").ZodObject<{
2572
+ value: import("zod").ZodString;
2573
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
2574
+ parentId: import("zod").ZodNullable<import("zod").ZodString>;
2575
+ }, "strip", import("zod").ZodTypeAny, {
2576
+ value: string;
2577
+ level: 2 | 1 | 3;
2578
+ parentId: string | null;
2579
+ }, {
2580
+ value: string;
2581
+ level: 2 | 1 | 3;
2582
+ parentId: string | null;
2583
+ }>;
2584
+ method: "POST";
2585
+ responses: {
2586
+ 201: import("zod").ZodObject<{
2587
+ requestId: import("zod").ZodString;
2588
+ category: import("zod").ZodObject<{
2589
+ id: import("zod").ZodString;
2590
+ value: import("zod").ZodString;
2591
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
2592
+ parentId: import("zod").ZodNullable<import("zod").ZodString>;
2593
+ childCategoryList: import("zod").ZodArray<import("zod").ZodObject<{
2594
+ id: import("zod").ZodString;
2595
+ value: import("zod").ZodString;
2596
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
2597
+ parentId: import("zod").ZodNullable<import("zod").ZodString>;
2598
+ childCategoryList: import("zod").ZodArray<import("zod").ZodObject<{
2599
+ id: import("zod").ZodString;
2600
+ value: import("zod").ZodString;
2601
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
2602
+ parentId: import("zod").ZodNullable<import("zod").ZodString>;
2603
+ childCategoryList: import("zod").ZodArray<import("zod").ZodAny, "many">;
2604
+ }, "strip", import("zod").ZodTypeAny, {
2605
+ id: string;
2606
+ value: string;
2607
+ level: 2 | 1 | 3;
2608
+ parentId: string | null;
2609
+ childCategoryList: any[];
2610
+ }, {
2611
+ id: string;
2612
+ value: string;
2613
+ level: 2 | 1 | 3;
2614
+ parentId: string | null;
2615
+ childCategoryList: any[];
2616
+ }>, "many">;
2617
+ }, "strip", import("zod").ZodTypeAny, {
2618
+ id: string;
2619
+ value: string;
2620
+ level: 2 | 1 | 3;
2621
+ parentId: string | null;
2622
+ childCategoryList: {
2623
+ id: string;
2624
+ value: string;
2625
+ level: 2 | 1 | 3;
2626
+ parentId: string | null;
2627
+ childCategoryList: any[];
2628
+ }[];
2629
+ }, {
2630
+ id: string;
2631
+ value: string;
2632
+ level: 2 | 1 | 3;
2633
+ parentId: string | null;
2634
+ childCategoryList: {
2635
+ id: string;
2636
+ value: string;
2637
+ level: 2 | 1 | 3;
2638
+ parentId: string | null;
2639
+ childCategoryList: any[];
2640
+ }[];
2641
+ }>, "many">;
2642
+ }, "strip", import("zod").ZodTypeAny, {
2643
+ id: string;
2644
+ value: string;
2645
+ level: 2 | 1 | 3;
2646
+ parentId: string | null;
2647
+ childCategoryList: {
2648
+ id: string;
2649
+ value: string;
2650
+ level: 2 | 1 | 3;
2651
+ parentId: string | null;
2652
+ childCategoryList: {
2653
+ id: string;
2654
+ value: string;
2655
+ level: 2 | 1 | 3;
2656
+ parentId: string | null;
2657
+ childCategoryList: any[];
2658
+ }[];
2659
+ }[];
2660
+ }, {
2661
+ id: string;
2662
+ value: string;
2663
+ level: 2 | 1 | 3;
2664
+ parentId: string | null;
2665
+ childCategoryList: {
2666
+ id: string;
2667
+ value: string;
2668
+ level: 2 | 1 | 3;
2669
+ parentId: string | null;
2670
+ childCategoryList: {
2671
+ id: string;
2672
+ value: string;
2673
+ level: 2 | 1 | 3;
2674
+ parentId: string | null;
2675
+ childCategoryList: any[];
2676
+ }[];
2677
+ }[];
2678
+ }>;
2679
+ }, "strip", import("zod").ZodTypeAny, {
2680
+ requestId: string;
2681
+ category: {
2682
+ id: string;
2683
+ value: string;
2684
+ level: 2 | 1 | 3;
2685
+ parentId: string | null;
2686
+ childCategoryList: {
2687
+ id: string;
2688
+ value: string;
2689
+ level: 2 | 1 | 3;
2690
+ parentId: string | null;
2691
+ childCategoryList: {
2692
+ id: string;
2693
+ value: string;
2694
+ level: 2 | 1 | 3;
2695
+ parentId: string | null;
2696
+ childCategoryList: any[];
2697
+ }[];
2698
+ }[];
2699
+ };
2700
+ }, {
2701
+ requestId: string;
2702
+ category: {
2703
+ id: string;
2704
+ value: string;
2705
+ level: 2 | 1 | 3;
2706
+ parentId: string | null;
2707
+ childCategoryList: {
2708
+ id: string;
2709
+ value: string;
2710
+ level: 2 | 1 | 3;
2711
+ parentId: string | null;
2712
+ childCategoryList: {
2713
+ id: string;
2714
+ value: string;
2715
+ level: 2 | 1 | 3;
2716
+ parentId: string | null;
2717
+ childCategoryList: any[];
2718
+ }[];
2719
+ }[];
2720
+ };
2721
+ }>;
2722
+ 500: import("zod").ZodObject<{
2723
+ message: import("zod").ZodString;
2724
+ error: import("zod").ZodAny;
2725
+ }, "strip", import("zod").ZodTypeAny, {
2726
+ message: string;
2727
+ error?: any;
2728
+ }, {
2729
+ message: string;
2730
+ error?: any;
2731
+ }>;
2732
+ };
2733
+ path: "categories";
2734
+ headers: import("zod").ZodObject<{
2735
+ 'x-tenant': import("zod").ZodString;
2736
+ authorization: import("zod").ZodString;
2737
+ }, "strip", import("zod").ZodTypeAny, {
2738
+ 'x-tenant': string;
2739
+ authorization: string;
2740
+ }, {
2741
+ 'x-tenant': string;
2742
+ authorization: string;
2743
+ }>;
2744
+ };
2745
+ getCategories: {
2746
+ method: "GET";
2747
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
2748
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
2749
+ pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
2750
+ }, "strip", import("zod").ZodTypeAny, {
2751
+ page?: number | undefined;
2752
+ pageSize?: number | undefined;
2753
+ }, {
2754
+ page?: number | undefined;
2755
+ pageSize?: number | undefined;
2756
+ }>>;
2757
+ responses: {
2758
+ 200: import("zod").ZodObject<{
2759
+ total: import("zod").ZodNumber;
2760
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
2761
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
2762
+ lastPage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
2763
+ data: import("zod").ZodArray<import("zod").ZodType<{
2764
+ id: string;
2765
+ value: string;
2766
+ level: 2 | 1 | 3;
2767
+ parentId: string | null;
2768
+ childCategoryList: {
2769
+ id: string;
2770
+ value: string;
2771
+ level: 2 | 1 | 3;
2772
+ parentId: string | null;
2773
+ childCategoryList: {
2774
+ id: string;
2775
+ value: string;
2776
+ level: 2 | 1 | 3;
2777
+ parentId: string | null;
2778
+ childCategoryList: any[];
2779
+ }[];
2780
+ }[];
2781
+ }, import("zod").ZodTypeDef, {
2782
+ id: string;
2783
+ value: string;
2784
+ level: 2 | 1 | 3;
2785
+ parentId: string | null;
2786
+ childCategoryList: {
2787
+ id: string;
2788
+ value: string;
2789
+ level: 2 | 1 | 3;
2790
+ parentId: string | null;
2791
+ childCategoryList: {
2792
+ id: string;
2793
+ value: string;
2794
+ level: 2 | 1 | 3;
2795
+ parentId: string | null;
2796
+ childCategoryList: any[];
2797
+ }[];
2798
+ }[];
2799
+ }>, "many">;
2800
+ }, "strip", import("zod").ZodTypeAny, {
2801
+ data: {
2802
+ id: string;
2803
+ value: string;
2804
+ level: 2 | 1 | 3;
2805
+ parentId: string | null;
2806
+ childCategoryList: {
2807
+ id: string;
2808
+ value: string;
2809
+ level: 2 | 1 | 3;
2810
+ parentId: string | null;
2811
+ childCategoryList: {
2812
+ id: string;
2813
+ value: string;
2814
+ level: 2 | 1 | 3;
2815
+ parentId: string | null;
2816
+ childCategoryList: any[];
2817
+ }[];
2818
+ }[];
2819
+ }[];
2820
+ total: number;
2821
+ page: number;
2822
+ pageSize: number;
2823
+ lastPage?: number | null | undefined;
2824
+ }, {
2825
+ data: {
2826
+ id: string;
2827
+ value: string;
2828
+ level: 2 | 1 | 3;
2829
+ parentId: string | null;
2830
+ childCategoryList: {
2831
+ id: string;
2832
+ value: string;
2833
+ level: 2 | 1 | 3;
2834
+ parentId: string | null;
2835
+ childCategoryList: {
2836
+ id: string;
2837
+ value: string;
2838
+ level: 2 | 1 | 3;
2839
+ parentId: string | null;
2840
+ childCategoryList: any[];
2841
+ }[];
2842
+ }[];
2843
+ }[];
2844
+ total: number;
2845
+ page?: number | undefined;
2846
+ pageSize?: number | undefined;
2847
+ lastPage?: number | null | undefined;
2848
+ }>;
2849
+ 500: import("zod").ZodObject<{
2850
+ message: import("zod").ZodString;
2851
+ error: import("zod").ZodAny;
2852
+ }, "strip", import("zod").ZodTypeAny, {
2853
+ message: string;
2854
+ error?: any;
2855
+ }, {
2856
+ message: string;
2857
+ error?: any;
2858
+ }>;
2859
+ };
2860
+ path: "categories";
2861
+ headers: import("zod").ZodObject<{
2862
+ 'x-tenant': import("zod").ZodString;
2863
+ authorization: import("zod").ZodString;
2864
+ }, "strip", import("zod").ZodTypeAny, {
2865
+ 'x-tenant': string;
2866
+ authorization: string;
2867
+ }, {
2868
+ 'x-tenant': string;
2869
+ authorization: string;
2870
+ }>;
2871
+ };
2872
+ updateCategory: {
2873
+ body: import("zod").ZodObject<{
2874
+ value: import("zod").ZodString;
2875
+ }, "strip", import("zod").ZodTypeAny, {
2876
+ value: string;
2877
+ }, {
2878
+ value: string;
2879
+ }>;
2880
+ method: "PATCH";
2881
+ pathParams: import("zod").ZodObject<{
2882
+ id: import("zod").ZodString;
2883
+ }, "strip", import("zod").ZodTypeAny, {
2884
+ id: string;
2885
+ }, {
2886
+ id: string;
2887
+ }>;
2888
+ responses: {
2889
+ 200: import("zod").ZodObject<{
2890
+ requestId: import("zod").ZodString;
2891
+ }, "strip", import("zod").ZodTypeAny, {
2892
+ requestId: string;
2893
+ }, {
2894
+ requestId: string;
2895
+ }>;
2896
+ 500: import("zod").ZodObject<{
2897
+ message: import("zod").ZodString;
2898
+ error: import("zod").ZodAny;
2899
+ }, "strip", import("zod").ZodTypeAny, {
2900
+ message: string;
2901
+ error?: any;
2902
+ }, {
2903
+ message: string;
2904
+ error?: any;
2905
+ }>;
2906
+ };
2907
+ path: "categories/:id";
2908
+ headers: import("zod").ZodObject<{
2909
+ 'x-tenant': import("zod").ZodString;
2910
+ authorization: import("zod").ZodString;
2911
+ category: import("zod").ZodObject<{
2912
+ id: import("zod").ZodString;
2913
+ value: import("zod").ZodString;
2914
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
2915
+ parentId: import("zod").ZodNullable<import("zod").ZodString>;
2916
+ childCategoryList: import("zod").ZodArray<import("zod").ZodObject<{
2917
+ id: import("zod").ZodString;
2918
+ value: import("zod").ZodString;
2919
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
2920
+ parentId: import("zod").ZodNullable<import("zod").ZodString>;
2921
+ childCategoryList: import("zod").ZodArray<import("zod").ZodObject<{
2922
+ id: import("zod").ZodString;
2923
+ value: import("zod").ZodString;
2924
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
2925
+ parentId: import("zod").ZodNullable<import("zod").ZodString>;
2926
+ childCategoryList: import("zod").ZodArray<import("zod").ZodAny, "many">;
2927
+ }, "strip", import("zod").ZodTypeAny, {
2928
+ id: string;
2929
+ value: string;
2930
+ level: 2 | 1 | 3;
2931
+ parentId: string | null;
2932
+ childCategoryList: any[];
2933
+ }, {
2934
+ id: string;
2935
+ value: string;
2936
+ level: 2 | 1 | 3;
2937
+ parentId: string | null;
2938
+ childCategoryList: any[];
2939
+ }>, "many">;
2940
+ }, "strip", import("zod").ZodTypeAny, {
2941
+ id: string;
2942
+ value: string;
2943
+ level: 2 | 1 | 3;
2944
+ parentId: string | null;
2945
+ childCategoryList: {
2946
+ id: string;
2947
+ value: string;
2948
+ level: 2 | 1 | 3;
2949
+ parentId: string | null;
2950
+ childCategoryList: any[];
2951
+ }[];
2952
+ }, {
2953
+ id: string;
2954
+ value: string;
2955
+ level: 2 | 1 | 3;
2956
+ parentId: string | null;
2957
+ childCategoryList: {
2958
+ id: string;
2959
+ value: string;
2960
+ level: 2 | 1 | 3;
2961
+ parentId: string | null;
2962
+ childCategoryList: any[];
2963
+ }[];
2964
+ }>, "many">;
2965
+ }, "strip", import("zod").ZodTypeAny, {
2966
+ id: string;
2967
+ value: string;
2968
+ level: 2 | 1 | 3;
2969
+ parentId: string | null;
2970
+ childCategoryList: {
2971
+ id: string;
2972
+ value: string;
2973
+ level: 2 | 1 | 3;
2974
+ parentId: string | null;
2975
+ childCategoryList: {
2976
+ id: string;
2977
+ value: string;
2978
+ level: 2 | 1 | 3;
2979
+ parentId: string | null;
2980
+ childCategoryList: any[];
2981
+ }[];
2982
+ }[];
2983
+ }, {
2984
+ id: string;
2985
+ value: string;
2986
+ level: 2 | 1 | 3;
2987
+ parentId: string | null;
2988
+ childCategoryList: {
2989
+ id: string;
2990
+ value: string;
2991
+ level: 2 | 1 | 3;
2992
+ parentId: string | null;
2993
+ childCategoryList: {
2994
+ id: string;
2995
+ value: string;
2996
+ level: 2 | 1 | 3;
2997
+ parentId: string | null;
2998
+ childCategoryList: any[];
2999
+ }[];
3000
+ }[];
3001
+ }>;
3002
+ }, "strip", import("zod").ZodTypeAny, {
3003
+ 'x-tenant': string;
3004
+ authorization: string;
3005
+ category: {
3006
+ id: string;
3007
+ value: string;
3008
+ level: 2 | 1 | 3;
3009
+ parentId: string | null;
3010
+ childCategoryList: {
3011
+ id: string;
3012
+ value: string;
3013
+ level: 2 | 1 | 3;
3014
+ parentId: string | null;
3015
+ childCategoryList: {
3016
+ id: string;
3017
+ value: string;
3018
+ level: 2 | 1 | 3;
3019
+ parentId: string | null;
3020
+ childCategoryList: any[];
3021
+ }[];
3022
+ }[];
3023
+ };
3024
+ }, {
3025
+ 'x-tenant': string;
3026
+ authorization: string;
3027
+ category: {
3028
+ id: string;
3029
+ value: string;
3030
+ level: 2 | 1 | 3;
3031
+ parentId: string | null;
3032
+ childCategoryList: {
3033
+ id: string;
3034
+ value: string;
3035
+ level: 2 | 1 | 3;
3036
+ parentId: string | null;
3037
+ childCategoryList: {
3038
+ id: string;
3039
+ value: string;
3040
+ level: 2 | 1 | 3;
3041
+ parentId: string | null;
3042
+ childCategoryList: any[];
3043
+ }[];
3044
+ }[];
3045
+ };
3046
+ }>;
3047
+ };
3048
+ deleteCategory: {
3049
+ body: import("zod").ZodOptional<import("zod").ZodAny>;
3050
+ method: "DELETE";
3051
+ pathParams: import("zod").ZodObject<{
3052
+ id: import("zod").ZodString;
3053
+ }, "strip", import("zod").ZodTypeAny, {
3054
+ id: string;
3055
+ }, {
3056
+ id: string;
3057
+ }>;
3058
+ responses: {
3059
+ 200: import("zod").ZodObject<{
3060
+ requestId: import("zod").ZodString;
3061
+ message: import("zod").ZodString;
3062
+ }, "strip", import("zod").ZodTypeAny, {
3063
+ message: string;
3064
+ requestId: string;
3065
+ }, {
3066
+ message: string;
3067
+ requestId: string;
3068
+ }>;
3069
+ 500: import("zod").ZodObject<{
3070
+ message: import("zod").ZodString;
3071
+ error: import("zod").ZodAny;
3072
+ }, "strip", import("zod").ZodTypeAny, {
3073
+ message: string;
3074
+ error?: any;
3075
+ }, {
3076
+ message: string;
3077
+ error?: any;
3078
+ }>;
3079
+ };
3080
+ path: "categories/:id";
3081
+ headers: import("zod").ZodObject<{
3082
+ 'x-tenant': import("zod").ZodString;
3083
+ authorization: import("zod").ZodString;
3084
+ }, "strip", import("zod").ZodTypeAny, {
3085
+ 'x-tenant': string;
3086
+ authorization: string;
3087
+ }, {
3088
+ 'x-tenant': string;
3089
+ authorization: string;
3090
+ }>;
3091
+ };
3092
+ createCategoryLevel: {
3093
+ body: import("zod").ZodObject<{
3094
+ name: import("zod").ZodString;
3095
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
3096
+ }, "strip", import("zod").ZodTypeAny, {
3097
+ name: string;
3098
+ level: 2 | 1 | 3;
3099
+ }, {
3100
+ name: string;
3101
+ level: 2 | 1 | 3;
3102
+ }>;
3103
+ method: "POST";
3104
+ responses: {
3105
+ 200: import("zod").ZodObject<{
3106
+ requestId: import("zod").ZodString;
3107
+ categoryLevel: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
3108
+ }, "strip", import("zod").ZodTypeAny, {
3109
+ requestId: string;
3110
+ categoryLevel: 2 | 1 | 3;
3111
+ }, {
3112
+ requestId: string;
3113
+ categoryLevel: 2 | 1 | 3;
3114
+ }>;
3115
+ 500: import("zod").ZodObject<{
3116
+ message: import("zod").ZodString;
3117
+ error: import("zod").ZodAny;
3118
+ }, "strip", import("zod").ZodTypeAny, {
3119
+ message: string;
3120
+ error?: any;
3121
+ }, {
3122
+ message: string;
3123
+ error?: any;
3124
+ }>;
3125
+ };
3126
+ path: "categories/level";
3127
+ headers: import("zod").ZodObject<{
3128
+ 'x-tenant': import("zod").ZodString;
3129
+ authorization: import("zod").ZodString;
3130
+ }, "strip", import("zod").ZodTypeAny, {
3131
+ 'x-tenant': string;
3132
+ authorization: string;
3133
+ }, {
3134
+ 'x-tenant': string;
3135
+ authorization: string;
3136
+ }>;
3137
+ };
3138
+ updateCategoryLevel: {
3139
+ body: import("zod").ZodObject<{
3140
+ id: import("zod").ZodString;
3141
+ name: import("zod").ZodString;
3142
+ level: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
3143
+ }, "strip", import("zod").ZodTypeAny, {
3144
+ id: string;
3145
+ name: string;
3146
+ level: 2 | 1 | 3;
3147
+ }, {
3148
+ id: string;
3149
+ name: string;
3150
+ level: 2 | 1 | 3;
3151
+ }>;
3152
+ method: "PATCH";
3153
+ pathParams: import("zod").ZodObject<{
3154
+ id: import("zod").ZodString;
3155
+ }, "strip", import("zod").ZodTypeAny, {
3156
+ id: string;
3157
+ }, {
3158
+ id: string;
3159
+ }>;
3160
+ responses: {
3161
+ 200: import("zod").ZodObject<{
3162
+ requestId: import("zod").ZodString;
3163
+ categoryLevel: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
3164
+ }, "strip", import("zod").ZodTypeAny, {
3165
+ requestId: string;
3166
+ categoryLevel: 2 | 1 | 3;
3167
+ }, {
3168
+ requestId: string;
3169
+ categoryLevel: 2 | 1 | 3;
3170
+ }>;
3171
+ 500: import("zod").ZodObject<{
3172
+ message: import("zod").ZodString;
3173
+ error: import("zod").ZodAny;
3174
+ }, "strip", import("zod").ZodTypeAny, {
3175
+ message: string;
3176
+ error?: any;
3177
+ }, {
3178
+ message: string;
3179
+ error?: any;
3180
+ }>;
3181
+ };
3182
+ path: "categories/level/:id";
3183
+ headers: import("zod").ZodObject<{
3184
+ 'x-tenant': import("zod").ZodString;
3185
+ authorization: import("zod").ZodString;
3186
+ }, "strip", import("zod").ZodTypeAny, {
3187
+ 'x-tenant': string;
3188
+ authorization: string;
3189
+ }, {
3190
+ 'x-tenant': string;
3191
+ authorization: string;
3192
+ }>;
3193
+ };
3194
+ };
3195
+ };
3196
+ //# sourceMappingURL=contract.d.ts.map