feat(trigger): refactor trigger provider to subscription model

- Rename classes and methods to reflect the transition from credentials to subscriptions
- Update API endpoints for managing trigger subscriptions
- Modify data models and entities to support subscription attributes
- Enhance service methods for listing, adding, updating, and deleting subscriptions
- Adjust encryption utilities to handle subscription data

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Harry
2025-08-29 17:07:06 +08:00
parent 5ddd5e49ee
commit 6acc77d86d
7 changed files with 110 additions and 140 deletions

View File

@ -99,6 +99,7 @@ class OAuthSchema(BaseModel):
default_factory=list, description="The schema of the OAuth credentials"
)
class SubscriptionSchema(BaseModel):
"""
The subscription schema of the trigger provider
@ -114,6 +115,7 @@ class SubscriptionSchema(BaseModel):
description="The configuration schema stored in the subscription entity",
)
class TriggerProviderEntity(BaseModel):
"""
The configuration of a trigger provider