@todoist/mcp 0.0.1 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +217 -29
- package/dist/filter-helpers.d.ts +53 -0
- package/dist/filter-helpers.d.ts.map +1 -0
- package/dist/http-app.d.ts +28 -0
- package/dist/http-app.d.ts.map +1 -0
- package/dist/index.d.ts +4347 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +61 -0
- package/dist/main-http.d.ts +3 -0
- package/dist/main-http.d.ts.map +1 -0
- package/dist/main-http.js +133 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +16 -0
- package/dist/mcp-apps/index.html +116 -0
- package/dist/mcp-helpers.d.ts +62 -0
- package/dist/mcp-helpers.d.ts.map +1 -0
- package/dist/mcp-server-y4HhlBJW.js +8152 -0
- package/dist/mcp-server.d.ts +16 -0
- package/dist/mcp-server.d.ts.map +1 -0
- package/dist/middleware/require-trusted-host.d.ts +44 -0
- package/dist/middleware/require-trusted-host.d.ts.map +1 -0
- package/dist/middleware/require-valid-todoist-token.d.ts +39 -0
- package/dist/middleware/require-valid-todoist-token.d.ts.map +1 -0
- package/dist/prompts/productivity-analysis.d.ts +58 -0
- package/dist/prompts/productivity-analysis.d.ts.map +1 -0
- package/dist/require-valid-todoist-token-I1jh7sbd.js +63 -0
- package/dist/todoist-tool.d.ts +15 -0
- package/dist/todoist-tool.d.ts.map +1 -0
- package/dist/tool-execution-error.d.ts +27 -0
- package/dist/tool-execution-error.d.ts.map +1 -0
- package/dist/tool-helpers.d.ts +318 -0
- package/dist/tool-helpers.d.ts.map +1 -0
- package/dist/tool-registry.d.ts +4307 -0
- package/dist/tool-registry.d.ts.map +1 -0
- package/dist/tools/add-comments.d.ts +104 -0
- package/dist/tools/add-comments.d.ts.map +1 -0
- package/dist/tools/add-filters.d.ts +113 -0
- package/dist/tools/add-filters.d.ts.map +1 -0
- package/dist/tools/add-labels.d.ts +107 -0
- package/dist/tools/add-labels.d.ts.map +1 -0
- package/dist/tools/add-projects.d.ts +134 -0
- package/dist/tools/add-projects.d.ts.map +1 -0
- package/dist/tools/add-reminders.d.ts +174 -0
- package/dist/tools/add-reminders.d.ts.map +1 -0
- package/dist/tools/add-sections.d.ts +61 -0
- package/dist/tools/add-sections.d.ts.map +1 -0
- package/dist/tools/add-tasks.d.ts +123 -0
- package/dist/tools/add-tasks.d.ts.map +1 -0
- package/dist/tools/analyze-project-health.d.ts +45 -0
- package/dist/tools/analyze-project-health.d.ts.map +1 -0
- package/dist/tools/complete-tasks.d.ts +42 -0
- package/dist/tools/complete-tasks.d.ts.map +1 -0
- package/dist/tools/delete-object.d.ts +54 -0
- package/dist/tools/delete-object.d.ts.map +1 -0
- package/dist/tools/export-project-template.d.ts +54 -0
- package/dist/tools/export-project-template.d.ts.map +1 -0
- package/dist/tools/fetch-object.d.ts +243 -0
- package/dist/tools/fetch-object.d.ts.map +1 -0
- package/dist/tools/fetch.d.ts +41 -0
- package/dist/tools/fetch.d.ts.map +1 -0
- package/dist/tools/find-activity.d.ts +98 -0
- package/dist/tools/find-activity.d.ts.map +1 -0
- package/dist/tools/find-comments.d.ts +91 -0
- package/dist/tools/find-comments.d.ts.map +1 -0
- package/dist/tools/find-completed-tasks.d.ts +119 -0
- package/dist/tools/find-completed-tasks.d.ts.map +1 -0
- package/dist/tools/find-filters.d.ts +95 -0
- package/dist/tools/find-filters.d.ts.map +1 -0
- package/dist/tools/find-labels.d.ts +81 -0
- package/dist/tools/find-labels.d.ts.map +1 -0
- package/dist/tools/find-project-collaborators.d.ts +94 -0
- package/dist/tools/find-project-collaborators.d.ts.map +1 -0
- package/dist/tools/find-projects.d.ts +98 -0
- package/dist/tools/find-projects.d.ts.map +1 -0
- package/dist/tools/find-reminders.d.ts +99 -0
- package/dist/tools/find-reminders.d.ts.map +1 -0
- package/dist/tools/find-sections.d.ts +45 -0
- package/dist/tools/find-sections.d.ts.map +1 -0
- package/dist/tools/find-tasks-by-date.d.ts +137 -0
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -0
- package/dist/tools/find-tasks.d.ts +120 -0
- package/dist/tools/find-tasks.d.ts.map +1 -0
- package/dist/tools/get-overview.d.ts +121 -0
- package/dist/tools/get-overview.d.ts.map +1 -0
- package/dist/tools/get-productivity-stats.d.ts +160 -0
- package/dist/tools/get-productivity-stats.d.ts.map +1 -0
- package/dist/tools/get-project-activity-stats.d.ts +48 -0
- package/dist/tools/get-project-activity-stats.d.ts.map +1 -0
- package/dist/tools/get-project-health.d.ts +104 -0
- package/dist/tools/get-project-health.d.ts.map +1 -0
- package/dist/tools/get-user-status.d.ts +35 -0
- package/dist/tools/get-user-status.d.ts.map +1 -0
- package/dist/tools/get-workspace-insights.d.ts +63 -0
- package/dist/tools/get-workspace-insights.d.ts.map +1 -0
- package/dist/tools/import-project-template.d.ts +148 -0
- package/dist/tools/import-project-template.d.ts.map +1 -0
- package/dist/tools/list-workspaces.d.ts +54 -0
- package/dist/tools/list-workspaces.d.ts.map +1 -0
- package/dist/tools/manage-assignments.d.ts +73 -0
- package/dist/tools/manage-assignments.d.ts.map +1 -0
- package/dist/tools/project-management.d.ts +82 -0
- package/dist/tools/project-management.d.ts.map +1 -0
- package/dist/tools/project-move.d.ts +92 -0
- package/dist/tools/project-move.d.ts.map +1 -0
- package/dist/tools/reorder-objects.d.ts +61 -0
- package/dist/tools/reorder-objects.d.ts.map +1 -0
- package/dist/tools/reschedule-tasks.d.ts +95 -0
- package/dist/tools/reschedule-tasks.d.ts.map +1 -0
- package/dist/tools/search.d.ts +43 -0
- package/dist/tools/search.d.ts.map +1 -0
- package/dist/tools/set-user-status.d.ts +51 -0
- package/dist/tools/set-user-status.d.ts.map +1 -0
- package/dist/tools/uncomplete-tasks.d.ts +42 -0
- package/dist/tools/uncomplete-tasks.d.ts.map +1 -0
- package/dist/tools/update-comments.d.ts +100 -0
- package/dist/tools/update-comments.d.ts.map +1 -0
- package/dist/tools/update-filters.d.ts +121 -0
- package/dist/tools/update-filters.d.ts.map +1 -0
- package/dist/tools/update-labels.d.ts +133 -0
- package/dist/tools/update-labels.d.ts.map +1 -0
- package/dist/tools/update-projects.d.ts +138 -0
- package/dist/tools/update-projects.d.ts.map +1 -0
- package/dist/tools/update-reminders.d.ts +176 -0
- package/dist/tools/update-reminders.d.ts.map +1 -0
- package/dist/tools/update-sections.d.ts +65 -0
- package/dist/tools/update-sections.d.ts.map +1 -0
- package/dist/tools/update-tasks.d.ts +135 -0
- package/dist/tools/update-tasks.d.ts.map +1 -0
- package/dist/tools/user-info.d.ts +57 -0
- package/dist/tools/user-info.d.ts.map +1 -0
- package/dist/tools/view-attachment.d.ts +25 -0
- package/dist/tools/view-attachment.d.ts.map +1 -0
- package/dist/usage-tracking.d.ts +36 -0
- package/dist/usage-tracking.d.ts.map +1 -0
- package/dist/utils/assignment-validator.d.ts +69 -0
- package/dist/utils/assignment-validator.d.ts.map +1 -0
- package/dist/utils/batch-failures.d.ts +25 -0
- package/dist/utils/batch-failures.d.ts.map +1 -0
- package/dist/utils/children.d.ts +68 -0
- package/dist/utils/children.d.ts.map +1 -0
- package/dist/utils/colors.d.ts +68 -0
- package/dist/utils/colors.d.ts.map +1 -0
- package/dist/utils/comment-recipients.d.ts +35 -0
- package/dist/utils/comment-recipients.d.ts.map +1 -0
- package/dist/utils/concurrency.d.ts +35 -0
- package/dist/utils/concurrency.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +93 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/date.d.ts +18 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/duration-parser.d.ts +39 -0
- package/dist/utils/duration-parser.d.ts.map +1 -0
- package/dist/utils/filter-description.d.ts +16 -0
- package/dist/utils/filter-description.d.ts.map +1 -0
- package/dist/utils/filter-resolver.d.ts +27 -0
- package/dist/utils/filter-resolver.d.ts.map +1 -0
- package/dist/utils/host.d.ts +6 -0
- package/dist/utils/host.d.ts.map +1 -0
- package/dist/utils/labels.d.ts +13 -0
- package/dist/utils/labels.d.ts.map +1 -0
- package/dist/utils/move-planner.d.ts +63 -0
- package/dist/utils/move-planner.d.ts.map +1 -0
- package/dist/utils/order-keys.d.ts +36 -0
- package/dist/utils/order-keys.d.ts.map +1 -0
- package/dist/utils/output-schemas.d.ts +209 -0
- package/dist/utils/output-schemas.d.ts.map +1 -0
- package/dist/utils/personal-project-limit.d.ts +31 -0
- package/dist/utils/personal-project-limit.d.ts.map +1 -0
- package/dist/utils/priorities.d.ts +14 -0
- package/dist/utils/priorities.d.ts.map +1 -0
- package/dist/utils/reminder-recipients.d.ts +21 -0
- package/dist/utils/reminder-recipients.d.ts.map +1 -0
- package/dist/utils/reminder-schemas.d.ts +41 -0
- package/dist/utils/reminder-schemas.d.ts.map +1 -0
- package/dist/utils/response-builders.d.ts +103 -0
- package/dist/utils/response-builders.d.ts.map +1 -0
- package/dist/utils/retry.d.ts +39 -0
- package/dist/utils/retry.d.ts.map +1 -0
- package/dist/utils/schema-helpers.d.ts +10 -0
- package/dist/utils/schema-helpers.d.ts.map +1 -0
- package/dist/utils/sync-commands.d.ts +21 -0
- package/dist/utils/sync-commands.d.ts.map +1 -0
- package/dist/utils/test-helpers.d.ts +118 -0
- package/dist/utils/test-helpers.d.ts.map +1 -0
- package/dist/utils/tool-names.d.ts +60 -0
- package/dist/utils/tool-names.d.ts.map +1 -0
- package/dist/utils/user-resolver.d.ts +92 -0
- package/dist/utils/user-resolver.d.ts.map +1 -0
- package/dist/utils/user-status.d.ts +32 -0
- package/dist/utils/user-status.d.ts.map +1 -0
- package/dist/utils/validate-todoist-token.d.ts +17 -0
- package/dist/utils/validate-todoist-token.d.ts.map +1 -0
- package/dist/utils/workspace-resolver.d.ts +31 -0
- package/dist/utils/workspace-resolver.d.ts.map +1 -0
- package/package.json +115 -8
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type OperationResult = {
|
|
3
|
+
taskId: string;
|
|
4
|
+
success: boolean;
|
|
5
|
+
error?: string;
|
|
6
|
+
originalAssigneeId?: string;
|
|
7
|
+
newAssigneeId?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const manageAssignments: {
|
|
10
|
+
name: "manage-assignments";
|
|
11
|
+
description: string;
|
|
12
|
+
parameters: {
|
|
13
|
+
operation: z.ZodEnum<{
|
|
14
|
+
assign: "assign";
|
|
15
|
+
unassign: "unassign";
|
|
16
|
+
reassign: "reassign";
|
|
17
|
+
}>;
|
|
18
|
+
taskIds: z.ZodArray<z.ZodString>;
|
|
19
|
+
responsibleUser: z.ZodOptional<z.ZodString>;
|
|
20
|
+
fromAssigneeUser: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
};
|
|
23
|
+
outputSchema: {
|
|
24
|
+
results: z.ZodArray<z.ZodObject<{
|
|
25
|
+
taskId: z.ZodString;
|
|
26
|
+
success: z.ZodBoolean;
|
|
27
|
+
error: z.ZodOptional<z.ZodString>;
|
|
28
|
+
originalAssigneeId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
newAssigneeId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
total: z.ZodNumber;
|
|
33
|
+
succeeded: z.ZodNumber;
|
|
34
|
+
failed: z.ZodNumber;
|
|
35
|
+
dryRun: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
};
|
|
38
|
+
annotations: {
|
|
39
|
+
readOnlyHint: false;
|
|
40
|
+
destructiveHint: true;
|
|
41
|
+
idempotentHint: false;
|
|
42
|
+
openWorldHint: true;
|
|
43
|
+
};
|
|
44
|
+
execute(args: {
|
|
45
|
+
operation: "assign" | "unassign" | "reassign";
|
|
46
|
+
taskIds: string[];
|
|
47
|
+
dryRun: boolean;
|
|
48
|
+
responsibleUser?: string | undefined;
|
|
49
|
+
fromAssigneeUser?: string | undefined;
|
|
50
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
51
|
+
textContent: string;
|
|
52
|
+
structuredContent: {
|
|
53
|
+
operation: "unassign";
|
|
54
|
+
results: OperationResult[];
|
|
55
|
+
totalRequested: number;
|
|
56
|
+
successful: number;
|
|
57
|
+
failed: number;
|
|
58
|
+
dryRun: boolean;
|
|
59
|
+
};
|
|
60
|
+
} | {
|
|
61
|
+
textContent: string;
|
|
62
|
+
structuredContent: {
|
|
63
|
+
operation: "assign" | "reassign";
|
|
64
|
+
results: OperationResult[];
|
|
65
|
+
totalRequested: number;
|
|
66
|
+
successful: number;
|
|
67
|
+
failed: number;
|
|
68
|
+
dryRun: boolean;
|
|
69
|
+
};
|
|
70
|
+
}>;
|
|
71
|
+
};
|
|
72
|
+
export { manageAssignments };
|
|
73
|
+
//# sourceMappingURL=manage-assignments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manage-assignments.d.ts","sourceRoot":"","sources":["../../src/tools/manage-assignments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA2CvB,MAAM,MAAM,eAAe,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AA+BD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0RwC,CAAA;AAuF/D,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const projectManagement: {
|
|
3
|
+
name: "project-management";
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
action: z.ZodEnum<{
|
|
7
|
+
archive: "archive";
|
|
8
|
+
unarchive: "unarchive";
|
|
9
|
+
}>;
|
|
10
|
+
projectId: z.ZodString;
|
|
11
|
+
};
|
|
12
|
+
outputSchema: {
|
|
13
|
+
project: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
description: z.ZodString;
|
|
17
|
+
color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
berry_red: "berry_red";
|
|
19
|
+
red: "red";
|
|
20
|
+
orange: "orange";
|
|
21
|
+
yellow: "yellow";
|
|
22
|
+
olive_green: "olive_green";
|
|
23
|
+
lime_green: "lime_green";
|
|
24
|
+
green: "green";
|
|
25
|
+
mint_green: "mint_green";
|
|
26
|
+
teal: "teal";
|
|
27
|
+
sky_blue: "sky_blue";
|
|
28
|
+
light_blue: "light_blue";
|
|
29
|
+
blue: "blue";
|
|
30
|
+
grape: "grape";
|
|
31
|
+
violet: "violet";
|
|
32
|
+
lavender: "lavender";
|
|
33
|
+
magenta: "magenta";
|
|
34
|
+
salmon: "salmon";
|
|
35
|
+
charcoal: "charcoal";
|
|
36
|
+
grey: "grey";
|
|
37
|
+
taupe: "taupe";
|
|
38
|
+
}>>>;
|
|
39
|
+
isFavorite: z.ZodBoolean;
|
|
40
|
+
isShared: z.ZodBoolean;
|
|
41
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
inboxProject: z.ZodBoolean;
|
|
43
|
+
viewStyle: z.ZodString;
|
|
44
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
45
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
childOrder: z.ZodNumber;
|
|
47
|
+
isArchived: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
success: z.ZodBoolean;
|
|
50
|
+
};
|
|
51
|
+
annotations: {
|
|
52
|
+
readOnlyHint: false;
|
|
53
|
+
destructiveHint: false;
|
|
54
|
+
idempotentHint: true;
|
|
55
|
+
};
|
|
56
|
+
execute(args: {
|
|
57
|
+
action: "archive" | "unarchive";
|
|
58
|
+
projectId: string;
|
|
59
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
60
|
+
textContent: string;
|
|
61
|
+
structuredContent: {
|
|
62
|
+
project: {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
description: string;
|
|
66
|
+
color: import('@doist/todoist-sdk').ColorKey;
|
|
67
|
+
isFavorite: boolean;
|
|
68
|
+
isShared: boolean;
|
|
69
|
+
parentId: string | undefined;
|
|
70
|
+
inboxProject: boolean;
|
|
71
|
+
viewStyle: string;
|
|
72
|
+
workspaceId: string | undefined;
|
|
73
|
+
folderId: string | undefined;
|
|
74
|
+
childOrder: number;
|
|
75
|
+
isArchived: boolean;
|
|
76
|
+
};
|
|
77
|
+
success: true;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
81
|
+
export { projectManagement };
|
|
82
|
+
//# sourceMappingURL=project-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-management.d.ts","sourceRoot":"","sources":["../../src/tools/project-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAoBvB,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCwC,CAAA;AAE/D,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const projectMove: {
|
|
3
|
+
name: "project-move";
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
action: z.ZodEnum<{
|
|
7
|
+
"move-to-workspace": "move-to-workspace";
|
|
8
|
+
"move-to-personal": "move-to-personal";
|
|
9
|
+
}>;
|
|
10
|
+
projectId: z.ZodString;
|
|
11
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
public: "public";
|
|
15
|
+
restricted: "restricted";
|
|
16
|
+
team: "team";
|
|
17
|
+
}>>;
|
|
18
|
+
};
|
|
19
|
+
outputSchema: {
|
|
20
|
+
project: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodString;
|
|
24
|
+
color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
berry_red: "berry_red";
|
|
26
|
+
red: "red";
|
|
27
|
+
orange: "orange";
|
|
28
|
+
yellow: "yellow";
|
|
29
|
+
olive_green: "olive_green";
|
|
30
|
+
lime_green: "lime_green";
|
|
31
|
+
green: "green";
|
|
32
|
+
mint_green: "mint_green";
|
|
33
|
+
teal: "teal";
|
|
34
|
+
sky_blue: "sky_blue";
|
|
35
|
+
light_blue: "light_blue";
|
|
36
|
+
blue: "blue";
|
|
37
|
+
grape: "grape";
|
|
38
|
+
violet: "violet";
|
|
39
|
+
lavender: "lavender";
|
|
40
|
+
magenta: "magenta";
|
|
41
|
+
salmon: "salmon";
|
|
42
|
+
charcoal: "charcoal";
|
|
43
|
+
grey: "grey";
|
|
44
|
+
taupe: "taupe";
|
|
45
|
+
}>>>;
|
|
46
|
+
isFavorite: z.ZodBoolean;
|
|
47
|
+
isShared: z.ZodBoolean;
|
|
48
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
49
|
+
inboxProject: z.ZodBoolean;
|
|
50
|
+
viewStyle: z.ZodString;
|
|
51
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
52
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
53
|
+
childOrder: z.ZodNumber;
|
|
54
|
+
isArchived: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
success: z.ZodBoolean;
|
|
57
|
+
};
|
|
58
|
+
annotations: {
|
|
59
|
+
readOnlyHint: false;
|
|
60
|
+
destructiveHint: true;
|
|
61
|
+
idempotentHint: true;
|
|
62
|
+
};
|
|
63
|
+
execute(args: {
|
|
64
|
+
action: "move-to-workspace" | "move-to-personal";
|
|
65
|
+
projectId: string;
|
|
66
|
+
workspaceId?: string | undefined;
|
|
67
|
+
folderId?: string | undefined;
|
|
68
|
+
visibility?: "public" | "restricted" | "team" | undefined;
|
|
69
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
70
|
+
textContent: string;
|
|
71
|
+
structuredContent: {
|
|
72
|
+
project: {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
description: string;
|
|
76
|
+
color: import('@doist/todoist-sdk').ColorKey;
|
|
77
|
+
isFavorite: boolean;
|
|
78
|
+
isShared: boolean;
|
|
79
|
+
parentId: string | undefined;
|
|
80
|
+
inboxProject: boolean;
|
|
81
|
+
viewStyle: string;
|
|
82
|
+
workspaceId: string | undefined;
|
|
83
|
+
folderId: string | undefined;
|
|
84
|
+
childOrder: number;
|
|
85
|
+
isArchived: boolean;
|
|
86
|
+
};
|
|
87
|
+
success: true;
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
export { projectMove };
|
|
92
|
+
//# sourceMappingURL=project-move.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-move.d.ts","sourceRoot":"","sources":["../../src/tools/project-move.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsCvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD8C,CAAA;AAE/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { TodoistApi } from '@doist/todoist-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
type Failure = {
|
|
4
|
+
item: string;
|
|
5
|
+
error: string;
|
|
6
|
+
};
|
|
7
|
+
declare const reorderObjects: {
|
|
8
|
+
name: "reorder-objects";
|
|
9
|
+
description: string;
|
|
10
|
+
parameters: {
|
|
11
|
+
type: z.ZodEnum<{
|
|
12
|
+
project: "project";
|
|
13
|
+
section: "section";
|
|
14
|
+
}>;
|
|
15
|
+
items: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
};
|
|
21
|
+
outputSchema: {
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
project: "project";
|
|
24
|
+
section: "section";
|
|
25
|
+
}>;
|
|
26
|
+
movedCount: z.ZodNumber;
|
|
27
|
+
reorderedCount: z.ZodNumber;
|
|
28
|
+
affectedIds: z.ZodArray<z.ZodString>;
|
|
29
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
30
|
+
item: z.ZodString;
|
|
31
|
+
error: z.ZodString;
|
|
32
|
+
code: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
success: z.ZodBoolean;
|
|
35
|
+
};
|
|
36
|
+
annotations: {
|
|
37
|
+
readOnlyHint: false;
|
|
38
|
+
destructiveHint: false;
|
|
39
|
+
idempotentHint: true;
|
|
40
|
+
};
|
|
41
|
+
execute(args: {
|
|
42
|
+
type: "project" | "section";
|
|
43
|
+
items: {
|
|
44
|
+
id: string;
|
|
45
|
+
order?: number | undefined;
|
|
46
|
+
parentId?: string | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
}, client: TodoistApi): Promise<{
|
|
49
|
+
textContent: string;
|
|
50
|
+
structuredContent: {
|
|
51
|
+
type: "project" | "section";
|
|
52
|
+
movedCount: number;
|
|
53
|
+
reorderedCount: number;
|
|
54
|
+
affectedIds: string[];
|
|
55
|
+
failures: Failure[];
|
|
56
|
+
success: boolean;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
};
|
|
60
|
+
export { reorderObjects };
|
|
61
|
+
//# sourceMappingURL=reorder-objects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-objects.d.ts","sourceRoot":"","sources":["../../src/tools/reorder-objects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiC,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEnF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA2DvB,KAAK,OAAO,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAM9C,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE2C,CAAA;AAiR/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Task } from '@doist/todoist-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const rescheduleTasks: {
|
|
4
|
+
name: "reschedule-tasks";
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
date: z.ZodString;
|
|
10
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
};
|
|
13
|
+
outputSchema: {
|
|
14
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
content: z.ZodString;
|
|
17
|
+
description: z.ZodString;
|
|
18
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
19
|
+
recurring: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
|
|
20
|
+
deadlineDate: z.ZodOptional<z.ZodString>;
|
|
21
|
+
priority: z.ZodEnum<{
|
|
22
|
+
p1: "p1";
|
|
23
|
+
p2: "p2";
|
|
24
|
+
p3: "p3";
|
|
25
|
+
p4: "p4";
|
|
26
|
+
}>;
|
|
27
|
+
projectId: z.ZodString;
|
|
28
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
32
|
+
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
33
|
+
isUncompletable: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
35
|
+
isDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
checked: z.ZodBoolean;
|
|
37
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
38
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
totalCount: z.ZodNumber;
|
|
41
|
+
rescheduledTaskIds: z.ZodArray<z.ZodString>;
|
|
42
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
43
|
+
item: z.ZodString;
|
|
44
|
+
error: z.ZodString;
|
|
45
|
+
code: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
};
|
|
48
|
+
annotations: {
|
|
49
|
+
readOnlyHint: false;
|
|
50
|
+
destructiveHint: true;
|
|
51
|
+
idempotentHint: false;
|
|
52
|
+
};
|
|
53
|
+
execute(args: {
|
|
54
|
+
tasks: {
|
|
55
|
+
id: string;
|
|
56
|
+
date: string;
|
|
57
|
+
duration?: string | undefined;
|
|
58
|
+
}[];
|
|
59
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
60
|
+
textContent: string;
|
|
61
|
+
structuredContent: {
|
|
62
|
+
tasks: {
|
|
63
|
+
id: string;
|
|
64
|
+
content: string;
|
|
65
|
+
description: string;
|
|
66
|
+
recurring: string | boolean;
|
|
67
|
+
priority: "p1" | "p2" | "p3" | "p4";
|
|
68
|
+
projectId: string;
|
|
69
|
+
checked: boolean;
|
|
70
|
+
dueDate?: string | undefined;
|
|
71
|
+
deadlineDate?: string | undefined;
|
|
72
|
+
sectionId?: string | undefined;
|
|
73
|
+
parentId?: string | undefined;
|
|
74
|
+
labels?: string[] | undefined;
|
|
75
|
+
duration?: string | undefined;
|
|
76
|
+
responsibleUid?: string | undefined;
|
|
77
|
+
isUncompletable?: boolean | undefined;
|
|
78
|
+
assignedByUid?: string | undefined;
|
|
79
|
+
isDeleted?: boolean | undefined;
|
|
80
|
+
completedAt?: string | undefined;
|
|
81
|
+
addedAt?: string | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
totalCount: number;
|
|
84
|
+
rescheduledTaskIds: string[];
|
|
85
|
+
failures: {
|
|
86
|
+
item: string;
|
|
87
|
+
error: string;
|
|
88
|
+
code?: string | undefined;
|
|
89
|
+
}[];
|
|
90
|
+
};
|
|
91
|
+
}>;
|
|
92
|
+
};
|
|
93
|
+
declare function buildRescheduleDate(inputDate: string, existingDue: NonNullable<Task['due']>): string;
|
|
94
|
+
export { buildRescheduleDate, rescheduleTasks };
|
|
95
|
+
//# sourceMappingURL=reschedule-tasks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reschedule-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/reschedule-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,IAAI,EAAkB,MAAM,oBAAoB,CAAA;AAE3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyCvB,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+G0C,CAAA;AA4B/D,iBAAS,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,MAAM,CAU7F;AAED,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
type SearchResult = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
url: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* OpenAI MCP search tool - returns a list of relevant search results from Todoist.
|
|
9
|
+
*
|
|
10
|
+
* This tool follows the OpenAI MCP search tool specification:
|
|
11
|
+
* @see https://platform.openai.com/docs/mcp#search-tool
|
|
12
|
+
*/
|
|
13
|
+
declare const search: {
|
|
14
|
+
name: "search";
|
|
15
|
+
description: string;
|
|
16
|
+
parameters: {
|
|
17
|
+
query: z.ZodString;
|
|
18
|
+
};
|
|
19
|
+
outputSchema: {
|
|
20
|
+
results: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
url: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
totalCount: z.ZodNumber;
|
|
26
|
+
};
|
|
27
|
+
annotations: {
|
|
28
|
+
readOnlyHint: true;
|
|
29
|
+
destructiveHint: false;
|
|
30
|
+
idempotentHint: true;
|
|
31
|
+
};
|
|
32
|
+
execute(args: {
|
|
33
|
+
query: string;
|
|
34
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
35
|
+
textContent: string;
|
|
36
|
+
structuredContent: {
|
|
37
|
+
results: SearchResult[];
|
|
38
|
+
totalCount: number;
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
export { search };
|
|
43
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,KAAK,YAAY,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACd,CAAA;AAeD;;;;;GAKG;AACH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDmD,CAAA;AAE/D,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const setUserStatus: {
|
|
3
|
+
name: "set-user-status";
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
message: z.ZodOptional<z.ZodString>;
|
|
7
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
8
|
+
activeUntil: z.ZodOptional<z.ZodString>;
|
|
9
|
+
pauseNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
pauseActivity: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
clear: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
};
|
|
13
|
+
outputSchema: {
|
|
14
|
+
hasStatus: z.ZodBoolean;
|
|
15
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
message: z.ZodString;
|
|
17
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
18
|
+
activeUntil: z.ZodOptional<z.ZodString>;
|
|
19
|
+
pauseNotifications: z.ZodBoolean;
|
|
20
|
+
pauseActivity: z.ZodBoolean;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
};
|
|
23
|
+
annotations: {
|
|
24
|
+
readOnlyHint: false;
|
|
25
|
+
destructiveHint: true;
|
|
26
|
+
idempotentHint: true;
|
|
27
|
+
openWorldHint: true;
|
|
28
|
+
};
|
|
29
|
+
execute(args: {
|
|
30
|
+
message?: string | undefined;
|
|
31
|
+
emoji?: string | undefined;
|
|
32
|
+
activeUntil?: string | undefined;
|
|
33
|
+
pauseNotifications?: boolean | undefined;
|
|
34
|
+
pauseActivity?: boolean | undefined;
|
|
35
|
+
clear?: boolean | undefined;
|
|
36
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
37
|
+
textContent: string;
|
|
38
|
+
structuredContent: {
|
|
39
|
+
hasStatus: boolean;
|
|
40
|
+
status?: {
|
|
41
|
+
message: string;
|
|
42
|
+
pauseNotifications: boolean;
|
|
43
|
+
pauseActivity: boolean;
|
|
44
|
+
emoji?: string | undefined;
|
|
45
|
+
activeUntil?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
export { setUserStatus };
|
|
51
|
+
//# sourceMappingURL=set-user-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-user-status.d.ts","sourceRoot":"","sources":["../../src/tools/set-user-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkKvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDsD,CAAA;AAEzE,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const uncompleteTasks: {
|
|
3
|
+
name: "uncomplete-tasks";
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
ids: z.ZodArray<z.ZodString>;
|
|
7
|
+
};
|
|
8
|
+
outputSchema: {
|
|
9
|
+
uncompleted: z.ZodArray<z.ZodString>;
|
|
10
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
11
|
+
item: z.ZodString;
|
|
12
|
+
error: z.ZodString;
|
|
13
|
+
code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
totalRequested: z.ZodNumber;
|
|
16
|
+
successCount: z.ZodNumber;
|
|
17
|
+
failureCount: z.ZodNumber;
|
|
18
|
+
};
|
|
19
|
+
annotations: {
|
|
20
|
+
readOnlyHint: false;
|
|
21
|
+
destructiveHint: false;
|
|
22
|
+
idempotentHint: false;
|
|
23
|
+
};
|
|
24
|
+
execute(args: {
|
|
25
|
+
ids: string[];
|
|
26
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
27
|
+
textContent: string;
|
|
28
|
+
structuredContent: {
|
|
29
|
+
uncompleted: string[];
|
|
30
|
+
failures: {
|
|
31
|
+
item: string;
|
|
32
|
+
error: string;
|
|
33
|
+
code?: string;
|
|
34
|
+
}[];
|
|
35
|
+
totalRequested: number;
|
|
36
|
+
successCount: number;
|
|
37
|
+
failureCount: number;
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
40
|
+
};
|
|
41
|
+
export { uncompleteTasks };
|
|
42
|
+
//# sourceMappingURL=uncomplete-tasks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uncomplete-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/uncomplete-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAoBvB,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAQiB,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;CAoCX,CAAA;AAqB/D,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const updateComments: {
|
|
3
|
+
name: "update-comments";
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
content: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
};
|
|
11
|
+
outputSchema: {
|
|
12
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
content: z.ZodString;
|
|
17
|
+
postedAt: z.ZodString;
|
|
18
|
+
postedUid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
notifiedUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
fileAttachment: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
resourceType: z.ZodString;
|
|
22
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
23
|
+
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
fileType: z.ZodOptional<z.ZodString>;
|
|
25
|
+
fileUrl: z.ZodOptional<z.ZodString>;
|
|
26
|
+
fileDuration: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
uploadState: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
pending: "pending";
|
|
29
|
+
completed: "completed";
|
|
30
|
+
}>>;
|
|
31
|
+
url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
title: z.ZodOptional<z.ZodString>;
|
|
33
|
+
image: z.ZodOptional<z.ZodString>;
|
|
34
|
+
imageWidth: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
imageHeight: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
totalCount: z.ZodNumber;
|
|
39
|
+
updatedCommentIds: z.ZodArray<z.ZodString>;
|
|
40
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
41
|
+
item: z.ZodString;
|
|
42
|
+
error: z.ZodString;
|
|
43
|
+
code: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
appliedOperations: z.ZodObject<{
|
|
46
|
+
updateCount: z.ZodNumber;
|
|
47
|
+
failureCount: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
};
|
|
50
|
+
annotations: {
|
|
51
|
+
readOnlyHint: false;
|
|
52
|
+
destructiveHint: true;
|
|
53
|
+
idempotentHint: false;
|
|
54
|
+
};
|
|
55
|
+
execute(args: {
|
|
56
|
+
comments: {
|
|
57
|
+
id: string;
|
|
58
|
+
content: string;
|
|
59
|
+
}[];
|
|
60
|
+
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
61
|
+
textContent: string;
|
|
62
|
+
structuredContent: {
|
|
63
|
+
comments: {
|
|
64
|
+
id: string;
|
|
65
|
+
taskId: string | undefined;
|
|
66
|
+
projectId: string | undefined;
|
|
67
|
+
content: string;
|
|
68
|
+
postedAt: string;
|
|
69
|
+
postedUid: string;
|
|
70
|
+
notifiedUserIds: string[] | undefined;
|
|
71
|
+
fileAttachment: {
|
|
72
|
+
resourceType: string;
|
|
73
|
+
fileName: string | undefined;
|
|
74
|
+
fileSize: number | undefined;
|
|
75
|
+
fileType: string | undefined;
|
|
76
|
+
fileUrl: string | undefined;
|
|
77
|
+
fileDuration: number | undefined;
|
|
78
|
+
uploadState: "pending" | "completed" | undefined;
|
|
79
|
+
url: string | undefined;
|
|
80
|
+
title: string | undefined;
|
|
81
|
+
image: string | undefined;
|
|
82
|
+
imageWidth: number | undefined;
|
|
83
|
+
imageHeight: number | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
totalCount: number;
|
|
87
|
+
updatedCommentIds: string[];
|
|
88
|
+
failures: {
|
|
89
|
+
item: string;
|
|
90
|
+
error: string;
|
|
91
|
+
}[];
|
|
92
|
+
appliedOperations: {
|
|
93
|
+
updateCount: number;
|
|
94
|
+
failureCount: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
};
|
|
99
|
+
export { updateComments };
|
|
100
|
+
//# sourceMappingURL=update-comments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-comments.d.ts","sourceRoot":"","sources":["../../src/tools/update-comments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkCvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAoBkB,MAAM;uBAAS,MAAM;;;;;;;;CAkCI,CAAA;AAqB/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
|