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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (758) hide show
  1. package/CHANGELOG.md +963 -0
  2. package/LICENSE +1 -1
  3. package/README.md +22 -35
  4. package/api-promise.js +2 -15
  5. package/api-promise.js.map +1 -1
  6. package/client.d.mts +85 -43
  7. package/client.d.mts.map +1 -1
  8. package/client.d.ts +85 -43
  9. package/client.d.ts.map +1 -1
  10. package/client.js +162 -108
  11. package/client.js.map +1 -1
  12. package/client.mjs +144 -67
  13. package/client.mjs.map +1 -1
  14. package/core/api-promise.d.mts +0 -1
  15. package/core/api-promise.d.mts.map +1 -1
  16. package/core/api-promise.d.ts +0 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.js +4 -14
  19. package/core/api-promise.js.map +1 -1
  20. package/core/api-promise.mjs +1 -11
  21. package/core/api-promise.mjs.map +1 -1
  22. package/core/error.d.mts +0 -1
  23. package/core/error.d.mts.map +1 -1
  24. package/core/error.d.ts +0 -1
  25. package/core/error.d.ts.map +1 -1
  26. package/core/error.js.map +1 -1
  27. package/core/error.mjs.map +1 -1
  28. package/core/resource.d.mts +1 -1
  29. package/core/resource.d.mts.map +1 -1
  30. package/core/resource.d.ts +1 -1
  31. package/core/resource.d.ts.map +1 -1
  32. package/core/resource.js.map +1 -1
  33. package/core/resource.mjs.map +1 -1
  34. package/error.js +2 -15
  35. package/error.js.map +1 -1
  36. package/internal/builtin-types.d.mts +0 -2
  37. package/internal/builtin-types.d.mts.map +1 -1
  38. package/internal/builtin-types.d.ts +0 -2
  39. package/internal/builtin-types.d.ts.map +1 -1
  40. package/internal/detect-platform.js +3 -3
  41. package/internal/detect-platform.js.map +1 -1
  42. package/internal/detect-platform.mjs +3 -3
  43. package/internal/detect-platform.mjs.map +1 -1
  44. package/internal/errors.d.mts.map +1 -1
  45. package/internal/errors.d.ts.map +1 -1
  46. package/internal/errors.js +2 -2
  47. package/internal/errors.js.map +1 -1
  48. package/internal/errors.mjs.map +1 -1
  49. package/internal/headers.d.mts +1 -2
  50. package/internal/headers.d.mts.map +1 -1
  51. package/internal/headers.d.ts +1 -2
  52. package/internal/headers.d.ts.map +1 -1
  53. package/internal/headers.js +7 -5
  54. package/internal/headers.js.map +1 -1
  55. package/internal/headers.mjs +7 -5
  56. package/internal/headers.mjs.map +1 -1
  57. package/internal/parse.d.mts +0 -1
  58. package/internal/parse.d.mts.map +1 -1
  59. package/internal/parse.d.ts +0 -1
  60. package/internal/parse.d.ts.map +1 -1
  61. package/internal/parse.js +6 -2
  62. package/internal/parse.js.map +1 -1
  63. package/internal/parse.mjs +5 -0
  64. package/internal/parse.mjs.map +1 -1
  65. package/internal/qs/formats.d.mts +1 -0
  66. package/internal/qs/formats.d.mts.map +1 -1
  67. package/internal/qs/formats.d.ts +1 -0
  68. package/internal/qs/formats.d.ts.map +1 -1
  69. package/internal/qs/formats.js +4 -2
  70. package/internal/qs/formats.js.map +1 -1
  71. package/internal/qs/formats.mjs +2 -1
  72. package/internal/qs/formats.mjs.map +1 -1
  73. package/internal/qs/stringify.d.mts.map +1 -1
  74. package/internal/qs/stringify.d.ts.map +1 -1
  75. package/internal/qs/stringify.js +16 -19
  76. package/internal/qs/stringify.js.map +1 -1
  77. package/internal/qs/stringify.mjs +17 -19
  78. package/internal/qs/stringify.mjs.map +1 -1
  79. package/internal/qs/utils.d.mts +1 -0
  80. package/internal/qs/utils.d.mts.map +1 -1
  81. package/internal/qs/utils.d.ts +1 -0
  82. package/internal/qs/utils.d.ts.map +1 -1
  83. package/internal/qs/utils.js +22 -21
  84. package/internal/qs/utils.js.map +1 -1
  85. package/internal/qs/utils.mjs +12 -12
  86. package/internal/qs/utils.mjs.map +1 -1
  87. package/internal/request-options.d.mts +43 -1
  88. package/internal/request-options.d.mts.map +1 -1
  89. package/internal/request-options.d.ts +43 -1
  90. package/internal/request-options.d.ts.map +1 -1
  91. package/internal/request-options.js.map +1 -1
  92. package/internal/request-options.mjs.map +1 -1
  93. package/internal/shim-types.d.mts +11 -22
  94. package/internal/shim-types.d.mts.map +1 -0
  95. package/internal/shim-types.d.ts +11 -22
  96. package/internal/shim-types.d.ts.map +1 -0
  97. package/internal/shim-types.js +4 -0
  98. package/internal/shim-types.js.map +1 -0
  99. package/{resources/org.mjs → internal/shim-types.mjs} +2 -2
  100. package/internal/shim-types.mjs.map +1 -0
  101. package/internal/shims.d.mts +2 -2
  102. package/internal/shims.d.mts.map +1 -1
  103. package/internal/shims.d.ts +2 -2
  104. package/internal/shims.d.ts.map +1 -1
  105. package/internal/shims.js +5 -6
  106. package/internal/shims.js.map +1 -1
  107. package/internal/shims.mjs.map +1 -1
  108. package/internal/to-file.d.mts +1 -2
  109. package/internal/to-file.d.mts.map +1 -1
  110. package/internal/to-file.d.ts +1 -2
  111. package/internal/to-file.d.ts.map +1 -1
  112. package/internal/to-file.js +5 -5
  113. package/internal/to-file.js.map +1 -1
  114. package/internal/to-file.mjs +4 -3
  115. package/internal/to-file.mjs.map +1 -1
  116. package/internal/tslib.js +81 -0
  117. package/internal/tslib.mjs +17 -0
  118. package/internal/types.d.mts +12 -11
  119. package/internal/types.d.mts.map +1 -1
  120. package/internal/types.d.ts +12 -11
  121. package/internal/types.d.ts.map +1 -1
  122. package/internal/uploads.d.mts +1 -3
  123. package/internal/uploads.d.mts.map +1 -1
  124. package/internal/uploads.d.ts +1 -3
  125. package/internal/uploads.d.ts.map +1 -1
  126. package/internal/uploads.js +17 -7
  127. package/internal/uploads.js.map +1 -1
  128. package/internal/uploads.mjs +13 -4
  129. package/internal/uploads.mjs.map +1 -1
  130. package/internal/utils/base64.d.mts.map +1 -1
  131. package/internal/utils/base64.d.ts.map +1 -1
  132. package/internal/utils/base64.js +12 -7
  133. package/internal/utils/base64.js.map +1 -1
  134. package/internal/utils/base64.mjs +12 -7
  135. package/internal/utils/base64.mjs.map +1 -1
  136. package/internal/utils/bytes.d.mts +4 -0
  137. package/internal/utils/bytes.d.mts.map +1 -0
  138. package/internal/utils/bytes.d.ts +4 -0
  139. package/internal/utils/bytes.d.ts.map +1 -0
  140. package/internal/utils/bytes.js +31 -0
  141. package/internal/utils/bytes.js.map +1 -0
  142. package/internal/utils/bytes.mjs +26 -0
  143. package/internal/utils/bytes.mjs.map +1 -0
  144. package/internal/utils/env.d.mts.map +1 -1
  145. package/internal/utils/env.d.ts.map +1 -1
  146. package/internal/utils/env.js +2 -2
  147. package/internal/utils/env.js.map +1 -1
  148. package/internal/utils/env.mjs +2 -2
  149. package/internal/utils/env.mjs.map +1 -1
  150. package/internal/utils/log.d.mts +0 -1
  151. package/internal/utils/log.d.mts.map +1 -1
  152. package/internal/utils/log.d.ts +0 -1
  153. package/internal/utils/log.d.ts.map +1 -1
  154. package/internal/utils/log.js +3 -3
  155. package/internal/utils/log.js.map +1 -1
  156. package/internal/utils/log.mjs +1 -1
  157. package/internal/utils/log.mjs.map +1 -1
  158. package/internal/utils/path.d.mts.map +1 -1
  159. package/internal/utils/path.d.ts.map +1 -1
  160. package/internal/utils/path.js +28 -7
  161. package/internal/utils/path.js.map +1 -1
  162. package/internal/utils/path.mjs +27 -6
  163. package/internal/utils/path.mjs.map +1 -1
  164. package/internal/utils/query.d.mts +2 -0
  165. package/internal/utils/query.d.mts.map +1 -0
  166. package/internal/utils/query.d.ts +2 -0
  167. package/internal/utils/query.d.ts.map +1 -0
  168. package/internal/utils/query.js +10 -0
  169. package/internal/utils/query.js.map +1 -0
  170. package/internal/utils/query.mjs +6 -0
  171. package/internal/utils/query.mjs.map +1 -0
  172. package/internal/utils/sleep.d.mts.map +1 -1
  173. package/internal/utils/sleep.d.ts.map +1 -1
  174. package/internal/utils/uuid.d.mts +1 -1
  175. package/internal/utils/uuid.d.mts.map +1 -1
  176. package/internal/utils/uuid.d.ts +1 -1
  177. package/internal/utils/uuid.d.ts.map +1 -1
  178. package/internal/utils/uuid.js +1 -2
  179. package/internal/utils/uuid.js.map +1 -1
  180. package/internal/utils/uuid.mjs +1 -2
  181. package/internal/utils/uuid.mjs.map +1 -1
  182. package/internal/utils/values.d.mts +2 -0
  183. package/internal/utils/values.d.mts.map +1 -1
  184. package/internal/utils/values.d.ts +2 -0
  185. package/internal/utils/values.d.ts.map +1 -1
  186. package/internal/utils/values.js +11 -8
  187. package/internal/utils/values.js.map +1 -1
  188. package/internal/utils/values.mjs +5 -3
  189. package/internal/utils/values.mjs.map +1 -1
  190. package/internal/utils.d.mts +1 -0
  191. package/internal/utils.d.ts +1 -0
  192. package/internal/utils.js +8 -20
  193. package/internal/utils.js.map +1 -1
  194. package/internal/utils.mjs +1 -0
  195. package/package.json +14 -11
  196. package/resource.js +2 -15
  197. package/resource.js.map +1 -1
  198. package/resources/auth-configs.d.mts +511 -54
  199. package/resources/auth-configs.d.mts.map +1 -1
  200. package/resources/auth-configs.d.ts +511 -54
  201. package/resources/auth-configs.d.ts.map +1 -1
  202. package/resources/auth-configs.js +79 -6
  203. package/resources/auth-configs.js.map +1 -1
  204. package/resources/auth-configs.mjs +79 -6
  205. package/resources/auth-configs.mjs.map +1 -1
  206. package/resources/cli/cli.d.mts +120 -0
  207. package/resources/cli/cli.d.mts.map +1 -0
  208. package/resources/cli/cli.d.ts +120 -0
  209. package/resources/cli/cli.d.ts.map +1 -0
  210. package/resources/cli/cli.js +36 -0
  211. package/resources/cli/cli.js.map +1 -0
  212. package/resources/cli/cli.mjs +31 -0
  213. package/resources/cli/cli.mjs.map +1 -0
  214. package/resources/cli/index.d.mts +3 -0
  215. package/resources/cli/index.d.mts.map +1 -0
  216. package/resources/cli/index.d.ts +3 -0
  217. package/resources/cli/index.d.ts.map +1 -0
  218. package/resources/cli/index.js +9 -0
  219. package/resources/cli/index.js.map +1 -0
  220. package/resources/cli/index.mjs +4 -0
  221. package/resources/cli/index.mjs.map +1 -0
  222. package/resources/cli/realtime.d.mts +56 -0
  223. package/resources/cli/realtime.d.mts.map +1 -0
  224. package/resources/cli/realtime.d.ts +56 -0
  225. package/resources/cli/realtime.d.ts.map +1 -0
  226. package/resources/cli/realtime.js +25 -0
  227. package/resources/cli/realtime.js.map +1 -0
  228. package/resources/cli/realtime.mjs +21 -0
  229. package/resources/cli/realtime.mjs.map +1 -0
  230. package/resources/cli.d.mts +1 -123
  231. package/resources/cli.d.mts.map +1 -1
  232. package/resources/cli.d.ts +1 -123
  233. package/resources/cli.d.ts.map +1 -1
  234. package/resources/cli.js +2 -14
  235. package/resources/cli.js.map +1 -1
  236. package/resources/cli.mjs +1 -12
  237. package/resources/cli.mjs.map +1 -1
  238. package/resources/connected-accounts.d.mts +9729 -223
  239. package/resources/connected-accounts.d.mts.map +1 -1
  240. package/resources/connected-accounts.d.ts +9729 -223
  241. package/resources/connected-accounts.d.ts.map +1 -1
  242. package/resources/connected-accounts.js +124 -7
  243. package/resources/connected-accounts.js.map +1 -1
  244. package/resources/connected-accounts.mjs +124 -7
  245. package/resources/connected-accounts.mjs.map +1 -1
  246. package/resources/files.d.mts +152 -0
  247. package/resources/files.d.mts.map +1 -0
  248. package/resources/files.d.ts +152 -0
  249. package/resources/files.d.ts.map +1 -0
  250. package/resources/files.js +42 -0
  251. package/resources/files.js.map +1 -0
  252. package/resources/files.mjs +38 -0
  253. package/resources/files.mjs.map +1 -0
  254. package/resources/index.d.mts +13 -12
  255. package/resources/index.d.mts.map +1 -1
  256. package/resources/index.d.ts +13 -12
  257. package/resources/index.d.ts.map +1 -1
  258. package/resources/index.js +14 -12
  259. package/resources/index.js.map +1 -1
  260. package/resources/index.mjs +7 -6
  261. package/resources/index.mjs.map +1 -1
  262. package/resources/link.d.mts +2226 -0
  263. package/resources/link.d.mts.map +1 -0
  264. package/resources/link.d.ts +2226 -0
  265. package/resources/link.d.ts.map +1 -0
  266. package/resources/link.js +19 -0
  267. package/resources/link.js.map +1 -0
  268. package/resources/link.mjs +15 -0
  269. package/resources/link.mjs.map +1 -0
  270. package/resources/logs/index.d.mts +4 -0
  271. package/resources/logs/index.d.mts.map +1 -0
  272. package/resources/logs/index.d.ts +4 -0
  273. package/resources/logs/index.d.ts.map +1 -0
  274. package/resources/logs/index.js +11 -0
  275. package/resources/logs/index.js.map +1 -0
  276. package/resources/logs/index.mjs +5 -0
  277. package/resources/logs/index.mjs.map +1 -0
  278. package/resources/logs/logs.d.mts +14 -0
  279. package/resources/logs/logs.d.mts.map +1 -0
  280. package/resources/logs/logs.d.ts +14 -0
  281. package/resources/logs/logs.d.ts.map +1 -0
  282. package/resources/logs/logs.js +21 -0
  283. package/resources/logs/logs.js.map +1 -0
  284. package/resources/logs/logs.mjs +16 -0
  285. package/resources/logs/logs.mjs.map +1 -0
  286. package/resources/logs/tools.d.mts +173 -0
  287. package/resources/logs/tools.d.mts.map +1 -0
  288. package/resources/logs/tools.d.ts +173 -0
  289. package/resources/logs/tools.d.ts.map +1 -0
  290. package/resources/logs/tools.js +35 -0
  291. package/resources/logs/tools.js.map +1 -0
  292. package/resources/logs/tools.mjs +31 -0
  293. package/resources/logs/tools.mjs.map +1 -0
  294. package/resources/logs/triggers.d.mts +161 -0
  295. package/resources/logs/triggers.d.mts.map +1 -0
  296. package/resources/logs/triggers.d.ts +161 -0
  297. package/resources/logs/triggers.d.ts.map +1 -0
  298. package/resources/logs/triggers.js +36 -0
  299. package/resources/logs/triggers.js.map +1 -0
  300. package/resources/logs/triggers.mjs +32 -0
  301. package/resources/logs/triggers.mjs.map +1 -0
  302. package/resources/logs.d.mts +2 -0
  303. package/resources/logs.d.mts.map +1 -0
  304. package/resources/logs.d.ts +2 -0
  305. package/resources/logs.d.ts.map +1 -0
  306. package/resources/logs.js +6 -0
  307. package/resources/logs.js.map +1 -0
  308. package/resources/{auth.mjs → logs.mjs} +2 -2
  309. package/resources/logs.mjs.map +1 -0
  310. package/resources/mcp/custom.d.mts +105 -0
  311. package/resources/mcp/custom.d.mts.map +1 -0
  312. package/resources/mcp/custom.d.ts +105 -0
  313. package/resources/mcp/custom.d.ts.map +1 -0
  314. package/resources/mcp/custom.js +29 -0
  315. package/resources/mcp/custom.js.map +1 -0
  316. package/resources/mcp/custom.mjs +25 -0
  317. package/resources/mcp/custom.mjs.map +1 -0
  318. package/resources/mcp/generate.d.mts +65 -0
  319. package/resources/mcp/generate.d.mts.map +1 -0
  320. package/resources/mcp/generate.d.ts +65 -0
  321. package/resources/mcp/generate.d.ts.map +1 -0
  322. package/resources/mcp/generate.js +32 -0
  323. package/resources/mcp/generate.js.map +1 -0
  324. package/resources/mcp/generate.mjs +28 -0
  325. package/resources/mcp/generate.mjs.map +1 -0
  326. package/resources/mcp/index.d.mts +3 -2
  327. package/resources/mcp/index.d.mts.map +1 -1
  328. package/resources/mcp/index.d.ts +3 -2
  329. package/resources/mcp/index.d.ts.map +1 -1
  330. package/resources/mcp/index.js +5 -3
  331. package/resources/mcp/index.js.map +1 -1
  332. package/resources/mcp/index.mjs +2 -1
  333. package/resources/mcp/index.mjs.map +1 -1
  334. package/resources/mcp/mcp.d.mts +450 -175
  335. package/resources/mcp/mcp.d.mts.map +1 -1
  336. package/resources/mcp/mcp.d.ts +450 -175
  337. package/resources/mcp/mcp.d.ts.map +1 -1
  338. package/resources/mcp/mcp.js +95 -42
  339. package/resources/mcp/mcp.js.map +1 -1
  340. package/resources/mcp/mcp.mjs +94 -19
  341. package/resources/mcp/mcp.mjs.map +1 -1
  342. package/resources/mcp.js +2 -15
  343. package/resources/mcp.js.map +1 -1
  344. package/resources/migration.d.mts +35 -0
  345. package/resources/migration.d.mts.map +1 -0
  346. package/resources/migration.d.ts +35 -0
  347. package/resources/migration.d.ts.map +1 -0
  348. package/resources/migration.js +20 -0
  349. package/resources/migration.js.map +1 -0
  350. package/resources/migration.mjs +16 -0
  351. package/resources/migration.mjs.map +1 -0
  352. package/resources/project/config.d.mts +71 -0
  353. package/resources/project/config.d.mts.map +1 -0
  354. package/resources/project/config.d.ts +71 -0
  355. package/resources/project/config.d.ts.map +1 -0
  356. package/resources/project/config.js +33 -0
  357. package/resources/project/config.js.map +1 -0
  358. package/resources/project/config.mjs +29 -0
  359. package/resources/project/config.mjs.map +1 -0
  360. package/resources/project/index.d.mts +3 -0
  361. package/resources/project/index.d.mts.map +1 -0
  362. package/resources/project/index.d.ts +3 -0
  363. package/resources/project/index.d.ts.map +1 -0
  364. package/resources/project/index.js +9 -0
  365. package/resources/project/index.js.map +1 -0
  366. package/resources/project/index.mjs +4 -0
  367. package/resources/project/index.mjs.map +1 -0
  368. package/resources/project/project.d.mts +10 -0
  369. package/resources/project/project.d.mts.map +1 -0
  370. package/resources/project/project.d.ts +10 -0
  371. package/resources/project/project.d.ts.map +1 -0
  372. package/resources/project/project.js +17 -0
  373. package/resources/project/project.js.map +1 -0
  374. package/resources/project/project.mjs +12 -0
  375. package/resources/project/project.mjs.map +1 -0
  376. package/resources/{org/project.d.mts.map → project.d.mts.map} +1 -1
  377. package/resources/{org/project.d.ts.map → project.d.ts.map} +1 -1
  378. package/resources/project.js +6 -0
  379. package/resources/project.js.map +1 -0
  380. package/resources/project.mjs.map +1 -0
  381. package/resources/tool-router/index.d.mts +3 -0
  382. package/resources/tool-router/index.d.mts.map +1 -0
  383. package/resources/tool-router/index.d.ts +3 -0
  384. package/resources/tool-router/index.d.ts.map +1 -0
  385. package/resources/tool-router/index.js +9 -0
  386. package/resources/tool-router/index.js.map +1 -0
  387. package/resources/tool-router/index.mjs +4 -0
  388. package/resources/tool-router/index.mjs.map +1 -0
  389. package/resources/tool-router/session/files.d.mts +205 -0
  390. package/resources/tool-router/session/files.d.mts.map +1 -0
  391. package/resources/tool-router/session/files.d.ts +205 -0
  392. package/resources/tool-router/session/files.d.ts.map +1 -0
  393. package/resources/tool-router/session/files.js +98 -0
  394. package/resources/tool-router/session/files.js.map +1 -0
  395. package/resources/tool-router/session/files.mjs +94 -0
  396. package/resources/tool-router/session/files.mjs.map +1 -0
  397. package/resources/tool-router/session/index.d.mts +3 -0
  398. package/resources/tool-router/session/index.d.mts.map +1 -0
  399. package/resources/tool-router/session/index.d.ts +3 -0
  400. package/resources/tool-router/session/index.d.ts.map +1 -0
  401. package/resources/{auth → tool-router/session}/index.js +3 -3
  402. package/resources/tool-router/session/index.js.map +1 -0
  403. package/resources/tool-router/session/index.mjs +4 -0
  404. package/resources/tool-router/session/index.mjs.map +1 -0
  405. package/resources/tool-router/session/session.d.mts +3978 -0
  406. package/resources/tool-router/session/session.d.mts.map +1 -0
  407. package/resources/tool-router/session/session.d.ts +3978 -0
  408. package/resources/tool-router/session/session.d.ts.map +1 -0
  409. package/resources/tool-router/session/session.js +224 -0
  410. package/resources/tool-router/session/session.js.map +1 -0
  411. package/resources/tool-router/session/session.mjs +219 -0
  412. package/resources/tool-router/session/session.mjs.map +1 -0
  413. package/resources/tool-router/session.d.mts +2 -0
  414. package/resources/tool-router/session.d.mts.map +1 -0
  415. package/resources/tool-router/session.d.ts +2 -0
  416. package/resources/tool-router/session.d.ts.map +1 -0
  417. package/resources/tool-router/session.js +6 -0
  418. package/resources/tool-router/session.js.map +1 -0
  419. package/resources/tool-router/session.mjs +3 -0
  420. package/resources/tool-router/session.mjs.map +1 -0
  421. package/resources/tool-router/tool-router.d.mts +94 -0
  422. package/resources/tool-router/tool-router.d.mts.map +1 -0
  423. package/resources/tool-router/tool-router.d.ts +94 -0
  424. package/resources/tool-router/tool-router.d.ts.map +1 -0
  425. package/resources/tool-router/tool-router.js +49 -0
  426. package/resources/tool-router/tool-router.js.map +1 -0
  427. package/resources/tool-router/tool-router.mjs +44 -0
  428. package/resources/tool-router/tool-router.mjs.map +1 -0
  429. package/resources/tool-router.d.mts +2 -0
  430. package/resources/tool-router.d.mts.map +1 -0
  431. package/resources/tool-router.d.ts +2 -0
  432. package/resources/tool-router.d.ts.map +1 -0
  433. package/resources/tool-router.js +6 -0
  434. package/resources/tool-router.js.map +1 -0
  435. package/resources/tool-router.mjs +3 -0
  436. package/resources/tool-router.mjs.map +1 -0
  437. package/resources/toolkits.d.mts +314 -6
  438. package/resources/toolkits.d.mts.map +1 -1
  439. package/resources/toolkits.d.ts +314 -6
  440. package/resources/toolkits.d.ts.map +1 -1
  441. package/resources/toolkits.js +25 -4
  442. package/resources/toolkits.js.map +1 -1
  443. package/resources/toolkits.mjs +25 -4
  444. package/resources/toolkits.mjs.map +1 -1
  445. package/resources/tools.d.mts +1401 -41
  446. package/resources/tools.d.mts.map +1 -1
  447. package/resources/tools.d.ts +1401 -41
  448. package/resources/tools.d.ts.map +1 -1
  449. package/resources/tools.js +88 -9
  450. package/resources/tools.js.map +1 -1
  451. package/resources/tools.mjs +88 -9
  452. package/resources/tools.mjs.map +1 -1
  453. package/resources/trigger-instances/index.d.mts +2 -2
  454. package/resources/trigger-instances/index.d.mts.map +1 -1
  455. package/resources/trigger-instances/index.d.ts +2 -2
  456. package/resources/trigger-instances/index.d.ts.map +1 -1
  457. package/resources/trigger-instances/index.js +3 -3
  458. package/resources/trigger-instances/index.js.map +1 -1
  459. package/resources/trigger-instances/index.mjs +1 -1
  460. package/resources/trigger-instances/index.mjs.map +1 -1
  461. package/resources/trigger-instances/manage.d.mts +55 -0
  462. package/resources/trigger-instances/manage.d.mts.map +1 -0
  463. package/resources/trigger-instances/manage.d.ts +55 -0
  464. package/resources/trigger-instances/manage.d.ts.map +1 -0
  465. package/resources/trigger-instances/manage.js +45 -0
  466. package/resources/trigger-instances/manage.js.map +1 -0
  467. package/resources/trigger-instances/manage.mjs +41 -0
  468. package/resources/trigger-instances/manage.mjs.map +1 -0
  469. package/resources/trigger-instances/trigger-instances.d.mts +190 -43
  470. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  471. package/resources/trigger-instances/trigger-instances.d.ts +190 -43
  472. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  473. package/resources/trigger-instances/trigger-instances.js +36 -37
  474. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  475. package/resources/trigger-instances/trigger-instances.mjs +35 -14
  476. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  477. package/resources/trigger-instances.js +2 -15
  478. package/resources/trigger-instances.js.map +1 -1
  479. package/resources/triggers-types.d.mts +148 -12
  480. package/resources/triggers-types.d.mts.map +1 -1
  481. package/resources/triggers-types.d.ts +148 -12
  482. package/resources/triggers-types.d.ts.map +1 -1
  483. package/resources/triggers-types.js +19 -4
  484. package/resources/triggers-types.js.map +1 -1
  485. package/resources/triggers-types.mjs +19 -4
  486. package/resources/triggers-types.mjs.map +1 -1
  487. package/resources.js +2 -15
  488. package/resources.js.map +1 -1
  489. package/src/client.ts +239 -131
  490. package/src/core/resource.ts +1 -1
  491. package/src/internal/detect-platform.ts +3 -3
  492. package/src/internal/headers.ts +9 -8
  493. package/src/internal/parse.ts +6 -0
  494. package/src/internal/qs/formats.ts +2 -1
  495. package/src/internal/qs/stringify.ts +17 -20
  496. package/src/internal/qs/utils.ts +14 -14
  497. package/src/internal/request-options.ts +54 -0
  498. package/src/internal/shim-types.ts +26 -0
  499. package/src/internal/shims.ts +2 -2
  500. package/src/internal/to-file.ts +5 -3
  501. package/src/internal/types.ts +13 -12
  502. package/src/internal/uploads.ts +17 -5
  503. package/src/internal/utils/base64.ts +13 -10
  504. package/src/internal/utils/bytes.ts +32 -0
  505. package/src/internal/utils/env.ts +2 -2
  506. package/src/internal/utils/log.ts +1 -1
  507. package/src/internal/utils/path.ts +33 -8
  508. package/src/internal/utils/query.ts +7 -0
  509. package/src/internal/utils/uuid.ts +1 -3
  510. package/src/internal/utils/values.ts +6 -3
  511. package/src/internal/utils.ts +1 -0
  512. package/src/resources/auth-configs.ts +587 -73
  513. package/src/resources/cli/cli.ts +163 -0
  514. package/src/resources/cli/index.ts +15 -0
  515. package/src/resources/cli/realtime.ts +75 -0
  516. package/src/resources/cli.ts +1 -164
  517. package/src/resources/connected-accounts.ts +18343 -460
  518. package/src/resources/files.ts +197 -0
  519. package/src/resources/index.ts +30 -28
  520. package/src/resources/link.ts +4215 -0
  521. package/src/resources/logs/index.ts +10 -0
  522. package/src/resources/logs/logs.ts +31 -0
  523. package/src/resources/logs/tools.ts +239 -0
  524. package/src/resources/logs/triggers.ts +241 -0
  525. package/src/resources/{auth.ts → logs.ts} +1 -1
  526. package/src/resources/mcp/custom.ts +125 -0
  527. package/src/resources/mcp/generate.ts +77 -0
  528. package/src/resources/mcp/index.ts +3 -3
  529. package/src/resources/mcp/mcp.ts +490 -203
  530. package/src/resources/migration.ts +49 -0
  531. package/src/resources/project/config.ts +110 -0
  532. package/src/resources/project/index.ts +9 -0
  533. package/src/resources/project/project.ts +20 -0
  534. package/src/resources/tool-router/index.ts +33 -0
  535. package/src/resources/tool-router/session/files.ts +284 -0
  536. package/src/resources/tool-router/session/index.ts +39 -0
  537. package/src/resources/tool-router/session/session.ts +4983 -0
  538. package/src/resources/{org.ts → tool-router/session.ts} +1 -1
  539. package/src/resources/tool-router/tool-router.ts +168 -0
  540. package/src/resources/tool-router.ts +3 -0
  541. package/src/resources/toolkits.ts +361 -10
  542. package/src/resources/tools.ts +2172 -63
  543. package/src/resources/trigger-instances/index.ts +5 -9
  544. package/src/resources/trigger-instances/manage.ts +75 -0
  545. package/src/resources/trigger-instances/trigger-instances.ts +206 -69
  546. package/src/resources/triggers-types.ts +154 -16
  547. package/src/version.ts +1 -1
  548. package/uploads.js +2 -15
  549. package/uploads.js.map +1 -1
  550. package/version.d.mts +1 -1
  551. package/version.d.mts.map +1 -1
  552. package/version.d.ts +1 -1
  553. package/version.d.ts.map +1 -1
  554. package/version.js +1 -1
  555. package/version.js.map +1 -1
  556. package/version.mjs +1 -1
  557. package/version.mjs.map +1 -1
  558. package/internal/shims/crypto.d.mts +0 -13
  559. package/internal/shims/crypto.d.mts.map +0 -1
  560. package/internal/shims/crypto.d.ts +0 -13
  561. package/internal/shims/crypto.d.ts.map +0 -1
  562. package/internal/shims/crypto.js +0 -13
  563. package/internal/shims/crypto.js.map +0 -1
  564. package/internal/shims/crypto.mjs +0 -9
  565. package/internal/shims/crypto.mjs.map +0 -1
  566. package/internal/shims/file.d.mts +0 -23
  567. package/internal/shims/file.d.mts.map +0 -1
  568. package/internal/shims/file.d.ts +0 -23
  569. package/internal/shims/file.d.ts.map +0 -1
  570. package/internal/shims/file.js +0 -16
  571. package/internal/shims/file.js.map +0 -1
  572. package/internal/shims/file.mjs +0 -12
  573. package/internal/shims/file.mjs.map +0 -1
  574. package/internal/shims/getBuiltinModule.d.mts +0 -11
  575. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  576. package/internal/shims/getBuiltinModule.d.ts +0 -11
  577. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  578. package/internal/shims/getBuiltinModule.js +0 -71
  579. package/internal/shims/getBuiltinModule.js.map +0 -1
  580. package/internal/shims/getBuiltinModule.mjs +0 -67
  581. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  582. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  583. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  584. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  585. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  586. package/internal/shims/nullGetBuiltinModule.js +0 -5
  587. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  588. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  589. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  590. package/resources/action-execution.d.mts +0 -155
  591. package/resources/action-execution.d.mts.map +0 -1
  592. package/resources/action-execution.d.ts +0 -155
  593. package/resources/action-execution.d.ts.map +0 -1
  594. package/resources/action-execution.js +0 -19
  595. package/resources/action-execution.js.map +0 -1
  596. package/resources/action-execution.mjs +0 -15
  597. package/resources/action-execution.mjs.map +0 -1
  598. package/resources/auth/auth.d.mts +0 -10
  599. package/resources/auth/auth.d.mts.map +0 -1
  600. package/resources/auth/auth.d.ts +0 -10
  601. package/resources/auth/auth.d.ts.map +0 -1
  602. package/resources/auth/auth.js +0 -39
  603. package/resources/auth/auth.js.map +0 -1
  604. package/resources/auth/auth.mjs +0 -12
  605. package/resources/auth/auth.mjs.map +0 -1
  606. package/resources/auth/index.d.mts +0 -3
  607. package/resources/auth/index.d.mts.map +0 -1
  608. package/resources/auth/index.d.ts +0 -3
  609. package/resources/auth/index.d.ts.map +0 -1
  610. package/resources/auth/index.js.map +0 -1
  611. package/resources/auth/index.mjs +0 -4
  612. package/resources/auth/index.mjs.map +0 -1
  613. package/resources/auth/session.d.mts +0 -75
  614. package/resources/auth/session.d.mts.map +0 -1
  615. package/resources/auth/session.d.ts +0 -75
  616. package/resources/auth/session.d.ts.map +0 -1
  617. package/resources/auth/session.js +0 -12
  618. package/resources/auth/session.js.map +0 -1
  619. package/resources/auth/session.mjs +0 -8
  620. package/resources/auth/session.mjs.map +0 -1
  621. package/resources/auth.d.mts +0 -2
  622. package/resources/auth.d.mts.map +0 -1
  623. package/resources/auth.d.ts +0 -2
  624. package/resources/auth.d.ts.map +0 -1
  625. package/resources/auth.js +0 -19
  626. package/resources/auth.js.map +0 -1
  627. package/resources/auth.mjs.map +0 -1
  628. package/resources/mcp/command.d.mts +0 -34
  629. package/resources/mcp/command.d.mts.map +0 -1
  630. package/resources/mcp/command.d.ts +0 -34
  631. package/resources/mcp/command.d.ts.map +0 -1
  632. package/resources/mcp/command.js +0 -12
  633. package/resources/mcp/command.js.map +0 -1
  634. package/resources/mcp/command.mjs +0 -8
  635. package/resources/mcp/command.mjs.map +0 -1
  636. package/resources/org/api-key.d.mts +0 -17
  637. package/resources/org/api-key.d.mts.map +0 -1
  638. package/resources/org/api-key.d.ts +0 -17
  639. package/resources/org/api-key.d.ts.map +0 -1
  640. package/resources/org/api-key.js +0 -15
  641. package/resources/org/api-key.js.map +0 -1
  642. package/resources/org/api-key.mjs +0 -11
  643. package/resources/org/api-key.mjs.map +0 -1
  644. package/resources/org/index.d.mts +0 -4
  645. package/resources/org/index.d.mts.map +0 -1
  646. package/resources/org/index.d.ts +0 -4
  647. package/resources/org/index.d.ts.map +0 -1
  648. package/resources/org/index.js +0 -11
  649. package/resources/org/index.js.map +0 -1
  650. package/resources/org/index.mjs +0 -5
  651. package/resources/org/index.mjs.map +0 -1
  652. package/resources/org/org.d.mts +0 -14
  653. package/resources/org/org.d.mts.map +0 -1
  654. package/resources/org/org.d.ts +0 -14
  655. package/resources/org/org.d.ts.map +0 -1
  656. package/resources/org/org.js +0 -43
  657. package/resources/org/org.js.map +0 -1
  658. package/resources/org/org.mjs +0 -16
  659. package/resources/org/org.mjs.map +0 -1
  660. package/resources/org/project/api-keys.d.mts +0 -109
  661. package/resources/org/project/api-keys.d.mts.map +0 -1
  662. package/resources/org/project/api-keys.d.ts +0 -109
  663. package/resources/org/project/api-keys.d.ts.map +0 -1
  664. package/resources/org/project/api-keys.js +0 -23
  665. package/resources/org/project/api-keys.js.map +0 -1
  666. package/resources/org/project/api-keys.mjs +0 -19
  667. package/resources/org/project/api-keys.mjs.map +0 -1
  668. package/resources/org/project/index.d.mts +0 -5
  669. package/resources/org/project/index.d.mts.map +0 -1
  670. package/resources/org/project/index.d.ts +0 -5
  671. package/resources/org/project/index.d.ts.map +0 -1
  672. package/resources/org/project/index.js +0 -13
  673. package/resources/org/project/index.js.map +0 -1
  674. package/resources/org/project/index.mjs +0 -6
  675. package/resources/org/project/index.mjs.map +0 -1
  676. package/resources/org/project/project.d.mts +0 -90
  677. package/resources/org/project/project.d.mts.map +0 -1
  678. package/resources/org/project/project.d.ts +0 -90
  679. package/resources/org/project/project.d.ts.map +0 -1
  680. package/resources/org/project/project.js +0 -60
  681. package/resources/org/project/project.js.map +0 -1
  682. package/resources/org/project/project.mjs +0 -33
  683. package/resources/org/project/project.mjs.map +0 -1
  684. package/resources/org/project/trigger.d.mts +0 -51
  685. package/resources/org/project/trigger.d.mts.map +0 -1
  686. package/resources/org/project/trigger.d.ts +0 -51
  687. package/resources/org/project/trigger.d.ts.map +0 -1
  688. package/resources/org/project/trigger.js +0 -16
  689. package/resources/org/project/trigger.js.map +0 -1
  690. package/resources/org/project/trigger.mjs +0 -12
  691. package/resources/org/project/trigger.mjs.map +0 -1
  692. package/resources/org/project/webhook.d.mts +0 -92
  693. package/resources/org/project/webhook.d.mts.map +0 -1
  694. package/resources/org/project/webhook.d.ts +0 -92
  695. package/resources/org/project/webhook.d.ts.map +0 -1
  696. package/resources/org/project/webhook.js +0 -24
  697. package/resources/org/project/webhook.js.map +0 -1
  698. package/resources/org/project/webhook.mjs +0 -20
  699. package/resources/org/project/webhook.mjs.map +0 -1
  700. package/resources/org/project.js +0 -19
  701. package/resources/org/project.js.map +0 -1
  702. package/resources/org/project.mjs.map +0 -1
  703. package/resources/org.d.mts +0 -2
  704. package/resources/org.d.mts.map +0 -1
  705. package/resources/org.d.ts +0 -2
  706. package/resources/org.d.ts.map +0 -1
  707. package/resources/org.js +0 -19
  708. package/resources/org.js.map +0 -1
  709. package/resources/org.mjs.map +0 -1
  710. package/resources/team-members.d.mts +0 -57
  711. package/resources/team-members.d.mts.map +0 -1
  712. package/resources/team-members.d.ts +0 -57
  713. package/resources/team-members.d.ts.map +0 -1
  714. package/resources/team-members.js +0 -22
  715. package/resources/team-members.js.map +0 -1
  716. package/resources/team-members.mjs +0 -18
  717. package/resources/team-members.mjs.map +0 -1
  718. package/resources/trigger-instances/handle.d.mts +0 -25
  719. package/resources/trigger-instances/handle.d.mts.map +0 -1
  720. package/resources/trigger-instances/handle.d.ts +0 -25
  721. package/resources/trigger-instances/handle.d.ts.map +0 -1
  722. package/resources/trigger-instances/handle.js +0 -18
  723. package/resources/trigger-instances/handle.js.map +0 -1
  724. package/resources/trigger-instances/handle.mjs +0 -14
  725. package/resources/trigger-instances/handle.mjs.map +0 -1
  726. package/resources/trigger.d.mts +0 -73
  727. package/resources/trigger.d.mts.map +0 -1
  728. package/resources/trigger.d.ts +0 -73
  729. package/resources/trigger.d.ts.map +0 -1
  730. package/resources/trigger.js +0 -12
  731. package/resources/trigger.js.map +0 -1
  732. package/resources/trigger.mjs +0 -8
  733. package/resources/trigger.mjs.map +0 -1
  734. package/src/internal/shim-types.d.ts +0 -28
  735. package/src/internal/shims/crypto.ts +0 -18
  736. package/src/internal/shims/file.ts +0 -32
  737. package/src/internal/shims/getBuiltinModule.ts +0 -66
  738. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  739. package/src/resources/action-execution.ts +0 -244
  740. package/src/resources/auth/auth.ts +0 -15
  741. package/src/resources/auth/index.ts +0 -4
  742. package/src/resources/auth/session.ts +0 -127
  743. package/src/resources/mcp/command.ts +0 -47
  744. package/src/resources/org/api-key.ts +0 -30
  745. package/src/resources/org/index.ts +0 -12
  746. package/src/resources/org/org.ts +0 -39
  747. package/src/resources/org/project/api-keys.ts +0 -156
  748. package/src/resources/org/project/index.ts +0 -35
  749. package/src/resources/org/project/project.ts +0 -206
  750. package/src/resources/org/project/trigger.ts +0 -95
  751. package/src/resources/org/project/webhook.ts +0 -131
  752. package/src/resources/team-members.ts +0 -111
  753. package/src/resources/trigger-instances/handle.ts +0 -45
  754. package/src/resources/trigger.ts +0 -108
  755. /package/resources/{org/project.d.mts → project.d.mts} +0 -0
  756. /package/resources/{org/project.d.ts → project.d.ts} +0 -0
  757. /package/resources/{org/project.mjs → project.mjs} +0 -0
  758. /package/src/resources/{org/project.ts → project.ts} +0 -0
