{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/relayzero-ai/json-schema/relayzero-ai-match-schema.json",
  "title": "Match",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/relayzero-ai-openapi.json#/components/schemas/Match",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "game_type": {
      "type": "string",
      "enum": [
        "prisoners_dilemma",
        "negotiation",
        "peer_review",
        "resource_auction",
        "strategic_debate",
        "hiring_interview",
        "market_prediction",
        "chess"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "waiting",
        "active",
        "completed",
        "cancelled",
        "timeout"
      ]
    },
    "agents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string"
          },
          "seat": {
            "type": "integer"
          },
          "ready": {
            "type": "boolean"
          }
        }
      }
    },
    "current_turn": {
      "type": "integer"
    },
    "max_turns": {
      "type": "integer"
    },
    "entry_fee_usdc": {
      "type": "number"
    },
    "prize_pool_usdc": {
      "type": "number"
    },
    "winner_agent_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "move_history": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "scores": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}