@todoist/sdk 0.0.0-stage → 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 +308 -2
  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 +88 -5
@@ -0,0 +1,96 @@
1
+ import { z } from 'zod';
2
+ /** Available template types. */
3
+ export declare const TEMPLATE_TYPES: readonly ["project", "setup"];
4
+ /** Type of template suggestion. */
5
+ export type TemplateType = (typeof TEMPLATE_TYPES)[number];
6
+ export declare const TemplateSuggestionSchema: z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ templateType: z.ZodEnum<{
10
+ project: "project";
11
+ setup: "setup";
12
+ }>;
13
+ }, z.core.$loose>;
14
+ export type TemplateSuggestion = z.infer<typeof TemplateSuggestionSchema>;
15
+ export declare const WorkspaceTemplateSuggestionSchema: z.ZodObject<{
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ templateType: z.ZodEnum<{
19
+ project: "project";
20
+ setup: "setup";
21
+ }>;
22
+ workspaceId: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$loose>;
24
+ export type WorkspaceTemplateSuggestion = z.infer<typeof WorkspaceTemplateSuggestionSchema>;
25
+ /** Available suggestion section types. */
26
+ export declare const SUGGESTION_SECTION_TYPES: readonly ["templates", "most_used_user_templates"];
27
+ /** Type of suggestion section. */
28
+ export type SuggestionSectionType = (typeof SUGGESTION_SECTION_TYPES)[number];
29
+ export declare const SyncTemplateSuggestionsSchema: z.ZodObject<{
30
+ type: z.ZodEnum<{
31
+ templates: "templates";
32
+ most_used_user_templates: "most_used_user_templates";
33
+ }>;
34
+ content: z.ZodObject<{
35
+ templates: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodString;
37
+ name: z.ZodString;
38
+ templateType: z.ZodEnum<{
39
+ project: "project";
40
+ setup: "setup";
41
+ }>;
42
+ }, z.core.$loose>>;
43
+ locale: z.ZodString;
44
+ }, z.core.$strip>;
45
+ isDeleted: z.ZodBoolean;
46
+ }, z.core.$loose>;
47
+ export declare const SyncWorkspaceTemplateSuggestionsSchema: z.ZodObject<{
48
+ type: z.ZodLiteral<"most_used_workspace_templates">;
49
+ content: z.ZodObject<{
50
+ templates: z.ZodArray<z.ZodObject<{
51
+ id: z.ZodString;
52
+ name: z.ZodString;
53
+ templateType: z.ZodEnum<{
54
+ project: "project";
55
+ setup: "setup";
56
+ }>;
57
+ workspaceId: z.ZodNullable<z.ZodString>;
58
+ }, z.core.$loose>>;
59
+ locale: z.ZodString;
60
+ }, z.core.$strip>;
61
+ isDeleted: z.ZodBoolean;
62
+ }, z.core.$loose>;
63
+ export declare const SuggestionSchema: z.ZodUnion<readonly [z.ZodObject<{
64
+ type: z.ZodLiteral<"most_used_workspace_templates">;
65
+ content: z.ZodObject<{
66
+ templates: z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ name: z.ZodString;
69
+ templateType: z.ZodEnum<{
70
+ project: "project";
71
+ setup: "setup";
72
+ }>;
73
+ workspaceId: z.ZodNullable<z.ZodString>;
74
+ }, z.core.$loose>>;
75
+ locale: z.ZodString;
76
+ }, z.core.$strip>;
77
+ isDeleted: z.ZodBoolean;
78
+ }, z.core.$loose>, z.ZodObject<{
79
+ type: z.ZodEnum<{
80
+ templates: "templates";
81
+ most_used_user_templates: "most_used_user_templates";
82
+ }>;
83
+ content: z.ZodObject<{
84
+ templates: z.ZodArray<z.ZodObject<{
85
+ id: z.ZodString;
86
+ name: z.ZodString;
87
+ templateType: z.ZodEnum<{
88
+ project: "project";
89
+ setup: "setup";
90
+ }>;
91
+ }, z.core.$loose>>;
92
+ locale: z.ZodString;
93
+ }, z.core.$strip>;
94
+ isDeleted: z.ZodBoolean;
95
+ }, z.core.$loose>]>;
96
+ export type Suggestion = z.infer<typeof SuggestionSchema>;
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const TooltipsSchema: z.ZodObject<{
3
+ seen: z.ZodOptional<z.ZodArray<z.ZodString>>;
4
+ scheduled: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
+ }, z.core.$loose>;
6
+ export type Tooltips = z.infer<typeof TooltipsSchema>;
@@ -0,0 +1,47 @@
1
+ import { z } from 'zod';
2
+ export declare const PlanLimitsSchema: z.ZodObject<{
3
+ activeProjects: z.ZodOptional<z.ZodNumber>;
4
+ activityLog: z.ZodOptional<z.ZodBoolean>;
5
+ collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
6
+ commentsPerTask: z.ZodOptional<z.ZodNumber>;
7
+ fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
8
+ filtersPerUser: z.ZodOptional<z.ZodNumber>;
9
+ labelsPerTask: z.ZodOptional<z.ZodNumber>;
10
+ maxProjects: z.ZodOptional<z.ZodNumber>;
11
+ remindersPerUser: z.ZodOptional<z.ZodNumber>;
12
+ sectionsPerProject: z.ZodOptional<z.ZodNumber>;
13
+ tableLayout: z.ZodOptional<z.ZodBoolean>;
14
+ tasksPerProject: z.ZodOptional<z.ZodNumber>;
15
+ }, z.core.$loose>;
16
+ export type PlanLimits = z.infer<typeof PlanLimitsSchema>;
17
+ export declare const UserPlanLimitsSchema: z.ZodObject<{
18
+ current: z.ZodObject<{
19
+ activeProjects: z.ZodOptional<z.ZodNumber>;
20
+ activityLog: z.ZodOptional<z.ZodBoolean>;
21
+ collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
22
+ commentsPerTask: z.ZodOptional<z.ZodNumber>;
23
+ fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
24
+ filtersPerUser: z.ZodOptional<z.ZodNumber>;
25
+ labelsPerTask: z.ZodOptional<z.ZodNumber>;
26
+ maxProjects: z.ZodOptional<z.ZodNumber>;
27
+ remindersPerUser: z.ZodOptional<z.ZodNumber>;
28
+ sectionsPerProject: z.ZodOptional<z.ZodNumber>;
29
+ tableLayout: z.ZodOptional<z.ZodBoolean>;
30
+ tasksPerProject: z.ZodOptional<z.ZodNumber>;
31
+ }, z.core.$loose>;
32
+ next: z.ZodNullable<z.ZodObject<{
33
+ activeProjects: z.ZodOptional<z.ZodNumber>;
34
+ activityLog: z.ZodOptional<z.ZodBoolean>;
35
+ collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
36
+ commentsPerTask: z.ZodOptional<z.ZodNumber>;
37
+ fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
38
+ filtersPerUser: z.ZodOptional<z.ZodNumber>;
39
+ labelsPerTask: z.ZodOptional<z.ZodNumber>;
40
+ maxProjects: z.ZodOptional<z.ZodNumber>;
41
+ remindersPerUser: z.ZodOptional<z.ZodNumber>;
42
+ sectionsPerProject: z.ZodOptional<z.ZodNumber>;
43
+ tableLayout: z.ZodOptional<z.ZodBoolean>;
44
+ tasksPerProject: z.ZodOptional<z.ZodNumber>;
45
+ }, z.core.$loose>>;
46
+ }, z.core.$loose>;
47
+ export type UserPlanLimits = z.infer<typeof UserPlanLimitsSchema>;
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ export declare const NavigationFeatureSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ shown: z.ZodBoolean;
5
+ }, z.core.$strip>;
6
+ export declare const QuickAddFeatureSchema: z.ZodObject<{
7
+ name: z.ZodString;
8
+ shown: z.ZodBoolean;
9
+ }, z.core.$strip>;
10
+ /**
11
+ * Sync API user settings resource.
12
+ */
13
+ export declare const UserSettingsSchema: z.ZodObject<{
14
+ completedSoundDesktop: z.ZodBoolean;
15
+ completedSoundMobile: z.ZodBoolean;
16
+ debugLogSendingEnabledUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ legacyPricing: z.ZodNumber;
18
+ navigation: z.ZodObject<{
19
+ countsShown: z.ZodBoolean;
20
+ features: z.ZodArray<z.ZodObject<{
21
+ name: z.ZodString;
22
+ shown: z.ZodBoolean;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$loose>;
25
+ reminderDesktop: z.ZodBoolean;
26
+ reminderEmail: z.ZodBoolean;
27
+ reminderPush: z.ZodBoolean;
28
+ resetRecurringSubtasks: z.ZodBoolean;
29
+ aiEmailAssist: z.ZodBoolean;
30
+ theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ syncTheme: z.ZodOptional<z.ZodBoolean>;
32
+ quickAdd: z.ZodObject<{
33
+ labelsShown: z.ZodBoolean;
34
+ features: z.ZodArray<z.ZodObject<{
35
+ name: z.ZodString;
36
+ shown: z.ZodBoolean;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$loose>;
39
+ }, z.core.$loose>;
40
+ export type UserSettings = z.infer<typeof UserSettingsSchema>;
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * `mode` stays a plain string and `scope` optional so that a new mode, or an effect another
4
+ * client stored without a scope, does not break parsing.
5
+ */
6
+ export declare const UserStatusEffectSchema: z.ZodObject<{
7
+ scope: z.ZodOptional<z.ZodObject<{
8
+ mode: z.ZodString;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>;
11
+ export type UserStatusEffect = z.infer<typeof UserStatusEffectSchema>;
12
+ export declare const UserStatusEffectsSchema: z.ZodObject<{
13
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
14
+ scope: z.ZodOptional<z.ZodObject<{
15
+ mode: z.ZodString;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>>;
18
+ pauseActivity: z.ZodOptional<z.ZodObject<{
19
+ scope: z.ZodOptional<z.ZodObject<{
20
+ mode: z.ZodString;
21
+ }, z.core.$loose>>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$loose>;
24
+ export type UserStatusEffects = z.infer<typeof UserStatusEffectsSchema>;
25
+ /**
26
+ * A user's status, shared across Todoist and Comms. The API returns `null` in its place
27
+ * when the user has no status or it has expired.
28
+ */
29
+ export declare const UserStatusSchema: z.ZodObject<{
30
+ message: z.ZodString;
31
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
33
+ effects: z.ZodDefault<z.ZodObject<{
34
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
35
+ scope: z.ZodOptional<z.ZodObject<{
36
+ mode: z.ZodString;
37
+ }, z.core.$loose>>;
38
+ }, z.core.$loose>>;
39
+ pauseActivity: z.ZodOptional<z.ZodObject<{
40
+ scope: z.ZodOptional<z.ZodObject<{
41
+ mode: z.ZodString;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>>;
44
+ }, z.core.$loose>>;
45
+ }, z.core.$loose>;
46
+ export type UserStatus = z.infer<typeof UserStatusSchema>;
@@ -0,0 +1,151 @@
1
+ import { z } from 'zod';
2
+ export declare const FeaturesSchema: z.ZodObject<{
3
+ karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
4
+ restriction: z.ZodNumber;
5
+ karmaVacation: z.ZodBoolean;
6
+ dateistLang: z.ZodAny;
7
+ beta: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
8
+ hasPushReminders: z.ZodBoolean;
9
+ dateistInlineDisabled: z.ZodBoolean;
10
+ autoInviteDisabled: z.ZodOptional<z.ZodBoolean>;
11
+ goldTheme: z.ZodOptional<z.ZodBoolean>;
12
+ migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
13
+ }, z.core.$loose>;
14
+ export declare const TzInfoSchema: z.ZodObject<{
15
+ timezone: z.ZodString;
16
+ hours: z.ZodNumber;
17
+ minutes: z.ZodNumber;
18
+ isDst: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
19
+ gmtString: z.ZodString;
20
+ }, z.core.$loose>;
21
+ export declare const JoinableWorkspaceSchema: z.ZodObject<{
22
+ workspaceId: z.ZodString;
23
+ workspaceName: z.ZodString;
24
+ memberCount: z.ZodNumber;
25
+ }, z.core.$loose>;
26
+ export declare const GettingStartedGuideProjectSchema: z.ZodObject<{
27
+ onboardingUseCase: z.ZodString;
28
+ projectId: z.ZodString;
29
+ completed: z.ZodBoolean;
30
+ closed: z.ZodBoolean;
31
+ }, z.core.$loose>;
32
+ /**
33
+ * Sync API user resource.
34
+ *
35
+ * This is a superset of the REST `CurrentUserSchema` — the Sync API returns
36
+ * many additional fields for features, onboarding state, and account details.
37
+ */
38
+ export declare const SyncUserSchema: z.ZodObject<{
39
+ id: z.ZodString;
40
+ email: z.ZodString;
41
+ fullName: z.ZodString;
42
+ activatedUser: z.ZodBoolean;
43
+ autoReminder: z.ZodNumber;
44
+ avatarBig: z.ZodOptional<z.ZodString>;
45
+ avatarMedium: z.ZodOptional<z.ZodString>;
46
+ avatarS640: z.ZodOptional<z.ZodString>;
47
+ avatarSmall: z.ZodOptional<z.ZodString>;
48
+ businessAccountId: z.ZodNullable<z.ZodString>;
49
+ dailyGoal: z.ZodNumber;
50
+ dateFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"DD/MM/YYYY" | "MM/DD/YYYY", 0 | 1>>;
51
+ dateistLang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ daysOff: z.ZodArray<z.ZodNumber>;
53
+ featureIdentifier: z.ZodString;
54
+ features: z.ZodObject<{
55
+ karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
56
+ restriction: z.ZodNumber;
57
+ karmaVacation: z.ZodBoolean;
58
+ dateistLang: z.ZodAny;
59
+ beta: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
60
+ hasPushReminders: z.ZodBoolean;
61
+ dateistInlineDisabled: z.ZodBoolean;
62
+ autoInviteDisabled: z.ZodOptional<z.ZodBoolean>;
63
+ goldTheme: z.ZodOptional<z.ZodBoolean>;
64
+ migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
65
+ }, z.core.$loose>;
66
+ freeTrailExpires: z.ZodOptional<z.ZodCoercedDate<unknown>>;
67
+ hasMagicNumber: z.ZodBoolean;
68
+ hasPassword: z.ZodBoolean;
69
+ hasStartedATrial: z.ZodOptional<z.ZodBoolean>;
70
+ imageId: z.ZodNullable<z.ZodString>;
71
+ inboxProjectId: z.ZodString;
72
+ isCelebrationsEnabled: z.ZodBoolean;
73
+ isPremium: z.ZodBoolean;
74
+ joinableWorkspace: z.ZodNullable<z.ZodObject<{
75
+ workspaceId: z.ZodString;
76
+ workspaceName: z.ZodString;
77
+ memberCount: z.ZodNumber;
78
+ }, z.core.$loose>>;
79
+ joinedAt: z.ZodCoercedDate<unknown>;
80
+ gettingStartedGuideProjects: z.ZodNullable<z.ZodArray<z.ZodObject<{
81
+ onboardingUseCase: z.ZodString;
82
+ projectId: z.ZodString;
83
+ completed: z.ZodBoolean;
84
+ closed: z.ZodBoolean;
85
+ }, z.core.$loose>>>;
86
+ karma: z.ZodNumber;
87
+ karmaTrend: z.ZodString;
88
+ lang: z.ZodString;
89
+ mfaEnabled: z.ZodOptional<z.ZodBoolean>;
90
+ mobileHost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ mobileNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ nextWeek: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 1 | 2 | 3 | 4 | 5 | 6 | 7>>;
93
+ onboardingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ onboardingRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ onboardingPersona: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ onboardingInitiated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
97
+ onboardingCompleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
98
+ onboardingSkipped: z.ZodOptional<z.ZodBoolean>;
99
+ onboardingTeamMode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
100
+ onboardingUseCases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
101
+ premiumStatus: z.ZodEnum<{
102
+ not_premium: "not_premium";
103
+ current_personal_plan: "current_personal_plan";
104
+ legacy_personal_plan: "legacy_personal_plan";
105
+ teams_business_member: "teams_business_member";
106
+ }>;
107
+ premiumUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
108
+ rambleSessionsUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
109
+ currentCount: z.ZodNumber;
110
+ limit: z.ZodNumber;
111
+ remaining: z.ZodNumber;
112
+ resetDate: z.ZodCoercedDate<unknown>;
113
+ }, z.core.$strip>>>;
114
+ shareLimit: z.ZodNumber;
115
+ sortOrder: z.ZodNumber;
116
+ startDay: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 1 | 2 | 3 | 4 | 5 | 6 | 7>>;
117
+ startPage: z.ZodString;
118
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
119
+ message: z.ZodString;
120
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
122
+ effects: z.ZodDefault<z.ZodObject<{
123
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
124
+ scope: z.ZodOptional<z.ZodObject<{
125
+ mode: z.ZodString;
126
+ }, z.core.$loose>>;
127
+ }, z.core.$loose>>;
128
+ pauseActivity: z.ZodOptional<z.ZodObject<{
129
+ scope: z.ZodOptional<z.ZodObject<{
130
+ mode: z.ZodString;
131
+ }, z.core.$loose>>;
132
+ }, z.core.$loose>>;
133
+ }, z.core.$loose>>;
134
+ }, z.core.$loose>>>;
135
+ themeId: z.ZodString;
136
+ timeFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
137
+ token: z.ZodOptional<z.ZodString>;
138
+ tzInfo: z.ZodObject<{
139
+ timezone: z.ZodString;
140
+ hours: z.ZodNumber;
141
+ minutes: z.ZodNumber;
142
+ isDst: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
143
+ gmtString: z.ZodString;
144
+ }, z.core.$loose>;
145
+ uniquePrefix: z.ZodNumber;
146
+ verificationStatus: z.ZodString;
147
+ websocketUrl: z.ZodString;
148
+ weekendStartDay: z.ZodNumber;
149
+ weeklyGoal: z.ZodNumber;
150
+ }, z.core.$loose>;
151
+ export type SyncUser = z.infer<typeof SyncUserSchema>;
@@ -0,0 +1,157 @@
1
+ import { z } from 'zod';
2
+ /** View types the SDK knows. */
3
+ export declare const VIEW_TYPES: readonly ["TODAY", "UPCOMING", "PROJECT", "LABEL", "FILTER", "WORKSPACE_FILTER", "SEARCH", "TEMPLATE_PREVIEW", "TASK_DETAIL", "AUTOMATION", "ASSIGNED", "ASSIGNED_TO_ME", "OVERDUE", "WORKSPACE_OVERVIEW"];
4
+ /** A view type the SDK knows. Response fields can also hold newer ones. */
5
+ export type ViewType = (typeof VIEW_TYPES)[number];
6
+ export declare const ViewTypeSchema: z.ZodType<(string & {}) | "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "ASSIGNED_TO_ME" | "OVERDUE" | "WORKSPACE_OVERVIEW", unknown, z.core.$ZodTypeInternals<(string & {}) | "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "ASSIGNED_TO_ME" | "OVERDUE" | "WORKSPACE_OVERVIEW", unknown>>;
7
+ /** View modes the SDK knows. */
8
+ export declare const VIEW_MODES: readonly ["LIST", "BOARD", "CALENDAR", "TABLE"];
9
+ /** A view mode the SDK knows. Response fields can also hold newer ones. */
10
+ export type ViewMode = (typeof VIEW_MODES)[number];
11
+ export declare const ViewModeSchema: z.ZodType<(string & {}) | "LIST" | "BOARD" | "CALENDAR" | "TABLE", unknown, z.core.$ZodTypeInternals<(string & {}) | "LIST" | "BOARD" | "CALENDAR" | "TABLE", unknown>>;
12
+ /** Grouping options the SDK knows. */
13
+ export declare const GROUPED_BY_OPTIONS: readonly ["ASSIGNEE", "ADDED_DATE", "DUE_DATE", "DEADLINE", "LABEL", "PRIORITY", "PROJECT", "WORKSPACE"];
14
+ /** A grouping option the SDK knows. Response fields can also hold newer ones. */
15
+ export type GroupedBy = (typeof GROUPED_BY_OPTIONS)[number];
16
+ export declare const GroupedBySchema: z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE", unknown>>>;
17
+ /** Sorting options the SDK knows. */
18
+ export declare const SORTED_BY_OPTIONS: readonly ["MANUAL", "ALPHABETICALLY", "ASSIGNEE", "DUE_DATE", "DEADLINE", "ADDED_DATE", "LABEL", "PRIORITY", "PROJECT", "WORKSPACE"];
19
+ /** A sorting option the SDK knows. Response fields can also hold newer ones. */
20
+ export type SortedBy = (typeof SORTED_BY_OPTIONS)[number];
21
+ export declare const SortedBySchema: z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY", unknown>>>;
22
+ /** Sort directions the SDK knows. */
23
+ export declare const SORT_ORDERS: readonly ["ASC", "DESC"];
24
+ /** A sort direction the SDK knows. Response fields can also hold newer ones. */
25
+ export type SortOrder = (typeof SORT_ORDERS)[number];
26
+ export declare const SortOrderSchema: z.ZodNullable<z.ZodType<(string & {}) | "ASC" | "DESC", unknown, z.core.$ZodTypeInternals<(string & {}) | "ASC" | "DESC", unknown>>>;
27
+ /** Calendar layout modes the SDK knows. */
28
+ export declare const CALENDAR_LAYOUTS: readonly ["WEEK", "MONTH"];
29
+ /** A calendar layout mode the SDK knows. Response fields can also hold newer ones. */
30
+ export type CalendarLayout = (typeof CALENDAR_LAYOUTS)[number];
31
+ /** Task color sources for calendar views the SDK knows. */
32
+ export declare const CALENDAR_COLORS: readonly ["PRIORITY", "LABEL", "PROJECT"];
33
+ /** A calendar task color source the SDK knows. Response fields can also hold newer ones. */
34
+ export type CalendarColor = (typeof CALENDAR_COLORS)[number];
35
+ export declare const CalendarSettingsSchema: z.ZodObject<{
36
+ layout: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "WEEK" | "MONTH", unknown, z.core.$ZodTypeInternals<(string & {}) | "WEEK" | "MONTH", unknown>>>>;
37
+ visibleDayCount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>]>>>;
38
+ color: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "PRIORITY", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "PRIORITY", unknown>>>>;
39
+ }, z.core.$loose>;
40
+ export type CalendarSettings = z.infer<typeof CalendarSettingsSchema>;
41
+ /** Calendar settings to save, limited to values the SDK knows. */
42
+ export type CalendarSettingsArgs = {
43
+ layout?: CalendarLayout | null;
44
+ visibleDayCount?: CalendarSettings['visibleDayCount'];
45
+ color?: CalendarColor | null;
46
+ };
47
+ /** How a view shows one task property. Attributes the SDK doesn't know are kept. */
48
+ export declare const PropertyAttributesSchema: z.ZodObject<{
49
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
50
+ width: z.ZodOptional<z.ZodNumber>;
51
+ }, z.core.$loose>;
52
+ export type PropertyAttributes = z.infer<typeof PropertyAttributesSchema>;
53
+ /**
54
+ * How a view shows task properties, such as `due` or `labels`, holding only what the user
55
+ * changed. Property IDs are opaque strings (`field:6Jf8VQXx`), so every key inside keeps its
56
+ * API spelling rather than being camel-cased, and keys the SDK doesn't know are kept.
57
+ */
58
+ export declare const PropertySettingsSchema: z.ZodObject<{
59
+ order: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
61
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
62
+ width: z.ZodOptional<z.ZodNumber>;
63
+ }, z.core.$loose>>>;
64
+ }, z.core.$loose>;
65
+ export type PropertySettings = z.infer<typeof PropertySettingsSchema>;
66
+ /** A change to one property's attributes, where `null` resets an attribute. */
67
+ export type PropertyAttributesPatch = {
68
+ is_hidden?: boolean | null;
69
+ width?: number | null;
70
+ [attribute: string]: unknown;
71
+ };
72
+ /**
73
+ * A change to property settings, applied like a JSON merge patch: objects merge into the
74
+ * saved settings, arrays such as `order` replace them, and `null` removes its path. Keys
75
+ * keep their API spelling, as in {@link PropertySettings}.
76
+ */
77
+ export type PropertySettingsPatch = {
78
+ order?: string[] | null;
79
+ properties?: Record<string, PropertyAttributesPatch | null> | null;
80
+ [key: string]: unknown;
81
+ };
82
+ export declare const ViewOptionsSchema: z.ZodObject<{
83
+ viewType: z.ZodType<(string & {}) | "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "ASSIGNED_TO_ME" | "OVERDUE" | "WORKSPACE_OVERVIEW", unknown, z.core.$ZodTypeInternals<(string & {}) | "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "ASSIGNED_TO_ME" | "OVERDUE" | "WORKSPACE_OVERVIEW", unknown>>;
84
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ groupedBy: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE", unknown>>>>;
86
+ filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ viewMode: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "LIST" | "BOARD" | "CALENDAR" | "TABLE", unknown, z.core.$ZodTypeInternals<(string & {}) | "LIST" | "BOARD" | "CALENDAR" | "TABLE", unknown>>>>;
88
+ showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
89
+ sortedBy: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY", unknown>>>>;
90
+ sortOrder: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "ASC" | "DESC", unknown, z.core.$ZodTypeInternals<(string & {}) | "ASC" | "DESC", unknown>>>>;
91
+ calendarSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
92
+ layout: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "WEEK" | "MONTH", unknown, z.core.$ZodTypeInternals<(string & {}) | "WEEK" | "MONTH", unknown>>>>;
93
+ visibleDayCount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>]>>>;
94
+ color: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "PRIORITY", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "PRIORITY", unknown>>>>;
95
+ }, z.core.$loose>>>;
96
+ propertySettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
97
+ order: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
99
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
100
+ width: z.ZodOptional<z.ZodNumber>;
101
+ }, z.core.$loose>>>;
102
+ }, z.core.$loose>>>;
103
+ isDeleted: z.ZodOptional<z.ZodLiteral<false>>;
104
+ }, z.core.$loose>;
105
+ export type ViewOptions = z.infer<typeof ViewOptionsSchema>;
106
+ /** Deleted view options, as incremental syncs report them. */
107
+ export declare const ViewOptionsTombstoneSchema: z.ZodObject<{
108
+ isDeleted: z.ZodLiteral<true>;
109
+ viewMode: z.ZodOptional<z.ZodLiteral<"">>;
110
+ groupedBy: z.ZodOptional<z.ZodLiteral<"">>;
111
+ sortedBy: z.ZodOptional<z.ZodLiteral<"">>;
112
+ sortOrder: z.ZodOptional<z.ZodLiteral<"">>;
113
+ filteredBy: z.ZodOptional<z.ZodLiteral<"">>;
114
+ showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
115
+ calendarSettings: z.ZodOptional<z.ZodNull>;
116
+ propertySettings: z.ZodOptional<z.ZodNull>;
117
+ viewType: z.ZodType<(string & {}) | "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "ASSIGNED_TO_ME" | "OVERDUE" | "WORKSPACE_OVERVIEW", unknown, z.core.$ZodTypeInternals<(string & {}) | "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "ASSIGNED_TO_ME" | "OVERDUE" | "WORKSPACE_OVERVIEW", unknown>>;
118
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ }, z.core.$loose>;
120
+ export type ViewOptionsTombstone = z.infer<typeof ViewOptionsTombstoneSchema>;
121
+ export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
122
+ projectId: z.ZodString;
123
+ viewMode: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "LIST" | "BOARD" | "CALENDAR" | "TABLE", unknown, z.core.$ZodTypeInternals<(string & {}) | "LIST" | "BOARD" | "CALENDAR" | "TABLE", unknown>>>>;
124
+ groupedBy: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE", unknown>>>>;
125
+ sortedBy: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY", unknown>>>>;
126
+ sortOrder: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "ASC" | "DESC", unknown, z.core.$ZodTypeInternals<(string & {}) | "ASC" | "DESC", unknown>>>>;
127
+ showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
128
+ filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ calendarSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
+ layout: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "WEEK" | "MONTH", unknown, z.core.$ZodTypeInternals<(string & {}) | "WEEK" | "MONTH", unknown>>>>;
131
+ visibleDayCount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>]>>>;
132
+ color: z.ZodOptional<z.ZodNullable<z.ZodType<(string & {}) | "PROJECT" | "LABEL" | "PRIORITY", unknown, z.core.$ZodTypeInternals<(string & {}) | "PROJECT" | "LABEL" | "PRIORITY", unknown>>>>;
133
+ }, z.core.$loose>>>;
134
+ propertySettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
135
+ order: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
137
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
138
+ width: z.ZodOptional<z.ZodNumber>;
139
+ }, z.core.$loose>>>;
140
+ }, z.core.$loose>>>;
141
+ isDeleted: z.ZodOptional<z.ZodLiteral<false>>;
142
+ }, z.core.$loose>;
143
+ export type ProjectViewOptionsDefaults = z.infer<typeof ProjectViewOptionsDefaultsSchema>;
144
+ /** Deleted project view options defaults, as incremental syncs report them. */
145
+ export declare const ProjectViewOptionsDefaultsTombstoneSchema: z.ZodObject<{
146
+ isDeleted: z.ZodLiteral<true>;
147
+ viewMode: z.ZodOptional<z.ZodLiteral<"">>;
148
+ groupedBy: z.ZodOptional<z.ZodLiteral<"">>;
149
+ sortedBy: z.ZodOptional<z.ZodLiteral<"">>;
150
+ sortOrder: z.ZodOptional<z.ZodLiteral<"">>;
151
+ filteredBy: z.ZodOptional<z.ZodLiteral<"">>;
152
+ showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
153
+ calendarSettings: z.ZodOptional<z.ZodNull>;
154
+ propertySettings: z.ZodOptional<z.ZodNull>;
155
+ projectId: z.ZodString;
156
+ }, z.core.$loose>;
157
+ export type ProjectViewOptionsDefaultsTombstone = z.infer<typeof ProjectViewOptionsDefaultsTombstoneSchema>;
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const WorkspaceFilterSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ workspaceId: z.ZodString;
5
+ name: z.ZodString;
6
+ query: z.ZodString;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ color: z.ZodString;
9
+ itemOrder: z.ZodNumber;
10
+ isDeleted: z.ZodBoolean;
11
+ isFavorite: z.ZodBoolean;
12
+ isFrozen: z.ZodBoolean;
13
+ creatorUid: z.ZodString;
14
+ updaterUid: z.ZodString;
15
+ createdAt: z.ZodCoercedDate<unknown>;
16
+ updatedAt: z.ZodCoercedDate<unknown>;
17
+ }, z.core.$loose>;
18
+ export type WorkspaceFilter = z.infer<typeof WorkspaceFilterSchema>;