@bubblelab/bubble-core 0.1.234 → 0.1.235

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 (87) hide show
  1. package/dist/bubble-bundle.d.ts +116 -116
  2. package/dist/bubbles/service-bubble/agi-inc.d.ts +76 -76
  3. package/dist/bubbles/service-bubble/ai-agent.d.ts +16 -16
  4. package/dist/bubbles/service-bubble/airtable.d.ts +46 -46
  5. package/dist/bubbles/service-bubble/apify/apify.d.ts +12 -12
  6. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +62 -62
  7. package/dist/bubbles/service-bubble/assembled/assembled.d.ts +26 -26
  8. package/dist/bubbles/service-bubble/attio/attio.d.ts +28 -28
  9. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +28 -28
  10. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +26 -26
  11. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +86 -86
  12. package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
  13. package/dist/bubbles/service-bubble/firecrawl.d.ts +294 -294
  14. package/dist/bubbles/service-bubble/followupboss.d.ts +128 -128
  15. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +28 -28
  16. package/dist/bubbles/service-bubble/github.d.ts +168 -168
  17. package/dist/bubbles/service-bubble/gmail.d.ts +387 -320
  18. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
  19. package/dist/bubbles/service-bubble/gmail.js +54 -0
  20. package/dist/bubbles/service-bubble/gmail.js.map +1 -1
  21. package/dist/bubbles/service-bubble/google-calendar.d.ts +30 -30
  22. package/dist/bubbles/service-bubble/google-drive.d.ts +56 -56
  23. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +22 -22
  24. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  25. package/dist/bubbles/service-bubble/http.d.ts +49 -26
  26. package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
  27. package/dist/bubbles/service-bubble/http.js +87 -12
  28. package/dist/bubbles/service-bubble/http.js.map +1 -1
  29. package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +38 -38
  30. package/dist/bubbles/service-bubble/insforge-db.d.ts +10 -10
  31. package/dist/bubbles/service-bubble/jira/jira.d.ts +62 -62
  32. package/dist/bubbles/service-bubble/linear/linear.d.ts +22 -22
  33. package/dist/bubbles/service-bubble/notion/notion.d.ts +669 -669
  34. package/dist/bubbles/service-bubble/postgresql.d.ts +10 -10
  35. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +12 -12
  36. package/dist/bubbles/service-bubble/ramp/ramp.d.ts +28 -28
  37. package/dist/bubbles/service-bubble/resend.d.ts +16 -16
  38. package/dist/bubbles/service-bubble/s3/s3.d.ts +12 -12
  39. package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +10 -10
  40. package/dist/bubbles/service-bubble/slab/slab.d.ts +26 -26
  41. package/dist/bubbles/service-bubble/slack/slack.d.ts +326 -326
  42. package/dist/bubbles/service-bubble/storage.d.ts +24 -24
  43. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +50 -50
  44. package/dist/bubbles/service-bubble/telegram.d.ts +56 -56
  45. package/dist/bubbles/service-bubble/xero/xero.d.ts +16 -16
  46. package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +36 -36
  47. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +20 -20
  48. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
  49. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -2
  50. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
  51. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
  52. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +8 -8
  53. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
  54. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  55. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +14 -14
  56. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  57. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  58. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +12 -12
  59. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
  60. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +112 -112
  61. package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
  62. package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
  63. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  64. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +4 -4
  65. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +38 -38
  66. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +24 -24
  67. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
  68. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  69. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +12 -12
  70. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  71. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +48 -48
  72. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +18 -18
  73. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +16 -16
  74. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +14 -14
  75. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +12 -12
  76. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
  77. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +24 -24
  78. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  79. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +16 -16
  80. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
  81. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +24 -24
  82. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +24 -24
  83. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +6 -6
  84. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +14 -14
  85. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
  86. package/dist/bubbles.json +95 -6
  87. package/package.json +2 -2
@@ -69,7 +69,7 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
69
69
  metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
70
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
71
71
  }, "strip", z.ZodTypeAny, {
72
- format: "minimal" | "metadata" | "full" | "raw";
72
+ format: "minimal" | "metadata" | "raw" | "full";
73
73
  operation: "get_email";
74
74
  message_id: string;
75
75
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -77,7 +77,7 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
77
77
  }, {
78
78
  operation: "get_email";
79
79
  message_id: string;
80
- format?: "minimal" | "metadata" | "full" | "raw" | undefined;
80
+ format?: "minimal" | "metadata" | "raw" | "full" | undefined;
81
81
  credentials?: Partial<Record<CredentialType, string>> | undefined;
82
82
  metadata_headers?: string[] | undefined;
83
83
  }>, z.ZodObject<{
@@ -305,6 +305,21 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
305
305
  credentials?: Partial<Record<CredentialType, string>> | undefined;
306
306
  add_label_ids?: string[] | undefined;
307
307
  remove_label_ids?: string[] | undefined;
308
+ }>, z.ZodObject<{
309
+ operation: z.ZodLiteral<"get_attachment">;
310
+ message_id: z.ZodString;
311
+ attachment_id: z.ZodString;
312
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ operation: "get_attachment";
315
+ message_id: string;
316
+ attachment_id: string;
317
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
318
+ }, {
319
+ operation: "get_attachment";
320
+ message_id: string;
321
+ attachment_id: string;
322
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
308
323
  }>]>;
309
324
  declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
310
325
  operation: z.ZodLiteral<"send_email">;
@@ -313,14 +328,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
313
328
  thread_id: z.ZodOptional<z.ZodString>;
314
329
  error: z.ZodString;
315
330
  }, "strip", z.ZodTypeAny, {
316
- error: string;
317
331
  success: boolean;
332
+ error: string;
318
333
  operation: "send_email";
319
334
  message_id?: string | undefined;
320
335
  thread_id?: string | undefined;
321
336
  }, {
322
- error: string;
323
337
  success: boolean;
338
+ error: string;
324
339
  operation: "send_email";
325
340
  message_id?: string | undefined;
326
341
  thread_id?: string | undefined;
@@ -354,43 +369,42 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
354
369
  size: z.ZodOptional<z.ZodNumber>;
355
370
  attachmentId: z.ZodOptional<z.ZodString>;
356
371
  }, "strip", z.ZodTypeAny, {
357
- data?: string | undefined;
358
372
  size?: number | undefined;
373
+ data?: string | undefined;
359
374
  attachmentId?: string | undefined;
360
375
  }, {
361
- data?: string | undefined;
362
376
  size?: number | undefined;
377
+ data?: string | undefined;
363
378
  attachmentId?: string | undefined;
364
379
  }>>;
365
380
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
366
381
  }, "strip", z.ZodTypeAny, {
367
- mimeType?: string | undefined;
368
382
  headers?: {
369
383
  value: string;
370
384
  name: string;
371
385
  }[] | undefined;
372
386
  body?: {
373
- data?: string | undefined;
374
387
  size?: number | undefined;
388
+ data?: string | undefined;
375
389
  attachmentId?: string | undefined;
376
390
  } | undefined;
391
+ mimeType?: string | undefined;
377
392
  parts?: any[] | undefined;
378
393
  }, {
379
- mimeType?: string | undefined;
380
394
  headers?: {
381
395
  value: string;
382
396
  name: string;
383
397
  }[] | undefined;
384
398
  body?: {
385
- data?: string | undefined;
386
399
  size?: number | undefined;
400
+ data?: string | undefined;
387
401
  attachmentId?: string | undefined;
388
402
  } | undefined;
403
+ mimeType?: string | undefined;
389
404
  parts?: any[] | undefined;
390
405
  }>>;
391
406
  }, "strip", z.ZodTypeAny, {
392
407
  id: string;
393
- raw?: string | undefined;
394
408
  threadId?: string | undefined;
395
409
  labelIds?: string[] | undefined;
396
410
  snippet?: string | undefined;
@@ -398,22 +412,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
398
412
  historyId?: string | undefined;
399
413
  internalDate?: string | undefined;
400
414
  sizeEstimate?: number | undefined;
415
+ raw?: string | undefined;
401
416
  payload?: {
402
- mimeType?: string | undefined;
403
417
  headers?: {
404
418
  value: string;
405
419
  name: string;
406
420
  }[] | undefined;
407
421
  body?: {
408
- data?: string | undefined;
409
422
  size?: number | undefined;
423
+ data?: string | undefined;
410
424
  attachmentId?: string | undefined;
411
425
  } | undefined;
426
+ mimeType?: string | undefined;
412
427
  parts?: any[] | undefined;
413
428
  } | undefined;
414
429
  }, {
415
430
  id: string;
416
- raw?: string | undefined;
417
431
  threadId?: string | undefined;
418
432
  labelIds?: string[] | undefined;
419
433
  snippet?: string | undefined;
@@ -421,17 +435,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
421
435
  historyId?: string | undefined;
422
436
  internalDate?: string | undefined;
423
437
  sizeEstimate?: number | undefined;
438
+ raw?: string | undefined;
424
439
  payload?: {
425
- mimeType?: string | undefined;
426
440
  headers?: {
427
441
  value: string;
428
442
  name: string;
429
443
  }[] | undefined;
430
444
  body?: {
431
- data?: string | undefined;
432
445
  size?: number | undefined;
446
+ data?: string | undefined;
433
447
  attachmentId?: string | undefined;
434
448
  } | undefined;
449
+ mimeType?: string | undefined;
435
450
  parts?: any[] | undefined;
436
451
  } | undefined;
437
452
  }>, "many">>;
@@ -439,12 +454,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
439
454
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
440
455
  error: z.ZodString;
441
456
  }, "strip", z.ZodTypeAny, {
442
- error: string;
443
457
  success: boolean;
458
+ error: string;
444
459
  operation: "list_emails";
445
460
  messages?: {
446
461
  id: string;
447
- raw?: string | undefined;
448
462
  threadId?: string | undefined;
449
463
  labelIds?: string[] | undefined;
450
464
  snippet?: string | undefined;
@@ -452,29 +466,29 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
452
466
  historyId?: string | undefined;
453
467
  internalDate?: string | undefined;
454
468
  sizeEstimate?: number | undefined;
469
+ raw?: string | undefined;
455
470
  payload?: {
456
- mimeType?: string | undefined;
457
471
  headers?: {
458
472
  value: string;
459
473
  name: string;
460
474
  }[] | undefined;
461
475
  body?: {
462
- data?: string | undefined;
463
476
  size?: number | undefined;
477
+ data?: string | undefined;
464
478
  attachmentId?: string | undefined;
465
479
  } | undefined;
480
+ mimeType?: string | undefined;
466
481
  parts?: any[] | undefined;
467
482
  } | undefined;
468
483
  }[] | undefined;
469
484
  next_page_token?: string | undefined;
470
485
  result_size_estimate?: number | undefined;
471
486
  }, {
472
- error: string;
473
487
  success: boolean;
488
+ error: string;
474
489
  operation: "list_emails";
475
490
  messages?: {
476
491
  id: string;
477
- raw?: string | undefined;
478
492
  threadId?: string | undefined;
479
493
  labelIds?: string[] | undefined;
480
494
  snippet?: string | undefined;
@@ -482,17 +496,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
482
496
  historyId?: string | undefined;
483
497
  internalDate?: string | undefined;
484
498
  sizeEstimate?: number | undefined;
499
+ raw?: string | undefined;
485
500
  payload?: {
486
- mimeType?: string | undefined;
487
501
  headers?: {
488
502
  value: string;
489
503
  name: string;
490
504
  }[] | undefined;
491
505
  body?: {
492
- data?: string | undefined;
493
506
  size?: number | undefined;
507
+ data?: string | undefined;
494
508
  attachmentId?: string | undefined;
495
509
  } | undefined;
510
+ mimeType?: string | undefined;
496
511
  parts?: any[] | undefined;
497
512
  } | undefined;
498
513
  }[] | undefined;
@@ -528,43 +543,42 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
528
543
  size: z.ZodOptional<z.ZodNumber>;
529
544
  attachmentId: z.ZodOptional<z.ZodString>;
530
545
  }, "strip", z.ZodTypeAny, {
531
- data?: string | undefined;
532
546
  size?: number | undefined;
547
+ data?: string | undefined;
533
548
  attachmentId?: string | undefined;
534
549
  }, {
535
- data?: string | undefined;
536
550
  size?: number | undefined;
551
+ data?: string | undefined;
537
552
  attachmentId?: string | undefined;
538
553
  }>>;
539
554
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
540
555
  }, "strip", z.ZodTypeAny, {
541
- mimeType?: string | undefined;
542
556
  headers?: {
543
557
  value: string;
544
558
  name: string;
545
559
  }[] | undefined;
546
560
  body?: {
547
- data?: string | undefined;
548
561
  size?: number | undefined;
562
+ data?: string | undefined;
549
563
  attachmentId?: string | undefined;
550
564
  } | undefined;
565
+ mimeType?: string | undefined;
551
566
  parts?: any[] | undefined;
552
567
  }, {
553
- mimeType?: string | undefined;
554
568
  headers?: {
555
569
  value: string;
556
570
  name: string;
557
571
  }[] | undefined;
558
572
  body?: {
559
- data?: string | undefined;
560
573
  size?: number | undefined;
574
+ data?: string | undefined;
561
575
  attachmentId?: string | undefined;
562
576
  } | undefined;
577
+ mimeType?: string | undefined;
563
578
  parts?: any[] | undefined;
564
579
  }>>;
