2025-07-31 11:43:05 -04:00
|
|
|
import typing as t
|
2025-07-28 10:23:02 -04:00
|
|
|
from datetime import datetime
|
|
|
|
|
|
2025-07-29 09:32:52 -04:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2025-07-28 10:23:02 -04:00
|
|
|
|
2025-07-31 11:43:05 -04:00
|
|
|
DebugSessionStatus = t.Literal["created", "completed"]
|
|
|
|
|
|
2025-07-28 10:23:02 -04:00
|
|
|
|
2025-08-28 20:05:24 -04:00
|
|
|
class BlockRun(BaseModel):
|
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
|
|
|
|
|
|
block_label: str
|
|
|
|
|
output_parameter_id: str
|
|
|
|
|
workflow_run_id: str
|
|
|
|
|
created_at: datetime
|
|
|
|
|
|
|
|
|
|
|
2025-07-28 10:23:02 -04:00
|
|
|
class DebugSession(BaseModel):
|
2025-07-29 09:32:52 -04:00
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
|
|
2025-07-28 10:23:02 -04:00
|
|
|
debug_session_id: str
|
|
|
|
|
browser_session_id: str
|
2025-09-12 21:16:48 +08:00
|
|
|
vnc_streaming_supported: bool | None = None
|
2025-07-29 09:32:52 -04:00
|
|
|
workflow_permanent_id: str | None = None
|
2025-07-28 10:23:02 -04:00
|
|
|
created_at: datetime
|
|
|
|
|
modified_at: datetime
|
2025-07-31 11:43:05 -04:00
|
|
|
deleted_at: datetime | None = None
|
|
|
|
|
status: DebugSessionStatus
|