@rnsk/toolkits 0.0.9 → 0.0.11
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 +18 -2
- package/dist/index.d.ts +17 -1
- package/dist/index.js +33 -1
- package/dist/toolkits/bitbucket/tools/index.d.ts +5 -5
- package/dist/toolkits/bitbucket/tools/reports.d.ts +5 -5
- package/dist/toolkits/cloudflare/tools/create-list.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/create-zone.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/index.d.ts +4 -4
- package/dist/toolkits/cloudflare/tools/list-pools.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-zones.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 +5 -5
- package/dist/toolkits/discord/tools/index.d.ts +5 -5
- package/dist/toolkits/figma/tools/create-modify-delete-variables.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-file-nodes.d.ts +1 -1
- package/dist/toolkits/figma/tools/index.d.ts +3 -3
- package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
- package/dist/toolkits/google-analytics/tools/reports.d.ts +9 -9
- package/dist/toolkits/google-classroom/tools/index.d.ts +7 -7
- package/dist/toolkits/google-classroom/tools/invitations.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/misc.d.ts +1 -1
- package/dist/toolkits/google-classroom/tools/roster.d.ts +5 -5
- 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/hacker-news/icon.d.ts +5 -0
- package/dist/toolkits/hacker-news/icon.js +9 -0
- package/dist/toolkits/hacker-news/manifest.d.ts +3 -0
- package/dist/toolkits/hacker-news/manifest.js +25 -0
- package/dist/toolkits/hacker-news/tools/client.d.ts +8 -0
- package/dist/toolkits/hacker-news/tools/client.js +51 -0
- package/dist/toolkits/hacker-news/tools/index.d.ts +89 -0
- package/dist/toolkits/hacker-news/tools/index.js +22 -0
- package/dist/toolkits/hacker-news/tools/items.d.ts +42 -0
- package/dist/toolkits/hacker-news/tools/items.js +126 -0
- package/dist/toolkits/hacker-news/tools/search.d.ts +12 -0
- package/dist/toolkits/hacker-news/tools/search.js +40 -0
- package/dist/toolkits/hacker-news/tools/stories.d.ts +25 -0
- package/dist/toolkits/hacker-news/tools/stories.js +98 -0
- package/dist/toolkits/hostinger/icon.d.ts +5 -0
- package/dist/toolkits/hostinger/icon.js +6 -0
- package/dist/toolkits/hostinger/manifest.d.ts +3 -0
- package/dist/toolkits/hostinger/manifest.js +36 -0
- package/dist/toolkits/hostinger/tools/billing.d.ts +12 -0
- package/dist/toolkits/hostinger/tools/billing.js +35 -0
- package/dist/toolkits/hostinger/tools/client.d.ts +6 -0
- package/dist/toolkits/hostinger/tools/client.js +57 -0
- package/dist/toolkits/hostinger/tools/dns.d.ts +22 -0
- package/dist/toolkits/hostinger/tools/dns.js +47 -0
- package/dist/toolkits/hostinger/tools/domains.d.ts +21 -0
- package/dist/toolkits/hostinger/tools/domains.js +62 -0
- package/dist/toolkits/hostinger/tools/hosting.d.ts +17 -0
- package/dist/toolkits/hostinger/tools/hosting.js +38 -0
- package/dist/toolkits/hostinger/tools/index.d.ts +179 -0
- package/dist/toolkits/hostinger/tools/index.js +35 -0
- package/dist/toolkits/hostinger/tools/vps.d.ts +27 -0
- package/dist/toolkits/hostinger/tools/vps.js +77 -0
- package/dist/toolkits/hostinger/tools/whois.d.ts +33 -0
- package/dist/toolkits/hostinger/tools/whois.js +85 -0
- package/dist/toolkits/hugging-face/icon.d.ts +5 -0
- package/dist/toolkits/hugging-face/icon.js +6 -0
- package/dist/toolkits/hugging-face/manifest.d.ts +3 -0
- package/dist/toolkits/hugging-face/manifest.js +42 -0
- package/dist/toolkits/hugging-face/tools/client.d.ts +93 -0
- package/dist/toolkits/hugging-face/tools/client.js +192 -0
- package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +65 -0
- package/dist/toolkits/hugging-face/tools/datasets-viewer.js +150 -0
- package/dist/toolkits/hugging-face/tools/datasets.d.ts +160 -0
- package/dist/toolkits/hugging-face/tools/datasets.js +383 -0
- package/dist/toolkits/hugging-face/tools/discussions.d.ts +68 -0
- package/dist/toolkits/hugging-face/tools/discussions.js +144 -0
- package/dist/toolkits/hugging-face/tools/index.d.ts +523 -0
- package/dist/toolkits/hugging-face/tools/index.js +163 -0
- package/dist/toolkits/hugging-face/tools/inference.d.ts +42 -0
- package/dist/toolkits/hugging-face/tools/inference.js +86 -0
- package/dist/toolkits/hugging-face/tools/models.d.ts +117 -0
- package/dist/toolkits/hugging-face/tools/models.js +273 -0
- package/dist/toolkits/hugging-face/tools/papers.d.ts +37 -0
- package/dist/toolkits/hugging-face/tools/papers.js +91 -0
- package/dist/toolkits/hugging-face/tools/repos.d.ts +96 -0
- package/dist/toolkits/hugging-face/tools/repos.js +201 -0
- package/dist/toolkits/hugging-face/tools/settings.d.ts +53 -0
- package/dist/toolkits/hugging-face/tools/settings.js +88 -0
- package/dist/toolkits/hugging-face/tools/spaces.d.ts +245 -0
- package/dist/toolkits/hugging-face/tools/spaces.js +468 -0
- package/dist/toolkits/hugging-face/tools/sql.d.ts +21 -0
- package/dist/toolkits/hugging-face/tools/sql.js +47 -0
- package/dist/toolkits/hugging-face/tools/users.d.ts +60 -0
- package/dist/toolkits/hugging-face/tools/users.js +132 -0
- package/dist/toolkits/hugging-face/tools/webhooks.d.ts +35 -0
- package/dist/toolkits/hugging-face/tools/webhooks.js +87 -0
- package/dist/toolkits/jira/icon.d.ts +5 -0
- package/dist/toolkits/jira/icon.js +6 -0
- package/dist/toolkits/jira/manifest.d.ts +3 -0
- package/dist/toolkits/jira/manifest.js +53 -0
- package/dist/toolkits/jira/tools/boards.d.ts +52 -0
- package/dist/toolkits/jira/tools/boards.js +104 -0
- package/dist/toolkits/jira/tools/client.d.ts +23 -0
- package/dist/toolkits/jira/tools/client.js +270 -0
- package/dist/toolkits/jira/tools/index.d.ts +1280 -0
- package/dist/toolkits/jira/tools/index.js +119 -0
- package/dist/toolkits/jira/tools/issue-fields.d.ts +10 -0
- package/dist/toolkits/jira/tools/issue-fields.js +111 -0
- package/dist/toolkits/jira/tools/issues.d.ts +304 -0
- package/dist/toolkits/jira/tools/issues.js +593 -0
- package/dist/toolkits/jira/tools/meta.d.ts +212 -0
- package/dist/toolkits/jira/tools/meta.js +369 -0
- package/dist/toolkits/jira/tools/projects.d.ts +130 -0
- package/dist/toolkits/jira/tools/projects.js +263 -0
- package/dist/toolkits/jira/tools/search.d.ts +90 -0
- package/dist/toolkits/jira/tools/search.js +181 -0
- package/dist/toolkits/jira/tools/users.d.ts +114 -0
- package/dist/toolkits/jira/tools/users.js +221 -0
- 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/icon.d.ts +5 -0
- package/dist/toolkits/neo4j/icon.js +6 -0
- package/dist/toolkits/neo4j/manifest.d.ts +3 -0
- package/dist/toolkits/neo4j/manifest.js +33 -0
- package/dist/toolkits/neo4j/tools/analytics.d.ts +21 -0
- package/dist/toolkits/neo4j/tools/analytics.js +91 -0
- package/dist/toolkits/neo4j/tools/client.d.ts +6 -0
- package/dist/toolkits/neo4j/tools/client.js +105 -0
- package/dist/toolkits/neo4j/tools/index.d.ts +198 -0
- package/dist/toolkits/neo4j/tools/index.js +30 -0
- package/dist/toolkits/neo4j/tools/instances.d.ts +47 -0
- package/dist/toolkits/neo4j/tools/instances.js +127 -0
- package/dist/toolkits/neo4j/tools/projects.d.ts +44 -0
- package/dist/toolkits/neo4j/tools/projects.js +110 -0
- package/dist/toolkits/neo4j/tools/snapshots.d.ts +20 -0
- package/dist/toolkits/neo4j/tools/snapshots.js +57 -0
- package/dist/toolkits/neon/icon.d.ts +5 -0
- package/dist/toolkits/neon/icon.js +8 -0
- package/dist/toolkits/neon/manifest.d.ts +3 -0
- package/dist/toolkits/neon/manifest.js +36 -0
- package/dist/toolkits/neon/tools/auth.d.ts +115 -0
- package/dist/toolkits/neon/tools/auth.js +286 -0
- package/dist/toolkits/neon/tools/branches.d.ts +189 -0
- package/dist/toolkits/neon/tools/branches.js +465 -0
- package/dist/toolkits/neon/tools/client.d.ts +10 -0
- package/dist/toolkits/neon/tools/client.js +69 -0
- package/dist/toolkits/neon/tools/dataapi.d.ts +42 -0
- package/dist/toolkits/neon/tools/dataapi.js +111 -0
- package/dist/toolkits/neon/tools/endpoints.d.ts +59 -0
- package/dist/toolkits/neon/tools/endpoints.js +163 -0
- package/dist/toolkits/neon/tools/index.d.ts +976 -0
- package/dist/toolkits/neon/tools/index.js +130 -0
- package/dist/toolkits/neon/tools/meta.d.ts +4 -0
- package/dist/toolkits/neon/tools/meta.js +16 -0
- package/dist/toolkits/neon/tools/orgs.d.ts +112 -0
- package/dist/toolkits/neon/tools/orgs.js +303 -0
- package/dist/toolkits/neon/tools/projects.d.ts +177 -0
- package/dist/toolkits/neon/tools/projects.js +468 -0
- package/dist/toolkits/neon/tools/snapshots.d.ts +24 -0
- package/dist/toolkits/neon/tools/snapshots.js +67 -0
- 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/slack/tools/admin-users.d.ts +1 -1
- package/dist/toolkits/slack/tools/slack-lists.d.ts +3 -3
- 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/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/package.json +2 -3
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { nasaGet, nasaDownloadMeta, toNasaError, enc } from './client.js';
|
|
5
|
+
export const nasaGetDataByFileName = tool({
|
|
6
|
+
description: "Get information about specific TOLNet (Tropospheric Ozone Lidar Network) data files by file name. This tool searches the TOLNet database for lidar data files and returns detailed metadata including temporal coverage, geographic location, instrument details, and access permissions. Supports exact match, prefix match (begins_with), or suffix match (ends_with) search strategies. Use this when you need to retrieve metadata about TOLNet lidar observation files, verify file existence, check data collection periods, or obtain download locations.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
9
|
+
fileName: z.string().describe("The name of the file you want to search for. Can be a full file name or partial name depending on the match_type parameter."),
|
|
10
|
+
matchType: z.enum(["exact_match", "begins_with", "ends_with"]).optional().describe("Match type for file name search."),
|
|
11
|
+
}),
|
|
12
|
+
execute: async ({ nasaApiKey, fileName, matchType }) => {
|
|
13
|
+
try {
|
|
14
|
+
const query = {};
|
|
15
|
+
if (fileName !== undefined)
|
|
16
|
+
query["file_name"] = fileName;
|
|
17
|
+
if (matchType !== undefined)
|
|
18
|
+
query["match_type"] = matchType;
|
|
19
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/data/search_by_file_name`, { query });
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
return toNasaError(error, "Failed to get data by file name");
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
export const nasaGetTolnetDataJson = tool({
|
|
27
|
+
description: "Tool to retrieve JSON versions of TOLNet (Tropospheric Ozone Lidar Network) data by ID. Use when you need to access hi-res TOLNet measurement data in JSON format.",
|
|
28
|
+
inputSchema: z.object({
|
|
29
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
30
|
+
id: z.number().int().min(1).describe("Data ID associated with one hi-res TOLNet file. Must be a valid integer identifier for existing TOLNet data."),
|
|
31
|
+
}),
|
|
32
|
+
execute: async ({ nasaApiKey, id }) => {
|
|
33
|
+
try {
|
|
34
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/data/json/${enc(id)}`);
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
return toNasaError(error, "Failed to get tolnet data json");
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
export const nasaGetTolnetDataJsonForGraph = tool({
|
|
42
|
+
description: "Tool to retrieve JSON versions of TOLNet data including O3_Number_Density (ozone mixing ratio) and temporal boundaries. Use when you need TOLNet lidar ozone measurements with altitude profiles, start/stop dates, and instrument metadata for a specific data ID.",
|
|
43
|
+
inputSchema: z.object({
|
|
44
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
45
|
+
id: z.number().int().min(1).describe("One data id associated with one hi-res TOLNet file"),
|
|
46
|
+
}),
|
|
47
|
+
execute: async ({ nasaApiKey, id }) => {
|
|
48
|
+
try {
|
|
49
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/data/json_for_graph/${enc(id)}`);
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
return toNasaError(error, "Failed to get tolnet data json for graph");
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
export const nasaGetDocument = tool({
|
|
57
|
+
description: "Tool to retrieve metadata for a single TOLNet (Tropospheric Ozone Lidar Network) document by ID. Use when you need information about a document such as its name, author, type, dates, and access visibility.",
|
|
58
|
+
inputSchema: z.object({
|
|
59
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
60
|
+
id: z.number().int().min(1).describe("Document ID to retrieve. Must be a positive integer."),
|
|
61
|
+
}),
|
|
62
|
+
execute: async ({ nasaApiKey, id }) => {
|
|
63
|
+
try {
|
|
64
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/document/${enc(id)}`);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
return toNasaError(error, "Failed to get document");
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
export const nasaGetDocumentDownload = tool({
|
|
72
|
+
description: "Download a single TOLNet (Tropospheric Ozone Lidar Network) document by ID. Returns the document as a PDF file. Use when you need to retrieve a specific TOLNet document for analysis or storage.",
|
|
73
|
+
inputSchema: z.object({
|
|
74
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
75
|
+
id: z.number().int().min(1).describe("Document ID to download. Must be a positive integer."),
|
|
76
|
+
}),
|
|
77
|
+
execute: async ({ nasaApiKey, id }) => {
|
|
78
|
+
try {
|
|
79
|
+
const headers = {};
|
|
80
|
+
return await nasaDownloadMeta("https://tolnet.larc.nasa.gov/api", `/document/download/${enc(id)}`, headers);
|
|
81
|
+
}
|
|
82
|
+
catch (error) {
|
|
83
|
+
return toNasaError(error, "Failed to get document download");
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
export const nasaGetDocuments = tool({
|
|
88
|
+
description: "Tool to retrieve document information from NASA's TOLNet (Tropospheric Ozone Lidar Network) archive. Use when you need to search or browse TOLNet documents with filtering by type, keywords, or sorting options. Supports pagination for large result sets.",
|
|
89
|
+
inputSchema: z.object({
|
|
90
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
91
|
+
q: z.string().optional().describe("Search phrase or keywords to filter documents. Searches across document fields like name, author, etc."),
|
|
92
|
+
page: z.number().int().min(1).optional().describe("Starting page number (n >= 1). Use this to paginate through document results."),
|
|
93
|
+
type: z.string().optional().describe("One or more comma-separated document type IDs to filter by. Example: '1,3' returns only documents of types 1 and 3."),
|
|
94
|
+
order: z.enum(["display_date", "document_name", "author", "document_type_name", "public"]).optional().describe("Order options for document results."),
|
|
95
|
+
orderDirection: z.enum(["asc", "desc"]).optional().describe("Sort direction options."),
|
|
96
|
+
}),
|
|
97
|
+
execute: async ({ nasaApiKey, q, page, type, order, orderDirection }) => {
|
|
98
|
+
try {
|
|
99
|
+
const query = {};
|
|
100
|
+
if (q !== undefined)
|
|
101
|
+
query["q"] = q;
|
|
102
|
+
if (type !== undefined)
|
|
103
|
+
query["type"] = type;
|
|
104
|
+
if (order !== undefined)
|
|
105
|
+
query["order"] = order;
|
|
106
|
+
if (orderDirection !== undefined)
|
|
107
|
+
query["order_direction"] = orderDirection;
|
|
108
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/documents/${page ?? 1}`, { query });
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
return toNasaError(error, "Failed to get documents");
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
export const nasaGetTolnetData = tool({
|
|
116
|
+
description: "Tool to retrieve information about TOLNet (Tropospheric Ozone Lidar Network) data files. Use when you need to search or browse available TOLNet atmospheric data with filtering by instrument, product type, date ranges, or geographic location. Returns metadata including file details, temporal coverage, spatial location, and access information. Data is paginated with 40 items per page.",
|
|
117
|
+
inputSchema: z.object({
|
|
118
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
119
|
+
page: z.number().int().min(1).optional().describe("Page number for paginated results. This API returns data file info 40 items at a time. Each group of 40 is one page of data. Must be 1 or greater."),
|
|
120
|
+
order: z.enum(["data_date", "upload_date", "instrument_group_name", "product_type_name", "processing_type_name", "file_type_name", "file_name"]).optional().describe("Valid order fields for TOLNet data."),
|
|
121
|
+
radius: z.number().min(0).max(1000).optional().describe("How many kilometers away from the provided latitude and longitude should the API search? Only used if latitude and/or longitude is provided. Default is 100 km. Must be a real number between 0 and 1000 inclusive."),
|
|
122
|
+
latitude: z.number().min(-90).max(90).optional().describe("Search for data with the given latitude, within the provided radius parameter. Must be a real number between -90 and 90 inclusive. If you provide a latitude, you also need to provide a longitude."),
|
|
123
|
+
maxDate: z.string().optional().describe("Exclude all data after this date. Must be in YYYY-MM-DD format (e.g., '2024-05-01')."),
|
|
124
|
+
minDate: z.string().optional().describe("Exclude all data before this date. Must be in YYYY-MM-DD format (e.g., '2021-05-01')."),
|
|
125
|
+
fileType: z.string().optional().describe("One or more comma-separated file_type IDs to filter by (e.g., '1')."),
|
|
126
|
+
longitude: z.number().min(-180).max(180).optional().describe("Search for data with the given longitude, within the provided radius parameter. Must be a real number between -180 and 180 inclusive. If you provide a longitude, you also need to provide a latitude."),
|
|
127
|
+
maxLatitude: z.number().min(-90).max(90).optional().describe("One of the 4 parameters needed to perform a lat/long bounding box search. All 4 are needed: minLatitude, minLongitude, maxLatitude, and maxLongitude. Must be a real number between -90 and 90 inclusive."),
|
|
128
|
+
minLatitude: z.number().min(-90).max(90).optional().describe("One of the 4 parameters needed to perform a lat/long bounding box search. All 4 are needed: minLatitude, minLongitude, maxLatitude, and maxLongitude. Must be a real number between -90 and 90 inclusive."),
|
|
129
|
+
maxLongitude: z.number().min(-180).max(180).optional().describe("One of the 4 parameters needed to perform a lat/long bounding box search. All 4 are needed: minLatitude, minLongitude, maxLatitude, and maxLongitude. Must be a real number between -180 and 180 inclusive."),
|
|
130
|
+
minLongitude: z.number().min(-180).max(180).optional().describe("One of the 4 parameters needed to perform a lat/long bounding box search. All 4 are needed: minLatitude, minLongitude, maxLatitude, and maxLongitude. Must be a real number between -180 and 180 inclusive."),
|
|
131
|
+
productType: z.string().optional().describe("One or more comma-separated product_type IDs to filter by (e.g., '5')."),
|
|
132
|
+
nearRealTime: z.string().optional().describe("Filter by files that are near real time or not. Use 'true' to return only near real time files, 'false' to return only non-near real time files. If omitted, returns both."),
|
|
133
|
+
maxUploadDate: z.string().optional().describe("Exclude all data uploaded after this date. Must be in YYYY-MM-DD format (e.g., '2024-05-01')."),
|
|
134
|
+
minUploadDate: z.string().optional().describe("Exclude all data uploaded before this date. Must be in YYYY-MM-DD format (e.g., '2024-05-01')."),
|
|
135
|
+
orderDirection: z.enum(["asc", "desc"]).optional().describe("Order direction for sorting results."),
|
|
136
|
+
processingType: z.string().optional().describe("One or more comma-separated processing_type IDs to filter by (e.g., '2')."),
|
|
137
|
+
instrumentGroup: z.string().optional().describe("One or more comma-separated instrument_group IDs to filter by (e.g., '1,2,3,4')."),
|
|
138
|
+
}),
|
|
139
|
+
execute: async ({ nasaApiKey, page, order, radius, latitude, maxDate, minDate, fileType, longitude, maxLatitude, minLatitude, maxLongitude, minLongitude, productType, nearRealTime, maxUploadDate, minUploadDate, orderDirection, processingType, instrumentGroup }) => {
|
|
140
|
+
try {
|
|
141
|
+
const query = {};
|
|
142
|
+
if (instrumentGroup !== undefined)
|
|
143
|
+
query["instrument_group"] = instrumentGroup;
|
|
144
|
+
if (productType !== undefined)
|
|
145
|
+
query["product_type"] = productType;
|
|
146
|
+
if (processingType !== undefined)
|
|
147
|
+
query["processing_type"] = processingType;
|
|
148
|
+
if (fileType !== undefined)
|
|
149
|
+
query["file_type"] = fileType;
|
|
150
|
+
if (nearRealTime !== undefined)
|
|
151
|
+
query["near_real_time"] = nearRealTime;
|
|
152
|
+
if (minDate !== undefined)
|
|
153
|
+
query["min_date"] = minDate;
|
|
154
|
+
if (maxDate !== undefined)
|
|
155
|
+
query["max_date"] = maxDate;
|
|
156
|
+
if (minUploadDate !== undefined)
|
|
157
|
+
query["min_upload_date"] = minUploadDate;
|
|
158
|
+
if (maxUploadDate !== undefined)
|
|
159
|
+
query["max_upload_date"] = maxUploadDate;
|
|
160
|
+
if (latitude !== undefined)
|
|
161
|
+
query["latitude"] = latitude;
|
|
162
|
+
if (longitude !== undefined)
|
|
163
|
+
query["longitude"] = longitude;
|
|
164
|
+
if (radius !== undefined)
|
|
165
|
+
query["radius"] = radius;
|
|
166
|
+
if (minLatitude !== undefined)
|
|
167
|
+
query["minLatitude"] = minLatitude;
|
|
168
|
+
if (minLongitude !== undefined)
|
|
169
|
+
query["minLongitude"] = minLongitude;
|
|
170
|
+
if (maxLatitude !== undefined)
|
|
171
|
+
query["maxLatitude"] = maxLatitude;
|
|
172
|
+
if (maxLongitude !== undefined)
|
|
173
|
+
query["maxLongitude"] = maxLongitude;
|
|
174
|
+
if (order !== undefined)
|
|
175
|
+
query["order"] = order;
|
|
176
|
+
if (orderDirection !== undefined)
|
|
177
|
+
query["order_direction"] = orderDirection;
|
|
178
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/data/${page ?? 1}`, { query });
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
return toNasaError(error, "Failed to get tolnet data");
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
export const nasaGetTolnetDataCalendar = tool({
|
|
186
|
+
description: "Tool to retrieve a date-driven list of all available TOLNet (Tropospheric Ozone Lidar Network) data. Use when you need to query available TOLNet data files filtered by instrument group and file type, with optional filters for product type and processing type. Returns metadata including file names, locations, dates, geographical coordinates, and accessibility status.",
|
|
187
|
+
inputSchema: z.object({
|
|
188
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
189
|
+
fileType: z.string().describe("One file_type id to filter TOLNet data. This identifies the specific file type to retrieve."),
|
|
190
|
+
productType: z.string().optional().describe("One product_type id to filter TOLNet data (optional). Use this to narrow results to a specific product type."),
|
|
191
|
+
processingType: z.string().optional().describe("One processing_type id to filter TOLNet data (optional). Use this to narrow results to a specific processing type."),
|
|
192
|
+
instrumentGroup: z.string().describe("One instrument_group id to filter TOLNet data. This identifies the specific instrument group for which to retrieve available data."),
|
|
193
|
+
}),
|
|
194
|
+
execute: async ({ nasaApiKey, instrumentGroup, fileType, productType, processingType }) => {
|
|
195
|
+
try {
|
|
196
|
+
const query = {};
|
|
197
|
+
if (instrumentGroup !== undefined)
|
|
198
|
+
query["instrument_group"] = instrumentGroup;
|
|
199
|
+
if (fileType !== undefined)
|
|
200
|
+
query["file_type"] = fileType;
|
|
201
|
+
if (productType !== undefined)
|
|
202
|
+
query["product_type"] = productType;
|
|
203
|
+
if (processingType !== undefined)
|
|
204
|
+
query["processing_type"] = processingType;
|
|
205
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/data/calendar`, { query });
|
|
206
|
+
}
|
|
207
|
+
catch (error) {
|
|
208
|
+
return toNasaError(error, "Failed to get tolnet data calendar");
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
export const nasaGetFileTypes = tool({
|
|
213
|
+
description: "Tool to retrieve information on all data file types from NASA's TOLNET API. Use when you need to discover available file type identifiers, names, and descriptions.",
|
|
214
|
+
inputSchema: z.object({
|
|
215
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
216
|
+
}),
|
|
217
|
+
execute: async ({ nasaApiKey }) => {
|
|
218
|
+
try {
|
|
219
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/data/file_types`);
|
|
220
|
+
}
|
|
221
|
+
catch (error) {
|
|
222
|
+
return toNasaError(error, "Failed to get file types");
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
});
|
|
226
|
+
export const nasaGetInstrumentGroups = tool({
|
|
227
|
+
description: "Tool to retrieve information on all instrument groups from NASA's TOLNET API. Use when you need to get instrument group details including IDs, names, descriptions, and Principal Investigators.",
|
|
228
|
+
inputSchema: z.object({
|
|
229
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
230
|
+
}),
|
|
231
|
+
execute: async ({ nasaApiKey }) => {
|
|
232
|
+
try {
|
|
233
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/instruments/groups`);
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
return toNasaError(error, "Failed to get instrument groups");
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
});
|
|
240
|
+
export const nasaGetProductTypes = tool({
|
|
241
|
+
description: "Tool to retrieve all data product types from NASA's TOLNET (TOLNet Ozone Lidar Network) API. Use when you need to discover available product types or get product type metadata including names, descriptions, and display ordering.",
|
|
242
|
+
inputSchema: z.object({
|
|
243
|
+
nasaApiKey: z.string().optional().describe("NASA API key (injected when connected; only sent to api.nasa.gov endpoints)"),
|
|
244
|
+
}),
|
|
245
|
+
execute: async ({ nasaApiKey }) => {
|
|
246
|
+
try {
|
|
247
|
+
return await nasaGet("https://tolnet.larc.nasa.gov/api", `/data/product_types`);
|
|
248
|
+
}
|
|
249
|
+
catch (error) {
|
|
250
|
+
return toNasaError(error, "Failed to get product types");
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
//# sourceMappingURL=tolnet.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const SVG = `<svg viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M63.333 32.567c-5.2.866-9.566 3-12.833 6.266-3.867 3.867-5.833 8.5-6.5 15.367-.3 3.133-.467 15.467-.2 15.467.067 0 .7-.234 1.4-.534 1.633-.7 5.167-.7 7-.033l1.4.5.167-8.033c.166-8.567.366-9.867 1.966-13.067 1.1-2.133 3.767-4.633 6.034-5.667 2.6-1.2 6.4-1.666 9.333-1.2 6.267 1.034 10 4.434 11.567 10.5.633 2.434.666 3.7.666 17.1v14.434H93.4L93.233 67.9c-.1-14.9-.166-15.9-.866-18.567-1.9-7.4-6.5-12.766-12.934-15.2-3.433-1.3-6.7-1.8-11.2-1.766-2.233.033-4.433.133-4.9.2z" fill="#000"/><path d="M22.733 57.2c-2.866 1.433-4.4 4-4.4 7.467 0 1.1.2 2.5.467 3.133.633 1.567 2.433 3.467 4 4.3 1.9 1 5.5 1 7.367.033l1.366-.7 4.267 2.9 4.267 2.934V81.7L35.8 84.633l-4.3 2.934-1.1-.667c-1.6-.933-4.7-1.133-6.6-.4-2 .767-4.067 2.6-4.833 4.333-.834 1.767-.834 5.234 0 7 .7 1.567 2.333 3.3 3.8 4.067.6.3 2.033.6 3.233.7 2.8.2 5.167-.733 6.867-2.733 1.366-1.6 2.266-4.4 2.033-6.334l-.167-1.366 4.3-2.9 4.3-2.9 1.534.7c2.333 1 5.8.766 8-.567 2.4-1.5 3.6-3.633 3.733-6.633.1-2.1 0-2.567-.833-4.2-2.167-4.134-7-5.7-11.134-3.634l-1.233.6-4.233-2.9-4.234-2.9-.1-2.333c-.066-2.8-.866-4.6-2.833-6.233-2.5-2.134-6.233-2.567-9.267-1.067z" fill="#018BFF"/></svg>`;
|
|
2
|
+
export const NEO4J_ICON = {
|
|
3
|
+
kind: 'svg',
|
|
4
|
+
dataUri: `data:image/svg+xml;base64,${Buffer.from(SVG).toString('base64')}`,
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineToolkit, defineTool } from '../../core/define.js';
|
|
2
|
+
import { inferToolScope } from '../../core/scope.js';
|
|
3
|
+
import { NEO4J_ICON } from './icon.js';
|
|
4
|
+
import { neo4jTools } from './tools/index.js';
|
|
5
|
+
export default defineToolkit({
|
|
6
|
+
id: 'neo4j',
|
|
7
|
+
displayName: 'Neo4j',
|
|
8
|
+
shortDescription: 'Aura instances, snapshots, projects, users, IP filters, agents, and GDS sessions.',
|
|
9
|
+
category: 'Data & Analytics',
|
|
10
|
+
icon: NEO4J_ICON,
|
|
11
|
+
auth: {
|
|
12
|
+
type: 'basic_auth',
|
|
13
|
+
tokenField: 'neo4jCredentials',
|
|
14
|
+
provider: {
|
|
15
|
+
connectDescription: 'Connect Neo4j with Aura API client credentials. Create them in the Aura Console under Account Settings > Client credentials (Aura API). Paste as "clientId:clientSecret". Tools exchange them for a short-lived bearer token automatically.',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
allowedHosts: ['api.neo4j.io'],
|
|
19
|
+
tools: neo4jTools.map((entry) => defineTool({
|
|
20
|
+
name: entry.name,
|
|
21
|
+
description: entry.description,
|
|
22
|
+
tool: entry.tool,
|
|
23
|
+
requiredAuth: entry.requiredAuth,
|
|
24
|
+
scope: entry.scope ?? inferToolScope(entry.name),
|
|
25
|
+
})),
|
|
26
|
+
meta: {
|
|
27
|
+
since: '0.0.9',
|
|
28
|
+
homepage: 'https://neo4j.com',
|
|
29
|
+
docsUrl: 'https://neo4j.com/docs/aura/api/authentication/',
|
|
30
|
+
apiDocsUrl: 'https://neo4j.com/docs/aura/platform/api/specification/',
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const neo4jEstimateGdsSessionSize: import("ai").Tool<{
|
|
2
|
+
nodeCount: number;
|
|
3
|
+
relationshipCount: number;
|
|
4
|
+
neo4jCredentials?: string | undefined;
|
|
5
|
+
nodeLabelCount?: number | undefined;
|
|
6
|
+
nodePropertyCount?: number | undefined;
|
|
7
|
+
relationshipPropertyCount?: number | undefined;
|
|
8
|
+
algorithmCategories?: string[] | undefined;
|
|
9
|
+
}, any>;
|
|
10
|
+
export declare const neo4jListGdsSessions: import("ai").Tool<{
|
|
11
|
+
instanceId?: string | undefined;
|
|
12
|
+
tenantId?: string | undefined;
|
|
13
|
+
neo4jCredentials?: string | undefined;
|
|
14
|
+
organizationId?: string | undefined;
|
|
15
|
+
}, any>;
|
|
16
|
+
export declare const neo4jAggregateDirectors: import("ai").Tool<{
|
|
17
|
+
instanceId: string;
|
|
18
|
+
graphQlEndpoint: string;
|
|
19
|
+
neo4jCredentials?: string | undefined;
|
|
20
|
+
}, any>;
|
|
21
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { auraRequest } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
export const neo4jEstimateGdsSessionSize = tool({
|
|
7
|
+
description: 'Estimate GDS session memory and size tier from node/relationship counts and algorithm categories. Use before creating a graph analytics session.',
|
|
8
|
+
inputSchema: z.object({
|
|
9
|
+
neo4jCredentials: tokenField,
|
|
10
|
+
nodeCount: z.number().int().min(0).describe('Number of nodes'),
|
|
11
|
+
relationshipCount: z.number().int().min(0).describe('Number of relationships'),
|
|
12
|
+
nodeLabelCount: z.number().int().min(0).optional().describe('Labels per node'),
|
|
13
|
+
nodePropertyCount: z.number().int().min(0).optional().describe('Properties per node'),
|
|
14
|
+
relationshipPropertyCount: z.number().int().min(0).optional().describe('Properties per relationship'),
|
|
15
|
+
algorithmCategories: z
|
|
16
|
+
.array(z.string())
|
|
17
|
+
.optional()
|
|
18
|
+
.describe("Algorithm categories, e.g. ['pathfinding', 'community_detection', 'centrality', 'similarity', 'link_prediction']"),
|
|
19
|
+
}),
|
|
20
|
+
execute: async ({ neo4jCredentials, nodeCount, relationshipCount, nodeLabelCount, nodePropertyCount, relationshipPropertyCount, algorithmCategories }) => {
|
|
21
|
+
return auraRequest(neo4jCredentials, '/v1/graph-analytics/sessions/sizing', {
|
|
22
|
+
method: 'POST',
|
|
23
|
+
body: {
|
|
24
|
+
node_count: nodeCount,
|
|
25
|
+
relationship_count: relationshipCount,
|
|
26
|
+
node_label_count: nodeLabelCount,
|
|
27
|
+
node_property_count: nodePropertyCount,
|
|
28
|
+
relationship_property_count: relationshipPropertyCount,
|
|
29
|
+
algorithm_categories: algorithmCategories,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export const neo4jListGdsSessions = tool({
|
|
35
|
+
description: 'List GDS sessions with status, memory, host, and expiry. Optionally filter by instance, tenant, or organization. Read-only.',
|
|
36
|
+
inputSchema: z.object({
|
|
37
|
+
neo4jCredentials: tokenField,
|
|
38
|
+
instanceId: z.string().optional().describe('Filter by instance ID'),
|
|
39
|
+
tenantId: z.string().optional().describe('Filter by project/tenant ID'),
|
|
40
|
+
organizationId: z.string().optional().describe('Filter by organization ID'),
|
|
41
|
+
}),
|
|
42
|
+
execute: async ({ neo4jCredentials, instanceId, tenantId, organizationId }) => {
|
|
43
|
+
return auraRequest(neo4jCredentials, '/v1/graph-analytics/sessions', {
|
|
44
|
+
query: { instance_id: instanceId, tenant_id: tenantId, organization_id: organizationId },
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
export const neo4jAggregateDirectors = tool({
|
|
49
|
+
description: 'Count directors via a directorsAggregate GraphQL query. Only use when a GraphQL movies API with a Director type is available; pass the instance ID the data belongs to.',
|
|
50
|
+
inputSchema: z.object({
|
|
51
|
+
neo4jCredentials: tokenField,
|
|
52
|
+
instanceId: z.string().describe('Aura instance ID the request relates to'),
|
|
53
|
+
graphQlEndpoint: z
|
|
54
|
+
.string()
|
|
55
|
+
.describe('GraphQL HTTP endpoint exposing a directorsAggregate query, e.g. "https://example.com/graphql"'),
|
|
56
|
+
}),
|
|
57
|
+
execute: async ({ neo4jCredentials, instanceId, graphQlEndpoint }) => {
|
|
58
|
+
if (!neo4jCredentials) {
|
|
59
|
+
return { error: 'Neo4j Aura API credentials are required. Connect Neo4j first.' };
|
|
60
|
+
}
|
|
61
|
+
let endpoint;
|
|
62
|
+
try {
|
|
63
|
+
endpoint = new URL(graphQlEndpoint);
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
return { error: 'Invalid graphQlEndpoint. Provide a full HTTP(S) URL.' };
|
|
67
|
+
}
|
|
68
|
+
if (endpoint.protocol !== 'https:' && endpoint.protocol !== 'http:') {
|
|
69
|
+
return { error: 'Invalid graphQlEndpoint. Provide a full HTTP(S) URL.' };
|
|
70
|
+
}
|
|
71
|
+
try {
|
|
72
|
+
const response = await fetch(endpoint.toString(), {
|
|
73
|
+
method: 'POST',
|
|
74
|
+
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
|
75
|
+
body: JSON.stringify({ query: '{ directorsAggregate { count } }', variables: { instanceId } }),
|
|
76
|
+
});
|
|
77
|
+
if (!response.ok) {
|
|
78
|
+
const details = await response.json().catch(() => ({}));
|
|
79
|
+
return { error: `GraphQL request failed with status ${response.status}`, details };
|
|
80
|
+
}
|
|
81
|
+
return await response.json();
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
return {
|
|
85
|
+
error: 'Error executing directorsAggregate query',
|
|
86
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=analytics.js.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
const AURA_API = 'https://api.neo4j.io';
|
|
3
|
+
const TOKEN_URL = `${AURA_API}/oauth/token`;
|
|
4
|
+
const tokenCache = new Map();
|
|
5
|
+
function credentialsOf(neo4jCredentials) {
|
|
6
|
+
const idx = (neo4jCredentials ?? '').indexOf(':');
|
|
7
|
+
if (idx <= 0)
|
|
8
|
+
return null;
|
|
9
|
+
return {
|
|
10
|
+
clientId: neo4jCredentials.slice(0, idx),
|
|
11
|
+
clientSecret: neo4jCredentials.slice(idx + 1),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
async function getAccessToken(neo4jCredentials) {
|
|
15
|
+
const cached = tokenCache.get(neo4jCredentials);
|
|
16
|
+
if (cached && cached.expiresAt > Date.now() + 60_000)
|
|
17
|
+
return cached.token;
|
|
18
|
+
const creds = credentialsOf(neo4jCredentials);
|
|
19
|
+
if (!creds)
|
|
20
|
+
return null;
|
|
21
|
+
const basic = Buffer.from(`${creds.clientId}:${creds.clientSecret}`).toString('base64');
|
|
22
|
+
const response = await fetch(TOKEN_URL, {
|
|
23
|
+
method: 'POST',
|
|
24
|
+
headers: {
|
|
25
|
+
Authorization: `Basic ${basic}`,
|
|
26
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
27
|
+
},
|
|
28
|
+
body: 'grant_type=client_credentials',
|
|
29
|
+
});
|
|
30
|
+
if (!response.ok)
|
|
31
|
+
return null;
|
|
32
|
+
const data = await response.json().catch(() => null);
|
|
33
|
+
if (!data?.access_token)
|
|
34
|
+
return null;
|
|
35
|
+
tokenCache.set(neo4jCredentials, {
|
|
36
|
+
token: data.access_token,
|
|
37
|
+
expiresAt: Date.now() + (data.expires_in ?? 3600) * 1000,
|
|
38
|
+
});
|
|
39
|
+
return data.access_token;
|
|
40
|
+
}
|
|
41
|
+
export async function auraRequest(neo4jCredentials, path, options = {}) {
|
|
42
|
+
if (!neo4jCredentials) {
|
|
43
|
+
return { error: 'Neo4j Aura API credentials are required. Connect Neo4j first.' };
|
|
44
|
+
}
|
|
45
|
+
if (!credentialsOf(neo4jCredentials)) {
|
|
46
|
+
return { error: 'Invalid Neo4j credentials. Expected "clientId:clientSecret". Reconnect Neo4j.' };
|
|
47
|
+
}
|
|
48
|
+
const params = new URLSearchParams();
|
|
49
|
+
if (options.query) {
|
|
50
|
+
for (const [key, value] of Object.entries(options.query)) {
|
|
51
|
+
if (value !== undefined && value !== null && value !== '') {
|
|
52
|
+
params.append(key, String(value));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const qs = params.toString();
|
|
57
|
+
const url = `${AURA_API}${path}${qs ? `?${qs}` : ''}`;
|
|
58
|
+
try {
|
|
59
|
+
const doFetch = async (token) => fetch(url, {
|
|
60
|
+
method: options.method ?? 'GET',
|
|
61
|
+
headers: {
|
|
62
|
+
Authorization: `Bearer ${token}`,
|
|
63
|
+
'Content-Type': 'application/json',
|
|
64
|
+
Accept: 'application/json',
|
|
65
|
+
},
|
|
66
|
+
body: options.body !== undefined ? JSON.stringify(options.body) : undefined,
|
|
67
|
+
});
|
|
68
|
+
let token = await getAccessToken(neo4jCredentials);
|
|
69
|
+
if (!token) {
|
|
70
|
+
return { error: 'Failed to authenticate with Neo4j Aura API. Check your client ID and secret.' };
|
|
71
|
+
}
|
|
72
|
+
let response = await doFetch(token);
|
|
73
|
+
if (response.status === 401 || response.status === 403) {
|
|
74
|
+
tokenCache.delete(neo4jCredentials);
|
|
75
|
+
token = await getAccessToken(neo4jCredentials);
|
|
76
|
+
if (!token) {
|
|
77
|
+
return { error: 'Failed to authenticate with Neo4j Aura API. Check your client ID and secret.' };
|
|
78
|
+
}
|
|
79
|
+
response = await doFetch(token);
|
|
80
|
+
}
|
|
81
|
+
if (!response.ok) {
|
|
82
|
+
const details = await response.json().catch(() => ({}));
|
|
83
|
+
return { error: `Neo4j Aura API request failed with status ${response.status}`, details };
|
|
84
|
+
}
|
|
85
|
+
if (response.status === 204 || response.status === 202) {
|
|
86
|
+
const text = await response.text();
|
|
87
|
+
if (!text)
|
|
88
|
+
return { success: true, status: response.status };
|
|
89
|
+
try {
|
|
90
|
+
return JSON.parse(text);
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
return { success: true, status: response.status };
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return await response.json();
|
|
97
|
+
}
|
|
98
|
+
catch (error) {
|
|
99
|
+
return {
|
|
100
|
+
error: 'Error calling Neo4j Aura API',
|
|
101
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=client.js.map
|