@todoist/sdk 0.0.1 → 18.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 (335) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +293 -29
  3. package/dist/esm/authentication.js +307 -0
  4. package/dist/esm/clients/activity-client.js +60 -0
  5. package/dist/esm/clients/app-client.js +366 -0
  6. package/dist/esm/clients/backup-client.js +47 -0
  7. package/dist/esm/clients/base-client.js +29 -0
  8. package/dist/esm/clients/billing-client.js +160 -0
  9. package/dist/esm/clients/comment-client.js +92 -0
  10. package/dist/esm/clients/email-client.js +41 -0
  11. package/dist/esm/clients/filter-client.js +26 -0
  12. package/dist/esm/clients/folder-client.js +80 -0
  13. package/dist/esm/clients/id-mapping-client.js +37 -0
  14. package/dist/esm/clients/insights-client.js +89 -0
  15. package/dist/esm/clients/label-client.js +131 -0
  16. package/dist/esm/clients/productivity-client.js +24 -0
  17. package/dist/esm/clients/project-client.js +284 -0
  18. package/dist/esm/clients/reminder-client.js +204 -0
  19. package/dist/esm/clients/section-client.js +121 -0
  20. package/dist/esm/clients/task-client.js +264 -0
  21. package/dist/esm/clients/template-client.js +89 -0
  22. package/dist/esm/clients/ui-extension-client.js +110 -0
  23. package/dist/esm/clients/upload-client.js +153 -0
  24. package/dist/esm/clients/view-options-client.js +21 -0
  25. package/dist/esm/clients/workspace-client.js +384 -0
  26. package/dist/esm/consts/endpoints.js +193 -0
  27. package/dist/esm/index.js +5 -0
  28. package/dist/esm/test-utils/asserts.js +8 -0
  29. package/dist/esm/test-utils/msw-setup.js +88 -0
  30. package/dist/esm/test-utils/obsidian-fetch-adapter.js +51 -0
  31. package/dist/esm/test-utils/test-defaults.js +367 -0
  32. package/dist/esm/test-utils/transport-seam.js +15 -0
  33. package/dist/esm/test-utils/webhook-fixtures.js +26 -0
  34. package/dist/esm/todoist-api.js +1757 -0
  35. package/dist/esm/transport/fetch-with-retry.js +216 -0
  36. package/dist/esm/transport/http-client.js +140 -0
  37. package/dist/esm/transport/http-dispatcher.js +158 -0
  38. package/dist/esm/transport/sync-request.js +106 -0
  39. package/dist/esm/types/activity/index.js +2 -0
  40. package/dist/esm/types/activity/requests.js +1 -0
  41. package/dist/esm/types/activity/types.js +45 -0
  42. package/dist/esm/types/apps/index.js +2 -0
  43. package/dist/esm/types/apps/requests.js +1 -0
  44. package/dist/esm/types/apps/types.js +249 -0
  45. package/dist/esm/types/backups/index.js +2 -0
  46. package/dist/esm/types/backups/requests.js +1 -0
  47. package/dist/esm/types/backups/types.js +5 -0
  48. package/dist/esm/types/billing/index.js +2 -0
  49. package/dist/esm/types/billing/requests.js +1 -0
  50. package/dist/esm/types/billing/types.js +89 -0
  51. package/dist/esm/types/comments/index.js +2 -0
  52. package/dist/esm/types/comments/requests.js +1 -0
  53. package/dist/esm/types/comments/types.js +57 -0
  54. package/dist/esm/types/common.js +7 -0
  55. package/dist/esm/types/emails/index.js +1 -0
  56. package/dist/esm/types/emails/requests.js +2 -0
  57. package/dist/esm/types/errors.js +41 -0
  58. package/dist/esm/types/folders/index.js +1 -0
  59. package/dist/esm/types/folders/requests.js +1 -0
  60. package/dist/esm/types/http.js +20 -0
  61. package/dist/esm/types/id-mappings/index.js +2 -0
  62. package/dist/esm/types/id-mappings/requests.js +17 -0
  63. package/dist/esm/types/id-mappings/types.js +9 -0
  64. package/dist/esm/types/index.js +24 -0
  65. package/dist/esm/types/insights/index.js +2 -0
  66. package/dist/esm/types/insights/requests.js +1 -0
  67. package/dist/esm/types/insights/types.js +77 -0
  68. package/dist/esm/types/labels/index.js +2 -0
  69. package/dist/esm/types/labels/requests.js +1 -0
  70. package/dist/esm/types/labels/types.js +8 -0
  71. package/dist/esm/types/productivity/index.js +1 -0
  72. package/dist/esm/types/productivity/types.js +65 -0
  73. package/dist/esm/types/projects/index.js +2 -0
  74. package/dist/esm/types/projects/requests.js +1 -0
  75. package/dist/esm/types/projects/types.js +65 -0
  76. package/dist/esm/types/reminders/index.js +1 -0
  77. package/dist/esm/types/reminders/requests.js +92 -0
  78. package/dist/esm/types/sections/index.js +2 -0
  79. package/dist/esm/types/sections/requests.js +1 -0
  80. package/dist/esm/types/sections/types.js +23 -0
  81. package/dist/esm/types/sync/commands/calendars.js +1 -0
  82. package/dist/esm/types/sync/commands/filters.js +1 -0
  83. package/dist/esm/types/sync/commands/folders.js +1 -0
  84. package/dist/esm/types/sync/commands/index.js +18 -0
  85. package/dist/esm/types/sync/commands/labels.js +2 -0
  86. package/dist/esm/types/sync/commands/notes.js +1 -0
  87. package/dist/esm/types/sync/commands/notifications.js +1 -0
  88. package/dist/esm/types/sync/commands/others.js +1 -0
  89. package/dist/esm/types/sync/commands/project-view-options.js +1 -0
  90. package/dist/esm/types/sync/commands/projects.js +1 -0
  91. package/dist/esm/types/sync/commands/reminders.js +1 -0
  92. package/dist/esm/types/sync/commands/sections.js +1 -0
  93. package/dist/esm/types/sync/commands/shared.js +16 -0
  94. package/dist/esm/types/sync/commands/sharing.js +1 -0
  95. package/dist/esm/types/sync/commands/tasks.js +1 -0
  96. package/dist/esm/types/sync/commands/view-options.js +1 -0
  97. package/dist/esm/types/sync/commands/workspace-filters.js +1 -0
  98. package/dist/esm/types/sync/commands/workspaces.js +1 -0
  99. package/dist/esm/types/sync/index.js +6 -0
  100. package/dist/esm/types/sync/request.js +1 -0
  101. package/dist/esm/types/sync/resource-types.js +36 -0
  102. package/dist/esm/types/sync/resources/calendars.js +24 -0
  103. package/dist/esm/types/sync/resources/collaborators.js +21 -0
  104. package/dist/esm/types/sync/resources/completed-info.js +21 -0
  105. package/dist/esm/types/sync/resources/filters.js +12 -0
  106. package/dist/esm/types/sync/resources/folders.js +10 -0
  107. package/dist/esm/types/sync/resources/index.js +18 -0
  108. package/dist/esm/types/sync/resources/labels.js +7 -0
  109. package/dist/esm/types/sync/resources/live-notifications.js +35 -0
  110. package/dist/esm/types/sync/resources/notes.js +18 -0
  111. package/dist/esm/types/sync/resources/reminders.js +58 -0
  112. package/dist/esm/types/sync/resources/suggestions.js +33 -0
  113. package/dist/esm/types/sync/resources/tooltips.js +5 -0
  114. package/dist/esm/types/sync/resources/user-plan-limits.js +21 -0
  115. package/dist/esm/types/sync/resources/user-settings.js +41 -0
  116. package/dist/esm/types/sync/resources/user-status.js +22 -0
  117. package/dist/esm/types/sync/resources/user.js +109 -0
  118. package/dist/esm/types/sync/resources/view-options.js +128 -0
  119. package/dist/esm/types/sync/resources/workspace-filters.js +17 -0
  120. package/dist/esm/types/sync/resources/workspaces.js +69 -0
  121. package/dist/esm/types/sync/response.js +57 -0
  122. package/dist/esm/types/sync/user-preferences.js +68 -0
  123. package/dist/esm/types/tasks/index.js +2 -0
  124. package/dist/esm/types/tasks/requests.js +1 -0
  125. package/dist/esm/types/tasks/types.js +56 -0
  126. package/dist/esm/types/templates/index.js +1 -0
  127. package/dist/esm/types/templates/requests.js +1 -0
  128. package/dist/esm/types/ui-extensions/index.js +2 -0
  129. package/dist/esm/types/ui-extensions/requests.js +1 -0
  130. package/dist/esm/types/ui-extensions/types.js +74 -0
  131. package/dist/esm/types/uploads/index.js +1 -0
  132. package/dist/esm/types/uploads/requests.js +1 -0
  133. package/dist/esm/types/users/index.js +1 -0
  134. package/dist/esm/types/users/types.js +49 -0
  135. package/dist/esm/types/webhooks/comments.js +93 -0
  136. package/dist/esm/types/webhooks/envelope.js +23 -0
  137. package/dist/esm/types/webhooks/filters.js +27 -0
  138. package/dist/esm/types/webhooks/index.js +9 -0
  139. package/dist/esm/types/webhooks/labels.js +51 -0
  140. package/dist/esm/types/webhooks/projects.js +33 -0
  141. package/dist/esm/types/webhooks/reminders.js +32 -0
  142. package/dist/esm/types/webhooks/sections.js +50 -0
  143. package/dist/esm/types/webhooks/tasks.js +65 -0
  144. package/dist/esm/types/webhooks/types.js +52 -0
  145. package/dist/esm/types/workspaces/index.js +2 -0
  146. package/dist/esm/types/workspaces/requests.js +1 -0
  147. package/dist/esm/types/workspaces/types.js +151 -0
  148. package/dist/esm/utils/activity-helpers.js +53 -0
  149. package/dist/esm/utils/case-conversion.js +84 -0
  150. package/dist/esm/utils/colors.js +145 -0
  151. package/dist/esm/utils/file-response.js +29 -0
  152. package/dist/esm/utils/filter-queries.js +231 -0
  153. package/dist/esm/utils/filter-query-definitions.js +2789 -0
  154. package/dist/esm/utils/headers.js +42 -0
  155. package/dist/esm/utils/index.js +11 -0
  156. package/dist/esm/utils/multipart-upload.js +267 -0
  157. package/dist/esm/utils/person-names.js +61 -0
  158. package/dist/esm/utils/processing-helpers.js +12 -0
  159. package/dist/esm/utils/project-helpers.js +29 -0
  160. package/dist/esm/utils/request-helpers.js +43 -0
  161. package/dist/esm/utils/sanitization.js +131 -0
  162. package/dist/esm/utils/sync-helpers.js +19 -0
  163. package/dist/esm/utils/task-sorting.js +280 -0
  164. package/dist/esm/utils/uncompletable-helpers.js +54 -0
  165. package/dist/esm/utils/url-helpers.js +196 -0
  166. package/dist/esm/utils/validators.js +102 -0
  167. package/dist/esm/utils/view-options.js +15 -0
  168. package/dist/esm/utils/webhook-parser.js +56 -0
  169. package/dist/types/authentication.d.ts +262 -0
  170. package/dist/types/clients/activity-client.d.ts +12 -0
  171. package/dist/types/clients/app-client.d.ts +37 -0
  172. package/dist/types/clients/backup-client.d.ts +14 -0
  173. package/dist/types/clients/base-client.d.ts +23 -0
  174. package/dist/types/clients/billing-client.d.ts +22 -0
  175. package/dist/types/clients/comment-client.d.ts +15 -0
  176. package/dist/types/clients/email-client.d.ts +13 -0
  177. package/dist/types/clients/filter-client.d.ts +10 -0
  178. package/dist/types/clients/folder-client.d.ts +16 -0
  179. package/dist/types/clients/id-mapping-client.d.ts +13 -0
  180. package/dist/types/clients/insights-client.d.ts +18 -0
  181. package/dist/types/clients/label-client.d.ts +19 -0
  182. package/dist/types/clients/productivity-client.d.ts +12 -0
  183. package/dist/types/clients/project-client.d.ts +22 -0
  184. package/dist/types/clients/reminder-client.d.ts +25 -0
  185. package/dist/types/clients/section-client.d.ts +18 -0
  186. package/dist/types/clients/task-client.d.ts +25 -0
  187. package/dist/types/clients/template-client.d.ts +17 -0
  188. package/dist/types/clients/ui-extension-client.d.ts +18 -0
  189. package/dist/types/clients/upload-client.d.ts +17 -0
  190. package/dist/types/clients/view-options-client.d.ts +8 -0
  191. package/dist/types/clients/workspace-client.d.ts +43 -0
  192. package/dist/types/consts/endpoints.d.ts +120 -0
  193. package/dist/types/index.d.ts +6 -0
  194. package/dist/types/test-utils/asserts.d.ts +1 -0
  195. package/dist/types/test-utils/msw-setup.d.ts +33 -0
  196. package/dist/types/test-utils/obsidian-fetch-adapter.d.ts +29 -0
  197. package/dist/types/test-utils/test-defaults.d.ts +286 -0
  198. package/dist/types/test-utils/transport-seam.d.ts +1 -0
  199. package/dist/types/test-utils/webhook-fixtures.d.ts +13 -0
  200. package/dist/types/todoist-api.d.ts +1437 -0
  201. package/dist/types/transport/fetch-with-retry.d.ts +12 -0
  202. package/dist/types/transport/http-client.d.ts +25 -0
  203. package/dist/types/transport/http-dispatcher.d.ts +65 -0
  204. package/dist/types/transport/sync-request.d.ts +31 -0
  205. package/dist/types/types/activity/index.d.ts +2 -0
  206. package/dist/types/types/activity/requests.d.ts +85 -0
  207. package/dist/types/types/activity/types.d.ts +56 -0
  208. package/dist/types/types/apps/index.d.ts +2 -0
  209. package/dist/types/types/apps/requests.d.ts +89 -0
  210. package/dist/types/types/apps/types.d.ts +418 -0
  211. package/dist/types/types/backups/index.d.ts +2 -0
  212. package/dist/types/types/backups/requests.d.ts +16 -0
  213. package/dist/types/types/backups/types.d.ts +7 -0
  214. package/dist/types/types/billing/index.d.ts +2 -0
  215. package/dist/types/types/billing/requests.d.ts +62 -0
  216. package/dist/types/types/billing/types.d.ts +207 -0
  217. package/dist/types/types/comments/index.d.ts +2 -0
  218. package/dist/types/types/comments/requests.d.ts +64 -0
  219. package/dist/types/types/comments/types.d.ts +141 -0
  220. package/dist/types/types/common.d.ts +13 -0
  221. package/dist/types/types/emails/index.d.ts +1 -0
  222. package/dist/types/types/emails/requests.d.ts +30 -0
  223. package/dist/types/types/errors.d.ts +29 -0
  224. package/dist/types/types/folders/index.d.ts +1 -0
  225. package/dist/types/types/folders/requests.d.ts +20 -0
  226. package/dist/types/types/http.d.ts +104 -0
  227. package/dist/types/types/id-mappings/index.d.ts +2 -0
  228. package/dist/types/types/id-mappings/requests.d.ts +28 -0
  229. package/dist/types/types/id-mappings/types.d.ts +13 -0
  230. package/dist/types/types/index.d.ts +24 -0
  231. package/dist/types/types/insights/index.d.ts +2 -0
  232. package/dist/types/types/insights/requests.d.ts +26 -0
  233. package/dist/types/types/insights/types.d.ts +167 -0
  234. package/dist/types/types/labels/index.d.ts +2 -0
  235. package/dist/types/types/labels/requests.d.ts +75 -0
  236. package/dist/types/types/labels/types.d.ts +13 -0
  237. package/dist/types/types/productivity/index.d.ts +1 -0
  238. package/dist/types/types/productivity/types.d.ts +115 -0
  239. package/dist/types/types/projects/index.d.ts +2 -0
  240. package/dist/types/types/projects/requests.d.ts +206 -0
  241. package/dist/types/types/projects/types.d.ts +286 -0
  242. package/dist/types/types/reminders/index.d.ts +1 -0
  243. package/dist/types/types/reminders/requests.d.ts +205 -0
  244. package/dist/types/types/sections/index.d.ts +2 -0
  245. package/dist/types/types/sections/requests.d.ts +49 -0
  246. package/dist/types/types/sections/types.d.ts +70 -0
  247. package/dist/types/types/sync/commands/calendars.d.ts +14 -0
  248. package/dist/types/types/sync/commands/filters.d.ts +24 -0
  249. package/dist/types/types/sync/commands/folders.d.ts +20 -0
  250. package/dist/types/types/sync/commands/index.d.ts +167 -0
  251. package/dist/types/types/sync/commands/labels.d.ts +32 -0
  252. package/dist/types/types/sync/commands/notes.d.ts +27 -0
  253. package/dist/types/types/sync/commands/notifications.d.ts +10 -0
  254. package/dist/types/types/sync/commands/others.d.ts +61 -0
  255. package/dist/types/types/sync/commands/project-view-options.d.ts +13 -0
  256. package/dist/types/types/sync/commands/projects.d.ts +96 -0
  257. package/dist/types/types/sync/commands/reminders.d.ts +51 -0
  258. package/dist/types/types/sync/commands/sections.d.ts +36 -0
  259. package/dist/types/types/sync/commands/shared.d.ts +51 -0
  260. package/dist/types/types/sync/commands/sharing.d.ts +16 -0
  261. package/dist/types/types/sync/commands/tasks.d.ts +78 -0
  262. package/dist/types/types/sync/commands/view-options.d.ts +18 -0
  263. package/dist/types/types/sync/commands/workspace-filters.d.ts +25 -0
  264. package/dist/types/types/sync/commands/workspaces.d.ts +82 -0
  265. package/dist/types/types/sync/index.d.ts +6 -0
  266. package/dist/types/types/sync/request.d.ts +7 -0
  267. package/dist/types/types/sync/resource-types.d.ts +5 -0
  268. package/dist/types/types/sync/resources/calendars.d.ts +38 -0
  269. package/dist/types/types/sync/resources/collaborators.d.ts +45 -0
  270. package/dist/types/types/sync/resources/completed-info.d.ts +33 -0
  271. package/dist/types/types/sync/resources/filters.d.ts +13 -0
  272. package/dist/types/types/sync/resources/folders.d.ts +11 -0
  273. package/dist/types/types/sync/resources/index.d.ts +18 -0
  274. package/dist/types/types/sync/resources/labels.d.ts +12 -0
  275. package/dist/types/types/sync/resources/live-notifications.d.ts +32 -0
  276. package/dist/types/types/sync/resources/notes.d.ts +34 -0
  277. package/dist/types/types/sync/resources/reminders.d.ts +213 -0
  278. package/dist/types/types/sync/resources/suggestions.d.ts +96 -0
  279. package/dist/types/types/sync/resources/tooltips.d.ts +6 -0
  280. package/dist/types/types/sync/resources/user-plan-limits.d.ts +47 -0
  281. package/dist/types/types/sync/resources/user-settings.d.ts +40 -0
  282. package/dist/types/types/sync/resources/user-status.d.ts +46 -0
  283. package/dist/types/types/sync/resources/user.d.ts +151 -0
  284. package/dist/types/types/sync/resources/view-options.d.ts +157 -0
  285. package/dist/types/types/sync/resources/workspace-filters.d.ts +18 -0
  286. package/dist/types/types/sync/resources/workspaces.d.ts +142 -0
  287. package/dist/types/types/sync/response.d.ts +930 -0
  288. package/dist/types/types/sync/user-preferences.d.ts +39 -0
  289. package/dist/types/types/tasks/index.d.ts +2 -0
  290. package/dist/types/types/tasks/requests.d.ts +197 -0
  291. package/dist/types/types/tasks/types.d.ts +162 -0
  292. package/dist/types/types/templates/index.d.ts +1 -0
  293. package/dist/types/types/templates/requests.d.ts +92 -0
  294. package/dist/types/types/ui-extensions/index.d.ts +2 -0
  295. package/dist/types/types/ui-extensions/requests.d.ts +108 -0
  296. package/dist/types/types/ui-extensions/types.d.ts +185 -0
  297. package/dist/types/types/uploads/index.d.ts +1 -0
  298. package/dist/types/types/uploads/requests.d.ts +32 -0
  299. package/dist/types/types/users/index.d.ts +1 -0
  300. package/dist/types/types/users/types.d.ts +67 -0
  301. package/dist/types/types/webhooks/comments.d.ts +1600 -0
  302. package/dist/types/types/webhooks/envelope.d.ts +34 -0
  303. package/dist/types/types/webhooks/filters.d.ts +99 -0
  304. package/dist/types/types/webhooks/index.d.ts +9 -0
  305. package/dist/types/types/webhooks/labels.d.ts +160 -0
  306. package/dist/types/types/webhooks/projects.d.ts +365 -0
  307. package/dist/types/types/webhooks/reminders.d.ts +82 -0
  308. package/dist/types/types/webhooks/sections.d.ts +372 -0
  309. package/dist/types/types/webhooks/tasks.d.ts +981 -0
  310. package/dist/types/types/webhooks/types.d.ts +2606 -0
  311. package/dist/types/types/workspaces/index.d.ts +2 -0
  312. package/dist/types/types/workspaces/requests.d.ts +260 -0
  313. package/dist/types/types/workspaces/types.d.ts +266 -0
  314. package/dist/types/utils/activity-helpers.d.ts +28 -0
  315. package/dist/types/utils/case-conversion.d.ts +20 -0
  316. package/dist/types/utils/colors.d.ts +201 -0
  317. package/dist/types/utils/file-response.d.ts +15 -0
  318. package/dist/types/utils/filter-queries.d.ts +42 -0
  319. package/dist/types/utils/filter-query-definitions.d.ts +27 -0
  320. package/dist/types/utils/headers.d.ts +20 -0
  321. package/dist/types/utils/index.d.ts +15 -0
  322. package/dist/types/utils/multipart-upload.d.ts +58 -0
  323. package/dist/types/utils/person-names.d.ts +52 -0
  324. package/dist/types/utils/processing-helpers.d.ts +1 -0
  325. package/dist/types/utils/project-helpers.d.ts +21 -0
  326. package/dist/types/utils/request-helpers.d.ts +33 -0
  327. package/dist/types/utils/sanitization.d.ts +52 -0
  328. package/dist/types/utils/sync-helpers.d.ts +17 -0
  329. package/dist/types/utils/task-sorting.d.ts +46 -0
  330. package/dist/types/utils/uncompletable-helpers.d.ts +30 -0
  331. package/dist/types/utils/url-helpers.d.ts +120 -0
  332. package/dist/types/utils/validators.d.ts +1917 -0
  333. package/dist/types/utils/view-options.d.ts +11 -0
  334. package/dist/types/utils/webhook-parser.d.ts +48 -0
  335. package/package.json +87 -8
