@fluxmail/core 0.20.0 → 0.21.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.
@@ -7,21 +7,21 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
7
7
  message: {
8
8
  type: 'string',
9
9
  minLength: 1,
10
- pattern: '^(?!\\s*$)[^\\0]+$',
11
10
  maxLength: 4000,
11
+ pattern: '^(?!\\s*$)[^\\0]+$',
12
12
  description: 'The feedback text approved by the user.',
13
13
  },
14
14
  category: {
15
+ default: 'other',
15
16
  type: 'string',
16
17
  enum: ['bug', 'feature', 'other'],
17
- default: 'other',
18
18
  },
19
19
  contactEmail: {
20
20
  type: 'string',
21
21
  maxLength: 320,
22
22
  format: 'email',
23
- pattern: '^[^\\s\\x00-\\x1f\\x7f]+$',
24
23
  description: 'Optional reply address confirmed by the user. Never choose a connected mailbox address automatically.',
24
+ pattern: '^[^\\s\\x00-\\x1f\\x7f]+$',
25
25
  },
26
26
  requestId: {
27
27
  type: 'string',
@@ -41,21 +41,21 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
41
41
  expectedBehavior: {
42
42
  type: 'string',
43
43
  minLength: 1,
44
- pattern: '^(?!\\s*$)[^\\0]+$',
45
44
  maxLength: 1000,
45
+ pattern: '^(?!\\s*$)[^\\0]+$',
46
46
  description: 'What the user expected. Exclude mail contents and credentials.',
47
47
  },
48
48
  actualBehavior: {
49
49
  type: 'string',
50
50
  minLength: 1,
51
- pattern: '^(?!\\s*$)[^\\0]+$',
52
51
  maxLength: 1000,
52
+ pattern: '^(?!\\s*$)[^\\0]+$',
53
53
  description: 'What happened instead. Exclude mail contents and credentials.',
54
54
  },
55
55
  },
56
56
  required: ['message'],
57
- additionalProperties: false,
58
57
  $schema: 'http://json-schema.org/draft-07/schema#',
58
+ additionalProperties: false,
59
59
  },
60
60
  list_accounts: {
61
61
  type: 'object',
@@ -66,6 +66,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
66
66
  type: 'object',
67
67
  properties: {
68
68
  accountId: {
69
+ description: 'Account to operate on. Optional when exactly one account is connected.',
69
70
  anyOf: [
70
71
  {
71
72
  type: 'string',
@@ -76,16 +77,16 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
76
77
  type: 'null',
77
78
  },
78
79
  ],
79
- description: 'Account to operate on. Optional when exactly one account is connected.',
80
80
  },
81
81
  },
82
- additionalProperties: false,
83
82
  $schema: 'http://json-schema.org/draft-07/schema#',
83
+ additionalProperties: false,
84
84
  },
85
85
  list_labels: {
86
86
  type: 'object',
87
87
  properties: {
88
88
  accountId: {
89
+ description: 'Account to operate on. Optional when exactly one account is connected.',
89
90
  anyOf: [
90
91
  {
91
92
  type: 'string',
@@ -96,16 +97,16 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
96
97
  type: 'null',
97
98
  },
98
99
  ],
99
- description: 'Account to operate on. Optional when exactly one account is connected.',
100
100
  },
101
101
  },
102
- additionalProperties: false,
103
102
  $schema: 'http://json-schema.org/draft-07/schema#',
103
+ additionalProperties: false,
104
104
  },
105
105
  list_send_as: {
106
106
  type: 'object',
107
107
  properties: {
108
108
  accountId: {
109
+ description: 'Account to operate on. Optional when exactly one account is connected.',
109
110
  anyOf: [
110
111
  {
111
112
  type: 'string',
@@ -116,16 +117,16 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
116
117
  type: 'null',
117
118
  },
118
119
  ],
119
- description: 'Account to operate on. Optional when exactly one account is connected.',
120
120
  },
121
121
  },
122
- additionalProperties: false,
123
122
  $schema: 'http://json-schema.org/draft-07/schema#',
123
+ additionalProperties: false,
124
124
  },
