@bubblelab/bubble-core 0.1.9 → 0.1.10

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 (186) hide show
  1. package/dist/bubble-bundle.d.ts +252 -1686
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +51 -19
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.d.ts +17 -1
  6. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
  7. package/dist/bubble-flow/bubble-flow-class.js +16 -0
  8. package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
  9. package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
  10. package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
  11. package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
  12. package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
  13. package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
  14. package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
  15. package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
  16. package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
  17. package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
  18. package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
  19. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
  20. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
  21. package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
  22. package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
  23. package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
  24. package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
  25. package/dist/bubbles/service-bubble/ai-agent.d.ts +30 -30
  26. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  27. package/dist/bubbles/service-bubble/ai-agent.js +3 -1
  28. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  29. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +34 -34
  30. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +42 -42
  31. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +21 -21
  32. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +6 -6
  33. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
  34. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
  35. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
  36. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
  37. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
  38. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
  39. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
  40. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
  41. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +338 -109
  42. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
  43. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +16 -0
  44. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
  45. package/dist/bubbles/service-bubble/apify/apify.d.ts +10 -10
  46. package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
  47. package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
  48. package/dist/bubbles/service-bubble/apify/index.js +3 -0
  49. package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
  50. package/dist/bubbles/service-bubble/apify/types.js +1 -2
  51. package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
  52. package/dist/bubbles/service-bubble/gmail.d.ts +678 -184
  53. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
  54. package/dist/bubbles/service-bubble/gmail.js +435 -7
  55. package/dist/bubbles/service-bubble/gmail.js.map +1 -1
  56. package/dist/bubbles/service-bubble/google-calendar.d.ts +60 -60
  57. package/dist/bubbles/service-bubble/google-drive.d.ts +301 -72
  58. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  59. package/dist/bubbles/service-bubble/google-drive.js +65 -75
  60. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  61. package/dist/bubbles/service-bubble/google-sheets.d.ts +76 -76
  62. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  63. package/dist/bubbles/service-bubble/hello-world.js +2 -2
  64. package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
  65. package/dist/bubbles/service-bubble/http.d.ts +10 -10
  66. package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
  67. package/dist/bubbles/service-bubble/resend.d.ts +16 -16
  68. package/dist/bubbles/service-bubble/slack.d.ts +469 -469
  69. package/dist/bubbles/service-bubble/storage.d.ts +36 -36
  70. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  71. package/dist/bubbles/service-bubble/storage.js +16 -5
  72. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  73. package/dist/bubbles/service-bubble/x-twitter.d.ts +814 -0
  74. package/dist/bubbles/service-bubble/x-twitter.d.ts.map +1 -0
  75. package/dist/bubbles/service-bubble/x-twitter.js +445 -0
  76. package/dist/bubbles/service-bubble/x-twitter.js.map +1 -0
  77. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
  78. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +10 -10
  79. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  80. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +17 -9
  81. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  82. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +86 -86
  83. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +134 -134
  84. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +69 -64
  85. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
  86. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
  87. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
  88. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +6 -6
  89. package/dist/bubbles/tool-bubble/research-agent-tool.js +4 -4
  90. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  91. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  92. package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
  93. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +10 -10
  94. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  95. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +12 -12
  96. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +11 -10
  97. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
  98. package/dist/bubbles/tool-bubble/web-search-tool.js +5 -1
  99. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
  100. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
  101. package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
  102. package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
  103. package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
  104. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +47 -36
  105. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -1
  106. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +91 -65
  107. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -1
  108. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  109. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +70 -70
  110. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +66 -66
  111. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +56 -56
  112. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  113. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  114. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +44 -44
  115. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
  116. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
  117. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
  118. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
  119. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +58 -58
  120. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +18 -18
  121. package/dist/bubbles.json +69 -54
  122. package/dist/index.d.ts +4 -2
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +2 -1
  125. package/dist/index.js.map +1 -1
  126. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  127. package/dist/logging/BubbleLogger.js +20 -13
  128. package/dist/logging/BubbleLogger.js.map +1 -1
  129. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  130. package/dist/logging/StreamingBubbleLogger.js +5 -5
  131. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  132. package/dist/test-gm.d.ts +10 -0
  133. package/dist/test-gm.d.ts.map +1 -0
  134. package/dist/test-gm.js +95 -0
  135. package/dist/test-gm.js.map +1 -0
  136. package/dist/types/base-bubble-class.d.ts +1 -1
  137. package/dist/types/base-bubble-class.d.ts.map +1 -1
  138. package/dist/types/base-bubble-class.js +29 -21
  139. package/dist/types/base-bubble-class.js.map +1 -1
  140. package/dist/types/bubble.d.ts +1 -10
  141. package/dist/types/bubble.d.ts.map +1 -1
  142. package/dist/types/bubble.js +1 -1
  143. package/dist/types/bubble.js.map +1 -1
  144. package/dist/types/service-bubble-class.d.ts +1 -1
  145. package/dist/types/service-bubble-class.d.ts.map +1 -1
  146. package/dist/types/tool-bubble-class.d.ts +1 -1
  147. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  148. package/dist/types/tool-bubble-class.js +0 -2
  149. package/dist/types/tool-bubble-class.js.map +1 -1
  150. package/dist/types/workflow-bubble-class.d.ts +1 -1
  151. package/dist/types/workflow-bubble-class.d.ts.map +1 -1
  152. package/dist/utils/agent-formatter.d.ts.map +1 -1
  153. package/dist/utils/agent-formatter.js +2 -2
  154. package/dist/utils/agent-formatter.js.map +1 -1
  155. package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
  156. package/dist/utils/bubbleflow-validation.js +89 -32
  157. package/dist/utils/bubbleflow-validation.js.map +1 -1
  158. package/dist/utils/error-sanitizer.d.ts +12 -0
  159. package/dist/utils/error-sanitizer.d.ts.map +1 -0
  160. package/dist/utils/error-sanitizer.js +77 -0
  161. package/dist/utils/error-sanitizer.js.map +1 -0
  162. package/package.json +4 -4
  163. package/dist/bubble-trigger/index.d.ts +0 -2
  164. package/dist/bubble-trigger/index.d.ts.map +0 -1
  165. package/dist/bubble-trigger/index.js +0 -2
  166. package/dist/bubble-trigger/index.js.map +0 -1
  167. package/dist/bubble-trigger/types.d.ts +0 -87
  168. package/dist/bubble-trigger/types.d.ts.map +0 -1
  169. package/dist/bubble-trigger/types.js +0 -14
  170. package/dist/bubble-trigger/types.js.map +0 -1
  171. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
  172. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
  173. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
  174. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
  175. package/dist/bubbles/service-bubble/apify.d.ts +0 -136
  176. package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
  177. package/dist/bubbles/service-bubble/apify.js +0 -282
  178. package/dist/bubbles/service-bubble/apify.js.map +0 -1
  179. package/dist/types/ai-models.d.ts +0 -4
  180. package/dist/types/ai-models.d.ts.map +0 -1
  181. package/dist/types/ai-models.js +0 -20
  182. package/dist/types/ai-models.js.map +0 -1
  183. package/dist/types/api-scraper.schema.d.ts +0 -453
  184. package/dist/types/api-scraper.schema.d.ts.map +0 -1
  185. package/dist/types/api-scraper.schema.js +0 -160
  186. package/dist/types/api-scraper.schema.js.map +0 -1
@@ -42,11 +42,13 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
42
42
  include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
43
43
  max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
44
44
  page_token: z.ZodOptional<z.ZodString>;
45
+ include_details: z.ZodDefault<z.ZodBoolean>;
45
46
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
46
47
  }, "strip", z.ZodTypeAny, {
47
48
  operation: "list_emails";
48
49
  max_results: number;
49
50
  include_spam_trash: boolean;
51
+ include_details: boolean;
50
52
  credentials?: Partial<Record<CredentialType, string>> | undefined;
51
53
  query?: string | undefined;
52
54
  label_ids?: string[] | undefined;
@@ -59,6 +61,7 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
59
61
  label_ids?: string[] | undefined;
60
62
  include_spam_trash?: boolean | undefined;
61
63
  page_token?: string | undefined;
64
+ include_details?: boolean | undefined;
62
65
  }>, z.ZodObject<{
63
66
  operation: z.ZodLiteral<"get_email">;
64
67
  message_id: z.ZodString;
@@ -84,14 +87,14 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
84
87
  include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
85
88
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
86
89
  }, "strip", z.ZodTypeAny, {
87
- operation: "search_emails";
88
90
  query: string;
91
+ operation: "search_emails";
89
92
  max_results: number;
90
93
  include_spam_trash: boolean;
91
94
  credentials?: Partial<Record<CredentialType, string>> | undefined;
92
95
  }, {
93
- operation: "search_emails";
94
96
  query: string;
97
+ operation: "search_emails";
95
98
  credentials?: Partial<Record<CredentialType, string>> | undefined;
96
99
  max_results?: number | undefined;
97
100
  include_spam_trash?: boolean | undefined;
@@ -233,6 +236,75 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
233
236
  label_ids?: string[] | undefined;
234
237
  include_spam_trash?: boolean | undefined;
235
238
  page_token?: string | undefined;
239
+ }>, z.ZodObject<{
240
+ operation: z.ZodLiteral<"list_labels">;
241
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ operation: "list_labels";
244
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
245
+ }, {
246
+ operation: "list_labels";
247
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
248
+ }>, z.ZodObject<{
249
+ operation: z.ZodLiteral<"create_label">;
250
+ name: z.ZodString;
251
+ label_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>>;
252
+ message_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "hide"]>>>;
253
+ background_color: z.ZodOptional<z.ZodString>;
254
+ text_color: z.ZodOptional<z.ZodString>;
255
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ name: string;
258
+ operation: "create_label";
259
+ label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide";
260
+ message_list_visibility: "show" | "hide";
261
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
262
+ background_color?: string | undefined;
263
+ text_color?: string | undefined;
264
+ }, {
265
+ name: string;
266
+ operation: "create_label";
267
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
268
+ label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
269
+ message_list_visibility?: "show" | "hide" | undefined;
270
+ background_color?: string | undefined;
271
+ text_color?: string | undefined;
272
+ }>, z.ZodObject<{
273
+ operation: z.ZodLiteral<"modify_message_labels">;
274
+ message_id: z.ZodString;
275
+ add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
+ remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ operation: "modify_message_labels";
280
+ message_id: string;
281
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
282
+ add_label_ids?: string[] | undefined;
283
+ remove_label_ids?: string[] | undefined;
284
+ }, {
285
+ operation: "modify_message_labels";
286
+ message_id: string;
287
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
288
+ add_label_ids?: string[] | undefined;
289
+ remove_label_ids?: string[] | undefined;
290
+ }>, z.ZodObject<{
291
+ operation: z.ZodLiteral<"modify_thread_labels">;
292
+ thread_id: z.ZodString;
293
+ add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
294
+ remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
295
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ operation: "modify_thread_labels";
298
+ thread_id: string;
299
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
300
+ add_label_ids?: string[] | undefined;
301
+ remove_label_ids?: string[] | undefined;
302
+ }, {
303
+ operation: "modify_thread_labels";
304
+ thread_id: string;
305
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
306
+ add_label_ids?: string[] | undefined;
307
+ remove_label_ids?: string[] | undefined;
236
308
  }>]>;