565
580
  }, "strip", z.ZodTypeAny, {
566
581
  id: string;
567
- raw?: string | undefined;
568
582
  threadId?: string | undefined;
569
583
  labelIds?: string[] | undefined;
570
584
  snippet?: string | undefined;
@@ -572,22 +586,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
572
586
  historyId?: string | undefined;
573
587
  internalDate?: string | undefined;
574
588
  sizeEstimate?: number | undefined;
589
+ raw?: string | undefined;
575
590
  payload?: {
576
- mimeType?: string | undefined;
577
591
  headers?: {
578
592
  value: string;
579
593
  name: string;
580
594
  }[] | undefined;
581
595
  body?: {
582
- data?: string | undefined;
583
596
  size?: number | undefined;
597
+ data?: string | undefined;
584
598
  attachmentId?: string | undefined;
585
599
  } | undefined;
600
+ mimeType?: string | undefined;
586
601
  parts?: any[] | undefined;
587
602
  } | undefined;
588
603
  }, {
589
604
  id: string;
590
- raw?: string | undefined;
591
605
  threadId?: string | undefined;
592
606
  labelIds?: string[] | undefined;
593
607
  snippet?: string | undefined;
@@ -595,28 +609,28 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
595
609
  historyId?: string | undefined;
596
610
  internalDate?: string | undefined;
597
611
  sizeEstimate?: number | undefined;
612
+ raw?: string | undefined;
598
613
  payload?: {
599
- mimeType?: string | undefined;
600
614
  headers?: {
601
615
  value: string;
602
616
  name: string;
603
617
  }[] | undefined;
604
618
  body?: {
605
- data?: string | undefined;
606
619
  size?: number | undefined;
620
+ data?: string | undefined;
607
621
  attachmentId?: string | undefined;
608
622
  } | undefined;
623
+ mimeType?: string | undefined;
609
624
  parts?: any[] | undefined;
610
625
  } | undefined;
611
626
  }>>;
612
627
  error: z.ZodString;
613
628
  }, "strip", z.ZodTypeAny, {
614
- error: string;
615
629
  success: boolean;
630
+ error: string;
616
631
  operation: "get_email";
617
632
  message?: {
618
633
  id: string;
619
- raw?: string | undefined;
620
634
  threadId?: string | undefined;
621
635
  labelIds?: string[] | undefined;
622
636
  snippet?: string | undefined;
@@ -624,27 +638,27 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
624
638
  historyId?: string | undefined;
625
639
  internalDate?: string | undefined;
626
640
  sizeEstimate?: number | undefined;
641
+ raw?: string | undefined;
627
642
  payload?: {
628
- mimeType?: string | undefined;
629
643
  headers?: {
630
644
  value: string;
631
645
  name: string;
632
646
  }[] | undefined;
633
647
  body?: {
634
- data?: string | undefined;
635
648
  size?: number | undefined;
649
+ data?: string | undefined;
636
650
  attachmentId?: string | undefined;
637
651
  } | undefined;
652
+ mimeType?: string | undefined;
638
653
  parts?: any[] | undefined;
639
654
  } | undefined;
640
655
  } | undefined;
641
656
  }, {
642
- error: string;
643
657
  success: boolean;
658
+ error: string;
644
659
  operation: "get_email";
645
660
  message?: {
646
661
  id: string;
647
- raw?: string | undefined;
648
662
  threadId?: string | undefined;
649
663
  labelIds?: string[] | undefined;
650
664
  snippet?: string | undefined;
@@ -652,17 +666,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
652
666
  historyId?: string | undefined;
653
667
  internalDate?: string | undefined;
654
668
  sizeEstimate?: number | undefined;
669
+ raw?: string | undefined;
655
670
  payload?: {
656
- mimeType?: string | undefined;
657
671
  headers?: {
658
672
  value: string;
659
673
  name: string;
660
674
  }[] | undefined;
661
675
  body?: {
662
- data?: string | undefined;
663
676
  size?: number | undefined;
677
+ data?: string | undefined;
664
678
  attachmentId?: string | undefined;
665
679
  } | undefined;
680
+ mimeType?: string | undefined;
666
681
  parts?: any[] | undefined;
667
682
  } | undefined;
668
683
  } | undefined;
@@ -696,43 +711,42 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
696
711
  size: z.ZodOptional<z.ZodNumber>;
697
712
  attachmentId: z.ZodOptional<z.ZodString>;
698
713
  }, "strip", z.ZodTypeAny, {
699
- data?: string | undefined;
700
714
  size?: number | undefined;
715
+ data?: string | undefined;
701
716
  attachmentId?: string | undefined;
702
717
  }, {
703
- data?: string | undefined;
704
718
  size?: number | undefined;
719
+ data?: string | undefined;
705
720
  attachmentId?: string | undefined;
706
721
  }>>;
707
722
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
708
723
  }, "strip", z.ZodTypeAny, {
709
- mimeType?: string | undefined;
710
724
  headers?: {
711
725
  value: string;
712
726
  name: string;
713
727
  }[] | undefined;
714
728
  body?: {
715
- data?: string | undefined;
716
729
  size?: number | undefined;
730
+ data?: string | undefined;
717
731
  attachmentId?: string | undefined;
718
732
  } | undefined;
733
+ mimeType?: string | undefined;
719
734
  parts?: any[] | undefined;
720
735
  }, {
721
- mimeType?: string | undefined;
722
736
  headers?: {
723
737
  value: string;
724
738
  name: string;
725
739
  }[] | undefined;
726
740
  body?: {
727
- data?: string | undefined;
728
741
  size?: number | undefined;
742
+ data?: string | undefined;
729
743
  attachmentId?: string | undefined;
730
744
  } | undefined;
745
+ mimeType?: string | undefined;
731
746
  parts?: any[] | undefined;
732
747
  }>>;
733
748
  }, "strip", z.ZodTypeAny, {
734
749
  id: string;
735
- raw?: string | undefined;
736
750
  threadId?: string | undefined;
737
751
  labelIds?: string[] | undefined;
738
752
  snippet?: string | undefined;
@@ -740,22 +754,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
740
754
  historyId?: string | undefined;
741
755
  internalDate?: string | undefined;
742
756
  sizeEstimate?: number | undefined;
757
+ raw?: string | undefined;
743
758
  payload?: {
744
- mimeType?: string | undefined;
745
759
  headers?: {
746
760
  value: string;
747
761
  name: string;
748
762
  }[] | undefined;
749
763
  body?: {
750
- data?: string | undefined;
751
764
  size?: number | undefined;
765
+ data?: string | undefined;
752
766
  attachmentId?: string | undefined;
753
767
  } | undefined;
768
+ mimeType?: string | undefined;
754
769
  parts?: any[] | undefined;
755
770
  } | undefined;
756
771
  }, {
757
772
  id: string;
758
- raw?: string | undefined;
759
773
  threadId?: string | undefined;
760
774
  labelIds?: string[] | undefined;
761
775
  snippet?: string | undefined;
@@ -763,29 +777,29 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
763
777
  historyId?: string | undefined;
764
778
  internalDate?: string | undefined;
765
779
  sizeEstimate?: number | undefined;
780
+ raw?: string | undefined;
766
781
  payload?: {
767
- mimeType?: string | undefined;
768
782
  headers?: {
769
783
  value: string;
770
784
  name: string;
771
785
  }[] | undefined;
772
786
  body?: {
773
- data?: string | undefined;
774
787
  size?: number | undefined;
788
+ data?: string | undefined;
775
789
  attachmentId?: string | undefined;
776
790
  } | undefined;
791
+ mimeType?: string | undefined;
777
792
  parts?: any[] | undefined;
778
793
  } | undefined;
779
794
  }>, "many">>;
780
795
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
781
796
  error: z.ZodString;
782
797
  }, "strip", z.ZodTypeAny, {
783
- error: string;
784
798
  success: boolean;
799
+ error: string;
785
800
  operation: "search_emails";
786
801
  messages?: {
787
802
  id: string;
788
- raw?: string | undefined;
789
803
  threadId?: string | undefined;
790
804
  labelIds?: string[] | undefined;
791
805
  snippet?: string | undefined;
@@ -793,28 +807,28 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
793
807
  historyId?: string | undefined;
794
808
  internalDate?: string | undefined;
795
809
  sizeEstimate?: number | undefined;
810
+ raw?: string | undefined;
796
811
  payload?: {
797
- mimeType?: string | undefined;
798
812
  headers?: {
799
813
  value: string;
800
814
  name: string;
801
815
  }[] | undefined;
802
816
  body?: {
803
- data?: string | undefined;
804
817
  size?: number | undefined;
818
+ data?: string | undefined;
805
819
  attachmentId?: string | undefined;
806
820
  } | undefined;
821
+ mimeType?: string | undefined;
807
822
  parts?: any[] | undefined;
808
823
  } | undefined;
809
824
  }[] | undefined;
810
825
  result_size_estimate?: number | undefined;
811
826
  }, {
812
- error: string;
813
827
  success: boolean;
828
+ error: string;
814
829
  operation: "search_emails";
815
830
  messages?: {
816
831
  id: string;
817
- raw?: string | undefined;
818
832
  threadId?: string | undefined;
819
833
  labelIds?: string[] | undefined;
820
834
  snippet?: string | undefined;
@@ -822,17 +836,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
822
836
  historyId?: string | undefined;
823
837
  internalDate?: string | undefined;
824
838
  sizeEstimate?: number | undefined;
839
+ raw?: string | undefined;
825
840
  payload?: {
826
- mimeType?: string | undefined;
827
841
  headers?: {
828
842
  value: string;
829
843
  name: string;
830
844
  }[] | undefined;
831
845
  body?: {
832
- data?: string | undefined;
833
846
  size?: number | undefined;
847
+ data?: string | undefined;
834
848
  attachmentId?: string | undefined;
835
849
  } | undefined;
850
+ mimeType?: string | undefined;
836
851
  parts?: any[] | undefined;
837
852
  } | undefined;
838
853
  }[] | undefined;
@@ -843,13 +858,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
843
858
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
844
859
  error: z.ZodString;
845
860
  }, "strip", z.ZodTypeAny, {
846
- error: string;
847
861
  success: boolean;
862
+ error: string;
848
863
  operation: "mark_as_read";
849
864
  modified_messages?: string[] | undefined;
850
865
  }, {
851
- error: string;
852
866
  success: boolean;
867
+ error: string;
853
868
  operation: "mark_as_read";
854
869
  modified_messages?: string[] | undefined;
855
870
  }>, z.ZodObject<{
@@ -858,13 +873,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
858
873
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
859
874
  error: z.ZodString;
860
875
  }, "strip", z.ZodTypeAny, {
861
- error: string;
862
876
  success: boolean;
877
+ error: string;
863
878
  operation: "mark_as_unread";
864
879
  modified_messages?: string[] | undefined;
865
880
  }, {
866
- error: string;
867
881
  success: boolean;
882
+ error: string;
868
883
  operation: "mark_as_unread";
869
884
  modified_messages?: string[] | undefined;
870
885
  }>, z.ZodObject<{
@@ -899,43 +914,42 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
899
914
  size: z.ZodOptional<z.ZodNumber>;
900
915
  attachmentId: z.ZodOptional<z.ZodString>;
901
916
  }, "strip", z.ZodTypeAny, {
902
- data?: string | undefined;
903
917
  size?: number | undefined;
918
+ data?: string | undefined;
904
919
  attachmentId?: string | undefined;
905
920
  }, {
906
- data?: string | undefined;
907
921
  size?: number | undefined;
922
+ data?: string | undefined;
908
923
  attachmentId?: string | undefined;
909
924
  }>>;
910
925
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
911
926
  }, "strip", z.ZodTypeAny, {
912
- mimeType?: string | undefined;
913
927
  headers?: {
914
928
  value: string;
915
929
  name: string;
916
930
  }[] | undefined;
917
931
  body?: {
918
- data?: string | undefined;
919
932
  size?: number | undefined;
933
+ data?: string | undefined;
920
934
  attachmentId?: string | undefined;
921
935
  } | undefined;
936
+ mimeType?: string | undefined;
922
937
  parts?: any[] | undefined;
923
938
  }, {
924
- mimeType?: string | undefined;
925
939
  headers?: {
926
940
  value: string;
927
941
  name: string;
928
942
  }[] | undefined;
929
943
  body?: {
930
- data?: string | undefined;
931
944
  size?: number | undefined;
945
+ data?: string | undefined;
932
946
  attachmentId?: string | undefined;
933
947
  } | undefined;
948
+ mimeType?: string | undefined;
934
949
  parts?: any[] | undefined;
935
950
  }>>;
936
951
  }, "strip", z.ZodTypeAny, {
937
952
  id: string;
938
- raw?: string | undefined;
939
953
  threadId?: string | undefined;
940
954
  labelIds?: string[] | undefined;
941
955
  snippet?: string | undefined;
@@ -943,22 +957,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
943
957
  historyId?: string | undefined;
944
958
  internalDate?: string | undefined;
945
959
  sizeEstimate?: number | undefined;
960
+ raw?: string | undefined;
946
961
  payload?: {
947
- mimeType?: string | undefined;
948
962
  headers?: {
949
963
  value: string;
950
964
  name: string;
951
965
  }[] | undefined;
952
966
  body?: {
953
- data?: string | undefined;
954
967
  size?: number | undefined;
968
+ data?: string | undefined;
955
969
  attachmentId?: string | undefined;
956
970
  } | undefined;
971
+ mimeType?: string | undefined;
957
972
  parts?: any[] | undefined;
958
973
  } | undefined;
959
974
  }, {
960
975
  id: string;
961
- raw?: string | undefined;
962
976
  threadId?: string | undefined;
963
977
  labelIds?: string[] | undefined;
964
978
  snippet?: string | undefined;
@@ -966,24 +980,24 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
966
980
  historyId?: string | undefined;
967
981
  internalDate?: string | undefined;
968
982
  sizeEstimate?: number | undefined;
983
+ raw?: string | undefined;
969
984
  payload?: {
970
- mimeType?: string | undefined;
971
985
  headers?: {
972
986
  value: string;
973
987
  name: string;
974
988
  }[] | undefined;
975
989
  body?: {
976
- data?: string | undefined;
977
990
  size?: number | undefined;
991
+ data?: string | undefined;
978
992
  attachmentId?: string | undefined;
979
993
  } | undefined;
994
+ mimeType?: string | undefined;
980
995
  parts?: any[] | undefined;
981
996
  } | undefined;
982
997
  }>;
