@bubblelab/bubble-core 0.1.9 → 0.1.11

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 (355) hide show
  1. package/dist/bubble-bundle.d.ts +633 -1658
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +165 -43
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.d.ts +22 -1
  6. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
  7. package/dist/bubble-flow/bubble-flow-class.js +36 -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/simplified-data-analysis.flow.js +6 -3
  22. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -1
  23. package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
  24. package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
  25. package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
  26. package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
  27. package/dist/bubbles/service-bubble/agi-inc.d.ts +1121 -0
  28. package/dist/bubbles/service-bubble/agi-inc.d.ts.map +1 -0
  29. package/dist/bubbles/service-bubble/agi-inc.js +730 -0
  30. package/dist/bubbles/service-bubble/agi-inc.js.map +1 -0
  31. package/dist/bubbles/service-bubble/ai-agent.d.ts +297 -85
  32. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  33. package/dist/bubbles/service-bubble/ai-agent.js +535 -399
  34. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  35. package/dist/bubbles/service-bubble/airtable.d.ts +1753 -0
  36. package/dist/bubbles/service-bubble/airtable.d.ts.map +1 -0
  37. package/dist/bubbles/service-bubble/airtable.js +1173 -0
  38. package/dist/bubbles/service-bubble/airtable.js.map +1 -0
  39. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +240 -0
  40. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts.map +1 -0
  41. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js +119 -0
  42. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js.map +1 -0
  43. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +38 -38
  44. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +56 -56
  45. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +137 -0
  46. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js +81 -0
  48. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js.map +1 -0
  49. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +27 -27
  50. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +38 -38
  51. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +488 -0
  52. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts.map +1 -0
  53. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js +463 -0
  54. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js.map +1 -0
  55. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +262 -0
  56. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js +291 -0
  58. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js.map +1 -0
  59. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
  60. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
  61. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
  62. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
  63. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
  64. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
  65. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
  66. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
  67. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1483 -123
  68. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
  69. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +48 -0
  70. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
  71. package/dist/bubbles/service-bubble/apify/apify.d.ts +156 -11
  72. package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
  73. package/dist/bubbles/service-bubble/apify/apify.js +205 -32
  74. package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
  75. package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
  76. package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
  77. package/dist/bubbles/service-bubble/apify/index.js +3 -0
  78. package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
  79. package/dist/bubbles/service-bubble/apify/types.js +1 -2
  80. package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
  81. package/dist/bubbles/service-bubble/eleven-labs.d.ts +421 -0
  82. package/dist/bubbles/service-bubble/eleven-labs.d.ts.map +1 -0
  83. package/dist/bubbles/service-bubble/eleven-labs.js +479 -0
  84. package/dist/bubbles/service-bubble/eleven-labs.js.map +1 -0
  85. package/dist/bubbles/service-bubble/firecrawl.d.ts +37748 -0
  86. package/dist/bubbles/service-bubble/firecrawl.d.ts.map +1 -0
  87. package/dist/bubbles/service-bubble/firecrawl.js +1489 -0
  88. package/dist/bubbles/service-bubble/firecrawl.js.map +1 -0
  89. package/dist/bubbles/service-bubble/followupboss.d.ts +6822 -0
  90. package/dist/bubbles/service-bubble/followupboss.d.ts.map +1 -0
  91. package/dist/bubbles/service-bubble/followupboss.js +1394 -0
  92. package/dist/bubbles/service-bubble/followupboss.js.map +1 -0
  93. package/dist/bubbles/service-bubble/github.d.ts +2399 -0
  94. package/dist/bubbles/service-bubble/github.d.ts.map +1 -0
  95. package/dist/bubbles/service-bubble/github.js +1052 -0
  96. package/dist/bubbles/service-bubble/github.js.map +1 -0
  97. package/dist/bubbles/service-bubble/gmail.d.ts +726 -232
  98. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
  99. package/dist/bubbles/service-bubble/gmail.js +435 -7
  100. package/dist/bubbles/service-bubble/gmail.js.map +1 -1
  101. package/dist/bubbles/service-bubble/google-calendar.d.ts +8 -8
  102. package/dist/bubbles/service-bubble/google-drive.d.ts +270 -40
  103. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  104. package/dist/bubbles/service-bubble/google-drive.js +100 -78
  105. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  106. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +943 -0
  107. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts.map +1 -0
  108. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts +31 -0
  109. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts.map +1 -0
  110. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js +184 -0
  111. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js.map +1 -0
  112. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js +401 -0
  113. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js.map +1 -0
  114. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +1024 -0
  115. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts.map +1 -0
  116. package/dist/bubbles/service-bubble/{google-sheets.js → google-sheets/google-sheets.schema.js} +45 -409
  117. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -0
  118. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts +38 -0
  119. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts.map +1 -0
  120. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js +183 -0
  121. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js.map +1 -0
  122. package/dist/bubbles/service-bubble/google-sheets/index.d.ts +4 -0
  123. package/dist/bubbles/service-bubble/google-sheets/index.d.ts.map +1 -0
  124. package/dist/bubbles/service-bubble/google-sheets/index.js +4 -0
  125. package/dist/bubbles/service-bubble/google-sheets/index.js.map +1 -0
  126. package/dist/bubbles/service-bubble/hello-world.js +2 -2
  127. package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
  128. package/dist/bubbles/service-bubble/http.d.ts +6 -6
  129. package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
  130. package/dist/bubbles/service-bubble/http.js +7 -1
  131. package/dist/bubbles/service-bubble/http.js.map +1 -1
  132. package/dist/bubbles/service-bubble/insforge-db.d.ts +140 -0
  133. package/dist/bubbles/service-bubble/insforge-db.d.ts.map +1 -0
  134. package/dist/bubbles/service-bubble/insforge-db.js +260 -0
  135. package/dist/bubbles/service-bubble/insforge-db.js.map +1 -0
  136. package/dist/bubbles/service-bubble/notion/index.d.ts +3 -0
  137. package/dist/bubbles/service-bubble/notion/index.d.ts.map +1 -0
  138. package/dist/bubbles/service-bubble/notion/index.js +3 -0
  139. package/dist/bubbles/service-bubble/notion/index.js.map +1 -0
  140. package/dist/bubbles/service-bubble/notion/notion.d.ts +35405 -0
  141. package/dist/bubbles/service-bubble/notion/notion.d.ts.map +1 -0
  142. package/dist/bubbles/service-bubble/notion/notion.js +1492 -0
  143. package/dist/bubbles/service-bubble/notion/notion.js.map +1 -0
  144. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +1148 -0
  145. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts.map +1 -0
  146. package/dist/bubbles/service-bubble/notion/property-schemas.js +341 -0
  147. package/dist/bubbles/service-bubble/notion/property-schemas.js.map +1 -0
  148. package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
  149. package/dist/bubbles/service-bubble/resend.d.ts +30 -9
  150. package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
  151. package/dist/bubbles/service-bubble/resend.js +133 -2
  152. package/dist/bubbles/service-bubble/resend.js.map +1 -1
  153. package/dist/bubbles/service-bubble/slack.d.ts +525 -525
  154. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -1
  155. package/dist/bubbles/service-bubble/slack.js +2 -2
  156. package/dist/bubbles/service-bubble/slack.js.map +1 -1
  157. package/dist/bubbles/service-bubble/storage.d.ts +21 -17
  158. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  159. package/dist/bubbles/service-bubble/storage.js +59 -7
  160. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  161. package/dist/bubbles/service-bubble/telegram.d.ts +7742 -0
  162. package/dist/bubbles/service-bubble/telegram.d.ts.map +1 -0
  163. package/dist/bubbles/service-bubble/telegram.js +1132 -0
  164. package/dist/bubbles/service-bubble/telegram.js.map +1 -0
  165. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +60 -4
  166. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -1
  167. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +12 -0
  168. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -1
  169. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
  170. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +188 -0
  171. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts.map +1 -0
  172. package/dist/bubbles/tool-bubble/code-edit-tool.js +321 -0
  173. package/dist/bubbles/tool-bubble/code-edit-tool.js.map +1 -0
  174. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +8 -4
  175. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  176. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +132 -19
  177. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  178. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +455 -0
  179. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts.map +1 -0
  180. package/dist/bubbles/tool-bubble/google-maps-tool.js +205 -0
  181. package/dist/bubbles/tool-bubble/google-maps-tool.js.map +1 -0
  182. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +90 -90
  183. package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -1
  184. package/dist/bubbles/tool-bubble/instagram-tool.js +2 -2
  185. package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -1
  186. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +808 -431
  187. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -1
  188. package/dist/bubbles/tool-bubble/linkedin-tool.js +232 -12
  189. package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -1
  190. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  191. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +21 -16
  192. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
  193. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
  194. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
  195. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +17 -16
  196. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -1
  197. package/dist/bubbles/tool-bubble/research-agent-tool.js +27 -17
  198. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  199. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  200. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +485 -0
  201. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts.map +1 -0
  202. package/dist/bubbles/tool-bubble/tiktok-tool.js +226 -0
  203. package/dist/bubbles/tool-bubble/tiktok-tool.js.map +1 -0
  204. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +947 -0
  205. package/dist/bubbles/tool-bubble/twitter-tool.d.ts.map +1 -0
  206. package/dist/bubbles/tool-bubble/twitter-tool.js +494 -0
  207. package/dist/bubbles/tool-bubble/twitter-tool.js.map +1 -0
  208. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +32 -26
  209. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -1
  210. package/dist/bubbles/tool-bubble/web-crawl-tool.js +58 -59
  211. package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -1
  212. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  213. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -1
  214. package/dist/bubbles/tool-bubble/web-extract-tool.js +17 -17
  215. package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -1
  216. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +23 -115
  217. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -1
  218. package/dist/bubbles/tool-bubble/web-scrape-tool.js +51 -72
  219. package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
  220. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +18 -6
  221. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
  222. package/dist/bubbles/tool-bubble/web-search-tool.js +46 -32
  223. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
  224. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
  225. package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
  226. package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
  227. package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
  228. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +78 -78
  229. package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
  230. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +62 -62
  231. package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
  232. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +80 -80
  233. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  234. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +4 -4
  235. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  236. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +52 -52
  237. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
  238. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +2 -2
  239. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
  240. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
  241. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -1
  242. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +6 -6
  243. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
  244. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +46 -46
  245. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -1
  246. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +24 -4
  247. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
  248. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +27 -27
  249. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
  250. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +8 -8
  251. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
  252. package/dist/bubbles.json +251 -88
  253. package/dist/index.d.ts +27 -6
  254. package/dist/index.d.ts.map +1 -1
  255. package/dist/index.js +18 -4
  256. package/dist/index.js.map +1 -1
  257. package/dist/logging/BubbleLogger.d.ts +45 -16
  258. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  259. package/dist/logging/BubbleLogger.js +197 -89
  260. package/dist/logging/BubbleLogger.js.map +1 -1
  261. package/dist/logging/StreamingBubbleLogger.d.ts +13 -1
  262. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  263. package/dist/logging/StreamingBubbleLogger.js +56 -13
  264. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  265. package/dist/logging/WebhookStreamLogger.d.ts +66 -0
  266. package/dist/logging/WebhookStreamLogger.d.ts.map +1 -0
  267. package/dist/logging/WebhookStreamLogger.js +291 -0
  268. package/dist/logging/WebhookStreamLogger.js.map +1 -0
  269. package/dist/types/available-tools.d.ts +1 -1
  270. package/dist/types/available-tools.d.ts.map +1 -1
  271. package/dist/types/available-tools.js +1 -0
  272. package/dist/types/available-tools.js.map +1 -1
  273. package/dist/types/base-bubble-class.d.ts +7 -5
  274. package/dist/types/base-bubble-class.d.ts.map +1 -1
  275. package/dist/types/base-bubble-class.js +63 -40
  276. package/dist/types/base-bubble-class.js.map +1 -1
  277. package/dist/types/bubble.d.ts +3 -10
  278. package/dist/types/bubble.d.ts.map +1 -1
  279. package/dist/types/bubble.js +1 -1
  280. package/dist/types/bubble.js.map +1 -1
  281. package/dist/types/service-bubble-class.d.ts +2 -2
  282. package/dist/types/service-bubble-class.d.ts.map +1 -1
  283. package/dist/types/service-bubble-class.js +2 -2
  284. package/dist/types/service-bubble-class.js.map +1 -1
  285. package/dist/types/tool-bubble-class.d.ts +2 -2
  286. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  287. package/dist/types/tool-bubble-class.js +2 -4
  288. package/dist/types/tool-bubble-class.js.map +1 -1
  289. package/dist/types/workflow-bubble-class.d.ts +2 -2
  290. package/dist/types/workflow-bubble-class.d.ts.map +1 -1
  291. package/dist/types/workflow-bubble-class.js +2 -2
  292. package/dist/types/workflow-bubble-class.js.map +1 -1
  293. package/dist/utils/agent-formatter.d.ts +14 -2
  294. package/dist/utils/agent-formatter.d.ts.map +1 -1
  295. package/dist/utils/agent-formatter.js +176 -28
  296. package/dist/utils/agent-formatter.js.map +1 -1
  297. package/dist/utils/bubbleflow-validation.d.ts +7 -0
  298. package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
  299. package/dist/utils/bubbleflow-validation.js +257 -35
  300. package/dist/utils/bubbleflow-validation.js.map +1 -1
  301. package/dist/utils/error-sanitizer.d.ts +12 -0
  302. package/dist/utils/error-sanitizer.d.ts.map +1 -0
  303. package/dist/utils/error-sanitizer.js +77 -0
  304. package/dist/utils/error-sanitizer.js.map +1 -0
  305. package/dist/utils/json-parsing.d.ts.map +1 -1
  306. package/dist/utils/json-parsing.js +146 -0
  307. package/dist/utils/json-parsing.js.map +1 -1
  308. package/dist/utils/safe-gemini-chat.d.ts +31 -0
  309. package/dist/utils/safe-gemini-chat.d.ts.map +1 -0
  310. package/dist/utils/safe-gemini-chat.js +93 -0
  311. package/dist/utils/safe-gemini-chat.js.map +1 -0
  312. package/dist/utils/schema-comparison.d.ts +92 -0
  313. package/dist/utils/schema-comparison.d.ts.map +1 -0
  314. package/dist/utils/schema-comparison.js +716 -0
  315. package/dist/utils/schema-comparison.js.map +1 -0
  316. package/dist/utils/zod-schema.d.ts +24 -0
  317. package/dist/utils/zod-schema.d.ts.map +1 -0
  318. package/dist/utils/zod-schema.js +56 -0
  319. package/dist/utils/zod-schema.js.map +1 -0
  320. package/package.json +7 -6
  321. package/dist/bubble-trigger/index.d.ts +0 -2
  322. package/dist/bubble-trigger/index.d.ts.map +0 -1
  323. package/dist/bubble-trigger/index.js +0 -2
  324. package/dist/bubble-trigger/index.js.map +0 -1
  325. package/dist/bubble-trigger/types.d.ts +0 -87
  326. package/dist/bubble-trigger/types.d.ts.map +0 -1
  327. package/dist/bubble-trigger/types.js +0 -14
  328. package/dist/bubble-trigger/types.js.map +0 -1
  329. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
  330. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
  331. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
  332. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
  333. package/dist/bubbles/service-bubble/apify.d.ts +0 -136
  334. package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
  335. package/dist/bubbles/service-bubble/apify.js +0 -282
  336. package/dist/bubbles/service-bubble/apify.js.map +0 -1
  337. package/dist/bubbles/service-bubble/google-sheets.d.ts +0 -1811
  338. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +0 -1
  339. package/dist/bubbles/service-bubble/google-sheets.js.map +0 -1
  340. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +0 -114
  341. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +0 -1
  342. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +0 -782
  343. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +0 -1
  344. package/dist/types/ai-models.d.ts +0 -4
  345. package/dist/types/ai-models.d.ts.map +0 -1
  346. package/dist/types/ai-models.js +0 -20
  347. package/dist/types/ai-models.js.map +0 -1
  348. package/dist/types/api-scraper.schema.d.ts +0 -453
  349. package/dist/types/api-scraper.schema.d.ts.map +0 -1
  350. package/dist/types/api-scraper.schema.js +0 -160
  351. package/dist/types/api-scraper.schema.js.map +0 -1
  352. package/dist/utils/param-helper.d.ts +0 -2
  353. package/dist/utils/param-helper.d.ts.map +0 -1
  354. package/dist/utils/param-helper.js +0 -5
  355. package/dist/utils/param-helper.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;
