@doist/todoist-ai 5.2.0 → 6.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.
Files changed (59) hide show
  1. package/dist/index.d.ts +272 -901
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -2
  4. package/dist/main.js +1 -1
  5. package/dist/mcp-helpers.d.ts.map +1 -1
  6. package/dist/{mcp-server-D0ROki3I.js → mcp-server-BwerBJpX.js} +117 -127
  7. package/dist/tools/add-comments.d.ts +9 -82
  8. package/dist/tools/add-comments.d.ts.map +1 -1
  9. package/dist/tools/add-projects.d.ts +11 -73
  10. package/dist/tools/add-projects.d.ts.map +1 -1
  11. package/dist/tools/add-sections.d.ts +2 -14
  12. package/dist/tools/add-sections.d.ts.map +1 -1
  13. package/dist/tools/add-tasks.d.ts +24 -76
  14. package/dist/tools/add-tasks.d.ts.map +1 -1
  15. package/dist/tools/complete-tasks.d.ts +3 -11
  16. package/dist/tools/complete-tasks.d.ts.map +1 -1
  17. package/dist/tools/delete-object.d.ts +15 -11
  18. package/dist/tools/delete-object.d.ts.map +1 -1
  19. package/dist/tools/fetch.d.ts.map +1 -1
  20. package/dist/tools/find-activity.d.ts +25 -31
  21. package/dist/tools/find-activity.d.ts.map +1 -1
  22. package/dist/tools/find-comments.d.ts +9 -74
  23. package/dist/tools/find-comments.d.ts.map +1 -1
  24. package/dist/tools/find-completed-tasks.d.ts +28 -53
  25. package/dist/tools/find-completed-tasks.d.ts.map +1 -1
  26. package/dist/tools/find-project-collaborators.d.ts +2 -18
  27. package/dist/tools/find-project-collaborators.d.ts.map +1 -1
  28. package/dist/tools/find-projects.d.ts +3 -21
  29. package/dist/tools/find-projects.d.ts.map +1 -1
  30. package/dist/tools/find-sections.d.ts +1 -7
  31. package/dist/tools/find-sections.d.ts.map +1 -1
  32. package/dist/tools/find-tasks-by-date.d.ts +34 -54
  33. package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
  34. package/dist/tools/find-tasks.d.ts +31 -55
  35. package/dist/tools/find-tasks.d.ts.map +1 -1
  36. package/dist/tools/get-overview.d.ts +8 -15
  37. package/dist/tools/get-overview.d.ts.map +1 -1
  38. package/dist/tools/manage-assignments.d.ts +9 -27
  39. package/dist/tools/manage-assignments.d.ts.map +1 -1
  40. package/dist/tools/search.d.ts +1 -9
  41. package/dist/tools/search.d.ts.map +1 -1
  42. package/dist/tools/update-comments.d.ts +10 -85
  43. package/dist/tools/update-comments.d.ts.map +1 -1
  44. package/dist/tools/update-projects.d.ts +12 -80
  45. package/dist/tools/update-projects.d.ts.map +1 -1
  46. package/dist/tools/update-sections.d.ts +4 -16
  47. package/dist/tools/update-sections.d.ts.map +1 -1
  48. package/dist/tools/update-tasks.d.ts +25 -87
  49. package/dist/tools/update-tasks.d.ts.map +1 -1
  50. package/dist/tools/user-info.d.ts +6 -2
  51. package/dist/tools/user-info.d.ts.map +1 -1
  52. package/dist/utils/labels.d.ts +5 -2
  53. package/dist/utils/labels.d.ts.map +1 -1
  54. package/dist/utils/output-schemas.d.ts +20 -176
  55. package/dist/utils/output-schemas.d.ts.map +1 -1
  56. package/dist/utils/priorities.d.ts +6 -1
  57. package/dist/utils/priorities.d.ts.map +1 -1
  58. package/package.json +11 -11
  59. package/scripts/validate-schemas.ts +66 -65
