@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,38 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { hostingerRequest } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
export const hostingerListOrders = tool({
|
|
7
|
+
description: 'List hosting orders (paginated), including shared-access accounts. Use to review orders; filter by status or order IDs.',
|
|
8
|
+
inputSchema: z.object({
|
|
9
|
+
hostingerApiKey: tokenField,
|
|
10
|
+
page: z.number().int().min(1).optional().describe('Page number'),
|
|
11
|
+
perPage: z.number().int().min(1).max(100).optional().describe('Items per page (default 25)'),
|
|
12
|
+
statuses: z.array(z.string()).optional().describe('Filter by statuses, e.g. ["active", "suspended"]'),
|
|
13
|
+
orderIds: z.array(z.number().int()).optional().describe('Filter by specific order IDs'),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ hostingerApiKey, page, perPage, statuses, orderIds }) => {
|
|
16
|
+
return hostingerRequest(hostingerApiKey, '/api/hosting/v1/orders', {
|
|
17
|
+
query: { page, per_page: perPage, statuses, order_ids: orderIds },
|
|
18
|
+
});
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
export const hostingerListWebsites = tool({
|
|
22
|
+
description: 'List websites (main and addon) accessible to the account, paginated. Use to review hosted sites; filter by domain, order, username, or enabled status.',
|
|
23
|
+
inputSchema: z.object({
|
|
24
|
+
hostingerApiKey: tokenField,
|
|
25
|
+
page: z.number().int().min(1).optional().describe('Page number'),
|
|
26
|
+
perPage: z.number().int().min(1).max(100).optional().describe('Items per page (1-100)'),
|
|
27
|
+
domain: z.string().optional().describe('Filter by exact domain name'),
|
|
28
|
+
orderId: z.number().int().optional().describe('Filter by order ID'),
|
|
29
|
+
username: z.string().optional().describe('Filter by hosting username'),
|
|
30
|
+
isEnabled: z.boolean().optional().describe('Filter by enabled status'),
|
|
31
|
+
}),
|
|
32
|
+
execute: async ({ hostingerApiKey, page, perPage, domain, orderId, username, isEnabled }) => {
|
|
33
|
+
return hostingerRequest(hostingerApiKey, '/api/hosting/v1/websites', {
|
|
34
|
+
query: { page, per_page: perPage, domain, order_id: orderId, username, is_enabled: isEnabled },
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=hosting.js.map
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { hostingerCheckDomainAvailability, hostingerListDomains, hostingerGetDomainForwarding, hostingerGenerateFreeSubdomain, hostingerVerifyDomainOwnership } from './domains.js';
|
|
2
|
+
import { hostingerCreateWhoisProfile, hostingerGetWhoisProfile, hostingerGetWhoisProfileUsage, hostingerListWhoisProfiles } from './whois.js';
|
|
3
|
+
import { hostingerGetDnsRecords, hostingerValidateDnsRecords, hostingerListDnsSnapshots } from './dns.js';
|
|
4
|
+
import { hostingerListVirtualMachines, hostingerListTemplates, hostingerGetTemplateDetails, hostingerListDataCenters, hostingerCreatePublicKey, hostingerListPublicKeys, hostingerDeletePublicKey } from './vps.js';
|
|
5
|
+
import { hostingerListCatalogItems, hostingerListPaymentMethods, hostingerListSubscriptions } from './billing.js';
|
|
6
|
+
import { hostingerListOrders, hostingerListWebsites } from './hosting.js';
|
|
7
|
+
export { hostingerCheckDomainAvailability, hostingerListDomains, hostingerGetDomainForwarding, hostingerGenerateFreeSubdomain, hostingerVerifyDomainOwnership, hostingerCreateWhoisProfile, hostingerGetWhoisProfile, hostingerGetWhoisProfileUsage, hostingerListWhoisProfiles, hostingerGetDnsRecords, hostingerValidateDnsRecords, hostingerListDnsSnapshots, hostingerListVirtualMachines, hostingerListTemplates, hostingerGetTemplateDetails, hostingerListDataCenters, hostingerCreatePublicKey, hostingerListPublicKeys, hostingerDeletePublicKey, hostingerListCatalogItems, hostingerListPaymentMethods, hostingerListSubscriptions, hostingerListOrders, hostingerListWebsites, };
|
|
8
|
+
export declare const hostingerTools: ({
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
tool: import("ai").Tool<{
|
|
12
|
+
domain: string;
|
|
13
|
+
tlds: string[];
|
|
14
|
+
hostingerApiKey?: string | undefined;
|
|
15
|
+
withAlternatives?: boolean | undefined;
|
|
16
|
+
}, any>;
|
|
17
|
+
requiredAuth: "hostingerApiKey";
|
|
18
|
+
scope: "read";
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
tool: import("ai").Tool<{
|
|
23
|
+
hostingerApiKey?: string | undefined;
|
|
24
|
+
}, any>;
|
|
25
|
+
requiredAuth: "hostingerApiKey";
|
|
26
|
+
scope: "read";
|
|
27
|
+
} | {
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
tool: import("ai").Tool<{
|
|
31
|
+
domain: string;
|
|
32
|
+
hostingerApiKey?: string | undefined;
|
|
33
|
+
}, any>;
|
|
34
|
+
requiredAuth: "hostingerApiKey";
|
|
35
|
+
scope: "read";
|
|
36
|
+
} | {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
tool: import("ai").Tool<{
|
|
40
|
+
hostingerApiKey?: string | undefined;
|
|
41
|
+
}, any>;
|
|
42
|
+
requiredAuth: "hostingerApiKey";
|
|
43
|
+
scope: "write";
|
|
44
|
+
} | {
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
tool: import("ai").Tool<{
|
|
48
|
+
country: string;
|
|
49
|
+
entityType: "organization" | "individual";
|
|
50
|
+
tld: string;
|
|
51
|
+
whoisDetails: {
|
|
52
|
+
email: string;
|
|
53
|
+
address: string;
|
|
54
|
+
firstName: string;
|
|
55
|
+
lastName: string;
|
|
56
|
+
city: string;
|
|
57
|
+
country?: string | undefined;
|
|
58
|
+
state?: string | undefined;
|
|
59
|
+
countryCode?: string | undefined;
|
|
60
|
+
postalCode?: string | undefined;
|
|
61
|
+
companyName?: string | undefined;
|
|
62
|
+
phoneCc?: string | undefined;
|
|
63
|
+
phoneNumber?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
hostingerApiKey?: string | undefined;
|
|
66
|
+
}, any>;
|
|
67
|
+
requiredAuth: "hostingerApiKey";
|
|
68
|
+
scope: "write";
|
|
69
|
+
} | {
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
tool: import("ai").Tool<{
|
|
73
|
+
whoisId: number;
|
|
74
|
+
hostingerApiKey?: string | undefined;
|
|
75
|
+
}, any>;
|
|
76
|
+
requiredAuth: "hostingerApiKey";
|
|
77
|
+
scope: "read";
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
tool: import("ai").Tool<{
|
|
82
|
+
hostingerApiKey?: string | undefined;
|
|
83
|
+
tld?: string | undefined;
|
|
84
|
+
}, any>;
|
|
85
|
+
requiredAuth: "hostingerApiKey";
|
|
86
|
+
scope: "read";
|
|
87
|
+
} | {
|
|
88
|
+
name: string;
|
|
89
|
+
description: string;
|
|
90
|
+
tool: import("ai").Tool<{
|
|
91
|
+
domain: string;
|
|
92
|
+
zone: {
|
|
93
|
+
type: string;
|
|
94
|
+
name: string;
|
|
95
|
+
records: {
|
|
96
|
+
content: string;
|
|
97
|
+
}[];
|
|
98
|
+
ttl?: number | undefined;
|
|
99
|
+
}[];
|
|
100
|
+
overwrite?: boolean | undefined;
|
|
101
|
+
hostingerApiKey?: string | undefined;
|
|
102
|
+
}, any>;
|
|
103
|
+
requiredAuth: "hostingerApiKey";
|
|
104
|
+
scope: "read";
|
|
105
|
+
} | {
|
|
106
|
+
name: string;
|
|
107
|
+
description: string;
|
|
108
|
+
tool: import("ai").Tool<{
|
|
109
|
+
templateId: number;
|
|
110
|
+
hostingerApiKey?: string | undefined;
|
|
111
|
+
}, any>;
|
|
112
|
+
requiredAuth: "hostingerApiKey";
|
|
113
|
+
scope: "read";
|
|
114
|
+
} | {
|
|
115
|
+
name: string;
|
|
116
|
+
description: string;
|
|
117
|
+
tool: import("ai").Tool<{
|
|
118
|
+
name: string;
|
|
119
|
+
key: string;
|
|
120
|
+
hostingerApiKey?: string | undefined;
|
|
121
|
+
}, any>;
|
|
122
|
+
requiredAuth: "hostingerApiKey";
|
|
123
|
+
scope: "write";
|
|
124
|
+
} | {
|
|
125
|
+
name: string;
|
|
126
|
+
description: string;
|
|
127
|
+
tool: import("ai").Tool<{
|
|
128
|
+
page?: number | undefined;
|
|
129
|
+
hostingerApiKey?: string | undefined;
|
|
130
|
+
}, any>;
|
|
131
|
+
requiredAuth: "hostingerApiKey";
|
|
132
|
+
scope: "read";
|
|
133
|
+
} | {
|
|
134
|
+
name: string;
|
|
135
|
+
description: string;
|
|
136
|
+
tool: import("ai").Tool<{
|
|
137
|
+
publicKeyId: number;
|
|
138
|
+
hostingerApiKey?: string | undefined;
|
|
139
|
+
}, any>;
|
|
140
|
+
requiredAuth: "hostingerApiKey";
|
|
141
|
+
scope: "delete";
|
|
142
|
+
} | {
|
|
143
|
+
name: string;
|
|
144
|
+
description: string;
|
|
145
|
+
tool: import("ai").Tool<{
|
|
146
|
+
name?: string | undefined;
|
|
147
|
+
hostingerApiKey?: string | undefined;
|
|
148
|
+
category?: "DOMAIN" | "VPS" | undefined;
|
|
149
|
+
}, any>;
|
|
150
|
+
requiredAuth: "hostingerApiKey";
|
|
151
|
+
scope: "read";
|
|
152
|
+
} | {
|
|
153
|
+
name: string;
|
|
154
|
+
description: string;
|
|
155
|
+
tool: import("ai").Tool<{
|
|
156
|
+
perPage?: number | undefined;
|
|
157
|
+
page?: number | undefined;
|
|
158
|
+
statuses?: string[] | undefined;
|
|
159
|
+
hostingerApiKey?: string | undefined;
|
|
160
|
+
orderIds?: number[] | undefined;
|
|
161
|
+
}, any>;
|
|
162
|
+
requiredAuth: "hostingerApiKey";
|
|
163
|
+
scope: "read";
|
|
164
|
+
} | {
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
tool: import("ai").Tool<{
|
|
168
|
+
perPage?: number | undefined;
|
|
169
|
+
page?: number | undefined;
|
|
170
|
+
username?: string | undefined;
|
|
171
|
+
domain?: string | undefined;
|
|
172
|
+
hostingerApiKey?: string | undefined;
|
|
173
|
+
orderId?: number | undefined;
|
|
174
|
+
isEnabled?: boolean | undefined;
|
|
175
|
+
}, any>;
|
|
176
|
+
requiredAuth: "hostingerApiKey";
|
|
177
|
+
scope: "read";
|
|
178
|
+
})[];
|
|
179
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { hostingerCheckDomainAvailability, hostingerListDomains, hostingerGetDomainForwarding, hostingerGenerateFreeSubdomain, hostingerVerifyDomainOwnership, } from './domains.js';
|
|
3
|
+
import { hostingerCreateWhoisProfile, hostingerGetWhoisProfile, hostingerGetWhoisProfileUsage, hostingerListWhoisProfiles, } from './whois.js';
|
|
4
|
+
import { hostingerGetDnsRecords, hostingerValidateDnsRecords, hostingerListDnsSnapshots } from './dns.js';
|
|
5
|
+
import { hostingerListVirtualMachines, hostingerListTemplates, hostingerGetTemplateDetails, hostingerListDataCenters, hostingerCreatePublicKey, hostingerListPublicKeys, hostingerDeletePublicKey, } from './vps.js';
|
|
6
|
+
import { hostingerListCatalogItems, hostingerListPaymentMethods, hostingerListSubscriptions } from './billing.js';
|
|
7
|
+
import { hostingerListOrders, hostingerListWebsites } from './hosting.js';
|
|
8
|
+
export { hostingerCheckDomainAvailability, hostingerListDomains, hostingerGetDomainForwarding, hostingerGenerateFreeSubdomain, hostingerVerifyDomainOwnership, hostingerCreateWhoisProfile, hostingerGetWhoisProfile, hostingerGetWhoisProfileUsage, hostingerListWhoisProfiles, hostingerGetDnsRecords, hostingerValidateDnsRecords, hostingerListDnsSnapshots, hostingerListVirtualMachines, hostingerListTemplates, hostingerGetTemplateDetails, hostingerListDataCenters, hostingerCreatePublicKey, hostingerListPublicKeys, hostingerDeletePublicKey, hostingerListCatalogItems, hostingerListPaymentMethods, hostingerListSubscriptions, hostingerListOrders, hostingerListWebsites, };
|
|
9
|
+
export const hostingerTools = [
|
|
10
|
+
{ name: 'HostingerCheckDomainAvailability', description: hostingerCheckDomainAvailability.description, tool: hostingerCheckDomainAvailability, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
11
|
+
{ name: 'HostingerListDomains', description: hostingerListDomains.description, tool: hostingerListDomains, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
12
|
+
{ name: 'HostingerGetDomainForwarding', description: hostingerGetDomainForwarding.description, tool: hostingerGetDomainForwarding, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
13
|
+
{ name: 'HostingerGenerateFreeSubdomain', description: hostingerGenerateFreeSubdomain.description, tool: hostingerGenerateFreeSubdomain, requiredAuth: 'hostingerApiKey', scope: 'write' },
|
|
14
|
+
{ name: 'HostingerVerifyDomainOwnership', description: hostingerVerifyDomainOwnership.description, tool: hostingerVerifyDomainOwnership, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
15
|
+
{ name: 'HostingerCreateWhoisProfile', description: hostingerCreateWhoisProfile.description, tool: hostingerCreateWhoisProfile, requiredAuth: 'hostingerApiKey', scope: 'write' },
|
|
16
|
+
{ name: 'HostingerGetWhoisProfile', description: hostingerGetWhoisProfile.description, tool: hostingerGetWhoisProfile, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
17
|
+
{ name: 'HostingerGetWhoisProfileUsage', description: hostingerGetWhoisProfileUsage.description, tool: hostingerGetWhoisProfileUsage, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
18
|
+
{ name: 'HostingerListWhoisProfiles', description: hostingerListWhoisProfiles.description, tool: hostingerListWhoisProfiles, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
19
|
+
{ name: 'HostingerGetDnsRecords', description: hostingerGetDnsRecords.description, tool: hostingerGetDnsRecords, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
20
|
+
{ name: 'HostingerValidateDnsRecords', description: hostingerValidateDnsRecords.description, tool: hostingerValidateDnsRecords, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
21
|
+
{ name: 'HostingerListDnsSnapshots', description: hostingerListDnsSnapshots.description, tool: hostingerListDnsSnapshots, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
22
|
+
{ name: 'HostingerListVirtualMachines', description: hostingerListVirtualMachines.description, tool: hostingerListVirtualMachines, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
23
|
+
{ name: 'HostingerListTemplates', description: hostingerListTemplates.description, tool: hostingerListTemplates, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
24
|
+
{ name: 'HostingerGetTemplateDetails', description: hostingerGetTemplateDetails.description, tool: hostingerGetTemplateDetails, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
25
|
+
{ name: 'HostingerListDataCenters', description: hostingerListDataCenters.description, tool: hostingerListDataCenters, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
26
|
+
{ name: 'HostingerCreatePublicKey', description: hostingerCreatePublicKey.description, tool: hostingerCreatePublicKey, requiredAuth: 'hostingerApiKey', scope: 'write' },
|
|
27
|
+
{ name: 'HostingerListPublicKeys', description: hostingerListPublicKeys.description, tool: hostingerListPublicKeys, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
28
|
+
{ name: 'HostingerDeletePublicKey', description: hostingerDeletePublicKey.description, tool: hostingerDeletePublicKey, requiredAuth: 'hostingerApiKey', scope: 'delete' },
|
|
29
|
+
{ name: 'HostingerListCatalogItems', description: hostingerListCatalogItems.description, tool: hostingerListCatalogItems, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
30
|
+
{ name: 'HostingerListPaymentMethods', description: hostingerListPaymentMethods.description, tool: hostingerListPaymentMethods, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
31
|
+
{ name: 'HostingerListSubscriptions', description: hostingerListSubscriptions.description, tool: hostingerListSubscriptions, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
32
|
+
{ name: 'HostingerListOrders', description: hostingerListOrders.description, tool: hostingerListOrders, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
33
|
+
{ name: 'HostingerListWebsites', description: hostingerListWebsites.description, tool: hostingerListWebsites, requiredAuth: 'hostingerApiKey', scope: 'read' },
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const hostingerListVirtualMachines: import("ai").Tool<{
|
|
2
|
+
hostingerApiKey?: string | undefined;
|
|
3
|
+
}, any>;
|
|
4
|
+
export declare const hostingerListTemplates: import("ai").Tool<{
|
|
5
|
+
hostingerApiKey?: string | undefined;
|
|
6
|
+
}, any>;
|
|
7
|
+
export declare const hostingerGetTemplateDetails: import("ai").Tool<{
|
|
8
|
+
templateId: number;
|
|
9
|
+
hostingerApiKey?: string | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
export declare const hostingerListDataCenters: import("ai").Tool<{
|
|
12
|
+
hostingerApiKey?: string | undefined;
|
|
13
|
+
}, any>;
|
|
14
|
+
export declare const hostingerCreatePublicKey: import("ai").Tool<{
|
|
15
|
+
name: string;
|
|
16
|
+
key: string;
|
|
17
|
+
hostingerApiKey?: string | undefined;
|
|
18
|
+
}, any>;
|
|
19
|
+
export declare const hostingerListPublicKeys: import("ai").Tool<{
|
|
20
|
+
page?: number | undefined;
|
|
21
|
+
hostingerApiKey?: string | undefined;
|
|
22
|
+
}, any>;
|
|
23
|
+
export declare const hostingerDeletePublicKey: import("ai").Tool<{
|
|
24
|
+
publicKeyId: number;
|
|
25
|
+
hostingerApiKey?: string | undefined;
|
|
26
|
+
}, any>;
|
|
27
|
+
//# sourceMappingURL=vps.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { hostingerRequest } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
export const hostingerListVirtualMachines = tool({
|
|
7
|
+
description: 'List all VPS virtual machines with CPU, memory, disk, IP addresses, and state. Use when the user asks to see their servers or VPS instances.',
|
|
8
|
+
inputSchema: z.object({
|
|
9
|
+
hostingerApiKey: tokenField,
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ hostingerApiKey }) => {
|
|
12
|
+
return hostingerRequest(hostingerApiKey, '/api/vps/v1/virtual-machines');
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
export const hostingerListTemplates = tool({
|
|
16
|
+
description: 'List available VPS OS templates. Use to view operating system options before creating or recreating a VPS.',
|
|
17
|
+
inputSchema: z.object({
|
|
18
|
+
hostingerApiKey: tokenField,
|
|
19
|
+
}),
|
|
20
|
+
execute: async ({ hostingerApiKey }) => {
|
|
21
|
+
return hostingerRequest(hostingerApiKey, '/api/vps/v1/templates');
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
export const hostingerGetTemplateDetails = tool({
|
|
25
|
+
description: 'Get details of a specific VPS OS template, including OS version and documentation link. Use to review a template before deployment.',
|
|
26
|
+
inputSchema: z.object({
|
|
27
|
+
hostingerApiKey: tokenField,
|
|
28
|
+
templateId: z.number().int().describe('Template ID'),
|
|
29
|
+
}),
|
|
30
|
+
execute: async ({ hostingerApiKey, templateId }) => {
|
|
31
|
+
return hostingerRequest(hostingerApiKey, `/api/vps/v1/templates/${templateId}`);
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export const hostingerListDataCenters = tool({
|
|
35
|
+
description: 'List available VPS data centers with city, continent, and country. Use to choose a deployment location for a VPS.',
|
|
36
|
+
inputSchema: z.object({
|
|
37
|
+
hostingerApiKey: tokenField,
|
|
38
|
+
}),
|
|
39
|
+
execute: async ({ hostingerApiKey }) => {
|
|
40
|
+
return hostingerRequest(hostingerApiKey, '/api/vps/v1/data-centers');
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
export const hostingerCreatePublicKey = tool({
|
|
44
|
+
description: 'Add an SSH public key to the account for VPS authentication. The key can then be assigned to VPS instances.',
|
|
45
|
+
inputSchema: z.object({
|
|
46
|
+
hostingerApiKey: tokenField,
|
|
47
|
+
name: z.string().describe('Name for the public key, e.g. "My SSH Key"'),
|
|
48
|
+
key: z.string().describe('SSH public key content, e.g. "ssh-rsa AAAA... user@host"'),
|
|
49
|
+
}),
|
|
50
|
+
execute: async ({ hostingerApiKey, name, key }) => {
|
|
51
|
+
return hostingerRequest(hostingerApiKey, '/api/vps/v1/public-keys', {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
body: { name, key },
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
export const hostingerListPublicKeys = tool({
|
|
58
|
+
description: 'List SSH public keys on the account. Use to view available keys for VPS authentication.',
|
|
59
|
+
inputSchema: z.object({
|
|
60
|
+
hostingerApiKey: tokenField,
|
|
61
|
+
page: z.number().int().min(1).optional().describe('Page number for pagination'),
|
|
62
|
+
}),
|
|
63
|
+
execute: async ({ hostingerApiKey, page }) => {
|
|
64
|
+
return hostingerRequest(hostingerApiKey, '/api/vps/v1/public-keys', { query: { page } });
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
export const hostingerDeletePublicKey = tool({
|
|
68
|
+
description: 'Delete an unused SSH public key from the account. Note: this does not remove the key from existing virtual machines.',
|
|
69
|
+
inputSchema: z.object({
|
|
70
|
+
hostingerApiKey: tokenField,
|
|
71
|
+
publicKeyId: z.number().int().describe('Public key ID to delete'),
|
|
72
|
+
}),
|
|
73
|
+
execute: async ({ hostingerApiKey, publicKeyId }) => {
|
|
74
|
+
return hostingerRequest(hostingerApiKey, `/api/vps/v1/public-keys/${publicKeyId}`, { method: 'DELETE' });
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
//# sourceMappingURL=vps.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const hostingerCreateWhoisProfile: import("ai").Tool<{
|
|
2
|
+
country: string;
|
|
3
|
+
entityType: "organization" | "individual";
|
|
4
|
+
tld: string;
|
|
5
|
+
whoisDetails: {
|
|
6
|
+
email: string;
|
|
7
|
+
address: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
city: string;
|
|
11
|
+
country?: string | undefined;
|
|
12
|
+
state?: string | undefined;
|
|
13
|
+
countryCode?: string | undefined;
|
|
14
|
+
postalCode?: string | undefined;
|
|
15
|
+
companyName?: string | undefined;
|
|
16
|
+
phoneCc?: string | undefined;
|
|
17
|
+
phoneNumber?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
hostingerApiKey?: string | undefined;
|
|
20
|
+
}, any>;
|
|
21
|
+
export declare const hostingerGetWhoisProfile: import("ai").Tool<{
|
|
22
|
+
whoisId: number;
|
|
23
|
+
hostingerApiKey?: string | undefined;
|
|
24
|
+
}, any>;
|
|
25
|
+
export declare const hostingerGetWhoisProfileUsage: import("ai").Tool<{
|
|
26
|
+
whoisId: number;
|
|
27
|
+
hostingerApiKey?: string | undefined;
|
|
28
|
+
}, any>;
|
|
29
|
+
export declare const hostingerListWhoisProfiles: import("ai").Tool<{
|
|
30
|
+
hostingerApiKey?: string | undefined;
|
|
31
|
+
tld?: string | undefined;
|
|
32
|
+
}, any>;
|
|
33
|
+
//# sourceMappingURL=whois.d.ts.map
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { hostingerRequest } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
const whoisDetails = z.object({
|
|
7
|
+
firstName: z.string().describe('First name of the contact person'),
|
|
8
|
+
lastName: z.string().describe('Last name of the contact person'),
|
|
9
|
+
email: z.string().describe('Contact email address'),
|
|
10
|
+
address: z.string().describe('Street address'),
|
|
11
|
+
city: z.string().describe('City name'),
|
|
12
|
+
state: z.string().optional().describe('State or province'),
|
|
13
|
+
country: z.string().optional().describe('Country name'),
|
|
14
|
+
countryCode: z.string().optional().describe('ISO 3166 2-letter country code'),
|
|
15
|
+
postalCode: z.string().optional().describe('Postal or ZIP code'),
|
|
16
|
+
companyName: z.string().optional().describe('Company or organization name'),
|
|
17
|
+
phoneCc: z.string().optional().describe('Phone country code, e.g. "31"'),
|
|
18
|
+
phoneNumber: z.string().optional().describe('Phone number'),
|
|
19
|
+
}).describe('WHOIS contact details');
|
|
20
|
+
export const hostingerCreateWhoisProfile = tool({
|
|
21
|
+
description: 'Create a WHOIS contact profile for domain registration. Required before registering domains; the profile holds registrant contact details for a given TLD.',
|
|
22
|
+
inputSchema: z.object({
|
|
23
|
+
hostingerApiKey: tokenField,
|
|
24
|
+
tld: z.string().describe('TLD without leading dot, e.g. "com"'),
|
|
25
|
+
entityType: z.enum(['individual', 'organization']).describe('Legal entity type'),
|
|
26
|
+
country: z.string().describe('ISO 3166 2-letter country code, e.g. "NL"'),
|
|
27
|
+
whoisDetails,
|
|
28
|
+
}),
|
|
29
|
+
execute: async ({ hostingerApiKey, tld, entityType, country, whoisDetails }) => {
|
|
30
|
+
const { firstName, lastName, address, city, state, country: c, countryCode, postalCode, companyName, phoneCc, phoneNumber, email } = whoisDetails;
|
|
31
|
+
return hostingerRequest(hostingerApiKey, '/api/domains/v1/whois', {
|
|
32
|
+
method: 'POST',
|
|
33
|
+
body: {
|
|
34
|
+
tld,
|
|
35
|
+
entity_type: entityType,
|
|
36
|
+
country,
|
|
37
|
+
whois_details: {
|
|
38
|
+
first_name: firstName,
|
|
39
|
+
last_name: lastName,
|
|
40
|
+
email,
|
|
41
|
+
address,
|
|
42
|
+
city,
|
|
43
|
+
state,
|
|
44
|
+
country: c,
|
|
45
|
+
country_code: countryCode,
|
|
46
|
+
postal_code: postalCode,
|
|
47
|
+
company_name: companyName,
|
|
48
|
+
phone_cc: phoneCc,
|
|
49
|
+
phone_number: phoneNumber,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
export const hostingerGetWhoisProfile = tool({
|
|
56
|
+
description: 'Get a WHOIS contact profile by ID, including registrant contact details. Use to review contact info used for domain registration.',
|
|
57
|
+
inputSchema: z.object({
|
|
58
|
+
hostingerApiKey: tokenField,
|
|
59
|
+
whoisId: z.number().int().describe('WHOIS profile ID'),
|
|
60
|
+
}),
|
|
61
|
+
execute: async ({ hostingerApiKey, whoisId }) => {
|
|
62
|
+
return hostingerRequest(hostingerApiKey, `/api/domains/v1/whois/${whoisId}`);
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
export const hostingerGetWhoisProfileUsage = tool({
|
|
66
|
+
description: 'List domains where a given WHOIS contact profile is used. Use to audit which domains share contact information.',
|
|
67
|
+
inputSchema: z.object({
|
|
68
|
+
hostingerApiKey: tokenField,
|
|
69
|
+
whoisId: z.number().int().describe('WHOIS profile ID'),
|
|
70
|
+
}),
|
|
71
|
+
execute: async ({ hostingerApiKey, whoisId }) => {
|
|
72
|
+
return hostingerRequest(hostingerApiKey, `/api/domains/v1/whois/${whoisId}/usage`);
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
export const hostingerListWhoisProfiles = tool({
|
|
76
|
+
description: 'List WHOIS contact profiles available for domain registration, optionally filtered by TLD.',
|
|
77
|
+
inputSchema: z.object({
|
|
78
|
+
hostingerApiKey: tokenField,
|
|
79
|
+
tld: z.string().optional().describe('Filter by TLD without leading dot, e.g. "com"'),
|
|
80
|
+
}),
|
|
81
|
+
execute: async ({ hostingerApiKey, tld }) => {
|
|
82
|
+
return hostingerRequest(hostingerApiKey, '/api/domains/v1/whois', { query: { tld } });
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=whois.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const SVG = `<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 475 439"><path d="M235.793 396.126a187.281 187.281 0 00187.285-187.284A187.283 187.283 0 00235.793 21.558 187.287 187.287 0 0048.509 208.842a187.286 187.286 0 00187.284 187.284z" fill="#FFD21E"/><path d="M423.078 208.842A187.283 187.283 0 00235.793 21.558 187.283 187.283 0 0048.509 208.842a187.283 187.283 0 00319.714 132.43 187.284 187.284 0 0054.855-132.43zm-396.127 0a208.842 208.842 0 11417.685 0 208.842 208.842 0 01-417.685 0z" fill="#FF9D0B"/><path d="M296.641 157.912c6.898 2.371 9.593 16.491 16.545 12.827a26.946 26.946 0 008.24-40.841 26.952 26.952 0 00-28.632-8.767 26.942 26.942 0 00-19.055 23.099 26.943 26.943 0 003.014 15.352c3.288 6.198 13.744-3.88 19.941-1.724l-.053.054zm-126.923 0c-6.898 2.371-9.647 16.491-16.545 12.827a26.946 26.946 0 01-8.24-40.841 26.952 26.952 0 0128.632-8.767 26.944 26.944 0 0116.041 38.451c-3.288 6.198-13.797-3.88-19.941-1.724l.053.054z" fill="#3A3B45"/><path d="M234.446 287.205c52.979 0 70.063-47.212 70.063-71.464 0-12.612-8.461-8.624-22.043-1.941-12.557 6.198-29.426 14.768-47.966 14.768-38.75 0-70.063-37.08-70.063-12.827 0 24.252 17.031 71.464 70.063 71.464h-.054z" fill="#FF323D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M193.863 274.863a46.895 46.895 0 0128.565-24.199c2.155-.646 4.365 3.072 6.682 6.899 2.156 3.665 4.42 7.384 6.683 7.384 2.426 0 4.851-3.665 7.168-7.276 2.426-3.773 4.797-7.438 7.115-6.737a46.403 46.403 0 0126.947 22.474c20.103-15.845 27.486-41.715 27.486-57.667 0-12.612-8.461-8.624-22.043-1.941l-.754.378c-12.45 6.198-29.05 14.39-47.266 14.39-18.216 0-34.762-8.192-47.266-14.39-14.012-6.953-22.797-11.318-22.797 1.563 0 16.438 7.869 43.439 29.48 59.122z" fill="#3A3B45"/><path d="M362.446 183.242a17.515 17.515 0 10.002-35.03 17.515 17.515 0 00-.002 35.03zm-250.61 0a17.515 17.515 0 100-35.03 17.515 17.515 0 000 35.03zM75.78 242.526c-8.731 0-16.492 3.557-21.935 10.079a32.173 32.173 0 00-7.168 20.264 38.275 38.275 0 00-10.456-1.617c-8.353 0-15.899 3.18-21.234 8.947a31.257 31.257 0 00-4.312 37.726 28.566 28.566 0 00-9.647 15.198 31.512 31.512 0 004.312 25.546 28.136 28.136 0 00-1.995 27.056c5.498 12.503 19.24 22.312 45.919 32.875 16.545 6.576 31.744 10.779 31.851 10.833a238.92 238.92 0 0058.907 8.623c31.583 0 54.165-9.701 67.153-28.779 20.911-30.666 17.947-58.746-9.162-85.801-14.929-14.983-24.899-37.025-26.947-41.876-4.204-14.336-15.306-30.289-33.684-30.289a30.716 30.716 0 00-24.792 13.258c-5.389-6.79-10.671-12.126-15.414-15.198a39.885 39.885 0 00-21.396-6.845zm0 21.558c2.749 0 6.144 1.186 9.809 3.503 11.533 7.33 33.684 45.434 41.822 60.255 2.695 4.958 7.384 7.06 11.534 7.06 8.353 0 14.821-8.246.808-18.755-21.127-15.792-13.743-41.607-3.665-43.17.431-.108.916-.108 1.294-.108 9.162 0 13.204 15.791 13.204 15.791s11.857 29.75 32.229 50.122c20.318 20.319 21.396 36.649 6.575 58.368-10.132 14.821-29.48 19.295-49.368 19.295-20.533 0-41.66-4.851-53.463-7.869-.593-.162-72.489-20.48-63.38-37.726 1.509-2.911 4.042-4.096 7.222-4.096 12.826 0 36.11 19.078 46.187 19.078 2.21 0 3.773-.916 4.474-3.233 4.257-15.36-64.997-21.828-59.177-44.032 1.078-3.935 3.827-5.498 7.761-5.498 16.923 0 54.973 29.804 62.95 29.804.592 0 1.077-.161 1.293-.539 3.988-6.467 1.778-10.994-26.409-28.025-28.079-17.031-47.858-27.271-36.648-39.505 1.293-1.401 3.126-2.048 5.39-2.048 17.084 0 57.451 36.756 57.451 36.756s10.887 11.318 17.516 11.318c1.509 0 2.802-.539 3.665-2.048 4.635-7.868-43.44-44.301-46.134-59.338-1.833-10.24 1.293-15.36 7.06-15.36z" fill="#FF9D0B"/><path d="M189.39 397.15c14.821-21.773 13.743-38.103-6.575-58.422-20.372-20.318-32.229-50.122-32.229-50.122s-4.419-17.246-14.498-15.629c-10.078 1.617-17.462 27.378 3.665 43.169 21.073 15.792-4.204 26.517-12.342 11.696-8.084-14.821-30.289-52.925-41.822-60.255-11.48-7.276-19.564-3.233-16.87 11.857 2.696 15.037 50.824 51.47 46.135 59.284-4.689 7.923-21.181-9.216-21.181-9.216s-51.577-46.942-62.841-34.708c-11.21 12.234 8.569 22.474 36.648 39.505 28.187 17.031 30.397 21.558 26.409 28.025-4.042 6.468-66.183-45.972-72.004-23.713-5.82 22.15 63.434 28.564 59.177 43.924-4.312 15.36-48.829-28.996-57.883-11.749-9.162 17.3 62.787 37.618 63.38 37.78 23.175 6.036 82.189 18.809 102.831-11.426z" fill="#FFD21E"/><path d="M398.502 242.526c8.731 0 16.545 3.557 21.935 10.079a32.173 32.173 0 017.168 20.264 38.272 38.272 0 0110.509-1.617c8.354 0 15.899 3.18 21.235 8.947a31.257 31.257 0 014.311 37.726 28.564 28.564 0 019.594 15.198 31.513 31.513 0 01-4.312 25.546 28.142 28.142 0 011.994 27.056c-5.497 12.503-19.24 22.312-45.864 32.875-16.6 6.576-31.798 10.779-31.906 10.833a238.914 238.914 0 01-58.907 8.623c-31.582 0-54.164-9.701-67.153-28.779-20.911-30.667-17.947-58.746 9.162-85.801 14.983-14.983 24.954-37.026 27.002-41.876 4.203-14.336 15.252-30.289 33.63-30.289a30.716 30.716 0 0124.792 13.258c5.389-6.791 10.671-12.126 15.467-15.198a39.888 39.888 0 0121.343-6.845zm0 21.558c-2.749 0-6.09 1.186-9.809 3.503-11.48 7.33-33.684 45.434-41.822 60.255a13.106 13.106 0 01-11.534 7.06c-8.3 0-14.821-8.246-.754-18.756 21.072-15.791 13.689-41.606 3.61-43.169a8.233 8.233 0 00-1.293-.108c-9.162 0-13.204 15.791-13.204 15.791s-11.857 29.75-32.175 50.122c-20.373 20.319-21.45 36.649-6.576 58.368 10.079 14.821 29.481 19.295 49.314 19.295 20.588 0 41.661-4.851 53.518-7.869.539-.162 72.488-20.48 63.38-37.726-1.563-2.911-4.042-4.096-7.222-4.096-12.827 0-36.163 19.078-46.188 19.078-2.263 0-3.826-.916-4.473-3.233-4.312-15.36 64.943-21.828 59.122-44.032-1.024-3.935-3.772-5.498-7.76-5.498-16.923 0-54.973 29.804-62.949 29.804-.539 0-1.024-.161-1.24-.539-3.988-6.467-1.832-10.994 26.301-28.025 28.187-17.031 47.966-27.271 36.648-39.505-1.24-1.401-3.072-2.048-5.282-2.048-17.138 0-57.505 36.756-57.505 36.756s-10.887 11.318-17.462 11.318a3.99 3.99 0 01-3.665-2.048c-4.689-7.868 43.385-44.301 46.08-59.338 1.832-10.24-1.294-15.36-7.06-15.36z" fill="#FF9D0B"/><path d="M284.945 397.15c-14.821-21.773-13.797-38.103 6.576-58.422 20.318-20.318 32.175-50.122 32.175-50.122s4.419-17.246 14.551-15.629c10.025 1.617 17.408 27.378-3.664 43.169-21.127 15.792 4.203 26.517 12.287 11.696 8.139-14.821 30.343-52.925 41.823-60.255 11.479-7.276 19.617-3.233 16.869 11.857-2.695 15.037-50.769 51.47-46.08 59.284 4.635 7.923 21.127-9.216 21.127-9.216s51.631-46.942 62.841-34.708c11.21 12.234-8.515 22.474-36.649 39.505-28.186 17.031-30.342 21.558-26.408 28.025 4.042 6.468 66.183-45.972 72.003-23.713 5.821 22.15-63.38 28.564-59.122 43.924 4.311 15.36 48.775-28.996 57.883-11.749 9.108 17.3-62.788 37.618-63.38 37.78-23.229 6.036-82.244 18.809-102.832-11.426z" fill="#FFD21E"/></svg>`;
|
|
2
|
+
export const HUGGING_FACE_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,42 @@
|
|
|
1
|
+
import { defineToolkit, defineTool } from '../../core/define.js';
|
|
2
|
+
import { inferToolScope } from '../../core/scope.js';
|
|
3
|
+
import { HUGGING_FACE_ICON } from './icon.js';
|
|
4
|
+
import { huggingFaceTools } from './tools/index.js';
|
|
5
|
+
export default defineToolkit({
|
|
6
|
+
id: 'hugging-face',
|
|
7
|
+
displayName: 'Hugging Face',
|
|
8
|
+
shortDescription: 'Models, datasets, spaces, papers, inference, and discussions on the Hugging Face Hub.',
|
|
9
|
+
category: 'AI & Machine Learning',
|
|
10
|
+
icon: HUGGING_FACE_ICON,
|
|
11
|
+
auth: {
|
|
12
|
+
type: 'oauth2',
|
|
13
|
+
tokenField: 'huggingFaceToken',
|
|
14
|
+
provider: {
|
|
15
|
+
slug: 'hugging-face',
|
|
16
|
+
env: { clientId: 'HUGGING_FACE_CLIENT_ID', clientSecret: 'HUGGING_FACE_CLIENT_SECRET' },
|
|
17
|
+
authorizeUrl: 'https://huggingface.co/oauth/authorize',
|
|
18
|
+
tokenUrl: 'https://huggingface.co/oauth/token',
|
|
19
|
+
scopes: ['openid', 'profile', 'read-repos', 'write-repos', 'manage-repos', 'inference-api'],
|
|
20
|
+
exchangeStyle: 'form',
|
|
21
|
+
connectDescription: 'Connect Hugging Face to browse models, datasets, spaces, and papers, run inference, and manage repos, discussions, and webhooks.',
|
|
22
|
+
callbackPath: '/api/auth/hugging-face/callback',
|
|
23
|
+
stateCookie: 'hugging_face_oauth_state',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
allowedHosts: [
|
|
27
|
+
'huggingface.co',
|
|
28
|
+
'datasets-server.huggingface.co',
|
|
29
|
+
'router.huggingface.co',
|
|
30
|
+
'api-inference.huggingface.co',
|
|
31
|
+
'api.endpoints.huggingface.cloud',
|
|
32
|
+
],
|
|
33
|
+
tools: huggingFaceTools.map((entry) => defineTool({
|
|
34
|
+
name: entry.name,
|
|
35
|
+
description: entry.description,
|
|
36
|
+
tool: entry.tool,
|
|
37
|
+
requiredAuth: entry.requiredAuth,
|
|
38
|
+
scope: entry.scope ?? inferToolScope(entry.name),
|
|
39
|
+
})),
|
|
40
|
+
meta: { since: '0.0.8' },
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const HOSTS: {
|
|
2
|
+
HUB: string;
|
|
3
|
+
DS: string;
|
|
4
|
+
ROUTER: string;
|
|
5
|
+
AII: string;
|
|
6
|
+
IE: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function repoIdOf(namespace: any, repo: any, repoId: any): any;
|
|
9
|
+
export declare function uiPrefix(repoType: any): any;
|
|
10
|
+
/** Standard JSON API call. Returns parsed JSON or { error, details }. */
|
|
11
|
+
export declare function hfApi(token: any, { method, url, query, body, headers }: {
|
|
12
|
+
method?: string | undefined;
|
|
13
|
+
url: any;
|
|
14
|
+
query: any;
|
|
15
|
+
body: any;
|
|
16
|
+
headers?: {} | undefined;
|
|
17
|
+
}): Promise<any>;
|
|
18
|
+
/** Resolve-style call: follow redirects manually and return the final URL. */
|
|
19
|
+
export declare function hfRedirect(token: any, { url, query, headers }: {
|
|
20
|
+
url: any;
|
|
21
|
+
query: any;
|
|
22
|
+
headers?: {} | undefined;
|
|
23
|
+
}): Promise<any>;
|
|
24
|
+
/** Plain-text call (e.g. revision diffs). */
|
|
25
|
+
export declare function hfText(token: any, { url, query }: {
|
|
26
|
+
url: any;
|
|
27
|
+
query: any;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
error: string;
|
|
30
|
+
details?: undefined;
|
|
31
|
+
diff?: undefined;
|
|
32
|
+
message?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
error: string;
|
|
35
|
+
details: any;
|
|
36
|
+
diff?: undefined;
|
|
37
|
+
message?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
diff: string;
|
|
40
|
+
error?: undefined;
|
|
41
|
+
details?: undefined;
|
|
42
|
+
message?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
error: string;
|
|
45
|
+
message: string;
|
|
46
|
+
details?: undefined;
|
|
47
|
+
diff?: undefined;
|
|
48
|
+
}>;
|
|
49
|
+
/** SSE-style call: read the stream up to timeoutMs, return collected events. */
|
|
50
|
+
export declare function hfStream(token: any, { url, query, timeoutMs }: {
|
|
51
|
+
url: any;
|
|
52
|
+
query: any;
|
|
53
|
+
timeoutMs?: number | undefined;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
error: string;
|
|
56
|
+
details?: undefined;
|
|
57
|
+
events?: undefined;
|
|
58
|
+
totalEvents?: undefined;
|
|
59
|
+
message?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
error: string;
|
|
62
|
+
details: any;
|
|
63
|
+
events?: undefined;
|
|
64
|
+
totalEvents?: undefined;
|
|
65
|
+
message?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
events: any[];
|
|
68
|
+
totalEvents: number;
|
|
69
|
+
error?: undefined;
|
|
70
|
+
details?: undefined;
|
|
71
|
+
message?: undefined;
|
|
72
|
+
} | {
|
|
73
|
+
error: string;
|
|
74
|
+
message: string;
|
|
75
|
+
details?: undefined;
|
|
76
|
+
events?: undefined;
|
|
77
|
+
totalEvents?: undefined;
|
|
78
|
+
}>;
|
|
79
|
+
/** Multipart commit call for model/dataset/space repositories. */
|
|
80
|
+
export declare function hfCommit(token: any, { repoType, repoId, rev, summary, description, parentCommit, files, lfsFiles, deletedEntries, createPr }: {
|
|
81
|
+
repoType: any;
|
|
82
|
+
repoId: any;
|
|
83
|
+
rev: any;
|
|
84
|
+
summary: any;
|
|
85
|
+
description: any;
|
|
86
|
+
parentCommit: any;
|
|
87
|
+
files: any;
|
|
88
|
+
lfsFiles: any;
|
|
89
|
+
deletedEntries: any;
|
|
90
|
+
createPr: any;
|
|
91
|
+
}): Promise<any>;
|
|
92
|
+
export { HOSTS };
|
|
93
|
+
//# sourceMappingURL=client.d.ts.map
|