@doist/todoist-ai 4.16.1 → 4.17.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/filter-helpers.d.ts +1 -1
- package/dist/filter-helpers.d.ts.map +1 -1
- package/dist/index.d.ts +990 -411
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-helpers.d.ts +2 -38
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/mcp-server-BMGcSL1c.js +3058 -0
- package/dist/todoist-tool.d.ts +12 -2
- package/dist/todoist-tool.d.ts.map +1 -1
- package/dist/tool-helpers.d.ts +20 -18
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tools/add-comments.d.ts +69 -17
- package/dist/tools/add-comments.d.ts.map +1 -1
- package/dist/tools/add-projects.d.ts +36 -17
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/add-sections.d.ts +14 -15
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/add-tasks.d.ts +71 -30
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/complete-tasks.d.ts +20 -15
- package/dist/tools/complete-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +15 -16
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch.d.ts +10 -8
- package/dist/tools/fetch.d.ts.map +1 -1
- package/dist/tools/find-activity.d.ts +46 -23
- package/dist/tools/find-activity.d.ts.map +1 -1
- package/dist/tools/find-comments.d.ts +69 -17
- package/dist/tools/find-comments.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +70 -26
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-project-collaborators.d.ts +51 -20
- package/dist/tools/find-project-collaborators.d.ts.map +1 -1
- package/dist/tools/find-projects.d.ts +37 -17
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +15 -15
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.d.ts +68 -24
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks.d.ts +70 -26
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +31 -15
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/manage-assignments.d.ts +41 -18
- package/dist/tools/manage-assignments.d.ts.map +1 -1
- package/dist/tools/search.d.ts +27 -7
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/update-comments.d.ts +74 -15
- package/dist/tools/update-comments.d.ts.map +1 -1
- package/dist/tools/update-projects.d.ts +47 -17
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +15 -15
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/tools/update-tasks.d.ts +82 -30
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/tools/user-info.d.ts +19 -15
- package/dist/tools/user-info.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +233 -0
- package/dist/utils/output-schemas.d.ts.map +1 -0
- package/dist/utils/test-helpers.d.ts +1 -33
- package/dist/utils/test-helpers.d.ts.map +1 -1
- package/package.json +13 -13
- package/dist/mcp-server-6tm7Rhyz.js +0 -2840
package/dist/todoist-tool.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { TodoistApi } from '@doist/todoist-api-typescript';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
type ExecuteResult<Output extends z.ZodRawShape> = Promise<{
|
|
4
|
+
textContent?: string;
|
|
5
|
+
structuredContent?: z.infer<z.ZodObject<Output>>;
|
|
6
|
+
}>;
|
|
3
7
|
/**
|
|
4
8
|
* A Todoist tool that can be used in an MCP server or other conversational AI interfaces.
|
|
5
9
|
*/
|
|
6
|
-
type TodoistTool<Params extends z.ZodRawShape> = {
|
|
10
|
+
type TodoistTool<Params extends z.ZodRawShape, Output extends z.ZodRawShape> = {
|
|
7
11
|
/**
|
|
8
12
|
* The name of the tool.
|
|
9
13
|
*/
|
|
@@ -20,6 +24,12 @@ type TodoistTool<Params extends z.ZodRawShape> = {
|
|
|
20
24
|
* parameters are.
|
|
21
25
|
*/
|
|
22
26
|
parameters: Params;
|
|
27
|
+
/**
|
|
28
|
+
* The schema of the output of the tool.
|
|
29
|
+
*
|
|
30
|
+
* This is used to describe the structured output format that the tool will return.
|
|
31
|
+
*/
|
|
32
|
+
outputSchema: Output;
|
|
23
33
|
/**
|
|
24
34
|
* The function that executes the tool.
|
|
25
35
|
*
|
|
@@ -29,7 +39,7 @@ type TodoistTool<Params extends z.ZodRawShape> = {
|
|
|
29
39
|
* @param client - The Todoist API client used to make requests to the Todoist API.
|
|
30
40
|
* @returns The result of the tool.
|
|
31
41
|
*/
|
|
32
|
-
execute: (args: z.infer<z.ZodObject<Params>>, client: TodoistApi) =>
|
|
42
|
+
execute: (args: z.infer<z.ZodObject<Params>>, client: TodoistApi) => ExecuteResult<Output>;
|
|
33
43
|
};
|
|
34
44
|
export type { TodoistTool };
|
|
35
45
|
//# sourceMappingURL=todoist-tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"todoist-tool.d.ts","sourceRoot":"","sources":["../src/todoist-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B;;GAEG;AACH,KAAK,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,WAAW,IAAI;
|
|
1
|
+
{"version":3,"file":"todoist-tool.d.ts","sourceRoot":"","sources":["../src/todoist-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,KAAK,aAAa,CAAC,MAAM,SAAS,CAAC,CAAC,WAAW,IAAI,OAAO,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;CACnD,CAAC,CAAA;AAEF;;GAEG;AACH,KAAK,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,WAAW,EAAE,MAAM,SAAS,CAAC,CAAC,WAAW,IAAI;IAC3E;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;;;;;;OAQG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,KAAK,aAAa,CAAC,MAAM,CAAC,CAAA;CAC7F,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/tool-helpers.d.ts
CHANGED
|
@@ -27,15 +27,16 @@ declare function mapTask(task: Task): {
|
|
|
27
27
|
deadlineDate: string | undefined;
|
|
28
28
|
priority: number;
|
|
29
29
|
projectId: string;
|
|
30
|
-
sectionId: string |
|
|
31
|
-
parentId: string |
|
|
30
|
+
sectionId: string | undefined;
|
|
31
|
+
parentId: string | undefined;
|
|
32
32
|
labels: string[];
|
|
33
|
-
duration: string |
|
|
34
|
-
responsibleUid: string |
|
|
35
|
-
assignedByUid: string |
|
|
33
|
+
duration: string | undefined;
|
|
34
|
+
responsibleUid: string | undefined;
|
|
35
|
+
assignedByUid: string | undefined;
|
|
36
36
|
checked: boolean;
|
|
37
|
-
completedAt: string |
|
|
37
|
+
completedAt: string | undefined;
|
|
38
38
|
};
|
|
39
|
+
type MappedTask = ReturnType<typeof mapTask>;
|
|
39
40
|
/**
|
|
40
41
|
* Map a single Todoist project to a more structured format, for LLM consumption.
|
|
41
42
|
* @param project - The project to map.
|
|
@@ -47,7 +48,7 @@ declare function mapProject(project: Project): {
|
|
|
47
48
|
color: string;
|
|
48
49
|
isFavorite: boolean;
|
|
49
50
|
isShared: boolean;
|
|
50
|
-
parentId: string |
|
|
51
|
+
parentId: string | undefined;
|
|
51
52
|
inboxProject: boolean;
|
|
52
53
|
viewStyle: string;
|
|
53
54
|
};
|
|
@@ -57,15 +58,15 @@ declare function mapProject(project: Project): {
|
|
|
57
58
|
* @returns The mapped activity event.
|
|
58
59
|
*/
|
|
59
60
|
declare function mapActivityEvent(event: ActivityEvent): {
|
|
60
|
-
id: string |
|
|
61
|
+
id: string | undefined;
|
|
61
62
|
objectType: string;
|
|
62
63
|
objectId: string;
|
|
63
64
|
eventType: string;
|
|
64
65
|
eventDate: string;
|
|
65
|
-
parentProjectId: string |
|
|
66
|
-
parentItemId: string |
|
|
67
|
-
initiatorId: string |
|
|
68
|
-
extraData: Record<string, any> |
|
|
66
|
+
parentProjectId: string | undefined;
|
|
67
|
+
parentItemId: string | undefined;
|
|
68
|
+
initiatorId: string | undefined;
|
|
69
|
+
extraData: Record<string, any> | undefined;
|
|
69
70
|
};
|
|
70
71
|
declare function getTasksByFilter({ client, query, limit, cursor, }: {
|
|
71
72
|
client: TodoistApi;
|
|
@@ -82,16 +83,17 @@ declare function getTasksByFilter({ client, query, limit, cursor, }: {
|
|
|
82
83
|
deadlineDate: string | undefined;
|
|
83
84
|
priority: number;
|
|
84
85
|
projectId: string;
|
|
85
|
-
sectionId: string |
|
|
86
|
-
parentId: string |
|
|
86
|
+
sectionId: string | undefined;
|
|
87
|
+
parentId: string | undefined;
|
|
87
88
|
labels: string[];
|
|
88
|
-
duration: string |
|
|
89
|
-
responsibleUid: string |
|
|
90
|
-
assignedByUid: string |
|
|
89
|
+
duration: string | undefined;
|
|
90
|
+
responsibleUid: string | undefined;
|
|
91
|
+
assignedByUid: string | undefined;
|
|
91
92
|
checked: boolean;
|
|
92
|
-
completedAt: string |
|
|
93
|
+
completedAt: string | undefined;
|
|
93
94
|
}[];
|
|
94
95
|
nextCursor: string | null;
|
|
95
96
|
}>;
|
|
96
97
|
export { getTasksByFilter, mapActivityEvent, mapProject, mapTask };
|
|
98
|
+
export type { MappedTask };
|
|
97
99
|
//# sourceMappingURL=tool-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../src/tool-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,YAAY,EACZ,eAAe,EACf,IAAI,EACJ,UAAU,EACV,gBAAgB,EACnB,MAAM,+BAA+B,CAAA;AAKtC,OAAO,EACH,aAAa,EACb,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,sBAAsB,GACzB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAA;AAExD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,eAAe,CAE9E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,gBAAgB,CAEhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAClB,YAAY,CAsBd;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,IAAI,EAAE,IAAI;;;;;;;;;;;;;;;;;EAmB1B;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO;;;;;;;;;EAWnC;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;EAY7C;AAWD,iBAAe,gBAAgB,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,GACT,EAAE;IACC,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B;;;;;;;;;;;;;;;;;;;;GAkBA;AAED,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,EAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../src/tool-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,YAAY,EACZ,eAAe,EACf,IAAI,EACJ,UAAU,EACV,gBAAgB,EACnB,MAAM,+BAA+B,CAAA;AAKtC,OAAO,EACH,aAAa,EACb,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,sBAAsB,GACzB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAA;AAExD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,eAAe,CAE9E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,gBAAgB,CAEhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAClB,YAAY,CAsBd;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,IAAI,EAAE,IAAI;;;;;;;;;;;;;;;;;EAmB1B;AAED,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAE5C;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO;;;;;;;;;EAWnC;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;EAY7C;AAWD,iBAAe,gBAAgB,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,GACT,EAAE;IACC,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B;;;;;;;;;;;;;;;;;;;;GAkBA;AAED,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,EAAE,CAAA;AAClE,YAAY,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -9,25 +9,88 @@ declare const addComments: {
|
|
|
9
9
|
content: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
content: string;
|
|
12
|
-
taskId?: string | undefined;
|
|
13
12
|
projectId?: string | undefined;
|
|
13
|
+
taskId?: string | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
content: string;
|
|
16
|
+
projectId?: string | undefined;
|
|
16
17
|
taskId?: string | undefined;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
};
|
|
20
|
+
outputSchema: {
|
|
21
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
content: z.ZodString;
|
|
26
|
+
postedAt: z.ZodString;
|
|
27
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
resourceType: z.ZodString;
|
|
29
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
30
|
+
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
fileType: z.ZodOptional<z.ZodString>;
|
|
32
|
+
fileUrl: z.ZodOptional<z.ZodString>;
|
|
33
|
+
fileDuration: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
resourceType: string;
|
|
37
|
+
fileName?: string | undefined;
|
|
38
|
+
fileSize?: number | undefined;
|
|
39
|
+
fileType?: string | undefined;
|
|
40
|
+
fileUrl?: string | undefined;
|
|
41
|
+
fileDuration?: number | undefined;
|
|
42
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
resourceType: string;
|
|
45
|
+
fileName?: string | undefined;
|
|
46
|
+
fileSize?: number | undefined;
|
|
47
|
+
fileType?: string | undefined;
|
|
48
|
+
fileUrl?: string | undefined;
|
|
49
|
+
fileDuration?: number | undefined;
|
|
50
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
51
|
+
}>>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
content: string;
|
|
54
|
+
id: string;
|
|
55
|
+
postedAt: string;
|
|
56
|
+
projectId?: string | undefined;
|
|
57
|
+
taskId?: string | undefined;
|
|
58
|
+
attachment?: {
|
|
59
|
+
resourceType: string;
|
|
60
|
+
fileName?: string | undefined;
|
|
61
|
+
fileSize?: number | undefined;
|
|
62
|
+
fileType?: string | undefined;
|
|
63
|
+
fileUrl?: string | undefined;
|
|
64
|
+
fileDuration?: number | undefined;
|
|
65
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
content: string;
|
|
69
|
+
id: string;
|
|
70
|
+
postedAt: string;
|
|
17
71
|
projectId?: string | undefined;
|
|
72
|
+
taskId?: string | undefined;
|
|
73
|
+
attachment?: {
|
|
74
|
+
resourceType: string;
|
|
75
|
+
fileName?: string | undefined;
|
|
76
|
+
fileSize?: number | undefined;
|
|
77
|
+
fileType?: string | undefined;
|
|
78
|
+
fileUrl?: string | undefined;
|
|
79
|
+
fileDuration?: number | undefined;
|
|
80
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
81
|
+
} | undefined;
|
|
18
82
|
}>, "many">;
|
|
83
|
+
totalCount: z.ZodNumber;
|
|
84
|
+
addedCommentIds: z.ZodArray<z.ZodString, "many">;
|
|
19
85
|
};
|
|
20
86
|
execute(args: {
|
|
21
87
|
comments: {
|
|
22
88
|
content: string;
|
|
23
|
-
taskId?: string | undefined;
|
|
24
89
|
projectId?: string | undefined;
|
|
90
|
+
taskId?: string | undefined;
|
|
25
91
|
}[];
|
|
26
92
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
27
|
-
|
|
28
|
-
type: "text";
|
|
29
|
-
text: string;
|
|
30
|
-
}[];
|
|
93
|
+
textContent: string;
|
|
31
94
|
structuredContent: {
|
|
32
95
|
comments: {
|
|
33
96
|
taskId: string | undefined;
|
|
@@ -57,17 +120,6 @@ declare const addComments: {
|
|
|
57
120
|
totalCount: number;
|
|
58
121
|
addedCommentIds: string[];
|
|
59
122
|
};
|
|
60
|
-
} | {
|
|
61
|
-
content: ({
|
|
62
|
-
type: "text";
|
|
63
|
-
text: string;
|
|
64
|
-
mimeType?: undefined;
|
|
65
|
-
} | {
|
|
66
|
-
type: "text";
|
|
67
|
-
mimeType: string;
|
|
68
|
-
text: string;
|
|
69
|
-
})[];
|
|
70
|
-
structuredContent?: undefined;
|
|
71
123
|
}>;
|
|
72
124
|
};
|
|
73
125
|
export { addComments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comments.d.ts","sourceRoot":"","sources":["../../src/tools/add-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-comments.d.ts","sourceRoot":"","sources":["../../src/tools/add-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAyEopV,CAAC;4BAA6C,CAAC;4BAA6C,CAAC;2BAA4C,CAAC;gCAAiD,CAAC;+BAAgD,CAAC;yBAA2D,CAAC;8BAA+C,CAAC;+BAAgD,CAAC;uBAAwC,CAAC;yBAA0C,CAAC;;;;;;;;;;;;CAvBpkW,CAAA;AAsB/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -20,6 +20,37 @@ declare const addProjects: {
|
|
|
20
20
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
};
|
|
23
|
+
outputSchema: {
|
|
24
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
color: z.ZodString;
|
|
28
|
+
isFavorite: z.ZodBoolean;
|
|
29
|
+
isShared: z.ZodBoolean;
|
|
30
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
inboxProject: z.ZodBoolean;
|
|
32
|
+
viewStyle: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
name: string;
|
|
35
|
+
id: string;
|
|
36
|
+
color: string;
|
|
37
|
+
isFavorite: boolean;
|
|
38
|
+
isShared: boolean;
|
|
39
|
+
inboxProject: boolean;
|
|
40
|
+
viewStyle: string;
|
|
41
|
+
parentId?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
name: string;
|
|
44
|
+
id: string;
|
|
45
|
+
color: string;
|
|
46
|
+
isFavorite: boolean;
|
|
47
|
+
isShared: boolean;
|
|
48
|
+
inboxProject: boolean;
|
|
49
|
+
viewStyle: string;
|
|
50
|
+
parentId?: string | undefined;
|
|
51
|
+
}>, "many">;
|
|
52
|
+
totalCount: z.ZodNumber;
|
|
53
|
+
};
|
|
23
54
|
execute({ projects }: {
|
|
24
55
|
projects: {
|
|
25
56
|
name: string;
|
|
@@ -28,12 +59,11 @@ declare const addProjects: {
|
|
|
28
59
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
29
60
|
}[];
|
|
30
61
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
31
|
-
|
|
32
|
-
type: "text";
|
|
33
|
-
text: string;
|
|
34
|
-
}[];
|
|
62
|
+
textContent: string;
|
|
35
63
|
structuredContent: {
|
|
36
64
|
projects: ({
|
|
65
|
+
parentId: string | undefined;
|
|
66
|
+
inboxProject: boolean;
|
|
37
67
|
url: string;
|
|
38
68
|
id: string;
|
|
39
69
|
canAssignTasks: boolean;
|
|
@@ -51,9 +81,9 @@ declare const addProjects: {
|
|
|
51
81
|
description: string;
|
|
52
82
|
isCollapsed: boolean;
|
|
53
83
|
isShared: boolean;
|
|
54
|
-
parentId: string | null;
|
|
55
|
-
inboxProject: boolean;
|
|
56
84
|
} | {
|
|
85
|
+
parentId: string | undefined;
|
|
86
|
+
inboxProject: boolean;
|
|
57
87
|
url: string;
|
|
58
88
|
id: string;
|
|
59
89
|
canAssignTasks: boolean;
|
|
@@ -81,17 +111,6 @@ declare const addProjects: {
|
|
|
81
111
|
})[];
|
|
82
112
|
totalCount: number;
|
|
83
113
|
};
|
|
84
|
-
} | {
|
|
85
|
-
content: ({
|
|
86
|
-
type: "text";
|
|
87
|
-
text: string;
|
|
88
|
-
mimeType?: undefined;
|
|
89
|
-
} | {
|
|
90
|
-
type: "text";
|
|
91
|
-
mimeType: string;
|
|
92
|
-
text: string;
|
|
93
|
-
})[];
|
|
94
|
-
structuredContent?: undefined;
|
|
95
114
|
}>;
|
|
96
115
|
};
|
|
97
116
|
export { addProjects };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-projects.d.ts","sourceRoot":"","sources":["../../src/tools/add-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-projects.d.ts","sourceRoot":"","sources":["../../src/tools/add-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB8C,CAAA;AAW/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -14,16 +14,26 @@ declare const addSections: {
|
|
|
14
14
|
projectId: string;
|
|
15
15
|
}>, "many">;
|
|
16
16
|
};
|
|
17
|
+
outputSchema: {
|
|
18
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}, {
|
|
25
|
+
name: string;
|
|
26
|
+
id: string;
|
|
27
|
+
}>, "many">;
|
|
28
|
+
totalCount: z.ZodNumber;
|
|
29
|
+
};
|
|
17
30
|
execute({ sections }: {
|
|
18
31
|
sections: {
|
|
19
32
|
name: string;
|
|
20
33
|
projectId: string;
|
|
21
34
|
}[];
|
|
22
35
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
23
|
-
|
|
24
|
-
type: "text";
|
|
25
|
-
text: string;
|
|
26
|
-
}[];
|
|
36
|
+
textContent: string;
|
|
27
37
|
structuredContent: {
|
|
28
38
|
sections: {
|
|
29
39
|
url: string;
|
|
@@ -41,17 +51,6 @@ declare const addSections: {
|
|
|
41
51
|
}[];
|
|
42
52
|
totalCount: number;
|
|
43
53
|
};
|
|
44
|
-
} | {
|
|
45
|
-
content: ({
|
|
46
|
-
type: "text";
|
|
47
|
-
text: string;
|
|
48
|
-
mimeType?: undefined;
|
|
49
|
-
} | {
|
|
50
|
-
type: "text";
|
|
51
|
-
mimeType: string;
|
|
52
|
-
text: string;
|
|
53
|
-
})[];
|
|
54
|
-
structuredContent?: undefined;
|
|
55
54
|
}>;
|
|
56
55
|
};
|
|
57
56
|
export { addSections };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwBvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC8C,CAAA;AAa/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -19,48 +19,100 @@ declare const addTasks: {
|
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
content: string;
|
|
21
21
|
description?: string | undefined;
|
|
22
|
+
deadlineDate?: string | undefined;
|
|
23
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
22
24
|
projectId?: string | undefined;
|
|
23
|
-
parentId?: string | undefined;
|
|
24
25
|
sectionId?: string | undefined;
|
|
26
|
+
parentId?: string | undefined;
|
|
25
27
|
labels?: string[] | undefined;
|
|
26
28
|
duration?: string | undefined;
|
|
27
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
28
29
|
dueString?: string | undefined;
|
|
29
|
-
deadlineDate?: string | undefined;
|
|
30
30
|
responsibleUser?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
content: string;
|
|
33
33
|
description?: string | undefined;
|
|
34
|
+
deadlineDate?: string | undefined;
|
|
35
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
34
36
|
projectId?: string | undefined;
|
|
35
|
-
parentId?: string | undefined;
|
|
36
37
|
sectionId?: string | undefined;
|
|
38
|
+
parentId?: string | undefined;
|
|
37
39
|
labels?: string[] | undefined;
|
|
38
40
|
duration?: string | undefined;
|
|
39
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
40
41
|
dueString?: string | undefined;
|
|
41
|
-
deadlineDate?: string | undefined;
|
|
42
42
|
responsibleUser?: string | undefined;
|
|
43
43
|
}>, "many">;
|
|
44
44
|
};
|
|
45
|
+
outputSchema: {
|
|
46
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
content: z.ZodString;
|
|
49
|
+
description: z.ZodString;
|
|
50
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
51
|
+
recurring: z.ZodUnion<[z.ZodBoolean, z.ZodString]>;
|
|
52
|
+
deadlineDate: z.ZodOptional<z.ZodString>;
|
|
53
|
+
priority: z.ZodNumber;
|
|
54
|
+
projectId: z.ZodString;
|
|
55
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
58
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
59
|
+
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
60
|
+
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
61
|
+
checked: z.ZodBoolean;
|
|
62
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
content: string;
|
|
65
|
+
description: string;
|
|
66
|
+
id: string;
|
|
67
|
+
recurring: string | boolean;
|
|
68
|
+
priority: number;
|
|
69
|
+
projectId: string;
|
|
70
|
+
labels: string[];
|
|
71
|
+
checked: boolean;
|
|
72
|
+
dueDate?: string | undefined;
|
|
73
|
+
deadlineDate?: string | undefined;
|
|
74
|
+
sectionId?: string | undefined;
|
|
75
|
+
parentId?: string | undefined;
|
|
76
|
+
duration?: string | undefined;
|
|
77
|
+
responsibleUid?: string | undefined;
|
|
78
|
+
assignedByUid?: string | undefined;
|
|
79
|
+
completedAt?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
content: string;
|
|
82
|
+
description: string;
|
|
83
|
+
id: string;
|
|
84
|
+
recurring: string | boolean;
|
|
85
|
+
priority: number;
|
|
86
|
+
projectId: string;
|
|
87
|
+
labels: string[];
|
|
88
|
+
checked: boolean;
|
|
89
|
+
dueDate?: string | undefined;
|
|
90
|
+
deadlineDate?: string | undefined;
|
|
91
|
+
sectionId?: string | undefined;
|
|
92
|
+
parentId?: string | undefined;
|
|
93
|
+
duration?: string | undefined;
|
|
94
|
+
responsibleUid?: string | undefined;
|
|
95
|
+
assignedByUid?: string | undefined;
|
|
96
|
+
completedAt?: string | undefined;
|
|
97
|
+
}>, "many">;
|
|
98
|
+
totalCount: z.ZodNumber;
|
|
99
|
+
};
|
|
45
100
|
execute({ tasks }: {
|
|
46
101
|
tasks: {
|
|
47
102
|
content: string;
|
|
48
103
|
description?: string | undefined;
|
|
104
|
+
deadlineDate?: string | undefined;
|
|
105
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
49
106
|
projectId?: string | undefined;
|
|
50
|
-
parentId?: string | undefined;
|
|
51
107
|
sectionId?: string | undefined;
|
|
108
|
+
parentId?: string | undefined;
|
|
52
109
|
labels?: string[] | undefined;
|
|
53
110
|
duration?: string | undefined;
|
|
54
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
55
111
|
dueString?: string | undefined;
|
|
56
|
-
deadlineDate?: string | undefined;
|
|
57
112
|
responsibleUser?: string | undefined;
|
|
58
113
|
}[];
|
|
59
114
|
}, client: TodoistApi): Promise<{
|
|
60
|
-
|
|
61
|
-
type: "text";
|
|
62
|
-
text: string;
|
|
63
|
-
}[];
|
|
115
|
+
textContent: string;
|
|
64
116
|
structuredContent: {
|
|
65
117
|
tasks: {
|
|
66
118
|
id: string;
|
|
@@ -71,28 +123,17 @@ declare const addTasks: {
|
|
|
71
123
|
deadlineDate: string | undefined;
|
|
72
124
|
priority: number;
|
|
73
125
|
projectId: string;
|
|
74
|
-
sectionId: string |
|
|
75
|
-
parentId: string |
|
|
126
|
+
sectionId: string | undefined;
|
|
127
|
+
parentId: string | undefined;
|
|
76
128
|
labels: string[];
|
|
77
|
-
duration: string |
|
|
78
|
-
responsibleUid: string |
|
|
79
|
-
assignedByUid: string |
|
|
129
|
+
duration: string | undefined;
|
|
130
|
+
responsibleUid: string | undefined;
|
|
131
|
+
assignedByUid: string | undefined;
|
|
80
132
|
checked: boolean;
|
|
81
|
-
completedAt: string |
|
|
133
|
+
completedAt: string | undefined;
|
|
82
134
|
}[];
|
|
83
135
|
totalCount: number;
|
|
84
136
|
};
|
|
85
|
-
} | {
|
|
86
|
-
content: ({
|
|
87
|
-
type: "text";
|
|
88
|
-
text: string;
|
|
89
|
-
mimeType?: undefined;
|
|
90
|
-
} | {
|
|
91
|
-
type: "text";
|
|
92
|
-
mimeType: string;
|
|
93
|
-
text: string;
|
|
94
|
-
})[];
|
|
95
|
-
structuredContent?: undefined;
|
|
96
137
|
}>;
|
|
97
138
|
};
|
|
98
139
|
export { addTasks };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiEvB,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBiD,CAAA;AA0I/D,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -5,13 +5,29 @@ declare const completeTasks: {
|
|
|
5
5
|
parameters: {
|
|
6
6
|
ids: z.ZodArray<z.ZodString, "many">;
|
|
7
7
|
};
|
|
8
|
+
outputSchema: {
|
|
9
|
+
completed: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
11
|
+
item: z.ZodString;
|
|
12
|
+
error: z.ZodString;
|
|
13
|
+
code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
item: string;
|
|
16
|
+
error: string;
|
|
17
|
+
code?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
item: string;
|
|
20
|
+
error: string;
|
|
21
|
+
code?: string | undefined;
|
|
22
|
+
}>, "many">;
|
|
23
|
+
totalRequested: z.ZodNumber;
|
|
24
|
+
successCount: z.ZodNumber;
|
|
25
|
+
failureCount: z.ZodNumber;
|
|
26
|
+
};
|
|
8
27
|
execute(args: {
|
|
9
28
|
ids: string[];
|
|
10
29
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
11
|
-
|
|
12
|
-
type: "text";
|
|
13
|
-
text: string;
|
|
14
|
-
}[];
|
|
30
|
+
textContent: string;
|
|
15
31
|
structuredContent: {
|
|
16
32
|
completed: string[];
|
|
17
33
|
failures: {
|
|
@@ -23,17 +39,6 @@ declare const completeTasks: {
|
|
|
23
39
|
successCount: number;
|
|
24
40
|
failureCount: number;
|
|
25
41
|
};
|
|
26
|
-
} | {
|
|
27
|
-
content: ({
|
|
28
|
-
type: "text";
|
|
29
|
-
text: string;
|
|
30
|
-
mimeType?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
type: "text";
|
|
33
|
-
mimeType: string;
|
|
34
|
-
text: string;
|
|
35
|
-
})[];
|
|
36
|
-
structuredContent?: undefined;
|
|
37
42
|
}>;
|
|
38
43
|
};
|
|
39
44
|
export { completeTasks };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"complete-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/complete-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"complete-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/complete-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkBvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAOmB,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;CAgCX,CAAA;AAoB/D,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -6,32 +6,31 @@ declare const deleteObject: {
|
|
|
6
6
|
type: z.ZodEnum<["project", "section", "task", "comment"]>;
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
};
|
|
9
|
+
outputSchema: {
|
|
10
|
+
deletedEntity: z.ZodObject<{
|
|
11
|
+
type: z.ZodEnum<["project", "section", "task", "comment"]>;
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
type: "comment" | "task" | "project" | "section";
|
|
15
|
+
id: string;
|
|
16
|
+
}, {
|
|
17
|
+
type: "comment" | "task" | "project" | "section";
|
|
18
|
+
id: string;
|
|
19
|
+
}>;
|
|
20
|
+
success: z.ZodBoolean;
|
|
21
|
+
};
|
|
9
22
|
execute(args: {
|
|
10
23
|
type: "comment" | "task" | "project" | "section";
|
|
11
24
|
id: string;
|
|
12
25
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
13
|
-
|
|
14
|
-
type: "text";
|
|
15
|
-
text: string;
|
|
16
|
-
}[];
|
|
26
|
+
textContent: string;
|
|
17
27
|
structuredContent: {
|
|
18
28
|
deletedEntity: {
|
|
19
29
|
type: "comment" | "task" | "project" | "section";
|
|
20
30
|
id: string;
|
|
21
31
|
};
|
|
22
|
-
success:
|
|
32
|
+
success: true;
|
|
23
33
|
};
|
|
24
|
-
} | {
|
|
25
|
-
content: ({
|
|
26
|
-
type: "text";
|
|
27
|
-
text: string;
|
|
28
|
-
mimeType?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
type: "text";
|
|
31
|
-
mimeType: string;
|
|
32
|
-
text: string;
|
|
33
|
-
})[];
|
|
34
|
-
structuredContent?: undefined;
|
|
35
34
|
}>;
|
|
36
35
|
};
|
|
37
36
|
export { deleteObject };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuBvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B6C,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|