@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,460 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { snRequest, toServerKeys } from './client.js';
|
|
5
|
+
export const serviceNowCreateCmdbAppService = tool({
|
|
6
|
+
description: "Creates an application service in ServiceNow CMDB or updates an existing one if a service with the same name already exists. Use this action when you need to register a new application service in the Configuration Management Database (CMDB). This endpoint performs a create-or-update operation: if an application service with the specified name already exists, it will be updated with the provided values rather than creating a duplicate.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
9
|
+
name: z.string().describe("Name of the application service to create. If an application service with the same name already exists, it will be updated with the provided values."),
|
|
10
|
+
order: z.number().optional().describe("Display order for the application service. Used when ordering or sorting application services in lists or UIs."),
|
|
11
|
+
tenantId: z.string().optional().describe("Tenant identifier for the application service. Used in multi-tenant deployments to scope the application service to a specific tenant."),
|
|
12
|
+
description: z.string().optional().describe("Description of the application service providing details about its purpose and functionality."),
|
|
13
|
+
owningSegment: z.string().optional().describe("Business owning segment for the application service. Defines the organizational segment that owns and is responsible for this application service."),
|
|
14
|
+
operationalStatus: z.string().optional().describe("Operational status of the application service (e.g., 'Production', 'Development', 'Retired')."),
|
|
15
|
+
}),
|
|
16
|
+
execute: async ({ servicenowCredentials, name, order, tenantId, description, owningSegment, operationalStatus }) => {
|
|
17
|
+
return snRequest(servicenowCredentials, '/api/now/cmdb/app_service/create', {
|
|
18
|
+
method: 'POST',
|
|
19
|
+
body: toServerKeys({ name, order, tenantId, description, owningSegment, operationalStatus }),
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export const serviceNowCreateCmdbCiLinuxServer = tool({
|
|
24
|
+
description: "Creates a new Linux server configuration item (CI) in the ServiceNow CMDB. Use this action when you need to register a new Linux server in the Configuration Management Database (CMDB). This endpoint creates a record in the cmdb_ci_linux_server table with the specified attributes including hostname, IP address, OS details, and operational information. The created record is returned with its sys_id and auto-generated details.",
|
|
25
|
+
inputSchema: z.object({
|
|
26
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
27
|
+
os: z.string().optional().describe("Operating system name and version for the Linux server. Common values include: 'Linux Red Hat', 'Linux Ubuntu', 'Linux CentOS', 'Linux SUSE', 'Linux Debian', 'Red Hat Enterprise Linux 7', 'Ubuntu Server 22.04 LTS'. Example: 'Linux Red Hat', 'Linux Ubuntu', 'Red Hat Enterprise Linux 8'"),
|
|
28
|
+
ram: z.number().optional().describe("Total RAM in megabytes (MB) installed on the Linux server. Example: 16384 (for 16GB), 32768 (for 32GB)"),
|
|
29
|
+
fqdn: z.string().optional().describe("Fully Qualified Domain Name (FQDN) of the Linux server. Example: 'web-server-01.example.com'"),
|
|
30
|
+
name: z.string().describe("Name of the Linux server configuration item. This is the primary display name used to identify the server in the CMDB and ServiceNow UI. Example: 'prod-web-server-01', 'test-linux-final'"),
|
|
31
|
+
vendor: z.string().optional().describe("Vendor or reseller from whom the server or software was purchased. Example: 'Dell', 'HP', 'Lenovo', 'AWS'"),
|
|
32
|
+
location: z.string().optional().describe("Physical or logical location of the Linux server. Can be a data center name, building, rack location, or cloud region. Example: 'US-East-1', 'DC1-Rack-A12', 'Building A - Floor 3'"),
|
|
33
|
+
modelId: z.string().optional().describe("Hardware or virtual machine model identifier. Example: 'PowerEdge R740', 'VMware Virtual Platform', 'm5.large'"),
|
|
34
|
+
cpuCount: z.number().optional().describe("Number of CPU cores or processors installed on the Linux server. Example: 4, 8, 16"),
|
|
35
|
+
hostName: z.string().optional().describe("Fully qualified or short hostname of the Linux server as reported by the OS. This is typically the value returned by the 'hostname' command. Example: 'web-server-01', 'test-final.example.com'"),
|
|
36
|
+
diskSpace: z.number().optional().describe("Total disk space in megabytes (MB) allocated to the Linux server. Example: 512000 (for 500GB)"),
|
|
37
|
+
ipAddress: z.string().optional().describe("Primary IP address of the Linux server. Supports both IPv4 and IPv6 formats. Example: '192.168.1.200', '10.0.0.1', '2001:db8::1'"),
|
|
38
|
+
managedBy: z.string().optional().describe("Name or sys_id of the person or group responsible for managing this server. Set sysparm_input_display_value=true to use display names instead of sys_ids."),
|
|
39
|
+
assignedTo: z.string().optional().describe("sys_id or display name of the user assigned primary responsibility for this server. Set sysparm_input_display_value=true to use display names instead of sys_ids."),
|
|
40
|
+
costCenter: z.string().optional().describe("Cost center identifier or name responsible for the financial aspects of this server. Example: 'CC-00123', 'IT Operations'"),
|
|
41
|
+
description: z.string().optional().describe("Detailed description of the Linux server providing context about its purpose, configuration, or any relevant notes. Example: 'Production web server running RHEL 8 with Apache'"),
|
|
42
|
+
environment: z.string().optional().describe("Environment classification for the Linux server. Common values: 'Development', 'Test', 'Production', 'Staging'. Example: 'Production', 'Development'"),
|
|
43
|
+
macAddress: z.string().optional().describe("Primary MAC (Media Access Control) address of the server's network interface. Format: six pairs of hexadecimal digits separated by colons or hyphens. Example: '00:50:56:C0:00:08', '00-50-56-c0-00-08'"),
|
|
44
|
+
manufacturer: z.string().optional().describe("Manufacturer or vendor of the Linux server hardware or virtualization platform. Example: 'VMware Inc.', 'Dell Inc.', 'HP', 'Amazon Web Services'"),
|
|
45
|
+
purchaseDate: z.string().optional().describe("Date when the server hardware or license was purchased. Format: YYYY-MM-DD. Example: '2023-01-15'"),
|
|
46
|
+
serialNumber: z.string().optional().describe("Hardware serial number of the Linux server as assigned by the manufacturer. Example: 'SN-12345ABCDE', 'VMware-42 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00'"),
|
|
47
|
+
supportGroup: z.string().optional().describe("Name of the group responsible for providing support for this server. Example: 'L2 Linux Support', 'NOC'"),
|
|
48
|
+
cpuCoreCount: z.number().optional().describe("Total number of CPU cores (sockets times cores per socket) on the server. Example: 32, 64"),
|
|
49
|
+
installStatus: z.string().optional().describe("Installation status of the Linux server. Common values: '1' = Installed, '2' = On Order, '3' = In Maintenance, '4' = Pending Installation, '5' = Pending Return, '7' = Absent. Example: '1' (Installed)"),
|
|
50
|
+
kernelVersion: z.string().optional().describe("Linux kernel version running on the server. Example: '5.4.0-150-generic', '3.10.0-1160.el7.x86_64'"),
|
|
51
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response (e.g., 'sys_id,name,ip_address'). Invalid fields are ignored. If not specified, all fields are returned."),
|
|
52
|
+
assignmentGroup: z.string().optional().describe("sys_id or display name of the group assigned to manage this server. Set sysparm_input_display_value=true to use display names instead of sys_ids."),
|
|
53
|
+
discoverySource: z.string().optional().describe("Source of the discovery data for this CI. Common values include: 'Manual Entry', 'ServiceNow Discovery', 'LDAP', 'Import Set', 'MID Server', 'ECMDB'. If not specified, defaults to 'Manual Entry'. Example: 'Manual Entry', 'ServiceNow Discovery'"),
|
|
54
|
+
osAddressWidth: z.string().optional().describe("Operating system architecture bit-width. Common values: '32-bit', '64-bit'. Example: '64-bit'"),
|
|
55
|
+
operationalStatus: z.string().optional().describe("Operational status of the Linux server. Common values: '1' = Operational, '2' = Non-Operational, '3' = Being Installed, '4' = Being Repaired, '6' = Under Maintenance. Example: '1' (Operational)"),
|
|
56
|
+
warrantyExpiration: z.string().optional().describe("Date when the server warranty expires. Format: YYYY-MM-DD. Example: '2026-01-15'"),
|
|
57
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the type of data returned in the response. 'false': Returns actual database values (default). 'true': Returns display values. 'all': Returns both display and actual values."),
|
|
58
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response. Defaults to false."),
|
|
59
|
+
}),
|
|
60
|
+
execute: async ({ servicenowCredentials, os, ram, fqdn, name, vendor, location, modelId, cpuCount, hostName, diskSpace, ipAddress, managedBy, assignedTo, costCenter, description, environment, macAddress, manufacturer, purchaseDate, serialNumber, supportGroup, cpuCoreCount, installStatus, kernelVersion, sysparmFields, assignmentGroup, discoverySource, osAddressWidth, operationalStatus, warrantyExpiration, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
61
|
+
return snRequest(servicenowCredentials, '/api/now/table/cmdb_ci_linux_server', {
|
|
62
|
+
method: 'POST',
|
|
63
|
+
query: { sysparm_fields: sysparmFields, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
64
|
+
body: toServerKeys({ name, os, ram, fqdn, ipAddress, hostName, vendor, location, modelId, cpuCount, cpuCoreCount, diskSpace, macAddress, manufacturer, serialNumber, purchaseDate, warrantyExpiration, installStatus, operationalStatus, environment, description, assignedTo, assignmentGroup, supportGroup, managedBy, costCenter, discoverySource, osAddressWidth, kernelVersion }),
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
export const serviceNowCreateCmdbInstance = tool({
|
|
69
|
+
description: "Creates a single Configuration Item (CI) in ServiceNow CMDB with the specified attributes. Use this action when you need to register a new configuration item (such as servers, databases, network devices, or application services) in the Configuration Management Database. The CI class determines the available attributes and relationships for the item.",
|
|
70
|
+
inputSchema: z.object({
|
|
71
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
72
|
+
classname: z.string().describe("The name of the CMDB class for the configuration item (CI) to create. Common CI classes include: 'cmdb_ci' (generic CI), 'cmdb_ci_server', 'cmdb_ci_database', 'cmdb_ci_network_adapter', 'cmdb_ci_storage_device', 'cmdb_ci_service_discovered', 'cmdb_ci_hardware', 'cmdb_ciPrinter', etc. Use the full class name without 'u_' prefix for base classes."),
|
|
73
|
+
attributes: z.record(z.any()).describe("A dictionary of attribute name-value pairs for the CI. The available attributes depend on the specified class. Common attributes across many CI classes include: 'name' (CI display name), 'serial_number', 'ip_address', 'mac_address', 'host_name', 'fqdn', 'manufacturer', 'model_id', 'vendor', 'purchase_date', 'assigned_to', 'assignment_group', 'location', 'support_group', 'managed_by', 'operational_status', 'install_status', 'cost', 'cost_center', 'u_custom_attribute'. Example: {'name': 'Production Server 01', 'serial_number': 'SN-12345', 'ip_address': '192.168.1.100'}"),
|
|
74
|
+
}),
|
|
75
|
+
execute: async ({ servicenowCredentials, classname, attributes }) => {
|
|
76
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/instance/${encodeURIComponent(classname)}`, {
|
|
77
|
+
method: 'POST',
|
|
78
|
+
body: { attributes, source: 'ServiceNow' },
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
export const serviceNowCreateCmdbInstanceRelation = tool({
|
|
83
|
+
description: "Creates an inbound and/or outbound relation for a specific configuration item (CI) in the ServiceNow CMDB. Use this action when you need to establish relationships between configuration items in the CMDB, such as indicating that a server 'runs on' hardware, a service 'depends on' a database, or an application 'hosts' middleware components. This action adds relations to the specified CI (identified by classname and sys_id) without modifying the CI itself. Relations are bidirectional in the CMDB - adding an outbound relation from CI A to CI B also creates a corresponding inbound relation on CI B. Common use cases: Building CMDB relationship maps, establishing application dependencies, defining infrastructure hierarchies, or documenting service relationships.",
|
|
84
|
+
inputSchema: z.object({
|
|
85
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
86
|
+
sysId: z.string().describe("The sys_id of the source configuration item to add relations to. This is a 32-character hexadecimal string. Example: '12345678901234567890123456789012'"),
|
|
87
|
+
classname: z.string().describe("The CMDB class name for the configuration item (e.g., 'cmdb_ci', 'cmdb_ci_server', 'cmdb_ci_service'). This is the table name that defines the type of CI."),
|
|
88
|
+
inboundRelations: z.array(z.any()).optional().describe("List of inbound relations to create to this CI from other CIs. Inbound relations represent relationships where other CIs are the source. Each item's `type` must be a cmdb_rel_type sys_id (see ListCmdbRelTypes), not a display label like 'Used by::Depends on'."),
|
|
89
|
+
outboundRelations: z.array(z.any()).optional().describe("List of outbound relations to create from this CI to other CIs. Outbound relations represent relationships where this CI is the source. Each item's `type` must be a cmdb_rel_type sys_id (see ListCmdbRelTypes), not a display label like 'Depends on::Used by'."),
|
|
90
|
+
}),
|
|
91
|
+
execute: async ({ servicenowCredentials, sysId, classname, inboundRelations, outboundRelations }) => {
|
|
92
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/instance/${encodeURIComponent(classname)}/${encodeURIComponent(sysId)}/relation`, {
|
|
93
|
+
method: 'POST',
|
|
94
|
+
body: toServerKeys({ inboundRelations, outboundRelations }),
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
export const serviceNowCreateDataClassificationClassify = tool({
|
|
99
|
+
description: "Assigns pre-defined or user-defined data classifications to existing dictionary entries. Use this action when you need to classify sensitive or confidential table columns according to your organization's data governance policies. This action classifies Dictionary [sys_dictionary] entries (table.column metadata) — not individual records — by assigning them one or more Data Classification [data_classification] labels such as 'Public', 'Internal', 'Confidential', or custom labels defined on the instance. Requires the admin or data_classification_admin role.",
|
|
100
|
+
inputSchema: z.object({
|
|
101
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
102
|
+
dataClasses: z.array(z.any()).describe("Sys_ids of the Data Classification [data_classification] records to assign to every dictionary entry listed in dictionary_entries. Example: ['40edb1f51bbcec50b92a10a61a4bcb8a']"),
|
|
103
|
+
dictionaryEntries: z.array(z.any()).describe("Sys_ids of the Dictionary [sys_dictionary] records (table.column entries) to classify. Not record sys_ids — these must be sys_dictionary entries, e.g. the sys_id of the incident.caller_id dictionary entry. Example: ['445de0a6dba30300efc57416bf9619b0']"),
|
|
104
|
+
}),
|
|
105
|
+
execute: async ({ servicenowCredentials, dataClasses, dictionaryEntries }) => {
|
|
106
|
+
return snRequest(servicenowCredentials, '/api/now/data_classification/classify', {
|
|
107
|
+
method: 'POST',
|
|
108
|
+
body: { dictionary_entries: dictionaryEntries.join(','), data_classes: dataClasses.join(',') },
|
|
109
|
+
});
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
export const serviceNowCreateDataClassificationClear = tool({
|
|
113
|
+
description: "Removes all data classifications for a specific record in a ServiceNow table. Use this action when you need to clear/reset data classification labels from a record, such as when reclassifying sensitive data, removing outdated classifications, or preparing records for re-processing. This action clears all data classification entries associated with the specified record. Note: This operation may require appropriate ServiceNow permissions. If the user lacks permission to modify data classifications on the specified table, an error will be returned.",
|
|
114
|
+
inputSchema: z.object({
|
|
115
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
116
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the record whose data classifications should be cleared. This is a 32-character hexadecimal string that uniquely identifies the record. Example: 'abc1234567890abcdef1234567890ab'"),
|
|
117
|
+
}),
|
|
118
|
+
execute: async ({ servicenowCredentials, sysId }) => {
|
|
119
|
+
return snRequest(servicenowCredentials, '/api/now/data_classification/clear', {
|
|
120
|
+
method: 'POST',
|
|
121
|
+
body: { dictionary_entries: sysId },
|
|
122
|
+
});
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
export const serviceNowCreateIdentifyreconcileEnhanced = tool({
|
|
126
|
+
description: "Inserts or updates configuration items (CIs) in ServiceNow CMDB using the enhanced Identification and Reconciliation API. Use this action when you need to bulk-insert or update multiple configuration items in the CMDB, with automatic identification of existing CIs based on identifying attributes (name, IP address, serial number, MAC address, hostname, or sys_id) and optional creation of CI relationships. This API provides better error handling and detailed per-item results compared to basic CMDB instance APIs. This action is useful for CMDB data population, reconciliation of discovered CIs against the CMDB, bulk CI updates, and establishing CI relationships during discovery or import workflows.",
|
|
127
|
+
inputSchema: z.object({
|
|
128
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
129
|
+
items: z.array(z.any()).describe("Array of configuration item (CI) objects to insert or update in the CMDB. Each item must have at least one identifying field (name, class_name, sys_id, ip_address, serial_number, mac_address, or host_name) to match an existing CI. If no existing CI matches, a new CI is created. The 'attributes' dict can be used to set or update CMDB fields on matched CIs. Example: [{'name': 'Server 01', 'className': 'cmdb_ci_server', 'ip_address': '192.168.1.100', 'attributes': {'operational_status': '1'}}]"),
|
|
130
|
+
relations: z.array(z.any()).optional().describe("Array of relationship objects to create between CIs. Relationships are directional, defined as 'Source::Target' format. Each relation requires source and target CI identification (via sys_id, link, or name). Relations are processed after CIs. Example: [{'type': 'Runs on::Runs', 'source': {'name': 'App Server'}, 'target': {'name': 'DB Server'}}]"),
|
|
131
|
+
}),
|
|
132
|
+
execute: async ({ servicenowCredentials, items, relations }) => {
|
|
133
|
+
return snRequest(servicenowCredentials, '/api/now/identifyreconcile/enhanced', {
|
|
134
|
+
method: 'POST',
|
|
135
|
+
body: toServerKeys({ items, relations }),
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
export const serviceNowCreateIdentifyreconcileQuery = tool({
|
|
140
|
+
description: "Queries the ServiceNow Identify and Reconcile API to determine whether a Configuration Item (CI) should be inserted (created) or updated in the CMDB based on identity matching rules. Use this action when you need to check whether a CI already exists in the CMDB before creating or updating it, or when you want ServiceNow to automatically determine the correct operation (INSERT vs UPDATE) based on configured identity matching rules and the provided attributes. This is commonly used during data migration, discovery integration, or bulk CI reconciliation workflows where the operation (create vs update) needs to be determined programmatically. Note: This action performs a query/reconciliation check only — it does not execute the actual INSERT or UPDATE operation. It returns the recommended operation and the matched CI details.",
|
|
141
|
+
inputSchema: z.object({
|
|
142
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
143
|
+
source: z.string().describe("The name of the data source that identifies the origin of the CI data being reconciled. This is used by ServiceNow to determine which reconciliation rules and identity matching rules apply. The source must be a valid data source configured in ServiceNow (e.g., 'cmdb_azure', 'cmdb_aws', 'test_source'). Example: 'cmdb_azure'"),
|
|
144
|
+
attributes: z.record(z.any()).describe("A dictionary of attribute name-value pairs used to identify or match an existing CI. ServiceNow uses these attributes along with identity matching rules to determine whether an existing CI matches (triggering an update) or no match exists (triggering an insert). Common identifying attributes include: 'name' (CI display name), 'serial_number', 'ip_address', 'mac_address', 'host_name', 'fqdn', 'asset_tag'. Example: {'name': 'Test Server', 'ip_address': '192.168.1.100'}"),
|
|
145
|
+
className: z.string().describe("The name of the CMDB class for the configuration item (CI) to identify/reconcile. Common CI classes include: 'cmdb_ci' (generic CI), 'cmdb_ci_server', 'cmdb_ci_database', 'cmdb_ci_network_adapter', 'cmdb_ci_storage_device', 'cmdb_ci_service_discovered', 'cmdb_ci_hardware', 'cmdb_ciPrinter', 'cmdb_ci_application', etc. Example: 'cmdb_ci'"),
|
|
146
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
147
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
148
|
+
}),
|
|
149
|
+
execute: async ({ servicenowCredentials, source, attributes, className, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
150
|
+
return snRequest(servicenowCredentials, '/api/now/identifyreconcile/query', {
|
|
151
|
+
method: 'POST',
|
|
152
|
+
query: { sysparm_data_source: source, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
153
|
+
body: { items: [{ className, values: attributes }] },
|
|
154
|
+
});
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
export const serviceNowCreateIdentifyreconcileQueryenhanced = tool({
|
|
158
|
+
description: "Performs identification and reconciliation of configuration items (CIs) in the ServiceNow CMDB. Use this action when you need to determine whether to insert a new CI or update an existing one based on matching attributes. The API compares the provided data against existing CIs and returns the recommended operation (insert/update) along with the matched or created CI details. This is useful for data imports, discovery integration, or synchronizing CI data from external sources. Note: When dry_run is false (default), this action may create or modify existing CIs in the CMDB.",
|
|
159
|
+
inputSchema: z.object({
|
|
160
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
161
|
+
data: z.record(z.any()).describe("A dictionary containing the configuration item (CI) attributes to reconcile. The available attributes depend on the CMDB class. Common attributes include: 'name' (CI display name, often required), 'u_class' or 'sys_class_name' (CMDB class), 'serial_number', 'ip_address', 'mac_address', 'host_name', 'fqdn', 'manufacturer', 'model_id', 'vendor', 'operational_status', 'install_status'. The API uses these attributes to match against existing CIs in the CMDB. Example: {'name': 'Production Server 01', 'u_class': 'cmdb_ci_server', 'ip_address': '192.168.1.100'}"),
|
|
162
|
+
source: z.string().describe("The source identifier for the reconciliation query. This identifies the data source or integration point that is providing the CI data. Examples: 'cmdb_import_set', 'discovery', 'manual', or a custom integration name."),
|
|
163
|
+
dryRun: z.boolean().optional().describe("When set to true, performs a simulation without actually creating or updating any CIs. Useful for previewing what changes would be made before committing. Default is false, meaning changes will be applied."),
|
|
164
|
+
reconciliationType: z.string().optional().describe("The type of reconciliation to perform. Determines how the API matches incoming data against existing CIs. Common values: 'exact' (exact match on all specified fields), 'fuzzy' (partial match), or 'identify' (identification only without creating/updating). If not specified, uses the default reconciliation behavior configured in ServiceNow."),
|
|
165
|
+
}),
|
|
166
|
+
execute: async ({ servicenowCredentials, data, source, dryRun, reconciliationType }) => {
|
|
167
|
+
// reconciliationType has no documented API slot — ignored in the request.
|
|
168
|
+
const { sys_class_name: sysClassName, u_class: uClass, ...rest } = data ?? {};
|
|
169
|
+
const items = [{ className: sysClassName ?? uClass, values: rest }];
|
|
170
|
+
const path = dryRun === false ? '/api/now/identifyreconcile' : '/api/now/identifyreconcile/queryEnhanced';
|
|
171
|
+
return snRequest(servicenowCredentials, path, {
|
|
172
|
+
method: 'POST',
|
|
173
|
+
query: { sysparm_data_source: source },
|
|
174
|
+
body: { items },
|
|
175
|
+
});
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
export const serviceNowCreateUpdateCmdCi = tool({
|
|
179
|
+
description: "Creates or updates CMDB configuration items (CIs) using the ServiceNow Identification and Reconciliation Engine (IRE) via the identify-reconcile endpoint. Use this action when you need to upsert CIs into the CMDB with automatic deduplication. The IRE matches incoming CI data against existing records using configured identification rules (based on fields like name, IP address, serial number, etc.) and either updates the matched CI or creates a new one. This prevents duplicate configuration items from being created. You can also submit relationship data alongside CIs to create or update CI relationships (e.g., 'Contains', 'Depends on'). Note: Identification rules must be configured in ServiceNow for this endpoint to work correctly. If no matching rule is found, the IRE may create a new CI or reject the entry depending on your configuration.",
|
|
180
|
+
inputSchema: z.object({
|
|
181
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
182
|
+
items: z.array(z.any()).describe("Array of CI objects to insert or update in the CMDB using the Identification and Reconciliation Engine (IRE). Each object contains CMDB fields that are used both for matching (via identification rules) and for populating CI attributes. Key fields include: 'className' (CMDB table name), 'name' (CI display name), 'sys_id' (to update an existing CI directly), 'ip_address', 'serial_number', 'host_name', 'mac_address', 'fqdn', 'manufacturer', 'model_id', etc. The IRE matches incoming CIs against existing records using identification rules configured in ServiceNow, preventing duplicate CIs. Example: [{'className': 'cmdb_ci', 'name': 'test-ci', 'ip_address': '192.168.1.100'}]"),
|
|
183
|
+
relations: z.array(z.any()).optional().describe("Array of relationship objects to create or update alongside the CIs. Each relation links a parent CI to a child CI with a relationship type. Fields include: 'parent' (sys_id or name of parent CI), 'child' (sys_id or name of child CI), 'type' (relationship type name). Example: [{'parent': 'web-server-01', 'child': 'web-app-01', 'type': 'Contains'}]"),
|
|
184
|
+
}),
|
|
185
|
+
execute: async ({ servicenowCredentials, items, relations }) => {
|
|
186
|
+
return snRequest(servicenowCredentials, '/api/now/identifyreconcile', {
|
|
187
|
+
method: 'POST',
|
|
188
|
+
body: toServerKeys({ items, relations }),
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
export const serviceNowDeleteCmdbInstanceRelation = tool({
|
|
193
|
+
description: "Permanently deletes a specific CMDB CI (Configuration Item) relation using its sys_id. This is a destructive, irreversible operation — the relation between two CIs cannot be recovered once deleted. The relation represents a connection between a parent and child CI (e.g., a server running an application). Requires the user to have the ITIL role and appropriate CMDB permissions. If the relation, CI, or class doesn't exist, or the user lacks permissions, an error will be returned. Use when you need to remove a specific relationship between two configuration items in the CMDB.",
|
|
194
|
+
inputSchema: z.object({
|
|
195
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
196
|
+
sysId: z.string().describe("The sys_id of the CI (Configuration Item) record. This is a required path parameter that uniquely identifies the CI instance within the specified class table. It is a 32-character hexadecimal string. Example: '106c5c13c61122750194a1e96cfde951'"),
|
|
197
|
+
classname: z.string().describe("Name of the CMDB CI (Configuration Item) class. This is a required path parameter that identifies the class table to which the CI belongs. Common values include 'cmdb_ci_server', 'cmdb_ci_application', 'cmdb_ci_service_discovered', etc. Example: 'cmdb_ci_server'"),
|
|
198
|
+
relSysId: z.string().describe("The sys_id of the CMDB relation to delete. This is a required path parameter that uniquely identifies the relationship record between two CIs. It is a 32-character hexadecimal string. Example: '2ce248ba833bf210dd2dc2dfeeaad3c0'"),
|
|
199
|
+
}),
|
|
200
|
+
execute: async ({ servicenowCredentials, sysId, classname, relSysId }) => {
|
|
201
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/instance/${encodeURIComponent(classname)}/${encodeURIComponent(sysId)}/relation/${encodeURIComponent(relSysId)}`, {
|
|
202
|
+
method: 'DELETE',
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
export const serviceNowGetAllDataClasses = tool({
|
|
207
|
+
description: "Retrieves all data classification records from the ServiceNow Data Classification API. Use this action when you need to list all available data classification levels (e.g., Public, Internal, Confidential, Restricted) configured in a ServiceNow instance. Data classifications are used to label and categorize data based on sensitivity levels for security and compliance purposes. This action is read-only and does not modify any records. Use sysparm_limit and sysparm_offset to paginate through classification records.",
|
|
208
|
+
inputSchema: z.object({
|
|
209
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
210
|
+
sysparmLimit: z.number().optional().describe("Maximum number of records to return. Use with sysparm_offset to paginate through results."),
|
|
211
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to retrieve the next page."),
|
|
212
|
+
}),
|
|
213
|
+
execute: async ({ servicenowCredentials, sysparmLimit, sysparmOffset }) => {
|
|
214
|
+
return snRequest(servicenowCredentials, '/api/now/data_classification/getAllDataClasses', {
|
|
215
|
+
method: 'GET',
|
|
216
|
+
query: { sysparm_limit: sysparmLimit, sysparm_offset: sysparmOffset },
|
|
217
|
+
});
|
|
218
|
+
},
|
|
219
|
+
});
|
|
220
|
+
export const serviceNowGetAppServiceContent = tool({
|
|
221
|
+
description: "Retrieves a list of configuration items (CIs) associated with a specific application service in ServiceNow CMDB. Use this action when you need to query what infrastructure components (servers, databases, applications, etc.) are part of a given application service. This is useful for impact analysis, change management, and understanding service dependencies within the CMDB.",
|
|
222
|
+
inputSchema: z.object({
|
|
223
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
224
|
+
sysId: z.string().describe("The sys_id (unique identifier) of the application service whose configuration items (CIs) you want to retrieve."),
|
|
225
|
+
sysparmLimit: z.number().optional().describe("Maximum number of configuration items to return. Use pagination parameters for larger result sets."),
|
|
226
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return. Invalid field names are silently ignored. Example: 'sys_id,name,ip_address'"),
|
|
227
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to paginate through results."),
|
|
228
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
229
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
230
|
+
}),
|
|
231
|
+
execute: async ({ servicenowCredentials, sysId, sysparmLimit, sysparmFields, sysparmOffset, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
232
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/app_service/${encodeURIComponent(sysId)}/getContent`, {
|
|
233
|
+
method: 'GET',
|
|
234
|
+
query: { sysparm_limit: sysparmLimit, sysparm_fields: sysparmFields, sysparm_offset: sysparmOffset, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
235
|
+
});
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
export const serviceNowGetCmdbCiLinuxServer = tool({
|
|
239
|
+
description: "Retrieves a single CMDB Linux server configuration item (CI) by its sys_id, including its attributes and relationship information. Use this action when you need to fetch detailed information about a specific Linux server from ServiceNow's CMDB, such as its attributes (name, IP address, OS version, kernel version, etc.) and both its inbound (dependents) and outbound (dependencies) relationships with other CIs. This is a read-only operation that does not modify any data in ServiceNow.",
|
|
240
|
+
inputSchema: z.object({
|
|
241
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
242
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the CMDB Linux server configuration item to retrieve. This is a 32-character hexadecimal string that uniquely identifies the CI record. Example: '3a290cc60a0a0bb400000bdb386af1cf'"),
|
|
243
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,name,ip_address,operational_status'"),
|
|
244
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
245
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
246
|
+
}),
|
|
247
|
+
execute: async ({ servicenowCredentials, sysId, sysparmFields, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
248
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/instance/cmdb_ci_linux_server/${encodeURIComponent(sysId)}`, {
|
|
249
|
+
method: 'GET',
|
|
250
|
+
query: { sysparm_fields: sysparmFields, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
251
|
+
});
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
export const serviceNowGetCmdbCsdmAppServiceFindService = tool({
|
|
255
|
+
description: "Finds and returns basic information about one or more application services in the ServiceNow CMDB using the CSDM (Common Service Data Model) app_service find_service endpoint. Use this action when you need to search for application services by name (supports wildcards), retrieve their basic metadata such as operational status, owning segment, and business criticality, or check whether a specific application service exists in the CMDB.",
|
|
256
|
+
inputSchema: z.object({
|
|
257
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
258
|
+
name: z.string().describe("Name of the application service to find. Supports wildcards using '*' prefix or suffix. Examples: 'My Service', '*-production', 'app-*', '*-db-*'"),
|
|
259
|
+
sysparmLimit: z.number().optional().describe("Maximum number of application service records to return. Use pagination parameters for larger result sets."),
|
|
260
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,name,description,operational_status'"),
|
|
261
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to paginate through results."),
|
|
262
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
263
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
264
|
+
}),
|
|
265
|
+
execute: async ({ servicenowCredentials, name, sysparmLimit, sysparmFields, sysparmOffset, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
266
|
+
return snRequest(servicenowCredentials, '/api/now/cmdb/csdm/app_service/find_service', {
|
|
267
|
+
method: 'GET',
|
|
268
|
+
query: { name, sysparm_limit: sysparmLimit, sysparm_fields: sysparmFields, sysparm_offset: sysparmOffset, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
});
|
|
272
|
+
export const serviceNowGetCmdbInstance = tool({
|
|
273
|
+
description: "Retrieves configuration items (CIs) from a specified CMDB class using the ServiceNow CMDB Instance API. Use this action when you need to query configuration items from the CMDB by class name, such as retrieving all servers (cmdb_ci_server), computers (cmdb_ci_computer), databases (cmdb_ci_database), or all CIs (cmdb_ci). Supports filtering via sysparm_query and pagination via sysparm_limit and sysparm_offset.",
|
|
274
|
+
inputSchema: z.object({
|
|
275
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
276
|
+
classname: z.string().describe("Name of the CMDB class to query (e.g., 'cmdb_ci', 'cmdb_ci_server', 'cmdb_ci_computer', 'cmdb_ci_database', 'cmdb_ci_service_discovered', 'cmdb_ci_application'). Use 'cmdb_ci' to query the base CI class and retrieve all configuration items."),
|
|
277
|
+
sysparmLimit: z.number().optional().describe("Maximum number of configuration item records to return. Use pagination for larger result sets."),
|
|
278
|
+
sysparmQuery: z.string().optional().describe("Encoded query to filter configuration items. Syntax: <col_name><operator><value>. Operators: '=' (exact match), '!=' (not equal), '^' (AND), '^OR' (OR), LIKE, STARTSWITH, ENDSWITH. Example: operational_status=1^environment=Production"),
|
|
279
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,name,ip_address,operational_status'"),
|
|
280
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to paginate through results."),
|
|
281
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
282
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
283
|
+
}),
|
|
284
|
+
execute: async ({ servicenowCredentials, classname, sysparmLimit, sysparmQuery, sysparmFields, sysparmOffset, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
285
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/instance/${encodeURIComponent(classname)}`, {
|
|
286
|
+
method: 'GET',
|
|
287
|
+
query: { sysparm_limit: sysparmLimit, sysparm_query: sysparmQuery, sysparm_offset: sysparmOffset, sysparm_fields: sysparmFields, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
export const serviceNowGetCmdbInstanceById = tool({
|
|
292
|
+
description: "Retrieves a single CMDB configuration item (CI) by its class name and sys_id, including its attributes and relationship information. Use this action when you need to fetch detailed information about a specific configuration item from ServiceNow's CMDB, such as its attributes (name, IP, status, etc.) and both its inbound (dependents) and outbound (dependencies) relationships with other CIs. This is a read-only operation that does not modify any data in ServiceNow.",
|
|
293
|
+
inputSchema: z.object({
|
|
294
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
295
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the CMDB configuration item to retrieve. This is a 32-character hexadecimal string that uniquely identifies the CI record. Example: '00a96c0d3790200044e0bfc8bcbe5db4'"),
|
|
296
|
+
classname: z.string().describe("Name of the CMDB CI class (table) to query. Examples: 'cmdb_ci', 'cmdb_ci_linux_server', 'cmdb_ci_apache', 'cmdb_ci_service_discovered'. The class name determines which type of configuration item to retrieve."),
|
|
297
|
+
}),
|
|
298
|
+
execute: async ({ servicenowCredentials, sysId, classname }) => {
|
|
299
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/instance/${encodeURIComponent(classname)}/${encodeURIComponent(sysId)}`, {
|
|
300
|
+
method: 'GET',
|
|
301
|
+
});
|
|
302
|
+
},
|
|
303
|
+
});
|
|
304
|
+
export const serviceNowGetCmdbMeta = tool({
|
|
305
|
+
description: "Retrieves metadata and schema information for a specified CMDB (Configuration Management Database) class. Use this action when you need to discover the field structure, data types, mandatory fields, and relationships of a CMDB class before performing queries or updates. This is useful for understanding what fields are available for filtering, display, or modification operations. The user must have the ITIL role to access CMDB metadata.",
|
|
306
|
+
inputSchema: z.object({
|
|
307
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
308
|
+
className: z.string().describe("The CMDB class name to retrieve metadata for. Common classes include: 'cmdb_ci' (base CI class), 'cmdb_ci_server', 'cmdb_ci_database', 'cmdb_ci_service', 'cmdb_ci_web_server', 'cmdb_ci_linux_server', 'cmdb_ci_win_server', 'cmdb_ci_appl'."),
|
|
309
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values in the response. 'false': Returns actual database values. 'true': Returns display values. 'all': Returns both display and actual values."),
|
|
310
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
311
|
+
}),
|
|
312
|
+
execute: async ({ servicenowCredentials, className, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
313
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/meta/${encodeURIComponent(className)}`, {
|
|
314
|
+
method: 'GET',
|
|
315
|
+
query: { sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
316
|
+
});
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
export const serviceNowListCmdbCiLinuxServers = tool({
|
|
320
|
+
description: "Retrieves Linux server configuration items (CIs) from the ServiceNow CMDB using the cmdb_ci_linux_server class. Use this action when you need to query Linux servers from the CMDB, such as retrieving all Linux servers for inventory reporting, filtering by operational status, environment, or other attributes. Supports filtering via sysparm_query and pagination via sysparm_limit and sysparm_offset. This is a read-only operation that does not modify any data in ServiceNow.",
|
|
321
|
+
inputSchema: z.object({
|
|
322
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
323
|
+
sysparmLimit: z.number().optional().describe("Maximum number of Linux server records to return. Use pagination for larger result sets."),
|
|
324
|
+
sysparmQuery: z.string().optional().describe("Encoded query to filter Linux servers. Syntax: <col_name><operator><value>. Operators: '=' (exact match), '!=' (not equal), '^' (AND), '^OR' (OR), LIKE, STARTSWITH, ENDSWITH. Example: operational_status=1^environment=Production"),
|
|
325
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,name,ip_address,operational_status'"),
|
|
326
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to paginate through results."),
|
|
327
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
328
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
329
|
+
}),
|
|
330
|
+
execute: async ({ servicenowCredentials, sysparmLimit, sysparmQuery, sysparmFields, sysparmOffset, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
331
|
+
return snRequest(servicenowCredentials, '/api/now/cmdb/instance/cmdb_ci_linux_server', {
|
|
332
|
+
method: 'GET',
|
|
333
|
+
query: { sysparm_limit: sysparmLimit, sysparm_query: sysparmQuery, sysparm_offset: sysparmOffset, sysparm_fields: sysparmFields, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
334
|
+
});
|
|
335
|
+
},
|
|
336
|
+
});
|
|
337
|
+
export const serviceNowListCmdbcIs = tool({
|
|
338
|
+
description: "Retrieves configuration items (CIs) from the ServiceNow CMDB using the base cmdb_ci class. Use this action when you need to query all configuration items from the CMDB, regardless of their specific type (servers, computers, databases, applications, etc.). This endpoint queries the base cmdb_ci class which contains all CIs. Supports filtering via sysparm_query and pagination via sysparm_limit and sysparm_offset.",
|
|
339
|
+
inputSchema: z.object({
|
|
340
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
341
|
+
sysparmLimit: z.number().optional().describe("Maximum number of configuration item records to return. Use pagination for larger result sets."),
|
|
342
|
+
sysparmQuery: z.string().optional().describe("Encoded query to filter configuration items. Syntax: <col_name><operator><value>. Operators: '=' (exact match), '!=' (not equal), '^' (AND), '^OR' (OR), LIKE, STARTSWITH, ENDSWITH. Example: operational_status=1^environment=Production"),
|
|
343
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,name,ip_address,operational_status'"),
|
|
344
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to paginate through results."),
|
|
345
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
346
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
347
|
+
}),
|
|
348
|
+
execute: async ({ servicenowCredentials, sysparmLimit, sysparmQuery, sysparmFields, sysparmOffset, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
349
|
+
return snRequest(servicenowCredentials, '/api/now/cmdb/instance/cmdb_ci', {
|
|
350
|
+
method: 'GET',
|
|
351
|
+
query: { sysparm_limit: sysparmLimit, sysparm_query: sysparmQuery, sysparm_offset: sysparmOffset, sysparm_fields: sysparmFields, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
352
|
+
});
|
|
353
|
+
},
|
|
354
|
+
});
|
|
355
|
+
export const serviceNowListCmdbRelTypes = tool({
|
|
356
|
+
description: "Retrieves CMDB relationship types from the ServiceNow cmdb_rel_type table using the Table API. Use this action when you need to discover what types of relationships are defined between Configuration Items (CIs) in the CMDB. Common relationship types include 'Runs on', 'Contains', 'Depends on', 'Hosted on', and 'Connects to'. This is useful for understanding the relationship schema before creating or querying CI relationships. Supports filtering via sysparm_query, pagination via sysparm_limit and sysparm_offset, field selection via sysparm_fields, and display value formatting via sysparm_display_value.",
|
|
357
|
+
inputSchema: z.object({
|
|
358
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
359
|
+
sysparmLimit: z.number().optional().describe("Maximum number of relationship type records to return. Use pagination for larger result sets."),
|
|
360
|
+
sysparmQuery: z.string().optional().describe("Encoded query to filter relationship types. Syntax: <col_name><operator><value>. Operators: '=' (exact match), '!=' (not equal), '^' (AND), '^OR' (OR), LIKE, STARTSWITH, ENDSWITH. Example: active=true^nameLIKEserver"),
|
|
361
|
+
sysparmFields: z.string().optional().describe("Comma-separated list of fields to return in the response. Invalid field names are silently ignored. Example: 'sys_id,name,child_class_name,parent_class_name'"),
|
|
362
|
+
sysparmOffset: z.number().optional().describe("Starting record offset for pagination. Set to sysparm_offset + sysparm_limit to paginate through results."),
|
|
363
|
+
sysparmDisplayValue: z.string().optional().describe("Determines the format of field values 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."),
|
|
364
|
+
sysparmExcludeReferenceLink: z.boolean().optional().describe("Set to true to exclude Table API links for reference fields in the response."),
|
|
365
|
+
}),
|
|
366
|
+
execute: async ({ servicenowCredentials, sysparmLimit, sysparmQuery, sysparmFields, sysparmOffset, sysparmDisplayValue, sysparmExcludeReferenceLink }) => {
|
|
367
|
+
return snRequest(servicenowCredentials, '/api/now/table/cmdb_rel_type', {
|
|
368
|
+
method: 'GET',
|
|
369
|
+
query: { sysparm_limit: sysparmLimit, sysparm_query: sysparmQuery, sysparm_offset: sysparmOffset, sysparm_fields: sysparmFields, sysparm_display_value: sysparmDisplayValue, sysparm_exclude_reference_link: sysparmExcludeReferenceLink },
|
|
370
|
+
});
|
|
371
|
+
},
|
|
372
|
+
});
|
|
373
|
+
export const serviceNowUpdateCmdbCsdmAppServicePopulateService = tool({
|
|
374
|
+
description: "Populates an Application Service with CI (Configuration Item) relationships based on the CSDM (Common Service Data Model) model. Use this action when you need to automatically discover and populate the CIs (Configuration Items) and their relationships that belong to an application service in ServiceNow's CMDB. This endpoint has been deprecated by ServiceNow. Consider using alternative approaches for CI population.",
|
|
375
|
+
inputSchema: z.object({
|
|
376
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
377
|
+
serviceSysId: z.string().describe("The sys_id of the Application Service to populate with CI relationships. This is a required path parameter that uniquely identifies the application service record. Example: '17c04876833bf210dd2dc2dfeeaad3ee'"),
|
|
378
|
+
populationMethod: z.record(z.any()).optional().describe('population_method object, e.g. {type: "cmdb_group_based", group_id: "..."}'),
|
|
379
|
+
}),
|
|
380
|
+
execute: async ({ servicenowCredentials, serviceSysId, populationMethod }) => {
|
|
381
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/csdm/app_service/${encodeURIComponent(serviceSysId)}/populate_service`, {
|
|
382
|
+
method: 'PUT',
|
|
383
|
+
body: { population_method: populationMethod ?? { type: 'discovery' } },
|
|
384
|
+
});
|
|
385
|
+
},
|
|
386
|
+
});
|
|
387
|
+
export const serviceNowUpdateCmdbcsdmAppServiceServiceDetails = tool({
|
|
388
|
+
description: "Updates the service details for a specific application service in the CMDB CSDM (Common Service Data Model). Use this action when you need to modify the metadata, ownership, tier classification, or operational details of an application service in ServiceNow's Configuration Management Database. This endpoint specifically updates the service_details attributes of the application service identified by its sys_id. This is an update (PUT) operation, so the provided fields will be set on the record. Fields not included in the request will retain their current values unless otherwise specified by the API. Common use cases: Updating application service ownership, changing tier or environment classifications, modifying criticality levels, or updating operational status.",
|
|
389
|
+
inputSchema: z.object({
|
|
390
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
391
|
+
name: z.string().optional().describe("The display name of the application service. This is the human-readable name used to identify the service. Example: 'Payment Processing Service'"),
|
|
392
|
+
tier: z.string().optional().describe("The tier classification of the application service. Valid values: '1' = Prescription, '2' = Billing, '3' = Monitoring, '4' = Custom Application Services. Use the numeric string value corresponding to the desired tier."),
|
|
393
|
+
criticality: z.string().optional().describe("The criticality level of the application service for business operations. Valid values: '1' = High, '2' = Medium, '3' = Low. Use the numeric string value corresponding to the criticality level."),
|
|
394
|
+
description: z.string().optional().describe("A detailed description of the application service explaining its purpose, functionality, and business value. Example: 'Handles all payment processing including credit cards and ACH transfers'"),
|
|
395
|
+
environment: z.string().optional().describe("The deployment environment for the application service. Valid values: '1' = Development, '2' = Test, '3' = Production, '4' = Staging. Use the numeric string value corresponding to the environment."),
|
|
396
|
+
owningTeam: z.string().optional().describe("The sys_id of the team responsible for owning and maintaining the application service. Reference to sn_orgstructure_team table. Example: 'xyz987654321fedcba9876543210zyxw'"),
|
|
397
|
+
primaryOwner: z.string().optional().describe("The sys_id of the primary owner/person responsible for this application service. Reference to sys_user table. Example: 'usr1234567890abcdef1234567890ab'"),
|
|
398
|
+
serviceSysId: z.string().describe("The unique system ID (sys_id) of the application service record to update. This is a 32-character hexadecimal string that identifies the specific application service in the cmdb_ci_appl_service table. Example: 'abc1234567890abcdef1234567890ab'"),
|
|
399
|
+
secondaryOwner: z.string().optional().describe("The sys_id of the secondary/backup owner for this application service. Reference to sys_user table. Example: 'usr987654321fedcba9876543210zyxw'"),
|
|
400
|
+
operationalStatus: z.string().optional().describe("The current operational status of the application service. Typical values: '1' = Operational, '2' = Non-Operational, '3' = Decommissioned, '7' = Under Maintenance. Example: '1'"),
|
|
401
|
+
owningApplication: z.string().optional().describe("The sys_id of the application that this service supports. Reference to cmdb_ci_appl table. Example: 'app1234567890abcdef1234567890ab'"),
|
|
402
|
+
businessCriticality: z.string().optional().describe("Additional business criticality designation or notes. Can include details about why the service is critical and any associated SLAs. Example: 'Mission critical - 99.99% uptime required'"),
|
|
403
|
+
owningBusinessService: z.string().optional().describe("The sys_id of the parent business service that owns this application service. Reference to cmdb_ci_service table. Example: 'svc1234567890abcdef1234567890ab'"),
|
|
404
|
+
}),
|
|
405
|
+
execute: async ({ servicenowCredentials, name, tier, criticality, description, environment, owningTeam, primaryOwner, serviceSysId, secondaryOwner, operationalStatus, owningApplication, businessCriticality, owningBusinessService }) => {
|
|
406
|
+
const basicDetails = toServerKeys({ name, environment });
|
|
407
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/csdm/app_service/${encodeURIComponent(serviceSysId)}/service_details`, {
|
|
408
|
+
method: 'PUT',
|
|
409
|
+
body: {
|
|
410
|
+
...(Object.keys(basicDetails).length > 0 ? { basic_details: basicDetails } : {}),
|
|
411
|
+
...toServerKeys({ tier, criticality, description, owningTeam, primaryOwner, secondaryOwner, operationalStatus, owningApplication, businessCriticality, owningBusinessService }),
|
|
412
|
+
},
|
|
413
|
+
});
|
|
414
|
+
},
|
|
415
|
+
});
|
|
416
|
+
export const serviceNowUpdateCmdbInstance = tool({
|
|
417
|
+
description: "Updates an existing configuration item (CI) record in the ServiceNow CMDB by its sys_id. Use this action when you need to modify attributes of a specific configuration item in the Configuration Management Database. This action sends a PUT request to the CMDB Instance API endpoint, replacing the specified attributes of the CI record. Note: The classname and sys_id are required path parameters. Only include the attributes you want to update in the request. This action performs a full update operation - fields not included in the request will retain their current values unless the API enforces specific default behavior. Common use cases: Updating CI operational status, changing ownership, modifying location information, updating IP addresses, changing assignment groups, or updating custom CMDB fields. Merged variant also accepts flat CI fields (as in the PATCH variant), which are folded into attributes.",
|
|
418
|
+
inputSchema: z.object({
|
|
419
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
420
|
+
className: z.string().describe("The name of the CMDB class (table) that the configuration item belongs to. This is a required path parameter. Common class names include: cmdb_ci (generic CI), cmdb_ci_server, cmdb_ci_database, cmdb_ci_network_adapter, cmdb_ci_ip_switch, cmdb_ci_lb, cmdb_ci_storage_device, cmdb_ciPrinter, cmdb_ci_appl, etc. Example: 'cmdb_ci' or 'cmdb_ci_server'"),
|
|
421
|
+
sysId: z.string().describe("The unique system ID (sys_id) of the configuration item record to update. This is a 32-character hexadecimal string that uniquely identifies the CI. Example: '1234567890abcdef1234567890abcdef'"),
|
|
422
|
+
source: z.string().optional().describe("Required. The entity that is updating this information — must be one of the choice values in the discovery_source field of the cmdb_ci table (e.g. 'ServiceNow', 'ImportSet', 'ManualStagingTable'). Query the choice list via GET /api/now/table/sys_choice?sysparm_query=name=cmdb_ci^element=discovery_source to see valid values on this instance."),
|
|
423
|
+
attributes: z.record(z.any()).optional().describe("A dictionary of CI attribute name-value pairs to update. These are the field names and values specific to the CMDB class. Common attributes include: name, short_description, description, serial_number, ip_address, mac_address, manufacturer, model_number, install_status, operational_status, owned_by, assigned_to, assignment_group, location, etc. Example: {'name': 'Production Web Server', 'operational_status': '1'}"),
|
|
424
|
+
additionalAttributes: z.record(z.any()).optional().describe("Additional CMDB attributes to update that are not explicitly listed above. Use this for custom fields (prefixed with u_) or less common fields. Example: {'u_custom_field': 'value', 'u_environment': 'production'}"),
|
|
425
|
+
name: z.string().optional().describe("Display name of the configuration item. Example: 'web-server-prod-01'"),
|
|
426
|
+
ipAddress: z.string().optional().describe("Primary IP address of the configuration item. Example: '192.168.1.100'"),
|
|
427
|
+
hostName: z.string().optional().describe("Hostname of the configuration item. Example: 'web-server-prod-01'"),
|
|
428
|
+
fqdn: z.string().optional().describe("Fully qualified domain name of the configuration item. Example: 'web-server-prod-01.example.com'"),
|
|
429
|
+
serialNumber: z.string().optional().describe("Serial number assigned by the manufacturer. Example: 'ABC123XYZ'"),
|
|
430
|
+
installStatus: z.string().optional().describe("Installation status of the configuration item. Common values: '1' = Installed, '2' = On Order, '3' = On Maintenance, '4' = Stocked, '6' = In Service, '7' = Retired. Example: '1'"),
|
|
431
|
+
operationalStatus: z.string().optional().describe("Operational status of the configuration item. Common values: '1' = Operational, '2' = Non-Operational, '3' = Decommissioned, '7' = Under Maintenance. Example: '1'"),
|
|
432
|
+
environment: z.string().optional().describe("Environment type for the configuration item. Common values: 'Development', 'Test', 'Production', 'Staging', 'QA'. Example: 'Production'"),
|
|
433
|
+
manufacturer: z.string().optional().describe("Manufacturer or vendor of the configuration item. Example: 'Dell Inc.', 'Cisco Systems'"),
|
|
434
|
+
modelNumber: z.string().optional().describe("Model number of the configuration item. Example: 'PowerEdge R740', 'UCS-B200-M4'"),
|
|
435
|
+
description: z.string().optional().describe("Detailed description of the configuration item explaining its purpose and functionality."),
|
|
436
|
+
shortDescription: z.string().optional().describe("Brief summary or title of the configuration item. Example: 'Production web server for app-1'"),
|
|
437
|
+
cost: z.string().optional().describe("Cost or price of the configuration item. Example: '15000.00'"),
|
|
438
|
+
company: z.string().optional().describe("Sys_id of the company that owns or is associated with this configuration item."),
|
|
439
|
+
location: z.string().optional().describe("Physical location or data center of the configuration item. Example: 'NYC-DC-1', 'EU-West-1'"),
|
|
440
|
+
managedBy: z.string().optional().describe("Sys_id of the user or group that manages this configuration item."),
|
|
441
|
+
supportedBy: z.string().optional().describe("Sys_id of the user or group that provides support for this configuration item."),
|
|
442
|
+
assignmentGroup: z.string().optional().describe("Sys_id of the assignment group responsible for this configuration item."),
|
|
443
|
+
purchaseDate: z.string().optional().describe("Date the configuration item was purchased (format: YYYY-MM-DD). Example: '2024-01-15'"),
|
|
444
|
+
warrantyExpiration: z.string().optional().describe("Warranty expiration date for the configuration item (format: YYYY-MM-DD). Example: '2027-01-15'"),
|
|
445
|
+
}),
|
|
446
|
+
execute: async ({ servicenowCredentials, className, sysId, source, attributes, additionalAttributes, name, ipAddress, hostName, fqdn, serialNumber, installStatus, operationalStatus, environment, manufacturer, modelNumber, description, shortDescription, cost, company, location, managedBy, supportedBy, assignmentGroup, purchaseDate, warrantyExpiration }) => {
|
|
447
|
+
return snRequest(servicenowCredentials, `/api/now/cmdb/instance/${encodeURIComponent(className)}/${encodeURIComponent(sysId)}`, {
|
|
448
|
+
method: 'PUT',
|
|
449
|
+
body: {
|
|
450
|
+
attributes: {
|
|
451
|
+
...toServerKeys({ name, ipAddress, hostName, fqdn, serialNumber, installStatus, operationalStatus, environment, manufacturer, modelNumber, description, shortDescription, cost, company, location, managedBy, supportedBy, assignmentGroup, purchaseDate, warrantyExpiration }),
|
|
452
|
+
...(attributes ?? {}),
|
|
453
|
+
...(additionalAttributes ?? {}),
|
|
454
|
+
},
|
|
455
|
+
source: source ?? 'Manual',
|
|
456
|
+
},
|
|
457
|
+
});
|
|
458
|
+
},
|
|
459
|
+
});
|
|
460
|
+
//# sourceMappingURL=cmdb.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const importRecords: import("ai").Tool<{
|
|
2
|
+
stagingTableName: string;
|
|
3
|
+
items?: Record<string, any>[] | undefined;
|
|
4
|
+
records?: Record<string, any>[] | undefined;
|
|
5
|
+
servicenowCredentials?: string | undefined;
|
|
6
|
+
sysparmInputDisplayValue?: boolean | undefined;
|
|
7
|
+
}, any>;
|
|
8
|
+
export declare const getImportStagingRecord: import("ai").Tool<{
|
|
9
|
+
sysId: string;
|
|
10
|
+
stagingTableName: string;
|
|
11
|
+
servicenowCredentials?: string | undefined;
|
|
12
|
+
}, any>;
|
|
13
|
+
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { snRequest } from './client.js';
|
|
5
|
+
export const importRecords = tool({
|
|
6
|
+
description: "Inserts incoming data into a specified ServiceNow staging table and triggers the associated transform map to move the data into the production table. Use this action when you need to bulk-import data into ServiceNow through the Import Set API. This is commonly used for data migration, integrating external data sources, or loading data from CSV files into ServiceNow tables. The staging table must have a transform map configured to map the staging table fields to the target production table fields.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
9
|
+
items: z.array(z.record(z.any())).optional().describe("List of data objects to import into the staging table. Each object contains field-value pairs corresponding to the columns in the staging table. The fields must match the columns defined in the staging table schema. Example: [{'short_description': 'Test item', 'description': 'Import test'}]. The data will be inserted into the staging table and the transform map associated with the staging table will be triggered to move data to the production table."),
|
|
10
|
+
stagingTableName: z.string().describe("Name of the import set staging table to insert data into. This is the name of a staging table (usually prefixed with 'u_') that is configured with a transform map to move data into a production table. Common staging table names include: 'u_test_import_set', 'u_incident_staging', 'u_cmdb_ci_staging', etc."),
|
|
11
|
+
records: z.array(z.record(z.any())).optional().describe("Array of record objects to insert into the staging table. Each record contains field-value pairs matching the columns of the staging table. These records will be queued for transform based on the transform map associated with the staging table. Example: [{'short_description': 'Test record 1'}, {'short_description': 'Test record 2'}]"),
|
|
12
|
+
sysparmInputDisplayValue: z.boolean().optional().describe("Set to true if providing display values instead of sys_ids for reference fields in the records. When false (default), reference fields must contain sys_ids."),
|
|
13
|
+
}),
|
|
14
|
+
execute: async ({ servicenowCredentials, items, stagingTableName, records, sysparmInputDisplayValue }) => {
|
|
15
|
+
const body = items !== undefined ? { items } : records !== undefined ? { records } : undefined;
|
|
16
|
+
return snRequest(servicenowCredentials, `/api/now/import/${encodeURIComponent(stagingTableName)}/insertMultiple`, {
|
|
17
|
+
method: 'POST',
|
|
18
|
+
query: { sysparm_input_display_value: sysparmInputDisplayValue },
|
|
19
|
+
...(body ? { body } : {}),
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export const getImportStagingRecord = tool({
|
|
24
|
+
description: "Retrieves the specified import staging record and its associated target records. Use this action when you need to fetch a specific import staging record to view its current state, check import status, or retrieve the imported data before it is loaded into the target table. This is useful for auditing import processes, debugging failed imports, or monitoring data import progress. Common use cases: - Check the status of a specific import record - View the raw imported data for debugging - Verify that data was correctly staged before transformation - Retrieve import metadata (source, target table, batch info)",
|
|
25
|
+
inputSchema: z.object({
|
|
26
|
+
servicenowCredentials: z.string().optional().describe('Injected auth JSON {baseUrl, username, password} — do not provide'),
|
|
27
|
+
sysId: z.string().describe("The sys_id of the import staging record to retrieve. This is the unique identifier assigned to the staging record."),
|
|
28
|
+
stagingTableName: z.string().describe("Name of the import set staging table from which to retrieve the record. This is the table where imported data is staged before being transformed and loaded into target tables."),
|
|
29
|
+
}),
|
|
30
|
+
execute: async ({ servicenowCredentials, sysId, stagingTableName }) => {
|
|
31
|
+
return snRequest(servicenowCredentials, `/api/now/import/${encodeURIComponent(stagingTableName)}/${encodeURIComponent(sysId)}`, {
|
|
32
|
+
method: 'GET',
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=imports.js.map
|