@oomol-lab/open-connector 1.9.0 → 1.9.1
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/assets/open-connector/catalog/apps/agentearth.json +441 -0
- package/assets/open-connector/catalog/apps/appgrowing_mcp.json +863 -0
- package/assets/open-connector/catalog/apps/arcmira.json +610 -0
- package/assets/open-connector/catalog/apps/bainiu.json +654 -0
- package/assets/open-connector/catalog/apps/chaport.json +331 -0
- package/assets/open-connector/catalog/apps/cnb.json +1408 -0
- package/assets/open-connector/catalog/apps/crtsh.json +123 -0
- package/assets/open-connector/catalog/apps/eastmoney_miaoxiang.json +406 -0
- package/assets/open-connector/catalog/apps/fastmoss_mcp.json +876 -876
- package/assets/open-connector/catalog/apps/ftshare.json +1162 -0
- package/assets/open-connector/catalog/apps/fusion-api.json +143 -0
- package/assets/open-connector/catalog/apps/fxbaogao.json +308 -0
- package/assets/open-connector/catalog/apps/github.json +38 -3
- package/assets/open-connector/catalog/apps/hrmos_kintai.json +7519 -0
- package/assets/open-connector/catalog/apps/humor_api.json +351 -0
- package/assets/open-connector/catalog/apps/kaonavi.json +1723 -0
- package/assets/open-connector/catalog/apps/linear_mcp.json +882 -22
- package/assets/open-connector/catalog/apps/listinggood.json +362 -0
- package/assets/open-connector/catalog/apps/notion_mcp.json +338 -1
- package/assets/open-connector/catalog/apps/outlook.json +414 -0
- package/assets/open-connector/catalog/apps/porteden.json +1258 -0
- package/assets/open-connector/catalog/apps/qiuxiaoce.json +915 -0
- package/assets/open-connector/catalog/apps/qqmusic.json +1834 -0
- package/assets/open-connector/catalog/apps/rakuraku_seisan.json +217 -0
- package/assets/open-connector/catalog/apps/redfox.json +9661 -897
- package/assets/open-connector/catalog/apps/salesforce.json +4907 -0
- package/assets/open-connector/catalog/apps/sansan.json +4594 -0
- package/assets/open-connector/catalog/apps/smarthr.json +8071 -0
- package/assets/open-connector/catalog/apps/smooth.json +914 -0
- package/assets/open-connector/catalog/apps/tapd.json +727 -0
- package/assets/open-connector/catalog/apps/tencent_meeting_mcp.json +1301 -0
- package/assets/open-connector/catalog/apps/threatfox.json +203 -0
- package/assets/open-connector/catalog/apps/tradebee.json +915 -0
- package/assets/open-connector/catalog/apps/twittrapi.json +4914 -0
- package/assets/open-connector/catalog/apps/urlhaus.json +246 -0
- package/assets/open-connector/catalog/apps/weread.json +1514 -0
- package/assets/open-connector/catalog/apps/whatsapp.json +12 -0
- package/assets/open-connector/catalog/apps/zhiliaobiaoxun.json +812 -0
- package/assets/open-connector/catalog/apps-index.json +1 -1
- package/package.json +2 -1
- package/src/connection-service.js +55 -11
- package/src/core/provider-error-codes.d.ts +9 -0
- package/src/core/provider-error-codes.js +13 -0
- package/src/core/request.d.ts +2 -0
- package/src/core/request.js +11 -2
- package/src/mail/imap-smtp/protocol.js +4 -3
- package/src/oauth/oauth-flow-service.js +1 -0
- package/src/oauth/oauth-token.d.ts +2 -0
- package/src/providers/17track/runtime.js +17 -20
- package/src/providers/action-contracts.generated.d.ts +36 -6
- package/src/providers/agentearth/actions.d.ts +2 -0
- package/src/providers/agentearth/actions.js +100 -0
- package/src/providers/agentearth/executors.d.ts +4 -0
- package/src/providers/agentearth/executors.js +109 -0
- package/src/providers/appgrowing_mcp/actions.d.ts +2 -0
- package/src/providers/appgrowing_mcp/actions.js +175 -0
- package/src/providers/appgrowing_mcp/executors.d.ts +4 -0
- package/src/providers/appgrowing_mcp/executors.js +66 -0
- package/src/providers/arcmira/executors.d.ts +3 -0
- package/src/providers/arcmira/executors.js +8 -0
- package/src/providers/arcmira/runtime.d.ts +6 -0
- package/src/providers/arcmira/runtime.js +41 -0
- package/src/providers/bainiu/actions.d.ts +2 -0
- package/src/providers/bainiu/actions.js +108 -0
- package/src/providers/bainiu/executors.d.ts +4 -0
- package/src/providers/bainiu/executors.js +113 -0
- package/src/providers/baixiao/executors.js +1 -1
- package/src/providers/bing_webmaster/executors.js +1 -1
- package/src/providers/chaport/actions.d.ts +2 -0
- package/src/providers/chaport/actions.js +70 -0
- package/src/providers/chaport/executors.d.ts +4 -0
- package/src/providers/chaport/executors.js +128 -0
- package/src/providers/clickup/runtime.js +49 -52
- package/src/providers/cnb/actions.d.ts +2 -0
- package/src/providers/cnb/actions.js +341 -0
- package/src/providers/cnb/executors.d.ts +4 -0
- package/src/providers/cnb/executors.js +135 -0
- package/src/providers/coupontools/runtime.js +11 -14
- package/src/providers/crtsh/executors.d.ts +3 -0
- package/src/providers/crtsh/executors.js +19 -0
- package/src/providers/crtsh/runtime.d.ts +17 -0
- package/src/providers/crtsh/runtime.js +84 -0
- package/src/providers/eastmoney_miaoxiang/actions.d.ts +2 -0
- package/src/providers/eastmoney_miaoxiang/actions.js +95 -0
- package/src/providers/eastmoney_miaoxiang/executors.d.ts +4 -0
- package/src/providers/eastmoney_miaoxiang/executors.js +81 -0
- package/src/providers/fastmoss_mcp/actions-content.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-content.js +140 -0
- package/src/providers/fastmoss_mcp/actions-creator.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-creator.js +154 -0
- package/src/providers/fastmoss_mcp/actions-product.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-product.js +167 -0
- package/src/providers/fastmoss_mcp/actions-research.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-research.js +174 -0
- package/src/providers/fastmoss_mcp/actions-shop.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-shop.js +142 -0
- package/src/providers/fastmoss_mcp/actions.js +11 -12
- package/src/providers/fastmoss_mcp/schemas.d.ts +51 -0
- package/src/providers/fastmoss_mcp/schemas.js +52 -0
- package/src/providers/ftshare/actions.d.ts +2 -0
- package/src/providers/ftshare/actions.js +124 -0
- package/src/providers/ftshare/executors.d.ts +4 -0
- package/src/providers/ftshare/executors.js +102 -0
- package/src/providers/fusion-api/operations.js +37 -0
- package/src/providers/fxbaogao/actions.d.ts +2 -0
- package/src/providers/fxbaogao/actions.js +74 -0
- package/src/providers/fxbaogao/executors.d.ts +4 -0
- package/src/providers/fxbaogao/executors.js +155 -0
- package/src/providers/github/app-installation.d.ts +37 -0
- package/src/providers/github/app-installation.js +233 -0
- package/src/providers/github/executors.js +93 -15
- package/src/providers/github/runtime-repository.js +21 -1
- package/src/providers/github/runtime-shared.d.ts +2 -0
- package/src/providers/github/runtime-shared.js +1 -0
- package/src/providers/googledrive/runtime-request.js +3 -3
- package/src/providers/hrmos_kintai/actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/actions.js +139 -0
- package/src/providers/hrmos_kintai/attendance-actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/attendance-actions.js +276 -0
- package/src/providers/hrmos_kintai/business-actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/business-actions.js +143 -0
- package/src/providers/hrmos_kintai/business-schemas.d.ts +4 -0
- package/src/providers/hrmos_kintai/business-schemas.js +320 -0
- package/src/providers/hrmos_kintai/executors.d.ts +4 -0
- package/src/providers/hrmos_kintai/executors.js +61 -0
- package/src/providers/hrmos_kintai/export-actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/export-actions.js +58 -0
- package/src/providers/hrmos_kintai/operations.d.ts +9 -0
- package/src/providers/hrmos_kintai/operations.js +278 -0
- package/src/providers/hrmos_kintai/runtime.d.ts +10 -0
- package/src/providers/hrmos_kintai/runtime.js +217 -0
- package/src/providers/hrmos_kintai/schemas.d.ts +10 -0
- package/src/providers/hrmos_kintai/schemas.js +70 -0
- package/src/providers/humor_api/actions.d.ts +2 -0
- package/src/providers/humor_api/actions.js +96 -0
- package/src/providers/humor_api/executors.d.ts +4 -0
- package/src/providers/humor_api/executors.js +76 -0
- package/src/providers/kaonavi/actions.d.ts +4 -0
- package/src/providers/kaonavi/actions.js +144 -0
- package/src/providers/kaonavi/additional-actions.d.ts +10 -0
- package/src/providers/kaonavi/additional-actions.js +203 -0
- package/src/providers/kaonavi/executors.d.ts +4 -0
- package/src/providers/kaonavi/executors.js +69 -0
- package/src/providers/kaonavi/runtime.d.ts +4 -0
- package/src/providers/kaonavi/runtime.js +69 -0
- package/src/providers/linear_mcp/actions.d.ts +14 -0
- package/src/providers/linear_mcp/actions.js +134 -0
- package/src/providers/linear_mcp/runtime-mcp.d.ts +7 -1
- package/src/providers/linear_mcp/runtime-mcp.js +140 -28
- package/src/providers/linkfox/runtime.js +48 -51
- package/src/providers/listinggood/actions.d.ts +2 -0
- package/src/providers/listinggood/actions.js +95 -0
- package/src/providers/listinggood/executors.d.ts +4 -0
- package/src/providers/listinggood/executors.js +99 -0
- package/src/providers/mcp-tools.d.ts +3 -0
- package/src/providers/mcp-tools.js +5 -4
- package/src/providers/notion_mcp/executors.js +53 -24
- package/src/providers/notion_mcp/mcp-response.d.ts +26 -0
- package/src/providers/notion_mcp/mcp-response.js +95 -0
- package/src/providers/omise/executors.js +1 -1
- package/src/providers/outlook/executors.js +35 -2
- package/src/providers/porteden/actions.d.ts +2 -0
- package/src/providers/porteden/actions.js +162 -0
- package/src/providers/porteden/executors.d.ts +4 -0
- package/src/providers/porteden/executors.js +140 -0
- package/src/providers/provider-runtime.d.ts +3 -2
- package/src/providers/pushover/runtime.js +28 -31
- package/src/providers/qianfan/runtime.js +16 -19
- package/src/providers/qiuxiaoce/actions.d.ts +2 -0
- package/src/providers/qiuxiaoce/actions.js +248 -0
- package/src/providers/qiuxiaoce/executors.d.ts +4 -0
- package/src/providers/qiuxiaoce/executors.js +76 -0
- package/src/providers/qiuxiaoce/routes.d.ts +1 -0
- package/src/providers/qiuxiaoce/routes.js +20 -0
- package/src/providers/qqmusic/actions.d.ts +2 -0
- package/src/providers/qqmusic/actions.js +229 -0
- package/src/providers/qqmusic/executors.d.ts +4 -0
- package/src/providers/qqmusic/executors.js +92 -0
- package/src/providers/qqmusic/report-schema.d.ts +4 -0
- package/src/providers/qqmusic/report-schema.js +119 -0
- package/src/providers/rakuraku_seisan/actions.d.ts +2 -0
- package/src/providers/rakuraku_seisan/actions.js +50 -0
- package/src/providers/rakuraku_seisan/executors.d.ts +4 -0
- package/src/providers/rakuraku_seisan/executors.js +40 -0
- package/src/providers/rakuraku_seisan/runtime.d.ts +8 -0
- package/src/providers/rakuraku_seisan/runtime.js +251 -0
- package/src/providers/redfox/actions-account.d.ts +2 -0
- package/src/providers/redfox/actions-account.js +24 -0
- package/src/providers/redfox/actions-autohome.d.ts +2 -0
- package/src/providers/redfox/actions-autohome.js +51 -0
- package/src/providers/redfox/actions-baijiahao.d.ts +2 -0
- package/src/providers/redfox/actions-baijiahao.js +58 -0
- package/src/providers/redfox/actions-bilibili.d.ts +2 -0
- package/src/providers/redfox/actions-bilibili.js +67 -0
- package/src/providers/redfox/actions-dongchedi.d.ts +2 -0
- package/src/providers/redfox/actions-dongchedi.js +49 -0
- package/src/providers/redfox/actions-douyin.d.ts +2 -0
- package/src/providers/redfox/actions-douyin.js +297 -0
- package/src/providers/redfox/actions-generation.d.ts +2 -0
- package/src/providers/redfox/actions-generation.js +293 -0
- package/src/providers/redfox/actions-instagram.d.ts +2 -0
- package/src/providers/redfox/actions-instagram.js +49 -0
- package/src/providers/redfox/actions-kuaishou.d.ts +2 -0
- package/src/providers/redfox/actions-kuaishou.js +53 -0
- package/src/providers/redfox/actions-search.d.ts +2 -0
- package/src/providers/redfox/actions-search.js +125 -0
- package/src/providers/redfox/actions-tiktok.d.ts +2 -0
- package/src/providers/redfox/actions-tiktok.js +136 -0
- package/src/providers/redfox/actions-tools.d.ts +2 -0
- package/src/providers/redfox/actions-tools.js +151 -0
- package/src/providers/redfox/actions-toutiao.d.ts +2 -0
- package/src/providers/redfox/actions-toutiao.js +68 -0
- package/src/providers/redfox/actions-transcription.d.ts +2 -0
- package/src/providers/redfox/actions-transcription.js +165 -0
- package/src/providers/redfox/actions-wechat-channel.d.ts +2 -0
- package/src/providers/redfox/actions-wechat-channel.js +63 -0
- package/src/providers/redfox/actions-wechat.d.ts +2 -0
- package/src/providers/redfox/actions-wechat.js +302 -0
- package/src/providers/redfox/actions-weibo.d.ts +2 -0
- package/src/providers/redfox/actions-weibo.js +61 -0
- package/src/providers/redfox/actions-x.d.ts +2 -0
- package/src/providers/redfox/actions-x.js +126 -0
- package/src/providers/redfox/actions-xiaohongshu.d.ts +2 -0
- package/src/providers/redfox/actions-xiaohongshu.js +244 -0
- package/src/providers/redfox/actions-yiche.d.ts +2 -0
- package/src/providers/redfox/actions-yiche.js +59 -0
- package/src/providers/redfox/actions-youtube.d.ts +2 -0
- package/src/providers/redfox/actions-youtube.js +64 -0
- package/src/providers/redfox/actions-zhihu.d.ts +2 -0
- package/src/providers/redfox/actions-zhihu.js +26 -0
- package/src/providers/redfox/actions.d.ts +2 -0
- package/src/providers/redfox/actions.js +49 -0
- package/src/providers/redfox/executors.d.ts +2 -14
- package/src/providers/redfox/executors.js +28 -551
- package/src/providers/redfox/routes.d.ts +11 -0
- package/src/providers/redfox/routes.js +329 -0
- package/src/providers/redfox/runtime.d.ts +6 -0
- package/src/providers/redfox/runtime.js +151 -0
- package/src/providers/redfox/schemas.d.ts +9 -0
- package/src/providers/redfox/schemas.js +40 -0
- package/src/providers/registry.generated.js +30 -0
- package/src/providers/salesforce/context.d.ts +16 -0
- package/src/providers/salesforce/context.js +58 -0
- package/src/providers/salesforce/executors.d.ts +5 -0
- package/src/providers/salesforce/executors.js +54 -0
- package/src/providers/salesforce/media.d.ts +9 -0
- package/src/providers/salesforce/media.js +66 -0
- package/src/providers/salesforce/oauth.d.ts +2 -0
- package/src/providers/salesforce/oauth.js +89 -0
- package/src/providers/salesforce/runtime-analytics.d.ts +2 -0
- package/src/providers/salesforce/runtime-analytics.js +60 -0
- package/src/providers/salesforce/runtime-automation.d.ts +2 -0
- package/src/providers/salesforce/runtime-automation.js +64 -0
- package/src/providers/salesforce/runtime-base.d.ts +2 -0
- package/src/providers/salesforce/runtime-base.js +51 -0
- package/src/providers/salesforce/runtime-bulk.d.ts +2 -0
- package/src/providers/salesforce/runtime-bulk.js +98 -0
- package/src/providers/salesforce/runtime-data.d.ts +2 -0
- package/src/providers/salesforce/runtime-data.js +207 -0
- package/src/providers/salesforce/runtime-files.d.ts +2 -0
- package/src/providers/salesforce/runtime-files.js +108 -0
- package/src/providers/salesforce/transport.d.ts +9 -0
- package/src/providers/salesforce/transport.js +65 -0
- package/src/providers/sansan/actions.d.ts +2 -0
- package/src/providers/sansan/actions.js +165 -0
- package/src/providers/sansan/admin-actions.d.ts +2 -0
- package/src/providers/sansan/admin-actions.js +181 -0
- package/src/providers/sansan/admin.d.ts +2 -0
- package/src/providers/sansan/admin.js +42 -0
- package/src/providers/sansan/business-actions.d.ts +2 -0
- package/src/providers/sansan/business-actions.js +160 -0
- package/src/providers/sansan/business.d.ts +2 -0
- package/src/providers/sansan/business.js +51 -0
- package/src/providers/sansan/executors.d.ts +4 -0
- package/src/providers/sansan/executors.js +59 -0
- package/src/providers/sansan/file-schema.d.ts +2 -0
- package/src/providers/sansan/file-schema.js +8 -0
- package/src/providers/sansan/files.d.ts +11 -0
- package/src/providers/sansan/files.js +49 -0
- package/src/providers/sansan/organization-actions.d.ts +2 -0
- package/src/providers/sansan/organization-actions.js +198 -0
- package/src/providers/sansan/organization-columns.d.ts +2 -0
- package/src/providers/sansan/organization-columns.js +33 -0
- package/src/providers/sansan/organization.d.ts +2 -0
- package/src/providers/sansan/organization.js +88 -0
- package/src/providers/sansan/read.d.ts +2 -0
- package/src/providers/sansan/read.js +25 -0
- package/src/providers/sansan/request.d.ts +22 -0
- package/src/providers/sansan/request.js +94 -0
- package/src/providers/sansan/schemas.d.ts +7 -0
- package/src/providers/sansan/schemas.js +72 -0
- package/src/providers/shopee/runtime.d.ts +33 -29
- package/src/providers/shopee/runtime.js +166 -169
- package/src/providers/smarthr/actions.d.ts +2 -0
- package/src/providers/smarthr/actions.js +286 -0
- package/src/providers/smarthr/employee-runtime.d.ts +1 -0
- package/src/providers/smarthr/employee-runtime.js +63 -0
- package/src/providers/smarthr/employee-schema.d.ts +3 -0
- package/src/providers/smarthr/employee-schema.js +222 -0
- package/src/providers/smarthr/executors.d.ts +4 -0
- package/src/providers/smarthr/executors.js +35 -0
- package/src/providers/smarthr/pagination.d.ts +1 -0
- package/src/providers/smarthr/pagination.js +84 -0
- package/src/providers/smarthr/resource-routes.d.ts +16 -0
- package/src/providers/smarthr/resource-routes.js +163 -0
- package/src/providers/smarthr/runtime.d.ts +13 -0
- package/src/providers/smarthr/runtime.js +242 -0
- package/src/providers/smarthr/supplemental-actions.d.ts +2 -0
- package/src/providers/smarthr/supplemental-actions.js +541 -0
- package/src/providers/smooth/actions.d.ts +2 -0
- package/src/providers/smooth/actions.js +138 -0
- package/src/providers/smooth/executors.d.ts +4 -0
- package/src/providers/smooth/executors.js +102 -0
- package/src/providers/tapd/actions.d.ts +8 -0
- package/src/providers/tapd/actions.js +89 -0
- package/src/providers/tapd/executors.d.ts +4 -0
- package/src/providers/tapd/executors.js +137 -0
- package/src/providers/teable/runtime.js +12 -15
- package/src/providers/tencent_meeting_mcp/actions.d.ts +2 -0
- package/src/providers/tencent_meeting_mcp/actions.js +420 -0
- package/src/providers/tencent_meeting_mcp/executors.d.ts +4 -0
- package/src/providers/tencent_meeting_mcp/executors.js +117 -0
- package/src/providers/threatfox/executors.d.ts +4 -0
- package/src/providers/threatfox/executors.js +40 -0
- package/src/providers/threatfox/runtime.d.ts +15 -0
- package/src/providers/threatfox/runtime.js +128 -0
- package/src/providers/ticket_tailor/runtime.js +1 -1
- package/src/providers/ticketmaster/runtime.js +3 -6
- package/src/providers/timelinesai/runtime.js +13 -16
- package/src/providers/tradebee/actions.d.ts +2 -0
- package/src/providers/tradebee/actions.js +176 -0
- package/src/providers/tradebee/executors.d.ts +4 -0
- package/src/providers/tradebee/executors.js +83 -0
- package/src/providers/twittrapi/executors.d.ts +4 -0
- package/src/providers/twittrapi/executors.js +17 -0
- package/src/providers/twittrapi/runtime.d.ts +12 -0
- package/src/providers/twittrapi/runtime.js +203 -0
- package/src/providers/urlhaus/executors.d.ts +4 -0
- package/src/providers/urlhaus/executors.js +40 -0
- package/src/providers/urlhaus/runtime.d.ts +15 -0
- package/src/providers/urlhaus/runtime.js +142 -0
- package/src/providers/wangdian/runtime.js +16 -19
- package/src/providers/weread/actions.d.ts +2 -0
- package/src/providers/weread/actions.js +424 -0
- package/src/providers/weread/executors.d.ts +4 -0
- package/src/providers/weread/executors.js +98 -0
- package/src/providers/whatsapp/runtime.js +6 -1
- package/src/providers/workast/runtime.js +12 -17
- package/src/providers/youzan/runtime.js +21 -24
- package/src/providers/zenkit/runtime.js +13 -19
- package/src/providers/zhiliaobiaoxun/actions.d.ts +2 -0
- package/src/providers/zhiliaobiaoxun/actions.js +138 -0
- package/src/providers/zhiliaobiaoxun/executors.d.ts +4 -0
- package/src/providers/zhiliaobiaoxun/executors.js +78 -0
- package/src/server/api/auth.d.ts +2 -0
- package/src/server/api/auth.js +2 -1
- package/src/server/api/console-catalog-routes.d.ts +17 -0
- package/src/server/api/console-catalog-routes.js +88 -0
- package/src/server/api/console-oauth-routes.d.ts +18 -0
- package/src/server/api/console-oauth-routes.js +298 -0
- package/src/server/api/docs-routes.d.ts +12 -0
- package/src/server/api/docs-routes.js +38 -0
- package/src/server/api/http-utils.d.ts +1 -0
- package/src/server/api/http-utils.js +8 -0
- package/src/server/api/marketplace-routes.d.ts +7 -0
- package/src/server/api/marketplace-routes.js +62 -0
- package/src/server/api/mcp-routes.d.ts +18 -0
- package/src/server/api/mcp-routes.js +37 -0
- package/src/server/api/policy-routes.d.ts +13 -0
- package/src/server/api/policy-routes.js +50 -0
- package/src/server/api/policy-snapshot.d.ts +14 -0
- package/src/server/api/policy-snapshot.js +30 -0
- package/src/server/api/run-log-routes.d.ts +7 -0
- package/src/server/api/run-log-routes.js +70 -0
- package/src/server/api/runtime-api.d.ts +0 -7
- package/src/server/api/runtime-api.js +0 -13
- package/src/server/api/runtime-app-routes.d.ts +10 -0
- package/src/server/api/runtime-app-routes.js +72 -0
- package/src/server/api/runtime-catalog-routes.d.ts +37 -0
- package/src/server/api/runtime-catalog-routes.js +133 -0
- package/src/server/api/runtime-execution-routes.d.ts +16 -0
- package/src/server/api/runtime-execution-routes.js +198 -0
- package/src/server/api/saas-oauth-routes.d.ts +9 -0
- package/src/server/api/saas-oauth-routes.js +27 -0
- package/src/server/api/saas-project-routes.d.ts +7 -0
- package/src/server/api/saas-project-routes.js +16 -0
- package/src/server/api/transit-file-routes.d.ts +9 -0
- package/src/server/api/transit-file-routes.js +49 -0
- package/src/server/api/trigger-routes.d.ts +15 -0
- package/src/server/api/trigger-routes.js +48 -0
- package/src/server/connect-app.d.ts +1 -0
- package/src/server/connect-app.js +3 -1
- package/src/server/connect-server.d.ts +3 -54
- package/src/server/connect-server.js +95 -1148
- package/src/providers/fastmoss_mcp/official-tools.json +0 -2922
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsonSchema as s } from "../../core/json-schema.js";
|
|
2
|
+
import { defineProviderAction } from "../../core/provider-definition.js";
|
|
3
|
+
import { responseSchema } from "./schemas.js";
|
|
4
|
+
export const xActions = [
|
|
5
|
+
defineProviderAction("redfox", {
|
|
6
|
+
name: "list_x_post_comments",
|
|
7
|
+
operationType: "read",
|
|
8
|
+
description: "List replies to an X post.",
|
|
9
|
+
requiredScopes: [],
|
|
10
|
+
inputSchema: s.object("Request parameters.", {
|
|
11
|
+
tweetId: s.nonEmptyString("X post ID."),
|
|
12
|
+
cursor: s.string("Pagination cursor. Start with 0; use the cursor returned by the previous response."),
|
|
13
|
+
}, { optional: ["cursor"] }),
|
|
14
|
+
outputSchema: responseSchema,
|
|
15
|
+
}),
|
|
16
|
+
defineProviderAction("redfox", {
|
|
17
|
+
name: "get_x_user",
|
|
18
|
+
operationType: "read",
|
|
19
|
+
description: "Get an X account by username or user ID.",
|
|
20
|
+
requiredScopes: [],
|
|
21
|
+
inputSchema: s.requireAnyProperty(s.object("Request parameters.", {
|
|
22
|
+
screenName: s.nonEmptyString("X username without @."),
|
|
23
|
+
restId: s.nonEmptyString("X numeric user ID. Takes precedence over screenName."),
|
|
24
|
+
}, { optional: ["screenName", "restId"] }), ["screenName", "restId"]),
|
|
25
|
+
outputSchema: responseSchema,
|
|
26
|
+
}),
|
|
27
|
+
defineProviderAction("redfox", {
|
|
28
|
+
name: "search_x_posts",
|
|
29
|
+
operationType: "read",
|
|
30
|
+
description: "Search X posts by keyword.",
|
|
31
|
+
requiredScopes: [],
|
|
32
|
+
inputSchema: s.object("Request parameters.", {
|
|
33
|
+
keyword: s.nonEmptyString("Search keyword."),
|
|
34
|
+
searchType: s.stringEnum("Search category.", ["Top", "Latest", "Media", "People", "Lists"]),
|
|
35
|
+
cursor: s.string("Pagination cursor. Start with 0; use the cursor returned by the previous response."),
|
|
36
|
+
}, { optional: ["searchType", "cursor"] }),
|
|
37
|
+
outputSchema: responseSchema,
|
|
38
|
+
}),
|
|
39
|
+
defineProviderAction("redfox", {
|
|
40
|
+
name: "get_x_post",
|
|
41
|
+
operationType: "read",
|
|
42
|
+
description: "Get an X post by its ID.",
|
|
43
|
+
requiredScopes: [],
|
|
44
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
45
|
+
tweetId: s.nonEmptyString("X post ID."),
|
|
46
|
+
}),
|
|
47
|
+
outputSchema: responseSchema,
|
|
48
|
+
}),
|
|
49
|
+
defineProviderAction("redfox", {
|
|
50
|
+
name: "list_x_hot_users",
|
|
51
|
+
operationType: "read",
|
|
52
|
+
description: "List popular X accounts by category. Uses the curated database.",
|
|
53
|
+
requiredScopes: [],
|
|
54
|
+
inputSchema: s.object("Request parameters.", {
|
|
55
|
+
pageNum: s.withDefault(s.integer("Page number, starting at 1.", { minimum: 1, maximum: 10 }), 1),
|
|
56
|
+
rankDate: s.nonEmptyString("Ranking date, formatted as yyyy-MM-dd."),
|
|
57
|
+
gender: s.stringEnum("Gender filter: all, male, female; also accepts 全部, 男, 女.", [
|
|
58
|
+
"all",
|
|
59
|
+
"male",
|
|
60
|
+
"female",
|
|
61
|
+
"全部",
|
|
62
|
+
"男",
|
|
63
|
+
"女",
|
|
64
|
+
]),
|
|
65
|
+
category: s.stringEnum("Content category.", [
|
|
66
|
+
"商业创业",
|
|
67
|
+
"全部行业",
|
|
68
|
+
"汽车出行",
|
|
69
|
+
"设计创意",
|
|
70
|
+
"航空领域",
|
|
71
|
+
"电商零售",
|
|
72
|
+
"教育培训",
|
|
73
|
+
"工程运营",
|
|
74
|
+
"娱乐文化",
|
|
75
|
+
"环境能源",
|
|
76
|
+
"家庭育儿",
|
|
77
|
+
"时尚美妆",
|
|
78
|
+
"金融投资",
|
|
79
|
+
"美食饮品",
|
|
80
|
+
"游戏电竞",
|
|
81
|
+
"健康医疗",
|
|
82
|
+
"牧场马术",
|
|
83
|
+
"宗教信仰",
|
|
84
|
+
"科学学术",
|
|
85
|
+
"体育健身",
|
|
86
|
+
"科技软件",
|
|
87
|
+
"旅行户外",
|
|
88
|
+
"视觉艺术",
|
|
89
|
+
"健康生活",
|
|
90
|
+
"居家手工",
|
|
91
|
+
"人力职场",
|
|
92
|
+
"公益平权",
|
|
93
|
+
"法律法务",
|
|
94
|
+
"市场营销",
|
|
95
|
+
"音乐领域",
|
|
96
|
+
"萌宠动物",
|
|
97
|
+
"政治新闻",
|
|
98
|
+
"all",
|
|
99
|
+
]),
|
|
100
|
+
}, { optional: ["rankDate"] }),
|
|
101
|
+
outputSchema: responseSchema,
|
|
102
|
+
}),
|
|
103
|
+
defineProviderAction("redfox", {
|
|
104
|
+
name: "list_x_user_following",
|
|
105
|
+
operationType: "read",
|
|
106
|
+
description: "List accounts followed by an X user.",
|
|
107
|
+
requiredScopes: [],
|
|
108
|
+
inputSchema: s.object("Request parameters.", {
|
|
109
|
+
screenName: s.nonEmptyString("X username without @."),
|
|
110
|
+
cursor: s.string("Pagination cursor. Start with 0; use the cursor returned by the previous response."),
|
|
111
|
+
}, { optional: ["cursor"] }),
|
|
112
|
+
outputSchema: responseSchema,
|
|
113
|
+
}),
|
|
114
|
+
defineProviderAction("redfox", {
|
|
115
|
+
name: "list_x_user_posts",
|
|
116
|
+
operationType: "read",
|
|
117
|
+
description: "List posts published by an X account.",
|
|
118
|
+
requiredScopes: [],
|
|
119
|
+
inputSchema: s.requireAnyProperty(s.object("Request parameters.", {
|
|
120
|
+
screenName: s.nonEmptyString("X username without @."),
|
|
121
|
+
restId: s.nonEmptyString("X numeric user ID. Takes precedence over screenName."),
|
|
122
|
+
cursor: s.string("Pagination cursor. Start with 0; use the cursor returned by the previous response."),
|
|
123
|
+
}, { optional: ["screenName", "restId", "cursor"] }), ["screenName", "restId"]),
|
|
124
|
+
outputSchema: responseSchema,
|
|
125
|
+
}),
|
|
126
|
+
];
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { jsonSchema as s } from "../../core/json-schema.js";
|
|
2
|
+
import { defineProviderAction } from "../../core/provider-definition.js";
|
|
3
|
+
import { responseSchema } from "./schemas.js";
|
|
4
|
+
export const xiaohongshuActions = [
|
|
5
|
+
defineProviderAction("redfox", {
|
|
6
|
+
name: "list_xiaohongshu_hot_users",
|
|
7
|
+
operationType: "read",
|
|
8
|
+
description: "List ranked Xiaohongshu accounts by category. Data is updated on a T+1 schedule, not in real time.",
|
|
9
|
+
requiredScopes: [],
|
|
10
|
+
inputSchema: s.object("Request parameters.", {
|
|
11
|
+
dateType: s.withEnum(s.integer("Ranking period."), [1, 2, 3]),
|
|
12
|
+
rankDate: s.nonEmptyString("Ranking date, formatted as yyyy-MM-dd."),
|
|
13
|
+
type: s.stringEnum("Content category.", [
|
|
14
|
+
"综合全部",
|
|
15
|
+
"出行代步",
|
|
16
|
+
"医疗保健",
|
|
17
|
+
"休闲爱好",
|
|
18
|
+
"综合杂项",
|
|
19
|
+
"婚庆婚礼",
|
|
20
|
+
"居家装修",
|
|
21
|
+
"影视娱乐",
|
|
22
|
+
"星座情感",
|
|
23
|
+
"拍摄记录",
|
|
24
|
+
"学习教育",
|
|
25
|
+
"旅行度假",
|
|
26
|
+
"亲子育儿",
|
|
27
|
+
"日常生活",
|
|
28
|
+
"科学探索",
|
|
29
|
+
"数码科技",
|
|
30
|
+
"时尚穿搭",
|
|
31
|
+
"化妆美容",
|
|
32
|
+
"个人护理",
|
|
33
|
+
"美味佳肴",
|
|
34
|
+
"职业发展",
|
|
35
|
+
"宠物天地",
|
|
36
|
+
"新闻资讯",
|
|
37
|
+
"体育锻炼",
|
|
38
|
+
"潮流鞋包",
|
|
39
|
+
]),
|
|
40
|
+
}, { optional: ["dateType", "rankDate", "type"] }),
|
|
41
|
+
outputSchema: responseSchema,
|
|
42
|
+
}),
|
|
43
|
+
defineProviderAction("redfox", {
|
|
44
|
+
name: "get_xiaohongshu_user",
|
|
45
|
+
operationType: "read",
|
|
46
|
+
description: "Get details about a Xiaohongshu account. Uses the curated database. Data is updated on a T+1 schedule, not in real time.",
|
|
47
|
+
requiredScopes: [],
|
|
48
|
+
inputSchema: s.object("Request parameters.", {
|
|
49
|
+
accountId: s.nonEmptyString("Platform account ID."),
|
|
50
|
+
userId: s.nonEmptyString("User ID."),
|
|
51
|
+
}, { optional: ["userId"] }),
|
|
52
|
+
outputSchema: responseSchema,
|
|
53
|
+
}),
|
|
54
|
+
defineProviderAction("redfox", {
|
|
55
|
+
name: "get_xiaohongshu_work",
|
|
56
|
+
operationType: "read",
|
|
57
|
+
description: "Get a Xiaohongshu work by its ID or link. Uses the curated database. Data is updated on a T+1 schedule, not in real time.",
|
|
58
|
+
requiredScopes: [],
|
|
59
|
+
inputSchema: s.requireAnyProperty(s.object("Request parameters.", {
|
|
60
|
+
workId: s.nonEmptyString("Work ID."),
|
|
61
|
+
workLink: s.nonEmptyString("Work URL."),
|
|
62
|
+
}, { optional: ["workId", "workLink"] }), ["workId", "workLink"]),
|
|
63
|
+
outputSchema: responseSchema,
|
|
64
|
+
}),
|
|
65
|
+
defineProviderAction("redfox", {
|
|
66
|
+
name: "search_xiaohongshu_users",
|
|
67
|
+
operationType: "read",
|
|
68
|
+
description: "Search Xiaohongshu accounts by keyword. Uses the curated database. Data is updated on a T+1 schedule, not in real time.",
|
|
69
|
+
requiredScopes: [],
|
|
70
|
+
inputSchema: s.object("Request parameters.", {
|
|
71
|
+
keyword: s.nonEmptyString("Search keyword."),
|
|
72
|
+
offset: s.integer("Pagination offset. Start with 0 and increase by 20.", { minimum: 0 }),
|
|
73
|
+
sortType: s.stringEnum("Sort: _0 = relevance, _2 = newest, _4 = hottest. For account searches, newest refers to recent posts and hottest to the platform ranking.", ["_0", "_2", "_4"]),
|
|
74
|
+
}, { optional: ["offset", "sortType"] }),
|
|
75
|
+
outputSchema: responseSchema,
|
|
76
|
+
}),
|
|
77
|
+
defineProviderAction("redfox", {
|
|
78
|
+
name: "search_xiaohongshu_works",
|
|
79
|
+
operationType: "read",
|
|
80
|
+
description: "Search Xiaohongshu notes by keyword. Uses the curated database. Data is updated on a T+1 schedule, not in real time.",
|
|
81
|
+
requiredScopes: [],
|
|
82
|
+
inputSchema: s.object("Request parameters.", {
|
|
83
|
+
keyword: s.nonEmptyString("Search keyword."),
|
|
84
|
+
offset: s.integer("Pagination offset. Start with 0 and increase by 20.", { minimum: 0 }),
|
|
85
|
+
sortType: s.stringEnum("Sort: _0 = relevance, _2 = newest, _4 = hottest. For account searches, newest refers to recent posts and hottest to the platform ranking.", ["_0", "_2", "_4"]),
|
|
86
|
+
exactMatch: s.boolean("Require the entire keyword phrase in the title, summary, content or author instead of token matching."),
|
|
87
|
+
}, { optional: ["offset", "sortType", "exactMatch"] }),
|
|
88
|
+
outputSchema: responseSchema,
|
|
89
|
+
}),
|
|
90
|
+
defineProviderAction("redfox", {
|
|
91
|
+
name: "search_xiaohongshu_ai_creations",
|
|
92
|
+
operationType: "read",
|
|
93
|
+
description: "Search Xiaohongshu works related to AI creation. Data is updated on a T+1 schedule, not in real time.",
|
|
94
|
+
requiredScopes: [],
|
|
95
|
+
inputSchema: s.object("Request parameters.", {
|
|
96
|
+
keyword: s.nonEmptyString("Search keyword."),
|
|
97
|
+
pageNum: s.integer("Page number, starting at 1.", { exclusiveMinimum: 0 }),
|
|
98
|
+
pageSize: s.integer("Number of results per page.", { exclusiveMinimum: 0 }),
|
|
99
|
+
startTime: s.nonEmptyString("Time bound formatted as yyyy-MM-dd HH:mm:ss."),
|
|
100
|
+
endTime: s.nonEmptyString("Time bound formatted as yyyy-MM-dd HH:mm:ss."),
|
|
101
|
+
}, { optional: ["pageNum", "pageSize"] }),
|
|
102
|
+
outputSchema: responseSchema,
|
|
103
|
+
}),
|
|
104
|
+
defineProviderAction("redfox", {
|
|
105
|
+
name: "search_xiaohongshu_viral_notes",
|
|
106
|
+
operationType: "read",
|
|
107
|
+
description: "Search popular Xiaohongshu notes by keyword and date. Data is updated on a T+1 schedule, not in real time.",
|
|
108
|
+
requiredScopes: [],
|
|
109
|
+
inputSchema: s.object("Request parameters.", {
|
|
110
|
+
keyword: s.nonEmptyString("Search keyword."),
|
|
111
|
+
pageNum: s.integer("Page number, starting at 1.", { minimum: 1 }),
|
|
112
|
+
pageSize: s.integer("Number of results per page.", { minimum: 1, maximum: 50 }),
|
|
113
|
+
startDate: s.nonEmptyString("Start date, formatted as yyyy-MM-dd."),
|
|
114
|
+
endDate: s.nonEmptyString("End date, formatted as yyyy-MM-dd."),
|
|
115
|
+
}, { optional: ["keyword", "pageNum", "pageSize", "startDate", "endDate"] }),
|
|
116
|
+
outputSchema: responseSchema,
|
|
117
|
+
}),
|
|
118
|
+
defineProviderAction("redfox", {
|
|
119
|
+
name: "list_xiaohongshu_weekly_viral_notes",
|
|
120
|
+
operationType: "read",
|
|
121
|
+
description: "List popular Xiaohongshu notes for a week. Data is updated on a T+1 schedule, not in real time.",
|
|
122
|
+
requiredScopes: [],
|
|
123
|
+
inputSchema: s.object("Request parameters.", {
|
|
124
|
+
rankDate: s.nonEmptyString("Ranking date, formatted as yyyy-MM-dd."),
|
|
125
|
+
category: s.stringEnum("Content category.", [
|
|
126
|
+
"综合全部",
|
|
127
|
+
"出行代步",
|
|
128
|
+
"医疗保健",
|
|
129
|
+
"休闲爱好",
|
|
130
|
+
"综合杂项",
|
|
131
|
+
"婚庆婚礼",
|
|
132
|
+
"居家装修",
|
|
133
|
+
"影视娱乐",
|
|
134
|
+
"星座情感",
|
|
135
|
+
"拍摄记录",
|
|
136
|
+
"学习教育",
|
|
137
|
+
"旅行度假",
|
|
138
|
+
"亲子育儿",
|
|
139
|
+
"日常生活",
|
|
140
|
+
"科学探索",
|
|
141
|
+
"数码科技",
|
|
142
|
+
"时尚穿搭",
|
|
143
|
+
"化妆美容",
|
|
144
|
+
"个人护理",
|
|
145
|
+
"美味佳肴",
|
|
146
|
+
"职业发展",
|
|
147
|
+
"宠物天地",
|
|
148
|
+
"新闻资讯",
|
|
149
|
+
"体育锻炼",
|
|
150
|
+
"潮流鞋包",
|
|
151
|
+
]),
|
|
152
|
+
}, { optional: ["rankDate", "category"] }),
|
|
153
|
+
outputSchema: responseSchema,
|
|
154
|
+
}),
|
|
155
|
+
defineProviderAction("redfox", {
|
|
156
|
+
name: "list_xiaohongshu_user_works",
|
|
157
|
+
operationType: "read",
|
|
158
|
+
description: "List notes published by a Xiaohongshu account. Uses the curated database. Data is updated on a T+1 schedule, not in real time.",
|
|
159
|
+
requiredScopes: [],
|
|
160
|
+
inputSchema: s.requireAnyProperty(s.object("Request parameters.", {
|
|
161
|
+
redId: s.nonEmptyString("Xiaohongshu display ID. Provide redId or userid."),
|
|
162
|
+
userid: s.nonEmptyString("Xiaohongshu primary user ID. Provide redId or userid."),
|
|
163
|
+
offset: s.integer("Pagination offset. Start with 0 and increase by 20.", { minimum: 0 }),
|
|
164
|
+
sortType: s.stringEnum("Sort: _0 = relevance, _2 = newest, _4 = hottest. For account searches, newest refers to recent posts and hottest to the platform ranking.", ["_0", "_2", "_4"]),
|
|
165
|
+
publishTimeStart: s.nonEmptyString("Earliest publication time; not earlier than 2026-04-01."),
|
|
166
|
+
publishTimeEnd: s.nonEmptyString("Latest publication time."),
|
|
167
|
+
}, { optional: ["redId", "userid", "offset", "sortType", "publishTimeStart", "publishTimeEnd"] }), ["redId", "userid"]),
|
|
168
|
+
outputSchema: responseSchema,
|
|
169
|
+
}),
|
|
170
|
+
defineProviderAction("redfox", {
|
|
171
|
+
name: "list_xiaohongshu_breakout_notes",
|
|
172
|
+
operationType: "read",
|
|
173
|
+
description: "List Xiaohongshu notes that outperform their authors’ usual engagement. Data is updated on a T+1 schedule, not in real time.",
|
|
174
|
+
requiredScopes: [],
|
|
175
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
176
|
+
category: s.stringEnum("Content category.", [
|
|
177
|
+
"综合全部",
|
|
178
|
+
"出行代步",
|
|
179
|
+
"医疗保健",
|
|
180
|
+
"休闲爱好",
|
|
181
|
+
"综合杂项",
|
|
182
|
+
"婚庆婚礼",
|
|
183
|
+
"居家装修",
|
|
184
|
+
"影视娱乐",
|
|
185
|
+
"星座情感",
|
|
186
|
+
"拍摄记录",
|
|
187
|
+
"学习教育",
|
|
188
|
+
"旅行度假",
|
|
189
|
+
"亲子育儿",
|
|
190
|
+
"日常生活",
|
|
191
|
+
"科学探索",
|
|
192
|
+
"数码科技",
|
|
193
|
+
"时尚穿搭",
|
|
194
|
+
"化妆美容",
|
|
195
|
+
"个人护理",
|
|
196
|
+
"美味佳肴",
|
|
197
|
+
"职业发展",
|
|
198
|
+
"宠物天地",
|
|
199
|
+
"新闻资讯",
|
|
200
|
+
"体育锻炼",
|
|
201
|
+
"潮流鞋包",
|
|
202
|
+
]),
|
|
203
|
+
rankDate: s.nonEmptyString("Ranking date, formatted as yyyy-MM-dd."),
|
|
204
|
+
}),
|
|
205
|
+
outputSchema: responseSchema,
|
|
206
|
+
}),
|
|
207
|
+
defineProviderAction("redfox", {
|
|
208
|
+
name: "list_xiaohongshu_daily_viral_notes",
|
|
209
|
+
operationType: "read",
|
|
210
|
+
description: "List popular Xiaohongshu notes for a day. Data is updated on a T+1 schedule, not in real time.",
|
|
211
|
+
requiredScopes: [],
|
|
212
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
213
|
+
rankDate: s.nonEmptyString("Ranking date, formatted as yyyy-MM-dd."),
|
|
214
|
+
category: s.stringEnum("Content category.", [
|
|
215
|
+
"综合全部",
|
|
216
|
+
"出行代步",
|
|
217
|
+
"医疗保健",
|
|
218
|
+
"休闲爱好",
|
|
219
|
+
"综合杂项",
|
|
220
|
+
"婚庆婚礼",
|
|
221
|
+
"居家装修",
|
|
222
|
+
"影视娱乐",
|
|
223
|
+
"星座情感",
|
|
224
|
+
"拍摄记录",
|
|
225
|
+
"学习教育",
|
|
226
|
+
"旅行度假",
|
|
227
|
+
"亲子育儿",
|
|
228
|
+
"日常生活",
|
|
229
|
+
"科学探索",
|
|
230
|
+
"数码科技",
|
|
231
|
+
"时尚穿搭",
|
|
232
|
+
"化妆美容",
|
|
233
|
+
"个人护理",
|
|
234
|
+
"美味佳肴",
|
|
235
|
+
"职业发展",
|
|
236
|
+
"宠物天地",
|
|
237
|
+
"新闻资讯",
|
|
238
|
+
"体育锻炼",
|
|
239
|
+
"潮流鞋包",
|
|
240
|
+
]),
|
|
241
|
+
}),
|
|
242
|
+
outputSchema: responseSchema,
|
|
243
|
+
}),
|
|
244
|
+
];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsonSchema as s } from "../../core/json-schema.js";
|
|
2
|
+
import { defineProviderAction } from "../../core/provider-definition.js";
|
|
3
|
+
import { responseSchema } from "./schemas.js";
|
|
4
|
+
export const yicheActions = [
|
|
5
|
+
defineProviderAction("redfox", {
|
|
6
|
+
name: "get_yiche_video",
|
|
7
|
+
operationType: "read",
|
|
8
|
+
description: "Get details of a Yiche video.",
|
|
9
|
+
requiredScopes: [],
|
|
10
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
11
|
+
workId: s.nonEmptyString("Work ID."),
|
|
12
|
+
}),
|
|
13
|
+
outputSchema: responseSchema,
|
|
14
|
+
}),
|
|
15
|
+
defineProviderAction("redfox", {
|
|
16
|
+
name: "search_yiche_users",
|
|
17
|
+
operationType: "read",
|
|
18
|
+
description: "Search Yiche accounts by keyword.",
|
|
19
|
+
requiredScopes: [],
|
|
20
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
21
|
+
keyword: s.nonEmptyString("Search keyword."),
|
|
22
|
+
page: s.integer("Page number, starting at 1.", { minimum: 1 }),
|
|
23
|
+
}),
|
|
24
|
+
outputSchema: responseSchema,
|
|
25
|
+
}),
|
|
26
|
+
defineProviderAction("redfox", {
|
|
27
|
+
name: "list_yiche_user_works",
|
|
28
|
+
operationType: "read",
|
|
29
|
+
description: "List posts published by a Yiche account.",
|
|
30
|
+
requiredScopes: [],
|
|
31
|
+
inputSchema: s.object("Request parameters.", {
|
|
32
|
+
userId: s.nonEmptyString("User ID."),
|
|
33
|
+
timestamp: s.nonEmptyString("Omit for the first page; use the last item publishTime from the previous response."),
|
|
34
|
+
}, { optional: ["timestamp"] }),
|
|
35
|
+
outputSchema: responseSchema,
|
|
36
|
+
}),
|
|
37
|
+
defineProviderAction("redfox", {
|
|
38
|
+
name: "search_yiche_works",
|
|
39
|
+
operationType: "read",
|
|
40
|
+
description: "Search Yiche posts by keyword.",
|
|
41
|
+
requiredScopes: [],
|
|
42
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
43
|
+
keyword: s.nonEmptyString("Search keyword."),
|
|
44
|
+
page: s.integer("Page number, starting at 1.", { minimum: 1 }),
|
|
45
|
+
sourceType: s.stringEnum("Content source type.", ["club", "shipin", "xinwen"]),
|
|
46
|
+
}),
|
|
47
|
+
outputSchema: responseSchema,
|
|
48
|
+
}),
|
|
49
|
+
defineProviderAction("redfox", {
|
|
50
|
+
name: "get_yiche_article",
|
|
51
|
+
operationType: "read",
|
|
52
|
+
description: "Get the content and metadata of a Yiche article.",
|
|
53
|
+
requiredScopes: [],
|
|
54
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
55
|
+
url: s.nonEmptyString("Public content URL or platform share text containing the URL."),
|
|
56
|
+
}),
|
|
57
|
+
outputSchema: responseSchema,
|
|
58
|
+
}),
|
|
59
|
+
];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsonSchema as s } from "../../core/json-schema.js";
|
|
2
|
+
import { defineProviderAction } from "../../core/provider-definition.js";
|
|
3
|
+
import { responseSchema } from "./schemas.js";
|
|
4
|
+
export const youtubeActions = [
|
|
5
|
+
defineProviderAction("redfox", {
|
|
6
|
+
name: "get_youtube_transcript",
|
|
7
|
+
operationType: "read",
|
|
8
|
+
description: "Get the transcript of a YouTube video.",
|
|
9
|
+
requiredScopes: [],
|
|
10
|
+
inputSchema: s.object("Request parameters.", {
|
|
11
|
+
videoUrl: s.nonEmptyString("Video URL or YouTube video ID."),
|
|
12
|
+
format: s.stringEnum("Transcript format: json or text; defaults to json.", ["json", "text"]),
|
|
13
|
+
includeTimestamp: s.boolean("Include timestamps; defaults to true."),
|
|
14
|
+
sendMetadata: s.boolean("Include video metadata; defaults to false."),
|
|
15
|
+
language: s.nonEmptyString("Comma-separated language priorities, for example zh,en,asr."),
|
|
16
|
+
}, { optional: ["format", "includeTimestamp", "sendMetadata", "language"] }),
|
|
17
|
+
outputSchema: responseSchema,
|
|
18
|
+
}),
|
|
19
|
+
defineProviderAction("redfox", {
|
|
20
|
+
name: "search_youtube_videos",
|
|
21
|
+
operationType: "read",
|
|
22
|
+
description: "Search YouTube videos by keyword.",
|
|
23
|
+
requiredScopes: [],
|
|
24
|
+
inputSchema: s.object("Request parameters.", {
|
|
25
|
+
searchQuery: s.nonEmptyString("Search keyword."),
|
|
26
|
+
continuationToken: s.nonEmptyString("Continuation token returned by the previous response. Omit on the first page."),
|
|
27
|
+
}, { optional: ["continuationToken"] }),
|
|
28
|
+
outputSchema: responseSchema,
|
|
29
|
+
}),
|
|
30
|
+
defineProviderAction("redfox", {
|
|
31
|
+
name: "get_youtube_video",
|
|
32
|
+
operationType: "read",
|
|
33
|
+
description: "Get details of a YouTube video.",
|
|
34
|
+
requiredScopes: [],
|
|
35
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
36
|
+
videoId: s.nonEmptyString("Video ID."),
|
|
37
|
+
}),
|
|
38
|
+
outputSchema: responseSchema,
|
|
39
|
+
}),
|
|
40
|
+
defineProviderAction("redfox", {
|
|
41
|
+
name: "list_youtube_video_comments",
|
|
42
|
+
operationType: "read",
|
|
43
|
+
description: "List comments on a YouTube video.",
|
|
44
|
+
requiredScopes: [],
|
|
45
|
+
inputSchema: s.object("Request parameters.", {
|
|
46
|
+
videoId: s.nonEmptyString("Video ID."),
|
|
47
|
+
languageCode: s.nonEmptyString("Language code; defaults to zh-CN."),
|
|
48
|
+
countryCode: s.nonEmptyString("Country code; defaults to US."),
|
|
49
|
+
sortBy: s.stringEnum("Sort order.", ["top", "newest"]),
|
|
50
|
+
continuationToken: s.nonEmptyString("Continuation token returned by the previous response. Omit on the first page."),
|
|
51
|
+
}, { optional: ["languageCode", "countryCode", "sortBy", "continuationToken"] }),
|
|
52
|
+
outputSchema: responseSchema,
|
|
53
|
+
}),
|
|
54
|
+
defineProviderAction("redfox", {
|
|
55
|
+
name: "get_youtube_subtitles",
|
|
56
|
+
operationType: "read",
|
|
57
|
+
description: "Get subtitle tracks for a YouTube video.",
|
|
58
|
+
requiredScopes: [],
|
|
59
|
+
inputSchema: s.requiredObject("Request parameters.", {
|
|
60
|
+
videoUrl: s.nonEmptyString("Video URL or YouTube video ID."),
|
|
61
|
+
}),
|
|
62
|
+
outputSchema: responseSchema,
|
|
63
|
+
}),
|
|
64
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsonSchema as s } from "../../core/json-schema.js";
|
|
2
|
+
import { defineProviderAction } from "../../core/provider-definition.js";
|
|
3
|
+
import { responseSchema } from "./schemas.js";
|
|
4
|
+
export const zhihuActions = [
|
|
5
|
+
defineProviderAction("redfox", {
|
|
6
|
+
name: "search_zhihu_works",
|
|
7
|
+
operationType: "read",
|
|
8
|
+
description: "Search Zhihu content by keyword.",
|
|
9
|
+
requiredScopes: [],
|
|
10
|
+
inputSchema: s.object("Request parameters.", {
|
|
11
|
+
offset: s.withDefault(s.nonEmptyString("Pagination offset. Start with 0 and increase by 20."), "0"),
|
|
12
|
+
sort: s.stringEnum("Sort order.", ["upvoted_count", "created_time"]),
|
|
13
|
+
timeInterval: s.stringEnum("Publication age: a_day, a_week, a_month, three_months, half_a_year or a_year.", [
|
|
14
|
+
"a_day",
|
|
15
|
+
"a_week",
|
|
16
|
+
"a_month",
|
|
17
|
+
"three_months",
|
|
18
|
+
"half_a_year",
|
|
19
|
+
"a_year",
|
|
20
|
+
]),
|
|
21
|
+
vertical: s.stringEnum("Content type: answer, article or zvide.", ["answer", "article", "zvide"]),
|
|
22
|
+
keword: s.nonEmptyString("Search keyword; this spelling is required by the upstream API."),
|
|
23
|
+
}, { optional: ["offset", "sort", "timeInterval", "vertical"] }),
|
|
24
|
+
outputSchema: responseSchema,
|
|
25
|
+
}),
|
|
26
|
+
];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { accountActions } from "./actions-account.js";
|
|
2
|
+
import { autohomeActions } from "./actions-autohome.js";
|
|
3
|
+
import { baijiahaoActions } from "./actions-baijiahao.js";
|
|
4
|
+
import { bilibiliActions } from "./actions-bilibili.js";
|
|
5
|
+
import { dongchediActions } from "./actions-dongchedi.js";
|
|
6
|
+
import { douyinActions } from "./actions-douyin.js";
|
|
7
|
+
import { generationActions } from "./actions-generation.js";
|
|
8
|
+
import { instagramActions } from "./actions-instagram.js";
|
|
9
|
+
import { kuaishouActions } from "./actions-kuaishou.js";
|
|
10
|
+
import { searchActions } from "./actions-search.js";
|
|
11
|
+
import { tiktokActions } from "./actions-tiktok.js";
|
|
12
|
+
import { toolsActions } from "./actions-tools.js";
|
|
13
|
+
import { toutiaoActions } from "./actions-toutiao.js";
|
|
14
|
+
import { transcriptionActions } from "./actions-transcription.js";
|
|
15
|
+
import { wechatChannelActions } from "./actions-wechat-channel.js";
|
|
16
|
+
import { wechatActions } from "./actions-wechat.js";
|
|
17
|
+
import { weiboActions } from "./actions-weibo.js";
|
|
18
|
+
import { xActions } from "./actions-x.js";
|
|
19
|
+
import { xiaohongshuActions } from "./actions-xiaohongshu.js";
|
|
20
|
+
import { yicheActions } from "./actions-yiche.js";
|
|
21
|
+
import { youtubeActions } from "./actions-youtube.js";
|
|
22
|
+
import { zhihuActions } from "./actions-zhihu.js";
|
|
23
|
+
const synchronousActions = [
|
|
24
|
+
...douyinActions,
|
|
25
|
+
...xiaohongshuActions,
|
|
26
|
+
...wechatActions,
|
|
27
|
+
...wechatChannelActions,
|
|
28
|
+
...kuaishouActions,
|
|
29
|
+
...bilibiliActions,
|
|
30
|
+
...toutiaoActions,
|
|
31
|
+
...tiktokActions,
|
|
32
|
+
...xActions,
|
|
33
|
+
...youtubeActions,
|
|
34
|
+
...instagramActions,
|
|
35
|
+
...autohomeActions,
|
|
36
|
+
...dongchediActions,
|
|
37
|
+
...yicheActions,
|
|
38
|
+
...weiboActions,
|
|
39
|
+
...baijiahaoActions,
|
|
40
|
+
...zhihuActions,
|
|
41
|
+
...toolsActions,
|
|
42
|
+
];
|
|
43
|
+
export const redfoxActions = [
|
|
44
|
+
...synchronousActions,
|
|
45
|
+
...transcriptionActions,
|
|
46
|
+
...generationActions,
|
|
47
|
+
...searchActions,
|
|
48
|
+
...accountActions,
|
|
49
|
+
];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ApiKeyProviderContext, ProviderActionHandlers } from "../provider-runtime.ts";
|
|
3
|
-
type RedfoxActionHandler = (input: Record<string, unknown>, context: ApiKeyProviderContext) => Promise<unknown>;
|
|
4
|
-
export declare const redfoxActionHandlers: ProviderActionHandlers<"redfox", RedfoxActionHandler>;
|
|
1
|
+
import type { CredentialValidators, ProviderExecutors, ProviderProxyExecutor } from "../../core/types.ts";
|
|
5
2
|
export declare const executors: ProviderExecutors;
|
|
6
|
-
export declare const credentialValidators:
|
|
7
|
-
apiKey(input: {
|
|
8
|
-
apiKey: string;
|
|
9
|
-
values: Record<string, string>;
|
|
10
|
-
}, options: {
|
|
11
|
-
fetcher: typeof fetch;
|
|
12
|
-
signal?: AbortSignal;
|
|
13
|
-
}): Promise<CredentialValidationResult>;
|
|
14
|
-
};
|
|
3
|
+
export declare const credentialValidators: CredentialValidators;
|
|
15
4
|
export declare const proxy: ProviderProxyExecutor;
|
|
16
|
-
export {};
|