@composio/core 0.6.5 → 0.6.7

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-BlpMy_R5.d.cts +75 -0
  4. package/dist/CustomTool-C1q7Y3Nq.mjs +743 -0
  5. package/dist/CustomTool-CZZbiZgh.d.mts +75 -0
  6. package/dist/CustomTool-G2lKa7eb.cjs +1014 -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-BC28OAhR.d.mts → composio-CbZbGwhD.d.mts} +67 -1692
  12. package/dist/{composio-BBswEUus.d.cts → composio-Yl_Y7F6u.d.cts} +67 -1692
  13. package/dist/customTool.types-CEo_oLEU.d.mts +1860 -0
  14. package/dist/customTool.types-CzBEXJw5.d.cts +1860 -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 +552 -715
  22. package/dist/index.d.cts +61 -43
  23. package/dist/index.d.mts +61 -43
  24. package/dist/index.mjs +366 -535
  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-BWc7GUrD.d.cts} +10904 -10905
  34. package/dist/{BaseProvider-CaOKzzuo.d.mts → tool.types-bencsexi.d.mts} +10904 -10905
  35. package/dist/{types-DY0bIIqG.d.mts → types-C_HOnR64.d.cts} +2 -2
  36. package/dist/{types-CHz185FL.d.cts → types-e_z7dQdL.d.mts} +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,53 +1,15 @@
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-CaOKzzuo.mjs";
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-bencsexi.mjs";
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-CEo_oLEU.mjs";
2
3
  import ComposioClient, { Composio } from "@composio/client";
3
4
  import z, { z as z$1 } from "zod/v3";
4
5
  import { OpenAI } from "openai";
5
6
  import { Files } from "#files";
