app.tempomusic.richtext.facet
Annotation of a sub-string within text. Features describe the meaning of the annotated range: mention, link, tag, or inline music reference.
Details · object
| Kind | object |
|---|---|
| Authority | richtext.tempomusic.app |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"byteSlice": {
"description": "Specifies the sub-string range a facet annotates. Indices are zero-indexed byte offsets, inclusive of byteStart and exclusive of byteEnd, against the UTF-8 encoding of the text field.",
"properties": {
"byteEnd": {
"minimum": 0,
"type": "integer"
},
"byteStart": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"byteStart",
"byteEnd"
],
"type": "object"
},
"link": {
"description": "Facet feature for an external URL embedded inline in text.",
"properties": {
"uri": {
"format": "uri",
"type": "string"
}
},
"required": [
"uri"
],
"type": "object"
},
"main": {
"description": "Annotation of a sub-string within text. Features describe the meaning of the annotated range: mention, link, tag, or inline music reference.",
"properties": {
"features": {
"items": {
"refs": [
"#mention",
"#link",
"#tag",
"#music"
],
"type": "union"
},
"type": "array"
},
"index": {
"ref": "#byteSlice",
"type": "ref"
}
},
"required": [
"index",
"features"
],
"type": "object"
},
"mention": {
"description": "Facet feature for a mention of another Tempo account by DID.",
"properties": {
"did": {
"format": "did",
"type": "string"
}
},
"required": [
"did"
],
"type": "object"
},
"music": {
"description": "Facet feature for an inline reference to a musical entity (song, album, or artist). Allows linking music inside the text body of a post, distinct from the post's primary subject.",
"properties": {
"subject": {
"refs": [
"app.tempomusic.feed.defs#songRef",
"app.tempomusic.feed.defs#albumRef",
"app.tempomusic.feed.defs#artistRef"
],
"type": "union"
}
},
"required": [
"subject"
],
"type": "object"
},
"tag": {
"description": "Facet feature for a topical hashtag. The tag string omits any leading '#' character.",
"properties": {
"tag": {
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
}
},
"required": [
"tag"
],
"type": "object"
}
},
"id": "app.tempomusic.richtext.facet",
"lexicon": 1
}