{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pulsefeed-dev/json-schema/pulsefeed-dev-trust-history-schema.json",
  "title": "TrustHistory",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pulsefeed-dev-openapi.json#/components/schemas/TrustHistory",
  "type": "object",
  "properties": {
    "endpoint": {
      "type": "string"
    },
    "known": {
      "type": "boolean"
    },
    "firstSeen": {
      "type": "string",
      "format": "date-time"
    },
    "lastChecked": {
      "type": "string",
      "format": "date-time"
    },
    "trackedDays": {
      "type": "integer",
      "minimum": 0
    },
    "observations": {
      "type": "integer",
      "minimum": 0
    },
    "uptime": {
      "type": "object",
      "properties": {
        "pct": {
          "type": [
            "number",
            "null"
          ]
        },
        "observations": {
          "type": "integer",
          "minimum": 0
        },
        "confidence": {
          "type": "string"
        },
        "externalPct30d": {
          "type": [
            "number",
            "null"
          ]
        },
        "currentlyLive": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "additionalProperties": true
    },
    "receiver": {
      "type": "object",
      "properties": {
        "current": {
          "type": [
            "string",
            "null"
          ]
        },
        "changes": {
          "type": "integer",
          "minimum": 0
        },
        "distinct": {
          "type": "integer",
          "minimum": 0
        },
        "stability": {
          "type": "string"
        },
        "onchainProfile": {
          "type": [
            "string",
            "null"
          ]
        },
        "timeline": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "t": {
                "type": "string",
                "format": "date-time"
              },
              "v": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    },
    "price": {
      "type": "object",
      "properties": {
        "currentUsd": {
          "type": [
            "number",
            "null"
          ]
        },
        "direction": {
          "type": "string"
        },
        "changePct": {
          "type": [
            "number",
            "null"
          ]
        },
        "timeline": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "t": {
                "type": "string",
                "format": "date-time"
              },
              "v": {
                "type": "number"
              }
            },
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    },
    "verdictTimeline": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "t": {
            "type": "string",
            "format": "date-time"
          },
          "v": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "trustScore": {
      "type": [
        "number",
        "null"
      ]
    },
    "riskLevel": {
      "type": "string"
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "note": {
      "type": "string"
    },
    "ts": {
      "type": "string",
      "format": "date-time"
    },
    "freshness": {
      "$ref": "#/$defs/Freshness"
    }
  },
  "required": [
    "endpoint",
    "known",
    "note",
    "ts"
  ],
  "additionalProperties": true,
  "$defs": {
    "Freshness": {
      "type": "object",
      "properties": {
        "lastCrawl": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "dataAgeHours": {
          "type": [
            "number",
            "null"
          ]
        },
        "stale": {
          "type": "boolean"
        },
        "staleNotice": {
          "type": "string"
        }
      },
      "required": [
        "lastCrawl",
        "dataAgeHours",
        "stale"
      ],
      "additionalProperties": true
    }
  }
}