@bubblelab/bubble-core 0.1.95 → 0.1.97

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 (80) hide show
  1. package/dist/bubble-bundle.d.ts +112 -112
  2. package/dist/bubble-factory.d.ts +10 -0
  3. package/dist/bubble-factory.d.ts.map +1 -1
  4. package/dist/bubble-factory.js +30 -0
  5. package/dist/bubble-factory.js.map +1 -1
  6. package/dist/bubbles/service-bubble/agi-inc.d.ts +140 -140
  7. package/dist/bubbles/service-bubble/ai-agent.d.ts +72 -72
  8. package/dist/bubbles/service-bubble/airtable.d.ts +154 -154
  9. package/dist/bubbles/service-bubble/apify/apify.d.ts +30 -30
  10. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +88 -88
  11. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +18 -18
  12. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +51 -51
  13. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +20 -20
  14. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +134 -134
  15. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +16 -16
  16. package/dist/bubbles/service-bubble/eleven-labs.d.ts +56 -56
  17. package/dist/bubbles/service-bubble/firecrawl.d.ts +760 -760
  18. package/dist/bubbles/service-bubble/followupboss.d.ts +282 -282
  19. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +84 -84
  20. package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +12 -12
  21. package/dist/bubbles/service-bubble/github.d.ts +196 -196
  22. package/dist/bubbles/service-bubble/gmail.d.ts +344 -344
  23. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
  24. package/dist/bubbles/service-bubble/gmail.js +10 -4
  25. package/dist/bubbles/service-bubble/gmail.js.map +1 -1
  26. package/dist/bubbles/service-bubble/google-calendar.d.ts +164 -164
  27. package/dist/bubbles/service-bubble/google-drive.d.ts +152 -152
  28. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +62 -62
  29. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +22 -22
  30. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  31. package/dist/bubbles/service-bubble/http.d.ts +14 -14
  32. package/dist/bubbles/service-bubble/insforge-db.d.ts +16 -16
  33. package/dist/bubbles/service-bubble/jira/jira.d.ts +78 -78
  34. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
  35. package/dist/bubbles/service-bubble/notion/notion.d.ts +999 -999
  36. package/dist/bubbles/service-bubble/postgresql.d.ts +20 -20
  37. package/dist/bubbles/service-bubble/resend.d.ts +50 -50
  38. package/dist/bubbles/service-bubble/slack/slack.d.ts +594 -594
  39. package/dist/bubbles/service-bubble/storage.d.ts +40 -40
  40. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +121 -121
  41. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +38 -38
  42. package/dist/bubbles/service-bubble/telegram.d.ts +1600 -1600
  43. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +29 -29
  44. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +14 -14
  45. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +24 -24
  46. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +22 -22
  47. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +12 -12
  48. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +62 -62
  49. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  50. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  51. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +8 -8
  52. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +18 -18
  53. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +4 -4
  54. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +2 -2
  55. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +349 -349
  56. package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
  57. package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
  58. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  59. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +122 -122
  60. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +28 -28
  61. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
  62. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +12 -12
  63. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +80 -80
  64. package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
  65. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +164 -164
  66. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -22
  67. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  68. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
  69. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +12 -12
  70. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +28 -28
  71. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  72. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +40 -40
  73. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +12 -12
  74. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +98 -98
  75. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +32 -32
  76. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
  77. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +92 -92
  78. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +8 -8
  79. package/dist/bubbles.json +6 -6
  80. package/package.json +2 -2
@@ -17,24 +17,24 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
17
17
  operation: "send_email";
18
18
  to: string[];
19
19
  subject: string;
20
- credentials?: Partial<Record<CredentialType, string>> | undefined;
21
20
  cc?: string[] | undefined;
22
21
  bcc?: string[] | undefined;
23
- reply_to?: string | undefined;
24
22
  body_text?: string | undefined;
25
23
  body_html?: string | undefined;
24
+ reply_to?: string | undefined;
26
25
  thread_id?: string | undefined;
26
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
27
27
  }, {
28
28
  operation: "send_email";
29
29
  to: string[];
30
30
  subject: string;
31
- credentials?: Partial<Record<CredentialType, string>> | undefined;
32
31
  cc?: string[] | undefined;
33
32
  bcc?: string[] | undefined;
34
- reply_to?: string | undefined;
35
33
  body_text?: string | undefined;
36
34
  body_html?: string | undefined;
35
+ reply_to?: string | undefined;
37
36
  thread_id?: string | undefined;
37
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
38
38
  }>, z.ZodObject<{
39
39
  operation: z.ZodLiteral<"list_emails">;
40
40
  query: z.ZodOptional<z.ZodString>;
@@ -46,8 +46,8 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
46
46
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  operation: "list_emails";
49
- max_results: number;
50
49
  include_spam_trash: boolean;
50
+ max_results: number;
51
51
  include_details: boolean;
52
52
  credentials?: Partial<Record<CredentialType, string>> | undefined;
53
53
  query?: string | undefined;
@@ -57,9 +57,9 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
57
57
  operation: "list_emails";
58
58
  credentials?: Partial<Record<CredentialType, string>> | undefined;
59
59
  query?: string | undefined;
60
- max_results?: number | undefined;
61
60
  label_ids?: string[] | undefined;
62
61
  include_spam_trash?: boolean | undefined;
62
+ max_results?: number | undefined;
63
63
  page_token?: string | undefined;
64
64
  include_details?: boolean | undefined;
65
65
  }>, z.ZodObject<{
@@ -69,15 +69,15 @@ 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: "metadata" | "minimal" | "raw" | "full";
73
72
  operation: "get_email";
73
+ format: "minimal" | "full" | "raw" | "metadata";
74
74
  message_id: string;
75
75
  credentials?: Partial<Record<CredentialType, string>> | undefined;
76
76
  metadata_headers?: string[] | undefined;
77
77
  }, {
78
78
  operation: "get_email";
79
79
  message_id: string;
80
- format?: "metadata" | "minimal" | "raw" | "full" | undefined;
80
+ format?: "minimal" | "full" | "raw" | "metadata" | undefined;
81
81
  credentials?: Partial<Record<CredentialType, string>> | undefined;
82
82
  metadata_headers?: string[] | undefined;
83
83
  }>, z.ZodObject<{
@@ -87,17 +87,17 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
87
87
  include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
88
88
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
89
89
  }, "strip", z.ZodTypeAny, {
90
- query: string;
91
90
  operation: "search_emails";
92
- max_results: number;
91
+ query: string;
93
92
  include_spam_trash: boolean;
93
+ max_results: number;
94
94
  credentials?: Partial<Record<CredentialType, string>> | undefined;
95
95
  }, {
96
- query: string;
97
96
  operation: "search_emails";
97
+ query: string;
98
98
  credentials?: Partial<Record<CredentialType, string>> | undefined;
99
- max_results?: number | undefined;
100
99
  include_spam_trash?: boolean | undefined;
100
+ max_results?: number | undefined;
101
101
  }>, z.ZodObject<{
102
102
  operation: z.ZodLiteral<"mark_as_read">;
103
103
  message_ids: z.ZodArray<z.ZodString, "many">;
@@ -137,24 +137,24 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
137
137
  operation: "create_draft";
138
138
  to: string[];
139
139
  subject: string;
140
- credentials?: Partial<Record<CredentialType, string>> | undefined;
141
140
  cc?: string[] | undefined;
142
141
  bcc?: string[] | undefined;
143
- reply_to?: string | undefined;
144
142
  body_text?: string | undefined;
145
143
  body_html?: string | undefined;
144
+ reply_to?: string | undefined;
146
145
  thread_id?: string | undefined;
146
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
147
147
  }, {
148
148
  operation: "create_draft";
149
149
  to: string[];
150
150
  subject: string;
151
- credentials?: Partial<Record<CredentialType, string>> | undefined;
152
151
  cc?: string[] | undefined;
153
152
  bcc?: string[] | undefined;
154
- reply_to?: string | undefined;
155
153
  body_text?: string | undefined;
156
154
  body_html?: string | undefined;
155
+ reply_to?: string | undefined;
157
156
  thread_id?: string | undefined;
157
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
158
158
  }>, z.ZodObject<{
159
159
  operation: z.ZodLiteral<"send_draft">;
160
160
  draft_id: z.ZodString;
@@ -176,8 +176,8 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
176
176
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
177
177
  }, "strip", z.ZodTypeAny, {
178
178
  operation: "list_drafts";
179
- max_results: number;
180
179
  include_spam_trash: boolean;
180
+ max_results: number;
181
181
  credentials?: Partial<Record<CredentialType, string>> | undefined;
182
182
  query?: string | undefined;
183
183
  page_token?: string | undefined;
@@ -185,8 +185,8 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
185
185
  operation: "list_drafts";
186
186
  credentials?: Partial<Record<CredentialType, string>> | undefined;
187
187
  query?: string | undefined;
188
- max_results?: number | undefined;
189
188
  include_spam_trash?: boolean | undefined;
189
+ max_results?: number | undefined;
190
190
  page_token?: string | undefined;
191
191
  }>, z.ZodObject<{
192
192
  operation: z.ZodLiteral<"delete_email">;
@@ -222,8 +222,8 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
222
222
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
223
223
  }, "strip", z.ZodTypeAny, {
224
224
  operation: "list_threads";
225
- max_results: number;
226
225
  include_spam_trash: boolean;
226
+ max_results: number;
227
227
  credentials?: Partial<Record<CredentialType, string>> | undefined;
228
228
  query?: string | undefined;
229
229
  label_ids?: string[] | undefined;
@@ -232,9 +232,9 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
232
232
  operation: "list_threads";
233
233
  credentials?: Partial<Record<CredentialType, string>> | undefined;
234
234
  query?: string | undefined;
235
- max_results?: number | undefined;
236
235
  label_ids?: string[] | undefined;
237
236
  include_spam_trash?: boolean | undefined;
237
+ max_results?: number | undefined;
238
238
  page_token?: string | undefined;
239
239
  }>, z.ZodObject<{
240
240
  operation: z.ZodLiteral<"list_labels">;
@@ -254,16 +254,16 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
254
254
  text_color: z.ZodOptional<z.ZodString>;
255
255
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
256
256
  }, "strip", z.ZodTypeAny, {
257
- name: string;
258
257
  operation: "create_label";
258
+ name: string;
259
259
  label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide";
260
260
  message_list_visibility: "show" | "hide";
261
261
  credentials?: Partial<Record<CredentialType, string>> | undefined;
262
262
  background_color?: string | undefined;
263
263
  text_color?: string | undefined;
264
264
  }, {
265
- name: string;
266
265
  operation: "create_label";
266
+ name: string;
267
267
  credentials?: Partial<Record<CredentialType, string>> | undefined;
268
268
  label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
269
269
  message_list_visibility?: "show" | "hide" | undefined;
@@ -313,17 +313,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
313
313
  thread_id: z.ZodOptional<z.ZodString>;
314
314
  error: z.ZodString;
315
315
  }, "strip", z.ZodTypeAny, {
316
- error: string;
317
- success: boolean;
318
316
  operation: "send_email";
319
- message_id?: string | undefined;
317
+ success: boolean;
318
+ error: string;
320
319
  thread_id?: string | undefined;
320
+ message_id?: string | undefined;
321
321
  }, {
322
- error: string;
323
- success: boolean;
324
322
  operation: "send_email";
325
- message_id?: string | undefined;
323
+ success: boolean;
324
+ error: string;
326
325
  thread_id?: string | undefined;
326
+ message_id?: string | undefined;
327
327
  }>, z.ZodObject<{
328
328
  operation: z.ZodLiteral<"list_emails">;
329
329
  success: z.ZodBoolean;
@@ -365,7 +365,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
365
365
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
366
366
  }, "strip", z.ZodTypeAny, {
367
367
  mimeType?: string | undefined;
368
- parts?: any[] | undefined;
369
368
  headers?: {
370
369
  value: string;
371
370
  name: string;
@@ -375,9 +374,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
375
374
  size?: number | undefined;
376
375
  attachmentId?: string | undefined;
377
376
  } | undefined;
377
+ parts?: any[] | undefined;
378
378
  }, {
379
379
  mimeType?: string | undefined;
380
- parts?: any[] | undefined;
381
380
  headers?: {
382
381
  value: string;
383
382
  name: string;
@@ -387,9 +386,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
387
386
  size?: number | undefined;
388
387
  attachmentId?: string | undefined;
389
388
  } | undefined;
389
+ parts?: any[] | undefined;
390
390
  }>>;
391
391
  }, "strip", z.ZodTypeAny, {
392
392
  id: string;
393
+ raw?: string | undefined;
393
394
  threadId?: string | undefined;
394
395
  labelIds?: string[] | undefined;
395
396
  snippet?: string | undefined;
@@ -397,10 +398,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
397
398
  historyId?: string | undefined;
398
399
  internalDate?: string | undefined;
399
400
  sizeEstimate?: number | undefined;
400
- raw?: string | undefined;
401
401
  payload?: {
402
402
  mimeType?: string | undefined;
403
- parts?: any[] | undefined;
404
403
  headers?: {
405
404
  value: string;
406
405
  name: string;
@@ -410,9 +409,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
410
409
  size?: number | undefined;
411
410
  attachmentId?: string | undefined;
412
411
  } | undefined;
412
+ parts?: any[] | undefined;
413
413
  } | undefined;
414
414
  }, {
415
415
  id: string;
416
+ raw?: string | undefined;
416
417
  threadId?: string | undefined;
417
418
  labelIds?: string[] | undefined;
418
419
  snippet?: string | undefined;
@@ -420,10 +421,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
420
421
  historyId?: string | undefined;
421
422
  internalDate?: string | undefined;
422
423
  sizeEstimate?: number | undefined;
423
- raw?: string | undefined;
424
424
  payload?: {
425
425
  mimeType?: string | undefined;
426
- parts?: any[] | undefined;
427
426
  headers?: {
428
427
  value: string;
429
428
  name: string;
@@ -433,17 +432,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
433
432
  size?: number | undefined;
434
433
  attachmentId?: string | undefined;
435
434
  } | undefined;
435
+ parts?: any[] | undefined;
436
436
  } | undefined;
437
437
  }>, "many">>;
