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

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 +977 -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 +6 -5
  155. package/internal/utils/log.js.map +1 -1
  156. package/internal/utils/log.mjs +4 -3
  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 +9882 -231
  239. package/resources/connected-accounts.d.mts.map +1 -1
  240. package/resources/connected-accounts.d.ts +9882 -231
  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 +2273 -0
  263. package/resources/link.d.mts.map +1 -0
  264. package/resources/link.d.ts +2273 -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 +4024 -0
  406. package/resources/tool-router/session/session.d.mts.map +1 -0
  407. package/resources/tool-router/session/session.d.ts +4024 -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 +322 -6
  438. package/resources/toolkits.d.mts.map +1 -1
  439. package/resources/toolkits.d.ts +322 -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 +1407 -41
  446. package/resources/tools.d.mts.map +1 -1
  447. package/resources/tools.d.ts +1407 -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 +160 -12
  480. package/resources/triggers-types.d.mts.map +1 -1
  481. package/resources/triggers-types.d.ts +160 -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 +3 -2
  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 +18489 -448
  518. package/src/resources/files.ts +197 -0
  519. package/src/resources/index.ts +30 -28
  520. package/src/resources/link.ts +4266 -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 +5034 -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 +377 -10
  542. package/src/resources/tools.ts +2176 -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 +168 -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,4024 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as FilesAPI from "./files.mjs";
