Install and reconcile module workflow standards

This commit is contained in:
2026-07-31 19:40:04 +02:00
parent 9bccbd68da
commit 43c1f3fb72
8 changed files with 1289 additions and 5 deletions
@@ -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