@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.
- package/dist/bubble-bundle.d.ts +633 -1658
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +165 -43
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts +22 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.js +36 -0
- package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.js +6 -3
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +1121 -0
- package/dist/bubbles/service-bubble/agi-inc.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/agi-inc.js +730 -0
- package/dist/bubbles/service-bubble/agi-inc.js.map +1 -0
- package/dist/bubbles/service-bubble/ai-agent.d.ts +297 -85
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +535 -399
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +1753 -0
- package/dist/bubbles/service-bubble/airtable.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/airtable.js +1173 -0
- package/dist/bubbles/service-bubble/airtable.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +240 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js +119 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +56 -56
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +137 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js +81 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +27 -27
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +488 -0
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js +463 -0
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +262 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js +291 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1483 -123
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +48 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.d.ts +156 -11
- package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.js +205 -32
- package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
- package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.js +3 -0
- package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/types.js +1 -2
- package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +421 -0
- package/dist/bubbles/service-bubble/eleven-labs.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/eleven-labs.js +479 -0
- package/dist/bubbles/service-bubble/eleven-labs.js.map +1 -0
- package/dist/bubbles/service-bubble/firecrawl.d.ts +37748 -0
- package/dist/bubbles/service-bubble/firecrawl.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/firecrawl.js +1489 -0
- package/dist/bubbles/service-bubble/firecrawl.js.map +1 -0
- package/dist/bubbles/service-bubble/followupboss.d.ts +6822 -0
- package/dist/bubbles/service-bubble/followupboss.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/followupboss.js +1394 -0
- package/dist/bubbles/service-bubble/followupboss.js.map +1 -0
- package/dist/bubbles/service-bubble/github.d.ts +2399 -0
- package/dist/bubbles/service-bubble/github.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/github.js +1052 -0
- package/dist/bubbles/service-bubble/github.js.map +1 -0
- package/dist/bubbles/service-bubble/gmail.d.ts +726 -232
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/gmail.js +435 -7
- package/dist/bubbles/service-bubble/gmail.js.map +1 -1
- package/dist/bubbles/service-bubble/google-calendar.d.ts +8 -8
- package/dist/bubbles/service-bubble/google-drive.d.ts +270 -40
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.js +100 -78
- package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +943 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts +31 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js +184 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.js +401 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +1024 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/{google-sheets.js → google-sheets/google-sheets.schema.js} +45 -409
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts +38 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js +183 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/google-sheets/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/index.js +4 -0
- package/dist/bubbles/service-bubble/google-sheets/index.js.map +1 -0
- package/dist/bubbles/service-bubble/hello-world.js +2 -2
- package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
- package/dist/bubbles/service-bubble/http.d.ts +6 -6
- package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/http.js +7 -1
- package/dist/bubbles/service-bubble/http.js.map +1 -1
- package/dist/bubbles/service-bubble/insforge-db.d.ts +140 -0
- package/dist/bubbles/service-bubble/insforge-db.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/insforge-db.js +260 -0
- package/dist/bubbles/service-bubble/insforge-db.js.map +1 -0
- package/dist/bubbles/service-bubble/notion/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/notion/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/notion/index.js +3 -0
- package/dist/bubbles/service-bubble/notion/index.js.map +1 -0
- package/dist/bubbles/service-bubble/notion/notion.d.ts +35405 -0
- package/dist/bubbles/service-bubble/notion/notion.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/notion/notion.js +1492 -0
- package/dist/bubbles/service-bubble/notion/notion.js.map +1 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +1148 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.js +341 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.js.map +1 -0
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/resend.d.ts +30 -9
- package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/resend.js +133 -2
- package/dist/bubbles/service-bubble/resend.js.map +1 -1
- package/dist/bubbles/service-bubble/slack.d.ts +525 -525
- package/dist/bubbles/service-bubble/slack.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack.js +2 -2
- package/dist/bubbles/service-bubble/slack.js.map +1 -1
- package/dist/bubbles/service-bubble/storage.d.ts +21 -17
- package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/storage.js +59 -7
- package/dist/bubbles/service-bubble/storage.js.map +1 -1
- package/dist/bubbles/service-bubble/telegram.d.ts +7742 -0
- package/dist/bubbles/service-bubble/telegram.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/telegram.js +1132 -0
- package/dist/bubbles/service-bubble/telegram.js.map +1 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +60 -4
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +12 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +188 -0
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/code-edit-tool.js +321 -0
- package/dist/bubbles/tool-bubble/code-edit-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +8 -4
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +132 -19
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +455 -0
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/google-maps-tool.js +205 -0
- package/dist/bubbles/tool-bubble/google-maps-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +90 -90
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/instagram-tool.js +2 -2
- package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +808 -431
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/linkedin-tool.js +232 -12
- package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +21 -16
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +17 -16
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/research-agent-tool.js +27 -17
- package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +485 -0
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/tiktok-tool.js +226 -0
- package/dist/bubbles/tool-bubble/tiktok-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +947 -0
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/twitter-tool.js +494 -0
- package/dist/bubbles/tool-bubble/twitter-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +32 -26
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-crawl-tool.js +58 -59
- package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-extract-tool.js +17 -17
- package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +23 -115
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-scrape-tool.js +51 -72
- package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +18 -6
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.js +46 -32
- package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +78 -78
- package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +62 -62
- package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +80 -80
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +4 -4
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +52 -52
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +2 -2
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +6 -6
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +46 -46
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +24 -4
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +27 -27
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +8 -8
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
- package/dist/bubbles.json +251 -88
- package/dist/index.d.ts +27 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/dist/logging/BubbleLogger.d.ts +45 -16
- package/dist/logging/BubbleLogger.d.ts.map +1 -1
- package/dist/logging/BubbleLogger.js +197 -89
- package/dist/logging/BubbleLogger.js.map +1 -1
- package/dist/logging/StreamingBubbleLogger.d.ts +13 -1
- package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
- package/dist/logging/StreamingBubbleLogger.js +56 -13
- package/dist/logging/StreamingBubbleLogger.js.map +1 -1
- package/dist/logging/WebhookStreamLogger.d.ts +66 -0
- package/dist/logging/WebhookStreamLogger.d.ts.map +1 -0
- package/dist/logging/WebhookStreamLogger.js +291 -0
- package/dist/logging/WebhookStreamLogger.js.map +1 -0
- package/dist/types/available-tools.d.ts +1 -1
- package/dist/types/available-tools.d.ts.map +1 -1
- package/dist/types/available-tools.js +1 -0
- package/dist/types/available-tools.js.map +1 -1
- package/dist/types/base-bubble-class.d.ts +7 -5
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +63 -40
- package/dist/types/base-bubble-class.js.map +1 -1
- package/dist/types/bubble.d.ts +3 -10
- package/dist/types/bubble.d.ts.map +1 -1
- package/dist/types/bubble.js +1 -1
- package/dist/types/bubble.js.map +1 -1
- package/dist/types/service-bubble-class.d.ts +2 -2
- package/dist/types/service-bubble-class.d.ts.map +1 -1
- package/dist/types/service-bubble-class.js +2 -2
- package/dist/types/service-bubble-class.js.map +1 -1
- package/dist/types/tool-bubble-class.d.ts +2 -2
- package/dist/types/tool-bubble-class.d.ts.map +1 -1
- package/dist/types/tool-bubble-class.js +2 -4
- package/dist/types/tool-bubble-class.js.map +1 -1
- package/dist/types/workflow-bubble-class.d.ts +2 -2
- package/dist/types/workflow-bubble-class.d.ts.map +1 -1
- package/dist/types/workflow-bubble-class.js +2 -2
- package/dist/types/workflow-bubble-class.js.map +1 -1
- package/dist/utils/agent-formatter.d.ts +14 -2
- package/dist/utils/agent-formatter.d.ts.map +1 -1
- package/dist/utils/agent-formatter.js +176 -28
- package/dist/utils/agent-formatter.js.map +1 -1
- package/dist/utils/bubbleflow-validation.d.ts +7 -0
- package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
- package/dist/utils/bubbleflow-validation.js +257 -35
- package/dist/utils/bubbleflow-validation.js.map +1 -1
- package/dist/utils/error-sanitizer.d.ts +12 -0
- package/dist/utils/error-sanitizer.d.ts.map +1 -0
- package/dist/utils/error-sanitizer.js +77 -0
- package/dist/utils/error-sanitizer.js.map +1 -0
- package/dist/utils/json-parsing.d.ts.map +1 -1
- package/dist/utils/json-parsing.js +146 -0
- package/dist/utils/json-parsing.js.map +1 -1
- package/dist/utils/safe-gemini-chat.d.ts +31 -0
- package/dist/utils/safe-gemini-chat.d.ts.map +1 -0
- package/dist/utils/safe-gemini-chat.js +93 -0
- package/dist/utils/safe-gemini-chat.js.map +1 -0
- package/dist/utils/schema-comparison.d.ts +92 -0
- package/dist/utils/schema-comparison.d.ts.map +1 -0
- package/dist/utils/schema-comparison.js +716 -0
- package/dist/utils/schema-comparison.js.map +1 -0
- package/dist/utils/zod-schema.d.ts +24 -0
- package/dist/utils/zod-schema.d.ts.map +1 -0
- package/dist/utils/zod-schema.js +56 -0
- package/dist/utils/zod-schema.js.map +1 -0
- package/package.json +7 -6
- package/dist/bubble-trigger/index.d.ts +0 -2
- package/dist/bubble-trigger/index.d.ts.map +0 -1
- package/dist/bubble-trigger/index.js +0 -2
- package/dist/bubble-trigger/index.js.map +0 -1
- package/dist/bubble-trigger/types.d.ts +0 -87
- package/dist/bubble-trigger/types.d.ts.map +0 -1
- package/dist/bubble-trigger/types.js +0 -14
- package/dist/bubble-trigger/types.js.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
- package/dist/bubbles/service-bubble/apify.d.ts +0 -136
- package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify.js +0 -282
- package/dist/bubbles/service-bubble/apify.js.map +0 -1
- package/dist/bubbles/service-bubble/google-sheets.d.ts +0 -1811
- package/dist/bubbles/service-bubble/google-sheets.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/google-sheets.js.map +0 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +0 -114
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +0 -782
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +0 -1
- package/dist/types/ai-models.d.ts +0 -4
- package/dist/types/ai-models.d.ts.map +0 -1
- package/dist/types/ai-models.js +0 -20
- package/dist/types/ai-models.js.map +0 -1
- package/dist/types/api-scraper.schema.d.ts +0 -453
- package/dist/types/api-scraper.schema.d.ts.map +0 -1
- package/dist/types/api-scraper.schema.js +0 -160
- package/dist/types/api-scraper.schema.js.map +0 -1
- package/dist/utils/param-helper.d.ts +0 -2
- package/dist/utils/param-helper.d.ts.map +0 -1
- package/dist/utils/param-helper.js +0 -5
- package/dist/utils/param-helper.js.map +0 -1
|
@@ -4,21 +4,23 @@ import { CredentialType } from '@bubblelab/shared-schemas';
|
|
|
4
4
|
import { AIAgentBubble } from '../service-bubble/ai-agent.js';
|
|
5
5
|
import { AvailableModels } from '@bubblelab/shared-schemas';
|
|
6
6
|
import { parseJsonWithFallbacks } from '../../utils/json-parsing.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { RECOMMENDED_MODELS } from '@bubblelab/shared-schemas';
|
|
8
|
+
import { isZodSchema, zodSchemaToJsonString } from '../../utils/zod-schema.js';
|
|
9
|
+
// Schema for the expected JSON result structure - accepts either a Zod schema or a JSON schema string
|
|
10
|
+
const ExpectedResultSchema = z.union([
|
|
11
|
+
z.custom((val) => val?._def !== undefined),
|
|
12
|
+
z.string(),
|
|
13
|
+
]);
|
|
11
14
|
// Define the parameters schema for the Research Agent Tool
|
|
12
15
|
const ResearchAgentToolParamsSchema = z.object({
|
|
13
16
|
task: z
|
|
14
17
|
.string()
|
|
15
18
|
.min(1, 'Research task is required')
|
|
16
19
|
.describe('The research task that requires searching the internet and gathering information'),
|
|
17
|
-
expectedResultSchema: ExpectedResultSchema.describe('JSON schema string that defines the expected structure of the research result.
|
|
18
|
-
model: AvailableModels.describe(
|
|
19
|
-
.default(
|
|
20
|
-
.
|
|
21
|
-
.describe('Model to use for the research agent (default: google/gemini-2.5-flash)'),
|
|
20
|
+
expectedResultSchema: ExpectedResultSchema.describe('Zod schema or JSON schema string that defines the expected structure of the research result. Example: z.object({ trends: z.array(z.string()).describe("An array of trends"), summary: z.string().describe("A summary of the trends") }) or JSON.stringify({ type: "object", properties: { trends: { type: "array", items: { type: "string" } }, summary: { type: "string" } } })'),
|
|
21
|
+
model: AvailableModels.describe(`Model to use for the research agent (default: ${RECOMMENDED_MODELS.BEST})`)
|
|
22
|
+
.default(RECOMMENDED_MODELS.BEST)
|
|
23
|
+
.describe(`Model to use for the research agent (default: ${RECOMMENDED_MODELS.BEST})`),
|
|
22
24
|
maxTokens: z
|
|
23
25
|
.number()
|
|
24
26
|
.min(40000)
|
|
@@ -28,8 +30,8 @@ const ResearchAgentToolParamsSchema = z.object({
|
|
|
28
30
|
maxIterations: z
|
|
29
31
|
.number()
|
|
30
32
|
.min(1)
|
|
31
|
-
.max(
|
|
32
|
-
.default(
|
|
33
|
+
.max(4000)
|
|
34
|
+
.default(400)
|
|
33
35
|
.describe('Maximum number of iterations for the research agent (default: 100)'),
|
|
34
36
|
credentials: z
|
|
35
37
|
.record(z.nativeEnum(CredentialType), z.string())
|
|
@@ -94,7 +96,7 @@ export class ResearchAgentTool extends ToolBubble {
|
|
|
94
96
|
static type = 'tool';
|
|
95
97
|
constructor(params = {
|
|
96
98
|
task: '',
|
|
97
|
-
expectedResultSchema:
|
|
99
|
+
expectedResultSchema: z.object({ result: z.string() }),
|
|
98
100
|
}, context) {
|
|
99
101
|
super(params, context);
|
|
100
102
|
}
|
|
@@ -110,18 +112,19 @@ export class ResearchAgentTool extends ToolBubble {
|
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
114
|
void context; // Context available but not currently used
|
|
113
|
-
const { task,
|
|
115
|
+
const { task, maxIterations } = this.params;
|
|
116
|
+
const jsonSchemaString = this.getExpectedResultSchema();
|
|
114
117
|
try {
|
|
115
118
|
console.log('[ResearchAgentTool] Starting research task:', task.substring(0, 100) + '...');
|
|
116
|
-
console.log('[ResearchAgentTool] Expected result schema:',
|
|
119
|
+
console.log('[ResearchAgentTool] Expected result schema (JSON):', jsonSchemaString.substring(0, 200) + '...');
|
|
117
120
|
console.log('[ResearchAgentTool] Max iterations:', maxIterations);
|
|
118
121
|
// Create the AI agent with web search and scraping tools
|
|
119
122
|
const researchSubAgent = new AIAgentBubble({
|
|
120
|
-
message: this.buildResearchPrompt(task,
|
|
123
|
+
message: this.buildResearchPrompt(task, jsonSchemaString),
|
|
121
124
|
systemPrompt: this.buildSystemPrompt(),
|
|
122
125
|
model: {
|
|
123
126
|
model: this.params.model,
|
|
124
|
-
temperature:
|
|
127
|
+
temperature: 1,
|
|
125
128
|
maxTokens: this.params.maxTokens,
|
|
126
129
|
jsonMode: true, // Enable JSON mode for structured output
|
|
127
130
|
},
|
|
@@ -129,7 +132,7 @@ export class ResearchAgentTool extends ToolBubble {
|
|
|
129
132
|
{ name: 'web-search-tool' },
|
|
130
133
|
{ name: 'web-scrape-tool' },
|
|
131
134
|
{ name: 'web-crawl-tool' },
|
|
132
|
-
{ name: 'web-extract-tool' },
|
|
135
|
+
// { name: 'web-extract-tool' },
|
|
133
136
|
{ name: 'reddit-scrape-tool' },
|
|
134
137
|
],
|
|
135
138
|
maxIterations,
|
|
@@ -197,6 +200,13 @@ export class ResearchAgentTool extends ToolBubble {
|
|
|
197
200
|
};
|
|
198
201
|
}
|
|
199
202
|
}
|
|
203
|
+
getExpectedResultSchema() {
|
|
204
|
+
// Use shared utility to convert Zod schema to JSON schema string
|
|
205
|
+
if (isZodSchema(this.params.expectedResultSchema)) {
|
|
206
|
+
return zodSchemaToJsonString(this.params.expectedResultSchema, 'ResultSchema');
|
|
207
|
+
}
|
|
208
|
+
return this.params.expectedResultSchema;
|
|
209
|
+
}
|
|
200
210
|
/**
|
|
201
211
|
* Build the main research prompt for the AI agent
|
|
202
212
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research-agent-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/research-agent-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"research-agent-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/research-agent-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAmB,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAE/E,sGAAsG;AACtG,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC;IACnC,CAAC,CAAC,MAAM,CAAa,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,SAAS,CAAC;IACtD,CAAC,CAAC,MAAM,EAAE;CACX,CAAC,CAAC;AAEH,2DAA2D;AAC3D,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CA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|
|
41
42
|
error: string;
|
|
42
43
|
success: boolean;
|
|
43
|
-
executionTime: number;
|
|
44
44
|
rowCount: number;
|
|
45
45
|
rows?: Record<string, unknown>[] | undefined;
|
|
46
46
|
fields?: {
|
|
@@ -48,9 +48,9 @@ declare const SQLQueryToolResultSchema: z.ZodObject<{
|
|
|
48
48
|
dataTypeID?: number | undefined;
|
|
49
49
|
}[] | undefined;
|
|
50
50
|
}, {
|
|
51
|
+
executionTime: number;
|
|
51
52
|
error: string;
|
|
52
53
|
success: boolean;
|
|
53
|
-
executionTime: number;
|
|
54
54
|
rowCount: number;
|
|
55
55
|
rows?: Record<string, unknown>[] | undefined;
|
|
56
56
|
fields?: {
|
|
@@ -101,9 +101,9 @@ export declare class SQLQueryTool extends ToolBubble<SQLQueryToolParams, SQLQuer
|
|
|
101
101
|
success: z.ZodBoolean;
|
|
102
102
|
error: z.ZodString;
|
|
103
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
executionTime: number;
|
|
104
105
|
error: string;
|
|
105
106
|
success: boolean;
|
|
106
|
-
executionTime: number;
|
|
107
107
|
rowCount: number;
|
|
108
108
|
rows?: Record<string, unknown>[] | undefined;
|
|
109
109
|
fields?: {
|
|
@@ -111,9 +111,9 @@ export declare class SQLQueryTool extends ToolBubble<SQLQueryToolParams, SQLQuer
|
|
|
111
111
|
dataTypeID?: number | undefined;
|
|
112
112
|
}[] | undefined;
|
|
113
113
|
}, {
|
|
114
|
+
executionTime: number;
|
|
114
115
|
error: string;
|
|
115
116
|
success: boolean;
|
|
116
|
-
executionTime: number;
|
|
117
117
|
rowCount: number;
|
|
118
118
|
rows?: Record<string, unknown>[] | undefined;
|
|
119
119
|
fields?: {
|
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ToolBubble } from '../../types/tool-bubble-class.js';
|
|
3
|
+
import type { BubbleContext } from '../../types/bubble.js';
|
|
4
|
+
import { CredentialType, type BubbleName } from '@bubblelab/shared-schemas';
|
|
5
|
+
declare const TikTokToolParamsSchema: z.ZodObject<{
|
|
6
|
+
operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>;
|
|
7
|
+
profiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
videoUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
11
|
+
shouldDownloadVideos: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
15
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
hashtags?: string[] | undefined;
|
|
18
|
+
profiles?: string[] | undefined;
|
|
19
|
+
shouldDownloadVideos?: boolean | undefined;
|
|
20
|
+
videoUrls?: string[] | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
23
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
hashtags?: string[] | undefined;
|
|
26
|
+
profiles?: string[] | undefined;
|
|
27
|
+
shouldDownloadVideos?: boolean | undefined;
|
|
28
|
+
videoUrls?: string[] | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
declare const TikTokToolResultSchema: z.ZodObject<{
|
|
31
|
+
operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>;
|
|
32
|
+
videos: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
text: z.ZodNullable<z.ZodString>;
|
|
35
|
+
createTime: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
createTimeISO: z.ZodNullable<z.ZodString>;
|
|
37
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
id: z.ZodNullable<z.ZodString>;
|
|
39
|
+
uniqueId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
41
|
+
avatarThumb: z.ZodNullable<z.ZodString>;
|
|
42
|
+
signature: z.ZodNullable<z.ZodString>;
|
|
43
|
+
verified: z.ZodNullable<z.ZodBoolean>;
|
|
44
|
+
followerCount: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
followingCount: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
videoCount: z.ZodNullable<z.ZodNumber>;
|
|
47
|
+
heartCount: z.ZodNullable<z.ZodNumber>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
id: string | null;
|
|
50
|
+
verified: boolean | null;
|
|
51
|
+
signature: string | null;
|
|
52
|
+
uniqueId: string | null;
|
|
53
|
+
nickname: string | null;
|
|
54
|
+
avatarThumb: string | null;
|
|
55
|
+
followerCount: number | null;
|
|
56
|
+
followingCount: number | null;
|
|
57
|
+
videoCount: number | null;
|
|
58
|
+
heartCount: number | null;
|
|
59
|
+
}, {
|
|
60
|
+
id: string | null;
|
|
61
|
+
verified: boolean | null;
|
|
62
|
+
signature: string | null;
|
|
63
|
+
uniqueId: string | null;
|
|
64
|
+
nickname: string | null;
|
|
65
|
+
avatarThumb: string | null;
|
|
66
|
+
followerCount: number | null;
|
|
67
|
+
followingCount: number | null;
|
|
68
|
+
videoCount: number | null;
|
|
69
|
+
heartCount: number | null;
|
|
70
|
+
}>>;
|
|
71
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
72
|
+
diggCount: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
shareCount: z.ZodNullable<z.ZodNumber>;
|
|
74
|
+
commentCount: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
playCount: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
collectCount: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
collectCount: number | null;
|
|
79
|
+
commentCount: number | null;
|
|
80
|
+
diggCount: number | null;
|
|
81
|
+
playCount: number | null;
|
|
82
|
+
shareCount: number | null;
|
|
83
|
+
}, {
|
|
84
|
+
collectCount: number | null;
|
|
85
|
+
commentCount: number | null;
|
|
86
|
+
diggCount: number | null;
|
|
87
|
+
playCount: number | null;
|
|
88
|
+
shareCount: number | null;
|
|
89
|
+
}>>;
|
|
90
|
+
videoUrl: z.ZodNullable<z.ZodString>;
|
|
91
|
+
webVideoUrl: z.ZodNullable<z.ZodString>;
|
|
92
|
+
covers: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
93
|
+
hashtags: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
94
|
+
name: z.ZodNullable<z.ZodString>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
name: string | null;
|
|
97
|
+
}, {
|
|
98
|
+
name: string | null;
|
|
99
|
+
}>, "many">>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
stats: {
|
|
102
|
+
collectCount: number | null;
|
|
103
|
+
commentCount: number | null;
|
|
104
|
+
diggCount: number | null;
|
|
105
|
+
playCount: number | null;
|
|
106
|
+
shareCount: number | null;
|
|
107
|
+
} | null;
|
|
108
|
+
text: string | null;
|
|
109
|
+
id: string | null;
|
|
110
|
+
hashtags: {
|
|
111
|
+
name: string | null;
|
|
112
|
+
}[] | null;
|
|
113
|
+
videoUrl: string | null;
|
|
114
|
+
author: {
|
|
115
|
+
id: string | null;
|
|
116
|
+
verified: boolean | null;
|
|
117
|
+
signature: string | null;
|
|
118
|
+
uniqueId: string | null;
|
|
119
|
+
nickname: string | null;
|
|
120
|
+
avatarThumb: string | null;
|
|
121
|
+
followerCount: number | null;
|
|
122
|
+
followingCount: number | null;
|
|
123
|
+
videoCount: number | null;
|
|
124
|
+
heartCount: number | null;
|
|
125
|
+
} | null;
|
|
126
|
+
createTime: number | null;
|
|
127
|
+
createTimeISO: string | null;
|
|
128
|
+
webVideoUrl: string | null;
|
|
129
|
+
covers: string[] | null;
|
|
130
|
+
}, {
|
|
131
|
+
stats: {
|
|
132
|
+
collectCount: number | null;
|
|
133
|
+
commentCount: number | null;
|
|
134
|
+
diggCount: number | null;
|
|
135
|
+
playCount: number | null;
|
|
136
|
+
shareCount: number | null;
|
|
137
|
+
} | null;
|
|
138
|
+
text: string | null;
|
|
139
|
+
id: string | null;
|
|
140
|
+
hashtags: {
|
|
141
|
+
name: string | null;
|
|
142
|
+
}[] | null;
|
|
143
|
+
videoUrl: string | null;
|
|
144
|
+
author: {
|
|
145
|
+
id: string | null;
|
|
146
|
+
verified: boolean | null;
|
|
147
|
+
signature: string | null;
|
|
148
|
+
uniqueId: string | null;
|
|
149
|
+
nickname: string | null;
|
|
150
|
+
avatarThumb: string | null;
|
|
151
|
+
followerCount: number | null;
|
|
152
|
+
followingCount: number | null;
|
|
153
|
+
videoCount: number | null;
|
|
154
|
+
heartCount: number | null;
|
|
155
|
+
} | null;
|
|
156
|
+
createTime: number | null;
|
|
157
|
+
createTimeISO: string | null;
|
|
158
|
+
webVideoUrl: string | null;
|
|
159
|
+
covers: string[] | null;
|
|
160
|
+
}>, "many">;
|
|
161
|
+
totalVideos: z.ZodNumber;
|
|
162
|
+
success: z.ZodBoolean;
|
|
163
|
+
error: z.ZodString;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
error: string;
|
|
166
|
+
success: boolean;
|
|
167
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
168
|
+
videos: {
|
|
169
|
+
stats: {
|
|
170
|
+
collectCount: number | null;
|
|
171
|
+
commentCount: number | null;
|
|
172
|
+
diggCount: number | null;
|
|
173
|
+
playCount: number | null;
|
|
174
|
+
shareCount: number | null;
|
|
175
|
+
} | null;
|
|
176
|
+
text: string | null;
|
|
177
|
+
id: string | null;
|
|
178
|
+
hashtags: {
|
|
179
|
+
name: string | null;
|
|
180
|
+
}[] | null;
|
|
181
|
+
videoUrl: string | null;
|
|
182
|
+
author: {
|
|
183
|
+
id: string | null;
|
|
184
|
+
verified: boolean | null;
|
|
185
|
+
signature: string | null;
|
|
186
|
+
uniqueId: string | null;
|
|
187
|
+
nickname: string | null;
|
|
188
|
+
avatarThumb: string | null;
|
|
189
|
+
followerCount: number | null;
|
|
190
|
+
followingCount: number | null;
|
|
191
|
+
videoCount: number | null;
|
|
192
|
+
heartCount: number | null;
|
|
193
|
+
} | null;
|
|
194
|
+
createTime: number | null;
|
|
195
|
+
createTimeISO: string | null;
|
|
196
|
+
webVideoUrl: string | null;
|
|
197
|
+
covers: string[] | null;
|
|
198
|
+
}[];
|
|
199
|
+
totalVideos: number;
|
|
200
|
+
}, {
|
|
201
|
+
error: string;
|
|
202
|
+
success: boolean;
|
|
203
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
204
|
+
videos: {
|
|
205
|
+
stats: {
|
|
206
|
+
collectCount: number | null;
|
|
207
|
+
commentCount: number | null;
|
|
208
|
+
diggCount: number | null;
|
|
209
|
+
playCount: number | null;
|
|
210
|
+
shareCount: number | null;
|
|
211
|
+
} | null;
|
|
212
|
+
text: string | null;
|
|
213
|
+
id: string | null;
|
|
214
|
+
hashtags: {
|
|
215
|
+
name: string | null;
|
|
216
|
+
}[] | null;
|
|
217
|
+
videoUrl: string | null;
|
|
218
|
+
author: {
|
|
219
|
+
id: string | null;
|
|
220
|
+
verified: boolean | null;
|
|
221
|
+
signature: string | null;
|
|
222
|
+
uniqueId: string | null;
|
|
223
|
+
nickname: string | null;
|
|
224
|
+
avatarThumb: string | null;
|
|
225
|
+
followerCount: number | null;
|
|
226
|
+
followingCount: number | null;
|
|
227
|
+
videoCount: number | null;
|
|
228
|
+
heartCount: number | null;
|
|
229
|
+
} | null;
|
|
230
|
+
createTime: number | null;
|
|
231
|
+
createTimeISO: string | null;
|
|
232
|
+
webVideoUrl: string | null;
|
|
233
|
+
covers: string[] | null;
|
|
234
|
+
}[];
|
|
235
|
+
totalVideos: number;
|
|
236
|
+
}>;
|
|
237
|
+
type TikTokToolParams = z.output<typeof TikTokToolParamsSchema>;
|
|
238
|
+
type TikTokToolResult = z.output<typeof TikTokToolResultSchema>;
|
|
239
|
+
type TikTokToolParamsInput = z.input<typeof TikTokToolParamsSchema>;
|
|
240
|
+
export declare class TikTokTool extends ToolBubble<TikTokToolParams, TikTokToolResult> {
|
|
241
|
+
static readonly bubbleName: BubbleName;
|
|
242
|
+
static readonly schema: z.ZodObject<{
|
|
243
|
+
operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>;
|
|
244
|
+
profiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
245
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
246
|
+
videoUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
247
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
248
|
+
shouldDownloadVideos: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
249
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
252
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
253
|
+
limit?: number | undefined;
|
|
254
|
+
hashtags?: string[] | undefined;
|
|
255
|
+
profiles?: string[] | undefined;
|
|
256
|
+
shouldDownloadVideos?: boolean | undefined;
|
|
257
|
+
videoUrls?: string[] | undefined;
|
|
258
|
+
}, {
|
|
259
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
260
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
261
|
+
limit?: number | undefined;
|
|
262
|
+
hashtags?: string[] | undefined;
|
|
263
|
+
profiles?: string[] | undefined;
|
|
264
|
+
shouldDownloadVideos?: boolean | undefined;
|
|
265
|
+
videoUrls?: string[] | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
static readonly resultSchema: z.ZodObject<{
|
|
268
|
+
operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>;
|
|
269
|
+
videos: z.ZodArray<z.ZodObject<{
|
|
270
|
+
id: z.ZodNullable<z.ZodString>;
|
|
271
|
+
text: z.ZodNullable<z.ZodString>;
|
|
272
|
+
createTime: z.ZodNullable<z.ZodNumber>;
|
|
273
|
+
createTimeISO: z.ZodNullable<z.ZodString>;
|
|
274
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
275
|
+
id: z.ZodNullable<z.ZodString>;
|
|
276
|
+
uniqueId: z.ZodNullable<z.ZodString>;
|
|
277
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
278
|
+
avatarThumb: z.ZodNullable<z.ZodString>;
|
|
279
|
+
signature: z.ZodNullable<z.ZodString>;
|
|
280
|
+
verified: z.ZodNullable<z.ZodBoolean>;
|
|
281
|
+
followerCount: z.ZodNullable<z.ZodNumber>;
|
|
282
|
+
followingCount: z.ZodNullable<z.ZodNumber>;
|
|
283
|
+
videoCount: z.ZodNullable<z.ZodNumber>;
|
|
284
|
+
heartCount: z.ZodNullable<z.ZodNumber>;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
id: string | null;
|
|
287
|
+
verified: boolean | null;
|
|
288
|
+
signature: string | null;
|
|
289
|
+
uniqueId: string | null;
|
|
290
|
+
nickname: string | null;
|
|
291
|
+
avatarThumb: string | null;
|
|
292
|
+
followerCount: number | null;
|
|
293
|
+
followingCount: number | null;
|
|
294
|
+
videoCount: number | null;
|
|
295
|
+
heartCount: number | null;
|
|
296
|
+
}, {
|
|
297
|
+
id: string | null;
|
|
298
|
+
verified: boolean | null;
|
|
299
|
+
signature: string | null;
|
|
300
|
+
uniqueId: string | null;
|
|
301
|
+
nickname: string | null;
|
|
302
|
+
avatarThumb: string | null;
|
|
303
|
+
followerCount: number | null;
|
|
304
|
+
followingCount: number | null;
|
|
305
|
+
videoCount: number | null;
|
|
306
|
+
heartCount: number | null;
|
|
307
|
+
}>>;
|
|
308
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
309
|
+
diggCount: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
shareCount: z.ZodNullable<z.ZodNumber>;
|
|
311
|
+
commentCount: z.ZodNullable<z.ZodNumber>;
|
|
312
|
+
playCount: z.ZodNullable<z.ZodNumber>;
|
|
313
|
+
collectCount: z.ZodNullable<z.ZodNumber>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
collectCount: number | null;
|
|
316
|
+
commentCount: number | null;
|
|
317
|
+
diggCount: number | null;
|
|
318
|
+
playCount: number | null;
|
|
319
|
+
shareCount: number | null;
|
|
320
|
+
}, {
|
|
321
|
+
collectCount: number | null;
|
|
322
|
+
commentCount: number | null;
|
|
323
|
+
diggCount: number | null;
|
|
324
|
+
playCount: number | null;
|
|
325
|
+
shareCount: number | null;
|
|
326
|
+
}>>;
|
|
327
|
+
videoUrl: z.ZodNullable<z.ZodString>;
|
|
328
|
+
webVideoUrl: z.ZodNullable<z.ZodString>;
|
|
329
|
+
covers: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
330
|
+
hashtags: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
331
|
+
name: z.ZodNullable<z.ZodString>;
|
|
332
|
+
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
name: string | null;
|
|
334
|
+
}, {
|
|
335
|
+
name: string | null;
|
|
336
|
+
}>, "many">>;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
stats: {
|
|
339
|
+
collectCount: number | null;
|
|
340
|
+
commentCount: number | null;
|
|
341
|
+
diggCount: number | null;
|
|
342
|
+
playCount: number | null;
|
|
343
|
+
shareCount: number | null;
|
|
344
|
+
} | null;
|
|
345
|
+
text: string | null;
|
|
346
|
+
id: string | null;
|
|
347
|
+
hashtags: {
|
|
348
|
+
name: string | null;
|
|
349
|
+
}[] | null;
|
|
350
|
+
videoUrl: string | null;
|
|
351
|
+
author: {
|
|
352
|
+
id: string | null;
|
|
353
|
+
verified: boolean | null;
|
|
354
|
+
signature: string | null;
|
|
355
|
+
uniqueId: string | null;
|
|
356
|
+
nickname: string | null;
|
|
357
|
+
avatarThumb: string | null;
|
|
358
|
+
followerCount: number | null;
|
|
359
|
+
followingCount: number | null;
|
|
360
|
+
videoCount: number | null;
|
|
361
|
+
heartCount: number | null;
|
|
362
|
+
} | null;
|
|
363
|
+
createTime: number | null;
|
|
364
|
+
createTimeISO: string | null;
|
|
365
|
+
webVideoUrl: string | null;
|
|
366
|
+
covers: string[] | null;
|
|
367
|
+
}, {
|
|
368
|
+
stats: {
|
|
369
|
+
collectCount: number | null;
|
|
370
|
+
commentCount: number | null;
|
|
371
|
+
diggCount: number | null;
|
|
372
|
+
playCount: number | null;
|
|
373
|
+
shareCount: number | null;
|
|
374
|
+
} | null;
|
|
375
|
+
text: string | null;
|
|
376
|
+
id: string | null;
|
|
377
|
+
hashtags: {
|
|
378
|
+
name: string | null;
|
|
379
|
+
}[] | null;
|
|
380
|
+
videoUrl: string | null;
|
|
381
|
+
author: {
|
|
382
|
+
id: string | null;
|
|
383
|
+
verified: boolean | null;
|
|
384
|
+
signature: string | null;
|
|
385
|
+
uniqueId: string | null;
|
|
386
|
+
nickname: string | null;
|
|
387
|
+
avatarThumb: string | null;
|
|
388
|
+
followerCount: number | null;
|
|
389
|
+
followingCount: number | null;
|
|
390
|
+
videoCount: number | null;
|
|
391
|
+
heartCount: number | null;
|
|
392
|
+
} | null;
|
|
393
|
+
createTime: number | null;
|
|
394
|
+
createTimeISO: string | null;
|
|
395
|
+
webVideoUrl: string | null;
|
|
396
|
+
covers: string[] | null;
|
|
397
|
+
}>, "many">;
|
|
398
|
+
totalVideos: z.ZodNumber;
|
|
399
|
+
success: z.ZodBoolean;
|
|
400
|
+
error: z.ZodString;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
402
|
+
error: string;
|
|
403
|
+
success: boolean;
|
|
404
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
405
|
+
videos: {
|
|
406
|
+
stats: {
|
|
407
|
+
collectCount: number | null;
|
|
408
|
+
commentCount: number | null;
|
|
409
|
+
diggCount: number | null;
|
|
410
|
+
playCount: number | null;
|
|
411
|
+
shareCount: number | null;
|
|
412
|
+
} | null;
|
|
413
|
+
text: string | null;
|
|
414
|
+
id: string | null;
|
|
415
|
+
hashtags: {
|
|
416
|
+
name: string | null;
|
|
417
|
+
}[] | null;
|
|
418
|
+
videoUrl: string | null;
|
|
419
|
+
author: {
|
|
420
|
+
id: string | null;
|
|
421
|
+
verified: boolean | null;
|
|
422
|
+
signature: string | null;
|
|
423
|
+
uniqueId: string | null;
|
|
424
|
+
nickname: string | null;
|
|
425
|
+
avatarThumb: string | null;
|
|
426
|
+
followerCount: number | null;
|
|
427
|
+
followingCount: number | null;
|
|
428
|
+
videoCount: number | null;
|
|
429
|
+
heartCount: number | null;
|
|
430
|
+
} | null;
|
|
431
|
+
createTime: number | null;
|
|
432
|
+
createTimeISO: string | null;
|
|
433
|
+
webVideoUrl: string | null;
|
|
434
|
+
covers: string[] | null;
|
|
435
|
+
}[];
|
|
436
|
+
totalVideos: number;
|
|
437
|
+
}, {
|
|
438
|
+
error: string;
|
|
439
|
+
success: boolean;
|
|
440
|
+
operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo";
|
|
441
|
+
videos: {
|
|
442
|
+
stats: {
|
|
443
|
+
collectCount: number | null;
|
|
444
|
+
commentCount: number | null;
|
|
445
|
+
diggCount: number | null;
|
|
446
|
+
playCount: number | null;
|
|
447
|
+
shareCount: number | null;
|
|
448
|
+
} | null;
|
|
449
|
+
text: string | null;
|
|
450
|
+
id: string | null;
|
|
451
|
+
hashtags: {
|
|
452
|
+
name: string | null;
|
|
453
|
+
}[] | null;
|
|
454
|
+
videoUrl: string | null;
|
|
455
|
+
author: {
|
|
456
|
+
id: string | null;
|
|
457
|
+
verified: boolean | null;
|
|
458
|
+
signature: string | null;
|
|
459
|
+
uniqueId: string | null;
|
|
460
|
+
nickname: string | null;
|
|
461
|
+
avatarThumb: string | null;
|
|
462
|
+
followerCount: number | null;
|
|
463
|
+
followingCount: number | null;
|
|
464
|
+
videoCount: number | null;
|
|
465
|
+
heartCount: number | null;
|
|
466
|
+
} | null;
|
|
467
|
+
createTime: number | null;
|
|
468
|
+
createTimeISO: string | null;
|
|
469
|
+
webVideoUrl: string | null;
|
|
470
|
+
covers: string[] | null;
|
|
471
|
+
}[];
|
|
472
|
+
totalVideos: number;
|
|
473
|
+
}>;
|
|
474
|
+
static readonly shortDescription = "Scrape TikTok profiles, videos, and hashtags.";
|
|
475
|
+
static readonly longDescription = "\n Universal TikTok scraping tool.\n \n Operations:\n - scrapeProfile: Get videos from user profiles\n - scrapeHashtag: Get videos by hashtag\n - scrapeVideo: Get details for specific videos\n \n Uses Apify's clockworks/tiktok-scraper.\n ";
|
|
476
|
+
static readonly alias = "tiktok";
|
|
477
|
+
static readonly type = "tool";
|
|
478
|
+
constructor(params?: TikTokToolParamsInput, context?: BubbleContext);
|
|
479
|
+
performAction(): Promise<TikTokToolResult>;
|
|
480
|
+
private createErrorResult;
|
|
481
|
+
private runScraper;
|
|
482
|
+
private transformVideos;
|
|
483
|
+
}
|
|
484
|
+
export {};
|
|
485
|
+
//# sourceMappingURL=tiktok-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tiktok-tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/tiktok-tool.ts"],"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