983
998
  }, "strip", z.ZodTypeAny, {
984
999
  message: {
985
1000
  id: string;
986
- raw?: string | undefined;
987
1001
  threadId?: string | undefined;
988
1002
  labelIds?: string[] | undefined;
989
1003
  snippet?: string | undefined;
@@ -991,17 +1005,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
991
1005
  historyId?: string | undefined;
992
1006
  internalDate?: string | undefined;
993
1007
  sizeEstimate?: number | undefined;
1008
+ raw?: string | undefined;
994
1009
  payload?: {
995
- mimeType?: string | undefined;
996
1010
  headers?: {
997
1011
  value: string;
998
1012
  name: string;
999
1013
  }[] | undefined;
1000
1014
  body?: {
1001
- data?: string | undefined;
1002
1015
  size?: number | undefined;
1016
+ data?: string | undefined;
1003
1017
  attachmentId?: string | undefined;
1004
1018
  } | undefined;
1019
+ mimeType?: string | undefined;
1005
1020
  parts?: any[] | undefined;
1006
1021
  } | undefined;
1007
1022
  };
@@ -1009,7 +1024,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1009
1024
  }, {
1010
1025
  message: {
1011
1026
  id: string;
1012
- raw?: string | undefined;
1013
1027
  threadId?: string | undefined;
1014
1028
  labelIds?: string[] | undefined;
1015
1029
  snippet?: string | undefined;
@@ -1017,17 +1031,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1017
1031
  historyId?: string | undefined;
1018
1032
  internalDate?: string | undefined;
1019
1033
  sizeEstimate?: number | undefined;
1034
+ raw?: string | undefined;
1020
1035
  payload?: {
1021
- mimeType?: string | undefined;
1022
1036
  headers?: {
1023
1037
  value: string;
1024
1038
  name: string;
1025
1039
  }[] | undefined;
1026
1040
  body?: {
1027
- data?: string | undefined;
1028
1041
  size?: number | undefined;
1042
+ data?: string | undefined;
1029
1043
  attachmentId?: string | undefined;
1030
1044
  } | undefined;
1045
+ mimeType?: string | undefined;
1031
1046
  parts?: any[] | undefined;
1032
1047
  } | undefined;
1033
1048
  };
@@ -1035,13 +1050,12 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1035
1050
  }>>;
1036
1051
  error: z.ZodString;
1037
1052
  }, "strip", z.ZodTypeAny, {
1038
- error: string;
1039
1053
  success: boolean;
1054
+ error: string;
1040
1055
  operation: "create_draft";
1041
1056
  draft?: {
1042
1057
  message: {
1043
1058
  id: string;
1044
- raw?: string | undefined;
1045
1059
  threadId?: string | undefined;
1046
1060
  labelIds?: string[] | undefined;
1047
1061
  snippet?: string | undefined;
@@ -1049,30 +1063,30 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1049
1063
  historyId?: string | undefined;
1050
1064
  internalDate?: string | undefined;
1051
1065
  sizeEstimate?: number | undefined;
1066
+ raw?: string | undefined;
1052
1067
  payload?: {
1053
- mimeType?: string | undefined;
1054
1068
  headers?: {
1055
1069
  value: string;
1056
1070
  name: string;
1057
1071
  }[] | undefined;
1058
1072
  body?: {
1059
- data?: string | undefined;
1060
1073
  size?: number | undefined;
1074
+ data?: string | undefined;
1061
1075
  attachmentId?: string | undefined;
1062
1076
  } | undefined;
1077
+ mimeType?: string | undefined;
1063
1078
  parts?: any[] | undefined;
1064
1079
  } | undefined;
1065
1080
  };
1066
1081
  id: string;
1067
1082
  } | undefined;
1068
1083
  }, {
1069
- error: string;
1070
1084
  success: boolean;
1085
+ error: string;
1071
1086
  operation: "create_draft";
1072
1087
  draft?: {
1073
1088
  message: {
1074
1089
  id: string;
1075
- raw?: string | undefined;
1076
1090
  threadId?: string | undefined;
1077
1091
  labelIds?: string[] | undefined;
1078
1092
  snippet?: string | undefined;
@@ -1080,17 +1094,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1080
1094
  historyId?: string | undefined;
1081
1095
  internalDate?: string | undefined;
1082
1096
  sizeEstimate?: number | undefined;
1097
+ raw?: string | undefined;
1083
1098
  payload?: {
1084
- mimeType?: string | undefined;
1085
1099
  headers?: {
1086
1100
  value: string;
1087
1101
  name: string;
1088
1102
  }[] | undefined;
1089
1103
  body?: {
1090
- data?: string | undefined;
1091
1104
  size?: number | undefined;
1105
+ data?: string | undefined;
1092
1106
  attachmentId?: string | undefined;
1093
1107
  } | undefined;
1108
+ mimeType?: string | undefined;
1094
1109
  parts?: any[] | undefined;
1095
1110
  } | undefined;
1096
1111
  };
@@ -1103,14 +1118,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1103
1118
  thread_id: z.ZodOptional<z.ZodString>;
1104
1119
  error: z.ZodString;
1105
1120
  }, "strip", z.ZodTypeAny, {
1106
- error: string;
1107
1121
  success: boolean;
1122
+ error: string;
1108
1123
  operation: "send_draft";
1109
1124
  message_id?: string | undefined;
1110
1125
  thread_id?: string | undefined;
1111
1126
  }, {
1112
- error: string;
1113
1127
  success: boolean;
1128
+ error: string;
1114
1129
  operation: "send_draft";
1115
1130
  message_id?: string | undefined;
1116
1131
  thread_id?: string | undefined;
@@ -1146,43 +1161,42 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1146
1161
  size: z.ZodOptional<z.ZodNumber>;
1147
1162
  attachmentId: z.ZodOptional<z.ZodString>;
1148
1163
  }, "strip", z.ZodTypeAny, {
1149
- data?: string | undefined;
1150
1164
  size?: number | undefined;
1165
+ data?: string | undefined;
1151
1166
  attachmentId?: string | undefined;
1152
1167
  }, {
1153
- data?: string | undefined;
1154
1168
  size?: number | undefined;
1169
+ data?: string | undefined;
1155
1170
  attachmentId?: string | undefined;
1156
1171
  }>>;
1157
1172
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1158
1173
  }, "strip", z.ZodTypeAny, {
1159
- mimeType?: string | undefined;
1160
1174
  headers?: {
1161
1175
  value: string;
1162
1176
  name: string;
1163
1177
  }[] | undefined;
1164
1178
  body?: {
1165
- data?: string | undefined;
1166
1179
  size?: number | undefined;
1180
+ data?: string | undefined;
1167
1181
  attachmentId?: string | undefined;
1168
1182
  } | undefined;
1183
+ mimeType?: string | undefined;
1169
1184
  parts?: any[] | undefined;
1170
1185
  }, {
1171
- mimeType?: string | undefined;
1172
1186
  headers?: {
1173
1187
  value: string;
1174
1188
  name: string;
1175
1189
  }[] | undefined;
1176
1190
  body?: {
1177
- data?: string | undefined;
1178
1191
  size?: number | undefined;
1192
+ data?: string | undefined;
1179
1193
  attachmentId?: string | undefined;
1180
1194
  } | undefined;
1195
+ mimeType?: string | undefined;
1181
1196
  parts?: any[] | undefined;
1182
1197
  }>>;
1183
1198
  }, "strip", z.ZodTypeAny, {
1184
1199
  id: string;
1185
- raw?: string | undefined;
1186
1200
  threadId?: string | undefined;
1187
1201
  labelIds?: string[] | undefined;
1188
1202
  snippet?: string | undefined;
@@ -1190,22 +1204,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1190
1204
  historyId?: string | undefined;
1191
1205
  internalDate?: string | undefined;
1192
1206
  sizeEstimate?: number | undefined;
1207
+ raw?: string | undefined;
1193
1208
  payload?: {
1194
- mimeType?: string | undefined;
1195
1209
  headers?: {
1196
1210
  value: string;
1197
1211
  name: string;
1198
1212
  }[] | undefined;
1199
1213
  body?: {
1200
- data?: string | undefined;
1201
1214
  size?: number | undefined;
1215
+ data?: string | undefined;
1202
1216
  attachmentId?: string | undefined;
1203
1217
  } | undefined;
1218
+ mimeType?: string | undefined;
1204
1219
  parts?: any[] | undefined;
1205
1220
  } | undefined;
1206
1221
  }, {
1207
1222
  id: string;
1208
- raw?: string | undefined;
1209
1223
  threadId?: string | undefined;
1210
1224
  labelIds?: string[] | undefined;
1211
1225
  snippet?: string | undefined;
@@ -1213,24 +1227,24 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1213
1227
  historyId?: string | undefined;
1214
1228
  internalDate?: string | undefined;
1215
1229
  sizeEstimate?: number | undefined;
1230
+ raw?: string | undefined;
1216
1231
  payload?: {
1217
- mimeType?: string | undefined;
1218
1232
  headers?: {
1219
1233
  value: string;
1220
1234
  name: string;
1221
1235
  }[] | undefined;
1222
1236
  body?: {
1223
- data?: string | undefined;
1224
1237
  size?: number | undefined;
1238
+ data?: string | undefined;
1225
1239
  attachmentId?: string | undefined;
1226
1240
  } | undefined;
1241
+ mimeType?: string | undefined;
1227
1242
  parts?: any[] | undefined;
1228
1243
  } | undefined;
1229
1244
  }>;
1230
1245
  }, "strip", z.ZodTypeAny, {
1231
1246
  message: {
1232
1247
  id: string;
1233
- raw?: string | undefined;
1234
1248
  threadId?: string | undefined;
1235
1249
  labelIds?: string[] | undefined;
1236
1250
  snippet?: string | undefined;
@@ -1238,17 +1252,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1238
1252
  historyId?: string | undefined;
1239
1253
  internalDate?: string | undefined;
1240
1254
  sizeEstimate?: number | undefined;
1255
+ raw?: string | undefined;
1241
1256
  payload?: {
1242
- mimeType?: string | undefined;
1243
1257
  headers?: {
1244
1258
  value: string;
1245
1259
  name: string;
1246
1260
  }[] | undefined;
1247
1261
  body?: {
1248
- data?: string | undefined;
1249
1262
  size?: number | undefined;
1263
+ data?: string | undefined;
1250
1264
  attachmentId?: string | undefined;
1251
1265
  } | undefined;
1266
+ mimeType?: string | undefined;
1252
1267
  parts?: any[] | undefined;
1253
1268
  } | undefined;
1254
1269
  };
@@ -1256,7 +1271,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1256
1271
  }, {
1257
1272
  message: {
1258
1273
  id: string;
1259
- raw?: string | undefined;
1260
1274
  threadId?: string | undefined;
1261
1275
  labelIds?: string[] | undefined;
1262
1276
  snippet?: string | undefined;
@@ -1264,17 +1278,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1264
1278
  historyId?: string | undefined;
1265
1279
  internalDate?: string | undefined;
1266
1280
  sizeEstimate?: number | undefined;
1281
+ raw?: string | undefined;
1267
1282
  payload?: {
1268
- mimeType?: string | undefined;
1269
1283
  headers?: {
1270
1284
  value: string;
1271
1285
  name: string;
1272
1286
  }[] | undefined;
1273
1287
  body?: {
1274
- data?: string | undefined;
1275
1288
  size?: number | undefined;
1289
+ data?: string | undefined;
1276
1290
  attachmentId?: string | undefined;
1277
1291
  } | undefined;
1292
+ mimeType?: string | undefined;
1278
1293
  parts?: any[] | undefined;
1279
1294
  } | undefined;
1280
1295
  };
@@ -1284,15 +1299,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1284
1299
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
1285
1300
  error: z.ZodString;
1286
1301
  }, "strip", z.ZodTypeAny, {
1287
- error: string;
1288
1302
  success: boolean;
1303
+ error: string;
1289
1304
  operation: "list_drafts";
1290
1305
  next_page_token?: string | undefined;
1291
1306
  result_size_estimate?: number | undefined;
1292
1307
  drafts?: {
1293
1308
  message: {
1294
1309
  id: string;
1295
- raw?: string | undefined;
1296
1310
  threadId?: string | undefined;
1297
1311
  labelIds?: string[] | undefined;
1298
1312
  snippet?: string | undefined;
@@ -1300,32 +1314,32 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1300
1314
  historyId?: string | undefined;
1301
1315
  internalDate?: string | undefined;
1302
1316
  sizeEstimate?: number | undefined;
1317
+ raw?: string | undefined;
1303
1318
  payload?: {
1304
- mimeType?: string | undefined;
1305
1319
  headers?: {
1306
1320
  value: string;
1307
1321
  name: string;
1308
1322
  }[] | undefined;
1309
1323
  body?: {
1310
- data?: string | undefined;
1311
1324
  size?: number | undefined;
1325
+ data?: string | undefined;
1312
1326
  attachmentId?: string | undefined;
1313
1327
  } | undefined;
1328
+ mimeType?: string | undefined;
1314
1329
  parts?: any[] | undefined;
1315
1330
  } | undefined;
1316
1331
  };
1317
1332
  id: string;
1318
1333
  }[] | undefined;
1319
1334
  }, {
1320
- error: string;
1321
1335
  success: boolean;
1336
+ error: string;
1322
1337
  operation: "list_drafts";
1323
1338
  next_page_token?: string | undefined;
1324
1339
  result_size_estimate?: number | undefined;
1325
1340
  drafts?: {
1326
1341
  message: {
1327
1342
  id: string;
1328
- raw?: string | undefined;
1329
1343
  threadId?: string | undefined;
1330
1344
  labelIds?: string[] | undefined;
1331
1345
  snippet?: string | undefined;
@@ -1333,17 +1347,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1333
1347
  historyId?: string | undefined;
1334
1348
  internalDate?: string | undefined;
1335
1349
  sizeEstimate?: number | undefined;
1350
+ raw?: string | undefined;
1336
1351
  payload?: {
1337
- mimeType?: string | undefined;
1338
1352
  headers?: {
1339
1353
  value: string;
1340
1354
  name: string;
1341
1355
  }[] | undefined;
1342
1356
  body?: {
1343
- data?: string | undefined;
1344
1357
  size?: number | undefined;
1358
+ data?: string | undefined;
1345
1359
  attachmentId?: string | undefined;
1346
1360
  } | undefined;
1361
+ mimeType?: string | undefined;
1347
1362
  parts?: any[] | undefined;
1348
1363
  } | undefined;
1349
1364
  };
@@ -1355,13 +1370,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1355
1370
  deleted_message_id: z.ZodOptional<z.ZodString>;
1356
1371
  error: z.ZodString;
1357
1372
  }, "strip", z.ZodTypeAny, {
1358
- error: string;
1359
1373
  success: boolean;
1374
+ error: string;
1360
1375
  operation: "delete_email";
1361
1376
  deleted_message_id?: string | undefined;
1362
1377
  }, {
1363
- error: string;
1364
1378
  success: boolean;
1379
+ error: string;
1365
1380
  operation: "delete_email";
1366
1381
  deleted_message_id?: string | undefined;
1367
1382
  }>, z.ZodObject<{
@@ -1370,13 +1385,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1370
1385
  trashed_message_id: z.ZodOptional<z.ZodString>;
1371
1386
  error: z.ZodString;
1372
1387
  }, "strip", z.ZodTypeAny, {
1373
- error: string;
1374
1388
  success: boolean;
1389
+ error: string;
1375
1390
  operation: "trash_email";
1376
1391
  trashed_message_id?: string | undefined;
1377
1392
  }, {
1378
- error: string;
1379
1393
  success: boolean;
1394
+ error: string;
1380
1395
  operation: "trash_email";
1381
1396
  trashed_message_id?: string | undefined;
1382
1397
  }>, z.ZodObject<{
@@ -1412,43 +1427,42 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1412
1427
  size: z.ZodOptional<z.ZodNumber>;
1413
1428
  attachmentId: z.ZodOptional<z.ZodString>;
1414
1429
  }, "strip", z.ZodTypeAny, {
1415
- data?: string | undefined;
1416
1430
  size?: number | undefined;
1431
+ data?: string | undefined;
1417
1432
  attachmentId?: string | undefined;
1418
1433
  }, {
1419
- data?: string | undefined;
1420
1434
  size?: number | undefined;
1435
+ data?: string | undefined;
1421
1436
  attachmentId?: string | undefined;
1422
1437
  }>>;
1423
1438
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1424
1439
  }, "strip", z.ZodTypeAny, {
1425
- mimeType?: string | undefined;
1426
1440
  headers?: {
1427
1441
  value: string;
1428
1442
  name: string;
1429
1443
  }[] | undefined;
1430
1444
  body?: {
1431
- data?: string | undefined;
1432
1445
  size?: number | undefined;
1446
+ data?: string | undefined;
1433
1447
  attachmentId?: string | undefined;
1434
1448
  } | undefined;
1449
+ mimeType?: string | undefined;
1435
1450
  parts?: any[] | undefined;
1436
1451
  }, {
1437
- mimeType?: string | undefined;
1438
1452
  headers?: {
1439
1453
  value: string;
1440
1454
  name: string;
1441
1455
  }[] | undefined;
1442
1456
  body?: {
1443
- data?: string | undefined;
1444
1457
  size?: number | undefined;
1458
+ data?: string | undefined;
1445
1459
  attachmentId?: string | undefined;
1446
1460
  } | undefined;
1461
+ mimeType?: string | undefined;
1447
1462
  parts?: any[] | undefined;
1448
1463
  }>>;
