@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.11

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 (476) hide show
  1. package/CHANGELOG.md +157 -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 +32 -29
  7. package/client.d.mts.map +1 -1
  8. package/client.d.ts +32 -29
  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 +232 -41
  195. package/resources/auth-configs.d.mts.map +1 -1
  196. package/resources/auth-configs.d.ts +232 -41
  197. package/resources/auth-configs.d.ts.map +1 -1
  198. package/resources/auth-configs.js +64 -0
  199. package/resources/auth-configs.js.map +1 -1
  200. package/resources/auth-configs.mjs +64 -0
  201. package/resources/auth-configs.mjs.map +1 -1
  202. package/resources/connected-accounts.d.mts +176 -216
  203. package/resources/connected-accounts.d.mts.map +1 -1
  204. package/resources/connected-accounts.d.ts +176 -216
  205. package/resources/connected-accounts.d.ts.map +1 -1
  206. package/resources/connected-accounts.js +70 -0
  207. package/resources/connected-accounts.js.map +1 -1
  208. package/resources/connected-accounts.mjs +70 -0
  209. package/resources/connected-accounts.mjs.map +1 -1
  210. package/resources/files.d.mts +159 -0
  211. package/resources/files.d.mts.map +1 -0
  212. package/resources/files.d.ts +159 -0
  213. package/resources/files.d.ts.map +1 -0
  214. package/resources/files.js +39 -0
  215. package/resources/files.js.map +1 -0
  216. package/resources/files.mjs +35 -0
  217. package/resources/files.mjs.map +1 -0
  218. package/resources/index.d.mts +5 -4
  219. package/resources/index.d.mts.map +1 -1
  220. package/resources/index.d.ts +5 -4
  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 +4 -0
  227. package/resources/mcp/command.d.mts.map +1 -0
  228. package/resources/mcp/command.d.ts +4 -0
  229. package/resources/mcp/command.d.ts.map +1 -0
  230. package/resources/mcp/command.js +9 -0
  231. package/resources/mcp/command.js.map +1 -0
  232. package/resources/mcp/command.mjs +5 -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 +411 -0
  243. package/resources/mcp/mcp.d.mts.map +1 -0
  244. package/resources/mcp/mcp.d.ts +411 -0
  245. package/resources/mcp/mcp.d.ts.map +1 -0
  246. package/resources/mcp/mcp.js +101 -0
  247. package/resources/mcp/mcp.js.map +1 -0
  248. package/resources/mcp/mcp.mjs +96 -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 +32 -0
  259. package/resources/migration.d.mts.map +1 -0
  260. package/resources/migration.d.ts +32 -0
  261. package/resources/migration.d.ts.map +1 -0
  262. package/resources/migration.js +17 -0
  263. package/resources/migration.js.map +1 -0
  264. package/resources/migration.mjs +13 -0
  265. package/resources/migration.mjs.map +1 -0
  266. package/resources/org/api-key.d.mts +28 -0
  267. package/resources/org/api-key.d.mts.map +1 -1
  268. package/resources/org/api-key.d.ts +28 -0
  269. package/resources/org/api-key.d.ts.map +1 -1
  270. package/resources/org/api-key.js +20 -0
  271. package/resources/org/api-key.js.map +1 -1
  272. package/resources/org/api-key.mjs +20 -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/api-keys.d.mts +97 -20
  277. package/resources/org/project/api-keys.d.mts.map +1 -1
  278. package/resources/org/project/api-keys.d.ts +97 -20
  279. package/resources/org/project/api-keys.d.ts.map +1 -1
  280. package/resources/org/project/api-keys.js +57 -0
  281. package/resources/org/project/api-keys.js.map +1 -1
  282. package/resources/org/project/api-keys.mjs +57 -0
  283. package/resources/org/project/api-keys.mjs.map +1 -1
  284. package/resources/org/project/project.d.mts +182 -7
  285. package/resources/org/project/project.d.mts.map +1 -1
  286. package/resources/org/project/project.d.ts +182 -7
  287. package/resources/org/project/project.d.ts.map +1 -1
  288. package/resources/org/project/project.js +56 -26
  289. package/resources/org/project/project.js.map +1 -1
  290. package/resources/org/project/project.mjs +52 -0
  291. package/resources/org/project/project.mjs.map +1 -1
  292. package/resources/org/project/trigger.d.mts +101 -5
  293. package/resources/org/project/trigger.d.mts.map +1 -1
  294. package/resources/org/project/trigger.d.ts +101 -5
  295. package/resources/org/project/trigger.d.ts.map +1 -1
  296. package/resources/org/project/trigger.js +21 -0
  297. package/resources/org/project/trigger.js.map +1 -1
  298. package/resources/org/project/trigger.mjs +21 -0
  299. package/resources/org/project/trigger.mjs.map +1 -1
  300. package/resources/org/project/webhook.d.mts +88 -14
  301. package/resources/org/project/webhook.d.mts.map +1 -1
  302. package/resources/org/project/webhook.d.ts +88 -14
  303. package/resources/org/project/webhook.d.ts.map +1 -1
  304. package/resources/org/project/webhook.js +51 -1
  305. package/resources/org/project/webhook.js.map +1 -1
  306. package/resources/org/project/webhook.mjs +51 -1
  307. package/resources/org/project/webhook.mjs.map +1 -1
  308. package/resources/org/project.js +2 -15
  309. package/resources/org/project.js.map +1 -1
  310. package/resources/org.js +2 -15
  311. package/resources/org.js.map +1 -1
  312. package/resources/team-members.d.mts +12 -0
  313. package/resources/team-members.d.mts.map +1 -1
  314. package/resources/team-members.d.ts +12 -0
  315. package/resources/team-members.d.ts.map +1 -1
  316. package/resources/team-members.js +12 -0
  317. package/resources/team-members.js.map +1 -1
  318. package/resources/team-members.mjs +12 -0
  319. package/resources/team-members.mjs.map +1 -1
  320. package/resources/toolkits.d.mts +215 -4
  321. package/resources/toolkits.d.mts.map +1 -1
  322. package/resources/toolkits.d.ts +215 -4
  323. package/resources/toolkits.d.ts.map +1 -1
  324. package/resources/toolkits.js +20 -2
  325. package/resources/toolkits.js.map +1 -1
  326. package/resources/toolkits.mjs +20 -2
  327. package/resources/toolkits.mjs.map +1 -1
  328. package/resources/tools.d.mts +295 -21
  329. package/resources/tools.d.mts.map +1 -1
  330. package/resources/tools.d.ts +295 -21
  331. package/resources/tools.d.ts.map +1 -1
  332. package/resources/tools.js +67 -0
  333. package/resources/tools.js.map +1 -1
  334. package/resources/tools.mjs +67 -0
  335. package/resources/tools.mjs.map +1 -1
  336. package/resources/trigger-instances/handle.d.mts +2 -2
  337. package/resources/trigger-instances/handle.d.mts.map +1 -1
  338. package/resources/trigger-instances/handle.d.ts +2 -2
  339. package/resources/trigger-instances/handle.d.ts.map +1 -1
  340. package/resources/trigger-instances/handle.js.map +1 -1
  341. package/resources/trigger-instances/handle.mjs.map +1 -1
  342. package/resources/trigger-instances/index.d.mts +1 -1
  343. package/resources/trigger-instances/index.d.mts.map +1 -1
  344. package/resources/trigger-instances/index.d.ts +1 -1
  345. package/resources/trigger-instances/index.d.ts.map +1 -1
  346. package/resources/trigger-instances/index.js.map +1 -1
  347. package/resources/trigger-instances/index.mjs.map +1 -1
  348. package/resources/trigger-instances/trigger-instances.d.mts +51 -31
  349. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  350. package/resources/trigger-instances/trigger-instances.d.ts +51 -31
  351. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  352. package/resources/trigger-instances/trigger-instances.js +3 -32
  353. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  354. package/resources/trigger-instances/trigger-instances.mjs +1 -8
  355. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  356. package/resources/trigger-instances.js +2 -15
  357. package/resources/trigger-instances.js.map +1 -1
  358. package/resources/triggers-types.d.mts +105 -4
  359. package/resources/triggers-types.d.mts.map +1 -1
  360. package/resources/triggers-types.d.ts +105 -4
  361. package/resources/triggers-types.d.ts.map +1 -1
  362. package/resources/triggers-types.js +29 -0
  363. package/resources/triggers-types.js.map +1 -1
  364. package/resources/triggers-types.mjs +29 -0
  365. package/resources/triggers-types.mjs.map +1 -1
  366. package/resources.js +2 -15
  367. package/resources.js.map +1 -1
  368. package/src/client.ts +128 -94
  369. package/src/core/api-promise.ts +4 -4
  370. package/src/core/error.ts +2 -2
  371. package/src/core/resource.ts +3 -3
  372. package/src/index.ts +3 -3
  373. package/src/internal/headers.ts +4 -3
  374. package/src/internal/parse.ts +2 -2
  375. package/src/internal/qs/LICENSE.md +13 -0
  376. package/src/internal/qs/README.md +3 -0
  377. package/src/internal/qs/formats.ts +9 -0
  378. package/src/internal/qs/index.ts +13 -0
  379. package/src/internal/qs/stringify.ts +388 -0
  380. package/src/internal/qs/types.ts +71 -0
  381. package/src/internal/qs/utils.ts +265 -0
  382. package/src/internal/shims.ts +1 -1
  383. package/src/internal/to-file.ts +4 -2
  384. package/src/internal/uploads.ts +21 -9
  385. package/src/internal/utils/base64.ts +16 -13
  386. package/src/internal/utils/bytes.ts +32 -0
  387. package/src/internal/utils/log.ts +3 -3
  388. package/src/internal/utils/path.ts +2 -4
  389. package/src/internal/utils/uuid.ts +1 -3
  390. package/src/internal/utils/values.ts +6 -6
  391. package/src/resources/auth-configs.ts +258 -49
  392. package/src/resources/connected-accounts.ts +192 -302
  393. package/src/resources/files.ts +209 -0
  394. package/src/resources/index.ts +24 -11
  395. package/src/resources/mcp/command.ts +5 -0
  396. package/src/resources/mcp/index.ts +14 -0
  397. package/src/resources/mcp/mcp.ts +522 -0
  398. package/src/resources/mcp.ts +3 -0
  399. package/src/resources/migration.ts +46 -0
  400. package/src/resources/org/api-key.ts +28 -0
  401. package/src/resources/org/project/api-keys.ts +97 -20
  402. package/src/resources/org/project/project.ts +182 -13
  403. package/src/resources/org/project/trigger.ts +101 -9
  404. package/src/resources/org/project/webhook.ts +88 -14
  405. package/src/resources/team-members.ts +12 -0
  406. package/src/resources/toolkits.ts +230 -4
  407. package/src/resources/tools.ts +316 -21
  408. package/src/resources/trigger-instances/handle.ts +10 -2
  409. package/src/resources/trigger-instances/index.ts +0 -3
  410. package/src/resources/trigger-instances/trigger-instances.ts +55 -44
  411. package/src/resources/triggers-types.ts +107 -6
  412. package/src/version.ts +1 -1
  413. package/uploads.js +2 -15
  414. package/uploads.js.map +1 -1
  415. package/version.d.mts +1 -1
  416. package/version.d.mts.map +1 -1
  417. package/version.d.ts +1 -1
  418. package/version.d.ts.map +1 -1
  419. package/version.js +1 -1
  420. package/version.js.map +1 -1
  421. package/version.mjs +1 -1
  422. package/version.mjs.map +1 -1
  423. package/internal/shims/crypto.d.mts +0 -13
  424. package/internal/shims/crypto.d.mts.map +0 -1
  425. package/internal/shims/crypto.d.ts +0 -13
  426. package/internal/shims/crypto.d.ts.map +0 -1
  427. package/internal/shims/crypto.js +0 -13
  428. package/internal/shims/crypto.js.map +0 -1
  429. package/internal/shims/crypto.mjs +0 -9
  430. package/internal/shims/crypto.mjs.map +0 -1
  431. package/internal/shims/file.d.mts +0 -23
  432. package/internal/shims/file.d.mts.map +0 -1
  433. package/internal/shims/file.d.ts +0 -23
  434. package/internal/shims/file.d.ts.map +0 -1
  435. package/internal/shims/file.js +0 -16
  436. package/internal/shims/file.js.map +0 -1
  437. package/internal/shims/file.mjs +0 -12
  438. package/internal/shims/file.mjs.map +0 -1
  439. package/internal/shims/getBuiltinModule.d.mts +0 -11
  440. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  441. package/internal/shims/getBuiltinModule.d.ts +0 -11
  442. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  443. package/internal/shims/getBuiltinModule.js +0 -68
  444. package/internal/shims/getBuiltinModule.js.map +0 -1
  445. package/internal/shims/getBuiltinModule.mjs +0 -64
  446. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  447. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  448. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  449. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  450. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  451. package/internal/shims/nullGetBuiltinModule.js +0 -5
  452. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  453. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  454. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  455. package/resources/action-execution.d.mts +0 -155
  456. package/resources/action-execution.d.mts.map +0 -1
  457. package/resources/action-execution.d.ts +0 -155
  458. package/resources/action-execution.d.ts.map +0 -1
  459. package/resources/action-execution.js +0 -19
  460. package/resources/action-execution.js.map +0 -1
  461. package/resources/action-execution.mjs +0 -15
  462. package/resources/action-execution.mjs.map +0 -1
  463. package/resources/trigger.d.mts +0 -73
  464. package/resources/trigger.d.mts.map +0 -1
  465. package/resources/trigger.d.ts +0 -73
  466. package/resources/trigger.d.ts.map +0 -1
  467. package/resources/trigger.js +0 -12
  468. package/resources/trigger.js.map +0 -1
  469. package/resources/trigger.mjs +0 -8
  470. package/resources/trigger.mjs.map +0 -1
  471. package/src/internal/shims/crypto.ts +0 -18
  472. package/src/internal/shims/file.ts +0 -32
  473. package/src/internal/shims/getBuiltinModule.ts +0 -64
  474. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  475. package/src/resources/action-execution.ts +0 -244
  476. package/src/resources/trigger.ts +0 -108
