@doist/todoist-ai 2.2.2 → 4.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 (202) hide show
  1. package/README.md +6 -14
  2. package/dist/index.d.ts +619 -250
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +45 -29
  5. package/dist/main.js +2 -1
  6. package/dist/mcp-helpers.d.ts +25 -3
  7. package/dist/mcp-helpers.d.ts.map +1 -1
  8. package/dist/mcp-helpers.js +37 -19
  9. package/dist/mcp-server.d.ts.map +1 -1
  10. package/dist/mcp-server.js +44 -28
  11. package/dist/tools/__tests__/add-comments.test.d.ts +2 -0
  12. package/dist/tools/__tests__/add-comments.test.d.ts.map +1 -0
  13. package/dist/tools/__tests__/add-comments.test.js +241 -0
  14. package/dist/tools/__tests__/add-projects.test.d.ts +2 -0
  15. package/dist/tools/__tests__/add-projects.test.d.ts.map +1 -0
  16. package/dist/tools/__tests__/add-projects.test.js +152 -0
  17. package/dist/tools/__tests__/add-sections.test.d.ts +2 -0
  18. package/dist/tools/__tests__/add-sections.test.d.ts.map +1 -0
  19. package/dist/tools/__tests__/add-sections.test.js +181 -0
  20. package/dist/tools/__tests__/add-tasks.test.d.ts +2 -0
  21. package/dist/tools/__tests__/add-tasks.test.d.ts.map +1 -0
  22. package/dist/tools/__tests__/{tasks-add-multiple.test.js → add-tasks.test.js} +89 -79
  23. package/dist/tools/__tests__/complete-tasks.test.d.ts +2 -0
  24. package/dist/tools/__tests__/complete-tasks.test.d.ts.map +1 -0
  25. package/dist/tools/__tests__/complete-tasks.test.js +206 -0
  26. package/dist/tools/__tests__/delete-object.test.d.ts +2 -0
  27. package/dist/tools/__tests__/delete-object.test.d.ts.map +1 -0
  28. package/dist/tools/__tests__/{delete-one.test.js → delete-object.test.js} +42 -22
  29. package/dist/tools/__tests__/find-comments.test.d.ts +2 -0
  30. package/dist/tools/__tests__/find-comments.test.d.ts.map +1 -0
  31. package/dist/tools/__tests__/find-comments.test.js +242 -0
  32. package/dist/tools/__tests__/find-completed-tasks.test.d.ts +2 -0
  33. package/dist/tools/__tests__/find-completed-tasks.test.d.ts.map +1 -0
  34. package/dist/tools/__tests__/{tasks-list-completed.test.js → find-completed-tasks.test.js} +13 -36
  35. package/dist/tools/__tests__/find-projects.test.d.ts +2 -0
  36. package/dist/tools/__tests__/find-projects.test.d.ts.map +1 -0
  37. package/dist/tools/__tests__/{projects-list.test.js → find-projects.test.js} +55 -39
  38. package/dist/tools/__tests__/find-sections.test.d.ts +2 -0
  39. package/dist/tools/__tests__/find-sections.test.d.ts.map +1 -0
  40. package/dist/tools/__tests__/{sections-search.test.js → find-sections.test.js} +64 -50
  41. package/dist/tools/__tests__/find-tasks-by-date.test.d.ts +2 -0
  42. package/dist/tools/__tests__/find-tasks-by-date.test.d.ts.map +1 -0
  43. package/dist/tools/__tests__/{tasks-list-by-date.test.js → find-tasks-by-date.test.js} +96 -14
  44. package/dist/tools/__tests__/find-tasks.test.d.ts +2 -0
  45. package/dist/tools/__tests__/find-tasks.test.d.ts.map +1 -0
  46. package/dist/tools/__tests__/find-tasks.test.js +334 -0
  47. package/dist/tools/__tests__/get-overview.test.d.ts +2 -0
  48. package/dist/tools/__tests__/get-overview.test.d.ts.map +1 -0
  49. package/dist/tools/__tests__/{overview.test.js → get-overview.test.js} +77 -13
  50. package/dist/tools/__tests__/update-comments.test.d.ts +2 -0
  51. package/dist/tools/__tests__/update-comments.test.d.ts.map +1 -0
  52. package/dist/tools/__tests__/update-comments.test.js +296 -0
  53. package/dist/tools/__tests__/update-projects.test.d.ts +2 -0
  54. package/dist/tools/__tests__/update-projects.test.d.ts.map +1 -0
  55. package/dist/tools/__tests__/update-projects.test.js +205 -0
  56. package/dist/tools/__tests__/update-sections.test.d.ts +2 -0
  57. package/dist/tools/__tests__/update-sections.test.d.ts.map +1 -0
  58. package/dist/tools/__tests__/update-sections.test.js +156 -0
  59. package/dist/tools/__tests__/update-tasks.test.d.ts +2 -0
  60. package/dist/tools/__tests__/update-tasks.test.d.ts.map +1 -0
  61. package/dist/tools/__tests__/update-tasks.test.js +645 -0
  62. package/dist/tools/add-comments.d.ts +51 -0
  63. package/dist/tools/add-comments.d.ts.map +1 -0
  64. package/dist/tools/add-comments.js +79 -0
  65. package/dist/tools/add-projects.d.ts +50 -0
  66. package/dist/tools/add-projects.d.ts.map +1 -0
  67. package/dist/tools/add-projects.js +59 -0
  68. package/dist/tools/add-sections.d.ts +46 -0
  69. package/dist/tools/add-sections.d.ts.map +1 -0
  70. package/dist/tools/add-sections.js +61 -0
  71. package/dist/tools/add-tasks.d.ts +82 -0
  72. package/dist/tools/add-tasks.d.ts.map +1 -0
  73. package/dist/tools/add-tasks.js +96 -0
  74. package/dist/tools/complete-tasks.d.ts +40 -0
  75. package/dist/tools/complete-tasks.d.ts.map +1 -0
  76. package/dist/tools/complete-tasks.js +68 -0
  77. package/dist/tools/delete-object.d.ts +38 -0
  78. package/dist/tools/delete-object.d.ts.map +1 -0
  79. package/dist/tools/delete-object.js +79 -0
  80. package/dist/tools/find-comments.d.ts +46 -0
  81. package/dist/tools/find-comments.d.ts.map +1 -0
  82. package/dist/tools/find-comments.js +143 -0
  83. package/dist/tools/find-completed-tasks.d.ts +74 -0
  84. package/dist/tools/find-completed-tasks.d.ts.map +1 -0
  85. package/dist/tools/find-completed-tasks.js +112 -0
  86. package/dist/tools/find-projects.d.ts +53 -0
  87. package/dist/tools/find-projects.d.ts.map +1 -0
  88. package/dist/tools/find-projects.js +101 -0
  89. package/dist/tools/find-sections.d.ts +42 -0
  90. package/dist/tools/find-sections.d.ts.map +1 -0
  91. package/dist/tools/find-sections.js +96 -0
  92. package/dist/tools/find-tasks-by-date.d.ts +59 -0
  93. package/dist/tools/find-tasks-by-date.d.ts.map +1 -0
  94. package/dist/tools/find-tasks-by-date.js +121 -0
  95. package/dist/tools/find-tasks.d.ts +65 -0
  96. package/dist/tools/find-tasks.d.ts.map +1 -0
  97. package/dist/tools/find-tasks.js +182 -0
  98. package/dist/tools/get-overview.d.ts +67 -0
  99. package/dist/tools/get-overview.d.ts.map +1 -0
  100. package/dist/tools/{overview.js → get-overview.js} +66 -19
  101. package/dist/tools/update-comments.d.ts +50 -0
  102. package/dist/tools/update-comments.d.ts.map +1 -0
  103. package/dist/tools/update-comments.js +82 -0
  104. package/dist/tools/update-projects.d.ts +59 -0
  105. package/dist/tools/update-projects.d.ts.map +1 -0
  106. package/dist/tools/update-projects.js +84 -0
  107. package/dist/tools/update-sections.d.ts +47 -0
  108. package/dist/tools/update-sections.d.ts.map +1 -0
  109. package/dist/tools/update-sections.js +70 -0
  110. package/dist/tools/update-tasks.d.ts +94 -0
  111. package/dist/tools/update-tasks.d.ts.map +1 -0
  112. package/dist/tools/update-tasks.js +120 -0
  113. package/dist/utils/constants.d.ts +39 -0
  114. package/dist/utils/constants.d.ts.map +1 -0
  115. package/dist/utils/constants.js +41 -0
  116. package/dist/utils/response-builders.d.ts +88 -0
  117. package/dist/utils/response-builders.d.ts.map +1 -0
  118. package/dist/utils/response-builders.js +202 -0
  119. package/dist/{tools → utils}/test-helpers.d.ts +16 -0
  120. package/dist/utils/test-helpers.d.ts.map +1 -0
  121. package/dist/{tools → utils}/test-helpers.js +51 -0
  122. package/dist/utils/tool-names.d.ts +28 -0
  123. package/dist/utils/tool-names.d.ts.map +1 -0
  124. package/dist/utils/tool-names.js +31 -0
  125. package/package.json +1 -1
  126. package/dist/tools/__tests__/delete-one.test.d.ts +0 -2
  127. package/dist/tools/__tests__/delete-one.test.d.ts.map +0 -1
  128. package/dist/tools/__tests__/overview.test.d.ts +0 -2
  129. package/dist/tools/__tests__/overview.test.d.ts.map +0 -1
  130. package/dist/tools/__tests__/projects-list.test.d.ts +0 -2
  131. package/dist/tools/__tests__/projects-list.test.d.ts.map +0 -1
  132. package/dist/tools/__tests__/projects-manage.test.d.ts +0 -2
  133. package/dist/tools/__tests__/projects-manage.test.d.ts.map +0 -1
  134. package/dist/tools/__tests__/projects-manage.test.js +0 -106
  135. package/dist/tools/__tests__/sections-manage.test.d.ts +0 -2
  136. package/dist/tools/__tests__/sections-manage.test.d.ts.map +0 -1
  137. package/dist/tools/__tests__/sections-manage.test.js +0 -138
  138. package/dist/tools/__tests__/sections-search.test.d.ts +0 -2
  139. package/dist/tools/__tests__/sections-search.test.d.ts.map +0 -1
  140. package/dist/tools/__tests__/tasks-add-multiple.test.d.ts +0 -2
  141. package/dist/tools/__tests__/tasks-add-multiple.test.d.ts.map +0 -1
  142. package/dist/tools/__tests__/tasks-complete-multiple.test.d.ts +0 -2
  143. package/dist/tools/__tests__/tasks-complete-multiple.test.d.ts.map +0 -1
  144. package/dist/tools/__tests__/tasks-complete-multiple.test.js +0 -146
  145. package/dist/tools/__tests__/tasks-list-by-date.test.d.ts +0 -2
  146. package/dist/tools/__tests__/tasks-list-by-date.test.d.ts.map +0 -1
  147. package/dist/tools/__tests__/tasks-list-completed.test.d.ts +0 -2
  148. package/dist/tools/__tests__/tasks-list-completed.test.d.ts.map +0 -1
  149. package/dist/tools/__tests__/tasks-list-for-container.test.d.ts +0 -2
  150. package/dist/tools/__tests__/tasks-list-for-container.test.d.ts.map +0 -1
  151. package/dist/tools/__tests__/tasks-list-for-container.test.js +0 -232
  152. package/dist/tools/__tests__/tasks-organize-multiple.test.d.ts +0 -2
  153. package/dist/tools/__tests__/tasks-organize-multiple.test.d.ts.map +0 -1
  154. package/dist/tools/__tests__/tasks-organize-multiple.test.js +0 -245
  155. package/dist/tools/__tests__/tasks-search.test.d.ts +0 -2
  156. package/dist/tools/__tests__/tasks-search.test.d.ts.map +0 -1
  157. package/dist/tools/__tests__/tasks-search.test.js +0 -106
  158. package/dist/tools/__tests__/tasks-update-one.test.d.ts +0 -2
  159. package/dist/tools/__tests__/tasks-update-one.test.d.ts.map +0 -1
  160. package/dist/tools/__tests__/tasks-update-one.test.js +0 -251
  161. package/dist/tools/delete-one.d.ts +0 -17
  162. package/dist/tools/delete-one.d.ts.map +0 -1
  163. package/dist/tools/delete-one.js +0 -25
  164. package/dist/tools/overview.d.ts +0 -14
  165. package/dist/tools/overview.d.ts.map +0 -1
  166. package/dist/tools/projects-list.d.ts +0 -29
  167. package/dist/tools/projects-list.d.ts.map +0 -1
  168. package/dist/tools/projects-list.js +0 -39
  169. package/dist/tools/projects-manage.d.ts +0 -24
  170. package/dist/tools/projects-manage.d.ts.map +0 -1
  171. package/dist/tools/projects-manage.js +0 -26
  172. package/dist/tools/sections-manage.d.ts +0 -23
  173. package/dist/tools/sections-manage.d.ts.map +0 -1
  174. package/dist/tools/sections-manage.js +0 -37
  175. package/dist/tools/sections-search.d.ts +0 -18
  176. package/dist/tools/sections-search.d.ts.map +0 -1
  177. package/dist/tools/sections-search.js +0 -27
  178. package/dist/tools/tasks-add-multiple.d.ts +0 -55
  179. package/dist/tools/tasks-add-multiple.d.ts.map +0 -1
  180. package/dist/tools/tasks-add-multiple.js +0 -52
  181. package/dist/tools/tasks-complete-multiple.d.ts +0 -16
  182. package/dist/tools/tasks-complete-multiple.d.ts.map +0 -1
  183. package/dist/tools/tasks-complete-multiple.js +0 -23
  184. package/dist/tools/tasks-list-by-date.d.ts +0 -34
  185. package/dist/tools/tasks-list-by-date.d.ts.map +0 -1
  186. package/dist/tools/tasks-list-by-date.js +0 -53
  187. package/dist/tools/tasks-list-completed.d.ts +0 -44
  188. package/dist/tools/tasks-list-completed.d.ts.map +0 -1
  189. package/dist/tools/tasks-list-completed.js +0 -49
  190. package/dist/tools/tasks-list-for-container.d.ts +0 -34
  191. package/dist/tools/tasks-list-for-container.d.ts.map +0 -1
  192. package/dist/tools/tasks-list-for-container.js +0 -48
  193. package/dist/tools/tasks-organize-multiple.d.ts +0 -37
  194. package/dist/tools/tasks-organize-multiple.d.ts.map +0 -1
  195. package/dist/tools/tasks-organize-multiple.js +0 -34
  196. package/dist/tools/tasks-search.d.ts +0 -32
  197. package/dist/tools/tasks-search.d.ts.map +0 -1
  198. package/dist/tools/tasks-search.js +0 -30
  199. package/dist/tools/tasks-update-one.d.ts +0 -29
  200. package/dist/tools/tasks-update-one.d.ts.map +0 -1
  201. package/dist/tools/tasks-update-one.js +0 -63
  202. package/dist/tools/test-helpers.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,117 +1,289 @@
