@doist/todoist-ai 4.17.0 → 4.17.2
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 +390 -584
- 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 +1 -37
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/{mcp-server-BADReNAy.js → mcp-server-BSQxi0xQ.js} +1067 -1070
- package/dist/todoist-tool.d.ts +6 -2
- package/dist/todoist-tool.d.ts.map +1 -1
- package/dist/tool-helpers.d.ts +49 -20
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tools/add-comments.d.ts +49 -38
- package/dist/tools/add-comments.d.ts.map +1 -1
- package/dist/tools/add-projects.d.ts +10 -22
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/add-sections.d.ts +1 -15
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/add-tasks.d.ts +33 -47
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/complete-tasks.d.ts +3 -17
- package/dist/tools/complete-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +2 -16
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch.d.ts +3 -8
- package/dist/tools/fetch.d.ts.map +1 -1
- package/dist/tools/find-activity.d.ts +15 -29
- package/dist/tools/find-activity.d.ts.map +1 -1
- package/dist/tools/find-comments.d.ts +51 -40
- package/dist/tools/find-comments.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +29 -43
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-project-collaborators.d.ts +20 -20
- package/dist/tools/find-project-collaborators.d.ts.map +1 -1
- package/dist/tools/find-projects.d.ts +7 -21
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +1 -15
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.d.ts +27 -41
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks.d.ts +29 -43
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +9 -16
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/manage-assignments.d.ts +5 -19
- package/dist/tools/manage-assignments.d.ts.map +1 -1
- package/dist/tools/search.d.ts +11 -7
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/update-comments.d.ts +49 -38
- package/dist/tools/update-comments.d.ts.map +1 -1
- package/dist/tools/update-projects.d.ts +7 -19
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +1 -15
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/tools/update-tasks.d.ts +33 -47
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/tools/user-info.d.ts +1 -15
- package/dist/tools/user-info.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +60 -32
- package/dist/utils/output-schemas.d.ts.map +1 -1
- package/dist/utils/sanitize-data.d.ts +3 -2
- package/dist/utils/sanitize-data.d.ts.map +1 -1
- 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/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, Output 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
|
*/
|
|
@@ -35,7 +39,7 @@ type TodoistTool<Params extends z.ZodRawShape, Output extends z.ZodRawShape = z.
|
|
|
35
39
|
* @param client - The Todoist API client used to make requests to the Todoist API.
|
|
36
40
|
* @returns The result of the tool.
|
|
37
41
|
*/
|
|
38
|
-
execute: (args: z.infer<z.ZodObject<Params>>, client: TodoistApi) =>
|
|
42
|
+
execute: (args: z.infer<z.ZodObject<Params>>, client: TodoistApi) => ExecuteResult<Output>;
|
|
39
43
|
};
|
|
40
44
|
export type { TodoistTool };
|
|
41
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
|
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActivityEvent, MoveTaskArgs, PersonalProject, Task, TodoistApi, WorkspaceProject } from '@doist/todoist-api-typescript';
|
|
1
|
+
import { ActivityEvent, Comment, MoveTaskArgs, PersonalProject, Task, TodoistApi, WorkspaceProject } from '@doist/todoist-api-typescript';
|
|
2
2
|
export { appendToQuery, buildResponsibleUserQueryFilter, filterTasksByResponsibleUser, RESPONSIBLE_USER_FILTERING, type ResponsibleUserFiltering, resolveResponsibleUser, } from './filter-helpers.js';
|
|
3
3
|
export type Project = PersonalProject | WorkspaceProject;
|
|
4
4
|
export declare function isPersonalProject(project: Project): project is PersonalProject;
|
|
@@ -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,25 +48,52 @@ 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
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Map a single Todoist comment to a more structured format, for LLM consumption.
|
|
57
|
+
* @param comment - The comment to map.
|
|
58
|
+
* @returns The mapped comment.
|
|
59
|
+
*/
|
|
60
|
+
declare function mapComment(comment: Comment): {
|
|
61
|
+
id: string;
|
|
62
|
+
taskId: string | undefined;
|
|
63
|
+
projectId: string | undefined;
|
|
64
|
+
content: string;
|
|
65
|
+
postedAt: string;
|
|
66
|
+
postedUid: string;
|
|
67
|
+
fileAttachment: {
|
|
68
|
+
resourceType: string;
|
|
69
|
+
fileName: string | undefined;
|
|
70
|
+
fileSize: number | undefined;
|
|
71
|
+
fileType: string | undefined;
|
|
72
|
+
fileUrl: string | undefined;
|
|
73
|
+
fileDuration: number | undefined;
|
|
74
|
+
uploadState: "pending" | "completed" | undefined;
|
|
75
|
+
url: string | undefined;
|
|
76
|
+
title: string | undefined;
|
|
77
|
+
image: string | undefined;
|
|
78
|
+
imageWidth: number | undefined;
|
|
79
|
+
imageHeight: number | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
};
|
|
54
82
|
/**
|
|
55
83
|
* Map a single Todoist activity event to a more structured format, for LLM consumption.
|
|
56
84
|
* @param event - The activity event to map.
|
|
57
85
|
* @returns The mapped activity event.
|
|
58
86
|
*/
|
|
59
87
|
declare function mapActivityEvent(event: ActivityEvent): {
|
|
60
|
-
id: string |
|
|
88
|
+
id: string | undefined;
|
|
61
89
|
objectType: string;
|
|
62
90
|
objectId: string;
|
|
63
91
|
eventType: string;
|
|
64
92
|
eventDate: string;
|
|
65
|
-
parentProjectId: string |
|
|
66
|
-
parentItemId: string |
|
|
67
|
-
initiatorId: string |
|
|
68
|
-
extraData: Record<string, any> |
|
|
93
|
+
parentProjectId: string | undefined;
|
|
94
|
+
parentItemId: string | undefined;
|
|
95
|
+
initiatorId: string | undefined;
|
|
96
|
+
extraData: Record<string, any> | undefined;
|
|
69
97
|
};
|
|
70
98
|
declare function getTasksByFilter({ client, query, limit, cursor, }: {
|
|
71
99
|
client: TodoistApi;
|
|
@@ -82,16 +110,17 @@ declare function getTasksByFilter({ client, query, limit, cursor, }: {
|
|
|
82
110
|
deadlineDate: string | undefined;
|
|
83
111
|
priority: number;
|
|
84
112
|
projectId: string;
|
|
85
|
-
sectionId: string |
|
|
86
|
-
parentId: string |
|
|
113
|
+
sectionId: string | undefined;
|
|
114
|
+
parentId: string | undefined;
|
|
87
115
|
labels: string[];
|
|
88
|
-
duration: string |
|
|
89
|
-
responsibleUid: string |
|
|
90
|
-
assignedByUid: string |
|
|
116
|
+
duration: string | undefined;
|
|
117
|
+
responsibleUid: string | undefined;
|
|
118
|
+
assignedByUid: string | undefined;
|
|
91
119
|
checked: boolean;
|
|
92
|
-
completedAt: string |
|
|
120
|
+
completedAt: string | undefined;
|
|
93
121
|
}[];
|
|
94
122
|
nextCursor: string | null;
|
|
95
123
|
}>;
|
|
96
|
-
export { getTasksByFilter, mapActivityEvent, mapProject, mapTask };
|
|
124
|
+
export { getTasksByFilter, mapActivityEvent, mapComment, mapProject, mapTask };
|
|
125
|
+
export type { MappedTask };
|
|
97
126
|
//# sourceMappingURL=tool-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-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T,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,UAAU,EAAE,OAAO,EAAE,CAAA;AAC9E,YAAY,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -24,7 +24,8 @@ declare const addComments: {
|
|
|
24
24
|
projectId: z.ZodOptional<z.ZodString>;
|
|
25
25
|
content: z.ZodString;
|
|
26
26
|
postedAt: z.ZodString;
|
|
27
|
-
|
|
27
|
+
postedUid: z.ZodOptional<z.ZodString>;
|
|
28
|
+
fileAttachment: z.ZodOptional<z.ZodObject<{
|
|
28
29
|
resourceType: z.ZodString;
|
|
29
30
|
fileName: z.ZodOptional<z.ZodString>;
|
|
30
31
|
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -32,53 +33,80 @@ declare const addComments: {
|
|
|
32
33
|
fileUrl: z.ZodOptional<z.ZodString>;
|
|
33
34
|
fileDuration: z.ZodOptional<z.ZodNumber>;
|
|
34
35
|
uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
|
|
36
|
+
url: z.ZodOptional<z.ZodString>;
|
|
37
|
+
title: z.ZodOptional<z.ZodString>;
|
|
38
|
+
image: z.ZodOptional<z.ZodString>;
|
|
39
|
+
imageWidth: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
imageHeight: z.ZodOptional<z.ZodNumber>;
|
|
35
41
|
}, "strip", z.ZodTypeAny, {
|
|
36
42
|
resourceType: string;
|
|
43
|
+
image?: string | undefined;
|
|
44
|
+
title?: string | undefined;
|
|
37
45
|
fileName?: string | undefined;
|
|
38
46
|
fileSize?: number | undefined;
|
|
39
47
|
fileType?: string | undefined;
|
|
40
48
|
fileUrl?: string | undefined;
|
|
41
49
|
fileDuration?: number | undefined;
|
|
42
50
|
uploadState?: "pending" | "completed" | undefined;
|
|
51
|
+
imageWidth?: number | undefined;
|
|
52
|
+
imageHeight?: number | undefined;
|
|
53
|
+
url?: string | undefined;
|
|
43
54
|
}, {
|
|
44
55
|
resourceType: string;
|
|
56
|
+
image?: string | undefined;
|
|
57
|
+
title?: string | undefined;
|
|
45
58
|
fileName?: string | undefined;
|
|
46
59
|
fileSize?: number | undefined;
|
|
47
60
|
fileType?: string | undefined;
|
|
48
61
|
fileUrl?: string | undefined;
|
|
49
62
|
fileDuration?: number | undefined;
|
|
50
63
|
uploadState?: "pending" | "completed" | undefined;
|
|
64
|
+
imageWidth?: number | undefined;
|
|
65
|
+
imageHeight?: number | undefined;
|
|
66
|
+
url?: string | undefined;
|
|
51
67
|
}>>;
|
|
52
68
|
}, "strip", z.ZodTypeAny, {
|
|
53
69
|
content: string;
|
|
54
70
|
id: string;
|
|
55
71
|
postedAt: string;
|
|
56
72
|
projectId?: string | undefined;
|
|
57
|
-
|
|
58
|
-
attachment?: {
|
|
73
|
+
fileAttachment?: {
|
|
59
74
|
resourceType: string;
|
|
75
|
+
image?: string | undefined;
|
|
76
|
+
title?: string | undefined;
|
|
60
77
|
fileName?: string | undefined;
|
|
61
78
|
fileSize?: number | undefined;
|
|
62
79
|
fileType?: string | undefined;
|
|
63
80
|
fileUrl?: string | undefined;
|
|
64
81
|
fileDuration?: number | undefined;
|
|
65
82
|
uploadState?: "pending" | "completed" | undefined;
|
|
83
|
+
imageWidth?: number | undefined;
|
|
84
|
+
imageHeight?: number | undefined;
|
|
85
|
+
url?: string | undefined;
|
|
66
86
|
} | undefined;
|
|
87
|
+
postedUid?: string | undefined;
|
|
88
|
+
taskId?: string | undefined;
|
|
67
89
|
}, {
|
|
68
90
|
content: string;
|
|
69
91
|
id: string;
|
|
70
92
|
postedAt: string;
|
|
71
93
|
projectId?: string | undefined;
|
|
72
|
-
|
|
73
|
-
attachment?: {
|
|
94
|
+
fileAttachment?: {
|
|
74
95
|
resourceType: string;
|
|
96
|
+
image?: string | undefined;
|
|
97
|
+
title?: string | undefined;
|
|
75
98
|
fileName?: string | undefined;
|
|
76
99
|
fileSize?: number | undefined;
|
|
77
100
|
fileType?: string | undefined;
|
|
78
101
|
fileUrl?: string | undefined;
|
|
79
102
|
fileDuration?: number | undefined;
|
|
80
103
|
uploadState?: "pending" | "completed" | undefined;
|
|
104
|
+
imageWidth?: number | undefined;
|
|
105
|
+
imageHeight?: number | undefined;
|
|
106
|
+
url?: string | undefined;
|
|
81
107
|
} | undefined;
|
|
108
|
+
postedUid?: string | undefined;
|
|
109
|
+
taskId?: string | undefined;
|
|
82
110
|
}>, "many">;
|
|
83
111
|
totalCount: z.ZodNumber;
|
|
84
112
|
addedCommentIds: z.ZodArray<z.ZodString, "many">;
|
|
@@ -90,50 +118,33 @@ declare const addComments: {
|
|
|
90
118
|
taskId?: string | undefined;
|
|
91
119
|
}[];
|
|
92
120
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
93
|
-
|
|
94
|
-
type: "text";
|
|
95
|
-
text: string;
|
|
96
|
-
}[];
|
|
121
|
+
textContent: string;
|
|
97
122
|
structuredContent: {
|
|
98
123
|
comments: {
|
|
99
|
-
taskId: string | undefined;
|
|
100
124
|
id: string;
|
|
125
|
+
taskId: string | undefined;
|
|
126
|
+
projectId: string | undefined;
|
|
101
127
|
content: string;
|
|
102
128
|
postedAt: string;
|
|
129
|
+
postedUid: string;
|
|
103
130
|
fileAttachment: {
|
|
104
131
|
resourceType: string;
|
|
105
|
-
fileName
|
|
106
|
-
fileSize
|
|
107
|
-
fileType
|
|
108
|
-
fileUrl
|
|
109
|
-
fileDuration
|
|
110
|
-
uploadState
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
} |
|
|
117
|
-
postedUid: string;
|
|
118
|
-
uidsToNotify: string[] | null;
|
|
119
|
-
reactions: Record<string, string[]> | null;
|
|
120
|
-
isDeleted: boolean;
|
|
121
|
-
projectId?: string | undefined;
|
|
132
|
+
fileName: string | undefined;
|
|
133
|
+
fileSize: number | undefined;
|
|
134
|
+
fileType: string | undefined;
|
|
135
|
+
fileUrl: string | undefined;
|
|
136
|
+
fileDuration: number | undefined;
|
|
137
|
+
uploadState: "pending" | "completed" | undefined;
|
|
138
|
+
url: string | undefined;
|
|
139
|
+
title: string | undefined;
|
|
140
|
+
image: string | undefined;
|
|
141
|
+
imageWidth: number | undefined;
|
|
142
|
+
imageHeight: number | undefined;
|
|
143
|
+
} | undefined;
|
|
122
144
|
}[];
|
|
123
145
|
totalCount: number;
|
|
124
146
|
addedCommentIds: string[];
|
|
125
147
|
};
|
|
126
|
-
} | {
|
|
127
|
-
content: ({
|
|
128
|
-
type: "text";
|
|
129
|
-
text: string;
|
|
130
|
-
mimeType?: undefined;
|
|
131
|
-
} | {
|
|
132
|
-
type: "text";
|
|
133
|
-
mimeType: string;
|
|
134
|
-
text: string;
|
|
135
|
-
})[];
|
|
136
|
-
structuredContent?: undefined;
|
|
137
148
|
}>;
|
|
138
149
|
};
|
|
139
150
|
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;AA2BvB,QAAA,MAAM,WAAW
|
|
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;AA2BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD8C,CAAA;AAsB/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -10,14 +10,14 @@ declare const addProjects: {
|
|
|
10
10
|
viewStyle: z.ZodOptional<z.ZodEnum<["list", "board", "calendar"]>>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
name: string;
|
|
13
|
-
parentId?: string | undefined;
|
|
14
13
|
isFavorite?: boolean | undefined;
|
|
15
14
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
15
|
+
parentId?: string | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
name: string;
|
|
18
|
-
parentId?: string | undefined;
|
|
19
18
|
isFavorite?: boolean | undefined;
|
|
20
19
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
20
|
+
parentId?: string | undefined;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
};
|
|
23
23
|
outputSchema: {
|
|
@@ -35,18 +35,18 @@ declare const addProjects: {
|
|
|
35
35
|
id: string;
|
|
36
36
|
color: string;
|
|
37
37
|
isFavorite: boolean;
|
|
38
|
+
viewStyle: string;
|
|
38
39
|
isShared: boolean;
|
|
39
40
|
inboxProject: boolean;
|
|
40
|
-
viewStyle: string;
|
|
41
41
|
parentId?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
name: string;
|
|
44
44
|
id: string;
|
|
45
45
|
color: string;
|
|
46
46
|
isFavorite: boolean;
|
|
47
|
+
viewStyle: string;
|
|
47
48
|
isShared: boolean;
|
|
48
49
|
inboxProject: boolean;
|
|
49
|
-
viewStyle: string;
|
|
50
50
|
parentId?: string | undefined;
|
|
51
51
|
}>, "many">;
|
|
52
52
|
totalCount: z.ZodNumber;
|
|
@@ -54,17 +54,16 @@ declare const addProjects: {
|
|
|
54
54
|
execute({ projects }: {
|
|
55
55
|
projects: {
|
|
56
56
|
name: string;
|
|
57
|
-
parentId?: string | undefined;
|
|
58
57
|
isFavorite?: boolean | undefined;
|
|
59
58
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
59
|
+
parentId?: string | undefined;
|
|
60
60
|
}[];
|
|
61
61
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
62
|
-
|
|
63
|
-
type: "text";
|
|
64
|
-
text: string;
|
|
65
|
-
}[];
|
|
62
|
+
textContent: string;
|
|
66
63
|
structuredContent: {
|
|
67
64
|
projects: ({
|
|
65
|
+
parentId: string | undefined;
|
|
66
|
+
inboxProject: boolean;
|
|
68
67
|
url: string;
|
|
69
68
|
id: string;
|
|
70
69
|
canAssignTasks: boolean;
|
|
@@ -82,9 +81,9 @@ declare const addProjects: {
|
|
|
82
81
|
description: string;
|
|
83
82
|
isCollapsed: boolean;
|
|
84
83
|
isShared: boolean;
|
|
85
|
-
parentId: string | null;
|
|
86
|
-
inboxProject: boolean;
|
|
87
84
|
} | {
|
|
85
|
+
parentId: string | undefined;
|
|
86
|
+
inboxProject: boolean;
|
|
88
87
|
url: string;
|
|
89
88
|
id: string;
|
|
90
89
|
canAssignTasks: boolean;
|
|
@@ -112,17 +111,6 @@ declare const addProjects: {
|
|
|
112
111
|
})[];
|
|
113
112
|
totalCount: number;
|
|
114
113
|
};
|
|
115
|
-
} | {
|
|
116
|
-
content: ({
|
|
117
|
-
type: "text";
|
|
118
|
-
text: string;
|
|
119
|
-
mimeType?: undefined;
|
|
120
|
-
} | {
|
|
121
|
-
type: "text";
|
|
122
|
-
mimeType: string;
|
|
123
|
-
text: string;
|
|
124
|
-
})[];
|
|
125
|
-
structuredContent?: undefined;
|
|
126
114
|
}>;
|
|
127
115
|
};
|
|
128
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"}
|
|
@@ -33,10 +33,7 @@ declare const addSections: {
|
|
|
33
33
|
projectId: string;
|
|
34
34
|
}[];
|
|
35
35
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
36
|
-
|
|
37
|
-
type: "text";
|
|
38
|
-
text: string;
|
|
39
|
-
}[];
|
|
36
|
+
textContent: string;
|
|
40
37
|
structuredContent: {
|
|
41
38
|
sections: {
|
|
42
39
|
url: string;
|
|
@@ -54,17 +51,6 @@ declare const addSections: {
|
|
|
54
51
|
}[];
|
|
55
52
|
totalCount: number;
|
|
56
53
|
};
|
|
57
|
-
} | {
|
|
58
|
-
content: ({
|
|
59
|
-
type: "text";
|
|
60
|
-
text: string;
|
|
61
|
-
mimeType?: undefined;
|
|
62
|
-
} | {
|
|
63
|
-
type: "text";
|
|
64
|
-
mimeType: string;
|
|
65
|
-
text: string;
|
|
66
|
-
})[];
|
|
67
|
-
structuredContent?: undefined;
|
|
68
54
|
}>;
|
|
69
55
|
};
|
|
70
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,25 +19,25 @@ declare const addTasks: {
|
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
content: string;
|
|
21
21
|
description?: string | undefined;
|
|
22
|
-
|
|
23
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
22
|
+
parentId?: string | undefined;
|
|
24
23
|
projectId?: string | undefined;
|
|
25
24
|
sectionId?: string | undefined;
|
|
26
|
-
parentId?: string | undefined;
|
|
27
25
|
labels?: string[] | undefined;
|
|
28
26
|
duration?: string | undefined;
|
|
27
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
28
|
+
deadlineDate?: string | undefined;
|
|
29
29
|
dueString?: string | undefined;
|
|
30
30
|
responsibleUser?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
content: string;
|
|
33
33
|
description?: string | undefined;
|
|
34
|
-
|
|
35
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
34
|
+
parentId?: string | undefined;
|
|
36
35
|
projectId?: string | undefined;
|
|
37
36
|
sectionId?: string | undefined;
|
|
38
|
-
parentId?: string | undefined;
|
|
39
37
|
labels?: string[] | undefined;
|
|
40
38
|
duration?: string | undefined;
|
|
39
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
40
|
+
deadlineDate?: string | undefined;
|
|
41
41
|
dueString?: string | undefined;
|
|
42
42
|
responsibleUser?: string | undefined;
|
|
43
43
|
}>, "many">;
|
|
@@ -54,7 +54,7 @@ declare const addTasks: {
|
|
|
54
54
|
projectId: z.ZodString;
|
|
55
55
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
56
56
|
parentId: z.ZodOptional<z.ZodString>;
|
|
57
|
-
labels: z.ZodArray<z.ZodString, "many"
|
|
57
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
58
58
|
duration: z.ZodOptional<z.ZodString>;
|
|
59
59
|
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
60
60
|
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
@@ -64,36 +64,36 @@ declare const addTasks: {
|
|
|
64
64
|
content: string;
|
|
65
65
|
description: string;
|
|
66
66
|
id: string;
|
|
67
|
-
recurring: string | boolean;
|
|
68
|
-
priority: number;
|
|
69
67
|
projectId: string;
|
|
70
|
-
labels: string[];
|
|
71
68
|
checked: boolean;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
sectionId?: string | undefined;
|
|
69
|
+
priority: number;
|
|
70
|
+
recurring: string | boolean;
|
|
75
71
|
parentId?: string | undefined;
|
|
76
|
-
|
|
77
|
-
responsibleUid?: string | undefined;
|
|
72
|
+
sectionId?: string | undefined;
|
|
78
73
|
assignedByUid?: string | undefined;
|
|
74
|
+
responsibleUid?: string | undefined;
|
|
75
|
+
labels?: string[] | undefined;
|
|
76
|
+
duration?: string | undefined;
|
|
79
77
|
completedAt?: string | undefined;
|
|
78
|
+
dueDate?: string | undefined;
|
|
79
|
+
deadlineDate?: string | undefined;
|
|
80
80
|
}, {
|
|
81
81
|
content: string;
|
|
82
82
|
description: string;
|
|
83
83
|
id: string;
|
|
84
|
-
recurring: string | boolean;
|
|
85
|
-
priority: number;
|
|
86
84
|
projectId: string;
|
|
87
|
-
labels: string[];
|
|
88
85
|
checked: boolean;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
sectionId?: string | undefined;
|
|
86
|
+
priority: number;
|
|
87
|
+
recurring: string | boolean;
|
|
92
88
|
parentId?: string | undefined;
|
|
93
|
-
|
|
94
|
-
responsibleUid?: string | undefined;
|
|
89
|
+
sectionId?: string | undefined;
|
|
95
90
|
assignedByUid?: string | undefined;
|
|
91
|
+
responsibleUid?: string | undefined;
|
|
92
|
+
labels?: string[] | undefined;
|
|
93
|
+
duration?: string | undefined;
|
|
96
94
|
completedAt?: string | undefined;
|
|
95
|
+
dueDate?: string | undefined;
|
|
96
|
+
deadlineDate?: string | undefined;
|
|
97
97
|
}>, "many">;
|
|
98
98
|
totalCount: z.ZodNumber;
|
|
99
99
|
};
|
|
@@ -101,21 +101,18 @@ declare const addTasks: {
|
|
|
101
101
|
tasks: {
|
|
102
102
|
content: string;
|
|
103
103
|
description?: string | undefined;
|
|
104
|
-
|
|
105
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
104
|
+
parentId?: string | undefined;
|
|
106
105
|
projectId?: string | undefined;
|
|
107
106
|
sectionId?: string | undefined;
|
|
108
|
-
parentId?: string | undefined;
|
|
109
107
|
labels?: string[] | undefined;
|
|
110
108
|
duration?: string | undefined;
|
|
109
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
110
|
+
deadlineDate?: string | undefined;
|
|
111
111
|
dueString?: string | undefined;
|
|
112
112
|
responsibleUser?: string | undefined;
|
|
113
113
|
}[];
|
|
114
114
|
}, client: TodoistApi): Promise<{
|
|
115
|
-
|
|
116
|
-
type: "text";
|
|
117
|
-
text: string;
|
|
118
|
-
}[];
|
|
115
|
+
textContent: string;
|
|
119
116
|
structuredContent: {
|
|
120
117
|
tasks: {
|
|
121
118
|
id: string;
|
|
@@ -126,28 +123,17 @@ declare const addTasks: {
|
|
|
126
123
|
deadlineDate: string | undefined;
|
|
127
124
|
priority: number;
|
|
128
125
|
projectId: string;
|
|
129
|
-
sectionId: string |
|
|
130
|
-
parentId: string |
|
|
126
|
+
sectionId: string | undefined;
|
|
127
|
+
parentId: string | undefined;
|
|
131
128
|
labels: string[];
|
|
132
|
-
duration: string |
|
|
133
|
-
responsibleUid: string |
|
|
134
|
-
assignedByUid: string |
|
|
129
|
+
duration: string | undefined;
|
|
130
|
+
responsibleUid: string | undefined;
|
|
131
|
+
assignedByUid: string | undefined;
|
|
135
132
|
checked: boolean;
|
|
136
|
-
completedAt: string |
|
|
133
|
+
completedAt: string | undefined;
|
|
137
134
|
}[];
|
|
138
135
|
totalCount: number;
|
|
139
136
|
};
|
|
140
|
-
} | {
|
|
141
|
-
content: ({
|
|
142
|
-
type: "text";
|
|
143
|
-
text: string;
|
|
144
|
-
mimeType?: undefined;
|
|
145
|
-
} | {
|
|
146
|
-
type: "text";
|
|
147
|
-
mimeType: string;
|
|
148
|
-
text: string;
|
|
149
|
-
})[];
|
|
150
|
-
structuredContent?: undefined;
|
|
151
137
|
}>;
|
|
152
138
|
};
|
|
153
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"}
|
|
@@ -12,12 +12,12 @@ declare const completeTasks: {
|
|
|
12
12
|
error: z.ZodString;
|
|
13
13
|
code: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
item: string;
|
|
16
15
|
error: string;
|
|
16
|
+
item: string;
|
|
17
17
|
code?: string | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
item: string;
|
|
20
19
|
error: string;
|
|
20
|
+
item: string;
|
|
21
21
|
code?: string | undefined;
|
|
22
22
|
}>, "many">;
|
|
23
23
|
totalRequested: z.ZodNumber;
|
|
@@ -27,10 +27,7 @@ declare const completeTasks: {
|
|
|
27
27
|
execute(args: {
|
|
28
28
|
ids: string[];
|
|
29
29
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
30
|
-
|
|
31
|
-
type: "text";
|
|
32
|
-
text: string;
|
|
33
|
-
}[];
|
|
30
|
+
textContent: string;
|
|
34
31
|
structuredContent: {
|
|
35
32
|
completed: string[];
|
|
36
33
|
failures: {
|
|
@@ -42,17 +39,6 @@ declare const completeTasks: {
|
|
|
42
39
|
successCount: number;
|
|
43
40
|
failureCount: number;
|
|
44
41
|
};
|
|
45
|
-
} | {
|
|
46
|
-
content: ({
|
|
47
|
-
type: "text";
|
|
48
|
-
text: string;
|
|
49
|
-
mimeType?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
type: "text";
|
|
52
|
-
mimeType: string;
|
|
53
|
-
text: string;
|
|
54
|
-
})[];
|
|
55
|
-
structuredContent?: undefined;
|
|
56
42
|
}>;
|
|
57
43
|
};
|
|
58
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"}
|