@composio/client 0.1.0-alpha.6 → 0.1.0-alpha.60

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 (681) hide show
  1. package/CHANGELOG.md +812 -0
  2. package/LICENSE +1 -1
  3. package/README.md +22 -35
  4. package/api-promise.js +2 -15
  5. package/api-promise.js.map +1 -1
  6. package/client.d.mts +51 -39
  7. package/client.d.mts.map +1 -1
  8. package/client.d.ts +51 -39
  9. package/client.d.ts.map +1 -1
  10. package/client.js +111 -99
  11. package/client.js.map +1 -1
  12. package/client.mjs +92 -57
  13. package/client.mjs.map +1 -1
  14. package/core/api-promise.d.mts +0 -1
  15. package/core/api-promise.d.mts.map +1 -1
  16. package/core/api-promise.d.ts +0 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.js +4 -14
  19. package/core/api-promise.js.map +1 -1
  20. package/core/api-promise.mjs +1 -11
  21. package/core/api-promise.mjs.map +1 -1
  22. package/core/error.d.mts +0 -1
  23. package/core/error.d.mts.map +1 -1
  24. package/core/error.d.ts +0 -1
  25. package/core/error.d.ts.map +1 -1
  26. package/core/error.js.map +1 -1
  27. package/core/error.mjs.map +1 -1
  28. package/core/resource.d.mts +1 -1
  29. package/core/resource.d.mts.map +1 -1
  30. package/core/resource.d.ts +1 -1
  31. package/core/resource.d.ts.map +1 -1
  32. package/core/resource.js.map +1 -1
  33. package/core/resource.mjs.map +1 -1
  34. package/error.js +2 -15
  35. package/error.js.map +1 -1
  36. package/internal/builtin-types.d.mts +0 -2
  37. package/internal/builtin-types.d.mts.map +1 -1
  38. package/internal/builtin-types.d.ts +0 -2
  39. package/internal/builtin-types.d.ts.map +1 -1
  40. package/internal/detect-platform.js +3 -3
  41. package/internal/detect-platform.js.map +1 -1
  42. package/internal/detect-platform.mjs +3 -3
  43. package/internal/detect-platform.mjs.map +1 -1
  44. package/internal/errors.d.mts.map +1 -1
  45. package/internal/errors.d.ts.map +1 -1
  46. package/internal/errors.js +2 -2
  47. package/internal/errors.js.map +1 -1
  48. package/internal/errors.mjs.map +1 -1
  49. package/internal/headers.d.mts +1 -2
  50. package/internal/headers.d.mts.map +1 -1
  51. package/internal/headers.d.ts +1 -2
  52. package/internal/headers.d.ts.map +1 -1
  53. package/internal/headers.js +7 -5
  54. package/internal/headers.js.map +1 -1
  55. package/internal/headers.mjs +7 -5
  56. package/internal/headers.mjs.map +1 -1
  57. package/internal/parse.d.mts +0 -1
  58. package/internal/parse.d.mts.map +1 -1
  59. package/internal/parse.d.ts +0 -1
  60. package/internal/parse.d.ts.map +1 -1
  61. package/internal/parse.js +6 -2
  62. package/internal/parse.js.map +1 -1
  63. package/internal/parse.mjs +5 -0
  64. package/internal/parse.mjs.map +1 -1
  65. package/internal/qs/formats.d.mts +1 -0
  66. package/internal/qs/formats.d.mts.map +1 -1
  67. package/internal/qs/formats.d.ts +1 -0
  68. package/internal/qs/formats.d.ts.map +1 -1
  69. package/internal/qs/formats.js +4 -2
  70. package/internal/qs/formats.js.map +1 -1
  71. package/internal/qs/formats.mjs +2 -1
  72. package/internal/qs/formats.mjs.map +1 -1
  73. package/internal/qs/stringify.d.mts.map +1 -1
  74. package/internal/qs/stringify.d.ts.map +1 -1
  75. package/internal/qs/stringify.js +16 -19
  76. package/internal/qs/stringify.js.map +1 -1
  77. package/internal/qs/stringify.mjs +17 -19
  78. package/internal/qs/stringify.mjs.map +1 -1
  79. package/internal/qs/utils.d.mts +1 -0
  80. package/internal/qs/utils.d.mts.map +1 -1
  81. package/internal/qs/utils.d.ts +1 -0
  82. package/internal/qs/utils.d.ts.map +1 -1
  83. package/internal/qs/utils.js +22 -21
  84. package/internal/qs/utils.js.map +1 -1
  85. package/internal/qs/utils.mjs +12 -12
  86. package/internal/qs/utils.mjs.map +1 -1
  87. package/internal/request-options.d.mts +43 -1
  88. package/internal/request-options.d.mts.map +1 -1
  89. package/internal/request-options.d.ts +43 -1
  90. package/internal/request-options.d.ts.map +1 -1
  91. package/internal/request-options.js.map +1 -1
  92. package/internal/request-options.mjs.map +1 -1
  93. package/internal/shim-types.d.mts +11 -22
  94. package/internal/shim-types.d.mts.map +1 -0
  95. package/internal/shim-types.d.ts +11 -22
  96. package/internal/shim-types.d.ts.map +1 -0
  97. package/internal/shim-types.js +4 -0
  98. package/internal/shim-types.js.map +1 -0
  99. package/{resources/org.mjs → internal/shim-types.mjs} +2 -2
  100. package/internal/shim-types.mjs.map +1 -0
  101. package/internal/shims.d.mts +2 -2
  102. package/internal/shims.d.mts.map +1 -1
  103. package/internal/shims.d.ts +2 -2
  104. package/internal/shims.d.ts.map +1 -1
  105. package/internal/shims.js +5 -6
  106. package/internal/shims.js.map +1 -1
  107. package/internal/shims.mjs.map +1 -1
  108. package/internal/to-file.d.mts +1 -2
  109. package/internal/to-file.d.mts.map +1 -1
  110. package/internal/to-file.d.ts +1 -2
  111. package/internal/to-file.d.ts.map +1 -1
  112. package/internal/to-file.js +5 -5
  113. package/internal/to-file.js.map +1 -1
  114. package/internal/to-file.mjs +4 -3
  115. package/internal/to-file.mjs.map +1 -1
  116. package/internal/tslib.js +81 -0
  117. package/internal/tslib.mjs +17 -0
  118. package/internal/types.d.mts +8 -7
  119. package/internal/types.d.mts.map +1 -1
  120. package/internal/types.d.ts +8 -7
  121. package/internal/types.d.ts.map +1 -1
  122. package/internal/uploads.d.mts +1 -3
  123. package/internal/uploads.d.mts.map +1 -1
  124. package/internal/uploads.d.ts +1 -3
  125. package/internal/uploads.d.ts.map +1 -1
  126. package/internal/uploads.js +17 -7
  127. package/internal/uploads.js.map +1 -1
  128. package/internal/uploads.mjs +13 -4
  129. package/internal/uploads.mjs.map +1 -1
  130. package/internal/utils/base64.d.mts.map +1 -1
  131. package/internal/utils/base64.d.ts.map +1 -1
  132. package/internal/utils/base64.js +12 -7
  133. package/internal/utils/base64.js.map +1 -1
  134. package/internal/utils/base64.mjs +12 -7
  135. package/internal/utils/base64.mjs.map +1 -1
  136. package/internal/utils/bytes.d.mts +4 -0
  137. package/internal/utils/bytes.d.mts.map +1 -0
  138. package/internal/utils/bytes.d.ts +4 -0
  139. package/internal/utils/bytes.d.ts.map +1 -0
  140. package/internal/utils/bytes.js +31 -0
  141. package/internal/utils/bytes.js.map +1 -0
  142. package/internal/utils/bytes.mjs +26 -0
  143. package/internal/utils/bytes.mjs.map +1 -0
  144. package/internal/utils/env.d.mts.map +1 -1
  145. package/internal/utils/env.d.ts.map +1 -1
  146. package/internal/utils/env.js.map +1 -1
  147. package/internal/utils/env.mjs.map +1 -1
  148. package/internal/utils/log.d.mts +0 -1
  149. package/internal/utils/log.d.mts.map +1 -1
  150. package/internal/utils/log.d.ts +0 -1
  151. package/internal/utils/log.d.ts.map +1 -1
  152. package/internal/utils/log.js +3 -3
  153. package/internal/utils/log.js.map +1 -1
  154. package/internal/utils/log.mjs +1 -1
  155. package/internal/utils/log.mjs.map +1 -1
  156. package/internal/utils/path.d.mts.map +1 -1
  157. package/internal/utils/path.d.ts.map +1 -1
  158. package/internal/utils/path.js +28 -7
  159. package/internal/utils/path.js.map +1 -1
  160. package/internal/utils/path.mjs +27 -6
  161. package/internal/utils/path.mjs.map +1 -1
  162. package/internal/utils/sleep.d.mts.map +1 -1
  163. package/internal/utils/sleep.d.ts.map +1 -1
  164. package/internal/utils/uuid.d.mts +1 -1
  165. package/internal/utils/uuid.d.mts.map +1 -1
  166. package/internal/utils/uuid.d.ts +1 -1
  167. package/internal/utils/uuid.d.ts.map +1 -1
  168. package/internal/utils/uuid.js +1 -2
  169. package/internal/utils/uuid.js.map +1 -1
  170. package/internal/utils/uuid.mjs +1 -2
  171. package/internal/utils/uuid.mjs.map +1 -1
  172. package/internal/utils/values.d.mts +2 -0
  173. package/internal/utils/values.d.mts.map +1 -1
  174. package/internal/utils/values.d.ts +2 -0
  175. package/internal/utils/values.d.ts.map +1 -1
  176. package/internal/utils/values.js +11 -8
  177. package/internal/utils/values.js.map +1 -1
  178. package/internal/utils/values.mjs +5 -3
  179. package/internal/utils/values.mjs.map +1 -1
  180. package/internal/utils.js +7 -20
  181. package/internal/utils.js.map +1 -1
  182. package/package.json +6 -14
  183. package/resource.js +2 -15
  184. package/resource.js.map +1 -1
  185. package/resources/auth-configs.d.mts +491 -54
  186. package/resources/auth-configs.d.mts.map +1 -1
  187. package/resources/auth-configs.d.ts +491 -54
  188. package/resources/auth-configs.d.ts.map +1 -1
  189. package/resources/auth-configs.js +70 -0
  190. package/resources/auth-configs.js.map +1 -1
  191. package/resources/auth-configs.mjs +70 -0
  192. package/resources/auth-configs.mjs.map +1 -1
  193. package/resources/cli/cli.d.mts +120 -0
  194. package/resources/cli/cli.d.mts.map +1 -0
  195. package/resources/cli/cli.d.ts +120 -0
  196. package/resources/cli/cli.d.ts.map +1 -0
  197. package/resources/cli/cli.js +36 -0
  198. package/resources/cli/cli.js.map +1 -0
  199. package/resources/cli/cli.mjs +31 -0
  200. package/resources/cli/cli.mjs.map +1 -0
  201. package/resources/cli/index.d.mts +3 -0
  202. package/resources/cli/index.d.mts.map +1 -0
  203. package/resources/cli/index.d.ts +3 -0
  204. package/resources/cli/index.d.ts.map +1 -0
  205. package/resources/cli/index.js +9 -0
  206. package/resources/cli/index.js.map +1 -0
  207. package/resources/cli/index.mjs +4 -0
  208. package/resources/cli/index.mjs.map +1 -0
  209. package/resources/cli/realtime.d.mts +53 -0
  210. package/resources/cli/realtime.d.mts.map +1 -0
  211. package/resources/cli/realtime.d.ts +53 -0
  212. package/resources/cli/realtime.d.ts.map +1 -0
  213. package/resources/cli/realtime.js +22 -0
  214. package/resources/cli/realtime.js.map +1 -0
  215. package/resources/cli/realtime.mjs +18 -0
  216. package/resources/cli/realtime.mjs.map +1 -0
  217. package/resources/cli.d.mts +1 -123
  218. package/resources/cli.d.mts.map +1 -1
  219. package/resources/cli.d.ts +1 -123
  220. package/resources/cli.d.ts.map +1 -1
  221. package/resources/cli.js +2 -14
  222. package/resources/cli.js.map +1 -1
  223. package/resources/cli.mjs +1 -12
  224. package/resources/cli.mjs.map +1 -1
  225. package/resources/connected-accounts.d.mts +8733 -233
  226. package/resources/connected-accounts.d.mts.map +1 -1
  227. package/resources/connected-accounts.d.ts +8733 -233
  228. package/resources/connected-accounts.d.ts.map +1 -1
  229. package/resources/connected-accounts.js +84 -2
  230. package/resources/connected-accounts.js.map +1 -1
  231. package/resources/connected-accounts.mjs +84 -2
  232. package/resources/connected-accounts.mjs.map +1 -1
  233. package/resources/files.d.mts +149 -0
  234. package/resources/files.d.mts.map +1 -0
  235. package/resources/files.d.ts +149 -0
  236. package/resources/files.d.ts.map +1 -0
  237. package/resources/files.js +39 -0
  238. package/resources/files.js.map +1 -0
  239. package/resources/files.mjs +35 -0
  240. package/resources/files.mjs.map +1 -0
  241. package/resources/index.d.mts +13 -11
  242. package/resources/index.d.mts.map +1 -1
  243. package/resources/index.d.ts +13 -11
  244. package/resources/index.d.ts.map +1 -1
  245. package/resources/index.js +14 -10
  246. package/resources/index.js.map +1 -1
  247. package/resources/index.mjs +7 -5
  248. package/resources/index.mjs.map +1 -1
  249. package/resources/link.d.mts +2017 -0
  250. package/resources/link.d.mts.map +1 -0
  251. package/resources/link.d.ts +2017 -0
  252. package/resources/link.d.ts.map +1 -0
  253. package/resources/link.js +16 -0
  254. package/resources/link.js.map +1 -0
  255. package/resources/link.mjs +12 -0
  256. package/resources/link.mjs.map +1 -0
  257. package/resources/logs/index.d.mts +4 -0
  258. package/resources/logs/index.d.mts.map +1 -0
  259. package/resources/logs/index.d.ts +4 -0
  260. package/resources/logs/index.d.ts.map +1 -0
  261. package/resources/logs/index.js +11 -0
  262. package/resources/logs/index.js.map +1 -0
  263. package/resources/logs/index.mjs +5 -0
  264. package/resources/logs/index.mjs.map +1 -0
  265. package/resources/logs/logs.d.mts +14 -0
  266. package/resources/logs/logs.d.mts.map +1 -0
  267. package/resources/logs/logs.d.ts +14 -0
  268. package/resources/logs/logs.d.ts.map +1 -0
  269. package/resources/logs/logs.js +21 -0
  270. package/resources/logs/logs.js.map +1 -0
  271. package/resources/logs/logs.mjs +16 -0
  272. package/resources/logs/logs.mjs.map +1 -0
  273. package/resources/logs/tools.d.mts +170 -0
  274. package/resources/logs/tools.d.mts.map +1 -0
  275. package/resources/logs/tools.d.ts +170 -0
  276. package/resources/logs/tools.d.ts.map +1 -0
  277. package/resources/logs/tools.js +32 -0
  278. package/resources/logs/tools.js.map +1 -0
  279. package/resources/logs/tools.mjs +28 -0
  280. package/resources/logs/tools.mjs.map +1 -0
  281. package/resources/logs/triggers.d.mts +158 -0
  282. package/resources/logs/triggers.d.mts.map +1 -0
  283. package/resources/logs/triggers.d.ts +158 -0
  284. package/resources/logs/triggers.d.ts.map +1 -0
  285. package/resources/logs/triggers.js +33 -0
  286. package/resources/logs/triggers.js.map +1 -0
  287. package/resources/logs/triggers.mjs +29 -0
  288. package/resources/logs/triggers.mjs.map +1 -0
  289. package/resources/logs.d.mts +2 -0
  290. package/resources/logs.d.mts.map +1 -0
  291. package/resources/logs.d.ts +2 -0
  292. package/resources/logs.d.ts.map +1 -0
  293. package/resources/logs.js +6 -0
  294. package/resources/logs.js.map +1 -0
  295. package/resources/logs.mjs +3 -0
  296. package/resources/logs.mjs.map +1 -0
  297. package/resources/mcp/custom.d.mts +102 -0
  298. package/resources/mcp/custom.d.mts.map +1 -0
  299. package/resources/mcp/custom.d.ts +102 -0
  300. package/resources/mcp/custom.d.ts.map +1 -0
  301. package/resources/mcp/custom.js +26 -0
  302. package/resources/mcp/custom.js.map +1 -0
  303. package/resources/mcp/custom.mjs +22 -0
  304. package/resources/mcp/custom.mjs.map +1 -0
  305. package/resources/mcp/generate.d.mts +59 -0
  306. package/resources/mcp/generate.d.mts.map +1 -0
  307. package/resources/mcp/generate.d.ts +59 -0
  308. package/resources/mcp/generate.d.ts.map +1 -0
  309. package/resources/mcp/generate.js +26 -0
  310. package/resources/mcp/generate.js.map +1 -0
  311. package/resources/mcp/generate.mjs +22 -0
  312. package/resources/mcp/generate.mjs.map +1 -0
  313. package/resources/mcp/index.d.mts +3 -2
  314. package/resources/mcp/index.d.mts.map +1 -1
  315. package/resources/mcp/index.d.ts +3 -2
  316. package/resources/mcp/index.d.ts.map +1 -1
  317. package/resources/mcp/index.js +5 -3
  318. package/resources/mcp/index.js.map +1 -1
  319. package/resources/mcp/index.mjs +2 -1
  320. package/resources/mcp/index.mjs.map +1 -1
  321. package/resources/mcp/mcp.d.mts +447 -175
  322. package/resources/mcp/mcp.d.mts.map +1 -1
  323. package/resources/mcp/mcp.d.ts +447 -175
  324. package/resources/mcp/mcp.d.ts.map +1 -1
  325. package/resources/mcp/mcp.js +89 -39
  326. package/resources/mcp/mcp.js.map +1 -1
  327. package/resources/mcp/mcp.mjs +88 -16
  328. package/resources/mcp/mcp.mjs.map +1 -1
  329. package/resources/mcp.js +2 -15
  330. package/resources/mcp.js.map +1 -1
  331. package/resources/migration.d.mts +32 -0
  332. package/resources/migration.d.mts.map +1 -0
  333. package/resources/migration.d.ts +32 -0
  334. package/resources/migration.d.ts.map +1 -0
  335. package/resources/migration.js +17 -0
  336. package/resources/migration.js.map +1 -0
  337. package/resources/migration.mjs +13 -0
  338. package/resources/migration.mjs.map +1 -0
  339. package/resources/project/config.d.mts +71 -0
  340. package/resources/project/config.d.mts.map +1 -0
  341. package/resources/project/config.d.ts +71 -0
  342. package/resources/project/config.d.ts.map +1 -0
  343. package/resources/project/config.js +33 -0
  344. package/resources/project/config.js.map +1 -0
  345. package/resources/project/config.mjs +29 -0
  346. package/resources/project/config.mjs.map +1 -0
  347. package/resources/project/index.d.mts +3 -0
  348. package/resources/project/index.d.mts.map +1 -0
  349. package/resources/project/index.d.ts +3 -0
  350. package/resources/project/index.d.ts.map +1 -0
  351. package/resources/project/index.js +9 -0
  352. package/resources/project/index.js.map +1 -0
  353. package/resources/project/index.mjs +4 -0
  354. package/resources/project/index.mjs.map +1 -0
  355. package/resources/project/project.d.mts +10 -0
  356. package/resources/project/project.d.mts.map +1 -0
  357. package/resources/project/project.d.ts +10 -0
  358. package/resources/project/project.d.ts.map +1 -0
  359. package/resources/project/project.js +17 -0
  360. package/resources/project/project.js.map +1 -0
  361. package/resources/project/project.mjs +12 -0
  362. package/resources/project/project.mjs.map +1 -0
  363. package/resources/{org/project.d.mts.map → project.d.mts.map} +1 -1
  364. package/resources/{org/project.d.ts.map → project.d.ts.map} +1 -1
  365. package/resources/project.js +6 -0
  366. package/resources/project.js.map +1 -0
  367. package/resources/project.mjs.map +1 -0
  368. package/resources/tool-router/index.d.mts +3 -0
  369. package/resources/tool-router/index.d.mts.map +1 -0
  370. package/resources/tool-router/index.d.ts +3 -0
  371. package/resources/tool-router/index.d.ts.map +1 -0
  372. package/resources/tool-router/index.js +9 -0
  373. package/resources/tool-router/index.js.map +1 -0
  374. package/resources/tool-router/index.mjs +4 -0
  375. package/resources/tool-router/index.mjs.map +1 -0
  376. package/resources/tool-router/session.d.mts +1194 -0
  377. package/resources/tool-router/session.d.mts.map +1 -0
  378. package/resources/tool-router/session.d.ts +1194 -0
  379. package/resources/tool-router/session.d.ts.map +1 -0
  380. package/resources/tool-router/session.js +142 -0
  381. package/resources/tool-router/session.js.map +1 -0
  382. package/resources/tool-router/session.mjs +138 -0
  383. package/resources/tool-router/session.mjs.map +1 -0
  384. package/resources/tool-router/tool-router.d.mts +91 -0
  385. package/resources/tool-router/tool-router.d.mts.map +1 -0
  386. package/resources/tool-router/tool-router.d.ts +91 -0
  387. package/resources/tool-router/tool-router.d.ts.map +1 -0
  388. package/resources/tool-router/tool-router.js +46 -0
  389. package/resources/tool-router/tool-router.js.map +1 -0
  390. package/resources/tool-router/tool-router.mjs +41 -0
  391. package/resources/tool-router/tool-router.mjs.map +1 -0
  392. package/resources/tool-router.d.mts +2 -0
  393. package/resources/tool-router.d.mts.map +1 -0
  394. package/resources/tool-router.d.ts +2 -0
  395. package/resources/tool-router.d.ts.map +1 -0
  396. package/resources/tool-router.js +6 -0
  397. package/resources/tool-router.js.map +1 -0
  398. package/resources/tool-router.mjs +3 -0
  399. package/resources/tool-router.mjs.map +1 -0
  400. package/resources/toolkits.d.mts +298 -6
  401. package/resources/toolkits.d.mts.map +1 -1
  402. package/resources/toolkits.d.ts +298 -6
  403. package/resources/toolkits.d.ts.map +1 -1
  404. package/resources/toolkits.js +20 -2
  405. package/resources/toolkits.js.map +1 -1
  406. package/resources/toolkits.mjs +20 -2
  407. package/resources/toolkits.mjs.map +1 -1
  408. package/resources/tools.d.mts +1286 -41
  409. package/resources/tools.d.mts.map +1 -1
  410. package/resources/tools.d.ts +1286 -41
  411. package/resources/tools.d.ts.map +1 -1
  412. package/resources/tools.js +82 -6
  413. package/resources/tools.js.map +1 -1
  414. package/resources/tools.mjs +82 -6
  415. package/resources/tools.mjs.map +1 -1
  416. package/resources/trigger-instances/index.d.mts +2 -2
  417. package/resources/trigger-instances/index.d.mts.map +1 -1
  418. package/resources/trigger-instances/index.d.ts +2 -2
  419. package/resources/trigger-instances/index.d.ts.map +1 -1
  420. package/resources/trigger-instances/index.js +3 -3
  421. package/resources/trigger-instances/index.js.map +1 -1
  422. package/resources/trigger-instances/index.mjs +1 -1
  423. package/resources/trigger-instances/index.mjs.map +1 -1
  424. package/resources/trigger-instances/manage.d.mts +52 -0
  425. package/resources/trigger-instances/manage.d.mts.map +1 -0
  426. package/resources/trigger-instances/manage.d.ts +52 -0
  427. package/resources/trigger-instances/manage.d.ts.map +1 -0
  428. package/resources/trigger-instances/manage.js +42 -0
  429. package/resources/trigger-instances/manage.js.map +1 -0
  430. package/resources/trigger-instances/manage.mjs +38 -0
  431. package/resources/trigger-instances/manage.mjs.map +1 -0
  432. package/resources/trigger-instances/trigger-instances.d.mts +181 -42
  433. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  434. package/resources/trigger-instances/trigger-instances.d.ts +181 -42
  435. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  436. package/resources/trigger-instances/trigger-instances.js +31 -35
  437. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  438. package/resources/trigger-instances/trigger-instances.mjs +30 -12
  439. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  440. package/resources/trigger-instances.js +2 -15
  441. package/resources/trigger-instances.js.map +1 -1
  442. package/resources/triggers-types.d.mts +145 -12
  443. package/resources/triggers-types.d.mts.map +1 -1
  444. package/resources/triggers-types.d.ts +145 -12
  445. package/resources/triggers-types.d.ts.map +1 -1
  446. package/resources/triggers-types.js +14 -2
  447. package/resources/triggers-types.js.map +1 -1
  448. package/resources/triggers-types.mjs +14 -2
  449. package/resources/triggers-types.mjs.map +1 -1
  450. package/resources.js +2 -15
  451. package/resources.js.map +1 -1
  452. package/src/client.ts +180 -117
  453. package/src/core/resource.ts +1 -1
  454. package/src/internal/detect-platform.ts +3 -3
  455. package/src/internal/headers.ts +9 -8
  456. package/src/internal/parse.ts +6 -0
  457. package/src/internal/qs/formats.ts +2 -1
  458. package/src/internal/qs/stringify.ts +17 -20
  459. package/src/internal/qs/utils.ts +14 -14
  460. package/src/internal/request-options.ts +54 -0
  461. package/src/internal/shim-types.ts +26 -0
  462. package/src/internal/shims.ts +2 -2
  463. package/src/internal/to-file.ts +5 -3
  464. package/src/internal/types.ts +9 -6
  465. package/src/internal/uploads.ts +17 -5
  466. package/src/internal/utils/base64.ts +13 -10
  467. package/src/internal/utils/bytes.ts +32 -0
  468. package/src/internal/utils/log.ts +1 -1
  469. package/src/internal/utils/path.ts +33 -8
  470. package/src/internal/utils/uuid.ts +1 -3
  471. package/src/internal/utils/values.ts +6 -3
  472. package/src/resources/auth-configs.ts +556 -67
  473. package/src/resources/cli/cli.ts +163 -0
  474. package/src/resources/cli/index.ts +15 -0
  475. package/src/resources/cli/realtime.ts +72 -0
  476. package/src/resources/cli.ts +1 -164
  477. package/src/resources/connected-accounts.ts +16480 -459
  478. package/src/resources/files.ts +194 -0
  479. package/src/resources/index.ts +28 -27
  480. package/src/resources/link.ts +3817 -0
  481. package/src/resources/logs/index.ts +10 -0
  482. package/src/resources/logs/logs.ts +31 -0
  483. package/src/resources/{action-execution.ts → logs/tools.ts} +94 -102
  484. package/src/resources/logs/triggers.ts +238 -0
  485. package/src/resources/{org.ts → logs.ts} +1 -1
  486. package/src/resources/mcp/custom.ts +122 -0
  487. package/src/resources/mcp/generate.ts +71 -0
  488. package/src/resources/mcp/index.ts +3 -3
  489. package/src/resources/mcp/mcp.ts +484 -200
  490. package/src/resources/migration.ts +46 -0
  491. package/src/resources/project/config.ts +110 -0
  492. package/src/resources/project/index.ts +9 -0
  493. package/src/resources/project/project.ts +20 -0
  494. package/src/resources/tool-router/index.ts +25 -0
  495. package/src/resources/tool-router/session.ts +1434 -0
  496. package/src/resources/tool-router/tool-router.ts +149 -0
  497. package/src/resources/tool-router.ts +3 -0
  498. package/src/resources/toolkits.ts +340 -8
  499. package/src/resources/tools.ts +1980 -60
  500. package/src/resources/trigger-instances/index.ts +5 -9
  501. package/src/resources/trigger-instances/manage.ts +72 -0
  502. package/src/resources/trigger-instances/trigger-instances.ts +194 -66
  503. package/src/resources/triggers-types.ts +149 -14
  504. package/src/version.ts +1 -1
  505. package/uploads.js +2 -15
  506. package/uploads.js.map +1 -1
  507. package/version.d.mts +1 -1
  508. package/version.d.mts.map +1 -1
  509. package/version.d.ts +1 -1
  510. package/version.d.ts.map +1 -1
  511. package/version.js +1 -1
  512. package/version.js.map +1 -1
  513. package/version.mjs +1 -1
  514. package/version.mjs.map +1 -1
  515. package/internal/shims/crypto.d.mts +0 -13
  516. package/internal/shims/crypto.d.mts.map +0 -1
  517. package/internal/shims/crypto.d.ts +0 -13
  518. package/internal/shims/crypto.d.ts.map +0 -1
  519. package/internal/shims/crypto.js +0 -13
  520. package/internal/shims/crypto.js.map +0 -1
  521. package/internal/shims/crypto.mjs +0 -9
  522. package/internal/shims/crypto.mjs.map +0 -1
  523. package/internal/shims/file.d.mts +0 -23
  524. package/internal/shims/file.d.mts.map +0 -1
  525. package/internal/shims/file.d.ts +0 -23
  526. package/internal/shims/file.d.ts.map +0 -1
  527. package/internal/shims/file.js +0 -16
  528. package/internal/shims/file.js.map +0 -1
  529. package/internal/shims/file.mjs +0 -12
  530. package/internal/shims/file.mjs.map +0 -1
  531. package/internal/shims/getBuiltinModule.d.mts +0 -11
  532. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  533. package/internal/shims/getBuiltinModule.d.ts +0 -11
  534. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  535. package/internal/shims/getBuiltinModule.js +0 -71
  536. package/internal/shims/getBuiltinModule.js.map +0 -1
  537. package/internal/shims/getBuiltinModule.mjs +0 -67
  538. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  539. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  540. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  541. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  542. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  543. package/internal/shims/nullGetBuiltinModule.js +0 -5
  544. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  545. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  546. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  547. package/resources/action-execution.d.mts +0 -155
  548. package/resources/action-execution.d.mts.map +0 -1
  549. package/resources/action-execution.d.ts +0 -155
  550. package/resources/action-execution.d.ts.map +0 -1
  551. package/resources/action-execution.js +0 -19
  552. package/resources/action-execution.js.map +0 -1
  553. package/resources/action-execution.mjs +0 -15
  554. package/resources/action-execution.mjs.map +0 -1
  555. package/resources/mcp/command.d.mts +0 -34
  556. package/resources/mcp/command.d.mts.map +0 -1
  557. package/resources/mcp/command.d.ts +0 -34
  558. package/resources/mcp/command.d.ts.map +0 -1
  559. package/resources/mcp/command.js +0 -12
  560. package/resources/mcp/command.js.map +0 -1
  561. package/resources/mcp/command.mjs +0 -8
  562. package/resources/mcp/command.mjs.map +0 -1
  563. package/resources/org/api-key.d.mts +0 -17
  564. package/resources/org/api-key.d.mts.map +0 -1
  565. package/resources/org/api-key.d.ts +0 -17
  566. package/resources/org/api-key.d.ts.map +0 -1
  567. package/resources/org/api-key.js +0 -15
  568. package/resources/org/api-key.js.map +0 -1
  569. package/resources/org/api-key.mjs +0 -11
  570. package/resources/org/api-key.mjs.map +0 -1
  571. package/resources/org/index.d.mts +0 -4
  572. package/resources/org/index.d.mts.map +0 -1
  573. package/resources/org/index.d.ts +0 -4
  574. package/resources/org/index.d.ts.map +0 -1
  575. package/resources/org/index.js +0 -11
  576. package/resources/org/index.js.map +0 -1
  577. package/resources/org/index.mjs +0 -5
  578. package/resources/org/index.mjs.map +0 -1
  579. package/resources/org/org.d.mts +0 -14
  580. package/resources/org/org.d.mts.map +0 -1
  581. package/resources/org/org.d.ts +0 -14
  582. package/resources/org/org.d.ts.map +0 -1
  583. package/resources/org/org.js +0 -43
  584. package/resources/org/org.js.map +0 -1
  585. package/resources/org/org.mjs +0 -16
  586. package/resources/org/org.mjs.map +0 -1
  587. package/resources/org/project/api-keys.d.mts +0 -109
  588. package/resources/org/project/api-keys.d.mts.map +0 -1
  589. package/resources/org/project/api-keys.d.ts +0 -109
  590. package/resources/org/project/api-keys.d.ts.map +0 -1
  591. package/resources/org/project/api-keys.js +0 -23
  592. package/resources/org/project/api-keys.js.map +0 -1
  593. package/resources/org/project/api-keys.mjs +0 -19
  594. package/resources/org/project/api-keys.mjs.map +0 -1
  595. package/resources/org/project/index.d.mts +0 -5
  596. package/resources/org/project/index.d.mts.map +0 -1
  597. package/resources/org/project/index.d.ts +0 -5
  598. package/resources/org/project/index.d.ts.map +0 -1
  599. package/resources/org/project/index.js +0 -13
  600. package/resources/org/project/index.js.map +0 -1
  601. package/resources/org/project/index.mjs +0 -6
  602. package/resources/org/project/index.mjs.map +0 -1
  603. package/resources/org/project/project.d.mts +0 -90
  604. package/resources/org/project/project.d.mts.map +0 -1
  605. package/resources/org/project/project.d.ts +0 -90
  606. package/resources/org/project/project.d.ts.map +0 -1
  607. package/resources/org/project/project.js +0 -60
  608. package/resources/org/project/project.js.map +0 -1
  609. package/resources/org/project/project.mjs +0 -33
  610. package/resources/org/project/project.mjs.map +0 -1
  611. package/resources/org/project/trigger.d.mts +0 -51
  612. package/resources/org/project/trigger.d.mts.map +0 -1
  613. package/resources/org/project/trigger.d.ts +0 -51
  614. package/resources/org/project/trigger.d.ts.map +0 -1
  615. package/resources/org/project/trigger.js +0 -16
  616. package/resources/org/project/trigger.js.map +0 -1
  617. package/resources/org/project/trigger.mjs +0 -12
  618. package/resources/org/project/trigger.mjs.map +0 -1
  619. package/resources/org/project/webhook.d.mts +0 -92
  620. package/resources/org/project/webhook.d.mts.map +0 -1
  621. package/resources/org/project/webhook.d.ts +0 -92
  622. package/resources/org/project/webhook.d.ts.map +0 -1
  623. package/resources/org/project/webhook.js +0 -24
  624. package/resources/org/project/webhook.js.map +0 -1
  625. package/resources/org/project/webhook.mjs +0 -20
  626. package/resources/org/project/webhook.mjs.map +0 -1
  627. package/resources/org/project.js +0 -19
  628. package/resources/org/project.js.map +0 -1
  629. package/resources/org/project.mjs.map +0 -1
  630. package/resources/org.d.mts +0 -2
  631. package/resources/org.d.mts.map +0 -1
  632. package/resources/org.d.ts +0 -2
  633. package/resources/org.d.ts.map +0 -1
  634. package/resources/org.js +0 -19
  635. package/resources/org.js.map +0 -1
  636. package/resources/org.mjs.map +0 -1
  637. package/resources/team-members.d.mts +0 -57
  638. package/resources/team-members.d.mts.map +0 -1
  639. package/resources/team-members.d.ts +0 -57
  640. package/resources/team-members.d.ts.map +0 -1
  641. package/resources/team-members.js +0 -22
  642. package/resources/team-members.js.map +0 -1
  643. package/resources/team-members.mjs +0 -18
  644. package/resources/team-members.mjs.map +0 -1
  645. package/resources/trigger-instances/handle.d.mts +0 -25
  646. package/resources/trigger-instances/handle.d.mts.map +0 -1
  647. package/resources/trigger-instances/handle.d.ts +0 -25
  648. package/resources/trigger-instances/handle.d.ts.map +0 -1
  649. package/resources/trigger-instances/handle.js +0 -18
  650. package/resources/trigger-instances/handle.js.map +0 -1
  651. package/resources/trigger-instances/handle.mjs +0 -14
  652. package/resources/trigger-instances/handle.mjs.map +0 -1
  653. package/resources/trigger.d.mts +0 -73
  654. package/resources/trigger.d.mts.map +0 -1
  655. package/resources/trigger.d.ts +0 -73
  656. package/resources/trigger.d.ts.map +0 -1
  657. package/resources/trigger.js +0 -12
  658. package/resources/trigger.js.map +0 -1
  659. package/resources/trigger.mjs +0 -8
  660. package/resources/trigger.mjs.map +0 -1
  661. package/src/internal/shim-types.d.ts +0 -28
  662. package/src/internal/shims/crypto.ts +0 -18
  663. package/src/internal/shims/file.ts +0 -32
  664. package/src/internal/shims/getBuiltinModule.ts +0 -66
  665. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  666. package/src/resources/mcp/command.ts +0 -47
  667. package/src/resources/org/api-key.ts +0 -30
  668. package/src/resources/org/index.ts +0 -12
  669. package/src/resources/org/org.ts +0 -39
  670. package/src/resources/org/project/api-keys.ts +0 -156
  671. package/src/resources/org/project/index.ts +0 -35
  672. package/src/resources/org/project/project.ts +0 -206
  673. package/src/resources/org/project/trigger.ts +0 -95
  674. package/src/resources/org/project/webhook.ts +0 -131
  675. package/src/resources/team-members.ts +0 -111
  676. package/src/resources/trigger-instances/handle.ts +0 -45
  677. package/src/resources/trigger.ts +0 -108
  678. /package/resources/{org/project.d.mts → project.d.mts} +0 -0
  679. /package/resources/{org/project.d.ts → project.d.ts} +0 -0
  680. /package/resources/{org/project.mjs → project.mjs} +0 -0
  681. /package/src/resources/{org/project.ts → project.ts} +0 -0
