refactor(trigger): update trigger provider classes and API endpoints

- Renamed classes for trigger subscription management to improve clarity, including TriggerProviderSubscriptionListApi to TriggerSubscriptionListApi and TriggerSubscriptionsDeleteApi to TriggerSubscriptionDeleteApi.
- Updated API endpoint paths to reflect the new naming conventions for trigger subscriptions.
- Removed deprecated TriggerOAuthRefreshTokenApi class to streamline the codebase.
- Added trigger_providers import to the console controller for better organization.
This commit is contained in:
Harry
2025-09-03 14:53:08 +08:00
parent 5e5ffaa416
commit cb82198271
3 changed files with 16 additions and 44 deletions

View File

@ -150,9 +150,7 @@ def deserialize_response(raw_data: bytes) -> Response:
if len(parts) < 2:
raise ValueError(f"Invalid status line: {status_line}")
protocol = parts[0]
status_code = int(parts[1])
status_text = parts[2] if len(parts) > 2 else "OK"
# Parse headers
headers: dict[str, Any] = {}