@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
@@ -0,0 +1,352 @@
1
+ import { z } from 'zod';
2
+ import { ToolBubble } from '../../types/tool-bubble-class.js';
3
+ import { CredentialType } from '@bubblelab/shared-schemas';
4
+ import { ApifyBubble } from '../service-bubble/apify/apify.js';
5
+ // Unified YouTube data types (service-agnostic)
6
+ const YouTubeVideoSchema = z.object({
7
+ title: z.string().nullable().describe('Video title'),
8
+ id: z.string().nullable().describe('YouTube video ID'),
9
+ url: z.string().nullable().describe('Video URL'),
10
+ viewCount: z.number().nullable().describe('Number of views'),
11
+ likes: z.number().nullable().describe('Number of likes'),
12
+ date: z.string().nullable().describe('Upload date (ISO format)'),
13
+ channelName: z.string().nullable().describe('Channel name'),
14
+ channelUrl: z.string().nullable().describe('Channel URL'),
15
+ subscribers: z.number().nullable().describe('Number of channel subscribers'),
16
+ duration: z.string().nullable().describe('Video duration (HH:MM:SS)'),
17
+ description: z.string().nullable().describe('Video description'),
18
+ comments: z.number().nullable().describe('Number of comments'),
19
+ thumbnail: z.string().nullable().describe('Thumbnail URL'),
20
+ });
21
+ const YouTubeTranscriptSegmentSchema = z.object({
22
+ start: z.string().nullable().describe('Start time in seconds'),
23
+ duration: z.string().nullable().describe('Duration in seconds'),
24
+ text: z.string().nullable().describe('Transcript text'),
25
+ });
26
+ // Tool params schema
27
+ const YouTubeToolParamsSchema = z.object({
28
+ operation: z
29
+ .enum(['searchVideos', 'getTranscript', 'scrapeChannel'])
30
+ .describe('Operation: searchVideos for search/URLs, getTranscript for transcripts, scrapeChannel for channel videos. Not all videos will have transcript available.'),
31
+ // Search operation fields
32
+ searchQueries: z
33
+ .array(z.string())
34
+ .optional()
35
+ .describe('Search queries for YouTube (for searchVideos). Examples: ["AI tutorials", "react hooks"]'),
36
+ videoUrls: z
37
+ .array(z.string().url())
38
+ .optional()
39
+ .describe('Direct YouTube URLs - videos, channels, playlists (for searchVideos or getTranscript)'),
40
+ // Channel scraping
41
+ channelUrl: z
42
+ .string()
43
+ .optional()
44
+ .describe('YouTube channel URL (for scrapeChannel operation)'),
45
+ // Transcript operation field
46
+ videoUrl: z
47
+ .string()
48
+ .url()
49
+ .optional()
50
+ .describe('Single video URL for transcript extraction (for getTranscript)'),
51
+ // Common fields
52
+ maxResults: z
53
+ .number()
54
+ .min(0)
55
+ .max(200)
56
+ .default(20)
57
+ .optional()
58
+ .describe('Max videos to fetch (default: 20)'),
59
+ includeShorts: z
60
+ .boolean()
61
+ .default(false)
62
+ .optional()
63
+ .describe('Include YouTube Shorts in results'),
64
+ credentials: z
65
+ .record(z.nativeEnum(CredentialType), z.string())
66
+ .optional()
67
+ .describe('Required credentials (auto-injected)'),
68
+ });
69
+ // Tool result schema
70
+ const YouTubeToolResultSchema = z.object({
71
+ operation: z
72
+ .enum(['searchVideos', 'getTranscript', 'scrapeChannel'])
73
+ .describe('Operation performed'),
74
+ // Video data (for searchVideos and scrapeChannel)
75
+ videos: z
76
+ .array(YouTubeVideoSchema)
77
+ .optional()
78
+ .describe('Array of YouTube videos'),
79
+ // Transcript data (for getTranscript)
80
+ transcript: z
81
+ .array(YouTubeTranscriptSegmentSchema)
82
+ .optional()
83
+ .describe('Video transcript with timestamps'),
84
+ fullTranscriptText: z
85
+ .string()
86
+ .optional()
87
+ .describe('Complete transcript as plain text'),
88
+ // Common fields
89
+ totalResults: z.number().describe('Total number of results'),
90
+ success: z.boolean().describe('Whether operation succeeded'),
91
+ error: z.string().describe('Error message if failed'),
92
+ });
93
+ /**
94
+ * Simple, dev-friendly YouTube tool
95
+ *
96
+ * Provides easy access to YouTube data through three operations:
97
+ * - searchVideos: Search YouTube or scrape video/channel/playlist URLs
98
+ * - getTranscript: Extract video transcripts with timestamps
99
+ * - scrapeChannel: Get all videos from a channel
100
+ */
101
+ export class YouTubeTool extends ToolBubble {
102
+ static bubbleName = 'youtube-tool';
103
+ static schema = YouTubeToolParamsSchema;
104
+ static resultSchema = YouTubeToolResultSchema;
105
+ static shortDescription = 'Search YouTube videos, extract transcripts, and scrape channel content with a simple interface';
106
+ static longDescription = `
107
+ Universal YouTube tool for video search, transcript extraction, and channel scraping.
108
+
109
+ **OPERATIONS:**
110
+ 1. **searchVideos**: Search YouTube or scrape specific URLs
111
+ - Search by keywords
112
+ - Scrape videos, channels, playlists, or hashtags
113
+ - Get video metadata, views, likes, channel info
114
+
115
+ 2. **getTranscript**: Extract video transcripts
116
+ - Get timestamped transcript segments
117
+ - Full transcript text available
118
+ - Perfect for content analysis or subtitles
119
+
120
+ 3. **scrapeChannel**: Get all videos from a channel
121
+ - Fetch recent videos from any channel
122
+ - Sort by newest, popular, or oldest
123
+ - Get comprehensive video data
124
+
125
+ **WHEN TO USE THIS TOOL:**
126
+ - YouTube video search and discovery
127
+ - Content analysis and research
128
+ - Transcript extraction for AI/ML
129
+ - Channel monitoring and tracking
130
+ - Video metadata collection
131
+
132
+ **Simple Interface:**
133
+ Just specify the operation and provide search terms or URLs.
134
+ The tool handles service selection, data transformation, and error handling.
135
+
136
+ **What you get:**
137
+ - Clean, structured video data
138
+ - Timestamped transcripts
139
+ - Channel and engagement metrics
140
+ - Ready for analysis or processing
141
+ `;
142
+ static alias = 'yt';
143
+ static type = 'tool';
144
+ constructor(params = {
145
+ operation: 'searchVideos',
146
+ searchQueries: ['AI tutorials'],
147
+ maxResults: 20,
148
+ }, context, instanceId) {
149
+ super(params, context, instanceId);
150
+ }
151
+ async performAction() {
152
+ const credentials = this.params?.credentials;
153
+ if (!credentials || !credentials[CredentialType.APIFY_CRED]) {
154
+ return this.createErrorResult('YouTube scraping requires authentication. Please configure APIFY_CRED.');
155
+ }
156
+ try {
157
+ const { operation } = this.params;
158
+ // Validate required fields
159
+ if (operation === 'searchVideos') {
160
+ if ((!this.params.searchQueries ||
161
+ this.params.searchQueries.length === 0) &&
162
+ (!this.params.videoUrls || this.params.videoUrls.length === 0)) {
163
+ return this.createErrorResult('searchVideos requires either searchQueries or videoUrls');
164
+ }
165
+ }
166
+ if (operation === 'getTranscript' && !this.params.videoUrl) {
167
+ return this.createErrorResult('getTranscript requires a videoUrl parameter');
168
+ }
169
+ if (operation === 'scrapeChannel' && !this.params.channelUrl) {
170
+ return this.createErrorResult('scrapeChannel requires a channelUrl parameter');
171
+ }
172
+ // Execute operation
173
+ switch (operation) {
174
+ case 'searchVideos':
175
+ return await this.handleSearchVideos();
176
+ case 'getTranscript':
177
+ return await this.handleGetTranscript();
178
+ case 'scrapeChannel':
179
+ return await this.handleScrapeChannel();
180
+ default:
181
+ throw new Error(`Unsupported operation: ${operation}`);
182
+ }
183
+ }
184
+ catch (error) {
185
+ return this.createErrorResult(error instanceof Error ? error.message : 'Unknown error occurred');
186
+ }
187
+ }
188
+ /**
189
+ * Create error result
190
+ */
191
+ createErrorResult(errorMessage) {
192
+ const { operation } = this.params;
193
+ return {
194
+ operation: operation || 'searchVideos',
195
+ videos: operation === 'searchVideos' || operation === 'scrapeChannel'
196
+ ? []
197
+ : undefined,
198
+ transcript: operation === 'getTranscript' ? [] : undefined,
199
+ fullTranscriptText: operation === 'getTranscript' ? '' : undefined,
200
+ totalResults: 0,
201
+ success: false,
202
+ error: errorMessage,
203
+ };
204
+ }
205
+ /**
206
+ * Handle searchVideos operation
207
+ */
208
+ async handleSearchVideos() {
209
+ const searchVideo = new ApifyBubble({
210
+ actorId: 'streamers/youtube-scraper',
211
+ input: {
212
+ searchQueries: this.params.searchQueries,
213
+ startUrls: this.params.videoUrls?.map((url) => ({ url })),
214
+ maxResults: this.params.maxResults || 20,
215
+ maxResultsShorts: this.params.includeShorts
216
+ ? this.params.maxResults || 20
217
+ : 0,
218
+ },
219
+ waitForFinish: true,
220
+ timeout: 180000,
221
+ credentials: this.params.credentials,
222
+ }, this.context, 'searchVideo');
223
+ const result = await searchVideo.action();
224
+ if (!result.data.success) {
225
+ return this.createErrorResult(result.data.error || 'Failed to search YouTube videos');
226
+ }
227
+ const items = result.data.items || [];
228
+ const videos = this.transformVideos(items);
229
+ return {
230
+ operation: 'searchVideos',
231
+ videos,
232
+ totalResults: videos.length,
233
+ success: true,
234
+ error: '',
235
+ };
236
+ }
237
+ /**
238
+ * Handle getTranscript operation
239
+ */
240
+ async handleGetTranscript() {
241
+ const transcriptScraper = new ApifyBubble({
242
+ actorId: 'pintostudio/youtube-transcript-scraper',
243
+ input: {
244
+ videoUrl: this.params.videoUrl,
245
+ },
246
+ waitForFinish: true,
247
+ timeout: 120000,
248
+ credentials: this.params.credentials,
249
+ }, this.context, 'transcriptScraper');
250
+ const result = await transcriptScraper.action();
251
+ if (!result.data.success) {
252
+ return this.createErrorResult(result.data.error || 'Failed to extract transcript');
253
+ }
254
+ const items = result.data.items || [];
255
+ const firstItem = items[0];
256
+ if (!firstItem || typeof firstItem !== 'object') {
257
+ return this.createErrorResult('No transcript data returned');
258
+ }
259
+ const anyItem = firstItem;
260
+ const transcriptData = anyItem.data || [];
261
+ const transcript = transcriptData.map((segment) => ({
262
+ start: segment.start || null,
263
+ duration: segment.dur || null,
264
+ text: segment.text || null,
265
+ }));
266
+ const fullText = transcript.map((seg) => seg.text || '').join(' ');
267
+ return {
268
+ operation: 'getTranscript',
269
+ transcript,
270
+ fullTranscriptText: fullText,
271
+ totalResults: transcript.length,
272
+ success: true,
273
+ error: '',
274
+ };
275
+ }
276
+ /**
277
+ * Handle scrapeChannel operation
278
+ */
279
+ async handleScrapeChannel() {
280
+ const channelScraper = new ApifyBubble({
281
+ actorId: 'streamers/youtube-scraper',
282
+ input: {
283
+ startUrls: [{ url: this.params.channelUrl }],
284
+ maxResults: this.params.maxResults || 20,
285
+ sortVideosBy: 'NEWEST',
286
+ },
287
+ waitForFinish: true,
288
+ timeout: 180000,
289
+ credentials: this.params.credentials,
290
+ }, this.context, 'channelScraper');
291
+ const result = await channelScraper.action();
292
+ if (!result.data.success) {
293
+ return this.createErrorResult(result.data.error || 'Failed to scrape channel');
294
+ }
295
+ const items = result.data.items || [];
296
+ const videos = this.transformVideos(items);
297
+ return {
298
+ operation: 'scrapeChannel',
299
+ videos,
300
+ totalResults: videos.length,
301
+ success: true,
302
+ error: '',
303
+ };
304
+ }
305
+ /**
306
+ * Transform Apify video data to unified format
307
+ */
308
+ transformVideos(items) {
309
+ return items.map((item) => {
310
+ if (typeof item !== 'object' || item === null) {
311
+ return this.createEmptyVideo();
312
+ }
313
+ const anyItem = item;
314
+ return {
315
+ title: anyItem.title || null,
316
+ id: anyItem.id || null,
317
+ url: anyItem.url || null,
318
+ viewCount: anyItem.viewCount || null,
319
+ likes: anyItem.likes || null,
320
+ date: anyItem.date || null,
321
+ channelName: anyItem.channelName || null,
322
+ channelUrl: anyItem.channelUrl || null,
323
+ subscribers: anyItem.numberOfSubscribers || null,
324
+ duration: anyItem.duration || null,
325
+ description: anyItem.text || null,
326
+ comments: anyItem.commentsCount || null,
327
+ thumbnail: anyItem.thumbnailUrl || null,
328
+ };
329
+ });
330
+ }
331
+ /**
332
+ * Create empty video object
333
+ */
334
+ createEmptyVideo() {
335
+ return {
336
+ title: null,
337
+ id: null,
338
+ url: null,
339
+ viewCount: null,
340
+ likes: null,
341
+ date: null,
342
+ channelName: null,
343
+ channelUrl: null,
344
+ subscribers: null,
345
+ duration: null,
346
+ description: null,
347
+ comments: null,
348
+ thumbnail: null,
349
+ };
350
+ }
351
+ }
352
+ //# sourceMappingURL=youtube-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"youtube-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/youtube-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAA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