438
438
  next_page_token: z.ZodOptional<z.ZodString>;
439
439
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
440
440
  error: z.ZodString;
441
441
  }, "strip", z.ZodTypeAny, {
442
- error: string;
443
- success: boolean;
444
442
  operation: "list_emails";
443
+ success: boolean;
444
+ error: string;
445
445
  messages?: {
446
446
  id: string;
447
+ raw?: string | undefined;
447
448
  threadId?: string | undefined;
448
449
  labelIds?: string[] | undefined;
449
450
  snippet?: string | undefined;
@@ -451,10 +452,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
451
452
  historyId?: string | undefined;
452
453
  internalDate?: string | undefined;
453
454
  sizeEstimate?: number | undefined;
454
- raw?: string | undefined;
455
455
  payload?: {
456
456
  mimeType?: string | undefined;
457
- parts?: any[] | undefined;
458
457
  headers?: {
459
458
  value: string;
460
459
  name: string;
@@ -464,16 +463,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
464
463
  size?: number | undefined;
465
464
  attachmentId?: string | undefined;
466
465
  } | undefined;
466
+ parts?: any[] | undefined;
467
467
  } | undefined;
468
468
  }[] | undefined;
469
469
  next_page_token?: string | undefined;
470
470
  result_size_estimate?: number | undefined;
471
471
  }, {
472
- error: string;
473
- success: boolean;
474
472
  operation: "list_emails";
473
+ success: boolean;
474
+ error: string;
475
475
  messages?: {
476
476
  id: string;
477
+ raw?: string | undefined;
477
478
  threadId?: string | undefined;
478
479
  labelIds?: string[] | undefined;
479
480
  snippet?: string | undefined;
@@ -481,10 +482,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
481
482
  historyId?: string | undefined;
482
483
  internalDate?: string | undefined;
483
484
  sizeEstimate?: number | undefined;
484
- raw?: string | undefined;
485
485
  payload?: {
486
486
  mimeType?: string | undefined;
487
- parts?: any[] | undefined;
488
487
  headers?: {
489
488
  value: string;
490
489
  name: string;
@@ -494,6 +493,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
494
493
  size?: number | undefined;
495
494
  attachmentId?: string | undefined;
496
495
  } | undefined;
496
+ parts?: any[] | undefined;
497
497
  } | undefined;
498
498
  }[] | undefined;
499
499
  next_page_token?: string | undefined;
@@ -539,7 +539,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
539
539
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
540
540
  }, "strip", z.ZodTypeAny, {
541
541
  mimeType?: string | undefined;
542
- parts?: any[] | undefined;
543
542
  headers?: {
544
543
  value: string;
545
544
  name: string;
@@ -549,9 +548,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
549
548
  size?: number | undefined;
550
549
  attachmentId?: string | undefined;
551
550
  } | undefined;
551
+ parts?: any[] | undefined;
552
552
  }, {
553
553
  mimeType?: string | undefined;
554
- parts?: any[] | undefined;
555
554
  headers?: {
556
555
  value: string;
557
556
  name: string;
@@ -561,9 +560,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
561
560
  size?: number | undefined;
562
561
  attachmentId?: string | undefined;
563
562
  } | undefined;
563
+ parts?: any[] | undefined;
564
564
  }>>;
565
565
  }, "strip", z.ZodTypeAny, {
566
566
  id: string;
567
+ raw?: string | undefined;
567
568
  threadId?: string | undefined;
568
569
  labelIds?: string[] | undefined;
569
570
  snippet?: string | undefined;
@@ -571,10 +572,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
571
572
  historyId?: string | undefined;
572
573
  internalDate?: string | undefined;
573
574
  sizeEstimate?: number | undefined;
574
- raw?: string | undefined;
575
575
  payload?: {
576
576
  mimeType?: string | undefined;
577
- parts?: any[] | undefined;
578
577
  headers?: {
579
578
  value: string;
580
579
  name: string;
@@ -584,9 +583,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
584
583
  size?: number | undefined;
585
584
  attachmentId?: string | undefined;
586
585
  } | undefined;
586
+ parts?: any[] | undefined;
587
587
  } | undefined;
588
588
  }, {
589
589
  id: string;
590
+ raw?: string | undefined;
590
591
  threadId?: string | undefined;
591
592
  labelIds?: string[] | undefined;
592
593
  snippet?: string | undefined;
@@ -594,10 +595,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
594
595
  historyId?: string | undefined;
595
596
  internalDate?: string | undefined;
596
597
  sizeEstimate?: number | undefined;
597
- raw?: string | undefined;
598
598
  payload?: {
599
599
  mimeType?: string | undefined;
600
- parts?: any[] | undefined;
601
600
  headers?: {
602
601
  value: string;
603
602
  name: string;
@@ -607,15 +606,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
607
606
  size?: number | undefined;
608
607
  attachmentId?: string | undefined;
609
608
  } | undefined;
609
+ parts?: any[] | undefined;
610
610
  } | undefined;
611
611
  }>>;
612
612
  error: z.ZodString;
613
613
  }, "strip", z.ZodTypeAny, {
614
- error: string;
615
- success: boolean;
616
614
  operation: "get_email";
615
+ success: boolean;
616
+ error: string;
617
617
  message?: {
618
618
  id: string;
619
+ raw?: string | undefined;
619
620
  threadId?: string | undefined;
620
621
  labelIds?: string[] | undefined;
621
622
  snippet?: string | undefined;
@@ -623,10 +624,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
623
624
  historyId?: string | undefined;
624
625
  internalDate?: string | undefined;
625
626
  sizeEstimate?: number | undefined;
626
- raw?: string | undefined;
627
627
  payload?: {
628
628
  mimeType?: string | undefined;
629
- parts?: any[] | undefined;
630
629
  headers?: {
631
630
  value: string;
632
631
  name: string;
@@ -636,14 +635,16 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
636
635
  size?: number | undefined;
637
636
  attachmentId?: string | undefined;
638
637
  } | undefined;
638
+ parts?: any[] | undefined;
639
639
  } | undefined;
640
640
  } | undefined;
641
641
  }, {
642
- error: string;
643
- success: boolean;
644
642
  operation: "get_email";
643
+ success: boolean;
644
+ error: string;
645
645
  message?: {
646
646
  id: string;
647
+ raw?: string | undefined;
647
648
  threadId?: string | undefined;
648
649
  labelIds?: string[] | undefined;
649
650
  snippet?: string | undefined;
@@ -651,10 +652,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
651
652
  historyId?: string | undefined;
652
653
  internalDate?: string | undefined;
653
654
  sizeEstimate?: number | undefined;
654
- raw?: string | undefined;
655
655
  payload?: {
656
656
  mimeType?: string | undefined;
657
- parts?: any[] | undefined;
658
657
  headers?: {
659
658
  value: string;
660
659
  name: string;
@@ -664,6 +663,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
664
663
  size?: number | undefined;
665
664
  attachmentId?: string | undefined;
666
665
  } | undefined;
666
+ parts?: any[] | undefined;
667
667
  } | undefined;
668
668
  } | undefined;
669
669
  }>, z.ZodObject<{
@@ -707,7 +707,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
707
707
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
708
708
  }, "strip", z.ZodTypeAny, {
709
709
  mimeType?: string | undefined;
710
- parts?: any[] | undefined;
711
710
  headers?: {
712
711
  value: string;
713
712
  name: string;
@@ -717,9 +716,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
717
716
  size?: number | undefined;
718
717
  attachmentId?: string | undefined;
719
718
  } | undefined;
719
+ parts?: any[] | undefined;
720
720
  }, {
721
721
  mimeType?: string | undefined;
722
- parts?: any[] | undefined;
723
722
  headers?: {
724
723
  value: string;
725
724
  name: string;
@@ -729,9 +728,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
729
728
  size?: number | undefined;
730
729
  attachmentId?: string | undefined;
731
730
  } | undefined;
731
+ parts?: any[] | undefined;
732
732
  }>>;
733
733
  }, "strip", z.ZodTypeAny, {
734
734
  id: string;
735
+ raw?: string | undefined;
735
736
  threadId?: string | undefined;
736
737
  labelIds?: string[] | undefined;
737
738
  snippet?: string | undefined;
@@ -739,10 +740,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
739
740
  historyId?: string | undefined;
740
741
  internalDate?: string | undefined;
741
742
  sizeEstimate?: number | undefined;
742
- raw?: string | undefined;
743
743
  payload?: {
744
744
  mimeType?: string | undefined;
745
- parts?: any[] | undefined;
746
745
  headers?: {
747
746
  value: string;
748
747
  name: string;
@@ -752,9 +751,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
752
751
  size?: number | undefined;
753
752
  attachmentId?: string | undefined;
754
753
  } | undefined;
754
+ parts?: any[] | undefined;
755
755
  } | undefined;
756
756
  }, {
757
757
  id: string;
758
+ raw?: string | undefined;
758
759
  threadId?: string | undefined;
759
760
  labelIds?: string[] | undefined;
760
761
  snippet?: string | undefined;
@@ -762,10 +763,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
762
763
  historyId?: string | undefined;
763
764
  internalDate?: string | undefined;
764
765
  sizeEstimate?: number | undefined;
765
- raw?: string | undefined;
766
766
  payload?: {
767
767
  mimeType?: string | undefined;
768
- parts?: any[] | undefined;
769
768
  headers?: {
770
769
  value: string;
771
770
  name: string;
@@ -775,16 +774,18 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
775
774
  size?: number | undefined;
776
775
  attachmentId?: string | undefined;
777
776
  } | undefined;
777
+ parts?: any[] | undefined;
778
778
  } | undefined;
779
779
  }>, "many">>;
780
780
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
781
781
  error: z.ZodString;
782
782
  }, "strip", z.ZodTypeAny, {
783
- error: string;
784
- success: boolean;
785
783
  operation: "search_emails";
784
+ success: boolean;
785
+ error: string;
786
786
  messages?: {
787
787
  id: string;
788
+ raw?: string | undefined;
788
789
  threadId?: string | undefined;
789
790
  labelIds?: string[] | undefined;
790
791
  snippet?: string | undefined;
@@ -792,10 +793,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
792
793
  historyId?: string | undefined;
793
794
  internalDate?: string | undefined;
794
795
  sizeEstimate?: number | undefined;
795
- raw?: string | undefined;
796
796
  payload?: {
797
797
  mimeType?: string | undefined;
798
- parts?: any[] | undefined;
799
798
  headers?: {
800
799
  value: string;
801
800
  name: string;
@@ -805,15 +804,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
805
804
  size?: number | undefined;
806
805
  attachmentId?: string | undefined;
807
806
  } | undefined;
807
+ parts?: any[] | undefined;
808
808
  } | undefined;
809
809
  }[] | undefined;
810
810
  result_size_estimate?: number | undefined;
811
811
  }, {
812
- error: string;
813
- success: boolean;
814
812
  operation: "search_emails";
813
+ success: boolean;
814
+ error: string;
815
815
  messages?: {
816
816
  id: string;
817
+ raw?: string | undefined;
817
818
  threadId?: string | undefined;
818
819
  labelIds?: string[] | undefined;
819
820
  snippet?: string | undefined;
@@ -821,10 +822,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
821
822
  historyId?: string | undefined;
822
823
  internalDate?: string | undefined;
823
824
  sizeEstimate?: number | undefined;
824
- raw?: string | undefined;
825
825
  payload?: {
826
826
  mimeType?: string | undefined;
827
- parts?: any[] | undefined;
828
827
  headers?: {
829
828
  value: string;
830
829
  name: string;
@@ -834,6 +833,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
834
833
  size?: number | undefined;
835
834
  attachmentId?: string | undefined;
836
835
  } | undefined;
836
+ parts?: any[] | undefined;
837
837
  } | undefined;
838
838
  }[] | undefined;
839
839
  result_size_estimate?: number | undefined;
@@ -843,14 +843,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
843
843
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
844
844
  error: z.ZodString;
845
845
  }, "strip", z.ZodTypeAny, {
846
- error: string;
847
- success: boolean;
848
846
  operation: "mark_as_read";
847
+ success: boolean;
848
+ error: string;
849
849
  modified_messages?: string[] | undefined;
850
850
  }, {
851
- error: string;
852
- success: boolean;
853
851
  operation: "mark_as_read";
852
+ success: boolean;
853
+ error: string;
854
854
  modified_messages?: string[] | undefined;
855
855
  }>, z.ZodObject<{
856
856
  operation: z.ZodLiteral<"mark_as_unread">;
@@ -858,14 +858,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
858
858
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
859
859
  error: z.ZodString;
860
860
  }, "strip", z.ZodTypeAny, {
861
- error: string;
862
- success: boolean;
863
861
  operation: "mark_as_unread";
862
+ success: boolean;
863
+ error: string;
864
864
  modified_messages?: string[] | undefined;
865
865
  }, {
866
- error: string;
867
- success: boolean;
868
866
  operation: "mark_as_unread";
867
+ success: boolean;
868
+ error: string;
869
869
  modified_messages?: string[] | undefined;
870
870
  }>, z.ZodObject<{
871
871
  operation: z.ZodLiteral<"create_draft">;
@@ -910,7 +910,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
910
910
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
911
911
  }, "strip", z.ZodTypeAny, {
912
912
  mimeType?: string | undefined;
913
- parts?: any[] | undefined;
914
913
  headers?: {
915
914
  value: string;
916
915
  name: string;
@@ -920,9 +919,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
920
919
  size?: number | undefined;
921
920
  attachmentId?: string | undefined;
922
921
  } | undefined;
922
+ parts?: any[] | undefined;
923
923
  }, {
924
924
  mimeType?: string | undefined;
925
- parts?: any[] | undefined;
926
925
  headers?: {
927
926
  value: string;
928
927
  name: string;
@@ -932,9 +931,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
932
931
  size?: number | undefined;
933
932
  attachmentId?: string | undefined;
934
933
  } | undefined;
934
+ parts?: any[] | undefined;
935
935
  }>>;