1449
1464
  }, "strip", z.ZodTypeAny, {
1450
1465
  id: string;
1451
- raw?: string | undefined;
1452
1466
  threadId?: string | undefined;
1453
1467
  labelIds?: string[] | undefined;
1454
1468
  snippet?: string | undefined;
@@ -1456,22 +1470,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1456
1470
  historyId?: string | undefined;
1457
1471
  internalDate?: string | undefined;
1458
1472
  sizeEstimate?: number | undefined;
1473
+ raw?: string | undefined;
1459
1474
  payload?: {
1460
- mimeType?: string | undefined;
1461
1475
  headers?: {
1462
1476
  value: string;
1463
1477
  name: string;
1464
1478
  }[] | undefined;
1465
1479
  body?: {
1466
- data?: string | undefined;
1467
1480
  size?: number | undefined;
1481
+ data?: string | undefined;
1468
1482
  attachmentId?: string | undefined;
1469
1483
  } | undefined;
1484
+ mimeType?: string | undefined;
1470
1485
  parts?: any[] | undefined;
1471
1486
  } | undefined;
1472
1487
  }, {
1473
1488
  id: string;
1474
- raw?: string | undefined;
1475
1489
  threadId?: string | undefined;
1476
1490
  labelIds?: string[] | undefined;
1477
1491
  snippet?: string | undefined;
@@ -1479,17 +1493,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1479
1493
  historyId?: string | undefined;
1480
1494
  internalDate?: string | undefined;
1481
1495
  sizeEstimate?: number | undefined;
1496
+ raw?: string | undefined;
1482
1497
  payload?: {
1483
- mimeType?: string | undefined;
1484
1498
  headers?: {
1485
1499
  value: string;
1486
1500
  name: string;
1487
1501
  }[] | undefined;
1488
1502
  body?: {
1489
- data?: string | undefined;
1490
1503
  size?: number | undefined;
1504
+ data?: string | undefined;
1491
1505
  attachmentId?: string | undefined;
1492
1506
  } | undefined;
1507
+ mimeType?: string | undefined;
1493
1508
  parts?: any[] | undefined;
1494
1509
  } | undefined;
1495
1510
  }>, "many">>;
@@ -1498,7 +1513,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1498
1513
  id: string;
1499
1514
  messages?: {
1500
1515
  id: string;
1501
- raw?: string | undefined;
1502
1516
  threadId?: string | undefined;
1503
1517
  labelIds?: string[] | undefined;
1504
1518
  snippet?: string | undefined;
@@ -1506,17 +1520,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1506
1520
  historyId?: string | undefined;
1507
1521
  internalDate?: string | undefined;
1508
1522
  sizeEstimate?: number | undefined;
1523
+ raw?: string | undefined;
1509
1524
  payload?: {
1510
- mimeType?: string | undefined;
1511
1525
  headers?: {
1512
1526
  value: string;
1513
1527
  name: string;
1514
1528
  }[] | undefined;
1515
1529
  body?: {
1516
- data?: string | undefined;
1517
1530
  size?: number | undefined;
1531
+ data?: string | undefined;
1518
1532
  attachmentId?: string | undefined;
1519
1533
  } | undefined;
1534
+ mimeType?: string | undefined;
1520
1535
  parts?: any[] | undefined;
1521
1536
  } | undefined;
1522
1537
  }[] | undefined;
@@ -1526,7 +1541,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1526
1541
  id: string;
1527
1542
  messages?: {
1528
1543
  id: string;
1529
- raw?: string | undefined;
1530
1544
  threadId?: string | undefined;
1531
1545
  labelIds?: string[] | undefined;
1532
1546
  snippet?: string | undefined;
@@ -1534,17 +1548,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1534
1548
  historyId?: string | undefined;
1535
1549
  internalDate?: string | undefined;
1536
1550
  sizeEstimate?: number | undefined;
1551
+ raw?: string | undefined;
1537
1552
  payload?: {
1538
- mimeType?: string | undefined;
1539
1553
  headers?: {
1540
1554
  value: string;
1541
1555
  name: string;
1542
1556
  }[] | undefined;
1543
1557
  body?: {
1544
- data?: string | undefined;
1545
1558
  size?: number | undefined;
1559
+ data?: string | undefined;
1546
1560
  attachmentId?: string | undefined;
1547
1561
  } | undefined;
1562
+ mimeType?: string | undefined;
1548
1563
  parts?: any[] | undefined;
1549
1564
  } | undefined;
1550
1565
  }[] | undefined;
@@ -1555,8 +1570,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1555
1570
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
1556
1571
  error: z.ZodString;
1557
1572
  }, "strip", z.ZodTypeAny, {
1558
- error: string;
1559
1573
  success: boolean;
1574
+ error: string;
1560
1575
  operation: "list_threads";
1561
1576
  next_page_token?: string | undefined;
1562
1577
  result_size_estimate?: number | undefined;
@@ -1564,7 +1579,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1564
1579
  id: string;
1565
1580
  messages?: {
1566
1581
  id: string;
1567
- raw?: string | undefined;
1568
1582
  threadId?: string | undefined;
1569
1583
  labelIds?: string[] | undefined;
1570
1584
  snippet?: string | undefined;
@@ -1572,17 +1586,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1572
1586
  historyId?: string | undefined;
1573
1587
  internalDate?: string | undefined;
1574
1588
  sizeEstimate?: number | undefined;
1589
+ raw?: string | undefined;
1575
1590
  payload?: {
1576
- mimeType?: string | undefined;
1577
1591
  headers?: {
1578
1592
  value: string;
1579
1593
  name: string;
1580
1594
  }[] | undefined;
1581
1595
  body?: {
1582
- data?: string | undefined;
1583
1596
  size?: number | undefined;
1597
+ data?: string | undefined;
1584
1598
  attachmentId?: string | undefined;
1585
1599
  } | undefined;
1600
+ mimeType?: string | undefined;
1586
1601
  parts?: any[] | undefined;
1587
1602
  } | undefined;
1588
1603
  }[] | undefined;
@@ -1590,8 +1605,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1590
1605
  historyId?: string | undefined;
1591
1606
  }[] | undefined;
1592
1607
  }, {
1593
- error: string;
1594
1608
  success: boolean;
1609
+ error: string;
1595
1610
  operation: "list_threads";
1596
1611
  next_page_token?: string | undefined;
1597
1612
  result_size_estimate?: number | undefined;
@@ -1599,7 +1614,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1599
1614
  id: string;
1600
1615
  messages?: {
1601
1616
  id: string;
1602
- raw?: string | undefined;
1603
1617
  threadId?: string | undefined;
1604
1618
  labelIds?: string[] | undefined;
1605
1619
  snippet?: string | undefined;
@@ -1607,17 +1621,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1607
1621
  historyId?: string | undefined;
1608
1622
  internalDate?: string | undefined;
1609
1623
  sizeEstimate?: number | undefined;
1624
+ raw?: string | undefined;
1610
1625
  payload?: {
1611
- mimeType?: string | undefined;
1612
1626
  headers?: {
1613
1627
  value: string;
1614
1628
  name: string;
1615
1629
  }[] | undefined;
1616
1630
  body?: {
1617
- data?: string | undefined;
1618
1631
  size?: number | undefined;
1632
+ data?: string | undefined;
1619
1633
  attachmentId?: string | undefined;
1620
1634
  } | undefined;
1635
+ mimeType?: string | undefined;
1621
1636
  parts?: any[] | undefined;
1622
1637
  } | undefined;
1623
1638
  }[] | undefined;
@@ -1648,8 +1663,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1648
1663
  }>, "many">>;
1649
1664
  error: z.ZodString;
1650
1665
  }, "strip", z.ZodTypeAny, {
1651
- error: string;
1652
1666
  success: boolean;
1667
+ error: string;
1653
1668
  operation: "list_labels";
1654
1669
  labels?: {
1655
1670
  name: string;
@@ -1659,8 +1674,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1659
1674
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1660
1675
  }[] | undefined;
1661
1676
  }, {
1662
- error: string;
1663
1677
  success: boolean;
1678
+ error: string;
1664
1679
  operation: "list_labels";
1665
1680
  labels?: {
1666
1681
  name: string;
@@ -1693,8 +1708,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1693
1708
  }>>;
1694
1709
  error: z.ZodString;
1695
1710
  }, "strip", z.ZodTypeAny, {
1696
- error: string;
1697
1711
  success: boolean;
1712
+ error: string;
1698
1713
  operation: "create_label";
1699
1714
  label?: {
1700
1715
  name: string;
@@ -1704,8 +1719,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1704
1719
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1705
1720
  } | undefined;
1706
1721
  }, {
1707
- error: string;
1708
1722
  success: boolean;
1723
+ error: string;
1709
1724
  operation: "create_label";
1710
1725
  label?: {
1711
1726
  name: string;
@@ -1721,14 +1736,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1721
1736
  label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1722
1737
  error: z.ZodString;
1723
1738
  }, "strip", z.ZodTypeAny, {
1724
- error: string;
1725
1739
  success: boolean;
1740
+ error: string;
1726
1741
  operation: "modify_message_labels";
1727
1742
  message_id?: string | undefined;
1728
1743
  label_ids?: string[] | undefined;
1729
1744
  }, {
1730
- error: string;
1731
1745
  success: boolean;
1746
+ error: string;
1732
1747
  operation: "modify_message_labels";
1733
1748
  message_id?: string | undefined;
1734
1749
  label_ids?: string[] | undefined;
@@ -1738,15 +1753,33 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1738
1753
  thread_id: z.ZodOptional<z.ZodString>;
1739
1754
  error: z.ZodString;
1740
1755
  }, "strip", z.ZodTypeAny, {
1741
- error: string;
1742
1756
  success: boolean;
1757
+ error: string;
1743
1758
  operation: "modify_thread_labels";
1744
1759
  thread_id?: string | undefined;
1745
1760
  }, {
1746
- error: string;
1747
1761
  success: boolean;
1762
+ error: string;
1748
1763
  operation: "modify_thread_labels";
1749
1764
  thread_id?: string | undefined;
1765
+ }>, z.ZodObject<{
1766
+ operation: z.ZodLiteral<"get_attachment">;
1767
+ success: z.ZodBoolean;
1768
+ data: z.ZodOptional<z.ZodString>;
1769
+ size: z.ZodOptional<z.ZodNumber>;
1770
+ error: z.ZodString;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ success: boolean;
1773
+ error: string;
1774
+ operation: "get_attachment";
1775
+ size?: number | undefined;
1776
+ data?: string | undefined;
1777
+ }, {
1778
+ success: boolean;
1779
+ error: string;
1780
+ operation: "get_attachment";
1781
+ size?: number | undefined;
1782
+ data?: string | undefined;
1750
1783
  }>]>;
