{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aixbt-tech/json-schema/aixbt-tech-momentum-context-schema.json",
  "title": "MomentumContext",
  "description": "Momentum and leaderboard stability context. Present when project insights are available.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aixbt-tech-v2-openapi.yaml#/components/schemas/MomentumContext",
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "trendTrajectory": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "rising",
        "decaying",
        "stable",
        "new"
      ],
      "description": "24h canonical trend-score direction"
    },
    "distinctClusters": {
      "type": [
        "integer",
        "null"
      ]
    },
    "peakRank48h": {
      "type": [
        "integer",
        "null"
      ]
    },
    "bestRank14d": {
      "type": [
        "integer",
        "null"
      ]
    },
    "rankedSince": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "leaderboard": {
      "type": "object",
      "properties": {
        "top10": {
          "$ref": "#/$defs/TopListContext"
        },
        "top25": {
          "$ref": "#/$defs/TopListContext"
        }
      }
    }
  },
  "$defs": {
    "TopListContext": {
      "type": "object",
      "properties": {
        "enteredAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "currentHours": {
          "type": [
            "integer",
            "null"
          ]
        },
        "wasYesterday": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "entryCount24h": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Entries into this band in the last 24h (>1 = volatile)"
        },
        "stabilityLabel": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "flash",
            "fresh",
            "persistent",
            "durable"
          ],
          "description": "flash (<2h), fresh (2-6h), persistent (6-24h), durable (>=24h)"
        }
      }
    }
  }
}