{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/steamgpt-net/json-schema/steamgpt-net-batch-schema.json",
  "title": "Batch",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/steamgpt-net-openapi.json#/components/schemas/Batch",
  "type": "object",
  "properties": {
    "result": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "data": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        },
        "players": {
          "type": "array",
          "items": {
            "type": "object",
            "description": "batch entry: no canonical/provenance; faceit and steam_bans appear only with include",
            "properties": {
              "steamid64": {
                "type": "string"
              },
              "ids": {
                "$ref": "#/$defs/Ids"
              },
              "steam": {
                "$ref": "#/$defs/SteamPlayer"
              },
              "faceit": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": true
              },
              "faceit_bans": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "steam_bans": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": true
              }
            }
          }
        },
        "not_found": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "valid steamid64 not found in cache"
        },
        "invalid": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "inputs that are not steamid64 (sanitized echo)"
        }
      }
    }
  },
  "$defs": {
    "Ids": {
      "type": "object",
      "description": "All SteamID representations of the player",
      "properties": {
        "steamid64": {
          "type": "string"
        },
        "steamid": {
          "type": [
            "string",
            "null"
          ]
        },
        "steamid3": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "SteamPlayer": {
      "type": [
        "object",
        "null"
      ],
      "description": "Raw Steam GetPlayerSummaries player object, unmodified field names",
      "properties": {
        "steamid": {
          "type": "string"
        },
        "personaname": {
          "type": "string"
        },
        "profileurl": {
          "type": "string"
        },
        "avatar": {
          "type": "string"
        },
        "avatarmedium": {
          "type": "string"
        },
        "avatarfull": {
          "type": "string"
        },
        "personastate": {
          "type": "integer",
          "description": "0 offline, 1 online, 2 busy, 3 away, 4 snooze, 5 looking to trade, 6 looking to play"
        },
        "communityvisibilitystate": {
          "type": "integer",
          "description": "3 = public"
        },
        "timecreated": {
          "type": "integer",
          "description": "unixtime"
        },
        "lastlogoff": {
          "type": "integer",
          "description": "unixtime"
        },
        "gameextrainfo": {
          "type": "string"
        },
        "loccountrycode": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}