@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.
- package/README.md +12 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +21 -1
- package/dist/toolkits/accuweather/icon.d.ts +5 -0
- package/dist/toolkits/accuweather/icon.js +6 -0
- package/dist/toolkits/accuweather/manifest.d.ts +3 -0
- package/dist/toolkits/accuweather/manifest.js +35 -0
- package/dist/toolkits/accuweather/tools/alerts-alarms.d.ts +13 -0
- package/dist/toolkits/accuweather/tools/alerts-alarms.js +25 -0
- package/dist/toolkits/accuweather/tools/client.d.ts +17 -0
- package/dist/toolkits/accuweather/tools/client.js +50 -0
- package/dist/toolkits/accuweather/tools/current-conditions.d.ts +21 -0
- package/dist/toolkits/accuweather/tools/current-conditions.js +46 -0
- package/dist/toolkits/accuweather/tools/forecasts.d.ts +17 -0
- package/dist/toolkits/accuweather/tools/forecasts.js +41 -0
- package/dist/toolkits/accuweather/tools/imagery.d.ts +7 -0
- package/dist/toolkits/accuweather/tools/imagery.js +21 -0
- package/dist/toolkits/accuweather/tools/index.d.ts +21 -0
- package/dist/toolkits/accuweather/tools/index.js +60 -0
- package/dist/toolkits/accuweather/tools/indices.d.ts +29 -0
- package/dist/toolkits/accuweather/tools/indices.js +66 -0
- package/dist/toolkits/accuweather/tools/lightning.d.ts +11 -0
- package/dist/toolkits/accuweather/tools/lightning.js +35 -0
- package/dist/toolkits/accuweather/tools/locations.d.ts +101 -0
- package/dist/toolkits/accuweather/tools/locations.js +280 -0
- package/dist/toolkits/accuweather/tools/minutecast.d.ts +11 -0
- package/dist/toolkits/accuweather/tools/minutecast.js +28 -0
- package/dist/toolkits/accuweather/tools/translations.d.ts +20 -0
- package/dist/toolkits/accuweather/tools/translations.js +49 -0
- package/dist/toolkits/accuweather/tools/tropical.d.ts +49 -0
- package/dist/toolkits/accuweather/tools/tropical.js +108 -0
- package/dist/toolkits/aws/tools/cloudwatch/filter-log-events.d.ts +2 -2
- package/dist/toolkits/aws/tools/cloudwatch/get-metric-data.d.ts +2 -2
- package/dist/toolkits/aws/tools/index.d.ts +4 -4
- package/dist/toolkits/bitbucket/tools/commits.d.ts +3 -3
- package/dist/toolkits/bitbucket/tools/index.d.ts +4 -4
- package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +1 -1
- package/dist/toolkits/bitbucket/tools/repositories.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/create-dns-record.d.ts +2 -2
- package/dist/toolkits/cloudflare/tools/create-zone.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/index.d.ts +9 -9
- package/dist/toolkits/cloudflare/tools/list-accounts.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-dns-records.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-tunnels.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-zones.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/update-dns-record.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/update-zone.d.ts +1 -1
- package/dist/toolkits/convex/tools/deployments.d.ts +1 -1
- package/dist/toolkits/convex/tools/index.d.ts +1 -1
- package/dist/toolkits/datadog/tools/events.d.ts +1 -1
- package/dist/toolkits/datadog/tools/index.d.ts +5 -5
- package/dist/toolkits/datadog/tools/integrations.d.ts +1 -1
- package/dist/toolkits/datadog/tools/metrics.d.ts +1 -1
- package/dist/toolkits/datadog/tools/monitors.d.ts +1 -1
- package/dist/toolkits/datadog/tools/synthetics.d.ts +1 -1
- package/dist/toolkits/dev-to/tools/articles.d.ts +1 -1
- package/dist/toolkits/dev-to/tools/community.d.ts +1 -1
- package/dist/toolkits/dev-to/tools/index.d.ts +2 -2
- package/dist/toolkits/discord/tools/applications.d.ts +1 -1
- package/dist/toolkits/discord/tools/index.d.ts +1 -1
- package/dist/toolkits/figma/tools/create-dev-resources.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-activity-logs.d.ts +2 -2
- package/dist/toolkits/figma/tools/get-file-json.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-team-component-sets.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-team-components.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-team-styles.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-versions-of-a-file.d.ts +1 -1
- package/dist/toolkits/figma/tools/index.d.ts +7 -7
- package/dist/toolkits/figma/tools/update-dev-resources.d.ts +1 -1
- package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +2 -2
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +1 -1
- package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +1 -1
- package/dist/toolkits/github/tools/Projects/update-project.d.ts +1 -1
- package/dist/toolkits/github/tools/Releases/create-release.d.ts +1 -1
- package/dist/toolkits/github/tools/Releases/update-release.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +2 -2
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +1 -1
- package/dist/toolkits/github/tools/Teams/update-team.d.ts +1 -1
- package/dist/toolkits/github/tools/Users/follow-user.d.ts +1 -1
- package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +1 -1
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +1 -1
- package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +1 -1
- package/dist/toolkits/github/tools/index.d.ts +21 -21
- package/dist/toolkits/gitlab/tools/index.d.ts +2 -2
- package/dist/toolkits/gitlab/tools/pipelines.d.ts +1 -1
- package/dist/toolkits/gitlab/tools/projects.d.ts +1 -1
- package/dist/toolkits/gmail/manifest.js +204 -1
- package/dist/toolkits/gmail/tools/create-label.d.ts +2 -2
- package/dist/toolkits/gmail/tools/index.d.ts +5 -0
- package/dist/toolkits/gmail/tools/index.js +5 -0
- package/dist/toolkits/gmail/tools/labels-threads.d.ts +47 -0
- package/dist/toolkits/gmail/tools/labels-threads.js +110 -0
- package/dist/toolkits/gmail/tools/list-drafts.d.ts +1 -1
- package/dist/toolkits/gmail/tools/list-threads.d.ts +1 -1
- package/dist/toolkits/gmail/tools/mailbox.d.ts +46 -0
- package/dist/toolkits/gmail/tools/mailbox.js +142 -0
- package/dist/toolkits/gmail/tools/messages-extra.d.ts +34 -0
- package/dist/toolkits/gmail/tools/messages-extra.js +176 -0
- package/dist/toolkits/gmail/tools/people-extra.d.ts +18 -0
- package/dist/toolkits/gmail/tools/people-extra.js +67 -0
- package/dist/toolkits/gmail/tools/settings.d.ts +100 -0
- package/dist/toolkits/gmail/tools/settings.js +210 -0
- package/dist/toolkits/google-analytics/tools/admin.d.ts +3 -3
- package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/announcement-addons.d.ts +4 -4
- package/dist/toolkits/google-classroom/tools/coursework-addons.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/coursework.d.ts +1 -1
- package/dist/toolkits/google-classroom/tools/index.d.ts +9 -9
- package/dist/toolkits/google-classroom/tools/invitations.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/materials-addons.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/posts-addons.d.ts +1 -1
- package/dist/toolkits/google-contacts/tools/contacts.d.ts +5 -5
- package/dist/toolkits/google-contacts/tools/directory.d.ts +3 -3
- package/dist/toolkits/google-contacts/tools/groups.d.ts +1 -1
- package/dist/toolkits/google-contacts/tools/index.d.ts +9 -9
- package/dist/toolkits/google-drive/tools/index.d.ts +3 -3
- package/dist/toolkits/google-drive/tools/search-files.d.ts +1 -1
- package/dist/toolkits/google-drive/tools/upload-file.d.ts +2 -2
- package/dist/toolkits/google-maps/tools/index.d.ts +4 -4
- package/dist/toolkits/google-maps/tools/places.d.ts +4 -4
- package/dist/toolkits/google-sheets/tools/index.d.ts +1 -1
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.d.ts +1 -1
- package/dist/toolkits/google-tasks/tools/batch-execute.d.ts +1 -1
- package/dist/toolkits/google-tasks/tools/index.d.ts +2 -2
- package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
- package/dist/toolkits/groww/tools/index.d.ts +8 -8
- package/dist/toolkits/groww/tools/margin.d.ts +1 -1
- package/dist/toolkits/groww/tools/orders.d.ts +2 -2
- package/dist/toolkits/groww/tools/smart-orders.d.ts +5 -5
- package/dist/toolkits/gumroad/icon.d.ts +5 -0
- package/dist/toolkits/gumroad/icon.js +6 -0
- package/dist/toolkits/gumroad/manifest.d.ts +3 -0
- package/dist/toolkits/gumroad/manifest.js +41 -0
- package/dist/toolkits/gumroad/tools/client.d.ts +16 -0
- package/dist/toolkits/gumroad/tools/client.js +53 -0
- package/dist/toolkits/gumroad/tools/index.d.ts +12 -0
- package/dist/toolkits/gumroad/tools/index.js +17 -0
- package/dist/toolkits/gumroad/tools/sales.d.ts +34 -0
- package/dist/toolkits/gumroad/tools/sales.js +68 -0
- package/dist/toolkits/hostinger/tools/hosting.d.ts +2 -2
- package/dist/toolkits/hostinger/tools/index.d.ts +3 -3
- package/dist/toolkits/hostinger/tools/whois.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/datasets.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/index.d.ts +2 -2
- package/dist/toolkits/hugging-face/tools/papers.d.ts +1 -1
- package/dist/toolkits/jira/tools/boards.d.ts +1 -1
- package/dist/toolkits/jira/tools/index.d.ts +4 -4
- package/dist/toolkits/jira/tools/meta.d.ts +1 -1
- package/dist/toolkits/jira/tools/projects.d.ts +1 -1
- package/dist/toolkits/jira/tools/users.d.ts +1 -1
- package/dist/toolkits/kaggle/tools/competitions.d.ts +1 -1
- package/dist/toolkits/kaggle/tools/datasets.d.ts +1 -1
- package/dist/toolkits/kaggle/tools/index.d.ts +7 -7
- package/dist/toolkits/kaggle/tools/kernels.d.ts +3 -3
- package/dist/toolkits/kaggle/tools/models.d.ts +2 -2
- package/dist/toolkits/nasa/tools/cmr.d.ts +3 -3
- package/dist/toolkits/nasa/tools/eonet.d.ts +5 -5
- package/dist/toolkits/nasa/tools/index.d.ts +9 -9
- package/dist/toolkits/nasa/tools/ntrs.d.ts +1 -1
- package/dist/toolkits/neon/tools/auth.d.ts +5 -5
- package/dist/toolkits/neon/tools/index.d.ts +5 -5
- package/dist/toolkits/new-relic/tools/admin.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/alert-policies.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/apm.d.ts +9 -9
- package/dist/toolkits/new-relic/tools/conditions.d.ts +5 -5
- package/dist/toolkits/new-relic/tools/config.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/dashboards.d.ts +2 -2
- package/dist/toolkits/new-relic/tools/entities.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/notifications.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/nrql-conditions.d.ts +2 -2
- package/dist/toolkits/notebook-lm/tools/index.d.ts +2 -2
- package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.d.ts +1 -1
- package/dist/toolkits/notebook-lm/tools/upload-source-file.d.ts +1 -1
- package/dist/toolkits/postman/icon.d.ts +5 -0
- package/dist/toolkits/postman/icon.js +14 -0
- package/dist/toolkits/postman/manifest.d.ts +3 -0
- package/dist/toolkits/postman/manifest.js +35 -0
- package/dist/toolkits/postman/tools/client.d.ts +23 -0
- package/dist/toolkits/postman/tools/client.js +59 -0
- package/dist/toolkits/postman/tools/collections.d.ts +93 -0
- package/dist/toolkits/postman/tools/collections.js +358 -0
- package/dist/toolkits/postman/tools/comments.d.ts +113 -0
- package/dist/toolkits/postman/tools/comments.js +387 -0
- package/dist/toolkits/postman/tools/designs_and_apis.d.ts +106 -0
- package/dist/toolkits/postman/tools/designs_and_apis.js +385 -0
- package/dist/toolkits/postman/tools/environments.d.ts +63 -0
- package/dist/toolkits/postman/tools/environments.js +208 -0
- package/dist/toolkits/postman/tools/index.d.ts +1204 -0
- package/dist/toolkits/postman/tools/index.js +143 -0
- package/dist/toolkits/postman/tools/items.d.ts +90 -0
- package/dist/toolkits/postman/tools/items.js +286 -0
- package/dist/toolkits/postman/tools/mocks_and_tests.d.ts +100 -0
- package/dist/toolkits/postman/tools/mocks_and_tests.js +363 -0
- package/dist/toolkits/postman/tools/pull_requests.d.ts +26 -0
- package/dist/toolkits/postman/tools/pull_requests.js +108 -0
- package/dist/toolkits/postman/tools/scim_users_teams.d.ts +31 -0
- package/dist/toolkits/postman/tools/scim_users_teams.js +156 -0
- package/dist/toolkits/postman/tools/specs.d.ts +100 -0
- package/dist/toolkits/postman/tools/specs.js +380 -0
- package/dist/toolkits/postman/tools/webhooks.d.ts +8 -0
- package/dist/toolkits/postman/tools/webhooks.js +40 -0
- package/dist/toolkits/postman/tools/workspaces.d.ts +50 -0
- package/dist/toolkits/postman/tools/workspaces.js +198 -0
- package/dist/toolkits/prometheus/icon.d.ts +5 -0
- package/dist/toolkits/prometheus/icon.js +52 -0
- package/dist/toolkits/prometheus/manifest.d.ts +3 -0
- package/dist/toolkits/prometheus/manifest.js +32 -0
- package/dist/toolkits/prometheus/tools/admin.d.ts +19 -0
- package/dist/toolkits/prometheus/tools/admin.js +90 -0
- package/dist/toolkits/prometheus/tools/client.d.ts +22 -0
- package/dist/toolkits/prometheus/tools/client.js +91 -0
- package/dist/toolkits/prometheus/tools/discovery.d.ts +82 -0
- package/dist/toolkits/prometheus/tools/discovery.js +182 -0
- package/dist/toolkits/prometheus/tools/index.d.ts +16 -0
- package/dist/toolkits/prometheus/tools/index.js +51 -0
- package/dist/toolkits/prometheus/tools/query.d.ts +33 -0
- package/dist/toolkits/prometheus/tools/query.js +101 -0
- package/dist/toolkits/prometheus/tools/status.d.ts +66 -0
- package/dist/toolkits/prometheus/tools/status.js +248 -0
- package/dist/toolkits/prometheus/tools/targets.d.ts +31 -0
- package/dist/toolkits/prometheus/tools/targets.js +117 -0
- package/dist/toolkits/razorpay/icon.d.ts +5 -0
- package/dist/toolkits/razorpay/icon.js +33 -0
- package/dist/toolkits/razorpay/manifest.d.ts +3 -0
- package/dist/toolkits/razorpay/manifest.js +32 -0
- package/dist/toolkits/razorpay/tools/client.d.ts +24 -0
- package/dist/toolkits/razorpay/tools/client.js +73 -0
- package/dist/toolkits/razorpay/tools/customers.d.ts +29 -0
- package/dist/toolkits/razorpay/tools/customers.js +53 -0
- package/dist/toolkits/razorpay/tools/index.d.ts +16 -0
- package/dist/toolkits/razorpay/tools/index.js +56 -0
- package/dist/toolkits/razorpay/tools/invoices.d.ts +169 -0
- package/dist/toolkits/razorpay/tools/invoices.js +143 -0
- package/dist/toolkits/razorpay/tools/items-links.d.ts +98 -0
- package/dist/toolkits/razorpay/tools/items-links.js +131 -0
- package/dist/toolkits/razorpay/tools/orders.d.ts +63 -0
- package/dist/toolkits/razorpay/tools/orders.js +99 -0
- package/dist/toolkits/razorpay/tools/payouts.d.ts +58 -0
- package/dist/toolkits/razorpay/tools/payouts.js +91 -0
- package/dist/toolkits/servicenow/icon.d.ts +5 -0
- package/dist/toolkits/servicenow/icon.js +6 -0
- package/dist/toolkits/servicenow/manifest.d.ts +3 -0
- package/dist/toolkits/servicenow/manifest.js +33 -0
- package/dist/toolkits/servicenow/tools/attachments.d.ts +35 -0
- package/dist/toolkits/servicenow/tools/attachments.js +120 -0
- package/dist/toolkits/servicenow/tools/catalog.d.ts +122 -0
- package/dist/toolkits/servicenow/tools/catalog.js +333 -0
- package/dist/toolkits/servicenow/tools/changes.d.ts +374 -0
- package/dist/toolkits/servicenow/tools/changes.js +609 -0
- package/dist/toolkits/servicenow/tools/cicd.d.ts +109 -0
- package/dist/toolkits/servicenow/tools/cicd.js +316 -0
- package/dist/toolkits/servicenow/tools/client.d.ts +42 -0
- package/dist/toolkits/servicenow/tools/client.js +168 -0
- package/dist/toolkits/servicenow/tools/cmdb.d.ts +224 -0
- package/dist/toolkits/servicenow/tools/cmdb.js +460 -0
- package/dist/toolkits/servicenow/tools/imports.d.ts +13 -0
- package/dist/toolkits/servicenow/tools/imports.js +36 -0
- package/dist/toolkits/servicenow/tools/incidents.d.ts +94 -0
- package/dist/toolkits/servicenow/tools/incidents.js +226 -0
- package/dist/toolkits/servicenow/tools/index.d.ts +1566 -0
- package/dist/toolkits/servicenow/tools/index.js +169 -0
- package/dist/toolkits/servicenow/tools/platform.d.ts +124 -0
- package/dist/toolkits/servicenow/tools/platform.js +298 -0
- package/dist/toolkits/servicenow/tools/records.d.ts +73 -0
- package/dist/toolkits/servicenow/tools/records.js +185 -0
- package/dist/toolkits/servicenow/tools/sdon.d.ts +48 -0
- package/dist/toolkits/servicenow/tools/sdon.js +81 -0
- package/dist/toolkits/slack/tools/admin-conversations.d.ts +2 -2
- package/dist/toolkits/slack/tools/emoji.d.ts +1 -1
- package/dist/toolkits/slack/tools/messages.d.ts +2 -2
- package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +2 -2
- package/dist/toolkits/slack/tools/search.d.ts +3 -3
- package/dist/toolkits/slack/tools/users.d.ts +1 -1
- package/dist/toolkits/vercel/icon.d.ts +5 -0
- package/dist/toolkits/vercel/icon.js +6 -0
- package/dist/toolkits/vercel/manifest.d.ts +3 -0
- package/dist/toolkits/vercel/manifest.js +35 -0
- package/dist/toolkits/vercel/tools/aliases.d.ts +47 -0
- package/dist/toolkits/vercel/tools/aliases.js +141 -0
- package/dist/toolkits/vercel/tools/auth.d.ts +23 -0
- package/dist/toolkits/vercel/tools/auth.js +117 -0
- package/dist/toolkits/vercel/tools/cache-artifacts.d.ts +57 -0
- package/dist/toolkits/vercel/tools/cache-artifacts.js +205 -0
- package/dist/toolkits/vercel/tools/certs.d.ts +9 -0
- package/dist/toolkits/vercel/tools/certs.js +31 -0
- package/dist/toolkits/vercel/tools/client.d.ts +17 -0
- package/dist/toolkits/vercel/tools/client.js +53 -0
- package/dist/toolkits/vercel/tools/deployments.d.ts +169 -0
- package/dist/toolkits/vercel/tools/deployments.js +443 -0
- package/dist/toolkits/vercel/tools/domains.d.ts +229 -0
- package/dist/toolkits/vercel/tools/domains.js +719 -0
- package/dist/toolkits/vercel/tools/edge-config.d.ts +110 -0
- package/dist/toolkits/vercel/tools/edge-config.js +402 -0
- package/dist/toolkits/vercel/tools/environment-variables.d.ts +137 -0
- package/dist/toolkits/vercel/tools/environment-variables.js +411 -0
- package/dist/toolkits/vercel/tools/firewall.d.ts +57 -0
- package/dist/toolkits/vercel/tools/firewall.js +187 -0
- package/dist/toolkits/vercel/tools/index.d.ts +1944 -0
- package/dist/toolkits/vercel/tools/index.js +312 -0
- package/dist/toolkits/vercel/tools/logs.d.ts +35 -0
- package/dist/toolkits/vercel/tools/logs.js +129 -0
- package/dist/toolkits/vercel/tools/misc.d.ts +140 -0
- package/dist/toolkits/vercel/tools/misc.js +486 -0
- package/dist/toolkits/vercel/tools/projects.d.ts +194 -0
- package/dist/toolkits/vercel/tools/projects.js +468 -0
- package/dist/toolkits/vercel/tools/teams.d.ts +50 -0
- package/dist/toolkits/vercel/tools/teams.js +144 -0
- package/dist/toolkits/vercel/tools/webhooks.d.ts +27 -0
- package/dist/toolkits/vercel/tools/webhooks.js +103 -0
- package/dist/toolkits/wise/icon.d.ts +5 -0
- package/dist/toolkits/wise/icon.js +15 -0
- package/dist/toolkits/wise/manifest.d.ts +3 -0
- package/dist/toolkits/wise/manifest.js +30 -0
- package/dist/toolkits/wise/tools/create-quote.d.ts +86 -0
- package/dist/toolkits/wise/tools/create-quote.js +64 -0
- package/dist/toolkits/wise/tools/get-exchange-rate.d.ts +42 -0
- package/dist/toolkits/wise/tools/get-exchange-rate.js +44 -0
- package/dist/toolkits/wise/tools/get-quote.d.ts +82 -0
- package/dist/toolkits/wise/tools/get-quote.js +46 -0
- package/dist/toolkits/wise/tools/index.d.ts +475 -0
- package/dist/toolkits/wise/tools/index.js +77 -0
- package/dist/toolkits/wise/tools/list-activities.d.ts +43 -0
- package/dist/toolkits/wise/tools/list-activities.js +49 -0
- package/dist/toolkits/wise/tools/list-balances.d.ts +30 -0
- package/dist/toolkits/wise/tools/list-balances.js +34 -0
- package/dist/toolkits/wise/tools/list-currencies.d.ts +29 -0
- package/dist/toolkits/wise/tools/list-currencies.js +31 -0
- package/dist/toolkits/wise/tools/list-profiles.d.ts +28 -0
- package/dist/toolkits/wise/tools/list-profiles.js +29 -0
- package/dist/toolkits/wise/tools/list-recipients.d.ts +43 -0
- package/dist/toolkits/wise/tools/list-recipients.js +54 -0
- package/dist/toolkits/wise/tools/list-transfers.d.ts +44 -0
- package/dist/toolkits/wise/tools/list-transfers.js +52 -0
- package/dist/toolkits/wise/tools/utils.d.ts +18 -0
- package/dist/toolkits/wise/tools/utils.js +39 -0
- package/dist/toolkits/wordpress/icon.d.ts +5 -0
- package/dist/toolkits/wordpress/icon.js +6 -0
- package/dist/toolkits/wordpress/manifest.d.ts +3 -0
- package/dist/toolkits/wordpress/manifest.js +36 -0
- package/dist/toolkits/wordpress/tools/create-draft-post.d.ts +47 -0
- package/dist/toolkits/wordpress/tools/create-draft-post.js +68 -0
- package/dist/toolkits/wordpress/tools/delete-draft-post.d.ts +38 -0
- package/dist/toolkits/wordpress/tools/delete-draft-post.js +51 -0
- package/dist/toolkits/wordpress/tools/get-post.d.ts +41 -0
- package/dist/toolkits/wordpress/tools/get-post.js +48 -0
- package/dist/toolkits/wordpress/tools/get-site-overview.d.ts +67 -0
- package/dist/toolkits/wordpress/tools/get-site-overview.js +91 -0
- package/dist/toolkits/wordpress/tools/index.d.ts +489 -0
- package/dist/toolkits/wordpress/tools/index.js +85 -0
- package/dist/toolkits/wordpress/tools/list-blogging-prompts.d.ts +48 -0
- package/dist/toolkits/wordpress/tools/list-blogging-prompts.js +55 -0
- package/dist/toolkits/wordpress/tools/list-cms-resources.d.ts +45 -0
- package/dist/toolkits/wordpress/tools/list-cms-resources.js +77 -0
- package/dist/toolkits/wordpress/tools/list-content.d.ts +49 -0
- package/dist/toolkits/wordpress/tools/list-content.js +71 -0
- package/dist/toolkits/wordpress/tools/list-reader-subscriptions.d.ts +24 -0
- package/dist/toolkits/wordpress/tools/list-reader-subscriptions.js +39 -0
- package/dist/toolkits/wordpress/tools/list-sites.d.ts +26 -0
- package/dist/toolkits/wordpress/tools/list-sites.js +69 -0
- package/dist/toolkits/wordpress/tools/update-draft-post.d.ts +51 -0
- package/dist/toolkits/wordpress/tools/update-draft-post.js +93 -0
- package/dist/toolkits/wordpress/tools/utils.d.ts +18 -0
- package/dist/toolkits/wordpress/tools/utils.js +33 -0
- package/dist/toolkits/zoho/icon.d.ts +5 -0
- package/dist/toolkits/zoho/icon.js +125 -0
- package/dist/toolkits/zoho/manifest.d.ts +3 -0
- package/dist/toolkits/zoho/manifest.js +54 -0
- package/dist/toolkits/zoho/tools/convert-zoho-lead.d.ts +11 -0
- package/dist/toolkits/zoho/tools/convert-zoho-lead.js +47 -0
- package/dist/toolkits/zoho/tools/create-contact.d.ts +36 -0
- package/dist/toolkits/zoho/tools/create-contact.js +58 -0
- package/dist/toolkits/zoho/tools/create-deal.d.ts +17 -0
- package/dist/toolkits/zoho/tools/create-deal.js +39 -0
- package/dist/toolkits/zoho/tools/create-email-draft.d.ts +7 -0
- package/dist/toolkits/zoho/tools/create-email-draft.js +30 -0
- package/dist/toolkits/zoho/tools/create-event.d.ts +18 -0
- package/dist/toolkits/zoho/tools/create-event.js +40 -0
- package/dist/toolkits/zoho/tools/create-lead.d.ts +31 -0
- package/dist/toolkits/zoho/tools/create-lead.js +53 -0
- package/dist/toolkits/zoho/tools/create-note.d.ts +8 -0
- package/dist/toolkits/zoho/tools/create-note.js +31 -0
- package/dist/toolkits/zoho/tools/create-zoho-record.d.ts +8 -0
- package/dist/toolkits/zoho/tools/create-zoho-record.js +35 -0
- package/dist/toolkits/zoho/tools/create-zoho-tag.d.ts +7 -0
- package/dist/toolkits/zoho/tools/create-zoho-tag.js +30 -0
- package/dist/toolkits/zoho/tools/delete-account.d.ts +6 -0
- package/dist/toolkits/zoho/tools/delete-account.js +29 -0
- package/dist/toolkits/zoho/tools/delete-contact.d.ts +6 -0
- package/dist/toolkits/zoho/tools/delete-contact.js +29 -0
- package/dist/toolkits/zoho/tools/delete-deal.d.ts +6 -0
- package/dist/toolkits/zoho/tools/delete-deal.js +29 -0
- package/dist/toolkits/zoho/tools/get-account.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-account.js +34 -0
- package/dist/toolkits/zoho/tools/get-call.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-call.js +34 -0
- package/dist/toolkits/zoho/tools/get-contact.d.ts +5 -0
- package/dist/toolkits/zoho/tools/get-contact.js +33 -0
- package/dist/toolkits/zoho/tools/get-email-drafts.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-email-drafts.js +34 -0
- package/dist/toolkits/zoho/tools/get-event.d.ts +5 -0
- package/dist/toolkits/zoho/tools/get-event.js +33 -0
- package/dist/toolkits/zoho/tools/get-from-addresses.d.ts +4 -0
- package/dist/toolkits/zoho/tools/get-from-addresses.js +32 -0
- package/dist/toolkits/zoho/tools/get-module-fields.d.ts +8 -0
- package/dist/toolkits/zoho/tools/get-module-fields.js +36 -0
- package/dist/toolkits/zoho/tools/get-note.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-note.js +34 -0
- package/dist/toolkits/zoho/tools/get-record-emails.d.ts +9 -0
- package/dist/toolkits/zoho/tools/get-record-emails.js +37 -0
- package/dist/toolkits/zoho/tools/get-related-lists.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-related-lists.js +29 -0
- package/dist/toolkits/zoho/tools/get-related-records.d.ts +15 -0
- package/dist/toolkits/zoho/tools/get-related-records.js +38 -0
- package/dist/toolkits/zoho/tools/get-task.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-task.js +34 -0
- package/dist/toolkits/zoho/tools/get-user.d.ts +5 -0
- package/dist/toolkits/zoho/tools/get-user.js +33 -0
- package/dist/toolkits/zoho/tools/get-zoho-records.d.ts +13 -0
- package/dist/toolkits/zoho/tools/get-zoho-records.js +59 -0
- package/dist/toolkits/zoho/tools/get-zoho-users.d.ts +9 -0
- package/dist/toolkits/zoho/tools/get-zoho-users.js +32 -0
- package/dist/toolkits/zoho/tools/index.d.ts +789 -0
- package/dist/toolkits/zoho/tools/index.js +175 -0
- package/dist/toolkits/zoho/tools/list-accounts.d.ts +14 -0
- package/dist/toolkits/zoho/tools/list-accounts.js +60 -0
- package/dist/toolkits/zoho/tools/list-calls.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-calls.js +58 -0
- package/dist/toolkits/zoho/tools/list-contacts.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-contacts.js +58 -0
- package/dist/toolkits/zoho/tools/list-deals.d.ts +15 -0
- package/dist/toolkits/zoho/tools/list-deals.js +61 -0
- package/dist/toolkits/zoho/tools/list-events.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-events.js +58 -0
- package/dist/toolkits/zoho/tools/list-leads.d.ts +13 -0
- package/dist/toolkits/zoho/tools/list-leads.js +59 -0
- package/dist/toolkits/zoho/tools/list-modules.d.ts +4 -0
- package/dist/toolkits/zoho/tools/list-modules.js +50 -0
- package/dist/toolkits/zoho/tools/list-notes.d.ts +7 -0
- package/dist/toolkits/zoho/tools/list-notes.js +53 -0
- package/dist/toolkits/zoho/tools/list-record-attachments.d.ts +9 -0
- package/dist/toolkits/zoho/tools/list-record-attachments.js +55 -0
- package/dist/toolkits/zoho/tools/list-tasks.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-tasks.js +58 -0
- package/dist/toolkits/zoho/tools/search-accounts.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-accounts.js +49 -0
- package/dist/toolkits/zoho/tools/search-calls.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-calls.js +49 -0
- package/dist/toolkits/zoho/tools/search-contacts.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-contacts.js +49 -0
- package/dist/toolkits/zoho/tools/search-deals.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-deals.js +49 -0
- package/dist/toolkits/zoho/tools/search-events.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-events.js +49 -0
- package/dist/toolkits/zoho/tools/search-leads.d.ts +13 -0
- package/dist/toolkits/zoho/tools/search-leads.js +51 -0
- package/dist/toolkits/zoho/tools/search-notes.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-notes.js +49 -0
- package/dist/toolkits/zoho/tools/search-tasks.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-tasks.js +49 -0
- package/dist/toolkits/zoho/tools/search-zoho-records.d.ts +12 -0
- package/dist/toolkits/zoho/tools/search-zoho-records.js +50 -0
- package/dist/toolkits/zoho/tools/update-account.d.ts +32 -0
- package/dist/toolkits/zoho/tools/update-account.js +55 -0
- package/dist/toolkits/zoho/tools/update-call.d.ts +8 -0
- package/dist/toolkits/zoho/tools/update-call.js +33 -0
- package/dist/toolkits/zoho/tools/update-deal.d.ts +9 -0
- package/dist/toolkits/zoho/tools/update-deal.js +34 -0
- package/dist/toolkits/zoho/tools/update-email-draft.d.ts +17 -0
- package/dist/toolkits/zoho/tools/update-email-draft.js +42 -0
- package/dist/toolkits/zoho/tools/update-event.d.ts +6 -0
- package/dist/toolkits/zoho/tools/update-event.js +31 -0
- package/dist/toolkits/zoho/tools/update-lead.d.ts +9 -0
- package/dist/toolkits/zoho/tools/update-lead.js +34 -0
- package/dist/toolkits/zoho/tools/update-note.d.ts +8 -0
- package/dist/toolkits/zoho/tools/update-note.js +33 -0
- package/dist/toolkits/zoho/tools/update-related-records.d.ts +8 -0
- package/dist/toolkits/zoho/tools/update-related-records.js +33 -0
- package/dist/toolkits/zoho/tools/update-zoho-record.d.ts +10 -0
- package/dist/toolkits/zoho/tools/update-zoho-record.js +35 -0
- package/dist/toolkits/zoho/tools/upload-attachment.d.ts +9 -0
- package/dist/toolkits/zoho/tools/upload-attachment.js +34 -0
- package/dist/toolkits/zoho/tools/utils.d.ts +24 -0
- package/dist/toolkits/zoho/tools/utils.js +49 -0
- package/dist/toolkits/zoho/tools/validate-credential.d.ts +4 -0
- package/dist/toolkits/zoho/tools/validate-credential.js +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,387 @@
|
|
|
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
|
+
const commentIdField = z
|
|
9
|
+
.union([z.string(), z.number()])
|
|
10
|
+
.describe('The unique identifier of the comment');
|
|
11
|
+
const threadIdField = z
|
|
12
|
+
.number()
|
|
13
|
+
.int()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('Optional thread ID to reply to an existing comment. If provided, this comment is added as a reply to the thread');
|
|
16
|
+
function missingKey() {
|
|
17
|
+
return { error: 'Postman API key is required. Connect Postman first.' };
|
|
18
|
+
}
|
|
19
|
+
function commentPath(base, commentId) {
|
|
20
|
+
return commentId === undefined ? base : `${base}/${encodeURIComponent(String(commentId))}`;
|
|
21
|
+
}
|
|
22
|
+
// ---- API collection comments (POST /apis/{apiId}/collections/{collectionId}/comments) ----
|
|
23
|
+
export const postmanCreateACollectionComment = tool({
|
|
24
|
+
description: "Create a comment on an API's collection. Use when you need to add a comment to a specific collection within an API. To create a reply on an existing comment, include the thread ID in the request.",
|
|
25
|
+
inputSchema: z.object({
|
|
26
|
+
...authField,
|
|
27
|
+
apiId: z.string().describe('The API unique identifier (UUID) containing the collection'),
|
|
28
|
+
collectionId: z.string().describe('The collection unique identifier (UUID) to comment on'),
|
|
29
|
+
body: z.string().describe('The text content of the comment to create on the API collection'),
|
|
30
|
+
threadId: threadIdField,
|
|
31
|
+
}),
|
|
32
|
+
execute: async ({ postmanApiKey, apiId, collectionId, body, threadId }) => {
|
|
33
|
+
try {
|
|
34
|
+
if (!postmanApiKey)
|
|
35
|
+
return missingKey();
|
|
36
|
+
return await postmanRequest(postmanApiKey, 'POST', `/apis/${encodeURIComponent(apiId)}/collections/${encodeURIComponent(collectionId)}/comments`, { body: { body, ...(threadId !== undefined ? { threadId } : {}) } });
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
return toPostmanError(error, 'Failed to create collection comment');
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
export const postmanGetCollectionComments = tool({
|
|
44
|
+
description: "Retrieve all comments left by users in an API's collection. Use when you need to fetch all comments associated with a specific collection within an API.",
|
|
45
|
+
inputSchema: z.object({
|
|
46
|
+
...authField,
|
|
47
|
+
apiId: z.string().describe('The API unique identifier (UUID) containing the collection'),
|
|
48
|
+
collectionId: z.string().describe('The collection unique identifier (UUID) to retrieve comments from'),
|
|
49
|
+
}),
|
|
50
|
+
execute: async ({ postmanApiKey, apiId, collectionId }) => {
|
|
51
|
+
try {
|
|
52
|
+
if (!postmanApiKey)
|
|
53
|
+
return missingKey();
|
|
54
|
+
return await postmanRequest(postmanApiKey, 'GET', `/apis/${encodeURIComponent(apiId)}/collections/${encodeURIComponent(collectionId)}/comments`);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
return toPostmanError(error, 'Failed to get collection comments');
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
export const postmanDeleteACollectionsComment = tool({
|
|
62
|
+
description: "Delete a comment from an API's collection. Use when you need to remove a specific comment from a collection.",
|
|
63
|
+
inputSchema: z.object({
|
|
64
|
+
...authField,
|
|
65
|
+
apiId: z.string().describe('The API unique identifier (UUID) containing the collection'),
|
|
66
|
+
collectionId: z.string().describe('The collection unique identifier (UUID) containing the comment'),
|
|
67
|
+
commentId: commentIdField,
|
|
68
|
+
}),
|
|
69
|
+
execute: async ({ postmanApiKey, apiId, collectionId, commentId }) => {
|
|
70
|
+
try {
|
|
71
|
+
if (!postmanApiKey)
|
|
72
|
+
return missingKey();
|
|
73
|
+
return await postmanRequest(postmanApiKey, 'DELETE', commentPath(`/apis/${encodeURIComponent(apiId)}/collections/${encodeURIComponent(collectionId)}/comments`, commentId));
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
return toPostmanError(error, 'Failed to delete collection comment');
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
// ---- API comments (POST /apis/{apiId}/comments) ----
|
|
81
|
+
export const postmanGetApiComments = tool({
|
|
82
|
+
description: 'Retrieve all comments left by users in an API. Use when you need to fetch all comments associated with a specific API.',
|
|
83
|
+
inputSchema: z.object({
|
|
84
|
+
...authField,
|
|
85
|
+
apiId: z.string().describe('The API unique identifier (UUID) to retrieve comments from'),
|
|
86
|
+
}),
|
|
87
|
+
execute: async ({ postmanApiKey, apiId }) => {
|
|
88
|
+
try {
|
|
89
|
+
if (!postmanApiKey)
|
|
90
|
+
return missingKey();
|
|
91
|
+
return await postmanRequest(postmanApiKey, 'GET', `/apis/${encodeURIComponent(apiId)}/comments`);
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
return toPostmanError(error, 'Failed to get API comments');
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
export const postmanUpdateAnApisComment = tool({
|
|
99
|
+
description: 'Update a comment on an API. Use when you need to modify the text content of an existing comment on a specific API.',
|
|
100
|
+
inputSchema: z.object({
|
|
101
|
+
...authField,
|
|
102
|
+
apiId: z.string().describe('The API unique identifier (UUID) containing the comment to update'),
|
|
103
|
+
commentId: commentIdField,
|
|
104
|
+
body: z.string().describe('The updated text content of the comment'),
|
|
105
|
+
}),
|
|
106
|
+
execute: async ({ postmanApiKey, apiId, commentId, body }) => {
|
|
107
|
+
try {
|
|
108
|
+
if (!postmanApiKey)
|
|
109
|
+
return missingKey();
|
|
110
|
+
return await postmanRequest(postmanApiKey, 'PUT', commentPath(`/apis/${encodeURIComponent(apiId)}/comments`, commentId), { body: { body } });
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
return toPostmanError(error, 'Failed to update API comment');
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
export const postmanDeleteAnApisComment = tool({
|
|
118
|
+
description: 'Delete a comment from an API. Use when you need to remove a comment from a specific API. On success, returns HTTP 204 No Content.',
|
|
119
|
+
inputSchema: z.object({
|
|
120
|
+
...authField,
|
|
121
|
+
apiId: z.string().describe('The API unique identifier (UUID) containing the comment to delete'),
|
|
122
|
+
commentId: commentIdField,
|
|
123
|
+
}),
|
|
124
|
+
execute: async ({ postmanApiKey, apiId, commentId }) => {
|
|
125
|
+
try {
|
|
126
|
+
if (!postmanApiKey)
|
|
127
|
+
return missingKey();
|
|
128
|
+
return await postmanRequest(postmanApiKey, 'DELETE', commentPath(`/apis/${encodeURIComponent(apiId)}/comments`, commentId));
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
return toPostmanError(error, 'Failed to delete API comment');
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
// ---- Folder comments (/collections/{collectionUid}/folders/{folderUid}/comments) ----
|
|
136
|
+
export const postmanCreateAFolderComment = tool({
|
|
137
|
+
description: 'Create a comment on a folder. Use when you need to add a comment to a specific folder in a collection.',
|
|
138
|
+
inputSchema: z.object({
|
|
139
|
+
...authField,
|
|
140
|
+
collectionUid: z.string().describe('The collection UID containing the folder'),
|
|
141
|
+
folderUid: z.string().describe('The folder UID to comment on'),
|
|
142
|
+
body: z.string().describe('The comment text content to post on the folder'),
|
|
143
|
+
threadId: threadIdField,
|
|
144
|
+
}),
|
|
145
|
+
execute: async ({ postmanApiKey, collectionUid, folderUid, body, threadId }) => {
|
|
146
|
+
try {
|
|
147
|
+
if (!postmanApiKey)
|
|
148
|
+
return missingKey();
|
|
149
|
+
return await postmanRequest(postmanApiKey, 'POST', `/collections/${encodeURIComponent(collectionUid)}/folders/${encodeURIComponent(folderUid)}/comments`, { body: { body, ...(threadId !== undefined ? { threadId } : {}) } });
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
return toPostmanError(error, 'Failed to create folder comment');
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
export const postmanGetFolderComments = tool({
|
|
157
|
+
description: 'Retrieve all comments left by users in a folder. Use when you need to fetch all comments associated with a specific folder within a collection.',
|
|
158
|
+
inputSchema: z.object({
|
|
159
|
+
...authField,
|
|
160
|
+
collectionUid: z.string().describe('The collection UID containing the folder'),
|
|
161
|
+
folderUid: z.string().describe('The folder UID to retrieve comments from'),
|
|
162
|
+
}),
|
|
163
|
+
execute: async ({ postmanApiKey, collectionUid, folderUid }) => {
|
|
164
|
+
try {
|
|
165
|
+
if (!postmanApiKey)
|
|
166
|
+
return missingKey();
|
|
167
|
+
return await postmanRequest(postmanApiKey, 'GET', `/collections/${encodeURIComponent(collectionUid)}/folders/${encodeURIComponent(folderUid)}/comments`);
|
|
168
|
+
}
|
|
169
|
+
catch (error) {
|
|
170
|
+
return toPostmanError(error, 'Failed to get folder comments');
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
export const postmanUpdateAFoldersComment = tool({
|
|
175
|
+
description: 'Update a comment on a folder. Use when you need to modify the text content of an existing comment on a specific folder in a collection.',
|
|
176
|
+
inputSchema: z.object({
|
|
177
|
+
...authField,
|
|
178
|
+
collectionUid: z.string().describe('The collection UID containing the folder'),
|
|
179
|
+
folderUid: z.string().describe('The folder UID containing the comment'),
|
|
180
|
+
commentId: commentIdField,
|
|
181
|
+
body: z.string().describe('The updated text content of the comment'),
|
|
182
|
+
}),
|
|
183
|
+
execute: async ({ postmanApiKey, collectionUid, folderUid, commentId, body }) => {
|
|
184
|
+
try {
|
|
185
|
+
if (!postmanApiKey)
|
|
186
|
+
return missingKey();
|
|
187
|
+
return await postmanRequest(postmanApiKey, 'PUT', commentPath(`/collections/${encodeURIComponent(collectionUid)}/folders/${encodeURIComponent(folderUid)}/comments`, commentId), { body: { body } });
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
return toPostmanError(error, 'Failed to update folder comment');
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
export const postmanDeleteAFoldersComment = tool({
|
|
195
|
+
description: "Delete a comment from a folder. Use when you need to remove a specific comment from a folder. Returns HTTP 204 No Content on successful deletion.",
|
|
196
|
+
inputSchema: z.object({
|
|
197
|
+
...authField,
|
|
198
|
+
collectionUid: z.string().describe('The collection UID containing the folder'),
|
|
199
|
+
folderUid: z.string().describe('The folder UID containing the comment'),
|
|
200
|
+
commentId: commentIdField,
|
|
201
|
+
}),
|
|
202
|
+
execute: async ({ postmanApiKey, collectionUid, folderUid, commentId }) => {
|
|
203
|
+
try {
|
|
204
|
+
if (!postmanApiKey)
|
|
205
|
+
return missingKey();
|
|
206
|
+
return await postmanRequest(postmanApiKey, 'DELETE', commentPath(`/collections/${encodeURIComponent(collectionUid)}/folders/${encodeURIComponent(folderUid)}/comments`, commentId));
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
return toPostmanError(error, 'Failed to delete folder comment');
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
// ---- Request comments (/collections/{collectionUid}/requests/{requestUid}/comments) ----
|
|
214
|
+
export const postmanCreateARequestComment = tool({
|
|
215
|
+
description: 'Create a comment on a request. Use when you need to add a comment to a specific request within a collection or reply to an existing comment thread.',
|
|
216
|
+
inputSchema: z.object({
|
|
217
|
+
...authField,
|
|
218
|
+
collectionUid: z.string().describe('The collection UID containing the request'),
|
|
219
|
+
requestUid: z.string().describe('The request UID to create a comment on'),
|
|
220
|
+
body: z.string().describe('The comment text content to post on the request'),
|
|
221
|
+
threadId: threadIdField,
|
|
222
|
+
}),
|
|
223
|
+
execute: async ({ postmanApiKey, collectionUid, requestUid, body, threadId }) => {
|
|
224
|
+
try {
|
|
225
|
+
if (!postmanApiKey)
|
|
226
|
+
return missingKey();
|
|
227
|
+
return await postmanRequest(postmanApiKey, 'POST', `/collections/${encodeURIComponent(collectionUid)}/requests/${encodeURIComponent(requestUid)}/comments`, { body: { body, ...(threadId !== undefined ? { threadId } : {}) } });
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
return toPostmanError(error, 'Failed to create request comment');
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
export const postmanGetRequestComments = tool({
|
|
235
|
+
description: 'Retrieve all comments left by users in a request. Use when you need to fetch all comments associated with a specific request within a collection.',
|
|
236
|
+
inputSchema: z.object({
|
|
237
|
+
...authField,
|
|
238
|
+
collectionUid: z.string().describe('The collection UID containing the request'),
|
|
239
|
+
requestUid: z.string().describe('The request UID to retrieve comments from'),
|
|
240
|
+
}),
|
|
241
|
+
execute: async ({ postmanApiKey, collectionUid, requestUid }) => {
|
|
242
|
+
try {
|
|
243
|
+
if (!postmanApiKey)
|
|
244
|
+
return missingKey();
|
|
245
|
+
return await postmanRequest(postmanApiKey, 'GET', `/collections/${encodeURIComponent(collectionUid)}/requests/${encodeURIComponent(requestUid)}/comments`);
|
|
246
|
+
}
|
|
247
|
+
catch (error) {
|
|
248
|
+
return toPostmanError(error, 'Failed to get request comments');
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
});
|
|
252
|
+
export const postmanUpdateARequestsComment = tool({
|
|
253
|
+
description: "Update a comment on a request. Use when you need to modify the text content of an existing comment on a specific request within a collection.",
|
|
254
|
+
inputSchema: z.object({
|
|
255
|
+
...authField,
|
|
256
|
+
collectionUid: z.string().describe('The collection UID containing the request'),
|
|
257
|
+
requestUid: z.string().describe('The request UID containing the comment'),
|
|
258
|
+
commentId: commentIdField,
|
|
259
|
+
body: z.string().describe('The updated text content of the comment'),
|
|
260
|
+
}),
|
|
261
|
+
execute: async ({ postmanApiKey, collectionUid, requestUid, commentId, body }) => {
|
|
262
|
+
try {
|
|
263
|
+
if (!postmanApiKey)
|
|
264
|
+
return missingKey();
|
|
265
|
+
return await postmanRequest(postmanApiKey, 'PUT', commentPath(`/collections/${encodeURIComponent(collectionUid)}/requests/${encodeURIComponent(requestUid)}/comments`, commentId), { body: { body } });
|
|
266
|
+
}
|
|
267
|
+
catch (error) {
|
|
268
|
+
return toPostmanError(error, 'Failed to update request comment');
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
});
|
|
272
|
+
export const postmanDeleteARequestsComment = tool({
|
|
273
|
+
description: "Delete a comment from a request. Use when you need to remove a specific comment from a request. On success, returns HTTP 204 No Content.",
|
|
274
|
+
inputSchema: z.object({
|
|
275
|
+
...authField,
|
|
276
|
+
collectionUid: z.string().describe('The collection UID containing the request'),
|
|
277
|
+
requestUid: z.string().describe('The request UID containing the comment'),
|
|
278
|
+
commentId: commentIdField,
|
|
279
|
+
}),
|
|
280
|
+
execute: async ({ postmanApiKey, collectionUid, requestUid, commentId }) => {
|
|
281
|
+
try {
|
|
282
|
+
if (!postmanApiKey)
|
|
283
|
+
return missingKey();
|
|
284
|
+
return await postmanRequest(postmanApiKey, 'DELETE', commentPath(`/collections/${encodeURIComponent(collectionUid)}/requests/${encodeURIComponent(requestUid)}/comments`, commentId));
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
return toPostmanError(error, 'Failed to delete request comment');
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
// ---- Response comments (/collections/{collectionUid}/responses/{responseUid}/comments) ----
|
|
292
|
+
export const postmanCreateAResponseComment = tool({
|
|
293
|
+
description: 'Create a comment on a response. Use when you need to add a comment to a specific response within a collection or reply to an existing comment thread.',
|
|
294
|
+
inputSchema: z.object({
|
|
295
|
+
...authField,
|
|
296
|
+
collectionUid: z.string().describe('The collection UID containing the response'),
|
|
297
|
+
responseUid: z.string().describe('The response UID to create a comment on'),
|
|
298
|
+
body: z.string().describe('The comment text content to post on the response'),
|
|
299
|
+
threadId: threadIdField,
|
|
300
|
+
}),
|
|
301
|
+
execute: async ({ postmanApiKey, collectionUid, responseUid, body, threadId }) => {
|
|
302
|
+
try {
|
|
303
|
+
if (!postmanApiKey)
|
|
304
|
+
return missingKey();
|
|
305
|
+
return await postmanRequest(postmanApiKey, 'POST', `/collections/${encodeURIComponent(collectionUid)}/responses/${encodeURIComponent(responseUid)}/comments`, { body: { body, ...(threadId !== undefined ? { threadId } : {}) } });
|
|
306
|
+
}
|
|
307
|
+
catch (error) {
|
|
308
|
+
return toPostmanError(error, 'Failed to create response comment');
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
});
|
|
312
|
+
export const postmanGetResponseComments = tool({
|
|
313
|
+
description: 'Retrieve all comments left by users in a response. Use when you need to fetch all comments associated with a specific response within a collection.',
|
|
314
|
+
inputSchema: z.object({
|
|
315
|
+
...authField,
|
|
316
|
+
collectionUid: z.string().describe('The collection UID containing the response'),
|
|
317
|
+
responseUid: z.string().describe('The response UID to retrieve comments from'),
|
|
318
|
+
}),
|
|
319
|
+
execute: async ({ postmanApiKey, collectionUid, responseUid }) => {
|
|
320
|
+
try {
|
|
321
|
+
if (!postmanApiKey)
|
|
322
|
+
return missingKey();
|
|
323
|
+
return await postmanRequest(postmanApiKey, 'GET', `/collections/${encodeURIComponent(collectionUid)}/responses/${encodeURIComponent(responseUid)}/comments`);
|
|
324
|
+
}
|
|
325
|
+
catch (error) {
|
|
326
|
+
return toPostmanError(error, 'Failed to get response comments');
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
});
|
|
330
|
+
export const postmanUpdateAResponsesComment = tool({
|
|
331
|
+
description: "Update a comment on a response. Use when you need to modify the text content of an existing comment on a specific response within a collection.",
|
|
332
|
+
inputSchema: z.object({
|
|
333
|
+
...authField,
|
|
334
|
+
collectionUid: z.string().describe('The collection UID containing the response'),
|
|
335
|
+
responseUid: z.string().describe('The response UID containing the comment'),
|
|
336
|
+
commentId: commentIdField,
|
|
337
|
+
body: z.string().describe('The updated text content of the comment'),
|
|
338
|
+
}),
|
|
339
|
+
execute: async ({ postmanApiKey, collectionUid, responseUid, commentId, body }) => {
|
|
340
|
+
try {
|
|
341
|
+
if (!postmanApiKey)
|
|
342
|
+
return missingKey();
|
|
343
|
+
return await postmanRequest(postmanApiKey, 'PUT', commentPath(`/collections/${encodeURIComponent(collectionUid)}/responses/${encodeURIComponent(responseUid)}/comments`, commentId), { body: { body } });
|
|
344
|
+
}
|
|
345
|
+
catch (error) {
|
|
346
|
+
return toPostmanError(error, 'Failed to update response comment');
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
});
|
|
350
|
+
export const postmanDeleteAResponsesComment = tool({
|
|
351
|
+
description: 'Delete a comment from a response. Use when you need to remove a specific comment from a collection response. On success, returns HTTP 204 No Content.',
|
|
352
|
+
inputSchema: z.object({
|
|
353
|
+
...authField,
|
|
354
|
+
collectionUid: z.string().describe('The collection UID containing the response'),
|
|
355
|
+
responseUid: z.string().describe('The response UID containing the comment'),
|
|
356
|
+
commentId: commentIdField,
|
|
357
|
+
}),
|
|
358
|
+
execute: async ({ postmanApiKey, collectionUid, responseUid, commentId }) => {
|
|
359
|
+
try {
|
|
360
|
+
if (!postmanApiKey)
|
|
361
|
+
return missingKey();
|
|
362
|
+
return await postmanRequest(postmanApiKey, 'DELETE', commentPath(`/collections/${encodeURIComponent(collectionUid)}/responses/${encodeURIComponent(responseUid)}/comments`, commentId));
|
|
363
|
+
}
|
|
364
|
+
catch (error) {
|
|
365
|
+
return toPostmanError(error, 'Failed to delete response comment');
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
});
|
|
369
|
+
// ---- Comment threads ----
|
|
370
|
+
export const postmanResolveACommentThread = tool({
|
|
371
|
+
description: 'Resolve a comment thread and any associated replies. Use when you need to mark a comment thread as resolved. On success, returns HTTP 204 No Content.',
|
|
372
|
+
inputSchema: z.object({
|
|
373
|
+
...authField,
|
|
374
|
+
threadId: z.union([z.string(), z.number()]).describe('The ID of the comment thread to resolve'),
|
|
375
|
+
}),
|
|
376
|
+
execute: async ({ postmanApiKey, threadId }) => {
|
|
377
|
+
try {
|
|
378
|
+
if (!postmanApiKey)
|
|
379
|
+
return missingKey();
|
|
380
|
+
return await postmanRequest(postmanApiKey, 'POST', `/comments-resolutions/${encodeURIComponent(String(threadId))}`);
|
|
381
|
+
}
|
|
382
|
+
catch (error) {
|
|
383
|
+
return toPostmanError(error, 'Failed to resolve comment thread');
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
});
|
|
387
|
+
//# sourceMappingURL=comments.js.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export declare const postmanCreateAnApi: import("ai").Tool<{
|
|
2
|
+
name: string;
|
|
3
|
+
workspaceId: string;
|
|
4
|
+
description?: string | undefined;
|
|
5
|
+
summary?: string | undefined;
|
|
6
|
+
postmanApiKey?: string | undefined;
|
|
7
|
+
}, any>;
|
|
8
|
+
export declare const postmanGetAllApis: import("ai").Tool<{
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
cursor?: string | undefined;
|
|
11
|
+
postmanApiKey?: string | undefined;
|
|
12
|
+
workspaceId?: string | undefined;
|
|
13
|
+
}, any>;
|
|
14
|
+
export declare const postmanGetApiInformation: import("ai").Tool<{
|
|
15
|
+
apiId: string;
|
|
16
|
+
postmanApiKey?: string | undefined;
|
|
17
|
+
}, any>;
|
|
18
|
+
export declare const postmanUpdateAnApi: import("ai").Tool<{
|
|
19
|
+
apiId: string;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
summary?: string | undefined;
|
|
23
|
+
postmanApiKey?: string | undefined;
|
|
24
|
+
}, any>;
|
|
25
|
+
export declare const postmanDeleteAnApi: import("ai").Tool<{
|
|
26
|
+
apiId: string;
|
|
27
|
+
postmanApiKey?: string | undefined;
|
|
28
|
+
}, any>;
|
|
29
|
+
export declare const postmanGetAllApiVersions: import("ai").Tool<{
|
|
30
|
+
apiId: string;
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
cursor?: string | undefined;
|
|
33
|
+
postmanApiKey?: string | undefined;
|
|
34
|
+
}, any>;
|
|
35
|
+
export declare const postmanGetApiVersion: import("ai").Tool<{
|
|
36
|
+
apiId: string;
|
|
37
|
+
apiVersionId: string;
|
|
38
|
+
postmanApiKey?: string | undefined;
|
|
39
|
+
}, any>;
|
|
40
|
+
export declare const postmanCreateApiSchema: import("ai").Tool<{
|
|
41
|
+
type: string;
|
|
42
|
+
files: {
|
|
43
|
+
path: string;
|
|
44
|
+
content: string;
|
|
45
|
+
}[];
|
|
46
|
+
apiId: string;
|
|
47
|
+
postmanApiKey?: string | undefined;
|
|
48
|
+
}, any>;
|
|
49
|
+
export declare const postmanGetApiSchema: import("ai").Tool<{
|
|
50
|
+
apiId: string;
|
|
51
|
+
schemaId: string;
|
|
52
|
+
versionId?: string | undefined;
|
|
53
|
+
postmanApiKey?: string | undefined;
|
|
54
|
+
}, any>;
|
|
55
|
+
export declare const postmanGetSchemaFiles: import("ai").Tool<{
|
|
56
|
+
apiId: string;
|
|
57
|
+
schemaId: string;
|
|
58
|
+
versionId?: string | undefined;
|
|
59
|
+
postmanApiKey?: string | undefined;
|
|
60
|
+
}, any>;
|
|
61
|
+
export declare const postmanGetSchemaFileContents: import("ai").Tool<{
|
|
62
|
+
filePath: string;
|
|
63
|
+
apiId: string;
|
|
64
|
+
schemaId: string;
|
|
65
|
+
versionId?: string | undefined;
|
|
66
|
+
postmanApiKey?: string | undefined;
|
|
67
|
+
}, any>;
|
|
68
|
+
export declare const postmanCreateOrUpdateASchemaFile: import("ai").Tool<{
|
|
69
|
+
content: string;
|
|
70
|
+
filePath: string;
|
|
71
|
+
apiId: string;
|
|
72
|
+
schemaId: string;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
postmanApiKey?: string | undefined;
|
|
75
|
+
}, any>;
|
|
76
|
+
export declare const postmanDeleteASchemaFile: import("ai").Tool<{
|
|
77
|
+
filePath: string;
|
|
78
|
+
apiId: string;
|
|
79
|
+
schemaId: string;
|
|
80
|
+
postmanApiKey?: string | undefined;
|
|
81
|
+
}, any>;
|
|
82
|
+
export declare const postmanSyncCollectionWithSchema: import("ai").Tool<{
|
|
83
|
+
collectionUid: string;
|
|
84
|
+
apiId: string;
|
|
85
|
+
postmanApiKey?: string | undefined;
|
|
86
|
+
}, any>;
|
|
87
|
+
export declare const postmanCreateApiVersionRelations: import("ai").Tool<{
|
|
88
|
+
apiId: string;
|
|
89
|
+
apiVersionId: string;
|
|
90
|
+
mock?: string[] | undefined;
|
|
91
|
+
postmanApiKey?: string | undefined;
|
|
92
|
+
contracttest?: string[] | undefined;
|
|
93
|
+
testsuite?: string[] | undefined;
|
|
94
|
+
documentation?: string[] | undefined;
|
|
95
|
+
}, any>;
|
|
96
|
+
export declare const postmanGetAllLinkedRelations: import("ai").Tool<{
|
|
97
|
+
apiId: string;
|
|
98
|
+
apiVersionId: string;
|
|
99
|
+
postmanApiKey?: string | undefined;
|
|
100
|
+
}, any>;
|
|
101
|
+
export declare const postmanGetUnclassifiedRelations: import("ai").Tool<{
|
|
102
|
+
apiId: string;
|
|
103
|
+
apiVersionId: string;
|
|
104
|
+
postmanApiKey?: string | undefined;
|
|
105
|
+
}, any>;
|
|
106
|
+
//# sourceMappingURL=designs_and_apis.d.ts.map
|