@@ -7,15 +7,7 @@ declare const addComments: {
7
7
  taskId: z.ZodOptional<z.ZodString>;
8
8
  projectId: z.ZodOptional<z.ZodString>;
9
9
  content: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- content: string;
12
- projectId?: string | undefined;
13
- taskId?: string | undefined;
14
- }, {
15
- content: string;
16
- projectId?: string | undefined;
17
- taskId?: string | undefined;
18
- }>, "many">;
10
+ }, z.core.$strip>>;
19
11
  };
20
12
  outputSchema: {
21
13
  comments: z.ZodArray<z.ZodObject<{
@@ -32,91 +24,26 @@ declare const addComments: {
32
24
  fileType: z.ZodOptional<z.ZodString>;
33
25
  fileUrl: z.ZodOptional<z.ZodString>;
34
26
  fileDuration: z.ZodOptional<z.ZodNumber>;
35
- uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
27
+ uploadState: z.ZodOptional<z.ZodEnum<{
28
+ pending: "pending";
29
+ completed: "completed";
30
+ }>>;
36
31
  url: z.ZodOptional<z.ZodString>;
37
32
  title: z.ZodOptional<z.ZodString>;
38
33
  image: z.ZodOptional<z.ZodString>;
39
34
  imageWidth: z.ZodOptional<z.ZodNumber>;
40
35
  imageHeight: z.ZodOptional<z.ZodNumber>;
41
- }, "strip", z.ZodTypeAny, {
42
- resourceType: string;
43
- title?: string | undefined;
44
- fileName?: string | undefined;
45
- fileSize?: number | undefined;
46
- fileType?: string | undefined;
47
- fileUrl?: string | undefined;
48
- fileDuration?: number | undefined;
49
- uploadState?: "pending" | "completed" | undefined;
50
- image?: string | undefined;
51
- imageWidth?: number | undefined;
52
- imageHeight?: number | undefined;
53
- url?: string | undefined;
54
- }, {
55
- resourceType: string;
56
- title?: string | undefined;
57
- fileName?: string | undefined;
58
- fileSize?: number | undefined;
59
- fileType?: string | undefined;
60
- fileUrl?: string | undefined;
61
- fileDuration?: number | undefined;
62
- uploadState?: "pending" | "completed" | undefined;
63
- image?: string | undefined;
64
- imageWidth?: number | undefined;
65
- imageHeight?: number | undefined;
66
- url?: string | undefined;
67
- }>>;
68
- }, "strip", z.ZodTypeAny, {
69
- content: string;
70
- id: string;
71
- postedAt: string;
72
- projectId?: string | undefined;
73
- fileAttachment?: {
74
- resourceType: string;
75
- title?: string | undefined;
76
- fileName?: string | undefined;
77
- fileSize?: number | undefined;
78
- fileType?: string | undefined;
79
- fileUrl?: string | undefined;
80
- fileDuration?: number | undefined;
81
- uploadState?: "pending" | "completed" | undefined;
82
- image?: string | undefined;
83
- imageWidth?: number | undefined;
84
- imageHeight?: number | undefined;
85
- url?: string | undefined;
86
- } | undefined;
87
- postedUid?: string | undefined;
88
- taskId?: string | undefined;
89
- }, {
90
- content: string;
91
- id: string;
92
- postedAt: string;
93
- projectId?: string | undefined;
94
- fileAttachment?: {
95
- resourceType: string;
96
- title?: string | undefined;
97
- fileName?: string | undefined;
98
- fileSize?: number | undefined;
99
- fileType?: string | undefined;
100
- fileUrl?: string | undefined;
101
- fileDuration?: number | undefined;
102
- uploadState?: "pending" | "completed" | undefined;
103
- image?: string | undefined;
104
- imageWidth?: number | undefined;
105
- imageHeight?: number | undefined;
106
- url?: string | undefined;
107
- } | undefined;
108
- postedUid?: string | undefined;
109
- taskId?: string | undefined;
110
- }>, "many">;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>>;
111
38
  totalCount: z.ZodNumber;
112
- addedCommentIds: z.ZodArray<z.ZodString, "many">;
39
+ addedCommentIds: z.ZodArray<z.ZodString>;
113
40
  };
