{
"id": "tech.waow.brand.defs",
"defs": {
"colors": {
"type": "object",
"properties": {
"primary": {
"type": "string",
"maxLength": 7
},
"background": {
"type": "string",
"maxLength": 7
},
"foreground": {
"type": "string",
"maxLength": 7
}
},
"description": "Brand colors as sRGB hex, '#rrggbb'. Shared by the declaration record and the views that render it."
},
"authority": {
"type": "object",
"required": [
"domain",
"did",
"uri"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"domain": {
"type": "string",
"maxLength": 253,
"description": "The domain whose _lexicon TXT record names the declaring DID."
}
},
"description": "Who declared a brand, and where they said it. Present only on a declared response."
},
"brandView": {
"type": "object",
"required": [
"namespace",
"matched",
"source",
"icon"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"icon": {
"type": "string",
"maxLength": 8192,
"description": "URL for the icon: an https URL, or a data: URI when generated."
},
"name": {
"type": "string",
"maxLength": 128
},
"colors": {
"ref": "tech.waow.brand.defs#colors",
"type": "ref"
},
"source": {
"type": "string",
"maxLength": 32,
"description": "Who chose this. 'declared': the namespace's lexicon authority, in a record. 'borrowed': the reverse-DNS domain's atproto account avatar, chosen for that account rather than for this namespace. 'curated': the responding service's own table. 'generated': nobody, a deterministic monogram.",
"knownValues": [
"declared",
"borrowed",
"curated",
"generated"
]
},
"matched": {
"type": "string",
"maxLength": 317,
"description": "The namespace that actually answered: this one, or a shorter prefix it inherits from."
},
"wordmark": {
"type": "string",
"maxLength": 8192
},
"authority": {
"ref": "tech.waow.brand.defs#authority",
"type": "ref"
},
"namespace": {
"type": "string",
"maxLength": 317,
"description": "The namespace that was asked for."
},
"iconSource": {
"type": "string",
"maxLength": 32,
"description": "Present only when the icon comes from a lower tier than the rest of the response, e.g. a declaration that omitted an icon. The icon never inherits the declaration's authority.",
"knownValues": [
"declared",
"borrowed",
"curated",
"generated"
]
},
"description": {
"type": "string",
"maxLength": 512
}
},
"description": "Resolved brand assets for one namespace."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}