@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,719 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { vercelFetch } from './client.js';
|
|
5
|
+
export const vercelAddProjectDomain = tool({
|
|
6
|
+
description: 'Tool to attach a custom domain to a Vercel project. Use when you need to add a domain to a project for production or branch-specific deployments. After adding, the domain must be verified by completing the verification challenges returned in the response.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
9
|
+
name: z.string().describe('The domain name to add to the project (e.g., \'www.example.com\', \'app.mydomain.com\')'),
|
|
10
|
+
slug: z.string().optional().describe('Team slug to perform the request on behalf of'),
|
|
11
|
+
teamId: z.string().optional().describe('Team identifier to perform the request on behalf of'),
|
|
12
|
+
idOrName: z.string().describe('The unique project identifier or project name'),
|
|
13
|
+
redirect: z.string().optional().describe('Target destination domain for redirection. **PREREQUISITE: The target domain must already be added to the project first** (call this action without redirect parameters to add the target domain, then c'),
|
|
14
|
+
gitBranch: z.string().optional().describe('Git branch to associate with this domain. When set, deployments from this branch will be accessible via this domain. Maximum 250 characters. IMPORTANT: Cannot be used together with \'redirect\' or \'r'),
|
|
15
|
+
redirectStatusCode: z.number().optional().describe('HTTP status code for redirect. Required when \'redirect\' is set. 301: Permanent redirect (cached by browsers), 302: Temporary redirect, 307: Temporary redirect (preserves method), 308: Permanent redi'),
|
|
16
|
+
customEnvironmentId: z.string().optional().describe('Custom environment identifier within the project to associate with this domain'),
|
|
17
|
+
}),
|
|
18
|
+
execute: async (params) => {
|
|
19
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
20
|
+
if (!vercelToken)
|
|
21
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
22
|
+
try {
|
|
23
|
+
const path = (() => { const p = rest; return `/v10/projects/${p.idOrName}/domains`; })();
|
|
24
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
25
|
+
if (!res.ok)
|
|
26
|
+
return { error: 'Add Domain to Project failed', details: res.data };
|
|
27
|
+
return res.data;
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
return { error: 'Error in vercelAddProjectDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export const vercelBuyDomains = tool({
|
|
35
|
+
description: 'Tool to purchase multiple domains through Vercel\'s domain registrar. Use when registering new domains after checking availability and price. Important: Always check domain availability and price before attempting purchase. Some TLDs may require additional contact information fields.',
|
|
36
|
+
inputSchema: z.object({
|
|
37
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
38
|
+
slug: z.string().optional().describe('Team slug to perform the request on behalf of'),
|
|
39
|
+
teamId: z.string().optional().describe('Team identifier to perform the request on behalf of'),
|
|
40
|
+
domains: z.array(z.record(z.any())).describe('List of domains to purchase. Must contain at least one domain.'),
|
|
41
|
+
contactInformation: z.record(z.any()).describe('Contact information for domain registration. Some TLDs may require additional fields.'),
|
|
42
|
+
}),
|
|
43
|
+
execute: async (params) => {
|
|
44
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
45
|
+
if (!vercelToken)
|
|
46
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
47
|
+
try {
|
|
48
|
+
const path = (() => { const p = rest; return `/v5/domains/buy`; })();
|
|
49
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
50
|
+
if (!res.ok)
|
|
51
|
+
return { error: 'Buy Domains failed', details: res.data };
|
|
52
|
+
return res.data;
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
return { error: 'Error in vercelBuyDomains', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
export const vercelBuySingleDomain = tool({
|
|
60
|
+
description: 'Tool to purchase a domain through Vercel\'s domain registrar. Use when you need to register and buy a domain after confirming availability and pricing.',
|
|
61
|
+
inputSchema: z.object({
|
|
62
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
63
|
+
years: z.number().describe('Number of years to register the domain for'),
|
|
64
|
+
domain: z.string().describe('The fully qualified domain name to purchase (e.g., example.com)'),
|
|
65
|
+
teamId: z.string().optional().describe('Optional team ID to purchase the domain on behalf of a team'),
|
|
66
|
+
autoRenew: z.boolean().describe('Whether the domain should be automatically renewed before it expires. Can be configured later via the Vercel Dashboard or API.'),
|
|
67
|
+
expectedPrice: z.number().describe('Expected price in USD for the domain purchase. Use check_domain_price to get current pricing.'),
|
|
68
|
+
contactInformation: z.record(z.any()).describe('Contact information for domain registration. Some TLDs require additional fields - use get_contact_info_schema endpoint to check requirements.'),
|
|
69
|
+
}),
|
|
70
|
+
execute: async (params) => {
|
|
71
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
72
|
+
if (!vercelToken)
|
|
73
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
74
|
+
try {
|
|
75
|
+
const path = (() => { const p = rest; return `/v4/domains/buy`; })();
|
|
76
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
77
|
+
if (!res.ok)
|
|
78
|
+
return { error: 'Buy Single Domain failed', details: res.data };
|
|
79
|
+
return res.data;
|
|
80
|
+
}
|
|
81
|
+
catch (e) {
|
|
82
|
+
return { error: 'Error in vercelBuySingleDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
export const vercelCheckDomainAvailability = tool({
|
|
87
|
+
description: 'Tool to check if a domain is available for registration. Read-only: does not reserve or purchase the domain. Use when you need to verify domain availability before purchase. Response field `available=false` means the domain is taken (not an error); actual failures return HTTP 4xx. IMPORTANT: Vercel only supports specific TLDs. Common supported TLDs include: .com, .net, .org, .io, .co, .dev, .app, .ai, .xyz, .me. Some TLDs are NOT supported (e.g., .cam, .berlin, .wales). For the full list, see: https://vercel.com/docs/domains/supported-domains',
|
|
88
|
+
inputSchema: z.object({
|
|
89
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
90
|
+
slug: z.string().optional().describe('Optional team slug to perform the request on behalf of.'),
|
|
91
|
+
domain: z.string().describe('The domain name to check for availability (e.g., \'example.com\'). Can also be passed as \'domain\'. IMPORTANT: Only domains with Vercel-supported TLDs can be checked. Common supported TLDs include: .'),
|
|
92
|
+
teamId: z.string().optional().describe('Optional team identifier to perform the request on behalf of. Can also be passed as \'team\'.'),
|
|
93
|
+
}),
|
|
94
|
+
execute: async (params) => {
|
|
95
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
96
|
+
if (!vercelToken)
|
|
97
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
98
|
+
try {
|
|
99
|
+
const path = (() => { const p = rest; return `/v4/domains/status`; })();
|
|
100
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
101
|
+
if (!res.ok)
|
|
102
|
+
return { error: 'Check Domain Availability failed', details: res.data };
|
|
103
|
+
return res.data;
|
|
104
|
+
}
|
|
105
|
+
catch (e) {
|
|
106
|
+
return { error: 'Error in vercelCheckDomainAvailability', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
export const vercelCheckDomainPrice = tool({
|
|
111
|
+
description: 'DEPRECATED: Use VERCEL_CHECK_DOMAIN_PRICE2 instead. Tool to check the price for a domain before purchase. Use when evaluating cost and availability prior to domain registration.',
|
|
112
|
+
inputSchema: z.object({
|
|
113
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
114
|
+
years: z.number().optional().describe('Number of years to get pricing for. If omitted, uses the minimum years for the TLD.'),
|
|
115
|
+
domain: z.string().describe('Fully qualified domain name to check price for'),
|
|
116
|
+
}),
|
|
117
|
+
execute: async (params) => {
|
|
118
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
119
|
+
if (!vercelToken)
|
|
120
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
121
|
+
try {
|
|
122
|
+
const path = (() => { const p = rest; return `/v4/domains/price`; })();
|
|
123
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
124
|
+
if (!res.ok)
|
|
125
|
+
return { error: 'Check Domain Price (Deprecated) failed', details: res.data };
|
|
126
|
+
return res.data;
|
|
127
|
+
}
|
|
128
|
+
catch (e) {
|
|
129
|
+
return { error: 'Error in vercelCheckDomainPrice', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
export const vercelCheckDomainPrice2 = tool({
|
|
134
|
+
description: 'Check pricing for a domain including purchase, renewal, and transfer costs. Use this to evaluate the cost of registering, renewing, or transferring a domain via Vercel. Returns pricing for the specified domain and time period.',
|
|
135
|
+
inputSchema: z.object({
|
|
136
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
137
|
+
years: z.number().optional().describe('The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used (typically 1 year).'),
|
|
138
|
+
domain: z.string().describe('The domain name to check pricing for (e.g., \'example.com\', \'mysite.io\').'),
|
|
139
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of (e.g., \'team_1a2b3c4d5e6f7g8h9i0j1k2l\').'),
|
|
140
|
+
}),
|
|
141
|
+
execute: async (params) => {
|
|
142
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
143
|
+
if (!vercelToken)
|
|
144
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
145
|
+
try {
|
|
146
|
+
const path = (() => { const p = rest; return `/v4/domains/price`; })();
|
|
147
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
148
|
+
if (!res.ok)
|
|
149
|
+
return { error: 'Check Domain Price failed', details: res.data };
|
|
150
|
+
return res.data;
|
|
151
|
+
}
|
|
152
|
+
catch (e) {
|
|
153
|
+
return { error: 'Error in vercelCheckDomainPrice2', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
export const vercelCreateDnsRecord = tool({
|
|
158
|
+
description: 'Tool to create a new DNS record for a domain. Use when you need to add DNS records such as A, AAAA, CNAME, MX, TXT, SRV, or other record types to a domain managed in Vercel.',
|
|
159
|
+
inputSchema: z.object({
|
|
160
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
161
|
+
srv: z.record(z.any()).optional().describe('Configuration for SRV record type.'),
|
|
162
|
+
ttl: z.number().optional().describe('The Time to live (TTL) value of the DNS record in seconds. Must be between 60 and 2147483647. If not specified, a default TTL will be used.'),
|
|
163
|
+
name: z.string().describe('The name/subdomain for the DNS record. Use \'@\' for the root domain or provide a subdomain like \'www\' or \'api\'.'),
|
|
164
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
165
|
+
type: z.string().describe('The type of DNS record to create'),
|
|
166
|
+
https: z.record(z.any()).optional().describe('Configuration for HTTPS record type.'),
|
|
167
|
+
value: z.string().optional().describe('The value of the DNS record. Required for A, AAAA, ALIAS, CAA, CNAME, MX, TXT, and NS record types. Not used for SRV and HTTPS records which use their respective config objects.'),
|
|
168
|
+
domain: z.string().describe('The domain used to create the DNS record (e.g., \'example.com\')'),
|
|
169
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
170
|
+
comment: z.string().optional().describe('A comment to add context on what this DNS record is for. Maximum 500 characters.'),
|
|
171
|
+
mxPriority: z.number().optional().describe('The MX priority value. Required when record type is MX.'),
|
|
172
|
+
}),
|
|
173
|
+
execute: async (params) => {
|
|
174
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
175
|
+
if (!vercelToken)
|
|
176
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
177
|
+
try {
|
|
178
|
+
const path = (() => { const p = rest; return `/v2/domains/${p.domain}/records`; })();
|
|
179
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
180
|
+
if (!res.ok)
|
|
181
|
+
return { error: 'Create DNS Record failed', details: res.data };
|
|
182
|
+
return res.data;
|
|
183
|
+
}
|
|
184
|
+
catch (e) {
|
|
185
|
+
return { error: 'Error in vercelCreateDnsRecord', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
export const vercelCreateOrTransferDomain = tool({
|
|
190
|
+
description: 'Tool to add an existing domain to the Vercel platform. Use when you need to add a domain to Vercel for DNS management or transfer a domain. Supports two methods: \'add\' for adding existing domains and \'move-in\' for transferring domains (requires authorization token).',
|
|
191
|
+
inputSchema: z.object({
|
|
192
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
193
|
+
name: z.string().describe('The domain name to add or transfer (e.g., \'example.com\')'),
|
|
194
|
+
slug: z.string().optional().describe('Team slug to perform the request on behalf of'),
|
|
195
|
+
zone: z.boolean().optional().describe('Whether to create a DNS zone for the domain. Only applicable when method is \'add\'.'),
|
|
196
|
+
token: z.string().optional().describe('Authorization token required when method is \'move-in\' for domain transfer. Not used for \'add\' method.'),
|
|
197
|
+
method: z.string().optional().describe('The domain operation to perform. Use \'add\' to add an existing domain or \'move-in\' to transfer a domain. When using \'move-in\', the \'token\' field is required. If not specified, defaults to \'add'),
|
|
198
|
+
teamId: z.string().optional().describe('Team identifier to perform the request on behalf of'),
|
|
199
|
+
cdnEnabled: z.boolean().optional().describe('Whether to enable CDN for the domain. Only applicable when method is \'add\'.'),
|
|
200
|
+
}),
|
|
201
|
+
execute: async (params) => {
|
|
202
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
203
|
+
if (!vercelToken)
|
|
204
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
205
|
+
try {
|
|
206
|
+
const path = (() => { const p = rest; return `/v4/domains`; })();
|
|
207
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
208
|
+
if (!res.ok)
|
|
209
|
+
return { error: 'Create or Transfer Domain failed', details: res.data };
|
|
210
|
+
return res.data;
|
|
211
|
+
}
|
|
212
|
+
catch (e) {
|
|
213
|
+
return { error: 'Error in vercelCreateOrTransferDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
export const vercelDeleteDnsRecord = tool({
|
|
218
|
+
description: 'Tool to delete a DNS record from a domain. Use when you need to remove an existing DNS record by its record ID and domain name.',
|
|
219
|
+
inputSchema: z.object({
|
|
220
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
221
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
222
|
+
domain: z.string().describe('The domain name that contains the DNS record to delete (e.g., \'example.com\')'),
|
|
223
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
224
|
+
recordId: z.string().describe('The unique identifier of the DNS record to delete. You can obtain this ID by listing DNS records for the domain using the VERCEL_GET_DNS_RECORDS action.'),
|
|
225
|
+
}),
|
|
226
|
+
execute: async (params) => {
|
|
227
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
228
|
+
if (!vercelToken)
|
|
229
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
230
|
+
try {
|
|
231
|
+
const path = (() => { const p = rest; return `/v2/domains/${p.domain}/records/${p.recordId}`; })();
|
|
232
|
+
const res = await vercelFetch(path, { vercelToken, method: 'DELETE', teamId, slug, body: rest, query: undefined });
|
|
233
|
+
if (!res.ok)
|
|
234
|
+
return { error: 'Delete DNS Record failed', details: res.data };
|
|
235
|
+
return res.data;
|
|
236
|
+
}
|
|
237
|
+
catch (e) {
|
|
238
|
+
return { error: 'Error in vercelDeleteDnsRecord', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
});
|
|
242
|
+
export const vercelDeleteDomain = tool({
|
|
243
|
+
description: 'Tool to remove a domain by name from Vercel. Use when you need to delete a domain that is no longer needed.',
|
|
244
|
+
inputSchema: z.object({
|
|
245
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
246
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
247
|
+
domain: z.string().describe('The name of the domain to delete.'),
|
|
248
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
249
|
+
}),
|
|
250
|
+
execute: async (params) => {
|
|
251
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
252
|
+
if (!vercelToken)
|
|
253
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
254
|
+
try {
|
|
255
|
+
const path = (() => { const p = rest; return `/v5/domains/${p.domain}`; })();
|
|
256
|
+
const res = await vercelFetch(path, { vercelToken, method: 'DELETE', teamId, slug, body: rest, query: undefined });
|
|
257
|
+
if (!res.ok)
|
|
258
|
+
return { error: 'Delete Domain failed', details: res.data };
|
|
259
|
+
return res.data;
|
|
260
|
+
}
|
|
261
|
+
catch (e) {
|
|
262
|
+
return { error: 'Error in vercelDeleteDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
});
|
|
266
|
+
export const vercelGetDomain = tool({
|
|
267
|
+
description: 'Tool to retrieve complete information for a single domain. Use when you need to check domain details, ownership verification status, nameserver configuration, or domain service type.',
|
|
268
|
+
inputSchema: z.object({
|
|
269
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
270
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
271
|
+
domain: z.string().describe('The name of the domain (e.g., \'example.com\').'),
|
|
272
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
273
|
+
}),
|
|
274
|
+
execute: async (params) => {
|
|
275
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
276
|
+
if (!vercelToken)
|
|
277
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
278
|
+
try {
|
|
279
|
+
const path = (() => { const p = rest; return `/v5/domains/${p.domain}`; })();
|
|
280
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
281
|
+
if (!res.ok)
|
|
282
|
+
return { error: 'Get Domain Information failed', details: res.data };
|
|
283
|
+
return res.data;
|
|
284
|
+
}
|
|
285
|
+
catch (e) {
|
|
286
|
+
return { error: 'Error in vercelGetDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
});
|
|
290
|
+
export const vercelGetDomainConfig = tool({
|
|
291
|
+
description: 'Tool to get a domain\'s configuration details from Vercel. Use when you need to check how a domain is configured, what DNS records are recommended, or verify domain setup. Returns configuration status, accepted SSL challenges, and recommended DNS records (CNAME and IPv4).',
|
|
292
|
+
inputSchema: z.object({
|
|
293
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
294
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
295
|
+
domain: z.string().describe('The name of the domain to get configuration for'),
|
|
296
|
+
strict: z.string().optional().describe('When true, the response will only include the nameservers assigned directly to the specified domain. When false and there are no nameservers assigned directly to the specified domain, the response wil'),
|
|
297
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
298
|
+
projectIdOrName: z.string().optional().describe('The project id or name that will be associated with the domain. Use this when the domain is not yet associated with a project.'),
|
|
299
|
+
}),
|
|
300
|
+
execute: async (params) => {
|
|
301
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
302
|
+
if (!vercelToken)
|
|
303
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
304
|
+
try {
|
|
305
|
+
const path = (() => { const p = rest; return `/v6/domains/${p.domain}/config`; })();
|
|
306
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
307
|
+
if (!res.ok)
|
|
308
|
+
return { error: 'Get Domain Configuration failed', details: res.data };
|
|
309
|
+
return res.data;
|
|
310
|
+
}
|
|
311
|
+
catch (e) {
|
|
312
|
+
return { error: 'Error in vercelGetDomainConfig', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
});
|
|
316
|
+
export const vercelGetDomainTransferInfo = tool({
|
|
317
|
+
description: 'Tool to get information required to transfer a domain to Vercel. Use when you need to check transfer availability or current status before initiating a transfer.',
|
|
318
|
+
inputSchema: z.object({
|
|
319
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
320
|
+
slug: z.string().optional().describe('Optional Vercel Team slug to perform the request on behalf of.'),
|
|
321
|
+
domain: z.string().describe('The domain name to check transfer info for (e.g., \'example.com\')'),
|
|
322
|
+
teamId: z.string().optional().describe('Optional Vercel Team ID to perform the request on behalf of.'),
|
|
323
|
+
}),
|
|
324
|
+
execute: async (params) => {
|
|
325
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
326
|
+
if (!vercelToken)
|
|
327
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
328
|
+
try {
|
|
329
|
+
const path = (() => { const p = rest; return `/v5/domains/${p.domain}/transfer-info`; })();
|
|
330
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
331
|
+
if (!res.ok)
|
|
332
|
+
return { error: 'Get Domain Transfer Info failed', details: res.data };
|
|
333
|
+
return res.data;
|
|
334
|
+
}
|
|
335
|
+
catch (e) {
|
|
336
|
+
return { error: 'Error in vercelGetDomainTransferInfo', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
});
|
|
340
|
+
export const vercelGetProjectDomain = tool({
|
|
341
|
+
description: 'Tool to retrieve details about a specific domain attached to a Vercel project. Use when you need to check domain configuration, verification status, redirect settings, or git branch associations.',
|
|
342
|
+
inputSchema: z.object({
|
|
343
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
344
|
+
slug: z.string().optional().describe('Team slug to perform the request on behalf of'),
|
|
345
|
+
domain: z.string().describe('The project domain name to retrieve (e.g., \'www.example.com\')'),
|
|
346
|
+
teamId: z.string().optional().describe('Team identifier to perform the request on behalf of'),
|
|
347
|
+
idOrName: z.string().describe('The unique project identifier or project name'),
|
|
348
|
+
}),
|
|
349
|
+
execute: async (params) => {
|
|
350
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
351
|
+
if (!vercelToken)
|
|
352
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
353
|
+
try {
|
|
354
|
+
const path = (() => { const p = rest; return `/v9/projects/${p.idOrName}/domains/${p.domain}`; })();
|
|
355
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
356
|
+
if (!res.ok)
|
|
357
|
+
return { error: 'Get Project Domain failed', details: res.data };
|
|
358
|
+
return res.data;
|
|
359
|
+
}
|
|
360
|
+
catch (e) {
|
|
361
|
+
return { error: 'Error in vercelGetProjectDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
});
|
|
365
|
+
export const vercelGetProjectDomains = tool({
|
|
366
|
+
description: 'Tool to retrieve all domains attached to a Vercel project. Use when you need to verify domain configuration, check verification status, audit redirect/branch bindings, or before performing domain operations.',
|
|
367
|
+
inputSchema: z.object({
|
|
368
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
369
|
+
slug: z.string().optional().describe('Team URL slug to perform the request on behalf of.'),
|
|
370
|
+
limit: z.number().optional().describe('Maximum number of domains to return per request. Maximum value is 100.'),
|
|
371
|
+
order: z.string().optional().describe('Sort order by creation date. \'ASC\' for ascending, \'DESC\' for descending. Default is \'DESC\'.'),
|
|
372
|
+
since: z.number().optional().describe('Returns domains created after this JavaScript timestamp in milliseconds.'),
|
|
373
|
+
until: z.number().optional().describe('Returns domains created before this JavaScript timestamp in milliseconds.'),
|
|
374
|
+
target: z.string().optional().describe('Filters by domain target. Use \'production\' for production domains or \'preview\' for preview domains.'),
|
|
375
|
+
teamId: z.string().optional().describe('Team identifier to perform the request on behalf of. Omit for personal account.'),
|
|
376
|
+
idOrName: z.string().describe('The project\'s unique identifier or project name.'),
|
|
377
|
+
redirect: z.string().optional().describe('Filters domains by their redirect target domain name.'),
|
|
378
|
+
verified: z.boolean().optional().describe('Filters by verification status. Set to true for verified domains only, false for unverified.'),
|
|
379
|
+
gitBranch: z.string().optional().describe('Filters domains based on a specific git branch.'),
|
|
380
|
+
redirects: z.boolean().optional().describe('Controls redirect domain inclusion. Set to true to include redirect domains, false to exclude. Default is true.'),
|
|
381
|
+
production: z.boolean().optional().describe('Filters domains by production status. Set to true for production domains, false for non-production.'),
|
|
382
|
+
customEnvironmentId: z.string().optional().describe('The unique custom environment identifier within the project to filter domains.'),
|
|
383
|
+
}),
|
|
384
|
+
execute: async (params) => {
|
|
385
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
386
|
+
if (!vercelToken)
|
|
387
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
388
|
+
try {
|
|
389
|
+
const path = (() => { const p = rest; return `/v9/projects/${p.idOrName}/domains`; })();
|
|
390
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
391
|
+
if (!res.ok)
|
|
392
|
+
return { error: 'List Project Domains failed', details: res.data };
|
|
393
|
+
return res.data;
|
|
394
|
+
}
|
|
395
|
+
catch (e) {
|
|
396
|
+
return { error: 'Error in vercelGetProjectDomains', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
});
|
|
400
|
+
export const vercelGetTldInfo = tool({
|
|
401
|
+
description: 'Tool to get information about a specific top-level domain (TLD). Use when you need to check supported language codes for domain registration.',
|
|
402
|
+
inputSchema: z.object({
|
|
403
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
404
|
+
tld: z.string().describe('The top-level domain (TLD) to get information for. Examples include: \'com\', \'net\', \'org\', \'io\', \'dev\', \'app\', etc. Do not include the leading dot (use \'com\' not \'.com\').'),
|
|
405
|
+
teamId: z.string().optional().describe('Optional Vercel Team ID to perform the request on behalf of.'),
|
|
406
|
+
}),
|
|
407
|
+
execute: async (params) => {
|
|
408
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
409
|
+
if (!vercelToken)
|
|
410
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
411
|
+
try {
|
|
412
|
+
const path = (() => { const p = rest; return `/v5/domains/tld/${p.tld}`; })();
|
|
413
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
414
|
+
if (!res.ok)
|
|
415
|
+
return { error: 'Get TLD Info failed', details: res.data };
|
|
416
|
+
return res.data;
|
|
417
|
+
}
|
|
418
|
+
catch (e) {
|
|
419
|
+
return { error: 'Error in vercelGetTldInfo', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
});
|
|
423
|
+
export const vercelGetTldPrice = tool({
|
|
424
|
+
description: 'Tool to get pricing information for a specific top-level domain (TLD). Use when you need to check domain registration, renewal, or transfer costs.',
|
|
425
|
+
inputSchema: z.object({
|
|
426
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
427
|
+
tld: z.string().describe('The top-level domain (TLD) to get pricing for. Examples include: \'com\', \'net\', \'org\', \'io\', \'dev\', \'app\', etc. Do not include the leading dot (use \'com\' not \'.com\').'),
|
|
428
|
+
years: z.number().optional().describe('The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used.'),
|
|
429
|
+
teamId: z.string().optional().describe('Optional Vercel Team ID to perform the request on behalf of.'),
|
|
430
|
+
}),
|
|
431
|
+
execute: async (params) => {
|
|
432
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
433
|
+
if (!vercelToken)
|
|
434
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
435
|
+
try {
|
|
436
|
+
const path = (() => { const p = rest; return `/v5/domains/tld/${p.tld}/price`; })();
|
|
437
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
438
|
+
if (!res.ok)
|
|
439
|
+
return { error: 'Get TLD Price failed', details: res.data };
|
|
440
|
+
return res.data;
|
|
441
|
+
}
|
|
442
|
+
catch (e) {
|
|
443
|
+
return { error: 'Error in vercelGetTldPrice', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
});
|
|
447
|
+
export const vercelListDnsRecords = tool({
|
|
448
|
+
description: 'Tool to list existing DNS records for a domain. Use when you need to retrieve, audit, or verify DNS configuration for a domain managed in Vercel.',
|
|
449
|
+
inputSchema: z.object({
|
|
450
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
451
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
452
|
+
limit: z.string().optional().describe('Maximum number of records to list from a request. Default is 20, maximum is 100.'),
|
|
453
|
+
since: z.string().optional().describe('Get records created after this JavaScript timestamp in milliseconds.'),
|
|
454
|
+
until: z.string().optional().describe('Get records created before this JavaScript timestamp in milliseconds.'),
|
|
455
|
+
domain: z.string().describe('The domain name to retrieve DNS records for'),
|
|
456
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
457
|
+
}),
|
|
458
|
+
execute: async (params) => {
|
|
459
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
460
|
+
if (!vercelToken)
|
|
461
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
462
|
+
try {
|
|
463
|
+
const path = (() => { const p = rest; return `/v4/domains/${p.domain}/records`; })();
|
|
464
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
465
|
+
if (!res.ok)
|
|
466
|
+
return { error: 'List DNS Records failed', details: res.data };
|
|
467
|
+
return res.data;
|
|
468
|
+
}
|
|
469
|
+
catch (e) {
|
|
470
|
+
return { error: 'Error in vercelListDnsRecords', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
});
|
|
474
|
+
export const vercelListDomains = tool({
|
|
475
|
+
description: 'Tool to list all domains from Vercel. Use this to retrieve domain information including verification status, nameservers, and ownership details.',
|
|
476
|
+
inputSchema: z.object({
|
|
477
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
478
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
479
|
+
limit: z.number().optional().describe('Maximum number of domains to list from a request.'),
|
|
480
|
+
since: z.number().optional().describe('Get domains created after this JavaScript timestamp.'),
|
|
481
|
+
until: z.number().optional().describe('Get domains created before this JavaScript timestamp.'),
|
|
482
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
483
|
+
}),
|
|
484
|
+
execute: async (params) => {
|
|
485
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
486
|
+
if (!vercelToken)
|
|
487
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
488
|
+
try {
|
|
489
|
+
const path = (() => { const p = rest; return `/v5/domains`; })();
|
|
490
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
491
|
+
if (!res.ok)
|
|
492
|
+
return { error: 'Get Domains failed', details: res.data };
|
|
493
|
+
return res.data;
|
|
494
|
+
}
|
|
495
|
+
catch (e) {
|
|
496
|
+
return { error: 'Error in vercelListDomains', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
});
|
|
500
|
+
export const vercelListSupportedTlds = tool({
|
|
501
|
+
description: 'Tool to retrieve all TLDs (top-level domains) supported by Vercel for domain registration. Use when you need to verify if a specific TLD is supported or to display available domain extensions.',
|
|
502
|
+
inputSchema: z.object({
|
|
503
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
504
|
+
teamId: z.string().optional().describe('Optional team identifier to perform the request on behalf of.'),
|
|
505
|
+
}),
|
|
506
|
+
execute: async (params) => {
|
|
507
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
508
|
+
if (!vercelToken)
|
|
509
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
510
|
+
try {
|
|
511
|
+
const path = (() => { const p = rest; return `/v5/domains/tlds`; })();
|
|
512
|
+
const res = await vercelFetch(path, { vercelToken, method: 'GET', teamId, slug, body: undefined, query: rest });
|
|
513
|
+
if (!res.ok)
|
|
514
|
+
return { error: 'Get Supported TLDs failed', details: res.data };
|
|
515
|
+
return res.data;
|
|
516
|
+
}
|
|
517
|
+
catch (e) {
|
|
518
|
+
return { error: 'Error in vercelListSupportedTlds', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
});
|
|
522
|
+
export const vercelMoveProjectDomain = tool({
|
|
523
|
+
description: 'Tool to move a domain from one Vercel project to another. Use when you need to transfer domain ownership between projects.',
|
|
524
|
+
inputSchema: z.object({
|
|
525
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
526
|
+
slug: z.string().optional().describe('Team slug to perform the request on behalf of'),
|
|
527
|
+
domain: z.string().describe('The project domain name to move (e.g., \'www.example.com\')'),
|
|
528
|
+
teamId: z.string().optional().describe('Team identifier to perform the request on behalf of'),
|
|
529
|
+
idOrName: z.string().describe('The unique project identifier or project name of the source project'),
|
|
530
|
+
redirect: z.string().optional().describe('Target destination domain for redirection. When set, requests to this domain will redirect to the specified target domain.'),
|
|
531
|
+
gitBranch: z.string().optional().describe('Git branch to associate with this domain in the target project. When set, deployments from this branch will be accessible via this domain. Maximum 250 characters.'),
|
|
532
|
+
projectId: z.string().describe('The unique identifier of the target project to move the domain to'),
|
|
533
|
+
redirectStatusCode: z.number().optional().describe('HTTP status code for redirect. 301: Permanent redirect (cached by browsers), 302: Temporary redirect, 307: Temporary redirect (preserves method), 308: Permanent redirect (preserves method).'),
|
|
534
|
+
}),
|
|
535
|
+
execute: async (params) => {
|
|
536
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
537
|
+
if (!vercelToken)
|
|
538
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
539
|
+
try {
|
|
540
|
+
const path = (() => { const p = rest; return `/v9/projects/${p.idOrName}/domains/${p.domain}/move`; })();
|
|
541
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
542
|
+
if (!res.ok)
|
|
543
|
+
return { error: 'Move Project Domain failed', details: res.data };
|
|
544
|
+
return res.data;
|
|
545
|
+
}
|
|
546
|
+
catch (e) {
|
|
547
|
+
return { error: 'Error in vercelMoveProjectDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
});
|
|
551
|
+
export const vercelRemoveProjectDomain = tool({
|
|
552
|
+
description: 'Tool to remove a domain from a Vercel project. Use when you need to detach a domain from a project or clean up domain associations.',
|
|
553
|
+
inputSchema: z.object({
|
|
554
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
555
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
556
|
+
domain: z.string().describe('The project domain name to remove (e.g., \'www.example.com\')'),
|
|
557
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
558
|
+
idOrName: z.string().describe('The unique project identifier or the project name'),
|
|
559
|
+
removeRedirects: z.boolean().optional().describe('Whether to remove all domains from this project that redirect to the domain being removed.'),
|
|
560
|
+
}),
|
|
561
|
+
execute: async (params) => {
|
|
562
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
563
|
+
if (!vercelToken)
|
|
564
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
565
|
+
try {
|
|
566
|
+
const path = (() => { const p = rest; return `/v9/projects/${p.idOrName}/domains/${p.domain}`; })();
|
|
567
|
+
const res = await vercelFetch(path, { vercelToken, method: 'DELETE', teamId, slug, body: rest, query: undefined });
|
|
568
|
+
if (!res.ok)
|
|
569
|
+
return { error: 'Remove Domain from Project failed', details: res.data };
|
|
570
|
+
return res.data;
|
|
571
|
+
}
|
|
572
|
+
catch (e) {
|
|
573
|
+
return { error: 'Error in vercelRemoveProjectDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
});
|
|
577
|
+
export const vercelTransferInDomain = tool({
|
|
578
|
+
description: 'Tool to transfer a domain to Vercel from another registrar. Use when you need to migrate domain registration to Vercel. Before transferring, obtain the authorization code from the current registrar and verify the domain is unlocked and eligible for transfer.',
|
|
579
|
+
inputSchema: z.object({
|
|
580
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
581
|
+
years: z.number().describe('Number of years to renew the domain for after transfer. Must be valid for the TLD.'),
|
|
582
|
+
domain: z.string().describe('The domain name to transfer in (e.g., \'example.com\')'),
|
|
583
|
+
teamId: z.string().optional().describe('Team ID to perform the transfer on behalf of'),
|
|
584
|
+
authCode: z.string().describe('Authorization code for the domain transfer. Obtain this code from the current (losing) registrar.'),
|
|
585
|
+
autoRenew: z.boolean().describe('Whether the domain should automatically renew before expiration. Can be changed later via the Vercel Dashboard or API.'),
|
|
586
|
+
expectedPrice: z.number().describe('Expected transfer price in USD. Use this to prevent unexpected charges if the price changes between checking and transferring.'),
|
|
587
|
+
contactInformation: z.record(z.any()).describe('Contact information for domain registration. All fields except address2, company_name, and fax are required.'),
|
|
588
|
+
}),
|
|
589
|
+
execute: async (params) => {
|
|
590
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
591
|
+
if (!vercelToken)
|
|
592
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
593
|
+
try {
|
|
594
|
+
const path = (() => { const p = rest; return `/v5/domains/transfer-in`; })();
|
|
595
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
596
|
+
if (!res.ok)
|
|
597
|
+
return { error: 'Transfer In Domain failed', details: res.data };
|
|
598
|
+
return res.data;
|
|
599
|
+
}
|
|
600
|
+
catch (e) {
|
|
601
|
+
return { error: 'Error in vercelTransferInDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
});
|
|
605
|
+
export const vercelUpdateDnsRecord = tool({
|
|
606
|
+
description: 'Tool to update an existing DNS record. Use when you need to modify DNS record properties such as value, name, type, TTL, or comment. Ensure you have the record ID before calling this action.',
|
|
607
|
+
inputSchema: z.object({
|
|
608
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
609
|
+
srv: z.record(z.any()).optional().describe('Configuration for SRV record type.'),
|
|
610
|
+
ttl: z.number().optional().describe('The Time to live (TTL) value of the DNS record in seconds. Must be between 60 and 2147483647.'),
|
|
611
|
+
name: z.string().optional().describe('The name of the DNS record. Provide to update the record name.'),
|
|
612
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
613
|
+
type: z.string().optional().describe('The type of the DNS record. Provide to change the record type.'),
|
|
614
|
+
https: z.record(z.any()).optional().describe('Configuration for HTTPS record type.'),
|
|
615
|
+
value: z.string().optional().describe('The value of the DNS record. Provide to update the record value.'),
|
|
616
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
617
|
+
comment: z.string().optional().describe('A comment to add context on what this DNS record is for. Maximum 500 characters.'),
|
|
618
|
+
recordId: z.string().describe('The unique identifier of the DNS record to update'),
|
|
619
|
+
mxPriority: z.number().optional().describe('The MX priority value of the DNS record. Required when record type is MX.'),
|
|
620
|
+
}),
|
|
621
|
+
execute: async (params) => {
|
|
622
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
623
|
+
if (!vercelToken)
|
|
624
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
625
|
+
try {
|
|
626
|
+
const path = (() => { const p = rest; return `/v1/dns/${p.recordId}`; })();
|
|
627
|
+
const res = await vercelFetch(path, { vercelToken, method: 'PATCH', teamId, slug, body: rest, query: undefined });
|
|
628
|
+
if (!res.ok)
|
|
629
|
+
return { error: 'Update DNS Record failed', details: res.data };
|
|
630
|
+
return res.data;
|
|
631
|
+
}
|
|
632
|
+
catch (e) {
|
|
633
|
+
return { error: 'Error in vercelUpdateDnsRecord', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
});
|
|
637
|
+
export const vercelUpdateDomain = tool({
|
|
638
|
+
description: 'Tool to update or move an apex domain on Vercel. Use when you need to modify domain configuration (zone settings) or transfer a domain to another team. For \'update\' operation, you can modify the zone configuration. For \'move-out\' operation, provide a destination team ID.',
|
|
639
|
+
inputSchema: z.object({
|
|
640
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
641
|
+
op: z.string().describe('The operation to perform. Use \'update\' to modify domain configuration (zone, renew, customNameservers), or \'move-out\' to transfer the domain to another team/account.'),
|
|
642
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
643
|
+
zone: z.boolean().optional().describe('Whether to enable Vercel DNS zone configuration for the domain (uses Vercel\'s nameservers). Only applicable when op=\'update\'. For \'update\' operation, at least one of zone, renew, or customNameser'),
|
|
644
|
+
renew: z.boolean().optional().describe('Whether to renew the domain. Only applicable when op=\'update\'. Note: This field is deprecated.'),
|
|
645
|
+
domain: z.string().describe('The domain name to update or move (e.g., \'example.com\')'),
|
|
646
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
647
|
+
destination: z.string().optional().describe('The destination team ID to transfer the domain to. Required when op=\'move-out\'.'),
|
|
648
|
+
customNameservers: z.array(z.string()).optional().describe('List of custom nameservers for the domain. Only applicable when op=\'update\'. Note: This field is deprecated.'),
|
|
649
|
+
}),
|
|
650
|
+
execute: async (params) => {
|
|
651
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
652
|
+
if (!vercelToken)
|
|
653
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
654
|
+
try {
|
|
655
|
+
const path = (() => { const p = rest; return `/v5/domains/${p.domain}`; })();
|
|
656
|
+
const res = await vercelFetch(path, { vercelToken, method: 'PATCH', teamId, slug, body: rest, query: undefined });
|
|
657
|
+
if (!res.ok)
|
|
658
|
+
return { error: 'Patch Domain failed', details: res.data };
|
|
659
|
+
return res.data;
|
|
660
|
+
}
|
|
661
|
+
catch (e) {
|
|
662
|
+
return { error: 'Error in vercelUpdateDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
});
|
|
666
|
+
export const vercelUpdateProjectDomain = tool({
|
|
667
|
+
description: 'Tool to update a project domain in Vercel. Use when you need to modify domain settings such as git branch association, redirects, or redirect status codes for an existing project domain.',
|
|
668
|
+
inputSchema: z.object({
|
|
669
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
670
|
+
slug: z.string().optional().describe('Team slug to perform the request on behalf of'),
|
|
671
|
+
domain: z.string().describe('The project domain name to update (e.g., \'www.example.com\', \'api.mytest-domain.io\')'),
|
|
672
|
+
teamId: z.string().optional().describe('Team identifier to perform the request on behalf of'),
|
|
673
|
+
idOrName: z.string().describe('The unique project identifier or project name'),
|
|
674
|
+
redirect: z.string().optional().describe('Target destination domain for redirect. When set, requests to this domain will redirect to the specified target domain. Set to null to remove redirect.'),
|
|
675
|
+
gitBranch: z.string().optional().describe('Git branch to link the project domain. When set, deployments from this branch will be accessible via this domain. Set to null to unlink the branch. Maximum 250 characters.'),
|
|
676
|
+
redirectStatusCode: z.number().optional().describe('HTTP status code for redirect. Required when \'redirect\' is set. 301: Permanent redirect (cached by browsers), 302: Temporary redirect, 307: Temporary redirect (preserves method), 308: Permanent redi'),
|
|
677
|
+
}),
|
|
678
|
+
execute: async (params) => {
|
|
679
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
680
|
+
if (!vercelToken)
|
|
681
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
682
|
+
try {
|
|
683
|
+
const path = (() => { const p = rest; return `/v9/projects/${p.idOrName}/domains/${p.domain}`; })();
|
|
684
|
+
const res = await vercelFetch(path, { vercelToken, method: 'PATCH', teamId, slug, body: rest, query: undefined });
|
|
685
|
+
if (!res.ok)
|
|
686
|
+
return { error: 'Update Project Domain failed', details: res.data };
|
|
687
|
+
return res.data;
|
|
688
|
+
}
|
|
689
|
+
catch (e) {
|
|
690
|
+
return { error: 'Error in vercelUpdateProjectDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
});
|
|
694
|
+
export const vercelVerifyProjectDomain = tool({
|
|
695
|
+
description: 'Attempts to verify a project domain by checking if DNS challenges are correctly configured. Call this after adding a domain to a project and setting up the required DNS TXT records. Returns verified=true if DNS is correctly configured, or an error with the required DNS records if verification fails.',
|
|
696
|
+
inputSchema: z.object({
|
|
697
|
+
vercelToken: z.string().describe('Vercel access token (Bearer).'),
|
|
698
|
+
slug: z.string().optional().describe('The Team slug to perform the request on behalf of.'),
|
|
699
|
+
domain: z.string().describe('The domain name to verify. This domain must have been previously added to the project and have the required DNS TXT records configured. Use VERCEL_GET_PROJECT_DOMAINS to see pending verifications.'),
|
|
700
|
+
teamId: z.string().optional().describe('The Team identifier to perform the request on behalf of.'),
|
|
701
|
+
idOrName: z.string().describe('The unique project identifier (e.g., \'prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB\') or the project name (e.g., \'my-project\'). The domain must already be added to this project before verification.'),
|
|
702
|
+
}),
|
|
703
|
+
execute: async (params) => {
|
|
704
|
+
const { vercelToken, teamId, slug, ...rest } = params;
|
|
705
|
+
if (!vercelToken)
|
|
706
|
+
return { error: 'Vercel token is required. Connect Vercel first.' };
|
|
707
|
+
try {
|
|
708
|
+
const path = (() => { const p = rest; return `/v9/projects/${p.idOrName}/domains/${p.domain}/verify`; })();
|
|
709
|
+
const res = await vercelFetch(path, { vercelToken, method: 'POST', teamId, slug, body: rest, query: undefined });
|
|
710
|
+
if (!res.ok)
|
|
711
|
+
return { error: 'Verify Project Domain failed', details: res.data };
|
|
712
|
+
return res.data;
|
|
713
|
+
}
|
|
714
|
+
catch (e) {
|
|
715
|
+
return { error: 'Error in vercelVerifyProjectDomain', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
});
|
|
719
|
+
//# sourceMappingURL=domains.js.map
|