@@ -66,7 +69,7 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
66
69
  metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
70
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
68
71
  }, "strip", z.ZodTypeAny, {
69
- format: "metadata" | "raw" | "minimal" | "full";
72
+ format: "metadata" | "minimal" | "raw" | "full";
70
73
  operation: "get_email";
71
74
  message_id: string;
72
75
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -74,7 +77,7 @@ declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
74
77
  }, {
75
78
  operation: "get_email";
76
79
  message_id: string;
77
- format?: "metadata" | "raw" | "minimal" | "full" | undefined;
80
+ format?: "metadata" | "minimal" | "raw" | "full" | undefined;
78
81
  credentials?: Partial<Record<CredentialType, string>> | undefined;
79
82
  metadata_headers?: string[] | undefined;
80
83
  }>, z.ZodObject<{
@@ -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">;
@@ -244,22 +316,23 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
244
316
  error: string;
245
317
  success: boolean;
246
318
  operation: "send_email";
247
- thread_id?: string | undefined;
248
319
  message_id?: string | undefined;
320
+ thread_id?: string | undefined;
249
321
  }, {
250
322
  error: string;
251
323
  success: boolean;
252
324
  operation: "send_email";
253
- thread_id?: string | undefined;
254
325
  message_id?: string | undefined;
326
+ thread_id?: string | undefined;
255
327
  }>, z.ZodObject<{
256
328
  operation: z.ZodLiteral<"list_emails">;
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>;
@@ -292,6 +365,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
292
365
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
293
366
  }, "strip", z.ZodTypeAny, {
294
367
  mimeType?: string | undefined;
368
+ parts?: any[] | undefined;
295
369
  headers?: {
296
370
  value: string;
297
371
  name: string;
@@ -301,9 +375,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
301
375
  size?: number | undefined;
302
376
  attachmentId?: string | undefined;
303
377
  } | undefined;
304
- parts?: any[] | undefined;
305
378
  }, {
306
379
  mimeType?: string | undefined;
380
+ parts?: any[] | undefined;
307
381
  headers?: {
308
382
  value: string;
309
383
  name: string;
@@ -313,19 +387,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
313
387
  size?: number | undefined;
314
388
  attachmentId?: string | undefined;
315
389
  } | undefined;
316
- parts?: any[] | undefined;
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;
403
+ parts?: any[] | undefined;
329
404
  headers?: {
330
405
  value: string;
331
406
  name: string;
@@ -335,19 +410,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
335
410
  size?: number | undefined;
336
411
  attachmentId?: string | undefined;
337
412
  } | undefined;
338
- parts?: any[] | undefined;
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;
426
+ parts?: any[] | undefined;
351
427
  headers?: {
352
428
  value: string;
353
429
  name: string;
@@ -357,7 +433,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
357
433
  size?: number | undefined;
358
434
  attachmentId?: string | undefined;
359
435
  } | undefined;
360
- parts?: any[] | undefined;
361
436
  } | undefined;
