@composio/core 0.6.10 → 0.7.0
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/README.md +1 -1
- package/dist/{CustomTool-w_JFqb4t.d.mts → CustomTool-Ba10IhPz.d.mts} +1 -1
- package/dist/{CustomTool-AYNimqhf.mjs → CustomTool-CVwF_isu.mjs} +1 -1
- package/dist/{CustomTool-Cyo1aJ2l.cjs → CustomTool-DnCSEC6t.cjs} +28 -28
- package/dist/{CustomTool-BpjZfEYa.d.cts → CustomTool-nBE0dlz6.d.cts} +1 -1
- package/dist/{ComposioError-CYaI68Mo.cjs → FileModifierErrors-BYJBHiay.cjs} +130 -0
- package/dist/{ComposioError-ChkSdxqU.mjs → FileModifierErrors-C7z16Dfi.mjs} +95 -1
- package/dist/{Telemetry-A89k5RTv.cjs → Telemetry-Dm-0sewu.cjs} +17 -17
- package/dist/{Telemetry-CjVa99gU.mjs → Telemetry-kgWlkavX.mjs} +1 -1
- package/dist/{composio-CQuG4JPT.d.cts → composio-BzzHNwFB.d.cts} +251 -192
- package/dist/{composio-HztGH0kt.d.mts → composio-CHcG9NOJ.d.mts} +251 -192
- package/dist/{customTool.types-BxvwmFDN.d.cts → customTool.types-BJQtw3IG.d.cts} +17 -51
- package/dist/{customTool.types-CBLEoQnI.d.mts → customTool.types-qSSvYChT.d.mts} +17 -51
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.mts +3 -3
- package/dist/experimental/index.mjs +2 -2
- package/dist/fileUtils.node-Dq7ebZPC.mjs +447 -0
- package/dist/fileUtils.node-DtnSRMWa.cjs +462 -0
- package/dist/index.cjs +220 -111
- package/dist/index.d.cts +52 -7
- package/dist/index.d.mts +52 -7
- package/dist/index.mjs +157 -54
- package/dist/models/Files.node.cjs +11 -6
- package/dist/models/Files.node.d.cts +6 -1
- package/dist/models/Files.node.d.mts +6 -1
- package/dist/models/Files.node.mjs +11 -6
- package/dist/platform/node.cjs +6 -0
- package/dist/platform/node.d.cts +1 -1
- package/dist/platform/node.d.mts +1 -1
- package/dist/platform/node.mjs +13 -7
- package/dist/platform/workerd.cjs +6 -0
- package/dist/platform/workerd.d.cts +1 -1
- package/dist/platform/workerd.d.mts +1 -1
- package/dist/platform/workerd.mjs +6 -0
- package/dist/{tool.types-BWc7GUrD.d.cts → tool.types-4f4Ktd2s.d.cts} +53 -23
- package/dist/{tool.types-bencsexi.d.mts → tool.types-DJxP_6-g.d.mts} +53 -23
- package/dist/{types-BZc_R1DA.d.mts → types-BvGecO9n.d.mts} +3 -3
- package/dist/{types-DiL6FAZi.d.cts → types-HpJQ8K9l.d.mts} +10 -0
- package/dist/{types-CJQ9IGrf.d.cts → types-W8Zn17SC.d.cts} +3 -3
- package/dist/{types-CXR6l5Sj.d.mts → types-pDNm1lYs.d.cts} +10 -0
- package/dist/utils/config-defaults/ConfigDefaults.node.cjs +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +4 -4
- package/dist/utils/config-defaults/ConfigDefaults.node.mjs +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.cjs +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +4 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.mjs +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.cjs +69 -34
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +4 -3
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +4 -3
- package/dist/utils/modifiers/FileToolModifier.node.mjs +65 -30
- package/dist/utils/modifiers/FileToolModifier.workerd.cjs +3 -3
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +2 -2
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +2 -2
- package/dist/utils/modifiers/FileToolModifier.workerd.mjs +3 -3
- package/generated/ably.ts +20 -0
- package/generated/accelo.ts +8 -0
- package/generated/acculynx.ts +17 -0
- package/generated/active_campaign.ts +30 -0
- package/generated/adobe.ts +8 -0
- package/generated/adyntel.ts +12 -0
- package/generated/aero_workflow.ts +8 -0
- package/generated/affinity.ts +29 -0
- package/generated/agencyzoom.ts +108 -0
- package/generated/ahrefs.ts +49 -0
- package/generated/airtable.ts +26 -0
- package/generated/alchemy.ts +16 -0
- package/generated/algolia.ts +39 -0
- package/generated/altoviz.ts +18 -0
- package/generated/amazon.ts +8 -0
- package/generated/amcards.ts +11 -0
- package/generated/amplitude.ts +25 -0
- package/generated/anthropic_administrator.ts +13 -0
- package/generated/apaleo.ts +38 -0
- package/generated/apollo.ts +40 -0
- package/generated/appdrag.ts +8 -0
- package/generated/appsflyer.ts +8 -0
- package/generated/asana.ts +95 -0
- package/generated/ashby.ts +8 -0
- package/generated/atlassian.ts +8 -0
- package/generated/attio.ts +20 -0
- package/generated/auth0.ts +8 -0
- package/generated/axonaut.ts +8 -0
- package/generated/bamboohr.ts +168 -0
- package/generated/bannerbear.ts +17 -0
- package/generated/baserow.ts +11 -0
- package/generated/battlenet.ts +8 -0
- package/generated/beeminder.ts +14 -0
- package/generated/bigmailer.ts +12 -0
- package/generated/bigml.ts +15 -0
- package/generated/bill.ts +218 -0
- package/generated/bitbucket.ts +25 -0
- package/generated/bitwarden.ts +8 -0
- package/generated/blackbaud.ts +8 -0
- package/generated/blackboard.ts +323 -0
- package/generated/boldsign.ts +8 -0
- package/generated/bolna.ts +24 -0
- package/generated/borneo.ts +162 -0
- package/generated/botbaba.ts +8 -0
- package/generated/box.ts +282 -0
- package/generated/braintree.ts +8 -0
- package/generated/brandfetch.ts +15 -0
- package/generated/breezy_hr.ts +8 -0
- package/generated/brevo.ts +28 -0
- package/generated/brex.ts +8 -0
- package/generated/brex_staging.ts +8 -0
- package/generated/brightpearl.ts +8 -0
- package/generated/brilliant_directories.ts +15 -0
- package/generated/browseai.ts +18 -0
- package/generated/browserbase_tool.ts +10 -0
- package/generated/browserhub.ts +8 -0
- package/generated/browserless.ts +16 -0
- package/generated/bubble.ts +8 -0
- package/generated/bugbug.ts +13 -0
- package/generated/builtwith.ts +21 -0
- package/generated/cal.ts +150 -0
- package/generated/calendly.ts +51 -0
- package/generated/canva.ts +41 -0
- package/generated/canvas.ts +100 -0
- package/generated/chatwork.ts +17 -0
- package/generated/chmeetings.ts +8 -0
- package/generated/clickup.ts +153 -0
- package/generated/clockify.ts +23 -0
- package/generated/close.ts +15 -0
- package/generated/cloudflare.ts +10 -0
- package/generated/coda.ts +115 -0
- package/generated/codeinterpreter.ts +14 -0
- package/generated/coinbase.ts +15 -0
- package/generated/coinmarketcal.ts +8 -0
- package/generated/composio.ts +34 -0
- package/generated/composio_search.ts +22 -0
- package/generated/confluence.ts +199 -0
- package/generated/contentful.ts +12 -0
- package/generated/crustdata.ts +23 -0
- package/generated/customer_io.ts +8 -0
- package/generated/cutt_ly.ts +10 -0
- package/generated/d2lbrightspace.ts +54 -0
- package/generated/dailybot.ts +15 -0
- package/generated/datadog.ts +47 -0
- package/generated/datagma.ts +8 -0
- package/generated/datarobot.ts +8 -0
- package/generated/deel.ts +8 -0
- package/generated/demio.ts +8 -0
- package/generated/dialpad.ts +201 -0
- package/generated/digicert.ts +15 -0
- package/generated/discord.ts +17 -0
- package/generated/discordbot.ts +173 -0
- package/generated/docmosis.ts +8 -0
- package/generated/docusign.ts +351 -0
- package/generated/dropbox.ts +20 -0
- package/generated/dropbox_sign.ts +8 -0
- package/generated/dynamics365.ts +25 -0
- package/generated/echtpost.ts +10 -0
- package/generated/elevenlabs.ts +70 -0
- package/generated/emailoctopus.ts +16 -0
- package/generated/enigma.ts +11 -0
- package/generated/entelligence.ts +11 -0
- package/generated/epic_games.ts +8 -0
- package/generated/eventbrite.ts +12 -0
- package/generated/exa.ts +13 -0
- package/generated/excel.ts +34 -0
- package/generated/exist.ts +8 -0
- package/generated/facebook.ts +8 -0
- package/generated/factorial.ts +8 -0
- package/generated/figma.ts +59 -0
- package/generated/finage.ts +19 -0
- package/generated/firecrawl.ts +16 -0
- package/generated/fireflies.ts +21 -0
- package/generated/fitbit.ts +8 -0
- package/generated/flutterwave.ts +33 -0
- package/generated/fomo.ts +10 -0
- package/generated/formcarry.ts +10 -0
- package/generated/formsite.ts +14 -0
- package/generated/foursquare.ts +14 -0
- package/generated/freshbooks.ts +11 -0
- package/generated/freshdesk.ts +16 -0
- package/generated/front.ts +8 -0
- package/generated/github.ts +967 -0
- package/generated/gitlab.ts +82 -0
- package/generated/gmail.d.ts +86 -0
- package/generated/gmail.js +13 -0
- package/generated/gmail.ts +95 -0
- package/generated/go_to_webinar.ts +8 -0
- package/generated/gong.ts +63 -0
- package/generated/google_analytics.ts +13 -0
- package/generated/google_maps.ts +16 -0
- package/generated/googleads.ts +14 -0
- package/generated/googlebigquery.ts +10 -0
- package/generated/googlecalendar.ts +39 -0
- package/generated/googledocs.ts +41 -0
- package/generated/googledrive.ts +62 -0
- package/generated/googlemeet.ts +18 -0
- package/generated/googlephotos.ts +22 -0
- package/generated/googlesheets.ts +40 -0
- package/generated/googleslides.ts +8 -0
- package/generated/googlesuper.ts +230 -0
- package/generated/googletasks.ts +23 -0
- package/generated/gorgias.ts +41 -0
- package/generated/gumroad.ts +14 -0
- package/generated/guru.ts +8 -0
- package/generated/hackernews.ts +15 -0
- package/generated/hackerrank_work.ts +8 -0
- package/generated/harvest.ts +56 -0
- package/generated/helcim.ts +8 -0
- package/generated/heygen.ts +44 -0
- package/generated/highlevel.ts +8 -0
- package/generated/hubspot.ts +252 -0
- package/generated/humanloop.ts +13 -0
- package/generated/icims_talent_cloud.ts +8 -0
- package/generated/idea_scale.ts +8 -0
- package/generated/index.ts +151 -0
- package/generated/insighto_ai.ts +19 -0
- package/generated/intercom.ts +52 -0
- package/generated/interzoid.ts +8 -0
- package/generated/jira.ts +59 -0
- package/generated/jotform.ts +15 -0
- package/generated/junglescout.ts +15 -0
- package/generated/keap.ts +8 -0
- package/generated/kibana.ts +58 -0
- package/generated/kit.ts +38 -0
- package/generated/klaviyo.ts +240 -0
- package/generated/klipfolio.ts +20 -0
- package/generated/kommo.ts +24 -0
- package/generated/lastpass.ts +8 -0
- package/generated/launch_darkly.ts +16 -0
- package/generated/leadfeeder.ts +13 -0
- package/generated/leadoku.ts +10 -0
- package/generated/lever.ts +8 -0
- package/generated/lever_sandbox.ts +8 -0
- package/generated/lexoffice.ts +8 -0
- package/generated/linear.ts +31 -0
- package/generated/linkedin.ts +13 -0
- package/generated/linkhut.ts +14 -0
- package/generated/linkup.ts +11 -0
- package/generated/listennotes.ts +35 -0
- package/generated/lmnt.ts +16 -0
- package/generated/lodgify.ts +10 -0
- package/generated/mailchimp.ts +285 -0
- package/generated/mailerlite.ts +8 -0
- package/generated/maintainx.ts +20 -0
- package/generated/make.ts +12 -0
- package/generated/mboum.ts +8 -0
- package/generated/mem0.ts +52 -0
- package/generated/metaads.ts +25 -0
- package/generated/metatextai.ts +8 -0
- package/generated/microsoft_clarity.ts +10 -0
- package/generated/microsoft_teams.ts +22 -0
- package/generated/microsoft_tenant.ts +8 -0
- package/generated/miro.ts +23 -0
- package/generated/mixpanel.ts +30 -0
- package/generated/mocean.ts +8 -0
- package/generated/monday.ts +30 -0
- package/generated/mopinion.ts +8 -0
- package/generated/more_trees.ts +10 -0
- package/generated/moxie.ts +8 -0
- package/generated/moz.ts +8 -0
- package/generated/mural.ts +14 -0
- package/generated/nasdaq.ts +15 -0
- package/generated/ncscale.ts +8 -0
- package/generated/neon.ts +78 -0
- package/generated/netsuite.ts +8 -0
- package/generated/nextdns.ts +11 -0
- package/generated/ngrok.ts +18 -0
- package/generated/notion.ts +40 -0
- package/generated/oncehub.ts +8 -0
- package/generated/one_drive.ts +49 -0
- package/generated/onepage.ts +11 -0
- package/generated/open_sea.ts +33 -0
- package/generated/outlook.ts +37 -0
- package/generated/pagerduty.ts +362 -0
- package/generated/pandadoc.ts +23 -0
- package/generated/peopledatalabs.ts +24 -0
- package/generated/perplexityai.ts +10 -0
- package/generated/piggy.ts +8 -0
- package/generated/pipedrive.ts +288 -0
- package/generated/placekey.ts +12 -0
- package/generated/posthog.ts +367 -0
- package/generated/precoro.ts +8 -0
- package/generated/printnode.ts +8 -0
- package/generated/process_street.ts +14 -0
- package/generated/productboard.ts +8 -0
- package/generated/qualaroo.ts +8 -0
- package/generated/quickbooks.ts +22 -0
- package/generated/rafflys.ts +8 -0
- package/generated/ragic.ts +10 -0
- package/generated/ramp.ts +17 -0
- package/generated/ravenseotools.ts +8 -0
- package/generated/recallai.ts +17 -0
- package/generated/reddit.ts +19 -0
- package/generated/resend.ts +27 -0
- package/generated/retellai.ts +19 -0
- package/generated/retently.ts +24 -0
- package/generated/ring_central.ts +8 -0
- package/generated/rippling.ts +8 -0
- package/generated/rocket_reach.ts +8 -0
- package/generated/rocketlane.ts +42 -0
- package/generated/rootly.ts +12 -0
- package/generated/rosette_text_analytics.ts +12 -0
- package/generated/sage.ts +8 -0
- package/generated/salesforce.ts +46 -0
- package/generated/scrape_do.ts +28 -0
- package/generated/scrapingant.ts +14 -0
- package/generated/screenshotone.ts +10 -0
- package/generated/seismic.ts +8 -0
- package/generated/semanticscholar.ts +23 -0
- package/generated/semrush.ts +45 -0
- package/generated/sendgrid.ts +384 -0
- package/generated/sentry.ts +185 -0
- package/generated/serpapi.ts +32 -0
- package/generated/servicem8.ts +37 -0
- package/generated/servicenow.ts +14 -0
- package/generated/share_point.ts +15 -0
- package/generated/shopify.ts +37 -0
- package/generated/shortcut.ts +131 -0
- package/generated/simplesat.ts +11 -0
- package/generated/slack.d.ts +16 -0
- package/generated/slack.js +11 -0
- package/generated/slack.ts +24 -0
- package/generated/slackbot.ts +205 -0
- package/generated/smartrecruiters.ts +8 -0
- package/generated/smugmug.ts +14 -0
- package/generated/snowflake.ts +15 -0
- package/generated/sourcegraph.ts +16 -0
- package/generated/square.ts +8 -0
- package/generated/stack_exchange.ts +17 -0
- package/generated/starton.ts +11 -0
- package/generated/storeganise.ts +12 -0
- package/generated/stripe.ts +50 -0
- package/generated/supabase.ts +86 -0
- package/generated/survey_monkey.ts +8 -0
- package/generated/tally.ts +25 -0
- package/generated/tapfiliate.ts +11 -0
- package/generated/tapform.ts +8 -0
- package/generated/tavily.ts +10 -0
- package/generated/terminus.ts +8 -0
- package/generated/text_to_pdf.ts +10 -0
- package/generated/textrazor.ts +22 -0
- package/generated/timecamp.ts +10 -0
- package/generated/timekit.ts +8 -0
- package/generated/timely.ts +11 -0
- package/generated/tinypng.ts +15 -0
- package/generated/tinyurl.ts +10 -0
- package/generated/tisane.ts +15 -0
- package/generated/todoist.ts +19 -0
- package/generated/toneden.ts +8 -0
- package/generated/tpscheck.ts +10 -0
- package/generated/trello.ts +360 -0
- package/generated/twitch.ts +8 -0
- package/generated/twitter.ts +82 -0
- package/generated/twitter_media.ts +10 -0
- package/generated/typefully.ts +14 -0
- package/generated/venly.ts +8 -0
- package/generated/vero.ts +8 -0
- package/generated/visme.ts +8 -0
- package/generated/waboxapp.ts +8 -0
- package/generated/wakatime.ts +8 -0
- package/generated/wave_accounting.ts +8 -0
- package/generated/weathermap.ts +10 -0
- package/generated/webex.ts +37 -0
- package/generated/webflow.ts +30 -0
- package/generated/whatsapp.ts +14 -0
- package/generated/wiz.ts +8 -0
- package/generated/workiom.ts +12 -0
- package/generated/wrike.ts +47 -0
- package/generated/xero.ts +13 -0
- package/generated/yandex.ts +13 -0
- package/generated/ynab.ts +8 -0
- package/generated/yousearch.ts +10 -0
- package/generated/youtube.ts +26 -0
- package/generated/zendesk.ts +23 -0
- package/generated/zenrows.ts +25 -0
- package/generated/zenserp.ts +20 -0
- package/generated/zoho.ts +33 -0
- package/generated/zoho_bigin.ts +21 -0
- package/generated/zoho_books.ts +8 -0
- package/generated/zoho_desk.ts +8 -0
- package/generated/zoho_inventory.ts +8 -0
- package/generated/zoho_invoice.ts +15 -0
- package/generated/zoho_mail.ts +8 -0
- package/generated/zoom.ts +181 -0
- package/generated/zoominfo.ts +26 -0
- package/package.json +1 -1
- package/src/platform/node.ts +8 -0
- package/src/platform/types.ts +12 -0
- package/src/platform/workerd.ts +12 -0
- package/dist/fileUtils.node-BOZnseMe.mjs +0 -220
- package/dist/fileUtils.node-DF-AY0Td.cjs +0 -233
- /package/dist/{FileToolModifier.utils.neutral-BcIR-cVE.mjs → FileToolModifier.utils.neutral-B7P7wn-b.mjs} +0 -0
- /package/dist/{FileToolModifier.utils.neutral-BdMpiyie.cjs → FileToolModifier.utils.neutral-Dfwqgimk.cjs} +0 -0
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
const require_FileModifierErrors = require('../../FileModifierErrors-BYJBHiay.cjs');
|
|
2
|
+
const require_FileToolModifier_utils_neutral = require('../../FileToolModifier.utils.neutral-Dfwqgimk.cjs');
|
|
3
|
+
const require_fileUtils_node = require('../../fileUtils.node-DtnSRMWa.cjs');
|
|
4
4
|
|
|
5
|
-
//#region src/errors/FileModifierErrors.ts
|
|
6
|
-
const FileModifierErrorCodes = { FILE_UPLOAD_FAILED: "FILE_UPLOAD_FAILED" };
|
|
7
|
-
var ComposioFileUploadError = class extends require_ComposioError.ComposioError {
|
|
8
|
-
constructor(message = "Failed to upload file", options = {}) {
|
|
9
|
-
super(message, {
|
|
10
|
-
...options,
|
|
11
|
-
code: FileModifierErrorCodes.FILE_UPLOAD_FAILED,
|
|
12
|
-
possibleFixes: options.possibleFixes || ["Check if the file exists in the location provided"]
|
|
13
|
-
});
|
|
14
|
-
this.name = "ComposioFileUploadError";
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
5
|
//#region src/utils/modifiers/FileToolModifier.node.ts
|
|
20
6
|
/**
|
|
21
7
|
* Recursively walks a runtime value and its matching JSON-Schema node,
|
|
@@ -26,11 +12,56 @@ var ComposioFileUploadError = class extends require_ComposioError.ComposioError
|
|
|
26
12
|
const hydrateFiles = async (value, schema, ctx) => {
|
|
27
13
|
if (schema?.file_uploadable) {
|
|
28
14
|
if (typeof value !== "string" && !(value instanceof File)) return value;
|
|
29
|
-
|
|
15
|
+
const runBeforeFileUpload = async (path, source) => {
|
|
16
|
+
if (!ctx.beforeFileUpload) return path;
|
|
17
|
+
const out = await ctx.beforeFileUpload({
|
|
18
|
+
path,
|
|
19
|
+
source,
|
|
20
|
+
toolSlug: ctx.toolSlug,
|
|
21
|
+
toolkitSlug: ctx.toolkitSlug
|
|
22
|
+
});
|
|
23
|
+
if (out === false) throw new require_FileModifierErrors.ComposioFileUploadAbortedError("File upload was aborted because beforeFileUpload returned false.");
|
|
24
|
+
return out;
|
|
25
|
+
};
|
|
26
|
+
if (typeof value === "string") {
|
|
27
|
+
const pathOrUrl = await runBeforeFileUpload(value, value.startsWith("http") ? "url" : "path");
|
|
28
|
+
require_FileModifierErrors.logger_default.debug(`Uploading file "${pathOrUrl}"`);
|
|
29
|
+
return require_fileUtils_node.getFileDataAfterUploadingToS3(pathOrUrl, {
|
|
30
|
+
toolSlug: ctx.toolSlug,
|
|
31
|
+
toolkitSlug: ctx.toolkitSlug,
|
|
32
|
+
client: ctx.client,
|
|
33
|
+
sensitiveFileUploadProtection: ctx.sensitiveFileUploadProtection,
|
|
34
|
+
fileUploadPathDenySegments: ctx.fileUploadPathDenySegments,
|
|
35
|
+
fileUploadAllowlist: ctx.fileUploadAllowlist
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
if (ctx.beforeFileUpload) {
|
|
39
|
+
const out = await ctx.beforeFileUpload({
|
|
40
|
+
path: value.name,
|
|
41
|
+
source: "file",
|
|
42
|
+
toolSlug: ctx.toolSlug,
|
|
43
|
+
toolkitSlug: ctx.toolkitSlug
|
|
44
|
+
});
|
|
45
|
+
if (out === false) throw new require_FileModifierErrors.ComposioFileUploadAbortedError("File upload was aborted because beforeFileUpload returned false.");
|
|
46
|
+
if (typeof out === "string" && out !== value.name) {
|
|
47
|
+
require_FileModifierErrors.logger_default.debug(`Uploading file from path "${out}" (replaced File: ${value.name})`);
|
|
48
|
+
return require_fileUtils_node.getFileDataAfterUploadingToS3(out, {
|
|
49
|
+
toolSlug: ctx.toolSlug,
|
|
50
|
+
toolkitSlug: ctx.toolkitSlug,
|
|
51
|
+
client: ctx.client,
|
|
52
|
+
sensitiveFileUploadProtection: ctx.sensitiveFileUploadProtection,
|
|
53
|
+
fileUploadPathDenySegments: ctx.fileUploadPathDenySegments,
|
|
54
|
+
fileUploadAllowlist: ctx.fileUploadAllowlist
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
require_FileModifierErrors.logger_default.debug(`Uploading file "${value.name}"`);
|
|
30
59
|
return require_fileUtils_node.getFileDataAfterUploadingToS3(value, {
|
|
31
60
|
toolSlug: ctx.toolSlug,
|
|
32
61
|
toolkitSlug: ctx.toolkitSlug,
|
|
33
|
-
client: ctx.client
|
|
62
|
+
client: ctx.client,
|
|
63
|
+
sensitiveFileUploadProtection: ctx.sensitiveFileUploadProtection,
|
|
64
|
+
fileUploadPathDenySegments: ctx.fileUploadPathDenySegments
|
|
34
65
|
});
|
|
35
66
|
}
|
|
36
67
|
const schemaVariants = [
|
|
@@ -39,12 +70,8 @@ const hydrateFiles = async (value, schema, ctx) => {
|
|
|
39
70
|
...schema?.allOf ?? []
|
|
40
71
|
];
|
|
41
72
|
if (schemaVariants.length > 0) {
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
let result = value;
|
|
45
|
-
for (const variant of uploadableVariants) result = await hydrateFiles(result, variant, ctx);
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
73
|
+
const firstUploadableVariant = schemaVariants.find(require_FileToolModifier_utils_neutral.schemaHasFileUploadable);
|
|
74
|
+
if (firstUploadableVariant) return hydrateFiles(value, firstUploadableVariant, ctx);
|
|
48
75
|
}
|
|
49
76
|
if (schema?.type === "object" && schema.properties && require_FileToolModifier_utils_neutral.isPlainObject(value)) {
|
|
50
77
|
const transformed = {};
|
|
@@ -63,13 +90,14 @@ const hydrateFiles = async (value, schema, ctx) => {
|
|
|
63
90
|
const downloadS3File = async (value, ctx) => {
|
|
64
91
|
const { s3url, mimetype } = value;
|
|
65
92
|
try {
|
|
66
|
-
|
|
93
|
+
require_FileModifierErrors.logger_default.debug(`Downloading from S3: ${s3url}`);
|
|
67
94
|
const dl = await require_fileUtils_node.downloadFileFromS3({
|
|
68
95
|
toolSlug: ctx.toolSlug,
|
|
69
96
|
s3Url: s3url,
|
|
70
|
-
mimeType: mimetype ?? "application/octet-stream"
|
|
97
|
+
mimeType: mimetype ?? "application/octet-stream",
|
|
98
|
+
fileDownloadDir: ctx.fileDownloadDir
|
|
71
99
|
});
|
|
72
|
-
|
|
100
|
+
require_FileModifierErrors.logger_default.debug(`Downloaded → ${dl.filePath}`);
|
|
73
101
|
return {
|
|
74
102
|
uri: dl.filePath,
|
|
75
103
|
file_downloaded: dl.filePath ? true : false,
|
|
@@ -77,7 +105,7 @@ const downloadS3File = async (value, ctx) => {
|
|
|
77
105
|
mimeType: dl.mimeType
|
|
78
106
|
};
|
|
79
107
|
} catch (err) {
|
|
80
|
-
|
|
108
|
+
require_FileModifierErrors.logger_default.error(`Download failed: ${s3url}`, { cause: err });
|
|
81
109
|
return {
|
|
82
110
|
uri: "",
|
|
83
111
|
file_downloaded: false,
|
|
@@ -126,10 +154,12 @@ const hydrateDownloads = async (value, schema, ctx) => {
|
|
|
126
154
|
};
|
|
127
155
|
var FileToolModifier = class {
|
|
128
156
|
client;
|
|
129
|
-
|
|
157
|
+
fileUploadPathOptions;
|
|
158
|
+
constructor(client, fileUploadPathOptions = {}) {
|
|
130
159
|
this.client = client;
|
|
160
|
+
this.fileUploadPathOptions = fileUploadPathOptions;
|
|
131
161
|
}
|
|
132
|
-
async modifyToolSchema(
|
|
162
|
+
async modifyToolSchema(schema) {
|
|
133
163
|
if (!schema.inputParameters?.properties) return schema;
|
|
134
164
|
const properties = require_FileToolModifier_utils_neutral.transformProperties(schema.inputParameters.properties);
|
|
135
165
|
return {
|
|
@@ -148,19 +178,24 @@ var FileToolModifier = class {
|
|
|
148
178
|
const newArgs = await hydrateFiles(args, tool.inputParameters, {
|
|
149
179
|
toolSlug,
|
|
150
180
|
toolkitSlug,
|
|
151
|
-
client: this.client
|
|
181
|
+
client: this.client,
|
|
182
|
+
...this.fileUploadPathOptions
|
|
152
183
|
});
|
|
153
184
|
return {
|
|
154
185
|
...params,
|
|
155
186
|
arguments: newArgs
|
|
156
187
|
};
|
|
157
188
|
} catch (error) {
|
|
158
|
-
|
|
189
|
+
if (error instanceof require_FileModifierErrors.ComposioSensitiveFilePathBlockedError || error instanceof require_FileModifierErrors.ComposioFileUploadAbortedError || error instanceof require_FileModifierErrors.ComposioFileUploadPathNotAllowedError || error instanceof require_FileModifierErrors.ComposioFileNotFoundError) throw error;
|
|
190
|
+
throw new require_FileModifierErrors.ComposioFileUploadError("Failed to upload file", { cause: error });
|
|
159
191
|
}
|
|
160
192
|
}
|
|
161
193
|
async fileDownloadModifier(tool, options) {
|
|
162
194
|
const { result, toolSlug } = options;
|
|
163
|
-
const dataWithDownloads = await hydrateDownloads(result.data, tool.outputParameters, {
|
|
195
|
+
const dataWithDownloads = await hydrateDownloads(result.data, tool.outputParameters, {
|
|
196
|
+
toolSlug,
|
|
197
|
+
fileDownloadDir: this.fileUploadPathOptions.fileDownloadDir
|
|
198
|
+
});
|
|
164
199
|
return {
|
|
165
200
|
...result,
|
|
166
201
|
data: dataWithDownloads
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-
|
|
1
|
+
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-4f4Ktd2s.cjs";
|
|
2
2
|
import ComposioClient from "@composio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/modifiers/FileToolModifier.node.d.ts
|
|
5
5
|
declare class FileToolModifier {
|
|
6
6
|
private client;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
private fileUploadPathOptions;
|
|
8
|
+
constructor(client: ComposioClient, fileUploadPathOptions?: FileToolModifier['fileUploadPathOptions']);
|
|
9
|
+
modifyToolSchema(schema: Tool): Promise<Tool>;
|
|
9
10
|
fileUploadModifier(tool: Tool, options: {
|
|
10
11
|
toolSlug: string;
|
|
11
12
|
toolkitSlug?: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-
|
|
1
|
+
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-DJxP_6-g.mjs";
|
|
2
2
|
import ComposioClient from "@composio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/modifiers/FileToolModifier.node.d.ts
|
|
5
5
|
declare class FileToolModifier {
|
|
6
6
|
private client;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
private fileUploadPathOptions;
|
|
8
|
+
constructor(client: ComposioClient, fileUploadPathOptions?: FileToolModifier['fileUploadPathOptions']);
|
|
9
|
+
modifyToolSchema(schema: Tool): Promise<Tool>;
|
|
9
10
|
fileUploadModifier(tool: Tool, options: {
|
|
10
11
|
toolSlug: string;
|
|
11
12
|
toolkitSlug?: string;
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import "../../chunk-CWQeghP5.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
2
|
+
import { a as ComposioSensitiveFilePathBlockedError, c as logger_default, i as ComposioFileUploadPathNotAllowedError, n as ComposioFileUploadAbortedError, r as ComposioFileUploadError, t as ComposioFileNotFoundError } from "../../FileModifierErrors-C7z16Dfi.mjs";
|
|
3
|
+
import { i as transformProperties, n as schemaHasFileDownloadable, r as schemaHasFileUploadable, t as isPlainObject } from "../../FileToolModifier.utils.neutral-B7P7wn-b.mjs";
|
|
4
|
+
import { n as getFileDataAfterUploadingToS3, t as downloadFileFromS3 } from "../../fileUtils.node-Dq7ebZPC.mjs";
|
|
5
5
|
|
|
6
|
-
//#region src/errors/FileModifierErrors.ts
|
|
7
|
-
const FileModifierErrorCodes = { FILE_UPLOAD_FAILED: "FILE_UPLOAD_FAILED" };
|
|
8
|
-
var ComposioFileUploadError = class extends ComposioError {
|
|
9
|
-
constructor(message = "Failed to upload file", options = {}) {
|
|
10
|
-
super(message, {
|
|
11
|
-
...options,
|
|
12
|
-
code: FileModifierErrorCodes.FILE_UPLOAD_FAILED,
|
|
13
|
-
possibleFixes: options.possibleFixes || ["Check if the file exists in the location provided"]
|
|
14
|
-
});
|
|
15
|
-
this.name = "ComposioFileUploadError";
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
6
|
//#region src/utils/modifiers/FileToolModifier.node.ts
|
|
21
7
|
/**
|
|
22
8
|
* Recursively walks a runtime value and its matching JSON-Schema node,
|
|
@@ -27,11 +13,56 @@ var ComposioFileUploadError = class extends ComposioError {
|
|
|
27
13
|
const hydrateFiles = async (value, schema, ctx) => {
|
|
28
14
|
if (schema?.file_uploadable) {
|
|
29
15
|
if (typeof value !== "string" && !(value instanceof File)) return value;
|
|
30
|
-
|
|
16
|
+
const runBeforeFileUpload = async (path, source) => {
|
|
17
|
+
if (!ctx.beforeFileUpload) return path;
|
|
18
|
+
const out = await ctx.beforeFileUpload({
|
|
19
|
+
path,
|
|
20
|
+
source,
|
|
21
|
+
toolSlug: ctx.toolSlug,
|
|
22
|
+
toolkitSlug: ctx.toolkitSlug
|
|
23
|
+
});
|
|
24
|
+
if (out === false) throw new ComposioFileUploadAbortedError("File upload was aborted because beforeFileUpload returned false.");
|
|
25
|
+
return out;
|
|
26
|
+
};
|
|
27
|
+
if (typeof value === "string") {
|
|
28
|
+
const pathOrUrl = await runBeforeFileUpload(value, value.startsWith("http") ? "url" : "path");
|
|
29
|
+
logger_default.debug(`Uploading file "${pathOrUrl}"`);
|
|
30
|
+
return getFileDataAfterUploadingToS3(pathOrUrl, {
|
|
31
|
+
toolSlug: ctx.toolSlug,
|
|
32
|
+
toolkitSlug: ctx.toolkitSlug,
|
|
33
|
+
client: ctx.client,
|
|
34
|
+
sensitiveFileUploadProtection: ctx.sensitiveFileUploadProtection,
|
|
35
|
+
fileUploadPathDenySegments: ctx.fileUploadPathDenySegments,
|
|
36
|
+
fileUploadAllowlist: ctx.fileUploadAllowlist
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (ctx.beforeFileUpload) {
|
|
40
|
+
const out = await ctx.beforeFileUpload({
|
|
41
|
+
path: value.name,
|
|
42
|
+
source: "file",
|
|
43
|
+
toolSlug: ctx.toolSlug,
|
|
44
|
+
toolkitSlug: ctx.toolkitSlug
|
|
45
|
+
});
|
|
46
|
+
if (out === false) throw new ComposioFileUploadAbortedError("File upload was aborted because beforeFileUpload returned false.");
|
|
47
|
+
if (typeof out === "string" && out !== value.name) {
|
|
48
|
+
logger_default.debug(`Uploading file from path "${out}" (replaced File: ${value.name})`);
|
|
49
|
+
return getFileDataAfterUploadingToS3(out, {
|
|
50
|
+
toolSlug: ctx.toolSlug,
|
|
51
|
+
toolkitSlug: ctx.toolkitSlug,
|
|
52
|
+
client: ctx.client,
|
|
53
|
+
sensitiveFileUploadProtection: ctx.sensitiveFileUploadProtection,
|
|
54
|
+
fileUploadPathDenySegments: ctx.fileUploadPathDenySegments,
|
|
55
|
+
fileUploadAllowlist: ctx.fileUploadAllowlist
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
logger_default.debug(`Uploading file "${value.name}"`);
|
|
31
60
|
return getFileDataAfterUploadingToS3(value, {
|
|
32
61
|
toolSlug: ctx.toolSlug,
|
|
33
62
|
toolkitSlug: ctx.toolkitSlug,
|
|
34
|
-
client: ctx.client
|
|
63
|
+
client: ctx.client,
|
|
64
|
+
sensitiveFileUploadProtection: ctx.sensitiveFileUploadProtection,
|
|
65
|
+
fileUploadPathDenySegments: ctx.fileUploadPathDenySegments
|
|
35
66
|
});
|
|
36
67
|
}
|
|
37
68
|
const schemaVariants = [
|
|
@@ -40,12 +71,8 @@ const hydrateFiles = async (value, schema, ctx) => {
|
|
|
40
71
|
...schema?.allOf ?? []
|
|
41
72
|
];
|
|
42
73
|
if (schemaVariants.length > 0) {
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
let result = value;
|
|
46
|
-
for (const variant of uploadableVariants) result = await hydrateFiles(result, variant, ctx);
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
74
|
+
const firstUploadableVariant = schemaVariants.find(schemaHasFileUploadable);
|
|
75
|
+
if (firstUploadableVariant) return hydrateFiles(value, firstUploadableVariant, ctx);
|
|
49
76
|
}
|
|
50
77
|
if (schema?.type === "object" && schema.properties && isPlainObject(value)) {
|
|
51
78
|
const transformed = {};
|
|
@@ -68,7 +95,8 @@ const downloadS3File = async (value, ctx) => {
|
|
|
68
95
|
const dl = await downloadFileFromS3({
|
|
69
96
|
toolSlug: ctx.toolSlug,
|
|
70
97
|
s3Url: s3url,
|
|
71
|
-
mimeType: mimetype ?? "application/octet-stream"
|
|
98
|
+
mimeType: mimetype ?? "application/octet-stream",
|
|
99
|
+
fileDownloadDir: ctx.fileDownloadDir
|
|
72
100
|
});
|
|
73
101
|
logger_default.debug(`Downloaded → ${dl.filePath}`);
|
|
74
102
|
return {
|
|
@@ -127,10 +155,12 @@ const hydrateDownloads = async (value, schema, ctx) => {
|
|
|
127
155
|
};
|
|
128
156
|
var FileToolModifier = class {
|
|
129
157
|
client;
|
|
130
|
-
|
|
158
|
+
fileUploadPathOptions;
|
|
159
|
+
constructor(client, fileUploadPathOptions = {}) {
|
|
131
160
|
this.client = client;
|
|
161
|
+
this.fileUploadPathOptions = fileUploadPathOptions;
|
|
132
162
|
}
|
|
133
|
-
async modifyToolSchema(
|
|
163
|
+
async modifyToolSchema(schema) {
|
|
134
164
|
if (!schema.inputParameters?.properties) return schema;
|
|
135
165
|
const properties = transformProperties(schema.inputParameters.properties);
|
|
136
166
|
return {
|
|
@@ -149,19 +179,24 @@ var FileToolModifier = class {
|
|
|
149
179
|
const newArgs = await hydrateFiles(args, tool.inputParameters, {
|
|
150
180
|
toolSlug,
|
|
151
181
|
toolkitSlug,
|
|
152
|
-
client: this.client
|
|
182
|
+
client: this.client,
|
|
183
|
+
...this.fileUploadPathOptions
|
|
153
184
|
});
|
|
154
185
|
return {
|
|
155
186
|
...params,
|
|
156
187
|
arguments: newArgs
|
|
157
188
|
};
|
|
158
189
|
} catch (error) {
|
|
190
|
+
if (error instanceof ComposioSensitiveFilePathBlockedError || error instanceof ComposioFileUploadAbortedError || error instanceof ComposioFileUploadPathNotAllowedError || error instanceof ComposioFileNotFoundError) throw error;
|
|
159
191
|
throw new ComposioFileUploadError("Failed to upload file", { cause: error });
|
|
160
192
|
}
|
|
161
193
|
}
|
|
162
194
|
async fileDownloadModifier(tool, options) {
|
|
163
195
|
const { result, toolSlug } = options;
|
|
164
|
-
const dataWithDownloads = await hydrateDownloads(result.data, tool.outputParameters, {
|
|
196
|
+
const dataWithDownloads = await hydrateDownloads(result.data, tool.outputParameters, {
|
|
197
|
+
toolSlug,
|
|
198
|
+
fileDownloadDir: this.fileUploadPathOptions.fileDownloadDir
|
|
199
|
+
});
|
|
165
200
|
return {
|
|
166
201
|
...result,
|
|
167
202
|
data: dataWithDownloads
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_FileToolModifier_utils_neutral = require('../../FileToolModifier.utils.neutral-
|
|
1
|
+
const require_FileToolModifier_utils_neutral = require('../../FileToolModifier.utils.neutral-Dfwqgimk.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/utils/modifiers/FileToolModifier.workerd.ts
|
|
4
|
-
const UNSUPPORTED_MESSAGE = "File upload/download modifiers are not available on edge runtimes yet. Please set `
|
|
4
|
+
const UNSUPPORTED_MESSAGE = "File upload/download modifiers are not available on edge runtimes yet. Please set `dangerouslyAllowAutoUploadDownloadFiles: false` (or unset it; it defaults to false) or run Composio in another JS runtime (Node.js / Bun).";
|
|
5
5
|
var FileToolModifier = class {
|
|
6
6
|
constructor(_client) {}
|
|
7
|
-
async modifyToolSchema(
|
|
7
|
+
async modifyToolSchema(schema) {
|
|
8
8
|
if (!schema.inputParameters?.properties) return schema;
|
|
9
9
|
const properties = require_FileToolModifier_utils_neutral.transformProperties(schema.inputParameters.properties);
|
|
10
10
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-
|
|
1
|
+
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-4f4Ktd2s.cjs";
|
|
2
2
|
import ComposioClient from "@composio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/modifiers/FileToolModifier.workerd.d.ts
|
|
5
5
|
declare class FileToolModifier {
|
|
6
6
|
constructor(_client: ComposioClient);
|
|
7
|
-
modifyToolSchema(
|
|
7
|
+
modifyToolSchema(schema: Tool): Promise<Tool>;
|
|
8
8
|
fileUploadModifier(_tool: Tool, _options: {
|
|
9
9
|
toolSlug: string;
|
|
10
10
|
toolkitSlug?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-
|
|
1
|
+
import { d as ToolExecuteResponse, l as ToolExecuteParams, o as Tool } from "../../tool.types-DJxP_6-g.mjs";
|
|
2
2
|
import ComposioClient from "@composio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/modifiers/FileToolModifier.workerd.d.ts
|
|
5
5
|
declare class FileToolModifier {
|
|
6
6
|
constructor(_client: ComposioClient);
|
|
7
|
-
modifyToolSchema(
|
|
7
|
+
modifyToolSchema(schema: Tool): Promise<Tool>;
|
|
8
8
|
fileUploadModifier(_tool: Tool, _options: {
|
|
9
9
|
toolSlug: string;
|
|
10
10
|
toolkitSlug?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as transformProperties } from "../../FileToolModifier.utils.neutral-
|
|
1
|
+
import { i as transformProperties } from "../../FileToolModifier.utils.neutral-B7P7wn-b.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/modifiers/FileToolModifier.workerd.ts
|
|
4
|
-
const UNSUPPORTED_MESSAGE = "File upload/download modifiers are not available on edge runtimes yet. Please set `
|
|
4
|
+
const UNSUPPORTED_MESSAGE = "File upload/download modifiers are not available on edge runtimes yet. Please set `dangerouslyAllowAutoUploadDownloadFiles: false` (or unset it; it defaults to false) or run Composio in another JS runtime (Node.js / Bun).";
|
|
5
5
|
var FileToolModifier = class {
|
|
6
6
|
constructor(_client) {}
|
|
7
|
-
async modifyToolSchema(
|
|
7
|
+
async modifyToolSchema(schema) {
|
|
8
8
|
if (!schema.inputParameters?.properties) return schema;
|
|
9
9
|
const properties = transformProperties(schema.inputParameters.properties);
|
|
10
10
|
return {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of Composio's ABLY toolkit.
|
|
3
|
+
*/
|
|
4
|
+
export const ABLY = {
|
|
5
|
+
slug: "ably",
|
|
6
|
+
tools: {
|
|
7
|
+
BATCH_PRESENCE: "ABLY_BATCH_PRESENCE",
|
|
8
|
+
BATCH_PRESENCE_HISTORY: "ABLY_BATCH_PRESENCE_HISTORY",
|
|
9
|
+
CREATE_CHANNEL: "ABLY_CREATE_CHANNEL",
|
|
10
|
+
DELETE_CHANNEL_SUBSCRIPTION: "ABLY_DELETE_CHANNEL_SUBSCRIPTION",
|
|
11
|
+
GET_CHANNEL_DETAILS: "ABLY_GET_CHANNEL_DETAILS",
|
|
12
|
+
GET_CHANNEL_HISTORY: "ABLY_GET_CHANNEL_HISTORY",
|
|
13
|
+
GET_PRESENCE_HISTORY: "ABLY_GET_PRESENCE_HISTORY",
|
|
14
|
+
GET_SERVICE_TIME: "ABLY_GET_SERVICE_TIME",
|
|
15
|
+
GET_STATS: "ABLY_GET_STATS",
|
|
16
|
+
LIST_PUSH_CHANNEL_SUBSCRIPTIONS: "ABLY_LIST_PUSH_CHANNEL_SUBSCRIPTIONS",
|
|
17
|
+
PUBLISH_MESSAGE_TO_CHANNEL: "ABLY_PUBLISH_MESSAGE_TO_CHANNEL",
|
|
18
|
+
},
|
|
19
|
+
triggerTypes: {},
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of Composio's ACCULYNX toolkit.
|
|
3
|
+
*/
|
|
4
|
+
export const ACCULYNX = {
|
|
5
|
+
slug: "acculynx",
|
|
6
|
+
tools: {
|
|
7
|
+
ADD_JOB_APPOINTMENT: "ACCULYNX_ADD_JOB_APPOINTMENT",
|
|
8
|
+
CREATE_A_CONTACT: "ACCULYNX_CREATE_A_CONTACT",
|
|
9
|
+
CREATE_A_JOB: "ACCULYNX_CREATE_A_JOB",
|
|
10
|
+
CREATE_A_LEAD: "ACCULYNX_CREATE_A_LEAD",
|
|
11
|
+
JOB_APPOINTMENT_SUMMARY: "ACCULYNX_JOB_APPOINTMENT_SUMMARY",
|
|
12
|
+
LIST_OF_CALENDARS_FOR_THE_LOCATION: "ACCULYNX_LIST_OF_CALENDARS_FOR_THE_LOCATION",
|
|
13
|
+
LIST_OF_CONTACT_TYPES_RELATED_TO_THE_COMPANY: "ACCULYNX_LIST_OF_CONTACT_TYPES_RELATED_TO_THE_COMPANY",
|
|
14
|
+
UPDATE_COMPANY_REPRESENTATIVE: "ACCULYNX_UPDATE_COMPANY_REPRESENTATIVE",
|
|
15
|
+
},
|
|
16
|
+
triggerTypes: {},
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of Composio's ACTIVE_CAMPAIGN toolkit.
|
|
3
|
+
*/
|
|
4
|
+
export const ACTIVE_CAMPAIGN = {
|
|
5
|
+
slug: "active_campaign",
|
|
6
|
+
tools: {
|
|
7
|
+
ADD_CONTACT_NOTE: "ACTIVE_CAMPAIGN_ADD_CONTACT_NOTE",
|
|
8
|
+
ADD_CONTACT_TO_AUTOMATION: "ACTIVE_CAMPAIGN_ADD_CONTACT_TO_AUTOMATION",
|
|
9
|
+
ADD_SECONDARY_CONTACT_TO_DEAL: "ACTIVE_CAMPAIGN_ADD_SECONDARY_CONTACT_TO_DEAL",
|
|
10
|
+
CREATE_ACCOUNT: "ACTIVE_CAMPAIGN_CREATE_ACCOUNT",
|
|
11
|
+
CREATE_CONTACT: "ACTIVE_CAMPAIGN_CREATE_CONTACT",
|
|
12
|
+
CREATE_CONTACT_TASK: "ACTIVE_CAMPAIGN_CREATE_CONTACT_TASK",
|
|
13
|
+
CREATE_DEAL_PIPELINE: "ACTIVE_CAMPAIGN_CREATE_DEAL_PIPELINE",
|
|
14
|
+
CREATE_DEAL_TASK_TYPE: "ACTIVE_CAMPAIGN_CREATE_DEAL_TASK_TYPE",
|
|
15
|
+
DELETE_ACCOUNT: "ACTIVE_CAMPAIGN_DELETE_ACCOUNT",
|
|
16
|
+
DELETE_DEAL_PIPELINE: "ACTIVE_CAMPAIGN_DELETE_DEAL_PIPELINE",
|
|
17
|
+
DELETE_DEAL_STAGE: "ACTIVE_CAMPAIGN_DELETE_DEAL_STAGE",
|
|
18
|
+
FIND_CONTACT: "ACTIVE_CAMPAIGN_FIND_CONTACT",
|
|
19
|
+
FIND_CONTACT_TASK: "ACTIVE_CAMPAIGN_FIND_CONTACT_TASK",
|
|
20
|
+
FIND_USER_ACTION: "ACTIVE_CAMPAIGN_FIND_USER_ACTION",
|
|
21
|
+
LIST_ALL_CONTACTS: "ACTIVE_CAMPAIGN_LIST_ALL_CONTACTS",
|
|
22
|
+
MANAGE_CONTACT_TAG: "ACTIVE_CAMPAIGN_MANAGE_CONTACT_TAG",
|
|
23
|
+
MANAGE_LIST_SUBSCRIPTION: "ACTIVE_CAMPAIGN_MANAGE_LIST_SUBSCRIPTION",
|
|
24
|
+
REMOVE_CONTACT_FROM_AUTOMATION: "ACTIVE_CAMPAIGN_REMOVE_CONTACT_FROM_AUTOMATION",
|
|
25
|
+
TRACK_EVENT: "ACTIVE_CAMPAIGN_TRACK_EVENT",
|
|
26
|
+
UPDATE_ACCOUNT: "ACTIVE_CAMPAIGN_UPDATE_ACCOUNT",
|
|
27
|
+
UPSERT_ACCOUNT: "ACTIVE_CAMPAIGN_UPSERT_ACCOUNT",
|
|
28
|
+
},
|
|
29
|
+
triggerTypes: {},
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of Composio's ADYNTEL toolkit.
|
|
3
|
+
*/
|
|
4
|
+
export const ADYNTEL = {
|
|
5
|
+
slug: "adyntel",
|
|
6
|
+
tools: {
|
|
7
|
+
GET_GOOGLE_ADS_BY_COMPANY: "ADYNTEL_GET_GOOGLE_ADS_BY_COMPANY",
|
|
8
|
+
META_AD_SEARCH: "ADYNTEL_META_AD_SEARCH",
|
|
9
|
+
SEARCH_TIK_TOK_ADS: "ADYNTEL_SEARCH_TIK_TOK_ADS",
|
|
10
|
+
},
|
|
11
|
+
triggerTypes: {},
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of Composio's AFFINITY toolkit.
|
|
3
|
+
*/
|
|
4
|
+
export const AFFINITY = {
|
|
5
|
+
slug: "affinity",
|
|
6
|
+
tools: {
|
|
7
|
+
GET_ALL_COMPANIES: "AFFINITY_GET_ALL_COMPANIES",
|
|
8
|
+
GET_ALL_LIST_ENTRIES_ON_A_LIST: "AFFINITY_GET_ALL_LIST_ENTRIES_ON_A_LIST",
|
|
9
|
+
GET_ALL_LIST_ENTRIES_ON_A_SAVED_VIEW: "AFFINITY_GET_ALL_LIST_ENTRIES_ON_A_SAVED_VIEW",
|
|
10
|
+
GET_ALL_OPPORTUNITIES: "AFFINITY_GET_ALL_OPPORTUNITIES",
|
|
11
|
+
GET_ALL_PERSONS: "AFFINITY_GET_ALL_PERSONS",
|
|
12
|
+
GET_A_COMPANY_S_LISTS: "AFFINITY_GET_A_COMPANY_S_LISTS",
|
|
13
|
+
GET_A_COMPANY_S_LIST_ENTRIES: "AFFINITY_GET_A_COMPANY_S_LIST_ENTRIES",
|
|
14
|
+
GET_A_PERSON_S_LISTS: "AFFINITY_GET_A_PERSON_S_LISTS",
|
|
15
|
+
GET_A_PERSON_S_LIST_ENTRIES: "AFFINITY_GET_A_PERSON_S_LIST_ENTRIES",
|
|
16
|
+
GET_A_SINGLE_COMPANY: "AFFINITY_GET_A_SINGLE_COMPANY",
|
|
17
|
+
GET_A_SINGLE_OPPORTUNITY: "AFFINITY_GET_A_SINGLE_OPPORTUNITY",
|
|
18
|
+
GET_A_SINGLE_PERSON: "AFFINITY_GET_A_SINGLE_PERSON",
|
|
19
|
+
GET_CURRENT_USER: "AFFINITY_GET_CURRENT_USER",
|
|
20
|
+
GET_METADATA_ON_ALL_LISTS: "AFFINITY_GET_METADATA_ON_ALL_LISTS",
|
|
21
|
+
GET_METADATA_ON_A_SINGLE_LIST: "AFFINITY_GET_METADATA_ON_A_SINGLE_LIST",
|
|
22
|
+
GET_METADATA_ON_A_SINGLE_LIST_S_FIELDS: "AFFINITY_GET_METADATA_ON_A_SINGLE_LIST_S_FIELDS",
|
|
23
|
+
GET_METADATA_ON_A_SINGLE_SAVED_VIEW: "AFFINITY_GET_METADATA_ON_A_SINGLE_SAVED_VIEW",
|
|
24
|
+
GET_METADATA_ON_COMPANY_FIELDS: "AFFINITY_GET_METADATA_ON_COMPANY_FIELDS",
|
|
25
|
+
GET_METADATA_ON_PERSON_FIELDS: "AFFINITY_GET_METADATA_ON_PERSON_FIELDS",
|
|
26
|
+
GET_METADATA_ON_SAVED_VIEWS: "AFFINITY_GET_METADATA_ON_SAVED_VIEWS",
|
|
27
|
+
},
|
|
28
|
+
triggerTypes: {},
|
|
29
|
+
}
|