{
  "openapi": "3.1.0",
  "info": {
    "title": "Vibe提肛 A2MCP 微运动服务",
    "version": "1.0.0",
    "description": "根据 AI 等待时长和运动偏好返回一套可直接执行的分秒办公微运动口令。"
  },
  "servers": [
    {
      "url": "https://vibe-tigang.pages.dev"
    }
  ],
  "paths": {
    "/api/v1/microbreak": {
      "post": {
        "operationId": "createMicrobreak",
        "summary": "生成一套 AI 等待期间的微运动方案",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "wait_seconds": {
                    "type": "integer",
                    "minimum": 15,
                    "maximum": 180,
                    "default": 45
                  },
                  "routine": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "pelvic",
                      "eyes",
                      "breathe",
                      "shoulders"
                    ],
                    "default": "auto"
                  },
                  "site_name": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "reminder_style": {
                    "type": "string",
                    "enum": [
                      "gentle",
                      "direct",
                      "funny"
                    ],
                    "default": "gentle"
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "zh-CN",
                      "en"
                    ],
                    "default": "zh-CN"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功生成可执行的微运动方案，包含 intro_audio_key 和每一步的 audio_key"
          },
          "400": {
            "description": "JSON 格式错误或请求体过大"
          },
          "422": {
            "description": "参数无效或指定运动无法在等待时长内完成"
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "检查服务状态",
        "responses": {
          "200": {
            "description": "服务正常"
          }
        }
      }
    },
    "/api/v1/openapi.json": {
      "get": {
        "operationId": "getOpenApiDocument",
        "summary": "获取 OpenAPI 文档",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 文档"
          }
        }
      }
    }
  }
}