{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/steamgpt-net/json-schema/steamgpt-net-bans-schema.json",
  "title": "Bans",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/steamgpt-net-openapi.json#/components/schemas/Bans",
  "type": "object",
  "properties": {
    "result": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "data": {
      "type": "object",
      "properties": {
        "steamid64": {
          "type": "string"
        },
        "bans": {
          "type": "object",
          "description": "Raw Steam GetPlayerBans object",
          "properties": {
            "SteamId": {
              "type": "string"
            },
            "CommunityBanned": {
              "type": "boolean"
            },
            "VACBanned": {
              "type": "boolean"
            },
            "NumberOfVACBans": {
              "type": "integer"
            },
            "DaysSinceLastBan": {
              "type": "integer"
            },
            "NumberOfGameBans": {
              "type": "integer"
            },
            "EconomyBan": {
              "type": "string"
            }
          }
        },
        "provenance": {
          "type": "object",
          "properties": {
            "steam_bans": {
              "$ref": "#/$defs/SourceProvenance"
            }
          }
        }
      }
    }
  },
  "$defs": {
    "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"
        }
      }
    }
  }
}