1751
1784
  type GmailResult = z.output<typeof GmailResultSchema>;
1752
1785
  type GmailParams = z.input<typeof GmailParamsSchema>;
@@ -1828,7 +1861,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1828
1861
  metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1829
1862
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1830
1863
  }, "strip", z.ZodTypeAny, {
1831
- format: "minimal" | "metadata" | "full" | "raw";
1864
+ format: "minimal" | "metadata" | "raw" | "full";
1832
1865
  operation: "get_email";
1833
1866
  message_id: string;
1834
1867
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -1836,7 +1869,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1836
1869
  }, {
1837
1870
  operation: "get_email";
1838
1871
  message_id: string;
1839
- format?: "minimal" | "metadata" | "full" | "raw" | undefined;
1872
+ format?: "minimal" | "metadata" | "raw" | "full" | undefined;
1840
1873
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1841
1874
  metadata_headers?: string[] | undefined;
1842
1875
  }>, z.ZodObject<{
@@ -2064,6 +2097,21 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2064
2097
  credentials?: Partial<Record<CredentialType, string>> | undefined;
2065
2098
  add_label_ids?: string[] | undefined;
2066
2099
  remove_label_ids?: string[] | undefined;
2100
+ }>, z.ZodObject<{
2101
+ operation: z.ZodLiteral<"get_attachment">;
2102
+ message_id: z.ZodString;
2103
+ attachment_id: z.ZodString;
2104
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ operation: "get_attachment";
2107
+ message_id: string;
2108
+ attachment_id: string;
2109
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2110
+ }, {
2111
+ operation: "get_attachment";
2112
+ message_id: string;
2113
+ attachment_id: string;
2114
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2067
2115
  }>]>;
2068
2116
  static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
2069
2117
  operation: z.ZodLiteral<"send_email">;
@@ -2072,14 +2120,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2072
2120
  thread_id: z.ZodOptional<z.ZodString>;
2073
2121
  error: z.ZodString;
2074
2122
  }, "strip", z.ZodTypeAny, {
2075
- error: string;
2076
2123
  success: boolean;
2124
+ error: string;
2077
2125
  operation: "send_email";
2078
2126
  message_id?: string | undefined;
2079
2127
  thread_id?: string | undefined;
2080
2128
  }, {
2081
- error: string;
2082
2129
  success: boolean;
2130
+ error: string;
2083
2131
  operation: "send_email";
2084
2132
  message_id?: string | undefined;
2085
2133
  thread_id?: string | undefined;
@@ -2113,43 +2161,42 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2113
2161
  size: z.ZodOptional<z.ZodNumber>;
2114
2162
  attachmentId: z.ZodOptional<z.ZodString>;
2115
2163
  }, "strip", z.ZodTypeAny, {
2116
- data?: string | undefined;
2117
2164
  size?: number | undefined;
2165
+ data?: string | undefined;
2118
2166
  attachmentId?: string | undefined;
2119
2167
  }, {
2120
- data?: string | undefined;
2121
2168
  size?: number | undefined;
2169
+ data?: string | undefined;
2122
2170
  attachmentId?: string | undefined;
2123
2171
  }>>;
2124
2172
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2125
2173
  }, "strip", z.ZodTypeAny, {
2126
- mimeType?: string | undefined;
2127
2174
  headers?: {
2128
2175
  value: string;
2129
2176
  name: string;
2130
2177
  }[] | undefined;
2131
2178
  body?: {
2132
- data?: string | undefined;
2133
2179
  size?: number | undefined;
2180
+ data?: string | undefined;
2134
2181
  attachmentId?: string | undefined;
2135
2182
  } | undefined;
2183
+ mimeType?: string | undefined;
2136
2184
  parts?: any[] | undefined;
2137
2185
  }, {
2138
- mimeType?: string | undefined;
2139
2186
  headers?: {
2140
2187
  value: string;
2141
2188
  name: string;
2142
2189
  }[] | undefined;
2143
2190
  body?: {
2144
- data?: string | undefined;
2145
2191
  size?: number | undefined;
2192
+ data?: string | undefined;
2146
2193
  attachmentId?: string | undefined;
2147
2194
  } | undefined;
2195
+ mimeType?: string | undefined;
2148
2196
  parts?: any[] | undefined;
2149
2197
  }>>;
2150
2198
  }, "strip", z.ZodTypeAny, {
2151
2199
  id: string;
2152
- raw?: string | undefined;
2153
2200
  threadId?: string | undefined;
2154
2201
  labelIds?: string[] | undefined;
2155
2202
  snippet?: string | undefined;
@@ -2157,22 +2204,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2157
2204
  historyId?: string | undefined;
2158
2205
  internalDate?: string | undefined;
2159
2206
  sizeEstimate?: number | undefined;
2207
+ raw?: string | undefined;
2160
2208
  payload?: {
2161
- mimeType?: string | undefined;
2162
2209
  headers?: {
2163
2210
  value: string;
2164
2211
  name: string;
2165
2212
  }[] | undefined;
2166
2213
  body?: {
2167
- data?: string | undefined;
2168
2214
  size?: number | undefined;
2215
+ data?: string | undefined;
2169
2216
  attachmentId?: string | undefined;
2170
2217
  } | undefined;
2218
+ mimeType?: string | undefined;
2171
2219
  parts?: any[] | undefined;
2172
2220
  } | undefined;
2173
2221
  }, {
2174
2222
  id: string;
2175
- raw?: string | undefined;
2176
2223
  threadId?: string | undefined;
2177
2224
  labelIds?: string[] | undefined;
2178
2225
  snippet?: string | undefined;
@@ -2180,17 +2227,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2180
2227
  historyId?: string | undefined;
2181
2228
  internalDate?: string | undefined;
2182
2229
  sizeEstimate?: number | undefined;
2230
+ raw?: string | undefined;
2183
2231
  payload?: {
2184
- mimeType?: string | undefined;
2185
2232
  headers?: {
2186
2233
  value: string;
2187
2234
  name: string;
2188
2235
  }[] | undefined;
2189
2236
  body?: {
2190
- data?: string | undefined;
2191
2237
  size?: number | undefined;
2238
+ data?: string | undefined;
2192
2239
  attachmentId?: string | undefined;
2193
2240
  } | undefined;
2241
+ mimeType?: string | undefined;
2194
2242
  parts?: any[] | undefined;
2195
2243
  } | undefined;
2196
2244
  }>, "many">>;
@@ -2198,12 +2246,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2198
2246
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
2199
2247
  error: z.ZodString;
2200
2248
  }, "strip", z.ZodTypeAny, {
2201
- error: string;
2202
2249
  success: boolean;
2250
+ error: string;
2203
2251
  operation: "list_emails";
2204
2252
  messages?: {
2205
2253
  id: string;
2206
- raw?: string | undefined;
2207
2254
  threadId?: string | undefined;
2208
2255
  labelIds?: string[] | undefined;
2209
2256
  snippet?: string | undefined;
@@ -2211,29 +2258,29 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2211
2258
  historyId?: string | undefined;
2212
2259
  internalDate?: string | undefined;
2213
2260
  sizeEstimate?: number | undefined;
2261
+ raw?: string | undefined;
2214
2262
  payload?: {
2215
- mimeType?: string | undefined;
2216
2263
  headers?: {
2217
2264
  value: string;
2218
2265
  name: string;
2219
2266
  }[] | undefined;
2220
2267
  body?: {
2221
- data?: string | undefined;
2222
2268
  size?: number | undefined;
2269
+ data?: string | undefined;
2223
2270
  attachmentId?: string | undefined;
2224
2271
  } | undefined;
2272
+ mimeType?: string | undefined;
2225
2273
  parts?: any[] | undefined;
2226
2274
  } | undefined;
2227
2275
  }[] | undefined;
2228
2276
  next_page_token?: string | undefined;
2229
2277
  result_size_estimate?: number | undefined;
2230
2278
  }, {
2231
- error: string;
2232
2279
  success: boolean;
2280
+ error: string;
2233
2281
  operation: "list_emails";
2234
2282
  messages?: {
2235
2283
  id: string;
2236
- raw?: string | undefined;
2237
2284
  threadId?: string | undefined;
2238
2285
  labelIds?: string[] | undefined;
2239
2286
  snippet?: string | undefined;
@@ -2241,17 +2288,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2241
2288
  historyId?: string | undefined;
2242
2289
  internalDate?: string | undefined;
2243
2290
  sizeEstimate?: number | undefined;
2291
+ raw?: string | undefined;
2244
2292
  payload?: {
2245
- mimeType?: string | undefined;
2246
2293
  headers?: {
2247
2294
  value: string;
2248
2295
  name: string;
2249
2296
  }[] | undefined;
2250
2297
  body?: {
2251
- data?: string | undefined;
2252
2298
  size?: number | undefined;
2299
+ data?: string | undefined;
2253
2300
  attachmentId?: string | undefined;
2254
2301
  } | undefined;
2302
+ mimeType?: string | undefined;
2255
2303
  parts?: any[] | undefined;
2256
2304
  } | undefined;
2257
2305
  }[] | undefined;
@@ -2287,43 +2335,42 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2287
2335
  size: z.ZodOptional<z.ZodNumber>;
2288
2336
  attachmentId: z.ZodOptional<z.ZodString>;
2289
2337
  }, "strip", z.ZodTypeAny, {
2290
- data?: string | undefined;
2291
2338
  size?: number | undefined;
2339
+ data?: string | undefined;
2292
2340
  attachmentId?: string | undefined;
2293
2341
  }, {
2294
- data?: string | undefined;
2295
2342
  size?: number | undefined;
2343
+ data?: string | undefined;
2296
2344
  attachmentId?: string | undefined;
2297
2345
  }>>;
2298
2346
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2299
2347
  }, "strip", z.ZodTypeAny, {
2300
- mimeType?: string | undefined;
2301
2348
  headers?: {
2302
2349
  value: string;
2303
2350
  name: string;
2304
2351
  }[] | undefined;
2305
2352
  body?: {
2306
- data?: string | undefined;
2307
2353
  size?: number | undefined;
2354
+ data?: string | undefined;
2308
2355
  attachmentId?: string | undefined;
2309
2356
  } | undefined;
2357
+ mimeType?: string | undefined;
2310
2358
  parts?: any[] | undefined;
2311
2359
  }, {
2312
- mimeType?: string | undefined;
2313
2360
  headers?: {
2314
2361
  value: string;
2315
2362
  name: string;
2316
2363
  }[] | undefined;
2317
2364
  body?: {
2318
- data?: string | undefined;
2319
2365
  size?: number | undefined;
2366
+ data?: string | undefined;
2320
2367
  attachmentId?: string | undefined;
2321
2368
  } | undefined;
2369
+ mimeType?: string | undefined;
2322
2370
  parts?: any[] | undefined;
2323
2371
  }>>;
2324
2372
  }, "strip", z.ZodTypeAny, {
2325
2373
  id: string;
2326
- raw?: string | undefined;
2327
2374
  threadId?: string | undefined;
2328
2375
  labelIds?: string[] | undefined;
2329
2376
  snippet?: string | undefined;
@@ -2331,22 +2378,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2331
2378
  historyId?: string | undefined;
2332
2379
  internalDate?: string | undefined;
2333
2380
  sizeEstimate?: number | undefined;
2381
+ raw?: string | undefined;
2334
2382
  payload?: {
2335
- mimeType?: string | undefined;
2336
2383
  headers?: {
2337
2384
  value: string;
2338
2385
  name: string;
2339
2386
  }[] | undefined;
2340
2387
  body?: {
2341
- data?: string | undefined;
2342
2388
  size?: number | undefined;
2389
+ data?: string | undefined;
2343
2390
  attachmentId?: string | undefined;
2344
2391
  } | undefined;
2392
+ mimeType?: string | undefined;
2345
2393
  parts?: any[] | undefined;
2346
2394
  } | undefined;
2347
2395
  }, {
2348
2396
  id: string;
2349
- raw?: string | undefined;
2350
2397
  threadId?: string | undefined;
2351
2398
  labelIds?: string[] | undefined;
2352
2399
  snippet?: string | undefined;
@@ -2354,28 +2401,28 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2354
2401
  historyId?: string | undefined;
2355
2402
  internalDate?: string | undefined;
2356
2403
  sizeEstimate?: number | undefined;
2404
+ raw?: string | undefined;
2357
2405
  payload?: {
2358
- mimeType?: string | undefined;
2359
2406
  headers?: {
2360
2407
  value: string;
2361
2408
  name: string;
2362
2409
  }[] | undefined;
2363
2410
  body?: {
2364
- data?: string | undefined;
2365
2411
  size?: number | undefined;
2412
+ data?: string | undefined;
2366
2413
  attachmentId?: string | undefined;
2367
2414
  } | undefined;
2415
+ mimeType?: string | undefined;
2368
2416
  parts?: any[] | undefined;
2369
2417
  } | undefined;
2370
2418
  }>>;
2371
2419
  error: z.ZodString;
