{
"id": "place.stream.badge.getIssuedBadges",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"streamer",
"user"
],
"properties": {
"user": {
"ref": "place.stream.badge.defs#badgeSlot",
"type": "ref",
"description": "Globally-issued cosmetic badges (e.g. event) available to the user."
},
"server": {
"ref": "place.stream.badge.defs#badgeView",
"type": "ref",
"description": "Computed server badge (streamer, mod, or bot) for the given streamer context. Absent if the user has no server role."
},
"streamer": {
"ref": "place.stream.badge.defs#badgeSlot",
"type": "ref",
"description": "Streamer-issued badges (e.g. VIP) available to the user."
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"streamer": {
"type": "string",
"format": "did",
"description": "DID of the streamer channel to compute the server badge against."
}
}
},
"description": "Returns badges issued to the authenticated user, organized by display slot. Also indicates which badges are currently selected in the user's chat profile."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}