@doist/todoist-ai 4.16.1 → 4.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/filter-helpers.d.ts +1 -1
  2. package/dist/filter-helpers.d.ts.map +1 -1
  3. package/dist/index.d.ts +990 -411
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +2 -2
  6. package/dist/main.js +1 -1
  7. package/dist/mcp-helpers.d.ts +2 -38
  8. package/dist/mcp-helpers.d.ts.map +1 -1
  9. package/dist/mcp-server-BMGcSL1c.js +3058 -0
  10. package/dist/todoist-tool.d.ts +12 -2
  11. package/dist/todoist-tool.d.ts.map +1 -1
  12. package/dist/tool-helpers.d.ts +20 -18
  13. package/dist/tool-helpers.d.ts.map +1 -1
  14. package/dist/tools/add-comments.d.ts +69 -17
  15. package/dist/tools/add-comments.d.ts.map +1 -1
  16. package/dist/tools/add-projects.d.ts +36 -17
  17. package/dist/tools/add-projects.d.ts.map +1 -1
  18. package/dist/tools/add-sections.d.ts +14 -15
  19. package/dist/tools/add-sections.d.ts.map +1 -1
  20. package/dist/tools/add-tasks.d.ts +71 -30
  21. package/dist/tools/add-tasks.d.ts.map +1 -1
  22. package/dist/tools/complete-tasks.d.ts +20 -15
  23. package/dist/tools/complete-tasks.d.ts.map +1 -1
  24. package/dist/tools/delete-object.d.ts +15 -16
  25. package/dist/tools/delete-object.d.ts.map +1 -1
  26. package/dist/tools/fetch.d.ts +10 -8
  27. package/dist/tools/fetch.d.ts.map +1 -1
  28. package/dist/tools/find-activity.d.ts +46 -23
  29. package/dist/tools/find-activity.d.ts.map +1 -1
  30. package/dist/tools/find-comments.d.ts +69 -17
  31. package/dist/tools/find-comments.d.ts.map +1 -1
  32. package/dist/tools/find-completed-tasks.d.ts +70 -26
  33. package/dist/tools/find-completed-tasks.d.ts.map +1 -1
  34. package/dist/tools/find-project-collaborators.d.ts +51 -20
  35. package/dist/tools/find-project-collaborators.d.ts.map +1 -1
  36. package/dist/tools/find-projects.d.ts +37 -17
  37. package/dist/tools/find-projects.d.ts.map +1 -1
  38. package/dist/tools/find-sections.d.ts +15 -15
  39. package/dist/tools/find-sections.d.ts.map +1 -1
  40. package/dist/tools/find-tasks-by-date.d.ts +68 -24
  41. package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
  42. package/dist/tools/find-tasks.d.ts +70 -26
  43. package/dist/tools/find-tasks.d.ts.map +1 -1
  44. package/dist/tools/get-overview.d.ts +31 -15
  45. package/dist/tools/get-overview.d.ts.map +1 -1
  46. package/dist/tools/manage-assignments.d.ts +41 -18
  47. package/dist/tools/manage-assignments.d.ts.map +1 -1
  48. package/dist/tools/search.d.ts +27 -7
  49. package/dist/tools/search.d.ts.map +1 -1
  50. package/dist/tools/update-comments.d.ts +74 -15
  51. package/dist/tools/update-comments.d.ts.map +1 -1
  52. package/dist/tools/update-projects.d.ts +47 -17
  53. package/dist/tools/update-projects.d.ts.map +1 -1
  54. package/dist/tools/update-sections.d.ts +15 -15
  55. package/dist/tools/update-sections.d.ts.map +1 -1
  56. package/dist/tools/update-tasks.d.ts +82 -30
  57. package/dist/tools/update-tasks.d.ts.map +1 -1
  58. package/dist/tools/user-info.d.ts +19 -15
  59. package/dist/tools/user-info.d.ts.map +1 -1
  60. package/dist/utils/output-schemas.d.ts +233 -0
  61. package/dist/utils/output-schemas.d.ts.map +1 -0
  62. package/dist/utils/test-helpers.d.ts +1 -33
  63. package/dist/utils/test-helpers.d.ts.map +1 -1
  64. package/package.json +13 -13
  65. package/dist/mcp-server-6tm7Rhyz.js +0 -2840
