{
  "openapi": "3.1.0",
  "info": {
    "title": "VibeLock Runtime API",
    "version": "0.1.0",
    "summary": "Sound can be forged. Physics is harder to fake.",
    "description": "Risk assessment, not a liveness proof. Hosted endpoint is not a live microphone. Desktop `listen` stays local."
  },
  "servers": [
    {
      "url": "https://vibelock-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "vibelockHealth",
        "summary": "Liveness",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/analyze": {
      "post": {
        "operationId": "vibelockAnalyze",
        "summary": "Audio-only risk assessment from features or limited PCM",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "features": {
                    "type": "object",
                    "properties": {
                      "rms": {
                        "type": "number"
                      },
                      "zcr": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": true
                  },
                  "pcm_b64": {
                    "type": "string",
                    "description": "Limited int16 LE (default) or f32 PCM, not a live mic"
                  },
                  "rate": {
                    "type": "integer"
                  },
                  "sample_rate": {
                    "type": "integer"
                  },
                  "pcm_dtype": {
                    "type": "string",
                    "enum": [
                      "int16",
                      "f32"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Risk assessment (not a liveness proof)"
          }
        }
      }
    }
  }
}