{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumify-ai/json-schema/lumify-ai-resolve-team-response-schema.json",
  "title": "ResolveTeamResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumify-ai-openapi.json#/components/schemas/ResolveTeamResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status",
      "description": "resolved | ambiguous | not_found | error"
    },
    "team_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Id",
      "description": "Set only when status is resolved."
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name",
      "description": "Catalog display name."
    },
    "sport": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sport",
      "description": "Resolved sport slug."
    },
    "league": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "League",
      "description": "Resolved league slug."
    },
    "abbreviation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Abbreviation",
      "description": "Catalog abbreviation."
    },
    "confidence": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Confidence",
      "description": "Auto-resolve confidence."
    },
    "match_reasons": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Match Reasons",
      "description": "Why the unique bind matched."
    },
    "clues_used": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Clues Used",
      "description": "Clue fields that were supplied."
    },
    "method": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Method",
      "description": "Kernel match method (abbreviation, nickname, alias, metro, …)."
    },
    "sport_conflict": {
      "type": "boolean",
      "title": "Sport Conflict",
      "description": "True when a ground-truth id/slug disagrees with an explicit sport or league clue.",
      "default": false
    },
    "candidates": {
      "items": {
        "$ref": "#/$defs/ResolveTeamCandidate"
      },
      "type": "array",
      "title": "Candidates",
      "description": "Plausible teams when status is ambiguous."
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Message",
      "description": "Human-readable status note."
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "status"
  ],
  "$defs": {
    "ResolveTeamCandidate": {
      "properties": {
        "team_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Id",
          "description": "Lumify team id."
        },
        "display_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Display Name",
          "description": "Catalog display name."
        },
        "sport": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sport",
          "description": "Sport slug."
        },
        "league": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "League",
          "description": "League slug."
        },
        "abbreviation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Abbreviation",
          "description": "Catalog abbreviation."
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence",
          "description": "Per-candidate confidence."
        },
        "match_reasons": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Match Reasons",
          "description": "Why this candidate matched."
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "ResolveTeamCandidate"
    }
  }
}