@@ -0,0 +1,2606 @@
1
+ import { z } from 'zod';
2
+ import { WebhookEventSchema, type WebhookEvent } from '../apps/types.js';
3
+ /**
4
+ * Wrapper schema for an incoming webhook payload.
5
+ *
6
+ * The backend sends snake_case keys and uses the public event form
7
+ * (`item:added`) in the `event_name` field, so consumers using
8
+ * `parseWebhookPayload` receive camelCase fields directly.
9
+ *
10
+ * Every {@link WebhookEvent} is typed today: `item:*` events carry a parsed
11
+ * {@link Task}; `note:*` events carry a parsed comment (item-comment or
12
+ * project-comment); `label:*` events carry a parsed label; `project:*`
13
+ * events carry a parsed {@link Project} (personal or workspace);
14
+ * `section:*` events carry a parsed {@link WebhookSection}; `filter:*`
15
+ * events carry a parsed {@link Filter}; `reminder:fired` carries a parsed
16
+ * {@link WebhookFiredReminder}.
17
+ */
18
+ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
19
+ eventName: z.ZodLiteral<"item:added">;
20
+ eventData: z.ZodPipe<z.ZodObject<{
21
+ id: z.ZodString;
22
+ userId: z.ZodString;
23
+ projectId: z.ZodString;
24
+ sectionId: z.ZodNullable<z.ZodString>;
25
+ parentId: z.ZodNullable<z.ZodString>;
26
+ addedByUid: z.ZodNullable<z.ZodString>;
27
+ assignedByUid: z.ZodNullable<z.ZodString>;
28
+ responsibleUid: z.ZodNullable<z.ZodString>;
29
+ labels: z.ZodArray<z.ZodString>;
30
+ deadline: z.ZodNullable<z.ZodObject<{
31
+ date: z.ZodString;
32
+ lang: z.ZodString;
33
+ }, z.core.$strip>>;
34
+ duration: z.ZodNullable<z.ZodObject<{
35
+ amount: z.ZodNumber;
36
+ unit: z.ZodEnum<{
37
+ minute: "minute";
38
+ day: "day";
39
+ }>;
40
+ }, z.core.$strip>>;
41
+ checked: z.ZodBoolean;
42
+ isDeleted: z.ZodBoolean;
43
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
44
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
45
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
46
+ due: z.ZodNullable<z.ZodObject<{
47
+ isRecurring: z.ZodBoolean;
48
+ string: z.ZodString;
49
+ date: z.ZodString;
50
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ }, z.core.$strip>>;
54
+ priority: z.ZodNumber;
55
+ childOrder: z.ZodNumber;
56
+ content: z.ZodString;
57
+ description: z.ZodString;
58
+ dayOrder: z.ZodNumber;
59
+ isCollapsed: z.ZodBoolean;
60
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
61
+ }, z.core.$strip>, z.ZodTransform<{
62
+ isUncompletable: boolean;
63
+ url: string;
64
+ id: string;
65
+ userId: string;
66
+ projectId: string;
67
+ sectionId: string | null;
68
+ parentId: string | null;
69
+ addedByUid: string | null;
70
+ assignedByUid: string | null;
71
+ responsibleUid: string | null;
72
+ labels: string[];
73
+ deadline: {
74
+ date: string;
75
+ lang: string;
76
+ } | null;
77
+ duration: {
78
+ amount: number;
79
+ unit: "minute" | "day";
80
+ } | null;
81
+ checked: boolean;
82
+ isDeleted: boolean;
83
+ addedAt: Date | null;
84
+ completedAt: Date | null;
85
+ updatedAt: Date | null;
86
+ due: {
87
+ isRecurring: boolean;
88
+ string: string;
89
+ date: string;
90
+ datetime?: string | null | undefined;
91
+ timezone?: string | null | undefined;
92
+ lang?: string | null | undefined;
93
+ } | null;
94
+ priority: number;
95
+ childOrder: number;
96
+ content: string;
97
+ description: string;
98
+ dayOrder: number;
99
+ isCollapsed: boolean;
100
+ }, {
101
+ id: string;
102
+ userId: string;
103
+ projectId: string;
104
+ sectionId: string | null;
105
+ parentId: string | null;
106
+ addedByUid: string | null;
107
+ assignedByUid: string | null;
108
+ responsibleUid: string | null;
109
+ labels: string[];
110
+ deadline: {
111
+ date: string;
112
+ lang: string;
113
+ } | null;
114
+ duration: {
115
+ amount: number;
116
+ unit: "minute" | "day";
117
+ } | null;
118
+ checked: boolean;
119
+ isDeleted: boolean;
120
+ addedAt: Date | null;
121
+ completedAt: Date | null;
122
+ updatedAt: Date | null;
123
+ due: {
124
+ isRecurring: boolean;
125
+ string: string;
126
+ date: string;
127
+ datetime?: string | null | undefined;
128
+ timezone?: string | null | undefined;
129
+ lang?: string | null | undefined;
130
+ } | null;
131
+ priority: number;
132
+ childOrder: number;
133
+ content: string;
134
+ description: string;
135
+ dayOrder: number;
136
+ isCollapsed: boolean;
137
+ isUncompletable: boolean;
138
+ }>>;
139
+ version: z.ZodEnum<{
140
+ 1: "1";
141
+ }>;
142
+ userId: z.ZodString;
143
+ initiator: z.ZodObject<{
144
+ id: z.ZodString;
145
+ fullName: z.ZodString;
146
+ email: z.ZodString;
147
+ imageId: z.ZodNullable<z.ZodString>;
148
+ isPremium: z.ZodBoolean;
149
+ }, z.core.$strip>;
150
+ triggeredAt: z.ZodCoercedDate<unknown>;
151
+ }, z.core.$strip>, z.ZodObject<{
152
+ eventName: z.ZodLiteral<"item:updated">;
153
+ eventData: z.ZodPipe<z.ZodObject<{
154
+ id: z.ZodString;
155
+ userId: z.ZodString;
156
+ projectId: z.ZodString;
157
+ sectionId: z.ZodNullable<z.ZodString>;
158
+ parentId: z.ZodNullable<z.ZodString>;
159
+ addedByUid: z.ZodNullable<z.ZodString>;
160
+ assignedByUid: z.ZodNullable<z.ZodString>;
161
+ responsibleUid: z.ZodNullable<z.ZodString>;
162
+ labels: z.ZodArray<z.ZodString>;
163
+ deadline: z.ZodNullable<z.ZodObject<{
164
+ date: z.ZodString;
165
+ lang: z.ZodString;
166
+ }, z.core.$strip>>;
167
+ duration: z.ZodNullable<z.ZodObject<{
168
+ amount: z.ZodNumber;
169
+ unit: z.ZodEnum<{
170
+ minute: "minute";
171
+ day: "day";
172
+ }>;
173
+ }, z.core.$strip>>;
174
+ checked: z.ZodBoolean;
175
+ isDeleted: z.ZodBoolean;
176
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
177
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
178
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
179
+ due: z.ZodNullable<z.ZodObject<{
180
+ isRecurring: z.ZodBoolean;
181
+ string: z.ZodString;
182
+ date: z.ZodString;
183
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ }, z.core.$strip>>;
187
+ priority: z.ZodNumber;
188
+ childOrder: z.ZodNumber;
189
+ content: z.ZodString;
190
+ description: z.ZodString;
191
+ dayOrder: z.ZodNumber;
192
+ isCollapsed: z.ZodBoolean;
193
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
194
+ }, z.core.$strip>, z.ZodTransform<{
195
+ isUncompletable: boolean;
196
+ url: string;
197
+ id: string;
198
+ userId: string;
199
+ projectId: string;
200
+ sectionId: string | null;
201
+ parentId: string | null;
202
+ addedByUid: string | null;
203
+ assignedByUid: string | null;
204
+ responsibleUid: string | null;
205
+ labels: string[];
206
+ deadline: {
207
+ date: string;
208
+ lang: string;
209
+ } | null;
210
+ duration: {
211
+ amount: number;
212
+ unit: "minute" | "day";
213
+ } | null;
214
+ checked: boolean;
215
+ isDeleted: boolean;
216
+ addedAt: Date | null;
217
+ completedAt: Date | null;
218
+ updatedAt: Date | null;
219
+ due: {
220
+ isRecurring: boolean;
221
+ string: string;
222
+ date: string;
223
+ datetime?: string | null | undefined;
224
+ timezone?: string | null | undefined;
225
+ lang?: string | null | undefined;
226
+ } | null;
227
+ priority: number;
228
+ childOrder: number;
229
+ content: string;
230
+ description: string;
231
+ dayOrder: number;
232
+ isCollapsed: boolean;
233
+ }, {
234
+ id: string;
235
+ userId: string;
236
+ projectId: string;
237
+ sectionId: string | null;
238
+ parentId: string | null;
239
+ addedByUid: string | null;
240
+ assignedByUid: string | null;
241
+ responsibleUid: string | null;
242
+ labels: string[];
243
+ deadline: {
244
+ date: string;
245
+ lang: string;
246
+ } | null;
247
+ duration: {
248
+ amount: number;
249
+ unit: "minute" | "day";
250
+ } | null;
251
+ checked: boolean;
252
+ isDeleted: boolean;
253
+ addedAt: Date | null;
254
+ completedAt: Date | null;
255
+ updatedAt: Date | null;
256
+ due: {
257
+ isRecurring: boolean;
258
+ string: string;
259
+ date: string;
260
+ datetime?: string | null | undefined;
261
+ timezone?: string | null | undefined;
262
+ lang?: string | null | undefined;
263
+ } | null;
264
+ priority: number;
265
+ childOrder: number;
266
+ content: string;
267
+ description: string;
268
+ dayOrder: number;
269
+ isCollapsed: boolean;
270
+ isUncompletable: boolean;
271
+ }>>;
272
+ eventDataExtra: z.ZodOptional<z.ZodObject<{
273
+ oldItem: z.ZodPipe<z.ZodObject<{
274
+ id: z.ZodString;
275
+ userId: z.ZodString;
276
+ projectId: z.ZodString;
277
+ sectionId: z.ZodNullable<z.ZodString>;
278
+ parentId: z.ZodNullable<z.ZodString>;
279
+ addedByUid: z.ZodNullable<z.ZodString>;
280
+ assignedByUid: z.ZodNullable<z.ZodString>;
281
+ responsibleUid: z.ZodNullable<z.ZodString>;
282
+ labels: z.ZodArray<z.ZodString>;
283
+ deadline: z.ZodNullable<z.ZodObject<{
284
+ date: z.ZodString;
285
+ lang: z.ZodString;
286
+ }, z.core.$strip>>;
287
+ duration: z.ZodNullable<z.ZodObject<{
288
+ amount: z.ZodNumber;
289
+ unit: z.ZodEnum<{
290
+ minute: "minute";
291
+ day: "day";
292
+ }>;
293
+ }, z.core.$strip>>;
294
+ checked: z.ZodBoolean;
295
+ isDeleted: z.ZodBoolean;
296
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
297
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
298
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
299
+ due: z.ZodNullable<z.ZodObject<{
300
+ isRecurring: z.ZodBoolean;
301
+ string: z.ZodString;
302
+ date: z.ZodString;
303
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ }, z.core.$strip>>;
307
+ priority: z.ZodNumber;
308
+ childOrder: z.ZodNumber;
309
+ content: z.ZodString;
310
+ description: z.ZodString;
311
+ dayOrder: z.ZodNumber;
312
+ isCollapsed: z.ZodBoolean;
313
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
314
+ }, z.core.$strip>, z.ZodTransform<{
315
+ isUncompletable: boolean;
316
+ url: string;
317
+ id: string;
318
+ userId: string;
319
+ projectId: string;
320
+ sectionId: string | null;
321
+ parentId: string | null;
322
+ addedByUid: string | null;
323
+ assignedByUid: string | null;
324
+ responsibleUid: string | null;
325
+ labels: string[];
326
+ deadline: {
327
+ date: string;
328
+ lang: string;
329
+ } | null;
330
+ duration: {
331
+ amount: number;
332
+ unit: "minute" | "day";
333
+ } | null;
334
+ checked: boolean;
335
+ isDeleted: boolean;
336
+ addedAt: Date | null;
337
+ completedAt: Date | null;
338
+ updatedAt: Date | null;
339
+ due: {
340
+ isRecurring: boolean;
341
+ string: string;
342
+ date: string;
343
+ datetime?: string | null | undefined;
344
+ timezone?: string | null | undefined;
345
+ lang?: string | null | undefined;
346
+ } | null;
347
+ priority: number;
348
+ childOrder: number;
349
+ content: string;
350
+ description: string;
351
+ dayOrder: number;
352
+ isCollapsed: boolean;
353
+ }, {
354
+ id: string;
355
+ userId: string;
356
+ projectId: string;
357
+ sectionId: string | null;
358
+ parentId: string | null;
359
+ addedByUid: string | null;
360
+ assignedByUid: string | null;
361
+ responsibleUid: string | null;
362
+ labels: string[];
363
+ deadline: {
364
+ date: string;
365
+ lang: string;
366
+ } | null;
367
+ duration: {
368
+ amount: number;
369
+ unit: "minute" | "day";
370
+ } | null;
371
+ checked: boolean;
372
+ isDeleted: boolean;
373
+ addedAt: Date | null;
374
+ completedAt: Date | null;
375
+ updatedAt: Date | null;
376
+ due: {
377
+ isRecurring: boolean;
378
+ string: string;
379
+ date: string;
380
+ datetime?: string | null | undefined;
381
+ timezone?: string | null | undefined;
382
+ lang?: string | null | undefined;
383
+ } | null;
384
+ priority: number;
385
+ childOrder: number;
386
+ content: string;
387
+ description: string;
388
+ dayOrder: number;
389
+ isCollapsed: boolean;
390
+ isUncompletable: boolean;
391
+ }>>;
392
+ updateIntent: z.ZodCatch<z.ZodEnum<{
393
+ item_updated: "item_updated";
394
+ item_completed: "item_completed";
395
+ item_uncompleted: "item_uncompleted";
396
+ responsible_uid_changed: "responsible_uid_changed";
397
+ }>>;
398
+ }, z.core.$strip>>;
399
+ version: z.ZodEnum<{
400
+ 1: "1";
401
+ }>;
402
+ userId: z.ZodString;
403
+ initiator: z.ZodObject<{
404
+ id: z.ZodString;
405
+ fullName: z.ZodString;
406
+ email: z.ZodString;
407
+ imageId: z.ZodNullable<z.ZodString>;
408
+ isPremium: z.ZodBoolean;
409
+ }, z.core.$strip>;
410
+ triggeredAt: z.ZodCoercedDate<unknown>;
411
+ }, z.core.$strip>, z.ZodObject<{
412
+ eventName: z.ZodLiteral<"item:completed">;
413
+ eventData: z.ZodPipe<z.ZodObject<{
414
+ id: z.ZodString;
415
+ userId: z.ZodString;
416
+ projectId: z.ZodString;
417
+ sectionId: z.ZodNullable<z.ZodString>;
418
+ parentId: z.ZodNullable<z.ZodString>;
419
+ addedByUid: z.ZodNullable<z.ZodString>;
420
+ assignedByUid: z.ZodNullable<z.ZodString>;
421
+ responsibleUid: z.ZodNullable<z.ZodString>;
422
+ labels: z.ZodArray<z.ZodString>;
423
+ deadline: z.ZodNullable<z.ZodObject<{
424
+ date: z.ZodString;
425
+ lang: z.ZodString;
426
+ }, z.core.$strip>>;
427
+ duration: z.ZodNullable<z.ZodObject<{
428
+ amount: z.ZodNumber;
429
+ unit: z.ZodEnum<{
430
+ minute: "minute";
431
+ day: "day";
432
+ }>;
433
+ }, z.core.$strip>>;
434
+ checked: z.ZodBoolean;
435
+ isDeleted: z.ZodBoolean;
436
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
437
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
438
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
439
+ due: z.ZodNullable<z.ZodObject<{
440
+ isRecurring: z.ZodBoolean;
441
+ string: z.ZodString;
442
+ date: z.ZodString;
443
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
+ }, z.core.$strip>>;
447
+ priority: z.ZodNumber;
448
+ childOrder: z.ZodNumber;
449
+ content: z.ZodString;
450
+ description: z.ZodString;
451
+ dayOrder: z.ZodNumber;
452
+ isCollapsed: z.ZodBoolean;
453
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
454
+ }, z.core.$strip>, z.ZodTransform<{
455
+ isUncompletable: boolean;
456
+ url: string;
457
+ id: string;
458
+ userId: string;
459
+ projectId: string;
460
+ sectionId: string | null;
461
+ parentId: string | null;
462
+ addedByUid: string | null;
463
+ assignedByUid: string | null;
464
+ responsibleUid: string | null;
465
+ labels: string[];
466
+ deadline: {
467
+ date: string;
468
+ lang: string;
469
+ } | null;
470
+ duration: {
471
+ amount: number;
472
+ unit: "minute" | "day";
473
+ } | null;
474
+ checked: boolean;
475
+ isDeleted: boolean;
476
+ addedAt: Date | null;
477
+ completedAt: Date | null;
478
+ updatedAt: Date | null;
479
+ due: {
480
+ isRecurring: boolean;
481
+ string: string;
482
+ date: string;
483
+ datetime?: string | null | undefined;
484
+ timezone?: string | null | undefined;
485
+ lang?: string | null | undefined;
486
+ } | null;
487
+ priority: number;
488
+ childOrder: number;
489
+ content: string;
490
+ description: string;
491
+ dayOrder: number;
492
+ isCollapsed: boolean;
493
+ }, {
494
+ id: string;
495
+ userId: string;
496
+ projectId: string;
497
+ sectionId: string | null;
498
+ parentId: string | null;
499
+ addedByUid: string | null;
500
+ assignedByUid: string | null;
501
+ responsibleUid: string | null;
502
+ labels: string[];
503
+ deadline: {
504
+ date: string;
505
+ lang: string;
506
+ } | null;
507
+ duration: {
508
+ amount: number;
509
+ unit: "minute" | "day";
510
+ } | null;
511
+ checked: boolean;
512
+ isDeleted: boolean;
513
+ addedAt: Date | null;
514
+ completedAt: Date | null;
515
+ updatedAt: Date | null;
516
+ due: {
517
+ isRecurring: boolean;
518
+ string: string;
519
+ date: string;
520
+ datetime?: string | null | undefined;
521
+ timezone?: string | null | undefined;
522
+ lang?: string | null | undefined;
523
+ } | null;
524
+ priority: number;
525
+ childOrder: number;
526
+ content: string;
527
+ description: string;
528
+ dayOrder: number;
529
+ isCollapsed: boolean;
530
+ isUncompletable: boolean;
531
+ }>>;
532
+ version: z.ZodEnum<{
533
+ 1: "1";
534
+ }>;
535
+ userId: z.ZodString;
536
+ initiator: z.ZodObject<{
537
+ id: z.ZodString;
538
+ fullName: z.ZodString;
539
+ email: z.ZodString;
540
+ imageId: z.ZodNullable<z.ZodString>;
541
+ isPremium: z.ZodBoolean;
542
+ }, z.core.$strip>;
543
+ triggeredAt: z.ZodCoercedDate<unknown>;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ eventName: z.ZodLiteral<"item:uncompleted">;
546
+ eventData: z.ZodPipe<z.ZodObject<{
547
+ id: z.ZodString;
548
+ userId: z.ZodString;
549
+ projectId: z.ZodString;
550
+ sectionId: z.ZodNullable<z.ZodString>;
551
+ parentId: z.ZodNullable<z.ZodString>;
552
+ addedByUid: z.ZodNullable<z.ZodString>;
553
+ assignedByUid: z.ZodNullable<z.ZodString>;
554
+ responsibleUid: z.ZodNullable<z.ZodString>;
555
+ labels: z.ZodArray<z.ZodString>;
556
+ deadline: z.ZodNullable<z.ZodObject<{
557
+ date: z.ZodString;
558
+ lang: z.ZodString;
559
+ }, z.core.$strip>>;
560
+ duration: z.ZodNullable<z.ZodObject<{
561
+ amount: z.ZodNumber;
562
+ unit: z.ZodEnum<{
563
+ minute: "minute";
564
+ day: "day";
565
+ }>;
566
+ }, z.core.$strip>>;
567
+ checked: z.ZodBoolean;
568
+ isDeleted: z.ZodBoolean;
569
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
570
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
571
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
572
+ due: z.ZodNullable<z.ZodObject<{
573
+ isRecurring: z.ZodBoolean;
574
+ string: z.ZodString;
575
+ date: z.ZodString;
576
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ }, z.core.$strip>>;
580
+ priority: z.ZodNumber;
581
+ childOrder: z.ZodNumber;
582
+ content: z.ZodString;
583
+ description: z.ZodString;
584
+ dayOrder: z.ZodNumber;
585
+ isCollapsed: z.ZodBoolean;
586
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
587
+ }, z.core.$strip>, z.ZodTransform<{
588
+ isUncompletable: boolean;
589
+ url: string;
590
+ id: string;
591
+ userId: string;
592
+ projectId: string;
593
+ sectionId: string | null;
594
+ parentId: string | null;
595
+ addedByUid: string | null;
596
+ assignedByUid: string | null;
597
+ responsibleUid: string | null;
598
+ labels: string[];
599
+ deadline: {
600
+ date: string;
601
+ lang: string;
602
+ } | null;
603
+ duration: {
604
+ amount: number;
605
+ unit: "minute" | "day";
606
+ } | null;
607
+ checked: boolean;
608
+ isDeleted: boolean;
609
+ addedAt: Date | null;
610
+ completedAt: Date | null;
611
+ updatedAt: Date | null;
612
+ due: {
613
+ isRecurring: boolean;
614
+ string: string;
615
+ date: string;
616
+ datetime?: string | null | undefined;
617
+ timezone?: string | null | undefined;
618
+ lang?: string | null | undefined;
619
+ } | null;
620
+ priority: number;
621
+ childOrder: number;
622
+ content: string;
623
+ description: string;
624
+ dayOrder: number;
625
+ isCollapsed: boolean;
626
+ }, {
627
+ id: string;
628
+ userId: string;
629
+ projectId: string;
630
+ sectionId: string | null;
631
+ parentId: string | null;
632
+ addedByUid: string | null;
633
+ assignedByUid: string | null;
634
+ responsibleUid: string | null;
635
+ labels: string[];
636
+ deadline: {
637
+ date: string;
638
+ lang: string;
639
+ } | null;
640
+ duration: {
641
+ amount: number;
642
+ unit: "minute" | "day";
643
+ } | null;
644
+ checked: boolean;
645
+ isDeleted: boolean;
646
+ addedAt: Date | null;
647
+ completedAt: Date | null;
648
+ updatedAt: Date | null;
649
+ due: {
650
+ isRecurring: boolean;
651
+ string: string;
652
+ date: string;
653
+ datetime?: string | null | undefined;
654
+ timezone?: string | null | undefined;
655
+ lang?: string | null | undefined;
656
+ } | null;
657
+ priority: number;
658
+ childOrder: number;
659
+ content: string;
660
+ description: string;
661
+ dayOrder: number;
662
+ isCollapsed: boolean;
663
+ isUncompletable: boolean;
664
+ }>>;
665
+ version: z.ZodEnum<{
666
+ 1: "1";
667
+ }>;
668
+ userId: z.ZodString;
669
+ initiator: z.ZodObject<{
670
+ id: z.ZodString;
671
+ fullName: z.ZodString;
672
+ email: z.ZodString;
673
+ imageId: z.ZodNullable<z.ZodString>;
674
+ isPremium: z.ZodBoolean;
675
+ }, z.core.$strip>;
676
+ triggeredAt: z.ZodCoercedDate<unknown>;
677
+ }, z.core.$strip>, z.ZodObject<{
678
+ eventName: z.ZodLiteral<"item:deleted">;
679
+ eventData: z.ZodPipe<z.ZodObject<{
680
+ id: z.ZodString;
681
+ userId: z.ZodString;
682
+ projectId: z.ZodString;
683
+ sectionId: z.ZodNullable<z.ZodString>;
684
+ parentId: z.ZodNullable<z.ZodString>;
685
+ addedByUid: z.ZodNullable<z.ZodString>;
686
+ assignedByUid: z.ZodNullable<z.ZodString>;
687
+ responsibleUid: z.ZodNullable<z.ZodString>;
688
+ labels: z.ZodArray<z.ZodString>;
689
+ deadline: z.ZodNullable<z.ZodObject<{
690
+ date: z.ZodString;
691
+ lang: z.ZodString;
692
+ }, z.core.$strip>>;
693
+ duration: z.ZodNullable<z.ZodObject<{
694
+ amount: z.ZodNumber;
695
+ unit: z.ZodEnum<{
696
+ minute: "minute";
697
+ day: "day";
698
+ }>;
699
+ }, z.core.$strip>>;
700
+ checked: z.ZodBoolean;
701
+ isDeleted: z.ZodBoolean;
702
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
703
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
704
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
705
+ due: z.ZodNullable<z.ZodObject<{
706
+ isRecurring: z.ZodBoolean;
707
+ string: z.ZodString;
708
+ date: z.ZodString;
709
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
710
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
+ }, z.core.$strip>>;
713
+ priority: z.ZodNumber;
714
+ childOrder: z.ZodNumber;
715
+ content: z.ZodString;
716
+ description: z.ZodString;
717
+ dayOrder: z.ZodNumber;
718
+ isCollapsed: z.ZodBoolean;
719
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
720
+ }, z.core.$strip>, z.ZodTransform<{
721
+ isUncompletable: boolean;
722
+ url: string;
723
+ id: string;
724
+ userId: string;
725
+ projectId: string;
726
+ sectionId: string | null;
727
+ parentId: string | null;
728
+ addedByUid: string | null;
729
+ assignedByUid: string | null;
730
+ responsibleUid: string | null;
731
+ labels: string[];
732
+ deadline: {
733
+ date: string;
734
+ lang: string;
735
+ } | null;
736
+ duration: {
737
+ amount: number;
738
+ unit: "minute" | "day";
739
+ } | null;
740
+ checked: boolean;
741
+ isDeleted: boolean;
742
+ addedAt: Date | null;
743
+ completedAt: Date | null;
744
+ updatedAt: Date | null;
745
+ due: {
746
+ isRecurring: boolean;
747
+ string: string;
748
+ date: string;
749
+ datetime?: string | null | undefined;
750
+ timezone?: string | null | undefined;
751
+ lang?: string | null | undefined;
752
+ } | null;
753
+ priority: number;
754
+ childOrder: number;
755
+ content: string;
756
+ description: string;
757
+ dayOrder: number;
758
+ isCollapsed: boolean;
759
+ }, {
760
+ id: string;
761
+ userId: string;
762
+ projectId: string;
763
+ sectionId: string | null;
764
+ parentId: string | null;
765
+ addedByUid: string | null;
766
+ assignedByUid: string | null;
767
+ responsibleUid: string | null;
768
+ labels: string[];
769
+ deadline: {
770
+ date: string;
771
+ lang: string;
772
+ } | null;
773
+ duration: {
774
+ amount: number;
775
+ unit: "minute" | "day";
776
+ } | null;
777
+ checked: boolean;
778
+ isDeleted: boolean;
779
+ addedAt: Date | null;
780
+ completedAt: Date | null;
781
+ updatedAt: Date | null;
782
+ due: {
783
+ isRecurring: boolean;
784
+ string: string;
785
+ date: string;
786
+ datetime?: string | null | undefined;
787
+ timezone?: string | null | undefined;
788
+ lang?: string | null | undefined;
789
+ } | null;
790
+ priority: number;
791
+ childOrder: number;
792
+ content: string;
793
+ description: string;
794
+ dayOrder: number;
795
+ isCollapsed: boolean;
796
+ isUncompletable: boolean;
797
+ }>>;
798
+ version: z.ZodEnum<{
799
+ 1: "1";
800
+ }>;
801
+ userId: z.ZodString;
802
+ initiator: z.ZodObject<{
803
+ id: z.ZodString;
804
+ fullName: z.ZodString;
805
+ email: z.ZodString;
806
+ imageId: z.ZodNullable<z.ZodString>;
807
+ isPremium: z.ZodBoolean;
808
+ }, z.core.$strip>;
809
+ triggeredAt: z.ZodCoercedDate<unknown>;
810
+ }, z.core.$strip>, z.ZodObject<{
811
+ eventName: z.ZodLiteral<"note:added">;
812
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
813
+ id: z.ZodString;
814
+ content: z.ZodString;
815
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
816
+ postedUid: z.ZodNullable<z.ZodString>;
817
+ fileAttachment: z.ZodNullable<z.ZodObject<{
818
+ resourceType: z.ZodString;
819
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
821
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
823
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
824
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
825
+ pending: "pending";
826
+ completed: "completed";
827
+ }>>>;
828
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
830
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
831
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
832
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
833
+ }, z.core.$strip>>;
834
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
835
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
836
+ isDeleted: z.ZodBoolean;
837
+ itemId: z.ZodString;
838
+ url: z.ZodString;
839
+ item: z.ZodPipe<z.ZodObject<{
840
+ id: z.ZodString;
841
+ userId: z.ZodString;
842
+ projectId: z.ZodString;
843
+ sectionId: z.ZodNullable<z.ZodString>;
844
+ parentId: z.ZodNullable<z.ZodString>;
845
+ addedByUid: z.ZodNullable<z.ZodString>;
846
+ assignedByUid: z.ZodNullable<z.ZodString>;
847
+ responsibleUid: z.ZodNullable<z.ZodString>;
848
+ labels: z.ZodArray<z.ZodString>;
849
+ deadline: z.ZodNullable<z.ZodObject<{
850
+ date: z.ZodString;
851
+ lang: z.ZodString;
852
+ }, z.core.$strip>>;
853
+ duration: z.ZodNullable<z.ZodObject<{
854
+ amount: z.ZodNumber;
855
+ unit: z.ZodEnum<{
856
+ minute: "minute";
857
+ day: "day";
858
+ }>;
859
+ }, z.core.$strip>>;
860
+ checked: z.ZodBoolean;
861
+ isDeleted: z.ZodBoolean;
862
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
863
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
864
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
865
+ due: z.ZodNullable<z.ZodObject<{
866
+ isRecurring: z.ZodBoolean;
867
+ string: z.ZodString;
868
+ date: z.ZodString;
869
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
871
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
+ }, z.core.$strip>>;
873
+ priority: z.ZodNumber;
874
+ childOrder: z.ZodNumber;
875
+ content: z.ZodString;
876
+ description: z.ZodString;
877
+ dayOrder: z.ZodNumber;
878
+ isCollapsed: z.ZodBoolean;
879
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
880
+ }, z.core.$strip>, z.ZodTransform<{
881
+ isUncompletable: boolean;
882
+ url: string;
883
+ id: string;
884
+ userId: string;
885
+ projectId: string;
886
+ sectionId: string | null;
887
+ parentId: string | null;
888
+ addedByUid: string | null;
889
+ assignedByUid: string | null;
890
+ responsibleUid: string | null;
891
+ labels: string[];
892
+ deadline: {
893
+ date: string;
894
+ lang: string;
895
+ } | null;
896
+ duration: {
897
+ amount: number;
898
+ unit: "minute" | "day";
899
+ } | null;
900
+ checked: boolean;
901
+ isDeleted: boolean;
902
+ addedAt: Date | null;
903
+ completedAt: Date | null;
904
+ updatedAt: Date | null;
905
+ due: {
906
+ isRecurring: boolean;
907
+ string: string;
908
+ date: string;
909
+ datetime?: string | null | undefined;
910
+ timezone?: string | null | undefined;
911
+ lang?: string | null | undefined;
912
+ } | null;
913
+ priority: number;
914
+ childOrder: number;
915
+ content: string;
916
+ description: string;
917
+ dayOrder: number;
918
+ isCollapsed: boolean;
919
+ }, {
920
+ id: string;
921
+ userId: string;
922
+ projectId: string;
923
+ sectionId: string | null;
924
+ parentId: string | null;
925
+ addedByUid: string | null;
926
+ assignedByUid: string | null;
927
+ responsibleUid: string | null;
928
+ labels: string[];
929
+ deadline: {
930
+ date: string;
931
+ lang: string;
932
+ } | null;
933
+ duration: {
934
+ amount: number;
935
+ unit: "minute" | "day";
936
+ } | null;
937
+ checked: boolean;
938
+ isDeleted: boolean;
939
+ addedAt: Date | null;
940
+ completedAt: Date | null;
941
+ updatedAt: Date | null;
942
+ due: {
943
+ isRecurring: boolean;
944
+ string: string;
945
+ date: string;
946
+ datetime?: string | null | undefined;
947
+ timezone?: string | null | undefined;
948
+ lang?: string | null | undefined;
949
+ } | null;
950
+ priority: number;
951
+ childOrder: number;
952
+ content: string;
953
+ description: string;
954
+ dayOrder: number;
955
+ isCollapsed: boolean;
956
+ isUncompletable: boolean;
957
+ }>>;
958
+ }, z.core.$strict>, z.ZodTransform<{
959
+ taskId: string;
960
+ id: string;
961
+ content: string;
962
+ postedAt: Date | null;
963
+ postedUid: string | null;
964
+ fileAttachment: {
965
+ resourceType: string;
966
+ fileName?: string | null | undefined;
967
+ fileSize?: number | null | undefined;
968
+ fileType?: string | null | undefined;
969
+ fileUrl?: string | null | undefined;
970
+ fileDuration?: number | null | undefined;
971
+ uploadState?: "pending" | "completed" | null | undefined;
972
+ image?: string | null | undefined;
973
+ imageWidth?: number | null | undefined;
974
+ imageHeight?: number | null | undefined;
975
+ url?: string | null | undefined;
976
+ title?: string | null | undefined;
977
+ } | null;
978
+ uidsToNotify: string[] | null;
979
+ reactions: Record<string, string[]> | null;
980
+ isDeleted: boolean;
981
+ url: string;
982
+ item: {
983
+ isUncompletable: boolean;
984
+ url: string;
985
+ id: string;
986
+ userId: string;
987
+ projectId: string;
988
+ sectionId: string | null;
989
+ parentId: string | null;
990
+ addedByUid: string | null;
991
+ assignedByUid: string | null;
992
+ responsibleUid: string | null;
993
+ labels: string[];
994
+ deadline: {
995
+ date: string;
996
+ lang: string;
997
+ } | null;
998
+ duration: {
999
+ amount: number;
1000
+ unit: "minute" | "day";
1001
+ } | null;
1002
+ checked: boolean;
1003
+ isDeleted: boolean;
1004
+ addedAt: Date | null;
1005
+ completedAt: Date | null;
1006
+ updatedAt: Date | null;
1007
+ due: {
1008
+ isRecurring: boolean;
1009
+ string: string;
1010
+ date: string;
1011
+ datetime?: string | null | undefined;
1012
+ timezone?: string | null | undefined;
1013
+ lang?: string | null | undefined;
1014
+ } | null;
1015
+ priority: number;
1016
+ childOrder: number;
1017
+ content: string;
1018
+ description: string;
1019
+ dayOrder: number;
1020
+ isCollapsed: boolean;
1021
+ };
1022
+ }, {
1023
+ id: string;
1024
+ content: string;
1025
+ postedAt: Date | null;
1026
+ postedUid: string | null;
1027
+ fileAttachment: {
1028
+ resourceType: string;
1029
+ fileName?: string | null | undefined;
1030
+ fileSize?: number | null | undefined;
1031
+ fileType?: string | null | undefined;
1032
+ fileUrl?: string | null | undefined;
1033
+ fileDuration?: number | null | undefined;
1034
+ uploadState?: "pending" | "completed" | null | undefined;
1035
+ image?: string | null | undefined;
1036
+ imageWidth?: number | null | undefined;
1037
+ imageHeight?: number | null | undefined;
1038
+ url?: string | null | undefined;
1039
+ title?: string | null | undefined;
1040
+ } | null;
1041
+ uidsToNotify: string[] | null;
1042
+ reactions: Record<string, string[]> | null;
1043
+ isDeleted: boolean;
1044
+ itemId: string;
1045
+ url: string;
1046
+ item: {
1047
+ isUncompletable: boolean;
1048
+ url: string;
1049
+ id: string;
1050
+ userId: string;
1051
+ projectId: string;
1052
+ sectionId: string | null;
1053
+ parentId: string | null;
1054
+ addedByUid: string | null;
1055
+ assignedByUid: string | null;
1056
+ responsibleUid: string | null;
1057
+ labels: string[];
1058
+ deadline: {
1059
+ date: string;
1060
+ lang: string;
1061
+ } | null;
1062
+ duration: {
1063
+ amount: number;
1064
+ unit: "minute" | "day";
1065
+ } | null;
1066
+ checked: boolean;
1067
+ isDeleted: boolean;
1068
+ addedAt: Date | null;
1069
+ completedAt: Date | null;
1070
+ updatedAt: Date | null;
1071
+ due: {
1072
+ isRecurring: boolean;
1073
+ string: string;
1074
+ date: string;
1075
+ datetime?: string | null | undefined;
1076
+ timezone?: string | null | undefined;
1077
+ lang?: string | null | undefined;
1078
+ } | null;
1079
+ priority: number;
1080
+ childOrder: number;
1081
+ content: string;
1082
+ description: string;
1083
+ dayOrder: number;
1084
+ isCollapsed: boolean;
1085
+ };
1086
+ }>>, z.ZodObject<{
1087
+ id: z.ZodString;
1088
+ content: z.ZodString;
1089
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1090
+ postedUid: z.ZodNullable<z.ZodString>;
1091
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1092
+ resourceType: z.ZodString;
1093
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1094
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1095
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1096
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1097
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1098
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1099
+ pending: "pending";
1100
+ completed: "completed";
1101
+ }>>>;
1102
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1103
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1104
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1105
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1106
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1107
+ }, z.core.$strip>>;
1108
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1109
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1110
+ isDeleted: z.ZodBoolean;
1111
+ projectId: z.ZodString;
1112
+ }, z.core.$strict>]>;
1113
+ version: z.ZodEnum<{
1114
+ 1: "1";
1115
+ }>;
1116
+ userId: z.ZodString;
1117
+ initiator: z.ZodObject<{
1118
+ id: z.ZodString;
1119
+ fullName: z.ZodString;
1120
+ email: z.ZodString;
1121
+ imageId: z.ZodNullable<z.ZodString>;
1122
+ isPremium: z.ZodBoolean;
1123
+ }, z.core.$strip>;
1124
+ triggeredAt: z.ZodCoercedDate<unknown>;
1125
+ }, z.core.$strip>, z.ZodObject<{
1126
+ eventName: z.ZodLiteral<"note:updated">;
1127
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1128
+ id: z.ZodString;
1129
+ content: z.ZodString;
1130
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1131
+ postedUid: z.ZodNullable<z.ZodString>;
1132
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1133
+ resourceType: z.ZodString;
1134
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1136
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1137
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1139
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1140
+ pending: "pending";
1141
+ completed: "completed";
1142
+ }>>>;
1143
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1145
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1146
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1147
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1148
+ }, z.core.$strip>>;
1149
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1150
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1151
+ isDeleted: z.ZodBoolean;
1152
+ itemId: z.ZodString;
1153
+ url: z.ZodString;
1154
+ item: z.ZodPipe<z.ZodObject<{
1155
+ id: z.ZodString;
1156
+ userId: z.ZodString;
1157
+ projectId: z.ZodString;
1158
+ sectionId: z.ZodNullable<z.ZodString>;
1159
+ parentId: z.ZodNullable<z.ZodString>;
1160
+ addedByUid: z.ZodNullable<z.ZodString>;
1161
+ assignedByUid: z.ZodNullable<z.ZodString>;
1162
+ responsibleUid: z.ZodNullable<z.ZodString>;
1163
+ labels: z.ZodArray<z.ZodString>;
1164
+ deadline: z.ZodNullable<z.ZodObject<{
1165
+ date: z.ZodString;
1166
+ lang: z.ZodString;
1167
+ }, z.core.$strip>>;
1168
+ duration: z.ZodNullable<z.ZodObject<{
1169
+ amount: z.ZodNumber;
1170
+ unit: z.ZodEnum<{
1171
+ minute: "minute";
1172
+ day: "day";
1173
+ }>;
1174
+ }, z.core.$strip>>;
1175
+ checked: z.ZodBoolean;
1176
+ isDeleted: z.ZodBoolean;
1177
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1178
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1179
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1180
+ due: z.ZodNullable<z.ZodObject<{
1181
+ isRecurring: z.ZodBoolean;
1182
+ string: z.ZodString;
1183
+ date: z.ZodString;
1184
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1185
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1186
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1187
+ }, z.core.$strip>>;
1188
+ priority: z.ZodNumber;
1189
+ childOrder: z.ZodNumber;
1190
+ content: z.ZodString;
1191
+ description: z.ZodString;
1192
+ dayOrder: z.ZodNumber;
1193
+ isCollapsed: z.ZodBoolean;
1194
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1195
+ }, z.core.$strip>, z.ZodTransform<{
1196
+ isUncompletable: boolean;
1197
+ url: string;
1198
+ id: string;
1199
+ userId: string;
1200
+ projectId: string;
1201
+ sectionId: string | null;
1202
+ parentId: string | null;
1203
+ addedByUid: string | null;
1204
+ assignedByUid: string | null;
1205
+ responsibleUid: string | null;
1206
+ labels: string[];
1207
+ deadline: {
1208
+ date: string;
1209
+ lang: string;
1210
+ } | null;
1211
+ duration: {
1212
+ amount: number;
1213
+ unit: "minute" | "day";
1214
+ } | null;
1215
+ checked: boolean;
1216
+ isDeleted: boolean;
1217
+ addedAt: Date | null;
1218
+ completedAt: Date | null;
1219
+ updatedAt: Date | null;
1220
+ due: {
1221
+ isRecurring: boolean;
1222
+ string: string;
1223
+ date: string;
1224
+ datetime?: string | null | undefined;
1225
+ timezone?: string | null | undefined;
1226
+ lang?: string | null | undefined;
1227
+ } | null;
1228
+ priority: number;
1229
+ childOrder: number;
1230
+ content: string;
1231
+ description: string;
1232
+ dayOrder: number;
1233
+ isCollapsed: boolean;
1234
+ }, {
1235
+ id: string;
1236
+ userId: string;
1237
+ projectId: string;
1238
+ sectionId: string | null;
1239
+ parentId: string | null;
1240
+ addedByUid: string | null;
1241
+ assignedByUid: string | null;
1242
+ responsibleUid: string | null;
1243
+ labels: string[];
1244
+ deadline: {
1245
+ date: string;
1246
+ lang: string;
1247
+ } | null;
1248
+ duration: {
1249
+ amount: number;
1250
+ unit: "minute" | "day";
1251
+ } | null;
1252
+ checked: boolean;
1253
+ isDeleted: boolean;
1254
+ addedAt: Date | null;
1255
+ completedAt: Date | null;
1256
+ updatedAt: Date | null;
1257
+ due: {
1258
+ isRecurring: boolean;
1259
+ string: string;
1260
+ date: string;
1261
+ datetime?: string | null | undefined;
1262
+ timezone?: string | null | undefined;
1263
+ lang?: string | null | undefined;
1264
+ } | null;
1265
+ priority: number;
1266
+ childOrder: number;
1267
+ content: string;
1268
+ description: string;
1269
+ dayOrder: number;
1270
+ isCollapsed: boolean;
1271
+ isUncompletable: boolean;
1272
+ }>>;
1273
+ }, z.core.$strict>, z.ZodTransform<{
1274
+ taskId: string;
1275
+ id: string;
1276
+ content: string;
1277
+ postedAt: Date | null;
1278
+ postedUid: string | null;
1279
+ fileAttachment: {
1280
+ resourceType: string;
1281
+ fileName?: string | null | undefined;
1282
+ fileSize?: number | null | undefined;
1283
+ fileType?: string | null | undefined;
1284
+ fileUrl?: string | null | undefined;
1285
+ fileDuration?: number | null | undefined;
1286
+ uploadState?: "pending" | "completed" | null | undefined;
1287
+ image?: string | null | undefined;
1288
+ imageWidth?: number | null | undefined;
1289
+ imageHeight?: number | null | undefined;
1290
+ url?: string | null | undefined;
1291
+ title?: string | null | undefined;
1292
+ } | null;
1293
+ uidsToNotify: string[] | null;
1294
+ reactions: Record<string, string[]> | null;
1295
+ isDeleted: boolean;
1296
+ url: string;
1297
+ item: {
1298
+ isUncompletable: boolean;
1299
+ url: string;
1300
+ id: string;
1301
+ userId: string;
1302
+ projectId: string;
1303
+ sectionId: string | null;
1304
+ parentId: string | null;
1305
+ addedByUid: string | null;
1306
+ assignedByUid: string | null;
1307
+ responsibleUid: string | null;
1308
+ labels: string[];
1309
+ deadline: {
1310
+ date: string;
1311
+ lang: string;
1312
+ } | null;
1313
+ duration: {
1314
+ amount: number;
1315
+ unit: "minute" | "day";
1316
+ } | null;
1317
+ checked: boolean;
1318
+ isDeleted: boolean;
1319
+ addedAt: Date | null;
1320
+ completedAt: Date | null;
1321
+ updatedAt: Date | null;
1322
+ due: {
1323
+ isRecurring: boolean;
1324
+ string: string;
1325
+ date: string;
1326
+ datetime?: string | null | undefined;
1327
+ timezone?: string | null | undefined;
1328
+ lang?: string | null | undefined;
1329
+ } | null;
1330
+ priority: number;
1331
+ childOrder: number;
1332
+ content: string;
1333
+ description: string;
1334
+ dayOrder: number;
1335
+ isCollapsed: boolean;
1336
+ };
1337
+ }, {
1338
+ id: string;
1339
+ content: string;
1340
+ postedAt: Date | null;
1341
+ postedUid: string | null;
1342
+ fileAttachment: {
1343
+ resourceType: string;
1344
+ fileName?: string | null | undefined;
1345
+ fileSize?: number | null | undefined;
1346
+ fileType?: string | null | undefined;
1347
+ fileUrl?: string | null | undefined;
1348
+ fileDuration?: number | null | undefined;
1349
+ uploadState?: "pending" | "completed" | null | undefined;
1350
+ image?: string | null | undefined;
1351
+ imageWidth?: number | null | undefined;
1352
+ imageHeight?: number | null | undefined;
1353
+ url?: string | null | undefined;
1354
+ title?: string | null | undefined;
1355
+ } | null;
1356
+ uidsToNotify: string[] | null;
1357
+ reactions: Record<string, string[]> | null;
1358
+ isDeleted: boolean;
1359
+ itemId: string;
1360
+ url: string;
1361
+ item: {
1362
+ isUncompletable: boolean;
1363
+ url: string;
1364
+ id: string;
1365
+ userId: string;
1366
+ projectId: string;
1367
+ sectionId: string | null;
1368
+ parentId: string | null;
1369
+ addedByUid: string | null;
1370
+ assignedByUid: string | null;
1371
+ responsibleUid: string | null;
1372
+ labels: string[];
1373
+ deadline: {
1374
+ date: string;
1375
+ lang: string;
1376
+ } | null;
1377
+ duration: {
1378
+ amount: number;
1379
+ unit: "minute" | "day";
1380
+ } | null;
1381
+ checked: boolean;
1382
+ isDeleted: boolean;
1383
+ addedAt: Date | null;
1384
+ completedAt: Date | null;
1385
+ updatedAt: Date | null;
1386
+ due: {
1387
+ isRecurring: boolean;
1388
+ string: string;
1389
+ date: string;
1390
+ datetime?: string | null | undefined;
1391
+ timezone?: string | null | undefined;
1392
+ lang?: string | null | undefined;
1393
+ } | null;
1394
+ priority: number;
1395
+ childOrder: number;
1396
+ content: string;
1397
+ description: string;
1398
+ dayOrder: number;
1399
+ isCollapsed: boolean;
1400
+ };
1401
+ }>>, z.ZodObject<{
1402
+ id: z.ZodString;
1403
+ content: z.ZodString;
1404
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1405
+ postedUid: z.ZodNullable<z.ZodString>;
1406
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1407
+ resourceType: z.ZodString;
1408
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1409
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1410
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1411
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1412
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1413
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1414
+ pending: "pending";
1415
+ completed: "completed";
1416
+ }>>>;
1417
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1418
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1419
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1420
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1421
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1422
+ }, z.core.$strip>>;
1423
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1424
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1425
+ isDeleted: z.ZodBoolean;
1426
+ projectId: z.ZodString;
1427
+ }, z.core.$strict>]>;
1428
+ version: z.ZodEnum<{
1429
+ 1: "1";
1430
+ }>;
1431
+ userId: z.ZodString;
1432
+ initiator: z.ZodObject<{
1433
+ id: z.ZodString;
1434
+ fullName: z.ZodString;
1435
+ email: z.ZodString;
1436
+ imageId: z.ZodNullable<z.ZodString>;
1437
+ isPremium: z.ZodBoolean;
1438
+ }, z.core.$strip>;
1439
+ triggeredAt: z.ZodCoercedDate<unknown>;
1440
+ }, z.core.$strip>, z.ZodObject<{
1441
+ eventName: z.ZodLiteral<"note:deleted">;
1442
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1443
+ id: z.ZodString;
1444
+ content: z.ZodString;
1445
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1446
+ postedUid: z.ZodNullable<z.ZodString>;
1447
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1448
+ resourceType: z.ZodString;
1449
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1450
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1451
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1452
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1454
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1455
+ pending: "pending";
1456
+ completed: "completed";
1457
+ }>>>;
1458
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1459
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1460
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1461
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1462
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1463
+ }, z.core.$strip>>;
1464
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1465
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1466
+ isDeleted: z.ZodBoolean;
1467
+ itemId: z.ZodString;
1468
+ url: z.ZodString;
1469
+ item: z.ZodPipe<z.ZodObject<{
1470
+ id: z.ZodString;
1471
+ userId: z.ZodString;
1472
+ projectId: z.ZodString;
1473
+ sectionId: z.ZodNullable<z.ZodString>;
1474
+ parentId: z.ZodNullable<z.ZodString>;
1475
+ addedByUid: z.ZodNullable<z.ZodString>;
1476
+ assignedByUid: z.ZodNullable<z.ZodString>;
1477
+ responsibleUid: z.ZodNullable<z.ZodString>;
1478
+ labels: z.ZodArray<z.ZodString>;
1479
+ deadline: z.ZodNullable<z.ZodObject<{
1480
+ date: z.ZodString;
1481
+ lang: z.ZodString;
1482
+ }, z.core.$strip>>;
1483
+ duration: z.ZodNullable<z.ZodObject<{
1484
+ amount: z.ZodNumber;
1485
+ unit: z.ZodEnum<{
1486
+ minute: "minute";
1487
+ day: "day";
1488
+ }>;
1489
+ }, z.core.$strip>>;
1490
+ checked: z.ZodBoolean;
1491
+ isDeleted: z.ZodBoolean;
1492
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1493
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1494
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1495
+ due: z.ZodNullable<z.ZodObject<{
1496
+ isRecurring: z.ZodBoolean;
1497
+ string: z.ZodString;
1498
+ date: z.ZodString;
1499
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1501
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1502
+ }, z.core.$strip>>;
1503
+ priority: z.ZodNumber;
1504
+ childOrder: z.ZodNumber;
1505
+ content: z.ZodString;
1506
+ description: z.ZodString;
1507
+ dayOrder: z.ZodNumber;
1508
+ isCollapsed: z.ZodBoolean;
1509
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1510
+ }, z.core.$strip>, z.ZodTransform<{
1511
+ isUncompletable: boolean;
1512
+ url: string;
1513
+ id: string;
1514
+ userId: string;
1515
+ projectId: string;
1516
+ sectionId: string | null;
1517
+ parentId: string | null;
1518
+ addedByUid: string | null;
1519
+ assignedByUid: string | null;
1520
+ responsibleUid: string | null;
1521
+ labels: string[];
1522
+ deadline: {
1523
+ date: string;
1524
+ lang: string;
1525
+ } | null;
1526
+ duration: {
1527
+ amount: number;
1528
+ unit: "minute" | "day";
1529
+ } | null;
1530
+ checked: boolean;
1531
+ isDeleted: boolean;
1532
+ addedAt: Date | null;
1533
+ completedAt: Date | null;
1534
+ updatedAt: Date | null;
1535
+ due: {
1536
+ isRecurring: boolean;
1537
+ string: string;
1538
+ date: string;
1539
+ datetime?: string | null | undefined;
1540
+ timezone?: string | null | undefined;
1541
+ lang?: string | null | undefined;
1542
+ } | null;
1543
+ priority: number;
1544
+ childOrder: number;
1545
+ content: string;
1546
+ description: string;
1547
+ dayOrder: number;
1548
+ isCollapsed: boolean;
1549
+ }, {
1550
+ id: string;
1551
+ userId: string;
1552
+ projectId: string;
1553
+ sectionId: string | null;
1554
+ parentId: string | null;
1555
+ addedByUid: string | null;
1556
+ assignedByUid: string | null;
1557
+ responsibleUid: string | null;
1558
+ labels: string[];
1559
+ deadline: {
1560
+ date: string;
1561
+ lang: string;
1562
+ } | null;
1563
+ duration: {
1564
+ amount: number;
1565
+ unit: "minute" | "day";
1566
+ } | null;
1567
+ checked: boolean;
1568
+ isDeleted: boolean;
1569
+ addedAt: Date | null;
1570
+ completedAt: Date | null;
1571
+ updatedAt: Date | null;
1572
+ due: {
1573
+ isRecurring: boolean;
1574
+ string: string;
1575
+ date: string;
1576
+ datetime?: string | null | undefined;
1577
+ timezone?: string | null | undefined;
1578
+ lang?: string | null | undefined;
1579
+ } | null;
1580
+ priority: number;
1581
+ childOrder: number;
1582
+ content: string;
1583
+ description: string;
1584
+ dayOrder: number;
1585
+ isCollapsed: boolean;
1586
+ isUncompletable: boolean;
1587
+ }>>;
1588
+ }, z.core.$strict>, z.ZodTransform<{
1589
+ taskId: string;
1590
+ id: string;
1591
+ content: string;
1592
+ postedAt: Date | null;
1593
+ postedUid: string | null;
1594
+ fileAttachment: {
1595
+ resourceType: string;
1596
+ fileName?: string | null | undefined;
1597
+ fileSize?: number | null | undefined;
1598
+ fileType?: string | null | undefined;
1599
+ fileUrl?: string | null | undefined;
1600
+ fileDuration?: number | null | undefined;
1601
+ uploadState?: "pending" | "completed" | null | undefined;
1602
+ image?: string | null | undefined;
1603
+ imageWidth?: number | null | undefined;
1604
+ imageHeight?: number | null | undefined;
1605
+ url?: string | null | undefined;
1606
+ title?: string | null | undefined;
1607
+ } | null;
1608
+ uidsToNotify: string[] | null;
1609
+ reactions: Record<string, string[]> | null;
1610
+ isDeleted: boolean;
1611
+ url: string;
1612
+ item: {
1613
+ isUncompletable: boolean;
1614
+ url: string;
1615
+ id: string;
1616
+ userId: string;
1617
+ projectId: string;
1618
+ sectionId: string | null;
1619
+ parentId: string | null;
1620
+ addedByUid: string | null;
1621
+ assignedByUid: string | null;
1622
+ responsibleUid: string | null;
1623
+ labels: string[];
1624
+ deadline: {
1625
+ date: string;
1626
+ lang: string;
1627
+ } | null;
1628
+ duration: {
1629
+ amount: number;
1630
+ unit: "minute" | "day";
1631
+ } | null;
1632
+ checked: boolean;
1633
+ isDeleted: boolean;
1634
+ addedAt: Date | null;
1635
+ completedAt: Date | null;
1636
+ updatedAt: Date | null;
1637
+ due: {
1638
+ isRecurring: boolean;
1639
+ string: string;
1640
+ date: string;
1641
+ datetime?: string | null | undefined;
1642
+ timezone?: string | null | undefined;
1643
+ lang?: string | null | undefined;
1644
+ } | null;
1645
+ priority: number;
1646
+ childOrder: number;
1647
+ content: string;
1648
+ description: string;
1649
+ dayOrder: number;
1650
+ isCollapsed: boolean;
1651
+ };
1652
+ }, {
1653
+ id: string;
1654
+ content: string;
1655
+ postedAt: Date | null;
1656
+ postedUid: string | null;
1657
+ fileAttachment: {
1658
+ resourceType: string;
1659
+ fileName?: string | null | undefined;
1660
+ fileSize?: number | null | undefined;
1661
+ fileType?: string | null | undefined;
1662
+ fileUrl?: string | null | undefined;
1663
+ fileDuration?: number | null | undefined;
1664
+ uploadState?: "pending" | "completed" | null | undefined;
1665
+ image?: string | null | undefined;
1666
+ imageWidth?: number | null | undefined;
1667
+ imageHeight?: number | null | undefined;
1668
+ url?: string | null | undefined;
1669
+ title?: string | null | undefined;
1670
+ } | null;
1671
+ uidsToNotify: string[] | null;
1672
+ reactions: Record<string, string[]> | null;
1673
+ isDeleted: boolean;
1674
+ itemId: string;
1675
+ url: string;
1676
+ item: {
1677
+ isUncompletable: boolean;
1678
+ url: string;
1679
+ id: string;
1680
+ userId: string;
1681
+ projectId: string;
1682
+ sectionId: string | null;
1683
+ parentId: string | null;
1684
+ addedByUid: string | null;
1685
+ assignedByUid: string | null;
1686
+ responsibleUid: string | null;
1687
+ labels: string[];
1688
+ deadline: {
1689
+ date: string;
1690
+ lang: string;
1691
+ } | null;
1692
+ duration: {
1693
+ amount: number;
1694
+ unit: "minute" | "day";
1695
+ } | null;
1696
+ checked: boolean;
1697
+ isDeleted: boolean;
1698
+ addedAt: Date | null;
1699
+ completedAt: Date | null;
1700
+ updatedAt: Date | null;
1701
+ due: {
1702
+ isRecurring: boolean;
1703
+ string: string;
1704
+ date: string;
1705
+ datetime?: string | null | undefined;
1706
+ timezone?: string | null | undefined;
1707
+ lang?: string | null | undefined;
1708
+ } | null;
1709
+ priority: number;
1710
+ childOrder: number;
1711
+ content: string;
1712
+ description: string;
1713
+ dayOrder: number;
1714
+ isCollapsed: boolean;
1715
+ };
1716
+ }>>, z.ZodObject<{
1717
+ id: z.ZodString;
1718
+ content: z.ZodString;
1719
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1720
+ postedUid: z.ZodNullable<z.ZodString>;
1721
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1722
+ resourceType: z.ZodString;
1723
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1724
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1725
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1727
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1728
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1729
+ pending: "pending";
1730
+ completed: "completed";
1731
+ }>>>;
1732
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1733
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1734
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1735
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1736
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1737
+ }, z.core.$strip>>;
1738
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1739
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1740
+ isDeleted: z.ZodBoolean;
1741
+ projectId: z.ZodString;
1742
+ }, z.core.$strict>]>;
1743
+ version: z.ZodEnum<{
1744
+ 1: "1";
1745
+ }>;
1746
+ userId: z.ZodString;
1747
+ initiator: z.ZodObject<{
1748
+ id: z.ZodString;
1749
+ fullName: z.ZodString;
1750
+ email: z.ZodString;
1751
+ imageId: z.ZodNullable<z.ZodString>;
1752
+ isPremium: z.ZodBoolean;
1753
+ }, z.core.$strip>;
1754
+ triggeredAt: z.ZodCoercedDate<unknown>;
1755
+ }, z.core.$strip>, z.ZodObject<{
1756
+ eventName: z.ZodLiteral<"label:added">;
1757
+ eventData: z.ZodPipe<z.ZodObject<{
1758
+ id: z.ZodString;
1759
+ color: z.ZodString;
1760
+ isFavorite: z.ZodBoolean;
1761
+ name: z.ZodString;
1762
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1763
+ isDeleted: z.ZodBoolean;
1764
+ }, z.core.$strip>, z.ZodTransform<{
1765
+ order: number | null;
1766
+ id: string;
1767
+ color: string;
1768
+ isFavorite: boolean;
1769
+ name: string;
1770
+ isDeleted: boolean;
1771
+ }, {
1772
+ id: string;
1773
+ color: string;
1774
+ isFavorite: boolean;
1775
+ name: string;
1776
+ itemOrder: number | null;
1777
+ isDeleted: boolean;
1778
+ }>>;
1779
+ version: z.ZodEnum<{
1780
+ 1: "1";
1781
+ }>;
1782
+ userId: z.ZodString;
1783
+ initiator: z.ZodObject<{
1784
+ id: z.ZodString;
1785
+ fullName: z.ZodString;
1786
+ email: z.ZodString;
1787
+ imageId: z.ZodNullable<z.ZodString>;
1788
+ isPremium: z.ZodBoolean;
1789
+ }, z.core.$strip>;
1790
+ triggeredAt: z.ZodCoercedDate<unknown>;
1791
+ }, z.core.$strip>, z.ZodObject<{
1792
+ eventName: z.ZodLiteral<"label:updated">;
1793
+ eventData: z.ZodPipe<z.ZodObject<{
1794
+ id: z.ZodString;
1795
+ color: z.ZodString;
1796
+ isFavorite: z.ZodBoolean;
1797
+ name: z.ZodString;
1798
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1799
+ isDeleted: z.ZodBoolean;
1800
+ }, z.core.$strip>, z.ZodTransform<{
1801
+ order: number | null;
1802
+ id: string;
1803
+ color: string;
1804
+ isFavorite: boolean;
1805
+ name: string;
1806
+ isDeleted: boolean;
1807
+ }, {
1808
+ id: string;
1809
+ color: string;
1810
+ isFavorite: boolean;
1811
+ name: string;
1812
+ itemOrder: number | null;
1813
+ isDeleted: boolean;
1814
+ }>>;
1815
+ version: z.ZodEnum<{
1816
+ 1: "1";
1817
+ }>;
1818
+ userId: z.ZodString;
1819
+ initiator: z.ZodObject<{
1820
+ id: z.ZodString;
1821
+ fullName: z.ZodString;
1822
+ email: z.ZodString;
1823
+ imageId: z.ZodNullable<z.ZodString>;
1824
+ isPremium: z.ZodBoolean;
1825
+ }, z.core.$strip>;
1826
+ triggeredAt: z.ZodCoercedDate<unknown>;
1827
+ }, z.core.$strip>, z.ZodObject<{
1828
+ eventName: z.ZodLiteral<"label:deleted">;
1829
+ eventData: z.ZodPipe<z.ZodObject<{
1830
+ id: z.ZodString;
1831
+ color: z.ZodString;
1832
+ isFavorite: z.ZodBoolean;
1833
+ name: z.ZodString;
1834
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1835
+ isDeleted: z.ZodBoolean;
1836
+ }, z.core.$strip>, z.ZodTransform<{
1837
+ order: number | null;
1838
+ id: string;
1839
+ color: string;
1840
+ isFavorite: boolean;
1841
+ name: string;
1842
+ isDeleted: boolean;
1843
+ }, {
1844
+ id: string;
1845
+ color: string;
1846
+ isFavorite: boolean;
1847
+ name: string;
1848
+ itemOrder: number | null;
1849
+ isDeleted: boolean;
1850
+ }>>;
1851
+ version: z.ZodEnum<{
1852
+ 1: "1";
1853
+ }>;
1854
+ userId: z.ZodString;
1855
+ initiator: z.ZodObject<{
1856
+ id: z.ZodString;
1857
+ fullName: z.ZodString;
1858
+ email: z.ZodString;
1859
+ imageId: z.ZodNullable<z.ZodString>;
1860
+ isPremium: z.ZodBoolean;
1861
+ }, z.core.$strip>;
1862
+ triggeredAt: z.ZodCoercedDate<unknown>;
1863
+ }, z.core.$strip>, z.ZodObject<{
1864
+ eventName: z.ZodLiteral<"project:added">;
1865
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1866
+ url: string;
1867
+ id: string;
1868
+ canAssignTasks: boolean;
1869
+ childOrder: number;
1870
+ color: string;
1871
+ createdAt: Date | null;
1872
+ isArchived: boolean;
1873
+ isDeleted: boolean;
1874
+ isFavorite: boolean;
1875
+ isFrozen: boolean;
1876
+ name: string;
1877
+ updatedAt: Date | null;
1878
+ viewStyle: string;
1879
+ defaultOrder: number;
1880
+ description: string;
1881
+ isCollapsed: boolean;
1882
+ isShared: boolean;
1883
+ parentId: string | null;
1884
+ inboxProject: boolean;
1885
+ orderKey?: string | null | undefined;
1886
+ defaultOrderKey?: string | null | undefined;
1887
+ } | {
1888
+ url: string;
1889
+ id: string;
1890
+ canAssignTasks: boolean;
1891
+ childOrder: number;
1892
+ color: string;
1893
+ createdAt: Date | null;
1894
+ isArchived: boolean;
1895
+ isDeleted: boolean;
1896
+ isFavorite: boolean;
1897
+ isFrozen: boolean;
1898
+ name: string;
1899
+ updatedAt: Date | null;
1900
+ viewStyle: string;
1901
+ defaultOrder: number;
1902
+ description: string;
1903
+ isCollapsed: boolean;
1904
+ isShared: boolean;
1905
+ collaboratorRoleDefault: string;
1906
+ folderId: string | null;
1907
+ isInviteOnly: boolean | null;
1908
+ isLinkSharingEnabled: boolean;
1909
+ role: string | null;
1910
+ status: string;
1911
+ workspaceId: string;
1912
+ orderKey?: string | null | undefined;
1913
+ defaultOrderKey?: string | null | undefined;
1914
+ access?: {
1915
+ visibility: "restricted" | "team" | "public";
1916
+ } | undefined;
1917
+ }, unknown>>;
1918
+ version: z.ZodEnum<{
1919
+ 1: "1";
1920
+ }>;
1921
+ userId: z.ZodString;
1922
+ initiator: z.ZodObject<{
1923
+ id: z.ZodString;
1924
+ fullName: z.ZodString;
1925
+ email: z.ZodString;
1926
+ imageId: z.ZodNullable<z.ZodString>;
1927
+ isPremium: z.ZodBoolean;
1928
+ }, z.core.$strip>;
1929
+ triggeredAt: z.ZodCoercedDate<unknown>;
1930
+ }, z.core.$strip>, z.ZodObject<{
1931
+ eventName: z.ZodLiteral<"project:updated">;
1932
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1933
+ url: string;
1934
+ id: string;
1935
+ canAssignTasks: boolean;
1936
+ childOrder: number;
1937
+ color: string;
1938
+ createdAt: Date | null;
1939
+ isArchived: boolean;
1940
+ isDeleted: boolean;
1941
+ isFavorite: boolean;
1942
+ isFrozen: boolean;
1943
+ name: string;
1944
+ updatedAt: Date | null;
1945
+ viewStyle: string;
1946
+ defaultOrder: number;
1947
+ description: string;
1948
+ isCollapsed: boolean;
1949
+ isShared: boolean;
1950
+ parentId: string | null;
1951
+ inboxProject: boolean;
1952
+ orderKey?: string | null | undefined;
1953
+ defaultOrderKey?: string | null | undefined;
1954
+ } | {
1955
+ url: string;
1956
+ id: string;
1957
+ canAssignTasks: boolean;
1958
+ childOrder: number;
1959
+ color: string;
1960
+ createdAt: Date | null;
1961
+ isArchived: boolean;
1962
+ isDeleted: boolean;
1963
+ isFavorite: boolean;
1964
+ isFrozen: boolean;
1965
+ name: string;
1966
+ updatedAt: Date | null;
1967
+ viewStyle: string;
1968
+ defaultOrder: number;
1969
+ description: string;
1970
+ isCollapsed: boolean;
1971
+ isShared: boolean;
1972
+ collaboratorRoleDefault: string;
1973
+ folderId: string | null;
1974
+ isInviteOnly: boolean | null;
1975
+ isLinkSharingEnabled: boolean;
1976
+ role: string | null;
1977
+ status: string;
1978
+ workspaceId: string;
1979
+ orderKey?: string | null | undefined;
1980
+ defaultOrderKey?: string | null | undefined;
1981
+ access?: {
1982
+ visibility: "restricted" | "team" | "public";
1983
+ } | undefined;
1984
+ }, unknown>>;
1985
+ version: z.ZodEnum<{
1986
+ 1: "1";
1987
+ }>;
1988
+ userId: z.ZodString;
1989
+ initiator: z.ZodObject<{
1990
+ id: z.ZodString;
1991
+ fullName: z.ZodString;
1992
+ email: z.ZodString;
1993
+ imageId: z.ZodNullable<z.ZodString>;
1994
+ isPremium: z.ZodBoolean;
1995
+ }, z.core.$strip>;
1996
+ triggeredAt: z.ZodCoercedDate<unknown>;
1997
+ }, z.core.$strip>, z.ZodObject<{
1998
+ eventName: z.ZodLiteral<"project:deleted">;
1999
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2000
+ url: string;
2001
+ id: string;
2002
+ canAssignTasks: boolean;
2003
+ childOrder: number;
2004
+ color: string;
2005
+ createdAt: Date | null;
2006
+ isArchived: boolean;
2007
+ isDeleted: boolean;
2008
+ isFavorite: boolean;
2009
+ isFrozen: boolean;
2010
+ name: string;
2011
+ updatedAt: Date | null;
2012
+ viewStyle: string;
2013
+ defaultOrder: number;
2014
+ description: string;
2015
+ isCollapsed: boolean;
2016
+ isShared: boolean;
2017
+ parentId: string | null;
2018
+ inboxProject: boolean;
2019
+ orderKey?: string | null | undefined;
2020
+ defaultOrderKey?: string | null | undefined;
2021
+ } | {
2022
+ url: string;
2023
+ id: string;
2024
+ canAssignTasks: boolean;
2025
+ childOrder: number;
2026
+ color: string;
2027
+ createdAt: Date | null;
2028
+ isArchived: boolean;
2029
+ isDeleted: boolean;
2030
+ isFavorite: boolean;
2031
+ isFrozen: boolean;
2032
+ name: string;
2033
+ updatedAt: Date | null;
2034
+ viewStyle: string;
2035
+ defaultOrder: number;
2036
+ description: string;
2037
+ isCollapsed: boolean;
2038
+ isShared: boolean;
2039
+ collaboratorRoleDefault: string;
2040
+ folderId: string | null;
2041
+ isInviteOnly: boolean | null;
2042
+ isLinkSharingEnabled: boolean;
2043
+ role: string | null;
2044
+ status: string;
2045
+ workspaceId: string;
2046
+ orderKey?: string | null | undefined;
2047
+ defaultOrderKey?: string | null | undefined;
2048
+ access?: {
2049
+ visibility: "restricted" | "team" | "public";
2050
+ } | undefined;
2051
+ }, unknown>>;
2052
+ version: z.ZodEnum<{
2053
+ 1: "1";
2054
+ }>;
2055
+ userId: z.ZodString;
2056
+ initiator: z.ZodObject<{
2057
+ id: z.ZodString;
2058
+ fullName: z.ZodString;
2059
+ email: z.ZodString;
2060
+ imageId: z.ZodNullable<z.ZodString>;
2061
+ isPremium: z.ZodBoolean;
2062
+ }, z.core.$strip>;
2063
+ triggeredAt: z.ZodCoercedDate<unknown>;
2064
+ }, z.core.$strip>, z.ZodObject<{
2065
+ eventName: z.ZodLiteral<"project:archived">;
2066
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2067
+ url: string;
2068
+ id: string;
2069
+ canAssignTasks: boolean;
2070
+ childOrder: number;
2071
+ color: string;
2072
+ createdAt: Date | null;
2073
+ isArchived: boolean;
2074
+ isDeleted: boolean;
2075
+ isFavorite: boolean;
2076
+ isFrozen: boolean;
2077
+ name: string;
2078
+ updatedAt: Date | null;
2079
+ viewStyle: string;
2080
+ defaultOrder: number;
2081
+ description: string;
2082
+ isCollapsed: boolean;
2083
+ isShared: boolean;
2084
+ parentId: string | null;
2085
+ inboxProject: boolean;
2086
+ orderKey?: string | null | undefined;
2087
+ defaultOrderKey?: string | null | undefined;
2088
+ } | {
2089
+ url: string;
2090
+ id: string;
2091
+ canAssignTasks: boolean;
2092
+ childOrder: number;
2093
+ color: string;
2094
+ createdAt: Date | null;
2095
+ isArchived: boolean;
2096
+ isDeleted: boolean;
2097
+ isFavorite: boolean;
2098
+ isFrozen: boolean;
2099
+ name: string;
2100
+ updatedAt: Date | null;
2101
+ viewStyle: string;
2102
+ defaultOrder: number;
2103
+ description: string;
2104
+ isCollapsed: boolean;
2105
+ isShared: boolean;
2106
+ collaboratorRoleDefault: string;
2107
+ folderId: string | null;
2108
+ isInviteOnly: boolean | null;
2109
+ isLinkSharingEnabled: boolean;
2110
+ role: string | null;
2111
+ status: string;
2112
+ workspaceId: string;
2113
+ orderKey?: string | null | undefined;
2114
+ defaultOrderKey?: string | null | undefined;
2115
+ access?: {
2116
+ visibility: "restricted" | "team" | "public";
2117
+ } | undefined;
2118
+ }, unknown>>;
2119
+ version: z.ZodEnum<{
2120
+ 1: "1";
2121
+ }>;
2122
+ userId: z.ZodString;
2123
+ initiator: z.ZodObject<{
2124
+ id: z.ZodString;
2125
+ fullName: z.ZodString;
2126
+ email: z.ZodString;
2127
+ imageId: z.ZodNullable<z.ZodString>;
2128
+ isPremium: z.ZodBoolean;
2129
+ }, z.core.$strip>;
2130
+ triggeredAt: z.ZodCoercedDate<unknown>;
2131
+ }, z.core.$strip>, z.ZodObject<{
2132
+ eventName: z.ZodLiteral<"project:unarchived">;
2133
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2134
+ url: string;
2135
+ id: string;
2136
+ canAssignTasks: boolean;
2137
+ childOrder: number;
2138
+ color: string;
2139
+ createdAt: Date | null;
2140
+ isArchived: boolean;
2141
+ isDeleted: boolean;
2142
+ isFavorite: boolean;
2143
+ isFrozen: boolean;
2144
+ name: string;
2145
+ updatedAt: Date | null;
2146
+ viewStyle: string;
2147
+ defaultOrder: number;
2148
+ description: string;
2149
+ isCollapsed: boolean;
2150
+ isShared: boolean;
2151
+ parentId: string | null;
2152
+ inboxProject: boolean;
2153
+ orderKey?: string | null | undefined;
2154
+ defaultOrderKey?: string | null | undefined;
2155
+ } | {
2156
+ url: string;
2157
+ id: string;
2158
+ canAssignTasks: boolean;
2159
+ childOrder: number;
2160
+ color: string;
2161
+ createdAt: Date | null;
2162
+ isArchived: boolean;
2163
+ isDeleted: boolean;
2164
+ isFavorite: boolean;
2165
+ isFrozen: boolean;
2166
+ name: string;
2167
+ updatedAt: Date | null;
2168
+ viewStyle: string;
2169
+ defaultOrder: number;
2170
+ description: string;
2171
+ isCollapsed: boolean;
2172
+ isShared: boolean;
2173
+ collaboratorRoleDefault: string;
2174
+ folderId: string | null;
2175
+ isInviteOnly: boolean | null;
2176
+ isLinkSharingEnabled: boolean;
2177
+ role: string | null;
2178
+ status: string;
2179
+ workspaceId: string;
2180
+ orderKey?: string | null | undefined;
2181
+ defaultOrderKey?: string | null | undefined;
2182
+ access?: {
2183
+ visibility: "restricted" | "team" | "public";
2184
+ } | undefined;
2185
+ }, unknown>>;
2186
+ version: z.ZodEnum<{
2187
+ 1: "1";
2188
+ }>;
2189
+ userId: z.ZodString;
2190
+ initiator: z.ZodObject<{
2191
+ id: z.ZodString;
2192
+ fullName: z.ZodString;
2193
+ email: z.ZodString;
2194
+ imageId: z.ZodNullable<z.ZodString>;
2195
+ isPremium: z.ZodBoolean;
2196
+ }, z.core.$strip>;
2197
+ triggeredAt: z.ZodCoercedDate<unknown>;
2198
+ }, z.core.$strip>, z.ZodObject<{
2199
+ eventName: z.ZodLiteral<"section:added">;
2200
+ eventData: z.ZodPipe<z.ZodObject<{
2201
+ id: z.ZodString;
2202
+ userId: z.ZodString;
2203
+ projectId: z.ZodString;
2204
+ addedAt: z.ZodCoercedDate<unknown>;
2205
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2206
+ name: z.ZodString;
2207
+ sectionOrder: z.ZodNumber;
2208
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2209
+ isArchived: z.ZodBoolean;
2210
+ isDeleted: z.ZodBoolean;
2211
+ isCollapsed: z.ZodBoolean;
2212
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2213
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
2214
+ }, z.core.$strip>, z.ZodTransform<{
2215
+ url: string;
2216
+ id: string;
2217
+ userId: string;
2218
+ projectId: string;
2219
+ addedAt: Date;
2220
+ archivedAt: Date | null;
2221
+ name: string;
2222
+ sectionOrder: number;
2223
+ isArchived: boolean;
2224
+ isDeleted: boolean;
2225
+ isCollapsed: boolean;
2226
+ updatedAt: Date | null;
2227
+ description: string | null;
2228
+ orderKey?: string | null | undefined;
2229
+ }, {
2230
+ id: string;
2231
+ userId: string;
2232
+ projectId: string;
2233
+ addedAt: Date;
2234
+ archivedAt: Date | null;
2235
+ name: string;
2236
+ sectionOrder: number;
2237
+ isArchived: boolean;
2238
+ isDeleted: boolean;
2239
+ isCollapsed: boolean;
2240
+ updatedAt: Date | null;
2241
+ description: string | null;
2242
+ orderKey?: string | null | undefined;
2243
+ }>>;
2244
+ version: z.ZodEnum<{
2245
+ 1: "1";
2246
+ }>;
2247
+ userId: z.ZodString;
2248
+ initiator: z.ZodObject<{
2249
+ id: z.ZodString;
2250
+ fullName: z.ZodString;
2251
+ email: z.ZodString;
2252
+ imageId: z.ZodNullable<z.ZodString>;
2253
+ isPremium: z.ZodBoolean;
2254
+ }, z.core.$strip>;
2255
+ triggeredAt: z.ZodCoercedDate<unknown>;
2256
+ }, z.core.$strip>, z.ZodObject<{
2257
+ eventName: z.ZodLiteral<"section:updated">;
2258
+ eventData: z.ZodPipe<z.ZodObject<{
2259
+ id: z.ZodString;
2260
+ userId: z.ZodString;
2261
+ projectId: z.ZodString;
2262
+ addedAt: z.ZodCoercedDate<unknown>;
2263
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2264
+ name: z.ZodString;
2265
+ sectionOrder: z.ZodNumber;
2266
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2267
+ isArchived: z.ZodBoolean;
2268
+ isDeleted: z.ZodBoolean;
2269
+ isCollapsed: z.ZodBoolean;
2270
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2271
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
2272
+ }, z.core.$strip>, z.ZodTransform<{
2273
+ url: string;
2274
+ id: string;
2275
+ userId: string;
2276
+ projectId: string;
2277
+ addedAt: Date;
2278
+ archivedAt: Date | null;
2279
+ name: string;
2280
+ sectionOrder: number;
2281
+ isArchived: boolean;
2282
+ isDeleted: boolean;
2283
+ isCollapsed: boolean;
2284
+ updatedAt: Date | null;
2285
+ description: string | null;
2286
+ orderKey?: string | null | undefined;
2287
+ }, {
2288
+ id: string;
2289
+ userId: string;
2290
+ projectId: string;
2291
+ addedAt: Date;
2292
+ archivedAt: Date | null;
2293
+ name: string;
2294
+ sectionOrder: number;
2295
+ isArchived: boolean;
2296
+ isDeleted: boolean;
2297
+ isCollapsed: boolean;
2298
+ updatedAt: Date | null;
2299
+ description: string | null;
2300
+ orderKey?: string | null | undefined;
2301
+ }>>;
2302
+ version: z.ZodEnum<{
2303
+ 1: "1";
2304
+ }>;
2305
+ userId: z.ZodString;
2306
+ initiator: z.ZodObject<{
2307
+ id: z.ZodString;
2308
+ fullName: z.ZodString;
2309
+ email: z.ZodString;
2310
+ imageId: z.ZodNullable<z.ZodString>;
2311
+ isPremium: z.ZodBoolean;
2312
+ }, z.core.$strip>;
2313
+ triggeredAt: z.ZodCoercedDate<unknown>;
2314
+ }, z.core.$strip>, z.ZodObject<{
2315
+ eventName: z.ZodLiteral<"section:deleted">;
2316
+ eventData: z.ZodPipe<z.ZodObject<{
2317
+ id: z.ZodString;
2318
+ userId: z.ZodString;
2319
+ projectId: z.ZodString;
2320
+ addedAt: z.ZodCoercedDate<unknown>;
2321
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2322
+ name: z.ZodString;
2323
+ sectionOrder: z.ZodNumber;
2324
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2325
+ isArchived: z.ZodBoolean;
2326
+ isDeleted: z.ZodBoolean;
2327
+ isCollapsed: z.ZodBoolean;
2328
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2329
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
2330
+ }, z.core.$strip>, z.ZodTransform<{
2331
+ url: string;
2332
+ id: string;
2333
+ userId: string;
2334
+ projectId: string;
2335
+ addedAt: Date;
2336
+ archivedAt: Date | null;
2337
+ name: string;
2338
+ sectionOrder: number;
2339
+ isArchived: boolean;
2340
+ isDeleted: boolean;
2341
+ isCollapsed: boolean;
2342
+ updatedAt: Date | null;
2343
+ description: string | null;
2344
+ orderKey?: string | null | undefined;
2345
+ }, {
2346
+ id: string;
2347
+ userId: string;
2348
+ projectId: string;
2349
+ addedAt: Date;
2350
+ archivedAt: Date | null;
2351
+ name: string;
2352
+ sectionOrder: number;
2353
+ isArchived: boolean;
2354
+ isDeleted: boolean;
2355
+ isCollapsed: boolean;
2356
+ updatedAt: Date | null;
2357
+ description: string | null;
2358
+ orderKey?: string | null | undefined;
2359
+ }>>;
2360
+ version: z.ZodEnum<{
2361
+ 1: "1";
2362
+ }>;
2363
+ userId: z.ZodString;
2364
+ initiator: z.ZodObject<{
2365
+ id: z.ZodString;
2366
+ fullName: z.ZodString;
2367
+ email: z.ZodString;
2368
+ imageId: z.ZodNullable<z.ZodString>;
2369
+ isPremium: z.ZodBoolean;
2370
+ }, z.core.$strip>;
2371
+ triggeredAt: z.ZodCoercedDate<unknown>;
2372
+ }, z.core.$strip>, z.ZodObject<{
2373
+ eventName: z.ZodLiteral<"section:archived">;
2374
+ eventData: z.ZodPipe<z.ZodObject<{
2375
+ id: z.ZodString;
2376
+ userId: z.ZodString;
2377
+ projectId: z.ZodString;
2378
+ addedAt: z.ZodCoercedDate<unknown>;
2379
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2380
+ name: z.ZodString;
2381
+ sectionOrder: z.ZodNumber;
2382
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2383
+ isArchived: z.ZodBoolean;
2384
+ isDeleted: z.ZodBoolean;
2385
+ isCollapsed: z.ZodBoolean;
2386
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2387
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
2388
+ }, z.core.$strip>, z.ZodTransform<{
2389
+ url: string;
2390
+ id: string;
2391
+ userId: string;
2392
+ projectId: string;
2393
+ addedAt: Date;
2394
+ archivedAt: Date | null;
2395
+ name: string;
2396
+ sectionOrder: number;
2397
+ isArchived: boolean;
2398
+ isDeleted: boolean;
2399
+ isCollapsed: boolean;
2400
+ updatedAt: Date | null;
2401
+ description: string | null;
2402
+ orderKey?: string | null | undefined;
2403
+ }, {
2404
+ id: string;
2405
+ userId: string;
2406
+ projectId: string;
2407
+ addedAt: Date;
2408
+ archivedAt: Date | null;
2409
+ name: string;
2410
+ sectionOrder: number;
2411
+ isArchived: boolean;
2412
+ isDeleted: boolean;
2413
+ isCollapsed: boolean;
2414
+ updatedAt: Date | null;
2415
+ description: string | null;
2416
+ orderKey?: string | null | undefined;
2417
+ }>>;
2418
+ version: z.ZodEnum<{
2419
+ 1: "1";
2420
+ }>;
2421
+ userId: z.ZodString;
2422
+ initiator: z.ZodObject<{
2423
+ id: z.ZodString;
2424
+ fullName: z.ZodString;
2425
+ email: z.ZodString;
2426
+ imageId: z.ZodNullable<z.ZodString>;
2427
+ isPremium: z.ZodBoolean;
2428
+ }, z.core.$strip>;
2429
+ triggeredAt: z.ZodCoercedDate<unknown>;
2430
+ }, z.core.$strip>, z.ZodObject<{
2431
+ eventName: z.ZodLiteral<"section:unarchived">;
2432
+ eventData: z.ZodPipe<z.ZodObject<{
2433
+ id: z.ZodString;
2434
+ userId: z.ZodString;
2435
+ projectId: z.ZodString;
2436
+ addedAt: z.ZodCoercedDate<unknown>;
2437
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2438
+ name: z.ZodString;
2439
+ sectionOrder: z.ZodNumber;
2440
+ orderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2441
+ isArchived: z.ZodBoolean;
2442
+ isDeleted: z.ZodBoolean;
2443
+ isCollapsed: z.ZodBoolean;
2444
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2445
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
2446
+ }, z.core.$strip>, z.ZodTransform<{
2447
+ url: string;
2448
+ id: string;
2449
+ userId: string;
2450
+ projectId: string;
2451
+ addedAt: Date;
2452
+ archivedAt: Date | null;
2453
+ name: string;
2454
+ sectionOrder: number;
2455
+ isArchived: boolean;
2456
+ isDeleted: boolean;
2457
+ isCollapsed: boolean;
2458
+ updatedAt: Date | null;
2459
+ description: string | null;
2460
+ orderKey?: string | null | undefined;
2461
+ }, {
2462
+ id: string;
2463
+ userId: string;
2464
+ projectId: string;
2465
+ addedAt: Date;
2466
+ archivedAt: Date | null;
2467
+ name: string;
2468
+ sectionOrder: number;
2469
+ isArchived: boolean;
2470
+ isDeleted: boolean;
2471
+ isCollapsed: boolean;
2472
+ updatedAt: Date | null;
2473
+ description: string | null;
2474
+ orderKey?: string | null | undefined;
2475
+ }>>;
2476
+ version: z.ZodEnum<{
2477
+ 1: "1";
2478
+ }>;
2479
+ userId: z.ZodString;
2480
+ initiator: z.ZodObject<{
2481
+ id: z.ZodString;
2482
+ fullName: z.ZodString;
2483
+ email: z.ZodString;
2484
+ imageId: z.ZodNullable<z.ZodString>;
2485
+ isPremium: z.ZodBoolean;
2486
+ }, z.core.$strip>;
2487
+ triggeredAt: z.ZodCoercedDate<unknown>;
2488
+ }, z.core.$strip>, z.ZodObject<{
2489
+ eventName: z.ZodLiteral<"filter:added">;
2490
+ eventData: z.ZodObject<{
2491
+ id: z.ZodString;
2492
+ name: z.ZodString;
2493
+ query: z.ZodString;
2494
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2495
+ color: z.ZodString;
2496
+ isDeleted: z.ZodBoolean;
2497
+ isFavorite: z.ZodBoolean;
2498
+ isFrozen: z.ZodBoolean;
2499
+ itemOrder: z.ZodNumber;
2500
+ }, z.core.$loose>;
2501
+ version: z.ZodEnum<{
2502
+ 1: "1";
2503
+ }>;
2504
+ userId: z.ZodString;
2505
+ initiator: z.ZodObject<{
2506
+ id: z.ZodString;
2507
+ fullName: z.ZodString;
2508
+ email: z.ZodString;
2509
+ imageId: z.ZodNullable<z.ZodString>;
2510
+ isPremium: z.ZodBoolean;
2511
+ }, z.core.$strip>;
2512
+ triggeredAt: z.ZodCoercedDate<unknown>;
2513
+ }, z.core.$strip>, z.ZodObject<{
2514
+ eventName: z.ZodLiteral<"filter:updated">;
2515
+ eventData: z.ZodObject<{
2516
+ id: z.ZodString;
2517
+ name: z.ZodString;
2518
+ query: z.ZodString;
2519
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2520
+ color: z.ZodString;
2521
+ isDeleted: z.ZodBoolean;
2522
+ isFavorite: z.ZodBoolean;
2523
+ isFrozen: z.ZodBoolean;
2524
+ itemOrder: z.ZodNumber;
2525
+ }, z.core.$loose>;
2526
+ version: z.ZodEnum<{
2527
+ 1: "1";
2528
+ }>;
2529
+ userId: z.ZodString;
2530
+ initiator: z.ZodObject<{
2531
+ id: z.ZodString;
2532
+ fullName: z.ZodString;
2533
+ email: z.ZodString;
2534
+ imageId: z.ZodNullable<z.ZodString>;
2535
+ isPremium: z.ZodBoolean;
2536
+ }, z.core.$strip>;
2537
+ triggeredAt: z.ZodCoercedDate<unknown>;
2538
+ }, z.core.$strip>, z.ZodObject<{
2539
+ eventName: z.ZodLiteral<"filter:deleted">;
2540
+ eventData: z.ZodObject<{
2541
+ id: z.ZodString;
2542
+ name: z.ZodString;
2543
+ query: z.ZodString;
2544
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2545
+ color: z.ZodString;
2546
+ isDeleted: z.ZodBoolean;
2547
+ isFavorite: z.ZodBoolean;
2548
+ isFrozen: z.ZodBoolean;
2549
+ itemOrder: z.ZodNumber;
2550
+ }, z.core.$loose>;
2551
+ version: z.ZodEnum<{
2552
+ 1: "1";
2553
+ }>;
2554
+ userId: z.ZodString;
2555
+ initiator: z.ZodObject<{
2556
+ id: z.ZodString;
2557
+ fullName: z.ZodString;
2558
+ email: z.ZodString;
2559
+ imageId: z.ZodNullable<z.ZodString>;
2560
+ isPremium: z.ZodBoolean;
2561
+ }, z.core.$strip>;
2562
+ triggeredAt: z.ZodCoercedDate<unknown>;
2563
+ }, z.core.$strip>, z.ZodObject<{
2564
+ eventName: z.ZodLiteral<"reminder:fired">;
2565
+ eventData: z.ZodObject<{
2566
+ id: z.ZodString;
2567
+ notifyUid: z.ZodString;
2568
+ itemId: z.ZodString;
2569
+ projectId: z.ZodOptional<z.ZodString>;
2570
+ isDeleted: z.ZodBoolean;
2571
+ type: z.ZodEnum<{
2572
+ relative: "relative";
2573
+ absolute: "absolute";
2574
+ location: "location";
2575
+ }>;
2576
+ isUrgent: z.ZodBoolean;
2577
+ minuteOffset: z.ZodNullable<z.ZodNumber>;
2578
+ due: z.ZodNullable<z.ZodObject<{
2579
+ isRecurring: z.ZodBoolean;
2580
+ string: z.ZodString;
2581
+ date: z.ZodString;
2582
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2583
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2584
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2585
+ }, z.core.$strip>>;
2586
+ }, z.core.$loose>;
2587
+ version: z.ZodEnum<{
2588
+ 1: "1";
2589
+ }>;
2590
+ userId: z.ZodString;
2591
+ initiator: z.ZodObject<{
2592
+ id: z.ZodString;
2593
+ fullName: z.ZodString;
2594
+ email: z.ZodString;
2595
+ imageId: z.ZodNullable<z.ZodString>;
2596
+ isPremium: z.ZodBoolean;
2597
+ }, z.core.$strip>;
2598
+ triggeredAt: z.ZodCoercedDate<unknown>;
2599
+ }, z.core.$strip>], "eventName">;
2600
+ /**
2601
+ * A parsed webhook payload. Narrow by `eventName` to access typed
2602
+ * `eventData`.
2603
+ */
2604
+ export type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
2605
+ export { WebhookEventSchema };
2606
+ export type { WebhookEvent };