936
936
  }, "strip", z.ZodTypeAny, {
937
937
  id: string;
938
+ raw?: string | undefined;
938
939
  threadId?: string | undefined;
939
940
  labelIds?: string[] | undefined;
940
941
  snippet?: string | undefined;
@@ -942,10 +943,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
942
943
  historyId?: string | undefined;
943
944
  internalDate?: string | undefined;
944
945
  sizeEstimate?: number | undefined;
945
- raw?: string | undefined;
946
946
  payload?: {
947
947
  mimeType?: string | undefined;
948
- parts?: any[] | undefined;
949
948
  headers?: {
950
949
  value: string;
951
950
  name: string;
@@ -955,9 +954,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
955
954
  size?: number | undefined;
956
955
  attachmentId?: string | undefined;
957
956
  } | undefined;
957
+ parts?: any[] | undefined;
958
958
  } | undefined;
959
959
  }, {
960
960
  id: string;
961
+ raw?: string | undefined;
961
962
  threadId?: string | undefined;
962
963
  labelIds?: string[] | undefined;
963
964
  snippet?: string | undefined;
@@ -965,10 +966,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
965
966
  historyId?: string | undefined;
966
967
  internalDate?: string | undefined;
967
968
  sizeEstimate?: number | undefined;
968
- raw?: string | undefined;
969
969
  payload?: {
970
970
  mimeType?: string | undefined;
971
- parts?: any[] | undefined;
972
971
  headers?: {
973
972
  value: string;
974
973
  name: string;
@@ -978,11 +977,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
978
977
  size?: number | undefined;
979
978
  attachmentId?: string | undefined;
980
979
  } | undefined;
980
+ parts?: any[] | undefined;
981
981
  } | undefined;
982
982
  }>;
983
983
  }, "strip", z.ZodTypeAny, {
984
984
  message: {
985
985
  id: string;
986
+ raw?: string | undefined;
986
987
  threadId?: string | undefined;
987
988
  labelIds?: string[] | undefined;
988
989
  snippet?: string | undefined;
@@ -990,10 +991,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
990
991
  historyId?: string | undefined;
991
992
  internalDate?: string | undefined;
992
993
  sizeEstimate?: number | undefined;
993
- raw?: string | undefined;
994
994
  payload?: {
995
995
  mimeType?: string | undefined;
996
- parts?: any[] | undefined;
997
996
  headers?: {
998
997
  value: string;
999
998
  name: string;
@@ -1003,12 +1002,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1003
1002
  size?: number | undefined;
1004
1003
  attachmentId?: string | undefined;
1005
1004
  } | undefined;
1005
+ parts?: any[] | undefined;
1006
1006
  } | undefined;
1007
1007
  };
1008
1008
  id: string;
1009
1009
  }, {
1010
1010
  message: {
1011
1011
  id: string;
1012
+ raw?: string | undefined;
1012
1013
  threadId?: string | undefined;
1013
1014
  labelIds?: string[] | undefined;
1014
1015
  snippet?: string | undefined;
@@ -1016,10 +1017,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1016
1017
  historyId?: string | undefined;
1017
1018
  internalDate?: string | undefined;
1018
1019
  sizeEstimate?: number | undefined;
1019
- raw?: string | undefined;
1020
1020
  payload?: {
1021
1021
  mimeType?: string | undefined;
1022
- parts?: any[] | undefined;
1023
1022
  headers?: {
1024
1023
  value: string;
1025
1024
  name: string;
@@ -1029,18 +1028,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1029
1028
  size?: number | undefined;
1030
1029
  attachmentId?: string | undefined;
1031
1030
  } | undefined;
1031
+ parts?: any[] | undefined;
1032
1032
  } | undefined;
1033
1033
  };
1034
1034
  id: string;
1035
1035
  }>>;
1036
1036
  error: z.ZodString;
1037
1037
  }, "strip", z.ZodTypeAny, {
1038
- error: string;
1039
- success: boolean;
1040
1038
  operation: "create_draft";
1039
+ success: boolean;
1040
+ error: string;
1041
1041
  draft?: {
1042
1042
  message: {
1043
1043
  id: string;
1044
+ raw?: string | undefined;
1044
1045
  threadId?: string | undefined;
1045
1046
  labelIds?: string[] | undefined;
1046
1047
  snippet?: string | undefined;
@@ -1048,10 +1049,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1048
1049
  historyId?: string | undefined;
1049
1050
  internalDate?: string | undefined;
1050
1051
  sizeEstimate?: number | undefined;
1051
- raw?: string | undefined;
1052
1052
  payload?: {
1053
1053
  mimeType?: string | undefined;
1054
- parts?: any[] | undefined;
1055
1054
  headers?: {
1056
1055
  value: string;
1057
1056
  name: string;
@@ -1061,17 +1060,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1061
1060
  size?: number | undefined;
1062
1061
  attachmentId?: string | undefined;
1063
1062
  } | undefined;
1063
+ parts?: any[] | undefined;
1064
1064
  } | undefined;
1065
1065
  };
1066
1066
  id: string;
1067
1067
  } | undefined;
1068
1068
  }, {
1069
- error: string;
1070
- success: boolean;
1071
1069
  operation: "create_draft";
1070
+ success: boolean;
1071
+ error: string;
1072
1072
  draft?: {
1073
1073
  message: {
1074
1074
  id: string;
1075
+ raw?: string | undefined;
1075
1076
  threadId?: string | undefined;
1076
1077
  labelIds?: string[] | undefined;
1077
1078
  snippet?: string | undefined;
@@ -1079,10 +1080,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1079
1080
  historyId?: string | undefined;
1080
1081
  internalDate?: string | undefined;
1081
1082
  sizeEstimate?: number | undefined;
1082
- raw?: string | undefined;
1083
1083
  payload?: {
1084
1084
  mimeType?: string | undefined;
1085
- parts?: any[] | undefined;
1086
1085
  headers?: {
1087
1086
  value: string;
1088
1087
  name: string;
@@ -1092,6 +1091,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1092
1091
  size?: number | undefined;
1093
1092
  attachmentId?: string | undefined;
1094
1093
  } | undefined;
1094
+ parts?: any[] | undefined;
1095
1095
  } | undefined;
1096
1096
  };
1097
1097
  id: string;
@@ -1103,17 +1103,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1103
1103
  thread_id: z.ZodOptional<z.ZodString>;
1104
1104
  error: z.ZodString;
1105
1105
  }, "strip", z.ZodTypeAny, {
1106
- error: string;
1107
- success: boolean;
1108
1106
  operation: "send_draft";
1109
- message_id?: string | undefined;
1107
+ success: boolean;
1108
+ error: string;
1110
1109
  thread_id?: string | undefined;
1110
+ message_id?: string | undefined;
1111
1111
  }, {
1112
- error: string;
1113
- success: boolean;
1114
1112
  operation: "send_draft";
1115
- message_id?: string | undefined;
1113
+ success: boolean;
1114
+ error: string;
1116
1115
  thread_id?: string | undefined;
1116
+ message_id?: string | undefined;
1117
1117
  }>, z.ZodObject<{
1118
1118
  operation: z.ZodLiteral<"list_drafts">;
1119
1119
  success: z.ZodBoolean;
@@ -1157,7 +1157,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1157
1157
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1158
1158
  }, "strip", z.ZodTypeAny, {
1159
1159
  mimeType?: string | undefined;
1160
- parts?: any[] | undefined;
1161
1160
  headers?: {
1162
1161
  value: string;
1163
1162
  name: string;
@@ -1167,9 +1166,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1167
1166
  size?: number | undefined;
1168
1167
  attachmentId?: string | undefined;
1169
1168
  } | undefined;
1169
+ parts?: any[] | undefined;
1170
1170
  }, {
1171
1171
  mimeType?: string | undefined;
1172
- parts?: any[] | undefined;
1173
1172
  headers?: {
1174
1173
  value: string;
1175
1174
  name: string;
@@ -1179,9 +1178,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1179
1178
  size?: number | undefined;
1180
1179
  attachmentId?: string | undefined;
1181
1180
  } | undefined;
1181
+ parts?: any[] | undefined;
1182
1182
  }>>;
1183
1183
  }, "strip", z.ZodTypeAny, {
1184
1184
  id: string;
1185
+ raw?: string | undefined;
1185
1186
  threadId?: string | undefined;
1186
1187
  labelIds?: string[] | undefined;
1187
1188
  snippet?: string | undefined;
@@ -1189,10 +1190,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1189
1190
  historyId?: string | undefined;
1190
1191
  internalDate?: string | undefined;
1191
1192
  sizeEstimate?: number | undefined;
1192
- raw?: string | undefined;
1193
1193
  payload?: {
1194
1194
  mimeType?: string | undefined;
1195
- parts?: any[] | undefined;
1196
1195
  headers?: {
1197
1196
  value: string;
1198
1197
  name: string;
@@ -1202,9 +1201,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1202
1201
  size?: number | undefined;
1203
1202
  attachmentId?: string | undefined;
1204
1203
  } | undefined;
1204
+ parts?: any[] | undefined;
1205
1205
  } | undefined;
1206
1206
  }, {
1207
1207
  id: string;
1208
+ raw?: string | undefined;
1208
1209
  threadId?: string | undefined;
1209
1210
  labelIds?: string[] | undefined;
1210
1211
  snippet?: string | undefined;
@@ -1212,10 +1213,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1212
1213
  historyId?: string | undefined;
1213
1214
  internalDate?: string | undefined;
1214
1215
  sizeEstimate?: number | undefined;
1215
- raw?: string | undefined;
1216
1216
  payload?: {
1217
1217
  mimeType?: string | undefined;
1218
- parts?: any[] | undefined;
1219
1218
  headers?: {
1220
1219
  value: string;
1221
1220
  name: string;
@@ -1225,11 +1224,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1225
1224
  size?: number | undefined;
1226
1225
  attachmentId?: string | undefined;
1227
1226
  } | undefined;
1227
+ parts?: any[] | undefined;
1228
1228
  } | undefined;
1229
1229
  }>;
