@@ -462,6 +462,20 @@ class ChatProviderTemplate(TypedDict):
462462 "satori_heartbeat_interval" : 10 ,
463463 "satori_reconnect_delay" : 5 ,
464464 },
465+ "kook" : {
466+ "id" : "kook" ,
467+ "type" : "kook" ,
468+ "enable" : False ,
469+ "kook_bot_token" : "" ,
470+ "kook_bot_nickname" : "" ,
471+ "kook_reconnect_delay" : 1 ,
472+ "kook_max_reconnect_delay" : 60 ,
473+ "kook_max_retry_delay" : 60 ,
474+ "kook_heartbeat_interval" : 30 ,
475+ "kook_heartbeat_timeout" : 6 ,
476+ "kook_max_heartbeat_failures" : 3 ,
477+ "kook_max_consecutive_failures" : 5 ,
478+ },
465479 # "WebChat": {
466480 # "id": "webchat",
467481 # "type": "webchat",
@@ -803,6 +817,51 @@ class ChatProviderTemplate(TypedDict):
803817 "type" : "string" ,
804818 "hint" : "统一 Webhook 模式下的唯一标识符,创建平台时自动生成。" ,
805819 },
820+ "kook_bot_token" : {
821+ "description" : "机器人 Token" ,
822+ "type" : "string" ,
823+ "hint" : "必填项。从 KOOK 开发者平台获取的机器人 Token。" ,
824+ },
825+ "kook_bot_nickname" : {
826+ "description" : "Bot Nickname" ,
827+ "type" : "string" ,
828+ "hint" : "可选项。若发送者昵称与此值一致,将忽略该消息以避免广播风暴。" ,
829+ },
830+ "kook_reconnect_delay" : {
831+ "description" : "重连延迟" ,
832+ "type" : "int" ,
833+ "hint" : "重连延迟时间(秒),使用指数退避策略。" ,
834+ },
835+ "kook_max_reconnect_delay" : {
836+ "description" : "最大重连延迟" ,
837+ "type" : "int" ,
838+ "hint" : "重连延迟的最大值(秒)。" ,
839+ },
840+ "kook_max_retry_delay" : {
841+ "description" : "最大重试延迟" ,
842+ "type" : "int" ,
843+ "hint" : "重试的最大延迟时间(秒)。" ,
844+ },
845+ "kook_heartbeat_interval" : {
846+ "description" : "心跳间隔" ,
847+ "type" : "int" ,
848+ "hint" : "心跳检测间隔时间(秒)。" ,
849+ },
850+ "kook_heartbeat_timeout" : {
851+ "description" : "心跳超时时间" ,
852+ "type" : "int" ,
853+ "hint" : "心跳检测超时时间(秒)。" ,
854+ },
855+ "kook_max_heartbeat_failures" : {
856+ "description" : "最大心跳失败次数" ,
857+ "type" : "int" ,
858+ "hint" : "允许的最大心跳失败次数,超过后断开连接。" ,
859+ },
860+ "kook_max_consecutive_failures" : {
861+ "description" : "最大连续失败次数" ,
862+ "type" : "int" ,
863+ "hint" : "允许的最大连续失败次数,超过后停止重试。" ,
864+ },
806865 },
807866 },
808867 "platform_settings" : {
0 commit comments