{
  "openapi": "3.1.1",
  "info": {
    "title": "Nexus.Api | v1",
    "version": "1.0.0"
  },
  "paths": {
    "/api/v1/activity": {
      "get": {
        "tags": [
          "Activity"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/users": {
      "get": {
        "tags": [
          "Admin"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Admin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/users/{id}": {
      "delete": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/users/{id}/role": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateRoleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateRoleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agents": {
      "get": {
        "tags": [
          "Agents"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentListResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentListResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentListResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{id}": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDetailResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDetailResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDetailResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{id}/activity": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentActivityResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentActivityResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentActivityResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{id}/summary": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSummaryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSummaryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSummaryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{id}/command": {
      "post": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCommandRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCommandRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCommandRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCommandResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCommandResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{id}/config": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agents/{id}/config/{fileName}": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveConfigRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveConfigRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveConfigRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auth/me": {
      "get": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auth/profile": {
      "patch": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auth/admin-reset-password": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminResetPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminResetPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminResetPasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auth/change-password": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/telemetry/browser": {
      "post": {
        "tags": [
          "BrowserTelemetry"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrowserMetricRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrowserMetricRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrowserMetricRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/calendar": {
      "get": {
        "tags": [
          "Calendar"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/calendar/upcoming": {
      "get": {
        "tags": [
          "Calendar"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/chat": {
      "post": {
        "tags": [
          "Chat"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/dashboard/status": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/agents": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardAgentInfo"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardAgentInfo"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardAgentInfo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/operations": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "agent",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FeedEntry"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FeedEntry"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FeedEntry"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/chat/send": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChatResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/chat/messages": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "sessionKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MessageEntry"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MessageEntry"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MessageEntry"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/queue": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QueueItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QueueItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QueueItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/gateway": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayRuntimeInfo"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayRuntimeInfo"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayRuntimeInfo"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/queue/{id}": {
      "delete": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/dashboard/queue/{id}/priority": {
      "put": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/dashboard/agents/{id}/model": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentModelInfo"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentModelInfo"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentModelInfo"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetModelRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetModelRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/dashboard/agents/{id}/activity": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentActivityEntry"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentActivityEntry"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentActivityEntry"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/models": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModelOption"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModelOption"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModelOption"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Dashboard"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDashboardTaskRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDashboardTaskRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDashboardTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/{id}": {
      "put": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardTaskRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardTaskRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/{id}/status": {
      "patch": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardTaskStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardTaskStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardTaskStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/board": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BoardResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/live": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "forUser",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "bao"
            }
          },
          {
            "name": "notificationLimit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "afterSequence",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/dashboard/tasks/{id}/move": {
      "patch": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveTaskRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveTaskRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MoveTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/reset-stale": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetStaleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetStaleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetStaleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResetStaleResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResetStaleResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResetStaleResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/{id}/children": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/{id}/activity": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActivityEvent"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActivityEvent"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActivityEvent"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostActivityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PostActivityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PostActivityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityItemDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityItemDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityItemDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/agent-waiting": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/agent-overview": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "staleHours",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 2
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOverview"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOverview"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOverview"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/tasks/agent": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentTaskRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentTaskRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/docs": {
      "get": {
        "tags": [
          "Docs"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "iris"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocFileInfo"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocFileInfo"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocFileInfo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/docs/{path}": {
      "get": {
        "tags": [
          "Docs"
        ],
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "iris"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DocFileContent"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocFileContent"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocFileContent"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/events": {
      "get": {
        "tags": [
          "DomainEvents"
        ],
        "parameters": [
          {
            "name": "channels",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "afterSequence",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bridge/health": {
      "get": {
        "tags": [
          "GatewayBridge"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bridge/tasks": {
      "post": {
        "tags": [
          "GatewayBridge"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeCreateTaskCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeCreateTaskCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeCreateTaskCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/tasks/{parentTaskId}/children": {
      "post": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "parentTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeCreateChildTaskCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeCreateChildTaskCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeCreateChildTaskCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/tasks/{taskId}/status": {
      "patch": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeUpdateStatusCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeUpdateStatusCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeUpdateStatusCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/tasks/{taskId}/activity": {
      "post": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeAppendActivityCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeAppendActivityCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeAppendActivityCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfActivityEntryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfActivityEntryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfActivityEntryDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfListOfActivityEntryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfListOfActivityEntryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfListOfActivityEntryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/tasks/{taskId}/handoff": {
      "post": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeHandoffCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeHandoffCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BridgeHandoffCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/board": {
      "get": {
        "tags": [
          "GatewayBridge"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BoardResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/tasks/{taskId}": {
      "get": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBridgeCommandResponseOfDashboardTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/tasks/{taskId}/children": {
      "get": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardTaskDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/bridge/agent-overview": {
      "get": {
        "tags": [
          "GatewayBridge"
        ],
        "parameters": [
          {
            "name": "staleHours",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 2
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOverview"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOverview"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOverview"
                }
              }
            }
          }
        }
      }
    },
    "/api/health/gateway": {
      "get": {
        "tags": [
          "GatewayHealth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/live": {
      "get": {
        "tags": [
          "Health"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/ready": {
      "get": {
        "tags": [
          "Health"
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "503": {
            "description": "Service Unavailable"
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/incidents": {
      "get": {
        "tags": [
          "Incidents"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "iris"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IncidentSummary"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IncidentSummary"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IncidentSummary"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{name}": {
      "get": {
        "tags": [
          "Incidents"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "iris"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/memory": {
      "get": {
        "tags": [
          "Memory"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "iris"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemoryFileInfo"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemoryFileInfo"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemoryFileInfo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/memory/search": {
      "get": {
        "tags": [
          "Memory"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "iris"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemorySearchResult"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemorySearchResult"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemorySearchResult"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/memory/{name}": {
      "get": {
        "tags": [
          "Memory"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "iris"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentConfigurationErrorDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryFileContent"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryFileContent"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryFileContent"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/notifications": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "forUser",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "bao"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "unreadOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/notifications/unread-count": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "forUser",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "bao"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadCountDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadCountDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadCountDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/notifications/snapshot": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "forUser",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "bao"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "unreadOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSnapshotDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSnapshotDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSnapshotDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/notifications/{id}/read": {
      "patch": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/dashboard/notifications/read-all": {
      "patch": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "forUser",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "bao"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationReadAllResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationReadAllResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationReadAllResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agents/{agentId}/files": {
      "get": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileCollectionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileCollectionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileCollectionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agents/{agentId}/files/{fileName}": {
      "get": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOpenClawAgentFileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOpenClawAgentFileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOpenClawAgentFileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileWriteDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileWriteDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawAgentFileWriteDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agents/{agentId}/workspace": {
      "get": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 250
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWorkspaceCollectionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWorkspaceCollectionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWorkspaceCollectionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agents/{agentId}/workspace/file": {
      "get": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWorkspaceFileDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWorkspaceFileDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWorkspaceFileDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/config/schema": {
      "get": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigSchemaLookupDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigSchemaLookupDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigSchemaLookupDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/config": {
      "get": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigSnapshotDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigSnapshotDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigSnapshotDto"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "OpenClawAgentConfiguration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawConfigRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawConfigRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawConfigRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigPatchDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigPatchDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConfigPatchDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agents/create-options": {
      "get": {
        "tags": [
          "OpenClawAgentProposals"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCreateOptionsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCreateOptionsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCreateOptionsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agent-proposals": {
      "get": {
        "tags": [
          "OpenClawAgentProposals"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalCollectionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalCollectionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalCollectionDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "OpenClawAgentProposals"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentProposalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentProposalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentProposalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agent-proposals/{id}": {
      "get": {
        "tags": [
          "OpenClawAgentProposals"
        ],
        "operationId": "GetAgentProposal",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agent-proposals/{id}/approve": {
      "post": {
        "tags": [
          "OpenClawAgentProposals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agent-proposals/{id}/reject": {
      "post": {
        "tags": [
          "OpenClawAgentProposals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agent-proposals/{id}/retry": {
      "post": {
        "tags": [
          "OpenClawAgentProposals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentProposalActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/connection": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConnectionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConnectionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawConnectionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/capabilities": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpenClawCapabilityDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpenClawCapabilityDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpenClawCapabilityDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/overview": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOverviewDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOverviewDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOverviewDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/tasks": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/tasks/{taskId}/cancel": {
      "post": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelOpenClawTaskRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelOpenClawTaskRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelOpenClawTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawTaskDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawTaskDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawTaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/sessions": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawSessionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawSessionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawSessionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/sessions/abort": {
      "post": {
        "tags": [
          "OpenClaw"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AbortOpenClawSessionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AbortOpenClawSessionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AbortOpenClawSessionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/sessions/model": {
      "post": {
        "tags": [
          "OpenClaw"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawSessionModelRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawSessionModelRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawSessionModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/cron": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "includeDisabled",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawCronJobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawCronJobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawCronJobDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "OpenClaw"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOpenClawCronJobRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOpenClawCronJobRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOpenClawCronJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/cron/{jobId}": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawCronJobRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawCronJobRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOpenClawCronJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawCronJobDetailDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expectedHash",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/cron/{jobId}/runs": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "runId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawCronRunDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawCronRunDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawCronRunDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/cron/{jobId}/run": {
      "post": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expectedHash",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/approvals": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawApprovalDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawApprovalDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawApprovalDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/approvals/{approvalId}/resolve": {
      "post": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "approvalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveOpenClawApprovalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveOpenClawApprovalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveOpenClawApprovalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawApprovalDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawApprovalDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawOperationDtoOfOpenClawApprovalDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/activity": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawActivityDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawActivityDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawActivityDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/models": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawModelDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawModelDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawModelDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/models/auth-status": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "parameters": [
          {
            "name": "refresh",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawModelAuthProviderDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawModelAuthProviderDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawModelAuthProviderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/agents": {
      "get": {
        "tags": [
          "OpenClaw"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawAgentDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawAgentDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawAgentDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/events": {
      "get": {
        "tags": [
          "OpenClawEvents"
        ],
        "parameters": [
          {
            "name": "lastEventId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "follow",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/openclaw/runs": {
      "get": {
        "tags": [
          "OpenClawRuns"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "taskId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sessionKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunCollectionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunCollectionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunCollectionDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "OpenClawRuns"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOpenClawRunRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOpenClawRunRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartOpenClawRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/runs/{id}": {
      "get": {
        "tags": [
          "OpenClawRuns"
        ],
        "operationId": "GetOpenClawRun",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/runs/{id}/history": {
      "get": {
        "tags": [
          "OpenClawRuns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "gatewayLimit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunHistoryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunHistoryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunHistoryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/runs/{id}/stop": {
      "post": {
        "tags": [
          "OpenClawRuns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/runs/{id}/resume": {
      "post": {
        "tags": [
          "OpenClawRuns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/runs/{id}/retry": {
      "post": {
        "tags": [
          "OpenClawRuns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawRunActionRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawRunOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup": {
      "get": {
        "tags": [
          "OpenClawSetup"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/discover": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawDiscoveryRequest"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawDiscoveryRequest"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OpenClawDiscoveryRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawDiscoveryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawDiscoveryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawDiscoveryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/probe": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProbeOpenClawRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProbeOpenClawRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProbeOpenClawRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawProbeDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawProbeDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawProbeDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/attach": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachOpenClawRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachOpenClawRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AttachOpenClawRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/verify": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOpenClawRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOpenClawRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOpenClawRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/adopt": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdoptOpenClawRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdoptOpenClawRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdoptOpenClawRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawAdoptionInventoryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawAdoptionInventoryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawAdoptionInventoryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/management": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetOpenClawManagementRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetOpenClawManagementRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetOpenClawManagementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/connection": {
      "delete": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteOpenClawConnectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteOpenClawConnectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteOpenClawConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawSetupOperationDtoOfOpenClawSetupStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/wizard/start": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOpenClawWizardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOpenClawWizardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartOpenClawWizardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/wizard/next": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvanceOpenClawWizardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvanceOpenClawWizardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdvanceOpenClawWizardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/wizard/{sessionId}": {
      "get": {
        "tags": [
          "OpenClawSetup"
        ],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openclaw/setup/wizard/{sessionId}/cancel": {
      "post": {
        "tags": [
          "OpenClawSetup"
        ],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenClawWizardResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operations/snapshot": {
      "get": {
        "tags": [
          "Operations"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/projects": {
      "get": {
        "tags": [
          "Projects"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Projects"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{id}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{id}/tasks": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectTaskDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectTaskDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectTaskDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/routing": {
      "get": {
        "tags": [
          "Routing"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/security/status": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecurityStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Tasks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTaskRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTaskRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/tasks/pending-approval": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/tasks/{id}/approve": {
      "post": {
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/tasks/{id}/reject": {
      "post": {
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/tasks/{id}/state": {
      "patch": {
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskStateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskStateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskStateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/tasks/{id}": {
      "patch": {
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/tasks/board": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "doneLimit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "doneCursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBoardPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBoardPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBoardPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tasks/{id}/board-card": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBoardCardDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBoardCardDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBoardCardDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tasks/reset-stale": {
      "post": {
        "tags": [
          "Tasks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetStaleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetStaleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetStaleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/team": {
      "get": {
        "tags": [
          "Team"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AbortOpenClawSessionRequest": {
        "required": [
          "sessionKey"
        ],
        "type": "object",
        "properties": {
          "sessionKey": {
            "type": "string"
          },
          "runId": {
            "type": [
              "null",
              "string"
            ]
          },
          "clearQueued": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "ActivityEntryDto": {
        "required": [
          "id",
          "type",
          "message",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "type": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ActivityEvent": {
        "required": [
          "type",
          "message"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "type": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "taskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ActivityItemDto": {
        "required": [
          "id",
          "type",
          "message",
          "at",
          "entity"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "type": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "entity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EntityRefDto"
              }
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "ActivityPageDto": {
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityItemDto"
            }
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalPages": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AdminCreateUserRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminResetPasswordRequest": {
        "required": [
          "email",
          "newPassword",
          "adminToken"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          },
          "adminToken": {
            "type": "string"
          }
        }
      },
      "AdminUpdateRoleRequest": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          }
        }
      },
      "AdoptOpenClawRequest": {
        "required": [
          "expectedRevision"
        ],
        "type": "object",
        "properties": {
          "expectedRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AdvanceOpenClawWizardRequest": {
        "required": [
          "sessionId"
        ],
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "stepId": {
            "type": [
              "null",
              "string"
            ]
          },
          "value": { },
          "hasAnswer": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "AgentActivityEntry": {
        "required": [
          "time",
          "text",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "time": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "type": "string",
            "default": "gateway-session-history"
          }
        }
      },
      "AgentActivityResponse": {
        "required": [
          "id",
          "type",
          "message",
          "at",
          "source"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "type": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "type": "string"
          },
          "relativeTime": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgentCommandRequest": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      },
      "AgentCommandResponse": {
        "required": [
          "runtime",
          "agentId",
          "conversationId",
          "content"
        ],
        "type": "object",
        "properties": {
          "runtime": {
            "type": "string"
          },
          "agentId": {
            "type": "string"
          },
          "conversationId": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "AgentCreateModelOptionDto": {
        "required": [
          "id",
          "name",
          "provider",
          "available"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "available": {
            "type": "boolean"
          }
        }
      },
      "AgentCreateOptionsDto": {
        "required": [
          "canSubmitProposal",
          "canProvision",
          "state",
          "reason",
          "workspaceRoot",
          "existingAgentIds",
          "models",
          "standardFiles",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "canSubmitProposal": {
            "type": "boolean"
          },
          "canProvision": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          },
          "workspaceRoot": {
            "type": "string"
          },
          "existingAgentIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentCreateModelOptionDto"
            }
          },
          "standardFiles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AgentDetailResponse": {
        "required": [
          "id",
          "name",
          "role",
          "model",
          "status",
          "lastSeen",
          "workspace",
          "agentDir",
          "description",
          "subAgents",
          "identityName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "lastSeen": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "workspace": {
            "type": [
              "null",
              "string"
            ]
          },
          "agentDir": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "subAgents": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "identityName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgentListResponse": {
        "required": [
          "id",
          "name",
          "role",
          "model",
          "status",
          "lastSeen",
          "workspace",
          "description"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "lastSeen": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "workspace": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgentModelInfo": {
        "required": [
          "model",
          "provider"
        ],
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          }
        }
      },
      "AgentProposalActionRequest": {
        "required": [
          "expectedRevision"
        ],
        "type": "object",
        "properties": {
          "expectedRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgentProposalCollectionDto": {
        "required": [
          "items",
          "nextCursor",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentProposalDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AgentProposalDto": {
        "required": [
          "id",
          "source",
          "requestedName",
          "requestedAgentId",
          "role",
          "description",
          "model",
          "emoji",
          "avatar",
          "workspace",
          "files",
          "status",
          "requestedBy",
          "approvedBy",
          "rejectedBy",
          "rejectionReason",
          "openClawAgentId",
          "openClawWorkspace",
          "error",
          "revision",
          "createdAt",
          "updatedAt",
          "approvedAt",
          "rejectedAt",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "source": {
            "type": "string"
          },
          "requestedName": {
            "type": "string"
          },
          "requestedAgentId": {
            "type": "string"
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "model": {
            "type": [
              "null",
              "string"
            ]
          },
          "emoji": {
            "type": [
              "null",
              "string"
            ]
          },
          "avatar": {
            "type": [
              "null",
              "string"
            ]
          },
          "workspace": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentProposalFileDto"
            }
          },
          "status": {
            "type": "string"
          },
          "requestedBy": {
            "type": "string"
          },
          "approvedBy": {
            "type": [
              "null",
              "string"
            ]
          },
          "rejectedBy": {
            "type": [
              "null",
              "string"
            ]
          },
          "rejectionReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "openClawAgentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "openClawWorkspace": {
            "type": [
              "null",
              "string"
            ]
          },
          "error": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AgentProposalErrorDto"
              }
            ]
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "approvedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "rejectedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "AgentProposalErrorDto": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgentProposalFileDto": {
        "required": [
          "name",
          "contentHash",
          "size"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "contentHash": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "content": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgentProposalOperationDto": {
        "required": [
          "ok",
          "state",
          "message",
          "proposal",
          "recovery",
          "correlationId",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "proposal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AgentProposalDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": "string"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "AgentSummaryItemResponse": {
        "required": [
          "text",
          "source",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "timestamp": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "AgentSummaryResponse": {
        "required": [
          "now",
          "today",
          "generatedAt"
        ],
        "type": "object",
        "properties": {
          "now": {
            "$ref": "#/components/schemas/AgentSummaryItemResponse"
          },
          "today": {
            "$ref": "#/components/schemas/AgentSummaryItemResponse"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AgentWorkflowOverview": {
        "required": [
          "waitingForBao",
          "waitingForIris",
          "waitingForOthers",
          "staleTasks",
          "staleThreshold"
        ],
        "type": "object",
        "properties": {
          "waitingForBao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "waitingForIris": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "waitingForOthers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "staleTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "staleThreshold": {
            "pattern": "^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$",
            "type": "string"
          }
        }
      },
      "AttachOpenClawRequest": {
        "required": [
          "endpoint",
          "discoverySource"
        ],
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "discoverySource": {
            "type": "string"
          },
          "tlsCertificateFingerprint": {
            "type": [
              "null",
              "string"
            ]
          },
          "bootstrapToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "bootstrapSecretReference": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BoardResponse": {
        "required": [
          "offen",
          "inProgress",
          "review",
          "blocked",
          "done"
        ],
        "type": "object",
        "properties": {
          "offen": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "inProgress": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "review": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "blocked": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "done": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          }
        }
      },
      "BridgeAppendActivityCommand": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BridgeCreateChildTaskCommand": {
        "required": [
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "priority": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "expectedFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "startsInProgress": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "BridgeCreateTaskCommand": {
        "required": [
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "priority": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "projectId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "BridgeHandoffCommand": {
        "required": [
          "targetAgent"
        ],
        "type": "object",
        "properties": {
          "targetAgent": {
            "type": "string"
          },
          "note": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BridgeUpdateStatusCommand": {
        "required": [
          "state"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          }
        }
      },
      "BrowserMetricRequest": {
        "required": [
          "name",
          "value",
          "rating",
          "routeName",
          "buildVersion",
          "navigationType",
          "liveMode",
          "correlationId"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "rating": {
            "type": "string"
          },
          "routeName": {
            "type": "string"
          },
          "buildVersion": {
            "type": "string"
          },
          "navigationType": {
            "type": "string"
          },
          "liveMode": {
            "type": "string"
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CancelOpenClawTaskRequest": {
        "required": [
          "reason"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ChangePasswordRequest": {
        "required": [
          "currentPassword",
          "newPassword"
        ],
        "type": "object",
        "properties": {
          "currentPassword": {
            "maxLength": 200,
            "minLength": 10,
            "type": "string"
          },
          "newPassword": {
            "maxLength": 200,
            "minLength": 10,
            "type": "string"
          }
        }
      },
      "ChatRequest": {
        "required": [
          "message",
          "conversationId",
          "agentId"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "conversationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "context": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MissionControlContextRequest"
              }
            ]
          }
        }
      },
      "ChatResponse": {
        "required": [
          "ok",
          "reply",
          "error"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "reply": {
            "type": [
              "null",
              "string"
            ]
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateAgentProposalRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "model": {
            "type": [
              "null",
              "string"
            ]
          },
          "emoji": {
            "type": [
              "null",
              "string"
            ]
          },
          "avatar": {
            "type": [
              "null",
              "string"
            ]
          },
          "files": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "clientRequestId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateAgentTaskRequest": {
        "required": [
          "title",
          "detail",
          "source",
          "priority",
          "assignedTo",
          "expectedFrom"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "priority": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "expectedFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentTaskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "startsInProgress": {
            "type": "boolean",
            "default": true
          },
          "initialState": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateDashboardTaskRequest": {
        "required": [
          "title",
          "detail",
          "source",
          "priority",
          "assignedTo"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "priority": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentTaskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "CreateOpenClawCronJobRequest": {
        "required": [
          "name",
          "schedule",
          "sessionTarget",
          "wakeMode",
          "payload"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "schedule": {
            "$ref": "#/components/schemas/JsonObject"
          },
          "sessionTarget": {
            "type": "string"
          },
          "wakeMode": {
            "type": "string"
          },
          "payload": {
            "$ref": "#/components/schemas/JsonObject"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "enabled": {
            "type": "boolean",
            "default": true
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "deleteAfterRun": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "delivery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonObject"
              }
            ]
          },
          "trigger": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonObject"
              }
            ]
          },
          "failureAlert": { },
          "declarationKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateProjectRequest": {
        "required": [
          "name",
          "description"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateTaskRequest": {
        "required": [
          "title",
          "priority",
          "projectId"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "priority": {
            "type": [
              "null",
              "string"
            ]
          },
          "projectId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "DashboardAgentInfo": {
        "required": [
          "id",
          "name",
          "role",
          "model",
          "isActive",
          "currentTask",
          "description",
          "tags"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "currentTask": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "progress": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "workload": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "goal": {
            "type": [
              "null",
              "string"
            ]
          },
          "roleBadge": {
            "type": "string",
            "default": "badge-slate"
          },
          "statusLabel": {
            "type": "string",
            "default": "Bereit"
          },
          "statusKind": {
            "type": "string",
            "default": "ready"
          },
          "statusDetail": {
            "type": [
              "null",
              "string"
            ]
          },
          "elapsed": {
            "type": [
              "null",
              "string"
            ]
          },
          "think": {
            "type": [
              "null",
              "string"
            ]
          },
          "next": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalTokens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "costUsd": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "telemetryAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "DashboardStatus": {
        "required": [
          "gatewayOk",
          "irisStatus",
          "activeAgents",
          "pendingTasks"
        ],
        "type": "object",
        "properties": {
          "gatewayOk": {
            "type": "boolean"
          },
          "irisStatus": {
            "type": "string"
          },
          "activeAgents": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pendingTasks": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DashboardTaskDto": {
        "required": [
          "id",
          "title",
          "detail",
          "source",
          "state",
          "priority",
          "assignedTo",
          "parentTaskId",
          "dueDate",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentTaskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "dueDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isAgentTask": {
            "type": "boolean",
            "default": false
          },
          "expectedFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastActivityMessage": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastActivityAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "childTasks": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DashboardTaskDto"
            }
          },
          "childTaskCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "openChildTaskCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "hasVisibleDelegation": {
            "type": "boolean",
            "default": false
          },
          "projectId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "DeleteOpenClawConnectionRequest": {
        "required": [
          "endpoint",
          "deviceId",
          "expectedRevision"
        ],
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "deviceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "expectedRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DocFileContent": {
        "required": [
          "name",
          "path",
          "content",
          "size",
          "modifiedAt",
          "sourceAgentId",
          "workspacePath"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time"
          },
          "sourceAgentId": {
            "type": "string"
          },
          "workspacePath": {
            "type": "string"
          }
        }
      },
      "DocFileInfo": {
        "required": [
          "name",
          "path",
          "category",
          "type",
          "size",
          "modifiedAt",
          "sourceAgentId",
          "workspacePath"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time"
          },
          "sourceAgentId": {
            "type": "string"
          },
          "workspacePath": {
            "type": "string"
          }
        }
      },
      "EntityRefDto": {
        "required": [
          "type",
          "id"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FeedEntry": {
        "required": [
          "agent",
          "action",
          "timestamp",
          "time"
        ],
        "type": "object",
        "properties": {
          "agent": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "time": {
            "type": "string"
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "GatewayRuntimeInfo": {
        "required": [
          "reachable",
          "baseUrl",
          "version",
          "requiredVersion",
          "versionPinned",
          "versionMatches",
          "versionStatus",
          "checkedAt",
          "message"
        ],
        "type": "object",
        "properties": {
          "reachable": {
            "type": "boolean"
          },
          "baseUrl": {
            "type": "string"
          },
          "version": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "versionPinned": {
            "type": "boolean"
          },
          "versionMatches": {
            "type": "boolean"
          },
          "versionStatus": {
            "type": "string"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "warning": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "IncidentDetail": {
        "required": [
          "name",
          "title",
          "date",
          "content",
          "size",
          "sourceAgentId",
          "workspacePath"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "date": {
            "type": [
              "null",
              "string"
            ]
          },
          "content": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sourceAgentId": {
            "type": "string"
          },
          "workspacePath": {
            "type": "string"
          }
        }
      },
      "IncidentSummary": {
        "required": [
          "name",
          "title",
          "date",
          "severity",
          "excerpt",
          "size",
          "sourceAgentId",
          "workspacePath"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "date": {
            "type": [
              "null",
              "string"
            ]
          },
          "severity": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sourceAgentId": {
            "type": "string"
          },
          "workspacePath": {
            "type": "string"
          }
        }
      },
      "JsonNode": { },
      "JsonObject": {
        "type": "object"
      },
      "LoginRequest": {
        "required": [
          "email",
          "password"
        ],
        "type": "object",
        "properties": {
          "email": {
            "maxLength": 120,
            "type": "string"
          },
          "password": {
            "maxLength": 200,
            "minLength": 10,
            "type": "string"
          }
        }
      },
      "MemoryFileContent": {
        "required": [
          "name",
          "path",
          "content",
          "size",
          "modifiedAt",
          "sourceAgentId",
          "workspacePath"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time"
          },
          "sourceAgentId": {
            "type": "string"
          },
          "workspacePath": {
            "type": "string"
          }
        }
      },
      "MemoryFileInfo": {
        "required": [
          "name",
          "path",
          "size",
          "modifiedAt",
          "sourceAgentId",
          "workspacePath"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time"
          },
          "sourceAgentId": {
            "type": "string"
          },
          "workspacePath": {
            "type": "string"
          }
        }
      },
      "MemorySearchResult": {
        "required": [
          "name",
          "path",
          "excerpt",
          "size",
          "sourceAgentId",
          "workspacePath"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sourceAgentId": {
            "type": "string"
          },
          "workspacePath": {
            "type": "string"
          }
        }
      },
      "MessageEntry": {
        "required": [
          "role",
          "content",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          }
        }
      },
      "MissionControlContextRequest": {
        "required": [
          "routeName",
          "path",
          "surface",
          "entityType",
          "entityId"
        ],
        "type": "object",
        "properties": {
          "routeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "path": {
            "type": [
              "null",
              "string"
            ]
          },
          "surface": {
            "type": [
              "null",
              "string"
            ]
          },
          "entityType": {
            "type": [
              "null",
              "string"
            ]
          },
          "entityId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ModelOption": {
        "required": [
          "id",
          "name",
          "provider"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          }
        }
      },
      "MoveTaskRequest": {
        "required": [
          "state"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          }
        }
      },
      "NotificationDto": {
        "required": [
          "id",
          "type",
          "title",
          "message",
          "forUser",
          "taskId",
          "isRead",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "forUser": {
            "type": "string"
          },
          "taskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "isRead": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "NotificationReadAllResultDto": {
        "required": [
          "marked",
          "operation"
        ],
        "type": "object",
        "properties": {
          "marked": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "operation": {
            "$ref": "#/components/schemas/OperationResultDto"
          }
        }
      },
      "NotificationSnapshotDto": {
        "required": [
          "notifications",
          "unreadCount",
          "forUser"
        ],
        "type": "object",
        "properties": {
          "notifications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotificationDto"
            }
          },
          "unreadCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "forUser": {
            "type": "string"
          }
        }
      },
      "OpenClawActivityDto": {
        "required": [
          "id",
          "eventType",
          "kind",
          "action",
          "status",
          "message",
          "severity",
          "actor",
          "agentId",
          "sessionKey",
          "runId",
          "occurredAt",
          "source"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "severity": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "runId": {
            "type": [
              "null",
              "string"
            ]
          },
          "occurredAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "OpenClawAdoptionInventoryDto": {
        "required": [
          "agentCount",
          "agentFileCount",
          "cronJobCount",
          "modelCount",
          "channelCount",
          "nodeCount",
          "diagnostics",
          "capturedAt"
        ],
        "type": "object",
        "properties": {
          "agentCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "agentFileCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cronJobCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "modelCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "channelCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nodeCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diagnostics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "capturedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawAgentConfigurationErrorDto": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requiredMethod": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredScope": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawAgentDto": {
        "required": [
          "id",
          "name",
          "description",
          "model",
          "provider",
          "workspace",
          "status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "model": {
            "type": [
              "null",
              "string"
            ]
          },
          "provider": {
            "type": [
              "null",
              "string"
            ]
          },
          "workspace": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": "string"
          }
        }
      },
      "OpenClawAgentFileCollectionDto": {
        "required": [
          "agentId",
          "files",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawAgentFileSummaryDto"
            }
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawAgentFileDto": {
        "required": [
          "agentId",
          "name",
          "missing",
          "size",
          "updatedAt",
          "content",
          "contentHash",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "missing": {
            "type": "boolean"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "content": {
            "type": [
              "null",
              "string"
            ]
          },
          "contentHash": {
            "type": "string"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawAgentFileSummaryDto": {
        "required": [
          "name",
          "missing",
          "size",
          "updatedAt",
          "contentHash"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "missing": {
            "type": "boolean"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "contentHash": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawAgentFileWriteDto": {
        "required": [
          "ok",
          "state",
          "message",
          "file",
          "verified",
          "idempotencyKey",
          "correlationId",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "file": {
            "$ref": "#/components/schemas/OpenClawAgentFileDto"
          },
          "verified": {
            "type": "boolean"
          },
          "idempotencyKey": {
            "type": "string"
          },
          "correlationId": {
            "type": "string"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "OpenClawApprovalDto": {
        "required": [
          "id",
          "kind",
          "title",
          "description",
          "status",
          "severity",
          "command",
          "workingDirectory",
          "agentId",
          "sessionKey",
          "requestedAt",
          "expiresAt",
          "allowedDecisions",
          "canResolve"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "command": {
            "type": [
              "null",
              "string"
            ]
          },
          "workingDirectory": {
            "type": [
              "null",
              "string"
            ]
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "requestedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "expiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "allowedDecisions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "canResolve": {
            "type": "boolean"
          }
        }
      },
      "OpenClawCapabilityDto": {
        "required": [
          "id",
          "label",
          "method",
          "requiredScope",
          "available",
          "state",
          "reason"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "requiredScope": {
            "type": "string"
          },
          "available": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawActivityDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawActivityDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawAgentDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawAgentDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawApprovalDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawApprovalDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawCronJobDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawCronJobDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawCronRunDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawCronRunDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawModelAuthProviderDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawModelAuthProviderDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawModelDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawModelDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawSessionDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawSessionDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawCollectionDtoOfOpenClawTaskDto": {
        "required": [
          "state",
          "items",
          "nextCursor",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawTaskDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawConfigPatchDto": {
        "required": [
          "ok",
          "state",
          "message",
          "snapshot",
          "restart",
          "verified",
          "idempotencyKey",
          "correlationId",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "snapshot": {
            "$ref": "#/components/schemas/OpenClawConfigSnapshotDto"
          },
          "restart": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "verified": {
            "type": "boolean"
          },
          "idempotencyKey": {
            "type": "string"
          },
          "correlationId": {
            "type": "string"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "OpenClawConfigSchemaChildDto": {
        "required": [
          "key",
          "path",
          "type",
          "required",
          "hasChildren",
          "reloadKind",
          "hint"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "type": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "required": {
            "type": "boolean"
          },
          "hasChildren": {
            "type": "boolean"
          },
          "reloadKind": {
            "type": [
              "null",
              "string"
            ]
          },
          "hint": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          }
        }
      },
      "OpenClawConfigSchemaLookupDto": {
        "required": [
          "path",
          "schema",
          "reloadKind",
          "hint",
          "children",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "schema": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "reloadKind": {
            "type": [
              "null",
              "string"
            ]
          },
          "hint": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawConfigSchemaChildDto"
            }
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawConfigSnapshotDto": {
        "required": [
          "exists",
          "valid",
          "hash",
          "config",
          "issues",
          "warnings",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "exists": {
            "type": "boolean"
          },
          "valid": {
            "type": "boolean"
          },
          "hash": {
            "type": [
              "null",
              "string"
            ]
          },
          "config": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "issues": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "warnings": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawConnectionDto": {
        "required": [
          "state",
          "configured",
          "credentialConfigured",
          "connected",
          "endpoint",
          "gatewayVersion",
          "requiredVersion",
          "versionPinned",
          "versionMatches",
          "protocolVersion",
          "grantedScopes",
          "advertisedEvents",
          "lastConnectedAt",
          "lastEventAt",
          "reconnectAttempts",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "configured": {
            "type": "boolean"
          },
          "credentialConfigured": {
            "type": "boolean"
          },
          "connected": {
            "type": "boolean"
          },
          "endpoint": {
            "type": "string"
          },
          "gatewayVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "versionPinned": {
            "type": "boolean"
          },
          "versionMatches": {
            "type": "boolean"
          },
          "protocolVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "grantedScopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "advertisedEvents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lastConnectedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastEventAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "reconnectAttempts": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deviceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "pairingRequired": {
            "type": "boolean",
            "default": false
          },
          "pairingRequestId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawCronDeliveryDto": {
        "required": [
          "mode",
          "channel",
          "target",
          "threadId",
          "accountId",
          "bestEffort",
          "completionDestination",
          "failureDestination"
        ],
        "type": "object",
        "properties": {
          "mode": {
            "type": "string"
          },
          "channel": {
            "type": [
              "null",
              "string"
            ]
          },
          "target": {
            "type": [
              "null",
              "string"
            ]
          },
          "threadId": {
            "type": [
              "null",
              "string"
            ]
          },
          "accountId": {
            "type": [
              "null",
              "string"
            ]
          },
          "bestEffort": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "completionDestination": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawCronDestinationDto"
              }
            ]
          },
          "failureDestination": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawCronDestinationDto"
              }
            ]
          }
        }
      },
      "OpenClawCronDestinationDto": {
        "required": [
          "channel",
          "target",
          "accountId",
          "mode"
        ],
        "type": "object",
        "properties": {
          "channel": {
            "type": [
              "null",
              "string"
            ]
          },
          "target": {
            "type": [
              "null",
              "string"
            ]
          },
          "accountId": {
            "type": [
              "null",
              "string"
            ]
          },
          "mode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawCronFailureAlertDto": {
        "required": [
          "after",
          "channel",
          "target",
          "cooldownMs",
          "includeSkipped",
          "mode",
          "accountId"
        ],
        "type": "object",
        "properties": {
          "after": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "channel": {
            "type": [
              "null",
              "string"
            ]
          },
          "target": {
            "type": [
              "null",
              "string"
            ]
          },
          "cooldownMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "includeSkipped": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "mode": {
            "type": [
              "null",
              "string"
            ]
          },
          "accountId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawCronJobDetailDto": {
        "required": [
          "id",
          "name",
          "displayName",
          "description",
          "enabled",
          "deleteAfterRun",
          "agentId",
          "sessionKey",
          "sessionTarget",
          "wakeMode",
          "schedule",
          "payload",
          "delivery",
          "trigger",
          "failureAlert",
          "createdAt",
          "updatedAt",
          "nextRunAt",
          "lastRunAt",
          "lastRunStatus",
          "lastError",
          "resourceHash",
          "canUpdate",
          "canDelete",
          "canRun"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "deleteAfterRun": {
            "type": "boolean"
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionTarget": {
            "type": "string"
          },
          "wakeMode": {
            "type": "string"
          },
          "schedule": {
            "$ref": "#/components/schemas/OpenClawCronScheduleDto"
          },
          "payload": {
            "$ref": "#/components/schemas/OpenClawCronPayloadDto"
          },
          "delivery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawCronDeliveryDto"
              }
            ]
          },
          "trigger": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawCronTriggerDto"
              }
            ]
          },
          "failureAlert": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawCronFailureAlertDto"
              }
            ]
          },
          "createdAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "nextRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastRunStatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastError": {
            "type": [
              "null",
              "string"
            ]
          },
          "resourceHash": {
            "type": "string"
          },
          "canUpdate": {
            "type": "boolean"
          },
          "canDelete": {
            "type": "boolean"
          },
          "canRun": {
            "type": "boolean"
          }
        }
      },
      "OpenClawCronJobDto": {
        "required": [
          "id",
          "name",
          "description",
          "schedule",
          "timeZone",
          "enabled",
          "status",
          "agentId",
          "sessionKey",
          "nextRunAt",
          "lastRunAt",
          "lastRunStatus",
          "lastError",
          "canRun"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "schedule": {
            "type": "string"
          },
          "timeZone": {
            "type": [
              "null",
              "string"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "nextRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastRunStatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastError": {
            "type": [
              "null",
              "string"
            ]
          },
          "canRun": {
            "type": "boolean"
          },
          "resourceHash": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawCronPayloadDto": {
        "required": [
          "kind",
          "text",
          "message",
          "model",
          "fallbacks",
          "thinking",
          "timeoutSeconds",
          "allowUnsafeExternalContent",
          "lightContext",
          "toolsAllow",
          "arguments",
          "workingDirectory",
          "environmentKeys",
          "inputConfigured",
          "noOutputTimeoutSeconds",
          "outputMaxBytes"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "model": {
            "type": [
              "null",
              "string"
            ]
          },
          "fallbacks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "thinking": {
            "type": [
              "null",
              "string"
            ]
          },
          "timeoutSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "allowUnsafeExternalContent": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "lightContext": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "toolsAllow": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "arguments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "workingDirectory": {
            "type": [
              "null",
              "string"
            ]
          },
          "environmentKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "inputConfigured": {
            "type": "boolean"
          },
          "noOutputTimeoutSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "outputMaxBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "OpenClawCronRunDiagnosticDto": {
        "required": [
          "occurredAt",
          "source",
          "severity",
          "message",
          "toolName",
          "exitCode",
          "truncated"
        ],
        "type": "object",
        "properties": {
          "occurredAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "source": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "toolName": {
            "type": [
              "null",
              "string"
            ]
          },
          "exitCode": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "truncated": {
            "type": "boolean"
          }
        }
      },
      "OpenClawCronRunDto": {
        "required": [
          "id",
          "jobId",
          "jobName",
          "runId",
          "status",
          "action",
          "summary",
          "error",
          "errorReason",
          "deliveryStatus",
          "deliveryError",
          "delivered",
          "triggerFired",
          "diagnosticsSummary",
          "diagnostics",
          "sessionId",
          "sessionKey",
          "occurredAt",
          "runAt",
          "durationMs",
          "nextRunAt",
          "model",
          "provider",
          "inputTokens",
          "outputTokens",
          "totalTokens"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "jobId": {
            "type": "string"
          },
          "jobName": {
            "type": [
              "null",
              "string"
            ]
          },
          "runId": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "errorReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "deliveryStatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "deliveryError": {
            "type": [
              "null",
              "string"
            ]
          },
          "delivered": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "triggerFired": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "diagnosticsSummary": {
            "type": [
              "null",
              "string"
            ]
          },
          "diagnostics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawCronRunDiagnosticDto"
            }
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "occurredAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "runAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "durationMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nextRunAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "model": {
            "type": [
              "null",
              "string"
            ]
          },
          "provider": {
            "type": [
              "null",
              "string"
            ]
          },
          "inputTokens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "outputTokens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "totalTokens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "OpenClawCronScheduleDto": {
        "required": [
          "kind",
          "expression",
          "timeZone",
          "at",
          "everyMs",
          "anchorMs",
          "staggerMs",
          "command",
          "workingDirectory"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "expression": {
            "type": [
              "null",
              "string"
            ]
          },
          "timeZone": {
            "type": [
              "null",
              "string"
            ]
          },
          "at": {
            "type": [
              "null",
              "string"
            ]
          },
          "everyMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "anchorMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "staggerMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "command": {
            "type": [
              "null",
              "string"
            ]
          },
          "workingDirectory": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawCronTriggerDto": {
        "required": [
          "script",
          "once"
        ],
        "type": "object",
        "properties": {
          "script": {
            "type": "string"
          },
          "once": {
            "type": "boolean"
          }
        }
      },
      "OpenClawDiscoveryCandidateDto": {
        "required": [
          "endpoint",
          "source",
          "isCurrentConnectorEndpoint",
          "requiresTlsFingerprint",
          "isValid",
          "reason"
        ],
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "isCurrentConnectorEndpoint": {
            "type": "boolean"
          },
          "requiresTlsFingerprint": {
            "type": "boolean"
          },
          "isValid": {
            "type": "boolean"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawDiscoveryDto": {
        "required": [
          "candidates",
          "mdnsState",
          "message",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "candidates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawDiscoveryCandidateDto"
            }
          },
          "mdnsState": {
            "type": "string"
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawDiscoveryRequest": {
        "type": "object",
        "properties": {
          "includeMdns": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "OpenClawModelAuthApiKeyDto": {
        "required": [
          "source",
          "envVar"
        ],
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "envVar": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawModelAuthExpiryDto": {
        "required": [
          "at",
          "remainingMs",
          "label"
        ],
        "type": "object",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "remainingMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "OpenClawModelAuthProfileSummaryDto": {
        "required": [
          "type",
          "status",
          "count"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "count": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "OpenClawModelAuthProviderDto": {
        "required": [
          "provider",
          "displayName",
          "status",
          "expiry",
          "profiles",
          "apiKey",
          "usage"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "expiry": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawModelAuthExpiryDto"
              }
            ]
          },
          "profiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawModelAuthProfileSummaryDto"
            }
          },
          "apiKey": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawModelAuthApiKeyDto"
              }
            ]
          },
          "usage": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawModelAuthUsageDto"
              }
            ]
          }
        }
      },
      "OpenClawModelAuthUsageDto": {
        "required": [
          "summary",
          "plan"
        ],
        "type": "object",
        "properties": {
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "plan": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawModelDto": {
        "required": [
          "id",
          "name",
          "provider",
          "configured",
          "available",
          "contextWindow",
          "reason"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "configured": {
            "type": "boolean"
          },
          "available": {
            "type": "boolean"
          },
          "contextWindow": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawOperationDtoOfObject": {
        "required": [
          "ok",
          "state",
          "message",
          "data",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": { },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceParent": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "OpenClawOperationDtoOfOpenClawApprovalDto": {
        "required": [
          "ok",
          "state",
          "message",
          "data",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawApprovalDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceParent": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "OpenClawOperationDtoOfOpenClawCronJobDetailDto": {
        "required": [
          "ok",
          "state",
          "message",
          "data",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawCronJobDetailDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceParent": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "OpenClawOperationDtoOfOpenClawTaskDto": {
        "required": [
          "ok",
          "state",
          "message",
          "data",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawTaskDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceParent": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "OpenClawOverviewDto": {
        "required": [
          "connection",
          "capabilities",
          "tasks",
          "sessions",
          "cronJobs",
          "approvals",
          "activity",
          "models",
          "agents",
          "generatedAt"
        ],
        "type": "object",
        "properties": {
          "connection": {
            "$ref": "#/components/schemas/OpenClawConnectionDto"
          },
          "capabilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawCapabilityDto"
            }
          },
          "tasks": {
            "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawTaskDto"
          },
          "sessions": {
            "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawSessionDto"
          },
          "cronJobs": {
            "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawCronJobDto"
          },
          "approvals": {
            "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawApprovalDto"
          },
          "activity": {
            "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawActivityDto"
          },
          "models": {
            "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawModelDto"
          },
          "agents": {
            "$ref": "#/components/schemas/OpenClawCollectionDtoOfOpenClawAgentDto"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawProbeDto": {
        "required": [
          "endpoint",
          "source",
          "isCurrentConnectorEndpoint",
          "connected",
          "gatewayVersion",
          "requiredVersion",
          "versionMatches",
          "protocolVersion",
          "deviceId",
          "pairingRequired",
          "pairingRequestId",
          "grantedScopes",
          "advertisedMethods",
          "capabilityHash",
          "canAttach",
          "leastPrivilegeSatisfied",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "isCurrentConnectorEndpoint": {
            "type": "boolean"
          },
          "connected": {
            "type": "boolean"
          },
          "gatewayVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "versionMatches": {
            "type": "boolean"
          },
          "protocolVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "deviceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "pairingRequired": {
            "type": "boolean"
          },
          "pairingRequestId": {
            "type": [
              "null",
              "string"
            ]
          },
          "grantedScopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "advertisedMethods": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "capabilityHash": {
            "type": "string"
          },
          "canAttach": {
            "type": "boolean"
          },
          "leastPrivilegeSatisfied": {
            "type": "boolean"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawRunActionRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawRunCollectionDto": {
        "required": [
          "items",
          "nextCursor",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawRunDto"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawRunDto": {
        "required": [
          "id",
          "title",
          "prompt",
          "agentId",
          "sessionKey",
          "status",
          "taskId",
          "projectId",
          "openClawRunId",
          "retriedFromRunId",
          "correlationId",
          "actor",
          "lastError",
          "lastGatewaySequence",
          "sequenceGapDetected",
          "canStop",
          "canRetry",
          "canResume",
          "resumeCapabilityMessage",
          "createdAt",
          "updatedAt",
          "startedAt",
          "finishedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "agentId": {
            "type": "string"
          },
          "sessionKey": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "taskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "projectId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "openClawRunId": {
            "type": [
              "null",
              "string"
            ]
          },
          "retriedFromRunId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "correlationId": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "lastError": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastGatewaySequence": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sequenceGapDetected": {
            "type": "boolean"
          },
          "canStop": {
            "type": "boolean"
          },
          "canRetry": {
            "type": "boolean"
          },
          "canResume": {
            "type": "boolean"
          },
          "resumeCapabilityMessage": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "OpenClawRunHistoryDto": {
        "required": [
          "id",
          "runId",
          "action",
          "fromStatus",
          "toStatus",
          "message",
          "actor",
          "correlationId",
          "idempotencyKey",
          "traceParent",
          "gatewayEventId",
          "gatewaySequence",
          "sequenceGapDetected",
          "resultRunId",
          "occurredAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string"
          },
          "fromStatus": {
            "type": "string"
          },
          "toStatus": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "correlationId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceParent": {
            "type": [
              "null",
              "string"
            ]
          },
          "gatewayEventId": {
            "type": [
              "null",
              "string"
            ]
          },
          "gatewaySequence": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sequenceGapDetected": {
            "type": "boolean"
          },
          "resultRunId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawRunHistoryResponse": {
        "required": [
          "run",
          "transitions",
          "gatewayHistoryState",
          "gatewayHistory",
          "message",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "run": {
            "$ref": "#/components/schemas/OpenClawRunDto"
          },
          "transitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawRunHistoryDto"
            }
          },
          "gatewayHistoryState": {
            "type": "string"
          },
          "gatewayHistory": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawRunOperationDto": {
        "required": [
          "ok",
          "state",
          "message",
          "run",
          "resultRun",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "run": {
            "$ref": "#/components/schemas/OpenClawRunDto"
          },
          "resultRun": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawRunDto"
              }
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "OpenClawSessionDto": {
        "required": [
          "key",
          "sessionId",
          "agentId",
          "title",
          "status",
          "kind",
          "channel",
          "model",
          "provider",
          "runId",
          "updatedAt",
          "inputTokens",
          "outputTokens",
          "totalTokens",
          "canAbort"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "agentId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "kind": {
            "type": [
              "null",
              "string"
            ]
          },
          "channel": {
            "type": [
              "null",
              "string"
            ]
          },
          "model": {
            "type": [
              "null",
              "string"
            ]
          },
          "provider": {
            "type": [
              "null",
              "string"
            ]
          },
          "runId": {
            "type": [
              "null",
              "string"
            ]
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "inputTokens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "outputTokens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "totalTokens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "canAbort": {
            "type": "boolean"
          }
        }
      },
      "OpenClawSetupOperationDtoOfOpenClawAdoptionInventoryDto": {
        "required": [
          "ok",
          "state",
          "message",
          "data",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawAdoptionInventoryDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawSetupOperationDtoOfOpenClawProbeDto": {
        "required": [
          "ok",
          "state",
          "message",
          "data",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawProbeDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawSetupOperationDtoOfOpenClawSetupStatusDto": {
        "required": [
          "ok",
          "state",
          "message",
          "data",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawSetupStatusDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawSetupStatusDto": {
        "required": [
          "profileId",
          "state",
          "experimentalBlocked",
          "hasProfile",
          "endpoint",
          "discoverySource",
          "adoptionState",
          "managementEnabled",
          "requiredVersion",
          "gatewayVersion",
          "protocolVersion",
          "deviceId",
          "deviceTokenConfigured",
          "pairingRequired",
          "pairingRequestId",
          "grantedScopes",
          "advertisedMethods",
          "capabilityHash",
          "revision",
          "lastProbedAt",
          "lastVerifiedAt",
          "adoptedAt",
          "updatedAt",
          "message",
          "recovery",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "profileId": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "experimentalBlocked": {
            "type": "boolean"
          },
          "hasProfile": {
            "type": "boolean"
          },
          "endpoint": {
            "type": [
              "null",
              "string"
            ]
          },
          "discoverySource": {
            "type": [
              "null",
              "string"
            ]
          },
          "adoptionState": {
            "type": "string"
          },
          "managementEnabled": {
            "type": "boolean"
          },
          "requiredVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "gatewayVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "protocolVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "deviceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "deviceTokenConfigured": {
            "type": "boolean"
          },
          "pairingRequired": {
            "type": "boolean"
          },
          "pairingRequestId": {
            "type": [
              "null",
              "string"
            ]
          },
          "grantedScopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "advertisedMethods": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "capabilityHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lastProbedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastVerifiedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "adoptedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawTaskDto": {
        "required": [
          "id",
          "title",
          "status",
          "kind",
          "runtime",
          "agentId",
          "sessionKey",
          "runId",
          "flowId",
          "parentTaskId",
          "createdAt",
          "startedAt",
          "updatedAt",
          "finishedAt",
          "progress",
          "summary",
          "error",
          "canCancel"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "kind": {
            "type": [
              "null",
              "string"
            ]
          },
          "runtime": {
            "type": [
              "null",
              "string"
            ]
          },
          "agentId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "runId": {
            "type": [
              "null",
              "string"
            ]
          },
          "flowId": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentTaskId": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "startedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "progress": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "canCancel": {
            "type": "boolean"
          }
        }
      },
      "OpenClawWizardDeviceCodeDto": {
        "required": [
          "code",
          "expiresInMinutes",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawWizardOptionDto": {
        "required": [
          "value",
          "label",
          "hint"
        ],
        "type": "object",
        "properties": {
          "value": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "label": {
            "type": "string"
          },
          "hint": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawWizardResultDto": {
        "required": [
          "ok",
          "state",
          "message",
          "sessionId",
          "done",
          "status",
          "error",
          "step",
          "recovery",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "done": {
            "type": "boolean"
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "step": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawWizardStepDto"
              }
            ]
          },
          "recovery": {
            "type": [
              "null",
              "string"
            ]
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawWizardStepDto": {
        "required": [
          "id",
          "type",
          "title",
          "message",
          "options",
          "initialValue",
          "placeholder",
          "sensitive",
          "executor",
          "externalUrl",
          "deviceCode",
          "canAnswer",
          "blockedReason"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawWizardOptionDto"
            }
          },
          "initialValue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ]
          },
          "placeholder": {
            "type": [
              "null",
              "string"
            ]
          },
          "sensitive": {
            "type": "boolean"
          },
          "executor": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "deviceCode": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OpenClawWizardDeviceCodeDto"
              }
            ]
          },
          "canAnswer": {
            "type": "boolean"
          },
          "blockedReason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OpenClawWorkspaceCollectionDto": {
        "required": [
          "agentId",
          "path",
          "parentPath",
          "entries",
          "totalEntries",
          "offset",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "parentPath": {
            "type": [
              "null",
              "string"
            ]
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenClawWorkspaceEntryDto"
            }
          },
          "totalEntries": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "offset": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OpenClawWorkspaceEntryDto": {
        "required": [
          "path",
          "name",
          "kind",
          "size",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "OpenClawWorkspaceFileDto": {
        "required": [
          "agentId",
          "path",
          "name",
          "size",
          "updatedAt",
          "mimeType",
          "encoding",
          "content",
          "contentHash",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "size": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "mimeType": {
            "type": "string"
          },
          "encoding": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "contentHash": {
            "type": "string"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OperationResultDto": {
        "required": [
          "operationId",
          "status",
          "revision",
          "primaryRef",
          "affectedRefs",
          "traceId"
        ],
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "primaryRef": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EntityRefDto"
              }
            ]
          },
          "affectedRefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntityRefDto"
            }
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PatchOpenClawConfigRequest": {
        "required": [
          "patch",
          "baseHash"
        ],
        "type": "object",
        "properties": {
          "patch": {
            "$ref": "#/components/schemas/JsonNode"
          },
          "baseHash": {
            "type": "string"
          },
          "replacePaths": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "note": {
            "type": [
              "null",
              "string"
            ]
          },
          "restartDelayMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PatchOpenClawCronJobRequest": {
        "required": [
          "patch"
        ],
        "type": "object",
        "properties": {
          "patch": {
            "$ref": "#/components/schemas/JsonObject"
          },
          "expectedHash": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PatchOpenClawSessionModelRequest": {
        "required": [
          "sessionKey",
          "model"
        ],
        "type": "object",
        "properties": {
          "sessionKey": {
            "type": "string"
          },
          "model": {
            "type": "string"
          }
        }
      },
      "PostActivityRequest": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProbeOpenClawRequest": {
        "required": [
          "endpoint"
        ],
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "tlsCertificateFingerprint": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProblemDetails": {
        "required": [
          "code",
          "traceId"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          },
          "code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable Nexus error code."
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Privacy-safe server trace identifier."
          },
          "operationId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Durable operation identifier when the request started an operation."
          },
          "currentRevision": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Current server revision for a stale-write conflict.",
            "format": "int32"
          },
          "retryAfterSeconds": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Minimum retry delay advertised by Nexus.",
            "format": "int32"
          },
          "remaining": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Remaining attempts when a bounded policy exposes that value.",
            "format": "int32"
          },
          "expectedHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Client-supplied content hash for a stale-write conflict."
          },
          "currentHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Current server content hash for a stale-write conflict."
          }
        }
      },
      "ProjectDto": {
        "required": [
          "id",
          "name",
          "description",
          "status",
          "progress",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "progress": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "ProjectTaskDto": {
        "required": [
          "id",
          "title",
          "state",
          "priority",
          "projectId",
          "assignedTo",
          "expectedFrom",
          "isAgentTask",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "projectId": {
            "type": "string",
            "format": "uuid"
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "expectedFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "isAgentTask": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "QueueItem": {
        "required": [
          "id",
          "name",
          "status",
          "priority",
          "source",
          "waitTime"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "waitTime": {
            "type": "string"
          }
        }
      },
      "ResetStaleRequest": {
        "type": "object",
        "properties": {
          "staleHours": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 2
          }
        }
      },
      "ResetStaleResponse": {
        "required": [
          "resetCount"
        ],
        "type": "object",
        "properties": {
          "resetCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          }
        }
      },
      "ResolveOpenClawApprovalRequest": {
        "required": [
          "kind",
          "decision"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          }
        }
      },
      "SaveConfigRequest": {
        "required": [
          "content"
        ],
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "expectedHash": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SecurityCookieConfigDto": {
        "required": [
          "httpOnly",
          "secure",
          "sameSite"
        ],
        "type": "object",
        "properties": {
          "httpOnly": {
            "type": "boolean"
          },
          "secure": {
            "type": "boolean"
          },
          "sameSite": {
            "type": "string"
          }
        }
      },
      "SecurityStatusDto": {
        "required": [
          "authMethod",
          "tokenConfig",
          "rateLimit",
          "passwordPolicy",
          "cookieConfig",
          "twoFactorEnabled",
          "passkeyEnabled",
          "checkedAt"
        ],
        "type": "object",
        "properties": {
          "authMethod": {
            "type": "string"
          },
          "tokenConfig": {
            "$ref": "#/components/schemas/SecurityTokenConfigDto"
          },
          "rateLimit": {
            "type": "string"
          },
          "passwordPolicy": {
            "type": "string"
          },
          "cookieConfig": {
            "$ref": "#/components/schemas/SecurityCookieConfigDto"
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "passkeyEnabled": {
            "type": "boolean"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SecurityTokenConfigDto": {
        "required": [
          "issuer",
          "audience",
          "refreshTokenDays",
          "accessTokenMinutes"
        ],
        "type": "object",
        "properties": {
          "issuer": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "refreshTokenDays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "accessTokenMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SetModelRequest": {
        "required": [
          "model"
        ],
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          }
        }
      },
      "SetOpenClawManagementRequest": {
        "required": [
          "enabled",
          "confirmed",
          "expectedRevision"
        ],
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "confirmed": {
            "type": "boolean"
          },
          "expectedRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "StartOpenClawRunRequest": {
        "required": [
          "prompt",
          "agentId",
          "sessionKey"
        ],
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "agentId": {
            "type": "string"
          },
          "sessionKey": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "taskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "projectId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "StartOpenClawWizardRequest": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "default": "local"
          },
          "confirmed": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "TaskBoardCardDto": {
        "required": [
          "id",
          "title",
          "detail",
          "source",
          "state",
          "priority",
          "assignedTo",
          "parentTaskId",
          "projectId",
          "dueDate",
          "createdAt",
          "updatedAt",
          "isAgentTask",
          "expectedFrom",
          "lastActivityMessage",
          "lastActivityAt",
          "childTaskCount",
          "openChildTaskCount",
          "hasVisibleDelegation"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentTaskId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "projectId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "dueDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isAgentTask": {
            "type": "boolean"
          },
          "expectedFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastActivityMessage": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastActivityAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "childTaskCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "openChildTaskCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasVisibleDelegation": {
            "type": "boolean"
          }
        }
      },
      "TaskBoardPageDto": {
        "required": [
          "revision",
          "offen",
          "inProgress",
          "review",
          "blocked",
          "done",
          "nextDoneCursor",
          "hasMoreDone"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "type": "string"
          },
          "offen": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskBoardCardDto"
            }
          },
          "inProgress": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskBoardCardDto"
            }
          },
          "review": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskBoardCardDto"
            }
          },
          "blocked": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskBoardCardDto"
            }
          },
          "done": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskBoardCardDto"
            }
          },
          "nextDoneCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "hasMoreDone": {
            "type": "boolean"
          }
        }
      },
      "TaskBridgeCommandResponseOfActivityEntryDto": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "command": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ActivityEntryDto"
              }
            ]
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          },
          "timestamp": {
            "type": "string"
          }
        }
      },
      "TaskBridgeCommandResponseOfDashboardTaskDto": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "command": {
            "type": "string"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DashboardTaskDto"
              }
            ]
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          },
          "timestamp": {
            "type": "string"
          }
        }
      },
      "TaskBridgeCommandResponseOfListOfActivityEntryDto": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "command": {
            "type": "string"
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ActivityEntryDto"
            }
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationResultDto"
              }
            ]
          },
          "timestamp": {
            "type": "string"
          }
        }
      },
      "UnreadCountDto": {
        "required": [
          "count"
        ],
        "type": "object",
        "properties": {
          "count": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "UpdateDashboardTaskRequest": {
        "required": [
          "title",
          "detail",
          "source",
          "priority",
          "assignedTo"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "priority": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "dueDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "UpdateDashboardTaskStatusRequest": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          }
        }
      },
      "UpdateOpenClawAgentFileRequest": {
        "required": [
          "content",
          "expectedHash"
        ],
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "expectedHash": {
            "type": "string"
          }
        }
      },
      "UpdateProfileRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "maxLength": 100,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UpdateProjectRequest": {
        "required": [
          "name",
          "description",
          "status"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UpdateTaskRequest": {
        "required": [
          "title",
          "priority",
          "projectId"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "priority": {
            "type": [
              "null",
              "string"
            ]
          },
          "projectId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "UpdateTaskStateRequest": {
        "required": [
          "state"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          }
        }
      },
      "ValidationProblemDetails": {
        "required": [
          "code",
          "traceId"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "code": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable Nexus error code."
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Privacy-safe server trace identifier."
          },
          "operationId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Durable operation identifier when the request started an operation."
          },
          "currentRevision": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Current server revision for a stale-write conflict.",
            "format": "int32"
          },
          "retryAfterSeconds": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Minimum retry delay advertised by Nexus.",
            "format": "int32"
          },
          "remaining": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Remaining attempts when a bounded policy exposes that value.",
            "format": "int32"
          },
          "expectedHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Client-supplied content hash for a stale-write conflict."
          },
          "currentHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Current server content hash for a stale-write conflict."
          }
        }
      },
      "VerifyOpenClawRequest": {
        "required": [
          "expectedRevision"
        ],
        "type": "object",
        "properties": {
          "expectedRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Activity"
    },
    {
      "name": "Admin"
    },
    {
      "name": "Agents"
    },
    {
      "name": "Auth"
    },
    {
      "name": "BrowserTelemetry"
    },
    {
      "name": "Calendar"
    },
    {
      "name": "Chat"
    },
    {
      "name": "Dashboard"
    },
    {
      "name": "Docs"
    },
    {
      "name": "DomainEvents"
    },
    {
      "name": "GatewayBridge"
    },
    {
      "name": "GatewayHealth"
    },
    {
      "name": "Health"
    },
    {
      "name": "Incidents"
    },
    {
      "name": "Memory"
    },
    {
      "name": "Notifications"
    },
    {
      "name": "OpenClawAgentConfiguration"
    },
    {
      "name": "OpenClawAgentProposals"
    },
    {
      "name": "OpenClaw"
    },
    {
      "name": "OpenClawEvents"
    },
    {
      "name": "OpenClawRuns"
    },
    {
      "name": "OpenClawSetup"
    },
    {
      "name": "Operations"
    },
    {
      "name": "Projects"
    },
    {
      "name": "Routing"
    },
    {
      "name": "Security"
    },
    {
      "name": "Tasks"
    },
    {
      "name": "Team"
    }
  ]
}