@bubblelab/bubble-core 0.1.10 → 0.1.12
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 +803 -351
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +130 -35
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts +5 -0
- package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.js +20 -0
- package/dist/bubble-flow/bubble-flow-class.js.map +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/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 +273 -61
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +536 -405
- 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 +4 -4
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +14 -14
- 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 +6 -6
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +32 -32
- 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 +12 -12
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1301 -170
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +32 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.d.ts +158 -13
- package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.js +222 -37
- package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +542 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.d.ts +37 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.js +203 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.js.map +1 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.js +593 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.js.map +1 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +518 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js +311 -0
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/browserbase/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/browserbase/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/browserbase/index.js +3 -0
- package/dist/bubbles/service-bubble/browserbase/index.js.map +1 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +1358 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.js +219 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.js.map +1 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +1604 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.js +194 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/crustdata/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/crustdata/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/crustdata/index.js +3 -0
- package/dist/bubbles/service-bubble/crustdata/index.js.map +1 -0
- 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 +2393 -0
- package/dist/bubbles/service-bubble/github.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/github.js +1046 -0
- package/dist/bubbles/service-bubble/github.js.map +1 -0
- package/dist/bubbles/service-bubble/gmail.d.ts +180 -180
- package/dist/bubbles/service-bubble/google-calendar.d.ts +60 -60
- package/dist/bubbles/service-bubble/google-drive.d.ts +69 -68
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.js +35 -3
- 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.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +17 -5
- package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/http.integration.flow.d.ts +49 -0
- package/dist/bubbles/service-bubble/http.integration.flow.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/http.integration.flow.js +425 -0
- package/dist/bubbles/service-bubble/http.integration.flow.js.map +1 -0
- package/dist/bubbles/service-bubble/http.js +47 -5
- 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 +12 -12
- 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 +1741 -798
- package/dist/bubbles/service-bubble/slack.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack.js +322 -28
- package/dist/bubbles/service-bubble/slack.js.map +1 -1
- package/dist/bubbles/service-bubble/storage.d.ts +26 -22
- package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/storage.js +45 -4
- 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/amazon-shopping-tool/amazon-shopping-tool.d.ts +494 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.d.ts +31 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.js +100 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.js.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.js +1301 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +473 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.js +230 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.js.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.d.ts +3 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.js +3 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.js.map +1 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +76 -20
- 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 +14 -14
- 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/company-enrichment-tool.d.ts +740 -0
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/company-enrichment-tool.js +350 -0
- package/dist/bubbles/tool-bubble/company-enrichment-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 +115 -10
- 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 +206 -0
- package/dist/bubbles/tool-bubble/google-maps-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +36 -36
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/instagram-tool.js +4 -2
- package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +830 -453
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/linkedin-tool.js +236 -14
- 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 +66 -66
- 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 +32 -17
- package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
- 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/tool-template.d.ts +8 -8
- 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 +497 -0
- package/dist/bubbles/tool-bubble/twitter-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -16
- 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 +8 -8
- 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 +21 -113
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-scrape-tool.js +55 -73
- package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +20 -9
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.js +45 -35
- package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +25 -25
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/youtube-tool.js +8 -5
- package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -1
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +30 -30
- package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +22 -22
- package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +70 -70
- 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 +36 -36
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +14 -14
- 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 +18 -18
- 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 +19 -19
- 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 +260 -77
- package/dist/index.d.ts +25 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/logging/BubbleLogger.d.ts +55 -16
- package/dist/logging/BubbleLogger.d.ts.map +1 -1
- package/dist/logging/BubbleLogger.js +192 -77
- package/dist/logging/BubbleLogger.js.map +1 -1
- package/dist/logging/StreamingBubbleLogger.d.ts +21 -1
- package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
- package/dist/logging/StreamingBubbleLogger.js +80 -8
- 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 +7 -0
- package/dist/types/available-tools.js.map +1 -1
- package/dist/types/base-bubble-class.d.ts +6 -4
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +30 -23
- package/dist/types/base-bubble-class.js.map +1 -1
- package/dist/types/bubble.d.ts +2 -0
- package/dist/types/bubble.d.ts.map +1 -1
- package/dist/types/service-bubble-class.d.ts +1 -1
- 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 +1 -1
- package/dist/types/tool-bubble-class.d.ts.map +1 -1
- package/dist/types/tool-bubble-class.js +60 -10
- package/dist/types/tool-bubble-class.js.map +1 -1
- package/dist/types/workflow-bubble-class.d.ts +1 -1
- 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 +174 -26
- 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 +171 -6
- package/dist/utils/bubbleflow-validation.js.map +1 -1
- 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 +6 -4
- 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/service-bubble/x-twitter.d.ts +0 -814
- package/dist/bubbles/service-bubble/x-twitter.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/x-twitter.js +0 -445
- package/dist/bubbles/service-bubble/x-twitter.js.map +0 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +0 -125
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +0 -808
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +0 -1
- package/dist/test-gm.d.ts +0 -10
- package/dist/test-gm.d.ts.map +0 -1
- package/dist/test-gm.js +0 -95
- package/dist/test-gm.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
|
@@ -119,7 +119,7 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
119
119
|
send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
120
120
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
type: "
|
|
122
|
+
type: "user" | "group" | "domain" | "anyone";
|
|
123
123
|
operation: "share_file";
|
|
124
124
|
file_id: string;
|
|
125
125
|
role: "writer" | "reader" | "commenter" | "owner";
|
|
@@ -129,7 +129,7 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
129
129
|
}, {
|
|
130
130
|
operation: "share_file";
|
|
131
131
|
file_id: string;
|
|
132
|
-
type?: "
|
|
132
|
+
type?: "user" | "group" | "domain" | "anyone" | undefined;
|
|
133
133
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
134
134
|
email_address?: string | undefined;
|
|
135
135
|
role?: "writer" | "reader" | "commenter" | "owner" | undefined;
|
|
@@ -179,8 +179,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
179
179
|
}>, "many">>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
181
|
name: string;
|
|
182
|
-
mimeType: string;
|
|
183
182
|
id: string;
|
|
183
|
+
mimeType: string;
|
|
184
184
|
size?: string | undefined;
|
|
185
185
|
createdTime?: string | undefined;
|
|
186
186
|
modifiedTime?: string | undefined;
|
|
@@ -194,8 +194,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
194
194
|
}[] | undefined;
|
|
195
195
|
}, {
|
|
196
196
|
name: string;
|
|
197
|
-
mimeType: string;
|
|
198
197
|
id: string;
|
|
198
|
+
mimeType: string;
|
|
199
199
|
size?: string | undefined;
|
|
200
200
|
createdTime?: string | undefined;
|
|
201
201
|
modifiedTime?: string | undefined;
|
|
@@ -210,13 +210,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
210
210
|
}>>;
|
|
211
211
|
error: z.ZodString;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
success: boolean;
|
|
214
213
|
error: string;
|
|
214
|
+
success: boolean;
|
|
215
215
|
operation: "upload_file";
|
|
216
216
|
file?: {
|
|
217
217
|
name: string;
|
|
218
|
-
mimeType: string;
|
|
219
218
|
id: string;
|
|
219
|
+
mimeType: string;
|
|
220
220
|
size?: string | undefined;
|
|
221
221
|
createdTime?: string | undefined;
|
|
222
222
|
modifiedTime?: string | undefined;
|
|
@@ -230,13 +230,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
230
230
|
}[] | undefined;
|
|
231
231
|
} | undefined;
|
|
232
232
|
}, {
|
|
233
|
-
success: boolean;
|
|
234
233
|
error: string;
|
|
234
|
+
success: boolean;
|
|
235
235
|
operation: "upload_file";
|
|
236
236
|
file?: {
|
|
237
237
|
name: string;
|
|
238
|
-
mimeType: string;
|
|
239
238
|
id: string;
|
|
239
|
+
mimeType: string;
|
|
240
240
|
size?: string | undefined;
|
|
241
241
|
createdTime?: string | undefined;
|
|
242
242
|
modifiedTime?: string | undefined;
|
|
@@ -257,15 +257,15 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
257
257
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
258
258
|
error: z.ZodString;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
success: boolean;
|
|
261
260
|
error: string;
|
|
261
|
+
success: boolean;
|
|
262
262
|
operation: "download_file";
|
|
263
263
|
content?: string | undefined;
|
|
264
264
|
mimeType?: string | undefined;
|
|
265
265
|
filename?: string | undefined;
|
|
266
266
|
}, {
|
|
267
|
-
success: boolean;
|
|
268
267
|
error: string;
|
|
268
|
+
success: boolean;
|
|
269
269
|
operation: "download_file";
|
|
270
270
|
content?: string | undefined;
|
|
271
271
|
mimeType?: string | undefined;
|
|
@@ -296,8 +296,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
296
296
|
}>, "many">>;
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
298
|
name: string;
|
|
299
|
-
mimeType: string;
|
|
300
299
|
id: string;
|
|
300
|
+
mimeType: string;
|
|
301
301
|
size?: string | undefined;
|
|
302
302
|
createdTime?: string | undefined;
|
|
303
303
|
modifiedTime?: string | undefined;
|
|
@@ -311,8 +311,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
311
311
|
}[] | undefined;
|
|
312
312
|
}, {
|
|
313
313
|
name: string;
|
|
314
|
-
mimeType: string;
|
|
315
314
|
id: string;
|
|
315
|
+
mimeType: string;
|
|
316
316
|
size?: string | undefined;
|
|
317
317
|
createdTime?: string | undefined;
|
|
318
318
|
modifiedTime?: string | undefined;
|
|
@@ -329,13 +329,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
329
329
|
next_page_token: z.ZodOptional<z.ZodString>;
|
|
330
330
|
error: z.ZodString;
|
|
331
331
|
}, "strip", z.ZodTypeAny, {
|
|
332
|
-
success: boolean;
|
|
333
332
|
error: string;
|
|
333
|
+
success: boolean;
|
|
334
334
|
operation: "list_files";
|
|
335
335
|
files?: {
|
|
336
336
|
name: string;
|
|
337
|
-
mimeType: string;
|
|
338
337
|
id: string;
|
|
338
|
+
mimeType: string;
|
|
339
339
|
size?: string | undefined;
|
|
340
340
|
createdTime?: string | undefined;
|
|
341
341
|
modifiedTime?: string | undefined;
|
|
@@ -351,13 +351,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
351
351
|
total_count?: number | undefined;
|
|
352
352
|
next_page_token?: string | undefined;
|
|
353
353
|
}, {
|
|
354
|
-
success: boolean;
|
|
355
354
|
error: string;
|
|
355
|
+
success: boolean;
|
|
356
356
|
operation: "list_files";
|
|
357
357
|
files?: {
|
|
358
358
|
name: string;
|
|
359
|
-
mimeType: string;
|
|
360
359
|
id: string;
|
|
360
|
+
mimeType: string;
|
|
361
361
|
size?: string | undefined;
|
|
362
362
|
createdTime?: string | undefined;
|
|
363
363
|
modifiedTime?: string | undefined;
|
|
@@ -393,8 +393,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
393
393
|
}>>;
|
|
394
394
|
error: z.ZodString;
|
|
395
395
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
success: boolean;
|
|
397
396
|
error: string;
|
|
397
|
+
success: boolean;
|
|
398
398
|
operation: "create_folder";
|
|
399
399
|
folder?: {
|
|
400
400
|
name: string;
|
|
@@ -403,8 +403,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
403
403
|
parents?: string[] | undefined;
|
|
404
404
|
} | undefined;
|
|
405
405
|
}, {
|
|
406
|
-
success: boolean;
|
|
407
406
|
error: string;
|
|
407
|
+
success: boolean;
|
|
408
408
|
operation: "create_folder";
|
|
409
409
|
folder?: {
|
|
410
410
|
name: string;
|
|
@@ -418,13 +418,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
418
418
|
deleted_file_id: z.ZodOptional<z.ZodString>;
|
|
419
419
|
error: z.ZodString;
|
|
420
420
|
}, "strip", z.ZodTypeAny, {
|
|
421
|
-
success: boolean;
|
|
422
421
|
error: string;
|
|
422
|
+
success: boolean;
|
|
423
423
|
operation: "delete_file";
|
|
424
424
|
deleted_file_id?: string | undefined;
|
|
425
425
|
}, {
|
|
426
|
-
success: boolean;
|
|
427
426
|
error: string;
|
|
427
|
+
success: boolean;
|
|
428
428
|
operation: "delete_file";
|
|
429
429
|
deleted_file_id?: string | undefined;
|
|
430
430
|
}>, z.ZodObject<{
|
|
@@ -453,8 +453,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
453
453
|
}>, "many">>;
|
|
454
454
|
}, "strip", z.ZodTypeAny, {
|
|
455
455
|
name: string;
|
|
456
|
-
mimeType: string;
|
|
457
456
|
id: string;
|
|
457
|
+
mimeType: string;
|
|
458
458
|
size?: string | undefined;
|
|
459
459
|
createdTime?: string | undefined;
|
|
460
460
|
modifiedTime?: string | undefined;
|
|
@@ -468,8 +468,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
468
468
|
}[] | undefined;
|
|
469
469
|
}, {
|
|
470
470
|
name: string;
|
|
471
|
-
mimeType: string;
|
|
472
471
|
id: string;
|
|
472
|
+
mimeType: string;
|
|
473
473
|
size?: string | undefined;
|
|
474
474
|
createdTime?: string | undefined;
|
|
475
475
|
modifiedTime?: string | undefined;
|
|
@@ -503,13 +503,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
503
503
|
}>, "many">>;
|
|
504
504
|
error: z.ZodString;
|
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
success: boolean;
|
|
507
506
|
error: string;
|
|
507
|
+
success: boolean;
|
|
508
508
|
operation: "get_file_info";
|
|
509
509
|
file?: {
|
|
510
510
|
name: string;
|
|
511
|
-
mimeType: string;
|
|
512
511
|
id: string;
|
|
512
|
+
mimeType: string;
|
|
513
513
|
size?: string | undefined;
|
|
514
514
|
createdTime?: string | undefined;
|
|
515
515
|
modifiedTime?: string | undefined;
|
|
@@ -530,13 +530,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
530
530
|
emailAddress?: string | undefined;
|
|
531
531
|
}[] | undefined;
|
|
532
532
|
}, {
|
|
533
|
-
success: boolean;
|
|
534
533
|
error: string;
|
|
534
|
+
success: boolean;
|
|
535
535
|
operation: "get_file_info";
|
|
536
536
|
file?: {
|
|
537
537
|
name: string;
|
|
538
|
-
mimeType: string;
|
|
539
538
|
id: string;
|
|
539
|
+
mimeType: string;
|
|
540
540
|
size?: string | undefined;
|
|
541
541
|
createdTime?: string | undefined;
|
|
542
542
|
modifiedTime?: string | undefined;
|
|
@@ -563,14 +563,14 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
563
563
|
share_link: z.ZodOptional<z.ZodString>;
|
|
564
564
|
error: z.ZodString;
|
|
565
565
|
}, "strip", z.ZodTypeAny, {
|
|
566
|
-
success: boolean;
|
|
567
566
|
error: string;
|
|
567
|
+
success: boolean;
|
|
568
568
|
operation: "share_file";
|
|
569
569
|
permission_id?: string | undefined;
|
|
570
570
|
share_link?: string | undefined;
|
|
571
571
|
}, {
|
|
572
|
-
success: boolean;
|
|
573
572
|
error: string;
|
|
573
|
+
success: boolean;
|
|
574
574
|
operation: "share_file";
|
|
575
575
|
permission_id?: string | undefined;
|
|
576
576
|
share_link?: string | undefined;
|
|
@@ -600,8 +600,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
600
600
|
}>, "many">>;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
602
|
name: string;
|
|
603
|
-
mimeType: string;
|
|
604
603
|
id: string;
|
|
604
|
+
mimeType: string;
|
|
605
605
|
size?: string | undefined;
|
|
606
606
|
createdTime?: string | undefined;
|
|
607
607
|
modifiedTime?: string | undefined;
|
|
@@ -615,8 +615,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
615
615
|
}[] | undefined;
|
|
616
616
|
}, {
|
|
617
617
|
name: string;
|
|
618
|
-
mimeType: string;
|
|
619
618
|
id: string;
|
|
619
|
+
mimeType: string;
|
|
620
620
|
size?: string | undefined;
|
|
621
621
|
createdTime?: string | undefined;
|
|
622
622
|
modifiedTime?: string | undefined;
|
|
@@ -631,13 +631,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
631
631
|
}>>;
|
|
632
632
|
error: z.ZodString;
|
|
633
633
|
}, "strip", z.ZodTypeAny, {
|
|
634
|
-
success: boolean;
|
|
635
634
|
error: string;
|
|
635
|
+
success: boolean;
|
|
636
636
|
operation: "move_file";
|
|
637
637
|
file?: {
|
|
638
638
|
name: string;
|
|
639
|
-
mimeType: string;
|
|
640
639
|
id: string;
|
|
640
|
+
mimeType: string;
|
|
641
641
|
size?: string | undefined;
|
|
642
642
|
createdTime?: string | undefined;
|
|
643
643
|
modifiedTime?: string | undefined;
|
|
@@ -651,13 +651,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
651
651
|
}[] | undefined;
|
|
652
652
|
} | undefined;
|
|
653
653
|
}, {
|
|
654
|
-
success: boolean;
|
|
655
654
|
error: string;
|
|
655
|
+
success: boolean;
|
|
656
656
|
operation: "move_file";
|
|
657
657
|
file?: {
|
|
658
658
|
name: string;
|
|
659
|
-
mimeType: string;
|
|
660
659
|
id: string;
|
|
660
|
+
mimeType: string;
|
|
661
661
|
size?: string | undefined;
|
|
662
662
|
createdTime?: string | undefined;
|
|
663
663
|
modifiedTime?: string | undefined;
|
|
@@ -801,7 +801,7 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
801
801
|
send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
802
802
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
803
803
|
}, "strip", z.ZodTypeAny, {
|
|
804
|
-
type: "
|
|
804
|
+
type: "user" | "group" | "domain" | "anyone";
|
|
805
805
|
operation: "share_file";
|
|
806
806
|
file_id: string;
|
|
807
807
|
role: "writer" | "reader" | "commenter" | "owner";
|
|
@@ -811,7 +811,7 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
811
811
|
}, {
|
|
812
812
|
operation: "share_file";
|
|
813
813
|
file_id: string;
|
|
814
|
-
type?: "
|
|
814
|
+
type?: "user" | "group" | "domain" | "anyone" | undefined;
|
|
815
815
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
816
816
|
email_address?: string | undefined;
|
|
817
817
|
role?: "writer" | "reader" | "commenter" | "owner" | undefined;
|
|
@@ -861,8 +861,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
861
861
|
}>, "many">>;
|
|
862
862
|
}, "strip", z.ZodTypeAny, {
|
|
863
863
|
name: string;
|
|
864
|
-
mimeType: string;
|
|
865
864
|
id: string;
|
|
865
|
+
mimeType: string;
|
|
866
866
|
size?: string | undefined;
|
|
867
867
|
createdTime?: string | undefined;
|
|
868
868
|
modifiedTime?: string | undefined;
|
|
@@ -876,8 +876,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
876
876
|
}[] | undefined;
|
|
877
877
|
}, {
|
|
878
878
|
name: string;
|
|
879
|
-
mimeType: string;
|
|
880
879
|
id: string;
|
|
880
|
+
mimeType: string;
|
|
881
881
|
size?: string | undefined;
|
|
882
882
|
createdTime?: string | undefined;
|
|
883
883
|
modifiedTime?: string | undefined;
|
|
@@ -892,13 +892,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
892
892
|
}>>;
|
|
893
893
|
error: z.ZodString;
|
|
894
894
|
}, "strip", z.ZodTypeAny, {
|
|
895
|
-
success: boolean;
|
|
896
895
|
error: string;
|
|
896
|
+
success: boolean;
|
|
897
897
|
operation: "upload_file";
|
|
898
898
|
file?: {
|
|
899
899
|
name: string;
|
|
900
|
-
mimeType: string;
|
|
901
900
|
id: string;
|
|
901
|
+
mimeType: string;
|
|
902
902
|
size?: string | undefined;
|
|
903
903
|
createdTime?: string | undefined;
|
|
904
904
|
modifiedTime?: string | undefined;
|
|
@@ -912,13 +912,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
912
912
|
}[] | undefined;
|
|
913
913
|
} | undefined;
|
|
914
914
|
}, {
|
|
915
|
-
success: boolean;
|
|
916
915
|
error: string;
|
|
916
|
+
success: boolean;
|
|
917
917
|
operation: "upload_file";
|
|
918
918
|
file?: {
|
|
919
919
|
name: string;
|
|
920
|
-
mimeType: string;
|
|
921
920
|
id: string;
|
|
921
|
+
mimeType: string;
|
|
922
922
|
size?: string | undefined;
|
|
923
923
|
createdTime?: string | undefined;
|
|
924
924
|
modifiedTime?: string | undefined;
|
|
@@ -939,15 +939,15 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
939
939
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
940
940
|
error: z.ZodString;
|
|
941
941
|
}, "strip", z.ZodTypeAny, {
|
|
942
|
-
success: boolean;
|
|
943
942
|
error: string;
|
|
943
|
+
success: boolean;
|
|
944
944
|
operation: "download_file";
|
|
945
945
|
content?: string | undefined;
|
|
946
946
|
mimeType?: string | undefined;
|
|
947
947
|
filename?: string | undefined;
|
|
948
948
|
}, {
|
|
949
|
-
success: boolean;
|
|
950
949
|
error: string;
|
|
950
|
+
success: boolean;
|
|
951
951
|
operation: "download_file";
|
|
952
952
|
content?: string | undefined;
|
|
953
953
|
mimeType?: string | undefined;
|
|
@@ -978,8 +978,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
978
978
|
}>, "many">>;
|
|
979
979
|
}, "strip", z.ZodTypeAny, {
|
|
980
980
|
name: string;
|
|
981
|
-
mimeType: string;
|
|
982
981
|
id: string;
|
|
982
|
+
mimeType: string;
|
|
983
983
|
size?: string | undefined;
|
|
984
984
|
createdTime?: string | undefined;
|
|
985
985
|
modifiedTime?: string | undefined;
|
|
@@ -993,8 +993,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
993
993
|
}[] | undefined;
|
|
994
994
|
}, {
|
|
995
995
|
name: string;
|
|
996
|
-
mimeType: string;
|
|
997
996
|
id: string;
|
|
997
|
+
mimeType: string;
|
|
998
998
|
size?: string | undefined;
|
|
999
999
|
createdTime?: string | undefined;
|
|
1000
1000
|
modifiedTime?: string | undefined;
|
|
@@ -1011,13 +1011,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1011
1011
|
next_page_token: z.ZodOptional<z.ZodString>;
|
|
1012
1012
|
error: z.ZodString;
|
|
1013
1013
|
}, "strip", z.ZodTypeAny, {
|
|
1014
|
-
success: boolean;
|
|
1015
1014
|
error: string;
|
|
1015
|
+
success: boolean;
|
|
1016
1016
|
operation: "list_files";
|
|
1017
1017
|
files?: {
|
|
1018
1018
|
name: string;
|
|
1019
|
-
mimeType: string;
|
|
1020
1019
|
id: string;
|
|
1020
|
+
mimeType: string;
|
|
1021
1021
|
size?: string | undefined;
|
|
1022
1022
|
createdTime?: string | undefined;
|
|
1023
1023
|
modifiedTime?: string | undefined;
|
|
@@ -1033,13 +1033,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1033
1033
|
total_count?: number | undefined;
|
|
1034
1034
|
next_page_token?: string | undefined;
|
|
1035
1035
|
}, {
|
|
1036
|
-
success: boolean;
|
|
1037
1036
|
error: string;
|
|
1037
|
+
success: boolean;
|
|
1038
1038
|
operation: "list_files";
|
|
1039
1039
|
files?: {
|
|
1040
1040
|
name: string;
|
|
1041
|
-
mimeType: string;
|
|
1042
1041
|
id: string;
|
|
1042
|
+
mimeType: string;
|
|
1043
1043
|
size?: string | undefined;
|
|
1044
1044
|
createdTime?: string | undefined;
|
|
1045
1045
|
modifiedTime?: string | undefined;
|
|
@@ -1075,8 +1075,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1075
1075
|
}>>;
|
|
1076
1076
|
error: z.ZodString;
|
|
1077
1077
|
}, "strip", z.ZodTypeAny, {
|
|
1078
|
-
success: boolean;
|
|
1079
1078
|
error: string;
|
|
1079
|
+
success: boolean;
|
|
1080
1080
|
operation: "create_folder";
|
|
1081
1081
|
folder?: {
|
|
1082
1082
|
name: string;
|
|
@@ -1085,8 +1085,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1085
1085
|
parents?: string[] | undefined;
|
|
1086
1086
|
} | undefined;
|
|
1087
1087
|
}, {
|
|
1088
|
-
success: boolean;
|
|
1089
1088
|
error: string;
|
|
1089
|
+
success: boolean;
|
|
1090
1090
|
operation: "create_folder";
|
|
1091
1091
|
folder?: {
|
|
1092
1092
|
name: string;
|
|
@@ -1100,13 +1100,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1100
1100
|
deleted_file_id: z.ZodOptional<z.ZodString>;
|
|
1101
1101
|
error: z.ZodString;
|
|
1102
1102
|
}, "strip", z.ZodTypeAny, {
|
|
1103
|
-
success: boolean;
|
|
1104
1103
|
error: string;
|
|
1104
|
+
success: boolean;
|
|
1105
1105
|
operation: "delete_file";
|
|
1106
1106
|
deleted_file_id?: string | undefined;
|
|
1107
1107
|
}, {
|
|
1108
|
-
success: boolean;
|
|
1109
1108
|
error: string;
|
|
1109
|
+
success: boolean;
|
|
1110
1110
|
operation: "delete_file";
|
|
1111
1111
|
deleted_file_id?: string | undefined;
|
|
1112
1112
|
}>, z.ZodObject<{
|
|
@@ -1135,8 +1135,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1135
1135
|
}>, "many">>;
|
|
1136
1136
|
}, "strip", z.ZodTypeAny, {
|
|
1137
1137
|
name: string;
|
|
1138
|
-
mimeType: string;
|
|
1139
1138
|
id: string;
|
|
1139
|
+
mimeType: string;
|
|
1140
1140
|
size?: string | undefined;
|
|
1141
1141
|
createdTime?: string | undefined;
|
|
1142
1142
|
modifiedTime?: string | undefined;
|
|
@@ -1150,8 +1150,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1150
1150
|
}[] | undefined;
|
|
1151
1151
|
}, {
|
|
1152
1152
|
name: string;
|
|
1153
|
-
mimeType: string;
|
|
1154
1153
|
id: string;
|
|
1154
|
+
mimeType: string;
|
|
1155
1155
|
size?: string | undefined;
|
|
1156
1156
|
createdTime?: string | undefined;
|
|
1157
1157
|
modifiedTime?: string | undefined;
|
|
@@ -1185,13 +1185,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1185
1185
|
}>, "many">>;
|
|
1186
1186
|
error: z.ZodString;
|
|
1187
1187
|
}, "strip", z.ZodTypeAny, {
|
|
1188
|
-
success: boolean;
|
|
1189
1188
|
error: string;
|
|
1189
|
+
success: boolean;
|
|
1190
1190
|
operation: "get_file_info";
|
|
1191
1191
|
file?: {
|
|
1192
1192
|
name: string;
|
|
1193
|
-
mimeType: string;
|
|
1194
1193
|
id: string;
|
|
1194
|
+
mimeType: string;
|
|
1195
1195
|
size?: string | undefined;
|
|
1196
1196
|
createdTime?: string | undefined;
|
|
1197
1197
|
modifiedTime?: string | undefined;
|
|
@@ -1212,13 +1212,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1212
1212
|
emailAddress?: string | undefined;
|
|
1213
1213
|
}[] | undefined;
|
|
1214
1214
|
}, {
|
|
1215
|
-
success: boolean;
|
|
1216
1215
|
error: string;
|
|
1216
|
+
success: boolean;
|
|
1217
1217
|
operation: "get_file_info";
|
|
1218
1218
|
file?: {
|
|
1219
1219
|
name: string;
|
|
1220
|
-
mimeType: string;
|
|
1221
1220
|
id: string;
|
|
1221
|
+
mimeType: string;
|
|
1222
1222
|
size?: string | undefined;
|
|
1223
1223
|
createdTime?: string | undefined;
|
|
1224
1224
|
modifiedTime?: string | undefined;
|
|
@@ -1245,14 +1245,14 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1245
1245
|
share_link: z.ZodOptional<z.ZodString>;
|
|
1246
1246
|
error: z.ZodString;
|
|
1247
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1248
|
-
success: boolean;
|
|
1249
1248
|
error: string;
|
|
1249
|
+
success: boolean;
|
|
1250
1250
|
operation: "share_file";
|
|
1251
1251
|
permission_id?: string | undefined;
|
|
1252
1252
|
share_link?: string | undefined;
|
|
1253
1253
|
}, {
|
|
1254
|
-
success: boolean;
|
|
1255
1254
|
error: string;
|
|
1255
|
+
success: boolean;
|
|
1256
1256
|
operation: "share_file";
|
|
1257
1257
|
permission_id?: string | undefined;
|
|
1258
1258
|
share_link?: string | undefined;
|
|
@@ -1282,8 +1282,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1282
1282
|
}>, "many">>;
|
|
1283
1283
|
}, "strip", z.ZodTypeAny, {
|
|
1284
1284
|
name: string;
|
|
1285
|
-
mimeType: string;
|
|
1286
1285
|
id: string;
|
|
1286
|
+
mimeType: string;
|
|
1287
1287
|
size?: string | undefined;
|
|
1288
1288
|
createdTime?: string | undefined;
|
|
1289
1289
|
modifiedTime?: string | undefined;
|
|
@@ -1297,8 +1297,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1297
1297
|
}[] | undefined;
|
|
1298
1298
|
}, {
|
|
1299
1299
|
name: string;
|
|
1300
|
-
mimeType: string;
|
|
1301
1300
|
id: string;
|
|
1301
|
+
mimeType: string;
|
|
1302
1302
|
size?: string | undefined;
|
|
1303
1303
|
createdTime?: string | undefined;
|
|
1304
1304
|
modifiedTime?: string | undefined;
|
|
@@ -1313,13 +1313,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1313
1313
|
}>>;
|
|
1314
1314
|
error: z.ZodString;
|
|
1315
1315
|
}, "strip", z.ZodTypeAny, {
|
|
1316
|
-
success: boolean;
|
|
1317
1316
|
error: string;
|
|
1317
|
+
success: boolean;
|
|
1318
1318
|
operation: "move_file";
|
|
1319
1319
|
file?: {
|
|
1320
1320
|
name: string;
|
|
1321
|
-
mimeType: string;
|
|
1322
1321
|
id: string;
|
|
1322
|
+
mimeType: string;
|
|
1323
1323
|
size?: string | undefined;
|
|
1324
1324
|
createdTime?: string | undefined;
|
|
1325
1325
|
modifiedTime?: string | undefined;
|
|
@@ -1333,13 +1333,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1333
1333
|
}[] | undefined;
|
|
1334
1334
|
} | undefined;
|
|
1335
1335
|
}, {
|
|
1336
|
-
success: boolean;
|
|
1337
1336
|
error: string;
|
|
1337
|
+
success: boolean;
|
|
1338
1338
|
operation: "move_file";
|
|
1339
1339
|
file?: {
|
|
1340
1340
|
name: string;
|
|
1341
|
-
mimeType: string;
|
|
1342
1341
|
id: string;
|
|
1342
|
+
mimeType: string;
|
|
1343
1343
|
size?: string | undefined;
|
|
1344
1344
|
createdTime?: string | undefined;
|
|
1345
1345
|
modifiedTime?: string | undefined;
|
|
@@ -1363,6 +1363,7 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1363
1363
|
operation: T['operation'];
|
|
1364
1364
|
}>>;
|
|
1365
1365
|
private uploadFile;
|
|
1366
|
+
private isTextMimeType;
|
|
1366
1367
|
private downloadFile;
|
|
1367
1368
|
private listFiles;
|
|
1368
1369
|
private createFolder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-drive.d.ts","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/google-drive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAkD3D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqO3B,CAAC;AAGH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"google-drive.d.ts","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/google-drive.ts"],"names":[],"mappings":"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"}
|
|
@@ -262,7 +262,7 @@ const GoogleDriveResultSchema = z.discriminatedUnion('operation', [
|
|
|
262
262
|
content: z
|
|
263
263
|
.string()
|
|
264
264
|
.optional()
|
|
265
|
-
.describe('File content as base64 encoded string'),
|
|
265
|
+
.describe('File content as plain text (for text-based files) or base64 encoded string (for binary files)'),
|
|
266
266
|
filename: z.string().optional().describe('Original filename'),
|
|
267
267
|
mimeType: z
|
|
268
268
|
.string()
|
|
@@ -605,6 +605,26 @@ export class GoogleDriveBubble extends ServiceBubble {
|
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
+
isTextMimeType(mimeType) {
|
|
609
|
+
if (!mimeType) {
|
|
610
|
+
return false;
|
|
611
|
+
}
|
|
612
|
+
// Text-based MIME types that should be returned as plain text
|
|
613
|
+
const textMimeTypes = [
|
|
614
|
+
'text/',
|
|
615
|
+
'application/json',
|
|
616
|
+
'application/xml',
|
|
617
|
+
'application/javascript',
|
|
618
|
+
'application/typescript',
|
|
619
|
+
'application/x-sh',
|
|
620
|
+
'application/x-yaml',
|
|
621
|
+
'application/x-toml',
|
|
622
|
+
'application/csv',
|
|
623
|
+
'application/x-csv',
|
|
624
|
+
'text/csv',
|
|
625
|
+
];
|
|
626
|
+
return textMimeTypes.some((prefix) => mimeType.startsWith(prefix));
|
|
627
|
+
}
|
|
608
628
|
async downloadFile(params) {
|
|
609
629
|
const { file_id, export_format } = params;
|
|
610
630
|
// First get file metadata to determine if it's a Google Workspace file
|
|
@@ -617,14 +637,26 @@ export class GoogleDriveBubble extends ServiceBubble {
|
|
|
617
637
|
throw new Error('Export format is required for Google Workspace files');
|
|
618
638
|
}
|
|
619
639
|
const exportResponse = await this.makeGoogleApiRequest(`/files/${file_id}/export?mimeType=${encodeURIComponent(export_format)}`, 'GET', undefined, {}, 'arrayBuffer');
|
|
620
|
-
content = Buffer.from(exportResponse).toString('base64');
|
|
621
640
|
actualMimeType = export_format;
|
|
641
|
+
// Return as plain text for text-based formats, base64 for binary
|
|
642
|
+
if (this.isTextMimeType(actualMimeType)) {
|
|
643
|
+
content = Buffer.from(exportResponse).toString('utf-8');
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
content = Buffer.from(exportResponse).toString('base64');
|
|
647
|
+
}
|
|
622
648
|
}
|
|
623
649
|
else {
|
|
624
650
|
// Regular file download
|
|
625
651
|
const downloadResponse = await this.makeGoogleApiRequest(`/files/${file_id}?alt=media`, 'GET', undefined, {}, 'arrayBuffer');
|
|
626
|
-
content = Buffer.from(downloadResponse).toString('base64');
|
|
627
652
|
actualMimeType = fileInfo.mimeType;
|
|
653
|
+
// Return as plain text for text-based formats, base64 for binary
|
|
654
|
+
if (this.isTextMimeType(actualMimeType)) {
|
|
655
|
+
content = Buffer.from(downloadResponse).toString('utf-8');
|
|
656
|
+
}
|
|
657
|
+
else {
|
|
658
|
+
content = Buffer.from(downloadResponse).toString('base64');
|
|
659
|
+
}
|
|
628
660
|
}
|
|
629
661
|
return {
|
|
630
662
|
operation: 'download_file',
|