mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
chore: fix API schema for workflow
This commit is contained in:
parent
eed48c2054
commit
0b86813b6c
2 changed files with 10 additions and 4 deletions
|
|
@ -89,6 +89,10 @@ class ValidateWorkflowResponse(BaseModel):
|
|||
errors: list[WorkflowError]
|
||||
|
||||
|
||||
class CallDispositionCodes(BaseModel):
|
||||
disposition_codes: list[str] = []
|
||||
|
||||
|
||||
class WorkflowResponse(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
|
|
@ -97,7 +101,7 @@ class WorkflowResponse(BaseModel):
|
|||
workflow_definition: dict
|
||||
current_definition_id: int | None
|
||||
template_context_variables: dict | None = None
|
||||
call_disposition_codes: dict | None = None
|
||||
call_disposition_codes: CallDispositionCodes | None = None
|
||||
total_runs: int | None = None
|
||||
workflow_configurations: dict | None = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue