@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.
Files changed (66) 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 +390 -584
  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 +1 -37
  8. package/dist/mcp-helpers.d.ts.map +1 -1
  9. package/dist/{mcp-server-BADReNAy.js → mcp-server-BSQxi0xQ.js} +1067 -1070
  10. package/dist/todoist-tool.d.ts +6 -2
  11. package/dist/todoist-tool.d.ts.map +1 -1
  12. package/dist/tool-helpers.d.ts +49 -20
  13. package/dist/tool-helpers.d.ts.map +1 -1
  14. package/dist/tools/add-comments.d.ts +49 -38
  15. package/dist/tools/add-comments.d.ts.map +1 -1
  16. package/dist/tools/add-projects.d.ts +10 -22
  17. package/dist/tools/add-projects.d.ts.map +1 -1
  18. package/dist/tools/add-sections.d.ts +1 -15
  19. package/dist/tools/add-sections.d.ts.map +1 -1
  20. package/dist/tools/add-tasks.d.ts +33 -47
  21. package/dist/tools/add-tasks.d.ts.map +1 -1
  22. package/dist/tools/complete-tasks.d.ts +3 -17
  23. package/dist/tools/complete-tasks.d.ts.map +1 -1
  24. package/dist/tools/delete-object.d.ts +2 -16
  25. package/dist/tools/delete-object.d.ts.map +1 -1
  26. package/dist/tools/fetch.d.ts +3 -8
  27. package/dist/tools/fetch.d.ts.map +1 -1
  28. package/dist/tools/find-activity.d.ts +15 -29
  29. package/dist/tools/find-activity.d.ts.map +1 -1
  30. package/dist/tools/find-comments.d.ts +51 -40
  31. package/dist/tools/find-comments.d.ts.map +1 -1
  32. package/dist/tools/find-completed-tasks.d.ts +29 -43
  33. package/dist/tools/find-completed-tasks.d.ts.map +1 -1
  34. package/dist/tools/find-project-collaborators.d.ts +20 -20
  35. package/dist/tools/find-project-collaborators.d.ts.map +1 -1
  36. package/dist/tools/find-projects.d.ts +7 -21
  37. package/dist/tools/find-projects.d.ts.map +1 -1
  38. package/dist/tools/find-sections.d.ts +1 -15
  39. package/dist/tools/find-sections.d.ts.map +1 -1
  40. package/dist/tools/find-tasks-by-date.d.ts +27 -41
  41. package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
  42. package/dist/tools/find-tasks.d.ts +29 -43
  43. package/dist/tools/find-tasks.d.ts.map +1 -1
  44. package/dist/tools/get-overview.d.ts +9 -16
  45. package/dist/tools/get-overview.d.ts.map +1 -1
  46. package/dist/tools/manage-assignments.d.ts +5 -19
  47. package/dist/tools/manage-assignments.d.ts.map +1 -1
  48. package/dist/tools/search.d.ts +11 -7
  49. package/dist/tools/search.d.ts.map +1 -1
  50. package/dist/tools/update-comments.d.ts +49 -38
  51. package/dist/tools/update-comments.d.ts.map +1 -1
  52. package/dist/tools/update-projects.d.ts +7 -19
  53. package/dist/tools/update-projects.d.ts.map +1 -1
  54. package/dist/tools/update-sections.d.ts +1 -15
  55. package/dist/tools/update-sections.d.ts.map +1 -1
  56. package/dist/tools/update-tasks.d.ts +33 -47
  57. package/dist/tools/update-tasks.d.ts.map +1 -1
  58. package/dist/tools/user-info.d.ts +1 -15
  59. package/dist/tools/user-info.d.ts.map +1 -1
  60. package/dist/utils/output-schemas.d.ts +60 -32
  61. package/dist/utils/output-schemas.d.ts.map +1 -1
  62. package/dist/utils/sanitize-data.d.ts +3 -2
  63. package/dist/utils/sanitize-data.d.ts.map +1 -1
  64. package/dist/utils/test-helpers.d.ts +1 -33
  65. package/dist/utils/test-helpers.d.ts.map +1 -1
  66. package/package.json +13 -13
