{
  "openapi": "3.1.0",
  "info": {
    "title": "VeilLock Runtime API",
    "version": "0.1.0",
    "summary": "Render to encrypt to decode locally to display.",
    "description": "PulseCheck and obfuscation preview. Not a virtual camera. iOS FaceTime cannot pick a third-party camera."
  },
  "servers": [
    {
      "url": "https://veillock-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "veillockHealth",
        "summary": "Liveness",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/pulse": {
      "post": {
        "operationId": "veillockPulse",
        "summary": "PulseCheck. Fail → halt/noise, never a plaintext claim.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "oneOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "object"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PCI PASS or FAIL (halt/noise)"
          }
        }
      }
    },
    "/v1/obfuscate-preview": {
      "post": {
        "operationId": "veillockObfuscatePreview",
        "summary": "Return a noise recipe, not a virtual camera",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "seed": {},
                  "width": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Obfuscation recipe"
          }
        }
      }
    }
  }
}