@rnsk/toolkits 0.0.11 → 0.0.12

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 (492) hide show
  1. package/README.md +12 -2
  2. package/dist/index.d.ts +11 -1
  3. package/dist/index.js +21 -1
  4. package/dist/toolkits/accuweather/icon.d.ts +5 -0
  5. package/dist/toolkits/accuweather/icon.js +6 -0
  6. package/dist/toolkits/accuweather/manifest.d.ts +3 -0
  7. package/dist/toolkits/accuweather/manifest.js +35 -0
  8. package/dist/toolkits/accuweather/tools/alerts-alarms.d.ts +13 -0
  9. package/dist/toolkits/accuweather/tools/alerts-alarms.js +25 -0
  10. package/dist/toolkits/accuweather/tools/client.d.ts +17 -0
  11. package/dist/toolkits/accuweather/tools/client.js +50 -0
  12. package/dist/toolkits/accuweather/tools/current-conditions.d.ts +21 -0
  13. package/dist/toolkits/accuweather/tools/current-conditions.js +46 -0
  14. package/dist/toolkits/accuweather/tools/forecasts.d.ts +17 -0
  15. package/dist/toolkits/accuweather/tools/forecasts.js +41 -0
  16. package/dist/toolkits/accuweather/tools/imagery.d.ts +7 -0
  17. package/dist/toolkits/accuweather/tools/imagery.js +21 -0
  18. package/dist/toolkits/accuweather/tools/index.d.ts +21 -0
  19. package/dist/toolkits/accuweather/tools/index.js +60 -0
  20. package/dist/toolkits/accuweather/tools/indices.d.ts +29 -0
  21. package/dist/toolkits/accuweather/tools/indices.js +66 -0
  22. package/dist/toolkits/accuweather/tools/lightning.d.ts +11 -0
  23. package/dist/toolkits/accuweather/tools/lightning.js +35 -0
  24. package/dist/toolkits/accuweather/tools/locations.d.ts +101 -0
  25. package/dist/toolkits/accuweather/tools/locations.js +280 -0
  26. package/dist/toolkits/accuweather/tools/minutecast.d.ts +11 -0
  27. package/dist/toolkits/accuweather/tools/minutecast.js +28 -0
  28. package/dist/toolkits/accuweather/tools/translations.d.ts +20 -0
  29. package/dist/toolkits/accuweather/tools/translations.js +49 -0
  30. package/dist/toolkits/accuweather/tools/tropical.d.ts +49 -0
  31. package/dist/toolkits/accuweather/tools/tropical.js +108 -0
  32. package/dist/toolkits/aws/tools/cloudwatch/filter-log-events.d.ts +2 -2
  33. package/dist/toolkits/aws/tools/cloudwatch/get-metric-data.d.ts +2 -2
  34. package/dist/toolkits/aws/tools/index.d.ts +4 -4
  35. package/dist/toolkits/bitbucket/tools/commits.d.ts +3 -3
  36. package/dist/toolkits/bitbucket/tools/index.d.ts +4 -4
  37. package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +1 -1
  38. package/dist/toolkits/bitbucket/tools/repositories.d.ts +1 -1
  39. package/dist/toolkits/cloudflare/tools/create-dns-record.d.ts +2 -2
  40. package/dist/toolkits/cloudflare/tools/create-zone.d.ts +1 -1
  41. package/dist/toolkits/cloudflare/tools/index.d.ts +9 -9
  42. package/dist/toolkits/cloudflare/tools/list-accounts.d.ts +1 -1
  43. package/dist/toolkits/cloudflare/tools/list-dns-records.d.ts +1 -1
  44. package/dist/toolkits/cloudflare/tools/list-tunnels.d.ts +1 -1
  45. package/dist/toolkits/cloudflare/tools/list-zones.d.ts +1 -1
  46. package/dist/toolkits/cloudflare/tools/update-dns-record.d.ts +1 -1
  47. package/dist/toolkits/cloudflare/tools/update-zone.d.ts +1 -1
  48. package/dist/toolkits/convex/tools/deployments.d.ts +1 -1
  49. package/dist/toolkits/convex/tools/index.d.ts +1 -1
  50. package/dist/toolkits/datadog/tools/events.d.ts +1 -1
  51. package/dist/toolkits/datadog/tools/index.d.ts +5 -5
  52. package/dist/toolkits/datadog/tools/integrations.d.ts +1 -1
  53. package/dist/toolkits/datadog/tools/metrics.d.ts +1 -1
  54. package/dist/toolkits/datadog/tools/monitors.d.ts +1 -1
  55. package/dist/toolkits/datadog/tools/synthetics.d.ts +1 -1
  56. package/dist/toolkits/dev-to/tools/articles.d.ts +1 -1
  57. package/dist/toolkits/dev-to/tools/community.d.ts +1 -1
  58. package/dist/toolkits/dev-to/tools/index.d.ts +2 -2
  59. package/dist/toolkits/discord/tools/applications.d.ts +1 -1
  60. package/dist/toolkits/discord/tools/index.d.ts +1 -1
  61. package/dist/toolkits/figma/tools/create-dev-resources.d.ts +1 -1
  62. package/dist/toolkits/figma/tools/get-activity-logs.d.ts +2 -2
  63. package/dist/toolkits/figma/tools/get-file-json.d.ts +1 -1
  64. package/dist/toolkits/figma/tools/get-team-component-sets.d.ts +1 -1
  65. package/dist/toolkits/figma/tools/get-team-components.d.ts +1 -1
  66. package/dist/toolkits/figma/tools/get-team-styles.d.ts +1 -1
  67. package/dist/toolkits/figma/tools/get-versions-of-a-file.d.ts +1 -1
  68. package/dist/toolkits/figma/tools/index.d.ts +7 -7
  69. package/dist/toolkits/figma/tools/update-dev-resources.d.ts +1 -1
  70. package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +1 -1
  71. package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +1 -1
  72. package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +1 -1
  73. package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +1 -1
  74. package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +2 -2
  75. package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +1 -1
  76. package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +1 -1
  77. package/dist/toolkits/github/tools/Projects/update-project.d.ts +1 -1
  78. package/dist/toolkits/github/tools/Releases/create-release.d.ts +1 -1
  79. package/dist/toolkits/github/tools/Releases/update-release.d.ts +1 -1
  80. package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +2 -2
  81. package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +1 -1
  82. package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +1 -1
  83. package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +1 -1
  84. package/dist/toolkits/github/tools/Teams/update-team.d.ts +1 -1
  85. package/dist/toolkits/github/tools/Users/follow-user.d.ts +1 -1
  86. package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +1 -1
  87. package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +1 -1
  88. package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +1 -1
  89. package/dist/toolkits/github/tools/index.d.ts +21 -21
  90. package/dist/toolkits/gitlab/tools/index.d.ts +2 -2
  91. package/dist/toolkits/gitlab/tools/pipelines.d.ts +1 -1
  92. package/dist/toolkits/gitlab/tools/projects.d.ts +1 -1
  93. package/dist/toolkits/gmail/manifest.js +204 -1
  94. package/dist/toolkits/gmail/tools/create-label.d.ts +2 -2
  95. package/dist/toolkits/gmail/tools/index.d.ts +5 -0
  96. package/dist/toolkits/gmail/tools/index.js +5 -0
  97. package/dist/toolkits/gmail/tools/labels-threads.d.ts +47 -0
  98. package/dist/toolkits/gmail/tools/labels-threads.js +110 -0
  99. package/dist/toolkits/gmail/tools/list-drafts.d.ts +1 -1
  100. package/dist/toolkits/gmail/tools/list-threads.d.ts +1 -1
  101. package/dist/toolkits/gmail/tools/mailbox.d.ts +46 -0
  102. package/dist/toolkits/gmail/tools/mailbox.js +142 -0
  103. package/dist/toolkits/gmail/tools/messages-extra.d.ts +34 -0
  104. package/dist/toolkits/gmail/tools/messages-extra.js +176 -0
  105. package/dist/toolkits/gmail/tools/people-extra.d.ts +18 -0
  106. package/dist/toolkits/gmail/tools/people-extra.js +67 -0
  107. package/dist/toolkits/gmail/tools/settings.d.ts +100 -0
  108. package/dist/toolkits/gmail/tools/settings.js +210 -0
  109. package/dist/toolkits/google-analytics/tools/admin.d.ts +3 -3
  110. package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +2 -2
  111. package/dist/toolkits/google-classroom/tools/announcement-addons.d.ts +4 -4
  112. package/dist/toolkits/google-classroom/tools/coursework-addons.d.ts +2 -2
  113. package/dist/toolkits/google-classroom/tools/coursework.d.ts +1 -1
  114. package/dist/toolkits/google-classroom/tools/index.d.ts +9 -9
  115. package/dist/toolkits/google-classroom/tools/invitations.d.ts +2 -2
  116. package/dist/toolkits/google-classroom/tools/materials-addons.d.ts +2 -2
  117. package/dist/toolkits/google-classroom/tools/posts-addons.d.ts +1 -1
  118. package/dist/toolkits/google-contacts/tools/contacts.d.ts +5 -5
  119. package/dist/toolkits/google-contacts/tools/directory.d.ts +3 -3
  120. package/dist/toolkits/google-contacts/tools/groups.d.ts +1 -1
  121. package/dist/toolkits/google-contacts/tools/index.d.ts +9 -9
  122. package/dist/toolkits/google-drive/tools/index.d.ts +3 -3
  123. package/dist/toolkits/google-drive/tools/search-files.d.ts +1 -1
  124. package/dist/toolkits/google-drive/tools/upload-file.d.ts +2 -2
  125. package/dist/toolkits/google-maps/tools/index.d.ts +4 -4
  126. package/dist/toolkits/google-maps/tools/places.d.ts +4 -4
  127. package/dist/toolkits/google-sheets/tools/index.d.ts +1 -1
  128. package/dist/toolkits/google-sheets/tools/list-spreadsheets.d.ts +1 -1
  129. package/dist/toolkits/google-tasks/tools/batch-execute.d.ts +1 -1
  130. package/dist/toolkits/google-tasks/tools/index.d.ts +2 -2
  131. package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
  132. package/dist/toolkits/groww/tools/index.d.ts +8 -8
  133. package/dist/toolkits/groww/tools/margin.d.ts +1 -1
  134. package/dist/toolkits/groww/tools/orders.d.ts +2 -2
  135. package/dist/toolkits/groww/tools/smart-orders.d.ts +5 -5
  136. package/dist/toolkits/gumroad/icon.d.ts +5 -0
  137. package/dist/toolkits/gumroad/icon.js +6 -0
  138. package/dist/toolkits/gumroad/manifest.d.ts +3 -0
  139. package/dist/toolkits/gumroad/manifest.js +41 -0
  140. package/dist/toolkits/gumroad/tools/client.d.ts +16 -0
  141. package/dist/toolkits/gumroad/tools/client.js +53 -0
  142. package/dist/toolkits/gumroad/tools/index.d.ts +12 -0
  143. package/dist/toolkits/gumroad/tools/index.js +17 -0
  144. package/dist/toolkits/gumroad/tools/sales.d.ts +34 -0
  145. package/dist/toolkits/gumroad/tools/sales.js +68 -0
  146. package/dist/toolkits/hostinger/tools/hosting.d.ts +2 -2
  147. package/dist/toolkits/hostinger/tools/index.d.ts +3 -3
  148. package/dist/toolkits/hostinger/tools/whois.d.ts +1 -1
  149. package/dist/toolkits/hugging-face/tools/datasets.d.ts +1 -1
  150. package/dist/toolkits/hugging-face/tools/index.d.ts +2 -2
  151. package/dist/toolkits/hugging-face/tools/papers.d.ts +1 -1
  152. package/dist/toolkits/jira/tools/boards.d.ts +1 -1
  153. package/dist/toolkits/jira/tools/index.d.ts +4 -4
  154. package/dist/toolkits/jira/tools/meta.d.ts +1 -1
  155. package/dist/toolkits/jira/tools/projects.d.ts +1 -1
  156. package/dist/toolkits/jira/tools/users.d.ts +1 -1
  157. package/dist/toolkits/kaggle/tools/competitions.d.ts +1 -1
  158. package/dist/toolkits/kaggle/tools/datasets.d.ts +1 -1
  159. package/dist/toolkits/kaggle/tools/index.d.ts +7 -7
  160. package/dist/toolkits/kaggle/tools/kernels.d.ts +3 -3
  161. package/dist/toolkits/kaggle/tools/models.d.ts +2 -2
  162. package/dist/toolkits/nasa/tools/cmr.d.ts +3 -3
  163. package/dist/toolkits/nasa/tools/eonet.d.ts +5 -5
  164. package/dist/toolkits/nasa/tools/index.d.ts +9 -9
  165. package/dist/toolkits/nasa/tools/ntrs.d.ts +1 -1
  166. package/dist/toolkits/neon/tools/auth.d.ts +5 -5
  167. package/dist/toolkits/neon/tools/index.d.ts +5 -5
  168. package/dist/toolkits/new-relic/tools/admin.d.ts +1 -1
  169. package/dist/toolkits/new-relic/tools/alert-policies.d.ts +1 -1
  170. package/dist/toolkits/new-relic/tools/apm.d.ts +9 -9
  171. package/dist/toolkits/new-relic/tools/conditions.d.ts +5 -5
  172. package/dist/toolkits/new-relic/tools/config.d.ts +1 -1
  173. package/dist/toolkits/new-relic/tools/dashboards.d.ts +2 -2
  174. package/dist/toolkits/new-relic/tools/entities.d.ts +1 -1
  175. package/dist/toolkits/new-relic/tools/notifications.d.ts +1 -1
  176. package/dist/toolkits/new-relic/tools/nrql-conditions.d.ts +2 -2
  177. package/dist/toolkits/notebook-lm/tools/index.d.ts +2 -2
  178. package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.d.ts +1 -1
  179. package/dist/toolkits/notebook-lm/tools/upload-source-file.d.ts +1 -1
  180. package/dist/toolkits/postman/icon.d.ts +5 -0
  181. package/dist/toolkits/postman/icon.js +14 -0
  182. package/dist/toolkits/postman/manifest.d.ts +3 -0
  183. package/dist/toolkits/postman/manifest.js +35 -0
  184. package/dist/toolkits/postman/tools/client.d.ts +23 -0
  185. package/dist/toolkits/postman/tools/client.js +59 -0
  186. package/dist/toolkits/postman/tools/collections.d.ts +93 -0
  187. package/dist/toolkits/postman/tools/collections.js +358 -0
  188. package/dist/toolkits/postman/tools/comments.d.ts +113 -0
  189. package/dist/toolkits/postman/tools/comments.js +387 -0
  190. package/dist/toolkits/postman/tools/designs_and_apis.d.ts +106 -0
  191. package/dist/toolkits/postman/tools/designs_and_apis.js +385 -0
  192. package/dist/toolkits/postman/tools/environments.d.ts +63 -0
  193. package/dist/toolkits/postman/tools/environments.js +208 -0
  194. package/dist/toolkits/postman/tools/index.d.ts +1204 -0
  195. package/dist/toolkits/postman/tools/index.js +143 -0
  196. package/dist/toolkits/postman/tools/items.d.ts +90 -0
  197. package/dist/toolkits/postman/tools/items.js +286 -0
  198. package/dist/toolkits/postman/tools/mocks_and_tests.d.ts +100 -0
  199. package/dist/toolkits/postman/tools/mocks_and_tests.js +363 -0
  200. package/dist/toolkits/postman/tools/pull_requests.d.ts +26 -0
  201. package/dist/toolkits/postman/tools/pull_requests.js +108 -0
  202. package/dist/toolkits/postman/tools/scim_users_teams.d.ts +31 -0
  203. package/dist/toolkits/postman/tools/scim_users_teams.js +156 -0
  204. package/dist/toolkits/postman/tools/specs.d.ts +100 -0
  205. package/dist/toolkits/postman/tools/specs.js +380 -0
  206. package/dist/toolkits/postman/tools/webhooks.d.ts +8 -0
  207. package/dist/toolkits/postman/tools/webhooks.js +40 -0
  208. package/dist/toolkits/postman/tools/workspaces.d.ts +50 -0
  209. package/dist/toolkits/postman/tools/workspaces.js +198 -0
  210. package/dist/toolkits/prometheus/icon.d.ts +5 -0
  211. package/dist/toolkits/prometheus/icon.js +52 -0
  212. package/dist/toolkits/prometheus/manifest.d.ts +3 -0
  213. package/dist/toolkits/prometheus/manifest.js +32 -0
  214. package/dist/toolkits/prometheus/tools/admin.d.ts +19 -0
  215. package/dist/toolkits/prometheus/tools/admin.js +90 -0
  216. package/dist/toolkits/prometheus/tools/client.d.ts +22 -0
  217. package/dist/toolkits/prometheus/tools/client.js +91 -0
  218. package/dist/toolkits/prometheus/tools/discovery.d.ts +82 -0
  219. package/dist/toolkits/prometheus/tools/discovery.js +182 -0
  220. package/dist/toolkits/prometheus/tools/index.d.ts +16 -0
  221. package/dist/toolkits/prometheus/tools/index.js +51 -0
  222. package/dist/toolkits/prometheus/tools/query.d.ts +33 -0
  223. package/dist/toolkits/prometheus/tools/query.js +101 -0
  224. package/dist/toolkits/prometheus/tools/status.d.ts +66 -0
  225. package/dist/toolkits/prometheus/tools/status.js +248 -0
  226. package/dist/toolkits/prometheus/tools/targets.d.ts +31 -0
  227. package/dist/toolkits/prometheus/tools/targets.js +117 -0
  228. package/dist/toolkits/razorpay/icon.d.ts +5 -0
  229. package/dist/toolkits/razorpay/icon.js +33 -0
  230. package/dist/toolkits/razorpay/manifest.d.ts +3 -0
  231. package/dist/toolkits/razorpay/manifest.js +32 -0
  232. package/dist/toolkits/razorpay/tools/client.d.ts +24 -0
  233. package/dist/toolkits/razorpay/tools/client.js +73 -0
  234. package/dist/toolkits/razorpay/tools/customers.d.ts +29 -0
  235. package/dist/toolkits/razorpay/tools/customers.js +53 -0
  236. package/dist/toolkits/razorpay/tools/index.d.ts +16 -0
  237. package/dist/toolkits/razorpay/tools/index.js +56 -0
  238. package/dist/toolkits/razorpay/tools/invoices.d.ts +169 -0
  239. package/dist/toolkits/razorpay/tools/invoices.js +143 -0
  240. package/dist/toolkits/razorpay/tools/items-links.d.ts +98 -0
  241. package/dist/toolkits/razorpay/tools/items-links.js +131 -0
  242. package/dist/toolkits/razorpay/tools/orders.d.ts +63 -0
  243. package/dist/toolkits/razorpay/tools/orders.js +99 -0
  244. package/dist/toolkits/razorpay/tools/payouts.d.ts +58 -0
  245. package/dist/toolkits/razorpay/tools/payouts.js +91 -0
  246. package/dist/toolkits/servicenow/icon.d.ts +5 -0
  247. package/dist/toolkits/servicenow/icon.js +6 -0
  248. package/dist/toolkits/servicenow/manifest.d.ts +3 -0
  249. package/dist/toolkits/servicenow/manifest.js +33 -0
  250. package/dist/toolkits/servicenow/tools/attachments.d.ts +35 -0
  251. package/dist/toolkits/servicenow/tools/attachments.js +120 -0
  252. package/dist/toolkits/servicenow/tools/catalog.d.ts +122 -0
  253. package/dist/toolkits/servicenow/tools/catalog.js +333 -0
  254. package/dist/toolkits/servicenow/tools/changes.d.ts +374 -0
  255. package/dist/toolkits/servicenow/tools/changes.js +609 -0
  256. package/dist/toolkits/servicenow/tools/cicd.d.ts +109 -0
  257. package/dist/toolkits/servicenow/tools/cicd.js +316 -0
  258. package/dist/toolkits/servicenow/tools/client.d.ts +42 -0
  259. package/dist/toolkits/servicenow/tools/client.js +168 -0
  260. package/dist/toolkits/servicenow/tools/cmdb.d.ts +224 -0
  261. package/dist/toolkits/servicenow/tools/cmdb.js +460 -0
  262. package/dist/toolkits/servicenow/tools/imports.d.ts +13 -0
  263. package/dist/toolkits/servicenow/tools/imports.js +36 -0
  264. package/dist/toolkits/servicenow/tools/incidents.d.ts +94 -0
  265. package/dist/toolkits/servicenow/tools/incidents.js +226 -0
  266. package/dist/toolkits/servicenow/tools/index.d.ts +1566 -0
  267. package/dist/toolkits/servicenow/tools/index.js +169 -0
  268. package/dist/toolkits/servicenow/tools/platform.d.ts +124 -0
  269. package/dist/toolkits/servicenow/tools/platform.js +298 -0
  270. package/dist/toolkits/servicenow/tools/records.d.ts +73 -0
  271. package/dist/toolkits/servicenow/tools/records.js +185 -0
  272. package/dist/toolkits/servicenow/tools/sdon.d.ts +48 -0
  273. package/dist/toolkits/servicenow/tools/sdon.js +81 -0
  274. package/dist/toolkits/slack/tools/admin-conversations.d.ts +2 -2
  275. package/dist/toolkits/slack/tools/emoji.d.ts +1 -1
  276. package/dist/toolkits/slack/tools/messages.d.ts +2 -2
  277. package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +2 -2
  278. package/dist/toolkits/slack/tools/search.d.ts +3 -3
  279. package/dist/toolkits/slack/tools/users.d.ts +1 -1
  280. package/dist/toolkits/vercel/icon.d.ts +5 -0
  281. package/dist/toolkits/vercel/icon.js +6 -0
  282. package/dist/toolkits/vercel/manifest.d.ts +3 -0
  283. package/dist/toolkits/vercel/manifest.js +35 -0
  284. package/dist/toolkits/vercel/tools/aliases.d.ts +47 -0
  285. package/dist/toolkits/vercel/tools/aliases.js +141 -0
  286. package/dist/toolkits/vercel/tools/auth.d.ts +23 -0
  287. package/dist/toolkits/vercel/tools/auth.js +117 -0
  288. package/dist/toolkits/vercel/tools/cache-artifacts.d.ts +57 -0
  289. package/dist/toolkits/vercel/tools/cache-artifacts.js +205 -0
  290. package/dist/toolkits/vercel/tools/certs.d.ts +9 -0
  291. package/dist/toolkits/vercel/tools/certs.js +31 -0
  292. package/dist/toolkits/vercel/tools/client.d.ts +17 -0
  293. package/dist/toolkits/vercel/tools/client.js +53 -0
  294. package/dist/toolkits/vercel/tools/deployments.d.ts +169 -0
  295. package/dist/toolkits/vercel/tools/deployments.js +443 -0
  296. package/dist/toolkits/vercel/tools/domains.d.ts +229 -0
  297. package/dist/toolkits/vercel/tools/domains.js +719 -0
  298. package/dist/toolkits/vercel/tools/edge-config.d.ts +110 -0
  299. package/dist/toolkits/vercel/tools/edge-config.js +402 -0
  300. package/dist/toolkits/vercel/tools/environment-variables.d.ts +137 -0
  301. package/dist/toolkits/vercel/tools/environment-variables.js +411 -0
  302. package/dist/toolkits/vercel/tools/firewall.d.ts +57 -0
  303. package/dist/toolkits/vercel/tools/firewall.js +187 -0
  304. package/dist/toolkits/vercel/tools/index.d.ts +1944 -0
  305. package/dist/toolkits/vercel/tools/index.js +312 -0
  306. package/dist/toolkits/vercel/tools/logs.d.ts +35 -0
  307. package/dist/toolkits/vercel/tools/logs.js +129 -0
  308. package/dist/toolkits/vercel/tools/misc.d.ts +140 -0
  309. package/dist/toolkits/vercel/tools/misc.js +486 -0
  310. package/dist/toolkits/vercel/tools/projects.d.ts +194 -0
  311. package/dist/toolkits/vercel/tools/projects.js +468 -0
  312. package/dist/toolkits/vercel/tools/teams.d.ts +50 -0
  313. package/dist/toolkits/vercel/tools/teams.js +144 -0
  314. package/dist/toolkits/vercel/tools/webhooks.d.ts +27 -0
  315. package/dist/toolkits/vercel/tools/webhooks.js +103 -0
  316. package/dist/toolkits/wise/icon.d.ts +5 -0
  317. package/dist/toolkits/wise/icon.js +15 -0
  318. package/dist/toolkits/wise/manifest.d.ts +3 -0
  319. package/dist/toolkits/wise/manifest.js +30 -0
  320. package/dist/toolkits/wise/tools/create-quote.d.ts +86 -0
  321. package/dist/toolkits/wise/tools/create-quote.js +64 -0
  322. package/dist/toolkits/wise/tools/get-exchange-rate.d.ts +42 -0
  323. package/dist/toolkits/wise/tools/get-exchange-rate.js +44 -0
  324. package/dist/toolkits/wise/tools/get-quote.d.ts +82 -0
  325. package/dist/toolkits/wise/tools/get-quote.js +46 -0
  326. package/dist/toolkits/wise/tools/index.d.ts +475 -0
  327. package/dist/toolkits/wise/tools/index.js +77 -0
  328. package/dist/toolkits/wise/tools/list-activities.d.ts +43 -0
  329. package/dist/toolkits/wise/tools/list-activities.js +49 -0
  330. package/dist/toolkits/wise/tools/list-balances.d.ts +30 -0
  331. package/dist/toolkits/wise/tools/list-balances.js +34 -0
  332. package/dist/toolkits/wise/tools/list-currencies.d.ts +29 -0
  333. package/dist/toolkits/wise/tools/list-currencies.js +31 -0
  334. package/dist/toolkits/wise/tools/list-profiles.d.ts +28 -0
  335. package/dist/toolkits/wise/tools/list-profiles.js +29 -0
  336. package/dist/toolkits/wise/tools/list-recipients.d.ts +43 -0
  337. package/dist/toolkits/wise/tools/list-recipients.js +54 -0
  338. package/dist/toolkits/wise/tools/list-transfers.d.ts +44 -0
  339. package/dist/toolkits/wise/tools/list-transfers.js +52 -0
  340. package/dist/toolkits/wise/tools/utils.d.ts +18 -0
  341. package/dist/toolkits/wise/tools/utils.js +39 -0
  342. package/dist/toolkits/wordpress/icon.d.ts +5 -0
  343. package/dist/toolkits/wordpress/icon.js +6 -0
  344. package/dist/toolkits/wordpress/manifest.d.ts +3 -0
  345. package/dist/toolkits/wordpress/manifest.js +36 -0
  346. package/dist/toolkits/wordpress/tools/create-draft-post.d.ts +47 -0
  347. package/dist/toolkits/wordpress/tools/create-draft-post.js +68 -0
  348. package/dist/toolkits/wordpress/tools/delete-draft-post.d.ts +38 -0
  349. package/dist/toolkits/wordpress/tools/delete-draft-post.js +51 -0
  350. package/dist/toolkits/wordpress/tools/get-post.d.ts +41 -0
  351. package/dist/toolkits/wordpress/tools/get-post.js +48 -0
  352. package/dist/toolkits/wordpress/tools/get-site-overview.d.ts +67 -0
  353. package/dist/toolkits/wordpress/tools/get-site-overview.js +91 -0
  354. package/dist/toolkits/wordpress/tools/index.d.ts +489 -0
  355. package/dist/toolkits/wordpress/tools/index.js +85 -0
  356. package/dist/toolkits/wordpress/tools/list-blogging-prompts.d.ts +48 -0
  357. package/dist/toolkits/wordpress/tools/list-blogging-prompts.js +55 -0
  358. package/dist/toolkits/wordpress/tools/list-cms-resources.d.ts +45 -0
  359. package/dist/toolkits/wordpress/tools/list-cms-resources.js +77 -0
  360. package/dist/toolkits/wordpress/tools/list-content.d.ts +49 -0
  361. package/dist/toolkits/wordpress/tools/list-content.js +71 -0
  362. package/dist/toolkits/wordpress/tools/list-reader-subscriptions.d.ts +24 -0
  363. package/dist/toolkits/wordpress/tools/list-reader-subscriptions.js +39 -0
  364. package/dist/toolkits/wordpress/tools/list-sites.d.ts +26 -0
  365. package/dist/toolkits/wordpress/tools/list-sites.js +69 -0
  366. package/dist/toolkits/wordpress/tools/update-draft-post.d.ts +51 -0
  367. package/dist/toolkits/wordpress/tools/update-draft-post.js +93 -0
  368. package/dist/toolkits/wordpress/tools/utils.d.ts +18 -0
  369. package/dist/toolkits/wordpress/tools/utils.js +33 -0
  370. package/dist/toolkits/zoho/icon.d.ts +5 -0
  371. package/dist/toolkits/zoho/icon.js +125 -0
  372. package/dist/toolkits/zoho/manifest.d.ts +3 -0
  373. package/dist/toolkits/zoho/manifest.js +54 -0
  374. package/dist/toolkits/zoho/tools/convert-zoho-lead.d.ts +11 -0
  375. package/dist/toolkits/zoho/tools/convert-zoho-lead.js +47 -0
  376. package/dist/toolkits/zoho/tools/create-contact.d.ts +36 -0
  377. package/dist/toolkits/zoho/tools/create-contact.js +58 -0
  378. package/dist/toolkits/zoho/tools/create-deal.d.ts +17 -0
  379. package/dist/toolkits/zoho/tools/create-deal.js +39 -0
  380. package/dist/toolkits/zoho/tools/create-email-draft.d.ts +7 -0
  381. package/dist/toolkits/zoho/tools/create-email-draft.js +30 -0
  382. package/dist/toolkits/zoho/tools/create-event.d.ts +18 -0
  383. package/dist/toolkits/zoho/tools/create-event.js +40 -0
  384. package/dist/toolkits/zoho/tools/create-lead.d.ts +31 -0
  385. package/dist/toolkits/zoho/tools/create-lead.js +53 -0
  386. package/dist/toolkits/zoho/tools/create-note.d.ts +8 -0
  387. package/dist/toolkits/zoho/tools/create-note.js +31 -0
  388. package/dist/toolkits/zoho/tools/create-zoho-record.d.ts +8 -0
  389. package/dist/toolkits/zoho/tools/create-zoho-record.js +35 -0
  390. package/dist/toolkits/zoho/tools/create-zoho-tag.d.ts +7 -0
  391. package/dist/toolkits/zoho/tools/create-zoho-tag.js +30 -0
  392. package/dist/toolkits/zoho/tools/delete-account.d.ts +6 -0
  393. package/dist/toolkits/zoho/tools/delete-account.js +29 -0
  394. package/dist/toolkits/zoho/tools/delete-contact.d.ts +6 -0
  395. package/dist/toolkits/zoho/tools/delete-contact.js +29 -0
  396. package/dist/toolkits/zoho/tools/delete-deal.d.ts +6 -0
  397. package/dist/toolkits/zoho/tools/delete-deal.js +29 -0
  398. package/dist/toolkits/zoho/tools/get-account.d.ts +6 -0
  399. package/dist/toolkits/zoho/tools/get-account.js +34 -0
  400. package/dist/toolkits/zoho/tools/get-call.d.ts +6 -0
  401. package/dist/toolkits/zoho/tools/get-call.js +34 -0
  402. package/dist/toolkits/zoho/tools/get-contact.d.ts +5 -0
  403. package/dist/toolkits/zoho/tools/get-contact.js +33 -0
  404. package/dist/toolkits/zoho/tools/get-email-drafts.d.ts +6 -0
  405. package/dist/toolkits/zoho/tools/get-email-drafts.js +34 -0
  406. package/dist/toolkits/zoho/tools/get-event.d.ts +5 -0
  407. package/dist/toolkits/zoho/tools/get-event.js +33 -0
  408. package/dist/toolkits/zoho/tools/get-from-addresses.d.ts +4 -0
  409. package/dist/toolkits/zoho/tools/get-from-addresses.js +32 -0
  410. package/dist/toolkits/zoho/tools/get-module-fields.d.ts +8 -0
  411. package/dist/toolkits/zoho/tools/get-module-fields.js +36 -0
  412. package/dist/toolkits/zoho/tools/get-note.d.ts +6 -0
  413. package/dist/toolkits/zoho/tools/get-note.js +34 -0
  414. package/dist/toolkits/zoho/tools/get-record-emails.d.ts +9 -0
  415. package/dist/toolkits/zoho/tools/get-record-emails.js +37 -0
  416. package/dist/toolkits/zoho/tools/get-related-lists.d.ts +6 -0
  417. package/dist/toolkits/zoho/tools/get-related-lists.js +29 -0
  418. package/dist/toolkits/zoho/tools/get-related-records.d.ts +15 -0
  419. package/dist/toolkits/zoho/tools/get-related-records.js +38 -0
  420. package/dist/toolkits/zoho/tools/get-task.d.ts +6 -0
  421. package/dist/toolkits/zoho/tools/get-task.js +34 -0
  422. package/dist/toolkits/zoho/tools/get-user.d.ts +5 -0
  423. package/dist/toolkits/zoho/tools/get-user.js +33 -0
  424. package/dist/toolkits/zoho/tools/get-zoho-records.d.ts +13 -0
  425. package/dist/toolkits/zoho/tools/get-zoho-records.js +59 -0
  426. package/dist/toolkits/zoho/tools/get-zoho-users.d.ts +9 -0
  427. package/dist/toolkits/zoho/tools/get-zoho-users.js +32 -0
  428. package/dist/toolkits/zoho/tools/index.d.ts +789 -0
  429. package/dist/toolkits/zoho/tools/index.js +175 -0
  430. package/dist/toolkits/zoho/tools/list-accounts.d.ts +14 -0
  431. package/dist/toolkits/zoho/tools/list-accounts.js +60 -0
  432. package/dist/toolkits/zoho/tools/list-calls.d.ts +12 -0
  433. package/dist/toolkits/zoho/tools/list-calls.js +58 -0
  434. package/dist/toolkits/zoho/tools/list-contacts.d.ts +12 -0
  435. package/dist/toolkits/zoho/tools/list-contacts.js +58 -0
  436. package/dist/toolkits/zoho/tools/list-deals.d.ts +15 -0
  437. package/dist/toolkits/zoho/tools/list-deals.js +61 -0
  438. package/dist/toolkits/zoho/tools/list-events.d.ts +12 -0
  439. package/dist/toolkits/zoho/tools/list-events.js +58 -0
  440. package/dist/toolkits/zoho/tools/list-leads.d.ts +13 -0
  441. package/dist/toolkits/zoho/tools/list-leads.js +59 -0
  442. package/dist/toolkits/zoho/tools/list-modules.d.ts +4 -0
  443. package/dist/toolkits/zoho/tools/list-modules.js +50 -0
  444. package/dist/toolkits/zoho/tools/list-notes.d.ts +7 -0
  445. package/dist/toolkits/zoho/tools/list-notes.js +53 -0
  446. package/dist/toolkits/zoho/tools/list-record-attachments.d.ts +9 -0
  447. package/dist/toolkits/zoho/tools/list-record-attachments.js +55 -0
  448. package/dist/toolkits/zoho/tools/list-tasks.d.ts +12 -0
  449. package/dist/toolkits/zoho/tools/list-tasks.js +58 -0
  450. package/dist/toolkits/zoho/tools/search-accounts.d.ts +11 -0
  451. package/dist/toolkits/zoho/tools/search-accounts.js +49 -0
  452. package/dist/toolkits/zoho/tools/search-calls.d.ts +11 -0
  453. package/dist/toolkits/zoho/tools/search-calls.js +49 -0
  454. package/dist/toolkits/zoho/tools/search-contacts.d.ts +11 -0
  455. package/dist/toolkits/zoho/tools/search-contacts.js +49 -0
  456. package/dist/toolkits/zoho/tools/search-deals.d.ts +11 -0
  457. package/dist/toolkits/zoho/tools/search-deals.js +49 -0
  458. package/dist/toolkits/zoho/tools/search-events.d.ts +11 -0
  459. package/dist/toolkits/zoho/tools/search-events.js +49 -0
  460. package/dist/toolkits/zoho/tools/search-leads.d.ts +13 -0
  461. package/dist/toolkits/zoho/tools/search-leads.js +51 -0
  462. package/dist/toolkits/zoho/tools/search-notes.d.ts +11 -0
  463. package/dist/toolkits/zoho/tools/search-notes.js +49 -0
  464. package/dist/toolkits/zoho/tools/search-tasks.d.ts +11 -0
  465. package/dist/toolkits/zoho/tools/search-tasks.js +49 -0
  466. package/dist/toolkits/zoho/tools/search-zoho-records.d.ts +12 -0
  467. package/dist/toolkits/zoho/tools/search-zoho-records.js +50 -0
  468. package/dist/toolkits/zoho/tools/update-account.d.ts +32 -0
  469. package/dist/toolkits/zoho/tools/update-account.js +55 -0
  470. package/dist/toolkits/zoho/tools/update-call.d.ts +8 -0
  471. package/dist/toolkits/zoho/tools/update-call.js +33 -0
  472. package/dist/toolkits/zoho/tools/update-deal.d.ts +9 -0
  473. package/dist/toolkits/zoho/tools/update-deal.js +34 -0
  474. package/dist/toolkits/zoho/tools/update-email-draft.d.ts +17 -0
  475. package/dist/toolkits/zoho/tools/update-email-draft.js +42 -0
  476. package/dist/toolkits/zoho/tools/update-event.d.ts +6 -0
  477. package/dist/toolkits/zoho/tools/update-event.js +31 -0
  478. package/dist/toolkits/zoho/tools/update-lead.d.ts +9 -0
  479. package/dist/toolkits/zoho/tools/update-lead.js +34 -0
  480. package/dist/toolkits/zoho/tools/update-note.d.ts +8 -0
  481. package/dist/toolkits/zoho/tools/update-note.js +33 -0
  482. package/dist/toolkits/zoho/tools/update-related-records.d.ts +8 -0
  483. package/dist/toolkits/zoho/tools/update-related-records.js +33 -0
  484. package/dist/toolkits/zoho/tools/update-zoho-record.d.ts +10 -0
  485. package/dist/toolkits/zoho/tools/update-zoho-record.js +35 -0
  486. package/dist/toolkits/zoho/tools/upload-attachment.d.ts +9 -0
  487. package/dist/toolkits/zoho/tools/upload-attachment.js +34 -0
  488. package/dist/toolkits/zoho/tools/utils.d.ts +24 -0
  489. package/dist/toolkits/zoho/tools/utils.js +49 -0
  490. package/dist/toolkits/zoho/tools/validate-credential.d.ts +4 -0
  491. package/dist/toolkits/zoho/tools/validate-credential.js +27 -0
  492. package/package.json +1 -1
