full diff

place.stream.badge.defs

stream.place +0 −0
From
bafyreidhldtcylff7awx67jd76miapjz3q4gumtq24opaaw345vznvftwm indexed 2026-11-04 01:29 UTC View this version
To
bafyreidhldtcylff7awx67jd76miapjz3q4gumtq24opaaw345vznvftwm indexed 2026-11-04 01:29 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "badgeIssuanceView": {
55 "description": "A resolved view of a badge issuance, including def fields for display.",
66 "properties": {
77 "badgeType": {
88 "knownValues": [
99 "place.stream.badge.defs#vip",
1010 "place.stream.badge.defs#event"
1111 ],
1212 "type": "string"
1313 },
1414 "description": {
1515 "description": "Description from the badge definition.",
1616 "type": "string"
1717 },
1818 "imageUrl": {
1919 "description": "Resolved image URL for the badge icon.",
2020 "format": "uri",
2121 "type": "string"
2222 },
2323 "issuanceCid": {
2424 "description": "CID of the place.stream.badge.issuance record.",
2525 "type": "string"
2626 },
2727 "issuanceUri": {
2828 "description": "AT URI of the place.stream.badge.issuance record.",
2929 "format": "at-uri",
3030 "type": "string"
3131 },
3232 "issuer": {
3333 "description": "DID of the badge issuer.",
3434 "format": "did",
3535 "type": "string"
3636 },
3737 "name": {
3838 "description": "Display name from the badge definition.",
3939 "type": "string"
4040 },
4141 "selected": {
4242 "description": "Whether this badge is currently in the user's chat profile selection.",
4343 "type": "boolean"
4444 }
4545 },
4646 "required": [
4747 "issuanceUri",
4848 "badgeType",
4949 "issuer"
5050 ],
5151 "type": "object"
5252 },
5353 "badgeSlot": {
5454 "description": "A display slot containing available issuance-based badges and which one (if any) is currently selected.",
5555 "properties": {
5656 "available": {
5757 "description": "All badges available for this slot.",
5858 "items": {
5959 "ref": "#badgeIssuanceView",
6060 "type": "ref"
6161 },
6262 "type": "array"
6363 },
6464 "selected": {
6565 "description": "The currently selected badge in this slot, if any.",
6666 "ref": "#badgeIssuanceView",
6767 "type": "ref"
6868 }
6969 },
7070 "required": [
7171 "available"
7272 ],
7373 "type": "object"
7474 },
7575 "badgeView": {
7676 "description": "View of a badge record, with fields resolved for display. If the DID in issuer is not the current streamplace node, the signature field shall be required.",
7777 "properties": {
7878 "badgeType": {
7979 "knownValues": [
8080 "place.stream.badge.defs#mod",
8181 "place.stream.badge.defs#streamer",
8282 "place.stream.badge.defs#vip",
8383 "place.stream.badge.defs#event",
8484 "place.stream.badge.defs#bot"
8585 ],
8686 "type": "string"
8787 },
8888 "description": {
8989 "description": "Description from the badge definition.",
9090 "type": "string"
9191 },
9292 "imageUrl": {
9393 "description": "Resolved image URL for the badge icon.",
9494 "format": "uri",
9595 "type": "string"
9696 },
9797 "issuer": {
9898 "description": "DID of the badge issuer.",
9999 "format": "did",
100100 "type": "string"
101101 },
102102 "name": {
103103 "description": "Display name from the badge definition.",
104104 "type": "string"
105105 },
106106 "recipient": {
107107 "description": "DID of the badge recipient.",
108108 "format": "did",
109109 "type": "string"
110110 },
111111 "signature": {
112112 "description": "TODO: Cryptographic signature of the badge (of a place.stream.key).",
113113 "type": "string"
114114 }
115115 },
116116 "required": [
117117 "badgeType",
118118 "issuer",
119119 "recipient"
120120 ],
121121 "type": "object"
122122 },
123123 "bot": {
124124 "description": "This user is a bot. Self-applied via place.stream.chat.profile selfLabels.",
125125 "type": "token"
126126 },
127127 "event": {
128128 "description": "This user has won or earned a special event or contest badge.",
129129 "type": "token"
130130 },
131131 "mod": {
132132 "description": "This user is a moderator. Displayed with a sword icon.",
133133 "type": "token"
134134 },
135135 "streamer": {
136136 "description": "This user is the streamer. Displayed with a star icon.",
137137 "type": "token"
138138 },
139139 "vip": {
140140 "description": "This user is a very important person.",
141141 "type": "token"
142142 }
143143 },
144144 "id": "place.stream.badge.defs",
145145 "lexicon": 1
146146}