{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pulsefeed-dev/json-schema/pulsefeed-dev-verify-schema.json",
  "title": "Verify",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pulsefeed-dev-openapi.json#/components/schemas/Verify",
  "type": "object",
  "properties": {
    "endpoint": {
      "type": "string"
    },
    "known": {
      "type": "boolean"
    },
    "probed": {
      "type": "boolean"
    },
    "live": {
      "type": "boolean"
    },
    "score": {
      "type": "number"
    },
    "verdict": {
      "type": "string",
      "enum": [
        "safe",
        "caution",
        "avoid",
        "unknown"
      ]
    },
    "band": {
      "type": "string",
      "enum": [
        "verified",
        "trusted",
        "caution",
        "avoid",
        "unknown"
      ]
    },
    "trustScoreVersion": {
      "type": "string"
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "riskLevel": {
      "type": "string"
    },
    "receiverProfile": {
      "type": [
        "string",
        "null"
      ]
    },
    "priceUsd": {
      "type": [
        "number",
        "null"
      ]
    },
    "lastChecked": {
      "type": "string",
      "format": "date-time"
    },
    "cacheAgeHours": {
      "type": [
        "number",
        "null"
      ]
    },
    "freshness": {
      "type": "object",
      "properties": {
        "stale": {
          "type": "boolean"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "age_limit",
            "host_failures",
            "invalid_timestamp",
            null
          ]
        },
        "maxAgeHours": {
          "type": "integer",
          "minimum": 0
        },
        "recheckRecommended": {
          "type": "boolean"
        },
        "hostEvidence": {
          "type": "object",
          "properties": {
            "observedAt": {
              "type": "string",
              "format": "date-time"
            },
            "attempted": {
              "type": "integer",
              "minimum": 0
            },
            "unreachable": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "observedAt",
            "attempted",
            "unreachable"
          ],
          "additionalProperties": true
        }
      },
      "required": [
        "stale",
        "reason",
        "maxAgeHours",
        "recheckRecommended"
      ],
      "additionalProperties": true
    },
    "lastObservation": {
      "type": "object",
      "properties": {
        "live": {
          "type": "boolean"
        },
        "score": {
          "type": "number"
        },
        "verdict": {
          "type": "string",
          "enum": [
            "safe",
            "caution",
            "avoid",
            "unknown"
          ]
        }
      },
      "required": [
        "live",
        "score",
        "verdict"
      ],
      "additionalProperties": true
    },
    "advice": {
      "type": "string"
    },
    "escalation": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "recommended": {
          "type": "boolean"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "liveCheck": {
          "type": "string"
        },
        "priceUsd": {
          "type": "number"
        }
      },
      "additionalProperties": true
    },
    "ts": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "endpoint",
    "known",
    "verdict",
    "band",
    "trustScoreVersion",
    "advice",
    "ts"
  ],
  "additionalProperties": true
}