@@ -5,21 +5,103 @@ exports.ConnectedAccounts = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  const path_1 = require("../internal/utils/path.js");
7
7
  class ConnectedAccounts extends resource_1.APIResource {
8
+ /**
9
+ * Initiates a new connection to an external service for a user. For OAuth-based
10
+ * toolkits, this returns a redirect URL to complete authentication. For API
11
+ * key-based toolkits, provide the credentials directly in the request body. Use
12
+ * the `user_id` field to associate the connection with a specific user in your
13
+ * system.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const connectedAccount =
18
+ * await client.connectedAccounts.create({
19
+ * auth_config: { id: 'id' },
20
+ * connection: {},
21
+ * });
22
+ * ```
23
+ */
8
24
  create(body, options) {
9
25
  return this._client.post('/api/v3/connected_accounts', { body, ...options });
10
26
  }
27
+ /**
28
+ * Retrieves comprehensive details of a connected account, including authentication
29
+ * configuration, connection status, and all parameters needed for API requests.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const connectedAccount =
34
+ * await client.connectedAccounts.retrieve(
35
+ * 'con_1a2b3c4d5e6f',
36
+ * );
37
+ * ```
38
+ */
11
39
  retrieve(nanoid, options) {
12
40
  return this._client.get((0, path_1.path) `/api/v3/connected_accounts/${nanoid}`, options);
13
41
  }
42
+ /**
43
+ * Retrieves all connected accounts for your project. Connected accounts represent
44
+ * authenticated user connections to external services (e.g., a user's Gmail
45
+ * account, Slack workspace). Filter by toolkit, status, user ID, or auth config to
46
+ * find specific connections.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const connectedAccounts =
51
+ * await client.connectedAccounts.list();
52
+ * ```
53
+ */
14
54
  list(query = {}, options) {
15
55
  return this._client.get('/api/v3/connected_accounts', { query, ...options });
16
56
  }
57
+ /**
58
+ * Soft-deletes a connected account by marking it as deleted in the database. This
59
+ * prevents the account from being used for API calls but preserves the record for
60
+ * audit purposes.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const connectedAccount =
65
+ * await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
66
+ * ```
67
+ */
17
68
  delete(nanoid, options) {
18
69
  return this._client.delete((0, path_1.path) `/api/v3/connected_accounts/${nanoid}`, options);
19
70
  }
20
- refresh(nanoid, options) {
21
- return this._client.post((0, path_1.path) `/api/v3/connected_accounts/${nanoid}/refresh`, options);
71
+ /**
72
+ * Initiates a new authentication flow for a connected account when credentials
73
+ * have expired or become invalid. This may generate a new authentication URL for
74
+ * OAuth flows or refresh tokens for other auth schemes.
75
+ *
76
+ * @example
77
+ * ```ts
78
+ * const response = await client.connectedAccounts.refresh(
79
+ * 'con_1a2b3c4d5e6f',
80
+ * );
81
+ * ```
82
+ */
83
+ refresh(nanoid, params = {}, options) {
84
+ const { query_redirect_url, ...body } = params ?? {};
85
+ return this._client.post((0, path_1.path) `/api/v3/connected_accounts/${nanoid}/refresh`, {
86
+ query: { redirect_url: query_redirect_url },
87
+ body,
88
+ ...options,
89
+ });
22
90
  }
91
+ /**
92
+ * Updates the status of a connected account to either enabled (active) or disabled
93
+ * (inactive). Disabled accounts cannot be used for API calls but remain in the
94
+ * database.
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const response =
99
+ * await client.connectedAccounts.updateStatus(
100
+ * 'con_1a2b3c4d5e6f',
101
+ * { enabled: true },
102
+ * );
103
+ * ```
104
+ */
23
105
  updateStatus(nanoID, body, options) {
24
106
  return this._client.patch((0, path_1.path) `/api/v3/connected_accounts/${nanoID}/status`, { body, ...options });
25
107
  }
@@ -1 +1 @@
1
- {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,iBAAkB,SAAQ,sBAAW;IAChD,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,YAAY,CACV,MAAc,EACd,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AAlCD,8CAkCC"}
1
+ {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,iBAAkB,SAAQ,sBAAW;IAChD;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CACL,MAAc,EACd,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,UAAU,EAAE;YAC3E,KAAK,EAAE,EAAE,YAAY,EAAE,kBAAkB,EAAE;YAC3C,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,MAAc,EACd,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,8BAA8B,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AAxHD,8CAwHC"}
@@ -2,21 +2,103 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  import { path } from "../internal/utils/path.mjs";
4
4
  export class ConnectedAccounts extends APIResource {
5
+ /**
6
+ * Initiates a new connection to an external service for a user. For OAuth-based
7
+ * toolkits, this returns a redirect URL to complete authentication. For API
8
+ * key-based toolkits, provide the credentials directly in the request body. Use
9
+ * the `user_id` field to associate the connection with a specific user in your
10
+ * system.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const connectedAccount =
15
+ * await client.connectedAccounts.create({
16
+ * auth_config: { id: 'id' },
17
+ * connection: {},
18
+ * });
19
+ * ```
20
+ */
5
21
  create(body, options) {
6
22
  return this._client.post('/api/v3/connected_accounts', { body, ...options });
7
23
  }
24
+ /**
25
+ * Retrieves comprehensive details of a connected account, including authentication
26
+ * configuration, connection status, and all parameters needed for API requests.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const connectedAccount =
31
+ * await client.connectedAccounts.retrieve(
32
+ * 'con_1a2b3c4d5e6f',
33
+ * );
34
+ * ```
35
+ */
8
36
  retrieve(nanoid, options) {
9
37
  return this._client.get(path `/api/v3/connected_accounts/${nanoid}`, options);
10
38
  }
39
+ /**
40
+ * Retrieves all connected accounts for your project. Connected accounts represent
41
+ * authenticated user connections to external services (e.g., a user's Gmail
42
+ * account, Slack workspace). Filter by toolkit, status, user ID, or auth config to
43
+ * find specific connections.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const connectedAccounts =
48
+ * await client.connectedAccounts.list();
49
+ * ```
50
+ */
11
51
  list(query = {}, options) {
12
52
  return this._client.get('/api/v3/connected_accounts', { query, ...options });
13
53
  }
54
+ /**
55
+ * Soft-deletes a connected account by marking it as deleted in the database. This
56
+ * prevents the account from being used for API calls but preserves the record for
57
+ * audit purposes.
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const connectedAccount =
62
+ * await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
63
+ * ```
64
+ */
14
65
  delete(nanoid, options) {
15
66
  return this._client.delete(path `/api/v3/connected_accounts/${nanoid}`, options);
16
67
  }
17
- refresh(nanoid, options) {
18
- return this._client.post(path `/api/v3/connected_accounts/${nanoid}/refresh`, options);
68
+ /**
69
+ * Initiates a new authentication flow for a connected account when credentials
70
+ * have expired or become invalid. This may generate a new authentication URL for
71
+ * OAuth flows or refresh tokens for other auth schemes.
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const response = await client.connectedAccounts.refresh(
76
+ * 'con_1a2b3c4d5e6f',
77
+ * );
78
+ * ```
79
+ */
80
+ refresh(nanoid, params = {}, options) {
81
+ const { query_redirect_url, ...body } = params ?? {};
82
+ return this._client.post(path `/api/v3/connected_accounts/${nanoid}/refresh`, {
83
+ query: { redirect_url: query_redirect_url },
84
+ body,
85
+ ...options,
86
+ });
19
87
  }
88
+ /**
89
+ * Updates the status of a connected account to either enabled (active) or disabled
90
+ * (inactive). Disabled accounts cannot be used for API calls but remain in the
91
+ * database.
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * const response =
96
+ * await client.connectedAccounts.updateStatus(
97
+ * 'con_1a2b3c4d5e6f',
98
+ * { enabled: true },
99
+ * );
100
+ * ```
101
+ */
20
102
  updateStatus(nanoID, body, options) {
21
103
  return this._client.patch(path `/api/v3/connected_accounts/${nanoID}/status`, { body, ...options });
22
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"connected-accounts.mjs","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,8BAA8B,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,YAAY,CACV,MAAc,EACd,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,8BAA8B,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
1
+ {"version":3,"file":"connected-accounts.mjs","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CACL,MAAc,EACd,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,8BAA8B,MAAM,UAAU,EAAE;YAC3E,KAAK,EAAE,EAAE,YAAY,EAAE,kBAAkB,EAAE;YAC3C,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,MAAc,EACd,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,8BAA8B,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
@@ -0,0 +1,149 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Files extends APIResource {
5
+ /**
6
+ * Retrieves a list of files associated with the authenticated project. Results can
7
+ * be filtered by toolkit and tool slugs.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const files = await client.files.list();
12
+ * ```
13
+ */
14
+ list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
15
+ /**
16
+ * Generates a presigned URL for uploading a file to S3. This endpoint handles
17
+ * deduplication by checking if a file with the same MD5 hash already exists.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const response = await client.files.createPresignedURL({
22
+ * filename: 'quarterly_report.pdf',
23
+ * md5: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
24
+ * mimetype: 'application/pdf',
25
+ * tool_slug: 'GMAIL_SEND_EMAIL',
26
+ * toolkit_slug: 'gmail',
27
+ * });
28
+ * ```
29
+ */
30
+ createPresignedURL(body: FileCreatePresignedURLParams, options?: RequestOptions): APIPromise<FileCreatePresignedURLResponse>;
31
+ }
32
+ export interface FileListResponse {
33
+ current_page: number;
34
+ items: Array<FileListResponse.Item>;
35
+ total_items: number;
36
+ total_pages: number;
37
+ next_cursor?: string | null;
38
+ }
39
+ export declare namespace FileListResponse {
40
+ interface Item {
41
+ /**
42
+ * Name of the original file. Example: "document.docx"
43
+ */
44
+ filename: string;
45
+ /**
46
+ * MD5 hash of the file for integrity verification. Example:
47
+ * "d41d8cd98f00b204e9800998ecf8427e"
48
+ */
49
+ md5: string;
50
+ /**
51
+ * Mime type of the original file. Example:
52
+ * "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
53
+ */
54
+ mimetype: string;
55
+ /**
56
+ * Slug of the action where this file belongs to. Example: "convert-to-pdf"
57
+ */
58
+ tool_slug: string;
59
+ /**
60
+ * Slug of the app where this file belongs to. Example: "file-converter"
61
+ */
62
+ toolkit_slug: string;
63
+ }
64
+ }
65
+ export interface FileCreatePresignedURLResponse {
66
+ /**
67
+ * ID of the request file. Example: "req_file_9mZn4qR8sXwT"
68
+ */
69
+ id: string;
70
+ /**
71
+ * Object storage upload location. Example:
72
+ * "projects/prj_xyz789/requests/slack/SLACK_UPLOAD_FILE/document_9mZn4q.docx"
73
+ */
74
+ key: string;
75
+ metadata: FileCreatePresignedURLResponse.Metadata;
76
+ /**
77
+ * Presigned URL for upload. Example:
78
+ * "https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600..."
79
+ */
80
+ new_presigned_url: string;
81
+ /**
82
+ * @deprecated [DEPRECATED] Use new_presigned_url instead. Presigned URL for
83
+ * upload. Example:
84
+ * "https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600..."
85
+ */
86
+ newPresignedUrl: string;
87
+ /**
88
+ * @deprecated [DEPRECATED] Indicates this is a new file that needs to be uploaded
89
+ */
90
+ type: 'new';
91
+ }
92
+ export declare namespace FileCreatePresignedURLResponse {
93
+ interface Metadata {
94
+ /**
95
+ * Storage backend used for the file. If this is azure, use `x-ms-blob-type` header
96
+ * to set the blob type to `BlockBlob` while uploading the file
97
+ */
98
+ storage_backend: 's3' | 'azure_blob_storage';
99
+ }
100
+ }
101
+ export interface FileListParams {
102
+ /**
103
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
104
+ * limit. The page is the page number and the limit is the number of items per
105
+ * page. The cursor is used to paginate through the items. The cursor is not
106
+ * required for the first page.
107
+ */
108
+ cursor?: string;
109
+ /**
110
+ * Number of items per page, max allowed is 1000
111
+ */
112
+ limit?: number | null;
113
+ /**
114
+ * Filter files by action slug. Example: "convert-to-pdf"
115
+ */
116
+ tool_slug?: string;
117
+ /**
118
+ * Filter files by app slug. Example: "file-converter"
119
+ */
120
+ toolkit_slug?: string;
121
+ }
122
+ export interface FileCreatePresignedURLParams {
123
+ /**
124
+ * Name of the original file. Example: "quarterly_report.pdf"
125
+ */
126
+ filename: string;
127
+ /**
128
+ * MD5 hash of the file for deduplication and integrity verification. Example:
129
+ * "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
130
+ */
131
+ md5: string;
132
+ /**
133
+ * Mime type of the original file. Example: "application/pdf", "image/png"
134
+ */
135
+ mimetype: string;
136
+ /**
137
+ * Slug of the action where this file belongs to. Example: "GMAIL_SEND_EMAIL",
138
+ * "SLACK_UPLOAD_FILE"
139
+ */
140
+ tool_slug: string;
141
+ /**
142
+ * Slug of the app where this file belongs to. Example: "gmail", "slack", "github"
143
+ */
144
+ toolkit_slug: string;
145
+ }
146
+ export declare namespace Files {
147
+ export { type FileListResponse as FileListResponse, type FileCreatePresignedURLResponse as FileCreatePresignedURLResponse, type FileListParams as FileListParams, type FileCreatePresignedURLParams as FileCreatePresignedURLParams, };
148
+ }
149
+ //# sourceMappingURL=files.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEpC,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ,QAAQ,EAAE,8BAA8B,CAAC,QAAQ,CAAC;IAElD;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;;WAGG;QACH,eAAe,EAAE,IAAI,GAAG,oBAAoB,CAAC;KAC9C;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
@@ -0,0 +1,149 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Files extends APIResource {
5
+ /**
6
+ * Retrieves a list of files associated with the authenticated project. Results can
7
+ * be filtered by toolkit and tool slugs.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const files = await client.files.list();
12
+ * ```
13
+ */
14
+ list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
15
+ /**
16
+ * Generates a presigned URL for uploading a file to S3. This endpoint handles
17
+ * deduplication by checking if a file with the same MD5 hash already exists.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const response = await client.files.createPresignedURL({
22
+ * filename: 'quarterly_report.pdf',
23
+ * md5: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
24
+ * mimetype: 'application/pdf',
25
+ * tool_slug: 'GMAIL_SEND_EMAIL',
26
+ * toolkit_slug: 'gmail',
27
+ * });
28
+ * ```
29
+ */
30
+ createPresignedURL(body: FileCreatePresignedURLParams, options?: RequestOptions): APIPromise<FileCreatePresignedURLResponse>;
31
+ }
32
+ export interface FileListResponse {
33
+ current_page: number;
34
+ items: Array<FileListResponse.Item>;
35
+ total_items: number;
36
+ total_pages: number;
37
+ next_cursor?: string | null;
38
+ }
39
+ export declare namespace FileListResponse {
40
+ interface Item {
41
+ /**
42
+ * Name of the original file. Example: "document.docx"
43
+ */
44
+ filename: string;
45
+ /**
46
+ * MD5 hash of the file for integrity verification. Example:
47
+ * "d41d8cd98f00b204e9800998ecf8427e"
48
+ */
49
+ md5: string;
50
+ /**
51
+ * Mime type of the original file. Example:
52
+ * "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
53
+ */
54
+ mimetype: string;
55
+ /**
56
+ * Slug of the action where this file belongs to. Example: "convert-to-pdf"
57
+ */
58
+ tool_slug: string;
59
+ /**
60
+ * Slug of the app where this file belongs to. Example: "file-converter"
61
+ */
62
+ toolkit_slug: string;
63
+ }
64
+ }
65
+ export interface FileCreatePresignedURLResponse {
66
+ /**
67
+ * ID of the request file. Example: "req_file_9mZn4qR8sXwT"
68
+ */
69
+ id: string;
70
+ /**
71
+ * Object storage upload location. Example:
72
+ * "projects/prj_xyz789/requests/slack/SLACK_UPLOAD_FILE/document_9mZn4q.docx"
73
+ */
74
+ key: string;
75
+ metadata: FileCreatePresignedURLResponse.Metadata;
76
+ /**
77
+ * Presigned URL for upload. Example:
78
+ * "https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600..."
79
+ */
80
+ new_presigned_url: string;
81
+ /**
82
+ * @deprecated [DEPRECATED] Use new_presigned_url instead. Presigned URL for
83
+ * upload. Example:
84
+ * "https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600..."
85
+ */
86
+ newPresignedUrl: string;
87
+ /**
88
+ * @deprecated [DEPRECATED] Indicates this is a new file that needs to be uploaded
89
+ */
90
+ type: 'new';
91
+ }
92
+ export declare namespace FileCreatePresignedURLResponse {
93
+ interface Metadata {
94
+ /**
95
+ * Storage backend used for the file. If this is azure, use `x-ms-blob-type` header
96
+ * to set the blob type to `BlockBlob` while uploading the file
97
+ */
98
+ storage_backend: 's3' | 'azure_blob_storage';
99
+ }
100
+ }
101
+ export interface FileListParams {
102
+ /**
103
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
104
+ * limit. The page is the page number and the limit is the number of items per
105
+ * page. The cursor is used to paginate through the items. The cursor is not
106
+ * required for the first page.
107
+ */
108
+ cursor?: string;
109
+ /**
110
+ * Number of items per page, max allowed is 1000
111
+ */
112
+ limit?: number | null;
113
+ /**
114
+ * Filter files by action slug. Example: "convert-to-pdf"
115
+ */
116
+ tool_slug?: string;
117
+ /**
118
+ * Filter files by app slug. Example: "file-converter"
119
+ */
120
+ toolkit_slug?: string;
121
+ }
122
+ export interface FileCreatePresignedURLParams {
123
+ /**
124
+ * Name of the original file. Example: "quarterly_report.pdf"
125
+ */
126
+ filename: string;
127
+ /**
128
+ * MD5 hash of the file for deduplication and integrity verification. Example:
129
+ * "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
130
+ */
131
+ md5: string;
132
+ /**
133
+ * Mime type of the original file. Example: "application/pdf", "image/png"
134
+ */
135
+ mimetype: string;
136
+ /**
137
+ * Slug of the action where this file belongs to. Example: "GMAIL_SEND_EMAIL",
138
+ * "SLACK_UPLOAD_FILE"
139
+ */
140
+ tool_slug: string;
141
+ /**
142
+ * Slug of the app where this file belongs to. Example: "gmail", "slack", "github"
143
+ */
144
+ toolkit_slug: string;
145
+ }
146
+ export declare namespace Files {
147
+ export { type FileListResponse as FileListResponse, type FileCreatePresignedURLResponse as FileCreatePresignedURLResponse, type FileListParams as FileListParams, type FileCreatePresignedURLParams as FileCreatePresignedURLParams, };
148
+ }
149
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEpC,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ,QAAQ,EAAE,8BAA8B,CAAC,QAAQ,CAAC;IAElD;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;;WAGG;QACH,eAAe,EAAE,IAAI,GAAG,oBAAoB,CAAC;KAC9C;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Files = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Files extends resource_1.APIResource {
7
+ /**
8
+ * Retrieves a list of files associated with the authenticated project. Results can
9
+ * be filtered by toolkit and tool slugs.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const files = await client.files.list();
14
+ * ```
15
+ */
16
+ list(query = {}, options) {
17
+ return this._client.get('/api/v3/files/list', { query, ...options });
18
+ }
19
+ /**
20
+ * Generates a presigned URL for uploading a file to S3. This endpoint handles
21
+ * deduplication by checking if a file with the same MD5 hash already exists.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.files.createPresignedURL({
26
+ * filename: 'quarterly_report.pdf',
27
+ * md5: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
28
+ * mimetype: 'application/pdf',
29
+ * tool_slug: 'GMAIL_SEND_EMAIL',
30
+ * toolkit_slug: 'gmail',
31
+ * });
32
+ * ```
33
+ */
34
+ createPresignedURL(body, options) {
35
+ return this._client.post('/api/v3/files/upload/request', { body, ...options });
36
+ }
37
+ }
38
+ exports.Files = Files;
39
+ //# sourceMappingURL=files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAtCD,sBAsCC"}
@@ -0,0 +1,35 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class Files extends APIResource {
4
+ /**
5
+ * Retrieves a list of files associated with the authenticated project. Results can
6
+ * be filtered by toolkit and tool slugs.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const files = await client.files.list();
11
+ * ```
12
+ */
13
+ list(query = {}, options) {
14
+ return this._client.get('/api/v3/files/list', { query, ...options });
15
+ }
16
+ /**
17
+ * Generates a presigned URL for uploading a file to S3. This endpoint handles
18
+ * deduplication by checking if a file with the same MD5 hash already exists.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const response = await client.files.createPresignedURL({
23
+ * filename: 'quarterly_report.pdf',
24
+ * md5: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
25
+ * mimetype: 'application/pdf',
26
+ * tool_slug: 'GMAIL_SEND_EMAIL',
27
+ * toolkit_slug: 'gmail',
28
+ * });
29
+ * ```
30
+ */
31
+ createPresignedURL(body, options) {
32
+ return this._client.post('/api/v3/files/upload/request', { body, ...options });
33
+ }
34
+ }
35
+ //# sourceMappingURL=files.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
@@ -1,13 +1,15 @@
1
- export { ActionExecution, type ActionExecutionLogResponse, type ActionExecutionRetrieveFieldsResponse, type ActionExecutionRetrieveLogResponse, type ActionExecutionLogParams, } from "./action-execution.mjs";
2
1
  export { AuthConfigs, type AuthConfigCreateResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateResponse, type AuthConfigListResponse, type AuthConfigDeleteResponse, type AuthConfigUpdateStatusResponse, type AuthConfigCreateParams, type AuthConfigUpdateParams, type AuthConfigListParams, type AuthConfigUpdateStatusParams, } from "./auth-configs.mjs";
3
- export { Cli, type CliCreateSessionResponse, type CliLinkSessionResponse, type CliRetrieveSessionResponse, type CliLinkSessionParams, type CliRetrieveSessionParams, } from "./cli.mjs";
4
- export { ConnectedAccounts, type ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse, type ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams, type ConnectedAccountListParams, type ConnectedAccountUpdateStatusParams, } from "./connected-accounts.mjs";
5
- export { Mcp, type McpCreateResponse, type McpRetrieveResponse, type McpUpdateResponse, type McpListResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type McpValidateResponse, type McpCreateParams, type McpUpdateParams, type McpListParams, type McpValidateParams, } from "./mcp/mcp.mjs";
6
- export { Org } from "./org/org.mjs";
7
- export { TeamMembers, type TeamMemberUpdateResponse, type TeamMemberListResponse, type TeamMemberInviteResponse, type TeamMemberRemoveResponse, type TeamMemberUpdateParams, type TeamMemberInviteParams, } from "./team-members.mjs";
8
- export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, } from "./toolkits.mjs";
9
- export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolExecuteResponse, type ToolGetInputResponse, type ToolProxyResponse, type ToolRetrieveEnumResponse, type ToolListParams, type ToolExecuteParams, type ToolGetInputParams, type ToolProxyParams, } from "./tools.mjs";
10
- export { Trigger, type TriggerLogResponse, type TriggerLogParams } from "./trigger.mjs";
11
- export { TriggerInstances, type TriggerInstanceListActiveResponse, type TriggerInstanceRemoveUpsertResponse, type TriggerInstanceUpdateStatusResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpdateStatusParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.mjs";
12
- export { TriggersTypes, type TriggersTypeRetrieveResponse, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams, } from "./triggers-types.mjs";
2
+ export { Cli, type CliCreateSessionResponse, type CliGetSessionResponse, type CliCreateSessionParams, type CliGetSessionParams, } from "./cli/cli.mjs";
3
+ export { ConnectedAccounts, type ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse, type ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams, type ConnectedAccountListParams, type ConnectedAccountRefreshParams, type ConnectedAccountUpdateStatusParams, } from "./connected-accounts.mjs";
4
+ export { Files, type FileListResponse, type FileCreatePresignedURLResponse, type FileListParams, type FileCreatePresignedURLParams, } from "./files.mjs";
5
+ export { Link, type LinkCreateResponse, type LinkCreateParams } from "./link.mjs";
6
+ export { Logs } from "./logs/logs.mjs";
7
+ export { Mcp, type McpCreateResponse, type McpRetrieveResponse, type McpUpdateResponse, type McpListResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type McpCreateParams, type McpUpdateParams, type McpListParams, type McpRetrieveAppParams, } from "./mcp/mcp.mjs";
8
+ export { Migration, type MigrationRetrieveNanoidResponse, type MigrationRetrieveNanoidParams, } from "./migration.mjs";
9
+ export { Project } from "./project/project.mjs";
10
+ export { ToolRouter, type ToolRouterCreateSessionResponse, type ToolRouterCreateSessionParams, } from "./tool-router/tool-router.mjs";
11
+ export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitRetrieveParams, type ToolkitListParams, } from "./toolkits.mjs";
12
+ export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolExecuteResponse, type ToolGetInputResponse, type ToolProxyResponse, type ToolRetrieveEnumResponse, type ToolRetrieveParams, type ToolListParams, type ToolExecuteParams, type ToolGetInputParams, type ToolProxyParams, } from "./tools.mjs";
13
+ export { TriggerInstances, type TriggerInstanceListActiveResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.mjs";
14
+ export { TriggersTypes, type TriggersTypeRetrieveResponse, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeRetrieveParams, type TriggersTypeListParams, } from "./triggers-types.mjs";
13
15
  //# sourceMappingURL=index.d.mts.map