@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
@@ -2,14 +2,39 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import { APIPromise } from '../core/api-promise';
5
+ import { buildHeaders } from '../internal/headers';
5
6
  import { RequestOptions } from '../internal/request-options';
6
7
  import { path } from '../internal/utils/path';
7
8
 
8
9
  export class Tools extends APIResource {
9
- retrieve(toolSlug: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse> {
10
- return this._client.get(path`/api/v3/tools/${toolSlug}`, options);
10
+ /**
11
+ * Retrieve detailed information about a specific tool using its slug identifier.
12
+ * This endpoint returns full metadata about a tool including input/output
13
+ * parameters, versions, and toolkit information.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const tool = await client.tools.retrieve('tool_slug');
18
+ * ```
19
+ */
20
+ retrieve(
21
+ toolSlug: string,
22
+ query: ToolRetrieveParams | null | undefined = {},
23
+ options?: RequestOptions,
24
+ ): APIPromise<ToolRetrieveResponse> {
25
+ return this._client.get(path`/api/v3/tools/${toolSlug}`, { query, ...options });
11
26
  }
12
27
 
28
+ /**
29
+ * Retrieve a paginated list of available tools with comprehensive filtering,
30
+ * sorting and search capabilities. Use query parameters to narrow down results by
31
+ * toolkit, tags, or search terms.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const tools = await client.tools.list();
36
+ * ```
37
+ */
13
38
  list(
14
39
  query: ToolListParams | null | undefined = {},
15
40
  options?: RequestOptions,
@@ -17,113 +42,330 @@ export class Tools extends APIResource {
17
42
  return this._client.get('/api/v3/tools', { query, ...options });
18
43
  }
19
44
 
45
+ /**
46
+ * Execute a specific tool operation with provided arguments and authentication.
47
+ * This is the primary endpoint for integrating with third-party services and
48
+ * executing tools. You can provide structured arguments or use natural language
49
+ * processing by providing a text description of what you want to accomplish.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const response = await client.tools.execute('tool_slug');
54
+ * ```
55
+ */
20
56
  execute(
21
- action: string,
22
- body: ToolExecuteParams | null | undefined = {},
57
+ toolSlug: string,
58
+ params: ToolExecuteParams | null | undefined = {},
23
59
  options?: RequestOptions,
24
60
  ): APIPromise<ToolExecuteResponse> {
25
- return this._client.post(path`/api/v3/tools/execute/${action}`, { body, ...options });
61
+ const { 'x-llm-gateway-headers': xLlmGatewayHeaders, ...body } = params ?? {};
62
+ return this._client.post(path`/api/v3/tools/execute/${toolSlug}`, {
63
+ body,
64
+ ...options,
65
+ headers: buildHeaders([
66
+ { ...(xLlmGatewayHeaders != null ? { 'x-llm-gateway-headers': xLlmGatewayHeaders } : undefined) },
67
+ options?.headers,
68
+ ]),
69
+ });
26
70
  }
27
71
 
72
+ /**
73
+ * Uses AI to translate a natural language description into structured arguments
74
+ * for a specific tool. This endpoint is useful when you want to let users describe
75
+ * what they want to do in plain language instead of providing structured
76
+ * parameters.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const response = await client.tools.getInput('tool_slug', {
81
+ * text: 'I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production',
82
+ * });
83
+ * ```
84
+ */
28
85
  getInput(
29
- actionName: string,
86
+ toolSlug: string,
30
87
  body: ToolGetInputParams,
31
88
  options?: RequestOptions,
32
89
  ): APIPromise<ToolGetInputResponse> {
33
- return this._client.post(path`/api/v3/tools/execute/${actionName}/input`, { body, ...options });
90
+ return this._client.post(path`/api/v3/tools/execute/${toolSlug}/input`, { body, ...options });
34
91
  }
35
92
 
93
+ /**
94
+ * Proxy an HTTP request to a third-party API using connected account credentials.
95
+ * This endpoint allows making authenticated API calls to external services while
96
+ * abstracting away authentication details.
97
+ *
98
+ * @example
99
+ * ```ts
100
+ * const response = await client.tools.proxy({
101
+ * endpoint: '/api/v1/resources',
102
+ * method: 'GET',
103
+ * });
104
+ * ```
105
+ */
36
106
  proxy(body: ToolProxyParams, options?: RequestOptions): APIPromise<ToolProxyResponse> {
37
107
  return this._client.post('/api/v3/tools/execute/proxy', { body, ...options });
38
108
  }
39
109
 
40
- retrieveEnum(options?: RequestOptions): APIPromise<string> {
110
+ /**
111
+ * Retrieve a list of all available tool enumeration values (tool slugs) from
112
+ * latest version of each toolkit. This endpoint returns a comma-separated string
113
+ * of tool slugs that can be used in other API calls.
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * const response = await client.tools.retrieveEnum();
118
+ * ```
119
+ */
120
+ retrieveEnum(options?: RequestOptions): APIPromise<ToolRetrieveEnumResponse> {
41
121
  return this._client.get('/api/v3/tools/enum', options);
42
122
  }
43
123
  }
44
124
 
45
125
  export interface ToolRetrieveResponse {
126
+ /**
127
+ * List of all available versions for this tool
128
+ */
46
129
  available_versions: Array<string>;
47
130
 
131
+ deprecated: ToolRetrieveResponse.Deprecated;
132
+
133
+ /**
134
+ * Detailed explanation of the tool's functionality and purpose
135
+ */
48
136
  description: string;
49
137
 
50
- input_parameters: Record<string, unknown>;
138
+ /**
139
+ * Schema definition of required input parameters for the tool
140
+ */
141
+ input_parameters: { [key: string]: unknown };
142
+
143
+ /**
144
+ * Indicates if this tool is deprecated and may be removed in the future
145
+ */
146
+ is_deprecated: boolean;
51
147
 
148
+ /**
149
+ * Human-readable display name of the tool
150
+ */
52
151
  name: string;
53
152
 
54
- output_parameters: Record<string, unknown>;
153
+ /**
154
+ * Indicates if the tool can be used without authentication
155
+ */
156
+ no_auth: boolean;
157
+
158
+ /**
159
+ * Schema definition of return values from the tool
160
+ */
161
+ output_parameters: { [key: string]: unknown };
162
+
163
+ /**
164
+ * List of scopes associated with the tool
165
+ */
166
+ scopes: Array<string>;
55
167
 
168
+ /**
169
+ * Unique identifier for the tool
170
+ */
56
171
  slug: string;
57
172
 
173
+ /**
174
+ * List of tags associated with the tool for categorization and filtering
175
+ */
58
176
  tags: Array<string>;
59
177
 
60
178
  toolkit: ToolRetrieveResponse.Toolkit;
61
179
 
180
+ /**
181
+ * Current version of the tool
182
+ */
62
183
  version: string;
184
+
185
+ /**
186
+ * Human-friendly description of the tool, if available
187
+ */
188
+ human_description?: string;
63
189
  }
64
190
 
65
191
  export namespace ToolRetrieveResponse {
192
+ export interface Deprecated {
193
+ /**
194
+ * List of all available versions for this tool
195
+ */
196
+ available_versions: Array<string>;
197
+
198
+ /**
199
+ * The display name of the tool
200
+ */
201
+ displayName: string;
202
+
203
+ /**
204
+ * Indicates if this tool is deprecated and may be removed in the future
205
+ */
206
+ is_deprecated: boolean;
207
+
208
+ toolkit: Deprecated.Toolkit;
209
+
210
+ /**
211
+ * Current version identifier of the tool
212
+ */
213
+ version: string;
214
+ }
215
+
216
+ export namespace Deprecated {
217
+ export interface Toolkit {
218
+ /**
219
+ * URL to the toolkit logo image
220
+ */
221
+ logo: string;
222
+ }
223
+ }
224
+
66
225
  export interface Toolkit {
226
+ /**
227
+ * URL to the toolkit logo image
228
+ */
67
229
  logo: string;
68
230
 
231
+ /**
232
+ * Human-readable name of the parent toolkit
233
+ */
69
234
  name: string;
70
235
 
236
+ /**
237
+ * Unique identifier of the parent toolkit
238
+ */
71
239
  slug: string;
72
240
  }
73
241
  }
74
242
 
75
243
  export interface ToolListResponse {
244
+ current_page: number;
245
+
76
246
  items: Array<ToolListResponse.Item>;
77
247
 
78
- next_cursor: string | null;
248
+ total_items: number;
79
249
 
80
250
  total_pages: number;
251
+
252
+ next_cursor?: string | null;
81
253
  }
82
254
 
83
255
  export namespace ToolListResponse {
84
256
  export interface Item {
85
257
  /**
86
- * The description of the tool
258
+ * List of all available versions for this tool
259
+ */
260
+ available_versions: Array<string>;
261
+
262
+ deprecated: Item.Deprecated;
263
+
264
+ /**
265
+ * Detailed explanation of the tool's functionality and purpose
87
266
  */
88
267
  description: string;
89
268
 
90
269
  /**
91
- * The input parameters of the tool
270
+ * Schema definition of required input parameters for the tool
271
+ */
272
+ input_parameters: { [key: string]: unknown };
273
+
274
+ /**
275
+ * Indicates if this tool is deprecated and may be removed in the future
92
276
  */
93
- input_parameters: Record<string, unknown>;
277
+ is_deprecated: boolean;
94
278
 
95
279
  /**
96
- * The name of the tool
280
+ * Human-readable display name of the tool
97
281
  */
98
282
  name: string;
99
283
 
100
284
  /**
101
- * The output parameters of the tool
285
+ * Indicates if the tool can be used without authentication
286
+ */
287
+ no_auth: boolean;
288
+
289
+ /**
290
+ * Schema definition of return values from the tool
102
291
  */
103
- output_parameters: Record<string, unknown>;
292
+ output_parameters: { [key: string]: unknown };
104
293
 
105
294
  /**
106
- * The slug of the tool
295
+ * List of scopes associated with the tool
296
+ */
297
+ scopes: Array<string>;
298
+
299
+ /**
300
+ * Unique identifier for the tool
107
301
  */
108
302
  slug: string;
109
303
 
110
304
  /**
111
- * The tags of the tool
305
+ * List of tags associated with the tool for categorization and filtering
112
306
  */
113
307
  tags: Array<string>;
114
308
 
115
309
  toolkit: Item.Toolkit;
310
+
311
+ /**
312
+ * Current version of the tool
313
+ */
314
+ version: string;
315
+
316
+ /**
317
+ * Human-friendly description of the tool, if available
318
+ */
319
+ human_description?: string;
116
320
  }
117
321
 
118
322
  export namespace Item {
323
+ export interface Deprecated {
324
+ /**
325
+ * List of all available versions for this tool
326
+ */
327
+ available_versions: Array<string>;
328
+
329
+ /**
330
+ * The display name of the tool
331
+ */
332
+ displayName: string;
333
+
334
+ /**
335
+ * Indicates if this tool is deprecated and may be removed in the future
336
+ */
337
+ is_deprecated: boolean;
338
+
339
+ toolkit: Deprecated.Toolkit;
340
+
341
+ /**
342
+ * Current version identifier of the tool
343
+ */
344
+ version: string;
345
+ }
346
+
347
+ export namespace Deprecated {
348
+ export interface Toolkit {
349
+ /**
350
+ * URL to the toolkit logo image
351
+ */
352
+ logo: string;
353
+ }
354
+ }
355
+
119
356
  export interface Toolkit {
120
357
  /**
121
- * The name of the toolkit
358
+ * URL to the toolkit logo image
359
+ */
360
+ logo: string;
361
+
362
+ /**
363
+ * Human-readable name of the parent toolkit
122
364
  */
123
365
  name: string;
124
366
 
125
367
  /**
126
- * The slug of the toolkit
368
+ * Unique identifier of the parent toolkit
127
369
  */
128
370
  slug: string;
129
371
  }
@@ -131,120 +373,1797 @@ export namespace ToolListResponse {
131
373
  }
132
374
 
133
375
  export interface ToolExecuteResponse {
134
- data: Record<string, unknown>;
376
+ /**
377
+ * Tool execution output data that varies based on the specific tool
378
+ */
379
+ data: { [key: string]: unknown };
135
380
 
381
+ /**
382
+ * Error message if the tool execution was not successful (null if successful)
383
+ */
136
384
  error: string | null;
137
385
 
386
+ /**
387
+ * Indicates if the tool execution was successful
388
+ */
138
389
  successful: boolean;
139
390
 
391
+ /**
392
+ * Unique identifier for the execution log (useful for debugging and support)
393
+ */
140
394
  log_id?: string;
141
395
 
396
+ /**
397
+ * Optional session information for tools that return session context
398
+ */
142
399
  session_info?: unknown;
143
400
  }
144
401
 
145
402
  export interface ToolGetInputResponse {
146
403
  /**
147
- * The arguments for the action needed to execute the given task.
404
+ * Key-value pairs of arguments required by the tool to accomplish the described
405
+ * task
148
406
  */
149
- arguments?: Record<string, unknown>;
407
+ arguments?: { [key: string]: unknown };
150
408
 
151
409
  /**
152
- * The error message if the arguments were not generated successfully.
410
+ * Error message if the arguments could not be generated (null if successful)
153
411
  */
154
412
  error?: string;
155
413
  }
156
414
 
157
415
  export interface ToolProxyResponse {
416
+ /**
417
+ * The HTTP status code returned from the proxied API
418
+ */
158
419
  status: number;
159
420
 
421
+ /**
422
+ * Binary body response data. Present when the response is a binary file.
423
+ */
424
+ binary_data?: ToolProxyResponse.BinaryData;
425
+
426
+ /**
427
+ * The response data returned from the proxied API
428
+ */
160
429
  data?: unknown;
161
430
 
162
- headers?: Record<string, string>;
431
+ /**
432
+ * The HTTP headers returned from the proxied API
433
+ */
434
+ headers?: { [key: string]: string };
435
+ }
436
+
437
+ export namespace ToolProxyResponse {
438
+ /**
439
+ * Binary body response data. Present when the response is a binary file.
440
+ */
441
+ export interface BinaryData {
442
+ /**
443
+ * Content-Type of the binary data
444
+ */
445
+ content_type: string;
446
+
447
+ /**
448
+ * File size in bytes
449
+ */
450
+ size: number;
451
+
452
+ /**
453
+ * URL to download binary content
454
+ */
455
+ url: string;
456
+
457
+ /**
458
+ * ISO 8601 timestamp when the URL expires
459
+ */
460
+ expires_at?: string;
461
+ }
163
462
  }
164
463
 
165
- export type ToolRetrieveEnumResponse = string;
464
+ /**
465
+ * JSON string containing all tool enum values from latest version of each toolkit
466
+ */
467
+ export type ToolRetrieveEnumResponse = Array<string>;
468
+
469
+ export interface ToolRetrieveParams {
470
+ /**
471
+ * Toolkit version specification. Use "latest" for latest versions or bracket
472
+ * notation for specific versions per toolkit.
473
+ */
474
+ toolkit_versions?: string | { [key: string]: string };
475
+
476
+ /**
477
+ * Optional version of the tool to retrieve
478
+ */
479
+ version?: string;
480
+ }
166
481
 
167
482
  export interface ToolListParams {
168
483
  /**
169
- * The cursor to paginate through the results
484
+ * Comma-separated list of auth config IDs to filter tools by
485
+ */
486
+ auth_config_ids?: string | Array<string>;
487
+
488
+ /**
489
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
490
+ * limit. The page is the page number and the limit is the number of items per
491
+ * page. The cursor is used to paginate through the items. The cursor is not
492
+ * required for the first page.
170
493
  */
171
494
  cursor?: string;
172
495
 
173
496
  /**
174
- * Whether to filter by important tools
497
+ * Filter to only show important/featured tools (set to "true" to enable)
498
+ */
499
+ important?: 'true' | 'false';
500
+
501
+ /**
502
+ * Include deprecated tools in the response
503
+ */
504
+ include_deprecated?: boolean;
505
+
506
+ /**
507
+ * Number of items per page, max allowed is 1000
175
508
  */
176
- important?: string;
509
+ limit?: number | null;
177
510
 
178
511
  /**
179
- * The number of results to return
512
+ * Full-text search query to filter tools by name, slug, or description. Applied as
513
+ * a soft filter on top of other filters.
180
514
  */
181
- limit?: string;
515
+ query?: string;
182
516
 
183
517
  /**
184
- * The search query to filter by
518
+ * Array of scopes to filter tools by)
519
+ */
520
+ scopes?: Array<string> | null;
521
+
522
+ /**
523
+ * Deprecated: use "query" instead. Free-text search query to find tools by name,
524
+ * description, or functionality.
185
525
  */
186
526
  search?: string;
187
527
 
528
+ /**
529
+ * Filter tools by one or more tags (can be specified multiple times)
530
+ */
531
+ tags?: Array<string>;
532
+
533
+ /**
534
+ * Comma-separated list of specific tool slugs to retrieve (overrides other
535
+ * filters)
536
+ */
537
+ tool_slugs?: string;
538
+
188
539
  /**
189
540
  * The slug of the toolkit to filter by
190
541
  */
191
542
  toolkit_slug?: string;
543
+
544
+ /**
545
+ * Toolkit version specification. Use "latest" for latest versions or bracket
546
+ * notation for specific versions per toolkit.
547
+ */
548
+ toolkit_versions?: string | { [key: string]: string };
192
549
  }
193
550
 
194
551
  export interface ToolExecuteParams {
195
- allow_tracing?: boolean;
552
+ /**
553
+ * @deprecated Body param: Deprecated. Enable debug tracing for tool execution
554
+ * (useful for debugging)
555
+ */
556
+ allow_tracing?: boolean | null;
196
557
 
197
- arguments?: Record<string, unknown>;
558
+ /**
559
+ * Body param: Key-value pairs of arguments required by the tool (mutually
560
+ * exclusive with text)
561
+ */
562
+ arguments?: { [key: string]: unknown };
198
563
 
564
+ /**
565
+ * Body param: Unique identifier for the connected account to use for
566
+ * authentication
567
+ */
199
568
  connected_account_id?: string;
200
569
 
570
+ /**
571
+ * Body param: Custom authentication parameters for tools that support
572
+ * parameterized authentication
573
+ */
574
+ custom_auth_params?: ToolExecuteParams.CustomAuthParams;
575
+
576
+ /**
577
+ * Body param: Custom connection data for tools that support custom connection data
578
+ */
579
+ custom_connection_data?:
580
+ | ToolExecuteParams.UnionMember0
581
+ | ToolExecuteParams.UnionMember1
582
+ | ToolExecuteParams.UnionMember2
583
+ | ToolExecuteParams.UnionMember3
584
+ | ToolExecuteParams.UnionMember4
585
+ | ToolExecuteParams.UnionMember5
586
+ | ToolExecuteParams.UnionMember6
587
+ | ToolExecuteParams.UnionMember7
588
+ | ToolExecuteParams.UnionMember8
589
+ | ToolExecuteParams.UnionMember9;
590
+
591
+ /**
592
+ * @deprecated Body param: Deprecated: please use user_id instead. Entity
593
+ * identifier for multi-entity connected accounts (e.g. multiple repositories,
594
+ * organizations)
595
+ */
201
596
  entity_id?: string;
202
597
 
598
+ /**
599
+ * Body param: Natural language description of the task to perform (mutually
600
+ * exclusive with arguments)
601
+ */
203
602
  text?: string;
204
603
 
205
- version?: string;
206
- }
604
+ /**
605
+ * Body param: User id for multi-user connected accounts (e.g. multiple users,
606
+ * organizations)
607
+ */
608
+ user_id?: string;
207
609
 
208
- export interface ToolGetInputParams {
209
610
  /**
210
- * The use-case description for the action, this will give context to LLM to
211
- * generate the correct inputs for the action.
611
+ * Body param: Tool version to execute (defaults to "00000000_00" if not specified)
212
612
  */
213
- text: string;
613
+ version?: string;
214
614
 
215
615
  /**
216
- * The custom description for the action, use this to provide customised context
217
- * about the action to the LLM to suit your use-case.
616
+ * Header param: JSON object containing custom headers to pass to LLM providers
617
+ * (OpenAI, Bedrock, etc.)
218
618
  */
219
- customDescription?: string;
619
+ 'x-llm-gateway-headers'?: string;
620
+ }
220
621
 
622
+ export namespace ToolExecuteParams {
221
623
  /**
222
- * The system prompt to be used by LLM, use this to control and guide the behaviour
223
- * of the LLM.
624
+ * Custom authentication parameters for tools that support parameterized
625
+ * authentication
224
626
  */
225
- systemPrompt?: string;
627
+ export interface CustomAuthParams {
628
+ /**
629
+ * The base URL (root address) what you should use while making http requests to
630
+ * the connected account. For example, for gmail, it would be
631
+ * 'https://gmail.googleapis.com'
632
+ */
633
+ base_url?: string;
226
634
 
227
- version?: string;
228
- }
635
+ /**
636
+ * The body to be sent to the endpoint for authentication. This is a JSON object.
637
+ * Note: This is very rarely needed and is only required by very few apps.
638
+ */
639
+ body?: { [key: string]: unknown };
229
640
 
230
- export interface ToolProxyParams {
231
- endpoint: string;
641
+ parameters?: Array<CustomAuthParams.Parameter>;
642
+ }
232
643
 
233
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
644
+ export namespace CustomAuthParams {
645
+ export interface Parameter {
646
+ /**
647
+ * The location of the parameter. Can be 'query' or 'header'.
648
+ */
649
+ in: 'query' | 'header';
234
650
 
235
- body?: unknown;
651
+ /**
652
+ * The name of the parameter. For example, 'x-api-key', 'Content-Type', etc.
653
+ */
654
+ name: string;
236
655
 
237
- connected_account_id?: string;
656
+ /**
657
+ * The value of the parameter. For example, '1234567890', 'application/json', etc.
658
+ */
659
+ value: string | number;
660
+ }
661
+ }
238
662
 
239
- parameters?: Array<ToolProxyParams.Parameter>;
240
- }
663
+ export interface UnionMember0 {
664
+ authScheme: 'OAUTH2';
241
665
 
242
- export namespace ToolProxyParams {
243
- export interface Parameter {
244
- name: string;
666
+ toolkitSlug: string;
245
667
 
246
- type: 'header' | 'query';
668
+ val: UnionMember0.Val;
669
+ }
670
+
671
+ export namespace UnionMember0 {
672
+ export interface Val {
673
+ access_token: string;
674
+
675
+ account_id?: string;
676
+
677
+ account_url?: string;
678
+
679
+ api_url?: string;
680
+
681
+ /**
682
+ * for slack user scopes
683
+ */
684
+ authed_user?: Val.AuthedUser;
685
+
686
+ base_url?: string;
687
+
688
+ borneo_dashboard_url?: string;
689
+
690
+ COMPANYDOMAIN?: string;
691
+
692
+ dc?: string;
693
+
694
+ domain?: string;
695
+
696
+ expires_in?: number | string | null;
697
+
698
+ extension?: string;
699
+
700
+ form_api_base_url?: string;
701
+
702
+ id_token?: string;
703
+
704
+ instanceEndpoint?: string;
705
+
706
+ instanceName?: string;
707
+
708
+ /**
709
+ * Whether to return the redirect url without shortening
710
+ */
711
+ long_redirect_url?: boolean;
712
+
713
+ proxy_password?: string;
714
+
715
+ proxy_username?: string;
716
+
717
+ refresh_token?: string | null;
718
+
719
+ region?: string;
720
+
721
+ scope?: string | Array<string> | null;
722
+
723
+ server_location?: string;
724
+
725
+ shop?: string;
726
+
727
+ site_name?: string;
728
+
729
+ /**
730
+ * The oauth2 state prefix for the connection
731
+ */
732
+ state_prefix?: string;
733
+
734
+ subdomain?: string;
247
735
 
736
+ token_type?: string;
737
+
738
+ version?: string;
739
+
740
+ webhook_signature?: string;
741
+
742
+ your_server?: string;
743
+
744
+ 'your-domain'?: string;
745
+
746
+ [k: string]: unknown;
747
+ }
748
+
749
+ export namespace Val {
750
+ /**
751
+ * for slack user scopes
752
+ */
753
+ export interface AuthedUser {
754
+ access_token?: string;
755
+
756
+ scope?: string;
757
+ }
758
+ }
759
+ }
760
+
761
+ export interface UnionMember1 {
762
+ authScheme: 'DCR_OAUTH';
763
+
764
+ toolkitSlug: string;
765
+
766
+ val: UnionMember1.Val;
767
+ }
768
+
769
+ export namespace UnionMember1 {
770
+ export interface Val {
771
+ access_token: string;
772
+
773
+ /**
774
+ * Dynamically registered client ID
775
+ */
776
+ client_id: string;
777
+
778
+ account_id?: string;
779
+
780
+ account_url?: string;
781
+
782
+ api_url?: string;
783
+
784
+ base_url?: string;
785
+
786
+ borneo_dashboard_url?: string;
787
+
788
+ client_id_issued_at?: number;
789
+
790
+ /**
791
+ * Dynamically registered client secret
792
+ */
793
+ client_secret?: string;
794
+
795
+ client_secret_expires_at?: number;
796
+
797
+ COMPANYDOMAIN?: string;
798
+
799
+ dc?: string;
800
+
801
+ domain?: string;
802
+
803
+ expires_in?: number | string | null;
804
+
805
+ extension?: string;
806
+
807
+ form_api_base_url?: string;
808
+
809
+ id_token?: string;
810
+
811
+ instanceEndpoint?: string;
812
+
813
+ instanceName?: string;
814
+
815
+ /**
816
+ * Whether to return the redirect url without shortening
817
+ */
818
+ long_redirect_url?: boolean;
819
+
820
+ proxy_password?: string;
821
+
822
+ proxy_username?: string;
823
+
824
+ refresh_token?: string | null;
825
+
826
+ region?: string;
827
+
828
+ scope?: string | Array<string> | null;
829
+
830
+ server_location?: string;
831
+
832
+ shop?: string;
833
+
834
+ site_name?: string;
835
+
836
+ /**
837
+ * The oauth2 state prefix for the connection
838
+ */
839
+ state_prefix?: string;
840
+
841
+ subdomain?: string;
842
+
843
+ token_type?: string;
844
+
845
+ version?: string;
846
+
847
+ your_server?: string;
848
+
849
+ 'your-domain'?: string;
850
+
851
+ [k: string]: unknown;
852
+ }
853
+ }
854
+
855
+ export interface UnionMember2 {
856
+ authScheme: 'API_KEY';
857
+
858
+ toolkitSlug: string;
859
+
860
+ val: UnionMember2.Val;
861
+ }
862
+
863
+ export namespace UnionMember2 {
864
+ export interface Val {
865
+ account_id?: string;
866
+
867
+ account_url?: string;
868
+
869
+ api_key?: string;
870
+
871
+ api_url?: string;
872
+
873
+ base_url?: string;
874
+
875
+ basic_encoded?: string;
876
+
877
+ bearer_token?: string;
878
+
879
+ borneo_dashboard_url?: string;
880
+
881
+ COMPANYDOMAIN?: string;
882
+
883
+ dc?: string;
884
+
885
+ domain?: string;
886
+
887
+ extension?: string;
888
+
889
+ form_api_base_url?: string;
890
+
891
+ generic_api_key?: string;
892
+
893
+ instanceEndpoint?: string;
894
+
895
+ instanceName?: string;
896
+
897
+ proxy_password?: string;
898
+
899
+ proxy_username?: string;
900
+
901
+ region?: string;
902
+
903
+ server_location?: string;
904
+
905
+ shop?: string;
906
+
907
+ site_name?: string;
908
+
909
+ subdomain?: string;
910
+
911
+ version?: string;
912
+
913
+ your_server?: string;
914
+
915
+ 'your-domain'?: string;
916
+
917
+ [k: string]: unknown;
918
+ }
919
+ }
920
+
921
+ export interface UnionMember3 {
922
+ authScheme: 'BASIC_WITH_JWT';
923
+
924
+ toolkitSlug: string;
925
+
926
+ val: UnionMember3.Val;
927
+ }
928
+
929
+ export namespace UnionMember3 {
930
+ export interface Val {
931
+ password: string;
932
+
933
+ username: string;
934
+
935
+ account_id?: string;
936
+
937
+ account_url?: string;
938
+
939
+ api_url?: string;
940
+
941
+ base_url?: string;
942
+
943
+ borneo_dashboard_url?: string;
944
+
945
+ COMPANYDOMAIN?: string;
946
+
947
+ dc?: string;
948
+
949
+ domain?: string;
950
+
951
+ extension?: string;
952
+
953
+ form_api_base_url?: string;
954
+
955
+ instanceEndpoint?: string;
956
+
957
+ instanceName?: string;
958
+
959
+ proxy_password?: string;
960
+
961
+ proxy_username?: string;
962
+
963
+ region?: string;
964
+
965
+ server_location?: string;
966
+
967
+ shop?: string;
968
+
969
+ site_name?: string;
970
+
971
+ subdomain?: string;
972
+
973
+ version?: string;
974
+
975
+ your_server?: string;
976
+
977
+ 'your-domain'?: string;
978
+
979
+ [k: string]: unknown;
980
+ }
981
+ }
982
+
983
+ export interface UnionMember4 {
984
+ authScheme: 'BASIC';
985
+
986
+ toolkitSlug: string;
987
+
988
+ val: UnionMember4.Val;
989
+ }
990
+
991
+ export namespace UnionMember4 {
992
+ export interface Val {
993
+ username: string;
994
+
995
+ account_id?: string;
996
+
997
+ account_url?: string;
998
+
999
+ api_url?: string;
1000
+
1001
+ base_url?: string;
1002
+
1003
+ borneo_dashboard_url?: string;
1004
+
1005
+ COMPANYDOMAIN?: string;
1006
+
1007
+ dc?: string;
1008
+
1009
+ domain?: string;
1010
+
1011
+ extension?: string;
1012
+
1013
+ form_api_base_url?: string;
1014
+
1015
+ instanceEndpoint?: string;
1016
+
1017
+ instanceName?: string;
1018
+
1019
+ password?: string;
1020
+
1021
+ proxy_password?: string;
1022
+
1023
+ proxy_username?: string;
1024
+
1025
+ region?: string;
1026
+
1027
+ server_location?: string;
1028
+
1029
+ shop?: string;
1030
+
1031
+ site_name?: string;
1032
+
1033
+ subdomain?: string;
1034
+
1035
+ version?: string;
1036
+
1037
+ your_server?: string;
1038
+
1039
+ 'your-domain'?: string;
1040
+
1041
+ [k: string]: unknown;
1042
+ }
1043
+ }
1044
+
1045
+ export interface UnionMember5 {
1046
+ authScheme: 'BEARER_TOKEN';
1047
+
1048
+ toolkitSlug: string;
1049
+
1050
+ val: UnionMember5.Val;
1051
+ }
1052
+
1053
+ export namespace UnionMember5 {
1054
+ export interface Val {
1055
+ token: string;
1056
+
1057
+ account_id?: string;
1058
+
1059
+ account_url?: string;
1060
+
1061
+ api_url?: string;
1062
+
1063
+ base_url?: string;
1064
+
1065
+ borneo_dashboard_url?: string;
1066
+
1067
+ COMPANYDOMAIN?: string;
1068
+
1069
+ dc?: string;
1070
+
1071
+ domain?: string;
1072
+
1073
+ extension?: string;
1074
+
1075
+ form_api_base_url?: string;
1076
+
1077
+ instanceEndpoint?: string;
1078
+
1079
+ instanceName?: string;
1080
+
1081
+ proxy_password?: string;
1082
+
1083
+ proxy_username?: string;
1084
+
1085
+ region?: string;
1086
+
1087
+ server_location?: string;
1088
+
1089
+ shop?: string;
1090
+
1091
+ site_name?: string;
1092
+
1093
+ subdomain?: string;
1094
+
1095
+ version?: string;
1096
+
1097
+ your_server?: string;
1098
+
1099
+ 'your-domain'?: string;
1100
+
1101
+ [k: string]: unknown;
1102
+ }
1103
+ }
1104
+
1105
+ export interface UnionMember6 {
1106
+ authScheme: 'OAUTH1';
1107
+
1108
+ toolkitSlug: string;
1109
+
1110
+ val: UnionMember6.Val;
1111
+ }
1112
+
1113
+ export namespace UnionMember6 {
1114
+ export interface Val {
1115
+ oauth_token: string;
1116
+
1117
+ oauth_token_secret: string;
1118
+
1119
+ account_id?: string;
1120
+
1121
+ account_url?: string;
1122
+
1123
+ api_url?: string;
1124
+
1125
+ base_url?: string;
1126
+
1127
+ borneo_dashboard_url?: string;
1128
+
1129
+ callback_url?: string;
1130
+
1131
+ COMPANYDOMAIN?: string;
1132
+
1133
+ consumer_key?: string;
1134
+
1135
+ dc?: string;
1136
+
1137
+ domain?: string;
1138
+
1139
+ extension?: string;
1140
+
1141
+ form_api_base_url?: string;
1142
+
1143
+ instanceEndpoint?: string;
1144
+
1145
+ instanceName?: string;
1146
+
1147
+ oauth_verifier?: string;
1148
+
1149
+ proxy_password?: string;
1150
+
1151
+ proxy_username?: string;
1152
+
1153
+ redirectUrl?: string;
1154
+
1155
+ region?: string;
1156
+
1157
+ server_location?: string;
1158
+
1159
+ shop?: string;
1160
+
1161
+ site_name?: string;
1162
+
1163
+ subdomain?: string;
1164
+
1165
+ version?: string;
1166
+
1167
+ your_server?: string;
1168
+
1169
+ 'your-domain'?: string;
1170
+
1171
+ [k: string]: unknown;
1172
+ }
1173
+ }
1174
+
1175
+ export interface UnionMember7 {
1176
+ authScheme: 'NO_AUTH';
1177
+
1178
+ toolkitSlug: string;
1179
+
1180
+ val: UnionMember7.Val;
1181
+ }
1182
+
1183
+ export namespace UnionMember7 {
1184
+ export interface Val {
1185
+ account_id?: string;
1186
+
1187
+ account_url?: string;
1188
+
1189
+ api_url?: string;
1190
+
1191
+ base_url?: string;
1192
+
1193
+ borneo_dashboard_url?: string;
1194
+
1195
+ COMPANYDOMAIN?: string;
1196
+
1197
+ dc?: string;
1198
+
1199
+ domain?: string;
1200
+
1201
+ extension?: string;
1202
+
1203
+ form_api_base_url?: string;
1204
+
1205
+ instanceEndpoint?: string;
1206
+
1207
+ instanceName?: string;
1208
+
1209
+ proxy_password?: string;
1210
+
1211
+ proxy_username?: string;
1212
+
1213
+ region?: string;
1214
+
1215
+ server_location?: string;
1216
+
1217
+ shop?: string;
1218
+
1219
+ site_name?: string;
1220
+
1221
+ subdomain?: string;
1222
+
1223
+ version?: string;
1224
+
1225
+ your_server?: string;
1226
+
1227
+ 'your-domain'?: string;
1228
+
1229
+ [k: string]: unknown;
1230
+ }
1231
+ }
1232
+
1233
+ export interface UnionMember8 {
1234
+ authScheme: 'SERVICE_ACCOUNT';
1235
+
1236
+ toolkitSlug: string;
1237
+
1238
+ val: UnionMember8.Val;
1239
+ }
1240
+
1241
+ export namespace UnionMember8 {
1242
+ export interface Val {
1243
+ application_id: string;
1244
+
1245
+ installation_id: string;
1246
+
1247
+ private_key: string;
1248
+
1249
+ account_id?: string;
1250
+
1251
+ account_url?: string;
1252
+
1253
+ api_url?: string;
1254
+
1255
+ base_url?: string;
1256
+
1257
+ borneo_dashboard_url?: string;
1258
+
1259
+ COMPANYDOMAIN?: string;
1260
+
1261
+ dc?: string;
1262
+
1263
+ domain?: string;
1264
+
1265
+ extension?: string;
1266
+
1267
+ form_api_base_url?: string;
1268
+
1269
+ instanceEndpoint?: string;
1270
+
1271
+ instanceName?: string;
1272
+
1273
+ proxy_password?: string;
1274
+
1275
+ proxy_username?: string;
1276
+
1277
+ region?: string;
1278
+
1279
+ server_location?: string;
1280
+
1281
+ shop?: string;
1282
+
1283
+ site_name?: string;
1284
+
1285
+ subdomain?: string;
1286
+
1287
+ version?: string;
1288
+
1289
+ your_server?: string;
1290
+
1291
+ 'your-domain'?: string;
1292
+
1293
+ [k: string]: unknown;
1294
+ }
1295
+ }
1296
+
1297
+ export interface UnionMember9 {
1298
+ authScheme: 'GOOGLE_SERVICE_ACCOUNT';
1299
+
1300
+ toolkitSlug: string;
1301
+
1302
+ val: UnionMember9.Val;
1303
+ }
1304
+
1305
+ export namespace UnionMember9 {
1306
+ export interface Val {
1307
+ credentials_json: string;
1308
+
1309
+ account_id?: string;
1310
+
1311
+ account_url?: string;
1312
+
1313
+ api_url?: string;
1314
+
1315
+ base_url?: string;
1316
+
1317
+ borneo_dashboard_url?: string;
1318
+
1319
+ COMPANYDOMAIN?: string;
1320
+
1321
+ dc?: string;
1322
+
1323
+ domain?: string;
1324
+
1325
+ extension?: string;
1326
+
1327
+ form_api_base_url?: string;
1328
+
1329
+ instanceEndpoint?: string;
1330
+
1331
+ instanceName?: string;
1332
+
1333
+ proxy_password?: string;
1334
+
1335
+ proxy_username?: string;
1336
+
1337
+ region?: string;
1338
+
1339
+ server_location?: string;
1340
+
1341
+ shop?: string;
1342
+
1343
+ site_name?: string;
1344
+
1345
+ subdomain?: string;
1346
+
1347
+ version?: string;
1348
+
1349
+ your_server?: string;
1350
+
1351
+ 'your-domain'?: string;
1352
+
1353
+ [k: string]: unknown;
1354
+ }
1355
+ }
1356
+ }
1357
+
1358
+ export interface ToolGetInputParams {
1359
+ /**
1360
+ * Natural language description of what you want to accomplish with this tool
1361
+ */
1362
+ text: string;
1363
+
1364
+ /**
1365
+ * Custom description of the tool to help guide the LLM in generating more accurate
1366
+ * inputs
1367
+ */
1368
+ custom_description?: string;
1369
+
1370
+ /**
1371
+ * System prompt to control and guide the behavior of the LLM when generating
1372
+ * inputs
1373
+ */
1374
+ system_prompt?: string;
1375
+
1376
+ /**
1377
+ * Tool version to use when generating inputs (defaults to "latest" if not
1378
+ * specified)
1379
+ */
1380
+ version?: string;
1381
+ }
1382
+
1383
+ export interface ToolProxyParams {
1384
+ /**
1385
+ * The API endpoint to call (absolute URL or path relative to base URL of the
1386
+ * connected account)
1387
+ */
1388
+ endpoint: string;
1389
+
1390
+ /**
1391
+ * The HTTP method to use for the request
1392
+ */
1393
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
1394
+
1395
+ /**
1396
+ * Binary body to send. For binary upload via URL: use {url: "https://...",
1397
+ * content_type?: "..."}. For binary upload via base64: use {base64: "...",
1398
+ * content_type?: "..."}.
1399
+ */
1400
+ binary_body?: ToolProxyParams.UnionMember0 | ToolProxyParams.UnionMember1;
1401
+
1402
+ /**
1403
+ * The request body (for POST, PUT, and PATCH requests)
1404
+ */
1405
+ body?: unknown;
1406
+
1407
+ /**
1408
+ * The ID of the connected account to use for authentication (if not provided, will
1409
+ * use the default account for the project)
1410
+ */
1411
+ connected_account_id?: string;
1412
+
1413
+ /**
1414
+ * @deprecated
1415
+ */
1416
+ custom_connection_data?:
1417
+ | ToolProxyParams.UnionMember0
1418
+ | ToolProxyParams.UnionMember1
1419
+ | ToolProxyParams.UnionMember2
1420
+ | ToolProxyParams.UnionMember3
1421
+ | ToolProxyParams.UnionMember4
1422
+ | ToolProxyParams.UnionMember5
1423
+ | ToolProxyParams.UnionMember6
1424
+ | ToolProxyParams.UnionMember7
1425
+ | ToolProxyParams.UnionMember8
1426
+ | ToolProxyParams.UnionMember9;
1427
+
1428
+ /**
1429
+ * Additional HTTP headers or query parameters to include in the request
1430
+ */
1431
+ parameters?: Array<ToolProxyParams.Parameter>;
1432
+ }
1433
+
1434
+ export namespace ToolProxyParams {
1435
+ export interface UnionMember0 {
1436
+ /**
1437
+ * URL to fetch binary content from
1438
+ */
1439
+ url: string;
1440
+
1441
+ /**
1442
+ * Content-Type header to use for the request
1443
+ */
1444
+ content_type?: string;
1445
+ }
1446
+
1447
+ export interface UnionMember1 {
1448
+ /**
1449
+ * Base64-encoded binary data
1450
+ */
1451
+ base64: string;
1452
+
1453
+ /**
1454
+ * Content-Type header to use for the request
1455
+ */
1456
+ content_type?: string;
1457
+ }
1458
+
1459
+ export interface UnionMember0 {
1460
+ authScheme: 'OAUTH2';
1461
+
1462
+ toolkitSlug: string;
1463
+
1464
+ val: UnionMember0.Val;
1465
+ }
1466
+
1467
+ export namespace UnionMember0 {
1468
+ export interface Val {
1469
+ access_token: string;
1470
+
1471
+ account_id?: string;
1472
+
1473
+ account_url?: string;
1474
+
1475
+ api_url?: string;
1476
+
1477
+ /**
1478
+ * for slack user scopes
1479
+ */
1480
+ authed_user?: Val.AuthedUser;
1481
+
1482
+ base_url?: string;
1483
+
1484
+ borneo_dashboard_url?: string;
1485
+
1486
+ COMPANYDOMAIN?: string;
1487
+
1488
+ dc?: string;
1489
+
1490
+ domain?: string;
1491
+
1492
+ expires_in?: number | string | null;
1493
+
1494
+ extension?: string;
1495
+
1496
+ form_api_base_url?: string;
1497
+
1498
+ id_token?: string;
1499
+
1500
+ instanceEndpoint?: string;
1501
+
1502
+ instanceName?: string;
1503
+
1504
+ /**
1505
+ * Whether to return the redirect url without shortening
1506
+ */
1507
+ long_redirect_url?: boolean;
1508
+
1509
+ proxy_password?: string;
1510
+
1511
+ proxy_username?: string;
1512
+
1513
+ refresh_token?: string | null;
1514
+
1515
+ region?: string;
1516
+
1517
+ scope?: string | Array<string> | null;
1518
+
1519
+ server_location?: string;
1520
+
1521
+ shop?: string;
1522
+
1523
+ site_name?: string;
1524
+
1525
+ /**
1526
+ * The oauth2 state prefix for the connection
1527
+ */
1528
+ state_prefix?: string;
1529
+
1530
+ subdomain?: string;
1531
+
1532
+ token_type?: string;
1533
+
1534
+ version?: string;
1535
+
1536
+ webhook_signature?: string;
1537
+
1538
+ your_server?: string;
1539
+
1540
+ 'your-domain'?: string;
1541
+
1542
+ [k: string]: unknown;
1543
+ }
1544
+
1545
+ export namespace Val {
1546
+ /**
1547
+ * for slack user scopes
1548
+ */
1549
+ export interface AuthedUser {
1550
+ access_token?: string;
1551
+
1552
+ scope?: string;
1553
+ }
1554
+ }
1555
+ }
1556
+
1557
+ export interface UnionMember1 {
1558
+ authScheme: 'DCR_OAUTH';
1559
+
1560
+ toolkitSlug: string;
1561
+
1562
+ val: UnionMember1.Val;
1563
+ }
1564
+
1565
+ export namespace UnionMember1 {
1566
+ export interface Val {
1567
+ access_token: string;
1568
+
1569
+ /**
1570
+ * Dynamically registered client ID
1571
+ */
1572
+ client_id: string;
1573
+
1574
+ account_id?: string;
1575
+
1576
+ account_url?: string;
1577
+
1578
+ api_url?: string;
1579
+
1580
+ base_url?: string;
1581
+
1582
+ borneo_dashboard_url?: string;
1583
+
1584
+ client_id_issued_at?: number;
1585
+
1586
+ /**
1587
+ * Dynamically registered client secret
1588
+ */
1589
+ client_secret?: string;
1590
+
1591
+ client_secret_expires_at?: number;
1592
+
1593
+ COMPANYDOMAIN?: string;
1594
+
1595
+ dc?: string;
1596
+
1597
+ domain?: string;
1598
+
1599
+ expires_in?: number | string | null;
1600
+
1601
+ extension?: string;
1602
+
1603
+ form_api_base_url?: string;
1604
+
1605
+ id_token?: string;
1606
+
1607
+ instanceEndpoint?: string;
1608
+
1609
+ instanceName?: string;
1610
+
1611
+ /**
1612
+ * Whether to return the redirect url without shortening
1613
+ */
1614
+ long_redirect_url?: boolean;
1615
+
1616
+ proxy_password?: string;
1617
+
1618
+ proxy_username?: string;
1619
+
1620
+ refresh_token?: string | null;
1621
+
1622
+ region?: string;
1623
+
1624
+ scope?: string | Array<string> | null;
1625
+
1626
+ server_location?: string;
1627
+
1628
+ shop?: string;
1629
+
1630
+ site_name?: string;
1631
+
1632
+ /**
1633
+ * The oauth2 state prefix for the connection
1634
+ */
1635
+ state_prefix?: string;
1636
+
1637
+ subdomain?: string;
1638
+
1639
+ token_type?: string;
1640
+
1641
+ version?: string;
1642
+
1643
+ your_server?: string;
1644
+
1645
+ 'your-domain'?: string;
1646
+
1647
+ [k: string]: unknown;
1648
+ }
1649
+ }
1650
+
1651
+ export interface UnionMember2 {
1652
+ authScheme: 'API_KEY';
1653
+
1654
+ toolkitSlug: string;
1655
+
1656
+ val: UnionMember2.Val;
1657
+ }
1658
+
1659
+ export namespace UnionMember2 {
1660
+ export interface Val {
1661
+ account_id?: string;
1662
+
1663
+ account_url?: string;
1664
+
1665
+ api_key?: string;
1666
+
1667
+ api_url?: string;
1668
+
1669
+ base_url?: string;
1670
+
1671
+ basic_encoded?: string;
1672
+
1673
+ bearer_token?: string;
1674
+
1675
+ borneo_dashboard_url?: string;
1676
+
1677
+ COMPANYDOMAIN?: string;
1678
+
1679
+ dc?: string;
1680
+
1681
+ domain?: string;
1682
+
1683
+ extension?: string;
1684
+
1685
+ form_api_base_url?: string;
1686
+
1687
+ generic_api_key?: string;
1688
+
1689
+ instanceEndpoint?: string;
1690
+
1691
+ instanceName?: string;
1692
+
1693
+ proxy_password?: string;
1694
+
1695
+ proxy_username?: string;
1696
+
1697
+ region?: string;
1698
+
1699
+ server_location?: string;
1700
+
1701
+ shop?: string;
1702
+
1703
+ site_name?: string;
1704
+
1705
+ subdomain?: string;
1706
+
1707
+ version?: string;
1708
+
1709
+ your_server?: string;
1710
+
1711
+ 'your-domain'?: string;
1712
+
1713
+ [k: string]: unknown;
1714
+ }
1715
+ }
1716
+
1717
+ export interface UnionMember3 {
1718
+ authScheme: 'BASIC_WITH_JWT';
1719
+
1720
+ toolkitSlug: string;
1721
+
1722
+ val: UnionMember3.Val;
1723
+ }
1724
+
1725
+ export namespace UnionMember3 {
1726
+ export interface Val {
1727
+ password: string;
1728
+
1729
+ username: string;
1730
+
1731
+ account_id?: string;
1732
+
1733
+ account_url?: string;
1734
+
1735
+ api_url?: string;
1736
+
1737
+ base_url?: string;
1738
+
1739
+ borneo_dashboard_url?: string;
1740
+
1741
+ COMPANYDOMAIN?: string;
1742
+
1743
+ dc?: string;
1744
+
1745
+ domain?: string;
1746
+
1747
+ extension?: string;
1748
+
1749
+ form_api_base_url?: string;
1750
+
1751
+ instanceEndpoint?: string;
1752
+
1753
+ instanceName?: string;
1754
+
1755
+ proxy_password?: string;
1756
+
1757
+ proxy_username?: string;
1758
+
1759
+ region?: string;
1760
+
1761
+ server_location?: string;
1762
+
1763
+ shop?: string;
1764
+
1765
+ site_name?: string;
1766
+
1767
+ subdomain?: string;
1768
+
1769
+ version?: string;
1770
+
1771
+ your_server?: string;
1772
+
1773
+ 'your-domain'?: string;
1774
+
1775
+ [k: string]: unknown;
1776
+ }
1777
+ }
1778
+
1779
+ export interface UnionMember4 {
1780
+ authScheme: 'BASIC';
1781
+
1782
+ toolkitSlug: string;
1783
+
1784
+ val: UnionMember4.Val;
1785
+ }
1786
+
1787
+ export namespace UnionMember4 {
1788
+ export interface Val {
1789
+ username: string;
1790
+
1791
+ account_id?: string;
1792
+
1793
+ account_url?: string;
1794
+
1795
+ api_url?: string;
1796
+
1797
+ base_url?: string;
1798
+
1799
+ borneo_dashboard_url?: string;
1800
+
1801
+ COMPANYDOMAIN?: string;
1802
+
1803
+ dc?: string;
1804
+
1805
+ domain?: string;
1806
+
1807
+ extension?: string;
1808
+
1809
+ form_api_base_url?: string;
1810
+
1811
+ instanceEndpoint?: string;
1812
+
1813
+ instanceName?: string;
1814
+
1815
+ password?: string;
1816
+
1817
+ proxy_password?: string;
1818
+
1819
+ proxy_username?: string;
1820
+
1821
+ region?: string;
1822
+
1823
+ server_location?: string;
1824
+
1825
+ shop?: string;
1826
+
1827
+ site_name?: string;
1828
+
1829
+ subdomain?: string;
1830
+
1831
+ version?: string;
1832
+
1833
+ your_server?: string;
1834
+
1835
+ 'your-domain'?: string;
1836
+
1837
+ [k: string]: unknown;
1838
+ }
1839
+ }
1840
+
1841
+ export interface UnionMember5 {
1842
+ authScheme: 'BEARER_TOKEN';
1843
+
1844
+ toolkitSlug: string;
1845
+
1846
+ val: UnionMember5.Val;
1847
+ }
1848
+
1849
+ export namespace UnionMember5 {
1850
+ export interface Val {
1851
+ token: string;
1852
+
1853
+ account_id?: string;
1854
+
1855
+ account_url?: string;
1856
+
1857
+ api_url?: string;
1858
+
1859
+ base_url?: string;
1860
+
1861
+ borneo_dashboard_url?: string;
1862
+
1863
+ COMPANYDOMAIN?: string;
1864
+
1865
+ dc?: string;
1866
+
1867
+ domain?: string;
1868
+
1869
+ extension?: string;
1870
+
1871
+ form_api_base_url?: string;
1872
+
1873
+ instanceEndpoint?: string;
1874
+
1875
+ instanceName?: string;
1876
+
1877
+ proxy_password?: string;
1878
+
1879
+ proxy_username?: string;
1880
+
1881
+ region?: string;
1882
+
1883
+ server_location?: string;
1884
+
1885
+ shop?: string;
1886
+
1887
+ site_name?: string;
1888
+
1889
+ subdomain?: string;
1890
+
1891
+ version?: string;
1892
+
1893
+ your_server?: string;
1894
+
1895
+ 'your-domain'?: string;
1896
+
1897
+ [k: string]: unknown;
1898
+ }
1899
+ }
1900
+
1901
+ export interface UnionMember6 {
1902
+ authScheme: 'OAUTH1';
1903
+
1904
+ toolkitSlug: string;
1905
+
1906
+ val: UnionMember6.Val;
1907
+ }
1908
+
1909
+ export namespace UnionMember6 {
1910
+ export interface Val {
1911
+ oauth_token: string;
1912
+
1913
+ oauth_token_secret: string;
1914
+
1915
+ account_id?: string;
1916
+
1917
+ account_url?: string;
1918
+
1919
+ api_url?: string;
1920
+
1921
+ base_url?: string;
1922
+
1923
+ borneo_dashboard_url?: string;
1924
+
1925
+ callback_url?: string;
1926
+
1927
+ COMPANYDOMAIN?: string;
1928
+
1929
+ consumer_key?: string;
1930
+
1931
+ dc?: string;
1932
+
1933
+ domain?: string;
1934
+
1935
+ extension?: string;
1936
+
1937
+ form_api_base_url?: string;
1938
+
1939
+ instanceEndpoint?: string;
1940
+
1941
+ instanceName?: string;
1942
+
1943
+ oauth_verifier?: string;
1944
+
1945
+ proxy_password?: string;
1946
+
1947
+ proxy_username?: string;
1948
+
1949
+ redirectUrl?: string;
1950
+
1951
+ region?: string;
1952
+
1953
+ server_location?: string;
1954
+
1955
+ shop?: string;
1956
+
1957
+ site_name?: string;
1958
+
1959
+ subdomain?: string;
1960
+
1961
+ version?: string;
1962
+
1963
+ your_server?: string;
1964
+
1965
+ 'your-domain'?: string;
1966
+
1967
+ [k: string]: unknown;
1968
+ }
1969
+ }
1970
+
1971
+ export interface UnionMember7 {
1972
+ authScheme: 'NO_AUTH';
1973
+
1974
+ toolkitSlug: string;
1975
+
1976
+ val: UnionMember7.Val;
1977
+ }
1978
+
1979
+ export namespace UnionMember7 {
1980
+ export interface Val {
1981
+ account_id?: string;
1982
+
1983
+ account_url?: string;
1984
+
1985
+ api_url?: string;
1986
+
1987
+ base_url?: string;
1988
+
1989
+ borneo_dashboard_url?: string;
1990
+
1991
+ COMPANYDOMAIN?: string;
1992
+
1993
+ dc?: string;
1994
+
1995
+ domain?: string;
1996
+
1997
+ extension?: string;
1998
+
1999
+ form_api_base_url?: string;
2000
+
2001
+ instanceEndpoint?: string;
2002
+
2003
+ instanceName?: string;
2004
+
2005
+ proxy_password?: string;
2006
+
2007
+ proxy_username?: string;
2008
+
2009
+ region?: string;
2010
+
2011
+ server_location?: string;
2012
+
2013
+ shop?: string;
2014
+
2015
+ site_name?: string;
2016
+
2017
+ subdomain?: string;
2018
+
2019
+ version?: string;
2020
+
2021
+ your_server?: string;
2022
+
2023
+ 'your-domain'?: string;
2024
+
2025
+ [k: string]: unknown;
2026
+ }
2027
+ }
2028
+
2029
+ export interface UnionMember8 {
2030
+ authScheme: 'SERVICE_ACCOUNT';
2031
+
2032
+ toolkitSlug: string;
2033
+
2034
+ val: UnionMember8.Val;
2035
+ }
2036
+
2037
+ export namespace UnionMember8 {
2038
+ export interface Val {
2039
+ application_id: string;
2040
+
2041
+ installation_id: string;
2042
+
2043
+ private_key: string;
2044
+
2045
+ account_id?: string;
2046
+
2047
+ account_url?: string;
2048
+
2049
+ api_url?: string;
2050
+
2051
+ base_url?: string;
2052
+
2053
+ borneo_dashboard_url?: string;
2054
+
2055
+ COMPANYDOMAIN?: string;
2056
+
2057
+ dc?: string;
2058
+
2059
+ domain?: string;
2060
+
2061
+ extension?: string;
2062
+
2063
+ form_api_base_url?: string;
2064
+
2065
+ instanceEndpoint?: string;
2066
+
2067
+ instanceName?: string;
2068
+
2069
+ proxy_password?: string;
2070
+
2071
+ proxy_username?: string;
2072
+
2073
+ region?: string;
2074
+
2075
+ server_location?: string;
2076
+
2077
+ shop?: string;
2078
+
2079
+ site_name?: string;
2080
+
2081
+ subdomain?: string;
2082
+
2083
+ version?: string;
2084
+
2085
+ your_server?: string;
2086
+
2087
+ 'your-domain'?: string;
2088
+
2089
+ [k: string]: unknown;
2090
+ }
2091
+ }
2092
+
2093
+ export interface UnionMember9 {
2094
+ authScheme: 'GOOGLE_SERVICE_ACCOUNT';
2095
+
2096
+ toolkitSlug: string;
2097
+
2098
+ val: UnionMember9.Val;
2099
+ }
2100
+
2101
+ export namespace UnionMember9 {
2102
+ export interface Val {
2103
+ credentials_json: string;
2104
+
2105
+ account_id?: string;
2106
+
2107
+ account_url?: string;
2108
+
2109
+ api_url?: string;
2110
+
2111
+ base_url?: string;
2112
+
2113
+ borneo_dashboard_url?: string;
2114
+
2115
+ COMPANYDOMAIN?: string;
2116
+
2117
+ dc?: string;
2118
+
2119
+ domain?: string;
2120
+
2121
+ extension?: string;
2122
+
2123
+ form_api_base_url?: string;
2124
+
2125
+ instanceEndpoint?: string;
2126
+
2127
+ instanceName?: string;
2128
+
2129
+ proxy_password?: string;
2130
+
2131
+ proxy_username?: string;
2132
+
2133
+ region?: string;
2134
+
2135
+ server_location?: string;
2136
+
2137
+ shop?: string;
2138
+
2139
+ site_name?: string;
2140
+
2141
+ subdomain?: string;
2142
+
2143
+ version?: string;
2144
+
2145
+ your_server?: string;
2146
+
2147
+ 'your-domain'?: string;
2148
+
2149
+ [k: string]: unknown;
2150
+ }
2151
+ }
2152
+
2153
+ export interface Parameter {
2154
+ /**
2155
+ * Parameter name
2156
+ */
2157
+ name: string;
2158
+
2159
+ /**
2160
+ * Parameter type (header or query)
2161
+ */
2162
+ type: 'header' | 'query';
2163
+
2164
+ /**
2165
+ * Parameter value
2166
+ */
248
2167
  value: string;
249
2168
  }
250
2169
  }
@@ -257,6 +2176,7 @@ export declare namespace Tools {
257
2176
  type ToolGetInputResponse as ToolGetInputResponse,
258
2177
  type ToolProxyResponse as ToolProxyResponse,
259
2178
  type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse,
2179
+ type ToolRetrieveParams as ToolRetrieveParams,
260
2180
  type ToolListParams as ToolListParams,
261
2181
  type ToolExecuteParams as ToolExecuteParams,
262
2182
  type ToolGetInputParams as ToolGetInputParams,