362
437
  }>, "many">>;
363
438
  next_page_token: z.ZodOptional<z.ZodString>;
@@ -369,15 +444,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
457
+ parts?: any[] | undefined;
381
458
  headers?: {
382
459
  value: string;
383
460
  name: string;
@@ -387,7 +464,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
387
464
  size?: number | undefined;
388
465
  attachmentId?: string | undefined;
389
466
  } | undefined;
390
- parts?: any[] | undefined;
391
467
  } | undefined;
392
468
  }[] | undefined;
393
469
  next_page_token?: string | undefined;
@@ -398,15 +474,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
487
+ parts?: any[] | undefined;
410
488
  headers?: {
411
489
  value: string;
412
490
  name: string;
@@ -416,7 +494,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
416
494
  size?: number | undefined;
417
495
  attachmentId?: string | undefined;
418
496
  } | undefined;
419
- parts?: any[] | undefined;
420
497
  } | undefined;
421
498
  }[] | undefined;
422
499
  next_page_token?: string | undefined;
@@ -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>;
@@ -461,6 +539,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
461
539
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
462
540
  }, "strip", z.ZodTypeAny, {
463
541
  mimeType?: string | undefined;
542
+ parts?: any[] | undefined;
464
543
  headers?: {
465
544
  value: string;
466
545
  name: string;
@@ -470,9 +549,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
470
549
  size?: number | undefined;
471
550
  attachmentId?: string | undefined;
472
551
  } | undefined;
473
- parts?: any[] | undefined;
474
552
  }, {
475
553
  mimeType?: string | undefined;
554
+ parts?: any[] | undefined;
476
555
  headers?: {
477
556
  value: string;
478
557
  name: string;
@@ -482,19 +561,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
482
561
  size?: number | undefined;
483
562
  attachmentId?: string | undefined;
484
563
  } | undefined;
485
- parts?: any[] | undefined;
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;
577
+ parts?: any[] | undefined;
498
578
  headers?: {
499
579
  value: string;
500
580
  name: string;
@@ -504,19 +584,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
504
584
  size?: number | undefined;
505
585
  attachmentId?: string | undefined;
506
586
  } | undefined;
507
- parts?: any[] | undefined;
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;
600
+ parts?: any[] | undefined;
520
601
  headers?: {
521
602
  value: string;
522
603
  name: string;
@@ -526,7 +607,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
526
607
  size?: number | undefined;
527
608
  attachmentId?: string | undefined;
528
609
  } | undefined;
529
- parts?: any[] | undefined;
530
610
  } | undefined;
531
611
  }>>;
532
612
  error: z.ZodString;
@@ -536,15 +616,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
629
+ parts?: any[] | undefined;
548
630
  headers?: {
549
631
  value: string;
550
632
  name: string;
@@ -554,7 +636,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
554
636
  size?: number | undefined;
555
637
  attachmentId?: string | undefined;
556
638
  } | undefined;
557
- parts?: any[] | undefined;
558
639
  } | undefined;
559
640
  } | undefined;
560
641
  }, {
@@ -563,15 +644,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
657
+ parts?: any[] | undefined;
575
658
  headers?: {
576
659
  value: string;
577
660
  name: string;
@@ -581,7 +664,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
581
664
  size?: number | undefined;
582
665
  attachmentId?: string | undefined;
583
666
  } | undefined;
584
- parts?: any[] | undefined;
585
667
  } | undefined;
586
668
  } | undefined;
587
669
  }>, z.ZodObject<{
@@ -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>;
@@ -624,6 +707,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
624
707
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
625
708
  }, "strip", z.ZodTypeAny, {
626
709
  mimeType?: string | undefined;
710
+ parts?: any[] | undefined;
627
711
  headers?: {
628
712
  value: string;
629
713
  name: string;
@@ -633,9 +717,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
633
717
  size?: number | undefined;
634
718
  attachmentId?: string | undefined;
635
719
  } | undefined;
636
- parts?: any[] | undefined;
637
720
  }, {
638
721
  mimeType?: string | undefined;
722
+ parts?: any[] | undefined;
639
723
  headers?: {
640
724
  value: string;
641
725
  name: string;
@@ -645,19 +729,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
645
729
  size?: number | undefined;
646
730
  attachmentId?: string | undefined;
647
731
  } | undefined;
648
- parts?: any[] | undefined;
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;
745
+ parts?: any[] | undefined;
661
746
  headers?: {
662
747
  value: string;
663
748
  name: string;
@@ -667,19 +752,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
667
752
  size?: number | undefined;
668
753
  attachmentId?: string | undefined;
669
754
  } | undefined;
670
- parts?: any[] | undefined;
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;
768
+ parts?: any[] | undefined;
683
769
  headers?: {
684
770
  value: string;
685
771
  name: string;
@@ -689,7 +775,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
689
775
  size?: number | undefined;
690
776
  attachmentId?: string | undefined;
691
777
  } | undefined;
692
- parts?: any[] | undefined;
693
778
  } | undefined;
