Skip to content

place.stream.chat.profile

Lexicon Version: 1

Type: record

Record containing customizations for a user’s chat profile.

Record Key: literal:self

Record Properties:

NameTypeReq’dDescriptionConstraints
color#color
selfLabelsArray of #selfLabelSelf-applied labels for this profile, e.g. ‘bot’.Max Items: 10
badges#badgeSelectionsBadge selections for display in chat.

Type: object

Selected badges for display in chat, organized by slot.

Properties:

NameTypeReq’dDescriptionConstraints
streamerArray of #streamerBadgeSelectionSelected streamer-issued badges, one per streamer channel.Max Items: 20
globalcom.atproto.repo.strongRefSelected globally-issued badge (e.g. event badge).

Type: object

A selected badge for a specific streamer’s channel.

Properties:

NameTypeReq’dDescriptionConstraints
streamerstringDID of the streamer whose channel this selection applies to.Format: did
badgecom.atproto.repo.strongRefStrong reference to the selected place.stream.badge.issuance record.

Type: string

Label that a user can apply to their own profile.

Constraints:
Known Values: bot


Type: object

Customizations for the color of a user’s name in chat

Properties:

NameTypeReq’dDescriptionConstraints
redintegerMin: 0
Max: 255
greenintegerMin: 0
Max: 255
blueintegerMin: 0
Max: 255

{
"lexicon": 1,
"id": "place.stream.chat.profile",
"defs": {
"main": {
"type": "record",
"description": "Record containing customizations for a user's chat profile.",
"key": "literal:self",
"record": {
"type": "object",
"required": [],
"properties": {
"color": {
"type": "ref",
"ref": "#color"
},
"selfLabels": {
"type": "array",
"description": "Self-applied labels for this profile, e.g. 'bot'.",
"maxLength": 10,
"items": {
"type": "ref",
"ref": "#selfLabel"
}
},
"badges": {
"type": "ref",
"ref": "#badgeSelections",
"description": "Badge selections for display in chat."
}
}
}
},
"badgeSelections": {
"type": "object",
"description": "Selected badges for display in chat, organized by slot.",
"properties": {
"streamer": {
"type": "array",
"description": "Selected streamer-issued badges, one per streamer channel.",
"maxLength": 20,
"items": {
"type": "ref",
"ref": "#streamerBadgeSelection"
}
},
"global": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "Selected globally-issued badge (e.g. event badge)."
}
}
},
"streamerBadgeSelection": {
"type": "object",
"description": "A selected badge for a specific streamer's channel.",
"required": ["streamer", "badge"],
"properties": {
"streamer": {
"type": "string",
"format": "did",
"description": "DID of the streamer whose channel this selection applies to."
},
"badge": {
"type": "ref",
"ref": "com.atproto.repo.strongRef",
"description": "Strong reference to the selected place.stream.badge.issuance record."
}
}
},
"selfLabel": {
"type": "string",
"description": "Label that a user can apply to their own profile.",
"knownValues": ["bot"]
},
"color": {
"type": "object",
"description": "Customizations for the color of a user's name in chat",
"required": ["red", "green", "blue"],
"properties": {
"red": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"green": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"blue": {
"type": "integer",
"minimum": 0,
"maximum": 255
}
}
}
}
}