@composio/core 0.8.0 → 0.9.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/{CustomTool-DCrZcOUW.d.cts → CustomTool-87USJ2u0.d.cts} +1 -1
- package/dist/{CustomTool-DJVmDusu.d.mts → CustomTool-BNxqr6BI.d.mts} +1 -1
- package/dist/{CustomTool-CVwF_isu.mjs → CustomTool-DOE7hgw6.mjs} +232 -27
- package/dist/{CustomTool-DnCSEC6t.cjs → CustomTool-Dj4fNvsu.cjs} +279 -26
- package/dist/{composio-DH5gDW5F.d.mts → composio-BJW2NaoA.d.mts} +110 -79
- package/dist/{composio-Dzaqn_PS.d.cts → composio-DTntXzL-.d.cts} +110 -79
- package/dist/{customTool.types-Xk-tbwbc.d.mts → customTool.types-B3HG185y.d.mts} +401 -32
- package/dist/{customTool.types-BqC41wRt.d.cts → customTool.types-Bd8ylotX.d.cts} +401 -32
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.mts +3 -3
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.cjs +574 -85
- package/dist/index.d.cts +84 -8
- package/dist/index.d.mts +84 -8
- package/dist/index.mjs +570 -88
- package/dist/{tool.types-Cb-o48UU.d.mts → tool.types-CB_4JKhV.d.mts} +601 -38
- package/dist/{tool.types-B4k2Bnxc.d.cts → tool.types-CwbAy9l_.d.cts} +601 -38
- package/dist/{types-BR-1DJRJ.d.mts → types-BClz5lKM.d.mts} +2 -2
- package/dist/{types-gjJ_hDol.d.cts → types-jsOgjrWN.d.cts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +4 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +4 -4
- 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.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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as SessionMetaToolOptions, nn as ConnectionDataSchema, o as Tool, q as BaseComposioProvider, tn as ConnectionData, v as ToolProxyParams } from "./tool.types-
|
|
1
|
+
import { R as SessionMetaToolOptions, nn as ConnectionDataSchema, o as Tool, q as BaseComposioProvider, tn as ConnectionData, v as ToolProxyParams } from "./tool.types-CB_4JKhV.mjs";
|
|
2
2
|
import { Composio } from "@composio/client";
|
|
3
3
|
import z, { z as z$1 } from "zod/v3";
|
|
4
4
|
import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
|
|
5
|
-
import { ToolExecuteResponse } from "@composio/client/resources/tools";
|
|
6
5
|
import { SessionCreateParams, SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
|
|
6
|
+
import { ToolExecuteResponse } from "@composio/client/resources/tools";
|
|
7
7
|
|
|
8
8
|
//#region src/types/connectedAccounts.types.d.ts
|
|
9
9
|
/**
|
|
@@ -16,8 +16,9 @@ declare const ConnectedAccountStatuses: {
|
|
|
16
16
|
readonly FAILED: "FAILED";
|
|
17
17
|
readonly EXPIRED: "EXPIRED";
|
|
18
18
|
readonly INACTIVE: "INACTIVE";
|
|
19
|
+
readonly REVOKED: "REVOKED";
|
|
19
20
|
};
|
|
20
|
-
declare const ConnectedAccountStatusSchema: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
|
|
21
|
+
declare const ConnectedAccountStatusSchema: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
21
22
|
type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
|
|
22
23
|
type ConnectedAccountStatusEnum = z$1.infer<typeof ConnectedAccountStatusSchema>;
|
|
23
24
|
declare const CreateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
@@ -85,14 +86,14 @@ type CreateConnectedAccountParams = z$1.infer<typeof CreateConnectedAccountParam
|
|
|
85
86
|
*/
|
|
86
87
|
declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
|
|
87
88
|
id: z$1.ZodString;
|
|
88
|
-
status: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
|
|
89
|
+
status: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
89
90
|
redirectUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
90
91
|
}, "strip", z$1.ZodTypeAny, {
|
|
91
|
-
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
|
|
92
|
+
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
92
93
|
redirectUrl: string | null;
|
|
93
94
|
id: string;
|
|
94
95
|
}, {
|
|
95
|
-
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
|
|
96
|
+
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
96
97
|
redirectUrl: string | null;
|
|
97
98
|
id: string;
|
|
98
99
|
}>;
|
|
@@ -145,7 +146,7 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
|
145
146
|
cursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
146
147
|
limit: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
147
148
|
orderBy: z$1.ZodOptional<z$1.ZodEnum<["created_at", "updated_at"]>>;
|
|
148
|
-
statuses: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>, "many">>>;
|
|
149
|
+
statuses: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>, "many">>>;
|
|
149
150
|
toolkitSlugs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
150
151
|
userIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
151
152
|
}, "strip", z$1.ZodTypeAny, {
|
|
@@ -153,7 +154,7 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
|
153
154
|
authConfigIds?: string[] | null | undefined;
|
|
154
155
|
cursor?: string | null | undefined;
|
|
155
156
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
156
|
-
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
157
|
+
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
157
158
|
toolkitSlugs?: string[] | null | undefined;
|
|
158
159
|
userIds?: string[] | null | undefined;
|
|
159
160
|
}, {
|
|
@@ -161,7 +162,7 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
|
161
162
|
authConfigIds?: string[] | null | undefined;
|
|
162
163
|
cursor?: string | null | undefined;
|
|
163
164
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
164
|
-
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
165
|
+
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
165
166
|
toolkitSlugs?: string[] | null | undefined;
|
|
166
167
|
userIds?: string[] | null | undefined;
|
|
167
168
|
}>;
|
|
@@ -271,12 +272,22 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
271
272
|
* Human-readable alias for the connected account. Must be unique per userId and toolkit within the project.
|
|
272
273
|
*/
|
|
273
274
|
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
275
|
+
/**
|
|
276
|
+
* Whether to allow multiple connected accounts for the same user and auth config.
|
|
277
|
+
* When `false` (default), `link()` throws `ComposioMultipleConnectedAccountsError`
|
|
278
|
+
* if the user already has an `ACTIVE` connection on this auth config — matching
|
|
279
|
+
* the guard on `initiate()`. Pair with `alias` and a session-level
|
|
280
|
+
* `multiAccount` config to disambiguate at execution time.
|
|
281
|
+
*/
|
|
282
|
+
allowMultiple: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
274
283
|
}, "strip", z$1.ZodTypeAny, {
|
|
275
284
|
callbackUrl?: string | undefined;
|
|
276
285
|
alias?: string | undefined;
|
|
286
|
+
allowMultiple?: boolean | undefined;
|
|
277
287
|
}, {
|
|
278
288
|
callbackUrl?: string | undefined;
|
|
279
289
|
alias?: string | undefined;
|
|
290
|
+
allowMultiple?: boolean | undefined;
|
|
280
291
|
}>;
|
|
281
292
|
type CreateConnectedAccountLinkOptions = z$1.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
282
293
|
declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
|
|
@@ -666,8 +677,26 @@ declare class ToolRouterSessionFilesMount {
|
|
|
666
677
|
}
|
|
667
678
|
//#endregion
|
|
668
679
|
//#region src/types/toolRouter.types.d.ts
|
|
680
|
+
declare const SessionPreset: {
|
|
681
|
+
readonly DIRECT_TOOLS: "direct_tools";
|
|
682
|
+
};
|
|
683
|
+
type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
|
|
669
684
|
declare const MCPServerTypeSchema: z.ZodEnum<["http", "sse"]>;
|
|
670
685
|
type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
|
|
686
|
+
/**
|
|
687
|
+
* Sandbox compute tier for the tool router workbench.
|
|
688
|
+
*
|
|
689
|
+
* | Tier | vCPU | RAM |
|
|
690
|
+
* | -------- | ---- | ----- |
|
|
691
|
+
* | standard | 1 | 1 GB |
|
|
692
|
+
* | medium | 2 | 2 GB |
|
|
693
|
+
* | large | 4 | 4 GB |
|
|
694
|
+
* | xlarge | 8 | 8 GB |
|
|
695
|
+
*
|
|
696
|
+
* Defaults to `standard` server-side when omitted.
|
|
697
|
+
*/
|
|
698
|
+
declare const SandboxSizeSchema: z.ZodEnum<["standard", "medium", "large", "xlarge"]>;
|
|
699
|
+
type SandboxSize = z.infer<typeof SandboxSizeSchema>;
|
|
671
700
|
declare const ToolRouterConfigManageConnectionsSchema: z.ZodObject<{
|
|
672
701
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
673
702
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -805,7 +834,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
|
805
834
|
};
|
|
806
835
|
}>;
|
|
807
836
|
type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
|
|
808
|
-
declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
837
|
+
declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
838
|
+
sessionPreset: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"direct_tools">>>;
|
|
809
839
|
tools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
810
840
|
enable: z.ZodArray<z.ZodString, "many">;
|
|
811
841
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -882,7 +912,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
882
912
|
enable: string[];
|
|
883
913
|
}>]>>>;
|
|
884
914
|
authConfigs: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
885
|
-
connectedAccounts: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString
|
|
915
|
+
connectedAccounts: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
886
916
|
manageConnections: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
887
917
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
888
918
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -900,14 +930,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
900
930
|
enable: z.ZodDefault<z.ZodBoolean>;
|
|
901
931
|
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
902
932
|
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
933
|
+
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
903
934
|
}, "strip", z.ZodTypeAny, {
|
|
904
935
|
enable: boolean;
|
|
905
936
|
enableProxyExecution?: boolean | undefined;
|
|
906
937
|
autoOffloadThreshold?: number | undefined;
|
|
938
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
907
939
|
}, {
|
|
908
940
|
enable?: boolean | undefined;
|
|
909
941
|
enableProxyExecution?: boolean | undefined;
|
|
910
942
|
autoOffloadThreshold?: number | undefined;
|
|
943
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
911
944
|
}>>>;
|
|
912
945
|
multiAccount: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
913
946
|
enable: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -922,6 +955,13 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
922
955
|
maxAccountsPerToolkit?: number | undefined;
|
|
923
956
|
requireExplicitSelection?: boolean | undefined;
|
|
924
957
|
}>>>;
|
|
958
|
+
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
959
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
960
|
+
}, "strict", z.ZodTypeAny, {
|
|
961
|
+
tools?: string[] | "all" | undefined;
|
|
962
|
+
}, {
|
|
963
|
+
tools?: string[] | "all" | undefined;
|
|
964
|
+
}>>>;
|
|
925
965
|
experimental: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
926
966
|
assistivePrompt: z.ZodOptional<z.ZodObject<{
|
|
927
967
|
userTimezone: z.ZodOptional<z.ZodString>;
|
|
@@ -965,8 +1005,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
965
1005
|
} | {
|
|
966
1006
|
enable: string[];
|
|
967
1007
|
} | undefined;
|
|
1008
|
+
preload?: {
|
|
1009
|
+
tools?: string[] | "all" | undefined;
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
968
1012
|
authConfigs?: Record<string, string> | undefined;
|
|
969
|
-
connectedAccounts?: Record<string, string> | undefined;
|
|
1013
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
970
1014
|
manageConnections?: boolean | {
|
|
971
1015
|
callbackUrl?: string | undefined;
|
|
972
1016
|
enable?: boolean | undefined;
|
|
@@ -976,6 +1020,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
976
1020
|
enable: boolean;
|
|
977
1021
|
enableProxyExecution?: boolean | undefined;
|
|
978
1022
|
autoOffloadThreshold?: number | undefined;
|
|
1023
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
979
1024
|
} | undefined;
|
|
980
1025
|
multiAccount?: {
|
|
981
1026
|
enable: boolean;
|
|
@@ -1009,8 +1054,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
1009
1054
|
} | {
|
|
1010
1055
|
enable: string[];
|
|
1011
1056
|
} | undefined;
|
|
1057
|
+
preload?: {
|
|
1058
|
+
tools?: string[] | "all" | undefined;
|
|
1059
|
+
} | undefined;
|
|
1060
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1012
1061
|
authConfigs?: Record<string, string> | undefined;
|
|
1013
|
-
connectedAccounts?: Record<string, string> | undefined;
|
|
1062
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1014
1063
|
manageConnections?: boolean | {
|
|
1015
1064
|
callbackUrl?: string | undefined;
|
|
1016
1065
|
enable?: boolean | undefined;
|
|
@@ -1020,6 +1069,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
1020
1069
|
enable?: boolean | undefined;
|
|
1021
1070
|
enableProxyExecution?: boolean | undefined;
|
|
1022
1071
|
autoOffloadThreshold?: number | undefined;
|
|
1072
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1023
1073
|
} | undefined;
|
|
1024
1074
|
multiAccount?: {
|
|
1025
1075
|
enable?: boolean | undefined;
|
|
@@ -1033,15 +1083,65 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
1033
1083
|
customTools?: CustomTool[] | undefined;
|
|
1034
1084
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1035
1085
|
} | undefined;
|
|
1036
|
-
}
|
|
1086
|
+
}>, {
|
|
1087
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1088
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1089
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1090
|
+
} | undefined;
|
|
1091
|
+
tools?: Record<string, string[] | {
|
|
1092
|
+
enable: string[];
|
|
1093
|
+
} | {
|
|
1094
|
+
disable: string[];
|
|
1095
|
+
} | {
|
|
1096
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1097
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1098
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1099
|
+
};
|
|
1100
|
+
}> | undefined;
|
|
1101
|
+
toolkits?: string[] | {
|
|
1102
|
+
disable: string[];
|
|
1103
|
+
} | {
|
|
1104
|
+
enable: string[];
|
|
1105
|
+
} | undefined;
|
|
1106
|
+
preload?: {
|
|
1107
|
+
tools?: string[] | "all" | undefined;
|
|
1108
|
+
} | undefined;
|
|
1109
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1110
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1111
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1112
|
+
manageConnections?: boolean | {
|
|
1113
|
+
callbackUrl?: string | undefined;
|
|
1114
|
+
enable?: boolean | undefined;
|
|
1115
|
+
waitForConnections?: boolean | undefined;
|
|
1116
|
+
} | undefined;
|
|
1117
|
+
workbench?: {
|
|
1118
|
+
enable: boolean;
|
|
1119
|
+
enableProxyExecution?: boolean | undefined;
|
|
1120
|
+
autoOffloadThreshold?: number | undefined;
|
|
1121
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
multiAccount?: {
|
|
1124
|
+
enable: boolean;
|
|
1125
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
1126
|
+
requireExplicitSelection?: boolean | undefined;
|
|
1127
|
+
} | undefined;
|
|
1128
|
+
experimental?: {
|
|
1129
|
+
assistivePrompt?: {
|
|
1130
|
+
userTimezone?: string | undefined;
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
customTools?: CustomTool[] | undefined;
|
|
1133
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1134
|
+
} | undefined;
|
|
1135
|
+
}, unknown>;
|
|
1037
1136
|
/**
|
|
1038
1137
|
* The config for the tool router session.
|
|
1039
1138
|
*
|
|
1139
|
+
* @param {SessionPreset} [sessionPreset] - Shortcut that exposes every tool allowed by the session filters directly in session.tools() and the MCP tool list. Disables search, multi-execute, manage-connections, and workbench by default; explicit overrides for supported fields still win. Without this preset, ToolRouter uses the default configuration with meta tools enabled.
|
|
1040
1140
|
* @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
|
|
1041
1141
|
* @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
|
|
1042
1142
|
* @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
|
|
1043
1143
|
* @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
|
|
1044
|
-
* @param {Record<string, string>} connectedAccounts - The connected accounts to use in the tool router session
|
|
1144
|
+
* @param {Record<string, string | string[]>} connectedAccounts - The connected accounts to use in the tool router session. A single string is coerced to a single-element array before being sent to the backend.
|
|
1045
1145
|
* @param {ToolRouterConfigManageConnectionsSchema | boolean} manageConnections - 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.
|
|
1046
1146
|
* @param {boolean} [manageConnections.enable] - Whether to use tools to manage connections in the tool router session @default true
|
|
1047
1147
|
* @param {string} [manageConnections.callbackUrl] - The callback url to use in the tool router session
|
|
@@ -1049,10 +1149,13 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
1049
1149
|
* @param {boolean} [workbench.enable] - Whether to enable the workbench entirely. Defaults to true. When false, no code execution tools are available.
|
|
1050
1150
|
* @param {boolean} [workbench.enableProxyExecution] - Whether to enable proxy execution
|
|
1051
1151
|
* @param {number} [workbench.autoOffloadThreshold] - Auto offload threshold in characters for moving execution to workbench
|
|
1152
|
+
* @param {SandboxSize} [workbench.sandboxSize] - Sandbox compute tier: 'standard' (1 vCPU/1 GB, default), 'medium' (2 vCPU/2 GB), 'large' (4 vCPU/4 GB), or 'xlarge' (8 vCPU/8 GB)
|
|
1052
1153
|
* @param {object} [multiAccount] - Multi-account configuration for this session
|
|
1053
1154
|
* @param {boolean} [multiAccount.enable] - When true, enables multi-account mode. Falls back to org/project-level config when not set.
|
|
1054
1155
|
* @param {number} [multiAccount.maxAccountsPerToolkit] - Max connected accounts per toolkit (2-10, default 5)
|
|
1055
1156
|
* @param {boolean} [multiAccount.requireExplicitSelection] - When true, require explicit account selection when multiple accounts are connected
|
|
1157
|
+
* @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
|
|
1158
|
+
* @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
|
|
1056
1159
|
*/
|
|
1057
1160
|
type ToolRouterCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
|
|
1058
1161
|
declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
@@ -1067,13 +1170,13 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1067
1170
|
mode: z.ZodString;
|
|
1068
1171
|
isComposioManaged: z.ZodBoolean;
|
|
1069
1172
|
}, "strip", z.ZodTypeAny, {
|
|
1070
|
-
mode: string;
|
|
1071
1173
|
id: string;
|
|
1072
1174
|
isComposioManaged: boolean;
|
|
1073
|
-
}, {
|
|
1074
1175
|
mode: string;
|
|
1176
|
+
}, {
|
|
1075
1177
|
id: string;
|
|
1076
1178
|
isComposioManaged: boolean;
|
|
1179
|
+
mode: string;
|
|
1077
1180
|
}>>>;
|
|
1078
1181
|
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1079
1182
|
id: z.ZodString;
|
|
@@ -1088,9 +1191,9 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1088
1191
|
}, "strip", z.ZodTypeAny, {
|
|
1089
1192
|
isActive: boolean;
|
|
1090
1193
|
authConfig?: {
|
|
1091
|
-
mode: string;
|
|
1092
1194
|
id: string;
|
|
1093
1195
|
isComposioManaged: boolean;
|
|
1196
|
+
mode: string;
|
|
1094
1197
|
} | null | undefined;
|
|
1095
1198
|
connectedAccount?: {
|
|
1096
1199
|
status: string;
|
|
@@ -1099,9 +1202,9 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1099
1202
|
}, {
|
|
1100
1203
|
isActive: boolean;
|
|
1101
1204
|
authConfig?: {
|
|
1102
|
-
mode: string;
|
|
1103
1205
|
id: string;
|
|
1104
1206
|
isComposioManaged: boolean;
|
|
1207
|
+
mode: string;
|
|
1105
1208
|
} | null | undefined;
|
|
1106
1209
|
connectedAccount?: {
|
|
1107
1210
|
status: string;
|
|
@@ -1116,9 +1219,9 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1116
1219
|
connection?: {
|
|
1117
1220
|
isActive: boolean;
|
|
1118
1221
|
authConfig?: {
|
|
1119
|
-
mode: string;
|
|
1120
1222
|
id: string;
|
|
1121
1223
|
isComposioManaged: boolean;
|
|
1224
|
+
mode: string;
|
|
1122
1225
|
} | null | undefined;
|
|
1123
1226
|
connectedAccount?: {
|
|
1124
1227
|
status: string;
|
|
@@ -1133,9 +1236,9 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1133
1236
|
connection?: {
|
|
1134
1237
|
isActive: boolean;
|
|
1135
1238
|
authConfig?: {
|
|
1136
|
-
mode: string;
|
|
1137
1239
|
id: string;
|
|
1138
1240
|
isComposioManaged: boolean;
|
|
1241
|
+
mode: string;
|
|
1139
1242
|
} | null | undefined;
|
|
1140
1243
|
connectedAccount?: {
|
|
1141
1244
|
status: string;
|
|
@@ -1156,13 +1259,13 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1156
1259
|
mode: z.ZodString;
|
|
1157
1260
|
isComposioManaged: z.ZodBoolean;
|
|
1158
1261
|
}, "strip", z.ZodTypeAny, {
|
|
1159
|
-
mode: string;
|
|
1160
1262
|
id: string;
|
|
1161
1263
|
isComposioManaged: boolean;
|
|
1162
|
-
}, {
|
|
1163
1264
|
mode: string;
|
|
1265
|
+
}, {
|
|
1164
1266
|
id: string;
|
|
1165
1267
|
isComposioManaged: boolean;
|
|
1268
|
+
mode: string;
|
|
1166
1269
|
}>>>;
|
|
1167
1270
|
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1168
1271
|
id: z.ZodString;
|
|
@@ -1177,9 +1280,9 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1177
1280
|
}, "strip", z.ZodTypeAny, {
|
|
1178
1281
|
isActive: boolean;
|
|
1179
1282
|
authConfig?: {
|
|
1180
|
-
mode: string;
|
|
1181
1283
|
id: string;
|
|
1182
1284
|
isComposioManaged: boolean;
|
|
1285
|
+
mode: string;
|
|
1183
1286
|
} | null | undefined;
|
|
1184
1287
|
connectedAccount?: {
|
|
1185
1288
|
status: string;
|
|
@@ -1188,9 +1291,9 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1188
1291
|
}, {
|
|
1189
1292
|
isActive: boolean;
|
|
1190
1293
|
authConfig?: {
|
|
1191
|
-
mode: string;
|
|
1192
1294
|
id: string;
|
|
1193
1295
|
isComposioManaged: boolean;
|
|
1296
|
+
mode: string;
|
|
1194
1297
|
} | null | undefined;
|
|
1195
1298
|
connectedAccount?: {
|
|
1196
1299
|
status: string;
|
|
@@ -1205,9 +1308,9 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1205
1308
|
connection?: {
|
|
1206
1309
|
isActive: boolean;
|
|
1207
1310
|
authConfig?: {
|
|
1208
|
-
mode: string;
|
|
1209
1311
|
id: string;
|
|
1210
1312
|
isComposioManaged: boolean;
|
|
1313
|
+
mode: string;
|
|
1211
1314
|
} | null | undefined;
|
|
1212
1315
|
connectedAccount?: {
|
|
1213
1316
|
status: string;
|
|
@@ -1222,9 +1325,9 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1222
1325
|
connection?: {
|
|
1223
1326
|
isActive: boolean;
|
|
1224
1327
|
authConfig?: {
|
|
1225
|
-
mode: string;
|
|
1226
1328
|
id: string;
|
|
1227
1329
|
isComposioManaged: boolean;
|
|
1330
|
+
mode: string;
|
|
1228
1331
|
} | null | undefined;
|
|
1229
1332
|
connectedAccount?: {
|
|
1230
1333
|
status: string;
|
|
@@ -1243,9 +1346,9 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1243
1346
|
connection?: {
|
|
1244
1347
|
isActive: boolean;
|
|
1245
1348
|
authConfig?: {
|
|
1246
|
-
mode: string;
|
|
1247
1349
|
id: string;
|
|
1248
1350
|
isComposioManaged: boolean;
|
|
1351
|
+
mode: string;
|
|
1249
1352
|
} | null | undefined;
|
|
1250
1353
|
connectedAccount?: {
|
|
1251
1354
|
status: string;
|
|
@@ -1264,9 +1367,9 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1264
1367
|
connection?: {
|
|
1265
1368
|
isActive: boolean;
|
|
1266
1369
|
authConfig?: {
|
|
1267
|
-
mode: string;
|
|
1268
1370
|
id: string;
|
|
1269
1371
|
isComposioManaged: boolean;
|
|
1372
|
+
mode: string;
|
|
1270
1373
|
} | null | undefined;
|
|
1271
1374
|
connectedAccount?: {
|
|
1272
1375
|
status: string;
|
|
@@ -1648,7 +1751,25 @@ type ToolRouterSessionSearchFn = (params: {
|
|
|
1648
1751
|
query: string;
|
|
1649
1752
|
toolkits?: string[];
|
|
1650
1753
|
}) => Promise<ToolRouterSessionSearchResponse>;
|
|
1651
|
-
type ToolRouterSessionExecuteFn = (toolSlug: string, arguments_?: Record<string, unknown
|
|
1754
|
+
type ToolRouterSessionExecuteFn = (toolSlug: string, arguments_?: Record<string, unknown>, options?: ToolRouterSessionExecuteOptions) => Promise<ToolRouterSessionExecuteResponse>;
|
|
1755
|
+
interface ToolRouterSessionExecuteOptions {
|
|
1756
|
+
/**
|
|
1757
|
+
* Account identifier for direct app tool execution in multi-account sessions.
|
|
1758
|
+
* Meta/helper tools either ignore this top-level field or define
|
|
1759
|
+
* their own account-selection fields, for example
|
|
1760
|
+
* COMPOSIO_MULTI_EXECUTE_TOOL.tools[].account.
|
|
1761
|
+
*/
|
|
1762
|
+
account?: string;
|
|
1763
|
+
}
|
|
1764
|
+
type ToolRouterSessionPreloadConfig = SessionCreateResponse.Config.Preload;
|
|
1765
|
+
type ToolRouterSessionWarning = SessionCreateResponse.Warning;
|
|
1766
|
+
interface ToolRouterSessionMetadata {
|
|
1767
|
+
preload?: ToolRouterSessionPreloadConfig;
|
|
1768
|
+
configVersion?: number;
|
|
1769
|
+
warnings?: ToolRouterSessionWarning[];
|
|
1770
|
+
preloadedCustomToolSlugs?: string[];
|
|
1771
|
+
inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
|
|
1772
|
+
}
|
|
1652
1773
|
declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
1653
1774
|
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */
|
|
1654
1775
|
toolkit: z.ZodString;
|
|
@@ -1695,10 +1816,228 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
|
1695
1816
|
}>;
|
|
1696
1817
|
type SessionProxyExecuteParams = z.infer<typeof SessionProxyExecuteParamsSchema>;
|
|
1697
1818
|
type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
1819
|
+
declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
1820
|
+
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1821
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1822
|
+
}, "strict", z.ZodTypeAny, {
|
|
1823
|
+
disable: string[];
|
|
1824
|
+
}, {
|
|
1825
|
+
disable: string[];
|
|
1826
|
+
}>, z.ZodObject<{
|
|
1827
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1828
|
+
}, "strict", z.ZodTypeAny, {
|
|
1829
|
+
enable: string[];
|
|
1830
|
+
}, {
|
|
1831
|
+
enable: string[];
|
|
1832
|
+
}>]>>>;
|
|
1833
|
+
tools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1834
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1835
|
+
}, "strict", z.ZodTypeAny, {
|
|
1836
|
+
enable: string[];
|
|
1837
|
+
}, {
|
|
1838
|
+
enable: string[];
|
|
1839
|
+
}>, z.ZodObject<{
|
|
1840
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1841
|
+
}, "strict", z.ZodTypeAny, {
|
|
1842
|
+
disable: string[];
|
|
1843
|
+
}, {
|
|
1844
|
+
disable: string[];
|
|
1845
|
+
}>, z.ZodObject<{
|
|
1846
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1847
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1848
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1849
|
+
}, "strict", z.ZodTypeAny, {
|
|
1850
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1851
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1852
|
+
}, {
|
|
1853
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1854
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1855
|
+
}>]>;
|
|
1856
|
+
}, "strict", z.ZodTypeAny, {
|
|
1857
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1858
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1859
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1860
|
+
};
|
|
1861
|
+
}, {
|
|
1862
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1863
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1864
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1865
|
+
};
|
|
1866
|
+
}>]>, string[] | {
|
|
1867
|
+
enable: string[];
|
|
1868
|
+
} | {
|
|
1869
|
+
disable: string[];
|
|
1870
|
+
} | {
|
|
1871
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1872
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1873
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1874
|
+
};
|
|
1875
|
+
}, string[] | {
|
|
1876
|
+
enable: string[];
|
|
1877
|
+
} | {
|
|
1878
|
+
disable: string[];
|
|
1879
|
+
} | {
|
|
1880
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1881
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1882
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1883
|
+
};
|
|
1884
|
+
}>]>>>>;
|
|
1885
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1886
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1887
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1888
|
+
}, "strict", z.ZodTypeAny, {
|
|
1889
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1890
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1891
|
+
}, {
|
|
1892
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1893
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1894
|
+
}>]>>>;
|
|
1895
|
+
authConfigs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1896
|
+
connectedAccounts: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>;
|
|
1897
|
+
manageConnections: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
1898
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1899
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1900
|
+
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
1901
|
+
}, "strict", z.ZodTypeAny, {
|
|
1902
|
+
callbackUrl?: string | undefined;
|
|
1903
|
+
enable?: boolean | undefined;
|
|
1904
|
+
waitForConnections?: boolean | undefined;
|
|
1905
|
+
}, {
|
|
1906
|
+
callbackUrl?: string | undefined;
|
|
1907
|
+
enable?: boolean | undefined;
|
|
1908
|
+
waitForConnections?: boolean | undefined;
|
|
1909
|
+
}>]>>>>;
|
|
1910
|
+
workbench: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1911
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
1912
|
+
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
1913
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1914
|
+
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
1915
|
+
}, "strip", z.ZodTypeAny, {
|
|
1916
|
+
enable?: boolean | undefined;
|
|
1917
|
+
enableProxyExecution?: boolean | undefined;
|
|
1918
|
+
autoOffloadThreshold?: number | undefined;
|
|
1919
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1920
|
+
}, {
|
|
1921
|
+
enable?: boolean | undefined;
|
|
1922
|
+
enableProxyExecution?: boolean | undefined;
|
|
1923
|
+
autoOffloadThreshold?: number | undefined;
|
|
1924
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1925
|
+
}>>>>;
|
|
1926
|
+
multiAccount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1927
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
1928
|
+
maxAccountsPerToolkit: z.ZodOptional<z.ZodNumber>;
|
|
1929
|
+
requireExplicitSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1930
|
+
}, "strip", z.ZodTypeAny, {
|
|
1931
|
+
enable?: boolean | undefined;
|
|
1932
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
1933
|
+
requireExplicitSelection?: boolean | undefined;
|
|
1934
|
+
}, {
|
|
1935
|
+
enable?: boolean | undefined;
|
|
1936
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
1937
|
+
requireExplicitSelection?: boolean | undefined;
|
|
1938
|
+
}>>>>;
|
|
1939
|
+
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1940
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
1941
|
+
}, "strict", z.ZodTypeAny, {
|
|
1942
|
+
tools?: string[] | "all" | undefined;
|
|
1943
|
+
}, {
|
|
1944
|
+
tools?: string[] | "all" | undefined;
|
|
1945
|
+
}>>>;
|
|
1946
|
+
}, "strip", z.ZodTypeAny, {
|
|
1947
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1948
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1949
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1950
|
+
} | undefined;
|
|
1951
|
+
tools?: Record<string, string[] | {
|
|
1952
|
+
enable: string[];
|
|
1953
|
+
} | {
|
|
1954
|
+
disable: string[];
|
|
1955
|
+
} | {
|
|
1956
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1957
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1958
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1959
|
+
};
|
|
1960
|
+
}> | undefined;
|
|
1961
|
+
toolkits?: string[] | {
|
|
1962
|
+
disable: string[];
|
|
1963
|
+
} | {
|
|
1964
|
+
enable: string[];
|
|
1965
|
+
} | undefined;
|
|
1966
|
+
preload?: {
|
|
1967
|
+
tools?: string[] | "all" | undefined;
|
|
1968
|
+
} | undefined;
|
|
1969
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1970
|
+
connectedAccounts?: Record<string, string[]> | undefined;
|
|
1971
|
+
manageConnections?: boolean | {
|
|
1972
|
+
callbackUrl?: string | undefined;
|
|
1973
|
+
enable?: boolean | undefined;
|
|
1974
|
+
waitForConnections?: boolean | undefined;
|
|
1975
|
+
} | null | undefined;
|
|
1976
|
+
workbench?: {
|
|
1977
|
+
enable?: boolean | undefined;
|
|
1978
|
+
enableProxyExecution?: boolean | undefined;
|
|
1979
|
+
autoOffloadThreshold?: number | undefined;
|
|
1980
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1981
|
+
} | null | undefined;
|
|
1982
|
+
multiAccount?: {
|
|
1983
|
+
enable?: boolean | undefined;
|
|
1984
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
1985
|
+
requireExplicitSelection?: boolean | undefined;
|
|
1986
|
+
} | null | undefined;
|
|
1987
|
+
}, {
|
|
1988
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1989
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1990
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1991
|
+
} | undefined;
|
|
1992
|
+
tools?: Record<string, string[] | {
|
|
1993
|
+
enable: string[];
|
|
1994
|
+
} | {
|
|
1995
|
+
disable: string[];
|
|
1996
|
+
} | {
|
|
1997
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1998
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1999
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2000
|
+
};
|
|
2001
|
+
}> | undefined;
|
|
2002
|
+
toolkits?: string[] | {
|
|
2003
|
+
disable: string[];
|
|
2004
|
+
} | {
|
|
2005
|
+
enable: string[];
|
|
2006
|
+
} | undefined;
|
|
2007
|
+
preload?: {
|
|
2008
|
+
tools?: string[] | "all" | undefined;
|
|
2009
|
+
} | undefined;
|
|
2010
|
+
authConfigs?: Record<string, string> | undefined;
|
|
2011
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2012
|
+
manageConnections?: boolean | {
|
|
2013
|
+
callbackUrl?: string | undefined;
|
|
2014
|
+
enable?: boolean | undefined;
|
|
2015
|
+
waitForConnections?: boolean | undefined;
|
|
2016
|
+
} | null | undefined;
|
|
2017
|
+
workbench?: {
|
|
2018
|
+
enable?: boolean | undefined;
|
|
2019
|
+
enableProxyExecution?: boolean | undefined;
|
|
2020
|
+
autoOffloadThreshold?: number | undefined;
|
|
2021
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2022
|
+
} | null | undefined;
|
|
2023
|
+
multiAccount?: {
|
|
2024
|
+
enable?: boolean | undefined;
|
|
2025
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
2026
|
+
requireExplicitSelection?: boolean | undefined;
|
|
2027
|
+
} | null | undefined;
|
|
2028
|
+
}>;
|
|
2029
|
+
type ToolRouterUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
|
|
2030
|
+
type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
|
|
1698
2031
|
/** Session type returned by ToolRouter.create() and ToolRouter.use() */
|
|
1699
2032
|
interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
1700
2033
|
sessionId: string;
|
|
1701
2034
|
mcp: ToolRouterMCPServerConfig;
|
|
2035
|
+
/** Stored preload configuration for this session. */
|
|
2036
|
+
preload: ToolRouterSessionPreloadConfig;
|
|
2037
|
+
/** Server-side config version when returned by the API. */
|
|
2038
|
+
configVersion?: number;
|
|
2039
|
+
/** Non-blocking session creation warnings returned by the API. */
|
|
2040
|
+
warnings: ToolRouterSessionWarning[];
|
|
1702
2041
|
tools: ToolRouterToolsFn<TToolCollection, TTool, TProvider>;
|
|
1703
2042
|
authorize: ToolRouterAuthorizeFn;
|
|
1704
2043
|
toolkits: ToolRouterToolkitsFn;
|
|
@@ -1706,6 +2045,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
1706
2045
|
search: ToolRouterSessionSearchFn;
|
|
1707
2046
|
/** Execute a tool within the session */
|
|
1708
2047
|
execute: ToolRouterSessionExecuteFn;
|
|
2048
|
+
/** Update the session configuration. Mutates this session in-place. */
|
|
2049
|
+
update: ToolRouterSessionUpdateFn;
|
|
1709
2050
|
/** Proxy an API call through Composio's auth layer using the session's connected account */
|
|
1710
2051
|
proxyExecute: ToolRouterSessionProxyExecuteFn;
|
|
1711
2052
|
/** List custom tools registered in this session, with their final slugs and schemas */
|
|
@@ -1798,14 +2139,17 @@ declare const CreateCustomToolBaseSchema: z$1.ZodObject<{
|
|
|
1798
2139
|
* Leave empty for tools that don't need any Composio-managed authentication.
|
|
1799
2140
|
*/
|
|
1800
2141
|
extendsToolkit: z$1.ZodOptional<z$1.ZodString>;
|
|
2142
|
+
preload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1801
2143
|
}, "strip", z$1.ZodTypeAny, {
|
|
1802
2144
|
name: string;
|
|
1803
2145
|
description: string;
|
|
1804
2146
|
extendsToolkit?: string | undefined;
|
|
2147
|
+
preload?: boolean | undefined;
|
|
1805
2148
|
}, {
|
|
1806
2149
|
name: string;
|
|
1807
2150
|
description: string;
|
|
1808
2151
|
extendsToolkit?: string | undefined;
|
|
2152
|
+
preload?: boolean | undefined;
|
|
1809
2153
|
}>;
|
|
1810
2154
|
/** Options for creating a custom tool via `createCustomTool()`. */
|
|
1811
2155
|
type CreateCustomToolParams<T extends z$1.ZodType> = z$1.infer<typeof CreateCustomToolBaseSchema> & {
|
|
@@ -1830,6 +2174,11 @@ interface CustomTool {
|
|
|
1830
2174
|
* Undefined means the tool doesn't need any Composio-managed authentication.
|
|
1831
2175
|
*/
|
|
1832
2176
|
readonly extendsToolkit?: string;
|
|
2177
|
+
/**
|
|
2178
|
+
* Include this custom tool in session.tools() so it can be called without
|
|
2179
|
+
* searching first.
|
|
2180
|
+
*/
|
|
2181
|
+
readonly preload?: boolean;
|
|
1833
2182
|
readonly inputSchema: Record<string, unknown>;
|
|
1834
2183
|
/** JSON Schema representation of the output (for backend documentation) */
|
|
1835
2184
|
readonly outputSchema?: Record<string, unknown>;
|
|
@@ -1840,6 +2189,7 @@ interface CustomTool {
|
|
|
1840
2189
|
}
|
|
1841
2190
|
/** Serialized tool definition sent to backend for search indexing. Uses official client type. */
|
|
1842
2191
|
type CustomToolDefinition = SessionCreateParams.Experimental.CustomTool;
|
|
2192
|
+
type CustomToolWireDefinition = CustomToolDefinition;
|
|
1843
2193
|
/**
|
|
1844
2194
|
* Zod schema for validating the string/scalar fields of createCustomToolkit() options.
|
|
1845
2195
|
* Slug is validated separately as the first argument.
|
|
@@ -1847,12 +2197,15 @@ type CustomToolDefinition = SessionCreateParams.Experimental.CustomTool;
|
|
|
1847
2197
|
declare const CreateCustomToolkitBaseSchema: z$1.ZodObject<{
|
|
1848
2198
|
name: z$1.ZodString;
|
|
1849
2199
|
description: z$1.ZodString;
|
|
2200
|
+
preload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1850
2201
|
}, "strip", z$1.ZodTypeAny, {
|
|
1851
2202
|
name: string;
|
|
1852
2203
|
description: string;
|
|
2204
|
+
preload?: boolean | undefined;
|
|
1853
2205
|
}, {
|
|
1854
2206
|
name: string;
|
|
1855
2207
|
description: string;
|
|
2208
|
+
preload?: boolean | undefined;
|
|
1856
2209
|
}>;
|
|
1857
2210
|
/** Options for creating a custom toolkit via `createCustomToolkit()`. */
|
|
1858
2211
|
type CreateCustomToolkitParams = z$1.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
@@ -1867,10 +2220,20 @@ interface CustomToolkit {
|
|
|
1867
2220
|
readonly slug: string;
|
|
1868
2221
|
readonly name: string;
|
|
1869
2222
|
readonly description: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Default session.tools() exposure for tools in this custom toolkit.
|
|
2225
|
+
* Tool-level preload values override this default.
|
|
2226
|
+
*/
|
|
2227
|
+
readonly preload?: boolean;
|
|
1870
2228
|
readonly tools: readonly CustomTool[];
|
|
1871
2229
|
}
|
|
1872
2230
|
/** Serialized toolkit definition sent to backend. Uses official client type. */
|
|
1873
2231
|
type CustomToolkitDefinition = SessionCreateParams.Experimental.CustomToolkit;
|
|
2232
|
+
type CustomToolkitWireDefinition = CustomToolkitDefinition;
|
|
2233
|
+
interface InlineCustomToolsWirePayload {
|
|
2234
|
+
custom_tools?: CustomToolWireDefinition[];
|
|
2235
|
+
custom_toolkits?: CustomToolkitWireDefinition[];
|
|
2236
|
+
}
|
|
1874
2237
|
/** @internal Entry in the per-session custom tools routing map. */
|
|
1875
2238
|
type CustomToolsMapEntry = {
|
|
1876
2239
|
handle: CustomTool;
|
|
@@ -1883,10 +2246,16 @@ type CustomToolsMapEntry = {
|
|
|
1883
2246
|
type CustomToolsMap = {
|
|
1884
2247
|
/** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */
|
|
1885
2248
|
byFinalSlug: Map<string, CustomToolsMapEntry>;
|
|
1886
|
-
/** Lookup by original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
|
|
2249
|
+
/** Lookup by unique original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
|
|
1887
2250
|
byOriginalSlug: Map<string, CustomToolsMapEntry>;
|
|
2251
|
+
/** Lookup by resolved toolkit + original slug — used when multiple custom toolkits reuse tool names */
|
|
2252
|
+
byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>;
|
|
2253
|
+
/** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
|
|
2254
|
+
ambiguousOriginalSlugs?: Set<string>;
|
|
1888
2255
|
/** The original custom toolkits passed at session creation — used for session.customToolkits() */
|
|
1889
2256
|
toolkits?: CustomToolkit[];
|
|
2257
|
+
/** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
|
|
2258
|
+
tools?: CustomTool[];
|
|
1890
2259
|
};
|
|
1891
2260
|
/** A custom tool as registered in a session, with its final resolved slug. */
|
|
1892
2261
|
interface RegisteredCustomTool {
|
|
@@ -1911,4 +2280,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
|
|
|
1911
2280
|
/** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
|
|
1912
2281
|
type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
|
|
1913
2282
|
//#endregion
|
|
1914
|
-
export {
|
|
2283
|
+
export { ToolRouterSessionProxyExecuteFn as $, ConnectedAccountStatusSchema as $t, SandboxSizeSchema as A, ToolRouterSessionFilesMountDeleteOptions as At, ToolRouterConfigTools as B, ConnectedAccountAuthConfig as Bt, InputParamsSchema as C, RemoteFile as Ct, MCPServerType as D, FileListResponseSchema as Dt, SessionContext as E, FileListResponse as Et, SessionProxyExecuteParamsSchema as F, ToolRouterSessionFilesMountListOptionsSchema as Ft, ToolRouterMCPServerConfigSchema as G, ConnectedAccountListResponseItem as Gt, ToolRouterCreateSessionConfig as H, ConnectedAccountListParams as Ht, ToolRouterAuthorizeFn as I, ToolRouterSessionFilesMountUploadOptions as It, ToolRouterSessionExecuteOptions as J, ConnectedAccountRefreshOptionsSchema as Jt, ToolRouterManageConnectionsConfigSchema as K, ConnectedAccountListResponseSchema as Kt, ToolRouterConfigManageConnectionsSchema as L, ToolRouterSessionFilesMountUploadOptionsSchema as Lt, SessionExperimental as M, ToolRouterSessionFilesMountDownloadOptions as Mt, SessionPreset as N, ToolRouterSessionFilesMountDownloadOptionsSchema as Nt, MCPServerTypeSchema as O, RemoteFileData as Ot, SessionProxyExecuteParams as P, ToolRouterSessionFilesMountListOptions as Pt, ToolRouterSessionPreloadConfig as Q, ConnectedAccountStatusEnum as Qt, ToolRouterConfigTags as R, ConnectionRequest as Rt, InlineCustomToolsWirePayload as S, ToolkitConnectionsDetailsSchema as St, RegisteredCustomToolkit as T, FileDeleteResponseSchema as Tt, ToolRouterCreateSessionConfigSchema as U, ConnectedAccountListParamsSchema as Ut, ToolRouterConfigToolsSchema as V, ConnectedAccountAuthConfigSchema as Vt, ToolRouterMCPServerConfig as W, ConnectedAccountListResponse as Wt, ToolRouterSessionExecuteResponseSchema as X, ConnectedAccountRetrieveResponseSchema as Xt, ToolRouterSessionExecuteResponse as Y, ConnectedAccountRetrieveResponse as Yt, ToolRouterSessionMetadata as Z, ConnectedAccountStatus as Zt, CustomToolkitResponse as _, ToolRouterUpdateSessionConfig as _t, CustomTool as a, CreateConnectedAccountOptions as an, ToolRouterSessionWarning as at, CustomToolsMapEntry as b, ToolkitConnectionStateSchema as bt, CustomToolInputParameter as c, CreateConnectedAccountParamsSchema as cn, ToolRouterToolkitsDisabledConfigSchema as ct, CustomToolRegistryItem as d, DefaultCreateConnectedAccountParamsSchema as dn, ToolRouterToolkitsOptions as dt, ConnectedAccountStatuses as en, ToolRouterSessionProxyExecuteResponse as et, CustomToolResponse as f, UpdateConnectedAccountParams as fn, ToolRouterToolkitsOptionsSchema as ft, CustomToolkitDefinition as g, ToolRouterToolsParamSchema as gt, CustomToolkit as h, ToolRouterToolsParam as ht, CreateCustomToolkitParams as i, CreateConnectedAccountLinkResponseSchema as in, ToolRouterSessionUpdateFn as it, Session as j, ToolRouterSessionFilesMountDeleteOptionsSchema as jt, SandboxSize as k, RemoteFileDataSchema as kt, CustomToolOptions as l, CreateConnectedAccountResponse as ln, ToolRouterToolkitsEnabledConfigSchema as lt, CustomToolWireDefinition as m, ToolRouterToolsFn as mt, CreateCustomToolParams as n, CreateConnectedAccountLinkOptionsSchema as nn, ToolRouterSessionSearchResponse as nt, CustomToolDefinition as o, CreateConnectedAccountOptionsSchema as on, ToolRouterTagsEnableDisableSchema as ot, CustomToolSlugSchema as p, UpdateConnectedAccountParamsSchema as pn, ToolRouterToolkitsParamSchema as pt, ToolRouterSessionExecuteFn as q, ConnectedAccountRefreshOptions as qt, CreateCustomToolkitBaseSchema as r, CreateConnectedAccountLinkResponse as rn, ToolRouterSessionSearchResponseSchema as rt, CustomToolExecuteFn as s, CreateConnectedAccountParams as sn, ToolRouterTagsParamSchema as st, CreateCustomToolBaseSchema as t, CreateConnectedAccountLinkOptions as tn, ToolRouterSessionSearchFn as tt, CustomToolRegistry as u, CreateConnectedAccountResponseSchema as un, ToolRouterToolkitsFn as ut, CustomToolkitWireDefinition as v, ToolRouterUpdateSessionConfigSchema as vt, RegisteredCustomTool as w, FileDeleteResponse as wt, ExecuteMetadata as x, ToolkitConnectionsDetails as xt, CustomToolsMap as y, ToolkitConnectionState as yt, ToolRouterConfigTagsSchema as z, ConnectionRequestState as zt };
|