694
779
  }>, "many">>;
695
780
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
@@ -700,15 +785,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
798
+ parts?: any[] | undefined;
712
799
  headers?: {
713
800
  value: string;
714
801
  name: string;
@@ -718,7 +805,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
718
805
  size?: number | undefined;
719
806
  attachmentId?: string | undefined;
720
807
  } | undefined;
721
- parts?: any[] | undefined;
722
808
  } | undefined;
723
809
  }[] | undefined;
724
810
  result_size_estimate?: number | undefined;
@@ -728,15 +814,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
827
+ parts?: any[] | undefined;
740
828
  headers?: {
741
829
  value: string;
742
830
  name: string;
@@ -746,7 +834,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
746
834
  size?: number | undefined;
747
835
  attachmentId?: string | undefined;
748
836
  } | undefined;
749
- parts?: any[] | undefined;
750
837
  } | undefined;
751
838
  }[] | undefined;
752
839
  result_size_estimate?: number | undefined;
@@ -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>;
@@ -822,6 +910,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
822
910
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
823
911
  }, "strip", z.ZodTypeAny, {
824
912
  mimeType?: string | undefined;
913
+ parts?: any[] | undefined;
825
914
  headers?: {
826
915
  value: string;
827
916
  name: string;
@@ -831,9 +920,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
831
920
  size?: number | undefined;
832
921
  attachmentId?: string | undefined;
833
922
  } | undefined;
834
- parts?: any[] | undefined;
835
923
  }, {
836
924
  mimeType?: string | undefined;
925
+ parts?: any[] | undefined;
837
926
  headers?: {
838
927
  value: string;
839
928
  name: string;
@@ -843,19 +932,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
843
932
  size?: number | undefined;
844
933
  attachmentId?: string | undefined;
845
934
  } | undefined;
846
- parts?: any[] | undefined;
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;
948
+ parts?: any[] | undefined;
859
949
  headers?: {
860
950
  value: string;
861
951
  name: string;
@@ -865,19 +955,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
865
955
  size?: number | undefined;
866
956
  attachmentId?: string | undefined;
867
957
  } | undefined;
868
- parts?: any[] | undefined;
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;
971
+ parts?: any[] | undefined;
881
972
  headers?: {
882
973
  value: string;
883
974
  name: string;
@@ -887,21 +978,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
887
978
  size?: number | undefined;
888
979
  attachmentId?: string | undefined;
889
980
  } | undefined;
890
- parts?: any[] | undefined;
891
981
  } | undefined;
892
982
  }>;
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;
996
+ parts?: any[] | undefined;
905
997
  headers?: {
906
998
  value: string;
907
999
  name: string;
@@ -911,22 +1003,23 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
911
1003
  size?: number | undefined;
912
1004
  attachmentId?: string | undefined;
913
1005
  } | undefined;
914
- parts?: any[] | undefined;
915
1006
  } | undefined;
916
1007
  };
917
1008
  id: string;
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;
1022
+ parts?: any[] | undefined;
930
1023
  headers?: {
931
1024
  value: string;
932
1025
  name: string;
@@ -936,7 +1029,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
936
1029
  size?: number | undefined;
937
1030
  attachmentId?: string | undefined;
938
1031
  } | undefined;
939
- parts?: any[] | undefined;
940
1032
  } | undefined;
941
1033
  };
942
1034
  id: string;
@@ -949,15 +1041,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
1054
+ parts?: any[] | undefined;
961
1055
  headers?: {
962
1056
  value: string;
963
1057
  name: string;
@@ -967,7 +1061,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
967
1061
  size?: number | undefined;
968
1062
  attachmentId?: string | undefined;
969
1063
  } | undefined;
970
- parts?: any[] | undefined;
971
1064
  } | undefined;
972
1065
  };
973
1066
  id: string;
@@ -979,15 +1072,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
1085
+ parts?: any[] | undefined;
991
1086
  headers?: {
992
1087
  value: string;
993
1088
  name: string;
@@ -997,7 +1092,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
997
1092
  size?: number | undefined;
998
1093
  attachmentId?: string | undefined;
999
1094
  } | undefined;
1000
- parts?: any[] | undefined;
1001
1095
  } | undefined;
1002
1096
  };
1003
1097
  id: string;
@@ -1012,14 +1106,14 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1012
1106
  error: string;
1013
1107
  success: boolean;
1014
1108
  operation: "send_draft";
1015
- thread_id?: string | undefined;
1016
1109
  message_id?: string | undefined;
1110
+ thread_id?: string | undefined;
1017
1111
  }, {
1018
1112
  error: string;
1019
1113
  success: boolean;
1020
1114
  operation: "send_draft";
1021
- thread_id?: string | undefined;
1022
1115
  message_id?: string | undefined;
1116
+ thread_id?: string | undefined;
1023
1117
  }>, z.ZodObject<{
1024
1118
  operation: z.ZodLiteral<"list_drafts">;
1025
1119
  success: z.ZodBoolean;
@@ -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>;
@@ -1062,6 +1157,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1062
1157
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1063
1158
  }, "strip", z.ZodTypeAny, {
1064
1159
  mimeType?: string | undefined;
1160
+ parts?: any[] | undefined;
1065
1161
  headers?: {
1066
1162
  value: string;
1067
1163
  name: string;
@@ -1071,9 +1167,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1071
1167
  size?: number | undefined;
1072
1168
  attachmentId?: string | undefined;
1073
1169
  } | undefined;
1074
- parts?: any[] | undefined;
1075
1170
  }, {
1076
1171
  mimeType?: string | undefined;
1172
+ parts?: any[] | undefined;
1077
1173
  headers?: {
1078
1174
  value: string;
1079
1175
  name: string;
@@ -1083,19 +1179,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1083
1179
  size?: number | undefined;
1084
1180
  attachmentId?: string | undefined;
1085
1181
  } | undefined;
1086
- parts?: any[] | undefined;
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;
1195
+ parts?: any[] | undefined;
1099
1196
  headers?: {
1100
1197
  value: string;
1101
1198
  name: string;
@@ -1105,19 +1202,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1105
1202
  size?: number | undefined;
1106
1203
  attachmentId?: string | undefined;
1107
1204
  } | undefined;
1108
- parts?: any[] | undefined;
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;
1218
+ parts?: any[] | undefined;
1121
1219
  headers?: {
1122
1220
  value: string;
1123
1221
  name: string;
@@ -1127,21 +1225,22 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1127
1225
  size?: number | undefined;
1128
1226
  attachmentId?: string | undefined;
1129
1227
  } | undefined;
1130
- parts?: any[] | undefined;
1131
1228
  } | undefined;
1132
1229
  }>;
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;
1243
+ parts?: any[] | undefined;
1145
1244
  headers?: {
1146
1245
  value: string;
1147
1246
  name: string;
@@ -1151,22 +1250,23 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1151
1250
  size?: number | undefined;
1152
1251
  attachmentId?: string | undefined;
1153
1252
  } | undefined;
1154
- parts?: any[] | undefined;
1155
1253
  } | undefined;
1156
1254
  };
1157
1255
  id: string;
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;
1269
+ parts?: any[] | undefined;
1170
1270
  headers?: {
1171
1271
  value: string;
1172
1272
  name: string;
@@ -1176,7 +1276,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1176
1276
  size?: number | undefined;
1177
1277
  attachmentId?: string | undefined;
1178
1278
  } | undefined;