125
125
  list_emails: {
126
126
  type: 'object',
127
127
  properties: {
128
128
  accountId: {
129
+ description: 'Account to operate on. Optional when exactly one account is connected.',
129
130
  anyOf: [
130
131
  {
131
132
  type: 'string',
@@ -136,22 +137,22 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
136
137
  type: 'null',
137
138
  },
138
139
  ],
139
- description: 'Account to operate on. Optional when exactly one account is connected.',
140
140
  },
141
141
  folder: {
142
+ description: "Folder role (inbox, sent, drafts, trash, spam, starred, archive, all) or a label/folder name. Use all or omit this field to search all mail except Spam and Trash. An IMAP server's \\All mailbox may use different rules.",
142
143
  anyOf: [
143
144
  {
144
145
  type: 'string',
145
- maxLength: 2048,
146
146
  minLength: 1,
147
+ maxLength: 2048,
147
148
  },
148
149
  {
149
150
  type: 'null',
150
151
  },
151
152
  ],
152
- description: "Folder role (inbox, sent, drafts, trash, spam, starred, archive, all) or a label/folder name. Use all or omit this field to search all mail except Spam and Trash. An IMAP server's \\All mailbox may use different rules.",
153
153
  },
154
154
  text: {
155
+ description: 'Literal full-text search terms',
155
156
  anyOf: [
156
157
  {
157
158
  type: 'string',
@@ -161,7 +162,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
161
162
  type: 'null',
162
163
  },
163
164
  ],
164
- description: 'Literal full-text search terms',
165
165
  },
166
166
  from: {
167
167
  anyOf: [
@@ -206,6 +206,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
206
206
  type: ['boolean', 'null'],
207
207
  },
208
208
  after: {
209
+ description: 'YYYY-MM-DD received date, inclusive in UTC',
209
210
  anyOf: [
210
211
  {
211
212
  type: 'string',
@@ -215,9 +216,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
215
216
  type: 'null',
216
217
  },
217
218
  ],
218
- description: 'YYYY-MM-DD received date, inclusive in UTC',
219
219
  },
220
220
  before: {
221
+ description: 'YYYY-MM-DD received date, exclusive in UTC',
221
222
  anyOf: [
222
223
  {
223
224
  type: 'string',
@@ -227,9 +228,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
227
228
  type: 'null',
228
229
  },
229
230
  ],
230
- description: 'YYYY-MM-DD received date, exclusive in UTC',
231
231
  },
232
232
  rawProviderQuery: {
233
+ description: 'Provider-native Gmail syntax or Outlook KQL for one compatible account',
233
234
  anyOf: [
234
235
  {
235
236
  type: 'string',
@@ -239,9 +240,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
239
240
  type: 'null',
240
241
  },
241
242
  ],
242
- description: 'Provider-native Gmail syntax or Outlook KQL for one compatible account',
243
243
  },
244
244
  pageSize: {
245
+ description: 'Defaults to 25',
245
246
  anyOf: [
246
247
  {
247
248
  type: 'integer',
@@ -252,9 +253,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
252
253
  type: 'null',
253
254
  },
254
255
  ],
255
- description: 'Defaults to 25',
256
256
  },
257
257
  pageToken: {
258
+ description: 'nextPageToken from a previous call',
258
259
  anyOf: [
259
260
  {
260
261
  type: 'string',
@@ -264,24 +265,24 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
264
265
  type: 'null',
265
266
  },
266
267
  ],
267
- description: 'nextPageToken from a previous call',
268
268
  },
269
269
  includeSnippet: {
270
- type: ['boolean', 'null'],
271
270
  description: 'Request or suppress message previews',
271
+ type: ['boolean', 'null'],
272
272
  },
273
273
  includeSearchContext: {
274
- type: ['boolean', 'null'],
275
274
  description: 'Include a match-centered body excerpt; requires a portable text query',
275
+ type: ['boolean', 'null'],
276
276
  },
277
277
  },
278
- additionalProperties: false,
279
278
  $schema: 'http://json-schema.org/draft-07/schema#',
279
+ additionalProperties: false,
280
280
  },
281
281
  search_emails: {
282
282
  type: 'object',
283
283
  properties: {
284
284
  accountId: {
285
+ description: 'Account to operate on. Optional when exactly one account is connected.',
285
286
  anyOf: [
286
287
  {
287
288
  type: 'string',
@@ -292,26 +293,25 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
292
293
  type: 'null',
293
294
  },
294
295
  ],
295
- description: 'Account to operate on. Optional when exactly one account is connected.',
296
296
  },
297
297
  query: {
298
298
  type: 'string',
299
- maxLength: 2048,
300
299
  minLength: 1,
300
+ maxLength: 2048,
301
301
  description: 'Typed portable search syntax',
302
302
  },
303
303
  folder: {
304
+ description: "Folder role (inbox, sent, drafts, trash, spam, starred, archive, all) or a label/folder name. Use all or omit this field to search all mail except Spam and Trash. An IMAP server's \\All mailbox may use different rules.",
304
305
  anyOf: [
305
306
  {
306
307
  type: 'string',
307
- maxLength: 2048,
308
308
  minLength: 1,
309
+ maxLength: 2048,
309
310
  },
310
311
  {
311
312
  type: 'null',
312
313
  },
313
314
  ],
314
- description: "Folder role (inbox, sent, drafts, trash, spam, starred, archive, all) or a label/folder name. Use all or omit this field to search all mail except Spam and Trash. An IMAP server's \\All mailbox may use different rules.",
315
315
  },
316
316
  from: {
317
317
  anyOf: [
@@ -356,6 +356,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
356
356
  type: ['boolean', 'null'],
357
357
  },
358
358
  after: {
359
+ description: 'YYYY-MM-DD received date, inclusive in UTC',
359
360
  anyOf: [
360
361
  {
361
362
  type: 'string',
@@ -365,9 +366,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
365
366
  type: 'null',
366
367
  },
367
368
  ],
368
- description: 'YYYY-MM-DD received date, inclusive in UTC',
369
369
  },
370
370
  before: {
371
+ description: 'YYYY-MM-DD received date, exclusive in UTC',
371
372
  anyOf: [
372
373
  {
373
374
  type: 'string',
@@ -377,9 +378,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
377
378
  type: 'null',
378
379
  },
379
380
  ],
380
- description: 'YYYY-MM-DD received date, exclusive in UTC',
381
381
  },
382
382
  rawProviderQuery: {
383
+ description: 'Provider-native Gmail syntax or Outlook KQL for one compatible account',
383
384
  anyOf: [
384
385
  {
385
386
  type: 'string',
@@ -389,9 +390,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
389
390
  type: 'null',
390
391
  },
391
392
  ],
392
- description: 'Provider-native Gmail syntax or Outlook KQL for one compatible account',
393
393
  },
394
394
  pageSize: {
395
+ description: 'Defaults to 25',
395
396
  anyOf: [
396
397
  {
397
398
  type: 'integer',
@@ -402,9 +403,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
402
403
  type: 'null',
403
404
  },
404
405
  ],
405
- description: 'Defaults to 25',
406
406
  },
407
407
  pageToken: {
408
+ description: 'nextPageToken from a previous call',
408
409
  anyOf: [
409
410
  {
410
411
  type: 'string',
@@ -414,25 +415,26 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
414
415
  type: 'null',
415
416
  },
416
417
  ],
417
- description: 'nextPageToken from a previous call',
418
418
  },
419
419
  includeSnippet: {
420
- type: ['boolean', 'null'],
421
420
  description: 'Request or suppress message previews',
421
+ type: ['boolean', 'null'],
422
422
  },
423
423
  includeSearchContext: {
424
- type: ['boolean', 'null'],
425
424
  description: 'Include a match-centered body excerpt; requires a portable text query',
425
+ type: ['boolean', 'null'],
426
426
  },
427
427
  },
428
428
  required: ['query'],
429
- additionalProperties: false,
430
429
  $schema: 'http://json-schema.org/draft-07/schema#',
430
+ additionalProperties: false,
431
431
  },
432
432
  search_emails_batch: {
433
433
  type: 'object',
434
434
  properties: {
435
435
  accounts: {
436
+ minItems: 1,
437
+ maxItems: 20,
436
438
  type: 'array',
437
439
  items: {
438
440
  type: 'object',
@@ -457,13 +459,11 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
457
459
  required: ['accountId'],
458
460
  additionalProperties: false,
459
461
  },
460
- minItems: 1,
461
- maxItems: 20,
462
462
  },
463
463
  query: {
464
464
  type: 'string',
465
- maxLength: 2048,
466
465
  minLength: 1,
466
+ maxLength: 2048,
467
467
  description: 'Typed portable search syntax',
468
468
  },
469
469
  folder: {
@@ -520,6 +520,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
520
520
  type: ['boolean', 'null'],
521
521
  },
522
522
  after: {
523
+ description: 'YYYY-MM-DD received date, inclusive in UTC',
523
524
  anyOf: [
524
525
  {
525
526
  type: 'string',
@@ -529,9 +530,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
529
530
  type: 'null',
530
531
  },
531
532
  ],
532
- description: 'YYYY-MM-DD received date, inclusive in UTC',
533
533
  },
534
534
  before: {
535
+ description: 'YYYY-MM-DD received date, exclusive in UTC',
535
536
  anyOf: [
536
537
  {
537
538
  type: 'string',
@@ -541,9 +542,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
541
542
  type: 'null',
542
543
  },
543
544
  ],
544
- description: 'YYYY-MM-DD received date, exclusive in UTC',
545
545
  },
546
546
  pageSize: {
547
+ description: 'Defaults to 25',
547
548
  anyOf: [
548
549
  {
549
550
  type: 'integer',
@@ -554,25 +555,25 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
554
555
  type: 'null',
555
556
  },
556
557
  ],
557
- description: 'Defaults to 25',
558
558
  },
559
559
  includeSnippet: {
560
- type: ['boolean', 'null'],
561
560
  description: 'Request or suppress message previews',
561
+ type: ['boolean', 'null'],
562
562
  },
563
563
  includeSearchContext: {
564
- type: ['boolean', 'null'],
565
564
  description: 'Include a match-centered body excerpt; requires a portable text query',
565
+ type: ['boolean', 'null'],
566
566
  },
567
567
  },
568
568
  required: ['accounts', 'query'],
569
- additionalProperties: false,
570
569
  $schema: 'http://json-schema.org/draft-07/schema#',
570
+ additionalProperties: false,
571
571
  },
572
572
  get_email: {
573
573
  type: 'object',
574
574
  properties: {
575
575
  accountId: {
576
+ description: 'Account to operate on. Optional when exactly one account is connected.',
576
577
  anyOf: [
577
578
  {
578
579
  type: 'string',
@@ -583,7 +584,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
583
584
  type: 'null',
584
585
  },
585
586
  ],
586
- description: 'Account to operate on. Optional when exactly one account is connected.',
587
587
  },
588
588
  messageId: {
589
589
  type: 'string',
@@ -591,8 +591,8 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
591
591
  maxLength: 512,
592
592
  },
593
593
  includeHeaders: {
594
- type: ['boolean', 'null'],
595
594
  description: 'Include Message-ID, References, In-Reply-To and other threading headers',
595
+ type: ['boolean', 'null'],
596
596
  },
597
597
  bodyFormat: {
598
598
  anyOf: [
@@ -607,13 +607,14 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
607
607
  },
608
608
  },
609
609
  required: ['messageId'],
610
- additionalProperties: false,
611
610
  $schema: 'http://json-schema.org/draft-07/schema#',
611
+ additionalProperties: false,
612
612
  },
613
613
  get_email_body: {
614
614
  type: 'object',
615
615
  properties: {
616
616
  accountId: {
617
+ description: 'Account to operate on. Optional when exactly one account is connected.',
617
618
  anyOf: [
618
619
  {
619
620
  type: 'string',
@@ -624,7 +625,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
624
625
  type: 'null',
625
626
  },
626
627
  ],
627
- description: 'Account to operate on. Optional when exactly one account is connected.',
628
628
  },
629
629
  messageId: {
630
630
  type: 'string',
@@ -660,13 +660,14 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
660
660
  },
661
661
  },
662
662
  required: ['messageId', 'format'],
663
- additionalProperties: false,
664
663
  $schema: 'http://json-schema.org/draft-07/schema#',
664
+ additionalProperties: false,
665
665
  },
666
666
  get_thread: {
667
667
  type: 'object',
668
668
  properties: {
669
669
  accountId: {
670
+ description: 'Account to operate on. Optional when exactly one account is connected.',
670
671
  anyOf: [
671
672
  {
672
673
  type: 'string',
@@ -677,7 +678,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
677
678
  type: 'null',
678
679
  },
679
680
  ],
680
- description: 'Account to operate on. Optional when exactly one account is connected.',
681
681
  },
682
682
  threadId: {
683
683
  type: 'string',
@@ -721,13 +721,14 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
721
721
  },
722
722
  },
723
723
  required: ['threadId'],
724
- additionalProperties: false,
725
724
  $schema: 'http://json-schema.org/draft-07/schema#',
725
+ additionalProperties: false,
726
726
  },
727
727
  get_draft: {
728
728
  type: 'object',
729
729
  properties: {
730
730
  accountId: {
731
+ description: 'Account to operate on. Optional when exactly one account is connected.',
731
732
  anyOf: [
732
733
  {
733
734
  type: 'string',
@@ -738,7 +739,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
738
739
  type: 'null',
739
740
  },
740
741
  ],
741
- description: 'Account to operate on. Optional when exactly one account is connected.',
742
742
  },
743
743
  draftId: {
744
744
  type: 'string',
@@ -747,13 +747,14 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
747
747
  },
748
748
  },
749
749
  required: ['draftId'],
750
- additionalProperties: false,
751
750
  $schema: 'http://json-schema.org/draft-07/schema#',
751
+ additionalProperties: false,
752
752
  },
753
753
  create_draft: {
754
754
  type: 'object',
755
755
  properties: {
756
756
  accountId: {
757
+ description: 'Account to operate on. Optional when exactly one account is connected.',
757
758
  anyOf: [
758
759
  {
759
760
  type: 'string',
@@ -764,9 +765,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
764
765
  type: 'null',
765
766
  },
766
767
  ],
767
- description: 'Account to operate on. Optional when exactly one account is connected.',
768
768
  },
769
769
  from: {
770
+ description: 'Connected address or an available send-as address',
770
771
  anyOf: [
771
772
  {
772
773
  type: 'string',
@@ -776,63 +777,63 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
776
777
  type: 'null',
777
778
  },
778
779
  ],
779
- description: 'Connected address or an available send-as address',
780
780
  },
781
781
  to: {
782
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
782
783
  anyOf: [
783
784
  {
785
+ maxItems: 100,
784
786
  type: 'array',
785
787
  items: {
786
788
  type: 'string',
787
789
  minLength: 1,
788
790
  maxLength: 512,
789
791
  },
790
- maxItems: 100,
791
792
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
792
793
  },
793
794
  {
794
795
  type: 'null',
795
796
  },
796
797
  ],
797
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
798
798
  },
799
799
  cc: {
800
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
800
801
  anyOf: [
801
802
  {
803
+ maxItems: 100,
802
804
  type: 'array',
803
805
  items: {
804
806
  type: 'string',
805
807
  minLength: 1,
806
808
  maxLength: 512,
807
809
  },
808
- maxItems: 100,
809
810
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
810
811
  },
811
812
  {
812
813
  type: 'null',
813
814
  },
814
815
  ],
815
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
816
816
  },
817
817
  bcc: {
818
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
818
819
  anyOf: [
819
820
  {
821
+ maxItems: 100,
820
822
  type: 'array',
821
823
  items: {
822
824
  type: 'string',
823
825
  minLength: 1,
824
826
  maxLength: 512,
825
827
  },
826
- maxItems: 100,
827
828
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
828
829
  },
829
830
  {
830
831
  type: 'null',
831
832
  },
832
833
  ],
833
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
834
834
  },
835
835
  subject: {
836
+ description: 'Defaults to "Re: ..." when replying',
836
837
  anyOf: [
837
838
  {
838
839
  type: 'string',
@@ -842,17 +843,17 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
842
843
  type: 'null',
843
844
  },
844
845
  ],
845
- description: 'Defaults to "Re: ..." when replying',
846
846
  },
847
847
  bodyText: {
848
- type: ['string', 'null'],
849
848
  description: 'Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines.',
849
+ type: ['string', 'null'],
850
850
  },
851
851
  bodyHtml: {
852
- type: ['string', 'null'],
853
852
  description: 'HTML body',
853
+ type: ['string', 'null'],
854
854
  },
855
855
  replyToMessageId: {
856
+ description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
856
857
  anyOf: [
857
858
  {
858
859
  type: 'string',
@@ -863,11 +864,10 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
863
864
  type: 'null',
864
865
  },
865
866
  ],
866
- description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
867
867
  },
868
868
  replyAll: {
869
- type: ['boolean', 'null'],
870
869
  description: 'With replyToMessageId: reply to all original recipients',
870
+ type: ['boolean', 'null'],
871
871
  },
872
872
  attachments: {
873
873
  anyOf: [
@@ -891,15 +891,15 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
891
891
  description: 'base64',
892
892
  },
893
893
  contentId: {
894
+ description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
894
895
  type: 'string',
895
896
  minLength: 1,
896
897
  maxLength: 255,
897
- description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
898
898
  },
899
899
  disposition: {
900
+ description: 'Defaults to attachment',
900
901
  type: 'string',
901
902
  enum: ['inline', 'attachment'],
902
- description: 'Defaults to attachment',
903
903
  },
904
904
  },
905
905
  required: ['filename', 'mimeType', 'content'],
@@ -912,8 +912,8 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
912
912
  ],
913
913
  },
914
914
  },
915
- additionalProperties: false,
916
915
  $schema: 'http://json-schema.org/draft-07/schema#',
916
+ additionalProperties: false,
917
917
  },
918
918
  update_draft: {
919
919
  type: 'object',
@@ -924,6 +924,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
924
924
  maxLength: 512,
925
925
  },
926
926
  accountId: {
927
+ description: 'Account to operate on. Optional when exactly one account is connected.',
927
928
  anyOf: [
928
929
  {
929
930
  type: 'string',
@@ -934,9 +935,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
934
935
  type: 'null',
935
936
  },
936
937
  ],
937
- description: 'Account to operate on. Optional when exactly one account is connected.',
938
938
  },
939
939
  from: {
940
+ description: 'Connected address or an available send-as address',
940
941
  anyOf: [
941
942
  {
942
943
  type: 'string',
@@ -946,63 +947,63 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
946
947
  type: 'null',
947
948
  },
948
949
  ],
949
- description: 'Connected address or an available send-as address',
950
950
  },
951
951
  to: {
952
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
952
953
  anyOf: [
953
954
  {
955
+ maxItems: 100,
954
956
  type: 'array',
955
957
  items: {
956
958
  type: 'string',
957
959
  minLength: 1,
958
960
  maxLength: 512,
959
961
  },
960
- maxItems: 100,
961
962
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
962
963
  },
963
964
  {
964
965
  type: 'null',
965
966
  },
966
967
  ],
967
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
968
968
  },
969
969
  cc: {
970
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
970
971
  anyOf: [
971
972
  {
973
+ maxItems: 100,
972
974
  type: 'array',
973
975
  items: {
974
976
  type: 'string',
975
977
  minLength: 1,
976
978
  maxLength: 512,
977
979
  },
978
- maxItems: 100,
979
980
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
980
981
  },
981
982
  {
982
983
  type: 'null',
983
984
  },
984
985
  ],
985
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
986
986
  },
987
987
  bcc: {
988
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
988
989
  anyOf: [
989
990
  {
991
+ maxItems: 100,
990
992
  type: 'array',
991
993
  items: {
992
994
  type: 'string',
993
995
  minLength: 1,
994
996
  maxLength: 512,
995
997
  },
996
- maxItems: 100,
997
998
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
998
999
  },
999
1000
  {
1000
1001
  type: 'null',
1001
1002
  },
1002
1003
  ],
1003
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1004
1004
  },
1005
1005
  subject: {
1006
+ description: 'Defaults to "Re: ..." when replying',
1006
1007
  anyOf: [
1007
1008
  {
1008
1009
  type: 'string',
@@ -1012,17 +1013,17 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1012
1013
  type: 'null',
1013
1014
  },
1014
1015
  ],
1015
- description: 'Defaults to "Re: ..." when replying',
1016
1016
  },
1017
1017
  bodyText: {
1018
- type: ['string', 'null'],
1019
1018
  description: 'Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines.',
1019
+ type: ['string', 'null'],
1020
1020
  },
1021
1021
  bodyHtml: {
1022
- type: ['string', 'null'],
1023
1022
  description: 'HTML body',
1023
+ type: ['string', 'null'],
1024
1024
  },
1025
1025
  replyToMessageId: {
1026
+ description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
1026
1027
  anyOf: [
1027
1028
  {
1028
1029
  type: 'string',
@@ -1033,11 +1034,10 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1033
1034
  type: 'null',
1034
1035
  },
1035
1036
  ],
1036
- description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
1037
1037
  },
1038
1038
  replyAll: {
1039
- type: ['boolean', 'null'],
1040
1039
  description: 'With replyToMessageId: reply to all original recipients',
1040
+ type: ['boolean', 'null'],
1041
1041
  },
1042
1042
  attachments: {
1043
1043
  anyOf: [
@@ -1061,15 +1061,15 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1061
1061
  description: 'base64',
1062
1062
  },
1063
1063
  contentId: {
1064
+ description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
1064
1065
  type: 'string',
1065
1066
  minLength: 1,
1066
1067
  maxLength: 255,
1067
- description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
1068
1068
  },
1069
1069
  disposition: {
1070
+ description: 'Defaults to attachment',
1070
1071
  type: 'string',
1071
1072
  enum: ['inline', 'attachment'],
1072
- description: 'Defaults to attachment',
1073
1073
  },
1074
1074
  },
1075
1075
  required: ['filename', 'mimeType', 'content'],
@@ -1083,13 +1083,14 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1083
1083
  },