1230
1230
  }, "strip", z.ZodTypeAny, {
1231
1231
  message: {
1232
1232
  id: string;
1233
+ raw?: string | undefined;
1233
1234
  threadId?: string | undefined;
1234
1235
  labelIds?: string[] | undefined;
1235
1236
  snippet?: string | undefined;
@@ -1237,10 +1238,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1237
1238
  historyId?: string | undefined;
1238
1239
  internalDate?: string | undefined;
1239
1240
  sizeEstimate?: number | undefined;
1240
- raw?: string | undefined;
1241
1241
  payload?: {
1242
1242
  mimeType?: string | undefined;
1243
- parts?: any[] | undefined;
1244
1243
  headers?: {
1245
1244
  value: string;
1246
1245
  name: string;
@@ -1250,12 +1249,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1250
1249
  size?: number | undefined;
1251
1250
  attachmentId?: string | undefined;
1252
1251
  } | undefined;
1252
+ parts?: any[] | undefined;
1253
1253
  } | undefined;
1254
1254
  };
1255
1255
  id: string;
1256
1256
  }, {
1257
1257
  message: {
1258
1258
  id: string;
1259
+ raw?: string | undefined;
1259
1260
  threadId?: string | undefined;
1260
1261
  labelIds?: string[] | undefined;
1261
1262
  snippet?: string | undefined;
@@ -1263,10 +1264,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1263
1264
  historyId?: string | undefined;
1264
1265
  internalDate?: string | undefined;
1265
1266
  sizeEstimate?: number | undefined;
1266
- raw?: string | undefined;
1267
1267
  payload?: {
1268
1268
  mimeType?: string | undefined;
1269
- parts?: any[] | undefined;
1270
1269
  headers?: {
1271
1270
  value: string;
1272
1271
  name: string;
@@ -1276,6 +1275,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1276
1275
  size?: number | undefined;
1277
1276
  attachmentId?: string | undefined;
1278
1277
  } | undefined;
1278
+ parts?: any[] | undefined;
1279
1279
  } | undefined;
1280
1280
  };
1281
1281
  id: string;
@@ -1284,14 +1284,15 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1284
1284
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
1285
1285
  error: z.ZodString;
1286
1286
  }, "strip", z.ZodTypeAny, {
1287
- error: string;
1288
- success: boolean;
1289
1287
  operation: "list_drafts";
1288
+ success: boolean;
1289
+ error: string;
1290
1290
  next_page_token?: string | undefined;
1291
1291
  result_size_estimate?: number | undefined;
1292
1292
  drafts?: {
1293
1293
  message: {
1294
1294
  id: string;
1295
+ raw?: string | undefined;
1295
1296
  threadId?: string | undefined;
1296
1297
  labelIds?: string[] | undefined;
1297
1298
  snippet?: string | undefined;
@@ -1299,10 +1300,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1299
1300
  historyId?: string | undefined;
1300
1301
  internalDate?: string | undefined;
1301
1302
  sizeEstimate?: number | undefined;
1302
- raw?: string | undefined;
1303
1303
  payload?: {
1304
1304
  mimeType?: string | undefined;
1305
- parts?: any[] | undefined;
1306
1305
  headers?: {
1307
1306
  value: string;
1308
1307
  name: string;
@@ -1312,19 +1311,21 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1312
1311
  size?: number | undefined;
1313
1312
  attachmentId?: string | undefined;
1314
1313
  } | undefined;
1314
+ parts?: any[] | undefined;
1315
1315
  } | undefined;
1316
1316
  };
1317
1317
  id: string;
1318
1318
  }[] | undefined;
1319
1319
  }, {
1320
- error: string;
1321
- success: boolean;
1322
1320
  operation: "list_drafts";
1321
+ success: boolean;
1322
+ error: string;
1323
1323
  next_page_token?: string | undefined;
1324
1324
  result_size_estimate?: number | undefined;
1325
1325
  drafts?: {
1326
1326
  message: {
1327
1327
  id: string;
1328
+ raw?: string | undefined;
1328
1329
  threadId?: string | undefined;
1329
1330
  labelIds?: string[] | undefined;
1330
1331
  snippet?: string | undefined;
@@ -1332,10 +1333,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1332
1333
  historyId?: string | undefined;
1333
1334
  internalDate?: string | undefined;
1334
1335
  sizeEstimate?: number | undefined;
1335
- raw?: string | undefined;
1336
1336
  payload?: {
1337
1337
  mimeType?: string | undefined;
1338
- parts?: any[] | undefined;
1339
1338
  headers?: {
1340
1339
  value: string;
1341
1340
  name: string;
@@ -1345,6 +1344,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1345
1344
  size?: number | undefined;
1346
1345
  attachmentId?: string | undefined;
1347
1346
  } | undefined;
1347
+ parts?: any[] | undefined;
1348
1348
  } | undefined;
1349
1349
  };
1350
1350
  id: string;
@@ -1355,14 +1355,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1355
1355
  deleted_message_id: z.ZodOptional<z.ZodString>;
1356
1356
  error: z.ZodString;
1357
1357
  }, "strip", z.ZodTypeAny, {
1358
- error: string;
1359
- success: boolean;
1360
1358
  operation: "delete_email";
1359
+ success: boolean;
1360
+ error: string;
1361
1361
  deleted_message_id?: string | undefined;
1362
1362
  }, {
1363
- error: string;
1364
- success: boolean;
1365
1363
  operation: "delete_email";
1364
+ success: boolean;
1365
+ error: string;
1366
1366
  deleted_message_id?: string | undefined;
1367
1367
  }>, z.ZodObject<{
1368
1368
  operation: z.ZodLiteral<"trash_email">;
@@ -1370,14 +1370,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1370
1370
  trashed_message_id: z.ZodOptional<z.ZodString>;
1371
1371
  error: z.ZodString;
1372
1372
  }, "strip", z.ZodTypeAny, {
1373
- error: string;
1374
- success: boolean;
1375
1373
  operation: "trash_email";
1374
+ success: boolean;
1375
+ error: string;
1376
1376
  trashed_message_id?: string | undefined;
1377
1377
  }, {
1378
- error: string;
1379
- success: boolean;
1380
1378
  operation: "trash_email";
1379
+ success: boolean;
1380
+ error: string;
1381
1381
  trashed_message_id?: string | undefined;
1382
1382
  }>, z.ZodObject<{
1383
1383
  operation: z.ZodLiteral<"list_threads">;
@@ -1423,7 +1423,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1423
1423
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1424
1424
  }, "strip", z.ZodTypeAny, {
1425
1425
  mimeType?: string | undefined;
1426
- parts?: any[] | undefined;
1427
1426
  headers?: {
1428
1427
  value: string;
1429
1428
  name: string;
@@ -1433,9 +1432,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1433
1432
  size?: number | undefined;
1434
1433
  attachmentId?: string | undefined;
1435
1434
  } | undefined;
1435
+ parts?: any[] | undefined;
1436
1436
  }, {
1437
1437
  mimeType?: string | undefined;
1438
- parts?: any[] | undefined;
1439
1438
  headers?: {
1440
1439
  value: string;
1441
1440
  name: string;
@@ -1445,9 +1444,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1445
1444
  size?: number | undefined;
1446
1445
  attachmentId?: string | undefined;
1447
1446
  } | undefined;
1447
+ parts?: any[] | undefined;
1448
1448
  }>>;
1449
1449
  }, "strip", z.ZodTypeAny, {
1450
1450
  id: string;
1451
+ raw?: string | undefined;
1451
1452
  threadId?: string | undefined;
1452
1453
  labelIds?: string[] | undefined;
1453
1454
  snippet?: string | undefined;
@@ -1455,10 +1456,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1455
1456
  historyId?: string | undefined;
1456
1457
  internalDate?: string | undefined;
1457
1458
  sizeEstimate?: number | undefined;
1458
- raw?: string | undefined;
1459
1459
  payload?: {
1460
1460
  mimeType?: string | undefined;
1461
- parts?: any[] | undefined;
1462
1461
  headers?: {
1463
1462
  value: string;
1464
1463
  name: string;
@@ -1468,9 +1467,11 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1468
1467
  size?: number | undefined;
1469
1468
  attachmentId?: string | undefined;
1470
1469
  } | undefined;
1470
+ parts?: any[] | undefined;
1471
1471
  } | undefined;
1472
1472
  }, {
1473
1473
  id: string;
1474
+ raw?: string | undefined;
1474
1475
  threadId?: string | undefined;
1475
1476
  labelIds?: string[] | undefined;
1476
1477
  snippet?: string | undefined;
@@ -1478,10 +1479,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1478
1479
  historyId?: string | undefined;
1479
1480
  internalDate?: string | undefined;
1480
1481
  sizeEstimate?: number | undefined;
1481
- raw?: string | undefined;
1482
1482
  payload?: {
1483
1483
  mimeType?: string | undefined;
1484
- parts?: any[] | undefined;
1485
1484
  headers?: {
1486
1485
  value: string;
1487
1486
  name: string;
@@ -1491,13 +1490,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1491
1490
  size?: number | undefined;
1492
1491
  attachmentId?: string | undefined;
1493
1492
  } | undefined;
1493
+ parts?: any[] | undefined;
1494
1494
  } | undefined;
1495
1495
  }>, "many">>;
1496
1496
  snippet: z.ZodOptional<z.ZodString>;
1497
1497
  }, "strip", z.ZodTypeAny, {
1498
1498
  id: string;
1499
+ snippet?: string | undefined;
1500
+ historyId?: string | undefined;
1499
1501
  messages?: {
1500
1502
  id: string;
1503
+ raw?: string | undefined;
1501
1504
  threadId?: string | undefined;
1502
1505
  labelIds?: string[] | undefined;
1503
1506
  snippet?: string | undefined;
@@ -1505,10 +1508,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1505
1508
  historyId?: string | undefined;
1506
1509
  internalDate?: string | undefined;
1507
1510
  sizeEstimate?: number | undefined;
1508
- raw?: string | undefined;
1509
1511
  payload?: {
1510
1512
  mimeType?: string | undefined;
1511
- parts?: any[] | undefined;
1512
1513
  headers?: {
1513
1514
  value: string;
1514
1515
  name: string;
@@ -1518,14 +1519,16 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1518
1519
  size?: number | undefined;
1519
1520
  attachmentId?: string | undefined;
1520
1521
  } | undefined;
1522
+ parts?: any[] | undefined;
1521
1523
  } | undefined;
1522
1524
  }[] | undefined;
1523
- snippet?: string | undefined;
1524
- historyId?: string | undefined;
1525
1525
  }, {
1526
1526
  id: string;
1527
+ snippet?: string | undefined;
1528
+ historyId?: string | undefined;
1527
1529
  messages?: {
1528
1530
  id: string;
1531
+ raw?: string | undefined;
1529
1532
  threadId?: string | undefined;
1530
1533
  labelIds?: string[] | undefined;
1531
1534
  snippet?: string | undefined;
@@ -1533,10 +1536,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1533
1536
  historyId?: string | undefined;
1534
1537
  internalDate?: string | undefined;
1535
1538
  sizeEstimate?: number | undefined;
1536
- raw?: string | undefined;
1537
1539
  payload?: {
1538
1540
  mimeType?: string | undefined;
1539
- parts?: any[] | undefined;
1540
1541
  headers?: {
1541
1542
  value: string;
1542
1543
  name: string;
@@ -1546,24 +1547,26 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1546
1547
  size?: number | undefined;
1547
1548
  attachmentId?: string | undefined;
1548
1549
  } | undefined;
1550
+ parts?: any[] | undefined;
1549
1551
  } | undefined;
1550
1552
  }[] | undefined;
1551
- snippet?: string | undefined;
1552
- historyId?: string | undefined;
1553
1553
  }>, "many">>;
1554
1554
  next_page_token: z.ZodOptional<z.ZodString>;
1555
1555
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
1556
1556
  error: z.ZodString;
1557
1557
  }, "strip", z.ZodTypeAny, {
1558
- error: string;
1559
- success: boolean;
1560
1558
  operation: "list_threads";
1559
+ success: boolean;
1560
+ error: string;
1561
1561
  next_page_token?: string | undefined;
1562
1562
  result_size_estimate?: number | undefined;
1563
1563
  threads?: {
1564
1564
  id: string;
1565
+ snippet?: string | undefined;
1566
+ historyId?: string | undefined;
1565
1567
  messages?: {
1566
1568
  id: string;
1569
+ raw?: string | undefined;
1567
1570
  threadId?: string | undefined;
1568
1571
  labelIds?: string[] | undefined;
1569
1572
  snippet?: string | undefined;
@@ -1571,10 +1574,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1571
1574
  historyId?: string | undefined;
1572
1575
  internalDate?: string | undefined;
1573
1576
  sizeEstimate?: number | undefined;
1574
- raw?: string | undefined;
1575
1577
  payload?: {
1576
1578
  mimeType?: string | undefined;
1577
- parts?: any[] | undefined;
1578
1579
  headers?: {
1579
1580
  value: string;
1580
1581
  name: string;
@@ -1584,21 +1585,23 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1584
1585
  size?: number | undefined;
1585
1586
  attachmentId?: string | undefined;
1586
1587
  } | undefined;
1588
+ parts?: any[] | undefined;
1587
1589
  } | undefined;
1588
1590
  }[] | undefined;
1589
- snippet?: string | undefined;
1590
- historyId?: string | undefined;
1591
1591
  }[] | undefined;
1592
1592
  }, {
1593
- error: string;
1594
- success: boolean;
1595
1593
  operation: "list_threads";
1594
+ success: boolean;
1595
+ error: string;
1596
1596
  next_page_token?: string | undefined;
1597
1597
  result_size_estimate?: number | undefined;
1598
1598
  threads?: {
1599
1599
  id: string;
1600
+ snippet?: string | undefined;
1601
+ historyId?: string | undefined;
1600
1602
  messages?: {
1601
1603
  id: string;
1604
+ raw?: string | undefined;
1602
1605
  threadId?: string | undefined;
1603
1606
  labelIds?: string[] | undefined;
1604
1607
  snippet?: string | undefined;
@@ -1606,10 +1609,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1606
1609
  historyId?: string | undefined;
1607
1610
  internalDate?: string | undefined;
1608
1611
  sizeEstimate?: number | undefined;
1609
- raw?: string | undefined;
1610
1612
  payload?: {
1611
1613
  mimeType?: string | undefined;
1612
- parts?: any[] | undefined;
1613
1614
  headers?: {
1614
1615
  value: string;
1615
1616
  name: string;
@@ -1619,10 +1620,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1619
1620
  size?: number | undefined;
1620
1621
  attachmentId?: string | undefined;
1621
1622
  } | undefined;
1623
+ parts?: any[] | undefined;
1622
1624
  } | undefined;
1623
1625
  }[] | undefined;
1624
- snippet?: string | undefined;
1625
- historyId?: string | undefined;
1626
1626
  }[] | undefined;
1627
1627
  }>, z.ZodObject<{
1628
1628
  operation: z.ZodLiteral<"list_labels">;
@@ -1648,9 +1648,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1648
1648
  }>, "many">>;
1649
1649
  error: z.ZodString;
1650
1650
  }, "strip", z.ZodTypeAny, {
1651
- error: string;
1652
- success: boolean;
1653
1651
  operation: "list_labels";
1652
+ success: boolean;
1653
+ error: string;
1654
1654
  labels?: {
1655
1655
  name: string;
1656
1656
  id: string;
@@ -1659,9 +1659,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1659
1659
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1660
1660
  }[] | undefined;
1661
1661
  }, {
1662
- error: string;
1663
- success: boolean;
1664
1662
  operation: "list_labels";
1663
+ success: boolean;
1664
+ error: string;
1665
1665
  labels?: {
1666
1666
  name: string;
1667
1667
  id: string;
@@ -1693,9 +1693,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1693
1693
  }>>;
1694
1694
  error: z.ZodString;
1695
1695
  }, "strip", z.ZodTypeAny, {
1696
- error: string;
1697
- success: boolean;
1698
1696
  operation: "create_label";
1697
+ success: boolean;
1698
+ error: string;
1699
1699
  label?: {
1700
1700
  name: string;
1701
1701
  id: string;
@@ -1704,9 +1704,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1704
1704
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1705
1705
  } | undefined;
1706
1706
  }, {
1707
- error: string;
1708
- success: boolean;
1709
1707
  operation: "create_label";
1708
+ success: boolean;
1709
+ error: string;
1710
1710
  label?: {
1711
1711
  name: string;
1712
1712
  id: string;
@@ -1721,31 +1721,31 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1721
1721
  label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1722
1722
  error: z.ZodString;
1723
1723
  }, "strip", z.ZodTypeAny, {
1724
- error: string;
1725
- success: boolean;
1726
1724
  operation: "modify_message_labels";
1727
- message_id?: string | undefined;
1725
+ success: boolean;
1726
+ error: string;
1728
1727
  label_ids?: string[] | undefined;
1728
+ message_id?: string | undefined;
1729
1729
  }, {
1730
- error: string;
1731
- success: boolean;
1732
1730
  operation: "modify_message_labels";
1733
- message_id?: string | undefined;
1731
+ success: boolean;
1732
+ error: string;
1734
1733
  label_ids?: string[] | undefined;
1734
+ message_id?: string | undefined;
1735
1735
  }>, z.ZodObject<{
1736
1736
  operation: z.ZodLiteral<"modify_thread_labels">;
1737
1737
  success: z.ZodBoolean;
1738
1738
  thread_id: z.ZodOptional<z.ZodString>;
1739
1739
  error: z.ZodString;
1740
1740
  }, "strip", z.ZodTypeAny, {
1741
- error: string;
1742
- success: boolean;
1743
1741
  operation: "modify_thread_labels";
1742
+ success: boolean;
1743
+ error: string;
1744
1744
  thread_id?: string | undefined;
1745
1745
  }, {
1746
- error: string;
1747
- success: boolean;
1748
1746
  operation: "modify_thread_labels";
1747
+ success: boolean;
1748
+ error: string;
1749
1749
  thread_id?: string | undefined;
1750
1750
  }>]>;
