@composio/core 0.6.5-alpha.0 → 0.6.6
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/{buffer-Dy7Xi_sk.cjs → ComposioError-CYaI68Mo.cjs} +1 -63
- package/dist/{buffer-C1MwV-7j.mjs → ComposioError-ChkSdxqU.mjs} +3 -35
- package/dist/CustomTool-B3_zC62q.mjs +734 -0
- package/dist/CustomTool-Bl7vtddU.d.mts +66 -0
- package/dist/CustomTool-CMTb-q46.cjs +1005 -0
- package/dist/CustomTool-CrOHWVUC.d.cts +66 -0
- package/dist/{Telemetry-DRFfIuVS.cjs → Telemetry-A89k5RTv.cjs} +18 -17
- package/dist/{Telemetry-CHfDfthM.mjs → Telemetry-CjVa99gU.mjs} +2 -1
- package/dist/buffer-BjWptbNH.cjs +63 -0
- package/dist/buffer-yOtEsT4J.mjs +33 -0
- package/dist/{composio-B-tZKVA0.d.cts → composio-Cgg0LHCQ.d.cts} +182 -1803
- package/dist/{composio-OAY2JH-U.d.mts → composio-DyBF5dV-.d.mts} +182 -1803
- package/dist/customTool.types-C3S5Q0_6.d.cts +1854 -0
- package/dist/customTool.types-CA8_4pl5.d.mts +1854 -0
- package/dist/experimental/index.cjs +5 -0
- package/dist/experimental/index.d.cts +3 -0
- package/dist/experimental/index.d.mts +4 -0
- package/dist/experimental/index.mjs +5 -0
- package/dist/{fileUtils.node-D1JLL4nZ.mjs → fileUtils.node-BOZnseMe.mjs} +2 -1
- package/dist/{fileUtils.node-BUe2eO0j.cjs → fileUtils.node-DF-AY0Td.cjs} +10 -9
- package/dist/index.cjs +579 -734
- package/dist/index.d.cts +71 -47
- package/dist/index.d.mts +71 -47
- package/dist/index.mjs +393 -554
- package/dist/models/Files.node.cjs +3 -3
- package/dist/models/Files.node.d.cts +1 -1
- package/dist/models/Files.node.d.mts +1 -1
- package/dist/models/Files.node.mjs +4 -4
- package/dist/platform/node.d.cts +1 -1
- package/dist/platform/node.d.mts +1 -1
- package/dist/platform/workerd.d.cts +1 -1
- package/dist/platform/workerd.d.mts +1 -1
- package/dist/{BaseProvider-B_UIuruL.d.cts → tool.types-Ci7pnud8.d.cts} +10896 -10897
- package/dist/{BaseProvider-B2v5L9PY.d.mts → tool.types-G0Kzw_GF.d.mts} +10896 -10897
- package/dist/{types-lcoAiXDa.d.cts → types-CyDYfq9G.d.mts} +2 -2
- package/dist/{types-Bo0skt5g.d.mts → types-DStxAk8G.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 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +4 -3
- package/dist/utils/modifiers/FileToolModifier.node.cjs +8 -8
- 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 +4 -4
- package/dist/utils/modifiers/FileToolModifier.workerd.cjs +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
- package/package.json +17 -3
- 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
- /package/dist/{FileToolModifier.utils.neutral-BN_L8usp.mjs → FileToolModifier.utils.neutral-BcIR-cVE.mjs} +0 -0
- /package/dist/{FileToolModifier.utils.neutral-Bcl7LVf4.cjs → FileToolModifier.utils.neutral-BdMpiyie.cjs} +0 -0
- /package/dist/{chunk-Dx2NuYGI.mjs → chunk-CWQeghP5.mjs} +0 -0
- /package/dist/{files.types-BDqIUdfP.d.mts → files.types-BXDWA_zS.d.mts} +0 -0
- /package/dist/{files.types-nK6eTNnc.d.cts → files.types-lo4zZd87.d.cts} +0 -0
- /package/dist/{types-BF2OQZRP.d.cts → types-CXR6l5Sj.d.mts} +0 -0
- /package/dist/{types-Cvt_yFsu.d.mts → types-DiL6FAZi.d.cts} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as ToolkitVersionParam, F as ProviderOptions, G as BaseComposioProvider, I as SessionExecuteMetaModifiers, Jt as ExecuteToolFnOptions, K as BaseNonAgenticProvider, N as ExecuteToolModifiers, Wt as McpUrlResponse, a as SchemaModifierOptions, b as ToolRetrievalOptions, d as ToolExecuteResponse$1, l as ToolExecuteParams, m as ToolListParams, o as Tool, p as ToolList, s as ToolExecuteMetaParams, v as ToolProxyParams, zt as McpServerGetResponse } from "./tool.types-Ci7pnud8.cjs";
|
|
2
|
+
import { E as Session, Ht as CreateConnectedAccountLinkOptions, I as ToolRouterCreateSessionConfig, It as ConnectedAccountRetrieveResponse, Kt as CreateConnectedAccountOptions, Pt as ConnectedAccountRefreshOptions, Tt as ConnectionRequest, c as CustomToolInputParameter, jt as ConnectedAccountListResponse, kt as ConnectedAccountListParams, l as CustomToolOptions } from "./customTool.types-C3S5Q0_6.cjs";
|
|
2
3
|
import z$1, { z } from "zod/v3";
|
|
3
4
|
import ComposioClient, { Composio } from "@composio/client";
|
|
4
|
-
import {
|
|
5
|
+
import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
|
|
5
6
|
import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
|
|
6
7
|
import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
|
|
7
8
|
import { ConnectedAccountDeleteResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
|
|
@@ -9,45 +10,6 @@ import { OpenAI } from "openai";
|
|
|
9
10
|
import { Stream } from "openai/streaming";
|
|
10
11
|
import { Files } from "#files";
|
|
11
12
|
|
|
12
|
-
//#region src/types/customTool.types.d.ts
|
|
13
|
-
type BaseCustomToolOptions<T extends z.ZodType> = {
|
|
14
|
-
name: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
slug: string;
|
|
17
|
-
inputParams: T;
|
|
18
|
-
};
|
|
19
|
-
type ToolkitBasedExecute<T extends z.ZodType> = {
|
|
20
|
-
execute: (input: z.infer<T>, connectionConfig: ConnectionData | null, executeToolRequest: (data: ToolProxyParams) => Promise<ToolExecuteResponse>) => Promise<ToolExecuteResponse>;
|
|
21
|
-
toolkitSlug: string;
|
|
22
|
-
};
|
|
23
|
-
type StandaloneExecute<T extends z.ZodType> = {
|
|
24
|
-
execute: (input: z.infer<T>) => Promise<ToolExecuteResponse>;
|
|
25
|
-
toolkitSlug?: never;
|
|
26
|
-
};
|
|
27
|
-
type CustomToolOptions<T extends z.ZodType> = BaseCustomToolOptions<T> & (ToolkitBasedExecute<T> | StandaloneExecute<T>);
|
|
28
|
-
type CustomToolRegistry = Map<string, {
|
|
29
|
-
options: CustomToolOptions<CustomToolInputParameter>;
|
|
30
|
-
schema: Tool;
|
|
31
|
-
}>;
|
|
32
|
-
type InputParamsSchema = {
|
|
33
|
-
definitions: {
|
|
34
|
-
input: {
|
|
35
|
-
type: string;
|
|
36
|
-
properties: Record<string, unknown>;
|
|
37
|
-
required?: string[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
type CustomToolInputParameter = z.ZodType;
|
|
42
|
-
interface CustomToolRegistryItem {
|
|
43
|
-
options: CustomToolOptions<CustomToolInputParameter>;
|
|
44
|
-
schema: Tool;
|
|
45
|
-
}
|
|
46
|
-
interface ExecuteMetadata {
|
|
47
|
-
userId: string;
|
|
48
|
-
connectedAccountId?: string;
|
|
49
|
-
}
|
|
50
|
-
//#endregion
|
|
51
13
|
//#region src/models/Tools.d.ts
|
|
52
14
|
/**
|
|
53
15
|
* This class is used to manage tools in the Composio SDK.
|
|
@@ -554,14 +516,14 @@ declare const ToolkitsListParamsSchema: z.ZodObject<{
|
|
|
554
516
|
cursor: z.ZodOptional<z.ZodString>;
|
|
555
517
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
556
518
|
}, "strip", z.ZodTypeAny, {
|
|
557
|
-
cursor?: string | undefined;
|
|
558
519
|
limit?: number | undefined;
|
|
520
|
+
cursor?: string | undefined;
|
|
559
521
|
category?: string | undefined;
|
|
560
522
|
managedBy?: "all" | "composio" | "project" | undefined;
|
|
561
523
|
sortBy?: "usage" | "alphabetically" | undefined;
|
|
562
524
|
}, {
|
|
563
|
-
cursor?: string | undefined;
|
|
564
525
|
limit?: number | undefined;
|
|
526
|
+
cursor?: string | undefined;
|
|
565
527
|
category?: string | undefined;
|
|
566
528
|
managedBy?: "all" | "composio" | "project" | undefined;
|
|
567
529
|
sortBy?: "usage" | "alphabetically" | undefined;
|
|
@@ -577,11 +539,11 @@ declare const ToolKitMetaSchema: z.ZodObject<{
|
|
|
577
539
|
slug: z.ZodString;
|
|
578
540
|
name: z.ZodString;
|
|
579
541
|
}, "strip", z.ZodTypeAny, {
|
|
580
|
-
slug: string;
|
|
581
542
|
name: string;
|
|
582
|
-
}, {
|
|
583
543
|
slug: string;
|
|
544
|
+
}, {
|
|
584
545
|
name: string;
|
|
546
|
+
slug: string;
|
|
585
547
|
}>, "many">>;
|
|
586
548
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
587
549
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -596,27 +558,27 @@ declare const ToolKitMetaSchema: z.ZodObject<{
|
|
|
596
558
|
logo?: string | undefined;
|
|
597
559
|
availableVersions?: string[] | undefined;
|
|
598
560
|
createdAt?: string | undefined;
|
|
599
|
-
updatedAt?: string | undefined;
|
|
600
561
|
categories?: {
|
|
601
|
-
slug: string;
|
|
602
562
|
name: string;
|
|
563
|
+
slug: string;
|
|
603
564
|
}[] | undefined;
|
|
604
565
|
appUrl?: string | undefined;
|
|
605
566
|
toolsCount?: number | undefined;
|
|
606
567
|
triggersCount?: number | undefined;
|
|
568
|
+
updatedAt?: string | undefined;
|
|
607
569
|
}, {
|
|
608
570
|
description?: string | undefined;
|
|
609
571
|
logo?: string | undefined;
|
|
610
572
|
availableVersions?: string[] | undefined;
|
|
611
573
|
createdAt?: string | undefined;
|
|
612
|
-
updatedAt?: string | undefined;
|
|
613
574
|
categories?: {
|
|
614
|
-
slug: string;
|
|
615
575
|
name: string;
|
|
576
|
+
slug: string;
|
|
616
577
|
}[] | undefined;
|
|
617
578
|
appUrl?: string | undefined;
|
|
618
579
|
toolsCount?: number | undefined;
|
|
619
580
|
triggersCount?: number | undefined;
|
|
581
|
+
updatedAt?: string | undefined;
|
|
620
582
|
}>;
|
|
621
583
|
declare const ToolKitItemSchema: z.ZodObject<{
|
|
622
584
|
name: z.ZodString;
|
|
@@ -626,11 +588,11 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
626
588
|
slug: z.ZodString;
|
|
627
589
|
name: z.ZodString;
|
|
628
590
|
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
slug: string;
|
|
630
591
|
name: string;
|
|
631
|
-
}, {
|
|
632
592
|
slug: string;
|
|
593
|
+
}, {
|
|
633
594
|
name: string;
|
|
595
|
+
slug: string;
|
|
634
596
|
}>, "many">>;
|
|
635
597
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
636
598
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -645,69 +607,69 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
645
607
|
logo?: string | undefined;
|
|
646
608
|
availableVersions?: string[] | undefined;
|
|
647
609
|
createdAt?: string | undefined;
|
|
648
|
-
updatedAt?: string | undefined;
|
|
649
610
|
categories?: {
|
|
650
|
-
slug: string;
|
|
651
611
|
name: string;
|
|
612
|
+
slug: string;
|
|
652
613
|
}[] | undefined;
|
|
653
614
|
appUrl?: string | undefined;
|
|
654
615
|
toolsCount?: number | undefined;
|
|
655
616
|
triggersCount?: number | undefined;
|
|
617
|
+
updatedAt?: string | undefined;
|
|
656
618
|
}, {
|
|
657
619
|
description?: string | undefined;
|
|
658
620
|
logo?: string | undefined;
|
|
659
621
|
availableVersions?: string[] | undefined;
|
|
660
622
|
createdAt?: string | undefined;
|
|
661
|
-
updatedAt?: string | undefined;
|
|
662
623
|
categories?: {
|
|
663
|
-
slug: string;
|
|
664
624
|
name: string;
|
|
625
|
+
slug: string;
|
|
665
626
|
}[] | undefined;
|
|
666
627
|
appUrl?: string | undefined;
|
|
667
628
|
toolsCount?: number | undefined;
|
|
668
629
|
triggersCount?: number | undefined;
|
|
630
|
+
updatedAt?: string | undefined;
|
|
669
631
|
}>;
|
|
670
632
|
isLocalToolkit: z.ZodBoolean;
|
|
671
633
|
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
672
634
|
composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
673
635
|
noAuth: z.ZodOptional<z.ZodBoolean>;
|
|
674
636
|
}, "strip", z.ZodTypeAny, {
|
|
675
|
-
slug: string;
|
|
676
637
|
name: string;
|
|
638
|
+
slug: string;
|
|
677
639
|
meta: {
|
|
678
640
|
description?: string | undefined;
|
|
679
641
|
logo?: string | undefined;
|
|
680
642
|
availableVersions?: string[] | undefined;
|
|
681
643
|
createdAt?: string | undefined;
|
|
682
|
-
updatedAt?: string | undefined;
|
|
683
644
|
categories?: {
|
|
684
|
-
slug: string;
|
|
685
645
|
name: string;
|
|
646
|
+
slug: string;
|
|
686
647
|
}[] | undefined;
|
|
687
648
|
appUrl?: string | undefined;
|
|
688
649
|
toolsCount?: number | undefined;
|
|
689
650
|
triggersCount?: number | undefined;
|
|
651
|
+
updatedAt?: string | undefined;
|
|
690
652
|
};
|
|
691
653
|
isLocalToolkit: boolean;
|
|
692
654
|
authSchemes?: string[] | undefined;
|
|
693
655
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
694
656
|
noAuth?: boolean | undefined;
|
|
695
657
|
}, {
|
|
696
|
-
slug: string;
|
|
697
658
|
name: string;
|
|
659
|
+
slug: string;
|
|
698
660
|
meta: {
|
|
699
661
|
description?: string | undefined;
|
|
700
662
|
logo?: string | undefined;
|
|
701
663
|
availableVersions?: string[] | undefined;
|
|
702
664
|
createdAt?: string | undefined;
|
|
703
|
-
updatedAt?: string | undefined;
|
|
704
665
|
categories?: {
|
|
705
|
-
slug: string;
|
|
706
666
|
name: string;
|
|
667
|
+
slug: string;
|
|
707
668
|
}[] | undefined;
|
|
708
669
|
appUrl?: string | undefined;
|
|
709
670
|
toolsCount?: number | undefined;
|
|
710
671
|
triggersCount?: number | undefined;
|
|
672
|
+
updatedAt?: string | undefined;
|
|
711
673
|
};
|
|
712
674
|
isLocalToolkit: boolean;
|
|
713
675
|
authSchemes?: string[] | undefined;
|
|
@@ -722,11 +684,11 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
722
684
|
slug: z.ZodString;
|
|
723
685
|
name: z.ZodString;
|
|
724
686
|
}, "strip", z.ZodTypeAny, {
|
|
725
|
-
slug: string;
|
|
726
687
|
name: string;
|
|
727
|
-
}, {
|
|
728
688
|
slug: string;
|
|
689
|
+
}, {
|
|
729
690
|
name: string;
|
|
691
|
+
slug: string;
|
|
730
692
|
}>, "many">>;
|
|
731
693
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
732
694
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -741,69 +703,69 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
741
703
|
logo?: string | undefined;
|
|
742
704
|
availableVersions?: string[] | undefined;
|
|
743
705
|
createdAt?: string | undefined;
|
|
744
|
-
updatedAt?: string | undefined;
|
|
745
706
|
categories?: {
|
|
746
|
-
slug: string;
|
|
747
707
|
name: string;
|
|
708
|
+
slug: string;
|
|
748
709
|
}[] | undefined;
|
|
749
710
|
appUrl?: string | undefined;
|
|
750
711
|
toolsCount?: number | undefined;
|
|
751
712
|
triggersCount?: number | undefined;
|
|
713
|
+
updatedAt?: string | undefined;
|
|
752
714
|
}, {
|
|
753
715
|
description?: string | undefined;
|
|
754
716
|
logo?: string | undefined;
|
|
755
717
|
availableVersions?: string[] | undefined;
|
|
756
718
|
createdAt?: string | undefined;
|
|
757
|
-
updatedAt?: string | undefined;
|
|
758
719
|
categories?: {
|
|
759
|
-
slug: string;
|
|
760
720
|
name: string;
|
|
721
|
+
slug: string;
|
|
761
722
|
}[] | undefined;
|
|
762
723
|
appUrl?: string | undefined;
|
|
763
724
|
toolsCount?: number | undefined;
|
|
764
725
|
triggersCount?: number | undefined;
|
|
726
|
+
updatedAt?: string | undefined;
|
|
765
727
|
}>;
|
|
766
728
|
isLocalToolkit: z.ZodBoolean;
|
|
767
729
|
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
768
730
|
composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
769
731
|
noAuth: z.ZodOptional<z.ZodBoolean>;
|
|
770
732
|
}, "strip", z.ZodTypeAny, {
|
|
771
|
-
slug: string;
|
|
772
733
|
name: string;
|
|
734
|
+
slug: string;
|
|
773
735
|
meta: {
|
|
774
736
|
description?: string | undefined;
|
|
775
737
|
logo?: string | undefined;
|
|
776
738
|
availableVersions?: string[] | undefined;
|
|
777
739
|
createdAt?: string | undefined;
|
|
778
|
-
updatedAt?: string | undefined;
|
|
779
740
|
categories?: {
|
|
780
|
-
slug: string;
|
|
781
741
|
name: string;
|
|
742
|
+
slug: string;
|
|
782
743
|
}[] | undefined;
|
|
783
744
|
appUrl?: string | undefined;
|
|
784
745
|
toolsCount?: number | undefined;
|
|
785
746
|
triggersCount?: number | undefined;
|
|
747
|
+
updatedAt?: string | undefined;
|
|
786
748
|
};
|
|
787
749
|
isLocalToolkit: boolean;
|
|
788
750
|
authSchemes?: string[] | undefined;
|
|
789
751
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
790
752
|
noAuth?: boolean | undefined;
|
|
791
753
|
}, {
|
|
792
|
-
slug: string;
|
|
793
754
|
name: string;
|
|
755
|
+
slug: string;
|
|
794
756
|
meta: {
|
|
795
757
|
description?: string | undefined;
|
|
796
758
|
logo?: string | undefined;
|
|
797
759
|
availableVersions?: string[] | undefined;
|
|
798
760
|
createdAt?: string | undefined;
|
|
799
|
-
updatedAt?: string | undefined;
|
|
800
761
|
categories?: {
|
|
801
|
-
slug: string;
|
|
802
762
|
name: string;
|
|
763
|
+
slug: string;
|
|
803
764
|
}[] | undefined;
|
|
804
765
|
appUrl?: string | undefined;
|
|
805
766
|
toolsCount?: number | undefined;
|
|
806
767
|
triggersCount?: number | undefined;
|
|
768
|
+
updatedAt?: string | undefined;
|
|
807
769
|
};
|
|
808
770
|
isLocalToolkit: boolean;
|
|
809
771
|
authSchemes?: string[] | undefined;
|
|
@@ -1181,11 +1143,11 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1181
1143
|
slug: z.ZodString;
|
|
1182
1144
|
name: z.ZodString;
|
|
1183
1145
|
}, "strip", z.ZodTypeAny, {
|
|
1184
|
-
slug: string;
|
|
1185
1146
|
name: string;
|
|
1186
|
-
}, {
|
|
1187
1147
|
slug: string;
|
|
1148
|
+
}, {
|
|
1188
1149
|
name: string;
|
|
1150
|
+
slug: string;
|
|
1189
1151
|
}>, "many">>;
|
|
1190
1152
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
1191
1153
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1200,27 +1162,27 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1200
1162
|
logo?: string | undefined;
|
|
1201
1163
|
availableVersions?: string[] | undefined;
|
|
1202
1164
|
createdAt?: string | undefined;
|
|
1203
|
-
updatedAt?: string | undefined;
|
|
1204
1165
|
categories?: {
|
|
1205
|
-
slug: string;
|
|
1206
1166
|
name: string;
|
|
1167
|
+
slug: string;
|
|
1207
1168
|
}[] | undefined;
|
|
1208
1169
|
appUrl?: string | undefined;
|
|
1209
1170
|
toolsCount?: number | undefined;
|
|
1210
1171
|
triggersCount?: number | undefined;
|
|
1172
|
+
updatedAt?: string | undefined;
|
|
1211
1173
|
}, {
|
|
1212
1174
|
description?: string | undefined;
|
|
1213
1175
|
logo?: string | undefined;
|
|
1214
1176
|
availableVersions?: string[] | undefined;
|
|
1215
1177
|
createdAt?: string | undefined;
|
|
1216
|
-
updatedAt?: string | undefined;
|
|
1217
1178
|
categories?: {
|
|
1218
|
-
slug: string;
|
|
1219
1179
|
name: string;
|
|
1180
|
+
slug: string;
|
|
1220
1181
|
}[] | undefined;
|
|
1221
1182
|
appUrl?: string | undefined;
|
|
1222
1183
|
toolsCount?: number | undefined;
|
|
1223
1184
|
triggersCount?: number | undefined;
|
|
1185
|
+
updatedAt?: string | undefined;
|
|
1224
1186
|
}>;
|
|
1225
1187
|
isLocalToolkit: z.ZodBoolean;
|
|
1226
1188
|
composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1563,21 +1525,21 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1563
1525
|
getCurrentUserEndpoint: z.ZodOptional<z.ZodString>;
|
|
1564
1526
|
getCurrentUserEndpointMethod: z.ZodOptional<z.ZodString>;
|
|
1565
1527
|
}, "strip", z.ZodTypeAny, {
|
|
1566
|
-
slug: string;
|
|
1567
1528
|
name: string;
|
|
1529
|
+
slug: string;
|
|
1568
1530
|
meta: {
|
|
1569
1531
|
description?: string | undefined;
|
|
1570
1532
|
logo?: string | undefined;
|
|
1571
1533
|
availableVersions?: string[] | undefined;
|
|
1572
1534
|
createdAt?: string | undefined;
|
|
1573
|
-
updatedAt?: string | undefined;
|
|
1574
1535
|
categories?: {
|
|
1575
|
-
slug: string;
|
|
1576
1536
|
name: string;
|
|
1537
|
+
slug: string;
|
|
1577
1538
|
}[] | undefined;
|
|
1578
1539
|
appUrl?: string | undefined;
|
|
1579
1540
|
toolsCount?: number | undefined;
|
|
1580
1541
|
triggersCount?: number | undefined;
|
|
1542
|
+
updatedAt?: string | undefined;
|
|
1581
1543
|
};
|
|
1582
1544
|
isLocalToolkit: boolean;
|
|
1583
1545
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -1630,21 +1592,21 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1630
1592
|
getCurrentUserEndpoint?: string | undefined;
|
|
1631
1593
|
getCurrentUserEndpointMethod?: string | undefined;
|
|
1632
1594
|
}, {
|
|
1633
|
-
slug: string;
|
|
1634
1595
|
name: string;
|
|
1596
|
+
slug: string;
|
|
1635
1597
|
meta: {
|
|
1636
1598
|
description?: string | undefined;
|
|
1637
1599
|
logo?: string | undefined;
|
|
1638
1600
|
availableVersions?: string[] | undefined;
|
|
1639
1601
|
createdAt?: string | undefined;
|
|
1640
|
-
updatedAt?: string | undefined;
|
|
1641
1602
|
categories?: {
|
|
1642
|
-
slug: string;
|
|
1643
1603
|
name: string;
|
|
1604
|
+
slug: string;
|
|
1644
1605
|
}[] | undefined;
|
|
1645
1606
|
appUrl?: string | undefined;
|
|
1646
1607
|
toolsCount?: number | undefined;
|
|
1647
1608
|
triggersCount?: number | undefined;
|
|
1609
|
+
updatedAt?: string | undefined;
|
|
1648
1610
|
};
|
|
1649
1611
|
isLocalToolkit: boolean;
|
|
1650
1612
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -1768,294 +1730,6 @@ declare const ToolkitAuthFieldsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1768
1730
|
}>, "many">;
|
|
1769
1731
|
type ToolkitAuthFieldsResponse = z.infer<typeof ToolkitAuthFieldsResponseSchema>;
|
|
1770
1732
|
//#endregion
|
|
1771
|
-
//#region src/types/connectedAccounts.types.d.ts
|
|
1772
|
-
/**
|
|
1773
|
-
* Connected Account create parameters
|
|
1774
|
-
*/
|
|
1775
|
-
declare const ConnectedAccountStatuses: {
|
|
1776
|
-
readonly INITIALIZING: "INITIALIZING";
|
|
1777
|
-
readonly INITIATED: "INITIATED";
|
|
1778
|
-
readonly ACTIVE: "ACTIVE";
|
|
1779
|
-
readonly FAILED: "FAILED";
|
|
1780
|
-
readonly EXPIRED: "EXPIRED";
|
|
1781
|
-
readonly INACTIVE: "INACTIVE";
|
|
1782
|
-
};
|
|
1783
|
-
declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
|
|
1784
|
-
type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
|
|
1785
|
-
type ConnectedAccountStatusEnum = z.infer<typeof ConnectedAccountStatusSchema>;
|
|
1786
|
-
declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
1787
|
-
authConfig: z.ZodObject<{
|
|
1788
|
-
id: z.ZodString;
|
|
1789
|
-
}, "strip", z.ZodTypeAny, {
|
|
1790
|
-
id: string;
|
|
1791
|
-
}, {
|
|
1792
|
-
id: string;
|
|
1793
|
-
}>;
|
|
1794
|
-
connection: z.ZodObject<{
|
|
1795
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1796
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1797
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
1798
|
-
}, "strip", z.ZodTypeAny, {
|
|
1799
|
-
callbackUrl?: string | undefined;
|
|
1800
|
-
data?: Record<string, unknown> | undefined;
|
|
1801
|
-
userId?: string | undefined;
|
|
1802
|
-
}, {
|
|
1803
|
-
callbackUrl?: string | undefined;
|
|
1804
|
-
data?: Record<string, unknown> | undefined;
|
|
1805
|
-
userId?: string | undefined;
|
|
1806
|
-
}>;
|
|
1807
|
-
}, "strip", z.ZodTypeAny, {
|
|
1808
|
-
authConfig: {
|
|
1809
|
-
id: string;
|
|
1810
|
-
};
|
|
1811
|
-
connection: {
|
|
1812
|
-
callbackUrl?: string | undefined;
|
|
1813
|
-
data?: Record<string, unknown> | undefined;
|
|
1814
|
-
userId?: string | undefined;
|
|
1815
|
-
};
|
|
1816
|
-
}, {
|
|
1817
|
-
authConfig: {
|
|
1818
|
-
id: string;
|
|
1819
|
-
};
|
|
1820
|
-
connection: {
|
|
1821
|
-
callbackUrl?: string | undefined;
|
|
1822
|
-
data?: Record<string, unknown> | undefined;
|
|
1823
|
-
userId?: string | undefined;
|
|
1824
|
-
};
|
|
1825
|
-
}>;
|
|
1826
|
-
declare const DefaultCreateConnectedAccountParamsSchema: z.ZodType<{
|
|
1827
|
-
auth_config: {
|
|
1828
|
-
id: string;
|
|
1829
|
-
};
|
|
1830
|
-
connection: {
|
|
1831
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
1832
|
-
data?: Record<string, unknown>;
|
|
1833
|
-
callback_url?: string;
|
|
1834
|
-
user_id?: string;
|
|
1835
|
-
};
|
|
1836
|
-
}>;
|
|
1837
|
-
declare const CreateConnectedAccountOptionsSchema: z.ZodType<{
|
|
1838
|
-
allowMultiple?: boolean;
|
|
1839
|
-
callbackUrl?: string;
|
|
1840
|
-
config?: z.infer<typeof ConnectionDataSchema>;
|
|
1841
|
-
}>;
|
|
1842
|
-
type CreateConnectedAccountOptions = z.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
1843
|
-
type CreateConnectedAccountParams = z.infer<typeof CreateConnectedAccountParamsSchema>;
|
|
1844
|
-
/**
|
|
1845
|
-
* Connected Account create response
|
|
1846
|
-
*/
|
|
1847
|
-
declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
|
|
1848
|
-
id: z.ZodString;
|
|
1849
|
-
status: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
|
|
1850
|
-
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
1851
|
-
}, "strip", z.ZodTypeAny, {
|
|
1852
|
-
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
|
|
1853
|
-
redirectUrl: string | null;
|
|
1854
|
-
id: string;
|
|
1855
|
-
}, {
|
|
1856
|
-
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
|
|
1857
|
-
redirectUrl: string | null;
|
|
1858
|
-
id: string;
|
|
1859
|
-
}>;
|
|
1860
|
-
type CreateConnectedAccountResponse = z.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
1861
|
-
declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
|
|
1862
|
-
id: z.ZodString;
|
|
1863
|
-
/** @deprecated use connectedAccount.state.authScheme instead */
|
|
1864
|
-
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
|
|
1865
|
-
isComposioManaged: z.ZodBoolean;
|
|
1866
|
-
isDisabled: z.ZodBoolean;
|
|
1867
|
-
}, "strip", z.ZodTypeAny, {
|
|
1868
|
-
id: string;
|
|
1869
|
-
isComposioManaged: boolean;
|
|
1870
|
-
isDisabled: boolean;
|
|
1871
|
-
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;
|
|
1872
|
-
}, {
|
|
1873
|
-
id: string;
|
|
1874
|
-
isComposioManaged: boolean;
|
|
1875
|
-
isDisabled: boolean;
|
|
1876
|
-
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;
|
|
1877
|
-
}>;
|
|
1878
|
-
type ConnectedAccountAuthConfig = z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
1879
|
-
declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
|
|
1880
|
-
id: string;
|
|
1881
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
1882
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1883
|
-
data?: Record<string, unknown>;
|
|
1884
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1885
|
-
params?: Record<string, unknown>;
|
|
1886
|
-
status: ConnectedAccountStatusEnum;
|
|
1887
|
-
statusReason: string | null;
|
|
1888
|
-
toolkit: {
|
|
1889
|
-
slug: string;
|
|
1890
|
-
};
|
|
1891
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
1892
|
-
testRequestEndpoint?: string;
|
|
1893
|
-
isDisabled: boolean;
|
|
1894
|
-
createdAt: string;
|
|
1895
|
-
updatedAt: string;
|
|
1896
|
-
}>;
|
|
1897
|
-
type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveResponseSchema>;
|
|
1898
|
-
/**
|
|
1899
|
-
* Type for list response item that doesn't include params
|
|
1900
|
-
*/
|
|
1901
|
-
type ConnectedAccountListResponseItem = Omit<ConnectedAccountRetrieveResponse, 'params'>;
|
|
1902
|
-
declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
1903
|
-
authConfigIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1904
|
-
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1905
|
-
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1906
|
-
orderBy: z.ZodOptional<z.ZodEnum<["created_at", "updated_at"]>>;
|
|
1907
|
-
statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>, "many">>>;
|
|
1908
|
-
toolkitSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1909
|
-
userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1910
|
-
}, "strip", z.ZodTypeAny, {
|
|
1911
|
-
userIds?: string[] | null | undefined;
|
|
1912
|
-
authConfigIds?: string[] | null | undefined;
|
|
1913
|
-
cursor?: string | null | undefined;
|
|
1914
|
-
limit?: number | null | undefined;
|
|
1915
|
-
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1916
|
-
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1917
|
-
toolkitSlugs?: string[] | null | undefined;
|
|
1918
|
-
}, {
|
|
1919
|
-
userIds?: string[] | null | undefined;
|
|
1920
|
-
authConfigIds?: string[] | null | undefined;
|
|
1921
|
-
cursor?: string | null | undefined;
|
|
1922
|
-
limit?: number | null | undefined;
|
|
1923
|
-
orderBy?: "created_at" | "updated_at" | undefined;
|
|
1924
|
-
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
1925
|
-
toolkitSlugs?: string[] | null | undefined;
|
|
1926
|
-
}>;
|
|
1927
|
-
type ConnectedAccountListParams = z.infer<typeof ConnectedAccountListParamsSchema>;
|
|
1928
|
-
declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
1929
|
-
items: z.ZodArray<z.ZodType<{
|
|
1930
|
-
id: string;
|
|
1931
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
1932
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1933
|
-
data?: Record<string, unknown>;
|
|
1934
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1935
|
-
params?: Record<string, unknown>;
|
|
1936
|
-
status: ConnectedAccountStatusEnum;
|
|
1937
|
-
statusReason: string | null;
|
|
1938
|
-
toolkit: {
|
|
1939
|
-
slug: string;
|
|
1940
|
-
};
|
|
1941
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
1942
|
-
testRequestEndpoint?: string;
|
|
1943
|
-
isDisabled: boolean;
|
|
1944
|
-
createdAt: string;
|
|
1945
|
-
updatedAt: string;
|
|
1946
|
-
}, z.ZodTypeDef, {
|
|
1947
|
-
id: string;
|
|
1948
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
1949
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1950
|
-
data?: Record<string, unknown>;
|
|
1951
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1952
|
-
params?: Record<string, unknown>;
|
|
1953
|
-
status: ConnectedAccountStatusEnum;
|
|
1954
|
-
statusReason: string | null;
|
|
1955
|
-
toolkit: {
|
|
1956
|
-
slug: string;
|
|
1957
|
-
};
|
|
1958
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
1959
|
-
testRequestEndpoint?: string;
|
|
1960
|
-
isDisabled: boolean;
|
|
1961
|
-
createdAt: string;
|
|
1962
|
-
updatedAt: string;
|
|
1963
|
-
}>, "many">;
|
|
1964
|
-
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1965
|
-
totalPages: z.ZodNumber;
|
|
1966
|
-
}, "strip", z.ZodTypeAny, {
|
|
1967
|
-
items: {
|
|
1968
|
-
id: string;
|
|
1969
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
1970
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1971
|
-
data?: Record<string, unknown>;
|
|
1972
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1973
|
-
params?: Record<string, unknown>;
|
|
1974
|
-
status: ConnectedAccountStatusEnum;
|
|
1975
|
-
statusReason: string | null;
|
|
1976
|
-
toolkit: {
|
|
1977
|
-
slug: string;
|
|
1978
|
-
};
|
|
1979
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
1980
|
-
testRequestEndpoint?: string;
|
|
1981
|
-
isDisabled: boolean;
|
|
1982
|
-
createdAt: string;
|
|
1983
|
-
updatedAt: string;
|
|
1984
|
-
}[];
|
|
1985
|
-
totalPages: number;
|
|
1986
|
-
nextCursor?: string | null | undefined;
|
|
1987
|
-
}, {
|
|
1988
|
-
items: {
|
|
1989
|
-
id: string;
|
|
1990
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
1991
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1992
|
-
data?: Record<string, unknown>;
|
|
1993
|
-
/** @deprecated use connectedAccount.state instead */
|
|
1994
|
-
params?: Record<string, unknown>;
|
|
1995
|
-
status: ConnectedAccountStatusEnum;
|
|
1996
|
-
statusReason: string | null;
|
|
1997
|
-
toolkit: {
|
|
1998
|
-
slug: string;
|
|
1999
|
-
};
|
|
2000
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
2001
|
-
testRequestEndpoint?: string;
|
|
2002
|
-
isDisabled: boolean;
|
|
2003
|
-
createdAt: string;
|
|
2004
|
-
updatedAt: string;
|
|
2005
|
-
}[];
|
|
2006
|
-
totalPages: number;
|
|
2007
|
-
nextCursor?: string | null | undefined;
|
|
2008
|
-
}>;
|
|
2009
|
-
type ConnectedAccountListResponse = z.infer<typeof ConnectedAccountListResponseSchema>;
|
|
2010
|
-
declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
2011
|
-
/**
|
|
2012
|
-
* The url to redirect the user to post connecting their account.
|
|
2013
|
-
*
|
|
2014
|
-
* For sucessfull connections, you will get a query param called status=success
|
|
2015
|
-
* And for failed connections you will get a query param called satus=failed
|
|
2016
|
-
*
|
|
2017
|
-
* @example https://your-app.com/callback
|
|
2018
|
-
*
|
|
2019
|
-
*/
|
|
2020
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
2021
|
-
}, "strip", z.ZodTypeAny, {
|
|
2022
|
-
callbackUrl?: string | undefined;
|
|
2023
|
-
}, {
|
|
2024
|
-
callbackUrl?: string | undefined;
|
|
2025
|
-
}>;
|
|
2026
|
-
type CreateConnectedAccountLinkOptions = z.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
2027
|
-
declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
|
|
2028
|
-
redirectUrl: z.ZodString;
|
|
2029
|
-
}, "strip", z.ZodTypeAny, {
|
|
2030
|
-
redirectUrl: string;
|
|
2031
|
-
}, {
|
|
2032
|
-
redirectUrl: string;
|
|
2033
|
-
}>;
|
|
2034
|
-
type CreateConnectedAccountLinkResponse = z.infer<typeof CreateConnectedAccountLinkResponseSchema>;
|
|
2035
|
-
declare const ConnectedAccountRefreshOptionsSchema: z.ZodObject<{
|
|
2036
|
-
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
2037
|
-
validateCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
2038
|
-
}, "strip", z.ZodTypeAny, {
|
|
2039
|
-
redirectUrl?: string | undefined;
|
|
2040
|
-
validateCredentials?: boolean | undefined;
|
|
2041
|
-
}, {
|
|
2042
|
-
redirectUrl?: string | undefined;
|
|
2043
|
-
validateCredentials?: boolean | undefined;
|
|
2044
|
-
}>;
|
|
2045
|
-
type ConnectedAccountRefreshOptions = z.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
2046
|
-
//#endregion
|
|
2047
|
-
//#region src/types/connectionRequest.types.d.ts
|
|
2048
|
-
interface ConnectionRequestState {
|
|
2049
|
-
id: string;
|
|
2050
|
-
status?: ConnectedAccountStatus;
|
|
2051
|
-
redirectUrl?: string | null;
|
|
2052
|
-
}
|
|
2053
|
-
interface ConnectionRequest extends ConnectionRequestState {
|
|
2054
|
-
waitForConnection: (timeout?: number) => Promise<ConnectedAccountRetrieveResponse>;
|
|
2055
|
-
toJSON: () => ConnectionRequestState;
|
|
2056
|
-
toString: () => string;
|
|
2057
|
-
}
|
|
2058
|
-
//#endregion
|
|
2059
1733
|
//#region src/types/authConfigs.types.d.ts
|
|
2060
1734
|
declare const AuthConfigTypes: {
|
|
2061
1735
|
readonly CUSTOM: "use_custom_auth";
|
|
@@ -2295,14 +1969,14 @@ declare const CreateAuthConfigResponseSchema: z.ZodObject<{
|
|
|
2295
1969
|
toolkit: z.ZodString;
|
|
2296
1970
|
}, "strip", z.ZodTypeAny, {
|
|
2297
1971
|
toolkit: string;
|
|
2298
|
-
authScheme: string;
|
|
2299
1972
|
id: string;
|
|
2300
1973
|
isComposioManaged: boolean;
|
|
1974
|
+
authScheme: string;
|
|
2301
1975
|
}, {
|
|
2302
1976
|
toolkit: string;
|
|
2303
|
-
authScheme: string;
|
|
2304
1977
|
id: string;
|
|
2305
1978
|
isComposioManaged: boolean;
|
|
1979
|
+
authScheme: string;
|
|
2306
1980
|
}>;
|
|
2307
1981
|
type CreateAuthConfigResponse = z.infer<typeof CreateAuthConfigResponseSchema>;
|
|
2308
1982
|
declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
@@ -2351,11 +2025,10 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2351
2025
|
logo: string;
|
|
2352
2026
|
};
|
|
2353
2027
|
id: string;
|
|
2354
|
-
uuid: string;
|
|
2355
2028
|
noOfConnections: number;
|
|
2356
|
-
|
|
2029
|
+
uuid: string;
|
|
2357
2030
|
isComposioManaged?: boolean | undefined;
|
|
2358
|
-
|
|
2031
|
+
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;
|
|
2359
2032
|
credentials?: Record<string, unknown> | undefined;
|
|
2360
2033
|
toolAccessConfig?: {
|
|
2361
2034
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
@@ -2365,6 +2038,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2365
2038
|
expectedInputFields?: unknown[] | undefined;
|
|
2366
2039
|
restrictToFollowingTools?: string[] | undefined;
|
|
2367
2040
|
createdBy?: string | undefined;
|
|
2041
|
+
createdAt?: string | undefined;
|
|
2368
2042
|
lastUpdatedAt?: string | undefined;
|
|
2369
2043
|
}, {
|
|
2370
2044
|
name: string;
|
|
@@ -2374,11 +2048,10 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2374
2048
|
logo: string;
|
|
2375
2049
|
};
|
|
2376
2050
|
id: string;
|
|
2377
|
-
uuid: string;
|
|
2378
2051
|
noOfConnections: number;
|
|
2379
|
-
|
|
2052
|
+
uuid: string;
|
|
2380
2053
|
isComposioManaged?: boolean | undefined;
|
|
2381
|
-
|
|
2054
|
+
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;
|
|
2382
2055
|
credentials?: Record<string, unknown> | undefined;
|
|
2383
2056
|
toolAccessConfig?: {
|
|
2384
2057
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
@@ -2388,6 +2061,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2388
2061
|
expectedInputFields?: unknown[] | undefined;
|
|
2389
2062
|
restrictToFollowingTools?: string[] | undefined;
|
|
2390
2063
|
createdBy?: string | undefined;
|
|
2064
|
+
createdAt?: string | undefined;
|
|
2391
2065
|
lastUpdatedAt?: string | undefined;
|
|
2392
2066
|
}>;
|
|
2393
2067
|
type AuthConfigRetrieveResponse = z.infer<typeof AuthConfigRetrieveResponseSchema>;
|
|
@@ -2399,13 +2073,13 @@ declare const AuthConfigListParamsSchema: z.ZodObject<{
|
|
|
2399
2073
|
}, "strip", z.ZodTypeAny, {
|
|
2400
2074
|
toolkit?: string | undefined;
|
|
2401
2075
|
isComposioManaged?: boolean | undefined;
|
|
2402
|
-
cursor?: string | undefined;
|
|
2403
2076
|
limit?: number | undefined;
|
|
2077
|
+
cursor?: string | undefined;
|
|
2404
2078
|
}, {
|
|
2405
2079
|
toolkit?: string | undefined;
|
|
2406
2080
|
isComposioManaged?: boolean | undefined;
|
|
2407
|
-
cursor?: string | undefined;
|
|
2408
2081
|
limit?: number | undefined;
|
|
2082
|
+
cursor?: string | undefined;
|
|
2409
2083
|
}>;
|
|
2410
2084
|
type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
|
|
2411
2085
|
declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
@@ -2455,11 +2129,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2455
2129
|
logo: string;
|
|
2456
2130
|
};
|
|
2457
2131
|
id: string;
|
|
2458
|
-
uuid: string;
|
|
2459
2132
|
noOfConnections: number;
|
|
2460
|
-
|
|
2133
|
+
uuid: string;
|
|
2461
2134
|
isComposioManaged?: boolean | undefined;
|
|
2462
|
-
|
|
2135
|
+
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;
|
|
2463
2136
|
credentials?: Record<string, unknown> | undefined;
|
|
2464
2137
|
toolAccessConfig?: {
|
|
2465
2138
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
@@ -2469,6 +2142,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2469
2142
|
expectedInputFields?: unknown[] | undefined;
|
|
2470
2143
|
restrictToFollowingTools?: string[] | undefined;
|
|
2471
2144
|
createdBy?: string | undefined;
|
|
2145
|
+
createdAt?: string | undefined;
|
|
2472
2146
|
lastUpdatedAt?: string | undefined;
|
|
2473
2147
|
}, {
|
|
2474
2148
|
name: string;
|
|
@@ -2478,11 +2152,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2478
2152
|
logo: string;
|
|
2479
2153
|
};
|
|
2480
2154
|
id: string;
|
|
2481
|
-
uuid: string;
|
|
2482
2155
|
noOfConnections: number;
|
|
2483
|
-
|
|
2156
|
+
uuid: string;
|
|
2484
2157
|
isComposioManaged?: boolean | undefined;
|
|
2485
|
-
|
|
2158
|
+
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;
|
|
2486
2159
|
credentials?: Record<string, unknown> | undefined;
|
|
2487
2160
|
toolAccessConfig?: {
|
|
2488
2161
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
@@ -2492,6 +2165,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2492
2165
|
expectedInputFields?: unknown[] | undefined;
|
|
2493
2166
|
restrictToFollowingTools?: string[] | undefined;
|
|
2494
2167
|
createdBy?: string | undefined;
|
|
2168
|
+
createdAt?: string | undefined;
|
|
2495
2169
|
lastUpdatedAt?: string | undefined;
|
|
2496
2170
|
}>, "many">;
|
|
2497
2171
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -2505,11 +2179,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2505
2179
|
logo: string;
|
|
2506
2180
|
};
|
|
2507
2181
|
id: string;
|
|
2508
|
-
uuid: string;
|
|
2509
2182
|
noOfConnections: number;
|
|
2510
|
-
|
|
2183
|
+
uuid: string;
|
|
2511
2184
|
isComposioManaged?: boolean | undefined;
|
|
2512
|
-
|
|
2185
|
+
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;
|
|
2513
2186
|
credentials?: Record<string, unknown> | undefined;
|
|
2514
2187
|
toolAccessConfig?: {
|
|
2515
2188
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
@@ -2519,6 +2192,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2519
2192
|
expectedInputFields?: unknown[] | undefined;
|
|
2520
2193
|
restrictToFollowingTools?: string[] | undefined;
|
|
2521
2194
|
createdBy?: string | undefined;
|
|
2195
|
+
createdAt?: string | undefined;
|
|
2522
2196
|
lastUpdatedAt?: string | undefined;
|
|
2523
2197
|
}[];
|
|
2524
2198
|
nextCursor: string | null;
|
|
@@ -2532,11 +2206,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2532
2206
|
logo: string;
|
|
2533
2207
|
};
|
|
2534
2208
|
id: string;
|
|
2535
|
-
uuid: string;
|
|
2536
2209
|
noOfConnections: number;
|
|
2537
|
-
|
|
2210
|
+
uuid: string;
|
|
2538
2211
|
isComposioManaged?: boolean | undefined;
|
|
2539
|
-
|
|
2212
|
+
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;
|
|
2540
2213
|
credentials?: Record<string, unknown> | undefined;
|
|
2541
2214
|
toolAccessConfig?: {
|
|
2542
2215
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
@@ -2546,6 +2219,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2546
2219
|
expectedInputFields?: unknown[] | undefined;
|
|
2547
2220
|
restrictToFollowingTools?: string[] | undefined;
|
|
2548
2221
|
createdBy?: string | undefined;
|
|
2222
|
+
createdAt?: string | undefined;
|
|
2549
2223
|
lastUpdatedAt?: string | undefined;
|
|
2550
2224
|
}[];
|
|
2551
2225
|
nextCursor: string | null;
|
|
@@ -2879,19 +2553,19 @@ declare const TriggerSubscribeParamSchema: z.ZodObject<{
|
|
|
2879
2553
|
triggerData: z.ZodOptional<z.ZodString>;
|
|
2880
2554
|
userId: z.ZodOptional<z.ZodString>;
|
|
2881
2555
|
}, "strip", z.ZodTypeAny, {
|
|
2882
|
-
authConfigId?: string | undefined;
|
|
2883
|
-
userId?: string | undefined;
|
|
2884
2556
|
toolkits?: string[] | undefined;
|
|
2885
2557
|
connectedAccountId?: string | undefined;
|
|
2558
|
+
userId?: string | undefined;
|
|
2886
2559
|
triggerId?: string | undefined;
|
|
2560
|
+
authConfigId?: string | undefined;
|
|
2887
2561
|
triggerSlug?: string[] | undefined;
|
|
2888
2562
|
triggerData?: string | undefined;
|
|
2889
2563
|
}, {
|
|
2890
|
-
authConfigId?: string | undefined;
|
|
2891
|
-
userId?: string | undefined;
|
|
2892
2564
|
toolkits?: string[] | undefined;
|
|
2893
2565
|
connectedAccountId?: string | undefined;
|
|
2566
|
+
userId?: string | undefined;
|
|
2894
2567
|
triggerId?: string | undefined;
|
|
2568
|
+
authConfigId?: string | undefined;
|
|
2895
2569
|
triggerSlug?: string[] | undefined;
|
|
2896
2570
|
triggerData?: string | undefined;
|
|
2897
2571
|
}>;
|
|
@@ -2905,18 +2579,18 @@ declare const TriggerInstanceListActiveParamsSchema: z.ZodObject<{
|
|
|
2905
2579
|
triggerIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2906
2580
|
triggerNames: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2907
2581
|
}, "strip", z.ZodTypeAny, {
|
|
2908
|
-
|
|
2582
|
+
limit?: number | undefined;
|
|
2909
2583
|
authConfigIds?: string[] | null | undefined;
|
|
2910
2584
|
cursor?: string | undefined;
|
|
2911
|
-
|
|
2585
|
+
connectedAccountIds?: string[] | null | undefined;
|
|
2912
2586
|
showDisabled?: boolean | null | undefined;
|
|
2913
2587
|
triggerIds?: string[] | null | undefined;
|
|
2914
2588
|
triggerNames?: string[] | null | undefined;
|
|
2915
2589
|
}, {
|
|
2916
|
-
|
|
2590
|
+
limit?: number | undefined;
|
|
2917
2591
|
authConfigIds?: string[] | null | undefined;
|
|
2918
2592
|
cursor?: string | undefined;
|
|
2919
|
-
|
|
2593
|
+
connectedAccountIds?: string[] | null | undefined;
|
|
2920
2594
|
showDisabled?: boolean | null | undefined;
|
|
2921
2595
|
triggerIds?: string[] | null | undefined;
|
|
2922
2596
|
triggerNames?: string[] | null | undefined;
|
|
@@ -2934,20 +2608,20 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
|
|
|
2934
2608
|
uuid: z.ZodOptional<z.ZodString>;
|
|
2935
2609
|
}, "strip", z.ZodTypeAny, {
|
|
2936
2610
|
id: string;
|
|
2937
|
-
state: Record<string, unknown>;
|
|
2938
|
-
updatedAt: string;
|
|
2939
2611
|
connectedAccountId: string;
|
|
2612
|
+
updatedAt: string;
|
|
2940
2613
|
disabledAt: string | null;
|
|
2614
|
+
state: Record<string, unknown>;
|
|
2941
2615
|
triggerConfig: Record<string, unknown>;
|
|
2942
2616
|
triggerName: string;
|
|
2943
2617
|
uuid?: string | undefined;
|
|
2944
2618
|
triggerData?: string | undefined;
|
|
2945
2619
|
}, {
|
|
2946
2620
|
id: string;
|
|
2947
|
-
state: Record<string, unknown>;
|
|
2948
|
-
updatedAt: string;
|
|
2949
2621
|
connectedAccountId: string;
|
|
2622
|
+
updatedAt: string;
|
|
2950
2623
|
disabledAt: string | null;
|
|
2624
|
+
state: Record<string, unknown>;
|
|
2951
2625
|
triggerConfig: Record<string, unknown>;
|
|
2952
2626
|
triggerName: string;
|
|
2953
2627
|
uuid?: string | undefined;
|
|
@@ -2966,20 +2640,20 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2966
2640
|
uuid: z.ZodOptional<z.ZodString>;
|
|
2967
2641
|
}, "strip", z.ZodTypeAny, {
|
|
2968
2642
|
id: string;
|
|
2969
|
-
state: Record<string, unknown>;
|
|
2970
|
-
updatedAt: string;
|
|
2971
2643
|
connectedAccountId: string;
|
|
2644
|
+
updatedAt: string;
|
|
2972
2645
|
disabledAt: string | null;
|
|
2646
|
+
state: Record<string, unknown>;
|
|
2973
2647
|
triggerConfig: Record<string, unknown>;
|
|
2974
2648
|
triggerName: string;
|
|
2975
2649
|
uuid?: string | undefined;
|
|
2976
2650
|
triggerData?: string | undefined;
|
|
2977
2651
|
}, {
|
|
2978
2652
|
id: string;
|
|
2979
|
-
state: Record<string, unknown>;
|
|
2980
|
-
updatedAt: string;
|
|
2981
2653
|
connectedAccountId: string;
|
|
2654
|
+
updatedAt: string;
|
|
2982
2655
|
disabledAt: string | null;
|
|
2656
|
+
state: Record<string, unknown>;
|
|
2983
2657
|
triggerConfig: Record<string, unknown>;
|
|
2984
2658
|
triggerName: string;
|
|
2985
2659
|
uuid?: string | undefined;
|
|
@@ -2990,10 +2664,10 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2990
2664
|
}, "strip", z.ZodTypeAny, {
|
|
2991
2665
|
items: {
|
|
2992
2666
|
id: string;
|
|
2993
|
-
state: Record<string, unknown>;
|
|
2994
|
-
updatedAt: string;
|
|
2995
2667
|
connectedAccountId: string;
|
|
2668
|
+
updatedAt: string;
|
|
2996
2669
|
disabledAt: string | null;
|
|
2670
|
+
state: Record<string, unknown>;
|
|
2997
2671
|
triggerConfig: Record<string, unknown>;
|
|
2998
2672
|
triggerName: string;
|
|
2999
2673
|
uuid?: string | undefined;
|
|
@@ -3004,10 +2678,10 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
3004
2678
|
}, {
|
|
3005
2679
|
items: {
|
|
3006
2680
|
id: string;
|
|
3007
|
-
state: Record<string, unknown>;
|
|
3008
|
-
updatedAt: string;
|
|
3009
2681
|
connectedAccountId: string;
|
|
2682
|
+
updatedAt: string;
|
|
3010
2683
|
disabledAt: string | null;
|
|
2684
|
+
state: Record<string, unknown>;
|
|
3011
2685
|
triggerConfig: Record<string, unknown>;
|
|
3012
2686
|
triggerName: string;
|
|
3013
2687
|
uuid?: string | undefined;
|
|
@@ -3086,95 +2760,95 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
3086
2760
|
}, "strip", z.ZodTypeAny, {
|
|
3087
2761
|
status: "ACTIVE" | "INACTIVE";
|
|
3088
2762
|
id: string;
|
|
2763
|
+
userId: string;
|
|
3089
2764
|
uuid: string;
|
|
3090
2765
|
authConfigId: string;
|
|
3091
|
-
userId: string;
|
|
3092
2766
|
authConfigUUID: string;
|
|
3093
2767
|
}, {
|
|
3094
2768
|
status: "ACTIVE" | "INACTIVE";
|
|
3095
2769
|
id: string;
|
|
2770
|
+
userId: string;
|
|
3096
2771
|
uuid: string;
|
|
3097
2772
|
authConfigId: string;
|
|
3098
|
-
userId: string;
|
|
3099
2773
|
authConfigUUID: string;
|
|
3100
2774
|
}>;
|
|
3101
2775
|
}, "strip", z.ZodTypeAny, {
|
|
3102
|
-
toolkitSlug: string;
|
|
3103
2776
|
id: string;
|
|
3104
2777
|
connectedAccount: {
|
|
3105
2778
|
status: "ACTIVE" | "INACTIVE";
|
|
3106
2779
|
id: string;
|
|
2780
|
+
userId: string;
|
|
3107
2781
|
uuid: string;
|
|
3108
2782
|
authConfigId: string;
|
|
3109
|
-
userId: string;
|
|
3110
2783
|
authConfigUUID: string;
|
|
3111
2784
|
};
|
|
2785
|
+
toolkitSlug: string;
|
|
3112
2786
|
uuid: string;
|
|
3113
2787
|
triggerSlug: string;
|
|
3114
2788
|
triggerConfig: Record<string, unknown>;
|
|
3115
2789
|
triggerData?: string | undefined;
|
|
3116
2790
|
}, {
|
|
3117
|
-
toolkitSlug: string;
|
|
3118
2791
|
id: string;
|
|
3119
2792
|
connectedAccount: {
|
|
3120
2793
|
status: "ACTIVE" | "INACTIVE";
|
|
3121
2794
|
id: string;
|
|
2795
|
+
userId: string;
|
|
3122
2796
|
uuid: string;
|
|
3123
2797
|
authConfigId: string;
|
|
3124
|
-
userId: string;
|
|
3125
2798
|
authConfigUUID: string;
|
|
3126
2799
|
};
|
|
2800
|
+
toolkitSlug: string;
|
|
3127
2801
|
uuid: string;
|
|
3128
2802
|
triggerSlug: string;
|
|
3129
2803
|
triggerConfig: Record<string, unknown>;
|
|
3130
2804
|
triggerData?: string | undefined;
|
|
3131
2805
|
}>;
|
|
3132
2806
|
}, "strip", z.ZodTypeAny, {
|
|
3133
|
-
toolkitSlug: string;
|
|
3134
2807
|
id: string;
|
|
2808
|
+
toolkitSlug: string;
|
|
2809
|
+
userId: string;
|
|
3135
2810
|
uuid: string;
|
|
2811
|
+
triggerSlug: string;
|
|
3136
2812
|
metadata: {
|
|
3137
|
-
toolkitSlug: string;
|
|
3138
2813
|
id: string;
|
|
3139
2814
|
connectedAccount: {
|
|
3140
2815
|
status: "ACTIVE" | "INACTIVE";
|
|
3141
2816
|
id: string;
|
|
2817
|
+
userId: string;
|
|
3142
2818
|
uuid: string;
|
|
3143
2819
|
authConfigId: string;
|
|
3144
|
-
userId: string;
|
|
3145
2820
|
authConfigUUID: string;
|
|
3146
2821
|
};
|
|
2822
|
+
toolkitSlug: string;
|
|
3147
2823
|
uuid: string;
|
|
3148
2824
|
triggerSlug: string;
|
|
3149
2825
|
triggerConfig: Record<string, unknown>;
|
|
3150
2826
|
triggerData?: string | undefined;
|
|
3151
2827
|
};
|
|
3152
|
-
userId: string;
|
|
3153
|
-
triggerSlug: string;
|
|
3154
2828
|
payload?: Record<string, unknown> | undefined;
|
|
3155
2829
|
originalPayload?: Record<string, unknown> | undefined;
|
|
3156
2830
|
}, {
|
|
3157
|
-
toolkitSlug: string;
|
|
3158
2831
|
id: string;
|
|
2832
|
+
toolkitSlug: string;
|
|
2833
|
+
userId: string;
|
|
3159
2834
|
uuid: string;
|
|
2835
|
+
triggerSlug: string;
|
|
3160
2836
|
metadata: {
|
|
3161
|
-
toolkitSlug: string;
|
|
3162
2837
|
id: string;
|
|
3163
2838
|
connectedAccount: {
|
|
3164
2839
|
status: "ACTIVE" | "INACTIVE";
|
|
3165
2840
|
id: string;
|
|
2841
|
+
userId: string;
|
|
3166
2842
|
uuid: string;
|
|
3167
2843
|
authConfigId: string;
|
|
3168
|
-
userId: string;
|
|
3169
2844
|
authConfigUUID: string;
|
|
3170
2845
|
};
|
|
2846
|
+
toolkitSlug: string;
|
|
3171
2847
|
uuid: string;
|
|
3172
2848
|
triggerSlug: string;
|
|
3173
2849
|
triggerConfig: Record<string, unknown>;
|
|
3174
2850
|
triggerData?: string | undefined;
|
|
3175
2851
|
};
|
|
3176
|
-
userId: string;
|
|
3177
|
-
triggerSlug: string;
|
|
3178
2852
|
payload?: Record<string, unknown> | undefined;
|
|
3179
2853
|
originalPayload?: Record<string, unknown> | undefined;
|
|
3180
2854
|
}>;
|
|
@@ -3206,12 +2880,12 @@ declare const TriggersTypeListParamsSchema: z.ZodObject<{
|
|
|
3206
2880
|
toolkits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3207
2881
|
}, "strip", z.ZodTypeAny, {
|
|
3208
2882
|
toolkits?: string[] | null | undefined;
|
|
3209
|
-
cursor?: string | undefined;
|
|
3210
2883
|
limit?: number | null | undefined;
|
|
2884
|
+
cursor?: string | undefined;
|
|
3211
2885
|
}, {
|
|
3212
2886
|
toolkits?: string[] | null | undefined;
|
|
3213
|
-
cursor?: string | undefined;
|
|
3214
2887
|
limit?: number | null | undefined;
|
|
2888
|
+
cursor?: string | undefined;
|
|
3215
2889
|
}>;
|
|
3216
2890
|
type TriggersTypeListParams = z.infer<typeof TriggersTypeListParamsSchema>;
|
|
3217
2891
|
declare const TriggerTypeSchema: z.ZodObject<{
|
|
@@ -3224,41 +2898,41 @@ declare const TriggerTypeSchema: z.ZodObject<{
|
|
|
3224
2898
|
slug: z.ZodString;
|
|
3225
2899
|
name: z.ZodString;
|
|
3226
2900
|
}, "strip", z.ZodTypeAny, {
|
|
3227
|
-
slug: string;
|
|
3228
2901
|
name: string;
|
|
2902
|
+
slug: string;
|
|
3229
2903
|
logo: string;
|
|
3230
2904
|
}, {
|
|
3231
|
-
slug: string;
|
|
3232
2905
|
name: string;
|
|
2906
|
+
slug: string;
|
|
3233
2907
|
logo: string;
|
|
3234
2908
|
}>;
|
|
3235
2909
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3236
2910
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3237
2911
|
version: z.ZodOptional<z.ZodString>;
|
|
3238
2912
|
}, "strip", z.ZodTypeAny, {
|
|
3239
|
-
slug: string;
|
|
3240
2913
|
name: string;
|
|
3241
2914
|
description: string;
|
|
2915
|
+
slug: string;
|
|
3242
2916
|
toolkit: {
|
|
3243
|
-
slug: string;
|
|
3244
2917
|
name: string;
|
|
2918
|
+
slug: string;
|
|
3245
2919
|
logo: string;
|
|
3246
2920
|
};
|
|
3247
|
-
config: Record<string, unknown>;
|
|
3248
2921
|
payload: Record<string, unknown>;
|
|
2922
|
+
config: Record<string, unknown>;
|
|
3249
2923
|
version?: string | undefined;
|
|
3250
2924
|
instructions?: string | undefined;
|
|
3251
2925
|
}, {
|
|
3252
|
-
slug: string;
|
|
3253
2926
|
name: string;
|
|
3254
2927
|
description: string;
|
|
2928
|
+
slug: string;
|
|
3255
2929
|
toolkit: {
|
|
3256
|
-
slug: string;
|
|
3257
2930
|
name: string;
|
|
2931
|
+
slug: string;
|
|
3258
2932
|
logo: string;
|
|
3259
2933
|
};
|
|
3260
|
-
config: Record<string, unknown>;
|
|
3261
2934
|
payload: Record<string, unknown>;
|
|
2935
|
+
config: Record<string, unknown>;
|
|
3262
2936
|
version?: string | undefined;
|
|
3263
2937
|
instructions?: string | undefined;
|
|
3264
2938
|
}>;
|
|
@@ -3274,41 +2948,41 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
|
3274
2948
|
slug: z.ZodString;
|
|
3275
2949
|
name: z.ZodString;
|
|
3276
2950
|
}, "strip", z.ZodTypeAny, {
|
|
3277
|
-
slug: string;
|
|
3278
2951
|
name: string;
|
|
2952
|
+
slug: string;
|
|
3279
2953
|
logo: string;
|
|
3280
2954
|
}, {
|
|
3281
|
-
slug: string;
|
|
3282
2955
|
name: string;
|
|
2956
|
+
slug: string;
|
|
3283
2957
|
logo: string;
|
|
3284
2958
|
}>;
|
|
3285
2959
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3286
2960
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3287
2961
|
version: z.ZodOptional<z.ZodString>;
|
|
3288
2962
|
}, "strip", z.ZodTypeAny, {
|
|
3289
|
-
slug: string;
|
|
3290
2963
|
name: string;
|
|
3291
2964
|
description: string;
|
|
2965
|
+
slug: string;
|
|
3292
2966
|
toolkit: {
|
|
3293
|
-
slug: string;
|
|
3294
2967
|
name: string;
|
|
2968
|
+
slug: string;
|
|
3295
2969
|
logo: string;
|
|
3296
2970
|
};
|
|
3297
|
-
config: Record<string, unknown>;
|
|
3298
2971
|
payload: Record<string, unknown>;
|
|
2972
|
+
config: Record<string, unknown>;
|
|
3299
2973
|
version?: string | undefined;
|
|
3300
2974
|
instructions?: string | undefined;
|
|
3301
2975
|
}, {
|
|
3302
|
-
slug: string;
|
|
3303
2976
|
name: string;
|
|
3304
2977
|
description: string;
|
|
2978
|
+
slug: string;
|
|
3305
2979
|
toolkit: {
|
|
3306
|
-
slug: string;
|
|
3307
2980
|
name: string;
|
|
2981
|
+
slug: string;
|
|
3308
2982
|
logo: string;
|
|
3309
2983
|
};
|
|
3310
|
-
config: Record<string, unknown>;
|
|
3311
2984
|
payload: Record<string, unknown>;
|
|
2985
|
+
config: Record<string, unknown>;
|
|
3312
2986
|
version?: string | undefined;
|
|
3313
2987
|
instructions?: string | undefined;
|
|
3314
2988
|
}>, "many">;
|
|
@@ -3316,16 +2990,16 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
|
3316
2990
|
totalPages: z.ZodNumber;
|
|
3317
2991
|
}, "strip", z.ZodTypeAny, {
|
|
3318
2992
|
items: {
|
|
3319
|
-
slug: string;
|
|
3320
2993
|
name: string;
|
|
3321
2994
|
description: string;
|
|
2995
|
+
slug: string;
|
|
3322
2996
|
toolkit: {
|
|
3323
|
-
slug: string;
|
|
3324
2997
|
name: string;
|
|
2998
|
+
slug: string;
|
|
3325
2999
|
logo: string;
|
|
3326
3000
|
};
|
|
3327
|
-
config: Record<string, unknown>;
|
|
3328
3001
|
payload: Record<string, unknown>;
|
|
3002
|
+
config: Record<string, unknown>;
|
|
3329
3003
|
version?: string | undefined;
|
|
3330
3004
|
instructions?: string | undefined;
|
|
3331
3005
|
}[];
|
|
@@ -3333,16 +3007,16 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
|
3333
3007
|
nextCursor?: string | null | undefined;
|
|
3334
3008
|
}, {
|
|
3335
3009
|
items: {
|
|
3336
|
-
slug: string;
|
|
3337
3010
|
name: string;
|
|
3338
3011
|
description: string;
|
|
3012
|
+
slug: string;
|
|
3339
3013
|
toolkit: {
|
|
3340
|
-
slug: string;
|
|
3341
3014
|
name: string;
|
|
3015
|
+
slug: string;
|
|
3342
3016
|
logo: string;
|
|
3343
3017
|
};
|
|
3344
|
-
config: Record<string, unknown>;
|
|
3345
3018
|
payload: Record<string, unknown>;
|
|
3019
|
+
config: Record<string, unknown>;
|
|
3346
3020
|
version?: string | undefined;
|
|
3347
3021
|
instructions?: string | undefined;
|
|
3348
3022
|
}[];
|
|
@@ -3421,29 +3095,29 @@ declare const WebhookPayloadV2Schema: z.ZodObject<{
|
|
|
3421
3095
|
}, "strip", z.ZodTypeAny, {
|
|
3422
3096
|
type: string;
|
|
3423
3097
|
data: {
|
|
3424
|
-
user_id: string;
|
|
3425
3098
|
connection_id: string;
|
|
3426
3099
|
trigger_id: string;
|
|
3427
3100
|
connection_nano_id: string;
|
|
3428
3101
|
trigger_nano_id: string;
|
|
3102
|
+
user_id: string;
|
|
3429
3103
|
} & {
|
|
3430
3104
|
[k: string]: unknown;
|
|
3431
3105
|
};
|
|
3432
|
-
timestamp: string;
|
|
3433
3106
|
log_id: string;
|
|
3107
|
+
timestamp: string;
|
|
3434
3108
|
}, {
|
|
3435
3109
|
type: string;
|
|
3436
3110
|
data: {
|
|
3437
|
-
user_id: string;
|
|
3438
3111
|
connection_id: string;
|
|
3439
3112
|
trigger_id: string;
|
|
3440
3113
|
connection_nano_id: string;
|
|
3441
3114
|
trigger_nano_id: string;
|
|
3115
|
+
user_id: string;
|
|
3442
3116
|
} & {
|
|
3443
3117
|
[k: string]: unknown;
|
|
3444
3118
|
};
|
|
3445
|
-
timestamp: string;
|
|
3446
3119
|
log_id: string;
|
|
3120
|
+
timestamp: string;
|
|
3447
3121
|
}>;
|
|
3448
3122
|
type WebhookPayloadV2 = z.infer<typeof WebhookPayloadV2Schema>;
|
|
3449
3123
|
/** V3 webhook payload - generic envelope for all composio.* events */
|
|
@@ -3457,14 +3131,14 @@ declare const WebhookPayloadV3Schema: z.ZodObject<{
|
|
|
3457
3131
|
type: string;
|
|
3458
3132
|
id: string;
|
|
3459
3133
|
data: Record<string, unknown>;
|
|
3460
|
-
timestamp: string;
|
|
3461
3134
|
metadata: Record<string, unknown>;
|
|
3135
|
+
timestamp: string;
|
|
3462
3136
|
}, {
|
|
3463
3137
|
type: string;
|
|
3464
3138
|
id: string;
|
|
3465
3139
|
data: Record<string, unknown>;
|
|
3466
|
-
timestamp: string;
|
|
3467
3140
|
metadata: Record<string, unknown>;
|
|
3141
|
+
timestamp: string;
|
|
3468
3142
|
}>;
|
|
3469
3143
|
type WebhookPayloadV3 = z.infer<typeof WebhookPayloadV3Schema>;
|
|
3470
3144
|
/** V3 trigger-specific payload - has trigger metadata fields */
|
|
@@ -3499,32 +3173,32 @@ declare const WebhookTriggerPayloadV3Schema: z.ZodObject<{
|
|
|
3499
3173
|
type: string;
|
|
3500
3174
|
id: string;
|
|
3501
3175
|
data: Record<string, unknown>;
|
|
3502
|
-
timestamp: string;
|
|
3503
3176
|
metadata: {
|
|
3504
|
-
user_id: string;
|
|
3505
3177
|
trigger_id: string;
|
|
3506
3178
|
log_id: string;
|
|
3179
|
+
user_id: string;
|
|
3507
3180
|
trigger_slug: string;
|
|
3508
3181
|
connected_account_id: string;
|
|
3509
3182
|
auth_config_id: string;
|
|
3510
3183
|
} & {
|
|
3511
3184
|
[k: string]: unknown;
|
|
3512
3185
|
};
|
|
3186
|
+
timestamp: string;
|
|
3513
3187
|
}, {
|
|
3514
3188
|
type: string;
|
|
3515
3189
|
id: string;
|
|
3516
3190
|
data: Record<string, unknown>;
|
|
3517
|
-
timestamp: string;
|
|
3518
3191
|
metadata: {
|
|
3519
|
-
user_id: string;
|
|
3520
3192
|
trigger_id: string;
|
|
3521
3193
|
log_id: string;
|
|
3194
|
+
user_id: string;
|
|
3522
3195
|
trigger_slug: string;
|
|
3523
3196
|
connected_account_id: string;
|
|
3524
3197
|
auth_config_id: string;
|
|
3525
3198
|
} & {
|
|
3526
3199
|
[k: string]: unknown;
|
|
3527
3200
|
};
|
|
3201
|
+
timestamp: string;
|
|
3528
3202
|
}>;
|
|
3529
3203
|
type WebhookTriggerPayloadV3 = z.infer<typeof WebhookTriggerPayloadV3Schema>;
|
|
3530
3204
|
/** Union of all webhook payload versions */
|
|
@@ -3538,14 +3212,14 @@ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
3538
3212
|
type: string;
|
|
3539
3213
|
id: string;
|
|
3540
3214
|
data: Record<string, unknown>;
|
|
3541
|
-
timestamp: string;
|
|
3542
3215
|
metadata: Record<string, unknown>;
|
|
3216
|
+
timestamp: string;
|
|
3543
3217
|
}, {
|
|
3544
3218
|
type: string;
|
|
3545
3219
|
id: string;
|
|
3546
3220
|
data: Record<string, unknown>;
|
|
3547
|
-
timestamp: string;
|
|
3548
3221
|
metadata: Record<string, unknown>;
|
|
3222
|
+
timestamp: string;
|
|
3549
3223
|
}>, z.ZodObject<{
|
|
3550
3224
|
type: z.ZodString;
|
|
3551
3225
|
timestamp: z.ZodString;
|
|
@@ -3572,29 +3246,29 @@ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
3572
3246
|
}, "strip", z.ZodTypeAny, {
|
|
3573
3247
|
type: string;
|
|
3574
3248
|
data: {
|
|
3575
|
-
user_id: string;
|
|
3576
3249
|
connection_id: string;
|
|
3577
3250
|
trigger_id: string;
|
|
3578
3251
|
connection_nano_id: string;
|
|
3579
3252
|
trigger_nano_id: string;
|
|
3253
|
+
user_id: string;
|
|
3580
3254
|
} & {
|
|
3581
3255
|
[k: string]: unknown;
|
|
3582
3256
|
};
|
|
3583
|
-
timestamp: string;
|
|
3584
3257
|
log_id: string;
|
|
3258
|
+
timestamp: string;
|
|
3585
3259
|
}, {
|
|
3586
3260
|
type: string;
|
|
3587
3261
|
data: {
|
|
3588
|
-
user_id: string;
|
|
3589
3262
|
connection_id: string;
|
|
3590
3263
|
trigger_id: string;
|
|
3591
3264
|
connection_nano_id: string;
|
|
3592
3265
|
trigger_nano_id: string;
|
|
3266
|
+
user_id: string;
|
|
3593
3267
|
} & {
|
|
3594
3268
|
[k: string]: unknown;
|
|
3595
3269
|
};
|
|
3596
|
-
timestamp: string;
|
|
3597
3270
|
log_id: string;
|
|
3271
|
+
timestamp: string;
|
|
3598
3272
|
}>, z.ZodObject<{
|
|
3599
3273
|
trigger_name: z.ZodString;
|
|
3600
3274
|
connection_id: z.ZodString;
|
|
@@ -3654,15 +3328,15 @@ declare const VerifyWebhookParamsSchema: z.ZodObject<{
|
|
|
3654
3328
|
tolerance: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3655
3329
|
}, "strip", z.ZodTypeAny, {
|
|
3656
3330
|
id: string;
|
|
3657
|
-
timestamp: string;
|
|
3658
3331
|
payload: string;
|
|
3332
|
+
timestamp: string;
|
|
3659
3333
|
secret: string;
|
|
3660
3334
|
signature: string;
|
|
3661
3335
|
tolerance: number;
|
|
3662
3336
|
}, {
|
|
3663
3337
|
id: string;
|
|
3664
|
-
timestamp: string;
|
|
3665
3338
|
payload: string;
|
|
3339
|
+
timestamp: string;
|
|
3666
3340
|
secret: string;
|
|
3667
3341
|
signature: string;
|
|
3668
3342
|
tolerance?: number | undefined;
|
|
@@ -4363,16 +4037,16 @@ declare const MCPServerInstanceSchema: z$1.ZodObject<{
|
|
|
4363
4037
|
name: string;
|
|
4364
4038
|
type: "streamable_http";
|
|
4365
4039
|
id: string;
|
|
4366
|
-
allowedTools: string[];
|
|
4367
4040
|
userId: string;
|
|
4041
|
+
allowedTools: string[];
|
|
4368
4042
|
url: string;
|
|
4369
4043
|
authConfigs: string[];
|
|
4370
4044
|
}, {
|
|
4371
4045
|
name: string;
|
|
4372
4046
|
type: "streamable_http";
|
|
4373
4047
|
id: string;
|
|
4374
|
-
allowedTools: string[];
|
|
4375
4048
|
userId: string;
|
|
4049
|
+
allowedTools: string[];
|
|
4376
4050
|
url: string;
|
|
4377
4051
|
authConfigs: string[];
|
|
4378
4052
|
}>;
|
|
@@ -4440,12 +4114,12 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
|
|
|
4440
4114
|
*/
|
|
4441
4115
|
windsurf: z$1.ZodString;
|
|
4442
4116
|
}, "strip", z$1.ZodTypeAny, {
|
|
4443
|
-
claude: string;
|
|
4444
4117
|
cursor: string;
|
|
4118
|
+
claude: string;
|
|
4445
4119
|
windsurf: string;
|
|
4446
4120
|
}, {
|
|
4447
|
-
claude: string;
|
|
4448
4121
|
cursor: string;
|
|
4122
|
+
claude: string;
|
|
4449
4123
|
windsurf: string;
|
|
4450
4124
|
}>;
|
|
4451
4125
|
/**
|
|
@@ -4455,22 +4129,22 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
|
|
|
4455
4129
|
}, "strip", z$1.ZodTypeAny, {
|
|
4456
4130
|
name: string;
|
|
4457
4131
|
id: string;
|
|
4458
|
-
allowedTools: string[];
|
|
4459
4132
|
authConfigIds: string[];
|
|
4133
|
+
allowedTools: string[];
|
|
4460
4134
|
commands: {
|
|
4461
|
-
claude: string;
|
|
4462
4135
|
cursor: string;
|
|
4136
|
+
claude: string;
|
|
4463
4137
|
windsurf: string;
|
|
4464
4138
|
};
|
|
4465
4139
|
MCPUrl: string;
|
|
4466
4140
|
}, {
|
|
4467
4141
|
name: string;
|
|
4468
4142
|
id: string;
|
|
4469
|
-
allowedTools: string[];
|
|
4470
4143
|
authConfigIds: string[];
|
|
4144
|
+
allowedTools: string[];
|
|
4471
4145
|
commands: {
|
|
4472
|
-
claude: string;
|
|
4473
4146
|
cursor: string;
|
|
4147
|
+
claude: string;
|
|
4474
4148
|
windsurf: string;
|
|
4475
4149
|
};
|
|
4476
4150
|
MCPUrl: string;
|
|
@@ -4500,15 +4174,15 @@ declare const MCPListParamsSchema: z$1.ZodObject<{
|
|
|
4500
4174
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
4501
4175
|
}, "strip", z$1.ZodTypeAny, {
|
|
4502
4176
|
toolkits: string[];
|
|
4503
|
-
page: number;
|
|
4504
4177
|
limit: number;
|
|
4178
|
+
page: number;
|
|
4505
4179
|
authConfigs: string[];
|
|
4506
4180
|
name?: string | undefined;
|
|
4507
4181
|
}, {
|
|
4508
4182
|
name?: string | undefined;
|
|
4509
4183
|
toolkits?: string[] | undefined;
|
|
4510
|
-
page?: number | undefined;
|
|
4511
4184
|
limit?: number | undefined;
|
|
4185
|
+
page?: number | undefined;
|
|
4512
4186
|
authConfigs?: string[] | undefined;
|
|
4513
4187
|
}>;
|
|
4514
4188
|
type MCPListParams = z$1.infer<typeof MCPListParamsSchema>;
|
|
@@ -4546,12 +4220,12 @@ declare const MCPItemSchema: z$1.ZodObject<{
|
|
|
4546
4220
|
*/
|
|
4547
4221
|
windsurf: z$1.ZodString;
|
|
4548
4222
|
}, "strip", z$1.ZodTypeAny, {
|
|
4549
|
-
claude: string;
|
|
4550
4223
|
cursor: string;
|
|
4224
|
+
claude: string;
|
|
4551
4225
|
windsurf: string;
|
|
4552
4226
|
}, {
|
|
4553
|
-
claude: string;
|
|
4554
4227
|
cursor: string;
|
|
4228
|
+
claude: string;
|
|
4555
4229
|
windsurf: string;
|
|
4556
4230
|
}>;
|
|
4557
4231
|
/**
|
|
@@ -4565,12 +4239,12 @@ declare const MCPItemSchema: z$1.ZodObject<{
|
|
|
4565
4239
|
}, "strip", z$1.ZodTypeAny, {
|
|
4566
4240
|
name: string;
|
|
4567
4241
|
id: string;
|
|
4568
|
-
allowedTools: string[];
|
|
4569
4242
|
toolkits: string[];
|
|
4570
4243
|
authConfigIds: string[];
|
|
4244
|
+
allowedTools: string[];
|
|
4571
4245
|
commands: {
|
|
4572
|
-
claude: string;
|
|
4573
4246
|
cursor: string;
|
|
4247
|
+
claude: string;
|
|
4574
4248
|
windsurf: string;
|
|
4575
4249
|
};
|
|
4576
4250
|
MCPUrl: string;
|
|
@@ -4579,12 +4253,12 @@ declare const MCPItemSchema: z$1.ZodObject<{
|
|
|
4579
4253
|
}, {
|
|
4580
4254
|
name: string;
|
|
4581
4255
|
id: string;
|
|
4582
|
-
allowedTools: string[];
|
|
4583
4256
|
toolkits: string[];
|
|
4584
4257
|
authConfigIds: string[];
|
|
4258
|
+
allowedTools: string[];
|
|
4585
4259
|
commands: {
|
|
4586
|
-
claude: string;
|
|
4587
4260
|
cursor: string;
|
|
4261
|
+
claude: string;
|
|
4588
4262
|
windsurf: string;
|
|
4589
4263
|
};
|
|
4590
4264
|
MCPUrl: string;
|
|
@@ -4627,12 +4301,12 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4627
4301
|
*/
|
|
4628
4302
|
windsurf: z$1.ZodString;
|
|
4629
4303
|
}, "strip", z$1.ZodTypeAny, {
|
|
4630
|
-
claude: string;
|
|
4631
4304
|
cursor: string;
|
|
4305
|
+
claude: string;
|
|
4632
4306
|
windsurf: string;
|
|
4633
4307
|
}, {
|
|
4634
|
-
claude: string;
|
|
4635
4308
|
cursor: string;
|
|
4309
|
+
claude: string;
|
|
4636
4310
|
windsurf: string;
|
|
4637
4311
|
}>;
|
|
4638
4312
|
/**
|
|
@@ -4646,12 +4320,12 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4646
4320
|
}, "strip", z$1.ZodTypeAny, {
|
|
4647
4321
|
name: string;
|
|
4648
4322
|
id: string;
|
|
4649
|
-
allowedTools: string[];
|
|
4650
4323
|
toolkits: string[];
|
|
4651
4324
|
authConfigIds: string[];
|
|
4325
|
+
allowedTools: string[];
|
|
4652
4326
|
commands: {
|
|
4653
|
-
claude: string;
|
|
4654
4327
|
cursor: string;
|
|
4328
|
+
claude: string;
|
|
4655
4329
|
windsurf: string;
|
|
4656
4330
|
};
|
|
4657
4331
|
MCPUrl: string;
|
|
@@ -4660,12 +4334,12 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4660
4334
|
}, {
|
|
4661
4335
|
name: string;
|
|
4662
4336
|
id: string;
|
|
4663
|
-
allowedTools: string[];
|
|
4664
4337
|
toolkits: string[];
|
|
4665
4338
|
authConfigIds: string[];
|
|
4339
|
+
allowedTools: string[];
|
|
4666
4340
|
commands: {
|
|
4667
|
-
claude: string;
|
|
4668
4341
|
cursor: string;
|
|
4342
|
+
claude: string;
|
|
4669
4343
|
windsurf: string;
|
|
4670
4344
|
};
|
|
4671
4345
|
MCPUrl: string;
|
|
@@ -4678,12 +4352,12 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4678
4352
|
items: {
|
|
4679
4353
|
name: string;
|
|
4680
4354
|
id: string;
|
|
4681
|
-
allowedTools: string[];
|
|
4682
4355
|
toolkits: string[];
|
|
4683
4356
|
authConfigIds: string[];
|
|
4357
|
+
allowedTools: string[];
|
|
4684
4358
|
commands: {
|
|
4685
|
-
claude: string;
|
|
4686
4359
|
cursor: string;
|
|
4360
|
+
claude: string;
|
|
4687
4361
|
windsurf: string;
|
|
4688
4362
|
};
|
|
4689
4363
|
MCPUrl: string;
|
|
@@ -4696,12 +4370,12 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4696
4370
|
items: {
|
|
4697
4371
|
name: string;
|
|
4698
4372
|
id: string;
|
|
4699
|
-
allowedTools: string[];
|
|
4700
4373
|
toolkits: string[];
|
|
4701
4374
|
authConfigIds: string[];
|
|
4375
|
+
allowedTools: string[];
|
|
4702
4376
|
commands: {
|
|
4703
|
-
claude: string;
|
|
4704
4377
|
cursor: string;
|
|
4378
|
+
claude: string;
|
|
4705
4379
|
windsurf: string;
|
|
4706
4380
|
};
|
|
4707
4381
|
MCPUrl: string;
|
|
@@ -4728,19 +4402,19 @@ declare const MCPUpdateParamsSchema: z$1.ZodObject<{
|
|
|
4728
4402
|
manuallyManageConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4729
4403
|
}, "strip", z$1.ZodTypeAny, {
|
|
4730
4404
|
name?: string | undefined;
|
|
4731
|
-
allowedTools?: string[] | undefined;
|
|
4732
4405
|
toolkits?: (string | {
|
|
4733
4406
|
toolkit?: string | undefined;
|
|
4734
4407
|
authConfigId?: string | undefined;
|
|
4735
4408
|
})[] | undefined;
|
|
4409
|
+
allowedTools?: string[] | undefined;
|
|
4736
4410
|
manuallyManageConnections?: boolean | undefined;
|
|
4737
4411
|
}, {
|
|
4738
4412
|
name?: string | undefined;
|
|
4739
|
-
allowedTools?: string[] | undefined;
|
|
4740
4413
|
toolkits?: (string | {
|
|
4741
4414
|
toolkit?: string | undefined;
|
|
4742
4415
|
authConfigId?: string | undefined;
|
|
4743
4416
|
})[] | undefined;
|
|
4417
|
+
allowedTools?: string[] | undefined;
|
|
4744
4418
|
manuallyManageConnections?: boolean | undefined;
|
|
4745
4419
|
}>;
|
|
4746
4420
|
type MCPUpdateParams = z$1.infer<typeof MCPUpdateParamsSchema>;
|
|
@@ -5291,1289 +4965,6 @@ declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection
|
|
|
5291
4965
|
//#region src/types/composio.types.d.ts
|
|
5292
4966
|
type ComposioRequestHeaders = Record<string, string>;
|
|
5293
4967
|
//#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
|
-
cursor?: string | undefined;
|
|
5306
|
-
limit?: number | undefined;
|
|
5307
|
-
}, {
|
|
5308
|
-
path?: string | undefined;
|
|
5309
|
-
cursor?: string | undefined;
|
|
5310
|
-
limit?: number | 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.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.files.list({ path: '/' });
|
|
5542
|
-
* ```
|
|
5543
|
-
*
|
|
5544
|
-
* @example
|
|
5545
|
-
* ```typescript
|
|
5546
|
-
* // Paginated listing
|
|
5547
|
-
* let result = await session.files.list({ path: '/', limit: 10 });
|
|
5548
|
-
* while (result.nextCursor) {
|
|
5549
|
-
* result = await session.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.files.upload('/path/to/report.pdf');
|
|
5569
|
-
* await session.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.files.upload(fileInput.files[0]);
|
|
5576
|
-
* ```
|
|
5577
|
-
*
|
|
5578
|
-
* @example
|
|
5579
|
-
* ```typescript
|
|
5580
|
-
* // From raw buffer
|
|
5581
|
-
* await session.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.files.download('/output/report.pdf');
|
|
5600
|
-
* ```
|
|
5601
|
-
*
|
|
5602
|
-
* @example
|
|
5603
|
-
* ```typescript
|
|
5604
|
-
* // Download from a custom mount
|
|
5605
|
-
* await session.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.files.delete('/temp/cache.json');
|
|
5626
|
-
* ```
|
|
5627
|
-
*
|
|
5628
|
-
* @example
|
|
5629
|
-
* ```typescript
|
|
5630
|
-
* // Delete from a custom mount
|
|
5631
|
-
* await session.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
|
|
5641
|
-
//#region src/types/toolRouter.types.d.ts
|
|
5642
|
-
declare const MCPServerTypeSchema: z$1.ZodEnum<["http", "sse"]>;
|
|
5643
|
-
type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
|
|
5644
|
-
declare const ToolRouterConfigManageConnectionsSchema: z$1.ZodObject<{
|
|
5645
|
-
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
5646
|
-
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
5647
|
-
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
5648
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5649
|
-
callbackUrl?: string | undefined;
|
|
5650
|
-
enable?: boolean | undefined;
|
|
5651
|
-
waitForConnections?: boolean | undefined;
|
|
5652
|
-
}, {
|
|
5653
|
-
callbackUrl?: string | undefined;
|
|
5654
|
-
enable?: boolean | undefined;
|
|
5655
|
-
waitForConnections?: boolean | undefined;
|
|
5656
|
-
}>;
|
|
5657
|
-
declare const ToolRouterToolkitsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5658
|
-
declare const ToolRouterToolkitsDisabledConfigSchema: z$1.ZodObject<{
|
|
5659
|
-
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5660
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5661
|
-
disable: string[];
|
|
5662
|
-
}, {
|
|
5663
|
-
disable: string[];
|
|
5664
|
-
}>;
|
|
5665
|
-
declare const ToolRouterToolkitsEnabledConfigSchema: z$1.ZodObject<{
|
|
5666
|
-
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5667
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5668
|
-
enable: string[];
|
|
5669
|
-
}, {
|
|
5670
|
-
enable: string[];
|
|
5671
|
-
}>;
|
|
5672
|
-
declare const ToolRouterManageConnectionsConfigSchema: z$1.ZodObject<{
|
|
5673
|
-
enable: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
5674
|
-
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
5675
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
5676
|
-
enable: boolean;
|
|
5677
|
-
callbackUrl?: string | undefined;
|
|
5678
|
-
}, {
|
|
5679
|
-
callbackUrl?: string | undefined;
|
|
5680
|
-
enable?: boolean | undefined;
|
|
5681
|
-
}>;
|
|
5682
|
-
declare const ToolRouterTagsParamSchema: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
5683
|
-
declare const ToolRouterTagsEnableDisableSchema: z$1.ZodObject<{
|
|
5684
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5685
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5686
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5687
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5688
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5689
|
-
}, {
|
|
5690
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5691
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5692
|
-
}>;
|
|
5693
|
-
declare const ToolRouterConfigTagsSchema: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
5694
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5695
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5696
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5697
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5698
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5699
|
-
}, {
|
|
5700
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5701
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5702
|
-
}>]>;
|
|
5703
|
-
type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
5704
|
-
/**
|
|
5705
|
-
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
5706
|
-
* @example
|
|
5707
|
-
* ```typescript
|
|
5708
|
-
* {
|
|
5709
|
-
* gmail: {
|
|
5710
|
-
* enable: ['gmail_search', 'gmail_send']
|
|
5711
|
-
* },
|
|
5712
|
-
* slack: {
|
|
5713
|
-
* disable: ['slack_delete_message']
|
|
5714
|
-
* }
|
|
5715
|
-
* }
|
|
5716
|
-
* ```
|
|
5717
|
-
*
|
|
5718
|
-
* @example
|
|
5719
|
-
* ```typescript
|
|
5720
|
-
* {
|
|
5721
|
-
* gmail: ['gmail_search', 'gmail_send'],
|
|
5722
|
-
* slack: { tags: ['readOnlyHint'] }
|
|
5723
|
-
* }
|
|
5724
|
-
* ```
|
|
5725
|
-
*/
|
|
5726
|
-
declare const ToolRouterToolsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5727
|
-
type ToolRouterToolsParam = z$1.infer<typeof ToolRouterToolsParamSchema>;
|
|
5728
|
-
declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
5729
|
-
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5730
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5731
|
-
enable: string[];
|
|
5732
|
-
}, {
|
|
5733
|
-
enable: string[];
|
|
5734
|
-
}>, z$1.ZodObject<{
|
|
5735
|
-
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5736
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5737
|
-
disable: string[];
|
|
5738
|
-
}, {
|
|
5739
|
-
disable: string[];
|
|
5740
|
-
}>, z$1.ZodObject<{
|
|
5741
|
-
tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
5742
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5743
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5744
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5745
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5746
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5747
|
-
}, {
|
|
5748
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5749
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5750
|
-
}>]>;
|
|
5751
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5752
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5753
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5754
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5755
|
-
};
|
|
5756
|
-
}, {
|
|
5757
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5758
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5759
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5760
|
-
};
|
|
5761
|
-
}>]>, string[] | {
|
|
5762
|
-
enable: string[];
|
|
5763
|
-
} | {
|
|
5764
|
-
disable: string[];
|
|
5765
|
-
} | {
|
|
5766
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5767
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5768
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5769
|
-
};
|
|
5770
|
-
}, string[] | {
|
|
5771
|
-
enable: string[];
|
|
5772
|
-
} | {
|
|
5773
|
-
disable: string[];
|
|
5774
|
-
} | {
|
|
5775
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5776
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5777
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5778
|
-
};
|
|
5779
|
-
}>;
|
|
5780
|
-
type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
|
|
5781
|
-
declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
5782
|
-
tools: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
5783
|
-
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5784
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5785
|
-
enable: string[];
|
|
5786
|
-
}, {
|
|
5787
|
-
enable: string[];
|
|
5788
|
-
}>, z$1.ZodObject<{
|
|
5789
|
-
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5790
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5791
|
-
disable: string[];
|
|
5792
|
-
}, {
|
|
5793
|
-
disable: string[];
|
|
5794
|
-
}>, z$1.ZodObject<{
|
|
5795
|
-
tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
5796
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5797
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5798
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5799
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5800
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5801
|
-
}, {
|
|
5802
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5803
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5804
|
-
}>]>;
|
|
5805
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5806
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5807
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5808
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5809
|
-
};
|
|
5810
|
-
}, {
|
|
5811
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5812
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5813
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5814
|
-
};
|
|
5815
|
-
}>]>, string[] | {
|
|
5816
|
-
enable: string[];
|
|
5817
|
-
} | {
|
|
5818
|
-
disable: string[];
|
|
5819
|
-
} | {
|
|
5820
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5821
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5822
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5823
|
-
};
|
|
5824
|
-
}, string[] | {
|
|
5825
|
-
enable: string[];
|
|
5826
|
-
} | {
|
|
5827
|
-
disable: string[];
|
|
5828
|
-
} | {
|
|
5829
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5830
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5831
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5832
|
-
};
|
|
5833
|
-
}>]>>>>;
|
|
5834
|
-
tags: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
5835
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5836
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
5837
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5838
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5839
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5840
|
-
}, {
|
|
5841
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5842
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5843
|
-
}>]>>>;
|
|
5844
|
-
toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
5845
|
-
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5846
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5847
|
-
disable: string[];
|
|
5848
|
-
}, {
|
|
5849
|
-
disable: string[];
|
|
5850
|
-
}>, z$1.ZodObject<{
|
|
5851
|
-
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
5852
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5853
|
-
enable: string[];
|
|
5854
|
-
}, {
|
|
5855
|
-
enable: string[];
|
|
5856
|
-
}>]>>>;
|
|
5857
|
-
authConfigs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
5858
|
-
connectedAccounts: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
5859
|
-
manageConnections: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodObject<{
|
|
5860
|
-
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
5861
|
-
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
5862
|
-
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
5863
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
5864
|
-
callbackUrl?: string | undefined;
|
|
5865
|
-
enable?: boolean | undefined;
|
|
5866
|
-
waitForConnections?: boolean | undefined;
|
|
5867
|
-
}, {
|
|
5868
|
-
callbackUrl?: string | undefined;
|
|
5869
|
-
enable?: boolean | undefined;
|
|
5870
|
-
waitForConnections?: boolean | undefined;
|
|
5871
|
-
}>]>>>>;
|
|
5872
|
-
workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
5873
|
-
enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
5874
|
-
autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
|
|
5875
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
5876
|
-
enableProxyExecution?: boolean | undefined;
|
|
5877
|
-
autoOffloadThreshold?: number | undefined;
|
|
5878
|
-
}, {
|
|
5879
|
-
enableProxyExecution?: boolean | undefined;
|
|
5880
|
-
autoOffloadThreshold?: number | undefined;
|
|
5881
|
-
}>>>;
|
|
5882
|
-
experimental: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
5883
|
-
assistivePrompt: z$1.ZodOptional<z$1.ZodObject<{
|
|
5884
|
-
userTimezone: z$1.ZodOptional<z$1.ZodString>;
|
|
5885
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
5886
|
-
userTimezone?: string | undefined;
|
|
5887
|
-
}, {
|
|
5888
|
-
userTimezone?: string | undefined;
|
|
5889
|
-
}>>;
|
|
5890
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
5891
|
-
assistivePrompt?: {
|
|
5892
|
-
userTimezone?: string | undefined;
|
|
5893
|
-
} | undefined;
|
|
5894
|
-
}, {
|
|
5895
|
-
assistivePrompt?: {
|
|
5896
|
-
userTimezone?: string | undefined;
|
|
5897
|
-
} | undefined;
|
|
5898
|
-
}>>>;
|
|
5899
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
5900
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5901
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5902
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5903
|
-
} | undefined;
|
|
5904
|
-
tools?: Record<string, string[] | {
|
|
5905
|
-
enable: string[];
|
|
5906
|
-
} | {
|
|
5907
|
-
disable: string[];
|
|
5908
|
-
} | {
|
|
5909
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5910
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5911
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5912
|
-
};
|
|
5913
|
-
}> | undefined;
|
|
5914
|
-
toolkits?: string[] | {
|
|
5915
|
-
disable: string[];
|
|
5916
|
-
} | {
|
|
5917
|
-
enable: string[];
|
|
5918
|
-
} | undefined;
|
|
5919
|
-
authConfigs?: Record<string, string> | undefined;
|
|
5920
|
-
connectedAccounts?: Record<string, string> | undefined;
|
|
5921
|
-
manageConnections?: boolean | {
|
|
5922
|
-
callbackUrl?: string | undefined;
|
|
5923
|
-
enable?: boolean | undefined;
|
|
5924
|
-
waitForConnections?: boolean | undefined;
|
|
5925
|
-
} | undefined;
|
|
5926
|
-
workbench?: {
|
|
5927
|
-
enableProxyExecution?: boolean | undefined;
|
|
5928
|
-
autoOffloadThreshold?: number | undefined;
|
|
5929
|
-
} | undefined;
|
|
5930
|
-
experimental?: {
|
|
5931
|
-
assistivePrompt?: {
|
|
5932
|
-
userTimezone?: string | undefined;
|
|
5933
|
-
} | undefined;
|
|
5934
|
-
} | undefined;
|
|
5935
|
-
}, {
|
|
5936
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5937
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5938
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5939
|
-
} | undefined;
|
|
5940
|
-
tools?: Record<string, string[] | {
|
|
5941
|
-
enable: string[];
|
|
5942
|
-
} | {
|
|
5943
|
-
disable: string[];
|
|
5944
|
-
} | {
|
|
5945
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
5946
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5947
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
5948
|
-
};
|
|
5949
|
-
}> | undefined;
|
|
5950
|
-
toolkits?: string[] | {
|
|
5951
|
-
disable: string[];
|
|
5952
|
-
} | {
|
|
5953
|
-
enable: string[];
|
|
5954
|
-
} | undefined;
|
|
5955
|
-
authConfigs?: Record<string, string> | undefined;
|
|
5956
|
-
connectedAccounts?: Record<string, string> | undefined;
|
|
5957
|
-
manageConnections?: boolean | {
|
|
5958
|
-
callbackUrl?: string | undefined;
|
|
5959
|
-
enable?: boolean | undefined;
|
|
5960
|
-
waitForConnections?: boolean | undefined;
|
|
5961
|
-
} | undefined;
|
|
5962
|
-
workbench?: {
|
|
5963
|
-
enableProxyExecution?: boolean | undefined;
|
|
5964
|
-
autoOffloadThreshold?: number | undefined;
|
|
5965
|
-
} | undefined;
|
|
5966
|
-
experimental?: {
|
|
5967
|
-
assistivePrompt?: {
|
|
5968
|
-
userTimezone?: string | undefined;
|
|
5969
|
-
} | undefined;
|
|
5970
|
-
} | undefined;
|
|
5971
|
-
}>;
|
|
5972
|
-
/**
|
|
5973
|
-
* The config for the tool router session.
|
|
5974
|
-
*
|
|
5975
|
-
* @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
|
|
5976
|
-
* @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
|
|
5977
|
-
* @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
|
|
5978
|
-
* @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
|
|
5979
|
-
* @param {Record<string, string>} connectedAccounts - The connected accounts to use in the tool router session
|
|
5980
|
-
* @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.
|
|
5981
|
-
* @param {boolean} [manageConnections.enable] - Whether to use tools to manage connections in the tool router session @default true
|
|
5982
|
-
* @param {string} [manageConnections.callbackUrl] - The callback url to use in the tool router session
|
|
5983
|
-
* @param {object} workbench - Workbench configuration for tool execution
|
|
5984
|
-
* @param {boolean} [workbench.proxyExecutionEnabled] - Whether to enable proxy execution
|
|
5985
|
-
* @param {number} [workbench.autoOffloadThreshold] - Auto offload threshold in characters for moving execution to workbench
|
|
5986
|
-
*/
|
|
5987
|
-
type ToolRouterCreateSessionConfig = z$1.infer<typeof ToolRouterCreateSessionConfigSchema>;
|
|
5988
|
-
declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
5989
|
-
slug: z$1.ZodString;
|
|
5990
|
-
name: z$1.ZodString;
|
|
5991
|
-
logo: z$1.ZodOptional<z$1.ZodString>;
|
|
5992
|
-
isNoAuth: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
5993
|
-
connection: z$1.ZodOptional<z$1.ZodObject<{
|
|
5994
|
-
isActive: z$1.ZodBoolean;
|
|
5995
|
-
authConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
5996
|
-
id: z$1.ZodString;
|
|
5997
|
-
mode: z$1.ZodString;
|
|
5998
|
-
isComposioManaged: z$1.ZodBoolean;
|
|
5999
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6000
|
-
id: string;
|
|
6001
|
-
mode: string;
|
|
6002
|
-
isComposioManaged: boolean;
|
|
6003
|
-
}, {
|
|
6004
|
-
id: string;
|
|
6005
|
-
mode: string;
|
|
6006
|
-
isComposioManaged: boolean;
|
|
6007
|
-
}>>>;
|
|
6008
|
-
connectedAccount: z$1.ZodOptional<z$1.ZodObject<{
|
|
6009
|
-
id: z$1.ZodString;
|
|
6010
|
-
status: z$1.ZodString;
|
|
6011
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6012
|
-
status: string;
|
|
6013
|
-
id: string;
|
|
6014
|
-
}, {
|
|
6015
|
-
status: string;
|
|
6016
|
-
id: string;
|
|
6017
|
-
}>>;
|
|
6018
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6019
|
-
isActive: boolean;
|
|
6020
|
-
authConfig?: {
|
|
6021
|
-
id: string;
|
|
6022
|
-
mode: string;
|
|
6023
|
-
isComposioManaged: boolean;
|
|
6024
|
-
} | null | undefined;
|
|
6025
|
-
connectedAccount?: {
|
|
6026
|
-
status: string;
|
|
6027
|
-
id: string;
|
|
6028
|
-
} | undefined;
|
|
6029
|
-
}, {
|
|
6030
|
-
isActive: boolean;
|
|
6031
|
-
authConfig?: {
|
|
6032
|
-
id: string;
|
|
6033
|
-
mode: string;
|
|
6034
|
-
isComposioManaged: boolean;
|
|
6035
|
-
} | null | undefined;
|
|
6036
|
-
connectedAccount?: {
|
|
6037
|
-
status: string;
|
|
6038
|
-
id: string;
|
|
6039
|
-
} | undefined;
|
|
6040
|
-
}>>;
|
|
6041
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6042
|
-
slug: string;
|
|
6043
|
-
name: string;
|
|
6044
|
-
isNoAuth: boolean;
|
|
6045
|
-
logo?: string | undefined;
|
|
6046
|
-
connection?: {
|
|
6047
|
-
isActive: boolean;
|
|
6048
|
-
authConfig?: {
|
|
6049
|
-
id: string;
|
|
6050
|
-
mode: string;
|
|
6051
|
-
isComposioManaged: boolean;
|
|
6052
|
-
} | null | undefined;
|
|
6053
|
-
connectedAccount?: {
|
|
6054
|
-
status: string;
|
|
6055
|
-
id: string;
|
|
6056
|
-
} | undefined;
|
|
6057
|
-
} | undefined;
|
|
6058
|
-
}, {
|
|
6059
|
-
slug: string;
|
|
6060
|
-
name: string;
|
|
6061
|
-
logo?: string | undefined;
|
|
6062
|
-
isNoAuth?: boolean | undefined;
|
|
6063
|
-
connection?: {
|
|
6064
|
-
isActive: boolean;
|
|
6065
|
-
authConfig?: {
|
|
6066
|
-
id: string;
|
|
6067
|
-
mode: string;
|
|
6068
|
-
isComposioManaged: boolean;
|
|
6069
|
-
} | null | undefined;
|
|
6070
|
-
connectedAccount?: {
|
|
6071
|
-
status: string;
|
|
6072
|
-
id: string;
|
|
6073
|
-
} | undefined;
|
|
6074
|
-
} | undefined;
|
|
6075
|
-
}>;
|
|
6076
|
-
declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
6077
|
-
items: z$1.ZodArray<z$1.ZodObject<{
|
|
6078
|
-
slug: z$1.ZodString;
|
|
6079
|
-
name: z$1.ZodString;
|
|
6080
|
-
logo: z$1.ZodOptional<z$1.ZodString>;
|
|
6081
|
-
isNoAuth: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
6082
|
-
connection: z$1.ZodOptional<z$1.ZodObject<{
|
|
6083
|
-
isActive: z$1.ZodBoolean;
|
|
6084
|
-
authConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
6085
|
-
id: z$1.ZodString;
|
|
6086
|
-
mode: z$1.ZodString;
|
|
6087
|
-
isComposioManaged: z$1.ZodBoolean;
|
|
6088
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6089
|
-
id: string;
|
|
6090
|
-
mode: string;
|
|
6091
|
-
isComposioManaged: boolean;
|
|
6092
|
-
}, {
|
|
6093
|
-
id: string;
|
|
6094
|
-
mode: string;
|
|
6095
|
-
isComposioManaged: boolean;
|
|
6096
|
-
}>>>;
|
|
6097
|
-
connectedAccount: z$1.ZodOptional<z$1.ZodObject<{
|
|
6098
|
-
id: z$1.ZodString;
|
|
6099
|
-
status: z$1.ZodString;
|
|
6100
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6101
|
-
status: string;
|
|
6102
|
-
id: string;
|
|
6103
|
-
}, {
|
|
6104
|
-
status: string;
|
|
6105
|
-
id: string;
|
|
6106
|
-
}>>;
|
|
6107
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6108
|
-
isActive: boolean;
|
|
6109
|
-
authConfig?: {
|
|
6110
|
-
id: string;
|
|
6111
|
-
mode: string;
|
|
6112
|
-
isComposioManaged: boolean;
|
|
6113
|
-
} | null | undefined;
|
|
6114
|
-
connectedAccount?: {
|
|
6115
|
-
status: string;
|
|
6116
|
-
id: string;
|
|
6117
|
-
} | undefined;
|
|
6118
|
-
}, {
|
|
6119
|
-
isActive: boolean;
|
|
6120
|
-
authConfig?: {
|
|
6121
|
-
id: string;
|
|
6122
|
-
mode: string;
|
|
6123
|
-
isComposioManaged: boolean;
|
|
6124
|
-
} | null | undefined;
|
|
6125
|
-
connectedAccount?: {
|
|
6126
|
-
status: string;
|
|
6127
|
-
id: string;
|
|
6128
|
-
} | undefined;
|
|
6129
|
-
}>>;
|
|
6130
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6131
|
-
slug: string;
|
|
6132
|
-
name: string;
|
|
6133
|
-
isNoAuth: boolean;
|
|
6134
|
-
logo?: string | undefined;
|
|
6135
|
-
connection?: {
|
|
6136
|
-
isActive: boolean;
|
|
6137
|
-
authConfig?: {
|
|
6138
|
-
id: string;
|
|
6139
|
-
mode: string;
|
|
6140
|
-
isComposioManaged: boolean;
|
|
6141
|
-
} | null | undefined;
|
|
6142
|
-
connectedAccount?: {
|
|
6143
|
-
status: string;
|
|
6144
|
-
id: string;
|
|
6145
|
-
} | undefined;
|
|
6146
|
-
} | undefined;
|
|
6147
|
-
}, {
|
|
6148
|
-
slug: string;
|
|
6149
|
-
name: string;
|
|
6150
|
-
logo?: string | undefined;
|
|
6151
|
-
isNoAuth?: boolean | undefined;
|
|
6152
|
-
connection?: {
|
|
6153
|
-
isActive: boolean;
|
|
6154
|
-
authConfig?: {
|
|
6155
|
-
id: string;
|
|
6156
|
-
mode: string;
|
|
6157
|
-
isComposioManaged: boolean;
|
|
6158
|
-
} | null | undefined;
|
|
6159
|
-
connectedAccount?: {
|
|
6160
|
-
status: string;
|
|
6161
|
-
id: string;
|
|
6162
|
-
} | undefined;
|
|
6163
|
-
} | undefined;
|
|
6164
|
-
}>, "many">;
|
|
6165
|
-
nextCursor: z$1.ZodOptional<z$1.ZodString>;
|
|
6166
|
-
totalPages: z$1.ZodNumber;
|
|
6167
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6168
|
-
items: {
|
|
6169
|
-
slug: string;
|
|
6170
|
-
name: string;
|
|
6171
|
-
isNoAuth: boolean;
|
|
6172
|
-
logo?: string | undefined;
|
|
6173
|
-
connection?: {
|
|
6174
|
-
isActive: boolean;
|
|
6175
|
-
authConfig?: {
|
|
6176
|
-
id: string;
|
|
6177
|
-
mode: string;
|
|
6178
|
-
isComposioManaged: boolean;
|
|
6179
|
-
} | null | undefined;
|
|
6180
|
-
connectedAccount?: {
|
|
6181
|
-
status: string;
|
|
6182
|
-
id: string;
|
|
6183
|
-
} | undefined;
|
|
6184
|
-
} | undefined;
|
|
6185
|
-
}[];
|
|
6186
|
-
totalPages: number;
|
|
6187
|
-
nextCursor?: string | undefined;
|
|
6188
|
-
}, {
|
|
6189
|
-
items: {
|
|
6190
|
-
slug: string;
|
|
6191
|
-
name: string;
|
|
6192
|
-
logo?: string | undefined;
|
|
6193
|
-
isNoAuth?: boolean | undefined;
|
|
6194
|
-
connection?: {
|
|
6195
|
-
isActive: boolean;
|
|
6196
|
-
authConfig?: {
|
|
6197
|
-
id: string;
|
|
6198
|
-
mode: string;
|
|
6199
|
-
isComposioManaged: boolean;
|
|
6200
|
-
} | null | undefined;
|
|
6201
|
-
connectedAccount?: {
|
|
6202
|
-
status: string;
|
|
6203
|
-
id: string;
|
|
6204
|
-
} | undefined;
|
|
6205
|
-
} | undefined;
|
|
6206
|
-
}[];
|
|
6207
|
-
totalPages: number;
|
|
6208
|
-
nextCursor?: string | undefined;
|
|
6209
|
-
}>;
|
|
6210
|
-
type ToolkitConnectionsDetails = z$1.infer<typeof ToolkitConnectionsDetailsSchema>;
|
|
6211
|
-
type ToolkitConnectionState = z$1.infer<typeof ToolkitConnectionStateSchema>;
|
|
6212
|
-
declare const ToolRouterMCPServerConfigSchema: z$1.ZodObject<{
|
|
6213
|
-
type: z$1.ZodEnum<["http", "sse"]>;
|
|
6214
|
-
url: z$1.ZodString;
|
|
6215
|
-
headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
6216
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6217
|
-
type: "http" | "sse";
|
|
6218
|
-
url: string;
|
|
6219
|
-
headers?: Record<string, string> | undefined;
|
|
6220
|
-
}, {
|
|
6221
|
-
type: "http" | "sse";
|
|
6222
|
-
url: string;
|
|
6223
|
-
headers?: Record<string, string> | undefined;
|
|
6224
|
-
}>;
|
|
6225
|
-
type ToolRouterMCPServerConfig = z$1.infer<typeof ToolRouterMCPServerConfigSchema>;
|
|
6226
|
-
type ToolRouterToolsFn<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = (modifiers?: SessionMetaToolOptions) => Promise<ReturnType<TProvider['wrapTools']>>;
|
|
6227
|
-
type ToolRouterAuthorizeFn = (toolkit: string, options?: {
|
|
6228
|
-
callbackUrl?: string;
|
|
6229
|
-
}) => Promise<ConnectionRequest>;
|
|
6230
|
-
declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
6231
|
-
toolkits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
6232
|
-
nextCursor: z$1.ZodOptional<z$1.ZodString>;
|
|
6233
|
-
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
6234
|
-
isConnected: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
6235
|
-
search: z$1.ZodOptional<z$1.ZodString>;
|
|
6236
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
6237
|
-
toolkits?: string[] | undefined;
|
|
6238
|
-
limit?: number | undefined;
|
|
6239
|
-
nextCursor?: string | undefined;
|
|
6240
|
-
search?: string | undefined;
|
|
6241
|
-
isConnected?: boolean | undefined;
|
|
6242
|
-
}, {
|
|
6243
|
-
toolkits?: string[] | undefined;
|
|
6244
|
-
limit?: number | undefined;
|
|
6245
|
-
nextCursor?: string | undefined;
|
|
6246
|
-
search?: string | undefined;
|
|
6247
|
-
isConnected?: boolean | undefined;
|
|
6248
|
-
}>;
|
|
6249
|
-
type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
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
|
-
description: string;
|
|
6272
|
-
code: string;
|
|
6273
|
-
}, {
|
|
6274
|
-
description: string;
|
|
6275
|
-
code: 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
|
-
description: string;
|
|
6292
|
-
code: 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
|
-
description: string;
|
|
6309
|
-
code: 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
|
-
generateId: boolean;
|
|
6401
|
-
instructions: string;
|
|
6402
|
-
}, {
|
|
6403
|
-
id: string;
|
|
6404
|
-
generateId: boolean;
|
|
6405
|
-
instructions: string;
|
|
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
|
-
description: string;
|
|
6438
|
-
code: 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
|
-
generateId: boolean;
|
|
6468
|
-
instructions: string;
|
|
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
|
-
description: string;
|
|
6493
|
-
code: 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
|
-
generateId: boolean;
|
|
6523
|
-
instructions: string;
|
|
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
|
-
error: string | null;
|
|
6538
|
-
data: Record<string, unknown>;
|
|
6539
|
-
logId: string;
|
|
6540
|
-
}, {
|
|
6541
|
-
error: string | null;
|
|
6542
|
-
data: Record<string, unknown>;
|
|
6543
|
-
logId: string;
|
|
6544
|
-
}>;
|
|
6545
|
-
type ToolRouterSessionExecuteResponse = z$1.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
6546
|
-
/**
|
|
6547
|
-
* Experimental features response from session creation.
|
|
6548
|
-
* Only returned on session creation, not on GET.
|
|
6549
|
-
*/
|
|
6550
|
-
interface SessionExperimental {
|
|
6551
|
-
/**
|
|
6552
|
-
* The assistive system prompt to inject into your agent for optimal tool router usage.
|
|
6553
|
-
*/
|
|
6554
|
-
assistivePrompt?: string;
|
|
6555
|
-
}
|
|
6556
|
-
type ToolRouterSessionSearchFn = (params: {
|
|
6557
|
-
query: string;
|
|
6558
|
-
toolkits?: string[];
|
|
6559
|
-
}) => Promise<ToolRouterSessionSearchResponse>;
|
|
6560
|
-
type ToolRouterSessionExecuteFn = (toolSlug: string, arguments_?: Record<string, unknown>) => Promise<ToolRouterSessionExecuteResponse>;
|
|
6561
|
-
/** Session type returned by ToolRouter.create() and ToolRouter.use() */
|
|
6562
|
-
interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
6563
|
-
sessionId: string;
|
|
6564
|
-
mcp: ToolRouterMCPServerConfig;
|
|
6565
|
-
tools: ToolRouterToolsFn<TToolCollection, TTool, TProvider>;
|
|
6566
|
-
authorize: ToolRouterAuthorizeFn;
|
|
6567
|
-
toolkits: ToolRouterToolkitsFn;
|
|
6568
|
-
/** Search for tools by semantic use case */
|
|
6569
|
-
search: ToolRouterSessionSearchFn;
|
|
6570
|
-
/** Execute a tool within the session */
|
|
6571
|
-
execute: ToolRouterSessionExecuteFn;
|
|
6572
|
-
/** File mount operations (list, upload, download, delete) */
|
|
6573
|
-
files: ToolRouterSessionFilesMount;
|
|
6574
|
-
experimental?: SessionExperimental;
|
|
6575
|
-
}
|
|
6576
|
-
//#endregion
|
|
6577
4968
|
//#region src/models/ToolRouter.d.ts
|
|
6578
4969
|
declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
6579
4970
|
private client;
|
|
@@ -6589,30 +4980,18 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
6589
4980
|
*
|
|
6590
4981
|
* @example
|
|
6591
4982
|
* ```typescript
|
|
6592
|
-
* import { Composio } from '@composio/core';
|
|
4983
|
+
* import { Composio, experimental_createTool } from '@composio/core';
|
|
6593
4984
|
*
|
|
6594
4985
|
* const composio = new Composio();
|
|
6595
|
-
* const userId = 'user_123';
|
|
6596
4986
|
*
|
|
6597
|
-
* const session = await composio.
|
|
4987
|
+
* const session = await composio.create('user_123', {
|
|
6598
4988
|
* toolkits: ['gmail'],
|
|
6599
4989
|
* manageConnections: true,
|
|
6600
|
-
*
|
|
6601
|
-
*
|
|
6602
|
-
*
|
|
6603
|
-
* }
|
|
4990
|
+
* experimental: {
|
|
4991
|
+
* customTools: [myCustomTool],
|
|
4992
|
+
* customToolkits: [myToolkit],
|
|
6604
4993
|
* },
|
|
6605
|
-
* tags: ['readOnlyHint']
|
|
6606
4994
|
* });
|
|
6607
|
-
*
|
|
6608
|
-
* console.log(session.sessionId);
|
|
6609
|
-
* console.log(session.mcp.url);
|
|
6610
|
-
*
|
|
6611
|
-
* // Get tools formatted for your framework (requires provider)
|
|
6612
|
-
* const tools = await session.tools();
|
|
6613
|
-
*
|
|
6614
|
-
* // Check toolkit connection states
|
|
6615
|
-
* const toolkits = await session.toolkits();
|
|
6616
4995
|
* ```
|
|
6617
4996
|
*/
|
|
6618
4997
|
create(userId: string, config?: ToolRouterCreateSessionConfig): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
@@ -6633,7 +5012,7 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
6633
5012
|
* console.log(session.mcp.headers);
|
|
6634
5013
|
* ```
|
|
6635
5014
|
*/
|
|
6636
|
-
use(id: string): Promise<
|
|
5015
|
+
use(id: string): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
6637
5016
|
}
|
|
6638
5017
|
//#endregion
|
|
6639
5018
|
//#region src/composio.d.ts
|
|
@@ -6909,4 +5288,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
6909
5288
|
flush(): Promise<void>;
|
|
6910
5289
|
}
|
|
6911
5290
|
//#endregion
|
|
6912
|
-
export {
|
|
5291
|
+
export { AuthConfigCreationToolAccessConfigSchema as $, TriggerSubscribeParams as A, ToolkitAuthField as At, VerifyWebhookResult as B, ToolkitRetrieveCategoriesResponseSchema as Bt, TriggerInstanceUpsertParamsSchema as C, ToolKitItemSchema as Ct, TriggerStatusType as D, ToolKitMetaSchema as Dt, TriggerStatusEnum as E, ToolKitMeta as Et, TriggersTypeListResponse as F, ToolkitCategorySchema as Ft, WebhookPayloadV2 as G, ToolkitsListParamsSchema as Gt, WebhookPayloadSchema as H, ToolkitRetrieveResponseSchema as Ht, TriggersTypeListResponseSchema as I, ToolkitListParams as It, WebhookPayloadV3Schema as J, WebhookPayloadV2Schema as K, TriggersTypeRetrieveResponse as L, ToolkitMangedByEnum as Lt, TriggerTypeSchema as M, ToolkitAuthFieldsResponse as Mt, TriggersTypeListParams as N, ToolkitAuthFieldsResponseSchema as Nt, TriggerStatuses as O, ToolkitAuthConfigDetails as Ot, TriggersTypeListParamsSchema as P, ToolkitCategory as Pt, WebhookVersions as Q, VerifyWebhookParams as R, ToolkitMangedByEnumSchema as Rt, TriggerInstanceUpsertParams as S, ToolKitItem as St, TriggerInstanceUpsertResponseSchema as T, ToolKitListResponseSchema as Tt, WebhookPayloadV1 as U, ToolkitSortByEnum as Ut, WebhookPayload as V, ToolkitRetrieveResponse as Vt, WebhookPayloadV1Schema as W, ToolkitSortByEnumSchema as Wt, WebhookTriggerPayloadV3Schema as X, WebhookTriggerPayloadV3 as Y, WebhookVersion as Z, TriggerInstanceManageDeleteResponseSchema as _, CreateAuthConfigParamsSchema as _t, IncomingTriggerPayload as a, AuthConfigRetrieveResponseSchema as at, TriggerInstanceManageUpdateResponse as b, CreateComposioManagedAuthConfigParamsSchema as bt, TriggerEvent as c, AuthConfigTypes as ct, TriggerInstanceListActiveParamsSchema as d, AuthCustomConfigUpdateParamsSchema as dt, AuthConfigListParams as et, TriggerInstanceListActiveResponse as f, AuthDefaultConfigUpdateParamsSchema as ft, TriggerInstanceManageDeleteResponse as g, CreateAuthConfigParams as gt, TriggerInstanceListActiveResponseSchema as h, AuthSchemeTypes as ht, MCP as i, AuthConfigRetrieveResponse as it, TriggerType as j, ToolkitAuthFieldSchema as jt, TriggerSubscribeParamSchema as k, ToolkitAuthConfigDetailsSchema as kt, TriggerEventData as l, AuthConfigUpdateParams as lt, TriggerInstanceListActiveResponseItemSchema as m, AuthSchemeType as mt, ComposioConfig as n, AuthConfigListResponse as nt, IncomingTriggerPayloadSchema as o, AuthConfigToolAccessConfigSchema as ot, TriggerInstanceListActiveResponseItem as p, AuthSchemeEnum as pt, WebhookPayloadV3 as q, OpenAIProvider as r, AuthConfigListResponseSchema as rt, TriggerData as s, AuthConfigType as st, Composio$1 as t, AuthConfigListParamsSchema as tt, TriggerInstanceListActiveParams as u, AuthConfigUpdateParamsSchema as ut, TriggerInstanceManageUpdateParams as v, CreateAuthConfigResponse as vt, TriggerInstanceUpsertResponse as w, ToolKitListResponse as wt, TriggerInstanceManageUpdateResponseSchema as x, CreateCustomAuthConfigParamsSchema as xt, TriggerInstanceManageUpdateParamsSchema as y, CreateAuthConfigResponseSchema as yt, VerifyWebhookParamsSchema as z, ToolkitRetrieveCategoriesResponse as zt };
|