@@ -1,11 +1,4 @@
1
1
  import { z } from 'zod';
2
- type FetchToolOutput = {
3
- content: {
4
- type: 'text';
5
- text: string;
6
- }[];
7
- isError?: boolean;
8
- };
9
2
  /**
10
3
  * OpenAI MCP fetch tool - retrieves the full contents of a task or project by ID.
11
4
  *
@@ -18,9 +11,18 @@ declare const fetch: {
18
11
  parameters: {
19
12
  id: z.ZodString;
20
13
  };
14
+ outputSchema: {
15
+ id: z.ZodString;
16
+ title: z.ZodString;
17
+ text: z.ZodString;
18
+ url: z.ZodString;
19
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20
+ };
21
21
  execute(args: {
22
22
  id: string;
23
- }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<FetchToolOutput>;
23
+ }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
24
+ textContent: string;
25
+ }>;
24
26
  };
25
27
  export { fetch };
26
28
  //# sourceMappingURL=fetch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/tools/fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuBvB,KAAK,eAAe,GAAG;IACnB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,KAAK;;;;;;;;oEAKsB,OAAO,CAAC,eAAe,CAAC;CAwFf,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/tools/fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8BvB;;;;;GAKG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;CAuFoD,CAAA;AAE/D,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -12,39 +12,73 @@ declare const findActivity: {
12
12
  limit: z.ZodDefault<z.ZodNumber>;
13
13
  cursor: z.ZodOptional<z.ZodString>;
14
14
  };
15
+ outputSchema: {
16
+ events: z.ZodArray<z.ZodObject<{
17
+ id: z.ZodOptional<z.ZodString>;
18
+ objectType: z.ZodString;
19
+ objectId: z.ZodString;
20
+ eventType: z.ZodString;
21
+ eventDate: z.ZodString;
22
+ parentProjectId: z.ZodOptional<z.ZodString>;
23
+ parentItemId: z.ZodOptional<z.ZodString>;
24
+ initiatorId: z.ZodOptional<z.ZodString>;
25
+ extraData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ objectType: string;
28
+ objectId: string;
29
+ eventType: string;
30
+ eventDate: string;
31
+ id?: string | undefined;
32
+ parentProjectId?: string | undefined;
33
+ parentItemId?: string | undefined;
34
+ initiatorId?: string | undefined;
35
+ extraData?: Record<string, unknown> | undefined;
36
+ }, {
37
+ objectType: string;
38
+ objectId: string;
39
+ eventType: string;
40
+ eventDate: string;
41
+ id?: string | undefined;
42
+ parentProjectId?: string | undefined;
43
+ parentItemId?: string | undefined;
44
+ initiatorId?: string | undefined;
45
+ extraData?: Record<string, unknown> | undefined;
46
+ }>, "many">;
47
+ nextCursor: z.ZodOptional<z.ZodString>;
48
+ totalCount: z.ZodNumber;
49
+ hasMore: z.ZodBoolean;
50
+ appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
51
+ };
15
52
  execute(args: {
16
53
  limit: number;
17
- taskId?: string | undefined;
18
54
  projectId?: string | undefined;
55
+ taskId?: string | undefined;
19
56
  objectType?: "comment" | "task" | "project" | undefined;
20
57
  objectId?: string | undefined;
21
58
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
22
59
  initiatorId?: string | undefined;
23
60
  cursor?: string | undefined;
24
61
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
25
- content: {
26
- type: "text";
27
- text: string;
28
- }[];
62
+ textContent: string;
29
63
  structuredContent: {
30
64
  events: {
31
- id: string | null;
65
+ id: string | undefined;
32
66
  objectType: string;
33
67
  objectId: string;
34
68
  eventType: string;
35
69
  eventDate: string;
36
- parentProjectId: string | null;
37
- parentItemId: string | null;
38
- initiatorId: string | null;
39
- extraData: Record<string, any> | null;
70
+ parentProjectId: string | undefined;
71
+ parentItemId: string | undefined;
72
+ initiatorId: string | undefined;
73
+ extraData: Record<string, any> | undefined;
40
74
  }[];
41
- nextCursor: string | null;
75
+ nextCursor: string | undefined;
42
76
  totalCount: number;
43
77
  hasMore: boolean;
44
78
  appliedFilters: {
45
79
  limit: number;
46
- taskId?: string | undefined;
47
80
  projectId?: string | undefined;
81
+ taskId?: string | undefined;
48
82
  objectType?: "comment" | "task" | "project" | undefined;
49
83
  objectId?: string | undefined;
50
84
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
@@ -52,17 +86,6 @@ declare const findActivity: {
52
86
  cursor?: string | undefined;
53
87
  };
54
88
  };
55
- } | {
56
- content: ({
57
- type: "text";
58
- text: string;
59
- mimeType?: undefined;
60
- } | {
61
- type: "text";
62
- mimeType: string;
63
- text: string;
64
- })[];
65
- structuredContent?: undefined;
66
89
  }>;
67
90
  };
68
91
  export { findActivity };
@@ -1 +1 @@
1
- {"version":3,"file":"find-activity.d.ts","sourceRoot":"","sources":["../../src/tools/find-activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsDvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CwB,CAAA;AAuI1C,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"find-activity.d.ts","sourceRoot":"","sources":["../../src/tools/find-activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8DvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC6C,CAAA;AAuI/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -9,17 +9,80 @@ declare const findComments: {
9
9
  cursor: z.ZodOptional<z.ZodString>;
10
10
  limit: z.ZodOptional<z.ZodNumber>;
11
11
  };
12
+ outputSchema: {
13
+ comments: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodString;
15
+ taskId: z.ZodOptional<z.ZodString>;
16
+ projectId: z.ZodOptional<z.ZodString>;
17
+ content: z.ZodString;
18
+ postedAt: z.ZodString;
19
+ attachment: z.ZodOptional<z.ZodObject<{
20
+ resourceType: z.ZodString;
21
+ fileName: z.ZodOptional<z.ZodString>;
22
+ fileSize: z.ZodOptional<z.ZodNumber>;
23
+ fileType: z.ZodOptional<z.ZodString>;
24
+ fileUrl: z.ZodOptional<z.ZodString>;
25
+ fileDuration: z.ZodOptional<z.ZodNumber>;
26
+ uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ resourceType: string;
29
+ fileName?: string | undefined;
30
+ fileSize?: number | undefined;
31
+ fileType?: string | undefined;
32
+ fileUrl?: string | undefined;
33
+ fileDuration?: number | undefined;
34
+ uploadState?: "pending" | "completed" | undefined;
35
+ }, {
36
+ resourceType: string;
37
+ fileName?: string | undefined;
38
+ fileSize?: number | undefined;
39
+ fileType?: string | undefined;
40
+ fileUrl?: string | undefined;
41
+ fileDuration?: number | undefined;
42
+ uploadState?: "pending" | "completed" | undefined;
43
+ }>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ content: string;
46
+ id: string;
47
+ postedAt: string;
48
+ projectId?: string | undefined;
49
+ taskId?: string | undefined;
50
+ attachment?: {
51
+ resourceType: string;
52
+ fileName?: string | undefined;
53
+ fileSize?: number | undefined;
54
+ fileType?: string | undefined;
55
+ fileUrl?: string | undefined;
56
+ fileDuration?: number | undefined;
57
+ uploadState?: "pending" | "completed" | undefined;
58
+ } | undefined;
59
+ }, {
60
+ content: string;
61
+ id: string;
62
+ postedAt: string;
63
+ projectId?: string | undefined;
64
+ taskId?: string | undefined;
65
+ attachment?: {
66
+ resourceType: string;
67
+ fileName?: string | undefined;
68
+ fileSize?: number | undefined;
69
+ fileType?: string | undefined;
70
+ fileUrl?: string | undefined;
71
+ fileDuration?: number | undefined;
72
+ uploadState?: "pending" | "completed" | undefined;
73
+ } | undefined;
74
+ }>, "many">;
75
+ nextCursor: z.ZodOptional<z.ZodString>;
76
+ totalCount: z.ZodNumber;
77
+ };
12
78
  execute(args: {
13
- taskId?: string | undefined;
14
79
  projectId?: string | undefined;
80
+ taskId?: string | undefined;
15
81
  limit?: number | undefined;
16
82
  cursor?: string | undefined;
17
83
  commentId?: string | undefined;
18
84
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
19
- content: {
20
- type: "text";
21
- text: string;
22
- }[];
85
+ textContent: string;
23
86
  structuredContent: {
24
87
  comments: {
25
88
  taskId: string | undefined;
@@ -49,20 +112,9 @@ declare const findComments: {
49
112
  searchType: string;
50
113
  searchId: string;
51
114
  hasMore: boolean;
52
- nextCursor: string | null;
115
+ nextCursor: string | undefined;
53
116
  totalCount: number;
54
117
  };
55
- } | {
56
- content: ({
57
- type: "text";
58
- text: string;
59
- mimeType?: undefined;
60
- } | {
61
- type: "text";
62
- mimeType: string;
63
- text: string;
64
- })[];
65
- structuredContent?: undefined;
66
118
  }>;
67
119
  };
68
120
  export { findComments };
@@ -1 +1 @@
1
- {"version":3,"file":"find-comments.d.ts","sourceRoot":"","sources":["../../src/tools/find-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0BvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA8Hg9R,CAAC;4BAA6C,CAAC;4BAA6C,CAAC;2BAA4C,CAAC;gCAAiD,CAAC;+BAAgD,CAAC;yBAA2D,CAAC;8BAA+C,CAAC;+BAAgD,CAAC;uBAAwC,CAAC;yBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CApDt5S,CAAA;AAmD1C,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"find-comments.d.ts","sourceRoot":"","sources":["../../src/tools/find-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA+HgmR,CAAC;4BAA6C,CAAC;4BAA6C,CAAC;2BAA4C,CAAC;gCAAiD,CAAC;+BAAgD,CAAC;yBAA2D,CAAC;8BAA+C,CAAC;+BAAgD,CAAC;uBAAwC,CAAC;yBAA0C,CAAC;;;;;;;;;;;;;;;CApDjhS,CAAA;AAmD/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -16,24 +16,79 @@ declare const findCompletedTasks: {
16
16
  limit: z.ZodDefault<z.ZodNumber>;
17
17
  cursor: z.ZodOptional<z.ZodString>;
18
18
  };
19
+ outputSchema: {
20
+ tasks: z.ZodArray<z.ZodObject<{
21
+ id: z.ZodString;
22
+ content: z.ZodString;
23
+ description: z.ZodString;
24
+ dueDate: z.ZodOptional<z.ZodString>;
25
+ recurring: z.ZodUnion<[z.ZodBoolean, z.ZodString]>;
26
+ deadlineDate: z.ZodOptional<z.ZodString>;
27
+ priority: z.ZodNumber;
28
+ projectId: z.ZodString;
29
+ sectionId: z.ZodOptional<z.ZodString>;
30
+ parentId: z.ZodOptional<z.ZodString>;
31
+ labels: z.ZodArray<z.ZodString, "many">;
32
+ duration: z.ZodOptional<z.ZodString>;
33
+ responsibleUid: z.ZodOptional<z.ZodString>;
34
+ assignedByUid: z.ZodOptional<z.ZodString>;
35
+ checked: z.ZodBoolean;
36
+ completedAt: z.ZodOptional<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ content: string;
39
+ description: string;
40
+ id: string;
41
+ recurring: string | boolean;
42
+ priority: number;
43
+ projectId: string;
44
+ labels: string[];
45
+ checked: boolean;
46
+ dueDate?: string | undefined;
47
+ deadlineDate?: string | undefined;
48
+ sectionId?: string | undefined;
49
+ parentId?: string | undefined;
50
+ duration?: string | undefined;
51
+ responsibleUid?: string | undefined;
52
+ assignedByUid?: string | undefined;
53
+ completedAt?: string | undefined;
54
+ }, {
55
+ content: string;
56
+ description: string;
57
+ id: string;
58
+ recurring: string | boolean;
59
+ priority: number;
60
+ projectId: string;
61
+ labels: string[];
62
+ checked: boolean;
63
+ dueDate?: string | undefined;
64
+ deadlineDate?: string | undefined;
65
+ sectionId?: string | undefined;
66
+ parentId?: string | undefined;
67
+ duration?: string | undefined;
68
+ responsibleUid?: string | undefined;
69
+ assignedByUid?: string | undefined;
70
+ completedAt?: string | undefined;
71
+ }>, "many">;
72
+ nextCursor: z.ZodOptional<z.ZodString>;
73
+ totalCount: z.ZodNumber;
74
+ hasMore: z.ZodBoolean;
75
+ appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
76
+ };
19
77
  execute(args: {
20
78
  limit: number;
21
79
  getBy: "due" | "completion";
22
80
  since: string;
23
81
  until: string;
24
82
  projectId?: string | undefined;
25
- parentId?: string | undefined;
26
- workspaceId?: string | undefined;
27
83
  sectionId?: string | undefined;
84
+ parentId?: string | undefined;
28
85
  labels?: string[] | undefined;
86
+ workspaceId?: string | undefined;
29
87
  cursor?: string | undefined;
30
88
  responsibleUser?: string | undefined;
31
89
  labelsOperator?: "and" | "or" | undefined;
32
90
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
33
- content: {
34
- type: "text";
35
- text: string;
36
- }[];
91
+ textContent: string;
37
92
  structuredContent: {
38
93
  tasks: {
39
94
  id: string;
@@ -44,16 +99,16 @@ declare const findCompletedTasks: {
44
99
  deadlineDate: string | undefined;
45
100
  priority: number;
46
101
  projectId: string;
47
- sectionId: string | null;
48
- parentId: string | null;
102
+ sectionId: string | undefined;
103
+ parentId: string | undefined;
49
104
  labels: string[];
50
- duration: string | null;
51
- responsibleUid: string | null;
52
- assignedByUid: string | null;
105
+ duration: string | undefined;
106
+ responsibleUid: string | undefined;
107
+ assignedByUid: string | undefined;
53
108
  checked: boolean;
54
- completedAt: string | null;
109
+ completedAt: string | undefined;
55
110
  }[];
56
- nextCursor: string | null;
111
+ nextCursor: string | undefined;
57
112
  totalCount: number;
58
113
  hasMore: boolean;
59
114
  appliedFilters: {
@@ -62,26 +117,15 @@ declare const findCompletedTasks: {
62
117
  since: string;
63
118
  until: string;
64
119
  projectId?: string | undefined;
65
- parentId?: string | undefined;
66
- workspaceId?: string | undefined;
67
120
  sectionId?: string | undefined;
121
+ parentId?: string | undefined;
68
122
  labels?: string[] | undefined;
123
+ workspaceId?: string | undefined;
69
124
  cursor?: string | undefined;
70
125
  responsibleUser?: string | undefined;
71
126
  labelsOperator?: "and" | "or" | undefined;
72
127
  };
73
128
  };
74
- } | {
75
- content: ({
76
- type: "text";
77
- text: string;
78
- mimeType?: undefined;
79
- } | {
80
- type: "text";
81
- mimeType: string;
82
- text: string;
83
- })[];
84
- structuredContent?: undefined;
85
129
  }>;
86
130
  };
87
131
  export { findCompletedTasks };
@@ -1 +1 @@
1
- {"version":3,"file":"find-completed-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/find-completed-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6DvB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEkB,CAAA;AA+D1C,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
1
+ {"version":3,"file":"find-completed-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/find-completed-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqEvB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EuC,CAAA;AA+D/D,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -7,49 +7,80 @@ declare const findProjectCollaborators: {
7
7
  projectId: z.ZodString;
8
8
  searchTerm: z.ZodOptional<z.ZodString>;
9
9
  };
10
+ outputSchema: {
11
+ collaborators: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ name: z.ZodString;
14
+ email: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: string;
17
+ id: string;
18
+ email: string;
19
+ }, {
20
+ name: string;
21
+ id: string;
22
+ email: string;
23
+ }>, "many">;
24
+ projectInfo: z.ZodOptional<z.ZodObject<{
25
+ id: z.ZodString;
26
+ name: z.ZodString;
27
+ isShared: z.ZodBoolean;
28
+ }, "strip", z.ZodTypeAny, {
29
+ name: string;
30
+ id: string;
31
+ isShared: boolean;
32
+ }, {
33
+ name: string;
34
+ id: string;
35
+ isShared: boolean;
36
+ }>>;
37
+ totalCount: z.ZodNumber;
38
+ totalAvailable: z.ZodOptional<z.ZodNumber>;
39
+ appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
40
+ };
10
41
  execute(args: {
11
42
  projectId: string;
12
43
  searchTerm?: string | undefined;
13
44
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
14
- content: {
15
- type: "text";
16
- text: string;
17
- }[];
45
+ textContent: string;
18
46
  structuredContent: {
19
47
  collaborators: never[];
20
48
  projectInfo: {
21
49
  id: string;
22
50
  name: string;
23
- isShared: boolean;
51
+ isShared: false;
24
52
  };
25
53
  totalCount: number;
26
54
  appliedFilters: {
27
55
  projectId: string;
28
56
  searchTerm?: string | undefined;
29
57
  };
58
+ totalAvailable?: undefined;
30
59
  };
31
60
  } | {
32
- content: ({
33
- type: "text";
34
- text: string;
35
- mimeType?: undefined;
36
- } | {
37
- type: "text";
38
- mimeType: string;
39
- text: string;
40
- })[];
41
- structuredContent?: undefined;
61
+ textContent: string;
62
+ structuredContent: {
63
+ collaborators: never[];
64
+ projectInfo: {
65
+ id: string;
66
+ name: string;
67
+ isShared: true;
68
+ };
69
+ totalCount: number;
70
+ appliedFilters: {
71
+ projectId: string;
72
+ searchTerm?: string | undefined;
73
+ };
74
+ totalAvailable?: undefined;
75
+ };
42
76
  } | {
43
- content: {
44
- type: "text";
45
- text: string;
46
- }[];
77
+ textContent: string;
47
78
  structuredContent: {
48
79
  collaborators: ProjectCollaborator[];
49
80
  projectInfo: {
50
81
  id: string;
51
82
  name: string;
52
- isShared: boolean;
83
+ isShared: true;
53
84
  };
54
85
  totalCount: number;
55
86
  totalAvailable: number;
@@ -1 +1 @@
1
- {"version":3,"file":"find-project-collaborators.d.ts","sourceRoot":"","sources":["../../src/tools/find-project-collaborators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,2BAA2B,CAAA;AAclF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FY,CAAA;AAwE1C,OAAO,EAAE,wBAAwB,EAAE,CAAA"}
1
+ {"version":3,"file":"find-project-collaborators.d.ts","sourceRoot":"","sources":["../../src/tools/find-project-collaborators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,2BAA2B,CAAA;AAgClF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FiC,CAAA;AAwE/D,OAAO,EAAE,wBAAwB,EAAE,CAAA"}
@@ -7,15 +7,46 @@ declare const findProjects: {
7
7
  limit: z.ZodDefault<z.ZodNumber>;
8
8
  cursor: z.ZodOptional<z.ZodString>;
9
9
  };
10
+ outputSchema: {
11
+ projects: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ name: z.ZodString;
14
+ color: z.ZodString;
15
+ isFavorite: z.ZodBoolean;
16
+ isShared: z.ZodBoolean;
17
+ parentId: z.ZodOptional<z.ZodString>;
18
+ inboxProject: z.ZodBoolean;
19
+ viewStyle: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ name: string;
22
+ id: string;
23
+ color: string;
24
+ isFavorite: boolean;
25
+ isShared: boolean;
26
+ inboxProject: boolean;
27
+ viewStyle: string;
28
+ parentId?: string | undefined;
29
+ }, {
30
+ name: string;
31
+ id: string;
32
+ color: string;
33
+ isFavorite: boolean;
34
+ isShared: boolean;
35
+ inboxProject: boolean;
36
+ viewStyle: string;
37
+ parentId?: string | undefined;
38
+ }>, "many">;
39
+ nextCursor: z.ZodOptional<z.ZodString>;
40
+ totalCount: z.ZodNumber;
41
+ hasMore: z.ZodBoolean;
42
+ appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
43
+ };
10
44
  execute(args: {
11
45
  limit: number;
12
46
  search?: string | undefined;
13
47
  cursor?: string | undefined;
14
48
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
15
- content: {
16
- type: "text";
17
- text: string;
18
- }[];
49
+ textContent: string;
19
50
  structuredContent: {
20
51
  projects: {
21
52
  id: string;
@@ -23,11 +54,11 @@ declare const findProjects: {
23
54
  color: string;
24
55
  isFavorite: boolean;
25
56
  isShared: boolean;
26
- parentId: string | null;
57
+ parentId: string | undefined;
27
58
  inboxProject: boolean;
28
59
  viewStyle: string;
29
60
  }[];
30
- nextCursor: string | null;
61
+ nextCursor: string | undefined;
31
62
  totalCount: number;
32
63
  hasMore: boolean;
33
64
  appliedFilters: {
@@ -36,17 +67,6 @@ declare const findProjects: {
36
67
  cursor?: string | undefined;
37
68
  };
38
69
  };
39
- } | {
40
- content: ({
41
- type: "text";
42
- text: string;
43
- mimeType?: undefined;
44
- } | {
45
- type: "text";
46
- mimeType: string;
47
- text: string;
48
- })[];
49
- structuredContent?: undefined;
50
70
  }>;
51
71
  };
52
72
  export { findProjects };
@@ -1 +1 @@
1
- {"version":3,"file":"find-projects.d.ts","sourceRoot":"","sources":["../../src/tools/find-projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BwB,CAAA;AAoD1C,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"find-projects.d.ts","sourceRoot":"","sources":["../../src/tools/find-projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B6C,CAAA;AAoD/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -6,14 +6,25 @@ declare const findSections: {
6
6
  projectId: z.ZodString;
7
7
  search: z.ZodOptional<z.ZodString>;
8
8
  };
9
+ outputSchema: {
10
+ sections: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodString;
12
+ name: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ name: string;
15
+ id: string;
16
+ }, {
17
+ name: string;
18
+ id: string;
19
+ }>, "many">;
20
+ totalCount: z.ZodNumber;
21
+ appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22
+ };
9
23
  execute(args: {
10
24
  projectId: string;
11
25
  search?: string | undefined;
12
26
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
13
- content: {
14
- type: "text";
15
- text: string;
16
- }[];
27
+ textContent: string;
17
28
  structuredContent: {
18
29
  sections: {
19
30
  id: string;
@@ -25,17 +36,6 @@ declare const findSections: {
25
36
  search?: string | undefined;
26
37
  };
27
38
  };
28
- } | {
29
- content: ({
30
- type: "text";
31
- text: string;
32
- mimeType?: undefined;
33
- } | {
34
- type: "text";
35
- mimeType: string;
36
- text: string;
37
- })[];
38
- structuredContent?: undefined;
39
39
  }>;
40
40
  };
41
41
  export { findSections };
@@ -1 +1 @@
1
- {"version":3,"file":"find-sections.d.ts","sourceRoot":"","sources":["../../src/tools/find-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA4BvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCwB,CAAA;AAwC1C,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"find-sections.d.ts","sourceRoot":"","sources":["../../src/tools/find-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC6C,CAAA;AAwC/D,OAAO,EAAE,YAAY,EAAE,CAAA"}