@composio/client 0.1.0-alpha.5 → 0.1.0-alpha.50

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 (576) hide show
  1. package/CHANGELOG.md +685 -0
  2. package/README.md +22 -35
  3. package/api-promise.js +2 -15
  4. package/api-promise.js.map +1 -1
  5. package/client.d.mts +44 -39
  6. package/client.d.mts.map +1 -1
  7. package/client.d.ts +44 -39
  8. package/client.d.ts.map +1 -1
  9. package/client.js +89 -96
  10. package/client.js.map +1 -1
  11. package/client.mjs +71 -55
  12. package/client.mjs.map +1 -1
  13. package/core/api-promise.d.mts +0 -1
  14. package/core/api-promise.d.mts.map +1 -1
  15. package/core/api-promise.d.ts +0 -1
  16. package/core/api-promise.d.ts.map +1 -1
  17. package/core/api-promise.js +4 -14
  18. package/core/api-promise.js.map +1 -1
  19. package/core/api-promise.mjs +1 -11
  20. package/core/api-promise.mjs.map +1 -1
  21. package/core/error.d.mts +0 -1
  22. package/core/error.d.mts.map +1 -1
  23. package/core/error.d.ts +0 -1
  24. package/core/error.d.ts.map +1 -1
  25. package/core/error.js.map +1 -1
  26. package/core/error.mjs.map +1 -1
  27. package/core/resource.d.mts +1 -1
  28. package/core/resource.d.mts.map +1 -1
  29. package/core/resource.d.ts +1 -1
  30. package/core/resource.d.ts.map +1 -1
  31. package/core/resource.js.map +1 -1
  32. package/core/resource.mjs.map +1 -1
  33. package/error.js +2 -15
  34. package/error.js.map +1 -1
  35. package/internal/builtin-types.d.mts +0 -2
  36. package/internal/builtin-types.d.mts.map +1 -1
  37. package/internal/builtin-types.d.ts +0 -2
  38. package/internal/builtin-types.d.ts.map +1 -1
  39. package/internal/detect-platform.js +3 -3
  40. package/internal/detect-platform.js.map +1 -1
  41. package/internal/detect-platform.mjs +3 -3
  42. package/internal/detect-platform.mjs.map +1 -1
  43. package/internal/errors.d.mts.map +1 -1
  44. package/internal/errors.d.ts.map +1 -1
  45. package/internal/errors.js +2 -2
  46. package/internal/errors.js.map +1 -1
  47. package/internal/errors.mjs.map +1 -1
  48. package/internal/headers.d.mts +1 -2
  49. package/internal/headers.d.mts.map +1 -1
  50. package/internal/headers.d.ts +1 -2
  51. package/internal/headers.d.ts.map +1 -1
  52. package/internal/headers.js +7 -5
  53. package/internal/headers.js.map +1 -1
  54. package/internal/headers.mjs +7 -5
  55. package/internal/headers.mjs.map +1 -1
  56. package/internal/parse.d.mts +0 -1
  57. package/internal/parse.d.mts.map +1 -1
  58. package/internal/parse.d.ts +0 -1
  59. package/internal/parse.d.ts.map +1 -1
  60. package/internal/parse.js +1 -2
  61. package/internal/parse.js.map +1 -1
  62. package/internal/parse.mjs.map +1 -1
  63. package/internal/qs/formats.d.mts +1 -0
  64. package/internal/qs/formats.d.mts.map +1 -1
  65. package/internal/qs/formats.d.ts +1 -0
  66. package/internal/qs/formats.d.ts.map +1 -1
  67. package/internal/qs/formats.js +4 -2
  68. package/internal/qs/formats.js.map +1 -1
  69. package/internal/qs/formats.mjs +2 -1
  70. package/internal/qs/formats.mjs.map +1 -1
  71. package/internal/qs/stringify.d.mts.map +1 -1
  72. package/internal/qs/stringify.d.ts.map +1 -1
  73. package/internal/qs/stringify.js +16 -19
  74. package/internal/qs/stringify.js.map +1 -1
  75. package/internal/qs/stringify.mjs +17 -19
  76. package/internal/qs/stringify.mjs.map +1 -1
  77. package/internal/qs/utils.d.mts +1 -0
  78. package/internal/qs/utils.d.mts.map +1 -1
  79. package/internal/qs/utils.d.ts +1 -0
  80. package/internal/qs/utils.d.ts.map +1 -1
  81. package/internal/qs/utils.js +22 -21
  82. package/internal/qs/utils.js.map +1 -1
  83. package/internal/qs/utils.mjs +12 -12
  84. package/internal/qs/utils.mjs.map +1 -1
  85. package/internal/request-options.d.mts +43 -1
  86. package/internal/request-options.d.mts.map +1 -1
  87. package/internal/request-options.d.ts +43 -1
  88. package/internal/request-options.d.ts.map +1 -1
  89. package/internal/request-options.js.map +1 -1
  90. package/internal/request-options.mjs.map +1 -1
  91. package/internal/shim-types.d.mts +11 -22
  92. package/internal/shim-types.d.mts.map +1 -0
  93. package/internal/shim-types.d.ts +11 -22
  94. package/internal/shim-types.d.ts.map +1 -0
  95. package/internal/shim-types.js +4 -0
  96. package/internal/shim-types.js.map +1 -0
  97. package/{src/resources/org.ts → internal/shim-types.mjs} +2 -2
  98. package/internal/shim-types.mjs.map +1 -0
  99. package/internal/shims.d.mts +2 -2
  100. package/internal/shims.d.mts.map +1 -1
  101. package/internal/shims.d.ts +2 -2
  102. package/internal/shims.d.ts.map +1 -1
  103. package/internal/shims.js +5 -6
  104. package/internal/shims.js.map +1 -1
  105. package/internal/shims.mjs.map +1 -1
  106. package/internal/to-file.d.mts +1 -2
  107. package/internal/to-file.d.mts.map +1 -1
  108. package/internal/to-file.d.ts +1 -2
  109. package/internal/to-file.d.ts.map +1 -1
  110. package/internal/to-file.js +5 -5
  111. package/internal/to-file.js.map +1 -1
  112. package/internal/to-file.mjs +4 -3
  113. package/internal/to-file.mjs.map +1 -1
  114. package/internal/tslib.js +81 -0
  115. package/internal/tslib.mjs +17 -0
  116. package/internal/types.d.mts +8 -7
  117. package/internal/types.d.mts.map +1 -1
  118. package/internal/types.d.ts +8 -7
  119. package/internal/types.d.ts.map +1 -1
  120. package/internal/uploads.d.mts +1 -3
  121. package/internal/uploads.d.mts.map +1 -1
  122. package/internal/uploads.d.ts +1 -3
  123. package/internal/uploads.d.ts.map +1 -1
  124. package/internal/uploads.js +17 -7
  125. package/internal/uploads.js.map +1 -1
  126. package/internal/uploads.mjs +13 -4
  127. package/internal/uploads.mjs.map +1 -1
  128. package/internal/utils/base64.d.mts.map +1 -1
  129. package/internal/utils/base64.d.ts.map +1 -1
  130. package/internal/utils/base64.js +12 -7
  131. package/internal/utils/base64.js.map +1 -1
  132. package/internal/utils/base64.mjs +12 -7
  133. package/internal/utils/base64.mjs.map +1 -1
  134. package/internal/utils/bytes.d.mts +4 -0
  135. package/internal/utils/bytes.d.mts.map +1 -0
  136. package/internal/utils/bytes.d.ts +4 -0
  137. package/internal/utils/bytes.d.ts.map +1 -0
  138. package/internal/utils/bytes.js +31 -0
  139. package/internal/utils/bytes.js.map +1 -0
  140. package/internal/utils/bytes.mjs +26 -0
  141. package/internal/utils/bytes.mjs.map +1 -0
  142. package/internal/utils/env.d.mts.map +1 -1
  143. package/internal/utils/env.d.ts.map +1 -1
  144. package/internal/utils/env.js.map +1 -1
  145. package/internal/utils/env.mjs.map +1 -1
  146. package/internal/utils/log.d.mts +0 -1
  147. package/internal/utils/log.d.mts.map +1 -1
  148. package/internal/utils/log.d.ts +0 -1
  149. package/internal/utils/log.d.ts.map +1 -1
  150. package/internal/utils/log.js +3 -3
  151. package/internal/utils/log.js.map +1 -1
  152. package/internal/utils/log.mjs +1 -1
  153. package/internal/utils/log.mjs.map +1 -1
  154. package/internal/utils/path.d.mts.map +1 -1
  155. package/internal/utils/path.d.ts.map +1 -1
  156. package/internal/utils/path.js +28 -7
  157. package/internal/utils/path.js.map +1 -1
  158. package/internal/utils/path.mjs +27 -6
  159. package/internal/utils/path.mjs.map +1 -1
  160. package/internal/utils/sleep.d.mts.map +1 -1
  161. package/internal/utils/sleep.d.ts.map +1 -1
  162. package/internal/utils/uuid.d.mts +1 -1
  163. package/internal/utils/uuid.d.mts.map +1 -1
  164. package/internal/utils/uuid.d.ts +1 -1
  165. package/internal/utils/uuid.d.ts.map +1 -1
  166. package/internal/utils/uuid.js +1 -2
  167. package/internal/utils/uuid.js.map +1 -1
  168. package/internal/utils/uuid.mjs +1 -2
  169. package/internal/utils/uuid.mjs.map +1 -1
  170. package/internal/utils/values.d.mts +2 -0
  171. package/internal/utils/values.d.mts.map +1 -1
  172. package/internal/utils/values.d.ts +2 -0
  173. package/internal/utils/values.d.ts.map +1 -1
  174. package/internal/utils/values.js +11 -8
  175. package/internal/utils/values.js.map +1 -1
  176. package/internal/utils/values.mjs +5 -3
  177. package/internal/utils/values.mjs.map +1 -1
  178. package/internal/utils.js +7 -20
  179. package/internal/utils.js.map +1 -1
  180. package/package.json +6 -14
  181. package/resource.js +2 -15
  182. package/resource.js.map +1 -1
  183. package/resources/auth-configs.d.mts +453 -54
  184. package/resources/auth-configs.d.mts.map +1 -1
  185. package/resources/auth-configs.d.ts +453 -54
  186. package/resources/auth-configs.d.ts.map +1 -1
  187. package/resources/auth-configs.js +64 -0
  188. package/resources/auth-configs.js.map +1 -1
  189. package/resources/auth-configs.mjs +64 -0
  190. package/resources/auth-configs.mjs.map +1 -1
  191. package/resources/cli.d.mts +37 -65
  192. package/resources/cli.d.mts.map +1 -1
  193. package/resources/cli.d.ts +37 -65
  194. package/resources/cli.d.ts.map +1 -1
  195. package/resources/cli.js +13 -4
  196. package/resources/cli.js.map +1 -1
  197. package/resources/cli.mjs +13 -4
  198. package/resources/cli.mjs.map +1 -1
  199. package/resources/connected-accounts.d.mts +8726 -233
  200. package/resources/connected-accounts.d.mts.map +1 -1
  201. package/resources/connected-accounts.d.ts +8726 -233
  202. package/resources/connected-accounts.d.ts.map +1 -1
  203. package/resources/connected-accounts.js +77 -2
  204. package/resources/connected-accounts.js.map +1 -1
  205. package/resources/connected-accounts.mjs +77 -2
  206. package/resources/connected-accounts.mjs.map +1 -1
  207. package/resources/files.d.mts +218 -0
  208. package/resources/files.d.mts.map +1 -0
  209. package/resources/files.d.ts +218 -0
  210. package/resources/files.d.ts.map +1 -0
  211. package/resources/files.js +39 -0
  212. package/resources/files.js.map +1 -0
  213. package/resources/files.mjs +35 -0
  214. package/resources/files.mjs.map +1 -0
  215. package/resources/index.d.mts +11 -11
  216. package/resources/index.d.mts.map +1 -1
  217. package/resources/index.d.ts +11 -11
  218. package/resources/index.d.ts.map +1 -1
  219. package/resources/index.js +9 -9
  220. package/resources/index.js.map +1 -1
  221. package/resources/index.mjs +4 -4
  222. package/resources/index.mjs.map +1 -1
  223. package/resources/link.d.mts +2017 -0
  224. package/resources/link.d.mts.map +1 -0
  225. package/resources/link.d.ts +2017 -0
  226. package/resources/link.d.ts.map +1 -0
  227. package/resources/link.js +16 -0
  228. package/resources/link.js.map +1 -0
  229. package/resources/link.mjs +12 -0
  230. package/resources/link.mjs.map +1 -0
  231. package/resources/mcp/custom.d.mts +102 -0
  232. package/resources/mcp/custom.d.mts.map +1 -0
  233. package/resources/mcp/custom.d.ts +102 -0
  234. package/resources/mcp/custom.d.ts.map +1 -0
  235. package/resources/mcp/custom.js +26 -0
  236. package/resources/mcp/custom.js.map +1 -0
  237. package/resources/mcp/custom.mjs +22 -0
  238. package/resources/mcp/custom.mjs.map +1 -0
  239. package/resources/mcp/generate.d.mts +59 -0
  240. package/resources/mcp/generate.d.mts.map +1 -0
  241. package/resources/mcp/generate.d.ts +59 -0
  242. package/resources/mcp/generate.d.ts.map +1 -0
  243. package/resources/mcp/generate.js +26 -0
  244. package/resources/mcp/generate.js.map +1 -0
  245. package/resources/mcp/generate.mjs +22 -0
  246. package/resources/mcp/generate.mjs.map +1 -0
  247. package/resources/mcp/index.d.mts +3 -2
  248. package/resources/mcp/index.d.mts.map +1 -1
  249. package/resources/mcp/index.d.ts +3 -2
  250. package/resources/mcp/index.d.ts.map +1 -1
  251. package/resources/mcp/index.js +5 -3
  252. package/resources/mcp/index.js.map +1 -1
  253. package/resources/mcp/index.mjs +2 -1
  254. package/resources/mcp/index.mjs.map +1 -1
  255. package/resources/mcp/mcp.d.mts +447 -175
  256. package/resources/mcp/mcp.d.mts.map +1 -1
  257. package/resources/mcp/mcp.d.ts +447 -175
  258. package/resources/mcp/mcp.d.ts.map +1 -1
  259. package/resources/mcp/mcp.js +89 -39
  260. package/resources/mcp/mcp.js.map +1 -1
  261. package/resources/mcp/mcp.mjs +88 -16
  262. package/resources/mcp/mcp.mjs.map +1 -1
  263. package/resources/mcp.js +2 -15
  264. package/resources/mcp.js.map +1 -1
  265. package/resources/migration.d.mts +32 -0
  266. package/resources/migration.d.mts.map +1 -0
  267. package/resources/migration.d.ts +32 -0
  268. package/resources/migration.d.ts.map +1 -0
  269. package/resources/migration.js +17 -0
  270. package/resources/migration.js.map +1 -0
  271. package/resources/migration.mjs +13 -0
  272. package/resources/migration.mjs.map +1 -0
  273. package/resources/tool-router/index.d.mts +3 -0
  274. package/resources/tool-router/index.d.mts.map +1 -0
  275. package/resources/tool-router/index.d.ts +3 -0
  276. package/resources/tool-router/index.d.ts.map +1 -0
  277. package/resources/tool-router/index.js +9 -0
  278. package/resources/tool-router/index.js.map +1 -0
  279. package/resources/tool-router/index.mjs +4 -0
  280. package/resources/tool-router/index.mjs.map +1 -0
  281. package/resources/tool-router/session.d.mts +646 -0
  282. package/resources/tool-router/session.d.mts.map +1 -0
  283. package/resources/tool-router/session.d.ts +646 -0
  284. package/resources/tool-router/session.d.ts.map +1 -0
  285. package/resources/tool-router/session.js +107 -0
  286. package/resources/tool-router/session.js.map +1 -0
  287. package/resources/tool-router/session.mjs +103 -0
  288. package/resources/tool-router/session.mjs.map +1 -0
  289. package/resources/tool-router/tool-router.d.mts +91 -0
  290. package/resources/tool-router/tool-router.d.mts.map +1 -0
  291. package/resources/tool-router/tool-router.d.ts +91 -0
  292. package/resources/tool-router/tool-router.d.ts.map +1 -0
  293. package/resources/tool-router/tool-router.js +46 -0
  294. package/resources/tool-router/tool-router.js.map +1 -0
  295. package/resources/tool-router/tool-router.mjs +41 -0
  296. package/resources/tool-router/tool-router.mjs.map +1 -0
  297. package/resources/tool-router.d.mts +2 -0
  298. package/resources/tool-router.d.mts.map +1 -0
  299. package/resources/tool-router.d.ts +2 -0
  300. package/resources/tool-router.d.ts.map +1 -0
  301. package/resources/tool-router.js +6 -0
  302. package/resources/tool-router.js.map +1 -0
  303. package/resources/{org.mjs → tool-router.mjs} +2 -2
  304. package/resources/tool-router.mjs.map +1 -0
  305. package/resources/toolkits.d.mts +288 -6
  306. package/resources/toolkits.d.mts.map +1 -1
  307. package/resources/toolkits.d.ts +288 -6
  308. package/resources/toolkits.d.ts.map +1 -1
  309. package/resources/toolkits.js +20 -2
  310. package/resources/toolkits.js.map +1 -1
  311. package/resources/toolkits.mjs +20 -2
  312. package/resources/toolkits.mjs.map +1 -1
  313. package/resources/tools.d.mts +1209 -41
  314. package/resources/tools.d.mts.map +1 -1
  315. package/resources/tools.d.ts +1209 -41
  316. package/resources/tools.d.ts.map +1 -1
  317. package/resources/tools.js +73 -6
  318. package/resources/tools.js.map +1 -1
  319. package/resources/tools.mjs +73 -6
  320. package/resources/tools.mjs.map +1 -1
  321. package/resources/trigger-instances/index.d.mts +2 -2
  322. package/resources/trigger-instances/index.d.mts.map +1 -1
  323. package/resources/trigger-instances/index.d.ts +2 -2
  324. package/resources/trigger-instances/index.d.ts.map +1 -1
  325. package/resources/trigger-instances/index.js +3 -3
  326. package/resources/trigger-instances/index.js.map +1 -1
  327. package/resources/trigger-instances/index.mjs +1 -1
  328. package/resources/trigger-instances/index.mjs.map +1 -1
  329. package/resources/trigger-instances/manage.d.mts +43 -0
  330. package/resources/trigger-instances/manage.d.mts.map +1 -0
  331. package/resources/trigger-instances/manage.d.ts +43 -0
  332. package/resources/trigger-instances/manage.d.ts.map +1 -0
  333. package/resources/trigger-instances/manage.js +33 -0
  334. package/resources/trigger-instances/manage.js.map +1 -0
  335. package/resources/trigger-instances/manage.mjs +29 -0
  336. package/resources/trigger-instances/manage.mjs.map +1 -0
  337. package/resources/trigger-instances/trigger-instances.d.mts +163 -40
  338. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  339. package/resources/trigger-instances/trigger-instances.d.ts +163 -40
  340. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  341. package/resources/trigger-instances/trigger-instances.js +20 -35
  342. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  343. package/resources/trigger-instances/trigger-instances.mjs +19 -12
  344. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  345. package/resources/trigger-instances.js +2 -15
  346. package/resources/trigger-instances.js.map +1 -1
  347. package/resources/triggers-types.d.mts +145 -12
  348. package/resources/triggers-types.d.mts.map +1 -1
  349. package/resources/triggers-types.d.ts +145 -12
  350. package/resources/triggers-types.d.ts.map +1 -1
  351. package/resources/triggers-types.js +14 -2
  352. package/resources/triggers-types.js.map +1 -1
  353. package/resources/triggers-types.mjs +14 -2
  354. package/resources/triggers-types.mjs.map +1 -1
  355. package/resources.js +2 -15
  356. package/resources.js.map +1 -1
  357. package/src/client.ts +145 -114
  358. package/src/core/resource.ts +1 -1
  359. package/src/internal/detect-platform.ts +3 -3
  360. package/src/internal/headers.ts +9 -8
  361. package/src/internal/qs/formats.ts +2 -1
  362. package/src/internal/qs/stringify.ts +17 -20
  363. package/src/internal/qs/utils.ts +14 -14
  364. package/src/internal/request-options.ts +54 -0
  365. package/src/internal/shim-types.ts +26 -0
  366. package/src/internal/shims.ts +2 -2
  367. package/src/internal/to-file.ts +5 -3
  368. package/src/internal/types.ts +9 -6
  369. package/src/internal/uploads.ts +17 -5
  370. package/src/internal/utils/base64.ts +13 -10
  371. package/src/internal/utils/bytes.ts +32 -0
  372. package/src/internal/utils/log.ts +1 -1
  373. package/src/internal/utils/path.ts +33 -8
  374. package/src/internal/utils/uuid.ts +1 -3
  375. package/src/internal/utils/values.ts +6 -3
  376. package/src/resources/auth-configs.ts +507 -67
  377. package/src/resources/cli.ts +39 -83
  378. package/src/resources/connected-accounts.ts +16471 -459
  379. package/src/resources/files.ts +281 -0
  380. package/src/resources/index.ts +24 -26
  381. package/src/resources/link.ts +3817 -0
  382. package/src/resources/mcp/custom.ts +122 -0
  383. package/src/resources/mcp/generate.ts +71 -0
  384. package/src/resources/mcp/index.ts +3 -3
  385. package/src/resources/mcp/mcp.ts +484 -200
  386. package/src/resources/migration.ts +46 -0
  387. package/src/resources/tool-router/index.ts +21 -0
  388. package/src/resources/tool-router/session.ts +792 -0
  389. package/src/resources/tool-router/tool-router.ts +141 -0
  390. package/src/resources/{org/project.ts → tool-router.ts} +1 -1
  391. package/src/resources/toolkits.ts +328 -8
  392. package/src/resources/tools.ts +1880 -60
  393. package/src/resources/trigger-instances/index.ts +5 -9
  394. package/src/resources/trigger-instances/manage.ts +63 -0
  395. package/src/resources/trigger-instances/trigger-instances.ts +176 -64
  396. package/src/resources/triggers-types.ts +149 -14
  397. package/src/version.ts +1 -1
  398. package/uploads.js +2 -15
  399. package/uploads.js.map +1 -1
  400. package/version.d.mts +1 -1
  401. package/version.d.mts.map +1 -1
  402. package/version.d.ts +1 -1
  403. package/version.d.ts.map +1 -1
  404. package/version.js +1 -1
  405. package/version.js.map +1 -1
  406. package/version.mjs +1 -1
  407. package/version.mjs.map +1 -1
  408. package/internal/shims/crypto.d.mts +0 -13
  409. package/internal/shims/crypto.d.mts.map +0 -1
  410. package/internal/shims/crypto.d.ts +0 -13
  411. package/internal/shims/crypto.d.ts.map +0 -1
  412. package/internal/shims/crypto.js +0 -13
  413. package/internal/shims/crypto.js.map +0 -1
  414. package/internal/shims/crypto.mjs +0 -9
  415. package/internal/shims/crypto.mjs.map +0 -1
  416. package/internal/shims/file.d.mts +0 -23
  417. package/internal/shims/file.d.mts.map +0 -1
  418. package/internal/shims/file.d.ts +0 -23
  419. package/internal/shims/file.d.ts.map +0 -1
  420. package/internal/shims/file.js +0 -16
  421. package/internal/shims/file.js.map +0 -1
  422. package/internal/shims/file.mjs +0 -12
  423. package/internal/shims/file.mjs.map +0 -1
  424. package/internal/shims/getBuiltinModule.d.mts +0 -11
  425. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  426. package/internal/shims/getBuiltinModule.d.ts +0 -11
  427. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  428. package/internal/shims/getBuiltinModule.js +0 -71
  429. package/internal/shims/getBuiltinModule.js.map +0 -1
  430. package/internal/shims/getBuiltinModule.mjs +0 -67
  431. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  432. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  433. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  434. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  435. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  436. package/internal/shims/nullGetBuiltinModule.js +0 -5
  437. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  438. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  439. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  440. package/resources/action-execution.d.mts +0 -155
  441. package/resources/action-execution.d.mts.map +0 -1
  442. package/resources/action-execution.d.ts +0 -155
  443. package/resources/action-execution.d.ts.map +0 -1
  444. package/resources/action-execution.js +0 -19
  445. package/resources/action-execution.js.map +0 -1
  446. package/resources/action-execution.mjs +0 -15
  447. package/resources/action-execution.mjs.map +0 -1
  448. package/resources/mcp/command.d.mts +0 -34
  449. package/resources/mcp/command.d.mts.map +0 -1
  450. package/resources/mcp/command.d.ts +0 -34
  451. package/resources/mcp/command.d.ts.map +0 -1
  452. package/resources/mcp/command.js +0 -12
  453. package/resources/mcp/command.js.map +0 -1
  454. package/resources/mcp/command.mjs +0 -8
  455. package/resources/mcp/command.mjs.map +0 -1
  456. package/resources/org/api-key.d.mts +0 -17
  457. package/resources/org/api-key.d.mts.map +0 -1
  458. package/resources/org/api-key.d.ts +0 -17
  459. package/resources/org/api-key.d.ts.map +0 -1
  460. package/resources/org/api-key.js +0 -15
  461. package/resources/org/api-key.js.map +0 -1
  462. package/resources/org/api-key.mjs +0 -11
  463. package/resources/org/api-key.mjs.map +0 -1
  464. package/resources/org/index.d.mts +0 -4
  465. package/resources/org/index.d.mts.map +0 -1
  466. package/resources/org/index.d.ts +0 -4
  467. package/resources/org/index.d.ts.map +0 -1
  468. package/resources/org/index.js +0 -11
  469. package/resources/org/index.js.map +0 -1
  470. package/resources/org/index.mjs +0 -5
  471. package/resources/org/index.mjs.map +0 -1
  472. package/resources/org/org.d.mts +0 -14
  473. package/resources/org/org.d.mts.map +0 -1
  474. package/resources/org/org.d.ts +0 -14
  475. package/resources/org/org.d.ts.map +0 -1
  476. package/resources/org/org.js +0 -43
  477. package/resources/org/org.js.map +0 -1
  478. package/resources/org/org.mjs +0 -16
  479. package/resources/org/org.mjs.map +0 -1
  480. package/resources/org/project/api-keys.d.mts +0 -109
  481. package/resources/org/project/api-keys.d.mts.map +0 -1
  482. package/resources/org/project/api-keys.d.ts +0 -109
  483. package/resources/org/project/api-keys.d.ts.map +0 -1
  484. package/resources/org/project/api-keys.js +0 -23
  485. package/resources/org/project/api-keys.js.map +0 -1
  486. package/resources/org/project/api-keys.mjs +0 -19
  487. package/resources/org/project/api-keys.mjs.map +0 -1
  488. package/resources/org/project/index.d.mts +0 -5
  489. package/resources/org/project/index.d.mts.map +0 -1
  490. package/resources/org/project/index.d.ts +0 -5
  491. package/resources/org/project/index.d.ts.map +0 -1
  492. package/resources/org/project/index.js +0 -13
  493. package/resources/org/project/index.js.map +0 -1
  494. package/resources/org/project/index.mjs +0 -6
  495. package/resources/org/project/index.mjs.map +0 -1
  496. package/resources/org/project/project.d.mts +0 -90
  497. package/resources/org/project/project.d.mts.map +0 -1
  498. package/resources/org/project/project.d.ts +0 -90
  499. package/resources/org/project/project.d.ts.map +0 -1
  500. package/resources/org/project/project.js +0 -60
  501. package/resources/org/project/project.js.map +0 -1
  502. package/resources/org/project/project.mjs +0 -33
  503. package/resources/org/project/project.mjs.map +0 -1
  504. package/resources/org/project/trigger.d.mts +0 -51
  505. package/resources/org/project/trigger.d.mts.map +0 -1
  506. package/resources/org/project/trigger.d.ts +0 -51
  507. package/resources/org/project/trigger.d.ts.map +0 -1
  508. package/resources/org/project/trigger.js +0 -16
  509. package/resources/org/project/trigger.js.map +0 -1
  510. package/resources/org/project/trigger.mjs +0 -12
  511. package/resources/org/project/trigger.mjs.map +0 -1
  512. package/resources/org/project/webhook.d.mts +0 -92
  513. package/resources/org/project/webhook.d.mts.map +0 -1
  514. package/resources/org/project/webhook.d.ts +0 -92
  515. package/resources/org/project/webhook.d.ts.map +0 -1
  516. package/resources/org/project/webhook.js +0 -24
  517. package/resources/org/project/webhook.js.map +0 -1
  518. package/resources/org/project/webhook.mjs +0 -20
  519. package/resources/org/project/webhook.mjs.map +0 -1
  520. package/resources/org/project.d.mts +0 -2
  521. package/resources/org/project.d.mts.map +0 -1
  522. package/resources/org/project.d.ts +0 -2
  523. package/resources/org/project.d.ts.map +0 -1
  524. package/resources/org/project.js +0 -19
  525. package/resources/org/project.js.map +0 -1
  526. package/resources/org/project.mjs +0 -3
  527. package/resources/org/project.mjs.map +0 -1
  528. package/resources/org.d.mts +0 -2
  529. package/resources/org.d.mts.map +0 -1
  530. package/resources/org.d.ts +0 -2
  531. package/resources/org.d.ts.map +0 -1
  532. package/resources/org.js +0 -19
  533. package/resources/org.js.map +0 -1
  534. package/resources/org.mjs.map +0 -1
  535. package/resources/team-members.d.mts +0 -57
  536. package/resources/team-members.d.mts.map +0 -1
  537. package/resources/team-members.d.ts +0 -57
  538. package/resources/team-members.d.ts.map +0 -1
  539. package/resources/team-members.js +0 -22
  540. package/resources/team-members.js.map +0 -1
  541. package/resources/team-members.mjs +0 -18
  542. package/resources/team-members.mjs.map +0 -1
  543. package/resources/trigger-instances/handle.d.mts +0 -25
  544. package/resources/trigger-instances/handle.d.mts.map +0 -1
  545. package/resources/trigger-instances/handle.d.ts +0 -25
  546. package/resources/trigger-instances/handle.d.ts.map +0 -1
  547. package/resources/trigger-instances/handle.js +0 -18
  548. package/resources/trigger-instances/handle.js.map +0 -1
  549. package/resources/trigger-instances/handle.mjs +0 -14
  550. package/resources/trigger-instances/handle.mjs.map +0 -1
  551. package/resources/trigger.d.mts +0 -73
  552. package/resources/trigger.d.mts.map +0 -1
  553. package/resources/trigger.d.ts +0 -73
  554. package/resources/trigger.d.ts.map +0 -1
  555. package/resources/trigger.js +0 -12
  556. package/resources/trigger.js.map +0 -1
  557. package/resources/trigger.mjs +0 -8
  558. package/resources/trigger.mjs.map +0 -1
  559. package/src/internal/shim-types.d.ts +0 -28
  560. package/src/internal/shims/crypto.ts +0 -18
  561. package/src/internal/shims/file.ts +0 -32
  562. package/src/internal/shims/getBuiltinModule.ts +0 -66
  563. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  564. package/src/resources/action-execution.ts +0 -244
  565. package/src/resources/mcp/command.ts +0 -47
  566. package/src/resources/org/api-key.ts +0 -30
  567. package/src/resources/org/index.ts +0 -12
  568. package/src/resources/org/org.ts +0 -39
  569. package/src/resources/org/project/api-keys.ts +0 -156
  570. package/src/resources/org/project/index.ts +0 -35
  571. package/src/resources/org/project/project.ts +0 -206
  572. package/src/resources/org/project/trigger.ts +0 -95
  573. package/src/resources/org/project/webhook.ts +0 -131
  574. package/src/resources/team-members.ts +0 -111
  575. package/src/resources/trigger-instances/handle.ts +0 -45
  576. package/src/resources/trigger.ts +0 -108
