diff options
Diffstat (limited to 'makima/src/daemon/ws/protocol.rs')
| -rw-r--r-- | makima/src/daemon/ws/protocol.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/makima/src/daemon/ws/protocol.rs b/makima/src/daemon/ws/protocol.rs index 834e139..bed5ffd 100644 --- a/makima/src/daemon/ws/protocol.rs +++ b/makima/src/daemon/ws/protocol.rs @@ -129,6 +129,19 @@ pub enum DaemonMessage { hostname: Option<String>, }, + /// Reauth status update (response to TriggerReauth/SubmitAuthCode commands). + ReauthStatus { + #[serde(rename = "requestId")] + request_id: Uuid, + /// Status: "url_ready", "completed", "failed" + status: String, + /// OAuth login URL (present when status is "url_ready") + #[serde(rename = "loginUrl")] + login_url: Option<String>, + /// Error message (present when status is "failed") + error: Option<String>, + }, + // ========================================================================= // Merge Response Messages (sent by daemon after processing merge commands) // ========================================================================= @@ -787,6 +800,19 @@ pub enum DaemonCommand { /// Restart the daemon process. RestartDaemon, + /// Trigger OAuth re-authentication on this daemon. + TriggerReauth { + #[serde(rename = "requestId")] + request_id: Uuid, + }, + + /// Submit auth code for pending reauth. + SubmitAuthCode { + #[serde(rename = "requestId")] + request_id: Uuid, + code: String, + }, + /// Apply a patch to a task's worktree (for cross-daemon merge). /// Sent by server when routing MergePatchToSupervisor to the supervisor's daemon. ApplyPatchToWorktree { |
