@composio/client 0.1.0-alpha.7 → 0.1.0-alpha.70

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 (758) hide show
  1. package/CHANGELOG.md +963 -0
  2. package/LICENSE +1 -1
  3. package/README.md +22 -35
  4. package/api-promise.js +2 -15
  5. package/api-promise.js.map +1 -1
  6. package/client.d.mts +85 -43
  7. package/client.d.mts.map +1 -1
  8. package/client.d.ts +85 -43
  9. package/client.d.ts.map +1 -1
  10. package/client.js +162 -108
  11. package/client.js.map +1 -1
  12. package/client.mjs +144 -67
  13. package/client.mjs.map +1 -1
  14. package/core/api-promise.d.mts +0 -1
  15. package/core/api-promise.d.mts.map +1 -1
  16. package/core/api-promise.d.ts +0 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.js +4 -14
  19. package/core/api-promise.js.map +1 -1
  20. package/core/api-promise.mjs +1 -11
  21. package/core/api-promise.mjs.map +1 -1
  22. package/core/error.d.mts +0 -1
  23. package/core/error.d.mts.map +1 -1
  24. package/core/error.d.ts +0 -1
  25. package/core/error.d.ts.map +1 -1
  26. package/core/error.js.map +1 -1
  27. package/core/error.mjs.map +1 -1
  28. package/core/resource.d.mts +1 -1
  29. package/core/resource.d.mts.map +1 -1
  30. package/core/resource.d.ts +1 -1
  31. package/core/resource.d.ts.map +1 -1
  32. package/core/resource.js.map +1 -1
  33. package/core/resource.mjs.map +1 -1
  34. package/error.js +2 -15
  35. package/error.js.map +1 -1
  36. package/internal/builtin-types.d.mts +0 -2
  37. package/internal/builtin-types.d.mts.map +1 -1
  38. package/internal/builtin-types.d.ts +0 -2
  39. package/internal/builtin-types.d.ts.map +1 -1
  40. package/internal/detect-platform.js +3 -3
  41. package/internal/detect-platform.js.map +1 -1
  42. package/internal/detect-platform.mjs +3 -3
  43. package/internal/detect-platform.mjs.map +1 -1
  44. package/internal/errors.d.mts.map +1 -1
  45. package/internal/errors.d.ts.map +1 -1
  46. package/internal/errors.js +2 -2
  47. package/internal/errors.js.map +1 -1
  48. package/internal/errors.mjs.map +1 -1
  49. package/internal/headers.d.mts +1 -2
  50. package/internal/headers.d.mts.map +1 -1
  51. package/internal/headers.d.ts +1 -2
  52. package/internal/headers.d.ts.map +1 -1
  53. package/internal/headers.js +7 -5
  54. package/internal/headers.js.map +1 -1
  55. package/internal/headers.mjs +7 -5
  56. package/internal/headers.mjs.map +1 -1
  57. package/internal/parse.d.mts +0 -1
  58. package/internal/parse.d.mts.map +1 -1
  59. package/internal/parse.d.ts +0 -1
  60. package/internal/parse.d.ts.map +1 -1
  61. package/internal/parse.js +6 -2
  62. package/internal/parse.js.map +1 -1
  63. package/internal/parse.mjs +5 -0
  64. package/internal/parse.mjs.map +1 -1
  65. package/internal/qs/formats.d.mts +1 -0
  66. package/internal/qs/formats.d.mts.map +1 -1
  67. package/internal/qs/formats.d.ts +1 -0
  68. package/internal/qs/formats.d.ts.map +1 -1
  69. package/internal/qs/formats.js +4 -2
  70. package/internal/qs/formats.js.map +1 -1
  71. package/internal/qs/formats.mjs +2 -1
  72. package/internal/qs/formats.mjs.map +1 -1
  73. package/internal/qs/stringify.d.mts.map +1 -1
  74. package/internal/qs/stringify.d.ts.map +1 -1
  75. package/internal/qs/stringify.js +16 -19
  76. package/internal/qs/stringify.js.map +1 -1
  77. package/internal/qs/stringify.mjs +17 -19
  78. package/internal/qs/stringify.mjs.map +1 -1
  79. package/internal/qs/utils.d.mts +1 -0
  80. package/internal/qs/utils.d.mts.map +1 -1
  81. package/internal/qs/utils.d.ts +1 -0
  82. package/internal/qs/utils.d.ts.map +1 -1
  83. package/internal/qs/utils.js +22 -21
  84. package/internal/qs/utils.js.map +1 -1
  85. package/internal/qs/utils.mjs +12 -12
  86. package/internal/qs/utils.mjs.map +1 -1
  87. package/internal/request-options.d.mts +43 -1
  88. package/internal/request-options.d.mts.map +1 -1
  89. package/internal/request-options.d.ts +43 -1
  90. package/internal/request-options.d.ts.map +1 -1
  91. package/internal/request-options.js.map +1 -1
  92. package/internal/request-options.mjs.map +1 -1
  93. package/internal/shim-types.d.mts +11 -22
  94. package/internal/shim-types.d.mts.map +1 -0
  95. package/internal/shim-types.d.ts +11 -22
  96. package/internal/shim-types.d.ts.map +1 -0
  97. package/internal/shim-types.js +4 -0
  98. package/internal/shim-types.js.map +1 -0
  99. package/{resources/org.mjs → internal/shim-types.mjs} +2 -2
  100. package/internal/shim-types.mjs.map +1 -0
  101. package/internal/shims.d.mts +2 -2
  102. package/internal/shims.d.mts.map +1 -1
  103. package/internal/shims.d.ts +2 -2
  104. package/internal/shims.d.ts.map +1 -1
  105. package/internal/shims.js +5 -6
  106. package/internal/shims.js.map +1 -1
  107. package/internal/shims.mjs.map +1 -1
  108. package/internal/to-file.d.mts +1 -2
  109. package/internal/to-file.d.mts.map +1 -1
  110. package/internal/to-file.d.ts +1 -2
  111. package/internal/to-file.d.ts.map +1 -1
  112. package/internal/to-file.js +5 -5
  113. package/internal/to-file.js.map +1 -1
  114. package/internal/to-file.mjs +4 -3
  115. package/internal/to-file.mjs.map +1 -1
  116. package/internal/tslib.js +81 -0
  117. package/internal/tslib.mjs +17 -0
  118. package/internal/types.d.mts +12 -11
  119. package/internal/types.d.mts.map +1 -1
  120. package/internal/types.d.ts +12 -11
  121. package/internal/types.d.ts.map +1 -1
  122. package/internal/uploads.d.mts +1 -3
  123. package/internal/uploads.d.mts.map +1 -1
  124. package/internal/uploads.d.ts +1 -3
  125. package/internal/uploads.d.ts.map +1 -1
  126. package/internal/uploads.js +17 -7
  127. package/internal/uploads.js.map +1 -1
  128. package/internal/uploads.mjs +13 -4
  129. package/internal/uploads.mjs.map +1 -1
  130. package/internal/utils/base64.d.mts.map +1 -1
  131. package/internal/utils/base64.d.ts.map +1 -1
  132. package/internal/utils/base64.js +12 -7
  133. package/internal/utils/base64.js.map +1 -1
  134. package/internal/utils/base64.mjs +12 -7
  135. package/internal/utils/base64.mjs.map +1 -1
  136. package/internal/utils/bytes.d.mts +4 -0
  137. package/internal/utils/bytes.d.mts.map +1 -0
  138. package/internal/utils/bytes.d.ts +4 -0
  139. package/internal/utils/bytes.d.ts.map +1 -0
  140. package/internal/utils/bytes.js +31 -0
  141. package/internal/utils/bytes.js.map +1 -0
  142. package/internal/utils/bytes.mjs +26 -0
  143. package/internal/utils/bytes.mjs.map +1 -0
  144. package/internal/utils/env.d.mts.map +1 -1
  145. package/internal/utils/env.d.ts.map +1 -1
  146. package/internal/utils/env.js +2 -2
  147. package/internal/utils/env.js.map +1 -1
  148. package/internal/utils/env.mjs +2 -2
  149. package/internal/utils/env.mjs.map +1 -1
  150. package/internal/utils/log.d.mts +0 -1
  151. package/internal/utils/log.d.mts.map +1 -1
  152. package/internal/utils/log.d.ts +0 -1
  153. package/internal/utils/log.d.ts.map +1 -1
  154. package/internal/utils/log.js +3 -3
  155. package/internal/utils/log.js.map +1 -1
  156. package/internal/utils/log.mjs +1 -1
  157. package/internal/utils/log.mjs.map +1 -1
  158. package/internal/utils/path.d.mts.map +1 -1
  159. package/internal/utils/path.d.ts.map +1 -1
  160. package/internal/utils/path.js +28 -7
  161. package/internal/utils/path.js.map +1 -1
  162. package/internal/utils/path.mjs +27 -6
  163. package/internal/utils/path.mjs.map +1 -1
  164. package/internal/utils/query.d.mts +2 -0
  165. package/internal/utils/query.d.mts.map +1 -0
  166. package/internal/utils/query.d.ts +2 -0
  167. package/internal/utils/query.d.ts.map +1 -0
  168. package/internal/utils/query.js +10 -0
  169. package/internal/utils/query.js.map +1 -0
  170. package/internal/utils/query.mjs +6 -0
  171. package/internal/utils/query.mjs.map +1 -0
  172. package/internal/utils/sleep.d.mts.map +1 -1
  173. package/internal/utils/sleep.d.ts.map +1 -1
  174. package/internal/utils/uuid.d.mts +1 -1
  175. package/internal/utils/uuid.d.mts.map +1 -1
  176. package/internal/utils/uuid.d.ts +1 -1
  177. package/internal/utils/uuid.d.ts.map +1 -1
  178. package/internal/utils/uuid.js +1 -2
  179. package/internal/utils/uuid.js.map +1 -1
  180. package/internal/utils/uuid.mjs +1 -2
  181. package/internal/utils/uuid.mjs.map +1 -1
  182. package/internal/utils/values.d.mts +2 -0
  183. package/internal/utils/values.d.mts.map +1 -1
  184. package/internal/utils/values.d.ts +2 -0
  185. package/internal/utils/values.d.ts.map +1 -1
  186. package/internal/utils/values.js +11 -8
  187. package/internal/utils/values.js.map +1 -1
  188. package/internal/utils/values.mjs +5 -3
  189. package/internal/utils/values.mjs.map +1 -1
  190. package/internal/utils.d.mts +1 -0
  191. package/internal/utils.d.ts +1 -0
  192. package/internal/utils.js +8 -20
  193. package/internal/utils.js.map +1 -1
  194. package/internal/utils.mjs +1 -0
  195. package/package.json +14 -11
  196. package/resource.js +2 -15
  197. package/resource.js.map +1 -1
  198. package/resources/auth-configs.d.mts +511 -54
  199. package/resources/auth-configs.d.mts.map +1 -1
  200. package/resources/auth-configs.d.ts +511 -54
  201. package/resources/auth-configs.d.ts.map +1 -1
  202. package/resources/auth-configs.js +79 -6
  203. package/resources/auth-configs.js.map +1 -1
  204. package/resources/auth-configs.mjs +79 -6
  205. package/resources/auth-configs.mjs.map +1 -1
  206. package/resources/cli/cli.d.mts +120 -0
  207. package/resources/cli/cli.d.mts.map +1 -0
  208. package/resources/cli/cli.d.ts +120 -0
  209. package/resources/cli/cli.d.ts.map +1 -0
  210. package/resources/cli/cli.js +36 -0
  211. package/resources/cli/cli.js.map +1 -0
  212. package/resources/cli/cli.mjs +31 -0
  213. package/resources/cli/cli.mjs.map +1 -0
  214. package/resources/cli/index.d.mts +3 -0
  215. package/resources/cli/index.d.mts.map +1 -0
  216. package/resources/cli/index.d.ts +3 -0
  217. package/resources/cli/index.d.ts.map +1 -0
  218. package/resources/cli/index.js +9 -0
  219. package/resources/cli/index.js.map +1 -0
  220. package/resources/cli/index.mjs +4 -0
  221. package/resources/cli/index.mjs.map +1 -0
  222. package/resources/cli/realtime.d.mts +56 -0
  223. package/resources/cli/realtime.d.mts.map +1 -0
  224. package/resources/cli/realtime.d.ts +56 -0
  225. package/resources/cli/realtime.d.ts.map +1 -0
  226. package/resources/cli/realtime.js +25 -0
  227. package/resources/cli/realtime.js.map +1 -0
  228. package/resources/cli/realtime.mjs +21 -0
  229. package/resources/cli/realtime.mjs.map +1 -0
  230. package/resources/cli.d.mts +1 -123
  231. package/resources/cli.d.mts.map +1 -1
  232. package/resources/cli.d.ts +1 -123
  233. package/resources/cli.d.ts.map +1 -1
  234. package/resources/cli.js +2 -14
  235. package/resources/cli.js.map +1 -1
  236. package/resources/cli.mjs +1 -12
  237. package/resources/cli.mjs.map +1 -1
  238. package/resources/connected-accounts.d.mts +9729 -223
  239. package/resources/connected-accounts.d.mts.map +1 -1
  240. package/resources/connected-accounts.d.ts +9729 -223
  241. package/resources/connected-accounts.d.ts.map +1 -1
  242. package/resources/connected-accounts.js +124 -7
  243. package/resources/connected-accounts.js.map +1 -1
  244. package/resources/connected-accounts.mjs +124 -7
  245. package/resources/connected-accounts.mjs.map +1 -1
  246. package/resources/files.d.mts +152 -0
  247. package/resources/files.d.mts.map +1 -0
  248. package/resources/files.d.ts +152 -0
  249. package/resources/files.d.ts.map +1 -0
  250. package/resources/files.js +42 -0
  251. package/resources/files.js.map +1 -0
  252. package/resources/files.mjs +38 -0
  253. package/resources/files.mjs.map +1 -0
  254. package/resources/index.d.mts +13 -12
  255. package/resources/index.d.mts.map +1 -1
  256. package/resources/index.d.ts +13 -12
  257. package/resources/index.d.ts.map +1 -1
  258. package/resources/index.js +14 -12
  259. package/resources/index.js.map +1 -1
  260. package/resources/index.mjs +7 -6
  261. package/resources/index.mjs.map +1 -1
  262. package/resources/link.d.mts +2226 -0
  263. package/resources/link.d.mts.map +1 -0
  264. package/resources/link.d.ts +2226 -0
  265. package/resources/link.d.ts.map +1 -0
  266. package/resources/link.js +19 -0
  267. package/resources/link.js.map +1 -0
  268. package/resources/link.mjs +15 -0
  269. package/resources/link.mjs.map +1 -0
  270. package/resources/logs/index.d.mts +4 -0
  271. package/resources/logs/index.d.mts.map +1 -0
  272. package/resources/logs/index.d.ts +4 -0
  273. package/resources/logs/index.d.ts.map +1 -0
  274. package/resources/logs/index.js +11 -0
  275. package/resources/logs/index.js.map +1 -0
  276. package/resources/logs/index.mjs +5 -0
  277. package/resources/logs/index.mjs.map +1 -0
  278. package/resources/logs/logs.d.mts +14 -0
  279. package/resources/logs/logs.d.mts.map +1 -0
  280. package/resources/logs/logs.d.ts +14 -0
  281. package/resources/logs/logs.d.ts.map +1 -0
  282. package/resources/logs/logs.js +21 -0
  283. package/resources/logs/logs.js.map +1 -0
  284. package/resources/logs/logs.mjs +16 -0
  285. package/resources/logs/logs.mjs.map +1 -0
  286. package/resources/logs/tools.d.mts +173 -0
  287. package/resources/logs/tools.d.mts.map +1 -0
  288. package/resources/logs/tools.d.ts +173 -0
  289. package/resources/logs/tools.d.ts.map +1 -0
  290. package/resources/logs/tools.js +35 -0
  291. package/resources/logs/tools.js.map +1 -0
  292. package/resources/logs/tools.mjs +31 -0
  293. package/resources/logs/tools.mjs.map +1 -0
  294. package/resources/logs/triggers.d.mts +161 -0
  295. package/resources/logs/triggers.d.mts.map +1 -0
  296. package/resources/logs/triggers.d.ts +161 -0
  297. package/resources/logs/triggers.d.ts.map +1 -0
  298. package/resources/logs/triggers.js +36 -0
  299. package/resources/logs/triggers.js.map +1 -0
  300. package/resources/logs/triggers.mjs +32 -0
  301. package/resources/logs/triggers.mjs.map +1 -0
  302. package/resources/logs.d.mts +2 -0
  303. package/resources/logs.d.mts.map +1 -0
  304. package/resources/logs.d.ts +2 -0
  305. package/resources/logs.d.ts.map +1 -0
  306. package/resources/logs.js +6 -0
  307. package/resources/logs.js.map +1 -0
  308. package/resources/{auth.mjs → logs.mjs} +2 -2
  309. package/resources/logs.mjs.map +1 -0
  310. package/resources/mcp/custom.d.mts +105 -0
  311. package/resources/mcp/custom.d.mts.map +1 -0
  312. package/resources/mcp/custom.d.ts +105 -0
  313. package/resources/mcp/custom.d.ts.map +1 -0
  314. package/resources/mcp/custom.js +29 -0
  315. package/resources/mcp/custom.js.map +1 -0
  316. package/resources/mcp/custom.mjs +25 -0
  317. package/resources/mcp/custom.mjs.map +1 -0
  318. package/resources/mcp/generate.d.mts +65 -0
  319. package/resources/mcp/generate.d.mts.map +1 -0
  320. package/resources/mcp/generate.d.ts +65 -0
  321. package/resources/mcp/generate.d.ts.map +1 -0
  322. package/resources/mcp/generate.js +32 -0
  323. package/resources/mcp/generate.js.map +1 -0
  324. package/resources/mcp/generate.mjs +28 -0
  325. package/resources/mcp/generate.mjs.map +1 -0
  326. package/resources/mcp/index.d.mts +3 -2
  327. package/resources/mcp/index.d.mts.map +1 -1
  328. package/resources/mcp/index.d.ts +3 -2
  329. package/resources/mcp/index.d.ts.map +1 -1
  330. package/resources/mcp/index.js +5 -3
  331. package/resources/mcp/index.js.map +1 -1
  332. package/resources/mcp/index.mjs +2 -1
  333. package/resources/mcp/index.mjs.map +1 -1
  334. package/resources/mcp/mcp.d.mts +450 -175
  335. package/resources/mcp/mcp.d.mts.map +1 -1
  336. package/resources/mcp/mcp.d.ts +450 -175
  337. package/resources/mcp/mcp.d.ts.map +1 -1
  338. package/resources/mcp/mcp.js +95 -42
  339. package/resources/mcp/mcp.js.map +1 -1
  340. package/resources/mcp/mcp.mjs +94 -19
  341. package/resources/mcp/mcp.mjs.map +1 -1
  342. package/resources/mcp.js +2 -15
  343. package/resources/mcp.js.map +1 -1
  344. package/resources/migration.d.mts +35 -0
  345. package/resources/migration.d.mts.map +1 -0
  346. package/resources/migration.d.ts +35 -0
  347. package/resources/migration.d.ts.map +1 -0
  348. package/resources/migration.js +20 -0
  349. package/resources/migration.js.map +1 -0
  350. package/resources/migration.mjs +16 -0
  351. package/resources/migration.mjs.map +1 -0
  352. package/resources/project/config.d.mts +71 -0
  353. package/resources/project/config.d.mts.map +1 -0
  354. package/resources/project/config.d.ts +71 -0
  355. package/resources/project/config.d.ts.map +1 -0
  356. package/resources/project/config.js +33 -0
  357. package/resources/project/config.js.map +1 -0
  358. package/resources/project/config.mjs +29 -0
  359. package/resources/project/config.mjs.map +1 -0
  360. package/resources/project/index.d.mts +3 -0
  361. package/resources/project/index.d.mts.map +1 -0
  362. package/resources/project/index.d.ts +3 -0
  363. package/resources/project/index.d.ts.map +1 -0
  364. package/resources/project/index.js +9 -0
  365. package/resources/project/index.js.map +1 -0
  366. package/resources/project/index.mjs +4 -0
  367. package/resources/project/index.mjs.map +1 -0
  368. package/resources/project/project.d.mts +10 -0
  369. package/resources/project/project.d.mts.map +1 -0
  370. package/resources/project/project.d.ts +10 -0
  371. package/resources/project/project.d.ts.map +1 -0
  372. package/resources/project/project.js +17 -0
  373. package/resources/project/project.js.map +1 -0
  374. package/resources/project/project.mjs +12 -0
  375. package/resources/project/project.mjs.map +1 -0
  376. package/resources/{org/project.d.mts.map → project.d.mts.map} +1 -1
  377. package/resources/{org/project.d.ts.map → project.d.ts.map} +1 -1
  378. package/resources/project.js +6 -0
  379. package/resources/project.js.map +1 -0
  380. package/resources/project.mjs.map +1 -0
  381. package/resources/tool-router/index.d.mts +3 -0
  382. package/resources/tool-router/index.d.mts.map +1 -0
  383. package/resources/tool-router/index.d.ts +3 -0
  384. package/resources/tool-router/index.d.ts.map +1 -0
  385. package/resources/tool-router/index.js +9 -0
  386. package/resources/tool-router/index.js.map +1 -0
  387. package/resources/tool-router/index.mjs +4 -0
  388. package/resources/tool-router/index.mjs.map +1 -0
  389. package/resources/tool-router/session/files.d.mts +205 -0
  390. package/resources/tool-router/session/files.d.mts.map +1 -0
  391. package/resources/tool-router/session/files.d.ts +205 -0
  392. package/resources/tool-router/session/files.d.ts.map +1 -0
  393. package/resources/tool-router/session/files.js +98 -0
  394. package/resources/tool-router/session/files.js.map +1 -0
  395. package/resources/tool-router/session/files.mjs +94 -0
  396. package/resources/tool-router/session/files.mjs.map +1 -0
  397. package/resources/tool-router/session/index.d.mts +3 -0
  398. package/resources/tool-router/session/index.d.mts.map +1 -0
  399. package/resources/tool-router/session/index.d.ts +3 -0
  400. package/resources/tool-router/session/index.d.ts.map +1 -0
  401. package/resources/{auth → tool-router/session}/index.js +3 -3
  402. package/resources/tool-router/session/index.js.map +1 -0
  403. package/resources/tool-router/session/index.mjs +4 -0
  404. package/resources/tool-router/session/index.mjs.map +1 -0
  405. package/resources/tool-router/session/session.d.mts +3978 -0
  406. package/resources/tool-router/session/session.d.mts.map +1 -0
  407. package/resources/tool-router/session/session.d.ts +3978 -0
  408. package/resources/tool-router/session/session.d.ts.map +1 -0
  409. package/resources/tool-router/session/session.js +224 -0
  410. package/resources/tool-router/session/session.js.map +1 -0
  411. package/resources/tool-router/session/session.mjs +219 -0
  412. package/resources/tool-router/session/session.mjs.map +1 -0
  413. package/resources/tool-router/session.d.mts +2 -0
  414. package/resources/tool-router/session.d.mts.map +1 -0
  415. package/resources/tool-router/session.d.ts +2 -0
  416. package/resources/tool-router/session.d.ts.map +1 -0
  417. package/resources/tool-router/session.js +6 -0
  418. package/resources/tool-router/session.js.map +1 -0
  419. package/resources/tool-router/session.mjs +3 -0
  420. package/resources/tool-router/session.mjs.map +1 -0
  421. package/resources/tool-router/tool-router.d.mts +94 -0
  422. package/resources/tool-router/tool-router.d.mts.map +1 -0
  423. package/resources/tool-router/tool-router.d.ts +94 -0
  424. package/resources/tool-router/tool-router.d.ts.map +1 -0
  425. package/resources/tool-router/tool-router.js +49 -0
  426. package/resources/tool-router/tool-router.js.map +1 -0
  427. package/resources/tool-router/tool-router.mjs +44 -0
  428. package/resources/tool-router/tool-router.mjs.map +1 -0
  429. package/resources/tool-router.d.mts +2 -0
  430. package/resources/tool-router.d.mts.map +1 -0
  431. package/resources/tool-router.d.ts +2 -0
  432. package/resources/tool-router.d.ts.map +1 -0
  433. package/resources/tool-router.js +6 -0
  434. package/resources/tool-router.js.map +1 -0
  435. package/resources/tool-router.mjs +3 -0
  436. package/resources/tool-router.mjs.map +1 -0
  437. package/resources/toolkits.d.mts +314 -6
  438. package/resources/toolkits.d.mts.map +1 -1
  439. package/resources/toolkits.d.ts +314 -6
  440. package/resources/toolkits.d.ts.map +1 -1
  441. package/resources/toolkits.js +25 -4
  442. package/resources/toolkits.js.map +1 -1
  443. package/resources/toolkits.mjs +25 -4
  444. package/resources/toolkits.mjs.map +1 -1
  445. package/resources/tools.d.mts +1401 -41
  446. package/resources/tools.d.mts.map +1 -1
  447. package/resources/tools.d.ts +1401 -41
  448. package/resources/tools.d.ts.map +1 -1
  449. package/resources/tools.js +88 -9
  450. package/resources/tools.js.map +1 -1
  451. package/resources/tools.mjs +88 -9
  452. package/resources/tools.mjs.map +1 -1
  453. package/resources/trigger-instances/index.d.mts +2 -2
  454. package/resources/trigger-instances/index.d.mts.map +1 -1
  455. package/resources/trigger-instances/index.d.ts +2 -2
  456. package/resources/trigger-instances/index.d.ts.map +1 -1
  457. package/resources/trigger-instances/index.js +3 -3
  458. package/resources/trigger-instances/index.js.map +1 -1
  459. package/resources/trigger-instances/index.mjs +1 -1
  460. package/resources/trigger-instances/index.mjs.map +1 -1
  461. package/resources/trigger-instances/manage.d.mts +55 -0
  462. package/resources/trigger-instances/manage.d.mts.map +1 -0
  463. package/resources/trigger-instances/manage.d.ts +55 -0
  464. package/resources/trigger-instances/manage.d.ts.map +1 -0
  465. package/resources/trigger-instances/manage.js +45 -0
  466. package/resources/trigger-instances/manage.js.map +1 -0
  467. package/resources/trigger-instances/manage.mjs +41 -0
  468. package/resources/trigger-instances/manage.mjs.map +1 -0
  469. package/resources/trigger-instances/trigger-instances.d.mts +190 -43
  470. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  471. package/resources/trigger-instances/trigger-instances.d.ts +190 -43
  472. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  473. package/resources/trigger-instances/trigger-instances.js +36 -37
  474. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  475. package/resources/trigger-instances/trigger-instances.mjs +35 -14
  476. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  477. package/resources/trigger-instances.js +2 -15
  478. package/resources/trigger-instances.js.map +1 -1
  479. package/resources/triggers-types.d.mts +148 -12
  480. package/resources/triggers-types.d.mts.map +1 -1
  481. package/resources/triggers-types.d.ts +148 -12
  482. package/resources/triggers-types.d.ts.map +1 -1
  483. package/resources/triggers-types.js +19 -4
  484. package/resources/triggers-types.js.map +1 -1
  485. package/resources/triggers-types.mjs +19 -4
  486. package/resources/triggers-types.mjs.map +1 -1
  487. package/resources.js +2 -15
  488. package/resources.js.map +1 -1
  489. package/src/client.ts +239 -131
  490. package/src/core/resource.ts +1 -1
  491. package/src/internal/detect-platform.ts +3 -3
  492. package/src/internal/headers.ts +9 -8
  493. package/src/internal/parse.ts +6 -0
  494. package/src/internal/qs/formats.ts +2 -1
  495. package/src/internal/qs/stringify.ts +17 -20
  496. package/src/internal/qs/utils.ts +14 -14
  497. package/src/internal/request-options.ts +54 -0
  498. package/src/internal/shim-types.ts +26 -0
  499. package/src/internal/shims.ts +2 -2
  500. package/src/internal/to-file.ts +5 -3
  501. package/src/internal/types.ts +13 -12
  502. package/src/internal/uploads.ts +17 -5
  503. package/src/internal/utils/base64.ts +13 -10
  504. package/src/internal/utils/bytes.ts +32 -0
  505. package/src/internal/utils/env.ts +2 -2
  506. package/src/internal/utils/log.ts +1 -1
  507. package/src/internal/utils/path.ts +33 -8
  508. package/src/internal/utils/query.ts +7 -0
  509. package/src/internal/utils/uuid.ts +1 -3
  510. package/src/internal/utils/values.ts +6 -3
  511. package/src/internal/utils.ts +1 -0
  512. package/src/resources/auth-configs.ts +587 -73
  513. package/src/resources/cli/cli.ts +163 -0
  514. package/src/resources/cli/index.ts +15 -0
  515. package/src/resources/cli/realtime.ts +75 -0
  516. package/src/resources/cli.ts +1 -164
  517. package/src/resources/connected-accounts.ts +18343 -460
  518. package/src/resources/files.ts +197 -0
  519. package/src/resources/index.ts +30 -28
  520. package/src/resources/link.ts +4215 -0
  521. package/src/resources/logs/index.ts +10 -0
  522. package/src/resources/logs/logs.ts +31 -0
  523. package/src/resources/logs/tools.ts +239 -0
  524. package/src/resources/logs/triggers.ts +241 -0
  525. package/src/resources/{auth.ts → logs.ts} +1 -1
  526. package/src/resources/mcp/custom.ts +125 -0
  527. package/src/resources/mcp/generate.ts +77 -0
  528. package/src/resources/mcp/index.ts +3 -3
  529. package/src/resources/mcp/mcp.ts +490 -203
  530. package/src/resources/migration.ts +49 -0
  531. package/src/resources/project/config.ts +110 -0
  532. package/src/resources/project/index.ts +9 -0
  533. package/src/resources/project/project.ts +20 -0
  534. package/src/resources/tool-router/index.ts +33 -0
  535. package/src/resources/tool-router/session/files.ts +284 -0
  536. package/src/resources/tool-router/session/index.ts +39 -0
  537. package/src/resources/tool-router/session/session.ts +4983 -0
  538. package/src/resources/{org.ts → tool-router/session.ts} +1 -1
  539. package/src/resources/tool-router/tool-router.ts +168 -0
  540. package/src/resources/tool-router.ts +3 -0
  541. package/src/resources/toolkits.ts +361 -10
  542. package/src/resources/tools.ts +2172 -63
  543. package/src/resources/trigger-instances/index.ts +5 -9
  544. package/src/resources/trigger-instances/manage.ts +75 -0
  545. package/src/resources/trigger-instances/trigger-instances.ts +206 -69
  546. package/src/resources/triggers-types.ts +154 -16
  547. package/src/version.ts +1 -1
  548. package/uploads.js +2 -15
  549. package/uploads.js.map +1 -1
  550. package/version.d.mts +1 -1
  551. package/version.d.mts.map +1 -1
  552. package/version.d.ts +1 -1
  553. package/version.d.ts.map +1 -1
  554. package/version.js +1 -1
  555. package/version.js.map +1 -1
  556. package/version.mjs +1 -1
  557. package/version.mjs.map +1 -1
  558. package/internal/shims/crypto.d.mts +0 -13
  559. package/internal/shims/crypto.d.mts.map +0 -1
  560. package/internal/shims/crypto.d.ts +0 -13
  561. package/internal/shims/crypto.d.ts.map +0 -1
  562. package/internal/shims/crypto.js +0 -13
  563. package/internal/shims/crypto.js.map +0 -1
  564. package/internal/shims/crypto.mjs +0 -9
  565. package/internal/shims/crypto.mjs.map +0 -1
  566. package/internal/shims/file.d.mts +0 -23
  567. package/internal/shims/file.d.mts.map +0 -1
  568. package/internal/shims/file.d.ts +0 -23
  569. package/internal/shims/file.d.ts.map +0 -1
  570. package/internal/shims/file.js +0 -16
  571. package/internal/shims/file.js.map +0 -1
  572. package/internal/shims/file.mjs +0 -12
  573. package/internal/shims/file.mjs.map +0 -1
  574. package/internal/shims/getBuiltinModule.d.mts +0 -11
  575. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  576. package/internal/shims/getBuiltinModule.d.ts +0 -11
  577. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  578. package/internal/shims/getBuiltinModule.js +0 -71
  579. package/internal/shims/getBuiltinModule.js.map +0 -1
  580. package/internal/shims/getBuiltinModule.mjs +0 -67
  581. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  582. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  583. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  584. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  585. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  586. package/internal/shims/nullGetBuiltinModule.js +0 -5
  587. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  588. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  589. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  590. package/resources/action-execution.d.mts +0 -155
  591. package/resources/action-execution.d.mts.map +0 -1
  592. package/resources/action-execution.d.ts +0 -155
  593. package/resources/action-execution.d.ts.map +0 -1
  594. package/resources/action-execution.js +0 -19
  595. package/resources/action-execution.js.map +0 -1
  596. package/resources/action-execution.mjs +0 -15
  597. package/resources/action-execution.mjs.map +0 -1
  598. package/resources/auth/auth.d.mts +0 -10
  599. package/resources/auth/auth.d.mts.map +0 -1
  600. package/resources/auth/auth.d.ts +0 -10
  601. package/resources/auth/auth.d.ts.map +0 -1
  602. package/resources/auth/auth.js +0 -39
  603. package/resources/auth/auth.js.map +0 -1
  604. package/resources/auth/auth.mjs +0 -12
  605. package/resources/auth/auth.mjs.map +0 -1
  606. package/resources/auth/index.d.mts +0 -3
  607. package/resources/auth/index.d.mts.map +0 -1
  608. package/resources/auth/index.d.ts +0 -3
  609. package/resources/auth/index.d.ts.map +0 -1
  610. package/resources/auth/index.js.map +0 -1
  611. package/resources/auth/index.mjs +0 -4
  612. package/resources/auth/index.mjs.map +0 -1
  613. package/resources/auth/session.d.mts +0 -75
  614. package/resources/auth/session.d.mts.map +0 -1
  615. package/resources/auth/session.d.ts +0 -75
  616. package/resources/auth/session.d.ts.map +0 -1
  617. package/resources/auth/session.js +0 -12
  618. package/resources/auth/session.js.map +0 -1
  619. package/resources/auth/session.mjs +0 -8
  620. package/resources/auth/session.mjs.map +0 -1
  621. package/resources/auth.d.mts +0 -2
  622. package/resources/auth.d.mts.map +0 -1
  623. package/resources/auth.d.ts +0 -2
  624. package/resources/auth.d.ts.map +0 -1
  625. package/resources/auth.js +0 -19
  626. package/resources/auth.js.map +0 -1
  627. package/resources/auth.mjs.map +0 -1
  628. package/resources/mcp/command.d.mts +0 -34
  629. package/resources/mcp/command.d.mts.map +0 -1
  630. package/resources/mcp/command.d.ts +0 -34
  631. package/resources/mcp/command.d.ts.map +0 -1
  632. package/resources/mcp/command.js +0 -12
  633. package/resources/mcp/command.js.map +0 -1
  634. package/resources/mcp/command.mjs +0 -8
  635. package/resources/mcp/command.mjs.map +0 -1
  636. package/resources/org/api-key.d.mts +0 -17
  637. package/resources/org/api-key.d.mts.map +0 -1
  638. package/resources/org/api-key.d.ts +0 -17
  639. package/resources/org/api-key.d.ts.map +0 -1
  640. package/resources/org/api-key.js +0 -15
  641. package/resources/org/api-key.js.map +0 -1
  642. package/resources/org/api-key.mjs +0 -11
  643. package/resources/org/api-key.mjs.map +0 -1
  644. package/resources/org/index.d.mts +0 -4
  645. package/resources/org/index.d.mts.map +0 -1
  646. package/resources/org/index.d.ts +0 -4
  647. package/resources/org/index.d.ts.map +0 -1
  648. package/resources/org/index.js +0 -11
  649. package/resources/org/index.js.map +0 -1
  650. package/resources/org/index.mjs +0 -5
  651. package/resources/org/index.mjs.map +0 -1
  652. package/resources/org/org.d.mts +0 -14
  653. package/resources/org/org.d.mts.map +0 -1
  654. package/resources/org/org.d.ts +0 -14
  655. package/resources/org/org.d.ts.map +0 -1
  656. package/resources/org/org.js +0 -43
  657. package/resources/org/org.js.map +0 -1
  658. package/resources/org/org.mjs +0 -16
  659. package/resources/org/org.mjs.map +0 -1
  660. package/resources/org/project/api-keys.d.mts +0 -109
  661. package/resources/org/project/api-keys.d.mts.map +0 -1
  662. package/resources/org/project/api-keys.d.ts +0 -109
  663. package/resources/org/project/api-keys.d.ts.map +0 -1
  664. package/resources/org/project/api-keys.js +0 -23
  665. package/resources/org/project/api-keys.js.map +0 -1
  666. package/resources/org/project/api-keys.mjs +0 -19
  667. package/resources/org/project/api-keys.mjs.map +0 -1
  668. package/resources/org/project/index.d.mts +0 -5
  669. package/resources/org/project/index.d.mts.map +0 -1
  670. package/resources/org/project/index.d.ts +0 -5
  671. package/resources/org/project/index.d.ts.map +0 -1
  672. package/resources/org/project/index.js +0 -13
  673. package/resources/org/project/index.js.map +0 -1
  674. package/resources/org/project/index.mjs +0 -6
  675. package/resources/org/project/index.mjs.map +0 -1
  676. package/resources/org/project/project.d.mts +0 -90
  677. package/resources/org/project/project.d.mts.map +0 -1
  678. package/resources/org/project/project.d.ts +0 -90
  679. package/resources/org/project/project.d.ts.map +0 -1
  680. package/resources/org/project/project.js +0 -60
  681. package/resources/org/project/project.js.map +0 -1
  682. package/resources/org/project/project.mjs +0 -33
  683. package/resources/org/project/project.mjs.map +0 -1
  684. package/resources/org/project/trigger.d.mts +0 -51
  685. package/resources/org/project/trigger.d.mts.map +0 -1
  686. package/resources/org/project/trigger.d.ts +0 -51
  687. package/resources/org/project/trigger.d.ts.map +0 -1
  688. package/resources/org/project/trigger.js +0 -16
  689. package/resources/org/project/trigger.js.map +0 -1
  690. package/resources/org/project/trigger.mjs +0 -12
  691. package/resources/org/project/trigger.mjs.map +0 -1
  692. package/resources/org/project/webhook.d.mts +0 -92
  693. package/resources/org/project/webhook.d.mts.map +0 -1
  694. package/resources/org/project/webhook.d.ts +0 -92
  695. package/resources/org/project/webhook.d.ts.map +0 -1
  696. package/resources/org/project/webhook.js +0 -24
  697. package/resources/org/project/webhook.js.map +0 -1
  698. package/resources/org/project/webhook.mjs +0 -20
  699. package/resources/org/project/webhook.mjs.map +0 -1
  700. package/resources/org/project.js +0 -19
  701. package/resources/org/project.js.map +0 -1
  702. package/resources/org/project.mjs.map +0 -1
  703. package/resources/org.d.mts +0 -2
  704. package/resources/org.d.mts.map +0 -1
  705. package/resources/org.d.ts +0 -2
  706. package/resources/org.d.ts.map +0 -1
  707. package/resources/org.js +0 -19
  708. package/resources/org.js.map +0 -1
  709. package/resources/org.mjs.map +0 -1
  710. package/resources/team-members.d.mts +0 -57
  711. package/resources/team-members.d.mts.map +0 -1
  712. package/resources/team-members.d.ts +0 -57
  713. package/resources/team-members.d.ts.map +0 -1
  714. package/resources/team-members.js +0 -22
  715. package/resources/team-members.js.map +0 -1
  716. package/resources/team-members.mjs +0 -18
  717. package/resources/team-members.mjs.map +0 -1
  718. package/resources/trigger-instances/handle.d.mts +0 -25
  719. package/resources/trigger-instances/handle.d.mts.map +0 -1
  720. package/resources/trigger-instances/handle.d.ts +0 -25
  721. package/resources/trigger-instances/handle.d.ts.map +0 -1
  722. package/resources/trigger-instances/handle.js +0 -18
  723. package/resources/trigger-instances/handle.js.map +0 -1
  724. package/resources/trigger-instances/handle.mjs +0 -14
  725. package/resources/trigger-instances/handle.mjs.map +0 -1
  726. package/resources/trigger.d.mts +0 -73
  727. package/resources/trigger.d.mts.map +0 -1
  728. package/resources/trigger.d.ts +0 -73
  729. package/resources/trigger.d.ts.map +0 -1
  730. package/resources/trigger.js +0 -12
  731. package/resources/trigger.js.map +0 -1
  732. package/resources/trigger.mjs +0 -8
  733. package/resources/trigger.mjs.map +0 -1
  734. package/src/internal/shim-types.d.ts +0 -28
  735. package/src/internal/shims/crypto.ts +0 -18
  736. package/src/internal/shims/file.ts +0 -32
  737. package/src/internal/shims/getBuiltinModule.ts +0 -66
  738. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  739. package/src/resources/action-execution.ts +0 -244
  740. package/src/resources/auth/auth.ts +0 -15
  741. package/src/resources/auth/index.ts +0 -4
  742. package/src/resources/auth/session.ts +0 -127
  743. package/src/resources/mcp/command.ts +0 -47
  744. package/src/resources/org/api-key.ts +0 -30
  745. package/src/resources/org/index.ts +0 -12
  746. package/src/resources/org/org.ts +0 -39
  747. package/src/resources/org/project/api-keys.ts +0 -156
  748. package/src/resources/org/project/index.ts +0 -35
  749. package/src/resources/org/project/project.ts +0 -206
  750. package/src/resources/org/project/trigger.ts +0 -95
  751. package/src/resources/org/project/webhook.ts +0 -131
  752. package/src/resources/team-members.ts +0 -111
  753. package/src/resources/trigger-instances/handle.ts +0 -45
  754. package/src/resources/trigger.ts +0 -108
  755. /package/resources/{org/project.d.mts → project.d.mts} +0 -0
  756. /package/resources/{org/project.d.ts → project.d.ts} +0 -0
  757. /package/resources/{org/project.mjs → project.mjs} +0 -0
  758. /package/src/resources/{org/project.ts → project.ts} +0 -0
