@doist/todoist-ai 4.1.0 → 4.5.1
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.
- package/dist/index.d.ts +405 -50
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -16
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/mcp-helpers.js +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +80 -17
- package/dist/tool-helpers.d.ts +4 -0
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tool-helpers.js +2 -0
- package/dist/tools/__tests__/add-projects.test.js +1 -1
- package/dist/tools/__tests__/add-sections.test.js +1 -1
- package/dist/tools/__tests__/add-tasks.test.js +52 -13
- package/dist/tools/__tests__/assignment-integration.test.d.ts +2 -0
- package/dist/tools/__tests__/assignment-integration.test.d.ts.map +1 -0
- package/dist/tools/__tests__/assignment-integration.test.js +415 -0
- package/dist/tools/__tests__/find-completed-tasks.test.js +136 -2
- package/dist/tools/__tests__/find-projects.test.js +1 -1
- package/dist/tools/__tests__/find-sections.test.js +1 -1
- package/dist/tools/__tests__/find-tasks-by-date.test.js +122 -3
- package/dist/tools/__tests__/find-tasks.test.js +258 -11
- package/dist/tools/__tests__/get-overview.test.js +1 -1
- package/dist/tools/__tests__/update-sections.test.js +1 -0
- package/dist/tools/__tests__/update-tasks.test.js +6 -6
- package/dist/tools/__tests__/user-info.test.d.ts +2 -0
- package/dist/tools/__tests__/user-info.test.d.ts.map +1 -0
- package/dist/tools/__tests__/user-info.test.js +139 -0
- package/dist/tools/add-comments.d.ts +28 -5
- package/dist/tools/add-comments.d.ts.map +1 -1
- package/dist/tools/add-comments.js +1 -1
- package/dist/tools/add-projects.d.ts +46 -2
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/add-projects.js +1 -1
- package/dist/tools/add-sections.d.ts +14 -2
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/add-sections.js +1 -1
- package/dist/tools/add-tasks.d.ts +16 -10
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/add-tasks.js +49 -3
- package/dist/tools/find-comments.d.ts +27 -4
- package/dist/tools/find-comments.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +12 -4
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.js +20 -4
- package/dist/tools/find-project-collaborators.d.ts +64 -0
- package/dist/tools/find-project-collaborators.d.ts.map +1 -0
- package/dist/tools/find-project-collaborators.js +151 -0
- package/dist/tools/find-tasks-by-date.d.ts +8 -0
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.js +19 -2
- package/dist/tools/find-tasks.d.ts +13 -2
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/find-tasks.js +172 -23
- package/dist/tools/get-overview.d.ts +2 -2
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/get-overview.js +1 -1
- package/dist/tools/manage-assignments.d.ts +52 -0
- package/dist/tools/manage-assignments.d.ts.map +1 -0
- package/dist/tools/manage-assignments.js +337 -0
- package/dist/tools/update-comments.d.ts +25 -2
- package/dist/tools/update-comments.d.ts.map +1 -1
- package/dist/tools/update-comments.js +1 -1
- package/dist/tools/update-projects.d.ts +46 -2
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +14 -2
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/tools/update-sections.js +1 -1
- package/dist/tools/update-tasks.d.ts +16 -10
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/tools/update-tasks.js +32 -9
- package/dist/tools/user-info.d.ts +44 -0
- package/dist/tools/user-info.d.ts.map +1 -0
- package/dist/tools/user-info.js +142 -0
- package/dist/utils/assignment-validator.d.ts +69 -0
- package/dist/utils/assignment-validator.d.ts.map +1 -0
- package/dist/utils/assignment-validator.js +253 -0
- package/dist/utils/duration-parser.d.ts +2 -2
- package/dist/utils/duration-parser.d.ts.map +1 -1
- package/dist/utils/labels.d.ts +10 -0
- package/dist/utils/labels.d.ts.map +1 -0
- package/dist/utils/labels.js +18 -0
- package/dist/utils/priorities.d.ts +8 -0
- package/dist/utils/priorities.d.ts.map +1 -0
- package/dist/utils/priorities.js +15 -0
- package/dist/utils/response-builders.d.ts +2 -2
- package/dist/utils/response-builders.d.ts.map +1 -1
- package/dist/utils/response-builders.js +8 -1
- package/dist/utils/test-helpers.d.ts +2 -0
- package/dist/utils/test-helpers.d.ts.map +1 -1
- package/dist/utils/test-helpers.js +3 -0
- package/dist/utils/tool-names.d.ts +3 -0
- package/dist/utils/tool-names.d.ts.map +1 -1
- package/dist/utils/tool-names.js +4 -0
- package/dist/utils/user-resolver.d.ts +39 -0
- package/dist/utils/user-resolver.d.ts.map +1 -0
- package/dist/utils/user-resolver.js +179 -0
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { getMcpServer } from './mcp-server.js';
|
|
2
|
+
import { addComments } from './tools/add-comments.js';
|
|
3
|
+
import { addProjects } from './tools/add-projects.js';
|
|
4
|
+
import { addSections } from './tools/add-sections.js';
|
|
2
5
|
import { addTasks } from './tools/add-tasks.js';
|
|
3
6
|
import { completeTasks } from './tools/complete-tasks.js';
|
|
7
|
+
import { deleteObject } from './tools/delete-object.js';
|
|
8
|
+
import { findComments } from './tools/find-comments.js';
|
|
4
9
|
import { findCompletedTasks } from './tools/find-completed-tasks.js';
|
|
5
|
-
import {
|
|
6
|
-
import { findTasks } from './tools/find-tasks.js';
|
|
7
|
-
import { updateTasks } from './tools/update-tasks.js';
|
|
8
|
-
import { addProjects } from './tools/add-projects.js';
|
|
10
|
+
import { findProjectCollaborators } from './tools/find-project-collaborators.js';
|
|
9
11
|
import { findProjects } from './tools/find-projects.js';
|
|
10
|
-
import { updateProjects } from './tools/update-projects.js';
|
|
11
|
-
import { addSections } from './tools/add-sections.js';
|
|
12
12
|
import { findSections } from './tools/find-sections.js';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { findComments } from './tools/find-comments.js';
|
|
16
|
-
import { updateComments } from './tools/update-comments.js';
|
|
17
|
-
import { deleteObject } from './tools/delete-object.js';
|
|
13
|
+
import { findTasks } from './tools/find-tasks.js';
|
|
14
|
+
import { findTasksByDate } from './tools/find-tasks-by-date.js';
|
|
18
15
|
import { getOverview } from './tools/get-overview.js';
|
|
16
|
+
import { manageAssignments } from './tools/manage-assignments.js';
|
|
17
|
+
import { updateComments } from './tools/update-comments.js';
|
|
18
|
+
import { updateProjects } from './tools/update-projects.js';
|
|
19
|
+
import { updateSections } from './tools/update-sections.js';
|
|
20
|
+
import { updateTasks } from './tools/update-tasks.js';
|
|
21
|
+
import { userInfo } from './tools/user-info.js';
|
|
19
22
|
declare const tools: {
|
|
20
23
|
addTasks: {
|
|
21
24
|
name: "add-tasks";
|
|
@@ -24,42 +27,46 @@ declare const tools: {
|
|
|
24
27
|
tasks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
25
28
|
content: import("zod").ZodString;
|
|
26
29
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
-
priority: import("zod").ZodOptional<import("zod").
|
|
30
|
+
priority: import("zod").ZodOptional<import("zod").ZodEnum<["p1", "p2", "p3", "p4"]>>;
|
|
28
31
|
dueString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
32
|
duration: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
33
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
34
|
sectionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
35
|
parentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
responsibleUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
37
|
}, "strip", import("zod").ZodTypeAny, {
|
|
34
38
|
content: string;
|
|
35
39
|
description?: string | undefined;
|
|
36
|
-
parentId?: string | undefined;
|
|
37
40
|
projectId?: string | undefined;
|
|
41
|
+
parentId?: string | undefined;
|
|
38
42
|
sectionId?: string | undefined;
|
|
39
|
-
priority?: number | undefined;
|
|
40
|
-
dueString?: string | undefined;
|
|
41
43
|
duration?: string | undefined;
|
|
44
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
45
|
+
dueString?: string | undefined;
|
|
46
|
+
responsibleUser?: string | undefined;
|
|
42
47
|
}, {
|
|
43
48
|
content: string;
|
|
44
49
|
description?: string | undefined;
|
|
45
|
-
parentId?: string | undefined;
|
|
46
50
|
projectId?: string | undefined;
|
|
51
|
+
parentId?: string | undefined;
|
|
47
52
|
sectionId?: string | undefined;
|
|
48
|
-
priority?: number | undefined;
|
|
49
|
-
dueString?: string | undefined;
|
|
50
53
|
duration?: string | undefined;
|
|
54
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
55
|
+
dueString?: string | undefined;
|
|
56
|
+
responsibleUser?: string | undefined;
|
|
51
57
|
}>, "many">;
|
|
52
58
|
};
|
|
53
59
|
execute({ tasks }: {
|
|
54
60
|
tasks: {
|
|
55
61
|
content: string;
|
|
56
62
|
description?: string | undefined;
|
|
57
|
-
parentId?: string | undefined;
|
|
58
63
|
projectId?: string | undefined;
|
|
64
|
+
parentId?: string | undefined;
|
|
59
65
|
sectionId?: string | undefined;
|
|
60
|
-
priority?: number | undefined;
|
|
61
|
-
dueString?: string | undefined;
|
|
62
66
|
duration?: string | undefined;
|
|
67
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
68
|
+
dueString?: string | undefined;
|
|
69
|
+
responsibleUser?: string | undefined;
|
|
63
70
|
}[];
|
|
64
71
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
65
72
|
content: {
|
|
@@ -79,6 +86,8 @@ declare const tools: {
|
|
|
79
86
|
parentId: string | null;
|
|
80
87
|
labels: string[];
|
|
81
88
|
duration: string | null;
|
|
89
|
+
responsibleUid: string | null;
|
|
90
|
+
assignedByUid: string | null;
|
|
82
91
|
}[];
|
|
83
92
|
totalCount: number;
|
|
84
93
|
};
|
|
@@ -144,30 +153,33 @@ declare const tools: {
|
|
|
144
153
|
sectionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
145
154
|
parentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
146
155
|
order: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
147
|
-
priority: import("zod").ZodOptional<import("zod").
|
|
156
|
+
priority: import("zod").ZodOptional<import("zod").ZodEnum<["p1", "p2", "p3", "p4"]>>;
|
|
148
157
|
dueString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
149
158
|
duration: import("zod").ZodOptional<import("zod").ZodString>;
|
|
159
|
+
responsibleUser: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
150
160
|
}, "strip", import("zod").ZodTypeAny, {
|
|
151
161
|
id: string;
|
|
152
162
|
content?: string | undefined;
|
|
153
163
|
description?: string | undefined;
|
|
154
|
-
parentId?: string | undefined;
|
|
155
164
|
projectId?: string | undefined;
|
|
165
|
+
parentId?: string | undefined;
|
|
156
166
|
sectionId?: string | undefined;
|
|
157
|
-
priority?: number | undefined;
|
|
158
|
-
dueString?: string | undefined;
|
|
159
167
|
duration?: string | undefined;
|
|
168
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
169
|
+
dueString?: string | undefined;
|
|
170
|
+
responsibleUser?: string | null | undefined;
|
|
160
171
|
order?: number | undefined;
|
|
161
172
|
}, {
|
|
162
173
|
id: string;
|
|
163
174
|
content?: string | undefined;
|
|
164
175
|
description?: string | undefined;
|
|
165
|
-
parentId?: string | undefined;
|
|
166
176
|
projectId?: string | undefined;
|
|
177
|
+
parentId?: string | undefined;
|
|
167
178
|
sectionId?: string | undefined;
|
|
168
|
-
priority?: number | undefined;
|
|
169
|
-
dueString?: string | undefined;
|
|
170
179
|
duration?: string | undefined;
|
|
180
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
181
|
+
dueString?: string | undefined;
|
|
182
|
+
responsibleUser?: string | null | undefined;
|
|
171
183
|
order?: number | undefined;
|
|
172
184
|
}>, "many">;
|
|
173
185
|
};
|
|
@@ -176,12 +188,13 @@ declare const tools: {
|
|
|
176
188
|
id: string;
|
|
177
189
|
content?: string | undefined;
|
|
178
190
|
description?: string | undefined;
|
|
179
|
-
parentId?: string | undefined;
|
|
180
191
|
projectId?: string | undefined;
|
|
192
|
+
parentId?: string | undefined;
|
|
181
193
|
sectionId?: string | undefined;
|
|
182
|
-
priority?: number | undefined;
|
|
183
|
-
dueString?: string | undefined;
|
|
184
194
|
duration?: string | undefined;
|
|
195
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
196
|
+
dueString?: string | undefined;
|
|
197
|
+
responsibleUser?: string | null | undefined;
|
|
185
198
|
order?: number | undefined;
|
|
186
199
|
}[];
|
|
187
200
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
@@ -202,6 +215,8 @@ declare const tools: {
|
|
|
202
215
|
parentId: string | null;
|
|
203
216
|
labels: string[];
|
|
204
217
|
duration: string | null;
|
|
218
|
+
responsibleUid: string | null;
|
|
219
|
+
assignedByUid: string | null;
|
|
205
220
|
}[];
|
|
206
221
|
totalCount: number;
|
|
207
222
|
updatedTaskIds: string[];
|
|
@@ -227,19 +242,25 @@ declare const tools: {
|
|
|
227
242
|
name: "find-tasks";
|
|
228
243
|
description: string;
|
|
229
244
|
parameters: {
|
|
245
|
+
labels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
246
|
+
labelsOperator: import("zod").ZodOptional<import("zod").ZodEnum<["and", "or"]>>;
|
|
230
247
|
searchText: import("zod").ZodOptional<import("zod").ZodString>;
|
|
231
248
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
232
249
|
sectionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
233
250
|
parentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
|
+
responsibleUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
234
252
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
235
253
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
236
254
|
};
|
|
237
255
|
execute(args: {
|
|
238
256
|
limit: number;
|
|
239
|
-
parentId?: string | undefined;
|
|
240
257
|
projectId?: string | undefined;
|
|
258
|
+
parentId?: string | undefined;
|
|
241
259
|
sectionId?: string | undefined;
|
|
260
|
+
labels?: string[] | undefined;
|
|
242
261
|
cursor?: string | undefined;
|
|
262
|
+
responsibleUser?: string | undefined;
|
|
263
|
+
labelsOperator?: "and" | "or" | undefined;
|
|
243
264
|
searchText?: string | undefined;
|
|
244
265
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
245
266
|
content: {
|
|
@@ -259,16 +280,21 @@ declare const tools: {
|
|
|
259
280
|
parentId: string | null;
|
|
260
281
|
labels: string[];
|
|
261
282
|
duration: string | null;
|
|
283
|
+
responsibleUid: string | null;
|
|
284
|
+
assignedByUid: string | null;
|
|
262
285
|
}[];
|
|
263
286
|
nextCursor: string | null;
|
|
264
287
|
totalCount: number;
|
|
265
288
|
hasMore: boolean;
|
|
266
289
|
appliedFilters: {
|
|
267
290
|
limit: number;
|
|
268
|
-
parentId?: string | undefined;
|
|
269
291
|
projectId?: string | undefined;
|
|
292
|
+
parentId?: string | undefined;
|
|
270
293
|
sectionId?: string | undefined;
|
|
294
|
+
labels?: string[] | undefined;
|
|
271
295
|
cursor?: string | undefined;
|
|
296
|
+
responsibleUser?: string | undefined;
|
|
297
|
+
labelsOperator?: "and" | "or" | undefined;
|
|
272
298
|
searchText?: string | undefined;
|
|
273
299
|
};
|
|
274
300
|
};
|
|
@@ -289,6 +315,8 @@ declare const tools: {
|
|
|
289
315
|
name: "find-tasks-by-date";
|
|
290
316
|
description: string;
|
|
291
317
|
parameters: {
|
|
318
|
+
labels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
319
|
+
labelsOperator: import("zod").ZodOptional<import("zod").ZodEnum<["and", "or"]>>;
|
|
292
320
|
startDate: import("zod").ZodString;
|
|
293
321
|
daysCount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
294
322
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
@@ -298,7 +326,9 @@ declare const tools: {
|
|
|
298
326
|
limit: number;
|
|
299
327
|
startDate: string;
|
|
300
328
|
daysCount: number;
|
|
329
|
+
labels?: string[] | undefined;
|
|
301
330
|
cursor?: string | undefined;
|
|
331
|
+
labelsOperator?: "and" | "or" | undefined;
|
|
302
332
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
303
333
|
content: {
|
|
304
334
|
type: "text";
|
|
@@ -317,6 +347,8 @@ declare const tools: {
|
|
|
317
347
|
parentId: string | null;
|
|
318
348
|
labels: string[];
|
|
319
349
|
duration: string | null;
|
|
350
|
+
responsibleUid: string | null;
|
|
351
|
+
assignedByUid: string | null;
|
|
320
352
|
}[];
|
|
321
353
|
nextCursor: string | null;
|
|
322
354
|
totalCount: number;
|
|
@@ -325,7 +357,9 @@ declare const tools: {
|
|
|
325
357
|
limit: number;
|
|
326
358
|
startDate: string;
|
|
327
359
|
daysCount: number;
|
|
360
|
+
labels?: string[] | undefined;
|
|
328
361
|
cursor?: string | undefined;
|
|
362
|
+
labelsOperator?: "and" | "or" | undefined;
|
|
329
363
|
};
|
|
330
364
|
};
|
|
331
365
|
} | {
|
|
@@ -345,6 +379,8 @@ declare const tools: {
|
|
|
345
379
|
name: "find-completed-tasks";
|
|
346
380
|
description: string;
|
|
347
381
|
parameters: {
|
|
382
|
+
labels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
383
|
+
labelsOperator: import("zod").ZodOptional<import("zod").ZodEnum<["and", "or"]>>;
|
|
348
384
|
getBy: import("zod").ZodDefault<import("zod").ZodEnum<["completion", "due"]>>;
|
|
349
385
|
since: import("zod").ZodString;
|
|
350
386
|
until: import("zod").ZodString;
|
|
@@ -357,14 +393,16 @@ declare const tools: {
|
|
|
357
393
|
};
|
|
358
394
|
execute(args: {
|
|
359
395
|
limit: number;
|
|
360
|
-
getBy: "
|
|
396
|
+
getBy: "due" | "completion";
|
|
361
397
|
since: string;
|
|
362
398
|
until: string;
|
|
399
|
+
projectId?: string | undefined;
|
|
363
400
|
parentId?: string | undefined;
|
|
364
401
|
workspaceId?: string | undefined;
|
|
365
|
-
projectId?: string | undefined;
|
|
366
402
|
sectionId?: string | undefined;
|
|
403
|
+
labels?: string[] | undefined;
|
|
367
404
|
cursor?: string | undefined;
|
|
405
|
+
labelsOperator?: "and" | "or" | undefined;
|
|
368
406
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
369
407
|
content: {
|
|
370
408
|
type: "text";
|
|
@@ -383,20 +421,24 @@ declare const tools: {
|
|
|
383
421
|
parentId: string | null;
|
|
384
422
|
labels: string[];
|
|
385
423
|
duration: string | null;
|
|
424
|
+
responsibleUid: string | null;
|
|
425
|
+
assignedByUid: string | null;
|
|
386
426
|
}[];
|
|
387
427
|
nextCursor: string | null;
|
|
388
428
|
totalCount: number;
|
|
389
429
|
hasMore: boolean;
|
|
390
430
|
appliedFilters: {
|
|
391
431
|
limit: number;
|
|
392
|
-
getBy: "
|
|
432
|
+
getBy: "due" | "completion";
|
|
393
433
|
since: string;
|
|
394
434
|
until: string;
|
|
435
|
+
projectId?: string | undefined;
|
|
395
436
|
parentId?: string | undefined;
|
|
396
437
|
workspaceId?: string | undefined;
|
|
397
|
-
projectId?: string | undefined;
|
|
398
438
|
sectionId?: string | undefined;
|
|
439
|
+
labels?: string[] | undefined;
|
|
399
440
|
cursor?: string | undefined;
|
|
441
|
+
labelsOperator?: "and" | "or" | undefined;
|
|
400
442
|
};
|
|
401
443
|
};
|
|
402
444
|
} | {
|
|
@@ -442,7 +484,52 @@ declare const tools: {
|
|
|
442
484
|
text: string;
|
|
443
485
|
}[];
|
|
444
486
|
structuredContent: {
|
|
445
|
-
projects: (
|
|
487
|
+
projects: ({
|
|
488
|
+
url: string;
|
|
489
|
+
id: string;
|
|
490
|
+
canAssignTasks: boolean;
|
|
491
|
+
childOrder: number;
|
|
492
|
+
color: string;
|
|
493
|
+
createdAt: string | null;
|
|
494
|
+
isArchived: boolean;
|
|
495
|
+
isDeleted: boolean;
|
|
496
|
+
isFavorite: boolean;
|
|
497
|
+
isFrozen: boolean;
|
|
498
|
+
name: string;
|
|
499
|
+
updatedAt: string | null;
|
|
500
|
+
viewStyle: string;
|
|
501
|
+
defaultOrder: number;
|
|
502
|
+
description: string;
|
|
503
|
+
isCollapsed: boolean;
|
|
504
|
+
isShared: boolean;
|
|
505
|
+
parentId: string | null;
|
|
506
|
+
inboxProject: boolean;
|
|
507
|
+
} | {
|
|
508
|
+
url: string;
|
|
509
|
+
id: string;
|
|
510
|
+
canAssignTasks: boolean;
|
|
511
|
+
childOrder: number;
|
|
512
|
+
color: string;
|
|
513
|
+
createdAt: string | null;
|
|
514
|
+
isArchived: boolean;
|
|
515
|
+
isDeleted: boolean;
|
|
516
|
+
isFavorite: boolean;
|
|
517
|
+
isFrozen: boolean;
|
|
518
|
+
name: string;
|
|
519
|
+
updatedAt: string | null;
|
|
520
|
+
viewStyle: string;
|
|
521
|
+
defaultOrder: number;
|
|
522
|
+
description: string;
|
|
523
|
+
isCollapsed: boolean;
|
|
524
|
+
isShared: boolean;
|
|
525
|
+
collaboratorRoleDefault: string;
|
|
526
|
+
folderId: string | null;
|
|
527
|
+
isInviteOnly: boolean | null;
|
|
528
|
+
isLinkSharingEnabled: boolean;
|
|
529
|
+
role: string | null;
|
|
530
|
+
status: string;
|
|
531
|
+
workspaceId: string;
|
|
532
|
+
})[];
|
|
446
533
|
totalCount: number;
|
|
447
534
|
};
|
|
448
535
|
} | {
|
|
@@ -492,7 +579,52 @@ declare const tools: {
|
|
|
492
579
|
text: string;
|
|
493
580
|
}[];
|
|
494
581
|
structuredContent: {
|
|
495
|
-
projects: (
|
|
582
|
+
projects: ({
|
|
583
|
+
url: string;
|
|
584
|
+
id: string;
|
|
585
|
+
canAssignTasks: boolean;
|
|
586
|
+
childOrder: number;
|
|
587
|
+
color: string;
|
|
588
|
+
createdAt: string | null;
|
|
589
|
+
isArchived: boolean;
|
|
590
|
+
isDeleted: boolean;
|
|
591
|
+
isFavorite: boolean;
|
|
592
|
+
isFrozen: boolean;
|
|
593
|
+
name: string;
|
|
594
|
+
updatedAt: string | null;
|
|
595
|
+
viewStyle: string;
|
|
596
|
+
defaultOrder: number;
|
|
597
|
+
description: string;
|
|
598
|
+
isCollapsed: boolean;
|
|
599
|
+
isShared: boolean;
|
|
600
|
+
parentId: string | null;
|
|
601
|
+
inboxProject: boolean;
|
|
602
|
+
} | {
|
|
603
|
+
url: string;
|
|
604
|
+
id: string;
|
|
605
|
+
canAssignTasks: boolean;
|
|
606
|
+
childOrder: number;
|
|
607
|
+
color: string;
|
|
608
|
+
createdAt: string | null;
|
|
609
|
+
isArchived: boolean;
|
|
610
|
+
isDeleted: boolean;
|
|
611
|
+
isFavorite: boolean;
|
|
612
|
+
isFrozen: boolean;
|
|
613
|
+
name: string;
|
|
614
|
+
updatedAt: string | null;
|
|
615
|
+
viewStyle: string;
|
|
616
|
+
defaultOrder: number;
|
|
617
|
+
description: string;
|
|
618
|
+
isCollapsed: boolean;
|
|
619
|
+
isShared: boolean;
|
|
620
|
+
collaboratorRoleDefault: string;
|
|
621
|
+
folderId: string | null;
|
|
622
|
+
isInviteOnly: boolean | null;
|
|
623
|
+
isLinkSharingEnabled: boolean;
|
|
624
|
+
role: string | null;
|
|
625
|
+
status: string;
|
|
626
|
+
workspaceId: string;
|
|
627
|
+
})[];
|
|
496
628
|
totalCount: number;
|
|
497
629
|
updatedProjectIds: string[];
|
|
498
630
|
appliedOperations: {
|
|
@@ -589,7 +721,20 @@ declare const tools: {
|
|
|
589
721
|
text: string;
|
|
590
722
|
}[];
|
|
591
723
|
structuredContent: {
|
|
592
|
-
sections:
|
|
724
|
+
sections: {
|
|
725
|
+
url: string;
|
|
726
|
+
id: string;
|
|
727
|
+
userId: string;
|
|
728
|
+
projectId: string;
|
|
729
|
+
addedAt: string;
|
|
730
|
+
updatedAt: string;
|
|
731
|
+
archivedAt: string | null;
|
|
732
|
+
name: string;
|
|
733
|
+
sectionOrder: number;
|
|
734
|
+
isArchived: boolean;
|
|
735
|
+
isDeleted: boolean;
|
|
736
|
+
isCollapsed: boolean;
|
|
737
|
+
}[];
|
|
593
738
|
totalCount: number;
|
|
594
739
|
};
|
|
595
740
|
} | {
|
|
@@ -631,7 +776,20 @@ declare const tools: {
|
|
|
631
776
|
text: string;
|
|
632
777
|
}[];
|
|
633
778
|
structuredContent: {
|
|
634
|
-
sections:
|
|
779
|
+
sections: {
|
|
780
|
+
url: string;
|
|
781
|
+
id: string;
|
|
782
|
+
userId: string;
|
|
783
|
+
projectId: string;
|
|
784
|
+
addedAt: string;
|
|
785
|
+
updatedAt: string;
|
|
786
|
+
archivedAt: string | null;
|
|
787
|
+
name: string;
|
|
788
|
+
sectionOrder: number;
|
|
789
|
+
isArchived: boolean;
|
|
790
|
+
isDeleted: boolean;
|
|
791
|
+
isCollapsed: boolean;
|
|
792
|
+
}[];
|
|
635
793
|
totalCount: number;
|
|
636
794
|
updatedSectionIds: string[];
|
|
637
795
|
};
|
|
@@ -697,19 +855,19 @@ declare const tools: {
|
|
|
697
855
|
content: import("zod").ZodString;
|
|
698
856
|
}, "strip", import("zod").ZodTypeAny, {
|
|
699
857
|
content: string;
|
|
700
|
-
projectId?: string | undefined;
|
|
701
858
|
taskId?: string | undefined;
|
|
859
|
+
projectId?: string | undefined;
|
|
702
860
|
}, {
|
|
703
861
|
content: string;
|
|
704
|
-
projectId?: string | undefined;
|
|
705
862
|
taskId?: string | undefined;
|
|
863
|
+
projectId?: string | undefined;
|
|
706
864
|
}>, "many">;
|
|
707
865
|
};
|
|
708
866
|
execute(args: {
|
|
709
867
|
comments: {
|
|
710
868
|
content: string;
|
|
711
|
-
projectId?: string | undefined;
|
|
712
869
|
taskId?: string | undefined;
|
|
870
|
+
projectId?: string | undefined;
|
|
713
871
|
}[];
|
|
714
872
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
715
873
|
content: {
|
|
@@ -717,7 +875,31 @@ declare const tools: {
|
|
|
717
875
|
text: string;
|
|
718
876
|
}[];
|
|
719
877
|
structuredContent: {
|
|
720
|
-
comments:
|
|
878
|
+
comments: {
|
|
879
|
+
taskId: string | undefined;
|
|
880
|
+
id: string;
|
|
881
|
+
content: string;
|
|
882
|
+
postedAt: string;
|
|
883
|
+
fileAttachment: {
|
|
884
|
+
resourceType: string;
|
|
885
|
+
fileName?: string | null | undefined;
|
|
886
|
+
fileSize?: number | null | undefined;
|
|
887
|
+
fileType?: string | null | undefined;
|
|
888
|
+
fileUrl?: string | null | undefined;
|
|
889
|
+
fileDuration?: number | null | undefined;
|
|
890
|
+
uploadState?: "pending" | "completed" | null | undefined;
|
|
891
|
+
image?: string | null | undefined;
|
|
892
|
+
imageWidth?: number | null | undefined;
|
|
893
|
+
imageHeight?: number | null | undefined;
|
|
894
|
+
url?: string | null | undefined;
|
|
895
|
+
title?: string | null | undefined;
|
|
896
|
+
} | null;
|
|
897
|
+
postedUid: string;
|
|
898
|
+
uidsToNotify: string[] | null;
|
|
899
|
+
reactions: Record<string, string[]> | null;
|
|
900
|
+
isDeleted: boolean;
|
|
901
|
+
projectId?: string | undefined;
|
|
902
|
+
}[];
|
|
721
903
|
totalCount: number;
|
|
722
904
|
addedCommentIds: string[];
|
|
723
905
|
};
|
|
@@ -760,7 +942,31 @@ declare const tools: {
|
|
|
760
942
|
text: string;
|
|
761
943
|
}[];
|
|
762
944
|
structuredContent: {
|
|
763
|
-
comments:
|
|
945
|
+
comments: {
|
|
946
|
+
taskId: string | undefined;
|
|
947
|
+
id: string;
|
|
948
|
+
content: string;
|
|
949
|
+
postedAt: string;
|
|
950
|
+
fileAttachment: {
|
|
951
|
+
resourceType: string;
|
|
952
|
+
fileName?: string | null | undefined;
|
|
953
|
+
fileSize?: number | null | undefined;
|
|
954
|
+
fileType?: string | null | undefined;
|
|
955
|
+
fileUrl?: string | null | undefined;
|
|
956
|
+
fileDuration?: number | null | undefined;
|
|
957
|
+
uploadState?: "pending" | "completed" | null | undefined;
|
|
958
|
+
image?: string | null | undefined;
|
|
959
|
+
imageWidth?: number | null | undefined;
|
|
960
|
+
imageHeight?: number | null | undefined;
|
|
961
|
+
url?: string | null | undefined;
|
|
962
|
+
title?: string | null | undefined;
|
|
963
|
+
} | null;
|
|
964
|
+
postedUid: string;
|
|
965
|
+
uidsToNotify: string[] | null;
|
|
966
|
+
reactions: Record<string, string[]> | null;
|
|
967
|
+
isDeleted: boolean;
|
|
968
|
+
projectId?: string | undefined;
|
|
969
|
+
}[];
|
|
764
970
|
totalCount: number;
|
|
765
971
|
updatedCommentIds: string[];
|
|
766
972
|
appliedOperations: {
|
|
@@ -791,10 +997,10 @@ declare const tools: {
|
|
|
791
997
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
792
998
|
};
|
|
793
999
|
execute(args: {
|
|
794
|
-
projectId?: string | undefined;
|
|
795
1000
|
limit?: number | undefined;
|
|
796
|
-
cursor?: string | undefined;
|
|
797
1001
|
taskId?: string | undefined;
|
|
1002
|
+
projectId?: string | undefined;
|
|
1003
|
+
cursor?: string | undefined;
|
|
798
1004
|
commentId?: string | undefined;
|
|
799
1005
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
800
1006
|
content: {
|
|
@@ -802,7 +1008,31 @@ declare const tools: {
|
|
|
802
1008
|
text: string;
|
|
803
1009
|
}[];
|
|
804
1010
|
structuredContent: {
|
|
805
|
-
comments:
|
|
1011
|
+
comments: {
|
|
1012
|
+
taskId: string | undefined;
|
|
1013
|
+
id: string;
|
|
1014
|
+
content: string;
|
|
1015
|
+
postedAt: string;
|
|
1016
|
+
fileAttachment: {
|
|
1017
|
+
resourceType: string;
|
|
1018
|
+
fileName?: string | null | undefined;
|
|
1019
|
+
fileSize?: number | null | undefined;
|
|
1020
|
+
fileType?: string | null | undefined;
|
|
1021
|
+
fileUrl?: string | null | undefined;
|
|
1022
|
+
fileDuration?: number | null | undefined;
|
|
1023
|
+
uploadState?: "pending" | "completed" | null | undefined;
|
|
1024
|
+
image?: string | null | undefined;
|
|
1025
|
+
imageWidth?: number | null | undefined;
|
|
1026
|
+
imageHeight?: number | null | undefined;
|
|
1027
|
+
url?: string | null | undefined;
|
|
1028
|
+
title?: string | null | undefined;
|
|
1029
|
+
} | null;
|
|
1030
|
+
postedUid: string;
|
|
1031
|
+
uidsToNotify: string[] | null;
|
|
1032
|
+
reactions: Record<string, string[]> | null;
|
|
1033
|
+
isDeleted: boolean;
|
|
1034
|
+
projectId?: string | undefined;
|
|
1035
|
+
}[];
|
|
806
1036
|
searchType: string;
|
|
807
1037
|
searchId: string;
|
|
808
1038
|
hasMore: boolean;
|
|
@@ -884,7 +1114,132 @@ declare const tools: {
|
|
|
884
1114
|
structuredContent?: undefined;
|
|
885
1115
|
}>;
|
|
886
1116
|
};
|
|
1117
|
+
userInfo: {
|
|
1118
|
+
name: "user-info";
|
|
1119
|
+
description: string;
|
|
1120
|
+
parameters: {};
|
|
1121
|
+
execute(_args: {}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
1122
|
+
content: {
|
|
1123
|
+
type: "text";
|
|
1124
|
+
text: string;
|
|
1125
|
+
}[];
|
|
1126
|
+
structuredContent: import("./tools/user-info.js").UserInfoStructured;
|
|
1127
|
+
} | {
|
|
1128
|
+
content: ({
|
|
1129
|
+
type: "text";
|
|
1130
|
+
text: string;
|
|
1131
|
+
mimeType?: undefined;
|
|
1132
|
+
} | {
|
|
1133
|
+
type: "text";
|
|
1134
|
+
mimeType: string;
|
|
1135
|
+
text: string;
|
|
1136
|
+
})[];
|
|
1137
|
+
structuredContent?: undefined;
|
|
1138
|
+
}>;
|
|
1139
|
+
};
|
|
1140
|
+
findProjectCollaborators: {
|
|
1141
|
+
name: "find-project-collaborators";
|
|
1142
|
+
description: string;
|
|
1143
|
+
parameters: {
|
|
1144
|
+
projectId: import("zod").ZodString;
|
|
1145
|
+
searchTerm: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1146
|
+
};
|
|
1147
|
+
execute(args: {
|
|
1148
|
+
projectId: string;
|
|
1149
|
+
searchTerm?: string | undefined;
|
|
1150
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
1151
|
+
content: {
|
|
1152
|
+
type: "text";
|
|
1153
|
+
text: string;
|
|
1154
|
+
}[];
|
|
1155
|
+
structuredContent: {
|
|
1156
|
+
collaborators: never[];
|
|
1157
|
+
projectInfo: {
|
|
1158
|
+
id: string;
|
|
1159
|
+
name: string;
|
|
1160
|
+
isShared: boolean;
|
|
1161
|
+
};
|
|
1162
|
+
totalCount: number;
|
|
1163
|
+
appliedFilters: {
|
|
1164
|
+
projectId: string;
|
|
1165
|
+
searchTerm?: string | undefined;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
} | {
|
|
1169
|
+
content: ({
|
|
1170
|
+
type: "text";
|
|
1171
|
+
text: string;
|
|
1172
|
+
mimeType?: undefined;
|
|
1173
|
+
} | {
|
|
1174
|
+
type: "text";
|
|
1175
|
+
mimeType: string;
|
|
1176
|
+
text: string;
|
|
1177
|
+
})[];
|
|
1178
|
+
structuredContent?: undefined;
|
|
1179
|
+
} | {
|
|
1180
|
+
content: {
|
|
1181
|
+
type: "text";
|
|
1182
|
+
text: string;
|
|
1183
|
+
}[];
|
|
1184
|
+
structuredContent: {
|
|
1185
|
+
collaborators: import("./utils/user-resolver.js").ProjectCollaborator[];
|
|
1186
|
+
projectInfo: {
|
|
1187
|
+
id: string;
|
|
1188
|
+
name: string;
|
|
1189
|
+
isShared: boolean;
|
|
1190
|
+
};
|
|
1191
|
+
totalCount: number;
|
|
1192
|
+
totalAvailable: number;
|
|
1193
|
+
appliedFilters: {
|
|
1194
|
+
projectId: string;
|
|
1195
|
+
searchTerm?: string | undefined;
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
}>;
|
|
1199
|
+
};
|
|
1200
|
+
manageAssignments: {
|
|
1201
|
+
name: "manage-assignments";
|
|
1202
|
+
description: string;
|
|
1203
|
+
parameters: {
|
|
1204
|
+
operation: import("zod").ZodEnum<["assign", "unassign", "reassign"]>;
|
|
1205
|
+
taskIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1206
|
+
responsibleUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1207
|
+
fromAssigneeUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1208
|
+
dryRun: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
1209
|
+
};
|
|
1210
|
+
execute(args: {
|
|
1211
|
+
operation: "assign" | "unassign" | "reassign";
|
|
1212
|
+
taskIds: string[];
|
|
1213
|
+
dryRun: boolean;
|
|
1214
|
+
responsibleUser?: string | undefined;
|
|
1215
|
+
fromAssigneeUser?: string | undefined;
|
|
1216
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
1217
|
+
content: {
|
|
1218
|
+
type: "text";
|
|
1219
|
+
text: string;
|
|
1220
|
+
}[];
|
|
1221
|
+
structuredContent: {
|
|
1222
|
+
operation: "assign" | "unassign" | "reassign";
|
|
1223
|
+
results: import("./tools/manage-assignments.js").OperationResult[];
|
|
1224
|
+
totalRequested: number;
|
|
1225
|
+
successful: number;
|
|
1226
|
+
failed: number;
|
|
1227
|
+
dryRun: boolean;
|
|
1228
|
+
};
|
|
1229
|
+
} | {
|
|
1230
|
+
content: ({
|
|
1231
|
+
type: "text";
|
|
1232
|
+
text: string;
|
|
1233
|
+
mimeType?: undefined;
|
|
1234
|
+
} | {
|
|
1235
|
+
type: "text";
|
|
1236
|
+
mimeType: string;
|
|
1237
|
+
text: string;
|
|
1238
|
+
})[];
|
|
1239
|
+
structuredContent?: undefined;
|
|
1240
|
+
}>;
|
|
1241
|
+
};
|
|
887
1242
|
};
|
|
888
1243
|
export { tools, getMcpServer };
|
|
889
|
-
export { addTasks, completeTasks, updateTasks, findTasks, findTasksByDate, findCompletedTasks, addProjects, updateProjects, findProjects, addSections, updateSections, findSections, addComments, updateComments, findComments, getOverview, deleteObject, };
|
|
1244
|
+
export { addTasks, completeTasks, updateTasks, findTasks, findTasksByDate, findCompletedTasks, addProjects, updateProjects, findProjects, addSections, updateSections, findSections, addComments, updateComments, findComments, getOverview, deleteObject, userInfo, findProjectCollaborators, manageAssignments, };
|
|
890
1245
|
//# sourceMappingURL=index.d.ts.map
|