{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get valid badges for the authenticated user, optionally in the context of a specific streamer's chat",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "badges": {
              "items": {
                "ref": "place.stream.badge.defs#badgeView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "badges"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "streamer": {
            "description": "Optional DID of the streamer for context-specific badges (mod, vip, etc)",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "place.stream.badge.getValidBadges",
  "lexicon": 1
}
