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

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