114
41
  mutability: "additive";
115
42
  execute(args: {
116
43
  comments: {
117
44
  content: string;
118
- projectId?: string | undefined;
119
45
  taskId?: string | undefined;
46
+ projectId?: string | undefined;
120
47
  }[];
121
48
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
122
49
  textContent: string;
@@ -1 +1 @@
1
- {"version":3,"file":"add-comments.d.ts","sourceRoot":"","sources":["../../src/tools/add-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA2BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD8C,CAAA;AAsB/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"add-comments.d.ts","sourceRoot":"","sources":["../../src/tools/add-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA2BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD8C,CAAA;AAsB/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -7,18 +7,12 @@ declare const addProjects: {
7
7
  name: z.ZodString;
8
8
  parentId: z.ZodOptional<z.ZodString>;
9
9
  isFavorite: z.ZodOptional<z.ZodBoolean>;
10
- viewStyle: z.ZodOptional<z.ZodEnum<["list", "board", "calendar"]>>;
11
- }, "strip", z.ZodTypeAny, {
12
- name: string;
13
- isFavorite?: boolean | undefined;
14
- viewStyle?: "list" | "board" | "calendar" | undefined;
15
- parentId?: string | undefined;
16
- }, {
17
- name: string;
18
- isFavorite?: boolean | undefined;
19
- viewStyle?: "list" | "board" | "calendar" | undefined;
20
- parentId?: string | undefined;
21
- }>, "many">;
10
+ viewStyle: z.ZodOptional<z.ZodEnum<{
11
+ list: "list";
12
+ board: "board";
13
+ calendar: "calendar";
14
+ }>>;
15
+ }, z.core.$strip>>;
22
16
  };
23
17
  outputSchema: {
24
18
  projects: z.ZodArray<z.ZodObject<{
@@ -30,86 +24,30 @@ declare const addProjects: {
30
24
  parentId: z.ZodOptional<z.ZodString>;
31
25
  inboxProject: z.ZodBoolean;
32
26
  viewStyle: z.ZodString;
33
- }, "strip", z.ZodTypeAny, {
34
- name: string;
35
- id: string;
36
- color: string;
37
- isFavorite: boolean;
38
- viewStyle: string;
39
- isShared: boolean;
40
- inboxProject: boolean;
41
- parentId?: string | undefined;
42
- }, {
43
- name: string;
44
- id: string;
45
- color: string;
46
- isFavorite: boolean;
47
- viewStyle: string;
48
- isShared: boolean;
49
- inboxProject: boolean;
50
- parentId?: string | undefined;
51
- }>, "many">;
27
+ }, z.core.$strip>>;
52
28
  totalCount: z.ZodNumber;
53
29
  };
54
30
  mutability: "additive";
55
31
  execute({ projects }: {
56
32
  projects: {
57
33
  name: string;
34
+ parentId?: string | undefined;
58
35
  isFavorite?: boolean | undefined;
59
36
  viewStyle?: "list" | "board" | "calendar" | undefined;
60
- parentId?: string | undefined;
61
37
  }[];
62
38
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
63
39
  textContent: string;
64
40
  structuredContent: {
65
- projects: ({
66
- parentId: string | undefined;
67
- inboxProject: boolean;
68
- url: string;
41
+ projects: {
69
42
  id: string;
70
- canAssignTasks: boolean;
71
- childOrder: number;
43
+ name: string;
72
44
  color: string;
73
- createdAt: string | null;
74
- isArchived: boolean;
75
- isDeleted: boolean;
76
45
  isFavorite: boolean;
77
- isFrozen: boolean;
78
- name: string;
79
- updatedAt: string | null;
80
- viewStyle: string;
81
- defaultOrder: number;
82
- description: string;
83
- isCollapsed: boolean;
84
46
  isShared: boolean;
85
- } | {
86
47
  parentId: string | undefined;
87
48
  inboxProject: boolean;
88
- url: string;
89
- id: string;
90
- canAssignTasks: boolean;
91
- childOrder: number;
92
- color: string;
93
- createdAt: string | null;
94
- isArchived: boolean;
95
- isDeleted: boolean;
96
- isFavorite: boolean;
97
- isFrozen: boolean;
98
- name: string;
99
- updatedAt: string | null;
100
49
  viewStyle: string;
101
- defaultOrder: number;
102
- description: string;
103
- isCollapsed: boolean;
104
- isShared: boolean;
105
- collaboratorRoleDefault: string;
106
- folderId: string | null;
107
- isInviteOnly: boolean | null;
108
- isLinkSharingEnabled: boolean;
109
- role: string | null;
110
- status: string;
111
- workspaceId: string;
112
- })[];
50
+ }[];
113
51
  totalCount: number;
114
52
  };
115
53
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"add-projects.d.ts","sourceRoot":"","sources":["../../src/tools/add-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB8C,CAAA;AAW/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"add-projects.d.ts","sourceRoot":"","sources":["../../src/tools/add-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA+BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmB8C,CAAA;AAW/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -6,25 +6,13 @@ declare const addSections: {
6
6
  sections: z.ZodArray<z.ZodObject<{
7
7
  name: z.ZodString;
8
8
  projectId: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- name: string;
11
- projectId: string;
12
- }, {
13
- name: string;
14
- projectId: string;
15
- }>, "many">;
9
+ }, z.core.$strip>>;
16
10
  };
17
11
  outputSchema: {
18
12
  sections: z.ZodArray<z.ZodObject<{
19
13
  id: z.ZodString;
20
14
  name: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- name: string;
23
- id: string;
24
- }, {
25
- name: string;
26
- id: string;
27
- }>, "many">;
15
+ }, z.core.$strip>>;
28
16
  totalCount: z.ZodNumber;
29
17
  };
30
18
  mutability: "additive";
@@ -1 +1 @@
1
- {"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwBvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC8C,CAAA;AAa/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwBvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC8C,CAAA;AAa/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -7,43 +7,22 @@ declare const addTasks: {
7
7
  tasks: z.ZodArray<z.ZodObject<{
8
8
  content: z.ZodString;
9
9
  description: z.ZodOptional<z.ZodString>;
10
- priority: z.ZodOptional<z.ZodEnum<["p1", "p2", "p3", "p4"]>>;
10
+ priority: z.ZodOptional<z.ZodEnum<{
11
+ p1: "p1";
12
+ p2: "p2";
13
+ p3: "p3";
14
+ p4: "p4";
15
+ }>>;
11
16
  dueString: z.ZodOptional<z.ZodString>;
12
17
  deadlineDate: z.ZodOptional<z.ZodString>;
13
18
  duration: z.ZodOptional<z.ZodString>;
14
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
20
  projectId: z.ZodOptional<z.ZodString>;
16
21
  sectionId: z.ZodOptional<z.ZodString>;
17
22
  parentId: z.ZodOptional<z.ZodString>;
18
23
  responsibleUser: z.ZodOptional<z.ZodString>;
19
24
  isUncompletable: z.ZodOptional<z.ZodBoolean>;
20
- }, "strip", z.ZodTypeAny, {
21
- content: string;
22
- description?: string | undefined;
23
- parentId?: string | undefined;
24
- projectId?: string | undefined;
25
- sectionId?: string | undefined;
26
- labels?: string[] | undefined;
27
- duration?: string | undefined;
28
- priority?: "p1" | "p2" | "p3" | "p4" | undefined;
29
- isUncompletable?: boolean | undefined;
30
- deadlineDate?: string | undefined;
31
- dueString?: string | undefined;
32
- responsibleUser?: string | undefined;
33
- }, {
34
- content: string;
35
- description?: string | undefined;
36
- parentId?: string | undefined;
37
- projectId?: string | undefined;
38
- sectionId?: string | undefined;
39
- labels?: string[] | undefined;
40
- duration?: string | undefined;
41
- priority?: "p1" | "p2" | "p3" | "p4" | undefined;
42
- isUncompletable?: boolean | undefined;
43
- deadlineDate?: string | undefined;
44
- dueString?: string | undefined;
45
- responsibleUser?: string | undefined;
46
- }>, "many">;
25
+ }, z.core.$strip>>;
47
26
  };
48
27
  outputSchema: {
49
28
  tasks: z.ZodArray<z.ZodObject<{
@@ -51,56 +30,25 @@ declare const addTasks: {
51
30
  content: z.ZodString;
52
31
  description: z.ZodString;
53
32
  dueDate: z.ZodOptional<z.ZodString>;
54
- recurring: z.ZodUnion<[z.ZodBoolean, z.ZodString]>;
33
+ recurring: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
55
34
  deadlineDate: z.ZodOptional<z.ZodString>;
56
- priority: z.ZodEnum<["p1", "p2", "p3", "p4"]>;
35
+ priority: z.ZodEnum<{
36
+ p1: "p1";
37
+ p2: "p2";
38
+ p3: "p3";
39
+ p4: "p4";
40
+ }>;
57
41
  projectId: z.ZodString;
58
42
  sectionId: z.ZodOptional<z.ZodString>;
59
43
  parentId: z.ZodOptional<z.ZodString>;
60
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
45
  duration: z.ZodOptional<z.ZodString>;
62
46
  responsibleUid: z.ZodOptional<z.ZodString>;
63
47
  isUncompletable: z.ZodOptional<z.ZodBoolean>;
64
48
  assignedByUid: z.ZodOptional<z.ZodString>;
65
49
  checked: z.ZodBoolean;
66
50
  completedAt: z.ZodOptional<z.ZodString>;
67
- }, "strip", z.ZodTypeAny, {
68
- content: string;
69
- description: string;
70
- id: string;
71
- projectId: string;
72
- checked: boolean;
73
- priority: "p1" | "p2" | "p3" | "p4";
74
- recurring: string | boolean;
75
- parentId?: string | undefined;
76
- sectionId?: string | undefined;
77
- assignedByUid?: string | undefined;
78
- responsibleUid?: string | undefined;
79
- labels?: string[] | undefined;
80
- duration?: string | undefined;
81
- completedAt?: string | undefined;
82
- isUncompletable?: boolean | undefined;
83
- dueDate?: string | undefined;
84
- deadlineDate?: string | undefined;
85
- }, {
86
- content: string;
87
- description: string;
88
- id: string;
89
- projectId: string;
90
- checked: boolean;
91
- priority: "p1" | "p2" | "p3" | "p4";
92
- recurring: string | boolean;
93
- parentId?: string | undefined;
94
- sectionId?: string | undefined;
95
- assignedByUid?: string | undefined;
96
- responsibleUid?: string | undefined;
97
- labels?: string[] | undefined;
98
- duration?: string | undefined;
99
- completedAt?: string | undefined;
100
- isUncompletable?: boolean | undefined;
101
- dueDate?: string | undefined;
102
- deadlineDate?: string | undefined;
103
- }>, "many">;
51
+ }, z.core.$strip>>;
104
52
  totalCount: z.ZodNumber;
105
53
  };
106
54
  mutability: "additive";
@@ -108,16 +56,16 @@ declare const addTasks: {
108
56
  tasks: {
109
57
  content: string;
110
58
  description?: string | undefined;
111
- parentId?: string | undefined;
112
- projectId?: string | undefined;
113
- sectionId?: string | undefined;
114
- labels?: string[] | undefined;
115
- duration?: string | undefined;
116
59
  priority?: "p1" | "p2" | "p3" | "p4" | undefined;
117
- isUncompletable?: boolean | undefined;
118
- deadlineDate?: string | undefined;
119
60
  dueString?: string | undefined;
61
+ deadlineDate?: string | undefined;
62
+ duration?: string | undefined;
63
+ labels?: string[] | undefined;
64
+ projectId?: string | undefined;
65
+ sectionId?: string | undefined;
66
+ parentId?: string | undefined;
120
67
  responsibleUser?: string | undefined;
68
+ isUncompletable?: boolean | undefined;
121
69
  }[];
122
70
  }, client: TodoistApi): Promise<{
123
71
  textContent: string;
@@ -1 +1 @@
1
- {"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuEvB,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBiD,CAAA;AA0I/D,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuEvB,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBiD,CAAA;AA0I/D,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -3,23 +3,15 @@ declare const completeTasks: {
3
3
  name: "complete-tasks";
4
4
  description: string;
5
5
  parameters: {
6
- ids: z.ZodArray<z.ZodString, "many">;
6
+ ids: z.ZodArray<z.ZodString>;
7
7
  };
8
8
  outputSchema: {
9
- completed: z.ZodArray<z.ZodString, "many">;
9
+ completed: z.ZodArray<z.ZodString>;
10
10
  failures: z.ZodArray<z.ZodObject<{
11
11
  item: z.ZodString;
12
12
  error: z.ZodString;
13
13
  code: z.ZodOptional<z.ZodString>;
14
- }, "strip", z.ZodTypeAny, {
15
- error: string;
16
- item: string;
17
- code?: string | undefined;
18
- }, {
19
- error: string;
20
- item: string;
21
- code?: string | undefined;
22
- }>, "many">;
14
+ }, z.core.$strip>>;
23
15
  totalRequested: z.ZodNumber;
24
16
  successCount: z.ZodNumber;
25
17
  failureCount: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"complete-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/complete-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkBvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAQmB,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;CAgCX,CAAA;AAoB/D,OAAO,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"complete-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/complete-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkBvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;sBAQmB,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;CAgCX,CAAA;AAoB/D,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -3,31 +3,35 @@ declare const deleteObject: {
3
3
  name: "delete-object";
4
4
  description: string;
5
5
  parameters: {
6
- type: z.ZodEnum<["project", "section", "task", "comment"]>;
6
+ type: z.ZodEnum<{
7
+ task: "task";
8
+ comment: "comment";
9
+ project: "project";
10
+ section: "section";
11
+ }>;
7
12
  id: z.ZodString;
8
13
  };
9
14
  outputSchema: {
10
15
  deletedEntity: z.ZodObject<{
11
- type: z.ZodEnum<["project", "section", "task", "comment"]>;
16
+ type: z.ZodEnum<{
17
+ task: "task";
18
+ comment: "comment";
19
+ project: "project";
20
+ section: "section";
21
+ }>;
12
22
  id: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- type: "comment" | "task" | "project" | "section";
15
- id: string;
16
- }, {
17
- type: "comment" | "task" | "project" | "section";
18
- id: string;
19
- }>;
23
+ }, z.core.$strip>;
20
24
  success: z.ZodBoolean;
21
25
  };
22
26
  mutability: "mutating";
23
27
  execute(args: {
24
- type: "comment" | "task" | "project" | "section";
28
+ type: "task" | "comment" | "project" | "section";
25
29
  id: string;
26
30
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
27
31
  textContent: string;
28
32
  structuredContent: {
29
33
  deletedEntity: {
30
- type: "comment" | "task" | "project" | "section";
34
+ type: "task" | "comment" | "project" | "section";
31
35
  id: string;
32
36
  };
33
37
  success: true;
@@ -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;AAuBvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B6C,CAAA;AAE/D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B6C,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -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;AA8BvB;;;;;GAKG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;CAwFoD,CAAA;AAE/D,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;AAiCvB;;;;;GAKG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;CAwFoD,CAAA;AAE/D,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -3,9 +3,23 @@ declare const findActivity: {
3
3
  name: "find-activity";
4
4
  description: string;
5
5
  parameters: {
6
- objectType: z.ZodOptional<z.ZodEnum<["task", "project", "comment"]>>;
6
+ objectType: z.ZodOptional<z.ZodEnum<{
7
+ task: "task";
8
+ comment: "comment";
9
+ project: "project";
10
+ }>>;
7
11
  objectId: z.ZodOptional<z.ZodString>;
8
- eventType: z.ZodOptional<z.ZodEnum<["added", "updated", "deleted", "completed", "uncompleted", "archived", "unarchived", "shared", "left"]>>;
12
+ eventType: z.ZodOptional<z.ZodEnum<{
13
+ completed: "completed";
14
+ added: "added";
15
+ updated: "updated";
16
+ deleted: "deleted";
17
+ uncompleted: "uncompleted";
18
+ archived: "archived";
19
+ unarchived: "unarchived";
20
+ shared: "shared";
21
+ left: "left";
22
+ }>>;
9
23
  projectId: z.ZodOptional<z.ZodString>;
10
24
  taskId: z.ZodOptional<z.ZodString>;
11
25
  initiatorId: z.ZodOptional<z.ZodString>;
@@ -23,27 +37,7 @@ declare const findActivity: {
23
37
  parentItemId: z.ZodOptional<z.ZodString>;
24
38
  initiatorId: z.ZodOptional<z.ZodString>;
25
39
  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">;
40
+ }, z.core.$strip>>;
47
41
  nextCursor: z.ZodOptional<z.ZodString>;
48
42
  totalCount: z.ZodNumber;
49
43
  hasMore: z.ZodBoolean;
@@ -52,13 +46,13 @@ declare const findActivity: {
52
46
  mutability: "readonly";
53
47
  execute(args: {
54
48
  limit: number;
55
- cursor?: string | undefined;
56
- projectId?: string | undefined;
57
- objectType?: "comment" | "task" | "project" | undefined;
49
+ objectType?: "task" | "comment" | "project" | undefined;
58
50
  objectId?: string | undefined;
59
51
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
60
- initiatorId?: string | undefined;
52
+ projectId?: string | undefined;
61
53
  taskId?: string | undefined;
54
+ initiatorId?: string | undefined;
55
+ cursor?: string | undefined;
62
56
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
63
57
  textContent: string;
64
58
  structuredContent: {
@@ -78,13 +72,13 @@ declare const findActivity: {
78
72
  hasMore: boolean;
79
73
  appliedFilters: {
80
74
  limit: number;
81
- cursor?: string | undefined;
82
- projectId?: string | undefined;
83
- objectType?: "comment" | "task" | "project" | undefined;
75
+ objectType?: "task" | "comment" | "project" | undefined;
84
76
  objectId?: string | undefined;
85
77
  eventType?: "completed" | "added" | "updated" | "deleted" | "uncompleted" | "archived" | "unarchived" | "shared" | "left" | undefined;
86
- initiatorId?: string | undefined;
78
+ projectId?: string | undefined;
87
79
  taskId?: string | undefined;
80
+ initiatorId?: string | undefined;
81
+ cursor?: string | undefined;
88
82
  };
89
83
  };
90
84
  }>;
@@ -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;AA8DvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC6C,CAAA;AAuI/D,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;AAgEvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC6C,CAAA;AAuI/D,OAAO,EAAE,YAAY,EAAE,CAAA"}