{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pulsefeed-dev/json-schema/pulsefeed-dev-data-preview-schema.json",
  "title": "DataPreview",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pulsefeed-dev-openapi.json#/components/schemas/DataPreview",
  "type": "object",
  "properties": {
    "product": {
      "type": "string"
    },
    "tagline": {
      "type": "string"
    },
    "priceUsd": {
      "type": "number"
    },
    "paidEndpoint": {
      "type": "string"
    },
    "coverage": {
      "$ref": "#/$defs/Coverage"
    },
    "coverageFieldSemantics": {
      "$ref": "#/$defs/CoverageFieldSemantics"
    },
    "receiverCoverage": {
      "$ref": "#/$defs/ReceiverCoverage"
    },
    "schema": {
      "type": "object",
      "properties": {},
      "additionalProperties": true
    },
    "sampleX402Service": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "network": {
          "type": [
            "string",
            "null"
          ]
        },
        "priceUsd": {
          "type": [
            "number",
            "null"
          ]
        },
        "live": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "verdict": {
          "type": "string",
          "enum": [
            "safe",
            "caution",
            "avoid",
            "unknown"
          ]
        },
        "band": {
          "type": "string",
          "enum": [
            "verified",
            "trusted",
            "caution",
            "avoid",
            "unknown"
          ]
        },
        "trustScore": {
          "type": [
            "number",
            "null"
          ]
        },
        "riskLevel": {
          "type": "string"
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "receiver": {
          "type": "object",
          "properties": {
            "current": {
              "type": [
                "string",
                "null"
              ]
            },
            "payToHistory": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {},
                "additionalProperties": true
              }
            },
            "priceHistory": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {},
                "additionalProperties": true
              }
            },
            "onchainProfile": {
              "type": [
                "string",
                "null"
              ]
            },
            "usdcBalance": {
              "type": [
                "string",
                "null"
              ]
            },
            "stability": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "additionalProperties": true
        },
        "uptimePct": {
          "type": [
            "number",
            "null"
          ]
        },
        "observations": {
          "type": "integer",
          "minimum": 0
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lastChecked": {
          "type": "string",
          "format": "date-time"
        },
        "firstSeen": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "url",
        "domain",
        "live",
        "verdict",
        "trustScore",
        "flags",
        "receiver"
      ],
      "additionalProperties": true
    },
    "sampleIncident": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "high",
            "medium"
          ]
        },
        "at": {
          "type": "string",
          "format": "date-time"
        },
        "endpoint": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "evidence": {
          "type": "object",
          "properties": {
            "flags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "onchain": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "address": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            },
            "payTo": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "additionalProperties": true
        },
        "share": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "category",
        "severity",
        "at",
        "endpoint",
        "title",
        "detail",
        "evidence"
      ],
      "additionalProperties": true
    },
    "license": {
      "type": "string"
    },
    "ts": {
      "type": "string",
      "format": "date-time"
    },
    "generated": {
      "type": "string",
      "format": "date-time",
      "description": "Response time added on a preview cache hit; omitted on the initial response. ts is the cached preview observation time."
    }
  },
  "required": [
    "product",
    "priceUsd",
    "paidEndpoint",
    "coverage",
    "schema",
    "license",
    "ts"
  ],
  "additionalProperties": true,
  "$defs": {
    "Coverage": {
      "type": "object",
      "properties": {
        "x402EndpointsTracked": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "x402ServicesTracked": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "deprecated": true,
          "description": "Legacy alias of x402EndpointsTracked; unit is endpoint records, not unique services."
        },
        "x402LiveEndpoints": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "x402LiveServices": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "x402PayableEndpoints": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "x402PayableServices": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "x402Returned": {
          "type": "integer",
          "minimum": 0
        },
        "mcpReturned": {
          "type": "integer",
          "minimum": 0
        },
        "incidentsReturned": {
          "type": "integer",
          "minimum": 0
        },
        "mcpServersAudited": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "activeIncidents": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": true
    },
    "CoverageFieldSemantics": {
      "type": "object",
      "properties": {
        "x402EndpointsTracked": {
          "type": "object",
          "properties": {
            "unit": {
              "type": "string"
            },
            "description": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "x402ServicesTracked": {
          "type": "object",
          "properties": {
            "deprecated": {
              "type": "boolean"
            },
            "aliasOf": {
              "type": "string"
            },
            "unit": {
              "type": "string"
            },
            "description": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "x402LiveEndpoints": {
          "type": "object",
          "properties": {
            "unit": {
              "type": "string"
            },
            "description": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "x402LiveServices": {
          "type": "object",
          "properties": {
            "unit": {
              "type": "string"
            },
            "description": {
              "type": "string"
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "ReceiverCoverage": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "cached"
            ]
          },
          "network": {
            "type": "string"
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "limitations": {
            "type": "string"
          }
        },
        "required": [
          "mode",
          "network",
          "checks",
          "limitations"
        ],
        "additionalProperties": true
      }
    }
  }
}