1751
1751
  type GmailResult = z.output<typeof GmailResultSchema>;
@@ -1776,24 +1776,24 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1776
1776
  operation: "send_email";
1777
1777
  to: string[];
1778
1778
  subject: string;
1779
- credentials?: Partial<Record<CredentialType, string>> | undefined;
1780
1779
  cc?: string[] | undefined;
1781
1780
  bcc?: string[] | undefined;
1782
- reply_to?: string | undefined;
1783
1781
  body_text?: string | undefined;
1784
1782
  body_html?: string | undefined;
1783
+ reply_to?: string | undefined;
1785
1784
  thread_id?: string | undefined;
1785
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1786
1786
  }, {
1787
1787
  operation: "send_email";
1788
1788
  to: string[];
1789
1789
  subject: string;
1790
- credentials?: Partial<Record<CredentialType, string>> | undefined;
1791
1790
  cc?: string[] | undefined;
1792
1791
  bcc?: string[] | undefined;
1793
- reply_to?: string | undefined;
1794
1792
  body_text?: string | undefined;
1795
1793
  body_html?: string | undefined;
1794
+ reply_to?: string | undefined;
1796
1795
  thread_id?: string | undefined;
1796
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1797
1797
  }>, z.ZodObject<{
1798
1798
  operation: z.ZodLiteral<"list_emails">;
1799
1799
  query: z.ZodOptional<z.ZodString>;
@@ -1805,8 +1805,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1805
1805
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1806
1806
  }, "strip", z.ZodTypeAny, {
1807
1807
  operation: "list_emails";
1808
- max_results: number;
1809
1808
  include_spam_trash: boolean;
1809
+ max_results: number;
1810
1810
  include_details: boolean;
1811
1811
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1812
1812
  query?: string | undefined;
@@ -1816,9 +1816,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1816
1816
  operation: "list_emails";
1817
1817
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1818
1818
  query?: string | undefined;
1819
- max_results?: number | undefined;
1820
1819
  label_ids?: string[] | undefined;
1821
1820
  include_spam_trash?: boolean | undefined;
1821
+ max_results?: number | undefined;
1822
1822
  page_token?: string | undefined;
1823
1823
  include_details?: boolean | undefined;
1824
1824
  }>, z.ZodObject<{
@@ -1828,15 +1828,15 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1828
1828
  metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1829
1829
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1830
1830
  }, "strip", z.ZodTypeAny, {
1831
- format: "metadata" | "minimal" | "raw" | "full";
1832
1831
  operation: "get_email";
1832
+ format: "minimal" | "full" | "raw" | "metadata";
1833
1833
  message_id: string;
1834
1834
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1835
1835
  metadata_headers?: string[] | undefined;
1836
1836
  }, {
1837
1837
  operation: "get_email";
1838
1838
  message_id: string;
1839
- format?: "metadata" | "minimal" | "raw" | "full" | undefined;
1839
+ format?: "minimal" | "full" | "raw" | "metadata" | undefined;
1840
1840
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1841
1841
  metadata_headers?: string[] | undefined;
1842
1842
  }>, z.ZodObject<{
@@ -1846,17 +1846,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1846
1846
  include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1847
1847
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1848
1848
  }, "strip", z.ZodTypeAny, {
1849
- query: string;
1850
1849
  operation: "search_emails";
1851
- max_results: number;
1850
+ query: string;
1852
1851
  include_spam_trash: boolean;
1852
+ max_results: number;
1853
1853
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1854
1854
  }, {
1855
- query: string;
1856
1855
  operation: "search_emails";
1856
+ query: string;
1857
1857
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1858
- max_results?: number | undefined;
1859
1858
  include_spam_trash?: boolean | undefined;
1859
+ max_results?: number | undefined;
1860
1860
  }>, z.ZodObject<{
1861
1861
  operation: z.ZodLiteral<"mark_as_read">;
1862
1862
  message_ids: z.ZodArray<z.ZodString, "many">;
@@ -1896,24 +1896,24 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1896
1896
  operation: "create_draft";
1897
1897
  to: string[];
1898
1898
  subject: string;
1899
- credentials?: Partial<Record<CredentialType, string>> | undefined;
1900
1899
  cc?: string[] | undefined;
1901
1900
  bcc?: string[] | undefined;
1902
- reply_to?: string | undefined;
1903
1901
  body_text?: string | undefined;
1904
1902
  body_html?: string | undefined;
1903
+ reply_to?: string | undefined;
1905
1904
  thread_id?: string | undefined;
1905
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1906
1906
  }, {
1907
1907
  operation: "create_draft";
1908
1908
  to: string[];
1909
1909
  subject: string;
1910
- credentials?: Partial<Record<CredentialType, string>> | undefined;
1911
1910
  cc?: string[] | undefined;
1912
1911
  bcc?: string[] | undefined;
1913
- reply_to?: string | undefined;
1914
1912
  body_text?: string | undefined;
1915
1913
  body_html?: string | undefined;
1914
+ reply_to?: string | undefined;
1916
1915
  thread_id?: string | undefined;
1916
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1917
1917
  }>, z.ZodObject<{
1918
1918
  operation: z.ZodLiteral<"send_draft">;
1919
1919
  draft_id: z.ZodString;
@@ -1935,8 +1935,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1935
1935
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1936
1936
  }, "strip", z.ZodTypeAny, {
1937
1937
  operation: "list_drafts";
1938
- max_results: number;
1939
1938
  include_spam_trash: boolean;
1939
+ max_results: number;
1940
1940
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1941
1941
  query?: string | undefined;
1942
1942
  page_token?: string | undefined;
@@ -1944,8 +1944,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1944
1944
  operation: "list_drafts";
1945
1945
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1946
1946
  query?: string | undefined;
1947
- max_results?: number | undefined;
1948
1947
  include_spam_trash?: boolean | undefined;
1948
+ max_results?: number | undefined;
1949
1949
  page_token?: string | undefined;
1950
1950
  }>, z.ZodObject<{
1951
1951
  operation: z.ZodLiteral<"delete_email">;
@@ -1981,8 +1981,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1981
1981
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1982
1982
  }, "strip", z.ZodTypeAny, {
1983
1983
  operation: "list_threads";
1984
- max_results: number;
1985
1984
  include_spam_trash: boolean;
1985
+ max_results: number;
1986
1986
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1987
1987
  query?: string | undefined;
1988
1988
  label_ids?: string[] | undefined;
@@ -1991,9 +1991,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1991
1991
  operation: "list_threads";
1992
1992
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1993
1993
  query?: string | undefined;
1994
- max_results?: number | undefined;
1995
1994
  label_ids?: string[] | undefined;
1996
1995
  include_spam_trash?: boolean | undefined;
1996
+ max_results?: number | undefined;
1997
1997
  page_token?: string | undefined;
1998
1998
  }>, z.ZodObject<{
1999
1999
  operation: z.ZodLiteral<"list_labels">;
@@ -2013,16 +2013,16 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2013
2013
  text_color: z.ZodOptional<z.ZodString>;
2014
2014
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
2015
2015
  }, "strip", z.ZodTypeAny, {
2016
- name: string;
2017
2016
  operation: "create_label";
2017
+ name: string;
2018
2018
  label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide";
2019
2019
  message_list_visibility: "show" | "hide";
2020
2020
  credentials?: Partial<Record<CredentialType, string>> | undefined;
2021
2021
  background_color?: string | undefined;
2022
2022
  text_color?: string | undefined;
2023
2023
  }, {
2024
- name: string;
2025
2024
  operation: "create_label";
2025
+ name: string;
2026
2026
  credentials?: Partial<Record<CredentialType, string>> | undefined;
2027
2027
  label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
2028
2028
  message_list_visibility?: "show" | "hide" | undefined;
@@ -2072,17 +2072,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2072
2072
  thread_id: z.ZodOptional<z.ZodString>;
2073
2073
  error: z.ZodString;
2074
2074
  }, "strip", z.ZodTypeAny, {
2075
- error: string;
2076
- success: boolean;
2077
2075
  operation: "send_email";
2078
- message_id?: string | undefined;
2076
+ success: boolean;
2077
+ error: string;
2079
2078
  thread_id?: string | undefined;
2079
+ message_id?: string | undefined;
2080
2080
  }, {
2081
- error: string;
2082
- success: boolean;
2083
2081
  operation: "send_email";
2084
- message_id?: string | undefined;
2082
+ success: boolean;
2083
+ error: string;
2085
2084
  thread_id?: string | undefined;
2085
+ message_id?: string | undefined;
2086
2086
  }>, z.ZodObject<{
2087
2087
  operation: z.ZodLiteral<"list_emails">;
2088
2088
  success: z.ZodBoolean;
@@ -2124,7 +2124,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2124
2124
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2125
2125
  }, "strip", z.ZodTypeAny, {
2126
2126
  mimeType?: string | undefined;
2127
- parts?: any[] | undefined;
2128
2127
  headers?: {
2129
2128
  value: string;
2130
2129
  name: string;
@@ -2134,9 +2133,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2134
2133
  size?: number | undefined;
2135
2134
  attachmentId?: string | undefined;
2136
2135
  } | undefined;
2136
+ parts?: any[] | undefined;
2137
2137
  }, {
2138
2138
  mimeType?: string | undefined;
2139
- parts?: any[] | undefined;
2140
2139
  headers?: {
2141
2140
  value: string;
2142
2141
  name: string;
@@ -2146,9 +2145,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2146
2145
  size?: number | undefined;
2147
2146
  attachmentId?: string | undefined;
2148
2147
  } | undefined;
2148
+ parts?: any[] | undefined;
2149
2149
  }>>;
2150
2150
  }, "strip", z.ZodTypeAny, {
2151
2151
  id: string;
2152
+ raw?: string | undefined;
2152
2153
  threadId?: string | undefined;
2153
2154
  labelIds?: string[] | undefined;
2154
2155
  snippet?: string | undefined;
@@ -2156,10 +2157,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2156
2157
  historyId?: string | undefined;
2157
2158
  internalDate?: string | undefined;
2158
2159
  sizeEstimate?: number | undefined;
2159
- raw?: string | undefined;
2160
2160
  payload?: {
2161
2161
  mimeType?: string | undefined;
2162
- parts?: any[] | undefined;
2163
2162
  headers?: {
2164
2163
  value: string;
2165
2164
  name: string;
@@ -2169,9 +2168,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2169
2168
  size?: number | undefined;
2170
2169
  attachmentId?: string | undefined;
2171
2170
  } | undefined;
2171
+ parts?: any[] | undefined;
2172
2172
  } | undefined;
2173
2173
  }, {
2174
2174
  id: string;
2175
+ raw?: string | undefined;
2175
2176
  threadId?: string | undefined;
2176
2177
  labelIds?: string[] | undefined;
2177
2178
  snippet?: string | undefined;
@@ -2179,10 +2180,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2179
2180
  historyId?: string | undefined;
2180
2181
  internalDate?: string | undefined;
2181
2182
  sizeEstimate?: number | undefined;
2182
- raw?: string | undefined;
2183
2183
  payload?: {
2184
2184
  mimeType?: string | undefined;
2185
- parts?: any[] | undefined;
2186
2185
  headers?: {
2187
2186
  value: string;
2188
2187
  name: string;
@@ -2192,17 +2191,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2192
2191
  size?: number | undefined;
2193
2192
  attachmentId?: string | undefined;
2194
2193
  } | undefined;
2194
+ parts?: any[] | undefined;
2195
2195
  } | undefined;
2196
2196
  }>, "many">>;
2197
2197
  next_page_token: z.ZodOptional<z.ZodString>;
2198
2198
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
2199
2199
  error: z.ZodString;
2200
2200
  }, "strip", z.ZodTypeAny, {
2201
- error: string;
2202
- success: boolean;
2203
2201
  operation: "list_emails";
2202
+ success: boolean;
2203
+ error: string;
2204
2204
  messages?: {
2205
2205
  id: string;
2206
+ raw?: string | undefined;
2206
2207
  threadId?: string | undefined;
2207
2208
  labelIds?: string[] | undefined;
2208
2209
  snippet?: string | undefined;
@@ -2210,10 +2211,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2210
2211
  historyId?: string | undefined;
2211
2212
  internalDate?: string | undefined;
2212
2213
  sizeEstimate?: number | undefined;
2213
- raw?: string | undefined;
2214
2214
  payload?: {
2215
2215
  mimeType?: string | undefined;
2216
- parts?: any[] | undefined;
2217
2216
  headers?: {
2218
2217
  value: string;
2219
2218
  name: string;
@@ -2223,16 +2222,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2223
2222
  size?: number | undefined;
2224
2223
  attachmentId?: string | undefined;
2225
2224
  } | undefined;
2225
+ parts?: any[] | undefined;
2226
2226
  } | undefined;
2227
2227
  }[] | undefined;
2228
2228
  next_page_token?: string | undefined;
2229
2229
  result_size_estimate?: number | undefined;
2230
2230
  }, {
2231
- error: string;
2232
- success: boolean;
2233
2231
  operation: "list_emails";
2232
+ success: boolean;
2233
+ error: string;
2234
2234
  messages?: {
2235
2235
  id: string;
2236
+ raw?: string | undefined;
2236
2237
  threadId?: string | undefined;
2237
2238
  labelIds?: string[] | undefined;
2238
2239
  snippet?: string | undefined;
@@ -2240,10 +2241,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2240
2241
  historyId?: string | undefined;
2241
2242
  internalDate?: string | undefined;
2242
2243
  sizeEstimate?: number | undefined;
2243
- raw?: string | undefined;
2244
2244
  payload?: {
2245
2245
  mimeType?: string | undefined;
2246
- parts?: any[] | undefined;
2247
2246
  headers?: {
2248
2247
  value: string;
2249
2248
  name: string;
@@ -2253,6 +2252,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2253
2252
  size?: number | undefined;
2254
2253
  attachmentId?: string | undefined;
2255
2254
  } | undefined;
2255
+ parts?: any[] | undefined;
2256
2256
  } | undefined;
2257
2257
  }[] | undefined;
2258
2258
  next_page_token?: string | undefined;
@@ -2298,7 +2298,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2298
2298
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2299
2299
  }, "strip", z.ZodTypeAny, {
2300
2300
  mimeType?: string | undefined;
2301
- parts?: any[] | undefined;
2302
2301
  headers?: {
2303
2302
  value: string;
2304
2303
  name: string;
@@ -2308,9 +2307,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2308
2307
  size?: number | undefined;
2309
2308
  attachmentId?: string | undefined;
2310
2309
  } | undefined;
2310
+ parts?: any[] | undefined;
2311
2311
  }, {
2312
2312
  mimeType?: string | undefined;
2313
- parts?: any[] | undefined;
2314
2313
  headers?: {
2315
2314
  value: string;
2316
2315
  name: string;
@@ -2320,9 +2319,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2320
2319
  size?: number | undefined;
2321
2320
  attachmentId?: string | undefined;
2322
2321
  } | undefined;
2322
+ parts?: any[] | undefined;
2323
2323
  }>>;