1084
1084
  },
1085
1085
  required: ['draftId'],
1086
- additionalProperties: false,
1087
1086
  $schema: 'http://json-schema.org/draft-07/schema#',
1087
+ additionalProperties: false,
1088
1088
  },
1089
1089
  delete_draft: {
1090
1090
  type: 'object',
1091
1091
  properties: {
1092
1092
  accountId: {
1093
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1093
1094
  anyOf: [
1094
1095
  {
1095
1096
  type: 'string',
@@ -1100,7 +1101,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1100
1101
  type: 'null',
1101
1102
  },
1102
1103
  ],
1103
- description: 'Account to operate on. Optional when exactly one account is connected.',
1104
1104
  },
1105
1105
  draftId: {
1106
1106
  type: 'string',
@@ -1109,8 +1109,8 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1109
1109
  },
1110
1110
  },
1111
1111
  required: ['draftId'],
1112
- additionalProperties: false,
1113
1112
  $schema: 'http://json-schema.org/draft-07/schema#',
1113
+ additionalProperties: false,
1114
1114
  },
1115
1115
  preview_send: {
1116
1116
  type: 'object',
@@ -1128,6 +1128,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1128
1128
  ],
1129
1129
  },
1130
1130
  accountId: {
1131
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1131
1132
  anyOf: [
1132
1133
  {
1133
1134
  type: 'string',
@@ -1138,9 +1139,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1138
1139
  type: 'null',
1139
1140
  },
1140
1141
  ],
1141
- description: 'Account to operate on. Optional when exactly one account is connected.',
1142
1142
  },