3
+ import { FileCreateDownloadURLParams, FileCreateDownloadURLResponse, FileCreateUploadURLParams, FileCreateUploadURLResponse, FileDeleteParams, FileDeleteResponse, FileListParams, FileListResponse, Files } from "./files.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { RequestOptions } from "../../../internal/request-options.mjs";
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
+ * PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from
1382
+ * a tool-router session ONLY when explicitly pinned, with at most one SHARED per
1383
+ * toolkit per session.
1384
+ */
1385
+ account_type: 'PRIVATE' | 'SHARED';
1386
+ /**
1387
+ * The unique identifier for the connected account
1388
+ */
1389
+ connected_account_id: string;
1390
+ /**
1391
+ * Token used to complete the authentication flow
1392
+ */
1393
+ link_token: string;
1394
+ /**
1395
+ * The URL where users should be redirected to complete OAuth
1396
+ */
1397
+ redirect_url: string;
1398
+ }
1399
+ export interface SessionPatchResponse {
1400
+ /**
1401
+ * The configuration used to create this session
1402
+ */
1403
+ config: SessionPatchResponse.Config;
1404
+ /**
1405
+ * Monotonic version of the config. Incremented on each PATCH. Use for optimistic
1406
+ * concurrency control.
1407
+ */
1408
+ config_version: number;
1409
+ mcp: SessionPatchResponse.Mcp;
1410
+ /**
1411
+ * The identifier of the session
1412
+ */
1413
+ session_id: string;
1414
+ /**
1415
+ * List of available tools in this session
1416
+ */
1417
+ tool_router_tools: Array<string>;
1418
+ /**
1419
+ * Experimental features
1420
+ */
1421
+ experimental?: SessionPatchResponse.Experimental;
1422
+ /**
1423
+ * Advisory list — the session exists and is usable, but the listed issues may
1424
+ * warrant attention.
1425
+ */
1426
+ warnings?: Array<SessionPatchResponse.Warning>;
1427
+ }
1428
+ export declare namespace SessionPatchResponse {
1429
+ /**
1430
+ * The configuration used to create this session
1431
+ */
1432
+ interface Config {
1433
+ /**
1434
+ * Execute helper configuration
1435
+ */
1436
+ execute: Config.Execute;
1437
+ /**
1438
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
1439
+ * is returned as "all".
1440
+ */
1441
+ preload: Config.Preload;
1442
+ /**
1443
+ * Search helper configuration
1444
+ */
1445
+ search: Config.Search;
1446
+ /**
1447
+ * User identifier for this session
1448
+ */
1449
+ user_id: string;
1450
+ /**
1451
+ * Auth config overrides per toolkit
1452
+ */
1453
+ auth_configs?: {
1454
+ [key: string]: string;
1455
+ };
1456
+ /**
1457
+ * Per-toolkit connected account overrides (array of nano-IDs). Multi-account
1458
+ * sessions can pin more than one account per toolkit; otherwise length is 1.
1459
+ */
1460
+ connected_accounts?: {
1461
+ [key: string]: Array<string>;
1462
+ };
1463
+ /**
1464
+ * Manage connections configuration
1465
+ */
1466
+ manage_connections?: Config.ManageConnections;
1467
+ /**
1468
+ * Multi-account configuration for this session.
1469
+ */
1470
+ multi_account?: Config.MultiAccount;
1471
+ /**
1472
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
1473
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
1474
+ * tool must NOT have any of. Both conditions must be satisfied.
1475
+ */
1476
+ tags?: Config.Tags;
1477
+ /**
1478
+ * Toolkit configuration - either enabled list or disabled list
1479
+ */
1480
+ toolkits?: Config.Enabled | Config.Disabled;
1481
+ /**
1482
+ * Tool-level configuration per toolkit
1483
+ */
1484
+ tools?: {
1485
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
1486
+ };
1487
+ /**
1488
+ * Workbench configuration
1489
+ */
1490
+ workbench?: Config.Workbench;
1491
+ }
1492
+ namespace Config {
1493
+ /**
1494
+ * Execute helper configuration
1495
+ */
1496
+ interface Execute {
1497
+ enable_multi_execute?: boolean;
1498
+ }
1499
+ /**
1500
+ * Preload configuration. Explicit slugs are returned as an array; dynamic preload
1501
+ * is returned as "all".
1502
+ */
1503
+ interface Preload {
1504
+ /**
1505
+ * Explicit preloaded tool slugs, or "all" when the session dynamically exposes all
1506
+ * app tools allowed by its filters.
1507
+ */
1508
+ tools: Array<string> | 'all';
1509
+ }
1510
+ /**
1511
+ * Search helper configuration
1512
+ */
1513
+ interface Search {
1514
+ enable?: boolean;
1515
+ }
1516
+ /**
1517
+ * Manage connections configuration
1518
+ */
1519
+ interface ManageConnections {
1520
+ /**
1521
+ * Custom callback URL for connected account auth flows
1522
+ */
1523
+ callback_url?: string;
1524
+ /**
1525
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
1526
+ */
1527
+ enable_connection_removal?: boolean;
1528
+ /**
1529
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
1530
+ * Default false. May not work reliably with GPT models.
1531
+ */
1532
+ enable_wait_for_connections?: boolean;
1533
+ /**
1534
+ * Whether to enable the connection manager for automatic connection handling
1535
+ */
1536
+ enabled?: boolean;
1537
+ }
1538
+ /**
1539
+ * Multi-account configuration for this session.
1540
+ */
1541
+ interface MultiAccount {
1542
+ /**
1543
+ * When true, enables multi-account mode for this session. When not set, falls back
1544
+ * to org/project-level configuration.
1545
+ */
1546
+ enable?: boolean;
1547
+ /**
1548
+ * Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
1549
+ * multi-account is enabled.
1550
+ */
1551
+ max_accounts_per_toolkit?: number;
1552
+ /**
1553
+ * When true, require explicit account selection when multiple accounts are
1554
+ * connected. When false (default), use the first/default account.
1555
+ */
1556
+ require_explicit_selection?: boolean;
1557
+ }
1558
+ /**
1559
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
1560
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
1561
+ * tool must NOT have any of. Both conditions must be satisfied.
1562
+ */
1563
+ interface Tags {
1564
+ /**
1565
+ * Tags that the tool must NOT have any of
1566
+ */
1567
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1568
+ /**
1569
+ * Tags that the tool must have at least one of
1570
+ */
1571
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1572
+ }
1573
+ interface Enabled {
1574
+ enabled: Array<string>;
1575
+ }
1576
+ interface Disabled {
1577
+ disabled: Array<string>;
1578
+ }
1579
+ interface Enabled {
1580
+ enabled: Array<string>;
1581
+ }
1582
+ interface Disabled {
1583
+ disabled: Array<string>;
1584
+ }
1585
+ interface Tags {
1586
+ tags: Tags.Tags;
1587
+ }
1588
+ namespace Tags {
1589
+ interface Tags {
1590
+ /**
1591
+ * Tags that the tool must NOT have any of
1592
+ */
1593
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1594
+ /**
1595
+ * Tags that the tool must have at least one of
1596
+ */
1597
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1598
+ }
1599
+ }
1600
+ /**
1601
+ * Workbench configuration
1602
+ */
1603
+ interface Workbench {
1604
+ /**
1605
+ * Character threshold after which tool execution response are saved to a file in
1606
+ * workbench. Default is 20k.
1607
+ */
1608
+ auto_offload_threshold?: number;
1609
+ /**
1610
+ * Whether the workbench (code execution sandbox) is enabled. When false,
1611
+ * COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
1612
+ */
1613
+ enable?: boolean;
1614
+ /**
1615
+ * Whether proxy execution is enabled in the workbench
1616
+ */
1617
+ proxy_execution_enabled?: boolean;
1618
+ /**
1619
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
1620
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
1621
+ */
1622
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
1623
+ }
1624
+ }
1625
+ interface Mcp {
1626
+ /**
1627
+ * The type of the MCP server. Can be http
1628
+ */
1629
+ type: 'http';
1630
+ /**
1631
+ * The URL of the MCP server
1632
+ */
1633
+ url: string;
1634
+ }
1635
+ /**
1636
+ * Experimental features
1637
+ */
1638
+ interface Experimental {
1639
+ /**
1640
+ * The assistive system prompt for the tool router session
1641
+ */
1642
+ assistive_prompt?: string;
1643
+ /**
1644
+ * User-defined custom toolkits with grouped tools (no-auth)
1645
+ */
1646
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
1647
+ /**
1648
+ * Custom tools — standalone or extending Composio toolkits
1649
+ */
1650
+ custom_tools?: Array<Experimental.CustomTool>;
1651
+ }
1652
+ namespace Experimental {
1653
+ interface CustomToolkit {
1654
+ description: string;
1655
+ name: string;
1656
+ slug: string;
1657
+ tools: Array<CustomToolkit.Tool>;
1658
+ }
1659
+ namespace CustomToolkit {
1660
+ interface Tool {
1661
+ description: string;
1662
+ input_schema: {
1663
+ [key: string]: unknown;
1664
+ };
1665
+ name: string;
1666
+ /**
1667
+ * Original tool slug as provided by the user
1668
+ */
1669
+ original_slug: string;
1670
+ /**
1671
+ * Prefixed tool slug (e.g. LOCAL_CRM_FIND_CUSTOMER)
1672
+ */
1673
+ slug: string;
1674
+ output_schema?: {
1675
+ [key: string]: unknown;
1676
+ };
1677
+ }
1678
+ }
1679
+ interface CustomTool {
1680
+ description: string;
1681
+ input_schema: {
1682
+ [key: string]: unknown;
1683
+ };
1684
+ name: string;
1685
+ /**
1686
+ * Original tool slug as provided by the user
1687
+ */
1688
+ original_slug: string;
1689
+ /**
1690
+ * Prefixed tool slug (e.g. LOCAL_GMAIL_GET_IMPORTANT_EMAILS)
1691
+ */
1692
+ slug: string;
1693
+ extends_toolkit?: string;
1694
+ output_schema?: {
1695
+ [key: string]: unknown;
1696
+ };
1697
+ }
1698
+ }
1699
+ interface Warning {
1700
+ /**
1701
+ * Stable machine code identifying the advisory. Safe to switch on in client code.
1702
+ */
1703
+ code: 'PRELOAD_TOOLS_HIGH_CONTEXT_USAGE';
1704
+ /**
1705
+ * Human-readable description of the advisory. Suitable for logging or surfacing to
1706
+ * end users.
1707
+ */
1708
+ message: string;
1709
+ }
1710
+ }
1711
+ export interface SessionProxyExecuteResponse {
1712
+ /**
1713
+ * The HTTP status code returned from the proxied API
1714
+ */
1715
+ status: number;
1716
+ /**
1717
+ * Binary body response data. Present when the response is a binary file.
1718
+ */
1719
+ binary_data?: SessionProxyExecuteResponse.BinaryData;
1720
+ /**
1721
+ * The response data returned from the proxied API
1722
+ */
1723
+ data?: unknown;
1724
+ /**
1725
+ * The HTTP headers returned from the proxied API
1726
+ */
1727
+ headers?: {
1728
+ [key: string]: string;
1729
+ };
1730
+ }
1731
+ export declare namespace SessionProxyExecuteResponse {
1732
+ /**
1733
+ * Binary body response data. Present when the response is a binary file.
1734
+ */
1735
+ interface BinaryData {
1736
+ /**
1737
+ * Content-Type of the binary data
1738
+ */
1739
+ content_type: string;
1740
+ /**
1741
+ * File size in bytes
1742
+ */
1743
+ size: number;
1744
+ /**
1745
+ * URL to download binary content
1746
+ */
1747
+ url: string;
1748
+ /**
1749
+ * ISO 8601 timestamp when the URL expires
1750
+ */
1751
+ expires_at?: string;
1752
+ }
1753
+ }
1754
+ export interface SessionSearchResponse {
1755
+ /**
1756
+ * Error message if any searches failed, null if all succeeded. Format: "X out of Y
1757
+ * searches failed, reasons: <details>"
1758
+ */
1759
+ error: string | null;
1760
+ /**
1761
+ * Combined workflow guidance covering connections, planner, and memory usage. Each
1762
+ * element is a step instruction.
1763
+ */
1764
+ next_steps_guidance: Array<string>;
1765
+ /**
1766
+ * Per-query search results with tools, reasoning, and memory. One entry per query
1767
+ * in request order.
1768
+ */
1769
+ results: Array<SessionSearchResponse.Result>;
1770
+ /**
1771
+ * Session info for correlating meta tool calls
1772
+ */
1773
+ session: SessionSearchResponse.Session;
1774
+ /**
1775
+ * Whether all searches completed successfully. False if any query failed.
1776
+ */
1777
+ success: boolean;
1778
+ /**
1779
+ * Time information for the query
1780
+ */
1781
+ time_info: SessionSearchResponse.TimeInfo;
1782
+ /**
1783
+ * Deduplicated tool definitions keyed by tool_slug for O(1) lookup. Each tool
1784
+ * appears once even if used in multiple queries.
1785
+ */
1786
+ tool_schemas: {
1787
+ [key: string]: SessionSearchResponse.ToolSchemas;
1788
+ };
1789
+ /**
1790
+ * Connection status for all toolkits mentioned across all queries, with
1791
+ * descriptions merged in.
1792
+ */
1793
+ toolkit_connection_statuses: Array<SessionSearchResponse.ToolkitConnectionStatus>;
1794
+ }
1795
+ export declare namespace SessionSearchResponse {
1796
+ interface Result {
1797
+ /**
1798
+ * 1-based index of the query in the request
1799
+ */
1800
+ index: number;
1801
+ /**
1802
+ * List of main tool slugs matching the search criteria
1803
+ */
1804
+ primary_tool_slugs: Array<string>;
1805
+ /**
1806
+ * List of related tool slugs that might be useful
1807
+ */
1808
+ related_tool_slugs: Array<string>;
1809
+ /**
1810
+ * List of unique toolkit slugs used by tools in this query
1811
+ */
1812
+ toolkits: Array<string>;
1813
+ /**
1814
+ * The use case that was searched
1815
+ */
1816
+ use_case: string;
1817
+ /**
1818
+ * Task difficulty assessment (e.g., "easy - Simple single-tool operation with
1819
+ * known parameters")
1820
+ */
1821
+ difficulty?: string;
1822
+ /**
1823
+ * Error message if the search for this query failed, null otherwise. Always
1824
+ * present for failed queries.
1825
+ */
1826
+ error?: string | null;
1827
+ /**
1828
+ * Guidance message about the search results, particularly when a cached plan is
1829
+ * available
1830
+ */
1831
+ execution_guidance?: string;
1832
+ /**
1833
+ * Common pitfalls and considerations (only present when cached plan is available)
1834
+ */
1835
+ known_pitfalls?: Array<string>;
1836
+ /**
1837
+ * Memory data relevant to this query, grouped by app. Only present for non-cached
1838
+ * search results.
1839
+ */
1840
+ memory?: {
1841
+ [key: string]: Array<string>;
1842
+ };
1843
+ /**
1844
+ * ID of cached plan if available
1845
+ */
1846
+ plan_id?: string;
1847
+ /**
1848
+ * Workflow steps from cached plan (only present when cached plan is available)
1849
+ */
1850
+ recommended_plan_steps?: Array<string>;
1851
+ /**
1852
+ * Reference Python code snippets for processing tool responses in the workbench
1853
+ * (only present when cached plan is available)
1854
+ */
1855
+ reference_workbench_snippets?: Array<Result.ReferenceWorkbenchSnippet>;
1856
+ }
1857
+ namespace Result {
1858
+ interface ReferenceWorkbenchSnippet {
1859
+ /**
1860
+ * Python code snippet for the workbench
1861
+ */
1862
+ code: string;
1863
+ /**
1864
+ * Description of what the code snippet does
1865
+ */
1866
+ description: string;
1867
+ }
1868
+ }
1869
+ /**
1870
+ * Session info for correlating meta tool calls
1871
+ */
1872
+ interface Session {
1873
+ /**
1874
+ * Session identifier to be passed to subsequent meta tool calls as session_id.
1875
+ */
1876
+ id: string;
1877
+ /**
1878
+ * Whether a fresh session id was generated in this call.
1879
+ */
1880
+ generate_id: boolean;
1881
+ /**
1882
+ * LLM-facing guidance on how to reuse this session id
1883
+ */
1884
+ instructions: string;
1885
+ }
1886
+ /**
1887
+ * Time information for the query
1888
+ */
1889
+ interface TimeInfo {
1890
+ /**
1891
+ * Current time in ISO format (UTC)
1892
+ */
1893
+ current_time_utc: string;
1894
+ /**
1895
+ * Current time as Unix epoch timestamp in seconds
1896
+ */
1897
+ current_time_utc_epoch_seconds: number;
1898
+ /**
1899
+ * Important message about time handling and timezone considerations
1900
+ */
1901
+ message: string;
1902
+ }
1903
+ interface ToolSchemas {
1904
+ /**
1905
+ * The slug of the tool
1906
+ */
1907
+ tool_slug: string;
1908
+ /**
1909
+ * The slug of the toolkit that provides this tool
1910
+ */
1911
+ toolkit: string;
1912
+ /**
1913
+ * Description of the tool
1914
+ */
1915
+ description?: string;
1916
+ /**
1917
+ * Whether the full input_schema is included in this response
1918
+ */
1919
+ hasFullSchema?: boolean;
1920
+ /**
1921
+ * Input schema for the tool (only present when hasFullSchema is true)
1922
+ */
1923
+ input_schema?: {
1924
+ [key: string]: unknown;
1925
+ };
1926
+ /**
1927
+ * Output/response schema for the tool. Only included when include_output_schemas
1928
+ * is true.
1929
+ */
1930
+ output_schema?: {
1931
+ [key: string]: unknown;
1932
+ };
1933
+ /**
1934
+ * Reference to fetch full schema when hasFullSchema is false
1935
+ */
1936
+ schemaRef?: ToolSchemas.SchemaRef;
1937
+ }
1938
+ namespace ToolSchemas {
1939
+ /**
1940
+ * Reference to fetch full schema when hasFullSchema is false
1941
+ */
1942
+ interface SchemaRef {
1943
+ /**
1944
+ * Arguments to pass to the tool
1945
+ */
1946
+ args: SchemaRef.Args;
1947
+ /**
1948
+ * Tool to call
1949
+ */
1950
+ tool: 'COMPOSIO_GET_TOOL_SCHEMAS';
1951
+ /**
1952
+ * Instruction message for the LLM
1953
+ */
1954
+ message?: string;
1955
+ }
1956
+ namespace SchemaRef {
1957
+ /**
1958
+ * Arguments to pass to the tool
1959
+ */
1960
+ interface Args {
1961
+ /**
1962
+ * Tool slugs to fetch schemas for
1963
+ */
1964
+ tool_slugs: Array<string>;
1965
+ }
1966
+ }
1967
+ }
1968
+ interface ToolkitConnectionStatus {
1969
+ /**
1970
+ * Description of what the toolkit does and its capabilities
1971
+ */
1972
+ description: string;
1973
+ /**
1974
+ * Whether an active connection exists for this toolkit
1975
+ */
1976
+ has_active_connection: boolean;
1977
+ /**
1978
+ * Human-readable message about the connection status and next steps
1979
+ */
1980
+ status_message: string;
1981
+ /**
1982
+ * The toolkit slug identifier (e.g., "gmail", "slack")
1983
+ */
1984
+ toolkit: string;
1985
+ /**
1986
+ * When "required", the agent must specify which account to use. Present only when
1987
+ * multiple accounts exist.
1988
+ */
1989
+ account_selection?: 'required';
1990
+ /**
1991
+ * List of connected accounts for this toolkit. Present when multi-account is
1992
+ * enabled.
1993
+ */
1994
+ accounts?: Array<ToolkitConnectionStatus.Account>;
1995
+ /**
1996
+ * Connection details including auth config and connected account IDs. Only present
1997
+ * when has_active_connection is true.
1998
+ */
1999
+ connection_details?: {
2000
+ [key: string]: unknown;
2001
+ };
2002
+ /**
2003
+ * Information about the currently connected user (email, name, etc.)
2004
+ */
2005
+ current_user_info?: {
2006
+ [key: string]: unknown;
2007
+ };
2008
+ }
2009
+ namespace ToolkitConnectionStatus {
2010
+ interface Account {
2011
+ /**
2012
+ * Unique identifier for this account
2013
+ */
2014
+ id: string;
2015
+ /**
2016
+ * ISO 8601 timestamp of when the account was connected
2017
+ */
2018
+ created_at: string;
2019
+ /**
2020
+ * Whether this is the default account for the toolkit
2021
+ */
2022
+ is_default: boolean;
2023
+ /**
2024
+ * Connection status (e.g., "active")
2025
+ */
2026
+ status: string;
2027
+ /**
2028
+ * User-assigned alias for this account
2029
+ */
2030
+ alias?: string;
2031
+ /**
2032
+ * Information about the connected user (email, name, etc.)
2033
+ */
2034
+ user_info?: {
2035
+ [key: string]: unknown;
2036
+ };
2037
+ }
2038
+ }
2039
+ }
2040
+ export interface SessionToolkitsResponse {
2041
+ current_page: number;
2042
+ items: Array<SessionToolkitsResponse.Item>;
2043
+ total_items: number;
2044
+ total_pages: number;
2045
+ next_cursor?: string | null;
2046
+ }
2047
+ export declare namespace SessionToolkitsResponse {
2048
+ interface Item {
2049
+ /**
2050
+ * Available Composio-managed auth schemes
2051
+ */
2052
+ composio_managed_auth_schemes: Array<string>;
2053
+ /**
2054
+ * Connected account if available
2055
+ */
2056
+ connected_account: Item.ConnectedAccount | null;
2057
+ /**
2058
+ * Whether the toolkit is enabled
2059
+ */
2060
+ enabled: boolean;
2061
+ /**
2062
+ * Whether the toolkit is no-auth
2063
+ */
2064
+ is_no_auth: boolean;
2065
+ /**
2066
+ * Toolkit metadata
2067
+ */
2068
+ meta: Item.Meta;
2069
+ /**
2070
+ * Display name of the toolkit
2071
+ */
2072
+ name: string;
2073
+ /**
2074
+ * Unique slug identifier
2075
+ */
2076
+ slug: string;
2077
+ }
2078
+ namespace Item {
2079
+ /**
2080
+ * Connected account if available
2081
+ */
2082
+ interface ConnectedAccount {
2083
+ /**
2084
+ * Connected account identifier
2085
+ */
2086
+ id: string;
2087
+ /**
2088
+ * Auth config details
2089
+ */
2090
+ auth_config: ConnectedAccount.AuthConfig;
2091
+ /**
2092
+ * Creation timestamp
2093
+ */
2094
+ created_at: string;
2095
+ /**
2096
+ * Connection status
2097
+ */
2098
+ status: string;
2099
+ /**
2100
+ * User identifier
2101
+ */
2102
+ user_id: string;
2103
+ }
2104
+ namespace ConnectedAccount {
2105
+ /**
2106
+ * Auth config details
2107
+ */
2108
+ interface AuthConfig {
2109
+ /**
2110
+ * Auth config identifier
2111
+ */
2112
+ id: string;
2113
+ /**
2114
+ * Authentication scheme type
2115
+ */
2116
+ auth_scheme: string;
2117
+ /**
2118
+ * Whether this is a Composio-managed auth config
2119
+ */
2120
+ is_composio_managed: boolean;
2121
+ }
2122
+ }
2123
+ /**
2124
+ * Toolkit metadata
2125
+ */
2126
+ interface Meta {
2127
+ /**
2128
+ * Description of the toolkit
2129
+ */
2130
+ description: string;
2131
+ /**
2132
+ * URL to the toolkit logo
2133
+ */
2134
+ logo: string;
2135
+ }
2136
+ }
2137
+ }
2138
+ export interface SessionToolsResponse {
2139
+ current_page: number;
2140
+ items: Array<SessionToolsResponse.Item>;
2141
+ total_items: number;
2142
+ total_pages: number;
2143
+ next_cursor?: string | null;
2144
+ }
2145
+ export declare namespace SessionToolsResponse {
2146
+ interface Item {
2147
+ /**
2148
+ * List of all available versions for this tool
2149
+ */
2150
+ available_versions: Array<string>;
2151
+ deprecated: Item.Deprecated;
2152
+ /**
2153
+ * Detailed explanation of the tool's functionality and purpose
2154
+ */
2155
+ description: string;
2156
+ /**
2157
+ * Schema definition of required input parameters for the tool
2158
+ */
2159
+ input_parameters: {
2160
+ [key: string]: unknown;
2161
+ };
2162
+ /**
2163
+ * Indicates if this tool is deprecated and may be removed in the future
2164
+ */
2165
+ is_deprecated: boolean;
2166
+ /**
2167
+ * Human-readable display name of the tool
2168
+ */
2169
+ name: string;
2170
+ /**
2171
+ * Indicates if the tool can be used without authentication
2172
+ */
2173
+ no_auth: boolean;
2174
+ /**
2175
+ * Schema definition of return values from the tool
2176
+ */
2177
+ output_parameters: {
2178
+ [key: string]: unknown;
2179
+ };
2180
+ /**
2181
+ * Structured scope requirements for the tool. Null means the tool is legacy and
2182
+ * only exposes flat scopes.
2183
+ */
2184
+ scope_requirements: Item.ScopeRequirements | null;
2185
+ /**
2186
+ * List of scopes associated with the tool
2187
+ */
2188
+ scopes: Array<string>;
2189
+ /**
2190
+ * Unique identifier for the tool
2191
+ */
2192
+ slug: string;
2193
+ /**
2194
+ * List of tags associated with the tool for categorization and filtering
2195
+ */
2196
+ tags: Array<string>;
2197
+ toolkit: Item.Toolkit;
2198
+ /**
2199
+ * Current version of the tool
2200
+ */
2201
+ version: string;
2202
+ /**
2203
+ * Human-friendly description of the tool, if available
2204
+ */
2205
+ human_description?: string;
2206
+ }
2207
+ namespace Item {
2208
+ interface Deprecated {
2209
+ /**
2210
+ * List of all available versions for this tool
2211
+ */
2212
+ available_versions: Array<string>;
2213
+ /**
2214
+ * The display name of the tool
2215
+ */
2216
+ displayName: string;
2217
+ /**
2218
+ * Indicates if this tool is deprecated and may be removed in the future
2219
+ */
2220
+ is_deprecated: boolean;
2221
+ toolkit: Deprecated.Toolkit;
2222
+ /**
2223
+ * Current version identifier of the tool
2224
+ */
2225
+ version: string;
2226
+ }
2227
+ namespace Deprecated {
2228
+ interface Toolkit {
2229
+ /**
2230
+ * URL to the toolkit logo image
2231
+ */
2232
+ logo: string;
2233
+ }
2234
+ }
2235
+ /**
2236
+ * Structured scope requirements for the tool. Null means the tool is legacy and
2237
+ * only exposes flat scopes.
2238
+ */
2239
+ interface ScopeRequirements {
2240
+ all_of: Array<string | ScopeRequirements.AnyOf>;
2241
+ }
2242
+ namespace ScopeRequirements {
2243
+ interface AnyOf {
2244
+ any_of: Array<string>;
2245
+ }
2246
+ }
2247
+ interface Toolkit {
2248
+ /**
2249
+ * URL to the toolkit logo image
2250
+ */
2251
+ logo: string;
2252
+ /**
2253
+ * Human-readable name of the parent toolkit
2254
+ */
2255
+ name: string;
2256
+ /**
2257
+ * Unique identifier of the parent toolkit
2258
+ */
2259
+ slug: string;
2260
+ }
2261
+ }
2262
+ }
2263
+ export interface SessionCreateParams {
2264
+ /**
2265
+ * The identifier of the user who is initiating the session, ideally a unique
2266
+ * identifier from your database like a user ID or email address
2267
+ */
2268
+ user_id: string;
2269
+ /**
2270
+ * The auth configs to use for the session. This will override the default behavior
2271
+ * and use the given auth config when specific toolkits are being executed
2272
+ */
2273
+ auth_configs?: {
2274
+ [key: string]: string;
2275
+ };
2276
+ /**
2277
+ * The connected accounts to use for the session, as an array of nano-IDs per
2278
+ * toolkit. This overrides the default behaviour and pins specific connected
2279
+ * accounts when toolkits are executed. Each account must exist (not deleted or
2280
+ * disabled) and belong to the same `user_id` as the session. Multi-account
2281
+ * sessions can pin multiple; non-multi-account sessions are capped at length 1.
2282
+ */
2283
+ connected_accounts?: {
2284
+ [key: string]: Array<string>;
2285
+ };
2286
+ execute?: SessionCreateParams.Execute;
2287
+ /**
2288
+ * Experimental features - not stable, may be modified or removed in future
2289
+ * versions.
2290
+ */
2291
+ experimental?: SessionCreateParams.Experimental;
2292
+ /**
2293
+ * Configuration for connection management settings
2294
+ */
2295
+ manage_connections?: SessionCreateParams.ManageConnections;
2296
+ /**
2297
+ * Configure multi-account behavior. When enabled, users can connect multiple
2298
+ * accounts per toolkit.
2299
+ */
2300
+ multi_account?: SessionCreateParams.MultiAccount;
2301
+ /**
2302
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
2303
+ * "all" to dynamically expose every app tool allowed by positive
2304
+ * toolkits/tools/tags filters.
2305
+ */
2306
+ preload?: SessionCreateParams.Preload;
2307
+ search?: SessionCreateParams.Search;
2308
+ /**
2309
+ * Global MCP tool annotation hints for filtering. Array format is treated as
2310
+ * enabled list. Object format supports both enabled (tool must have at least one)
2311
+ * and disabled (tool must NOT have any) lists. Toolkit-level tags override this.
2312
+ * Toolkit enabled/disabled lists take precedence over tag filtering.
2313
+ */
2314
+ tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | SessionCreateParams.UnionMember1;
2315
+ /**
2316
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable
2317
+ * toolkits (denylist). Mutually exclusive.
2318
+ */
2319
+ toolkits?: SessionCreateParams.Enable | SessionCreateParams.Disable;
2320
+ /**
2321
+ * Tool-level configuration per toolkit. Allows you to enable, disable, or filter
2322
+ * by tags for specific tools within each toolkit. Every slug passed in `enable` /
2323
+ * `disable` must be a valid Composio tool slug for that toolkit — invalid or
2324
+ * typo'd slugs fail session creation with a clear error listing which ones didn't
2325
+ * match.
2326
+ */
2327
+ tools?: {
2328
+ [key: string]: SessionCreateParams.Enable | SessionCreateParams.Disable | SessionCreateParams.Tags;
2329
+ };
2330
+ /**
2331
+ * Configuration for workbench behavior
2332
+ */
2333
+ workbench?: SessionCreateParams.Workbench;
2334
+ }
2335
+ export declare namespace SessionCreateParams {
2336
+ interface Execute {
2337
+ enable_multi_execute?: boolean;
2338
+ }
2339
+ /**
2340
+ * Experimental features - not stable, may be modified or removed in future
2341
+ * versions.
2342
+ */
2343
+ interface Experimental {
2344
+ /**
2345
+ * Customize assistive prompt generation (e.g., timezone).
2346
+ */
2347
+ assistive_prompt_config?: Experimental.AssistivePromptConfig;
2348
+ /**
2349
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2350
+ * existing Composio toolkits. All tools are no-auth.
2351
+ */
2352
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2353
+ /**
2354
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2355
+ * extends_toolkit inherit the Composio toolkit's connection.
2356
+ */
2357
+ custom_tools?: Array<Experimental.CustomTool>;
2358
+ /**
2359
+ * Experimental base URL override for connection link redirects created from this
2360
+ * tool-router session. When set, link creation returns
2361
+ * `${link_url_overwrite}/link/{link_token}` instead of the default Composio
2362
+ * Connect base URL. Use only when your integration needs links to open through a
2363
+ * custom Connect host.
2364
+ */
2365
+ link_url_overwrite?: string;
2366
+ /**
2367
+ * Per-tool elicitation permission config. Default behavior + per-tool
2368
+ * always_allow/always_deny overrides. Mutation via PATCH.
2369
+ */
2370
+ permissions?: Experimental.Permissions;
2371
+ }
2372
+ namespace Experimental {
2373
+ /**
2374
+ * Customize assistive prompt generation (e.g., timezone).
2375
+ */
2376
+ interface AssistivePromptConfig {
2377
+ /**
2378
+ * IANA timezone identifier (e.g., 'America/New_York', 'Europe/London'). Used to
2379
+ * customize the system prompt with timezone-aware instructions.
2380
+ */
2381
+ user_timezone?: string;
2382
+ }
2383
+ interface CustomToolkit {
2384
+ /**
2385
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2386
+ */
2387
+ description: string;
2388
+ /**
2389
+ * Display name shown to the LLM and in search results.
2390
+ */
2391
+ name: string;
2392
+ /**
2393
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2394
+ * slugs. Alphanumeric, underscores, and hyphens only.
2395
+ */
2396
+ slug: string;
2397
+ /**
2398
+ * Tools in this custom toolkit
2399
+ */
2400
+ tools: Array<CustomToolkit.Tool>;
2401
+ /**
2402
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2403
+ * in create/attach responses for inline custom definitions.
2404
+ */
2405
+ preload?: boolean;
2406
+ }
2407
+ namespace CustomToolkit {
2408
+ interface Tool {
2409
+ /**
2410
+ * Used for BM25 search matching and shown to the LLM.
2411
+ */
2412
+ description: string;
2413
+ /**
2414
+ * Must have type: "object" and a properties field.
2415
+ */
2416
+ input_schema: {
2417
+ [key: string]: unknown;
2418
+ };
2419
+ /**
2420
+ * Human-readable display name
2421
+ */
2422
+ name: string;
2423
+ /**
2424
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
2425
+ * chars total).
2426
+ */
2427
+ slug: string;
2428
+ /**
2429
+ * Optional output schema for the tool response.
2430
+ */
2431
+ output_schema?: {
2432
+ [key: string]: unknown;
2433
+ };
2434
+ /**
2435
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2436
+ * in create/attach responses for inline custom definitions.
2437
+ */
2438
+ preload?: boolean;
2439
+ }
2440
+ }
2441
+ interface CustomTool {
2442
+ /**
2443
+ * Used for BM25 search matching and shown to the LLM.
2444
+ */
2445
+ description: string;
2446
+ /**
2447
+ * Must have type: "object" and a properties field.
2448
+ */
2449
+ input_schema: {
2450
+ [key: string]: unknown;
2451
+ };
2452
+ /**
2453
+ * Human-readable display name
2454
+ */
2455
+ name: string;
2456
+ /**
2457
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
2458
+ * (extending). Max 60 chars total.
2459
+ */
2460
+ slug: string;
2461
+ /**
2462
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
2463
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
2464
+ */
2465
+ extends_toolkit?: string;
2466
+ /**
2467
+ * JSON Schema describing tool output (optional)
2468
+ */
2469
+ output_schema?: {
2470
+ [key: string]: unknown;
2471
+ };
2472
+ /**
2473
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2474
+ * in create/attach responses for inline custom definitions.
2475
+ */
2476
+ preload?: boolean;
2477
+ }
2478
+ /**
2479
+ * Per-tool elicitation permission config. Default behavior + per-tool
2480
+ * always_allow/always_deny overrides. Mutation via PATCH.
2481
+ */
2482
+ interface Permissions {
2483
+ /**
2484
+ * Default elicitation behavior when no override matches. `allow_all` runs every
2485
+ * tool without prompting; `ask_every_call` prompts on each invocation;
2486
+ * `ask_once_per_session` prompts once and remembers the answer for the rest of the
2487
+ * session.
2488
+ */
2489
+ default: 'allow_all' | 'ask_every_call' | 'ask_once_per_session';
2490
+ /**
2491
+ * Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? "__none__"}`,
2492
+ * plus account-wide overrides keyed by `*:${connectedAccountId ?? "__none__"}`.
2493
+ * Exact tool overrides take precedence over account-wide overrides. `always_allow`
2494
+ * skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once`
2495
+ * prompts once per session (allow/deny) and remembers; `ask_always` prompts on
2496
+ * every call with allow-once/allow-session/deny, ignoring any cached session
2497
+ * allow. Overrides take precedence over `default`.
2498
+ */
2499
+ overrides?: {
2500
+ [key: string]: 'always_allow' | 'always_deny' | 'ask_once' | 'ask_always';
2501
+ };
2502
+ }
2503
+ }
2504
+ /**
2505
+ * Configuration for connection management settings
2506
+ */
2507
+ interface ManageConnections {
2508
+ /**
2509
+ * The URL to redirect to after a user completes authentication for a connected
2510
+ * account. This allows you to handle the auth callback in your own application.
2511
+ */
2512
+ callback_url?: string;
2513
+ /**
2514
+ * Whether to enable the connection manager for automatic connection handling. If
2515
+ * true, we will provide a tool your agent can use to initiate connections to
2516
+ * toolkits if it doesnt exist. If set to false, then you have to manage
2517
+ * connections manually.
2518
+ */
2519
+ enable?: boolean | null;
2520
+ /**
2521
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting
2522
+ * connected accounts. Default true.
2523
+ */
2524
+ enable_connection_removal?: boolean | null;
2525
+ /**
2526
+ * When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to
2527
+ * poll connection status after sharing auth URLs. Default is false (disabled). May
2528
+ * not work reliably with GPT models.
2529
+ */
2530
+ enable_wait_for_connections?: boolean | null;
2531
+ }
2532
+ /**
2533
+ * Configure multi-account behavior. When enabled, users can connect multiple
2534
+ * accounts per toolkit.
2535
+ */
2536
+ interface MultiAccount {
2537
+ /**
2538
+ * When true, enables multi-account mode for this session. When not set, falls back
2539
+ * to org/project-level configuration.
2540
+ */
2541
+ enable?: boolean;
2542
+ /**
2543
+ * Maximum number of connected accounts allowed per toolkit. Must be between 2
2544
+ * and 10.
2545
+ */
2546
+ max_accounts_per_toolkit?: number;
2547
+ /**
2548
+ * When true, the agent must explicitly select which account to use. When false
2549
+ * (default), the first/default account is used automatically.
2550
+ */
2551
+ require_explicit_selection?: boolean;
2552
+ }
2553
+ /**
2554
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
2555
+ * "all" to dynamically expose every app tool allowed by positive
2556
+ * toolkits/tools/tags filters.
2557
+ */
2558
+ interface Preload {
2559
+ /**
2560
+ * Explicit tool slugs to preload, or "all" to dynamically expose all current and
2561
+ * future app tools allowed by the positive session filters. "all" is capped at
2562
+ * 1000 tools and is not supported without a positive allowlist.
2563
+ */
2564
+ tools?: Array<string> | string;
2565
+ }
2566
+ interface Search {
2567
+ enable?: boolean;
2568
+ }
2569
+ interface UnionMember1 {
2570
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2571
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2572
+ }
2573
+ /**
2574
+ * Enable only specific toolkits (allowlist)
2575
+ */
2576
+ interface Enable {
2577
+ /**
2578
+ * Only these specific toolkits will be enabled
2579
+ */
2580
+ enable: Array<string>;
2581
+ }
2582
+ /**
2583
+ * Disable specific toolkits (denylist)
2584
+ */
2585
+ interface Disable {
2586
+ /**
2587
+ * These specific toolkits will be disabled
2588
+ */
2589
+ disable: Array<string>;
2590
+ }
2591
+ interface Enable {
2592
+ /**
2593
+ * Only these specific tools will be available for this toolkit
2594
+ */
2595
+ enable: Array<string>;
2596
+ }
2597
+ interface Disable {
2598
+ /**
2599
+ * These specific tools will be disabled for this toolkit
2600
+ */
2601
+ disable: Array<string>;
2602
+ }
2603
+ interface Tags {
2604
+ /**
2605
+ * MCP tags to filter tools. Array format is treated as enabled list. Object format
2606
+ * supports both enabled and disabled lists.
2607
+ */
2608
+ tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | Tags.UnionMember1;
2609
+ }
2610
+ namespace Tags {
2611
+ interface UnionMember1 {
2612
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2613
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
2614
+ }
2615
+ }
2616
+ /**
2617
+ * Configuration for workbench behavior
2618
+ */
2619
+ interface Workbench {
2620
+ /**
2621
+ * Character threshold for automatic offloading. When workbench response exceeds
2622
+ * this threshold, it will be automatically offloaded. Default is picked
2623
+ * automatically based on the response size.
2624
+ */
2625
+ auto_offload_threshold?: number;
2626
+ /**
2627
+ * Set to false to disable the workbench entirely. When disabled, no code execution
2628
+ * tools are available in the session.
2629
+ */
2630
+ enable?: boolean;
2631
+ /**
2632
+ * Whether proxy execution is enabled. When enabled, workbench can call URLs and
2633
+ * APIs directly.
2634
+ */
2635
+ enable_proxy_execution?: boolean;
2636
+ /**
2637
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
2638
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
2639
+ */
2640
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
2641
+ }
2642
+ }
2643
+ export interface SessionAttachParams {
2644
+ /**
2645
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2646
+ * customs — pass them on every request that needs them.
2647
+ */
2648
+ experimental?: SessionAttachParams.Experimental;
2649
+ }
2650
+ export declare namespace SessionAttachParams {
2651
+ /**
2652
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2653
+ * customs — pass them on every request that needs them.
2654
+ */
2655
+ interface Experimental {
2656
+ /**
2657
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2658
+ * existing Composio toolkits. All tools are no-auth.
2659
+ */
2660
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2661
+ /**
2662
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2663
+ * extends_toolkit inherit the Composio toolkit's connection.
2664
+ */
2665
+ custom_tools?: Array<Experimental.CustomTool>;
2666
+ }
2667
+ namespace Experimental {
2668
+ interface CustomToolkit {
2669
+ /**
2670
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2671
+ */
2672
+ description: string;
2673
+ /**
2674
+ * Display name shown to the LLM and in search results.
2675
+ */
2676
+ name: string;
2677
+ /**
2678
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2679
+ * slugs. Alphanumeric, underscores, and hyphens only.
2680
+ */
2681
+ slug: string;
2682
+ /**
2683
+ * Tools in this custom toolkit
2684
+ */
2685
+ tools: Array<CustomToolkit.Tool>;
2686
+ /**
2687
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2688
+ * in create/attach responses for inline custom definitions.
2689
+ */
2690
+ preload?: boolean;
2691
+ }
2692
+ namespace CustomToolkit {
2693
+ interface Tool {
2694
+ /**
2695
+ * Used for BM25 search matching and shown to the LLM.
2696
+ */
2697
+ description: string;
2698
+ /**
2699
+ * Must have type: "object" and a properties field.
2700
+ */
2701
+ input_schema: {
2702
+ [key: string]: unknown;
2703
+ };
2704
+ /**
2705
+ * Human-readable display name
2706
+ */
2707
+ name: string;
2708
+ /**
2709
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
2710
+ * chars total).
2711
+ */
2712
+ slug: string;
2713
+ /**
2714
+ * Optional output schema for the tool response.
2715
+ */
2716
+ output_schema?: {
2717
+ [key: string]: unknown;
2718
+ };
2719
+ /**
2720
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2721
+ * in create/attach responses for inline custom definitions.
2722
+ */
2723
+ preload?: boolean;
2724
+ }
2725
+ }
2726
+ interface CustomTool {
2727
+ /**
2728
+ * Used for BM25 search matching and shown to the LLM.
2729
+ */
2730
+ description: string;
2731
+ /**
2732
+ * Must have type: "object" and a properties field.
2733
+ */
2734
+ input_schema: {
2735
+ [key: string]: unknown;
2736
+ };
2737
+ /**
2738
+ * Human-readable display name
2739
+ */
2740
+ name: string;
2741
+ /**
2742
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
2743
+ * (extending). Max 60 chars total.
2744
+ */
2745
+ slug: string;
2746
+ /**
2747
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
2748
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
2749
+ */
2750
+ extends_toolkit?: string;
2751
+ /**
2752
+ * JSON Schema describing tool output (optional)
2753
+ */
2754
+ output_schema?: {
2755
+ [key: string]: unknown;
2756
+ };
2757
+ /**
2758
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2759
+ * in create/attach responses for inline custom definitions.
2760
+ */
2761
+ preload?: boolean;
2762
+ }
2763
+ }
2764
+ }
2765
+ export interface SessionConfigHistoryParams {
2766
+ /**
2767
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
2768
+ * limit. The page is the page number and the limit is the number of items per
2769
+ * page. The cursor is used to paginate through the items. The cursor is not
2770
+ * required for the first page.
2771
+ */
2772
+ cursor?: string;
2773
+ /**
2774
+ * Number of items per page, max allowed is 100
2775
+ */
2776
+ limit?: number;
2777
+ }
2778
+ export interface SessionExecuteParams {
2779
+ /**
2780
+ * The unique slug identifier of the tool to execute. Supports both meta tools and
2781
+ * app tools exposed by the session.
2782
+ */
2783
+ tool_slug: string;
2784
+ /**
2785
+ * Account identifier to specify which connected account to use for direct tool
2786
+ * execution. Use the account ID (e.g. "coup_hurricane_dal_analytical") or an
2787
+ * alias. When omitted with a single account, the default is used. When omitted
2788
+ * with multiple accounts, an error lists available accounts. Meta/helper tools
2789
+ * either ignore this top-level field or define their own account-selection fields,
2790
+ * for example COMPOSIO_MULTI_EXECUTE_TOOL.tools[].account.
2791
+ */
2792
+ account?: string;
2793
+ /**
2794
+ * The arguments required by the tool
2795
+ */
2796
+ arguments?: {
2797
+ [key: string]: unknown;
2798
+ };
2799
+ /**
2800
+ * When true, direct non-meta tool execution may return a workbench offload preview
2801
+ * if the response exceeds the configured threshold and the session workbench is
2802
+ * enabled. When omitted or false, direct tool execution returns the normal inline
2803
+ * response. Meta/helper tools are unaffected, and COMPOSIO_MULTI_EXECUTE_TOOL uses
2804
+ * session.workbench configuration for its own batch-level offload behavior.
2805
+ */
2806
+ enable_auto_workbench_offload?: boolean;
2807
+ /**
2808
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2809
+ * customs — pass them on every request that needs them.
2810
+ */
2811
+ experimental?: SessionExecuteParams.Experimental;
2812
+ }
2813
+ export declare namespace SessionExecuteParams {
2814
+ /**
2815
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2816
+ * customs — pass them on every request that needs them.
2817
+ */
2818
+ interface Experimental {
2819
+ /**
2820
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2821
+ * existing Composio toolkits. All tools are no-auth.
2822
+ */
2823
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2824
+ /**
2825
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2826
+ * extends_toolkit inherit the Composio toolkit's connection.
2827
+ */
2828
+ custom_tools?: Array<Experimental.CustomTool>;
2829
+ }
2830
+ namespace Experimental {
2831
+ interface CustomToolkit {
2832
+ /**
2833
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2834
+ */
2835
+ description: string;
2836
+ /**
2837
+ * Display name shown to the LLM and in search results.
2838
+ */
2839
+ name: string;
2840
+ /**
2841
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2842
+ * slugs. Alphanumeric, underscores, and hyphens only.
2843
+ */
2844
+ slug: string;
2845
+ /**
2846
+ * Tools in this custom toolkit
2847
+ */
2848
+ tools: Array<CustomToolkit.Tool>;
2849
+ /**
2850
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2851
+ * in create/attach responses for inline custom definitions.
2852
+ */
2853
+ preload?: boolean;
2854
+ }
2855
+ namespace CustomToolkit {
2856
+ interface Tool {
2857
+ /**
2858
+ * Used for BM25 search matching and shown to the LLM.
2859
+ */
2860
+ description: string;
2861
+ /**
2862
+ * Must have type: "object" and a properties field.
2863
+ */
2864
+ input_schema: {
2865
+ [key: string]: unknown;
2866
+ };
2867
+ /**
2868
+ * Human-readable display name
2869
+ */
2870
+ name: string;
2871
+ /**
2872
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
2873
+ * chars total).
2874
+ */
2875
+ slug: string;
2876
+ /**
2877
+ * Optional output schema for the tool response.
2878
+ */
2879
+ output_schema?: {
2880
+ [key: string]: unknown;
2881
+ };
2882
+ /**
2883
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2884
+ * in create/attach responses for inline custom definitions.
2885
+ */
2886
+ preload?: boolean;
2887
+ }
2888
+ }
2889
+ interface CustomTool {
2890
+ /**
2891
+ * Used for BM25 search matching and shown to the LLM.
2892
+ */
2893
+ description: string;
2894
+ /**
2895
+ * Must have type: "object" and a properties field.
2896
+ */
2897
+ input_schema: {
2898
+ [key: string]: unknown;
2899
+ };
2900
+ /**
2901
+ * Human-readable display name
2902
+ */
2903
+ name: string;
2904
+ /**
2905
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
2906
+ * (extending). Max 60 chars total.
2907
+ */
2908
+ slug: string;
2909
+ /**
2910
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
2911
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
2912
+ */
2913
+ extends_toolkit?: string;
2914
+ /**
2915
+ * JSON Schema describing tool output (optional)
2916
+ */
2917
+ output_schema?: {
2918
+ [key: string]: unknown;
2919
+ };
2920
+ /**
2921
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2922
+ * in create/attach responses for inline custom definitions.
2923
+ */
2924
+ preload?: boolean;
2925
+ }
2926
+ }
2927
+ }
2928
+ export interface SessionExecuteMetaParams {
2929
+ /**
2930
+ * The unique slug identifier of the meta tool to execute
2931
+ */
2932
+ 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';
2933
+ /**
2934
+ * The arguments required by the meta tool
2935
+ */
2936
+ arguments?: {
2937
+ [key: string]: unknown;
2938
+ };
2939
+ /**
2940
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2941
+ * customs — pass them on every request that needs them.
2942
+ */
2943
+ experimental?: SessionExecuteMetaParams.Experimental;
2944
+ }
2945
+ export declare namespace SessionExecuteMetaParams {
2946
+ /**
2947
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
2948
+ * customs — pass them on every request that needs them.
2949
+ */
2950
+ interface Experimental {
2951
+ /**
2952
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
2953
+ * existing Composio toolkits. All tools are no-auth.
2954
+ */
2955
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
2956
+ /**
2957
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
2958
+ * extends_toolkit inherit the Composio toolkit's connection.
2959
+ */
2960
+ custom_tools?: Array<Experimental.CustomTool>;
2961
+ }
2962
+ namespace Experimental {
2963
+ interface CustomToolkit {
2964
+ /**
2965
+ * Used for BM25 search matching and shown in toolkit connection statuses.
2966
+ */
2967
+ description: string;
2968
+ /**
2969
+ * Display name shown to the LLM and in search results.
2970
+ */
2971
+ name: string;
2972
+ /**
2973
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
2974
+ * slugs. Alphanumeric, underscores, and hyphens only.
2975
+ */
2976
+ slug: string;
2977
+ /**
2978
+ * Tools in this custom toolkit
2979
+ */
2980
+ tools: Array<CustomToolkit.Tool>;
2981
+ /**
2982
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
2983
+ * in create/attach responses for inline custom definitions.
2984
+ */
2985
+ preload?: boolean;
2986
+ }
2987
+ namespace CustomToolkit {
2988
+ interface Tool {
2989
+ /**
2990
+ * Used for BM25 search matching and shown to the LLM.
2991
+ */
2992
+ description: string;
2993
+ /**
2994
+ * Must have type: "object" and a properties field.
2995
+ */
2996
+ input_schema: {
2997
+ [key: string]: unknown;
2998
+ };
2999
+ /**
3000
+ * Human-readable display name
3001
+ */
3002
+ name: string;
3003
+ /**
3004
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
3005
+ * chars total).
3006
+ */
3007
+ slug: string;
3008
+ /**
3009
+ * Optional output schema for the tool response.
3010
+ */
3011
+ output_schema?: {
3012
+ [key: string]: unknown;
3013
+ };
3014
+ /**
3015
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3016
+ * in create/attach responses for inline custom definitions.
3017
+ */
3018
+ preload?: boolean;
3019
+ }
3020
+ }
3021
+ interface CustomTool {
3022
+ /**
3023
+ * Used for BM25 search matching and shown to the LLM.
3024
+ */
3025
+ description: string;
3026
+ /**
3027
+ * Must have type: "object" and a properties field.
3028
+ */
3029
+ input_schema: {
3030
+ [key: string]: unknown;
3031
+ };
3032
+ /**
3033
+ * Human-readable display name
3034
+ */
3035
+ name: string;
3036
+ /**
3037
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
3038
+ * (extending). Max 60 chars total.
3039
+ */
3040
+ slug: string;
3041
+ /**
3042
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
3043
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
3044
+ */
3045
+ extends_toolkit?: string;
3046
+ /**
3047
+ * JSON Schema describing tool output (optional)
3048
+ */
3049
+ output_schema?: {
3050
+ [key: string]: unknown;
3051
+ };
3052
+ /**
3053
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3054
+ * in create/attach responses for inline custom definitions.
3055
+ */
3056
+ preload?: boolean;
3057
+ }
3058
+ }
3059
+ }
3060
+ export interface SessionLinkParams {
3061
+ /**
3062
+ * The unique slug identifier of the toolkit to connect
3063
+ */
3064
+ toolkit: string;
3065
+ /**
3066
+ * Sharing model for this connected account. PRIVATE (default) is usable only by
3067
+ * the owning user_id. SHARED is reachable from a tool-router session ONLY when
3068
+ * explicitly pinned in the session config — at most one SHARED connection per
3069
+ * toolkit per session. Sessions never use a SHARED connection implicitly.
3070
+ */
3071
+ account_type?: 'PRIVATE' | 'SHARED';
3072
+ /**
3073
+ * Access control for SHARED connections. Resolution rule (only fires when caller
3074
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
3075
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
3076
+ * deny-by-default — only the creator can use.
3077
+ */
3078
+ acl_config_for_shared?: SessionLinkParams.ACLConfigForShared;
3079
+ /**
3080
+ * A human-readable alias for this connected account. Must be unique per entity and
3081
+ * toolkit within the project.
3082
+ */
3083
+ alias?: string;
3084
+ /**
3085
+ * URL where users will be redirected after completing auth
3086
+ */
3087
+ callback_url?: string;
3088
+ }
3089
+ export declare namespace SessionLinkParams {
3090
+ /**
3091
+ * Access control for SHARED connections. Resolution rule (only fires when caller
3092
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
3093
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
3094
+ * deny-by-default — only the creator can use.
3095
+ */
3096
+ interface ACLConfigForShared {
3097
+ /**
3098
+ * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
3099
+ * connections.
3100
+ */
3101
+ allow_all_users?: boolean;
3102
+ /**
3103
+ * Explicit allow list of user_ids who can use this SHARED connection.
3104
+ */
3105
+ allowed_user_ids?: Array<string>;
3106
+ /**
3107
+ * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
3108
+ */
3109
+ not_allowed_user_ids?: Array<string>;
3110
+ }
3111
+ }
3112
+ export interface SessionPatchParams {
3113
+ /**
3114
+ * The auth configs to use for the session. This will override the default behavior
3115
+ * and use the given auth config when specific toolkits are being executed
3116
+ */
3117
+ auth_configs?: {
3118
+ [key: string]: string;
3119
+ };
3120
+ /**
3121
+ * The connected accounts to use for the session, as an array of nano-IDs per
3122
+ * toolkit. This overrides the default behaviour and pins specific connected
3123
+ * accounts when toolkits are executed. Each account must exist (not deleted or
3124
+ * disabled) and belong to the same `user_id` as the session. Multi-account
3125
+ * sessions can pin multiple; non-multi-account sessions are capped at length 1.
3126
+ */
3127
+ connected_accounts?: {
3128
+ [key: string]: Array<string>;
3129
+ } | null;
3130
+ execute?: SessionPatchParams.Execute;
3131
+ experimental?: SessionPatchParams.Experimental | null;
3132
+ manage_connections?: SessionPatchParams.ManageConnections | null;
3133
+ multi_account?: SessionPatchParams.MultiAccount | null;
3134
+ /**
3135
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
3136
+ * "all" to dynamically expose every app tool allowed by positive
3137
+ * toolkits/tools/tags filters.
3138
+ */
3139
+ preload?: SessionPatchParams.Preload;
3140
+ search?: SessionPatchParams.Search;
3141
+ /**
3142
+ * Global MCP tool annotation hints for filtering. Array format is treated as
3143
+ * enabled list. Object format supports both enabled (tool must have at least one)
3144
+ * and disabled (tool must NOT have any) lists. Toolkit-level tags override this.
3145
+ * Toolkit enabled/disabled lists take precedence over tag filtering.
3146
+ */
3147
+ tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | SessionPatchParams.UnionMember1;
3148
+ /**
3149
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable
3150
+ * toolkits (denylist). Mutually exclusive.
3151
+ */
3152
+ toolkits?: SessionPatchParams.Enable | SessionPatchParams.Disable;
3153
+ /**
3154
+ * Tool-level configuration per toolkit. Allows you to enable, disable, or filter
3155
+ * by tags for specific tools within each toolkit. Every slug passed in `enable` /
3156
+ * `disable` must be a valid Composio tool slug for that toolkit — invalid or
3157
+ * typo'd slugs fail session creation with a clear error listing which ones didn't
3158
+ * match.
3159
+ */
3160
+ tools?: {
3161
+ [key: string]: SessionPatchParams.Enable | SessionPatchParams.Disable | SessionPatchParams.Tags;
3162
+ };
3163
+ workbench?: SessionPatchParams.Workbench | null;
3164
+ }
3165
+ export declare namespace SessionPatchParams {
3166
+ interface Execute {
3167
+ enable_multi_execute?: boolean;
3168
+ }
3169
+ interface Experimental {
3170
+ /**
3171
+ * Experimental base URL override for connection link redirects created from this
3172
+ * tool-router session. When set, link creation returns
3173
+ * `${link_url_overwrite}/link/{link_token}` instead of the default Composio
3174
+ * Connect base URL. Use only when your integration needs links to open through a
3175
+ * custom Connect host.
3176
+ */
3177
+ link_url_overwrite?: string;
3178
+ /**
3179
+ * Per-tool elicitation permission config. Replaces the stored block when provided.
3180
+ */
3181
+ permissions?: Experimental.Permissions;
3182
+ }
3183
+ namespace Experimental {
3184
+ /**
3185
+ * Per-tool elicitation permission config. Replaces the stored block when provided.
3186
+ */
3187
+ interface Permissions {
3188
+ /**
3189
+ * Default elicitation behavior when no override matches. `allow_all` runs every
3190
+ * tool without prompting; `ask_every_call` prompts on each invocation;
3191
+ * `ask_once_per_session` prompts once and remembers the answer for the rest of the
3192
+ * session.
3193
+ */
3194
+ default: 'allow_all' | 'ask_every_call' | 'ask_once_per_session';
3195
+ /**
3196
+ * Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? "__none__"}`,
3197
+ * plus account-wide overrides keyed by `*:${connectedAccountId ?? "__none__"}`.
3198
+ * Exact tool overrides take precedence over account-wide overrides. `always_allow`
3199
+ * skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once`
3200
+ * prompts once per session (allow/deny) and remembers; `ask_always` prompts on
3201
+ * every call with allow-once/allow-session/deny, ignoring any cached session
3202
+ * allow. Overrides take precedence over `default`.
3203
+ */
3204
+ overrides?: {
3205
+ [key: string]: 'always_allow' | 'always_deny' | 'ask_once' | 'ask_always';
3206
+ };
3207
+ }
3208
+ }
3209
+ interface ManageConnections {
3210
+ /**
3211
+ * The URL to redirect to after a user completes authentication for a connected
3212
+ * account. This allows you to handle the auth callback in your own application.
3213
+ */
3214
+ callback_url?: string;
3215
+ /**
3216
+ * Whether to enable the connection manager for automatic connection handling. If
3217
+ * true, we will provide a tool your agent can use to initiate connections to
3218
+ * toolkits if it doesnt exist. If set to false, then you have to manage
3219
+ * connections manually.
3220
+ */
3221
+ enable?: boolean | null;
3222
+ /**
3223
+ * Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting
3224
+ * connected accounts. Default true.
3225
+ */
3226
+ enable_connection_removal?: boolean | null;
3227
+ /**
3228
+ * When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to
3229
+ * poll connection status after sharing auth URLs. Default is false (disabled). May
3230
+ * not work reliably with GPT models.
3231
+ */
3232
+ enable_wait_for_connections?: boolean | null;
3233
+ }
3234
+ interface MultiAccount {
3235
+ /**
3236
+ * When true, enables multi-account mode for this session. When not set, falls back
3237
+ * to org/project-level configuration.
3238
+ */
3239
+ enable?: boolean;
3240
+ /**
3241
+ * Maximum number of connected accounts allowed per toolkit. Must be between 2
3242
+ * and 10.
3243
+ */
3244
+ max_accounts_per_toolkit?: number;
3245
+ /**
3246
+ * When true, the agent must explicitly select which account to use. When false
3247
+ * (default), the first/default account is used automatically.
3248
+ */
3249
+ require_explicit_selection?: boolean;
3250
+ }
3251
+ /**
3252
+ * Preload configuration. Use an explicit list for frequently used tool slugs, or
3253
+ * "all" to dynamically expose every app tool allowed by positive
3254
+ * toolkits/tools/tags filters.
3255
+ */
3256
+ interface Preload {
3257
+ /**
3258
+ * Explicit tool slugs to preload, or "all" to dynamically expose all current and
3259
+ * future app tools allowed by the positive session filters. "all" is capped at
3260
+ * 1000 tools and is not supported without a positive allowlist.
3261
+ */
3262
+ tools?: Array<string> | string;
3263
+ }
3264
+ interface Search {
3265
+ enable?: boolean;
3266
+ }
3267
+ interface UnionMember1 {
3268
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3269
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3270
+ }
3271
+ /**
3272
+ * Enable only specific toolkits (allowlist)
3273
+ */
3274
+ interface Enable {
3275
+ /**
3276
+ * Only these specific toolkits will be enabled
3277
+ */
3278
+ enable: Array<string>;
3279
+ }
3280
+ /**
3281
+ * Disable specific toolkits (denylist)
3282
+ */
3283
+ interface Disable {
3284
+ /**
3285
+ * These specific toolkits will be disabled
3286
+ */
3287
+ disable: Array<string>;
3288
+ }
3289
+ interface Enable {
3290
+ /**
3291
+ * Only these specific tools will be available for this toolkit
3292
+ */
3293
+ enable: Array<string>;
3294
+ }
3295
+ interface Disable {
3296
+ /**
3297
+ * These specific tools will be disabled for this toolkit
3298
+ */
3299
+ disable: Array<string>;
3300
+ }
3301
+ interface Tags {
3302
+ /**
3303
+ * MCP tags to filter tools. Array format is treated as enabled list. Object format
3304
+ * supports both enabled and disabled lists.
3305
+ */
3306
+ tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | Tags.UnionMember1;
3307
+ }
3308
+ namespace Tags {
3309
+ interface UnionMember1 {
3310
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3311
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
3312
+ }
3313
+ }
3314
+ interface Workbench {
3315
+ /**
3316
+ * Character threshold for automatic offloading. When workbench response exceeds
3317
+ * this threshold, it will be automatically offloaded. Default is picked
3318
+ * automatically based on the response size.
3319
+ */
3320
+ auto_offload_threshold?: number;
3321
+ /**
3322
+ * Set to false to disable the workbench entirely. When disabled, no code execution
3323
+ * tools are available in the session.
3324
+ */
3325
+ enable?: boolean;
3326
+ /**
3327
+ * Whether proxy execution is enabled. When enabled, workbench can call URLs and
3328
+ * APIs directly.
3329
+ */
3330
+ enable_proxy_execution?: boolean;
3331
+ /**
3332
+ * Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
3333
+ * vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Patching this value recreates the sandbox
3334
+ * on next access — sandbox FS state is lost, but /mnt/files/ R2 mount persists.
3335
+ */
3336
+ sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
3337
+ }
3338
+ }
3339
+ export interface SessionProxyExecuteParams {
3340
+ /**
3341
+ * The API endpoint to call (absolute URL or path relative to base URL of the
3342
+ * connected account)
3343
+ */
3344
+ endpoint: string;
3345
+ /**
3346
+ * The HTTP method to use for the request
3347
+ */
3348
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
3349
+ /**
3350
+ * The slug of the toolkit to use for the request
3351
+ */
3352
+ toolkit_slug: string;
3353
+ /**
3354
+ * Binary body to send. For binary upload via URL: use {url: "https://...",
3355
+ * content_type?: "..."}. For binary upload via base64: use {base64: "...",
3356
+ * content_type?: "..."}.
3357
+ */
3358
+ binary_body?: SessionProxyExecuteParams.UnionMember0 | SessionProxyExecuteParams.UnionMember1;
3359
+ /**
3360
+ * The request body (for POST, PUT, and PATCH requests)
3361
+ */
3362
+ body?: unknown;
3363
+ 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;
3364
+ /**
3365
+ * Additional HTTP headers or query parameters to include in the request
3366
+ */
3367
+ parameters?: Array<SessionProxyExecuteParams.Parameter>;
3368
+ }
3369
+ export declare namespace SessionProxyExecuteParams {
3370
+ interface UnionMember0 {
3371
+ /**
3372
+ * URL to fetch binary content from
3373
+ */
3374
+ url: string;
3375
+ /**
3376
+ * Content-Type header to use for the request
3377
+ */
3378
+ content_type?: string;
3379
+ }
3380
+ interface UnionMember1 {
3381
+ /**
3382
+ * Base64-encoded binary data
3383
+ */
3384
+ base64: string;
3385
+ /**
3386
+ * Content-Type header to use for the request
3387
+ */
3388
+ content_type?: string;
3389
+ }
3390
+ interface UnionMember0 {
3391
+ authScheme: 'OAUTH2';
3392
+ toolkitSlug: string;
3393
+ val: UnionMember0.Val;
3394
+ }
3395
+ namespace UnionMember0 {
3396
+ interface Val {
3397
+ access_token: string;
3398
+ account_id?: string;
3399
+ account_url?: string;
3400
+ api_url?: string;
3401
+ /**
3402
+ * for slack user scopes
3403
+ */
3404
+ authed_user?: Val.AuthedUser;
3405
+ base_url?: string;
3406
+ borneo_dashboard_url?: string;
3407
+ COMPANYDOMAIN?: string;
3408
+ dc?: string;
3409
+ domain?: string;
3410
+ expires_in?: number | string | null;
3411
+ extension?: string;
3412
+ extra_token_data?: {
3413
+ [key: string]: unknown;
3414
+ };
3415
+ form_api_base_url?: string;
3416
+ id_token?: string;
3417
+ instanceEndpoint?: string;
3418
+ instanceName?: string;
3419
+ /**
3420
+ * Whether to return the redirect url without shortening
3421
+ */
3422
+ long_redirect_url?: boolean;
3423
+ proxy_password?: string;
3424
+ proxy_username?: string;
3425
+ refresh_token?: string | null;
3426
+ region?: string;
3427
+ scope?: string | Array<string> | null;
3428
+ server_location?: string;
3429
+ shop?: string;
3430
+ site_name?: string;
3431
+ /**
3432
+ * The oauth2 state prefix for the connection
3433
+ */
3434
+ state_prefix?: string;
3435
+ subdomain?: string;
3436
+ token_type?: string;
3437
+ version?: string;
3438
+ webhook_signature?: string;
3439
+ your_server?: string;
3440
+ 'your-domain'?: string;
3441
+ [k: string]: unknown;
3442
+ }
3443
+ namespace Val {
3444
+ /**
3445
+ * for slack user scopes
3446
+ */
3447
+ interface AuthedUser {
3448
+ access_token?: string;
3449
+ scope?: string;
3450
+ }
3451
+ }
3452
+ }
3453
+ interface UnionMember1 {
3454
+ authScheme: 'DCR_OAUTH';
3455
+ toolkitSlug: string;
3456
+ val: UnionMember1.Val;
3457
+ }
3458
+ namespace UnionMember1 {
3459
+ interface Val {
3460
+ access_token: string;
3461
+ /**
3462
+ * Dynamically registered client ID
3463
+ */
3464
+ client_id: string;
3465
+ account_id?: string;
3466
+ account_url?: string;
3467
+ api_url?: string;
3468
+ base_url?: string;
3469
+ borneo_dashboard_url?: string;
3470
+ client_id_issued_at?: number;
3471
+ /**
3472
+ * Dynamically registered client secret
3473
+ */
3474
+ client_secret?: string;
3475
+ client_secret_expires_at?: number;
3476
+ COMPANYDOMAIN?: string;
3477
+ dc?: string;
3478
+ domain?: string;
3479
+ expires_in?: number | string | null;
3480
+ extension?: string;
3481
+ form_api_base_url?: string;
3482
+ id_token?: string;
3483
+ instanceEndpoint?: string;
3484
+ instanceName?: string;
3485
+ /**
3486
+ * Whether to return the redirect url without shortening
3487
+ */
3488
+ long_redirect_url?: boolean;
3489
+ proxy_password?: string;
3490
+ proxy_username?: string;
3491
+ refresh_token?: string | null;
3492
+ region?: string;
3493
+ scope?: string | Array<string> | null;
3494
+ server_location?: string;
3495
+ shop?: string;
3496
+ site_name?: string;
3497
+ /**
3498
+ * The oauth2 state prefix for the connection
3499
+ */
3500
+ state_prefix?: string;
3501
+ subdomain?: string;
3502
+ token_type?: string;
3503
+ version?: string;
3504
+ your_server?: string;
3505
+ 'your-domain'?: string;
3506
+ [k: string]: unknown;
3507
+ }
3508
+ }
3509
+ interface UnionMember2 {
3510
+ authScheme: 'API_KEY';
3511
+ toolkitSlug: string;
3512
+ val: UnionMember2.Val;
3513
+ }
3514
+ namespace UnionMember2 {
3515
+ interface Val {
3516
+ account_id?: string;
3517
+ account_url?: string;
3518
+ api_key?: string;
3519
+ api_url?: string;
3520
+ base_url?: string;
3521
+ basic_encoded?: string;
3522
+ bearer_token?: string;
3523
+ borneo_dashboard_url?: string;
3524
+ COMPANYDOMAIN?: string;
3525
+ dc?: string;
3526
+ domain?: string;
3527
+ extension?: string;
3528
+ form_api_base_url?: string;
3529
+ generic_api_key?: string;
3530
+ instanceEndpoint?: string;
3531
+ instanceName?: string;
3532
+ proxy_password?: string;
3533
+ proxy_username?: string;
3534
+ region?: string;
3535
+ server_location?: string;
3536
+ shop?: string;
3537
+ site_name?: string;
3538
+ subdomain?: string;
3539
+ version?: string;
3540
+ your_server?: string;
3541
+ 'your-domain'?: string;
3542
+ [k: string]: unknown;
3543
+ }
3544
+ }
3545
+ interface UnionMember3 {
3546
+ authScheme: 'BASIC_WITH_JWT';
3547
+ toolkitSlug: string;
3548
+ val: UnionMember3.Val;
3549
+ }
3550
+ namespace UnionMember3 {
3551
+ interface Val {
3552
+ password: string;
3553
+ username: string;
3554
+ account_id?: string;
3555
+ account_url?: string;
3556
+ api_url?: string;
3557
+ base_url?: string;
3558
+ borneo_dashboard_url?: string;
3559
+ COMPANYDOMAIN?: string;
3560
+ dc?: string;
3561
+ domain?: string;
3562
+ extension?: string;
3563
+ form_api_base_url?: string;
3564
+ instanceEndpoint?: string;
3565
+ instanceName?: string;
3566
+ proxy_password?: string;
3567
+ proxy_username?: string;
3568
+ region?: string;
3569
+ server_location?: string;
3570
+ shop?: string;
3571
+ site_name?: string;
3572
+ subdomain?: string;
3573
+ version?: string;
3574
+ your_server?: string;
3575
+ 'your-domain'?: string;
3576
+ [k: string]: unknown;
3577
+ }
3578
+ }
3579
+ interface UnionMember4 {
3580
+ authScheme: 'BASIC';
3581
+ toolkitSlug: string;
3582
+ val: UnionMember4.Val;
3583
+ }
3584
+ namespace UnionMember4 {
3585
+ interface Val {
3586
+ username: string;
3587
+ account_id?: string;
3588
+ account_url?: string;
3589
+ api_url?: string;
3590
+ base_url?: string;
3591
+ borneo_dashboard_url?: string;
3592
+ COMPANYDOMAIN?: string;
3593
+ dc?: string;
3594
+ domain?: string;
3595
+ extension?: string;
3596
+ form_api_base_url?: string;
3597
+ instanceEndpoint?: string;
3598
+ instanceName?: string;
3599
+ password?: string;
3600
+ proxy_password?: string;
3601
+ proxy_username?: string;
3602
+ region?: string;
3603
+ server_location?: string;
3604
+ shop?: string;
3605
+ site_name?: string;
3606
+ subdomain?: string;
3607
+ version?: string;
3608
+ your_server?: string;
3609
+ 'your-domain'?: string;
3610
+ [k: string]: unknown;
3611
+ }
3612
+ }
3613
+ interface UnionMember5 {
3614
+ authScheme: 'BEARER_TOKEN';
3615
+ toolkitSlug: string;
3616
+ val: UnionMember5.Val;
3617
+ }
3618
+ namespace UnionMember5 {
3619
+ interface Val {
3620
+ token: string;
3621
+ account_id?: string;
3622
+ account_url?: string;
3623
+ api_url?: string;
3624
+ base_url?: string;
3625
+ borneo_dashboard_url?: string;
3626
+ COMPANYDOMAIN?: string;
3627
+ dc?: string;
3628
+ domain?: string;
3629
+ extension?: string;
3630
+ form_api_base_url?: string;
3631
+ instanceEndpoint?: string;
3632
+ instanceName?: string;
3633
+ proxy_password?: string;
3634
+ proxy_username?: string;
3635
+ region?: string;
3636
+ server_location?: string;
3637
+ shop?: string;
3638
+ site_name?: string;
3639
+ subdomain?: string;
3640
+ version?: string;
3641
+ your_server?: string;
3642
+ 'your-domain'?: string;
3643
+ [k: string]: unknown;
3644
+ }
3645
+ }
3646
+ interface UnionMember6 {
3647
+ authScheme: 'OAUTH1';
3648
+ toolkitSlug: string;
3649
+ val: UnionMember6.Val;
3650
+ }
3651
+ namespace UnionMember6 {
3652
+ interface Val {
3653
+ oauth_token: string;
3654
+ oauth_token_secret: string;
3655
+ account_id?: string;
3656
+ account_url?: string;
3657
+ api_url?: string;
3658
+ base_url?: string;
3659
+ borneo_dashboard_url?: string;
3660
+ callback_url?: string;
3661
+ COMPANYDOMAIN?: string;
3662
+ consumer_key?: string;
3663
+ dc?: string;
3664
+ domain?: string;
3665
+ extension?: string;
3666
+ form_api_base_url?: string;
3667
+ instanceEndpoint?: string;
3668
+ instanceName?: string;
3669
+ oauth_verifier?: string;
3670
+ proxy_password?: string;
3671
+ proxy_username?: string;
3672
+ redirectUrl?: string;
3673
+ region?: string;
3674
+ server_location?: string;
3675
+ shop?: string;
3676
+ site_name?: string;
3677
+ subdomain?: string;
3678
+ version?: string;
3679
+ your_server?: string;
3680
+ 'your-domain'?: string;
3681
+ [k: string]: unknown;
3682
+ }
3683
+ }
3684
+ interface UnionMember7 {
3685
+ authScheme: 'NO_AUTH';
3686
+ toolkitSlug: string;
3687
+ val: UnionMember7.Val;
3688
+ }
3689
+ namespace UnionMember7 {
3690
+ interface Val {
3691
+ account_id?: string;
3692
+ account_url?: string;
3693
+ api_url?: string;
3694
+ base_url?: string;
3695
+ borneo_dashboard_url?: string;
3696
+ COMPANYDOMAIN?: string;
3697
+ dc?: string;
3698
+ domain?: string;
3699
+ extension?: string;
3700
+ form_api_base_url?: string;
3701
+ instanceEndpoint?: string;
3702
+ instanceName?: string;
3703
+ proxy_password?: string;
3704
+ proxy_username?: string;
3705
+ region?: string;
3706
+ server_location?: string;
3707
+ shop?: string;
3708
+ site_name?: string;
3709
+ subdomain?: string;
3710
+ version?: string;
3711
+ your_server?: string;
3712
+ 'your-domain'?: string;
3713
+ [k: string]: unknown;
3714
+ }
3715
+ }
3716
+ interface UnionMember8 {
3717
+ authScheme: 'SERVICE_ACCOUNT';
3718
+ toolkitSlug: string;
3719
+ val: UnionMember8.Val;
3720
+ }
3721
+ namespace UnionMember8 {
3722
+ interface Val {
3723
+ application_id: string;
3724
+ installation_id: string;
3725
+ private_key: string;
3726
+ account_id?: string;
3727
+ account_url?: string;
3728
+ api_url?: string;
3729
+ base_url?: string;
3730
+ borneo_dashboard_url?: string;
3731
+ COMPANYDOMAIN?: string;
3732
+ dc?: string;
3733
+ domain?: string;
3734
+ extension?: string;
3735
+ form_api_base_url?: string;
3736
+ instanceEndpoint?: string;
3737
+ instanceName?: string;
3738
+ proxy_password?: string;
3739
+ proxy_username?: string;
3740
+ region?: string;
3741
+ server_location?: string;
3742
+ shop?: string;
3743
+ site_name?: string;
3744
+ subdomain?: string;
3745
+ version?: string;
3746
+ your_server?: string;
3747
+ 'your-domain'?: string;
3748
+ [k: string]: unknown;
3749
+ }
3750
+ }
3751
+ interface UnionMember9 {
3752
+ authScheme: 'GOOGLE_SERVICE_ACCOUNT';
3753
+ toolkitSlug: string;
3754
+ val: UnionMember9.Val;
3755
+ }
3756
+ namespace UnionMember9 {
3757
+ interface Val {
3758
+ credentials_json: string;
3759
+ account_id?: string;
3760
+ account_url?: string;
3761
+ api_url?: string;
3762
+ base_url?: string;
3763
+ borneo_dashboard_url?: string;
3764
+ COMPANYDOMAIN?: string;
3765
+ dc?: string;
3766
+ domain?: string;
3767
+ extension?: string;
3768
+ form_api_base_url?: string;
3769
+ instanceEndpoint?: string;
3770
+ instanceName?: string;
3771
+ proxy_password?: string;
3772
+ proxy_username?: string;
3773
+ region?: string;
3774
+ server_location?: string;
3775
+ shop?: string;
3776
+ site_name?: string;
3777
+ subdomain?: string;
3778
+ version?: string;
3779
+ your_server?: string;
3780
+ 'your-domain'?: string;
3781
+ [k: string]: unknown;
3782
+ }
3783
+ }
3784
+ interface UnionMember10 {
3785
+ authScheme: 'S2S_OAUTH2';
3786
+ toolkitSlug: string;
3787
+ val: UnionMember10.Val;
3788
+ }
3789
+ namespace UnionMember10 {
3790
+ interface Val {
3791
+ access_token: string;
3792
+ client_id: string;
3793
+ client_secret: string;
3794
+ account_id?: string;
3795
+ account_url?: string;
3796
+ api_url?: string;
3797
+ base_url?: string;
3798
+ borneo_dashboard_url?: string;
3799
+ COMPANYDOMAIN?: string;
3800
+ dc?: string;
3801
+ domain?: string;
3802
+ expires_at?: string;
3803
+ expires_in?: number | string | null;
3804
+ extension?: string;
3805
+ form_api_base_url?: string;
3806
+ instanceEndpoint?: string;
3807
+ instanceName?: string;
3808
+ proxy_password?: string;
3809
+ proxy_username?: string;
3810
+ region?: string;
3811
+ scope?: string | Array<string> | null;
3812
+ server_location?: string;
3813
+ shop?: string;
3814
+ site_name?: string;
3815
+ subdomain?: string;
3816
+ token_type?: string;
3817
+ version?: string;
3818
+ your_server?: string;
3819
+ 'your-domain'?: string;
3820
+ [k: string]: unknown;
3821
+ }
3822
+ }
3823
+ interface Parameter {
3824
+ /**
3825
+ * Parameter name
3826
+ */
3827
+ name: string;
3828
+ /**
3829
+ * Parameter type (header or query)
3830
+ */
3831
+ type: 'header' | 'query';
3832
+ /**
3833
+ * Parameter value
3834
+ */
3835
+ value: string;
3836
+ }
3837
+ }
3838
+ export interface SessionSearchParams {
3839
+ /**
3840
+ * List of search queries to execute in parallel.
3841
+ */
3842
+ queries: Array<SessionSearchParams.Query>;
3843
+ /**
3844
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
3845
+ * customs — pass them on every request that needs them.
3846
+ */
3847
+ experimental?: SessionSearchParams.Experimental;
3848
+ /**
3849
+ * Optional model hint for search/planning behavior (e.g., "gpt-4o").
3850
+ */
3851
+ model?: string;
3852
+ }
3853
+ export declare namespace SessionSearchParams {
3854
+ interface Query {
3855
+ /**
3856
+ * The task or use case to search tools for. Provide a detailed description to get
3857
+ * the best results. Max 1024 characters.
3858
+ */
3859
+ use_case: string;
3860
+ /**
3861
+ * Known field hints as key:value pairs (e.g., "channel_name:general,
3862
+ * user_email:john@example.com"). Max 500 characters.
3863
+ */
3864
+ known_fields?: string;
3865
+ }
3866
+ /**
3867
+ * Inline custom tools and toolkits for this request. v3.1 sessions do not persist
3868
+ * customs — pass them on every request that needs them.
3869
+ */
3870
+ interface Experimental {
3871
+ /**
3872
+ * Custom toolkits with grouped tools. Toolkit slugs must not conflict with
3873
+ * existing Composio toolkits. All tools are no-auth.
3874
+ */
3875
+ custom_toolkits?: Array<Experimental.CustomToolkit>;
3876
+ /**
3877
+ * Custom tools to include in search. Standalone tools need no auth. Tools with
3878
+ * extends_toolkit inherit the Composio toolkit's connection.
3879
+ */
3880
+ custom_tools?: Array<Experimental.CustomTool>;
3881
+ }
3882
+ namespace Experimental {
3883
+ interface CustomToolkit {
3884
+ /**
3885
+ * Used for BM25 search matching and shown in toolkit connection statuses.
3886
+ */
3887
+ description: string;
3888
+ /**
3889
+ * Display name shown to the LLM and in search results.
3890
+ */
3891
+ name: string;
3892
+ /**
3893
+ * Unique slug for the toolkit. Must not conflict with existing Composio toolkit
3894
+ * slugs. Alphanumeric, underscores, and hyphens only.
3895
+ */
3896
+ slug: string;
3897
+ /**
3898
+ * Tools in this custom toolkit
3899
+ */
3900
+ tools: Array<CustomToolkit.Tool>;
3901
+ /**
3902
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3903
+ * in create/attach responses for inline custom definitions.
3904
+ */
3905
+ preload?: boolean;
3906
+ }
3907
+ namespace CustomToolkit {
3908
+ interface Tool {
3909
+ /**
3910
+ * Used for BM25 search matching and shown to the LLM.
3911
+ */
3912
+ description: string;
3913
+ /**
3914
+ * Must have type: "object" and a properties field.
3915
+ */
3916
+ input_schema: {
3917
+ [key: string]: unknown;
3918
+ };
3919
+ /**
3920
+ * Human-readable display name
3921
+ */
3922
+ name: string;
3923
+ /**
3924
+ * Tool slug. Combined with toolkit slug to form LOCAL*<TOOLKIT>*<TOOL> (max 60
3925
+ * chars total).
3926
+ */
3927
+ slug: string;
3928
+ /**
3929
+ * Optional output schema for the tool response.
3930
+ */
3931
+ output_schema?: {
3932
+ [key: string]: unknown;
3933
+ };
3934
+ /**
3935
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3936
+ * in create/attach responses for inline custom definitions.
3937
+ */
3938
+ preload?: boolean;
3939
+ }
3940
+ }
3941
+ interface CustomTool {
3942
+ /**
3943
+ * Used for BM25 search matching and shown to the LLM.
3944
+ */
3945
+ description: string;
3946
+ /**
3947
+ * Must have type: "object" and a properties field.
3948
+ */
3949
+ input_schema: {
3950
+ [key: string]: unknown;
3951
+ };
3952
+ /**
3953
+ * Human-readable display name
3954
+ */
3955
+ name: string;
3956
+ /**
3957
+ * Tool slug. Forms LOCAL*<TOOL> (standalone) or LOCAL*<TOOLKIT>\_<TOOL>
3958
+ * (extending). Max 60 chars total.
3959
+ */
3960
+ slug: string;
3961
+ /**
3962
+ * If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's
3963
+ * auth/connection status. If omitted, the tool is standalone (no-auth).
3964
+ */
3965
+ extends_toolkit?: string;
3966
+ /**
3967
+ * JSON Schema describing tool output (optional)
3968
+ */
3969
+ output_schema?: {
3970
+ [key: string]: unknown;
3971
+ };
3972
+ /**
3973
+ * SDK hint for direct custom-tool exposure. Not stored in session config; echoed
3974
+ * in create/attach responses for inline custom definitions.
3975
+ */
3976
+ preload?: boolean;
3977
+ }
3978
+ }
3979
+ }
3980
+ export interface SessionToolkitsParams {
3981
+ /**
3982
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
3983
+ * limit. The page is the page number and the limit is the number of items per
3984
+ * page. The cursor is used to paginate through the items. The cursor is not
3985
+ * required for the first page.
3986
+ */
3987
+ cursor?: string;
3988
+ /**
3989
+ * Whether to filter by connected toolkits. If provided, only connected toolkits
3990
+ * will be returned.
3991
+ */
3992
+ is_connected?: boolean | null;
3993
+ /**
3994
+ * Number of items per page, max allowed is 50
3995
+ */
3996
+ limit?: number;
3997
+ /**
3998
+ * Search query to filter toolkits by name, slug, or description
3999
+ */
4000
+ search?: string;
4001
+ /**
4002
+ * Optional comma-separated list of toolkit slugs to filter by. If provided, only
4003
+ * these toolkits will be returned, overriding the session configuration.
4004
+ */
4005
+ toolkits?: Array<string> | null;
4006
+ }
4007
+ export interface SessionToolsParams {
4008
+ /**
4009
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
4010
+ * limit. The page is the page number and the limit is the number of items per
4011
+ * page. The cursor is used to paginate through the items. The cursor is not
4012
+ * required for the first page.
4013
+ */
4014
+ cursor?: string;
4015
+ /**
4016
+ * Number of items per page, max allowed is 500
4017
+ */
4018
+ limit?: number;
4019
+ }
4020
+ export declare namespace Session {
4021
+ 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, };
4022
+ 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, };
4023
+ }
4024
+ //# sourceMappingURL=session.d.mts.map