@composio/client 0.1.0-alpha.6 → 0.1.0-alpha.61

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 (721) hide show
  1. package/CHANGELOG.md +837 -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 -40
  7. package/client.d.mts.map +1 -1
  8. package/client.d.ts +85 -40
  9. package/client.d.ts.map +1 -1
  10. package/client.js +151 -105
  11. package/client.js.map +1 -1
  12. package/client.mjs +133 -64
  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 +8 -7
  119. package/internal/types.d.mts.map +1 -1
  120. package/internal/types.d.ts +8 -7
  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.map +1 -1
  147. package/internal/utils/env.mjs.map +1 -1
  148. package/internal/utils/log.d.mts +0 -1
  149. package/internal/utils/log.d.mts.map +1 -1
  150. package/internal/utils/log.d.ts +0 -1
  151. package/internal/utils/log.d.ts.map +1 -1
  152. package/internal/utils/log.js +3 -3
  153. package/internal/utils/log.js.map +1 -1
  154. package/internal/utils/log.mjs +1 -1
  155. package/internal/utils/log.mjs.map +1 -1
  156. package/internal/utils/path.d.mts.map +1 -1
  157. package/internal/utils/path.d.ts.map +1 -1
  158. package/internal/utils/path.js +28 -7
  159. package/internal/utils/path.js.map +1 -1
  160. package/internal/utils/path.mjs +27 -6
  161. package/internal/utils/path.mjs.map +1 -1
  162. package/internal/utils/query.d.mts +2 -0
  163. package/internal/utils/query.d.mts.map +1 -0
  164. package/internal/utils/query.d.ts +2 -0
  165. package/internal/utils/query.d.ts.map +1 -0
  166. package/internal/utils/query.js +10 -0
  167. package/internal/utils/query.js.map +1 -0
  168. package/internal/utils/query.mjs +6 -0
  169. package/internal/utils/query.mjs.map +1 -0
  170. package/internal/utils/sleep.d.mts.map +1 -1
  171. package/internal/utils/sleep.d.ts.map +1 -1
  172. package/internal/utils/uuid.d.mts +1 -1
  173. package/internal/utils/uuid.d.mts.map +1 -1
  174. package/internal/utils/uuid.d.ts +1 -1
  175. package/internal/utils/uuid.d.ts.map +1 -1
  176. package/internal/utils/uuid.js +1 -2
  177. package/internal/utils/uuid.js.map +1 -1
  178. package/internal/utils/uuid.mjs +1 -2
  179. package/internal/utils/uuid.mjs.map +1 -1
  180. package/internal/utils/values.d.mts +2 -0
  181. package/internal/utils/values.d.mts.map +1 -1
  182. package/internal/utils/values.d.ts +2 -0
  183. package/internal/utils/values.d.ts.map +1 -1
  184. package/internal/utils/values.js +11 -8
  185. package/internal/utils/values.js.map +1 -1
  186. package/internal/utils/values.mjs +5 -3
  187. package/internal/utils/values.mjs.map +1 -1
  188. package/internal/utils.d.mts +1 -0
  189. package/internal/utils.d.ts +1 -0
  190. package/internal/utils.js +8 -20
  191. package/internal/utils.js.map +1 -1
  192. package/internal/utils.mjs +1 -0
  193. package/package.json +6 -14
  194. package/resource.js +2 -15
  195. package/resource.js.map +1 -1
  196. package/resources/auth-configs.d.mts +494 -54
  197. package/resources/auth-configs.d.mts.map +1 -1
  198. package/resources/auth-configs.d.ts +494 -54
  199. package/resources/auth-configs.d.ts.map +1 -1
  200. package/resources/auth-configs.js +73 -0
  201. package/resources/auth-configs.js.map +1 -1
  202. package/resources/auth-configs.mjs +73 -0
  203. package/resources/auth-configs.mjs.map +1 -1
  204. package/resources/cli/cli.d.mts +120 -0
  205. package/resources/cli/cli.d.mts.map +1 -0
  206. package/resources/cli/cli.d.ts +120 -0
  207. package/resources/cli/cli.d.ts.map +1 -0
  208. package/resources/cli/cli.js +36 -0
  209. package/resources/cli/cli.js.map +1 -0
  210. package/resources/cli/cli.mjs +31 -0
  211. package/resources/cli/cli.mjs.map +1 -0
  212. package/resources/cli/index.d.mts +3 -0
  213. package/resources/cli/index.d.mts.map +1 -0
  214. package/resources/cli/index.d.ts +3 -0
  215. package/resources/cli/index.d.ts.map +1 -0
  216. package/resources/cli/index.js +9 -0
  217. package/resources/cli/index.js.map +1 -0
  218. package/resources/cli/index.mjs +4 -0
  219. package/resources/cli/index.mjs.map +1 -0
  220. package/resources/cli/realtime.d.mts +56 -0
  221. package/resources/cli/realtime.d.mts.map +1 -0
  222. package/resources/cli/realtime.d.ts +56 -0
  223. package/resources/cli/realtime.d.ts.map +1 -0
  224. package/resources/cli/realtime.js +25 -0
  225. package/resources/cli/realtime.js.map +1 -0
  226. package/resources/cli/realtime.mjs +21 -0
  227. package/resources/cli/realtime.mjs.map +1 -0
  228. package/resources/cli.d.mts +1 -123
  229. package/resources/cli.d.mts.map +1 -1
  230. package/resources/cli.d.ts +1 -123
  231. package/resources/cli.d.ts.map +1 -1
  232. package/resources/cli.js +2 -14
  233. package/resources/cli.js.map +1 -1
  234. package/resources/cli.mjs +1 -12
  235. package/resources/cli.mjs.map +1 -1
  236. package/resources/connected-accounts.d.mts +8744 -235
  237. package/resources/connected-accounts.d.mts.map +1 -1
  238. package/resources/connected-accounts.d.ts +8744 -235
  239. package/resources/connected-accounts.d.ts.map +1 -1
  240. package/resources/connected-accounts.js +87 -2
  241. package/resources/connected-accounts.js.map +1 -1
  242. package/resources/connected-accounts.mjs +87 -2
  243. package/resources/connected-accounts.mjs.map +1 -1
  244. package/resources/files.d.mts +152 -0
  245. package/resources/files.d.mts.map +1 -0
  246. package/resources/files.d.ts +152 -0
  247. package/resources/files.d.ts.map +1 -0
  248. package/resources/files.js +42 -0
  249. package/resources/files.js.map +1 -0
  250. package/resources/files.mjs +38 -0
  251. package/resources/files.mjs.map +1 -0
  252. package/resources/index.d.mts +13 -11
  253. package/resources/index.d.mts.map +1 -1
  254. package/resources/index.d.ts +13 -11
  255. package/resources/index.d.ts.map +1 -1
  256. package/resources/index.js +14 -10
  257. package/resources/index.js.map +1 -1
  258. package/resources/index.mjs +7 -5
  259. package/resources/index.mjs.map +1 -1
  260. package/resources/link.d.mts +2020 -0
  261. package/resources/link.d.mts.map +1 -0
  262. package/resources/link.d.ts +2020 -0
  263. package/resources/link.d.ts.map +1 -0
  264. package/resources/link.js +19 -0
  265. package/resources/link.js.map +1 -0
  266. package/resources/link.mjs +15 -0
  267. package/resources/link.mjs.map +1 -0
  268. package/resources/logs/index.d.mts +4 -0
  269. package/resources/logs/index.d.mts.map +1 -0
  270. package/resources/logs/index.d.ts +4 -0
  271. package/resources/logs/index.d.ts.map +1 -0
  272. package/resources/logs/index.js +11 -0
  273. package/resources/logs/index.js.map +1 -0
  274. package/resources/logs/index.mjs +5 -0
  275. package/resources/logs/index.mjs.map +1 -0
  276. package/resources/logs/logs.d.mts +14 -0
  277. package/resources/logs/logs.d.mts.map +1 -0
  278. package/resources/logs/logs.d.ts +14 -0
  279. package/resources/logs/logs.d.ts.map +1 -0
  280. package/resources/logs/logs.js +21 -0
  281. package/resources/logs/logs.js.map +1 -0
  282. package/resources/logs/logs.mjs +16 -0
  283. package/resources/logs/logs.mjs.map +1 -0
  284. package/resources/logs/tools.d.mts +173 -0
  285. package/resources/logs/tools.d.mts.map +1 -0
  286. package/resources/logs/tools.d.ts +173 -0
  287. package/resources/logs/tools.d.ts.map +1 -0
  288. package/resources/logs/tools.js +35 -0
  289. package/resources/logs/tools.js.map +1 -0
  290. package/resources/logs/tools.mjs +31 -0
  291. package/resources/logs/tools.mjs.map +1 -0
  292. package/resources/logs/triggers.d.mts +161 -0
  293. package/resources/logs/triggers.d.mts.map +1 -0
  294. package/resources/logs/triggers.d.ts +161 -0
  295. package/resources/logs/triggers.d.ts.map +1 -0
  296. package/resources/logs/triggers.js +36 -0
  297. package/resources/logs/triggers.js.map +1 -0
  298. package/resources/logs/triggers.mjs +32 -0
  299. package/resources/logs/triggers.mjs.map +1 -0
  300. package/resources/logs.d.mts +2 -0
  301. package/resources/logs.d.mts.map +1 -0
  302. package/resources/logs.d.ts +2 -0
  303. package/resources/logs.d.ts.map +1 -0
  304. package/resources/logs.js +6 -0
  305. package/resources/logs.js.map +1 -0
  306. package/resources/logs.mjs +3 -0
  307. package/resources/logs.mjs.map +1 -0
  308. package/resources/mcp/custom.d.mts +105 -0
  309. package/resources/mcp/custom.d.mts.map +1 -0
  310. package/resources/mcp/custom.d.ts +105 -0
  311. package/resources/mcp/custom.d.ts.map +1 -0
  312. package/resources/mcp/custom.js +29 -0
  313. package/resources/mcp/custom.js.map +1 -0
  314. package/resources/mcp/custom.mjs +25 -0
  315. package/resources/mcp/custom.mjs.map +1 -0
  316. package/resources/mcp/generate.d.mts +62 -0
  317. package/resources/mcp/generate.d.mts.map +1 -0
  318. package/resources/mcp/generate.d.ts +62 -0
  319. package/resources/mcp/generate.d.ts.map +1 -0
  320. package/resources/mcp/generate.js +29 -0
  321. package/resources/mcp/generate.js.map +1 -0
  322. package/resources/mcp/generate.mjs +25 -0
  323. package/resources/mcp/generate.mjs.map +1 -0
  324. package/resources/mcp/index.d.mts +3 -2
  325. package/resources/mcp/index.d.mts.map +1 -1
  326. package/resources/mcp/index.d.ts +3 -2
  327. package/resources/mcp/index.d.ts.map +1 -1
  328. package/resources/mcp/index.js +5 -3
  329. package/resources/mcp/index.js.map +1 -1
  330. package/resources/mcp/index.mjs +2 -1
  331. package/resources/mcp/index.mjs.map +1 -1
  332. package/resources/mcp/mcp.d.mts +450 -175
  333. package/resources/mcp/mcp.d.mts.map +1 -1
  334. package/resources/mcp/mcp.d.ts +450 -175
  335. package/resources/mcp/mcp.d.ts.map +1 -1
  336. package/resources/mcp/mcp.js +92 -39
  337. package/resources/mcp/mcp.js.map +1 -1
  338. package/resources/mcp/mcp.mjs +91 -16
  339. package/resources/mcp/mcp.mjs.map +1 -1
  340. package/resources/mcp.js +2 -15
  341. package/resources/mcp.js.map +1 -1
  342. package/resources/migration.d.mts +35 -0
  343. package/resources/migration.d.mts.map +1 -0
  344. package/resources/migration.d.ts +35 -0
  345. package/resources/migration.d.ts.map +1 -0
  346. package/resources/migration.js +20 -0
  347. package/resources/migration.js.map +1 -0
  348. package/resources/migration.mjs +16 -0
  349. package/resources/migration.mjs.map +1 -0
  350. package/resources/project/config.d.mts +71 -0
  351. package/resources/project/config.d.mts.map +1 -0
  352. package/resources/project/config.d.ts +71 -0
  353. package/resources/project/config.d.ts.map +1 -0
  354. package/resources/project/config.js +33 -0
  355. package/resources/project/config.js.map +1 -0
  356. package/resources/project/config.mjs +29 -0
  357. package/resources/project/config.mjs.map +1 -0
  358. package/resources/project/index.d.mts +3 -0
  359. package/resources/project/index.d.mts.map +1 -0
  360. package/resources/project/index.d.ts +3 -0
  361. package/resources/project/index.d.ts.map +1 -0
  362. package/resources/project/index.js +9 -0
  363. package/resources/project/index.js.map +1 -0
  364. package/resources/project/index.mjs +4 -0
  365. package/resources/project/index.mjs.map +1 -0
  366. package/resources/project/project.d.mts +10 -0
  367. package/resources/project/project.d.mts.map +1 -0
  368. package/resources/project/project.d.ts +10 -0
  369. package/resources/project/project.d.ts.map +1 -0
  370. package/resources/project/project.js +17 -0
  371. package/resources/project/project.js.map +1 -0
  372. package/resources/project/project.mjs +12 -0
  373. package/resources/project/project.mjs.map +1 -0
  374. package/resources/{org/project.d.mts.map → project.d.mts.map} +1 -1
  375. package/resources/{org/project.d.ts.map → project.d.ts.map} +1 -1
  376. package/resources/project.js +6 -0
  377. package/resources/project.js.map +1 -0
  378. package/resources/project.mjs.map +1 -0
  379. package/resources/tool-router/index.d.mts +3 -0
  380. package/resources/tool-router/index.d.mts.map +1 -0
  381. package/resources/tool-router/index.d.ts +3 -0
  382. package/resources/tool-router/index.d.ts.map +1 -0
  383. package/resources/tool-router/index.js +9 -0
  384. package/resources/tool-router/index.js.map +1 -0
  385. package/resources/tool-router/index.mjs +4 -0
  386. package/resources/tool-router/index.mjs.map +1 -0
  387. package/resources/tool-router/session/files.d.mts +205 -0
  388. package/resources/tool-router/session/files.d.mts.map +1 -0
  389. package/resources/tool-router/session/files.d.ts +205 -0
  390. package/resources/tool-router/session/files.d.ts.map +1 -0
  391. package/resources/tool-router/session/files.js +101 -0
  392. package/resources/tool-router/session/files.js.map +1 -0
  393. package/resources/tool-router/session/files.mjs +97 -0
  394. package/resources/tool-router/session/files.mjs.map +1 -0
  395. package/resources/tool-router/session/index.d.mts +3 -0
  396. package/resources/tool-router/session/index.d.mts.map +1 -0
  397. package/resources/tool-router/session/index.d.ts +3 -0
  398. package/resources/tool-router/session/index.d.ts.map +1 -0
  399. package/resources/tool-router/session/index.js +9 -0
  400. package/resources/tool-router/session/index.js.map +1 -0
  401. package/resources/tool-router/session/index.mjs +4 -0
  402. package/resources/tool-router/session/index.mjs.map +1 -0
  403. package/resources/tool-router/session/session.d.mts +1201 -0
  404. package/resources/tool-router/session/session.d.mts.map +1 -0
  405. package/resources/tool-router/session/session.d.ts +1201 -0
  406. package/resources/tool-router/session/session.d.ts.map +1 -0
  407. package/resources/tool-router/session/session.js +153 -0
  408. package/resources/tool-router/session/session.js.map +1 -0
  409. package/resources/tool-router/session/session.mjs +148 -0
  410. package/resources/tool-router/session/session.mjs.map +1 -0
  411. package/resources/tool-router/session.d.mts +2 -0
  412. package/resources/tool-router/session.d.mts.map +1 -0
  413. package/resources/tool-router/session.d.ts +2 -0
  414. package/resources/tool-router/session.d.ts.map +1 -0
  415. package/resources/tool-router/session.js +6 -0
  416. package/resources/tool-router/session.js.map +1 -0
  417. package/resources/tool-router/session.mjs +3 -0
  418. package/resources/tool-router/session.mjs.map +1 -0
  419. package/resources/tool-router/tool-router.d.mts +94 -0
  420. package/resources/tool-router/tool-router.d.mts.map +1 -0
  421. package/resources/tool-router/tool-router.d.ts +94 -0
  422. package/resources/tool-router/tool-router.d.ts.map +1 -0
  423. package/resources/tool-router/tool-router.js +49 -0
  424. package/resources/tool-router/tool-router.js.map +1 -0
  425. package/resources/tool-router/tool-router.mjs +44 -0
  426. package/resources/tool-router/tool-router.mjs.map +1 -0
  427. package/resources/tool-router.d.mts +2 -0
  428. package/resources/tool-router.d.mts.map +1 -0
  429. package/resources/tool-router.d.ts +2 -0
  430. package/resources/tool-router.d.ts.map +1 -0
  431. package/resources/tool-router.js +6 -0
  432. package/resources/tool-router.js.map +1 -0
  433. package/resources/tool-router.mjs +3 -0
  434. package/resources/tool-router.mjs.map +1 -0
  435. package/resources/toolkits.d.mts +301 -6
  436. package/resources/toolkits.d.mts.map +1 -1
  437. package/resources/toolkits.d.ts +301 -6
  438. package/resources/toolkits.d.ts.map +1 -1
  439. package/resources/toolkits.js +23 -2
  440. package/resources/toolkits.js.map +1 -1
  441. package/resources/toolkits.mjs +23 -2
  442. package/resources/toolkits.mjs.map +1 -1
  443. package/resources/tools.d.mts +1289 -41
  444. package/resources/tools.d.mts.map +1 -1
  445. package/resources/tools.d.ts +1289 -41
  446. package/resources/tools.d.ts.map +1 -1
  447. package/resources/tools.js +85 -6
  448. package/resources/tools.js.map +1 -1
  449. package/resources/tools.mjs +85 -6
  450. package/resources/tools.mjs.map +1 -1
  451. package/resources/trigger-instances/index.d.mts +2 -2
  452. package/resources/trigger-instances/index.d.mts.map +1 -1
  453. package/resources/trigger-instances/index.d.ts +2 -2
  454. package/resources/trigger-instances/index.d.ts.map +1 -1
  455. package/resources/trigger-instances/index.js +3 -3
  456. package/resources/trigger-instances/index.js.map +1 -1
  457. package/resources/trigger-instances/index.mjs +1 -1
  458. package/resources/trigger-instances/index.mjs.map +1 -1
  459. package/resources/trigger-instances/manage.d.mts +55 -0
  460. package/resources/trigger-instances/manage.d.mts.map +1 -0
  461. package/resources/trigger-instances/manage.d.ts +55 -0
  462. package/resources/trigger-instances/manage.d.ts.map +1 -0
  463. package/resources/trigger-instances/manage.js +45 -0
  464. package/resources/trigger-instances/manage.js.map +1 -0
  465. package/resources/trigger-instances/manage.mjs +41 -0
  466. package/resources/trigger-instances/manage.mjs.map +1 -0
  467. package/resources/trigger-instances/trigger-instances.d.mts +184 -42
  468. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  469. package/resources/trigger-instances/trigger-instances.d.ts +184 -42
  470. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  471. package/resources/trigger-instances/trigger-instances.js +34 -35
  472. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  473. package/resources/trigger-instances/trigger-instances.mjs +33 -12
  474. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  475. package/resources/trigger-instances.js +2 -15
  476. package/resources/trigger-instances.js.map +1 -1
  477. package/resources/triggers-types.d.mts +148 -12
  478. package/resources/triggers-types.d.mts.map +1 -1
  479. package/resources/triggers-types.d.ts +148 -12
  480. package/resources/triggers-types.d.ts.map +1 -1
  481. package/resources/triggers-types.js +17 -2
  482. package/resources/triggers-types.js.map +1 -1
  483. package/resources/triggers-types.mjs +17 -2
  484. package/resources/triggers-types.mjs.map +1 -1
  485. package/resources.js +2 -15
  486. package/resources.js.map +1 -1
  487. package/src/client.ts +223 -126
  488. package/src/core/resource.ts +1 -1
  489. package/src/internal/detect-platform.ts +3 -3
  490. package/src/internal/headers.ts +9 -8
  491. package/src/internal/parse.ts +6 -0
  492. package/src/internal/qs/formats.ts +2 -1
  493. package/src/internal/qs/stringify.ts +17 -20
  494. package/src/internal/qs/utils.ts +14 -14
  495. package/src/internal/request-options.ts +54 -0
  496. package/src/internal/shim-types.ts +26 -0
  497. package/src/internal/shims.ts +2 -2
  498. package/src/internal/to-file.ts +5 -3
  499. package/src/internal/types.ts +9 -6
  500. package/src/internal/uploads.ts +17 -5
  501. package/src/internal/utils/base64.ts +13 -10
  502. package/src/internal/utils/bytes.ts +32 -0
  503. package/src/internal/utils/log.ts +1 -1
  504. package/src/internal/utils/path.ts +33 -8
  505. package/src/internal/utils/query.ts +7 -0
  506. package/src/internal/utils/uuid.ts +1 -3
  507. package/src/internal/utils/values.ts +6 -3
  508. package/src/internal/utils.ts +1 -0
  509. package/src/resources/auth-configs.ts +559 -67
  510. package/src/resources/cli/cli.ts +163 -0
  511. package/src/resources/cli/index.ts +15 -0
  512. package/src/resources/cli/realtime.ts +75 -0
  513. package/src/resources/cli.ts +1 -164
  514. package/src/resources/connected-accounts.ts +16489 -459
  515. package/src/resources/files.ts +197 -0
  516. package/src/resources/index.ts +28 -27
  517. package/src/resources/link.ts +3820 -0
  518. package/src/resources/logs/index.ts +10 -0
  519. package/src/resources/logs/logs.ts +31 -0
  520. package/src/resources/{action-execution.ts → logs/tools.ts} +98 -103
  521. package/src/resources/logs/triggers.ts +241 -0
  522. package/src/resources/{org.ts → logs.ts} +1 -1
  523. package/src/resources/mcp/custom.ts +125 -0
  524. package/src/resources/mcp/generate.ts +74 -0
  525. package/src/resources/mcp/index.ts +3 -3
  526. package/src/resources/mcp/mcp.ts +487 -200
  527. package/src/resources/migration.ts +49 -0
  528. package/src/resources/project/config.ts +110 -0
  529. package/src/resources/project/index.ts +9 -0
  530. package/src/resources/project/project.ts +20 -0
  531. package/src/resources/tool-router/index.ts +25 -0
  532. package/src/resources/tool-router/session/files.ts +284 -0
  533. package/src/resources/tool-router/session/index.ts +31 -0
  534. package/src/resources/tool-router/session/session.ts +1465 -0
  535. package/src/resources/tool-router/session.ts +3 -0
  536. package/src/resources/tool-router/tool-router.ts +152 -0
  537. package/src/resources/tool-router.ts +3 -0
  538. package/src/resources/toolkits.ts +343 -8
  539. package/src/resources/tools.ts +1983 -60
  540. package/src/resources/trigger-instances/index.ts +5 -9
  541. package/src/resources/trigger-instances/manage.ts +75 -0
  542. package/src/resources/trigger-instances/trigger-instances.ts +197 -66
  543. package/src/resources/triggers-types.ts +152 -14
  544. package/src/version.ts +1 -1
  545. package/uploads.js +2 -15
  546. package/uploads.js.map +1 -1
  547. package/version.d.mts +1 -1
  548. package/version.d.mts.map +1 -1
  549. package/version.d.ts +1 -1
  550. package/version.d.ts.map +1 -1
  551. package/version.js +1 -1
  552. package/version.js.map +1 -1
  553. package/version.mjs +1 -1
  554. package/version.mjs.map +1 -1
  555. package/internal/shims/crypto.d.mts +0 -13
  556. package/internal/shims/crypto.d.mts.map +0 -1
  557. package/internal/shims/crypto.d.ts +0 -13
  558. package/internal/shims/crypto.d.ts.map +0 -1
  559. package/internal/shims/crypto.js +0 -13
  560. package/internal/shims/crypto.js.map +0 -1
  561. package/internal/shims/crypto.mjs +0 -9
  562. package/internal/shims/crypto.mjs.map +0 -1
  563. package/internal/shims/file.d.mts +0 -23
  564. package/internal/shims/file.d.mts.map +0 -1
  565. package/internal/shims/file.d.ts +0 -23
  566. package/internal/shims/file.d.ts.map +0 -1
  567. package/internal/shims/file.js +0 -16
  568. package/internal/shims/file.js.map +0 -1
  569. package/internal/shims/file.mjs +0 -12
  570. package/internal/shims/file.mjs.map +0 -1
  571. package/internal/shims/getBuiltinModule.d.mts +0 -11
  572. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  573. package/internal/shims/getBuiltinModule.d.ts +0 -11
  574. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  575. package/internal/shims/getBuiltinModule.js +0 -71
  576. package/internal/shims/getBuiltinModule.js.map +0 -1
  577. package/internal/shims/getBuiltinModule.mjs +0 -67
  578. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  579. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  580. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  581. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  582. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  583. package/internal/shims/nullGetBuiltinModule.js +0 -5
  584. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  585. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  586. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  587. package/resources/action-execution.d.mts +0 -155
  588. package/resources/action-execution.d.mts.map +0 -1
  589. package/resources/action-execution.d.ts +0 -155
  590. package/resources/action-execution.d.ts.map +0 -1
  591. package/resources/action-execution.js +0 -19
  592. package/resources/action-execution.js.map +0 -1
  593. package/resources/action-execution.mjs +0 -15
  594. package/resources/action-execution.mjs.map +0 -1
  595. package/resources/mcp/command.d.mts +0 -34
  596. package/resources/mcp/command.d.mts.map +0 -1
  597. package/resources/mcp/command.d.ts +0 -34
  598. package/resources/mcp/command.d.ts.map +0 -1
  599. package/resources/mcp/command.js +0 -12
  600. package/resources/mcp/command.js.map +0 -1
  601. package/resources/mcp/command.mjs +0 -8
  602. package/resources/mcp/command.mjs.map +0 -1
  603. package/resources/org/api-key.d.mts +0 -17
  604. package/resources/org/api-key.d.mts.map +0 -1
  605. package/resources/org/api-key.d.ts +0 -17
  606. package/resources/org/api-key.d.ts.map +0 -1
  607. package/resources/org/api-key.js +0 -15
  608. package/resources/org/api-key.js.map +0 -1
  609. package/resources/org/api-key.mjs +0 -11
  610. package/resources/org/api-key.mjs.map +0 -1
  611. package/resources/org/index.d.mts +0 -4
  612. package/resources/org/index.d.mts.map +0 -1
  613. package/resources/org/index.d.ts +0 -4
  614. package/resources/org/index.d.ts.map +0 -1
  615. package/resources/org/index.js +0 -11
  616. package/resources/org/index.js.map +0 -1
  617. package/resources/org/index.mjs +0 -5
  618. package/resources/org/index.mjs.map +0 -1
  619. package/resources/org/org.d.mts +0 -14
  620. package/resources/org/org.d.mts.map +0 -1
  621. package/resources/org/org.d.ts +0 -14
  622. package/resources/org/org.d.ts.map +0 -1
  623. package/resources/org/org.js +0 -43
  624. package/resources/org/org.js.map +0 -1
  625. package/resources/org/org.mjs +0 -16
  626. package/resources/org/org.mjs.map +0 -1
  627. package/resources/org/project/api-keys.d.mts +0 -109
  628. package/resources/org/project/api-keys.d.mts.map +0 -1
  629. package/resources/org/project/api-keys.d.ts +0 -109
  630. package/resources/org/project/api-keys.d.ts.map +0 -1
  631. package/resources/org/project/api-keys.js +0 -23
  632. package/resources/org/project/api-keys.js.map +0 -1
  633. package/resources/org/project/api-keys.mjs +0 -19
  634. package/resources/org/project/api-keys.mjs.map +0 -1
  635. package/resources/org/project/index.d.mts +0 -5
  636. package/resources/org/project/index.d.mts.map +0 -1
  637. package/resources/org/project/index.d.ts +0 -5
  638. package/resources/org/project/index.d.ts.map +0 -1
  639. package/resources/org/project/index.js +0 -13
  640. package/resources/org/project/index.js.map +0 -1
  641. package/resources/org/project/index.mjs +0 -6
  642. package/resources/org/project/index.mjs.map +0 -1
  643. package/resources/org/project/project.d.mts +0 -90
  644. package/resources/org/project/project.d.mts.map +0 -1
  645. package/resources/org/project/project.d.ts +0 -90
  646. package/resources/org/project/project.d.ts.map +0 -1
  647. package/resources/org/project/project.js +0 -60
  648. package/resources/org/project/project.js.map +0 -1
  649. package/resources/org/project/project.mjs +0 -33
  650. package/resources/org/project/project.mjs.map +0 -1
  651. package/resources/org/project/trigger.d.mts +0 -51
  652. package/resources/org/project/trigger.d.mts.map +0 -1
  653. package/resources/org/project/trigger.d.ts +0 -51
  654. package/resources/org/project/trigger.d.ts.map +0 -1
  655. package/resources/org/project/trigger.js +0 -16
  656. package/resources/org/project/trigger.js.map +0 -1
  657. package/resources/org/project/trigger.mjs +0 -12
  658. package/resources/org/project/trigger.mjs.map +0 -1
  659. package/resources/org/project/webhook.d.mts +0 -92
  660. package/resources/org/project/webhook.d.mts.map +0 -1
  661. package/resources/org/project/webhook.d.ts +0 -92
  662. package/resources/org/project/webhook.d.ts.map +0 -1
  663. package/resources/org/project/webhook.js +0 -24
  664. package/resources/org/project/webhook.js.map +0 -1
  665. package/resources/org/project/webhook.mjs +0 -20
  666. package/resources/org/project/webhook.mjs.map +0 -1
  667. package/resources/org/project.js +0 -19
  668. package/resources/org/project.js.map +0 -1
  669. package/resources/org/project.mjs.map +0 -1
  670. package/resources/org.d.mts +0 -2
  671. package/resources/org.d.mts.map +0 -1
  672. package/resources/org.d.ts +0 -2
  673. package/resources/org.d.ts.map +0 -1
  674. package/resources/org.js +0 -19
  675. package/resources/org.js.map +0 -1
  676. package/resources/org.mjs.map +0 -1
  677. package/resources/team-members.d.mts +0 -57
  678. package/resources/team-members.d.mts.map +0 -1
  679. package/resources/team-members.d.ts +0 -57
  680. package/resources/team-members.d.ts.map +0 -1
  681. package/resources/team-members.js +0 -22
  682. package/resources/team-members.js.map +0 -1
  683. package/resources/team-members.mjs +0 -18
  684. package/resources/team-members.mjs.map +0 -1
  685. package/resources/trigger-instances/handle.d.mts +0 -25
  686. package/resources/trigger-instances/handle.d.mts.map +0 -1
  687. package/resources/trigger-instances/handle.d.ts +0 -25
  688. package/resources/trigger-instances/handle.d.ts.map +0 -1
  689. package/resources/trigger-instances/handle.js +0 -18
  690. package/resources/trigger-instances/handle.js.map +0 -1
  691. package/resources/trigger-instances/handle.mjs +0 -14
  692. package/resources/trigger-instances/handle.mjs.map +0 -1
  693. package/resources/trigger.d.mts +0 -73
  694. package/resources/trigger.d.mts.map +0 -1
  695. package/resources/trigger.d.ts +0 -73
  696. package/resources/trigger.d.ts.map +0 -1
  697. package/resources/trigger.js +0 -12
  698. package/resources/trigger.js.map +0 -1
  699. package/resources/trigger.mjs +0 -8
  700. package/resources/trigger.mjs.map +0 -1
  701. package/src/internal/shim-types.d.ts +0 -28
  702. package/src/internal/shims/crypto.ts +0 -18
  703. package/src/internal/shims/file.ts +0 -32
  704. package/src/internal/shims/getBuiltinModule.ts +0 -66
  705. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  706. package/src/resources/mcp/command.ts +0 -47
  707. package/src/resources/org/api-key.ts +0 -30
  708. package/src/resources/org/index.ts +0 -12
  709. package/src/resources/org/org.ts +0 -39
  710. package/src/resources/org/project/api-keys.ts +0 -156
  711. package/src/resources/org/project/index.ts +0 -35
  712. package/src/resources/org/project/project.ts +0 -206
  713. package/src/resources/org/project/trigger.ts +0 -95
  714. package/src/resources/org/project/webhook.ts +0 -131
  715. package/src/resources/team-members.ts +0 -111
  716. package/src/resources/trigger-instances/handle.ts +0 -45
  717. package/src/resources/trigger.ts +0 -108
  718. /package/resources/{org/project.d.mts → project.d.mts} +0 -0
  719. /package/resources/{org/project.d.ts → project.d.ts} +0 -0
  720. /package/resources/{org/project.mjs → project.mjs} +0 -0
  721. /package/src/resources/{org/project.ts → project.ts} +0 -0
