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

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