@doist/todoist-ai 4.17.0 → 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 (63) 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 +117 -386
  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-BMGcSL1c.js} +926 -960
  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 +20 -18
  13. package/dist/tool-helpers.d.ts.map +1 -1
  14. package/dist/tools/add-comments.d.ts +1 -15
  15. package/dist/tools/add-comments.d.ts.map +1 -1
  16. package/dist/tools/add-projects.d.ts +5 -17
  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 +7 -21
  21. package/dist/tools/add-tasks.d.ts.map +1 -1
  22. package/dist/tools/complete-tasks.d.ts +1 -15
  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 +13 -27
  29. package/dist/tools/find-activity.d.ts.map +1 -1
  30. package/dist/tools/find-comments.d.ts +2 -16
  31. package/dist/tools/find-comments.d.ts.map +1 -1
  32. package/dist/tools/find-completed-tasks.d.ts +8 -22
  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 +3 -17
  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 +8 -22
  41. package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
  42. package/dist/tools/find-tasks.d.ts +8 -22
  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 +1 -15
  51. package/dist/tools/update-comments.d.ts.map +1 -1
  52. package/dist/tools/update-projects.d.ts +5 -17
  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 +7 -21
  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 +6 -6
  61. package/dist/utils/test-helpers.d.ts +1 -33
  62. package/dist/utils/test-helpers.d.ts.map +1 -1
  63. package/package.json +13 -13
package/dist/index.d.ts CHANGED
@@ -135,10 +135,7 @@ declare const tools: {
135
135
  responsibleUser?: string | undefined;
136
136
  }[];
137
137
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
138
- content: {
139
- type: "text";
140
- text: string;
141
- }[];
138
+ textContent: string;
142
139
  structuredContent: {
143
140
  tasks: {
144
141
  id: string;
@@ -149,28 +146,17 @@ declare const tools: {
149
146
  deadlineDate: string | undefined;
150
147
  priority: number;
151
148
  projectId: string;
152
- sectionId: string | null;
153
- parentId: string | null;
149
+ sectionId: string | undefined;
150
+ parentId: string | undefined;
154
151
  labels: string[];
155
- duration: string | null;
156
- responsibleUid: string | null;
157
- assignedByUid: string | null;
152
+ duration: string | undefined;
153
+ responsibleUid: string | undefined;
154
+ assignedByUid: string | undefined;
158
155
  checked: boolean;
159
- completedAt: string | null;
156
+ completedAt: string | undefined;
160
157
  }[];
161
158
  totalCount: number;
162
159
  };
163
- } | {
164
- content: ({
165
- type: "text";
166
- text: string;
167
- mimeType?: undefined;
168
- } | {
169
- type: "text";
170
- mimeType: string;
171
- text: string;
172
- })[];
173
- structuredContent?: undefined;
174
160
  }>;
175
161
  };