@@ -0,0 +1,1465 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as FilesAPI from './files';
5
+ import {
6
+ FileCreateDownloadURLParams,
7
+ FileCreateDownloadURLResponse,
8
+ FileCreateUploadURLParams,
9
+ FileCreateUploadURLResponse,
10
+ FileDeleteParams,
11
+ FileDeleteResponse,
12
+ FileListParams,
13
+ FileListResponse,
14
+ Files,
15
+ } from './files';
16
+ import { APIPromise } from '../../../core/api-promise';
17
+ import { RequestOptions } from '../../../internal/request-options';
18
+ import { path } from '../../../internal/utils/path';
19
+
20
+ /**
21
+ * (Labs) Tool router endpoints
22
+ */
23
+ export class Session extends APIResource {
24
+ files: FilesAPI.Files = new FilesAPI.Files(this._client);
25
+
26
+ /**
27
+ * Creates a new session for the tool router feature. This endpoint initializes a
28
+ * new session with specified toolkits and their authentication configurations. The
29
+ * session provides an isolated environment for testing and managing tool routing
30
+ * logic with scoped MCP server access.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const session = await client.toolRouter.session.create({
35
+ * user_id: 'user_123456789',
36
+ * });
37
+ * ```
38
+ */
39
+ create(body: SessionCreateParams, options?: RequestOptions): APIPromise<SessionCreateResponse> {
40
+ return this._client.post('/api/v3/tool_router/session', { body, ...options });
41
+ }
42
+
43
+ /**
44
+ * Retrieves an existing tool router session by its ID. Returns the session
45
+ * configuration, MCP server URL, and available tools.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const session = await client.toolRouter.session.retrieve(
50
+ * 'trs_123456789',
51
+ * );
52
+ * ```
53
+ */
54
+ retrieve(sessionID: string, options?: RequestOptions): APIPromise<SessionRetrieveResponse> {
55
+ return this._client.get(path`/api/v3/tool_router/session/${sessionID}`, options);
56
+ }
57
+
58
+ /**
59
+ * Executes a specific tool within a tool router session. The toolkit is
60
+ * automatically inferred from the tool slug. The tool must belong to an allowed
61
+ * toolkit and must not be disabled in the session configuration. This endpoint
62
+ * validates permissions, resolves connected accounts, and executes the tool with
63
+ * the session context.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const response = await client.toolRouter.session.execute(
68
+ * 'trs_LX9uJKBinWWr',
69
+ * { tool_slug: 'GITHUB_CREATE_ISSUE' },
70
+ * );
71
+ * ```
72
+ */
73
+ execute(
74
+ sessionID: string,
75
+ body: SessionExecuteParams,
76
+ options?: RequestOptions,
77
+ ): APIPromise<SessionExecuteResponse> {
78
+ return this._client.post(path`/api/v3/tool_router/session/${sessionID}/execute`, { body, ...options });
79
+ }
80
+
81
+ /**
82
+ * Executes a Composio meta tool (COMPOSIO\_\*) within a tool router session.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const response =
87
+ * await client.toolRouter.session.executeMeta(
88
+ * 'trs_LX9uJKBinWWr',
89
+ * { slug: 'COMPOSIO_MANAGE_CONNECTIONS' },
90
+ * );
91
+ * ```
92
+ */
93
+ executeMeta(
94
+ sessionID: string,
95
+ body: SessionExecuteMetaParams,
96
+ options?: RequestOptions,
97
+ ): APIPromise<SessionExecuteMetaResponse> {
98
+ return this._client.post(path`/api/v3/tool_router/session/${sessionID}/execute_meta`, {
99
+ body,
100
+ ...options,
101
+ });
102
+ }
103
+
104
+ /**
105
+ * Initiates an authentication link session for a specific toolkit within a tool
106
+ * router session. Returns a link token and redirect URL that users can use to
107
+ * complete the OAuth flow.
108
+ *
109
+ * @example
110
+ * ```ts
111
+ * const response = await client.toolRouter.session.link(
112
+ * 'trs_LX9uJKBinWWr',
113
+ * { toolkit: 'github' },
114
+ * );
115
+ * ```
116
+ */
117
+ link(
118
+ sessionID: string,
119
+ body: SessionLinkParams,
120
+ options?: RequestOptions,
121
+ ): APIPromise<SessionLinkResponse> {
122
+ return this._client.post(path`/api/v3/tool_router/session/${sessionID}/link`, { body, ...options });
123
+ }
124
+
125
+ /**
126
+ * Search for tools matching a given use case query within a tool router session.
127
+ * Returns matching tool slugs, full tool schemas, toolkit connection statuses, and
128
+ * workflow guidance in a predictable format.
129
+ *
130
+ * @example
131
+ * ```ts
132
+ * const response = await client.toolRouter.session.search(
133
+ * 'trs_LX9uJKBinWWr',
134
+ * {
135
+ * queries: [
136
+ * { use_case: 'Send a slack message to a channel' },
137
+ * ],
138
+ * },
139
+ * );
140
+ * ```
141
+ */
142
+ search(
143
+ sessionID: string,
144
+ body: SessionSearchParams,
145
+ options?: RequestOptions,
146
+ ): APIPromise<SessionSearchResponse> {
147
+ return this._client.post(path`/api/v3/tool_router/session/${sessionID}/search`, { body, ...options });
148
+ }
149
+
150
+ /**
151
+ * Retrieves a cursor-paginated list of toolkits available in the tool router
152
+ * session. Includes toolkit metadata, composio-managed auth schemes, and connected
153
+ * accounts if available. Optionally filter by specific toolkit slugs.
154
+ *
155
+ * @example
156
+ * ```ts
157
+ * const response = await client.toolRouter.session.toolkits(
158
+ * 'trs_123456789',
159
+ * );
160
+ * ```
161
+ */
162
+ toolkits(
163
+ sessionID: string,
164
+ query: SessionToolkitsParams | null | undefined = {},
165
+ options?: RequestOptions,
166
+ ): APIPromise<SessionToolkitsResponse> {
167
+ return this._client.get(path`/api/v3/tool_router/session/${sessionID}/toolkits`, { query, ...options });
168
+ }
169
+
170
+ /**
171
+ * Returns the meta tools available in a tool router session with their complete
172
+ * schemas. This includes request and response schemas specific to the session
173
+ * context.
174
+ *
175
+ * @example
176
+ * ```ts
177
+ * const response = await client.toolRouter.session.tools(
178
+ * 'session_id',
179
+ * );
180
+ * ```
181
+ */
182
+ tools(
183
+ sessionID: string,
184
+ query?: SessionToolsParams | null | undefined,
185
+ options?: RequestOptions,
186
+ ): APIPromise<SessionToolsResponse> {
187
+ return this._client.get(path`/api/v3/tool_router/session/${sessionID}/tools`, options);
188
+ }
189
+ }
190
+
191
+ export interface SessionCreateResponse {
192
+ /**
193
+ * The session configuration including user, toolkits, and overrides
194
+ */
195
+ config: SessionCreateResponse.Config;
196
+
197
+ mcp: SessionCreateResponse.Mcp;
198
+
199
+ /**
200
+ * The identifier of the session
201
+ */
202
+ session_id: string;
203
+
204
+ /**
205
+ * List of available tools in this session
206
+ */
207
+ tool_router_tools: Array<string>;
208
+
209
+ /**
210
+ * Experimental features including the generated system prompt. Only returned on
211
+ * session creation, not on GET.
212
+ */
213
+ experimental?: SessionCreateResponse.Experimental;
214
+ }
215
+
216
+ export namespace SessionCreateResponse {
217
+ /**
218
+ * The session configuration including user, toolkits, and overrides
219
+ */
220
+ export interface Config {
221
+ /**
222
+ * User identifier for this session
223
+ */
224
+ user_id: string;
225
+
226
+ /**
227
+ * Auth config overrides per toolkit
228
+ */
229
+ auth_configs?: { [key: string]: string };
230
+
231
+ /**
232
+ * Connected account overrides per toolkit
233
+ */
234
+ connected_accounts?: { [key: string]: string };
235
+
236
+ /**
237
+ * Manage connections configuration
238
+ */
239
+ manage_connections?: Config.ManageConnections;
240
+
241
+ /**
242
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
243
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
244
+ * tool must NOT have any of. Both conditions must be satisfied.
245
+ */
246
+ tags?: Config.Tags;
247
+
248
+ /**
249
+ * Toolkit configuration - either enabled list or disabled list
250
+ */
251
+ toolkits?: Config.Enabled | Config.Disabled;
252
+
253
+ /**
254
+ * Tool-level configuration per toolkit
255
+ */
256
+ tools?: { [key: string]: Config.Enabled | Config.Disabled | Config.Tags };
257
+
258
+ /**
259
+ * Workbench configuration
260
+ */
261
+ workbench?: Config.Workbench;
262
+ }
263
+
264
+ export namespace Config {
265
+ /**
266
+ * Manage connections configuration
267
+ */
268
+ export interface ManageConnections {
269
+ /**
270
+ * Custom callback URL for connected account auth flows
271
+ */
272
+ callback_url?: string;
273
+
274
+ /**
275
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
276
+ * Default false. May not work reliably with GPT models.
277
+ */
278
+ enable_wait_for_connections?: boolean;
279
+
280
+ /**
281
+ * Whether to enable the connection manager for automatic connection handling
282
+ */
283
+ enabled?: boolean;
284
+ }
285
+
286
+ /**
287
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
288
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
289
+ * tool must NOT have any of. Both conditions must be satisfied.
290
+ */
291
+ export interface Tags {
292
+ /**
293
+ * Tags that the tool must NOT have any of
294
+ */
295
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
296
+
297
+ /**
298
+ * Tags that the tool must have at least one of
299
+ */
300
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
301
+ }
302
+
303
+ export interface Enabled {
304
+ enabled: Array<string>;
305
+ }
306
+
307
+ export interface Disabled {
308
+ disabled: Array<string>;
309
+ }
310
+
311
+ export interface Enabled {
312
+ enabled: Array<string>;
313
+ }
314
+
315
+ export interface Disabled {
316
+ disabled: Array<string>;
317
+ }
318
+
319
+ export interface Tags {
320
+ tags: Tags.Tags;
321
+ }
322
+
323
+ export namespace Tags {
324
+ export interface Tags {
325
+ /**
326
+ * Tags that the tool must NOT have any of
327
+ */
328
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
329
+
330
+ /**
331
+ * Tags that the tool must have at least one of
332
+ */
333
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
334
+ }
335
+ }
336
+
337
+ /**
338
+ * Workbench configuration
339
+ */
340
+ export interface Workbench {
341
+ /**
342
+ * Character threshold after which tool execution response are saved to a file in
343
+ * workbench. Default is 20k.
344
+ */
345
+ auto_offload_threshold?: number;
346
+
347
+ /**
348
+ * Whether proxy execution is enabled in the workbench
349
+ */
350
+ proxy_execution_enabled?: boolean;
351
+ }
352
+ }
353
+
354
+ export interface Mcp {
355
+ /**
356
+ * The type of the MCP server. Can be http
357
+ */
358
+ type: 'http';
359
+
360
+ /**
361
+ * The URL of the MCP server
362
+ */
363
+ url: string;
364
+ }
365
+
366
+ /**
367
+ * Experimental features including the generated system prompt. Only returned on
368
+ * session creation, not on GET.
369
+ */
370
+ export interface Experimental {
371
+ /**
372
+ * The assistive system prompt to inject into your agent for optimal tool router
373
+ * usage
374
+ */
375
+ assistive_prompt: string;
376
+ }
377
+ }
378
+
379
+ export interface SessionRetrieveResponse {
380
+ /**
381
+ * The session configuration including user, toolkits, and overrides
382
+ */
383
+ config: SessionRetrieveResponse.Config;
384
+
385
+ mcp: SessionRetrieveResponse.Mcp;
386
+
387
+ /**
388
+ * The identifier of the session
389
+ */
390
+ session_id: string;
391
+
392
+ /**
393
+ * List of available tools in this session
394
+ */
395
+ tool_router_tools: Array<string>;
396
+ }
397
+
398
+ export namespace SessionRetrieveResponse {
399
+ /**
400
+ * The session configuration including user, toolkits, and overrides
401
+ */
402
+ export interface Config {
403
+ /**
404
+ * User identifier for this session
405
+ */
406
+ user_id: string;
407
+
408
+ /**
409
+ * Auth config overrides per toolkit
410
+ */
411
+ auth_configs?: { [key: string]: string };
412
+
413
+ /**
414
+ * Connected account overrides per toolkit
415
+ */
416
+ connected_accounts?: { [key: string]: string };
417
+
418
+ /**
419
+ * Manage connections configuration
420
+ */
421
+ manage_connections?: Config.ManageConnections;
422
+
423
+ /**
424
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
425
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
426
+ * tool must NOT have any of. Both conditions must be satisfied.
427
+ */
428
+ tags?: Config.Tags;
429
+
430
+ /**
431
+ * Toolkit configuration - either enabled list or disabled list
432
+ */
433
+ toolkits?: Config.Enabled | Config.Disabled;
434
+
435
+ /**
436
+ * Tool-level configuration per toolkit
437
+ */
438
+ tools?: { [key: string]: Config.Enabled | Config.Disabled | Config.Tags };
439
+
440
+ /**
441
+ * Workbench configuration
442
+ */
443
+ workbench?: Config.Workbench;
444
+ }
445
+
446
+ export namespace Config {
447
+ /**
448
+ * Manage connections configuration
449
+ */
450
+ export interface ManageConnections {
451
+ /**
452
+ * Custom callback URL for connected account auth flows
453
+ */
454
+ callback_url?: string;
455
+
456
+ /**
457
+ * Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
458
+ * Default false. May not work reliably with GPT models.
459
+ */
460
+ enable_wait_for_connections?: boolean;
461
+
462
+ /**
463
+ * Whether to enable the connection manager for automatic connection handling
464
+ */
465
+ enabled?: boolean;
466
+ }
467
+
468
+ /**
469
+ * MCP tool annotation hints for filtering tools with enabled/disabled support.
470
+ * enabled: tags that the tool must have at least one of. disabled: tags that the
471
+ * tool must NOT have any of. Both conditions must be satisfied.
472
+ */
473
+ export interface Tags {
474
+ /**
475
+ * Tags that the tool must NOT have any of
476
+ */
477
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
478
+
479
+ /**
480
+ * Tags that the tool must have at least one of
481
+ */
482
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
483
+ }
484
+
485
+ export interface Enabled {
486
+ enabled: Array<string>;
487
+ }
488
+
489
+ export interface Disabled {
490
+ disabled: Array<string>;
491
+ }
492
+
493
+ export interface Enabled {
494
+ enabled: Array<string>;
495
+ }
496
+
497
+ export interface Disabled {
498
+ disabled: Array<string>;
499
+ }
500
+
501
+ export interface Tags {
502
+ tags: Tags.Tags;
503
+ }
504
+
505
+ export namespace Tags {
506
+ export interface Tags {
507
+ /**
508
+ * Tags that the tool must NOT have any of
509
+ */
510
+ disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
511
+
512
+ /**
513
+ * Tags that the tool must have at least one of
514
+ */
515
+ enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
516
+ }
517
+ }
518
+
519
+ /**
520
+ * Workbench configuration
521
+ */
522
+ export interface Workbench {
523
+ /**
524
+ * Character threshold after which tool execution response are saved to a file in
525
+ * workbench. Default is 20k.
526
+ */
527
+ auto_offload_threshold?: number;
528
+
529
+ /**
530
+ * Whether proxy execution is enabled in the workbench
531
+ */
532
+ proxy_execution_enabled?: boolean;
533
+ }
534
+ }
535
+
536
+ export interface Mcp {
537
+ /**
538
+ * The type of the MCP server. Can be http
539
+ */
540
+ type: 'http';
541
+
542
+ /**
543
+ * The URL of the MCP server
544
+ */
545
+ url: string;
546
+ }
547
+ }
548
+
549
+ export interface SessionExecuteResponse {
550
+ /**
551
+ * The data returned by the tool execution
552
+ */
553
+ data: { [key: string]: unknown };
554
+
555
+ /**
556
+ * Error message if the execution failed, null otherwise
557
+ */
558
+ error: string | null;
559
+
560
+ /**
561
+ * Unique identifier for the execution log
562
+ */
563
+ log_id: string;
564
+ }
565
+
566
+ export interface SessionExecuteMetaResponse {
567
+ /**
568
+ * The data returned by the tool execution
569
+ */
570
+ data: { [key: string]: unknown };
571
+
572
+ /**
573
+ * Error message if the execution failed, null otherwise
574
+ */
575
+ error: string | null;
576
+
577
+ /**
578
+ * Unique identifier for the execution log
579
+ */
580
+ log_id: string;
581
+ }
582
+
583
+ export interface SessionLinkResponse {
584
+ /**
585
+ * The unique identifier for the connected account
586
+ */
587
+ connected_account_id: string;
588
+
589
+ /**
590
+ * Token used to complete the authentication flow
591
+ */
592
+ link_token: string;
593
+
594
+ /**
595
+ * The URL where users should be redirected to complete OAuth
596
+ */
597
+ redirect_url: string;
598
+ }
599
+
600
+ export interface SessionSearchResponse {
601
+ /**
602
+ * Error message if any searches failed, null if all succeeded. Format: "X out of Y
603
+ * searches failed, reasons: <details>"
604
+ */
605
+ error: string | null;
606
+
607
+ /**
608
+ * Combined workflow guidance covering connections, planner, and memory usage. Each
609
+ * element is a step instruction.
610
+ */
611
+ next_steps_guidance: Array<string>;
612
+
613
+ /**
614
+ * Per-query search results with tools, reasoning, and memory. One entry per query
615
+ * in request order.
616
+ */
617
+ results: Array<SessionSearchResponse.Result>;
618
+
619
+ /**
620
+ * Session info for correlating meta tool calls
621
+ */
622
+ session: SessionSearchResponse.Session;
623
+
624
+ /**
625
+ * Whether all searches completed successfully. False if any query failed.
626
+ */
627
+ success: boolean;
628
+
629
+ /**
630
+ * Time information for the query
631
+ */
632
+ time_info: SessionSearchResponse.TimeInfo;
633
+
634
+ /**
635
+ * Deduplicated tool definitions keyed by tool_slug for O(1) lookup. Each tool
636
+ * appears once even if used in multiple queries.
637
+ */
638
+ tool_schemas: { [key: string]: SessionSearchResponse.ToolSchemas };
639
+
640
+ /**
641
+ * Connection status for all toolkits mentioned across all queries, with
642
+ * descriptions merged in.
643
+ */
644
+ toolkit_connection_statuses: Array<SessionSearchResponse.ToolkitConnectionStatus>;
645
+ }
646
+
647
+ export namespace SessionSearchResponse {
648
+ export interface Result {
649
+ /**
650
+ * 1-based index of the query in the request
651
+ */
652
+ index: number;
653
+
654
+ /**
655
+ * List of main tool slugs matching the search criteria
656
+ */
657
+ primary_tool_slugs: Array<string>;
658
+
659
+ /**
660
+ * List of related tool slugs that might be useful
661
+ */
662
+ related_tool_slugs: Array<string>;
663
+
664
+ /**
665
+ * List of unique toolkit slugs used by tools in this query
666
+ */
667
+ toolkits: Array<string>;
668
+
669
+ /**
670
+ * The use case that was searched
671
+ */
672
+ use_case: string;
673
+
674
+ /**
675
+ * Task difficulty assessment (e.g., "easy - Simple single-tool operation with
676
+ * known parameters")
677
+ */
678
+ difficulty?: string;
679
+
680
+ /**
681
+ * Error message if the search for this query failed, null otherwise. Always
682
+ * present for failed queries.
683
+ */
684
+ error?: string | null;
685
+
686
+ /**
687
+ * Guidance message about the search results, particularly when a cached plan is
688
+ * available
689
+ */
690
+ execution_guidance?: string;
691
+
692
+ /**
693
+ * Common pitfalls and considerations (only present when cached plan is available)
694
+ */
695
+ known_pitfalls?: Array<string>;
696
+
697
+ /**
698
+ * Memory data relevant to this query, grouped by app. Only present for non-cached
699
+ * search results.
700
+ */
701
+ memory?: { [key: string]: Array<string> };
702
+
703
+ /**
704
+ * ID of cached plan if available
705
+ */
706
+ plan_id?: string;
707
+
708
+ /**
709
+ * Workflow steps from cached plan (only present when cached plan is available)
710
+ */
711
+ recommended_plan_steps?: Array<string>;
712
+
713
+ /**
714
+ * Reference Python code snippets for processing tool responses in the workbench
715
+ * (only present when cached plan is available)
716
+ */
717
+ reference_workbench_snippets?: Array<Result.ReferenceWorkbenchSnippet>;
718
+ }
719
+
720
+ export namespace Result {
721
+ export interface ReferenceWorkbenchSnippet {
722
+ /**
723
+ * Python code snippet for the workbench
724
+ */
725
+ code: string;
726
+
727
+ /**
728
+ * Description of what the code snippet does
729
+ */
730
+ description: string;
731
+ }
732
+ }
733
+
734
+ /**
735
+ * Session info for correlating meta tool calls
736
+ */
737
+ export interface Session {
738
+ /**
739
+ * Session identifier to be passed to subsequent meta tool calls as session_id.
740
+ */
741
+ id: string;
742
+
743
+ /**
744
+ * Whether a fresh session id was generated in this call.
745
+ */
746
+ generate_id: boolean;
747
+
748
+ /**
749
+ * LLM-facing guidance on how to reuse this session id
750
+ */
751
+ instructions: string;
752
+ }
753
+
754
+ /**
755
+ * Time information for the query
756
+ */
757
+ export interface TimeInfo {
758
+ /**
759
+ * Current time in ISO format (UTC)
760
+ */
761
+ current_time_utc: string;
762
+
763
+ /**
764
+ * Current time as Unix epoch timestamp in seconds
765
+ */
766
+ current_time_utc_epoch_seconds: number;
767
+
768
+ /**
769
+ * Important message about time handling and timezone considerations
770
+ */
771
+ message: string;
772
+ }
773
+
774
+ export interface ToolSchemas {
775
+ /**
776
+ * The slug of the tool
777
+ */
778
+ tool_slug: string;
779
+
780
+ /**
781
+ * The slug of the toolkit that provides this tool
782
+ */
783
+ toolkit: string;
784
+
785
+ /**
786
+ * Description of the tool
787
+ */
788
+ description?: string;
789
+
790
+ /**
791
+ * Whether the full input_schema is included in this response
792
+ */
793
+ hasFullSchema?: boolean;
794
+
795
+ /**
796
+ * Input schema for the tool (only present when hasFullSchema is true)
797
+ */
798
+ input_schema?: { [key: string]: unknown };
799
+
800
+ /**
801
+ * Output/response schema for the tool
802
+ */
803
+ output_schema?: { [key: string]: unknown };
804
+
805
+ /**
806
+ * Reference to fetch full schema when hasFullSchema is false
807
+ */
808
+ schemaRef?: ToolSchemas.SchemaRef;
809
+ }
810
+
811
+ export namespace ToolSchemas {
812
+ /**
813
+ * Reference to fetch full schema when hasFullSchema is false
814
+ */
815
+ export interface SchemaRef {
816
+ /**
817
+ * Arguments to pass to the tool
818
+ */
819
+ args: SchemaRef.Args;
820
+
821
+ /**
822
+ * Instruction message for the LLM
823
+ */
824
+ message: string;
825
+
826
+ /**
827
+ * Tool to call
828
+ */
829
+ tool: 'COMPOSIO_GET_TOOL_SCHEMAS';
830
+ }
831
+
832
+ export namespace SchemaRef {
833
+ /**
834
+ * Arguments to pass to the tool
835
+ */
836
+ export interface Args {
837
+ /**
838
+ * Tool slugs to fetch schemas for
839
+ */
840
+ tool_slugs: Array<string>;
841
+ }
842
+ }
843
+ }
844
+
845
+ export interface ToolkitConnectionStatus {
846
+ /**
847
+ * Description of what the toolkit does and its capabilities
848
+ */
849
+ description: string;
850
+
851
+ /**
852
+ * Whether an active connection exists for this toolkit
853
+ */
854
+ has_active_connection: boolean;
855
+
856
+ /**
857
+ * Human-readable message about the connection status and next steps
858
+ */
859
+ status_message: string;
860
+
861
+ /**
862
+ * The toolkit slug identifier (e.g., "gmail", "slack")
863
+ */
864
+ toolkit: string;
865
+
866
+ /**
867
+ * Connection details including auth config and connected account IDs. Only present
868
+ * when has_active_connection is true.
869
+ */
870
+ connection_details?: { [key: string]: unknown };
871
+
872
+ /**
873
+ * Information about the currently connected user (email, name, etc.)
874
+ */
875
+ current_user_info?: { [key: string]: unknown };
876
+ }
877
+ }
878
+
879
+ export interface SessionToolkitsResponse {
880
+ current_page: number;
881
+
882
+ items: Array<SessionToolkitsResponse.Item>;
883
+
884
+ total_items: number;
885
+
886
+ total_pages: number;
887
+
888
+ next_cursor?: string | null;
889
+ }
890
+
891
+ export namespace SessionToolkitsResponse {
892
+ export interface Item {
893
+ /**
894
+ * Available Composio-managed auth schemes
895
+ */
896
+ composio_managed_auth_schemes: Array<string>;
897
+
898
+ /**
899
+ * Connected account if available
900
+ */
901
+ connected_account: Item.ConnectedAccount | null;
902
+
903
+ /**
904
+ * Whether the toolkit is enabled
905
+ */
906
+ enabled: boolean;
907
+
908
+ /**
909
+ * Whether the toolkit is no-auth
910
+ */
911
+ is_no_auth: boolean;
912
+
913
+ /**
914
+ * Toolkit metadata
915
+ */
916
+ meta: Item.Meta;
917
+
918
+ /**
919
+ * Display name of the toolkit
920
+ */
921
+ name: string;
922
+
923
+ /**
924
+ * Unique slug identifier
925
+ */
926
+ slug: string;
927
+ }
928
+
929
+ export namespace Item {
930
+ /**
931
+ * Connected account if available
932
+ */
933
+ export interface ConnectedAccount {
934
+ /**
935
+ * Connected account identifier
936
+ */
937
+ id: string;
938
+
939
+ /**
940
+ * Auth config details
941
+ */
942
+ auth_config: ConnectedAccount.AuthConfig;
943
+
944
+ /**
945
+ * Creation timestamp
946
+ */
947
+ created_at: string;
948
+
949
+ /**
950
+ * Connection status
951
+ */
952
+ status: string;
953
+
954
+ /**
955
+ * User identifier
956
+ */
957
+ user_id: string;
958
+ }
959
+
960
+ export namespace ConnectedAccount {
961
+ /**
962
+ * Auth config details
963
+ */
964
+ export interface AuthConfig {
965
+ /**
966
+ * Auth config identifier
967
+ */
968
+ id: string;
969
+
970
+ /**
971
+ * Authentication scheme type
972
+ */
973
+ auth_scheme: string;
974
+
975
+ /**
976
+ * Whether this is a Composio-managed auth config
977
+ */
978
+ is_composio_managed: boolean;
979
+ }
980
+ }
981
+
982
+ /**
983
+ * Toolkit metadata
984
+ */
985
+ export interface Meta {
986
+ /**
987
+ * Description of the toolkit
988
+ */
989
+ description: string;
990
+
991
+ /**
992
+ * URL to the toolkit logo
993
+ */
994
+ logo: string;
995
+ }
996
+ }
997
+ }
998
+
999
+ export interface SessionToolsResponse {
1000
+ /**
1001
+ * List of tools with their complete schemas
1002
+ */
1003
+ items: Array<SessionToolsResponse.Item>;
1004
+ }
1005
+
1006
+ export namespace SessionToolsResponse {
1007
+ export interface Item {
1008
+ /**
1009
+ * List of all available versions for this tool
1010
+ */
1011
+ available_versions: Array<string>;
1012
+
1013
+ deprecated: Item.Deprecated;
1014
+
1015
+ /**
1016
+ * Detailed explanation of the tool's functionality and purpose
1017
+ */
1018
+ description: string;
1019
+
1020
+ /**
1021
+ * Schema definition of required input parameters for the tool
1022
+ */
1023
+ input_parameters: { [key: string]: unknown };
1024
+
1025
+ /**
1026
+ * Indicates if this tool is deprecated and may be removed in the future
1027
+ */
1028
+ is_deprecated: boolean;
1029
+
1030
+ /**
1031
+ * Human-readable display name of the tool
1032
+ */
1033
+ name: string;
1034
+
1035
+ /**
1036
+ * Indicates if the tool can be used without authentication
1037
+ */
1038
+ no_auth: boolean;
1039
+
1040
+ /**
1041
+ * Schema definition of return values from the tool
1042
+ */
1043
+ output_parameters: { [key: string]: unknown };
1044
+
1045
+ /**
1046
+ * List of scopes associated with the tool
1047
+ */
1048
+ scopes: Array<string>;
1049
+
1050
+ /**
1051
+ * Unique identifier for the tool
1052
+ */
1053
+ slug: string;
1054
+
1055
+ /**
1056
+ * List of tags associated with the tool for categorization and filtering
1057
+ */
1058
+ tags: Array<string>;
1059
+
1060
+ toolkit: Item.Toolkit;
1061
+
1062
+ /**
1063
+ * Current version of the tool
1064
+ */
1065
+ version: string;
1066
+
1067
+ /**
1068
+ * Human-friendly description of the tool, if available
1069
+ */
1070
+ human_description?: string;
1071
+ }
1072
+
1073
+ export namespace Item {
1074
+ export interface Deprecated {
1075
+ /**
1076
+ * List of all available versions for this tool
1077
+ */
1078
+ available_versions: Array<string>;
1079
+
1080
+ /**
1081
+ * The display name of the tool
1082
+ */
1083
+ displayName: string;
1084
+
1085
+ /**
1086
+ * Indicates if this tool is deprecated and may be removed in the future
1087
+ */
1088
+ is_deprecated: boolean;
1089
+
1090
+ toolkit: Deprecated.Toolkit;
1091
+
1092
+ /**
1093
+ * Current version identifier of the tool
1094
+ */
1095
+ version: string;
1096
+ }
1097
+
1098
+ export namespace Deprecated {
1099
+ export interface Toolkit {
1100
+ /**
1101
+ * URL to the toolkit logo image
1102
+ */
1103
+ logo: string;
1104
+ }
1105
+ }
1106
+
1107
+ export interface Toolkit {
1108
+ /**
1109
+ * URL to the toolkit logo image
1110
+ */
1111
+ logo: string;
1112
+
1113
+ /**
1114
+ * Human-readable name of the parent toolkit
1115
+ */
1116
+ name: string;
1117
+
1118
+ /**
1119
+ * Unique identifier of the parent toolkit
1120
+ */
1121
+ slug: string;
1122
+ }
1123
+ }
1124
+ }
1125
+
1126
+ export interface SessionCreateParams {
1127
+ /**
1128
+ * The identifier of the user who is initiating the session, ideally a unique
1129
+ * identifier from your database like a user ID or email address
1130
+ */
1131
+ user_id: string;
1132
+
1133
+ /**
1134
+ * The auth configs to use for the session. This will override the default behavior
1135
+ * and use the given auth config when specific toolkits are being executed
1136
+ */
1137
+ auth_configs?: { [key: string]: string };
1138
+
1139
+ /**
1140
+ * The connected accounts to use for the session. This will override the default
1141
+ * behaviour and use the given connected account when specific toolkits are being
1142
+ * executed
1143
+ */
1144
+ connected_accounts?: { [key: string]: string };
1145
+
1146
+ /**
1147
+ * Experimental features - not stable, may be modified or removed in future
1148
+ * versions.
1149
+ */
1150
+ experimental?: SessionCreateParams.Experimental;
1151
+
1152
+ /**
1153
+ * Configuration for connection management settings
1154
+ */
1155
+ manage_connections?: SessionCreateParams.ManageConnections;
1156
+
1157
+ /**
1158
+ * Global MCP tool annotation hints for filtering. Array format is treated as
1159
+ * enabled list. Object format supports both enabled (tool must have at least one)
1160
+ * and disabled (tool must NOT have any) lists. Toolkit-level tags override this.
1161
+ * Toolkit enabled/disabled lists take precedence over tag filtering.
1162
+ */
1163
+ tags?:
1164
+ | Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>
1165
+ | SessionCreateParams.UnionMember1;
1166
+
1167
+ /**
1168
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable
1169
+ * toolkits (denylist). Mutually exclusive.
1170
+ */
1171
+ toolkits?: SessionCreateParams.Enable | SessionCreateParams.Disable;
1172
+
1173
+ /**
1174
+ * Tool-level configuration per toolkit - either specify enable tools (whitelist),
1175
+ * disable tools (blacklist), or filter by MCP tags for each toolkit
1176
+ */
1177
+ tools?: {
1178
+ [key: string]: SessionCreateParams.Enable | SessionCreateParams.Disable | SessionCreateParams.Tags;
1179
+ };
1180
+
1181
+ /**
1182
+ * Configuration for workbench behavior
1183
+ */
1184
+ workbench?: SessionCreateParams.Workbench;
1185
+ }
1186
+
1187
+ export namespace SessionCreateParams {
1188
+ /**
1189
+ * Experimental features - not stable, may be modified or removed in future
1190
+ * versions.
1191
+ */
1192
+ export interface Experimental {
1193
+ /**
1194
+ * Customize assistive prompt generation (e.g., timezone).
1195
+ */
1196
+ assistive_prompt_config?: Experimental.AssistivePromptConfig;
1197
+ }
1198
+
1199
+ export namespace Experimental {
1200
+ /**
1201
+ * Customize assistive prompt generation (e.g., timezone).
1202
+ */
1203
+ export interface AssistivePromptConfig {
1204
+ /**
1205
+ * IANA timezone identifier (e.g., 'America/New_York', 'Europe/London'). Used to
1206
+ * customize the system prompt with timezone-aware instructions.
1207
+ */
1208
+ user_timezone?: string;
1209
+ }
1210
+ }
1211
+
1212
+ /**
1213
+ * Configuration for connection management settings
1214
+ */
1215
+ export interface ManageConnections {
1216
+ /**
1217
+ * The URL to redirect to after a user completes authentication for a connected
1218
+ * account. This allows you to handle the auth callback in your own application.
1219
+ */
1220
+ callback_url?: string;
1221
+
1222
+ /**
1223
+ * Whether to enable the connection manager for automatic connection handling. If
1224
+ * true, we will provide a tool your agent can use to initiate connections to
1225
+ * toolkits if it doesnt exist. If set to false, then you have to manage
1226
+ * connections manually.
1227
+ */
1228
+ enable?: boolean | null;
1229
+
1230
+ /**
1231
+ * When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to
1232
+ * poll connection status after sharing auth URLs. Default is false (disabled). May
1233
+ * not work reliably with GPT models.
1234
+ */
1235
+ enable_wait_for_connections?: boolean | null;
1236
+ }
1237
+
1238
+ export interface UnionMember1 {
1239
+ /**
1240
+ * Tags that the tool must NOT have any of
1241
+ */
1242
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1243
+
1244
+ /**
1245
+ * Tags that the tool must have at least one of
1246
+ */
1247
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1248
+ }
1249
+
1250
+ /**
1251
+ * Enable only specific toolkits (allowlist)
1252
+ */
1253
+ export interface Enable {
1254
+ /**
1255
+ * Only these specific toolkits will be enabled
1256
+ */
1257
+ enable: Array<string>;
1258
+ }
1259
+
1260
+ /**
1261
+ * Disable specific toolkits (denylist)
1262
+ */
1263
+ export interface Disable {
1264
+ /**
1265
+ * These specific toolkits will be disabled
1266
+ */
1267
+ disable: Array<string>;
1268
+ }
1269
+
1270
+ export interface Enable {
1271
+ /**
1272
+ * Only these specific tools will be available for this toolkit
1273
+ */
1274
+ enable: Array<string>;
1275
+ }
1276
+
1277
+ export interface Disable {
1278
+ /**
1279
+ * These specific tools will be disabled for this toolkit
1280
+ */
1281
+ disable: Array<string>;
1282
+ }
1283
+
1284
+ export interface Tags {
1285
+ /**
1286
+ * MCP tags to filter tools. Array format is treated as enabled list. Object format
1287
+ * supports both enabled and disabled lists.
1288
+ */
1289
+ tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | Tags.UnionMember1;
1290
+ }
1291
+
1292
+ export namespace Tags {
1293
+ export interface UnionMember1 {
1294
+ /**
1295
+ * Tags that the tool must NOT have any of
1296
+ */
1297
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1298
+
1299
+ /**
1300
+ * Tags that the tool must have at least one of
1301
+ */
1302
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
1303
+ }
1304
+ }
1305
+
1306
+ /**
1307
+ * Configuration for workbench behavior
1308
+ */
1309
+ export interface Workbench {
1310
+ /**
1311
+ * Character threshold for automatic offloading. When workbench response exceeds
1312
+ * this threshold, it will be automatically offloaded. Default is picked
1313
+ * automatically based on the response size.
1314
+ */
1315
+ auto_offload_threshold?: number;
1316
+
1317
+ /**
1318
+ * Whether proxy execution is enabled. When enabled, workbench can call URLs and
1319
+ * APIs directly.
1320
+ */
1321
+ enable_proxy_execution?: boolean;
1322
+ }
1323
+ }
1324
+
1325
+ export interface SessionExecuteParams {
1326
+ /**
1327
+ * The unique slug identifier of the tool to execute
1328
+ */
1329
+ tool_slug: string;
1330
+
1331
+ /**
1332
+ * The arguments required by the tool
1333
+ */
1334
+ arguments?: { [key: string]: unknown };
1335
+ }
1336
+
1337
+ export interface SessionExecuteMetaParams {
1338
+ /**
1339
+ * The unique slug identifier of the meta tool to execute
1340
+ */
1341
+ slug:
1342
+ | 'COMPOSIO_SEARCH_TOOLS'
1343
+ | 'COMPOSIO_MULTI_EXECUTE_TOOL'
1344
+ | 'COMPOSIO_MANAGE_CONNECTIONS'
1345
+ | 'COMPOSIO_WAIT_FOR_CONNECTIONS'
1346
+ | 'COMPOSIO_REMOTE_WORKBENCH'
1347
+ | 'COMPOSIO_REMOTE_BASH_TOOL'
1348
+ | 'COMPOSIO_GET_TOOL_SCHEMAS'
1349
+ | 'COMPOSIO_UPSERT_RECIPE'
1350
+ | 'COMPOSIO_GET_RECIPE';
1351
+
1352
+ /**
1353
+ * The arguments required by the meta tool
1354
+ */
1355
+ arguments?: { [key: string]: unknown };
1356
+ }
1357
+
1358
+ export interface SessionLinkParams {
1359
+ /**
1360
+ * The unique slug identifier of the toolkit to connect
1361
+ */
1362
+ toolkit: string;
1363
+
1364
+ /**
1365
+ * URL where users will be redirected after completing auth
1366
+ */
1367
+ callback_url?: string;
1368
+ }
1369
+
1370
+ export interface SessionSearchParams {
1371
+ /**
1372
+ * List of search queries to execute in parallel. Up to 7 queries supported.
1373
+ */
1374
+ queries: Array<SessionSearchParams.Query>;
1375
+
1376
+ /**
1377
+ * Optional model hint for search/planning behavior (e.g., "gpt-4o"). Ignored if
1378
+ * invalid.
1379
+ */
1380
+ model?: string;
1381
+ }
1382
+
1383
+ export namespace SessionSearchParams {
1384
+ export interface Query {
1385
+ /**
1386
+ * The task or use case to search tools for. Provide a detailed description to get
1387
+ * the best results.
1388
+ */
1389
+ use_case: string;
1390
+
1391
+ /**
1392
+ * Known field hints as key:value pairs (e.g., "channel_name:general,
1393
+ * user_email:john@example.com")
1394
+ */
1395
+ known_fields?: string;
1396
+ }
1397
+ }
1398
+
1399
+ export interface SessionToolkitsParams {
1400
+ /**
1401
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
1402
+ * limit. The page is the page number and the limit is the number of items per
1403
+ * page. The cursor is used to paginate through the items. The cursor is not
1404
+ * required for the first page.
1405
+ */
1406
+ cursor?: string;
1407
+
1408
+ /**
1409
+ * Whether to filter by connected toolkits. If provided, only connected toolkits
1410
+ * will be returned.
1411
+ */
1412
+ is_connected?: boolean | null;
1413
+
1414
+ /**
1415
+ * Number of items per page, max allowed is 1000
1416
+ */
1417
+ limit?: number | null;
1418
+
1419
+ /**
1420
+ * Search query to filter toolkits by name, slug, or description
1421
+ */
1422
+ search?: string;
1423
+
1424
+ /**
1425
+ * Optional comma-separated list of toolkit slugs to filter by. If provided, only
1426
+ * these toolkits will be returned, overriding the session configuration.
1427
+ */
1428
+ toolkits?: Array<string> | null;
1429
+ }
1430
+
1431
+ export interface SessionToolsParams {}
1432
+
1433
+ Session.Files = Files;
1434
+
1435
+ export declare namespace Session {
1436
+ export {
1437
+ type SessionCreateResponse as SessionCreateResponse,
1438
+ type SessionRetrieveResponse as SessionRetrieveResponse,
1439
+ type SessionExecuteResponse as SessionExecuteResponse,
1440
+ type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
1441
+ type SessionLinkResponse as SessionLinkResponse,
1442
+ type SessionSearchResponse as SessionSearchResponse,
1443
+ type SessionToolkitsResponse as SessionToolkitsResponse,
1444
+ type SessionToolsResponse as SessionToolsResponse,
1445
+ type SessionCreateParams as SessionCreateParams,
1446
+ type SessionExecuteParams as SessionExecuteParams,
1447
+ type SessionExecuteMetaParams as SessionExecuteMetaParams,
1448
+ type SessionLinkParams as SessionLinkParams,
1449
+ type SessionSearchParams as SessionSearchParams,
1450
+ type SessionToolkitsParams as SessionToolkitsParams,
1451
+ type SessionToolsParams as SessionToolsParams,
1452
+ };
1453
+
1454
+ export {
1455
+ Files as Files,
1456
+ type FileListResponse as FileListResponse,
1457
+ type FileDeleteResponse as FileDeleteResponse,
1458
+ type FileCreateDownloadURLResponse as FileCreateDownloadURLResponse,
1459
+ type FileCreateUploadURLResponse as FileCreateUploadURLResponse,
1460
+ type FileListParams as FileListParams,
1461
+ type FileDeleteParams as FileDeleteParams,
1462
+ type FileCreateDownloadURLParams as FileCreateDownloadURLParams,
1463
+ type FileCreateUploadURLParams as FileCreateUploadURLParams,
1464
+ };
1465
+ }