@rnsk/toolkits 0.0.8 → 0.0.10

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 (329) hide show
  1. package/README.md +15 -1
  2. package/dist/index.d.ts +15 -1
  3. package/dist/index.js +29 -1
  4. package/dist/toolkits/bitbucket/icon.d.ts +5 -0
  5. package/dist/toolkits/bitbucket/icon.js +6 -0
  6. package/dist/toolkits/bitbucket/manifest.d.ts +3 -0
  7. package/dist/toolkits/bitbucket/manifest.js +56 -0
  8. package/dist/toolkits/bitbucket/tools/client.d.ts +38 -0
  9. package/dist/toolkits/bitbucket/tools/client.js +87 -0
  10. package/dist/toolkits/bitbucket/tools/commits.d.ts +149 -0
  11. package/dist/toolkits/bitbucket/tools/commits.js +444 -0
  12. package/dist/toolkits/bitbucket/tools/index.d.ts +1093 -0
  13. package/dist/toolkits/bitbucket/tools/index.js +770 -0
  14. package/dist/toolkits/bitbucket/tools/issues.d.ts +73 -0
  15. package/dist/toolkits/bitbucket/tools/issues.js +234 -0
  16. package/dist/toolkits/bitbucket/tools/pipelines.d.ts +124 -0
  17. package/dist/toolkits/bitbucket/tools/pipelines.js +446 -0
  18. package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +174 -0
  19. package/dist/toolkits/bitbucket/tools/pull-requests.js +541 -0
  20. package/dist/toolkits/bitbucket/tools/reports.d.ts +84 -0
  21. package/dist/toolkits/bitbucket/tools/reports.js +213 -0
  22. package/dist/toolkits/bitbucket/tools/repositories.d.ts +156 -0
  23. package/dist/toolkits/bitbucket/tools/repositories.js +531 -0
  24. package/dist/toolkits/bitbucket/tools/search.d.ts +17 -0
  25. package/dist/toolkits/bitbucket/tools/search.js +67 -0
  26. package/dist/toolkits/bitbucket/tools/snippets.d.ts +34 -0
  27. package/dist/toolkits/bitbucket/tools/snippets.js +122 -0
  28. package/dist/toolkits/bitbucket/tools/users-workspaces.d.ts +65 -0
  29. package/dist/toolkits/bitbucket/tools/users-workspaces.js +294 -0
  30. package/dist/toolkits/discord/icon.d.ts +5 -0
  31. package/dist/toolkits/discord/icon.js +12 -0
  32. package/dist/toolkits/discord/manifest.d.ts +3 -0
  33. package/dist/toolkits/discord/manifest.js +52 -0
  34. package/dist/toolkits/discord/tools/applications.d.ts +79 -0
  35. package/dist/toolkits/discord/tools/applications.js +216 -0
  36. package/dist/toolkits/discord/tools/client.d.ts +22 -0
  37. package/dist/toolkits/discord/tools/client.js +69 -0
  38. package/dist/toolkits/discord/tools/guilds.d.ts +39 -0
  39. package/dist/toolkits/discord/tools/guilds.js +123 -0
  40. package/dist/toolkits/discord/tools/index.d.ts +222 -0
  41. package/dist/toolkits/discord/tools/index.js +170 -0
  42. package/dist/toolkits/discord/tools/misc.d.ts +7 -0
  43. package/dist/toolkits/discord/tools/misc.js +40 -0
  44. package/dist/toolkits/discord/tools/users.d.ts +28 -0
  45. package/dist/toolkits/discord/tools/users.js +128 -0
  46. package/dist/toolkits/figma/tools/index.d.ts +1 -1
  47. package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
  48. package/dist/toolkits/gitlab/icon.d.ts +5 -0
  49. package/dist/toolkits/gitlab/icon.js +6 -0
  50. package/dist/toolkits/gitlab/manifest.d.ts +3 -0
  51. package/dist/toolkits/gitlab/manifest.js +36 -0
  52. package/dist/toolkits/gitlab/tools/client.d.ts +7 -0
  53. package/dist/toolkits/gitlab/tools/client.js +45 -0
  54. package/dist/toolkits/gitlab/tools/index.d.ts +306 -0
  55. package/dist/toolkits/gitlab/tools/index.js +36 -0
  56. package/dist/toolkits/gitlab/tools/issues.d.ts +45 -0
  57. package/dist/toolkits/gitlab/tools/issues.js +103 -0
  58. package/dist/toolkits/gitlab/tools/merge-requests.d.ts +35 -0
  59. package/dist/toolkits/gitlab/tools/merge-requests.js +91 -0
  60. package/dist/toolkits/gitlab/tools/pipelines.d.ts +30 -0
  61. package/dist/toolkits/gitlab/tools/pipelines.js +66 -0
  62. package/dist/toolkits/gitlab/tools/projects.d.ts +36 -0
  63. package/dist/toolkits/gitlab/tools/projects.js +94 -0
  64. package/dist/toolkits/gitlab/tools/repository.d.ts +21 -0
  65. package/dist/toolkits/gitlab/tools/repository.js +53 -0
  66. package/dist/toolkits/gitlab/tools/users-groups.d.ts +11 -0
  67. package/dist/toolkits/gitlab/tools/users-groups.js +30 -0
  68. package/dist/toolkits/google-ads/tools/get-rmf-report.d.ts +2 -2
  69. package/dist/toolkits/google-ads/tools/index.d.ts +2 -2
  70. package/dist/toolkits/google-analytics/icon.d.ts +5 -0
  71. package/dist/toolkits/google-analytics/icon.js +11 -0
  72. package/dist/toolkits/google-analytics/manifest.d.ts +3 -0
  73. package/dist/toolkits/google-analytics/manifest.js +48 -0
  74. package/dist/toolkits/google-analytics/tools/admin.d.ts +73 -0
  75. package/dist/toolkits/google-analytics/tools/admin.js +238 -0
  76. package/dist/toolkits/google-analytics/tools/audiences.d.ts +81 -0
  77. package/dist/toolkits/google-analytics/tools/audiences.js +190 -0
  78. package/dist/toolkits/google-analytics/tools/client.d.ts +47 -0
  79. package/dist/toolkits/google-analytics/tools/client.js +74 -0
  80. package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +62 -0
  81. package/dist/toolkits/google-analytics/tools/custom-definitions.js +106 -0
  82. package/dist/toolkits/google-analytics/tools/index.d.ts +16 -0
  83. package/dist/toolkits/google-analytics/tools/index.js +88 -0
  84. package/dist/toolkits/google-analytics/tools/links.d.ts +22 -0
  85. package/dist/toolkits/google-analytics/tools/links.js +56 -0
  86. package/dist/toolkits/google-analytics/tools/measurement.d.ts +3 -0
  87. package/dist/toolkits/google-analytics/tools/measurement.js +55 -0
  88. package/dist/toolkits/google-analytics/tools/reports.d.ts +136 -0
  89. package/dist/toolkits/google-analytics/tools/reports.js +200 -0
  90. package/dist/toolkits/google-contacts/icon.d.ts +5 -0
  91. package/dist/toolkits/google-contacts/icon.js +6 -0
  92. package/dist/toolkits/google-contacts/manifest.d.ts +3 -0
  93. package/dist/toolkits/google-contacts/manifest.js +48 -0
  94. package/dist/toolkits/google-contacts/tools/client.d.ts +19 -0
  95. package/dist/toolkits/google-contacts/tools/client.js +44 -0
  96. package/dist/toolkits/google-contacts/tools/contacts.d.ts +94 -0
  97. package/dist/toolkits/google-contacts/tools/contacts.js +273 -0
  98. package/dist/toolkits/google-contacts/tools/directory.d.ts +36 -0
  99. package/dist/toolkits/google-contacts/tools/directory.js +99 -0
  100. package/dist/toolkits/google-contacts/tools/groups.d.ts +68 -0
  101. package/dist/toolkits/google-contacts/tools/groups.js +169 -0
  102. package/dist/toolkits/google-contacts/tools/index.d.ts +347 -0
  103. package/dist/toolkits/google-contacts/tools/index.js +34 -0
  104. package/dist/toolkits/google-contacts/tools/photos.d.ts +26 -0
  105. package/dist/toolkits/google-contacts/tools/photos.js +52 -0
  106. package/dist/toolkits/google-maps/icon.d.ts +5 -0
  107. package/dist/toolkits/google-maps/icon.js +39 -0
  108. package/dist/toolkits/google-maps/manifest.d.ts +3 -0
  109. package/dist/toolkits/google-maps/manifest.js +55 -0
  110. package/dist/toolkits/google-maps/tools/client.d.ts +27 -0
  111. package/dist/toolkits/google-maps/tools/client.js +72 -0
  112. package/dist/toolkits/google-maps/tools/geocode.d.ts +49 -0
  113. package/dist/toolkits/google-maps/tools/geocode.js +168 -0
  114. package/dist/toolkits/google-maps/tools/index.d.ts +432 -0
  115. package/dist/toolkits/google-maps/tools/index.js +31 -0
  116. package/dist/toolkits/google-maps/tools/misc.d.ts +70 -0
  117. package/dist/toolkits/google-maps/tools/misc.js +158 -0
  118. package/dist/toolkits/google-maps/tools/places.d.ts +112 -0
  119. package/dist/toolkits/google-maps/tools/places.js +185 -0
  120. package/dist/toolkits/google-maps/tools/routes.d.ts +48 -0
  121. package/dist/toolkits/google-maps/tools/routes.js +97 -0
  122. package/dist/toolkits/google-maps/tools/tiles.d.ts +51 -0
  123. package/dist/toolkits/google-maps/tools/tiles.js +84 -0
  124. package/dist/toolkits/google-photos/icon.d.ts +5 -0
  125. package/dist/toolkits/google-photos/icon.js +6 -0
  126. package/dist/toolkits/google-photos/manifest.d.ts +3 -0
  127. package/dist/toolkits/google-photos/manifest.js +47 -0
  128. package/dist/toolkits/google-photos/tools/albums.d.ts +83 -0
  129. package/dist/toolkits/google-photos/tools/albums.js +180 -0
  130. package/dist/toolkits/google-photos/tools/client.d.ts +24 -0
  131. package/dist/toolkits/google-photos/tools/client.js +77 -0
  132. package/dist/toolkits/google-photos/tools/index.d.ts +261 -0
  133. package/dist/toolkits/google-photos/tools/index.js +22 -0
  134. package/dist/toolkits/google-photos/tools/media.d.ts +52 -0
  135. package/dist/toolkits/google-photos/tools/media.js +142 -0
  136. package/dist/toolkits/google-photos/tools/uploads.d.ts +58 -0
  137. package/dist/toolkits/google-photos/tools/uploads.js +107 -0
  138. package/dist/toolkits/google-tasks/tools/index.d.ts +1 -1
  139. package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
  140. package/dist/toolkits/groww/tools/index.d.ts +1 -1
  141. package/dist/toolkits/groww/tools/instruments.d.ts +1 -1
  142. package/dist/toolkits/hacker-news/icon.d.ts +5 -0
  143. package/dist/toolkits/hacker-news/icon.js +9 -0
  144. package/dist/toolkits/hacker-news/manifest.d.ts +3 -0
  145. package/dist/toolkits/hacker-news/manifest.js +25 -0
  146. package/dist/toolkits/hacker-news/tools/client.d.ts +8 -0
  147. package/dist/toolkits/hacker-news/tools/client.js +51 -0
  148. package/dist/toolkits/hacker-news/tools/index.d.ts +89 -0
  149. package/dist/toolkits/hacker-news/tools/index.js +22 -0
  150. package/dist/toolkits/hacker-news/tools/items.d.ts +42 -0
  151. package/dist/toolkits/hacker-news/tools/items.js +126 -0
  152. package/dist/toolkits/hacker-news/tools/search.d.ts +12 -0
  153. package/dist/toolkits/hacker-news/tools/search.js +40 -0
  154. package/dist/toolkits/hacker-news/tools/stories.d.ts +25 -0
  155. package/dist/toolkits/hacker-news/tools/stories.js +98 -0
  156. package/dist/toolkits/hostinger/icon.d.ts +5 -0
  157. package/dist/toolkits/hostinger/icon.js +6 -0
  158. package/dist/toolkits/hostinger/manifest.d.ts +3 -0
  159. package/dist/toolkits/hostinger/manifest.js +36 -0
  160. package/dist/toolkits/hostinger/tools/billing.d.ts +12 -0
  161. package/dist/toolkits/hostinger/tools/billing.js +35 -0
  162. package/dist/toolkits/hostinger/tools/client.d.ts +6 -0
  163. package/dist/toolkits/hostinger/tools/client.js +57 -0
  164. package/dist/toolkits/hostinger/tools/dns.d.ts +22 -0
  165. package/dist/toolkits/hostinger/tools/dns.js +47 -0
  166. package/dist/toolkits/hostinger/tools/domains.d.ts +21 -0
  167. package/dist/toolkits/hostinger/tools/domains.js +62 -0
  168. package/dist/toolkits/hostinger/tools/hosting.d.ts +17 -0
  169. package/dist/toolkits/hostinger/tools/hosting.js +38 -0
  170. package/dist/toolkits/hostinger/tools/index.d.ts +179 -0
  171. package/dist/toolkits/hostinger/tools/index.js +35 -0
  172. package/dist/toolkits/hostinger/tools/vps.d.ts +27 -0
  173. package/dist/toolkits/hostinger/tools/vps.js +77 -0
  174. package/dist/toolkits/hostinger/tools/whois.d.ts +33 -0
  175. package/dist/toolkits/hostinger/tools/whois.js +85 -0
  176. package/dist/toolkits/hugging-face/icon.d.ts +5 -0
  177. package/dist/toolkits/hugging-face/icon.js +6 -0
  178. package/dist/toolkits/hugging-face/manifest.d.ts +3 -0
  179. package/dist/toolkits/hugging-face/manifest.js +42 -0
  180. package/dist/toolkits/hugging-face/tools/client.d.ts +93 -0
  181. package/dist/toolkits/hugging-face/tools/client.js +192 -0
  182. package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +65 -0
  183. package/dist/toolkits/hugging-face/tools/datasets-viewer.js +150 -0
  184. package/dist/toolkits/hugging-face/tools/datasets.d.ts +160 -0
  185. package/dist/toolkits/hugging-face/tools/datasets.js +383 -0
  186. package/dist/toolkits/hugging-face/tools/discussions.d.ts +68 -0
  187. package/dist/toolkits/hugging-face/tools/discussions.js +144 -0
  188. package/dist/toolkits/hugging-face/tools/index.d.ts +523 -0
  189. package/dist/toolkits/hugging-face/tools/index.js +163 -0
  190. package/dist/toolkits/hugging-face/tools/inference.d.ts +42 -0
  191. package/dist/toolkits/hugging-face/tools/inference.js +86 -0
  192. package/dist/toolkits/hugging-face/tools/models.d.ts +117 -0
  193. package/dist/toolkits/hugging-face/tools/models.js +273 -0
  194. package/dist/toolkits/hugging-face/tools/papers.d.ts +37 -0
  195. package/dist/toolkits/hugging-face/tools/papers.js +91 -0
  196. package/dist/toolkits/hugging-face/tools/repos.d.ts +96 -0
  197. package/dist/toolkits/hugging-face/tools/repos.js +201 -0
  198. package/dist/toolkits/hugging-face/tools/settings.d.ts +53 -0
  199. package/dist/toolkits/hugging-face/tools/settings.js +88 -0
  200. package/dist/toolkits/hugging-face/tools/spaces.d.ts +245 -0
  201. package/dist/toolkits/hugging-face/tools/spaces.js +468 -0
  202. package/dist/toolkits/hugging-face/tools/sql.d.ts +21 -0
  203. package/dist/toolkits/hugging-face/tools/sql.js +47 -0
  204. package/dist/toolkits/hugging-face/tools/users.d.ts +60 -0
  205. package/dist/toolkits/hugging-face/tools/users.js +132 -0
  206. package/dist/toolkits/hugging-face/tools/webhooks.d.ts +35 -0
  207. package/dist/toolkits/hugging-face/tools/webhooks.js +87 -0
  208. package/dist/toolkits/jira/icon.d.ts +5 -0
  209. package/dist/toolkits/jira/icon.js +6 -0
  210. package/dist/toolkits/jira/manifest.d.ts +3 -0
  211. package/dist/toolkits/jira/manifest.js +53 -0
  212. package/dist/toolkits/jira/tools/boards.d.ts +52 -0
  213. package/dist/toolkits/jira/tools/boards.js +104 -0
  214. package/dist/toolkits/jira/tools/client.d.ts +23 -0
  215. package/dist/toolkits/jira/tools/client.js +270 -0
  216. package/dist/toolkits/jira/tools/index.d.ts +1280 -0
  217. package/dist/toolkits/jira/tools/index.js +119 -0
  218. package/dist/toolkits/jira/tools/issue-fields.d.ts +10 -0
  219. package/dist/toolkits/jira/tools/issue-fields.js +111 -0
  220. package/dist/toolkits/jira/tools/issues.d.ts +304 -0
  221. package/dist/toolkits/jira/tools/issues.js +593 -0
  222. package/dist/toolkits/jira/tools/meta.d.ts +212 -0
  223. package/dist/toolkits/jira/tools/meta.js +369 -0
  224. package/dist/toolkits/jira/tools/projects.d.ts +130 -0
  225. package/dist/toolkits/jira/tools/projects.js +263 -0
  226. package/dist/toolkits/jira/tools/search.d.ts +90 -0
  227. package/dist/toolkits/jira/tools/search.js +181 -0
  228. package/dist/toolkits/jira/tools/users.d.ts +114 -0
  229. package/dist/toolkits/jira/tools/users.js +221 -0
  230. package/dist/toolkits/neo4j/icon.d.ts +5 -0
  231. package/dist/toolkits/neo4j/icon.js +6 -0
  232. package/dist/toolkits/neo4j/manifest.d.ts +3 -0
  233. package/dist/toolkits/neo4j/manifest.js +33 -0
  234. package/dist/toolkits/neo4j/tools/analytics.d.ts +21 -0
  235. package/dist/toolkits/neo4j/tools/analytics.js +91 -0
  236. package/dist/toolkits/neo4j/tools/client.d.ts +6 -0
  237. package/dist/toolkits/neo4j/tools/client.js +105 -0
  238. package/dist/toolkits/neo4j/tools/index.d.ts +198 -0
  239. package/dist/toolkits/neo4j/tools/index.js +30 -0
  240. package/dist/toolkits/neo4j/tools/instances.d.ts +47 -0
  241. package/dist/toolkits/neo4j/tools/instances.js +127 -0
  242. package/dist/toolkits/neo4j/tools/projects.d.ts +44 -0
  243. package/dist/toolkits/neo4j/tools/projects.js +110 -0
  244. package/dist/toolkits/neo4j/tools/snapshots.d.ts +20 -0
  245. package/dist/toolkits/neo4j/tools/snapshots.js +57 -0
  246. package/dist/toolkits/neon/icon.d.ts +5 -0
  247. package/dist/toolkits/neon/icon.js +8 -0
  248. package/dist/toolkits/neon/manifest.d.ts +3 -0
  249. package/dist/toolkits/neon/manifest.js +36 -0
  250. package/dist/toolkits/neon/tools/auth.d.ts +115 -0
  251. package/dist/toolkits/neon/tools/auth.js +286 -0
  252. package/dist/toolkits/neon/tools/branches.d.ts +189 -0
  253. package/dist/toolkits/neon/tools/branches.js +465 -0
  254. package/dist/toolkits/neon/tools/client.d.ts +10 -0
  255. package/dist/toolkits/neon/tools/client.js +69 -0
  256. package/dist/toolkits/neon/tools/dataapi.d.ts +42 -0
  257. package/dist/toolkits/neon/tools/dataapi.js +111 -0
  258. package/dist/toolkits/neon/tools/endpoints.d.ts +59 -0
  259. package/dist/toolkits/neon/tools/endpoints.js +163 -0
  260. package/dist/toolkits/neon/tools/index.d.ts +976 -0
  261. package/dist/toolkits/neon/tools/index.js +130 -0
  262. package/dist/toolkits/neon/tools/meta.d.ts +4 -0
  263. package/dist/toolkits/neon/tools/meta.js +16 -0
  264. package/dist/toolkits/neon/tools/orgs.d.ts +112 -0
  265. package/dist/toolkits/neon/tools/orgs.js +303 -0
  266. package/dist/toolkits/neon/tools/projects.d.ts +177 -0
  267. package/dist/toolkits/neon/tools/projects.js +468 -0
  268. package/dist/toolkits/neon/tools/snapshots.d.ts +24 -0
  269. package/dist/toolkits/neon/tools/snapshots.js +67 -0
  270. package/dist/toolkits/reddit/tools/index.d.ts +1 -1
  271. package/dist/toolkits/reddit/tools/search-across-subreddits.d.ts +1 -1
  272. package/dist/toolkits/slack/icon.d.ts +5 -0
  273. package/dist/toolkits/slack/icon.js +20 -0
  274. package/dist/toolkits/slack/manifest.d.ts +3 -0
  275. package/dist/toolkits/slack/manifest.js +93 -0
  276. package/dist/toolkits/slack/tools/admin-apps.d.ts +32 -0
  277. package/dist/toolkits/slack/tools/admin-apps.js +116 -0
  278. package/dist/toolkits/slack/tools/admin-conversations.d.ts +62 -0
  279. package/dist/toolkits/slack/tools/admin-conversations.js +246 -0
  280. package/dist/toolkits/slack/tools/admin-invites.d.ts +19 -0
  281. package/dist/toolkits/slack/tools/admin-invites.js +75 -0
  282. package/dist/toolkits/slack/tools/admin-users.d.ts +52 -0
  283. package/dist/toolkits/slack/tools/admin-users.js +182 -0
  284. package/dist/toolkits/slack/tools/audit.d.ts +20 -0
  285. package/dist/toolkits/slack/tools/audit.js +81 -0
  286. package/dist/toolkits/slack/tools/calls.d.ts +38 -0
  287. package/dist/toolkits/slack/tools/calls.js +141 -0
  288. package/dist/toolkits/slack/tools/canvas.d.ts +24 -0
  289. package/dist/toolkits/slack/tools/canvas.js +102 -0
  290. package/dist/toolkits/slack/tools/client.d.ts +22 -0
  291. package/dist/toolkits/slack/tools/client.js +73 -0
  292. package/dist/toolkits/slack/tools/conversations.d.ts +131 -0
  293. package/dist/toolkits/slack/tools/conversations.js +463 -0
  294. package/dist/toolkits/slack/tools/emoji.d.ts +29 -0
  295. package/dist/toolkits/slack/tools/emoji.js +118 -0
  296. package/dist/toolkits/slack/tools/files.d.ts +113 -0
  297. package/dist/toolkits/slack/tools/files.js +368 -0
  298. package/dist/toolkits/slack/tools/index.d.ts +28 -0
  299. package/dist/toolkits/slack/tools/index.js +187 -0
  300. package/dist/toolkits/slack/tools/messages.d.ts +106 -0
  301. package/dist/toolkits/slack/tools/messages.js +340 -0
  302. package/dist/toolkits/slack/tools/misc.d.ts +42 -0
  303. package/dist/toolkits/slack/tools/misc.js +127 -0
  304. package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +69 -0
  305. package/dist/toolkits/slack/tools/reactions-stars-pins.js +236 -0
  306. package/dist/toolkits/slack/tools/reminders.d.ts +22 -0
  307. package/dist/toolkits/slack/tools/reminders.js +83 -0
  308. package/dist/toolkits/slack/tools/search.d.ts +49 -0
  309. package/dist/toolkits/slack/tools/search.js +155 -0
  310. package/dist/toolkits/slack/tools/slack-lists.d.ts +65 -0
  311. package/dist/toolkits/slack/tools/slack-lists.js +282 -0
  312. package/dist/toolkits/slack/tools/teams.d.ts +75 -0
  313. package/dist/toolkits/slack/tools/teams.js +285 -0
  314. package/dist/toolkits/slack/tools/usergroups.d.ts +56 -0
  315. package/dist/toolkits/slack/tools/usergroups.js +194 -0
  316. package/dist/toolkits/slack/tools/users.d.ts +87 -0
  317. package/dist/toolkits/slack/tools/users.js +396 -0
  318. package/dist/toolkits/youtube/tools/add-video-to-playlist.d.ts +1 -1
  319. package/dist/toolkits/youtube/tools/delete-video.d.ts +1 -1
  320. package/dist/toolkits/youtube/tools/index.d.ts +10 -10
  321. package/dist/toolkits/youtube/tools/list-caption-track.d.ts +1 -1
  322. package/dist/toolkits/youtube/tools/list-playlist-items.d.ts +1 -1
  323. package/dist/toolkits/youtube/tools/list-video-categories.d.ts +1 -1
  324. package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
  325. package/dist/toolkits/youtube/tools/report-video-abuse.d.ts +1 -1
  326. package/dist/toolkits/youtube/tools/search-youtube.d.ts +1 -1
  327. package/dist/toolkits/youtube/tools/update-thumbnail.d.ts +1 -1
  328. package/dist/toolkits/youtube/tools/update-video.d.ts +1 -1
  329. package/package.json +1 -1
