Music streaming on ATProto!

feat(lexicon): comment record and custom richtext facets

ovyerus.com d47db575 bc8f2ba0

verified
Changed files
+69 -7
packages
lexicons
defs
sh
+12 -1
packages/lexicons/defs/app.bsky.richtext.facet.json packages/lexicons/defs/sh/comet/v0/richtext/facet.json
··· 1 { 2 "lexicon": 1, 3 - "id": "app.bsky.richtext.facet", 4 "defs": { 5 "main": { 6 "type": "object", ··· 36 "required": ["tag"], 37 "properties": { 38 "tag": { "type": "string", "maxLength": 640, "maxGraphemes": 64 } 39 } 40 }, 41 "byteSlice": {
··· 1 { 2 "lexicon": 1, 3 + "id": "sh.comet.v0.richtext.facet", 4 "defs": { 5 "main": { 6 "type": "object", ··· 36 "required": ["tag"], 37 "properties": { 38 "tag": { "type": "string", "maxLength": 640, "maxGraphemes": 64 } 39 + } 40 + }, 41 + "timestamp": { 42 + "type": "object", 43 + "description": "Facet feature for a timestamp in a track. The text usually is in the format of 'hh:mm:ss' with the hour section being omitted if unnecessary.", 44 + "properties": { 45 + "timestamp": { 46 + "type": "integer", 47 + "minimum": 0, 48 + "description": "Reference time, in seconds." 49 + } 50 } 51 }, 52 "byteSlice": {
+4 -5
packages/lexicons/defs/sh/comet/v0/actor/profile.json
··· 23 "descriptionFacets": { 24 "type": "ref", 25 "description": "Annotations of the user's description.", 26 - "ref": "app.bsky.richtext.facets" 27 }, 28 "avatar": { 29 "type": "blob", ··· 33 }, 34 "featured": { 35 "type": "array", 36 - "items": { 37 - "type": "ref", 38 - "ref": "com.atproto.repo.strongRef" 39 - } 40 }, 41 "createdAt": { "type": "string", "format": "datetime" } 42 }
··· 23 "descriptionFacets": { 24 "type": "ref", 25 "description": "Annotations of the user's description.", 26 + "ref": "sh.comet.v0.richtext.facet" 27 }, 28 "avatar": { 29 "type": "blob", ··· 33 }, 34 "featured": { 35 "type": "array", 36 + "description": "Pinned items to be shown first on the user's profile.", 37 + "maxLength": 5, 38 + "items": { "type": "string", "format": "at-uri" } 39 }, 40 "createdAt": { "type": "string", "format": "datetime" } 41 }
+47
packages/lexicons/defs/sh/comet/v0/feed/comment.json
···
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.comet.v0.feed.comment", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "A comment on a piece of Comet media.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["text", "subject", "createdAt"], 12 + "properties": { 13 + "text": { 14 + "type": "string", 15 + "minLength": 1, 16 + "minGraphemes": 1, 17 + "maxLength": 3000, 18 + "maxGraphemes": 300, 19 + "description": "The comment's content." 20 + }, 21 + "subject": { 22 + "type": "string", 23 + "format": "at-uri", 24 + "description": "The piece of media being commented on." 25 + }, 26 + "reply": { 27 + "type": "string", 28 + "format": "at-uri", 29 + "description": "Another sh.comet.v0.feed.comment this is in reply to." 30 + }, 31 + "langs": { 32 + "type": "array", 33 + "description": "Indicates human language of the comment's text content.", 34 + "maxLength": 3, 35 + "items": { "type": "string", "format": "language" } 36 + }, 37 + "facets": { 38 + "type": "array", 39 + "description": "Annotations of text (mentions, URLs, hashtags, etc)", 40 + "items": { "type": "ref", "ref": "sh.comet.v0.richtext.facet" } 41 + }, 42 + "createdAt": { "type": "string", "format": "datetime" } 43 + } 44 + } 45 + } 46 + } 47 + }
+5
packages/lexicons/defs/sh/comet/v0/feed/playlist.json
··· 34 "maxLength": 20000, 35 "maxGraphemes": 2000 36 }, 37 "type": { 38 "type": "string", 39 "description": "Type of the playlist. Allows differentiating between playlist's different purposes.",
··· 34 "maxLength": 20000, 35 "maxGraphemes": 2000 36 }, 37 + "descriptionFacets": { 38 + "type": "ref", 39 + "description": "Annotations of the playlist's description.", 40 + "ref": "sh.comet.v0.richtext.facets" 41 + }, 42 "type": { 43 "type": "string", 44 "description": "Type of the playlist. Allows differentiating between playlist's different purposes.",
+1 -1
packages/lexicons/defs/sh/comet/v0/feed/track.json
··· 38 "descriptionFacets": { 39 "type": "ref", 40 "description": "Annotations of the track's description.", 41 - "ref": "app.bsky.richtext.facets" 42 }, 43 "tags": { 44 "type": "array",
··· 38 "descriptionFacets": { 39 "type": "ref", 40 "description": "Annotations of the track's description.", 41 + "ref": "sh.comet.v0.richtext.facets" 42 }, 43 "tags": { 44 "type": "array",