From 151e9d87e117b7980e6aad522ac8f3633eeca87a Mon Sep 17 00:00:00 2001 From: soryu Date: Mon, 2 Feb 2026 02:34:50 +0000 Subject: Make makima more opinionated and structured --- makima/src/daemon/api/red_team.rs | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 makima/src/daemon/api/red_team.rs (limited to 'makima/src/daemon/api/red_team.rs') diff --git a/makima/src/daemon/api/red_team.rs b/makima/src/daemon/api/red_team.rs deleted file mode 100644 index 6d3c969..0000000 --- a/makima/src/daemon/api/red_team.rs +++ /dev/null @@ -1,39 +0,0 @@ -//! Red team API methods. - -use serde::Serialize; -use uuid::Uuid; - -use super::client::{ApiClient, ApiError}; -use super::supervisor::JsonValue; - -/// Request body for red team notify endpoint. -#[derive(Serialize)] -#[serde(rename_all = "camelCase")] -pub struct RedTeamNotifyRequest { - /// The issue message - pub message: String, - - /// Severity level: low, medium, high, critical - pub severity: String, - - /// The specific task this relates to (optional) - #[serde(skip_serializing_if = "Option::is_none")] - pub related_task_id: Option, - - /// The file path where the issue was detected (optional) - #[serde(skip_serializing_if = "Option::is_none")] - pub file_path: Option, - - /// Additional context about the issue (optional) - #[serde(skip_serializing_if = "Option::is_none")] - pub context: Option, -} - -impl ApiClient { - /// Send a red team notification about an issue found during adversarial review. - /// - /// POST /api/v1/mesh/red-team/notify - pub async fn red_team_notify(&self, req: RedTeamNotifyRequest) -> Result { - self.post("/api/v1/mesh/red-team/notify", &req).await - } -} -- cgit v1.2.3