@honest-magic/mail-mcp 1.3.0 → 1.4.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 (40) hide show
  1. package/dist/cli/install-claude.d.ts +9 -0
  2. package/dist/cli/install-claude.js +42 -0
  3. package/dist/cli/install-claude.js.map +1 -0
  4. package/dist/config.d.ts +3 -0
  5. package/dist/config.js +3 -0
  6. package/dist/config.js.map +1 -1
  7. package/dist/index.d.ts +728 -2
  8. package/dist/index.js +901 -31
  9. package/dist/index.js.map +1 -1
  10. package/dist/protocol/imap.d.ts +16 -1
  11. package/dist/protocol/imap.js +80 -3
  12. package/dist/protocol/imap.js.map +1 -1
  13. package/dist/protocol/sieve.d.ts +62 -0
  14. package/dist/protocol/sieve.js +264 -0
  15. package/dist/protocol/sieve.js.map +1 -0
  16. package/dist/protocol/smtp.d.ts +1 -1
  17. package/dist/protocol/smtp.js +4 -1
  18. package/dist/protocol/smtp.js.map +1 -1
  19. package/dist/services/mail.d.ts +22 -3
  20. package/dist/services/mail.js +185 -4
  21. package/dist/services/mail.js.map +1 -1
  22. package/dist/utils/audit-logger.d.ts +25 -0
  23. package/dist/utils/audit-logger.js +47 -0
  24. package/dist/utils/audit-logger.js.map +1 -0
  25. package/dist/utils/confirmation-store.d.ts +33 -0
  26. package/dist/utils/confirmation-store.js +52 -0
  27. package/dist/utils/confirmation-store.js.map +1 -0
  28. package/dist/utils/rate-limiter.d.ts +23 -0
  29. package/dist/utils/rate-limiter.js +32 -0
  30. package/dist/utils/rate-limiter.js.map +1 -1
  31. package/dist/utils/redact.d.ts +20 -0
  32. package/dist/utils/redact.js +46 -0
  33. package/dist/utils/redact.js.map +1 -0
  34. package/dist/utils/templates.d.ts +24 -0
  35. package/dist/utils/templates.js +95 -0
  36. package/dist/utils/templates.js.map +1 -0
  37. package/dist/utils/validation.d.ts +10 -0
  38. package/dist/utils/validation.js +41 -0
  39. package/dist/utils/validation.js.map +1 -1
  40. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { AuditLogger } from './utils/audit-logger.js';
