@rnsk/toolkits 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +21 -1
- package/dist/toolkits/accuweather/icon.d.ts +5 -0
- package/dist/toolkits/accuweather/icon.js +6 -0
- package/dist/toolkits/accuweather/manifest.d.ts +3 -0
- package/dist/toolkits/accuweather/manifest.js +35 -0
- package/dist/toolkits/accuweather/tools/alerts-alarms.d.ts +13 -0
- package/dist/toolkits/accuweather/tools/alerts-alarms.js +25 -0
- package/dist/toolkits/accuweather/tools/client.d.ts +17 -0
- package/dist/toolkits/accuweather/tools/client.js +50 -0
- package/dist/toolkits/accuweather/tools/current-conditions.d.ts +21 -0
- package/dist/toolkits/accuweather/tools/current-conditions.js +46 -0
- package/dist/toolkits/accuweather/tools/forecasts.d.ts +17 -0
- package/dist/toolkits/accuweather/tools/forecasts.js +41 -0
- package/dist/toolkits/accuweather/tools/imagery.d.ts +7 -0
- package/dist/toolkits/accuweather/tools/imagery.js +21 -0
- package/dist/toolkits/accuweather/tools/index.d.ts +21 -0
- package/dist/toolkits/accuweather/tools/index.js +60 -0
- package/dist/toolkits/accuweather/tools/indices.d.ts +29 -0
- package/dist/toolkits/accuweather/tools/indices.js +66 -0
- package/dist/toolkits/accuweather/tools/lightning.d.ts +11 -0
- package/dist/toolkits/accuweather/tools/lightning.js +35 -0
- package/dist/toolkits/accuweather/tools/locations.d.ts +101 -0
- package/dist/toolkits/accuweather/tools/locations.js +280 -0
- package/dist/toolkits/accuweather/tools/minutecast.d.ts +11 -0
- package/dist/toolkits/accuweather/tools/minutecast.js +28 -0
- package/dist/toolkits/accuweather/tools/translations.d.ts +20 -0
- package/dist/toolkits/accuweather/tools/translations.js +49 -0
- package/dist/toolkits/accuweather/tools/tropical.d.ts +49 -0
- package/dist/toolkits/accuweather/tools/tropical.js +108 -0
- package/dist/toolkits/aws/tools/cloudwatch/filter-log-events.d.ts +2 -2
- package/dist/toolkits/aws/tools/cloudwatch/get-metric-data.d.ts +2 -2
- package/dist/toolkits/aws/tools/index.d.ts +4 -4
- package/dist/toolkits/bitbucket/tools/commits.d.ts +3 -3
- package/dist/toolkits/bitbucket/tools/index.d.ts +4 -4
- package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +1 -1
- package/dist/toolkits/bitbucket/tools/repositories.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/create-dns-record.d.ts +2 -2
- package/dist/toolkits/cloudflare/tools/create-zone.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/index.d.ts +9 -9
- package/dist/toolkits/cloudflare/tools/list-accounts.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-dns-records.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-tunnels.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/list-zones.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/update-dns-record.d.ts +1 -1
- package/dist/toolkits/cloudflare/tools/update-zone.d.ts +1 -1
- package/dist/toolkits/convex/tools/deployments.d.ts +1 -1
- package/dist/toolkits/convex/tools/index.d.ts +1 -1
- package/dist/toolkits/datadog/tools/events.d.ts +1 -1
- package/dist/toolkits/datadog/tools/index.d.ts +5 -5
- package/dist/toolkits/datadog/tools/integrations.d.ts +1 -1
- package/dist/toolkits/datadog/tools/metrics.d.ts +1 -1
- package/dist/toolkits/datadog/tools/monitors.d.ts +1 -1
- package/dist/toolkits/datadog/tools/synthetics.d.ts +1 -1
- package/dist/toolkits/dev-to/tools/articles.d.ts +1 -1
- package/dist/toolkits/dev-to/tools/community.d.ts +1 -1
- package/dist/toolkits/dev-to/tools/index.d.ts +2 -2
- package/dist/toolkits/discord/tools/applications.d.ts +1 -1
- package/dist/toolkits/discord/tools/index.d.ts +1 -1
- package/dist/toolkits/figma/tools/create-dev-resources.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-activity-logs.d.ts +2 -2
- package/dist/toolkits/figma/tools/get-file-json.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-team-component-sets.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-team-components.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-team-styles.d.ts +1 -1
- package/dist/toolkits/figma/tools/get-versions-of-a-file.d.ts +1 -1
- package/dist/toolkits/figma/tools/index.d.ts +7 -7
- package/dist/toolkits/figma/tools/update-dev-resources.d.ts +1 -1
- package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +2 -2
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +1 -1
- package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +1 -1
- package/dist/toolkits/github/tools/Projects/update-project.d.ts +1 -1
- package/dist/toolkits/github/tools/Releases/create-release.d.ts +1 -1
- package/dist/toolkits/github/tools/Releases/update-release.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +2 -2
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +1 -1
- package/dist/toolkits/github/tools/Teams/update-team.d.ts +1 -1
- package/dist/toolkits/github/tools/Users/follow-user.d.ts +1 -1
- package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +1 -1
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +1 -1
- package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +1 -1
- package/dist/toolkits/github/tools/index.d.ts +21 -21
- package/dist/toolkits/gitlab/tools/index.d.ts +2 -2
- package/dist/toolkits/gitlab/tools/pipelines.d.ts +1 -1
- package/dist/toolkits/gitlab/tools/projects.d.ts +1 -1
- package/dist/toolkits/gmail/manifest.js +204 -1
- package/dist/toolkits/gmail/tools/create-label.d.ts +2 -2
- package/dist/toolkits/gmail/tools/index.d.ts +5 -0
- package/dist/toolkits/gmail/tools/index.js +5 -0
- package/dist/toolkits/gmail/tools/labels-threads.d.ts +47 -0
- package/dist/toolkits/gmail/tools/labels-threads.js +110 -0
- package/dist/toolkits/gmail/tools/list-drafts.d.ts +1 -1
- package/dist/toolkits/gmail/tools/list-threads.d.ts +1 -1
- package/dist/toolkits/gmail/tools/mailbox.d.ts +46 -0
- package/dist/toolkits/gmail/tools/mailbox.js +142 -0
- package/dist/toolkits/gmail/tools/messages-extra.d.ts +34 -0
- package/dist/toolkits/gmail/tools/messages-extra.js +176 -0
- package/dist/toolkits/gmail/tools/people-extra.d.ts +18 -0
- package/dist/toolkits/gmail/tools/people-extra.js +67 -0
- package/dist/toolkits/gmail/tools/settings.d.ts +100 -0
- package/dist/toolkits/gmail/tools/settings.js +210 -0
- package/dist/toolkits/google-analytics/tools/admin.d.ts +3 -3
- package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/announcement-addons.d.ts +4 -4
- package/dist/toolkits/google-classroom/tools/coursework-addons.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/coursework.d.ts +1 -1
- package/dist/toolkits/google-classroom/tools/index.d.ts +9 -9
- package/dist/toolkits/google-classroom/tools/invitations.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/materials-addons.d.ts +2 -2
- package/dist/toolkits/google-classroom/tools/posts-addons.d.ts +1 -1
- package/dist/toolkits/google-contacts/tools/contacts.d.ts +5 -5
- package/dist/toolkits/google-contacts/tools/directory.d.ts +3 -3
- package/dist/toolkits/google-contacts/tools/groups.d.ts +1 -1
- package/dist/toolkits/google-contacts/tools/index.d.ts +9 -9
- package/dist/toolkits/google-drive/tools/index.d.ts +3 -3
- package/dist/toolkits/google-drive/tools/search-files.d.ts +1 -1
- package/dist/toolkits/google-drive/tools/upload-file.d.ts +2 -2
- package/dist/toolkits/google-maps/tools/index.d.ts +4 -4
- package/dist/toolkits/google-maps/tools/places.d.ts +4 -4
- package/dist/toolkits/google-sheets/tools/index.d.ts +1 -1
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.d.ts +1 -1
- package/dist/toolkits/google-tasks/tools/batch-execute.d.ts +1 -1
- package/dist/toolkits/google-tasks/tools/index.d.ts +2 -2
- package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
- package/dist/toolkits/groww/tools/index.d.ts +8 -8
- package/dist/toolkits/groww/tools/margin.d.ts +1 -1
- package/dist/toolkits/groww/tools/orders.d.ts +2 -2
- package/dist/toolkits/groww/tools/smart-orders.d.ts +5 -5
- package/dist/toolkits/gumroad/icon.d.ts +5 -0
- package/dist/toolkits/gumroad/icon.js +6 -0
- package/dist/toolkits/gumroad/manifest.d.ts +3 -0
- package/dist/toolkits/gumroad/manifest.js +41 -0
- package/dist/toolkits/gumroad/tools/client.d.ts +16 -0
- package/dist/toolkits/gumroad/tools/client.js +53 -0
- package/dist/toolkits/gumroad/tools/index.d.ts +12 -0
- package/dist/toolkits/gumroad/tools/index.js +17 -0
- package/dist/toolkits/gumroad/tools/sales.d.ts +34 -0
- package/dist/toolkits/gumroad/tools/sales.js +68 -0
- package/dist/toolkits/hostinger/tools/hosting.d.ts +2 -2
- package/dist/toolkits/hostinger/tools/index.d.ts +3 -3
- package/dist/toolkits/hostinger/tools/whois.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/datasets.d.ts +1 -1
- package/dist/toolkits/hugging-face/tools/index.d.ts +2 -2
- package/dist/toolkits/hugging-face/tools/papers.d.ts +1 -1
- package/dist/toolkits/jira/tools/boards.d.ts +1 -1
- package/dist/toolkits/jira/tools/index.d.ts +4 -4
- package/dist/toolkits/jira/tools/meta.d.ts +1 -1
- package/dist/toolkits/jira/tools/projects.d.ts +1 -1
- package/dist/toolkits/jira/tools/users.d.ts +1 -1
- package/dist/toolkits/kaggle/tools/competitions.d.ts +1 -1
- package/dist/toolkits/kaggle/tools/datasets.d.ts +1 -1
- package/dist/toolkits/kaggle/tools/index.d.ts +7 -7
- package/dist/toolkits/kaggle/tools/kernels.d.ts +3 -3
- package/dist/toolkits/kaggle/tools/models.d.ts +2 -2
- package/dist/toolkits/nasa/tools/cmr.d.ts +3 -3
- package/dist/toolkits/nasa/tools/eonet.d.ts +5 -5
- package/dist/toolkits/nasa/tools/index.d.ts +9 -9
- package/dist/toolkits/nasa/tools/ntrs.d.ts +1 -1
- package/dist/toolkits/neon/tools/auth.d.ts +5 -5
- package/dist/toolkits/neon/tools/index.d.ts +5 -5
- package/dist/toolkits/new-relic/tools/admin.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/alert-policies.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/apm.d.ts +9 -9
- package/dist/toolkits/new-relic/tools/conditions.d.ts +5 -5
- package/dist/toolkits/new-relic/tools/config.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/dashboards.d.ts +2 -2
- package/dist/toolkits/new-relic/tools/entities.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/notifications.d.ts +1 -1
- package/dist/toolkits/new-relic/tools/nrql-conditions.d.ts +2 -2
- package/dist/toolkits/notebook-lm/tools/index.d.ts +2 -2
- package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.d.ts +1 -1
- package/dist/toolkits/notebook-lm/tools/upload-source-file.d.ts +1 -1
- package/dist/toolkits/postman/icon.d.ts +5 -0
- package/dist/toolkits/postman/icon.js +14 -0
- package/dist/toolkits/postman/manifest.d.ts +3 -0
- package/dist/toolkits/postman/manifest.js +35 -0
- package/dist/toolkits/postman/tools/client.d.ts +23 -0
- package/dist/toolkits/postman/tools/client.js +59 -0
- package/dist/toolkits/postman/tools/collections.d.ts +93 -0
- package/dist/toolkits/postman/tools/collections.js +358 -0
- package/dist/toolkits/postman/tools/comments.d.ts +113 -0
- package/dist/toolkits/postman/tools/comments.js +387 -0
- package/dist/toolkits/postman/tools/designs_and_apis.d.ts +106 -0
- package/dist/toolkits/postman/tools/designs_and_apis.js +385 -0
- package/dist/toolkits/postman/tools/environments.d.ts +63 -0
- package/dist/toolkits/postman/tools/environments.js +208 -0
- package/dist/toolkits/postman/tools/index.d.ts +1204 -0
- package/dist/toolkits/postman/tools/index.js +143 -0
- package/dist/toolkits/postman/tools/items.d.ts +90 -0
- package/dist/toolkits/postman/tools/items.js +286 -0
- package/dist/toolkits/postman/tools/mocks_and_tests.d.ts +100 -0
- package/dist/toolkits/postman/tools/mocks_and_tests.js +363 -0
- package/dist/toolkits/postman/tools/pull_requests.d.ts +26 -0
- package/dist/toolkits/postman/tools/pull_requests.js +108 -0
- package/dist/toolkits/postman/tools/scim_users_teams.d.ts +31 -0
- package/dist/toolkits/postman/tools/scim_users_teams.js +156 -0
- package/dist/toolkits/postman/tools/specs.d.ts +100 -0
- package/dist/toolkits/postman/tools/specs.js +380 -0
- package/dist/toolkits/postman/tools/webhooks.d.ts +8 -0
- package/dist/toolkits/postman/tools/webhooks.js +40 -0
- package/dist/toolkits/postman/tools/workspaces.d.ts +50 -0
- package/dist/toolkits/postman/tools/workspaces.js +198 -0
- package/dist/toolkits/prometheus/icon.d.ts +5 -0
- package/dist/toolkits/prometheus/icon.js +52 -0
- package/dist/toolkits/prometheus/manifest.d.ts +3 -0
- package/dist/toolkits/prometheus/manifest.js +32 -0
- package/dist/toolkits/prometheus/tools/admin.d.ts +19 -0
- package/dist/toolkits/prometheus/tools/admin.js +90 -0
- package/dist/toolkits/prometheus/tools/client.d.ts +22 -0
- package/dist/toolkits/prometheus/tools/client.js +91 -0
- package/dist/toolkits/prometheus/tools/discovery.d.ts +82 -0
- package/dist/toolkits/prometheus/tools/discovery.js +182 -0
- package/dist/toolkits/prometheus/tools/index.d.ts +16 -0
- package/dist/toolkits/prometheus/tools/index.js +51 -0
- package/dist/toolkits/prometheus/tools/query.d.ts +33 -0
- package/dist/toolkits/prometheus/tools/query.js +101 -0
- package/dist/toolkits/prometheus/tools/status.d.ts +66 -0
- package/dist/toolkits/prometheus/tools/status.js +248 -0
- package/dist/toolkits/prometheus/tools/targets.d.ts +31 -0
- package/dist/toolkits/prometheus/tools/targets.js +117 -0
- package/dist/toolkits/razorpay/icon.d.ts +5 -0
- package/dist/toolkits/razorpay/icon.js +33 -0
- package/dist/toolkits/razorpay/manifest.d.ts +3 -0
- package/dist/toolkits/razorpay/manifest.js +32 -0
- package/dist/toolkits/razorpay/tools/client.d.ts +24 -0
- package/dist/toolkits/razorpay/tools/client.js +73 -0
- package/dist/toolkits/razorpay/tools/customers.d.ts +29 -0
- package/dist/toolkits/razorpay/tools/customers.js +53 -0
- package/dist/toolkits/razorpay/tools/index.d.ts +16 -0
- package/dist/toolkits/razorpay/tools/index.js +56 -0
- package/dist/toolkits/razorpay/tools/invoices.d.ts +169 -0
- package/dist/toolkits/razorpay/tools/invoices.js +143 -0
- package/dist/toolkits/razorpay/tools/items-links.d.ts +98 -0
- package/dist/toolkits/razorpay/tools/items-links.js +131 -0
- package/dist/toolkits/razorpay/tools/orders.d.ts +63 -0
- package/dist/toolkits/razorpay/tools/orders.js +99 -0
- package/dist/toolkits/razorpay/tools/payouts.d.ts +58 -0
- package/dist/toolkits/razorpay/tools/payouts.js +91 -0
- package/dist/toolkits/servicenow/icon.d.ts +5 -0
- package/dist/toolkits/servicenow/icon.js +6 -0
- package/dist/toolkits/servicenow/manifest.d.ts +3 -0
- package/dist/toolkits/servicenow/manifest.js +33 -0
- package/dist/toolkits/servicenow/tools/attachments.d.ts +35 -0
- package/dist/toolkits/servicenow/tools/attachments.js +120 -0
- package/dist/toolkits/servicenow/tools/catalog.d.ts +122 -0
- package/dist/toolkits/servicenow/tools/catalog.js +333 -0
- package/dist/toolkits/servicenow/tools/changes.d.ts +374 -0
- package/dist/toolkits/servicenow/tools/changes.js +609 -0
- package/dist/toolkits/servicenow/tools/cicd.d.ts +109 -0
- package/dist/toolkits/servicenow/tools/cicd.js +316 -0
- package/dist/toolkits/servicenow/tools/client.d.ts +42 -0
- package/dist/toolkits/servicenow/tools/client.js +168 -0
- package/dist/toolkits/servicenow/tools/cmdb.d.ts +224 -0
- package/dist/toolkits/servicenow/tools/cmdb.js +460 -0
- package/dist/toolkits/servicenow/tools/imports.d.ts +13 -0
- package/dist/toolkits/servicenow/tools/imports.js +36 -0
- package/dist/toolkits/servicenow/tools/incidents.d.ts +94 -0
- package/dist/toolkits/servicenow/tools/incidents.js +226 -0
- package/dist/toolkits/servicenow/tools/index.d.ts +1566 -0
- package/dist/toolkits/servicenow/tools/index.js +169 -0
- package/dist/toolkits/servicenow/tools/platform.d.ts +124 -0
- package/dist/toolkits/servicenow/tools/platform.js +298 -0
- package/dist/toolkits/servicenow/tools/records.d.ts +73 -0
- package/dist/toolkits/servicenow/tools/records.js +185 -0
- package/dist/toolkits/servicenow/tools/sdon.d.ts +48 -0
- package/dist/toolkits/servicenow/tools/sdon.js +81 -0
- package/dist/toolkits/slack/tools/admin-conversations.d.ts +2 -2
- package/dist/toolkits/slack/tools/emoji.d.ts +1 -1
- package/dist/toolkits/slack/tools/messages.d.ts +2 -2
- package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +2 -2
- package/dist/toolkits/slack/tools/search.d.ts +3 -3
- package/dist/toolkits/slack/tools/users.d.ts +1 -1
- package/dist/toolkits/vercel/icon.d.ts +5 -0
- package/dist/toolkits/vercel/icon.js +6 -0
- package/dist/toolkits/vercel/manifest.d.ts +3 -0
- package/dist/toolkits/vercel/manifest.js +35 -0
- package/dist/toolkits/vercel/tools/aliases.d.ts +47 -0
- package/dist/toolkits/vercel/tools/aliases.js +141 -0
- package/dist/toolkits/vercel/tools/auth.d.ts +23 -0
- package/dist/toolkits/vercel/tools/auth.js +117 -0
- package/dist/toolkits/vercel/tools/cache-artifacts.d.ts +57 -0
- package/dist/toolkits/vercel/tools/cache-artifacts.js +205 -0
- package/dist/toolkits/vercel/tools/certs.d.ts +9 -0
- package/dist/toolkits/vercel/tools/certs.js +31 -0
- package/dist/toolkits/vercel/tools/client.d.ts +17 -0
- package/dist/toolkits/vercel/tools/client.js +53 -0
- package/dist/toolkits/vercel/tools/deployments.d.ts +169 -0
- package/dist/toolkits/vercel/tools/deployments.js +443 -0
- package/dist/toolkits/vercel/tools/domains.d.ts +229 -0
- package/dist/toolkits/vercel/tools/domains.js +719 -0
- package/dist/toolkits/vercel/tools/edge-config.d.ts +110 -0
- package/dist/toolkits/vercel/tools/edge-config.js +402 -0
- package/dist/toolkits/vercel/tools/environment-variables.d.ts +137 -0
- package/dist/toolkits/vercel/tools/environment-variables.js +411 -0
- package/dist/toolkits/vercel/tools/firewall.d.ts +57 -0
- package/dist/toolkits/vercel/tools/firewall.js +187 -0
- package/dist/toolkits/vercel/tools/index.d.ts +1944 -0
- package/dist/toolkits/vercel/tools/index.js +312 -0
- package/dist/toolkits/vercel/tools/logs.d.ts +35 -0
- package/dist/toolkits/vercel/tools/logs.js +129 -0
- package/dist/toolkits/vercel/tools/misc.d.ts +140 -0
- package/dist/toolkits/vercel/tools/misc.js +486 -0
- package/dist/toolkits/vercel/tools/projects.d.ts +194 -0
- package/dist/toolkits/vercel/tools/projects.js +468 -0
- package/dist/toolkits/vercel/tools/teams.d.ts +50 -0
- package/dist/toolkits/vercel/tools/teams.js +144 -0
- package/dist/toolkits/vercel/tools/webhooks.d.ts +27 -0
- package/dist/toolkits/vercel/tools/webhooks.js +103 -0
- package/dist/toolkits/wise/icon.d.ts +5 -0
- package/dist/toolkits/wise/icon.js +15 -0
- package/dist/toolkits/wise/manifest.d.ts +3 -0
- package/dist/toolkits/wise/manifest.js +30 -0
- package/dist/toolkits/wise/tools/create-quote.d.ts +86 -0
- package/dist/toolkits/wise/tools/create-quote.js +64 -0
- package/dist/toolkits/wise/tools/get-exchange-rate.d.ts +42 -0
- package/dist/toolkits/wise/tools/get-exchange-rate.js +44 -0
- package/dist/toolkits/wise/tools/get-quote.d.ts +82 -0
- package/dist/toolkits/wise/tools/get-quote.js +46 -0
- package/dist/toolkits/wise/tools/index.d.ts +475 -0
- package/dist/toolkits/wise/tools/index.js +77 -0
- package/dist/toolkits/wise/tools/list-activities.d.ts +43 -0
- package/dist/toolkits/wise/tools/list-activities.js +49 -0
- package/dist/toolkits/wise/tools/list-balances.d.ts +30 -0
- package/dist/toolkits/wise/tools/list-balances.js +34 -0
- package/dist/toolkits/wise/tools/list-currencies.d.ts +29 -0
- package/dist/toolkits/wise/tools/list-currencies.js +31 -0
- package/dist/toolkits/wise/tools/list-profiles.d.ts +28 -0
- package/dist/toolkits/wise/tools/list-profiles.js +29 -0
- package/dist/toolkits/wise/tools/list-recipients.d.ts +43 -0
- package/dist/toolkits/wise/tools/list-recipients.js +54 -0
- package/dist/toolkits/wise/tools/list-transfers.d.ts +44 -0
- package/dist/toolkits/wise/tools/list-transfers.js +52 -0
- package/dist/toolkits/wise/tools/utils.d.ts +18 -0
- package/dist/toolkits/wise/tools/utils.js +39 -0
- package/dist/toolkits/wordpress/icon.d.ts +5 -0
- package/dist/toolkits/wordpress/icon.js +6 -0
- package/dist/toolkits/wordpress/manifest.d.ts +3 -0
- package/dist/toolkits/wordpress/manifest.js +36 -0
- package/dist/toolkits/wordpress/tools/create-draft-post.d.ts +47 -0
- package/dist/toolkits/wordpress/tools/create-draft-post.js +68 -0
- package/dist/toolkits/wordpress/tools/delete-draft-post.d.ts +38 -0
- package/dist/toolkits/wordpress/tools/delete-draft-post.js +51 -0
- package/dist/toolkits/wordpress/tools/get-post.d.ts +41 -0
- package/dist/toolkits/wordpress/tools/get-post.js +48 -0
- package/dist/toolkits/wordpress/tools/get-site-overview.d.ts +67 -0
- package/dist/toolkits/wordpress/tools/get-site-overview.js +91 -0
- package/dist/toolkits/wordpress/tools/index.d.ts +489 -0
- package/dist/toolkits/wordpress/tools/index.js +85 -0
- package/dist/toolkits/wordpress/tools/list-blogging-prompts.d.ts +48 -0
- package/dist/toolkits/wordpress/tools/list-blogging-prompts.js +55 -0
- package/dist/toolkits/wordpress/tools/list-cms-resources.d.ts +45 -0
- package/dist/toolkits/wordpress/tools/list-cms-resources.js +77 -0
- package/dist/toolkits/wordpress/tools/list-content.d.ts +49 -0
- package/dist/toolkits/wordpress/tools/list-content.js +71 -0
- package/dist/toolkits/wordpress/tools/list-reader-subscriptions.d.ts +24 -0
- package/dist/toolkits/wordpress/tools/list-reader-subscriptions.js +39 -0
- package/dist/toolkits/wordpress/tools/list-sites.d.ts +26 -0
- package/dist/toolkits/wordpress/tools/list-sites.js +69 -0
- package/dist/toolkits/wordpress/tools/update-draft-post.d.ts +51 -0
- package/dist/toolkits/wordpress/tools/update-draft-post.js +93 -0
- package/dist/toolkits/wordpress/tools/utils.d.ts +18 -0
- package/dist/toolkits/wordpress/tools/utils.js +33 -0
- package/dist/toolkits/zoho/icon.d.ts +5 -0
- package/dist/toolkits/zoho/icon.js +125 -0
- package/dist/toolkits/zoho/manifest.d.ts +3 -0
- package/dist/toolkits/zoho/manifest.js +54 -0
- package/dist/toolkits/zoho/tools/convert-zoho-lead.d.ts +11 -0
- package/dist/toolkits/zoho/tools/convert-zoho-lead.js +47 -0
- package/dist/toolkits/zoho/tools/create-contact.d.ts +36 -0
- package/dist/toolkits/zoho/tools/create-contact.js +58 -0
- package/dist/toolkits/zoho/tools/create-deal.d.ts +17 -0
- package/dist/toolkits/zoho/tools/create-deal.js +39 -0
- package/dist/toolkits/zoho/tools/create-email-draft.d.ts +7 -0
- package/dist/toolkits/zoho/tools/create-email-draft.js +30 -0
- package/dist/toolkits/zoho/tools/create-event.d.ts +18 -0
- package/dist/toolkits/zoho/tools/create-event.js +40 -0
- package/dist/toolkits/zoho/tools/create-lead.d.ts +31 -0
- package/dist/toolkits/zoho/tools/create-lead.js +53 -0
- package/dist/toolkits/zoho/tools/create-note.d.ts +8 -0
- package/dist/toolkits/zoho/tools/create-note.js +31 -0
- package/dist/toolkits/zoho/tools/create-zoho-record.d.ts +8 -0
- package/dist/toolkits/zoho/tools/create-zoho-record.js +35 -0
- package/dist/toolkits/zoho/tools/create-zoho-tag.d.ts +7 -0
- package/dist/toolkits/zoho/tools/create-zoho-tag.js +30 -0
- package/dist/toolkits/zoho/tools/delete-account.d.ts +6 -0
- package/dist/toolkits/zoho/tools/delete-account.js +29 -0
- package/dist/toolkits/zoho/tools/delete-contact.d.ts +6 -0
- package/dist/toolkits/zoho/tools/delete-contact.js +29 -0
- package/dist/toolkits/zoho/tools/delete-deal.d.ts +6 -0
- package/dist/toolkits/zoho/tools/delete-deal.js +29 -0
- package/dist/toolkits/zoho/tools/get-account.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-account.js +34 -0
- package/dist/toolkits/zoho/tools/get-call.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-call.js +34 -0
- package/dist/toolkits/zoho/tools/get-contact.d.ts +5 -0
- package/dist/toolkits/zoho/tools/get-contact.js +33 -0
- package/dist/toolkits/zoho/tools/get-email-drafts.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-email-drafts.js +34 -0
- package/dist/toolkits/zoho/tools/get-event.d.ts +5 -0
- package/dist/toolkits/zoho/tools/get-event.js +33 -0
- package/dist/toolkits/zoho/tools/get-from-addresses.d.ts +4 -0
- package/dist/toolkits/zoho/tools/get-from-addresses.js +32 -0
- package/dist/toolkits/zoho/tools/get-module-fields.d.ts +8 -0
- package/dist/toolkits/zoho/tools/get-module-fields.js +36 -0
- package/dist/toolkits/zoho/tools/get-note.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-note.js +34 -0
- package/dist/toolkits/zoho/tools/get-record-emails.d.ts +9 -0
- package/dist/toolkits/zoho/tools/get-record-emails.js +37 -0
- package/dist/toolkits/zoho/tools/get-related-lists.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-related-lists.js +29 -0
- package/dist/toolkits/zoho/tools/get-related-records.d.ts +15 -0
- package/dist/toolkits/zoho/tools/get-related-records.js +38 -0
- package/dist/toolkits/zoho/tools/get-task.d.ts +6 -0
- package/dist/toolkits/zoho/tools/get-task.js +34 -0
- package/dist/toolkits/zoho/tools/get-user.d.ts +5 -0
- package/dist/toolkits/zoho/tools/get-user.js +33 -0
- package/dist/toolkits/zoho/tools/get-zoho-records.d.ts +13 -0
- package/dist/toolkits/zoho/tools/get-zoho-records.js +59 -0
- package/dist/toolkits/zoho/tools/get-zoho-users.d.ts +9 -0
- package/dist/toolkits/zoho/tools/get-zoho-users.js +32 -0
- package/dist/toolkits/zoho/tools/index.d.ts +789 -0
- package/dist/toolkits/zoho/tools/index.js +175 -0
- package/dist/toolkits/zoho/tools/list-accounts.d.ts +14 -0
- package/dist/toolkits/zoho/tools/list-accounts.js +60 -0
- package/dist/toolkits/zoho/tools/list-calls.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-calls.js +58 -0
- package/dist/toolkits/zoho/tools/list-contacts.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-contacts.js +58 -0
- package/dist/toolkits/zoho/tools/list-deals.d.ts +15 -0
- package/dist/toolkits/zoho/tools/list-deals.js +61 -0
- package/dist/toolkits/zoho/tools/list-events.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-events.js +58 -0
- package/dist/toolkits/zoho/tools/list-leads.d.ts +13 -0
- package/dist/toolkits/zoho/tools/list-leads.js +59 -0
- package/dist/toolkits/zoho/tools/list-modules.d.ts +4 -0
- package/dist/toolkits/zoho/tools/list-modules.js +50 -0
- package/dist/toolkits/zoho/tools/list-notes.d.ts +7 -0
- package/dist/toolkits/zoho/tools/list-notes.js +53 -0
- package/dist/toolkits/zoho/tools/list-record-attachments.d.ts +9 -0
- package/dist/toolkits/zoho/tools/list-record-attachments.js +55 -0
- package/dist/toolkits/zoho/tools/list-tasks.d.ts +12 -0
- package/dist/toolkits/zoho/tools/list-tasks.js +58 -0
- package/dist/toolkits/zoho/tools/search-accounts.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-accounts.js +49 -0
- package/dist/toolkits/zoho/tools/search-calls.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-calls.js +49 -0
- package/dist/toolkits/zoho/tools/search-contacts.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-contacts.js +49 -0
- package/dist/toolkits/zoho/tools/search-deals.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-deals.js +49 -0
- package/dist/toolkits/zoho/tools/search-events.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-events.js +49 -0
- package/dist/toolkits/zoho/tools/search-leads.d.ts +13 -0
- package/dist/toolkits/zoho/tools/search-leads.js +51 -0
- package/dist/toolkits/zoho/tools/search-notes.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-notes.js +49 -0
- package/dist/toolkits/zoho/tools/search-tasks.d.ts +11 -0
- package/dist/toolkits/zoho/tools/search-tasks.js +49 -0
- package/dist/toolkits/zoho/tools/search-zoho-records.d.ts +12 -0
- package/dist/toolkits/zoho/tools/search-zoho-records.js +50 -0
- package/dist/toolkits/zoho/tools/update-account.d.ts +32 -0
- package/dist/toolkits/zoho/tools/update-account.js +55 -0
- package/dist/toolkits/zoho/tools/update-call.d.ts +8 -0
- package/dist/toolkits/zoho/tools/update-call.js +33 -0
- package/dist/toolkits/zoho/tools/update-deal.d.ts +9 -0
- package/dist/toolkits/zoho/tools/update-deal.js +34 -0
- package/dist/toolkits/zoho/tools/update-email-draft.d.ts +17 -0
- package/dist/toolkits/zoho/tools/update-email-draft.js +42 -0
- package/dist/toolkits/zoho/tools/update-event.d.ts +6 -0
- package/dist/toolkits/zoho/tools/update-event.js +31 -0
- package/dist/toolkits/zoho/tools/update-lead.d.ts +9 -0
- package/dist/toolkits/zoho/tools/update-lead.js +34 -0
- package/dist/toolkits/zoho/tools/update-note.d.ts +8 -0
- package/dist/toolkits/zoho/tools/update-note.js +33 -0
- package/dist/toolkits/zoho/tools/update-related-records.d.ts +8 -0
- package/dist/toolkits/zoho/tools/update-related-records.js +33 -0
- package/dist/toolkits/zoho/tools/update-zoho-record.d.ts +10 -0
- package/dist/toolkits/zoho/tools/update-zoho-record.js +35 -0
- package/dist/toolkits/zoho/tools/upload-attachment.d.ts +9 -0
- package/dist/toolkits/zoho/tools/upload-attachment.js +34 -0
- package/dist/toolkits/zoho/tools/utils.d.ts +24 -0
- package/dist/toolkits/zoho/tools/utils.js +49 -0
- package/dist/toolkits/zoho/tools/validate-credential.d.ts +4 -0
- package/dist/toolkits/zoho/tools/validate-credential.js +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const wiseListActivities: import("ai").Tool<{
|
|
2
|
+
profileId: number;
|
|
3
|
+
status?: "REQUIRES_ATTENTION" | "IN_PROGRESS" | "UPCOMING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
4
|
+
since?: string | undefined;
|
|
5
|
+
pageSize?: number | undefined;
|
|
6
|
+
until?: string | undefined;
|
|
7
|
+
nextCursor?: string | undefined;
|
|
8
|
+
wiseApiKey?: string | undefined;
|
|
9
|
+
resourceType?: "ACCRUAL_CHARGE" | "ACQUIRING_PAYMENT" | "ASSETS_WITHDRAWAL" | "BALANCE_CASHBACK" | "BALANCE_INTEREST" | "BALANCE_TRANSACTION" | "BANK_DETAILS_ORDER" | "BATCH_TRANSFER" | "CARD_CASHBACK" | "CARD_ORDER" | "CARD_TRANSACTION" | "DIRECT_DEBIT_INSTRUCTION" | "DIRECT_DEBIT_TRANSACTION" | "FEE_REFUND" | "INCIDENT_REFUND" | "INCORPORATION_ORDER" | "OPERATIONAL_TRANSACTION" | "PAYMENT_REQUEST" | "REWARD" | "REWARDS_REDEMPTION" | "SEND_ORDER" | "SEND_ORDER_EXECUTION" | "TRANSFER" | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
error: string;
|
|
12
|
+
details?: undefined;
|
|
13
|
+
activities?: undefined;
|
|
14
|
+
hasMore?: undefined;
|
|
15
|
+
nextCursor?: undefined;
|
|
16
|
+
raw?: undefined;
|
|
17
|
+
message?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
error: string;
|
|
20
|
+
details: any;
|
|
21
|
+
activities?: undefined;
|
|
22
|
+
hasMore?: undefined;
|
|
23
|
+
nextCursor?: undefined;
|
|
24
|
+
raw?: undefined;
|
|
25
|
+
message?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
activities: any;
|
|
28
|
+
hasMore: any;
|
|
29
|
+
nextCursor: any;
|
|
30
|
+
raw: any;
|
|
31
|
+
error?: undefined;
|
|
32
|
+
details?: undefined;
|
|
33
|
+
message?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
error: string;
|
|
36
|
+
message: string;
|
|
37
|
+
details?: undefined;
|
|
38
|
+
activities?: undefined;
|
|
39
|
+
hasMore?: undefined;
|
|
40
|
+
nextCursor?: undefined;
|
|
41
|
+
raw?: undefined;
|
|
42
|
+
}>;
|
|
43
|
+
//# sourceMappingURL=list-activities.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { wiseFetch } from './utils.js';
|
|
5
|
+
export const wiseListActivities = tool({
|
|
6
|
+
description: "List a Wise profile's account activity with optional status, resource-type, and time filters, one page at a time.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
wiseApiKey: z.string().optional().describe('Wise API token.'),
|
|
9
|
+
profileId: z.number().describe('Wise profile ID whose activity to list.'),
|
|
10
|
+
status: z.enum(['REQUIRES_ATTENTION', 'IN_PROGRESS', 'UPCOMING', 'COMPLETED', 'CANCELLED']).optional().describe('Optional activity status to include.'),
|
|
11
|
+
resourceType: z.enum(['ACCRUAL_CHARGE', 'ACQUIRING_PAYMENT', 'ASSETS_WITHDRAWAL', 'BALANCE_CASHBACK', 'BALANCE_INTEREST', 'BALANCE_TRANSACTION', 'BANK_DETAILS_ORDER', 'BATCH_TRANSFER', 'CARD_CASHBACK', 'CARD_ORDER', 'CARD_TRANSACTION', 'DIRECT_DEBIT_INSTRUCTION', 'DIRECT_DEBIT_TRANSACTION', 'FEE_REFUND', 'INCIDENT_REFUND', 'INCORPORATION_ORDER', 'OPERATIONAL_TRANSACTION', 'PAYMENT_REQUEST', 'REWARD', 'REWARDS_REDEMPTION', 'SEND_ORDER', 'SEND_ORDER_EXECUTION', 'TRANSFER']).optional().describe('Optional Wise monetary resource type to include.'),
|
|
12
|
+
since: z.string().optional().describe('Return activity at or after this ISO 8601 timestamp.'),
|
|
13
|
+
until: z.string().optional().describe('Return activity at or before this ISO 8601 timestamp.'),
|
|
14
|
+
pageSize: z.number().min(1).max(100).optional().describe('Activities to return in this page (1-100).'),
|
|
15
|
+
nextCursor: z.string().optional().describe('Continuation cursor returned by a previous call; omit for the first page.'),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ wiseApiKey, profileId, status, resourceType, since, until, pageSize, nextCursor }) => {
|
|
18
|
+
if (!wiseApiKey)
|
|
19
|
+
return { error: 'Wise API key is required. Connect Wise first.' };
|
|
20
|
+
try {
|
|
21
|
+
const res = await wiseFetch(`/v3/profiles/${profileId}/activities`, {
|
|
22
|
+
wiseApiKey,
|
|
23
|
+
method: 'GET',
|
|
24
|
+
query: {
|
|
25
|
+
status,
|
|
26
|
+
resourceType,
|
|
27
|
+
since,
|
|
28
|
+
until,
|
|
29
|
+
size: pageSize,
|
|
30
|
+
cursor: nextCursor,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
if (!res.ok)
|
|
34
|
+
return { error: 'Failed to list activities', details: res.data };
|
|
35
|
+
const d = res.data;
|
|
36
|
+
// Wise activities endpoint returns { activities: [...], nextCursor }
|
|
37
|
+
return {
|
|
38
|
+
activities: d.activities ?? d.data ?? [],
|
|
39
|
+
hasMore: d.hasMore ?? !!d.nextCursor,
|
|
40
|
+
nextCursor: d.nextCursor ?? d.next_cursor ?? null,
|
|
41
|
+
raw: d,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
catch (e) {
|
|
45
|
+
return { error: 'Error listing activities', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=list-activities.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const wiseListBalances: import("ai").Tool<{
|
|
2
|
+
profileId: number;
|
|
3
|
+
wiseApiKey?: string | undefined;
|
|
4
|
+
balanceTypes?: ("STANDARD" | "SAVINGS")[] | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
error: string;
|
|
7
|
+
details?: undefined;
|
|
8
|
+
balances?: undefined;
|
|
9
|
+
raw?: undefined;
|
|
10
|
+
message?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
error: string;
|
|
13
|
+
details: any;
|
|
14
|
+
balances?: undefined;
|
|
15
|
+
raw?: undefined;
|
|
16
|
+
message?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
balances: any;
|
|
19
|
+
raw: any;
|
|
20
|
+
error?: undefined;
|
|
21
|
+
details?: undefined;
|
|
22
|
+
message?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
error: string;
|
|
25
|
+
message: string;
|
|
26
|
+
details?: undefined;
|
|
27
|
+
balances?: undefined;
|
|
28
|
+
raw?: undefined;
|
|
29
|
+
}>;
|
|
30
|
+
//# sourceMappingURL=list-balances.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { wiseFetch } from './utils.js';
|
|
5
|
+
export const wiseListBalances = tool({
|
|
6
|
+
description: 'List standard balances and savings jars for a Wise profile without creating, deleting, or moving funds between balances.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
wiseApiKey: z.string().optional().describe('Wise API token.'),
|
|
9
|
+
profileId: z.number().describe('Wise profile ID whose balances to list.'),
|
|
10
|
+
balanceTypes: z.array(z.enum(['STANDARD', 'SAVINGS'])).optional().describe('Balance types to include; defaults to both STANDARD balances and SAVINGS jars.'),
|
|
11
|
+
}),
|
|
12
|
+
execute: async ({ wiseApiKey, profileId, balanceTypes }) => {
|
|
13
|
+
if (!wiseApiKey)
|
|
14
|
+
return { error: 'Wise API key is required. Connect Wise first.' };
|
|
15
|
+
try {
|
|
16
|
+
const res = await wiseFetch(`/v4/profiles/${profileId}/balances`, {
|
|
17
|
+
wiseApiKey,
|
|
18
|
+
method: 'GET',
|
|
19
|
+
query: {
|
|
20
|
+
types: balanceTypes ? balanceTypes.join(',') : undefined,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
if (!res.ok)
|
|
24
|
+
return { error: 'Failed to list balances', details: res.data };
|
|
25
|
+
const d = res.data;
|
|
26
|
+
const balances = Array.isArray(d) ? d : d.balances ?? [];
|
|
27
|
+
return { balances, raw: d };
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
return { error: 'Error listing balances', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=list-balances.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const wiseListCurrencies: import("ai").Tool<{
|
|
2
|
+
locale?: string | undefined;
|
|
3
|
+
wiseApiKey?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
error: string;
|
|
6
|
+
details?: undefined;
|
|
7
|
+
currencies?: undefined;
|
|
8
|
+
raw?: undefined;
|
|
9
|
+
message?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
error: string;
|
|
12
|
+
details: any;
|
|
13
|
+
currencies?: undefined;
|
|
14
|
+
raw?: undefined;
|
|
15
|
+
message?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
currencies: any;
|
|
18
|
+
raw: any;
|
|
19
|
+
error?: undefined;
|
|
20
|
+
details?: undefined;
|
|
21
|
+
message?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
error: string;
|
|
24
|
+
message: string;
|
|
25
|
+
details?: undefined;
|
|
26
|
+
currencies?: undefined;
|
|
27
|
+
raw?: undefined;
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=list-currencies.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { wiseFetch } from './utils.js';
|
|
5
|
+
export const wiseListCurrencies = tool({
|
|
6
|
+
description: 'List currencies Wise currently supports for transfers, including their ISO codes and decimal support.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
wiseApiKey: z.string().optional().describe('Wise API token.'),
|
|
9
|
+
locale: z.string().optional().describe('Language code for localized currency names, such as en, de, fr, or ja.'),
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ wiseApiKey, locale }) => {
|
|
12
|
+
if (!wiseApiKey)
|
|
13
|
+
return { error: 'Wise API key is required. Connect Wise first.' };
|
|
14
|
+
try {
|
|
15
|
+
const res = await wiseFetch('/v1/currencies', {
|
|
16
|
+
wiseApiKey,
|
|
17
|
+
method: 'GET',
|
|
18
|
+
query: { locale },
|
|
19
|
+
});
|
|
20
|
+
if (!res.ok)
|
|
21
|
+
return { error: 'Failed to list currencies', details: res.data };
|
|
22
|
+
const d = res.data;
|
|
23
|
+
const currencies = Array.isArray(d) ? d : d.currencies ?? [];
|
|
24
|
+
return { currencies, raw: d };
|
|
25
|
+
}
|
|
26
|
+
catch (e) {
|
|
27
|
+
return { error: 'Error listing currencies', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=list-currencies.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const wiseListProfiles: import("ai").Tool<{
|
|
2
|
+
wiseApiKey?: string | undefined;
|
|
3
|
+
}, {
|
|
4
|
+
error: string;
|
|
5
|
+
details?: undefined;
|
|
6
|
+
profiles?: undefined;
|
|
7
|
+
raw?: undefined;
|
|
8
|
+
message?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
error: string;
|
|
11
|
+
details: any;
|
|
12
|
+
profiles?: undefined;
|
|
13
|
+
raw?: undefined;
|
|
14
|
+
message?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
profiles: any;
|
|
17
|
+
raw: any;
|
|
18
|
+
error?: undefined;
|
|
19
|
+
details?: undefined;
|
|
20
|
+
message?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
error: string;
|
|
23
|
+
message: string;
|
|
24
|
+
details?: undefined;
|
|
25
|
+
profiles?: undefined;
|
|
26
|
+
raw?: undefined;
|
|
27
|
+
}>;
|
|
28
|
+
//# sourceMappingURL=list-profiles.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { wiseFetch } from './utils.js';
|
|
5
|
+
export const wiseListProfiles = tool({
|
|
6
|
+
description: "List the connected Wise account's personal or business profiles and return the profile IDs required by profile-scoped tools.",
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
wiseApiKey: z.string().optional().describe('Wise API token.'),
|
|
9
|
+
}),
|
|
10
|
+
execute: async ({ wiseApiKey }) => {
|
|
11
|
+
if (!wiseApiKey)
|
|
12
|
+
return { error: 'Wise API key is required. Connect Wise first.' };
|
|
13
|
+
try {
|
|
14
|
+
const res = await wiseFetch('/v2/profiles', {
|
|
15
|
+
wiseApiKey,
|
|
16
|
+
method: 'GET',
|
|
17
|
+
});
|
|
18
|
+
if (!res.ok)
|
|
19
|
+
return { error: 'Failed to list profiles', details: res.data };
|
|
20
|
+
const d = res.data;
|
|
21
|
+
const profiles = Array.isArray(d) ? d : d.profiles ?? [];
|
|
22
|
+
return { profiles, raw: d };
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
return { error: 'Error listing profiles', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=list-profiles.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const wiseListRecipients: import("ai").Tool<{
|
|
2
|
+
profileId: number;
|
|
3
|
+
pageSize?: number | undefined;
|
|
4
|
+
active?: boolean | undefined;
|
|
5
|
+
nextCursor?: string | undefined;
|
|
6
|
+
wiseApiKey?: string | undefined;
|
|
7
|
+
currencies?: string[] | undefined;
|
|
8
|
+
recipientTypes?: string[] | undefined;
|
|
9
|
+
ownedByCustomer?: boolean | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
error: string;
|
|
12
|
+
details?: undefined;
|
|
13
|
+
recipients?: undefined;
|
|
14
|
+
hasMore?: undefined;
|
|
15
|
+
nextCursor?: undefined;
|
|
16
|
+
raw?: undefined;
|
|
17
|
+
message?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
error: string;
|
|
20
|
+
details: any;
|
|
21
|
+
recipients?: undefined;
|
|
22
|
+
hasMore?: undefined;
|
|
23
|
+
nextCursor?: undefined;
|
|
24
|
+
raw?: undefined;
|
|
25
|
+
message?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
recipients: any;
|
|
28
|
+
hasMore: any;
|
|
29
|
+
nextCursor: any;
|
|
30
|
+
raw: any;
|
|
31
|
+
error?: undefined;
|
|
32
|
+
details?: undefined;
|
|
33
|
+
message?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
error: string;
|
|
36
|
+
message: string;
|
|
37
|
+
details?: undefined;
|
|
38
|
+
recipients?: undefined;
|
|
39
|
+
hasMore?: undefined;
|
|
40
|
+
nextCursor?: undefined;
|
|
41
|
+
raw?: undefined;
|
|
42
|
+
}>;
|
|
43
|
+
//# sourceMappingURL=list-recipients.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { wiseFetch } from './utils.js';
|
|
5
|
+
export const wiseListRecipients = tool({
|
|
6
|
+
description: 'List Wise recipients for a profile, optionally filtering by active status, ownership, currency, or account type. Returns summary identity fields but excludes bank-account details; this tool cannot modify recipients.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
wiseApiKey: z.string().optional().describe('Wise API token.'),
|
|
9
|
+
profileId: z.number().describe('Wise profile ID whose recipients to list.'),
|
|
10
|
+
active: z.boolean().optional().describe('Whether to return active recipients; defaults to true.'),
|
|
11
|
+
currencies: z.array(z.string()).optional().describe('Optional recipient currency codes to include.'),
|
|
12
|
+
recipientTypes: z.array(z.string()).optional().describe('Optional Wise recipient account types to include, such as iban or swift_code.'),
|
|
13
|
+
ownedByCustomer: z.boolean().optional().describe('Optionally filter recipients by whether the connected customer owns the destination account.'),
|
|
14
|
+
pageSize: z.number().min(1).max(20).optional().describe('Recipients to return in this page (1-20).'),
|
|
15
|
+
nextCursor: z.string().optional().describe('Opaque continuation cursor returned by a previous call; omit for the first page.'),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ wiseApiKey, profileId, active, currencies, recipientTypes, ownedByCustomer, pageSize, nextCursor }) => {
|
|
18
|
+
if (!wiseApiKey)
|
|
19
|
+
return { error: 'Wise API key is required. Connect Wise first.' };
|
|
20
|
+
try {
|
|
21
|
+
const res = await wiseFetch('/v1/accounts', {
|
|
22
|
+
wiseApiKey,
|
|
23
|
+
method: 'GET',
|
|
24
|
+
query: {
|
|
25
|
+
profile: profileId,
|
|
26
|
+
currency: currencies ? currencies.join(',') : undefined,
|
|
27
|
+
type: recipientTypes ? recipientTypes.join(',') : undefined,
|
|
28
|
+
ownedByCustomer,
|
|
29
|
+
size: pageSize,
|
|
30
|
+
cursor: nextCursor,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
if (!res.ok)
|
|
34
|
+
return { error: 'Failed to list recipients', details: res.data };
|
|
35
|
+
const d = res.data;
|
|
36
|
+
// Wise accounts endpoint paginates with nextCursor
|
|
37
|
+
// For active filter, do client-side filtering if needed
|
|
38
|
+
let recipients = d.content ?? d.recipients ?? d.accounts ?? [];
|
|
39
|
+
if (active !== undefined) {
|
|
40
|
+
recipients = recipients.filter((r) => r.active === active);
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
recipients,
|
|
44
|
+
hasMore: d.hasMore ?? !!d.nextCursor,
|
|
45
|
+
nextCursor: d.nextCursor ?? null,
|
|
46
|
+
raw: d,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
catch (e) {
|
|
50
|
+
return { error: 'Error listing recipients', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=list-recipients.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const wiseListTransfers: import("ai").Tool<{
|
|
2
|
+
profileId: number;
|
|
3
|
+
pageSize?: number | undefined;
|
|
4
|
+
statuses?: ("unknown" | "cancelled" | "incoming_payment_waiting" | "incoming_payment_initiated" | "processing" | "funds_converted" | "outgoing_payment_sent" | "funds_refunded" | "bounced_back" | "charged_back")[] | undefined;
|
|
5
|
+
nextCursor?: string | undefined;
|
|
6
|
+
wiseApiKey?: string | undefined;
|
|
7
|
+
sourceCurrency?: string | undefined;
|
|
8
|
+
targetCurrency?: string | undefined;
|
|
9
|
+
createdAtOrAfter?: string | undefined;
|
|
10
|
+
createdAtOrBefore?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
error: string;
|
|
13
|
+
details?: undefined;
|
|
14
|
+
transfers?: undefined;
|
|
15
|
+
hasMore?: undefined;
|
|
16
|
+
nextCursor?: undefined;
|
|
17
|
+
raw?: undefined;
|
|
18
|
+
message?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
error: string;
|
|
21
|
+
details: any;
|
|
22
|
+
transfers?: undefined;
|
|
23
|
+
hasMore?: undefined;
|
|
24
|
+
nextCursor?: undefined;
|
|
25
|
+
raw?: undefined;
|
|
26
|
+
message?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
transfers: any;
|
|
29
|
+
hasMore: any;
|
|
30
|
+
nextCursor: any;
|
|
31
|
+
raw: any;
|
|
32
|
+
error?: undefined;
|
|
33
|
+
details?: undefined;
|
|
34
|
+
message?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
error: string;
|
|
37
|
+
message: string;
|
|
38
|
+
details?: undefined;
|
|
39
|
+
transfers?: undefined;
|
|
40
|
+
hasMore?: undefined;
|
|
41
|
+
nextCursor?: undefined;
|
|
42
|
+
raw?: undefined;
|
|
43
|
+
}>;
|
|
44
|
+
//# sourceMappingURL=list-transfers.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { wiseFetch } from './utils.js';
|
|
5
|
+
export const wiseListTransfers = tool({
|
|
6
|
+
description: 'List and filter existing Wise transfers for a profile, one page at a time; this tool cannot create, fund, or cancel transfers.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
wiseApiKey: z.string().optional().describe('Wise API token.'),
|
|
9
|
+
profileId: z.number().describe('Wise profile ID whose transfers to list.'),
|
|
10
|
+
statuses: z.array(z.enum(['incoming_payment_waiting', 'incoming_payment_initiated', 'processing', 'funds_converted', 'outgoing_payment_sent', 'cancelled', 'funds_refunded', 'bounced_back', 'charged_back', 'unknown'])).optional().describe('Wise transfer statuses to include; values are sent as a comma-separated filter.'),
|
|
11
|
+
sourceCurrency: z.string().optional().describe('Optional three-letter source currency filter.'),
|
|
12
|
+
targetCurrency: z.string().optional().describe('Optional three-letter target currency filter.'),
|
|
13
|
+
createdAtOrAfter: z.string().optional().describe('Inclusive ISO 8601 lower bound for transfer creation time.'),
|
|
14
|
+
createdAtOrBefore: z.string().optional().describe('Inclusive ISO 8601 upper bound for transfer creation time.'),
|
|
15
|
+
pageSize: z.number().min(1).max(99).optional().describe('Transfers to return in this page (1-99).'),
|
|
16
|
+
nextCursor: z.string().optional().describe('Opaque continuation cursor returned by a previous call; omit for the first page.'),
|
|
17
|
+
}),
|
|
18
|
+
execute: async ({ wiseApiKey, profileId, statuses, sourceCurrency, targetCurrency, createdAtOrAfter, createdAtOrBefore, pageSize, nextCursor }) => {
|
|
19
|
+
if (!wiseApiKey)
|
|
20
|
+
return { error: 'Wise API key is required. Connect Wise first.' };
|
|
21
|
+
try {
|
|
22
|
+
const res = await wiseFetch('/v1/transfers', {
|
|
23
|
+
wiseApiKey,
|
|
24
|
+
method: 'GET',
|
|
25
|
+
query: {
|
|
26
|
+
profile: profileId,
|
|
27
|
+
status: statuses ? statuses.join(',') : undefined,
|
|
28
|
+
sourceCurrency,
|
|
29
|
+
targetCurrency,
|
|
30
|
+
createdAtOrAfter,
|
|
31
|
+
createdAtOrBefore,
|
|
32
|
+
limit: pageSize,
|
|
33
|
+
cursor: nextCursor,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
if (!res.ok)
|
|
37
|
+
return { error: 'Failed to list transfers', details: res.data };
|
|
38
|
+
const d = res.data;
|
|
39
|
+
const transfers = d.content ?? d.transfers ?? [];
|
|
40
|
+
return {
|
|
41
|
+
transfers,
|
|
42
|
+
hasMore: d.hasMore ?? !!d.nextCursor,
|
|
43
|
+
nextCursor: d.nextCursor ?? null,
|
|
44
|
+
raw: d,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
return { error: 'Error listing transfers', message: e instanceof Error ? e.message : 'Unknown error' };
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=list-transfers.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const WISE_API_BASE = "https://api.transferwise.com";
|
|
2
|
+
export declare function wiseFetch(path: string, { wiseApiKey, method, query, body, }: {
|
|
3
|
+
wiseApiKey: string;
|
|
4
|
+
method?: string;
|
|
5
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
6
|
+
body?: unknown;
|
|
7
|
+
}): Promise<{
|
|
8
|
+
ok: false;
|
|
9
|
+
status: number;
|
|
10
|
+
data: any;
|
|
11
|
+
error: any;
|
|
12
|
+
} | {
|
|
13
|
+
ok: true;
|
|
14
|
+
status: number;
|
|
15
|
+
data: any;
|
|
16
|
+
error?: undefined;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
export const WISE_API_BASE = 'https://api.transferwise.com';
|
|
3
|
+
export async function wiseFetch(path, { wiseApiKey, method = 'GET', query, body, }) {
|
|
4
|
+
const url = new URL(`${WISE_API_BASE}${path}`);
|
|
5
|
+
if (query) {
|
|
6
|
+
Object.entries(query).forEach(([k, v]) => {
|
|
7
|
+
if (v !== undefined && v !== null && v !== '') {
|
|
8
|
+
if (Array.isArray(v)) {
|
|
9
|
+
url.searchParams.set(k, v.join(','));
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
url.searchParams.set(k, String(v));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const headers = {
|
|
18
|
+
Authorization: `Bearer ${wiseApiKey}`,
|
|
19
|
+
'Content-Type': 'application/json',
|
|
20
|
+
};
|
|
21
|
+
const res = await fetch(url.toString(), {
|
|
22
|
+
method,
|
|
23
|
+
headers,
|
|
24
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
25
|
+
});
|
|
26
|
+
const text = await res.text();
|
|
27
|
+
let data;
|
|
28
|
+
try {
|
|
29
|
+
data = text ? JSON.parse(text) : {};
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
data = { raw: text };
|
|
33
|
+
}
|
|
34
|
+
if (!res.ok) {
|
|
35
|
+
return { ok: false, status: res.status, data, error: data };
|
|
36
|
+
}
|
|
37
|
+
return { ok: true, status: res.status, data };
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const SVG = `<svg viewBox="0 0 122.52 122.523" xmlns="http://www.w3.org/2000/svg"><g fill="#21759b"><path d="m8.708 61.26c0 20.802 12.089 38.779 29.619 47.298l-25.069-68.686c-2.916 6.536-4.55 13.769-4.55 21.388z"/><path d="m96.74 58.608c0-6.495-2.333-10.993-4.334-14.494-2.664-4.329-5.161-7.995-5.161-12.324 0-4.831 3.664-9.328 8.825-9.328.233 0 .454.029.681.042-9.35-8.566-21.807-13.796-35.489-13.796-18.36 0-34.513 9.42-43.91 23.688 1.233.037 2.395.063 3.382.063 5.497 0 14.006-.667 14.006-.667 2.833-.167 3.167 3.994.337 4.329 0 0-2.847.335-6.015.501l19.138 56.925 11.501-34.493-8.188-22.434c-2.83-.166-5.511-.501-5.511-.501-2.832-.166-2.5-4.496.332-4.329 0 0 8.679.667 13.843.667 5.496 0 14.006-.667 14.006-.667 2.835-.167 3.168 3.994.337 4.329 0 0-2.853.335-6.015.501l18.992 56.494 5.242-17.517c2.272-7.269 4.001-12.49 4.001-16.989z"/><path d="m62.184 65.857-15.768 45.819c4.708 1.384 9.687 2.141 14.846 2.141 6.12 0 11.989-1.058 17.452-2.979-.141-.225-.269-.464-.374-.724z"/><path d="m107.376 36.046c.226 1.674.354 3.471.354 5.404 0 5.333-.996 11.328-3.996 18.824l-16.053 46.413c15.624-9.111 26.133-26.038 26.133-45.426.001-9.137-2.333-17.729-6.438-25.215z"/><path d="m61.262 0c-33.779 0-61.262 27.481-61.262 61.26 0 33.783 27.483 61.263 61.262 61.263 33.778 0 61.265-27.48 61.265-61.263-.001-33.779-27.487-61.26-61.265-61.26zm0 119.715c-32.23 0-58.453-26.223-58.453-58.455 0-32.23 26.222-58.451 58.453-58.451 32.229 0 58.45 26.221 58.45 58.451 0 32.232-26.221 58.455-58.45 58.455z"/></g></svg>`;
|
|
2
|
+
export const WORDPRESS_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,36 @@
|
|
|
1
|
+
import { defineToolkit, defineTool } from '../../core/define.js';
|
|
2
|
+
import { WORDPRESS_ICON } from './icon.js';
|
|
3
|
+
import { wordpressTools } from './tools/index.js';
|
|
4
|
+
export default defineToolkit({
|
|
5
|
+
id: 'wordpress',
|
|
6
|
+
displayName: 'WordPress.com',
|
|
7
|
+
shortDescription: 'Manage WordPress.com sites, posts, pages, media and settings.',
|
|
8
|
+
category: 'Marketing & Social Media',
|
|
9
|
+
icon: WORDPRESS_ICON,
|
|
10
|
+
auth: {
|
|
11
|
+
type: 'oauth2',
|
|
12
|
+
tokenField: 'wordpressToken',
|
|
13
|
+
provider: {
|
|
14
|
+
slug: 'wordpress',
|
|
15
|
+
env: { clientId: 'WORDPRESS_CLIENT_ID', clientSecret: 'WORDPRESS_CLIENT_SECRET' },
|
|
16
|
+
authorizeUrl: 'https://public-api.wordpress.com/oauth2/authorize',
|
|
17
|
+
tokenUrl: 'https://public-api.wordpress.com/oauth2/token',
|
|
18
|
+
scopes: ['global'],
|
|
19
|
+
exchangeStyle: 'form',
|
|
20
|
+
extraAuthParams: { response_type: 'code' },
|
|
21
|
+
connectDescription: 'Connect WordPress.com to manage sites, draft posts, content and media. Requires a WordPress.com account with site access.',
|
|
22
|
+
callbackPath: '/api/auth/wordpress/callback',
|
|
23
|
+
stateCookie: 'wordpress_oauth_state',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
allowedHosts: ['public-api.wordpress.com'],
|
|
27
|
+
tools: wordpressTools.map((entry) => defineTool({
|
|
28
|
+
name: entry.name,
|
|
29
|
+
description: entry.description,
|
|
30
|
+
tool: entry.tool,
|
|
31
|
+
requiredAuth: entry.requiredAuth,
|
|
32
|
+
scope: entry.scope,
|
|
33
|
+
})),
|
|
34
|
+
meta: { since: '0.0.1' },
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const wordpressCreateDraftPost: import("ai").Tool<{
|
|
2
|
+
title: string;
|
|
3
|
+
wordpressToken: string;
|
|
4
|
+
siteId: number;
|
|
5
|
+
content?: string | undefined;
|
|
6
|
+
categoryIds?: number[] | undefined;
|
|
7
|
+
excerpt?: string | undefined;
|
|
8
|
+
tagIds?: number[] | undefined;
|
|
9
|
+
featuredMediaId?: number | undefined;
|
|
10
|
+
commentStatus?: "open" | "closed" | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
error: string;
|
|
13
|
+
details?: undefined;
|
|
14
|
+
post?: undefined;
|
|
15
|
+
message?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
error: string;
|
|
18
|
+
details: any;
|
|
19
|
+
post?: undefined;
|
|
20
|
+
message?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
post: {
|
|
23
|
+
id: any;
|
|
24
|
+
status: any;
|
|
25
|
+
title: any;
|
|
26
|
+
content: any;
|
|
27
|
+
excerpt: any;
|
|
28
|
+
link: any;
|
|
29
|
+
slug: any;
|
|
30
|
+
authorId: any;
|
|
31
|
+
categoryIds: number[] | undefined;
|
|
32
|
+
tagIds: number[] | undefined;
|
|
33
|
+
commentStatus: any;
|
|
34
|
+
featuredMediaId: any;
|
|
35
|
+
date: any;
|
|
36
|
+
modified: any;
|
|
37
|
+
};
|
|
38
|
+
error?: undefined;
|
|
39
|
+
details?: undefined;
|
|
40
|
+
message?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
error: string;
|
|
43
|
+
message: string;
|
|
44
|
+
details?: undefined;
|
|
45
|
+
post?: undefined;
|
|
46
|
+
}>;
|
|
47
|
+
//# sourceMappingURL=create-draft-post.d.ts.map
|