2372
2420
  }, "strip", z.ZodTypeAny, {
2373
- error: string;
2374
2421
  success: boolean;
2422
+ error: string;
2375
2423
  operation: "get_email";
2376
2424
  message?: {
2377
2425
  id: string;
2378
- raw?: string | undefined;
2379
2426
  threadId?: string | undefined;
2380
2427
  labelIds?: string[] | undefined;
2381
2428
  snippet?: string | undefined;
@@ -2383,27 +2430,27 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2383
2430
  historyId?: string | undefined;
2384
2431
  internalDate?: string | undefined;
2385
2432
  sizeEstimate?: number | undefined;
2433
+ raw?: string | undefined;
2386
2434
  payload?: {
2387
- mimeType?: string | undefined;
2388
2435
  headers?: {
2389
2436
  value: string;
2390
2437
  name: string;
2391
2438
  }[] | undefined;
2392
2439
  body?: {
2393
- data?: string | undefined;
2394
2440
  size?: number | undefined;
2441
+ data?: string | undefined;
2395
2442
  attachmentId?: string | undefined;
2396
2443
  } | undefined;
2444
+ mimeType?: string | undefined;
2397
2445
  parts?: any[] | undefined;
2398
2446
  } | undefined;
2399
2447
  } | undefined;
2400
2448
  }, {
2401
- error: string;
2402
2449
  success: boolean;
2450
+ error: string;
2403
2451
  operation: "get_email";
2404
2452
  message?: {
2405
2453
  id: string;
2406
- raw?: string | undefined;
2407
2454
  threadId?: string | undefined;
2408
2455
  labelIds?: string[] | undefined;
2409
2456
  snippet?: string | undefined;
@@ -2411,17 +2458,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2411
2458
  historyId?: string | undefined;
2412
2459
  internalDate?: string | undefined;
2413
2460
  sizeEstimate?: number | undefined;
2461
+ raw?: string | undefined;
2414
2462
  payload?: {
2415
- mimeType?: string | undefined;
2416
2463
  headers?: {
2417
2464
  value: string;
2418
2465
  name: string;
2419
2466
  }[] | undefined;
2420
2467
  body?: {
2421
- data?: string | undefined;
2422
2468
  size?: number | undefined;
2469
+ data?: string | undefined;
2423
2470
  attachmentId?: string | undefined;
2424
2471
  } | undefined;
2472
+ mimeType?: string | undefined;
2425
2473
  parts?: any[] | undefined;
2426
2474
  } | undefined;
2427
2475
  } | undefined;
@@ -2455,43 +2503,42 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2455
2503
  size: z.ZodOptional<z.ZodNumber>;
2456
2504
  attachmentId: z.ZodOptional<z.ZodString>;
2457
2505
  }, "strip", z.ZodTypeAny, {
2458
- data?: string | undefined;
2459
2506
  size?: number | undefined;
2507
+ data?: string | undefined;
2460
2508
  attachmentId?: string | undefined;
2461
2509
  }, {
2462
- data?: string | undefined;
2463
2510
  size?: number | undefined;
2511
+ data?: string | undefined;
2464
2512
  attachmentId?: string | undefined;
2465
2513
  }>>;
2466
2514
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2467
2515
  }, "strip", z.ZodTypeAny, {
2468
- mimeType?: string | undefined;
2469
2516
  headers?: {
2470
2517
  value: string;
2471
2518
  name: string;
2472
2519
  }[] | undefined;
2473
2520
  body?: {
2474
- data?: string | undefined;
2475
2521
  size?: number | undefined;
2522
+ data?: string | undefined;
2476
2523
  attachmentId?: string | undefined;
2477
2524
  } | undefined;
2525
+ mimeType?: string | undefined;
2478
2526
  parts?: any[] | undefined;
2479
2527
  }, {
2480
- mimeType?: string | undefined;
2481
2528
  headers?: {
2482
2529
  value: string;
2483
2530
  name: string;
2484
2531
  }[] | undefined;
2485
2532
  body?: {
2486
- data?: string | undefined;
2487
2533
  size?: number | undefined;
2534
+ data?: string | undefined;
2488
2535
  attachmentId?: string | undefined;
2489
2536
  } | undefined;
2537
+ mimeType?: string | undefined;
2490
2538
  parts?: any[] | undefined;
2491
2539
  }>>;
2492
2540
  }, "strip", z.ZodTypeAny, {
2493
2541
  id: string;
2494
- raw?: string | undefined;
2495
2542
  threadId?: string | undefined;
2496
2543
  labelIds?: string[] | undefined;
2497
2544
  snippet?: string | undefined;
@@ -2499,22 +2546,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2499
2546
  historyId?: string | undefined;
2500
2547
  internalDate?: string | undefined;
2501
2548
  sizeEstimate?: number | undefined;
2549
+ raw?: string | undefined;
2502
2550
  payload?: {
2503
- mimeType?: string | undefined;
2504
2551
  headers?: {
2505
2552
  value: string;
2506
2553
  name: string;
2507
2554
  }[] | undefined;
2508
2555
  body?: {
2509
- data?: string | undefined;
2510
2556
  size?: number | undefined;
2557
+ data?: string | undefined;
2511
2558
  attachmentId?: string | undefined;
2512
2559
  } | undefined;
2560
+ mimeType?: string | undefined;
2513
2561
  parts?: any[] | undefined;
2514
2562
  } | undefined;
2515
2563
  }, {
2516
2564
  id: string;
2517
- raw?: string | undefined;
2518
2565
  threadId?: string | undefined;
2519
2566
  labelIds?: string[] | undefined;
2520
2567
  snippet?: string | undefined;
@@ -2522,29 +2569,29 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2522
2569
  historyId?: string | undefined;
2523
2570
  internalDate?: string | undefined;
2524
2571
  sizeEstimate?: number | undefined;
2572
+ raw?: string | undefined;
2525
2573
  payload?: {
2526
- mimeType?: string | undefined;
2527
2574
  headers?: {
2528
2575
  value: string;
2529
2576
  name: string;
2530
2577
  }[] | undefined;
2531
2578
  body?: {
2532
- data?: string | undefined;
2533
2579
  size?: number | undefined;
2580
+ data?: string | undefined;
2534
2581
  attachmentId?: string | undefined;
2535
2582
  } | undefined;
2583
+ mimeType?: string | undefined;
2536
2584
  parts?: any[] | undefined;
2537
2585
  } | undefined;
2538
2586
  }>, "many">>;
2539
2587
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
2540
2588
  error: z.ZodString;
2541
2589
  }, "strip", z.ZodTypeAny, {
2542
- error: string;
2543
2590
  success: boolean;
2591
+ error: string;
2544
2592
  operation: "search_emails";
2545
2593
  messages?: {
2546
2594
  id: string;
2547
- raw?: string | undefined;
2548
2595
  threadId?: string | undefined;
2549
2596
  labelIds?: string[] | undefined;
2550
2597
  snippet?: string | undefined;
@@ -2552,28 +2599,28 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2552
2599
  historyId?: string | undefined;
2553
2600
  internalDate?: string | undefined;
2554
2601
  sizeEstimate?: number | undefined;
2602
+ raw?: string | undefined;
2555
2603
  payload?: {
2556
- mimeType?: string | undefined;
2557
2604
  headers?: {
2558
2605
  value: string;
2559
2606
  name: string;
2560
2607
  }[] | undefined;
2561
2608
  body?: {
2562
- data?: string | undefined;
2563
2609
  size?: number | undefined;
2610
+ data?: string | undefined;
2564
2611
  attachmentId?: string | undefined;
2565
2612
  } | undefined;
2613
+ mimeType?: string | undefined;
2566
2614
  parts?: any[] | undefined;
2567
2615
  } | undefined;
2568
2616
  }[] | undefined;
2569
2617
  result_size_estimate?: number | undefined;
2570
2618
  }, {
2571
- error: string;
2572
2619
  success: boolean;
2620
+ error: string;
2573
2621
  operation: "search_emails";
2574
2622
  messages?: {
2575
2623
  id: string;
2576
- raw?: string | undefined;
2577
2624
  threadId?: string | undefined;
2578
2625
  labelIds?: string[] | undefined;
2579
2626
  snippet?: string | undefined;
@@ -2581,17 +2628,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2581
2628
  historyId?: string | undefined;
2582
2629
  internalDate?: string | undefined;
2583
2630
  sizeEstimate?: number | undefined;
2631
+ raw?: string | undefined;
2584
2632
  payload?: {
2585
- mimeType?: string | undefined;
2586
2633
  headers?: {
2587
2634
  value: string;
2588
2635
  name: string;
2589
2636
  }[] | undefined;
2590
2637
  body?: {
2591
- data?: string | undefined;
2592
2638
  size?: number | undefined;
2639
+ data?: string | undefined;
2593
2640
  attachmentId?: string | undefined;
2594
2641
  } | undefined;
2642
+ mimeType?: string | undefined;
2595
2643
  parts?: any[] | undefined;
2596
2644
  } | undefined;
2597
2645
  }[] | undefined;
@@ -2602,13 +2650,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2602
2650
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2603
2651
  error: z.ZodString;
2604
2652
  }, "strip", z.ZodTypeAny, {
2605
- error: string;
2606
2653
  success: boolean;
2654
+ error: string;
2607
2655
  operation: "mark_as_read";
2608
2656
  modified_messages?: string[] | undefined;
2609
2657
  }, {
2610
- error: string;
2611
2658
  success: boolean;
2659
+ error: string;
2612
2660
  operation: "mark_as_read";
2613
2661
  modified_messages?: string[] | undefined;
2614
2662
  }>, z.ZodObject<{
@@ -2617,13 +2665,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2617
2665
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2618
2666
  error: z.ZodString;
2619
2667
  }, "strip", z.ZodTypeAny, {
2620
- error: string;
2621
2668
  success: boolean;
2669
+ error: string;
2622
2670
  operation: "mark_as_unread";
2623
2671
  modified_messages?: string[] | undefined;
2624
2672
  }, {
2625
- error: string;
2626
2673
  success: boolean;
2674
+ error: string;
2627
2675
  operation: "mark_as_unread";
2628
2676
  modified_messages?: string[] | undefined;
2629
2677
  }>, z.ZodObject<{
@@ -2658,43 +2706,42 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2658
2706
  size: z.ZodOptional<z.ZodNumber>;
2659
2707
  attachmentId: z.ZodOptional<z.ZodString>;
2660
2708
  }, "strip", z.ZodTypeAny, {
2661
- data?: string | undefined;
2662
2709
  size?: number | undefined;
2710
+ data?: string | undefined;
2663
2711
  attachmentId?: string | undefined;
2664
2712
  }, {
2665
- data?: string | undefined;
2666
2713
  size?: number | undefined;
2714
+ data?: string | undefined;
2667
2715
  attachmentId?: string | undefined;
2668
2716
  }>>;
2669
2717
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2670
2718
  }, "strip", z.ZodTypeAny, {
2671
- mimeType?: string | undefined;
2672
2719
  headers?: {
2673
2720
  value: string;
2674
2721
  name: string;
2675
2722
  }[] | undefined;
2676
2723
  body?: {
2677
- data?: string | undefined;
2678
2724
  size?: number | undefined;
2725
+ data?: string | undefined;
2679
2726
  attachmentId?: string | undefined;
2680
2727
  } | undefined;
2728
+ mimeType?: string | undefined;
2681
2729
  parts?: any[] | undefined;
2682
2730
  }, {
2683
- mimeType?: string | undefined;
2684
2731
  headers?: {
2685
2732
  value: string;
2686
2733
  name: string;
2687
2734
  }[] | undefined;
2688
2735
  body?: {
2689
- data?: string | undefined;
2690
2736
  size?: number | undefined;
2737
+ data?: string | undefined;
2691
2738
  attachmentId?: string | undefined;
2692
2739
  } | undefined;
2740
+ mimeType?: string | undefined;
2693
2741
  parts?: any[] | undefined;
2694
2742
  }>>;
2695
2743
  }, "strip", z.ZodTypeAny, {
2696
2744
  id: string;
2697
- raw?: string | undefined;
2698
2745
  threadId?: string | undefined;
2699
2746
  labelIds?: string[] | undefined;
2700
2747
  snippet?: string | undefined;
@@ -2702,22 +2749,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2702
2749
  historyId?: string | undefined;
2703
2750
  internalDate?: string | undefined;
2704
2751
  sizeEstimate?: number | undefined;
2752
+ raw?: string | undefined;
2705
2753
  payload?: {
2706
- mimeType?: string | undefined;
2707
2754
  headers?: {
2708
2755
  value: string;
2709
2756
  name: string;
2710
2757
  }[] | undefined;
2711
2758
  body?: {
2712
- data?: string | undefined;
2713
2759
  size?: number | undefined;
2760
+ data?: string | undefined;
2714
2761
  attachmentId?: string | undefined;
2715
2762
  } | undefined;
2763
+ mimeType?: string | undefined;
2716
2764
  parts?: any[] | undefined;
2717
2765
  } | undefined;
2718
2766
  }, {
2719
2767
  id: string;
2720
- raw?: string | undefined;
2721
2768
  threadId?: string | undefined;
2722
2769
  labelIds?: string[] | undefined;
2723
2770
  snippet?: string | undefined;
@@ -2725,24 +2772,24 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2725
2772
  historyId?: string | undefined;
2726
2773
  internalDate?: string | undefined;
2727
2774
  sizeEstimate?: number | undefined;
2775
+ raw?: string | undefined;
2728
2776
  payload?: {
2729
- mimeType?: string | undefined;
2730
2777
  headers?: {
2731
2778
  value: string;
2732
2779
  name: string;
2733
2780
  }[] | undefined;
2734
2781
  body?: {
2735
- data?: string | undefined;
2736
2782
  size?: number | undefined;
2783
+ data?: string | undefined;
2737
2784
  attachmentId?: string | undefined;
2738
2785
  } | undefined;
2786
+ mimeType?: string | undefined;
2739
2787
  parts?: any[] | undefined;
2740
2788
  } | undefined;
2741
2789
  }>;
