@doist/todoist-api-typescript 7.9.0 → 7.10.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 (343) hide show
  1. package/README.md +5 -204
  2. package/index.d.ts +1 -0
  3. package/index.js +1 -0
  4. package/index.mjs +1 -0
  5. package/package.json +12 -92
  6. package/LICENSE +0 -21
  7. package/dist/cjs/authentication.js +0 -204
  8. package/dist/cjs/consts/endpoints.js +0 -141
  9. package/dist/cjs/index.js +0 -20
  10. package/dist/cjs/package.json +0 -1
  11. package/dist/cjs/test-utils/asserts.js +0 -11
  12. package/dist/cjs/test-utils/msw-setup.js +0 -97
  13. package/dist/cjs/test-utils/obsidian-fetch-adapter.js +0 -53
  14. package/dist/cjs/test-utils/test-defaults.js +0 -240
  15. package/dist/cjs/todoist-api.js +0 -2623
  16. package/dist/cjs/transport/fetch-with-retry.js +0 -206
  17. package/dist/cjs/transport/http-client.js +0 -133
  18. package/dist/cjs/transport/http-dispatcher.js +0 -72
  19. package/dist/cjs/types/activity/index.js +0 -18
  20. package/dist/cjs/types/activity/requests.js +0 -2
  21. package/dist/cjs/types/activity/types.js +0 -28
  22. package/dist/cjs/types/backups/index.js +0 -18
  23. package/dist/cjs/types/backups/requests.js +0 -2
  24. package/dist/cjs/types/backups/types.js +0 -8
  25. package/dist/cjs/types/comments/index.js +0 -18
  26. package/dist/cjs/types/comments/requests.js +0 -2
  27. package/dist/cjs/types/comments/types.js +0 -60
  28. package/dist/cjs/types/common.js +0 -2
  29. package/dist/cjs/types/emails/index.js +0 -17
  30. package/dist/cjs/types/emails/requests.js +0 -5
  31. package/dist/cjs/types/errors.js +0 -29
  32. package/dist/cjs/types/folders/index.js +0 -17
  33. package/dist/cjs/types/folders/requests.js +0 -2
  34. package/dist/cjs/types/http.js +0 -24
  35. package/dist/cjs/types/id-mappings/index.js +0 -18
  36. package/dist/cjs/types/id-mappings/requests.js +0 -20
  37. package/dist/cjs/types/id-mappings/types.js +0 -12
  38. package/dist/cjs/types/index.js +0 -36
  39. package/dist/cjs/types/insights/index.js +0 -18
  40. package/dist/cjs/types/insights/requests.js +0 -2
  41. package/dist/cjs/types/insights/types.js +0 -84
  42. package/dist/cjs/types/labels/index.js +0 -18
  43. package/dist/cjs/types/labels/requests.js +0 -2
  44. package/dist/cjs/types/labels/types.js +0 -11
  45. package/dist/cjs/types/productivity/index.js +0 -17
  46. package/dist/cjs/types/productivity/types.js +0 -67
  47. package/dist/cjs/types/projects/index.js +0 -18
  48. package/dist/cjs/types/projects/requests.js +0 -2
  49. package/dist/cjs/types/projects/types.js +0 -56
  50. package/dist/cjs/types/reminders/index.js +0 -17
  51. package/dist/cjs/types/reminders/requests.js +0 -95
  52. package/dist/cjs/types/sections/index.js +0 -18
  53. package/dist/cjs/types/sections/requests.js +0 -2
  54. package/dist/cjs/types/sections/types.js +0 -22
  55. package/dist/cjs/types/sync/commands/calendars.js +0 -2
  56. package/dist/cjs/types/sync/commands/filters.js +0 -2
  57. package/dist/cjs/types/sync/commands/folders.js +0 -2
  58. package/dist/cjs/types/sync/commands/index.js +0 -35
  59. package/dist/cjs/types/sync/commands/labels.js +0 -5
  60. package/dist/cjs/types/sync/commands/notes.js +0 -2
  61. package/dist/cjs/types/sync/commands/notifications.js +0 -2
  62. package/dist/cjs/types/sync/commands/others.js +0 -2
  63. package/dist/cjs/types/sync/commands/project-view-options.js +0 -2
  64. package/dist/cjs/types/sync/commands/projects.js +0 -2
  65. package/dist/cjs/types/sync/commands/reminders.js +0 -2
  66. package/dist/cjs/types/sync/commands/sections.js +0 -2
  67. package/dist/cjs/types/sync/commands/shared.js +0 -20
  68. package/dist/cjs/types/sync/commands/sharing.js +0 -2
  69. package/dist/cjs/types/sync/commands/tasks.js +0 -2
  70. package/dist/cjs/types/sync/commands/view-options.js +0 -2
  71. package/dist/cjs/types/sync/commands/workspace-filters.js +0 -2
  72. package/dist/cjs/types/sync/commands/workspace-goals.js +0 -2
  73. package/dist/cjs/types/sync/commands/workspaces.js +0 -2
  74. package/dist/cjs/types/sync/index.js +0 -22
  75. package/dist/cjs/types/sync/request.js +0 -2
  76. package/dist/cjs/types/sync/resource-types.js +0 -40
  77. package/dist/cjs/types/sync/resources/calendars.js +0 -31
  78. package/dist/cjs/types/sync/resources/collaborators.js +0 -25
  79. package/dist/cjs/types/sync/resources/completed-info.js +0 -30
  80. package/dist/cjs/types/sync/resources/filters.js +0 -16
  81. package/dist/cjs/types/sync/resources/folders.js +0 -14
  82. package/dist/cjs/types/sync/resources/index.js +0 -33
  83. package/dist/cjs/types/sync/resources/live-notifications.js +0 -39
  84. package/dist/cjs/types/sync/resources/notes.js +0 -23
  85. package/dist/cjs/types/sync/resources/reminders.js +0 -50
  86. package/dist/cjs/types/sync/resources/suggestions.js +0 -42
  87. package/dist/cjs/types/sync/resources/tooltips.js +0 -10
  88. package/dist/cjs/types/sync/resources/user-plan-limits.js +0 -24
  89. package/dist/cjs/types/sync/resources/user-settings.js +0 -42
  90. package/dist/cjs/types/sync/resources/user.js +0 -120
  91. package/dist/cjs/types/sync/resources/view-options.js +0 -83
  92. package/dist/cjs/types/sync/resources/workspace-filters.js +0 -21
  93. package/dist/cjs/types/sync/resources/workspace-goals.js +0 -32
  94. package/dist/cjs/types/sync/resources/workspaces.js +0 -56
  95. package/dist/cjs/types/sync/response.js +0 -2
  96. package/dist/cjs/types/sync/user-preferences.js +0 -71
  97. package/dist/cjs/types/tasks/index.js +0 -18
  98. package/dist/cjs/types/tasks/requests.js +0 -2
  99. package/dist/cjs/types/tasks/types.js +0 -59
  100. package/dist/cjs/types/templates/index.js +0 -17
  101. package/dist/cjs/types/templates/requests.js +0 -2
  102. package/dist/cjs/types/uploads/index.js +0 -17
  103. package/dist/cjs/types/uploads/requests.js +0 -2
  104. package/dist/cjs/types/users/index.js +0 -17
  105. package/dist/cjs/types/users/types.js +0 -51
  106. package/dist/cjs/types/workspaces/index.js +0 -18
  107. package/dist/cjs/types/workspaces/requests.js +0 -2
  108. package/dist/cjs/types/workspaces/types.js +0 -137
  109. package/dist/cjs/utils/activity-helpers.js +0 -58
  110. package/dist/cjs/utils/case-conversion.js +0 -69
  111. package/dist/cjs/utils/colors.js +0 -143
  112. package/dist/cjs/utils/index.js +0 -25
  113. package/dist/cjs/utils/multipart-upload.js +0 -178
  114. package/dist/cjs/utils/processing-helpers.js +0 -18
  115. package/dist/cjs/utils/sanitization.js +0 -116
  116. package/dist/cjs/utils/sync-helpers.js +0 -22
  117. package/dist/cjs/utils/uncompletable-helpers.js +0 -60
  118. package/dist/cjs/utils/url-helpers.js +0 -74
  119. package/dist/cjs/utils/validators.js +0 -141
  120. package/dist/esm/authentication.js +0 -196
  121. package/dist/esm/consts/endpoints.js +0 -122
  122. package/dist/esm/index.js +0 -4
  123. package/dist/esm/test-utils/asserts.js +0 -8
  124. package/dist/esm/test-utils/msw-setup.js +0 -88
  125. package/dist/esm/test-utils/obsidian-fetch-adapter.js +0 -50
  126. package/dist/esm/test-utils/test-defaults.js +0 -237
  127. package/dist/esm/todoist-api.js +0 -2619
  128. package/dist/esm/transport/fetch-with-retry.js +0 -203
  129. package/dist/esm/transport/http-client.js +0 -128
  130. package/dist/esm/transport/http-dispatcher.js +0 -35
  131. package/dist/esm/types/activity/index.js +0 -2
  132. package/dist/esm/types/activity/requests.js +0 -1
  133. package/dist/esm/types/activity/types.js +0 -25
  134. package/dist/esm/types/backups/index.js +0 -2
  135. package/dist/esm/types/backups/requests.js +0 -1
  136. package/dist/esm/types/backups/types.js +0 -5
  137. package/dist/esm/types/comments/index.js +0 -2
  138. package/dist/esm/types/comments/requests.js +0 -1
  139. package/dist/esm/types/comments/types.js +0 -57
  140. package/dist/esm/types/common.js +0 -1
  141. package/dist/esm/types/emails/index.js +0 -1
  142. package/dist/esm/types/emails/requests.js +0 -2
  143. package/dist/esm/types/errors.js +0 -24
  144. package/dist/esm/types/folders/index.js +0 -1
  145. package/dist/esm/types/folders/requests.js +0 -1
  146. package/dist/esm/types/http.js +0 -20
  147. package/dist/esm/types/id-mappings/index.js +0 -2
  148. package/dist/esm/types/id-mappings/requests.js +0 -17
  149. package/dist/esm/types/id-mappings/types.js +0 -9
  150. package/dist/esm/types/index.js +0 -20
  151. package/dist/esm/types/insights/index.js +0 -2
  152. package/dist/esm/types/insights/requests.js +0 -1
  153. package/dist/esm/types/insights/types.js +0 -81
  154. package/dist/esm/types/labels/index.js +0 -2
  155. package/dist/esm/types/labels/requests.js +0 -1
  156. package/dist/esm/types/labels/types.js +0 -8
  157. package/dist/esm/types/productivity/index.js +0 -1
  158. package/dist/esm/types/productivity/types.js +0 -64
  159. package/dist/esm/types/projects/index.js +0 -2
  160. package/dist/esm/types/projects/requests.js +0 -1
  161. package/dist/esm/types/projects/types.js +0 -53
  162. package/dist/esm/types/reminders/index.js +0 -1
  163. package/dist/esm/types/reminders/requests.js +0 -92
  164. package/dist/esm/types/sections/index.js +0 -2
  165. package/dist/esm/types/sections/requests.js +0 -1
  166. package/dist/esm/types/sections/types.js +0 -19
  167. package/dist/esm/types/sync/commands/calendars.js +0 -1
  168. package/dist/esm/types/sync/commands/filters.js +0 -1
  169. package/dist/esm/types/sync/commands/folders.js +0 -1
  170. package/dist/esm/types/sync/commands/index.js +0 -19
  171. package/dist/esm/types/sync/commands/labels.js +0 -2
  172. package/dist/esm/types/sync/commands/notes.js +0 -1
  173. package/dist/esm/types/sync/commands/notifications.js +0 -1
  174. package/dist/esm/types/sync/commands/others.js +0 -1
  175. package/dist/esm/types/sync/commands/project-view-options.js +0 -1
  176. package/dist/esm/types/sync/commands/projects.js +0 -1
  177. package/dist/esm/types/sync/commands/reminders.js +0 -1
  178. package/dist/esm/types/sync/commands/sections.js +0 -1
  179. package/dist/esm/types/sync/commands/shared.js +0 -16
  180. package/dist/esm/types/sync/commands/sharing.js +0 -1
  181. package/dist/esm/types/sync/commands/tasks.js +0 -1
  182. package/dist/esm/types/sync/commands/view-options.js +0 -1
  183. package/dist/esm/types/sync/commands/workspace-filters.js +0 -1
  184. package/dist/esm/types/sync/commands/workspace-goals.js +0 -1
  185. package/dist/esm/types/sync/commands/workspaces.js +0 -1
  186. package/dist/esm/types/sync/index.js +0 -6
  187. package/dist/esm/types/sync/request.js +0 -1
  188. package/dist/esm/types/sync/resource-types.js +0 -37
  189. package/dist/esm/types/sync/resources/calendars.js +0 -28
  190. package/dist/esm/types/sync/resources/collaborators.js +0 -22
  191. package/dist/esm/types/sync/resources/completed-info.js +0 -27
  192. package/dist/esm/types/sync/resources/filters.js +0 -13
  193. package/dist/esm/types/sync/resources/folders.js +0 -11
  194. package/dist/esm/types/sync/resources/index.js +0 -17
  195. package/dist/esm/types/sync/resources/live-notifications.js +0 -36
  196. package/dist/esm/types/sync/resources/notes.js +0 -20
  197. package/dist/esm/types/sync/resources/reminders.js +0 -47
  198. package/dist/esm/types/sync/resources/suggestions.js +0 -39
  199. package/dist/esm/types/sync/resources/tooltips.js +0 -7
  200. package/dist/esm/types/sync/resources/user-plan-limits.js +0 -21
  201. package/dist/esm/types/sync/resources/user-settings.js +0 -39
  202. package/dist/esm/types/sync/resources/user.js +0 -117
  203. package/dist/esm/types/sync/resources/view-options.js +0 -80
  204. package/dist/esm/types/sync/resources/workspace-filters.js +0 -18
  205. package/dist/esm/types/sync/resources/workspace-goals.js +0 -29
  206. package/dist/esm/types/sync/resources/workspaces.js +0 -53
  207. package/dist/esm/types/sync/response.js +0 -1
  208. package/dist/esm/types/sync/user-preferences.js +0 -68
  209. package/dist/esm/types/tasks/index.js +0 -2
  210. package/dist/esm/types/tasks/requests.js +0 -1
  211. package/dist/esm/types/tasks/types.js +0 -56
  212. package/dist/esm/types/templates/index.js +0 -1
  213. package/dist/esm/types/templates/requests.js +0 -1
  214. package/dist/esm/types/uploads/index.js +0 -1
  215. package/dist/esm/types/uploads/requests.js +0 -1
  216. package/dist/esm/types/users/index.js +0 -1
  217. package/dist/esm/types/users/types.js +0 -48
  218. package/dist/esm/types/workspaces/index.js +0 -2
  219. package/dist/esm/types/workspaces/requests.js +0 -1
  220. package/dist/esm/types/workspaces/types.js +0 -134
  221. package/dist/esm/utils/activity-helpers.js +0 -53
  222. package/dist/esm/utils/case-conversion.js +0 -61
  223. package/dist/esm/utils/colors.js +0 -139
  224. package/dist/esm/utils/index.js +0 -4
  225. package/dist/esm/utils/multipart-upload.js +0 -142
  226. package/dist/esm/utils/processing-helpers.js +0 -12
  227. package/dist/esm/utils/sanitization.js +0 -112
  228. package/dist/esm/utils/sync-helpers.js +0 -19
  229. package/dist/esm/utils/uncompletable-helpers.js +0 -54
  230. package/dist/esm/utils/url-helpers.js +0 -68
  231. package/dist/esm/utils/validators.js +0 -132
  232. package/dist/types/authentication.d.ts +0 -158
  233. package/dist/types/consts/endpoints.d.ts +0 -81
  234. package/dist/types/index.d.ts +0 -4
  235. package/dist/types/test-utils/asserts.d.ts +0 -1
  236. package/dist/types/test-utils/msw-setup.d.ts +0 -33
  237. package/dist/types/test-utils/obsidian-fetch-adapter.d.ts +0 -29
  238. package/dist/types/test-utils/test-defaults.d.ts +0 -261
  239. package/dist/types/todoist-api.d.ts +0 -1018
  240. package/dist/types/transport/fetch-with-retry.d.ts +0 -12
  241. package/dist/types/transport/http-client.d.ts +0 -16
  242. package/dist/types/transport/http-dispatcher.d.ts +0 -3
  243. package/dist/types/types/activity/index.d.ts +0 -2
  244. package/dist/types/types/activity/requests.d.ts +0 -85
  245. package/dist/types/types/activity/types.d.ts +0 -49
  246. package/dist/types/types/backups/index.d.ts +0 -2
  247. package/dist/types/types/backups/requests.d.ts +0 -16
  248. package/dist/types/types/backups/types.d.ts +0 -7
  249. package/dist/types/types/comments/index.d.ts +0 -2
  250. package/dist/types/types/comments/requests.d.ts +0 -64
  251. package/dist/types/types/comments/types.d.ts +0 -141
  252. package/dist/types/types/common.d.ts +0 -6
  253. package/dist/types/types/emails/index.d.ts +0 -1
  254. package/dist/types/types/emails/requests.d.ts +0 -30
  255. package/dist/types/types/errors.d.ts +0 -12
  256. package/dist/types/types/folders/index.d.ts +0 -1
  257. package/dist/types/types/folders/requests.d.ts +0 -20
  258. package/dist/types/types/http.d.ts +0 -85
  259. package/dist/types/types/id-mappings/index.d.ts +0 -2
  260. package/dist/types/types/id-mappings/requests.d.ts +0 -28
  261. package/dist/types/types/id-mappings/types.d.ts +0 -13
  262. package/dist/types/types/index.d.ts +0 -20
  263. package/dist/types/types/insights/index.d.ts +0 -2
  264. package/dist/types/types/insights/requests.d.ts +0 -26
  265. package/dist/types/types/insights/types.d.ts +0 -186
  266. package/dist/types/types/labels/index.d.ts +0 -2
  267. package/dist/types/types/labels/requests.d.ts +0 -75
  268. package/dist/types/types/labels/types.d.ts +0 -13
  269. package/dist/types/types/productivity/index.d.ts +0 -1
  270. package/dist/types/types/productivity/types.d.ts +0 -115
  271. package/dist/types/types/projects/index.d.ts +0 -2
  272. package/dist/types/types/projects/requests.d.ts +0 -169
  273. package/dist/types/types/projects/types.d.ts +0 -201
  274. package/dist/types/types/reminders/index.d.ts +0 -1
  275. package/dist/types/types/reminders/requests.d.ts +0 -205
  276. package/dist/types/types/sections/index.d.ts +0 -2
  277. package/dist/types/types/sections/requests.d.ts +0 -41
  278. package/dist/types/types/sections/types.d.ts +0 -44
  279. package/dist/types/types/sync/commands/calendars.d.ts +0 -14
  280. package/dist/types/types/sync/commands/filters.d.ts +0 -22
  281. package/dist/types/types/sync/commands/folders.d.ts +0 -18
  282. package/dist/types/types/sync/commands/index.d.ts +0 -171
  283. package/dist/types/types/sync/commands/labels.d.ts +0 -32
  284. package/dist/types/types/sync/commands/notes.d.ts +0 -27
  285. package/dist/types/types/sync/commands/notifications.d.ts +0 -10
  286. package/dist/types/types/sync/commands/others.d.ts +0 -39
  287. package/dist/types/types/sync/commands/project-view-options.d.ts +0 -14
  288. package/dist/types/types/sync/commands/projects.d.ts +0 -90
  289. package/dist/types/types/sync/commands/reminders.d.ts +0 -51
  290. package/dist/types/types/sync/commands/sections.d.ts +0 -31
  291. package/dist/types/types/sync/commands/shared.d.ts +0 -51
  292. package/dist/types/types/sync/commands/sharing.d.ts +0 -16
  293. package/dist/types/types/sync/commands/tasks.d.ts +0 -78
  294. package/dist/types/types/sync/commands/view-options.d.ts +0 -15
  295. package/dist/types/types/sync/commands/workspace-filters.d.ts +0 -23
  296. package/dist/types/types/sync/commands/workspace-goals.d.ts +0 -24
  297. package/dist/types/types/sync/commands/workspaces.d.ts +0 -79
  298. package/dist/types/types/sync/index.d.ts +0 -6
  299. package/dist/types/types/sync/request.d.ts +0 -7
  300. package/dist/types/types/sync/resource-types.d.ts +0 -5
  301. package/dist/types/types/sync/resources/calendars.d.ts +0 -38
  302. package/dist/types/types/sync/resources/collaborators.d.ts +0 -28
  303. package/dist/types/types/sync/resources/completed-info.d.ts +0 -33
  304. package/dist/types/types/sync/resources/filters.d.ts +0 -12
  305. package/dist/types/types/sync/resources/folders.d.ts +0 -10
  306. package/dist/types/types/sync/resources/index.d.ts +0 -17
  307. package/dist/types/types/sync/resources/live-notifications.d.ts +0 -32
  308. package/dist/types/types/sync/resources/notes.d.ts +0 -34
  309. package/dist/types/types/sync/resources/reminders.d.ts +0 -126
  310. package/dist/types/types/sync/resources/suggestions.d.ts +0 -96
  311. package/dist/types/types/sync/resources/tooltips.d.ts +0 -6
  312. package/dist/types/types/sync/resources/user-plan-limits.d.ts +0 -41
  313. package/dist/types/types/sync/resources/user-settings.d.ts +0 -40
  314. package/dist/types/types/sync/resources/user.d.ts +0 -134
  315. package/dist/types/types/sync/resources/view-options.d.ts +0 -169
  316. package/dist/types/types/sync/resources/workspace-filters.d.ts +0 -17
  317. package/dist/types/types/sync/resources/workspace-goals.d.ts +0 -29
  318. package/dist/types/types/sync/resources/workspaces.d.ts +0 -57
  319. package/dist/types/types/sync/response.d.ts +0 -51
  320. package/dist/types/types/sync/user-preferences.d.ts +0 -39
  321. package/dist/types/types/tasks/index.d.ts +0 -2
  322. package/dist/types/types/tasks/requests.d.ts +0 -197
  323. package/dist/types/types/tasks/types.d.ts +0 -162
  324. package/dist/types/types/templates/index.d.ts +0 -1
  325. package/dist/types/types/templates/requests.d.ts +0 -92
  326. package/dist/types/types/uploads/index.d.ts +0 -1
  327. package/dist/types/types/uploads/requests.d.ts +0 -32
  328. package/dist/types/types/users/index.d.ts +0 -1
  329. package/dist/types/types/users/types.d.ts +0 -66
  330. package/dist/types/types/workspaces/index.d.ts +0 -2
  331. package/dist/types/types/workspaces/requests.d.ts +0 -260
  332. package/dist/types/types/workspaces/types.d.ts +0 -225
  333. package/dist/types/utils/activity-helpers.d.ts +0 -28
  334. package/dist/types/utils/case-conversion.d.ts +0 -12
  335. package/dist/types/utils/colors.d.ts +0 -197
  336. package/dist/types/utils/index.d.ts +0 -4
  337. package/dist/types/utils/multipart-upload.d.ts +0 -54
  338. package/dist/types/utils/processing-helpers.d.ts +0 -1
  339. package/dist/types/utils/sanitization.d.ts +0 -35
  340. package/dist/types/utils/sync-helpers.d.ts +0 -17
  341. package/dist/types/utils/uncompletable-helpers.d.ts +0 -30
  342. package/dist/types/utils/url-helpers.d.ts +0 -32
  343. package/dist/types/utils/validators.d.ts +0 -1406
