@todoist/mcp 17.4.1 → 18.0.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.
Files changed (50) hide show
  1. package/README.md +11 -8
  2. package/dist/index.d.ts +615 -14
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +55 -52
  5. package/dist/main-http.js +2 -2
  6. package/dist/main.js +1 -1
  7. package/dist/mcp-apps/index.html +1 -1
  8. package/dist/{mcp-server-C7dCGLGm.js → mcp-server-CAqylT3d.js} +3054 -2328
  9. package/dist/mcp-server.d.ts +1 -1
  10. package/dist/mcp-server.d.ts.map +1 -1
  11. package/dist/{require-valid-todoist-token-DSS0GICs.js → require-valid-todoist-token-FTt0ckSw.js} +1 -1
  12. package/dist/tool-execution-error.d.ts +10 -0
  13. package/dist/tool-execution-error.d.ts.map +1 -1
  14. package/dist/tool-registry.d.ts +609 -11
  15. package/dist/tool-registry.d.ts.map +1 -1
  16. package/dist/tools/add-projects.d.ts +6 -2
  17. package/dist/tools/add-projects.d.ts.map +1 -1
  18. package/dist/tools/add-template.d.ts +252 -0
  19. package/dist/tools/add-template.d.ts.map +1 -0
  20. package/dist/tools/delete-object.d.ts +4 -4
  21. package/dist/tools/{export-project-template.d.ts → export-project.d.ts} +4 -4
  22. package/dist/tools/export-project.d.ts.map +1 -0
  23. package/dist/tools/fetch-object.d.ts +108 -1
  24. package/dist/tools/fetch-object.d.ts.map +1 -1
  25. package/dist/tools/find-templates.d.ts +56 -0
  26. package/dist/tools/find-templates.d.ts.map +1 -0
  27. package/dist/tools/{import-project-template.d.ts → import-into-project.d.ts} +4 -13
  28. package/dist/tools/import-into-project.d.ts.map +1 -0
  29. package/dist/tools/reschedule-tasks.d.ts.map +1 -1
  30. package/dist/tools/update-template.d.ts +190 -0
  31. package/dist/tools/update-template.d.ts.map +1 -0
  32. package/dist/utils/colors.d.ts +26 -0
  33. package/dist/utils/colors.d.ts.map +1 -1
  34. package/dist/utils/constants.d.ts +16 -0
  35. package/dist/utils/constants.d.ts.map +1 -1
  36. package/dist/utils/date.d.ts +5 -0
  37. package/dist/utils/date.d.ts.map +1 -1
  38. package/dist/utils/output-schemas.d.ts +9 -1
  39. package/dist/utils/output-schemas.d.ts.map +1 -1
  40. package/dist/utils/template-content.d.ts +97 -0
  41. package/dist/utils/template-content.d.ts.map +1 -0
  42. package/dist/utils/template-ids.d.ts +21 -0
  43. package/dist/utils/template-ids.d.ts.map +1 -0
  44. package/dist/utils/test-helpers.d.ts +5 -1
  45. package/dist/utils/test-helpers.d.ts.map +1 -1
  46. package/dist/utils/tool-names.d.ts +5 -2
  47. package/dist/utils/tool-names.d.ts.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/tools/export-project-template.d.ts.map +0 -1
  50. package/dist/tools/import-project-template.d.ts.map +0 -1
