@@ -6,10 +6,10 @@ type AgentCreateReq struct {
66 Name string `json:"name" validate:"required"`
77 Remark string `json:"remark"`
88 AppVersion string `json:"appVersion" validate:"required"`
9- WebUIPort int `json:"webUIPort" validate:"required"`
9+ WebUIPort int `json:"webUIPort" validate:"required,min=1,max=65535 "`
1010 BridgePort int `json:"bridgePort"`
1111 AllowedOrigins []string `json:"allowedOrigins"`
12- AgentType string `json:"agentType" validate:"required,oneof=openclaw copaw"`
12+ AgentType string `json:"agentType" validate:"required,oneof=openclaw copaw hermes-agent "`
1313 Model string `json:"model"`
1414 AccountID uint `json:"accountId"`
1515 Token string `json:"token"`
@@ -298,6 +298,8 @@ type AgentFeishuConfigUpdateReq struct {
298298 RequireMention string `json:"requireMention" validate:"required,oneof=true false open"`
299299 GroupPolicy string `json:"groupPolicy" validate:"required,oneof=open allowlist disabled"`
300300 GroupAllowFrom []string `json:"groupAllowFrom"`
301+ Domain string `json:"domain"`
302+ ConnectionMode string `json:"connectionMode"`
301303 Bots []AgentFeishuBot `json:"bots" validate:"required,min=1"`
302304}
303305
@@ -314,6 +316,8 @@ type AgentFeishuConfig struct {
314316 RequireMention string `json:"requireMention"`
315317 GroupPolicy string `json:"groupPolicy"`
316318 GroupAllowFrom []string `json:"groupAllowFrom"`
319+ Domain string `json:"domain"`
320+ ConnectionMode string `json:"connectionMode"`
317321 Bots []AgentFeishuBot `json:"bots"`
318322 Installed bool `json:"installed"`
319323}
@@ -327,6 +331,7 @@ type AgentTelegramConfigUpdateReq struct {
327331 Enabled bool `json:"enabled"`
328332 DmPolicy string `json:"dmPolicy" validate:"required,oneof=pairing open allowlist disabled"`
329333 AllowFrom []string `json:"allowFrom"`
334+ RequireMention bool `json:"requireMention"`
330335 GroupPolicy string `json:"groupPolicy" validate:"required,oneof=open allowlist disabled"`
331336 GroupAllowFrom []string `json:"groupAllowFrom"`
332337 Proxy string `json:"proxy"`
@@ -339,6 +344,7 @@ type AgentTelegramConfig struct {
339344 Enabled bool `json:"enabled"`
340345 DmPolicy string `json:"dmPolicy"`
341346 AllowFrom []string `json:"allowFrom"`
347+ RequireMention bool `json:"requireMention"`
342348 GroupPolicy string `json:"groupPolicy"`
343349 GroupAllowFrom []string `json:"groupAllowFrom"`
344350 Proxy string `json:"proxy"`
@@ -412,15 +418,23 @@ type AgentWeixinLoginReq struct {
412418}
413419
414420type AgentQQBotConfigUpdateReq struct {
415- AgentID uint `json:"agentId" validate:"required"`
416- Enabled bool `json:"enabled"`
417- Bots []AgentQQBotBot `json:"bots" validate:"required,min=1"`
421+ AgentID uint `json:"agentId" validate:"required"`
422+ Enabled bool `json:"enabled"`
423+ DmPolicy string `json:"dmPolicy"`
424+ AllowFrom []string `json:"allowFrom"`
425+ GroupPolicy string `json:"groupPolicy"`
426+ GroupAllowFrom []string `json:"groupAllowFrom"`
427+ Bots []AgentQQBotBot `json:"bots" validate:"required,min=1"`
418428}
419429
420430type AgentQQBotConfig struct {
421- Enabled bool `json:"enabled"`
422- Bots []AgentQQBotBot `json:"bots"`
423- Installed bool `json:"installed"`
431+ Enabled bool `json:"enabled"`
432+ DmPolicy string `json:"dmPolicy"`
433+ AllowFrom []string `json:"allowFrom"`
434+ GroupPolicy string `json:"groupPolicy"`
435+ GroupAllowFrom []string `json:"groupAllowFrom"`
436+ Bots []AgentQQBotBot `json:"bots"`
437+ Installed bool `json:"installed"`
424438}
425439
426440type AgentPluginInstallReq struct {
@@ -458,6 +472,8 @@ type AgentDiscordConfigUpdateReq struct {
458472 AgentID uint `json:"agentId" validate:"required"`
459473 Enabled bool `json:"enabled"`
460474 DmPolicy string `json:"dmPolicy" validate:"required"`
475+ AllowFrom []string `json:"allowFrom"`
476+ RequireMention bool `json:"requireMention"`
461477 GroupPolicy string `json:"groupPolicy" validate:"required,oneof=open allowlist disabled"`
462478 Proxy string `json:"proxy"`
463479 DefaultAccount string `json:"defaultAccount" validate:"required"`
@@ -467,6 +483,8 @@ type AgentDiscordConfigUpdateReq struct {
467483type AgentDiscordConfig struct {
468484 Enabled bool `json:"enabled"`
469485 DmPolicy string `json:"dmPolicy"`
486+ AllowFrom []string `json:"allowFrom"`
487+ RequireMention bool `json:"requireMention"`
470488 GroupPolicy string `json:"groupPolicy"`
471489 Proxy string `json:"proxy"`
472490 DefaultAccount string `json:"defaultAccount"`
0 commit comments