1179
- parts?: any[] | undefined;
1180
1279
  } | undefined;
1181
1280
  };
1182
1281
  id: string;
@@ -1193,15 +1292,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
1305
+ parts?: any[] | undefined;
1205
1306
  headers?: {
1206
1307
  value: string;
1207
1308
  name: string;
@@ -1211,7 +1312,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1211
1312
  size?: number | undefined;
1212
1313
  attachmentId?: string | undefined;
1213
1314
  } | undefined;
1214
- parts?: any[] | undefined;
1215
1315
  } | undefined;
1216
1316
  };
1217
1317
  id: string;
@@ -1225,15 +1325,17 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
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;
1338
+ parts?: any[] | undefined;
1237
1339
  headers?: {
1238
1340
  value: string;
1239
1341
  name: string;
@@ -1243,7 +1345,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1243
1345
  size?: number | undefined;
1244
1346
  attachmentId?: string | undefined;
1245
1347
  } | undefined;
1246
- parts?: any[] | undefined;
1247
1348
  } | undefined;
1248
1349
  };
1249
1350
  id: string;
@@ -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>;
@@ -1321,6 +1423,7 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1321
1423
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1322
1424
  }, "strip", z.ZodTypeAny, {
1323
1425
  mimeType?: string | undefined;
1426
+ parts?: any[] | undefined;
1324
1427
  headers?: {
1325
1428
  value: string;
1326
1429
  name: string;
@@ -1330,9 +1433,9 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1330
1433
  size?: number | undefined;
1331
1434
  attachmentId?: string | undefined;
1332
1435
  } | undefined;
1333
- parts?: any[] | undefined;
1334
1436
  }, {
1335
1437
  mimeType?: string | undefined;
1438
+ parts?: any[] | undefined;
1336
1439
  headers?: {
1337
1440
  value: string;
1338
1441
  name: string;
@@ -1342,19 +1445,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1342
1445
  size?: number | undefined;
1343
1446
  attachmentId?: string | undefined;
1344
1447
  } | undefined;
1345
- parts?: any[] | undefined;
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;
1461
+ parts?: any[] | undefined;
1358
1462
  headers?: {
1359
1463
  value: string;
1360
1464
  name: string;
@@ -1364,19 +1468,20 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1364
1468
  size?: number | undefined;
1365
1469
  attachmentId?: string | undefined;
1366
1470
  } | undefined;
1367
- parts?: any[] | undefined;
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;
1484
+ parts?: any[] | undefined;
1380
1485
  headers?: {
1381
1486
  value: string;
1382
1487
  name: string;
@@ -1386,7 +1491,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1386
1491
  size?: number | undefined;
1387
1492
  attachmentId?: string | undefined;
1388
1493
  } | undefined;
1389
- parts?: any[] | undefined;
1390
1494
  } | undefined;
1391
1495
  }>, "many">>;
1392
1496
  snippet: z.ZodOptional<z.ZodString>;
@@ -1394,15 +1498,17 @@ 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;
1511
+ parts?: any[] | undefined;
1406
1512
  headers?: {
1407
1513
  value: string;
1408
1514
  name: string;
@@ -1412,7 +1518,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1412
1518
  size?: number | undefined;
1413
1519
  attachmentId?: string | undefined;
1414
1520
  } | undefined;
1415
- parts?: any[] | undefined;
1416
1521
  } | undefined;
1417
1522
  }[] | undefined;
1418
1523
  snippet?: string | undefined;
@@ -1421,15 +1526,17 @@ 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;
1539
+ parts?: any[] | undefined;
1433
1540
  headers?: {
1434
1541
  value: string;
1435
1542
  name: string;
@@ -1439,7 +1546,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1439
1546
  size?: number | undefined;
1440
1547
  attachmentId?: string | undefined;
1441
1548
  } | undefined;
1442
- parts?: any[] | undefined;
1443
1549
  } | undefined;
1444
1550
  }[] | undefined;
1445
1551
  snippet?: string | undefined;
@@ -1458,15 +1564,17 @@ 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;
1577
+ parts?: any[] | undefined;
1470
1578
  headers?: {
1471
1579
  value: string;
1472
1580
  name: string;
@@ -1476,7 +1584,6 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1476
1584
  size?: number | undefined;
1477
1585
  attachmentId?: string | undefined;
1478
1586
  } | undefined;
1479
- parts?: any[] | undefined;
1480
1587
  } | undefined;
1481
1588
  }[] | undefined;
1482
1589
  snippet?: string | undefined;
@@ -1492,15 +1599,17 @@ 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;
1612
+ parts?: any[] | undefined;
1504
1613
  headers?: {
1505
1614
  value: string;
1506
1615
  name: string;
@@ -1510,12 +1619,134 @@ declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1510
1619
  size?: number | undefined;
1511
1620
  attachmentId?: string | undefined;
1512
1621
  } | undefined;
1513
- parts?: any[] | undefined;
1514
1622
  } | undefined;
1515
1623
  }[] | undefined;
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?: "system" | "user" | undefined;
1640
+ messageListVisibility?: "show" | "hide" | undefined;
1641
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1642
+ }, {
1643
+ name: string;
1644
+ id: string;
1645
+ type?: "system" | "user" | undefined;
1646
+ messageListVisibility?: "show" | "hide" | undefined;
1647
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1648
+ }>, "many">>;
1649
+ error: z.ZodString;
1650
+ }, "strip", z.ZodTypeAny, {
1651
+ error: string;
1652
+ success: boolean;
1653
+ operation: "list_labels";
1654
+ labels?: {
1655
+ name: string;
1656
+ id: string;
1657
+ type?: "system" | "user" | undefined;
1658
+ messageListVisibility?: "show" | "hide" | undefined;
1659
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1660
+ }[] | undefined;
1661
+ }, {
1662
+ error: string;
1663
+ success: boolean;
1664
+ operation: "list_labels";
1665
+ labels?: {
1666
+ name: string;
1667
+ id: string;
1668
+ type?: "system" | "user" | 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?: "system" | "user" | undefined;
1685
+ messageListVisibility?: "show" | "hide" | undefined;
1686
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1687
+ }, {
1688
+ name: string;
1689
+ id: string;
1690
+ type?: "system" | "user" | undefined;
1691
+ messageListVisibility?: "show" | "hide" | undefined;
1692
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1693
+ }>>;
1694
+ error: z.ZodString;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ error: string;
1697
+ success: boolean;
1698
+ operation: "create_label";
1699
+ label?: {
1700
+ name: string;
1701
+ id: string;
1702
+ type?: "system" | "user" | undefined;
1703
+ messageListVisibility?: "show" | "hide" | undefined;
1704
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1705
+ } | undefined;
1706
+ }, {
1707
+ error: string;
1708
+ success: boolean;
1709
+ operation: "create_label";
1710
+ label?: {
1711
+ name: string;
1712
+ id: string;
1713
+ type?: "system" | "user" | 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
+ error: string;
1725
+ success: boolean;
1726
+ operation: "modify_message_labels";
1727
+ message_id?: string | undefined;
1728
+ label_ids?: string[] | undefined;
1729
+ }, {
1730
+ error: string;
1731
+ success: boolean;
1732
+ operation: "modify_message_labels";
1733
+ message_id?: string | undefined;
1734
+ label_ids?: 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
+ error: string;
1742
+ success: boolean;
1743
+ operation: "modify_thread_labels";
1744
+ thread_id?: string | undefined;
1745
+ }, {
1746
+ error: string;
1747
+ success: boolean;
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;
@@ -1594,7 +1828,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1594
1828
  metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1595
1829
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1596
1830
  }, "strip", z.ZodTypeAny, {
1597
- format: "metadata" | "raw" | "minimal" | "full";
1831
+ format: "metadata" | "minimal" | "raw" | "full";
1598
1832
  operation: "get_email";
1599
1833
  message_id: string;
1600
1834
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -1602,7 +1836,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1602
1836
  }, {
1603
1837
  operation: "get_email";
1604
1838
  message_id: string;
1605
- format?: "metadata" | "raw" | "minimal" | "full" | undefined;
1839
+ format?: "metadata" | "minimal" | "raw" | "full" | undefined;
1606
1840
  credentials?: Partial<Record<CredentialType, string>> | undefined;
1607
1841
  metadata_headers?: string[] | undefined;
1608
1842
  }>, z.ZodObject<{
@@ -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">;
@@ -1772,22 +2075,23 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1772
2075
  error: string;
1773
2076
  success: boolean;
1774
2077
  operation: "send_email";
1775
- thread_id?: string | undefined;
1776
2078
  message_id?: string | undefined;
2079
+ thread_id?: string | undefined;
1777
2080
  }, {
1778
2081
  error: string;
1779
2082
  success: boolean;
1780
2083
  operation: "send_email";
1781
- thread_id?: string | undefined;
1782
2084
  message_id?: string | undefined;
2085
+ thread_id?: string | undefined;
1783
2086
  }>, z.ZodObject<{
1784
2087
  operation: z.ZodLiteral<"list_emails">;
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>;
@@ -1820,6 +2124,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1820
2124
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1821
2125
  }, "strip", z.ZodTypeAny, {
1822
2126
  mimeType?: string | undefined;
2127
+ parts?: any[] | undefined;
1823
2128
  headers?: {
1824
2129
  value: string;
1825
2130
  name: string;
@@ -1829,9 +2134,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1829
2134
  size?: number | undefined;
1830
2135
  attachmentId?: string | undefined;
1831
2136
  } | undefined;
1832
- parts?: any[] | undefined;
1833
2137
  }, {
1834
2138
  mimeType?: string | undefined;
2139
+ parts?: any[] | undefined;
1835
2140
  headers?: {
1836
2141
  value: string;
1837
2142
  name: string;
@@ -1841,19 +2146,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1841
2146
  size?: number | undefined;
1842
2147
  attachmentId?: string | undefined;
1843
2148
  } | undefined;
1844
- parts?: any[] | undefined;
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;
2162
+ parts?: any[] | undefined;
1857
2163
  headers?: {
1858
2164
  value: string;
1859
2165
  name: string;
@@ -1863,19 +2169,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1863
2169
  size?: number | undefined;
1864
2170
  attachmentId?: string | undefined;
1865
2171
  } | undefined;
1866
- parts?: any[] | undefined;
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;
2185
+ parts?: any[] | undefined;
1879
2186
  headers?: {
1880
2187
  value: string;
1881
2188
  name: string;
@@ -1885,7 +2192,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1885
2192
  size?: number | undefined;
1886
2193
  attachmentId?: string | undefined;
1887
2194
  } | undefined;
1888
- parts?: any[] | undefined;
1889
2195
  } | undefined;
1890
2196
  }>, "many">>;
