{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumify-ai/json-schema/lumify-ai-resolve-event-response-schema.json",
  "title": "ResolveEventResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumify-ai-openapi.json#/components/schemas/ResolveEventResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status",
      "description": "resolved | ambiguous | not_found | error"
    },
    "event_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Event Id",
      "description": "Set only when status is resolved."
    },
    "sport": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sport"
    },
    "league": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "League"
    },
    "event_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Event Status",
      "description": "scheduled | final | …"
    },
    "starts_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Starts At",
      "description": "ISO 8601 kickoff."
    },
    "home_team": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Home Team"
    },
    "away_team": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Away Team"
    },
    "confidence": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Confidence"
    },
    "match_reasons": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Match Reasons"
    },
    "clues_used": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Clues Used"
    },
    "method": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Method",
      "description": "event_id | player_window | player_team_window | team_window | matchup_window."
    },
    "participant_conflict": {
      "type": "boolean",
      "title": "Participant Conflict",
      "description": "True when event_id conflicts with an explicit player/team clue or date window.",
      "default": false
    },
    "candidates": {
      "items": {
        "$ref": "#/$defs/ResolveEventCandidate"
      },
      "type": "array",
      "title": "Candidates",
      "description": "Plausible events when ambiguous."
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Message"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "status"
  ],
  "$defs": {
    "ResolveEventCandidate": {
      "properties": {
        "event_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Event Id"
        },
        "sport": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sport"
        },
        "league": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "League"
        },
        "event_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Event Status",
          "description": "scheduled | final | …"
        },
        "starts_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Starts At",
          "description": "ISO 8601 kickoff."
        },
        "home_team": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Home Team"
        },
        "away_team": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Away Team"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "match_reasons": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Match Reasons"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "ResolveEventCandidate"
    }
  }
}