@composio/core 0.6.5 → 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.
Files changed (382) hide show
  1. package/dist/{buffer-Dy7Xi_sk.cjs → ComposioError-CYaI68Mo.cjs} +1 -63
  2. package/dist/{buffer-C1MwV-7j.mjs → ComposioError-ChkSdxqU.mjs} +3 -35
  3. package/dist/CustomTool-B3_zC62q.mjs +734 -0
  4. package/dist/CustomTool-Bl7vtddU.d.mts +66 -0
  5. package/dist/CustomTool-CMTb-q46.cjs +1005 -0
  6. package/dist/CustomTool-CrOHWVUC.d.cts +66 -0
  7. package/dist/{Telemetry-DRFfIuVS.cjs → Telemetry-A89k5RTv.cjs} +18 -17
  8. package/dist/{Telemetry-CHfDfthM.mjs → Telemetry-CjVa99gU.mjs} +2 -1
  9. package/dist/buffer-BjWptbNH.cjs +63 -0
  10. package/dist/buffer-yOtEsT4J.mjs +33 -0
  11. package/dist/{composio-BBswEUus.d.cts → composio-Cgg0LHCQ.d.cts} +239 -1864
  12. package/dist/{composio-BC28OAhR.d.mts → composio-DyBF5dV-.d.mts} +239 -1864
  13. package/dist/customTool.types-C3S5Q0_6.d.cts +1854 -0
  14. package/dist/customTool.types-CA8_4pl5.d.mts +1854 -0
  15. package/dist/experimental/index.cjs +5 -0
  16. package/dist/experimental/index.d.cts +3 -0
  17. package/dist/experimental/index.d.mts +4 -0
  18. package/dist/experimental/index.mjs +5 -0
  19. package/dist/{fileUtils.node-D1JLL4nZ.mjs → fileUtils.node-BOZnseMe.mjs} +2 -1
  20. package/dist/{fileUtils.node-BUe2eO0j.cjs → fileUtils.node-DF-AY0Td.cjs} +10 -9
  21. package/dist/index.cjs +549 -714
  22. package/dist/index.d.cts +62 -44
  23. package/dist/index.d.mts +62 -44
  24. package/dist/index.mjs +363 -534
  25. package/dist/models/Files.node.cjs +3 -3
  26. package/dist/models/Files.node.d.cts +1 -1
  27. package/dist/models/Files.node.d.mts +1 -1
  28. package/dist/models/Files.node.mjs +4 -4
  29. package/dist/platform/node.d.cts +1 -1
  30. package/dist/platform/node.d.mts +1 -1
  31. package/dist/platform/workerd.d.cts +1 -1
  32. package/dist/platform/workerd.d.mts +1 -1
  33. package/dist/{BaseProvider-SxQ_komh.d.cts → tool.types-Ci7pnud8.d.cts} +10904 -10905
  34. package/dist/{BaseProvider-CaOKzzuo.d.mts → tool.types-G0Kzw_GF.d.mts} +10904 -10905
  35. package/dist/{types-DY0bIIqG.d.mts → types-CyDYfq9G.d.mts} +2 -2
  36. package/dist/{types-CHz185FL.d.cts → types-DStxAk8G.d.cts} +2 -2
  37. package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
  38. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +4 -3
  39. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
  40. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +4 -3
  41. package/dist/utils/modifiers/FileToolModifier.node.cjs +8 -8
  42. package/dist/utils/modifiers/FileToolModifier.node.d.cts +1 -1
  43. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  44. package/dist/utils/modifiers/FileToolModifier.node.mjs +4 -4
  45. package/dist/utils/modifiers/FileToolModifier.workerd.cjs +1 -1
  46. package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
  47. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  48. package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
  49. package/package.json +17 -3
  50. package/generated/ably.ts +0 -20
  51. package/generated/accelo.ts +0 -8
  52. package/generated/acculynx.ts +0 -17
  53. package/generated/active_campaign.ts +0 -30
  54. package/generated/adobe.ts +0 -8
  55. package/generated/adyntel.ts +0 -12
  56. package/generated/aero_workflow.ts +0 -8
  57. package/generated/affinity.ts +0 -29
  58. package/generated/agencyzoom.ts +0 -108
  59. package/generated/ahrefs.ts +0 -49
  60. package/generated/airtable.ts +0 -26
  61. package/generated/alchemy.ts +0 -16
  62. package/generated/algolia.ts +0 -39
  63. package/generated/altoviz.ts +0 -18
  64. package/generated/amazon.ts +0 -8
  65. package/generated/amcards.ts +0 -11
  66. package/generated/amplitude.ts +0 -25
  67. package/generated/anthropic_administrator.ts +0 -13
  68. package/generated/apaleo.ts +0 -38
  69. package/generated/apollo.ts +0 -40
  70. package/generated/appdrag.ts +0 -8
  71. package/generated/appsflyer.ts +0 -8
  72. package/generated/asana.ts +0 -95
  73. package/generated/ashby.ts +0 -8
  74. package/generated/atlassian.ts +0 -8
  75. package/generated/attio.ts +0 -20
  76. package/generated/auth0.ts +0 -8
  77. package/generated/axonaut.ts +0 -8
  78. package/generated/bamboohr.ts +0 -168
  79. package/generated/bannerbear.ts +0 -17
  80. package/generated/baserow.ts +0 -11
  81. package/generated/battlenet.ts +0 -8
  82. package/generated/beeminder.ts +0 -14
  83. package/generated/bigmailer.ts +0 -12
  84. package/generated/bigml.ts +0 -15
  85. package/generated/bill.ts +0 -218
  86. package/generated/bitbucket.ts +0 -25
  87. package/generated/bitwarden.ts +0 -8
  88. package/generated/blackbaud.ts +0 -8
  89. package/generated/blackboard.ts +0 -323
  90. package/generated/boldsign.ts +0 -8
  91. package/generated/bolna.ts +0 -24
  92. package/generated/borneo.ts +0 -162
  93. package/generated/botbaba.ts +0 -8
  94. package/generated/box.ts +0 -282
  95. package/generated/braintree.ts +0 -8
  96. package/generated/brandfetch.ts +0 -15
  97. package/generated/breezy_hr.ts +0 -8
  98. package/generated/brevo.ts +0 -28
  99. package/generated/brex.ts +0 -8
  100. package/generated/brex_staging.ts +0 -8
  101. package/generated/brightpearl.ts +0 -8
  102. package/generated/brilliant_directories.ts +0 -15
  103. package/generated/browseai.ts +0 -18
  104. package/generated/browserbase_tool.ts +0 -10
  105. package/generated/browserhub.ts +0 -8
  106. package/generated/browserless.ts +0 -16
  107. package/generated/bubble.ts +0 -8
  108. package/generated/bugbug.ts +0 -13
  109. package/generated/builtwith.ts +0 -21
  110. package/generated/cal.ts +0 -150
  111. package/generated/calendly.ts +0 -51
  112. package/generated/canva.ts +0 -41
  113. package/generated/canvas.ts +0 -100
  114. package/generated/chatwork.ts +0 -17
  115. package/generated/chmeetings.ts +0 -8
  116. package/generated/clickup.ts +0 -153
  117. package/generated/clockify.ts +0 -23
  118. package/generated/close.ts +0 -15
  119. package/generated/cloudflare.ts +0 -10
  120. package/generated/coda.ts +0 -115
  121. package/generated/codeinterpreter.ts +0 -14
  122. package/generated/coinbase.ts +0 -15
  123. package/generated/coinmarketcal.ts +0 -8
  124. package/generated/composio.ts +0 -34
  125. package/generated/composio_search.ts +0 -22
  126. package/generated/confluence.ts +0 -199
  127. package/generated/contentful.ts +0 -12
  128. package/generated/crustdata.ts +0 -23
  129. package/generated/customer_io.ts +0 -8
  130. package/generated/cutt_ly.ts +0 -10
  131. package/generated/d2lbrightspace.ts +0 -54
  132. package/generated/dailybot.ts +0 -15
  133. package/generated/datadog.ts +0 -47
  134. package/generated/datagma.ts +0 -8
  135. package/generated/datarobot.ts +0 -8
  136. package/generated/deel.ts +0 -8
  137. package/generated/demio.ts +0 -8
  138. package/generated/dialpad.ts +0 -201
  139. package/generated/digicert.ts +0 -15
  140. package/generated/discord.ts +0 -17
  141. package/generated/discordbot.ts +0 -173
  142. package/generated/docmosis.ts +0 -8
  143. package/generated/docusign.ts +0 -351
  144. package/generated/dropbox.ts +0 -20
  145. package/generated/dropbox_sign.ts +0 -8
  146. package/generated/dynamics365.ts +0 -25
  147. package/generated/echtpost.ts +0 -10
  148. package/generated/elevenlabs.ts +0 -70
  149. package/generated/emailoctopus.ts +0 -16
  150. package/generated/enigma.ts +0 -11
  151. package/generated/entelligence.ts +0 -11
  152. package/generated/epic_games.ts +0 -8
  153. package/generated/eventbrite.ts +0 -12
  154. package/generated/exa.ts +0 -13
  155. package/generated/excel.ts +0 -34
  156. package/generated/exist.ts +0 -8
  157. package/generated/facebook.ts +0 -8
  158. package/generated/factorial.ts +0 -8
  159. package/generated/figma.ts +0 -59
  160. package/generated/finage.ts +0 -19
  161. package/generated/firecrawl.ts +0 -16
  162. package/generated/fireflies.ts +0 -21
  163. package/generated/fitbit.ts +0 -8
  164. package/generated/flutterwave.ts +0 -33
  165. package/generated/fomo.ts +0 -10
  166. package/generated/formcarry.ts +0 -10
  167. package/generated/formsite.ts +0 -14
  168. package/generated/foursquare.ts +0 -14
  169. package/generated/freshbooks.ts +0 -11
  170. package/generated/freshdesk.ts +0 -16
  171. package/generated/front.ts +0 -8
  172. package/generated/github.ts +0 -967
  173. package/generated/gitlab.ts +0 -82
  174. package/generated/gmail.d.ts +0 -86
  175. package/generated/gmail.js +0 -13
  176. package/generated/gmail.ts +0 -95
  177. package/generated/go_to_webinar.ts +0 -8
  178. package/generated/gong.ts +0 -63
  179. package/generated/google_analytics.ts +0 -13
  180. package/generated/google_maps.ts +0 -16
  181. package/generated/googleads.ts +0 -14
  182. package/generated/googlebigquery.ts +0 -10
  183. package/generated/googlecalendar.ts +0 -39
  184. package/generated/googledocs.ts +0 -41
  185. package/generated/googledrive.ts +0 -62
  186. package/generated/googlemeet.ts +0 -18
  187. package/generated/googlephotos.ts +0 -22
  188. package/generated/googlesheets.ts +0 -40
  189. package/generated/googleslides.ts +0 -8
  190. package/generated/googlesuper.ts +0 -230
  191. package/generated/googletasks.ts +0 -23
  192. package/generated/gorgias.ts +0 -41
  193. package/generated/gumroad.ts +0 -14
  194. package/generated/guru.ts +0 -8
  195. package/generated/hackernews.ts +0 -15
  196. package/generated/hackerrank_work.ts +0 -8
  197. package/generated/harvest.ts +0 -56
  198. package/generated/helcim.ts +0 -8
  199. package/generated/heygen.ts +0 -44
  200. package/generated/highlevel.ts +0 -8
  201. package/generated/hubspot.ts +0 -252
  202. package/generated/humanloop.ts +0 -13
  203. package/generated/icims_talent_cloud.ts +0 -8
  204. package/generated/idea_scale.ts +0 -8
  205. package/generated/index.ts +0 -151
  206. package/generated/insighto_ai.ts +0 -19
  207. package/generated/intercom.ts +0 -52
  208. package/generated/interzoid.ts +0 -8
  209. package/generated/jira.ts +0 -59
  210. package/generated/jotform.ts +0 -15
  211. package/generated/junglescout.ts +0 -15
  212. package/generated/keap.ts +0 -8
  213. package/generated/kibana.ts +0 -58
  214. package/generated/kit.ts +0 -38
  215. package/generated/klaviyo.ts +0 -240
  216. package/generated/klipfolio.ts +0 -20
  217. package/generated/kommo.ts +0 -24
  218. package/generated/lastpass.ts +0 -8
  219. package/generated/launch_darkly.ts +0 -16
  220. package/generated/leadfeeder.ts +0 -13
  221. package/generated/leadoku.ts +0 -10
  222. package/generated/lever.ts +0 -8
  223. package/generated/lever_sandbox.ts +0 -8
  224. package/generated/lexoffice.ts +0 -8
  225. package/generated/linear.ts +0 -31
  226. package/generated/linkedin.ts +0 -13
  227. package/generated/linkhut.ts +0 -14
  228. package/generated/linkup.ts +0 -11
  229. package/generated/listennotes.ts +0 -35
  230. package/generated/lmnt.ts +0 -16
  231. package/generated/lodgify.ts +0 -10
  232. package/generated/mailchimp.ts +0 -285
  233. package/generated/mailerlite.ts +0 -8
  234. package/generated/maintainx.ts +0 -20
  235. package/generated/make.ts +0 -12
  236. package/generated/mboum.ts +0 -8
  237. package/generated/mem0.ts +0 -52
  238. package/generated/metaads.ts +0 -25
  239. package/generated/metatextai.ts +0 -8
  240. package/generated/microsoft_clarity.ts +0 -10
  241. package/generated/microsoft_teams.ts +0 -22
  242. package/generated/microsoft_tenant.ts +0 -8
  243. package/generated/miro.ts +0 -23
  244. package/generated/mixpanel.ts +0 -30
  245. package/generated/mocean.ts +0 -8
  246. package/generated/monday.ts +0 -30
  247. package/generated/mopinion.ts +0 -8
  248. package/generated/more_trees.ts +0 -10
  249. package/generated/moxie.ts +0 -8
  250. package/generated/moz.ts +0 -8
  251. package/generated/mural.ts +0 -14
  252. package/generated/nasdaq.ts +0 -15
  253. package/generated/ncscale.ts +0 -8
  254. package/generated/neon.ts +0 -78
  255. package/generated/netsuite.ts +0 -8
  256. package/generated/nextdns.ts +0 -11
  257. package/generated/ngrok.ts +0 -18
  258. package/generated/notion.ts +0 -40
  259. package/generated/oncehub.ts +0 -8
  260. package/generated/one_drive.ts +0 -49
  261. package/generated/onepage.ts +0 -11
  262. package/generated/open_sea.ts +0 -33
  263. package/generated/outlook.ts +0 -37
  264. package/generated/pagerduty.ts +0 -362
  265. package/generated/pandadoc.ts +0 -23
  266. package/generated/peopledatalabs.ts +0 -24
  267. package/generated/perplexityai.ts +0 -10
  268. package/generated/piggy.ts +0 -8
  269. package/generated/pipedrive.ts +0 -288
  270. package/generated/placekey.ts +0 -12
  271. package/generated/posthog.ts +0 -367
  272. package/generated/precoro.ts +0 -8
  273. package/generated/printnode.ts +0 -8
  274. package/generated/process_street.ts +0 -14
  275. package/generated/productboard.ts +0 -8
  276. package/generated/qualaroo.ts +0 -8
  277. package/generated/quickbooks.ts +0 -22
  278. package/generated/rafflys.ts +0 -8
  279. package/generated/ragic.ts +0 -10
  280. package/generated/ramp.ts +0 -17
  281. package/generated/ravenseotools.ts +0 -8
  282. package/generated/recallai.ts +0 -17
  283. package/generated/reddit.ts +0 -19
  284. package/generated/resend.ts +0 -27
  285. package/generated/retellai.ts +0 -19
  286. package/generated/retently.ts +0 -24
  287. package/generated/ring_central.ts +0 -8
  288. package/generated/rippling.ts +0 -8
  289. package/generated/rocket_reach.ts +0 -8
  290. package/generated/rocketlane.ts +0 -42
  291. package/generated/rootly.ts +0 -12
  292. package/generated/rosette_text_analytics.ts +0 -12
  293. package/generated/sage.ts +0 -8
  294. package/generated/salesforce.ts +0 -46
  295. package/generated/scrape_do.ts +0 -28
  296. package/generated/scrapingant.ts +0 -14
  297. package/generated/screenshotone.ts +0 -10
  298. package/generated/seismic.ts +0 -8
  299. package/generated/semanticscholar.ts +0 -23
  300. package/generated/semrush.ts +0 -45
  301. package/generated/sendgrid.ts +0 -384
  302. package/generated/sentry.ts +0 -185
  303. package/generated/serpapi.ts +0 -32
  304. package/generated/servicem8.ts +0 -37
  305. package/generated/servicenow.ts +0 -14
  306. package/generated/share_point.ts +0 -15
  307. package/generated/shopify.ts +0 -37
  308. package/generated/shortcut.ts +0 -131
  309. package/generated/simplesat.ts +0 -11
  310. package/generated/slack.d.ts +0 -16
  311. package/generated/slack.js +0 -11
  312. package/generated/slack.ts +0 -24
  313. package/generated/slackbot.ts +0 -205
  314. package/generated/smartrecruiters.ts +0 -8
  315. package/generated/smugmug.ts +0 -14
  316. package/generated/snowflake.ts +0 -15
  317. package/generated/sourcegraph.ts +0 -16
  318. package/generated/square.ts +0 -8
  319. package/generated/stack_exchange.ts +0 -17
  320. package/generated/starton.ts +0 -11
  321. package/generated/storeganise.ts +0 -12
  322. package/generated/stripe.ts +0 -50
  323. package/generated/supabase.ts +0 -86
  324. package/generated/survey_monkey.ts +0 -8
  325. package/generated/tally.ts +0 -25
  326. package/generated/tapfiliate.ts +0 -11
  327. package/generated/tapform.ts +0 -8
  328. package/generated/tavily.ts +0 -10
  329. package/generated/terminus.ts +0 -8
  330. package/generated/text_to_pdf.ts +0 -10
  331. package/generated/textrazor.ts +0 -22
  332. package/generated/timecamp.ts +0 -10
  333. package/generated/timekit.ts +0 -8
  334. package/generated/timely.ts +0 -11
  335. package/generated/tinypng.ts +0 -15
  336. package/generated/tinyurl.ts +0 -10
  337. package/generated/tisane.ts +0 -15
  338. package/generated/todoist.ts +0 -19
  339. package/generated/toneden.ts +0 -8
  340. package/generated/tpscheck.ts +0 -10
  341. package/generated/trello.ts +0 -360
  342. package/generated/twitch.ts +0 -8
  343. package/generated/twitter.ts +0 -82
  344. package/generated/twitter_media.ts +0 -10
  345. package/generated/typefully.ts +0 -14
  346. package/generated/venly.ts +0 -8
  347. package/generated/vero.ts +0 -8
  348. package/generated/visme.ts +0 -8
  349. package/generated/waboxapp.ts +0 -8
  350. package/generated/wakatime.ts +0 -8
  351. package/generated/wave_accounting.ts +0 -8
  352. package/generated/weathermap.ts +0 -10
  353. package/generated/webex.ts +0 -37
  354. package/generated/webflow.ts +0 -30
  355. package/generated/whatsapp.ts +0 -14
  356. package/generated/wiz.ts +0 -8
  357. package/generated/workiom.ts +0 -12
  358. package/generated/wrike.ts +0 -47
  359. package/generated/xero.ts +0 -13
  360. package/generated/yandex.ts +0 -13
  361. package/generated/ynab.ts +0 -8
  362. package/generated/yousearch.ts +0 -10
  363. package/generated/youtube.ts +0 -26
  364. package/generated/zendesk.ts +0 -23
  365. package/generated/zenrows.ts +0 -25
  366. package/generated/zenserp.ts +0 -20
  367. package/generated/zoho.ts +0 -33
  368. package/generated/zoho_bigin.ts +0 -21
  369. package/generated/zoho_books.ts +0 -8
  370. package/generated/zoho_desk.ts +0 -8
  371. package/generated/zoho_inventory.ts +0 -8
  372. package/generated/zoho_invoice.ts +0 -15
  373. package/generated/zoho_mail.ts +0 -8
  374. package/generated/zoom.ts +0 -181
  375. package/generated/zoominfo.ts +0 -26
  376. /package/dist/{FileToolModifier.utils.neutral-BN_L8usp.mjs → FileToolModifier.utils.neutral-BcIR-cVE.mjs} +0 -0
  377. /package/dist/{FileToolModifier.utils.neutral-Bcl7LVf4.cjs → FileToolModifier.utils.neutral-BdMpiyie.cjs} +0 -0
  378. /package/dist/{chunk-Dx2NuYGI.mjs → chunk-CWQeghP5.mjs} +0 -0
  379. /package/dist/{files.types-BDqIUdfP.d.mts → files.types-BXDWA_zS.d.mts} +0 -0
  380. /package/dist/{files.types-nK6eTNnc.d.cts → files.types-lo4zZd87.d.cts} +0 -0
  381. /package/dist/{types-BF2OQZRP.d.cts → types-CXR6l5Sj.d.mts} +0 -0
  382. /package/dist/{types-Cvt_yFsu.d.mts → types-DiL6FAZi.d.cts} +0 -0