237
309
  declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
238
310
  operation: z.ZodLiteral<"send_email">;
@@ -241,14 +313,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
241
313
  thread_id: z.ZodOptional<z.ZodString>;
242
314
  error: z.ZodString;
243
315
  }, "strip", z.ZodTypeAny, {
244
- error: string;
245
316
  success: boolean;
317
+ error: string;
246
318
  operation: "send_email";
247
319
  thread_id?: string | undefined;
248
320
  message_id?: string | undefined;
249
321
  }, {
250
- error: string;
251
322
  success: boolean;
323
+ error: string;
252
324
  operation: "send_email";
253
325
  thread_id?: string | undefined;
254
326
  message_id?: string | undefined;
@@ -257,9 +329,10 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
257
329
  success: z.ZodBoolean;
258
330
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
259
331
  id: z.ZodString;
260
- threadId: z.ZodString;
332
+ threadId: z.ZodOptional<z.ZodString>;
261
333
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
262
334
  snippet: z.ZodOptional<z.ZodString>;
335
+ textContent: z.ZodOptional<z.ZodString>;
263
336
  historyId: z.ZodOptional<z.ZodString>;
264
337
  internalDate: z.ZodOptional<z.ZodString>;
265
338
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -317,13 +390,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
317
390
  }>>;
