@doist/todoist-api-typescript 7.9.1 → 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 -10
  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 -73
  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 -155
  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 -7
  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 -70
  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 -152
  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 -13
  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 -142
  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 -267
  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 -1404
@@ -1,12 +0,0 @@
1
- import type { CustomFetch, HttpResponse, RetryConfig } from '../types/http.js';
2
- /**
3
- * Performs a fetch request with retry logic and timeout support
4
- */
5
- export declare function fetchWithRetry<T = unknown>(args: {
6
- url: string;
7
- options?: RequestInit & {
8
- timeout?: number;
9
- };
10
- retryConfig?: Partial<RetryConfig>;
11
- customFetch?: CustomFetch;
12
- }): Promise<HttpResponse<T>>;
@@ -1,16 +0,0 @@
1
- import type { CustomFetch, HttpMethod, HttpResponse } from '../types/http.js';
2
- type RequestArgs = {
3
- httpMethod: HttpMethod;
4
- baseUri: string;
5
- relativePath: string;
6
- apiToken?: string;
7
- payload?: Record<string, unknown>;
8
- requestId?: string;
9
- hasSyncCommands?: boolean;
10
- customHeaders?: Record<string, string>;
11
- customFetch?: CustomFetch;
12
- };
13
- export declare function paramsSerializer(params: Record<string, unknown>): string;
14
- export declare function isSuccess(response: HttpResponse): boolean;
15
- export declare function request<T>(args: RequestArgs): Promise<HttpResponse<T>>;
16
- export {};
@@ -1,3 +0,0 @@
1
- import type { Dispatcher } from 'undici';
2
- export declare function getDefaultDispatcher(): Promise<Dispatcher | undefined>;
3
- export declare function resetDefaultDispatcherForTests(): Promise<void>;
@@ -1,2 +0,0 @@
1
- export * from './types.js';
2
- export * from './requests.js';
@@ -1,85 +0,0 @@
1
- import type { ActivityEvent, ActivityObjectEventType } from './types.js';
2
- /**
3
- * Common arguments for retrieving activity logs (excluding filter-type params).
4
- */
5
- type GetActivityLogsArgsCommon = {
6
- /**
7
- * Filter by the ID of a specific object.
8
- */
9
- objectId?: string;
10
- /**
11
- * Filter events by parent project ID.
12
- */
13
- parentProjectId?: string;
14
- /**
15
- * Filter events by parent task ID.
16
- */
17
- parentItemId?: string;
18
- /**
19
- * When true, includes the parent object data in the response.
20
- */
21
- includeParentObject?: boolean;
22
- /**
23
- * When true, includes child object data in the response.
24
- */
25
- includeChildObjects?: boolean;
26
- /**
27
- * Filter by the user ID who initiated the event.
28
- */
29
- initiatorId?: string;
30
- /**
31
- * When true, filters for events with no initiator (system-generated events).
32
- * When false, filters for events with an initiator.
33
- * When null or undefined, no filtering on initiator is applied.
34
- */
35
- initiatorIdNull?: boolean | null;
36
- /**
37
- * When true, ensures the last state of objects is included in the response.
38
- */
39
- ensureLastState?: boolean;
40
- /**
41
- * When true, includes comment annotations in the response.
42
- */
43
- annotateNotes?: boolean;
44
- /**
45
- * When true, includes parent object annotations in the response.
46
- */
47
- annotateParents?: boolean;
48
- /**
49
- * Pagination cursor for retrieving the next page of results.
50
- */
51
- cursor?: string | null;
52
- /**
53
- * Maximum number of results to return per page.
54
- */
55
- limit?: number;
56
- /**
57
- * Start date for filtering events (inclusive). Replaces deprecated `since`.
58
- * Accepts a Date object or YYYY-MM-DD string.
59
- */
60
- dateFrom?: Date | string;
61
- /**
62
- * End date for filtering events (inclusive). Replaces deprecated `until`.
63
- * Accepts a Date object or YYYY-MM-DD string.
64
- */
65
- dateTo?: Date | string;
66
- };
67
- export type GetActivityLogsArgs = GetActivityLogsArgsCommon & {
68
- objectEventTypes?: ActivityObjectEventType | ActivityObjectEventType[];
69
- /** @removed Use `objectEventTypes` instead. */
70
- objectType?: never;
71
- /** @removed Use `objectEventTypes` instead. */
72
- eventType?: never;
73
- /** @removed Use `dateFrom` instead. */
74
- since?: never;
75
- /** @removed Use `dateTo` instead. */
76
- until?: never;
77
- };
78
- /**
79
- * Response from retrieving activity logs.
80
- */
81
- export type GetActivityLogsResponse = {
82
- results: ActivityEvent[];
83
- nextCursor: string | null;
84
- };
85
- export {};
@@ -1,49 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Type hints for known object types. Accepts any string for forward compatibility.
4
- */
5
- export type ActivityObjectType = 'task' | 'comment' | 'project' | (string & Record<string, never>);
6
- /**
7
- * Type hints for known event types. Accepts any string for forward compatibility.
8
- */
9
- export type ActivityEventType = 'added' | 'updated' | 'deleted' | 'completed' | 'uncompleted' | 'archived' | 'unarchived' | 'shared' | 'left' | (string & Record<string, never>);
10
- type ModernActivityObjectType = 'task' | 'comment' | 'project' | (string & Record<string, never>);
11
- /**
12
- * Combined object:event filter string for the `objectEventTypes` parameter of `getActivityLogs`.
13
- *
14
- * Uses modern object type names (`task`, `comment`) rather than legacy API names (`item`, `note`).
15
- * Either part may be omitted:
16
- * - `'task:added'` — task additions only
17
- * - `'task:'` — all events for tasks
18
- * - `':deleted'` — all deleted events across all object types
19
- *
20
- * The final `string & Record<string, never>` member allows any arbitrary string
21
- * to be passed for forward compatibility, while still providing autocomplete for
22
- * the known combinations above.
23
- */
24
- export type ActivityObjectEventType = `${ModernActivityObjectType}:${ActivityEventType}` | `${ModernActivityObjectType}:` | `:${ActivityEventType}` | (string & Record<string, never>);
25
- /**
26
- * Flexible object containing event-specific data.
27
- * Uses z.record to accept any properties for forward compatibility.
28
- */
29
- export declare const ActivityEventExtraDataSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
30
- export type ActivityEventExtraData = z.infer<typeof ActivityEventExtraDataSchema>;
31
- /**
32
- * Activity log event schema. Accepts unknown fields for forward compatibility.
33
- */
34
- export declare const ActivityEventSchema: z.ZodObject<{
35
- objectType: z.ZodString;
36
- objectId: z.ZodString;
37
- eventType: z.ZodString;
38
- eventDate: z.ZodString;
39
- id: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
40
- parentProjectId: z.ZodNullable<z.ZodString>;
41
- parentItemId: z.ZodNullable<z.ZodString>;
42
- initiatorId: z.ZodNullable<z.ZodString>;
43
- extraData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
44
- }, z.core.$catchall<z.ZodAny>>;
45
- /**
46
- * Represents an activity log event in Todoist.
47
- */
48
- export type ActivityEvent = z.infer<typeof ActivityEventSchema>;
49
- export {};
@@ -1,2 +0,0 @@
1
- export * from './types.js';
2
- export * from './requests.js';
@@ -1,16 +0,0 @@
1
- /**
2
- * Arguments for listing backups.
3
- * @see https://developer.todoist.com/api/v1/#tag/Backups/operation/get_backups_api_v1_backups_get
4
- */
5
- export type GetBackupsArgs = {
6
- /** MFA token if required. Not needed when using an OAuth token with the `backups:read` scope. */
7
- mfaToken?: string | null;
8
- };
9
- /**
10
- * Arguments for downloading a backup.
11
- * @see https://developer.todoist.com/api/v1/#tag/Backups/operation/download_backup_api_v1_backups_download_get
12
- */
13
- export type DownloadBackupArgs = {
14
- /** The backup file URL. */
15
- file: string;
16
- };
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const BackupSchema: z.ZodObject<{
3
- version: z.ZodString;
4
- url: z.ZodString;
5
- }, z.core.$strip>;
6
- /** Represents a backup snapshot. */
7
- export type Backup = z.infer<typeof BackupSchema>;
@@ -1,2 +0,0 @@
1
- export * from './types.js';
2
- export * from './requests.js';
@@ -1,64 +0,0 @@
1
- import type { RequireExactlyOne } from 'type-fest';
2
- import type { Comment } from './types.js';
3
- /**
4
- * Arguments for retrieving comments.
5
- * @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
6
- */
7
- export type GetCommentsArgs = {
8
- taskId: string;
9
- projectId?: never;
10
- cursor?: string | null;
11
- limit?: number;
12
- };
13
- /**
14
- * Arguments for retrieving task comments.
15
- * @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
16
- */
17
- export type GetTaskCommentsArgs = {
18
- taskId: string;
19
- projectId?: never;
20
- cursor?: string | null;
21
- limit?: number;
22
- };
23
- /**
24
- * Arguments for retrieving project comments.
25
- * @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
26
- */
27
- export type GetProjectCommentsArgs = {
28
- projectId: string;
29
- taskId?: never;
30
- cursor?: string | null;
31
- limit?: number;
32
- };
33
- /**
34
- * Response from retrieving comments.
35
- * @see https://developer.todoist.com/api/v1/#tag/Comments/operation/get_comments_api_v1_comments_get
36
- */
37
- export type GetCommentsResponse = {
38
- results: Comment[];
39
- nextCursor: string | null;
40
- };
41
- /**
42
- * Arguments for creating a new comment.
43
- * @see https://developer.todoist.com/api/v1/#tag/Comments/operation/create_comment_api_v1_comments_post
44
- */
45
- export type AddCommentArgs = {
46
- content: string;
47
- attachment?: {
48
- fileName?: string;
49
- fileUrl: string;
50
- fileType?: string;
51
- resourceType?: string;
52
- } | null;
53
- uidsToNotify?: string[];
54
- } & RequireExactlyOne<{
55
- taskId?: string;
56
- projectId?: string;
57
- }>;
58
- /**
59
- * Arguments for updating a comment.
60
- * @see https://developer.todoist.com/api/v1/#tag/Comments/operation/update_comment_api_v1_comments__comment_id__post
61
- */
62
- export type UpdateCommentArgs = {
63
- content: string;
64
- };
@@ -1,141 +0,0 @@
1
- import { z } from 'zod';
2
- /** Available file attachment upload states. */
3
- export declare const UPLOAD_STATES: readonly ["pending", "completed"];
4
- /** Upload state of a file attachment. */
5
- export type UploadState = (typeof UPLOAD_STATES)[number];
6
- export declare const AttachmentSchema: z.ZodObject<{
7
- resourceType: z.ZodString;
8
- fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
- fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
- uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
14
- completed: "completed";
15
- pending: "pending";
16
- }>>>;
17
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
- imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
23
- /**
24
- * Represents a file attachment in a comment.
25
- * @see https://developer.todoist.com/api/v1/#tag/Sync/Comments/File-Attachments
26
- */
27
- export type Attachment = z.infer<typeof AttachmentSchema>;
28
- export declare const RawCommentSchema: z.ZodObject<{
29
- id: z.ZodString;
30
- itemId: z.ZodOptional<z.ZodString>;
31
- projectId: z.ZodOptional<z.ZodString>;
32
- content: z.ZodString;
33
- postedAt: z.ZodString;
34
- fileAttachment: z.ZodNullable<z.ZodObject<{
35
- resourceType: z.ZodString;
36
- fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
- fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
- fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
- fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
- uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
42
- completed: "completed";
43
- pending: "pending";
44
- }>>>;
45
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
- imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- }, z.core.$strip>>;
51
- postedUid: z.ZodString;
52
- uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
53
- reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
54
- isDeleted: z.ZodBoolean;
55
- }, z.core.$strip>;
56
- /**
57
- * Represents a raw comment response from the API.
58
- * @see https://developer.todoist.com/api/v1/#tag/Comments
59
- */
60
- export type RawComment = z.infer<typeof RawCommentSchema>;
61
- export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
62
- id: z.ZodString;
63
- itemId: z.ZodOptional<z.ZodString>;
64
- projectId: z.ZodOptional<z.ZodString>;
65
- content: z.ZodString;
66
- postedAt: z.ZodString;
67
- fileAttachment: z.ZodNullable<z.ZodObject<{
68
- resourceType: z.ZodString;
69
- fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
- fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
- fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
- fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
- uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
75
- completed: "completed";
76
- pending: "pending";
77
- }>>>;
78
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
- imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- }, z.core.$strip>>;
84
- postedUid: z.ZodString;
85
- uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
86
- reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
87
- isDeleted: z.ZodBoolean;
88
- }, z.core.$strip>, z.ZodTransform<{
89
- taskId: string | undefined;
90
- id: string;
91
- content: string;
92
- postedAt: string;
93
- fileAttachment: {
94
- resourceType: string;
95
- fileName?: string | null | undefined;
96
- fileSize?: number | null | undefined;
97
- fileType?: string | null | undefined;
98
- fileUrl?: string | null | undefined;
99
- fileDuration?: number | null | undefined;
100
- uploadState?: "completed" | "pending" | null | undefined;
101
- image?: string | null | undefined;
102
- imageWidth?: number | null | undefined;
103
- imageHeight?: number | null | undefined;
104
- url?: string | null | undefined;
105
- title?: string | null | undefined;
106
- } | null;
107
- postedUid: string;
108
- uidsToNotify: string[] | null;
109
- reactions: Record<string, string[]> | null;
110
- isDeleted: boolean;
111
- projectId?: string | undefined;
112
- }, {
113
- id: string;
114
- content: string;
115
- postedAt: string;
116
- fileAttachment: {
117
- resourceType: string;
118
- fileName?: string | null | undefined;
119
- fileSize?: number | null | undefined;
120
- fileType?: string | null | undefined;
121
- fileUrl?: string | null | undefined;
122
- fileDuration?: number | null | undefined;
123
- uploadState?: "completed" | "pending" | null | undefined;
124
- image?: string | null | undefined;
125
- imageWidth?: number | null | undefined;
126
- imageHeight?: number | null | undefined;
127
- url?: string | null | undefined;
128
- title?: string | null | undefined;
129
- } | null;
130
- postedUid: string;
131
- uidsToNotify: string[] | null;
132
- reactions: Record<string, string[]> | null;
133
- isDeleted: boolean;
134
- itemId?: string | undefined;
135
- projectId?: string | undefined;
136
- }>>;
137
- /**
138
- * Represents a comment in Todoist.
139
- * @see https://developer.todoist.com/api/v1/#tag/Comments
140
- */
141
- export type Comment = z.infer<typeof CommentSchema>;
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
- type SearchArgs = {
3
- query: string;
4
- cursor?: string | null;
5
- limit?: number;
6
- };
7
- /**
8
- * Zod schema that accepts both string and number values and coerces to string.
9
- * The REST API returns numeric IDs while the Sync API returns string IDs.
10
- */
11
- declare const StringOrNumberSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
12
- export { StringOrNumberSchema };
13
- export type { SearchArgs };
@@ -1 +0,0 @@
1
- export * from './requests.js';
@@ -1,30 +0,0 @@
1
- /** Object types that support email forwarding. */
2
- export declare const EMAIL_OBJECT_TYPES: readonly ["project", "project_comments", "task"];
3
- /** Object type that supports email forwarding. */
4
- export type EmailObjectType = (typeof EMAIL_OBJECT_TYPES)[number];
5
- /**
6
- * Arguments for getting or creating an email forwarding address.
7
- * @see https://developer.todoist.com/api/v1/#tag/Emails/operation/email_get_or_create_api_v1_emails_put
8
- */
9
- export type GetOrCreateEmailArgs = {
10
- /** The type of object to forward emails to. */
11
- objType: EmailObjectType;
12
- /** The ID of the object. */
13
- objId: string;
14
- };
15
- /**
16
- * Response from getting or creating an email forwarding address.
17
- */
18
- export type GetOrCreateEmailResponse = {
19
- email: string;
20
- };
21
- /**
22
- * Arguments for disabling email forwarding.
23
- * @see https://developer.todoist.com/api/v1/#tag/Emails/operation/email_disable_api_v1_emails_delete
24
- */
25
- export type DisableEmailArgs = {
26
- /** The type of object to disable forwarding for. */
27
- objType: EmailObjectType;
28
- /** The ID of the object. */
29
- objId: string;
30
- };
@@ -1,12 +0,0 @@
1
- import { CustomError } from 'ts-custom-error';
2
- export declare class TodoistRequestError extends CustomError {
3
- message: string;
4
- httpStatusCode?: number | undefined;
5
- responseData?: unknown | undefined;
6
- constructor(message: string, httpStatusCode?: number | undefined, responseData?: unknown | undefined);
7
- isAuthenticationError: () => boolean;
8
- }
9
- export declare class TodoistArgumentError extends CustomError {
10
- message: string;
11
- constructor(message: string);
12
- }
@@ -1 +0,0 @@
1
- export * from './requests.js';
@@ -1,20 +0,0 @@
1
- import type { Folder } from '../sync/resources/folders.js';
2
- export type GetFoldersArgs = {
3
- workspaceId: number;
4
- cursor?: string | null;
5
- limit?: number;
6
- };
7
- export type GetFoldersResponse = {
8
- results: Folder[];
9
- nextCursor: string | null;
10
- };
11
- export type AddFolderArgs = {
12
- name: string;
13
- workspaceId: number;
14
- defaultOrder?: number | null;
15
- childOrder?: number | null;
16
- };
17
- export type UpdateFolderArgs = {
18
- name?: string | null;
19
- defaultOrder?: number | null;
20
- };
@@ -1,85 +0,0 @@
1
- export type HttpMethod = 'POST' | 'GET' | 'DELETE' | 'PUT';
2
- /**
3
- * HTTP response type that replaces AxiosResponse
4
- */
5
- export type HttpResponse<T = unknown> = {
6
- data: T;
7
- status: number;
8
- statusText: string;
9
- headers: Record<string, string>;
10
- };
11
- /**
12
- * HTTP request configuration
13
- */
14
- export type HttpRequestConfig = {
15
- method?: HttpMethod;
16
- headers?: Record<string, string>;
17
- timeout?: number;
18
- signal?: AbortSignal;
19
- };
20
- /**
21
- * Internal HTTP request options
22
- */
23
- export type HttpRequestOptions = HttpRequestConfig & {
24
- url: string;
25
- params?: Record<string, unknown>;
26
- data?: unknown;
27
- };
28
- /**
29
- * Configuration for retry behavior
30
- */
31
- export type RetryConfig = {
32
- retries: number;
33
- retryCondition: (error: Error) => boolean;
34
- retryDelay: (retryNumber: number) => number;
35
- };
36
- /**
37
- * Configuration for the HTTP client
38
- */
39
- export type HttpClientConfig = {
40
- baseURL?: string;
41
- headers?: Record<string, string>;
42
- timeout?: number;
43
- retry?: RetryConfig;
44
- };
45
- /**
46
- * Network error type for retry logic
47
- */
48
- export type NetworkError = Error & {
49
- code?: string;
50
- isNetworkError: true;
51
- };
52
- /**
53
- * HTTP error with status code and response data
54
- */
55
- export type HttpError = Error & {
56
- status?: number;
57
- statusText?: string;
58
- response?: HttpResponse<unknown>;
59
- data?: unknown;
60
- };
61
- /**
62
- * Type guard to check if an error is a network error
63
- */
64
- export declare function isNetworkError(error: Error): error is NetworkError;
65
- /**
66
- * Type guard to check if an error is an HTTP error
67
- */
68
- export declare function isHttpError(error: Error): error is HttpError;
69
- /**
70
- * Custom fetch response interface that custom HTTP clients must implement
71
- */
72
- export type CustomFetchResponse = {
73
- ok: boolean;
74
- status: number;
75
- statusText: string;
76
- headers: Record<string, string>;
77
- text(): Promise<string>;
78
- json(): Promise<unknown>;
79
- };
80
- /**
81
- * Custom fetch function type for alternative HTTP clients
82
- */
83
- export type CustomFetch = (url: string, options?: RequestInit & {
84
- timeout?: number;
85
- }) => Promise<CustomFetchResponse>;
@@ -1,2 +0,0 @@
1
- export * from './types.js';
2
- export * from './requests.js';
@@ -1,28 +0,0 @@
1
- /** Object types that support ID mappings. */
2
- export declare const ID_MAPPING_OBJECT_TYPES: readonly ["sections", "tasks", "comments", "reminders", "location_reminders", "projects"];
3
- /** Object type that supports ID mappings. */
4
- export type IdMappingObjectType = (typeof ID_MAPPING_OBJECT_TYPES)[number];
5
- /** Object types that support moved ID lookups. */
6
- export declare const MOVED_ID_OBJECT_TYPES: readonly ["sections", "tasks", "comments", "reminders", "location_reminders"];
7
- /** Object type that supports moved ID lookups. */
8
- export type MovedIdObjectType = (typeof MOVED_ID_OBJECT_TYPES)[number];
9
- /**
10
- * Arguments for getting ID mappings between old and new IDs.
11
- * @see https://developer.todoist.com/api/v1/#tag/Ids/operation/id_mappings_api_v1_id_mappings__obj_name___obj_ids__get
12
- */
13
- export type GetIdMappingsArgs = {
14
- /** The type of object to look up. */
15
- objName: IdMappingObjectType;
16
- /** Array of IDs to look up. */
17
- objIds: [string, ...string[]];
18
- };
19
- /**
20
- * Arguments for getting moved IDs.
21
- * @see https://developer.todoist.com/api/v1/#tag/Ids/operation/moved_ids_api_v1_moved_ids__obj_name__get
22
- */
23
- export type GetMovedIdsArgs = {
24
- /** The type of object to look up. */
25
- objName: MovedIdObjectType;
26
- /** Array of old IDs to look up. */
27
- oldIds?: string[];
28
- };
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const IdMappingSchema: z.ZodObject<{
3
- oldId: z.ZodNullable<z.ZodString>;
4
- newId: z.ZodNullable<z.ZodString>;
5
- }, z.core.$strip>;
6
- /** Mapping between old and new IDs after migration. */
7
- export type IdMapping = z.infer<typeof IdMappingSchema>;
8
- export declare const MovedIdSchema: z.ZodObject<{
9
- oldId: z.ZodString;
10
- newId: z.ZodString;
11
- }, z.core.$strip>;
12
- /** A moved ID pair (old to new). */
13
- export type MovedId = z.infer<typeof MovedIdSchema>;
@@ -1,20 +0,0 @@
1
- export * from './tasks/index.js';
2
- export * from './projects/index.js';
3
- export * from './sections/index.js';
4
- export * from './labels/index.js';
5
- export * from './comments/index.js';
6
- export * from './reminders/index.js';
7
- export * from './users/index.js';
8
- export * from './productivity/index.js';
9
- export * from './activity/index.js';
10
- export * from './workspaces/index.js';
11
- export * from './folders/index.js';
12
- export * from './insights/index.js';
13
- export * from './backups/index.js';
14
- export * from './id-mappings/index.js';
15
- export * from './emails/index.js';
16
- export * from './uploads/index.js';
17
- export * from './templates/index.js';
18
- export * from './errors.js';
19
- export * from './http.js';
20
- export * from './sync/index.js';
@@ -1,2 +0,0 @@
1
- export * from './types.js';
2
- export * from './requests.js';