@rnsk/toolkits 0.0.10 → 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 +23 -3
- package/dist/index.d.ts +21 -1
- package/dist/index.js +41 -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 +9 -9
- package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +1 -1
- package/dist/toolkits/bitbucket/tools/reports.d.ts +5 -5
- 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-list.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/create-zone.d.ts +2 -2
- package/dist/toolkits/cloudflare/tools/index.d.ts +13 -13
- 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-pools.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-tunnels.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-zones.d.ts +2 -2
- 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/icon.d.ts +5 -0
- package/dist/toolkits/convex/icon.js +10 -0
- package/dist/toolkits/convex/manifest.d.ts +3 -0
- package/dist/toolkits/convex/manifest.js +33 -0
- package/dist/toolkits/convex/tools/client.d.ts +28 -0
- package/dist/toolkits/convex/tools/client.js +85 -0
- package/dist/toolkits/convex/tools/deploy-keys.d.ts +10 -0
- package/dist/toolkits/convex/tools/deploy-keys.js +46 -0
- package/dist/toolkits/convex/tools/deployments.d.ts +35 -0
- package/dist/toolkits/convex/tools/deployments.js +126 -0
- package/dist/toolkits/convex/tools/domains.d.ts +7 -0
- package/dist/toolkits/convex/tools/domains.js +29 -0
- package/dist/toolkits/convex/tools/functions.d.ts +14 -0
- package/dist/toolkits/convex/tools/functions.js +49 -0
- package/dist/toolkits/convex/tools/index.d.ts +176 -0
- package/dist/toolkits/convex/tools/index.js +145 -0
- package/dist/toolkits/convex/tools/logging.d.ts +5 -0
- package/dist/toolkits/convex/tools/logging.js +25 -0
- package/dist/toolkits/convex/tools/projects.d.ts +31 -0
- package/dist/toolkits/convex/tools/projects.js +111 -0
- package/dist/toolkits/convex/tools/teams.d.ts +12 -0
- package/dist/toolkits/convex/tools/teams.js +62 -0
- package/dist/toolkits/datadog/icon.d.ts +5 -0
- package/dist/toolkits/datadog/icon.js +6 -0
- package/dist/toolkits/datadog/manifest.d.ts +3 -0
- package/dist/toolkits/datadog/manifest.js +44 -0
- package/dist/toolkits/datadog/tools/api-keys.d.ts +21 -0
- package/dist/toolkits/datadog/tools/api-keys.js +42 -0
- package/dist/toolkits/datadog/tools/apm.d.ts +51 -0
- package/dist/toolkits/datadog/tools/apm.js +106 -0
- package/dist/toolkits/datadog/tools/client.d.ts +19 -0
- package/dist/toolkits/datadog/tools/client.js +81 -0
- package/dist/toolkits/datadog/tools/dashboards.d.ts +93 -0
- package/dist/toolkits/datadog/tools/dashboards.js +127 -0
- package/dist/toolkits/datadog/tools/events.d.ts +35 -0
- package/dist/toolkits/datadog/tools/events.js +56 -0
- package/dist/toolkits/datadog/tools/hosts.d.ts +49 -0
- package/dist/toolkits/datadog/tools/hosts.js +87 -0
- package/dist/toolkits/datadog/tools/incidents.d.ts +18 -0
- package/dist/toolkits/datadog/tools/incidents.js +34 -0
- package/dist/toolkits/datadog/tools/index.d.ts +999 -0
- package/dist/toolkits/datadog/tools/index.js +450 -0
- package/dist/toolkits/datadog/tools/integrations.d.ts +32 -0
- package/dist/toolkits/datadog/tools/integrations.js +47 -0
- package/dist/toolkits/datadog/tools/logs.d.ts +39 -0
- package/dist/toolkits/datadog/tools/logs.js +121 -0
- package/dist/toolkits/datadog/tools/metrics.d.ts +27 -0
- package/dist/toolkits/datadog/tools/metrics.js +83 -0
- package/dist/toolkits/datadog/tools/monitors.d.ts +95 -0
- package/dist/toolkits/datadog/tools/monitors.js +190 -0
- package/dist/toolkits/datadog/tools/oncall-notifications.d.ts +61 -0
- package/dist/toolkits/datadog/tools/oncall-notifications.js +155 -0
- package/dist/toolkits/datadog/tools/oncall-policies.d.ts +28 -0
- package/dist/toolkits/datadog/tools/oncall-policies.js +72 -0
- package/dist/toolkits/datadog/tools/oncall-schedules.d.ts +31 -0
- package/dist/toolkits/datadog/tools/oncall-schedules.js +87 -0
- package/dist/toolkits/datadog/tools/oncall-teams.d.ts +14 -0
- package/dist/toolkits/datadog/tools/oncall-teams.js +54 -0
- package/dist/toolkits/datadog/tools/slos.d.ts +43 -0
- package/dist/toolkits/datadog/tools/slos.js +62 -0
- package/dist/toolkits/datadog/tools/synthetics.d.ts +58 -0
- package/dist/toolkits/datadog/tools/synthetics.js +90 -0
- package/dist/toolkits/datadog/tools/usage.d.ts +7 -0
- package/dist/toolkits/datadog/tools/usage.js +25 -0
- package/dist/toolkits/datadog/tools/users.d.ts +35 -0
- package/dist/toolkits/datadog/tools/users.js +66 -0
- package/dist/toolkits/dev-to/icon.d.ts +5 -0
- package/dist/toolkits/dev-to/icon.js +10 -0
- package/dist/toolkits/dev-to/manifest.d.ts +3 -0
- package/dist/toolkits/dev-to/manifest.js +34 -0
- package/dist/toolkits/dev-to/tools/articles.d.ts +78 -0
- package/dist/toolkits/dev-to/tools/articles.js +262 -0
- package/dist/toolkits/dev-to/tools/client.d.ts +25 -0
- package/dist/toolkits/dev-to/tools/client.js +65 -0
- package/dist/toolkits/dev-to/tools/community.d.ts +61 -0
- package/dist/toolkits/dev-to/tools/community.js +244 -0
- package/dist/toolkits/dev-to/tools/index.d.ts +202 -0
- package/dist/toolkits/dev-to/tools/index.js +37 -0
- package/dist/toolkits/dev-to/tools/listings.d.ts +26 -0
- package/dist/toolkits/dev-to/tools/listings.js +92 -0
- package/dist/toolkits/discord/tools/applications.d.ts +6 -6
- package/dist/toolkits/discord/tools/index.d.ts +6 -6
- package/dist/toolkits/figma/tools/create-dev-resources.d.ts +1 -1
- package/dist/toolkits/figma/tools/create-modify-delete-variables.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-file-nodes.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 +10 -10
- package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
- 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-analytics/tools/reports.d.ts +9 -9
- 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 +14 -14
- 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/misc.d.ts +1 -1
- package/dist/toolkits/google-classroom/tools/posts-addons.d.ts +1 -1
- package/dist/toolkits/google-classroom/tools/roster.d.ts +5 -5
- 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-search-console/tools/index.d.ts +2 -2
- package/dist/toolkits/google-search-console/tools/search-analytics-query.d.ts +2 -2
- 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 +4 -4
- package/dist/toolkits/hostinger/tools/whois.d.ts +2 -2
- package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/datasets.d.ts +2 -2
- package/dist/toolkits/hugging-face/tools/index.d.ts +3 -3
- package/dist/toolkits/hugging-face/tools/models.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/papers.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/repos.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/spaces.d.ts +1 -1
- package/dist/toolkits/jira/tools/boards.d.ts +1 -1
- package/dist/toolkits/jira/tools/index.d.ts +8 -8
- package/dist/toolkits/jira/tools/meta.d.ts +3 -3
- package/dist/toolkits/jira/tools/projects.d.ts +1 -1
- package/dist/toolkits/jira/tools/users.d.ts +4 -4
- package/dist/toolkits/kaggle/icon.d.ts +5 -0
- package/dist/toolkits/kaggle/icon.js +6 -0
- package/dist/toolkits/kaggle/manifest.d.ts +3 -0
- package/dist/toolkits/kaggle/manifest.js +32 -0
- package/dist/toolkits/kaggle/tools/client.d.ts +10 -0
- package/dist/toolkits/kaggle/tools/client.js +94 -0
- package/dist/toolkits/kaggle/tools/competitions.d.ts +48 -0
- package/dist/toolkits/kaggle/tools/competitions.js +109 -0
- package/dist/toolkits/kaggle/tools/config.d.ts +110 -0
- package/dist/toolkits/kaggle/tools/config.js +256 -0
- package/dist/toolkits/kaggle/tools/datasets.d.ts +88 -0
- package/dist/toolkits/kaggle/tools/datasets.js +161 -0
- package/dist/toolkits/kaggle/tools/index.d.ts +482 -0
- package/dist/toolkits/kaggle/tools/index.js +53 -0
- package/dist/toolkits/kaggle/tools/kernels.d.ts +62 -0
- package/dist/toolkits/kaggle/tools/kernels.js +121 -0
- package/dist/toolkits/kaggle/tools/model_instance_files.d.ts +11 -0
- package/dist/toolkits/kaggle/tools/model_instance_files.js +23 -0
- package/dist/toolkits/kaggle/tools/model_instances.d.ts +8 -0
- package/dist/toolkits/kaggle/tools/model_instances.js +20 -0
- package/dist/toolkits/kaggle/tools/models.d.ts +14 -0
- package/dist/toolkits/kaggle/tools/models.js +33 -0
- package/dist/toolkits/nasa/icon.d.ts +5 -0
- package/dist/toolkits/nasa/icon.js +56 -0
- package/dist/toolkits/nasa/manifest.d.ts +3 -0
- package/dist/toolkits/nasa/manifest.js +49 -0
- package/dist/toolkits/nasa/tools/agage.d.ts +60 -0
- package/dist/toolkits/nasa/tools/agage.js +176 -0
- package/dist/toolkits/nasa/tools/client.d.ts +95 -0
- package/dist/toolkits/nasa/tools/client.js +337 -0
- package/dist/toolkits/nasa/tools/cmr.d.ts +268 -0
- package/dist/toolkits/nasa/tools/cmr.js +984 -0
- package/dist/toolkits/nasa/tools/donki.d.ts +63 -0
- package/dist/toolkits/nasa/tools/donki.js +301 -0
- package/dist/toolkits/nasa/tools/eonet.d.ts +74 -0
- package/dist/toolkits/nasa/tools/eonet.js +279 -0
- package/dist/toolkits/nasa/tools/icesat2.d.ts +25 -0
- package/dist/toolkits/nasa/tools/icesat2.js +97 -0
- package/dist/toolkits/nasa/tools/imagery.d.ts +36 -0
- package/dist/toolkits/nasa/tools/imagery.js +138 -0
- package/dist/toolkits/nasa/tools/index.d.ts +1063 -0
- package/dist/toolkits/nasa/tools/index.js +865 -0
- package/dist/toolkits/nasa/tools/neo.d.ts +15 -0
- package/dist/toolkits/nasa/tools/neo.js +75 -0
- package/dist/toolkits/nasa/tools/ntrs.d.ts +152 -0
- package/dist/toolkits/nasa/tools/ntrs.js +292 -0
- package/dist/toolkits/nasa/tools/osdr.d.ts +72 -0
- package/dist/toolkits/nasa/tools/osdr.js +290 -0
- package/dist/toolkits/nasa/tools/planetary.d.ts +58 -0
- package/dist/toolkits/nasa/tools/planetary.js +312 -0
- package/dist/toolkits/nasa/tools/power.d.ts +52 -0
- package/dist/toolkits/nasa/tools/power.js +213 -0
- package/dist/toolkits/nasa/tools/ssc.d.ts +44 -0
- package/dist/toolkits/nasa/tools/ssc.js +92 -0
- package/dist/toolkits/nasa/tools/tolnet.d.ts +84 -0
- package/dist/toolkits/nasa/tools/tolnet.js +254 -0
- package/dist/toolkits/neo4j/tools/analytics.d.ts +1 -1
- package/dist/toolkits/neo4j/tools/index.d.ts +3 -3
- package/dist/toolkits/neo4j/tools/instances.d.ts +2 -2
- package/dist/toolkits/neon/tools/auth.d.ts +5 -5
- package/dist/toolkits/neon/tools/dataapi.d.ts +1 -1
- package/dist/toolkits/neon/tools/index.d.ts +8 -8
- package/dist/toolkits/neon/tools/projects.d.ts +2 -2
- package/dist/toolkits/new-relic/icon.d.ts +5 -0
- package/dist/toolkits/new-relic/icon.js +6 -0
- package/dist/toolkits/new-relic/manifest.d.ts +3 -0
- package/dist/toolkits/new-relic/manifest.js +41 -0
- package/dist/toolkits/new-relic/tools/admin.d.ts +310 -0
- package/dist/toolkits/new-relic/tools/admin.js +282 -0
- package/dist/toolkits/new-relic/tools/alert-policies.d.ts +74 -0
- package/dist/toolkits/new-relic/tools/alert-policies.js +136 -0
- package/dist/toolkits/new-relic/tools/apm.d.ts +129 -0
- package/dist/toolkits/new-relic/tools/apm.js +228 -0
- package/dist/toolkits/new-relic/tools/client.d.ts +62 -0
- package/dist/toolkits/new-relic/tools/client.js +167 -0
- package/dist/toolkits/new-relic/tools/conditions.d.ts +190 -0
- package/dist/toolkits/new-relic/tools/conditions.js +265 -0
- package/dist/toolkits/new-relic/tools/config.d.ts +73 -0
- package/dist/toolkits/new-relic/tools/config.js +131 -0
- package/dist/toolkits/new-relic/tools/dashboards.d.ts +204 -0
- package/dist/toolkits/new-relic/tools/dashboards.js +159 -0
- package/dist/toolkits/new-relic/tools/entities.d.ts +160 -0
- package/dist/toolkits/new-relic/tools/entities.js +218 -0
- package/dist/toolkits/new-relic/tools/index.d.ts +23 -0
- package/dist/toolkits/new-relic/tools/index.js +179 -0
- package/dist/toolkits/new-relic/tools/ingest.d.ts +31 -0
- package/dist/toolkits/new-relic/tools/ingest.js +80 -0
- package/dist/toolkits/new-relic/tools/notifications.d.ts +186 -0
- package/dist/toolkits/new-relic/tools/notifications.js +232 -0
- package/dist/toolkits/new-relic/tools/nrql-conditions.d.ts +105 -0
- package/dist/toolkits/new-relic/tools/nrql-conditions.js +136 -0
- package/dist/toolkits/new-relic/tools/nrql.d.ts +38 -0
- package/dist/toolkits/new-relic/tools/nrql.js +99 -0
- package/dist/toolkits/new-relic/tools/synthetics.d.ts +176 -0
- package/dist/toolkits/new-relic/tools/synthetics.js +246 -0
- package/dist/toolkits/notebook-lm/icon.d.ts +5 -0
- package/dist/toolkits/notebook-lm/icon.js +6 -0
- package/dist/toolkits/notebook-lm/manifest.d.ts +3 -0
- package/dist/toolkits/notebook-lm/manifest.js +44 -0
- package/dist/toolkits/notebook-lm/tools/add-text-sources.d.ts +36 -0
- package/dist/toolkits/notebook-lm/tools/add-text-sources.js +51 -0
- package/dist/toolkits/notebook-lm/tools/create-audio-overview.d.ts +47 -0
- package/dist/toolkits/notebook-lm/tools/create-audio-overview.js +55 -0
- package/dist/toolkits/notebook-lm/tools/create-notebook.d.ts +52 -0
- package/dist/toolkits/notebook-lm/tools/create-notebook.js +49 -0
- package/dist/toolkits/notebook-lm/tools/delete-audio-overview.d.ts +33 -0
- package/dist/toolkits/notebook-lm/tools/delete-audio-overview.js +46 -0
- package/dist/toolkits/notebook-lm/tools/delete-notebooks.d.ts +32 -0
- package/dist/toolkits/notebook-lm/tools/delete-notebooks.js +46 -0
- package/dist/toolkits/notebook-lm/tools/delete-sources.d.ts +33 -0
- package/dist/toolkits/notebook-lm/tools/delete-sources.js +47 -0
- package/dist/toolkits/notebook-lm/tools/get-notebook.d.ts +52 -0
- package/dist/toolkits/notebook-lm/tools/get-notebook.js +45 -0
- package/dist/toolkits/notebook-lm/tools/get-source.d.ts +53 -0
- package/dist/toolkits/notebook-lm/tools/get-source.js +47 -0
- package/dist/toolkits/notebook-lm/tools/index.d.ts +516 -0
- package/dist/toolkits/notebook-lm/tools/index.js +93 -0
- package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.d.ts +32 -0
- package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.js +41 -0
- package/dist/toolkits/notebook-lm/tools/share-notebook.d.ts +48 -0
- package/dist/toolkits/notebook-lm/tools/share-notebook.js +57 -0
- package/dist/toolkits/notebook-lm/tools/upload-source-file.d.ts +40 -0
- package/dist/toolkits/notebook-lm/tools/upload-source-file.js +62 -0
- package/dist/toolkits/notebook-lm/tools/utils.d.ts +15 -0
- package/dist/toolkits/notebook-lm/tools/utils.js +46 -0
- package/dist/toolkits/npm/icon.d.ts +5 -0
- package/dist/toolkits/npm/icon.js +11 -0
- package/dist/toolkits/npm/manifest.d.ts +3 -0
- package/dist/toolkits/npm/manifest.js +35 -0
- package/dist/toolkits/npm/tools/client.d.ts +19 -0
- package/dist/toolkits/npm/tools/client.js +64 -0
- package/dist/toolkits/npm/tools/downloads.d.ts +19 -0
- package/dist/toolkits/npm/tools/downloads.js +39 -0
- package/dist/toolkits/npm/tools/index.d.ts +14 -0
- package/dist/toolkits/npm/tools/index.js +24 -0
- package/dist/toolkits/npm/tools/registry.d.ts +24 -0
- package/dist/toolkits/npm/tools/registry.js +58 -0
- package/dist/toolkits/npm/tools/security.d.ts +9 -0
- package/dist/toolkits/npm/tools/security.js +29 -0
- 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/admin-users.d.ts +1 -1
- 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/slack-lists.d.ts +3 -3
- package/dist/toolkits/slack/tools/users.d.ts +1 -1
- package/dist/toolkits/snowflake/icon.d.ts +5 -0
- package/dist/toolkits/snowflake/icon.js +6 -0
- package/dist/toolkits/snowflake/manifest.d.ts +3 -0
- package/dist/toolkits/snowflake/manifest.js +32 -0
- package/dist/toolkits/snowflake/tools/catalog.d.ts +56 -0
- package/dist/toolkits/snowflake/tools/catalog.js +123 -0
- package/dist/toolkits/snowflake/tools/client.d.ts +53 -0
- package/dist/toolkits/snowflake/tools/client.js +145 -0
- package/dist/toolkits/snowflake/tools/index.d.ts +14 -0
- package/dist/toolkits/snowflake/tools/index.js +28 -0
- package/dist/toolkits/snowflake/tools/statements.d.ts +27 -0
- package/dist/toolkits/snowflake/tools/statements.js +84 -0
- package/dist/toolkits/snowflake/tools/status.d.ts +22 -0
- package/dist/toolkits/snowflake/tools/status.js +54 -0
- package/dist/toolkits/telegram/icon.d.ts +5 -0
- package/dist/toolkits/telegram/icon.js +6 -0
- package/dist/toolkits/telegram/manifest.d.ts +3 -0
- package/dist/toolkits/telegram/manifest.js +34 -0
- package/dist/toolkits/telegram/tools/bot.d.ts +13 -0
- package/dist/toolkits/telegram/tools/bot.js +23 -0
- package/dist/toolkits/telegram/tools/chats.d.ts +22 -0
- package/dist/toolkits/telegram/tools/chats.js +46 -0
- package/dist/toolkits/telegram/tools/client.d.ts +12 -0
- package/dist/toolkits/telegram/tools/client.js +46 -0
- package/dist/toolkits/telegram/tools/index.d.ts +15 -0
- package/dist/toolkits/telegram/tools/index.js +31 -0
- package/dist/toolkits/telegram/tools/messages.d.ts +86 -0
- package/dist/toolkits/telegram/tools/messages.js +134 -0
- package/dist/toolkits/telegram/tools/updates.d.ts +23 -0
- package/dist/toolkits/telegram/tools/updates.js +54 -0
- 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/youtube/tools/get-channel-activities.d.ts +1 -1
- package/dist/toolkits/youtube/tools/index.d.ts +5 -5
- package/dist/toolkits/youtube/tools/list-channel-sections.d.ts +1 -1
- package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
- package/dist/toolkits/youtube/tools/subscribe-channel.d.ts +1 -1
- package/dist/toolkits/youtube/tools/unsubscribe-channel.d.ts +1 -1
- 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 +2 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const getDailyIndices: import("ai").Tool<{
|
|
2
|
+
locationKey: string | number;
|
|
3
|
+
details?: boolean | undefined;
|
|
4
|
+
language?: string | undefined;
|
|
5
|
+
groupId?: number | undefined;
|
|
6
|
+
accuWeatherApiKey?: string | undefined;
|
|
7
|
+
days?: 1 | 5 | 10 | 15 | undefined;
|
|
8
|
+
selection?: "all" | "index" | "group" | undefined;
|
|
9
|
+
indexId?: number | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
export declare const getIndex: import("ai").Tool<{
|
|
12
|
+
indexId: number;
|
|
13
|
+
language?: string | undefined;
|
|
14
|
+
accuWeatherApiKey?: string | undefined;
|
|
15
|
+
}, any>;
|
|
16
|
+
export declare const getIndexGroup: import("ai").Tool<{
|
|
17
|
+
groupId: number;
|
|
18
|
+
language?: string | undefined;
|
|
19
|
+
accuWeatherApiKey?: string | undefined;
|
|
20
|
+
}, any>;
|
|
21
|
+
export declare const listIndexGroups: import("ai").Tool<{
|
|
22
|
+
language?: string | undefined;
|
|
23
|
+
accuWeatherApiKey?: string | undefined;
|
|
24
|
+
}, any>;
|
|
25
|
+
export declare const listIndices: import("ai").Tool<{
|
|
26
|
+
language?: string | undefined;
|
|
27
|
+
accuWeatherApiKey?: string | undefined;
|
|
28
|
+
}, any>;
|
|
29
|
+
//# sourceMappingURL=indices.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { accuWeatherApiKeyField, awGet } from './client.js';
|
|
5
|
+
export const getDailyIndices = tool({
|
|
6
|
+
description: 'Return 1, 5, 10, or 15-day lifestyle-index forecasts for all indices, one group, or one index at an AccuWeather location.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
9
|
+
locationKey: z.union([z.number(), z.string()]).describe('AccuWeather location key, e.g. 349727.'),
|
|
10
|
+
days: z.union([z.literal(1), z.literal(5), z.literal(10), z.literal(15)]).optional().describe('Forecast horizon in days (default 5).'),
|
|
11
|
+
selection: z.enum(['all', 'group', 'index']).optional().describe('Return all indices, one index group, or one specific index (default all).'),
|
|
12
|
+
groupId: z.number().int().optional().describe('Index group ID. Required when selection is "group".'),
|
|
13
|
+
indexId: z.number().int().optional().describe('Nonzero index ID, including provider-defined negative IDs. Required when selection is "index".'),
|
|
14
|
+
details: z.boolean().optional().describe('Whether to include extended index forecast details (default false).'),
|
|
15
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ accuWeatherApiKey, locationKey, days = 5, selection = 'all', groupId, indexId, details, language }) => {
|
|
18
|
+
let path = `/indices/v1/daily/${days}day/${encodeURIComponent(String(locationKey))}`;
|
|
19
|
+
if (selection === 'group') {
|
|
20
|
+
if (groupId === undefined)
|
|
21
|
+
return { error: 'groupId is required when selection is "group".' };
|
|
22
|
+
path += `/groups/${groupId}`;
|
|
23
|
+
}
|
|
24
|
+
else if (selection === 'index') {
|
|
25
|
+
if (indexId === undefined)
|
|
26
|
+
return { error: 'indexId is required when selection is "index".' };
|
|
27
|
+
path += `/${indexId}`;
|
|
28
|
+
}
|
|
29
|
+
return awGet(path, { apiKey: accuWeatherApiKey, query: { details, language } });
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
export const getIndex = tool({
|
|
33
|
+
description: 'Return metadata for one AccuWeather lifestyle index.',
|
|
34
|
+
inputSchema: z.object({
|
|
35
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
36
|
+
indexId: z.number().int().describe('Lifestyle-index ID, e.g. 29 (not -1).'),
|
|
37
|
+
language: z.string().optional().describe('Language code for localized index metadata (default en-us).'),
|
|
38
|
+
}),
|
|
39
|
+
execute: async ({ accuWeatherApiKey, indexId, language }) => awGet(`/indices/v1/daily/${indexId}`, { apiKey: accuWeatherApiKey, query: { language } }),
|
|
40
|
+
});
|
|
41
|
+
export const getIndexGroup = tool({
|
|
42
|
+
description: 'Return the lifestyle indices belonging to one AccuWeather index group.',
|
|
43
|
+
inputSchema: z.object({
|
|
44
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
45
|
+
groupId: z.number().int().describe('Lifestyle-index group ID, e.g. 1.'),
|
|
46
|
+
language: z.string().optional().describe('Language code for localized index metadata (default en-us).'),
|
|
47
|
+
}),
|
|
48
|
+
execute: async ({ accuWeatherApiKey, groupId, language }) => awGet(`/indices/v1/daily/groups/${groupId}`, { apiKey: accuWeatherApiKey, query: { language } }),
|
|
49
|
+
});
|
|
50
|
+
export const listIndexGroups = tool({
|
|
51
|
+
description: 'Return lifestyle-index groups and their identifiers.',
|
|
52
|
+
inputSchema: z.object({
|
|
53
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
54
|
+
language: z.string().optional().describe('Language code for localized index-group fields (default en-us).'),
|
|
55
|
+
}),
|
|
56
|
+
execute: async ({ accuWeatherApiKey, language }) => awGet('/indices/v1/daily/groups', { apiKey: accuWeatherApiKey, query: { language } }),
|
|
57
|
+
});
|
|
58
|
+
export const listIndices = tool({
|
|
59
|
+
description: 'Return all supported lifestyle indices and their identifiers.',
|
|
60
|
+
inputSchema: z.object({
|
|
61
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
62
|
+
language: z.string().optional().describe('Language code for localized index metadata (default en-us).'),
|
|
63
|
+
}),
|
|
64
|
+
execute: async ({ accuWeatherApiKey, language }) => awGet('/indices/v1/daily', { apiKey: accuWeatherApiKey, query: { language } }),
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=indices.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const getLightningForecast: import("ai").Tool<{
|
|
2
|
+
coordinates: string;
|
|
3
|
+
accuWeatherApiKey?: string | undefined;
|
|
4
|
+
}, any>;
|
|
5
|
+
export declare const listRecentLightningStrikes: import("ai").Tool<{
|
|
6
|
+
coordinates: string;
|
|
7
|
+
accuWeatherApiKey?: string | undefined;
|
|
8
|
+
minutes?: 5 | 15 | 30 | 60 | 120 | undefined;
|
|
9
|
+
distanceRadius?: number | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
//# sourceMappingURL=lightning.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { accuWeatherApiKeyField, awGet } from './client.js';
|
|
5
|
+
export const getLightningForecast = tool({
|
|
6
|
+
description: 'Return forecast lightning probabilities for latitude/longitude coordinates. Coverage is latitude 20 to 55 and longitude -130 to -60 (North America).',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
9
|
+
coordinates: z
|
|
10
|
+
.string()
|
|
11
|
+
.min(1)
|
|
12
|
+
.describe('Latitude then longitude in decimal degrees separated by a comma, e.g. "40.779,-73.969".'),
|
|
13
|
+
}),
|
|
14
|
+
execute: async ({ accuWeatherApiKey, coordinates }) => awGet('/lightning/v1/forecasts/geoposition', { apiKey: accuWeatherApiKey, query: { q: coordinates } }),
|
|
15
|
+
});
|
|
16
|
+
export const listRecentLightningStrikes = tool({
|
|
17
|
+
description: 'Return recent lightning strikes within 1 to 60 miles of latitude/longitude coordinates as a GeoJSON FeatureCollection.',
|
|
18
|
+
inputSchema: z.object({
|
|
19
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
20
|
+
coordinates: z
|
|
21
|
+
.string()
|
|
22
|
+
.min(1)
|
|
23
|
+
.describe('Center latitude then longitude in decimal degrees separated by a comma, e.g. "40.779,-73.969".'),
|
|
24
|
+
minutes: z
|
|
25
|
+
.union([z.literal(5), z.literal(15), z.literal(30), z.literal(60), z.literal(120)])
|
|
26
|
+
.optional()
|
|
27
|
+
.describe('Lookback interval in minutes (default 15).'),
|
|
28
|
+
distanceRadius: z.number().int().min(1).max(60).optional().describe('Search radius in miles, from 1 through 60 (default 5).'),
|
|
29
|
+
}),
|
|
30
|
+
execute: async ({ accuWeatherApiKey, coordinates, minutes = 15, distanceRadius = 5 }) => awGet(`/lightning/v1/${minutes}min/geoposition/radius.geojson`, {
|
|
31
|
+
apiKey: accuWeatherApiKey,
|
|
32
|
+
query: { q: coordinates, distanceRadius },
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=lightning.js.map
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare const autocompleteLocations: import("ai").Tool<{
|
|
2
|
+
query: string;
|
|
3
|
+
language?: string | undefined;
|
|
4
|
+
locationType?: "all" | "city" | "point_of_interest" | undefined;
|
|
5
|
+
accuWeatherApiKey?: string | undefined;
|
|
6
|
+
countryCode?: string | undefined;
|
|
7
|
+
includeAliases?: boolean | undefined;
|
|
8
|
+
}, any>;
|
|
9
|
+
export declare const getAdministrativeArea: import("ai").Tool<{
|
|
10
|
+
countryCode: string;
|
|
11
|
+
adminCode: string;
|
|
12
|
+
language?: string | undefined;
|
|
13
|
+
accuWeatherApiKey?: string | undefined;
|
|
14
|
+
}, any>;
|
|
15
|
+
export declare const getCountry: import("ai").Tool<{
|
|
16
|
+
regionCode: string;
|
|
17
|
+
countryCode: string;
|
|
18
|
+
language?: string | undefined;
|
|
19
|
+
accuWeatherApiKey?: string | undefined;
|
|
20
|
+
}, any>;
|
|
21
|
+
export declare const getRegion: import("ai").Tool<{
|
|
22
|
+
regionCode: string;
|
|
23
|
+
language?: string | undefined;
|
|
24
|
+
accuWeatherApiKey?: string | undefined;
|
|
25
|
+
}, any>;
|
|
26
|
+
export declare const getLocation: import("ai").Tool<{
|
|
27
|
+
locationKey: string | number;
|
|
28
|
+
details?: boolean | undefined;
|
|
29
|
+
language?: string | undefined;
|
|
30
|
+
accuWeatherApiKey?: string | undefined;
|
|
31
|
+
}, any>;
|
|
32
|
+
export declare const listAdministrativeAreas: import("ai").Tool<{
|
|
33
|
+
language?: string | undefined;
|
|
34
|
+
accuWeatherApiKey?: string | undefined;
|
|
35
|
+
countryCode?: string | undefined;
|
|
36
|
+
adminCode?: string | undefined;
|
|
37
|
+
nextCursor?: string | undefined;
|
|
38
|
+
}, any>;
|
|
39
|
+
export declare const listCountries: import("ai").Tool<{
|
|
40
|
+
language?: string | undefined;
|
|
41
|
+
regionCode?: string | undefined;
|
|
42
|
+
accuWeatherApiKey?: string | undefined;
|
|
43
|
+
countryCode?: string | undefined;
|
|
44
|
+
nextCursor?: string | undefined;
|
|
45
|
+
}, any>;
|
|
46
|
+
export declare const listRegions: import("ai").Tool<{
|
|
47
|
+
language?: string | undefined;
|
|
48
|
+
regionCode?: string | undefined;
|
|
49
|
+
accuWeatherApiKey?: string | undefined;
|
|
50
|
+
}, any>;
|
|
51
|
+
export declare const listTopCities: import("ai").Tool<{
|
|
52
|
+
count?: 100 | 50 | 150 | undefined;
|
|
53
|
+
details?: boolean | undefined;
|
|
54
|
+
language?: string | undefined;
|
|
55
|
+
regionCode?: string | undefined;
|
|
56
|
+
accuWeatherApiKey?: string | undefined;
|
|
57
|
+
rankingScope?: "region" | "global" | undefined;
|
|
58
|
+
languageId?: number | undefined;
|
|
59
|
+
}, any>;
|
|
60
|
+
export declare const searchAdministrativeAreas: import("ai").Tool<{
|
|
61
|
+
query: string;
|
|
62
|
+
language?: string | undefined;
|
|
63
|
+
accuWeatherApiKey?: string | undefined;
|
|
64
|
+
countryCode?: string | undefined;
|
|
65
|
+
adminCode?: string | undefined;
|
|
66
|
+
nextCursor?: string | undefined;
|
|
67
|
+
}, any>;
|
|
68
|
+
export declare const searchCityByIpAddress: import("ai").Tool<{
|
|
69
|
+
ipAddress: string;
|
|
70
|
+
details?: boolean | undefined;
|
|
71
|
+
language?: string | undefined;
|
|
72
|
+
accuWeatherApiKey?: string | undefined;
|
|
73
|
+
}, any>;
|
|
74
|
+
export declare const searchLocations: import("ai").Tool<{
|
|
75
|
+
query: string;
|
|
76
|
+
details?: boolean | undefined;
|
|
77
|
+
language?: string | undefined;
|
|
78
|
+
locationType?: "location" | "city" | "point_of_interest" | "postal_code" | undefined;
|
|
79
|
+
accuWeatherApiKey?: string | undefined;
|
|
80
|
+
countryCode?: string | undefined;
|
|
81
|
+
adminCode?: string | undefined;
|
|
82
|
+
nextCursor?: string | undefined;
|
|
83
|
+
pointOfInterestType?: string | undefined;
|
|
84
|
+
allLanguages?: boolean | undefined;
|
|
85
|
+
aliasCount?: number | undefined;
|
|
86
|
+
}, any>;
|
|
87
|
+
export declare const searchLocationsByCoordinates: import("ai").Tool<{
|
|
88
|
+
coordinates: string;
|
|
89
|
+
details?: boolean | undefined;
|
|
90
|
+
language?: string | undefined;
|
|
91
|
+
locationType?: "location" | "city" | "point_of_interest" | undefined;
|
|
92
|
+
accuWeatherApiKey?: string | undefined;
|
|
93
|
+
topLevel?: boolean | undefined;
|
|
94
|
+
}, any>;
|
|
95
|
+
export declare const listNeighboringCities: import("ai").Tool<{
|
|
96
|
+
locationKey: string | number;
|
|
97
|
+
details?: boolean | undefined;
|
|
98
|
+
language?: string | undefined;
|
|
99
|
+
accuWeatherApiKey?: string | undefined;
|
|
100
|
+
}, any>;
|
|
101
|
+
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { accuWeatherApiKeyField, awGet } from './client.js';
|
|
5
|
+
export const autocompleteLocations = tool({
|
|
6
|
+
description: 'Return location-name suggestions for all locations, cities, or points of interest, optionally restricted to a country.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
9
|
+
query: z.string().min(1).describe('Partial location name to complete, e.g. "New York".'),
|
|
10
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
11
|
+
countryCode: z.string().optional().describe('Optional country code restricting suggestions, such as US.'),
|
|
12
|
+
locationType: z
|
|
13
|
+
.enum(['all', 'city', 'point_of_interest'])
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('Kind of suggestion to return: all locations, cities, or points of interest (default all).'),
|
|
16
|
+
includeAliases: z.boolean().optional().describe('Whether to include matching alternate location names (default false).'),
|
|
17
|
+
}),
|
|
18
|
+
execute: async ({ accuWeatherApiKey, query, language, countryCode, locationType = 'all', includeAliases }) => {
|
|
19
|
+
const cc = countryCode ? `/${encodeURIComponent(countryCode)}` : '';
|
|
20
|
+
let path = `/locations/v1${cc}/autocomplete`;
|
|
21
|
+
if (locationType === 'city')
|
|
22
|
+
path = `/locations/v1/cities${cc}/autocomplete`;
|
|
23
|
+
if (locationType === 'point_of_interest')
|
|
24
|
+
path = `/locations/v1/poi${cc}/autocomplete`;
|
|
25
|
+
return awGet(path, { apiKey: accuWeatherApiKey, query: { q: query, language, includeAliases } });
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
export const getAdministrativeArea = tool({
|
|
29
|
+
description: 'Return one administrative area by country and administrative-area codes.',
|
|
30
|
+
inputSchema: z.object({
|
|
31
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
32
|
+
countryCode: z.string().describe('Country code containing the administrative area, e.g. US.'),
|
|
33
|
+
adminCode: z.string().describe('Administrative-area code, e.g. NY.'),
|
|
34
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
35
|
+
}),
|
|
36
|
+
execute: async ({ accuWeatherApiKey, countryCode, adminCode, language }) => awGet(`/locations/v1/adminareas/${encodeURIComponent(countryCode)}/${encodeURIComponent(adminCode)}`, {
|
|
37
|
+
apiKey: accuWeatherApiKey,
|
|
38
|
+
query: { language },
|
|
39
|
+
}),
|
|
40
|
+
});
|
|
41
|
+
export const getCountry = tool({
|
|
42
|
+
description: 'Return one country by AccuWeather region and country codes.',
|
|
43
|
+
inputSchema: z.object({
|
|
44
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
45
|
+
regionCode: z.string().describe('AccuWeather region code, e.g. NAM.'),
|
|
46
|
+
countryCode: z.string().describe('ISO or Microsoft localization country code, e.g. US.'),
|
|
47
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
48
|
+
}),
|
|
49
|
+
execute: async ({ accuWeatherApiKey, regionCode, countryCode, language }) => awGet(`/locations/v1/countries/${encodeURIComponent(regionCode)}/${encodeURIComponent(countryCode)}`, {
|
|
50
|
+
apiKey: accuWeatherApiKey,
|
|
51
|
+
query: { language },
|
|
52
|
+
}),
|
|
53
|
+
});
|
|
54
|
+
export const getRegion = tool({
|
|
55
|
+
description: 'Return one AccuWeather region by region code.',
|
|
56
|
+
inputSchema: z.object({
|
|
57
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
58
|
+
regionCode: z.string().describe('AccuWeather region code, e.g. NAM.'),
|
|
59
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
60
|
+
}),
|
|
61
|
+
execute: async ({ accuWeatherApiKey, regionCode, language }) => awGet(`/locations/v1/regions/${encodeURIComponent(regionCode)}`, { apiKey: accuWeatherApiKey, query: { language } }),
|
|
62
|
+
});
|
|
63
|
+
export const getLocation = tool({
|
|
64
|
+
description: 'Return full location metadata for an AccuWeather location key.',
|
|
65
|
+
inputSchema: z.object({
|
|
66
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
67
|
+
locationKey: z.union([z.number(), z.string()]).describe('AccuWeather location key, e.g. 349727.'),
|
|
68
|
+
details: z.boolean().optional().describe('Whether to include extended location details (default false).'),
|
|
69
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
70
|
+
}),
|
|
71
|
+
execute: async ({ accuWeatherApiKey, locationKey, details, language }) => awGet(`/locations/v1/${encodeURIComponent(String(locationKey))}`, { apiKey: accuWeatherApiKey, query: { details, language } }),
|
|
72
|
+
});
|
|
73
|
+
export const listAdministrativeAreas = tool({
|
|
74
|
+
description: 'Return administrative areas globally or within a country, one provider page at a time.',
|
|
75
|
+
inputSchema: z.object({
|
|
76
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
77
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
78
|
+
adminCode: z.string().optional().describe('Optional administrative-area code used to filter the list, e.g. NY.'),
|
|
79
|
+
countryCode: z.string().optional().describe('Optional country code; when present, list only that country\u2019s administrative areas.'),
|
|
80
|
+
nextCursor: z.string().optional().describe('Opaque cursor returned by a previous call (provider page number); omit for the first page.'),
|
|
81
|
+
}),
|
|
82
|
+
execute: async ({ accuWeatherApiKey, language, adminCode, countryCode, nextCursor }) => {
|
|
83
|
+
const path = countryCode ? `/locations/v1/adminareas/${encodeURIComponent(countryCode)}` : '/locations/v1/adminareas';
|
|
84
|
+
const data = await awGet(path, { apiKey: accuWeatherApiKey, query: { language, offset: nextCursor } });
|
|
85
|
+
if (adminCode && Array.isArray(data)) {
|
|
86
|
+
const needle = adminCode.toUpperCase();
|
|
87
|
+
return data.filter((area) => String(area?.ID ?? '').toUpperCase() === needle ||
|
|
88
|
+
String(area?.AdministrativeAreaCode ?? '').toUpperCase() === needle);
|
|
89
|
+
}
|
|
90
|
+
return data;
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
export const listCountries = tool({
|
|
94
|
+
description: 'Return countries globally or within a specific AccuWeather region, one provider page at a time.',
|
|
95
|
+
inputSchema: z.object({
|
|
96
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
97
|
+
language: z.string().optional().describe('Language code for localized country names (default en-us).'),
|
|
98
|
+
regionCode: z.string().optional().describe('Optional AccuWeather region code; when present, list only countries in that region.'),
|
|
99
|
+
countryCode: z.string().optional().describe('Optional ISO or Microsoft localization country code filter, e.g. US.'),
|
|
100
|
+
nextCursor: z.string().optional().describe('Opaque cursor returned by a previous call; omit for the first page.'),
|
|
101
|
+
}),
|
|
102
|
+
execute: async ({ accuWeatherApiKey, language, regionCode, countryCode, nextCursor }) => {
|
|
103
|
+
const path = regionCode ? `/locations/v1/countries/${encodeURIComponent(regionCode)}` : '/locations/v1/countries';
|
|
104
|
+
const data = await awGet(path, { apiKey: accuWeatherApiKey, query: { language, offset: nextCursor } });
|
|
105
|
+
if (countryCode && Array.isArray(data)) {
|
|
106
|
+
const needle = countryCode.toUpperCase();
|
|
107
|
+
return data.filter((country) => String(country?.Id ?? country?.ID ?? '').toUpperCase() === needle);
|
|
108
|
+
}
|
|
109
|
+
return data;
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
export const listRegions = tool({
|
|
113
|
+
description: 'Return AccuWeather geographic regions and their codes.',
|
|
114
|
+
inputSchema: z.object({
|
|
115
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
116
|
+
language: z.string().optional().describe('Language code for localized region names (default en-us).'),
|
|
117
|
+
regionCode: z.string().optional().describe('Optional AccuWeather region code used to filter the region list, e.g. NAM.'),
|
|
118
|
+
}),
|
|
119
|
+
execute: async ({ accuWeatherApiKey, language, regionCode }) => awGet('/locations/v1/regions', { apiKey: accuWeatherApiKey, query: { language, regionCode } }),
|
|
120
|
+
});
|
|
121
|
+
export const listTopCities = tool({
|
|
122
|
+
description: 'Return top-ranked AccuWeather cities globally or within one region. Global rankings support 50, 100, or 150 results.',
|
|
123
|
+
inputSchema: z.object({
|
|
124
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
125
|
+
rankingScope: z.enum(['global', 'region']).optional().describe('Rank cities globally or within one AccuWeather region (default global).'),
|
|
126
|
+
regionCode: z.string().optional().describe('AccuWeather region code. Required when rankingScope is "region".'),
|
|
127
|
+
count: z.union([z.literal(50), z.literal(100), z.literal(150)]).optional().describe('Number of cities for global rankings (default 50).'),
|
|
128
|
+
language: z.string().optional().describe('Language code for global rankings (default en-us); omit for regional rankings.'),
|
|
129
|
+
languageId: z.number().int().optional().describe('Numeric AccuWeather language ID for regional rankings (default 1); omit for global rankings.'),
|
|
130
|
+
details: z.boolean().optional().describe('Whether to include extended location details (default false).'),
|
|
131
|
+
}),
|
|
132
|
+
execute: async ({ accuWeatherApiKey, rankingScope = 'global', regionCode, count = 50, language, languageId, details }) => {
|
|
133
|
+
if (rankingScope === 'region') {
|
|
134
|
+
if (!regionCode)
|
|
135
|
+
return { error: 'regionCode is required when rankingScope is "region".' };
|
|
136
|
+
return awGet(`/locations/v1/topcities/regions/${encodeURIComponent(regionCode)}`, {
|
|
137
|
+
apiKey: accuWeatherApiKey,
|
|
138
|
+
query: { languageID: languageId, details },
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return awGet(`/locations/v1/topcities/${count}`, { apiKey: accuWeatherApiKey, query: { language, details } });
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
export const searchAdministrativeAreas = tool({
|
|
145
|
+
description: 'Search administrative areas by required non-empty name text with optional country and administrative-area code filters.',
|
|
146
|
+
inputSchema: z.object({
|
|
147
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
148
|
+
query: z.string().min(1).describe('Required non-empty administrative-area name text to search for, e.g. "New York".'),
|
|
149
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
150
|
+
adminCode: z.string().optional().describe('Optional administrative-area code filter, e.g. NY.'),
|
|
151
|
+
countryCode: z.string().optional().describe('Optional ISO or Microsoft localization country code that scopes the search, e.g. US.'),
|
|
152
|
+
nextCursor: z.string().optional().describe('Opaque cursor returned by a previous call; omit for the first page.'),
|
|
153
|
+
}),
|
|
154
|
+
execute: async ({ accuWeatherApiKey, query, language, adminCode, countryCode, nextCursor }) => {
|
|
155
|
+
if (!query || !query.trim())
|
|
156
|
+
return { error: 'query must be a non-empty string.' };
|
|
157
|
+
return awGet('/locations/v1/adminareas/search', {
|
|
158
|
+
apiKey: accuWeatherApiKey,
|
|
159
|
+
query: { q: query, language, adminCode, countryCode, offset: nextCursor },
|
|
160
|
+
});
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
export const searchCityByIpAddress = tool({
|
|
164
|
+
description: 'Resolve an IPv4 or IPv6 address to an AccuWeather city location.',
|
|
165
|
+
inputSchema: z.object({
|
|
166
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
167
|
+
ipAddress: z.string().min(1).describe('IPv4 or IPv6 address to resolve, e.g. 38.103.173.150 or 2001:4860:4860::8888.'),
|
|
168
|
+
details: z.boolean().optional().describe('Whether to include extended location details (default false).'),
|
|
169
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
170
|
+
}),
|
|
171
|
+
execute: async ({ accuWeatherApiKey, ipAddress, details, language }) => awGet('/locations/v1/cities/ipaddress', { apiKey: accuWeatherApiKey, query: { q: ipAddress, language, details } }),
|
|
172
|
+
});
|
|
173
|
+
export const searchLocations = tool({
|
|
174
|
+
description: 'Search cities, general locations, postal codes, or points of interest by text and optional geographic filters such as country and administrative area.',
|
|
175
|
+
inputSchema: z.object({
|
|
176
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
177
|
+
query: z.string().min(1).describe('Location, city, postal code, or point-of-interest text to search, e.g. "New York".'),
|
|
178
|
+
locationType: z
|
|
179
|
+
.enum(['location', 'city', 'postal_code', 'point_of_interest'])
|
|
180
|
+
.optional()
|
|
181
|
+
.describe('Resource family to search (default location).'),
|
|
182
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
183
|
+
details: z.boolean().optional().describe('Whether to include extended location details (default false).'),
|
|
184
|
+
countryCode: z.string().optional().describe('Optional country restriction, e.g. US. Required when adminCode is provided.'),
|
|
185
|
+
adminCode: z.string().optional().describe('Optional administrative-area restriction, e.g. NY. Supported for location, city, and point_of_interest searches.'),
|
|
186
|
+
pointOfInterestType: z.string().optional().describe('Optional provider point-of-interest type filter; valid only when locationType is point_of_interest.'),
|
|
187
|
+
allLanguages: z.boolean().optional().describe('Return point-of-interest matches in all languages; valid only when locationType is point_of_interest.'),
|
|
188
|
+
aliasCount: z.number().int().optional().describe('Number of aliases to return for location or city searches (default 2).'),
|
|
189
|
+
nextCursor: z.string().optional().describe('Opaque cursor returned by a previous location or city search; omit for the first page.'),
|
|
190
|
+
}),
|
|
191
|
+
execute: async ({ accuWeatherApiKey, query, locationType = 'location', language, details, countryCode, adminCode, pointOfInterestType, allLanguages, aliasCount, nextCursor, }) => {
|
|
192
|
+
if (!query || !query.trim())
|
|
193
|
+
return { error: 'query must be a non-empty string.' };
|
|
194
|
+
if (adminCode && !countryCode)
|
|
195
|
+
return { error: 'countryCode is required when adminCode is provided.' };
|
|
196
|
+
let path = '/locations/v1/search';
|
|
197
|
+
if (locationType === 'city') {
|
|
198
|
+
path = '/locations/v1/cities/search';
|
|
199
|
+
if (countryCode) {
|
|
200
|
+
path = adminCode
|
|
201
|
+
? `/locations/v1/cities/${encodeURIComponent(countryCode)}/${encodeURIComponent(adminCode)}/search`
|
|
202
|
+
: `/locations/v1/cities/${encodeURIComponent(countryCode)}/search`;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
else if (locationType === 'postal_code') {
|
|
206
|
+
path = '/locations/v1/postalcodes/search';
|
|
207
|
+
}
|
|
208
|
+
else if (locationType === 'point_of_interest') {
|
|
209
|
+
path = '/locations/v1/poi/search';
|
|
210
|
+
}
|
|
211
|
+
else if (countryCode) {
|
|
212
|
+
path = adminCode
|
|
213
|
+
? `/locations/v1/${encodeURIComponent(countryCode)}/${encodeURIComponent(adminCode)}/search`
|
|
214
|
+
: `/locations/v1/${encodeURIComponent(countryCode)}/search`;
|
|
215
|
+
}
|
|
216
|
+
const queryParams = { q: query, language, details, offset: nextCursor };
|
|
217
|
+
if (locationType === 'postal_code' && countryCode)
|
|
218
|
+
queryParams.countryCode = countryCode;
|
|
219
|
+
if (locationType === 'point_of_interest') {
|
|
220
|
+
if (countryCode)
|
|
221
|
+
queryParams.countryCode = countryCode;
|
|
222
|
+
if (adminCode)
|
|
223
|
+
queryParams.adminCode = adminCode;
|
|
224
|
+
if (pointOfInterestType)
|
|
225
|
+
queryParams.type = pointOfInterestType;
|
|
226
|
+
if (allLanguages)
|
|
227
|
+
queryParams.allLanguages = true;
|
|
228
|
+
}
|
|
229
|
+
if (locationType === 'location' || locationType === 'city') {
|
|
230
|
+
if (aliasCount !== undefined)
|
|
231
|
+
queryParams.aliasCount = aliasCount;
|
|
232
|
+
}
|
|
233
|
+
return awGet(path, { apiKey: accuWeatherApiKey, query: queryParams });
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
export const searchLocationsByCoordinates = tool({
|
|
237
|
+
description: 'Find the nearest general location, city, or point of interest to latitude/longitude coordinates.',
|
|
238
|
+
inputSchema: z.object({
|
|
239
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
240
|
+
coordinates: z
|
|
241
|
+
.string()
|
|
242
|
+
.min(1)
|
|
243
|
+
.describe('Latitude then longitude in decimal degrees separated by a comma, e.g. "40.779,-73.969".'),
|
|
244
|
+
locationType: z
|
|
245
|
+
.enum(['location', 'city', 'point_of_interest'])
|
|
246
|
+
.optional()
|
|
247
|
+
.describe('Kind of nearby location to return (default location).'),
|
|
248
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
249
|
+
details: z.boolean().optional().describe('Whether to include extended location details (default false).'),
|
|
250
|
+
topLevel: z
|
|
251
|
+
.boolean()
|
|
252
|
+
.optional()
|
|
253
|
+
.describe('Prefer the highest-ranked broader location instead of a neighborhood-level match (default false).'),
|
|
254
|
+
}),
|
|
255
|
+
execute: async ({ accuWeatherApiKey, coordinates, locationType = 'location', language, details, topLevel }) => {
|
|
256
|
+
const paths = {
|
|
257
|
+
location: '/locations/v1/geoposition/search',
|
|
258
|
+
city: '/locations/v1/cities/geoposition/search',
|
|
259
|
+
point_of_interest: '/locations/v1/poi/geoposition/search',
|
|
260
|
+
};
|
|
261
|
+
return awGet(paths[locationType] ?? paths.location, {
|
|
262
|
+
apiKey: accuWeatherApiKey,
|
|
263
|
+
query: { q: coordinates, language, details, topLevel },
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
export const listNeighboringCities = tool({
|
|
268
|
+
description: 'Return cities near an AccuWeather location key.',
|
|
269
|
+
inputSchema: z.object({
|
|
270
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
271
|
+
locationKey: z.union([z.number(), z.string()]).describe('Numeric AccuWeather location key, e.g. 349727.'),
|
|
272
|
+
details: z.boolean().optional().describe('Whether to include extended location details (default false).'),
|
|
273
|
+
language: z.string().optional().describe('Language code for localized fields (default en-us).'),
|
|
274
|
+
}),
|
|
275
|
+
execute: async ({ accuWeatherApiKey, locationKey, details, language }) => awGet(`/locations/v1/cities/neighbors/${encodeURIComponent(String(locationKey))}`, {
|
|
276
|
+
apiKey: accuWeatherApiKey,
|
|
277
|
+
query: { language, details },
|
|
278
|
+
}),
|
|
279
|
+
});
|
|
280
|
+
//# sourceMappingURL=locations.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const getMinuteCastForecast: import("ai").Tool<{
|
|
2
|
+
coordinates: string;
|
|
3
|
+
details?: boolean | undefined;
|
|
4
|
+
language?: string | undefined;
|
|
5
|
+
accuWeatherApiKey?: string | undefined;
|
|
6
|
+
}, any>;
|
|
7
|
+
export declare const listMinuteCastColorCodes: import("ai").Tool<{
|
|
8
|
+
accuWeatherApiKey?: string | undefined;
|
|
9
|
+
detailLevel?: "full" | "simple" | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
//# sourceMappingURL=minutecast.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { accuWeatherApiKeyField, awGet } from './client.js';
|
|
5
|
+
export const getMinuteCastForecast = tool({
|
|
6
|
+
description: 'Return minute-by-minute precipitation conditions for latitude/longitude coordinates.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
9
|
+
coordinates: z
|
|
10
|
+
.string()
|
|
11
|
+
.min(1)
|
|
12
|
+
.describe('Latitude then longitude in decimal degrees separated by a comma, e.g. "40.779,-73.969".'),
|
|
13
|
+
details: z.boolean().optional().describe('Whether to include detailed minute intervals when available (default false).'),
|
|
14
|
+
language: z.string().optional().describe('Language code for localized precipitation phrases (default en).'),
|
|
15
|
+
}),
|
|
16
|
+
execute: async ({ accuWeatherApiKey, coordinates, details, language }) => awGet('/forecasts/v1/minute', { apiKey: accuWeatherApiKey, query: { q: coordinates, language, details } }),
|
|
17
|
+
});
|
|
18
|
+
export const listMinuteCastColorCodes = tool({
|
|
19
|
+
description: 'Return full or simplified color-code metadata used in MinuteCast precipitation output.',
|
|
20
|
+
inputSchema: z.object({
|
|
21
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
22
|
+
detailLevel: z.enum(['full', 'simple']).optional().describe('Return the full or simplified MinuteCast color-code table (default full).'),
|
|
23
|
+
}),
|
|
24
|
+
execute: async ({ accuWeatherApiKey, detailLevel = 'full' }) => awGet(detailLevel === 'simple' ? '/forecasts/v1/minute/colors/simple' : '/forecasts/v1/minute/colors', {
|
|
25
|
+
apiKey: accuWeatherApiKey,
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=minutecast.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const getTranslationGroup: import("ai").Tool<{
|
|
2
|
+
groupId: number;
|
|
3
|
+
language?: string | undefined;
|
|
4
|
+
accuWeatherApiKey?: string | undefined;
|
|
5
|
+
}, any>;
|
|
6
|
+
export declare const listTranslationGroups: import("ai").Tool<{
|
|
7
|
+
language?: string | undefined;
|
|
8
|
+
accuWeatherApiKey?: string | undefined;
|
|
9
|
+
}, any>;
|
|
10
|
+
export declare const listSupportedLanguages: import("ai").Tool<{
|
|
11
|
+
accuWeatherApiKey?: string | undefined;
|
|
12
|
+
format?: string | undefined;
|
|
13
|
+
}, any>;
|
|
14
|
+
export declare const resolveLanguageIdentifier: import("ai").Tool<{
|
|
15
|
+
identifierType: "code" | "id";
|
|
16
|
+
languageCode?: string | undefined;
|
|
17
|
+
accuWeatherApiKey?: string | undefined;
|
|
18
|
+
languageId?: number | undefined;
|
|
19
|
+
}, any>;
|
|
20
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { accuWeatherApiKeyField, awGet } from './client.js';
|
|
5
|
+
export const getTranslationGroup = tool({
|
|
6
|
+
description: 'Return translated strings for one AccuWeather translation group.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
9
|
+
groupId: z.number().int().describe('Numeric identifier of the translation group to retrieve, e.g. 1.'),
|
|
10
|
+
language: z.string().optional().describe('Language code for the translated strings (default en-us).'),
|
|
11
|
+
}),
|
|
12
|
+
execute: async ({ accuWeatherApiKey, groupId, language }) => awGet(`/translations/v1/groups/${groupId}`, { apiKey: accuWeatherApiKey, query: { language } }),
|
|
13
|
+
});
|
|
14
|
+
export const listTranslationGroups = tool({
|
|
15
|
+
description: 'Return available AccuWeather translation groups and their identifiers.',
|
|
16
|
+
inputSchema: z.object({
|
|
17
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
18
|
+
language: z.string().optional().describe('Language code for localized translation group names (default en-us).'),
|
|
19
|
+
}),
|
|
20
|
+
execute: async ({ accuWeatherApiKey, language }) => awGet('/translations/v1/groups', { apiKey: accuWeatherApiKey, query: { language } }),
|
|
21
|
+
});
|
|
22
|
+
export const listSupportedLanguages = tool({
|
|
23
|
+
description: 'Return AccuWeather-supported languages with numeric IDs and language codes.',
|
|
24
|
+
inputSchema: z.object({
|
|
25
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
26
|
+
format: z.string().optional().describe('Response format; the provider currently returns JSON.'),
|
|
27
|
+
}),
|
|
28
|
+
execute: async ({ accuWeatherApiKey, format }) => awGet('/translations/v1/languages', { apiKey: accuWeatherApiKey, query: { format } }),
|
|
29
|
+
});
|
|
30
|
+
export const resolveLanguageIdentifier = tool({
|
|
31
|
+
description: 'Convert an AccuWeather language code to its numeric ID or a numeric language ID to its code.',
|
|
32
|
+
inputSchema: z.object({
|
|
33
|
+
accuWeatherApiKey: accuWeatherApiKeyField,
|
|
34
|
+
identifierType: z.enum(['code', 'id']).describe('Whether to resolve a language code or a numeric language ID.'),
|
|
35
|
+
languageCode: z.string().optional().describe('AccuWeather language code to resolve when identifierType is "code", e.g. en-us.'),
|
|
36
|
+
languageId: z.number().int().optional().describe('Positive AccuWeather language ID to resolve when identifierType is "id", e.g. 1.'),
|
|
37
|
+
}),
|
|
38
|
+
execute: async ({ accuWeatherApiKey, identifierType, languageCode, languageId }) => {
|
|
39
|
+
if (identifierType === 'code') {
|
|
40
|
+
if (!languageCode)
|
|
41
|
+
return { error: 'languageCode is required when identifierType is "code".' };
|
|
42
|
+
return awGet(`/translations/v1/languages/code/${encodeURIComponent(languageCode)}`, { apiKey: accuWeatherApiKey });
|
|
43
|
+
}
|
|
44
|
+
if (languageId === undefined)
|
|
45
|
+
return { error: 'languageId is required when identifierType is "id".' };
|
|
46
|
+
return awGet(`/translations/v1/languages/id/${languageId}`, { apiKey: accuWeatherApiKey });
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=translations.js.map
|