176
162
  completeTasks: {
@@ -201,10 +187,7 @@ declare const tools: {
201
187
  execute(args: {
202
188
  ids: string[];
203
189
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
204
- content: {
205
- type: "text";
206
- text: string;
207
- }[];
190
+ textContent: string;
208
191
  structuredContent: {
209
192
  completed: string[];
210
193
  failures: {
@@ -216,17 +199,6 @@ declare const tools: {
216
199
  successCount: number;
217
200
  failureCount: number;
218
201
  };
219
- } | {
220
- content: ({
221
- type: "text";
222
- text: string;
223
- mimeType?: undefined;
224
- } | {
225
- type: "text";
226
- mimeType: string;
227
- text: string;
228
- })[];
229
- structuredContent?: undefined;
230
202
  }>;
231
203
  };
232
204
  updateTasks: {
@@ -360,10 +332,7 @@ declare const tools: {
360
332
  order?: number | undefined;
361
333
  }[];
362
334
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
363
- content: {
364
- type: "text";
365
- text: string;
366
- }[];
335
+ textContent: string;
367
336
  structuredContent: {
368
337
  tasks: {
369
338
  id: string;
@@ -374,14 +343,14 @@ declare const tools: {
374
343
  deadlineDate: string | undefined;
375
344
  priority: number;
376
345
  projectId: string;
377
- sectionId: string | null;
378
- parentId: string | null;
346
+ sectionId: string | undefined;
347
+ parentId: string | undefined;
379
348
  labels: string[];
380
- duration: string | null;
381
- responsibleUid: string | null;
382
- assignedByUid: string | null;
349
+ duration: string | undefined;
350
+ responsibleUid: string | undefined;
351
+ assignedByUid: string | undefined;
383
352
  checked: boolean;
384
- completedAt: string | null;
353
+ completedAt: string | undefined;
385
354
  }[];
386
355
  totalCount: number;
387
356
  updatedTaskIds: string[];
@@ -390,17 +359,6 @@ declare const tools: {
390
359
  skippedCount: number;
391
360
  };
392
361
  };
393
- } | {
394
- content: ({
395
- type: "text";
396
- text: string;
397
- mimeType?: undefined;
398
- } | {
399
- type: "text";
400
- mimeType: string;
401
- text: string;
402
- })[];
403
- structuredContent?: undefined;
404
362
  }>;
405
363
  };
406
364
  findTasks: {
@@ -488,10 +446,7 @@ declare const tools: {
488
446
  labelsOperator?: "and" | "or" | undefined;
489
447
  searchText?: string | undefined;
490
448
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
491
- content: {
492
- type: "text";
493
- text: string;
494
- }[];
449
+ textContent: string;
495
450
  structuredContent: {
496
451
  tasks: {
497
452
  id: string;
@@ -502,16 +457,16 @@ declare const tools: {
502
457
  deadlineDate: string | undefined;
503
458
  priority: number;
504
459
  projectId: string;
505
- sectionId: string | null;
506
- parentId: string | null;
460
+ sectionId: string | undefined;
461
+ parentId: string | undefined;
507
462
  labels: string[];
508
- duration: string | null;
509
- responsibleUid: string | null;
510
- assignedByUid: string | null;
463
+ duration: string | undefined;
464
+ responsibleUid: string | undefined;
465
+ assignedByUid: string | undefined;
511
466
  checked: boolean;
512
- completedAt: string | null;
467
+ completedAt: string | undefined;
513
468
  }[];
514
- nextCursor: string | null;
469
+ nextCursor: string | undefined;
515
470
  totalCount: number;
516
471
  hasMore: boolean;
517
472
  appliedFilters: {
@@ -527,17 +482,6 @@ declare const tools: {
527
482
  searchText?: string | undefined;
528
483
  };
529
484
  };
530
- } | {
531
- content: ({
532
- type: "text";
533
- text: string;
534
- mimeType?: undefined;
535
- } | {
536
- type: "text";
537
- mimeType: string;
538
- text: string;
539
- })[];
540
- structuredContent?: undefined;
541
485
  }>;
542
486
  };
543
487
  findTasksByDate: {
@@ -623,10 +567,7 @@ declare const tools: {
623
567
  startDate?: string | undefined;
624
568
  overdueOption?: "overdue-only" | "include-overdue" | "exclude-overdue" | undefined;
625
569
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
626
- content: {
627
- type: "text";
628
- text: string;
629
- }[];
570
+ textContent: string;
630
571
  structuredContent: {
631
572
  tasks: {
632
573
  id: string;
@@ -637,16 +578,16 @@ declare const tools: {
637
578
  deadlineDate: string | undefined;
638
579
  priority: number;
639
580
  projectId: string;
640
- sectionId: string | null;
641
- parentId: string | null;
581
+ sectionId: string | undefined;
582
+ parentId: string | undefined;
642
583
  labels: string[];
643
- duration: string | null;
644
- responsibleUid: string | null;
645
- assignedByUid: string | null;
584
+ duration: string | undefined;
585
+ responsibleUid: string | undefined;
586
+ assignedByUid: string | undefined;
646
587
  checked: boolean;
647
- completedAt: string | null;
588
+ completedAt: string | undefined;
648
589
  }[];
649
- nextCursor: string | null;
590
+ nextCursor: string | undefined;
650
591
  totalCount: number;
651
592
  hasMore: boolean;
652
593
  appliedFilters: {
@@ -661,17 +602,6 @@ declare const tools: {
661
602
  overdueOption?: "overdue-only" | "include-overdue" | "exclude-overdue" | undefined;
662
603
  };
663
604
  };
664
- } | {
665
- content: ({
666
- type: "text";
667
- text: string;
668
- mimeType?: undefined;
669
- } | {
670
- type: "text";
671
- mimeType: string;
672
- text: string;
673
- })[];
674
- structuredContent?: undefined;
675
605
  }>;
676
606
  };
677
607
  findCompletedTasks: {
@@ -763,10 +693,7 @@ declare const tools: {
763
693
  responsibleUser?: string | undefined;
764
694
  labelsOperator?: "and" | "or" | undefined;
765
695
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
766
- content: {
767
- type: "text";
768
- text: string;
769
- }[];
696
+ textContent: string;
770
697
  structuredContent: {
771
698
  tasks: {
772
699
  id: string;
@@ -777,16 +704,16 @@ declare const tools: {
777
704
  deadlineDate: string | undefined;
778
705
  priority: number;
779
706
  projectId: string;
780
- sectionId: string | null;
781
- parentId: string | null;
707
+ sectionId: string | undefined;
708
+ parentId: string | undefined;
782
709
  labels: string[];
783
- duration: string | null;
784
- responsibleUid: string | null;
785
- assignedByUid: string | null;
710
+ duration: string | undefined;
711
+ responsibleUid: string | undefined;
712
+ assignedByUid: string | undefined;
786
713
  checked: boolean;
787
- completedAt: string | null;
714
+ completedAt: string | undefined;
788
715
  }[];
789
- nextCursor: string | null;
716
+ nextCursor: string | undefined;
790
717
  totalCount: number;
791
718
  hasMore: boolean;
792
719
  appliedFilters: {
@@ -804,17 +731,6 @@ declare const tools: {
804
731
  labelsOperator?: "and" | "or" | undefined;
805
732
  };
806
733
  };
807
- } | {
808
- content: ({
809
- type: "text";
810
- text: string;
811
- mimeType?: undefined;
812
- } | {
813
- type: "text";
814
- mimeType: string;
815
- text: string;
816
- })[];
817
- structuredContent?: undefined;
818
734
  }>;
819
735
  };
820
736
  addProjects: {
@@ -877,12 +793,11 @@ declare const tools: {
877
793
  viewStyle?: "list" | "board" | "calendar" | undefined;
878
794
  }[];
879
795
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
880
- content: {
881
- type: "text";
882
- text: string;
883
- }[];
796
+ textContent: string;
884
797
  structuredContent: {
885
798
  projects: ({
799
+ parentId: string | undefined;
800
+ inboxProject: boolean;
886
801
  url: string;
887
802
  id: string;
888
803
  canAssignTasks: boolean;
@@ -900,9 +815,9 @@ declare const tools: {
900
815
  description: string;
901
816
  isCollapsed: boolean;
902
817
  isShared: boolean;
903
- parentId: string | null;
904
- inboxProject: boolean;
905
818
  } | {
819
+ parentId: string | undefined;
820
+ inboxProject: boolean;
906
821
  url: string;
907
822
  id: string;
908
823
  canAssignTasks: boolean;
@@ -930,17 +845,6 @@ declare const tools: {
930
845
  })[];
931
846
  totalCount: number;
932
847
  };
933
- } | {
934
- content: ({
935
- type: "text";
936
- text: string;
937
- mimeType?: undefined;
938
- } | {
939
- type: "text";
940
- mimeType: string;
941
- text: string;
942
- })[];
943
- structuredContent?: undefined;
944
848
  }>;
945
849
  };
946
850
  updateProjects: {
@@ -1014,12 +918,11 @@ declare const tools: {
1014
918
  viewStyle?: "list" | "board" | "calendar" | undefined;
1015
919
  }[];
1016
920
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1017
- content: {
1018
- type: "text";
1019
- text: string;
1020
- }[];
921
+ textContent: string;
1021
922
  structuredContent: {
1022
923
  projects: ({
924
+ parentId: string | undefined;
925
+ inboxProject: boolean;
1023
926
  url: string;
1024
927
  id: string;
1025
928
  canAssignTasks: boolean;
@@ -1037,9 +940,9 @@ declare const tools: {
1037
940
  description: string;
1038
941
  isCollapsed: boolean;
1039
942
  isShared: boolean;
1040
- parentId: string | null;
1041
- inboxProject: boolean;
1042
943
  } | {
944
+ parentId: string | undefined;
945
+ inboxProject: boolean;
1043
946
  url: string;
1044
947
  id: string;
1045
948
  canAssignTasks: boolean;
@@ -1072,17 +975,6 @@ declare const tools: {
1072
975
  skippedCount: number;
1073
976
  };
1074
977
  };
1075
- } | {
1076
- content: ({
1077
- type: "text";
1078
- text: string;
1079
- mimeType?: undefined;
1080
- } | {
1081
- type: "text";
1082
- mimeType: string;
1083
- text: string;
1084
- })[];
1085
- structuredContent?: undefined;
1086
978
  }>;
1087
979
  };
1088
980
  findProjects: {
@@ -1132,10 +1024,7 @@ declare const tools: {
1132
1024
  search?: string | undefined;
1133
1025
  cursor?: string | undefined;
1134
1026
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1135
- content: {
1136
- type: "text";
1137
- text: string;
1138
- }[];
1027
+ textContent: string;
1139
1028
  structuredContent: {
1140
1029
  projects: {
1141
1030
  id: string;
@@ -1143,11 +1032,11 @@ declare const tools: {
1143
1032
  color: string;
1144
1033
  isFavorite: boolean;
1145
1034
  isShared: boolean;
1146
- parentId: string | null;
1035
+ parentId: string | undefined;
1147
1036
  inboxProject: boolean;
1148
1037
  viewStyle: string;
1149
1038
  }[];
1150
- nextCursor: string | null;
1039
+ nextCursor: string | undefined;
1151
1040
  totalCount: number;
1152
1041
  hasMore: boolean;
1153
1042
  appliedFilters: {
@@ -1156,17 +1045,6 @@ declare const tools: {
1156
1045
  cursor?: string | undefined;
1157
1046
  };
1158
1047
  };
1159
- } | {
1160
- content: ({
1161
- type: "text";
1162
- text: string;
1163
- mimeType?: undefined;
1164
- } | {
1165
- type: "text";
1166
- mimeType: string;
1167
- text: string;
1168
- })[];
1169
- structuredContent?: undefined;
1170
1048
  }>;
1171
1049
  };
1172
1050
  addSections: {
@@ -1203,10 +1081,7 @@ declare const tools: {
1203
1081
  projectId: string;
1204
1082
  }[];
1205
1083
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1206
- content: {
1207
- type: "text";
1208
- text: string;
1209
- }[];
1084
+ textContent: string;
1210
1085
  structuredContent: {
1211
1086
  sections: {
1212
1087
  url: string;
@@ -1224,17 +1099,6 @@ declare const tools: {
1224
1099
  }[];
1225
1100
  totalCount: number;
1226
1101
  };
1227
- } | {
1228
- content: ({
1229
- type: "text";
1230
- text: string;
1231
- mimeType?: undefined;
1232
- } | {
1233
- type: "text";
1234
- mimeType: string;
1235
- text: string;
1236
- })[];
1237
- structuredContent?: undefined;
1238
1102
  }>;
1239
1103
  };
1240
1104
  updateSections: {
@@ -1272,10 +1136,7 @@ declare const tools: {
1272
1136
  id: string;
1273
1137
  }[];
1274
1138
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1275
- content: {
1276
- type: "text";
1277
- text: string;
1278
- }[];
1139
+ textContent: string;
1279
1140
  structuredContent: {
1280
1141
  sections: {
1281
1142
  url: string;
@@ -1294,17 +1155,6 @@ declare const tools: {
1294
1155
  totalCount: number;
1295
1156
  updatedSectionIds: string[];
1296
1157
  };
1297
- } | {
1298
- content: ({
1299
- type: "text";
1300
- text: string;
1301
- mimeType?: undefined;
1302
- } | {
1303
- type: "text";
1304
- mimeType: string;
1305
- text: string;
1306
- })[];
1307
- structuredContent?: undefined;
1308
1158
  }>;
1309
1159
  };
1310
1160
  findSections: {
@@ -1332,10 +1182,7 @@ declare const tools: {
1332
1182
  projectId: string;
1333
1183
  search?: string | undefined;
1334
1184
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1335
- content: {
1336
- type: "text";
1337
- text: string;
1338
- }[];
1185
+ textContent: string;
1339
1186
  structuredContent: {
1340
1187
  sections: {
1341
1188
  id: string;
@@ -1347,17 +1194,6 @@ declare const tools: {
1347
1194
  search?: string | undefined;
1348
1195
  };
1349
1196
  };
1350
- } | {
1351
- content: ({
1352
- type: "text";
1353
- text: string;
1354
- mimeType?: undefined;
1355
- } | {
1356
- type: "text";
1357
- mimeType: string;
1358
- text: string;
1359
- })[];
1360
- structuredContent?: undefined;
1361
1197
  }>;
1362
1198
  };
1363
1199
  addComments: {
@@ -1451,10 +1287,7 @@ declare const tools: {
1451
1287
  taskId?: string | undefined;
1452
1288
  }[];
1453
1289
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1454
- content: {
1455
- type: "text";
1456
- text: string;
1457
- }[];
1290
+ textContent: string;
1458
1291
  structuredContent: {
1459
1292
  comments: {
1460
1293
  taskId: string | undefined;
@@ -1484,17 +1317,6 @@ declare const tools: {
1484
1317
  totalCount: number;
1485
1318
  addedCommentIds: string[];
1486
1319
  };
1487
- } | {
1488
- content: ({
1489
- type: "text";
1490
- text: string;
1491
- mimeType?: undefined;
1492
- } | {
1493
- type: "text";
1494
- mimeType: string;
1495
- text: string;
1496
- })[];
1497
- structuredContent?: undefined;
1498
1320
  }>;
1499
1321
  };
1500
1322
  updateComments: {
@@ -1591,10 +1413,7 @@ declare const tools: {
1591
1413
  id: string;
1592
1414
  }[];
1593
1415
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1594
- content: {
1595
- type: "text";
1596
- text: string;
1597
- }[];
1416
+ textContent: string;
1598
1417
  structuredContent: {
1599
1418
  comments: {
1600
1419
  taskId: string | undefined;
@@ -1627,17 +1446,6 @@ declare const tools: {
1627
1446
  updateCount: number;
1628
1447
  };
1629
1448
  };
1630
- } | {
1631
- content: ({
1632
- type: "text";
1633
- text: string;
1634
- mimeType?: undefined;
1635
- } | {
1636
- type: "text";
1637
- mimeType: string;
1638
- text: string;
1639
- })[];
1640
- structuredContent?: undefined;
1641
1449
  }>;
1642
1450
  };
1643
1451
  findComments: {
@@ -1723,10 +1531,7 @@ declare const tools: {
1723
1531
  cursor?: string | undefined;
1724
1532
  commentId?: string | undefined;
1725
1533
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1726
- content: {
1727
- type: "text";
1728
- text: string;
1729
- }[];
1534
+ textContent: string;
1730
1535
  structuredContent: {
1731
1536
  comments: {
1732
1537
  taskId: string | undefined;
@@ -1756,20 +1561,9 @@ declare const tools: {
1756
1561
  searchType: string;
1757
1562
  searchId: string;
1758
1563
  hasMore: boolean;
1759
- nextCursor: string | null;
1564
+ nextCursor: string | undefined;
1760
1565
  totalCount: number;
1761
1566
  };
1762
- } | {
1763
- content: ({
1764
- type: "text";
1765
- text: string;
1766
- mimeType?: undefined;
1767
- } | {
1768
- type: "text";
1769
- mimeType: string;
1770
- text: string;
1771
- })[];
1772
- structuredContent?: undefined;
1773
1567
  }>;
1774
1568
  };
1775
1569
  findActivity: {
@@ -1787,7 +1581,7 @@ declare const tools: {
1787
1581
  };
1788
1582
  outputSchema: {
1789
1583
  events: import('zod').ZodArray<import('zod').ZodObject<{
1790
- id: import('zod').ZodString;
1584
+ id: import('zod').ZodOptional<import('zod').ZodString>;
1791
1585
  objectType: import('zod').ZodString;
1792
1586
  objectId: import('zod').ZodString;
1793
1587
  eventType: import('zod').ZodString;
@@ -1795,27 +1589,27 @@ declare const tools: {
1795
1589
  parentProjectId: import('zod').ZodOptional<import('zod').ZodString>;
1796
1590
  parentItemId: import('zod').ZodOptional<import('zod').ZodString>;
1797
1591
  initiatorId: import('zod').ZodOptional<import('zod').ZodString>;
1798
- extraData: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>;
1592
+ extraData: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
1799
1593
  }, "strip", import('zod').ZodTypeAny, {
1800
- id: string;
1801
1594
  objectType: string;
1802
1595
  objectId: string;
1803
1596
  eventType: string;
1804
1597
  eventDate: string;
1805
- extraData: Record<string, unknown>;
1598
+ id?: string | undefined;
1806
1599
  parentProjectId?: string | undefined;
1807
1600
  parentItemId?: string | undefined;
1808
1601
  initiatorId?: string | undefined;
1602
+ extraData?: Record<string, unknown> | undefined;
1809
1603
  }, {
1810
- id: string;
1811
1604
  objectType: string;
1812
1605
  objectId: string;
1813
1606
  eventType: string;
1814
1607
  eventDate: string;
1815
- extraData: Record<string, unknown>;
1608
+ id?: string | undefined;
1816
1609
  parentProjectId?: string | undefined;
1817
1610
  parentItemId?: string | undefined;
1818
1611
  initiatorId?: string | undefined;
1612
+ extraData?: Record<string, unknown> | undefined;
1819
1613
  }>, "many">;
1820
1614
  nextCursor: import('zod').ZodOptional<import('zod').ZodString>;
1821
1615
  totalCount: import('zod').ZodNumber;
@@ -1832,23 +1626,20 @@ declare const tools: {
1832
1626
  initiatorId?: string | undefined;
1833
1627
  cursor?: string | undefined;
1834
1628
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1835
- content: {
1836
- type: "text";
1837
- text: string;
1838
- }[];
1629
+ textContent: string;
1839
1630
  structuredContent: {
1840
1631
  events: {
1841
- id: string | null;
1632
+ id: string | undefined;
1842
1633
  objectType: string;
1843
1634
  objectId: string;
1844
1635
  eventType: string;
1845
1636
  eventDate: string;
1846
- parentProjectId: string | null;
1847
- parentItemId: string | null;
1848
- initiatorId: string | null;
1849
- extraData: Record<string, any> | null;
1637
+ parentProjectId: string | undefined;
1638
+ parentItemId: string | undefined;
1639
+ initiatorId: string | undefined;
1640
+ extraData: Record<string, any> | undefined;
1850
1641
  }[];
1851
- nextCursor: string | null;
1642
+ nextCursor: string | undefined;
1852
1643
  totalCount: number;
1853
1644
  hasMore: boolean;
1854
1645
  appliedFilters: {
@@ -1862,17 +1653,6 @@ declare const tools: {
1862
1653
  cursor?: string | undefined;
1863
1654
  };
1864
1655
  };
1865
- } | {
1866
- content: ({
1867
- type: "text";
1868
- text: string;
1869
- mimeType?: undefined;
1870
- } | {
1871
- type: "text";
1872
- mimeType: string;
1873
- text: string;
1874
- })[];
1875
- structuredContent?: undefined;
1876
1656
  }>;
1877
1657
  };
1878
1658
  getOverview: {
@@ -1884,7 +1664,7 @@ declare const tools: {
1884
1664
  outputSchema: {
1885
1665
  type: import('zod').ZodEnum<["account_overview", "project_overview"]>;
1886
1666
  totalProjects: import('zod').ZodOptional<import('zod').ZodNumber>;
1887
- totalTasks: import('zod').ZodNumber;
1667
+ totalTasks: import('zod').ZodOptional<import('zod').ZodNumber>;
1888
1668
  totalSections: import('zod').ZodOptional<import('zod').ZodNumber>;
1889
1669
  tasksWithoutSection: import('zod').ZodOptional<import('zod').ZodNumber>;
1890
1670
  projectInfo: import('zod').ZodOptional<import('zod').ZodObject<{
@@ -1903,26 +1683,19 @@ declare const tools: {
1903
1683
  isFavorite: boolean;
1904
1684
  isShared: boolean;
1905
1685
  }>>;
1686
+ hasNestedProjects: import('zod').ZodOptional<import('zod').ZodBoolean>;
1687
+ inbox: import('zod').ZodOptional<import('zod').ZodAny>;
1688
+ projects: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodAny, "many">>;
1689
+ project: import('zod').ZodOptional<import('zod').ZodAny>;
1690
+ sections: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodAny, "many">>;
1691
+ tasks: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodAny, "many">>;
1692
+ stats: import('zod').ZodOptional<import('zod').ZodAny>;
1906
1693
  };
1907
1694
  execute(args: {
1908
1695
  projectId?: string | undefined;
1909
1696
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1910
- content: {
1911
- type: "text";
1912
- text: string;
1913
- }[];
1697
+ textContent: string;
1914
1698
  structuredContent: import('./tools/get-overview.js').AccountOverviewStructured | import('./tools/get-overview.js').ProjectOverviewStructured;
1915
- } | {
1916
- content: ({
1917
- type: "text";
1918
- text: string;
1919
- mimeType?: undefined;
1920
- } | {
1921
- type: "text";
1922
- mimeType: string;
1923
- text: string;
1924
- })[];
1925
- structuredContent?: undefined;
1926
1699
  }>;
1927
1700
  };
1928
1701
  deleteObject: {
@@ -1949,28 +1722,14 @@ declare const tools: {
1949
1722
  type: "comment" | "task" | "project" | "section";
1950
1723
  id: string;
1951
1724
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1952
- content: {
1953
- type: "text";
1954
- text: string;
1955
- }[];
1725
+ textContent: string;
1956
1726
  structuredContent: {
1957
1727
  deletedEntity: {
1958
1728
  type: "comment" | "task" | "project" | "section";
1959
1729
  id: string;
1960
1730
  };
1961
- success: boolean;
1731
+ success: true;
1962
1732
  };
1963
- } | {
1964
- content: ({
1965
- type: "text";
1966
- text: string;
1967
- mimeType?: undefined;
1968
- } | {
1969
- type: "text";
1970
- mimeType: string;
1971
- text: string;
1972
- })[];
1973
- structuredContent?: undefined;
1974
1733
  }>;
1975
1734
  };
1976
1735
  userInfo: {
@@ -1995,22 +1754,8 @@ declare const tools: {
1995
1754
  plan: import('zod').ZodEnum<["Todoist Free", "Todoist Pro", "Todoist Business"]>;
1996
1755
  };
1997
1756
  execute(_args: {}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
1998
- content: {
1999
- type: "text";
2000
- text: string;
2001
- }[];
1757
+ textContent: string;
2002
1758
  structuredContent: import('./tools/user-info.js').UserInfoStructured;
2003
- } | {
2004
- content: ({
2005
- type: "text";
2006
- text: string;
2007
- mimeType?: undefined;
2008
- } | {
2009
- type: "text";
2010
- mimeType: string;
2011
- text: string;
2012
- })[];
2013
- structuredContent?: undefined;
2014
1759
  }>;
2015
1760
  };
2016
1761
  findProjectCollaborators: {
@@ -2055,45 +1800,45 @@ declare const tools: {
2055
1800
  projectId: string;
2056
1801
  searchTerm?: string | undefined;
2057
1802
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
2058
- content: {
2059
- type: "text";
2060
- text: string;
2061
- }[];
1803
+ textContent: string;
2062
1804
  structuredContent: {
2063
1805
  collaborators: never[];
2064
1806
  projectInfo: {
2065
1807
  id: string;
2066
1808
  name: string;
2067
- isShared: boolean;
1809
+ isShared: false;
2068
1810
  };
2069
1811
  totalCount: number;
2070
1812
  appliedFilters: {
2071
1813
  projectId: string;
2072
1814
  searchTerm?: string | undefined;
2073
1815
  };
1816
+ totalAvailable?: undefined;
2074
1817
  };
2075
1818
  } | {
2076
- content: ({
2077
- type: "text";
2078
- text: string;
2079
- mimeType?: undefined;
2080
- } | {
2081
- type: "text";
2082
- mimeType: string;
2083
- text: string;
2084
- })[];
2085
- structuredContent?: undefined;
1819
+ textContent: string;
1820
+ structuredContent: {
1821
+ collaborators: never[];
1822
+ projectInfo: {
1823
+ id: string;
1824
+ name: string;
1825
+ isShared: true;
1826
+ };
1827
+ totalCount: number;
1828
+ appliedFilters: {
1829
+ projectId: string;
1830
+ searchTerm?: string | undefined;
1831
+ };
1832
+ totalAvailable?: undefined;
1833
+ };
2086
1834
  } | {
2087
- content: {
2088
- type: "text";
2089
- text: string;
2090
- }[];
1835
+ textContent: string;
2091
1836
  structuredContent: {
2092
1837
  collaborators: import('./utils/user-resolver.js').ProjectCollaborator[];
2093
1838
  projectInfo: {
2094
1839
  id: string;
2095
1840
  name: string;
2096
- isShared: boolean;
1841
+ isShared: true;
2097
1842
  };
2098
1843
  totalCount: number;
2099
1844
  totalAvailable: number;
@@ -2134,7 +1879,7 @@ declare const tools: {
2134
1879
  originalAssigneeId?: string | undefined;
2135
1880
  newAssigneeId?: string | undefined;
2136
1881
  }>, "many">;
2137
- summary: import('zod').ZodObject<{
1882
+ summary: import('zod').ZodOptional<import('zod').ZodObject<{
2138
1883
  total: import('zod').ZodNumber;
2139
1884
  succeeded: import('zod').ZodNumber;
2140
1885
  failed: import('zod').ZodNumber;
@@ -2149,7 +1894,7 @@ declare const tools: {
2149
1894
  succeeded: number;
2150
1895
  failed: number;
2151
1896
  dryRun: boolean;
2152
- }>;
1897
+ }>>;
2153
1898
  };
2154
1899
  execute(args: {
2155
1900
  dryRun: boolean;
@@ -2158,10 +1903,7 @@ declare const tools: {
2158
1903
  responsibleUser?: string | undefined;
2159
1904
  fromAssigneeUser?: string | undefined;
2160
1905
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
2161
- content: {
2162
- type: "text";
2163
- text: string;
2164
- }[];
1906
+ textContent: string;
2165
1907
  structuredContent: {
2166
1908
  operation: "assign" | "unassign" | "reassign";
2167
1909
  results: import('./tools/manage-assignments.js').OperationResult[];
@@ -2170,17 +1912,6 @@ declare const tools: {
2170
1912
  failed: number;
2171
1913
  dryRun: boolean;
2172
1914
  };
2173
- } | {
2174
- content: ({
2175
- type: "text";
2176
- text: string;
2177
- mimeType?: undefined;
2178
- } | {
2179
- type: "text";
2180
- mimeType: string;
2181
- text: string;
2182
- })[];
2183
- structuredContent?: undefined;
2184
1915
  }>;
2185
1916
  };
2186
1917
  search: {
@@ -2208,11 +1939,15 @@ declare const tools: {
2208
1939
  execute(args: {
2209
1940
  query: string;
2210
1941
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
2211
- content: {
2212
- type: "text";
2213
- text: string;
2214
- }[];
2215
- isError?: boolean;
1942
+ textContent: string;
1943
+ structuredContent: {
1944
+ results: {
1945
+ id: string;
1946
+ title: string;
1947
+ url: string;
1948
+ }[];
1949
+ totalCount: number;
1950
+ };
2216
1951
  }>;
2217
1952
  };
2218
1953
  fetch: {
@@ -2231,11 +1966,7 @@ declare const tools: {
2231
1966
  execute(args: {
2232
1967
  id: string;
2233
1968
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
2234
- content: {
2235
- type: "text";
2236
- text: string;
2237
- }[];
2238
- isError?: boolean;
1969
+ textContent: string;
2239
1970
  }>;
2240
1971
  };
2241
1972
  };