script gen post action (#3480)

This commit is contained in:
Shuchang Zheng
2025-09-19 08:50:21 -07:00
committed by GitHub
parent b4669f7477
commit c5280782b0
17 changed files with 536 additions and 264 deletions

View File

@@ -155,8 +155,26 @@ class ScriptBlocksRequest(BaseModel):
cache_key_value: str
cache_key: str | None = None
status: ScriptStatus | None = None
workflow_run_id: str | None = None
class ScriptStatus(StrEnum):
published = "published"
draft = "draft"
pending = "pending"
class WorkflowScript(BaseModel):
model_config = ConfigDict(from_attributes=True)
workflow_script_id: str
organization_id: str
script_id: str
workflow_permanent_id: str
workflow_id: str | None = None
workflow_run_id: str | None = None
cache_key: str
cache_key_value: str
status: ScriptStatus
created_at: datetime
modified_at: datetime
deleted_at: datetime | None = None