feat(channels): align email oauth authorization

This commit is contained in:
2026-06-06 18:53:04 +08:00
parent 5b143b6da7
commit 7c0a67a850
9 changed files with 247 additions and 8 deletions
+3 -1
View File
@@ -678,6 +678,7 @@ POST /api/v1/accounts/:account_id/dashboard_apps/:dashboard_app_id/widgets
POST /api/v1/accounts/:account_id/direct_uploads
POST /api/v1/accounts/:account_id/email_channel_migrations/
POST /api/v1/accounts/:account_id/email_channels/
POST /api/v1/accounts/:account_id/google/authorization
POST /api/v1/accounts/:account_id/google/webhooks
POST /api/v1/accounts/:account_id/google_channels/oauth_callback
POST /api/v1/accounts/:account_id/hooks/
@@ -719,6 +720,7 @@ POST /api/v1/accounts/:account_id/macros/
POST /api/v1/accounts/:account_id/macros/:macro_id/clone
POST /api/v1/accounts/:account_id/macros/:macro_id/execute
POST /api/v1/accounts/:account_id/macros/:macro_id/toggle_active
POST /api/v1/accounts/:account_id/microsoft/authorization
POST /api/v1/accounts/:account_id/microsoft/webhooks
POST /api/v1/accounts/:account_id/microsoft_channels/oauth_callback
POST /api/v1/accounts/:account_id/notification_subscriptions/
@@ -941,4 +943,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: 943
TOTAL: 945
+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: 393 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 406 tracked critical routes.
Summary: 395 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 408 tracked critical routes.
## Missing Critical Routes
@@ -338,6 +338,7 @@ These routes exist with equivalent method and path shape but different parameter
| POST | `/api/v1/accounts/:account_id/custom_attribute_definitions/` | `/api/v1/accounts/:account_id/custom_attribute_definitions/` | `api/v1/accounts/custom_attribute_definitions#create` | `routes.rb:250` | exact |
| POST | `/api/v1/accounts/:account_id/custom_filters/` | `/api/v1/accounts/:account_id/custom_filters/` | `api/v1/accounts/custom_filters#create` | `routes.rb:251` | exact |
| POST | `/api/v1/accounts/:account_id/dashboard_apps` | `/api/v1/accounts/:account_id/dashboard_apps` | `api/v1/accounts/dashboard_apps#create` | `routes.rb:130` | exact |
| POST | `/api/v1/accounts/:account_id/google/authorization` | `/api/v1/accounts/:account_id/google/authorization` | `api/v1/accounts/google/authorizations#create` | `routes.rb:323` | exact |
| POST | `/api/v1/accounts/:account_id/inbox_members/` | `/api/v1/accounts/:account_id/inbox_members/` | `api/v1/accounts/inbox_members#create` | `routes.rb:275` | exact |
| POST | `/api/v1/accounts/:account_id/inboxes/` | `/api/v1/accounts/:account_id/inboxes/` | `api/v1/accounts/inboxes#create` | `routes.rb:252` | exact |
| POST | `/api/v1/accounts/:account_id/inboxes/:inbox_id/assignment_policy/` | `/api/v1/accounts/:account_id/inboxes/:inbox_id/assignment_policy/` | `api/v1/accounts/inboxes/assignment_policy#create` | `routes.rb:311` | exact |
@@ -357,6 +358,7 @@ These routes exist with equivalent method and path shape but different parameter
| POST | `/api/v1/accounts/:account_id/labels/` | `/api/v1/accounts/:account_id/labels/` | `api/v1/accounts/labels#create` | `routes.rb:281` | exact |
| POST | `/api/v1/accounts/:account_id/macros/` | `/api/v1/accounts/:account_id/macros/` | `api/v1/accounts/macros#create` | `routes.rb:118` | exact |
| POST | `/api/v1/accounts/:account_id/macros/:macro_id/execute` | `/api/v1/accounts/:account_id/macros/:macro_id/execute` | `api/v1/accounts/macros#execute` | `routes.rb:119` | exact |
| POST | `/api/v1/accounts/:account_id/microsoft/authorization` | `/api/v1/accounts/:account_id/microsoft/authorization` | `api/v1/accounts/microsoft/authorizations#create` | `routes.rb:319` | exact |
| POST | `/api/v1/accounts/:account_id/notifications/:notification_id/snooze` | `/api/v1/accounts/:account_id/notifications/:notification_id/snooze` | `api/v1/accounts/notifications#snooze` | `routes.rb:290` | exact |
| POST | `/api/v1/accounts/:account_id/notifications/:notification_id/unread` | `/api/v1/accounts/:account_id/notifications/:notification_id/unread` | `api/v1/accounts/notifications#unread` | `routes.rb:291` | exact |
| POST | `/api/v1/accounts/:account_id/notifications/destroy_all` | `/api/v1/accounts/:account_id/notifications/destroy_all` | `api/v1/accounts/notifications#destroy_all` | `routes.rb:287` | exact |