{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/steamgpt-net/json-schema/steamgpt-net-friends-schema.json",
  "title": "Friends",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/steamgpt-net-friends-api-openapi.yml#/components/schemas/Friends",
  "type": "object",
  "properties": {
    "result": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "data": {
      "$ref": "#/$defs/FriendsData"
    }
  },
  "$defs": {
    "FriendsData": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "description": "total known friends (may exceed shown list)"
        },
        "friends": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "string",
                "description": "detail=short: plain steamid64"
              },
              {
                "type": "object",
                "description": "detail=medium",
                "properties": {
                  "steamid64": {
                    "type": "string"
                  },
                  "personaname": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "description": "detail=full (default)",
                "properties": {
                  "steamid64": {
                    "type": "string"
                  },
                  "steam": {
                    "$ref": "#/$defs/SteamPlayer"
                  }
                }
              }
            ]
          }
        }
      }
    },
    "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
    }
  }
}