@@ -1,7 +1,8 @@
1
- import { $t as SessionExecuteMetaModifiers, En as ToolRetrievalOptions, Nn as ToolkitVersionParam, Qt as ProviderOptions, X as McpServerGetResponse, Xt as ExecuteToolModifiers, _n as ToolExecuteResponse$1, at as ExecuteToolFnOptions, bn as ToolListParams, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, fn as Tool, hn as ToolExecuteParams, n as BaseComposioProvider, pn as ToolExecuteMetaParams, r as BaseNonAgenticProvider, tt as McpUrlResponse, ut as ConnectionData, wn as ToolProxyParams, yn as ToolList } from "./BaseProvider-SxQ_komh.cjs";
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 { ToolExecuteResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
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.
@@ -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>;
@@ -592,31 +554,31 @@ declare const ToolKitMetaSchema: z.ZodObject<{
592
554
  updatedAt: z.ZodOptional<z.ZodString>;
593
555
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
594
556
  }, "strip", z.ZodTypeAny, {
595
- logo?: string | undefined;
596
557
  description?: string | undefined;
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
- logo?: string | undefined;
609
570
  description?: string | undefined;
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>;
@@ -641,73 +603,73 @@ declare const ToolKitItemSchema: z.ZodObject<{
641
603
  updatedAt: z.ZodOptional<z.ZodString>;
642
604
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
643
605
  }, "strip", z.ZodTypeAny, {
644
- logo?: string | undefined;
645
606
  description?: string | undefined;
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
- logo?: string | undefined;
658
619
  description?: string | undefined;
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
- logo?: string | undefined;
679
640
  description?: string | undefined;
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
- logo?: string | undefined;
700
661
  description?: string | undefined;
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>;
@@ -737,73 +699,73 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
737
699
  updatedAt: z.ZodOptional<z.ZodString>;
738
700
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
739
701
  }, "strip", z.ZodTypeAny, {
740
- logo?: string | undefined;
741
702
  description?: string | undefined;
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
- logo?: string | undefined;
754
715
  description?: string | undefined;
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
- logo?: string | undefined;
775
736
  description?: string | undefined;
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
- logo?: string | undefined;
796
757
  description?: string | undefined;
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;
@@ -825,15 +787,15 @@ declare const ToolkitAuthFieldSchema: z.ZodObject<{
825
787
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
826
788
  }, "strip", z.ZodTypeAny, {
827
789
  name: string;
828
- type: string;
829
790
  description: string;
791
+ type: string;
830
792
  required: boolean;
831
793
  displayName: string;
832
794
  default?: string | null | undefined;
833
795
  }, {
834
796
  name: string;
835
- type: string;
836
797
  description: string;
798
+ type: string;
837
799
  required: boolean;
838
800
  displayName: string;
839
801
  default?: string | null | undefined;
@@ -852,15 +814,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
852
814
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
853
815
  }, "strip", z.ZodTypeAny, {
854
816
  name: string;
855
- type: string;
856
817
  description: string;
818
+ type: string;
857
819
  required: boolean;
858
820
  displayName: string;
859
821
  default?: string | null | undefined;
860
822
  }, {
861
823
  name: string;
862
- type: string;
863
824
  description: string;
825
+ type: string;
864
826
  required: boolean;
865
827
  displayName: string;
866
828
  default?: string | null | undefined;
@@ -874,15 +836,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
874
836
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
837
  }, "strip", z.ZodTypeAny, {
876
838
  name: string;
877
- type: string;
878
839
  description: string;
840
+ type: string;
879
841
  required: boolean;
880
842
  displayName: string;
881
843
  default?: string | null | undefined;
882
844
  }, {
883
845
  name: string;
884
- type: string;
885
846
  description: string;
847
+ type: string;
886
848
  required: boolean;
887
849
  displayName: string;
888
850
  default?: string | null | undefined;
@@ -890,16 +852,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
890
852
  }, "strip", z.ZodTypeAny, {
891
853
  required: {
892
854
  name: string;
893
- type: string;
894
855
  description: string;
856
+ type: string;
895
857
  required: boolean;
896
858
  displayName: string;
897
859
  default?: string | null | undefined;
898
860
  }[];
899
861
  optional: {
900
862
  name: string;
901
- type: string;
902
863
  description: string;
864
+ type: string;
903
865
  required: boolean;
904
866
  displayName: string;
905
867
  default?: string | null | undefined;
@@ -907,16 +869,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
907
869
  }, {
908
870
  required: {
909
871
  name: string;
910
- type: string;
911
872
  description: string;
873
+ type: string;
912
874
  required: boolean;
913
875
  displayName: string;
914
876
  default?: string | null | undefined;
915
877
  }[];
916
878
  optional: {
917
879
  name: string;
918
- type: string;
919
880
  description: string;
881
+ type: string;
920
882
  required: boolean;
921
883
  displayName: string;
922
884
  default?: string | null | undefined;
@@ -932,15 +894,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
932
894
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
895
  }, "strip", z.ZodTypeAny, {
934
896
  name: string;
935
- type: string;
936
897
  description: string;
898
+ type: string;
937
899
  required: boolean;
938
900
  displayName: string;
939
901
  default?: string | null | undefined;
940
902
  }, {
941
903
  name: string;
942
- type: string;
943
904
  description: string;
905
+ type: string;
944
906
  required: boolean;
945
907
  displayName: string;
946
908
  default?: string | null | undefined;
@@ -954,15 +916,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
954
916
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
917
  }, "strip", z.ZodTypeAny, {
956
918
  name: string;
957
- type: string;
958
919
  description: string;
920
+ type: string;
959
921
  required: boolean;
960
922
  displayName: string;
961
923
  default?: string | null | undefined;
962
924
  }, {
963
925
  name: string;
964
- type: string;
965
926
  description: string;
927
+ type: string;
966
928
  required: boolean;
967
929
  displayName: string;
968
930
  default?: string | null | undefined;
@@ -970,16 +932,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
970
932
  }, "strip", z.ZodTypeAny, {
971
933
  required: {
972
934
  name: string;
973
- type: string;
974
935
  description: string;
936
+ type: string;
975
937
  required: boolean;
976
938
  displayName: string;
977
939
  default?: string | null | undefined;
978
940
  }[];
979
941
  optional: {
980
942
  name: string;
981
- type: string;
982
943
  description: string;
944
+ type: string;
983
945
  required: boolean;
984
946
  displayName: string;
985
947
  default?: string | null | undefined;
@@ -987,16 +949,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
987
949
  }, {
988
950
  required: {
989
951
  name: string;
990
- type: string;
991
952
  description: string;
953
+ type: string;
992
954
  required: boolean;
993
955
  displayName: string;
994
956
  default?: string | null | undefined;
995
957
  }[];
996
958
  optional: {
997
959
  name: string;
998
- type: string;
999
960
  description: string;
961
+ type: string;
1000
962
  required: boolean;
1001
963
  displayName: string;
1002
964
  default?: string | null | undefined;
@@ -1006,16 +968,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1006
968
  authConfigCreation: {
1007
969
  required: {
1008
970
  name: string;
1009
- type: string;
1010
971
  description: string;
972
+ type: string;
1011
973
  required: boolean;
1012
974
  displayName: string;
1013
975
  default?: string | null | undefined;
1014
976
  }[];
1015
977
  optional: {
1016
978
  name: string;
1017
- type: string;
1018
979
  description: string;
980
+ type: string;
1019
981
  required: boolean;
1020
982
  displayName: string;
1021
983
  default?: string | null | undefined;
@@ -1024,16 +986,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1024
986
  connectedAccountInitiation: {
1025
987
  required: {
1026
988
  name: string;
1027
- type: string;
1028
989
  description: string;
990
+ type: string;
1029
991
  required: boolean;
1030
992
  displayName: string;
1031
993
  default?: string | null | undefined;
1032
994
  }[];
1033
995
  optional: {
1034
996
  name: string;
1035
- type: string;
1036
997
  description: string;
998
+ type: string;
1037
999
  required: boolean;
1038
1000
  displayName: string;
1039
1001
  default?: string | null | undefined;
@@ -1043,16 +1005,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1043
1005
  authConfigCreation: {
1044
1006
  required: {
1045
1007
  name: string;
1046
- type: string;
1047
1008
  description: string;
1009
+ type: string;
1048
1010
  required: boolean;
1049
1011
  displayName: string;
1050
1012
  default?: string | null | undefined;
1051
1013
  }[];
1052
1014
  optional: {
1053
1015
  name: string;
1054
- type: string;
1055
1016
  description: string;
1017
+ type: string;
1056
1018
  required: boolean;
1057
1019
  displayName: string;
1058
1020
  default?: string | null | undefined;
@@ -1061,16 +1023,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1061
1023
  connectedAccountInitiation: {
1062
1024
  required: {
1063
1025
  name: string;
1064
- type: string;
1065
1026
  description: string;
1027
+ type: string;
1066
1028
  required: boolean;
1067
1029
  displayName: string;
1068
1030
  default?: string | null | undefined;
1069
1031
  }[];
1070
1032
  optional: {
1071
1033
  name: string;
1072
- type: string;
1073
1034
  description: string;
1035
+ type: string;
1074
1036
  required: boolean;
1075
1037
  displayName: string;
1076
1038
  default?: string | null | undefined;
@@ -1091,16 +1053,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1091
1053
  authConfigCreation: {
1092
1054
  required: {
1093
1055
  name: string;
1094
- type: string;
1095
1056
  description: string;
1057
+ type: string;
1096
1058
  required: boolean;
1097
1059
  displayName: string;
1098
1060
  default?: string | null | undefined;
1099
1061
  }[];
1100
1062
  optional: {
1101
1063
  name: string;
1102
- type: string;
1103
1064
  description: string;
1065
+ type: string;
1104
1066
  required: boolean;
1105
1067
  displayName: string;
1106
1068
  default?: string | null | undefined;
@@ -1109,16 +1071,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1109
1071
  connectedAccountInitiation: {
1110
1072
  required: {
1111
1073
  name: string;
1112
- type: string;
1113
1074
  description: string;
1075
+ type: string;
1114
1076
  required: boolean;
1115
1077
  displayName: string;
1116
1078
  default?: string | null | undefined;
1117
1079
  }[];
1118
1080
  optional: {
1119
1081
  name: string;
1120
- type: string;
1121
1082
  description: string;
1083
+ type: string;
1122
1084
  required: boolean;
1123
1085
  displayName: string;
1124
1086
  default?: string | null | undefined;
@@ -1135,16 +1097,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1135
1097
  authConfigCreation: {
1136
1098
  required: {
1137
1099
  name: string;
1138
- type: string;
1139
1100
  description: string;
1101
+ type: string;
1140
1102
  required: boolean;
1141
1103
  displayName: string;
1142
1104
  default?: string | null | undefined;
1143
1105
  }[];
1144
1106
  optional: {
1145
1107
  name: string;
1146
- type: string;
1147
1108
  description: string;
1109
+ type: string;
1148
1110
  required: boolean;
1149
1111
  displayName: string;
1150
1112
  default?: string | null | undefined;
@@ -1153,16 +1115,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1153
1115
  connectedAccountInitiation: {
1154
1116
  required: {
1155
1117
  name: string;
1156
- type: string;
1157
1118
  description: string;
1119
+ type: string;
1158
1120
  required: boolean;
1159
1121
  displayName: string;
1160
1122
  default?: string | null | undefined;
1161
1123
  }[];
1162
1124
  optional: {
1163
1125
  name: string;
1164
- type: string;
1165
1126
  description: string;
1127
+ type: string;
1166
1128
  required: boolean;
1167
1129
  displayName: string;
1168
1130
  default?: string | null | 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>;
@@ -1196,31 +1158,31 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1196
1158
  updatedAt: z.ZodOptional<z.ZodString>;
1197
1159
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1198
1160
  }, "strip", z.ZodTypeAny, {
1199
- logo?: string | undefined;
1200
1161
  description?: string | undefined;
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
- logo?: string | undefined;
1213
1174
  description?: string | undefined;
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">>;
@@ -1238,15 +1200,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1238
1200
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1239
1201
  }, "strip", z.ZodTypeAny, {
1240
1202
  name: string;
1241
- type: string;
1242
1203
  description: string;
1204
+ type: string;
1243
1205
  required: boolean;
1244
1206
  displayName: string;
1245
1207
  default?: string | null | undefined;
1246
1208
  }, {
1247
1209
  name: string;
1248
- type: string;
1249
1210
  description: string;
1211
+ type: string;
1250
1212
  required: boolean;
1251
1213
  displayName: string;
1252
1214
  default?: string | null | undefined;
@@ -1260,15 +1222,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1260
1222
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1261
1223
  }, "strip", z.ZodTypeAny, {
1262
1224
  name: string;
1263
- type: string;
1264
1225
  description: string;
1226
+ type: string;
1265
1227
  required: boolean;
1266
1228
  displayName: string;
1267
1229
  default?: string | null | undefined;
1268
1230
  }, {
1269
1231
  name: string;
1270
- type: string;
1271
1232
  description: string;
1233
+ type: string;
1272
1234
  required: boolean;
1273
1235
  displayName: string;
1274
1236
  default?: string | null | undefined;
@@ -1276,16 +1238,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1276
1238
  }, "strip", z.ZodTypeAny, {
1277
1239
  required: {
1278
1240
  name: string;
1279
- type: string;
1280
1241
  description: string;
1242
+ type: string;
1281
1243
  required: boolean;
1282
1244
  displayName: string;
1283
1245
  default?: string | null | undefined;
1284
1246
  }[];
1285
1247
  optional: {
1286
1248
  name: string;
1287
- type: string;
1288
1249
  description: string;
1250
+ type: string;
1289
1251
  required: boolean;
1290
1252
  displayName: string;
1291
1253
  default?: string | null | undefined;
@@ -1293,16 +1255,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1293
1255
  }, {
1294
1256
  required: {
1295
1257
  name: string;
1296
- type: string;
1297
1258
  description: string;
1259
+ type: string;
1298
1260
  required: boolean;
1299
1261
  displayName: string;
1300
1262
  default?: string | null | undefined;
1301
1263
  }[];
1302
1264
  optional: {
1303
1265
  name: string;
1304
- type: string;
1305
1266
  description: string;
1267
+ type: string;
1306
1268
  required: boolean;
1307
1269
  displayName: string;
1308
1270
  default?: string | null | undefined;
@@ -1318,15 +1280,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1318
1280
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1319
1281
  }, "strip", z.ZodTypeAny, {
1320
1282
  name: string;
1321
- type: string;
1322
1283
  description: string;
1284
+ type: string;
1323
1285
  required: boolean;
1324
1286
  displayName: string;
1325
1287
  default?: string | null | undefined;
1326
1288
  }, {
1327
1289
  name: string;
1328
- type: string;
1329
1290
  description: string;
1291
+ type: string;
1330
1292
  required: boolean;
1331
1293
  displayName: string;
1332
1294
  default?: string | null | undefined;
@@ -1340,15 +1302,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1340
1302
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
1303
  }, "strip", z.ZodTypeAny, {
1342
1304
  name: string;
1343
- type: string;
1344
1305
  description: string;
1306
+ type: string;
1345
1307
  required: boolean;
1346
1308
  displayName: string;
1347
1309
  default?: string | null | undefined;
1348
1310
  }, {
1349
1311
  name: string;
1350
- type: string;
1351
1312
  description: string;
1313
+ type: string;
1352
1314
  required: boolean;
1353
1315
  displayName: string;
1354
1316
  default?: string | null | undefined;
@@ -1356,16 +1318,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1356
1318
  }, "strip", z.ZodTypeAny, {
1357
1319
  required: {
1358
1320
  name: string;
1359
- type: string;
1360
1321
  description: string;
1322
+ type: string;
1361
1323
  required: boolean;
1362
1324
  displayName: string;
1363
1325
  default?: string | null | undefined;
1364
1326
  }[];
1365
1327
  optional: {
1366
1328
  name: string;
1367
- type: string;
1368
1329
  description: string;
1330
+ type: string;
1369
1331
  required: boolean;
1370
1332
  displayName: string;
1371
1333
  default?: string | null | undefined;
@@ -1373,16 +1335,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1373
1335
  }, {
1374
1336
  required: {
1375
1337
  name: string;
1376
- type: string;
1377
1338
  description: string;
1339
+ type: string;
1378
1340
  required: boolean;
1379
1341
  displayName: string;
1380
1342
  default?: string | null | undefined;
1381
1343
  }[];
1382
1344
  optional: {
1383
1345
  name: string;
1384
- type: string;
1385
1346
  description: string;
1347
+ type: string;
1386
1348
  required: boolean;
1387
1349
  displayName: string;
1388
1350
  default?: string | null | undefined;
@@ -1392,16 +1354,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1392
1354
  authConfigCreation: {
1393
1355
  required: {
1394
1356
  name: string;
1395
- type: string;
1396
1357
  description: string;
1358
+ type: string;
1397
1359
  required: boolean;
1398
1360
  displayName: string;
1399
1361
  default?: string | null | undefined;
1400
1362
  }[];
1401
1363
  optional: {
1402
1364
  name: string;
1403
- type: string;
1404
1365
  description: string;
1366
+ type: string;
1405
1367
  required: boolean;
1406
1368
  displayName: string;
1407
1369
  default?: string | null | undefined;
@@ -1410,16 +1372,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1410
1372
  connectedAccountInitiation: {
1411
1373
  required: {
1412
1374
  name: string;
1413
- type: string;
1414
1375
  description: string;
1376
+ type: string;
1415
1377
  required: boolean;
1416
1378
  displayName: string;
1417
1379
  default?: string | null | undefined;
1418
1380
  }[];
1419
1381
  optional: {
1420
1382
  name: string;
1421
- type: string;
1422
1383
  description: string;
1384
+ type: string;
1423
1385
  required: boolean;
1424
1386
  displayName: string;
1425
1387
  default?: string | null | undefined;
@@ -1429,16 +1391,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1429
1391
  authConfigCreation: {
1430
1392
  required: {
1431
1393
  name: string;
1432
- type: string;
1433
1394
  description: string;
1395
+ type: string;
1434
1396
  required: boolean;
1435
1397
  displayName: string;
1436
1398
  default?: string | null | undefined;
1437
1399
  }[];
1438
1400
  optional: {
1439
1401
  name: string;
1440
- type: string;
1441
1402
  description: string;
1403
+ type: string;
1442
1404
  required: boolean;
1443
1405
  displayName: string;
1444
1406
  default?: string | null | undefined;
@@ -1447,16 +1409,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1447
1409
  connectedAccountInitiation: {
1448
1410
  required: {
1449
1411
  name: string;
1450
- type: string;
1451
1412
  description: string;
1413
+ type: string;
1452
1414
  required: boolean;
1453
1415
  displayName: string;
1454
1416
  default?: string | null | undefined;
1455
1417
  }[];
1456
1418
  optional: {
1457
1419
  name: string;
1458
- type: string;
1459
1420
  description: string;
1421
+ type: string;
1460
1422
  required: boolean;
1461
1423
  displayName: string;
1462
1424
  default?: string | null | undefined;
@@ -1477,16 +1439,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1477
1439
  authConfigCreation: {
1478
1440
  required: {
1479
1441
  name: string;
1480
- type: string;
1481
1442
  description: string;
1443
+ type: string;
1482
1444
  required: boolean;
1483
1445
  displayName: string;
1484
1446
  default?: string | null | undefined;
1485
1447
  }[];
1486
1448
  optional: {
1487
1449
  name: string;
1488
- type: string;
1489
1450
  description: string;
1451
+ type: string;
1490
1452
  required: boolean;
1491
1453
  displayName: string;
1492
1454
  default?: string | null | undefined;
@@ -1495,16 +1457,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1495
1457
  connectedAccountInitiation: {
1496
1458
  required: {
1497
1459
  name: string;
1498
- type: string;
1499
1460
  description: string;
1461
+ type: string;
1500
1462
  required: boolean;
1501
1463
  displayName: string;
1502
1464
  default?: string | null | undefined;
1503
1465
  }[];
1504
1466
  optional: {
1505
1467
  name: string;
1506
- type: string;
1507
1468
  description: string;
1469
+ type: string;
1508
1470
  required: boolean;
1509
1471
  displayName: string;
1510
1472
  default?: string | null | undefined;
@@ -1521,16 +1483,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1521
1483
  authConfigCreation: {
1522
1484
  required: {
1523
1485
  name: string;
1524
- type: string;
1525
1486
  description: string;
1487
+ type: string;
1526
1488
  required: boolean;
1527
1489
  displayName: string;
1528
1490
  default?: string | null | undefined;
1529
1491
  }[];
1530
1492
  optional: {
1531
1493
  name: string;
1532
- type: string;
1533
1494
  description: string;
1495
+ type: string;
1534
1496
  required: boolean;
1535
1497
  displayName: string;
1536
1498
  default?: string | null | undefined;
@@ -1539,16 +1501,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1539
1501
  connectedAccountInitiation: {
1540
1502
  required: {
1541
1503
  name: string;
1542
- type: string;
1543
1504
  description: string;
1505
+ type: string;
1544
1506
  required: boolean;
1545
1507
  displayName: string;
1546
1508
  default?: string | null | undefined;
1547
1509
  }[];
1548
1510
  optional: {
1549
1511
  name: string;
1550
- type: string;
1551
1512
  description: string;
1513
+ type: string;
1552
1514
  required: boolean;
1553
1515
  displayName: string;
1554
1516
  default?: string | null | undefined;
@@ -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
- logo?: string | undefined;
1570
1531
  description?: string | undefined;
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;
@@ -1589,16 +1551,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1589
1551
  authConfigCreation: {
1590
1552
  required: {
1591
1553
  name: string;
1592
- type: string;
1593
1554
  description: string;
1555
+ type: string;
1594
1556
  required: boolean;
1595
1557
  displayName: string;
1596
1558
  default?: string | null | undefined;
1597
1559
  }[];
1598
1560
  optional: {
1599
1561
  name: string;
1600
- type: string;
1601
1562
  description: string;
1563
+ type: string;
1602
1564
  required: boolean;
1603
1565
  displayName: string;
1604
1566
  default?: string | null | undefined;
@@ -1607,16 +1569,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1607
1569
  connectedAccountInitiation: {
1608
1570
  required: {
1609
1571
  name: string;
1610
- type: string;
1611
1572
  description: string;
1573
+ type: string;
1612
1574
  required: boolean;
1613
1575
  displayName: string;
1614
1576
  default?: string | null | undefined;
1615
1577
  }[];
1616
1578
  optional: {
1617
1579
  name: string;
1618
- type: string;
1619
1580
  description: string;
1581
+ type: string;
1620
1582
  required: boolean;
1621
1583
  displayName: string;
1622
1584
  default?: string | null | 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
- logo?: string | undefined;
1637
1598
  description?: string | undefined;
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;
@@ -1656,16 +1618,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1656
1618
  authConfigCreation: {
1657
1619
  required: {
1658
1620
  name: string;
1659
- type: string;
1660
1621
  description: string;
1622
+ type: string;
1661
1623
  required: boolean;
1662
1624
  displayName: string;
1663
1625
  default?: string | null | undefined;
1664
1626
  }[];
1665
1627
  optional: {
1666
1628
  name: string;
1667
- type: string;
1668
1629
  description: string;
1630
+ type: string;
1669
1631
  required: boolean;
1670
1632
  displayName: string;
1671
1633
  default?: string | null | undefined;
@@ -1674,16 +1636,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1674
1636
  connectedAccountInitiation: {
1675
1637
  required: {
1676
1638
  name: string;
1677
- type: string;
1678
1639
  description: string;
1640
+ type: string;
1679
1641
  required: boolean;
1680
1642
  displayName: string;
1681
1643
  default?: string | null | undefined;
1682
1644
  }[];
1683
1645
  optional: {
1684
1646
  name: string;
1685
- type: string;
1686
1647
  description: string;
1648
+ type: string;
1687
1649
  required: boolean;
1688
1650
  displayName: string;
1689
1651
  default?: string | null | undefined;
@@ -1753,309 +1715,21 @@ declare const ToolkitAuthFieldsResponseSchema: z.ZodArray<z.ZodObject<{
1753
1715
  required: z.ZodOptional<z.ZodBoolean>;
1754
1716
  }, "strip", z.ZodTypeAny, {
1755
1717
  name: string;
1756
- type: string;
1757
1718
  description: string;
1719
+ type: string;
1758
1720
  displayName: string;
1759
1721
  required?: boolean | undefined;
1760
1722
  default?: string | null | undefined;
1761
1723
  }, {
1762
1724
  name: string;
1763
- type: string;
1764
1725
  description: string;
1726
+ type: string;
1765
1727
  displayName: string;
1766
1728
  required?: boolean | undefined;
1767
1729
  default?: string | null | undefined;
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
- userId?: string | undefined;
1800
- data?: Record<string, unknown> | undefined;
1801
- callbackUrl?: string | undefined;
1802
- }, {
1803
- userId?: string | undefined;
1804
- data?: Record<string, unknown> | undefined;
1805
- callbackUrl?: string | undefined;
1806
- }>;
1807
- }, "strip", z.ZodTypeAny, {
1808
- authConfig: {
1809
- id: string;
1810
- };
1811
- connection: {
1812
- userId?: string | undefined;
1813
- data?: Record<string, unknown> | undefined;
1814
- callbackUrl?: string | undefined;
1815
- };
1816
- }, {
1817
- authConfig: {
1818
- id: string;
1819
- };
1820
- connection: {
1821
- userId?: string | undefined;
1822
- data?: Record<string, unknown> | undefined;
1823
- callbackUrl?: 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
- limit?: number | null | undefined;
1912
- authConfigIds?: string[] | null | undefined;
1913
- cursor?: string | null | undefined;
1914
- userIds?: string[] | 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
- limit?: number | null | undefined;
1920
- authConfigIds?: string[] | null | undefined;
1921
- cursor?: string | null | undefined;
1922
- userIds?: string[] | 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<{
@@ -2353,6 +2027,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
2353
2027
  id: string;
2354
2028
  noOfConnections: number;
2355
2029
  uuid: string;
2030
+ isComposioManaged?: boolean | undefined;
2356
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;
2357
2032
  credentials?: Record<string, unknown> | undefined;
2358
2033
  toolAccessConfig?: {
@@ -2360,7 +2035,6 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
2360
2035
  toolsAvailableForExecution?: string[] | undefined;
2361
2036
  } | undefined;
2362
2037
  isEnabledForToolRouter?: boolean | undefined;
2363
- isComposioManaged?: boolean | undefined;
2364
2038
  expectedInputFields?: unknown[] | undefined;
2365
2039
  restrictToFollowingTools?: string[] | undefined;
2366
2040
  createdBy?: string | undefined;
@@ -2376,6 +2050,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
2376
2050
  id: string;
2377
2051
  noOfConnections: number;
2378
2052
  uuid: string;
2053
+ isComposioManaged?: boolean | undefined;
2379
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;
2380
2055
  credentials?: Record<string, unknown> | undefined;
2381
2056
  toolAccessConfig?: {
@@ -2383,7 +2058,6 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
2383
2058
  toolsAvailableForExecution?: string[] | undefined;
2384
2059
  } | undefined;
2385
2060
  isEnabledForToolRouter?: boolean | undefined;
2386
- isComposioManaged?: boolean | undefined;
2387
2061
  expectedInputFields?: unknown[] | undefined;
2388
2062
  restrictToFollowingTools?: string[] | undefined;
2389
2063
  createdBy?: string | undefined;
@@ -2398,13 +2072,13 @@ declare const AuthConfigListParamsSchema: z.ZodObject<{
2398
2072
  toolkit: z.ZodOptional<z.ZodString>;
2399
2073
  }, "strip", z.ZodTypeAny, {
2400
2074
  toolkit?: string | undefined;
2401
- limit?: number | undefined;
2402
2075
  isComposioManaged?: boolean | undefined;
2076
+ limit?: number | undefined;
2403
2077
  cursor?: string | undefined;
2404
2078
  }, {
2405
2079
  toolkit?: string | undefined;
2406
- limit?: number | undefined;
2407
2080
  isComposioManaged?: boolean | undefined;
2081
+ limit?: number | undefined;
2408
2082
  cursor?: string | undefined;
2409
2083
  }>;
2410
2084
  type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
@@ -2457,6 +2131,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2457
2131
  id: string;
2458
2132
  noOfConnections: number;
2459
2133
  uuid: string;
2134
+ isComposioManaged?: boolean | undefined;
2460
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;
2461
2136
  credentials?: Record<string, unknown> | undefined;
2462
2137
  toolAccessConfig?: {
@@ -2464,7 +2139,6 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2464
2139
  toolsAvailableForExecution?: string[] | undefined;
2465
2140
  } | undefined;
2466
2141
  isEnabledForToolRouter?: boolean | undefined;
2467
- isComposioManaged?: boolean | undefined;
2468
2142
  expectedInputFields?: unknown[] | undefined;
2469
2143
  restrictToFollowingTools?: string[] | undefined;
2470
2144
  createdBy?: string | undefined;
@@ -2480,6 +2154,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2480
2154
  id: string;
2481
2155
  noOfConnections: number;
2482
2156
  uuid: string;
2157
+ isComposioManaged?: boolean | undefined;
2483
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;
2484
2159
  credentials?: Record<string, unknown> | undefined;
2485
2160
  toolAccessConfig?: {
@@ -2487,7 +2162,6 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2487
2162
  toolsAvailableForExecution?: string[] | undefined;
2488
2163
  } | undefined;
2489
2164
  isEnabledForToolRouter?: boolean | undefined;
2490
- isComposioManaged?: boolean | undefined;
2491
2165
  expectedInputFields?: unknown[] | undefined;
2492
2166
  restrictToFollowingTools?: string[] | undefined;
2493
2167
  createdBy?: string | undefined;
@@ -2507,6 +2181,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2507
2181
  id: string;
2508
2182
  noOfConnections: number;
2509
2183
  uuid: string;
2184
+ isComposioManaged?: boolean | undefined;
2510
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;
2511
2186
  credentials?: Record<string, unknown> | undefined;
2512
2187
  toolAccessConfig?: {
@@ -2514,7 +2189,6 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2514
2189
  toolsAvailableForExecution?: string[] | undefined;
2515
2190
  } | undefined;
2516
2191
  isEnabledForToolRouter?: boolean | undefined;
2517
- isComposioManaged?: boolean | undefined;
2518
2192
  expectedInputFields?: unknown[] | undefined;
2519
2193
  restrictToFollowingTools?: string[] | undefined;
2520
2194
  createdBy?: string | undefined;
@@ -2534,6 +2208,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2534
2208
  id: string;
2535
2209
  noOfConnections: number;
2536
2210
  uuid: string;
2211
+ isComposioManaged?: boolean | undefined;
2537
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;
2538
2213
  credentials?: Record<string, unknown> | undefined;
2539
2214
  toolAccessConfig?: {
@@ -2541,7 +2216,6 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2541
2216
  toolsAvailableForExecution?: string[] | undefined;
2542
2217
  } | undefined;
2543
2218
  isEnabledForToolRouter?: boolean | undefined;
2544
- isComposioManaged?: boolean | undefined;
2545
2219
  expectedInputFields?: unknown[] | undefined;
2546
2220
  restrictToFollowingTools?: string[] | undefined;
2547
2221
  createdBy?: string | undefined;
@@ -2882,16 +2556,16 @@ declare const TriggerSubscribeParamSchema: z.ZodObject<{
2882
2556
  toolkits?: string[] | undefined;
2883
2557
  connectedAccountId?: string | undefined;
2884
2558
  userId?: string | undefined;
2885
- authConfigId?: string | undefined;
2886
2559
  triggerId?: string | undefined;
2560
+ authConfigId?: string | undefined;
2887
2561
  triggerSlug?: string[] | undefined;
2888
2562
  triggerData?: string | undefined;
2889
2563
  }, {
2890
2564
  toolkits?: string[] | undefined;
2891
2565
  connectedAccountId?: string | undefined;
2892
2566
  userId?: string | undefined;
2893
- authConfigId?: string | undefined;
2894
2567
  triggerId?: string | undefined;
2568
+ authConfigId?: string | undefined;
2895
2569
  triggerSlug?: string[] | undefined;
2896
2570
  triggerData?: string | undefined;
2897
2571
  }>;
@@ -2933,21 +2607,21 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
2933
2607
  triggerData: z.ZodOptional<z.ZodString>;
2934
2608
  uuid: z.ZodOptional<z.ZodString>;
2935
2609
  }, "strip", z.ZodTypeAny, {
2936
- connectedAccountId: string;
2937
2610
  id: string;
2938
- state: Record<string, unknown>;
2611
+ connectedAccountId: string;
2939
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
- connectedAccountId: string;
2947
2620
  id: string;
2948
- state: Record<string, unknown>;
2621
+ connectedAccountId: string;
2949
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;
@@ -2965,21 +2639,21 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2965
2639
  triggerData: z.ZodOptional<z.ZodString>;
2966
2640
  uuid: z.ZodOptional<z.ZodString>;
2967
2641
  }, "strip", z.ZodTypeAny, {
2968
- connectedAccountId: string;
2969
2642
  id: string;
2970
- state: Record<string, unknown>;
2643
+ connectedAccountId: string;
2971
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
- connectedAccountId: string;
2979
2652
  id: string;
2980
- state: Record<string, unknown>;
2653
+ connectedAccountId: string;
2981
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;
@@ -2989,11 +2663,11 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2989
2663
  totalPages: z.ZodNumber;
2990
2664
  }, "strip", z.ZodTypeAny, {
2991
2665
  items: {
2992
- connectedAccountId: string;
2993
2666
  id: string;
2994
- state: Record<string, unknown>;
2667
+ connectedAccountId: string;
2995
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;
@@ -3003,11 +2677,11 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
3003
2677
  totalPages: number;
3004
2678
  }, {
3005
2679
  items: {
3006
- connectedAccountId: string;
3007
2680
  id: string;
3008
- state: Record<string, unknown>;
2681
+ connectedAccountId: string;
3009
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;
@@ -3085,96 +2759,96 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
3085
2759
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
3086
2760
  }, "strip", z.ZodTypeAny, {
3087
2761
  status: "ACTIVE" | "INACTIVE";
3088
- userId: string;
3089
2762
  id: string;
2763
+ userId: string;
3090
2764
  uuid: string;
3091
2765
  authConfigId: string;
3092
2766
  authConfigUUID: string;
3093
2767
  }, {
3094
2768
  status: "ACTIVE" | "INACTIVE";
3095
- userId: string;
3096
2769
  id: string;
2770
+ userId: string;
3097
2771
  uuid: string;
3098
2772
  authConfigId: string;
3099
2773
  authConfigUUID: string;
3100
2774
  }>;
3101
2775
  }, "strip", z.ZodTypeAny, {
3102
- toolkitSlug: string;
3103
2776
  id: string;
3104
- uuid: string;
3105
2777
  connectedAccount: {
3106
2778
  status: "ACTIVE" | "INACTIVE";
3107
- userId: string;
3108
2779
  id: string;
2780
+ userId: string;
3109
2781
  uuid: string;
3110
2782
  authConfigId: string;
3111
2783
  authConfigUUID: string;
3112
2784
  };
2785
+ toolkitSlug: string;
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
- uuid: string;
3120
2792
  connectedAccount: {
3121
2793
  status: "ACTIVE" | "INACTIVE";
3122
- userId: string;
3123
2794
  id: string;
2795
+ userId: string;
3124
2796
  uuid: string;
3125
2797
  authConfigId: string;
3126
2798
  authConfigUUID: string;
3127
2799
  };
2800
+ toolkitSlug: string;
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, {
2807
+ id: string;
3133
2808
  toolkitSlug: string;
3134
2809
  userId: string;
3135
- id: string;
3136
2810
  uuid: string;
2811
+ triggerSlug: string;
3137
2812
  metadata: {
3138
- toolkitSlug: string;
3139
2813
  id: string;
3140
- uuid: string;
3141
2814
  connectedAccount: {
3142
2815
  status: "ACTIVE" | "INACTIVE";
3143
- userId: string;
3144
2816
  id: string;
2817
+ userId: string;
3145
2818
  uuid: string;
3146
2819
  authConfigId: string;
3147
2820
  authConfigUUID: string;
3148
2821
  };
2822
+ toolkitSlug: string;
2823
+ uuid: string;
3149
2824
  triggerSlug: string;
3150
2825
  triggerConfig: Record<string, unknown>;
3151
2826
  triggerData?: string | undefined;
3152
2827
  };
3153
- triggerSlug: string;
3154
2828
  payload?: Record<string, unknown> | undefined;
3155
2829
  originalPayload?: Record<string, unknown> | undefined;
3156
2830
  }, {
2831
+ id: string;
3157
2832
  toolkitSlug: string;
3158
2833
  userId: string;
3159
- id: string;
3160
2834
  uuid: string;
2835
+ triggerSlug: string;
3161
2836
  metadata: {
3162
- toolkitSlug: string;
3163
2837
  id: string;
3164
- uuid: string;
3165
2838
  connectedAccount: {
3166
2839
  status: "ACTIVE" | "INACTIVE";
3167
- userId: string;
3168
2840
  id: string;
2841
+ userId: string;
3169
2842
  uuid: string;
3170
2843
  authConfigId: string;
3171
2844
  authConfigUUID: string;
3172
2845
  };
2846
+ toolkitSlug: string;
2847
+ uuid: string;
3173
2848
  triggerSlug: string;
3174
2849
  triggerConfig: Record<string, unknown>;
3175
2850
  triggerData?: string | undefined;
3176
2851
  };
3177
- triggerSlug: string;
3178
2852
  payload?: Record<string, unknown> | undefined;
3179
2853
  originalPayload?: Record<string, unknown> | undefined;
3180
2854
  }>;
@@ -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 */
@@ -3455,16 +3129,16 @@ declare const WebhookPayloadV3Schema: z.ZodObject<{
3455
3129
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3456
3130
  }, "strip", z.ZodTypeAny, {
3457
3131
  type: string;
3458
- data: Record<string, unknown>;
3459
3132
  id: string;
3460
- timestamp: string;
3133
+ data: Record<string, unknown>;
3461
3134
  metadata: Record<string, unknown>;
3135
+ timestamp: string;
3462
3136
  }, {
3463
3137
  type: string;
3464
- data: Record<string, unknown>;
3465
3138
  id: string;
3466
- timestamp: string;
3139
+ data: Record<string, unknown>;
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 */
@@ -3497,34 +3171,34 @@ declare const WebhookTriggerPayloadV3Schema: z.ZodObject<{
3497
3171
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3498
3172
  }, "strip", z.ZodTypeAny, {
3499
3173
  type: string;
3500
- data: Record<string, unknown>;
3501
3174
  id: string;
3502
- timestamp: string;
3175
+ data: Record<string, unknown>;
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
- data: Record<string, unknown>;
3516
3189
  id: string;
3517
- timestamp: string;
3190
+ data: Record<string, unknown>;
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 */
@@ -3536,16 +3210,16 @@ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
3536
3210
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3537
3211
  }, "strip", z.ZodTypeAny, {
3538
3212
  type: string;
3539
- data: Record<string, unknown>;
3540
3213
  id: string;
3541
- timestamp: string;
3214
+ data: Record<string, unknown>;
3542
3215
  metadata: Record<string, unknown>;
3216
+ timestamp: string;
3543
3217
  }, {
3544
3218
  type: string;
3545
- data: Record<string, unknown>;
3546
3219
  id: string;
3547
- timestamp: string;
3220
+ data: Record<string, unknown>;
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;
@@ -4362,16 +4036,16 @@ declare const MCPServerInstanceSchema: z$1.ZodObject<{
4362
4036
  }, "strip", z$1.ZodTypeAny, {
4363
4037
  name: string;
4364
4038
  type: "streamable_http";
4365
- userId: string;
4366
4039
  id: string;
4040
+ userId: string;
4367
4041
  allowedTools: string[];
4368
4042
  url: string;
4369
4043
  authConfigs: string[];
4370
4044
  }, {
4371
4045
  name: string;
4372
4046
  type: "streamable_http";
4373
- userId: string;
4374
4047
  id: string;
4048
+ userId: string;
4375
4049
  allowedTools: string[];
4376
4050
  url: string;
4377
4051
  authConfigs: string[];
@@ -4454,8 +4128,8 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
4454
4128
  MCPUrl: z$1.ZodString;
4455
4129
  }, "strip", z$1.ZodTypeAny, {
4456
4130
  name: string;
4457
- authConfigIds: string[];
4458
4131
  id: string;
4132
+ authConfigIds: string[];
4459
4133
  allowedTools: string[];
4460
4134
  commands: {
4461
4135
  cursor: string;
@@ -4465,8 +4139,8 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
4465
4139
  MCPUrl: string;
4466
4140
  }, {
4467
4141
  name: string;
4468
- authConfigIds: string[];
4469
4142
  id: string;
4143
+ authConfigIds: string[];
4470
4144
  allowedTools: string[];
4471
4145
  commands: {
4472
4146
  cursor: string;
@@ -4564,9 +4238,9 @@ declare const MCPItemSchema: z$1.ZodObject<{
4564
4238
  toolkits: z$1.ZodArray<z$1.ZodString, "many">;
4565
4239
  }, "strip", z$1.ZodTypeAny, {
4566
4240
  name: string;
4241
+ id: string;
4567
4242
  toolkits: string[];
4568
4243
  authConfigIds: string[];
4569
- id: string;
4570
4244
  allowedTools: string[];
4571
4245
  commands: {
4572
4246
  cursor: string;
@@ -4578,9 +4252,9 @@ declare const MCPItemSchema: z$1.ZodObject<{
4578
4252
  serverInstanceCount: number;
4579
4253
  }, {
4580
4254
  name: string;
4255
+ id: string;
4581
4256
  toolkits: string[];
4582
4257
  authConfigIds: string[];
4583
- id: string;
4584
4258
  allowedTools: string[];
4585
4259
  commands: {
4586
4260
  cursor: string;
@@ -4645,9 +4319,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4645
4319
  toolkits: z$1.ZodArray<z$1.ZodString, "many">;
4646
4320
  }, "strip", z$1.ZodTypeAny, {
4647
4321
  name: string;
4322
+ id: string;
4648
4323
  toolkits: string[];
4649
4324
  authConfigIds: string[];
4650
- id: string;
4651
4325
  allowedTools: string[];
4652
4326
  commands: {
4653
4327
  cursor: string;
@@ -4659,9 +4333,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4659
4333
  serverInstanceCount: number;
4660
4334
  }, {
4661
4335
  name: string;
4336
+ id: string;
4662
4337
  toolkits: string[];
4663
4338
  authConfigIds: string[];
4664
- id: string;
4665
4339
  allowedTools: string[];
4666
4340
  commands: {
4667
4341
  cursor: string;
@@ -4677,9 +4351,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4677
4351
  }, "strip", z$1.ZodTypeAny, {
4678
4352
  items: {
4679
4353
  name: string;
4354
+ id: string;
4680
4355
  toolkits: string[];
4681
4356
  authConfigIds: string[];
4682
- id: string;
4683
4357
  allowedTools: string[];
4684
4358
  commands: {
4685
4359
  cursor: string;
@@ -4695,9 +4369,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4695
4369
  }, {
4696
4370
  items: {
4697
4371
  name: string;
4372
+ id: string;
4698
4373
  toolkits: string[];
4699
4374
  authConfigIds: string[];
4700
- id: string;
4701
4375
  allowedTools: string[];
4702
4376
  commands: {
4703
4377
  cursor: string;
@@ -5291,1293 +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
- limit?: number | undefined;
5306
- cursor?: string | undefined;
5307
- }, {
5308
- path?: string | undefined;
5309
- limit?: number | undefined;
5310
- cursor?: string | undefined;
5311
- mountId?: string | undefined;
5312
- }>;
5313
- type ToolRouterSessionFilesMountListOptions = z$1.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
5314
- declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
5315
- items: z$1.ZodArray<z$1.ZodObject<{
5316
- last_modified: z$1.ZodString;
5317
- mount_relative_path: z$1.ZodString;
5318
- sandbox_mount_prefix: z$1.ZodString;
5319
- size: z$1.ZodNumber;
5320
- }, "strip", z$1.ZodTypeAny, {
5321
- last_modified: string;
5322
- mount_relative_path: string;
5323
- sandbox_mount_prefix: string;
5324
- size: number;
5325
- }, {
5326
- last_modified: string;
5327
- mount_relative_path: string;
5328
- sandbox_mount_prefix: string;
5329
- size: number;
5330
- }>, "many">;
5331
- next_cursor: z$1.ZodOptional<z$1.ZodString>;
5332
- }, "strip", z$1.ZodTypeAny, {
5333
- items: {
5334
- last_modified: string;
5335
- mount_relative_path: string;
5336
- sandbox_mount_prefix: string;
5337
- size: number;
5338
- }[];
5339
- next_cursor?: string | undefined;
5340
- }, {
5341
- items: {
5342
- last_modified: string;
5343
- mount_relative_path: string;
5344
- sandbox_mount_prefix: string;
5345
- size: number;
5346
- }[];
5347
- next_cursor?: string | undefined;
5348
- }>, {
5349
- items: {
5350
- lastModified: string;
5351
- mountRelativePath: string;
5352
- sandboxMountPrefix: string;
5353
- size: number;
5354
- }[];
5355
- nextCursor: string | undefined;
5356
- }, {
5357
- items: {
5358
- last_modified: string;
5359
- mount_relative_path: string;
5360
- sandbox_mount_prefix: string;
5361
- size: number;
5362
- }[];
5363
- next_cursor?: string | undefined;
5364
- }>;
5365
- type FileListResponse = z$1.infer<typeof FileListResponseSchema>;
5366
- declare const ToolRouterSessionFilesMountUploadOptionsSchema: z$1.ZodObject<{
5367
- /** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
5368
- remotePath: z$1.ZodOptional<z$1.ZodString>;
5369
- mountId: z$1.ZodDefault<z$1.ZodString>;
5370
- /** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
5371
- mimetype: z$1.ZodOptional<z$1.ZodString>;
5372
- }, "strip", z$1.ZodTypeAny, {
5373
- mountId: string;
5374
- remotePath?: string | undefined;
5375
- mimetype?: string | undefined;
5376
- }, {
5377
- mountId?: string | undefined;
5378
- remotePath?: string | undefined;
5379
- mimetype?: string | undefined;
5380
- }>;
5381
- type ToolRouterSessionFilesMountUploadOptions = z$1.input<typeof ToolRouterSessionFilesMountUploadOptionsSchema>;
5382
- declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z$1.ZodObject<{
5383
- mountId: z$1.ZodDefault<z$1.ZodString>;
5384
- }, "strip", z$1.ZodTypeAny, {
5385
- mountId: string;
5386
- }, {
5387
- mountId?: string | undefined;
5388
- }>;
5389
- type ToolRouterSessionFilesMountDownloadOptions = z$1.input<typeof ToolRouterSessionFilesMountDownloadOptionsSchema>;
5390
- declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z$1.ZodObject<{
5391
- mountId: z$1.ZodDefault<z$1.ZodString>;
5392
- }, "strip", z$1.ZodTypeAny, {
5393
- mountId: string;
5394
- }, {
5395
- mountId?: string | undefined;
5396
- }>;
5397
- type ToolRouterSessionFilesMountDeleteOptions = z$1.input<typeof ToolRouterSessionFilesMountDeleteOptionsSchema>;
5398
- declare const RemoteFileDataSchema: z$1.ZodEffects<z$1.ZodObject<{
5399
- expires_at: z$1.ZodString;
5400
- mount_relative_path: z$1.ZodString;
5401
- sandbox_mount_prefix: z$1.ZodString;
5402
- download_url: z$1.ZodString;
5403
- }, "strip", z$1.ZodTypeAny, {
5404
- mount_relative_path: string;
5405
- sandbox_mount_prefix: string;
5406
- expires_at: string;
5407
- download_url: string;
5408
- }, {
5409
- mount_relative_path: string;
5410
- sandbox_mount_prefix: string;
5411
- expires_at: string;
5412
- download_url: string;
5413
- }>, {
5414
- expiresAt: string;
5415
- mountRelativePath: string;
5416
- sandboxMountPrefix: string;
5417
- downloadUrl: string;
5418
- }, {
5419
- mount_relative_path: string;
5420
- sandbox_mount_prefix: string;
5421
- expires_at: string;
5422
- download_url: string;
5423
- }>;
5424
- /** Parsed shape from API response. Use with `new RemoteFile(data)`. */
5425
- type RemoteFileData = z$1.infer<typeof RemoteFileDataSchema>;
5426
- declare const FileDeleteResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
5427
- mount_relative_path: z$1.ZodString;
5428
- sandbox_mount_prefix: z$1.ZodString;
5429
- }, "strip", z$1.ZodTypeAny, {
5430
- mount_relative_path: string;
5431
- sandbox_mount_prefix: string;
5432
- }, {
5433
- mount_relative_path: string;
5434
- sandbox_mount_prefix: string;
5435
- }>, {
5436
- mountRelativePath: string;
5437
- sandboxMountPrefix: string;
5438
- }, {
5439
- mount_relative_path: string;
5440
- sandbox_mount_prefix: string;
5441
- }>;
5442
- type FileDeleteResponse = z$1.infer<typeof FileDeleteResponseSchema>;
5443
- //#endregion
5444
- //#region src/models/RemoteFile.d.ts
5445
- /**
5446
- * Represents a file stored in a tool router session's file mount.
5447
- * Provides methods to fetch, save, and work with the file content.
5448
- *
5449
- * @example
5450
- * ```typescript
5451
- * const remoteFile = await session.experimental.files.download('/output/report.pdf');
5452
- * const buffer = await remoteFile.buffer();
5453
- * await remoteFile.save('/tmp/report.pdf');
5454
- * const text = await remoteFile.text();
5455
- * ```
5456
- *
5457
- * @example
5458
- * ```typescript
5459
- * // Create from API response (snake_case)
5460
- * const remoteFile = RemoteFile.parse(apiResponse);
5461
- *
5462
- * // Or create from parsed data (camelCase)
5463
- * const remoteFile = new RemoteFile({
5464
- * expiresAt: '...',
5465
- * mountRelativePath: 'report.pdf',
5466
- * sandboxMountPrefix: '/mnt/files',
5467
- * downloadUrl: 'https://...',
5468
- * });
5469
- * ```
5470
- */
5471
- declare class RemoteFile {
5472
- /** ISO 8601 timestamp when the download URL expires */
5473
- readonly expiresAt: string;
5474
- /** Relative path within the mount (e.g. "report.pdf") */
5475
- readonly mountRelativePath: string;
5476
- /** Absolute mount path inside the sandbox (e.g. /mnt/files) */
5477
- readonly sandboxMountPrefix: string;
5478
- /** Presigned URL for downloading the file */
5479
- readonly downloadUrl: string;
5480
- constructor(data: RemoteFileData);
5481
- /**
5482
- * Parses an API response (snake_case) and returns a RemoteFile instance.
5483
- * @param data - Raw API response with snake_case keys
5484
- * @returns A RemoteFile instance
5485
- * @throws ValidationError if the response shape is invalid
5486
- */
5487
- static parse(data: unknown): RemoteFile;
5488
- /** Filename extracted from the mount path (e.g. "report.pdf" from "output/report.pdf") */
5489
- get filename(): string;
5490
- /**
5491
- * Fetches the file content as a buffer.
5492
- * @returns The file content as a Uint8Array
5493
- * @throws RemoteFileDownloadError if the fetch fails
5494
- */
5495
- buffer(): Promise<Uint8Array>;
5496
- /**
5497
- * Fetches the file content as UTF-8 text.
5498
- * @returns The file content as a string
5499
- * @throws Error if the fetch fails
5500
- */
5501
- text(): Promise<string>;
5502
- /**
5503
- * Fetches the file content as a Blob.
5504
- * @returns The file content as a Blob
5505
- * @throws RemoteFileDownloadError if the fetch fails
5506
- */
5507
- blob(): Promise<Blob>;
5508
- /**
5509
- * Downloads and saves the file to the local filesystem.
5510
- * Requires a Node.js runtime with file system support (not available in Cloudflare Workers/Edge).
5511
- *
5512
- * @param path - Local path to save the file. If omitted, saves to the Composio temp directory using the filename from the mount path.
5513
- * @returns The absolute path where the file was saved
5514
- * @throws Error if file system is not supported or the save fails
5515
- */
5516
- save(path?: string): Promise<string>;
5517
- }
5518
- //#endregion
5519
- //#region src/models/ToolRouterSessionFileMount.d.ts
5520
- declare class ToolRouterSessionFilesMount {
5521
- private readonly sessionId;
5522
- private readonly client;
5523
- constructor(client: Composio, sessionId: string);
5524
- /**
5525
- * Lists files and directories at the specified path on the session's file mount.
5526
- *
5527
- * Use this to browse the virtual filesystem attached to the tool router session.
5528
- * The path is relative to the mount root (e.g., `"/"` for root, `"/documents"` for a subdirectory).
5529
- * Supports cursor-based pagination via `cursor` and `limit` options.
5530
- *
5531
- * @param options - Optional configuration for the list operation.
5532
- * @param options.path - The directory path to list. Use `"/"` for the mount root.
5533
- * @param options.mountId - The ID of the file mount to operate on. Defaults to `"files"` when omitted.
5534
- * @param options.cursor - Pagination cursor from the previous response's nextCursor field.
5535
- * @param options.limit - Maximum number of files to return per page (1-500).
5536
- * @returns List of files with nextCursor for pagination.
5537
- *
5538
- * @example
5539
- * ```typescript
5540
- * const session = await composio.toolRouter.use('session_123');
5541
- * const { items, nextCursor } = await session.experimental.files.list({ path: '/' });
5542
- * ```
5543
- *
5544
- * @example
5545
- * ```typescript
5546
- * // Paginated listing
5547
- * let result = await session.experimental.files.list({ path: '/', limit: 10 });
5548
- * while (result.nextCursor) {
5549
- * result = await session.experimental.files.list({ path: '/', cursor: result.nextCursor, limit: 10 });
5550
- * }
5551
- * ```
5552
- */
5553
- list(options?: ToolRouterSessionFilesMountListOptions): Promise<FileListResponse>;
5554
- private normalizeUploadInput;
5555
- /**
5556
- * Uploads a file to the session's file mount.
5557
- *
5558
- * Accepts a file path (local or URL), a native File object, or a raw buffer.
5559
- * The file is stored in the virtual filesystem associated with the tool router session.
5560
- *
5561
- * @param input - File path (string), native File, or raw buffer (ArrayBuffer | Uint8Array).
5562
- * @param options - Optional configuration. When passing a buffer, remotePath is required.
5563
- * @returns Metadata about the uploaded file.
5564
- *
5565
- * @example
5566
- * ```typescript
5567
- * // From file path (local or URL)
5568
- * await session.experimental.files.upload('/path/to/report.pdf');
5569
- * await session.experimental.files.upload('https://example.com/file.pdf');
5570
- * ```
5571
- *
5572
- * @example
5573
- * ```typescript
5574
- * // From native File (e.g. from input[type=file])
5575
- * await session.experimental.files.upload(fileInput.files[0]);
5576
- * ```
5577
- *
5578
- * @example
5579
- * ```typescript
5580
- * // From raw buffer
5581
- * await session.experimental.files.upload(buffer, { remotePath: 'data.json', mimetype: 'application/json' });
5582
- * ```
5583
- */
5584
- upload(input: string | File | ArrayBuffer | Uint8Array, options?: ToolRouterSessionFilesMountUploadOptions): Promise<RemoteFile>;
5585
- /**
5586
- * Downloads a file from the session's file mount to the local filesystem.
5587
- *
5588
- * Retrieves a file stored in the session's virtual filesystem (e.g., one produced
5589
- * by a tool or previously uploaded) and saves it to the specified local path.
5590
- *
5591
- * @param filePath - The path of the file on the mount to download, or the local path where the file should be saved (implementation-specific).
5592
- * @param options - Optional configuration for the download.
5593
- * @param options.mountId - The ID of the file mount to download from. Defaults to `"files"` when omitted.
5594
- * @returns The downloaded file data or path (implementation-specific).
5595
- *
5596
- * @example
5597
- * ```typescript
5598
- * const session = await composio.toolRouter.use('session_123');
5599
- * const result = await session.experimental.files.download('/output/report.pdf');
5600
- * ```
5601
- *
5602
- * @example
5603
- * ```typescript
5604
- * // Download from a custom mount
5605
- * await session.experimental.files.download('/exports/data.json', {
5606
- * mountId: 'custom-mount',
5607
- * });
5608
- * ```
5609
- */
5610
- download(filePath: string, options?: ToolRouterSessionFilesMountDownloadOptions): Promise<RemoteFile>;
5611
- /**
5612
- * Deletes a file or directory at the specified path on the session's file mount.
5613
- *
5614
- * Removes the file or directory from the virtual filesystem. Use with caution:
5615
- * deletion is typically irreversible. Ensure the path exists and is intended for removal.
5616
- *
5617
- * @param remotePath - The path of the file or directory to delete on the mount.
5618
- * @param options - Optional configuration for the delete operation.
5619
- * @param options.mountId - The ID of the file mount to operate on. Defaults to `"files"` when omitted.
5620
- * @returns Confirmation of deletion (implementation-specific).
5621
- *
5622
- * @example
5623
- * ```typescript
5624
- * const session = await composio.toolRouter.use('session_123');
5625
- * await session.experimental.files.delete('/temp/cache.json');
5626
- * ```
5627
- *
5628
- * @example
5629
- * ```typescript
5630
- * // Delete from a custom mount
5631
- * await session.experimental.files.delete('/old-backup', {
5632
- * mountId: 'custom-mount',
5633
- * });
5634
- * ```
5635
- *
5636
- * @warning This operation is destructive. Deleted files cannot be recovered.
5637
- */
5638
- delete(remotePath: string, options?: ToolRouterSessionFilesMountDeleteOptions): Promise<FileDeleteResponse>;
5639
- }
5640
- //#endregion
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
- isComposioManaged: boolean;
6002
- mode: string;
6003
- }, {
6004
- id: string;
6005
- isComposioManaged: boolean;
6006
- mode: string;
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
- isComposioManaged: boolean;
6023
- mode: string;
6024
- } | null | undefined;
6025
- connectedAccount?: {
6026
- status: string;
6027
- id: string;
6028
- } | undefined;
6029
- }, {
6030
- isActive: boolean;
6031
- authConfig?: {
6032
- id: string;
6033
- isComposioManaged: boolean;
6034
- mode: string;
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
- isComposioManaged: boolean;
6051
- mode: string;
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
- isComposioManaged: boolean;
6068
- mode: string;
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
- isComposioManaged: boolean;
6091
- mode: string;
6092
- }, {
6093
- id: string;
6094
- isComposioManaged: boolean;
6095
- mode: string;
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
- isComposioManaged: boolean;
6112
- mode: string;
6113
- } | null | undefined;
6114
- connectedAccount?: {
6115
- status: string;
6116
- id: string;
6117
- } | undefined;
6118
- }, {
6119
- isActive: boolean;
6120
- authConfig?: {
6121
- id: string;
6122
- isComposioManaged: boolean;
6123
- mode: string;
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
- isComposioManaged: boolean;
6140
- mode: string;
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
- isComposioManaged: boolean;
6157
- mode: string;
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
- isComposioManaged: boolean;
6178
- mode: string;
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
- isComposioManaged: boolean;
6199
- mode: string;
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
- nextCursor?: string | undefined;
6238
- toolkits?: string[] | undefined;
6239
- limit?: number | undefined;
6240
- search?: string | undefined;
6241
- isConnected?: boolean | undefined;
6242
- }, {
6243
- nextCursor?: string | undefined;
6244
- toolkits?: string[] | undefined;
6245
- limit?: number | 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
- code: string;
6272
- description: string;
6273
- }, {
6274
- code: string;
6275
- description: string;
6276
- }>, "many">>;
6277
- }, "strip", z$1.ZodTypeAny, {
6278
- toolkits: string[];
6279
- index: number;
6280
- useCase: string;
6281
- primaryToolSlugs: string[];
6282
- relatedToolSlugs: string[];
6283
- error?: string | null | undefined;
6284
- difficulty?: string | undefined;
6285
- executionGuidance?: string | undefined;
6286
- knownPitfalls?: string[] | undefined;
6287
- memory?: Record<string, string[]> | undefined;
6288
- planId?: string | undefined;
6289
- recommendedPlanSteps?: string[] | undefined;
6290
- referenceWorkbenchSnippets?: {
6291
- code: string;
6292
- description: string;
6293
- }[] | undefined;
6294
- }, {
6295
- toolkits: string[];
6296
- index: number;
6297
- useCase: string;
6298
- primaryToolSlugs: string[];
6299
- relatedToolSlugs: string[];
6300
- error?: string | null | undefined;
6301
- difficulty?: string | undefined;
6302
- executionGuidance?: string | undefined;
6303
- knownPitfalls?: string[] | undefined;
6304
- memory?: Record<string, string[]> | undefined;
6305
- planId?: string | undefined;
6306
- recommendedPlanSteps?: string[] | undefined;
6307
- referenceWorkbenchSnippets?: {
6308
- code: string;
6309
- description: string;
6310
- }[] | undefined;
6311
- }>, "many">;
6312
- toolSchemas: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
6313
- toolSlug: z$1.ZodString;
6314
- toolkit: z$1.ZodString;
6315
- description: z$1.ZodOptional<z$1.ZodString>;
6316
- hasFullSchema: z$1.ZodOptional<z$1.ZodBoolean>;
6317
- inputSchema: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
6318
- outputSchema: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
6319
- schemaRef: z$1.ZodOptional<z$1.ZodObject<{
6320
- args: z$1.ZodObject<{
6321
- toolSlugs: z$1.ZodArray<z$1.ZodString, "many">;
6322
- }, "strip", z$1.ZodTypeAny, {
6323
- toolSlugs: string[];
6324
- }, {
6325
- toolSlugs: string[];
6326
- }>;
6327
- message: z$1.ZodString;
6328
- tool: z$1.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
6329
- }, "strip", z$1.ZodTypeAny, {
6330
- message: string;
6331
- args: {
6332
- toolSlugs: string[];
6333
- };
6334
- tool: "COMPOSIO_GET_TOOL_SCHEMAS";
6335
- }, {
6336
- message: string;
6337
- args: {
6338
- toolSlugs: string[];
6339
- };
6340
- tool: "COMPOSIO_GET_TOOL_SCHEMAS";
6341
- }>>;
6342
- }, "strip", z$1.ZodTypeAny, {
6343
- toolkit: string;
6344
- toolSlug: string;
6345
- description?: string | undefined;
6346
- hasFullSchema?: boolean | undefined;
6347
- inputSchema?: Record<string, unknown> | undefined;
6348
- outputSchema?: Record<string, unknown> | undefined;
6349
- schemaRef?: {
6350
- message: string;
6351
- args: {
6352
- toolSlugs: string[];
6353
- };
6354
- tool: "COMPOSIO_GET_TOOL_SCHEMAS";
6355
- } | undefined;
6356
- }, {
6357
- toolkit: string;
6358
- toolSlug: string;
6359
- description?: string | undefined;
6360
- hasFullSchema?: boolean | undefined;
6361
- inputSchema?: Record<string, unknown> | undefined;
6362
- outputSchema?: Record<string, unknown> | undefined;
6363
- schemaRef?: {
6364
- message: string;
6365
- args: {
6366
- toolSlugs: string[];
6367
- };
6368
- tool: "COMPOSIO_GET_TOOL_SCHEMAS";
6369
- } | undefined;
6370
- }>>;
6371
- toolkitConnectionStatuses: z$1.ZodArray<z$1.ZodObject<{
6372
- toolkit: z$1.ZodString;
6373
- description: z$1.ZodString;
6374
- hasActiveConnection: z$1.ZodBoolean;
6375
- statusMessage: z$1.ZodString;
6376
- connectionDetails: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
6377
- currentUserInfo: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
6378
- }, "strip", z$1.ZodTypeAny, {
6379
- description: string;
6380
- toolkit: string;
6381
- hasActiveConnection: boolean;
6382
- statusMessage: string;
6383
- connectionDetails?: Record<string, unknown> | undefined;
6384
- currentUserInfo?: Record<string, unknown> | undefined;
6385
- }, {
6386
- description: string;
6387
- toolkit: string;
6388
- hasActiveConnection: boolean;
6389
- statusMessage: string;
6390
- connectionDetails?: Record<string, unknown> | undefined;
6391
- currentUserInfo?: Record<string, unknown> | undefined;
6392
- }>, "many">;
6393
- nextStepsGuidance: z$1.ZodArray<z$1.ZodString, "many">;
6394
- session: z$1.ZodObject<{
6395
- id: z$1.ZodString;
6396
- generateId: z$1.ZodBoolean;
6397
- instructions: z$1.ZodString;
6398
- }, "strip", z$1.ZodTypeAny, {
6399
- id: string;
6400
- instructions: string;
6401
- generateId: boolean;
6402
- }, {
6403
- id: string;
6404
- instructions: string;
6405
- generateId: boolean;
6406
- }>;
6407
- timeInfo: z$1.ZodObject<{
6408
- currentTimeUtc: z$1.ZodString;
6409
- currentTimeUtcEpochSeconds: z$1.ZodNumber;
6410
- message: z$1.ZodString;
6411
- }, "strip", z$1.ZodTypeAny, {
6412
- message: string;
6413
- currentTimeUtc: string;
6414
- currentTimeUtcEpochSeconds: number;
6415
- }, {
6416
- message: string;
6417
- currentTimeUtc: string;
6418
- currentTimeUtcEpochSeconds: number;
6419
- }>;
6420
- }, "strip", z$1.ZodTypeAny, {
6421
- error: string | null;
6422
- success: boolean;
6423
- results: {
6424
- toolkits: string[];
6425
- index: number;
6426
- useCase: string;
6427
- primaryToolSlugs: string[];
6428
- relatedToolSlugs: string[];
6429
- error?: string | null | undefined;
6430
- difficulty?: string | undefined;
6431
- executionGuidance?: string | undefined;
6432
- knownPitfalls?: string[] | undefined;
6433
- memory?: Record<string, string[]> | undefined;
6434
- planId?: string | undefined;
6435
- recommendedPlanSteps?: string[] | undefined;
6436
- referenceWorkbenchSnippets?: {
6437
- code: string;
6438
- description: string;
6439
- }[] | undefined;
6440
- }[];
6441
- toolSchemas: Record<string, {
6442
- toolkit: string;
6443
- toolSlug: string;
6444
- description?: string | undefined;
6445
- hasFullSchema?: boolean | undefined;
6446
- inputSchema?: Record<string, unknown> | undefined;
6447
- outputSchema?: Record<string, unknown> | undefined;
6448
- schemaRef?: {
6449
- message: string;
6450
- args: {
6451
- toolSlugs: string[];
6452
- };
6453
- tool: "COMPOSIO_GET_TOOL_SCHEMAS";
6454
- } | undefined;
6455
- }>;
6456
- toolkitConnectionStatuses: {
6457
- description: string;
6458
- toolkit: string;
6459
- hasActiveConnection: boolean;
6460
- statusMessage: string;
6461
- connectionDetails?: Record<string, unknown> | undefined;
6462
- currentUserInfo?: Record<string, unknown> | undefined;
6463
- }[];
6464
- nextStepsGuidance: string[];
6465
- session: {
6466
- id: string;
6467
- instructions: string;
6468
- generateId: boolean;
6469
- };
6470
- timeInfo: {
6471
- message: string;
6472
- currentTimeUtc: string;
6473
- currentTimeUtcEpochSeconds: number;
6474
- };
6475
- }, {
6476
- error: string | null;
6477
- success: boolean;
6478
- results: {
6479
- toolkits: string[];
6480
- index: number;
6481
- useCase: string;
6482
- primaryToolSlugs: string[];
6483
- relatedToolSlugs: string[];
6484
- error?: string | null | undefined;
6485
- difficulty?: string | undefined;
6486
- executionGuidance?: string | undefined;
6487
- knownPitfalls?: string[] | undefined;
6488
- memory?: Record<string, string[]> | undefined;
6489
- planId?: string | undefined;
6490
- recommendedPlanSteps?: string[] | undefined;
6491
- referenceWorkbenchSnippets?: {
6492
- code: string;
6493
- description: string;
6494
- }[] | undefined;
6495
- }[];
6496
- toolSchemas: Record<string, {
6497
- toolkit: string;
6498
- toolSlug: string;
6499
- description?: string | undefined;
6500
- hasFullSchema?: boolean | undefined;
6501
- inputSchema?: Record<string, unknown> | undefined;
6502
- outputSchema?: Record<string, unknown> | undefined;
6503
- schemaRef?: {
6504
- message: string;
6505
- args: {
6506
- toolSlugs: string[];
6507
- };
6508
- tool: "COMPOSIO_GET_TOOL_SCHEMAS";
6509
- } | undefined;
6510
- }>;
6511
- toolkitConnectionStatuses: {
6512
- description: string;
6513
- toolkit: string;
6514
- hasActiveConnection: boolean;
6515
- statusMessage: string;
6516
- connectionDetails?: Record<string, unknown> | undefined;
6517
- currentUserInfo?: Record<string, unknown> | undefined;
6518
- }[];
6519
- nextStepsGuidance: string[];
6520
- session: {
6521
- id: string;
6522
- instructions: string;
6523
- generateId: boolean;
6524
- };
6525
- timeInfo: {
6526
- message: string;
6527
- currentTimeUtc: string;
6528
- currentTimeUtcEpochSeconds: number;
6529
- };
6530
- }>;
6531
- type ToolRouterSessionSearchResponse = z$1.infer<typeof ToolRouterSessionSearchResponseSchema>;
6532
- declare const ToolRouterSessionExecuteResponseSchema: z$1.ZodObject<{
6533
- data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
6534
- error: z$1.ZodNullable<z$1.ZodString>;
6535
- logId: z$1.ZodString;
6536
- }, "strip", z$1.ZodTypeAny, {
6537
- data: Record<string, unknown>;
6538
- error: string | null;
6539
- logId: string;
6540
- }, {
6541
- data: Record<string, unknown>;
6542
- error: string | null;
6543
- logId: string;
6544
- }>;
6545
- type ToolRouterSessionExecuteResponse = z$1.infer<typeof ToolRouterSessionExecuteResponseSchema>;
6546
- /**
6547
- * Experimental features on a tool router session.
6548
- * Contains features that may be modified or removed in future versions.
6549
- */
6550
- interface SessionExperimental {
6551
- /**
6552
- * The assistive system prompt to inject into your agent for optimal tool router usage.
6553
- * Only returned on session creation, not on GET.
6554
- */
6555
- assistivePrompt?: string;
6556
- /**
6557
- * File mount operations (list, upload, download, delete) for the session's virtual filesystem.
6558
- */
6559
- files: ToolRouterSessionFilesMount;
6560
- }
6561
- type ToolRouterSessionSearchFn = (params: {
6562
- query: string;
6563
- toolkits?: string[];
6564
- }) => Promise<ToolRouterSessionSearchResponse>;
6565
- type ToolRouterSessionExecuteFn = (toolSlug: string, arguments_?: Record<string, unknown>) => Promise<ToolRouterSessionExecuteResponse>;
6566
- /** Session type returned by ToolRouter.create() and ToolRouter.use() */
6567
- interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
6568
- sessionId: string;
6569
- mcp: ToolRouterMCPServerConfig;
6570
- tools: ToolRouterToolsFn<TToolCollection, TTool, TProvider>;
6571
- authorize: ToolRouterAuthorizeFn;
6572
- toolkits: ToolRouterToolkitsFn;
6573
- /** Search for tools by semantic use case */
6574
- search: ToolRouterSessionSearchFn;
6575
- /** Execute a tool within the session */
6576
- execute: ToolRouterSessionExecuteFn;
6577
- /** Experimental features (files, assistive prompt, etc.) */
6578
- experimental: SessionExperimental;
6579
- }
6580
- //#endregion
6581
4968
  //#region src/models/ToolRouter.d.ts
6582
4969
  declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
6583
4970
  private client;
@@ -6593,30 +4980,18 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
6593
4980
  *
6594
4981
  * @example
6595
4982
  * ```typescript
6596
- * import { Composio } from '@composio/core';
4983
+ * import { Composio, experimental_createTool } from '@composio/core';
6597
4984
  *
6598
4985
  * const composio = new Composio();
6599
- * const userId = 'user_123';
6600
4986
  *
6601
- * const session = await composio.experimental.create(userId, {
4987
+ * const session = await composio.create('user_123', {
6602
4988
  * toolkits: ['gmail'],
6603
4989
  * manageConnections: true,
6604
- * tools: {
6605
- * gmail: {
6606
- * disabled: ['gmail_send_email']
6607
- * }
4990
+ * experimental: {
4991
+ * customTools: [myCustomTool],
4992
+ * customToolkits: [myToolkit],
6608
4993
  * },
6609
- * tags: ['readOnlyHint']
6610
4994
  * });
6611
- *
6612
- * console.log(session.sessionId);
6613
- * console.log(session.mcp.url);
6614
- *
6615
- * // Get tools formatted for your framework (requires provider)
6616
- * const tools = await session.tools();
6617
- *
6618
- * // Check toolkit connection states
6619
- * const toolkits = await session.toolkits();
6620
4995
  * ```
6621
4996
  */
6622
4997
  create(userId: string, config?: ToolRouterCreateSessionConfig): Promise<Session<TToolCollection, TTool, TProvider>>;
@@ -6913,4 +5288,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
6913
5288
  flush(): Promise<void>;
6914
5289
  }
6915
5290
  //#endregion
6916
- export { ToolRouterSessionFilesMountUploadOptionsSchema as $, ToolkitAuthConfigDetails as $n, AuthConfigListResponse as $t, ToolRouterToolkitsOptionsSchema as A, ConnectedAccountRetrieveResponse as An, TriggersTypeListParams as At, FileDeleteResponse as B, CreateConnectedAccountOptions as Bn, WebhookPayloadV1 as Bt, ToolRouterSessionSearchResponseSchema as C, ConnectedAccountListParams as Cn, TriggerStatusEnum as Ct, ToolRouterToolkitsEnabledConfigSchema as D, ConnectedAccountListResponseSchema as Dn, TriggerSubscribeParams as Dt, ToolRouterToolkitsDisabledConfigSchema as E, ConnectedAccountListResponseItem as En, TriggerSubscribeParamSchema as Et, ToolkitConnectionState as F, ConnectedAccountStatuses as Fn, VerifyWebhookParams as Ft, RemoteFileDataSchema as G, CreateConnectedAccountResponseSchema as Gn, WebhookPayloadV3Schema as Gt, FileListResponse as H, CreateConnectedAccountParams as Hn, WebhookPayloadV2 as Ht, ToolkitConnectionStateSchema as I, CreateConnectedAccountLinkOptions as In, VerifyWebhookParamsSchema as It, ToolRouterSessionFilesMountDownloadOptions as J, ToolKitItemSchema as Jn, WebhookVersion as Jt, ToolRouterSessionFilesMountDeleteOptions as K, DefaultCreateConnectedAccountParamsSchema as Kn, WebhookTriggerPayloadV3 as Kt, ToolkitConnectionsDetails as L, CreateConnectedAccountLinkOptionsSchema as Ln, VerifyWebhookResult as Lt, ToolRouterToolsFn as M, ConnectedAccountStatus as Mn, TriggersTypeListResponse as Mt, ToolRouterToolsParam as N, ConnectedAccountStatusEnum as Nn, TriggersTypeListResponseSchema as Nt, ToolRouterToolkitsFn as O, ConnectedAccountRefreshOptions as On, TriggerType as Ot, ToolRouterToolsParamSchema as P, ConnectedAccountStatusSchema as Pn, TriggersTypeRetrieveResponse as Pt, ToolRouterSessionFilesMountUploadOptions as Q, ToolKitMetaSchema as Qn, AuthConfigListParamsSchema as Qt, ToolkitConnectionsDetailsSchema as R, CreateConnectedAccountLinkResponse as Rn, WebhookPayload as Rt, ToolRouterSessionSearchResponse as S, ConnectedAccountAuthConfigSchema as Sn, InputParamsSchema as Sr, TriggerInstanceUpsertResponseSchema as St, ToolRouterTagsParamSchema as T, ConnectedAccountListResponse as Tn, TriggerStatuses as Tt, FileListResponseSchema as U, CreateConnectedAccountParamsSchema as Un, WebhookPayloadV2Schema as Ut, FileDeleteResponseSchema as V, CreateConnectedAccountOptionsSchema as Vn, WebhookPayloadV1Schema as Vt, RemoteFileData as W, CreateConnectedAccountResponse as Wn, WebhookPayloadV3 as Wt, ToolRouterSessionFilesMountListOptions as X, ToolKitListResponseSchema as Xn, AuthConfigCreationToolAccessConfigSchema as Xt, ToolRouterSessionFilesMountDownloadOptionsSchema as Y, ToolKitListResponse as Yn, WebhookVersions as Yt, ToolRouterSessionFilesMountListOptionsSchema as Z, ToolKitMeta as Zn, AuthConfigListParams as Zt, ToolRouterManageConnectionsConfigSchema as _, CreateComposioManagedAuthConfigParamsSchema as _n, CustomToolInputParameter as _r, TriggerInstanceManageUpdateResponse as _t, Session as a, AuthConfigTypes as an, ToolkitCategory as ar, TriggerEvent as at, ToolRouterSessionExecuteResponseSchema as b, ConnectionRequestState as bn, CustomToolRegistryItem as br, TriggerInstanceUpsertParamsSchema as bt, ToolRouterConfigManageConnectionsSchema as c, AuthCustomConfigUpdateParamsSchema as cn, ToolkitMangedByEnum as cr, TriggerInstanceListActiveParamsSchema as ct, ToolRouterConfigTools as d, AuthSchemeType as dn, ToolkitRetrieveCategoriesResponseSchema as dr, TriggerInstanceListActiveResponseItemSchema as dt, AuthConfigListResponseSchema as en, ToolkitAuthConfigDetailsSchema as er, OpenAIProvider as et, ToolRouterConfigToolsSchema as f, AuthSchemeTypes as fn, ToolkitRetrieveResponse as fr, TriggerInstanceListActiveResponseSchema as ft, ToolRouterMCPServerConfigSchema as g, CreateAuthConfigResponseSchema as gn, ToolkitsListParamsSchema as gr, TriggerInstanceManageUpdateParamsSchema as gt, ToolRouterMCPServerConfig as h, CreateAuthConfigResponse as hn, ToolkitSortByEnumSchema as hr, TriggerInstanceManageUpdateParams as ht, MCPServerTypeSchema as i, AuthConfigType as in, ToolkitAuthFieldsResponseSchema as ir, TriggerData as it, ToolRouterToolkitsParamSchema as j, ConnectedAccountRetrieveResponseSchema as jn, TriggersTypeListParamsSchema as jt, ToolRouterToolkitsOptions as k, ConnectedAccountRefreshOptionsSchema as kn, TriggerTypeSchema as kt, ToolRouterConfigTags as l, AuthDefaultConfigUpdateParamsSchema as ln, ToolkitMangedByEnumSchema as lr, TriggerInstanceListActiveResponse as lt, ToolRouterCreateSessionConfigSchema as m, CreateAuthConfigParamsSchema as mn, ToolkitSortByEnum as mr, TriggerInstanceManageDeleteResponseSchema as mt, ComposioConfig as n, AuthConfigRetrieveResponseSchema as nn, ToolkitAuthFieldSchema as nr, IncomingTriggerPayload as nt, SessionExperimental as o, AuthConfigUpdateParams as on, ToolkitCategorySchema as or, TriggerEventData as ot, ToolRouterCreateSessionConfig as p, CreateAuthConfigParams as pn, ToolkitRetrieveResponseSchema as pr, TriggerInstanceManageDeleteResponse as pt, ToolRouterSessionFilesMountDeleteOptionsSchema as q, ToolKitItem as qn, WebhookTriggerPayloadV3Schema as qt, MCPServerType as r, AuthConfigToolAccessConfigSchema as rn, ToolkitAuthFieldsResponse as rr, IncomingTriggerPayloadSchema as rt, ToolRouterAuthorizeFn as s, AuthConfigUpdateParamsSchema as sn, ToolkitListParams as sr, TriggerInstanceListActiveParams as st, Composio$1 as t, AuthConfigRetrieveResponse as tn, ToolkitAuthField as tr, MCP as tt, ToolRouterConfigTagsSchema as u, AuthSchemeEnum as un, ToolkitRetrieveCategoriesResponse as ur, TriggerInstanceListActiveResponseItem as ut, ToolRouterSessionExecuteFn as v, CreateCustomAuthConfigParamsSchema as vn, CustomToolOptions as vr, TriggerInstanceManageUpdateResponseSchema as vt, ToolRouterTagsEnableDisableSchema as w, ConnectedAccountListParamsSchema as wn, TriggerStatusType as wt, ToolRouterSessionSearchFn as x, ConnectedAccountAuthConfig as xn, ExecuteMetadata as xr, TriggerInstanceUpsertResponse as xt, ToolRouterSessionExecuteResponse as y, ConnectionRequest as yn, CustomToolRegistry as yr, TriggerInstanceUpsertParams as yt, RemoteFile as z, CreateConnectedAccountLinkResponseSchema as zn, WebhookPayloadSchema as zt };
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 };