{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tunnelpowered-com/json-schema/tunnelpowered-com-verification-status-schema.json",
  "title": "VerificationStatus",
  "description": "The live verification answer, with the signed attestation attached. Verify the signature against `/.well-known/jwks.json` rather than trusting this envelope.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tunnelpowered-com-openapi.json#/components/schemas/VerificationStatus",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "verification": {
      "$ref": "#/$defs/Verification"
    },
    "attestation": {
      "type": [
        "object",
        "null"
      ]
    },
    "issuedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "$defs": {
    "Verification": {
      "type": "object",
      "description": "Present on entity records. Absent on website records, which are not verified subjects.",
      "required": [
        "level",
        "status",
        "checkUrl"
      ],
      "properties": {
        "level": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "human",
            "automated",
            null
          ],
          "description": "`human` — a tunnel employee checked legal identity, channel control and that the service is real, and a second employee approved it. `automated` — machines confirmed the merchant controls the channels this record cites, and nothing more. `null` — not verified. Read this field; do not infer verification from the presence of a badge."
        },
        "status": {
          "type": "string",
          "enum": [
            "verified_by_human",
            "verified_automated",
            "unverified"
          ]
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Present when `level` is `automated`. States what the check did NOT establish. The same array is inside the signed attestation, so it cannot be stripped in transit without breaking the signature."
        },
        "checkUrl": {
          "type": "string",
          "format": "uri",
          "description": "Fetch this before a high-stakes action. Revocations propagate faster than caches expire."
        }
      }
    }
  }
}