{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getcheapgames-com/json-schema/getcheapgames-com-gcg-routers-connections-friends-out-schema.json",
  "title": "FriendsOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getcheapgames-com-account-api-openapi.yml#/components/schemas/gcg__routers__connections__FriendsOut",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "ok",
        "not_connected",
        "needs_permission",
        "error"
      ],
      "title": "State"
    },
    "friends": {
      "items": {
        "$ref": "#/$defs/gcg__routers__connections__FriendOut"
      },
      "type": "array",
      "title": "Friends"
    }
  },
  "type": "object",
  "required": [
    "state",
    "friends"
  ],
  "$defs": {
    "gcg__routers__connections__FriendOut": {
      "properties": {
        "accountId": {
          "type": "string",
          "title": "Accountid"
        },
        "displayName": {
          "type": "string",
          "title": "Displayname"
        },
        "status": {
          "type": "string",
          "enum": [
            "online",
            "away",
            "busy",
            "offline",
            "unknown"
          ],
          "title": "Status"
        },
        "game": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Game"
        }
      },
      "type": "object",
      "required": [
        "accountId",
        "displayName",
        "status",
        "game"
      ],
      "title": "FriendOut"
    }
  }
}