2324
2324
  }, "strip", z.ZodTypeAny, {
2325
2325
  id: string;
2326
+ raw?: string | undefined;
2326
2327
  threadId?: string | undefined;
2327
2328
  labelIds?: string[] | undefined;
2328
2329
  snippet?: string | undefined;
@@ -2330,10 +2331,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2330
2331
  historyId?: string | undefined;
2331
2332
  internalDate?: string | undefined;
2332
2333
  sizeEstimate?: number | undefined;
2333
- raw?: string | undefined;
2334
2334
  payload?: {
2335
2335
  mimeType?: string | undefined;
2336
- parts?: any[] | undefined;
2337
2336
  headers?: {
2338
2337
  value: string;
2339
2338
  name: string;
@@ -2343,9 +2342,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2343
2342
  size?: number | undefined;
2344
2343
  attachmentId?: string | undefined;
2345
2344
  } | undefined;
2345
+ parts?: any[] | undefined;
2346
2346
  } | undefined;
2347
2347
  }, {
2348
2348
  id: string;
2349
+ raw?: string | undefined;
2349
2350
  threadId?: string | undefined;
2350
2351
  labelIds?: string[] | undefined;
2351
2352
  snippet?: string | undefined;
@@ -2353,10 +2354,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2353
2354
  historyId?: string | undefined;
2354
2355
  internalDate?: string | undefined;
2355
2356
  sizeEstimate?: number | undefined;
2356
- raw?: string | undefined;
2357
2357
  payload?: {
2358
2358
  mimeType?: string | undefined;
2359
- parts?: any[] | undefined;
2360
2359
  headers?: {
2361
2360
  value: string;
2362
2361
  name: string;
@@ -2366,15 +2365,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2366
2365
  size?: number | undefined;
2367
2366
  attachmentId?: string | undefined;
2368
2367
  } | undefined;
2368
+ parts?: any[] | undefined;
2369
2369
  } | undefined;
2370
2370
  }>>;
2371
2371
  error: z.ZodString;
2372
2372
  }, "strip", z.ZodTypeAny, {
2373
- error: string;
2374
- success: boolean;
2375
2373
  operation: "get_email";
2374
+ success: boolean;
2375
+ error: string;
2376
2376
  message?: {
2377
2377
  id: string;
2378
+ raw?: string | undefined;
2378
2379
  threadId?: string | undefined;
2379
2380
  labelIds?: string[] | undefined;
2380
2381
  snippet?: string | undefined;
@@ -2382,10 +2383,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2382
2383
  historyId?: string | undefined;
2383
2384
  internalDate?: string | undefined;
2384
2385
  sizeEstimate?: number | undefined;
2385
- raw?: string | undefined;
2386
2386
  payload?: {
2387
2387
  mimeType?: string | undefined;
2388
- parts?: any[] | undefined;
2389
2388
  headers?: {
2390
2389
  value: string;
2391
2390
  name: string;
@@ -2395,14 +2394,16 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2395
2394
  size?: number | undefined;
2396
2395
  attachmentId?: string | undefined;
2397
2396
  } | undefined;
2397
+ parts?: any[] | undefined;
2398
2398
  } | undefined;
2399
2399
  } | undefined;
2400
2400
  }, {
2401
- error: string;
2402
- success: boolean;
2403
2401
  operation: "get_email";
2402
+ success: boolean;
2403
+ error: string;
2404
2404
  message?: {
2405
2405
  id: string;
2406
+ raw?: string | undefined;
2406
2407
  threadId?: string | undefined;
2407
2408
  labelIds?: string[] | undefined;
2408
2409
  snippet?: string | undefined;
@@ -2410,10 +2411,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2410
2411
  historyId?: string | undefined;
2411
2412
  internalDate?: string | undefined;
2412
2413
  sizeEstimate?: number | undefined;
2413
- raw?: string | undefined;
2414
2414
  payload?: {
2415
2415
  mimeType?: string | undefined;
2416
- parts?: any[] | undefined;
2417
2416
  headers?: {
2418
2417
  value: string;
2419
2418
  name: string;
@@ -2423,6 +2422,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2423
2422
  size?: number | undefined;
2424
2423
  attachmentId?: string | undefined;
2425
2424
  } | undefined;
2425
+ parts?: any[] | undefined;
2426
2426
  } | undefined;
2427
2427
  } | undefined;
2428
2428
  }>, z.ZodObject<{
@@ -2466,7 +2466,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2466
2466
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2467
2467
  }, "strip", z.ZodTypeAny, {
2468
2468
  mimeType?: string | undefined;
2469
- parts?: any[] | undefined;
2470
2469
  headers?: {
2471
2470
  value: string;
2472
2471
  name: string;
@@ -2476,9 +2475,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2476
2475
  size?: number | undefined;
2477
2476
  attachmentId?: string | undefined;
2478
2477
  } | undefined;
2478
+ parts?: any[] | undefined;
2479
2479
  }, {
2480
2480
  mimeType?: string | undefined;
2481
- parts?: any[] | undefined;
2482
2481
  headers?: {
2483
2482
  value: string;
2484
2483
  name: string;
@@ -2488,9 +2487,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2488
2487
  size?: number | undefined;
2489
2488
  attachmentId?: string | undefined;
2490
2489
  } | undefined;
2490
+ parts?: any[] | undefined;
2491
2491
  }>>;
2492
2492
  }, "strip", z.ZodTypeAny, {
2493
2493
  id: string;
2494
+ raw?: string | undefined;
2494
2495
  threadId?: string | undefined;
2495
2496
  labelIds?: string[] | undefined;
2496
2497
  snippet?: string | undefined;
@@ -2498,10 +2499,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2498
2499
  historyId?: string | undefined;
2499
2500
  internalDate?: string | undefined;
2500
2501
  sizeEstimate?: number | undefined;
2501
- raw?: string | undefined;
2502
2502
  payload?: {
2503
2503
  mimeType?: string | undefined;
2504
- parts?: any[] | undefined;
2505
2504
  headers?: {
2506
2505
  value: string;
2507
2506
  name: string;
@@ -2511,9 +2510,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2511
2510
  size?: number | undefined;
2512
2511
  attachmentId?: string | undefined;
2513
2512
  } | undefined;
2513
+ parts?: any[] | undefined;
2514
2514
  } | undefined;
2515
2515
  }, {
2516
2516
  id: string;
2517
+ raw?: string | undefined;
2517
2518
  threadId?: string | undefined;
2518
2519
  labelIds?: string[] | undefined;
2519
2520
  snippet?: string | undefined;
@@ -2521,10 +2522,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2521
2522
  historyId?: string | undefined;
2522
2523
  internalDate?: string | undefined;
2523
2524
  sizeEstimate?: number | undefined;
2524
- raw?: string | undefined;
2525
2525
  payload?: {
2526
2526
  mimeType?: string | undefined;
2527
- parts?: any[] | undefined;
2528
2527
  headers?: {
2529
2528
  value: string;
2530
2529
  name: string;
@@ -2534,16 +2533,18 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2534
2533
  size?: number | undefined;
2535
2534
  attachmentId?: string | undefined;
2536
2535
  } | undefined;
2536
+ parts?: any[] | undefined;
2537
2537
  } | undefined;
2538
2538
  }>, "many">>;
2539
2539
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
2540
2540
  error: z.ZodString;
2541
2541
  }, "strip", z.ZodTypeAny, {
2542
- error: string;
2543
- success: boolean;
2544
2542
  operation: "search_emails";
2543
+ success: boolean;
2544
+ error: string;
2545
2545
  messages?: {
2546
2546
  id: string;
2547
+ raw?: string | undefined;
2547
2548
  threadId?: string | undefined;
2548
2549
  labelIds?: string[] | undefined;
2549
2550
  snippet?: string | undefined;
@@ -2551,10 +2552,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2551
2552
  historyId?: string | undefined;
2552
2553
  internalDate?: string | undefined;
2553
2554
  sizeEstimate?: number | undefined;
2554
- raw?: string | undefined;
2555
2555
  payload?: {
2556
2556
  mimeType?: string | undefined;
2557
- parts?: any[] | undefined;
2558
2557
  headers?: {
2559
2558
  value: string;
2560
2559
  name: string;
@@ -2564,15 +2563,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2564
2563
  size?: number | undefined;
2565
2564
  attachmentId?: string | undefined;
2566
2565
  } | undefined;
2566
+ parts?: any[] | undefined;
2567
2567
  } | undefined;
2568
2568
  }[] | undefined;
2569
2569
  result_size_estimate?: number | undefined;
2570
2570
  }, {
2571
- error: string;
2572
- success: boolean;
2573
2571
  operation: "search_emails";
2572
+ success: boolean;
2573
+ error: string;
2574
2574
  messages?: {
2575
2575
  id: string;
2576
+ raw?: string | undefined;
2576
2577
  threadId?: string | undefined;
2577
2578
  labelIds?: string[] | undefined;
2578
2579
  snippet?: string | undefined;
@@ -2580,10 +2581,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2580
2581
  historyId?: string | undefined;
2581
2582
  internalDate?: string | undefined;
2582
2583
  sizeEstimate?: number | undefined;
2583
- raw?: string | undefined;
2584
2584
  payload?: {
2585
2585
  mimeType?: string | undefined;
2586
- parts?: any[] | undefined;
2587
2586
  headers?: {
2588
2587
  value: string;
2589
2588
  name: string;
@@ -2593,6 +2592,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2593
2592
  size?: number | undefined;
2594
2593
  attachmentId?: string | undefined;
2595
2594
  } | undefined;
2595
+ parts?: any[] | undefined;
2596
2596
  } | undefined;
2597
2597
  }[] | undefined;
2598
2598
  result_size_estimate?: number | undefined;
@@ -2602,14 +2602,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2602
2602
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2603
2603
  error: z.ZodString;
2604
2604
  }, "strip", z.ZodTypeAny, {
2605
- error: string;
2606
- success: boolean;
2607
2605
  operation: "mark_as_read";
2606
+ success: boolean;
2607
+ error: string;
2608
2608
  modified_messages?: string[] | undefined;
2609
2609
  }, {
2610
- error: string;
2611
- success: boolean;
2612
2610
  operation: "mark_as_read";
2611
+ success: boolean;
2612
+ error: string;
2613
2613
  modified_messages?: string[] | undefined;
2614
2614
  }>, z.ZodObject<{
2615
2615
  operation: z.ZodLiteral<"mark_as_unread">;
@@ -2617,14 +2617,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2617
2617
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2618
2618
  error: z.ZodString;
2619
2619
  }, "strip", z.ZodTypeAny, {
2620
- error: string;
2621
- success: boolean;
2622
2620
  operation: "mark_as_unread";
2621
+ success: boolean;
2622
+ error: string;
2623
2623
  modified_messages?: string[] | undefined;
2624
2624
  }, {
2625
- error: string;
2626
- success: boolean;
2627
2625
  operation: "mark_as_unread";
2626
+ success: boolean;
2627
+ error: string;
2628
2628
  modified_messages?: string[] | undefined;
2629
2629
  }>, z.ZodObject<{
2630
2630
  operation: z.ZodLiteral<"create_draft">;
@@ -2669,7 +2669,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2669
2669
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2670
2670
  }, "strip", z.ZodTypeAny, {
2671
2671
  mimeType?: string | undefined;
2672
- parts?: any[] | undefined;
2673
2672
  headers?: {
2674
2673
  value: string;
2675
2674
  name: string;
@@ -2679,9 +2678,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2679
2678
  size?: number | undefined;
2680
2679
  attachmentId?: string | undefined;
2681
2680
  } | undefined;
2681
+ parts?: any[] | undefined;
2682
2682
  }, {
2683
2683
  mimeType?: string | undefined;
2684
- parts?: any[] | undefined;
2685
2684
  headers?: {
2686
2685
  value: string;
2687
2686
  name: string;
@@ -2691,9 +2690,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2691
2690
  size?: number | undefined;
2692
2691
  attachmentId?: string | undefined;
2693
2692
  } | undefined;
2693
+ parts?: any[] | undefined;
2694
2694
  }>>;
