@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.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 (455) hide show
  1. package/CHANGELOG.md +137 -0
  2. package/LICENSE +1 -1
  3. package/README.md +31 -31
  4. package/api-promise.js +2 -15
  5. package/api-promise.js.map +1 -1
  6. package/client.d.mts +28 -25
  7. package/client.d.mts.map +1 -1
  8. package/client.d.ts +28 -25
  9. package/client.d.ts.map +1 -1
  10. package/client.js +95 -113
  11. package/client.js.map +1 -1
  12. package/client.mjs +88 -83
  13. package/client.mjs.map +1 -1
  14. package/core/api-promise.d.mts +2 -3
  15. package/core/api-promise.d.mts.map +1 -1
  16. package/core/api-promise.d.ts +2 -3
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.js +4 -14
  19. package/core/api-promise.js.map +1 -1
  20. package/core/api-promise.mjs +1 -11
  21. package/core/api-promise.mjs.map +1 -1
  22. package/core/error.d.mts +2 -3
  23. package/core/error.d.mts.map +1 -1
  24. package/core/error.d.ts +2 -3
  25. package/core/error.d.ts.map +1 -1
  26. package/core/error.js +4 -4
  27. package/core/error.js.map +1 -1
  28. package/core/error.mjs +2 -2
  29. package/core/error.mjs.map +1 -1
  30. package/core/resource.d.mts +3 -3
  31. package/core/resource.d.mts.map +1 -1
  32. package/core/resource.d.ts +3 -3
  33. package/core/resource.d.ts.map +1 -1
  34. package/core/resource.js.map +1 -1
  35. package/core/resource.mjs.map +1 -1
  36. package/error.js +2 -15
  37. package/error.js.map +1 -1
  38. package/index.d.mts +3 -3
  39. package/index.d.mts.map +1 -1
  40. package/index.d.ts +3 -3
  41. package/index.d.ts.map +1 -1
  42. package/index.js +4 -4
  43. package/index.js.map +1 -1
  44. package/index.mjs +3 -3
  45. package/index.mjs.map +1 -1
  46. package/internal/builtin-types.d.mts +0 -2
  47. package/internal/builtin-types.d.mts.map +1 -1
  48. package/internal/builtin-types.d.ts +0 -2
  49. package/internal/builtin-types.d.ts.map +1 -1
  50. package/internal/detect-platform.js.map +1 -1
  51. package/internal/detect-platform.mjs.map +1 -1
  52. package/internal/errors.d.mts.map +1 -1
  53. package/internal/errors.d.ts.map +1 -1
  54. package/internal/errors.js +2 -2
  55. package/internal/errors.js.map +1 -1
  56. package/internal/errors.mjs.map +1 -1
  57. package/internal/headers.d.mts +1 -2
  58. package/internal/headers.d.mts.map +1 -1
  59. package/internal/headers.d.ts +1 -2
  60. package/internal/headers.d.ts.map +1 -1
  61. package/internal/headers.js +3 -1
  62. package/internal/headers.js.map +1 -1
  63. package/internal/headers.mjs +3 -1
  64. package/internal/headers.mjs.map +1 -1
  65. package/internal/parse.d.mts +2 -3
  66. package/internal/parse.d.mts.map +1 -1
  67. package/internal/parse.d.ts +2 -3
  68. package/internal/parse.d.ts.map +1 -1
  69. package/internal/parse.js +1 -2
  70. package/internal/parse.js.map +1 -1
  71. package/internal/parse.mjs.map +1 -1
  72. package/internal/qs/formats.d.mts +6 -0
  73. package/internal/qs/formats.d.mts.map +1 -0
  74. package/internal/qs/formats.d.ts +6 -0
  75. package/internal/qs/formats.d.ts.map +1 -0
  76. package/internal/qs/formats.js +11 -0
  77. package/internal/qs/formats.js.map +1 -0
  78. package/internal/qs/formats.mjs +8 -0
  79. package/internal/qs/formats.mjs.map +1 -0
  80. package/internal/qs/index.d.mts +10 -0
  81. package/internal/qs/index.d.mts.map +1 -0
  82. package/internal/qs/index.d.ts +10 -0
  83. package/internal/qs/index.d.ts.map +1 -0
  84. package/internal/qs/index.js +14 -0
  85. package/internal/qs/index.js.map +1 -0
  86. package/internal/qs/index.mjs +10 -0
  87. package/internal/qs/index.mjs.map +1 -0
  88. package/internal/qs/stringify.d.mts +3 -0
  89. package/internal/qs/stringify.d.mts.map +1 -0
  90. package/internal/qs/stringify.d.ts +3 -0
  91. package/internal/qs/stringify.d.ts.map +1 -0
  92. package/internal/qs/stringify.js +279 -0
  93. package/internal/qs/stringify.js.map +1 -0
  94. package/internal/qs/stringify.mjs +276 -0
  95. package/internal/qs/stringify.mjs.map +1 -0
  96. package/internal/qs/types.d.mts +57 -0
  97. package/internal/qs/types.d.mts.map +1 -0
  98. package/internal/qs/types.d.ts +57 -0
  99. package/internal/qs/types.d.ts.map +1 -0
  100. package/internal/qs/types.js +3 -0
  101. package/internal/qs/types.js.map +1 -0
  102. package/internal/qs/types.mjs +2 -0
  103. package/internal/qs/types.mjs.map +1 -0
  104. package/internal/qs/utils.d.mts +14 -0
  105. package/internal/qs/utils.d.mts.map +1 -0
  106. package/internal/qs/utils.d.ts +14 -0
  107. package/internal/qs/utils.d.ts.map +1 -0
  108. package/internal/qs/utils.js +229 -0
  109. package/internal/qs/utils.js.map +1 -0
  110. package/internal/qs/utils.mjs +217 -0
  111. package/internal/qs/utils.mjs.map +1 -0
  112. package/internal/request-options.d.mts +0 -1
  113. package/internal/request-options.d.mts.map +1 -1
  114. package/internal/request-options.d.ts +0 -1
  115. package/internal/request-options.d.ts.map +1 -1
  116. package/internal/shims.js +6 -7
  117. package/internal/shims.js.map +1 -1
  118. package/internal/shims.mjs +1 -1
  119. package/internal/shims.mjs.map +1 -1
  120. package/internal/to-file.d.mts +0 -1
  121. package/internal/to-file.d.mts.map +1 -1
  122. package/internal/to-file.d.ts +0 -1
  123. package/internal/to-file.d.ts.map +1 -1
  124. package/internal/to-file.js +4 -4
  125. package/internal/to-file.js.map +1 -1
  126. package/internal/to-file.mjs +3 -2
  127. package/internal/to-file.mjs.map +1 -1
  128. package/internal/tslib.js +81 -0
  129. package/internal/tslib.mjs +17 -0
  130. package/internal/types.d.mts +0 -1
  131. package/internal/types.d.mts.map +1 -1
  132. package/internal/types.d.ts +0 -1
  133. package/internal/types.d.ts.map +1 -1
  134. package/internal/uploads.d.mts +5 -7
  135. package/internal/uploads.d.mts.map +1 -1
  136. package/internal/uploads.d.ts +5 -7
  137. package/internal/uploads.d.ts.map +1 -1
  138. package/internal/uploads.js +16 -6
  139. package/internal/uploads.js.map +1 -1
  140. package/internal/uploads.mjs +12 -3
  141. package/internal/uploads.mjs.map +1 -1
  142. package/internal/utils/base64.d.mts.map +1 -1
  143. package/internal/utils/base64.d.ts.map +1 -1
  144. package/internal/utils/base64.js +14 -9
  145. package/internal/utils/base64.js.map +1 -1
  146. package/internal/utils/base64.mjs +15 -10
  147. package/internal/utils/base64.mjs.map +1 -1
  148. package/internal/utils/bytes.d.mts +4 -0
  149. package/internal/utils/bytes.d.mts.map +1 -0
  150. package/internal/utils/bytes.d.ts +4 -0
  151. package/internal/utils/bytes.d.ts.map +1 -0
  152. package/internal/utils/bytes.js +31 -0
  153. package/internal/utils/bytes.js.map +1 -0
  154. package/internal/utils/bytes.mjs +26 -0
  155. package/internal/utils/bytes.mjs.map +1 -0
  156. package/internal/utils/env.d.mts.map +1 -1
  157. package/internal/utils/env.d.ts.map +1 -1
  158. package/internal/utils/env.js.map +1 -1
  159. package/internal/utils/env.mjs.map +1 -1
  160. package/internal/utils/log.d.mts +3 -4
  161. package/internal/utils/log.d.mts.map +1 -1
  162. package/internal/utils/log.d.ts +3 -4
  163. package/internal/utils/log.d.ts.map +1 -1
  164. package/internal/utils/log.js +2 -2
  165. package/internal/utils/log.js.map +1 -1
  166. package/internal/utils/log.mjs.map +1 -1
  167. package/internal/utils/path.d.mts.map +1 -1
  168. package/internal/utils/path.d.ts.map +1 -1
  169. package/internal/utils/path.js +3 -3
  170. package/internal/utils/path.js.map +1 -1
  171. package/internal/utils/path.mjs +2 -2
  172. package/internal/utils/path.mjs.map +1 -1
  173. package/internal/utils/sleep.d.mts.map +1 -1
  174. package/internal/utils/sleep.d.ts.map +1 -1
  175. package/internal/utils/uuid.d.mts +1 -1
  176. package/internal/utils/uuid.d.mts.map +1 -1
  177. package/internal/utils/uuid.d.ts +1 -1
  178. package/internal/utils/uuid.d.ts.map +1 -1
  179. package/internal/utils/uuid.js +1 -2
  180. package/internal/utils/uuid.js.map +1 -1
  181. package/internal/utils/uuid.mjs +1 -2
  182. package/internal/utils/uuid.mjs.map +1 -1
  183. package/internal/utils/values.d.mts.map +1 -1
  184. package/internal/utils/values.d.ts.map +1 -1
  185. package/internal/utils/values.js +10 -10
  186. package/internal/utils/values.js.map +1 -1
  187. package/internal/utils/values.mjs +6 -6
  188. package/internal/utils/values.mjs.map +1 -1
  189. package/internal/utils.js +7 -20
  190. package/internal/utils.js.map +1 -1
  191. package/package.json +5 -9
  192. package/resource.js +2 -15
  193. package/resource.js.map +1 -1
  194. package/resources/auth-configs.d.mts +75 -23
  195. package/resources/auth-configs.d.mts.map +1 -1
  196. package/resources/auth-configs.d.ts +75 -23
  197. package/resources/auth-configs.d.ts.map +1 -1
  198. package/resources/auth-configs.js +18 -0
  199. package/resources/auth-configs.js.map +1 -1
  200. package/resources/auth-configs.mjs +18 -0
  201. package/resources/auth-configs.mjs.map +1 -1
  202. package/resources/connected-accounts.d.mts +106 -209
  203. package/resources/connected-accounts.d.mts.map +1 -1
  204. package/resources/connected-accounts.d.ts +106 -209
  205. package/resources/connected-accounts.d.ts.map +1 -1
  206. package/resources/connected-accounts.js +18 -0
  207. package/resources/connected-accounts.js.map +1 -1
  208. package/resources/connected-accounts.mjs +18 -0
  209. package/resources/connected-accounts.mjs.map +1 -1
  210. package/resources/files.d.mts +126 -0
  211. package/resources/files.d.mts.map +1 -0
  212. package/resources/files.d.ts +126 -0
  213. package/resources/files.d.ts.map +1 -0
  214. package/resources/files.js +21 -0
  215. package/resources/files.js.map +1 -0
  216. package/resources/files.mjs +17 -0
  217. package/resources/files.mjs.map +1 -0
  218. package/resources/index.d.mts +3 -2
  219. package/resources/index.d.mts.map +1 -1
  220. package/resources/index.d.ts +3 -2
  221. package/resources/index.d.ts.map +1 -1
  222. package/resources/index.js +7 -5
  223. package/resources/index.js.map +1 -1
  224. package/resources/index.mjs +3 -2
  225. package/resources/index.mjs.map +1 -1
  226. package/resources/mcp/command.d.mts +37 -0
  227. package/resources/mcp/command.d.mts.map +1 -0
  228. package/resources/mcp/command.d.ts +37 -0
  229. package/resources/mcp/command.d.ts.map +1 -0
  230. package/resources/mcp/command.js +15 -0
  231. package/resources/mcp/command.js.map +1 -0
  232. package/resources/mcp/command.mjs +11 -0
  233. package/resources/mcp/command.mjs.map +1 -0
  234. package/resources/mcp/index.d.mts +3 -0
  235. package/resources/mcp/index.d.mts.map +1 -0
  236. package/resources/mcp/index.d.ts +3 -0
  237. package/resources/mcp/index.d.ts.map +1 -0
  238. package/resources/mcp/index.js +9 -0
  239. package/resources/mcp/index.js.map +1 -0
  240. package/resources/mcp/index.mjs +4 -0
  241. package/resources/mcp/index.mjs.map +1 -0
  242. package/resources/mcp/mcp.d.mts +414 -0
  243. package/resources/mcp/mcp.d.mts.map +1 -0
  244. package/resources/mcp/mcp.d.ts +414 -0
  245. package/resources/mcp/mcp.d.ts.map +1 -0
  246. package/resources/mcp/mcp.js +65 -0
  247. package/resources/mcp/mcp.js.map +1 -0
  248. package/resources/mcp/mcp.mjs +60 -0
  249. package/resources/mcp/mcp.mjs.map +1 -0
  250. package/resources/mcp.d.mts +2 -0
  251. package/resources/mcp.d.mts.map +1 -0
  252. package/resources/mcp.d.ts +2 -0
  253. package/resources/mcp.d.ts.map +1 -0
  254. package/resources/mcp.js +6 -0
  255. package/resources/mcp.js.map +1 -0
  256. package/resources/mcp.mjs +3 -0
  257. package/resources/mcp.mjs.map +1 -0
  258. package/resources/migration.d.mts +23 -0
  259. package/resources/migration.d.mts.map +1 -0
  260. package/resources/migration.d.ts +23 -0
  261. package/resources/migration.d.ts.map +1 -0
  262. package/resources/migration.js +15 -0
  263. package/resources/migration.js.map +1 -0
  264. package/resources/migration.mjs +11 -0
  265. package/resources/migration.mjs.map +1 -0
  266. package/resources/org/api-key.d.mts +7 -0
  267. package/resources/org/api-key.d.mts.map +1 -1
  268. package/resources/org/api-key.d.ts +7 -0
  269. package/resources/org/api-key.d.ts.map +1 -1
  270. package/resources/org/api-key.js +7 -0
  271. package/resources/org/api-key.js.map +1 -1
  272. package/resources/org/api-key.mjs +7 -0
  273. package/resources/org/api-key.mjs.map +1 -1
  274. package/resources/org/org.js +3 -25
  275. package/resources/org/org.js.map +1 -1
  276. package/resources/org/project/project.d.mts +9 -6
  277. package/resources/org/project/project.d.mts.map +1 -1
  278. package/resources/org/project/project.d.ts +9 -6
  279. package/resources/org/project/project.d.ts.map +1 -1
  280. package/resources/org/project/project.js +13 -26
  281. package/resources/org/project/project.js.map +1 -1
  282. package/resources/org/project/project.mjs +9 -0
  283. package/resources/org/project/project.mjs.map +1 -1
  284. package/resources/org/project/trigger.d.mts +0 -4
  285. package/resources/org/project/trigger.d.mts.map +1 -1
  286. package/resources/org/project/trigger.d.ts +0 -4
  287. package/resources/org/project/trigger.d.ts.map +1 -1
  288. package/resources/org/project/webhook.d.mts +3 -0
  289. package/resources/org/project/webhook.d.mts.map +1 -1
  290. package/resources/org/project/webhook.d.ts +3 -0
  291. package/resources/org/project/webhook.d.ts.map +1 -1
  292. package/resources/org/project/webhook.js +3 -0
  293. package/resources/org/project/webhook.js.map +1 -1
  294. package/resources/org/project/webhook.mjs +3 -0
  295. package/resources/org/project/webhook.mjs.map +1 -1
  296. package/resources/org/project.js +2 -15
  297. package/resources/org/project.js.map +1 -1
  298. package/resources/org.js +2 -15
  299. package/resources/org.js.map +1 -1
  300. package/resources/team-members.d.mts +12 -0
  301. package/resources/team-members.d.mts.map +1 -1
  302. package/resources/team-members.d.ts +12 -0
  303. package/resources/team-members.d.ts.map +1 -1
  304. package/resources/team-members.js +12 -0
  305. package/resources/team-members.js.map +1 -1
  306. package/resources/team-members.mjs +12 -0
  307. package/resources/team-members.mjs.map +1 -1
  308. package/resources/toolkits.d.mts +25 -2
  309. package/resources/toolkits.d.mts.map +1 -1
  310. package/resources/toolkits.d.ts +25 -2
  311. package/resources/toolkits.d.ts.map +1 -1
  312. package/resources/toolkits.js +10 -0
  313. package/resources/toolkits.js.map +1 -1
  314. package/resources/toolkits.mjs +10 -0
  315. package/resources/toolkits.mjs.map +1 -1
  316. package/resources/tools.d.mts +107 -0
  317. package/resources/tools.d.mts.map +1 -1
  318. package/resources/tools.d.ts +107 -0
  319. package/resources/tools.d.ts.map +1 -1
  320. package/resources/tools.js +14 -0
  321. package/resources/tools.js.map +1 -1
  322. package/resources/tools.mjs +14 -0
  323. package/resources/tools.mjs.map +1 -1
  324. package/resources/trigger-instances/handle.d.mts +2 -2
  325. package/resources/trigger-instances/handle.d.mts.map +1 -1
  326. package/resources/trigger-instances/handle.d.ts +2 -2
  327. package/resources/trigger-instances/handle.d.ts.map +1 -1
  328. package/resources/trigger-instances/handle.js.map +1 -1
  329. package/resources/trigger-instances/handle.mjs.map +1 -1
  330. package/resources/trigger-instances/trigger-instances.d.mts +32 -9
  331. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  332. package/resources/trigger-instances/trigger-instances.d.ts +32 -9
  333. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  334. package/resources/trigger-instances/trigger-instances.js +2 -24
  335. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  336. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  337. package/resources/trigger-instances.js +2 -15
  338. package/resources/trigger-instances.js.map +1 -1
  339. package/resources/triggers-types.d.mts +11 -4
  340. package/resources/triggers-types.d.mts.map +1 -1
  341. package/resources/triggers-types.d.ts +11 -4
  342. package/resources/triggers-types.d.ts.map +1 -1
  343. package/resources/triggers-types.js +7 -0
  344. package/resources/triggers-types.js.map +1 -1
  345. package/resources/triggers-types.mjs +7 -0
  346. package/resources/triggers-types.mjs.map +1 -1
  347. package/resources.js +2 -15
  348. package/resources.js.map +1 -1
  349. package/src/client.ts +132 -88
  350. package/src/core/api-promise.ts +4 -4
  351. package/src/core/error.ts +2 -2
  352. package/src/core/resource.ts +3 -3
  353. package/src/index.ts +3 -3
  354. package/src/internal/headers.ts +4 -3
  355. package/src/internal/parse.ts +2 -2
  356. package/src/internal/qs/LICENSE.md +13 -0
  357. package/src/internal/qs/README.md +3 -0
  358. package/src/internal/qs/formats.ts +9 -0
  359. package/src/internal/qs/index.ts +13 -0
  360. package/src/internal/qs/stringify.ts +388 -0
  361. package/src/internal/qs/types.ts +71 -0
  362. package/src/internal/qs/utils.ts +265 -0
  363. package/src/internal/shims.ts +1 -1
  364. package/src/internal/to-file.ts +4 -2
  365. package/src/internal/uploads.ts +21 -9
  366. package/src/internal/utils/base64.ts +16 -13
  367. package/src/internal/utils/bytes.ts +32 -0
  368. package/src/internal/utils/log.ts +3 -3
  369. package/src/internal/utils/path.ts +2 -4
  370. package/src/internal/utils/uuid.ts +1 -3
  371. package/src/internal/utils/values.ts +6 -6
  372. package/src/resources/auth-configs.ts +100 -31
  373. package/src/resources/connected-accounts.ts +122 -295
  374. package/src/resources/files.ts +176 -0
  375. package/src/resources/index.ts +26 -8
  376. package/src/resources/mcp/command.ts +50 -0
  377. package/src/resources/mcp/index.ts +17 -0
  378. package/src/resources/mcp/mcp.ts +562 -0
  379. package/src/resources/mcp.ts +3 -0
  380. package/src/resources/migration.ts +37 -0
  381. package/src/resources/org/api-key.ts +7 -0
  382. package/src/resources/org/project/project.ts +9 -12
  383. package/src/resources/org/project/trigger.ts +0 -8
  384. package/src/resources/org/project/webhook.ts +3 -0
  385. package/src/resources/team-members.ts +12 -0
  386. package/src/resources/toolkits.ts +35 -2
  387. package/src/resources/tools.ts +128 -0
  388. package/src/resources/trigger-instances/handle.ts +10 -2
  389. package/src/resources/trigger-instances/trigger-instances.ts +36 -9
  390. package/src/resources/triggers-types.ts +13 -6
  391. package/src/version.ts +1 -1
  392. package/uploads.js +2 -15
  393. package/uploads.js.map +1 -1
  394. package/version.d.mts +1 -1
  395. package/version.d.mts.map +1 -1
  396. package/version.d.ts +1 -1
  397. package/version.d.ts.map +1 -1
  398. package/version.js +1 -1
  399. package/version.js.map +1 -1
  400. package/version.mjs +1 -1
  401. package/version.mjs.map +1 -1
  402. package/internal/shims/crypto.d.mts +0 -13
  403. package/internal/shims/crypto.d.mts.map +0 -1
  404. package/internal/shims/crypto.d.ts +0 -13
  405. package/internal/shims/crypto.d.ts.map +0 -1
  406. package/internal/shims/crypto.js +0 -13
  407. package/internal/shims/crypto.js.map +0 -1
  408. package/internal/shims/crypto.mjs +0 -9
  409. package/internal/shims/crypto.mjs.map +0 -1
  410. package/internal/shims/file.d.mts +0 -23
  411. package/internal/shims/file.d.mts.map +0 -1
  412. package/internal/shims/file.d.ts +0 -23
  413. package/internal/shims/file.d.ts.map +0 -1
  414. package/internal/shims/file.js +0 -16
  415. package/internal/shims/file.js.map +0 -1
  416. package/internal/shims/file.mjs +0 -12
  417. package/internal/shims/file.mjs.map +0 -1
  418. package/internal/shims/getBuiltinModule.d.mts +0 -11
  419. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  420. package/internal/shims/getBuiltinModule.d.ts +0 -11
  421. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  422. package/internal/shims/getBuiltinModule.js +0 -68
  423. package/internal/shims/getBuiltinModule.js.map +0 -1
  424. package/internal/shims/getBuiltinModule.mjs +0 -64
  425. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  426. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  427. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  428. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  429. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  430. package/internal/shims/nullGetBuiltinModule.js +0 -5
  431. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  432. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  433. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  434. package/resources/action-execution.d.mts +0 -155
  435. package/resources/action-execution.d.mts.map +0 -1
  436. package/resources/action-execution.d.ts +0 -155
  437. package/resources/action-execution.d.ts.map +0 -1
  438. package/resources/action-execution.js +0 -19
  439. package/resources/action-execution.js.map +0 -1
  440. package/resources/action-execution.mjs +0 -15
  441. package/resources/action-execution.mjs.map +0 -1
  442. package/resources/trigger.d.mts +0 -73
  443. package/resources/trigger.d.mts.map +0 -1
  444. package/resources/trigger.d.ts +0 -73
  445. package/resources/trigger.d.ts.map +0 -1
  446. package/resources/trigger.js +0 -12
  447. package/resources/trigger.js.map +0 -1
  448. package/resources/trigger.mjs +0 -8
  449. package/resources/trigger.mjs.map +0 -1
  450. package/src/internal/shims/crypto.ts +0 -18
  451. package/src/internal/shims/file.ts +0 -32
  452. package/src/internal/shims/getBuiltinModule.ts +0 -64
  453. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  454. package/src/resources/action-execution.ts +0 -244
  455. package/src/resources/trigger.ts +0 -108