1143
1143
  from: {
1144
+ description: 'Connected address or an available send-as address',
1144
1145
  anyOf: [
1145
1146
  {
1146
1147
  type: 'string',
@@ -1150,63 +1151,63 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1150
1151
  type: 'null',
1151
1152
  },
1152
1153
  ],
1153
- description: 'Connected address or an available send-as address',
1154
1154
  },
1155
1155
  to: {
1156
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1156
1157
  anyOf: [
1157
1158
  {
1159
+ maxItems: 100,
1158
1160
  type: 'array',
1159
1161
  items: {
1160
1162
  type: 'string',
1161
1163
  minLength: 1,
1162
1164
  maxLength: 512,
1163
1165
  },
1164
- maxItems: 100,
1165
1166
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1166
1167
  },
1167
1168
  {
1168
1169
  type: 'null',
1169
1170
  },
1170
1171
  ],
1171
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1172
1172
  },
1173
1173
  cc: {
1174
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1174
1175
  anyOf: [
1175
1176
  {
1177
+ maxItems: 100,
1176
1178
  type: 'array',
1177
1179
  items: {
1178
1180
  type: 'string',
1179
1181
  minLength: 1,
1180
1182
  maxLength: 512,
1181
1183
  },
1182
- maxItems: 100,
1183
1184
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1184
1185
  },
1185
1186
  {
1186
1187
  type: 'null',
1187
1188
  },
1188
1189
  ],
1189
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1190
1190
  },