@@ -0,0 +1,3978 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as FilesAPI from "./files.js";
3
+ import { FileCreateDownloadURLParams, FileCreateDownloadURLResponse, FileCreateUploadURLParams, FileCreateUploadURLResponse, FileDeleteParams, FileDeleteResponse, FileListParams, FileListResponse, Files } from "./files.js";
4
+ import { APIPromise } from "../../../core/api-promise.js";
5
+ import { RequestOptions } from "../../../internal/request-options.js";
6
+ /**
7
+ * (Labs) Tool router endpoints
8
+ */
9
+ export declare class Session extends APIResource {
10
+ files: FilesAPI.Files;
11
+ /**
12
+ * Creates a new session for the tool router feature. This endpoint initializes a
13
+ * new session with specified toolkits and their authentication configurations. The
14
+ * session provides an isolated environment for testing and managing tool routing
15
+ * logic with scoped MCP server access.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const session = await client.toolRouter.session.create({
20
+ * user_id: 'user_123456789',
21
+ * });
22
+ * ```
23
+ */
24
+ create(body: SessionCreateParams, options?: RequestOptions): APIPromise<SessionCreateResponse>;
25
+ /**
26
+ * Retrieves an existing tool router session by its ID. Returns the session
27
+ * configuration, MCP server URL, and available tools.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const session = await client.toolRouter.session.retrieve(
32
+ * 'trs_1a2b3c4d5e6f',
33
+ * );
34
+ * ```
35
+ */
36
+ retrieve(sessionID: string, options?: RequestOptions): APIPromise<SessionRetrieveResponse>;
37
+ /**
38
+ * Fetch an existing tool router session by ID.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const response = await client.toolRouter.session.attach(
43
+ * 'trs_1a2b3c4d5e6f',
44
+ * );
45
+ * ```
46
+ */
47
+ attach(sessionID: string, body?: SessionAttachParams | null | undefined, options?: RequestOptions): APIPromise<SessionAttachResponse>;
48
+ /**
49
+ * Returns the session config history ordered by version DESC (newest first). The
50
+ * live (current) config appears once, on the first page only, with
51
+ * `is_current: true`; archived versions have `is_current: false`.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const response =
56
+ * await client.toolRouter.session.configHistory(
57
+ * 'trs_1a2b3c4d5e6f',
58
+ * );
59
+ * ```
60
+ */
61
+ configHistory(sessionID: string, query?: SessionConfigHistoryParams | null | undefined, options?: RequestOptions): APIPromise<SessionConfigHistoryResponse>;
62
+ /**
63
+ * Execute a tool (meta or app) within an existing tool router session.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const response = await client.toolRouter.session.execute(
68
+ * 'trs_LX9uJKBinWWr',
69
+ * { tool_slug: 'GITHUB_CREATE_AN_ISSUE' },
70
+ * );
71
+ * ```
72
+ */
73
+ execute(sessionID: string, body: SessionExecuteParams, options?: RequestOptions): APIPromise<SessionExecuteResponse>;
74
+ /**
75
+ * Execute a Composio meta tool (COMPOSIO\_\*) within an existing tool router
76
+ * session.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const response =
81
+ * await client.toolRouter.session.executeMeta(
82
+ * 'trs_LX9uJKBinWWr',
83
+ * { slug: 'COMPOSIO_MANAGE_CONNECTIONS' },
84
+ * );
85
+ * ```
86
+ */
87
+ executeMeta(sessionID: string, body: SessionExecuteMetaParams, options?: RequestOptions): APIPromise<SessionExecuteMetaResponse>;
88
+ /**
89
+ * Initiates an authentication link session for a specific toolkit within a tool
90
+ * router session. Returns a link token and redirect URL that users can use to
91
+ * complete the OAuth flow.
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * const response = await client.toolRouter.session.link(
96
+ * 'trs_LX9uJKBinWWr',
97
+ * { toolkit: 'github' },
98
+ * );
99
+ * ```
100
+ */
101
+ link(sessionID: string, body: SessionLinkParams, options?: RequestOptions): APIPromise<SessionLinkResponse>;
102
+ /**
103
+ * Partially updates the configuration of an existing tool router session. Only the
104
+ * fields provided in the request body will be updated. Uses optimistic concurrency
105
+ * control to prevent lost updates. The previous config is stored in config
106
+ * history.
107
+ *
108
+ * @example
109
+ * ```ts
110
+ * const response = await client.toolRouter.session.patch(
111
+ * 'trs_1a2b3c4d5e6f',
112
+ * );
113
+ * ```
114
+ */
115
+ patch(sessionID: string, body?: SessionPatchParams | null | undefined, options?: RequestOptions): APIPromise<SessionPatchResponse>;
116
+ /**
117
+ * Execute any native API call on a toolkit with authentication automatically
118
+ * injected from Composio. This endpoint proxies HTTP requests to third-party APIs
119
+ * using connected account credentials resolved from the session context. Provide
120
+ * the toolkit slug, API endpoint, and HTTP method — Composio handles
121
+ * authentication injection, abstracting away credential management. Supports all
122
+ * HTTP methods, custom headers/query parameters, and binary request/response
123
+ * bodies.
124
+ *
125
+ * @example
126
+ * ```ts
127
+ * const response =
128
+ * await client.toolRouter.session.proxyExecute(
129
+ * 'trs_LX9uJKBinWWr',
130
+ * {
131
+ * endpoint: '/api/v1/resources',
132
+ * method: 'GET',
133
+ * toolkit_slug: 'gmail',
134
+ * },
135
+ * );
136
+ * ```
137
+ */
138
+ proxyExecute(sessionID: string, body: SessionProxyExecuteParams, options?: RequestOptions): APIPromise<SessionProxyExecuteResponse>;
139
+ /**
140
+ * Search for tools matching a use case query within an existing tool router
141
+ * session.
142
+ *
143
+ * @example
144
+ * ```ts
145
+ * const response = await client.toolRouter.session.search(
146
+ * 'trs_LX9uJKBinWWr',
147
+ * {
148
+ * queries: [
149
+ * { use_case: 'Send a slack message to a channel' },
150
+ * ],
151
+ * },
152
+ * );
153
+ * ```
154
+ */
155
+ search(sessionID: string, body: SessionSearchParams, options?: RequestOptions): APIPromise<SessionSearchResponse>;
156
+ /**
157
+ * Retrieves a cursor-paginated list of toolkits available in the tool router
158
+ * session. Includes toolkit metadata, composio-managed auth schemes, and connected
159
+ * accounts if available. Optionally filter by specific toolkit slugs.
160
+ *
161
+ * @example
162
+ * ```ts
163
+ * const response = await client.toolRouter.session.toolkits(
164
+ * 'trs_1a2b3c4d5e6f',
165
+ * );
166
+ * ```
167
+ */
168
+ toolkits(sessionID: string, query?: SessionToolkitsParams | null | undefined, options?: RequestOptions): APIPromise<SessionToolkitsResponse>;
169
+ /**
170
+ * Returns tools available in a tool router session with complete schemas. Results
171
+ * are paginated; use `next_cursor` to fetch the next page.
172
+ *
173
+ * @example
174
+ * ```ts
175
+ * const response = await client.toolRouter.session.tools(
176
+ * 'session_id',
177
+ * );
178
+ * ```
179
+ */
180
+ tools(sessionID: string, query?: SessionToolsParams | null | undefined, options?: RequestOptions): APIPromise<SessionToolsResponse>;
181
+ }
182
+ export interface SessionCreateResponse {
183
+ /**
184
+ * The configuration used to create this session
185
+ */
186
+ config: SessionCreateResponse.Config;
187
+ /**
188
+ * Monotonic version of the config. Incremented on each PATCH. Use for optimistic
189
+ * concurrency control.
190
+ */
191
+ config_version: number;
192
+ mcp: SessionCreateResponse.Mcp;
193
+ /**
194
+ * The identifier of the session
195
+ */
196
+ session_id: string;
197
+ /**
198
+ * List of available tools in this session
199
+ */
200
+ tool_router_tools: Array<string>;
201
+ /**
202
+ * Experimental features including the generated system prompt. Only returned on
203
+ * session creation, not on GET.
204
+ */
205
+ experimental?: SessionCreateResponse.Experimental;
206
+ /**
207
+ * Advisory list — the session exists and is usable, but the listed issues may
208
+ * warrant attention.
209
+ */
210
+ warnings?: Array<SessionCreateResponse.Warning>;
211
+ }
212
+ export declare namespace SessionCreateResponse {
213
+ /**
214
+ * The configuration used to create this session
215
+ */
216
+ interface Config {
217
+ /**
218
+ * Execute helper configuration
219
+ */
220
+ execute: Config.Execute;
221
+ /**
222
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
223
+ * is returned as "all".
224
+ */
225
+ preload: Config.Preload;
226
+ /**
227
+ * Search helper configuration
228
+ */
229
+ search: Config.Search;
230
+ /**
231
+ * User identifier for this session
232
+ */
233
+ user_id: string;
234
+ /**
235
+ * Auth config overrides per toolkit
236
+ */
237
+ auth_configs?: {
238
+ [key: string]: string;
239
+ };
240
+ /**
241
+ * Per-toolkit connected account overrides (array of nano-IDs). Multi-account
242
+ * sessions can pin more than one account per toolkit; otherwise length is 1.
243
+ */
244
+ connected_accounts?: {
245
+ [key: string]: Array<string>;
246
+ };
247
+ /**
248
+ * Manage connections configuration
249
+ */
250
+ manage_connections?: Config.ManageConnections;
251
+ /**
252
+ * Multi-account configuration for this session.
253
+ */
254
+ multi_account?: Config.MultiAccount;
255
+ /**
256
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
257
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
258
+ * tool must NOT have any of. Both conditions must be satisfied.
259
+ */
260
+ tags?: Config.Tags;
261
+ /**
262
+ * Toolkit configuration - either enabled list or disabled list
263
+ */
264
+ toolkits?: Config.Enabled | Config.Disabled;
265
+ /**
266
+ * Tool-level configuration per toolkit
267
+ */
268
+ tools?: {
269
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
270
+ };
271
+ /**
272
+ * Workbench configuration
273
+ */
274
+ workbench?: Config.Workbench;
275
+ }
276
+ namespace Config {
277
+ /**
278
+ * Execute helper configuration
279
+ */
280
+ interface Execute {
281
+ enable_multi_execute?: boolean;
282
+ }
283
+ /**
284
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
285
+ * is returned as "all".
286
+ */
287
+ interface Preload {
288
+ /**
289
+ * Explicit preloaded tool slugs, or "all" when the session dynamically exposes all
290
+ * app tools allowed by its filters.
291
+ */
292
+ tools: Array<string> | 'all';
293
+ }
294
+ /**
295
+ * Search helper configuration
296
+ */
297
+ interface Search {
298
+ enable?: boolean;
299
+ }
300
+ /**
301
+ * Manage connections configuration
302
+ */
303
+ interface ManageConnections {
304
+ /**
305
+ * Custom callback URL for connected account auth flows
306
+ */
307
+ callback_url?: string;
308
+ /**
309
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
310
+ */
311
+ enable_connection_removal?: boolean;
312
+ /**
313
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
314
+ * Default false. May not work reliably with GPT models.
315
+ */
316
+ enable_wait_for_connections?: boolean;
317
+ /**
318
+ * Whether to enable the connection manager for automatic connection handling
319
+ */
320
+ enabled?: boolean;
321
+ }
322
+ /**
323
+ * Multi-account configuration for this session.
324
+ */
325
+ interface MultiAccount {
326
+ /**
327
+ * When true, enables multi-account mode for this session. When not set, falls back
328
+ * to org/project-level configuration.
329
+ */
330
+ enable?: boolean;
331
+ /**
332
+ * Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
333
+ * multi-account is enabled.
334
+ */
335
+ max_accounts_per_toolkit?: number;
336
+ /**
337
+ * When true, require explicit account selection when multiple accounts are
338
+ * connected. When false (default), use the first/default account.
339
+ */
340
+ require_explicit_selection?: boolean;
341
+ }
342
+ /**
343
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
344
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
345
+ * tool must NOT have any of. Both conditions must be satisfied.
346
+ */
347
+ interface Tags {
348
+ /**
349
+ * Tags that the tool must NOT have any of
350
+ */
351
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
352
+ /**
353
+ * Tags that the tool must have at least one of
354
+ */
355
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
356
+ }
357
+ interface Enabled {
358
+ enabled: Array<string>;
359
+ }
360
+ interface Disabled {
361
+ disabled: Array<string>;
362
+ }
363
+ interface Enabled {
364
+ enabled: Array<string>;
365
+ }
366
+ interface Disabled {
367
+ disabled: Array<string>;
368
+ }
369
+ interface Tags {
370
+ tags: Tags.Tags;
371
+ }
372
+ namespace Tags {
373
+ interface Tags {
374
+ /**
375
+ * Tags that the tool must NOT have any of
376
+ */
377
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
378
+ /**
379
+ * Tags that the tool must have at least one of
380
+ */
381
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
382
+ }
383
+ }
384
+ /**
385
+ * Workbench configuration
386
+ */
387
+ interface Workbench {
388
+ /**
389
+ * Character threshold after which tool execution response are saved to a file in
390
+ * workbench. Default is 20k.
391
+ */
392
+ auto_offload_threshold?: number;
393
+ /**
394
+ * Whether the workbench (code execution sandbox) is enabled. When false,
395
+ * COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
396
+ */
397
+ enable?: boolean;
398
+ /**
399
+ * Whether proxy execution is enabled in the workbench
400
+ */
401
+ proxy_execution_enabled?: boolean;
402
+ /**
403
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
404
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
405
+ */
406
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
407
+ }
408
+ }
409
+ interface Mcp {
410
+ /**
411
+ * The type of the MCP server. Can be http
412
+ */
413
+ type: 'http';
414
+ /**
415
+ * The URL of the MCP server
416
+ */
417
+ url: string;
418
+ }
419
+ /**
420
+ * Experimental features including the generated system prompt. Only returned on
421
+ * session creation, not on GET.
422
+ */
423
+ interface Experimental {
424
+ /**
425
+ * The assistive system prompt for the tool router session
426
+ */
427
+ assistive_prompt?: string;
428
+ /**
429
+ * User-defined custom toolkits with grouped tools (no-auth)
430
+ */
431
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
432
+ /**
433
+ * Custom tools — standalone or extending Composio toolkits
434
+ */
435
+ custom_tools?: Array<Experimental.CustomTool>;
436
+ }
437
+ namespace Experimental {
438
+ interface CustomToolkit {
439
+ description: string;
440
+ name: string;
441
+ slug: string;
442
+ tools: Array<CustomToolkit.Tool>;
443
+ }
444
+ namespace CustomToolkit {
445
+ interface Tool {
446
+ description: string;
447
+ input_schema: {
448
+ [key: string]: unknown;
449
+ };
450
+ name: string;
451
+ /**
452
+ * Original tool slug as provided by the user
453
+ */
454
+ original_slug: string;
455
+ /**
456
+ * Prefixed tool slug (e.g. LOCAL_CRM_FIND_CUSTOMER)
457
+ */
458
+ slug: string;
459
+ output_schema?: {
460
+ [key: string]: unknown;
461
+ };
462
+ }
463
+ }
464
+ interface CustomTool {
465
+ description: string;
466
+ input_schema: {
467
+ [key: string]: unknown;
468
+ };
469
+ name: string;
470
+ /**
471
+ * Original tool slug as provided by the user
472
+ */
473
+ original_slug: string;
474
+ /**
475
+ * Prefixed tool slug (e.g. LOCAL_GMAIL_GET_IMPORTANT_EMAILS)
476
+ */
477
+ slug: string;
478
+ extends_toolkit?: string;
479
+ output_schema?: {
480
+ [key: string]: unknown;
481
+ };
482
+ }
483
+ }
484
+ interface Warning {
485
+ /**
486
+ * Stable machine code identifying the advisory. Safe to switch on in client code.
487
+ */
488
+ code: 'PRELOAD_TOOLS_HIGH_CONTEXT_USAGE';
489
+ /**
490
+ * Human-readable description of the advisory. Suitable for logging or surfacing to
491
+ * end users.
492
+ */
493
+ message: string;
494
+ }
495
+ }
496
+ export interface SessionRetrieveResponse {
497
+ /**
498
+ * The configuration used to create this session
499
+ */
500
+ config: SessionRetrieveResponse.Config;
501
+ /**
502
+ * Monotonic version of the config. Incremented on each PATCH. Use for optimistic
503
+ * concurrency control.
504
+ */
505
+ config_version: number;
506
+ mcp: SessionRetrieveResponse.Mcp;
507
+ /**
508
+ * The identifier of the session
509
+ */
510
+ session_id: string;
511
+ /**
512
+ * List of available tools in this session
513
+ */
514
+ tool_router_tools: Array<string>;
515
+ /**
516
+ * Experimental features
517
+ */
518
+ experimental?: SessionRetrieveResponse.Experimental;
519
+ /**
520
+ * Advisory list — the session exists and is usable, but the listed issues may
521
+ * warrant attention.
522
+ */
523
+ warnings?: Array<SessionRetrieveResponse.Warning>;
524
+ }
525
+ export declare namespace SessionRetrieveResponse {
526
+ /**
527
+ * The configuration used to create this session
528
+ */
529
+ interface Config {
530
+ /**
531
+ * Execute helper configuration
532
+ */
533
+ execute: Config.Execute;
534
+ /**
535
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
536
+ * is returned as "all".
537
+ */
538
+ preload: Config.Preload;
539
+ /**
540
+ * Search helper configuration
541
+ */
542
+ search: Config.Search;
543
+ /**
544
+ * User identifier for this session
545
+ */
546
+ user_id: string;
547
+ /**
548
+ * Auth config overrides per toolkit
549
+ */
550
+ auth_configs?: {
551
+ [key: string]: string;
552
+ };
553
+ /**
554
+ * Per-toolkit connected account overrides (array of nano-IDs). Multi-account
555
+ * sessions can pin more than one account per toolkit; otherwise length is 1.
556
+ */
557
+ connected_accounts?: {
558
+ [key: string]: Array<string>;
559
+ };
560
+ /**
561
+ * Manage connections configuration
562
+ */
563
+ manage_connections?: Config.ManageConnections;
564
+ /**
565
+ * Multi-account configuration for this session.
566
+ */
567
+ multi_account?: Config.MultiAccount;
568
+ /**
569
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
570
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
571
+ * tool must NOT have any of. Both conditions must be satisfied.
572
+ */
573
+ tags?: Config.Tags;
574
+ /**
575
+ * Toolkit configuration - either enabled list or disabled list
576
+ */
577
+ toolkits?: Config.Enabled | Config.Disabled;
578
+ /**
579
+ * Tool-level configuration per toolkit
580
+ */
581
+ tools?: {
582
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
583
+ };
584
+ /**
585
+ * Workbench configuration
586
+ */
587
+ workbench?: Config.Workbench;
588
+ }
589
+ namespace Config {
590
+ /**
591
+ * Execute helper configuration
592
+ */
593
+ interface Execute {
594
+ enable_multi_execute?: boolean;
595
+ }
596
+ /**
597
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
598
+ * is returned as "all".
599
+ */
600
+ interface Preload {
601
+ /**
602
+ * Explicit preloaded tool slugs, or "all" when the session dynamically exposes all
603
+ * app tools allowed by its filters.
604
+ */
605
+ tools: Array<string> | 'all';
606
+ }
607
+ /**
608
+ * Search helper configuration
609
+ */
610
+ interface Search {
611
+ enable?: boolean;
612
+ }
613
+ /**
614
+ * Manage connections configuration
615
+ */
616
+ interface ManageConnections {
617
+ /**
618
+ * Custom callback URL for connected account auth flows
619
+ */
620
+ callback_url?: string;
621
+ /**
622
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
623
+ */
624
+ enable_connection_removal?: boolean;
625
+ /**
626
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
627
+ * Default false. May not work reliably with GPT models.
628
+ */
629
+ enable_wait_for_connections?: boolean;
630
+ /**
631
+ * Whether to enable the connection manager for automatic connection handling
632
+ */
633
+ enabled?: boolean;
634
+ }
635
+ /**
636
+ * Multi-account configuration for this session.
637
+ */
638
+ interface MultiAccount {
639
+ /**
640
+ * When true, enables multi-account mode for this session. When not set, falls back
641
+ * to org/project-level configuration.
642
+ */
643
+ enable?: boolean;
644
+ /**
645
+ * Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
646
+ * multi-account is enabled.
647
+ */
648
+ max_accounts_per_toolkit?: number;
649
+ /**
650
+ * When true, require explicit account selection when multiple accounts are
651
+ * connected. When false (default), use the first/default account.
652
+ */
653
+ require_explicit_selection?: boolean;
654
+ }
655
+ /**
656
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
657
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
658
+ * tool must NOT have any of. Both conditions must be satisfied.
659
+ */
660
+ interface Tags {
661
+ /**
662
+ * Tags that the tool must NOT have any of
663
+ */
664
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
665
+ /**
666
+ * Tags that the tool must have at least one of
667
+ */
668
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
669
+ }
670
+ interface Enabled {
671
+ enabled: Array<string>;
672
+ }
673
+ interface Disabled {
674
+ disabled: Array<string>;
675
+ }
676
+ interface Enabled {
677
+ enabled: Array<string>;
678
+ }
679
+ interface Disabled {
680
+ disabled: Array<string>;
681
+ }
682
+ interface Tags {
683
+ tags: Tags.Tags;
684
+ }
685
+ namespace Tags {
686
+ interface Tags {
687
+ /**
688
+ * Tags that the tool must NOT have any of
689
+ */
690
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
691
+ /**
692
+ * Tags that the tool must have at least one of
693
+ */
694
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
695
+ }
696
+ }
697
+ /**
698
+ * Workbench configuration
699
+ */
700
+ interface Workbench {
701
+ /**
702
+ * Character threshold after which tool execution response are saved to a file in
703
+ * workbench. Default is 20k.
704
+ */
705
+ auto_offload_threshold?: number;
706
+ /**
707
+ * Whether the workbench (code execution sandbox) is enabled. When false,
708
+ * COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
709
+ */
710
+ enable?: boolean;
711
+ /**
712
+ * Whether proxy execution is enabled in the workbench
713
+ */
714
+ proxy_execution_enabled?: boolean;
715
+ /**
716
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
717
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
718
+ */
719
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
720
+ }
721
+ }
722
+ interface Mcp {
723
+ /**
724
+ * The type of the MCP server. Can be http
725
+ */
726
+ type: 'http';
727
+ /**
728
+ * The URL of the MCP server
729
+ */
730
+ url: string;
731
+ }
732
+ /**
733
+ * Experimental features
734
+ */
735
+ interface Experimental {
736
+ /**
737
+ * The assistive system prompt for the tool router session
738
+ */
739
+ assistive_prompt?: string;
740
+ /**
741
+ * User-defined custom toolkits with grouped tools (no-auth)
742
+ */
743
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
744
+ /**
745
+ * Custom tools — standalone or extending Composio toolkits
746
+ */
747
+ custom_tools?: Array<Experimental.CustomTool>;
748
+ }
749
+ namespace Experimental {
750
+ interface CustomToolkit {
751
+ description: string;
752
+ name: string;
753
+ slug: string;
754
+ tools: Array<CustomToolkit.Tool>;
755
+ }
756
+ namespace CustomToolkit {
757
+ interface Tool {
758
+ description: string;
759
+ input_schema: {
760
+ [key: string]: unknown;
761
+ };
762
+ name: string;
763
+ /**
764
+ * Original tool slug as provided by the user
765
+ */
766
+ original_slug: string;
767
+ /**
768
+ * Prefixed tool slug (e.g. LOCAL_CRM_FIND_CUSTOMER)
769
+ */
770
+ slug: string;
771
+ output_schema?: {
772
+ [key: string]: unknown;
773
+ };
774
+ }
775
+ }
776
+ interface CustomTool {
777
+ description: string;
778
+ input_schema: {
779
+ [key: string]: unknown;
780
+ };
781
+ name: string;
782
+ /**
783
+ * Original tool slug as provided by the user
784
+ */
785
+ original_slug: string;
786
+ /**
787
+ * Prefixed tool slug (e.g. LOCAL_GMAIL_GET_IMPORTANT_EMAILS)
788
+ */
789
+ slug: string;
790
+ extends_toolkit?: string;
791
+ output_schema?: {
792
+ [key: string]: unknown;
793
+ };
794
+ }
795
+ }
796
+ interface Warning {
797
+ /**
798
+ * Stable machine code identifying the advisory. Safe to switch on in client code.
799
+ */
800
+ code: 'PRELOAD_TOOLS_HIGH_CONTEXT_USAGE';
801
+ /**
802
+ * Human-readable description of the advisory. Suitable for logging or surfacing to
803
+ * end users.
804
+ */
805
+ message: string;
806
+ }
807
+ }
808
+ export interface SessionAttachResponse {
809
+ /**
810
+ * The configuration used to create this session
811
+ */
812
+ config: SessionAttachResponse.Config;
813
+ /**
814
+ * Monotonic version of the config. Incremented on each PATCH. Use for optimistic
815
+ * concurrency control.
816
+ */
817
+ config_version: number;
818
+ mcp: SessionAttachResponse.Mcp;
819
+ /**
820
+ * The identifier of the session
821
+ */
822
+ session_id: string;
823
+ /**
824
+ * List of available tools in this session
825
+ */
826
+ tool_router_tools: Array<string>;
827
+ /**
828
+ * Experimental features
829
+ */
830
+ experimental?: SessionAttachResponse.Experimental;
831
+ /**
832
+ * Advisory list — the session exists and is usable, but the listed issues may
833
+ * warrant attention.
834
+ */
835
+ warnings?: Array<SessionAttachResponse.Warning>;
836
+ }
837
+ export declare namespace SessionAttachResponse {
838
+ /**
839
+ * The configuration used to create this session
840
+ */
841
+ interface Config {
842
+ /**
843
+ * Execute helper configuration
844
+ */
845
+ execute: Config.Execute;
846
+ /**
847
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
848
+ * is returned as "all".
849
+ */
850
+ preload: Config.Preload;
851
+ /**
852
+ * Search helper configuration
853
+ */
854
+ search: Config.Search;
855
+ /**
856
+ * User identifier for this session
857
+ */
858
+ user_id: string;
859
+ /**
860
+ * Auth config overrides per toolkit
861
+ */
862
+ auth_configs?: {
863
+ [key: string]: string;
864
+ };
865
+ /**
866
+ * Per-toolkit connected account overrides (array of nano-IDs). Multi-account
867
+ * sessions can pin more than one account per toolkit; otherwise length is 1.
868
+ */
869
+ connected_accounts?: {
870
+ [key: string]: Array<string>;
871
+ };
872
+ /**
873
+ * Manage connections configuration
874
+ */
875
+ manage_connections?: Config.ManageConnections;
876
+ /**
877
+ * Multi-account configuration for this session.
878
+ */
879
+ multi_account?: Config.MultiAccount;
880
+ /**
881
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
882
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
883
+ * tool must NOT have any of. Both conditions must be satisfied.
884
+ */
885
+ tags?: Config.Tags;
886
+ /**
887
+ * Toolkit configuration - either enabled list or disabled list
888
+ */
889
+ toolkits?: Config.Enabled | Config.Disabled;
890
+ /**
891
+ * Tool-level configuration per toolkit
892
+ */
893
+ tools?: {
894
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
895
+ };
896
+ /**
897
+ * Workbench configuration
898
+ */
899
+ workbench?: Config.Workbench;
900
+ }
901
+ namespace Config {
902
+ /**
903
+ * Execute helper configuration
904
+ */
905
+ interface Execute {
906
+ enable_multi_execute?: boolean;
907
+ }
908
+ /**
909
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
910
+ * is returned as "all".
911
+ */
912
+ interface Preload {
913
+ /**
914
+ * Explicit preloaded tool slugs, or "all" when the session dynamically exposes all
915
+ * app tools allowed by its filters.
916
+ */
917
+ tools: Array<string> | 'all';
918
+ }
919
+ /**
920
+ * Search helper configuration
921
+ */
922
+ interface Search {
923
+ enable?: boolean;
924
+ }
925
+ /**
926
+ * Manage connections configuration
927
+ */
928
+ interface ManageConnections {
929
+ /**
930
+ * Custom callback URL for connected account auth flows
931
+ */
932
+ callback_url?: string;
933
+ /**
934
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
935
+ */
936
+ enable_connection_removal?: boolean;
937
+ /**
938
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
939
+ * Default false. May not work reliably with GPT models.
940
+ */
941
+ enable_wait_for_connections?: boolean;
942
+ /**
943
+ * Whether to enable the connection manager for automatic connection handling
944
+ */
945
+ enabled?: boolean;
946
+ }
947
+ /**
948
+ * Multi-account configuration for this session.
949
+ */
950
+ interface MultiAccount {
951
+ /**
952
+ * When true, enables multi-account mode for this session. When not set, falls back
953
+ * to org/project-level configuration.
954
+ */
955
+ enable?: boolean;
956
+ /**
957
+ * Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
958
+ * multi-account is enabled.
959
+ */
960
+ max_accounts_per_toolkit?: number;
961
+ /**
962
+ * When true, require explicit account selection when multiple accounts are
963
+ * connected. When false (default), use the first/default account.
964
+ */
965
+ require_explicit_selection?: boolean;
966
+ }
967
+ /**
968
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
969
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
970
+ * tool must NOT have any of. Both conditions must be satisfied.
971
+ */
972
+ interface Tags {
973
+ /**
974
+ * Tags that the tool must NOT have any of
975
+ */
976
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
977
+ /**
978
+ * Tags that the tool must have at least one of
979
+ */
980
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
981
+ }
982
+ interface Enabled {
983
+ enabled: Array<string>;
984
+ }
985
+ interface Disabled {
986
+ disabled: Array<string>;
987
+ }
988
+ interface Enabled {
989
+ enabled: Array<string>;
990
+ }
991
+ interface Disabled {
992
+ disabled: Array<string>;
993
+ }
994
+ interface Tags {
995
+ tags: Tags.Tags;
996
+ }
997
+ namespace Tags {
998
+ interface Tags {
999
+ /**
1000
+ * Tags that the tool must NOT have any of
1001
+ */
1002
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1003
+ /**
1004
+ * Tags that the tool must have at least one of
1005
+ */
1006
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1007
+ }
1008
+ }
1009
+ /**
1010
+ * Workbench configuration
1011
+ */
1012
+ interface Workbench {
1013
+ /**
1014
+ * Character threshold after which tool execution response are saved to a file in
1015
+ * workbench. Default is 20k.
1016
+ */
1017
+ auto_offload_threshold?: number;
1018
+ /**
1019
+ * Whether the workbench (code execution sandbox) is enabled. When false,
1020
+ * COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
1021
+ */
1022
+ enable?: boolean;
1023
+ /**
1024
+ * Whether proxy execution is enabled in the workbench
1025
+ */
1026
+ proxy_execution_enabled?: boolean;
1027
+ /**
1028
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
1029
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
1030
+ */
1031
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
1032
+ }
1033
+ }
1034
+ interface Mcp {
1035
+ /**
1036
+ * The type of the MCP server. Can be http
1037
+ */
1038
+ type: 'http';
1039
+ /**
1040
+ * The URL of the MCP server
1041
+ */
1042
+ url: string;
1043
+ }
1044
+ /**
1045
+ * Experimental features
1046
+ */
1047
+ interface Experimental {
1048
+ /**
1049
+ * The assistive system prompt for the tool router session
1050
+ */
1051
+ assistive_prompt?: string;
1052
+ /**
1053
+ * User-defined custom toolkits with grouped tools (no-auth)
1054
+ */
1055
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
1056
+ /**
1057
+ * Custom tools — standalone or extending Composio toolkits
1058
+ */
1059
+ custom_tools?: Array<Experimental.CustomTool>;
1060
+ }
1061
+ namespace Experimental {
1062
+ interface CustomToolkit {
1063
+ description: string;
1064
+ name: string;
1065
+ slug: string;
1066
+ tools: Array<CustomToolkit.Tool>;
1067
+ }
1068
+ namespace CustomToolkit {
1069
+ interface Tool {
1070
+ description: string;
1071
+ input_schema: {
1072
+ [key: string]: unknown;
1073
+ };
1074
+ name: string;
1075
+ /**
1076
+ * Original tool slug as provided by the user
1077
+ */
1078
+ original_slug: string;
1079
+ /**
1080
+ * Prefixed tool slug (e.g. LOCAL_CRM_FIND_CUSTOMER)
1081
+ */
1082
+ slug: string;
1083
+ output_schema?: {
1084
+ [key: string]: unknown;
1085
+ };
1086
+ }
1087
+ }
1088
+ interface CustomTool {
1089
+ description: string;
1090
+ input_schema: {
1091
+ [key: string]: unknown;
1092
+ };
1093
+ name: string;
1094
+ /**
1095
+ * Original tool slug as provided by the user
1096
+ */
1097
+ original_slug: string;
1098
+ /**
1099
+ * Prefixed tool slug (e.g. LOCAL_GMAIL_GET_IMPORTANT_EMAILS)
1100
+ */
1101
+ slug: string;
1102
+ extends_toolkit?: string;
1103
+ output_schema?: {
1104
+ [key: string]: unknown;
1105
+ };
1106
+ }
1107
+ }
1108
+ interface Warning {
1109
+ /**
1110
+ * Stable machine code identifying the advisory. Safe to switch on in client code.
1111
+ */
1112
+ code: 'PRELOAD_TOOLS_HIGH_CONTEXT_USAGE';
1113
+ /**
1114
+ * Human-readable description of the advisory. Suitable for logging or surfacing to
1115
+ * end users.
1116
+ */
1117
+ message: string;
1118
+ }
1119
+ }
1120
+ export interface SessionConfigHistoryResponse {
1121
+ current_page: number;
1122
+ items: Array<SessionConfigHistoryResponse.Item>;
1123
+ total_items: number;
1124
+ total_pages: number;
1125
+ next_cursor?: string | null;
1126
+ }
1127
+ export declare namespace SessionConfigHistoryResponse {
1128
+ interface Item {
1129
+ /**
1130
+ * The session configuration at this version
1131
+ */
1132
+ config: Item.Config;
1133
+ /**
1134
+ * ISO timestamp. For history rows, when the entry was archived (i.e. the moment
1135
+ * the version was superseded by a PATCH).
1136
+ */
1137
+ created_at: string;
1138
+ /**
1139
+ * True only for the live (current) session config, present on the first page.
1140
+ * False for archived history rows.
1141
+ */
1142
+ is_current: boolean;
1143
+ /**
1144
+ * The config version this entry represents
1145
+ */
1146
+ version: number;
1147
+ }
1148
+ namespace Item {
1149
+ /**
1150
+ * The session configuration at this version
1151
+ */
1152
+ interface Config {
1153
+ /**
1154
+ * Execute helper configuration
1155
+ */
1156
+ execute: Config.Execute;
1157
+ /**
1158
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
1159
+ * is returned as "all".
1160
+ */
1161
+ preload: Config.Preload;
1162
+ /**
1163
+ * Search helper configuration
1164
+ */
1165
+ search: Config.Search;
1166
+ /**
1167
+ * User identifier for this session
1168
+ */
1169
+ user_id: string;
1170
+ /**
1171
+ * Auth config overrides per toolkit
1172
+ */
1173
+ auth_configs?: {
1174
+ [key: string]: string;
1175
+ };
1176
+ /**
1177
+ * Per-toolkit connected account overrides (array of nano-IDs). Multi-account
1178
+ * sessions can pin more than one account per toolkit; otherwise length is 1.
1179
+ */
1180
+ connected_accounts?: {
1181
+ [key: string]: Array<string>;
1182
+ };
1183
+ /**
1184
+ * Manage connections configuration
1185
+ */
1186
+ manage_connections?: Config.ManageConnections;
1187
+ /**
1188
+ * Multi-account configuration for this session.
1189
+ */
1190
+ multi_account?: Config.MultiAccount;
1191
+ /**
1192
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
1193
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
1194
+ * tool must NOT have any of. Both conditions must be satisfied.
1195
+ */
1196
+ tags?: Config.Tags;
1197
+ /**
1198
+ * Toolkit configuration - either enabled list or disabled list
1199
+ */
1200
+ toolkits?: Config.Enabled | Config.Disabled;
1201
+ /**
1202
+ * Tool-level configuration per toolkit
1203
+ */
1204
+ tools?: {
1205
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
1206
+ };
1207
+ /**
1208
+ * Workbench configuration
1209
+ */
1210
+ workbench?: Config.Workbench;
1211
+ }
1212
+ namespace Config {
1213
+ /**
1214
+ * Execute helper configuration
1215
+ */
1216
+ interface Execute {
1217
+ enable_multi_execute?: boolean;
1218
+ }
1219
+ /**
1220
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
1221
+ * is returned as "all".
1222
+ */
1223
+ interface Preload {
1224
+ /**
1225
+ * Explicit preloaded tool slugs, or "all" when the session dynamically exposes all
1226
+ * app tools allowed by its filters.
1227
+ */
1228
+ tools: Array<string> | 'all';
1229
+ }
1230
+ /**
1231
+ * Search helper configuration
1232
+ */
1233
+ interface Search {
1234
+ enable?: boolean;
1235
+ }
1236
+ /**
1237
+ * Manage connections configuration
1238
+ */
1239
+ interface ManageConnections {
1240
+ /**
1241
+ * Custom callback URL for connected account auth flows
1242
+ */
1243
+ callback_url?: string;
1244
+ /**
1245
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
1246
+ */
1247
+ enable_connection_removal?: boolean;
1248
+ /**
1249
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
1250
+ * Default false. May not work reliably with GPT models.
1251
+ */
1252
+ enable_wait_for_connections?: boolean;
1253
+ /**
1254
+ * Whether to enable the connection manager for automatic connection handling
1255
+ */
1256
+ enabled?: boolean;
1257
+ }
1258
+ /**
1259
+ * Multi-account configuration for this session.
1260
+ */
1261
+ interface MultiAccount {
1262
+ /**
1263
+ * When true, enables multi-account mode for this session. When not set, falls back
1264
+ * to org/project-level configuration.
1265
+ */
1266
+ enable?: boolean;
1267
+ /**
1268
+ * Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
1269
+ * multi-account is enabled.
1270
+ */
1271
+ max_accounts_per_toolkit?: number;
1272
+ /**
1273
+ * When true, require explicit account selection when multiple accounts are
1274
+ * connected. When false (default), use the first/default account.
1275
+ */
1276
+ require_explicit_selection?: boolean;
1277
+ }
1278
+ /**
1279
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
1280
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
1281
+ * tool must NOT have any of. Both conditions must be satisfied.
1282
+ */
1283
+ interface Tags {
1284
+ /**
1285
+ * Tags that the tool must NOT have any of
1286
+ */
1287
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1288
+ /**
1289
+ * Tags that the tool must have at least one of
1290
+ */
1291
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1292
+ }
1293
+ interface Enabled {
1294
+ enabled: Array<string>;
1295
+ }
1296
+ interface Disabled {
1297
+ disabled: Array<string>;
1298
+ }
1299
+ interface Enabled {
1300
+ enabled: Array<string>;
1301
+ }
1302
+ interface Disabled {
1303
+ disabled: Array<string>;
1304
+ }
1305
+ interface Tags {
1306
+ tags: Tags.Tags;
1307
+ }
1308
+ namespace Tags {
1309
+ interface Tags {
1310
+ /**
1311
+ * Tags that the tool must NOT have any of
1312
+ */
1313
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1314
+ /**
1315
+ * Tags that the tool must have at least one of
1316
+ */
1317
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1318
+ }
1319
+ }
1320
+ /**
1321
+ * Workbench configuration
1322
+ */
1323
+ interface Workbench {
1324
+ /**
1325
+ * Character threshold after which tool execution response are saved to a file in
1326
+ * workbench. Default is 20k.
1327
+ */
1328
+ auto_offload_threshold?: number;
1329
+ /**
1330
+ * Whether the workbench (code execution sandbox) is enabled. When false,
1331
+ * COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
1332
+ */
1333
+ enable?: boolean;
1334
+ /**
1335
+ * Whether proxy execution is enabled in the workbench
1336
+ */
1337
+ proxy_execution_enabled?: boolean;
1338
+ /**
1339
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
1340
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
1341
+ */
1342
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
1343
+ }
1344
+ }
1345
+ }
1346
+ }
1347
+ export interface SessionExecuteResponse {
1348
+ /**
1349
+ * The data returned by the tool execution
1350
+ */
1351
+ data: {
1352
+ [key: string]: unknown;
1353
+ };
1354
+ /**
1355
+ * Error message if the execution failed, null otherwise
1356
+ */
1357
+ error: string | null;
1358
+ /**
1359
+ * Unique identifier for the execution log
1360
+ */
1361
+ log_id: string;
1362
+ }
1363
+ export interface SessionExecuteMetaResponse {
1364
+ /**
1365
+ * The data returned by the tool execution
1366
+ */
1367
+ data: {
1368
+ [key: string]: unknown;
1369
+ };
1370
+ /**
1371
+ * Error message if the execution failed, null otherwise
1372
+ */
1373
+ error: string | null;
1374
+ /**
1375
+ * Unique identifier for the execution log
1376
+ */
1377
+ log_id: string;
1378
+ }
1379
+ export interface SessionLinkResponse {
1380
+ /**
1381
+ * The unique identifier for the connected account
1382
+ */
1383
+ connected_account_id: string;
1384
+ /**
1385
+ * Token used to complete the authentication flow
1386
+ */
1387
+ link_token: string;
1388
+ /**
1389
+ * The URL where users should be redirected to complete OAuth
1390
+ */
1391
+ redirect_url: string;
1392
+ }
1393
+ export interface SessionPatchResponse {
1394
+ /**
1395
+ * The configuration used to create this session
1396
+ */
1397
+ config: SessionPatchResponse.Config;
1398
+ /**
1399
+ * Monotonic version of the config. Incremented on each PATCH. Use for optimistic
1400
+ * concurrency control.
1401
+ */
1402
+ config_version: number;
1403
+ mcp: SessionPatchResponse.Mcp;
1404
+ /**
1405
+ * The identifier of the session
1406
+ */
1407
+ session_id: string;
1408
+ /**
1409
+ * List of available tools in this session
1410
+ */
1411
+ tool_router_tools: Array<string>;
1412
+ /**
1413
+ * Experimental features
1414
+ */
1415
+ experimental?: SessionPatchResponse.Experimental;
1416
+ /**
1417
+ * Advisory list — the session exists and is usable, but the listed issues may
1418
+ * warrant attention.
1419
+ */
1420
+ warnings?: Array<SessionPatchResponse.Warning>;
1421
+ }
1422
+ export declare namespace SessionPatchResponse {
1423
+ /**
1424
+ * The configuration used to create this session
1425
+ */
1426
+ interface Config {
1427
+ /**
1428
+ * Execute helper configuration
1429
+ */
1430
+ execute: Config.Execute;
1431
+ /**
1432
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
1433
+ * is returned as "all".
1434
+ */
1435
+ preload: Config.Preload;
1436
+ /**
1437
+ * Search helper configuration
1438
+ */
1439
+ search: Config.Search;
1440
+ /**
1441
+ * User identifier for this session
1442
+ */
1443
+ user_id: string;
1444
+ /**
1445
+ * Auth config overrides per toolkit
1446
+ */
1447
+ auth_configs?: {
1448
+ [key: string]: string;
1449
+ };
1450
+ /**
1451
+ * Per-toolkit connected account overrides (array of nano-IDs). Multi-account
1452
+ * sessions can pin more than one account per toolkit; otherwise length is 1.
1453
+ */
1454
+ connected_accounts?: {
1455
+ [key: string]: Array<string>;
1456
+ };
1457
+ /**
1458
+ * Manage connections configuration
1459
+ */
1460
+ manage_connections?: Config.ManageConnections;
1461
+ /**
1462
+ * Multi-account configuration for this session.
1463
+ */
1464
+ multi_account?: Config.MultiAccount;
1465
+ /**
1466
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
1467
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
1468
+ * tool must NOT have any of. Both conditions must be satisfied.
1469
+ */
1470
+ tags?: Config.Tags;
1471
+ /**
1472
+ * Toolkit configuration - either enabled list or disabled list
1473
+ */
1474
+ toolkits?: Config.Enabled | Config.Disabled;
1475
+ /**
1476
+ * Tool-level configuration per toolkit
1477
+ */
1478
+ tools?: {
1479
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
1480
+ };
1481
+ /**
1482
+ * Workbench configuration
1483
+ */
1484
+ workbench?: Config.Workbench;
1485
+ }
1486
+ namespace Config {
1487
+ /**
1488
+ * Execute helper configuration
1489
+ */
1490
+ interface Execute {
1491
+ enable_multi_execute?: boolean;
1492
+ }
1493
+ /**
1494
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
1495
+ * is returned as "all".
1496
+ */
1497
+ interface Preload {
1498
+ /**
1499
+ * Explicit preloaded tool slugs, or "all" when the session dynamically exposes all
1500
+ * app tools allowed by its filters.
1501
+ */
1502
+ tools: Array<string> | 'all';
1503
+ }
1504
+ /**
1505
+ * Search helper configuration
1506
+ */
1507
+ interface Search {
1508
+ enable?: boolean;
1509
+ }
1510
+ /**
1511
+ * Manage connections configuration
1512
+ */
1513
+ interface ManageConnections {
1514
+ /**
1515
+ * Custom callback URL for connected account auth flows
1516
+ */
1517
+ callback_url?: string;
1518
+ /**
1519
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
1520
+ */
1521
+ enable_connection_removal?: boolean;
1522
+ /**
1523
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
1524
+ * Default false. May not work reliably with GPT models.
1525
+ */
1526
+ enable_wait_for_connections?: boolean;
1527
+ /**
1528
+ * Whether to enable the connection manager for automatic connection handling
1529
+ */
1530
+ enabled?: boolean;
1531
+ }
1532
+ /**
1533
+ * Multi-account configuration for this session.
1534
+ */
1535
+ interface MultiAccount {
1536
+ /**
1537
+ * When true, enables multi-account mode for this session. When not set, falls back
1538
+ * to org/project-level configuration.
1539
+ */
1540
+ enable?: boolean;
1541
+ /**
1542
+ * Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
1543
+ * multi-account is enabled.
1544
+ */
1545
+ max_accounts_per_toolkit?: number;
1546
+ /**
1547
+ * When true, require explicit account selection when multiple accounts are
1548
+ * connected. When false (default), use the first/default account.
1549
+ */
1550
+ require_explicit_selection?: boolean;
1551
+ }
1552
+ /**
1553
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
1554
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
1555
+ * tool must NOT have any of. Both conditions must be satisfied.
1556
+ */
1557
+ interface Tags {
1558
+ /**
1559
+ * Tags that the tool must NOT have any of
1560
+ */
1561
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1562
+ /**
1563
+ * Tags that the tool must have at least one of
1564
+ */
1565
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1566
+ }
1567
+ interface Enabled {
1568
+ enabled: Array<string>;
1569
+ }
1570
+ interface Disabled {
1571
+ disabled: Array<string>;
1572
+ }
1573
+ interface Enabled {
1574
+ enabled: Array<string>;
1575
+ }
1576
+ interface Disabled {
1577
+ disabled: Array<string>;
1578
+ }
1579
+ interface Tags {
1580
+ tags: Tags.Tags;
1581
+ }
1582
+ namespace Tags {
1583
+ interface Tags {
1584
+ /**
1585
+ * Tags that the tool must NOT have any of
1586
+ */
1587
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1588
+ /**
1589
+ * Tags that the tool must have at least one of
1590
+ */
1591
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1592
+ }
1593
+ }
1594
+ /**
1595
+ * Workbench configuration
1596
+ */
1597
+ interface Workbench {
1598
+ /**
1599
+ * Character threshold after which tool execution response are saved to a file in
1600
+ * workbench. Default is 20k.
1601
+ */
1602
+ auto_offload_threshold?: number;
1603
+ /**
1604
+ * Whether the workbench (code execution sandbox) is enabled. When false,
1605
+ * COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
1606
+ */
1607
+ enable?: boolean;
1608
+ /**
1609
+ * Whether proxy execution is enabled in the workbench
1610
+ */
1611
+ proxy_execution_enabled?: boolean;
1612
+ /**
1613
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
1614
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
1615
+ */
1616
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
1617
+ }
1618
+ }
1619
+ interface Mcp {
1620
+ /**
1621
+ * The type of the MCP server. Can be http
1622
+ */
1623
+ type: 'http';
1624
+ /**
1625
+ * The URL of the MCP server
1626
+ */
1627
+ url: string;
1628
+ }
1629
+ /**
1630
+ * Experimental features
1631
+ */
1632
+ interface Experimental {
1633
+ /**
1634
+ * The assistive system prompt for the tool router session
1635
+ */
1636
+ assistive_prompt?: string;
1637
+ /**
1638
+ * User-defined custom toolkits with grouped tools (no-auth)
1639
+ */
1640
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
1641
+ /**
1642
+ * Custom tools — standalone or extending Composio toolkits
1643
+ */
1644
+ custom_tools?: Array<Experimental.CustomTool>;
1645
+ }
1646
+ namespace Experimental {
1647
+ interface CustomToolkit {
1648
+ description: string;
1649
+ name: string;
1650
+ slug: string;
1651
+ tools: Array<CustomToolkit.Tool>;
1652
+ }
1653
+ namespace CustomToolkit {
1654
+ interface Tool {
1655
+ description: string;
1656
+ input_schema: {
1657
+ [key: string]: unknown;
1658
+ };
1659
+ name: string;
1660
+ /**
1661
+ * Original tool slug as provided by the user
1662
+ */
1663
+ original_slug: string;
1664
+ /**
1665
+ * Prefixed tool slug (e.g. LOCAL_CRM_FIND_CUSTOMER)
1666
+ */
1667
+ slug: string;
1668
+ output_schema?: {
1669
+ [key: string]: unknown;
1670
+ };
1671
+ }
1672
+ }
1673
+ interface CustomTool {
1674
+ description: string;
1675
+ input_schema: {
1676
+ [key: string]: unknown;
1677
+ };
1678
+ name: string;
1679
+ /**
1680
+ * Original tool slug as provided by the user
1681
+ */
1682
+ original_slug: string;
1683
+ /**
1684
+ * Prefixed tool slug (e.g. LOCAL_GMAIL_GET_IMPORTANT_EMAILS)
1685
+ */
1686
+ slug: string;
1687
+ extends_toolkit?: string;
1688
+ output_schema?: {
1689
+ [key: string]: unknown;
1690
+ };
1691
+ }
1692
+ }
1693
+ interface Warning {
1694
+ /**
1695
+ * Stable machine code identifying the advisory. Safe to switch on in client code.
1696
+ */
1697
+ code: 'PRELOAD_TOOLS_HIGH_CONTEXT_USAGE';
1698
+ /**
1699
+ * Human-readable description of the advisory. Suitable for logging or surfacing to
1700
+ * end users.
1701
+ */
1702
+ message: string;
1703
+ }
1704
+ }
1705
+ export interface SessionProxyExecuteResponse {
1706
+ /**
1707
+ * The HTTP status code returned from the proxied API
1708
+ */
1709
+ status: number;
1710
+ /**
1711
+ * Binary body response data. Present when the response is a binary file.
1712
+ */
1713
+ binary_data?: SessionProxyExecuteResponse.BinaryData;
1714
+ /**
1715
+ * The response data returned from the proxied API
1716
+ */
1717
+ data?: unknown;
1718
+ /**
1719
+ * The HTTP headers returned from the proxied API
1720
+ */
1721
+ headers?: {
1722
+ [key: string]: string;
1723
+ };
1724
+ }
1725
+ export declare namespace SessionProxyExecuteResponse {
1726
+ /**
1727
+ * Binary body response data. Present when the response is a binary file.
1728
+ */
1729
+ interface BinaryData {
1730
+ /**
1731
+ * Content-Type of the binary data
1732
+ */
1733
+ content_type: string;
1734
+ /**
1735
+ * File size in bytes
1736
+ */
1737
+ size: number;
1738
+ /**
1739
+ * URL to download binary content
1740
+ */
1741
+ url: string;
1742
+ /**
1743
+ * ISO 8601 timestamp when the URL expires
1744
+ */
1745
+ expires_at?: string;
1746
+ }
1747
+ }
1748
+ export interface SessionSearchResponse {
1749
+ /**
1750
+ * Error message if any searches failed, null if all succeeded. Format: "X out of Y
1751
+ * searches failed, reasons: <details>"
1752
+ */
1753
+ error: string | null;
1754
+ /**
1755
+ * Combined workflow guidance covering connections, planner, and memory usage. Each
1756
+ * element is a step instruction.
1757
+ */
1758
+ next_steps_guidance: Array<string>;
1759
+ /**
1760
+ * Per-query search results with tools, reasoning, and memory. One entry per query
1761
+ * in request order.
1762
+ */
1763
+ results: Array<SessionSearchResponse.Result>;
1764
+ /**
1765
+ * Session info for correlating meta tool calls
1766
+ */
1767
+ session: SessionSearchResponse.Session;
1768
+ /**
1769
+ * Whether all searches completed successfully. False if any query failed.
1770
+ */
1771
+ success: boolean;
1772
+ /**
1773
+ * Time information for the query
1774
+ */
1775
+ time_info: SessionSearchResponse.TimeInfo;
1776
+ /**
1777
+ * Deduplicated tool definitions keyed by tool_slug for O(1) lookup. Each tool
1778
+ * appears once even if used in multiple queries.
1779
+ */
1780
+ tool_schemas: {
1781
+ [key: string]: SessionSearchResponse.ToolSchemas;
1782
+ };
1783
+ /**
1784
+ * Connection status for all toolkits mentioned across all queries, with
1785
+ * descriptions merged in.
1786
+ */
1787
+ toolkit_connection_statuses: Array<SessionSearchResponse.ToolkitConnectionStatus>;
1788
+ }
1789
+ export declare namespace SessionSearchResponse {
1790
+ interface Result {
1791
+ /**
1792
+ * 1-based index of the query in the request
1793
+ */
1794
+ index: number;
1795
+ /**
1796
+ * List of main tool slugs matching the search criteria
1797
+ */
1798
+ primary_tool_slugs: Array<string>;
1799
+ /**
1800
+ * List of related tool slugs that might be useful
1801
+ */
1802
+ related_tool_slugs: Array<string>;
1803
+ /**
1804
+ * List of unique toolkit slugs used by tools in this query
1805
+ */
1806
+ toolkits: Array<string>;
1807
+ /**
1808
+ * The use case that was searched
1809
+ */
1810
+ use_case: string;
1811
+ /**
1812
+ * Task difficulty assessment (e.g., "easy - Simple single-tool operation with
1813
+ * known parameters")
1814
+ */
1815
+ difficulty?: string;
1816
+ /**
1817
+ * Error message if the search for this query failed, null otherwise. Always
1818
+ * present for failed queries.
1819
+ */
1820
+ error?: string | null;
1821
+ /**
1822
+ * Guidance message about the search results, particularly when a cached plan is
1823
+ * available
1824
+ */
1825
+ execution_guidance?: string;
1826
+ /**
1827
+ * Common pitfalls and considerations (only present when cached plan is available)
1828
+ */
1829
+ known_pitfalls?: Array<string>;
1830
+ /**
1831
+ * Memory data relevant to this query, grouped by app. Only present for non-cached
1832
+ * search results.
1833
+ */
1834
+ memory?: {
1835
+ [key: string]: Array<string>;
1836
+ };
1837
+ /**
1838
+ * ID of cached plan if available
1839
+ */
1840
+ plan_id?: string;
1841
+ /**
1842
+ * Workflow steps from cached plan (only present when cached plan is available)
1843
+ */
1844
+ recommended_plan_steps?: Array<string>;
1845
+ /**
1846
+ * Reference Python code snippets for processing tool responses in the workbench
1847
+ * (only present when cached plan is available)
1848
+ */
1849
+ reference_workbench_snippets?: Array<Result.ReferenceWorkbenchSnippet>;
1850
+ }
1851
+ namespace Result {
1852
+ interface ReferenceWorkbenchSnippet {
1853
+ /**
1854
+ * Python code snippet for the workbench
1855
+ */
1856
+ code: string;
1857
+ /**
1858
+ * Description of what the code snippet does
1859
+ */
1860
+ description: string;
1861
+ }
1862
+ }
1863
+ /**
1864
+ * Session info for correlating meta tool calls
1865
+ */
1866
+ interface Session {
1867
+ /**
1868
+ * Session identifier to be passed to subsequent meta tool calls as session_id.
1869
+ */
1870
+ id: string;
1871
+ /**
1872
+ * Whether a fresh session id was generated in this call.
1873
+ */
1874
+ generate_id: boolean;
1875
+ /**
1876
+ * LLM-facing guidance on how to reuse this session id
1877
+ */
1878
+ instructions: string;
1879
+ }
1880
+ /**
1881
+ * Time information for the query
1882
+ */
1883
+ interface TimeInfo {
1884
+ /**
1885
+ * Current time in ISO format (UTC)
1886
+ */
1887
+ current_time_utc: string;
1888
+ /**
1889
+ * Current time as Unix epoch timestamp in seconds
1890
+ */
1891
+ current_time_utc_epoch_seconds: number;
1892
+ /**
1893
+ * Important message about time handling and timezone considerations
1894
+ */
1895
+ message: string;
1896
+ }
1897
+ interface ToolSchemas {
1898
+ /**
1899
+ * The slug of the tool
1900
+ */
1901
+ tool_slug: string;
1902
+ /**
1903
+ * The slug of the toolkit that provides this tool
1904
+ */
1905
+ toolkit: string;
1906
+ /**
1907
+ * Description of the tool
1908
+ */
1909
+ description?: string;
1910
+ /**
1911
+ * Whether the full input_schema is included in this response
1912
+ */
1913
+ hasFullSchema?: boolean;
1914
+ /**
1915
+ * Input schema for the tool (only present when hasFullSchema is true)
1916
+ */
1917
+ input_schema?: {
1918
+ [key: string]: unknown;
1919
+ };
1920
+ /**
1921
+ * Output/response schema for the tool. Only included when include_output_schemas
1922
+ * is true.
1923
+ */
1924
+ output_schema?: {
1925
+ [key: string]: unknown;
1926
+ };
1927
+ /**
1928
+ * Reference to fetch full schema when hasFullSchema is false
1929
+ */
1930
+ schemaRef?: ToolSchemas.SchemaRef;
1931
+ }
1932
+ namespace ToolSchemas {
1933
+ /**
1934
+ * Reference to fetch full schema when hasFullSchema is false
1935
+ */
1936
+ interface SchemaRef {
1937
+ /**
1938
+ * Arguments to pass to the tool
1939
+ */
1940
+ args: SchemaRef.Args;
1941
+ /**
1942
+ * Tool to call
1943
+ */
1944
+ tool: 'COMPOSIO_GET_TOOL_SCHEMAS';
1945
+ /**
1946
+ * Instruction message for the LLM
1947
+ */
1948
+ message?: string;
1949
+ }
1950
+ namespace SchemaRef {
1951
+ /**
1952
+ * Arguments to pass to the tool
1953
+ */
1954
+ interface Args {
1955
+ /**
1956
+ * Tool slugs to fetch schemas for
1957
+ */
1958
+ tool_slugs: Array<string>;
1959
+ }
1960
+ }
1961
+ }
1962
+ interface ToolkitConnectionStatus {
1963
+ /**
1964
+ * Description of what the toolkit does and its capabilities
1965
+ */
1966
+ description: string;
1967
+ /**
1968
+ * Whether an active connection exists for this toolkit
1969
+ */
1970
+ has_active_connection: boolean;
1971
+ /**
1972
+ * Human-readable message about the connection status and next steps
1973
+ */
1974
+ status_message: string;
1975
+ /**
1976
+ * The toolkit slug identifier (e.g., "gmail", "slack")
1977
+ */
1978
+ toolkit: string;
1979
+ /**
1980
+ * When "required", the agent must specify which account to use. Present only when
1981
+ * multiple accounts exist.
1982
+ */
1983
+ account_selection?: 'required';
1984
+ /**
1985
+ * List of connected accounts for this toolkit. Present when multi-account is
1986
+ * enabled.
1987
+ */
1988
+ accounts?: Array<ToolkitConnectionStatus.Account>;
1989
+ /**
1990
+ * Connection details including auth config and connected account IDs. Only present
1991
+ * when has_active_connection is true.
1992
+ */
1993
+ connection_details?: {
1994
+ [key: string]: unknown;
1995
+ };
1996
+ /**
1997
+ * Information about the currently connected user (email, name, etc.)
1998
+ */
1999
+ current_user_info?: {
2000
+ [key: string]: unknown;
2001
+ };
2002
+ }
2003
+ namespace ToolkitConnectionStatus {
2004
+ interface Account {
2005
+ /**
2006
+ * Unique identifier for this account
2007
+ */
2008
+ id: string;
2009
+ /**
2010
+ * ISO 8601 timestamp of when the account was connected
2011
+ */
2012
+ created_at: string;
2013
+ /**
2014
+ * Whether this is the default account for the toolkit
2015
+ */
2016
+ is_default: boolean;
2017
+ /**
2018
+ * Connection status (e.g., "active")
2019
+ */
2020
+ status: string;
2021
+ /**
2022
+ * User-assigned alias for this account
2023
+ */
2024
+ alias?: string;
2025
+ /**
2026
+ * Information about the connected user (email, name, etc.)
2027
+ */
2028
+ user_info?: {
2029
+ [key: string]: unknown;
2030
+ };
2031
+ }
2032
+ }
2033
+ }
2034
+ export interface SessionToolkitsResponse {
2035
+ current_page: number;
2036
+ items: Array<SessionToolkitsResponse.Item>;
2037
+ total_items: number;
2038
+ total_pages: number;
2039
+ next_cursor?: string | null;
2040
+ }
2041
+ export declare namespace SessionToolkitsResponse {
2042
+ interface Item {
2043
+ /**
2044
+ * Available Composio-managed auth schemes
2045
+ */
2046
+ composio_managed_auth_schemes: Array<string>;
2047
+ /**
2048
+ * Connected account if available
2049
+ */
2050
+ connected_account: Item.ConnectedAccount | null;
2051
+ /**
2052
+ * Whether the toolkit is enabled
2053
+ */
2054
+ enabled: boolean;
2055
+ /**
2056
+ * Whether the toolkit is no-auth
2057
+ */
2058
+ is_no_auth: boolean;
2059
+ /**
2060
+ * Toolkit metadata
2061
+ */
2062
+ meta: Item.Meta;
2063
+ /**
2064
+ * Display name of the toolkit
2065
+ */
2066
+ name: string;
2067
+ /**
2068
+ * Unique slug identifier
2069
+ */
2070
+ slug: string;
2071
+ }
2072
+ namespace Item {
2073
+ /**
2074
+ * Connected account if available
2075
+ */
2076
+ interface ConnectedAccount {
2077
+ /**
2078
+ * Connected account identifier
2079
+ */
2080
+ id: string;
2081
+ /**
2082
+ * Auth config details
2083
+ */
2084
+ auth_config: ConnectedAccount.AuthConfig;
2085
+ /**
2086
+ * Creation timestamp
2087
+ */
2088
+ created_at: string;
2089
+ /**
2090
+ * Connection status
2091
+ */
2092
+ status: string;
2093
+ /**
2094
+ * User identifier
2095
+ */
2096
+ user_id: string;
2097
+ }
2098
+ namespace ConnectedAccount {
2099
+ /**
2100
+ * Auth config details
2101
+ */
2102
+ interface AuthConfig {
2103
+ /**
2104
+ * Auth config identifier
2105
+ */
2106
+ id: string;
2107
+ /**
2108
+ * Authentication scheme type
2109
+ */
2110
+ auth_scheme: string;
2111
+ /**
2112
+ * Whether this is a Composio-managed auth config
2113
+ */
2114
+ is_composio_managed: boolean;
2115
+ }
2116
+ }
2117
+ /**
2118
+ * Toolkit metadata
2119
+ */
2120
+ interface Meta {
2121
+ /**
2122
+ * Description of the toolkit
2123
+ */
2124
+ description: string;
2125
+ /**
2126
+ * URL to the toolkit logo
2127
+ */
2128
+ logo: string;
2129
+ }
2130
+ }
2131
+ }
2132
+ export interface SessionToolsResponse {
2133
+ current_page: number;
2134
+ items: Array<SessionToolsResponse.Item>;
2135
+ total_items: number;
2136
+ total_pages: number;
2137
+ next_cursor?: string | null;
2138
+ }
2139
+ export declare namespace SessionToolsResponse {
2140
+ interface Item {
2141
+ /**
2142
+ * List of all available versions for this tool
2143
+ */
2144
+ available_versions: Array<string>;
2145
+ deprecated: Item.Deprecated;
2146
+ /**
2147
+ * Detailed explanation of the tool's functionality and purpose
2148
+ */
2149
+ description: string;
2150
+ /**
2151
+ * Schema definition of required input parameters for the tool
2152
+ */
2153
+ input_parameters: {
2154
+ [key: string]: unknown;
2155
+ };
2156
+ /**
2157
+ * Indicates if this tool is deprecated and may be removed in the future
2158
+ */
2159
+ is_deprecated: boolean;
2160
+ /**
2161
+ * Human-readable display name of the tool
2162
+ */
2163
+ name: string;
2164
+ /**
2165
+ * Indicates if the tool can be used without authentication
2166
+ */
2167
+ no_auth: boolean;
2168
+ /**
2169
+ * Schema definition of return values from the tool
2170
+ */
2171
+ output_parameters: {
2172
+ [key: string]: unknown;
2173
+ };
2174
+ /**
2175
+ * Structured scope requirements for the tool. Null means the tool is legacy and
2176
+ * only exposes flat scopes.
2177
+ */
2178
+ scope_requirements: Item.ScopeRequirements | null;
2179
+ /**
2180
+ * List of scopes associated with the tool
2181
+ */
2182
+ scopes: Array<string>;
2183
+ /**
2184
+ * Unique identifier for the tool
2185
+ */
2186
+ slug: string;
2187
+ /**
2188
+ * List of tags associated with the tool for categorization and filtering
2189
+ */
2190
+ tags: Array<string>;
2191
+ toolkit: Item.Toolkit;
2192
+ /**
2193
+ * Current version of the tool
2194
+ */
2195
+ version: string;
2196
+ /**
2197
+ * Human-friendly description of the tool, if available
2198
+ */
2199
+ human_description?: string;
2200
+ }
2201
+ namespace Item {
2202
+ interface Deprecated {
2203
+ /**
2204
+ * List of all available versions for this tool
2205
+ */
2206
+ available_versions: Array<string>;
2207
+ /**
2208
+ * The display name of the tool
2209
+ */
2210
+ displayName: string;
2211
+ /**
2212
+ * Indicates if this tool is deprecated and may be removed in the future
2213
+ */
2214
+ is_deprecated: boolean;
2215
+ toolkit: Deprecated.Toolkit;
2216
+ /**
2217
+ * Current version identifier of the tool
2218
+ */
2219
+ version: string;
2220
+ }
2221
+ namespace Deprecated {
2222
+ interface Toolkit {
2223
+ /**
2224
+ * URL to the toolkit logo image
2225
+ */
2226
+ logo: string;
2227
+ }
2228
+ }
2229
+ /**
2230
+ * Structured scope requirements for the tool. Null means the tool is legacy and
2231
+ * only exposes flat scopes.
2232
+ */
2233
+ interface ScopeRequirements {
2234
+ all_of: Array<string | ScopeRequirements.AnyOf>;
2235
+ }
2236
+ namespace ScopeRequirements {
2237
+ interface AnyOf {
2238
+ any_of: Array<string>;
2239
+ }
2240
+ }
2241
+ interface Toolkit {
2242
+ /**
2243
+ * URL to the toolkit logo image
2244
+ */
2245
+ logo: string;
2246
+ /**
2247
+ * Human-readable name of the parent toolkit
2248
+ */
2249
+ name: string;
2250
+ /**
2251
+ * Unique identifier of the parent toolkit
2252
+ */
2253
+ slug: string;
2254
+ }
2255
+ }
2256
+ }
2257
+ export interface SessionCreateParams {
2258
+ /**
2259
+ * The identifier of the user who is initiating the session, ideally a unique
2260
+ * identifier from your database like a user ID or email address
2261
+ */
2262
+ user_id: string;
2263
+ /**
2264
+ * The auth configs to use for the session. This will override the default behavior
2265
+ * and use the given auth config when specific toolkits are being executed
2266
+ */
2267
+ auth_configs?: {
2268
+ [key: string]: string;
2269
+ };
2270
+ /**
2271
+ * The connected accounts to use for the session, as an array of nano-IDs per
2272
+ * toolkit. This overrides the default behaviour and pins specific connected
2273
+ * accounts when toolkits are executed. Each account must exist (not deleted or
2274
+ * disabled) and belong to the same `user_id` as the session. Multi-account
2275
+ * sessions can pin multiple; non-multi-account sessions are capped at length 1.
2276
+ */
2277
+ connected_accounts?: {
2278
+ [key: string]: Array<string>;
2279
+ };
2280
+ execute?: SessionCreateParams.Execute;
2281
+ /**
2282
+ * Experimental features - not stable, may be modified or removed in future
2283
+ * versions.
2284
+ */
2285
+ experimental?: SessionCreateParams.Experimental;
2286
+ /**
2287
+ * Configuration for connection management settings
2288
+ */
2289
+ manage_connections?: SessionCreateParams.ManageConnections;
2290
+ /**
2291
+ * Configure multi-account behavior. When enabled, users can connect multiple
2292
+ * accounts per toolkit.
2293
+ */
2294
+ multi_account?: SessionCreateParams.MultiAccount;
2295
+ /**
2296
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
2297
+ * "all" to dynamically expose every app tool allowed by positive
2298
+ * toolkits/tools/tags filters.
2299
+ */
2300
+ preload?: SessionCreateParams.Preload;
2301
+ search?: SessionCreateParams.Search;
2302
+ /**
2303
+ * Global MCP tool annotation hints for filtering. Array format is treated as
2304
+ * enabled list. Object format supports both enabled (tool must have at least one)
2305
+ * and disabled (tool must NOT have any) lists. Toolkit-level tags override this.
2306
+ * Toolkit enabled/disabled lists take precedence over tag filtering.
2307
+ */
2308
+ tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | SessionCreateParams.UnionMember1;
2309
+ /**
2310
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable
2311
+ * toolkits (denylist). Mutually exclusive.
2312
+ */
2313
+ toolkits?: SessionCreateParams.Enable | SessionCreateParams.Disable;
2314
+ /**
2315
+ * Tool-level configuration per toolkit. Allows you to enable, disable, or filter
2316
+ * by tags for specific tools within each toolkit. Every slug passed in `enable` /
2317
+ * `disable` must be a valid Composio tool slug for that toolkit — invalid or
2318
+ * typo'd slugs fail session creation with a clear error listing which ones didn't
2319
+ * match.
2320
+ */
2321
+ tools?: {
2322
+ [key: string]: SessionCreateParams.Enable | SessionCreateParams.Disable | SessionCreateParams.Tags;
2323
+ };
2324
+ /**
2325
+ * Configuration for workbench behavior
2326
+ */
2327
+ workbench?: SessionCreateParams.Workbench;
2328
+ }
2329
+ export declare namespace SessionCreateParams {
2330
+ interface Execute {
2331
+ enable_multi_execute?: boolean;
2332
+ }
2333
+ /**
2334
+ * Experimental features - not stable, may be modified or removed in future
2335
+ * versions.
2336
+ */
2337
+ interface Experimental {
2338
+ /**
2339
+ * Customize assistive prompt generation (e.g., timezone).
2340
+ */
2341
+ assistive_prompt_config?: Experimental.AssistivePromptConfig;
2342
+ /**
2343
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2344
+ * existing Composio toolkits. All tools are no-auth.
2345
+ */
2346
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2347
+ /**
2348
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2349
+ * extends_toolkit inherit the Composio toolkit's connection.
2350
+ */
2351
+ custom_tools?: Array<Experimental.CustomTool>;
2352
+ /**
2353
+ * Experimental base URL override for connection link redirects created from this
2354
+ * tool-router session. When set, link creation returns
2355
+ * `${link_url_overwrite}/link/{link_token}` instead of the default Composio
2356
+ * Connect base URL. Use only when your integration needs links to open through a
2357
+ * custom Connect host.
2358
+ */
2359
+ link_url_overwrite?: string;
2360
+ /**
2361
+ * Per-tool elicitation permission config. Default behavior + per-tool
2362
+ * always_allow/always_deny overrides. Mutation via PATCH.
2363
+ */
2364
+ permissions?: Experimental.Permissions;
2365
+ }
2366
+ namespace Experimental {
2367
+ /**
2368
+ * Customize assistive prompt generation (e.g., timezone).
2369
+ */
2370
+ interface AssistivePromptConfig {
2371
+ /**
2372
+ * IANA timezone identifier (e.g., 'America/New_York', 'Europe/London'). Used to
2373
+ * customize the system prompt with timezone-aware instructions.
2374
+ */
2375
+ user_timezone?: string;
2376
+ }
2377
+ interface CustomToolkit {
2378
+ /**
2379
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2380
+ */
2381
+ description: string;
2382
+ /**
2383
+ * Display name shown to the LLM and in search results.
2384
+ */
2385
+ name: string;
2386
+ /**
2387
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2388
+ * slugs. Alphanumeric, underscores, and hyphens only.
2389
+ */
2390
+ slug: string;
2391
+ /**
2392
+ * Tools in this custom toolkit
2393
+ */
2394
+ tools: Array<CustomToolkit.Tool>;
2395
+ /**
2396
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2397
+ * in create/attach responses for inline custom definitions.
2398
+ */
2399
+ preload?: boolean;
2400
+ }
2401
+ namespace CustomToolkit {
2402
+ interface Tool {
2403
+ /**
2404
+ * Used for BM25 search matching and shown to the LLM.
2405
+ */
2406
+ description: string;
2407
+ /**
2408
+ * Must have type: "object" and a properties field.
2409
+ */
2410
+ input_schema: {
2411
+ [key: string]: unknown;
2412
+ };
2413
+ /**
2414
+ * Human-readable display name
2415
+ */
2416
+ name: string;
2417
+ /**
2418
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
2419
+ * chars total).
2420
+ */
2421
+ slug: string;
2422
+ /**
2423
+ * Optional output schema for the tool response.
2424
+ */
2425
+ output_schema?: {
2426
+ [key: string]: unknown;
2427
+ };
2428
+ /**
2429
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2430
+ * in create/attach responses for inline custom definitions.
2431
+ */
2432
+ preload?: boolean;
2433
+ }
2434
+ }
2435
+ interface CustomTool {
2436
+ /**
2437
+ * Used for BM25 search matching and shown to the LLM.
2438
+ */
2439
+ description: string;
2440
+ /**
2441
+ * Must have type: "object" and a properties field.
2442
+ */
2443
+ input_schema: {
2444
+ [key: string]: unknown;
2445
+ };
2446
+ /**
2447
+ * Human-readable display name
2448
+ */
2449
+ name: string;
2450
+ /**
2451
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
2452
+ * (extending). Max 60 chars total.
2453
+ */
2454
+ slug: string;
2455
+ /**
2456
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
2457
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
2458
+ */
2459
+ extends_toolkit?: string;
2460
+ /**
2461
+ * JSON Schema describing tool output (optional)
2462
+ */
2463
+ output_schema?: {
2464
+ [key: string]: unknown;
2465
+ };
2466
+ /**
2467
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2468
+ * in create/attach responses for inline custom definitions.
2469
+ */
2470
+ preload?: boolean;
2471
+ }
2472
+ /**
2473
+ * Per-tool elicitation permission config. Default behavior + per-tool
2474
+ * always_allow/always_deny overrides. Mutation via PATCH.
2475
+ */
2476
+ interface Permissions {
2477
+ /**
2478
+ * Default elicitation behavior when no override matches. `allow_all` runs every
2479
+ * tool without prompting; `ask_every_call` prompts on each invocation;
2480
+ * `ask_once_per_session` prompts once and remembers the answer for the rest of the
2481
+ * session.
2482
+ */
2483
+ default: 'allow_all' | 'ask_every_call' | 'ask_once_per_session';
2484
+ /**
2485
+ * Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? "__none__"}`,
2486
+ * plus account-wide overrides keyed by `*:${connectedAccountId ?? "__none__"}`.
2487
+ * Exact tool overrides take precedence over account-wide overrides. `always_allow`
2488
+ * skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once`
2489
+ * prompts once per session (allow/deny) and remembers; `ask_always` prompts on
2490
+ * every call with allow-once/allow-session/deny, ignoring any cached session
2491
+ * allow. Overrides take precedence over `default`.
2492
+ */
2493
+ overrides?: {
2494
+ [key: string]: 'always_allow' | 'always_deny' | 'ask_once' | 'ask_always';
2495
+ };
2496
+ }
2497
+ }
2498
+ /**
2499
+ * Configuration for connection management settings
2500
+ */
2501
+ interface ManageConnections {
2502
+ /**
2503
+ * The URL to redirect to after a user completes authentication for a connected
2504
+ * account. This allows you to handle the auth callback in your own application.
2505
+ */
2506
+ callback_url?: string;
2507
+ /**
2508
+ * Whether to enable the connection manager for automatic connection handling. If
2509
+ * true, we will provide a tool your agent can use to initiate connections to
2510
+ * toolkits if it doesnt exist. If set to false, then you have to manage
2511
+ * connections manually.
2512
+ */
2513
+ enable?: boolean | null;
2514
+ /**
2515
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting
2516
+ * connected accounts. Default true.
2517
+ */
2518
+ enable_connection_removal?: boolean | null;
2519
+ /**
2520
+ * When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to
2521
+ * poll connection status after sharing auth URLs. Default is false (disabled). May
2522
+ * not work reliably with GPT models.
2523
+ */
2524
+ enable_wait_for_connections?: boolean | null;
2525
+ }
2526
+ /**
2527
+ * Configure multi-account behavior. When enabled, users can connect multiple
2528
+ * accounts per toolkit.
2529
+ */
2530
+ interface MultiAccount {
2531
+ /**
2532
+ * When true, enables multi-account mode for this session. When not set, falls back
2533
+ * to org/project-level configuration.
2534
+ */
2535
+ enable?: boolean;
2536
+ /**
2537
+ * Maximum number of connected accounts allowed per toolkit. Must be between 2
2538
+ * and 10.
2539
+ */
2540
+ max_accounts_per_toolkit?: number;
2541
+ /**
2542
+ * When true, the agent must explicitly select which account to use. When false
2543
+ * (default), the first/default account is used automatically.
2544
+ */
2545
+ require_explicit_selection?: boolean;
2546
+ }
2547
+ /**
2548
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
2549
+ * "all" to dynamically expose every app tool allowed by positive
2550
+ * toolkits/tools/tags filters.
2551
+ */
2552
+ interface Preload {
2553
+ /**
2554
+ * Explicit tool slugs to preload, or "all" to dynamically expose all current and
2555
+ * future app tools allowed by the positive session filters. "all" is capped at
2556
+ * 1000 tools and is not supported without a positive allowlist.
2557
+ */
2558
+ tools?: Array<string> | string;
2559
+ }
2560
+ interface Search {
2561
+ enable?: boolean;
2562
+ }
2563
+ interface UnionMember1 {
2564
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2565
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2566
+ }
2567
+ /**
2568
+ * Enable only specific toolkits (allowlist)
2569
+ */
2570
+ interface Enable {
2571
+ /**
2572
+ * Only these specific toolkits will be enabled
2573
+ */
2574
+ enable: Array<string>;
2575
+ }
2576
+ /**
2577
+ * Disable specific toolkits (denylist)
2578
+ */
2579
+ interface Disable {
2580
+ /**
2581
+ * These specific toolkits will be disabled
2582
+ */
2583
+ disable: Array<string>;
2584
+ }
2585
+ interface Enable {
2586
+ /**
2587
+ * Only these specific tools will be available for this toolkit
2588
+ */
2589
+ enable: Array<string>;
2590
+ }
2591
+ interface Disable {
2592
+ /**
2593
+ * These specific tools will be disabled for this toolkit
2594
+ */
2595
+ disable: Array<string>;
2596
+ }
2597
+ interface Tags {
2598
+ /**
2599
+ * MCP tags to filter tools. Array format is treated as enabled list. Object format
2600
+ * supports both enabled and disabled lists.
2601
+ */
2602
+ tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | Tags.UnionMember1;
2603
+ }
2604
+ namespace Tags {
2605
+ interface UnionMember1 {
2606
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2607
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2608
+ }
2609
+ }
2610
+ /**
2611
+ * Configuration for workbench behavior
2612
+ */
2613
+ interface Workbench {
2614
+ /**
2615
+ * Character threshold for automatic offloading. When workbench response exceeds
2616
+ * this threshold, it will be automatically offloaded. Default is picked
2617
+ * automatically based on the response size.
2618
+ */
2619
+ auto_offload_threshold?: number;
2620
+ /**
2621
+ * Set to false to disable the workbench entirely. When disabled, no code execution
2622
+ * tools are available in the session.
2623
+ */
2624
+ enable?: boolean;
2625
+ /**
2626
+ * Whether proxy execution is enabled. When enabled, workbench can call URLs and
2627
+ * APIs directly.
2628
+ */
2629
+ enable_proxy_execution?: boolean;
2630
+ /**
2631
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
2632
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
2633
+ */
2634
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
2635
+ }
2636
+ }
2637
+ export interface SessionAttachParams {
2638
+ /**
2639
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2640
+ * customs — pass them on every request that needs them.
2641
+ */
2642
+ experimental?: SessionAttachParams.Experimental;
2643
+ }
2644
+ export declare namespace SessionAttachParams {
2645
+ /**
2646
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2647
+ * customs — pass them on every request that needs them.
2648
+ */
2649
+ interface Experimental {
2650
+ /**
2651
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2652
+ * existing Composio toolkits. All tools are no-auth.
2653
+ */
2654
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2655
+ /**
2656
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2657
+ * extends_toolkit inherit the Composio toolkit's connection.
2658
+ */
2659
+ custom_tools?: Array<Experimental.CustomTool>;
2660
+ }
2661
+ namespace Experimental {
2662
+ interface CustomToolkit {
2663
+ /**
2664
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2665
+ */
2666
+ description: string;
2667
+ /**
2668
+ * Display name shown to the LLM and in search results.
2669
+ */
2670
+ name: string;
2671
+ /**
2672
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2673
+ * slugs. Alphanumeric, underscores, and hyphens only.
2674
+ */
2675
+ slug: string;
2676
+ /**
2677
+ * Tools in this custom toolkit
2678
+ */
2679
+ tools: Array<CustomToolkit.Tool>;
2680
+ /**
2681
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2682
+ * in create/attach responses for inline custom definitions.
2683
+ */
2684
+ preload?: boolean;
2685
+ }
2686
+ namespace CustomToolkit {
2687
+ interface Tool {
2688
+ /**
2689
+ * Used for BM25 search matching and shown to the LLM.
2690
+ */
2691
+ description: string;
2692
+ /**
2693
+ * Must have type: "object" and a properties field.
2694
+ */
2695
+ input_schema: {
2696
+ [key: string]: unknown;
2697
+ };
2698
+ /**
2699
+ * Human-readable display name
2700
+ */
2701
+ name: string;
2702
+ /**
2703
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
2704
+ * chars total).
2705
+ */
2706
+ slug: string;
2707
+ /**
2708
+ * Optional output schema for the tool response.
2709
+ */
2710
+ output_schema?: {
2711
+ [key: string]: unknown;
2712
+ };
2713
+ /**
2714
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2715
+ * in create/attach responses for inline custom definitions.
2716
+ */
2717
+ preload?: boolean;
2718
+ }
2719
+ }
2720
+ interface CustomTool {
2721
+ /**
2722
+ * Used for BM25 search matching and shown to the LLM.
2723
+ */
2724
+ description: string;
2725
+ /**
2726
+ * Must have type: "object" and a properties field.
2727
+ */
2728
+ input_schema: {
2729
+ [key: string]: unknown;
2730
+ };
2731
+ /**
2732
+ * Human-readable display name
2733
+ */
2734
+ name: string;
2735
+ /**
2736
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
2737
+ * (extending). Max 60 chars total.
2738
+ */
2739
+ slug: string;
2740
+ /**
2741
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
2742
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
2743
+ */
2744
+ extends_toolkit?: string;
2745
+ /**
2746
+ * JSON Schema describing tool output (optional)
2747
+ */
2748
+ output_schema?: {
2749
+ [key: string]: unknown;
2750
+ };
2751
+ /**
2752
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2753
+ * in create/attach responses for inline custom definitions.
2754
+ */
2755
+ preload?: boolean;
2756
+ }
2757
+ }
2758
+ }
2759
+ export interface SessionConfigHistoryParams {
2760
+ /**
2761
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
2762
+ * limit. The page is the page number and the limit is the number of items per
2763
+ * page. The cursor is used to paginate through the items. The cursor is not
2764
+ * required for the first page.
2765
+ */
2766
+ cursor?: string;
2767
+ /**
2768
+ * Number of items per page, max allowed is 100
2769
+ */
2770
+ limit?: number;
2771
+ }
2772
+ export interface SessionExecuteParams {
2773
+ /**
2774
+ * The unique slug identifier of the tool to execute. Supports both meta tools and
2775
+ * app tools exposed by the session.
2776
+ */
2777
+ tool_slug: string;
2778
+ /**
2779
+ * Account identifier to specify which connected account to use for direct tool
2780
+ * execution. Use the account ID (e.g. "coup_hurricane_dal_analytical") or an
2781
+ * alias. When omitted with a single account, the default is used. When omitted
2782
+ * with multiple accounts, an error lists available accounts. Meta/helper tools
2783
+ * either ignore this top-level field or define their own account-selection fields,
2784
+ * for example COMPOSIO_MULTI_EXECUTE_TOOL.tools[].account.
2785
+ */
2786
+ account?: string;
2787
+ /**
2788
+ * The arguments required by the tool
2789
+ */
2790
+ arguments?: {
2791
+ [key: string]: unknown;
2792
+ };
2793
+ /**
2794
+ * When true, direct non-meta tool execution may return a workbench offload preview
2795
+ * if the response exceeds the configured threshold and the session workbench is
2796
+ * enabled. When omitted or false, direct tool execution returns the normal inline
2797
+ * response. Meta/helper tools are unaffected, and COMPOSIO_MULTI_EXECUTE_TOOL uses
2798
+ * session.workbench configuration for its own batch-level offload behavior.
2799
+ */
2800
+ enable_auto_workbench_offload?: boolean;
2801
+ /**
2802
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2803
+ * customs — pass them on every request that needs them.
2804
+ */
2805
+ experimental?: SessionExecuteParams.Experimental;
2806
+ }
2807
+ export declare namespace SessionExecuteParams {
2808
+ /**
2809
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2810
+ * customs — pass them on every request that needs them.
2811
+ */
2812
+ interface Experimental {
2813
+ /**
2814
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2815
+ * existing Composio toolkits. All tools are no-auth.
2816
+ */
2817
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2818
+ /**
2819
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2820
+ * extends_toolkit inherit the Composio toolkit's connection.
2821
+ */
2822
+ custom_tools?: Array<Experimental.CustomTool>;
2823
+ }
2824
+ namespace Experimental {
2825
+ interface CustomToolkit {
2826
+ /**
2827
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2828
+ */
2829
+ description: string;
2830
+ /**
2831
+ * Display name shown to the LLM and in search results.
2832
+ */
2833
+ name: string;
2834
+ /**
2835
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2836
+ * slugs. Alphanumeric, underscores, and hyphens only.
2837
+ */
2838
+ slug: string;
2839
+ /**
2840
+ * Tools in this custom toolkit
2841
+ */
2842
+ tools: Array<CustomToolkit.Tool>;
2843
+ /**
2844
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2845
+ * in create/attach responses for inline custom definitions.
2846
+ */
2847
+ preload?: boolean;
2848
+ }
2849
+ namespace CustomToolkit {
2850
+ interface Tool {
2851
+ /**
2852
+ * Used for BM25 search matching and shown to the LLM.
2853
+ */
2854
+ description: string;
2855
+ /**
2856
+ * Must have type: "object" and a properties field.
2857
+ */
2858
+ input_schema: {
2859
+ [key: string]: unknown;
2860
+ };
2861
+ /**
2862
+ * Human-readable display name
2863
+ */
2864
+ name: string;
2865
+ /**
2866
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
2867
+ * chars total).
2868
+ */
2869
+ slug: string;
2870
+ /**
2871
+ * Optional output schema for the tool response.
2872
+ */
2873
+ output_schema?: {
2874
+ [key: string]: unknown;
2875
+ };
2876
+ /**
2877
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2878
+ * in create/attach responses for inline custom definitions.
2879
+ */
2880
+ preload?: boolean;
2881
+ }
2882
+ }
2883
+ interface CustomTool {
2884
+ /**
2885
+ * Used for BM25 search matching and shown to the LLM.
2886
+ */
2887
+ description: string;
2888
+ /**
2889
+ * Must have type: "object" and a properties field.
2890
+ */
2891
+ input_schema: {
2892
+ [key: string]: unknown;
2893
+ };
2894
+ /**
2895
+ * Human-readable display name
2896
+ */
2897
+ name: string;
2898
+ /**
2899
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
2900
+ * (extending). Max 60 chars total.
2901
+ */
2902
+ slug: string;
2903
+ /**
2904
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
2905
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
2906
+ */
2907
+ extends_toolkit?: string;
2908
+ /**
2909
+ * JSON Schema describing tool output (optional)
2910
+ */
2911
+ output_schema?: {
2912
+ [key: string]: unknown;
2913
+ };
2914
+ /**
2915
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2916
+ * in create/attach responses for inline custom definitions.
2917
+ */
2918
+ preload?: boolean;
2919
+ }
2920
+ }
2921
+ }
2922
+ export interface SessionExecuteMetaParams {
2923
+ /**
2924
+ * The unique slug identifier of the meta tool to execute
2925
+ */
2926
+ slug: 'COMPOSIO_SEARCH_TOOLS' | 'COMPOSIO_MULTI_EXECUTE_TOOL' | 'COMPOSIO_MANAGE_CONNECTIONS' | 'COMPOSIO_WAIT_FOR_CONNECTIONS' | 'COMPOSIO_REMOTE_WORKBENCH' | 'COMPOSIO_REMOTE_BASH_TOOL' | 'COMPOSIO_GET_TOOL_SCHEMAS' | 'COMPOSIO_UPSERT_RECIPE' | 'COMPOSIO_GET_RECIPE';
2927
+ /**
2928
+ * The arguments required by the meta tool
2929
+ */
2930
+ arguments?: {
2931
+ [key: string]: unknown;
2932
+ };
2933
+ /**
2934
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2935
+ * customs — pass them on every request that needs them.
2936
+ */
2937
+ experimental?: SessionExecuteMetaParams.Experimental;
2938
+ }
2939
+ export declare namespace SessionExecuteMetaParams {
2940
+ /**
2941
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2942
+ * customs — pass them on every request that needs them.
2943
+ */
2944
+ interface Experimental {
2945
+ /**
2946
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2947
+ * existing Composio toolkits. All tools are no-auth.
2948
+ */
2949
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2950
+ /**
2951
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2952
+ * extends_toolkit inherit the Composio toolkit's connection.
2953
+ */
2954
+ custom_tools?: Array<Experimental.CustomTool>;
2955
+ }
2956
+ namespace Experimental {
2957
+ interface CustomToolkit {
2958
+ /**
2959
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2960
+ */
2961
+ description: string;
2962
+ /**
2963
+ * Display name shown to the LLM and in search results.
2964
+ */
2965
+ name: string;
2966
+ /**
2967
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2968
+ * slugs. Alphanumeric, underscores, and hyphens only.
2969
+ */
2970
+ slug: string;
2971
+ /**
2972
+ * Tools in this custom toolkit
2973
+ */
2974
+ tools: Array<CustomToolkit.Tool>;
2975
+ /**
2976
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2977
+ * in create/attach responses for inline custom definitions.
2978
+ */
2979
+ preload?: boolean;
2980
+ }
2981
+ namespace CustomToolkit {
2982
+ interface Tool {
2983
+ /**
2984
+ * Used for BM25 search matching and shown to the LLM.
2985
+ */
2986
+ description: string;
2987
+ /**
2988
+ * Must have type: "object" and a properties field.
2989
+ */
2990
+ input_schema: {
2991
+ [key: string]: unknown;
2992
+ };
2993
+ /**
2994
+ * Human-readable display name
2995
+ */
2996
+ name: string;
2997
+ /**
2998
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
2999
+ * chars total).
3000
+ */
3001
+ slug: string;
3002
+ /**
3003
+ * Optional output schema for the tool response.
3004
+ */
3005
+ output_schema?: {
3006
+ [key: string]: unknown;
3007
+ };
3008
+ /**
3009
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3010
+ * in create/attach responses for inline custom definitions.
3011
+ */
3012
+ preload?: boolean;
3013
+ }
3014
+ }
3015
+ interface CustomTool {
3016
+ /**
3017
+ * Used for BM25 search matching and shown to the LLM.
3018
+ */
3019
+ description: string;
3020
+ /**
3021
+ * Must have type: "object" and a properties field.
3022
+ */
3023
+ input_schema: {
3024
+ [key: string]: unknown;
3025
+ };
3026
+ /**
3027
+ * Human-readable display name
3028
+ */
3029
+ name: string;
3030
+ /**
3031
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
3032
+ * (extending). Max 60 chars total.
3033
+ */
3034
+ slug: string;
3035
+ /**
3036
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
3037
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
3038
+ */
3039
+ extends_toolkit?: string;
3040
+ /**
3041
+ * JSON Schema describing tool output (optional)
3042
+ */
3043
+ output_schema?: {
3044
+ [key: string]: unknown;
3045
+ };
3046
+ /**
3047
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3048
+ * in create/attach responses for inline custom definitions.
3049
+ */
3050
+ preload?: boolean;
3051
+ }
3052
+ }
3053
+ }
3054
+ export interface SessionLinkParams {
3055
+ /**
3056
+ * The unique slug identifier of the toolkit to connect
3057
+ */
3058
+ toolkit: string;
3059
+ /**
3060
+ * A human-readable alias for this connected account. Must be unique per entity and
3061
+ * toolkit within the project.
3062
+ */
3063
+ alias?: string;
3064
+ /**
3065
+ * URL where users will be redirected after completing auth
3066
+ */
3067
+ callback_url?: string;
3068
+ }
3069
+ export interface SessionPatchParams {
3070
+ /**
3071
+ * The auth configs to use for the session. This will override the default behavior
3072
+ * and use the given auth config when specific toolkits are being executed
3073
+ */
3074
+ auth_configs?: {
3075
+ [key: string]: string;
3076
+ };
3077
+ /**
3078
+ * The connected accounts to use for the session, as an array of nano-IDs per
3079
+ * toolkit. This overrides the default behaviour and pins specific connected
3080
+ * accounts when toolkits are executed. Each account must exist (not deleted or
3081
+ * disabled) and belong to the same `user_id` as the session. Multi-account
3082
+ * sessions can pin multiple; non-multi-account sessions are capped at length 1.
3083
+ */
3084
+ connected_accounts?: {
3085
+ [key: string]: Array<string>;
3086
+ } | null;
3087
+ execute?: SessionPatchParams.Execute;
3088
+ experimental?: SessionPatchParams.Experimental | null;
3089
+ manage_connections?: SessionPatchParams.ManageConnections | null;
3090
+ multi_account?: SessionPatchParams.MultiAccount | null;
3091
+ /**
3092
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
3093
+ * "all" to dynamically expose every app tool allowed by positive
3094
+ * toolkits/tools/tags filters.
3095
+ */
3096
+ preload?: SessionPatchParams.Preload;
3097
+ search?: SessionPatchParams.Search;
3098
+ /**
3099
+ * Global MCP tool annotation hints for filtering. Array format is treated as
3100
+ * enabled list. Object format supports both enabled (tool must have at least one)
3101
+ * and disabled (tool must NOT have any) lists. Toolkit-level tags override this.
3102
+ * Toolkit enabled/disabled lists take precedence over tag filtering.
3103
+ */
3104
+ tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | SessionPatchParams.UnionMember1;
3105
+ /**
3106
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable
3107
+ * toolkits (denylist). Mutually exclusive.
3108
+ */
3109
+ toolkits?: SessionPatchParams.Enable | SessionPatchParams.Disable;
3110
+ /**
3111
+ * Tool-level configuration per toolkit. Allows you to enable, disable, or filter
3112
+ * by tags for specific tools within each toolkit. Every slug passed in `enable` /
3113
+ * `disable` must be a valid Composio tool slug for that toolkit — invalid or
3114
+ * typo'd slugs fail session creation with a clear error listing which ones didn't
3115
+ * match.
3116
+ */
3117
+ tools?: {
3118
+ [key: string]: SessionPatchParams.Enable | SessionPatchParams.Disable | SessionPatchParams.Tags;
3119
+ };
3120
+ workbench?: SessionPatchParams.Workbench | null;
3121
+ }
3122
+ export declare namespace SessionPatchParams {
3123
+ interface Execute {
3124
+ enable_multi_execute?: boolean;
3125
+ }
3126
+ interface Experimental {
3127
+ /**
3128
+ * Experimental base URL override for connection link redirects created from this
3129
+ * tool-router session. When set, link creation returns
3130
+ * `${link_url_overwrite}/link/{link_token}` instead of the default Composio
3131
+ * Connect base URL. Use only when your integration needs links to open through a
3132
+ * custom Connect host.
3133
+ */
3134
+ link_url_overwrite?: string;
3135
+ /**
3136
+ * Per-tool elicitation permission config. Replaces the stored block when provided.
3137
+ */
3138
+ permissions?: Experimental.Permissions;
3139
+ }
3140
+ namespace Experimental {
3141
+ /**
3142
+ * Per-tool elicitation permission config. Replaces the stored block when provided.
3143
+ */
3144
+ interface Permissions {
3145
+ /**
3146
+ * Default elicitation behavior when no override matches. `allow_all` runs every
3147
+ * tool without prompting; `ask_every_call` prompts on each invocation;
3148
+ * `ask_once_per_session` prompts once and remembers the answer for the rest of the
3149
+ * session.
3150
+ */
3151
+ default: 'allow_all' | 'ask_every_call' | 'ask_once_per_session';
3152
+ /**
3153
+ * Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? "__none__"}`,
3154
+ * plus account-wide overrides keyed by `*:${connectedAccountId ?? "__none__"}`.
3155
+ * Exact tool overrides take precedence over account-wide overrides. `always_allow`
3156
+ * skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once`
3157
+ * prompts once per session (allow/deny) and remembers; `ask_always` prompts on
3158
+ * every call with allow-once/allow-session/deny, ignoring any cached session
3159
+ * allow. Overrides take precedence over `default`.
3160
+ */
3161
+ overrides?: {
3162
+ [key: string]: 'always_allow' | 'always_deny' | 'ask_once' | 'ask_always';
3163
+ };
3164
+ }
3165
+ }
3166
+ interface ManageConnections {
3167
+ /**
3168
+ * The URL to redirect to after a user completes authentication for a connected
3169
+ * account. This allows you to handle the auth callback in your own application.
3170
+ */
3171
+ callback_url?: string;
3172
+ /**
3173
+ * Whether to enable the connection manager for automatic connection handling. If
3174
+ * true, we will provide a tool your agent can use to initiate connections to
3175
+ * toolkits if it doesnt exist. If set to false, then you have to manage
3176
+ * connections manually.
3177
+ */
3178
+ enable?: boolean | null;
3179
+ /**
3180
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting
3181
+ * connected accounts. Default true.
3182
+ */
3183
+ enable_connection_removal?: boolean | null;
3184
+ /**
3185
+ * When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to
3186
+ * poll connection status after sharing auth URLs. Default is false (disabled). May
3187
+ * not work reliably with GPT models.
3188
+ */
3189
+ enable_wait_for_connections?: boolean | null;
3190
+ }
3191
+ interface MultiAccount {
3192
+ /**
3193
+ * When true, enables multi-account mode for this session. When not set, falls back
3194
+ * to org/project-level configuration.
3195
+ */
3196
+ enable?: boolean;
3197
+ /**
3198
+ * Maximum number of connected accounts allowed per toolkit. Must be between 2
3199
+ * and 10.
3200
+ */
3201
+ max_accounts_per_toolkit?: number;
3202
+ /**
3203
+ * When true, the agent must explicitly select which account to use. When false
3204
+ * (default), the first/default account is used automatically.
3205
+ */
3206
+ require_explicit_selection?: boolean;
3207
+ }
3208
+ /**
3209
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
3210
+ * "all" to dynamically expose every app tool allowed by positive
3211
+ * toolkits/tools/tags filters.
3212
+ */
3213
+ interface Preload {
3214
+ /**
3215
+ * Explicit tool slugs to preload, or "all" to dynamically expose all current and
3216
+ * future app tools allowed by the positive session filters. "all" is capped at
3217
+ * 1000 tools and is not supported without a positive allowlist.
3218
+ */
3219
+ tools?: Array<string> | string;
3220
+ }
3221
+ interface Search {
3222
+ enable?: boolean;
3223
+ }
3224
+ interface UnionMember1 {
3225
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3226
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3227
+ }
3228
+ /**
3229
+ * Enable only specific toolkits (allowlist)
3230
+ */
3231
+ interface Enable {
3232
+ /**
3233
+ * Only these specific toolkits will be enabled
3234
+ */
3235
+ enable: Array<string>;
3236
+ }
3237
+ /**
3238
+ * Disable specific toolkits (denylist)
3239
+ */
3240
+ interface Disable {
3241
+ /**
3242
+ * These specific toolkits will be disabled
3243
+ */
3244
+ disable: Array<string>;
3245
+ }
3246
+ interface Enable {
3247
+ /**
3248
+ * Only these specific tools will be available for this toolkit
3249
+ */
3250
+ enable: Array<string>;
3251
+ }
3252
+ interface Disable {
3253
+ /**
3254
+ * These specific tools will be disabled for this toolkit
3255
+ */
3256
+ disable: Array<string>;
3257
+ }
3258
+ interface Tags {
3259
+ /**
3260
+ * MCP tags to filter tools. Array format is treated as enabled list. Object format
3261
+ * supports both enabled and disabled lists.
3262
+ */
3263
+ tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | Tags.UnionMember1;
3264
+ }
3265
+ namespace Tags {
3266
+ interface UnionMember1 {
3267
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3268
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3269
+ }
3270
+ }
3271
+ interface Workbench {
3272
+ /**
3273
+ * Character threshold for automatic offloading. When workbench response exceeds
3274
+ * this threshold, it will be automatically offloaded. Default is picked
3275
+ * automatically based on the response size.
3276
+ */
3277
+ auto_offload_threshold?: number;
3278
+ /**
3279
+ * Set to false to disable the workbench entirely. When disabled, no code execution
3280
+ * tools are available in the session.
3281
+ */
3282
+ enable?: boolean;
3283
+ /**
3284
+ * Whether proxy execution is enabled. When enabled, workbench can call URLs and
3285
+ * APIs directly.
3286
+ */
3287
+ enable_proxy_execution?: boolean;
3288
+ /**
3289
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
3290
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Patching this value recreates the sandbox
3291
+ * on next access — sandbox FS state is lost, but /mnt/files/ R2 mount persists.
3292
+ */
3293
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
3294
+ }
3295
+ }
3296
+ export interface SessionProxyExecuteParams {
3297
+ /**
3298
+ * The API endpoint to call (absolute URL or path relative to base URL of the
3299
+ * connected account)
3300
+ */
3301
+ endpoint: string;
3302
+ /**
3303
+ * The HTTP method to use for the request
3304
+ */
3305
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
3306
+ /**
3307
+ * The slug of the toolkit to use for the request
3308
+ */
3309
+ toolkit_slug: string;
3310
+ /**
3311
+ * Binary body to send. For binary upload via URL: use {url: "https://...",
3312
+ * content_type?: "..."}. For binary upload via base64: use {base64: "...",
3313
+ * content_type?: "..."}.
3314
+ */
3315
+ binary_body?: SessionProxyExecuteParams.UnionMember0 | SessionProxyExecuteParams.UnionMember1;
3316
+ /**
3317
+ * The request body (for POST, PUT, and PATCH requests)
3318
+ */
3319
+ body?: unknown;
3320
+ custom_connection_data?: SessionProxyExecuteParams.UnionMember0 | SessionProxyExecuteParams.UnionMember1 | SessionProxyExecuteParams.UnionMember2 | SessionProxyExecuteParams.UnionMember3 | SessionProxyExecuteParams.UnionMember4 | SessionProxyExecuteParams.UnionMember5 | SessionProxyExecuteParams.UnionMember6 | SessionProxyExecuteParams.UnionMember7 | SessionProxyExecuteParams.UnionMember8 | SessionProxyExecuteParams.UnionMember9 | SessionProxyExecuteParams.UnionMember10;
3321
+ /**
3322
+ * Additional HTTP headers or query parameters to include in the request
3323
+ */
3324
+ parameters?: Array<SessionProxyExecuteParams.Parameter>;
3325
+ }
3326
+ export declare namespace SessionProxyExecuteParams {
3327
+ interface UnionMember0 {
3328
+ /**
3329
+ * URL to fetch binary content from
3330
+ */
3331
+ url: string;
3332
+ /**
3333
+ * Content-Type header to use for the request
3334
+ */
3335
+ content_type?: string;
3336
+ }
3337
+ interface UnionMember1 {
3338
+ /**
3339
+ * Base64-encoded binary data
3340
+ */
3341
+ base64: string;
3342
+ /**
3343
+ * Content-Type header to use for the request
3344
+ */
3345
+ content_type?: string;
3346
+ }
3347
+ interface UnionMember0 {
3348
+ authScheme: 'OAUTH2';
3349
+ toolkitSlug: string;
3350
+ val: UnionMember0.Val;
3351
+ }
3352
+ namespace UnionMember0 {
3353
+ interface Val {
3354
+ access_token: string;
3355
+ account_id?: string;
3356
+ account_url?: string;
3357
+ api_url?: string;
3358
+ /**
3359
+ * for slack user scopes
3360
+ */
3361
+ authed_user?: Val.AuthedUser;
3362
+ base_url?: string;
3363
+ borneo_dashboard_url?: string;
3364
+ COMPANYDOMAIN?: string;
3365
+ dc?: string;
3366
+ domain?: string;
3367
+ expires_in?: number | string | null;
3368
+ extension?: string;
3369
+ form_api_base_url?: string;
3370
+ id_token?: string;
3371
+ instanceEndpoint?: string;
3372
+ instanceName?: string;
3373
+ /**
3374
+ * Whether to return the redirect url without shortening
3375
+ */
3376
+ long_redirect_url?: boolean;
3377
+ proxy_password?: string;
3378
+ proxy_username?: string;
3379
+ refresh_token?: string | null;
3380
+ region?: string;
3381
+ scope?: string | Array<string> | null;
3382
+ server_location?: string;
3383
+ shop?: string;
3384
+ site_name?: string;
3385
+ /**
3386
+ * The oauth2 state prefix for the connection
3387
+ */
3388
+ state_prefix?: string;
3389
+ subdomain?: string;
3390
+ token_type?: string;
3391
+ version?: string;
3392
+ webhook_signature?: string;
3393
+ your_server?: string;
3394
+ 'your-domain'?: string;
3395
+ [k: string]: unknown;
3396
+ }
3397
+ namespace Val {
3398
+ /**
3399
+ * for slack user scopes
3400
+ */
3401
+ interface AuthedUser {
3402
+ access_token?: string;
3403
+ scope?: string;
3404
+ }
3405
+ }
3406
+ }
3407
+ interface UnionMember1 {
3408
+ authScheme: 'DCR_OAUTH';
3409
+ toolkitSlug: string;
3410
+ val: UnionMember1.Val;
3411
+ }
3412
+ namespace UnionMember1 {
3413
+ interface Val {
3414
+ access_token: string;
3415
+ /**
3416
+ * Dynamically registered client ID
3417
+ */
3418
+ client_id: string;
3419
+ account_id?: string;
3420
+ account_url?: string;
3421
+ api_url?: string;
3422
+ base_url?: string;
3423
+ borneo_dashboard_url?: string;
3424
+ client_id_issued_at?: number;
3425
+ /**
3426
+ * Dynamically registered client secret
3427
+ */
3428
+ client_secret?: string;
3429
+ client_secret_expires_at?: number;
3430
+ COMPANYDOMAIN?: string;
3431
+ dc?: string;
3432
+ domain?: string;
3433
+ expires_in?: number | string | null;
3434
+ extension?: string;
3435
+ form_api_base_url?: string;
3436
+ id_token?: string;
3437
+ instanceEndpoint?: string;
3438
+ instanceName?: string;
3439
+ /**
3440
+ * Whether to return the redirect url without shortening
3441
+ */
3442
+ long_redirect_url?: boolean;
3443
+ proxy_password?: string;
3444
+ proxy_username?: string;
3445
+ refresh_token?: string | null;
3446
+ region?: string;
3447
+ scope?: string | Array<string> | null;
3448
+ server_location?: string;
3449
+ shop?: string;
3450
+ site_name?: string;
3451
+ /**
3452
+ * The oauth2 state prefix for the connection
3453
+ */
3454
+ state_prefix?: string;
3455
+ subdomain?: string;
3456
+ token_type?: string;
3457
+ version?: string;
3458
+ your_server?: string;
3459
+ 'your-domain'?: string;
3460
+ [k: string]: unknown;
3461
+ }
3462
+ }
3463
+ interface UnionMember2 {
3464
+ authScheme: 'API_KEY';
3465
+ toolkitSlug: string;
3466
+ val: UnionMember2.Val;
3467
+ }
3468
+ namespace UnionMember2 {
3469
+ interface Val {
3470
+ account_id?: string;
3471
+ account_url?: string;
3472
+ api_key?: string;
3473
+ api_url?: string;
3474
+ base_url?: string;
3475
+ basic_encoded?: string;
3476
+ bearer_token?: string;
3477
+ borneo_dashboard_url?: string;
3478
+ COMPANYDOMAIN?: string;
3479
+ dc?: string;
3480
+ domain?: string;
3481
+ extension?: string;
3482
+ form_api_base_url?: string;
3483
+ generic_api_key?: string;
3484
+ instanceEndpoint?: string;
3485
+ instanceName?: string;
3486
+ proxy_password?: string;
3487
+ proxy_username?: string;
3488
+ region?: string;
3489
+ server_location?: string;
3490
+ shop?: string;
3491
+ site_name?: string;
3492
+ subdomain?: string;
3493
+ version?: string;
3494
+ your_server?: string;
3495
+ 'your-domain'?: string;
3496
+ [k: string]: unknown;
3497
+ }
3498
+ }
3499
+ interface UnionMember3 {
3500
+ authScheme: 'BASIC_WITH_JWT';
3501
+ toolkitSlug: string;
3502
+ val: UnionMember3.Val;
3503
+ }
3504
+ namespace UnionMember3 {
3505
+ interface Val {
3506
+ password: string;
3507
+ username: string;
3508
+ account_id?: string;
3509
+ account_url?: string;
3510
+ api_url?: string;
3511
+ base_url?: string;
3512
+ borneo_dashboard_url?: string;
3513
+ COMPANYDOMAIN?: string;
3514
+ dc?: string;
3515
+ domain?: string;
3516
+ extension?: string;
3517
+ form_api_base_url?: string;
3518
+ instanceEndpoint?: string;
3519
+ instanceName?: string;
3520
+ proxy_password?: string;
3521
+ proxy_username?: string;
3522
+ region?: string;
3523
+ server_location?: string;
3524
+ shop?: string;
3525
+ site_name?: string;
3526
+ subdomain?: string;
3527
+ version?: string;
3528
+ your_server?: string;
3529
+ 'your-domain'?: string;
3530
+ [k: string]: unknown;
3531
+ }
3532
+ }
3533
+ interface UnionMember4 {
3534
+ authScheme: 'BASIC';
3535
+ toolkitSlug: string;
3536
+ val: UnionMember4.Val;
3537
+ }
3538
+ namespace UnionMember4 {
3539
+ interface Val {
3540
+ username: string;
3541
+ account_id?: string;
3542
+ account_url?: string;
3543
+ api_url?: string;
3544
+ base_url?: string;
3545
+ borneo_dashboard_url?: string;
3546
+ COMPANYDOMAIN?: string;
3547
+ dc?: string;
3548
+ domain?: string;
3549
+ extension?: string;
3550
+ form_api_base_url?: string;
3551
+ instanceEndpoint?: string;
3552
+ instanceName?: string;
3553
+ password?: string;
3554
+ proxy_password?: string;
3555
+ proxy_username?: string;
3556
+ region?: string;
3557
+ server_location?: string;
3558
+ shop?: string;
3559
+ site_name?: string;
3560
+ subdomain?: string;
3561
+ version?: string;
3562
+ your_server?: string;
3563
+ 'your-domain'?: string;
3564
+ [k: string]: unknown;
3565
+ }
3566
+ }
3567
+ interface UnionMember5 {
3568
+ authScheme: 'BEARER_TOKEN';
3569
+ toolkitSlug: string;
3570
+ val: UnionMember5.Val;
3571
+ }
3572
+ namespace UnionMember5 {
3573
+ interface Val {
3574
+ token: string;
3575
+ account_id?: string;
3576
+ account_url?: string;
3577
+ api_url?: string;
3578
+ base_url?: string;
3579
+ borneo_dashboard_url?: string;
3580
+ COMPANYDOMAIN?: string;
3581
+ dc?: string;
3582
+ domain?: string;
3583
+ extension?: string;
3584
+ form_api_base_url?: string;
3585
+ instanceEndpoint?: string;
3586
+ instanceName?: string;
3587
+ proxy_password?: string;
3588
+ proxy_username?: string;
3589
+ region?: string;
3590
+ server_location?: string;
3591
+ shop?: string;
3592
+ site_name?: string;
3593
+ subdomain?: string;
3594
+ version?: string;
3595
+ your_server?: string;
3596
+ 'your-domain'?: string;
3597
+ [k: string]: unknown;
3598
+ }
3599
+ }
3600
+ interface UnionMember6 {
3601
+ authScheme: 'OAUTH1';
3602
+ toolkitSlug: string;
3603
+ val: UnionMember6.Val;
3604
+ }
3605
+ namespace UnionMember6 {
3606
+ interface Val {
3607
+ oauth_token: string;
3608
+ oauth_token_secret: string;
3609
+ account_id?: string;
3610
+ account_url?: string;
3611
+ api_url?: string;
3612
+ base_url?: string;
3613
+ borneo_dashboard_url?: string;
3614
+ callback_url?: string;
3615
+ COMPANYDOMAIN?: string;
3616
+ consumer_key?: string;
3617
+ dc?: string;
3618
+ domain?: string;
3619
+ extension?: string;
3620
+ form_api_base_url?: string;
3621
+ instanceEndpoint?: string;
3622
+ instanceName?: string;
3623
+ oauth_verifier?: string;
3624
+ proxy_password?: string;
3625
+ proxy_username?: string;
3626
+ redirectUrl?: string;
3627
+ region?: string;
3628
+ server_location?: string;
3629
+ shop?: string;
3630
+ site_name?: string;
3631
+ subdomain?: string;
3632
+ version?: string;
3633
+ your_server?: string;
3634
+ 'your-domain'?: string;
3635
+ [k: string]: unknown;
3636
+ }
3637
+ }
3638
+ interface UnionMember7 {
3639
+ authScheme: 'NO_AUTH';
3640
+ toolkitSlug: string;
3641
+ val: UnionMember7.Val;
3642
+ }
3643
+ namespace UnionMember7 {
3644
+ interface Val {
3645
+ account_id?: string;
3646
+ account_url?: string;
3647
+ api_url?: string;
3648
+ base_url?: string;
3649
+ borneo_dashboard_url?: string;
3650
+ COMPANYDOMAIN?: string;
3651
+ dc?: string;
3652
+ domain?: string;
3653
+ extension?: string;
3654
+ form_api_base_url?: string;
3655
+ instanceEndpoint?: string;
3656
+ instanceName?: string;
3657
+ proxy_password?: string;
3658
+ proxy_username?: string;
3659
+ region?: string;
3660
+ server_location?: string;
3661
+ shop?: string;
3662
+ site_name?: string;
3663
+ subdomain?: string;
3664
+ version?: string;
3665
+ your_server?: string;
3666
+ 'your-domain'?: string;
3667
+ [k: string]: unknown;
3668
+ }
3669
+ }
3670
+ interface UnionMember8 {
3671
+ authScheme: 'SERVICE_ACCOUNT';
3672
+ toolkitSlug: string;
3673
+ val: UnionMember8.Val;
3674
+ }
3675
+ namespace UnionMember8 {
3676
+ interface Val {
3677
+ application_id: string;
3678
+ installation_id: string;
3679
+ private_key: string;
3680
+ account_id?: string;
3681
+ account_url?: string;
3682
+ api_url?: string;
3683
+ base_url?: string;
3684
+ borneo_dashboard_url?: string;
3685
+ COMPANYDOMAIN?: string;
3686
+ dc?: string;
3687
+ domain?: string;
3688
+ extension?: string;
3689
+ form_api_base_url?: string;
3690
+ instanceEndpoint?: string;
3691
+ instanceName?: string;
3692
+ proxy_password?: string;
3693
+ proxy_username?: string;
3694
+ region?: string;
3695
+ server_location?: string;
3696
+ shop?: string;
3697
+ site_name?: string;
3698
+ subdomain?: string;
3699
+ version?: string;
3700
+ your_server?: string;
3701
+ 'your-domain'?: string;
3702
+ [k: string]: unknown;
3703
+ }
3704
+ }
3705
+ interface UnionMember9 {
3706
+ authScheme: 'GOOGLE_SERVICE_ACCOUNT';
3707
+ toolkitSlug: string;
3708
+ val: UnionMember9.Val;
3709
+ }
3710
+ namespace UnionMember9 {
3711
+ interface Val {
3712
+ credentials_json: string;
3713
+ account_id?: string;
3714
+ account_url?: string;
3715
+ api_url?: string;
3716
+ base_url?: string;
3717
+ borneo_dashboard_url?: string;
3718
+ COMPANYDOMAIN?: string;
3719
+ dc?: string;
3720
+ domain?: string;
3721
+ extension?: string;
3722
+ form_api_base_url?: string;
3723
+ instanceEndpoint?: string;
3724
+ instanceName?: string;
3725
+ proxy_password?: string;
3726
+ proxy_username?: string;
3727
+ region?: string;
3728
+ server_location?: string;
3729
+ shop?: string;
3730
+ site_name?: string;
3731
+ subdomain?: string;
3732
+ version?: string;
3733
+ your_server?: string;
3734
+ 'your-domain'?: string;
3735
+ [k: string]: unknown;
3736
+ }
3737
+ }
3738
+ interface UnionMember10 {
3739
+ authScheme: 'S2S_OAUTH2';
3740
+ toolkitSlug: string;
3741
+ val: UnionMember10.Val;
3742
+ }
3743
+ namespace UnionMember10 {
3744
+ interface Val {
3745
+ access_token: string;
3746
+ client_id: string;
3747
+ client_secret: string;
3748
+ account_id?: string;
3749
+ account_url?: string;
3750
+ api_url?: string;
3751
+ base_url?: string;
3752
+ borneo_dashboard_url?: string;
3753
+ COMPANYDOMAIN?: string;
3754
+ dc?: string;
3755
+ domain?: string;
3756
+ expires_at?: string;
3757
+ expires_in?: number | string | null;
3758
+ extension?: string;
3759
+ form_api_base_url?: string;
3760
+ instanceEndpoint?: string;
3761
+ instanceName?: string;
3762
+ proxy_password?: string;
3763
+ proxy_username?: string;
3764
+ region?: string;
3765
+ scope?: string | Array<string> | null;
3766
+ server_location?: string;
3767
+ shop?: string;
3768
+ site_name?: string;
3769
+ subdomain?: string;
3770
+ token_type?: string;
3771
+ version?: string;
3772
+ your_server?: string;
3773
+ 'your-domain'?: string;
3774
+ [k: string]: unknown;
3775
+ }
3776
+ }
3777
+ interface Parameter {
3778
+ /**
3779
+ * Parameter name
3780
+ */
3781
+ name: string;
3782
+ /**
3783
+ * Parameter type (header or query)
3784
+ */
3785
+ type: 'header' | 'query';
3786
+ /**
3787
+ * Parameter value
3788
+ */
3789
+ value: string;
3790
+ }
3791
+ }
3792
+ export interface SessionSearchParams {
3793
+ /**
3794
+ * List of search queries to execute in parallel.
3795
+ */
3796
+ queries: Array<SessionSearchParams.Query>;
3797
+ /**
3798
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
3799
+ * customs — pass them on every request that needs them.
3800
+ */
3801
+ experimental?: SessionSearchParams.Experimental;
3802
+ /**
3803
+ * Optional model hint for search/planning behavior (e.g., "gpt-4o").
3804
+ */
3805
+ model?: string;
3806
+ }
3807
+ export declare namespace SessionSearchParams {
3808
+ interface Query {
3809
+ /**
3810
+ * The task or use case to search tools for. Provide a detailed description to get
3811
+ * the best results. Max 1024 characters.
3812
+ */
3813
+ use_case: string;
3814
+ /**
3815
+ * Known field hints as key:value pairs (e.g., "channel_name:general,
3816
+ * user_email:john@example.com"). Max 500 characters.
3817
+ */
3818
+ known_fields?: string;
3819
+ }
3820
+ /**
3821
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
3822
+ * customs — pass them on every request that needs them.
3823
+ */
3824
+ interface Experimental {
3825
+ /**
3826
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
3827
+ * existing Composio toolkits. All tools are no-auth.
3828
+ */
3829
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
3830
+ /**
3831
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
3832
+ * extends_toolkit inherit the Composio toolkit's connection.
3833
+ */
3834
+ custom_tools?: Array<Experimental.CustomTool>;
3835
+ }
3836
+ namespace Experimental {
3837
+ interface CustomToolkit {
3838
+ /**
3839
+ * Used for BM25 search matching and shown in toolkit connection statuses.
3840
+ */
3841
+ description: string;
3842
+ /**
3843
+ * Display name shown to the LLM and in search results.
3844
+ */
3845
+ name: string;
3846
+ /**
3847
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
3848
+ * slugs. Alphanumeric, underscores, and hyphens only.
3849
+ */
3850
+ slug: string;
3851
+ /**
3852
+ * Tools in this custom toolkit
3853
+ */
3854
+ tools: Array<CustomToolkit.Tool>;
3855
+ /**
3856
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3857
+ * in create/attach responses for inline custom definitions.
3858
+ */
3859
+ preload?: boolean;
3860
+ }
3861
+ namespace CustomToolkit {
3862
+ interface Tool {
3863
+ /**
3864
+ * Used for BM25 search matching and shown to the LLM.
3865
+ */
3866
+ description: string;
3867
+ /**
3868
+ * Must have type: "object" and a properties field.
3869
+ */
3870
+ input_schema: {
3871
+ [key: string]: unknown;
3872
+ };
3873
+ /**
3874
+ * Human-readable display name
3875
+ */
3876
+ name: string;
3877
+ /**
3878
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
3879
+ * chars total).
3880
+ */
3881
+ slug: string;
3882
+ /**
3883
+ * Optional output schema for the tool response.
3884
+ */
3885
+ output_schema?: {
3886
+ [key: string]: unknown;
3887
+ };
3888
+ /**
3889
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3890
+ * in create/attach responses for inline custom definitions.
3891
+ */
3892
+ preload?: boolean;
3893
+ }
3894
+ }
3895
+ interface CustomTool {
3896
+ /**
3897
+ * Used for BM25 search matching and shown to the LLM.
3898
+ */
3899
+ description: string;
3900
+ /**
3901
+ * Must have type: "object" and a properties field.
3902
+ */
3903
+ input_schema: {
3904
+ [key: string]: unknown;
3905
+ };
3906
+ /**
3907
+ * Human-readable display name
3908
+ */
3909
+ name: string;
3910
+ /**
3911
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
3912
+ * (extending). Max 60 chars total.
3913
+ */
3914
+ slug: string;
3915
+ /**
3916
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
3917
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
3918
+ */
3919
+ extends_toolkit?: string;
3920
+ /**
3921
+ * JSON Schema describing tool output (optional)
3922
+ */
3923
+ output_schema?: {
3924
+ [key: string]: unknown;
3925
+ };
3926
+ /**
3927
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3928
+ * in create/attach responses for inline custom definitions.
3929
+ */
3930
+ preload?: boolean;
3931
+ }
3932
+ }
3933
+ }
3934
+ export interface SessionToolkitsParams {
3935
+ /**
3936
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
3937
+ * limit. The page is the page number and the limit is the number of items per
3938
+ * page. The cursor is used to paginate through the items. The cursor is not
3939
+ * required for the first page.
3940
+ */
3941
+ cursor?: string;
3942
+ /**
3943
+ * Whether to filter by connected toolkits. If provided, only connected toolkits
3944
+ * will be returned.
3945
+ */
3946
+ is_connected?: boolean | null;
3947
+ /**
3948
+ * Number of items per page, max allowed is 50
3949
+ */
3950
+ limit?: number;
3951
+ /**
3952
+ * Search query to filter toolkits by name, slug, or description
3953
+ */
3954
+ search?: string;
3955
+ /**
3956
+ * Optional comma-separated list of toolkit slugs to filter by. If provided, only
3957
+ * these toolkits will be returned, overriding the session configuration.
3958
+ */
3959
+ toolkits?: Array<string> | null;
3960
+ }
3961
+ export interface SessionToolsParams {
3962
+ /**
3963
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
3964
+ * limit. The page is the page number and the limit is the number of items per
3965
+ * page. The cursor is used to paginate through the items. The cursor is not
3966
+ * required for the first page.
3967
+ */
3968
+ cursor?: string;
3969
+ /**
3970
+ * Number of items per page, max allowed is 500
3971
+ */
3972
+ limit?: number;
3973
+ }
3974
+ export declare namespace Session {
3975
+ export { type SessionCreateResponse as SessionCreateResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionAttachResponse as SessionAttachResponse, type SessionConfigHistoryResponse as SessionConfigHistoryResponse, type SessionExecuteResponse as SessionExecuteResponse, type SessionExecuteMetaResponse as SessionExecuteMetaResponse, type SessionLinkResponse as SessionLinkResponse, type SessionPatchResponse as SessionPatchResponse, type SessionProxyExecuteResponse as SessionProxyExecuteResponse, type SessionSearchResponse as SessionSearchResponse, type SessionToolkitsResponse as SessionToolkitsResponse, type SessionToolsResponse as SessionToolsResponse, type SessionCreateParams as SessionCreateParams, type SessionAttachParams as SessionAttachParams, type SessionConfigHistoryParams as SessionConfigHistoryParams, type SessionExecuteParams as SessionExecuteParams, type SessionExecuteMetaParams as SessionExecuteMetaParams, type SessionLinkParams as SessionLinkParams, type SessionPatchParams as SessionPatchParams, type SessionProxyExecuteParams as SessionProxyExecuteParams, type SessionSearchParams as SessionSearchParams, type SessionToolkitsParams as SessionToolkitsParams, type SessionToolsParams as SessionToolsParams, };
3976
+ export { Files as Files, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileCreateDownloadURLResponse as FileCreateDownloadURLResponse, type FileCreateUploadURLResponse as FileCreateUploadURLResponse, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileCreateDownloadURLParams as FileCreateDownloadURLParams, type FileCreateUploadURLParams as FileCreateUploadURLParams, };
3977
+ }
3978
+ //# sourceMappingURL=session.d.ts.map