From 1f853a39334cc80bb7a27142076c64ad0214c037 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 15 Jan 2026 11:34:06 +0000 Subject: Advance stages of a contract --- makima/src/daemon/api/supervisor.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'makima/src/daemon/api/supervisor.rs') diff --git a/makima/src/daemon/api/supervisor.rs b/makima/src/daemon/api/supervisor.rs index a1e8682..0a68980 100644 --- a/makima/src/daemon/api/supervisor.rs +++ b/makima/src/daemon/api/supervisor.rs @@ -211,4 +211,21 @@ impl ApiClient { }; self.post("/api/v1/mesh/supervisor/questions", &req).await } + + /// Advance contract to a new phase. + pub async fn supervisor_advance_phase( + &self, + contract_id: Uuid, + phase: &str, + ) -> Result { + #[derive(Serialize)] + struct AdvancePhaseRequest { + phase: String, + } + let req = AdvancePhaseRequest { + phase: phase.to_string(), + }; + self.post(&format!("/api/v1/contracts/{}/phase", contract_id), &req) + .await + } } -- cgit v1.2.3