{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/steamgpt-net/json-schema/steamgpt-net-faceit-schema.json",
  "title": "Faceit",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/steamgpt-net-faceit-api-openapi.yml#/components/schemas/Faceit",
  "type": "object",
  "properties": {
    "result": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "data": {
      "$ref": "#/$defs/FaceitData"
    }
  },
  "$defs": {
    "FaceitData": {
      "type": "object",
      "properties": {
        "steamid64": {
          "type": "string"
        },
        "faceit": {
          "type": [
            "object",
            "null"
          ],
          "description": "FACEIT API player object (nickname, country, games.{cs2|csgo}.skill_level / faceit_elo, ...)",
          "additionalProperties": true
        },
        "bans": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "provenance": {
          "type": "object",
          "properties": {
            "faceit": {
              "$ref": "#/$defs/SourceProvenance"
            }
          }
        }
      }
    },
    "SourceProvenance": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "retrieved_at": {
          "type": [
            "integer",
            "null"
          ],
          "description": "unixtime of the cached snapshot"
        },
        "age_seconds": {
          "type": [
            "integer",
            "null"
          ],
          "description": "snapshot age at response time"
        },
        "fresh": {
          "type": "boolean",
          "description": "age within cache_ttl; false when unknown"
        },
        "cache_ttl": {
          "type": [
            "integer",
            "null"
          ],
          "description": "refresh policy in seconds"
        },
        "refreshed_with": {
          "type": "string",
          "description": "steam_bans only: bans refresh together with this source snapshot"
        }
      }
    }
  }
}