2742
2790
  }, "strip", z.ZodTypeAny, {
2743
2791
  message: {
2744
2792
  id: string;
2745
- raw?: string | undefined;
2746
2793
  threadId?: string | undefined;
2747
2794
  labelIds?: string[] | undefined;
2748
2795
  snippet?: string | undefined;
@@ -2750,17 +2797,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2750
2797
  historyId?: string | undefined;
2751
2798
  internalDate?: string | undefined;
2752
2799
  sizeEstimate?: number | undefined;
2800
+ raw?: string | undefined;
2753
2801
  payload?: {
2754
- mimeType?: string | undefined;
2755
2802
  headers?: {
2756
2803
  value: string;
2757
2804
  name: string;
2758
2805
  }[] | undefined;
2759
2806
  body?: {
2760
- data?: string | undefined;
2761
2807
  size?: number | undefined;
2808
+ data?: string | undefined;
2762
2809
  attachmentId?: string | undefined;
2763
2810
  } | undefined;
2811
+ mimeType?: string | undefined;
2764
2812
  parts?: any[] | undefined;
2765
2813
  } | undefined;
2766
2814
  };
@@ -2768,7 +2816,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2768
2816
  }, {
2769
2817
  message: {
2770
2818
  id: string;
2771
- raw?: string | undefined;
2772
2819
  threadId?: string | undefined;
2773
2820
  labelIds?: string[] | undefined;
2774
2821
  snippet?: string | undefined;
@@ -2776,17 +2823,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2776
2823
  historyId?: string | undefined;
2777
2824
  internalDate?: string | undefined;
2778
2825
  sizeEstimate?: number | undefined;
2826
+ raw?: string | undefined;
2779
2827
  payload?: {
2780
- mimeType?: string | undefined;
2781
2828
  headers?: {
2782
2829
  value: string;
2783
2830
  name: string;
2784
2831
  }[] | undefined;
2785
2832
  body?: {
2786
- data?: string | undefined;
2787
2833
  size?: number | undefined;
2834
+ data?: string | undefined;
2788
2835
  attachmentId?: string | undefined;
2789
2836
  } | undefined;
2837
+ mimeType?: string | undefined;
2790
2838
  parts?: any[] | undefined;
2791
2839
  } | undefined;
2792
2840
  };
@@ -2794,13 +2842,12 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2794
2842
  }>>;
2795
2843
  error: z.ZodString;
2796
2844
  }, "strip", z.ZodTypeAny, {
2797
- error: string;
2798
2845
  success: boolean;
2846
+ error: string;
2799
2847
  operation: "create_draft";
2800
2848
  draft?: {
2801
2849
  message: {
2802
2850
  id: string;
2803
- raw?: string | undefined;
2804
2851
  threadId?: string | undefined;
2805
2852
  labelIds?: string[] | undefined;
2806
2853
  snippet?: string | undefined;
@@ -2808,30 +2855,30 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2808
2855
  historyId?: string | undefined;
2809
2856
  internalDate?: string | undefined;
2810
2857
  sizeEstimate?: number | undefined;
2858
+ raw?: string | undefined;
2811
2859
  payload?: {
2812
- mimeType?: string | undefined;
2813
2860
  headers?: {
2814
2861
  value: string;
2815
2862
  name: string;
2816
2863
  }[] | undefined;
2817
2864
  body?: {
2818
- data?: string | undefined;
2819
2865
  size?: number | undefined;
2866
+ data?: string | undefined;
2820
2867
  attachmentId?: string | undefined;
2821
2868
  } | undefined;
2869
+ mimeType?: string | undefined;
2822
2870
  parts?: any[] | undefined;
2823
2871
  } | undefined;
2824
2872
  };
2825
2873
  id: string;
2826
2874
  } | undefined;
2827
2875
  }, {
2828
- error: string;
2829
2876
  success: boolean;
2877
+ error: string;
2830
2878
  operation: "create_draft";
2831
2879
  draft?: {
2832
2880
  message: {
2833
2881
  id: string;
2834
- raw?: string | undefined;
2835
2882
  threadId?: string | undefined;
2836
2883
  labelIds?: string[] | undefined;
2837
2884
  snippet?: string | undefined;
@@ -2839,17 +2886,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2839
2886
  historyId?: string | undefined;
2840
2887
  internalDate?: string | undefined;
2841
2888
  sizeEstimate?: number | undefined;
2889
+ raw?: string | undefined;
2842
2890
  payload?: {
2843
- mimeType?: string | undefined;
2844
2891
  headers?: {
2845
2892
  value: string;
2846
2893
  name: string;
2847
2894
  }[] | undefined;
2848
2895
  body?: {
2849
- data?: string | undefined;
2850
2896
  size?: number | undefined;
2897
+ data?: string | undefined;
2851
2898
  attachmentId?: string | undefined;
2852
2899
  } | undefined;
2900
+ mimeType?: string | undefined;
2853
2901
  parts?: any[] | undefined;
2854
2902
  } | undefined;
2855
2903
  };
@@ -2862,14 +2910,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2862
2910
  thread_id: z.ZodOptional<z.ZodString>;
2863
2911
  error: z.ZodString;
2864
2912
  }, "strip", z.ZodTypeAny, {
2865
- error: string;
2866
2913
  success: boolean;
2914
+ error: string;
2867
2915
  operation: "send_draft";
2868
2916
  message_id?: string | undefined;
2869
2917
  thread_id?: string | undefined;
2870
2918
  }, {
2871
- error: string;
2872
2919
  success: boolean;
2920
+ error: string;
2873
2921
  operation: "send_draft";
2874
2922
  message_id?: string | undefined;
2875
2923
  thread_id?: string | undefined;
@@ -2905,43 +2953,42 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2905
2953
  size: z.ZodOptional<z.ZodNumber>;
2906
2954
  attachmentId: z.ZodOptional<z.ZodString>;
2907
2955
  }, "strip", z.ZodTypeAny, {
2908
- data?: string | undefined;
2909
2956
  size?: number | undefined;
2957
+ data?: string | undefined;
2910
2958
  attachmentId?: string | undefined;
2911
2959
  }, {
2912
- data?: string | undefined;
2913
2960
  size?: number | undefined;
2961
+ data?: string | undefined;
2914
2962
  attachmentId?: string | undefined;
2915
2963
  }>>;
2916
2964
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2917
2965
  }, "strip", z.ZodTypeAny, {
2918
- mimeType?: string | undefined;
2919
2966
  headers?: {
2920
2967
  value: string;
2921
2968
  name: string;
2922
2969
  }[] | undefined;
2923
2970
  body?: {
2924
- data?: string | undefined;
2925
2971
  size?: number | undefined;
2972
+ data?: string | undefined;
2926
2973
  attachmentId?: string | undefined;
2927
2974
  } | undefined;
2975
+ mimeType?: string | undefined;
2928
2976
  parts?: any[] | undefined;
2929
2977
  }, {
2930
- mimeType?: string | undefined;
2931
2978
  headers?: {
2932
2979
  value: string;
2933
2980
  name: string;
2934
2981
  }[] | undefined;
2935
2982
  body?: {
2936
- data?: string | undefined;
2937
2983
  size?: number | undefined;
2984
+ data?: string | undefined;
2938
2985
  attachmentId?: string | undefined;
2939
2986
  } | undefined;
2987
+ mimeType?: string | undefined;
2940
2988
  parts?: any[] | undefined;
2941
2989
  }>>;
2942
2990
  }, "strip", z.ZodTypeAny, {
2943
2991
  id: string;
2944
- raw?: string | undefined;
2945
2992
  threadId?: string | undefined;
2946
2993
  labelIds?: string[] | undefined;
2947
2994
  snippet?: string | undefined;
@@ -2949,22 +2996,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2949
2996
  historyId?: string | undefined;
2950
2997
  internalDate?: string | undefined;
2951
2998
  sizeEstimate?: number | undefined;
2999
+ raw?: string | undefined;
2952
3000
  payload?: {
2953
- mimeType?: string | undefined;
2954
3001
  headers?: {
2955
3002
  value: string;
2956
3003
  name: string;
2957
3004
  }[] | undefined;
2958
3005
  body?: {
2959
- data?: string | undefined;
2960
3006
  size?: number | undefined;
3007
+ data?: string | undefined;
2961
3008
  attachmentId?: string | undefined;
2962
3009
  } | undefined;
3010
+ mimeType?: string | undefined;
2963
3011
  parts?: any[] | undefined;
2964
3012
  } | undefined;
2965
3013
  }, {
2966
3014
  id: string;
2967
- raw?: string | undefined;
2968
3015
  threadId?: string | undefined;
2969
3016
  labelIds?: string[] | undefined;
2970
3017
  snippet?: string | undefined;
@@ -2972,24 +3019,24 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2972
3019
  historyId?: string | undefined;
2973
3020
  internalDate?: string | undefined;
2974
3021
  sizeEstimate?: number | undefined;
3022
+ raw?: string | undefined;
2975
3023
  payload?: {
2976
- mimeType?: string | undefined;
2977
3024
  headers?: {
2978
3025
  value: string;
2979
3026
  name: string;
2980
3027
  }[] | undefined;
2981
3028
  body?: {
2982
- data?: string | undefined;
2983
3029
  size?: number | undefined;
3030
+ data?: string | undefined;
2984
3031
  attachmentId?: string | undefined;
2985
3032
  } | undefined;
3033
+ mimeType?: string | undefined;
2986
3034
  parts?: any[] | undefined;
2987
3035
  } | undefined;
2988
3036
  }>;
2989
3037
  }, "strip", z.ZodTypeAny, {
2990
3038
  message: {
2991
3039
  id: string;
2992
- raw?: string | undefined;
2993
3040
  threadId?: string | undefined;
2994
3041
  labelIds?: string[] | undefined;
2995
3042
  snippet?: string | undefined;
@@ -2997,17 +3044,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2997
3044
  historyId?: string | undefined;
2998
3045
  internalDate?: string | undefined;
2999
3046
  sizeEstimate?: number | undefined;
3047
+ raw?: string | undefined;
3000
3048
  payload?: {
3001
- mimeType?: string | undefined;
3002
3049
  headers?: {
3003
3050
  value: string;
3004
3051
  name: string;
3005
3052
  }[] | undefined;
3006
3053
  body?: {
3007
- data?: string | undefined;
3008
3054
  size?: number | undefined;
3055
+ data?: string | undefined;
3009
3056
  attachmentId?: string | undefined;
3010
3057
  } | undefined;
3058
+ mimeType?: string | undefined;
3011
3059
  parts?: any[] | undefined;
3012
3060
  } | undefined;
3013
3061
  };
@@ -3015,7 +3063,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3015
3063
  }, {
3016
3064
  message: {
3017
3065
  id: string;
3018
- raw?: string | undefined;
3019
3066
  threadId?: string | undefined;
3020
3067
  labelIds?: string[] | undefined;
3021
3068
  snippet?: string | undefined;
@@ -3023,17 +3070,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3023
3070
  historyId?: string | undefined;
3024
3071
  internalDate?: string | undefined;
3025
3072
  sizeEstimate?: number | undefined;
3073
+ raw?: string | undefined;
3026
3074
  payload?: {
3027
- mimeType?: string | undefined;
3028
3075
  headers?: {
3029
3076
  value: string;
3030
3077
  name: string;
3031
3078
  }[] | undefined;
3032
3079
  body?: {
3033
- data?: string | undefined;
3034
3080
  size?: number | undefined;
3081
+ data?: string | undefined;
3035
3082
  attachmentId?: string | undefined;
3036
3083
  } | undefined;
3084
+ mimeType?: string | undefined;
3037
3085
  parts?: any[] | undefined;
3038
3086
  } | undefined;
3039
3087
  };
@@ -3043,15 +3091,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3043
3091
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
3044
3092
  error: z.ZodString;
3045
3093
  }, "strip", z.ZodTypeAny, {
3046
- error: string;
3047
3094
  success: boolean;
3095
+ error: string;
3048
3096
  operation: "list_drafts";
3049
3097
  next_page_token?: string | undefined;
3050
3098
  result_size_estimate?: number | undefined;
3051
3099
  drafts?: {
3052
3100
  message: {
3053
3101
  id: string;
3054
- raw?: string | undefined;
3055
3102
  threadId?: string | undefined;
3056
3103
  labelIds?: string[] | undefined;
3057
3104
  snippet?: string | undefined;
@@ -3059,32 +3106,32 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3059
3106
  historyId?: string | undefined;
3060
3107
  internalDate?: string | undefined;
3061
3108
  sizeEstimate?: number | undefined;
3109
+ raw?: string | undefined;
3062
3110
  payload?: {
3063
- mimeType?: string | undefined;
3064
3111
  headers?: {
3065
3112
  value: string;
3066
3113
  name: string;
3067
3114
  }[] | undefined;
3068
3115
  body?: {
3069
- data?: string | undefined;
3070
3116
  size?: number | undefined;
3117
+ data?: string | undefined;
3071
3118
  attachmentId?: string | undefined;
3072
3119
  } | undefined;
3120
+ mimeType?: string | undefined;
3073
3121
  parts?: any[] | undefined;
3074
3122
  } | undefined;
3075
3123
  };
3076
3124
  id: string;
3077
3125
  }[] | undefined;
3078
3126
  }, {
3079
- error: string;
3080
3127
  success: boolean;
3128
+ error: string;
3081
3129
  operation: "list_drafts";
3082
3130
  next_page_token?: string | undefined;
3083
3131
  result_size_estimate?: number | undefined;
3084
3132
  drafts?: {
3085
3133
  message: {
3086
3134
  id: string;
3087
- raw?: string | undefined;
3088
3135
  threadId?: string | undefined;
3089
3136
  labelIds?: string[] | undefined;
3090
3137
  snippet?: string | undefined;
@@ -3092,17 +3139,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3092
3139
  historyId?: string | undefined;
3093
3140
  internalDate?: string | undefined;
3094
3141
  sizeEstimate?: number | undefined;
3142
+ raw?: string | undefined;
3095
3143
  payload?: {
3096
- mimeType?: string | undefined;
3097
3144
  headers?: {
3098
3145
  value: string;
3099
3146
  name: string;
3100
3147
  }[] | undefined;
3101
3148
  body?: {
3102
- data?: string | undefined;
3103
3149
  size?: number | undefined;
3150
+ data?: string | undefined;
3104
3151
  attachmentId?: string | undefined;
3105
3152
  } | undefined;
3153
+ mimeType?: string | undefined;
3106
3154
  parts?: any[] | undefined;
3107
3155
  } | undefined;
3108
3156
  };
@@ -3114,13 +3162,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3114
3162
  deleted_message_id: z.ZodOptional<z.ZodString>;
3115
3163
  error: z.ZodString;
3116
3164
  }, "strip", z.ZodTypeAny, {
3117
- error: string;
3118
3165
  success: boolean;
3166
+ error: string;
3119
3167
  operation: "delete_email";
3120
3168
  deleted_message_id?: string | undefined;
3121
3169
  }, {
3122
- error: string;
3123
3170
  success: boolean;
3171
+ error: string;
3124
3172
  operation: "delete_email";
3125
3173
  deleted_message_id?: string | undefined;
3126
3174
  }>, z.ZodObject<{
@@ -3129,13 +3177,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3129
3177
  trashed_message_id: z.ZodOptional<z.ZodString>;
3130
3178
  error: z.ZodString;
3131
3179
  }, "strip", z.ZodTypeAny, {
3132
- error: string;
3133
3180
  success: boolean;
3181
+ error: string;
3134
3182
  operation: "trash_email";
3135
3183
  trashed_message_id?: string | undefined;
3136
3184
  }, {
3137
- error: string;
3138
3185
  success: boolean;
3186
+ error: string;
3139
3187
  operation: "trash_email";
3140
3188
  trashed_message_id?: string | undefined;
3141
3189
  }>, z.ZodObject<{
@@ -3171,43 +3219,42 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3171
3219
  size: z.ZodOptional<z.ZodNumber>;
3172
3220
  attachmentId: z.ZodOptional<z.ZodString>;
3173
3221
  }, "strip", z.ZodTypeAny, {
3174
- data?: string | undefined;
3175
3222
  size?: number | undefined;
3223
+ data?: string | undefined;
3176
3224
  attachmentId?: string | undefined;
3177
3225
  }, {
3178
- data?: string | undefined;
3179
3226
  size?: number | undefined;
3227
+ data?: string | undefined;
3180
3228
  attachmentId?: string | undefined;
3181
3229
  }>>;
3182
3230
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3183
3231
  }, "strip", z.ZodTypeAny, {
3184
- mimeType?: string | undefined;
3185
3232
  headers?: {
3186
3233
  value: string;
3187
3234
  name: string;
3188
3235
  }[] | undefined;
3189
3236
  body?: {
3190
- data?: string | undefined;
3191
3237
  size?: number | undefined;
3238
+ data?: string | undefined;
3192
3239
  attachmentId?: string | undefined;
3193
3240
  } | undefined;
3241
+ mimeType?: string | undefined;
3194
3242
  parts?: any[] | undefined;
3195
3243
  }, {
3196
- mimeType?: string | undefined;
3197
3244
  headers?: {
3198
3245
  value: string;
3199
3246
  name: string;
3200
3247
  }[] | undefined;
3201
3248
  body?: {
3202
- data?: string | undefined;
3203
3249
  size?: number | undefined;
3250
+ data?: string | undefined;
3204
3251
  attachmentId?: string | undefined;
3205
3252
  } | undefined;
3253
+ mimeType?: string | undefined;
3206
3254
  parts?: any[] | undefined;
3207
3255
  }>>;
