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

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 (721) hide show
  1. package/CHANGELOG.md +837 -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 +85 -40
  7. package/client.d.mts.map +1 -1
  8. package/client.d.ts +85 -40
  9. package/client.d.ts.map +1 -1
  10. package/client.js +151 -105
  11. package/client.js.map +1 -1
  12. package/client.mjs +133 -64
  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/query.d.mts +2 -0
  163. package/internal/utils/query.d.mts.map +1 -0
  164. package/internal/utils/query.d.ts +2 -0
  165. package/internal/utils/query.d.ts.map +1 -0
  166. package/internal/utils/query.js +10 -0
  167. package/internal/utils/query.js.map +1 -0
  168. package/internal/utils/query.mjs +6 -0
  169. package/internal/utils/query.mjs.map +1 -0
  170. package/internal/utils/sleep.d.mts.map +1 -1
  171. package/internal/utils/sleep.d.ts.map +1 -1
  172. package/internal/utils/uuid.d.mts +1 -1
  173. package/internal/utils/uuid.d.mts.map +1 -1
  174. package/internal/utils/uuid.d.ts +1 -1
  175. package/internal/utils/uuid.d.ts.map +1 -1
  176. package/internal/utils/uuid.js +1 -2
  177. package/internal/utils/uuid.js.map +1 -1
  178. package/internal/utils/uuid.mjs +1 -2
  179. package/internal/utils/uuid.mjs.map +1 -1
  180. package/internal/utils/values.d.mts +2 -0
  181. package/internal/utils/values.d.mts.map +1 -1
  182. package/internal/utils/values.d.ts +2 -0
  183. package/internal/utils/values.d.ts.map +1 -1
  184. package/internal/utils/values.js +11 -8
  185. package/internal/utils/values.js.map +1 -1
  186. package/internal/utils/values.mjs +5 -3
  187. package/internal/utils/values.mjs.map +1 -1
  188. package/internal/utils.d.mts +1 -0
  189. package/internal/utils.d.ts +1 -0
  190. package/internal/utils.js +8 -20
  191. package/internal/utils.js.map +1 -1
  192. package/internal/utils.mjs +1 -0
  193. package/package.json +6 -14
  194. package/resource.js +2 -15
  195. package/resource.js.map +1 -1
  196. package/resources/auth-configs.d.mts +494 -54
  197. package/resources/auth-configs.d.mts.map +1 -1
  198. package/resources/auth-configs.d.ts +494 -54
  199. package/resources/auth-configs.d.ts.map +1 -1
  200. package/resources/auth-configs.js +73 -0
  201. package/resources/auth-configs.js.map +1 -1
  202. package/resources/auth-configs.mjs +73 -0
  203. package/resources/auth-configs.mjs.map +1 -1
  204. package/resources/cli/cli.d.mts +120 -0
  205. package/resources/cli/cli.d.mts.map +1 -0
  206. package/resources/cli/cli.d.ts +120 -0
  207. package/resources/cli/cli.d.ts.map +1 -0
  208. package/resources/cli/cli.js +36 -0
  209. package/resources/cli/cli.js.map +1 -0
  210. package/resources/cli/cli.mjs +31 -0
  211. package/resources/cli/cli.mjs.map +1 -0
  212. package/resources/cli/index.d.mts +3 -0
  213. package/resources/cli/index.d.mts.map +1 -0
  214. package/resources/cli/index.d.ts +3 -0
  215. package/resources/cli/index.d.ts.map +1 -0
  216. package/resources/cli/index.js +9 -0
  217. package/resources/cli/index.js.map +1 -0
  218. package/resources/cli/index.mjs +4 -0
  219. package/resources/cli/index.mjs.map +1 -0
  220. package/resources/cli/realtime.d.mts +56 -0
  221. package/resources/cli/realtime.d.mts.map +1 -0
  222. package/resources/cli/realtime.d.ts +56 -0
  223. package/resources/cli/realtime.d.ts.map +1 -0
  224. package/resources/cli/realtime.js +25 -0
  225. package/resources/cli/realtime.js.map +1 -0
  226. package/resources/cli/realtime.mjs +21 -0
  227. package/resources/cli/realtime.mjs.map +1 -0
  228. package/resources/cli.d.mts +1 -123
  229. package/resources/cli.d.mts.map +1 -1
  230. package/resources/cli.d.ts +1 -123
  231. package/resources/cli.d.ts.map +1 -1
  232. package/resources/cli.js +2 -14
  233. package/resources/cli.js.map +1 -1
  234. package/resources/cli.mjs +1 -12
  235. package/resources/cli.mjs.map +1 -1
  236. package/resources/connected-accounts.d.mts +8744 -235
  237. package/resources/connected-accounts.d.mts.map +1 -1
  238. package/resources/connected-accounts.d.ts +8744 -235
  239. package/resources/connected-accounts.d.ts.map +1 -1
  240. package/resources/connected-accounts.js +87 -2
  241. package/resources/connected-accounts.js.map +1 -1
  242. package/resources/connected-accounts.mjs +87 -2
  243. package/resources/connected-accounts.mjs.map +1 -1
  244. package/resources/files.d.mts +152 -0
  245. package/resources/files.d.mts.map +1 -0
  246. package/resources/files.d.ts +152 -0
  247. package/resources/files.d.ts.map +1 -0
  248. package/resources/files.js +42 -0
  249. package/resources/files.js.map +1 -0
  250. package/resources/files.mjs +38 -0
  251. package/resources/files.mjs.map +1 -0
  252. package/resources/index.d.mts +13 -11
  253. package/resources/index.d.mts.map +1 -1
  254. package/resources/index.d.ts +13 -11
  255. package/resources/index.d.ts.map +1 -1
  256. package/resources/index.js +14 -10
  257. package/resources/index.js.map +1 -1
  258. package/resources/index.mjs +7 -5
  259. package/resources/index.mjs.map +1 -1
  260. package/resources/link.d.mts +2020 -0
  261. package/resources/link.d.mts.map +1 -0
  262. package/resources/link.d.ts +2020 -0
  263. package/resources/link.d.ts.map +1 -0
  264. package/resources/link.js +19 -0
  265. package/resources/link.js.map +1 -0
  266. package/resources/link.mjs +15 -0
  267. package/resources/link.mjs.map +1 -0
  268. package/resources/logs/index.d.mts +4 -0
  269. package/resources/logs/index.d.mts.map +1 -0
  270. package/resources/logs/index.d.ts +4 -0
  271. package/resources/logs/index.d.ts.map +1 -0
  272. package/resources/logs/index.js +11 -0
  273. package/resources/logs/index.js.map +1 -0
  274. package/resources/logs/index.mjs +5 -0
  275. package/resources/logs/index.mjs.map +1 -0
  276. package/resources/logs/logs.d.mts +14 -0
  277. package/resources/logs/logs.d.mts.map +1 -0
  278. package/resources/logs/logs.d.ts +14 -0
  279. package/resources/logs/logs.d.ts.map +1 -0
  280. package/resources/logs/logs.js +21 -0
  281. package/resources/logs/logs.js.map +1 -0
  282. package/resources/logs/logs.mjs +16 -0
  283. package/resources/logs/logs.mjs.map +1 -0
  284. package/resources/logs/tools.d.mts +173 -0
  285. package/resources/logs/tools.d.mts.map +1 -0
  286. package/resources/logs/tools.d.ts +173 -0
  287. package/resources/logs/tools.d.ts.map +1 -0
  288. package/resources/logs/tools.js +35 -0
  289. package/resources/logs/tools.js.map +1 -0
  290. package/resources/logs/tools.mjs +31 -0
  291. package/resources/logs/tools.mjs.map +1 -0
  292. package/resources/logs/triggers.d.mts +161 -0
  293. package/resources/logs/triggers.d.mts.map +1 -0
  294. package/resources/logs/triggers.d.ts +161 -0
  295. package/resources/logs/triggers.d.ts.map +1 -0
  296. package/resources/logs/triggers.js +36 -0
  297. package/resources/logs/triggers.js.map +1 -0
  298. package/resources/logs/triggers.mjs +32 -0
  299. package/resources/logs/triggers.mjs.map +1 -0
  300. package/resources/logs.d.mts +2 -0
  301. package/resources/logs.d.mts.map +1 -0
  302. package/resources/logs.d.ts +2 -0
  303. package/resources/logs.d.ts.map +1 -0
  304. package/resources/logs.js +6 -0
  305. package/resources/logs.js.map +1 -0
  306. package/resources/logs.mjs +3 -0
  307. package/resources/logs.mjs.map +1 -0
  308. package/resources/mcp/custom.d.mts +105 -0
  309. package/resources/mcp/custom.d.mts.map +1 -0
  310. package/resources/mcp/custom.d.ts +105 -0
  311. package/resources/mcp/custom.d.ts.map +1 -0
  312. package/resources/mcp/custom.js +29 -0
  313. package/resources/mcp/custom.js.map +1 -0
  314. package/resources/mcp/custom.mjs +25 -0
  315. package/resources/mcp/custom.mjs.map +1 -0
  316. package/resources/mcp/generate.d.mts +62 -0
  317. package/resources/mcp/generate.d.mts.map +1 -0
  318. package/resources/mcp/generate.d.ts +62 -0
  319. package/resources/mcp/generate.d.ts.map +1 -0
  320. package/resources/mcp/generate.js +29 -0
  321. package/resources/mcp/generate.js.map +1 -0
  322. package/resources/mcp/generate.mjs +25 -0
  323. package/resources/mcp/generate.mjs.map +1 -0
  324. package/resources/mcp/index.d.mts +3 -2
  325. package/resources/mcp/index.d.mts.map +1 -1
  326. package/resources/mcp/index.d.ts +3 -2
  327. package/resources/mcp/index.d.ts.map +1 -1
  328. package/resources/mcp/index.js +5 -3
  329. package/resources/mcp/index.js.map +1 -1
  330. package/resources/mcp/index.mjs +2 -1
  331. package/resources/mcp/index.mjs.map +1 -1
  332. package/resources/mcp/mcp.d.mts +450 -175
  333. package/resources/mcp/mcp.d.mts.map +1 -1
  334. package/resources/mcp/mcp.d.ts +450 -175
  335. package/resources/mcp/mcp.d.ts.map +1 -1
  336. package/resources/mcp/mcp.js +92 -39
  337. package/resources/mcp/mcp.js.map +1 -1
  338. package/resources/mcp/mcp.mjs +91 -16
  339. package/resources/mcp/mcp.mjs.map +1 -1
  340. package/resources/mcp.js +2 -15
  341. package/resources/mcp.js.map +1 -1
  342. package/resources/migration.d.mts +35 -0
  343. package/resources/migration.d.mts.map +1 -0
  344. package/resources/migration.d.ts +35 -0
  345. package/resources/migration.d.ts.map +1 -0
  346. package/resources/migration.js +20 -0
  347. package/resources/migration.js.map +1 -0
  348. package/resources/migration.mjs +16 -0
  349. package/resources/migration.mjs.map +1 -0
  350. package/resources/project/config.d.mts +71 -0
  351. package/resources/project/config.d.mts.map +1 -0
  352. package/resources/project/config.d.ts +71 -0
  353. package/resources/project/config.d.ts.map +1 -0
  354. package/resources/project/config.js +33 -0
  355. package/resources/project/config.js.map +1 -0
  356. package/resources/project/config.mjs +29 -0
  357. package/resources/project/config.mjs.map +1 -0
  358. package/resources/project/index.d.mts +3 -0
  359. package/resources/project/index.d.mts.map +1 -0
  360. package/resources/project/index.d.ts +3 -0
  361. package/resources/project/index.d.ts.map +1 -0
  362. package/resources/project/index.js +9 -0
  363. package/resources/project/index.js.map +1 -0
  364. package/resources/project/index.mjs +4 -0
  365. package/resources/project/index.mjs.map +1 -0
  366. package/resources/project/project.d.mts +10 -0
  367. package/resources/project/project.d.mts.map +1 -0
  368. package/resources/project/project.d.ts +10 -0
  369. package/resources/project/project.d.ts.map +1 -0
  370. package/resources/project/project.js +17 -0
  371. package/resources/project/project.js.map +1 -0
  372. package/resources/project/project.mjs +12 -0
  373. package/resources/project/project.mjs.map +1 -0
  374. package/resources/{org/project.d.mts.map → project.d.mts.map} +1 -1
  375. package/resources/{org/project.d.ts.map → project.d.ts.map} +1 -1
  376. package/resources/project.js +6 -0
  377. package/resources/project.js.map +1 -0
  378. package/resources/project.mjs.map +1 -0
  379. package/resources/tool-router/index.d.mts +3 -0
  380. package/resources/tool-router/index.d.mts.map +1 -0
  381. package/resources/tool-router/index.d.ts +3 -0
  382. package/resources/tool-router/index.d.ts.map +1 -0
  383. package/resources/tool-router/index.js +9 -0
  384. package/resources/tool-router/index.js.map +1 -0
  385. package/resources/tool-router/index.mjs +4 -0
  386. package/resources/tool-router/index.mjs.map +1 -0
  387. package/resources/tool-router/session/files.d.mts +205 -0
  388. package/resources/tool-router/session/files.d.mts.map +1 -0
  389. package/resources/tool-router/session/files.d.ts +205 -0
  390. package/resources/tool-router/session/files.d.ts.map +1 -0
  391. package/resources/tool-router/session/files.js +101 -0
  392. package/resources/tool-router/session/files.js.map +1 -0
  393. package/resources/tool-router/session/files.mjs +97 -0
  394. package/resources/tool-router/session/files.mjs.map +1 -0
  395. package/resources/tool-router/session/index.d.mts +3 -0
  396. package/resources/tool-router/session/index.d.mts.map +1 -0
  397. package/resources/tool-router/session/index.d.ts +3 -0
  398. package/resources/tool-router/session/index.d.ts.map +1 -0
  399. package/resources/tool-router/session/index.js +9 -0
  400. package/resources/tool-router/session/index.js.map +1 -0
  401. package/resources/tool-router/session/index.mjs +4 -0
  402. package/resources/tool-router/session/index.mjs.map +1 -0
  403. package/resources/tool-router/session/session.d.mts +1201 -0
  404. package/resources/tool-router/session/session.d.mts.map +1 -0
  405. package/resources/tool-router/session/session.d.ts +1201 -0
  406. package/resources/tool-router/session/session.d.ts.map +1 -0
  407. package/resources/tool-router/session/session.js +153 -0
  408. package/resources/tool-router/session/session.js.map +1 -0
  409. package/resources/tool-router/session/session.mjs +148 -0
  410. package/resources/tool-router/session/session.mjs.map +1 -0
  411. package/resources/tool-router/session.d.mts +2 -0
  412. package/resources/tool-router/session.d.mts.map +1 -0
  413. package/resources/tool-router/session.d.ts +2 -0
  414. package/resources/tool-router/session.d.ts.map +1 -0
  415. package/resources/tool-router/session.js +6 -0
  416. package/resources/tool-router/session.js.map +1 -0
  417. package/resources/tool-router/session.mjs +3 -0
  418. package/resources/tool-router/session.mjs.map +1 -0
  419. package/resources/tool-router/tool-router.d.mts +94 -0
  420. package/resources/tool-router/tool-router.d.mts.map +1 -0
  421. package/resources/tool-router/tool-router.d.ts +94 -0
  422. package/resources/tool-router/tool-router.d.ts.map +1 -0
  423. package/resources/tool-router/tool-router.js +49 -0
  424. package/resources/tool-router/tool-router.js.map +1 -0
  425. package/resources/tool-router/tool-router.mjs +44 -0
  426. package/resources/tool-router/tool-router.mjs.map +1 -0
  427. package/resources/tool-router.d.mts +2 -0
  428. package/resources/tool-router.d.mts.map +1 -0
  429. package/resources/tool-router.d.ts +2 -0
  430. package/resources/tool-router.d.ts.map +1 -0
  431. package/resources/tool-router.js +6 -0
  432. package/resources/tool-router.js.map +1 -0
  433. package/resources/tool-router.mjs +3 -0
  434. package/resources/tool-router.mjs.map +1 -0
  435. package/resources/toolkits.d.mts +301 -6
  436. package/resources/toolkits.d.mts.map +1 -1
  437. package/resources/toolkits.d.ts +301 -6
  438. package/resources/toolkits.d.ts.map +1 -1
  439. package/resources/toolkits.js +23 -2
  440. package/resources/toolkits.js.map +1 -1
  441. package/resources/toolkits.mjs +23 -2
  442. package/resources/toolkits.mjs.map +1 -1
  443. package/resources/tools.d.mts +1289 -41
  444. package/resources/tools.d.mts.map +1 -1
  445. package/resources/tools.d.ts +1289 -41
  446. package/resources/tools.d.ts.map +1 -1
  447. package/resources/tools.js +85 -6
  448. package/resources/tools.js.map +1 -1
  449. package/resources/tools.mjs +85 -6
  450. package/resources/tools.mjs.map +1 -1
  451. package/resources/trigger-instances/index.d.mts +2 -2
  452. package/resources/trigger-instances/index.d.mts.map +1 -1
  453. package/resources/trigger-instances/index.d.ts +2 -2
  454. package/resources/trigger-instances/index.d.ts.map +1 -1
  455. package/resources/trigger-instances/index.js +3 -3
  456. package/resources/trigger-instances/index.js.map +1 -1
  457. package/resources/trigger-instances/index.mjs +1 -1
  458. package/resources/trigger-instances/index.mjs.map +1 -1
  459. package/resources/trigger-instances/manage.d.mts +55 -0
  460. package/resources/trigger-instances/manage.d.mts.map +1 -0
  461. package/resources/trigger-instances/manage.d.ts +55 -0
  462. package/resources/trigger-instances/manage.d.ts.map +1 -0
  463. package/resources/trigger-instances/manage.js +45 -0
  464. package/resources/trigger-instances/manage.js.map +1 -0
  465. package/resources/trigger-instances/manage.mjs +41 -0
  466. package/resources/trigger-instances/manage.mjs.map +1 -0
  467. package/resources/trigger-instances/trigger-instances.d.mts +184 -42
  468. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  469. package/resources/trigger-instances/trigger-instances.d.ts +184 -42
  470. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  471. package/resources/trigger-instances/trigger-instances.js +34 -35
  472. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  473. package/resources/trigger-instances/trigger-instances.mjs +33 -12
  474. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  475. package/resources/trigger-instances.js +2 -15
  476. package/resources/trigger-instances.js.map +1 -1
  477. package/resources/triggers-types.d.mts +148 -12
  478. package/resources/triggers-types.d.mts.map +1 -1
  479. package/resources/triggers-types.d.ts +148 -12
  480. package/resources/triggers-types.d.ts.map +1 -1
  481. package/resources/triggers-types.js +17 -2
  482. package/resources/triggers-types.js.map +1 -1
  483. package/resources/triggers-types.mjs +17 -2
  484. package/resources/triggers-types.mjs.map +1 -1
  485. package/resources.js +2 -15
  486. package/resources.js.map +1 -1
  487. package/src/client.ts +223 -126
  488. package/src/core/resource.ts +1 -1
  489. package/src/internal/detect-platform.ts +3 -3
  490. package/src/internal/headers.ts +9 -8
  491. package/src/internal/parse.ts +6 -0
  492. package/src/internal/qs/formats.ts +2 -1
  493. package/src/internal/qs/stringify.ts +17 -20
  494. package/src/internal/qs/utils.ts +14 -14
  495. package/src/internal/request-options.ts +54 -0
  496. package/src/internal/shim-types.ts +26 -0
  497. package/src/internal/shims.ts +2 -2
  498. package/src/internal/to-file.ts +5 -3
  499. package/src/internal/types.ts +9 -6
  500. package/src/internal/uploads.ts +17 -5
  501. package/src/internal/utils/base64.ts +13 -10
  502. package/src/internal/utils/bytes.ts +32 -0
  503. package/src/internal/utils/log.ts +1 -1
  504. package/src/internal/utils/path.ts +33 -8
  505. package/src/internal/utils/query.ts +7 -0
  506. package/src/internal/utils/uuid.ts +1 -3
  507. package/src/internal/utils/values.ts +6 -3
  508. package/src/internal/utils.ts +1 -0
  509. package/src/resources/auth-configs.ts +559 -67
  510. package/src/resources/cli/cli.ts +163 -0
  511. package/src/resources/cli/index.ts +15 -0
  512. package/src/resources/cli/realtime.ts +75 -0
  513. package/src/resources/cli.ts +1 -164
  514. package/src/resources/connected-accounts.ts +16489 -459
  515. package/src/resources/files.ts +197 -0
  516. package/src/resources/index.ts +28 -27
  517. package/src/resources/link.ts +3820 -0
  518. package/src/resources/logs/index.ts +10 -0
  519. package/src/resources/logs/logs.ts +31 -0
  520. package/src/resources/{action-execution.ts → logs/tools.ts} +98 -103
  521. package/src/resources/logs/triggers.ts +241 -0
  522. package/src/resources/{org.ts → logs.ts} +1 -1
  523. package/src/resources/mcp/custom.ts +125 -0
  524. package/src/resources/mcp/generate.ts +74 -0
  525. package/src/resources/mcp/index.ts +3 -3
  526. package/src/resources/mcp/mcp.ts +487 -200
  527. package/src/resources/migration.ts +49 -0
  528. package/src/resources/project/config.ts +110 -0
  529. package/src/resources/project/index.ts +9 -0
  530. package/src/resources/project/project.ts +20 -0
  531. package/src/resources/tool-router/index.ts +25 -0
  532. package/src/resources/tool-router/session/files.ts +284 -0
  533. package/src/resources/tool-router/session/index.ts +31 -0
  534. package/src/resources/tool-router/session/session.ts +1465 -0
  535. package/src/resources/tool-router/session.ts +3 -0
  536. package/src/resources/tool-router/tool-router.ts +152 -0
  537. package/src/resources/tool-router.ts +3 -0
  538. package/src/resources/toolkits.ts +343 -8
  539. package/src/resources/tools.ts +1983 -60
  540. package/src/resources/trigger-instances/index.ts +5 -9
  541. package/src/resources/trigger-instances/manage.ts +75 -0
  542. package/src/resources/trigger-instances/trigger-instances.ts +197 -66
  543. package/src/resources/triggers-types.ts +152 -14
  544. package/src/version.ts +1 -1
  545. package/uploads.js +2 -15
  546. package/uploads.js.map +1 -1
  547. package/version.d.mts +1 -1
  548. package/version.d.mts.map +1 -1
  549. package/version.d.ts +1 -1
  550. package/version.d.ts.map +1 -1
  551. package/version.js +1 -1
  552. package/version.js.map +1 -1
  553. package/version.mjs +1 -1
  554. package/version.mjs.map +1 -1
  555. package/internal/shims/crypto.d.mts +0 -13
  556. package/internal/shims/crypto.d.mts.map +0 -1
  557. package/internal/shims/crypto.d.ts +0 -13
  558. package/internal/shims/crypto.d.ts.map +0 -1
  559. package/internal/shims/crypto.js +0 -13
  560. package/internal/shims/crypto.js.map +0 -1
  561. package/internal/shims/crypto.mjs +0 -9
  562. package/internal/shims/crypto.mjs.map +0 -1
  563. package/internal/shims/file.d.mts +0 -23
  564. package/internal/shims/file.d.mts.map +0 -1
  565. package/internal/shims/file.d.ts +0 -23
  566. package/internal/shims/file.d.ts.map +0 -1
  567. package/internal/shims/file.js +0 -16
  568. package/internal/shims/file.js.map +0 -1
  569. package/internal/shims/file.mjs +0 -12
  570. package/internal/shims/file.mjs.map +0 -1
  571. package/internal/shims/getBuiltinModule.d.mts +0 -11
  572. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  573. package/internal/shims/getBuiltinModule.d.ts +0 -11
  574. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  575. package/internal/shims/getBuiltinModule.js +0 -71
  576. package/internal/shims/getBuiltinModule.js.map +0 -1
  577. package/internal/shims/getBuiltinModule.mjs +0 -67
  578. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  579. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  580. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  581. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  582. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  583. package/internal/shims/nullGetBuiltinModule.js +0 -5
  584. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  585. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  586. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  587. package/resources/action-execution.d.mts +0 -155
  588. package/resources/action-execution.d.mts.map +0 -1
  589. package/resources/action-execution.d.ts +0 -155
  590. package/resources/action-execution.d.ts.map +0 -1
  591. package/resources/action-execution.js +0 -19
  592. package/resources/action-execution.js.map +0 -1
  593. package/resources/action-execution.mjs +0 -15
  594. package/resources/action-execution.mjs.map +0 -1
  595. package/resources/mcp/command.d.mts +0 -34
  596. package/resources/mcp/command.d.mts.map +0 -1
  597. package/resources/mcp/command.d.ts +0 -34
  598. package/resources/mcp/command.d.ts.map +0 -1
  599. package/resources/mcp/command.js +0 -12
  600. package/resources/mcp/command.js.map +0 -1
  601. package/resources/mcp/command.mjs +0 -8
  602. package/resources/mcp/command.mjs.map +0 -1
  603. package/resources/org/api-key.d.mts +0 -17
  604. package/resources/org/api-key.d.mts.map +0 -1
  605. package/resources/org/api-key.d.ts +0 -17
  606. package/resources/org/api-key.d.ts.map +0 -1
  607. package/resources/org/api-key.js +0 -15
  608. package/resources/org/api-key.js.map +0 -1
  609. package/resources/org/api-key.mjs +0 -11
  610. package/resources/org/api-key.mjs.map +0 -1
  611. package/resources/org/index.d.mts +0 -4
  612. package/resources/org/index.d.mts.map +0 -1
  613. package/resources/org/index.d.ts +0 -4
  614. package/resources/org/index.d.ts.map +0 -1
  615. package/resources/org/index.js +0 -11
  616. package/resources/org/index.js.map +0 -1
  617. package/resources/org/index.mjs +0 -5
  618. package/resources/org/index.mjs.map +0 -1
  619. package/resources/org/org.d.mts +0 -14
  620. package/resources/org/org.d.mts.map +0 -1
  621. package/resources/org/org.d.ts +0 -14
  622. package/resources/org/org.d.ts.map +0 -1
  623. package/resources/org/org.js +0 -43
  624. package/resources/org/org.js.map +0 -1
  625. package/resources/org/org.mjs +0 -16
  626. package/resources/org/org.mjs.map +0 -1
  627. package/resources/org/project/api-keys.d.mts +0 -109
  628. package/resources/org/project/api-keys.d.mts.map +0 -1
  629. package/resources/org/project/api-keys.d.ts +0 -109
  630. package/resources/org/project/api-keys.d.ts.map +0 -1
  631. package/resources/org/project/api-keys.js +0 -23
  632. package/resources/org/project/api-keys.js.map +0 -1
  633. package/resources/org/project/api-keys.mjs +0 -19
  634. package/resources/org/project/api-keys.mjs.map +0 -1
  635. package/resources/org/project/index.d.mts +0 -5
  636. package/resources/org/project/index.d.mts.map +0 -1
  637. package/resources/org/project/index.d.ts +0 -5
  638. package/resources/org/project/index.d.ts.map +0 -1
  639. package/resources/org/project/index.js +0 -13
  640. package/resources/org/project/index.js.map +0 -1
  641. package/resources/org/project/index.mjs +0 -6
  642. package/resources/org/project/index.mjs.map +0 -1
  643. package/resources/org/project/project.d.mts +0 -90
  644. package/resources/org/project/project.d.mts.map +0 -1
  645. package/resources/org/project/project.d.ts +0 -90
  646. package/resources/org/project/project.d.ts.map +0 -1
  647. package/resources/org/project/project.js +0 -60
  648. package/resources/org/project/project.js.map +0 -1
  649. package/resources/org/project/project.mjs +0 -33
  650. package/resources/org/project/project.mjs.map +0 -1
  651. package/resources/org/project/trigger.d.mts +0 -51
  652. package/resources/org/project/trigger.d.mts.map +0 -1
  653. package/resources/org/project/trigger.d.ts +0 -51
  654. package/resources/org/project/trigger.d.ts.map +0 -1
  655. package/resources/org/project/trigger.js +0 -16
  656. package/resources/org/project/trigger.js.map +0 -1
  657. package/resources/org/project/trigger.mjs +0 -12
  658. package/resources/org/project/trigger.mjs.map +0 -1
  659. package/resources/org/project/webhook.d.mts +0 -92
  660. package/resources/org/project/webhook.d.mts.map +0 -1
  661. package/resources/org/project/webhook.d.ts +0 -92
  662. package/resources/org/project/webhook.d.ts.map +0 -1
  663. package/resources/org/project/webhook.js +0 -24
  664. package/resources/org/project/webhook.js.map +0 -1
  665. package/resources/org/project/webhook.mjs +0 -20
  666. package/resources/org/project/webhook.mjs.map +0 -1
  667. package/resources/org/project.js +0 -19
  668. package/resources/org/project.js.map +0 -1
  669. package/resources/org/project.mjs.map +0 -1
  670. package/resources/org.d.mts +0 -2
  671. package/resources/org.d.mts.map +0 -1
  672. package/resources/org.d.ts +0 -2
  673. package/resources/org.d.ts.map +0 -1
  674. package/resources/org.js +0 -19
  675. package/resources/org.js.map +0 -1
  676. package/resources/org.mjs.map +0 -1
  677. package/resources/team-members.d.mts +0 -57
  678. package/resources/team-members.d.mts.map +0 -1
  679. package/resources/team-members.d.ts +0 -57
  680. package/resources/team-members.d.ts.map +0 -1
  681. package/resources/team-members.js +0 -22
  682. package/resources/team-members.js.map +0 -1
  683. package/resources/team-members.mjs +0 -18
  684. package/resources/team-members.mjs.map +0 -1
  685. package/resources/trigger-instances/handle.d.mts +0 -25
  686. package/resources/trigger-instances/handle.d.mts.map +0 -1
  687. package/resources/trigger-instances/handle.d.ts +0 -25
  688. package/resources/trigger-instances/handle.d.ts.map +0 -1
  689. package/resources/trigger-instances/handle.js +0 -18
  690. package/resources/trigger-instances/handle.js.map +0 -1
  691. package/resources/trigger-instances/handle.mjs +0 -14
  692. package/resources/trigger-instances/handle.mjs.map +0 -1
  693. package/resources/trigger.d.mts +0 -73
  694. package/resources/trigger.d.mts.map +0 -1
  695. package/resources/trigger.d.ts +0 -73
  696. package/resources/trigger.d.ts.map +0 -1
  697. package/resources/trigger.js +0 -12
  698. package/resources/trigger.js.map +0 -1
  699. package/resources/trigger.mjs +0 -8
  700. package/resources/trigger.mjs.map +0 -1
  701. package/src/internal/shim-types.d.ts +0 -28
  702. package/src/internal/shims/crypto.ts +0 -18
  703. package/src/internal/shims/file.ts +0 -32
  704. package/src/internal/shims/getBuiltinModule.ts +0 -66
  705. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
  706. package/src/resources/mcp/command.ts +0 -47
  707. package/src/resources/org/api-key.ts +0 -30
  708. package/src/resources/org/index.ts +0 -12
  709. package/src/resources/org/org.ts +0 -39
  710. package/src/resources/org/project/api-keys.ts +0 -156
  711. package/src/resources/org/project/index.ts +0 -35
  712. package/src/resources/org/project/project.ts +0 -206
  713. package/src/resources/org/project/trigger.ts +0 -95
  714. package/src/resources/org/project/webhook.ts +0 -131
  715. package/src/resources/team-members.ts +0 -111
  716. package/src/resources/trigger-instances/handle.ts +0 -45
  717. package/src/resources/trigger.ts +0 -108
  718. /package/resources/{org/project.d.mts → project.d.mts} +0 -0
  719. /package/resources/{org/project.d.ts → project.d.ts} +0 -0
  720. /package/resources/{org/project.mjs → project.mjs} +0 -0
  721. /package/src/resources/{org/project.ts → project.ts} +0 -0
