feat(channels): align social authorization

This commit is contained in:
2026-06-06 19:06:52 +08:00
parent 7c0a67a850
commit a5a28ce73e
10 changed files with 258 additions and 10 deletions
+3 -1
View File
@@ -699,6 +699,7 @@ POST /api/v1/accounts/:account_id/inboxes/:inbox_id/reset_secret
POST /api/v1/accounts/:account_id/inboxes/:inbox_id/set_agent_bot
POST /api/v1/accounts/:account_id/inboxes/:inbox_id/sync_templates
POST /api/v1/accounts/:account_id/inboxes/web_widget
POST /api/v1/accounts/:account_id/instagram/authorization
POST /api/v1/accounts/:account_id/instagram/webhooks
POST /api/v1/accounts/:account_id/instagram_channels/
POST /api/v1/accounts/:account_id/integrations/dyte/add_participant_to_meeting
@@ -757,6 +758,7 @@ POST /api/v1/accounts/:account_id/teams
POST /api/v1/accounts/:account_id/teams/
POST /api/v1/accounts/:account_id/teams/:team_id/team_members
POST /api/v1/accounts/:account_id/teams/:team_id/team_members/
POST /api/v1/accounts/:account_id/tiktok/authorization
POST /api/v1/accounts/:account_id/tiktok_channels/
POST /api/v1/accounts/:account_id/twilio_sms_channels/
POST /api/v1/accounts/:account_id/twitter/authorization
@@ -943,4 +945,4 @@ PUT /public/api/v1/csat_survey/:id
PUT /public/api/v1/inboxes/:inbox_id/contacts/:contact_id
PUT /public/api/v1/inboxes/:inbox_id/contacts/:contact_id/conversations/:conversation_id/messages/:message_id
PUT /widget/direct_uploads/:upload_uuid
TOTAL: 945
TOTAL: 947
+3 -1
View File
@@ -7,7 +7,7 @@ Generated from:
This report covers tracked frontend-critical Chatwoot routes from `reference/chatwoot/config/routes.rb`, including API v1 account routes, Captain/Copilot, assignment policies, widget/public APIs, and API v2 reports. Ruby is not installed in the workspace, so Chatwoot routes are sourced from static route declarations instead of `bin/rails routes`.
Summary: 395 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 408 tracked critical routes.
Summary: 397 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 410 tracked critical routes.
## Missing Critical Routes
@@ -346,6 +346,7 @@ These routes exist with equivalent method and path shape but different parameter
| POST | `/api/v1/accounts/:account_id/inboxes/:inbox_id/reset_secret` | `/api/v1/accounts/:account_id/inboxes/:inbox_id/reset_secret` | `api/v1/accounts/inboxes#reset_secret` | `routes.rb:262` | exact |
| POST | `/api/v1/accounts/:account_id/inboxes/:inbox_id/set_agent_bot` | `/api/v1/accounts/:account_id/inboxes/:inbox_id/set_agent_bot` | `api/v1/accounts/inboxes#set_agent_bot` | `routes.rb:256` | exact |
| POST | `/api/v1/accounts/:account_id/inboxes/:inbox_id/sync_templates` | `/api/v1/accounts/:account_id/inboxes/:inbox_id/sync_templates` | `api/v1/accounts/inboxes#sync_templates` | `routes.rb:258` | exact |
| POST | `/api/v1/accounts/:account_id/instagram/authorization` | `/api/v1/accounts/:account_id/instagram/authorization` | `api/v1/accounts/instagram/authorizations#create` | `routes.rb:327` | exact |
| POST | `/api/v1/accounts/:account_id/integrations/dyte/add_participant_to_meeting` | `/api/v1/accounts/:account_id/integrations/dyte/add_participant_to_meeting` | `api/v1/accounts/integrations/dyte#add_participant_to_meeting` | `routes.rb:358` | exact |
| POST | `/api/v1/accounts/:account_id/integrations/dyte/create_a_meeting` | `/api/v1/accounts/:account_id/integrations/dyte/create_a_meeting` | `api/v1/accounts/integrations/dyte#create_a_meeting` | `routes.rb:357` | exact |
| POST | `/api/v1/accounts/:account_id/integrations/hooks` | `/api/v1/accounts/:account_id/integrations/hooks` | `api/v1/accounts/integrations/hooks#create` | `routes.rb:346` | exact |
@@ -374,6 +375,7 @@ These routes exist with equivalent method and path shape but different parameter
| POST | `/api/v1/accounts/:account_id/sla_policies` | `/api/v1/accounts/:account_id/sla_policies` | `api/v1/accounts/sla_policies#create` | `routes.rb:121` | exact |
| POST | `/api/v1/accounts/:account_id/teams/` | `/api/v1/accounts/:account_id/teams/` | `api/v1/accounts/teams#create` | `routes.rb:296` | exact |
| POST | `/api/v1/accounts/:account_id/teams/:team_id/team_members/` | `/api/v1/accounts/:account_id/teams/:team_id/team_members/` | `api/v1/accounts/teams/team_members#create` | `routes.rb:297` | exact |
| POST | `/api/v1/accounts/:account_id/tiktok/authorization` | `/api/v1/accounts/:account_id/tiktok/authorization` | `api/v1/accounts/tiktok/authorizations#create` | `routes.rb:331` | exact |
| POST | `/api/v1/accounts/:account_id/twitter/authorization` | `/api/v1/accounts/:account_id/twitter/authorization` | `api/v1/accounts/twitter/authorizations#create` | `routes.rb:315` | exact |
| POST | `/api/v1/accounts/:account_id/update_active_at` | `/api/v1/accounts/:account_id/update_active_at` | `api/v1/accounts#update_active_at` | `routes.rb:49` | exact |
| POST | `/api/v1/accounts/:account_id/webhooks` | `/api/v1/accounts/:account_id/webhooks` | `api/v1/accounts/webhooks#create` | `routes.rb:342` | exact |