{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-events-response-schema.json",
  "title": "EventsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-odds-api-openapi.yml#/components/schemas/EventsResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/EventSummary"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/EventsMeta"
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "data",
    "meta"
  ],
  "$defs": {
    "EventSummary": {
      "properties": {
        "away_team": {
          "type": "string"
        },
        "away_team_id": {
          "description": "Stable roster id for `away_team`; same rules.",
          "type": "string"
        },
        "commence_time": {
          "type": "string"
        },
        "country_code": {
          "type": "string"
        },
        "eventId": {
          "description": "Formatted event ID for use with history endpoints.",
          "type": "string"
        },
        "home_team": {
          "type": "string"
        },
        "home_team_id": {
          "description": "Stable roster id for `home_team`, absent when the name is not on a roster\nwe carry. Same values as {@link OddsEvent.home_team_id}.",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "league": {
          "type": "string"
        },
        "sport_key": {
          "type": "string"
        },
        "sport_title": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/GameStatus"
        }
      },
      "type": "object",
      "x-owls-required": [
        "id",
        "sport_key",
        "commence_time",
        "home_team",
        "away_team"
      ]
    },
    "EventsMeta": {
      "properties": {
        "available_leagues": {
          "description": "Every league value present for this sport, before any `league` filter.\n\nUse it to discover valid `league` values instead of guessing them, and to\ntell a filter that matched nothing from a genuinely empty slate: a\nnon-empty `available_leagues` with `event_count: 0` means the filter missed.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "event_count": {
          "format": "double",
          "type": "number"
        },
        "freshness": {
          "$ref": "#/$defs/OddsFreshness"
        },
        "league": {
          "description": "The `league` filter that was applied, echoed back.",
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "sport_key": {
          "type": "string"
        },
        "timestamp": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "sport",
        "sport_key",
        "timestamp",
        "event_count",
        "freshness"
      ]
    },
    "GameStatus": {
      "type": "string",
      "x-extensible-enum": [
        "cancelled",
        "final",
        "live",
        "postponed",
        "scheduled"
      ]
    },
    "OddsFreshness": {
      "properties": {
        "ageSeconds": {
          "format": "double",
          "type": "number"
        },
        "droppedAsFinished": {
          "description": "Events dropped because the match was confirmed finished (realtime only).",
          "format": "double",
          "type": "number"
        },
        "droppedAsStale": {
          "description": "Events dropped because their scheduled start is older than the sport's\nmax plausible live duration — a source-independent staleness guard\n(realtime only).",
          "format": "double",
          "type": "number"
        },
        "stale": {
          "type": "boolean"
        }
      },
      "type": "object",
      "x-owls-required": [
        "ageSeconds",
        "stale"
      ]
    }
  }
}