@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,298 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { snRequest, toServerKeys } from './client.js';
|
|
5
|
+
export const createInteraction = tool({
|
|
6
|
+
description: "Creates a new interaction record in ServiceNow that can be linked to records in other tables (e.g., incidents, problems, cases). Use this action when you need to log or create an interaction between a customer and service desk, such as recording a phone call, chat session, email exchange, or API-initiated interaction that should be tracked and associated with a specific table record. The interaction is created in the 'interaction' table (com.glide.interaction) and linked to the specified table_name record. If no table_name record exists yet, the interaction can still be created standalone.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
9
|
+
state: z.string().optional().describe("Current state of the interaction (e.g., 'open', 'in_progress', 'closed', 'pending')."),
|
|
10
|
+
channel: z.enum(['api', 'phone', 'email', 'chat', 'portal', 'mobile', 'self_service']).optional().describe("The channel through which the interaction was initiated. Defaults to 'api' if not specified."),
|
|
11
|
+
message: z.string().describe("The main message or content of the interaction. This is a required field."),
|
|
12
|
+
priority: z.string().optional().describe("Priority level of the interaction (e.g., '1' for critical, '2' for high, '3' for normal, '4' for low)."),
|
|
13
|
+
callerId: z.string().optional().describe("sys_id of the user who initiated the interaction. If not provided, the interaction will be created with the authenticated user's information."),
|
|
14
|
+
tableName: z.string().describe("The name of the table to link the interaction to (e.g., 'incident', 'problem', 'task', 'sn_customerservice_case'). This determines what record type the interaction is associated with."),
|
|
15
|
+
assignedTo: z.string().optional().describe("sys_id of the user to assign the interaction to."),
|
|
16
|
+
assignmentGroup: z.string().optional().describe("sys_id of the group to assign the interaction to."),
|
|
17
|
+
shortDescription: z.string().describe("A brief summary or title describing the interaction. This is a required field."),
|
|
18
|
+
}),
|
|
19
|
+
execute: async ({ servicenowCredentials, state, channel, message, priority, callerId, tableName, assignedTo, assignmentGroup, shortDescription }) => {
|
|
20
|
+
return snRequest(servicenowCredentials, '/api/now/interaction', {
|
|
21
|
+
method: 'POST',
|
|
22
|
+
body: toServerKeys({ state, channel, message, priority, callerId, contextTable: tableName, assignedTo, assignmentGroup, shortDescription }),
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
export const closeInteraction = tool({
|
|
27
|
+
description: "Closes an existing interaction record in ServiceNow by changing its state to closed. Use this action when you need to close or finalize an interaction that has been completed or resolved. This action changes the state of the interaction record to indicate that it is no longer active. Note: The interaction must be in a state that allows closing (e.g., not already closed). This action is typically used after an interaction has been handled and resolved. The body of the POST request can optionally include fields like 'state', 'opened_for', 'resolution_code', and 'resolution_notes' to provide additional context about the closure.",
|
|
28
|
+
inputSchema: z.object({
|
|
29
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
30
|
+
state: z.string().optional().describe("The state to set for the interaction when closing. Typically this would be a closed state value (e.g., 'closed', 'resolved'). If not provided, the default closed state from the system will be used."),
|
|
31
|
+
openedFor: z.string().optional().describe("The sys_id of the user or entity for whom the interaction was originally opened. This field is used to track and attribute the interaction. Example: '681ccaf9c0a8016400b98fa0d0232157'"),
|
|
32
|
+
interactionId: z.string().describe("The unique system ID (sys_id) of the interaction record to close. This is a 32-character hexadecimal string that uniquely identifies the interaction record. Example: '87e3c4fa837bf210dd2dc2dfeeaad397'"),
|
|
33
|
+
resolutionCode: z.string().optional().describe("Code indicating how the interaction was resolved. Common values include: 'resolved', 'escalated', 'transferred', 'cancelled'. This helps categorize the closure reason."),
|
|
34
|
+
resolutionNotes: z.string().optional().describe("Notes documenting the resolution of the interaction. This field is used to provide details about how the interaction was handled and closed."),
|
|
35
|
+
}),
|
|
36
|
+
execute: async ({ servicenowCredentials, state, openedFor, interactionId, resolutionCode, resolutionNotes }) => {
|
|
37
|
+
return snRequest(servicenowCredentials, `/api/now/interaction/${encodeURIComponent(interactionId)}`, {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
body: toServerKeys({ state, openedFor, resolutionCode, resolutionNotes }),
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
export const updateOpenframeVoiceInteraction = tool({
|
|
44
|
+
description: "Updates an existing voice interaction record in ServiceNow OpenFrame. Use this action when you need to modify an existing voice interaction record, such as updating its status, changing assignment, adding notes, or resolving the interaction. This action sends a PATCH request to the OpenFrame voice-interaction API, allowing partial updates of the record fields. Note: Only include the fields you want to update in the request. Fields not included will retain their current values.",
|
|
45
|
+
inputSchema: z.object({
|
|
46
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
47
|
+
notes: z.string().optional().describe("Internal notes or comments about the voice interaction."),
|
|
48
|
+
state: z.string().optional().describe("Current state or status of the voice interaction (e.g., 'open', 'in_progress', 'closed')."),
|
|
49
|
+
priority: z.string().optional().describe("Priority level of the voice interaction (e.g., '1' for critical, '2' for high, '3' for normal, '4' for low)."),
|
|
50
|
+
callerId: z.string().optional().describe("sys_id of the user who initiated the voice interaction."),
|
|
51
|
+
assignedTo: z.string().optional().describe("sys_id of the user assigned to handle the voice interaction."),
|
|
52
|
+
description: z.string().optional().describe("Detailed description of the voice interaction."),
|
|
53
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response (e.g., 'number,short_description,state')."),
|
|
54
|
+
resolutionCode: z.string().optional().describe("Code indicating how the interaction was resolved (e.g., 'resolved', 'escalated', 'transferred')."),
|
|
55
|
+
assignmentGroup: z.string().optional().describe("sys_id of the group assigned to handle the voice interaction."),
|
|
56
|
+
resolutionNotes: z.string().optional().describe("Notes documenting the resolution of the voice interaction."),
|
|
57
|
+
shortDescription: z.string().optional().describe("A brief summary or title describing the voice interaction."),
|
|
58
|
+
interactionSysId: z.string().describe("The unique system ID (sys_id) of the voice interaction record to update. This is a path parameter."),
|
|
59
|
+
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."),
|
|
60
|
+
sysparmInputDisplayValue: z.boolean().optional().describe("Set to true if providing display values instead of sys_ids for reference fields."),
|
|
61
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
62
|
+
}),
|
|
63
|
+
execute: async ({ servicenowCredentials, notes, state, priority, callerId, assignedTo, description, sysparmFields, resolutionCode, assignmentGroup, resolutionNotes, shortDescription, interactionSysId, sysparmDisplayValue, sysparmInputDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
64
|
+
return snRequest(servicenowCredentials, `/api/now/openframe/voice-interaction/${encodeURIComponent(interactionSysId)}`, {
|
|
65
|
+
method: 'PUT',
|
|
66
|
+
query: {
|
|
67
|
+
sysparm_fields: sysparmFields,
|
|
68
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
69
|
+
sysparm_input_display_value: sysparmInputDisplayValue,
|
|
70
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
71
|
+
},
|
|
72
|
+
body: { interaction: toServerKeys({ state, notes, priority, callerId, assignedTo, description, resolutionCode, assignmentGroup, resolutionNotes, shortDescription }) },
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
export const dropConversationMember = tool({
|
|
77
|
+
description: "Drops an agent from a conversation in ServiceNow using the Conversation Member API. Use this action when you need to remove an agent or user from an active conversation. This operation requires the wa_integration_user role. The member will be immediately removed from the conversation and will no longer receive messages or events for it. This action is irreversible — once a member is dropped from a conversation, they cannot be automatically restored through this API and would need to be re-added manually.",
|
|
78
|
+
inputSchema: z.object({
|
|
79
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
80
|
+
userId: z.string().describe("The unique identifier of the user/agent to drop from the conversation. This is a path parameter that identifies the conversation member to remove. The user must be currently assigned to a conversation for this operation to succeed."),
|
|
81
|
+
conversationId: z.string().optional().describe("The sys_id of the conversation to drop the member from. If not provided, the API will attempt to drop the member from the default conversation. This is recommended if the user is a member of multiple conversations."),
|
|
82
|
+
}),
|
|
83
|
+
execute: async ({ servicenowCredentials, userId, conversationId }) => {
|
|
84
|
+
return snRequest(servicenowCredentials, `/api/now/conversation/member/${encodeURIComponent(userId)}/drop`, {
|
|
85
|
+
method: 'PUT',
|
|
86
|
+
body: { interaction_id: conversationId },
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
export const registerPushInstallation = tool({
|
|
91
|
+
description: "Registers or updates a device token for receiving push notifications through ServiceNow. Use this action when you need to register a mobile device token with ServiceNow's push notification system, enabling the device to receive push notifications from ServiceNow mobile apps. The action creates a new push installation or updates an existing one if the same token already exists for the specified push application. Common use cases: - Registering iOS devices for APNS push notifications - Registering Android devices for FCM push notifications - Updating existing device tokens when they change (token refresh) - Linking devices to specific ServiceNow users This action modifies the ServiceNow push notification registry — registered devices will be eligible to receive push notifications from ServiceNow.",
|
|
92
|
+
inputSchema: z.object({
|
|
93
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
94
|
+
token: z.string().describe("The device token obtained from Apple Push Notification Service (APNS) for iOS devices or Firebase Cloud Messaging (FCM) for Android devices. This token identifies the device to receive push notifications."),
|
|
95
|
+
userId: z.string().optional().describe("The sys_id of the ServiceNow user associated with this device token. This links the device to a specific user for user-specific push notifications."),
|
|
96
|
+
platform: z.enum(['Apple', 'Android']).describe("The mobile platform for the device token. Use 'Apple' for iOS devices (APNS) or 'Android' for Android devices (FCM)."),
|
|
97
|
+
deviceType: z.string().optional().describe("The type of the mobile device (e.g., 'phone', 'tablet'). This field is optional and helps categorize devices for targeted notifications."),
|
|
98
|
+
subscriptionId: z.string().optional().describe("A unique identifier for the subscription. If not provided, a new subscription will be created or an existing one with the same token will be updated."),
|
|
99
|
+
pushApplicationName: z.string().describe("The name of the push application in ServiceNow (e.g., 'SkyNowPushApp'). This corresponds to the push application record configured in ServiceNow for handling push notifications to mobile devices."),
|
|
100
|
+
}),
|
|
101
|
+
execute: async ({ servicenowCredentials, token, userId, platform, deviceType, subscriptionId, pushApplicationName }) => {
|
|
102
|
+
return snRequest(servicenowCredentials, `/api/now/push/${encodeURIComponent(pushApplicationName)}/installation`, {
|
|
103
|
+
method: 'POST',
|
|
104
|
+
body: toServerKeys({ platform, token, userId, deviceType, subscriptionId }),
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
export const removePushInstallation = tool({
|
|
109
|
+
description: "Deactivates a mobile device installation from receiving push notifications using the ServiceNow Push Installation API. Use this action when you need to remove a mobile device's ability to receive push notifications from a ServiceNow push application. This effectively deactivates the device token that enables communication between ServiceNow and the mobile app on the specified device. This is commonly used when: - A user uninstalls the mobile app from their device - A device needs to be unregistered from push notifications - Managing device registrations for push notification campaigns Note: This action only deactivates the device token - it does not delete any data from ServiceNow.",
|
|
110
|
+
inputSchema: z.object({
|
|
111
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
112
|
+
token: z.string().describe("The unique device token that identifies the mobile device installation to remove. This token is assigned to a device when it registers with ServiceNow for push notifications. Deactivating this token will prevent the device from receiving push notifications from this application. Example: 'fcm_token_abc123' or 'apns_token_xyz789'"),
|
|
113
|
+
platform: z.enum(['Apple', 'Android']).describe("The mobile platform for the device token. Use 'Apple' for iOS devices (APNS) or 'Android' for Android devices (FCM)."),
|
|
114
|
+
pushApplicationName: z.string().describe("The name of the push application whose device installation should be removed/deactivated. This is a path parameter in the URL, not a body parameter. The push application name identifies the mobile app configuration in ServiceNow. Example: 'ServiceNowPushApp' or 'snc_mobile_app'."),
|
|
115
|
+
}),
|
|
116
|
+
execute: async ({ servicenowCredentials, token, platform, pushApplicationName }) => {
|
|
117
|
+
return snRequest(servicenowCredentials, `/api/now/push/${encodeURIComponent(pushApplicationName)}/removeInstallation`, {
|
|
118
|
+
method: 'POST',
|
|
119
|
+
body: toServerKeys({ platform, token }),
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
export const getActivitySubActivities = tool({
|
|
124
|
+
description: "Retrieves activity records from the ServiceNow ActivitySubscription API. Use this action when you need to fetch activity/change history records from ServiceNow subscriptions. This API returns activities such as record creations, updates, comments, and other events from subscribed tables. The default stream returns all available activity records. Results can be paginated using the sysparm_limit and sysparm_offset parameters.",
|
|
125
|
+
inputSchema: z.object({
|
|
126
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
127
|
+
stream: z.string().optional().describe("The type of activity stream to retrieve. Default value is 'activities' which returns all activity records. Other values may include specific activity types supported by the subscription API."),
|
|
128
|
+
sysparmLimit: z.number().optional().describe("Maximum number of activity records to return. Use pagination parameters to retrieve additional records if the limit is exceeded."),
|
|
129
|
+
sysparmOffset: z.number().optional().describe("Starting record index for which to begin retrieving activities. Use this value to paginate through activity records by incrementing by the limit value."),
|
|
130
|
+
}),
|
|
131
|
+
execute: async ({ servicenowCredentials, stream, sysparmLimit, sysparmOffset }) => {
|
|
132
|
+
return snRequest(servicenowCredentials, '/api/now/actsub/activities', {
|
|
133
|
+
method: 'GET',
|
|
134
|
+
query: { stream, sysparm_limit: sysparmLimit, sysparm_offset: sysparmOffset },
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
export const getActivitySubFacets = tool({
|
|
139
|
+
description: "Retrieves facets configured for an activity context in ServiceNow. Use this action when you need to discover available filterable attributes or metadata for activity subscriptions. Facets represent the different dimensions along which activity data can be filtered or grouped. This is a read-only operation that queries the Activity Subscriptions API to return facet configuration information for the specified context.",
|
|
140
|
+
inputSchema: z.object({
|
|
141
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
142
|
+
activityContext: z.string().describe("The type of activity context for which to retrieve facets. Common values include 'table' for table-level subscriptions, 'record' for specific record subscriptions, or other activity context types defined in the ServiceNow instance."),
|
|
143
|
+
contextInstance: z.string().describe("The specific instance identifier for the activity context. For 'table' context, this would be the table name (e.g., 'incident', 'task'). For 'record' context, this would be the sys_id of the specific record."),
|
|
144
|
+
}),
|
|
145
|
+
execute: async ({ servicenowCredentials, activityContext, contextInstance }) => {
|
|
146
|
+
return snRequest(servicenowCredentials, `/api/now/actsub/facets/${encodeURIComponent(activityContext)}/${encodeURIComponent(contextInstance)}`, {
|
|
147
|
+
method: 'GET',
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
export const predictSolution = tool({
|
|
152
|
+
description: "Predicts an output field value using a trained Agent Intelligence solution model. Use this action when you need to invoke a deployed Predictive Intelligence solution to predict an output field value based on input field data. This is typically used after the Predictive Intelligence plugin is activated and solutions have been trained and deployed — for example, to predict incident assignment, priority, urgency, category, or any other custom trained output field. The action requires the name of an existing, deployed solution and optionally accepts input field values that the model uses to generate the prediction. The response includes the predicted value along with a confidence score indicating the model's certainty.",
|
|
153
|
+
inputSchema: z.object({
|
|
154
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
155
|
+
inputFields: z.record(z.any()).optional().describe("A dictionary of input field names and their values to pass to the prediction model. The required fields depend on the solution's trained model — typically these are the input features the model was trained on (e.g., for an incident predictor: {'urgency': 'high', 'impact': 'medium', 'category': 'software'}). Leave empty or omit if the solution does not require input field values. Values can be strings, integers, floats, or booleans."),
|
|
156
|
+
solutionName: z.string().describe("The name of the Agent Intelligence solution to use for prediction. This is a required path parameter identifying the trained predictive model. Example: 'incident_assignment_predictor' or 'task_priority_model'."),
|
|
157
|
+
}),
|
|
158
|
+
execute: async ({ servicenowCredentials, inputFields, solutionName }) => {
|
|
159
|
+
return snRequest(servicenowCredentials, `/api/now/agent_intelligence/solution/${encodeURIComponent(solutionName)}/prediction`, {
|
|
160
|
+
method: 'GET',
|
|
161
|
+
query: { ...(inputFields ?? {}) },
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
export const listSolutionPredictions = tool({
|
|
166
|
+
description: "Retrieves a list of solution predictions from ServiceNow's Agent Intelligence engine. Use this action when you need to fetch predicted solutions for multiple records, such as retrieving AI-recommended solutions for incidents, problems, or change requests. The predictions include confidence scores, solution details, and relevance metrics to help resolve issues more efficiently. Supports filtering, pagination, and confidence thresholds. This action is useful for implementing AI-powered resolution suggestions, analyzing prediction patterns, or integrating Agent Intelligence insights into custom workflows.",
|
|
167
|
+
inputSchema: z.object({
|
|
168
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
169
|
+
sysparmLimit: z.number().optional().describe("Maximum number of solution predictions to return. Use pagination parameters to retrieve additional results if needed. Note: Large values may impact system performance."),
|
|
170
|
+
sysparmQuery: z.string().optional().describe("Encoded query to filter solution predictions. Syntax: <col_name><operator><value>. Supports operators: = (exact match), != (not equal), ^ (AND), ^OR (OR), LIKE (contains string), STARTSWITH, ENDSWITH. Example: category=password^confidence_score>=0.8"),
|
|
171
|
+
sysparmOffset: z.number().optional().describe("Starting record index for pagination. Use sysparm_offset + sysparm_limit to page through results. For example, first call with offset=0, next call with offset=sysparm_limit."),
|
|
172
|
+
predictionType: z.string().optional().describe("Type of predictions to retrieve. Common values: 'incident', 'problem', 'change', 'task'. If not specified, returns all prediction types."),
|
|
173
|
+
includeMetadata: z.boolean().optional().describe("Flag to include additional metadata in the response. Set to true to include extended prediction metadata."),
|
|
174
|
+
confidenceThreshold: z.number().optional().describe("Minimum confidence score threshold for returned predictions. Only predictions with confidence_score >= this value will be returned. Example: 0.8 returns only high-confidence predictions."),
|
|
175
|
+
}),
|
|
176
|
+
execute: async ({ servicenowCredentials, sysparmLimit, sysparmQuery, sysparmOffset, predictionType, includeMetadata, confidenceThreshold }) => {
|
|
177
|
+
return snRequest(servicenowCredentials, '/api/now/agent_intelligence/solution/prediction', {
|
|
178
|
+
method: 'GET',
|
|
179
|
+
query: {
|
|
180
|
+
prediction_type: predictionType,
|
|
181
|
+
confidence_threshold: confidenceThreshold,
|
|
182
|
+
include_metadata: includeMetadata,
|
|
183
|
+
sysparm_query: sysparmQuery,
|
|
184
|
+
sysparm_limit: sysparmLimit,
|
|
185
|
+
sysparm_offset: sysparmOffset,
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
export const getEmail = tool({
|
|
191
|
+
description: "Retrieves a specific email record from ServiceNow's Email [sys_email] table by its sys_id. Use this action when you need to fetch detailed information about a particular email message, including its subject, body content, sender, recipients, status, and timestamps. This is a read-only operation that does not modify any data in ServiceNow.",
|
|
192
|
+
inputSchema: z.object({
|
|
193
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
194
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the email record to retrieve. This is a 32-character hexadecimal string that uniquely identifies the email in the sys_email table. Example: '1228ed5283333210dd2dc2dfeeaad376'"),
|
|
195
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are ignored."),
|
|
196
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the type of data returned, either 'true' for display values or 'false' for actual values. Display values are manipulated based on user or system settings. Choice fields: Returns descriptive text instead of numeric values. Date fields: Returns formatted date based on user's time zone instead of UTC. Reference fields: Returns display field of referenced record instead of sys_id."),
|
|
197
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Flag that indicates whether to exclude Table API links for reference fields. Set to true to exclude links."),
|
|
198
|
+
}),
|
|
199
|
+
execute: async ({ servicenowCredentials, sysId, sysparmFields, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
200
|
+
return snRequest(servicenowCredentials, `/api/now/table/sys_email/${encodeURIComponent(sysId)}`, {
|
|
201
|
+
method: 'GET',
|
|
202
|
+
query: {
|
|
203
|
+
sysparm_fields: sysparmFields,
|
|
204
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
205
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
export const getUserRoleInheritance = tool({
|
|
211
|
+
description: "Retrieves the granted and inherited roles for a specified ServiceNow user using the Global User Role Inheritance API. Use this action when you need to audit a user's role assignments in ServiceNow, check what roles a user has (both directly granted and inherited through group membership), troubleshoot access issues, or verify compliance by reviewing role inheritance for a specific user account. The authenticated user must have the appropriate role (such as 'admin' or a role with user_role_inheritance API access) to query other users' role inheritance. If no user is specified, returns the role inheritance for the authenticated user.",
|
|
212
|
+
inputSchema: z.object({
|
|
213
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
214
|
+
sysId: z.string().optional().describe("The sys_id of the user whose role inheritance to retrieve. If not provided, returns the role inheritance for the authenticated user making the request. You must have the appropriate role (such as 'admin' or a role with user_role_inheritance API access) to query role inheritance for users other than yourself."),
|
|
215
|
+
userId: z.string().optional().describe("The user ID (user_name) of the user whose role inheritance to retrieve. This is the login name or user ID of the ServiceNow user. Either sys_id or user_id can be used to specify the user, but not both. If neither is provided, returns the role inheritance for the authenticated user."),
|
|
216
|
+
expandGroups: z.boolean().optional().describe("When set to true, returns additional details about the groups through which roles are inherited. When false (default), only role names and basic information are returned."),
|
|
217
|
+
}),
|
|
218
|
+
execute: async ({ servicenowCredentials, sysId, userId, expandGroups }) => {
|
|
219
|
+
return snRequest(servicenowCredentials, '/api/global/user_role_inheritance', {
|
|
220
|
+
method: 'GET',
|
|
221
|
+
query: { user_sysid: sysId ?? userId, expand_groups: expandGroups },
|
|
222
|
+
});
|
|
223
|
+
},
|
|
224
|
+
});
|
|
225
|
+
export const getPaScorecards = tool({
|
|
226
|
+
description: "Retrieves details about indicators from the Analytics Hub, including scorecard information for performance analytics. Use this action when you need to fetch performance analytics scorecards and their associated indicators, such as when drilling down into specific indicators or retrieving overall analytics hub data. When sysparm_uuid is provided, returns details for a specific indicator; otherwise returns all available scorecards. Supports optional inclusion of score values via sysparm_include_scores.",
|
|
227
|
+
inputSchema: z.object({
|
|
228
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
229
|
+
sysparmUuid: z.string().optional().describe("UUID of the indicator to retrieve. When provided, returns details for a specific indicator."),
|
|
230
|
+
sysparmIncludeScores: z.boolean().optional().describe("Flag that indicates whether to include score values in the response."),
|
|
231
|
+
}),
|
|
232
|
+
execute: async ({ servicenowCredentials, sysparmUuid, sysparmIncludeScores }) => {
|
|
233
|
+
return snRequest(servicenowCredentials, '/api/now/pa/scorecards', {
|
|
234
|
+
method: 'GET',
|
|
235
|
+
query: { sysparm_uuid: sysparmUuid, sysparm_include_scores: sysparmIncludeScores },
|
|
236
|
+
});
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
export const createServiceCategory = tool({
|
|
240
|
+
description: "Creates a new service category record in the ServiceNow TMF Service Catalog API. This action calls the POST /api/sn_tmf_api/catalogmanagement/serviceCategory endpoint to create a top-level or nested service category within the ServiceNow Service Catalog. Use this action when you need to organize items in the service catalog into categories, enabling better navigation and grouping of related catalog offerings. Use this action when you need to add a new category to the ServiceNow Service Catalog for organizing catalog items such as requested items, record producers, or other offerings. For root categories, set is_root=true. For subcategories, provide the parent_id of the existing parent category. If the category name already exists within the same parent scope, the API may return a conflict error.",
|
|
241
|
+
inputSchema: z.object({
|
|
242
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
243
|
+
name: z.string().describe("Name of the service category. This is a required field and should be a descriptive label for the category (e.g., 'Hardware Services', 'Software Requests'). Category names should be unique within the same parent scope."),
|
|
244
|
+
isRoot: z.boolean().optional().describe("Indicates whether this category is a root-level (top-level) category. Set to true to create a top-level category with no parent. Set to false (or omit) to create a subcategory under an existing parent. When true, parent_id should not be provided."),
|
|
245
|
+
parentId: z.string().optional().describe("The unique identifier of the parent service category. Required when creating a subcategory (is_root=false or omitted). Should be omitted or left empty when is_root=true. The parent category must exist, or the API will return an error."),
|
|
246
|
+
description: z.string().optional().describe("Detailed description of the service category explaining its purpose, scope, and what types of items it contains. Use this to provide additional context for users browsing the service catalog."),
|
|
247
|
+
}),
|
|
248
|
+
execute: async ({ servicenowCredentials, name, isRoot, parentId, description }) => {
|
|
249
|
+
return snRequest(servicenowCredentials, '/api/sn_tmf_api/catalogmanagement/serviceCategory', {
|
|
250
|
+
method: 'POST',
|
|
251
|
+
body: toServerKeys({ name, isRoot, parentId, description }),
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
export const getUser = tool({
|
|
256
|
+
description: "Retrieves a specific user record from ServiceNow using its sys_id. Use this action when you need to fetch detailed information about a particular user, such as their contact details, department, location, manager, or account status. This is a read-only operation that does not modify any data in ServiceNow.",
|
|
257
|
+
inputSchema: z.object({
|
|
258
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
259
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the user record to retrieve. This is a 32-character hexadecimal string that uniquely identifies the user in ServiceNow. Example: '02826bf03710200044e0bfc8bcbe5d3f'"),
|
|
260
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid fields are ignored."),
|
|
261
|
+
sysparmDisplayValue: z.boolean().optional().describe("Determines the type of data returned, either the actual values from the database or the display values of the fields. Display values are manipulated based on the actual value in the database and user or system settings and preferences. If returning display values, the value that is returned is dependent on the field type. Choice fields: The database value may be a number, but the display value will be more descriptive. Date fields: The database value is in UTC format, while the display value is based on the user's time zone. Encrypted text: The database value is encrypted, while the displayed value is unencrypted based on the user's encryption context. Reference fields: The database value is sys_id, but the display value is a display field of the referenced record."),
|
|
262
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Flag that indicates whether to exclude Table API links for reference fields."),
|
|
263
|
+
}),
|
|
264
|
+
execute: async ({ servicenowCredentials, sysId, sysparmFields, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
265
|
+
return snRequest(servicenowCredentials, `/api/now/table/sys_user/${encodeURIComponent(sysId)}`, {
|
|
266
|
+
method: 'GET',
|
|
267
|
+
query: {
|
|
268
|
+
sysparm_fields: sysparmFields,
|
|
269
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
270
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
export const listUsers = tool({
|
|
276
|
+
description: "Retrieves multiple user records from the ServiceNow sys_user table with optional filtering and pagination. Use this action when you need to query and fetch a list of users from ServiceNow, such as finding active users, users by department, or users matching specific criteria. Supports filtering via sysparm_query, field selection, pagination via sysparm_limit and sysparm_offset, and display value options. This is a read-only operation that does not modify any data.",
|
|
277
|
+
inputSchema: z.object({
|
|
278
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
279
|
+
sysparmLimit: z.number().optional().describe("Maximum number of user records to return. Use pagination (sysparm_offset) for result sets larger than this limit."),
|
|
280
|
+
sysparmQuery: z.string().optional().describe("Encoded query used to filter the result set. Syntax: sysparm_query=<col_name><operator><value>. Operators: '=' (exact match), '!=' (not equal), '^' (AND), '^OR' (OR), LIKE, STARTSWITH, ENDSWITH. Example: active=true^emailLIKEsomething.com"),
|
|
281
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,user_name,first_name,last_name,email,active'"),
|
|
282
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Use with sysparm_limit to paginate through results."),
|
|
283
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values in the response. 'false': Returns actual database values (sys_ids for references). 'true': Returns display values (names for references). 'all': Returns both display and actual values."),
|
|
284
|
+
}),
|
|
285
|
+
execute: async ({ servicenowCredentials, sysparmLimit, sysparmQuery, sysparmFields, sysparmOffset, sysparmDisplayValue }) => {
|
|
286
|
+
return snRequest(servicenowCredentials, '/api/now/table/sys_user', {
|
|
287
|
+
method: 'GET',
|
|
288
|
+
query: {
|
|
289
|
+
sysparm_query: sysparmQuery,
|
|
290
|
+
sysparm_fields: sysparmFields,
|
|
291
|
+
sysparm_limit: sysparmLimit,
|
|
292
|
+
sysparm_offset: sysparmOffset,
|
|
293
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
},
|
|
297
|
+
});
|
|
298
|
+
//# sourceMappingURL=platform.js.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const createRecord: import("ai").Tool<{
|
|
2
|
+
tableName: string;
|
|
3
|
+
servicenowCredentials?: string | undefined;
|
|
4
|
+
sysparmView?: "mobile" | "desktop" | "both" | undefined;
|
|
5
|
+
sysparmFields?: string | undefined;
|
|
6
|
+
sysparmDisplayValue?: "true" | "all" | "false" | undefined;
|
|
7
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
8
|
+
recordData?: Record<string, any> | undefined;
|
|
9
|
+
sysparmInputDisplayValue?: boolean | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
export declare const getRecordList: import("ai").Tool<{
|
|
12
|
+
tableName?: string | undefined;
|
|
13
|
+
servicenowCredentials?: string | undefined;
|
|
14
|
+
sysparmView?: "mobile" | "desktop" | "both" | undefined;
|
|
15
|
+
sysparmLimit?: number | undefined;
|
|
16
|
+
sysparmQuery?: string | undefined;
|
|
17
|
+
sysparmFields?: string | undefined;
|
|
18
|
+
sysparmOffset?: number | undefined;
|
|
19
|
+
sysparmDisplayValue?: "true" | "all" | "false" | undefined;
|
|
20
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
21
|
+
sysparmNoCount?: boolean | undefined;
|
|
22
|
+
sysparmQueryCategory?: string | undefined;
|
|
23
|
+
sysparmSuppressPaginationHeader?: boolean | undefined;
|
|
24
|
+
sysparmQueryNoDomain?: boolean | undefined;
|
|
25
|
+
nameValuePairs?: string | undefined;
|
|
26
|
+
}, any>;
|
|
27
|
+
export declare const getRecord: import("ai").Tool<{
|
|
28
|
+
tableName: string;
|
|
29
|
+
sysId: string;
|
|
30
|
+
servicenowCredentials?: string | undefined;
|
|
31
|
+
sysparmView?: string | undefined;
|
|
32
|
+
sysparmLimit?: number | undefined;
|
|
33
|
+
sysparmQuery?: string | undefined;
|
|
34
|
+
sysparmFields?: string | undefined;
|
|
35
|
+
sysparmOffset?: number | undefined;
|
|
36
|
+
sysparmDisplayValue?: "true" | "all" | "false" | undefined;
|
|
37
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
38
|
+
sysparmSuppressPaginationHeader?: boolean | undefined;
|
|
39
|
+
}, any>;
|
|
40
|
+
export declare const updateRecord: import("ai").Tool<{
|
|
41
|
+
tableName: string;
|
|
42
|
+
sysId: string;
|
|
43
|
+
servicenowCredentials?: string | undefined;
|
|
44
|
+
sysparmView?: "mobile" | "desktop" | "both" | undefined;
|
|
45
|
+
sysparmFields?: string | undefined;
|
|
46
|
+
sysparmDisplayValue?: "true" | "all" | "false" | undefined;
|
|
47
|
+
sysparmExcludeReferenceLink?: boolean | undefined;
|
|
48
|
+
recordData?: Record<string, any> | undefined;
|
|
49
|
+
sysparmInputDisplayValue?: boolean | undefined;
|
|
50
|
+
}, any>;
|
|
51
|
+
export declare const deleteRecord: import("ai").Tool<{
|
|
52
|
+
tableName: string;
|
|
53
|
+
sysId: string;
|
|
54
|
+
servicenowCredentials?: string | undefined;
|
|
55
|
+
sysparmQueryNoDomain?: boolean | undefined;
|
|
56
|
+
}, any>;
|
|
57
|
+
export declare const getRecordStats: import("ai").Tool<{
|
|
58
|
+
tableName: string;
|
|
59
|
+
servicenowCredentials?: string | undefined;
|
|
60
|
+
sysparmQuery?: string | undefined;
|
|
61
|
+
sysparmDisplayValue?: "true" | "all" | "false" | undefined;
|
|
62
|
+
sysparmCount?: boolean | undefined;
|
|
63
|
+
sysparmHaving?: string | undefined;
|
|
64
|
+
sysparmGroupBy?: string | undefined;
|
|
65
|
+
sysparmAvgFields?: string | undefined;
|
|
66
|
+
sysparmMaxFields?: string | undefined;
|
|
67
|
+
sysparmMinFields?: string | undefined;
|
|
68
|
+
sysparmSumFields?: string | undefined;
|
|
69
|
+
}, any>;
|
|
70
|
+
export declare const getTableSchema: import("ai").Tool<{
|
|
71
|
+
servicenowCredentials?: string | undefined;
|
|
72
|
+
}, any>;
|
|
73
|
+
//# sourceMappingURL=records.d.ts.map
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { snRequest } from './client.js';
|
|
5
|
+
export const createRecord = tool({
|
|
6
|
+
description: "Inserts a new record into the specified ServiceNow table with the provided field values. Use this action when you need to create a new record in any ServiceNow table (e.g., incident, problem, change_request, task, sys_user). The created record is returned with its sys_id and auto-generated number. NOTE: This action uses the /api/now/table/ endpoint as documented. The existing CreateARecord action uses /api/now/v1/table/.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
9
|
+
tableName: z.string().describe("The name of the table where the record will be created (e.g., 'incident', 'problem', 'change_request', 'sys_user')."),
|
|
10
|
+
recordData: z.record(z.any()).optional().describe("Field-value pairs for the new record. Available fields depend on the table schema. For 'incident' table, common fields include: 'short_description', 'description', 'urgency' (1-3), 'impact' (1-3), 'priority', 'assignment_group', 'assigned_to', 'category', 'state'. For reference fields (like 'assignment_group' or 'assigned_to'), use the sys_id of the referenced record, or set sysparm_input_display_value=true to use display values. Example: {'short_description': 'Network outage', 'urgency': '1', 'impact': '1', 'description': 'Unable to access network'}"),
|
|
11
|
+
sysparmView: z.enum(['desktop', 'mobile', 'both']).optional().describe("UI view to determine which fields are returned in the response. If not specified, returns fields from the default view."),
|
|
12
|
+
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."),
|
|
13
|
+
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."),
|
|
14
|
+
sysparmInputDisplayValue: z.boolean().optional().describe("Set to true if providing display values (e.g., user names) instead of sys_ids in record_data for reference fields. When false (default), reference fields must contain sys_ids."),
|
|
15
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ servicenowCredentials, tableName, recordData, sysparmView, sysparmFields, sysparmDisplayValue, sysparmInputDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
18
|
+
return snRequest(servicenowCredentials, `/api/now/table/${encodeURIComponent(tableName)}`, {
|
|
19
|
+
method: 'POST',
|
|
20
|
+
query: {
|
|
21
|
+
sysparm_view: sysparmView,
|
|
22
|
+
sysparm_fields: sysparmFields,
|
|
23
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
24
|
+
sysparm_input_display_value: sysparmInputDisplayValue,
|
|
25
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
26
|
+
},
|
|
27
|
+
body: recordData,
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
export const getRecordList = tool({
|
|
32
|
+
description: "Retrieves multiple records from a specified ServiceNow table with optional filtering and pagination. Use this action to query and fetch records from any ServiceNow table (e.g., incident, sys_user, problem). Supports filtering via sysparm_query, field selection, pagination, and display value options.",
|
|
33
|
+
inputSchema: z.object({
|
|
34
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
35
|
+
tableName: z.string().optional().describe("The name of the table from which to retrieve the record."),
|
|
36
|
+
sysparmView: z.enum(['desktop', 'mobile', 'both']).optional().describe("UI view for which to render the data. Determines the fields returned in the response."),
|
|
37
|
+
sysparmLimit: z.number().optional().describe("Maximum number of records to return. For requests that exceed this number of records, use the sysparm_offset parameter to paginate record retrieval. This limit is applied before ACL evaluation. If no records return, including records you have access to, rearrange the record order so records you have access to return first. Note: Unusually large sysparm_limit values can impact system performance."),
|
|
38
|
+
sysparmQuery: z.string().optional().describe("Encoded query used to filter the result set. Syntax: <col_name><operator><value>. All parameters are case-sensitive. Operators: = (exact match), != (not equal), ^ (AND), ^OR (OR), LIKE (contains string), STARTSWITH, ENDSWITH (string fields only). Multiple conditions: <col_name><operator><value>^<col_name><operator><value>. Example: active=true^priority=1. Sorting: Append ORDERBY<col_name> or ORDERBYDESC<col_name>. Example: active=true^ORDERBYnumber^ORDERBYDESCcategory."),
|
|
39
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid fields are ignored."),
|
|
40
|
+
sysparmOffset: z.number().optional().describe("Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, sysparm_offset is set to '0'. To simply page through all available records, use sysparm_offset=sysparm_offset+sysparm_limit, until you reach the end of all records. Don't pass a negative number in the sysparm_offset parameter."),
|
|
41
|
+
nameValuePairs: z.string().optional().describe("DEPRECATED: This parameter does not work in the ServiceNow Table API and will be ignored. Use 'sysparm_query' instead for filtering records. Example: sysparm_query='active=true^priority=1' for multiple conditions."),
|
|
42
|
+
sysparmNoCount: z.boolean().optional().describe("Flag that indicates whether to execute a select count(*) query on the table to return the number of rows in the associated table."),
|
|
43
|
+
sysparmDisplayValue: z.enum(['true', 'false', 'all']).optional().describe("Determines the type of data returned, either the actual values from the database or the display values of the fields. Display values are manipulated based on the actual value in the database and user or system settings and preferences. If returning display values, the value that is returned is dependent on the field type. Choice fields: The database value may be a number, but the display value will be more descriptive. Date fields: The database value is in UTC format, while the display value is based on the user's time zone. Encrypted text: The database value is encrypted, while the displayed value is unencrypted based on the user's encryption context. Reference fields: The database value is sys_id, but the display value is a display field of the referenced record."),
|
|
44
|
+
sysparmQueryCategory: z.string().optional().describe("Name of the category to use for queries."),
|
|
45
|
+
sysparmQueryNoDomain: z.boolean().optional().describe("Flag that indicates whether to restrict the record search to only the domains for which the logged in user is configured. Valid values: false (Exclude the record if it is in a domain that the currently logged in user is not configured to access), true (Include the record even if it is in a domain that the currently logged in user is not configured to access). Note: The sysparm_query_no_domain parameter is available only to system administrators or users who have the query_no_domain_table_api role."),
|
|
46
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Flag that indicates whether to exclude Table API links for reference fields."),
|
|
47
|
+
sysparmSuppressPaginationHeader: z.boolean().optional().describe("Flag that indicates whether to remove the Link header from the response. The Link header provides various URLs to relative pages in the record set which you can use to paginate the returned record set. Valid values: true (Remove the Link header from the response), false (Do not remove the Link header from the response)."),
|
|
48
|
+
}),
|
|
49
|
+
execute: async ({ servicenowCredentials, tableName, sysparmView, sysparmLimit, sysparmQuery, sysparmFields, sysparmOffset, nameValuePairs, sysparmNoCount, sysparmDisplayValue, sysparmQueryCategory, sysparmQueryNoDomain, sysparmExcludeReferenceLink, sysparmSuppressPaginationHeader }) => {
|
|
50
|
+
return snRequest(servicenowCredentials, tableName !== undefined ? `/api/now/table/${encodeURIComponent(tableName)}` : '/api/now/table', {
|
|
51
|
+
method: 'GET',
|
|
52
|
+
query: {
|
|
53
|
+
sysparm_view: sysparmView,
|
|
54
|
+
sysparm_limit: sysparmLimit,
|
|
55
|
+
sysparm_query: sysparmQuery,
|
|
56
|
+
sysparm_fields: sysparmFields,
|
|
57
|
+
sysparm_offset: sysparmOffset,
|
|
58
|
+
name_value_pairs: nameValuePairs,
|
|
59
|
+
sysparm_no_count: sysparmNoCount,
|
|
60
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
61
|
+
sysparm_query_category: sysparmQueryCategory,
|
|
62
|
+
sysparm_query_no_domain: sysparmQueryNoDomain,
|
|
63
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
64
|
+
sysparm_suppress_pagination_header: sysparmSuppressPaginationHeader,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
export const getRecord = tool({
|
|
70
|
+
description: "Retrieves the record identified by the specified sys_id from the specified table. Use this action when you need to fetch a single record from any ServiceNow table (e.g., incident, sys_user, problem) by providing its table name and unique sys_id. This is a read-only operation that does not modify any data in ServiceNow.",
|
|
71
|
+
inputSchema: z.object({
|
|
72
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
73
|
+
sysId: z.string().describe("Sys_id of the record to retrieve. This is a 32-character hexadecimal string that uniquely identifies the record."),
|
|
74
|
+
tableName: z.string().describe("Name of the table to retrieve the record from."),
|
|
75
|
+
sysparmView: z.string().optional().describe("UI view to use for field selection."),
|
|
76
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return."),
|
|
77
|
+
sysparmDisplayValue: z.enum(['true', 'false', 'all']).optional().describe("Determines the type of data returned in the response."),
|
|
78
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Exclude reference links in the response."),
|
|
79
|
+
sysparmLimit: z.number().optional().describe("Maximum number of records to return. For requests that exceed this number of records, use pagination via sysparm_offset. Note: Unusually large values can impact system performance."),
|
|
80
|
+
sysparmQuery: z.string().optional().describe("Encoded query to filter results. Syntax: <col_name><operator><value>. Operators: '=' (exact match), '!=' (not equal), '^' (AND), '^OR' (OR), LIKE, STARTSWITH, ENDSWITH. Example: state=1^priority=2"),
|
|
81
|
+
sysparmOffset: z.number().optional().describe("Starting record index for pagination. Set to sysparm_offset + sysparm_limit to retrieve subsequent pages of results."),
|
|
82
|
+
sysparmSuppressPaginationHeader: z.boolean().optional().describe("Set to true to exclude the Link header from the response for pagination."),
|
|
83
|
+
}),
|
|
84
|
+
execute: async ({ servicenowCredentials, sysId, tableName, sysparmView, sysparmFields, sysparmDisplayValue, sysparmExcludeReferenceLink, sysparmLimit, sysparmQuery, sysparmOffset, sysparmSuppressPaginationHeader }) => {
|
|
85
|
+
return snRequest(servicenowCredentials, `/api/now/table/${encodeURIComponent(tableName)}/${encodeURIComponent(sysId)}`, {
|
|
86
|
+
method: 'GET',
|
|
87
|
+
query: {
|
|
88
|
+
sysparm_view: sysparmView,
|
|
89
|
+
sysparm_fields: sysparmFields,
|
|
90
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
91
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
92
|
+
sysparm_limit: sysparmLimit,
|
|
93
|
+
sysparm_query: sysparmQuery,
|
|
94
|
+
sysparm_offset: sysparmOffset,
|
|
95
|
+
sysparm_suppress_pagination_header: sysparmSuppressPaginationHeader,
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
export const updateRecord = tool({
|
|
101
|
+
description: "Updates an existing record in a specified ServiceNow table by its sys_id using the Table API. Use this action when you need to modify specific fields of an existing record, such as updating the short_description, changing the state, reassigning the record, adding close_notes, or modifying any other table field. Only the fields specified in record_data are updated — all other fields retain their current values. This action sends a PATCH request to the ServiceNow Table API. This action modifies data but the changes can be reverted by calling this action again with the corrected values. This is an idempotent operation — calling it multiple times with the same parameters produces the same result.",
|
|
102
|
+
inputSchema: z.object({
|
|
103
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
104
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the record to update. This is a 32-character hexadecimal string. Example: '3877ccb6833ff210dd2dc2dfeeaad375'"),
|
|
105
|
+
tableName: z.string().describe("The name of the table containing the record to update. Examples: 'incident', 'problem', 'change_request', 'task', 'sys_user'."),
|
|
106
|
+
recordData: z.record(z.any()).optional().describe("Field-value pairs to update on the record. Only the specified fields are updated; all other fields retain their current values. For 'incident' table, common fields include: 'short_description', 'description', 'urgency' (1-3), 'impact' (1-3), 'priority', 'assignment_group', 'assigned_to', 'category', 'state', 'close_notes', 'work_notes'. For reference fields (like 'assigned_to'), use the sys_id of the referenced record, or set sysparm_input_display_value=true to use display values. Example: {'short_description': 'Updated via API', 'urgency': '2', 'impact': '2'}"),
|
|
107
|
+
sysparmView: z.enum(['desktop', 'mobile', 'both']).optional().describe("UI view that determines which fields are returned."),
|
|
108
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid fields are ignored. If not specified, all fields are returned. Example: 'number,short_description,state,assigned_to'"),
|
|
109
|
+
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."),
|
|
110
|
+
sysparmInputDisplayValue: z.boolean().optional().describe("Set to true if providing display values (e.g., user names) instead of sys_ids in record_data for reference fields. When false (default), reference fields must contain sys_ids."),
|
|
111
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
112
|
+
}),
|
|
113
|
+
execute: async ({ servicenowCredentials, sysId, tableName, recordData, sysparmView, sysparmFields, sysparmDisplayValue, sysparmInputDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
114
|
+
return snRequest(servicenowCredentials, `/api/now/table/${encodeURIComponent(tableName)}/${encodeURIComponent(sysId)}`, {
|
|
115
|
+
method: 'PATCH',
|
|
116
|
+
query: {
|
|
117
|
+
sysparm_view: sysparmView,
|
|
118
|
+
sysparm_fields: sysparmFields,
|
|
119
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
120
|
+
sysparm_input_display_value: sysparmInputDisplayValue,
|
|
121
|
+
sysparm_exclude_reference_link: sysparmExcludeReferenceLink,
|
|
122
|
+
},
|
|
123
|
+
body: recordData,
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
export const deleteRecord = tool({
|
|
128
|
+
description: "Permanently deletes a specific record from a ServiceNow table using its sys_id. Use this action when you need to remove a record from a ServiceNow table and the record's sys_id is known. This is a destructive operation that cannot be undone. The record will be permanently removed from the table. Requires the user to have delete permissions on the specified table. If the record doesn't exist or the user lacks permissions, an error will be returned.",
|
|
129
|
+
inputSchema: z.object({
|
|
130
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
131
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the record to delete. This is a 32-character hexadecimal string that uniquely identifies the record. Example: '3a24ff2e83b7f210dd2dc2dfeeaad37e'. The record must exist in the specified table, or a 404 error will be returned."),
|
|
132
|
+
tableName: z.string().describe("Name of the ServiceNow table from which to delete the record (e.g., 'incident', 'problem', 'change_request', 'task'). The table must exist in the ServiceNow instance and the user must have delete permissions for it."),
|
|
133
|
+
sysparmQueryNoDomain: z.boolean().optional().describe("Set to true to include records from domains the logged-in user is not configured to access (requires admin or query_no_domain_table_api role). When false (default), only records in the user's configured domains can be deleted."),
|
|
134
|
+
}),
|
|
135
|
+
execute: async ({ servicenowCredentials, sysId, tableName, sysparmQueryNoDomain }) => {
|
|
136
|
+
return snRequest(servicenowCredentials, `/api/now/table/${encodeURIComponent(tableName)}/${encodeURIComponent(sysId)}`, {
|
|
137
|
+
method: 'DELETE',
|
|
138
|
+
query: { sysparm_query_no_domain: sysparmQueryNoDomain },
|
|
139
|
+
});
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
export const getRecordStats = tool({
|
|
143
|
+
description: "Retrieves aggregate statistics for a specified ServiceNow table, including COUNT, AVG, MIN, MAX, and SUM calculations. Use this action when you need to perform aggregate queries on ServiceNow tables to get statistical summaries (e.g., count of incidents by state, average priority, min/max values for specific fields, or grouped aggregations). Supports filtering records with sysparm_query, calculating various aggregates, grouping results, and filtering aggregated results with the having clause.",
|
|
144
|
+
inputSchema: z.object({
|
|
145
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
146
|
+
tableName: z.string().describe("The name of the table to aggregate statistics from (e.g., 'incident', 'sys_user', 'task')."),
|
|
147
|
+
sysparmCount: z.boolean().optional().describe("Set to true to return the count of records matching the query."),
|
|
148
|
+
sysparmQuery: z.string().optional().describe("Encoded query string to filter records before aggregating. Syntax: <col_name><operator><value>. Operators: = (equals), != (not equals), ^ (AND), ^OR (OR), LIKE, STARTSWITH, ENDSWITH. Example: active=true^priority=1"),
|
|
149
|
+
sysparmHaving: z.string().optional().describe("Having clause to filter aggregated results based on aggregate values. Syntax: <aggregate_function><operator><value>. Example: 'count>10' returns only groups with count greater than 10."),
|
|
150
|
+
sysparmGroupBy: z.string().optional().describe("Comma-separated list of fields to group results by. When specified, aggregate functions are calculated per group. Example: 'state,active' groups results by state and active status."),
|
|
151
|
+
sysparmAvgFields: z.string().optional().describe("Comma-separated list of numeric fields to calculate average for. Example: 'priority,urgency' calculates average priority and urgency values."),
|
|
152
|
+
sysparmMaxFields: z.string().optional().describe("Comma-separated list of fields to calculate maximum value for. Example: 'priority,state' returns maximum priority and state values."),
|
|
153
|
+
sysparmMinFields: z.string().optional().describe("Comma-separated list of fields to calculate minimum value for. Example: 'priority,state' returns minimum priority and state values."),
|
|
154
|
+
sysparmSumFields: z.string().optional().describe("Comma-separated list of numeric fields to calculate sum for. Example: 'priority' returns sum of all priority values."),
|
|
155
|
+
sysparmDisplayValue: z.enum(['true', 'false', 'all']).optional().describe("Display value options for stats query responses"),
|
|
156
|
+
}),
|
|
157
|
+
execute: async ({ servicenowCredentials, tableName, sysparmCount, sysparmQuery, sysparmHaving, sysparmGroupBy, sysparmAvgFields, sysparmMaxFields, sysparmMinFields, sysparmSumFields, sysparmDisplayValue }) => {
|
|
158
|
+
return snRequest(servicenowCredentials, `/api/now/stats/${encodeURIComponent(tableName)}`, {
|
|
159
|
+
method: 'GET',
|
|
160
|
+
query: {
|
|
161
|
+
sysparm_count: sysparmCount,
|
|
162
|
+
sysparm_query: sysparmQuery,
|
|
163
|
+
sysparm_having: sysparmHaving,
|
|
164
|
+
sysparm_group_by: sysparmGroupBy,
|
|
165
|
+
sysparm_avg_fields: sysparmAvgFields,
|
|
166
|
+
sysparm_max_fields: sysparmMaxFields,
|
|
167
|
+
sysparm_min_fields: sysparmMinFields,
|
|
168
|
+
sysparm_sum_fields: sysparmSumFields,
|
|
169
|
+
sysparm_display_value: sysparmDisplayValue,
|
|
170
|
+
},
|
|
171
|
+
});
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
export const getTableSchema = tool({
|
|
175
|
+
description: "Retrieves all available table record types from the ServiceNow instance using the Table API documentation endpoint. Use this action when you need to discover all available tables and their record types in a ServiceNow instance before performing queries, creating records, or understanding the data structure available in the instance. This is useful for dynamic table selection and exploration purposes. This action queries the /api/now/doc/table/schema endpoint which returns metadata about all tables accessible in the ServiceNow instance, including both system tables and custom tables.",
|
|
176
|
+
inputSchema: z.object({
|
|
177
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
178
|
+
}),
|
|
179
|
+
execute: async ({ servicenowCredentials }) => {
|
|
180
|
+
return snRequest(servicenowCredentials, '/api/now/doc/table/schema', {
|
|
181
|
+
method: 'GET',
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
//# sourceMappingURL=records.js.map
|