feat: V1 - DAG编排/告警系统/Agent循环/知识库RAG/Webhook + 审核管理富上下文修复
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""Webhook schemas."""
|
||||
from pydantic import BaseModel, Field
|
||||
from typing import Optional, List
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class WebhookCreate(BaseModel):
|
||||
url: str = Field(..., min_length=1, max_length=500)
|
||||
events: str = '["task_completed","review_pending","budget_alert"]'
|
||||
secret: Optional[str] = None
|
||||
project_id: Optional[int] = None
|
||||
|
||||
|
||||
class WebhookResponse(BaseModel):
|
||||
id: int
|
||||
project_id: Optional[int] = None
|
||||
url: str
|
||||
events: str
|
||||
secret: Optional[str] = None
|
||||
is_active: bool
|
||||
tenant_id: int
|
||||
created_at: datetime
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
Reference in New Issue
Block a user