2
3
  export declare class MailMCPServer {
3
4
  private readonly readOnly;
4
5
  private server;
@@ -6,11 +7,16 @@ export declare class MailMCPServer {
6
7
  private shuttingDown;
7
8
  private inFlightCount;
8
9
  private readonly rateLimiter;
9
- constructor(readOnly?: boolean);
10
+ private readonly allowedTools?;
11
+ private readonly confirmMode;
12
+ private readonly confirmStore;
13
+ private readonly auditLogger?;
14
+ private readonly redact;
15
+ constructor(readOnly?: boolean, allowedTools?: Set<string>, auditLogger?: AuditLogger, confirmMode?: boolean, redact?: boolean);
10
16
  shutdown(): Promise<void>;
11
17
  private _createAndCacheService;
12
18
  private getService;
13
- getTools(readOnly: boolean): ({
19
+ getTools(readOnly: boolean, allowedTools?: Set<string>): ({
14
20
  name: string;
15
21
  description: string;
16
22
  annotations: {
@@ -24,6 +30,7 @@ export declare class MailMCPServer {
24
30
  folder?: undefined;
25
31
  count?: undefined;
26
32
  offset?: undefined;
33
+ headerOnly?: undefined;
27
34
  from?: undefined;
28
35
  subject?: undefined;
29
36
  since?: undefined;
@@ -36,6 +43,7 @@ export declare class MailMCPServer {
36
43
  cc?: undefined;
37
44
  bcc?: undefined;
38
45
  includeSignature?: undefined;
46
+ confirmationId?: undefined;
39
47
  sourceFolder?: undefined;
40
48
  targetFolder?: undefined;
41
49
  addLabels?: undefined;
@@ -48,6 +56,11 @@ export declare class MailMCPServer {
48
56
  tokenEndpoint?: undefined;
49
57
  uids?: undefined;
50
58
  action?: undefined;
59
+ folders?: undefined;
60
+ templateId?: undefined;
61
+ variables?: undefined;
62
+ name?: undefined;
63
+ content?: undefined;
51
64
  };
52
65
  required?: undefined;
53
66
  };
@@ -77,6 +90,10 @@ export declare class MailMCPServer {
77
90
  type: string;
78
91
  description: string;
79
92
  };
93
+ headerOnly: {
94
+ type: string;
95
+ description: string;
96
+ };
80
97
  from?: undefined;
81
98
  subject?: undefined;
82
99
  since?: undefined;
@@ -89,6 +106,7 @@ export declare class MailMCPServer {
89
106
  cc?: undefined;
90
107
  bcc?: undefined;
91
108
  includeSignature?: undefined;
109
+ confirmationId?: undefined;
92
110
  sourceFolder?: undefined;
93
111
  targetFolder?: undefined;
94
112
  addLabels?: undefined;
@@ -101,6 +119,11 @@ export declare class MailMCPServer {
101
119
  tokenEndpoint?: undefined;
102
120
  uids?: undefined;
103
121
  action?: undefined;
122
+ folders?: undefined;
123
+ templateId?: undefined;
124
+ variables?: undefined;
125
+ name?: undefined;
126
+ content?: undefined;
104
127
  };
105
128
  required: string[];
106
129
  };
@@ -150,6 +173,7 @@ export declare class MailMCPServer {
150
173
  type: string;
151
174
  description: string;
152
175
  };
176
+ headerOnly?: undefined;
153
177
  uid?: undefined;
154
178
  to?: undefined;
155
179
  body?: undefined;
@@ -157,6 +181,7 @@ export declare class MailMCPServer {
157
181
  cc?: undefined;
158
182
  bcc?: undefined;
159
183
  includeSignature?: undefined;
184
+ confirmationId?: undefined;
160
185
  sourceFolder?: undefined;
161
186
  targetFolder?: undefined;
162
187
  addLabels?: undefined;
@@ -169,6 +194,11 @@ export declare class MailMCPServer {
169
194
  tokenEndpoint?: undefined;
170
195
  uids?: undefined;
171
196
  action?: undefined;
197
+ folders?: undefined;
198
+ templateId?: undefined;
199
+ variables?: undefined;
200
+ name?: undefined;
201
+ content?: undefined;
172
202
  };
173
203
  required: string[];
174
204
  };
@@ -196,6 +226,7 @@ export declare class MailMCPServer {
196
226
  };
197
227
  count?: undefined;
198
228
  offset?: undefined;
229
+ headerOnly?: undefined;
199
230
  from?: undefined;
200
231
  subject?: undefined;
201
232
  since?: undefined;
@@ -207,6 +238,7 @@ export declare class MailMCPServer {
207
238
  cc?: undefined;
208
239
  bcc?: undefined;
209
240
  includeSignature?: undefined;
241
+ confirmationId?: undefined;
210
242
  sourceFolder?: undefined;
211
243
  targetFolder?: undefined;
212
244
  addLabels?: undefined;
@@ -219,6 +251,11 @@ export declare class MailMCPServer {
219
251
  tokenEndpoint?: undefined;
220
252
  uids?: undefined;
221
253
  action?: undefined;
254
+ folders?: undefined;
255
+ templateId?: undefined;
256
+ variables?: undefined;
257
+ name?: undefined;
258
+ content?: undefined;
222
259
  };
223
260
  required: string[];
224
261
  };
@@ -264,9 +301,14 @@ export declare class MailMCPServer {
264
301
  type: string;
265
302
  description: string;
266
303
  };
304
+ confirmationId: {
305
+ type: string;
306
+ description: string;
307
+ };
267
308
  folder?: undefined;
268
309
  count?: undefined;
269
310
  offset?: undefined;
311
+ headerOnly?: undefined;
270
312
  from?: undefined;
271
313
  since?: undefined;
272
314
  before?: undefined;
@@ -284,6 +326,11 @@ export declare class MailMCPServer {
284
326
  tokenEndpoint?: undefined;
285
327
  uids?: undefined;
286
328
  action?: undefined;
329
+ folders?: undefined;
330
+ templateId?: undefined;
331
+ variables?: undefined;
332
+ name?: undefined;
333
+ content?: undefined;
287
334
  };
288
335
  required: string[];
289
336
  };
@@ -304,6 +351,7 @@ export declare class MailMCPServer {
304
351
  folder?: undefined;
305
352
  count?: undefined;
306
353
  offset?: undefined;
354
+ headerOnly?: undefined;
307
355
  from?: undefined;
308
356
  subject?: undefined;
309
357
  since?: undefined;
@@ -316,6 +364,7 @@ export declare class MailMCPServer {
316
364
  cc?: undefined;
317
365
  bcc?: undefined;
318
366
  includeSignature?: undefined;
367
+ confirmationId?: undefined;
319
368
  sourceFolder?: undefined;
320
369
  targetFolder?: undefined;
321
370
  addLabels?: undefined;
@@ -328,6 +377,11 @@ export declare class MailMCPServer {
328
377
  tokenEndpoint?: undefined;
329
378
  uids?: undefined;
330
379
  action?: undefined;
380
+ folders?: undefined;
381
+ templateId?: undefined;
382
+ variables?: undefined;
383
+ name?: undefined;
384
+ content?: undefined;
331
385
  };
332
386
  required: string[];
333
387
  };
@@ -357,9 +411,14 @@ export declare class MailMCPServer {
357
411
  type: string;
358
412
  description: string;
359
413
  };
414
+ confirmationId: {
415
+ type: string;
416
+ description: string;
417
+ };
360
418
  folder?: undefined;
361
419
  count?: undefined;
362
420
  offset?: undefined;
421
+ headerOnly?: undefined;
363
422
  from?: undefined;
364
423
  subject?: undefined;
365
424
  since?: undefined;
@@ -381,6 +440,11 @@ export declare class MailMCPServer {
381
440
  tokenEndpoint?: undefined;
382
441
  uids?: undefined;
383
442
  action?: undefined;
443
+ folders?: undefined;
444
+ templateId?: undefined;
445
+ variables?: undefined;
446
+ name?: undefined;
447
+ content?: undefined;
384
448
  };
385
449
  required: string[];
386
450
  };
@@ -420,8 +484,13 @@ export declare class MailMCPServer {
420
484
  };
421
485
  description: string;
422
486
  };
487
+ confirmationId: {
488
+ type: string;
489
+ description: string;
490
+ };
423
491
  count?: undefined;
424
492
  offset?: undefined;
493
+ headerOnly?: undefined;
425
494
  from?: undefined;
426
495
  subject?: undefined;
427
496
  since?: undefined;
@@ -443,6 +512,11 @@ export declare class MailMCPServer {
443
512
  tokenEndpoint?: undefined;
444
513
  uids?: undefined;
445
514
  action?: undefined;
515
+ folders?: undefined;
516
+ templateId?: undefined;
517
+ variables?: undefined;
518
+ name?: undefined;
519
+ content?: undefined;
446
520
  };
447
521
  required: string[];
448
522
  };
@@ -470,6 +544,7 @@ export declare class MailMCPServer {
470
544
  };
471
545
  count?: undefined;
472
546
  offset?: undefined;
547
+ headerOnly?: undefined;
473
548
  from?: undefined;
474
549
  subject?: undefined;
475
550
  since?: undefined;
@@ -482,6 +557,7 @@ export declare class MailMCPServer {
482
557
  cc?: undefined;
483
558
  bcc?: undefined;
484
559
  includeSignature?: undefined;
560
+ confirmationId?: undefined;
485
561
  sourceFolder?: undefined;
486
562
  targetFolder?: undefined;
487
563
  addLabels?: undefined;
@@ -493,6 +569,11 @@ export declare class MailMCPServer {
493
569
  tokenEndpoint?: undefined;
494
570
  uids?: undefined;
495
571
  action?: undefined;
572
+ folders?: undefined;
573
+ templateId?: undefined;
574
+ variables?: undefined;
575
+ name?: undefined;
576
+ content?: undefined;
496
577
  };
497
578
  required: string[];
498
579
  };
@@ -524,6 +605,7 @@ export declare class MailMCPServer {
524
605
  };
525
606
  count?: undefined;
526
607
  offset?: undefined;
608
+ headerOnly?: undefined;
527
609
  from?: undefined;
528
610
  subject?: undefined;
529
611
  since?: undefined;
@@ -535,6 +617,7 @@ export declare class MailMCPServer {
535
617
  cc?: undefined;
536
618
  bcc?: undefined;
537
619
  includeSignature?: undefined;
620
+ confirmationId?: undefined;
538
621
  sourceFolder?: undefined;
539
622
  targetFolder?: undefined;
540
623
  addLabels?: undefined;
@@ -546,6 +629,11 @@ export declare class MailMCPServer {
546
629
  tokenEndpoint?: undefined;
547
630
  uids?: undefined;
548
631
  action?: undefined;
632
+ folders?: undefined;
633
+ templateId?: undefined;
634
+ variables?: undefined;
635
+ name?: undefined;
636
+ content?: undefined;
549
637
  };
550
638
  required: string[];
551
639
  };
@@ -579,9 +667,14 @@ export declare class MailMCPServer {
579
667
  type: string;
580
668
  description: string;
581
669
  };
670
+ confirmationId: {
671
+ type: string;
672
+ description: string;
673
+ };
582
674
  folder?: undefined;
583
675
  count?: undefined;
584
676
  offset?: undefined;
677
+ headerOnly?: undefined;
585
678
  from?: undefined;
586
679
  subject?: undefined;
587
680
  since?: undefined;
@@ -602,6 +695,11 @@ export declare class MailMCPServer {
602
695
  filename?: undefined;
603
696
  uids?: undefined;
604
697
  action?: undefined;
698
+ folders?: undefined;
699
+ templateId?: undefined;
700
+ variables?: undefined;
701
+ name?: undefined;
702
+ content?: undefined;
605
703
  };
606
704
  required: string[];
607
705
  };
@@ -653,8 +751,13 @@ export declare class MailMCPServer {
653
751
  };
654
752
  description: string;
655
753
  };
754
+ confirmationId: {
755
+ type: string;
756
+ description: string;
757
+ };
656
758
  count?: undefined;
657
759
  offset?: undefined;
760
+ headerOnly?: undefined;
658
761
  from?: undefined;
659
762
  subject?: undefined;
660
763
  since?: undefined;
@@ -674,6 +777,629 @@ export declare class MailMCPServer {
674
777
  clientSecret?: undefined;
675
778
  refreshToken?: undefined;
676
779
  tokenEndpoint?: undefined;
780
+ folders?: undefined;
781
+ templateId?: undefined;
782
+ variables?: undefined;
783
+ name?: undefined;
784
+ content?: undefined;
785
+ };
786
+ required: string[];
787
+ };
788
+ } | {
789
+ name: string;
790
+ description: string;
791
+ annotations: {
792
+ readOnlyHint: boolean;
793
+ destructiveHint: boolean;
794
+ };
795
+ inputSchema: {
796
+ type: string;
797
+ properties: {
798
+ accountId: {
799
+ type: string;
800
+ description: string;
801
+ };
802
+ uid: {
803
+ type: string;
804
+ description: string;
805
+ };
806
+ folder: {
807
+ type: string;
808
+ description: string;
809
+ };
810
+ confirmationId: {
811
+ type: string;
812
+ description: string;
813
+ };
814
+ count?: undefined;
815
+ offset?: undefined;
816
+ headerOnly?: undefined;
817
+ from?: undefined;
818
+ subject?: undefined;
819
+ since?: undefined;
820
+ before?: undefined;
821
+ keywords?: undefined;
822
+ to?: undefined;
823
+ body?: undefined;
824
+ isHtml?: undefined;
825
+ cc?: undefined;
826
+ bcc?: undefined;
827
+ includeSignature?: undefined;
828
+ sourceFolder?: undefined;
829
+ targetFolder?: undefined;
830
+ addLabels?: undefined;
831
+ removeLabels?: undefined;
832
+ threadId?: undefined;
833
+ filename?: undefined;
834
+ clientId?: undefined;
835
+ clientSecret?: undefined;
836
+ refreshToken?: undefined;
837
+ tokenEndpoint?: undefined;
838
+ uids?: undefined;
839
+ action?: undefined;
840
+ folders?: undefined;
841
+ templateId?: undefined;
842
+ variables?: undefined;
843
+ name?: undefined;
844
+ content?: undefined;
845
+ };
846
+ required: string[];
847
+ };
848
+ } | {
849
+ name: string;
850
+ description: string;
851
+ annotations: {
852
+ readOnlyHint: boolean;
853
+ destructiveHint: boolean;
854
+ };
855
+ inputSchema: {
856
+ type: string;
857
+ properties: {
858
+ accountId: {
859
+ type: string;
860
+ description: string;
861
+ };
862
+ uid: {
863
+ type: string;
864
+ description: string;
865
+ };
866
+ folder: {
867
+ type: string;
868
+ description: string;
869
+ };
870
+ body: {
871
+ type: string;
872
+ description: string;
873
+ };
874
+ isHtml: {
875
+ type: string;
876
+ description: string;
877
+ };
878
+ cc: {
879
+ type: string;
880
+ description: string;
881
+ };
882
+ bcc: {
883
+ type: string;
884
+ description: string;
885
+ };
886
+ includeSignature: {
887
+ type: string;
888
+ description: string;
889
+ };
890
+ confirmationId: {
891
+ type: string;
892
+ description: string;
893
+ };
894
+ count?: undefined;
895
+ offset?: undefined;
896
+ headerOnly?: undefined;
897
+ from?: undefined;
898
+ subject?: undefined;
899
+ since?: undefined;
900
+ before?: undefined;
901
+ keywords?: undefined;
902
+ to?: undefined;
903
+ sourceFolder?: undefined;
904
+ targetFolder?: undefined;
905
+ addLabels?: undefined;
906
+ removeLabels?: undefined;
907
+ threadId?: undefined;
908
+ filename?: undefined;
909
+ clientId?: undefined;
910
+ clientSecret?: undefined;
911
+ refreshToken?: undefined;
912
+ tokenEndpoint?: undefined;
913
+ uids?: undefined;
914
+ action?: undefined;
915
+ folders?: undefined;
916
+ templateId?: undefined;
917
+ variables?: undefined;
918
+ name?: undefined;
919
+ content?: undefined;
920
+ };
921
+ required: string[];
922
+ };
923
+ } | {
924
+ name: string;
925
+ description: string;
926
+ annotations: {
927
+ readOnlyHint: boolean;
928
+ destructiveHint: boolean;
929
+ };
930
+ inputSchema: {
931
+ type: string;
932
+ properties: {
933
+ accountId: {
934
+ type: string;
935
+ description: string;
936
+ };
937
+ uid: {
938
+ type: string;
939
+ description: string;
940
+ };
941
+ folder: {
942
+ type: string;
943
+ description: string;
944
+ };
945
+ to: {
946
+ type: string;
947
+ description: string;
948
+ };
949
+ body: {
950
+ type: string;
951
+ description: string;
952
+ };
953
+ isHtml: {
954
+ type: string;
955
+ description: string;
956
+ };
957
+ cc: {
958
+ type: string;
959
+ description: string;
960
+ };
961
+ bcc: {
962
+ type: string;
963
+ description: string;
964
+ };
965
+ includeSignature: {
966
+ type: string;
967
+ description: string;
968
+ };
969
+ confirmationId: {
970
+ type: string;
971
+ description: string;
972
+ };
973
+ count?: undefined;
974
+ offset?: undefined;
975
+ headerOnly?: undefined;
976
+ from?: undefined;
977
+ subject?: undefined;
978
+ since?: undefined;
979
+ before?: undefined;
980
+ keywords?: undefined;
981
+ sourceFolder?: undefined;
982
+ targetFolder?: undefined;
983
+ addLabels?: undefined;
984
+ removeLabels?: undefined;
985
+ threadId?: undefined;
986
+ filename?: undefined;
987
+ clientId?: undefined;
988
+ clientSecret?: undefined;
989
+ refreshToken?: undefined;
990
+ tokenEndpoint?: undefined;
991
+ uids?: undefined;
992
+ action?: undefined;
993
+ folders?: undefined;
994
+ templateId?: undefined;
995
+ variables?: undefined;
996
+ name?: undefined;
997
+ content?: undefined;
998
+ };
999
+ required: string[];
1000
+ };
1001
+ } | {
1002
+ name: string;
1003
+ description: string;
1004
+ annotations: {
1005
+ readOnlyHint: boolean;
1006
+ destructiveHint: boolean;
1007
+ };
1008
+ inputSchema: {
1009
+ type: string;
1010
+ properties: {
1011
+ accountId: {
1012
+ type: string;
1013
+ description: string;
1014
+ };
1015
+ folders: {
1016
+ type: string;
1017
+ items: {
1018
+ type: string;
1019
+ };
1020
+ description: string;
1021
+ };
1022
+ folder?: undefined;
1023
+ count?: undefined;
1024
+ offset?: undefined;
1025
+ headerOnly?: undefined;
1026
+ from?: undefined;
1027
+ subject?: undefined;
1028
+ since?: undefined;
1029
+ before?: undefined;
1030
+ keywords?: undefined;
1031
+ uid?: undefined;
1032
+ to?: undefined;
1033
+ body?: undefined;
1034
+ isHtml?: undefined;
1035
+ cc?: undefined;
1036
+ bcc?: undefined;
1037
+ includeSignature?: undefined;
1038
+ confirmationId?: undefined;
1039
+ sourceFolder?: undefined;
1040
+ targetFolder?: undefined;
1041
+ addLabels?: undefined;
1042
+ removeLabels?: undefined;
1043
+ threadId?: undefined;
1044
+ filename?: undefined;
1045
+ clientId?: undefined;
1046
+ clientSecret?: undefined;
1047
+ refreshToken?: undefined;
1048
+ tokenEndpoint?: undefined;
1049
+ uids?: undefined;
1050
+ action?: undefined;
1051
+ templateId?: undefined;
1052
+ variables?: undefined;
1053
+ name?: undefined;
1054
+ content?: undefined;
1055
+ };
1056
+ required: string[];
1057
+ };
1058
+ } | {
1059
+ name: string;
1060
+ description: string;
1061
+ annotations: {
1062
+ readOnlyHint: boolean;
1063
+ destructiveHint: boolean;
1064
+ };
1065
+ inputSchema: {
1066
+ type: string;
1067
+ properties: {
1068
+ accountId: {
1069
+ type: string;
1070
+ description: string;
1071
+ };
1072
+ folder: {
1073
+ type: string;
1074
+ description: string;
1075
+ };
1076
+ count: {
1077
+ type: string;
1078
+ description: string;
1079
+ };
1080
+ offset?: undefined;
1081
+ headerOnly?: undefined;
1082
+ from?: undefined;
1083
+ subject?: undefined;
1084
+ since?: undefined;
1085
+ before?: undefined;
1086
+ keywords?: undefined;
1087
+ uid?: undefined;
1088
+ to?: undefined;
1089
+ body?: undefined;
1090
+ isHtml?: undefined;
1091
+ cc?: undefined;
1092
+ bcc?: undefined;
1093
+ includeSignature?: undefined;
1094
+ confirmationId?: undefined;
1095
+ sourceFolder?: undefined;
1096
+ targetFolder?: undefined;
1097
+ addLabels?: undefined;
1098
+ removeLabels?: undefined;
1099
+ threadId?: undefined;
1100
+ filename?: undefined;
1101
+ clientId?: undefined;
1102
+ clientSecret?: undefined;
1103
+ refreshToken?: undefined;
1104
+ tokenEndpoint?: undefined;
1105
+ uids?: undefined;
1106
+ action?: undefined;
1107
+ folders?: undefined;
1108
+ templateId?: undefined;
1109
+ variables?: undefined;
1110
+ name?: undefined;
1111
+ content?: undefined;
1112
+ };
1113
+ required: string[];
1114
+ };
1115
+ } | {
1116
+ name: string;
1117
+ description: string;
1118
+ annotations: {
1119
+ readOnlyHint: boolean;
1120
+ destructiveHint: boolean;
1121
+ };
1122
+ inputSchema: {
1123
+ type: string;
1124
+ properties: {
1125
+ accountId: {
1126
+ type: string;
1127
+ description: string;
1128
+ };
1129
+ folder?: undefined;
1130
+ count?: undefined;
1131
+ offset?: undefined;
1132
+ headerOnly?: undefined;
1133
+ from?: undefined;
1134
+ subject?: undefined;
1135
+ since?: undefined;
1136
+ before?: undefined;
1137
+ keywords?: undefined;
1138
+ uid?: undefined;
1139
+ to?: undefined;
1140
+ body?: undefined;
1141
+ isHtml?: undefined;
1142
+ cc?: undefined;
1143
+ bcc?: undefined;
1144
+ includeSignature?: undefined;
1145
+ confirmationId?: undefined;
1146
+ sourceFolder?: undefined;
1147
+ targetFolder?: undefined;
1148
+ addLabels?: undefined;
1149
+ removeLabels?: undefined;
1150
+ threadId?: undefined;
1151
+ filename?: undefined;
1152
+ clientId?: undefined;
1153
+ clientSecret?: undefined;
1154
+ refreshToken?: undefined;
1155
+ tokenEndpoint?: undefined;
1156
+ uids?: undefined;
1157
+ action?: undefined;
1158
+ folders?: undefined;
1159
+ templateId?: undefined;
1160
+ variables?: undefined;
1161
+ name?: undefined;
1162
+ content?: undefined;
1163
+ };
1164
+ required?: undefined;
1165
+ };
1166
+ } | {
1167
+ name: string;
1168
+ description: string;
1169
+ annotations: {
1170
+ readOnlyHint: boolean;
1171
+ destructiveHint: boolean;
1172
+ };
1173
+ inputSchema: {
1174
+ type: string;
1175
+ properties: {
1176
+ templateId: {
1177
+ type: string;
1178
+ description: string;
1179
+ };
1180
+ variables: {
1181
+ type: string;
1182
+ description: string;
1183
+ additionalProperties: {
1184
+ type: string;
1185
+ };
1186
+ };
1187
+ to: {
1188
+ type: string;
1189
+ description: string;
1190
+ };
1191
+ cc: {
1192
+ type: string;
1193
+ description: string;
1194
+ };
1195
+ bcc: {
1196
+ type: string;
1197
+ description: string;
1198
+ };
1199
+ accountId: {
1200
+ type: string;
1201
+ description: string;
1202
+ };
1203
+ folder?: undefined;
1204
+ count?: undefined;
1205
+ offset?: undefined;
1206
+ headerOnly?: undefined;
1207
+ from?: undefined;
1208
+ subject?: undefined;
1209
+ since?: undefined;
1210
+ before?: undefined;
1211
+ keywords?: undefined;
1212
+ uid?: undefined;
1213
+ body?: undefined;
1214
+ isHtml?: undefined;
1215
+ includeSignature?: undefined;
1216
+ confirmationId?: undefined;
1217
+ sourceFolder?: undefined;
1218
+ targetFolder?: undefined;
1219
+ addLabels?: undefined;
1220
+ removeLabels?: undefined;
1221
+ threadId?: undefined;
1222
+ filename?: undefined;
1223
+ clientId?: undefined;
1224
+ clientSecret?: undefined;
1225
+ refreshToken?: undefined;
1226
+ tokenEndpoint?: undefined;
1227
+ uids?: undefined;
1228
+ action?: undefined;
1229
+ folders?: undefined;
1230
+ name?: undefined;
1231
+ content?: undefined;
1232
+ };
1233
+ required: string[];
1234
+ };
1235
+ } | {
1236
+ name: string;
1237
+ description: string;
1238
+ annotations: {
1239
+ readOnlyHint: boolean;
1240
+ destructiveHint: boolean;
1241
+ };
1242
+ inputSchema: {
1243
+ type: string;
1244
+ properties: {
1245
+ accountId: {
1246
+ type: string;
1247
+ description: string;
1248
+ };
1249
+ name: {
1250
+ type: string;
1251
+ description: string;
1252
+ };
1253
+ folder?: undefined;
1254
+ count?: undefined;
1255
+ offset?: undefined;
1256
+ headerOnly?: undefined;
1257
+ from?: undefined;
1258
+ subject?: undefined;
1259
+ since?: undefined;
1260
+ before?: undefined;
1261
+ keywords?: undefined;
1262
+ uid?: undefined;
1263
+ to?: undefined;
1264
+ body?: undefined;
1265
+ isHtml?: undefined;
1266
+ cc?: undefined;
1267
+ bcc?: undefined;
1268
+ includeSignature?: undefined;
1269
+ confirmationId?: undefined;
1270
+ sourceFolder?: undefined;
1271
+ targetFolder?: undefined;
1272
+ addLabels?: undefined;
1273
+ removeLabels?: undefined;
1274
+ threadId?: undefined;
1275
+ filename?: undefined;
1276
+ clientId?: undefined;
1277
+ clientSecret?: undefined;
1278
+ refreshToken?: undefined;
1279
+ tokenEndpoint?: undefined;
1280
+ uids?: undefined;
1281
+ action?: undefined;
1282
+ folders?: undefined;
1283
+ templateId?: undefined;
1284
+ variables?: undefined;
1285
+ content?: undefined;
1286
+ };
1287
+ required: string[];
1288
+ };
1289
+ } | {
1290
+ name: string;
1291
+ description: string;
1292
+ annotations: {
1293
+ readOnlyHint: boolean;
1294
+ destructiveHint: boolean;
1295
+ };
1296
+ inputSchema: {
1297
+ type: string;
1298
+ properties: {
1299
+ accountId: {
1300
+ type: string;
1301
+ description: string;
1302
+ };
1303
+ name: {
1304
+ type: string;
1305
+ description: string;
1306
+ };
1307
+ content: {
1308
+ type: string;
1309
+ description: string;
1310
+ };
1311
+ confirmationId: {
1312
+ type: string;
1313
+ description: string;
1314
+ };
1315
+ folder?: undefined;
1316
+ count?: undefined;
1317
+ offset?: undefined;
1318
+ headerOnly?: undefined;
1319
+ from?: undefined;
1320
+ subject?: undefined;
1321
+ since?: undefined;
1322
+ before?: undefined;
1323
+ keywords?: undefined;
1324
+ uid?: undefined;
1325
+ to?: undefined;
1326
+ body?: undefined;
1327
+ isHtml?: undefined;
1328
+ cc?: undefined;
1329
+ bcc?: undefined;
1330
+ includeSignature?: undefined;
1331
+ sourceFolder?: undefined;
1332
+ targetFolder?: undefined;
1333
+ addLabels?: undefined;
1334
+ removeLabels?: undefined;
1335
+ threadId?: undefined;
1336
+ filename?: undefined;
1337
+ clientId?: undefined;
1338
+ clientSecret?: undefined;
1339
+ refreshToken?: undefined;
1340
+ tokenEndpoint?: undefined;
1341
+ uids?: undefined;
1342
+ action?: undefined;
1343
+ folders?: undefined;
1344
+ templateId?: undefined;
1345
+ variables?: undefined;
1346
+ };
1347
+ required: string[];
1348
+ };
1349
+ } | {
1350
+ name: string;
1351
+ description: string;
1352
+ annotations: {
1353
+ readOnlyHint: boolean;
1354
+ destructiveHint: boolean;
1355
+ };
1356
+ inputSchema: {
1357
+ type: string;
1358
+ properties: {
1359
+ accountId: {
1360
+ type: string;
1361
+ description: string;
1362
+ };
1363
+ name: {
1364
+ type: string;
1365
+ description: string;
1366
+ };
1367
+ confirmationId: {
1368
+ type: string;
1369
+ description: string;
1370
+ };
1371
+ folder?: undefined;
1372
+ count?: undefined;
1373
+ offset?: undefined;
1374
+ headerOnly?: undefined;
1375
+ from?: undefined;
1376
+ subject?: undefined;
1377
+ since?: undefined;
1378
+ before?: undefined;
1379
+ keywords?: undefined;
1380
+ uid?: undefined;
1381
+ to?: undefined;
1382
+ body?: undefined;
1383
+ isHtml?: undefined;
1384
+ cc?: undefined;
1385
+ bcc?: undefined;
1386
+ includeSignature?: undefined;
1387
+ sourceFolder?: undefined;
1388
+ targetFolder?: undefined;
1389
+ addLabels?: undefined;
1390
+ removeLabels?: undefined;
1391
+ threadId?: undefined;
1392
+ filename?: undefined;
1393
+ clientId?: undefined;
1394
+ clientSecret?: undefined;
1395
+ refreshToken?: undefined;
1396
+ tokenEndpoint?: undefined;
1397
+ uids?: undefined;
1398
+ action?: undefined;
1399
+ folders?: undefined;
1400
+ templateId?: undefined;
1401
+ variables?: undefined;
1402
+ content?: undefined;
677
1403
  };
678
1404
  required: string[];
679
1405
  };