@@ -5,41 +5,110 @@ import { APIPromise } from '../core/api-promise';
5
5
  import { RequestOptions } from '../internal/request-options';
6
6
  import { path } from '../internal/utils/path';
7
7
 
8
+ /**
9
+ * Authentication configuration management
10
+ */
8
11
  export class AuthConfigs extends APIResource {
12
+ /**
13
+ * Creates a new auth config for a toolkit, allowing you to use your own OAuth
14
+ * credentials or API keys instead of Composio-managed authentication. This is
15
+ * required when you want to use custom OAuth apps (bring your own client
16
+ * ID/secret) or configure specific authentication parameters for a toolkit.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const authConfig = await client.authConfigs.create({
21
+ * toolkit: { slug: 'slug' },
22
+ * });
23
+ * ```
24
+ */
9
25
  create(body: AuthConfigCreateParams, options?: RequestOptions): APIPromise<AuthConfigCreateResponse> {
10
- return this._client.post('/api/v3/auth_configs', { body, ...options });
26
+ return this._client.post('/api/v3.1/auth_configs', { body, ...options });
11
27
  }
12
28
 
29
+ /**
30
+ * Retrieves detailed information about a specific authentication configuration
31
+ * using its unique identifier.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const authConfig = await client.authConfigs.retrieve(
36
+ * 'nanoid',
37
+ * );
38
+ * ```
39
+ */
13
40
  retrieve(nanoid: string, options?: RequestOptions): APIPromise<AuthConfigRetrieveResponse> {
14
- return this._client.get(path`/api/v3/auth_configs/${nanoid}`, options);
41
+ return this._client.get(path`/api/v3.1/auth_configs/${nanoid}`, options);
15
42
  }
16
43
 
17
- update(
18
- nanoid: string,
19
- body: AuthConfigUpdateParams,
20
- options?: RequestOptions,
21
- ): APIPromise<AuthConfigUpdateResponse> {
22
- return this._client.patch(path`/api/v3/auth_configs/${nanoid}`, { body, ...options });
44
+ /**
45
+ * Modifies an existing authentication configuration with new credentials or other
46
+ * settings. Only specified fields will be updated.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const authConfig = await client.authConfigs.update(
51
+ * 'nanoid',
52
+ * { type: 'custom' },
53
+ * );
54
+ * ```
55
+ */
56
+ update(nanoid: string, body: AuthConfigUpdateParams, options?: RequestOptions): APIPromise<unknown> {
57
+ return this._client.patch(path`/api/v3.1/auth_configs/${nanoid}`, { body, ...options });
23
58
  }
24
59
 
60
+ /**
61
+ * Retrieves all auth configs for your project. Auth configs define how users
62
+ * authenticate with external services (OAuth, API keys, etc.). Use filters to find
63
+ * configs for specific toolkits or to distinguish between Composio-managed and
64
+ * custom configurations.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const authConfigs = await client.authConfigs.list();
69
+ * ```
70
+ */
25
71
  list(
26
72
  query: AuthConfigListParams | null | undefined = {},
27
73
  options?: RequestOptions,
28
74
  ): APIPromise<AuthConfigListResponse> {
29
- return this._client.get('/api/v3/auth_configs', { query, ...options });
75
+ return this._client.get('/api/v3.1/auth_configs', { query, ...options });
30
76
  }
31
77
 
32
- delete(nanoid: string, options?: RequestOptions): APIPromise<AuthConfigDeleteResponse> {
33
- return this._client.delete(path`/api/v3/auth_configs/${nanoid}`, options);
78
+ /**
79
+ * Soft-deletes an authentication configuration by marking it as deleted in the
80
+ * database. This operation cannot be undone.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * const authConfig = await client.authConfigs.delete(
85
+ * 'nanoid',
86
+ * );
87
+ * ```
88
+ */
89
+ delete(nanoid: string, options?: RequestOptions): APIPromise<unknown> {
90
+ return this._client.delete(path`/api/v3.1/auth_configs/${nanoid}`, options);
34
91
  }
35
92
 
93
+ /**
94
+ * Updates the status of an authentication configuration to either enabled or
95
+ * disabled. Disabled configurations cannot be used for new connections.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * const response = await client.authConfigs.updateStatus(
100
+ * 'ENABLED',
101
+ * { nanoid: 'nanoid' },
102
+ * );
103
+ * ```
104
+ */
36
105
  updateStatus(
37
106
  status: 'ENABLED' | 'DISABLED',
38
107
  params: AuthConfigUpdateStatusParams,
39
108
  options?: RequestOptions,
40
- ): APIPromise<AuthConfigUpdateStatusResponse> {
109
+ ): APIPromise<unknown> {
41
110
  const { nanoid } = params;
42
- return this._client.patch(path`/api/v3/auth_configs/${nanoid}/${status}`, options);
111
+ return this._client.patch(path`/api/v3.1/auth_configs/${nanoid}/${status}`, options);
43
112
  }
44
113
  }
45
114
 
@@ -52,12 +121,12 @@ export interface AuthConfigCreateResponse {
52
121
  export namespace AuthConfigCreateResponse {
53
122
  export interface AuthConfig {
54
123
  /**
55
- * The auth config id of the app (must be a valid auth config id)
124
+ * The auth config id of the toolkit (must be a valid auth config id)
56
125
  */
57
126
  id: string;
58
127
 
59
128
  /**
60
- * The authentication mode of the app
129
+ * The authentication mode of the toolkit
61
130
  */
62
131
  auth_scheme: string;
63
132
 
@@ -65,6 +134,11 @@ export namespace AuthConfigCreateResponse {
65
134
  * Whether the auth config is managed by Composio
66
135
  */
67
136
  is_composio_managed: boolean;
137
+
138
+ /**
139
+ * The tools that the user can use with the auth config
140
+ */
141
+ restrict_to_following_tools?: Array<string>;
68
142
  }
69
143
 
70
144
  export interface Toolkit {
@@ -77,33 +151,48 @@ export namespace AuthConfigCreateResponse {
77
151
 
78
152
  export interface AuthConfigRetrieveResponse {
79
153
  /**
80
- * The unique id of the auth config
154
+ * The unique ID of the authentication configuration
81
155
  */
82
156
  id: string;
83
157
 
84
158
  /**
85
- * The name of the auth config
159
+ * The display name of the authentication configuration
86
160
  */
87
161
  name: string;
88
162
 
89
163
  /**
90
- * The number of connections for the auth config
164
+ * The number of active connections using this auth config
91
165
  */
92
166
  no_of_connections: number;
93
167
 
168
+ /**
169
+ * Current status of the authentication configuration
170
+ */
94
171
  status: 'ENABLED' | 'DISABLED';
95
172
 
173
+ tool_access_config: AuthConfigRetrieveResponse.ToolAccessConfig;
174
+
175
+ /**
176
+ * Information about the associated integration
177
+ */
96
178
  toolkit: AuthConfigRetrieveResponse.Toolkit;
97
179
 
98
180
  /**
99
- * The unique id of the auth config
181
+ * The type of the authentication configuration (custom or default)
182
+ */
183
+ type: 'default' | 'custom';
184
+
185
+ /**
186
+ * The UUID of the authentication configuration (for backward compatibility)
100
187
  */
101
188
  uuid: string;
102
189
 
190
+ /**
191
+ * The authentication scheme used (e.g., OAuth2, API Key, etc.)
192
+ */
103
193
  auth_scheme?:
104
194
  | 'OAUTH2'
105
195
  | 'OAUTH1'
106
- | 'OAUTH1A'
107
196
  | 'API_KEY'
108
197
  | 'BASIC'
109
198
  | 'BILLCOM_AUTH'
@@ -111,90 +200,205 @@ export interface AuthConfigRetrieveResponse {
111
200
  | 'GOOGLE_SERVICE_ACCOUNT'
112
201
  | 'NO_AUTH'
113
202
  | 'BASIC_WITH_JWT'
114
- | 'COMPOSIO_LINK'
115
203
  | 'CALCOM_AUTH'
116
- | 'SNOWFLAKE';
204
+ | 'SERVICE_ACCOUNT'
205
+ | 'SAML'
206
+ | 'DCR_OAUTH'
207
+ | 'S2S_OAUTH2';
117
208
 
118
209
  /**
119
- * The date and time the auth config was created
210
+ * ISO 8601 date-time when the auth config was created
120
211
  */
121
212
  created_at?: string;
122
213
 
123
214
  /**
124
- * The user who created the auth config
215
+ * The identifier of the user who created the auth config
125
216
  */
126
217
  created_by?: string;
127
218
 
128
- credentials?: Record<string, unknown>;
219
+ /**
220
+ * The authentication credentials (tokens, keys, etc.) - may be partially hidden
221
+ * for security
222
+ */
223
+ credentials?: { [key: string]: unknown };
224
+
225
+ /**
226
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
227
+ */
228
+ deprecated_params?: AuthConfigRetrieveResponse.DeprecatedParams;
129
229
 
230
+ /**
231
+ * Fields expected during connection initialization
232
+ */
130
233
  expected_input_fields?: Array<unknown>;
131
234
 
235
+ /**
236
+ * Whether this authentication configuration is managed by Composio or the user
237
+ */
132
238
  is_composio_managed?: boolean;
133
239
 
134
240
  /**
135
- * The date and time the auth config was last updated
241
+ * Whether this auth config is enabled for tool router
242
+ */
243
+ is_enabled_for_tool_router?: boolean;
244
+
245
+ /**
246
+ * ISO 8601 date-time when the auth config was last updated
136
247
  */
137
248
  last_updated_at?: string;
249
+
250
+ proxy_config?: AuthConfigRetrieveResponse.ProxyConfig | null;
251
+
252
+ /**
253
+ * @deprecated Use tool_access_config instead. This field will be deprecated in the
254
+ * future.
255
+ */
256
+ restrict_to_following_tools?: Array<string>;
257
+
258
+ /**
259
+ * [EXPERIMENTAL] Shared credentials that will be inherited by all connected
260
+ * accounts using this auth config
261
+ */
262
+ shared_credentials?: { [key: string]: unknown };
138
263
  }
139
264
 
140
265
  export namespace AuthConfigRetrieveResponse {
266
+ export interface ToolAccessConfig {
267
+ /**
268
+ * The actions that the user can perform on the auth config. If passed, this will
269
+ * update the actions that the user can perform on the auth config.
270
+ */
271
+ tools_available_for_execution?: Array<string>;
272
+
273
+ /**
274
+ * Tools used to generate the minimum required scopes for the auth config (only
275
+ * valid for OAuth). If passed, this will update the scopes.
276
+ */
277
+ tools_for_connected_account_creation?: Array<string>;
278
+ }
279
+
280
+ /**
281
+ * Information about the associated integration
282
+ */
141
283
  export interface Toolkit {
142
284
  /**
143
- * The logo of the app
285
+ * The URL to the integration app's logo image
144
286
  */
145
287
  logo: string;
146
288
 
147
289
  /**
148
- * The unique key of the app
290
+ * The unique identifier of the integration app
149
291
  */
150
292
  slug: string;
293
+
294
+ /**
295
+ * URL to a guide page with authentication setup instructions
296
+ */
297
+ auth_guide_url?: string | null;
298
+
299
+ /**
300
+ * URL to a page where users can obtain or configure credentials
301
+ */
302
+ auth_hint_url?: string | null;
151
303
  }
152
- }
153
304
 
154
- export interface AuthConfigUpdateResponse {
155
- message: string;
305
+ /**
306
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
307
+ */
308
+ export interface DeprecatedParams {
309
+ /**
310
+ * Deprecated: Default connector ID
311
+ */
312
+ default_connector_id: string | null;
313
+
314
+ /**
315
+ * Deprecated: Fields expected during connection initialization
316
+ */
317
+ expected_input_fields?: Array<{ [key: string]: unknown }>;
318
+
319
+ /**
320
+ * Deprecated: Member UUID
321
+ */
322
+ member_uuid?: string;
156
323
 
157
- success: boolean;
324
+ /**
325
+ * Deprecated: Toolkit ID
326
+ */
327
+ toolkit_id?: string;
328
+ }
329
+
330
+ export interface ProxyConfig {
331
+ /**
332
+ * The url of the auth proxy
333
+ */
334
+ proxy_url: string;
335
+
336
+ /**
337
+ * The auth key for the auth proxy
338
+ */
339
+ proxy_auth_key?: string;
340
+ }
158
341
  }
159
342
 
343
+ export type AuthConfigUpdateResponse = unknown;
344
+
160
345
  export interface AuthConfigListResponse {
346
+ current_page: number;
347
+
161
348
  items: Array<AuthConfigListResponse.Item>;
162
349
 
163
- next_cursor: string | null;
350
+ total_items: number;
164
351
 
165
352
  total_pages: number;
353
+
354
+ next_cursor?: string | null;
166
355
  }
167
356
 
168
357
  export namespace AuthConfigListResponse {
169
358
  export interface Item {
170
359
  /**
171
- * The unique id of the auth config
360
+ * The unique ID of the authentication configuration
172
361
  */
173
362
  id: string;
174
363
 
175
364
  /**
176
- * The name of the auth config
365
+ * The display name of the authentication configuration
177
366
  */
178
367
  name: string;
179
368
 
180
369
  /**
181
- * The number of connections for the auth config
370
+ * The number of active connections using this auth config
182
371
  */
183
372
  no_of_connections: number;
184
373
 
374
+ /**
375
+ * Current status of the authentication configuration
376
+ */
185
377
  status: 'ENABLED' | 'DISABLED';
186
378
 
379
+ tool_access_config: Item.ToolAccessConfig;
380
+
381
+ /**
382
+ * Information about the associated integration
383
+ */
187
384
  toolkit: Item.Toolkit;
188
385
 
189
386
  /**
190
- * The unique id of the auth config
387
+ * The type of the authentication configuration (custom or default)
388
+ */
389
+ type: 'default' | 'custom';
390
+
391
+ /**
392
+ * The UUID of the authentication configuration (for backward compatibility)
191
393
  */
192
394
  uuid: string;
193
395
 
396
+ /**
397
+ * The authentication scheme used (e.g., OAuth2, API Key, etc.)
398
+ */
194
399
  auth_scheme?:
195
400
  | 'OAUTH2'
196
401
  | 'OAUTH1'
197
- | 'OAUTH1A'
198
402
  | 'API_KEY'
199
403
  | 'BASIC'
200
404
  | 'BILLCOM_AUTH'
@@ -202,59 +406,151 @@ export namespace AuthConfigListResponse {
202
406
  | 'GOOGLE_SERVICE_ACCOUNT'
203
407
  | 'NO_AUTH'
204
408
  | 'BASIC_WITH_JWT'
205
- | 'COMPOSIO_LINK'
206
409
  | 'CALCOM_AUTH'
207
- | 'SNOWFLAKE';
410
+ | 'SERVICE_ACCOUNT'
411
+ | 'SAML'
412
+ | 'DCR_OAUTH'
413
+ | 'S2S_OAUTH2';
208
414
 
209
415
  /**
210
- * The date and time the auth config was created
416
+ * ISO 8601 date-time when the auth config was created
211
417
  */
212
418
  created_at?: string;
213
419
 
214
420
  /**
215
- * The user who created the auth config
421
+ * The identifier of the user who created the auth config
216
422
  */
217
423
  created_by?: string;
218
424
 
219
- credentials?: Record<string, unknown>;
425
+ /**
426
+ * The authentication credentials (tokens, keys, etc.) - may be partially hidden
427
+ * for security
428
+ */
429
+ credentials?: { [key: string]: unknown };
430
+
431
+ /**
432
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
433
+ */
434
+ deprecated_params?: Item.DeprecatedParams;
220
435
 
436
+ /**
437
+ * Fields expected during connection initialization
438
+ */
221
439
  expected_input_fields?: Array<unknown>;
222
440
 
441
+ /**
442
+ * Whether this authentication configuration is managed by Composio or the user
443
+ */
223
444
  is_composio_managed?: boolean;
224
445
 
225
446
  /**
226
- * The date and time the auth config was last updated
447
+ * Whether this auth config is enabled for tool router
448
+ */
449
+ is_enabled_for_tool_router?: boolean;
450
+
451
+ /**
452
+ * ISO 8601 date-time when the auth config was last updated
227
453
  */
228
454
  last_updated_at?: string;
455
+
456
+ proxy_config?: Item.ProxyConfig | null;
457
+
458
+ /**
459
+ * @deprecated Use tool_access_config instead. This field will be deprecated in the
460
+ * future.
461
+ */
462
+ restrict_to_following_tools?: Array<string>;
463
+
464
+ /**
465
+ * [EXPERIMENTAL] Shared credentials that will be inherited by all connected
466
+ * accounts using this auth config
467
+ */
468
+ shared_credentials?: { [key: string]: unknown };
229
469
  }
230
470
 
231
471
  export namespace Item {
472
+ export interface ToolAccessConfig {
473
+ /**
474
+ * The actions that the user can perform on the auth config. If passed, this will
475
+ * update the actions that the user can perform on the auth config.
476
+ */
477
+ tools_available_for_execution?: Array<string>;
478
+
479
+ /**
480
+ * Tools used to generate the minimum required scopes for the auth config (only
481
+ * valid for OAuth). If passed, this will update the scopes.
482
+ */
483
+ tools_for_connected_account_creation?: Array<string>;
484
+ }
485
+
486
+ /**
487
+ * Information about the associated integration
488
+ */
232
489
  export interface Toolkit {
233
490
  /**
234
- * The logo of the app
491
+ * The URL to the integration app's logo image
235
492
  */
236
493
  logo: string;
237
494
 
238
495
  /**
239
- * The unique key of the app
496
+ * The unique identifier of the integration app
240
497
  */
241
498
  slug: string;
499
+
500
+ /**
501
+ * URL to a guide page with authentication setup instructions
502
+ */
503
+ auth_guide_url?: string | null;
504
+
505
+ /**
506
+ * URL to a page where users can obtain or configure credentials
507
+ */
508
+ auth_hint_url?: string | null;
242
509
  }
243
- }
244
- }
245
510
 
246
- export interface AuthConfigDeleteResponse {
247
- message: string;
511
+ /**
512
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
513
+ */
514
+ export interface DeprecatedParams {
515
+ /**
516
+ * Deprecated: Default connector ID
517
+ */
518
+ default_connector_id: string | null;
248
519
 
249
- success: boolean;
250
- }
520
+ /**
521
+ * Deprecated: Fields expected during connection initialization
522
+ */
523
+ expected_input_fields?: Array<{ [key: string]: unknown }>;
251
524
 
252
- export interface AuthConfigUpdateStatusResponse {
253
- message: string;
525
+ /**
526
+ * Deprecated: Member UUID
527
+ */
528
+ member_uuid?: string;
254
529
 
255
- success: boolean;
530
+ /**
531
+ * Deprecated: Toolkit ID
532
+ */
533
+ toolkit_id?: string;
534
+ }
535
+
536
+ export interface ProxyConfig {
537
+ /**
538
+ * The url of the auth proxy
539
+ */
540
+ proxy_url: string;
541
+
542
+ /**
543
+ * The auth key for the auth proxy
544
+ */
545
+ proxy_auth_key?: string;
546
+ }
547
+ }
256
548
  }
257
549
 
550
+ export type AuthConfigDeleteResponse = unknown;
551
+
552
+ export type AuthConfigUpdateStatusResponse = unknown;
553
+
258
554
  export interface AuthConfigCreateParams {
259
555
  toolkit: AuthConfigCreateParams.Toolkit;
260
556
 
@@ -264,7 +560,7 @@ export interface AuthConfigCreateParams {
264
560
  export namespace AuthConfigCreateParams {
265
561
  export interface Toolkit {
266
562
  /**
267
- * List of app unique keys to filter by
563
+ * Toolkit slug to create auth config for
268
564
  */
269
565
  slug: string;
270
566
  }
@@ -272,19 +568,53 @@ export namespace AuthConfigCreateParams {
272
568
  export interface UnionMember0 {
273
569
  type: 'use_composio_managed_auth';
274
570
 
275
- credentials?: Record<string, string | boolean | number>;
571
+ credentials?: UnionMember0.Credentials;
572
+
573
+ /**
574
+ * Whether this auth config is enabled for tool router
575
+ */
576
+ is_enabled_for_tool_router?: boolean;
276
577
 
277
578
  /**
278
579
  * The name of the integration
279
580
  */
280
581
  name?: string;
582
+
583
+ /**
584
+ * @deprecated Use tool_access_config instead. This field will be deprecated in the
585
+ * future.
586
+ */
587
+ restrict_to_following_tools?: Array<string>;
588
+
589
+ /**
590
+ * [EXPERIMENTAL] Shared credentials that will be inherited by all connected
591
+ * accounts using this auth config
592
+ */
593
+ shared_credentials?: { [key: string]: unknown };
594
+
595
+ tool_access_config?: UnionMember0.ToolAccessConfig;
596
+ }
597
+
598
+ export namespace UnionMember0 {
599
+ export interface Credentials {
600
+ scopes?: string | Array<string>;
601
+
602
+ user_scopes?: string | Array<string>;
603
+ }
604
+
605
+ export interface ToolAccessConfig {
606
+ /**
607
+ * Tools used to generate the minimum required scopes for the auth config (only
608
+ * valid for OAuth). If passed, this will update the scopes.
609
+ */
610
+ tools_for_connected_account_creation?: Array<string>;
611
+ }
281
612
  }
282
613
 
283
614
  export interface UnionMember1 {
284
615
  authScheme:
285
616
  | 'OAUTH2'
286
617
  | 'OAUTH1'
287
- | 'OAUTH1A'
288
618
  | 'API_KEY'
289
619
  | 'BASIC'
290
620
  | 'BILLCOM_AUTH'
@@ -292,57 +622,241 @@ export namespace AuthConfigCreateParams {
292
622
  | 'GOOGLE_SERVICE_ACCOUNT'
293
623
  | 'NO_AUTH'
294
624
  | 'BASIC_WITH_JWT'
295
- | 'COMPOSIO_LINK'
296
625
  | 'CALCOM_AUTH'
297
- | 'SNOWFLAKE';
298
-
299
- credentials: Record<string, string | boolean | number>;
626
+ | 'SERVICE_ACCOUNT'
627
+ | 'SAML'
628
+ | 'DCR_OAUTH'
629
+ | 'S2S_OAUTH2';
300
630
 
301
631
  type: 'use_custom_auth';
302
632
 
633
+ credentials?: UnionMember1.Credentials;
634
+
635
+ /**
636
+ * Whether this auth config is enabled for tool router
637
+ */
638
+ is_enabled_for_tool_router?: boolean;
639
+
303
640
  /**
304
641
  * The name of the integration
305
642
  */
306
643
  name?: string;
644
+
645
+ proxy_config?: UnionMember1.ProxyConfig | null;
646
+
647
+ /**
648
+ * @deprecated Use tool_access_config instead. This field will be deprecated in the
649
+ * future.
650
+ */
651
+ restrict_to_following_tools?: Array<string>;
652
+
653
+ /**
654
+ * [EXPERIMENTAL] Shared credentials that will be inherited by all connected
655
+ * accounts using this auth config
656
+ */
657
+ shared_credentials?: { [key: string]: unknown };
658
+
659
+ tool_access_config?: UnionMember1.ToolAccessConfig;
307
660
  }
308
- }
309
661
 
310
- export interface AuthConfigUpdateParams {
311
- auth_config: AuthConfigUpdateParams.AuthConfig;
662
+ export namespace UnionMember1 {
663
+ export interface Credentials {
664
+ scopes?: string | Array<string>;
665
+
666
+ user_scopes?: string | Array<string>;
667
+ }
668
+
669
+ export interface ProxyConfig {
670
+ /**
671
+ * The url of the auth proxy
672
+ */
673
+ proxy_url: string;
674
+
675
+ /**
676
+ * The auth key for the auth proxy
677
+ */
678
+ proxy_auth_key?: string;
679
+ }
680
+
681
+ export interface ToolAccessConfig {
682
+ /**
683
+ * Tools used to generate the minimum required scopes for the auth config (only
684
+ * valid for OAuth). If passed, this will update the scopes.
685
+ */
686
+ tools_for_connected_account_creation?: Array<string>;
687
+ }
688
+ }
312
689
  }
313
690
 
314
- export namespace AuthConfigUpdateParams {
315
- export interface AuthConfig {
691
+ export type AuthConfigUpdateParams = AuthConfigUpdateParams.Variant0 | AuthConfigUpdateParams.Variant1;
692
+
693
+ export declare namespace AuthConfigUpdateParams {
694
+ export interface Variant0 {
695
+ type: 'custom';
696
+
697
+ credentials?: Variant0.Credentials;
698
+
699
+ /**
700
+ * Whether this auth config is enabled for tool router
701
+ */
702
+ is_enabled_for_tool_router?: boolean;
703
+
704
+ /**
705
+ * The display name of the authentication configuration
706
+ */
707
+ name?: string;
708
+
709
+ proxy_config?: Variant0.ProxyConfig | null;
710
+
711
+ /**
712
+ * @deprecated Use tool_access_config instead. This field will be deprecated in the
713
+ * future.
714
+ */
715
+ restrict_to_following_tools?: Array<string>;
716
+
717
+ /**
718
+ * Shared credentials that will be inherited by connected accounts. For eg: this
719
+ * can be used to share the API key for a tool with all connected accounts using
720
+ * this auth config.
721
+ */
722
+ shared_credentials?: { [key: string]: unknown };
723
+
724
+ tool_access_config?: Variant0.ToolAccessConfig;
725
+ }
726
+
727
+ export namespace Variant0 {
728
+ export interface Credentials {
729
+ scopes?: string | Array<string>;
730
+
731
+ user_scopes?: string | Array<string>;
732
+ }
733
+
734
+ export interface ProxyConfig {
735
+ /**
736
+ * The url of the auth proxy
737
+ */
738
+ proxy_url: string;
739
+
740
+ /**
741
+ * The auth key for the auth proxy
742
+ */
743
+ proxy_auth_key?: string;
744
+ }
745
+
746
+ export interface ToolAccessConfig {
747
+ /**
748
+ * The actions that the user can perform on the auth config. If passed, this will
749
+ * update the actions that the user can perform on the auth config.
750
+ */
751
+ tools_available_for_execution?: Array<string>;
752
+
753
+ /**
754
+ * Tools used to generate the minimum required scopes for the auth config (only
755
+ * valid for OAuth). If passed, this will update the scopes.
756
+ */
757
+ tools_for_connected_account_creation?: Array<string>;
758
+ }
759
+ }
760
+
761
+ export interface Variant1 {
762
+ type: 'default';
763
+
764
+ /**
765
+ * Whether this auth config is enabled for tool router
766
+ */
767
+ is_enabled_for_tool_router?: boolean;
768
+
316
769
  /**
317
- * Authentication configuration
770
+ * The display name of the authentication configuration
318
771
  */
319
- credentials?: Record<string, unknown>;
772
+ name?: string;
773
+
774
+ /**
775
+ * @deprecated Use tool_access_config instead. This field will be deprecated in the
776
+ * future.
777
+ */
778
+ restrict_to_following_tools?: Array<string>;
779
+
780
+ scopes?: string | Array<string>;
781
+
782
+ /**
783
+ * Shared credentials that will be inherited by connected accounts. For eg: this
784
+ * can be used to share the API key for a tool with all connected accounts using
785
+ * this auth config.
786
+ */
787
+ shared_credentials?: { [key: string]: unknown };
788
+
789
+ tool_access_config?: Variant1.ToolAccessConfig;
790
+
791
+ user_scopes?: string | Array<string>;
792
+ }
793
+
794
+ export namespace Variant1 {
795
+ export interface ToolAccessConfig {
796
+ /**
797
+ * The actions that the user can perform on the auth config. If passed, this will
798
+ * update the actions that the user can perform on the auth config.
799
+ */
800
+ tools_available_for_execution?: Array<string>;
801
+
802
+ /**
803
+ * Tools used to generate the minimum required scopes for the auth config (only
804
+ * valid for OAuth). If passed, this will update the scopes.
805
+ */
806
+ tools_for_connected_account_creation?: Array<string>;
807
+ }
320
808
  }
321
809
  }
322
810
 
323
811
  export interface AuthConfigListParams {
324
812
  /**
325
- * The cursor to paginate through the auth configs
813
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
814
+ * limit. The page is the page number and the limit is the number of items per
815
+ * page. The cursor is used to paginate through the items. The cursor is not
816
+ * required for the first page.
326
817
  */
327
818
  cursor?: string;
328
819
 
820
+ /**
821
+ * @deprecated The app id to filter by
822
+ */
823
+ deprecated_app_id?: string;
824
+
825
+ /**
826
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
827
+ */
828
+ deprecated_status?: string;
829
+
329
830
  /**
330
831
  * Whether to filter by composio managed auth configs
331
832
  */
332
833
  is_composio_managed?: string | boolean;
333
834
 
334
835
  /**
335
- * The number of auth configs to return
836
+ * Number of items per page, max allowed is 1000
336
837
  */
337
- limit?: string;
838
+ limit?: number | null;
338
839
 
339
840
  /**
340
- * The slug of the toolkit to filter by
841
+ * Search auth configs by name or id
842
+ */
843
+ search?: string;
844
+
845
+ /**
846
+ * Show disabled auth configs
847
+ */
848
+ show_disabled?: boolean | null;
849
+
850
+ /**
851
+ * Comma-separated list of toolkit slugs to filter auth configs by
341
852
  */
342
853
  toolkit_slug?: string;
343
854
  }
344
855
 
345
856
  export interface AuthConfigUpdateStatusParams {
857
+ /**
858
+ * The unique identifier of the authentication configuration to update
859
+ */
346
860
  nanoid: string;
347
861
  }
348
862