@composio/client 0.1.0-alpha.9 → 2.0.0-rc.10

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 (826) hide show
  1. package/README.md +99 -315
  2. package/dist/api-key-revocation-CMby8GRJ.mjs +25 -0
  3. package/dist/auth-Cogku2no.mjs +17 -0
  4. package/dist/auth-configs-Dgujwvul.mjs +55 -0
  5. package/dist/clanker-Ddf6to-5.mjs +24 -0
  6. package/dist/cli-Bx3dRctN.mjs +45 -0
  7. package/dist/config-BLBbhLe1.mjs +10 -0
  8. package/dist/config-DnyMhILW.d.mts +9 -0
  9. package/dist/connected-accounts-DNOWcz-A.mjs +83 -0
  10. package/dist/consumer-B_ccSE7b.mjs +34 -0
  11. package/dist/custom-CEy4IB_M.mjs +88 -0
  12. package/dist/custom-JHvAPJnl.mjs +24 -0
  13. package/dist/error-DLB1uKM3.mjs +109 -0
  14. package/dist/files-C74URe8c.mjs +31 -0
  15. package/dist/files-CxbSR_Qf.mjs +49 -0
  16. package/dist/generate-Cfcp7BDV.mjs +24 -0
  17. package/dist/generated-operations-DpYfIPgx.mjs +2312 -0
  18. package/dist/index.d.mts +5 -0
  19. package/dist/index.mjs +576 -0
  20. package/dist/keyring-DPTbHLph.mjs +17 -0
  21. package/dist/link-HtoYUvao.mjs +23 -0
  22. package/dist/logs-B1kxIBDI.mjs +38 -0
  23. package/dist/manage-Cv_zl1Pa.mjs +28 -0
  24. package/dist/mcp-DPHzA1Gg.mjs +91 -0
  25. package/dist/migration-CBhnoN-Y.mjs +10 -0
  26. package/dist/migration-CKGKuRO3.d.mts +9 -0
  27. package/dist/org-DfPJHXZ4.mjs +45 -0
  28. package/dist/owner-BOJ0ppd_.mjs +17 -0
  29. package/dist/pagination.d.mts +56 -0
  30. package/dist/pagination.mjs +50 -0
  31. package/dist/project-CBh3olOE.mjs +29 -0
  32. package/dist/project-Cyn5wfjX.mjs +25 -0
  33. package/dist/project-DgHmeDvz.mjs +47 -0
  34. package/dist/project-z2RqqvAR.mjs +22 -0
  35. package/dist/realtime-AhDHHK8s.mjs +28 -0
  36. package/dist/resources/api-key-revocation.d.mts +2 -0
  37. package/dist/resources/api-key-revocation.mjs +3 -0
  38. package/dist/resources/auth/auth.d.mts +2 -0
  39. package/dist/resources/auth/auth.mjs +3 -0
  40. package/dist/resources/auth/index.d.mts +2 -0
  41. package/dist/resources/auth/index.mjs +4 -0
  42. package/dist/resources/auth/session.d.mts +2 -0
  43. package/dist/resources/auth/session.mjs +3 -0
  44. package/dist/resources/auth-configs.d.mts +2 -0
  45. package/dist/resources/auth-configs.mjs +3 -0
  46. package/dist/resources/auth.d.mts +2 -0
  47. package/dist/resources/auth.mjs +5 -0
  48. package/dist/resources/cli/cli.d.mts +2 -0
  49. package/dist/resources/cli/cli.mjs +3 -0
  50. package/dist/resources/cli/index.d.mts +2 -0
  51. package/dist/resources/cli/index.mjs +4 -0
  52. package/dist/resources/cli/realtime.d.mts +2 -0
  53. package/dist/resources/cli/realtime.mjs +3 -0
  54. package/dist/resources/cli.d.mts +2 -0
  55. package/dist/resources/cli.mjs +5 -0
  56. package/dist/resources/connected-accounts.d.mts +2 -0
  57. package/dist/resources/connected-accounts.mjs +3 -0
  58. package/dist/resources/custom.d.mts +2 -0
  59. package/dist/resources/custom.mjs +3 -0
  60. package/dist/resources/files.d.mts +2 -0
  61. package/dist/resources/files.mjs +3 -0
  62. package/dist/resources/index.d.mts +3 -0
  63. package/dist/resources/index.mjs +16 -0
  64. package/dist/resources/keyring.d.mts +2 -0
  65. package/dist/resources/keyring.mjs +3 -0
  66. package/dist/resources/link.d.mts +2 -0
  67. package/dist/resources/link.mjs +3 -0
  68. package/dist/resources/logs/index.d.mts +2 -0
  69. package/dist/resources/logs/index.mjs +5 -0
  70. package/dist/resources/logs/logs.d.mts +2 -0
  71. package/dist/resources/logs/logs.mjs +3 -0
  72. package/dist/resources/logs/tools.d.mts +2 -0
  73. package/dist/resources/logs/tools.mjs +3 -0
  74. package/dist/resources/logs/triggers.d.mts +2 -0
  75. package/dist/resources/logs/triggers.mjs +3 -0
  76. package/dist/resources/logs.d.mts +2 -0
  77. package/dist/resources/logs.mjs +6 -0
  78. package/dist/resources/mcp/custom.d.mts +2 -0
  79. package/dist/resources/mcp/custom.mjs +3 -0
  80. package/dist/resources/mcp/generate.d.mts +2 -0
  81. package/dist/resources/mcp/generate.mjs +3 -0
  82. package/dist/resources/mcp/index.d.mts +2 -0
  83. package/dist/resources/mcp/index.mjs +5 -0
  84. package/dist/resources/mcp/mcp.d.mts +2 -0
  85. package/dist/resources/mcp/mcp.mjs +3 -0
  86. package/dist/resources/mcp.d.mts +2 -0
  87. package/dist/resources/mcp.mjs +6 -0
  88. package/dist/resources/migration.d.mts +2 -0
  89. package/dist/resources/migration.mjs +3 -0
  90. package/dist/resources/org/clanker.d.mts +2 -0
  91. package/dist/resources/org/clanker.mjs +3 -0
  92. package/dist/resources/org/consumer/consumer.d.mts +2 -0
  93. package/dist/resources/org/consumer/consumer.mjs +3 -0
  94. package/dist/resources/org/consumer/index.d.mts +2 -0
  95. package/dist/resources/org/consumer/index.mjs +4 -0
  96. package/dist/resources/org/consumer/project.d.mts +2 -0
  97. package/dist/resources/org/consumer/project.mjs +3 -0
  98. package/dist/resources/org/consumer.d.mts +2 -0
  99. package/dist/resources/org/consumer.mjs +5 -0
  100. package/dist/resources/org/index.d.mts +2 -0
  101. package/dist/resources/org/index.mjs +8 -0
  102. package/dist/resources/org/org.d.mts +2 -0
  103. package/dist/resources/org/org.mjs +3 -0
  104. package/dist/resources/org/owner/index.d.mts +2 -0
  105. package/dist/resources/org/owner/index.mjs +4 -0
  106. package/dist/resources/org/owner/owner.d.mts +2 -0
  107. package/dist/resources/org/owner/owner.mjs +3 -0
  108. package/dist/resources/org/owner/project.d.mts +2 -0
  109. package/dist/resources/org/owner/project.mjs +3 -0
  110. package/dist/resources/org/owner.d.mts +2 -0
  111. package/dist/resources/org/owner.mjs +5 -0
  112. package/dist/resources/org/project.d.mts +2 -0
  113. package/dist/resources/org/project.mjs +3 -0
  114. package/dist/resources/org/usage.d.mts +2 -0
  115. package/dist/resources/org/usage.mjs +3 -0
  116. package/dist/resources/org.d.mts +2 -0
  117. package/dist/resources/org.mjs +9 -0
  118. package/dist/resources/project/config.d.mts +2 -0
  119. package/dist/resources/project/config.mjs +3 -0
  120. package/dist/resources/project/index.d.mts +3 -0
  121. package/dist/resources/project/index.mjs +4 -0
  122. package/dist/resources/project/project.d.mts +2 -0
  123. package/dist/resources/project/project.mjs +3 -0
  124. package/dist/resources/project/usage.d.mts +2 -0
  125. package/dist/resources/project/usage.mjs +3 -0
  126. package/dist/resources/project.d.mts +3 -0
  127. package/dist/resources/project.mjs +5 -0
  128. package/dist/resources/session-configs.d.mts +2 -0
  129. package/dist/resources/session-configs.mjs +24 -0
  130. package/dist/resources/tool-router/index.d.mts +2 -0
  131. package/dist/resources/tool-router/index.mjs +4 -0
  132. package/dist/resources/tool-router/session/files.d.mts +2 -0
  133. package/dist/resources/tool-router/session/files.mjs +3 -0
  134. package/dist/resources/tool-router/session/index.d.mts +2 -0
  135. package/dist/resources/tool-router/session/index.mjs +4 -0
  136. package/dist/resources/tool-router/session/session.d.mts +2 -0
  137. package/dist/resources/tool-router/session/session.mjs +3 -0
  138. package/dist/resources/tool-router/session.d.mts +2 -0
  139. package/dist/resources/tool-router/session.mjs +5 -0
  140. package/dist/resources/tool-router/tool-router.d.mts +2 -0
  141. package/dist/resources/tool-router/tool-router.mjs +3 -0
  142. package/dist/resources/tool-router.d.mts +2 -0
  143. package/dist/resources/tool-router.mjs +5 -0
  144. package/dist/resources/toolkits.d.mts +2 -0
  145. package/dist/resources/toolkits.mjs +3 -0
  146. package/dist/resources/tools.d.mts +2 -0
  147. package/dist/resources/tools.mjs +3 -0
  148. package/dist/resources/trigger-instances/index.d.mts +2 -0
  149. package/dist/resources/trigger-instances/index.mjs +4 -0
  150. package/dist/resources/trigger-instances/manage.d.mts +2 -0
  151. package/dist/resources/trigger-instances/manage.mjs +3 -0
  152. package/dist/resources/trigger-instances/trigger-instances.d.mts +2 -0
  153. package/dist/resources/trigger-instances/trigger-instances.mjs +3 -0
  154. package/dist/resources/trigger-instances.d.mts +2 -0
  155. package/dist/resources/trigger-instances.mjs +5 -0
  156. package/dist/resources/triggers-types.d.mts +2 -0
  157. package/dist/resources/triggers-types.mjs +3 -0
  158. package/dist/resources/webhook-endpoints.d.mts +2 -0
  159. package/dist/resources/webhook-endpoints.mjs +3 -0
  160. package/dist/resources/webhook-subscriptions.d.mts +2 -0
  161. package/dist/resources/webhook-subscriptions.mjs +3 -0
  162. package/dist/session-DN52ZBZa.mjs +22 -0
  163. package/dist/session-ZjgXXTor.mjs +110 -0
  164. package/dist/session-configs-DBYUrVm-.d.mts +27180 -0
  165. package/dist/tool-router-oEa6XLps.mjs +14 -0
  166. package/dist/toolkits-gnhAqP-a.mjs +62 -0
  167. package/dist/tools-B6EBv0kQ.mjs +33 -0
  168. package/dist/tools-CplwSMIX.mjs +69 -0
  169. package/dist/trigger-instances-BZyLCvgX.mjs +35 -0
  170. package/dist/triggers-tFRN45MV.mjs +28 -0
  171. package/dist/triggers-types-BOXTcipZ.mjs +34 -0
  172. package/dist/usage-DsWhJVDd.mjs +31 -0
  173. package/dist/usage-qjodPLQq.mjs +31 -0
  174. package/dist/webhook-endpoints-Cv2sK6HF.mjs +51 -0
  175. package/dist/webhook-subscriptions-BxPEYH5X.mjs +55 -0
  176. package/package.json +85 -126
  177. package/CHANGELOG.md +0 -96
  178. package/LICENSE +0 -201
  179. package/api-promise.d.mts +0 -2
  180. package/api-promise.d.mts.map +0 -1
  181. package/api-promise.d.ts +0 -2
  182. package/api-promise.d.ts.map +0 -1
  183. package/api-promise.js +0 -19
  184. package/api-promise.js.map +0 -1
  185. package/api-promise.mjs +0 -2
  186. package/api-promise.mjs.map +0 -1
  187. package/client.d.mts +0 -224
  188. package/client.d.mts.map +0 -1
  189. package/client.d.ts +0 -224
  190. package/client.d.ts.map +0 -1
  191. package/client.js +0 -502
  192. package/client.js.map +0 -1
  193. package/client.mjs +0 -475
  194. package/client.mjs.map +0 -1
  195. package/core/api-promise.d.mts +0 -47
  196. package/core/api-promise.d.mts.map +0 -1
  197. package/core/api-promise.d.ts +0 -47
  198. package/core/api-promise.d.ts.map +0 -1
  199. package/core/api-promise.js +0 -84
  200. package/core/api-promise.js.map +0 -1
  201. package/core/api-promise.mjs +0 -80
  202. package/core/api-promise.mjs.map +0 -1
  203. package/core/error.d.mts +0 -47
  204. package/core/error.d.mts.map +0 -1
  205. package/core/error.d.ts +0 -47
  206. package/core/error.d.ts.map +0 -1
  207. package/core/error.js +0 -113
  208. package/core/error.js.map +0 -1
  209. package/core/error.mjs +0 -97
  210. package/core/error.mjs.map +0 -1
  211. package/core/resource.d.mts +0 -6
  212. package/core/resource.d.mts.map +0 -1
  213. package/core/resource.d.ts +0 -6
  214. package/core/resource.d.ts.map +0 -1
  215. package/core/resource.js +0 -11
  216. package/core/resource.js.map +0 -1
  217. package/core/resource.mjs +0 -7
  218. package/core/resource.mjs.map +0 -1
  219. package/core/uploads.d.mts +0 -3
  220. package/core/uploads.d.mts.map +0 -1
  221. package/core/uploads.d.ts +0 -3
  222. package/core/uploads.d.ts.map +0 -1
  223. package/core/uploads.js +0 -6
  224. package/core/uploads.js.map +0 -1
  225. package/core/uploads.mjs +0 -2
  226. package/core/uploads.mjs.map +0 -1
  227. package/error.d.mts +0 -2
  228. package/error.d.mts.map +0 -1
  229. package/error.d.ts +0 -2
  230. package/error.d.ts.map +0 -1
  231. package/error.js +0 -19
  232. package/error.js.map +0 -1
  233. package/error.mjs +0 -2
  234. package/error.mjs.map +0 -1
  235. package/index.d.mts +0 -6
  236. package/index.d.mts.map +0 -1
  237. package/index.d.ts +0 -6
  238. package/index.d.ts.map +0 -1
  239. package/index.js +0 -30
  240. package/index.js.map +0 -1
  241. package/index.mjs +0 -7
  242. package/index.mjs.map +0 -1
  243. package/internal/builtin-types.d.mts +0 -75
  244. package/internal/builtin-types.d.mts.map +0 -1
  245. package/internal/builtin-types.d.ts +0 -75
  246. package/internal/builtin-types.d.ts.map +0 -1
  247. package/internal/builtin-types.js +0 -4
  248. package/internal/builtin-types.js.map +0 -1
  249. package/internal/builtin-types.mjs +0 -3
  250. package/internal/builtin-types.mjs.map +0 -1
  251. package/internal/detect-platform.d.mts +0 -15
  252. package/internal/detect-platform.d.mts.map +0 -1
  253. package/internal/detect-platform.d.ts +0 -15
  254. package/internal/detect-platform.d.ts.map +0 -1
  255. package/internal/detect-platform.js +0 -162
  256. package/internal/detect-platform.js.map +0 -1
  257. package/internal/detect-platform.mjs +0 -157
  258. package/internal/detect-platform.mjs.map +0 -1
  259. package/internal/errors.d.mts +0 -3
  260. package/internal/errors.d.mts.map +0 -1
  261. package/internal/errors.d.ts +0 -3
  262. package/internal/errors.d.ts.map +0 -1
  263. package/internal/errors.js +0 -41
  264. package/internal/errors.js.map +0 -1
  265. package/internal/errors.mjs +0 -36
  266. package/internal/errors.mjs.map +0 -1
  267. package/internal/headers.d.mts +0 -21
  268. package/internal/headers.d.mts.map +0 -1
  269. package/internal/headers.d.ts +0 -21
  270. package/internal/headers.d.ts.map +0 -1
  271. package/internal/headers.js +0 -77
  272. package/internal/headers.js.map +0 -1
  273. package/internal/headers.mjs +0 -72
  274. package/internal/headers.mjs.map +0 -1
  275. package/internal/parse.d.mts +0 -13
  276. package/internal/parse.d.mts.map +0 -1
  277. package/internal/parse.d.ts +0 -13
  278. package/internal/parse.d.ts.map +0 -1
  279. package/internal/parse.js +0 -36
  280. package/internal/parse.js.map +0 -1
  281. package/internal/parse.mjs +0 -32
  282. package/internal/parse.mjs.map +0 -1
  283. package/internal/qs/formats.d.mts +0 -6
  284. package/internal/qs/formats.d.mts.map +0 -1
  285. package/internal/qs/formats.d.ts +0 -6
  286. package/internal/qs/formats.d.ts.map +0 -1
  287. package/internal/qs/formats.js +0 -11
  288. package/internal/qs/formats.js.map +0 -1
  289. package/internal/qs/formats.mjs +0 -8
  290. package/internal/qs/formats.mjs.map +0 -1
  291. package/internal/qs/index.d.mts +0 -10
  292. package/internal/qs/index.d.mts.map +0 -1
  293. package/internal/qs/index.d.ts +0 -10
  294. package/internal/qs/index.d.ts.map +0 -1
  295. package/internal/qs/index.js +0 -14
  296. package/internal/qs/index.js.map +0 -1
  297. package/internal/qs/index.mjs +0 -10
  298. package/internal/qs/index.mjs.map +0 -1
  299. package/internal/qs/stringify.d.mts +0 -3
  300. package/internal/qs/stringify.d.mts.map +0 -1
  301. package/internal/qs/stringify.d.ts +0 -3
  302. package/internal/qs/stringify.d.ts.map +0 -1
  303. package/internal/qs/stringify.js +0 -280
  304. package/internal/qs/stringify.js.map +0 -1
  305. package/internal/qs/stringify.mjs +0 -276
  306. package/internal/qs/stringify.mjs.map +0 -1
  307. package/internal/qs/types.d.mts +0 -57
  308. package/internal/qs/types.d.mts.map +0 -1
  309. package/internal/qs/types.d.ts +0 -57
  310. package/internal/qs/types.d.ts.map +0 -1
  311. package/internal/qs/types.js +0 -3
  312. package/internal/qs/types.js.map +0 -1
  313. package/internal/qs/types.mjs +0 -2
  314. package/internal/qs/types.mjs.map +0 -1
  315. package/internal/qs/utils.d.mts +0 -14
  316. package/internal/qs/utils.d.mts.map +0 -1
  317. package/internal/qs/utils.d.ts +0 -14
  318. package/internal/qs/utils.d.ts.map +0 -1
  319. package/internal/qs/utils.js +0 -229
  320. package/internal/qs/utils.js.map +0 -1
  321. package/internal/qs/utils.mjs +0 -217
  322. package/internal/qs/utils.mjs.map +0 -1
  323. package/internal/request-options.d.mts +0 -33
  324. package/internal/request-options.d.mts.map +0 -1
  325. package/internal/request-options.d.ts +0 -33
  326. package/internal/request-options.d.ts.map +0 -1
  327. package/internal/request-options.js +0 -14
  328. package/internal/request-options.js.map +0 -1
  329. package/internal/request-options.mjs +0 -10
  330. package/internal/request-options.mjs.map +0 -1
  331. package/internal/shim-types.d.mts +0 -28
  332. package/internal/shim-types.d.ts +0 -28
  333. package/internal/shims/crypto.d.mts +0 -13
  334. package/internal/shims/crypto.d.mts.map +0 -1
  335. package/internal/shims/crypto.d.ts +0 -13
  336. package/internal/shims/crypto.d.ts.map +0 -1
  337. package/internal/shims/crypto.js +0 -13
  338. package/internal/shims/crypto.js.map +0 -1
  339. package/internal/shims/crypto.mjs +0 -9
  340. package/internal/shims/crypto.mjs.map +0 -1
  341. package/internal/shims/file.d.mts +0 -23
  342. package/internal/shims/file.d.mts.map +0 -1
  343. package/internal/shims/file.d.ts +0 -23
  344. package/internal/shims/file.d.ts.map +0 -1
  345. package/internal/shims/file.js +0 -16
  346. package/internal/shims/file.js.map +0 -1
  347. package/internal/shims/file.mjs +0 -12
  348. package/internal/shims/file.mjs.map +0 -1
  349. package/internal/shims/getBuiltinModule.d.mts +0 -11
  350. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  351. package/internal/shims/getBuiltinModule.d.ts +0 -11
  352. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  353. package/internal/shims/getBuiltinModule.js +0 -71
  354. package/internal/shims/getBuiltinModule.js.map +0 -1
  355. package/internal/shims/getBuiltinModule.mjs +0 -67
  356. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  357. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  358. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  359. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  360. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  361. package/internal/shims/nullGetBuiltinModule.js +0 -5
  362. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  363. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  364. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  365. package/internal/shims.d.mts +0 -20
  366. package/internal/shims.d.mts.map +0 -1
  367. package/internal/shims.d.ts +0 -20
  368. package/internal/shims.d.ts.map +0 -1
  369. package/internal/shims.js +0 -93
  370. package/internal/shims.js.map +0 -1
  371. package/internal/shims.mjs +0 -85
  372. package/internal/shims.mjs.map +0 -1
  373. package/internal/to-file.d.mts +0 -46
  374. package/internal/to-file.d.mts.map +0 -1
  375. package/internal/to-file.d.ts +0 -46
  376. package/internal/to-file.d.ts.map +0 -1
  377. package/internal/to-file.js +0 -91
  378. package/internal/to-file.js.map +0 -1
  379. package/internal/to-file.mjs +0 -87
  380. package/internal/to-file.mjs.map +0 -1
  381. package/internal/types.d.mts +0 -68
  382. package/internal/types.d.mts.map +0 -1
  383. package/internal/types.d.ts +0 -68
  384. package/internal/types.d.ts.map +0 -1
  385. package/internal/types.js +0 -4
  386. package/internal/types.js.map +0 -1
  387. package/internal/types.mjs +0 -3
  388. package/internal/types.mjs.map +0 -1
  389. package/internal/uploads.d.mts +0 -44
  390. package/internal/uploads.d.mts.map +0 -1
  391. package/internal/uploads.d.ts +0 -44
  392. package/internal/uploads.d.ts.map +0 -1
  393. package/internal/uploads.js +0 -131
  394. package/internal/uploads.js.map +0 -1
  395. package/internal/uploads.mjs +0 -122
  396. package/internal/uploads.mjs.map +0 -1
  397. package/internal/utils/base64.d.mts +0 -3
  398. package/internal/utils/base64.d.mts.map +0 -1
  399. package/internal/utils/base64.d.ts +0 -3
  400. package/internal/utils/base64.d.ts.map +0 -1
  401. package/internal/utils/base64.js +0 -37
  402. package/internal/utils/base64.js.map +0 -1
  403. package/internal/utils/base64.mjs +0 -32
  404. package/internal/utils/base64.mjs.map +0 -1
  405. package/internal/utils/env.d.mts +0 -9
  406. package/internal/utils/env.d.mts.map +0 -1
  407. package/internal/utils/env.d.ts +0 -9
  408. package/internal/utils/env.d.ts.map +0 -1
  409. package/internal/utils/env.js +0 -22
  410. package/internal/utils/env.js.map +0 -1
  411. package/internal/utils/env.mjs +0 -18
  412. package/internal/utils/env.mjs.map +0 -1
  413. package/internal/utils/log.d.mts +0 -38
  414. package/internal/utils/log.d.mts.map +0 -1
  415. package/internal/utils/log.d.ts +0 -38
  416. package/internal/utils/log.d.ts.map +0 -1
  417. package/internal/utils/log.js +0 -86
  418. package/internal/utils/log.js.map +0 -1
  419. package/internal/utils/log.mjs +0 -80
  420. package/internal/utils/log.mjs.map +0 -1
  421. package/internal/utils/path.d.mts +0 -15
  422. package/internal/utils/path.d.mts.map +0 -1
  423. package/internal/utils/path.d.ts +0 -15
  424. package/internal/utils/path.d.ts.map +0 -1
  425. package/internal/utils/path.js +0 -58
  426. package/internal/utils/path.js.map +0 -1
  427. package/internal/utils/path.mjs +0 -53
  428. package/internal/utils/path.mjs.map +0 -1
  429. package/internal/utils/sleep.d.mts +0 -2
  430. package/internal/utils/sleep.d.mts.map +0 -1
  431. package/internal/utils/sleep.d.ts +0 -2
  432. package/internal/utils/sleep.d.ts.map +0 -1
  433. package/internal/utils/sleep.js +0 -7
  434. package/internal/utils/sleep.js.map +0 -1
  435. package/internal/utils/sleep.mjs +0 -3
  436. package/internal/utils/sleep.mjs.map +0 -1
  437. package/internal/utils/uuid.d.mts +0 -5
  438. package/internal/utils/uuid.d.mts.map +0 -1
  439. package/internal/utils/uuid.d.ts +0 -5
  440. package/internal/utils/uuid.d.ts.map +0 -1
  441. package/internal/utils/uuid.js +0 -20
  442. package/internal/utils/uuid.js.map +0 -1
  443. package/internal/utils/uuid.mjs +0 -16
  444. package/internal/utils/uuid.mjs.map +0 -1
  445. package/internal/utils/values.d.mts +0 -16
  446. package/internal/utils/values.d.mts.map +0 -1
  447. package/internal/utils/values.d.ts +0 -16
  448. package/internal/utils/values.d.ts.map +0 -1
  449. package/internal/utils/values.js +0 -109
  450. package/internal/utils/values.js.map +0 -1
  451. package/internal/utils/values.mjs +0 -92
  452. package/internal/utils/values.mjs.map +0 -1
  453. package/internal/utils.d.mts +0 -7
  454. package/internal/utils.d.mts.map +0 -1
  455. package/internal/utils.d.ts +0 -7
  456. package/internal/utils.d.ts.map +0 -1
  457. package/internal/utils.js +0 -24
  458. package/internal/utils.js.map +0 -1
  459. package/internal/utils.mjs +0 -8
  460. package/internal/utils.mjs.map +0 -1
  461. package/resource.d.mts +0 -2
  462. package/resource.d.mts.map +0 -1
  463. package/resource.d.ts +0 -2
  464. package/resource.d.ts.map +0 -1
  465. package/resource.js +0 -19
  466. package/resource.js.map +0 -1
  467. package/resource.mjs +0 -2
  468. package/resource.mjs.map +0 -1
  469. package/resources/action-execution.d.mts +0 -155
  470. package/resources/action-execution.d.mts.map +0 -1
  471. package/resources/action-execution.d.ts +0 -155
  472. package/resources/action-execution.d.ts.map +0 -1
  473. package/resources/action-execution.js +0 -19
  474. package/resources/action-execution.js.map +0 -1
  475. package/resources/action-execution.mjs +0 -15
  476. package/resources/action-execution.mjs.map +0 -1
  477. package/resources/auth/auth.d.mts +0 -10
  478. package/resources/auth/auth.d.mts.map +0 -1
  479. package/resources/auth/auth.d.ts +0 -10
  480. package/resources/auth/auth.d.ts.map +0 -1
  481. package/resources/auth/auth.js +0 -39
  482. package/resources/auth/auth.js.map +0 -1
  483. package/resources/auth/auth.mjs +0 -12
  484. package/resources/auth/auth.mjs.map +0 -1
  485. package/resources/auth/index.d.mts +0 -3
  486. package/resources/auth/index.d.mts.map +0 -1
  487. package/resources/auth/index.d.ts +0 -3
  488. package/resources/auth/index.d.ts.map +0 -1
  489. package/resources/auth/index.js +0 -9
  490. package/resources/auth/index.js.map +0 -1
  491. package/resources/auth/index.mjs +0 -4
  492. package/resources/auth/index.mjs.map +0 -1
  493. package/resources/auth/session.d.mts +0 -75
  494. package/resources/auth/session.d.mts.map +0 -1
  495. package/resources/auth/session.d.ts +0 -75
  496. package/resources/auth/session.d.ts.map +0 -1
  497. package/resources/auth/session.js +0 -12
  498. package/resources/auth/session.js.map +0 -1
  499. package/resources/auth/session.mjs +0 -8
  500. package/resources/auth/session.mjs.map +0 -1
  501. package/resources/auth-configs.d.mts +0 -217
  502. package/resources/auth-configs.d.mts.map +0 -1
  503. package/resources/auth-configs.d.ts +0 -217
  504. package/resources/auth-configs.d.ts.map +0 -1
  505. package/resources/auth-configs.js +0 -29
  506. package/resources/auth-configs.js.map +0 -1
  507. package/resources/auth-configs.mjs +0 -25
  508. package/resources/auth-configs.mjs.map +0 -1
  509. package/resources/auth.d.mts +0 -2
  510. package/resources/auth.d.mts.map +0 -1
  511. package/resources/auth.d.ts +0 -2
  512. package/resources/auth.d.ts.map +0 -1
  513. package/resources/auth.js +0 -19
  514. package/resources/auth.js.map +0 -1
  515. package/resources/auth.mjs +0 -3
  516. package/resources/auth.mjs.map +0 -1
  517. package/resources/cli.d.mts +0 -124
  518. package/resources/cli.d.mts.map +0 -1
  519. package/resources/cli.d.ts +0 -124
  520. package/resources/cli.d.ts.map +0 -1
  521. package/resources/cli.js +0 -18
  522. package/resources/cli.js.map +0 -1
  523. package/resources/cli.mjs +0 -14
  524. package/resources/cli.mjs.map +0 -1
  525. package/resources/connected-accounts.d.mts +0 -449
  526. package/resources/connected-accounts.d.mts.map +0 -1
  527. package/resources/connected-accounts.d.ts +0 -449
  528. package/resources/connected-accounts.d.ts.map +0 -1
  529. package/resources/connected-accounts.js +0 -28
  530. package/resources/connected-accounts.js.map +0 -1
  531. package/resources/connected-accounts.mjs +0 -24
  532. package/resources/connected-accounts.mjs.map +0 -1
  533. package/resources/index.d.mts +0 -14
  534. package/resources/index.d.mts.map +0 -1
  535. package/resources/index.d.ts +0 -14
  536. package/resources/index.d.ts.map +0 -1
  537. package/resources/index.js +0 -31
  538. package/resources/index.js.map +0 -1
  539. package/resources/index.mjs +0 -15
  540. package/resources/index.mjs.map +0 -1
  541. package/resources/mcp/command.d.mts +0 -34
  542. package/resources/mcp/command.d.mts.map +0 -1
  543. package/resources/mcp/command.d.ts +0 -34
  544. package/resources/mcp/command.d.ts.map +0 -1
  545. package/resources/mcp/command.js +0 -12
  546. package/resources/mcp/command.js.map +0 -1
  547. package/resources/mcp/command.mjs +0 -8
  548. package/resources/mcp/command.mjs.map +0 -1
  549. package/resources/mcp/index.d.mts +0 -3
  550. package/resources/mcp/index.d.mts.map +0 -1
  551. package/resources/mcp/index.d.ts +0 -3
  552. package/resources/mcp/index.d.ts.map +0 -1
  553. package/resources/mcp/index.js +0 -9
  554. package/resources/mcp/index.js.map +0 -1
  555. package/resources/mcp/index.mjs +0 -4
  556. package/resources/mcp/index.mjs.map +0 -1
  557. package/resources/mcp/mcp.d.mts +0 -378
  558. package/resources/mcp/mcp.d.mts.map +0 -1
  559. package/resources/mcp/mcp.d.ts +0 -378
  560. package/resources/mcp/mcp.d.ts.map +0 -1
  561. package/resources/mcp/mcp.js +0 -66
  562. package/resources/mcp/mcp.js.map +0 -1
  563. package/resources/mcp/mcp.mjs +0 -39
  564. package/resources/mcp/mcp.mjs.map +0 -1
  565. package/resources/mcp.d.mts +0 -2
  566. package/resources/mcp.d.mts.map +0 -1
  567. package/resources/mcp.d.ts +0 -2
  568. package/resources/mcp.d.ts.map +0 -1
  569. package/resources/mcp.js +0 -19
  570. package/resources/mcp.js.map +0 -1
  571. package/resources/mcp.mjs +0 -3
  572. package/resources/mcp.mjs.map +0 -1
  573. package/resources/org/api-key.d.mts +0 -17
  574. package/resources/org/api-key.d.mts.map +0 -1
  575. package/resources/org/api-key.d.ts +0 -17
  576. package/resources/org/api-key.d.ts.map +0 -1
  577. package/resources/org/api-key.js +0 -15
  578. package/resources/org/api-key.js.map +0 -1
  579. package/resources/org/api-key.mjs +0 -11
  580. package/resources/org/api-key.mjs.map +0 -1
  581. package/resources/org/index.d.mts +0 -4
  582. package/resources/org/index.d.mts.map +0 -1
  583. package/resources/org/index.d.ts +0 -4
  584. package/resources/org/index.d.ts.map +0 -1
  585. package/resources/org/index.js +0 -11
  586. package/resources/org/index.js.map +0 -1
  587. package/resources/org/index.mjs +0 -5
  588. package/resources/org/index.mjs.map +0 -1
  589. package/resources/org/org.d.mts +0 -14
  590. package/resources/org/org.d.mts.map +0 -1
  591. package/resources/org/org.d.ts +0 -14
  592. package/resources/org/org.d.ts.map +0 -1
  593. package/resources/org/org.js +0 -43
  594. package/resources/org/org.js.map +0 -1
  595. package/resources/org/org.mjs +0 -16
  596. package/resources/org/org.mjs.map +0 -1
  597. package/resources/org/project/api-keys.d.mts +0 -109
  598. package/resources/org/project/api-keys.d.mts.map +0 -1
  599. package/resources/org/project/api-keys.d.ts +0 -109
  600. package/resources/org/project/api-keys.d.ts.map +0 -1
  601. package/resources/org/project/api-keys.js +0 -23
  602. package/resources/org/project/api-keys.js.map +0 -1
  603. package/resources/org/project/api-keys.mjs +0 -19
  604. package/resources/org/project/api-keys.mjs.map +0 -1
  605. package/resources/org/project/index.d.mts +0 -5
  606. package/resources/org/project/index.d.mts.map +0 -1
  607. package/resources/org/project/index.d.ts +0 -5
  608. package/resources/org/project/index.d.ts.map +0 -1
  609. package/resources/org/project/index.js +0 -13
  610. package/resources/org/project/index.js.map +0 -1
  611. package/resources/org/project/index.mjs +0 -6
  612. package/resources/org/project/index.mjs.map +0 -1
  613. package/resources/org/project/project.d.mts +0 -90
  614. package/resources/org/project/project.d.mts.map +0 -1
  615. package/resources/org/project/project.d.ts +0 -90
  616. package/resources/org/project/project.d.ts.map +0 -1
  617. package/resources/org/project/project.js +0 -60
  618. package/resources/org/project/project.js.map +0 -1
  619. package/resources/org/project/project.mjs +0 -33
  620. package/resources/org/project/project.mjs.map +0 -1
  621. package/resources/org/project/trigger.d.mts +0 -51
  622. package/resources/org/project/trigger.d.mts.map +0 -1
  623. package/resources/org/project/trigger.d.ts +0 -51
  624. package/resources/org/project/trigger.d.ts.map +0 -1
  625. package/resources/org/project/trigger.js +0 -16
  626. package/resources/org/project/trigger.js.map +0 -1
  627. package/resources/org/project/trigger.mjs +0 -12
  628. package/resources/org/project/trigger.mjs.map +0 -1
  629. package/resources/org/project/webhook.d.mts +0 -92
  630. package/resources/org/project/webhook.d.mts.map +0 -1
  631. package/resources/org/project/webhook.d.ts +0 -92
  632. package/resources/org/project/webhook.d.ts.map +0 -1
  633. package/resources/org/project/webhook.js +0 -24
  634. package/resources/org/project/webhook.js.map +0 -1
  635. package/resources/org/project/webhook.mjs +0 -20
  636. package/resources/org/project/webhook.mjs.map +0 -1
  637. package/resources/org/project.d.mts +0 -2
  638. package/resources/org/project.d.mts.map +0 -1
  639. package/resources/org/project.d.ts +0 -2
  640. package/resources/org/project.d.ts.map +0 -1
  641. package/resources/org/project.js +0 -19
  642. package/resources/org/project.js.map +0 -1
  643. package/resources/org/project.mjs +0 -3
  644. package/resources/org/project.mjs.map +0 -1
  645. package/resources/org.d.mts +0 -2
  646. package/resources/org.d.mts.map +0 -1
  647. package/resources/org.d.ts +0 -2
  648. package/resources/org.d.ts.map +0 -1
  649. package/resources/org.js +0 -19
  650. package/resources/org.js.map +0 -1
  651. package/resources/org.mjs +0 -3
  652. package/resources/org.mjs.map +0 -1
  653. package/resources/team-members.d.mts +0 -57
  654. package/resources/team-members.d.mts.map +0 -1
  655. package/resources/team-members.d.ts +0 -57
  656. package/resources/team-members.d.ts.map +0 -1
  657. package/resources/team-members.js +0 -22
  658. package/resources/team-members.js.map +0 -1
  659. package/resources/team-members.mjs +0 -18
  660. package/resources/team-members.mjs.map +0 -1
  661. package/resources/toolkits.d.mts +0 -141
  662. package/resources/toolkits.d.mts.map +0 -1
  663. package/resources/toolkits.d.ts +0 -141
  664. package/resources/toolkits.d.ts.map +0 -1
  665. package/resources/toolkits.js +0 -19
  666. package/resources/toolkits.js.map +0 -1
  667. package/resources/toolkits.mjs +0 -15
  668. package/resources/toolkits.mjs.map +0 -1
  669. package/resources/tools.d.mts +0 -210
  670. package/resources/tools.d.mts.map +0 -1
  671. package/resources/tools.d.ts +0 -210
  672. package/resources/tools.d.ts.map +0 -1
  673. package/resources/tools.js +0 -28
  674. package/resources/tools.js.map +0 -1
  675. package/resources/tools.mjs +0 -24
  676. package/resources/tools.mjs.map +0 -1
  677. package/resources/trigger-instances/handle.d.mts +0 -25
  678. package/resources/trigger-instances/handle.d.mts.map +0 -1
  679. package/resources/trigger-instances/handle.d.ts +0 -25
  680. package/resources/trigger-instances/handle.d.ts.map +0 -1
  681. package/resources/trigger-instances/handle.js +0 -18
  682. package/resources/trigger-instances/handle.js.map +0 -1
  683. package/resources/trigger-instances/handle.mjs +0 -14
  684. package/resources/trigger-instances/handle.mjs.map +0 -1
  685. package/resources/trigger-instances/index.d.mts +0 -3
  686. package/resources/trigger-instances/index.d.mts.map +0 -1
  687. package/resources/trigger-instances/index.d.ts +0 -3
  688. package/resources/trigger-instances/index.d.ts.map +0 -1
  689. package/resources/trigger-instances/index.js +0 -9
  690. package/resources/trigger-instances/index.js.map +0 -1
  691. package/resources/trigger-instances/index.mjs +0 -4
  692. package/resources/trigger-instances/index.mjs.map +0 -1
  693. package/resources/trigger-instances/trigger-instances.d.mts +0 -126
  694. package/resources/trigger-instances/trigger-instances.d.mts.map +0 -1
  695. package/resources/trigger-instances/trigger-instances.d.ts +0 -126
  696. package/resources/trigger-instances/trigger-instances.d.ts.map +0 -1
  697. package/resources/trigger-instances/trigger-instances.js +0 -53
  698. package/resources/trigger-instances/trigger-instances.js.map +0 -1
  699. package/resources/trigger-instances/trigger-instances.mjs +0 -26
  700. package/resources/trigger-instances/trigger-instances.mjs.map +0 -1
  701. package/resources/trigger-instances.d.mts +0 -2
  702. package/resources/trigger-instances.d.mts.map +0 -1
  703. package/resources/trigger-instances.d.ts +0 -2
  704. package/resources/trigger-instances.d.ts.map +0 -1
  705. package/resources/trigger-instances.js +0 -19
  706. package/resources/trigger-instances.js.map +0 -1
  707. package/resources/trigger-instances.mjs +0 -3
  708. package/resources/trigger-instances.mjs.map +0 -1
  709. package/resources/trigger.d.mts +0 -73
  710. package/resources/trigger.d.mts.map +0 -1
  711. package/resources/trigger.d.ts +0 -73
  712. package/resources/trigger.d.ts.map +0 -1
  713. package/resources/trigger.js +0 -12
  714. package/resources/trigger.js.map +0 -1
  715. package/resources/trigger.mjs +0 -8
  716. package/resources/trigger.mjs.map +0 -1
  717. package/resources/triggers-types.d.mts +0 -59
  718. package/resources/triggers-types.d.mts.map +0 -1
  719. package/resources/triggers-types.d.ts +0 -59
  720. package/resources/triggers-types.d.ts.map +0 -1
  721. package/resources/triggers-types.js +0 -19
  722. package/resources/triggers-types.js.map +0 -1
  723. package/resources/triggers-types.mjs +0 -15
  724. package/resources/triggers-types.mjs.map +0 -1
  725. package/resources.d.mts +0 -2
  726. package/resources.d.mts.map +0 -1
  727. package/resources.d.ts +0 -2
  728. package/resources.d.ts.map +0 -1
  729. package/resources.js +0 -18
  730. package/resources.js.map +0 -1
  731. package/resources.mjs +0 -2
  732. package/resources.mjs.map +0 -1
  733. package/src/api-promise.ts +0 -2
  734. package/src/client.ts +0 -938
  735. package/src/core/README.md +0 -3
  736. package/src/core/api-promise.ts +0 -92
  737. package/src/core/error.ts +0 -130
  738. package/src/core/resource.ts +0 -11
  739. package/src/core/uploads.ts +0 -2
  740. package/src/error.ts +0 -2
  741. package/src/index.ts +0 -22
  742. package/src/internal/README.md +0 -3
  743. package/src/internal/builtin-types.ts +0 -93
  744. package/src/internal/detect-platform.ts +0 -196
  745. package/src/internal/errors.ts +0 -33
  746. package/src/internal/headers.ts +0 -96
  747. package/src/internal/parse.ts +0 -50
  748. package/src/internal/qs/LICENSE.md +0 -13
  749. package/src/internal/qs/README.md +0 -3
  750. package/src/internal/qs/formats.ts +0 -9
  751. package/src/internal/qs/index.ts +0 -13
  752. package/src/internal/qs/stringify.ts +0 -388
  753. package/src/internal/qs/types.ts +0 -71
  754. package/src/internal/qs/utils.ts +0 -265
  755. package/src/internal/request-options.ts +0 -37
  756. package/src/internal/shim-types.d.ts +0 -28
  757. package/src/internal/shims/crypto.ts +0 -18
  758. package/src/internal/shims/file.ts +0 -32
  759. package/src/internal/shims/getBuiltinModule.ts +0 -66
  760. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  761. package/src/internal/shims.ts +0 -107
  762. package/src/internal/to-file.ts +0 -152
  763. package/src/internal/types.ts +0 -92
  764. package/src/internal/uploads.ts +0 -175
  765. package/src/internal/utils/base64.ts +0 -39
  766. package/src/internal/utils/env.ts +0 -18
  767. package/src/internal/utils/log.ts +0 -127
  768. package/src/internal/utils/path.ts +0 -63
  769. package/src/internal/utils/sleep.ts +0 -3
  770. package/src/internal/utils/uuid.ts +0 -19
  771. package/src/internal/utils/values.ts +0 -102
  772. package/src/internal/utils.ts +0 -8
  773. package/src/lib/.keep +0 -4
  774. package/src/resource.ts +0 -2
  775. package/src/resources/action-execution.ts +0 -244
  776. package/src/resources/auth/auth.ts +0 -15
  777. package/src/resources/auth/index.ts +0 -4
  778. package/src/resources/auth/session.ts +0 -127
  779. package/src/resources/auth-configs.ts +0 -362
  780. package/src/resources/auth.ts +0 -3
  781. package/src/resources/cli.ts +0 -166
  782. package/src/resources/connected-accounts.ts +0 -661
  783. package/src/resources/index.ts +0 -105
  784. package/src/resources/mcp/command.ts +0 -47
  785. package/src/resources/mcp/index.ts +0 -17
  786. package/src/resources/mcp/mcp.ts +0 -519
  787. package/src/resources/mcp.ts +0 -3
  788. package/src/resources/org/api-key.ts +0 -30
  789. package/src/resources/org/index.ts +0 -12
  790. package/src/resources/org/org.ts +0 -39
  791. package/src/resources/org/project/api-keys.ts +0 -156
  792. package/src/resources/org/project/index.ts +0 -35
  793. package/src/resources/org/project/project.ts +0 -206
  794. package/src/resources/org/project/trigger.ts +0 -95
  795. package/src/resources/org/project/webhook.ts +0 -131
  796. package/src/resources/org/project.ts +0 -3
  797. package/src/resources/org.ts +0 -3
  798. package/src/resources/team-members.ts +0 -111
  799. package/src/resources/toolkits.ts +0 -232
  800. package/src/resources/tools.ts +0 -319
  801. package/src/resources/trigger-instances/handle.ts +0 -45
  802. package/src/resources/trigger-instances/index.ts +0 -19
  803. package/src/resources/trigger-instances/trigger-instances.ts +0 -202
  804. package/src/resources/trigger-instances.ts +0 -3
  805. package/src/resources/trigger.ts +0 -108
  806. package/src/resources/triggers-types.ts +0 -105
  807. package/src/resources.ts +0 -1
  808. package/src/tsconfig.json +0 -11
  809. package/src/uploads.ts +0 -2
  810. package/src/version.ts +0 -1
  811. package/uploads.d.mts +0 -2
  812. package/uploads.d.mts.map +0 -1
  813. package/uploads.d.ts +0 -2
  814. package/uploads.d.ts.map +0 -1
  815. package/uploads.js +0 -19
  816. package/uploads.js.map +0 -1
  817. package/uploads.mjs +0 -2
  818. package/uploads.mjs.map +0 -1
  819. package/version.d.mts +0 -2
  820. package/version.d.mts.map +0 -1
  821. package/version.d.ts +0 -2
  822. package/version.d.ts.map +0 -1
  823. package/version.js +0 -5
  824. package/version.js.map +0 -1
  825. package/version.mjs +0 -2
  826. package/version.mjs.map +0 -1