3208
3256
  }, "strip", z.ZodTypeAny, {
3209
3257
  id: string;
3210
- raw?: string | undefined;
3211
3258
  threadId?: string | undefined;
3212
3259
  labelIds?: string[] | undefined;
3213
3260
  snippet?: string | undefined;
@@ -3215,22 +3262,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3215
3262
  historyId?: string | undefined;
3216
3263
  internalDate?: string | undefined;
3217
3264
  sizeEstimate?: number | undefined;
3265
+ raw?: string | undefined;
3218
3266
  payload?: {
3219
- mimeType?: string | undefined;
3220
3267
  headers?: {
3221
3268
  value: string;
3222
3269
  name: string;
3223
3270
  }[] | undefined;
3224
3271
  body?: {
3225
- data?: string | undefined;
3226
3272
  size?: number | undefined;
3273
+ data?: string | undefined;
3227
3274
  attachmentId?: string | undefined;
3228
3275
  } | undefined;
3276
+ mimeType?: string | undefined;
3229
3277
  parts?: any[] | undefined;
3230
3278
  } | undefined;
3231
3279
  }, {
3232
3280
  id: string;
3233
- raw?: string | undefined;
3234
3281
  threadId?: string | undefined;
3235
3282
  labelIds?: string[] | undefined;
3236
3283
  snippet?: string | undefined;
@@ -3238,17 +3285,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3238
3285
  historyId?: string | undefined;
3239
3286
  internalDate?: string | undefined;
3240
3287
  sizeEstimate?: number | undefined;
3288
+ raw?: string | undefined;
3241
3289
  payload?: {
3242
- mimeType?: string | undefined;
3243
3290
  headers?: {
3244
3291
  value: string;
3245
3292
  name: string;
3246
3293
  }[] | undefined;
3247
3294
  body?: {
3248
- data?: string | undefined;
3249
3295
  size?: number | undefined;
3296
+ data?: string | undefined;
3250
3297
  attachmentId?: string | undefined;
3251
3298
  } | undefined;
3299
+ mimeType?: string | undefined;
3252
3300
  parts?: any[] | undefined;
3253
3301
  } | undefined;
3254
3302
  }>, "many">>;
@@ -3257,7 +3305,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3257
3305
  id: string;
3258
3306
  messages?: {
3259
3307
  id: string;
3260
- raw?: string | undefined;
3261
3308
  threadId?: string | undefined;
3262
3309
  labelIds?: string[] | undefined;
3263
3310
  snippet?: string | undefined;
@@ -3265,17 +3312,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3265
3312
  historyId?: string | undefined;
3266
3313
  internalDate?: string | undefined;
3267
3314
  sizeEstimate?: number | undefined;
3315
+ raw?: string | undefined;
3268
3316
  payload?: {
3269
- mimeType?: string | undefined;
3270
3317
  headers?: {
3271
3318
  value: string;
3272
3319
  name: string;
3273
3320
  }[] | undefined;
3274
3321
  body?: {
3275
- data?: string | undefined;
3276
3322
  size?: number | undefined;
3323
+ data?: string | undefined;
3277
3324
  attachmentId?: string | undefined;
3278
3325
  } | undefined;
3326
+ mimeType?: string | undefined;
3279
3327
  parts?: any[] | undefined;
3280
3328
  } | undefined;
3281
3329
  }[] | undefined;
@@ -3285,7 +3333,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3285
3333
  id: string;
3286
3334
  messages?: {
3287
3335
  id: string;
3288
- raw?: string | undefined;
3289
3336
  threadId?: string | undefined;
3290
3337
  labelIds?: string[] | undefined;
3291
3338
  snippet?: string | undefined;
@@ -3293,17 +3340,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3293
3340
  historyId?: string | undefined;
3294
3341
  internalDate?: string | undefined;
3295
3342
  sizeEstimate?: number | undefined;
3343
+ raw?: string | undefined;
3296
3344
  payload?: {
3297
- mimeType?: string | undefined;
3298
3345
  headers?: {
3299
3346
  value: string;
3300
3347
  name: string;
3301
3348
  }[] | undefined;
3302
3349
  body?: {
3303
- data?: string | undefined;
3304
3350
  size?: number | undefined;
3351
+ data?: string | undefined;
3305
3352
  attachmentId?: string | undefined;
3306
3353
  } | undefined;
3354
+ mimeType?: string | undefined;
3307
3355
  parts?: any[] | undefined;
3308
3356
  } | undefined;
3309
3357
  }[] | undefined;
@@ -3314,8 +3362,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3314
3362
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
3315
3363
  error: z.ZodString;
3316
3364
  }, "strip", z.ZodTypeAny, {
3317
- error: string;
3318
3365
  success: boolean;
3366
+ error: string;
3319
3367
  operation: "list_threads";
3320
3368
  next_page_token?: string | undefined;
3321
3369
  result_size_estimate?: number | undefined;
@@ -3323,7 +3371,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3323
3371
  id: string;
3324
3372
  messages?: {
3325
3373
  id: string;
3326
- raw?: string | undefined;
3327
3374
  threadId?: string | undefined;
3328
3375
  labelIds?: string[] | undefined;
3329
3376
  snippet?: string | undefined;
@@ -3331,17 +3378,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3331
3378
  historyId?: string | undefined;
3332
3379
  internalDate?: string | undefined;
3333
3380
  sizeEstimate?: number | undefined;
3381
+ raw?: string | undefined;
3334
3382
  payload?: {
3335
- mimeType?: string | undefined;
3336
3383
  headers?: {
3337
3384
  value: string;
3338
3385
  name: string;
3339
3386
  }[] | undefined;
3340
3387
  body?: {
3341
- data?: string | undefined;
3342
3388
  size?: number | undefined;
3389
+ data?: string | undefined;
3343
3390
  attachmentId?: string | undefined;
3344
3391
  } | undefined;
3392
+ mimeType?: string | undefined;
3345
3393
  parts?: any[] | undefined;
3346
3394
  } | undefined;
3347
3395
  }[] | undefined;
@@ -3349,8 +3397,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3349
3397
  historyId?: string | undefined;
3350
3398
  }[] | undefined;
3351
3399
  }, {
3352
- error: string;
3353
3400
  success: boolean;
3401
+ error: string;
3354
3402
  operation: "list_threads";
3355
3403
  next_page_token?: string | undefined;
3356
3404
  result_size_estimate?: number | undefined;
@@ -3358,7 +3406,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3358
3406
  id: string;
3359
3407
  messages?: {
3360
3408
  id: string;
3361
- raw?: string | undefined;
3362
3409
  threadId?: string | undefined;
3363
3410
  labelIds?: string[] | undefined;
3364
3411
  snippet?: string | undefined;
@@ -3366,17 +3413,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3366
3413
  historyId?: string | undefined;
3367
3414
  internalDate?: string | undefined;
3368
3415
  sizeEstimate?: number | undefined;
3416
+ raw?: string | undefined;
3369
3417
  payload?: {
3370
- mimeType?: string | undefined;
3371
3418
  headers?: {
3372
3419
  value: string;
3373
3420
  name: string;
3374
3421
  }[] | undefined;
3375
3422
  body?: {
3376
- data?: string | undefined;
3377
3423
  size?: number | undefined;
3424
+ data?: string | undefined;
3378
3425
  attachmentId?: string | undefined;
3379
3426
  } | undefined;
3427
+ mimeType?: string | undefined;
3380
3428
  parts?: any[] | undefined;
3381
3429
  } | undefined;
3382
3430
  }[] | undefined;
@@ -3407,8 +3455,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3407
3455
  }>, "many">>;
3408
3456
  error: z.ZodString;
3409
3457
  }, "strip", z.ZodTypeAny, {
3410
- error: string;
3411
3458
  success: boolean;
3459
+ error: string;
3412
3460
  operation: "list_labels";
3413
3461
  labels?: {
3414
3462
  name: string;
@@ -3418,8 +3466,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3418
3466
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3419
3467
  }[] | undefined;
3420
3468
  }, {
3421
- error: string;
3422
3469
  success: boolean;
3470
+ error: string;
3423
3471
  operation: "list_labels";
3424
3472
  labels?: {
3425
3473
  name: string;
@@ -3452,8 +3500,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3452
3500
  }>>;
3453
3501
  error: z.ZodString;
3454
3502
  }, "strip", z.ZodTypeAny, {
3455
- error: string;
3456
3503
  success: boolean;
3504
+ error: string;
3457
3505
  operation: "create_label";
3458
3506
  label?: {
3459
3507
  name: string;
@@ -3463,8 +3511,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3463
3511
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3464
3512
  } | undefined;
3465
3513
  }, {
3466
- error: string;
3467
3514
  success: boolean;
3515
+ error: string;
3468
3516
  operation: "create_label";
3469
3517
  label?: {
3470
3518
  name: string;
@@ -3480,14 +3528,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3480
3528
  label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3481
3529
  error: z.ZodString;
3482
3530
  }, "strip", z.ZodTypeAny, {
3483
- error: string;
3484
3531
  success: boolean;
3532
+ error: string;
3485
3533
  operation: "modify_message_labels";
3486
3534
  message_id?: string | undefined;
3487
3535
  label_ids?: string[] | undefined;
3488
3536
  }, {
3489
- error: string;
3490
3537
  success: boolean;
3538
+ error: string;
3491
3539
  operation: "modify_message_labels";
3492
3540
  message_id?: string | undefined;
3493
3541
  label_ids?: string[] | undefined;
@@ -3497,15 +3545,33 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3497
3545
  thread_id: z.ZodOptional<z.ZodString>;
3498
3546
  error: z.ZodString;
3499
3547
  }, "strip", z.ZodTypeAny, {
3500
- error: string;
3501
3548
  success: boolean;
3549
+ error: string;
3502
3550
  operation: "modify_thread_labels";
3503
3551
  thread_id?: string | undefined;
3504
3552
  }, {
3505
- error: string;
3506
3553
  success: boolean;
3554
+ error: string;
3507
3555
  operation: "modify_thread_labels";
3508
3556
  thread_id?: string | undefined;
3557
+ }>, z.ZodObject<{
3558
+ operation: z.ZodLiteral<"get_attachment">;
3559
+ success: z.ZodBoolean;
3560
+ data: z.ZodOptional<z.ZodString>;
3561
+ size: z.ZodOptional<z.ZodNumber>;
3562
+ error: z.ZodString;
3563
+ }, "strip", z.ZodTypeAny, {
3564
+ success: boolean;
3565
+ error: string;
3566
+ operation: "get_attachment";
3567
+ size?: number | undefined;
3568
+ data?: string | undefined;
3569
+ }, {
3570
+ success: boolean;
3571
+ error: string;
3572
+ operation: "get_attachment";
3573
+ size?: number | undefined;
3574
+ data?: string | undefined;
3509
3575
  }>]>;
3510
3576
  static readonly shortDescription = "Gmail integration for email management";
3511
3577
  static readonly longDescription = "\n Gmail service integration for comprehensive email management and automation.\n Use cases:\n - Send and receive emails with rich formatting\n - Search and filter emails with advanced queries\n - Manage drafts and email threads\n - Mark messages as read/unread\n - Organize emails with labels and folders\n - Handle email attachments and metadata\n ";
@@ -3561,6 +3627,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3561
3627
  private createLabel;
3562
3628
  private modifyMessageLabels;
3563
3629
  private modifyThreadLabels;
3630
+ private getAttachment;
3564
3631
  protected chooseCredential(): string | undefined;
3565
3632
  }
3566
3633
  export {};