@@ -1,164 +1,1412 @@
1
1
  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
+ /**
5
+ * Tool execution endpoints
6
+ */
4
7
  export declare class Tools extends APIResource {
5
- retrieve(toolSlug: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
8
+ /**
9
+ * Retrieve detailed information about a specific tool using its slug identifier.
10
+ * This endpoint returns full metadata about a tool including input/output
11
+ * parameters, versions, and toolkit information.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const tool = await client.tools.retrieve('tool_slug');
16
+ * ```
17
+ */
18
+ retrieve(toolSlug: string, query?: ToolRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
19
+ /**
20
+ * Retrieve a paginated list of available tools with comprehensive filtering,
21
+ * sorting and search capabilities. Use query parameters to narrow down results by
22
+ * toolkit, tags, or search terms.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const tools = await client.tools.list();
27
+ * ```
28
+ */
6
29
  list(query?: ToolListParams | null | undefined, options?: RequestOptions): APIPromise<ToolListResponse>;
7
- execute(action: string, body?: ToolExecuteParams | null | undefined, options?: RequestOptions): APIPromise<ToolExecuteResponse>;
8
- getInput(actionName: string, body: ToolGetInputParams, options?: RequestOptions): APIPromise<ToolGetInputResponse>;
30
+ /**
31
+ * Execute a specific tool operation with provided arguments and authentication.
32
+ * This is the primary endpoint for integrating with third-party services and
33
+ * executing tools. You can provide structured arguments or use natural language
34
+ * processing by providing a text description of what you want to accomplish.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const response = await client.tools.execute('tool_slug');
39
+ * ```
40
+ */
41
+ execute(toolSlug: string, params?: ToolExecuteParams | null | undefined, options?: RequestOptions): APIPromise<ToolExecuteResponse>;
42
+ /**
43
+ * Uses AI to translate a natural language description into structured arguments
44
+ * for a specific tool. This endpoint is useful when you want to let users describe
45
+ * what they want to do in plain language instead of providing structured
46
+ * parameters.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const response = await client.tools.getInput('tool_slug', {
51
+ * text: 'I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production',
52
+ * });
53
+ * ```
54
+ */
55
+ getInput(toolSlug: string, body: ToolGetInputParams, options?: RequestOptions): APIPromise<ToolGetInputResponse>;
56
+ /**
57
+ * Proxy an HTTP request to a third-party API using connected account credentials.
58
+ * This endpoint allows making authenticated API calls to external services while
59
+ * abstracting away authentication details.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const response = await client.tools.proxy({
64
+ * endpoint: '/api/v1/resources',
65
+ * method: 'GET',
66
+ * });
67
+ * ```
68
+ */
9
69
  proxy(body: ToolProxyParams, options?: RequestOptions): APIPromise<ToolProxyResponse>;
10
- retrieveEnum(options?: RequestOptions): APIPromise<string>;
70
+ /**
71
+ * Retrieve a list of all available tool enumeration values (tool slugs) from
72
+ * latest version of each toolkit. This endpoint returns a comma-separated string
73
+ * of tool slugs that can be used in other API calls.
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * const response = await client.tools.retrieveEnum();
78
+ * ```
79
+ */
80
+ retrieveEnum(options?: RequestOptions): APIPromise<ToolRetrieveEnumResponse>;
11
81
  }
12
82
  export interface ToolRetrieveResponse {
83
+ /**
84
+ * List of all available versions for this tool
85
+ */
13
86
  available_versions: Array<string>;
87
+ deprecated: ToolRetrieveResponse.Deprecated;
88
+ /**
89
+ * Detailed explanation of the tool's functionality and purpose
90
+ */
14
91
  description: string;
15
- input_parameters: Record<string, unknown>;
92
+ /**
93
+ * Schema definition of required input parameters for the tool
94
+ */
95
+ input_parameters: {
96
+ [key: string]: unknown;
97
+ };
98
+ /**
99
+ * Indicates if this tool is deprecated and may be removed in the future
100
+ */
101
+ is_deprecated: boolean;
102
+ /**
103
+ * Human-readable display name of the tool
104
+ */
16
105
  name: string;
17
- output_parameters: Record<string, unknown>;
106
+ /**
107
+ * Indicates if the tool can be used without authentication
108
+ */
109
+ no_auth: boolean;
110
+ /**
111
+ * Schema definition of return values from the tool
112
+ */
113
+ output_parameters: {
114
+ [key: string]: unknown;
115
+ };
116
+ /**
117
+ * List of scopes associated with the tool
118
+ */
119
+ scopes: Array<string>;
120
+ /**
121
+ * Unique identifier for the tool
122
+ */
18
123
  slug: string;
124
+ /**
125
+ * List of tags associated with the tool for categorization and filtering
126
+ */
19
127
  tags: Array<string>;
20
128
  toolkit: ToolRetrieveResponse.Toolkit;
129
+ /**
130
+ * Current version of the tool
131
+ */
21
132
  version: string;
133
+ /**
134
+ * Human-friendly description of the tool, if available
135
+ */
136
+ human_description?: string;
22
137
  }
23
138
  export declare namespace ToolRetrieveResponse {
139
+ interface Deprecated {
140
+ /**
141
+ * List of all available versions for this tool
142
+ */
143
+ available_versions: Array<string>;
144
+ /**
145
+ * The display name of the tool
146
+ */
147
+ displayName: string;
148
+ /**
149
+ * Indicates if this tool is deprecated and may be removed in the future
150
+ */
151
+ is_deprecated: boolean;
152
+ toolkit: Deprecated.Toolkit;
153
+ /**
154
+ * Current version identifier of the tool
155
+ */
156
+ version: string;
157
+ }
158
+ namespace Deprecated {
159
+ interface Toolkit {
160
+ /**
161
+ * URL to the toolkit logo image
162
+ */
163
+ logo: string;
164
+ }
165
+ }
24
166
  interface Toolkit {
167
+ /**
168
+ * URL to the toolkit logo image
169
+ */
25
170
  logo: string;
171
+ /**
172
+ * Human-readable name of the parent toolkit
173
+ */
26
174
  name: string;
175
+ /**
176
+ * Unique identifier of the parent toolkit
177
+ */
27
178
  slug: string;
28
179
  }
29
180
  }
30
181
  export interface ToolListResponse {
182
+ current_page: number;
31
183
  items: Array<ToolListResponse.Item>;
32
- next_cursor: string | null;
184
+ total_items: number;
33
185
  total_pages: number;
186
+ next_cursor?: string | null;
34
187
  }
35
188
  export declare namespace ToolListResponse {
36
189
  interface Item {
37
190
  /**
38
- * The description of the tool
191
+ * List of all available versions for this tool
192
+ */
193
+ available_versions: Array<string>;
194
+ deprecated: Item.Deprecated;
195
+ /**
196
+ * Detailed explanation of the tool's functionality and purpose
39
197
  */
40
198
  description: string;
41
199
  /**
42
- * The input parameters of the tool
200
+ * Schema definition of required input parameters for the tool
43
201
  */
44
- input_parameters: Record<string, unknown>;
202
+ input_parameters: {
203
+ [key: string]: unknown;
204
+ };
45
205
  /**
46
- * The name of the tool
206
+ * Indicates if this tool is deprecated and may be removed in the future
207
+ */
208
+ is_deprecated: boolean;
209
+ /**
210
+ * Human-readable display name of the tool
47
211
  */
48
212
  name: string;
49
213
  /**
50
- * The output parameters of the tool
214
+ * Indicates if the tool can be used without authentication
51
215
  */
52
- output_parameters: Record<string, unknown>;
216
+ no_auth: boolean;
53
217
  /**
54
- * The slug of the tool
218
+ * Schema definition of return values from the tool
219
+ */
220
+ output_parameters: {
221
+ [key: string]: unknown;
222
+ };
223
+ /**
224
+ * List of scopes associated with the tool
225
+ */
226
+ scopes: Array<string>;
227
+ /**
228
+ * Unique identifier for the tool
55
229
  */
56
230
  slug: string;
57
231
  /**
58
- * The tags of the tool
232
+ * List of tags associated with the tool for categorization and filtering
59
233
  */
60
234
  tags: Array<string>;
61
235
  toolkit: Item.Toolkit;
236
+ /**
237
+ * Current version of the tool
238
+ */
239
+ version: string;
240
+ /**
241
+ * Human-friendly description of the tool, if available
242
+ */
243
+ human_description?: string;
62
244
  }
63
245
  namespace Item {
246
+ interface Deprecated {
247
+ /**
248
+ * List of all available versions for this tool
249
+ */
250
+ available_versions: Array<string>;
251
+ /**
252
+ * The display name of the tool
253
+ */
254
+ displayName: string;
255
+ /**
256
+ * Indicates if this tool is deprecated and may be removed in the future
257
+ */
258
+ is_deprecated: boolean;
259
+ toolkit: Deprecated.Toolkit;
260
+ /**
261
+ * Current version identifier of the tool
262
+ */
263
+ version: string;
264
+ }
265
+ namespace Deprecated {
266
+ interface Toolkit {
267
+ /**
268
+ * URL to the toolkit logo image
269
+ */
270
+ logo: string;
271
+ }
272
+ }
64
273
  interface Toolkit {
65
274
  /**
66
- * The name of the toolkit
275
+ * URL to the toolkit logo image
276
+ */
277
+ logo: string;
278
+ /**
279
+ * Human-readable name of the parent toolkit
67
280
  */
68
281
  name: string;
69
282
  /**
70
- * The slug of the toolkit
283
+ * Unique identifier of the parent toolkit
71
284
  */
72
285
  slug: string;
73
286
  }
74
287
  }
75
288
  }
76
289
  export interface ToolExecuteResponse {
77
- data: Record<string, unknown>;
290
+ /**
291
+ * Tool execution output data that varies based on the specific tool
292
+ */
293
+ data: {
294
+ [key: string]: unknown;
295
+ };
296
+ /**
297
+ * Error message if the tool execution was not successful (null if successful)
298
+ */
78
299
  error: string | null;
300
+ /**
301
+ * Indicates if the tool execution was successful
302
+ */
79
303
  successful: boolean;
304
+ /**
305
+ * Unique identifier for the execution log (useful for debugging and support)
306
+ */
80
307
  log_id?: string;
308
+ /**
309
+ * Optional session information for tools that return session context
310
+ */
81
311
  session_info?: unknown;
82
312
  }
83
313
  export interface ToolGetInputResponse {
84
314
  /**
85
- * The arguments for the action needed to execute the given task.
315
+ * Key-value pairs of arguments required by the tool to accomplish the described
316
+ * task
86
317
  */
87
- arguments?: Record<string, unknown>;
318
+ arguments?: {
319
+ [key: string]: unknown;
320
+ };
88
321
  /**
89
- * The error message if the arguments were not generated successfully.
322
+ * Error message if the arguments could not be generated (null if successful)
90
323
  */
91
324
  error?: string;
92
325
  }
93
326
  export interface ToolProxyResponse {
327
+ /**
328
+ * The HTTP status code returned from the proxied API
329
+ */
94
330
  status: number;
331
+ /**
332
+ * Binary body response data. Present when the response is a binary file.
333
+ */
334
+ binary_data?: ToolProxyResponse.BinaryData;
335
+ /**
336
+ * The response data returned from the proxied API
337
+ */
95
338
  data?: unknown;
96
- headers?: Record<string, string>;
339
+ /**
340
+ * The HTTP headers returned from the proxied API
341
+ */
342
+ headers?: {
343
+ [key: string]: string;
344
+ };
345
+ }
346
+ export declare namespace ToolProxyResponse {
347
+ /**
348
+ * Binary body response data. Present when the response is a binary file.
349
+ */
350
+ interface BinaryData {
351
+ /**
352
+ * Content-Type of the binary data
353
+ */
354
+ content_type: string;
355
+ /**
356
+ * File size in bytes
357
+ */
358
+ size: number;
359
+ /**
360
+ * URL to download binary content
361
+ */
362
+ url: string;
363
+ /**
364
+ * ISO 8601 timestamp when the URL expires
365
+ */
366
+ expires_at?: string;
367
+ }
368
+ }
369
+ /**
370
+ * JSON string containing all tool enum values from latest version of each toolkit
371
+ */
372
+ export type ToolRetrieveEnumResponse = Array<string>;
373
+ export interface ToolRetrieveParams {
374
+ /**
375
+ * Toolkit version specification. Use "latest" for latest versions or bracket
376
+ * notation for specific versions per toolkit.
377
+ */
378
+ toolkit_versions?: string | {
379
+ [key: string]: string;
380
+ };
381
+ /**
382
+ * Optional version of the tool to retrieve
383
+ */
384
+ version?: string;
97
385
  }
98
- export type ToolRetrieveEnumResponse = string;
99
386
  export interface ToolListParams {
100
387
  /**
101
- * The cursor to paginate through the results
388
+ * Comma-separated list of auth config IDs to filter tools by
389
+ */
390
+ auth_config_ids?: string | Array<string>;
391
+ /**
392
+ * Cursor for pagination. The cursor is a base64 encoded string of the page and
393
+ * limit. The page is the page number and the limit is the number of items per
394
+ * page. The cursor is used to paginate through the items. The cursor is not
395
+ * required for the first page.
102
396
  */
103
397
  cursor?: string;
104
398
  /**
105
- * Whether to filter by important tools
399
+ * Filter to only show important/featured tools (set to "true" to enable)
400
+ */
401
+ important?: 'true' | 'false';
402
+ /**
403
+ * Include deprecated tools in the response
106
404
  */
107
- important?: string;
405
+ include_deprecated?: boolean;
108
406
  /**
109
- * The number of results to return
407
+ * Number of items per page, max allowed is 1000
110
408
  */
111
- limit?: string;
409
+ limit?: number | null;
112
410
  /**
113
- * The search query to filter by
411
+ * Full-text search query to filter tools by name, slug, or description. Applied as
412
+ * a soft filter on top of other filters.
413
+ */
414
+ query?: string;
415
+ /**
416
+ * Array of scopes to filter tools by)
417
+ */
418
+ scopes?: Array<string> | null;
419
+ /**
420
+ * Deprecated: use "query" instead. Free-text search query to find tools by name,
421
+ * description, or functionality.
114
422
  */
115
423
  search?: string;
424
+ /**
425
+ * Filter tools by one or more tags (can be specified multiple times)
426
+ */
427
+ tags?: Array<string>;
428
+ /**
429
+ * Comma-separated list of specific tool slugs to retrieve (overrides other
430
+ * filters)
431
+ */
432
+ tool_slugs?: string;
116
433
  /**
117
434
  * The slug of the toolkit to filter by
118
435
  */
119
436
  toolkit_slug?: string;
437
+ /**
438
+ * Toolkit version specification. Use "latest" for latest versions or bracket
439
+ * notation for specific versions per toolkit.
440
+ */
441
+ toolkit_versions?: string | {
442
+ [key: string]: string;
443
+ };
120
444
  }
121
445
  export interface ToolExecuteParams {
122
- allow_tracing?: boolean;
123
- arguments?: Record<string, unknown>;
446
+ /**
447
+ * @deprecated Body param: Deprecated. Enable debug tracing for tool execution
448
+ * (useful for debugging)
449
+ */
450
+ allow_tracing?: boolean | null;
451
+ /**
452
+ * Body param: Key-value pairs of arguments required by the tool (mutually
453
+ * exclusive with text)
454
+ */
455
+ arguments?: {
456
+ [key: string]: unknown;
457
+ };
458
+ /**
459
+ * Body param: Unique identifier for the connected account to use for
460
+ * authentication
461
+ */
124
462
  connected_account_id?: string;
463
+ /**
464
+ * Body param: Custom authentication parameters for tools that support
465
+ * parameterized authentication
466
+ */
467
+ custom_auth_params?: ToolExecuteParams.CustomAuthParams;
468
+ /**
469
+ * Body param: Custom connection data for tools that support custom connection data
470
+ */
471
+ custom_connection_data?: ToolExecuteParams.UnionMember0 | ToolExecuteParams.UnionMember1 | ToolExecuteParams.UnionMember2 | ToolExecuteParams.UnionMember3 | ToolExecuteParams.UnionMember4 | ToolExecuteParams.UnionMember5 | ToolExecuteParams.UnionMember6 | ToolExecuteParams.UnionMember7 | ToolExecuteParams.UnionMember8 | ToolExecuteParams.UnionMember9;
472
+ /**
473
+ * @deprecated Body param: Deprecated: please use user_id instead. Entity
474
+ * identifier for multi-entity connected accounts (e.g. multiple repositories,
475
+ * organizations)
476
+ */
125
477
  entity_id?: string;
478
+ /**
479
+ * Body param: Natural language description of the task to perform (mutually
480
+ * exclusive with arguments)
481
+ */
126
482
  text?: string;
483
+ /**
484
+ * Body param: User id for multi-user connected accounts (e.g. multiple users,
485
+ * organizations)
486
+ */
487
+ user_id?: string;
488
+ /**
489
+ * Body param: Tool version to execute (defaults to "00000000_00" if not specified)
490
+ */
127
491
  version?: string;
492
+ /**
493
+ * Header param: JSON object containing custom headers to pass to LLM providers
494
+ * (OpenAI, Bedrock, etc.)
495
+ */
496
+ 'x-llm-gateway-headers'?: string;
497
+ }
498
+ export declare namespace ToolExecuteParams {
499
+ /**
500
+ * Custom authentication parameters for tools that support parameterized
501
+ * authentication
502
+ */
503
+ interface CustomAuthParams {
504
+ /**
505
+ * The base URL (root address) what you should use while making http requests to
506
+ * the connected account. For example, for gmail, it would be
507
+ * 'https://gmail.googleapis.com'
508
+ */
509
+ base_url?: string;
510
+ /**
511
+ * The body to be sent to the endpoint for authentication. This is a JSON object.
512
+ * Note: This is very rarely needed and is only required by very few apps.
513
+ */
514
+ body?: {
515
+ [key: string]: unknown;
516
+ };
517
+ parameters?: Array<CustomAuthParams.Parameter>;
518
+ }
519
+ namespace CustomAuthParams {
520
+ interface Parameter {
521
+ /**
522
+ * The location of the parameter. Can be 'query' or 'header'.
523
+ */
524
+ in: 'query' | 'header';
525
+ /**
526
+ * The name of the parameter. For example, 'x-api-key', 'Content-Type', etc.
527
+ */
528
+ name: string;
529
+ /**
530
+ * The value of the parameter. For example, '1234567890', 'application/json', etc.
531
+ */
532
+ value: string | number;
533
+ }
534
+ }
535
+ interface UnionMember0 {
536
+ authScheme: 'OAUTH2';
537
+ toolkitSlug: string;
538
+ val: UnionMember0.Val;
539
+ }
540
+ namespace UnionMember0 {
541
+ interface Val {
542
+ access_token: string;
543
+ account_id?: string;
544
+ account_url?: string;
545
+ api_url?: string;
546
+ /**
547
+ * for slack user scopes
548
+ */
549
+ authed_user?: Val.AuthedUser;
550
+ base_url?: string;
551
+ borneo_dashboard_url?: string;
552
+ COMPANYDOMAIN?: string;
553
+ dc?: string;
554
+ domain?: string;
555
+ expires_in?: number | string | null;
556
+ extension?: string;
557
+ form_api_base_url?: string;
558
+ id_token?: string;
559
+ instanceEndpoint?: string;
560
+ instanceName?: string;
561
+ /**
562
+ * Whether to return the redirect url without shortening
563
+ */
564
+ long_redirect_url?: boolean;
565
+ proxy_password?: string;
566
+ proxy_username?: string;
567
+ refresh_token?: string | null;
568
+ region?: string;
569
+ scope?: string | Array<string> | null;
570
+ server_location?: string;
571
+ shop?: string;
572
+ site_name?: string;
573
+ /**
574
+ * The oauth2 state prefix for the connection
575
+ */
576
+ state_prefix?: string;
577
+ subdomain?: string;
578
+ token_type?: string;
579
+ version?: string;
580
+ webhook_signature?: string;
581
+ your_server?: string;
582
+ 'your-domain'?: string;
583
+ [k: string]: unknown;
584
+ }
585
+ namespace Val {
586
+ /**
587
+ * for slack user scopes
588
+ */
589
+ interface AuthedUser {
590
+ access_token?: string;
591
+ scope?: string;
592
+ }
593
+ }
594
+ }
595
+ interface UnionMember1 {
596
+ authScheme: 'DCR_OAUTH';
597
+ toolkitSlug: string;
598
+ val: UnionMember1.Val;
599
+ }
600
+ namespace UnionMember1 {
601
+ interface Val {
602
+ access_token: string;
603
+ /**
604
+ * Dynamically registered client ID
605
+ */
606
+ client_id: string;
607
+ account_id?: string;
608
+ account_url?: string;
609
+ api_url?: string;
610
+ base_url?: string;
611
+ borneo_dashboard_url?: string;
612
+ client_id_issued_at?: number;
613
+ /**
614
+ * Dynamically registered client secret
615
+ */
616
+ client_secret?: string;
617
+ client_secret_expires_at?: number;
618
+ COMPANYDOMAIN?: string;
619
+ dc?: string;
620
+ domain?: string;
621
+ expires_in?: number | string | null;
622
+ extension?: string;
623
+ form_api_base_url?: string;
624
+ id_token?: string;
625
+ instanceEndpoint?: string;
626
+ instanceName?: string;
627
+ /**
628
+ * Whether to return the redirect url without shortening
629
+ */
630
+ long_redirect_url?: boolean;
631
+ proxy_password?: string;
632
+ proxy_username?: string;
633
+ refresh_token?: string | null;
634
+ region?: string;
635
+ scope?: string | Array<string> | null;
636
+ server_location?: string;
637
+ shop?: string;
638
+ site_name?: string;
639
+ /**
640
+ * The oauth2 state prefix for the connection
641
+ */
642
+ state_prefix?: string;
643
+ subdomain?: string;
644
+ token_type?: string;
645
+ version?: string;
646
+ your_server?: string;
647
+ 'your-domain'?: string;
648
+ [k: string]: unknown;
649
+ }
650
+ }
651
+ interface UnionMember2 {
652
+ authScheme: 'API_KEY';
653
+ toolkitSlug: string;
654
+ val: UnionMember2.Val;
655
+ }
656
+ namespace UnionMember2 {
657
+ interface Val {
658
+ account_id?: string;
659
+ account_url?: string;
660
+ api_key?: string;
661
+ api_url?: string;
662
+ base_url?: string;
663
+ basic_encoded?: string;
664
+ bearer_token?: string;
665
+ borneo_dashboard_url?: string;
666
+ COMPANYDOMAIN?: string;
667
+ dc?: string;
668
+ domain?: string;
669
+ extension?: string;
670
+ form_api_base_url?: string;
671
+ generic_api_key?: string;
672
+ instanceEndpoint?: string;
673
+ instanceName?: string;
674
+ proxy_password?: string;
675
+ proxy_username?: string;
676
+ region?: string;
677
+ server_location?: string;
678
+ shop?: string;
679
+ site_name?: string;
680
+ subdomain?: string;
681
+ version?: string;
682
+ your_server?: string;
683
+ 'your-domain'?: string;
684
+ [k: string]: unknown;
685
+ }
686
+ }
687
+ interface UnionMember3 {
688
+ authScheme: 'BASIC_WITH_JWT';
689
+ toolkitSlug: string;
690
+ val: UnionMember3.Val;
691
+ }
692
+ namespace UnionMember3 {
693
+ interface Val {
694
+ password: string;
695
+ username: string;
696
+ account_id?: string;
697
+ account_url?: string;
698
+ api_url?: string;
699
+ base_url?: string;
700
+ borneo_dashboard_url?: string;
701
+ COMPANYDOMAIN?: string;
702
+ dc?: string;
703
+ domain?: string;
704
+ extension?: string;
705
+ form_api_base_url?: string;
706
+ instanceEndpoint?: string;
707
+ instanceName?: string;
708
+ proxy_password?: string;
709
+ proxy_username?: string;
710
+ region?: string;
711
+ server_location?: string;
712
+ shop?: string;
713
+ site_name?: string;
714
+ subdomain?: string;
715
+ version?: string;
716
+ your_server?: string;
717
+ 'your-domain'?: string;
718
+ [k: string]: unknown;
719
+ }
720
+ }
721
+ interface UnionMember4 {
722
+ authScheme: 'BASIC';
723
+ toolkitSlug: string;
724
+ val: UnionMember4.Val;
725
+ }
726
+ namespace UnionMember4 {
727
+ interface Val {
728
+ username: string;
729
+ account_id?: string;
730
+ account_url?: string;
731
+ api_url?: string;
732
+ base_url?: string;
733
+ borneo_dashboard_url?: string;
734
+ COMPANYDOMAIN?: string;
735
+ dc?: string;
736
+ domain?: string;
737
+ extension?: string;
738
+ form_api_base_url?: string;
739
+ instanceEndpoint?: string;
740
+ instanceName?: string;
741
+ password?: string;
742
+ proxy_password?: string;
743
+ proxy_username?: string;
744
+ region?: string;
745
+ server_location?: string;
746
+ shop?: string;
747
+ site_name?: string;
748
+ subdomain?: string;
749
+ version?: string;
750
+ your_server?: string;
751
+ 'your-domain'?: string;
752
+ [k: string]: unknown;
753
+ }
754
+ }
755
+ interface UnionMember5 {
756
+ authScheme: 'BEARER_TOKEN';
757
+ toolkitSlug: string;
758
+ val: UnionMember5.Val;
759
+ }
760
+ namespace UnionMember5 {
761
+ interface Val {
762
+ token: string;
763
+ account_id?: string;
764
+ account_url?: string;
765
+ api_url?: string;
766
+ base_url?: string;
767
+ borneo_dashboard_url?: string;
768
+ COMPANYDOMAIN?: string;
769
+ dc?: string;
770
+ domain?: string;
771
+ extension?: string;
772
+ form_api_base_url?: string;
773
+ instanceEndpoint?: string;
774
+ instanceName?: string;
775
+ proxy_password?: string;
776
+ proxy_username?: string;
777
+ region?: string;
778
+ server_location?: string;
779
+ shop?: string;
780
+ site_name?: string;
781
+ subdomain?: string;
782
+ version?: string;
783
+ your_server?: string;
784
+ 'your-domain'?: string;
785
+ [k: string]: unknown;
786
+ }
787
+ }
788
+ interface UnionMember6 {
789
+ authScheme: 'OAUTH1';
790
+ toolkitSlug: string;
791
+ val: UnionMember6.Val;
792
+ }
793
+ namespace UnionMember6 {
794
+ interface Val {
795
+ oauth_token: string;
796
+ oauth_token_secret: string;
797
+ account_id?: string;
798
+ account_url?: string;
799
+ api_url?: string;
800
+ base_url?: string;
801
+ borneo_dashboard_url?: string;
802
+ callback_url?: string;
803
+ COMPANYDOMAIN?: string;
804
+ consumer_key?: string;
805
+ dc?: string;
806
+ domain?: string;
807
+ extension?: string;
808
+ form_api_base_url?: string;
809
+ instanceEndpoint?: string;
810
+ instanceName?: string;
811
+ oauth_verifier?: string;
812
+ proxy_password?: string;
813
+ proxy_username?: string;
814
+ redirectUrl?: string;
815
+ region?: string;
816
+ server_location?: string;
817
+ shop?: string;
818
+ site_name?: string;
819
+ subdomain?: string;
820
+ version?: string;
821
+ your_server?: string;
822
+ 'your-domain'?: string;
823
+ [k: string]: unknown;
824
+ }
825
+ }
826
+ interface UnionMember7 {
827
+ authScheme: 'NO_AUTH';
828
+ toolkitSlug: string;
829
+ val: UnionMember7.Val;
830
+ }
831
+ namespace UnionMember7 {
832
+ interface Val {
833
+ account_id?: string;
834
+ account_url?: string;
835
+ api_url?: string;
836
+ base_url?: string;
837
+ borneo_dashboard_url?: string;
838
+ COMPANYDOMAIN?: string;
839
+ dc?: string;
840
+ domain?: string;
841
+ extension?: string;
842
+ form_api_base_url?: string;
843
+ instanceEndpoint?: string;
844
+ instanceName?: string;
845
+ proxy_password?: string;
846
+ proxy_username?: string;
847
+ region?: string;
848
+ server_location?: string;
849
+ shop?: string;
850
+ site_name?: string;
851
+ subdomain?: string;
852
+ version?: string;
853
+ your_server?: string;
854
+ 'your-domain'?: string;
855
+ [k: string]: unknown;
856
+ }
857
+ }
858
+ interface UnionMember8 {
859
+ authScheme: 'SERVICE_ACCOUNT';
860
+ toolkitSlug: string;
861
+ val: UnionMember8.Val;
862
+ }
863
+ namespace UnionMember8 {
864
+ interface Val {
865
+ application_id: string;
866
+ installation_id: string;
867
+ private_key: string;
868
+ account_id?: string;
869
+ account_url?: string;
870
+ api_url?: string;
871
+ base_url?: string;
872
+ borneo_dashboard_url?: string;
873
+ COMPANYDOMAIN?: string;
874
+ dc?: string;
875
+ domain?: string;
876
+ extension?: string;
877
+ form_api_base_url?: string;
878
+ instanceEndpoint?: string;
879
+ instanceName?: string;
880
+ proxy_password?: string;
881
+ proxy_username?: string;
882
+ region?: string;
883
+ server_location?: string;
884
+ shop?: string;
885
+ site_name?: string;
886
+ subdomain?: string;
887
+ version?: string;
888
+ your_server?: string;
889
+ 'your-domain'?: string;
890
+ [k: string]: unknown;
891
+ }
892
+ }
893
+ interface UnionMember9 {
894
+ authScheme: 'GOOGLE_SERVICE_ACCOUNT';
895
+ toolkitSlug: string;
896
+ val: UnionMember9.Val;
897
+ }
898
+ namespace UnionMember9 {
899
+ interface Val {
900
+ credentials_json: string;
901
+ account_id?: string;
902
+ account_url?: string;
903
+ api_url?: string;
904
+ base_url?: string;
905
+ borneo_dashboard_url?: string;
906
+ COMPANYDOMAIN?: string;
907
+ dc?: string;
908
+ domain?: string;
909
+ extension?: string;
910
+ form_api_base_url?: string;
911
+ instanceEndpoint?: string;
912
+ instanceName?: string;
913
+ proxy_password?: string;
914
+ proxy_username?: string;
915
+ region?: string;
916
+ server_location?: string;
917
+ shop?: string;
918
+ site_name?: string;
919
+ subdomain?: string;
920
+ version?: string;
921
+ your_server?: string;
922
+ 'your-domain'?: string;
923
+ [k: string]: unknown;
924
+ }
925
+ }
128
926
  }
129
927
  export interface ToolGetInputParams {
130
928
  /**
131
- * The use-case description for the action, this will give context to LLM to
132
- * generate the correct inputs for the action.
929
+ * Natural language description of what you want to accomplish with this tool
133
930
  */
134
931
  text: string;
135
932
  /**
136
- * The custom description for the action, use this to provide customised context
137
- * about the action to the LLM to suit your use-case.
933
+ * Custom description of the tool to help guide the LLM in generating more accurate
934
+ * inputs
935
+ */
936
+ custom_description?: string;
937
+ /**
938
+ * System prompt to control and guide the behavior of the LLM when generating
939
+ * inputs
138
940
  */
139
- customDescription?: string;
941
+ system_prompt?: string;
140
942
  /**
141
- * The system prompt to be used by LLM, use this to control and guide the behaviour
142
- * of the LLM.
943
+ * Tool version to use when generating inputs (defaults to "latest" if not
944
+ * specified)
143
945
  */
144
- systemPrompt?: string;
145
946
  version?: string;
146
947
  }
147
948
  export interface ToolProxyParams {
949
+ /**
950
+ * The API endpoint to call (absolute URL or path relative to base URL of the
951
+ * connected account)
952
+ */
148
953
  endpoint: string;
149
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
954
+ /**
955
+ * The HTTP method to use for the request
956
+ */
957
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
958
+ /**
959
+ * Binary body to send. For binary upload via URL: use {url: "https://...",
960
+ * content_type?: "..."}. For binary upload via base64: use {base64: "...",
961
+ * content_type?: "..."}.
962
+ */
963
+ binary_body?: ToolProxyParams.UnionMember0 | ToolProxyParams.UnionMember1;
964
+ /**
965
+ * The request body (for POST, PUT, and PATCH requests)
966
+ */
150
967
  body?: unknown;
968
+ /**
969
+ * The ID of the connected account to use for authentication (if not provided, will
970
+ * use the default account for the project)
971
+ */
151
972
  connected_account_id?: string;
973
+ /**
974
+ * @deprecated
975
+ */
976
+ custom_connection_data?: ToolProxyParams.UnionMember0 | ToolProxyParams.UnionMember1 | ToolProxyParams.UnionMember2 | ToolProxyParams.UnionMember3 | ToolProxyParams.UnionMember4 | ToolProxyParams.UnionMember5 | ToolProxyParams.UnionMember6 | ToolProxyParams.UnionMember7 | ToolProxyParams.UnionMember8 | ToolProxyParams.UnionMember9;
977
+ /**
978
+ * Additional HTTP headers or query parameters to include in the request
979
+ */
152
980
  parameters?: Array<ToolProxyParams.Parameter>;
153
981
  }
154
982
  export declare namespace ToolProxyParams {
983
+ interface UnionMember0 {
984
+ /**
985
+ * URL to fetch binary content from
986
+ */
987
+ url: string;
988
+ /**
989
+ * Content-Type header to use for the request
990
+ */
991
+ content_type?: string;
992
+ }
993
+ interface UnionMember1 {
994
+ /**
995
+ * Base64-encoded binary data
996
+ */
997
+ base64: string;
998
+ /**
999
+ * Content-Type header to use for the request
1000
+ */
1001
+ content_type?: string;
1002
+ }
1003
+ interface UnionMember0 {
1004
+ authScheme: 'OAUTH2';
1005
+ toolkitSlug: string;
1006
+ val: UnionMember0.Val;
1007
+ }
1008
+ namespace UnionMember0 {
1009
+ interface Val {
1010
+ access_token: string;
1011
+ account_id?: string;
1012
+ account_url?: string;
1013
+ api_url?: string;
1014
+ /**
1015
+ * for slack user scopes
1016
+ */
1017
+ authed_user?: Val.AuthedUser;
1018
+ base_url?: string;
1019
+ borneo_dashboard_url?: string;
1020
+ COMPANYDOMAIN?: string;
1021
+ dc?: string;
1022
+ domain?: string;
1023
+ expires_in?: number | string | null;
1024
+ extension?: string;
1025
+ form_api_base_url?: string;
1026
+ id_token?: string;
1027
+ instanceEndpoint?: string;
1028
+ instanceName?: string;
1029
+ /**
1030
+ * Whether to return the redirect url without shortening
1031
+ */
1032
+ long_redirect_url?: boolean;
1033
+ proxy_password?: string;
1034
+ proxy_username?: string;
1035
+ refresh_token?: string | null;
1036
+ region?: string;
1037
+ scope?: string | Array<string> | null;
1038
+ server_location?: string;
1039
+ shop?: string;
1040
+ site_name?: string;
1041
+ /**
1042
+ * The oauth2 state prefix for the connection
1043
+ */
1044
+ state_prefix?: string;
1045
+ subdomain?: string;
1046
+ token_type?: string;
1047
+ version?: string;
1048
+ webhook_signature?: string;
1049
+ your_server?: string;
1050
+ 'your-domain'?: string;
1051
+ [k: string]: unknown;
1052
+ }
1053
+ namespace Val {
1054
+ /**
1055
+ * for slack user scopes
1056
+ */
1057
+ interface AuthedUser {
1058
+ access_token?: string;
1059
+ scope?: string;
1060
+ }
1061
+ }
1062
+ }
1063
+ interface UnionMember1 {
1064
+ authScheme: 'DCR_OAUTH';
1065
+ toolkitSlug: string;
1066
+ val: UnionMember1.Val;
1067
+ }
1068
+ namespace UnionMember1 {
1069
+ interface Val {
1070
+ access_token: string;
1071
+ /**
1072
+ * Dynamically registered client ID
1073
+ */
1074
+ client_id: string;
1075
+ account_id?: string;
1076
+ account_url?: string;
1077
+ api_url?: string;
1078
+ base_url?: string;
1079
+ borneo_dashboard_url?: string;
1080
+ client_id_issued_at?: number;
1081
+ /**
1082
+ * Dynamically registered client secret
1083
+ */
1084
+ client_secret?: string;
1085
+ client_secret_expires_at?: number;
1086
+ COMPANYDOMAIN?: string;
1087
+ dc?: string;
1088
+ domain?: string;
1089
+ expires_in?: number | string | null;
1090
+ extension?: string;
1091
+ form_api_base_url?: string;
1092
+ id_token?: string;
1093
+ instanceEndpoint?: string;
1094
+ instanceName?: string;
1095
+ /**
1096
+ * Whether to return the redirect url without shortening
1097
+ */
1098
+ long_redirect_url?: boolean;
1099
+ proxy_password?: string;
1100
+ proxy_username?: string;
1101
+ refresh_token?: string | null;
1102
+ region?: string;
1103
+ scope?: string | Array<string> | null;
1104
+ server_location?: string;
1105
+ shop?: string;
1106
+ site_name?: string;
1107
+ /**
1108
+ * The oauth2 state prefix for the connection
1109
+ */
1110
+ state_prefix?: string;
1111
+ subdomain?: string;
1112
+ token_type?: string;
1113
+ version?: string;
1114
+ your_server?: string;
1115
+ 'your-domain'?: string;
1116
+ [k: string]: unknown;
1117
+ }
1118
+ }
1119
+ interface UnionMember2 {
1120
+ authScheme: 'API_KEY';
1121
+ toolkitSlug: string;
1122
+ val: UnionMember2.Val;
1123
+ }
1124
+ namespace UnionMember2 {
1125
+ interface Val {
1126
+ account_id?: string;
1127
+ account_url?: string;
1128
+ api_key?: string;
1129
+ api_url?: string;
1130
+ base_url?: string;
1131
+ basic_encoded?: string;
1132
+ bearer_token?: string;
1133
+ borneo_dashboard_url?: string;
1134
+ COMPANYDOMAIN?: string;
1135
+ dc?: string;
1136
+ domain?: string;
1137
+ extension?: string;
1138
+ form_api_base_url?: string;
1139
+ generic_api_key?: string;
1140
+ instanceEndpoint?: string;
1141
+ instanceName?: string;
1142
+ proxy_password?: string;
1143
+ proxy_username?: string;
1144
+ region?: string;
1145
+ server_location?: string;
1146
+ shop?: string;
1147
+ site_name?: string;
1148
+ subdomain?: string;
1149
+ version?: string;
1150
+ your_server?: string;
1151
+ 'your-domain'?: string;
1152
+ [k: string]: unknown;
1153
+ }
1154
+ }
1155
+ interface UnionMember3 {
1156
+ authScheme: 'BASIC_WITH_JWT';
1157
+ toolkitSlug: string;
1158
+ val: UnionMember3.Val;
1159
+ }
1160
+ namespace UnionMember3 {
1161
+ interface Val {
1162
+ password: string;
1163
+ username: string;
1164
+ account_id?: string;
1165
+ account_url?: string;
1166
+ api_url?: string;
1167
+ base_url?: string;
1168
+ borneo_dashboard_url?: string;
1169
+ COMPANYDOMAIN?: string;
1170
+ dc?: string;
1171
+ domain?: string;
1172
+ extension?: string;
1173
+ form_api_base_url?: string;
1174
+ instanceEndpoint?: string;
1175
+ instanceName?: string;
1176
+ proxy_password?: string;
1177
+ proxy_username?: string;
1178
+ region?: string;
1179
+ server_location?: string;
1180
+ shop?: string;
1181
+ site_name?: string;
1182
+ subdomain?: string;
1183
+ version?: string;
1184
+ your_server?: string;
1185
+ 'your-domain'?: string;
1186
+ [k: string]: unknown;
1187
+ }
1188
+ }
1189
+ interface UnionMember4 {
1190
+ authScheme: 'BASIC';
1191
+ toolkitSlug: string;
1192
+ val: UnionMember4.Val;
1193
+ }
1194
+ namespace UnionMember4 {
1195
+ interface Val {
1196
+ username: string;
1197
+ account_id?: string;
1198
+ account_url?: string;
1199
+ api_url?: string;
1200
+ base_url?: string;
1201
+ borneo_dashboard_url?: string;
1202
+ COMPANYDOMAIN?: string;
1203
+ dc?: string;
1204
+ domain?: string;
1205
+ extension?: string;
1206
+ form_api_base_url?: string;
1207
+ instanceEndpoint?: string;
1208
+ instanceName?: string;
1209
+ password?: string;
1210
+ proxy_password?: string;
1211
+ proxy_username?: string;
1212
+ region?: string;
1213
+ server_location?: string;
1214
+ shop?: string;
1215
+ site_name?: string;
1216
+ subdomain?: string;
1217
+ version?: string;
1218
+ your_server?: string;
1219
+ 'your-domain'?: string;
1220
+ [k: string]: unknown;
1221
+ }
1222
+ }
1223
+ interface UnionMember5 {
1224
+ authScheme: 'BEARER_TOKEN';
1225
+ toolkitSlug: string;
1226
+ val: UnionMember5.Val;
1227
+ }
1228
+ namespace UnionMember5 {
1229
+ interface Val {
1230
+ token: string;
1231
+ account_id?: string;
1232
+ account_url?: string;
1233
+ api_url?: string;
1234
+ base_url?: string;
1235
+ borneo_dashboard_url?: string;
1236
+ COMPANYDOMAIN?: string;
1237
+ dc?: string;
1238
+ domain?: string;
1239
+ extension?: string;
1240
+ form_api_base_url?: string;
1241
+ instanceEndpoint?: string;
1242
+ instanceName?: string;
1243
+ proxy_password?: string;
1244
+ proxy_username?: string;
1245
+ region?: string;
1246
+ server_location?: string;
1247
+ shop?: string;
1248
+ site_name?: string;
1249
+ subdomain?: string;
1250
+ version?: string;
1251
+ your_server?: string;
1252
+ 'your-domain'?: string;
1253
+ [k: string]: unknown;
1254
+ }
1255
+ }
1256
+ interface UnionMember6 {
1257
+ authScheme: 'OAUTH1';
1258
+ toolkitSlug: string;
1259
+ val: UnionMember6.Val;
1260
+ }
1261
+ namespace UnionMember6 {
1262
+ interface Val {
1263
+ oauth_token: string;
1264
+ oauth_token_secret: string;
1265
+ account_id?: string;
1266
+ account_url?: string;
1267
+ api_url?: string;
1268
+ base_url?: string;
1269
+ borneo_dashboard_url?: string;
1270
+ callback_url?: string;
1271
+ COMPANYDOMAIN?: string;
1272
+ consumer_key?: string;
1273
+ dc?: string;
1274
+ domain?: string;
1275
+ extension?: string;
1276
+ form_api_base_url?: string;
1277
+ instanceEndpoint?: string;
1278
+ instanceName?: string;
1279
+ oauth_verifier?: string;
1280
+ proxy_password?: string;
1281
+ proxy_username?: string;
1282
+ redirectUrl?: string;
1283
+ region?: string;
1284
+ server_location?: string;
1285
+ shop?: string;
1286
+ site_name?: string;
1287
+ subdomain?: string;
1288
+ version?: string;
1289
+ your_server?: string;
1290
+ 'your-domain'?: string;
1291
+ [k: string]: unknown;
1292
+ }
1293
+ }
1294
+ interface UnionMember7 {
1295
+ authScheme: 'NO_AUTH';
1296
+ toolkitSlug: string;
1297
+ val: UnionMember7.Val;
1298
+ }
1299
+ namespace UnionMember7 {
1300
+ interface Val {
1301
+ account_id?: string;
1302
+ account_url?: string;
1303
+ api_url?: string;
1304
+ base_url?: string;
1305
+ borneo_dashboard_url?: string;
1306
+ COMPANYDOMAIN?: string;
1307
+ dc?: string;
1308
+ domain?: string;
1309
+ extension?: string;
1310
+ form_api_base_url?: string;
1311
+ instanceEndpoint?: string;
1312
+ instanceName?: string;
1313
+ proxy_password?: string;
1314
+ proxy_username?: string;
1315
+ region?: string;
1316
+ server_location?: string;
1317
+ shop?: string;
1318
+ site_name?: string;
1319
+ subdomain?: string;
1320
+ version?: string;
1321
+ your_server?: string;
1322
+ 'your-domain'?: string;
1323
+ [k: string]: unknown;
1324
+ }
1325
+ }
1326
+ interface UnionMember8 {
1327
+ authScheme: 'SERVICE_ACCOUNT';
1328
+ toolkitSlug: string;
1329
+ val: UnionMember8.Val;
1330
+ }
1331
+ namespace UnionMember8 {
1332
+ interface Val {
1333
+ application_id: string;
1334
+ installation_id: string;
1335
+ private_key: string;
1336
+ account_id?: string;
1337
+ account_url?: string;
1338
+ api_url?: string;
1339
+ base_url?: string;
1340
+ borneo_dashboard_url?: string;
1341
+ COMPANYDOMAIN?: string;
1342
+ dc?: string;
1343
+ domain?: string;
1344
+ extension?: string;
1345
+ form_api_base_url?: string;
1346
+ instanceEndpoint?: string;
1347
+ instanceName?: string;
1348
+ proxy_password?: string;
1349
+ proxy_username?: string;
1350
+ region?: string;
1351
+ server_location?: string;
1352
+ shop?: string;
1353
+ site_name?: string;
1354
+ subdomain?: string;
1355
+ version?: string;
1356
+ your_server?: string;
1357
+ 'your-domain'?: string;
1358
+ [k: string]: unknown;
1359
+ }
1360
+ }
1361
+ interface UnionMember9 {
1362
+ authScheme: 'GOOGLE_SERVICE_ACCOUNT';
1363
+ toolkitSlug: string;
1364
+ val: UnionMember9.Val;
1365
+ }
1366
+ namespace UnionMember9 {
1367
+ interface Val {
1368
+ credentials_json: string;
1369
+ account_id?: string;
1370
+ account_url?: string;
1371
+ api_url?: string;
1372
+ base_url?: string;
1373
+ borneo_dashboard_url?: string;
1374
+ COMPANYDOMAIN?: string;
1375
+ dc?: string;
1376
+ domain?: string;
1377
+ extension?: string;
1378
+ form_api_base_url?: string;
1379
+ instanceEndpoint?: string;
1380
+ instanceName?: string;
1381
+ proxy_password?: string;
1382
+ proxy_username?: string;
1383
+ region?: string;
1384
+ server_location?: string;
1385
+ shop?: string;
1386
+ site_name?: string;
1387
+ subdomain?: string;
1388
+ version?: string;
1389
+ your_server?: string;
1390
+ 'your-domain'?: string;
1391
+ [k: string]: unknown;
1392
+ }
1393
+ }
155
1394
  interface Parameter {
1395
+ /**
1396
+ * Parameter name
1397
+ */
156
1398
  name: string;
1399
+ /**
1400
+ * Parameter type (header or query)
1401
+ */
157
1402
  type: 'header' | 'query';
1403
+ /**
1404
+ * Parameter value
1405
+ */
158
1406
  value: string;
159
1407
  }
160
1408
  }
161
1409
  export declare namespace Tools {
162
- export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolExecuteResponse as ToolExecuteResponse, type ToolGetInputResponse as ToolGetInputResponse, type ToolProxyResponse as ToolProxyResponse, type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse, type ToolListParams as ToolListParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetInputParams as ToolGetInputParams, type ToolProxyParams as ToolProxyParams, };
1410
+ export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolExecuteResponse as ToolExecuteResponse, type ToolGetInputResponse as ToolGetInputResponse, type ToolProxyResponse as ToolProxyResponse, type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse, type ToolRetrieveParams as ToolRetrieveParams, type ToolListParams as ToolListParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetInputParams as ToolGetInputParams, type ToolProxyParams as ToolProxyParams, };
163
1411
  }
164
1412
  //# sourceMappingURL=tools.d.ts.map