@@ -1,79 +0,0 @@
1
- import type { WorkspaceRole } from '../../workspaces/types.js';
2
- import type { DefaultAccessLevel, WorkspaceProjectSortOrder } from './shared.js';
3
- export type SyncWorkspaceProperties = {
4
- organizationSize?: string;
5
- defaultAccessLevel?: DefaultAccessLevel;
6
- teamAcquisitionCohort?: string;
7
- acquisitionSource?: string;
8
- industry?: string;
9
- department?: string;
10
- creatorRole?: string;
11
- desktopWorkspaceModal?: string | null;
12
- hdyhau?: string;
13
- acquisitionLoopLastShow?: string | null;
14
- };
15
- export type DefaultCollaborators = {
16
- predefinedGroupIds?: string[];
17
- userIds?: number[];
18
- } | null;
19
- export type WorkspaceAddArgs = {
20
- name: string;
21
- description?: string;
22
- isLinkSharingEnabled?: boolean;
23
- isGuestAllowed?: boolean | null;
24
- domainName?: string;
25
- domainDiscovery?: boolean;
26
- restrictEmailDomains?: boolean;
27
- properties?: SyncWorkspaceProperties;
28
- defaultCollaborators?: DefaultCollaborators;
29
- };
30
- export type WorkspaceUpdateArgs = {
31
- id: string;
32
- name?: string;
33
- description?: string;
34
- isCollapsed?: boolean;
35
- isLinkSharingEnabled?: boolean;
36
- isGuestAllowed?: boolean | null;
37
- inviteCode?: string;
38
- domainName?: string;
39
- domainDiscovery?: boolean;
40
- restrictEmailDomains?: boolean;
41
- properties?: SyncWorkspaceProperties;
42
- defaultCollaborators?: DefaultCollaborators;
43
- };
44
- export type WorkspaceDeleteArgs = {
45
- id: string;
46
- };
47
- export type WorkspaceUpdateUserArgs = {
48
- workspaceId: string;
49
- userEmail: string;
50
- role: WorkspaceRole;
51
- };
52
- export type WorkspaceDeleteUserArgs = {
53
- workspaceId: string;
54
- userEmail: string;
55
- };
56
- export type WorkspaceLeaveArgs = {
57
- id: string;
58
- };
59
- export type WorkspaceInviteArgs = {
60
- id: string;
61
- emailList: string[];
62
- role?: WorkspaceRole;
63
- };
64
- export type WorkspaceSetDefaultOrderArgs = {
65
- projects: Array<{
66
- id: string;
67
- defaultOrder: number;
68
- folderId?: string | null;
69
- }>;
70
- folders: Array<{
71
- id: string;
72
- defaultOrder: number;
73
- }>;
74
- workspaceId: string;
75
- };
76
- export type WorkspaceUpdateUserProjectSortPreferenceArgs = {
77
- workspaceId: string;
78
- projectSortPreference: WorkspaceProjectSortOrder;
79
- };
@@ -1,6 +0,0 @@
1
- export * from './commands/index.js';
2
- export * from './resources/index.js';
3
- export * from './resource-types.js';
4
- export * from './request.js';
5
- export * from './response.js';
6
- export * from './user-preferences.js';
@@ -1,7 +0,0 @@
1
- import type { SyncCommand } from './commands/index.js';
2
- import type { SyncResourceType } from './resource-types.js';
3
- export type SyncRequest = {
4
- commands?: SyncCommand[];
5
- resourceTypes?: SyncResourceType[];
6
- syncToken?: string;
7
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * All available Sync API resource types.
3
- */
4
- export declare const SYNC_RESOURCE_TYPES: readonly ["labels", "projects", "items", "notes", "project_notes", "sections", "filters", "reminders", "reminders_location", "locations", "user", "live_notifications", "collaborators", "collaborator_states", "user_settings", "notification_settings", "user_plan_limits", "completed_info", "stats", "workspaces", "workspace_users", "workspace_filters", "view_options", "project_view_options_defaults", "role_actions", "folders", "workspace_goals", "day_orders", "calendars", "calendar_accounts", "suggestions", "tooltips"];
5
- export type SyncResourceType = (typeof SYNC_RESOURCE_TYPES)[number];
@@ -1,38 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const CalendarSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- summary: z.ZodString;
5
- color: z.ZodNullable<z.ZodString>;
6
- accountId: z.ZodString;
7
- isVisible: z.ZodBoolean;
8
- isTaskCalendar: z.ZodOptional<z.ZodBoolean>;
9
- }, z.core.$loose>;
10
- export type Calendar = z.infer<typeof CalendarSchema>;
11
- /** Available calendar account provider types. */
12
- export declare const CALENDAR_ACCOUNT_TYPES: readonly ["google", "microsoft", "apple"];
13
- /** Calendar account provider type. */
14
- export type CalendarAccountType = (typeof CALENDAR_ACCOUNT_TYPES)[number];
15
- /** Available calendar sync states. */
16
- export declare const CALENDAR_SYNC_STATES: readonly ["synced", "syncing", "error"];
17
- /** Sync state of a calendar account. */
18
- export type CalendarSyncState = (typeof CALENDAR_SYNC_STATES)[number];
19
- export declare const CalendarAccountSchema: z.ZodObject<{
20
- id: z.ZodString;
21
- name: z.ZodString;
22
- type: z.ZodEnum<{
23
- google: "google";
24
- microsoft: "microsoft";
25
- apple: "apple";
26
- }>;
27
- isDeleted: z.ZodOptional<z.ZodBoolean>;
28
- isEventsEnabled: z.ZodOptional<z.ZodBoolean>;
29
- isTasksEnabled: z.ZodOptional<z.ZodBoolean>;
30
- isAllDayTasksEnabled: z.ZodOptional<z.ZodBoolean>;
31
- pendingOperationUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- calendarsSyncState: z.ZodOptional<z.ZodEnum<{
33
- error: "error";
34
- synced: "synced";
35
- syncing: "syncing";
36
- }>>;
37
- }, z.core.$loose>;
38
- export type CalendarAccount = z.infer<typeof CalendarAccountSchema>;
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const CollaboratorSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- email: z.ZodString;
5
- fullName: z.ZodString;
6
- timezone: z.ZodString;
7
- imageId: z.ZodNullable<z.ZodString>;
8
- }, z.core.$loose>;
9
- export type Collaborator = z.infer<typeof CollaboratorSchema>;
10
- /** Available collaborator statuses. */
11
- export declare const COLLABORATOR_STATUSES: readonly ["active", "invited"];
12
- /** Status of a project collaborator. */
13
- export type CollaboratorStatus = (typeof COLLABORATOR_STATUSES)[number];
14
- export declare const CollaboratorStateSchema: z.ZodObject<{
15
- userId: z.ZodString;
16
- projectId: z.ZodString;
17
- state: z.ZodEnum<{
18
- active: "active";
19
- invited: "invited";
20
- }>;
21
- isDeleted: z.ZodBoolean;
22
- workspaceRole: z.ZodOptional<z.ZodEnum<{
23
- ADMIN: "ADMIN";
24
- MEMBER: "MEMBER";
25
- GUEST: "GUEST";
26
- }>>;
27
- }, z.core.$loose>;
28
- export type CollaboratorState = z.infer<typeof CollaboratorStateSchema>;
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const CompletedProjectMetadataSchema: z.ZodObject<{
3
- projectId: z.ZodString;
4
- archivedSections: z.ZodNumber;
5
- completedItems: z.ZodNumber;
6
- }, z.core.$loose>;
7
- export type CompletedProjectMetadata = z.infer<typeof CompletedProjectMetadataSchema>;
8
- export declare const CompletedSectionMetadataSchema: z.ZodObject<{
9
- sectionId: z.ZodString;
10
- id: z.ZodString;
11
- completedItems: z.ZodNumber;
12
- }, z.core.$loose>;
13
- export type CompletedSectionMetadata = z.infer<typeof CompletedSectionMetadataSchema>;
14
- export declare const CompletedTaskMetadataSchema: z.ZodObject<{
15
- itemId: z.ZodString;
16
- id: z.ZodOptional<z.ZodString>;
17
- completedItems: z.ZodNumber;
18
- }, z.core.$loose>;
19
- export type CompletedTaskMetadata = z.infer<typeof CompletedTaskMetadataSchema>;
20
- export declare const CompletedInfoSchema: z.ZodUnion<readonly [z.ZodObject<{
21
- projectId: z.ZodString;
22
- archivedSections: z.ZodNumber;
23
- completedItems: z.ZodNumber;
24
- }, z.core.$loose>, z.ZodObject<{
25
- sectionId: z.ZodString;
26
- id: z.ZodString;
27
- completedItems: z.ZodNumber;
28
- }, z.core.$loose>, z.ZodObject<{
29
- itemId: z.ZodString;
30
- id: z.ZodOptional<z.ZodString>;
31
- completedItems: z.ZodNumber;
32
- }, z.core.$loose>]>;
33
- export type CompletedInfo = z.infer<typeof CompletedInfoSchema>;
@@ -1,12 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const FilterSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- name: z.ZodString;
5
- query: z.ZodString;
6
- color: z.ZodString;
7
- isDeleted: z.ZodBoolean;
8
- isFavorite: z.ZodBoolean;
9
- isFrozen: z.ZodBoolean;
10
- itemOrder: z.ZodNumber;
11
- }, z.core.$loose>;
12
- export type Filter = z.infer<typeof FilterSchema>;
@@ -1,10 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const FolderSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- name: z.ZodString;
5
- workspaceId: z.ZodString;
6
- isDeleted: z.ZodBoolean;
7
- defaultOrder: z.ZodNumber;
8
- childOrder: z.ZodNumber;
9
- }, z.core.$loose>;
10
- export type Folder = z.infer<typeof FolderSchema>;
@@ -1,17 +0,0 @@
1
- export * from './filters.js';
2
- export * from './collaborators.js';
3
- export * from './folders.js';
4
- export * from './tooltips.js';
5
- export * from './notes.js';
6
- export * from './workspace-filters.js';
7
- export * from './workspace-goals.js';
8
- export * from './calendars.js';
9
- export * from './reminders.js';
10
- export * from './completed-info.js';
11
- export * from './view-options.js';
12
- export * from './user-plan-limits.js';
13
- export * from './live-notifications.js';
14
- export * from './workspaces.js';
15
- export * from './user.js';
16
- export * from './user-settings.js';
17
- export * from './suggestions.js';
@@ -1,32 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Live notification resource from the Sync API.
4
- *
5
- * Uses a base schema with commonly-present fields plus `.passthrough()` for
6
- * forward compatibility. The Sync API returns 20+ notification variants;
7
- * fully typing each is too fragile for a library, so we validate the common
8
- * shape and preserve all extra fields.
9
- */
10
- export declare const LiveNotificationSchema: z.ZodObject<{
11
- id: z.ZodString;
12
- createdAt: z.ZodString;
13
- fromUid: z.ZodString;
14
- notificationType: z.ZodString;
15
- isUnread: z.ZodBoolean;
16
- projectId: z.ZodOptional<z.ZodString>;
17
- invitationId: z.ZodOptional<z.ZodString>;
18
- itemId: z.ZodOptional<z.ZodString>;
19
- itemContent: z.ZodOptional<z.ZodString>;
20
- responsibleUid: z.ZodOptional<z.ZodString>;
21
- assignedByUid: z.ZodOptional<z.ZodString>;
22
- fromUser: z.ZodOptional<z.ZodObject<{
23
- email: z.ZodString;
24
- fullName: z.ZodString;
25
- id: z.ZodString;
26
- imageId: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
28
- projectName: z.ZodOptional<z.ZodString>;
29
- isDeleted: z.ZodOptional<z.ZodBoolean>;
30
- invitationSecret: z.ZodOptional<z.ZodString>;
31
- }, z.core.$loose>;
32
- export type LiveNotification = z.infer<typeof LiveNotificationSchema>;
@@ -1,34 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Sync API note (comment) resource.
4
- * Separate from the REST `CommentSchema` which transforms `itemId` to `taskId`.
5
- */
6
- export declare const NoteSchema: z.ZodObject<{
7
- id: z.ZodString;
8
- itemId: z.ZodOptional<z.ZodString>;
9
- projectId: z.ZodOptional<z.ZodString>;
10
- content: z.ZodString;
11
- postedAt: z.ZodString;
12
- fileAttachment: z.ZodNullable<z.ZodObject<{
13
- resourceType: z.ZodString;
14
- fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
- fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
- uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
20
- completed: "completed";
21
- pending: "pending";
22
- }>>>;
23
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
- imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>;
29
- postedUid: z.ZodString;
30
- uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
31
- reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
32
- isDeleted: z.ZodBoolean;
33
- }, z.core.$loose>;
34
- export type Note = z.infer<typeof NoteSchema>;
@@ -1,126 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const ReminderBaseSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- notifyUid: z.ZodString;
5
- itemId: z.ZodString;
6
- projectId: z.ZodOptional<z.ZodString>;
7
- isDeleted: z.ZodBoolean;
8
- }, z.core.$strip>;
9
- /** Enum-like object of reminder type values. */
10
- export declare const ReminderTypeEnum: {
11
- readonly Relative: "relative";
12
- readonly Absolute: "absolute";
13
- readonly Location: "location";
14
- };
15
- /** Available reminder types. */
16
- export declare const REMINDER_TYPES: readonly ["relative", "absolute", "location"];
17
- /** Discriminator for reminder type. */
18
- export type ReminderType = (typeof REMINDER_TYPES)[number];
19
- /** Available location reminder triggers. */
20
- export declare const LOCATION_TRIGGERS: readonly ["on_enter", "on_leave"];
21
- /** Trigger condition for a location-based reminder. */
22
- export type LocationTrigger = (typeof LOCATION_TRIGGERS)[number];
23
- export declare const LocationReminderSchema: z.ZodObject<{
24
- id: z.ZodString;
25
- notifyUid: z.ZodString;
26
- itemId: z.ZodString;
27
- projectId: z.ZodOptional<z.ZodString>;
28
- isDeleted: z.ZodBoolean;
29
- type: z.ZodLiteral<"location">;
30
- name: z.ZodString;
31
- locLat: z.ZodString;
32
- locLong: z.ZodString;
33
- locTrigger: z.ZodEnum<{
34
- on_enter: "on_enter";
35
- on_leave: "on_leave";
36
- }>;
37
- radius: z.ZodNumber;
38
- }, z.core.$loose>;
39
- export type LocationReminder = z.infer<typeof LocationReminderSchema>;
40
- export declare const AbsoluteReminderSchema: z.ZodObject<{
41
- id: z.ZodString;
42
- notifyUid: z.ZodString;
43
- itemId: z.ZodString;
44
- projectId: z.ZodOptional<z.ZodString>;
45
- isDeleted: z.ZodBoolean;
46
- type: z.ZodLiteral<"absolute">;
47
- due: z.ZodObject<{
48
- isRecurring: z.ZodBoolean;
49
- string: z.ZodString;
50
- date: z.ZodString;
51
- datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
- timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
- }, z.core.$strip>;
55
- isUrgent: z.ZodOptional<z.ZodBoolean>;
56
- }, z.core.$loose>;
57
- export type AbsoluteReminder = z.infer<typeof AbsoluteReminderSchema>;
58
- export declare const RelativeReminderSchema: z.ZodObject<{
59
- id: z.ZodString;
60
- notifyUid: z.ZodString;
61
- itemId: z.ZodString;
62
- projectId: z.ZodOptional<z.ZodString>;
63
- isDeleted: z.ZodBoolean;
64
- type: z.ZodLiteral<"relative">;
65
- minuteOffset: z.ZodNumber;
66
- due: z.ZodOptional<z.ZodObject<{
67
- isRecurring: z.ZodBoolean;
68
- string: z.ZodString;
69
- date: z.ZodString;
70
- datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
- timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
- }, z.core.$strip>>;
74
- isUrgent: z.ZodOptional<z.ZodBoolean>;
75
- }, z.core.$loose>;
76
- export type RelativeReminder = z.infer<typeof RelativeReminderSchema>;
77
- export declare const ReminderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
78
- id: z.ZodString;
79
- notifyUid: z.ZodString;
80
- itemId: z.ZodString;
81
- projectId: z.ZodOptional<z.ZodString>;
82
- isDeleted: z.ZodBoolean;
83
- type: z.ZodLiteral<"location">;
84
- name: z.ZodString;
85
- locLat: z.ZodString;
86
- locLong: z.ZodString;
87
- locTrigger: z.ZodEnum<{
88
- on_enter: "on_enter";
89
- on_leave: "on_leave";
90
- }>;
91
- radius: z.ZodNumber;
92
- }, z.core.$loose>, z.ZodObject<{
93
- id: z.ZodString;
94
- notifyUid: z.ZodString;
95
- itemId: z.ZodString;
96
- projectId: z.ZodOptional<z.ZodString>;
97
- isDeleted: z.ZodBoolean;
98
- type: z.ZodLiteral<"absolute">;
99
- due: z.ZodObject<{
100
- isRecurring: z.ZodBoolean;
101
- string: z.ZodString;
102
- date: z.ZodString;
103
- datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
- timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
- }, z.core.$strip>;
107
- isUrgent: z.ZodOptional<z.ZodBoolean>;
108
- }, z.core.$loose>, z.ZodObject<{
109
- id: z.ZodString;
110
- notifyUid: z.ZodString;
111
- itemId: z.ZodString;
112
- projectId: z.ZodOptional<z.ZodString>;
113
- isDeleted: z.ZodBoolean;
114
- type: z.ZodLiteral<"relative">;
115
- minuteOffset: z.ZodNumber;
116
- due: z.ZodOptional<z.ZodObject<{
117
- isRecurring: z.ZodBoolean;
118
- string: z.ZodString;
119
- date: z.ZodString;
120
- datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
- }, z.core.$strip>>;
124
- isUrgent: z.ZodOptional<z.ZodBoolean>;
125
- }, z.core.$loose>], "type">;
126
- export type Reminder = z.infer<typeof ReminderSchema>;
@@ -1,96 +0,0 @@
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>;
@@ -1,6 +0,0 @@
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>;
@@ -1,41 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const PlanLimitsSchema: z.ZodObject<{
3
- activeProjects: z.ZodOptional<z.ZodNumber>;
4
- activityLog: z.ZodOptional<z.ZodNumber>;
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
- remindersPerUser: z.ZodOptional<z.ZodNumber>;
11
- sectionsPerProject: z.ZodOptional<z.ZodNumber>;
12
- tasksPerProject: z.ZodOptional<z.ZodNumber>;
13
- }, z.core.$loose>;
14
- export type PlanLimits = z.infer<typeof PlanLimitsSchema>;
15
- export declare const UserPlanLimitsSchema: z.ZodObject<{
16
- current: z.ZodObject<{
17
- activeProjects: z.ZodOptional<z.ZodNumber>;
18
- activityLog: z.ZodOptional<z.ZodNumber>;
19
- collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
20
- commentsPerTask: z.ZodOptional<z.ZodNumber>;
21
- fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
22
- filtersPerUser: z.ZodOptional<z.ZodNumber>;
23
- labelsPerTask: z.ZodOptional<z.ZodNumber>;
24
- remindersPerUser: z.ZodOptional<z.ZodNumber>;
25
- sectionsPerProject: z.ZodOptional<z.ZodNumber>;
26
- tasksPerProject: z.ZodOptional<z.ZodNumber>;
27
- }, z.core.$loose>;
28
- next: z.ZodNullable<z.ZodObject<{
29
- activeProjects: z.ZodOptional<z.ZodNumber>;
30
- activityLog: z.ZodOptional<z.ZodNumber>;
31
- collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
32
- commentsPerTask: z.ZodOptional<z.ZodNumber>;
33
- fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
34
- filtersPerUser: z.ZodOptional<z.ZodNumber>;
35
- labelsPerTask: z.ZodOptional<z.ZodNumber>;
36
- remindersPerUser: z.ZodOptional<z.ZodNumber>;
37
- sectionsPerProject: z.ZodOptional<z.ZodNumber>;
38
- tasksPerProject: z.ZodOptional<z.ZodNumber>;
39
- }, z.core.$loose>>;
40
- }, z.core.$loose>;
41
- export type UserPlanLimits = z.infer<typeof UserPlanLimitsSchema>;
@@ -1,40 +0,0 @@
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.ZodNullable<z.ZodString>;
17
- legacyPricing: z.ZodBoolean;
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>;