1191
1191
  bcc: {
1192
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1192
1193
  anyOf: [
1193
1194
  {
1195
+ maxItems: 100,
1194
1196
  type: 'array',
1195
1197
  items: {
1196
1198
  type: 'string',
1197
1199
  minLength: 1,
1198
1200
  maxLength: 512,
1199
1201
  },
1200
- maxItems: 100,
1201
1202
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1202
1203
  },
1203
1204
  {
1204
1205
  type: 'null',
1205
1206
  },
1206
1207
  ],
1207
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1208
1208
  },
1209
1209
  subject: {
1210
+ description: 'Defaults to "Re: ..." when replying',
1210
1211
  anyOf: [
1211
1212
  {
1212
1213
  type: 'string',
@@ -1216,17 +1217,17 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1216
1217
  type: 'null',
1217
1218
  },
1218
1219
  ],
1219
- description: 'Defaults to "Re: ..." when replying',
1220
1220
  },
1221
1221
  bodyText: {
1222
- type: ['string', 'null'],
1223
1222
  description: 'Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines.',
1223
+ type: ['string', 'null'],
1224
1224
  },
1225
1225
  bodyHtml: {
1226
- type: ['string', 'null'],
1227
1226
  description: 'HTML body',
1227
+ type: ['string', 'null'],
1228
1228
  },
1229
1229
  replyToMessageId: {
1230
+ description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
1230
1231
  anyOf: [
1231
1232
  {
1232
1233
  type: 'string',
@@ -1237,11 +1238,10 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1237
1238
  type: 'null',
1238
1239
  },
1239
1240
  ],
1240
- description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
1241
1241
  },
1242
1242
  replyAll: {
1243
- type: ['boolean', 'null'],
1244
1243
  description: 'With replyToMessageId: reply to all original recipients',
1244
+ type: ['boolean', 'null'],
1245
1245
  },
1246
1246
  attachments: {
1247
1247
  anyOf: [
@@ -1265,15 +1265,15 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1265
1265
  description: 'base64',
1266
1266
  },
1267
1267
  contentId: {
1268
+ description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
1268
1269
  type: 'string',
1269
1270
  minLength: 1,
1270
1271
  maxLength: 255,
1271
- description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
1272
1272
  },
1273
1273
  disposition: {
1274
+ description: 'Defaults to attachment',
1274
1275
  type: 'string',
1275
1276
  enum: ['inline', 'attachment'],
1276
- description: 'Defaults to attachment',
1277
1277
  },
1278
1278
  },
1279
1279
  required: ['filename', 'mimeType', 'content'],
@@ -1286,8 +1286,8 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1286
1286
  ],
1287
1287
  },
1288
1288
  },
1289
- additionalProperties: false,
1290
1289
  $schema: 'http://json-schema.org/draft-07/schema#',
1290
+ additionalProperties: false,
1291
1291
  },
1292
1292
  send_email: {
1293
1293
  type: 'object',
@@ -1298,6 +1298,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1298
1298
  description: 'Reuse this key when retrying the same delivery',
1299
1299
  },
1300
1300
  draftId: {
1301
+ description: 'Send this existing draft',
1301
1302
  anyOf: [
1302
1303
  {
1303
1304
  type: 'string',
@@ -1308,9 +1309,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1308
1309
  type: 'null',
1309
1310
  },
1310
1311
  ],
1311
- description: 'Send this existing draft',
1312
1312
  },
1313
1313
  accountId: {
1314
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1314
1315
  anyOf: [
1315
1316
  {
1316
1317
  type: 'string',
@@ -1321,9 +1322,9 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1321
1322
  type: 'null',
1322
1323
  },
1323
1324
  ],
1324
- description: 'Account to operate on. Optional when exactly one account is connected.',
1325
1325
  },
1326
1326
  from: {
1327
+ description: 'Connected address or an available send-as address',
1327
1328
  anyOf: [
1328
1329
  {
1329
1330
  type: 'string',
@@ -1333,63 +1334,63 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1333
1334
  type: 'null',
1334
1335
  },
1335
1336
  ],
1336
- description: 'Connected address or an available send-as address',
1337
1337
  },
1338
1338
  to: {
1339
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1339
1340
  anyOf: [
1340
1341
  {
1342
+ maxItems: 100,
1341
1343
  type: 'array',
1342
1344
  items: {
1343
1345
  type: 'string',
1344
1346
  minLength: 1,
1345
1347
  maxLength: 512,
1346
1348
  },
1347
- maxItems: 100,
1348
1349
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1349
1350
  },
1350
1351
  {
1351
1352
  type: 'null',
1352
1353
  },
1353
1354
  ],
1354
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1355
1355
  },
1356
1356
  cc: {
1357
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1357
1358
  anyOf: [
1358
1359
  {
1360
+ maxItems: 100,
1359
1361
  type: 'array',
1360
1362
  items: {
1361
1363
  type: 'string',
1362
1364
  minLength: 1,
1363
1365
  maxLength: 512,
1364
1366
  },
1365
- maxItems: 100,
1366
1367
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1367
1368
  },
1368
1369
  {
1369
1370
  type: 'null',
1370
1371
  },
1371
1372
  ],
1372
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1373
1373
  },
1374
1374
  bcc: {
1375
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1375
1376
  anyOf: [
1376
1377
  {
1378
+ maxItems: 100,
1377
1379
  type: 'array',
1378
1380
  items: {
1379
1381
  type: 'string',
1380
1382
  minLength: 1,
1381
1383
  maxLength: 512,
1382
1384
  },
1383
- maxItems: 100,
1384
1385
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1385
1386
  },
1386
1387
  {
1387
1388
  type: 'null',
1388
1389
  },
1389
1390
  ],
1390
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1391
1391
  },
1392
1392
  subject: {
1393
+ description: 'Defaults to "Re: ..." when replying',
1393
1394
  anyOf: [
1394
1395
  {
1395
1396
  type: 'string',
@@ -1399,17 +1400,17 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1399
1400
  type: 'null',
1400
1401
  },
1401
1402
  ],
1402
- description: 'Defaults to "Re: ..." when replying',
1403
1403
  },
1404
1404
  bodyText: {
1405
- type: ['string', 'null'],
1406
1405
  description: 'Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines.',
1406
+ type: ['string', 'null'],
1407
1407
  },
1408
1408
  bodyHtml: {
1409
- type: ['string', 'null'],
1410
1409
  description: 'HTML body',
1410
+ type: ['string', 'null'],
1411
1411
  },
1412
1412
  replyToMessageId: {
1413
+ description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
1413
1414
  anyOf: [
1414
1415
  {
1415
1416
  type: 'string',
@@ -1420,11 +1421,10 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1420
1421
  type: 'null',
1421
1422
  },
1422
1423
  ],
1423
- description: 'Message being replied to; threads correctly and computes recipients if "to" is omitted',
1424
1424
  },