1891
2197
  next_page_token: z.ZodOptional<z.ZodString>;
@@ -1897,15 +2203,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2216
+ parts?: any[] | undefined;
1909
2217
  headers?: {
1910
2218
  value: string;
1911
2219
  name: string;
@@ -1915,7 +2223,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1915
2223
  size?: number | undefined;
1916
2224
  attachmentId?: string | undefined;
1917
2225
  } | undefined;
1918
- parts?: any[] | undefined;
1919
2226
  } | undefined;
1920
2227
  }[] | undefined;
1921
2228
  next_page_token?: string | undefined;
@@ -1926,15 +2233,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2246
+ parts?: any[] | undefined;
1938
2247
  headers?: {
1939
2248
  value: string;
1940
2249
  name: string;
@@ -1944,7 +2253,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1944
2253
  size?: number | undefined;
1945
2254
  attachmentId?: string | undefined;
1946
2255
  } | undefined;
1947
- parts?: any[] | undefined;
1948
2256
  } | undefined;
1949
2257
  }[] | undefined;
1950
2258
  next_page_token?: string | undefined;
@@ -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>;
@@ -1989,6 +2298,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1989
2298
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1990
2299
  }, "strip", z.ZodTypeAny, {
1991
2300
  mimeType?: string | undefined;
2301
+ parts?: any[] | undefined;
1992
2302
  headers?: {
1993
2303
  value: string;
1994
2304
  name: string;
@@ -1998,9 +2308,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
1998
2308
  size?: number | undefined;
1999
2309
  attachmentId?: string | undefined;
2000
2310
  } | undefined;
2001
- parts?: any[] | undefined;
2002
2311
  }, {
2003
2312
  mimeType?: string | undefined;
2313
+ parts?: any[] | undefined;
2004
2314
  headers?: {
2005
2315
  value: string;
2006
2316
  name: string;
@@ -2010,19 +2320,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2010
2320
  size?: number | undefined;
2011
2321
  attachmentId?: string | undefined;
2012
2322
  } | undefined;
2013
- parts?: any[] | undefined;
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;
2336
+ parts?: any[] | undefined;
2026
2337
  headers?: {
2027
2338
  value: string;
2028
2339
  name: string;
@@ -2032,19 +2343,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2032
2343
  size?: number | undefined;
2033
2344
  attachmentId?: string | undefined;
2034
2345
  } | undefined;
2035
- parts?: any[] | undefined;
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;
2359
+ parts?: any[] | undefined;
2048
2360
  headers?: {
2049
2361
  value: string;
2050
2362
  name: string;
@@ -2054,7 +2366,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2054
2366
  size?: number | undefined;
2055
2367
  attachmentId?: string | undefined;
2056
2368
  } | undefined;
2057
- parts?: any[] | undefined;
2058
2369
  } | undefined;
2059
2370
  }>>;
2060
2371
  error: z.ZodString;
@@ -2064,15 +2375,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2388
+ parts?: any[] | undefined;
2076
2389
  headers?: {
2077
2390
  value: string;
2078
2391
  name: string;
@@ -2082,7 +2395,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2082
2395
  size?: number | undefined;
2083
2396
  attachmentId?: string | undefined;
2084
2397
  } | undefined;
2085
- parts?: any[] | undefined;
2086
2398
  } | undefined;
2087
2399
  } | undefined;
2088
2400
  }, {
@@ -2091,15 +2403,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2416
+ parts?: any[] | undefined;
2103
2417
  headers?: {
2104
2418
  value: string;
2105
2419
  name: string;
@@ -2109,7 +2423,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2109
2423
  size?: number | undefined;
2110
2424
  attachmentId?: string | undefined;
2111
2425
  } | undefined;
2112
- parts?: any[] | undefined;
2113
2426
  } | undefined;
2114
2427
  } | undefined;
2115
2428
  }>, z.ZodObject<{
@@ -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>;
@@ -2152,6 +2466,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2152
2466
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2153
2467
  }, "strip", z.ZodTypeAny, {
2154
2468
  mimeType?: string | undefined;
2469
+ parts?: any[] | undefined;
2155
2470
  headers?: {
2156
2471
  value: string;
2157
2472
  name: string;
@@ -2161,9 +2476,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2161
2476
  size?: number | undefined;
2162
2477
  attachmentId?: string | undefined;
2163
2478
  } | undefined;
2164
- parts?: any[] | undefined;
2165
2479
  }, {
2166
2480
  mimeType?: string | undefined;
2481
+ parts?: any[] | undefined;
2167
2482
  headers?: {
2168
2483
  value: string;
2169
2484
  name: string;
@@ -2173,19 +2488,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2173
2488
  size?: number | undefined;
2174
2489
  attachmentId?: string | undefined;
2175
2490
  } | undefined;
2176
- parts?: any[] | undefined;
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;
2504
+ parts?: any[] | undefined;
2189
2505
  headers?: {
2190
2506
  value: string;
2191
2507
  name: string;
@@ -2195,19 +2511,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2195
2511
  size?: number | undefined;
2196
2512
  attachmentId?: string | undefined;
2197
2513
  } | undefined;
2198
- parts?: any[] | undefined;
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;
2527
+ parts?: any[] | undefined;
2211
2528
  headers?: {
2212
2529
  value: string;
2213
2530
  name: string;
@@ -2217,7 +2534,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2217
2534
  size?: number | undefined;
2218
2535
  attachmentId?: string | undefined;
2219
2536
  } | undefined;
2220
- parts?: any[] | undefined;
2221
2537
  } | undefined;
