Skip to content

Commit 2ca32a5

Browse files
committed
Added flashes feed lexicon
1 parent 8dba37f commit 2ca32a5

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.flashes.feed.post",
4+
"defs": {
5+
"main": {
6+
"type": "record",
7+
"description": "Record containing a Bluesky post.",
8+
"key": "tid",
9+
"record": {
10+
"type": "object",
11+
"required": ["text", "createdAt"],
12+
"properties": {
13+
"text": {
14+
"type": "string",
15+
"maxLength": 3000,
16+
"maxGraphemes": 300,
17+
"description": "The primary post content. May be an empty string, if there are embeds."
18+
},
19+
"reply": { "type": "ref", "ref": "#replyRef" },
20+
"langs": {
21+
"type": "array",
22+
"description": "Indicates human language of post primary text content.",
23+
"maxLength": 3,
24+
"items": { "type": "string", "format": "language" }
25+
},
26+
"labels": {
27+
"type": "union",
28+
"description": "Self-label values for this post. Effectively content warnings.",
29+
"refs": ["com.atproto.label.defs#selfLabels"]
30+
},
31+
"tags": {
32+
"type": "array",
33+
"description": "Additional hashtags, in addition to any included in post text and facets.",
34+
"maxLength": 8,
35+
"items": { "type": "string", "maxLength": 640, "maxGraphemes": 64 }
36+
},
37+
"createdAt": {
38+
"type": "string",
39+
"format": "datetime",
40+
"description": "Client-declared timestamp when this post was originally created."
41+
}
42+
}
43+
}
44+
},
45+
"replyRef": {
46+
"type": "object",
47+
"required": ["root", "parent"],
48+
"properties": {
49+
"root": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
50+
"parent": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
51+
}
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)