@composio/client 0.1.0-alpha.7 → 0.1.0-alpha.71

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