@@ -0,0 +1,93 @@
1
+ export declare const postmanCreateACollection: import("ai").Tool<{
2
+ collection: Record<string, any>;
3
+ postmanApiKey?: string | undefined;
4
+ workspaceId?: string | undefined;
5
+ }, any>;
6
+ export declare const postmanGetAllCollections: import("ai").Tool<{
7
+ name?: string | undefined;
8
+ limit?: number | undefined;
9
+ cursor?: string | undefined;
10
+ offset?: number | undefined;
11
+ postmanApiKey?: string | undefined;
12
+ workspaceId?: string | undefined;
13
+ }, any>;
14
+ export declare const postmanDeleteACollection: import("ai").Tool<{
15
+ collectionId: string;
16
+ postmanApiKey?: string | undefined;
17
+ }, any>;
18
+ export declare const postmanDuplicateACollection: import("ai").Tool<{
19
+ collectionId: string;
20
+ workspaceId: string;
21
+ postmanApiKey?: string | undefined;
22
+ suffix?: string | undefined;
23
+ }, any>;
24
+ export declare const postmanGetDuplicationTaskStatus: import("ai").Tool<{
25
+ taskId: string;
26
+ postmanApiKey?: string | undefined;
27
+ }, any>;
28
+ export declare const postmanForkCollection: import("ai").Tool<{
29
+ collectionId: string;
30
+ workspaceId: string;
31
+ label?: string | undefined;
32
+ postmanApiKey?: string | undefined;
33
+ }, any>;
34
+ export declare const postmanGetCollectionForks: import("ai").Tool<{
35
+ collectionId: string;
36
+ postmanApiKey?: string | undefined;
37
+ }, any>;
38
+ export declare const postmanGetAllForkedCollections: import("ai").Tool<{
39
+ limit?: number | undefined;
40
+ direction?: "asc" | "desc" | undefined;
41
+ cursor?: string | undefined;
42
+ postmanApiKey?: string | undefined;
43
+ }, any>;
44
+ export declare const postmanPullSourceChangesIntoFork: import("ai").Tool<{
45
+ collectionId: string;
46
+ postmanApiKey?: string | undefined;
47
+ }, any>;
48
+ export declare const postmanGetSourceCollectionStatus: import("ai").Tool<{
49
+ collectionId: string;
50
+ postmanApiKey?: string | undefined;
51
+ }, any>;
52
+ export declare const postmanReplaceCollectionDataAsynchronously: import("ai").Tool<{
53
+ collectionId: string;
54
+ collection: Record<string, any>;
55
+ postmanApiKey?: string | undefined;
56
+ }, any>;
57
+ export declare const postmanGetAsyncCollectionUpdateStatus: import("ai").Tool<{
58
+ taskId: string;
59
+ postmanApiKey?: string | undefined;
60
+ }, any>;
61
+ export declare const postmanTransferFolders: import("ai").Tool<{
62
+ mode: "copy" | "move";
63
+ location: {
64
+ position: string;
65
+ id?: string | undefined;
66
+ model?: string | undefined;
67
+ };
68
+ ids: string[];
69
+ target: {
70
+ id: string;
71
+ model: "collection" | "folder";
72
+ };
73
+ postmanApiKey?: string | undefined;
74
+ }, any>;
75
+ export declare const postmanTransformCollectionToOpenApi: import("ai").Tool<{
76
+ collectionId: string;
77
+ postmanApiKey?: string | undefined;
78
+ }, any>;
79
+ export declare const postmanUpdateCollectionProperties: import("ai").Tool<{
80
+ collectionId: string;
81
+ collection: Record<string, any>;
82
+ postmanApiKey?: string | undefined;
83
+ }, any>;
84
+ export declare const postmanGetCollectionRoles: import("ai").Tool<{
85
+ collectionId: string;
86
+ postmanApiKey?: string | undefined;
87
+ }, any>;
88
+ export declare const postmanGetCollectionAccessKeys: import("ai").Tool<{
89
+ cursor?: string | undefined;
90
+ collectionId?: string | undefined;
91
+ postmanApiKey?: string | undefined;
92
+ }, any>;
93
+ //# sourceMappingURL=collections.d.ts.map
@@ -0,0 +1,358 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { postmanRequest, toPostmanError } from './client.js';
5
+ const authField = {
6
+ postmanApiKey: z.string().optional().describe('Injected by system; do not provide'),
7
+ };
8
+ function missingKey() {
9
+ return { error: 'Postman API key is required. Connect Postman first.' };
10
+ }
11
+ export const postmanCreateACollection = tool({
12
+ description: 'Create a new Postman collection in a specific workspace or the default workspace. Use when you need to create a collection with workspace specification. For complete collection format details, refer to the Postman Collection Format documentation.',
13
+ inputSchema: z.object({
14
+ ...authField,
15
+ workspaceId: z.string().optional().describe('Workspace ID where the collection will be created. If not specified, the collection is created in the default workspace'),
16
+ collection: z
17
+ .record(z.any())
18
+ .describe('Collection object with info {name, description?, schema?} and optional item array of requests/folders, e.g. {"info": {"name": "My API Collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"}, "item": []}'),
19
+ }),
20
+ execute: async ({ postmanApiKey, workspaceId, collection }) => {
21
+ try {
22
+ if (!postmanApiKey)
23
+ return missingKey();
24
+ return await postmanRequest(postmanApiKey, 'POST', '/collections', {
25
+ query: { workspace: workspaceId },
26
+ body: { collection },
27
+ });
28
+ }
29
+ catch (error) {
30
+ return toPostmanError(error, 'Failed to create collection');
31
+ }
32
+ },
33
+ });
34
+ export const postmanGetAllCollections = tool({
35
+ description: "Get all collections accessible to the authenticated user. Use when you need to retrieve all your collections including subscribed collections. Returns detailed information for each collection including owner, creation/update timestamps, and visibility.",
36
+ inputSchema: z.object({
37
+ ...authField,
38
+ workspaceId: z.string().optional().describe('Filter collections by workspace ID. Omit to get collections across all workspaces'),
39
+ name: z.string().optional().describe('Filter collections by name'),
40
+ limit: z.number().int().min(1).optional().describe('Maximum number of collections to return per page'),
41
+ cursor: z.string().optional().describe('Pagination cursor from a previous response (nextCursor)'),
42
+ offset: z.number().int().min(0).optional().describe('Offset for pagination'),
43
+ }),
44
+ execute: async ({ postmanApiKey, workspaceId, name, limit, cursor, offset }) => {
45
+ try {
46
+ if (!postmanApiKey)
47
+ return missingKey();
48
+ return await postmanRequest(postmanApiKey, 'GET', '/collections', {
49
+ query: { workspace: workspaceId, name, limit, cursor, offset },
50
+ });
51
+ }
52
+ catch (error) {
53
+ return toPostmanError(error, 'Failed to get collections');
54
+ }
55
+ },
56
+ });
57
+ export const postmanDeleteACollection = tool({
58
+ description: 'Permanently delete a collection from Postman. Use when you need to remove a collection that is no longer needed.',
59
+ inputSchema: z.object({
60
+ ...authField,
61
+ collectionId: z.string().describe('The unique identifier (UID or ID) of the collection to delete'),
62
+ }),
63
+ execute: async ({ postmanApiKey, collectionId }) => {
64
+ try {
65
+ if (!postmanApiKey)
66
+ return missingKey();
67
+ return await postmanRequest(postmanApiKey, 'DELETE', `/collections/${encodeURIComponent(collectionId)}`);
68
+ }
69
+ catch (error) {
70
+ return toPostmanError(error, 'Failed to delete collection');
71
+ }
72
+ },
73
+ });
74
+ export const postmanDuplicateACollection = tool({
75
+ description: 'Create a duplicate of a collection in another workspace. Use when you need to copy an existing collection to a different workspace. Returns an asynchronous task that can be tracked using the duplication task status endpoint.',
76
+ inputSchema: z.object({
77
+ ...authField,
78
+ collectionId: z.string().describe('The unique identifier (UID) of the collection to duplicate'),
79
+ workspaceId: z.string().describe('The ID of the workspace where the duplicated collection will be created'),
80
+ suffix: z.string().optional().describe('Optional suffix appended to the duplicated collection name'),
81
+ }),
82
+ execute: async ({ postmanApiKey, collectionId, workspaceId, suffix }) => {
83
+ try {
84
+ if (!postmanApiKey)
85
+ return missingKey();
86
+ return await postmanRequest(postmanApiKey, 'POST', `/collections/${encodeURIComponent(collectionId)}/duplicates`, {
87
+ body: { workspace: workspaceId, ...(suffix !== undefined ? { suffix } : {}) },
88
+ });
89
+ }
90
+ catch (error) {
91
+ return toPostmanError(error, 'Failed to duplicate collection');
92
+ }
93
+ },
94
+ });
95
+ export const postmanGetDuplicationTaskStatus = tool({
96
+ description: 'Get the status of a collection duplication task. Use when you need to check whether a previously initiated collection duplication is still processing or has completed. The task ID is obtained from the duplicate-a-collection response.',
97
+ inputSchema: z.object({
98
+ ...authField,
99
+ taskId: z.string().describe('The ID of the collection duplication task'),
100
+ }),
101
+ execute: async ({ postmanApiKey, taskId }) => {
102
+ try {
103
+ if (!postmanApiKey)
104
+ return missingKey();
105
+ return await postmanRequest(postmanApiKey, 'GET', `/collection-duplicate-tasks/${encodeURIComponent(taskId)}`);
106
+ }
107
+ catch (error) {
108
+ return toPostmanError(error, 'Failed to get duplication task status');
109
+ }
110
+ },
111
+ });
112
+ export const postmanForkCollection = tool({
113
+ description: 'Create a fork of a collection in a specified workspace. Use when you need to fork an existing collection to a workspace.',
114
+ inputSchema: z.object({
115
+ ...authField,
116
+ collectionId: z.string().describe('The unique identifier (UID) of the collection to fork'),
117
+ workspaceId: z.string().describe('The workspace ID where the forked collection will be created'),
118
+ label: z.string().optional().describe('Label or name for the fork. If not provided, the fork is created with a default label'),
119
+ }),
120
+ execute: async ({ postmanApiKey, collectionId, workspaceId, label }) => {
121
+ try {
122
+ if (!postmanApiKey)
123
+ return missingKey();
124
+ return await postmanRequest(postmanApiKey, 'POST', `/collections/fork/${encodeURIComponent(collectionId)}`, {
125
+ query: { workspace: workspaceId },
126
+ body: { ...(label !== undefined ? { label } : {}) },
127
+ });
128
+ }
129
+ catch (error) {
130
+ return toPostmanError(error, 'Failed to fork collection');
131
+ }
132
+ },
133
+ });
134
+ export const postmanGetCollectionForks = tool({
135
+ description: 'Get all forks of a specific collection. Use when you need to retrieve information about who has forked a collection, including fork IDs, users, and creation dates.',
136
+ inputSchema: z.object({
137
+ ...authField,
138
+ collectionId: z.string().describe('The unique identifier (UID) of the collection whose forks you want to retrieve'),
139
+ }),
140
+ execute: async ({ postmanApiKey, collectionId }) => {
141
+ try {
142
+ if (!postmanApiKey)
143
+ return missingKey();
144
+ return await postmanRequest(postmanApiKey, 'GET', `/collections/${encodeURIComponent(collectionId)}/forks`);
145
+ }
146
+ catch (error) {
147
+ return toPostmanError(error, 'Failed to get collection forks');
148
+ }
149
+ },
150
+ });
151
+ export const postmanGetAllForkedCollections = tool({
152
+ description: 'Retrieve all forked collections for the authenticated user. Use when you need to list or access all collections that the user has forked.',
153
+ inputSchema: z.object({
154
+ ...authField,
155
+ limit: z.number().int().min(1).optional().describe('Maximum number of forked collections to return per page'),
156
+ cursor: z.string().optional().describe('Pagination cursor from a previous response'),
157
+ direction: z.enum(['asc', 'desc']).optional().describe('Sort direction for the results'),
158
+ }),
159
+ execute: async ({ postmanApiKey, limit, cursor, direction }) => {
160
+ try {
161
+ if (!postmanApiKey)
162
+ return missingKey();
163
+ return await postmanRequest(postmanApiKey, 'GET', '/collections/collection-forks', {
164
+ query: { limit, cursor, direction },
165
+ });
166
+ }
167
+ catch (error) {
168
+ return toPostmanError(error, 'Failed to get forked collections');
169
+ }
170
+ },
171
+ });
172
+ export const postmanPullSourceChangesIntoFork = tool({
173
+ description: 'Pull changes from a parent (source) collection into a forked collection. Use when you need to sync a forked collection with its parent.',
174
+ inputSchema: z.object({
175
+ ...authField,
176
+ collectionId: z.string().describe('The ID of the forked collection that will receive the changes from its parent (source) collection'),
177
+ }),
178
+ execute: async ({ postmanApiKey, collectionId }) => {
179
+ try {
180
+ if (!postmanApiKey)
181
+ return missingKey();
182
+ return await postmanRequest(postmanApiKey, 'PUT', `/collections/${encodeURIComponent(collectionId)}/pulls`);
183
+ }
184
+ catch (error) {
185
+ return toPostmanError(error, 'Failed to pull source changes');
186
+ }
187
+ },
188
+ });
189
+ export const postmanGetSourceCollectionStatus = tool({
190
+ description: 'Check whether there is a change between a forked collection and its parent (source) collection. Use when you need to determine if the source collection has updates that are not yet in the forked collection. This endpoint only works with forked collections; attempting to use it with regular collections will result in an error.',
191
+ inputSchema: z.object({
192
+ ...authField,
193
+ collectionId: z.string().describe('The ID of a forked collection to check against its parent (source) collection'),
194
+ }),
195
+ execute: async ({ postmanApiKey, collectionId }) => {
196
+ try {
197
+ if (!postmanApiKey)
198
+ return missingKey();
199
+ return await postmanRequest(postmanApiKey, 'GET', `/collections/${encodeURIComponent(collectionId)}/source-status`);
200
+ }
201
+ catch (error) {
202
+ return toPostmanError(error, 'Failed to get source collection status');
203
+ }
204
+ },
205
+ });
206
+ export const postmanReplaceCollectionDataAsynchronously = tool({
207
+ description: "Replace the entire contents of a collection asynchronously. Use when you need to completely replace a collection with new data. IMPORTANT: Include the collection's ID values in item, variable, and other nested objects to preserve them. If you do not include IDs, the endpoint removes existing items and creates new items. Returns a task to track with the async collection update status tool.",
208
+ inputSchema: z.object({
209
+ ...authField,
210
+ collectionId: z.string().describe('The unique identifier (ID or UID) of the collection to replace'),
211
+ collection: z
212
+ .record(z.any())
213
+ .describe('Complete collection object to replace the existing collection: info {name, description?, schema?}, optional item array (include existing item IDs to preserve them), auth, variable, and event'),
214
+ }),
215
+ execute: async ({ postmanApiKey, collectionId, collection }) => {
216
+ try {
217
+ if (!postmanApiKey)
218
+ return missingKey();
219
+ return await postmanRequest(postmanApiKey, 'PUT', `/collections/${encodeURIComponent(collectionId)}`, {
220
+ body: { collection },
221
+ preferAsync: true,
222
+ });
223
+ }
224
+ catch (error) {
225
+ return toPostmanError(error, 'Failed to replace collection data');
226
+ }
227
+ },
228
+ });
229
+ export const postmanGetAsyncCollectionUpdateStatus = tool({
230
+ description: 'Get the status of an asynchronous collection update task. Use when you need to check whether a previously initiated async collection update is still processing, has completed successfully, or has failed. The task ID is obtained from PUT /collections/{collectionId} when using the Prefer: respond-async header.',
231
+ inputSchema: z.object({
232
+ ...authField,
233
+ taskId: z.string().describe('The ID of the asynchronous collection update task'),
234
+ }),
235
+ execute: async ({ postmanApiKey, taskId }) => {
236
+ try {
237
+ if (!postmanApiKey)
238
+ return missingKey();
239
+ return await postmanRequest(postmanApiKey, 'GET', `/collection-updates-tasks/${encodeURIComponent(taskId)}`);
240
+ }
241
+ catch (error) {
242
+ return toPostmanError(error, 'Failed to get async collection update status');
243
+ }
244
+ },
245
+ });
246
+ export const postmanTransferFolders = tool({
247
+ description: 'Copy or move folders into a collection or folder. Use when you need to reorganize collections by transferring folders between collections or into other folders.',
248
+ inputSchema: z.object({
249
+ ...authField,
250
+ ids: z
251
+ .array(z.string())
252
+ .min(1)
253
+ .describe("Array of folder unique identifiers (UIDs) to transfer, e.g. ['ownerId-folderId']. All folders must exist and be accessible"),
254
+ target: z
255
+ .object({
256
+ id: z.string().describe('UID of the target collection or folder, e.g. ownerId-collectionId'),
257
+ model: z.enum(['collection', 'folder']).describe("Use 'collection' to transfer into a collection root, or 'folder' to transfer into a specific folder"),
258
+ })
259
+ .describe('Target location where folders should be transferred'),
260
+ location: z
261
+ .object({
262
+ position: z.string().describe("Position where folders should be placed in the target, e.g. 'start' or 'end'"),
263
+ id: z.string().optional().describe('Optional ID to position relative to a specific item'),
264
+ model: z.string().optional().describe("Optional model type for positioning, e.g. 'collection', 'folder', or 'request'"),
265
+ })
266
+ .describe('Position within the target where folders should be placed'),
267
+ mode: z.enum(['copy', 'move']).describe("Transfer mode: 'copy' duplicates folders in the target, 'move' relocates them (removes from source)"),
268
+ }),
269
+ execute: async ({ postmanApiKey, ids, target, location, mode }) => {
270
+ try {
271
+ if (!postmanApiKey)
272
+ return missingKey();
273
+ return await postmanRequest(postmanApiKey, 'POST', '/collection-folders-transfers', {
274
+ body: { ids, target, location, mode },
275
+ });
276
+ }
277
+ catch (error) {
278
+ return toPostmanError(error, 'Failed to transfer folders');
279
+ }
280
+ },
281
+ });
282
+ export const postmanTransformCollectionToOpenApi = tool({
283
+ description: 'Transform an existing Postman Collection into a stringified OpenAPI 3.0.3 definition. Use when you need to convert a collection to OpenAPI format for API documentation or interoperability with other tools.',
284
+ inputSchema: z.object({
285
+ ...authField,
286
+ collectionId: z.string().describe('The unique identifier of the collection to transform into OpenAPI format'),
287
+ }),
288
+ execute: async ({ postmanApiKey, collectionId }) => {
289
+ try {
290
+ if (!postmanApiKey)
291
+ return missingKey();
292
+ return await postmanRequest(postmanApiKey, 'GET', `/collections/${encodeURIComponent(collectionId)}/transformations`);
293
+ }
294
+ catch (error) {
295
+ return toPostmanError(error, 'Failed to transform collection to OpenAPI');
296
+ }
297
+ },
298
+ });
299
+ export const postmanUpdateCollectionProperties = tool({
300
+ description: 'Update specific collection properties like name, description, authentication, variables, or events. Use when you need to partially update a collection without replacing the entire collection structure. Returns the updated collection information after the changes are applied.',
301
+ inputSchema: z.object({
302
+ ...authField,
303
+ collectionId: z.string().describe('The unique identifier (ID or UID) of the collection to update'),
304
+ collection: z
305
+ .record(z.any())
306
+ .describe('Collection properties to update. Only the specified properties are updated, e.g. {"info": {"name": "Updated name"}, "auth": {...}, "variable": [...], "event": [...]}'),
307
+ }),
308
+ execute: async ({ postmanApiKey, collectionId, collection }) => {
309
+ try {
310
+ if (!postmanApiKey)
311
+ return missingKey();
312
+ return await postmanRequest(postmanApiKey, 'PATCH', `/collections/${encodeURIComponent(collectionId)}`, {
313
+ body: { collection },
314
+ });
315
+ }
316
+ catch (error) {
317
+ return toPostmanError(error, 'Failed to update collection');
318
+ }
319
+ },
320
+ });
321
+ export const postmanGetCollectionRoles = tool({
322
+ description: 'Get information about all roles in a collection. Use when you need to retrieve the IDs of all users, teams, and groups with access to view or edit a collection.',
323
+ inputSchema: z.object({
324
+ ...authField,
325
+ collectionId: z.string().describe('The unique identifier of the collection to retrieve roles for'),
326
+ }),
327
+ execute: async ({ postmanApiKey, collectionId }) => {
328
+ try {
329
+ if (!postmanApiKey)
330
+ return missingKey();
331
+ return await postmanRequest(postmanApiKey, 'GET', `/collections/${encodeURIComponent(collectionId)}/roles`);
332
+ }
333
+ catch (error) {
334
+ return toPostmanError(error, 'Failed to get collection roles');
335
+ }
336
+ },
337
+ });
338
+ export const postmanGetCollectionAccessKeys = tool({
339
+ description: 'Retrieve all personal and team collection access keys for the authenticated user. Use when you need to list or manage collection access keys. Returns an array of access key objects with their IDs, tokens, status, and associated collection information.',
340
+ inputSchema: z.object({
341
+ ...authField,
342
+ collectionId: z.string().optional().describe('Filter access keys by collection UID'),
343
+ cursor: z.string().optional().describe('Pagination cursor from a previous response'),
344
+ }),
345
+ execute: async ({ postmanApiKey, collectionId, cursor }) => {
346
+ try {
347
+ if (!postmanApiKey)
348
+ return missingKey();
349
+ return await postmanRequest(postmanApiKey, 'GET', '/collection-access-keys', {
350
+ query: { collectionId, cursor },
351
+ });
352
+ }
353
+ catch (error) {
354
+ return toPostmanError(error, 'Failed to get collection access keys');
355
+ }
356
+ },
357
+ });
358
+ //# sourceMappingURL=collections.js.map
@@ -0,0 +1,113 @@
1
+ export declare const postmanCreateACollectionComment: import("ai").Tool<{
2
+ body: string;
3
+ collectionId: string;
4
+ apiId: string;
5
+ threadId?: number | undefined;
6
+ postmanApiKey?: string | undefined;
7
+ }, any>;
8
+ export declare const postmanGetCollectionComments: import("ai").Tool<{
9
+ collectionId: string;
10
+ apiId: string;
11
+ postmanApiKey?: string | undefined;
12
+ }, any>;
13
+ export declare const postmanDeleteACollectionsComment: import("ai").Tool<{
14
+ collectionId: string;
15
+ commentId: string | number;
16
+ apiId: string;
17
+ postmanApiKey?: string | undefined;
18
+ }, any>;
19
+ export declare const postmanGetApiComments: import("ai").Tool<{
20
+ apiId: string;
21
+ postmanApiKey?: string | undefined;
22
+ }, any>;
23
+ export declare const postmanUpdateAnApisComment: import("ai").Tool<{
24
+ body: string;
25
+ commentId: string | number;
26
+ apiId: string;
27
+ postmanApiKey?: string | undefined;
28
+ }, any>;
29
+ export declare const postmanDeleteAnApisComment: import("ai").Tool<{
30
+ commentId: string | number;
31
+ apiId: string;
32
+ postmanApiKey?: string | undefined;
33
+ }, any>;
34
+ export declare const postmanCreateAFolderComment: import("ai").Tool<{
35
+ body: string;
36
+ collectionUid: string;
37
+ folderUid: string;
38
+ threadId?: number | undefined;
39
+ postmanApiKey?: string | undefined;
40
+ }, any>;
41
+ export declare const postmanGetFolderComments: import("ai").Tool<{
42
+ collectionUid: string;
43
+ folderUid: string;
44
+ postmanApiKey?: string | undefined;
45
+ }, any>;
46
+ export declare const postmanUpdateAFoldersComment: import("ai").Tool<{
47
+ body: string;
48
+ commentId: string | number;
49
+ collectionUid: string;
50
+ folderUid: string;
51
+ postmanApiKey?: string | undefined;
52
+ }, any>;
53
+ export declare const postmanDeleteAFoldersComment: import("ai").Tool<{
54
+ commentId: string | number;
55
+ collectionUid: string;
56
+ folderUid: string;
57
+ postmanApiKey?: string | undefined;
58
+ }, any>;
59
+ export declare const postmanCreateARequestComment: import("ai").Tool<{
60
+ body: string;
61
+ collectionUid: string;
62
+ requestUid: string;
63
+ threadId?: number | undefined;
64
+ postmanApiKey?: string | undefined;
65
+ }, any>;
66
+ export declare const postmanGetRequestComments: import("ai").Tool<{
67
+ collectionUid: string;
68
+ requestUid: string;
69
+ postmanApiKey?: string | undefined;
70
+ }, any>;
71
+ export declare const postmanUpdateARequestsComment: import("ai").Tool<{
72
+ body: string;
73
+ commentId: string | number;
74
+ collectionUid: string;
75
+ requestUid: string;
76
+ postmanApiKey?: string | undefined;
77
+ }, any>;
78
+ export declare const postmanDeleteARequestsComment: import("ai").Tool<{
79
+ commentId: string | number;
80
+ collectionUid: string;
81
+ requestUid: string;
82
+ postmanApiKey?: string | undefined;
83
+ }, any>;
84
+ export declare const postmanCreateAResponseComment: import("ai").Tool<{
85
+ body: string;
86
+ collectionUid: string;
87
+ responseUid: string;
88
+ threadId?: number | undefined;
89
+ postmanApiKey?: string | undefined;
90
+ }, any>;
91
+ export declare const postmanGetResponseComments: import("ai").Tool<{
92
+ collectionUid: string;
93
+ responseUid: string;
94
+ postmanApiKey?: string | undefined;
95
+ }, any>;
96
+ export declare const postmanUpdateAResponsesComment: import("ai").Tool<{
97
+ body: string;
98
+ commentId: string | number;
99
+ collectionUid: string;
100
+ responseUid: string;
101
+ postmanApiKey?: string | undefined;
102
+ }, any>;
103
+ export declare const postmanDeleteAResponsesComment: import("ai").Tool<{
104
+ commentId: string | number;
105
+ collectionUid: string;
106
+ responseUid: string;
107
+ postmanApiKey?: string | undefined;
108
+ }, any>;
109
+ export declare const postmanResolveACommentThread: import("ai").Tool<{
110
+ threadId: string | number;
111
+ postmanApiKey?: string | undefined;
112
+ }, any>;
113
+ //# sourceMappingURL=comments.d.ts.map