2222
2538
  }>, "many">>;
2223
2539
  result_size_estimate: z.ZodOptional<z.ZodNumber>;
@@ -2228,15 +2544,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2557
+ parts?: any[] | undefined;
2240
2558
  headers?: {
2241
2559
  value: string;
2242
2560
  name: string;
@@ -2246,7 +2564,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2246
2564
  size?: number | undefined;
2247
2565
  attachmentId?: string | undefined;
2248
2566
  } | undefined;
2249
- parts?: any[] | undefined;
2250
2567
  } | undefined;
2251
2568
  }[] | undefined;
2252
2569
  result_size_estimate?: number | undefined;
@@ -2256,15 +2573,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2586
+ parts?: any[] | undefined;
2268
2587
  headers?: {
2269
2588
  value: string;
2270
2589
  name: string;
@@ -2274,7 +2593,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2274
2593
  size?: number | undefined;
2275
2594
  attachmentId?: string | undefined;
2276
2595
  } | undefined;
2277
- parts?: any[] | undefined;
2278
2596
  } | undefined;
2279
2597
  }[] | undefined;
2280
2598
  result_size_estimate?: number | undefined;
@@ -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>;
@@ -2350,6 +2669,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2350
2669
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2351
2670
  }, "strip", z.ZodTypeAny, {
2352
2671
  mimeType?: string | undefined;
2672
+ parts?: any[] | undefined;
2353
2673
  headers?: {
2354
2674
  value: string;
2355
2675
  name: string;
@@ -2359,9 +2679,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2359
2679
  size?: number | undefined;
2360
2680
  attachmentId?: string | undefined;
2361
2681
  } | undefined;
2362
- parts?: any[] | undefined;
2363
2682
  }, {
2364
2683
  mimeType?: string | undefined;
2684
+ parts?: any[] | undefined;
2365
2685
  headers?: {
2366
2686
  value: string;
2367
2687
  name: string;
@@ -2371,19 +2691,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2371
2691
  size?: number | undefined;
2372
2692
  attachmentId?: string | undefined;
2373
2693
  } | undefined;
2374
- parts?: any[] | undefined;
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;
2707
+ parts?: any[] | undefined;
2387
2708
  headers?: {
2388
2709
  value: string;
2389
2710
  name: string;
@@ -2393,19 +2714,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2393
2714
  size?: number | undefined;
2394
2715
  attachmentId?: string | undefined;
2395
2716
  } | undefined;
2396
- parts?: any[] | undefined;
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;
2730
+ parts?: any[] | undefined;
2409
2731
  headers?: {
2410
2732
  value: string;
2411
2733
  name: string;
@@ -2415,21 +2737,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2415
2737
  size?: number | undefined;
2416
2738
  attachmentId?: string | undefined;
2417
2739
  } | undefined;
2418
- parts?: any[] | undefined;
2419
2740
  } | undefined;
2420
2741
  }>;
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;
2755
+ parts?: any[] | undefined;
2433
2756
  headers?: {
2434
2757
  value: string;
2435
2758
  name: string;
@@ -2439,22 +2762,23 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2439
2762
  size?: number | undefined;
2440
2763
  attachmentId?: string | undefined;
2441
2764
  } | undefined;
2442
- parts?: any[] | undefined;
2443
2765
  } | undefined;
2444
2766
  };
2445
2767
  id: string;
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;
2781
+ parts?: any[] | undefined;
2458
2782
  headers?: {
2459
2783
  value: string;
2460
2784
  name: string;
@@ -2464,7 +2788,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2464
2788
  size?: number | undefined;
2465
2789
  attachmentId?: string | undefined;
2466
2790
  } | undefined;
2467
- parts?: any[] | undefined;
2468
2791
  } | undefined;
2469
2792
  };
2470
2793
  id: string;
@@ -2477,15 +2800,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2813
+ parts?: any[] | undefined;
2489
2814
  headers?: {
2490
2815
  value: string;
2491
2816
  name: string;
@@ -2495,7 +2820,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2495
2820
  size?: number | undefined;
2496
2821
  attachmentId?: string | undefined;
2497
2822
  } | undefined;
2498
- parts?: any[] | undefined;
2499
2823
  } | undefined;
2500
2824
  };
2501
2825
  id: string;
@@ -2507,15 +2831,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
2844
+ parts?: any[] | undefined;
2519
2845
  headers?: {
2520
2846
  value: string;
2521
2847
  name: string;
@@ -2525,7 +2851,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2525
2851
  size?: number | undefined;
2526
2852
  attachmentId?: string | undefined;
2527
2853
  } | undefined;
2528
- parts?: any[] | undefined;
2529
2854
  } | undefined;
2530
2855
  };
2531
2856
  id: string;
@@ -2540,14 +2865,14 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2540
2865
  error: string;
2541
2866
  success: boolean;
2542
2867
  operation: "send_draft";
2543
- thread_id?: string | undefined;
2544
2868
  message_id?: string | undefined;
2869
+ thread_id?: string | undefined;
2545
2870
  }, {
2546
2871
  error: string;
2547
2872
  success: boolean;
2548
2873
  operation: "send_draft";
2549
- thread_id?: string | undefined;
2550
2874
  message_id?: string | undefined;
2875
+ thread_id?: string | undefined;
2551
2876
  }>, z.ZodObject<{
2552
2877
  operation: z.ZodLiteral<"list_drafts">;
2553
2878
  success: z.ZodBoolean;
@@ -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>;
@@ -2590,6 +2916,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2590
2916
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2591
2917
  }, "strip", z.ZodTypeAny, {
2592
2918
  mimeType?: string | undefined;
2919
+ parts?: any[] | undefined;
2593
2920
  headers?: {
2594
2921
  value: string;
2595
2922
  name: string;
@@ -2599,9 +2926,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2599
2926
  size?: number | undefined;
2600
2927
  attachmentId?: string | undefined;
2601
2928
  } | undefined;
2602
- parts?: any[] | undefined;
2603
2929
  }, {
2604
2930
  mimeType?: string | undefined;
2931
+ parts?: any[] | undefined;
2605
2932
  headers?: {
2606
2933
  value: string;
2607
2934
  name: string;
@@ -2611,19 +2938,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2611
2938
  size?: number | undefined;
2612
2939
  attachmentId?: string | undefined;
2613
2940
  } | undefined;
2614
- parts?: any[] | undefined;
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;
2954
+ parts?: any[] | undefined;
2627
2955
  headers?: {
2628
2956
  value: string;
2629
2957
  name: string;
@@ -2633,19 +2961,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2633
2961
  size?: number | undefined;
2634
2962
  attachmentId?: string | undefined;
2635
2963
  } | undefined;
2636
- parts?: any[] | undefined;
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;
2977
+ parts?: any[] | undefined;
2649
2978
  headers?: {
2650
2979
  value: string;
2651
2980
  name: string;
@@ -2655,21 +2984,22 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2655
2984
  size?: number | undefined;
2656
2985
  attachmentId?: string | undefined;
2657
2986
  } | undefined;
2658
- parts?: any[] | undefined;
2659
2987
  } | undefined;
2660
2988
  }>;
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;
3002
+ parts?: any[] | undefined;
2673
3003
  headers?: {
2674
3004
  value: string;
2675
3005
  name: string;
@@ -2679,22 +3009,23 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2679
3009
  size?: number | undefined;
2680
3010
  attachmentId?: string | undefined;
2681
3011
  } | undefined;
2682
- parts?: any[] | undefined;
2683
3012
  } | undefined;
2684
3013
  };