@@ -23,28 +23,14 @@ declare const deleteObject: {
23
23
  type: "comment" | "task" | "project" | "section";
24
24
  id: string;
25
25
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
26
- content: {
27
- type: "text";
28
- text: string;
29
- }[];
26
+ textContent: string;
30
27
  structuredContent: {
31
28
  deletedEntity: {
32
29
  type: "comment" | "task" | "project" | "section";
33
30
  id: string;
34
31
  };
35
- success: boolean;
32
+ success: true;
36
33
  };
37
- } | {
38
- content: ({
39
- type: "text";
40
- text: string;
41
- mimeType?: undefined;
42
- } | {
43
- type: "text";
44
- mimeType: string;
45
- text: string;
46
- })[];
47
- structuredContent?: undefined;
48
34
  }>;
49
35
  };
50
36
  export { deleteObject };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwBvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCwB,CAAA;AAc1C,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuBvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B6C,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -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
  *
@@ -27,7 +20,9 @@ declare const fetch: {
27
20
  };
28
21
  execute(args: {
29
22
  id: string;
30
- }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<FetchToolOutput>;
23
+ }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
24
+ textContent: string;
25
+ }>;
31
26
  };
32
27
  export { fetch };
33
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;AAUD;;;;;GAKG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;oEAMsB,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"}
@@ -14,7 +14,7 @@ declare const findActivity: {
14
14
  };