@@ -0,0 +1,541 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { bbRequest, toBbError, requireToken, enc } from './client.js';
5
+ export const bitbucketApprovePullRequest = tool({
6
+ description: "Tool to approve a pull request as the authenticated user. Use when you need to formally approve changes in a pull request review process.",
7
+ inputSchema: z.object({
8
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
9
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
10
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
11
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to approve."),
12
+ }),
13
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId }) => {
14
+ const missing = requireToken(bitbucketToken);
15
+ if (missing)
16
+ return missing;
17
+ try {
18
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/approve`);
19
+ }
20
+ catch (error) {
21
+ return toBbError(error, "Failed to approve pull request");
22
+ }
23
+ },
24
+ });
25
+ export const bitbucketCreatePullRequest = tool({
26
+ description: "Creates a new pull request in a specified Bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.",
27
+ inputSchema: z.object({
28
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
29
+ title: z.string().describe("Concise title summarizing the changes for the pull request."),
30
+ repoSlug: z.string().describe("Slug (URL-friendly name) of the repository for the pull request."),
31
+ reviewers: z.array(z.object({ uuid: z.string().describe("UUID of the Bitbucket user to add as reviewer (with curly braces)") })).optional().describe("List of Bitbucket user UUIDs to be added as reviewers. Malformed or non-existent UUIDs trigger validation errors."),
32
+ workspace: z.string().describe("Workspace ID (UUID or slug) of the repository owner."),
33
+ description: z.string().optional().describe("Detailed Markdown description of the pull request, outlining changes and purpose."),
34
+ sourceBranch: z.string().describe("Name of the source branch with changes to be merged."),
35
+ destinationBranch: z.string().optional().describe("Name of the destination branch for merging; defaults to repository's main branch if unspecified."),
36
+ closeSourceBranch: z.boolean().optional().describe("If true, automatically closes the source branch upon pull request merge."),
37
+ }),
38
+ execute: async ({ bitbucketToken, workspace, repoSlug, title, sourceBranch, reviewers, description, destinationBranch, closeSourceBranch }) => {
39
+ const missing = requireToken(bitbucketToken);
40
+ if (missing)
41
+ return missing;
42
+ try {
43
+ const body = {
44
+ title,
45
+ source: { branch: { name: sourceBranch } },
46
+ };
47
+ if (description !== undefined)
48
+ body.description = description;
49
+ if (destinationBranch !== undefined)
50
+ body.destination = { branch: { name: destinationBranch } };
51
+ if (reviewers !== undefined)
52
+ body.reviewers = reviewers;
53
+ if (closeSourceBranch !== undefined)
54
+ body.close_source_branch = closeSourceBranch;
55
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests`, { body });
56
+ }
57
+ catch (error) {
58
+ return toBbError(error, "Failed to create pull request");
59
+ }
60
+ },
61
+ });
62
+ export const bitbucketDeclinePullRequest = tool({
63
+ description: "Decline a Bitbucket Cloud pull request via the REST API. Use this action when you need to reject a pull request that should not be merged. This action is irreversible — once declined, the pull request cannot be reopened and must be recreated if needed.",
64
+ inputSchema: z.object({
65
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
66
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
67
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
68
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to decline."),
69
+ }),
70
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId }) => {
71
+ const missing = requireToken(bitbucketToken);
72
+ if (missing)
73
+ return missing;
74
+ try {
75
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/decline`);
76
+ }
77
+ catch (error) {
78
+ return toBbError(error, "Failed to decline pull request");
79
+ }
80
+ },
81
+ });
82
+ export const bitbucketMergePullRequest = tool({
83
+ description: "Tool to merge a Bitbucket Cloud pull request via the REST API. Use when you need to complete a PR merge after approval and checks pass. Supports custom merge messages, merge strategies, and source branch deletion.",
84
+ inputSchema: z.object({
85
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
86
+ message: z.string().optional().describe("Custom merge commit message. If not provided, Bitbucket generates a default message."),
87
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
88
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
89
+ mergeStrategy: z.string().optional().describe("Merge strategy to use. Common values include 'merge_commit', 'squash', 'fast_forward'. If not specified, uses the repository's default merge strategy."),
90
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to merge."),
91
+ closeSourceBranch: z.boolean().optional().describe("Whether to close the source branch after merging. If not specified, uses the repository's default setting."),
92
+ }),
93
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, message, mergeStrategy, closeSourceBranch }) => {
94
+ const missing = requireToken(bitbucketToken);
95
+ if (missing)
96
+ return missing;
97
+ try {
98
+ const body = {};
99
+ if (message !== undefined)
100
+ body.message = message;
101
+ if (mergeStrategy !== undefined)
102
+ body.merge_strategy = mergeStrategy;
103
+ if (closeSourceBranch !== undefined)
104
+ body.close_source_branch = closeSourceBranch;
105
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/merge`, { body });
106
+ }
107
+ catch (error) {
108
+ return toBbError(error, "Failed to merge pull request");
109
+ }
110
+ },
111
+ });
112
+ export const bitbucketRequestPullRequestChanges = tool({
113
+ description: "Tool to request changes on a pull request as the authenticated user. Use when you need to formally request changes in a pull request review process, indicating the PR needs modifications before approval.",
114
+ inputSchema: z.object({
115
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
116
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
117
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
118
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to request changes on."),
119
+ }),
120
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId }) => {
121
+ const missing = requireToken(bitbucketToken);
122
+ if (missing)
123
+ return missing;
124
+ try {
125
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/request-changes`);
126
+ }
127
+ catch (error) {
128
+ return toBbError(error, "Failed to request pull request changes");
129
+ }
130
+ },
131
+ });
132
+ export const bitbucketUpdatePullRequest = tool({
133
+ description: "Tool to update an existing pull request's editable fields (e.g., title, description, reviewers) via the Bitbucket Cloud API. Use when you need to modify a pull request without creating a new one. Only sends fields that are explicitly provided to avoid accidental overwrites.",
134
+ inputSchema: z.object({
135
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
136
+ draft: z.boolean().optional().describe("If true, marks the pull request as a draft. If false, marks it as ready for review. If omitted, draft status remains unchanged."),
137
+ title: z.string().optional().describe("Updated title for the pull request. If omitted, title remains unchanged."),
138
+ repoSlug: z.string().describe("Repository slug (URL-friendly name) or UUID."),
139
+ reviewers: z.array(z.record(z.any())).optional().describe("Updated list of Bitbucket user UUIDs to be reviewers. Replaces existing reviewers. If omitted, reviewers remain unchanged."),
140
+ workspace: z.string().describe("Workspace ID (slug) or workspace UUID that owns the repository."),
141
+ description: z.string().optional().describe("Updated Markdown description for the pull request. If omitted, description remains unchanged."),
142
+ pullRequestId: z.number().int().positive().describe("Unique ID of the pull request to update."),
143
+ closeSourceBranch: z.boolean().optional().describe("If true, automatically closes the source branch upon pull request merge. If omitted, setting remains unchanged."),
144
+ }),
145
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, draft, title, reviewers, description, closeSourceBranch }) => {
146
+ const missing = requireToken(bitbucketToken);
147
+ if (missing)
148
+ return missing;
149
+ try {
150
+ const body = {};
151
+ if (title !== undefined)
152
+ body.title = title;
153
+ if (description !== undefined)
154
+ body.description = description;
155
+ if (reviewers !== undefined)
156
+ body.reviewers = reviewers;
157
+ if (closeSourceBranch !== undefined)
158
+ body.close_source_branch = closeSourceBranch;
159
+ if (draft !== undefined)
160
+ body.draft = draft;
161
+ return await bbRequest(bitbucketToken, 'PUT', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}`, { body });
162
+ }
163
+ catch (error) {
164
+ return toBbError(error, "Failed to update pull request");
165
+ }
166
+ },
167
+ });
168
+ export const bitbucketGetPullRequest = tool({
169
+ description: "Get a single pull request by ID with complete details.",
170
+ inputSchema: z.object({
171
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
172
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
173
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name). Must exactly match the pull request's workspace (case-sensitive); slug and UUID are not interchangeable."),
174
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to retrieve."),
175
+ }),
176
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId }) => {
177
+ const missing = requireToken(bitbucketToken);
178
+ if (missing)
179
+ return missing;
180
+ try {
181
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}`);
182
+ }
183
+ catch (error) {
184
+ return toBbError(error, "Failed to get pull request");
185
+ }
186
+ },
187
+ });
188
+ export const bitbucketListPullRequests = tool({
189
+ description: "Lists pull requests in a specified, accessible Bitbucket repository, optionally filtering by state (OPEN, MERGED, DECLINED).",
190
+ inputSchema: z.object({
191
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
192
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
193
+ state: z.enum(["OPEN", "MERGED", "DECLINED"]).optional().describe("Lifecycle state of a pull request."),
194
+ pagelen: z.number().int().min(1).max(50).optional().describe("Number of pull requests per page (1-50). Bitbucket default is 10 if not specified."),
195
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
196
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
197
+ }),
198
+ execute: async ({ bitbucketToken, workspace, repoSlug, page, state, pagelen }) => {
199
+ const missing = requireToken(bitbucketToken);
200
+ if (missing)
201
+ return missing;
202
+ try {
203
+ const query = {};
204
+ if (state !== undefined)
205
+ query["state"] = state;
206
+ if (page !== undefined)
207
+ query["page"] = page;
208
+ if (pagelen !== undefined)
209
+ query["pagelen"] = pagelen;
210
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests`, { query });
211
+ }
212
+ catch (error) {
213
+ return toBbError(error, "Failed to list pull requests");
214
+ }
215
+ },
216
+ });
217
+ export const bitbucketListPullRequestTasks = tool({
218
+ description: "Lists all tasks associated with a pull request in a Bitbucket repository. Use when you need to view or track tasks on a PR.",
219
+ inputSchema: z.object({
220
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
221
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
222
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of tasks per page (1-100). Bitbucket default is 10 if not specified."),
223
+ repoSlug: z.string().describe("The slug (URL-friendly name) of the repository."),
224
+ workspace: z.string().describe("The workspace ID or slug (URL-friendly name) that owns the repository."),
225
+ pullRequestId: z.number().int().min(1).describe("The unique identifier of the pull request."),
226
+ }),
227
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, page, pagelen }) => {
228
+ const missing = requireToken(bitbucketToken);
229
+ if (missing)
230
+ return missing;
231
+ try {
232
+ const query = {};
233
+ if (page !== undefined)
234
+ query["page"] = page;
235
+ if (pagelen !== undefined)
236
+ query["pagelen"] = pagelen;
237
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/tasks`, { query });
238
+ }
239
+ catch (error) {
240
+ return toBbError(error, "Failed to list pull request tasks");
241
+ }
242
+ },
243
+ });
244
+ export const bitbucketListPullRequestCommits = tool({
245
+ description: "Tool to retrieve commits for a specified pull request. Use when reviewing the commit history of a PR or analyzing changes included in a pull request.",
246
+ inputSchema: z.object({
247
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
248
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of commits per page (1-100)."),
249
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
250
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
251
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to retrieve commits for."),
252
+ responseDetail: z.enum(["minimal", "full"]).optional().describe("Level of detail in the response. 'minimal' (default) returns only essential commit information (hash, message, date, author name/email, html_link). 'full' returns the complete Bitbucket API response with all nested objects."),
253
+ }),
254
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, pagelen, responseDetail }) => {
255
+ const missing = requireToken(bitbucketToken);
256
+ if (missing)
257
+ return missing;
258
+ try {
259
+ const query = {};
260
+ if (pagelen !== undefined)
261
+ query["pagelen"] = pagelen;
262
+ const data = await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/commits`, { query });
263
+ if (responseDetail === 'full' || !data?.values)
264
+ return data;
265
+ return {
266
+ ...data,
267
+ values: data.values.map((c) => ({
268
+ hash: c.hash,
269
+ message: c.message,
270
+ date: c.date,
271
+ author_name: c.author?.user?.display_name ?? c.author?.raw,
272
+ author_email: /<([^>]+)>/.exec(c.author?.raw || '')?.[1],
273
+ html_link: c.links?.html?.href,
274
+ })),
275
+ };
276
+ }
277
+ catch (error) {
278
+ return toBbError(error, "Failed to list pull request commits");
279
+ }
280
+ },
281
+ });
282
+ export const bitbucketGetPullRequestDiff = tool({
283
+ description: "Tool to fetch the unified diff for a Bitbucket pull request (follows 302 redirect to repository diff). Use when reviewing code changes in a PR. Supports optional truncation for large diffs via max_chars parameter.",
284
+ inputSchema: z.object({
285
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
286
+ maxChars: z.number().int().positive().optional().describe("Maximum number of characters to return in the diff. If the diff exceeds this limit, it will be truncated. If None, no truncation is applied. Use this to protect against very large diffs."),
287
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
288
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
289
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to retrieve the diff for."),
290
+ }),
291
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, maxChars }) => {
292
+ const missing = requireToken(bitbucketToken);
293
+ if (missing)
294
+ return missing;
295
+ try {
296
+ const data = await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/diff`, { accept: 'text/plain' });
297
+ if (typeof maxChars === 'number' && data.length > maxChars) {
298
+ return { diff: data.slice(0, maxChars), truncated: true, original_size: data.length };
299
+ }
300
+ return { diff: data, truncated: false };
301
+ }
302
+ catch (error) {
303
+ return toBbError(error, "Failed to get pull request diff");
304
+ }
305
+ },
306
+ });
307
+ export const bitbucketGetPullRequestDiffstat = tool({
308
+ description: "Tool to get the diffstat for a Bitbucket pull request, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a PR.",
309
+ inputSchema: z.object({
310
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
311
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
312
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of diffstat entries per page (1-100). Bitbucket default is 500 if not specified."),
313
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
314
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
315
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to get diffstat for."),
316
+ }),
317
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, page, pagelen }) => {
318
+ const missing = requireToken(bitbucketToken);
319
+ if (missing)
320
+ return missing;
321
+ try {
322
+ const query = {};
323
+ if (page !== undefined)
324
+ query["page"] = page;
325
+ if (pagelen !== undefined)
326
+ query["pagelen"] = pagelen;
327
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/diffstat`, { query });
328
+ }
329
+ catch (error) {
330
+ return toBbError(error, "Failed to get pull request diffstat");
331
+ }
332
+ },
333
+ });
334
+ export const bitbucketListPullRequestActivity = tool({
335
+ description: "Get paginated activity log for all pull requests in a repository. Returns comments, updates, approvals, and request changes. Use when you need to track pull request activity history.",
336
+ inputSchema: z.object({
337
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
338
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
339
+ pagelen: z.number().int().min(1).max(50).optional().describe("Number of activity entries per page (1-50). Bitbucket default is 20 if not specified."),
340
+ repoSlug: z.string().describe("The repository slug (URL-friendly name)."),
341
+ workspace: z.string().describe("The workspace ID or slug (URL-friendly name)."),
342
+ }),
343
+ execute: async ({ bitbucketToken, workspace, repoSlug, page, pagelen }) => {
344
+ const missing = requireToken(bitbucketToken);
345
+ if (missing)
346
+ return missing;
347
+ try {
348
+ const query = {};
349
+ if (page !== undefined)
350
+ query["page"] = page;
351
+ if (pagelen !== undefined)
352
+ query["pagelen"] = pagelen;
353
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/activity`, { query });
354
+ }
355
+ catch (error) {
356
+ return toBbError(error, "Failed to list pull request activity");
357
+ }
358
+ },
359
+ });
360
+ export const bitbucketListPullRequestComments = tool({
361
+ description: "Retrieves a paginated list of comments on a specific pull request in a Bitbucket repository. Returns global, inline, and threaded comments. Use when you need to view feedback, discussions, or reviews left on a pull request.",
362
+ inputSchema: z.object({
363
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
364
+ page: z.number().int().min(1).optional().describe("Page number for pagination. Defaults to 1 if not specified."),
365
+ sort: z.string().optional().describe("Sort order for results. Default is oldest to newest. Use '-created_on' for newest to oldest."),
366
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of items per page for pagination. Defaults to 10 if not specified."),
367
+ repoSlug: z.string().describe("The slug (URL-friendly version) of the repository name."),
368
+ workspace: z.string().describe("The ID or slug of the workspace that owns the repository."),
369
+ pullRequestId: z.number().int().positive().describe("The pull request ID to retrieve comments for."),
370
+ }),
371
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, page, sort, pagelen }) => {
372
+ const missing = requireToken(bitbucketToken);
373
+ if (missing)
374
+ return missing;
375
+ try {
376
+ const query = {};
377
+ if (page !== undefined)
378
+ query["page"] = page;
379
+ if (pagelen !== undefined)
380
+ query["pagelen"] = pagelen;
381
+ if (sort !== undefined)
382
+ query["sort"] = sort;
383
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/comments`, { query });
384
+ }
385
+ catch (error) {
386
+ return toBbError(error, "Failed to list pull request comments");
387
+ }
388
+ },
389
+ });
390
+ export const bitbucketGetPullRequestComment = tool({
391
+ description: "Tool to retrieve a specific comment from a pull request by its ID. Use when you need to fetch details of a particular pull request comment including content, author, timestamps, and inline location.",
392
+ inputSchema: z.object({
393
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
394
+ repoSlug: z.string().describe("The repository slug (URL-friendly name)."),
395
+ workspace: z.string().describe("The workspace slug or UUID that owns the repository."),
396
+ commentId: z.number().int().positive().describe("The unique identifier for the comment."),
397
+ pullRequestId: z.number().int().positive().describe("The unique identifier of the pull request."),
398
+ }),
399
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, commentId }) => {
400
+ const missing = requireToken(bitbucketToken);
401
+ if (missing)
402
+ return missing;
403
+ try {
404
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/comments/${enc(commentId)}`);
405
+ }
406
+ catch (error) {
407
+ return toBbError(error, "Failed to get pull request comment");
408
+ }
409
+ },
410
+ });
411
+ export const bitbucketCreatePullRequestComment = tool({
412
+ description: "Creates a new comment on a Bitbucket pull request. Supports top-level comments, threaded replies, and inline code comments. Use when providing feedback on a PR, replying to existing comments, or commenting on specific code lines.",
413
+ inputSchema: z.object({
414
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
415
+ inline: z.object({ path: z.string().describe("File path for the inline comment"), from: z.number().int().min(1).optional().describe("Starting line number"), to: z.number().int().min(1).optional().describe("Ending line number") }).optional().describe("Location details for inline code comments."),
416
+ repoSlug: z.string().describe("The slug (URL-friendly version) of the repository name."),
417
+ workspace: z.string().describe("The ID or slug of the workspace that owns the repository."),
418
+ contentRaw: z.string().describe("The raw text content for the comment. Supports markdown formatting which Bitbucket will render."),
419
+ pullRequestId: z.number().int().positive().describe("The unique identifier of the pull request to comment on."),
420
+ parentCommentId: z.number().int().optional().describe("ID of an existing comment to reply to, creating a threaded comment. If omitted, creates a top-level comment."),
421
+ }),
422
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, contentRaw, inline, parentCommentId }) => {
423
+ const missing = requireToken(bitbucketToken);
424
+ if (missing)
425
+ return missing;
426
+ try {
427
+ const body = { content: { raw: contentRaw } };
428
+ if (parentCommentId !== undefined)
429
+ body.parent = { id: parentCommentId };
430
+ if (inline !== undefined)
431
+ body.inline = inline;
432
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/comments`, { body });
433
+ }
434
+ catch (error) {
435
+ return toBbError(error, "Failed to create pull request comment");
436
+ }
437
+ },
438
+ });
439
+ export const bitbucketDeletePullRequestComment = tool({
440
+ description: "Permanently deletes a specific pull request comment (top-level, inline, or threaded reply). Use when removing outdated, incorrect, or unwanted feedback from a pull request.",
441
+ inputSchema: z.object({
442
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
443
+ repoSlug: z.string().describe("The slug of the repository. This is the repository's name, usually in lowercase and with hyphens instead of spaces."),
444
+ workspace: z.string().describe("The workspace ID (slug) or UUID of the Bitbucket workspace that owns the repository. This can be the workspace name or its universally unique identifier."),
445
+ commentId: z.number().int().describe("The unique identifier of the comment to be deleted from the pull request. This can be a top-level comment, inline comment, or threaded reply."),
446
+ pullRequestId: z.number().int().describe("The unique identifier of the pull request containing the comment to be deleted."),
447
+ }),
448
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, commentId }) => {
449
+ const missing = requireToken(bitbucketToken);
450
+ if (missing)
451
+ return missing;
452
+ try {
453
+ return await bbRequest(bitbucketToken, 'DELETE', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/comments/${enc(commentId)}`);
454
+ }
455
+ catch (error) {
456
+ return toBbError(error, "Failed to delete pull request comment");
457
+ }
458
+ },
459
+ });
460
+ export const bitbucketResolvePullRequestComment = tool({
461
+ description: "Tool to resolve or reopen a pull request comment thread. Use when marking a comment as addressed during review or reopening a previously resolved thread.",
462
+ inputSchema: z.object({
463
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
464
+ action: z.enum(["resolve", "reopen"]).optional().describe("Action to perform: 'resolve' marks the comment thread as addressed, 'reopen' unmarks it."),
465
+ repoSlug: z.string().describe("The repository slug (URL-friendly name)."),
466
+ workspace: z.string().describe("The workspace slug or UUID that owns the repository."),
467
+ commentId: z.number().int().positive().describe("The unique identifier for the comment to resolve or reopen."),
468
+ pullRequestId: z.number().int().positive().describe("The unique identifier of the pull request."),
469
+ }),
470
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, commentId, action }) => {
471
+ const missing = requireToken(bitbucketToken);
472
+ if (missing)
473
+ return missing;
474
+ try {
475
+ if (action === 'reopen') {
476
+ return await bbRequest(bitbucketToken, 'DELETE', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/comments/${enc(commentId)}/resolve`);
477
+ }
478
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/comments/${enc(commentId)}/resolve`);
479
+ }
480
+ catch (error) {
481
+ return toBbError(error, "Failed to resolve pull request comment");
482
+ }
483
+ },
484
+ });
485
+ export const bitbucketListPullRequestStatuses = tool({
486
+ description: "Returns all build statuses (e.g., CI/CD pipeline results) for a specific pull request. Use when you need to check build status, verify test results, or monitor deployment pipelines for a pull request.",
487
+ inputSchema: z.object({
488
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
489
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
490
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of statuses per page (1-100). Bitbucket default is 30 if not specified."),
491
+ repoSlug: z.string().describe("The slug or UUID of the repository. This is usually the repository's name in URL-friendly format."),
492
+ workspace: z.string().describe("The workspace ID or slug that owns the repository. This can typically be found in the URL of your Bitbucket workspace."),
493
+ pullRequestId: z.number().int().positive().describe("The ID of the pull request to retrieve statuses for."),
494
+ }),
495
+ execute: async ({ bitbucketToken, workspace, repoSlug, pullRequestId, page, pagelen }) => {
496
+ const missing = requireToken(bitbucketToken);
497
+ if (missing)
498
+ return missing;
499
+ try {
500
+ const query = {};
501
+ if (page !== undefined)
502
+ query["page"] = page;
503
+ if (pagelen !== undefined)
504
+ query["pagelen"] = pagelen;
505
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/pullrequests/${enc(pullRequestId)}/statuses`, { query });
506
+ }
507
+ catch (error) {
508
+ return toBbError(error, "Failed to list pull request statuses");
509
+ }
510
+ },
511
+ });
512
+ export const bitbucketGetWorkspacePullRequestsByUser = tool({
513
+ description: "Tool to get all workspace pull requests authored by a specified user. Use when you need to retrieve pull requests created by a specific user across all repositories in a workspace.",
514
+ inputSchema: z.object({
515
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
516
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
517
+ state: z.enum(["OPEN", "MERGED", "DECLINED"]).optional().describe("Lifecycle state of a pull request."),
518
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of pull requests per page (1-100). Bitbucket default is 10 if not specified."),
519
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
520
+ selectedUser: z.string().describe("The username of the user whose pull requests you want to retrieve."),
521
+ }),
522
+ execute: async ({ bitbucketToken, workspace, selectedUser, page, state, pagelen }) => {
523
+ const missing = requireToken(bitbucketToken);
524
+ if (missing)
525
+ return missing;
526
+ try {
527
+ const query = {};
528
+ if (state !== undefined)
529
+ query["state"] = state;
530
+ if (page !== undefined)
531
+ query["page"] = page;
532
+ if (pagelen !== undefined)
533
+ query["pagelen"] = pagelen;
534
+ return await bbRequest(bitbucketToken, 'GET', `/workspaces/${enc(workspace)}/pullrequests/${enc(selectedUser)}`, { query });
535
+ }
536
+ catch (error) {
537
+ return toBbError(error, "Failed to get workspace pull requests by user");
538
+ }
539
+ },
540
+ });
541
+ //# sourceMappingURL=pull-requests.js.map
@@ -0,0 +1,84 @@
1
+ export declare const bitbucketCreateCommitReportAnnotations: import("ai").Tool<{
2
+ commit: string;
3
+ repoSlug: string;
4
+ workspace: string;
5
+ reportId: string;
6
+ annotations: {
7
+ path: string;
8
+ summary: string;
9
+ external_id: string;
10
+ severity: "MEDIUM" | "CRITICAL" | "HIGH" | "LOW";
11
+ annotation_type: "VULNERABILITY" | "CODE_SMELL" | "BUG";
12
+ line: number;
13
+ details?: string | undefined;
14
+ link?: string | undefined;
15
+ }[];
16
+ bitbucketToken?: string | undefined;
17
+ }, any>;
18
+ export declare const bitbucketGetCommitReport: import("ai").Tool<{
19
+ commit: string;
20
+ repoSlug: string;
21
+ workspace: string;
22
+ reportId: string;
23
+ bitbucketToken?: string | undefined;
24
+ }, any>;
25
+ export declare const bitbucketListCommitReports: import("ai").Tool<{
26
+ commit: string;
27
+ repoSlug: string;
28
+ workspace: string;
29
+ bitbucketToken?: string | undefined;
30
+ }, any>;
31
+ export declare const bitbucketGetCommitReportAnnotation: import("ai").Tool<{
32
+ commit: string;
33
+ repoSlug: string;
34
+ workspace: string;
35
+ reportId: string;
36
+ annotationId: string;
37
+ bitbucketToken?: string | undefined;
38
+ }, any>;
39
+ export declare const bitbucketDeleteCommitReportAnnotation: import("ai").Tool<{
40
+ commit: string;
41
+ repoSlug: string;
42
+ workspace: string;
43
+ reportId: string;
44
+ annotationId: string;
45
+ bitbucketToken?: string | undefined;
46
+ }, any>;
47
+ export declare const bitbucketUpdateCommitReportAnnotation: import("ai").Tool<{
48
+ summary: string;
49
+ commit: string;
50
+ severity: "MEDIUM" | "CRITICAL" | "HIGH" | "LOW";
51
+ repoSlug: string;
52
+ workspace: string;
53
+ reportId: string;
54
+ annotationId: string;
55
+ annotationType: "VULNERABILITY" | "CODE_SMELL" | "BUG";
56
+ path?: string | undefined;
57
+ result?: "PASSED" | "FAILED" | "IGNORED" | "SKIPPED" | undefined;
58
+ details?: string | undefined;
59
+ link?: string | undefined;
60
+ externalId?: string | undefined;
61
+ bitbucketToken?: string | undefined;
62
+ line?: number | undefined;
63
+ }, any>;
64
+ export declare const bitbucketUpdateCommitInsightReport: import("ai").Tool<{
65
+ title: string;
66
+ details: string;
67
+ commit: string;
68
+ repoSlug: string;
69
+ workspace: string;
70
+ reportId: string;
71
+ reportType: "BUG" | "SECURITY" | "COVERAGE" | "TEST";
72
+ result?: "PASSED" | "FAILED" | "PENDING" | undefined;
73
+ data?: {
74
+ value: string | number | boolean;
75
+ type: "DURATION" | "BOOLEAN" | "NUMBER" | "PERCENTAGE" | "TEXT" | "LINK" | "DATE";
76
+ title: string;
77
+ }[] | undefined;
78
+ link?: string | undefined;
79
+ reporter?: string | undefined;
80
+ bitbucketToken?: string | undefined;
81
+ logoUrl?: string | undefined;
82
+ remoteLinkEnabled?: boolean | undefined;
83
+ }, any>;
84
+ //# sourceMappingURL=reports.d.ts.map