dograh/api/schemas/workflow.py
Sabiha Khan 97fbd9b37b
Feat/inbound telephony (#113)
* feat: inbound telephony (twilio & vobiz)

* chore: add ruff and lint formatting

* fix: add missing cloudonix interface compliance implementation
2026-01-12 10:10:30 +05:30

22 lines
549 B
Python

from datetime import datetime
from typing import Any, Dict
from pydantic import BaseModel
from api.enums import CallType
class WorkflowRunResponseSchema(BaseModel):
id: int
workflow_id: int
name: str
mode: str
created_at: datetime
is_completed: bool
transcript_url: str | None
recording_url: str | None
cost_info: Dict[str, Any] | None
definition_id: int | None # This is for backward compatibility
initial_context: dict | None = None
gathered_context: dict | None = None
call_type: CallType