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