@todoist/mcp 17.4.1 → 18.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 (47) hide show
  1. package/README.md +11 -8
  2. package/dist/index.d.ts +615 -14
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +55 -52
  5. package/dist/main-http.js +2 -2
  6. package/dist/main.js +1 -1
  7. package/dist/mcp-apps/index.html +1 -1
  8. package/dist/{mcp-server-C7dCGLGm.js → mcp-server-DXFRnKkl.js} +3037 -2333
  9. package/dist/mcp-server.d.ts +1 -1
  10. package/dist/mcp-server.d.ts.map +1 -1
  11. package/dist/{require-valid-todoist-token-DSS0GICs.js → require-valid-todoist-token-fkc7dw_2.js} +1 -1
  12. package/dist/tool-execution-error.d.ts +10 -0
  13. package/dist/tool-execution-error.d.ts.map +1 -1
  14. package/dist/tool-registry.d.ts +609 -11
  15. package/dist/tool-registry.d.ts.map +1 -1
  16. package/dist/tools/add-projects.d.ts +6 -2
  17. package/dist/tools/add-projects.d.ts.map +1 -1
  18. package/dist/tools/add-template.d.ts +252 -0
  19. package/dist/tools/add-template.d.ts.map +1 -0
  20. package/dist/tools/delete-object.d.ts +4 -4
  21. package/dist/tools/{export-project-template.d.ts → export-project.d.ts} +4 -4
  22. package/dist/tools/export-project.d.ts.map +1 -0
  23. package/dist/tools/fetch-object.d.ts +108 -1
  24. package/dist/tools/fetch-object.d.ts.map +1 -1
  25. package/dist/tools/find-templates.d.ts +56 -0
  26. package/dist/tools/find-templates.d.ts.map +1 -0
  27. package/dist/tools/{import-project-template.d.ts → import-into-project.d.ts} +4 -13
  28. package/dist/tools/import-into-project.d.ts.map +1 -0
  29. package/dist/tools/update-template.d.ts +190 -0
  30. package/dist/tools/update-template.d.ts.map +1 -0
  31. package/dist/utils/colors.d.ts +26 -0
  32. package/dist/utils/colors.d.ts.map +1 -1
  33. package/dist/utils/constants.d.ts +16 -0
  34. package/dist/utils/constants.d.ts.map +1 -1
  35. package/dist/utils/output-schemas.d.ts +9 -1
  36. package/dist/utils/output-schemas.d.ts.map +1 -1
  37. package/dist/utils/template-content.d.ts +97 -0
  38. package/dist/utils/template-content.d.ts.map +1 -0
  39. package/dist/utils/template-ids.d.ts +21 -0
  40. package/dist/utils/template-ids.d.ts.map +1 -0
  41. package/dist/utils/test-helpers.d.ts +5 -1
  42. package/dist/utils/test-helpers.d.ts.map +1 -1
  43. package/dist/utils/tool-names.d.ts +5 -2
  44. package/dist/utils/tool-names.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/tools/export-project-template.d.ts.map +0 -1
  47. package/dist/tools/import-project-template.d.ts.map +0 -1