6
- import { ToolExecuteResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
7
+ import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
7
8
  import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
8
9
  import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
9
10
  import { ConnectedAccountDeleteResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
10
11
  import { Stream } from "openai/streaming";
11
12
 
12
- //#region src/types/customTool.types.d.ts
13
- type BaseCustomToolOptions<T extends z$1.ZodType> = {
14
- name: string;
15
- description?: string;
16
- slug: string;
17
- inputParams: T;
18
- };
19
- type ToolkitBasedExecute<T extends z$1.ZodType> = {
20
- execute: (input: z$1.infer<T>, connectionConfig: ConnectionData | null, executeToolRequest: (data: ToolProxyParams) => Promise<ToolExecuteResponse>) => Promise<ToolExecuteResponse>;
21
- toolkitSlug: string;
22
- };
23
- type StandaloneExecute<T extends z$1.ZodType> = {
24
- execute: (input: z$1.infer<T>) => Promise<ToolExecuteResponse>;
25
- toolkitSlug?: never;
26
- };
27
- type CustomToolOptions<T extends z$1.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$1.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.
@@ -596,7 +558,6 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
596
558
  description?: string | undefined;
597
559
  availableVersions?: string[] | undefined;
598
560
  createdAt?: string | undefined;
599
- updatedAt?: string | undefined;
600
561
  categories?: {
601
562
  slug: string;
602
563
  name: string;
@@ -604,12 +565,12 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
604
565
  appUrl?: string | undefined;
605
566
  toolsCount?: number | undefined;
606
567
  triggersCount?: number | undefined;
568
+ updatedAt?: string | undefined;
607
569
  }, {
608
570
  logo?: string | undefined;
609
571
  description?: string | undefined;
610
572
  availableVersions?: string[] | undefined;
611
573
  createdAt?: string | undefined;
612
- updatedAt?: string | undefined;
613
574
  categories?: {
614
575
  slug: string;
615
576
  name: string;
@@ -617,6 +578,7 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
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$1.ZodObject<{
622
584
  name: z$1.ZodString;
@@ -645,7 +607,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
645
607
  description?: string | undefined;
646
608
  availableVersions?: string[] | undefined;
647
609
  createdAt?: string | undefined;
648
- updatedAt?: string | undefined;
649
610
  categories?: {
650
611
  slug: string;
651
612
  name: string;
@@ -653,12 +614,12 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
653
614
  appUrl?: string | undefined;
654
615
  toolsCount?: number | undefined;
655
616
  triggersCount?: number | undefined;
617
+ updatedAt?: string | undefined;
656
618
  }, {
657
619
  logo?: string | undefined;
658
620
  description?: string | undefined;
659
621
  availableVersions?: string[] | undefined;
660
622
  createdAt?: string | undefined;
661
- updatedAt?: string | undefined;
662
623
  categories?: {
663
624
  slug: string;
664
625
  name: string;
@@ -666,6 +627,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
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$1.ZodBoolean;
671
633
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -679,7 +641,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
679
641
  description?: string | undefined;
680
642
  availableVersions?: string[] | undefined;
681
643
  createdAt?: string | undefined;
682
- updatedAt?: string | undefined;
683
644
  categories?: {
684
645
  slug: string;
685
646
  name: string;
@@ -687,6 +648,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
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;
@@ -700,7 +662,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
700
662
  description?: string | undefined;
701
663
  availableVersions?: string[] | undefined;
702
664
  createdAt?: string | undefined;
703
- updatedAt?: string | undefined;
704
665
  categories?: {
705
666
  slug: string;
706
667
  name: string;
@@ -708,6 +669,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
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;
@@ -741,7 +703,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
741
703
  description?: string | undefined;
742
704
  availableVersions?: string[] | undefined;
743
705
  createdAt?: string | undefined;
744
- updatedAt?: string | undefined;
745
706
  categories?: {
746
707
  slug: string;
747
708
  name: string;
@@ -749,12 +710,12 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
749
710
  appUrl?: string | undefined;
750
711
  toolsCount?: number | undefined;
751
712
  triggersCount?: number | undefined;
713
+ updatedAt?: string | undefined;
752
714
  }, {
753
715
  logo?: string | undefined;
754
716
  description?: string | undefined;
755
717
  availableVersions?: string[] | undefined;
756
718
  createdAt?: string | undefined;
757
- updatedAt?: string | undefined;
758
719
  categories?: {
759
720
  slug: string;
760
721
  name: string;
@@ -762,6 +723,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
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$1.ZodBoolean;
767
729
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -775,7 +737,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
775
737
  description?: string | undefined;
776
738
  availableVersions?: string[] | undefined;
777
739
  createdAt?: string | undefined;
778
- updatedAt?: string | undefined;
779
740
  categories?: {
780
741
  slug: string;
781
742
  name: string;
@@ -783,6 +744,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
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;
@@ -796,7 +758,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
796
758
  description?: string | undefined;
797
759
  availableVersions?: string[] | undefined;
798
760
  createdAt?: string | undefined;
799
- updatedAt?: string | undefined;
800
761
  categories?: {
801
762
  slug: string;
802
763
  name: string;
@@ -804,6 +765,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
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;
@@ -1200,7 +1162,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1200
1162
  description?: string | undefined;
1201
1163
  availableVersions?: string[] | undefined;
1202
1164
  createdAt?: string | undefined;
1203
- updatedAt?: string | undefined;
1204
1165
  categories?: {
1205
1166
  slug: string;
1206
1167
  name: string;
@@ -1208,12 +1169,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1208
1169
  appUrl?: string | undefined;
1209
1170
  toolsCount?: number | undefined;
1210
1171
  triggersCount?: number | undefined;
1172
+ updatedAt?: string | undefined;
1211
1173
  }, {
1212
1174
  logo?: string | undefined;
1213
1175
  description?: string | undefined;
1214
1176
  availableVersions?: string[] | undefined;
1215
1177
  createdAt?: string | undefined;
1216
- updatedAt?: string | undefined;
1217
1178
  categories?: {
1218
1179
  slug: string;
1219
1180
  name: string;
@@ -1221,6 +1182,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
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$1.ZodBoolean;
1226
1188
  composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -1570,7 +1532,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1570
1532
  description?: string | undefined;
1571
1533
  availableVersions?: string[] | undefined;
1572
1534
  createdAt?: string | undefined;
1573
- updatedAt?: string | undefined;
1574
1535
  categories?: {
1575
1536
  slug: string;
1576
1537
  name: string;
@@ -1578,6 +1539,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
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;
@@ -1637,7 +1599,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1637
1599
  description?: string | undefined;
1638
1600
  availableVersions?: string[] | undefined;
1639
1601
  createdAt?: string | undefined;
1640
- updatedAt?: string | undefined;
1641
1602
  categories?: {
1642
1603
  slug: string;
1643
1604
  name: string;
@@ -1645,6 +1606,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1645
1606
  appUrl?: string | undefined;
1646
1607
  toolsCount?: number | undefined;
1647
1608
  triggersCount?: number | undefined;
1609
+ updatedAt?: string | undefined;
1648
1610
  };
1649
1611
  isLocalToolkit: boolean;
1650
1612
  composioManagedAuthSchemes?: string[] | undefined;
@@ -1768,294 +1730,6 @@ declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
1768
1730
  }>, "many">;
1769
1731
  type ToolkitAuthFieldsResponse = z$1.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$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
1784
- type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
1785
- type ConnectedAccountStatusEnum = z$1.infer<typeof ConnectedAccountStatusSchema>;
1786
- declare const CreateConnectedAccountParamsSchema: z$1.ZodObject<{
1787
- authConfig: z$1.ZodObject<{
1788
- id: z$1.ZodString;
1789
- }, "strip", z$1.ZodTypeAny, {
1790
- id: string;
1791
- }, {
1792
- id: string;
1793
- }>;
1794
- connection: z$1.ZodObject<{
1795
- data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1796
- callbackUrl: z$1.ZodOptional<z$1.ZodString>;
1797
- userId: z$1.ZodOptional<z$1.ZodString>;
1798
- }, "strip", z$1.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$1.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$1.ZodType<{
1827
- auth_config: {
1828
- id: string;
1829
- };
1830
- connection: {
1831
- state?: z$1.infer<typeof ConnectionDataSchema>;
1832
- data?: Record<string, unknown>;
1833
- callback_url?: string;
1834
- user_id?: string;
1835
- };
1836
- }>;
1837
- declare const CreateConnectedAccountOptionsSchema: z$1.ZodType<{
1838
- allowMultiple?: boolean;
1839
- callbackUrl?: string;
1840
- config?: z$1.infer<typeof ConnectionDataSchema>;
1841
- }>;
1842
- type CreateConnectedAccountOptions = z$1.infer<typeof CreateConnectedAccountOptionsSchema>;
1843
- type CreateConnectedAccountParams = z$1.infer<typeof CreateConnectedAccountParamsSchema>;
1844
- /**
1845
- * Connected Account create response
1846
- */
1847
- declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
1848
- id: z$1.ZodString;
1849
- status: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
1850
- redirectUrl: z$1.ZodNullable<z$1.ZodString>;
1851
- }, "strip", z$1.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$1.infer<typeof CreateConnectedAccountResponseSchema>;
1861
- declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
1862
- id: z$1.ZodString;
1863
- /** @deprecated use connectedAccount.state.authScheme instead */
1864
- authScheme: z$1.ZodOptional<z$1.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$1.ZodBoolean;
1866
- isDisabled: z$1.ZodBoolean;
1867
- }, "strip", z$1.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$1.infer<typeof ConnectedAccountAuthConfigSchema>;
1879
- declare const ConnectedAccountRetrieveResponseSchema: z$1.ZodType<{
1880
- id: string;
1881
- authConfig: z$1.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$1.infer<typeof ConnectionDataSchema>;
1892
- testRequestEndpoint?: string;
1893
- isDisabled: boolean;
1894
- createdAt: string;
1895
- updatedAt: string;
1896
- }>;
1897
- type ConnectedAccountRetrieveResponse = z$1.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$1.ZodObject<{
1903
- authConfigIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
1904
- cursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1905
- limit: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
1906
- orderBy: z$1.ZodOptional<z$1.ZodEnum<["created_at", "updated_at"]>>;
1907
- statuses: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>, "many">>>;
1908
- toolkitSlugs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
1909
- userIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
1910
- }, "strip", z$1.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$1.infer<typeof ConnectedAccountListParamsSchema>;
1928
- declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
1929
- items: z$1.ZodArray<z$1.ZodType<{
1930
- id: string;
1931
- authConfig: z$1.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$1.infer<typeof ConnectionDataSchema>;
1942
- testRequestEndpoint?: string;
1943
- isDisabled: boolean;
1944
- createdAt: string;
1945
- updatedAt: string;
1946
- }, z$1.ZodTypeDef, {
1947
- id: string;
1948
- authConfig: z$1.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$1.infer<typeof ConnectionDataSchema>;
1959
- testRequestEndpoint?: string;
1960
- isDisabled: boolean;
1961
- createdAt: string;
1962
- updatedAt: string;
1963
- }>, "many">;
1964
- nextCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1965
- totalPages: z$1.ZodNumber;
1966
- }, "strip", z$1.ZodTypeAny, {
1967
- items: {
1968
- id: string;
1969
- authConfig: z$1.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$1.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$1.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$1.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$1.infer<typeof ConnectedAccountListResponseSchema>;
2010
- declare const CreateConnectedAccountLinkOptionsSchema: z$1.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$1.ZodOptional<z$1.ZodString>;
2021
- }, "strip", z$1.ZodTypeAny, {
2022
- callbackUrl?: string | undefined;
2023
- }, {
2024
- callbackUrl?: string | undefined;
2025
- }>;
2026
- type CreateConnectedAccountLinkOptions = z$1.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
2027
- declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
2028
- redirectUrl: z$1.ZodString;
2029
- }, "strip", z$1.ZodTypeAny, {
2030
- redirectUrl: string;
2031
- }, {
2032
- redirectUrl: string;
2033
- }>;
2034
- type CreateConnectedAccountLinkResponse = z$1.infer<typeof CreateConnectedAccountLinkResponseSchema>;
2035
- declare const ConnectedAccountRefreshOptionsSchema: z$1.ZodObject<{
2036
- redirectUrl: z$1.ZodOptional<z$1.ZodString>;
2037
- validateCredentials: z$1.ZodOptional<z$1.ZodBoolean>;
2038
- }, "strip", z$1.ZodTypeAny, {
2039
- redirectUrl?: string | undefined;
2040
- validateCredentials?: boolean | undefined;
2041
- }, {
2042
- redirectUrl?: string | undefined;
2043
- validateCredentials?: boolean | undefined;
2044
- }>;
2045
- type ConnectedAccountRefreshOptions = z$1.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";
@@ -2354,13 +2028,13 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2354
2028
  noOfConnections: number;
2355
2029
  uuid: string;
2356
2030
  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;
2031
+ isComposioManaged?: boolean | undefined;
2357
2032
  credentials?: Record<string, unknown> | undefined;
2358
2033
  toolAccessConfig?: {
2359
2034
  toolsForConnectedAccountCreation?: string[] | undefined;
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;
@@ -2377,13 +2051,13 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2377
2051
  noOfConnections: number;
2378
2052
  uuid: string;
2379
2053
  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;
2054
+ isComposioManaged?: boolean | undefined;
2380
2055
  credentials?: Record<string, unknown> | undefined;
2381
2056
  toolAccessConfig?: {
2382
2057
  toolsForConnectedAccountCreation?: string[] | undefined;
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;
@@ -2458,13 +2132,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2458
2132
  noOfConnections: number;
2459
2133
  uuid: string;
2460
2134
  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;
2135
+ isComposioManaged?: boolean | undefined;
2461
2136
  credentials?: Record<string, unknown> | undefined;
2462
2137
  toolAccessConfig?: {
2463
2138
  toolsForConnectedAccountCreation?: string[] | undefined;
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;
@@ -2481,13 +2155,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2481
2155
  noOfConnections: number;
2482
2156
  uuid: string;
2483
2157
  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;
2158
+ isComposioManaged?: boolean | undefined;
2484
2159
  credentials?: Record<string, unknown> | undefined;
2485
2160
  toolAccessConfig?: {
2486
2161
  toolsForConnectedAccountCreation?: string[] | undefined;
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;
@@ -2508,13 +2182,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2508
2182
  noOfConnections: number;
2509
2183
  uuid: string;
2510
2184
  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;
2185
+ isComposioManaged?: boolean | undefined;
2511
2186
  credentials?: Record<string, unknown> | undefined;
2512
2187
  toolAccessConfig?: {
2513
2188
  toolsForConnectedAccountCreation?: string[] | undefined;
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;
@@ -2535,13 +2209,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2535
2209
  noOfConnections: number;
2536
2210
  uuid: string;
2537
2211
  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;
2212
+ isComposioManaged?: boolean | undefined;
2538
2213
  credentials?: Record<string, unknown> | undefined;
2539
2214
  toolAccessConfig?: {
2540
2215
  toolsForConnectedAccountCreation?: string[] | undefined;
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$1.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
  }>;
@@ -2935,9 +2609,9 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
2935
2609
  }, "strip", z$1.ZodTypeAny, {
2936
2610
  connectedAccountId: string;
2937
2611
  id: string;
2938
- state: Record<string, unknown>;
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;
@@ -2945,9 +2619,9 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
2945
2619
  }, {
2946
2620
  connectedAccountId: string;
2947
2621
  id: string;
2948
- state: Record<string, unknown>;
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;
@@ -2967,9 +2641,9 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
2967
2641
  }, "strip", z$1.ZodTypeAny, {
2968
2642
  connectedAccountId: string;
2969
2643
  id: string;
2970
- state: Record<string, unknown>;
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;
@@ -2977,9 +2651,9 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
2977
2651
  }, {
2978
2652
  connectedAccountId: string;
2979
2653
  id: string;
2980
- state: Record<string, unknown>;
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;
@@ -2991,9 +2665,9 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
2991
2665
  items: {
2992
2666
  connectedAccountId: string;
2993
2667
  id: string;
2994
- state: Record<string, unknown>;
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;
@@ -3005,9 +2679,9 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3005
2679
  items: {
3006
2680
  connectedAccountId: string;
3007
2681
  id: string;
3008
- state: Record<string, unknown>;
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;
@@ -3101,7 +2775,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3101
2775
  }, "strip", z$1.ZodTypeAny, {
3102
2776
  toolkitSlug: string;
3103
2777
  id: string;
3104
- uuid: string;
3105
2778
  connectedAccount: {
3106
2779
  status: "ACTIVE" | "INACTIVE";
3107
2780
  userId: string;
@@ -3110,13 +2783,13 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3110
2783
  authConfigId: string;
3111
2784
  authConfigUUID: string;
3112
2785
  };
2786
+ uuid: string;
3113
2787
  triggerSlug: string;
3114
2788
  triggerConfig: Record<string, unknown>;
3115
2789
  triggerData?: string | undefined;
3116
2790
  }, {
3117
2791
  toolkitSlug: string;
3118
2792
  id: string;
3119
- uuid: string;
3120
2793
  connectedAccount: {
3121
2794
  status: "ACTIVE" | "INACTIVE";
3122
2795
  userId: string;
@@ -3125,6 +2798,7 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3125
2798
  authConfigId: string;
3126
2799
  authConfigUUID: string;
3127
2800
  };
2801
+ uuid: string;
3128
2802
  triggerSlug: string;
3129
2803
  triggerConfig: Record<string, unknown>;
3130
2804
  triggerData?: string | undefined;
@@ -3134,10 +2808,10 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3134
2808
  userId: string;
3135
2809
  id: string;
3136
2810
  uuid: string;
2811
+ triggerSlug: string;
3137
2812
  metadata: {
3138
2813
  toolkitSlug: string;
3139
2814
  id: string;
3140
- uuid: string;
3141
2815
  connectedAccount: {
3142
2816
  status: "ACTIVE" | "INACTIVE";
3143
2817
  userId: string;
@@ -3146,11 +2820,11 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3146
2820
  authConfigId: string;
3147
2821
  authConfigUUID: string;
3148
2822
  };
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
  }, {
@@ -3158,10 +2832,10 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3158
2832
  userId: string;
3159
2833
  id: string;
3160
2834
  uuid: string;
2835
+ triggerSlug: string;
3161
2836
  metadata: {
3162
2837
  toolkitSlug: string;
3163
2838
  id: string;
3164
- uuid: string;
3165
2839
  connectedAccount: {
3166
2840
  status: "ACTIVE" | "INACTIVE";
3167
2841
  userId: string;
@@ -3170,11 +2844,11 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3170
2844
  authConfigId: string;
3171
2845
  authConfigUUID: string;
3172
2846
  };
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
  }>;
@@ -3244,8 +2918,8 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
3244
2918
  name: 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
  }, {
@@ -3257,8 +2931,8 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
3257
2931
  name: 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
  }>;
@@ -3294,8 +2968,8 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3294
2968
  name: 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
  }, {
@@ -3307,8 +2981,8 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3307
2981
  name: 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">;
@@ -3324,8 +2998,8 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3324
2998
  name: 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
  }[];
@@ -3341,8 +3015,8 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3341
3015
  name: 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$1.ZodObject<{
3421
3095
  }, "strip", z$1.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$1.infer<typeof WebhookPayloadV2Schema>;
3449
3123
  /** V3 webhook payload - generic envelope for all composio.* events */
@@ -3457,14 +3131,14 @@ declare const WebhookPayloadV3Schema: z$1.ZodObject<{
3457
3131
  type: string;
3458
3132
  data: Record<string, unknown>;
3459
3133
  id: string;
3460
- timestamp: string;
3461
3134
  metadata: Record<string, unknown>;
3135
+ timestamp: string;
3462
3136
  }, {
3463
3137
  type: string;
3464
3138
  data: Record<string, unknown>;
3465
3139
  id: string;
3466
- timestamp: string;
3467
3140
  metadata: Record<string, unknown>;
3141
+ timestamp: string;
3468
3142
  }>;
3469
3143
  type WebhookPayloadV3 = z$1.infer<typeof WebhookPayloadV3Schema>;
3470
3144
  /** V3 trigger-specific payload - has trigger metadata fields */
@@ -3499,32 +3173,32 @@ declare const WebhookTriggerPayloadV3Schema: z$1.ZodObject<{
3499
3173
  type: string;
3500
3174
  data: Record<string, unknown>;
3501
3175
  id: string;
3502
- timestamp: string;
3503
3176
  metadata: {
3504
- user_id: string;
3505
3177
  trigger_id: string;
3506
3178
  log_id: string;
3179
+ user_id: string;
3507
3180
  trigger_slug: string;
3508
3181
  connected_account_id: string;
3509
3182
  auth_config_id: string;
3510
3183
  } & {
3511
3184
  [k: string]: unknown;
3512
3185
  };
3186
+ timestamp: string;
3513
3187
  }, {
3514
3188
  type: string;
3515
3189
  data: Record<string, unknown>;
3516
3190
  id: string;
3517
- timestamp: string;
3518
3191
  metadata: {
3519
- user_id: string;
3520
3192
  trigger_id: string;
3521
3193
  log_id: string;
3194
+ user_id: string;
3522
3195
  trigger_slug: string;
3523
3196
  connected_account_id: string;
3524
3197
  auth_config_id: string;
3525
3198
  } & {
3526
3199
  [k: string]: unknown;
3527
3200
  };
3201
+ timestamp: string;
3528
3202
  }>;
3529
3203
  type WebhookTriggerPayloadV3 = z$1.infer<typeof WebhookTriggerPayloadV3Schema>;
3530
3204
  /** Union of all webhook payload versions */
@@ -3538,14 +3212,14 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
3538
3212
  type: string;
3539
3213
  data: Record<string, unknown>;
3540
3214
  id: string;
3541
- timestamp: string;
3542
3215
  metadata: Record<string, unknown>;
3216
+ timestamp: string;
3543
3217
  }, {
3544
3218
  type: string;
3545
3219
  data: Record<string, unknown>;
3546
3220
  id: string;
3547
- timestamp: string;
3548
3221
  metadata: Record<string, unknown>;
3222
+ timestamp: string;
3549
3223
  }>, z$1.ZodObject<{
3550
3224
  type: z$1.ZodString;
3551
3225
  timestamp: z$1.ZodString;
@@ -3572,29 +3246,29 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
3572
3246
  }, "strip", z$1.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$1.ZodObject<{
3599
3273
  trigger_name: z$1.ZodString;
3600
3274
  connection_id: z$1.ZodString;
@@ -3654,15 +3328,15 @@ declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
3654
3328
  tolerance: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
3655
3329
  }, "strip", z$1.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;
@@ -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.ZodObject<{
5296
- path: z.ZodOptional<z.ZodString>;
5297
- mountId: z.ZodDefault<z.ZodString>;
5298
- /** Pagination cursor from the previous response nextCursor field */
5299
- cursor: z.ZodOptional<z.ZodString>;
5300
- /** Maximum number of files to return per page (1-500) */
5301
- limit: z.ZodOptional<z.ZodNumber>;
5302
- }, "strip", z.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.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
5314
- declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
5315
- items: z.ZodArray<z.ZodObject<{
5316
- last_modified: z.ZodString;
5317
- mount_relative_path: z.ZodString;
5318
- sandbox_mount_prefix: z.ZodString;
5319
- size: z.ZodNumber;
5320
- }, "strip", z.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.ZodOptional<z.ZodString>;
5332
- }, "strip", z.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.infer<typeof FileListResponseSchema>;
5366
- declare const ToolRouterSessionFilesMountUploadOptionsSchema: z.ZodObject<{
5367
- /** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
5368
- remotePath: z.ZodOptional<z.ZodString>;
5369
- mountId: z.ZodDefault<z.ZodString>;
5370
- /** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
5371
- mimetype: z.ZodOptional<z.ZodString>;
5372
- }, "strip", z.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.input<typeof ToolRouterSessionFilesMountUploadOptionsSchema>;
5382
- declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z.ZodObject<{
5383
- mountId: z.ZodDefault<z.ZodString>;
5384
- }, "strip", z.ZodTypeAny, {
5385
- mountId: string;
5386
- }, {
5387
- mountId?: string | undefined;
5388
- }>;
5389
- type ToolRouterSessionFilesMountDownloadOptions = z.input<typeof ToolRouterSessionFilesMountDownloadOptionsSchema>;
5390
- declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z.ZodObject<{
5391
- mountId: z.ZodDefault<z.ZodString>;
5392
- }, "strip", z.ZodTypeAny, {
5393
- mountId: string;
5394
- }, {
5395
- mountId?: string | undefined;
5396
- }>;
5397
- type ToolRouterSessionFilesMountDeleteOptions = z.input<typeof ToolRouterSessionFilesMountDeleteOptionsSchema>;
5398
- declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
5399
- expires_at: z.ZodString;
5400
- mount_relative_path: z.ZodString;
5401
- sandbox_mount_prefix: z.ZodString;
5402
- download_url: z.ZodString;
5403
- }, "strip", z.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.infer<typeof RemoteFileDataSchema>;
5426
- declare const FileDeleteResponseSchema: z.ZodEffects<z.ZodObject<{
5427
- mount_relative_path: z.ZodString;
5428
- sandbox_mount_prefix: z.ZodString;
5429
- }, "strip", z.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.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.ZodEnum<["http", "sse"]>;
5643
- type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
5644
- declare const ToolRouterConfigManageConnectionsSchema: z.ZodObject<{
5645
- enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5646
- callbackUrl: z.ZodOptional<z.ZodString>;
5647
- waitForConnections: z.ZodOptional<z.ZodBoolean>;
5648
- }, "strict", z.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.ZodArray<z.ZodString, "many">;
5658
- declare const ToolRouterToolkitsDisabledConfigSchema: z.ZodObject<{
5659
- disable: z.ZodArray<z.ZodString, "many">;
5660
- }, "strict", z.ZodTypeAny, {
5661
- disable: string[];
5662
- }, {
5663
- disable: string[];
5664
- }>;
5665
- declare const ToolRouterToolkitsEnabledConfigSchema: z.ZodObject<{
5666
- enable: z.ZodArray<z.ZodString, "many">;
5667
- }, "strict", z.ZodTypeAny, {
5668
- enable: string[];
5669
- }, {
5670
- enable: string[];
5671
- }>;
5672
- declare const ToolRouterManageConnectionsConfigSchema: z.ZodObject<{
5673
- enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5674
- callbackUrl: z.ZodOptional<z.ZodString>;
5675
- }, "strip", z.ZodTypeAny, {
5676
- enable: boolean;
5677
- callbackUrl?: string | undefined;
5678
- }, {
5679
- callbackUrl?: string | undefined;
5680
- enable?: boolean | undefined;
5681
- }>;
5682
- declare const ToolRouterTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
5683
- declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
5684
- enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5685
- disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5686
- }, "strict", z.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.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
5694
- enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5695
- disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5696
- }, "strict", z.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.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.ZodArray<z.ZodString, "many">;
5727
- type ToolRouterToolsParam = z.infer<typeof ToolRouterToolsParamSchema>;
5728
- declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
5729
- enable: z.ZodArray<z.ZodString, "many">;
5730
- }, "strict", z.ZodTypeAny, {
5731
- enable: string[];
5732
- }, {
5733
- enable: string[];
5734
- }>, z.ZodObject<{
5735
- disable: z.ZodArray<z.ZodString, "many">;
5736
- }, "strict", z.ZodTypeAny, {
5737
- disable: string[];
5738
- }, {
5739
- disable: string[];
5740
- }>, z.ZodObject<{
5741
- tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
5742
- enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5743
- disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5744
- }, "strict", z.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.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.infer<typeof ToolRouterConfigToolsSchema>;
5781
- declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
5782
- tools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
5783
- enable: z.ZodArray<z.ZodString, "many">;
5784
- }, "strict", z.ZodTypeAny, {
5785
- enable: string[];
5786
- }, {
5787
- enable: string[];
5788
- }>, z.ZodObject<{
5789
- disable: z.ZodArray<z.ZodString, "many">;
5790
- }, "strict", z.ZodTypeAny, {
5791
- disable: string[];
5792
- }, {
5793
- disable: string[];
5794
- }>, z.ZodObject<{
5795
- tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
5796
- enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5797
- disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5798
- }, "strict", z.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.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.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
5835
- enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5836
- disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
5837
- }, "strict", z.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.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
5845
- disable: z.ZodArray<z.ZodString, "many">;
5846
- }, "strict", z.ZodTypeAny, {
5847
- disable: string[];
5848
- }, {
5849
- disable: string[];
5850
- }>, z.ZodObject<{
5851
- enable: z.ZodArray<z.ZodString, "many">;
5852
- }, "strict", z.ZodTypeAny, {
5853
- enable: string[];
5854
- }, {
5855
- enable: string[];
5856
- }>]>>>;
5857
- authConfigs: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
5858
- connectedAccounts: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
5859
- manageConnections: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
5860
- enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5861
- callbackUrl: z.ZodOptional<z.ZodString>;
5862
- waitForConnections: z.ZodOptional<z.ZodBoolean>;
5863
- }, "strict", z.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.ZodOptional<z.ZodOptional<z.ZodObject<{
5873
- enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
5874
- autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
5875
- }, "strip", z.ZodTypeAny, {
5876
- enableProxyExecution?: boolean | undefined;
5877
- autoOffloadThreshold?: number | undefined;
5878
- }, {
5879
- enableProxyExecution?: boolean | undefined;
5880
- autoOffloadThreshold?: number | undefined;
5881
- }>>>;
5882
- experimental: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5883
- assistivePrompt: z.ZodOptional<z.ZodObject<{
5884
- userTimezone: z.ZodOptional<z.ZodString>;
5885
- }, "strip", z.ZodTypeAny, {
5886
- userTimezone?: string | undefined;
5887
- }, {
5888
- userTimezone?: string | undefined;
5889
- }>>;
5890
- }, "strip", z.ZodTypeAny, {
5891
- assistivePrompt?: {
5892
- userTimezone?: string | undefined;
5893
- } | undefined;
5894
- }, {
5895
- assistivePrompt?: {
5896
- userTimezone?: string | undefined;
5897
- } | undefined;
5898
- }>>>;
5899
- }, "strip", z.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.infer<typeof ToolRouterCreateSessionConfigSchema>;
5988
- declare const ToolkitConnectionStateSchema: z.ZodObject<{
5989
- slug: z.ZodString;
5990
- name: z.ZodString;
5991
- logo: z.ZodOptional<z.ZodString>;
5992
- isNoAuth: z.ZodDefault<z.ZodBoolean>;
5993
- connection: z.ZodOptional<z.ZodObject<{
5994
- isActive: z.ZodBoolean;
5995
- authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5996
- id: z.ZodString;
5997
- mode: z.ZodString;
5998
- isComposioManaged: z.ZodBoolean;
5999
- }, "strip", z.ZodTypeAny, {
6000
- id: string;
6001
- isComposioManaged: boolean;
6002
- mode: string;
6003
- }, {
6004
- id: string;
6005
- isComposioManaged: boolean;
6006
- mode: string;
6007
- }>>>;
6008
- connectedAccount: z.ZodOptional<z.ZodObject<{
6009
- id: z.ZodString;
6010
- status: z.ZodString;
6011
- }, "strip", z.ZodTypeAny, {
6012
- status: string;
6013
- id: string;
6014
- }, {
6015
- status: string;
6016
- id: string;
6017
- }>>;
6018
- }, "strip", z.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.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.ZodObject<{
6077
- items: z.ZodArray<z.ZodObject<{
6078
- slug: z.ZodString;
6079
- name: z.ZodString;
6080
- logo: z.ZodOptional<z.ZodString>;
6081
- isNoAuth: z.ZodDefault<z.ZodBoolean>;
6082
- connection: z.ZodOptional<z.ZodObject<{
6083
- isActive: z.ZodBoolean;
6084
- authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6085
- id: z.ZodString;
6086
- mode: z.ZodString;
6087
- isComposioManaged: z.ZodBoolean;
6088
- }, "strip", z.ZodTypeAny, {
6089
- id: string;
6090
- isComposioManaged: boolean;
6091
- mode: string;
6092
- }, {
6093
- id: string;
6094
- isComposioManaged: boolean;
6095
- mode: string;
6096
- }>>>;
6097
- connectedAccount: z.ZodOptional<z.ZodObject<{
6098
- id: z.ZodString;
6099
- status: z.ZodString;
6100
- }, "strip", z.ZodTypeAny, {
6101
- status: string;
6102
- id: string;
6103
- }, {
6104
- status: string;
6105
- id: string;
6106
- }>>;
6107
- }, "strip", z.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.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.ZodOptional<z.ZodString>;
6166
- totalPages: z.ZodNumber;
6167
- }, "strip", z.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.infer<typeof ToolkitConnectionsDetailsSchema>;
6211
- type ToolkitConnectionState = z.infer<typeof ToolkitConnectionStateSchema>;
6212
- declare const ToolRouterMCPServerConfigSchema: z.ZodObject<{
6213
- type: z.ZodEnum<["http", "sse"]>;
6214
- url: z.ZodString;
6215
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6216
- }, "strip", z.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.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.ZodObject<{
6231
- toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6232
- nextCursor: z.ZodOptional<z.ZodString>;
6233
- limit: z.ZodOptional<z.ZodNumber>;
6234
- isConnected: z.ZodOptional<z.ZodBoolean>;
6235
- search: z.ZodOptional<z.ZodString>;
6236
- }, "strip", z.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.infer<typeof ToolRouterToolkitsOptionsSchema>;
6250
- type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
6251
- declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
6252
- success: z.ZodBoolean;
6253
- error: z.ZodNullable<z.ZodString>;
6254
- results: z.ZodArray<z.ZodObject<{
6255
- index: z.ZodNumber;
6256
- useCase: z.ZodString;
6257
- primaryToolSlugs: z.ZodArray<z.ZodString, "many">;
6258
- relatedToolSlugs: z.ZodArray<z.ZodString, "many">;
6259
- toolkits: z.ZodArray<z.ZodString, "many">;
6260
- difficulty: z.ZodOptional<z.ZodString>;
6261
- error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6262
- executionGuidance: z.ZodOptional<z.ZodString>;
6263
- knownPitfalls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6264
- memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
6265
- planId: z.ZodOptional<z.ZodString>;
6266
- recommendedPlanSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6267
- referenceWorkbenchSnippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
6268
- code: z.ZodString;
6269
- description: z.ZodString;
6270
- }, "strip", z.ZodTypeAny, {
6271
- code: string;
6272
- description: string;
6273
- }, {
6274
- code: string;
6275
- description: string;
6276
- }>, "many">>;
6277
- }, "strip", z.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.ZodRecord<z.ZodString, z.ZodObject<{
6313
- toolSlug: z.ZodString;
6314
- toolkit: z.ZodString;
6315
- description: z.ZodOptional<z.ZodString>;
6316
- hasFullSchema: z.ZodOptional<z.ZodBoolean>;
6317
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6318
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6319
- schemaRef: z.ZodOptional<z.ZodObject<{
6320
- args: z.ZodObject<{
6321
- toolSlugs: z.ZodArray<z.ZodString, "many">;
6322
- }, "strip", z.ZodTypeAny, {
6323
- toolSlugs: string[];
6324
- }, {
6325
- toolSlugs: string[];
6326
- }>;
6327
- message: z.ZodString;
6328
- tool: z.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
6329
- }, "strip", z.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.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.ZodArray<z.ZodObject<{
6372
- toolkit: z.ZodString;
6373
- description: z.ZodString;
6374
- hasActiveConnection: z.ZodBoolean;
6375
- statusMessage: z.ZodString;
6376
- connectionDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6377
- currentUserInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6378
- }, "strip", z.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.ZodArray<z.ZodString, "many">;
6394
- session: z.ZodObject<{
6395
- id: z.ZodString;
6396
- generateId: z.ZodBoolean;
6397
- instructions: z.ZodString;
6398
- }, "strip", z.ZodTypeAny, {
6399
- id: string;
6400
- instructions: string;
6401
- generateId: boolean;
6402
- }, {
6403
- id: string;
6404
- instructions: string;
6405
- generateId: boolean;
6406
- }>;
6407
- timeInfo: z.ZodObject<{
6408
- currentTimeUtc: z.ZodString;
6409
- currentTimeUtcEpochSeconds: z.ZodNumber;
6410
- message: z.ZodString;
6411
- }, "strip", z.ZodTypeAny, {
6412
- message: string;
6413
- currentTimeUtc: string;
6414
- currentTimeUtcEpochSeconds: number;
6415
- }, {
6416
- message: string;
6417
- currentTimeUtc: string;
6418
- currentTimeUtcEpochSeconds: number;
6419
- }>;
6420
- }, "strip", z.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.infer<typeof ToolRouterSessionSearchResponseSchema>;
6532
- declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
6533
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6534
- error: z.ZodNullable<z.ZodString>;
6535
- logId: z.ZodString;
6536
- }, "strip", z.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.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 };