1425
1425
  replyAll: {
1426
- type: ['boolean', 'null'],
1427
1426
  description: 'With replyToMessageId: reply to all original recipients',
1427
+ type: ['boolean', 'null'],
1428
1428
  },
1429
1429
  attachments: {
1430
1430
  anyOf: [
@@ -1448,15 +1448,15 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1448
1448
  description: 'base64',
1449
1449
  },
1450
1450
  contentId: {
1451
+ description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
1451
1452
  type: 'string',
1452
1453
  minLength: 1,
1453
1454
  maxLength: 255,
1454
- description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
1455
1455
  },
1456
1456
  disposition: {
1457
+ description: 'Defaults to attachment',
1457
1458
  type: 'string',
1458
1459
  enum: ['inline', 'attachment'],
1459
- description: 'Defaults to attachment',
1460
1460
  },
1461
1461
  },
1462
1462
  required: ['filename', 'mimeType', 'content'],
@@ -1469,8 +1469,8 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1469
1469
  ],
1470
1470
  },
1471
1471
  },
1472
- additionalProperties: false,
1473
1472
  $schema: 'http://json-schema.org/draft-07/schema#',
1473
+ additionalProperties: false,
1474
1474
  required: ['idempotencyKey'],
1475
1475
  },
1476
1476
  get_delivery_operation: {
@@ -1488,8 +1488,8 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1488
1488
  },
1489
1489
  },
1490
1490
  required: ['accountId', 'operationId'],
1491
- additionalProperties: false,
1492
1491
  $schema: 'http://json-schema.org/draft-07/schema#',
1492
+ additionalProperties: false,
1493
1493
  },
1494
1494
  forward_email: {
1495
1495
  type: 'object',
@@ -1500,6 +1500,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1500
1500
  description: 'Reuse this key when retrying the same forward',
1501
1501
  },
1502
1502
  accountId: {
1503
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1503
1504
  anyOf: [
1504
1505
  {
1505
1506
  type: 'string',
@@ -1510,7 +1511,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1510
1511
  type: 'null',
1511
1512
  },
1512
1513
  ],
1513
- description: 'Account to operate on. Optional when exactly one account is connected.',
1514
1514
  },
1515
1515
  messageId: {
1516
1516
  type: 'string',
@@ -1518,6 +1518,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1518
1518
  maxLength: 512,
1519
1519
  },
1520
1520
  from: {
1521
+ description: 'Connected address or an available send-as address',
1521
1522
  anyOf: [
1522
1523
  {
1523
1524
  type: 'string',
@@ -1527,54 +1528,54 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1527
1528
  type: 'null',
1528
1529
  },
1529
1530
  ],
1530
- description: 'Connected address or an available send-as address',
1531
1531
  },
1532
1532
  to: {
1533
+ minItems: 1,
1534
+ maxItems: 100,
1533
1535
  type: 'array',
1534
1536
  items: {
1535
1537
  type: 'string',
1536
1538
  minLength: 1,
1537
1539
  maxLength: 512,
1538
1540
  },
1539
- minItems: 1,
1540
- maxItems: 100,
1541
1541
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1542
1542
  },
1543
1543
  cc: {
1544
+ description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1544
1545
  anyOf: [
1545
1546
  {
1547
+ maxItems: 100,
1546
1548
  type: 'array',
1547
1549
  items: {
1548
1550
  type: 'string',
1549
1551
  minLength: 1,
1550
1552
  maxLength: 512,
1551
1553
  },
1552
- maxItems: 100,
1553
1554
  description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1554
1555
  },
1555
1556
  {
1556
1557
  type: 'null',
1557
1558
  },
1558
1559
  ],
1559
- description: 'Recipients, each "Name <a@x.com>" or "a@x.com"',
1560
1560
  },
1561
1561
  comment: {
1562
- type: ['string', 'null'],
1563
1562
  description: 'Comment above the forwarded message. Keep prose paragraphs on one continuous line and separate paragraphs with blank lines.',
1563
+ type: ['string', 'null'],
1564
1564
  },
1565
1565
  includeAttachments: {
1566
- type: ['boolean', 'null'],
1567
1566
  description: 'Default true',
1567
+ type: ['boolean', 'null'],
1568
1568
  },
1569
1569
  },
1570
1570
  required: ['idempotencyKey', 'messageId', 'to'],
1571
- additionalProperties: false,
1572
1571
  $schema: 'http://json-schema.org/draft-07/schema#',
1572
+ additionalProperties: false,
1573
1573
  },
1574
1574
  mark_emails_read: {
1575
1575
  type: 'object',
1576
1576
  properties: {
1577
1577
  accountId: {
1578
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1578
1579
  anyOf: [
1579
1580
  {
1580
1581
  type: 'string',
@@ -1585,28 +1586,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1585
1586
  type: 'null',
1586
1587
  },
1587
1588
  ],
1588
- description: 'Account to operate on. Optional when exactly one account is connected.',
1589
1589
  },
1590
1590
  messageIds: {
1591
+ minItems: 1,
1592
+ maxItems: 100,
1591
1593
  type: 'array',
1592
1594
  items: {
1593
1595
  type: 'string',
1594
1596
  minLength: 1,
1595
1597
  maxLength: 512,
1596
1598
  },
1597
- minItems: 1,
1598
- maxItems: 100,
1599
1599
  description: 'Messages to change, up to 100 IDs',
1600
1600
  },
1601
1601
  },
1602
1602
  required: ['messageIds'],
1603
- additionalProperties: false,
1604
1603
  $schema: 'http://json-schema.org/draft-07/schema#',
1604
+ additionalProperties: false,
1605
1605
  },
1606
1606
  mark_emails_unread: {
1607
1607
  type: 'object',
1608
1608
  properties: {
1609
1609
  accountId: {
1610
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1610
1611
  anyOf: [
1611
1612
  {
1612
1613
  type: 'string',
@@ -1617,28 +1618,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1617
1618
  type: 'null',
1618
1619
  },
1619
1620
  ],
1620
- description: 'Account to operate on. Optional when exactly one account is connected.',
1621
1621
  },
1622
1622
  messageIds: {
1623
+ minItems: 1,
1624
+ maxItems: 100,
1623
1625
  type: 'array',
1624
1626
  items: {
1625
1627
  type: 'string',
1626
1628
  minLength: 1,
1627
1629
  maxLength: 512,
1628
1630
  },
1629
- minItems: 1,
1630
- maxItems: 100,
1631
1631
  description: 'Messages to change, up to 100 IDs',
1632
1632
  },
1633
1633
  },
1634
1634
  required: ['messageIds'],
1635
- additionalProperties: false,
1636
1635
  $schema: 'http://json-schema.org/draft-07/schema#',
1636
+ additionalProperties: false,
1637
1637
  },
