feat(agent-bots): align account payloads

This commit is contained in:
2026-06-06 06:03:42 +08:00
parent 689c79bb9c
commit 1adf1c9c31
9 changed files with 394 additions and 75 deletions
+9
View File
@@ -37,6 +37,15 @@ var criticalRoutes = []route{
{Method: "POST", Path: "/api/v1/accounts/:account_id/agents/bulk_create", Controller: "api/v1/accounts/agents#bulk_create", Source: "routes.rb:60"},
{Method: "GET", Path: "/api/v1/accounts/:account_id/assignable_agents", Controller: "api/v1/accounts/assignable_agents#index", Source: "routes.rb:104"},
{Method: "GET", Path: "/api/v1/accounts/:account_id/audit_logs/", Controller: "api/v1/accounts/audit_logs#show", Source: "routes.rb:105"},
{Method: "GET", Path: "/api/v1/accounts/:account_id/agent_bots", Controller: "api/v1/accounts/agent_bots#index", Source: "routes.rb:94"},
{Method: "POST", Path: "/api/v1/accounts/:account_id/agent_bots", Controller: "api/v1/accounts/agent_bots#create", Source: "routes.rb:94"},
{Method: "GET", Path: "/api/v1/accounts/:account_id/agent_bots/:agent_bot_id", Controller: "api/v1/accounts/agent_bots#show", Source: "routes.rb:94"},
{Method: "PUT", Path: "/api/v1/accounts/:account_id/agent_bots/:agent_bot_id", Controller: "api/v1/accounts/agent_bots#update", Source: "routes.rb:94"},
{Method: "PATCH", Path: "/api/v1/accounts/:account_id/agent_bots/:agent_bot_id", Controller: "api/v1/accounts/agent_bots#update", Source: "routes.rb:94"},
{Method: "DELETE", Path: "/api/v1/accounts/:account_id/agent_bots/:agent_bot_id", Controller: "api/v1/accounts/agent_bots#destroy", Source: "routes.rb:94"},
{Method: "DELETE", Path: "/api/v1/accounts/:account_id/agent_bots/:agent_bot_id/avatar", Controller: "api/v1/accounts/agent_bots#avatar", Source: "routes.rb:95"},
{Method: "POST", Path: "/api/v1/accounts/:account_id/agent_bots/:agent_bot_id/reset_access_token", Controller: "api/v1/accounts/agent_bots#reset_access_token", Source: "routes.rb:96"},
{Method: "POST", Path: "/api/v1/accounts/:account_id/agent_bots/:agent_bot_id/reset_secret", Controller: "api/v1/accounts/agent_bots#reset_secret", Source: "routes.rb:97"},
{Method: "GET", Path: "/api/v1/accounts/:account_id/canned_responses/", Controller: "api/v1/accounts/canned_responses#index", Source: "routes.rb:114"},
{Method: "POST", Path: "/api/v1/accounts/:account_id/canned_responses/", Controller: "api/v1/accounts/canned_responses#create", Source: "routes.rb:114"},