package/README.md CHANGED
@@ -1,373 +1,157 @@
1
- # Composio TypeScript API Library
1
+ # composio-client
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/@composio/client.svg)](https://npmjs.org/package/@composio/client) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@composio/client)
3
+ Composio API client for TypeScript, generated from the [v3.1 OpenAPI spec](https://staging-backend.composio.dev/api/v3.1/openapi.json) with [hey-api](https://heyapi.dev).
4
4
 
5
- This library provides convenient access to the Composio REST API from server-side TypeScript or JavaScript.
6
-
7
- The REST API documentation can be found on [docs.composio.com](https://docs.composio.com). The full API of this library can be found in [api.md](api.md).
8
-
9
- It is generated with [Stainless](https://www.stainless.com/).
10
-
11
- ## Installation
12
-
13
- ```sh
14
- npm install @composio/client
15
- ```
5
+ This repo is the successor to the Stainless-generated [`@composio/client`](https://www.npmjs.com/package/@composio/client) (Stainless is sunsetting). Current scope: the full `/api/v3.1` surface — all 104 released operations — in **both** languages: TypeScript at the package root, and Python in [`python/`](./python/README.md) (PyPI takeover pending). Migration is tracked on the wayfinder map [UXE-152](https://linear.app/composio/issue/UXE-152).
16
6
 
17
7
  ## Usage
18
8
 
19
- The full API of this library can be found in [api.md](api.md).
9
+ The package root is the Stainless-compatible drop-in surface: `new Composio({ apiKey })`, the Stainless type names, and throwing `APIPromise` semantics (shipped via UXE-163/UXE-164).
20
10
 
21
- <!-- prettier-ignore -->
22
- ```js
23
- import Composio from '@composio/client';
24
-
25
- const client = new Composio({
26
- apiKey: process.env['COMPOSIO_API_KEY'], // This is the default and can be omitted
27
- environment: 'staging', // or 'production' | 'local'; defaults to 'production'
28
- });
29
-
30
- async function main() {
31
- const response = await client.tools.execute('action');
11
+ ```ts
12
+ import Composio from '@composio/client'
32
13
 
33
- console.log(response.log_id);
34
- }
14
+ const composio = new Composio({ apiKey: process.env.COMPOSIO_API_KEY })
35
15
 
36
- main();
16
+ const session = await composio.toolRouter.session.create({ user_id: 'user_123' })
17
+ console.log(session.session_id, session.mcp.url)
37
18
  ```
38
19
 
39
- ### Request & Response types
20
+ ### Pagination
40
21
 
41
- This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
22
+ Use the `@composio/client/pagination` subpath to traverse list operations that return the standard
23
+ `items` and `next_cursor` fields:
42
24
 
43
- <!-- prettier-ignore -->
44
25
  ```ts
45
- import Composio from '@composio/client';
26
+ import { paginate } from '@composio/client/pagination'
46
27
 
47
- const client = new Composio({
48
- apiKey: process.env['COMPOSIO_API_KEY'], // This is the default and can be omitted
49
- environment: 'staging', // or 'production' | 'local'; defaults to 'production'
50
- });
28
+ const toolkits = paginate(({ cursor }) =>
29
+ composio.toolkits.list({ cursor, limit: 100 }),
30
+ )
51
31
 
52
- async function main() {
53
- const response: Composio.ToolExecuteResponse = await client.tools.execute('action');
32
+ for await (const toolkit of toolkits) {
33
+ console.log(toolkit.slug)
54
34
  }
55
-
56
- main();
57
35
  ```
58
36
 
59
- Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
60
-
61
- ## Handling errors
37
+ Item iteration is lazy. Each traversal starts from the first page, and breaking early stops fetching
38
+ more pages. Use `iterPages()` when page metadata matters, or `toArray()` to collect every item; avoid
39
+ `toArray()` when the full result may not fit comfortably in memory.
62
40
 
63
- When the library is unable to connect to the API,
64
- or if the API returns a non-success status code (i.e., 4xx or 5xx response),
65
- a subclass of `APIError` will be thrown:
66
-
67
- <!-- prettier-ignore -->
68
41
  ```ts
69
- async function main() {
70
- const response = await client.tools.execute('action').catch(async (err) => {
71
- if (err instanceof Composio.APIError) {
72
- console.log(err.status); // 400
73
- console.log(err.name); // BadRequestError
74
- console.log(err.headers); // {server: 'nginx', ...}
75
- } else {
76
- throw err;
77
- }
78
- });
42
+ for await (const page of toolkits.iterPages()) {
43
+ console.log(page.items.length)
79
44
  }
80
45
 
81
- main();
82
- ```
83
-
84
- Error codes are as followed:
85
-
86
- | Status Code | Error Type |
87
- | ----------- | -------------------------- |
88
- | 400 | `BadRequestError` |
89
- | 401 | `AuthenticationError` |
90
- | 403 | `PermissionDeniedError` |
91
- | 404 | `NotFoundError` |
92
- | 422 | `UnprocessableEntityError` |
93
- | 429 | `RateLimitError` |
94
- | >=500 | `InternalServerError` |
95
- | N/A | `APIConnectionError` |
96
-
97
- ### Retries
98
-
99
- Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
100
- Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
101
- 429 Rate Limit, and >=500 Internal errors will all be retried by default.
102
-
103
- You can use the `maxRetries` option to configure or disable this:
104
-
105
- <!-- prettier-ignore -->
106
- ```js
107
- // Configure the default for all requests:
108
- const client = new Composio({
109
- maxRetries: 0, // default is 2
110
- });
111
-
112
- // Or, configure per-request:
113
- await client.tools.execute('action', {
114
- maxRetries: 5,
115
- });
46
+ const allToolkits = await toolkits.toArray()
116
47
  ```
117
48
 
118
- ### Timeouts
49
+ For another response shape, provide an adapter. Custom cursors must be strings or numbers so repeated
50
+ values can be detected reliably across independently decoded pages:
119
51
 
120
- Requests time out after 1 minute by default. You can configure this with a `timeout` option:
121
-
122
- <!-- prettier-ignore -->
123
52
  ```ts
124
- // Configure the default for all requests:
125
- const client = new Composio({
126
- timeout: 20 * 1000, // 20 seconds (default is 1 minute)
127
- });
128
-
129
- // Override per-request:
130
- await client.tools.execute('action', {
131
- timeout: 5 * 1000,
132
- });
133
- ```
134
-
135
- On timeout, an `APIConnectionTimeoutError` is thrown.
136
-
137
- Note that requests which time out will be [retried twice by default](#retries).
138
-
139
- ## Advanced Usage
140
-
141
- ### Accessing raw Response data (e.g., headers)
142
-
143
- The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
144
- This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
145
-
146
- You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
147
- Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
148
-
149
- <!-- prettier-ignore -->
150
- ```ts
151
- const client = new Composio();
152
-
153
- const response = await client.tools.execute('action').asResponse();
154
- console.log(response.headers.get('X-My-Header'));
155
- console.log(response.statusText); // access the underlying Response object
156
-
157
- const { data: response, response: raw } = await client.tools.execute('action').withResponse();
158
- console.log(raw.headers.get('X-My-Header'));
159
- console.log(response.log_id);
53
+ const results = paginate(
54
+ ({ cursor }) => loadPage(cursor),
55
+ {
56
+ items: page => page.data,
57
+ nextCursor: page => page.nextCursor,
58
+ },
59
+ )
160
60
  ```
161
61
 
162
- ### Logging
163
-
164
- > [!IMPORTANT]
165
- > All log messages are intended for debugging only. The format and content of log messages
166
- > may change between releases.
62
+ A repeated cursor cycle throws `ComposioError` instead of requesting pages indefinitely. An empty
63
+ cursor ends traversal. When a response omits `next_cursor` but numeric `current_page` and
64
+ `total_pages` metadata shows that more pages exist, the default adapter fails instead of silently
65
+ returning partial results; provide a custom adapter for that response shape. Requests are sequential
66
+ and inherit the normal client retry/backoff path, but this is not proactive/shared rate-limit pacing.
167
67
 
168
- #### Log levels
169
-
170
- The log level can be configured in two ways:
171
-
172
- 1. Via the `COMPOSIO_LOG` environment variable
173
- 2. Using the `logLevel` client option (overrides the environment variable if set)
68
+ Use `fromEnv` when configuration must come from a specific environment snapshot instead of the
69
+ host process. Explicit options replace mapped values, so this is safe for tests, workers, and
70
+ applications that load configuration themselves:
174
71
 
175
72
  ```ts
176
- import Composio from '@composio/client';
177
-
178
- const client = new Composio({
179
- logLevel: 'debug', // Show all log messages
180
- });
73
+ const composio = Composio.fromEnv(config, { environment: 'staging' })
181
74
  ```
182
75
 
183
- Available log levels, from most to least verbose:
184
-
185
- - `'debug'` - Show debug messages, info, warnings, and errors
186
- - `'info'` - Show info messages, warnings, and errors
187
- - `'warn'` - Show warnings and errors (default)
188
- - `'error'` - Show only errors
189
- - `'off'` - Disable all logging
190
-
191
- At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
192
- Some authentication-related headers are redacted, but sensitive data in request and response bodies
193
- may still be visible.
76
+ `fromEnv` recognizes `COMPOSIO_API_KEY`, `COMPOSIO_USER_API_KEY`, `COMPOSIO_ORG_API_KEY`,
77
+ `COMPOSIO_BASE_URL`, `COMPOSIO_ALLOW_INSECURE_HTTP`, `COMPOSIO_CUSTOM_HEADERS`, and
78
+ `COMPOSIO_LOG_LEVEL`. Derived clients created with `withOptions()` keep using the resolved snapshot and do
79
+ not fall back to ambient values.
194
80
 
195
- #### Custom logger
196
-
197
- By default, this library logs to `globalThis.console`. You can also provide a custom logger.
198
- Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
199
-
200
- When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
201
- below the configured level will not be sent to your logger.
81
+ Inject a `Transport` when an application or test needs to own HTTP dispatch. The transport receives
82
+ a complete `Request`; retries, credential-safe redirects, timeouts, and response parsing stay in the
83
+ client:
202
84
 
203
85
  ```ts
204
- import Composio from '@composio/client';
205
- import pino from 'pino';
206
-
207
- const logger = pino();
86
+ import Composio, { createFetchTransport } from '@composio/client'
208
87
 
209
- const client = new Composio({
210
- logger: logger.child({ name: 'Composio' }),
211
- logLevel: 'debug', // Send all messages to pino, allowing it to filter
212
- });
88
+ const transport = createFetchTransport({ fetch: instrumentedFetch })
89
+ const composio = new Composio({ apiKey, transport })
213
90
  ```
214
91
 
215
- ### Making custom/undocumented requests
92
+ Existing `fetch` and `fetchOptions` constructor options remain supported. They cannot be combined
93
+ with `transport` because a request can have only one HTTP dispatcher.
216
94
 
217
- This library is typed for convenient access to the documented API. If you need to access undocumented
218
- endpoints, params, or response properties, the library can still be used.
95
+ ## Upgrade from Stainless 0.1.x to 2.0
219
96
 
220
- #### Undocumented endpoints
221
-
222
- To make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.
223
- Options on the client, such as retries, will be respected when making these requests.
97
+ By default, the 2.0 client refuses to send credentials over plain HTTP unless the hostname is
98
+ loopback. For a trusted development backend such as Docker's host gateway, opt in to the exact
99
+ configured origin:
224
100
 
225
101
  ```ts
226
- await client.post('/some/path', {
227
- body: { some_prop: 'foo' },
228
- query: { some_query_arg: 'bar' },
229
- });
102
+ const composio = new Composio({
103
+ apiKey,
104
+ baseURL: 'http://host.docker.internal:9900',
105
+ allowInsecureHTTP: true,
106
+ })
230
107
  ```
231
108
 
232
- #### Undocumented request params
233
-
234
- To make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented
235
- parameter. This library doesn't validate at runtime that the request matches the type, so any extra values you
236
- send will be sent as-is.
237
-
238
- ```ts
239
- client.foo.create({
240
- foo: 'my_param',
241
- bar: 12,
242
- // @ts-expect-error baz is not yet public
243
- baz: 'undocumented option',
244
- });
245
- ```
246
-
247
- For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
248
- extra param in the body.
249
-
250
- If you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request
251
- options.
252
-
253
- #### Undocumented response properties
109
+ The equivalent environment configuration is:
254
110
 
255
- To access undocumented response properties, you may access the response object with `// @ts-expect-error` on
256
- the response object, or cast the response object to the requisite type. Like the request params, we do not
257
- validate or strip extra properties from the response from the API.
258
-
259
- ### Customizing the fetch client
260
-
261
- By default, this library expects a global `fetch` function is defined.
262
-
263
- If you want to use a different `fetch` function, you can either polyfill the global:
264
-
265
- ```ts
266
- import fetch from 'my-fetch';
267
-
268
- globalThis.fetch = fetch;
269
- ```
270
-
271
- Or pass it to the client:
272
-
273
- ```ts
274
- import Composio from '@composio/client';
275
- import fetch from 'my-fetch';
276
-
277
- const client = new Composio({ fetch });
278
- ```
279
-
280
- ### Fetch options
281
-
282
- If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
283
-
284
- ```ts
285
- import Composio from '@composio/client';
286
-
287
- const client = new Composio({
288
- fetchOptions: {
289
- // `RequestInit` options
290
- },
291
- });
111
+ ```sh
112
+ COMPOSIO_BASE_URL=http://host.docker.internal:9900 \
113
+ COMPOSIO_ALLOW_INSECURE_HTTP=1
292
114
  ```
293
115
 
294
- #### Configuring proxies
116
+ The opt-in records the resolved scheme, hostname, and port. Mutating `baseURL` cannot broaden it,
117
+ and `withOptions({ baseURL: ... })` requires `allowInsecureHTTP: true` again when the origin
118
+ changes. Redirects to another origin remain credential-free.
295
119
 
296
- To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
297
- options to requests:
120
+ ## Development
298
121
 
299
- <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
122
+ Toolchain is pinned via [mise](https://mise.jdx.dev) (`mise install`): Node 24, pnpm 11, Python 3.13, uv. ESM-only, TypeScript 7 (native compiler for typechecking, `typescript@6` retained for tooling until 7.1 restores the compiler API).
300
123
 
301
- ```ts
302
- import Composio from '@composio/client';
303
- import * as undici from 'undici';
304
-
305
- const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
306
- const client = new Composio({
307
- fetchOptions: {
308
- dispatcher: proxyAgent,
309
- },
310
- });
124
+ ```sh
125
+ pnpm install
126
+ pnpm generate # hey-api + compat codegen: spec/openapi.json → src/generated + src/compat/resources (do not edit)
127
+ pnpm lint # eslint over src, test, codegen, parity, and demo
128
+ pnpm typecheck # tsgo (TS native), including type tests and demo
129
+ pnpm typecheck:tsc # same programs under tsc — both compilers must pass
130
+ pnpm codegen:check # verify committed src/compat/resources matches the generator
131
+ pnpm test # unit tests (MSW mocks) + codegen tests
132
+ pnpm build # tsdown → dist/ (runs publint + arethetypeswrong)
133
+ pnpm test:pack # pack the real tarball, typecheck + import every drop-in subpath
134
+ pnpm benchmark:baseline # capture the dist/ a benchmark run compares against
135
+ pnpm benchmark # score SDK overhead against that baseline and against Stainless
136
+ pnpm test:contract # live API tests; requires COMPOSIO_API_KEY (copy .env.example to .env)
137
+ pnpm refresh-spec # re-fetch spec/openapi.json from the live backend
311
138
  ```
312
139
 
313
- <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
314
-
315
- ```ts
316
- import Composio from '@composio/client';
140
+ `src/generated/` and `src/compat/resources/` are regenerated output — never edit them by hand; CI fails if they drift from `spec/openapi.json`.
317
141
 
318
- const client = new Composio({
319
- fetchOptions: {
320
- proxy: 'http://localhost:8888',
321
- },
322
- });
323
- ```
142
+ ### Python lane
324
143
 
325
- <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
144
+ The Python client lives in the [`python/`](./python/README.md) workspace (uv-managed):
326
145
 
327
- ```ts
328
- import Composio from 'npm:@composio/client';
329
-
330
- const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
331
- const client = new Composio({
332
- fetchOptions: {
333
- client: httpClient,
334
- },
335
- });
146
+ ```sh
147
+ pnpm generate:python # from the repo root: spec snapshot → python/src/composio_client/_generated
148
+ cd python
149
+ uv sync
150
+ uv run ruff check
151
+ uv run mypy src scripts
152
+ uv run pytest
336
153
  ```
337
154
 
338
- ## Frequently Asked Questions
339
-
340
- ## Semantic versioning
341
-
342
- This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
343
-
344
- 1. Changes that only affect static types, without breaking runtime behavior.
345
- 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
346
- 3. Changes that we do not expect to impact the vast majority of users in practice.
347
-
348
- We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
349
-
350
- We are keen for your feedback; please open an [issue](https://www.github.com/ComposioHQ/composio-base-ts/issues) with questions, bugs, or suggestions.
351
-
352
- ## Requirements
353
-
354
- TypeScript >= 4.9 is supported.
355
-
356
- The following runtimes are supported:
357
-
358
- - Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
359
- - Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
360
- - Deno v1.28.0 or higher.
361
- - Bun 1.0 or later.
362
- - Cloudflare Workers.
363
- - Vercel Edge Runtime.
364
- - Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
365
- - Nitro v2.6 or greater.
366
-
367
- Note that React Native is not supported at this time.
368
-
369
- If you are interested in other runtime environments, please open or upvote an issue on GitHub.
370
-
371
- ## Contributing
372
-
373
- See [the contributing documentation](./CONTRIBUTING.md).
155
+ Client-overhead measurements use a deterministic in-memory transport and are documented in
156
+ [`docs/benchmarks/client-overhead.md`](./docs/benchmarks/client-overhead.md). They do not measure API
157
+ latency.
@@ -0,0 +1,25 @@
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
2
+
3
+ //#region src/compat/resources/api-key-revocation.ts
4
+ const OP_CREATE = generatedOperation("apiKeyRevocation.create");
5
+ /**
6
+ * Spec-surface `client.apiKeyRevocation` resource: the 1-method public
7
+ * leaked-key revocation surface of the v3.1 spec
8
+ * (`POST /api_key_revocation` — POST-on-collection stays `create`), never
9
+ * published by Stainless — wayfinder ticket 32.
10
+ */
11
+ var ApiKeyRevocation = class {
12
+ #client;
13
+ constructor(client) {
14
+ this.#client = client;
15
+ }
16
+ create(body, options) {
17
+ return this.#client.post("/api/v3.1/api_key_revocation", withOperation(OP_CREATE, {
18
+ body,
19
+ ...options
20
+ }));
21
+ }
22
+ };
23
+
24
+ //#endregion
25
+ export { ApiKeyRevocation as t };
@@ -0,0 +1,17 @@
1
+ import { t as Session } from "./session-DN52ZBZa.mjs";
2
+
3
+ //#region src/compat/resources/auth/auth.ts
4
+ /**
5
+ * Spec-surface `client.auth` resource: a method-less container for the
6
+ * `session` sub-resource — wayfinder ticket 32.
7
+ */
8
+ var Auth = class {
9
+ session;
10
+ constructor(client) {
11
+ this.session = new Session(client);
12
+ }
13
+ };
14
+ Auth.Session = Session;
15
+
16
+ //#endregion
17
+ export { Auth as t };
@@ -0,0 +1,55 @@
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
2
+
3
+ //#region src/compat/resources/auth-configs.ts
4
+ const OP_CREATE = generatedOperation("authConfigs.create");
5
+ const OP_RETRIEVE = generatedOperation("authConfigs.retrieve");
6
+ const OP_UPDATE = generatedOperation("authConfigs.update");
7
+ const OP_LIST = generatedOperation("authConfigs.list");
8
+ const OP_DELETE = generatedOperation("authConfigs.delete");
9
+ const OP_UPDATE_STATUS = generatedOperation("authConfigs.updateStatus");
10
+ /**
11
+ * Stainless-shaped `client.authConfigs` resource: the exact 6-method surface of
12
+ * `@composio/client` (create/retrieve/update/list/delete/updateStatus),
13
+ * dispatched through the handwritten kernel.
14
+ */
15
+ var AuthConfigs = class {
16
+ #client;
17
+ constructor(client) {
18
+ this.#client = client;
19
+ }
20
+ create(body, options) {
21
+ return this.#client.post("/api/v3.1/auth_configs", withOperation(OP_CREATE, {
22
+ body,
23
+ ...options
24
+ }));
25
+ }
26
+ retrieve(nanoid, options) {
27
+ return this.#client.get(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
28
+ }
29
+ update(nanoid, body, options) {
30
+ return this.#client.patch(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_UPDATE, {
31
+ body,
32
+ ...options
33
+ }));
34
+ }
35
+ list(query = {}, options) {
36
+ return this.#client.get("/api/v3.1/auth_configs", withOperation(OP_LIST, {
37
+ query,
38
+ ...options
39
+ }));
40
+ }
41
+ delete(nanoid, query = {}, options) {
42
+ return this.#client.delete(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_DELETE, {
43
+ query,
44
+ ...options
45
+ }));
46
+ }
47
+ /** @deprecated Deprecated in the input OpenAPI schema. */
48
+ updateStatus(status, params, options) {
49
+ const { nanoid } = params;
50
+ return this.#client.patch(path`/api/v3.1/auth_configs/${nanoid}/${status}`, withOperation(OP_UPDATE_STATUS, { ...options }));
51
+ }
52
+ };
53
+
54
+ //#endregion
55
+ export { AuthConfigs as t };
@@ -0,0 +1,24 @@
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
2
+
3
+ //#region src/compat/resources/org/clanker.ts
4
+ const OP_CREATE_CLAIM = generatedOperation("org.clanker.createClaim");
5
+ /**
6
+ * Spec-surface `client.org.clanker` resource: the 1-method claim surface of
7
+ * the v3.1 spec (`POST /org/clanker/create_claim`), never published by
8
+ * Stainless — wayfinder ticket 31.
9
+ */
10
+ var Clanker = class {
11
+ #client;
12
+ constructor(client) {
13
+ this.#client = client;
14
+ }
15
+ createClaim(body, options) {
16
+ return this.#client.post("/api/v3.1/org/clanker/create_claim", withOperation(OP_CREATE_CLAIM, {
17
+ body,
18
+ ...options
19
+ }));
20
+ }
21
+ };
22
+
23
+ //#endregion
24
+ export { Clanker as t };
@@ -0,0 +1,45 @@
1
+ import { c as withOperation, m as mergeHeaders, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
2
+ import { t as Realtime } from "./realtime-AhDHHK8s.mjs";
3
+
4
+ //#region src/compat/resources/cli/cli.ts
5
+ const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
6
+ const OP_CREATE_SESSION = generatedOperation("cli.createSession");
7
+ const OP_GET_SESSION = generatedOperation("cli.getSession");
8
+ /**
9
+ * Stainless-shaped `client.cli` resource: the 2-method published CLI
10
+ * authentication surface of `@composio/client` (createSession/getSession)
11
+ * plus the spec-surface `createCodactFailure` (`POST /cli/codact_failures`,
12
+ * never published by Stainless — wayfinder ticket 29).
13
+ */
14
+ var Cli = class {
15
+ realtime;
16
+ #client;
17
+ constructor(client) {
18
+ this.#client = client;
19
+ this.realtime = new Realtime(client);
20
+ }
21
+ createCodactFailure(params, options) {
22
+ const { "x-user-api-key": xUserApiKey, ...body } = params;
23
+ return this.#client.post("/api/v3.1/cli/codact_failures", withOperation(OP_CREATE_CODACT_FAILURE, {
24
+ body,
25
+ ...options,
26
+ headers: mergeHeaders([{ ...xUserApiKey != null ? { "x-user-api-key": xUserApiKey } : void 0 }, options?.headers])
27
+ }));
28
+ }
29
+ createSession(body = {}, options) {
30
+ return this.#client.post("/api/v3.1/cli/create-session", withOperation(OP_CREATE_SESSION, {
31
+ body,
32
+ ...options
33
+ }));
34
+ }
35
+ getSession(query, options) {
36
+ return this.#client.get("/api/v3.1/cli/get-session", withOperation(OP_GET_SESSION, {
37
+ query,
38
+ ...options
39
+ }));
40
+ }
41
+ };
42
+ Cli.Realtime = Realtime;
43
+
44
+ //#endregion
45
+ export { Cli as t };
@@ -0,0 +1,10 @@
1
+ //#region src/compat/resources/project/config.ts
2
+ /**
3
+ * Stainless-shaped `client.project.config` resource: an empty resource class
4
+ * (Stainless declares it with no methods), shipped for import/`instanceof`/
5
+ * namespace parity.
6
+ */
7
+ var Config = class {};
8
+
9
+ //#endregion
10
+ export { Config as t };