1638
1638
  star_emails: {
1639
1639
  type: 'object',
1640
1640
  properties: {
1641
1641
  accountId: {
1642
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1642
1643
  anyOf: [
1643
1644
  {
1644
1645
  type: 'string',
@@ -1649,28 +1650,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1649
1650
  type: 'null',
1650
1651
  },
1651
1652
  ],
1652
- description: 'Account to operate on. Optional when exactly one account is connected.',
1653
1653
  },
1654
1654
  messageIds: {
1655
+ minItems: 1,
1656
+ maxItems: 100,
1655
1657
  type: 'array',
1656
1658
  items: {
1657
1659
  type: 'string',
1658
1660
  minLength: 1,
1659
1661
  maxLength: 512,
1660
1662
  },
1661
- minItems: 1,
1662
- maxItems: 100,
1663
1663
  description: 'Messages to change, up to 100 IDs',
1664
1664
  },
1665
1665
  },
1666
1666
  required: ['messageIds'],
1667
- additionalProperties: false,
1668
1667
  $schema: 'http://json-schema.org/draft-07/schema#',
1668
+ additionalProperties: false,
1669
1669
  },
1670
1670
  unstar_emails: {
1671
1671
  type: 'object',
1672
1672
  properties: {
1673
1673
  accountId: {
1674
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1674
1675
  anyOf: [
1675
1676
  {
1676
1677
  type: 'string',
@@ -1681,28 +1682,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1681
1682
  type: 'null',
1682
1683
  },
1683
1684
  ],
1684
- description: 'Account to operate on. Optional when exactly one account is connected.',
1685
1685
  },
1686
1686
  messageIds: {
1687
+ minItems: 1,
1688
+ maxItems: 100,
1687
1689
  type: 'array',
1688
1690
  items: {
1689
1691
  type: 'string',
1690
1692
  minLength: 1,
1691
1693
  maxLength: 512,
1692
1694
  },
1693
- minItems: 1,
1694
- maxItems: 100,
1695
1695
  description: 'Messages to change, up to 100 IDs',
1696
1696
  },
1697
1697
  },
1698
1698
  required: ['messageIds'],
1699
- additionalProperties: false,
1700
1699
  $schema: 'http://json-schema.org/draft-07/schema#',
1700
+ additionalProperties: false,
1701
1701
  },
1702
1702
  archive_emails: {
1703
1703
  type: 'object',
1704
1704
  properties: {
1705
1705
  accountId: {
1706
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1706
1707
  anyOf: [
1707
1708
  {
1708
1709
  type: 'string',
@@ -1713,28 +1714,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1713
1714
  type: 'null',
1714
1715
  },
1715
1716
  ],
1716
- description: 'Account to operate on. Optional when exactly one account is connected.',
1717
1717
  },
1718
1718
  messageIds: {
1719
+ minItems: 1,
1720
+ maxItems: 100,
1719
1721
  type: 'array',
1720
1722
  items: {
1721
1723
  type: 'string',
1722
1724
  minLength: 1,
1723
1725
  maxLength: 512,
1724
1726
  },
1725
- minItems: 1,
1726
- maxItems: 100,
1727
1727
  description: 'Messages to change, up to 100 IDs',
1728
1728
  },
1729
1729
  },
1730
1730
  required: ['messageIds'],
1731
- additionalProperties: false,
1732
1731
  $schema: 'http://json-schema.org/draft-07/schema#',
1732
+ additionalProperties: false,
1733
1733
  },
1734
1734
  move_emails: {
1735
1735
  type: 'object',
1736
1736
  properties: {
1737
1737
  accountId: {
1738
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1738
1739
  anyOf: [
1739
1740
  {
1740
1741
  type: 'string',
@@ -1745,17 +1746,16 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1745
1746
  type: 'null',
1746
1747
  },
1747
1748
  ],
1748
- description: 'Account to operate on. Optional when exactly one account is connected.',
1749
1749
  },
1750
1750
  messageIds: {
1751
+ minItems: 1,
1752
+ maxItems: 100,
1751
1753
  type: 'array',
1752
1754
  items: {
1753
1755
  type: 'string',
1754
1756
  minLength: 1,
1755
1757
  maxLength: 512,
1756
1758
  },
1757
- minItems: 1,
1758
- maxItems: 100,
1759
1759
  description: 'Messages to change, up to 100 IDs',
1760
1760
  },
1761
1761
  folder: {
@@ -1766,13 +1766,14 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1766
1766
  },
1767
1767
  },
1768
1768
  required: ['messageIds', 'folder'],
1769
- additionalProperties: false,
1770
1769
  $schema: 'http://json-schema.org/draft-07/schema#',
1770
+ additionalProperties: false,
1771
1771
  },
1772
1772
  add_labels: {
1773
1773
  type: 'object',
1774
1774
  properties: {
1775
1775
  accountId: {
1776
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1776
1777
  anyOf: [
1777
1778
  {
1778
1779
  type: 'string',
@@ -1783,39 +1784,39 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1783
1784
  type: 'null',
1784
1785
  },
1785
1786
  ],
1786
- description: 'Account to operate on. Optional when exactly one account is connected.',
1787
1787
  },
1788
1788
  messageIds: {
1789
+ minItems: 1,
1790
+ maxItems: 100,
1789
1791
  type: 'array',
1790
1792
  items: {
1791
1793
  type: 'string',
1792
1794
  minLength: 1,
1793
1795
  maxLength: 512,
1794
1796
  },
1795
- minItems: 1,
1796
- maxItems: 100,
1797
1797
  description: 'Messages to change, up to 100 IDs',
1798
1798
  },
1799
1799
  labels: {
1800
+ minItems: 1,
1801
+ maxItems: 100,
1800
1802
  type: 'array',
1801
1803
  items: {
1802
1804
  type: 'string',
1803
1805
  minLength: 1,
1804
1806
  maxLength: 512,
1805
1807
  },
1806
- minItems: 1,
1807
- maxItems: 100,
1808
1808
  description: 'Gmail labels or Outlook categories',
1809
1809
  },
1810
1810
  },
1811
1811
  required: ['messageIds', 'labels'],
1812
- additionalProperties: false,
1813
1812
  $schema: 'http://json-schema.org/draft-07/schema#',
1813
+ additionalProperties: false,
1814
1814
  },
1815
1815
  remove_labels: {
1816
1816
  type: 'object',
1817
1817
  properties: {
1818
1818
  accountId: {
1819
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1819
1820
  anyOf: [
1820
1821
  {
1821
1822
  type: 'string',
@@ -1826,39 +1827,39 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1826
1827
  type: 'null',
1827
1828
  },
1828
1829
  ],
1829
- description: 'Account to operate on. Optional when exactly one account is connected.',
1830
1830
  },
1831
1831
  messageIds: {
1832
+ minItems: 1,
1833
+ maxItems: 100,
1832
1834
  type: 'array',
1833
1835
  items: {
1834
1836
  type: 'string',
1835
1837
  minLength: 1,
1836
1838
  maxLength: 512,
1837
1839
  },
1838
- minItems: 1,
1839
- maxItems: 100,
1840
1840
  description: 'Messages to change, up to 100 IDs',
1841
1841
  },
1842
1842
  labels: {
1843
+ minItems: 1,
1844
+ maxItems: 100,
1843
1845
  type: 'array',
1844
1846
  items: {
1845
1847
  type: 'string',
1846
1848
  minLength: 1,
1847
1849
  maxLength: 512,
1848
1850
  },
1849
- minItems: 1,
1850
- maxItems: 100,
1851
1851
  description: 'Gmail labels or Outlook categories',
1852
1852
  },
1853
1853
  },
1854
1854
  required: ['messageIds', 'labels'],
1855
- additionalProperties: false,
1856
1855
  $schema: 'http://json-schema.org/draft-07/schema#',
1856
+ additionalProperties: false,
1857
1857
  },
