@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,94 @@
|
|
|
1
|
+
export declare const createIncident: import("ai").Tool<{
|
|
2
|
+
shortDescription: string;
|
|
3
|
+
description?: string | undefined;
|
|
4
|
+
priority?: "1" | "2" | "3" | "4" | "5" | undefined;
|
|
5
|
+
location?: string | undefined;
|
|
6
|
+
company?: string | undefined;
|
|
7
|
+
state?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | undefined;
|
|
8
|
+
comments?: string | undefined;
|
|
9
|
+
active?: boolean | undefined;
|
|
10
|
+
category?: string | undefined;
|
|
11
|
+
servicenowCredentials?: string | undefined;
|
|
12
|
+
impact?: "1" | "2" | "3" | "4" | undefined;
|
|
13
|
+
cmdbCi?: string | undefined;
|
|
14
|
+
workNotes?: string | undefined;
|
|
15
|
+
assignedTo?: string | undefined;
|
|
16
|
+
subcategory?: string | undefined;
|
|
17
|
+
assignmentGroup?: string | undefined;
|
|
18
|
+
sysparmFields?: string | undefined;
|
|
19
|
+
sysparmDisplayValue?: "true" | "all" | "false" | undefined;
|
|
20
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
21
|
+
sysparmInputDisplayValue?: boolean | undefined;
|
|
22
|
+
urgency?: "1" | "2" | "3" | "4" | undefined;
|
|
23
|
+
callerId?: string | undefined;
|
|
24
|
+
contactType?: string | undefined;
|
|
25
|
+
businessService?: string | undefined;
|
|
26
|
+
watchList?: string | undefined;
|
|
27
|
+
}, any>;
|
|
28
|
+
export declare const getIncidentList: import("ai").Tool<{
|
|
29
|
+
servicenowCredentials?: string | undefined;
|
|
30
|
+
sysparmLimit?: number | undefined;
|
|
31
|
+
sysparmQuery?: string | undefined;
|
|
32
|
+
sysparmFields?: string | undefined;
|
|
33
|
+
sysparmOffset?: number | undefined;
|
|
34
|
+
sysparmDisplayValue?: boolean | undefined;
|
|
35
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
36
|
+
}, any>;
|
|
37
|
+
export declare const getIncident: import("ai").Tool<{
|
|
38
|
+
sysId: string;
|
|
39
|
+
servicenowCredentials?: string | undefined;
|
|
40
|
+
sysparmView?: "mobile" | "desktop" | "both" | undefined;
|
|
41
|
+
sysparmFields?: string | undefined;
|
|
42
|
+
sysparmDisplayValue?: boolean | undefined;
|
|
43
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
44
|
+
sysparmQueryCategory?: string | undefined;
|
|
45
|
+
}, any>;
|
|
46
|
+
export declare const updateIncident: import("ai").Tool<{
|
|
47
|
+
sysId: string;
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
priority?: string | undefined;
|
|
50
|
+
location?: string | undefined;
|
|
51
|
+
state?: string | undefined;
|
|
52
|
+
comments?: string | undefined;
|
|
53
|
+
active?: string | undefined;
|
|
54
|
+
dueDate?: string | undefined;
|
|
55
|
+
category?: string | undefined;
|
|
56
|
+
servicenowCredentials?: string | undefined;
|
|
57
|
+
impact?: string | undefined;
|
|
58
|
+
cmdbCi?: string | undefined;
|
|
59
|
+
workNotes?: string | undefined;
|
|
60
|
+
assignedTo?: string | undefined;
|
|
61
|
+
closeNotes?: string | undefined;
|
|
62
|
+
subcategory?: string | undefined;
|
|
63
|
+
assignmentGroup?: string | undefined;
|
|
64
|
+
shortDescription?: string | undefined;
|
|
65
|
+
sysparmView?: "mobile" | "desktop" | "both" | undefined;
|
|
66
|
+
sysparmFields?: string | undefined;
|
|
67
|
+
sysparmDisplayValue?: boolean | undefined;
|
|
68
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
69
|
+
sysparmInputDisplayValue?: boolean | undefined;
|
|
70
|
+
urgency?: string | undefined;
|
|
71
|
+
callerId?: string | undefined;
|
|
72
|
+
contactType?: string | undefined;
|
|
73
|
+
businessService?: string | undefined;
|
|
74
|
+
madeSla?: string | undefined;
|
|
75
|
+
closedAt?: string | undefined;
|
|
76
|
+
closedBy?: string | undefined;
|
|
77
|
+
knowledge?: string | undefined;
|
|
78
|
+
closeCode?: string | undefined;
|
|
79
|
+
escalation?: string | undefined;
|
|
80
|
+
problemId?: string | undefined;
|
|
81
|
+
holdReason?: string | undefined;
|
|
82
|
+
resolvedAt?: string | undefined;
|
|
83
|
+
resolvedBy?: string | undefined;
|
|
84
|
+
uponReject?: string | undefined;
|
|
85
|
+
uponApproval?: string | undefined;
|
|
86
|
+
correlationId?: string | undefined;
|
|
87
|
+
parentIncident?: string | undefined;
|
|
88
|
+
correlationDisplay?: string | undefined;
|
|
89
|
+
}, any>;
|
|
90
|
+
export declare const deleteIncident: import("ai").Tool<{
|
|
91
|
+
sysId: string;
|
|
92
|
+
servicenowCredentials?: string | undefined;
|
|
93
|
+
}, any>;
|
|
94
|
+
//# sourceMappingURL=incidents.d.ts.map
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { snRequest, toServerKeys } from './client.js';
|
|
5
|
+
export const createIncident = tool({
|
|
6
|
+
description: "Creates a new incident record in ServiceNow with the provided field values. Use this action when you need to log or report a new incident in ServiceNow IT Service Management. The created incident is returned with its sys_id and auto-generated incident number. This action specifically targets the incident table and includes incident-specific fields like urgency, impact, severity, incident_state, and caller_id for proper incident management workflows.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
9
|
+
state: z.enum(['1', '2', '3', '4', '5', '6', '7', '8']).optional().describe("ServiceNow incident state values"),
|
|
10
|
+
active: z.boolean().optional().describe("Whether the incident is active. Defaults to true for new incidents."),
|
|
11
|
+
impact: z.enum(['1', '2', '3', '4']).optional().describe("ServiceNow impact levels - measures of business criticality"),
|
|
12
|
+
cmdbCi: z.string().optional().describe("Configuration Item (CI) in the CMDB that is affected."),
|
|
13
|
+
urgency: z.enum(['1', '2', '3', '4']).optional().describe("ServiceNow urgency levels - measure of business criticality"),
|
|
14
|
+
category: z.string().optional().describe("Category classification of the incident (e.g., 'Network', 'Hardware', 'Software', 'Database')."),
|
|
15
|
+
comments: z.string().optional().describe("Additional comments about the incident, visible to end users."),
|
|
16
|
+
location: z.string().optional().describe("Location of the caller or affected service."),
|
|
17
|
+
priority: z.enum(['1', '2', '3', '4', '5']).optional().describe("ServiceNow priority levels"),
|
|
18
|
+
callerId: z.string().optional().describe("Person who reported or is affected by the incident. Can be a user sys_id or display value depending on sysparm_input_display_value setting."),
|
|
19
|
+
workNotes: z.string().optional().describe("Internal work notes about the incident, not visible to end users."),
|
|
20
|
+
assignedTo: z.string().optional().describe("Person primarily responsible for working this incident. Can be a user sys_id or display value."),
|
|
21
|
+
description: z.string().optional().describe("Detailed description of the incident, including symptoms, steps to reproduce, and any relevant context."),
|
|
22
|
+
subcategory: z.string().optional().describe("Subcategory within the main category (e.g., 'Firewall' under 'Network')."),
|
|
23
|
+
contactType: z.string().optional().describe("Method of contact used to report the incident (e.g., 'Phone', 'Email', 'Self-service', 'Chat')."),
|
|
24
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response (e.g., 'number,sys_id,short_description,state'). Invalid fields are ignored. If not specified, all fields are returned."),
|
|
25
|
+
assignmentGroup: z.string().optional().describe("Group assigned to handle the incident. Can be a group sys_id or display value."),
|
|
26
|
+
businessService: z.string().optional().describe("Business service affected by the incident."),
|
|
27
|
+
shortDescription: z.string().describe("Brief summary of the incident. This field is required for most incident records."),
|
|
28
|
+
sysparmDisplayValue: z.enum(['true', 'false', 'all']).optional().describe("Determines the type of data returned in the response. 'false': Returns actual database values (sys_ids for references, numeric values for choices). 'true': Returns display values (names for references, text labels for choices). 'all': Returns both display and actual values."),
|
|
29
|
+
sysparmInputDisplayValue: z.boolean().optional().describe("Set to true if providing display values (e.g., user names, group names) instead of sys_ids in caller_id, assigned_to, assignment_group, or other reference fields. When false (default), reference fields must contain sys_ids."),
|
|
30
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response. This is recommended for cleaner responses."),
|
|
31
|
+
company: z.string().optional().describe("Sys_id of the company associated with this incident."),
|
|
32
|
+
watchList: z.string().optional().describe("Comma-separated list of user sys_ids who should receive notifications about this incident."),
|
|
33
|
+
}),
|
|
34
|
+
execute: async ({ servicenowCredentials, state, active, impact, cmdbCi, urgency, category, comments, location, priority, callerId, workNotes, assignedTo, description, subcategory, contactType, sysparmFields, assignmentGroup, businessService, shortDescription, sysparmDisplayValue, sysparmInputDisplayValue, sysparmExcludeReferenceLink, company, watchList }) => {
|
|
35
|
+
return snRequest(servicenowCredentials, '/api/now/table/incident', {
|
|
36
|
+
method: 'POST',
|
|
37
|
+
query: {
|
|
38
|
+
sysparm_fields: sysparmFields,
|
|
39
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
40
|
+
sysparm_input_display_value: sysparmInputDisplayValue,
|
|
41
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
42
|
+
},
|
|
43
|
+
body: toServerKeys({
|
|
44
|
+
state,
|
|
45
|
+
active,
|
|
46
|
+
impact,
|
|
47
|
+
cmdbCi,
|
|
48
|
+
urgency,
|
|
49
|
+
category,
|
|
50
|
+
comments,
|
|
51
|
+
location,
|
|
52
|
+
priority,
|
|
53
|
+
callerId,
|
|
54
|
+
workNotes,
|
|
55
|
+
assignedTo,
|
|
56
|
+
description,
|
|
57
|
+
subcategory,
|
|
58
|
+
contactType,
|
|
59
|
+
assignmentGroup,
|
|
60
|
+
businessService,
|
|
61
|
+
shortDescription,
|
|
62
|
+
company,
|
|
63
|
+
watchList,
|
|
64
|
+
}),
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
export const getIncidentList = tool({
|
|
69
|
+
description: "Retrieves incidents from the ServiceNow incident table using the Table API. Use this action when you need to query and fetch incidents with optional filtering via sysparm_query, pagination via sysparm_limit and sysparm_offset, and field selection via sysparm_fields.",
|
|
70
|
+
inputSchema: z.object({
|
|
71
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
72
|
+
sysparmLimit: z.number().optional().describe("Maximum number of incident records to return. Use pagination for larger result sets."),
|
|
73
|
+
sysparmQuery: z.string().optional().describe("Encoded query to filter incidents. Syntax: <col_name><operator><value>. Operators: '=' (exact match), '!=' (not equal), '^' (AND), '^OR' (OR), LIKE, STARTSWITH, ENDSWITH. Example: state=2^priority=1 (active critical incidents)"),
|
|
74
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,number,state,priority,short_description'"),
|
|
75
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to paginate through results."),
|
|
76
|
+
sysparmDisplayValue: z.boolean().optional().describe("Determines if system references should be returned as actual values (false) or display values (true)."),
|
|
77
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Determines whether to exclude reference links from the response. Set to true to simplify the response."),
|
|
78
|
+
}),
|
|
79
|
+
execute: async ({ servicenowCredentials, sysparmLimit, sysparmQuery, sysparmFields, sysparmOffset, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
80
|
+
return snRequest(servicenowCredentials, '/api/now/table/incident', {
|
|
81
|
+
method: 'GET',
|
|
82
|
+
query: {
|
|
83
|
+
sysparm_limit: sysparmLimit,
|
|
84
|
+
sysparm_query: sysparmQuery,
|
|
85
|
+
sysparm_fields: sysparmFields,
|
|
86
|
+
sysparm_offset: sysparmOffset,
|
|
87
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
88
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
export const getIncident = tool({
|
|
94
|
+
description: "Retrieves a specific incident from ServiceNow by its sys_id. Use this action when you need to fetch detailed information about a particular incident, including its state, priority, caller, assignment details, and resolution information. This is a read-only operation that does not modify any data in ServiceNow.",
|
|
95
|
+
inputSchema: z.object({
|
|
96
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
97
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the incident to retrieve. This is a 32-character hexadecimal string that uniquely identifies the incident record. Example: '46b66a40a9fe198101f243dfbc79033d'"),
|
|
98
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. If not specified, all fields are returned."),
|
|
99
|
+
sysparmDisplayValue: z.boolean().optional().describe("Determines whether to return actual database values (false) or display values (true) for reference fields."),
|
|
100
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Determines whether reference links should be excluded from the response. Set to true to exclude reference links."),
|
|
101
|
+
sysparmView: z.enum(['desktop', 'mobile', 'both']).optional().describe("UI view for which to render the data. Determines the fields returned in the response."),
|
|
102
|
+
sysparmQueryCategory: z.string().optional().describe("Name of the category to use for queries."),
|
|
103
|
+
}),
|
|
104
|
+
execute: async ({ servicenowCredentials, sysId, sysparmFields, sysparmDisplayValue, sysparmExcludeReferenceLink, sysparmView, sysparmQueryCategory }) => {
|
|
105
|
+
return snRequest(servicenowCredentials, `/api/now/table/incident/${encodeURIComponent(sysId)}`, {
|
|
106
|
+
method: 'GET',
|
|
107
|
+
query: {
|
|
108
|
+
sysparm_fields: sysparmFields,
|
|
109
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
110
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
111
|
+
sysparm_view: sysparmView,
|
|
112
|
+
sysparm_query_category: sysparmQueryCategory,
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
export const updateIncident = tool({
|
|
118
|
+
description: "Updates an existing incident in ServiceNow identified by its sys_id using the Table API. Use this action when you need to modify an existing incident, such as updating its state, changing assignments, adding notes, updating priority, or resolving/closing the incident. Only the fields provided in the request will be updated; all other fields retain their current values. Note: This action performs a PUT (replace) operation. Only include the fields you want to update. This is a destructive operation in that it modifies data, but the changes can be reverted by calling this action again with corrected values.",
|
|
119
|
+
inputSchema: z.object({
|
|
120
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
121
|
+
state: z.string().optional().describe("Current state of the incident. Common values: '1'=New, '2'=In Progress, '3'=On Hold, '4'=Resolved, '5'=Closed, '6'=Cancelled. Use the numeric string value corresponding to the desired state."),
|
|
122
|
+
active: z.string().optional().describe("Boolean indicating whether the incident is active. Set to 'true' to activate or 'false' to deactivate."),
|
|
123
|
+
impact: z.string().optional().describe("Impact level of the incident (business criticality). Typical values: '1'=High, '2'=Medium, '3'=Low. Use the numeric string value corresponding to the impact level."),
|
|
124
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the incident to update. This is a 32-character hexadecimal string that uniquely identifies the incident. Example: '1c832706732023002728660c4cf6a7b9'"),
|
|
125
|
+
cmdbCi: z.string().optional().describe("The sys_id of the Configuration Item (CI) associated with the incident. Reference to cmdb_ci table. Example: 'f9e9c33dc61122760072455df62663d2'"),
|
|
126
|
+
urgency: z.string().optional().describe("Urgency level of the incident (business criticality based on business needs). Typical values: '1'=High, '2'=Medium, '3'=Low. Use the numeric string value corresponding to the urgency level."),
|
|
127
|
+
category: z.string().optional().describe("Category or classification of the incident. Examples: 'network', 'hardware', 'software', 'database'. Values must match valid categories defined in your ServiceNow instance."),
|
|
128
|
+
comments: z.string().optional().describe("Additional comments or notes on the incident (visible to end users). Example: 'Updated user on status of the incident'"),
|
|
129
|
+
dueDate: z.string().optional().describe("Expected resolution date/time from assigned user. Format: ISO 8601 datetime string or YYYY-MM-DD HH:MM:SS. Example: '2024-12-01 17:00:00'"),
|
|
130
|
+
location: z.string().optional().describe("The sys_id of the location where the caller or service is located. Reference to cmn_location table. Example: 'abcdef1234567890abcdef1234567890'"),
|
|
131
|
+
madeSla: z.string().optional().describe("Boolean indicating whether the SLA was met (true/false as string). Example: 'true'"),
|
|
132
|
+
priority: z.string().optional().describe("Priority level of the incident. Typical values: '1'=Critical, '2'=High, '3'=Medium, '4'=Low, '5'=Planning. Use the numeric string value corresponding to the priority."),
|
|
133
|
+
callerId: z.string().optional().describe("The sys_id of the person who reported the incident. Reference to sys_user table. Example: '681ccaf9c0a8016400b98a4e52c54f82'"),
|
|
134
|
+
closedAt: z.string().optional().describe("Timestamp when the incident was closed. Format: ISO 8601 datetime string or YYYY-MM-DD HH:MM:SS. Example: '2024-12-01 15:00:00'"),
|
|
135
|
+
closedBy: z.string().optional().describe("The sys_id of the user who closed the incident. Reference to sys_user table. Example: '681ccaf9c0a8016400b98a4e52c54f82'"),
|
|
136
|
+
knowledge: z.string().optional().describe("Boolean indicating whether the incident is linked to a knowledge base article (true/false as string). Example: 'false'"),
|
|
137
|
+
closeCode: z.string().optional().describe("Resolution code when closing the incident. Stock examples: 'Duplicate', 'Resolved by change', 'Workaround provided', 'Solution provided'. Values must match valid close codes defined in your ServiceNow instance."),
|
|
138
|
+
escalation: z.string().optional().describe("Escalation status of the incident. Typical values: 'normal', 'escalated'. Values must match valid escalation values defined in your ServiceNow instance."),
|
|
139
|
+
problemId: z.string().optional().describe("Sys_id of the related problem record, if one exists. Reference to problem table. Example: 'c9e9c33dc61122760072455df62663d2'"),
|
|
140
|
+
workNotes: z.string().optional().describe("Internal work notes on the incident (not visible to end users). Example: 'Checked logs and found service restart resolved the issue'"),
|
|
141
|
+
assignedTo: z.string().optional().describe("The sys_id of the user assigned to work on the incident. Reference to sys_user table. Example: '681ccaf9c0a8016400b98a4e52c54f82'"),
|
|
142
|
+
closeNotes: z.string().optional().describe("Notes added when closing the incident. Example: 'Issue resolved by restarting the email service'"),
|
|
143
|
+
description: z.string().optional().describe("Detailed description of the incident. Example: 'User unable to access email after password reset'"),
|
|
144
|
+
holdReason: z.string().optional().describe("Reason the incident is on hold. Example: 'Waiting for user feedback'"),
|
|
145
|
+
resolvedAt: z.string().optional().describe("Timestamp when the incident was resolved. Format: ISO 8601 datetime string or YYYY-MM-DD HH:MM:SS. Example: '2024-12-01 14:30:00'"),
|
|
146
|
+
resolvedBy: z.string().optional().describe("The sys_id of the user who resolved the incident. Reference to sys_user table. Example: '681ccaf9c0a8016400b98a4e52c54f82'"),
|
|
147
|
+
subcategory: z.string().optional().describe("Subcategory of the incident. Must correspond to a valid subcategory for the selected category. Example: 'email' under 'software'"),
|
|
148
|
+
uponReject: z.string().optional().describe("Action to take upon rejection. Example: 'cancel'"),
|
|
149
|
+
contactType: z.string().optional().describe("Method by which the incident was reported. Examples: 'phone', 'email', 'self-service', 'walk-in'. Values must match valid contact types defined in your ServiceNow instance."),
|
|
150
|
+
uponApproval: z.string().optional().describe("Action to take upon approval. Example: 'proceed'"),
|
|
151
|
+
correlationId: z.string().optional().describe("Correlation ID for linking related incidents or external references. Example: 'EXT-12345'"),
|
|
152
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response (e.g., 'number,short_description,state'). Invalid fields are ignored. If not specified, all fields are returned."),
|
|
153
|
+
parentIncident: z.string().optional().describe("Sys_id of the parent incident (can be used to collect incidents for the same root issue). Reference to incident table. Example: 'a9e9c33dc61122760072455df62663d2'"),
|
|
154
|
+
assignmentGroup: z.string().optional().describe("The sys_id of the group assigned to the incident. Reference to sys_user_group table. Example: '287e8906c61122730024e53cf3104b26'"),
|
|
155
|
+
businessService: z.string().optional().describe("The sys_id of the business service affected by the incident. Reference to service_offering or business service table. Example: 'b1e9c33dc61122760072455df62663d2'"),
|
|
156
|
+
shortDescription: z.string().optional().describe("Brief summary or title of the incident. Example: 'Cannot access email system'"),
|
|
157
|
+
correlationDisplay: z.string().optional().describe("Display text for the correlation ID. Example: 'External Ticket #12345'"),
|
|
158
|
+
sysparmDisplayValue: z.boolean().optional().describe("Determines the type of data returned in the response. false: Returns actual database values (sys_ids for references, numeric values for choices). true: Returns display values (names for references, text labels for choices). all: Returns both display and actual values."),
|
|
159
|
+
sysparmInputDisplayValue: z.boolean().optional().describe("Set to true if providing display values (e.g., user names) instead of sys_ids in request fields. When false (default), reference fields must contain sys_ids."),
|
|
160
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response. Recommended to set to true to reduce response size."),
|
|
161
|
+
sysparmView: z.enum(['desktop', 'mobile', 'both']).optional().describe("UI view options for ServiceNow API"),
|
|
162
|
+
}),
|
|
163
|
+
execute: async ({ servicenowCredentials, state, active, impact, sysId, cmdbCi, urgency, category, comments, dueDate, location, madeSla, priority, callerId, closedAt, closedBy, knowledge, closeCode, escalation, problemId, workNotes, assignedTo, closeNotes, description, holdReason, resolvedAt, resolvedBy, subcategory, uponReject, contactType, uponApproval, correlationId, sysparmFields, parentIncident, assignmentGroup, businessService, shortDescription, correlationDisplay, sysparmDisplayValue, sysparmInputDisplayValue, sysparmExcludeReferenceLink, sysparmView }) => {
|
|
164
|
+
const body = toServerKeys({
|
|
165
|
+
state,
|
|
166
|
+
active,
|
|
167
|
+
impact,
|
|
168
|
+
cmdbCi,
|
|
169
|
+
urgency,
|
|
170
|
+
category,
|
|
171
|
+
comments,
|
|
172
|
+
dueDate,
|
|
173
|
+
location,
|
|
174
|
+
madeSla,
|
|
175
|
+
priority,
|
|
176
|
+
callerId,
|
|
177
|
+
closedAt,
|
|
178
|
+
closedBy,
|
|
179
|
+
knowledge,
|
|
180
|
+
closeCode,
|
|
181
|
+
escalation,
|
|
182
|
+
problemId,
|
|
183
|
+
workNotes,
|
|
184
|
+
assignedTo,
|
|
185
|
+
closeNotes,
|
|
186
|
+
description,
|
|
187
|
+
holdReason,
|
|
188
|
+
resolvedAt,
|
|
189
|
+
resolvedBy,
|
|
190
|
+
subcategory,
|
|
191
|
+
uponReject,
|
|
192
|
+
contactType,
|
|
193
|
+
uponApproval,
|
|
194
|
+
correlationId,
|
|
195
|
+
parentIncident,
|
|
196
|
+
assignmentGroup,
|
|
197
|
+
businessService,
|
|
198
|
+
shortDescription,
|
|
199
|
+
correlationDisplay,
|
|
200
|
+
});
|
|
201
|
+
return snRequest(servicenowCredentials, `/api/now/table/incident/${encodeURIComponent(sysId)}`, {
|
|
202
|
+
method: 'PUT',
|
|
203
|
+
query: {
|
|
204
|
+
sysparm_fields: sysparmFields,
|
|
205
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
206
|
+
sysparm_input_display_value: sysparmInputDisplayValue,
|
|
207
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
208
|
+
sysparm_view: sysparmView,
|
|
209
|
+
},
|
|
210
|
+
...(Object.keys(body).length > 0 ? { body } : {}),
|
|
211
|
+
});
|
|
212
|
+
},
|
|
213
|
+
});
|
|
214
|
+
export const deleteIncident = tool({
|
|
215
|
+
description: "Permanently deletes a specific incident from ServiceNow using its sys_id. This is a destructive, irreversible operation — the incident cannot be recovered once deleted. Requires the user to have delete permissions for the incident table. If the incident doesn't exist or the user lacks permissions, an error will be returned. Use this action when you need to remove a specific incident record and know its sys_id.",
|
|
216
|
+
inputSchema: z.object({
|
|
217
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
218
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the incident to delete. This is a 32-character hexadecimal string that uniquely identifies the incident record. Example: '46b66a40a9fe198101f243dfbc79033d'. The incident must exist, or a 404 error will be returned."),
|
|
219
|
+
}),
|
|
220
|
+
execute: async ({ servicenowCredentials, sysId }) => {
|
|
221
|
+
return snRequest(servicenowCredentials, `/api/now/table/incident/${encodeURIComponent(sysId)}`, {
|
|
222
|
+
method: 'DELETE',
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
});
|
|
226
|
+
//# sourceMappingURL=incidents.js.map
|