{
  "protocol": "NotifyBadges",
  "imports": [
    {
      "path": "common.avdl",
      "type": "idl"
    }
  ],
  "types": [
    {
      "type": "record",
      "name": "ChatConversationID",
      "fields": [],
      "typedef": "bytes"
    },
    {
      "type": "record",
      "name": "BadgeState",
      "fields": [
        {
          "type": "int",
          "name": "newTlfs",
          "lint": "ignore"
        },
        {
          "type": "int",
          "name": "rekeysNeeded"
        },
        {
          "type": "int",
          "name": "newFollowers"
        },
        {
          "type": {
            "type": "array",
            "items": "BadgeConversationInfo"
          },
          "name": "conversations"
        }
      ]
    },
    {
      "type": "record",
      "name": "BadgeConversationInfo",
      "fields": [
        {
          "type": "ChatConversationID",
          "name": "convID"
        },
        {
          "type": "int",
          "name": "UnreadMessages",
          "lint": "ignore"
        }
      ]
    }
  ],
  "messages": {
    "badgeState": {
      "request": [
        {
          "name": "badgeState",
          "type": "BadgeState"
        }
      ],
      "response": null,
      "notify": ""
    }
  },
  "namespace": "keybase.1"
}