15
15
  outputSchema: {
16
16
  events: z.ZodArray<z.ZodObject<{
17
- id: z.ZodString;
17
+ id: z.ZodOptional<z.ZodString>;
18
18
  objectType: z.ZodString;
19
19
  objectId: z.ZodString;
20
20
  eventType: z.ZodString;
@@ -22,27 +22,27 @@ declare const findActivity: {
22
22
  parentProjectId: z.ZodOptional<z.ZodString>;
23
23
  parentItemId: z.ZodOptional<z.ZodString>;
24
24
  initiatorId: z.ZodOptional<z.ZodString>;
25
- extraData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
+ extraData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- id: string;
28
27
  objectType: string;
29
28
  objectId: string;
30
29
  eventType: string;
31
30
  eventDate: string;
32
- extraData: Record<string, unknown>;
31
+ id?: string | undefined;
33
32
  parentProjectId?: string | undefined;
34
33
  parentItemId?: string | undefined;
35
34
  initiatorId?: string | undefined;
35
+ extraData?: Record<string, unknown> | undefined;
36
36
  }, {
37
- id: string;
38
37
  objectType: string;
39
38
  objectId: string;
40
39
  eventType: string;
41
40
  eventDate: string;
42
- extraData: Record<string, unknown>;
41
+ id?: string | undefined;
43
42
  parentProjectId?: string | undefined;
44
43
  parentItemId?: string | undefined;
45
44
  initiatorId?: string | undefined;
45
+ extraData?: Record<string, unknown> | undefined;
46
46
  }>, "many">;
47
47
  nextCursor: z.ZodOptional<z.ZodString>;
48
48
  totalCount: z.ZodNumber;
@@ -52,54 +52,40 @@ declare const findActivity: {
52
52
  execute(args: {
53
53
  limit: number;
54
54
  projectId?: string | undefined;
55
- taskId?: string | undefined;
56
55
  objectType?: "comment" | "task" | "project" | undefined;
57
56
  objectId?: string | undefined;
58
57
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
59
58
  initiatorId?: string | undefined;
60
59
  cursor?: string | undefined;
60
+ taskId?: string | undefined;
61
61
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
62
- content: {
63
- type: "text";
64
- text: string;
65
- }[];
62
+ textContent: string;
66
63
  structuredContent: {
67
64
  events: {
68
- id: string | null;
65
+ id: string | undefined;
69
66
  objectType: string;
70
67
  objectId: string;
71
68
  eventType: string;
72
69
  eventDate: string;
73
- parentProjectId: string | null;
74
- parentItemId: string | null;
75
- initiatorId: string | null;
76
- extraData: Record<string, any> | null;
70
+ parentProjectId: string | undefined;
71
+ parentItemId: string | undefined;
72
+ initiatorId: string | undefined;
73
+ extraData: Record<string, any> | undefined;
77
74
  }[];
78
- nextCursor: string | null;
75
+ nextCursor: string | undefined;
79
76
  totalCount: number;
80
77
  hasMore: boolean;
81
78
  appliedFilters: {
82
79
  limit: number;
83
80
  projectId?: string | undefined;
84
- taskId?: string | undefined;
85
81
  objectType?: "comment" | "task" | "project" | undefined;
86
82
  objectId?: string | undefined;
87
83
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
88
84
  initiatorId?: string | undefined;
89
85
  cursor?: string | undefined;
86
+ taskId?: string | undefined;
90
87
  };
91
88
  };
92
- } | {
93
- content: ({
94
- type: "text";
95
- text: string;
96
- mimeType?: undefined;
97
- } | {
98
- type: "text";
99
- mimeType: string;
100
- text: string;
101
- })[];
102
- structuredContent?: undefined;
103
89
  }>;
104
90
  };
105
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;AA+DvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CwB,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"}
@@ -16,7 +16,8 @@ declare const findComments: {
16
16
  projectId: z.ZodOptional<z.ZodString>;
17
17
  content: z.ZodString;
18
18
  postedAt: z.ZodString;
19
- attachment: z.ZodOptional<z.ZodObject<{
19
+ postedUid: z.ZodOptional<z.ZodString>;
20
+ fileAttachment: z.ZodOptional<z.ZodObject<{
20
21
  resourceType: z.ZodString;
21
22
  fileName: z.ZodOptional<z.ZodString>;
22
23
  fileSize: z.ZodOptional<z.ZodNumber>;
@@ -24,111 +25,121 @@ declare const findComments: {
24
25
  fileUrl: z.ZodOptional<z.ZodString>;
25
26
  fileDuration: z.ZodOptional<z.ZodNumber>;
26
27
  uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
28
+ url: z.ZodOptional<z.ZodString>;
29
+ title: z.ZodOptional<z.ZodString>;
30
+ image: z.ZodOptional<z.ZodString>;
31
+ imageWidth: z.ZodOptional<z.ZodNumber>;
32
+ imageHeight: z.ZodOptional<z.ZodNumber>;
27
33
  }, "strip", z.ZodTypeAny, {
28
34
  resourceType: string;
35
+ image?: string | undefined;
36
+ title?: string | undefined;
29
37
  fileName?: string | undefined;
30
38
  fileSize?: number | undefined;
31
39
  fileType?: string | undefined;
32
40
  fileUrl?: string | undefined;
33
41
  fileDuration?: number | undefined;
34
42
  uploadState?: "pending" | "completed" | undefined;
43
+ imageWidth?: number | undefined;
44
+ imageHeight?: number | undefined;
45
+ url?: string | undefined;
35
46
  }, {
36
47
  resourceType: string;
48
+ image?: string | undefined;
49
+ title?: string | undefined;
37
50
  fileName?: string | undefined;
38
51
  fileSize?: number | undefined;
39
52
  fileType?: string | undefined;
40
53
  fileUrl?: string | undefined;
41
54
  fileDuration?: number | undefined;
42
55
  uploadState?: "pending" | "completed" | undefined;
56
+ imageWidth?: number | undefined;
57
+ imageHeight?: number | undefined;
58
+ url?: string | undefined;
43
59
  }>>;
44
60
  }, "strip", z.ZodTypeAny, {
45
61
  content: string;
46
62
  id: string;
47
63
  postedAt: string;
48
64
  projectId?: string | undefined;
49
- taskId?: string | undefined;
50
- attachment?: {
65
+ fileAttachment?: {
51
66
  resourceType: string;
67
+ image?: string | undefined;
68
+ title?: string | undefined;
52
69
  fileName?: string | undefined;
53
70
  fileSize?: number | undefined;
54
71
  fileType?: string | undefined;
55
72
  fileUrl?: string | undefined;
56
73
  fileDuration?: number | undefined;
57
74
  uploadState?: "pending" | "completed" | undefined;
75
+ imageWidth?: number | undefined;
76
+ imageHeight?: number | undefined;
77
+ url?: string | undefined;
58
78
  } | undefined;
79
+ postedUid?: string | undefined;
80
+ taskId?: string | undefined;
59
81
  }, {
60
82
  content: string;
61
83
  id: string;
62
84
  postedAt: string;
63
85
  projectId?: string | undefined;
64
- taskId?: string | undefined;
65
- attachment?: {
86
+ fileAttachment?: {
66
87
  resourceType: string;
88
+ image?: string | undefined;
89
+ title?: string | undefined;
67
90
  fileName?: string | undefined;
68
91
  fileSize?: number | undefined;
69
92
  fileType?: string | undefined;
70
93
  fileUrl?: string | undefined;
71
94
  fileDuration?: number | undefined;
72
95
  uploadState?: "pending" | "completed" | undefined;
96
+ imageWidth?: number | undefined;
97
+ imageHeight?: number | undefined;
98
+ url?: string | undefined;
73
99
  } | undefined;
100
+ postedUid?: string | undefined;
101
+ taskId?: string | undefined;
74
102
  }>, "many">;
75
103
  nextCursor: z.ZodOptional<z.ZodString>;
76
104
  totalCount: z.ZodNumber;
77
105
  };
78
106
  execute(args: {
79
107
  projectId?: string | undefined;
80
- taskId?: string | undefined;
81
108
  limit?: number | undefined;
82
109
  cursor?: string | undefined;
110
+ taskId?: string | undefined;
83
111
  commentId?: string | undefined;
84
112
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
85
- content: {
86
- type: "text";
87
- text: string;
88
- }[];
113
+ textContent: string;
89
114
  structuredContent: {
90
115
  comments: {
91
- taskId: string | undefined;
92
116
  id: string;
117
+ taskId: string | undefined;
118
+ projectId: string | undefined;
93
119
  content: string;
94
120
  postedAt: string;
121
+ postedUid: string;
95
122
  fileAttachment: {
96
123
  resourceType: string;
97
- fileName?: string | null | undefined;
98
- fileSize?: number | null | undefined;
99
- fileType?: string | null | undefined;
100
- fileUrl?: string | null | undefined;
101
- fileDuration?: number | null | undefined;
102
- uploadState?: "pending" | "completed" | null | undefined;
103
- image?: string | null | undefined;
104
- imageWidth?: number | null | undefined;
105
- imageHeight?: number | null | undefined;
106
- url?: string | null | undefined;
107
- title?: string | null | undefined;
108
- } | null;
109
- postedUid: string;
110
- uidsToNotify: string[] | null;
111
- reactions: Record<string, string[]> | null;
112
- isDeleted: boolean;
113
- projectId?: string | undefined;
124
+ fileName: string | undefined;
125
+ fileSize: number | undefined;
126
+ fileType: string | undefined;
127
+ fileUrl: string | undefined;
128
+ fileDuration: number | undefined;
129
+ uploadState: "pending" | "completed" | undefined;
130
+ url: string | undefined;
131
+ title: string | undefined;
132
+ image: string | undefined;
133
+ imageWidth: number | undefined;
134
+ imageHeight: number | undefined;
135
+ } | undefined;
114
136
  }[];
115
137
  searchType: string;
116
138
  searchId: string;
117
139
  hasMore: boolean;
118
- nextCursor: string | null;
140
+ nextCursor: string | undefined;
119
141
  totalCount: number;
120
142
  };
121
- } | {
122
- content: ({
123
- type: "text";
124
- text: string;
125
- mimeType?: undefined;
126
- } | {
127
- type: "text";
128
- mimeType: string;
129
- text: string;
130
- })[];
131
- structuredContent?: undefined;
132
143
  }>;
133
144
  };
134
145
  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;AAiCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA+H6kR,CAAC;4BAA6C,CAAC;4BAA6C,CAAC;2BAA4C,CAAC;gCAAiD,CAAC;+BAAgD,CAAC;yBAA2D,CAAC;8BAA+C,CAAC;+BAAgD,CAAC;uBAAwC,CAAC;yBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CApDnhS,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;AAiCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6E6C,CAAA;AAmD/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -28,7 +28,7 @@ declare const findCompletedTasks: {
28
28
  projectId: z.ZodString;
29
29
  sectionId: z.ZodOptional<z.ZodString>;
30
30
  parentId: z.ZodOptional<z.ZodString>;
31
- labels: z.ZodArray<z.ZodString, "many">;
31
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
32
  duration: z.ZodOptional<z.ZodString>;
33
33
  responsibleUid: z.ZodOptional<z.ZodString>;
34
34
  assignedByUid: z.ZodOptional<z.ZodString>;
@@ -38,36 +38,36 @@ declare const findCompletedTasks: {
38
38
  content: string;
39
39
  description: string;
40
40
  id: string;
41
- recurring: string | boolean;
42
- priority: number;
43
41
  projectId: string;
44
- labels: string[];
45
42
  checked: boolean;
46
- dueDate?: string | undefined;
47
- deadlineDate?: string | undefined;
48
- sectionId?: string | undefined;
43
+ priority: number;
44
+ recurring: string | boolean;
49
45
  parentId?: string | undefined;
50
- duration?: string | undefined;
51
- responsibleUid?: string | undefined;
46
+ sectionId?: string | undefined;
52
47
  assignedByUid?: string | undefined;
48
+ responsibleUid?: string | undefined;
49
+ labels?: string[] | undefined;
50
+ duration?: string | undefined;
53
51
  completedAt?: string | undefined;
52
+ dueDate?: string | undefined;
53
+ deadlineDate?: string | undefined;
54
54
  }, {
55
55
  content: string;
56
56
  description: string;
57
57
  id: string;
58
- recurring: string | boolean;
59
- priority: number;
60
58
  projectId: string;
61
- labels: string[];
62
59
  checked: boolean;
63
- dueDate?: string | undefined;
64
- deadlineDate?: string | undefined;
65
- sectionId?: string | undefined;
60
+ priority: number;
61
+ recurring: string | boolean;
66
62
  parentId?: string | undefined;
67
- duration?: string | undefined;
68
- responsibleUid?: string | undefined;
63
+ sectionId?: string | undefined;
69
64
  assignedByUid?: string | undefined;
65
+ responsibleUid?: string | undefined;
66
+ labels?: string[] | undefined;
67
+ duration?: string | undefined;
70
68
  completedAt?: string | undefined;
69
+ dueDate?: string | undefined;
70
+ deadlineDate?: string | undefined;
71
71
  }>, "many">;
72
72
  nextCursor: z.ZodOptional<z.ZodString>;
73
73
  totalCount: z.ZodNumber;
@@ -79,19 +79,16 @@ declare const findCompletedTasks: {
79
79
  getBy: "due" | "completion";
80
80
  since: string;
81
81
  until: string;
82
+ parentId?: string | undefined;
83
+ workspaceId?: string | undefined;
82
84
  projectId?: string | undefined;
83
85
  sectionId?: string | undefined;
84
- parentId?: string | undefined;
85
86
  labels?: string[] | undefined;
86
- workspaceId?: string | undefined;
87
87
  cursor?: string | undefined;
88
88
  responsibleUser?: string | undefined;
89
89
  labelsOperator?: "and" | "or" | undefined;
90
90
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
91
- content: {
92
- type: "text";
93
- text: string;
94
- }[];
91
+ textContent: string;
95
92
  structuredContent: {
96
93
  tasks: {
97
94
  id: string;
@@ -102,16 +99,16 @@ declare const findCompletedTasks: {
102
99
  deadlineDate: string | undefined;
103
100
  priority: number;
104
101
  projectId: string;
105
- sectionId: string | null;
106
- parentId: string | null;
102
+ sectionId: string | undefined;
103
+ parentId: string | undefined;
107
104
  labels: string[];
108
- duration: string | null;
109
- responsibleUid: string | null;
110
- assignedByUid: string | null;
105
+ duration: string | undefined;
106
+ responsibleUid: string | undefined;
107
+ assignedByUid: string | undefined;
111
108
  checked: boolean;
112
- completedAt: string | null;
109
+ completedAt: string | undefined;
113
110
  }[];
114
- nextCursor: string | null;
111
+ nextCursor: string | undefined;
115
112
  totalCount: number;
116
113
  hasMore: boolean;
117
114
  appliedFilters: {
@@ -119,27 +116,16 @@ declare const findCompletedTasks: {
119
116
  getBy: "due" | "completion";
120
117
  since: string;
121
118
  until: string;
119
+ parentId?: string | undefined;
120
+ workspaceId?: string | undefined;
122
121
  projectId?: string | undefined;
123
122
  sectionId?: string | undefined;
124
- parentId?: string | undefined;
125
123
  labels?: string[] | undefined;
126
- workspaceId?: string | undefined;
127
124
  cursor?: string | undefined;
128
125
  responsibleUser?: string | undefined;
129
126
  labelsOperator?: "and" | "or" | undefined;
130
127
  };
131
128
  };
132
- } | {
133
- content: ({
134
- type: "text";
135
- text: string;
136
- mimeType?: undefined;
137
- } | {
138
- type: "text";
139
- mimeType: string;
140
- text: string;
141
- })[];
142
- structuredContent?: undefined;
143
129
  }>;
144
130
  };
145
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;AAsEvB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EkB,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"}
@@ -42,45 +42,45 @@ declare const findProjectCollaborators: {
42
42
  projectId: string;
43
43
  searchTerm?: string | undefined;
44
44
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
45
- content: {
46
- type: "text";
47
- text: string;
48
- }[];
45
+ textContent: string;
49
46
  structuredContent: {
50
47
  collaborators: never[];
51
48
  projectInfo: {
52
49
  id: string;
53
50
  name: string;
54
- isShared: boolean;
51
+ isShared: false;
55
52
  };
56
53
  totalCount: number;
57
54
  appliedFilters: {
58
55
  projectId: string;
59
56
  searchTerm?: string | undefined;
60
57
  };
58
+ totalAvailable?: undefined;
61
59
  };
62
60
  } | {
63
- content: ({
64
- type: "text";
65
- text: string;
66
- mimeType?: undefined;
67
- } | {
68
- type: "text";
69
- mimeType: string;
70
- text: string;
71
- })[];
72
- 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
+ };
73
76
  } | {
74
- content: {
75
- type: "text";
76
- text: string;
77
- }[];
77
+ textContent: string;
78
78
  structuredContent: {
79
79
  collaborators: ProjectCollaborator[];
80
80
  projectInfo: {
81
81
  id: string;
82
82
  name: string;
83
- isShared: boolean;
83
+ isShared: true;
84
84
  };
85
85
  totalCount: number;
86
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;AAOvB,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,2BAA2B,CAAA;AAgClF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FY,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"}
@@ -22,18 +22,18 @@ declare const findProjects: {
22
22
  id: string;
23
23
  color: string;
24
24
  isFavorite: boolean;
25
+ viewStyle: string;
25
26
  isShared: boolean;
26
27
  inboxProject: boolean;
27
- viewStyle: string;
28
28
  parentId?: string | undefined;
29
29
  }, {
30
30
  name: string;
31
31
  id: string;
32
32
  color: string;
33
33
  isFavorite: boolean;
34
+ viewStyle: string;
34
35
  isShared: boolean;
35
36
  inboxProject: boolean;
36
- viewStyle: string;
37
37
  parentId?: string | undefined;
38
38
  }>, "many">;
39
39
  nextCursor: z.ZodOptional<z.ZodString>;
@@ -43,13 +43,10 @@ declare const findProjects: {
43
43
  };
44
44
  execute(args: {
45
45
  limit: number;
46
- search?: string | undefined;
47
46
  cursor?: string | undefined;
47
+ search?: string | undefined;
48
48
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
49
- content: {
50
- type: "text";
51
- text: string;
52
- }[];
49
+ textContent: string;
53
50
  structuredContent: {
54
51
  projects: {
55
52
  id: string;
@@ -57,30 +54,19 @@ declare const findProjects: {
57
54
  color: string;
58
55
  isFavorite: boolean;
59
56
  isShared: boolean;
60
- parentId: string | null;
57
+ parentId: string | undefined;
61
58
  inboxProject: boolean;
62
59
  viewStyle: string;
63
60
  }[];
64
- nextCursor: string | null;
61
+ nextCursor: string | undefined;
65
62
  totalCount: number;
66
63
  hasMore: boolean;
67
64
  appliedFilters: {
68
65
  limit: number;
69
- search?: string | undefined;
70
66
  cursor?: string | undefined;
67
+ search?: string | undefined;
71
68
  };
72
69
  };
73
- } | {
74
- content: ({
75
- type: "text";
76
- text: string;
77
- mimeType?: undefined;
78
- } | {
79
- type: "text";
80
- mimeType: string;
81
- text: string;
82
- })[];
83
- structuredContent?: undefined;
84
70
  }>;
85
71
  };
86
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;AAyCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCwB,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"}