2695
2695
  }, "strip", z.ZodTypeAny, {
2696
2696
  id: string;
2697
+ raw?: string | undefined;
2697
2698
  threadId?: string | undefined;
2698
2699
  labelIds?: string[] | undefined;
2699
2700
  snippet?: string | undefined;
@@ -2701,10 +2702,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2701
2702
  historyId?: string | undefined;
2702
2703
  internalDate?: string | undefined;
2703
2704
  sizeEstimate?: number | undefined;
2704
- raw?: string | undefined;
2705
2705
  payload?: {
2706
2706
  mimeType?: string | undefined;
2707
- parts?: any[] | undefined;
2708
2707
  headers?: {
2709
2708
  value: string;
2710
2709
  name: string;
@@ -2714,9 +2713,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2714
2713
  size?: number | undefined;
2715
2714
  attachmentId?: string | undefined;
2716
2715
  } | undefined;
2716
+ parts?: any[] | undefined;
2717
2717
  } | undefined;
2718
2718
  }, {
2719
2719
  id: string;
2720
+ raw?: string | undefined;
2720
2721
  threadId?: string | undefined;
2721
2722
  labelIds?: string[] | undefined;
2722
2723
  snippet?: string | undefined;
@@ -2724,10 +2725,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2724
2725
  historyId?: string | undefined;
2725
2726
  internalDate?: string | undefined;
2726
2727
  sizeEstimate?: number | undefined;
2727
- raw?: string | undefined;
2728
2728
  payload?: {
2729
2729
  mimeType?: string | undefined;
2730
- parts?: any[] | undefined;
2731
2730
  headers?: {
2732
2731
  value: string;
2733
2732
  name: string;
@@ -2737,11 +2736,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2737
2736
  size?: number | undefined;
2738
2737
  attachmentId?: string | undefined;
2739
2738
  } | undefined;
2739
+ parts?: any[] | undefined;
2740
2740
  } | undefined;
2741
2741
  }>;
2742
2742
  }, "strip", z.ZodTypeAny, {
2743
2743
  message: {
2744
2744
  id: string;
2745
+ raw?: string | undefined;
2745
2746
  threadId?: string | undefined;
2746
2747
  labelIds?: string[] | undefined;
2747
2748
  snippet?: string | undefined;
@@ -2749,10 +2750,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2749
2750
  historyId?: string | undefined;
2750
2751
  internalDate?: string | undefined;
2751
2752
  sizeEstimate?: number | undefined;
2752
- raw?: string | undefined;
2753
2753
  payload?: {
2754
2754
  mimeType?: string | undefined;
2755
- parts?: any[] | undefined;
2756
2755
  headers?: {
2757
2756
  value: string;
2758
2757
  name: string;
@@ -2762,12 +2761,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2762
2761
  size?: number | undefined;
2763
2762
  attachmentId?: string | undefined;
2764
2763
  } | undefined;
2764
+ parts?: any[] | undefined;
2765
2765
  } | undefined;
2766
2766
  };
2767
2767
  id: string;
2768
2768
  }, {
2769
2769
  message: {
2770
2770
  id: string;
2771
+ raw?: string | undefined;
2771
2772
  threadId?: string | undefined;
2772
2773
  labelIds?: string[] | undefined;
2773
2774
  snippet?: string | undefined;
@@ -2775,10 +2776,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2775
2776
  historyId?: string | undefined;
2776
2777
  internalDate?: string | undefined;
2777
2778
  sizeEstimate?: number | undefined;
2778
- raw?: string | undefined;
2779
2779
  payload?: {
2780
2780
  mimeType?: string | undefined;
2781
- parts?: any[] | undefined;
2782
2781
  headers?: {
2783
2782
  value: string;
2784
2783
  name: string;
@@ -2788,18 +2787,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2788
2787
  size?: number | undefined;
2789
2788
  attachmentId?: string | undefined;
2790
2789
  } | undefined;
2790
+ parts?: any[] | undefined;
2791
2791
  } | undefined;
2792
2792
  };
2793
2793
  id: string;
2794
2794
  }>>;
2795
2795
  error: z.ZodString;
2796
2796
  }, "strip", z.ZodTypeAny, {
2797
- error: string;
2798
- success: boolean;
2799
2797
  operation: "create_draft";
2798
+ success: boolean;
2799
+ error: string;
2800
2800
  draft?: {
2801
2801
  message: {
2802
2802
  id: string;
2803
+ raw?: string | undefined;
2803
2804
  threadId?: string | undefined;
2804
2805
  labelIds?: string[] | undefined;
2805
2806
  snippet?: string | undefined;
@@ -2807,10 +2808,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2807
2808
  historyId?: string | undefined;
2808
2809
  internalDate?: string | undefined;
2809
2810
  sizeEstimate?: number | undefined;
2810
- raw?: string | undefined;
2811
2811
  payload?: {
2812
2812
  mimeType?: string | undefined;
2813
- parts?: any[] | undefined;
2814
2813
  headers?: {
2815
2814
  value: string;
2816
2815
  name: string;
@@ -2820,17 +2819,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2820
2819
  size?: number | undefined;
2821
2820
  attachmentId?: string | undefined;
2822
2821
  } | undefined;
2822
+ parts?: any[] | undefined;
2823
2823
  } | undefined;
2824
2824
  };
2825
2825
  id: string;
2826
2826
  } | undefined;
2827
2827
  }, {
2828
- error: string;
2829
- success: boolean;
2830
2828
  operation: "create_draft";
2829
+ success: boolean;
2830
+ error: string;
2831
2831
  draft?: {
2832
2832
  message: {
2833
2833
  id: string;
2834
+ raw?: string | undefined;
2834
2835
  threadId?: string | undefined;
2835
2836
  labelIds?: string[] | undefined;
2836
2837
  snippet?: string | undefined;
@@ -2838,10 +2839,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2838
2839
  historyId?: string | undefined;
2839
2840
  internalDate?: string | undefined;
2840
2841
  sizeEstimate?: number | undefined;
2841
- raw?: string | undefined;
2842
2842
  payload?: {
2843
2843
  mimeType?: string | undefined;
2844
- parts?: any[] | undefined;
2845
2844
  headers?: {
2846
2845
  value: string;
2847
2846
  name: string;
@@ -2851,6 +2850,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2851
2850
  size?: number | undefined;
2852
2851
  attachmentId?: string | undefined;
2853
2852
  } | undefined;
2853
+ parts?: any[] | undefined;
2854
2854
  } | undefined;
2855
2855
  };
2856
2856
  id: string;
@@ -2862,17 +2862,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2862
2862
  thread_id: z.ZodOptional<z.ZodString>;
2863
2863
  error: z.ZodString;
2864
2864
  }, "strip", z.ZodTypeAny, {
2865
- error: string;
2866
- success: boolean;
2867
2865
  operation: "send_draft";
2868
- message_id?: string | undefined;
2866
+ success: boolean;
2867
+ error: string;
2869
2868
  thread_id?: string | undefined;
2869
+ message_id?: string | undefined;
2870
2870
  }, {
2871
- error: string;
2872
- success: boolean;
2873
2871
  operation: "send_draft";
2874
- message_id?: string | undefined;
2872
+ success: boolean;
2873
+ error: string;
2875
2874
  thread_id?: string | undefined;
2875
+ message_id?: string | undefined;
2876
2876
  }>, z.ZodObject<{
2877
2877
  operation: z.ZodLiteral<"list_drafts">;
2878
2878
  success: z.ZodBoolean;
@@ -2916,7 +2916,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2916
2916
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2917
2917
  }, "strip", z.ZodTypeAny, {
2918
2918
  mimeType?: string | undefined;
2919
- parts?: any[] | undefined;
2920
2919
  headers?: {
2921
2920
  value: string;
2922
2921
  name: string;
@@ -2926,9 +2925,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2926
2925
  size?: number | undefined;
2927
2926
  attachmentId?: string | undefined;
2928
2927
  } | undefined;
2928
+ parts?: any[] | undefined;
2929
2929
  }, {
2930
2930
  mimeType?: string | undefined;
2931
- parts?: any[] | undefined;
2932
2931
  headers?: {
2933
2932
  value: string;
2934
2933
  name: string;
@@ -2938,9 +2937,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2938
2937
  size?: number | undefined;
2939
2938
  attachmentId?: string | undefined;
2940
2939
  } | undefined;
2940
+ parts?: any[] | undefined;
2941
2941
  }>>;
2942
2942
  }, "strip", z.ZodTypeAny, {
2943
2943
  id: string;
2944
+ raw?: string | undefined;
2944
2945
  threadId?: string | undefined;
2945
2946
  labelIds?: string[] | undefined;
2946
2947
  snippet?: string | undefined;
@@ -2948,10 +2949,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2948
2949
  historyId?: string | undefined;
2949
2950
  internalDate?: string | undefined;
2950
2951
  sizeEstimate?: number | undefined;
2951
- raw?: string | undefined;
2952
2952
  payload?: {
2953
2953
  mimeType?: string | undefined;
2954
- parts?: any[] | undefined;
2955
2954
  headers?: {
2956
2955
  value: string;
2957
2956
  name: string;
@@ -2961,9 +2960,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2961
2960
  size?: number | undefined;
2962
2961
  attachmentId?: string | undefined;
2963
2962
  } | undefined;
2963
+ parts?: any[] | undefined;
2964
2964
  } | undefined;
2965
2965
  }, {
2966
2966
  id: string;
2967
+ raw?: string | undefined;
2967
2968
  threadId?: string | undefined;
2968
2969
  labelIds?: string[] | undefined;
2969
2970
  snippet?: string | undefined;
@@ -2971,10 +2972,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2971
2972
  historyId?: string | undefined;
2972
2973
  internalDate?: string | undefined;
2973
2974
  sizeEstimate?: number | undefined;
2974
- raw?: string | undefined;
2975
2975
  payload?: {
2976
2976
  mimeType?: string | undefined;
2977
- parts?: any[] | undefined;
2978
2977
  headers?: {
2979
2978
  value: string;
2980
2979
  name: string;
@@ -2984,11 +2983,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2984
2983
  size?: number | undefined;
2985
2984
  attachmentId?: string | undefined;
2986
2985
  } | undefined;
2986
+ parts?: any[] | undefined;
2987
2987
  } | undefined;
2988
2988
  }>;