2685
3014
  id: string;
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;
3028
+ parts?: any[] | undefined;
2698
3029
  headers?: {
2699
3030
  value: string;
2700
3031
  name: string;
@@ -2704,7 +3035,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2704
3035
  size?: number | undefined;
2705
3036
  attachmentId?: string | undefined;
2706
3037
  } | undefined;
2707
- parts?: any[] | undefined;
2708
3038
  } | undefined;
2709
3039
  };
2710
3040
  id: string;
@@ -2721,15 +3051,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
3064
+ parts?: any[] | undefined;
2733
3065
  headers?: {
2734
3066
  value: string;
2735
3067
  name: string;
@@ -2739,7 +3071,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2739
3071
  size?: number | undefined;
2740
3072
  attachmentId?: string | undefined;
2741
3073
  } | undefined;
2742
- parts?: any[] | undefined;
2743
3074
  } | undefined;
2744
3075
  };
2745
3076
  id: string;
@@ -2753,15 +3084,17 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
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;
3097
+ parts?: any[] | undefined;
2765
3098
  headers?: {
2766
3099
  value: string;
2767
3100
  name: string;
@@ -2771,7 +3104,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2771
3104
  size?: number | undefined;
2772
3105
  attachmentId?: string | undefined;
2773
3106
  } | undefined;
2774
- parts?: any[] | undefined;
2775
3107
  } | undefined;
2776
3108
  };
2777
3109
  id: string;
@@ -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>;
@@ -2849,6 +3182,7 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2849
3182
  parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2850
3183
  }, "strip", z.ZodTypeAny, {
2851
3184
  mimeType?: string | undefined;
3185
+ parts?: any[] | undefined;
2852
3186
  headers?: {
2853
3187
  value: string;
2854
3188
  name: string;
@@ -2858,9 +3192,9 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2858
3192
  size?: number | undefined;
2859
3193
  attachmentId?: string | undefined;
2860
3194
  } | undefined;
2861
- parts?: any[] | undefined;
2862
3195
  }, {
2863
3196
  mimeType?: string | undefined;
3197
+ parts?: any[] | undefined;
2864
3198
  headers?: {
2865
3199
  value: string;
2866
3200
  name: string;
@@ -2870,19 +3204,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2870
3204
  size?: number | undefined;
2871
3205
  attachmentId?: string | undefined;
2872
3206
  } | undefined;
2873
- parts?: any[] | undefined;
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;
3220
+ parts?: any[] | undefined;
2886
3221
  headers?: {
2887
3222
  value: string;
2888
3223
  name: string;
@@ -2892,19 +3227,20 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2892
3227
  size?: number | undefined;
2893
3228
  attachmentId?: string | undefined;
2894
3229
  } | undefined;
2895
- parts?: any[] | undefined;
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;
3243
+ parts?: any[] | undefined;
2908
3244
  headers?: {
2909
3245
  value: string;
2910
3246
  name: string;
@@ -2914,7 +3250,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2914
3250
  size?: number | undefined;
2915
3251
  attachmentId?: string | undefined;
2916
3252
  } | undefined;
2917
- parts?: any[] | undefined;
2918
3253
  } | undefined;
2919
3254
  }>, "many">>;
2920
3255
  snippet: z.ZodOptional<z.ZodString>;
@@ -2922,15 +3257,17 @@ 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;
3270
+ parts?: any[] | undefined;
2934
3271
  headers?: {
2935
3272
  value: string;
2936
3273
  name: string;
@@ -2940,7 +3277,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2940
3277
  size?: number | undefined;
2941
3278
  attachmentId?: string | undefined;
2942
3279
  } | undefined;
2943
- parts?: any[] | undefined;
2944
3280
  } | undefined;
2945
3281
  }[] | undefined;
2946
3282
  snippet?: string | undefined;
@@ -2949,15 +3285,17 @@ 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;
3298
+ parts?: any[] | undefined;
2961
3299
  headers?: {
2962
3300
  value: string;
2963
3301
  name: string;
@@ -2967,7 +3305,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
2967
3305
  size?: number | undefined;
2968
3306
  attachmentId?: string | undefined;
2969
3307
  } | undefined;
2970
- parts?: any[] | undefined;
2971
3308
  } | undefined;
2972
3309
  }[] | undefined;
2973
3310
  snippet?: string | undefined;
@@ -2986,15 +3323,17 @@ 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;
3336
+ parts?: any[] | undefined;
2998
3337
  headers?: {
2999
3338
  value: string;
3000
3339
  name: string;
@@ -3004,7 +3343,6 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3004
3343
  size?: number | undefined;
3005
3344
  attachmentId?: string | undefined;
3006
3345
  } | undefined;
3007
- parts?: any[] | undefined;
3008
3346
  } | undefined;
3009
3347
  }[] | undefined;
3010
3348
  snippet?: string | undefined;
@@ -3020,15 +3358,17 @@ 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;
3371
+ parts?: any[] | undefined;
3032
3372
  headers?: {
3033
3373
  value: string;
3034
3374
  name: string;
@@ -3038,12 +3378,134 @@ export declare class GmailBubble<T extends GmailParams = GmailParams> extends Se
3038
3378
  size?: number | undefined;
3039
3379
  attachmentId?: string | undefined;
3040
3380
  } | undefined;
3041
- parts?: any[] | undefined;
3042
3381
  } | undefined;
3043
3382
  }[] | undefined;
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?: "system" | "user" | undefined;
3399
+ messageListVisibility?: "show" | "hide" | undefined;
3400
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3401
+ }, {
3402
+ name: string;
3403
+ id: string;
3404
+ type?: "system" | "user" | undefined;
3405
+ messageListVisibility?: "show" | "hide" | undefined;
3406
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3407
+ }>, "many">>;
3408
+ error: z.ZodString;
3409
+ }, "strip", z.ZodTypeAny, {
3410
+ error: string;
3411
+ success: boolean;
3412
+ operation: "list_labels";
3413
+ labels?: {
3414
+ name: string;
3415
+ id: string;
3416
+ type?: "system" | "user" | undefined;
3417
+ messageListVisibility?: "show" | "hide" | undefined;
3418
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3419
+ }[] | undefined;
3420
+ }, {
3421
+ error: string;
3422
+ success: boolean;
3423
+ operation: "list_labels";
3424
+ labels?: {
3425
+ name: string;
3426
+ id: string;
3427
+ type?: "system" | "user" | 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?: "system" | "user" | undefined;
3444
+ messageListVisibility?: "show" | "hide" | undefined;
3445
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3446
+ }, {
3447
+ name: string;
3448
+ id: string;
3449
+ type?: "system" | "user" | undefined;
3450
+ messageListVisibility?: "show" | "hide" | undefined;
3451
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3452
+ }>>;
3453
+ error: z.ZodString;
3454
+ }, "strip", z.ZodTypeAny, {
3455
+ error: string;
3456
+ success: boolean;
3457
+ operation: "create_label";
3458
+ label?: {
3459
+ name: string;
3460
+ id: string;
3461
+ type?: "system" | "user" | undefined;
3462
+ messageListVisibility?: "show" | "hide" | undefined;
3463
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
3464
+ } | undefined;
3465
+ }, {
3466
+ error: string;
3467
+ success: boolean;
3468
+ operation: "create_label";
3469
+ label?: {
3470
+ name: string;
3471
+ id: string;
3472
+ type?: "system" | "user" | 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
+ error: string;
3484
+ success: boolean;
3485
+ operation: "modify_message_labels";
3486
+ message_id?: string | undefined;
3487
+ label_ids?: string[] | undefined;
3488
+ }, {
3489
+ error: string;
3490
+ success: boolean;
3491
+ operation: "modify_message_labels";
3492
+ message_id?: string | undefined;
3493
+ label_ids?: 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
+ error: string;
3501
+ success: boolean;
3502
+ operation: "modify_thread_labels";
3503
+ thread_id?: string | undefined;
3504
+ }, {
3505
+ error: string;
3506
+ success: boolean;
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 {};