Install and reconcile module workflow standards
This commit is contained in:
@@ -309,6 +309,41 @@ class WorkflowStandardProvenanceResponse(BaseModel):
|
||||
reset_available: bool = False
|
||||
|
||||
|
||||
class WorkflowStandardDiffItemResponse(BaseModel):
|
||||
resource_type: Literal["graph", "node", "edge"]
|
||||
resource_id: str
|
||||
state: Literal[
|
||||
"unchanged",
|
||||
"local_only",
|
||||
"upstream_only",
|
||||
"same_change",
|
||||
"conflict",
|
||||
]
|
||||
recommended_action: Literal[
|
||||
"none",
|
||||
"keep_local",
|
||||
"adopt_upstream",
|
||||
"either",
|
||||
"manual_resolution",
|
||||
]
|
||||
changed_fields: list[str] = Field(default_factory=list)
|
||||
baseline: dict[str, Any] | None = None
|
||||
local: dict[str, Any] | None = None
|
||||
latest: dict[str, Any] | None = None
|
||||
|
||||
|
||||
class WorkflowStandardDiffResponse(BaseModel):
|
||||
override_definition_id: str
|
||||
baseline_definition_id: str
|
||||
pinned_baseline_revision: int
|
||||
local_revision: int
|
||||
latest_baseline_revision: int
|
||||
counts: dict[str, int]
|
||||
conflict_count: int
|
||||
auto_mergeable: bool
|
||||
items: list[WorkflowStandardDiffItemResponse]
|
||||
|
||||
|
||||
class WorkflowActionDecisionResponse(BaseModel):
|
||||
allowed: bool
|
||||
reason: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user