2989
2989
  }, "strip", z.ZodTypeAny, {
2990
2990
  message: {
2991
2991
  id: string;
2992
+ raw?: string | undefined;
2992
2993
  threadId?: string | undefined;
2993
2994
  labelIds?: string[] | undefined;
2994
2995
  snippet?: string | undefined;
@@ -2996,10 +2997,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2996
2997
  historyId?: string | undefined;
2997
2998
  internalDate?: string | undefined;
2998
2999
  sizeEstimate?: number | undefined;
2999
- raw?: string | undefined;
3000
3000
  payload?: {
3001
3001
  mimeType?: string | undefined;
3002
- parts?: any[] | undefined;
3003
3002
  headers?: {
3004
3003
  value: string;
3005
3004
  name: string;
@@ -3009,12 +3008,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3009
3008
  size?: number | undefined;
3010
3009
  attachmentId?: string | undefined;
3011
3010
  } | undefined;
3011
+ parts?: any[] | undefined;
3012
3012
  } | undefined;
3013
3013
  };
3014
3014
  id: string;
3015
3015
  }, {
3016
3016
  message: {
3017
3017
  id: string;
3018
+ raw?: string | undefined;
3018
3019
  threadId?: string | undefined;
3019
3020
  labelIds?: string[] | undefined;
3020
3021
  snippet?: string | undefined;
@@ -3022,10 +3023,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3022
3023
  historyId?: string | undefined;
3023
3024
  internalDate?: string | undefined;
3024
3025
  sizeEstimate?: number | undefined;
3025
- raw?: string | undefined;
3026
3026
  payload?: {
3027
3027
  mimeType?: string | undefined;
3028
- parts?: any[] | undefined;
3029
3028
  headers?: {
3030
3029
  value: string;
3031
3030
  name: string;
@@ -3035,6 +3034,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3035
3034
  size?: number | undefined;
3036
3035
  attachmentId?: string | undefined;
3037
3036
  } | undefined;
3037
+ parts?: any[] | undefined;
3038
3038
  } | undefined;
3039
3039
  };
3040
3040
  id: string;
@@ -3043,14 +3043,15 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3043
3043
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
3044
3044
  error: z.ZodString;
3045
3045
  }, "strip", z.ZodTypeAny, {
3046
- error: string;
3047
- success: boolean;
3048
3046
  operation: "list_drafts";
3047
+ success: boolean;
3048
+ error: string;
3049
3049
  next_page_token?: string | undefined;
3050
3050
  result_size_estimate?: number | undefined;
3051
3051
  drafts?: {
3052
3052
  message: {
3053
3053
  id: string;
3054
+ raw?: string | undefined;
3054
3055
  threadId?: string | undefined;
3055
3056
  labelIds?: string[] | undefined;
3056
3057
  snippet?: string | undefined;
@@ -3058,10 +3059,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3058
3059
  historyId?: string | undefined;
3059
3060
  internalDate?: string | undefined;
3060
3061
  sizeEstimate?: number | undefined;
3061
- raw?: string | undefined;
3062
3062
  payload?: {
3063
3063
  mimeType?: string | undefined;
3064
- parts?: any[] | undefined;
3065
3064
  headers?: {
3066
3065
  value: string;
3067
3066
  name: string;
@@ -3071,19 +3070,21 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3071
3070
  size?: number | undefined;
3072
3071
  attachmentId?: string | undefined;
3073
3072
  } | undefined;
3073
+ parts?: any[] | undefined;
3074
3074
  } | undefined;
3075
3075
  };
3076
3076
  id: string;
3077
3077
  }[] | undefined;
3078
3078
  }, {
3079
- error: string;
3080
- success: boolean;
3081
3079
  operation: "list_drafts";
3080
+ success: boolean;
3081
+ error: string;
3082
3082
  next_page_token?: string | undefined;
3083
3083
  result_size_estimate?: number | undefined;
3084
3084
  drafts?: {
3085
3085
  message: {
3086
3086
  id: string;
3087
+ raw?: string | undefined;
3087
3088
  threadId?: string | undefined;
3088
3089
  labelIds?: string[] | undefined;
3089
3090
  snippet?: string | undefined;
@@ -3091,10 +3092,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3091
3092
  historyId?: string | undefined;
3092
3093
  internalDate?: string | undefined;
3093
3094
  sizeEstimate?: number | undefined;
3094
- raw?: string | undefined;
3095
3095
  payload?: {
3096
3096
  mimeType?: string | undefined;
3097
- parts?: any[] | undefined;
3098
3097
  headers?: {
3099
3098
  value: string;
3100
3099
  name: string;
@@ -3104,6 +3103,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3104
3103
  size?: number | undefined;
3105
3104
  attachmentId?: string | undefined;
3106
3105
  } | undefined;
3106
+ parts?: any[] | undefined;
3107
3107
  } | undefined;
3108
3108
  };
3109
3109
  id: string;
@@ -3114,14 +3114,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3114
3114
  deleted_message_id: z.ZodOptional<z.ZodString>;
3115
3115
  error: z.ZodString;
3116
3116
  }, "strip", z.ZodTypeAny, {
3117
- error: string;
3118
- success: boolean;
3119
3117
  operation: "delete_email";
3118
+ success: boolean;
3119
+ error: string;
3120
3120
  deleted_message_id?: string | undefined;
3121
3121
  }, {
3122
- error: string;
3123
- success: boolean;
3124
3122
  operation: "delete_email";
3123
+ success: boolean;
3124
+ error: string;
3125
3125
  deleted_message_id?: string | undefined;
3126
3126
  }>, z.ZodObject<{
3127
3127
  operation: z.ZodLiteral<"trash_email">;
@@ -3129,14 +3129,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3129
3129
  trashed_message_id: z.ZodOptional<z.ZodString>;
3130
3130
  error: z.ZodString;
3131
3131
  }, "strip", z.ZodTypeAny, {
3132
- error: string;
3133
- success: boolean;
3134
3132
  operation: "trash_email";
3133
+ success: boolean;
3134
+ error: string;
3135
3135
  trashed_message_id?: string | undefined;
3136
3136
  }, {
3137
- error: string;
3138
- success: boolean;
3139
3137
  operation: "trash_email";
3138
+ success: boolean;
3139
+ error: string;
3140
3140
  trashed_message_id?: string | undefined;
3141
3141
  }>, z.ZodObject<{
3142
3142
  operation: z.ZodLiteral<"list_threads">;
@@ -3182,7 +3182,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3182
3182
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3183
3183
  }, "strip", z.ZodTypeAny, {
3184
3184
  mimeType?: string | undefined;
3185
- parts?: any[] | undefined;
3186
3185
  headers?: {
3187
3186
  value: string;
3188
3187
  name: string;
@@ -3192,9 +3191,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3192
3191
  size?: number | undefined;
3193
3192
  attachmentId?: string | undefined;
3194
3193
  } | undefined;
3194
+ parts?: any[] | undefined;
3195
3195
  }, {
3196
3196
  mimeType?: string | undefined;
3197
- parts?: any[] | undefined;
3198
3197
  headers?: {
3199
3198
  value: string;
3200
3199
  name: string;
@@ -3204,9 +3203,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3204
3203
  size?: number | undefined;
3205
3204
  attachmentId?: string | undefined;
3206
3205
  } | undefined;
3206
+ parts?: any[] | undefined;
3207
3207
  }>>;
3208
3208
  }, "strip", z.ZodTypeAny, {
3209
3209
  id: string;
3210
+ raw?: string | undefined;
3210
3211
  threadId?: string | undefined;
3211
3212
  labelIds?: string[] | undefined;
3212
3213
  snippet?: string | undefined;
@@ -3214,10 +3215,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3214
3215
  historyId?: string | undefined;
3215
3216
  internalDate?: string | undefined;
3216
3217
  sizeEstimate?: number | undefined;
3217
- raw?: string | undefined;
3218
3218
  payload?: {
3219
3219
  mimeType?: string | undefined;
3220
- parts?: any[] | undefined;
3221
3220
  headers?: {
3222
3221
  value: string;
3223
3222
  name: string;
@@ -3227,9 +3226,11 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3227
3226
  size?: number | undefined;
3228
3227
  attachmentId?: string | undefined;
3229
3228
  } | undefined;
3229
+ parts?: any[] | undefined;
3230
3230
  } | undefined;
3231
3231
  }, {
3232
3232
  id: string;
3233
+ raw?: string | undefined;
3233
3234
  threadId?: string | undefined;
3234
3235
  labelIds?: string[] | undefined;
3235
3236
  snippet?: string | undefined;
@@ -3237,10 +3238,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3237
3238
  historyId?: string | undefined;
3238
3239
  internalDate?: string | undefined;
3239
3240
  sizeEstimate?: number | undefined;
3240
- raw?: string | undefined;
3241
3241
  payload?: {
3242
3242
  mimeType?: string | undefined;
3243
- parts?: any[] | undefined;
3244
3243
  headers?: {
3245
3244
  value: string;
3246
3245
  name: string;
@@ -3250,13 +3249,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3250
3249
  size?: number | undefined;
3251
3250
  attachmentId?: string | undefined;
3252
3251
  } | undefined;
3252
+ parts?: any[] | undefined;
3253
3253
  } | undefined;
3254
3254
  }>, "many">>;
3255
3255
  snippet: z.ZodOptional<z.ZodString>;
3256
3256
  }, "strip", z.ZodTypeAny, {
3257
3257
  id: string;
3258
+ snippet?: string | undefined;
3259
+ historyId?: string | undefined;
3258
3260
  messages?: {
3259
3261
  id: string;
3262
+ raw?: string | undefined;
3260
3263
  threadId?: string | undefined;
3261
3264
  labelIds?: string[] | undefined;
3262
3265
  snippet?: string | undefined;
@@ -3264,10 +3267,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3264
3267
  historyId?: string | undefined;
3265
3268
  internalDate?: string | undefined;
3266
3269
  sizeEstimate?: number | undefined;
3267
- raw?: string | undefined;
3268
3270
  payload?: {
3269
3271
  mimeType?: string | undefined;
3270
- parts?: any[] | undefined;
3271
3272
  headers?: {
3272
3273
  value: string;
3273
3274
  name: string;
@@ -3277,14 +3278,16 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3277
3278
  size?: number | undefined;
3278
3279
  attachmentId?: string | undefined;
3279
3280
  } | undefined;
3281
+ parts?: any[] | undefined;
3280
3282
  } | undefined;
3281
3283
  }[] | undefined;
3282
- snippet?: string | undefined;
3283
- historyId?: string | undefined;
3284
3284
  }, {
3285
3285
  id: string;
3286
+ snippet?: string | undefined;
3287
+ historyId?: string | undefined;
3286
3288
  messages?: {
3287
3289
  id: string;
3290
+ raw?: string | undefined;
3288
3291
  threadId?: string | undefined;
3289
3292
  labelIds?: string[] | undefined;
3290
3293
  snippet?: string | undefined;
@@ -3292,10 +3295,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3292
3295
  historyId?: string | undefined;
3293
3296
  internalDate?: string | undefined;
3294
3297
  sizeEstimate?: number | undefined;
3295
- raw?: string | undefined;
3296
3298
  payload?: {
3297
3299
  mimeType?: string | undefined;
3298
- parts?: any[] | undefined;
3299
3300
  headers?: {
3300
3301
  value: string;
3301
3302
  name: string;
@@ -3305,24 +3306,26 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3305
3306
  size?: number | undefined;
3306
3307
  attachmentId?: string | undefined;
3307
3308
  } | undefined;
3309
+ parts?: any[] | undefined;
3308
3310
  } | undefined;
3309
3311
  }[] | undefined;
3310
- snippet?: string | undefined;
3311
- historyId?: string | undefined;
3312
3312
  }>, "many">>;
3313
3313
  next_page_token: z.ZodOptional<z.ZodString>;
3314
3314
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
3315
3315
  error: z.ZodString;
3316
3316
  }, "strip", z.ZodTypeAny, {
3317
- error: string;
3318
- success: boolean;
3319
3317
  operation: "list_threads";
3318
+ success: boolean;
3319
+ error: string;
3320
3320
  next_page_token?: string | undefined;
3321
3321
  result_size_estimate?: number | undefined;
3322
3322
  threads?: {
3323
3323
  id: string;
3324
+ snippet?: string | undefined;
3325
+ historyId?: string | undefined;
3324
3326
  messages?: {
3325
3327
  id: string;
3328
+ raw?: string | undefined;
3326
3329
  threadId?: string | undefined;
3327
3330
  labelIds?: string[] | undefined;
3328
3331
  snippet?: string | undefined;
@@ -3330,10 +3333,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3330
3333
  historyId?: string | undefined;
3331
3334
  internalDate?: string | undefined;
3332
3335
  sizeEstimate?: number | undefined;
3333
- raw?: string | undefined;
3334
3336
  payload?: {
3335
3337
  mimeType?: string | undefined;
3336
- parts?: any[] | undefined;
3337
3338
  headers?: {
3338
3339
  value: string;
3339
3340
  name: string;
@@ -3343,21 +3344,23 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3343
3344
  size?: number | undefined;
3344
3345
  attachmentId?: string | undefined;
3345
3346
  } | undefined;
3347
+ parts?: any[] | undefined;
3346
3348
  } | undefined;
3347
3349
  }[] | undefined;
3348
- snippet?: string | undefined;
3349
- historyId?: string | undefined;
3350
3350
  }[] | undefined;
3351
3351
  }, {
3352
- error: string;
3353
- success: boolean;
3354
3352
  operation: "list_threads";
3353
+ success: boolean;
3354
+ error: string;
3355
3355
  next_page_token?: string | undefined;
3356
3356
  result_size_estimate?: number | undefined;
3357
3357
  threads?: {
3358
3358
  id: string;
3359
+ snippet?: string | undefined;
3360
+ historyId?: string | undefined;
3359
3361
  messages?: {
3360
3362
  id: string;
3363
+ raw?: string | undefined;
3361
3364
  threadId?: string | undefined;
3362
3365
  labelIds?: string[] | undefined;
3363
3366
  snippet?: string | undefined;
@@ -3365,10 +3368,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3365
3368
  historyId?: string | undefined;
3366
3369
  internalDate?: string | undefined;
3367
3370
  sizeEstimate?: number | undefined;
3368
- raw?: string | undefined;
3369
3371
  payload?: {
3370
3372
  mimeType?: string | undefined;
3371
- parts?: any[] | undefined;
3372
3373
  headers?: {
3373
3374
  value: string;
3374
3375
  name: string;
@@ -3378,10 +3379,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3378
3379
  size?: number | undefined;
3379
3380
  attachmentId?: string | undefined;
3380
3381
  } | undefined;
3382
+ parts?: any[] | undefined;
3381
3383
  } | undefined;
3382
3384
  }[] | undefined;
3383
- snippet?: string | undefined;
3384
- historyId?: string | undefined;
3385
3385
  }[] | undefined;
3386
3386
  }>, z.ZodObject<{
3387
3387
  operation: z.ZodLiteral<"list_labels">;
@@ -3407,9 +3407,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3407
3407
  }>, "many">>;
3408
3408
  error: z.ZodString;
3409
3409
  }, "strip", z.ZodTypeAny, {
3410
- error: string;
3411
- success: boolean;
3412
3410
  operation: "list_labels";
3411
+ success: boolean;
3412
+ error: string;
3413
3413
  labels?: {
3414
3414
  name: string;
3415
3415
  id: string;
@@ -3418,9 +3418,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3418
3418
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3419
3419
  }[] | undefined;
3420
3420
  }, {
3421
- error: string;
3422
- success: boolean;
3423
3421
  operation: "list_labels";
3422
+ success: boolean;
3423
+ error: string;
3424
3424
  labels?: {
3425
3425
  name: string;
3426
3426
  id: string;
@@ -3452,9 +3452,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3452
3452
  }>>;
3453
3453
  error: z.ZodString;
3454
3454
  }, "strip", z.ZodTypeAny, {
3455
- error: string;
3456
- success: boolean;
3457
3455
  operation: "create_label";
3456
+ success: boolean;
3457
+ error: string;
3458
3458
  label?: {
3459
3459
  name: string;
3460
3460
  id: string;
@@ -3463,9 +3463,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3463
3463
  labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3464
3464
  } | undefined;
3465
3465
  }, {
3466
- error: string;
3467
- success: boolean;
3468
3466
  operation: "create_label";
3467
+ success: boolean;
3468
+ error: string;
3469
3469
  label?: {
3470
3470
  name: string;
3471
3471
  id: string;
@@ -3480,31 +3480,31 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3480
3480
  label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3481
3481
  error: z.ZodString;
3482
3482
  }, "strip", z.ZodTypeAny, {
3483
- error: string;
3484
- success: boolean;
3485
3483
  operation: "modify_message_labels";
3486
- message_id?: string | undefined;
3484
+ success: boolean;
3485
+ error: string;
3487
3486
  label_ids?: string[] | undefined;
3487
+ message_id?: string | undefined;
3488
3488
  }, {
3489
- error: string;
3490
- success: boolean;
3491
3489
  operation: "modify_message_labels";
3492
- message_id?: string | undefined;
3490
+ success: boolean;
3491
+ error: string;
3493
3492
  label_ids?: string[] | undefined;
3493
+ message_id?: string | undefined;
3494
3494
  }>, z.ZodObject<{
3495
3495
  operation: z.ZodLiteral<"modify_thread_labels">;
3496
3496
  success: z.ZodBoolean;
3497
3497
  thread_id: z.ZodOptional<z.ZodString>;
3498
3498
  error: z.ZodString;
3499
3499
  }, "strip", z.ZodTypeAny, {
3500
- error: string;
3501
- success: boolean;
3502
3500
  operation: "modify_thread_labels";
3501
+ success: boolean;
3502
+ error: string;
3503
3503
  thread_id?: string | undefined;
3504
3504
  }, {
3505
- error: string;
3506
- success: boolean;
3507
3505
  operation: "modify_thread_labels";
3506
+ success: boolean;
3507
+ error: string;
3508
3508
  thread_id?: string | undefined;
3509
3509
  }>]>;
3510
3510
  static readonly shortDescription = "Gmail integration for email management";