- Add required 'name', 'description', 'version' fields - Remove top-level additionalProperties:false (was blocking token/wsUrl/accounts) - Keep configSchema with all config properties declared
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
||
"id": "wechat-access",
|
||
"name": "WeChat Access",
|
||
"description": "微信通路插件 — 扫码登录 + AGP WebSocket 双向通信",
|
||
"version": "1.0.0",
|
||
"channels": ["wechat-access"],
|
||
"configSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "是否启用服务号渠道"
|
||
},
|
||
"token": {
|
||
"type": "string",
|
||
"description": "WebSocket 连接 token(手动配置时使用,留空走扫码登录)"
|
||
},
|
||
"wsUrl": {
|
||
"type": "string",
|
||
"description": "WebSocket 网关地址(留空使用环境默认值)"
|
||
},
|
||
"bypassInvite": {
|
||
"type": "boolean",
|
||
"description": "跳过邀请码验证"
|
||
},
|
||
"authStatePath": {
|
||
"type": "string",
|
||
"description": "自定义 token 持久化路径"
|
||
},
|
||
"environment": {
|
||
"type": "string",
|
||
"enum": ["production", "test"],
|
||
"description": "API 环境(production / test)"
|
||
},
|
||
"accounts": {
|
||
"type": "object",
|
||
"description": "多账号配置",
|
||
"additionalProperties": true
|
||
}
|
||
}
|
||
}
|
||
}
|