mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user