@composio/core 0.6.4 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseProvider-B_7Qy99Q.d.mts → BaseProvider-CaOKzzuo.d.mts} +4 -4
- package/dist/{BaseProvider-DF03HAz3.d.cts → BaseProvider-SxQ_komh.d.cts} +4 -4
- package/dist/{Telemetry-B3HlLpMT.mjs → Telemetry-CHfDfthM.mjs} +1 -1
- package/dist/{Telemetry-DBe2oppA.cjs → Telemetry-DRFfIuVS.cjs} +1 -1
- package/dist/{buffer-BFpVRahf.mjs → buffer-C1MwV-7j.mjs} +3 -1
- package/dist/{buffer-CYf1Z6Sd.cjs → buffer-Dy7Xi_sk.cjs} +8 -0
- package/dist/{composio-COyITeJf.d.cts → composio-BBswEUus.d.cts} +708 -112
- package/dist/{composio-ClplAPbl.d.mts → composio-BC28OAhR.d.mts} +708 -112
- package/dist/{fileUtils.node-DLp53qm1.cjs → fileUtils.node-BUe2eO0j.cjs} +1 -1
- package/dist/{fileUtils.node-MOEGtpnI.mjs → fileUtils.node-D1JLL4nZ.mjs} +1 -1
- package/dist/index.cjs +817 -105
- package/dist/index.d.cts +140 -7
- package/dist/index.d.mts +140 -7
- package/dist/index.mjs +804 -106
- package/dist/models/Files.node.cjs +3 -3
- package/dist/models/Files.node.mjs +3 -3
- package/dist/{types-BO1Bf2Xz.d.mts → types-CHz185FL.d.cts} +2 -2
- package/dist/{types-Bib0jIbg.d.cts → types-DY0bIIqG.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -3
- package/dist/utils/modifiers/FileToolModifier.node.cjs +2 -2
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/generated/ably.ts +20 -0
- package/generated/accelo.ts +8 -0
- package/generated/acculynx.ts +17 -0
- package/generated/active_campaign.ts +30 -0
- package/generated/adobe.ts +8 -0
- package/generated/adyntel.ts +12 -0
- package/generated/aero_workflow.ts +8 -0
- package/generated/affinity.ts +29 -0
- package/generated/agencyzoom.ts +108 -0
- package/generated/ahrefs.ts +49 -0
- package/generated/airtable.ts +26 -0
- package/generated/alchemy.ts +16 -0
- package/generated/algolia.ts +39 -0
- package/generated/altoviz.ts +18 -0
- package/generated/amazon.ts +8 -0
- package/generated/amcards.ts +11 -0
- package/generated/amplitude.ts +25 -0
- package/generated/anthropic_administrator.ts +13 -0
- package/generated/apaleo.ts +38 -0
- package/generated/apollo.ts +40 -0
- package/generated/appdrag.ts +8 -0
- package/generated/appsflyer.ts +8 -0
- package/generated/asana.ts +95 -0
- package/generated/ashby.ts +8 -0
- package/generated/atlassian.ts +8 -0
- package/generated/attio.ts +20 -0
- package/generated/auth0.ts +8 -0
- package/generated/axonaut.ts +8 -0
- package/generated/bamboohr.ts +168 -0
- package/generated/bannerbear.ts +17 -0
- package/generated/baserow.ts +11 -0
- package/generated/battlenet.ts +8 -0
- package/generated/beeminder.ts +14 -0
- package/generated/bigmailer.ts +12 -0
- package/generated/bigml.ts +15 -0
- package/generated/bill.ts +218 -0
- package/generated/bitbucket.ts +25 -0
- package/generated/bitwarden.ts +8 -0
- package/generated/blackbaud.ts +8 -0
- package/generated/blackboard.ts +323 -0
- package/generated/boldsign.ts +8 -0
- package/generated/bolna.ts +24 -0
- package/generated/borneo.ts +162 -0
- package/generated/botbaba.ts +8 -0
- package/generated/box.ts +282 -0
- package/generated/braintree.ts +8 -0
- package/generated/brandfetch.ts +15 -0
- package/generated/breezy_hr.ts +8 -0
- package/generated/brevo.ts +28 -0
- package/generated/brex.ts +8 -0
- package/generated/brex_staging.ts +8 -0
- package/generated/brightpearl.ts +8 -0
- package/generated/brilliant_directories.ts +15 -0
- package/generated/browseai.ts +18 -0
- package/generated/browserbase_tool.ts +10 -0
- package/generated/browserhub.ts +8 -0
- package/generated/browserless.ts +16 -0
- package/generated/bubble.ts +8 -0
- package/generated/bugbug.ts +13 -0
- package/generated/builtwith.ts +21 -0
- package/generated/cal.ts +150 -0
- package/generated/calendly.ts +51 -0
- package/generated/canva.ts +41 -0
- package/generated/canvas.ts +100 -0
- package/generated/chatwork.ts +17 -0
- package/generated/chmeetings.ts +8 -0
- package/generated/clickup.ts +153 -0
- package/generated/clockify.ts +23 -0
- package/generated/close.ts +15 -0
- package/generated/cloudflare.ts +10 -0
- package/generated/coda.ts +115 -0
- package/generated/codeinterpreter.ts +14 -0
- package/generated/coinbase.ts +15 -0
- package/generated/coinmarketcal.ts +8 -0
- package/generated/composio.ts +34 -0
- package/generated/composio_search.ts +22 -0
- package/generated/confluence.ts +199 -0
- package/generated/contentful.ts +12 -0
- package/generated/crustdata.ts +23 -0
- package/generated/customer_io.ts +8 -0
- package/generated/cutt_ly.ts +10 -0
- package/generated/d2lbrightspace.ts +54 -0
- package/generated/dailybot.ts +15 -0
- package/generated/datadog.ts +47 -0
- package/generated/datagma.ts +8 -0
- package/generated/datarobot.ts +8 -0
- package/generated/deel.ts +8 -0
- package/generated/demio.ts +8 -0
- package/generated/dialpad.ts +201 -0
- package/generated/digicert.ts +15 -0
- package/generated/discord.ts +17 -0
- package/generated/discordbot.ts +173 -0
- package/generated/docmosis.ts +8 -0
- package/generated/docusign.ts +351 -0
- package/generated/dropbox.ts +20 -0
- package/generated/dropbox_sign.ts +8 -0
- package/generated/dynamics365.ts +25 -0
- package/generated/echtpost.ts +10 -0
- package/generated/elevenlabs.ts +70 -0
- package/generated/emailoctopus.ts +16 -0
- package/generated/enigma.ts +11 -0
- package/generated/entelligence.ts +11 -0
- package/generated/epic_games.ts +8 -0
- package/generated/eventbrite.ts +12 -0
- package/generated/exa.ts +13 -0
- package/generated/excel.ts +34 -0
- package/generated/exist.ts +8 -0
- package/generated/facebook.ts +8 -0
- package/generated/factorial.ts +8 -0
- package/generated/figma.ts +59 -0
- package/generated/finage.ts +19 -0
- package/generated/firecrawl.ts +16 -0
- package/generated/fireflies.ts +21 -0
- package/generated/fitbit.ts +8 -0
- package/generated/flutterwave.ts +33 -0
- package/generated/fomo.ts +10 -0
- package/generated/formcarry.ts +10 -0
- package/generated/formsite.ts +14 -0
- package/generated/foursquare.ts +14 -0
- package/generated/freshbooks.ts +11 -0
- package/generated/freshdesk.ts +16 -0
- package/generated/front.ts +8 -0
- package/generated/github.ts +967 -0
- package/generated/gitlab.ts +82 -0
- package/generated/gmail.d.ts +86 -0
- package/generated/gmail.js +13 -0
- package/generated/gmail.ts +95 -0
- package/generated/go_to_webinar.ts +8 -0
- package/generated/gong.ts +63 -0
- package/generated/google_analytics.ts +13 -0
- package/generated/google_maps.ts +16 -0
- package/generated/googleads.ts +14 -0
- package/generated/googlebigquery.ts +10 -0
- package/generated/googlecalendar.ts +39 -0
- package/generated/googledocs.ts +41 -0
- package/generated/googledrive.ts +62 -0
- package/generated/googlemeet.ts +18 -0
- package/generated/googlephotos.ts +22 -0
- package/generated/googlesheets.ts +40 -0
- package/generated/googleslides.ts +8 -0
- package/generated/googlesuper.ts +230 -0
- package/generated/googletasks.ts +23 -0
- package/generated/gorgias.ts +41 -0
- package/generated/gumroad.ts +14 -0
- package/generated/guru.ts +8 -0
- package/generated/hackernews.ts +15 -0
- package/generated/hackerrank_work.ts +8 -0
- package/generated/harvest.ts +56 -0
- package/generated/helcim.ts +8 -0
- package/generated/heygen.ts +44 -0
- package/generated/highlevel.ts +8 -0
- package/generated/hubspot.ts +252 -0
- package/generated/humanloop.ts +13 -0
- package/generated/icims_talent_cloud.ts +8 -0
- package/generated/idea_scale.ts +8 -0
- package/generated/index.ts +151 -0
- package/generated/insighto_ai.ts +19 -0
- package/generated/intercom.ts +52 -0
- package/generated/interzoid.ts +8 -0
- package/generated/jira.ts +59 -0
- package/generated/jotform.ts +15 -0
- package/generated/junglescout.ts +15 -0
- package/generated/keap.ts +8 -0
- package/generated/kibana.ts +58 -0
- package/generated/kit.ts +38 -0
- package/generated/klaviyo.ts +240 -0
- package/generated/klipfolio.ts +20 -0
- package/generated/kommo.ts +24 -0
- package/generated/lastpass.ts +8 -0
- package/generated/launch_darkly.ts +16 -0
- package/generated/leadfeeder.ts +13 -0
- package/generated/leadoku.ts +10 -0
- package/generated/lever.ts +8 -0
- package/generated/lever_sandbox.ts +8 -0
- package/generated/lexoffice.ts +8 -0
- package/generated/linear.ts +31 -0
- package/generated/linkedin.ts +13 -0
- package/generated/linkhut.ts +14 -0
- package/generated/linkup.ts +11 -0
- package/generated/listennotes.ts +35 -0
- package/generated/lmnt.ts +16 -0
- package/generated/lodgify.ts +10 -0
- package/generated/mailchimp.ts +285 -0
- package/generated/mailerlite.ts +8 -0
- package/generated/maintainx.ts +20 -0
- package/generated/make.ts +12 -0
- package/generated/mboum.ts +8 -0
- package/generated/mem0.ts +52 -0
- package/generated/metaads.ts +25 -0
- package/generated/metatextai.ts +8 -0
- package/generated/microsoft_clarity.ts +10 -0
- package/generated/microsoft_teams.ts +22 -0
- package/generated/microsoft_tenant.ts +8 -0
- package/generated/miro.ts +23 -0
- package/generated/mixpanel.ts +30 -0
- package/generated/mocean.ts +8 -0
- package/generated/monday.ts +30 -0
- package/generated/mopinion.ts +8 -0
- package/generated/more_trees.ts +10 -0
- package/generated/moxie.ts +8 -0
- package/generated/moz.ts +8 -0
- package/generated/mural.ts +14 -0
- package/generated/nasdaq.ts +15 -0
- package/generated/ncscale.ts +8 -0
- package/generated/neon.ts +78 -0
- package/generated/netsuite.ts +8 -0
- package/generated/nextdns.ts +11 -0
- package/generated/ngrok.ts +18 -0
- package/generated/notion.ts +40 -0
- package/generated/oncehub.ts +8 -0
- package/generated/one_drive.ts +49 -0
- package/generated/onepage.ts +11 -0
- package/generated/open_sea.ts +33 -0
- package/generated/outlook.ts +37 -0
- package/generated/pagerduty.ts +362 -0
- package/generated/pandadoc.ts +23 -0
- package/generated/peopledatalabs.ts +24 -0
- package/generated/perplexityai.ts +10 -0
- package/generated/piggy.ts +8 -0
- package/generated/pipedrive.ts +288 -0
- package/generated/placekey.ts +12 -0
- package/generated/posthog.ts +367 -0
- package/generated/precoro.ts +8 -0
- package/generated/printnode.ts +8 -0
- package/generated/process_street.ts +14 -0
- package/generated/productboard.ts +8 -0
- package/generated/qualaroo.ts +8 -0
- package/generated/quickbooks.ts +22 -0
- package/generated/rafflys.ts +8 -0
- package/generated/ragic.ts +10 -0
- package/generated/ramp.ts +17 -0
- package/generated/ravenseotools.ts +8 -0
- package/generated/recallai.ts +17 -0
- package/generated/reddit.ts +19 -0
- package/generated/resend.ts +27 -0
- package/generated/retellai.ts +19 -0
- package/generated/retently.ts +24 -0
- package/generated/ring_central.ts +8 -0
- package/generated/rippling.ts +8 -0
- package/generated/rocket_reach.ts +8 -0
- package/generated/rocketlane.ts +42 -0
- package/generated/rootly.ts +12 -0
- package/generated/rosette_text_analytics.ts +12 -0
- package/generated/sage.ts +8 -0
- package/generated/salesforce.ts +46 -0
- package/generated/scrape_do.ts +28 -0
- package/generated/scrapingant.ts +14 -0
- package/generated/screenshotone.ts +10 -0
- package/generated/seismic.ts +8 -0
- package/generated/semanticscholar.ts +23 -0
- package/generated/semrush.ts +45 -0
- package/generated/sendgrid.ts +384 -0
- package/generated/sentry.ts +185 -0
- package/generated/serpapi.ts +32 -0
- package/generated/servicem8.ts +37 -0
- package/generated/servicenow.ts +14 -0
- package/generated/share_point.ts +15 -0
- package/generated/shopify.ts +37 -0
- package/generated/shortcut.ts +131 -0
- package/generated/simplesat.ts +11 -0
- package/generated/slack.d.ts +16 -0
- package/generated/slack.js +11 -0
- package/generated/slack.ts +24 -0
- package/generated/slackbot.ts +205 -0
- package/generated/smartrecruiters.ts +8 -0
- package/generated/smugmug.ts +14 -0
- package/generated/snowflake.ts +15 -0
- package/generated/sourcegraph.ts +16 -0
- package/generated/square.ts +8 -0
- package/generated/stack_exchange.ts +17 -0
- package/generated/starton.ts +11 -0
- package/generated/storeganise.ts +12 -0
- package/generated/stripe.ts +50 -0
- package/generated/supabase.ts +86 -0
- package/generated/survey_monkey.ts +8 -0
- package/generated/tally.ts +25 -0
- package/generated/tapfiliate.ts +11 -0
- package/generated/tapform.ts +8 -0
- package/generated/tavily.ts +10 -0
- package/generated/terminus.ts +8 -0
- package/generated/text_to_pdf.ts +10 -0
- package/generated/textrazor.ts +22 -0
- package/generated/timecamp.ts +10 -0
- package/generated/timekit.ts +8 -0
- package/generated/timely.ts +11 -0
- package/generated/tinypng.ts +15 -0
- package/generated/tinyurl.ts +10 -0
- package/generated/tisane.ts +15 -0
- package/generated/todoist.ts +19 -0
- package/generated/toneden.ts +8 -0
- package/generated/tpscheck.ts +10 -0
- package/generated/trello.ts +360 -0
- package/generated/twitch.ts +8 -0
- package/generated/twitter.ts +82 -0
- package/generated/twitter_media.ts +10 -0
- package/generated/typefully.ts +14 -0
- package/generated/venly.ts +8 -0
- package/generated/vero.ts +8 -0
- package/generated/visme.ts +8 -0
- package/generated/waboxapp.ts +8 -0
- package/generated/wakatime.ts +8 -0
- package/generated/wave_accounting.ts +8 -0
- package/generated/weathermap.ts +10 -0
- package/generated/webex.ts +37 -0
- package/generated/webflow.ts +30 -0
- package/generated/whatsapp.ts +14 -0
- package/generated/wiz.ts +8 -0
- package/generated/workiom.ts +12 -0
- package/generated/wrike.ts +47 -0
- package/generated/xero.ts +13 -0
- package/generated/yandex.ts +13 -0
- package/generated/ynab.ts +8 -0
- package/generated/yousearch.ts +10 -0
- package/generated/youtube.ts +26 -0
- package/generated/zendesk.ts +23 -0
- package/generated/zenrows.ts +25 -0
- package/generated/zenserp.ts +20 -0
- package/generated/zoho.ts +33 -0
- package/generated/zoho_bigin.ts +21 -0
- package/generated/zoho_books.ts +8 -0
- package/generated/zoho_desk.ts +8 -0
- package/generated/zoho_inventory.ts +8 -0
- package/generated/zoho_invoice.ts +15 -0
- package/generated/zoho_mail.ts +8 -0
- package/generated/zoom.ts +181 -0
- package/generated/zoominfo.ts +26 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as SessionExecuteMetaModifiers, En as ToolRetrievalOptions, Nn as ToolkitVersionParam, Qt as ProviderOptions, X as McpServerGetResponse, Xt as ExecuteToolModifiers, _n as ToolExecuteResponse$1, at as ExecuteToolFnOptions, bn as ToolListParams, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, fn as Tool, hn as ToolExecuteParams, n as BaseComposioProvider, pn as ToolExecuteMetaParams, r as BaseNonAgenticProvider, tt as McpUrlResponse, ut as ConnectionData, wn as ToolProxyParams, yn as ToolList } from "./BaseProvider-
|
|
1
|
+
import { $t as SessionExecuteMetaModifiers, En as ToolRetrievalOptions, Nn as ToolkitVersionParam, Qt as ProviderOptions, X as McpServerGetResponse, Xt as ExecuteToolModifiers, _n as ToolExecuteResponse$1, at as ExecuteToolFnOptions, bn as ToolListParams, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, fn as Tool, hn as ToolExecuteParams, n as BaseComposioProvider, pn as ToolExecuteMetaParams, r as BaseNonAgenticProvider, tt as McpUrlResponse, ut as ConnectionData, wn as ToolProxyParams, yn as ToolList } from "./BaseProvider-SxQ_komh.cjs";
|
|
2
2
|
import z$1, { z } from "zod/v3";
|
|
3
3
|
import ComposioClient, { Composio } from "@composio/client";
|
|
4
4
|
import { ToolExecuteResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
|
|
@@ -596,6 +596,7 @@ declare const ToolKitMetaSchema: z.ZodObject<{
|
|
|
596
596
|
description?: string | undefined;
|
|
597
597
|
availableVersions?: string[] | undefined;
|
|
598
598
|
createdAt?: string | undefined;
|
|
599
|
+
updatedAt?: string | undefined;
|
|
599
600
|
categories?: {
|
|
600
601
|
slug: string;
|
|
601
602
|
name: string;
|
|
@@ -603,12 +604,12 @@ declare const ToolKitMetaSchema: z.ZodObject<{
|
|
|
603
604
|
appUrl?: string | undefined;
|
|
604
605
|
toolsCount?: number | undefined;
|
|
605
606
|
triggersCount?: number | undefined;
|
|
606
|
-
updatedAt?: string | undefined;
|
|
607
607
|
}, {
|
|
608
608
|
logo?: string | undefined;
|
|
609
609
|
description?: string | undefined;
|
|
610
610
|
availableVersions?: string[] | undefined;
|
|
611
611
|
createdAt?: string | undefined;
|
|
612
|
+
updatedAt?: string | undefined;
|
|
612
613
|
categories?: {
|
|
613
614
|
slug: string;
|
|
614
615
|
name: string;
|
|
@@ -616,7 +617,6 @@ declare const ToolKitMetaSchema: z.ZodObject<{
|
|
|
616
617
|
appUrl?: string | undefined;
|
|
617
618
|
toolsCount?: number | undefined;
|
|
618
619
|
triggersCount?: number | undefined;
|
|
619
|
-
updatedAt?: string | undefined;
|
|
620
620
|
}>;
|
|
621
621
|
declare const ToolKitItemSchema: z.ZodObject<{
|
|
622
622
|
name: z.ZodString;
|
|
@@ -645,6 +645,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
645
645
|
description?: string | undefined;
|
|
646
646
|
availableVersions?: string[] | undefined;
|
|
647
647
|
createdAt?: string | undefined;
|
|
648
|
+
updatedAt?: string | undefined;
|
|
648
649
|
categories?: {
|
|
649
650
|
slug: string;
|
|
650
651
|
name: string;
|
|
@@ -652,12 +653,12 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
652
653
|
appUrl?: string | undefined;
|
|
653
654
|
toolsCount?: number | undefined;
|
|
654
655
|
triggersCount?: number | undefined;
|
|
655
|
-
updatedAt?: string | undefined;
|
|
656
656
|
}, {
|
|
657
657
|
logo?: string | undefined;
|
|
658
658
|
description?: string | undefined;
|
|
659
659
|
availableVersions?: string[] | undefined;
|
|
660
660
|
createdAt?: string | undefined;
|
|
661
|
+
updatedAt?: string | undefined;
|
|
661
662
|
categories?: {
|
|
662
663
|
slug: string;
|
|
663
664
|
name: string;
|
|
@@ -665,7 +666,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
665
666
|
appUrl?: string | undefined;
|
|
666
667
|
toolsCount?: number | undefined;
|
|
667
668
|
triggersCount?: number | undefined;
|
|
668
|
-
updatedAt?: string | undefined;
|
|
669
669
|
}>;
|
|
670
670
|
isLocalToolkit: z.ZodBoolean;
|
|
671
671
|
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -679,6 +679,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
679
679
|
description?: string | undefined;
|
|
680
680
|
availableVersions?: string[] | undefined;
|
|
681
681
|
createdAt?: string | undefined;
|
|
682
|
+
updatedAt?: string | undefined;
|
|
682
683
|
categories?: {
|
|
683
684
|
slug: string;
|
|
684
685
|
name: string;
|
|
@@ -686,7 +687,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
686
687
|
appUrl?: string | undefined;
|
|
687
688
|
toolsCount?: number | undefined;
|
|
688
689
|
triggersCount?: number | undefined;
|
|
689
|
-
updatedAt?: string | undefined;
|
|
690
690
|
};
|
|
691
691
|
isLocalToolkit: boolean;
|
|
692
692
|
authSchemes?: string[] | undefined;
|
|
@@ -700,6 +700,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
700
700
|
description?: string | undefined;
|
|
701
701
|
availableVersions?: string[] | undefined;
|
|
702
702
|
createdAt?: string | undefined;
|
|
703
|
+
updatedAt?: string | undefined;
|
|
703
704
|
categories?: {
|
|
704
705
|
slug: string;
|
|
705
706
|
name: string;
|
|
@@ -707,7 +708,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
707
708
|
appUrl?: string | undefined;
|
|
708
709
|
toolsCount?: number | undefined;
|
|
709
710
|
triggersCount?: number | undefined;
|
|
710
|
-
updatedAt?: string | undefined;
|
|
711
711
|
};
|
|
712
712
|
isLocalToolkit: boolean;
|
|
713
713
|
authSchemes?: string[] | undefined;
|
|
@@ -741,6 +741,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
741
741
|
description?: string | undefined;
|
|
742
742
|
availableVersions?: string[] | undefined;
|
|
743
743
|
createdAt?: string | undefined;
|
|
744
|
+
updatedAt?: string | undefined;
|
|
744
745
|
categories?: {
|
|
745
746
|
slug: string;
|
|
746
747
|
name: string;
|
|
@@ -748,12 +749,12 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
748
749
|
appUrl?: string | undefined;
|
|
749
750
|
toolsCount?: number | undefined;
|
|
750
751
|
triggersCount?: number | undefined;
|
|
751
|
-
updatedAt?: string | undefined;
|
|
752
752
|
}, {
|
|
753
753
|
logo?: string | undefined;
|
|
754
754
|
description?: string | undefined;
|
|
755
755
|
availableVersions?: string[] | undefined;
|
|
756
756
|
createdAt?: string | undefined;
|
|
757
|
+
updatedAt?: string | undefined;
|
|
757
758
|
categories?: {
|
|
758
759
|
slug: string;
|
|
759
760
|
name: string;
|
|
@@ -761,7 +762,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
761
762
|
appUrl?: string | undefined;
|
|
762
763
|
toolsCount?: number | undefined;
|
|
763
764
|
triggersCount?: number | undefined;
|
|
764
|
-
updatedAt?: string | undefined;
|
|
765
765
|
}>;
|
|
766
766
|
isLocalToolkit: z.ZodBoolean;
|
|
767
767
|
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -775,6 +775,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
775
775
|
description?: string | undefined;
|
|
776
776
|
availableVersions?: string[] | undefined;
|
|
777
777
|
createdAt?: string | undefined;
|
|
778
|
+
updatedAt?: string | undefined;
|
|
778
779
|
categories?: {
|
|
779
780
|
slug: string;
|
|
780
781
|
name: string;
|
|
@@ -782,7 +783,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
782
783
|
appUrl?: string | undefined;
|
|
783
784
|
toolsCount?: number | undefined;
|
|
784
785
|
triggersCount?: number | undefined;
|
|
785
|
-
updatedAt?: string | undefined;
|
|
786
786
|
};
|
|
787
787
|
isLocalToolkit: boolean;
|
|
788
788
|
authSchemes?: string[] | undefined;
|
|
@@ -796,6 +796,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
796
796
|
description?: string | undefined;
|
|
797
797
|
availableVersions?: string[] | undefined;
|
|
798
798
|
createdAt?: string | undefined;
|
|
799
|
+
updatedAt?: string | undefined;
|
|
799
800
|
categories?: {
|
|
800
801
|
slug: string;
|
|
801
802
|
name: string;
|
|
@@ -803,7 +804,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
803
804
|
appUrl?: string | undefined;
|
|
804
805
|
toolsCount?: number | undefined;
|
|
805
806
|
triggersCount?: number | undefined;
|
|
806
|
-
updatedAt?: string | undefined;
|
|
807
807
|
};
|
|
808
808
|
isLocalToolkit: boolean;
|
|
809
809
|
authSchemes?: string[] | undefined;
|
|
@@ -1200,6 +1200,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1200
1200
|
description?: string | undefined;
|
|
1201
1201
|
availableVersions?: string[] | undefined;
|
|
1202
1202
|
createdAt?: string | undefined;
|
|
1203
|
+
updatedAt?: string | undefined;
|
|
1203
1204
|
categories?: {
|
|
1204
1205
|
slug: string;
|
|
1205
1206
|
name: string;
|
|
@@ -1207,12 +1208,12 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1207
1208
|
appUrl?: string | undefined;
|
|
1208
1209
|
toolsCount?: number | undefined;
|
|
1209
1210
|
triggersCount?: number | undefined;
|
|
1210
|
-
updatedAt?: string | undefined;
|
|
1211
1211
|
}, {
|
|
1212
1212
|
logo?: string | undefined;
|
|
1213
1213
|
description?: string | undefined;
|
|
1214
1214
|
availableVersions?: string[] | undefined;
|
|
1215
1215
|
createdAt?: string | undefined;
|
|
1216
|
+
updatedAt?: string | undefined;
|
|
1216
1217
|
categories?: {
|
|
1217
1218
|
slug: string;
|
|
1218
1219
|
name: string;
|
|
@@ -1220,7 +1221,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1220
1221
|
appUrl?: string | undefined;
|
|
1221
1222
|
toolsCount?: number | undefined;
|
|
1222
1223
|
triggersCount?: number | undefined;
|
|
1223
|
-
updatedAt?: string | undefined;
|
|
1224
1224
|
}>;
|
|
1225
1225
|
isLocalToolkit: z.ZodBoolean;
|
|
1226
1226
|
composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1570,6 +1570,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1570
1570
|
description?: string | undefined;
|
|
1571
1571
|
availableVersions?: string[] | undefined;
|
|
1572
1572
|
createdAt?: string | undefined;
|
|
1573
|
+
updatedAt?: string | undefined;
|
|
1573
1574
|
categories?: {
|
|
1574
1575
|
slug: string;
|
|
1575
1576
|
name: string;
|
|
@@ -1577,7 +1578,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1577
1578
|
appUrl?: string | undefined;
|
|
1578
1579
|
toolsCount?: number | undefined;
|
|
1579
1580
|
triggersCount?: number | undefined;
|
|
1580
|
-
updatedAt?: string | undefined;
|
|
1581
1581
|
};
|
|
1582
1582
|
isLocalToolkit: boolean;
|
|
1583
1583
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -1637,6 +1637,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1637
1637
|
description?: string | undefined;
|
|
1638
1638
|
availableVersions?: string[] | undefined;
|
|
1639
1639
|
createdAt?: string | undefined;
|
|
1640
|
+
updatedAt?: string | undefined;
|
|
1640
1641
|
categories?: {
|
|
1641
1642
|
slug: string;
|
|
1642
1643
|
name: string;
|
|
@@ -1644,7 +1645,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1644
1645
|
appUrl?: string | undefined;
|
|
1645
1646
|
toolsCount?: number | undefined;
|
|
1646
1647
|
triggersCount?: number | undefined;
|
|
1647
|
-
updatedAt?: string | undefined;
|
|
1648
1648
|
};
|
|
1649
1649
|
isLocalToolkit: boolean;
|
|
1650
1650
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -1911,18 +1911,18 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
|
1911
1911
|
limit?: number | null | undefined;
|
|
1912
1912
|
authConfigIds?: string[] | null | undefined;
|
|
1913
1913
|
cursor?: string | null | undefined;
|
|
1914
|
+
userIds?: string[] | null | undefined;
|
|
1914
1915
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1915
1916
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1916
1917
|
toolkitSlugs?: string[] | null | undefined;
|
|
1917
|
-
userIds?: string[] | null | undefined;
|
|
1918
1918
|
}, {
|
|
1919
1919
|
limit?: number | null | undefined;
|
|
1920
1920
|
authConfigIds?: string[] | null | undefined;
|
|
1921
1921
|
cursor?: string | null | undefined;
|
|
1922
|
+
userIds?: string[] | null | undefined;
|
|
1922
1923
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1923
1924
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1924
1925
|
toolkitSlugs?: string[] | null | undefined;
|
|
1925
|
-
userIds?: string[] | null | undefined;
|
|
1926
1926
|
}>;
|
|
1927
1927
|
type ConnectedAccountListParams = z.infer<typeof ConnectedAccountListParamsSchema>;
|
|
1928
1928
|
declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
@@ -2354,13 +2354,13 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2354
2354
|
noOfConnections: number;
|
|
2355
2355
|
uuid: string;
|
|
2356
2356
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2357
|
-
isComposioManaged?: boolean | undefined;
|
|
2358
2357
|
credentials?: Record<string, unknown> | undefined;
|
|
2359
2358
|
toolAccessConfig?: {
|
|
2360
2359
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2361
2360
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2362
2361
|
} | undefined;
|
|
2363
2362
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2363
|
+
isComposioManaged?: boolean | undefined;
|
|
2364
2364
|
expectedInputFields?: unknown[] | undefined;
|
|
2365
2365
|
restrictToFollowingTools?: string[] | undefined;
|
|
2366
2366
|
createdBy?: string | undefined;
|
|
@@ -2377,13 +2377,13 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2377
2377
|
noOfConnections: number;
|
|
2378
2378
|
uuid: string;
|
|
2379
2379
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2380
|
-
isComposioManaged?: boolean | undefined;
|
|
2381
2380
|
credentials?: Record<string, unknown> | undefined;
|
|
2382
2381
|
toolAccessConfig?: {
|
|
2383
2382
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2384
2383
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2385
2384
|
} | undefined;
|
|
2386
2385
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2386
|
+
isComposioManaged?: boolean | undefined;
|
|
2387
2387
|
expectedInputFields?: unknown[] | undefined;
|
|
2388
2388
|
restrictToFollowingTools?: string[] | undefined;
|
|
2389
2389
|
createdBy?: string | undefined;
|
|
@@ -2458,13 +2458,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2458
2458
|
noOfConnections: number;
|
|
2459
2459
|
uuid: string;
|
|
2460
2460
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2461
|
-
isComposioManaged?: boolean | undefined;
|
|
2462
2461
|
credentials?: Record<string, unknown> | undefined;
|
|
2463
2462
|
toolAccessConfig?: {
|
|
2464
2463
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2465
2464
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2466
2465
|
} | undefined;
|
|
2467
2466
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2467
|
+
isComposioManaged?: boolean | undefined;
|
|
2468
2468
|
expectedInputFields?: unknown[] | undefined;
|
|
2469
2469
|
restrictToFollowingTools?: string[] | undefined;
|
|
2470
2470
|
createdBy?: string | undefined;
|
|
@@ -2481,13 +2481,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2481
2481
|
noOfConnections: number;
|
|
2482
2482
|
uuid: string;
|
|
2483
2483
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2484
|
-
isComposioManaged?: boolean | undefined;
|
|
2485
2484
|
credentials?: Record<string, unknown> | undefined;
|
|
2486
2485
|
toolAccessConfig?: {
|
|
2487
2486
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2488
2487
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2489
2488
|
} | undefined;
|
|
2490
2489
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2490
|
+
isComposioManaged?: boolean | undefined;
|
|
2491
2491
|
expectedInputFields?: unknown[] | undefined;
|
|
2492
2492
|
restrictToFollowingTools?: string[] | undefined;
|
|
2493
2493
|
createdBy?: string | undefined;
|
|
@@ -2508,13 +2508,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2508
2508
|
noOfConnections: number;
|
|
2509
2509
|
uuid: string;
|
|
2510
2510
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2511
|
-
isComposioManaged?: boolean | undefined;
|
|
2512
2511
|
credentials?: Record<string, unknown> | undefined;
|
|
2513
2512
|
toolAccessConfig?: {
|
|
2514
2513
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2515
2514
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2516
2515
|
} | undefined;
|
|
2517
2516
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2517
|
+
isComposioManaged?: boolean | undefined;
|
|
2518
2518
|
expectedInputFields?: unknown[] | undefined;
|
|
2519
2519
|
restrictToFollowingTools?: string[] | undefined;
|
|
2520
2520
|
createdBy?: string | undefined;
|
|
@@ -2535,13 +2535,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2535
2535
|
noOfConnections: number;
|
|
2536
2536
|
uuid: string;
|
|
2537
2537
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2538
|
-
isComposioManaged?: boolean | undefined;
|
|
2539
2538
|
credentials?: Record<string, unknown> | undefined;
|
|
2540
2539
|
toolAccessConfig?: {
|
|
2541
2540
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2542
2541
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2543
2542
|
} | undefined;
|
|
2544
2543
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2544
|
+
isComposioManaged?: boolean | undefined;
|
|
2545
2545
|
expectedInputFields?: unknown[] | undefined;
|
|
2546
2546
|
restrictToFollowingTools?: string[] | undefined;
|
|
2547
2547
|
createdBy?: string | undefined;
|
|
@@ -2935,8 +2935,8 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
|
|
|
2935
2935
|
}, "strip", z.ZodTypeAny, {
|
|
2936
2936
|
connectedAccountId: string;
|
|
2937
2937
|
id: string;
|
|
2938
|
-
updatedAt: string;
|
|
2939
2938
|
state: Record<string, unknown>;
|
|
2939
|
+
updatedAt: string;
|
|
2940
2940
|
disabledAt: string | null;
|
|
2941
2941
|
triggerConfig: Record<string, unknown>;
|
|
2942
2942
|
triggerName: string;
|
|
@@ -2945,8 +2945,8 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
|
|
|
2945
2945
|
}, {
|
|
2946
2946
|
connectedAccountId: string;
|
|
2947
2947
|
id: string;
|
|
2948
|
-
updatedAt: string;
|
|
2949
2948
|
state: Record<string, unknown>;
|
|
2949
|
+
updatedAt: string;
|
|
2950
2950
|
disabledAt: string | null;
|
|
2951
2951
|
triggerConfig: Record<string, unknown>;
|
|
2952
2952
|
triggerName: string;
|
|
@@ -2967,8 +2967,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2967
2967
|
}, "strip", z.ZodTypeAny, {
|
|
2968
2968
|
connectedAccountId: string;
|
|
2969
2969
|
id: string;
|
|
2970
|
-
updatedAt: string;
|
|
2971
2970
|
state: Record<string, unknown>;
|
|
2971
|
+
updatedAt: string;
|
|
2972
2972
|
disabledAt: string | null;
|
|
2973
2973
|
triggerConfig: Record<string, unknown>;
|
|
2974
2974
|
triggerName: string;
|
|
@@ -2977,8 +2977,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2977
2977
|
}, {
|
|
2978
2978
|
connectedAccountId: string;
|
|
2979
2979
|
id: string;
|
|
2980
|
-
updatedAt: string;
|
|
2981
2980
|
state: Record<string, unknown>;
|
|
2981
|
+
updatedAt: string;
|
|
2982
2982
|
disabledAt: string | null;
|
|
2983
2983
|
triggerConfig: Record<string, unknown>;
|
|
2984
2984
|
triggerName: string;
|
|
@@ -2991,8 +2991,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2991
2991
|
items: {
|
|
2992
2992
|
connectedAccountId: string;
|
|
2993
2993
|
id: string;
|
|
2994
|
-
updatedAt: string;
|
|
2995
2994
|
state: Record<string, unknown>;
|
|
2995
|
+
updatedAt: string;
|
|
2996
2996
|
disabledAt: string | null;
|
|
2997
2997
|
triggerConfig: Record<string, unknown>;
|
|
2998
2998
|
triggerName: string;
|
|
@@ -3005,8 +3005,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
3005
3005
|
items: {
|
|
3006
3006
|
connectedAccountId: string;
|
|
3007
3007
|
id: string;
|
|
3008
|
-
updatedAt: string;
|
|
3009
3008
|
state: Record<string, unknown>;
|
|
3009
|
+
updatedAt: string;
|
|
3010
3010
|
disabledAt: string | null;
|
|
3011
3011
|
triggerConfig: Record<string, unknown>;
|
|
3012
3012
|
triggerName: string;
|
|
@@ -3102,8 +3102,6 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3102
3102
|
toolkitSlug: string;
|
|
3103
3103
|
id: string;
|
|
3104
3104
|
uuid: string;
|
|
3105
|
-
triggerSlug: string;
|
|
3106
|
-
triggerConfig: Record<string, unknown>;
|
|
3107
3105
|
connectedAccount: {
|
|
3108
3106
|
status: "ACTIVE" | "INACTIVE";
|
|
3109
3107
|
userId: string;
|
|
@@ -3112,13 +3110,13 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3112
3110
|
authConfigId: string;
|
|
3113
3111
|
authConfigUUID: string;
|
|
3114
3112
|
};
|
|
3113
|
+
triggerSlug: string;
|
|
3114
|
+
triggerConfig: Record<string, unknown>;
|
|
3115
3115
|
triggerData?: string | undefined;
|
|
3116
3116
|
}, {
|
|
3117
3117
|
toolkitSlug: string;
|
|
3118
3118
|
id: string;
|
|
3119
3119
|
uuid: string;
|
|
3120
|
-
triggerSlug: string;
|
|
3121
|
-
triggerConfig: Record<string, unknown>;
|
|
3122
3120
|
connectedAccount: {
|
|
3123
3121
|
status: "ACTIVE" | "INACTIVE";
|
|
3124
3122
|
userId: string;
|
|
@@ -3127,6 +3125,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3127
3125
|
authConfigId: string;
|
|
3128
3126
|
authConfigUUID: string;
|
|
3129
3127
|
};
|
|
3128
|
+
triggerSlug: string;
|
|
3129
|
+
triggerConfig: Record<string, unknown>;
|
|
3130
3130
|
triggerData?: string | undefined;
|
|
3131
3131
|
}>;
|
|
3132
3132
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3138,8 +3138,6 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3138
3138
|
toolkitSlug: string;
|
|
3139
3139
|
id: string;
|
|
3140
3140
|
uuid: string;
|
|
3141
|
-
triggerSlug: string;
|
|
3142
|
-
triggerConfig: Record<string, unknown>;
|
|
3143
3141
|
connectedAccount: {
|
|
3144
3142
|
status: "ACTIVE" | "INACTIVE";
|
|
3145
3143
|
userId: string;
|
|
@@ -3148,6 +3146,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3148
3146
|
authConfigId: string;
|
|
3149
3147
|
authConfigUUID: string;
|
|
3150
3148
|
};
|
|
3149
|
+
triggerSlug: string;
|
|
3150
|
+
triggerConfig: Record<string, unknown>;
|
|
3151
3151
|
triggerData?: string | undefined;
|
|
3152
3152
|
};
|
|
3153
3153
|
triggerSlug: string;
|
|
@@ -3162,8 +3162,6 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3162
3162
|
toolkitSlug: string;
|
|
3163
3163
|
id: string;
|
|
3164
3164
|
uuid: string;
|
|
3165
|
-
triggerSlug: string;
|
|
3166
|
-
triggerConfig: Record<string, unknown>;
|
|
3167
3165
|
connectedAccount: {
|
|
3168
3166
|
status: "ACTIVE" | "INACTIVE";
|
|
3169
3167
|
userId: string;
|
|
@@ -3172,6 +3170,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3172
3170
|
authConfigId: string;
|
|
3173
3171
|
authConfigUUID: string;
|
|
3174
3172
|
};
|
|
3173
|
+
triggerSlug: string;
|
|
3174
|
+
triggerConfig: Record<string, unknown>;
|
|
3175
3175
|
triggerData?: string | undefined;
|
|
3176
3176
|
};
|
|
3177
3177
|
triggerSlug: string;
|
|
@@ -5291,6 +5291,353 @@ declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection
|
|
|
5291
5291
|
//#region src/types/composio.types.d.ts
|
|
5292
5292
|
type ComposioRequestHeaders = Record<string, string>;
|
|
5293
5293
|
//#endregion
|
|
5294
|
+
//#region src/types/ToolRouterSessionFilesMount.types.d.ts
|
|
5295
|
+
declare const ToolRouterSessionFilesMountListOptionsSchema: z$1.ZodObject<{
|
|
5296
|
+
path: z$1.ZodOptional<z$1.ZodString>;
|
|
5297
|
+
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
5298
|
+
/** Pagination cursor from the previous response nextCursor field */
|
|
5299
|
+
cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
5300
|
+
/** Maximum number of files to return per page (1-500) */
|
|
5301
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
5302
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5303
|
+
mountId: string;
|
|
5304
|
+
path?: string | undefined;
|
|
5305
|
+
limit?: number | undefined;
|
|
5306
|
+
cursor?: string | undefined;
|
|
5307
|
+
}, {
|
|
5308
|
+
path?: string | undefined;
|
|
5309
|
+
limit?: number | undefined;
|
|
5310
|
+
cursor?: string | undefined;
|
|
5311
|
+
mountId?: string | undefined;
|
|
5312
|
+
}>;
|
|
5313
|
+
type ToolRouterSessionFilesMountListOptions = z$1.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
|
|
5314
|
+
declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
5315
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
5316
|
+
last_modified: z$1.ZodString;
|
|
5317
|
+
mount_relative_path: z$1.ZodString;
|
|
5318
|
+
sandbox_mount_prefix: z$1.ZodString;
|
|
5319
|
+
size: z$1.ZodNumber;
|
|
5320
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5321
|
+
last_modified: string;
|
|
5322
|
+
mount_relative_path: string;
|
|
5323
|
+
sandbox_mount_prefix: string;
|
|
5324
|
+
size: number;
|
|
5325
|
+
}, {
|
|
5326
|
+
last_modified: string;
|
|
5327
|
+
mount_relative_path: string;
|
|
5328
|
+
sandbox_mount_prefix: string;
|
|
5329
|
+
size: number;
|
|
5330
|
+
}>, "many">;
|
|
5331
|
+
next_cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
5332
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5333
|
+
items: {
|
|
5334
|
+
last_modified: string;
|
|
5335
|
+
mount_relative_path: string;
|
|
5336
|
+
sandbox_mount_prefix: string;
|
|
5337
|
+
size: number;
|
|
5338
|
+
}[];
|
|
5339
|
+
next_cursor?: string | undefined;
|
|
5340
|
+
}, {
|
|
5341
|
+
items: {
|
|
5342
|
+
last_modified: string;
|
|
5343
|
+
mount_relative_path: string;
|
|
5344
|
+
sandbox_mount_prefix: string;
|
|
5345
|
+
size: number;
|
|
5346
|
+
}[];
|
|
5347
|
+
next_cursor?: string | undefined;
|
|
5348
|
+
}>, {
|
|
5349
|
+
items: {
|
|
5350
|
+
lastModified: string;
|
|
5351
|
+
mountRelativePath: string;
|
|
5352
|
+
sandboxMountPrefix: string;
|
|
5353
|
+
size: number;
|
|
5354
|
+
}[];
|
|
5355
|
+
nextCursor: string | undefined;
|
|
5356
|
+
}, {
|
|
5357
|
+
items: {
|
|
5358
|
+
last_modified: string;
|
|
5359
|
+
mount_relative_path: string;
|
|
5360
|
+
sandbox_mount_prefix: string;
|
|
5361
|
+
size: number;
|
|
5362
|
+
}[];
|
|
5363
|
+
next_cursor?: string | undefined;
|
|
5364
|
+
}>;
|
|
5365
|
+
type FileListResponse = z$1.infer<typeof FileListResponseSchema>;
|
|
5366
|
+
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z$1.ZodObject<{
|
|
5367
|
+
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
|
|
5368
|
+
remotePath: z$1.ZodOptional<z$1.ZodString>;
|
|
5369
|
+
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
5370
|
+
/** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
|
|
5371
|
+
mimetype: z$1.ZodOptional<z$1.ZodString>;
|
|
5372
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5373
|
+
mountId: string;
|
|
5374
|
+
remotePath?: string | undefined;
|
|
5375
|
+
mimetype?: string | undefined;
|
|
5376
|
+
}, {
|
|
5377
|
+
mountId?: string | undefined;
|
|
5378
|
+
remotePath?: string | undefined;
|
|
5379
|
+
mimetype?: string | undefined;
|
|
5380
|
+
}>;
|
|
5381
|
+
type ToolRouterSessionFilesMountUploadOptions = z$1.input<typeof ToolRouterSessionFilesMountUploadOptionsSchema>;
|
|
5382
|
+
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z$1.ZodObject<{
|
|
5383
|
+
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
5384
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5385
|
+
mountId: string;
|
|
5386
|
+
}, {
|
|
5387
|
+
mountId?: string | undefined;
|
|
5388
|
+
}>;
|
|
5389
|
+
type ToolRouterSessionFilesMountDownloadOptions = z$1.input<typeof ToolRouterSessionFilesMountDownloadOptionsSchema>;
|
|
5390
|
+
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z$1.ZodObject<{
|
|
5391
|
+
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
5392
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5393
|
+
mountId: string;
|
|
5394
|
+
}, {
|
|
5395
|
+
mountId?: string | undefined;
|
|
5396
|
+
}>;
|
|
5397
|
+
type ToolRouterSessionFilesMountDeleteOptions = z$1.input<typeof ToolRouterSessionFilesMountDeleteOptionsSchema>;
|
|
5398
|
+
declare const RemoteFileDataSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
5399
|
+
expires_at: z$1.ZodString;
|
|
5400
|
+
mount_relative_path: z$1.ZodString;
|
|
5401
|
+
sandbox_mount_prefix: z$1.ZodString;
|
|
5402
|
+
download_url: z$1.ZodString;
|
|
5403
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5404
|
+
mount_relative_path: string;
|
|
5405
|
+
sandbox_mount_prefix: string;
|
|
5406
|
+
expires_at: string;
|
|
5407
|
+
download_url: string;
|
|
5408
|
+
}, {
|
|
5409
|
+
mount_relative_path: string;
|
|
5410
|
+
sandbox_mount_prefix: string;
|
|
5411
|
+
expires_at: string;
|
|
5412
|
+
download_url: string;
|
|
5413
|
+
}>, {
|
|
5414
|
+
expiresAt: string;
|
|
5415
|
+
mountRelativePath: string;
|
|
5416
|
+
sandboxMountPrefix: string;
|
|
5417
|
+
downloadUrl: string;
|
|
5418
|
+
}, {
|
|
5419
|
+
mount_relative_path: string;
|
|
5420
|
+
sandbox_mount_prefix: string;
|
|
5421
|
+
expires_at: string;
|
|
5422
|
+
download_url: string;
|
|
5423
|
+
}>;
|
|
5424
|
+
/** Parsed shape from API response. Use with `new RemoteFile(data)`. */
|
|
5425
|
+
type RemoteFileData = z$1.infer<typeof RemoteFileDataSchema>;
|
|
5426
|
+
declare const FileDeleteResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
5427
|
+
mount_relative_path: z$1.ZodString;
|
|
5428
|
+
sandbox_mount_prefix: z$1.ZodString;
|
|
5429
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5430
|
+
mount_relative_path: string;
|
|
5431
|
+
sandbox_mount_prefix: string;
|
|
5432
|
+
}, {
|
|
5433
|
+
mount_relative_path: string;
|
|
5434
|
+
sandbox_mount_prefix: string;
|
|
5435
|
+
}>, {
|
|
5436
|
+
mountRelativePath: string;
|
|
5437
|
+
sandboxMountPrefix: string;
|
|
5438
|
+
}, {
|
|
5439
|
+
mount_relative_path: string;
|
|
5440
|
+
sandbox_mount_prefix: string;
|
|
5441
|
+
}>;
|
|
5442
|
+
type FileDeleteResponse = z$1.infer<typeof FileDeleteResponseSchema>;
|
|
5443
|
+
//#endregion
|
|
5444
|
+
//#region src/models/RemoteFile.d.ts
|
|
5445
|
+
/**
|
|
5446
|
+
* Represents a file stored in a tool router session's file mount.
|
|
5447
|
+
* Provides methods to fetch, save, and work with the file content.
|
|
5448
|
+
*
|
|
5449
|
+
* @example
|
|
5450
|
+
* ```typescript
|
|
5451
|
+
* const remoteFile = await session.experimental.files.download('/output/report.pdf');
|
|
5452
|
+
* const buffer = await remoteFile.buffer();
|
|
5453
|
+
* await remoteFile.save('/tmp/report.pdf');
|
|
5454
|
+
* const text = await remoteFile.text();
|
|
5455
|
+
* ```
|
|
5456
|
+
*
|
|
5457
|
+
* @example
|
|
5458
|
+
* ```typescript
|
|
5459
|
+
* // Create from API response (snake_case)
|
|
5460
|
+
* const remoteFile = RemoteFile.parse(apiResponse);
|
|
5461
|
+
*
|
|
5462
|
+
* // Or create from parsed data (camelCase)
|
|
5463
|
+
* const remoteFile = new RemoteFile({
|
|
5464
|
+
* expiresAt: '...',
|
|
5465
|
+
* mountRelativePath: 'report.pdf',
|
|
5466
|
+
* sandboxMountPrefix: '/mnt/files',
|
|
5467
|
+
* downloadUrl: 'https://...',
|
|
5468
|
+
* });
|
|
5469
|
+
* ```
|
|
5470
|
+
*/
|
|
5471
|
+
declare class RemoteFile {
|
|
5472
|
+
/** ISO 8601 timestamp when the download URL expires */
|
|
5473
|
+
readonly expiresAt: string;
|
|
5474
|
+
/** Relative path within the mount (e.g. "report.pdf") */
|
|
5475
|
+
readonly mountRelativePath: string;
|
|
5476
|
+
/** Absolute mount path inside the sandbox (e.g. /mnt/files) */
|
|
5477
|
+
readonly sandboxMountPrefix: string;
|
|
5478
|
+
/** Presigned URL for downloading the file */
|
|
5479
|
+
readonly downloadUrl: string;
|
|
5480
|
+
constructor(data: RemoteFileData);
|
|
5481
|
+
/**
|
|
5482
|
+
* Parses an API response (snake_case) and returns a RemoteFile instance.
|
|
5483
|
+
* @param data - Raw API response with snake_case keys
|
|
5484
|
+
* @returns A RemoteFile instance
|
|
5485
|
+
* @throws ValidationError if the response shape is invalid
|
|
5486
|
+
*/
|
|
5487
|
+
static parse(data: unknown): RemoteFile;
|
|
5488
|
+
/** Filename extracted from the mount path (e.g. "report.pdf" from "output/report.pdf") */
|
|
5489
|
+
get filename(): string;
|
|
5490
|
+
/**
|
|
5491
|
+
* Fetches the file content as a buffer.
|
|
5492
|
+
* @returns The file content as a Uint8Array
|
|
5493
|
+
* @throws RemoteFileDownloadError if the fetch fails
|
|
5494
|
+
*/
|
|
5495
|
+
buffer(): Promise<Uint8Array>;
|
|
5496
|
+
/**
|
|
5497
|
+
* Fetches the file content as UTF-8 text.
|
|
5498
|
+
* @returns The file content as a string
|
|
5499
|
+
* @throws Error if the fetch fails
|
|
5500
|
+
*/
|
|
5501
|
+
text(): Promise<string>;
|
|
5502
|
+
/**
|
|
5503
|
+
* Fetches the file content as a Blob.
|
|
5504
|
+
* @returns The file content as a Blob
|
|
5505
|
+
* @throws RemoteFileDownloadError if the fetch fails
|
|
5506
|
+
*/
|
|
5507
|
+
blob(): Promise<Blob>;
|
|
5508
|
+
/**
|
|
5509
|
+
* Downloads and saves the file to the local filesystem.
|
|
5510
|
+
* Requires a Node.js runtime with file system support (not available in Cloudflare Workers/Edge).
|
|
5511
|
+
*
|
|
5512
|
+
* @param path - Local path to save the file. If omitted, saves to the Composio temp directory using the filename from the mount path.
|
|
5513
|
+
* @returns The absolute path where the file was saved
|
|
5514
|
+
* @throws Error if file system is not supported or the save fails
|
|
5515
|
+
*/
|
|
5516
|
+
save(path?: string): Promise<string>;
|
|
5517
|
+
}
|
|
5518
|
+
//#endregion
|
|
5519
|
+
//#region src/models/ToolRouterSessionFileMount.d.ts
|
|
5520
|
+
declare class ToolRouterSessionFilesMount {
|
|
5521
|
+
private readonly sessionId;
|
|
5522
|
+
private readonly client;
|
|
5523
|
+
constructor(client: Composio, sessionId: string);
|
|
5524
|
+
/**
|
|
5525
|
+
* Lists files and directories at the specified path on the session's file mount.
|
|
5526
|
+
*
|
|
5527
|
+
* Use this to browse the virtual filesystem attached to the tool router session.
|
|
5528
|
+
* The path is relative to the mount root (e.g., `"/"` for root, `"/documents"` for a subdirectory).
|
|
5529
|
+
* Supports cursor-based pagination via `cursor` and `limit` options.
|
|
5530
|
+
*
|
|
5531
|
+
* @param options - Optional configuration for the list operation.
|
|
5532
|
+
* @param options.path - The directory path to list. Use `"/"` for the mount root.
|
|
5533
|
+
* @param options.mountId - The ID of the file mount to operate on. Defaults to `"files"` when omitted.
|
|
5534
|
+
* @param options.cursor - Pagination cursor from the previous response's nextCursor field.
|
|
5535
|
+
* @param options.limit - Maximum number of files to return per page (1-500).
|
|
5536
|
+
* @returns List of files with nextCursor for pagination.
|
|
5537
|
+
*
|
|
5538
|
+
* @example
|
|
5539
|
+
* ```typescript
|
|
5540
|
+
* const session = await composio.toolRouter.use('session_123');
|
|
5541
|
+
* const { items, nextCursor } = await session.experimental.files.list({ path: '/' });
|
|
5542
|
+
* ```
|
|
5543
|
+
*
|
|
5544
|
+
* @example
|
|
5545
|
+
* ```typescript
|
|
5546
|
+
* // Paginated listing
|
|
5547
|
+
* let result = await session.experimental.files.list({ path: '/', limit: 10 });
|
|
5548
|
+
* while (result.nextCursor) {
|
|
5549
|
+
* result = await session.experimental.files.list({ path: '/', cursor: result.nextCursor, limit: 10 });
|
|
5550
|
+
* }
|
|
5551
|
+
* ```
|
|
5552
|
+
*/
|
|
5553
|
+
list(options?: ToolRouterSessionFilesMountListOptions): Promise<FileListResponse>;
|
|
5554
|
+
private normalizeUploadInput;
|
|
5555
|
+
/**
|
|
5556
|
+
* Uploads a file to the session's file mount.
|
|
5557
|
+
*
|
|
5558
|
+
* Accepts a file path (local or URL), a native File object, or a raw buffer.
|
|
5559
|
+
* The file is stored in the virtual filesystem associated with the tool router session.
|
|
5560
|
+
*
|
|
5561
|
+
* @param input - File path (string), native File, or raw buffer (ArrayBuffer | Uint8Array).
|
|
5562
|
+
* @param options - Optional configuration. When passing a buffer, remotePath is required.
|
|
5563
|
+
* @returns Metadata about the uploaded file.
|
|
5564
|
+
*
|
|
5565
|
+
* @example
|
|
5566
|
+
* ```typescript
|
|
5567
|
+
* // From file path (local or URL)
|
|
5568
|
+
* await session.experimental.files.upload('/path/to/report.pdf');
|
|
5569
|
+
* await session.experimental.files.upload('https://example.com/file.pdf');
|
|
5570
|
+
* ```
|
|
5571
|
+
*
|
|
5572
|
+
* @example
|
|
5573
|
+
* ```typescript
|
|
5574
|
+
* // From native File (e.g. from input[type=file])
|
|
5575
|
+
* await session.experimental.files.upload(fileInput.files[0]);
|
|
5576
|
+
* ```
|
|
5577
|
+
*
|
|
5578
|
+
* @example
|
|
5579
|
+
* ```typescript
|
|
5580
|
+
* // From raw buffer
|
|
5581
|
+
* await session.experimental.files.upload(buffer, { remotePath: 'data.json', mimetype: 'application/json' });
|
|
5582
|
+
* ```
|
|
5583
|
+
*/
|
|
5584
|
+
upload(input: string | File | ArrayBuffer | Uint8Array, options?: ToolRouterSessionFilesMountUploadOptions): Promise<RemoteFile>;
|
|
5585
|
+
/**
|
|
5586
|
+
* Downloads a file from the session's file mount to the local filesystem.
|
|
5587
|
+
*
|
|
5588
|
+
* Retrieves a file stored in the session's virtual filesystem (e.g., one produced
|
|
5589
|
+
* by a tool or previously uploaded) and saves it to the specified local path.
|
|
5590
|
+
*
|
|
5591
|
+
* @param filePath - The path of the file on the mount to download, or the local path where the file should be saved (implementation-specific).
|
|
5592
|
+
* @param options - Optional configuration for the download.
|
|
5593
|
+
* @param options.mountId - The ID of the file mount to download from. Defaults to `"files"` when omitted.
|
|
5594
|
+
* @returns The downloaded file data or path (implementation-specific).
|
|
5595
|
+
*
|
|
5596
|
+
* @example
|
|
5597
|
+
* ```typescript
|
|
5598
|
+
* const session = await composio.toolRouter.use('session_123');
|
|
5599
|
+
* const result = await session.experimental.files.download('/output/report.pdf');
|
|
5600
|
+
* ```
|
|
5601
|
+
*
|
|
5602
|
+
* @example
|
|
5603
|
+
* ```typescript
|
|
5604
|
+
* // Download from a custom mount
|
|
5605
|
+
* await session.experimental.files.download('/exports/data.json', {
|
|
5606
|
+
* mountId: 'custom-mount',
|
|
5607
|
+
* });
|
|
5608
|
+
* ```
|
|
5609
|
+
*/
|
|
5610
|
+
download(filePath: string, options?: ToolRouterSessionFilesMountDownloadOptions): Promise<RemoteFile>;
|
|
5611
|
+
/**
|
|
5612
|
+
* Deletes a file or directory at the specified path on the session's file mount.
|
|
5613
|
+
*
|
|
5614
|
+
* Removes the file or directory from the virtual filesystem. Use with caution:
|
|
5615
|
+
* deletion is typically irreversible. Ensure the path exists and is intended for removal.
|
|
5616
|
+
*
|
|
5617
|
+
* @param remotePath - The path of the file or directory to delete on the mount.
|
|
5618
|
+
* @param options - Optional configuration for the delete operation.
|
|
5619
|
+
* @param options.mountId - The ID of the file mount to operate on. Defaults to `"files"` when omitted.
|
|
5620
|
+
* @returns Confirmation of deletion (implementation-specific).
|
|
5621
|
+
*
|
|
5622
|
+
* @example
|
|
5623
|
+
* ```typescript
|
|
5624
|
+
* const session = await composio.toolRouter.use('session_123');
|
|
5625
|
+
* await session.experimental.files.delete('/temp/cache.json');
|
|
5626
|
+
* ```
|
|
5627
|
+
*
|
|
5628
|
+
* @example
|
|
5629
|
+
* ```typescript
|
|
5630
|
+
* // Delete from a custom mount
|
|
5631
|
+
* await session.experimental.files.delete('/old-backup', {
|
|
5632
|
+
* mountId: 'custom-mount',
|
|
5633
|
+
* });
|
|
5634
|
+
* ```
|
|
5635
|
+
*
|
|
5636
|
+
* @warning This operation is destructive. Deleted files cannot be recovered.
|
|
5637
|
+
*/
|
|
5638
|
+
delete(remotePath: string, options?: ToolRouterSessionFilesMountDeleteOptions): Promise<FileDeleteResponse>;
|
|
5639
|
+
}
|
|
5640
|
+
//#endregion
|
|
5294
5641
|
//#region src/types/toolRouter.types.d.ts
|
|
5295
5642
|
declare const MCPServerTypeSchema: z$1.ZodEnum<["http", "sse"]>;
|
|
5296
5643
|
type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
|
|
@@ -5901,46 +6248,334 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
|
5901
6248
|
}>;
|
|
5902
6249
|
type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
5903
6250
|
type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
|
|
6251
|
+
declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
6252
|
+
success: z$1.ZodBoolean;
|
|
6253
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
6254
|
+
results: z$1.ZodArray<z$1.ZodObject<{
|
|
6255
|
+
index: z$1.ZodNumber;
|
|
6256
|
+
useCase: z$1.ZodString;
|
|
6257
|
+
primaryToolSlugs: z$1.ZodArray<z$1.ZodString, "many">;
|
|
6258
|
+
relatedToolSlugs: z$1.ZodArray<z$1.ZodString, "many">;
|
|
6259
|
+
toolkits: z$1.ZodArray<z$1.ZodString, "many">;
|
|
6260
|
+
difficulty: z$1.ZodOptional<z$1.ZodString>;
|
|
6261
|
+
error: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
6262
|
+
executionGuidance: z$1.ZodOptional<z$1.ZodString>;
|
|
6263
|
+
knownPitfalls: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
6264
|
+
memory: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
6265
|
+
planId: z$1.ZodOptional<z$1.ZodString>;
|
|
6266
|
+
recommendedPlanSteps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
6267
|
+
referenceWorkbenchSnippets: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
6268
|
+
code: z$1.ZodString;
|
|
6269
|
+
description: z$1.ZodString;
|
|
6270
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6271
|
+
code: string;
|
|
6272
|
+
description: string;
|
|
6273
|
+
}, {
|
|
6274
|
+
code: string;
|
|
6275
|
+
description: string;
|
|
6276
|
+
}>, "many">>;
|
|
6277
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6278
|
+
toolkits: string[];
|
|
6279
|
+
index: number;
|
|
6280
|
+
useCase: string;
|
|
6281
|
+
primaryToolSlugs: string[];
|
|
6282
|
+
relatedToolSlugs: string[];
|
|
6283
|
+
error?: string | null | undefined;
|
|
6284
|
+
difficulty?: string | undefined;
|
|
6285
|
+
executionGuidance?: string | undefined;
|
|
6286
|
+
knownPitfalls?: string[] | undefined;
|
|
6287
|
+
memory?: Record<string, string[]> | undefined;
|
|
6288
|
+
planId?: string | undefined;
|
|
6289
|
+
recommendedPlanSteps?: string[] | undefined;
|
|
6290
|
+
referenceWorkbenchSnippets?: {
|
|
6291
|
+
code: string;
|
|
6292
|
+
description: string;
|
|
6293
|
+
}[] | undefined;
|
|
6294
|
+
}, {
|
|
6295
|
+
toolkits: string[];
|
|
6296
|
+
index: number;
|
|
6297
|
+
useCase: string;
|
|
6298
|
+
primaryToolSlugs: string[];
|
|
6299
|
+
relatedToolSlugs: string[];
|
|
6300
|
+
error?: string | null | undefined;
|
|
6301
|
+
difficulty?: string | undefined;
|
|
6302
|
+
executionGuidance?: string | undefined;
|
|
6303
|
+
knownPitfalls?: string[] | undefined;
|
|
6304
|
+
memory?: Record<string, string[]> | undefined;
|
|
6305
|
+
planId?: string | undefined;
|
|
6306
|
+
recommendedPlanSteps?: string[] | undefined;
|
|
6307
|
+
referenceWorkbenchSnippets?: {
|
|
6308
|
+
code: string;
|
|
6309
|
+
description: string;
|
|
6310
|
+
}[] | undefined;
|
|
6311
|
+
}>, "many">;
|
|
6312
|
+
toolSchemas: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
6313
|
+
toolSlug: z$1.ZodString;
|
|
6314
|
+
toolkit: z$1.ZodString;
|
|
6315
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
6316
|
+
hasFullSchema: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
6317
|
+
inputSchema: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6318
|
+
outputSchema: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6319
|
+
schemaRef: z$1.ZodOptional<z$1.ZodObject<{
|
|
6320
|
+
args: z$1.ZodObject<{
|
|
6321
|
+
toolSlugs: z$1.ZodArray<z$1.ZodString, "many">;
|
|
6322
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6323
|
+
toolSlugs: string[];
|
|
6324
|
+
}, {
|
|
6325
|
+
toolSlugs: string[];
|
|
6326
|
+
}>;
|
|
6327
|
+
message: z$1.ZodString;
|
|
6328
|
+
tool: z$1.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
|
|
6329
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6330
|
+
message: string;
|
|
6331
|
+
args: {
|
|
6332
|
+
toolSlugs: string[];
|
|
6333
|
+
};
|
|
6334
|
+
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
6335
|
+
}, {
|
|
6336
|
+
message: string;
|
|
6337
|
+
args: {
|
|
6338
|
+
toolSlugs: string[];
|
|
6339
|
+
};
|
|
6340
|
+
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
6341
|
+
}>>;
|
|
6342
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6343
|
+
toolkit: string;
|
|
6344
|
+
toolSlug: string;
|
|
6345
|
+
description?: string | undefined;
|
|
6346
|
+
hasFullSchema?: boolean | undefined;
|
|
6347
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
6348
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
6349
|
+
schemaRef?: {
|
|
6350
|
+
message: string;
|
|
6351
|
+
args: {
|
|
6352
|
+
toolSlugs: string[];
|
|
6353
|
+
};
|
|
6354
|
+
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
6355
|
+
} | undefined;
|
|
6356
|
+
}, {
|
|
6357
|
+
toolkit: string;
|
|
6358
|
+
toolSlug: string;
|
|
6359
|
+
description?: string | undefined;
|
|
6360
|
+
hasFullSchema?: boolean | undefined;
|
|
6361
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
6362
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
6363
|
+
schemaRef?: {
|
|
6364
|
+
message: string;
|
|
6365
|
+
args: {
|
|
6366
|
+
toolSlugs: string[];
|
|
6367
|
+
};
|
|
6368
|
+
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
6369
|
+
} | undefined;
|
|
6370
|
+
}>>;
|
|
6371
|
+
toolkitConnectionStatuses: z$1.ZodArray<z$1.ZodObject<{
|
|
6372
|
+
toolkit: z$1.ZodString;
|
|
6373
|
+
description: z$1.ZodString;
|
|
6374
|
+
hasActiveConnection: z$1.ZodBoolean;
|
|
6375
|
+
statusMessage: z$1.ZodString;
|
|
6376
|
+
connectionDetails: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6377
|
+
currentUserInfo: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6378
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6379
|
+
description: string;
|
|
6380
|
+
toolkit: string;
|
|
6381
|
+
hasActiveConnection: boolean;
|
|
6382
|
+
statusMessage: string;
|
|
6383
|
+
connectionDetails?: Record<string, unknown> | undefined;
|
|
6384
|
+
currentUserInfo?: Record<string, unknown> | undefined;
|
|
6385
|
+
}, {
|
|
6386
|
+
description: string;
|
|
6387
|
+
toolkit: string;
|
|
6388
|
+
hasActiveConnection: boolean;
|
|
6389
|
+
statusMessage: string;
|
|
6390
|
+
connectionDetails?: Record<string, unknown> | undefined;
|
|
6391
|
+
currentUserInfo?: Record<string, unknown> | undefined;
|
|
6392
|
+
}>, "many">;
|
|
6393
|
+
nextStepsGuidance: z$1.ZodArray<z$1.ZodString, "many">;
|
|
6394
|
+
session: z$1.ZodObject<{
|
|
6395
|
+
id: z$1.ZodString;
|
|
6396
|
+
generateId: z$1.ZodBoolean;
|
|
6397
|
+
instructions: z$1.ZodString;
|
|
6398
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6399
|
+
id: string;
|
|
6400
|
+
instructions: string;
|
|
6401
|
+
generateId: boolean;
|
|
6402
|
+
}, {
|
|
6403
|
+
id: string;
|
|
6404
|
+
instructions: string;
|
|
6405
|
+
generateId: boolean;
|
|
6406
|
+
}>;
|
|
6407
|
+
timeInfo: z$1.ZodObject<{
|
|
6408
|
+
currentTimeUtc: z$1.ZodString;
|
|
6409
|
+
currentTimeUtcEpochSeconds: z$1.ZodNumber;
|
|
6410
|
+
message: z$1.ZodString;
|
|
6411
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6412
|
+
message: string;
|
|
6413
|
+
currentTimeUtc: string;
|
|
6414
|
+
currentTimeUtcEpochSeconds: number;
|
|
6415
|
+
}, {
|
|
6416
|
+
message: string;
|
|
6417
|
+
currentTimeUtc: string;
|
|
6418
|
+
currentTimeUtcEpochSeconds: number;
|
|
6419
|
+
}>;
|
|
6420
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6421
|
+
error: string | null;
|
|
6422
|
+
success: boolean;
|
|
6423
|
+
results: {
|
|
6424
|
+
toolkits: string[];
|
|
6425
|
+
index: number;
|
|
6426
|
+
useCase: string;
|
|
6427
|
+
primaryToolSlugs: string[];
|
|
6428
|
+
relatedToolSlugs: string[];
|
|
6429
|
+
error?: string | null | undefined;
|
|
6430
|
+
difficulty?: string | undefined;
|
|
6431
|
+
executionGuidance?: string | undefined;
|
|
6432
|
+
knownPitfalls?: string[] | undefined;
|
|
6433
|
+
memory?: Record<string, string[]> | undefined;
|
|
6434
|
+
planId?: string | undefined;
|
|
6435
|
+
recommendedPlanSteps?: string[] | undefined;
|
|
6436
|
+
referenceWorkbenchSnippets?: {
|
|
6437
|
+
code: string;
|
|
6438
|
+
description: string;
|
|
6439
|
+
}[] | undefined;
|
|
6440
|
+
}[];
|
|
6441
|
+
toolSchemas: Record<string, {
|
|
6442
|
+
toolkit: string;
|
|
6443
|
+
toolSlug: string;
|
|
6444
|
+
description?: string | undefined;
|
|
6445
|
+
hasFullSchema?: boolean | undefined;
|
|
6446
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
6447
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
6448
|
+
schemaRef?: {
|
|
6449
|
+
message: string;
|
|
6450
|
+
args: {
|
|
6451
|
+
toolSlugs: string[];
|
|
6452
|
+
};
|
|
6453
|
+
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
6454
|
+
} | undefined;
|
|
6455
|
+
}>;
|
|
6456
|
+
toolkitConnectionStatuses: {
|
|
6457
|
+
description: string;
|
|
6458
|
+
toolkit: string;
|
|
6459
|
+
hasActiveConnection: boolean;
|
|
6460
|
+
statusMessage: string;
|
|
6461
|
+
connectionDetails?: Record<string, unknown> | undefined;
|
|
6462
|
+
currentUserInfo?: Record<string, unknown> | undefined;
|
|
6463
|
+
}[];
|
|
6464
|
+
nextStepsGuidance: string[];
|
|
6465
|
+
session: {
|
|
6466
|
+
id: string;
|
|
6467
|
+
instructions: string;
|
|
6468
|
+
generateId: boolean;
|
|
6469
|
+
};
|
|
6470
|
+
timeInfo: {
|
|
6471
|
+
message: string;
|
|
6472
|
+
currentTimeUtc: string;
|
|
6473
|
+
currentTimeUtcEpochSeconds: number;
|
|
6474
|
+
};
|
|
6475
|
+
}, {
|
|
6476
|
+
error: string | null;
|
|
6477
|
+
success: boolean;
|
|
6478
|
+
results: {
|
|
6479
|
+
toolkits: string[];
|
|
6480
|
+
index: number;
|
|
6481
|
+
useCase: string;
|
|
6482
|
+
primaryToolSlugs: string[];
|
|
6483
|
+
relatedToolSlugs: string[];
|
|
6484
|
+
error?: string | null | undefined;
|
|
6485
|
+
difficulty?: string | undefined;
|
|
6486
|
+
executionGuidance?: string | undefined;
|
|
6487
|
+
knownPitfalls?: string[] | undefined;
|
|
6488
|
+
memory?: Record<string, string[]> | undefined;
|
|
6489
|
+
planId?: string | undefined;
|
|
6490
|
+
recommendedPlanSteps?: string[] | undefined;
|
|
6491
|
+
referenceWorkbenchSnippets?: {
|
|
6492
|
+
code: string;
|
|
6493
|
+
description: string;
|
|
6494
|
+
}[] | undefined;
|
|
6495
|
+
}[];
|
|
6496
|
+
toolSchemas: Record<string, {
|
|
6497
|
+
toolkit: string;
|
|
6498
|
+
toolSlug: string;
|
|
6499
|
+
description?: string | undefined;
|
|
6500
|
+
hasFullSchema?: boolean | undefined;
|
|
6501
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
6502
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
6503
|
+
schemaRef?: {
|
|
6504
|
+
message: string;
|
|
6505
|
+
args: {
|
|
6506
|
+
toolSlugs: string[];
|
|
6507
|
+
};
|
|
6508
|
+
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
6509
|
+
} | undefined;
|
|
6510
|
+
}>;
|
|
6511
|
+
toolkitConnectionStatuses: {
|
|
6512
|
+
description: string;
|
|
6513
|
+
toolkit: string;
|
|
6514
|
+
hasActiveConnection: boolean;
|
|
6515
|
+
statusMessage: string;
|
|
6516
|
+
connectionDetails?: Record<string, unknown> | undefined;
|
|
6517
|
+
currentUserInfo?: Record<string, unknown> | undefined;
|
|
6518
|
+
}[];
|
|
6519
|
+
nextStepsGuidance: string[];
|
|
6520
|
+
session: {
|
|
6521
|
+
id: string;
|
|
6522
|
+
instructions: string;
|
|
6523
|
+
generateId: boolean;
|
|
6524
|
+
};
|
|
6525
|
+
timeInfo: {
|
|
6526
|
+
message: string;
|
|
6527
|
+
currentTimeUtc: string;
|
|
6528
|
+
currentTimeUtcEpochSeconds: number;
|
|
6529
|
+
};
|
|
6530
|
+
}>;
|
|
6531
|
+
type ToolRouterSessionSearchResponse = z$1.infer<typeof ToolRouterSessionSearchResponseSchema>;
|
|
6532
|
+
declare const ToolRouterSessionExecuteResponseSchema: z$1.ZodObject<{
|
|
6533
|
+
data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
6534
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
6535
|
+
logId: z$1.ZodString;
|
|
6536
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
6537
|
+
data: Record<string, unknown>;
|
|
6538
|
+
error: string | null;
|
|
6539
|
+
logId: string;
|
|
6540
|
+
}, {
|
|
6541
|
+
data: Record<string, unknown>;
|
|
6542
|
+
error: string | null;
|
|
6543
|
+
logId: string;
|
|
6544
|
+
}>;
|
|
6545
|
+
type ToolRouterSessionExecuteResponse = z$1.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
5904
6546
|
/**
|
|
5905
|
-
* Experimental features
|
|
5906
|
-
*
|
|
6547
|
+
* Experimental features on a tool router session.
|
|
6548
|
+
* Contains features that may be modified or removed in future versions.
|
|
5907
6549
|
*/
|
|
5908
|
-
interface
|
|
6550
|
+
interface SessionExperimental {
|
|
5909
6551
|
/**
|
|
5910
6552
|
* The assistive system prompt to inject into your agent for optimal tool router usage.
|
|
6553
|
+
* Only returned on session creation, not on GET.
|
|
5911
6554
|
*/
|
|
5912
6555
|
assistivePrompt?: string;
|
|
5913
|
-
}
|
|
5914
|
-
interface ToolRouterSession<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
5915
6556
|
/**
|
|
5916
|
-
*
|
|
6557
|
+
* File mount operations (list, upload, download, delete) for the session's virtual filesystem.
|
|
5917
6558
|
*/
|
|
6559
|
+
files: ToolRouterSessionFilesMount;
|
|
6560
|
+
}
|
|
6561
|
+
type ToolRouterSessionSearchFn = (params: {
|
|
6562
|
+
query: string;
|
|
6563
|
+
toolkits?: string[];
|
|
6564
|
+
}) => Promise<ToolRouterSessionSearchResponse>;
|
|
6565
|
+
type ToolRouterSessionExecuteFn = (toolSlug: string, arguments_?: Record<string, unknown>) => Promise<ToolRouterSessionExecuteResponse>;
|
|
6566
|
+
/** Session type returned by ToolRouter.create() and ToolRouter.use() */
|
|
6567
|
+
interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
5918
6568
|
sessionId: string;
|
|
5919
|
-
/**
|
|
5920
|
-
* The MCP server config of the tool router session.
|
|
5921
|
-
* Contains the URL, type ('http' or 'sse'), and headers for authentication.
|
|
5922
|
-
*/
|
|
5923
6569
|
mcp: ToolRouterMCPServerConfig;
|
|
5924
|
-
/**
|
|
5925
|
-
* Get the tools available in the session, formatted for your AI framework.
|
|
5926
|
-
* Requires a provider to be configured in the Composio constructor.
|
|
5927
|
-
*/
|
|
5928
6570
|
tools: ToolRouterToolsFn<TToolCollection, TTool, TProvider>;
|
|
5929
|
-
/**
|
|
5930
|
-
* Initiate an authorization flow for a toolkit.
|
|
5931
|
-
* Returns a ConnectionRequest with a redirect URL for the user.
|
|
5932
|
-
*/
|
|
5933
6571
|
authorize: ToolRouterAuthorizeFn;
|
|
5934
|
-
/**
|
|
5935
|
-
* Query the connection state of toolkits in the session.
|
|
5936
|
-
* Supports pagination and filtering by toolkit slugs.
|
|
5937
|
-
*/
|
|
5938
6572
|
toolkits: ToolRouterToolkitsFn;
|
|
5939
|
-
/**
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
6573
|
+
/** Search for tools by semantic use case */
|
|
6574
|
+
search: ToolRouterSessionSearchFn;
|
|
6575
|
+
/** Execute a tool within the session */
|
|
6576
|
+
execute: ToolRouterSessionExecuteFn;
|
|
6577
|
+
/** Experimental features (files, assistive prompt, etc.) */
|
|
6578
|
+
experimental: SessionExperimental;
|
|
5944
6579
|
}
|
|
5945
6580
|
//#endregion
|
|
5946
6581
|
//#region src/models/ToolRouter.d.ts
|
|
@@ -5948,52 +6583,13 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
5948
6583
|
private client;
|
|
5949
6584
|
private config?;
|
|
5950
6585
|
constructor(client: Composio, config?: ComposioConfig<TProvider> | undefined);
|
|
5951
|
-
/**
|
|
5952
|
-
* Creates a function that authorizes a toolkit for a user.
|
|
5953
|
-
* @param sessionId {string} The session id to create the authorize function for
|
|
5954
|
-
* @returns {ToolRouterAuthorizeFn} The authorize function
|
|
5955
|
-
*
|
|
5956
|
-
*/
|
|
5957
|
-
private createAuthorizeFn;
|
|
5958
|
-
/**
|
|
5959
|
-
*
|
|
5960
|
-
* @param sessionId {string} The session id to create the toolkits function for
|
|
5961
|
-
* @returns {ToolRouterToolkitsFn} The toolkits function
|
|
5962
|
-
*
|
|
5963
|
-
* @example
|
|
5964
|
-
* ```typescript
|
|
5965
|
-
* import { Composio } from '@composio/core';
|
|
5966
|
-
*
|
|
5967
|
-
* const composio = new Composio();
|
|
5968
|
-
* const session = await composio.toolRouter.use('session_123');
|
|
5969
|
-
*
|
|
5970
|
-
* const toolkits = await session.toolkits();
|
|
5971
|
-
* console.log(toolkits);
|
|
5972
|
-
* ```
|
|
5973
|
-
*/
|
|
5974
|
-
private createToolkitsFn;
|
|
5975
|
-
/**
|
|
5976
|
-
* @internal
|
|
5977
|
-
* Creates a function that wraps the tools based on the provider.
|
|
5978
|
-
* The returned tools will be of the type the frameworks expects.
|
|
5979
|
-
*
|
|
5980
|
-
* @param sessionId - The session id to get the tools for
|
|
5981
|
-
* @returns A function that wraps the tools based on the provider with session-specific modifiers.
|
|
5982
|
-
*/
|
|
5983
|
-
private createToolsFn;
|
|
5984
|
-
/**
|
|
5985
|
-
* Creates a MCP server config object.
|
|
5986
|
-
* @param type {MCPServerType} The type of the MCP server
|
|
5987
|
-
* @param url {string} The URL of the MCP server
|
|
5988
|
-
* @returns {ToolRouterMCPServerConfig} The MCP server config object
|
|
5989
|
-
*/
|
|
5990
6586
|
private createMCPServerConfig;
|
|
5991
6587
|
/**
|
|
5992
6588
|
* Creates a new tool router session for a user.
|
|
5993
6589
|
*
|
|
5994
6590
|
* @param userId {string} The user id to create the session for
|
|
5995
6591
|
* @param config {ToolRouterCreateSessionConfig} The config for the tool router session
|
|
5996
|
-
* @returns {Promise<
|
|
6592
|
+
* @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
|
|
5997
6593
|
*
|
|
5998
6594
|
* @example
|
|
5999
6595
|
* ```typescript
|
|
@@ -6023,11 +6619,11 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
6023
6619
|
* const toolkits = await session.toolkits();
|
|
6024
6620
|
* ```
|
|
6025
6621
|
*/
|
|
6026
|
-
create(userId: string, config?: ToolRouterCreateSessionConfig): Promise<
|
|
6622
|
+
create(userId: string, config?: ToolRouterCreateSessionConfig): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
6027
6623
|
/**
|
|
6028
6624
|
* Use an existing session
|
|
6029
6625
|
* @param id {string} The id of the session to use
|
|
6030
|
-
* @returns {Promise<
|
|
6626
|
+
* @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
|
|
6031
6627
|
*
|
|
6032
6628
|
* @example
|
|
6033
6629
|
* ```typescript
|
|
@@ -6041,7 +6637,7 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
6041
6637
|
* console.log(session.mcp.headers);
|
|
6042
6638
|
* ```
|
|
6043
6639
|
*/
|
|
6044
|
-
use(id: string): Promise<
|
|
6640
|
+
use(id: string): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
6045
6641
|
}
|
|
6046
6642
|
//#endregion
|
|
6047
6643
|
//#region src/composio.d.ts
|
|
@@ -6181,7 +6777,7 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
6181
6777
|
*
|
|
6182
6778
|
* @param userId {string} The user id to create the session for
|
|
6183
6779
|
* @param config {ToolRouterConfig} The config for the tool router session
|
|
6184
|
-
* @returns {Promise<
|
|
6780
|
+
* @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
|
|
6185
6781
|
*
|
|
6186
6782
|
* @example
|
|
6187
6783
|
* ```typescript
|
|
@@ -6199,14 +6795,14 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
6199
6795
|
* console.log(session.tools());
|
|
6200
6796
|
* ```
|
|
6201
6797
|
*/
|
|
6202
|
-
create: (userId: string, routerConfig?: ToolRouterCreateSessionConfig) => Promise<
|
|
6798
|
+
create: (userId: string, routerConfig?: ToolRouterCreateSessionConfig) => Promise<Session<unknown, unknown, TProvider>>;
|
|
6203
6799
|
/**
|
|
6204
6800
|
* Use an existing tool router session
|
|
6205
6801
|
*
|
|
6206
6802
|
* @param id {string} The id of the session to use
|
|
6207
|
-
* @returns {Promise<
|
|
6803
|
+
* @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
|
|
6208
6804
|
*/
|
|
6209
|
-
use: (id: string) => Promise<
|
|
6805
|
+
use: (id: string) => Promise<Session<unknown, unknown, TProvider>>;
|
|
6210
6806
|
/**
|
|
6211
6807
|
* Creates a new instance of the Composio SDK.
|
|
6212
6808
|
*
|
|
@@ -6317,4 +6913,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
6317
6913
|
flush(): Promise<void>;
|
|
6318
6914
|
}
|
|
6319
6915
|
//#endregion
|
|
6320
|
-
export {
|
|
6916
|
+
export { ToolRouterSessionFilesMountUploadOptionsSchema as $, ToolkitAuthConfigDetails as $n, AuthConfigListResponse as $t, ToolRouterToolkitsOptionsSchema as A, ConnectedAccountRetrieveResponse as An, TriggersTypeListParams as At, FileDeleteResponse as B, CreateConnectedAccountOptions as Bn, WebhookPayloadV1 as Bt, ToolRouterSessionSearchResponseSchema as C, ConnectedAccountListParams as Cn, TriggerStatusEnum as Ct, ToolRouterToolkitsEnabledConfigSchema as D, ConnectedAccountListResponseSchema as Dn, TriggerSubscribeParams as Dt, ToolRouterToolkitsDisabledConfigSchema as E, ConnectedAccountListResponseItem as En, TriggerSubscribeParamSchema as Et, ToolkitConnectionState as F, ConnectedAccountStatuses as Fn, VerifyWebhookParams as Ft, RemoteFileDataSchema as G, CreateConnectedAccountResponseSchema as Gn, WebhookPayloadV3Schema as Gt, FileListResponse as H, CreateConnectedAccountParams as Hn, WebhookPayloadV2 as Ht, ToolkitConnectionStateSchema as I, CreateConnectedAccountLinkOptions as In, VerifyWebhookParamsSchema as It, ToolRouterSessionFilesMountDownloadOptions as J, ToolKitItemSchema as Jn, WebhookVersion as Jt, ToolRouterSessionFilesMountDeleteOptions as K, DefaultCreateConnectedAccountParamsSchema as Kn, WebhookTriggerPayloadV3 as Kt, ToolkitConnectionsDetails as L, CreateConnectedAccountLinkOptionsSchema as Ln, VerifyWebhookResult as Lt, ToolRouterToolsFn as M, ConnectedAccountStatus as Mn, TriggersTypeListResponse as Mt, ToolRouterToolsParam as N, ConnectedAccountStatusEnum as Nn, TriggersTypeListResponseSchema as Nt, ToolRouterToolkitsFn as O, ConnectedAccountRefreshOptions as On, TriggerType as Ot, ToolRouterToolsParamSchema as P, ConnectedAccountStatusSchema as Pn, TriggersTypeRetrieveResponse as Pt, ToolRouterSessionFilesMountUploadOptions as Q, ToolKitMetaSchema as Qn, AuthConfigListParamsSchema as Qt, ToolkitConnectionsDetailsSchema as R, CreateConnectedAccountLinkResponse as Rn, WebhookPayload as Rt, ToolRouterSessionSearchResponse as S, ConnectedAccountAuthConfigSchema as Sn, InputParamsSchema as Sr, TriggerInstanceUpsertResponseSchema as St, ToolRouterTagsParamSchema as T, ConnectedAccountListResponse as Tn, TriggerStatuses as Tt, FileListResponseSchema as U, CreateConnectedAccountParamsSchema as Un, WebhookPayloadV2Schema as Ut, FileDeleteResponseSchema as V, CreateConnectedAccountOptionsSchema as Vn, WebhookPayloadV1Schema as Vt, RemoteFileData as W, CreateConnectedAccountResponse as Wn, WebhookPayloadV3 as Wt, ToolRouterSessionFilesMountListOptions as X, ToolKitListResponseSchema as Xn, AuthConfigCreationToolAccessConfigSchema as Xt, ToolRouterSessionFilesMountDownloadOptionsSchema as Y, ToolKitListResponse as Yn, WebhookVersions as Yt, ToolRouterSessionFilesMountListOptionsSchema as Z, ToolKitMeta as Zn, AuthConfigListParams as Zt, ToolRouterManageConnectionsConfigSchema as _, CreateComposioManagedAuthConfigParamsSchema as _n, CustomToolInputParameter as _r, TriggerInstanceManageUpdateResponse as _t, Session as a, AuthConfigTypes as an, ToolkitCategory as ar, TriggerEvent as at, ToolRouterSessionExecuteResponseSchema as b, ConnectionRequestState as bn, CustomToolRegistryItem as br, TriggerInstanceUpsertParamsSchema as bt, ToolRouterConfigManageConnectionsSchema as c, AuthCustomConfigUpdateParamsSchema as cn, ToolkitMangedByEnum as cr, TriggerInstanceListActiveParamsSchema as ct, ToolRouterConfigTools as d, AuthSchemeType as dn, ToolkitRetrieveCategoriesResponseSchema as dr, TriggerInstanceListActiveResponseItemSchema as dt, AuthConfigListResponseSchema as en, ToolkitAuthConfigDetailsSchema as er, OpenAIProvider as et, ToolRouterConfigToolsSchema as f, AuthSchemeTypes as fn, ToolkitRetrieveResponse as fr, TriggerInstanceListActiveResponseSchema as ft, ToolRouterMCPServerConfigSchema as g, CreateAuthConfigResponseSchema as gn, ToolkitsListParamsSchema as gr, TriggerInstanceManageUpdateParamsSchema as gt, ToolRouterMCPServerConfig as h, CreateAuthConfigResponse as hn, ToolkitSortByEnumSchema as hr, TriggerInstanceManageUpdateParams as ht, MCPServerTypeSchema as i, AuthConfigType as in, ToolkitAuthFieldsResponseSchema as ir, TriggerData as it, ToolRouterToolkitsParamSchema as j, ConnectedAccountRetrieveResponseSchema as jn, TriggersTypeListParamsSchema as jt, ToolRouterToolkitsOptions as k, ConnectedAccountRefreshOptionsSchema as kn, TriggerTypeSchema as kt, ToolRouterConfigTags as l, AuthDefaultConfigUpdateParamsSchema as ln, ToolkitMangedByEnumSchema as lr, TriggerInstanceListActiveResponse as lt, ToolRouterCreateSessionConfigSchema as m, CreateAuthConfigParamsSchema as mn, ToolkitSortByEnum as mr, TriggerInstanceManageDeleteResponseSchema as mt, ComposioConfig as n, AuthConfigRetrieveResponseSchema as nn, ToolkitAuthFieldSchema as nr, IncomingTriggerPayload as nt, SessionExperimental as o, AuthConfigUpdateParams as on, ToolkitCategorySchema as or, TriggerEventData as ot, ToolRouterCreateSessionConfig as p, CreateAuthConfigParams as pn, ToolkitRetrieveResponseSchema as pr, TriggerInstanceManageDeleteResponse as pt, ToolRouterSessionFilesMountDeleteOptionsSchema as q, ToolKitItem as qn, WebhookTriggerPayloadV3Schema as qt, MCPServerType as r, AuthConfigToolAccessConfigSchema as rn, ToolkitAuthFieldsResponse as rr, IncomingTriggerPayloadSchema as rt, ToolRouterAuthorizeFn as s, AuthConfigUpdateParamsSchema as sn, ToolkitListParams as sr, TriggerInstanceListActiveParams as st, Composio$1 as t, AuthConfigRetrieveResponse as tn, ToolkitAuthField as tr, MCP as tt, ToolRouterConfigTagsSchema as u, AuthSchemeEnum as un, ToolkitRetrieveCategoriesResponse as ur, TriggerInstanceListActiveResponseItem as ut, ToolRouterSessionExecuteFn as v, CreateCustomAuthConfigParamsSchema as vn, CustomToolOptions as vr, TriggerInstanceManageUpdateResponseSchema as vt, ToolRouterTagsEnableDisableSchema as w, ConnectedAccountListParamsSchema as wn, TriggerStatusType as wt, ToolRouterSessionSearchFn as x, ConnectedAccountAuthConfig as xn, ExecuteMetadata as xr, TriggerInstanceUpsertResponse as xt, ToolRouterSessionExecuteResponse as y, ConnectionRequest as yn, CustomToolRegistry as yr, TriggerInstanceUpsertParams as yt, RemoteFile as z, CreateConnectedAccountLinkResponseSchema as zn, WebhookPayloadSchema as zt };
|