@@ -0,0 +1,646 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
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
+ * Retrieves a cursor-paginated list of toolkits available in the tool router
76
+ * session. Includes toolkit metadata, composio-managed auth schemes, and connected
77
+ * accounts if available. Optionally filter by specific toolkit slugs.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * const response = await client.toolRouter.session.toolkits(
82
+ * 'trs_123456789',
83
+ * );
84
+ * ```
85
+ */
86
+ toolkits(sessionID: string, query?: SessionToolkitsParams | null | undefined, options?: RequestOptions): APIPromise<SessionToolkitsResponse>;
87
+ }
88
+ export interface SessionCreateResponse {
89
+ /**
90
+ * The session configuration including user, toolkits, and overrides
91
+ */
92
+ config: SessionCreateResponse.Config;
93
+ mcp: SessionCreateResponse.Mcp;
94
+ /**
95
+ * The identifier of the session
96
+ */
97
+ session_id: string;
98
+ /**
99
+ * List of available tools in this session
100
+ */
101
+ tool_router_tools: Array<'COMPOSIO_SEARCH_TOOLS' | 'COMPOSIO_MULTI_EXECUTE_TOOL' | 'COMPOSIO_MANAGE_CONNECTIONS' | 'COMPOSIO_REMOTE_WORKBENCH' | 'COMPOSIO_REMOTE_BASH_TOOL' | 'COMPOSIO_GET_TOOL_SCHEMAS'>;
102
+ }
103
+ export declare namespace SessionCreateResponse {
104
+ /**
105
+ * The session configuration including user, toolkits, and overrides
106
+ */
107
+ interface Config {
108
+ /**
109
+ * User identifier for this session
110
+ */
111
+ user_id: string;
112
+ /**
113
+ * Auth config overrides per toolkit
114
+ */
115
+ auth_configs?: {
116
+ [key: string]: string;
117
+ };
118
+ /**
119
+ * Connected account overrides per toolkit
120
+ */
121
+ connected_accounts?: {
122
+ [key: string]: string;
123
+ };
124
+ /**
125
+ * Manage connections configuration
126
+ */
127
+ manage_connections?: Config.ManageConnections;
128
+ /**
129
+ * MCP tool annotation hints for filtering tools. readOnlyHint: tool does not
130
+ * modify environment. destructiveHint: tool may perform destructive updates.
131
+ * idempotentHint: tool may interact with external entities.
132
+ */
133
+ tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
134
+ /**
135
+ * Toolkit configuration - either enabled list or disabled list
136
+ */
137
+ toolkits?: Config.Enabled | Config.Disabled;
138
+ /**
139
+ * Tool-level configuration per toolkit
140
+ */
141
+ tools?: {
142
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
143
+ };
144
+ /**
145
+ * Workbench configuration
146
+ */
147
+ workbench?: Config.Workbench;
148
+ }
149
+ namespace Config {
150
+ /**
151
+ * Manage connections configuration
152
+ */
153
+ interface ManageConnections {
154
+ /**
155
+ * Custom callback URL for connected account auth flows
156
+ */
157
+ callback_url?: string;
158
+ /**
159
+ * Whether to enable the connection manager for automatic connection handling
160
+ */
161
+ enabled?: boolean;
162
+ }
163
+ interface Enabled {
164
+ enabled: Array<string>;
165
+ }
166
+ interface Disabled {
167
+ disabled: Array<string>;
168
+ }
169
+ interface Enabled {
170
+ enabled: Array<string>;
171
+ }
172
+ interface Disabled {
173
+ disabled: Array<string>;
174
+ }
175
+ interface Tags {
176
+ tags: Array<string>;
177
+ }
178
+ /**
179
+ * Workbench configuration
180
+ */
181
+ interface Workbench {
182
+ /**
183
+ * Character threshold after which tool execution response are saved to a file in
184
+ * workbench. Default is 20k.
185
+ */
186
+ auto_offload_threshold?: number;
187
+ /**
188
+ * Whether proxy execution is enabled in the workbench
189
+ */
190
+ proxy_execution_enabled?: boolean;
191
+ }
192
+ }
193
+ interface Mcp {
194
+ /**
195
+ * The type of the MCP server. Can be http
196
+ */
197
+ type: 'http';
198
+ /**
199
+ * The URL of the MCP server
200
+ */
201
+ url: string;
202
+ }
203
+ }
204
+ export interface SessionRetrieveResponse {
205
+ /**
206
+ * The session configuration including user, toolkits, and overrides
207
+ */
208
+ config: SessionRetrieveResponse.Config;
209
+ mcp: SessionRetrieveResponse.Mcp;
210
+ /**
211
+ * The identifier of the session
212
+ */
213
+ session_id: string;
214
+ /**
215
+ * List of available tools in this session
216
+ */
217
+ tool_router_tools: Array<'COMPOSIO_SEARCH_TOOLS' | 'COMPOSIO_MULTI_EXECUTE_TOOL' | 'COMPOSIO_MANAGE_CONNECTIONS' | 'COMPOSIO_REMOTE_WORKBENCH' | 'COMPOSIO_REMOTE_BASH_TOOL' | 'COMPOSIO_GET_TOOL_SCHEMAS'>;
218
+ }
219
+ export declare namespace SessionRetrieveResponse {
220
+ /**
221
+ * The session configuration including user, toolkits, and overrides
222
+ */
223
+ interface Config {
224
+ /**
225
+ * User identifier for this session
226
+ */
227
+ user_id: string;
228
+ /**
229
+ * Auth config overrides per toolkit
230
+ */
231
+ auth_configs?: {
232
+ [key: string]: string;
233
+ };
234
+ /**
235
+ * Connected account overrides per toolkit
236
+ */
237
+ connected_accounts?: {
238
+ [key: string]: string;
239
+ };
240
+ /**
241
+ * Manage connections configuration
242
+ */
243
+ manage_connections?: Config.ManageConnections;
244
+ /**
245
+ * MCP tool annotation hints for filtering tools. readOnlyHint: tool does not
246
+ * modify environment. destructiveHint: tool may perform destructive updates.
247
+ * idempotentHint: tool may interact with external entities.
248
+ */
249
+ tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
250
+ /**
251
+ * Toolkit configuration - either enabled list or disabled list
252
+ */
253
+ toolkits?: Config.Enabled | Config.Disabled;
254
+ /**
255
+ * Tool-level configuration per toolkit
256
+ */
257
+ tools?: {
258
+ [key: string]: Config.Enabled | Config.Disabled | Config.Tags;
259
+ };
260
+ /**
261
+ * Workbench configuration
262
+ */
263
+ workbench?: Config.Workbench;
264
+ }
265
+ namespace Config {
266
+ /**
267
+ * Manage connections configuration
268
+ */
269
+ interface ManageConnections {
270
+ /**
271
+ * Custom callback URL for connected account auth flows
272
+ */
273
+ callback_url?: string;
274
+ /**
275
+ * Whether to enable the connection manager for automatic connection handling
276
+ */
277
+ enabled?: boolean;
278
+ }
279
+ interface Enabled {
280
+ enabled: Array<string>;
281
+ }
282
+ interface Disabled {
283
+ disabled: Array<string>;
284
+ }
285
+ interface Enabled {
286
+ enabled: Array<string>;
287
+ }
288
+ interface Disabled {
289
+ disabled: Array<string>;
290
+ }
291
+ interface Tags {
292
+ tags: Array<string>;
293
+ }
294
+ /**
295
+ * Workbench configuration
296
+ */
297
+ interface Workbench {
298
+ /**
299
+ * Character threshold after which tool execution response are saved to a file in
300
+ * workbench. Default is 20k.
301
+ */
302
+ auto_offload_threshold?: number;
303
+ /**
304
+ * Whether proxy execution is enabled in the workbench
305
+ */
306
+ proxy_execution_enabled?: boolean;
307
+ }
308
+ }
309
+ interface Mcp {
310
+ /**
311
+ * The type of the MCP server. Can be http
312
+ */
313
+ type: 'http';
314
+ /**
315
+ * The URL of the MCP server
316
+ */
317
+ url: string;
318
+ }
319
+ }
320
+ export interface SessionExecuteResponse {
321
+ /**
322
+ * The data returned by the tool execution
323
+ */
324
+ data: {
325
+ [key: string]: unknown;
326
+ };
327
+ /**
328
+ * Error message if the execution failed, null otherwise
329
+ */
330
+ error: string | null;
331
+ /**
332
+ * Unique identifier for the execution log
333
+ */
334
+ log_id: string;
335
+ }
336
+ export interface SessionExecuteMetaResponse {
337
+ /**
338
+ * The data returned by the tool execution
339
+ */
340
+ data: {
341
+ [key: string]: unknown;
342
+ };
343
+ /**
344
+ * Error message if the execution failed, null otherwise
345
+ */
346
+ error: string | null;
347
+ /**
348
+ * Unique identifier for the execution log
349
+ */
350
+ log_id: string;
351
+ }
352
+ export interface SessionLinkResponse {
353
+ /**
354
+ * The unique identifier for the connected account
355
+ */
356
+ connected_account_id: string;
357
+ /**
358
+ * Token used to complete the authentication flow
359
+ */
360
+ link_token: string;
361
+ /**
362
+ * The URL where users should be redirected to complete OAuth
363
+ */
364
+ redirect_url: string;
365
+ }
366
+ export interface SessionToolkitsResponse {
367
+ current_page: number;
368
+ items: Array<SessionToolkitsResponse.Item>;
369
+ total_items: number;
370
+ total_pages: number;
371
+ next_cursor?: string | null;
372
+ }
373
+ export declare namespace SessionToolkitsResponse {
374
+ interface Item {
375
+ /**
376
+ * Available Composio-managed auth schemes
377
+ */
378
+ composio_managed_auth_schemes: Array<string>;
379
+ /**
380
+ * Connected account if available
381
+ */
382
+ connected_account: Item.ConnectedAccount | null;
383
+ /**
384
+ * Whether the toolkit is enabled
385
+ */
386
+ enabled: boolean;
387
+ /**
388
+ * Whether the toolkit is no-auth
389
+ */
390
+ is_no_auth: boolean;
391
+ /**
392
+ * Toolkit metadata
393
+ */
394
+ meta: Item.Meta;
395
+ /**
396
+ * Display name of the toolkit
397
+ */
398
+ name: string;
399
+ /**
400
+ * Unique slug identifier
401
+ */
402
+ slug: string;
403
+ }
404
+ namespace Item {
405
+ /**
406
+ * Connected account if available
407
+ */
408
+ interface ConnectedAccount {
409
+ /**
410
+ * Connected account identifier
411
+ */
412
+ id: string;
413
+ /**
414
+ * Auth config details
415
+ */
416
+ auth_config: ConnectedAccount.AuthConfig;
417
+ /**
418
+ * Creation timestamp
419
+ */
420
+ created_at: string;
421
+ /**
422
+ * Connection status
423
+ */
424
+ status: string;
425
+ /**
426
+ * User identifier
427
+ */
428
+ user_id: string;
429
+ }
430
+ namespace ConnectedAccount {
431
+ /**
432
+ * Auth config details
433
+ */
434
+ interface AuthConfig {
435
+ /**
436
+ * Auth config identifier
437
+ */
438
+ id: string;
439
+ /**
440
+ * Authentication scheme type
441
+ */
442
+ auth_scheme: string;
443
+ /**
444
+ * Whether this is a Composio-managed auth config
445
+ */
446
+ is_composio_managed: boolean;
447
+ }
448
+ }
449
+ /**
450
+ * Toolkit metadata
451
+ */
452
+ interface Meta {
453
+ /**
454
+ * Description of the toolkit
455
+ */
456
+ description: string;
457
+ /**
458
+ * URL to the toolkit logo
459
+ */
460
+ logo: string;
461
+ }
462
+ }
463
+ }
464
+ export interface SessionCreateParams {
465
+ /**
466
+ * The identifier of the user who is initiating the session, ideally a unique
467
+ * identifier from your database like a user ID or email address
468
+ */
469
+ user_id: string;
470
+ /**
471
+ * The auth configs to use for the session. This will override the default behavior
472
+ * and use the given auth config when specific toolkits are being executed
473
+ */
474
+ auth_configs?: {
475
+ [key: string]: string;
476
+ };
477
+ /**
478
+ * The connected accounts to use for the session. This will override the default
479
+ * behaviour and use the given connected account when specific toolkits are being
480
+ * executed
481
+ */
482
+ connected_accounts?: {
483
+ [key: string]: string;
484
+ };
485
+ /**
486
+ * Configuration for connection management settings
487
+ */
488
+ manage_connections?: SessionCreateParams.ManageConnections;
489
+ /**
490
+ * Global MCP tool annotation hints for filtering. readOnlyHint: tool does not
491
+ * modify environment. destructiveHint: tool may perform destructive updates.
492
+ * idempotentHint: repeated calls with same args have no additional effect.
493
+ * Toolkit-level tags override this. Toolkit enabled/disabled lists take precedence
494
+ * over tag filtering.
495
+ */
496
+ tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
497
+ /**
498
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable
499
+ * toolkits (denylist). Mutually exclusive.
500
+ */
501
+ toolkits?: SessionCreateParams.Enable | SessionCreateParams.Disable;
502
+ /**
503
+ * Tool-level configuration per toolkit - either specify enable tools (whitelist),
504
+ * disable tools (blacklist), or filter by MCP tags for each toolkit
505
+ */
506
+ tools?: {
507
+ [key: string]: SessionCreateParams.Enable | SessionCreateParams.Disable | SessionCreateParams.Tags;
508
+ };
509
+ /**
510
+ * Configuration for workbench behavior
511
+ */
512
+ workbench?: SessionCreateParams.Workbench;
513
+ }
514
+ export declare namespace SessionCreateParams {
515
+ /**
516
+ * Configuration for connection management settings
517
+ */
518
+ interface ManageConnections {
519
+ /**
520
+ * The URL to redirect to after a user completes authentication for a connected
521
+ * account. This allows you to handle the auth callback in your own application.
522
+ */
523
+ callback_url?: string;
524
+ /**
525
+ * Whether to enable the connection manager for automatic connection handling. If
526
+ * true, we will provide a tool your agent can use to initiate connections to
527
+ * toolkits if it doesnt exist. If set to false, then you have to manage
528
+ * connections manually.
529
+ */
530
+ enable?: boolean | null;
531
+ }
532
+ /**
533
+ * Enable only specific toolkits (allowlist)
534
+ */
535
+ interface Enable {
536
+ /**
537
+ * Only these specific toolkits will be enabled
538
+ */
539
+ enable: Array<string>;
540
+ }
541
+ /**
542
+ * Disable specific toolkits (denylist)
543
+ */
544
+ interface Disable {
545
+ /**
546
+ * These specific toolkits will be disabled
547
+ */
548
+ disable: Array<string>;
549
+ }
550
+ interface Enable {
551
+ /**
552
+ * Only these specific tools will be available for this toolkit
553
+ */
554
+ enable: Array<string>;
555
+ }
556
+ interface Disable {
557
+ /**
558
+ * These specific tools will be disabled for this toolkit
559
+ */
560
+ disable: Array<string>;
561
+ }
562
+ interface Tags {
563
+ /**
564
+ * MCP tags to filter tools for this toolkit. Only tools with these tags will be
565
+ * available.
566
+ */
567
+ tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
568
+ }
569
+ /**
570
+ * Configuration for workbench behavior
571
+ */
572
+ interface Workbench {
573
+ /**
574
+ * Character threshold for automatic offloading. When workbench response exceeds
575
+ * this threshold, it will be automatically offloaded. Default is picked
576
+ * automatically based on the response size.
577
+ */
578
+ auto_offload_threshold?: number;
579
+ /**
580
+ * Whether proxy execution is enabled. When enabled, workbench can call URLs and
581
+ * APIs directly.
582
+ */
583
+ enable_proxy_execution?: boolean;
584
+ }
585
+ }
586
+ export interface SessionExecuteParams {
587
+ /**
588
+ * The unique slug identifier of the tool to execute
589
+ */
590
+ tool_slug: string;
591
+ /**
592
+ * The arguments required by the tool
593
+ */
594
+ arguments?: {
595
+ [key: string]: unknown;
596
+ };
597
+ }
598
+ export interface SessionExecuteMetaParams {
599
+ /**
600
+ * The unique slug identifier of the meta tool to execute
601
+ */
602
+ slug: string;
603
+ /**
604
+ * The arguments required by the meta tool
605
+ */
606
+ arguments?: {
607
+ [key: string]: unknown;
608
+ };
609
+ }
610
+ export interface SessionLinkParams {
611
+ /**
612
+ * The unique slug identifier of the toolkit to connect
613
+ */
614
+ toolkit: string;
615
+ /**
616
+ * URL where users will be redirected after completing auth
617
+ */
618
+ callback_url?: string;
619
+ }
620
+ export interface SessionToolkitsParams {
621
+ /**
622
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
623
+ * limit. The page is the page number and the limit is the number of items per
624
+ * page. The cursor is used to paginate through the items. The cursor is not
625
+ * required for the first page.
626
+ */
627
+ cursor?: string;
628
+ /**
629
+ * Whether to filter by connected toolkits. If provided, only connected toolkits
630
+ * will be returned.
631
+ */
632
+ is_connected?: boolean | null;
633
+ /**
634
+ * Number of items per page, max allowed is 1000
635
+ */
636
+ limit?: number | null;
637
+ /**
638
+ * Optional comma-separated list of toolkit slugs to filter by. If provided, only
639
+ * these toolkits will be returned, overriding the session configuration.
640
+ */
641
+ toolkits?: Array<string> | null;
642
+ }
643
+ export declare namespace Session {
644
+ export { type SessionCreateResponse as SessionCreateResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionExecuteResponse as SessionExecuteResponse, type SessionExecuteMetaResponse as SessionExecuteMetaResponse, type SessionLinkResponse as SessionLinkResponse, type SessionToolkitsResponse as SessionToolkitsResponse, type SessionCreateParams as SessionCreateParams, type SessionExecuteParams as SessionExecuteParams, type SessionExecuteMetaParams as SessionExecuteMetaParams, type SessionLinkParams as SessionLinkParams, type SessionToolkitsParams as SessionToolkitsParams, };
645
+ }
646
+ //# sourceMappingURL=session.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.mts","sourceRoot":"","sources":["../../src/resources/tool-router/session.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;;;;;;;;;;;;;OAcG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;OAWG;IACH,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAOzC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG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