@@ -2,11 +2,81 @@ import { APIResource } from "../core/resource.js";
2
2
  import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class ConnectedAccounts extends APIResource {
5
+ /**
6
+ * Create a new connected account
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const connectedAccount =
11
+ * await client.connectedAccounts.create({
12
+ * auth_config: { id: 'id' },
13
+ * connection: {},
14
+ * });
15
+ * ```
16
+ */
5
17
  create(body: ConnectedAccountCreateParams, options?: RequestOptions): APIPromise<ConnectedAccountCreateResponse>;
18
+ /**
19
+ * Retrieves comprehensive details of a connected account, including authentication
20
+ * configuration, connection status, and all parameters needed for API requests.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const connectedAccount =
25
+ * await client.connectedAccounts.retrieve(
26
+ * 'con_1a2b3c4d5e6f',
27
+ * );
28
+ * ```
29
+ */
6
30
  retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse>;
31
+ /**
32
+ * List connected accounts with optional filters
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const connectedAccounts =
37
+ * await client.connectedAccounts.list();
38
+ * ```
39
+ */
7
40
  list(query?: ConnectedAccountListParams | null | undefined, options?: RequestOptions): APIPromise<ConnectedAccountListResponse>;
41
+ /**
42
+ * Soft-deletes a connected account by marking it as deleted in the database. This
43
+ * prevents the account from being used for API calls but preserves the record for
44
+ * audit purposes.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const connectedAccount =
49
+ * await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
50
+ * ```
51
+ */
8
52
  delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse>;
53
+ /**
54
+ * Initiates a new authentication flow for a connected account when credentials
55
+ * have expired or become invalid. This may generate a new authentication URL for
56
+ * OAuth flows or refresh tokens for other auth schemes.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const response = await client.connectedAccounts.refresh(
61
+ * 'con_1a2b3c4d5e6f',
62
+ * );
63
+ * ```
64
+ */
9
65
  refresh(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRefreshResponse>;
66
+ /**
67
+ * Updates the status of a connected account to either enabled (active) or disabled
68
+ * (inactive). Disabled accounts cannot be used for API calls but remain in the
69
+ * database.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const response =
74
+ * await client.connectedAccounts.updateStatus(
75
+ * 'con_1a2b3c4d5e6f',
76
+ * { enabled: true },
77
+ * );
78
+ * ```
79
+ */
10
80
  updateStatus(nanoID: string, body: ConnectedAccountUpdateStatusParams, options?: RequestOptions): APIPromise<ConnectedAccountUpdateStatusResponse>;
11
81
  }
12
82
  export interface ConnectedAccountCreateResponse {
@@ -14,14 +84,32 @@ export interface ConnectedAccountCreateResponse {
14
84
  * The id of the connected account
15
85
  */
16
86
  id: string;
87
+ deprecated: ConnectedAccountCreateResponse.Deprecated;
17
88
  /**
18
- * The redirect uri of the app
89
+ * @deprecated DEPRECATED: This field will be removed in a future version. Please
90
+ * use redirect_url instead.
19
91
  */
20
92
  redirect_uri: string | null;
93
+ /**
94
+ * The URL to redirect to after connection completion
95
+ */
96
+ redirect_url: string | null;
21
97
  /**
22
98
  * The status of the connected account
23
99
  */
24
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
100
+ status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
101
+ }
102
+ export declare namespace ConnectedAccountCreateResponse {
103
+ interface Deprecated {
104
+ /**
105
+ * The uuid of the auth config
106
+ */
107
+ authConfigUuid: string;
108
+ /**
109
+ * The uuid of the connected account
110
+ */
111
+ uuid: string;
112
+ }
25
113
  }
26
114
  export interface ConnectedAccountRetrieveResponse {
27
115
  /**
@@ -38,19 +126,20 @@ export interface ConnectedAccountRetrieveResponse {
38
126
  */
39
127
  data: Record<string, unknown>;
40
128
  /**
41
- * Whether the connected account is disabled
129
+ * Whether the connected account is disabled. When true, the account cannot be used
130
+ * for API calls
42
131
  */
43
132
  is_disabled: boolean;
44
133
  /**
45
- * The init data of the connection
134
+ * The initialization data of the connection, including configuration parameters
46
135
  */
47
136
  params: Record<string, unknown>;
48
137
  /**
49
138
  * The status of the connection
50
139
  */
51
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
140
+ status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
52
141
  /**
53
- * The reason the connected account is disabled
142
+ * The reason why the connected account is disabled, if applicable
54
143
  */
55
144
  status_reason: string | null;
56
145
  toolkit: ConnectedAccountRetrieveResponse.Toolkit;
@@ -62,10 +151,7 @@ export interface ConnectedAccountRetrieveResponse {
62
151
  * The user id of the connection
63
152
  */
64
153
  user_id: string;
65
- /**
66
- * The uuid of the connection
67
- */
68
- uuid: string;
154
+ deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
69
155
  /**
70
156
  * The endpoint to make test request for verification
71
157
  */
@@ -89,6 +175,15 @@ export declare namespace ConnectedAccountRetrieveResponse {
89
175
  * Whether the auth config is disabled
90
176
  */
91
177
  is_disabled: boolean;
178
+ deprecated?: AuthConfig.Deprecated;
179
+ }
180
+ namespace AuthConfig {
181
+ interface Deprecated {
182
+ /**
183
+ * The uuid of the auth config
184
+ */
185
+ uuid: string;
186
+ }
92
187
  }
93
188
  interface Toolkit {
94
189
  /**
@@ -96,6 +191,16 @@ export declare namespace ConnectedAccountRetrieveResponse {
96
191
  */
97
192
  slug: string;
98
193
  }
194
+ interface Deprecated {
195
+ /**
196
+ * The labels of the connection
197
+ */
198
+ labels: Array<string>;
199
+ /**
200
+ * The uuid of the connection
201
+ */
202
+ uuid: string;
203
+ }
99
204
  }
100
205
  export interface ConnectedAccountListResponse {
101
206
  items: Array<ConnectedAccountListResponse.Item>;
@@ -124,7 +229,7 @@ export declare namespace ConnectedAccountListResponse {
124
229
  /**
125
230
  * The status of the connection
126
231
  */
127
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
232
+ status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
128
233
  /**
129
234
  * The reason the connection is disabled
130
235
  */
@@ -138,14 +243,11 @@ export declare namespace ConnectedAccountListResponse {
138
243
  * The user id of the connection
139
244
  */
140
245
  user_id: string;
246
+ deprecated?: Item.Deprecated;
141
247
  /**
142
248
  * The endpoint to make test request for verification
143
249
  */
144
250
  test_request_endpoint?: string;
145
- /**
146
- * The uuid of the connected account
147
- */
148
- uuid?: string;
149
251
  }
150
252
  namespace Item {
151
253
  interface AuthConfig {
@@ -165,6 +267,15 @@ export declare namespace ConnectedAccountListResponse {
165
267
  * Whether the auth config is disabled
166
268
  */
167
269
  is_disabled: boolean;
270
+ deprecated?: AuthConfig.Deprecated;
271
+ }
272
+ namespace AuthConfig {
273
+ interface Deprecated {
274
+ /**
275
+ * The uuid of the auth config
276
+ */
277
+ uuid: string;
278
+ }
168
279
  }
169
280
  interface Toolkit {
170
281
  /**
@@ -172,217 +283,50 @@ export declare namespace ConnectedAccountListResponse {
172
283
  */
173
284
  slug: string;
174
285
  }
286
+ interface Deprecated {
287
+ /**
288
+ * The labels of the connection
289
+ */
290
+ labels: Array<string>;
291
+ /**
292
+ * The uuid of the connection
293
+ */
294
+ uuid: string;
295
+ }
175
296
  }
176
297
  }
298
+ /**
299
+ * Response returned after successfully deleting a connected account
300
+ */
177
301
  export interface ConnectedAccountDeleteResponse {
178
302
  /**
179
- * The id of the connection
180
- */
181
- id: string;
182
- auth_config: ConnectedAccountDeleteResponse.AuthConfig;
183
- /**
184
- * The created at of the connection
185
- */
186
- created_at: string;
187
- /**
188
- * The data of the connection
189
- */
190
- data: Record<string, unknown>;
191
- /**
192
- * Whether the connection is disabled
193
- */
194
- is_disabled: boolean;
195
- /**
196
- * The status of the connection
197
- */
198
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
199
- /**
200
- * The reason the connection is disabled
201
- */
202
- status_reason: string | null;
203
- toolkit: ConnectedAccountDeleteResponse.Toolkit;
204
- /**
205
- * The updated at of the connection
206
- */
207
- updated_at: string;
208
- /**
209
- * The user id of the connection
210
- */
211
- user_id: string;
212
- /**
213
- * The uuid of the connection
214
- */
215
- uuid: string;
216
- /**
217
- * The endpoint to make test request for verification
303
+ * Indicates whether the connected account was successfully deleted
218
304
  */
219
- test_request_endpoint?: string;
220
- }
221
- export declare namespace ConnectedAccountDeleteResponse {
222
- interface AuthConfig {
223
- /**
224
- * The id of the auth config
225
- */
226
- id: string;
227
- /**
228
- * The auth scheme of the auth config
229
- */
230
- auth_scheme: 'OAUTH2' | 'OAUTH1' | 'OAUTH1A' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'COMPOSIO_LINK' | 'CALCOM_AUTH' | 'SNOWFLAKE';
231
- /**
232
- * Whether the auth config is managed by Composio
233
- */
234
- is_composio_managed: boolean;
235
- /**
236
- * Whether the auth config is disabled
237
- */
238
- is_disabled: boolean;
239
- }
240
- interface Toolkit {
241
- /**
242
- * The slug of the toolkit
243
- */
244
- slug: string;
245
- }
305
+ success: boolean;
246
306
  }
247
307
  export interface ConnectedAccountRefreshResponse {
248
308
  /**
249
- * The id of the connection
309
+ * The unique identifier of the connected account
250
310
  */
251
311
  id: string;
252
- auth_config: ConnectedAccountRefreshResponse.AuthConfig;
253
- /**
254
- * The created at of the connection
255
- */
256
- created_at: string;
257
- /**
258
- * The data of the connection
259
- */
260
- data: Record<string, unknown>;
261
- /**
262
- * Whether the connection is disabled
263
- */
264
- is_disabled: boolean;
265
- /**
266
- * The status of the connection
267
- */
268
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
269
- /**
270
- * The reason the connection is disabled
271
- */
272
- status_reason: string | null;
273
- toolkit: ConnectedAccountRefreshResponse.Toolkit;
274
- /**
275
- * The updated at of the connection
276
- */
277
- updated_at: string;
278
- /**
279
- * The user id of the connection
280
- */
281
- user_id: string;
282
312
  /**
283
- * The uuid of the connection
313
+ * The URL to which the user should be redirected to complete the authentication
314
+ * process (null for auth schemes that do not require redirection)
284
315
  */
285
- uuid: string;
316
+ redirect_url: string | null;
286
317
  /**
287
- * The endpoint to make test request for verification
318
+ * The current status of the connected account (e.g., active, pending, failed)
288
319
  */
289
- test_request_endpoint?: string;
290
- }
291
- export declare namespace ConnectedAccountRefreshResponse {
292
- interface AuthConfig {
293
- /**
294
- * The id of the auth config
295
- */
296
- id: string;
297
- /**
298
- * The auth scheme of the auth config
299
- */
300
- auth_scheme: 'OAUTH2' | 'OAUTH1' | 'OAUTH1A' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'COMPOSIO_LINK' | 'CALCOM_AUTH' | 'SNOWFLAKE';
301
- /**
302
- * Whether the auth config is managed by Composio
303
- */
304
- is_composio_managed: boolean;
305
- /**
306
- * Whether the auth config is disabled
307
- */
308
- is_disabled: boolean;
309
- }
310
- interface Toolkit {
311
- /**
312
- * The slug of the toolkit
313
- */
314
- slug: string;
315
- }
320
+ status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
316
321
  }
322
+ /**
323
+ * Response returned after successfully updating a connected account status
324
+ */
317
325
  export interface ConnectedAccountUpdateStatusResponse {
318
326
  /**
319
- * The id of the connection
320
- */
321
- id: string;
322
- auth_config: ConnectedAccountUpdateStatusResponse.AuthConfig;
323
- /**
324
- * The created at of the connection
325
- */
326
- created_at: string;
327
- /**
328
- * The data of the connection
329
- */
330
- data: Record<string, unknown>;
331
- /**
332
- * Whether the connection is disabled
333
- */
334
- is_disabled: boolean;
335
- /**
336
- * The status of the connection
337
- */
338
- status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
339
- /**
340
- * The reason the connection is disabled
341
- */
342
- status_reason: string | null;
343
- toolkit: ConnectedAccountUpdateStatusResponse.Toolkit;
344
- /**
345
- * The updated at of the connection
346
- */
347
- updated_at: string;
348
- /**
349
- * The user id of the connection
350
- */
351
- user_id: string;
352
- /**
353
- * The uuid of the connection
327
+ * Indicates whether the connected account status was successfully updated
354
328
  */
355
- uuid: string;
356
- /**
357
- * The endpoint to make test request for verification
358
- */
359
- test_request_endpoint?: string;
360
- }
361
- export declare namespace ConnectedAccountUpdateStatusResponse {
362
- interface AuthConfig {
363
- /**
364
- * The id of the auth config
365
- */
366
- id: string;
367
- /**
368
- * The auth scheme of the auth config
369
- */
370
- auth_scheme: 'OAUTH2' | 'OAUTH1' | 'OAUTH1A' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'COMPOSIO_LINK' | 'CALCOM_AUTH' | 'SNOWFLAKE';
371
- /**
372
- * Whether the auth config is managed by Composio
373
- */
374
- is_composio_managed: boolean;
375
- /**
376
- * Whether the auth config is disabled
377
- */
378
- is_disabled: boolean;
379
- }
380
- interface Toolkit {
381
- /**
382
- * The slug of the toolkit
383
- */
384
- slug: string;
385
- }
329
+ success: boolean;
386
330
  }
387
331
  export interface ConnectedAccountCreateParams {
388
332
  auth_config: ConnectedAccountCreateParams.AuthConfig;
@@ -396,12 +340,21 @@ export declare namespace ConnectedAccountCreateParams {
396
340
  id: string;
397
341
  }
398
342
  interface Connection {
343
+ /**
344
+ * The URL to redirect to after connection completion
345
+ */
346
+ callback_url?: string;
399
347
  /**
400
348
  * Initial data to pass to the connected account
401
349
  */
402
350
  data?: Record<string, unknown>;
403
351
  /**
404
- * The URL to redirect to after connection completion
352
+ * Whether the connection is rerouted
353
+ */
354
+ deprecated_is_v1_rerouted?: boolean;
355
+ /**
356
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
357
+ * Please use callback_url instead.
405
358
  */
406
359
  redirect_uri?: string;
407
360
  /**
@@ -412,13 +365,17 @@ export declare namespace ConnectedAccountCreateParams {
412
365
  }
413
366
  export interface ConnectedAccountListParams {
414
367
  /**
415
- * The auth config id of the connected account
368
+ * The auth config ids of the connected accounts
416
369
  */
417
- auth_config_id?: string;
370
+ auth_config_ids?: Array<string> | null;
418
371
  /**
419
372
  * The cursor to paginate through the connected accounts
420
373
  */
421
374
  cursor?: number | null;
375
+ /**
376
+ * The labels of the connected accounts
377
+ */
378
+ labels?: Array<string> | null;
422
379
  /**
423
380
  * The limit of the connected accounts to return
424
381
  */
@@ -430,17 +387,20 @@ export interface ConnectedAccountListParams {
430
387
  /**
431
388
  * The status of the connected account
432
389
  */
433
- status?: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
390
+ statuses?: Array<'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED'> | null;
434
391
  /**
435
- * The toolkit slug of the connected account
392
+ * The toolkit slugs of the connected accounts
436
393
  */
437
- toolkit_slug?: string;
394
+ toolkit_slugs?: Array<string> | null;
438
395
  /**
439
- * The user id of the connected account
396
+ * The user ids of the connected accounts
440
397
  */
441
- user_id?: string;
398
+ user_ids?: Array<string> | null;
442
399
  }
443
400
  export interface ConnectedAccountUpdateStatusParams {
401
+ /**
402
+ * Set to true to enable the account or false to disable it
403
+ */
444
404
  enabled: boolean;
445
405
  }
446
406
  export declare namespace ConnectedAccounts {
@@ -1 +1 @@
1
- {"version":3,"file":"connected-accounts.d.ts","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,MAAM,CACJ,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C,QAAQ,CAAC,MAAM,EA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tB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;IAExF;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
@@ -5,21 +5,91 @@ 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
+ * Create a new connected account
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const connectedAccount =
14
+ * await client.connectedAccounts.create({
15
+ * auth_config: { id: 'id' },
16
+ * connection: {},
17
+ * });
18
+ * ```
19
+ */
8
20
  create(body, options) {
9
21
  return this._client.post('/api/v3/connected_accounts', { body, ...options });
10
22
  }
23
+ /**
24
+ * Retrieves comprehensive details of a connected account, including authentication
25
+ * configuration, connection status, and all parameters needed for API requests.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const connectedAccount =
30
+ * await client.connectedAccounts.retrieve(
31
+ * 'con_1a2b3c4d5e6f',
32
+ * );
33
+ * ```
34
+ */
11
35
  retrieve(nanoid, options) {
12
36
  return this._client.get((0, path_1.path) `/api/v3/connected_accounts/${nanoid}`, options);
13
37
  }
38
+ /**
39
+ * List connected accounts with optional filters
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const connectedAccounts =
44
+ * await client.connectedAccounts.list();
45
+ * ```
46
+ */
14
47
  list(query = {}, options) {
15
48
  return this._client.get('/api/v3/connected_accounts', { query, ...options });
16
49
  }
50
+ /**
51
+ * Soft-deletes a connected account by marking it as deleted in the database. This
52
+ * prevents the account from being used for API calls but preserves the record for
53
+ * audit purposes.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const connectedAccount =
58
+ * await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
59
+ * ```
60
+ */
17
61
  delete(nanoid, options) {
18
62
  return this._client.delete((0, path_1.path) `/api/v3/connected_accounts/${nanoid}`, options);
19
63
  }
64
+ /**
65
+ * Initiates a new authentication flow for a connected account when credentials
66
+ * have expired or become invalid. This may generate a new authentication URL for
67
+ * OAuth flows or refresh tokens for other auth schemes.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const response = await client.connectedAccounts.refresh(
72
+ * 'con_1a2b3c4d5e6f',
73
+ * );
74
+ * ```
75
+ */
20
76
  refresh(nanoid, options) {
21
77
  return this._client.post((0, path_1.path) `/api/v3/connected_accounts/${nanoid}/refresh`, options);
22
78
  }
79
+ /**
80
+ * Updates the status of a connected account to either enabled (active) or disabled
81
+ * (inactive). Disabled accounts cannot be used for API calls but remain in the
82
+ * database.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const response =
87
+ * await client.connectedAccounts.updateStatus(
88
+ * 'con_1a2b3c4d5e6f',
89
+ * { enabled: true },
90
+ * );
91
+ * ```
92
+ */
23
93
  updateStatus(nanoID, body, options) {
24
94
  return this._client.patch((0, path_1.path) `/api/v3/connected_accounts/${nanoID}/status`, { body, ...options });
25
95
  }
@@ -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,E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