@@ -794,7 +794,8 @@ declare const toolRegistry: {
794
794
  description: string;
795
795
  parameters: {
796
796
  projects: import('zod').ZodArray<import('zod').ZodObject<{
797
- name: import('zod').ZodString;
797
+ name: import('zod').ZodOptional<import('zod').ZodString>;
798
+ templateId: import('zod').ZodOptional<import('zod').ZodString>;
798
799
  parentId: import('zod').ZodOptional<import('zod').ZodString>;
799
800
  isFavorite: import('zod').ZodOptional<import('zod').ZodBoolean>;
800
801
  viewStyle: import('zod').ZodOptional<import('zod').ZodEnum<{
@@ -879,6 +880,7 @@ declare const toolRegistry: {
879
880
  }>>;
880
881
  workspace: import('zod').ZodOptional<import('zod').ZodString>;
881
882
  folderId: import('zod').ZodOptional<import('zod').ZodString>;
883
+ locale: import('zod').ZodOptional<import('zod').ZodString>;
882
884
  }, import('zod/v4/core').$strip>>;
883
885
  };
884
886
  outputSchema: {
@@ -937,7 +939,8 @@ declare const toolRegistry: {
937
939
  };
938
940
  execute({ projects }: {
939
941
  projects: {
940
- name: string;
942
+ name?: string | undefined;
943
+ templateId?: string | undefined;
941
944
  parentId?: string | undefined;
942
945
  isFavorite?: boolean | undefined;
943
946
  viewStyle?: "list" | "calendar" | "board" | "table" | undefined;
@@ -946,6 +949,7 @@ declare const toolRegistry: {
946
949
  icon?: "apple" | "briefcase" | "folder" | "diagram" | "headset" | "microphone" | "flag" | "bullseye" | "house" | "heart" | "airplane" | "gift" | "pin" | "school_cap" | "lightbulb" | "star" | "command_prompt" | "laptop" | "envelope" | "calendar" | "person" | "sofa" | "cup_and_heat_waves" | "paintpalette" | "broom" | "sun_max" | "moon" | "beach_umbrella" | "pizza" | "checkmark_line_3" | "basketball" | "face_smiling" | "dog" | "dollarsign" | "smartphone" | "person_2" | "chart_line_uptrend_xyaxis_in_square" | "laboratory_flask" | "telescope" | "book" | "document" | "sparkles" | "video" | "paintbrush" | "puzzlepiece_extension" | "clock" | "pills" | "birthday_cake" | "stethoscope" | undefined;
947
950
  workspace?: string | undefined;
948
951
  folderId?: string | undefined;
952
+ locale?: string | undefined;
949
953
  }[];
950
954
  }, client: import('@todoist/sdk').TodoistApi): Promise<{
951
955
  textContent: string;
@@ -3689,8 +3693,8 @@ declare const toolRegistry: {
3689
3693
  comment: "comment";
3690
3694
  folder: "folder";
3691
3695
  project: "project";
3692
- reminder: "reminder";
3693
3696
  section: "section";
3697
+ reminder: "reminder";
3694
3698
  location_reminder: "location_reminder";
3695
3699
  }>;
3696
3700
  id: import('zod').ZodString;
@@ -3704,8 +3708,8 @@ declare const toolRegistry: {
3704
3708
  comment: "comment";
3705
3709
  folder: "folder";
3706
3710
  project: "project";
3707
- reminder: "reminder";
3708
3711
  section: "section";
3712
+ reminder: "reminder";
3709
3713
  location_reminder: "location_reminder";
3710
3714
  }>;
3711
3715
  id: import('zod').ZodString;
@@ -3718,13 +3722,13 @@ declare const toolRegistry: {
3718
3722
  idempotentHint: true;
3719
3723
  };
3720
3724
  execute(args: {
3721
- type: "filter" | "label" | "task" | "comment" | "folder" | "project" | "reminder" | "section" | "location_reminder";
3725
+ type: "filter" | "label" | "task" | "comment" | "folder" | "project" | "section" | "reminder" | "location_reminder";
3722
3726
  id: string;
3723
3727
  }, client: import('@todoist/sdk').TodoistApi): Promise<{
3724
3728
  textContent: string;
3725
3729
  structuredContent: {
3726
3730
  deletedEntity: {
3727
- type: "filter" | "label" | "task" | "comment" | "folder" | "project" | "reminder" | "section" | "location_reminder";
3731
+ type: "filter" | "label" | "task" | "comment" | "folder" | "project" | "section" | "reminder" | "location_reminder";
3728
3732
  id: string;
3729
3733
  };
3730
3734
  success: true;
@@ -3740,6 +3744,7 @@ declare const toolRegistry: {
3740
3744
  comment: "comment";
3741
3745
  project: "project";
3742
3746
  section: "section";
3747
+ template: "template";
3743
3748
  }>;
3744
3749
  id: import('zod').ZodString;
3745
3750
  includeChildren: import('zod').ZodOptional<import('zod').ZodBoolean>;
@@ -3764,6 +3769,7 @@ declare const toolRegistry: {
3764
3769
  comment: "comment";
3765
3770
  project: "project";
3766
3771
  section: "section";
3772
+ template: "template";
3767
3773
  }>;
3768
3774
  id: import('zod').ZodString;
3769
3775
  object: import('zod').ZodUnion<readonly [import('zod').ZodObject<{
@@ -3857,6 +3863,40 @@ declare const toolRegistry: {
3857
3863
  name: import('zod').ZodString;
3858
3864
  sectionOrder: import('zod').ZodNumber;
3859
3865
  description: import('zod').ZodOptional<import('zod').ZodString>;
3866
+ }, import('zod/v4/core').$strip>, import('zod').ZodObject<{
3867
+ sharedWithWorkspaceMembers: import('zod').ZodOptional<import('zod').ZodBoolean>;
3868
+ canEdit: import('zod').ZodOptional<import('zod').ZodBoolean>;
3869
+ content: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
3870
+ source: import('zod').ZodEnum<{
3871
+ user: "user";
3872
+ todoist: "todoist";
3873
+ }>;
3874
+ workspaceId: import('zod').ZodOptional<import('zod').ZodString>;
3875
+ id: import('zod').ZodString;
3876
+ name: import('zod').ZodString;
3877
+ description: import('zod').ZodString;
3878
+ color: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<{
3879
+ berry_red: "berry_red";
3880
+ red: "red";
3881
+ orange: "orange";
3882
+ yellow: "yellow";
3883
+ olive_green: "olive_green";
3884
+ lime_green: "lime_green";
3885
+ green: "green";
3886
+ mint_green: "mint_green";
3887
+ teal: "teal";
3888
+ sky_blue: "sky_blue";
3889
+ light_blue: "light_blue";
3890
+ blue: "blue";
3891
+ grape: "grape";
3892
+ violet: "violet";
3893
+ lavender: "lavender";
3894
+ magenta: "magenta";
3895
+ salmon: "salmon";
3896
+ charcoal: "charcoal";
3897
+ grey: "grey";
3898
+ taupe: "taupe";
3899
+ }>>>;
3860
3900
  }, import('zod/v4/core').$strip>]>;
3861
3901
  };
3862
3902
  annotations: {
@@ -3865,7 +3905,7 @@ declare const toolRegistry: {
3865
3905
  idempotentHint: true;
3866
3906
  };
3867
3907
  execute(args: {
3868
- type: "task" | "comment" | "project" | "section";
3908
+ type: "task" | "comment" | "project" | "section" | "template";
3869
3909
  id: string;
3870
3910
  includeChildren?: boolean | undefined;
3871
3911
  }, client: import('@todoist/sdk').TodoistApi): Promise<{
@@ -3971,6 +4011,77 @@ declare const toolRegistry: {
3971
4011
  description?: string | undefined;
3972
4012
  };
3973
4013
  };
4014
+ } | {
4015
+ textContent: string;
4016
+ structuredContent: {
4017
+ type: "template";
4018
+ id: string;
4019
+ object: {
4020
+ id: string;
4021
+ name: string;
4022
+ description: string;
4023
+ color: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
4024
+ source: "user" | "todoist";
4025
+ workspaceId: string | undefined;
4026
+ sharedWithWorkspaceMembers: boolean | undefined;
4027
+ canEdit: boolean | undefined;
4028
+ content: {
4029
+ projects: {
4030
+ viewStyle: "list" | "calendar" | "board" | "table";
4031
+ description?: string | undefined;
4032
+ icon?: string | undefined;
4033
+ }[];
4034
+ sections: {
4035
+ id: string;
4036
+ name: string;
4037
+ description?: string | undefined;
4038
+ }[];
4039
+ tasks: {
4040
+ id: string;
4041
+ content: string;
4042
+ description?: string | undefined;
4043
+ sectionId?: string | undefined;
4044
+ parentId?: string | undefined;
4045
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
4046
+ labels?: string[] | undefined;
4047
+ due?: {
4048
+ date?: string | undefined;
4049
+ string?: string | undefined;
4050
+ lang?: string | undefined;
4051
+ isRecurring?: boolean | undefined;
4052
+ timezone?: string | undefined;
4053
+ } | undefined;
4054
+ deadline?: {
4055
+ date?: string | undefined;
4056
+ string?: string | undefined;
4057
+ lang?: string | undefined;
4058
+ isRecurring?: boolean | undefined;
4059
+ timezone?: string | undefined;
4060
+ } | undefined;
4061
+ duration?: {
4062
+ amount: number;
4063
+ unit: "day" | "minute";
4064
+ } | undefined;
4065
+ responsibleUid?: string | undefined;
4066
+ assignedByUid?: string | undefined;
4067
+ }[];
4068
+ comments: {
4069
+ content: string;
4070
+ taskId: string;
4071
+ postedUid?: string | undefined;
4072
+ postedAt?: string | undefined;
4073
+ fileAttachment?: Record<string, unknown> | undefined;
4074
+ }[];
4075
+ projectComments: {
4076
+ content: string;
4077
+ postedUid?: string | undefined;
4078
+ postedAt?: string | undefined;
4079
+ fileAttachment?: Record<string, unknown> | undefined;
4080
+ }[];
4081
+ projectViewOptionsDefaults: Record<string, unknown>[];
4082
+ } | undefined;
4083
+ };
4084
+ };
3974
4085
  }>;
3975
4086
  };
3976
4087
  reorderObjects: {
@@ -4300,8 +4411,8 @@ declare const toolRegistry: {
4300
4411
  };
4301
4412
  }>;
4302
4413
  };
4303
- exportProjectTemplate: {
4304
- name: "export-project-template";
4414
+ exportProject: {
4415
+ name: "export-project";
4305
4416
  description: string;
4306
4417
  parameters: {
4307
4418
  projectId: import('zod').ZodString;
@@ -4351,8 +4462,8 @@ declare const toolRegistry: {
4351
4462
  };
4352
4463
  }>;
4353
4464
  };
4354
- importProjectTemplate: {
4355
- name: "import-project-template";
4465
+ importIntoProject: {
4466
+ name: "import-into-project";
4356
4467
  description: string;
4357
4468
  parameters: {
4358
4469
  projectId: import('zod').ZodString;
@@ -4487,6 +4598,493 @@ declare const toolRegistry: {
4487
4598
  };
4488
4599
  }>;
4489
4600
  };
4601
+ addTemplate: {
4602
+ name: "add-template";
4603
+ description: string;
4604
+ parameters: {
4605
+ projectId: import('zod').ZodOptional<import('zod').ZodString>;
4606
+ csvFileContent: import('zod').ZodOptional<import('zod').ZodString>;
4607
+ preview: import('zod').ZodOptional<import('zod').ZodBoolean>;
4608
+ content: import('zod').ZodOptional<import('zod').ZodObject<{
4609
+ projects: import('zod').ZodArray<import('zod').ZodObject<{
4610
+ viewStyle: import('zod').ZodEnum<{
4611
+ list: "list";
4612
+ calendar: "calendar";
4613
+ board: "board";
4614
+ table: "table";
4615
+ }>;
4616
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4617
+ icon: import('zod').ZodOptional<import('zod').ZodString>;
4618
+ }, import('zod/v4/core').$strip>>;
4619
+ sections: import('zod').ZodArray<import('zod').ZodObject<{
4620
+ id: import('zod').ZodString;
4621
+ name: import('zod').ZodString;
4622
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4623
+ }, import('zod/v4/core').$strip>>;
4624
+ tasks: import('zod').ZodArray<import('zod').ZodObject<{
4625
+ id: import('zod').ZodString;
4626
+ content: import('zod').ZodString;
4627
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4628
+ sectionId: import('zod').ZodOptional<import('zod').ZodString>;
4629
+ parentId: import('zod').ZodOptional<import('zod').ZodString>;
4630
+ priority: import('zod').ZodOptional<import('zod').ZodEnum<{
4631
+ p1: "p1";
4632
+ p2: "p2";
4633
+ p3: "p3";
4634
+ p4: "p4";
4635
+ }>>;
4636
+ labels: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString>>;
4637
+ due: import('zod').ZodOptional<import('zod').ZodObject<{
4638
+ date: import('zod').ZodOptional<import('zod').ZodString>;
4639
+ string: import('zod').ZodOptional<import('zod').ZodString>;
4640
+ lang: import('zod').ZodOptional<import('zod').ZodString>;
4641
+ isRecurring: import('zod').ZodOptional<import('zod').ZodBoolean>;
4642
+ timezone: import('zod').ZodOptional<import('zod').ZodString>;
4643
+ }, import('zod/v4/core').$strip>>;
4644
+ deadline: import('zod').ZodOptional<import('zod').ZodObject<{
4645
+ date: import('zod').ZodOptional<import('zod').ZodString>;
4646
+ string: import('zod').ZodOptional<import('zod').ZodString>;
4647
+ lang: import('zod').ZodOptional<import('zod').ZodString>;
4648
+ isRecurring: import('zod').ZodOptional<import('zod').ZodBoolean>;
4649
+ timezone: import('zod').ZodOptional<import('zod').ZodString>;
4650
+ }, import('zod/v4/core').$strip>>;
4651
+ duration: import('zod').ZodOptional<import('zod').ZodObject<{
4652
+ amount: import('zod').ZodNumber;
4653
+ unit: import('zod').ZodEnum<{
4654
+ day: "day";
4655
+ minute: "minute";
4656
+ }>;
4657
+ }, import('zod/v4/core').$strip>>;
4658
+ responsibleUid: import('zod').ZodOptional<import('zod').ZodString>;
4659
+ assignedByUid: import('zod').ZodOptional<import('zod').ZodString>;
4660
+ }, import('zod/v4/core').$strip>>;
4661
+ comments: import('zod').ZodArray<import('zod').ZodObject<{
4662
+ content: import('zod').ZodString;
4663
+ postedUid: import('zod').ZodOptional<import('zod').ZodString>;
4664
+ postedAt: import('zod').ZodOptional<import('zod').ZodString>;
4665
+ fileAttachment: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
4666
+ taskId: import('zod').ZodString;
4667
+ }, import('zod/v4/core').$strip>>;
4668
+ projectComments: import('zod').ZodArray<import('zod').ZodObject<{
4669
+ content: import('zod').ZodString;
4670
+ postedUid: import('zod').ZodOptional<import('zod').ZodString>;
4671
+ postedAt: import('zod').ZodOptional<import('zod').ZodString>;
4672
+ fileAttachment: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
4673
+ }, import('zod/v4/core').$strip>>;
4674
+ projectViewOptionsDefaults: import('zod').ZodArray<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
4675
+ }, import('zod/v4/core').$strip>>;
4676
+ name: import('zod').ZodOptional<import('zod').ZodString>;
4677
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4678
+ color: import('zod').ZodPreprocess<import('zod').ZodOptional<import('zod').ZodEnum<{
4679
+ berry_red: "berry_red";
4680
+ red: "red";
4681
+ orange: "orange";
4682
+ yellow: "yellow";
4683
+ olive_green: "olive_green";
4684
+ lime_green: "lime_green";
4685
+ green: "green";
4686
+ mint_green: "mint_green";
4687
+ teal: "teal";
4688
+ sky_blue: "sky_blue";
4689
+ light_blue: "light_blue";
4690
+ blue: "blue";
4691
+ grape: "grape";
4692
+ violet: "violet";
4693
+ lavender: "lavender";
4694
+ magenta: "magenta";
4695
+ salmon: "salmon";
4696
+ charcoal: "charcoal";
4697
+ grey: "grey";
4698
+ taupe: "taupe";
4699
+ }>>, unknown>;
4700
+ workspace: import('zod').ZodOptional<import('zod').ZodString>;
4701
+ sharedWithWorkspaceMembers: import('zod').ZodOptional<import('zod').ZodBoolean>;
4702
+ };
4703
+ outputSchema: {
4704
+ templateId: import('zod').ZodOptional<import('zod').ZodString>;
4705
+ name: import('zod').ZodOptional<import('zod').ZodString>;
4706
+ workspaceId: import('zod').ZodOptional<import('zod').ZodString>;
4707
+ workspaceError: import('zod').ZodOptional<import('zod').ZodString>;
4708
+ content: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
4709
+ };
4710
+ annotations: {
4711
+ readOnlyHint: false;
4712
+ destructiveHint: false;
4713
+ idempotentHint: false;
4714
+ openWorldHint: true;
4715
+ };
4716
+ execute(args: {
4717
+ projectId?: string | undefined;
4718
+ csvFileContent?: string | undefined;
4719
+ preview?: boolean | undefined;
4720
+ content?: {
4721
+ projects: {
4722
+ viewStyle: "list" | "calendar" | "board" | "table";
4723
+ description?: string | undefined;
4724
+ icon?: string | undefined;
4725
+ }[];
4726
+ sections: {
4727
+ id: string;
4728
+ name: string;
4729
+ description?: string | undefined;
4730
+ }[];
4731
+ tasks: {
4732
+ id: string;
4733
+ content: string;
4734
+ description?: string | undefined;
4735
+ sectionId?: string | undefined;
4736
+ parentId?: string | undefined;
4737
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
4738
+ labels?: string[] | undefined;
4739
+ due?: {
4740
+ date?: string | undefined;
4741
+ string?: string | undefined;
4742
+ lang?: string | undefined;
4743
+ isRecurring?: boolean | undefined;
4744
+ timezone?: string | undefined;
4745
+ } | undefined;
4746
+ deadline?: {
4747
+ date?: string | undefined;
4748
+ string?: string | undefined;
4749
+ lang?: string | undefined;
4750
+ isRecurring?: boolean | undefined;
4751
+ timezone?: string | undefined;
4752
+ } | undefined;
4753
+ duration?: {
4754
+ amount: number;
4755
+ unit: "day" | "minute";
4756
+ } | undefined;
4757
+ responsibleUid?: string | undefined;
4758
+ assignedByUid?: string | undefined;
4759
+ }[];
4760
+ comments: {
4761
+ content: string;
4762
+ taskId: string;
4763
+ postedUid?: string | undefined;
4764
+ postedAt?: string | undefined;
4765
+ fileAttachment?: Record<string, unknown> | undefined;
4766
+ }[];
4767
+ projectComments: {
4768
+ content: string;
4769
+ postedUid?: string | undefined;
4770
+ postedAt?: string | undefined;
4771
+ fileAttachment?: Record<string, unknown> | undefined;
4772
+ }[];
4773
+ projectViewOptionsDefaults: Record<string, unknown>[];
4774
+ } | undefined;
4775
+ name?: string | undefined;
4776
+ description?: string | undefined;
4777
+ color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
4778
+ workspace?: string | undefined;
4779
+ sharedWithWorkspaceMembers?: boolean | undefined;
4780
+ }, client: import('@todoist/sdk').TodoistApi): Promise<{
4781
+ textContent: string;
4782
+ structuredContent: {
4783
+ content: {
4784
+ projects: {
4785
+ viewStyle: "list" | "calendar" | "board" | "table";
4786
+ description?: string | undefined;
4787
+ icon?: string | undefined;
4788
+ }[];
4789
+ sections: {
4790
+ id: string;
4791
+ name: string;
4792
+ description?: string | undefined;
4793
+ }[];
4794
+ tasks: {
4795
+ id: string;
4796
+ content: string;
4797
+ description?: string | undefined;
4798
+ sectionId?: string | undefined;
4799
+ parentId?: string | undefined;
4800
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
4801
+ labels?: string[] | undefined;
4802
+ due?: {
4803
+ date?: string | undefined;
4804
+ string?: string | undefined;
4805
+ lang?: string | undefined;
4806
+ isRecurring?: boolean | undefined;
4807
+ timezone?: string | undefined;
4808
+ } | undefined;
4809
+ deadline?: {
4810
+ date?: string | undefined;
4811
+ string?: string | undefined;
4812
+ lang?: string | undefined;
4813
+ isRecurring?: boolean | undefined;
4814
+ timezone?: string | undefined;
4815
+ } | undefined;
4816
+ duration?: {
4817
+ amount: number;
4818
+ unit: "day" | "minute";
4819
+ } | undefined;
4820
+ responsibleUid?: string | undefined;
4821
+ assignedByUid?: string | undefined;
4822
+ }[];
4823
+ comments: {
4824
+ content: string;
4825
+ taskId: string;
4826
+ postedUid?: string | undefined;
4827
+ postedAt?: string | undefined;
4828
+ fileAttachment?: Record<string, unknown> | undefined;
4829
+ }[];
4830
+ projectComments: {
4831
+ content: string;
4832
+ postedUid?: string | undefined;
4833
+ postedAt?: string | undefined;
4834
+ fileAttachment?: Record<string, unknown> | undefined;
4835
+ }[];
4836
+ projectViewOptionsDefaults: Record<string, unknown>[];
4837
+ };
4838
+ };
4839
+ } | {
4840
+ textContent: string;
4841
+ structuredContent: {
4842
+ templateId: string;
4843
+ name: string;
4844
+ workspaceId: string | undefined;
4845
+ workspaceError: string | undefined;
4846
+ };
4847
+ }>;
4848
+ };
4849
+ findTemplates: {
4850
+ name: "find-templates";
4851
+ description: string;
4852
+ parameters: {
4853
+ query: import('zod').ZodOptional<import('zod').ZodString>;
4854
+ source: import('zod').ZodOptional<import('zod').ZodEnum<{
4855
+ user: "user";
4856
+ todoist: "todoist";
4857
+ all: "all";
4858
+ workspace: "workspace";
4859
+ }>>;
4860
+ locale: import('zod').ZodOptional<import('zod').ZodString>;
4861
+ limit: import('zod').ZodOptional<import('zod').ZodNumber>;
4862
+ cursor: import('zod').ZodOptional<import('zod').ZodString>;
4863
+ };
4864
+ outputSchema: {
4865
+ templates: import('zod').ZodArray<import('zod').ZodObject<{
4866
+ source: import('zod').ZodEnum<{
4867
+ user: "user";
4868
+ todoist: "todoist";
4869
+ }>;
4870
+ workspaceId: import('zod').ZodOptional<import('zod').ZodString>;
4871
+ templateId: import('zod').ZodString;
4872
+ name: import('zod').ZodString;
4873
+ description: import('zod').ZodString;
4874
+ }, import('zod/v4/core').$strip>>;
4875
+ nextCursor: import('zod').ZodOptional<import('zod').ZodString>;
4876
+ };
4877
+ annotations: {
4878
+ readOnlyHint: true;
4879
+ destructiveHint: false;
4880
+ idempotentHint: true;
4881
+ };
4882
+ execute({ query, source, locale, limit, cursor }: {
4883
+ query?: string | undefined;
4884
+ source?: "user" | "todoist" | "all" | "workspace" | undefined;
4885
+ locale?: string | undefined;
4886
+ limit?: number | undefined;
4887
+ cursor?: string | undefined;
4888
+ }, client: import('@todoist/sdk').TodoistApi): Promise<{
4889
+ textContent: string;
4890
+ structuredContent: {
4891
+ templates: {
4892
+ templateId: string;
4893
+ name: string;
4894
+ description: string;
4895
+ source: "user" | "todoist";
4896
+ workspaceId: string | undefined;
4897
+ }[];
4898
+ nextCursor: string | undefined;
4899
+ };
4900
+ }>;
4901
+ };
4902
+ updateTemplate: {
4903
+ name: "update-template";
4904
+ description: string;
4905
+ parameters: {
4906
+ templateId: import('zod').ZodString;
4907
+ name: import('zod').ZodOptional<import('zod').ZodString>;
4908
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4909
+ color: import('zod').ZodPreprocess<import('zod').ZodOptional<import('zod').ZodEnum<{
4910
+ berry_red: "berry_red";
4911
+ red: "red";
4912
+ orange: "orange";
4913
+ yellow: "yellow";
4914
+ olive_green: "olive_green";
4915
+ lime_green: "lime_green";
4916
+ green: "green";
4917
+ mint_green: "mint_green";
4918
+ teal: "teal";
4919
+ sky_blue: "sky_blue";
4920
+ light_blue: "light_blue";
4921
+ blue: "blue";
4922
+ grape: "grape";
4923
+ violet: "violet";
4924
+ lavender: "lavender";
4925
+ magenta: "magenta";
4926
+ salmon: "salmon";
4927
+ charcoal: "charcoal";
4928
+ grey: "grey";
4929
+ taupe: "taupe";
4930
+ }>>, unknown>;
4931
+ projectId: import('zod').ZodOptional<import('zod').ZodString>;
4932
+ content: import('zod').ZodOptional<import('zod').ZodObject<{
4933
+ projects: import('zod').ZodArray<import('zod').ZodObject<{
4934
+ viewStyle: import('zod').ZodEnum<{
4935
+ list: "list";
4936
+ calendar: "calendar";
4937
+ board: "board";
4938
+ table: "table";
4939
+ }>;
4940
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4941
+ icon: import('zod').ZodOptional<import('zod').ZodString>;
4942
+ }, import('zod/v4/core').$strip>>;
4943
+ sections: import('zod').ZodArray<import('zod').ZodObject<{
4944
+ id: import('zod').ZodString;
4945
+ name: import('zod').ZodString;
4946
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4947
+ }, import('zod/v4/core').$strip>>;
4948
+ tasks: import('zod').ZodArray<import('zod').ZodObject<{
4949
+ id: import('zod').ZodString;
4950
+ content: import('zod').ZodString;
4951
+ description: import('zod').ZodOptional<import('zod').ZodString>;
4952
+ sectionId: import('zod').ZodOptional<import('zod').ZodString>;
4953
+ parentId: import('zod').ZodOptional<import('zod').ZodString>;
4954
+ priority: import('zod').ZodOptional<import('zod').ZodEnum<{
4955
+ p1: "p1";
4956
+ p2: "p2";
4957
+ p3: "p3";
4958
+ p4: "p4";
4959
+ }>>;
4960
+ labels: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString>>;
4961
+ due: import('zod').ZodOptional<import('zod').ZodObject<{
4962
+ date: import('zod').ZodOptional<import('zod').ZodString>;
4963
+ string: import('zod').ZodOptional<import('zod').ZodString>;
4964
+ lang: import('zod').ZodOptional<import('zod').ZodString>;
4965
+ isRecurring: import('zod').ZodOptional<import('zod').ZodBoolean>;
4966
+ timezone: import('zod').ZodOptional<import('zod').ZodString>;
4967
+ }, import('zod/v4/core').$strip>>;
4968
+ deadline: import('zod').ZodOptional<import('zod').ZodObject<{
4969
+ date: import('zod').ZodOptional<import('zod').ZodString>;
4970
+ string: import('zod').ZodOptional<import('zod').ZodString>;
4971
+ lang: import('zod').ZodOptional<import('zod').ZodString>;
4972
+ isRecurring: import('zod').ZodOptional<import('zod').ZodBoolean>;
4973
+ timezone: import('zod').ZodOptional<import('zod').ZodString>;
4974
+ }, import('zod/v4/core').$strip>>;
4975
+ duration: import('zod').ZodOptional<import('zod').ZodObject<{
4976
+ amount: import('zod').ZodNumber;
4977
+ unit: import('zod').ZodEnum<{
4978
+ day: "day";
4979
+ minute: "minute";
4980
+ }>;
4981
+ }, import('zod/v4/core').$strip>>;
4982
+ responsibleUid: import('zod').ZodOptional<import('zod').ZodString>;
4983
+ assignedByUid: import('zod').ZodOptional<import('zod').ZodString>;
4984
+ }, import('zod/v4/core').$strip>>;
4985
+ comments: import('zod').ZodArray<import('zod').ZodObject<{
4986
+ content: import('zod').ZodString;
4987
+ postedUid: import('zod').ZodOptional<import('zod').ZodString>;
4988
+ postedAt: import('zod').ZodOptional<import('zod').ZodString>;
4989
+ fileAttachment: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
4990
+ taskId: import('zod').ZodString;
4991
+ }, import('zod/v4/core').$strip>>;
4992
+ projectComments: import('zod').ZodArray<import('zod').ZodObject<{
4993
+ content: import('zod').ZodString;
4994
+ postedUid: import('zod').ZodOptional<import('zod').ZodString>;
4995
+ postedAt: import('zod').ZodOptional<import('zod').ZodString>;
4996
+ fileAttachment: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
4997
+ }, import('zod/v4/core').$strip>>;
4998
+ projectViewOptionsDefaults: import('zod').ZodArray<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
4999
+ }, import('zod/v4/core').$strip>>;
5000
+ workspace: import('zod').ZodOptional<import('zod').ZodString>;
5001
+ sharedWithWorkspaceMembers: import('zod').ZodOptional<import('zod').ZodBoolean>;
5002
+ };
5003
+ outputSchema: {
5004
+ templateId: import('zod').ZodString;
5005
+ name: import('zod').ZodString;
5006
+ workspaceId: import('zod').ZodOptional<import('zod').ZodString>;
5007
+ sharedWithWorkspaceMembers: import('zod').ZodBoolean;
5008
+ };
5009
+ annotations: {
5010
+ readOnlyHint: false;
5011
+ destructiveHint: true;
5012
+ idempotentHint: true;
5013
+ openWorldHint: true;
5014
+ };
5015
+ execute({ templateId, name, description, color, projectId, content, workspace, sharedWithWorkspaceMembers, }: {
5016
+ templateId: string;
5017
+ name?: string | undefined;
5018
+ description?: string | undefined;
5019
+ color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
5020
+ projectId?: string | undefined;
5021
+ content?: {
5022
+ projects: {
5023
+ viewStyle: "list" | "calendar" | "board" | "table";
5024
+ description?: string | undefined;
5025
+ icon?: string | undefined;
5026
+ }[];
5027
+ sections: {
5028
+ id: string;
5029
+ name: string;
5030
+ description?: string | undefined;
5031
+ }[];
5032
+ tasks: {
5033
+ id: string;
5034
+ content: string;
5035
+ description?: string | undefined;
5036
+ sectionId?: string | undefined;
5037
+ parentId?: string | undefined;
5038
+ priority?: "p1" | "p2" | "p3" | "p4" | undefined;
5039
+ labels?: string[] | undefined;
5040
+ due?: {
5041
+ date?: string | undefined;
5042
+ string?: string | undefined;
5043
+ lang?: string | undefined;
5044
+ isRecurring?: boolean | undefined;
5045
+ timezone?: string | undefined;
5046
+ } | undefined;
5047
+ deadline?: {
5048
+ date?: string | undefined;
5049
+ string?: string | undefined;
5050
+ lang?: string | undefined;
5051
+ isRecurring?: boolean | undefined;
5052
+ timezone?: string | undefined;
5053
+ } | undefined;
5054
+ duration?: {
5055
+ amount: number;
5056
+ unit: "day" | "minute";
5057
+ } | undefined;
5058
+ responsibleUid?: string | undefined;
5059
+ assignedByUid?: string | undefined;
5060
+ }[];
5061
+ comments: {
5062
+ content: string;
5063
+ taskId: string;
5064
+ postedUid?: string | undefined;
5065
+ postedAt?: string | undefined;
5066
+ fileAttachment?: Record<string, unknown> | undefined;
5067
+ }[];
5068
+ projectComments: {
5069
+ content: string;
5070
+ postedUid?: string | undefined;
5071
+ postedAt?: string | undefined;
5072
+ fileAttachment?: Record<string, unknown> | undefined;
5073
+ }[];
5074
+ projectViewOptionsDefaults: Record<string, unknown>[];
5075
+ } | undefined;
5076
+ workspace?: string | undefined;
5077
+ sharedWithWorkspaceMembers?: boolean | undefined;
5078
+ }, client: import('@todoist/sdk').TodoistApi): Promise<{
5079
+ textContent: string;
5080
+ structuredContent: {
5081
+ templateId: string;
5082
+ name: string;
5083
+ workspaceId: string | undefined;
5084
+ sharedWithWorkspaceMembers: boolean;
5085
+ };
5086
+ }>;
5087
+ };
4490
5088
  listWorkspaces: {
4491
5089
  name: "list-workspaces";
4492
5090
  description: string;