@composio/core 0.2.5 → 0.2.7-alpha.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/dist/index.cjs +601 -99
- package/dist/index.d.cts +41460 -8981
- package/dist/index.d.ts +41460 -8981
- package/dist/index.js +586 -95
- 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.d.ts +136 -0
- package/generated/index.js +34 -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 +4 -4
package/dist/index.cjs
CHANGED
|
@@ -112,6 +112,7 @@ __export(index_exports, {
|
|
|
112
112
|
MCPServerCreateResponseSchema: () => MCPServerCreateResponseSchema,
|
|
113
113
|
MCPServerListResponseSchema: () => MCPServerListResponseSchema,
|
|
114
114
|
MCPServerSchema: () => MCPServerSchema,
|
|
115
|
+
MCPServerTypeSchema: () => MCPServerTypeSchema,
|
|
115
116
|
MCPServerUpdateParamsSchema: () => MCPServerUpdateParamsSchema,
|
|
116
117
|
MCPSingleAppServerSchema: () => MCPSingleAppServerSchema,
|
|
117
118
|
MCPToolkitConfigSchema: () => MCPToolkitConfigSchema,
|
|
@@ -146,15 +147,25 @@ __export(index_exports, {
|
|
|
146
147
|
ToolListParamsSchema: () => ToolListParamsSchema,
|
|
147
148
|
ToolListResponseSchema: () => ToolListResponseSchema,
|
|
148
149
|
ToolProxyParamsSchema: () => ToolProxyParamsSchema,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
ToolRouterConfigManageConnectionsSchema: () => ToolRouterConfigManageConnectionsSchema,
|
|
151
|
+
ToolRouterConfigTagsSchema: () => ToolRouterConfigTagsSchema,
|
|
152
|
+
ToolRouterConfigToolsSchema: () => ToolRouterConfigToolsSchema,
|
|
153
|
+
ToolRouterCreateSessionConfigSchema: () => ToolRouterCreateSessionConfigSchema,
|
|
154
|
+
ToolRouterDisabledTagsConfigSchema: () => ToolRouterDisabledTagsConfigSchema,
|
|
155
|
+
ToolRouterEnabledTagsConfigSchema: () => ToolRouterEnabledTagsConfigSchema,
|
|
156
|
+
ToolRouterManageConnectionsConfigSchema: () => ToolRouterManageConnectionsConfigSchema,
|
|
157
|
+
ToolRouterTagsParamSchema: () => ToolRouterTagsParamSchema,
|
|
158
|
+
ToolRouterToolkitsDisabledConfigSchema: () => ToolRouterToolkitsDisabledConfigSchema,
|
|
159
|
+
ToolRouterToolkitsEnabledConfigSchema: () => ToolRouterToolkitsEnabledConfigSchema,
|
|
160
|
+
ToolRouterToolkitsParamSchema: () => ToolRouterToolkitsParamSchema,
|
|
161
|
+
ToolRouterToolsParamSchema: () => ToolRouterToolsParamSchema,
|
|
153
162
|
ToolSchema: () => ToolSchema,
|
|
154
163
|
ToolkitAuthConfigDetailsSchema: () => ToolkitAuthConfigDetailsSchema,
|
|
155
164
|
ToolkitAuthFieldSchema: () => ToolkitAuthFieldSchema,
|
|
156
165
|
ToolkitAuthFieldsResponseSchema: () => ToolkitAuthFieldsResponseSchema,
|
|
157
166
|
ToolkitCategorySchema: () => ToolkitCategorySchema,
|
|
167
|
+
ToolkitConnectionStateSchema: () => ToolkitConnectionStateSchema,
|
|
168
|
+
ToolkitConnectionsDetailsSchema: () => ToolkitConnectionsDetailsSchema,
|
|
158
169
|
ToolkitErrorCodes: () => ToolkitErrorCodes,
|
|
159
170
|
ToolkitMangedByEnumSchema: () => ToolkitMangedByEnumSchema,
|
|
160
171
|
ToolkitRetrieveCategoriesResponseSchema: () => ToolkitRetrieveCategoriesResponseSchema,
|
|
@@ -213,7 +224,9 @@ var AuthSchemeTypes = {
|
|
|
213
224
|
NO_AUTH: "NO_AUTH",
|
|
214
225
|
BASIC_WITH_JWT: "BASIC_WITH_JWT",
|
|
215
226
|
CALCOM_AUTH: "CALCOM_AUTH",
|
|
216
|
-
SERVICE_ACCOUNT: "SERVICE_ACCOUNT"
|
|
227
|
+
SERVICE_ACCOUNT: "SERVICE_ACCOUNT",
|
|
228
|
+
SAML: "SAML",
|
|
229
|
+
DCR_OAUTH: "DCR_OAUTH"
|
|
217
230
|
};
|
|
218
231
|
var AuthConfigCreationToolAccessConfigSchema = import_v3.z.object({
|
|
219
232
|
toolsForConnectedAccountCreation: import_v3.z.array(import_v3.z.string()).optional()
|
|
@@ -233,7 +246,9 @@ var AuthSchemeEnum = import_v3.z.enum([
|
|
|
233
246
|
"NO_AUTH",
|
|
234
247
|
"BASIC_WITH_JWT",
|
|
235
248
|
"CALCOM_AUTH",
|
|
236
|
-
"SERVICE_ACCOUNT"
|
|
249
|
+
"SERVICE_ACCOUNT",
|
|
250
|
+
"SAML",
|
|
251
|
+
"DCR_OAUTH"
|
|
237
252
|
]);
|
|
238
253
|
var CreateCustomAuthConfigParamsSchema = import_v3.z.object({
|
|
239
254
|
type: import_v3.z.literal("use_custom_auth"),
|
|
@@ -380,7 +395,14 @@ var BaseSchemeRaw = import_v32.z.object({
|
|
|
380
395
|
// for generic api key
|
|
381
396
|
generic_api_key: import_v32.z.string().optional(),
|
|
382
397
|
// for bearer token
|
|
383
|
-
bearer_token: import_v32.z.string().optional()
|
|
398
|
+
bearer_token: import_v32.z.string().optional(),
|
|
399
|
+
// for basic auth encoded
|
|
400
|
+
basic_encoded: import_v32.z.string().optional(),
|
|
401
|
+
// for dcr oauth
|
|
402
|
+
long_redirect_url: import_v32.z.boolean().optional(),
|
|
403
|
+
state_prefix: import_v32.z.string().optional(),
|
|
404
|
+
registration_access_token: import_v32.z.string().optional(),
|
|
405
|
+
registration_client_uri: import_v32.z.string().optional()
|
|
384
406
|
}).catchall(import_v32.z.unknown());
|
|
385
407
|
var Oauth2InitiatingConnectionDataSchema = BaseSchemeRaw.extend({
|
|
386
408
|
status: import_v32.z.literal(ConnectionStatuses.INITIALIZING)
|
|
@@ -656,6 +678,98 @@ var BasicWithJwtConnectionDataSchema = import_v32.z.discriminatedUnion("status",
|
|
|
656
678
|
var CustomBasicWithJwtConnectionDataSchema = BasicWithJwtInitiatingSchema.omit({
|
|
657
679
|
status: true
|
|
658
680
|
});
|
|
681
|
+
var ServiceAccountInitiatingSchema = BaseSchemeRaw.extend({
|
|
682
|
+
status: import_v32.z.literal(ConnectionStatuses.INITIALIZING)
|
|
683
|
+
}).catchall(import_v32.z.unknown());
|
|
684
|
+
var ServiceAccountConnectionDataSchema = import_v32.z.discriminatedUnion("status", [
|
|
685
|
+
ServiceAccountInitiatingSchema,
|
|
686
|
+
ServiceAccountInitiatingSchema.extend({
|
|
687
|
+
status: import_v32.z.literal(ConnectionStatuses.INITIATED)
|
|
688
|
+
}).catchall(import_v32.z.unknown()),
|
|
689
|
+
ServiceAccountInitiatingSchema.extend({
|
|
690
|
+
status: import_v32.z.literal(ConnectionStatuses.ACTIVE),
|
|
691
|
+
application_id: import_v32.z.string(),
|
|
692
|
+
installation_id: import_v32.z.string(),
|
|
693
|
+
private_key: import_v32.z.string()
|
|
694
|
+
}).catchall(import_v32.z.unknown()),
|
|
695
|
+
ServiceAccountInitiatingSchema.extend({
|
|
696
|
+
status: import_v32.z.literal(ConnectionStatuses.INACTIVE),
|
|
697
|
+
application_id: import_v32.z.string(),
|
|
698
|
+
installation_id: import_v32.z.string(),
|
|
699
|
+
private_key: import_v32.z.string()
|
|
700
|
+
}).catchall(import_v32.z.unknown())
|
|
701
|
+
]);
|
|
702
|
+
var CustomServiceAccountConnectionDataSchema = import_v32.z.object({
|
|
703
|
+
application_id: import_v32.z.string(),
|
|
704
|
+
installation_id: import_v32.z.string(),
|
|
705
|
+
private_key: import_v32.z.string()
|
|
706
|
+
}).merge(BaseSchemeRaw).catchall(import_v32.z.unknown());
|
|
707
|
+
var SamlInitiatingSchema = BaseSchemeRaw.extend({
|
|
708
|
+
status: import_v32.z.literal(ConnectionStatuses.INITIALIZING)
|
|
709
|
+
}).catchall(import_v32.z.unknown());
|
|
710
|
+
var SamlConnectionDataSchema = import_v32.z.discriminatedUnion("status", [
|
|
711
|
+
SamlInitiatingSchema,
|
|
712
|
+
SamlInitiatingSchema.extend({
|
|
713
|
+
status: import_v32.z.literal(ConnectionStatuses.INITIATED)
|
|
714
|
+
}).catchall(import_v32.z.unknown()),
|
|
715
|
+
SamlInitiatingSchema.extend({
|
|
716
|
+
status: import_v32.z.literal(ConnectionStatuses.ACTIVE)
|
|
717
|
+
}).catchall(import_v32.z.unknown()),
|
|
718
|
+
SamlInitiatingSchema.extend({
|
|
719
|
+
status: import_v32.z.literal(ConnectionStatuses.INACTIVE)
|
|
720
|
+
}).catchall(import_v32.z.unknown()),
|
|
721
|
+
SamlInitiatingSchema.extend({
|
|
722
|
+
status: import_v32.z.literal(ConnectionStatuses.FAILED),
|
|
723
|
+
error: import_v32.z.string().optional(),
|
|
724
|
+
error_description: import_v32.z.string().optional()
|
|
725
|
+
}).catchall(import_v32.z.unknown()),
|
|
726
|
+
SamlInitiatingSchema.extend({
|
|
727
|
+
status: import_v32.z.literal(ConnectionStatuses.EXPIRED),
|
|
728
|
+
expired_at: import_v32.z.string().optional()
|
|
729
|
+
}).catchall(import_v32.z.unknown())
|
|
730
|
+
]);
|
|
731
|
+
var CustomSamlConnectionDataSchema = BaseSchemeRaw.catchall(import_v32.z.unknown());
|
|
732
|
+
var DcrOauthInitiatingSchema = BaseSchemeRaw.extend({
|
|
733
|
+
status: import_v32.z.literal(ConnectionStatuses.INITIALIZING)
|
|
734
|
+
}).catchall(import_v32.z.unknown());
|
|
735
|
+
var DcrOauthConnectionDataSchema = import_v32.z.discriminatedUnion("status", [
|
|
736
|
+
DcrOauthInitiatingSchema,
|
|
737
|
+
DcrOauthInitiatingSchema.extend({
|
|
738
|
+
status: import_v32.z.literal(ConnectionStatuses.INITIATED),
|
|
739
|
+
client_id: import_v32.z.string(),
|
|
740
|
+
client_secret: import_v32.z.string(),
|
|
741
|
+
redirectUrl: import_v32.z.string()
|
|
742
|
+
}).catchall(import_v32.z.unknown()),
|
|
743
|
+
DcrOauthInitiatingSchema.extend({
|
|
744
|
+
status: import_v32.z.literal(ConnectionStatuses.ACTIVE),
|
|
745
|
+
access_token: import_v32.z.string(),
|
|
746
|
+
client_id: import_v32.z.string(),
|
|
747
|
+
token_type: import_v32.z.string().optional(),
|
|
748
|
+
refresh_token: import_v32.z.string().nullish(),
|
|
749
|
+
expires_in: import_v32.z.union([import_v32.z.string(), import_v32.z.number(), import_v32.z.null()]).optional(),
|
|
750
|
+
scope: import_v32.z.union([import_v32.z.string(), import_v32.z.array(import_v32.z.string()), import_v32.z.null()]).optional(),
|
|
751
|
+
id_token: import_v32.z.string().optional(),
|
|
752
|
+
client_secret: import_v32.z.string().optional()
|
|
753
|
+
}).catchall(import_v32.z.unknown()),
|
|
754
|
+
DcrOauthInitiatingSchema.extend({
|
|
755
|
+
status: import_v32.z.literal(ConnectionStatuses.INACTIVE),
|
|
756
|
+
access_token: import_v32.z.string(),
|
|
757
|
+
client_id: import_v32.z.string()
|
|
758
|
+
}).catchall(import_v32.z.unknown()),
|
|
759
|
+
DcrOauthInitiatingSchema.extend({
|
|
760
|
+
status: import_v32.z.literal(ConnectionStatuses.FAILED),
|
|
761
|
+
error: import_v32.z.string().optional(),
|
|
762
|
+
error_description: import_v32.z.string().optional()
|
|
763
|
+
}).catchall(import_v32.z.unknown()),
|
|
764
|
+
DcrOauthInitiatingSchema.extend({
|
|
765
|
+
status: import_v32.z.literal(ConnectionStatuses.EXPIRED),
|
|
766
|
+
expired_at: import_v32.z.string().optional()
|
|
767
|
+
}).catchall(import_v32.z.unknown())
|
|
768
|
+
]);
|
|
769
|
+
var CustomDcrOauthConnectionDataSchema = import_v32.z.object({
|
|
770
|
+
access_token: import_v32.z.string(),
|
|
771
|
+
client_id: import_v32.z.string()
|
|
772
|
+
}).merge(BaseSchemeRaw).catchall(import_v32.z.unknown());
|
|
659
773
|
var ConnectionDataSchema = import_v32.z.discriminatedUnion("authScheme", [
|
|
660
774
|
import_v32.z.object({
|
|
661
775
|
authScheme: import_v32.z.literal(AuthSchemeTypes.OAUTH1),
|
|
@@ -733,6 +847,27 @@ var ConnectionDataSchema = import_v32.z.discriminatedUnion("authScheme", [
|
|
|
733
847
|
* the main connection data discriminated by auth scheme
|
|
734
848
|
*/
|
|
735
849
|
val: BasicWithJwtConnectionDataSchema
|
|
850
|
+
}),
|
|
851
|
+
import_v32.z.object({
|
|
852
|
+
authScheme: import_v32.z.literal(AuthSchemeTypes.SERVICE_ACCOUNT),
|
|
853
|
+
/**
|
|
854
|
+
* the main connection data discriminated by auth scheme
|
|
855
|
+
*/
|
|
856
|
+
val: ServiceAccountConnectionDataSchema
|
|
857
|
+
}),
|
|
858
|
+
import_v32.z.object({
|
|
859
|
+
authScheme: import_v32.z.literal(AuthSchemeTypes.SAML),
|
|
860
|
+
/**
|
|
861
|
+
* the main connection data discriminated by auth scheme
|
|
862
|
+
*/
|
|
863
|
+
val: SamlConnectionDataSchema
|
|
864
|
+
}),
|
|
865
|
+
import_v32.z.object({
|
|
866
|
+
authScheme: import_v32.z.literal(AuthSchemeTypes.DCR_OAUTH),
|
|
867
|
+
/**
|
|
868
|
+
* the main connection data discriminated by auth scheme
|
|
869
|
+
*/
|
|
870
|
+
val: DcrOauthConnectionDataSchema
|
|
736
871
|
})
|
|
737
872
|
]);
|
|
738
873
|
var CustomConnectionDataSchema = import_v32.z.discriminatedUnion("authScheme", [
|
|
@@ -741,6 +876,11 @@ var CustomConnectionDataSchema = import_v32.z.discriminatedUnion("authScheme", [
|
|
|
741
876
|
toolkitSlug: import_v32.z.string(),
|
|
742
877
|
val: CustomOauth2ConnectionDataSchema
|
|
743
878
|
}),
|
|
879
|
+
import_v32.z.object({
|
|
880
|
+
authScheme: import_v32.z.literal(AuthSchemeTypes.DCR_OAUTH),
|
|
881
|
+
toolkitSlug: import_v32.z.string(),
|
|
882
|
+
val: CustomDcrOauthConnectionDataSchema
|
|
883
|
+
}),
|
|
744
884
|
import_v32.z.object({
|
|
745
885
|
authScheme: import_v32.z.literal(AuthSchemeTypes.API_KEY),
|
|
746
886
|
toolkitSlug: import_v32.z.string(),
|
|
@@ -770,6 +910,11 @@ var CustomConnectionDataSchema = import_v32.z.discriminatedUnion("authScheme", [
|
|
|
770
910
|
authScheme: import_v32.z.literal(AuthSchemeTypes.NO_AUTH),
|
|
771
911
|
toolkitSlug: import_v32.z.string(),
|
|
772
912
|
val: CustomNoAuthConnectionDataSchema
|
|
913
|
+
}),
|
|
914
|
+
import_v32.z.object({
|
|
915
|
+
authScheme: import_v32.z.literal(AuthSchemeTypes.SERVICE_ACCOUNT),
|
|
916
|
+
toolkitSlug: import_v32.z.string(),
|
|
917
|
+
val: CustomServiceAccountConnectionDataSchema
|
|
773
918
|
})
|
|
774
919
|
]);
|
|
775
920
|
|
|
@@ -920,7 +1065,12 @@ var ToolProxyParamsSchema = import_v33.z.object({
|
|
|
920
1065
|
})
|
|
921
1066
|
).optional(),
|
|
922
1067
|
connectedAccountId: import_v33.z.string().optional(),
|
|
923
|
-
|
|
1068
|
+
/**
|
|
1069
|
+
* @deprecated
|
|
1070
|
+
*/
|
|
1071
|
+
customConnectionData: CustomConnectionDataSchema.describe(
|
|
1072
|
+
"DEPRECATED: This field is deprecated and will be removed in the future."
|
|
1073
|
+
).optional()
|
|
924
1074
|
});
|
|
925
1075
|
|
|
926
1076
|
// src/models/CustomTools.ts
|
|
@@ -1208,12 +1358,12 @@ ${originalStackBody}`;
|
|
|
1208
1358
|
}
|
|
1209
1359
|
/**
|
|
1210
1360
|
* Utility function to handle errors in a consistent way
|
|
1211
|
-
* This properly displays the error
|
|
1361
|
+
* This properly displays the error without throwing
|
|
1212
1362
|
* @param error The error to handle
|
|
1213
1363
|
* @param options Options for error handling
|
|
1214
1364
|
*/
|
|
1215
1365
|
static handle(error, options = {}) {
|
|
1216
|
-
const { includeStack = false, exitProcess = false
|
|
1366
|
+
const { includeStack = false, exitProcess = false } = options;
|
|
1217
1367
|
if (error instanceof _ComposioError) {
|
|
1218
1368
|
error.prettyPrint(includeStack);
|
|
1219
1369
|
} else if (error instanceof import_v34.ZodError) {
|
|
@@ -1223,8 +1373,34 @@ ${originalStackBody}`;
|
|
|
1223
1373
|
} else {
|
|
1224
1374
|
this.handleUnknownError(error);
|
|
1225
1375
|
}
|
|
1226
|
-
if (exitProcess
|
|
1227
|
-
|
|
1376
|
+
if (exitProcess) {
|
|
1377
|
+
this.throwError(error);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Utility function to handle errors and then throw them
|
|
1382
|
+
* This properly displays the error and then throws it, allowing callers to catch it.
|
|
1383
|
+
* Use this for fatal errors that should stop execution.
|
|
1384
|
+
* @param error The error to handle and throw
|
|
1385
|
+
* @param includeStack Whether to include the stack trace in the output
|
|
1386
|
+
* @throws ComposioError - Always throws after displaying the error
|
|
1387
|
+
*/
|
|
1388
|
+
static handleAndThrow(error, includeStack = false) {
|
|
1389
|
+
this.handle(error, { includeStack });
|
|
1390
|
+
this.throwError(error);
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Helper method to throw an error as a ComposioError
|
|
1394
|
+
* @param error The error to throw
|
|
1395
|
+
* @private
|
|
1396
|
+
*/
|
|
1397
|
+
static throwError(error) {
|
|
1398
|
+
if (error instanceof _ComposioError) {
|
|
1399
|
+
throw error;
|
|
1400
|
+
} else if (error instanceof Error) {
|
|
1401
|
+
throw new _ComposioError(error.message, { cause: error });
|
|
1402
|
+
} else {
|
|
1403
|
+
throw new _ComposioError(String(error));
|
|
1228
1404
|
}
|
|
1229
1405
|
}
|
|
1230
1406
|
/**
|
|
@@ -2301,6 +2477,14 @@ var CustomTools = class {
|
|
|
2301
2477
|
parameters,
|
|
2302
2478
|
body: data.body,
|
|
2303
2479
|
connected_account_id: connectedAccountId,
|
|
2480
|
+
/**
|
|
2481
|
+
* @deprecated
|
|
2482
|
+
* @description
|
|
2483
|
+
* This parameter is deprecated and will be removed in the future.
|
|
2484
|
+
* Please use custom_auth_params instead.
|
|
2485
|
+
*
|
|
2486
|
+
*/
|
|
2487
|
+
// @ts-ignore
|
|
2304
2488
|
custom_connection_data: data.customConnectionData
|
|
2305
2489
|
});
|
|
2306
2490
|
return {
|
|
@@ -2761,28 +2945,20 @@ var Tools = class {
|
|
|
2761
2945
|
provider;
|
|
2762
2946
|
autoUploadDownloadFiles;
|
|
2763
2947
|
toolkitVersions;
|
|
2764
|
-
constructor(client,
|
|
2948
|
+
constructor(client, config) {
|
|
2765
2949
|
if (!client) {
|
|
2766
2950
|
throw new Error("ComposioClient is required");
|
|
2767
2951
|
}
|
|
2768
|
-
if (!provider) {
|
|
2952
|
+
if (!config?.provider) {
|
|
2769
2953
|
throw new ComposioProviderNotDefinedError("Provider not passed into Tools instance");
|
|
2770
2954
|
}
|
|
2771
2955
|
this.client = client;
|
|
2772
2956
|
this.customTools = new CustomTools(client);
|
|
2773
|
-
this.provider = provider;
|
|
2957
|
+
this.provider = config.provider;
|
|
2774
2958
|
this.autoUploadDownloadFiles = config?.autoUploadDownloadFiles ?? true;
|
|
2775
2959
|
this.toolkitVersions = config?.toolkitVersions ?? "latest";
|
|
2776
2960
|
this.execute = this.execute.bind(this);
|
|
2777
|
-
|
|
2778
|
-
slug,
|
|
2779
|
-
{
|
|
2780
|
-
...body,
|
|
2781
|
-
dangerouslySkipVersionCheck: body.dangerouslySkipVersionCheck ?? true
|
|
2782
|
-
},
|
|
2783
|
-
modifiers
|
|
2784
|
-
);
|
|
2785
|
-
this.provider._setExecuteToolFn(providerExecuteToolFn);
|
|
2961
|
+
this.provider._setExecuteToolFn(this.createExecuteFnForProviders());
|
|
2786
2962
|
this.getRawComposioToolBySlug = this.getRawComposioToolBySlug.bind(this);
|
|
2787
2963
|
this.getRawComposioTools = this.getRawComposioTools.bind(this);
|
|
2788
2964
|
telemetry.instrument(this, "Tools");
|
|
@@ -3128,19 +3304,55 @@ var Tools = class {
|
|
|
3128
3304
|
*/
|
|
3129
3305
|
async get(userId, arg2, arg3) {
|
|
3130
3306
|
const options = arg3;
|
|
3131
|
-
const executeToolFn = this.createExecuteToolFn(userId, options);
|
|
3132
3307
|
if (typeof arg2 === "string") {
|
|
3133
3308
|
const tool = await this.getRawComposioToolBySlug(arg2, {
|
|
3134
3309
|
modifySchema: options?.modifySchema
|
|
3135
3310
|
});
|
|
3136
|
-
return this.
|
|
3311
|
+
return this.wrapToolsForProvider(
|
|
3312
|
+
userId,
|
|
3313
|
+
[tool],
|
|
3314
|
+
options
|
|
3315
|
+
);
|
|
3137
3316
|
} else {
|
|
3138
3317
|
const tools = await this.getRawComposioTools(arg2, {
|
|
3139
3318
|
modifySchema: options?.modifySchema
|
|
3140
3319
|
});
|
|
3141
|
-
return this.
|
|
3320
|
+
return this.wrapToolsForProvider(
|
|
3321
|
+
userId,
|
|
3322
|
+
tools,
|
|
3323
|
+
options
|
|
3324
|
+
);
|
|
3142
3325
|
}
|
|
3143
3326
|
}
|
|
3327
|
+
/**
|
|
3328
|
+
* @internal
|
|
3329
|
+
* Creates a global execute tool function.
|
|
3330
|
+
* This function is used by providers to execute tools.
|
|
3331
|
+
* It skips the version check for provider controlled execution.
|
|
3332
|
+
* @returns {GlobalExecuteToolFn} The global execute tool function
|
|
3333
|
+
*/
|
|
3334
|
+
createExecuteFnForProviders() {
|
|
3335
|
+
return async (slug, body, modifiers) => {
|
|
3336
|
+
return await this.execute(
|
|
3337
|
+
slug,
|
|
3338
|
+
{ ...body, dangerouslySkipVersionCheck: body.dangerouslySkipVersionCheck ?? true },
|
|
3339
|
+
modifiers
|
|
3340
|
+
);
|
|
3341
|
+
};
|
|
3342
|
+
}
|
|
3343
|
+
/**
|
|
3344
|
+
* @inte
|
|
3345
|
+
* Utility to wrap a given set of tools in the format expected by the provider
|
|
3346
|
+
*
|
|
3347
|
+
* @param userId - The user id to get the tools for
|
|
3348
|
+
* @param tools - The tools to wrap
|
|
3349
|
+
* @param modifiers - The modifiers to be applied to the tools
|
|
3350
|
+
* @returns The wrapped tools
|
|
3351
|
+
*/
|
|
3352
|
+
wrapToolsForProvider(userId, tools, modifiers) {
|
|
3353
|
+
const executeToolFn = this.createExecuteToolFn(userId, modifiers);
|
|
3354
|
+
return this.provider.wrapTools(tools, executeToolFn);
|
|
3355
|
+
}
|
|
3144
3356
|
/**
|
|
3145
3357
|
* @internal
|
|
3146
3358
|
* @description
|
|
@@ -3158,7 +3370,7 @@ var Tools = class {
|
|
|
3158
3370
|
{
|
|
3159
3371
|
userId,
|
|
3160
3372
|
arguments: input,
|
|
3161
|
-
// dangerously skip version check for agentic
|
|
3373
|
+
// dangerously skip version check for agentic tool execution via providers
|
|
3162
3374
|
// this can be safe because most agentic flows users fetch latest version and then execute the tool
|
|
3163
3375
|
dangerouslySkipVersionCheck: true
|
|
3164
3376
|
},
|
|
@@ -3184,6 +3396,13 @@ var Tools = class {
|
|
|
3184
3396
|
allow_tracing: body.allowTracing,
|
|
3185
3397
|
connected_account_id: body.connectedAccountId,
|
|
3186
3398
|
custom_auth_params: body.customAuthParams,
|
|
3399
|
+
/**
|
|
3400
|
+
* @deprecated: customConnectionData
|
|
3401
|
+
* @description
|
|
3402
|
+
* This parameter is deprecated and will be removed in the future.
|
|
3403
|
+
* Please use custom_connection_data instead.
|
|
3404
|
+
*
|
|
3405
|
+
*/
|
|
3187
3406
|
custom_connection_data: body.customConnectionData,
|
|
3188
3407
|
arguments: body.arguments,
|
|
3189
3408
|
user_id: body.userId,
|
|
@@ -3389,6 +3608,14 @@ var Tools = class {
|
|
|
3389
3608
|
body: toolProxyParams.data.body,
|
|
3390
3609
|
connected_account_id: toolProxyParams.data.connectedAccountId,
|
|
3391
3610
|
parameters,
|
|
3611
|
+
/**
|
|
3612
|
+
* @deprecated: customConnectionData
|
|
3613
|
+
* @description
|
|
3614
|
+
* This parameter is deprecated and will be removed in the future.
|
|
3615
|
+
* Please use custom_auth_params instead.
|
|
3616
|
+
*
|
|
3617
|
+
*/
|
|
3618
|
+
// @ts-ignore
|
|
3392
3619
|
custom_connection_data: toolProxyParams.data.customConnectionData
|
|
3393
3620
|
});
|
|
3394
3621
|
}
|
|
@@ -6814,9 +7041,7 @@ function getSDKConfig(baseUrl, apiKey) {
|
|
|
6814
7041
|
const baseURLParsed = baseUrl || getEnvVariable("COMPOSIO_BASE_URL") || baseURLFromUserConfig || DEFAULT_BASE_URL;
|
|
6815
7042
|
const apiKeyParsed = apiKey || getEnvVariable("COMPOSIO_API_KEY") || apiKeyFromUserConfig || "";
|
|
6816
7043
|
if (!apiKeyParsed) {
|
|
6817
|
-
ComposioError.
|
|
6818
|
-
exitProcess: true
|
|
6819
|
-
});
|
|
7044
|
+
ComposioError.handleAndThrow(new ComposioNoAPIKeyError());
|
|
6820
7045
|
}
|
|
6821
7046
|
logger_default.debug("Environment", `API Key: ${apiKeyParsed}`);
|
|
6822
7047
|
logger_default.debug("Environment", `Base URL: ${baseURLParsed}`);
|
|
@@ -6892,7 +7117,7 @@ var BaseProvider = class {
|
|
|
6892
7117
|
/**
|
|
6893
7118
|
* @public
|
|
6894
7119
|
* Global function to execute a tool.
|
|
6895
|
-
* This function is used by
|
|
7120
|
+
* This function is used by providers to implement helper functions to execute tools.
|
|
6896
7121
|
* This is a 1:1 mapping of the `execute` method in the `Tools` class.
|
|
6897
7122
|
* @param {string} toolSlug - The slug of the tool to execute.
|
|
6898
7123
|
* @param {ToolExecuteParams} body - The body of the tool execution.
|
|
@@ -7368,7 +7593,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
7368
7593
|
};
|
|
7369
7594
|
|
|
7370
7595
|
// package.json
|
|
7371
|
-
var version = "0.2.
|
|
7596
|
+
var version = "0.2.7-alpha.0";
|
|
7372
7597
|
|
|
7373
7598
|
// src/models/Files.ts
|
|
7374
7599
|
var Files = class {
|
|
@@ -7464,77 +7689,337 @@ var getDefaultHeaders = (headers, provider) => {
|
|
|
7464
7689
|
|
|
7465
7690
|
// src/types/toolRouter.types.ts
|
|
7466
7691
|
var import_v312 = __toESM(require("zod/v3"), 1);
|
|
7467
|
-
var
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7692
|
+
var MCPServerTypeSchema = import_v312.default.enum(["HTTP", "SSE"]);
|
|
7693
|
+
var ToolRouterConfigManageConnectionsSchema = import_v312.default.object({
|
|
7694
|
+
enabled: import_v312.default.boolean().optional().default(true).describe(
|
|
7695
|
+
"Whether to use tools to manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually"
|
|
7696
|
+
),
|
|
7697
|
+
callbackUri: import_v312.default.string().optional().describe("The callback uri to use in the tool router session"),
|
|
7698
|
+
inferScopesFromTools: import_v312.default.boolean().optional().default(false).describe(
|
|
7699
|
+
"Whether to infer scopes from tools in the tool router session. Defaults to false, if set to true, tool router will infer scopes from allowed tools"
|
|
7700
|
+
)
|
|
7701
|
+
}).strict();
|
|
7702
|
+
var ToolRouterToolkitsParamSchema = import_v312.default.array(import_v312.default.string()).describe("List of toolkits to enable in the tool router session");
|
|
7703
|
+
var ToolRouterToolkitsDisabledConfigSchema = import_v312.default.object({
|
|
7704
|
+
disabled: ToolRouterToolkitsParamSchema.describe(
|
|
7705
|
+
"List of toolkits to disable in the tool router session"
|
|
7706
|
+
)
|
|
7707
|
+
}).strict();
|
|
7708
|
+
var ToolRouterToolkitsEnabledConfigSchema = import_v312.default.object({
|
|
7709
|
+
enabled: ToolRouterToolkitsParamSchema.describe(
|
|
7710
|
+
"List of toolkits to enable in the tool router session"
|
|
7711
|
+
)
|
|
7712
|
+
}).strict();
|
|
7713
|
+
var ToolRouterManageConnectionsConfigSchema = import_v312.default.object({
|
|
7714
|
+
enabled: import_v312.default.boolean().optional().describe(
|
|
7715
|
+
"Whether to use tools to manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually"
|
|
7716
|
+
).default(true),
|
|
7717
|
+
callbackUrl: import_v312.default.string().optional().describe("The callback url to use in the tool router session")
|
|
7474
7718
|
});
|
|
7475
|
-
var
|
|
7476
|
-
|
|
7477
|
-
|
|
7719
|
+
var ToolRouterTagsParamSchema = import_v312.default.array(import_v312.default.string()).describe("The tags to use in the tool router session");
|
|
7720
|
+
var ToolRouterEnabledTagsConfigSchema = import_v312.default.object({
|
|
7721
|
+
enabled: ToolRouterTagsParamSchema.describe("The tags to enable in the tool router session")
|
|
7722
|
+
}).strict();
|
|
7723
|
+
var ToolRouterDisabledTagsConfigSchema = import_v312.default.object({
|
|
7724
|
+
disabled: ToolRouterTagsParamSchema.describe("The tags to disable in the tool router session")
|
|
7725
|
+
}).strict();
|
|
7726
|
+
var ToolRouterConfigTagsSchema = import_v312.default.union([
|
|
7727
|
+
ToolRouterTagsParamSchema,
|
|
7728
|
+
ToolRouterEnabledTagsConfigSchema,
|
|
7729
|
+
ToolRouterDisabledTagsConfigSchema
|
|
7730
|
+
]).describe("The tags to use in the tool router session");
|
|
7731
|
+
var ToolRouterToolsParamSchema = import_v312.default.array(import_v312.default.string()).describe("The tools to use in the tool router session");
|
|
7732
|
+
var ToolRouterConfigToolsSchema = import_v312.default.object({
|
|
7733
|
+
overrides: import_v312.default.record(
|
|
7734
|
+
import_v312.default.string(),
|
|
7735
|
+
import_v312.default.union([
|
|
7736
|
+
ToolRouterToolsParamSchema,
|
|
7737
|
+
import_v312.default.object({
|
|
7738
|
+
enabled: ToolRouterToolsParamSchema.describe(
|
|
7739
|
+
"The tools to enable in the tool router session"
|
|
7740
|
+
)
|
|
7741
|
+
}).strict(),
|
|
7742
|
+
import_v312.default.object({
|
|
7743
|
+
disabled: ToolRouterToolsParamSchema.describe(
|
|
7744
|
+
"The tools to disable in the tool router session"
|
|
7745
|
+
)
|
|
7746
|
+
}).strict()
|
|
7747
|
+
])
|
|
7748
|
+
).describe("The tools to override in the tool router session").optional(),
|
|
7749
|
+
tags: ToolRouterConfigTagsSchema.optional().describe("The tags to filter the tools by")
|
|
7750
|
+
}).strict();
|
|
7751
|
+
var ToolRouterCreateSessionConfigSchema = import_v312.default.object({
|
|
7752
|
+
tools: ToolRouterConfigToolsSchema.optional().describe(
|
|
7753
|
+
"The tools to use in the tool router session"
|
|
7754
|
+
),
|
|
7755
|
+
toolkits: import_v312.default.union([
|
|
7756
|
+
ToolRouterToolkitsParamSchema,
|
|
7757
|
+
ToolRouterToolkitsDisabledConfigSchema,
|
|
7758
|
+
ToolRouterToolkitsEnabledConfigSchema
|
|
7759
|
+
]).optional().describe("The toolkits to use in the tool router session"),
|
|
7760
|
+
authConfigs: import_v312.default.record(import_v312.default.string(), import_v312.default.string()).describe(
|
|
7761
|
+
"The auth configs to use in the tool router session. The key is the toolkit slug, the value is the auth config id."
|
|
7762
|
+
).default({}),
|
|
7763
|
+
connectedAccounts: import_v312.default.record(import_v312.default.string(), import_v312.default.string()).describe(
|
|
7764
|
+
"The connected accounts to use in the tool router session. The key is the toolkit slug, the value is the connected account id."
|
|
7765
|
+
).default({}),
|
|
7766
|
+
manageConnections: import_v312.default.union([import_v312.default.boolean(), ToolRouterConfigManageConnectionsSchema]).optional().default(true).describe(
|
|
7767
|
+
"The config for the manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually. If set to an object, you can configure the manage connections settings."
|
|
7768
|
+
),
|
|
7769
|
+
execution: import_v312.default.object({
|
|
7770
|
+
proxyExecutionEnabled: import_v312.default.boolean().optional().describe("Whether to enable proxy execution in the tool router session"),
|
|
7771
|
+
timeoutSeconds: import_v312.default.number().optional().describe("The timeout in seconds for the tool router session")
|
|
7772
|
+
}).optional().describe("The execution config for the tool router session")
|
|
7773
|
+
}).partial().describe("The config for the tool router session");
|
|
7774
|
+
var ToolkitConnectionStateSchema = import_v312.default.object({
|
|
7775
|
+
slug: import_v312.default.string().describe("The slug of a toolkit"),
|
|
7776
|
+
name: import_v312.default.string().describe("The name of a toolkit"),
|
|
7777
|
+
logo: import_v312.default.string().optional().describe("The logo of a toolkit"),
|
|
7778
|
+
isNoAuth: import_v312.default.boolean().default(false).describe("Whether the toolkit is no auth or not"),
|
|
7779
|
+
connection: import_v312.default.object({
|
|
7780
|
+
isActive: import_v312.default.boolean().describe("Whether the connection is active or not"),
|
|
7781
|
+
authConfig: import_v312.default.object({
|
|
7782
|
+
id: import_v312.default.string().describe("The id of the auth config"),
|
|
7783
|
+
mode: import_v312.default.string().describe("The auth scheme used by the auth config"),
|
|
7784
|
+
isComposioManaged: import_v312.default.boolean().describe("Whether the auth config is managed by Composio")
|
|
7785
|
+
}).nullish().describe("The auth config of a toolkit"),
|
|
7786
|
+
connectedAccount: import_v312.default.object({
|
|
7787
|
+
id: import_v312.default.string().describe("The id of the connected account"),
|
|
7788
|
+
status: import_v312.default.string().describe("The status of the connected account")
|
|
7789
|
+
}).optional().describe("The connected account of a toolkit")
|
|
7790
|
+
})
|
|
7791
|
+
}).describe("The connection state of a toolkit");
|
|
7792
|
+
var ToolkitConnectionsDetailsSchema = import_v312.default.object({
|
|
7793
|
+
items: import_v312.default.array(ToolkitConnectionStateSchema),
|
|
7794
|
+
nextCursor: import_v312.default.string().optional(),
|
|
7795
|
+
totalPages: import_v312.default.number()
|
|
7478
7796
|
});
|
|
7479
7797
|
|
|
7480
|
-
// src/
|
|
7798
|
+
// src/lib/toolRouterParams.ts
|
|
7799
|
+
var transformToolRouterToolsParams = (params) => {
|
|
7800
|
+
if (!params) {
|
|
7801
|
+
return void 0;
|
|
7802
|
+
}
|
|
7803
|
+
const { overrides, tags } = params;
|
|
7804
|
+
const toolOverrides = overrides ? Object.keys(overrides).reduce(
|
|
7805
|
+
(acc, key) => {
|
|
7806
|
+
const override = overrides[key];
|
|
7807
|
+
if (Array.isArray(override)) {
|
|
7808
|
+
acc[key] = { enabled: override };
|
|
7809
|
+
} else if (override !== void 0) {
|
|
7810
|
+
if ("enabled" in override && override.enabled) {
|
|
7811
|
+
acc[key] = { enabled: override.enabled };
|
|
7812
|
+
} else if ("disabled" in override && override.disabled) {
|
|
7813
|
+
acc[key] = { disabled: override.disabled };
|
|
7814
|
+
}
|
|
7815
|
+
}
|
|
7816
|
+
return acc;
|
|
7817
|
+
},
|
|
7818
|
+
{}
|
|
7819
|
+
) : void 0;
|
|
7820
|
+
const tagFilters = tags ? (() => {
|
|
7821
|
+
if (Array.isArray(tags)) {
|
|
7822
|
+
return { include: tags };
|
|
7823
|
+
} else if ("enabled" in tags && tags.enabled) {
|
|
7824
|
+
return { include: tags.enabled };
|
|
7825
|
+
} else if ("disabled" in tags && tags.disabled) {
|
|
7826
|
+
return { exclude: tags.disabled };
|
|
7827
|
+
}
|
|
7828
|
+
return void 0;
|
|
7829
|
+
})() : void 0;
|
|
7830
|
+
return {
|
|
7831
|
+
overrides: toolOverrides,
|
|
7832
|
+
filters: tagFilters ? {
|
|
7833
|
+
tags: tagFilters
|
|
7834
|
+
} : void 0
|
|
7835
|
+
};
|
|
7836
|
+
};
|
|
7837
|
+
|
|
7838
|
+
// src/models/ToolRouter.ts
|
|
7481
7839
|
var ToolRouter = class {
|
|
7482
|
-
constructor(client) {
|
|
7483
|
-
this.client = client;
|
|
7840
|
+
constructor(client, config) {
|
|
7484
7841
|
this.client = client;
|
|
7842
|
+
this.config = config;
|
|
7485
7843
|
telemetry.instrument(this, "ToolRouter");
|
|
7486
7844
|
}
|
|
7487
7845
|
/**
|
|
7488
|
-
* Creates a
|
|
7846
|
+
* Creates a function that authorizes a toolkit for a user.
|
|
7847
|
+
* @param sessionId {string} The session id to create the authorize function for
|
|
7848
|
+
* @returns {ToolRouterAuthorizeFn} The authorize function
|
|
7849
|
+
*
|
|
7850
|
+
*/
|
|
7851
|
+
createAuthorizeFn = (sessionId) => {
|
|
7852
|
+
const authorizeFn = async (toolkit, options) => {
|
|
7853
|
+
const response = await this.client.toolRouter.session.link(sessionId, {
|
|
7854
|
+
...options ?? {},
|
|
7855
|
+
toolkit
|
|
7856
|
+
});
|
|
7857
|
+
return createConnectionRequest(
|
|
7858
|
+
this.client,
|
|
7859
|
+
response.connected_account_id,
|
|
7860
|
+
ConnectedAccountStatuses.INITIATED,
|
|
7861
|
+
response.redirect_url
|
|
7862
|
+
);
|
|
7863
|
+
};
|
|
7864
|
+
return authorizeFn;
|
|
7865
|
+
};
|
|
7866
|
+
/**
|
|
7867
|
+
*
|
|
7868
|
+
* @param sessionId {string} The session id to create the connections function for
|
|
7869
|
+
* @returns {ToolRouterConectionsFn} The connections function
|
|
7870
|
+
*
|
|
7871
|
+
* @example
|
|
7872
|
+
* ```typescript
|
|
7873
|
+
* import { Composio } from '@composio/core';
|
|
7874
|
+
*
|
|
7875
|
+
* const composio = new Composio();
|
|
7876
|
+
* const sessionId = 'session_123';
|
|
7877
|
+
*
|
|
7878
|
+
* const session = await composio.create(sessionId);
|
|
7879
|
+
* console.log(connections);
|
|
7880
|
+
* ```
|
|
7881
|
+
*/
|
|
7882
|
+
createToolkitsFn = (sessionId) => {
|
|
7883
|
+
const connectionsFn = async (options) => {
|
|
7884
|
+
const result = await this.client.toolRouter.session.toolkits(sessionId, {
|
|
7885
|
+
cursor: options?.nextCursor,
|
|
7886
|
+
limit: options?.limit
|
|
7887
|
+
});
|
|
7888
|
+
const toolkitConnectedStates = result.items.map((item) => {
|
|
7889
|
+
const connectedState = transform(item).with(ToolkitConnectionStateSchema).using((item2) => ({
|
|
7890
|
+
slug: item2.slug,
|
|
7891
|
+
name: item2.name,
|
|
7892
|
+
logo: item2.meta.logo,
|
|
7893
|
+
isNoAuth: false,
|
|
7894
|
+
connection: {
|
|
7895
|
+
isActive: item2.connected_account?.status === "ACTIVE",
|
|
7896
|
+
authConfig: item2.connected_account && {
|
|
7897
|
+
id: item2.connected_account?.auth_config.id,
|
|
7898
|
+
mode: item2.connected_account?.auth_config.auth_scheme,
|
|
7899
|
+
isComposioManaged: item2.connected_account?.auth_config.is_composio_managed
|
|
7900
|
+
},
|
|
7901
|
+
connectedAccount: item2.connected_account ? {
|
|
7902
|
+
id: item2.connected_account.id,
|
|
7903
|
+
status: item2.connected_account.status
|
|
7904
|
+
} : void 0
|
|
7905
|
+
}
|
|
7906
|
+
}));
|
|
7907
|
+
return connectedState;
|
|
7908
|
+
});
|
|
7909
|
+
return {
|
|
7910
|
+
items: toolkitConnectedStates,
|
|
7911
|
+
nextCursor: result.next_cursor,
|
|
7912
|
+
totalPages: result.total_pages
|
|
7913
|
+
};
|
|
7914
|
+
};
|
|
7915
|
+
return connectionsFn;
|
|
7916
|
+
};
|
|
7917
|
+
/**
|
|
7918
|
+
* @internal
|
|
7919
|
+
* Creates a function that wraps the tools based on the provider.
|
|
7920
|
+
* The returned tools will be of the type the frameworks expects.
|
|
7921
|
+
*
|
|
7922
|
+
* @param userId - The user id to get the tools for
|
|
7923
|
+
* @param tools - The tools to wrap
|
|
7924
|
+
* @returns A function that wraps the tools based on the provider.
|
|
7925
|
+
*/
|
|
7926
|
+
createToolsFn = (userId, toolSlugs) => {
|
|
7927
|
+
return async (modifiers) => {
|
|
7928
|
+
const ToolsModel = new Tools(this.client, this.config);
|
|
7929
|
+
const tools = await ToolsModel.get(
|
|
7930
|
+
userId,
|
|
7931
|
+
{
|
|
7932
|
+
tools: toolSlugs
|
|
7933
|
+
},
|
|
7934
|
+
modifiers
|
|
7935
|
+
);
|
|
7936
|
+
return tools;
|
|
7937
|
+
};
|
|
7938
|
+
};
|
|
7939
|
+
/**
|
|
7940
|
+
* Creates a new tool router session for a user.
|
|
7489
7941
|
*
|
|
7490
7942
|
* @param userId {string} The user id to create the session for
|
|
7491
|
-
* @param
|
|
7492
|
-
* @returns {Promise<ToolRouterSession
|
|
7943
|
+
* @param config {ToolRouterConfig} The config for the tool router session
|
|
7944
|
+
* @returns {Promise<ToolRouterSession<TToolCollection, TTool, TProvider>>} The tool router session
|
|
7493
7945
|
*
|
|
7494
7946
|
* @example
|
|
7495
7947
|
* ```typescript
|
|
7496
|
-
* import { Composio }
|
|
7948
|
+
* import { Composio } from '@composio/core';
|
|
7497
7949
|
*
|
|
7498
|
-
* const composio = new Composio()
|
|
7499
|
-
* const userId =
|
|
7950
|
+
* const composio = new Composio();
|
|
7951
|
+
* const userId = 'user_123';
|
|
7500
7952
|
*
|
|
7501
|
-
* const
|
|
7502
|
-
*
|
|
7503
|
-
* })
|
|
7953
|
+
* const session = await composio.create(userId, {
|
|
7954
|
+
* manageConnections: true,
|
|
7955
|
+
* });
|
|
7504
7956
|
*
|
|
7505
|
-
*
|
|
7506
|
-
*
|
|
7507
|
-
*
|
|
7957
|
+
* console.log(session.sessionId);
|
|
7958
|
+
* console.log(session.url);
|
|
7959
|
+
* console.log(session.tools());
|
|
7960
|
+
* console.log(session.toolkits());
|
|
7508
7961
|
* ```
|
|
7509
7962
|
*/
|
|
7510
|
-
async
|
|
7511
|
-
const
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
const toolkitConfig = config.data.toolkits?.map((config2) => {
|
|
7518
|
-
if (typeof config2 === "string") {
|
|
7519
|
-
return { toolkit: config2 };
|
|
7520
|
-
} else {
|
|
7521
|
-
return {
|
|
7522
|
-
toolkit: config2.toolkit,
|
|
7523
|
-
auth_config_id: config2.authConfigId
|
|
7524
|
-
};
|
|
7525
|
-
}
|
|
7526
|
-
});
|
|
7527
|
-
const session = await this.client.toolRouter.createSession({
|
|
7963
|
+
async create(userId, config) {
|
|
7964
|
+
const routerConfig = ToolRouterCreateSessionConfigSchema.parse(config ?? {});
|
|
7965
|
+
const manageConnectedAccounts = typeof routerConfig.manageConnections === "boolean" ? routerConfig.manageConnections : routerConfig.manageConnections?.enabled ?? true;
|
|
7966
|
+
const toolkits = Array.isArray(routerConfig.toolkits) ? { enabled: routerConfig.toolkits } : routerConfig.toolkits;
|
|
7967
|
+
const tools = transformToolRouterToolsParams(routerConfig.tools);
|
|
7968
|
+
const inferScopesFromTools = typeof routerConfig.manageConnections === "object" ? routerConfig.manageConnections.inferScopesFromTools : false;
|
|
7969
|
+
const payload = {
|
|
7528
7970
|
user_id: userId,
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7971
|
+
toolkits,
|
|
7972
|
+
auth_configs: routerConfig.authConfigs,
|
|
7973
|
+
connected_accounts: routerConfig.connectedAccounts,
|
|
7974
|
+
tools,
|
|
7975
|
+
connections: {
|
|
7976
|
+
infer_scopes_from_tools: inferScopesFromTools,
|
|
7977
|
+
auto_manage_connections: manageConnectedAccounts,
|
|
7978
|
+
callback_uri: typeof routerConfig.manageConnections === "object" ? routerConfig.manageConnections.callbackUri : void 0
|
|
7979
|
+
},
|
|
7980
|
+
execution: routerConfig.execution ? {
|
|
7981
|
+
proxy_execution_enabled: routerConfig.execution?.proxyExecutionEnabled,
|
|
7982
|
+
timeout_seconds: routerConfig.execution?.timeoutSeconds
|
|
7983
|
+
} : void 0
|
|
7984
|
+
};
|
|
7985
|
+
const session = await this.client.toolRouter.session.create(payload);
|
|
7986
|
+
return {
|
|
7987
|
+
sessionId: session.session_id,
|
|
7988
|
+
mcp: {
|
|
7989
|
+
type: session.mcp.type,
|
|
7990
|
+
url: session.mcp.url
|
|
7991
|
+
},
|
|
7992
|
+
tools: this.createToolsFn(userId, session.tool_router_tools),
|
|
7993
|
+
authorize: this.createAuthorizeFn(session.session_id),
|
|
7994
|
+
toolkits: this.createToolkitsFn(session.session_id)
|
|
7995
|
+
};
|
|
7996
|
+
}
|
|
7997
|
+
/**
|
|
7998
|
+
* Use an existing session
|
|
7999
|
+
* @param id {string} The id of the session to use
|
|
8000
|
+
* @returns {Promise<ToolRouterSession<TToolCollection, TTool, TProvider>>} The tool router session
|
|
8001
|
+
*
|
|
8002
|
+
* @example
|
|
8003
|
+
* ```typescript
|
|
8004
|
+
* import { Composio } from '@composio/core';
|
|
8005
|
+
*
|
|
8006
|
+
* const composio = new Composio();
|
|
8007
|
+
* const id = 'session_123';
|
|
8008
|
+
* const session = await composio.toolRouter.use(id);
|
|
8009
|
+
*```
|
|
8010
|
+
*/
|
|
8011
|
+
async use(id) {
|
|
8012
|
+
const session = await this.client.toolRouter.session.retrieve(id);
|
|
8013
|
+
return {
|
|
8014
|
+
sessionId: session.session_id,
|
|
8015
|
+
mcp: {
|
|
8016
|
+
type: session.mcp.type,
|
|
8017
|
+
url: session.mcp.url
|
|
8018
|
+
},
|
|
8019
|
+
tools: this.createToolsFn(session.config.user_id, session.tool_router_tools),
|
|
8020
|
+
authorize: this.createAuthorizeFn(session.session_id),
|
|
8021
|
+
toolkits: this.createToolkitsFn(session.session_id)
|
|
8022
|
+
};
|
|
7538
8023
|
}
|
|
7539
8024
|
};
|
|
7540
8025
|
|
|
@@ -7561,6 +8046,11 @@ var Composio = class _Composio {
|
|
|
7561
8046
|
authConfigs;
|
|
7562
8047
|
connectedAccounts;
|
|
7563
8048
|
mcp;
|
|
8049
|
+
/**
|
|
8050
|
+
* Experimental feature, use with caution
|
|
8051
|
+
* @experimental
|
|
8052
|
+
*/
|
|
8053
|
+
toolRouter;
|
|
7564
8054
|
/**
|
|
7565
8055
|
* Experimental features
|
|
7566
8056
|
*/
|
|
@@ -7607,15 +8097,16 @@ var Composio = class _Composio {
|
|
|
7607
8097
|
if (IS_DEVELOPMENT_OR_CI) {
|
|
7608
8098
|
logger_default.debug(`Initializing Composio w API Key: [REDACTED] and baseURL: ${baseURLParsed}`);
|
|
7609
8099
|
}
|
|
8100
|
+
this.provider = config?.provider ?? new OpenAIProvider();
|
|
7610
8101
|
this.config = {
|
|
7611
8102
|
...config,
|
|
7612
8103
|
baseURL: baseURLParsed,
|
|
7613
8104
|
apiKey: apiKeyParsed,
|
|
7614
8105
|
toolkitVersions: getToolkitVersionsFromEnv(config?.toolkitVersions),
|
|
7615
8106
|
allowTracking: config?.allowTracking ?? true,
|
|
7616
|
-
autoUploadDownloadFiles: config?.autoUploadDownloadFiles ?? true
|
|
8107
|
+
autoUploadDownloadFiles: config?.autoUploadDownloadFiles ?? true,
|
|
8108
|
+
provider: config?.provider ?? this.provider
|
|
7617
8109
|
};
|
|
7618
|
-
this.provider = config?.provider ?? new OpenAIProvider();
|
|
7619
8110
|
const defaultHeaders = getDefaultHeaders(this.config.defaultHeaders, this.provider);
|
|
7620
8111
|
this.client = new import_client8.default({
|
|
7621
8112
|
apiKey: apiKeyParsed,
|
|
@@ -7623,21 +8114,21 @@ var Composio = class _Composio {
|
|
|
7623
8114
|
defaultHeaders,
|
|
7624
8115
|
logLevel: COMPOSIO_LOG_LEVEL
|
|
7625
8116
|
});
|
|
7626
|
-
this.tools = new Tools(this.client, this.
|
|
8117
|
+
this.tools = new Tools(this.client, this.config);
|
|
7627
8118
|
this.mcp = new MCP(this.client);
|
|
7628
8119
|
this.toolkits = new Toolkits(this.client);
|
|
7629
8120
|
this.triggers = new Triggers(this.client, this.config);
|
|
7630
8121
|
this.authConfigs = new AuthConfigs(this.client);
|
|
7631
8122
|
this.files = new Files(this.client);
|
|
7632
8123
|
this.connectedAccounts = new ConnectedAccounts(this.client);
|
|
8124
|
+
this.toolRouter = new ToolRouter(this.client, this.config);
|
|
7633
8125
|
this.experimental = {
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
toolRouter: new ToolRouter(this.client)
|
|
8126
|
+
create: async (userId, routerConfig) => {
|
|
8127
|
+
return this.toolRouter.create(userId, routerConfig);
|
|
8128
|
+
},
|
|
8129
|
+
use: async (id) => {
|
|
8130
|
+
return this.toolRouter.use(id);
|
|
8131
|
+
}
|
|
7641
8132
|
};
|
|
7642
8133
|
this.deprecated = {
|
|
7643
8134
|
/**
|
|
@@ -7996,6 +8487,7 @@ var AuthScheme = class {
|
|
|
7996
8487
|
MCPServerCreateResponseSchema,
|
|
7997
8488
|
MCPServerListResponseSchema,
|
|
7998
8489
|
MCPServerSchema,
|
|
8490
|
+
MCPServerTypeSchema,
|
|
7999
8491
|
MCPServerUpdateParamsSchema,
|
|
8000
8492
|
MCPSingleAppServerSchema,
|
|
8001
8493
|
MCPToolkitConfigSchema,
|
|
@@ -8030,15 +8522,25 @@ var AuthScheme = class {
|
|
|
8030
8522
|
ToolListParamsSchema,
|
|
8031
8523
|
ToolListResponseSchema,
|
|
8032
8524
|
ToolProxyParamsSchema,
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8525
|
+
ToolRouterConfigManageConnectionsSchema,
|
|
8526
|
+
ToolRouterConfigTagsSchema,
|
|
8527
|
+
ToolRouterConfigToolsSchema,
|
|
8528
|
+
ToolRouterCreateSessionConfigSchema,
|
|
8529
|
+
ToolRouterDisabledTagsConfigSchema,
|
|
8530
|
+
ToolRouterEnabledTagsConfigSchema,
|
|
8531
|
+
ToolRouterManageConnectionsConfigSchema,
|
|
8532
|
+
ToolRouterTagsParamSchema,
|
|
8533
|
+
ToolRouterToolkitsDisabledConfigSchema,
|
|
8534
|
+
ToolRouterToolkitsEnabledConfigSchema,
|
|
8535
|
+
ToolRouterToolkitsParamSchema,
|
|
8536
|
+
ToolRouterToolsParamSchema,
|
|
8037
8537
|
ToolSchema,
|
|
8038
8538
|
ToolkitAuthConfigDetailsSchema,
|
|
8039
8539
|
ToolkitAuthFieldSchema,
|
|
8040
8540
|
ToolkitAuthFieldsResponseSchema,
|
|
8041
8541
|
ToolkitCategorySchema,
|
|
8542
|
+
ToolkitConnectionStateSchema,
|
|
8543
|
+
ToolkitConnectionsDetailsSchema,
|
|
8042
8544
|
ToolkitErrorCodes,
|
|
8043
8545
|
ToolkitMangedByEnumSchema,
|
|
8044
8546
|
ToolkitRetrieveCategoriesResponseSchema,
|