@@ -6,6 +6,9 @@ import { RequestOptions } from '../internal/request-options';
6
6
  import { path } from '../internal/utils/path';
7
7
 
8
8
  export class ConnectedAccounts extends APIResource {
9
+ /**
10
+ * Create a new connected account
11
+ */
9
12
  create(
10
13
  body: ConnectedAccountCreateParams,
11
14
  options?: RequestOptions,
@@ -13,10 +16,16 @@ export class ConnectedAccounts extends APIResource {
13
16
  return this._client.post('/api/v3/connected_accounts', { body, ...options });
14
17
  }
15
18
 
19
+ /**
20
+ * Get connected account details by ID
21
+ */
16
22
  retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse> {
17
23
  return this._client.get(path`/api/v3/connected_accounts/${nanoid}`, options);
18
24
  }
19
25
 
26
+ /**
27
+ * List connected accounts with optional filters
28
+ */
20
29
  list(
21
30
  query: ConnectedAccountListParams | null | undefined = {},
22
31
  options?: RequestOptions,
@@ -24,14 +33,23 @@ export class ConnectedAccounts extends APIResource {
24
33
  return this._client.get('/api/v3/connected_accounts', { query, ...options });
25
34
  }
26
35
 
36
+ /**
37
+ * Delete a connected account
38
+ */
27
39
  delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse> {
28
40
  return this._client.delete(path`/api/v3/connected_accounts/${nanoid}`, options);
29
41
  }
30
42
 
43
+ /**
44
+ * Refresh authentication for a connected account
45
+ */
31
46
  refresh(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRefreshResponse> {
32
47
  return this._client.post(path`/api/v3/connected_accounts/${nanoid}/refresh`, options);
33
48
  }
34
49
 
50
+ /**
51
+ * Enable or disable a connected account
52
+ */
35
53
  updateStatus(
36
54
  nanoID: string,
37
55
  body: ConnectedAccountUpdateStatusParams,
@@ -47,17 +65,39 @@ export interface ConnectedAccountCreateResponse {
47
65
  */
48
66
  id: string;
49
67
 
68
+ deprecated: ConnectedAccountCreateResponse.Deprecated;
69
+
50
70
  /**
51
- * The redirect uri of the app
71
+ * @deprecated DEPRECATED: This field will be removed in a future version. Please
72
+ * use redirect_url instead.
52
73
  */
53
74
  redirect_uri: string | null;
54
75
 
76
+ /**
77
+ * The URL to redirect to after connection completion
78
+ */
79
+ redirect_url: string | null;
80
+
55
81
  /**
56
82
  * The status of the connected account
57
83
  */
58
84
  status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
59
85
  }
60
86
 
87
+ export namespace ConnectedAccountCreateResponse {
88
+ export interface Deprecated {
89
+ /**
90
+ * The uuid of the auth config
91
+ */
92
+ authConfigUuid: string;
93
+
94
+ /**
95
+ * The uuid of the connected account
96
+ */
97
+ uuid: string;
98
+ }
99
+ }
100
+
61
101
  export interface ConnectedAccountRetrieveResponse {
62
102
  /**
63
103
  * The id of the connection
@@ -108,10 +148,7 @@ export interface ConnectedAccountRetrieveResponse {
108
148
  */
109
149
  user_id: string;
110
150
 
111
- /**
112
- * The uuid of the connection
113
- */
114
- uuid: string;
151
+ deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
115
152
 
116
153
  /**
117
154
  * The endpoint to make test request for verification
@@ -153,6 +190,17 @@ export namespace ConnectedAccountRetrieveResponse {
153
190
  * Whether the auth config is disabled
154
191
  */
155
192
  is_disabled: boolean;
193
+
194
+ deprecated?: AuthConfig.Deprecated;
195
+ }
196
+
197
+ export namespace AuthConfig {
198
+ export interface Deprecated {
199
+ /**
200
+ * The uuid of the auth config
201
+ */
202
+ uuid: string;
203
+ }
156
204
  }
157
205
 
158
206
  export interface Toolkit {
@@ -161,6 +209,18 @@ export namespace ConnectedAccountRetrieveResponse {
161
209
  */
162
210
  slug: string;
163
211
  }
212
+
213
+ export interface Deprecated {
214
+ /**
215
+ * The labels of the connection
216
+ */
217
+ labels: Array<string>;
218
+
219
+ /**
220
+ * The uuid of the connection
221
+ */
222
+ uuid: string;
223
+ }
164
224
  }
165
225
 
166
226
  export interface ConnectedAccountListResponse {
@@ -217,15 +277,12 @@ export namespace ConnectedAccountListResponse {
217
277
  */
218
278
  user_id: string;
219
279
 
280
+ deprecated?: Item.Deprecated;
281
+
220
282
  /**
221
283
  * The endpoint to make test request for verification
222
284
  */
223
285
  test_request_endpoint?: string;
224
-
225
- /**
226
- * The uuid of the connected account
227
- */
228
- uuid?: string;
229
286
  }
230
287
 
231
288
  export namespace Item {
@@ -262,6 +319,17 @@ export namespace ConnectedAccountListResponse {
262
319
  * Whether the auth config is disabled
263
320
  */
264
321
  is_disabled: boolean;
322
+
323
+ deprecated?: AuthConfig.Deprecated;
324
+ }
325
+
326
+ export namespace AuthConfig {
327
+ export interface Deprecated {
328
+ /**
329
+ * The uuid of the auth config
330
+ */
331
+ uuid: string;
332
+ }
265
333
  }
266
334
 
267
335
  export interface Toolkit {
@@ -270,307 +338,50 @@ export namespace ConnectedAccountListResponse {
270
338
  */
271
339
  slug: string;
272
340
  }
341
+
342
+ export interface Deprecated {
343
+ /**
344
+ * The labels of the connection
345
+ */
346
+ labels: Array<string>;
347
+
348
+ /**
349
+ * The uuid of the connection
350
+ */
351
+ uuid: string;
352
+ }
273
353
  }
274
354
  }
275
355
 
276
356
  export interface ConnectedAccountDeleteResponse {
277
357
  /**
278
- * The id of the connection
279
- */
280
- id: string;
281
-
282
- auth_config: ConnectedAccountDeleteResponse.AuthConfig;
283
-
284
- /**
285
- * The created at of the connection
286
- */
287
- created_at: string;
288
-
289
- /**
290
- * The data of the connection
291
- */
292
- data: Record<string, unknown>;
293
-
294
- /**
295
- * Whether the connection is disabled
296
- */
297
- is_disabled: boolean;
298
-
299
- /**
300
- * The status of the connection
301
- */
302
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
303
-
304
- /**
305
- * The reason the connection is disabled
306
- */
307
- status_reason: string | null;
308
-
309
- toolkit: ConnectedAccountDeleteResponse.Toolkit;
310
-
311
- /**
312
- * The updated at of the connection
358
+ * The success of the update
313
359
  */
314
- updated_at: string;
315
-
316
- /**
317
- * The user id of the connection
318
- */
319
- user_id: string;
320
-
321
- /**
322
- * The uuid of the connection
323
- */
324
- uuid: string;
325
-
326
- /**
327
- * The endpoint to make test request for verification
328
- */
329
- test_request_endpoint?: string;
330
- }
331
-
332
- export namespace ConnectedAccountDeleteResponse {
333
- export interface AuthConfig {
334
- /**
335
- * The id of the auth config
336
- */
337
- id: string;
338
-
339
- /**
340
- * The auth scheme of the auth config
341
- */
342
- auth_scheme:
343
- | 'OAUTH2'
344
- | 'OAUTH1'
345
- | 'OAUTH1A'
346
- | 'API_KEY'
347
- | 'BASIC'
348
- | 'BILLCOM_AUTH'
349
- | 'BEARER_TOKEN'
350
- | 'GOOGLE_SERVICE_ACCOUNT'
351
- | 'NO_AUTH'
352
- | 'BASIC_WITH_JWT'
353
- | 'COMPOSIO_LINK'
354
- | 'CALCOM_AUTH'
355
- | 'SNOWFLAKE';
356
-
357
- /**
358
- * Whether the auth config is managed by Composio
359
- */
360
- is_composio_managed: boolean;
361
-
362
- /**
363
- * Whether the auth config is disabled
364
- */
365
- is_disabled: boolean;
366
- }
367
-
368
- export interface Toolkit {
369
- /**
370
- * The slug of the toolkit
371
- */
372
- slug: string;
373
- }
360
+ success: boolean;
374
361
  }
375
362
 
376
363
  export interface ConnectedAccountRefreshResponse {
377
364
  /**
378
- * The id of the connection
365
+ * The id of the connected account
379
366
  */
380
367
  id: string;
381
368
 
382
- auth_config: ConnectedAccountRefreshResponse.AuthConfig;
383
-
384
- /**
385
- * The created at of the connection
386
- */
387
- created_at: string;
388
-
389
- /**
390
- * The data of the connection
391
- */
392
- data: Record<string, unknown>;
393
-
394
369
  /**
395
- * Whether the connection is disabled
370
+ * The redirect URL of the app (previously named redirect_uri)
396
371
  */
397
- is_disabled: boolean;
372
+ redirect_url: string | null;
398
373
 
399
374
  /**
400
- * The status of the connection
375
+ * The status of the connected account
401
376
  */
402
377
  status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
403
-
404
- /**
405
- * The reason the connection is disabled
406
- */
407
- status_reason: string | null;
408
-
409
- toolkit: ConnectedAccountRefreshResponse.Toolkit;
410
-
411
- /**
412
- * The updated at of the connection
413
- */
414
- updated_at: string;
415
-
416
- /**
417
- * The user id of the connection
418
- */
419
- user_id: string;
420
-
421
- /**
422
- * The uuid of the connection
423
- */
424
- uuid: string;
425
-
426
- /**
427
- * The endpoint to make test request for verification
428
- */
429
- test_request_endpoint?: string;
430
- }
431
-
432
- export namespace ConnectedAccountRefreshResponse {
433
- export interface AuthConfig {
434
- /**
435
- * The id of the auth config
436
- */
437
- id: string;
438
-
439
- /**
440
- * The auth scheme of the auth config
441
- */
442
- auth_scheme:
443
- | 'OAUTH2'
444
- | 'OAUTH1'
445
- | 'OAUTH1A'
446
- | 'API_KEY'
447
- | 'BASIC'
448
- | 'BILLCOM_AUTH'
449
- | 'BEARER_TOKEN'
450
- | 'GOOGLE_SERVICE_ACCOUNT'
451
- | 'NO_AUTH'
452
- | 'BASIC_WITH_JWT'
453
- | 'COMPOSIO_LINK'
454
- | 'CALCOM_AUTH'
455
- | 'SNOWFLAKE';
456
-
457
- /**
458
- * Whether the auth config is managed by Composio
459
- */
460
- is_composio_managed: boolean;
461
-
462
- /**
463
- * Whether the auth config is disabled
464
- */
465
- is_disabled: boolean;
466
- }
467
-
468
- export interface Toolkit {
469
- /**
470
- * The slug of the toolkit
471
- */
472
- slug: string;
473
- }
474
378
  }
475
379
 
476
380
  export interface ConnectedAccountUpdateStatusResponse {
477
381
  /**
478
- * The id of the connection
479
- */
480
- id: string;
481
-
482
- auth_config: ConnectedAccountUpdateStatusResponse.AuthConfig;
483
-
484
- /**
485
- * The created at of the connection
486
- */
487
- created_at: string;
488
-
489
- /**
490
- * The data of the connection
491
- */
492
- data: Record<string, unknown>;
493
-
494
- /**
495
- * Whether the connection is disabled
496
- */
497
- is_disabled: boolean;
498
-
499
- /**
500
- * The status of the connection
382
+ * The success of the update
501
383
  */
502
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
503
-
504
- /**
505
- * The reason the connection is disabled
506
- */
507
- status_reason: string | null;
508
-
509
- toolkit: ConnectedAccountUpdateStatusResponse.Toolkit;
510
-
511
- /**
512
- * The updated at of the connection
513
- */
514
- updated_at: string;
515
-
516
- /**
517
- * The user id of the connection
518
- */
519
- user_id: string;
520
-
521
- /**
522
- * The uuid of the connection
523
- */
524
- uuid: string;
525
-
526
- /**
527
- * The endpoint to make test request for verification
528
- */
529
- test_request_endpoint?: string;
530
- }
531
-
532
- export namespace ConnectedAccountUpdateStatusResponse {
533
- export interface AuthConfig {
534
- /**
535
- * The id of the auth config
536
- */
537
- id: string;
538
-
539
- /**
540
- * The auth scheme of the auth config
541
- */
542
- auth_scheme:
543
- | 'OAUTH2'
544
- | 'OAUTH1'
545
- | 'OAUTH1A'
546
- | 'API_KEY'
547
- | 'BASIC'
548
- | 'BILLCOM_AUTH'
549
- | 'BEARER_TOKEN'
550
- | 'GOOGLE_SERVICE_ACCOUNT'
551
- | 'NO_AUTH'
552
- | 'BASIC_WITH_JWT'
553
- | 'COMPOSIO_LINK'
554
- | 'CALCOM_AUTH'
555
- | 'SNOWFLAKE';
556
-
557
- /**
558
- * Whether the auth config is managed by Composio
559
- */
560
- is_composio_managed: boolean;
561
-
562
- /**
563
- * Whether the auth config is disabled
564
- */
565
- is_disabled: boolean;
566
- }
567
-
568
- export interface Toolkit {
569
- /**
570
- * The slug of the toolkit
571
- */
572
- slug: string;
573
- }
384
+ success: boolean;
574
385
  }
575
386
 
576
387
  export interface ConnectedAccountCreateParams {
@@ -588,13 +399,24 @@ export namespace ConnectedAccountCreateParams {
588
399
  }
589
400
 
590
401
  export interface Connection {
402
+ /**
403
+ * The URL to redirect to after connection completion
404
+ */
405
+ callback_url?: string;
406
+
591
407
  /**
592
408
  * Initial data to pass to the connected account
593
409
  */
594
410
  data?: Record<string, unknown>;
595
411
 
596
412
  /**
597
- * The URL to redirect to after connection completion
413
+ * Whether the connection is rerouted
414
+ */
415
+ deprecated_is_v1_rerouted?: boolean;
416
+
417
+ /**
418
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
419
+ * Please use callback_url instead.
598
420
  */
599
421
  redirect_uri?: string;
600
422
 
@@ -607,15 +429,20 @@ export namespace ConnectedAccountCreateParams {
607
429
 
608
430
  export interface ConnectedAccountListParams {
609
431
  /**
610
- * The auth config id of the connected account
432
+ * The auth config ids of the connected accounts
611
433
  */
612
- auth_config_id?: string;
434
+ auth_config_ids?: Array<string> | null;
613
435
 
614
436
  /**
615
437
  * The cursor to paginate through the connected accounts
616
438
  */
617
439
  cursor?: number | null;
618
440
 
441
+ /**
442
+ * The labels of the connected accounts
443
+ */
444
+ labels?: Array<string> | null;
445
+
619
446
  /**
620
447
  * The limit of the connected accounts to return
621
448
  */
@@ -629,17 +456,17 @@ export interface ConnectedAccountListParams {
629
456
  /**
630
457
  * The status of the connected account
631
458
  */
632
- status?: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
459
+ statuses?: Array<'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED'> | null;
633
460
 
634
461
  /**
635
- * The toolkit slug of the connected account
462
+ * The toolkit slugs of the connected accounts
636
463
  */
637
- toolkit_slug?: string;
464
+ toolkit_slugs?: Array<string> | null;
638
465
 
639
466
  /**
640
- * The user id of the connected account
467
+ * The user ids of the connected accounts
641
468
  */
642
- user_id?: string;
469
+ user_ids?: Array<string> | null;
643
470
  }
644
471
 
645
472
  export interface ConnectedAccountUpdateStatusParams {