@composio/core 0.6.0 → 0.6.2
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/{BaseProvider-D1UCDu8V.d.mts → BaseProvider-C7yGAyLz.d.mts} +4 -4
- package/dist/{BaseProvider-2__95v5V.d.cts → BaseProvider-X7JCCvcK.d.cts} +4 -4
- package/dist/{composio-DtAsGWh4.d.mts → composio-Ds1Z80p8.d.mts} +27 -15
- package/dist/{composio-CFe2Q5BN.d.cts → composio-uGEfnO6v.d.cts} +27 -15
- package/dist/{fileUtils.node-BJQeDcfa.cjs → fileUtils.node-DLp53qm1.cjs} +1 -2
- package/dist/{fileUtils.node-C6fQOgF0.mjs → fileUtils.node-MOEGtpnI.mjs} +1 -2
- package/dist/index.cjs +134 -29
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +134 -29
- package/dist/models/Files.node.cjs +1 -1
- package/dist/models/Files.node.mjs +1 -1
- package/dist/{types-Do-rlwX8.d.mts → types-CMQAtpc_.d.mts} +2 -2
- package/dist/{types-Ohe4pd-1.d.cts → types-CTXCkF_v.d.cts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -3
- package/dist/utils/modifiers/FileToolModifier.node.cjs +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +2 -2
- package/generated/ably.ts +0 -20
- package/generated/accelo.ts +0 -8
- package/generated/acculynx.ts +0 -17
- package/generated/active_campaign.ts +0 -30
- package/generated/adobe.ts +0 -8
- package/generated/adyntel.ts +0 -12
- package/generated/aero_workflow.ts +0 -8
- package/generated/affinity.ts +0 -29
- package/generated/agencyzoom.ts +0 -108
- package/generated/ahrefs.ts +0 -49
- package/generated/airtable.ts +0 -26
- package/generated/alchemy.ts +0 -16
- package/generated/algolia.ts +0 -39
- package/generated/altoviz.ts +0 -18
- package/generated/amazon.ts +0 -8
- package/generated/amcards.ts +0 -11
- package/generated/amplitude.ts +0 -25
- package/generated/anthropic_administrator.ts +0 -13
- package/generated/apaleo.ts +0 -38
- package/generated/apollo.ts +0 -40
- package/generated/appdrag.ts +0 -8
- package/generated/appsflyer.ts +0 -8
- package/generated/asana.ts +0 -95
- package/generated/ashby.ts +0 -8
- package/generated/atlassian.ts +0 -8
- package/generated/attio.ts +0 -20
- package/generated/auth0.ts +0 -8
- package/generated/axonaut.ts +0 -8
- package/generated/bamboohr.ts +0 -168
- package/generated/bannerbear.ts +0 -17
- package/generated/baserow.ts +0 -11
- package/generated/battlenet.ts +0 -8
- package/generated/beeminder.ts +0 -14
- package/generated/bigmailer.ts +0 -12
- package/generated/bigml.ts +0 -15
- package/generated/bill.ts +0 -218
- package/generated/bitbucket.ts +0 -25
- package/generated/bitwarden.ts +0 -8
- package/generated/blackbaud.ts +0 -8
- package/generated/blackboard.ts +0 -323
- package/generated/boldsign.ts +0 -8
- package/generated/bolna.ts +0 -24
- package/generated/borneo.ts +0 -162
- package/generated/botbaba.ts +0 -8
- package/generated/box.ts +0 -282
- package/generated/braintree.ts +0 -8
- package/generated/brandfetch.ts +0 -15
- package/generated/breezy_hr.ts +0 -8
- package/generated/brevo.ts +0 -28
- package/generated/brex.ts +0 -8
- package/generated/brex_staging.ts +0 -8
- package/generated/brightpearl.ts +0 -8
- package/generated/brilliant_directories.ts +0 -15
- package/generated/browseai.ts +0 -18
- package/generated/browserbase_tool.ts +0 -10
- package/generated/browserhub.ts +0 -8
- package/generated/browserless.ts +0 -16
- package/generated/bubble.ts +0 -8
- package/generated/bugbug.ts +0 -13
- package/generated/builtwith.ts +0 -21
- package/generated/cal.ts +0 -150
- package/generated/calendly.ts +0 -51
- package/generated/canva.ts +0 -41
- package/generated/canvas.ts +0 -100
- package/generated/chatwork.ts +0 -17
- package/generated/chmeetings.ts +0 -8
- package/generated/clickup.ts +0 -153
- package/generated/clockify.ts +0 -23
- package/generated/close.ts +0 -15
- package/generated/cloudflare.ts +0 -10
- package/generated/coda.ts +0 -115
- package/generated/codeinterpreter.ts +0 -14
- package/generated/coinbase.ts +0 -15
- package/generated/coinmarketcal.ts +0 -8
- package/generated/composio.ts +0 -34
- package/generated/composio_search.ts +0 -22
- package/generated/confluence.ts +0 -199
- package/generated/contentful.ts +0 -12
- package/generated/crustdata.ts +0 -23
- package/generated/customer_io.ts +0 -8
- package/generated/cutt_ly.ts +0 -10
- package/generated/d2lbrightspace.ts +0 -54
- package/generated/dailybot.ts +0 -15
- package/generated/datadog.ts +0 -47
- package/generated/datagma.ts +0 -8
- package/generated/datarobot.ts +0 -8
- package/generated/deel.ts +0 -8
- package/generated/demio.ts +0 -8
- package/generated/dialpad.ts +0 -201
- package/generated/digicert.ts +0 -15
- package/generated/discord.ts +0 -17
- package/generated/discordbot.ts +0 -173
- package/generated/docmosis.ts +0 -8
- package/generated/docusign.ts +0 -351
- package/generated/dropbox.ts +0 -20
- package/generated/dropbox_sign.ts +0 -8
- package/generated/dynamics365.ts +0 -25
- package/generated/echtpost.ts +0 -10
- package/generated/elevenlabs.ts +0 -70
- package/generated/emailoctopus.ts +0 -16
- package/generated/enigma.ts +0 -11
- package/generated/entelligence.ts +0 -11
- package/generated/epic_games.ts +0 -8
- package/generated/eventbrite.ts +0 -12
- package/generated/exa.ts +0 -13
- package/generated/excel.ts +0 -34
- package/generated/exist.ts +0 -8
- package/generated/facebook.ts +0 -8
- package/generated/factorial.ts +0 -8
- package/generated/figma.ts +0 -59
- package/generated/finage.ts +0 -19
- package/generated/firecrawl.ts +0 -16
- package/generated/fireflies.ts +0 -21
- package/generated/fitbit.ts +0 -8
- package/generated/flutterwave.ts +0 -33
- package/generated/fomo.ts +0 -10
- package/generated/formcarry.ts +0 -10
- package/generated/formsite.ts +0 -14
- package/generated/foursquare.ts +0 -14
- package/generated/freshbooks.ts +0 -11
- package/generated/freshdesk.ts +0 -16
- package/generated/front.ts +0 -8
- package/generated/github.ts +0 -967
- package/generated/gitlab.ts +0 -82
- package/generated/gmail.d.ts +0 -86
- package/generated/gmail.js +0 -13
- package/generated/gmail.ts +0 -95
- package/generated/go_to_webinar.ts +0 -8
- package/generated/gong.ts +0 -63
- package/generated/google_analytics.ts +0 -13
- package/generated/google_maps.ts +0 -16
- package/generated/googleads.ts +0 -14
- package/generated/googlebigquery.ts +0 -10
- package/generated/googlecalendar.ts +0 -39
- package/generated/googledocs.ts +0 -41
- package/generated/googledrive.ts +0 -62
- package/generated/googlemeet.ts +0 -18
- package/generated/googlephotos.ts +0 -22
- package/generated/googlesheets.ts +0 -40
- package/generated/googleslides.ts +0 -8
- package/generated/googlesuper.ts +0 -230
- package/generated/googletasks.ts +0 -23
- package/generated/gorgias.ts +0 -41
- package/generated/gumroad.ts +0 -14
- package/generated/guru.ts +0 -8
- package/generated/hackernews.ts +0 -15
- package/generated/hackerrank_work.ts +0 -8
- package/generated/harvest.ts +0 -56
- package/generated/helcim.ts +0 -8
- package/generated/heygen.ts +0 -44
- package/generated/highlevel.ts +0 -8
- package/generated/hubspot.ts +0 -252
- package/generated/humanloop.ts +0 -13
- package/generated/icims_talent_cloud.ts +0 -8
- package/generated/idea_scale.ts +0 -8
- package/generated/index.ts +0 -151
- package/generated/insighto_ai.ts +0 -19
- package/generated/intercom.ts +0 -52
- package/generated/interzoid.ts +0 -8
- package/generated/jira.ts +0 -59
- package/generated/jotform.ts +0 -15
- package/generated/junglescout.ts +0 -15
- package/generated/keap.ts +0 -8
- package/generated/kibana.ts +0 -58
- package/generated/kit.ts +0 -38
- package/generated/klaviyo.ts +0 -240
- package/generated/klipfolio.ts +0 -20
- package/generated/kommo.ts +0 -24
- package/generated/lastpass.ts +0 -8
- package/generated/launch_darkly.ts +0 -16
- package/generated/leadfeeder.ts +0 -13
- package/generated/leadoku.ts +0 -10
- package/generated/lever.ts +0 -8
- package/generated/lever_sandbox.ts +0 -8
- package/generated/lexoffice.ts +0 -8
- package/generated/linear.ts +0 -31
- package/generated/linkedin.ts +0 -13
- package/generated/linkhut.ts +0 -14
- package/generated/linkup.ts +0 -11
- package/generated/listennotes.ts +0 -35
- package/generated/lmnt.ts +0 -16
- package/generated/lodgify.ts +0 -10
- package/generated/mailchimp.ts +0 -285
- package/generated/mailerlite.ts +0 -8
- package/generated/maintainx.ts +0 -20
- package/generated/make.ts +0 -12
- package/generated/mboum.ts +0 -8
- package/generated/mem0.ts +0 -52
- package/generated/metaads.ts +0 -25
- package/generated/metatextai.ts +0 -8
- package/generated/microsoft_clarity.ts +0 -10
- package/generated/microsoft_teams.ts +0 -22
- package/generated/microsoft_tenant.ts +0 -8
- package/generated/miro.ts +0 -23
- package/generated/mixpanel.ts +0 -30
- package/generated/mocean.ts +0 -8
- package/generated/monday.ts +0 -30
- package/generated/mopinion.ts +0 -8
- package/generated/more_trees.ts +0 -10
- package/generated/moxie.ts +0 -8
- package/generated/moz.ts +0 -8
- package/generated/mural.ts +0 -14
- package/generated/nasdaq.ts +0 -15
- package/generated/ncscale.ts +0 -8
- package/generated/neon.ts +0 -78
- package/generated/netsuite.ts +0 -8
- package/generated/nextdns.ts +0 -11
- package/generated/ngrok.ts +0 -18
- package/generated/notion.ts +0 -40
- package/generated/oncehub.ts +0 -8
- package/generated/one_drive.ts +0 -49
- package/generated/onepage.ts +0 -11
- package/generated/open_sea.ts +0 -33
- package/generated/outlook.ts +0 -37
- package/generated/pagerduty.ts +0 -362
- package/generated/pandadoc.ts +0 -23
- package/generated/peopledatalabs.ts +0 -24
- package/generated/perplexityai.ts +0 -10
- package/generated/piggy.ts +0 -8
- package/generated/pipedrive.ts +0 -288
- package/generated/placekey.ts +0 -12
- package/generated/posthog.ts +0 -367
- package/generated/precoro.ts +0 -8
- package/generated/printnode.ts +0 -8
- package/generated/process_street.ts +0 -14
- package/generated/productboard.ts +0 -8
- package/generated/qualaroo.ts +0 -8
- package/generated/quickbooks.ts +0 -22
- package/generated/rafflys.ts +0 -8
- package/generated/ragic.ts +0 -10
- package/generated/ramp.ts +0 -17
- package/generated/ravenseotools.ts +0 -8
- package/generated/recallai.ts +0 -17
- package/generated/reddit.ts +0 -19
- package/generated/resend.ts +0 -27
- package/generated/retellai.ts +0 -19
- package/generated/retently.ts +0 -24
- package/generated/ring_central.ts +0 -8
- package/generated/rippling.ts +0 -8
- package/generated/rocket_reach.ts +0 -8
- package/generated/rocketlane.ts +0 -42
- package/generated/rootly.ts +0 -12
- package/generated/rosette_text_analytics.ts +0 -12
- package/generated/sage.ts +0 -8
- package/generated/salesforce.ts +0 -46
- package/generated/scrape_do.ts +0 -28
- package/generated/scrapingant.ts +0 -14
- package/generated/screenshotone.ts +0 -10
- package/generated/seismic.ts +0 -8
- package/generated/semanticscholar.ts +0 -23
- package/generated/semrush.ts +0 -45
- package/generated/sendgrid.ts +0 -384
- package/generated/sentry.ts +0 -185
- package/generated/serpapi.ts +0 -32
- package/generated/servicem8.ts +0 -37
- package/generated/servicenow.ts +0 -14
- package/generated/share_point.ts +0 -15
- package/generated/shopify.ts +0 -37
- package/generated/shortcut.ts +0 -131
- package/generated/simplesat.ts +0 -11
- package/generated/slack.d.ts +0 -16
- package/generated/slack.js +0 -11
- package/generated/slack.ts +0 -24
- package/generated/slackbot.ts +0 -205
- package/generated/smartrecruiters.ts +0 -8
- package/generated/smugmug.ts +0 -14
- package/generated/snowflake.ts +0 -15
- package/generated/sourcegraph.ts +0 -16
- package/generated/square.ts +0 -8
- package/generated/stack_exchange.ts +0 -17
- package/generated/starton.ts +0 -11
- package/generated/storeganise.ts +0 -12
- package/generated/stripe.ts +0 -50
- package/generated/supabase.ts +0 -86
- package/generated/survey_monkey.ts +0 -8
- package/generated/tally.ts +0 -25
- package/generated/tapfiliate.ts +0 -11
- package/generated/tapform.ts +0 -8
- package/generated/tavily.ts +0 -10
- package/generated/terminus.ts +0 -8
- package/generated/text_to_pdf.ts +0 -10
- package/generated/textrazor.ts +0 -22
- package/generated/timecamp.ts +0 -10
- package/generated/timekit.ts +0 -8
- package/generated/timely.ts +0 -11
- package/generated/tinypng.ts +0 -15
- package/generated/tinyurl.ts +0 -10
- package/generated/tisane.ts +0 -15
- package/generated/todoist.ts +0 -19
- package/generated/toneden.ts +0 -8
- package/generated/tpscheck.ts +0 -10
- package/generated/trello.ts +0 -360
- package/generated/twitch.ts +0 -8
- package/generated/twitter.ts +0 -82
- package/generated/twitter_media.ts +0 -10
- package/generated/typefully.ts +0 -14
- package/generated/venly.ts +0 -8
- package/generated/vero.ts +0 -8
- package/generated/visme.ts +0 -8
- package/generated/waboxapp.ts +0 -8
- package/generated/wakatime.ts +0 -8
- package/generated/wave_accounting.ts +0 -8
- package/generated/weathermap.ts +0 -10
- package/generated/webex.ts +0 -37
- package/generated/webflow.ts +0 -30
- package/generated/whatsapp.ts +0 -14
- package/generated/wiz.ts +0 -8
- package/generated/workiom.ts +0 -12
- package/generated/wrike.ts +0 -47
- package/generated/xero.ts +0 -13
- package/generated/yandex.ts +0 -13
- package/generated/ynab.ts +0 -8
- package/generated/yousearch.ts +0 -10
- package/generated/youtube.ts +0 -26
- package/generated/zendesk.ts +0 -23
- package/generated/zenrows.ts +0 -25
- package/generated/zenserp.ts +0 -20
- package/generated/zoho.ts +0 -33
- package/generated/zoho_bigin.ts +0 -21
- package/generated/zoho_books.ts +0 -8
- package/generated/zoho_desk.ts +0 -8
- package/generated/zoho_inventory.ts +0 -8
- package/generated/zoho_invoice.ts +0 -15
- package/generated/zoho_mail.ts +0 -8
- package/generated/zoom.ts +0 -181
- package/generated/zoominfo.ts +0 -26
|
@@ -26072,13 +26072,13 @@ declare const MCPGenerateURLParamsSchema: z$1.ZodObject<{
|
|
|
26072
26072
|
connectedAccountIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
26073
26073
|
isChatAuth: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
26074
26074
|
}, "strip", z$1.ZodTypeAny, {
|
|
26075
|
+
userIds?: string[] | undefined;
|
|
26075
26076
|
connectedAccountIds?: string[] | undefined;
|
|
26076
26077
|
isChatAuth?: boolean | undefined;
|
|
26077
|
-
userIds?: string[] | undefined;
|
|
26078
26078
|
}, {
|
|
26079
|
+
userIds?: string[] | undefined;
|
|
26079
26080
|
connectedAccountIds?: string[] | undefined;
|
|
26080
26081
|
isChatAuth?: boolean | undefined;
|
|
26081
|
-
userIds?: string[] | undefined;
|
|
26082
26082
|
}>;
|
|
26083
26083
|
type MCPGenerateURLParams = z$1.infer<typeof MCPGenerateURLParamsSchema>;
|
|
26084
26084
|
declare const ComposioGenerateURLParamsSchema: z$1.ZodObject<{
|
|
@@ -26104,13 +26104,13 @@ declare const GenerateURLParamsSchema: z$1.ZodObject<{
|
|
|
26104
26104
|
composioManagedAuth: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
26105
26105
|
}, "strip", z$1.ZodTypeAny, {
|
|
26106
26106
|
mcpServerId: string;
|
|
26107
|
-
connectedAccountIds?: string[] | undefined;
|
|
26108
26107
|
userIds?: string[] | undefined;
|
|
26108
|
+
connectedAccountIds?: string[] | undefined;
|
|
26109
26109
|
composioManagedAuth?: boolean | undefined;
|
|
26110
26110
|
}, {
|
|
26111
26111
|
mcpServerId: string;
|
|
26112
|
-
connectedAccountIds?: string[] | undefined;
|
|
26113
26112
|
userIds?: string[] | undefined;
|
|
26113
|
+
connectedAccountIds?: string[] | undefined;
|
|
26114
26114
|
composioManagedAuth?: boolean | undefined;
|
|
26115
26115
|
}>;
|
|
26116
26116
|
type GenerateURLParams = z$1.infer<typeof GenerateURLParamsSchema>;
|
|
@@ -26072,13 +26072,13 @@ declare const MCPGenerateURLParamsSchema: z.ZodObject<{
|
|
|
26072
26072
|
connectedAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26073
26073
|
isChatAuth: z.ZodOptional<z.ZodBoolean>;
|
|
26074
26074
|
}, "strip", z.ZodTypeAny, {
|
|
26075
|
+
userIds?: string[] | undefined;
|
|
26075
26076
|
connectedAccountIds?: string[] | undefined;
|
|
26076
26077
|
isChatAuth?: boolean | undefined;
|
|
26077
|
-
userIds?: string[] | undefined;
|
|
26078
26078
|
}, {
|
|
26079
|
+
userIds?: string[] | undefined;
|
|
26079
26080
|
connectedAccountIds?: string[] | undefined;
|
|
26080
26081
|
isChatAuth?: boolean | undefined;
|
|
26081
|
-
userIds?: string[] | undefined;
|
|
26082
26082
|
}>;
|
|
26083
26083
|
type MCPGenerateURLParams = z.infer<typeof MCPGenerateURLParamsSchema>;
|
|
26084
26084
|
declare const ComposioGenerateURLParamsSchema: z.ZodObject<{
|
|
@@ -26104,13 +26104,13 @@ declare const GenerateURLParamsSchema: z.ZodObject<{
|
|
|
26104
26104
|
composioManagedAuth: z.ZodOptional<z.ZodBoolean>;
|
|
26105
26105
|
}, "strip", z.ZodTypeAny, {
|
|
26106
26106
|
mcpServerId: string;
|
|
26107
|
-
connectedAccountIds?: string[] | undefined;
|
|
26108
26107
|
userIds?: string[] | undefined;
|
|
26108
|
+
connectedAccountIds?: string[] | undefined;
|
|
26109
26109
|
composioManagedAuth?: boolean | undefined;
|
|
26110
26110
|
}, {
|
|
26111
26111
|
mcpServerId: string;
|
|
26112
|
-
connectedAccountIds?: string[] | undefined;
|
|
26113
26112
|
userIds?: string[] | undefined;
|
|
26113
|
+
connectedAccountIds?: string[] | undefined;
|
|
26114
26114
|
composioManagedAuth?: boolean | undefined;
|
|
26115
26115
|
}>;
|
|
26116
26116
|
type GenerateURLParams = z.infer<typeof GenerateURLParamsSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as SessionExecuteMetaModifiers, En as ToolRetrievalOptions, Nn as ToolkitVersionParam, Qt as ProviderOptions, X as McpServerGetResponse, Xt as ExecuteToolModifiers, _n as ToolExecuteResponse$1, at as ExecuteToolFnOptions, bn as ToolListParams, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, fn as Tool, hn as ToolExecuteParams, n as BaseComposioProvider, pn as ToolExecuteMetaParams, r as BaseNonAgenticProvider, tt as McpUrlResponse, ut as ConnectionData, wn as ToolProxyParams, yn as ToolList } from "./BaseProvider-
|
|
1
|
+
import { $t as SessionExecuteMetaModifiers, En as ToolRetrievalOptions, Nn as ToolkitVersionParam, Qt as ProviderOptions, X as McpServerGetResponse, Xt as ExecuteToolModifiers, _n as ToolExecuteResponse$1, at as ExecuteToolFnOptions, bn as ToolListParams, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, fn as Tool, hn as ToolExecuteParams, n as BaseComposioProvider, pn as ToolExecuteMetaParams, r as BaseNonAgenticProvider, tt as McpUrlResponse, ut as ConnectionData, wn as ToolProxyParams, yn as ToolList } from "./BaseProvider-C7yGAyLz.mjs";
|
|
2
2
|
import ComposioClient, { Composio } from "@composio/client";
|
|
3
3
|
import z, { z as z$1 } from "zod/v3";
|
|
4
4
|
import { OpenAI } from "openai";
|
|
@@ -1907,18 +1907,18 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
|
1907
1907
|
limit?: number | null | undefined;
|
|
1908
1908
|
authConfigIds?: string[] | null | undefined;
|
|
1909
1909
|
cursor?: string | null | undefined;
|
|
1910
|
-
userIds?: string[] | null | undefined;
|
|
1911
1910
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1912
1911
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1913
1912
|
toolkitSlugs?: string[] | null | undefined;
|
|
1913
|
+
userIds?: string[] | null | undefined;
|
|
1914
1914
|
}, {
|
|
1915
1915
|
limit?: number | null | undefined;
|
|
1916
1916
|
authConfigIds?: string[] | null | undefined;
|
|
1917
1917
|
cursor?: string | null | undefined;
|
|
1918
|
-
userIds?: string[] | null | undefined;
|
|
1919
1918
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1920
1919
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1921
1920
|
toolkitSlugs?: string[] | null | undefined;
|
|
1921
|
+
userIds?: string[] | null | undefined;
|
|
1922
1922
|
}>;
|
|
1923
1923
|
type ConnectedAccountListParams = z$1.infer<typeof ConnectedAccountListParamsSchema>;
|
|
1924
1924
|
declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
|
|
@@ -3097,6 +3097,8 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3097
3097
|
toolkitSlug: string;
|
|
3098
3098
|
id: string;
|
|
3099
3099
|
uuid: string;
|
|
3100
|
+
triggerSlug: string;
|
|
3101
|
+
triggerConfig: Record<string, unknown>;
|
|
3100
3102
|
connectedAccount: {
|
|
3101
3103
|
status: "ACTIVE" | "INACTIVE";
|
|
3102
3104
|
userId: string;
|
|
@@ -3105,13 +3107,13 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3105
3107
|
authConfigId: string;
|
|
3106
3108
|
authConfigUUID: string;
|
|
3107
3109
|
};
|
|
3108
|
-
triggerSlug: string;
|
|
3109
|
-
triggerConfig: Record<string, unknown>;
|
|
3110
3110
|
triggerData?: string | undefined;
|
|
3111
3111
|
}, {
|
|
3112
3112
|
toolkitSlug: string;
|
|
3113
3113
|
id: string;
|
|
3114
3114
|
uuid: string;
|
|
3115
|
+
triggerSlug: string;
|
|
3116
|
+
triggerConfig: Record<string, unknown>;
|
|
3115
3117
|
connectedAccount: {
|
|
3116
3118
|
status: "ACTIVE" | "INACTIVE";
|
|
3117
3119
|
userId: string;
|
|
@@ -3120,8 +3122,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3120
3122
|
authConfigId: string;
|
|
3121
3123
|
authConfigUUID: string;
|
|
3122
3124
|
};
|
|
3123
|
-
triggerSlug: string;
|
|
3124
|
-
triggerConfig: Record<string, unknown>;
|
|
3125
3125
|
triggerData?: string | undefined;
|
|
3126
3126
|
}>;
|
|
3127
3127
|
}, "strip", z$1.ZodTypeAny, {
|
|
@@ -3134,6 +3134,8 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3134
3134
|
toolkitSlug: string;
|
|
3135
3135
|
id: string;
|
|
3136
3136
|
uuid: string;
|
|
3137
|
+
triggerSlug: string;
|
|
3138
|
+
triggerConfig: Record<string, unknown>;
|
|
3137
3139
|
connectedAccount: {
|
|
3138
3140
|
status: "ACTIVE" | "INACTIVE";
|
|
3139
3141
|
userId: string;
|
|
@@ -3142,8 +3144,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3142
3144
|
authConfigId: string;
|
|
3143
3145
|
authConfigUUID: string;
|
|
3144
3146
|
};
|
|
3145
|
-
triggerSlug: string;
|
|
3146
|
-
triggerConfig: Record<string, unknown>;
|
|
3147
3147
|
triggerData?: string | undefined;
|
|
3148
3148
|
};
|
|
3149
3149
|
payload?: Record<string, unknown> | undefined;
|
|
@@ -3158,6 +3158,8 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3158
3158
|
toolkitSlug: string;
|
|
3159
3159
|
id: string;
|
|
3160
3160
|
uuid: string;
|
|
3161
|
+
triggerSlug: string;
|
|
3162
|
+
triggerConfig: Record<string, unknown>;
|
|
3161
3163
|
connectedAccount: {
|
|
3162
3164
|
status: "ACTIVE" | "INACTIVE";
|
|
3163
3165
|
userId: string;
|
|
@@ -3166,8 +3168,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3166
3168
|
authConfigId: string;
|
|
3167
3169
|
authConfigUUID: string;
|
|
3168
3170
|
};
|
|
3169
|
-
triggerSlug: string;
|
|
3170
|
-
triggerConfig: Record<string, unknown>;
|
|
3171
3171
|
triggerData?: string | undefined;
|
|
3172
3172
|
};
|
|
3173
3173
|
payload?: Record<string, unknown> | undefined;
|
|
@@ -3801,6 +3801,18 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
3801
3801
|
* ```
|
|
3802
3802
|
*/
|
|
3803
3803
|
subscribe(fn: (_data: IncomingTriggerPayload) => void, filters?: TriggerSubscribeParams): Promise<void>;
|
|
3804
|
+
/**
|
|
3805
|
+
* Tries to parse data as V1, V2, or V3 webhook payload format.
|
|
3806
|
+
* Returns the parsed result with version info, or null if no format matches.
|
|
3807
|
+
* Also returns any schema validation errors for debugging purposes.
|
|
3808
|
+
* @private
|
|
3809
|
+
*/
|
|
3810
|
+
private tryParseVersionedPayload;
|
|
3811
|
+
/**
|
|
3812
|
+
* Parses incoming Pusher payload, supporting V1, V2, V3, and legacy TriggerData formats.
|
|
3813
|
+
* @private
|
|
3814
|
+
*/
|
|
3815
|
+
private parsePusherPayload;
|
|
3804
3816
|
/**
|
|
3805
3817
|
* Unsubscribe from all the triggers
|
|
3806
3818
|
*
|
|
@@ -4357,17 +4369,17 @@ declare const MCPServerInstanceSchema: z.ZodObject<{
|
|
|
4357
4369
|
type: "streamable_http";
|
|
4358
4370
|
userId: string;
|
|
4359
4371
|
id: string;
|
|
4372
|
+
allowedTools: string[];
|
|
4360
4373
|
url: string;
|
|
4361
4374
|
authConfigs: string[];
|
|
4362
|
-
allowedTools: string[];
|
|
4363
4375
|
}, {
|
|
4364
4376
|
name: string;
|
|
4365
4377
|
type: "streamable_http";
|
|
4366
4378
|
userId: string;
|
|
4367
4379
|
id: string;
|
|
4380
|
+
allowedTools: string[];
|
|
4368
4381
|
url: string;
|
|
4369
4382
|
authConfigs: string[];
|
|
4370
|
-
allowedTools: string[];
|
|
4371
4383
|
}>;
|
|
4372
4384
|
type MCPServerInstance = z.infer<typeof MCPServerInstanceSchema>;
|
|
4373
4385
|
declare const MCPConfigCreationParamsSchema: z.ZodObject<{
|
|
@@ -4494,15 +4506,15 @@ declare const MCPListParamsSchema: z.ZodObject<{
|
|
|
4494
4506
|
}, "strip", z.ZodTypeAny, {
|
|
4495
4507
|
toolkits: string[];
|
|
4496
4508
|
limit: number;
|
|
4497
|
-
authConfigs: string[];
|
|
4498
4509
|
page: number;
|
|
4510
|
+
authConfigs: string[];
|
|
4499
4511
|
name?: string | undefined;
|
|
4500
4512
|
}, {
|
|
4501
4513
|
name?: string | undefined;
|
|
4502
4514
|
toolkits?: string[] | undefined;
|
|
4503
4515
|
limit?: number | undefined;
|
|
4504
|
-
authConfigs?: string[] | undefined;
|
|
4505
4516
|
page?: number | undefined;
|
|
4517
|
+
authConfigs?: string[] | undefined;
|
|
4506
4518
|
}>;
|
|
4507
4519
|
type MCPListParams = z.infer<typeof MCPListParamsSchema>;
|
|
4508
4520
|
declare const MCPItemSchema: z.ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as SessionExecuteMetaModifiers, En as ToolRetrievalOptions, Nn as ToolkitVersionParam, Qt as ProviderOptions, X as McpServerGetResponse, Xt as ExecuteToolModifiers, _n as ToolExecuteResponse$1, at as ExecuteToolFnOptions, bn as ToolListParams, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, fn as Tool, hn as ToolExecuteParams, n as BaseComposioProvider, pn as ToolExecuteMetaParams, r as BaseNonAgenticProvider, tt as McpUrlResponse, ut as ConnectionData, wn as ToolProxyParams, yn as ToolList } from "./BaseProvider-
|
|
1
|
+
import { $t as SessionExecuteMetaModifiers, En as ToolRetrievalOptions, Nn as ToolkitVersionParam, Qt as ProviderOptions, X as McpServerGetResponse, Xt as ExecuteToolModifiers, _n as ToolExecuteResponse$1, at as ExecuteToolFnOptions, bn as ToolListParams, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, fn as Tool, hn as ToolExecuteParams, n as BaseComposioProvider, pn as ToolExecuteMetaParams, r as BaseNonAgenticProvider, tt as McpUrlResponse, ut as ConnectionData, wn as ToolProxyParams, yn as ToolList } from "./BaseProvider-X7JCCvcK.cjs";
|
|
2
2
|
import z$1, { z } from "zod/v3";
|
|
3
3
|
import ComposioClient, { Composio } from "@composio/client";
|
|
4
4
|
import { ToolExecuteResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
|
|
@@ -1907,18 +1907,18 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
|
1907
1907
|
limit?: number | null | undefined;
|
|
1908
1908
|
authConfigIds?: string[] | null | undefined;
|
|
1909
1909
|
cursor?: string | null | undefined;
|
|
1910
|
-
userIds?: string[] | null | undefined;
|
|
1911
1910
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1912
1911
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1913
1912
|
toolkitSlugs?: string[] | null | undefined;
|
|
1913
|
+
userIds?: string[] | null | undefined;
|
|
1914
1914
|
}, {
|
|
1915
1915
|
limit?: number | null | undefined;
|
|
1916
1916
|
authConfigIds?: string[] | null | undefined;
|
|
1917
1917
|
cursor?: string | null | undefined;
|
|
1918
|
-
userIds?: string[] | null | undefined;
|
|
1919
1918
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1920
1919
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1921
1920
|
toolkitSlugs?: string[] | null | undefined;
|
|
1921
|
+
userIds?: string[] | null | undefined;
|
|
1922
1922
|
}>;
|
|
1923
1923
|
type ConnectedAccountListParams = z.infer<typeof ConnectedAccountListParamsSchema>;
|
|
1924
1924
|
declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
@@ -3097,6 +3097,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3097
3097
|
toolkitSlug: string;
|
|
3098
3098
|
id: string;
|
|
3099
3099
|
uuid: string;
|
|
3100
|
+
triggerSlug: string;
|
|
3101
|
+
triggerConfig: Record<string, unknown>;
|
|
3100
3102
|
connectedAccount: {
|
|
3101
3103
|
status: "ACTIVE" | "INACTIVE";
|
|
3102
3104
|
userId: string;
|
|
@@ -3105,13 +3107,13 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3105
3107
|
authConfigId: string;
|
|
3106
3108
|
authConfigUUID: string;
|
|
3107
3109
|
};
|
|
3108
|
-
triggerSlug: string;
|
|
3109
|
-
triggerConfig: Record<string, unknown>;
|
|
3110
3110
|
triggerData?: string | undefined;
|
|
3111
3111
|
}, {
|
|
3112
3112
|
toolkitSlug: string;
|
|
3113
3113
|
id: string;
|
|
3114
3114
|
uuid: string;
|
|
3115
|
+
triggerSlug: string;
|
|
3116
|
+
triggerConfig: Record<string, unknown>;
|
|
3115
3117
|
connectedAccount: {
|
|
3116
3118
|
status: "ACTIVE" | "INACTIVE";
|
|
3117
3119
|
userId: string;
|
|
@@ -3120,8 +3122,6 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3120
3122
|
authConfigId: string;
|
|
3121
3123
|
authConfigUUID: string;
|
|
3122
3124
|
};
|
|
3123
|
-
triggerSlug: string;
|
|
3124
|
-
triggerConfig: Record<string, unknown>;
|
|
3125
3125
|
triggerData?: string | undefined;
|
|
3126
3126
|
}>;
|
|
3127
3127
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3134,6 +3134,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3134
3134
|
toolkitSlug: string;
|
|
3135
3135
|
id: string;
|
|
3136
3136
|
uuid: string;
|
|
3137
|
+
triggerSlug: string;
|
|
3138
|
+
triggerConfig: Record<string, unknown>;
|
|
3137
3139
|
connectedAccount: {
|
|
3138
3140
|
status: "ACTIVE" | "INACTIVE";
|
|
3139
3141
|
userId: string;
|
|
@@ -3142,8 +3144,6 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3142
3144
|
authConfigId: string;
|
|
3143
3145
|
authConfigUUID: string;
|
|
3144
3146
|
};
|
|
3145
|
-
triggerSlug: string;
|
|
3146
|
-
triggerConfig: Record<string, unknown>;
|
|
3147
3147
|
triggerData?: string | undefined;
|
|
3148
3148
|
};
|
|
3149
3149
|
payload?: Record<string, unknown> | undefined;
|
|
@@ -3158,6 +3158,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3158
3158
|
toolkitSlug: string;
|
|
3159
3159
|
id: string;
|
|
3160
3160
|
uuid: string;
|
|
3161
|
+
triggerSlug: string;
|
|
3162
|
+
triggerConfig: Record<string, unknown>;
|
|
3161
3163
|
connectedAccount: {
|
|
3162
3164
|
status: "ACTIVE" | "INACTIVE";
|
|
3163
3165
|
userId: string;
|
|
@@ -3166,8 +3168,6 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3166
3168
|
authConfigId: string;
|
|
3167
3169
|
authConfigUUID: string;
|
|
3168
3170
|
};
|
|
3169
|
-
triggerSlug: string;
|
|
3170
|
-
triggerConfig: Record<string, unknown>;
|
|
3171
3171
|
triggerData?: string | undefined;
|
|
3172
3172
|
};
|
|
3173
3173
|
payload?: Record<string, unknown> | undefined;
|
|
@@ -3801,6 +3801,18 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
3801
3801
|
* ```
|
|
3802
3802
|
*/
|
|
3803
3803
|
subscribe(fn: (_data: IncomingTriggerPayload) => void, filters?: TriggerSubscribeParams): Promise<void>;
|
|
3804
|
+
/**
|
|
3805
|
+
* Tries to parse data as V1, V2, or V3 webhook payload format.
|
|
3806
|
+
* Returns the parsed result with version info, or null if no format matches.
|
|
3807
|
+
* Also returns any schema validation errors for debugging purposes.
|
|
3808
|
+
* @private
|
|
3809
|
+
*/
|
|
3810
|
+
private tryParseVersionedPayload;
|
|
3811
|
+
/**
|
|
3812
|
+
* Parses incoming Pusher payload, supporting V1, V2, V3, and legacy TriggerData formats.
|
|
3813
|
+
* @private
|
|
3814
|
+
*/
|
|
3815
|
+
private parsePusherPayload;
|
|
3804
3816
|
/**
|
|
3805
3817
|
* Unsubscribe from all the triggers
|
|
3806
3818
|
*
|
|
@@ -4357,17 +4369,17 @@ declare const MCPServerInstanceSchema: z$1.ZodObject<{
|
|
|
4357
4369
|
type: "streamable_http";
|
|
4358
4370
|
userId: string;
|
|
4359
4371
|
id: string;
|
|
4372
|
+
allowedTools: string[];
|
|
4360
4373
|
url: string;
|
|
4361
4374
|
authConfigs: string[];
|
|
4362
|
-
allowedTools: string[];
|
|
4363
4375
|
}, {
|
|
4364
4376
|
name: string;
|
|
4365
4377
|
type: "streamable_http";
|
|
4366
4378
|
userId: string;
|
|
4367
4379
|
id: string;
|
|
4380
|
+
allowedTools: string[];
|
|
4368
4381
|
url: string;
|
|
4369
4382
|
authConfigs: string[];
|
|
4370
|
-
allowedTools: string[];
|
|
4371
4383
|
}>;
|
|
4372
4384
|
type MCPServerInstance = z$1.infer<typeof MCPServerInstanceSchema>;
|
|
4373
4385
|
declare const MCPConfigCreationParamsSchema: z$1.ZodObject<{
|
|
@@ -4494,15 +4506,15 @@ declare const MCPListParamsSchema: z$1.ZodObject<{
|
|
|
4494
4506
|
}, "strip", z$1.ZodTypeAny, {
|
|
4495
4507
|
toolkits: string[];
|
|
4496
4508
|
limit: number;
|
|
4497
|
-
authConfigs: string[];
|
|
4498
4509
|
page: number;
|
|
4510
|
+
authConfigs: string[];
|
|
4499
4511
|
name?: string | undefined;
|
|
4500
4512
|
}, {
|
|
4501
4513
|
name?: string | undefined;
|
|
4502
4514
|
toolkits?: string[] | undefined;
|
|
4503
4515
|
limit?: number | undefined;
|
|
4504
|
-
authConfigs?: string[] | undefined;
|
|
4505
4516
|
page?: number | undefined;
|
|
4517
|
+
authConfigs?: string[] | undefined;
|
|
4506
4518
|
}>;
|
|
4507
4519
|
type MCPListParams = z$1.infer<typeof MCPListParamsSchema>;
|
|
4508
4520
|
declare const MCPItemSchema: z$1.ZodObject<{
|
|
@@ -112,10 +112,9 @@ const uploadFileToS3 = async (fileName, content, toolSlug, toolkitSlug, mimeType
|
|
|
112
112
|
require_buffer.logger_default.debug(`Uploading ${key} file to S3: ${key}`);
|
|
113
113
|
const uploadBuffer = new Uint8Array(contentBytes.byteLength);
|
|
114
114
|
uploadBuffer.set(contentBytes);
|
|
115
|
-
const bufferBase64 = require_buffer.uint8ArrayToBase64(uploadBuffer);
|
|
116
115
|
const uploadResponse = await fetch(signedURL, {
|
|
117
116
|
method: "PUT",
|
|
118
|
-
body:
|
|
117
|
+
body: uploadBuffer,
|
|
119
118
|
headers: {
|
|
120
119
|
"Content-Type": mimeType,
|
|
121
120
|
"Content-Length": contentBytes.length.toString()
|
|
@@ -110,10 +110,9 @@ const uploadFileToS3 = async (fileName, content, toolSlug, toolkitSlug, mimeType
|
|
|
110
110
|
logger_default.debug(`Uploading ${key} file to S3: ${key}`);
|
|
111
111
|
const uploadBuffer = new Uint8Array(contentBytes.byteLength);
|
|
112
112
|
uploadBuffer.set(contentBytes);
|
|
113
|
-
const bufferBase64 = uint8ArrayToBase64(uploadBuffer);
|
|
114
113
|
const uploadResponse = await fetch(signedURL, {
|
|
115
114
|
method: "PUT",
|
|
116
|
-
body:
|
|
115
|
+
body: uploadBuffer,
|
|
117
116
|
headers: {
|
|
118
117
|
"Content-Type": mimeType,
|
|
119
118
|
"Content-Length": contentBytes.length.toString()
|
package/dist/index.cjs
CHANGED
|
@@ -3708,11 +3708,26 @@ const WebhookVersions = {
|
|
|
3708
3708
|
* Parameters for verifying a webhook signature
|
|
3709
3709
|
*/
|
|
3710
3710
|
const VerifyWebhookParamsSchema = zod_v3.z.object({
|
|
3711
|
-
id: zod_v3.z.string(
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3711
|
+
id: zod_v3.z.string({
|
|
3712
|
+
required_error: "Missing 'id' parameter. Pass the value of the 'webhook-id' HTTP header.",
|
|
3713
|
+
invalid_type_error: "Invalid 'id' parameter. Expected string from 'webhook-id' HTTP header."
|
|
3714
|
+
}),
|
|
3715
|
+
payload: zod_v3.z.string({
|
|
3716
|
+
required_error: "Missing 'payload' parameter. Pass the raw request body as a string (do not parse it).",
|
|
3717
|
+
invalid_type_error: "Invalid 'payload' parameter. Expected string (raw request body)."
|
|
3718
|
+
}),
|
|
3719
|
+
secret: zod_v3.z.string({
|
|
3720
|
+
required_error: "Missing 'secret' parameter. Get your webhook secret from the Composio dashboard.",
|
|
3721
|
+
invalid_type_error: "Invalid 'secret' parameter. Expected string."
|
|
3722
|
+
}),
|
|
3723
|
+
signature: zod_v3.z.string({
|
|
3724
|
+
required_error: "Missing 'signature' parameter. Pass the value of the 'webhook-signature' HTTP header.",
|
|
3725
|
+
invalid_type_error: "Invalid 'signature' parameter. Expected string from 'webhook-signature' HTTP header."
|
|
3726
|
+
}),
|
|
3727
|
+
timestamp: zod_v3.z.string({
|
|
3728
|
+
required_error: "Missing 'timestamp' parameter. Pass the value of the 'webhook-timestamp' HTTP header.",
|
|
3729
|
+
invalid_type_error: "Invalid 'timestamp' parameter. Expected string from 'webhook-timestamp' HTTP header."
|
|
3730
|
+
}),
|
|
3716
3731
|
tolerance: zod_v3.z.number().optional().default(300)
|
|
3717
3732
|
});
|
|
3718
3733
|
|
|
@@ -4006,6 +4021,16 @@ function timingSafeEqual(a, b) {
|
|
|
4006
4021
|
//#endregion
|
|
4007
4022
|
//#region src/models/Triggers.ts
|
|
4008
4023
|
/**
|
|
4024
|
+
* Safely converts a value to a string, returning the default if the value is null, undefined, or empty.
|
|
4025
|
+
* This prevents runtime crashes when calling string methods like `.toLowerCase()` on non-string values.
|
|
4026
|
+
* @private
|
|
4027
|
+
*/
|
|
4028
|
+
const toStringOrDefault = (value, defaultValue) => {
|
|
4029
|
+
if (value === null || value === void 0) return defaultValue;
|
|
4030
|
+
const str = String(value);
|
|
4031
|
+
return str.length > 0 ? str : defaultValue;
|
|
4032
|
+
};
|
|
4033
|
+
/**
|
|
4009
4034
|
* Trigger (Instance) class
|
|
4010
4035
|
* /api/v3/trigger_instances
|
|
4011
4036
|
*
|
|
@@ -4239,7 +4264,7 @@ var Triggers = class {
|
|
|
4239
4264
|
require_buffer.logger_default.debug("🔄 Subscribing to triggers with filters: ", JSON.stringify(filters, null, 2));
|
|
4240
4265
|
await this.pusherService.subscribe((_data) => {
|
|
4241
4266
|
require_buffer.logger_default.debug("Received raw trigger data", JSON.stringify(_data, null, 2));
|
|
4242
|
-
const parsedData =
|
|
4267
|
+
const parsedData = this.parsePusherPayload(_data);
|
|
4243
4268
|
if (this.shouldSendTriggerAfterFilters(parsedFilters.data, parsedData)) try {
|
|
4244
4269
|
fn(parsedData);
|
|
4245
4270
|
} catch (error) {
|
|
@@ -4249,6 +4274,86 @@ var Triggers = class {
|
|
|
4249
4274
|
});
|
|
4250
4275
|
}
|
|
4251
4276
|
/**
|
|
4277
|
+
* Tries to parse data as V1, V2, or V3 webhook payload format.
|
|
4278
|
+
* Returns the parsed result with version info, or null if no format matches.
|
|
4279
|
+
* Also returns any schema validation errors for debugging purposes.
|
|
4280
|
+
* @private
|
|
4281
|
+
*/
|
|
4282
|
+
tryParseVersionedPayload(data) {
|
|
4283
|
+
const v3Result = WebhookPayloadV3Schema.safeParse(data);
|
|
4284
|
+
if (v3Result.success) return {
|
|
4285
|
+
ok: true,
|
|
4286
|
+
version: WebhookVersions.V3,
|
|
4287
|
+
rawPayload: v3Result.data,
|
|
4288
|
+
normalizedPayload: this.normalizeV3Payload(v3Result.data)
|
|
4289
|
+
};
|
|
4290
|
+
const v2Result = WebhookPayloadV2Schema.safeParse(data);
|
|
4291
|
+
if (v2Result.success) return {
|
|
4292
|
+
ok: true,
|
|
4293
|
+
version: WebhookVersions.V2,
|
|
4294
|
+
rawPayload: v2Result.data,
|
|
4295
|
+
normalizedPayload: this.normalizeV2Payload(v2Result.data)
|
|
4296
|
+
};
|
|
4297
|
+
const v1Result = WebhookPayloadV1Schema.safeParse(data);
|
|
4298
|
+
if (v1Result.success) return {
|
|
4299
|
+
ok: true,
|
|
4300
|
+
version: WebhookVersions.V1,
|
|
4301
|
+
rawPayload: v1Result.data,
|
|
4302
|
+
normalizedPayload: this.normalizeV1Payload(v1Result.data)
|
|
4303
|
+
};
|
|
4304
|
+
return {
|
|
4305
|
+
ok: false,
|
|
4306
|
+
v1Error: v1Result.error.message,
|
|
4307
|
+
v2Error: v2Result.error.message,
|
|
4308
|
+
v3Error: v3Result.error.message
|
|
4309
|
+
};
|
|
4310
|
+
}
|
|
4311
|
+
/**
|
|
4312
|
+
* Parses incoming Pusher payload, supporting V1, V2, V3, and legacy TriggerData formats.
|
|
4313
|
+
* @private
|
|
4314
|
+
*/
|
|
4315
|
+
parsePusherPayload(data) {
|
|
4316
|
+
const versionedResult = this.tryParseVersionedPayload(data);
|
|
4317
|
+
if (versionedResult.ok) {
|
|
4318
|
+
require_buffer.logger_default.debug(`Parsed Pusher payload as ${versionedResult.version} format`);
|
|
4319
|
+
return versionedResult.normalizedPayload;
|
|
4320
|
+
}
|
|
4321
|
+
const legacyData = data;
|
|
4322
|
+
if (legacyData.metadata?.nanoId && legacyData.appName) {
|
|
4323
|
+
require_buffer.logger_default.debug("Parsed Pusher payload as legacy TriggerData format");
|
|
4324
|
+
return transformIncomingTriggerPayload(legacyData);
|
|
4325
|
+
}
|
|
4326
|
+
require_buffer.logger_default.warn("Unknown Pusher payload format. Payload keys: " + Object.keys(data).join(", "));
|
|
4327
|
+
const id = toStringOrDefault(data.id, toStringOrDefault(data.trigger_id, "unknown"));
|
|
4328
|
+
const uuid = toStringOrDefault(data.uuid, toStringOrDefault(data.id, "unknown"));
|
|
4329
|
+
const triggerSlug = toStringOrDefault(data.triggerSlug, toStringOrDefault(data.trigger_name, "UNKNOWN"));
|
|
4330
|
+
const toolkitSlug = toStringOrDefault(data.toolkitSlug, toStringOrDefault(data.appName, "UNKNOWN"));
|
|
4331
|
+
return {
|
|
4332
|
+
id,
|
|
4333
|
+
uuid,
|
|
4334
|
+
triggerSlug,
|
|
4335
|
+
toolkitSlug,
|
|
4336
|
+
userId: toStringOrDefault(data.userId, ""),
|
|
4337
|
+
payload: data.payload || data,
|
|
4338
|
+
originalPayload: data.originalPayload || data,
|
|
4339
|
+
metadata: {
|
|
4340
|
+
id,
|
|
4341
|
+
uuid,
|
|
4342
|
+
triggerSlug,
|
|
4343
|
+
toolkitSlug,
|
|
4344
|
+
triggerConfig: {},
|
|
4345
|
+
connectedAccount: {
|
|
4346
|
+
id: "",
|
|
4347
|
+
uuid: "",
|
|
4348
|
+
authConfigId: "",
|
|
4349
|
+
authConfigUUID: "",
|
|
4350
|
+
userId: "",
|
|
4351
|
+
status: "ACTIVE"
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4354
|
+
};
|
|
4355
|
+
}
|
|
4356
|
+
/**
|
|
4252
4357
|
* Unsubscribe from all the triggers
|
|
4253
4358
|
*
|
|
4254
4359
|
* @returns {Promise<void>}
|
|
@@ -4314,7 +4419,19 @@ var Triggers = class {
|
|
|
4314
4419
|
*/
|
|
4315
4420
|
async verifyWebhook(params) {
|
|
4316
4421
|
const parsedParams = VerifyWebhookParamsSchema.safeParse(params);
|
|
4317
|
-
if (!parsedParams.success)
|
|
4422
|
+
if (!parsedParams.success) {
|
|
4423
|
+
const missingParams = parsedParams.error.issues.filter((issue) => issue.code === "invalid_type" && issue.received === "undefined").map((issue) => {
|
|
4424
|
+
const paramName = issue.path[0];
|
|
4425
|
+
const headerName = {
|
|
4426
|
+
id: "webhook-id",
|
|
4427
|
+
timestamp: "webhook-timestamp",
|
|
4428
|
+
signature: "webhook-signature"
|
|
4429
|
+
}[paramName];
|
|
4430
|
+
return headerName ? `'${paramName}' (from '${headerName}' header)` : `'${paramName}'`;
|
|
4431
|
+
});
|
|
4432
|
+
if (missingParams.length > 0) throw new ValidationError(`Missing required parameters: ${missingParams.join(", ")}. Extract these values from the HTTP request headers and body.`, { cause: parsedParams.error });
|
|
4433
|
+
throw new ValidationError("Invalid parameters passed to verifyWebhook", { cause: parsedParams.error });
|
|
4434
|
+
}
|
|
4318
4435
|
const { payload, signature, secret, id: webhookId, timestamp: webhookTimestamp, tolerance } = parsedParams.data;
|
|
4319
4436
|
if (tolerance > 0) this.validateWebhookTimestamp(webhookTimestamp, tolerance);
|
|
4320
4437
|
await this.verifyWebhookSignature(webhookId, webhookTimestamp, payload, signature, secret);
|
|
@@ -4336,28 +4453,16 @@ var Triggers = class {
|
|
|
4336
4453
|
} catch (error) {
|
|
4337
4454
|
throw new ComposioWebhookPayloadError("Failed to parse webhook payload as JSON", { cause: error });
|
|
4338
4455
|
}
|
|
4339
|
-
const
|
|
4340
|
-
if (
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
};
|
|
4345
|
-
const v2Result = WebhookPayloadV2Schema.safeParse(jsonPayload);
|
|
4346
|
-
if (v2Result.success) return {
|
|
4347
|
-
version: WebhookVersions.V2,
|
|
4348
|
-
rawPayload: v2Result.data,
|
|
4349
|
-
normalizedPayload: this.normalizeV2Payload(v2Result.data)
|
|
4350
|
-
};
|
|
4351
|
-
const v1Result = WebhookPayloadV1Schema.safeParse(jsonPayload);
|
|
4352
|
-
if (v1Result.success) return {
|
|
4353
|
-
version: WebhookVersions.V1,
|
|
4354
|
-
rawPayload: v1Result.data,
|
|
4355
|
-
normalizedPayload: this.normalizeV1Payload(v1Result.data)
|
|
4356
|
-
};
|
|
4456
|
+
const result = this.tryParseVersionedPayload(jsonPayload);
|
|
4457
|
+
if (result.ok) {
|
|
4458
|
+
const { ok, ...rest } = result;
|
|
4459
|
+
return rest;
|
|
4460
|
+
}
|
|
4461
|
+
const { v1Error, v2Error, v3Error } = result;
|
|
4357
4462
|
throw new ComposioWebhookPayloadError("Webhook payload does not match any known version (V1, V2, or V3). Please ensure you are using a supported webhook payload format.", { cause: {
|
|
4358
|
-
v1Error
|
|
4359
|
-
v2Error
|
|
4360
|
-
v3Error
|
|
4463
|
+
v1Error,
|
|
4464
|
+
v2Error,
|
|
4465
|
+
v3Error
|
|
4361
4466
|
} });
|
|
4362
4467
|
}
|
|
4363
4468
|
/**
|
|
@@ -5479,7 +5584,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
5479
5584
|
|
|
5480
5585
|
//#endregion
|
|
5481
5586
|
//#region package.json
|
|
5482
|
-
var version = "0.6.
|
|
5587
|
+
var version = "0.6.2";
|
|
5483
5588
|
|
|
5484
5589
|
//#endregion
|
|
5485
5590
|
//#region src/utils/session.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as McpUpdateResponse, $t as SessionExecuteMetaModifiers, A as MCPServer, An as ToolkitLatestVersionSchema, At as Oauth1InitiatedConnectionData, B as MCPToolkitConfig, Bt as Oauth2FailedConnectionData, C as MCPGenerateURLParams, Cn as ToolListResponseSchema, Ct as Oauth1ConnectionDataSchema, D as MCPInstanceParams, Dn as ToolSchema, Dt as Oauth1FailedConnectionDataSchema, E as MCPGetServerParamsSchema, En as ToolRetrievalOptions, Et as Oauth1FailedConnectionData, F as MCPServerSchema, Fn as ToolkitVersionSchema, Ft as Oauth2ActiveConnectionDataSchema, G as McpListResponse, Gt as Oauth2InitiatedConnectionDataSchema, H as MCPToolkitConfigsArraySchema, Ht as Oauth2InactiveConnectionData, I as MCPServerUpdateParams, In as ToolkitVersions, It as Oauth2ConnectionData, J as McpRetrieveResponseSchema, Jt as RedirectableAuthSchemeSchema, K as McpListResponseSchema, Kt as Oauth2InitiatingConnectionData, L as MCPServerUpdateParamsSchema, Ln as ToolkitVersionsSchema, Lt as Oauth2ConnectionDataSchema, M as MCPServerCreateResponseSchema, Mn as ToolkitVersion, Mt as Oauth1InitiatingConnectionData, N as MCPServerListResponse, Nn as ToolkitVersionParam, Nt as Oauth1InitiatingConnectionDataSchema, O as MCPMultiAppServer, On as Toolkit, Ot as Oauth1InactiveConnectionData, P as MCPServerListResponseSchema, Pn as ToolkitVersionParamSchema, Pt as Oauth2ActiveConnectionData, Q as McpToolkitConnectionStatus, Qt as ProviderOptions, R as MCPSingleAppServer, Rt as Oauth2ExpiredConnectionData, S as MCPCreateMethodResponse, Sn as ToolListResponse, St as Oauth1ConnectionData, T as MCPGetServerParams, Tn as ToolProxyParamsSchema, Tt as Oauth1ExpiredConnectionDataSchema, U as McpDeleteResponse, Ut as Oauth2InactiveConnectionDataSchema, V as MCPToolkitConfigSchema, Vt as Oauth2FailedConnectionDataSchema, W as McpDeleteResponseSchema, Wt as Oauth2InitiatedConnectionData, X as McpServerGetResponse, Xt as ExecuteToolModifiers, Y as McpServerCreateResponse, Yt as AgenticToolOptions, Z as McpServerUrlInfo, Zt as MetaToolArguments, _ as GenerateURLResponse, _n as ToolExecuteResponse, _t as CustomOauth1ConnectionDataSchema, a as ComposioGenerateURLParamsSchema, an as beforeExecuteMetaModifier, at as ExecuteToolFnOptions, b as MCPAuthOptions, bn as ToolListParams, bt as Oauth1ActiveConnectionData, c as ComposioMcpListResponseSchema, cn as CustomAuthParamsSchema, ct as BaseConnectionFields, d as ConnectionStatus, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, et as McpUpdateResponseSchema, f as CustomCreateResponse, fn as Tool, ft as ConnectionStatusEnum, g as GenerateURLParamsSchema, gn as ToolExecuteParamsSchema, gt as CustomOauth1ConnectionData, h as GenerateURLParams, hn as ToolExecuteParams, ht as CustomConnectionDataSchema, i as ComposioCustomCreateResponseSchema, in as afterExecuteModifier, it as ExecuteToolFn, j as MCPServerCreateResponse, jn as ToolkitSchema, jt as Oauth1InitiatedConnectionDataSchema, k as MCPMultiAppServerSchema, kn as ToolkitLatestVersion, kt as Oauth1InactiveConnectionDataSchema, l as ComposioMcpRetrieveResponseSchema, ln as JSONSchemaProperty, lt as BillcomAuthConnectionDataSchema, m as CustomCreateResponseValidated, mn as ToolExecuteMetaParamsSchema, mt as CustomConnectionData, n as BaseComposioProvider, nn as TransformToolSchemaModifier, nt as McpUrlResponseCamelCase, o as ComposioGenerateURLResponseSchema, on as beforeExecuteModifier, ot as GlobalExecuteToolFn, p as CustomCreateResponseSchema, pn as ToolExecuteMetaParams, pt as ConnectionStatuses, q as McpRetrieveResponse, qt as Oauth2InitiatingConnectionDataSchema, r as BaseNonAgenticProvider, rn as afterExecuteMetaModifier, rt as McpUserConnectionStatus, s as ComposioMcpDeleteResponseSchema, sn as CustomAuthParams, st as Provider, t as BaseAgenticProvider, tn as ToolOptions, tt as McpUrlResponse, u as ComposioMcpUpdateResponseSchema, un as JSONSchemaPropertySchema, ut as ConnectionData, v as GenerateURLResponseSchema, vn as ToolExecuteResponseSchema, vt as CustomOauth2ConnectionData, w as MCPGenerateURLParamsSchema, wn as ToolProxyParams, wt as Oauth1ExpiredConnectionData, x as MCPAuthOptionsSchema, xn as ToolListParamsSchema, xt as Oauth1ActiveConnectionDataSchema, y as GenerateURLResponseValidated, yn as ToolList, yt as CustomOauth2ConnectionDataSchema, z as MCPSingleAppServerSchema, zt as Oauth2ExpiredConnectionDataSchema } from "./BaseProvider-
|
|
2
|
-
import { $ as TriggerInstanceUpsertParamsSchema, $n as InputParamsSchema, $t as ConnectedAccountAuthConfigSchema, A as ToolkitConnectionStateSchema, An as ToolkitAuthConfigDetails, At as AuthConfigListResponse, B as TriggerInstanceListActiveParams, Bn as ToolkitMangedByEnumSchema, Bt as AuthDefaultConfigUpdateParamsSchema, C as ToolRouterToolkitsOptions, Cn as DefaultCreateConnectedAccountParamsSchema, Ct as WebhookPayloadV3, D as ToolRouterToolsParam, Dn as ToolKitListResponseSchema, Dt as AuthConfigCreationToolAccessConfigSchema, E as ToolRouterToolsFn, En as ToolKitListResponse, Et as WebhookVersions, F as IncomingTriggerPayload, Fn as ToolkitAuthFieldsResponseSchema, Ft as AuthConfigType, G as TriggerInstanceListActiveResponseSchema, Gn as ToolkitSortByEnum, Gt as CreateAuthConfigParamsSchema, H as TriggerInstanceListActiveResponse, Hn as ToolkitRetrieveCategoriesResponseSchema, Ht as AuthSchemeType, I as IncomingTriggerPayloadSchema, In as ToolkitCategory, It as AuthConfigTypes, J as TriggerInstanceManageUpdateParams, Jn as CustomToolInputParameter, Jt as CreateComposioManagedAuthConfigParamsSchema, K as TriggerInstanceManageDeleteResponse, Kn as ToolkitSortByEnumSchema, Kt as CreateAuthConfigResponse, L as TriggerData, Ln as ToolkitCategorySchema, Lt as AuthConfigUpdateParams, M as ToolkitConnectionsDetailsSchema, Mn as ToolkitAuthField, Mt as AuthConfigRetrieveResponse, N as OpenAIProvider, Nn as ToolkitAuthFieldSchema, Nt as AuthConfigRetrieveResponseSchema, O as ToolRouterToolsParamSchema, On as ToolKitMeta, Ot as AuthConfigListParams, P as MCP, Pn as ToolkitAuthFieldsResponse, Pt as AuthConfigToolAccessConfigSchema, Q as TriggerInstanceUpsertParams, Qn as ExecuteMetadata, Qt as ConnectedAccountAuthConfig, R as TriggerEvent, Rn as ToolkitListParams, Rt as AuthConfigUpdateParamsSchema, S as ToolRouterToolkitsFn, Sn as CreateConnectedAccountResponseSchema, St as WebhookPayloadV2Schema, T as ToolRouterToolkitsParamSchema, Tn as ToolKitItemSchema, Tt as WebhookVersion, U as TriggerInstanceListActiveResponseItem, Un as ToolkitRetrieveResponse, Ut as AuthSchemeTypes, V as TriggerInstanceListActiveParamsSchema, Vn as ToolkitRetrieveCategoriesResponse, Vt as AuthSchemeEnum, W as TriggerInstanceListActiveResponseItemSchema, Wn as ToolkitRetrieveResponseSchema, Wt as CreateAuthConfigParams, X as TriggerInstanceManageUpdateResponse, Xn as CustomToolRegistry, Xt as ConnectionRequest, Y as TriggerInstanceManageUpdateParamsSchema, Yn as CustomToolOptions, Yt as CreateCustomAuthConfigParamsSchema, Z as TriggerInstanceManageUpdateResponseSchema, Zn as CustomToolRegistryItem, Zt as ConnectionRequestState, _ as ToolRouterSessionExperimental, _n as CreateConnectedAccountOptions, _t as WebhookPayload, a as ToolRouterAuthorizeFn, an as ConnectedAccountRefreshOptions, at as TriggerSubscribeParamSchema, b as ToolRouterToolkitsDisabledConfigSchema, bn as CreateConnectedAccountParamsSchema, bt as WebhookPayloadV1Schema, c as ToolRouterConfigTagsSchema, cn as ConnectedAccountRetrieveResponseSchema, ct as TriggerTypeSchema, d as ToolRouterCreateSessionConfig, dn as ConnectedAccountStatusSchema, dt as TriggersTypeListResponse, en as ConnectedAccountListParams, et as TriggerInstanceUpsertResponse, f as ToolRouterCreateSessionConfigSchema, fn as ConnectedAccountStatuses, ft as TriggersTypeListResponseSchema, g as ToolRouterSession, gn as CreateConnectedAccountLinkResponseSchema, gt as VerifyWebhookResult, h as ToolRouterManageConnectionsConfigSchema, hn as CreateConnectedAccountLinkResponse, ht as VerifyWebhookParamsSchema, i as MCPServerTypeSchema, in as ConnectedAccountListResponseSchema, it as TriggerStatuses, j as ToolkitConnectionsDetails, jn as ToolkitAuthConfigDetailsSchema, jt as AuthConfigListResponseSchema, k as ToolkitConnectionState, kn as ToolKitMetaSchema, kt as AuthConfigListParamsSchema, l as ToolRouterConfigTools, ln as ConnectedAccountStatus, lt as TriggersTypeListParams, m as ToolRouterMCPServerConfigSchema, mn as CreateConnectedAccountLinkOptionsSchema, mt as VerifyWebhookParams, nn as ConnectedAccountListResponse, nt as TriggerStatusEnum, o as ToolRouterConfigManageConnectionsSchema, on as ConnectedAccountRefreshOptionsSchema, ot as TriggerSubscribeParams, p as ToolRouterMCPServerConfig, pn as CreateConnectedAccountLinkOptions, pt as TriggersTypeRetrieveResponse, q as TriggerInstanceManageDeleteResponseSchema, qn as ToolkitsListParamsSchema, qt as CreateAuthConfigResponseSchema, r as MCPServerType, rn as ConnectedAccountListResponseItem, rt as TriggerStatusType, s as ToolRouterConfigTags, sn as ConnectedAccountRetrieveResponse, st as TriggerType, t as Composio, tn as ConnectedAccountListParamsSchema, tt as TriggerInstanceUpsertResponseSchema, u as ToolRouterConfigToolsSchema, un as ConnectedAccountStatusEnum, ut as TriggersTypeListParamsSchema, v as ToolRouterTagsEnableDisableSchema, vn as CreateConnectedAccountOptionsSchema, vt as WebhookPayloadSchema, w as ToolRouterToolkitsOptionsSchema, wn as ToolKitItem, wt as WebhookPayloadV3Schema, x as ToolRouterToolkitsEnabledConfigSchema, xn as CreateConnectedAccountResponse, xt as WebhookPayloadV2, y as ToolRouterTagsParamSchema, yn as CreateConnectedAccountParams, yt as WebhookPayloadV1, z as TriggerEventData, zn as ToolkitMangedByEnum, zt as AuthCustomConfigUpdateParamsSchema } from "./composio-
|
|
1
|
+
import { $ as McpUpdateResponse, $t as SessionExecuteMetaModifiers, A as MCPServer, An as ToolkitLatestVersionSchema, At as Oauth1InitiatedConnectionData, B as MCPToolkitConfig, Bt as Oauth2FailedConnectionData, C as MCPGenerateURLParams, Cn as ToolListResponseSchema, Ct as Oauth1ConnectionDataSchema, D as MCPInstanceParams, Dn as ToolSchema, Dt as Oauth1FailedConnectionDataSchema, E as MCPGetServerParamsSchema, En as ToolRetrievalOptions, Et as Oauth1FailedConnectionData, F as MCPServerSchema, Fn as ToolkitVersionSchema, Ft as Oauth2ActiveConnectionDataSchema, G as McpListResponse, Gt as Oauth2InitiatedConnectionDataSchema, H as MCPToolkitConfigsArraySchema, Ht as Oauth2InactiveConnectionData, I as MCPServerUpdateParams, In as ToolkitVersions, It as Oauth2ConnectionData, J as McpRetrieveResponseSchema, Jt as RedirectableAuthSchemeSchema, K as McpListResponseSchema, Kt as Oauth2InitiatingConnectionData, L as MCPServerUpdateParamsSchema, Ln as ToolkitVersionsSchema, Lt as Oauth2ConnectionDataSchema, M as MCPServerCreateResponseSchema, Mn as ToolkitVersion, Mt as Oauth1InitiatingConnectionData, N as MCPServerListResponse, Nn as ToolkitVersionParam, Nt as Oauth1InitiatingConnectionDataSchema, O as MCPMultiAppServer, On as Toolkit, Ot as Oauth1InactiveConnectionData, P as MCPServerListResponseSchema, Pn as ToolkitVersionParamSchema, Pt as Oauth2ActiveConnectionData, Q as McpToolkitConnectionStatus, Qt as ProviderOptions, R as MCPSingleAppServer, Rt as Oauth2ExpiredConnectionData, S as MCPCreateMethodResponse, Sn as ToolListResponse, St as Oauth1ConnectionData, T as MCPGetServerParams, Tn as ToolProxyParamsSchema, Tt as Oauth1ExpiredConnectionDataSchema, U as McpDeleteResponse, Ut as Oauth2InactiveConnectionDataSchema, V as MCPToolkitConfigSchema, Vt as Oauth2FailedConnectionDataSchema, W as McpDeleteResponseSchema, Wt as Oauth2InitiatedConnectionData, X as McpServerGetResponse, Xt as ExecuteToolModifiers, Y as McpServerCreateResponse, Yt as AgenticToolOptions, Z as McpServerUrlInfo, Zt as MetaToolArguments, _ as GenerateURLResponse, _n as ToolExecuteResponse, _t as CustomOauth1ConnectionDataSchema, a as ComposioGenerateURLParamsSchema, an as beforeExecuteMetaModifier, at as ExecuteToolFnOptions, b as MCPAuthOptions, bn as ToolListParams, bt as Oauth1ActiveConnectionData, c as ComposioMcpListResponseSchema, cn as CustomAuthParamsSchema, ct as BaseConnectionFields, d as ConnectionStatus, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, et as McpUpdateResponseSchema, f as CustomCreateResponse, fn as Tool, ft as ConnectionStatusEnum, g as GenerateURLParamsSchema, gn as ToolExecuteParamsSchema, gt as CustomOauth1ConnectionData, h as GenerateURLParams, hn as ToolExecuteParams, ht as CustomConnectionDataSchema, i as ComposioCustomCreateResponseSchema, in as afterExecuteModifier, it as ExecuteToolFn, j as MCPServerCreateResponse, jn as ToolkitSchema, jt as Oauth1InitiatedConnectionDataSchema, k as MCPMultiAppServerSchema, kn as ToolkitLatestVersion, kt as Oauth1InactiveConnectionDataSchema, l as ComposioMcpRetrieveResponseSchema, ln as JSONSchemaProperty, lt as BillcomAuthConnectionDataSchema, m as CustomCreateResponseValidated, mn as ToolExecuteMetaParamsSchema, mt as CustomConnectionData, n as BaseComposioProvider, nn as TransformToolSchemaModifier, nt as McpUrlResponseCamelCase, o as ComposioGenerateURLResponseSchema, on as beforeExecuteModifier, ot as GlobalExecuteToolFn, p as CustomCreateResponseSchema, pn as ToolExecuteMetaParams, pt as ConnectionStatuses, q as McpRetrieveResponse, qt as Oauth2InitiatingConnectionDataSchema, r as BaseNonAgenticProvider, rn as afterExecuteMetaModifier, rt as McpUserConnectionStatus, s as ComposioMcpDeleteResponseSchema, sn as CustomAuthParams, st as Provider, t as BaseAgenticProvider, tn as ToolOptions, tt as McpUrlResponse, u as ComposioMcpUpdateResponseSchema, un as JSONSchemaPropertySchema, ut as ConnectionData, v as GenerateURLResponseSchema, vn as ToolExecuteResponseSchema, vt as CustomOauth2ConnectionData, w as MCPGenerateURLParamsSchema, wn as ToolProxyParams, wt as Oauth1ExpiredConnectionData, x as MCPAuthOptionsSchema, xn as ToolListParamsSchema, xt as Oauth1ActiveConnectionDataSchema, y as GenerateURLResponseValidated, yn as ToolList, yt as CustomOauth2ConnectionDataSchema, z as MCPSingleAppServerSchema, zt as Oauth2ExpiredConnectionDataSchema } from "./BaseProvider-X7JCCvcK.cjs";
|
|
2
|
+
import { $ as TriggerInstanceUpsertParamsSchema, $n as InputParamsSchema, $t as ConnectedAccountAuthConfigSchema, A as ToolkitConnectionStateSchema, An as ToolkitAuthConfigDetails, At as AuthConfigListResponse, B as TriggerInstanceListActiveParams, Bn as ToolkitMangedByEnumSchema, Bt as AuthDefaultConfigUpdateParamsSchema, C as ToolRouterToolkitsOptions, Cn as DefaultCreateConnectedAccountParamsSchema, Ct as WebhookPayloadV3, D as ToolRouterToolsParam, Dn as ToolKitListResponseSchema, Dt as AuthConfigCreationToolAccessConfigSchema, E as ToolRouterToolsFn, En as ToolKitListResponse, Et as WebhookVersions, F as IncomingTriggerPayload, Fn as ToolkitAuthFieldsResponseSchema, Ft as AuthConfigType, G as TriggerInstanceListActiveResponseSchema, Gn as ToolkitSortByEnum, Gt as CreateAuthConfigParamsSchema, H as TriggerInstanceListActiveResponse, Hn as ToolkitRetrieveCategoriesResponseSchema, Ht as AuthSchemeType, I as IncomingTriggerPayloadSchema, In as ToolkitCategory, It as AuthConfigTypes, J as TriggerInstanceManageUpdateParams, Jn as CustomToolInputParameter, Jt as CreateComposioManagedAuthConfigParamsSchema, K as TriggerInstanceManageDeleteResponse, Kn as ToolkitSortByEnumSchema, Kt as CreateAuthConfigResponse, L as TriggerData, Ln as ToolkitCategorySchema, Lt as AuthConfigUpdateParams, M as ToolkitConnectionsDetailsSchema, Mn as ToolkitAuthField, Mt as AuthConfigRetrieveResponse, N as OpenAIProvider, Nn as ToolkitAuthFieldSchema, Nt as AuthConfigRetrieveResponseSchema, O as ToolRouterToolsParamSchema, On as ToolKitMeta, Ot as AuthConfigListParams, P as MCP, Pn as ToolkitAuthFieldsResponse, Pt as AuthConfigToolAccessConfigSchema, Q as TriggerInstanceUpsertParams, Qn as ExecuteMetadata, Qt as ConnectedAccountAuthConfig, R as TriggerEvent, Rn as ToolkitListParams, Rt as AuthConfigUpdateParamsSchema, S as ToolRouterToolkitsFn, Sn as CreateConnectedAccountResponseSchema, St as WebhookPayloadV2Schema, T as ToolRouterToolkitsParamSchema, Tn as ToolKitItemSchema, Tt as WebhookVersion, U as TriggerInstanceListActiveResponseItem, Un as ToolkitRetrieveResponse, Ut as AuthSchemeTypes, V as TriggerInstanceListActiveParamsSchema, Vn as ToolkitRetrieveCategoriesResponse, Vt as AuthSchemeEnum, W as TriggerInstanceListActiveResponseItemSchema, Wn as ToolkitRetrieveResponseSchema, Wt as CreateAuthConfigParams, X as TriggerInstanceManageUpdateResponse, Xn as CustomToolRegistry, Xt as ConnectionRequest, Y as TriggerInstanceManageUpdateParamsSchema, Yn as CustomToolOptions, Yt as CreateCustomAuthConfigParamsSchema, Z as TriggerInstanceManageUpdateResponseSchema, Zn as CustomToolRegistryItem, Zt as ConnectionRequestState, _ as ToolRouterSessionExperimental, _n as CreateConnectedAccountOptions, _t as WebhookPayload, a as ToolRouterAuthorizeFn, an as ConnectedAccountRefreshOptions, at as TriggerSubscribeParamSchema, b as ToolRouterToolkitsDisabledConfigSchema, bn as CreateConnectedAccountParamsSchema, bt as WebhookPayloadV1Schema, c as ToolRouterConfigTagsSchema, cn as ConnectedAccountRetrieveResponseSchema, ct as TriggerTypeSchema, d as ToolRouterCreateSessionConfig, dn as ConnectedAccountStatusSchema, dt as TriggersTypeListResponse, en as ConnectedAccountListParams, et as TriggerInstanceUpsertResponse, f as ToolRouterCreateSessionConfigSchema, fn as ConnectedAccountStatuses, ft as TriggersTypeListResponseSchema, g as ToolRouterSession, gn as CreateConnectedAccountLinkResponseSchema, gt as VerifyWebhookResult, h as ToolRouterManageConnectionsConfigSchema, hn as CreateConnectedAccountLinkResponse, ht as VerifyWebhookParamsSchema, i as MCPServerTypeSchema, in as ConnectedAccountListResponseSchema, it as TriggerStatuses, j as ToolkitConnectionsDetails, jn as ToolkitAuthConfigDetailsSchema, jt as AuthConfigListResponseSchema, k as ToolkitConnectionState, kn as ToolKitMetaSchema, kt as AuthConfigListParamsSchema, l as ToolRouterConfigTools, ln as ConnectedAccountStatus, lt as TriggersTypeListParams, m as ToolRouterMCPServerConfigSchema, mn as CreateConnectedAccountLinkOptionsSchema, mt as VerifyWebhookParams, nn as ConnectedAccountListResponse, nt as TriggerStatusEnum, o as ToolRouterConfigManageConnectionsSchema, on as ConnectedAccountRefreshOptionsSchema, ot as TriggerSubscribeParams, p as ToolRouterMCPServerConfig, pn as CreateConnectedAccountLinkOptions, pt as TriggersTypeRetrieveResponse, q as TriggerInstanceManageDeleteResponseSchema, qn as ToolkitsListParamsSchema, qt as CreateAuthConfigResponseSchema, r as MCPServerType, rn as ConnectedAccountListResponseItem, rt as TriggerStatusType, s as ToolRouterConfigTags, sn as ConnectedAccountRetrieveResponse, st as TriggerType, t as Composio, tn as ConnectedAccountListParamsSchema, tt as TriggerInstanceUpsertResponseSchema, u as ToolRouterConfigToolsSchema, un as ConnectedAccountStatusEnum, ut as TriggersTypeListParamsSchema, v as ToolRouterTagsEnableDisableSchema, vn as CreateConnectedAccountOptionsSchema, vt as WebhookPayloadSchema, w as ToolRouterToolkitsOptionsSchema, wn as ToolKitItem, wt as WebhookPayloadV3Schema, x as ToolRouterToolkitsEnabledConfigSchema, xn as CreateConnectedAccountResponse, xt as WebhookPayloadV2, y as ToolRouterTagsParamSchema, yn as CreateConnectedAccountParams, yt as WebhookPayloadV1, z as TriggerEventData, zn as ToolkitMangedByEnum, zt as AuthCustomConfigUpdateParamsSchema } from "./composio-uGEfnO6v.cjs";
|
|
3
3
|
import { n as FileUploadData, t as FileDownloadData } from "./files.types-nK6eTNnc.cjs";
|
|
4
4
|
import "node:module";
|
|
5
5
|
import { z } from "zod/v3";
|