1. 新增QQ Bot事件解析通用工具类,抽离重复的事件提取逻辑 2. 修复微信iLink适配器的媒体类型映射错误 3. 完善微信iLink状态适配器的事件类型与元数据支持 4. 新增运行时缓存清理方法,优化登出逻辑 5. 更新manifest配置,新增媒体相关开关 6. 重构出站适配器的媒体上传逻辑,修复参数问题
98 lines
4.7 KiB
JSON
98 lines
4.7 KiB
JSON
{
|
|
"id": "com.yuxi.channels.wechat_ilink",
|
|
"name": "微信iLink",
|
|
"version": "1.0.0",
|
|
"channel_type": "wechat_ilink",
|
|
"icon": "smartphone",
|
|
"entry_module": "yuxi.channels.plugins.wechat_ilink.entry",
|
|
"provides": ["wechat_ilink"],
|
|
"lifecycle": ["init", "start", "stop", "pause", "resume", "unload", "reconfigure", "fail"],
|
|
"compatibility": {
|
|
"min_host_version": "1.0.0",
|
|
"ilink_channel_version": "2.0.0"
|
|
},
|
|
"failure_policy": "degrade",
|
|
"depends": [],
|
|
"critical": false,
|
|
"requires_dm_pairing": true,
|
|
"requires_outbound_delivery": true,
|
|
"credential_strategy": {
|
|
"type": "dynamic",
|
|
"acquire_method": "qr_login",
|
|
"required_fields": ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"],
|
|
"optional_fields": [],
|
|
"supports_rotation": false,
|
|
"supports_revocation": false
|
|
},
|
|
"max_message_length": 4000,
|
|
"supports_credential_cloning": false,
|
|
"transport_mode": "pull",
|
|
"capabilities": {
|
|
"rich_message": false,
|
|
"streaming": false,
|
|
"typing_indicator": false,
|
|
"message_edit": false,
|
|
"message_recall": false,
|
|
"supports_reaction": false,
|
|
"supports_pin": false,
|
|
"supports_card_update": false,
|
|
"supports_card_update_streaming": false,
|
|
"supports_image_inbound": true,
|
|
"supports_video_inbound": true,
|
|
"supports_image_outbound": true,
|
|
"supports_video_outbound": true,
|
|
"mention": false,
|
|
"command": false,
|
|
"directory": false,
|
|
"doctor": true,
|
|
"whitelist": true,
|
|
"wizard": true,
|
|
"tools": false,
|
|
"status": false,
|
|
"probeable": true,
|
|
"identity_resolver": false,
|
|
"lifecycle": true,
|
|
"supports_qr_login": true,
|
|
"agent_collaboration": false
|
|
},
|
|
"capability_requirements": [
|
|
["supports_image_inbound", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]],
|
|
["supports_video_inbound", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]],
|
|
["supports_image_outbound", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]],
|
|
["supports_video_outbound", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]],
|
|
["doctor", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]],
|
|
["whitelist", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]],
|
|
["wizard", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]],
|
|
["probeable", []],
|
|
["lifecycle", []],
|
|
["supports_qr_login", ["bot_token", "ilink_bot_id", "ilink_user_id", "baseurl"]]
|
|
],
|
|
"resource_quota": {
|
|
"max_cpu": "15.0",
|
|
"max_memory": "128MB",
|
|
"max_connections": 10,
|
|
"max_calls_per_sec": 20
|
|
},
|
|
"accessible_ports": [
|
|
"ConfigPort",
|
|
"LoggerPort",
|
|
"PersistencePort",
|
|
"CachePort"
|
|
],
|
|
"injectable_pipelines": ["inbound", "outbound"],
|
|
"config_schema": [
|
|
{"key": "bot_token", "type": "string", "required": true, "default": null, "hot_reloadable": false, "sensitive": true, "scope": "account", "constraints": {}},
|
|
{"key": "ilink_bot_id", "type": "string", "required": true, "default": null, "hot_reloadable": false, "scope": "account", "constraints": {}},
|
|
{"key": "ilink_user_id", "type": "string", "required": true, "default": null, "hot_reloadable": false, "scope": "account", "constraints": {}},
|
|
{"key": "baseurl", "type": "string", "required": false, "default": "https://ilinkai.weixin.qq.com", "hot_reloadable": false, "scope": "channel", "constraints": {"pattern": "^https?://"}},
|
|
{"key": "channel_version", "type": "string", "required": false, "default": "2.0.0", "hot_reloadable": true, "scope": "channel", "constraints": {}},
|
|
{"key": "cdn_url", "type": "string", "required": false, "default": "https://novac2c.cdn.weixin.qq.com/c2c", "hot_reloadable": true, "scope": "channel", "constraints": {"pattern": "^https?://"}},
|
|
{"key": "long_poll_timeout_ms", "type": "integer", "required": false, "default": 35000, "hot_reloadable": true, "scope": "channel", "constraints": {"min": 10000, "max": 60000}},
|
|
{"key": "qr_poll_interval_ms", "type": "integer", "required": false, "default": 2000, "hot_reloadable": true, "scope": "channel", "constraints": {"min": 1000, "max": 5000}},
|
|
{"key": "qr_timeout_ms", "type": "integer", "required": false, "default": 120000, "hot_reloadable": true, "scope": "channel", "constraints": {"min": 30000, "max": 300000}},
|
|
{"key": "max_message_length", "type": "integer", "required": false, "default": 4000, "hot_reloadable": true, "scope": "channel", "constraints": {"min": 500, "max": 10000}},
|
|
{"key": "enable_media", "type": "boolean", "required": false, "default": true, "hot_reloadable": true, "scope": "channel", "constraints": {}},
|
|
{"key": "enable_voice", "type": "boolean", "required": false, "default": false, "hot_reloadable": true, "scope": "channel", "constraints": {}}
|
|
]
|
|
}
|