1
1
  import { getMcpServer } from './mcp-server.js';
2
- import { deleteOne } from './tools/delete-one.js';
3
- import { projectsList } from './tools/projects-list.js';
4
- import { projectsManage } from './tools/projects-manage.js';
5
- import { sectionsManage } from './tools/sections-manage.js';
6
- import { sectionsSearch } from './tools/sections-search.js';
7
- import { overview } from './tools/overview.js';
8
- import { tasksAddMultiple } from './tools/tasks-add-multiple.js';
9
- import { tasksCompleteMultiple } from './tools/tasks-complete-multiple.js';
10
- import { tasksListByDate } from './tools/tasks-list-by-date.js';
11
- import { tasksListCompleted } from './tools/tasks-list-completed.js';
12
- import { tasksListForContainer } from './tools/tasks-list-for-container.js';
13
- import { tasksOrganizeMultiple } from './tools/tasks-organize-multiple.js';
14
- import { tasksSearch } from './tools/tasks-search.js';
15
- import { tasksUpdateOne } from './tools/tasks-update-one.js';
2
+ import { addTasks } from './tools/add-tasks.js';
3
+ import { completeTasks } from './tools/complete-tasks.js';
4
+ import { findCompletedTasks } from './tools/find-completed-tasks.js';
5
+ import { findTasksByDate } from './tools/find-tasks-by-date.js';
6
+ import { findTasks } from './tools/find-tasks.js';
7
+ import { updateTasks } from './tools/update-tasks.js';
8
+ import { addProjects } from './tools/add-projects.js';
9
+ import { findProjects } from './tools/find-projects.js';
10
+ import { updateProjects } from './tools/update-projects.js';
11
+ import { addSections } from './tools/add-sections.js';
12
+ import { findSections } from './tools/find-sections.js';
13
+ import { updateSections } from './tools/update-sections.js';
14
+ import { deleteObject } from './tools/delete-object.js';
15
+ import { getOverview } from './tools/get-overview.js';
16
16
  declare const tools: {
17
- projectsList: {
18
- name: string;
17
+ addTasks: {
18
+ name: "add-tasks";
19
19
  description: string;
20
20
  parameters: {
21
- search: import("zod").ZodOptional<import("zod").ZodString>;
22
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
23
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
21
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
22
+ content: import("zod").ZodString;
23
+ description: import("zod").ZodOptional<import("zod").ZodString>;
24
+ priority: import("zod").ZodOptional<import("zod").ZodNumber>;
25
+ dueString: import("zod").ZodOptional<import("zod").ZodString>;
26
+ duration: import("zod").ZodOptional<import("zod").ZodString>;
27
+ projectId: import("zod").ZodOptional<import("zod").ZodString>;
28
+ sectionId: import("zod").ZodOptional<import("zod").ZodString>;
29
+ parentId: import("zod").ZodOptional<import("zod").ZodString>;
30
+ }, "strip", import("zod").ZodTypeAny, {
31
+ content: string;
32
+ description?: string | undefined;
33
+ parentId?: string | undefined;
34
+ projectId?: string | undefined;
35
+ sectionId?: string | undefined;
36
+ priority?: number | undefined;
37
+ dueString?: string | undefined;
38
+ duration?: string | undefined;
39
+ }, {
40
+ content: string;
41
+ description?: string | undefined;
42
+ parentId?: string | undefined;
43
+ projectId?: string | undefined;
44
+ sectionId?: string | undefined;
45
+ priority?: number | undefined;
46
+ dueString?: string | undefined;
47
+ duration?: string | undefined;
48
+ }>, "many">;
24
49
  };
25
- execute(args: {
26
- limit: number;
27
- cursor?: string | undefined;
28
- search?: string | undefined;
50
+ execute({ tasks }: {
51
+ tasks: {
52
+ content: string;
53
+ description?: string | undefined;
54
+ parentId?: string | undefined;
55
+ projectId?: string | undefined;
56
+ sectionId?: string | undefined;
57
+ priority?: number | undefined;
58
+ dueString?: string | undefined;
59
+ duration?: string | undefined;
60
+ }[];
29
61
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
30
- projects: {
31
- id: string;
32
- name: string;
33
- color: string;
34
- isFavorite: boolean;
35
- isShared: boolean;
36
- parentId: string | null;
37
- inboxProject: boolean;
38
- viewStyle: string;
62
+ content: {
63
+ type: "text";
64
+ text: string;
39
65
  }[];
40
- nextCursor: string | null;
41
- }>;
42
- };
43
- projectsManage: {
44
- name: string;
45
- description: string;
46
- parameters: {
47
- id: import("zod").ZodOptional<import("zod").ZodString>;
48
- name: import("zod").ZodString;
49
- };
50
- execute(args: {
51
- name: string;
52
- id?: string | undefined;
53
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").WorkspaceProject | {
54
- id: string;
55
- name: string;
56
- color: string;
57
- isFavorite: boolean;
58
- isShared: boolean;
59
- parentId: string | null;
60
- inboxProject: boolean;
61
- viewStyle: string;
66
+ structuredContent: {
67
+ tasks: {
68
+ id: string;
69
+ content: string;
70
+ description: string;
71
+ dueDate: string | undefined;
72
+ recurring: string | boolean;
73
+ priority: number;
74
+ projectId: string;
75
+ sectionId: string | null;
76
+ parentId: string | null;
77
+ labels: string[];
78
+ duration: string | null;
79
+ }[];
80
+ totalCount: number;
81
+ };
82
+ } | {
83
+ content: ({
84
+ type: "text";
85
+ text: string;
86
+ mimeType?: undefined;
87
+ } | {
88
+ type: "text";
89
+ mimeType: string;
90
+ text: string;
91
+ })[];
92
+ structuredContent?: undefined;
62
93
  }>;
63
94
  };
64
- deleteOne: {
65
- name: string;
95
+ completeTasks: {
96
+ name: "complete-tasks";
66
97
  description: string;
67
98
  parameters: {
68
- type: import("zod").ZodEnum<["project", "section", "task"]>;
69
- id: import("zod").ZodString;
99
+ ids: import("zod").ZodArray<import("zod").ZodString, "many">;
70
100
  };
71
101
  execute(args: {
72
- type: "project" | "section" | "task";
73
- id: string;
102
+ ids: string[];
74
103
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
75
- success: boolean;
104
+ content: {
105
+ type: "text";
106
+ text: string;
107
+ }[];
108
+ structuredContent: {
109
+ completed: string[];
110
+ failures: {
111
+ item: string;
112
+ error: string;
113
+ code?: string;
114
+ }[];
115
+ totalRequested: number;
116
+ successCount: number;
117
+ failureCount: number;
118
+ };
119
+ } | {
120
+ content: ({
121
+ type: "text";
122
+ text: string;
123
+ mimeType?: undefined;
124
+ } | {
125
+ type: "text";
126
+ mimeType: string;
127
+ text: string;
128
+ })[];
129
+ structuredContent?: undefined;
76
130
  }>;
77
131
  };
78
- sectionsSearch: {
79
- name: string;
132
+ updateTasks: {
133
+ name: "update-tasks";
80
134
  description: string;
81
135
  parameters: {
82
- projectId: import("zod").ZodString;
83
- search: import("zod").ZodOptional<import("zod").ZodString>;
136
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
137
+ id: import("zod").ZodString;
138
+ content: import("zod").ZodOptional<import("zod").ZodString>;
139
+ description: import("zod").ZodOptional<import("zod").ZodString>;
140
+ projectId: import("zod").ZodOptional<import("zod").ZodString>;
141
+ sectionId: import("zod").ZodOptional<import("zod").ZodString>;
142
+ parentId: import("zod").ZodOptional<import("zod").ZodString>;
143
+ order: import("zod").ZodOptional<import("zod").ZodNumber>;
144
+ priority: import("zod").ZodOptional<import("zod").ZodNumber>;
145
+ dueString: import("zod").ZodOptional<import("zod").ZodString>;
146
+ duration: import("zod").ZodOptional<import("zod").ZodString>;
147
+ }, "strip", import("zod").ZodTypeAny, {
148
+ id: string;
149
+ content?: string | undefined;
150
+ description?: string | undefined;
151
+ parentId?: string | undefined;
152
+ projectId?: string | undefined;
153
+ sectionId?: string | undefined;
154
+ priority?: number | undefined;
155
+ dueString?: string | undefined;
156
+ duration?: string | undefined;
157
+ order?: number | undefined;
158
+ }, {
159
+ id: string;
160
+ content?: string | undefined;
161
+ description?: string | undefined;
162
+ parentId?: string | undefined;
163
+ projectId?: string | undefined;
164
+ sectionId?: string | undefined;
165
+ priority?: number | undefined;
166
+ dueString?: string | undefined;
167
+ duration?: string | undefined;
168
+ order?: number | undefined;
169
+ }>, "many">;
84
170
  };
85
171
  execute(args: {
86
- projectId: string;
87
- search?: string | undefined;
172
+ tasks: {
173
+ id: string;
174
+ content?: string | undefined;
175
+ description?: string | undefined;
176
+ parentId?: string | undefined;
177
+ projectId?: string | undefined;
178
+ sectionId?: string | undefined;
179
+ priority?: number | undefined;
180
+ dueString?: string | undefined;
181
+ duration?: string | undefined;
182
+ order?: number | undefined;
183
+ }[];
88
184
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
89
- id: string;
90
- name: string;
91
- }[]>;
185
+ content: {
186
+ type: "text";
187
+ text: string;
188
+ }[];
189
+ structuredContent: {
190
+ tasks: {
191
+ id: string;
192
+ content: string;
193
+ description: string;
194
+ dueDate: string | undefined;
195
+ recurring: string | boolean;
196
+ priority: number;
197
+ projectId: string;
198
+ sectionId: string | null;
199
+ parentId: string | null;
200
+ labels: string[];
201
+ duration: string | null;
202
+ }[];
203
+ totalCount: number;
204
+ updatedTaskIds: string[];
205
+ appliedOperations: {
206
+ updateCount: number;
207
+ skippedCount: number;
208
+ };
209
+ };
210
+ } | {
211
+ content: ({
212
+ type: "text";
213
+ text: string;
214
+ mimeType?: undefined;
215
+ } | {
216
+ type: "text";
217
+ mimeType: string;
218
+ text: string;
219
+ })[];
220
+ structuredContent?: undefined;
221
+ }>;
92
222
  };
93
- sectionsManage: {
94
- name: string;
223
+ findTasks: {
224
+ name: "find-tasks";
95
225
  description: string;
96
226
  parameters: {
97
- id: import("zod").ZodOptional<import("zod").ZodString>;
98
- name: import("zod").ZodString;
227
+ searchText: import("zod").ZodOptional<import("zod").ZodString>;
99
228
  projectId: import("zod").ZodOptional<import("zod").ZodString>;
229
+ sectionId: import("zod").ZodOptional<import("zod").ZodString>;
230
+ parentId: import("zod").ZodOptional<import("zod").ZodString>;
231
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
232
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
100
233
  };
101
234
  execute(args: {
102
- name: string;
103
- id?: string | undefined;
235
+ limit: number;
236
+ parentId?: string | undefined;
104
237
  projectId?: string | undefined;
238
+ sectionId?: string | undefined;
239
+ cursor?: string | undefined;
240
+ searchText?: string | undefined;
105
241
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
106
- isError: boolean;
107
242
  content: {
108
243
  type: "text";
109
244
  text: string;
110
245
  }[];
111
- } | import("@doist/todoist-api-typescript").Section>;
246
+ structuredContent: {
247
+ tasks: {
248
+ id: string;
249
+ content: string;
250
+ description: string;
251
+ dueDate: string | undefined;
252
+ recurring: string | boolean;
253
+ priority: number;
254
+ projectId: string;
255
+ sectionId: string | null;
256
+ parentId: string | null;
257
+ labels: string[];
258
+ duration: string | null;
259
+ }[];
260
+ nextCursor: string | null;
261
+ totalCount: number;
262
+ hasMore: boolean;
263
+ appliedFilters: {
264
+ limit: number;
265
+ parentId?: string | undefined;
266
+ projectId?: string | undefined;
267
+ sectionId?: string | undefined;
268
+ cursor?: string | undefined;
269
+ searchText?: string | undefined;
270
+ };
271
+ };
272
+ } | {
273
+ content: ({
274
+ type: "text";
275
+ text: string;
276
+ mimeType?: undefined;
277
+ } | {
278
+ type: "text";
279
+ mimeType: string;
280
+ text: string;
281
+ })[];
282
+ structuredContent?: undefined;
283
+ }>;
112
284
  };
113
- tasksListByDate: {
114
- name: string;
285
+ findTasksByDate: {
286
+ name: "find-tasks-by-date";
115
287
  description: string;
116
288
  parameters: {
117
289
  startDate: import("zod").ZodString;
@@ -125,24 +297,49 @@ declare const tools: {
125
297
  daysCount: number;
126
298
  cursor?: string | undefined;
127
299
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
128
- tasks: {
129
- id: string;
130
- content: string;
131
- description: string;
132
- dueDate: string | undefined;
133
- recurring: string | boolean;
134
- priority: number;
135
- projectId: string;
136
- sectionId: string | null;
137
- parentId: string | null;
138
- labels: string[];
139
- duration: string | null;
300
+ content: {
301
+ type: "text";
302
+ text: string;
140
303
  }[];
141
- nextCursor: string | null;
304
+ structuredContent: {
305
+ tasks: {
306
+ id: string;
307
+ content: string;
308
+ description: string;
309
+ dueDate: string | undefined;
310
+ recurring: string | boolean;
311
+ priority: number;
312
+ projectId: string;
313
+ sectionId: string | null;
314
+ parentId: string | null;
315
+ labels: string[];
316
+ duration: string | null;
317
+ }[];
318
+ nextCursor: string | null;
319
+ totalCount: number;
320
+ hasMore: boolean;
321
+ appliedFilters: {
322
+ limit: number;
323
+ startDate: string;
324
+ daysCount: number;
325
+ cursor?: string | undefined;
326
+ };
327
+ };
328
+ } | {
329
+ content: ({
330
+ type: "text";
331
+ text: string;
332
+ mimeType?: undefined;
333
+ } | {
334
+ type: "text";
335
+ mimeType: string;
336
+ text: string;
337
+ })[];
338
+ structuredContent?: undefined;
142
339
  }>;
143
340
  };
144
- tasksListCompleted: {
145
- name: string;
341
+ findCompletedTasks: {
342
+ name: "find-completed-tasks";
146
343
  description: string;
147
344
  parameters: {
148
345
  getBy: import("zod").ZodDefault<import("zod").ZodEnum<["completion", "due"]>>;
@@ -166,218 +363,390 @@ declare const tools: {
166
363
  sectionId?: string | undefined;
167
364
  cursor?: string | undefined;
168
365
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
169
- tasks: {
170
- id: string;
171
- content: string;
172
- description: string;
173
- dueDate: string | undefined;
174
- recurring: string | boolean;
175
- priority: number;
176
- projectId: string;
177
- sectionId: string | null;
178
- parentId: string | null;
179
- labels: string[];
180
- duration: string | null;
366
+ content: {
367
+ type: "text";
368
+ text: string;
181
369
  }[];
182
- nextCursor: string | null;
370
+ structuredContent: {
371
+ tasks: {
372
+ id: string;
373
+ content: string;
374
+ description: string;
375
+ dueDate: string | undefined;
376
+ recurring: string | boolean;
377
+ priority: number;
378
+ projectId: string;
379
+ sectionId: string | null;
380
+ parentId: string | null;
381
+ labels: string[];
382
+ duration: string | null;
383
+ }[];
384
+ nextCursor: string | null;
385
+ totalCount: number;
386
+ hasMore: boolean;
387
+ appliedFilters: {
388
+ limit: number;
389
+ getBy: "completion" | "due";
390
+ since: string;
391
+ until: string;
392
+ parentId?: string | undefined;
393
+ workspaceId?: string | undefined;
394
+ projectId?: string | undefined;
395
+ sectionId?: string | undefined;
396
+ cursor?: string | undefined;
397
+ };
398
+ };
399
+ } | {
400
+ content: ({
401
+ type: "text";
402
+ text: string;
403
+ mimeType?: undefined;
404
+ } | {
405
+ type: "text";
406
+ mimeType: string;
407
+ text: string;
408
+ })[];
409
+ structuredContent?: undefined;
183
410
  }>;
184
411
  };
185
- tasksListForContainer: {
186
- name: string;
412
+ addProjects: {
413
+ name: "add-projects";
187
414
  description: string;
188
415
  parameters: {
189
- type: import("zod").ZodEnum<["project", "section", "parent"]>;
190
- id: import("zod").ZodString;
191
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
192
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
416
+ projects: import("zod").ZodArray<import("zod").ZodObject<{
417
+ name: import("zod").ZodString;
418
+ isFavorite: import("zod").ZodOptional<import("zod").ZodBoolean>;
419
+ viewStyle: import("zod").ZodOptional<import("zod").ZodEnum<["list", "board", "calendar"]>>;
420
+ }, "strip", import("zod").ZodTypeAny, {
421
+ name: string;
422
+ isFavorite?: boolean | undefined;
423
+ viewStyle?: "list" | "board" | "calendar" | undefined;
424
+ }, {
425
+ name: string;
426
+ isFavorite?: boolean | undefined;
427
+ viewStyle?: "list" | "board" | "calendar" | undefined;
428
+ }>, "many">;
193
429
  };
194
- execute(args: {
195
- type: "project" | "section" | "parent";
196
- id: string;
197
- limit: number;
198
- cursor?: string | undefined;
430
+ execute({ projects }: {
431
+ projects: {
432
+ name: string;
433
+ isFavorite?: boolean | undefined;
434
+ viewStyle?: "list" | "board" | "calendar" | undefined;
435
+ }[];
199
436
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
200
- tasks: {
201
- id: string;
202
- content: string;
203
- description: string;
204
- dueDate: string | undefined;
205
- recurring: string | boolean;
206
- priority: number;
207
- projectId: string;
208
- sectionId: string | null;
209
- parentId: string | null;
210
- labels: string[];
211
- duration: string | null;
437
+ content: {
438
+ type: "text";
439
+ text: string;
212
440
  }[];
213
- nextCursor: string | null;
441
+ structuredContent: {
442
+ projects: (import("@doist/todoist-api-typescript").PersonalProject | import("@doist/todoist-api-typescript").WorkspaceProject)[];
443
+ totalCount: number;
444
+ };
445
+ } | {
446
+ content: ({
447
+ type: "text";
448
+ text: string;
449
+ mimeType?: undefined;
450
+ } | {
451
+ type: "text";
452
+ mimeType: string;
453
+ text: string;
454
+ })[];
455
+ structuredContent?: undefined;
214
456
  }>;
215
457
  };
216
- tasksCompleteMultiple: {
217
- name: string;
458
+ updateProjects: {
459
+ name: "update-projects";
218
460
  description: string;
219
461
  parameters: {
220
- ids: import("zod").ZodArray<import("zod").ZodString, "many">;
462
+ projects: import("zod").ZodArray<import("zod").ZodObject<{
463
+ id: import("zod").ZodString;
464
+ name: import("zod").ZodOptional<import("zod").ZodString>;
465
+ isFavorite: import("zod").ZodOptional<import("zod").ZodBoolean>;
466
+ viewStyle: import("zod").ZodOptional<import("zod").ZodEnum<["list", "board", "calendar"]>>;
467
+ }, "strip", import("zod").ZodTypeAny, {
468
+ id: string;
469
+ name?: string | undefined;
470
+ isFavorite?: boolean | undefined;
471
+ viewStyle?: "list" | "board" | "calendar" | undefined;
472
+ }, {
473
+ id: string;
474
+ name?: string | undefined;
475
+ isFavorite?: boolean | undefined;
476
+ viewStyle?: "list" | "board" | "calendar" | undefined;
477
+ }>, "many">;
221
478
  };
222
479
  execute(args: {
223
- ids: string[];
480
+ projects: {
481
+ id: string;
482
+ name?: string | undefined;
483
+ isFavorite?: boolean | undefined;
484
+ viewStyle?: "list" | "board" | "calendar" | undefined;
485
+ }[];
224
486
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
225
- success: boolean;
226
- completed: string[];
487
+ content: {
488
+ type: "text";
489
+ text: string;
490
+ }[];
491
+ structuredContent: {
492
+ projects: (import("@doist/todoist-api-typescript").PersonalProject | import("@doist/todoist-api-typescript").WorkspaceProject)[];
493
+ totalCount: number;
494
+ updatedProjectIds: string[];
495
+ appliedOperations: {
496
+ updateCount: number;
497
+ skippedCount: number;
498
+ };
499
+ };
500
+ } | {
501
+ content: ({
502
+ type: "text";
503
+ text: string;
504
+ mimeType?: undefined;
505
+ } | {
506
+ type: "text";
507
+ mimeType: string;
508
+ text: string;
509
+ })[];
510
+ structuredContent?: undefined;
227
511
  }>;
228
512
  };
229
- tasksSearch: {
230
- name: string;
513
+ findProjects: {
514
+ name: "find-projects";
231
515
  description: string;
232
516
  parameters: {
233
- searchText: import("zod").ZodString;
517
+ search: import("zod").ZodOptional<import("zod").ZodString>;
234
518
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
235
519
  cursor: import("zod").ZodOptional<import("zod").ZodString>;
236
520
  };
237
521
  execute(args: {
238
522
  limit: number;
239
- searchText: string;
240
523
  cursor?: string | undefined;
524
+ search?: string | undefined;
241
525
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
242
- tasks: {
243
- id: string;
244
- content: string;
245
- description: string;
246
- dueDate: string | undefined;
247
- recurring: string | boolean;
248
- priority: number;
249
- projectId: string;
250
- sectionId: string | null;
251
- parentId: string | null;
252
- labels: string[];
253
- duration: string | null;
526
+ content: {
527
+ type: "text";
528
+ text: string;
254
529
  }[];
255
- nextCursor: string | null;
530
+ structuredContent: {
531
+ projects: {
532
+ id: string;
533
+ name: string;
534
+ color: string;
535
+ isFavorite: boolean;
536
+ isShared: boolean;
537
+ parentId: string | null;
538
+ inboxProject: boolean;
539
+ viewStyle: string;
540
+ }[];
541
+ nextCursor: string | null;
542
+ totalCount: number;
543
+ hasMore: boolean;
544
+ appliedFilters: {
545
+ limit: number;
546
+ cursor?: string | undefined;
547
+ search?: string | undefined;
548
+ };
549
+ };
550
+ } | {
551
+ content: ({
552
+ type: "text";
553
+ text: string;
554
+ mimeType?: undefined;
555
+ } | {
556
+ type: "text";
557
+ mimeType: string;
558
+ text: string;
559
+ })[];
560
+ structuredContent?: undefined;
256
561
  }>;
257
562
  };
258
- tasksAddMultiple: {
259
- name: string;
563
+ addSections: {
564
+ name: "add-sections";
260
565
  description: string;
261
566
  parameters: {
262
- projectId: import("zod").ZodOptional<import("zod").ZodString>;
263
- sectionId: import("zod").ZodOptional<import("zod").ZodString>;
264
- parentId: import("zod").ZodOptional<import("zod").ZodString>;
265
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
266
- content: import("zod").ZodString;
267
- description: import("zod").ZodOptional<import("zod").ZodString>;
268
- priority: import("zod").ZodOptional<import("zod").ZodNumber>;
269
- dueString: import("zod").ZodOptional<import("zod").ZodString>;
270
- duration: import("zod").ZodOptional<import("zod").ZodString>;
567
+ sections: import("zod").ZodArray<import("zod").ZodObject<{
568
+ name: import("zod").ZodString;
569
+ projectId: import("zod").ZodString;
271
570
  }, "strip", import("zod").ZodTypeAny, {
272
- content: string;
273
- description?: string | undefined;
274
- priority?: number | undefined;
275
- dueString?: string | undefined;
276
- duration?: string | undefined;
571
+ name: string;
572
+ projectId: string;
277
573
  }, {
278
- content: string;
279
- description?: string | undefined;
280
- priority?: number | undefined;
281
- dueString?: string | undefined;
282
- duration?: string | undefined;
574
+ name: string;
575
+ projectId: string;
283
576
  }>, "many">;
284
577
  };
285
- execute(args: {
286
- tasks: {
287
- content: string;
288
- description?: string | undefined;
289
- priority?: number | undefined;
290
- dueString?: string | undefined;
291
- duration?: string | undefined;
578
+ execute({ sections }: {
579
+ sections: {
580
+ name: string;
581
+ projectId: string;
292
582
  }[];
293
- parentId?: string | undefined;
294
- projectId?: string | undefined;
295
- sectionId?: string | undefined;
296
583
  }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
297
- id: string;
298
- content: string;
299
- description: string;
300
- dueDate: string | undefined;
301
- recurring: string | boolean;
302
- priority: number;
303
- projectId: string;
304
- sectionId: string | null;
305
- parentId: string | null;
306
- labels: string[];
307
- duration: string | null;
308
- }[]>;
309
- };
310
- tasksUpdateOne: {
311
- name: string;
312
- description: string;
313
- parameters: {
314
- id: import("zod").ZodString;
315
- content: import("zod").ZodOptional<import("zod").ZodString>;
316
- description: import("zod").ZodOptional<import("zod").ZodString>;
317
- projectId: import("zod").ZodOptional<import("zod").ZodString>;
318
- sectionId: import("zod").ZodOptional<import("zod").ZodString>;
319
- parentId: import("zod").ZodOptional<import("zod").ZodString>;
320
- priority: import("zod").ZodOptional<import("zod").ZodNumber>;
321
- dueString: import("zod").ZodOptional<import("zod").ZodString>;
322
- duration: import("zod").ZodOptional<import("zod").ZodString>;
323
- };
324
- execute(args: {
325
- id: string;
326
- content?: string | undefined;
327
- description?: string | undefined;
328
- parentId?: string | undefined;
329
- projectId?: string | undefined;
330
- sectionId?: string | undefined;
331
- priority?: number | undefined;
332
- dueString?: string | undefined;
333
- duration?: string | undefined;
334
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Task | undefined>;
584
+ content: {
585
+ type: "text";
586
+ text: string;
587
+ }[];
588
+ structuredContent: {
589
+ sections: import("@doist/todoist-api-typescript").Section[];
590
+ totalCount: number;
591
+ };
592
+ } | {
593
+ content: ({
594
+ type: "text";
595
+ text: string;
596
+ mimeType?: undefined;
597
+ } | {
598
+ type: "text";
599
+ mimeType: string;
600
+ text: string;
601
+ })[];
602
+ structuredContent?: undefined;
603
+ }>;
335
604
  };
336
- tasksOrganizeMultiple: {
337
- name: string;
605
+ updateSections: {
606
+ name: "update-sections";
338
607
  description: string;
339
608
  parameters: {
340
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
609
+ sections: import("zod").ZodArray<import("zod").ZodObject<{
341
610
  id: import("zod").ZodString;
342
- projectId: import("zod").ZodOptional<import("zod").ZodString>;
343
- sectionId: import("zod").ZodOptional<import("zod").ZodString>;
344
- parentId: import("zod").ZodOptional<import("zod").ZodString>;
345
- order: import("zod").ZodOptional<import("zod").ZodNumber>;
611
+ name: import("zod").ZodString;
346
612
  }, "strip", import("zod").ZodTypeAny, {
613
+ name: string;
347
614
  id: string;
348
- parentId?: string | undefined;
349
- projectId?: string | undefined;
350
- sectionId?: string | undefined;
351
- order?: number | undefined;
352
615
  }, {
616
+ name: string;
353
617
  id: string;
354
- parentId?: string | undefined;
355
- projectId?: string | undefined;
356
- sectionId?: string | undefined;
357
- order?: number | undefined;
358
618
  }>, "many">;
359
619
  };
360
- execute(args: {
361
- tasks: {
620
+ execute({ sections }: {
621
+ sections: {
622
+ name: string;
362
623
  id: string;
363
- parentId?: string | undefined;
364
- projectId?: string | undefined;
365
- sectionId?: string | undefined;
366
- order?: number | undefined;
367
624
  }[];
368
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Task[]>;
625
+ }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
626
+ content: {
627
+ type: "text";
628
+ text: string;
629
+ }[];
630
+ structuredContent: {
631
+ sections: import("@doist/todoist-api-typescript").Section[];
632
+ totalCount: number;
633
+ updatedSectionIds: string[];
634
+ };
635
+ } | {
636
+ content: ({
637
+ type: "text";
638
+ text: string;
639
+ mimeType?: undefined;
640
+ } | {
641
+ type: "text";
642
+ mimeType: string;
643
+ text: string;
644
+ })[];
645
+ structuredContent?: undefined;
646
+ }>;
647
+ };
648
+ findSections: {
649
+ name: "find-sections";
650
+ description: string;
651
+ parameters: {
652
+ projectId: import("zod").ZodString;
653
+ search: import("zod").ZodOptional<import("zod").ZodString>;
654
+ };
655
+ execute(args: {
656
+ projectId: string;
657
+ search?: string | undefined;
658
+ }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
659
+ content: {
660
+ type: "text";
661
+ text: string;
662
+ }[];
663
+ structuredContent: {
664
+ sections: {
665
+ id: string;
666
+ name: string;
667
+ }[];
668
+ totalCount: number;
669
+ appliedFilters: {
670
+ projectId: string;
671
+ search?: string | undefined;
672
+ };
673
+ };
674
+ } | {
675
+ content: ({
676
+ type: "text";
677
+ text: string;
678
+ mimeType?: undefined;
679
+ } | {
680
+ type: "text";
681
+ mimeType: string;
682
+ text: string;
683
+ })[];
684
+ structuredContent?: undefined;
685
+ }>;
369
686
  };
370
- overview: {
371
- name: string;
687
+ getOverview: {
688
+ name: "get-overview";
372
689
  description: string;
373
690
  parameters: {
374
691
  projectId: import("zod").ZodOptional<import("zod").ZodString>;
375
692
  };
376
693
  execute(args: {
377
694
  projectId?: string | undefined;
378
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<string>;
695
+ }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
696
+ content: {
697
+ type: "text";
698
+ text: string;
699
+ }[];
700
+ structuredContent: import("./tools/get-overview.js").AccountOverviewStructured | import("./tools/get-overview.js").ProjectOverviewStructured;
701
+ } | {
702
+ content: ({
703
+ type: "text";
704
+ text: string;
705
+ mimeType?: undefined;
706
+ } | {
707
+ type: "text";
708
+ mimeType: string;
709
+ text: string;
710
+ })[];
711
+ structuredContent?: undefined;
712
+ }>;
713
+ };
714
+ deleteObject: {
715
+ name: "delete-object";
716
+ description: string;
717
+ parameters: {
718
+ type: import("zod").ZodEnum<["project", "section", "task", "comment"]>;
719
+ id: import("zod").ZodString;
720
+ };
721
+ execute(args: {
722
+ type: "task" | "comment" | "project" | "section";
723
+ id: string;
724
+ }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
725
+ content: {
726
+ type: "text";
727
+ text: string;
728
+ }[];
729
+ structuredContent: {
730
+ deletedEntity: {
731
+ type: "task" | "comment" | "project" | "section";
732
+ id: string;
733
+ };
734
+ success: boolean;
735
+ };
736
+ } | {
737
+ content: ({
738
+ type: "text";
739
+ text: string;
740
+ mimeType?: undefined;
741
+ } | {
742
+ type: "text";
743
+ mimeType: string;
744
+ text: string;
745
+ })[];
746
+ structuredContent?: undefined;
747
+ }>;
379
748
  };
380
749
  };
381
750
  export { tools, getMcpServer };
382
- export { projectsList, projectsManage, deleteOne, sectionsSearch, sectionsManage, tasksListByDate, tasksListForContainer, tasksListCompleted, tasksCompleteMultiple, tasksSearch, tasksAddMultiple, tasksUpdateOne, tasksOrganizeMultiple, overview, };
751
+ export { addTasks, completeTasks, updateTasks, findTasks, findTasksByDate, findCompletedTasks, addProjects, updateProjects, findProjects, addSections, updateSections, findSections, getOverview, deleteObject, };
383
752
  //# sourceMappingURL=index.d.ts.map