{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-arena-matches-response200-application-json-schema.json",
  "title": "GetApiArenaMatchesResponse200ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-arena-matches-api-openapi.yml#/components/schemas/GetApiArenaMatchesResponse200ApplicationJson",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "number"
      },
      "prompt": {
        "type": "string"
      },
      "winnerId": {
        "type": "string"
      },
      "winnerLabel": {
        "type": "string"
      },
      "winnerScore": {
        "type": "number"
      },
      "judgeReasoning": {
        "type": "string"
      },
      "results": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "modelId": {
              "type": "string"
            },
            "modelLabel": {
              "type": "string"
            },
            "score": {
              "type": "number"
            },
            "output": {
              "type": "string"
            },
            "responseTime": {
              "type": "number"
            },
            "tokenCount": {
              "type": "number"
            },
            "cost": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "number"
                }
              ]
            },
            "costConfidence": {
              "oneOf": [
                {
                  "type": "string",
                  "enum": [
                    "unknown"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "verified"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "estimated"
                  ]
                }
              ]
            },
            "costRecordId": {
              "type": "number"
            },
            "costSource": {
              "type": "string"
            },
            "modelCallId": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "modelId",
            "modelLabel",
            "score",
            "output",
            "responseTime",
            "tokenCount",
            "cost",
            "costConfidence"
          ]
        }
      },
      "scores": {
        "type": "object",
        "additionalProperties": {
          "type": "number"
        }
      },
      "metadata": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/$defs/JsonValue"
        }
      },
      "organizationId": {
        "$ref": "#/$defs/OrganizationId"
      },
      "createdBy": {
        "type": "string"
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      }
    },
    "additionalProperties": false,
    "required": [
      "id",
      "prompt",
      "winnerId",
      "winnerLabel",
      "winnerScore",
      "judgeReasoning",
      "results",
      "scores",
      "metadata",
      "organizationId",
      "createdBy",
      "createdAt"
    ]
  },
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    },
    "OrganizationId": {
      "type": "string",
      "format": "uuid"
    }
  }
}