@@ -0,0 +1,190 @@
1
+ import { TodoistApi } from '@todoist/sdk';
2
+ import { z } from 'zod';
3
+ declare const updateTemplate: {
4
+ name: "update-template";
5
+ description: string;
6
+ parameters: {
7
+ templateId: z.ZodString;
8
+ name: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ color: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
11
+ berry_red: "berry_red";
12
+ red: "red";
13
+ orange: "orange";
14
+ yellow: "yellow";
15
+ olive_green: "olive_green";
16
+ lime_green: "lime_green";
17
+ green: "green";
18
+ mint_green: "mint_green";
19
+ teal: "teal";
20
+ sky_blue: "sky_blue";
21
+ light_blue: "light_blue";
22
+ blue: "blue";
23
+ grape: "grape";
24
+ violet: "violet";
25
+ lavender: "lavender";
26
+ magenta: "magenta";
27
+ salmon: "salmon";
28
+ charcoal: "charcoal";
29
+ grey: "grey";
30
+ taupe: "taupe";
31
+ }>>, unknown>;
32
+ projectId: z.ZodOptional<z.ZodString>;
33
+ content: z.ZodOptional<z.ZodObject<{
34
+ projects: z.ZodArray<z.ZodObject<{
35
+ viewStyle: z.ZodEnum<{
36
+ list: "list";
37
+ calendar: "calendar";
38
+ board: "board";
39
+ table: "table";
40
+ }>;
41
+ description: z.ZodOptional<z.ZodString>;
42
+ icon: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>>;
44
+ sections: z.ZodArray<z.ZodObject<{
45
+ id: z.ZodString;
46
+ name: z.ZodString;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strip>>;
49
+ tasks: z.ZodArray<z.ZodObject<{
50
+ id: z.ZodString;
51
+ content: z.ZodString;
52
+ description: z.ZodOptional<z.ZodString>;
53
+ sectionId: z.ZodOptional<z.ZodString>;
54
+ parentId: z.ZodOptional<z.ZodString>;
55
+ priority: z.ZodOptional<z.ZodEnum<{
56
+ p1: "p1";
57
+ p2: "p2";
58
+ p3: "p3";
59
+ p4: "p4";
60
+ }>>;
61
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
+ due: z.ZodOptional<z.ZodObject<{
63
+ date: z.ZodOptional<z.ZodString>;
64
+ string: z.ZodOptional<z.ZodString>;
65
+ lang: z.ZodOptional<z.ZodString>;
66
+ isRecurring: z.ZodOptional<z.ZodBoolean>;
67
+ timezone: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>>;
69
+ deadline: z.ZodOptional<z.ZodObject<{
70
+ date: z.ZodOptional<z.ZodString>;
71
+ string: z.ZodOptional<z.ZodString>;
72
+ lang: z.ZodOptional<z.ZodString>;
73
+ isRecurring: z.ZodOptional<z.ZodBoolean>;
74
+ timezone: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>>;
76
+ duration: z.ZodOptional<z.ZodObject<{
77
+ amount: z.ZodNumber;
78
+ unit: z.ZodEnum<{
79
+ day: "day";
80
+ minute: "minute";
81
+ }>;
82
+ }, z.core.$strip>>;
83
+ responsibleUid: z.ZodOptional<z.ZodString>;
84
+ assignedByUid: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ comments: z.ZodArray<z.ZodObject<{
87
+ content: z.ZodString;
88
+ postedUid: z.ZodOptional<z.ZodString>;
89
+ postedAt: z.ZodOptional<z.ZodString>;
90
+ fileAttachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
91
+ taskId: z.ZodString;
92
+ }, z.core.$strip>>;
93
+ projectComments: z.ZodArray<z.ZodObject<{
94
+ content: z.ZodString;
95
+ postedUid: z.ZodOptional<z.ZodString>;
96
+ postedAt: z.ZodOptional<z.ZodString>;
97
+ fileAttachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
+ }, z.core.$strip>>;
99
+ projectViewOptionsDefaults: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
100
+ }, z.core.$strip>>;
101
+ workspace: z.ZodOptional<z.ZodString>;
102
+ sharedWithWorkspaceMembers: z.ZodOptional<z.ZodBoolean>;
103
+ };
104
+ outputSchema: {
105
+ templateId: z.ZodString;
106
+ name: z.ZodString;
107
+ workspaceId: z.ZodOptional<z.ZodString>;
108
+ sharedWithWorkspaceMembers: z.ZodBoolean;
109
+ };
110
+ annotations: {
111
+ readOnlyHint: false;
112
+ destructiveHint: true;
113
+ idempotentHint: true;
114
+ openWorldHint: true;
115
+ };
116
+ execute({ templateId, name, description, color, projectId, content, workspace, sharedWithWorkspaceMembers, }: {
117
+ templateId: string;
118
+ name?: string | undefined;
119
+ description?: string | undefined;
120
+ color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
121
+ projectId?: string | undefined;
122
+ content?: {
123
+ projects: {
124
+ viewStyle: "list" | "calendar" | "board" | "table";
125
+ description?: string | undefined;
126
+ icon?: string | undefined;
127
+ }[];
128
+ sections: {
129
+ id: string;
130
+ name: string;
131
+ description?: string | undefined;
132
+ }[];
133
+ tasks: {
134
+ id: string;
135
+ content: string;
136
+ description?: string | undefined;
137
+ sectionId?: string | undefined;
138
+ parentId?: string | undefined;
139
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
140
+ labels?: string[] | undefined;
141
+ due?: {
142
+ date?: string | undefined;
143
+ string?: string | undefined;
144
+ lang?: string | undefined;
145
+ isRecurring?: boolean | undefined;
146
+ timezone?: string | undefined;
147
+ } | undefined;
148
+ deadline?: {
149
+ date?: string | undefined;
150
+ string?: string | undefined;
151
+ lang?: string | undefined;
152
+ isRecurring?: boolean | undefined;
153
+ timezone?: string | undefined;
154
+ } | undefined;
155
+ duration?: {
156
+ amount: number;
157
+ unit: "day" | "minute";
158
+ } | undefined;
159
+ responsibleUid?: string | undefined;
160
+ assignedByUid?: string | undefined;
161
+ }[];
162
+ comments: {
163
+ content: string;
164
+ taskId: string;
165
+ postedUid?: string | undefined;
166
+ postedAt?: string | undefined;
167
+ fileAttachment?: Record<string, unknown> | undefined;
168
+ }[];
169
+ projectComments: {
170
+ content: string;
171
+ postedUid?: string | undefined;
172
+ postedAt?: string | undefined;
173
+ fileAttachment?: Record<string, unknown> | undefined;
174
+ }[];
175
+ projectViewOptionsDefaults: Record<string, unknown>[];
176
+ } | undefined;
177
+ workspace?: string | undefined;
178
+ sharedWithWorkspaceMembers?: boolean | undefined;
179
+ }, client: TodoistApi): Promise<{
180
+ textContent: string;
181
+ structuredContent: {
182
+ templateId: string;
183
+ name: string;
184
+ workspaceId: string | undefined;
185
+ sharedWithWorkspaceMembers: boolean;
186
+ };
187
+ }>;
188
+ };
189
+ export { updateTemplate };
190
+ //# sourceMappingURL=update-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-template.d.ts","sourceRoot":"","sources":["../../src/tools/update-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,UAAU,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwDvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiH2C,CAAA;AAqB/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -21,6 +21,32 @@ export declare const ColorSchema: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
21
21
  grey: "grey";
22
22
  taupe: "taupe";
23
23
  }>>, unknown>;
24
+ /**
25
+ * ColorSchema with a different default: keeps the list of valid colors and swaps the last
26
+ * sentence, since `.describe()` replaces the whole description.
27
+ */
28
+ export declare function colorSchemaWithDefault(defaultText: string): z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
29
+ berry_red: "berry_red";
30
+ red: "red";
31
+ orange: "orange";
32
+ yellow: "yellow";
33
+ olive_green: "olive_green";
34
+ lime_green: "lime_green";
35
+ green: "green";
36
+ mint_green: "mint_green";
37
+ teal: "teal";
38
+ sky_blue: "sky_blue";
39
+ light_blue: "light_blue";
40
+ blue: "blue";
41
+ grape: "grape";
42
+ violet: "violet";
43
+ lavender: "lavender";
44
+ magenta: "magenta";
45
+ salmon: "salmon";
46
+ charcoal: "charcoal";
47
+ grey: "grey";
48
+ taupe: "taupe";
49
+ }>>, unknown>;
24
50
  export declare const ColorKeySchema: z.ZodEnum<{
25
51
  berry_red: "berry_red";
26
52
  red: "red";
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/utils/colors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmBvB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;aAEO,CAAA;AAG/B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAA;AAQ/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;IAAgD,CAAA"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/utils/colors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqBvB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;aAEO,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;cAEzD;AAGD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAA;AAQ/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;IAAgD,CAAA"}
@@ -23,6 +23,10 @@ export declare const ApiLimits: {
23
23
  readonly PROJECTS_DEFAULT: 50;
24
24
  /** Maximum limit for project listings */
25
25
  readonly PROJECTS_MAX: 200;
26
+ /** Default limit for template listings */
27
+ readonly TEMPLATES_DEFAULT: 20;
28
+ /** Maximum limit for template listings */
29
+ readonly TEMPLATES_MAX: 50;
26
30
  /** Maximum limit for section listings */
27
31
  readonly SECTIONS_MAX: 200;
28
32
  /** Page size for reading a workspace's folders */
@@ -83,6 +87,18 @@ export declare const BatchLimits: {
83
87
  /** Maximum labels set on one task by one call */
84
88
  readonly LABELS_PER_TASK: 50;
85
89
  };
90
+ export declare const TemplateContentLimits: {
91
+ /** A template creates one project; the backend rejects more. */
92
+ readonly PROJECTS: 1;
93
+ /** The API takes at most one set of calendar settings. */
94
+ readonly PROJECT_VIEW_OPTIONS: 1;
95
+ /**
96
+ * Maximum sections, tasks or comments in one template's content. The API sets no
97
+ * limit; this one is far above real templates (the gallery's Weekly Review has 26
98
+ * tasks) and still bounds what one call can write.
99
+ */
100
+ readonly ITEMS: 500;
101
+ };
86
102
  export declare const ConcurrencyLimits: {
87
103
  /**
88
104
  * In-flight task-move requests per account, per process.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,gCAAgC;AAChC,eAAO,MAAM,WAAW,QAAiB,CAAA;AACzC,2CAA2C;AAC3C,eAAO,MAAM,WAAW,QAAyB,CAAA;AAGjD,eAAO,MAAM,SAAS;IAClB,sCAAsC;;IAEtC,wDAAwD;;IAExD,uFAAuF;;IAEvF,wCAAwC;;IAExC,wCAAwC;;IAExC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,kDAAkD;;IAElD,qDAAqD;;IAErD,iGAAiG;;IAEjG,yCAAyC;;IAEzC,2DAA2D;;IAE3D,0DAA0D;;IAE1D,8CAA8C;;IAE9C,gEAAgE;;IAEhE,uCAAuC;;IAEvC,uCAAuC;;IAEvC,0CAA0C;;IAE1C,mDAAmD;;IAEnD,wFAAwF;;CAElF,CAAA;AAGV,eAAO,MAAM,aAAa;IACtB,oEAAoE;;IAEpE,gDAAgD;;CAE1C,CAAA;AAGV,eAAO,MAAM,SAAS;IAClB,2DAA2D;;CAErD,CAAA;AAGV,eAAO,MAAM,WAAW;IACpB,0DAA0D;;IAE1D;;;OAGG;;IAEH,6FAA6F;;IAE7F;;;;;;OAMG;;IAEH,iDAAiD;;CAE3C,CAAA;AAYV,eAAO,MAAM,iBAAiB;IAC1B;;;;;;;;;OASG;;IAEH,kEAAkE;;IAElE;;;;;;;OAOG;;CAEG,CAAA;AAGV,eAAO,MAAM,cAAc;IACvB,oDAAoD;;IAEpD,mCAAmC;;CAE7B,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,gCAAgC;AAChC,eAAO,MAAM,WAAW,QAAiB,CAAA;AACzC,2CAA2C;AAC3C,eAAO,MAAM,WAAW,QAAyB,CAAA;AAGjD,eAAO,MAAM,SAAS;IAClB,sCAAsC;;IAEtC,wDAAwD;;IAExD,uFAAuF;;IAEvF,wCAAwC;;IAExC,wCAAwC;;IAExC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,0CAA0C;;IAE1C,0CAA0C;;IAE1C,yCAAyC;;IAEzC,kDAAkD;;IAElD,qDAAqD;;IAErD,iGAAiG;;IAEjG,yCAAyC;;IAEzC,2DAA2D;;IAE3D,0DAA0D;;IAE1D,8CAA8C;;IAE9C,gEAAgE;;IAEhE,uCAAuC;;IAEvC,uCAAuC;;IAEvC,0CAA0C;;IAE1C,mDAAmD;;IAEnD,wFAAwF;;CAElF,CAAA;AAGV,eAAO,MAAM,aAAa;IACtB,oEAAoE;;IAEpE,gDAAgD;;CAE1C,CAAA;AAGV,eAAO,MAAM,SAAS;IAClB,2DAA2D;;CAErD,CAAA;AAGV,eAAO,MAAM,WAAW;IACpB,0DAA0D;;IAE1D;;;OAGG;;IAEH,6FAA6F;;IAE7F;;;;;;OAMG;;IAEH,iDAAiD;;CAE3C,CAAA;AAGV,eAAO,MAAM,qBAAqB;IAC9B,gEAAgE;;IAEhE,0DAA0D;;IAE1D;;;;OAIG;;CAEG,CAAA;AAYV,eAAO,MAAM,iBAAiB;IAC1B;;;;;;;;;OASG;;IAEH,kEAAkE;;IAElE;;;;;;;OAOG;;CAEG,CAAA;AAGV,eAAO,MAAM,cAAc;IACvB,oDAAoD;;IAEpD,mCAAmC;;CAE7B,CAAA"}
@@ -26,6 +26,11 @@ export declare function describeDateRange(startDate: string, daysCount: number):
26
26
  * Tomorrow", or "Today and the next N days".
27
27
  */
28
28
  export declare function describeDaysFromToday(daysCount: number): string;
29
+ /**
30
+ * Minutes east of UTC that `timeZone` observes at `instant`, or undefined when the
31
+ * runtime does not know the zone.
32
+ */
33
+ export declare function getZoneOffsetMinutes(instant: number, timeZone: string): number | undefined;
29
34
  /**
30
35
  * The first moment of a YYYY-MM-DD date in `timeZone`, as `YYYY-MM-DDT00:00:00` with the
31
36
  * offset that names it. A fixed offset such as the user's current `gmtString` is wrong
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI9E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAI/D;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,cAAc,GACjB,EAAE;IACC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,cAAc,EAAE,MAAM,CAAA;CACzB,GAAG,MAAM,CAmBT"}
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI9E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAI/D;AAaD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAW1F;AAID;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,cAAc,GACjB,EAAE;IACC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,cAAc,EAAE,MAAM,CAAA;CACzB,GAAG,MAAM,CAmBT"}
@@ -218,5 +218,13 @@ declare const FailureSchema: z.ZodObject<{
218
218
  code: z.ZodOptional<z.ZodString>;
219
219
  retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
220
220
  }, z.core.$strip>;
221
- export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, FolderSchema, type FolderSummary, LabelSchema, ProjectSchema, ReminderSchema, SectionSchema, type SectionSummary, TaskSchema, toFolderSummary, toSectionSummary, };
221
+ /** Where a template comes from, for the tools that return templates. */
222
+ declare const TemplateOriginFields: {
223
+ source: z.ZodEnum<{
224
+ user: "user";
225
+ todoist: "todoist";
226
+ }>;
227
+ workspaceId: z.ZodOptional<z.ZodString>;
228
+ };
229
+ export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, FolderSchema, type FolderSummary, LabelSchema, ProjectSchema, ReminderSchema, SectionSchema, type SectionSummary, TaskSchema, toFolderSummary, TemplateOriginFields, toSectionSummary, };
222
230
  //# sourceMappingURL=output-schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.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A,MAAM,kBAAkB;;;;iBAItB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMf,CAAA;AAaF;;GAEG;AACH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;iBAalB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;iBAKjB,CAAA;AAEF,wEAAwE;AACxE,QAAA,MAAM,oBAAoB;;;;;;CAKzB,CAAA;AAED,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,KAAK,aAAa,EAClB,WAAW,EACX,aAAa,EACb,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,gBAAgB,GACnB,CAAA"}
@@ -0,0 +1,97 @@
1
+ import { TemplateContent } from '@todoist/sdk';
2
+ import { z } from 'zod';
3
+ /**
4
+ * A template's full content, as fetch-object returns it and update-template takes it back.
5
+ * IDs are references within the content only.
6
+ */
7
+ declare const TemplateContentSchema: z.ZodObject<{
8
+ projects: z.ZodArray<z.ZodObject<{
9
+ viewStyle: z.ZodEnum<{
10
+ list: "list";
11
+ calendar: "calendar";
12
+ board: "board";
13
+ table: "table";
14
+ }>;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ icon: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>>;
18
+ sections: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ name: z.ZodString;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$strip>>;
23
+ tasks: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodString;
25
+ content: z.ZodString;
26
+ description: z.ZodOptional<z.ZodString>;
27
+ sectionId: z.ZodOptional<z.ZodString>;
28
+ parentId: z.ZodOptional<z.ZodString>;
29
+ priority: z.ZodOptional<z.ZodEnum<{
30
+ p1: "p1";
31
+ p2: "p2";
32
+ p3: "p3";
33
+ p4: "p4";
34
+ }>>;
35
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ due: z.ZodOptional<z.ZodObject<{
37
+ date: z.ZodOptional<z.ZodString>;
38
+ string: z.ZodOptional<z.ZodString>;
39
+ lang: z.ZodOptional<z.ZodString>;
40
+ isRecurring: z.ZodOptional<z.ZodBoolean>;
41
+ timezone: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ deadline: z.ZodOptional<z.ZodObject<{
44
+ date: z.ZodOptional<z.ZodString>;
45
+ string: z.ZodOptional<z.ZodString>;
46
+ lang: z.ZodOptional<z.ZodString>;
47
+ isRecurring: z.ZodOptional<z.ZodBoolean>;
48
+ timezone: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strip>>;
50
+ duration: z.ZodOptional<z.ZodObject<{
51
+ amount: z.ZodNumber;
52
+ unit: z.ZodEnum<{
53
+ day: "day";
54
+ minute: "minute";
55
+ }>;
56
+ }, z.core.$strip>>;
57
+ responsibleUid: z.ZodOptional<z.ZodString>;
58
+ assignedByUid: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>>;
60
+ comments: z.ZodArray<z.ZodObject<{
61
+ content: z.ZodString;
62
+ postedUid: z.ZodOptional<z.ZodString>;
63
+ postedAt: z.ZodOptional<z.ZodString>;
64
+ fileAttachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
65
+ taskId: z.ZodString;
66
+ }, z.core.$strip>>;
67
+ projectComments: z.ZodArray<z.ZodObject<{
68
+ content: z.ZodString;
69
+ postedUid: z.ZodOptional<z.ZodString>;
70
+ postedAt: z.ZodOptional<z.ZodString>;
71
+ fileAttachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
72
+ }, z.core.$strip>>;
73
+ projectViewOptionsDefaults: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
74
+ }, z.core.$strip>;
75
+ type ToolTemplateContent = z.infer<typeof TemplateContentSchema>;
76
+ /** Turns the SDK's template content into the tools' shape: "p1"–"p4" priorities, no nulls. */
77
+ declare function toToolTemplateContent(content: TemplateContent): ToolTemplateContent;
78
+ /** Turns the tools' template content back into the SDK's shape. */
79
+ declare function toSdkTemplateContent(content: ToolTemplateContent): TemplateContent;
80
+ /**
81
+ * One line comparing two contents, e.g. "layout list → board, sections 0 → 1, tasks 1 → 2,
82
+ * assigned tasks 0 → 0, comments 0 → 0".
83
+ */
84
+ declare function describeContentChange(before: TemplateContent, after: TemplateContent): string;
85
+ /**
86
+ * What the backend didn't keep of the content sent, e.g. "assigned tasks sent 2, saved 1",
87
+ * or undefined when it kept everything. It drops assignees who are not workspace members,
88
+ * which an addition in the same edit would hide in {@link describeContentChange}.
89
+ */
90
+ declare function describeDroppedContent(sent: TemplateContent, saved: TemplateContent): string | undefined;
91
+ /**
92
+ * A short text outline of template content for a tool's reply: layout, counts and the first
93
+ * tasks, with their section, nesting and due date.
94
+ */
95
+ declare function outlineTemplateContent(content: ToolTemplateContent): string;
96
+ export { describeContentChange, describeDroppedContent, outlineTemplateContent, TemplateContentSchema, toSdkTemplateContent, toToolTemplateContent, type ToolTemplateContent, };
97
+ //# sourceMappingURL=template-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-content.d.ts","sourceRoot":"","sources":["../../src/utils/template-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,eAAe,EAEvB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqBvB;;;GAGG;AACH,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0CzB,CAAA;AAEF,KAAK,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEhE,8FAA8F;AAC9F,iBAAS,qBAAqB,CAAC,OAAO,EAAE,eAAe,GAAG,mBAAmB,CAkC5E;AAwBD,mEAAmE;AACnE,iBAAS,oBAAoB,CAAC,OAAO,EAAE,mBAAmB,GAAG,eAAe,CAQ3E;AAYD;;;GAGG;AACH,iBAAS,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,GAAG,MAAM,CAStF;AAED;;;;GAIG;AACH,iBAAS,sBAAsB,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CAOjG;AAID;;;GAGG;AACH,iBAAS,sBAAsB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAoBpE;AAED,OAAO,EACH,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,mBAAmB,GAC3B,CAAA"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The forms `extractTemplateId` reads: a bare gallery slug or template ID, or
3
+ * an https URL on todoist.com or one of its subdomains, in any letter case.
4
+ * Stated in the schema so a client can see that the parameter cannot name any
5
+ * other host. Every `-` in a character class is escaped so the pattern also
6
+ * compiles with the `v` flag that HTML's `pattern` attribute uses.
7
+ */
8
+ declare const TEMPLATE_ID_PATTERN: RegExp;
9
+ /** What a rejected template ID is told, instead of the pattern. */
10
+ declare const TEMPLATE_ID_ERROR = "Pass a template slug (\"product-launch\"), a template ID (\"UT_...\"), or an https URL on todoist.com or one of its subdomains.";
11
+ /**
12
+ * Accepts a bare template ID or a Todoist template URL. Both gallery links
13
+ * (`/templates/product-launch`) and in-app links
14
+ * (`/app/templates/category/my-templates/UT_28Ex.../view`) reduce to the last
15
+ * path segment once a trailing `/view` is dropped. Non-Todoist hosts are
16
+ * rejected rather than reduced, so a look-alike link cannot quietly resolve to
17
+ * a real gallery slug.
18
+ */
19
+ declare function extractTemplateId(input: string): string;
20
+ export { extractTemplateId, TEMPLATE_ID_ERROR, TEMPLATE_ID_PATTERN };
21
+ //# sourceMappingURL=template-ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-ids.d.ts","sourceRoot":"","sources":["../../src/utils/template-ids.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,QAExB,CAAA;AAED,mEAAmE;AACnE,QAAA,MAAM,iBAAiB,oIAC0G,CAAA;AAEjI;;;;;;;GAOG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA+BhD;AAOD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { CurrentUser, CustomFetchResponse, Filter, Folder, Label, PersonalProject, Section, SyncCommand, Task, TodoistApi, Workspace, WorkspaceProject, WorkspaceProjectSummary } from '@todoist/sdk';
1
+ import { CurrentUser, CustomFetchResponse, Filter, Folder, Label, PersonalProject, Section, SyncCommand, Task, Template, TodoistApi, Workspace, WorkspaceProject, WorkspaceProjectSummary } from '@todoist/sdk';
2
2
  import { Mocked } from 'vitest';
3
3
  import { z } from 'zod';
4
4
  import { MappedTask } from '../tool-helpers';
@@ -44,6 +44,10 @@ export declare function toFetchResponse(payload: unknown): CustomFetchResponse;
44
44
  * Creates a mock workspace Folder with all required properties and sensible defaults.
45
45
  */
46
46
  export declare function createMockFolder(overrides?: Partial<Folder>): Folder;
47
+ /**
48
+ * A saved personal template, as the SDK returns it.
49
+ */
50
+ export declare function createMockTemplate(overrides?: Partial<Template>): Template;
47
51
  /**
48
52
  * Creates a mock Workspace with all required properties and sensible defaults.
49
53
  */
@@ -1 +1 @@
1
- {"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,WAAW,EACX,mBAAmB,EACnB,MAAM,EACN,MAAM,EACN,KAAK,EACL,eAAe,EACf,OAAO,EACP,WAAW,EAGX,IAAI,EACJ,UAAU,EACV,S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";
54
54
  readonly ADD_FILTERS: "add-filters";
55
55
  readonly UPDATE_FILTERS: "update-filters";
56
- readonly EXPORT_PROJECT_TEMPLATE: "export-project-template";
57
- readonly IMPORT_PROJECT_TEMPLATE: "import-project-template";
56
+ readonly EXPORT_PROJECT: "export-project";
57
+ readonly IMPORT_INTO_PROJECT: "import-into-project";
58
+ readonly ADD_TEMPLATE: "add-template";
59
+ readonly FIND_TEMPLATES: "find-templates";
60
+ readonly UPDATE_TEMPLATE: "update-template";
58
61
  readonly LIST_WORKSPACES: "list-workspaces";
59
62
  readonly SEARCH: "search";
60
63
  readonly FETCH: "fetch";
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../../src/utils/tool-names.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFZ,CAAA;AAGV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
1
+ {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../../src/utils/tool-names.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFZ,CAAA;AAGV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoist/mcp",
3
- "version": "17.4.1",
3
+ "version": "18.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"export-project-template.d.ts","sourceRoot":"","sources":["../../src/tools/export-project-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA4CvB,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCoC,CAAA;AAc/D,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-project-template.d.ts","sourceRoot":"","sources":["../../src/tools/import-project-template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAWvB;;;;;;;GAOG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA+BhD;AAiED,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CoC,CAAA;AAsB/D,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAA"}