318
391
  }, "strip", z.ZodTypeAny, {
319
392
  id: string;
320
- threadId: string;
321
- raw?: string | undefined;
393
+ threadId?: string | undefined;
322
394
  labelIds?: string[] | undefined;
323
395
  snippet?: string | undefined;
396
+ textContent?: string | undefined;
324
397
  historyId?: string | undefined;
325
398
  internalDate?: string | undefined;
326
399
  sizeEstimate?: number | undefined;
400
+ raw?: string | undefined;
327
401
  payload?: {
328
402
  mimeType?: string | undefined;
329
403
  headers?: {
@@ -339,13 +413,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
339
413
  } | undefined;
340
414
  }, {
341
415
  id: string;
342
- threadId: string;
343
- raw?: string | undefined;
416
+ threadId?: string | undefined;
344
417
  labelIds?: string[] | undefined;
345
418
  snippet?: string | undefined;
419
+ textContent?: string | undefined;
346
420
  historyId?: string | undefined;
347
421
  internalDate?: string | undefined;
348
422
  sizeEstimate?: number | undefined;
423
+ raw?: string | undefined;
349
424
  payload?: {
350
425
  mimeType?: string | undefined;
351
426
  headers?: {
@@ -364,18 +439,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
364
439
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
365
440
  error: z.ZodString;
366
441
  }, "strip", z.ZodTypeAny, {
367
- error: string;
368
442
  success: boolean;
443
+ error: string;
369
444
  operation: "list_emails";
370
445
  messages?: {
371
446
  id: string;
372
- threadId: string;
373
- raw?: string | undefined;
447
+ threadId?: string | undefined;
374
448
  labelIds?: string[] | undefined;
375
449
  snippet?: string | undefined;
450
+ textContent?: string | undefined;
376
451
  historyId?: string | undefined;
377
452
  internalDate?: string | undefined;
378
453
  sizeEstimate?: number | undefined;
454
+ raw?: string | undefined;
379
455
  payload?: {
380
456
  mimeType?: string | undefined;
381
457
  headers?: {
@@ -393,18 +469,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
393
469
  next_page_token?: string | undefined;
394
470
  result_size_estimate?: number | undefined;
395
471
  }, {
396
- error: string;
397
472
  success: boolean;
473
+ error: string;
398
474
  operation: "list_emails";
399
475
  messages?: {
400
476
  id: string;
401
- threadId: string;
402
- raw?: string | undefined;
477
+ threadId?: string | undefined;
403
478
  labelIds?: string[] | undefined;
404
479
  snippet?: string | undefined;
480
+ textContent?: string | undefined;
405
481
  historyId?: string | undefined;
406
482
  internalDate?: string | undefined;
407
483
  sizeEstimate?: number | undefined;
484
+ raw?: string | undefined;
408
485
  payload?: {
409
486
  mimeType?: string | undefined;
410
487
  headers?: {
@@ -426,9 +503,10 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
426
503
  success: z.ZodBoolean;
427
504
  message: z.ZodOptional<z.ZodObject<{
428
505
  id: z.ZodString;
429
- threadId: z.ZodString;
506
+ threadId: z.ZodOptional<z.ZodString>;
430
507
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
431
508
  snippet: z.ZodOptional<z.ZodString>;
509
+ textContent: z.ZodOptional<z.ZodString>;
432
510
  historyId: z.ZodOptional<z.ZodString>;
433
511
  internalDate: z.ZodOptional<z.ZodString>;
434
512
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -486,13 +564,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
486
564
  }>>;
487
565
  }, "strip", z.ZodTypeAny, {
488
566
  id: string;
489
- threadId: string;
490
- raw?: string | undefined;
567
+ threadId?: string | undefined;
491
568
  labelIds?: string[] | undefined;
492
569
  snippet?: string | undefined;
570
+ textContent?: string | undefined;
493
571
  historyId?: string | undefined;
494
572
  internalDate?: string | undefined;
495
573
  sizeEstimate?: number | undefined;
574
+ raw?: string | undefined;
496
575
  payload?: {
497
576
  mimeType?: string | undefined;
498
577
  headers?: {
@@ -508,13 +587,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
508
587
  } | undefined;
509
588
  }, {
510
589
  id: string;
511
- threadId: string;
512
- raw?: string | undefined;
590
+ threadId?: string | undefined;
513
591
  labelIds?: string[] | undefined;
514
592
  snippet?: string | undefined;
593
+ textContent?: string | undefined;
515
594
  historyId?: string | undefined;
516
595
  internalDate?: string | undefined;
517
596
  sizeEstimate?: number | undefined;
597
+ raw?: string | undefined;
518
598
  payload?: {
519
599
  mimeType?: string | undefined;
520
600
  headers?: {
@@ -531,18 +611,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
531
611
  }>>;
532
612
  error: z.ZodString;
533
613
  }, "strip", z.ZodTypeAny, {
534
- error: string;
535
614
  success: boolean;
615
+ error: string;
536
616
  operation: "get_email";
537
617
  message?: {
538
618
  id: string;
539
- threadId: string;
540
- raw?: string | undefined;
619
+ threadId?: string | undefined;
541
620
  labelIds?: string[] | undefined;
542
621
  snippet?: string | undefined;
622
+ textContent?: string | undefined;
543
623
  historyId?: string | undefined;
544
624
  internalDate?: string | undefined;
545
625
  sizeEstimate?: number | undefined;
626
+ raw?: string | undefined;
546
627
  payload?: {
547
628
  mimeType?: string | undefined;
548
629
  headers?: {
@@ -558,18 +639,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
558
639
  } | undefined;
559
640
  } | undefined;
560
641
  }, {
561
- error: string;
562
642
  success: boolean;
643
+ error: string;
563
644
  operation: "get_email";
564
645
  message?: {
565
646
  id: string;
566
- threadId: string;
567
- raw?: string | undefined;
647
+ threadId?: string | undefined;
568
648
  labelIds?: string[] | undefined;
569
649
  snippet?: string | undefined;
650
+ textContent?: string | undefined;
570
651
  historyId?: string | undefined;
571
652
  internalDate?: string | undefined;
572
653
  sizeEstimate?: number | undefined;
654
+ raw?: string | undefined;
573
655
  payload?: {
574
656
  mimeType?: string | undefined;
575
657
  headers?: {
@@ -589,9 +671,10 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
589
671
  success: z.ZodBoolean;
590
672
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
591
673
  id: z.ZodString;
592
- threadId: z.ZodString;
674
+ threadId: z.ZodOptional<z.ZodString>;
593
675
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
594
676
  snippet: z.ZodOptional<z.ZodString>;
677
+ textContent: z.ZodOptional<z.ZodString>;
595
678
  historyId: z.ZodOptional<z.ZodString>;
596
679
  internalDate: z.ZodOptional<z.ZodString>;
597
680
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -649,13 +732,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
649
732
  }>>;
650
733
  }, "strip", z.ZodTypeAny, {
651
734
  id: string;
652
- threadId: string;
653
- raw?: string | undefined;
735
+ threadId?: string | undefined;
654
736
  labelIds?: string[] | undefined;
655
737
  snippet?: string | undefined;
738
+ textContent?: string | undefined;
656
739
  historyId?: string | undefined;
657
740
  internalDate?: string | undefined;
658
741
  sizeEstimate?: number | undefined;
742
+ raw?: string | undefined;
659
743
  payload?: {
660
744
  mimeType?: string | undefined;
661
745
  headers?: {
@@ -671,13 +755,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
671
755
  } | undefined;
672
756
  }, {
673
757
  id: string;
674
- threadId: string;
675
- raw?: string | undefined;
758
+ threadId?: string | undefined;
676
759
  labelIds?: string[] | undefined;
677
760
  snippet?: string | undefined;
761
+ textContent?: string | undefined;
678
762
  historyId?: string | undefined;
679
763
  internalDate?: string | undefined;
680
764
  sizeEstimate?: number | undefined;
765
+ raw?: string | undefined;
681
766
  payload?: {
682
767
  mimeType?: string | undefined;
683
768
  headers?: {
@@ -695,18 +780,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
695
780
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
696
781
  error: z.ZodString;
697
782
  }, "strip", z.ZodTypeAny, {
698
- error: string;
699
783
  success: boolean;
784
+ error: string;
700
785
  operation: "search_emails";
701
786
  messages?: {
702
787
  id: string;
703
- threadId: string;
704
- raw?: string | undefined;
788
+ threadId?: string | undefined;
705
789
  labelIds?: string[] | undefined;
706
790
  snippet?: string | undefined;
791
+ textContent?: string | undefined;
707
792
  historyId?: string | undefined;
708
793
  internalDate?: string | undefined;
709
794
  sizeEstimate?: number | undefined;
795
+ raw?: string | undefined;
710
796
  payload?: {
711
797
  mimeType?: string | undefined;
712
798
  headers?: {
@@ -723,18 +809,19 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
723
809
  }[] | undefined;
724
810
  result_size_estimate?: number | undefined;
725
811
  }, {
726
- error: string;
727
812
  success: boolean;
813
+ error: string;
728
814
  operation: "search_emails";
729
815
  messages?: {
730
816
  id: string;
731
- threadId: string;
732
- raw?: string | undefined;
817
+ threadId?: string | undefined;
733
818
  labelIds?: string[] | undefined;
734
819
  snippet?: string | undefined;
820
+ textContent?: string | undefined;
735
821
  historyId?: string | undefined;
736
822
  internalDate?: string | undefined;
737
823
  sizeEstimate?: number | undefined;
824
+ raw?: string | undefined;
738
825
  payload?: {
739
826
  mimeType?: string | undefined;
740
827
  headers?: {
@@ -756,13 +843,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
756
843
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
757
844
  error: z.ZodString;
758
845
  }, "strip", z.ZodTypeAny, {
759
- error: string;
760
846
  success: boolean;
847
+ error: string;
761
848
  operation: "mark_as_read";
762
849
  modified_messages?: string[] | undefined;
763
850
  }, {
764
- error: string;
765
851
  success: boolean;
852
+ error: string;
766
853
  operation: "mark_as_read";
767
854
  modified_messages?: string[] | undefined;
768
855
  }>, z.ZodObject<{
@@ -771,13 +858,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
771
858
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
772
859
  error: z.ZodString;
773
860
  }, "strip", z.ZodTypeAny, {
774
- error: string;
775
861
  success: boolean;
862
+ error: string;
776
863
  operation: "mark_as_unread";
777
864
  modified_messages?: string[] | undefined;
778
865
  }, {
779
- error: string;
780
866
  success: boolean;
867
+ error: string;
781
868
  operation: "mark_as_unread";
782
869
  modified_messages?: string[] | undefined;
783
870
  }>, z.ZodObject<{
@@ -787,9 +874,10 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
787
874
  id: z.ZodString;
788
875
  message: z.ZodObject<{
789
876
  id: z.ZodString;
790
- threadId: z.ZodString;
877
+ threadId: z.ZodOptional<z.ZodString>;
791
878
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
792
879
  snippet: z.ZodOptional<z.ZodString>;
880
+ textContent: z.ZodOptional<z.ZodString>;
793
881
  historyId: z.ZodOptional<z.ZodString>;
794
882
  internalDate: z.ZodOptional<z.ZodString>;
795
883
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -847,13 +935,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
847
935
  }>>;
848
936
  }, "strip", z.ZodTypeAny, {
849
937
  id: string;
850
- threadId: string;
851
- raw?: string | undefined;
938
+ threadId?: string | undefined;
852
939
  labelIds?: string[] | undefined;
853
940
  snippet?: string | undefined;
941
+ textContent?: string | undefined;
854
942
  historyId?: string | undefined;
855
943
  internalDate?: string | undefined;
856
944
  sizeEstimate?: number | undefined;
945
+ raw?: string | undefined;
857
946
  payload?: {
858
947
  mimeType?: string | undefined;
859
948
  headers?: {
@@ -869,13 +958,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
869
958
  } | undefined;
870
959
  }, {
871
960
  id: string;
872
- threadId: string;
873
- raw?: string | undefined;
961
+ threadId?: string | undefined;
874
962
  labelIds?: string[] | undefined;
875
963
  snippet?: string | undefined;
964
+ textContent?: string | undefined;
876
965
  historyId?: string | undefined;
877
966
  internalDate?: string | undefined;
878
967
  sizeEstimate?: number | undefined;
968
+ raw?: string | undefined;
879
969
  payload?: {
880
970
  mimeType?: string | undefined;
881
971
  headers?: {
@@ -893,13 +983,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
893
983
  }, "strip", z.ZodTypeAny, {
894
984
  message: {
895
985
  id: string;
896
- threadId: string;
897
- raw?: string | undefined;
986
+ threadId?: string | undefined;
898
987
  labelIds?: string[] | undefined;
899
988
  snippet?: string | undefined;
989
+ textContent?: string | undefined;
900
990
  historyId?: string | undefined;
901
991
  internalDate?: string | undefined;
902
992
  sizeEstimate?: number | undefined;
993
+ raw?: string | undefined;
903
994
  payload?: {
904
995
  mimeType?: string | undefined;
905
996
  headers?: {
@@ -918,13 +1009,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
918
1009
  }, {
919
1010
  message: {
920
1011
  id: string;
921
- threadId: string;
922
- raw?: string | undefined;
1012
+ threadId?: string | undefined;
923
1013
  labelIds?: string[] | undefined;
924
1014
  snippet?: string | undefined;
1015
+ textContent?: string | undefined;
925
1016
  historyId?: string | undefined;
926
1017
  internalDate?: string | undefined;
927
1018
  sizeEstimate?: number | undefined;
1019
+ raw?: string | undefined;
928
1020
  payload?: {
929
1021
  mimeType?: string | undefined;
930
1022
  headers?: {
@@ -943,19 +1035,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
943
1035
  }>>;
944
1036
  error: z.ZodString;
945
1037
  }, "strip", z.ZodTypeAny, {
946
- error: string;
947
1038
  success: boolean;
1039
+ error: string;
948
1040
  operation: "create_draft";
949
1041
  draft?: {
950
1042
  message: {
951
1043
  id: string;
952
- threadId: string;
953
- raw?: string | undefined;
1044
+ threadId?: string | undefined;
954
1045
  labelIds?: string[] | undefined;
955
1046
  snippet?: string | undefined;
1047
+ textContent?: string | undefined;
956
1048
  historyId?: string | undefined;
957
1049
  internalDate?: string | undefined;
958
1050
  sizeEstimate?: number | undefined;
1051
+ raw?: string | undefined;
959
1052
  payload?: {
960
1053
  mimeType?: string | undefined;
961
1054
  headers?: {
@@ -973,19 +1066,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
973
1066
  id: string;
974
1067
  } | undefined;
975
1068
  }, {
976
- error: string;
977
1069
  success: boolean;
1070
+ error: string;
978
1071
  operation: "create_draft";
979
1072
  draft?: {
980
1073
  message: {
981
1074
  id: string;
982
- threadId: string;
983
- raw?: string | undefined;
1075
+ threadId?: string | undefined;
984
1076
  labelIds?: string[] | undefined;
985
1077
  snippet?: string | undefined;
1078
+ textContent?: string | undefined;
986
1079
  historyId?: string | undefined;
987
1080
  internalDate?: string | undefined;
988
1081
  sizeEstimate?: number | undefined;
1082
+ raw?: string | undefined;
989
1083
  payload?: {
990
1084
  mimeType?: string | undefined;
991
1085
  headers?: {
@@ -1009,14 +1103,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1009
1103
  thread_id: z.ZodOptional<z.ZodString>;
1010
1104
  error: z.ZodString;
1011
1105
  }, "strip", z.ZodTypeAny, {
1012
- error: string;
1013
1106
  success: boolean;
1107
+ error: string;
1014
1108
  operation: "send_draft";
1015
1109
  thread_id?: string | undefined;
1016
1110
  message_id?: string | undefined;
1017
1111
  }, {
1018
- error: string;
1019
1112
  success: boolean;
1113
+ error: string;
1020
1114
  operation: "send_draft";
1021
1115
  thread_id?: string | undefined;
1022
1116
  message_id?: string | undefined;
@@ -1027,9 +1121,10 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1027
1121
  id: z.ZodString;
1028
1122
  message: z.ZodObject<{
1029
1123
  id: z.ZodString;
1030
- threadId: z.ZodString;
1124
+ threadId: z.ZodOptional<z.ZodString>;
1031
1125
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1032
1126
  snippet: z.ZodOptional<z.ZodString>;
1127
+ textContent: z.ZodOptional<z.ZodString>;
1033
1128
  historyId: z.ZodOptional<z.ZodString>;
1034
1129
  internalDate: z.ZodOptional<z.ZodString>;
1035
1130
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -1087,13 +1182,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1087
1182
  }>>;
1088
1183
  }, "strip", z.ZodTypeAny, {
1089
1184
  id: string;
1090
- threadId: string;
1091
- raw?: string | undefined;
1185
+ threadId?: string | undefined;
1092
1186
  labelIds?: string[] | undefined;
1093
1187
  snippet?: string | undefined;
1188
+ textContent?: string | undefined;
1094
1189
  historyId?: string | undefined;
1095
1190
  internalDate?: string | undefined;
1096
1191
  sizeEstimate?: number | undefined;
1192
+ raw?: string | undefined;
1097
1193
  payload?: {
1098
1194
  mimeType?: string | undefined;
1099
1195
  headers?: {
@@ -1109,13 +1205,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1109
1205
  } | undefined;
1110
1206
  }, {
1111
1207
  id: string;
1112
- threadId: string;
1113
- raw?: string | undefined;
1208
+ threadId?: string | undefined;
1114
1209
  labelIds?: string[] | undefined;
1115
1210
  snippet?: string | undefined;
1211
+ textContent?: string | undefined;
1116
1212
  historyId?: string | undefined;
1117
1213
  internalDate?: string | undefined;
1118
1214
  sizeEstimate?: number | undefined;
1215
+ raw?: string | undefined;
1119
1216
  payload?: {
1120
1217
  mimeType?: string | undefined;
1121
1218
  headers?: {
@@ -1133,13 +1230,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1133
1230
  }, "strip", z.ZodTypeAny, {
1134
1231
  message: {
1135
1232
  id: string;
1136
- threadId: string;
1137
- raw?: string | undefined;
1233
+ threadId?: string | undefined;
1138
1234
  labelIds?: string[] | undefined;
1139
1235
  snippet?: string | undefined;
1236
+ textContent?: string | undefined;
1140
1237
  historyId?: string | undefined;
1141
1238
  internalDate?: string | undefined;
1142
1239
  sizeEstimate?: number | undefined;
1240
+ raw?: string | undefined;
1143
1241
  payload?: {
1144
1242
  mimeType?: string | undefined;
1145
1243
  headers?: {
@@ -1158,13 +1256,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1158
1256
  }, {
1159
1257
  message: {
1160
1258
  id: string;
1161
- threadId: string;
1162
- raw?: string | undefined;
1259
+ threadId?: string | undefined;
1163
1260
  labelIds?: string[] | undefined;
1164
1261
  snippet?: string | undefined;
1262
+ textContent?: string | undefined;
1165
1263
  historyId?: string | undefined;
1166
1264
  internalDate?: string | undefined;
1167
1265
  sizeEstimate?: number | undefined;
1266
+ raw?: string | undefined;
1168
1267
  payload?: {
1169
1268
  mimeType?: string | undefined;
1170
1269
  headers?: {
@@ -1185,21 +1284,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1185
1284
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
1186
1285
  error: z.ZodString;
1187
1286
  }, "strip", z.ZodTypeAny, {
1188
- error: string;
1189
1287
  success: boolean;
1288
+ error: string;
1190
1289
  operation: "list_drafts";
1191
1290
  next_page_token?: string | undefined;
1192
1291
  result_size_estimate?: number | undefined;
1193
1292
  drafts?: {
1194
1293
  message: {
1195
1294
  id: string;
1196
- threadId: string;
1197
- raw?: string | undefined;
1295
+ threadId?: string | undefined;
1198
1296
  labelIds?: string[] | undefined;
1199
1297
  snippet?: string | undefined;
1298
+ textContent?: string | undefined;
1200
1299
  historyId?: string | undefined;
1201
1300
  internalDate?: string | undefined;
1202
1301
  sizeEstimate?: number | undefined;
1302
+ raw?: string | undefined;
1203
1303
  payload?: {
1204
1304
  mimeType?: string | undefined;
1205
1305
  headers?: {
@@ -1217,21 +1317,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1217
1317
  id: string;
1218
1318
  }[] | undefined;
1219
1319
  }, {
1220
- error: string;
1221
1320
  success: boolean;
1321
+ error: string;
1222
1322
  operation: "list_drafts";
1223
1323
  next_page_token?: string | undefined;
1224
1324
  result_size_estimate?: number | undefined;
1225
1325
  drafts?: {
1226
1326
  message: {
1227
1327
  id: string;
1228
- threadId: string;
1229
- raw?: string | undefined;
1328
+ threadId?: string | undefined;
1230
1329
  labelIds?: string[] | undefined;
1231
1330
  snippet?: string | undefined;
1331
+ textContent?: string | undefined;
1232
1332
  historyId?: string | undefined;
1233
1333
  internalDate?: string | undefined;
1234
1334
  sizeEstimate?: number | undefined;
1335
+ raw?: string | undefined;
1235
1336
  payload?: {
1236
1337
  mimeType?: string | undefined;
1237
1338
  headers?: {
@@ -1254,13 +1355,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1254
1355
  deleted_message_id: z.ZodOptional<z.ZodString>;
1255
1356
  error: z.ZodString;
1256
1357
  }, "strip", z.ZodTypeAny, {
1257
- error: string;
1258
1358
  success: boolean;
1359
+ error: string;
1259
1360
  operation: "delete_email";
1260
1361
  deleted_message_id?: string | undefined;
1261
1362
  }, {
1262
- error: string;
1263
1363
  success: boolean;
1364
+ error: string;
1264
1365
  operation: "delete_email";
1265
1366
  deleted_message_id?: string | undefined;
1266
1367
  }>, z.ZodObject<{
@@ -1269,13 +1370,13 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1269
1370
  trashed_message_id: z.ZodOptional<z.ZodString>;
1270
1371
  error: z.ZodString;
1271
1372
  }, "strip", z.ZodTypeAny, {
1272
- error: string;
1273
1373
  success: boolean;
1374
+ error: string;
1274
1375
  operation: "trash_email";
1275
1376
  trashed_message_id?: string | undefined;
1276
1377
  }, {
1277
- error: string;
1278
1378
  success: boolean;
1379
+ error: string;
1279
1380
  operation: "trash_email";
1280
1381
  trashed_message_id?: string | undefined;
1281
1382
  }>, z.ZodObject<{
@@ -1286,9 +1387,10 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1286
1387
  historyId: z.ZodOptional<z.ZodString>;
1287
1388
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1288
1389
  id: z.ZodString;
1289
- threadId: z.ZodString;
1390
+ threadId: z.ZodOptional<z.ZodString>;
1290
1391
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1291
1392
  snippet: z.ZodOptional<z.ZodString>;
1393
+ textContent: z.ZodOptional<z.ZodString>;
1292
1394
  historyId: z.ZodOptional<z.ZodString>;
1293
1395
  internalDate: z.ZodOptional<z.ZodString>;
1294
1396
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -1346,13 +1448,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1346
1448
  }>>;
1347
1449
  }, "strip", z.ZodTypeAny, {
1348
1450
  id: string;
1349
- threadId: string;
1350
- raw?: string | undefined;
1451
+ threadId?: string | undefined;
1351
1452
  labelIds?: string[] | undefined;
1352
1453
  snippet?: string | undefined;
1454
+ textContent?: string | undefined;
1353
1455
  historyId?: string | undefined;
1354
1456
  internalDate?: string | undefined;
1355
1457
  sizeEstimate?: number | undefined;
1458
+ raw?: string | undefined;
1356
1459
  payload?: {
1357
1460
  mimeType?: string | undefined;
1358
1461
  headers?: {
@@ -1368,13 +1471,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1368
1471
  } | undefined;
1369
1472
  }, {
1370
1473
  id: string;
1371
- threadId: string;
1372
- raw?: string | undefined;
1474
+ threadId?: string | undefined;
1373
1475
  labelIds?: string[] | undefined;
1374
1476
  snippet?: string | undefined;
1477
+ textContent?: string | undefined;
1375
1478
  historyId?: string | undefined;
1376
1479
  internalDate?: string | undefined;
1377
1480
  sizeEstimate?: number | undefined;
1481
+ raw?: string | undefined;
1378
1482
  payload?: {
1379
1483
  mimeType?: string | undefined;
1380
1484
  headers?: {
@@ -1394,13 +1498,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1394
1498
  id: string;
1395
1499
  messages?: {
1396
1500
  id: string;
1397
- threadId: string;
1398
- raw?: string | undefined;
1501
+ threadId?: string | undefined;
1399
1502
  labelIds?: string[] | undefined;
1400
1503
  snippet?: string | undefined;
1504
+ textContent?: string | undefined;
1401
1505
  historyId?: string | undefined;
1402
1506
  internalDate?: string | undefined;
1403
1507
  sizeEstimate?: number | undefined;
1508
+ raw?: string | undefined;
1404
1509
  payload?: {
1405
1510
  mimeType?: string | undefined;
1406
1511
  headers?: {
@@ -1421,13 +1526,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1421
1526
  id: string;
1422
1527
  messages?: {
1423
1528
  id: string;
1424
- threadId: string;
1425
- raw?: string | undefined;
1529
+ threadId?: string | undefined;
1426
1530
  labelIds?: string[] | undefined;
1427
1531
  snippet?: string | undefined;
1532
+ textContent?: string | undefined;
1428
1533
  historyId?: string | undefined;
1429
1534
  internalDate?: string | undefined;
1430
1535
  sizeEstimate?: number | undefined;
1536
+ raw?: string | undefined;
1431
1537
  payload?: {
1432
1538
  mimeType?: string | undefined;
1433
1539
  headers?: {
@@ -1449,8 +1555,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1449
1555
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
1450
1556
  error: z.ZodString;
1451
1557
  }, "strip", z.ZodTypeAny, {
1452
- error: string;
1453
1558
  success: boolean;
1559
+ error: string;
1454
1560
  operation: "list_threads";
1455
1561
  next_page_token?: string | undefined;
1456
1562
  result_size_estimate?: number | undefined;
@@ -1458,13 +1564,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1458
1564
  id: string;
1459
1565
  messages?: {
1460
1566
  id: string;
1461
- threadId: string;
1462
- raw?: string | undefined;
1567
+ threadId?: string | undefined;
1463
1568
  labelIds?: string[] | undefined;
1464
1569
  snippet?: string | undefined;
1570
+ textContent?: string | undefined;
1465
1571
  historyId?: string | undefined;
1466
1572
  internalDate?: string | undefined;
1467
1573
  sizeEstimate?: number | undefined;
1574
+ raw?: string | undefined;
1468
1575
  payload?: {
1469
1576
  mimeType?: string | undefined;
1470
1577
  headers?: {
@@ -1483,8 +1590,8 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1483
1590
  historyId?: string | undefined;
1484
1591
  }[] | undefined;
1485
1592
  }, {
1486
- error: string;
1487
1593
  success: boolean;
1594
+ error: string;
1488
1595
  operation: "list_threads";
1489
1596
  next_page_token?: string | undefined;
1490
1597
  result_size_estimate?: number | undefined;
@@ -1492,13 +1599,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1492
1599
  id: string;
1493
1600
  messages?: {
1494
1601
  id: string;
1495
- threadId: string;
1496
- raw?: string | undefined;
1602
+ threadId?: string | undefined;
1497
1603
  labelIds?: string[] | undefined;
1498
1604
  snippet?: string | undefined;
1605
+ textContent?: string | undefined;
1499
1606
  historyId?: string | undefined;
1500
1607
  internalDate?: string | undefined;
1501
1608
  sizeEstimate?: number | undefined;
1609
+ raw?: string | undefined;
1502
1610
  payload?: {
1503
1611
  mimeType?: string | undefined;
1504
1612
  headers?: {
@@ -1516,6 +1624,129 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1516
1624
  snippet?: string | undefined;
1517
1625
  historyId?: string | undefined;
1518
1626
  }[] | undefined;
1627
+ }>, z.ZodObject<{
1628
+ operation: z.ZodLiteral<"list_labels">;
1629
+ success: z.ZodBoolean;
1630
+ labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
1631
+ id: z.ZodString;
1632
+ name: z.ZodString;
1633
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
1634
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
1635
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
1636
+ }, "strip", z.ZodTypeAny, {
1637
+ name: string;
1638
+ id: string;
1639
+ type?: "user" | "system" | undefined;
1640
+ messageListVisibility?: "show" | "hide" | undefined;
1641
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1642
+ }, {
1643
+ name: string;
1644
+ id: string;
1645
+ type?: "user" | "system" | undefined;
1646
+ messageListVisibility?: "show" | "hide" | undefined;
1647
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1648
+ }>, "many">>;
1649
+ error: z.ZodString;
1650
+ }, "strip", z.ZodTypeAny, {
1651
+ success: boolean;
1652
+ error: string;
1653
+ operation: "list_labels";
1654
+ labels?: {
1655
+ name: string;
1656
+ id: string;
1657
+ type?: "user" | "system" | undefined;
1658
+ messageListVisibility?: "show" | "hide" | undefined;
1659
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1660
+ }[] | undefined;
1661
+ }, {
1662
+ success: boolean;
1663
+ error: string;
1664
+ operation: "list_labels";
1665
+ labels?: {
1666
+ name: string;
1667
+ id: string;
1668
+ type?: "user" | "system" | undefined;
1669
+ messageListVisibility?: "show" | "hide" | undefined;
1670
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1671
+ }[] | undefined;
1672
+ }>, z.ZodObject<{
1673
+ operation: z.ZodLiteral<"create_label">;
1674
+ success: z.ZodBoolean;
1675
+ label: z.ZodOptional<z.ZodObject<{
1676
+ id: z.ZodString;
1677
+ name: z.ZodString;
1678
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
1679
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
1680
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
1681
+ }, "strip", z.ZodTypeAny, {
1682
+ name: string;
1683
+ id: string;
1684
+ type?: "user" | "system" | undefined;
1685
+ messageListVisibility?: "show" | "hide" | undefined;
1686
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1687
+ }, {
1688
+ name: string;
1689
+ id: string;
1690
+ type?: "user" | "system" | undefined;
1691
+ messageListVisibility?: "show" | "hide" | undefined;
1692
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1693
+ }>>;
1694
+ error: z.ZodString;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ success: boolean;
1697
+ error: string;
1698
+ operation: "create_label";
1699
+ label?: {
1700
+ name: string;
1701
+ id: string;
1702
+ type?: "user" | "system" | undefined;
1703
+ messageListVisibility?: "show" | "hide" | undefined;
1704
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1705
+ } | undefined;
1706
+ }, {
1707
+ success: boolean;
1708
+ error: string;
1709
+ operation: "create_label";
1710
+ label?: {
1711
+ name: string;
1712
+ id: string;
1713
+ type?: "user" | "system" | undefined;
1714
+ messageListVisibility?: "show" | "hide" | undefined;
1715
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1716
+ } | undefined;
1717
+ }>, z.ZodObject<{
1718
+ operation: z.ZodLiteral<"modify_message_labels">;
1719
+ success: z.ZodBoolean;
1720
+ message_id: z.ZodOptional<z.ZodString>;
1721
+ label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1722
+ error: z.ZodString;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ success: boolean;
1725
+ error: string;
1726
+ operation: "modify_message_labels";
1727
+ label_ids?: string[] | undefined;
1728
+ message_id?: string | undefined;
1729
+ }, {
1730
+ success: boolean;
1731
+ error: string;
1732
+ operation: "modify_message_labels";
1733
+ label_ids?: string[] | undefined;
1734
+ message_id?: string | undefined;
1735
+ }>, z.ZodObject<{
1736
+ operation: z.ZodLiteral<"modify_thread_labels">;
1737
+ success: z.ZodBoolean;
1738
+ thread_id: z.ZodOptional<z.ZodString>;
1739
+ error: z.ZodString;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ success: boolean;
1742
+ error: string;
1743
+ operation: "modify_thread_labels";
1744
+ thread_id?: string | undefined;
1745
+ }, {
1746
+ success: boolean;
1747
+ error: string;
1748
+ operation: "modify_thread_labels";
1749
+ thread_id?: string | undefined;
1519
1750
  }>]>;
1520
1751
  type GmailResult = z.output<typeof GmailResultSchema>;
1521
1752
  type GmailParams = z.input<typeof GmailParamsSchema>;
@@ -1570,11 +1801,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1570
1801
  include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1571
1802
  max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1572
1803
  page_token: z.ZodOptional<z.ZodString>;
1804
+ include_details: z.ZodDefault<z.ZodBoolean>;
1573
1805
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1574
1806
  }, "strip", z.ZodTypeAny, {
1575
1807
  operation: "list_emails";
1576
1808
  max_results: number;
1577
1809
  include_spam_trash: boolean;
1810
+ include_details: boolean;
1578
1811
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1579
1812
  query?: string | undefined;
1580
1813
  label_ids?: string[] | undefined;
@@ -1587,6 +1820,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1587
1820
  label_ids?: string[] | undefined;
1588
1821
  include_spam_trash?: boolean | undefined;
1589
1822
  page_token?: string | undefined;
1823
+ include_details?: boolean | undefined;
1590
1824
  }>, z.ZodObject<{
1591
1825
  operation: z.ZodLiteral<"get_email">;
1592
1826
  message_id: z.ZodString;
@@ -1612,14 +1846,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1612
1846
  include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1613
1847
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1614
1848
  }, "strip", z.ZodTypeAny, {
1615
- operation: "search_emails";
1616
1849
  query: string;
1850
+ operation: "search_emails";
1617
1851
  max_results: number;
1618
1852
  include_spam_trash: boolean;
1619
1853
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1620
1854
  }, {
1621
- operation: "search_emails";
1622
1855
  query: string;
1856
+ operation: "search_emails";
1623
1857
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1624
1858
  max_results?: number | undefined;
1625
1859
  include_spam_trash?: boolean | undefined;
@@ -1761,6 +1995,75 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1761
1995
  label_ids?: string[] | undefined;
1762
1996
  include_spam_trash?: boolean | undefined;
1763
1997
  page_token?: string | undefined;
1998
+ }>, z.ZodObject<{
1999
+ operation: z.ZodLiteral<"list_labels">;
2000
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ operation: "list_labels";
2003
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2004
+ }, {
2005
+ operation: "list_labels";
2006
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2007
+ }>, z.ZodObject<{
2008
+ operation: z.ZodLiteral<"create_label">;
2009
+ name: z.ZodString;
2010
+ label_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>>;
2011
+ message_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "hide"]>>>;
2012
+ background_color: z.ZodOptional<z.ZodString>;
2013
+ text_color: z.ZodOptional<z.ZodString>;
2014
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ name: string;
2017
+ operation: "create_label";
2018
+ label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide";
2019
+ message_list_visibility: "show" | "hide";
2020
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2021
+ background_color?: string | undefined;
2022
+ text_color?: string | undefined;
2023
+ }, {
2024
+ name: string;
2025
+ operation: "create_label";
2026
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2027
+ label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
2028
+ message_list_visibility?: "show" | "hide" | undefined;
2029
+ background_color?: string | undefined;
2030
+ text_color?: string | undefined;
2031
+ }>, z.ZodObject<{
2032
+ operation: z.ZodLiteral<"modify_message_labels">;
2033
+ message_id: z.ZodString;
2034
+ add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2035
+ remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2036
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
2037
+ }, "strip", z.ZodTypeAny, {
2038
+ operation: "modify_message_labels";
2039
+ message_id: string;
2040
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2041
+ add_label_ids?: string[] | undefined;
2042
+ remove_label_ids?: string[] | undefined;
2043
+ }, {
2044
+ operation: "modify_message_labels";
2045
+ message_id: string;
2046
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2047
+ add_label_ids?: string[] | undefined;
2048
+ remove_label_ids?: string[] | undefined;
2049
+ }>, z.ZodObject<{
2050
+ operation: z.ZodLiteral<"modify_thread_labels">;
2051
+ thread_id: z.ZodString;
2052
+ add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2053
+ remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2054
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ operation: "modify_thread_labels";
2057
+ thread_id: string;
2058
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2059
+ add_label_ids?: string[] | undefined;
2060
+ remove_label_ids?: string[] | undefined;
2061
+ }, {
2062
+ operation: "modify_thread_labels";
2063
+ thread_id: string;
2064
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
2065
+ add_label_ids?: string[] | undefined;
2066
+ remove_label_ids?: string[] | undefined;
1764
2067
  }>]>;
1765
2068
  static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
1766
2069
  operation: z.ZodLiteral<"send_email">;
@@ -1769,14 +2072,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1769
2072
  thread_id: z.ZodOptional<z.ZodString>;
1770
2073
  error: z.ZodString;
1771
2074
  }, "strip", z.ZodTypeAny, {
1772
- error: string;
1773
2075
  success: boolean;
2076
+ error: string;
1774
2077
  operation: "send_email";
1775
2078
  thread_id?: string | undefined;
1776
2079
  message_id?: string | undefined;
1777
2080
  }, {
1778
- error: string;
1779
2081
  success: boolean;
2082
+ error: string;
1780
2083
  operation: "send_email";
1781
2084
  thread_id?: string | undefined;
1782
2085
  message_id?: string | undefined;
@@ -1785,9 +2088,10 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1785
2088
  success: z.ZodBoolean;
1786
2089
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1787
2090
  id: z.ZodString;
1788
- threadId: z.ZodString;
2091
+ threadId: z.ZodOptional<z.ZodString>;
1789
2092
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1790
2093
  snippet: z.ZodOptional<z.ZodString>;
2094
+ textContent: z.ZodOptional<z.ZodString>;
1791
2095
  historyId: z.ZodOptional<z.ZodString>;
1792
2096
  internalDate: z.ZodOptional<z.ZodString>;
1793
2097
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -1845,13 +2149,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1845
2149
  }>>;
1846
2150
  }, "strip", z.ZodTypeAny, {
1847
2151
  id: string;
1848
- threadId: string;
1849
- raw?: string | undefined;
2152
+ threadId?: string | undefined;
1850
2153
  labelIds?: string[] | undefined;
1851
2154
  snippet?: string | undefined;
2155
+ textContent?: string | undefined;
1852
2156
  historyId?: string | undefined;
1853
2157
  internalDate?: string | undefined;
1854
2158
  sizeEstimate?: number | undefined;
2159
+ raw?: string | undefined;
1855
2160
  payload?: {
1856
2161
  mimeType?: string | undefined;
1857
2162
  headers?: {
@@ -1867,13 +2172,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1867
2172
  } | undefined;
1868
2173
  }, {
1869
2174
  id: string;
1870
- threadId: string;
1871
- raw?: string | undefined;
2175
+ threadId?: string | undefined;
1872
2176
  labelIds?: string[] | undefined;
1873
2177
  snippet?: string | undefined;
2178
+ textContent?: string | undefined;
1874
2179
  historyId?: string | undefined;
1875
2180
  internalDate?: string | undefined;
1876
2181
  sizeEstimate?: number | undefined;
2182
+ raw?: string | undefined;
1877
2183
  payload?: {
1878
2184
  mimeType?: string | undefined;
1879
2185
  headers?: {
@@ -1892,18 +2198,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1892
2198
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
1893
2199
  error: z.ZodString;
1894
2200
  }, "strip", z.ZodTypeAny, {
1895
- error: string;
1896
2201
  success: boolean;
2202
+ error: string;
1897
2203
  operation: "list_emails";
1898
2204
  messages?: {
1899
2205
  id: string;
1900
- threadId: string;
1901
- raw?: string | undefined;
2206
+ threadId?: string | undefined;
1902
2207
  labelIds?: string[] | undefined;
1903
2208
  snippet?: string | undefined;
2209
+ textContent?: string | undefined;
1904
2210
  historyId?: string | undefined;
1905
2211
  internalDate?: string | undefined;
1906
2212
  sizeEstimate?: number | undefined;
2213
+ raw?: string | undefined;
1907
2214
  payload?: {
1908
2215
  mimeType?: string | undefined;
1909
2216
  headers?: {
@@ -1921,18 +2228,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1921
2228
  next_page_token?: string | undefined;
1922
2229
  result_size_estimate?: number | undefined;
1923
2230
  }, {
1924
- error: string;
1925
2231
  success: boolean;
2232
+ error: string;
1926
2233
  operation: "list_emails";
1927
2234
  messages?: {
1928
2235
  id: string;
1929
- threadId: string;
1930
- raw?: string | undefined;
2236
+ threadId?: string | undefined;
1931
2237
  labelIds?: string[] | undefined;
1932
2238
  snippet?: string | undefined;
2239
+ textContent?: string | undefined;
1933
2240
  historyId?: string | undefined;
1934
2241
  internalDate?: string | undefined;
1935
2242
  sizeEstimate?: number | undefined;
2243
+ raw?: string | undefined;
1936
2244
  payload?: {
1937
2245
  mimeType?: string | undefined;
1938
2246
  headers?: {
@@ -1954,9 +2262,10 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1954
2262
  success: z.ZodBoolean;
1955
2263
  message: z.ZodOptional<z.ZodObject<{
1956
2264
  id: z.ZodString;
1957
- threadId: z.ZodString;
2265
+ threadId: z.ZodOptional<z.ZodString>;
1958
2266
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1959
2267
  snippet: z.ZodOptional<z.ZodString>;
2268
+ textContent: z.ZodOptional<z.ZodString>;
1960
2269
  historyId: z.ZodOptional<z.ZodString>;
1961
2270
  internalDate: z.ZodOptional<z.ZodString>;
1962
2271
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -2014,13 +2323,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2014
2323
  }>>;
2015
2324
  }, "strip", z.ZodTypeAny, {
2016
2325
  id: string;
2017
- threadId: string;
2018
- raw?: string | undefined;
2326
+ threadId?: string | undefined;
2019
2327
  labelIds?: string[] | undefined;
2020
2328
  snippet?: string | undefined;
2329
+ textContent?: string | undefined;
2021
2330
  historyId?: string | undefined;
2022
2331
  internalDate?: string | undefined;
2023
2332
  sizeEstimate?: number | undefined;
2333
+ raw?: string | undefined;
2024
2334
  payload?: {
2025
2335
  mimeType?: string | undefined;
2026
2336
  headers?: {
@@ -2036,13 +2346,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2036
2346
  } | undefined;
2037
2347
  }, {
2038
2348
  id: string;
2039
- threadId: string;
2040
- raw?: string | undefined;
2349
+ threadId?: string | undefined;
2041
2350
  labelIds?: string[] | undefined;
2042
2351
  snippet?: string | undefined;
2352
+ textContent?: string | undefined;
2043
2353
  historyId?: string | undefined;
2044
2354
  internalDate?: string | undefined;
2045
2355
  sizeEstimate?: number | undefined;
2356
+ raw?: string | undefined;
2046
2357
  payload?: {
2047
2358
  mimeType?: string | undefined;
2048
2359
  headers?: {
@@ -2059,18 +2370,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2059
2370
  }>>;
2060
2371
  error: z.ZodString;
2061
2372
  }, "strip", z.ZodTypeAny, {
2062
- error: string;
2063
2373
  success: boolean;
2374
+ error: string;
2064
2375
  operation: "get_email";
2065
2376
  message?: {
2066
2377
  id: string;
2067
- threadId: string;
2068
- raw?: string | undefined;
2378
+ threadId?: string | undefined;
2069
2379
  labelIds?: string[] | undefined;
2070
2380
  snippet?: string | undefined;
2381
+ textContent?: string | undefined;
2071
2382
  historyId?: string | undefined;
2072
2383
  internalDate?: string | undefined;
2073
2384
  sizeEstimate?: number | undefined;
2385
+ raw?: string | undefined;
2074
2386
  payload?: {
2075
2387
  mimeType?: string | undefined;
2076
2388
  headers?: {
@@ -2086,18 +2398,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2086
2398
  } | undefined;
2087
2399
  } | undefined;
2088
2400
  }, {
2089
- error: string;
2090
2401
  success: boolean;
2402
+ error: string;
2091
2403
  operation: "get_email";
2092
2404
  message?: {
2093
2405
  id: string;
2094
- threadId: string;
2095
- raw?: string | undefined;
2406
+ threadId?: string | undefined;
2096
2407
  labelIds?: string[] | undefined;
2097
2408
  snippet?: string | undefined;
2409
+ textContent?: string | undefined;
2098
2410
  historyId?: string | undefined;
2099
2411
  internalDate?: string | undefined;
2100
2412
  sizeEstimate?: number | undefined;
2413
+ raw?: string | undefined;
2101
2414
  payload?: {
2102
2415
  mimeType?: string | undefined;
2103
2416
  headers?: {
@@ -2117,9 +2430,10 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2117
2430
  success: z.ZodBoolean;
2118
2431
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2119
2432
  id: z.ZodString;
2120
- threadId: z.ZodString;
2433
+ threadId: z.ZodOptional<z.ZodString>;
2121
2434
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2122
2435
  snippet: z.ZodOptional<z.ZodString>;
2436
+ textContent: z.ZodOptional<z.ZodString>;
2123
2437
  historyId: z.ZodOptional<z.ZodString>;
2124
2438
  internalDate: z.ZodOptional<z.ZodString>;
2125
2439
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -2177,13 +2491,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2177
2491
  }>>;
2178
2492
  }, "strip", z.ZodTypeAny, {
2179
2493
  id: string;
2180
- threadId: string;
2181
- raw?: string | undefined;
2494
+ threadId?: string | undefined;
2182
2495
  labelIds?: string[] | undefined;
2183
2496
  snippet?: string | undefined;
2497
+ textContent?: string | undefined;
2184
2498
  historyId?: string | undefined;
2185
2499
  internalDate?: string | undefined;
2186
2500
  sizeEstimate?: number | undefined;
2501
+ raw?: string | undefined;
2187
2502
  payload?: {
2188
2503
  mimeType?: string | undefined;
2189
2504
  headers?: {
@@ -2199,13 +2514,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2199
2514
  } | undefined;
2200
2515
  }, {
2201
2516
  id: string;
2202
- threadId: string;
2203
- raw?: string | undefined;
2517
+ threadId?: string | undefined;
2204
2518
  labelIds?: string[] | undefined;
2205
2519
  snippet?: string | undefined;
2520
+ textContent?: string | undefined;
2206
2521
  historyId?: string | undefined;
2207
2522
  internalDate?: string | undefined;
2208
2523
  sizeEstimate?: number | undefined;
2524
+ raw?: string | undefined;
2209
2525
  payload?: {
2210
2526
  mimeType?: string | undefined;
2211
2527
  headers?: {
@@ -2223,18 +2539,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2223
2539
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
2224
2540
  error: z.ZodString;
2225
2541
  }, "strip", z.ZodTypeAny, {
2226
- error: string;
2227
2542
  success: boolean;
2543
+ error: string;
2228
2544
  operation: "search_emails";
2229
2545
  messages?: {
2230
2546
  id: string;
2231
- threadId: string;
2232
- raw?: string | undefined;
2547
+ threadId?: string | undefined;
2233
2548
  labelIds?: string[] | undefined;
2234
2549
  snippet?: string | undefined;
2550
+ textContent?: string | undefined;
2235
2551
  historyId?: string | undefined;
2236
2552
  internalDate?: string | undefined;
2237
2553
  sizeEstimate?: number | undefined;
2554
+ raw?: string | undefined;
2238
2555
  payload?: {
2239
2556
  mimeType?: string | undefined;
2240
2557
  headers?: {
@@ -2251,18 +2568,19 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2251
2568
  }[] | undefined;
2252
2569
  result_size_estimate?: number | undefined;
2253
2570
  }, {
2254
- error: string;
2255
2571
  success: boolean;
2572
+ error: string;
2256
2573
  operation: "search_emails";
2257
2574
  messages?: {
2258
2575
  id: string;
2259
- threadId: string;
2260
- raw?: string | undefined;
2576
+ threadId?: string | undefined;
2261
2577
  labelIds?: string[] | undefined;
2262
2578
  snippet?: string | undefined;
2579
+ textContent?: string | undefined;
2263
2580
  historyId?: string | undefined;
2264
2581
  internalDate?: string | undefined;
2265
2582
  sizeEstimate?: number | undefined;
2583
+ raw?: string | undefined;
2266
2584
  payload?: {
2267
2585
  mimeType?: string | undefined;
2268
2586
  headers?: {
@@ -2284,13 +2602,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2284
2602
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2285
2603
  error: z.ZodString;
2286
2604
  }, "strip", z.ZodTypeAny, {
2287
- error: string;
2288
2605
  success: boolean;
2606
+ error: string;
2289
2607
  operation: "mark_as_read";
2290
2608
  modified_messages?: string[] | undefined;
2291
2609
  }, {
2292
- error: string;
2293
2610
  success: boolean;
2611
+ error: string;
2294
2612
  operation: "mark_as_read";
2295
2613
  modified_messages?: string[] | undefined;
2296
2614
  }>, z.ZodObject<{
@@ -2299,13 +2617,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2299
2617
  modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2300
2618
  error: z.ZodString;
2301
2619
  }, "strip", z.ZodTypeAny, {
2302
- error: string;
2303
2620
  success: boolean;
2621
+ error: string;
2304
2622
  operation: "mark_as_unread";
2305
2623
  modified_messages?: string[] | undefined;
2306
2624
  }, {
2307
- error: string;
2308
2625
  success: boolean;
2626
+ error: string;
2309
2627
  operation: "mark_as_unread";
2310
2628
  modified_messages?: string[] | undefined;
2311
2629
  }>, z.ZodObject<{
@@ -2315,9 +2633,10 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2315
2633
  id: z.ZodString;
2316
2634
  message: z.ZodObject<{
2317
2635
  id: z.ZodString;
2318
- threadId: z.ZodString;
2636
+ threadId: z.ZodOptional<z.ZodString>;
2319
2637
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2320
2638
  snippet: z.ZodOptional<z.ZodString>;
2639
+ textContent: z.ZodOptional<z.ZodString>;
2321
2640
  historyId: z.ZodOptional<z.ZodString>;
2322
2641
  internalDate: z.ZodOptional<z.ZodString>;
2323
2642
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -2375,13 +2694,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2375
2694
  }>>;
2376
2695
  }, "strip", z.ZodTypeAny, {
2377
2696
  id: string;
2378
- threadId: string;
2379
- raw?: string | undefined;
2697
+ threadId?: string | undefined;
2380
2698
  labelIds?: string[] | undefined;
2381
2699
  snippet?: string | undefined;
2700
+ textContent?: string | undefined;
2382
2701
  historyId?: string | undefined;
2383
2702
  internalDate?: string | undefined;
2384
2703
  sizeEstimate?: number | undefined;
2704
+ raw?: string | undefined;
2385
2705
  payload?: {
2386
2706
  mimeType?: string | undefined;
2387
2707
  headers?: {
@@ -2397,13 +2717,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2397
2717
  } | undefined;
2398
2718
  }, {
2399
2719
  id: string;
2400
- threadId: string;
2401
- raw?: string | undefined;
2720
+ threadId?: string | undefined;
2402
2721
  labelIds?: string[] | undefined;
2403
2722
  snippet?: string | undefined;
2723
+ textContent?: string | undefined;
2404
2724
  historyId?: string | undefined;
2405
2725
  internalDate?: string | undefined;
2406
2726
  sizeEstimate?: number | undefined;
2727
+ raw?: string | undefined;
2407
2728
  payload?: {
2408
2729
  mimeType?: string | undefined;
2409
2730
  headers?: {
@@ -2421,13 +2742,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2421
2742
  }, "strip", z.ZodTypeAny, {
2422
2743
  message: {
2423
2744
  id: string;
2424
- threadId: string;
2425
- raw?: string | undefined;
2745
+ threadId?: string | undefined;
2426
2746
  labelIds?: string[] | undefined;
2427
2747
  snippet?: string | undefined;
2748
+ textContent?: string | undefined;
2428
2749
  historyId?: string | undefined;
2429
2750
  internalDate?: string | undefined;
2430
2751
  sizeEstimate?: number | undefined;
2752
+ raw?: string | undefined;
2431
2753
  payload?: {
2432
2754
  mimeType?: string | undefined;
2433
2755
  headers?: {
@@ -2446,13 +2768,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2446
2768
  }, {
2447
2769
  message: {
2448
2770
  id: string;
2449
- threadId: string;
2450
- raw?: string | undefined;
2771
+ threadId?: string | undefined;
2451
2772
  labelIds?: string[] | undefined;
2452
2773
  snippet?: string | undefined;
2774
+ textContent?: string | undefined;
2453
2775
  historyId?: string | undefined;
2454
2776
  internalDate?: string | undefined;
2455
2777
  sizeEstimate?: number | undefined;
2778
+ raw?: string | undefined;
2456
2779
  payload?: {
2457
2780
  mimeType?: string | undefined;
2458
2781
  headers?: {
@@ -2471,19 +2794,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2471
2794
  }>>;
2472
2795
  error: z.ZodString;
2473
2796
  }, "strip", z.ZodTypeAny, {
2474
- error: string;
2475
2797
  success: boolean;
2798
+ error: string;
2476
2799
  operation: "create_draft";
2477
2800
  draft?: {
2478
2801
  message: {
2479
2802
  id: string;
2480
- threadId: string;
2481
- raw?: string | undefined;
2803
+ threadId?: string | undefined;
2482
2804
  labelIds?: string[] | undefined;
2483
2805
  snippet?: string | undefined;
2806
+ textContent?: string | undefined;
2484
2807
  historyId?: string | undefined;
2485
2808
  internalDate?: string | undefined;
2486
2809
  sizeEstimate?: number | undefined;
2810
+ raw?: string | undefined;
2487
2811
  payload?: {
2488
2812
  mimeType?: string | undefined;
2489
2813
  headers?: {
@@ -2501,19 +2825,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2501
2825
  id: string;
2502
2826
  } | undefined;
2503
2827
  }, {
2504
- error: string;
2505
2828
  success: boolean;
2829
+ error: string;
2506
2830
  operation: "create_draft";
2507
2831
  draft?: {
2508
2832
  message: {
2509
2833
  id: string;
2510
- threadId: string;
2511
- raw?: string | undefined;
2834
+ threadId?: string | undefined;
2512
2835
  labelIds?: string[] | undefined;
2513
2836
  snippet?: string | undefined;
2837
+ textContent?: string | undefined;
2514
2838
  historyId?: string | undefined;
2515
2839
  internalDate?: string | undefined;
2516
2840
  sizeEstimate?: number | undefined;
2841
+ raw?: string | undefined;
2517
2842
  payload?: {
2518
2843
  mimeType?: string | undefined;
2519
2844
  headers?: {
@@ -2537,14 +2862,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2537
2862
  thread_id: z.ZodOptional<z.ZodString>;
2538
2863
  error: z.ZodString;
2539
2864
  }, "strip", z.ZodTypeAny, {
2540
- error: string;
2541
2865
  success: boolean;
2866
+ error: string;
2542
2867
  operation: "send_draft";
2543
2868
  thread_id?: string | undefined;
2544
2869
  message_id?: string | undefined;
2545
2870
  }, {
2546
- error: string;
2547
2871
  success: boolean;
2872
+ error: string;
2548
2873
  operation: "send_draft";
2549
2874
  thread_id?: string | undefined;
2550
2875
  message_id?: string | undefined;
@@ -2555,9 +2880,10 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2555
2880
  id: z.ZodString;
2556
2881
  message: z.ZodObject<{
2557
2882
  id: z.ZodString;
2558
- threadId: z.ZodString;
2883
+ threadId: z.ZodOptional<z.ZodString>;
2559
2884
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2560
2885
  snippet: z.ZodOptional<z.ZodString>;
2886
+ textContent: z.ZodOptional<z.ZodString>;
2561
2887
  historyId: z.ZodOptional<z.ZodString>;
2562
2888
  internalDate: z.ZodOptional<z.ZodString>;
2563
2889
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -2615,13 +2941,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2615
2941
  }>>;
2616
2942
  }, "strip", z.ZodTypeAny, {
2617
2943
  id: string;
2618
- threadId: string;
2619
- raw?: string | undefined;
2944
+ threadId?: string | undefined;
2620
2945
  labelIds?: string[] | undefined;
2621
2946
  snippet?: string | undefined;
2947
+ textContent?: string | undefined;
2622
2948
  historyId?: string | undefined;
2623
2949
  internalDate?: string | undefined;
2624
2950
  sizeEstimate?: number | undefined;
2951
+ raw?: string | undefined;
2625
2952
  payload?: {
2626
2953
  mimeType?: string | undefined;
2627
2954
  headers?: {
@@ -2637,13 +2964,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2637
2964
  } | undefined;
2638
2965
  }, {
2639
2966
  id: string;
2640
- threadId: string;
2641
- raw?: string | undefined;
2967
+ threadId?: string | undefined;
2642
2968
  labelIds?: string[] | undefined;
2643
2969
  snippet?: string | undefined;
2970
+ textContent?: string | undefined;
2644
2971
  historyId?: string | undefined;
2645
2972
  internalDate?: string | undefined;
2646
2973
  sizeEstimate?: number | undefined;
2974
+ raw?: string | undefined;
2647
2975
  payload?: {
2648
2976
  mimeType?: string | undefined;
2649
2977
  headers?: {
@@ -2661,13 +2989,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2661
2989
  }, "strip", z.ZodTypeAny, {
2662
2990
  message: {
2663
2991
  id: string;
2664
- threadId: string;
2665
- raw?: string | undefined;
2992
+ threadId?: string | undefined;
2666
2993
  labelIds?: string[] | undefined;
2667
2994
  snippet?: string | undefined;
2995
+ textContent?: string | undefined;
2668
2996
  historyId?: string | undefined;
2669
2997
  internalDate?: string | undefined;
2670
2998
  sizeEstimate?: number | undefined;
2999
+ raw?: string | undefined;
2671
3000
  payload?: {
2672
3001
  mimeType?: string | undefined;
2673
3002
  headers?: {
@@ -2686,13 +3015,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2686
3015
  }, {
2687
3016
  message: {
2688
3017
  id: string;
2689
- threadId: string;
2690
- raw?: string | undefined;
3018
+ threadId?: string | undefined;
2691
3019
  labelIds?: string[] | undefined;
2692
3020
  snippet?: string | undefined;
3021
+ textContent?: string | undefined;
2693
3022
  historyId?: string | undefined;
2694
3023
  internalDate?: string | undefined;
2695
3024
  sizeEstimate?: number | undefined;
3025
+ raw?: string | undefined;
2696
3026
  payload?: {
2697
3027
  mimeType?: string | undefined;
2698
3028
  headers?: {
@@ -2713,21 +3043,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2713
3043
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
2714
3044
  error: z.ZodString;
2715
3045
  }, "strip", z.ZodTypeAny, {
2716
- error: string;
2717
3046
  success: boolean;
3047
+ error: string;
2718
3048
  operation: "list_drafts";
2719
3049
  next_page_token?: string | undefined;
2720
3050
  result_size_estimate?: number | undefined;
2721
3051
  drafts?: {
2722
3052
  message: {
2723
3053
  id: string;
2724
- threadId: string;
2725
- raw?: string | undefined;
3054
+ threadId?: string | undefined;
2726
3055
  labelIds?: string[] | undefined;
2727
3056
  snippet?: string | undefined;
3057
+ textContent?: string | undefined;
2728
3058
  historyId?: string | undefined;
2729
3059
  internalDate?: string | undefined;
2730
3060
  sizeEstimate?: number | undefined;
3061
+ raw?: string | undefined;
2731
3062
  payload?: {
2732
3063
  mimeType?: string | undefined;
2733
3064
  headers?: {
@@ -2745,21 +3076,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2745
3076
  id: string;
2746
3077
  }[] | undefined;
2747
3078
  }, {
2748
- error: string;
2749
3079
  success: boolean;
3080
+ error: string;
2750
3081
  operation: "list_drafts";
2751
3082
  next_page_token?: string | undefined;
2752
3083
  result_size_estimate?: number | undefined;
2753
3084
  drafts?: {
2754
3085
  message: {
2755
3086
  id: string;
2756
- threadId: string;
2757
- raw?: string | undefined;
3087
+ threadId?: string | undefined;
2758
3088
  labelIds?: string[] | undefined;
2759
3089
  snippet?: string | undefined;
3090
+ textContent?: string | undefined;
2760
3091
  historyId?: string | undefined;
2761
3092
  internalDate?: string | undefined;
2762
3093
  sizeEstimate?: number | undefined;
3094
+ raw?: string | undefined;
2763
3095
  payload?: {
2764
3096
  mimeType?: string | undefined;
2765
3097
  headers?: {
@@ -2782,13 +3114,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2782
3114
  deleted_message_id: z.ZodOptional<z.ZodString>;
2783
3115
  error: z.ZodString;
2784
3116
  }, "strip", z.ZodTypeAny, {
2785
- error: string;
2786
3117
  success: boolean;
3118
+ error: string;
2787
3119
  operation: "delete_email";
2788
3120
  deleted_message_id?: string | undefined;
2789
3121
  }, {
2790
- error: string;
2791
3122
  success: boolean;
3123
+ error: string;
2792
3124
  operation: "delete_email";
2793
3125
  deleted_message_id?: string | undefined;
2794
3126
  }>, z.ZodObject<{
@@ -2797,13 +3129,13 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2797
3129
  trashed_message_id: z.ZodOptional<z.ZodString>;
2798
3130
  error: z.ZodString;
2799
3131
  }, "strip", z.ZodTypeAny, {
2800
- error: string;
2801
3132
  success: boolean;
3133
+ error: string;
2802
3134
  operation: "trash_email";
2803
3135
  trashed_message_id?: string | undefined;
2804
3136
  }, {
2805
- error: string;
2806
3137
  success: boolean;
3138
+ error: string;
2807
3139
  operation: "trash_email";
2808
3140
  trashed_message_id?: string | undefined;
2809
3141
  }>, z.ZodObject<{
@@ -2814,9 +3146,10 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2814
3146
  historyId: z.ZodOptional<z.ZodString>;
2815
3147
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2816
3148
  id: z.ZodString;
2817
- threadId: z.ZodString;
3149
+ threadId: z.ZodOptional<z.ZodString>;
2818
3150
  labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2819
3151
  snippet: z.ZodOptional<z.ZodString>;
3152
+ textContent: z.ZodOptional<z.ZodString>;
2820
3153
  historyId: z.ZodOptional<z.ZodString>;
2821
3154
  internalDate: z.ZodOptional<z.ZodString>;
2822
3155
  sizeEstimate: z.ZodOptional<z.ZodNumber>;
@@ -2874,13 +3207,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2874
3207
  }>>;
2875
3208
  }, "strip", z.ZodTypeAny, {
2876
3209
  id: string;
2877
- threadId: string;
2878
- raw?: string | undefined;
3210
+ threadId?: string | undefined;
2879
3211
  labelIds?: string[] | undefined;
2880
3212
  snippet?: string | undefined;
3213
+ textContent?: string | undefined;
2881
3214
  historyId?: string | undefined;
2882
3215
  internalDate?: string | undefined;
2883
3216
  sizeEstimate?: number | undefined;
3217
+ raw?: string | undefined;
2884
3218
  payload?: {
2885
3219
  mimeType?: string | undefined;
2886
3220
  headers?: {
@@ -2896,13 +3230,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2896
3230
  } | undefined;
2897
3231
  }, {
2898
3232
  id: string;
2899
- threadId: string;
2900
- raw?: string | undefined;
3233
+ threadId?: string | undefined;
2901
3234
  labelIds?: string[] | undefined;
2902
3235
  snippet?: string | undefined;
3236
+ textContent?: string | undefined;
2903
3237
  historyId?: string | undefined;
2904
3238
  internalDate?: string | undefined;
2905
3239
  sizeEstimate?: number | undefined;
3240
+ raw?: string | undefined;
2906
3241
  payload?: {
2907
3242
  mimeType?: string | undefined;
2908
3243
  headers?: {
@@ -2922,13 +3257,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2922
3257
  id: string;
2923
3258
  messages?: {
2924
3259
  id: string;
2925
- threadId: string;
2926
- raw?: string | undefined;
3260
+ threadId?: string | undefined;
2927
3261
  labelIds?: string[] | undefined;
2928
3262
  snippet?: string | undefined;
3263
+ textContent?: string | undefined;
2929
3264
  historyId?: string | undefined;
2930
3265
  internalDate?: string | undefined;
2931
3266
  sizeEstimate?: number | undefined;
3267
+ raw?: string | undefined;
2932
3268
  payload?: {
2933
3269
  mimeType?: string | undefined;
2934
3270
  headers?: {
@@ -2949,13 +3285,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2949
3285
  id: string;
2950
3286
  messages?: {
2951
3287
  id: string;
2952
- threadId: string;
2953
- raw?: string | undefined;
3288
+ threadId?: string | undefined;
2954
3289
  labelIds?: string[] | undefined;
2955
3290
  snippet?: string | undefined;
3291
+ textContent?: string | undefined;
2956
3292
  historyId?: string | undefined;
2957
3293
  internalDate?: string | undefined;
2958
3294
  sizeEstimate?: number | undefined;
3295
+ raw?: string | undefined;
2959
3296
  payload?: {
2960
3297
  mimeType?: string | undefined;
2961
3298
  headers?: {
@@ -2977,8 +3314,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2977
3314
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
2978
3315
  error: z.ZodString;
2979
3316
  }, "strip", z.ZodTypeAny, {
2980
- error: string;
2981
3317
  success: boolean;
3318
+ error: string;
2982
3319
  operation: "list_threads";
2983
3320
  next_page_token?: string | undefined;
2984
3321
  result_size_estimate?: number | undefined;
@@ -2986,13 +3323,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2986
3323
  id: string;
2987
3324
  messages?: {
2988
3325
  id: string;
2989
- threadId: string;
2990
- raw?: string | undefined;
3326
+ threadId?: string | undefined;
2991
3327
  labelIds?: string[] | undefined;
2992
3328
  snippet?: string | undefined;
3329
+ textContent?: string | undefined;
2993
3330
  historyId?: string | undefined;
2994
3331
  internalDate?: string | undefined;
2995
3332
  sizeEstimate?: number | undefined;
3333
+ raw?: string | undefined;
2996
3334
  payload?: {
2997
3335
  mimeType?: string | undefined;
2998
3336
  headers?: {
@@ -3011,8 +3349,8 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3011
3349
  historyId?: string | undefined;
3012
3350
  }[] | undefined;
3013
3351
  }, {
3014
- error: string;
3015
3352
  success: boolean;
3353
+ error: string;
3016
3354
  operation: "list_threads";
3017
3355
  next_page_token?: string | undefined;
3018
3356
  result_size_estimate?: number | undefined;
@@ -3020,13 +3358,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3020
3358
  id: string;
3021
3359
  messages?: {
3022
3360
  id: string;
3023
- threadId: string;
3024
- raw?: string | undefined;
3361
+ threadId?: string | undefined;
3025
3362
  labelIds?: string[] | undefined;
3026
3363
  snippet?: string | undefined;
3364
+ textContent?: string | undefined;
3027
3365
  historyId?: string | undefined;
3028
3366
  internalDate?: string | undefined;
3029
3367
  sizeEstimate?: number | undefined;
3368
+ raw?: string | undefined;
3030
3369
  payload?: {
3031
3370
  mimeType?: string | undefined;
3032
3371
  headers?: {
@@ -3044,6 +3383,129 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3044
3383
  snippet?: string | undefined;
3045
3384
  historyId?: string | undefined;
3046
3385
  }[] | undefined;
3386
+ }>, z.ZodObject<{
3387
+ operation: z.ZodLiteral<"list_labels">;
3388
+ success: z.ZodBoolean;
3389
+ labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
3390
+ id: z.ZodString;
3391
+ name: z.ZodString;
3392
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
3393
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
3394
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
3395
+ }, "strip", z.ZodTypeAny, {
3396
+ name: string;
3397
+ id: string;
3398
+ type?: "user" | "system" | undefined;
3399
+ messageListVisibility?: "show" | "hide" | undefined;
3400
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3401
+ }, {
3402
+ name: string;
3403
+ id: string;
3404
+ type?: "user" | "system" | undefined;
3405
+ messageListVisibility?: "show" | "hide" | undefined;
3406
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3407
+ }>, "many">>;
3408
+ error: z.ZodString;
3409
+ }, "strip", z.ZodTypeAny, {
3410
+ success: boolean;
3411
+ error: string;
3412
+ operation: "list_labels";
3413
+ labels?: {
3414
+ name: string;
3415
+ id: string;
3416
+ type?: "user" | "system" | undefined;
3417
+ messageListVisibility?: "show" | "hide" | undefined;
3418
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3419
+ }[] | undefined;
3420
+ }, {
3421
+ success: boolean;
3422
+ error: string;
3423
+ operation: "list_labels";
3424
+ labels?: {
3425
+ name: string;
3426
+ id: string;
3427
+ type?: "user" | "system" | undefined;
3428
+ messageListVisibility?: "show" | "hide" | undefined;
3429
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3430
+ }[] | undefined;
3431
+ }>, z.ZodObject<{
3432
+ operation: z.ZodLiteral<"create_label">;
3433
+ success: z.ZodBoolean;
3434
+ label: z.ZodOptional<z.ZodObject<{
3435
+ id: z.ZodString;
3436
+ name: z.ZodString;
3437
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
3438
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
3439
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
3440
+ }, "strip", z.ZodTypeAny, {
3441
+ name: string;
3442
+ id: string;
3443
+ type?: "user" | "system" | undefined;
3444
+ messageListVisibility?: "show" | "hide" | undefined;
3445
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3446
+ }, {
3447
+ name: string;
3448
+ id: string;
3449
+ type?: "user" | "system" | undefined;
3450
+ messageListVisibility?: "show" | "hide" | undefined;
3451
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3452
+ }>>;
3453
+ error: z.ZodString;
3454
+ }, "strip", z.ZodTypeAny, {
3455
+ success: boolean;
3456
+ error: string;
3457
+ operation: "create_label";
3458
+ label?: {
3459
+ name: string;
3460
+ id: string;
3461
+ type?: "user" | "system" | undefined;
3462
+ messageListVisibility?: "show" | "hide" | undefined;
3463
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3464
+ } | undefined;
3465
+ }, {
3466
+ success: boolean;
3467
+ error: string;
3468
+ operation: "create_label";
3469
+ label?: {
3470
+ name: string;
3471
+ id: string;
3472
+ type?: "user" | "system" | undefined;
3473
+ messageListVisibility?: "show" | "hide" | undefined;
3474
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3475
+ } | undefined;
3476
+ }>, z.ZodObject<{
3477
+ operation: z.ZodLiteral<"modify_message_labels">;
3478
+ success: z.ZodBoolean;
3479
+ message_id: z.ZodOptional<z.ZodString>;
3480
+ label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3481
+ error: z.ZodString;
3482
+ }, "strip", z.ZodTypeAny, {
3483
+ success: boolean;
3484
+ error: string;
3485
+ operation: "modify_message_labels";
3486
+ label_ids?: string[] | undefined;
3487
+ message_id?: string | undefined;
3488
+ }, {
3489
+ success: boolean;
3490
+ error: string;
3491
+ operation: "modify_message_labels";
3492
+ label_ids?: string[] | undefined;
3493
+ message_id?: string | undefined;
3494
+ }>, z.ZodObject<{
3495
+ operation: z.ZodLiteral<"modify_thread_labels">;
3496
+ success: z.ZodBoolean;
3497
+ thread_id: z.ZodOptional<z.ZodString>;
3498
+ error: z.ZodString;
3499
+ }, "strip", z.ZodTypeAny, {
3500
+ success: boolean;
3501
+ error: string;
3502
+ operation: "modify_thread_labels";
3503
+ thread_id?: string | undefined;
3504
+ }, {
3505
+ success: boolean;
3506
+ error: string;
3507
+ operation: "modify_thread_labels";
3508
+ thread_id?: string | undefined;
3047
3509
  }>]>;
3048
3510
  static readonly shortDescription = "Gmail integration for email management";
3049
3511
  static readonly longDescription = "\n Gmail service integration for comprehensive email management and automation.\n Use cases:\n - Send and receive emails with rich formatting\n - Search and filter emails with advanced queries\n - Manage drafts and email threads\n - Mark messages as read/unread\n - Organize emails with labels and folders\n - Handle email attachments and metadata\n ";
@@ -3051,6 +3513,34 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3051
3513
  constructor(params?: T, context?: BubbleContext);
3052
3514
  testCredential(): Promise<boolean>;
3053
3515
  private makeGmailApiRequest;
3516
+ /**
3517
+ * Extract clean, readable text content from a Gmail message
3518
+ */
3519
+ private extractEmailTextContent;
3520
+ /**
3521
+ * Decode base64url encoded content to UTF-8 string
3522
+ */
3523
+ private decodeBase64;
3524
+ /**
3525
+ * Clean up email content by removing forwarded/replied content and excessive whitespace
3526
+ */
3527
+ private cleanEmailContent;
3528
+ /**
3529
+ * Clean up a body part by removing base64 data fields
3530
+ */
3531
+ private cleanBodyPart;
3532
+ /**
3533
+ * Filter headers to only keep essential ones that users care about
3534
+ */
3535
+ private filterEssentialHeaders;
3536
+ /**
3537
+ * Clean up payload by removing base64 data fields to reduce response size
3538
+ */
3539
+ private cleanPayloadData;
3540
+ /**
3541
+ * Process and clean a Gmail message by extracting text content and removing heavy fields
3542
+ */
3543
+ private processAndCleanMessage;
3054
3544
  protected performAction(context?: BubbleContext): Promise<Extract<GmailResult, {
3055
3545
  operation: T['operation'];
3056
3546
  }>>;
@@ -3067,6 +3557,10 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3067
3557
  private deleteEmail;
3068
3558
  private trashEmail;
3069
3559
  private listThreads;
3560
+ private listLabels;
3561
+ private createLabel;
3562
+ private modifyMessageLabels;
3563
+ private modifyThreadLabels;
3070
3564
  protected chooseCredential(): string | undefined;
3071
3565
  }
3072
3566
  export {};