@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
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import crypto from 'crypto';
|
|
3
|
+
import { ServiceBubble } from '../../types/service-bubble-class.js';
|
|
4
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
5
|
+
// Define the parameters schema for the Eleven Labs bubble
|
|
6
|
+
export const ElevenLabsParamsSchema = z.discriminatedUnion('operation', [
|
|
7
|
+
z.object({
|
|
8
|
+
operation: z
|
|
9
|
+
.literal('get_signed_url')
|
|
10
|
+
.describe('Get a signed URL for authenticated WebSocket connection'),
|
|
11
|
+
agentId: z.string().describe('The ID of the agent to connect to'),
|
|
12
|
+
credentials: z
|
|
13
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
16
|
+
}),
|
|
17
|
+
z.object({
|
|
18
|
+
operation: z
|
|
19
|
+
.literal('trigger_outbound_call')
|
|
20
|
+
.describe('Trigger an outbound call to a phone number'),
|
|
21
|
+
agentId: z.string().describe('The ID of the agent to use for the call'),
|
|
22
|
+
toPhoneNumber: z
|
|
23
|
+
.string()
|
|
24
|
+
.describe('The phone number to call (E.164 format)'),
|
|
25
|
+
phoneNumberId: z
|
|
26
|
+
.string()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('The ID of the phone number to call from (optional)'),
|
|
29
|
+
variables: z
|
|
30
|
+
.record(z.string())
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Dynamic variables to pass to the agent'),
|
|
33
|
+
credentials: z
|
|
34
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
35
|
+
.optional()
|
|
36
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
37
|
+
}),
|
|
38
|
+
z.object({
|
|
39
|
+
operation: z.literal('get_agent').describe('Get details about an agent'),
|
|
40
|
+
agentId: z.string().describe('The ID of the agent to retrieve'),
|
|
41
|
+
credentials: z
|
|
42
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
45
|
+
}),
|
|
46
|
+
z.object({
|
|
47
|
+
operation: z
|
|
48
|
+
.literal('validate_webhook_signature')
|
|
49
|
+
.describe('Validate a webhook signature from Eleven Labs'),
|
|
50
|
+
signature: z
|
|
51
|
+
.string()
|
|
52
|
+
.describe('The signature header from the webhook request'),
|
|
53
|
+
timestamp: z
|
|
54
|
+
.string()
|
|
55
|
+
.describe('The timestamp header from the webhook request'),
|
|
56
|
+
body: z.string().describe('The raw body of the webhook request'),
|
|
57
|
+
webhookSecret: z
|
|
58
|
+
.string()
|
|
59
|
+
.describe('The webhook secret to validate against'),
|
|
60
|
+
credentials: z
|
|
61
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
62
|
+
.optional()
|
|
63
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
64
|
+
}),
|
|
65
|
+
z.object({
|
|
66
|
+
operation: z
|
|
67
|
+
.literal('get_conversation')
|
|
68
|
+
.describe('Get details of a specific conversation'),
|
|
69
|
+
conversationId: z
|
|
70
|
+
.string()
|
|
71
|
+
.describe('The ID of the conversation to retrieve'),
|
|
72
|
+
credentials: z
|
|
73
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
74
|
+
.optional()
|
|
75
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
76
|
+
}),
|
|
77
|
+
z.object({
|
|
78
|
+
operation: z
|
|
79
|
+
.literal('get_conversations')
|
|
80
|
+
.describe('Get a list of conversations'),
|
|
81
|
+
agentId: z.string().optional().describe('Filter conversations by agent ID'),
|
|
82
|
+
pageSize: z
|
|
83
|
+
.number()
|
|
84
|
+
.optional()
|
|
85
|
+
.describe('Number of conversations to return (default: 30)'),
|
|
86
|
+
cursor: z.string().optional().describe('Cursor for pagination'),
|
|
87
|
+
credentials: z
|
|
88
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
89
|
+
.optional()
|
|
90
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
91
|
+
}),
|
|
92
|
+
]);
|
|
93
|
+
export const ElevenLabsResultSchema = z.discriminatedUnion('operation', [
|
|
94
|
+
z.object({
|
|
95
|
+
operation: z.literal('get_signed_url'),
|
|
96
|
+
signedUrl: z
|
|
97
|
+
.string()
|
|
98
|
+
.optional()
|
|
99
|
+
.describe('The signed URL for WebSocket connection'),
|
|
100
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
101
|
+
error: z.string().describe('Error message if the operation failed'),
|
|
102
|
+
}),
|
|
103
|
+
z.object({
|
|
104
|
+
operation: z.literal('trigger_outbound_call'),
|
|
105
|
+
callSid: z
|
|
106
|
+
.string()
|
|
107
|
+
.optional()
|
|
108
|
+
.describe('The unique identifier for the call'),
|
|
109
|
+
conversationId: z
|
|
110
|
+
.string()
|
|
111
|
+
.optional()
|
|
112
|
+
.describe('The unique identifier for the conversation'),
|
|
113
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
114
|
+
error: z.string().describe('Error message if the operation failed'),
|
|
115
|
+
}),
|
|
116
|
+
z.object({
|
|
117
|
+
operation: z.literal('get_agent'),
|
|
118
|
+
agent: z.record(z.unknown()).optional().describe('The agent details'),
|
|
119
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
120
|
+
error: z.string().describe('Error message if the operation failed'),
|
|
121
|
+
}),
|
|
122
|
+
z.object({
|
|
123
|
+
operation: z.literal('validate_webhook_signature'),
|
|
124
|
+
isValid: z.boolean().describe('Whether the signature is valid'),
|
|
125
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
126
|
+
error: z.string().describe('Error message if the operation failed'),
|
|
127
|
+
}),
|
|
128
|
+
z.object({
|
|
129
|
+
operation: z.literal('get_conversation'),
|
|
130
|
+
conversation: z
|
|
131
|
+
.record(z.unknown())
|
|
132
|
+
.optional()
|
|
133
|
+
.describe('The conversation details'),
|
|
134
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
135
|
+
error: z.string().describe('Error message if the operation failed'),
|
|
136
|
+
}),
|
|
137
|
+
z.object({
|
|
138
|
+
operation: z.literal('get_conversations'),
|
|
139
|
+
conversations: z
|
|
140
|
+
.array(z.record(z.unknown()))
|
|
141
|
+
.optional()
|
|
142
|
+
.describe('List of conversations'),
|
|
143
|
+
hasMore: z
|
|
144
|
+
.boolean()
|
|
145
|
+
.optional()
|
|
146
|
+
.describe('Whether there are more conversations to retrieve'),
|
|
147
|
+
nextCursor: z
|
|
148
|
+
.string()
|
|
149
|
+
.optional()
|
|
150
|
+
.describe('Cursor for the next page of results'),
|
|
151
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
152
|
+
error: z.string().describe('Error message if the operation failed'),
|
|
153
|
+
}),
|
|
154
|
+
]);
|
|
155
|
+
export class ElevenLabsBubble extends ServiceBubble {
|
|
156
|
+
static type = 'service';
|
|
157
|
+
static service = 'eleven-labs';
|
|
158
|
+
static authType = 'apikey';
|
|
159
|
+
static bubbleName = 'eleven-labs';
|
|
160
|
+
static schema = ElevenLabsParamsSchema;
|
|
161
|
+
static resultSchema = ElevenLabsResultSchema;
|
|
162
|
+
static shortDescription = 'Eleven Labs integration for Conversational AI';
|
|
163
|
+
static longDescription = `
|
|
164
|
+
Integrate with Eleven Labs Conversational AI agents.
|
|
165
|
+
Use cases:
|
|
166
|
+
- Generate signed URLs for secure WebSocket connections to agents
|
|
167
|
+
- Trigger outbound calls
|
|
168
|
+
- Get agent details
|
|
169
|
+
- Validate webhook signatures
|
|
170
|
+
- Get conversation history
|
|
171
|
+
`;
|
|
172
|
+
static alias = 'elevenlabs';
|
|
173
|
+
constructor(params, context) {
|
|
174
|
+
super(params, context);
|
|
175
|
+
}
|
|
176
|
+
chooseCredential() {
|
|
177
|
+
const credentials = this.params.credentials;
|
|
178
|
+
if (!credentials || typeof credentials !== 'object') {
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
181
|
+
return credentials[CredentialType.ELEVENLABS_API_KEY];
|
|
182
|
+
}
|
|
183
|
+
async performAction(context) {
|
|
184
|
+
void context;
|
|
185
|
+
const params = this.params;
|
|
186
|
+
switch (params.operation) {
|
|
187
|
+
case 'get_signed_url':
|
|
188
|
+
return this.getSignedUrl(params);
|
|
189
|
+
case 'trigger_outbound_call':
|
|
190
|
+
return this.triggerOutboundCall(params);
|
|
191
|
+
case 'get_agent':
|
|
192
|
+
return this.getAgent(params);
|
|
193
|
+
case 'validate_webhook_signature':
|
|
194
|
+
return this.validateWebhookSignature(params);
|
|
195
|
+
case 'get_conversation':
|
|
196
|
+
return this.getConversation(params);
|
|
197
|
+
case 'get_conversations':
|
|
198
|
+
return this.getConversations(params);
|
|
199
|
+
default:
|
|
200
|
+
throw new Error(`Unknown operation: ${params.operation}`);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
async testCredential() {
|
|
204
|
+
const apiKey = this.chooseCredential();
|
|
205
|
+
if (!apiKey)
|
|
206
|
+
return false;
|
|
207
|
+
// Simple test: try to get user info (requires a valid key but invalid agent ID might still return 404,
|
|
208
|
+
// so we just check if we can make a request that doesn't return 401)
|
|
209
|
+
try {
|
|
210
|
+
const response = await fetch('https://api.elevenlabs.io/v1/user', {
|
|
211
|
+
method: 'GET',
|
|
212
|
+
headers: {
|
|
213
|
+
'xi-api-key': apiKey,
|
|
214
|
+
},
|
|
215
|
+
});
|
|
216
|
+
return response.ok;
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async getSignedUrl(params) {
|
|
223
|
+
const { agentId } = params;
|
|
224
|
+
const apiKey = this.chooseCredential();
|
|
225
|
+
if (!apiKey) {
|
|
226
|
+
return {
|
|
227
|
+
operation: 'get_signed_url',
|
|
228
|
+
success: false,
|
|
229
|
+
error: 'Eleven Labs API Key is required',
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
try {
|
|
233
|
+
const response = await fetch(`https://api.elevenlabs.io/v1/convai/conversation/get-signed-url?agent_id=${agentId}`, {
|
|
234
|
+
method: 'GET',
|
|
235
|
+
headers: {
|
|
236
|
+
'xi-api-key': apiKey,
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
if (!response.ok) {
|
|
240
|
+
const errorText = await response.text();
|
|
241
|
+
return {
|
|
242
|
+
operation: 'get_signed_url',
|
|
243
|
+
success: false,
|
|
244
|
+
error: `Failed to get signed URL: ${response.status} ${response.statusText} - ${errorText}`,
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
const data = (await response.json());
|
|
248
|
+
return {
|
|
249
|
+
operation: 'get_signed_url',
|
|
250
|
+
signedUrl: data.signed_url,
|
|
251
|
+
success: true,
|
|
252
|
+
error: '',
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
catch (error) {
|
|
256
|
+
return {
|
|
257
|
+
operation: 'get_signed_url',
|
|
258
|
+
success: false,
|
|
259
|
+
error: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
async triggerOutboundCall(params) {
|
|
264
|
+
const { agentId, toPhoneNumber, phoneNumberId, variables } = params;
|
|
265
|
+
const apiKey = this.chooseCredential();
|
|
266
|
+
if (!apiKey) {
|
|
267
|
+
return {
|
|
268
|
+
operation: 'trigger_outbound_call',
|
|
269
|
+
success: false,
|
|
270
|
+
error: 'Eleven Labs API Key is required',
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
try {
|
|
274
|
+
const body = {
|
|
275
|
+
to_number: toPhoneNumber,
|
|
276
|
+
agent_id: agentId,
|
|
277
|
+
};
|
|
278
|
+
if (phoneNumberId) {
|
|
279
|
+
body.agent_phone_number_id = phoneNumberId;
|
|
280
|
+
}
|
|
281
|
+
if (variables) {
|
|
282
|
+
body.conversation_initiation_client_data = {
|
|
283
|
+
dynamic_variables: variables,
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
const response = await fetch('https://api.elevenlabs.io/v1/convai/twilio/outbound-call', {
|
|
287
|
+
method: 'POST',
|
|
288
|
+
headers: {
|
|
289
|
+
'xi-api-key': apiKey,
|
|
290
|
+
'Content-Type': 'application/json',
|
|
291
|
+
},
|
|
292
|
+
body: JSON.stringify(body),
|
|
293
|
+
});
|
|
294
|
+
if (!response.ok) {
|
|
295
|
+
const errorText = await response.text();
|
|
296
|
+
return {
|
|
297
|
+
operation: 'trigger_outbound_call',
|
|
298
|
+
success: false,
|
|
299
|
+
error: `Failed to trigger outbound call: ${response.status} ${response.statusText} - ${errorText}`,
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
const data = (await response.json());
|
|
303
|
+
return {
|
|
304
|
+
operation: 'trigger_outbound_call',
|
|
305
|
+
success: true,
|
|
306
|
+
callSid: data.callSid,
|
|
307
|
+
conversationId: data.conversation_id,
|
|
308
|
+
error: '',
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
catch (error) {
|
|
312
|
+
return {
|
|
313
|
+
operation: 'trigger_outbound_call',
|
|
314
|
+
success: false,
|
|
315
|
+
error: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
async getAgent(params) {
|
|
320
|
+
const { agentId } = params;
|
|
321
|
+
const apiKey = this.chooseCredential();
|
|
322
|
+
if (!apiKey) {
|
|
323
|
+
return {
|
|
324
|
+
operation: 'get_agent',
|
|
325
|
+
success: false,
|
|
326
|
+
error: 'Eleven Labs API Key is required',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
try {
|
|
330
|
+
const response = await fetch(`https://api.elevenlabs.io/v1/convai/agents/${agentId}`, {
|
|
331
|
+
method: 'GET',
|
|
332
|
+
headers: {
|
|
333
|
+
'xi-api-key': apiKey,
|
|
334
|
+
},
|
|
335
|
+
});
|
|
336
|
+
if (!response.ok) {
|
|
337
|
+
const errorText = await response.text();
|
|
338
|
+
return {
|
|
339
|
+
operation: 'get_agent',
|
|
340
|
+
success: false,
|
|
341
|
+
error: `Failed to get agent: ${response.status} ${response.statusText} - ${errorText}`,
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
const data = (await response.json());
|
|
345
|
+
return {
|
|
346
|
+
operation: 'get_agent',
|
|
347
|
+
success: true,
|
|
348
|
+
agent: data,
|
|
349
|
+
error: '',
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
catch (error) {
|
|
353
|
+
return {
|
|
354
|
+
operation: 'get_agent',
|
|
355
|
+
success: false,
|
|
356
|
+
error: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
async validateWebhookSignature(params) {
|
|
361
|
+
const { signature, timestamp, body, webhookSecret } = params;
|
|
362
|
+
try {
|
|
363
|
+
const signedPayload = `${timestamp}.${body}`;
|
|
364
|
+
const expectedSignature = crypto
|
|
365
|
+
.createHmac('sha256', webhookSecret)
|
|
366
|
+
.update(signedPayload)
|
|
367
|
+
.digest('hex');
|
|
368
|
+
const isValid = signature === expectedSignature;
|
|
369
|
+
return {
|
|
370
|
+
operation: 'validate_webhook_signature',
|
|
371
|
+
success: true,
|
|
372
|
+
isValid,
|
|
373
|
+
error: '',
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
catch (error) {
|
|
377
|
+
return {
|
|
378
|
+
operation: 'validate_webhook_signature',
|
|
379
|
+
success: false,
|
|
380
|
+
isValid: false,
|
|
381
|
+
error: error instanceof Error
|
|
382
|
+
? error.message
|
|
383
|
+
: 'Unknown error occurred during signature validation',
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
async getConversation(params) {
|
|
388
|
+
const { conversationId } = params;
|
|
389
|
+
const apiKey = this.chooseCredential();
|
|
390
|
+
if (!apiKey) {
|
|
391
|
+
return {
|
|
392
|
+
operation: 'get_conversation',
|
|
393
|
+
success: false,
|
|
394
|
+
error: 'Eleven Labs API Key is required',
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
try {
|
|
398
|
+
const response = await fetch(`https://api.elevenlabs.io/v1/convai/conversations/${conversationId}`, {
|
|
399
|
+
method: 'GET',
|
|
400
|
+
headers: {
|
|
401
|
+
'xi-api-key': apiKey,
|
|
402
|
+
},
|
|
403
|
+
});
|
|
404
|
+
if (!response.ok) {
|
|
405
|
+
const errorText = await response.text();
|
|
406
|
+
return {
|
|
407
|
+
operation: 'get_conversation',
|
|
408
|
+
success: false,
|
|
409
|
+
error: `Failed to get conversation: ${response.status} ${response.statusText} - ${errorText}`,
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
const data = (await response.json());
|
|
413
|
+
return {
|
|
414
|
+
operation: 'get_conversation',
|
|
415
|
+
success: true,
|
|
416
|
+
conversation: data,
|
|
417
|
+
error: '',
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
catch (error) {
|
|
421
|
+
return {
|
|
422
|
+
operation: 'get_conversation',
|
|
423
|
+
success: false,
|
|
424
|
+
error: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
async getConversations(params) {
|
|
429
|
+
const { agentId, pageSize, cursor } = params;
|
|
430
|
+
const apiKey = this.chooseCredential();
|
|
431
|
+
if (!apiKey) {
|
|
432
|
+
return {
|
|
433
|
+
operation: 'get_conversations',
|
|
434
|
+
success: false,
|
|
435
|
+
error: 'Eleven Labs API Key is required',
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
try {
|
|
439
|
+
const queryParams = new URLSearchParams();
|
|
440
|
+
if (agentId)
|
|
441
|
+
queryParams.append('agent_id', agentId);
|
|
442
|
+
if (pageSize)
|
|
443
|
+
queryParams.append('page_size', pageSize.toString());
|
|
444
|
+
if (cursor)
|
|
445
|
+
queryParams.append('cursor', cursor);
|
|
446
|
+
const response = await fetch(`https://api.elevenlabs.io/v1/convai/conversations?${queryParams.toString()}`, {
|
|
447
|
+
method: 'GET',
|
|
448
|
+
headers: {
|
|
449
|
+
'xi-api-key': apiKey,
|
|
450
|
+
},
|
|
451
|
+
});
|
|
452
|
+
if (!response.ok) {
|
|
453
|
+
const errorText = await response.text();
|
|
454
|
+
return {
|
|
455
|
+
operation: 'get_conversations',
|
|
456
|
+
success: false,
|
|
457
|
+
error: `Failed to get conversations: ${response.status} ${response.statusText} - ${errorText}`,
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
const data = (await response.json());
|
|
461
|
+
return {
|
|
462
|
+
operation: 'get_conversations',
|
|
463
|
+
success: true,
|
|
464
|
+
conversations: data.conversations,
|
|
465
|
+
hasMore: data.has_more,
|
|
466
|
+
nextCursor: data.next_cursor,
|
|
467
|
+
error: '',
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
catch (error) {
|
|
471
|
+
return {
|
|
472
|
+
operation: 'get_conversations',
|
|
473
|
+
success: false,
|
|
474
|
+
error: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
//# sourceMappingURL=eleven-labs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eleven-labs.js","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/eleven-labs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,0DAA0D;AAC1D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,kBAAkB,CAAC,WAAW,EAAE;IACtE,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC;aACT,OAAO,CAAC,gBAAgB,CAAC;aACzB,QAAQ,CAAC,yDAAyD,CAAC;QACtE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACjE,WAAW,EAAE,CAAC;aACX,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;aAChD,QAAQ,EAAE;aACV,QAAQ,CACP,iEAAiE,CAClE;KACJ,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC;aACT,OAAO,CAAC,uBAAuB,CAAC;aAChC,QAAQ,CAAC,4CAA4C,CAAC;QACzD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QACvE,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,CAAC,yCAAyC,CAAC;Q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