1858
1858
  trash_emails: {
1859
1859
  type: 'object',
1860
1860
  properties: {
1861
1861
  accountId: {
1862
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1862
1863
  anyOf: [
1863
1864
  {
1864
1865
  type: 'string',
@@ -1869,28 +1870,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1869
1870
  type: 'null',
1870
1871
  },
1871
1872
  ],
1872
- description: 'Account to operate on. Optional when exactly one account is connected.',
1873
1873
  },
1874
1874
  messageIds: {
1875
+ minItems: 1,
1876
+ maxItems: 100,
1875
1877
  type: 'array',
1876
1878
  items: {
1877
1879
  type: 'string',
1878
1880
  minLength: 1,
1879
1881
  maxLength: 512,
1880
1882
  },
1881
- minItems: 1,
1882
- maxItems: 100,
1883
1883
  description: 'Messages to change, up to 100 IDs',
1884
1884
  },
1885
1885
  },
1886
1886
  required: ['messageIds'],
1887
- additionalProperties: false,
1888
1887
  $schema: 'http://json-schema.org/draft-07/schema#',
1888
+ additionalProperties: false,
1889
1889
  },
1890
1890
  restore_emails: {
1891
1891
  type: 'object',
1892
1892
  properties: {
1893
1893
  accountId: {
1894
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1894
1895
  anyOf: [
1895
1896
  {
1896
1897
  type: 'string',
@@ -1901,28 +1902,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1901
1902
  type: 'null',
1902
1903
  },
1903
1904
  ],
1904
- description: 'Account to operate on. Optional when exactly one account is connected.',
1905
1905
  },
1906
1906
  messageIds: {
1907
+ minItems: 1,
1908
+ maxItems: 100,
1907
1909
  type: 'array',
1908
1910
  items: {
1909
1911
  type: 'string',
1910
1912
  minLength: 1,
1911
1913
  maxLength: 512,
1912
1914
  },
1913
- minItems: 1,
1914
- maxItems: 100,
1915
1915
  description: 'Messages to change, up to 100 IDs',
1916
1916
  },
1917
1917
  },
1918
1918
  required: ['messageIds'],
1919
- additionalProperties: false,
1920
1919
  $schema: 'http://json-schema.org/draft-07/schema#',
1920
+ additionalProperties: false,
1921
1921
  },
1922
1922
  delete_emails: {
1923
1923
  type: 'object',
1924
1924
  properties: {
1925
1925
  accountId: {
1926
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1926
1927
  anyOf: [
1927
1928
  {
1928
1929
  type: 'string',
@@ -1933,28 +1934,28 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1933
1934
  type: 'null',
1934
1935
  },
1935
1936
  ],
1936
- description: 'Account to operate on. Optional when exactly one account is connected.',
1937
1937
  },
1938
1938
  messageIds: {
1939
+ minItems: 1,
1940
+ maxItems: 100,
1939
1941
  type: 'array',
1940
1942
  items: {
1941
1943
  type: 'string',
1942
1944
  minLength: 1,
1943
1945
  maxLength: 512,
1944
1946
  },
1945
- minItems: 1,
1946
- maxItems: 100,
1947
1947
  description: 'Messages to change, up to 100 IDs',
1948
1948
  },
1949
1949
  },
1950
1950
  required: ['messageIds'],
1951
- additionalProperties: false,
1952
1951
  $schema: 'http://json-schema.org/draft-07/schema#',
1952
+ additionalProperties: false,
1953
1953
  },
1954
1954
  download_attachment: {
1955
1955
  type: 'object',
1956
1956
  properties: {
1957
1957
  accountId: {
1958
+ description: 'Account to operate on. Optional when exactly one account is connected.',
1958
1959
  anyOf: [
1959
1960
  {
1960
1961
  type: 'string',
@@ -1965,7 +1966,6 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1965
1966
  type: 'null',
1966
1967
  },
1967
1968
  ],
1968
- description: 'Account to operate on. Optional when exactly one account is connected.',
1969
1969
  },
1970
1970
  messageId: {
1971
1971
  type: 'string',
@@ -1982,6 +1982,7 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1982
1982
  type: ['boolean', 'null'],
1983
1983
  },
1984
1984
  pages: {
1985
+ description: 'PDF page or page range to read as text, such as 201-400',
1985
1986
  anyOf: [
1986
1987
  {
1987
1988
  type: 'string',
@@ -1992,12 +1993,11 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
1992
1993
  type: 'null',
1993
1994
  },
1994
1995
  ],
1995
- description: 'PDF page or page range to read as text, such as 201-400',
1996
1996
  },
1997
1997
  },
1998
1998
  required: ['messageId', 'attachmentId'],
1999
- additionalProperties: false,
2000
1999
  $schema: 'http://json-schema.org/draft-07/schema#',
2000
+ additionalProperties: false,
2001
2001
  },
2002
2002
  };
2003
2003
  export const SHARED_TOOL_OUTPUT_SCHEMAS = {
@@ -2015,8 +2015,8 @@ export const SHARED_TOOL_OUTPUT_SCHEMAS = {
2015
2015
  message: {
2016
2016
  type: 'string',
2017
2017
  minLength: 1,
2018
- pattern: '^(?!\\s*$)[^\\0]+$',
2019
2018
  maxLength: 4000,
2019
+ pattern: '^(?!\\s*$)[^\\0]+$',
2020
2020
  description: 'The feedback text approved by the user.',
2021
2021
  },
2022
2022
  category: {
@@ -2036,8 +2036,8 @@ export const SHARED_TOOL_OUTPUT_SCHEMAS = {
2036
2036
  type: 'string',
2037
2037
  maxLength: 320,
2038
2038
  format: 'email',
2039
- pattern: '^[^\\s\\x00-\\x1f\\x7f]+$',
2040
2039
  description: 'Optional reply address confirmed by the user. Never choose a connected mailbox address automatically.',
2040
+ pattern: '^[^\\s\\x00-\\x1f\\x7f]+$',
2041
2041
  },
2042
2042
  requestId: {
2043
2043
  type: 'string',
@@ -2057,15 +2057,15 @@ export const SHARED_TOOL_OUTPUT_SCHEMAS = {
2057
2057
  expectedBehavior: {
2058
2058
  type: 'string',
2059
2059
  minLength: 1,
2060
- pattern: '^(?!\\s*$)[^\\0]+$',
2061
2060
  maxLength: 1000,
2061
+ pattern: '^(?!\\s*$)[^\\0]+$',
2062
2062
  description: 'What the user expected. Exclude mail contents and credentials.',
2063
2063
  },
2064
2064
  actualBehavior: {
2065
2065
  type: 'string',
2066
2066
  minLength: 1,
2067
- pattern: '^(?!\\s*$)[^\\0]+$',
2068
2067
  maxLength: 1000,
2068
+ pattern: '^(?!\\s*$)[^\\0]+$',
2069
2069
  description: 'What happened instead. Exclude mail contents and credentials.',
2070
2070
  },
2071
2071
  },