Website hub for the atmosphere community, aggregating posts, events, regional, and more
2.6 kB
78 lines
1{
2 "lexicon": 1,
3 "id": "community.opensocial.sharedContent",
4 "defs": {
5 "main": {
6 "type": "record",
7 "description": "A wrapper record stored in a community's repo that references external content (e.g. a standard.site document) shared by a member. Deleting this record removes the content from the community.",
8 "key": "tid",
9 "record": {
10 "type": "object",
11 "required": [
12 "type",
13 "documentUri",
14 "documentCid",
15 "sharedBy",
16 "title",
17 "sharedAt"
18 ],
19 "properties": {
20 "type": {
21 "type": "string",
22 "description": "The kind of content being shared",
23 "knownValues": ["document", "event"]
24 },
25 "documentUri": {
26 "type": "string",
27 "format": "at-uri",
28 "description": "AT-URI of the source record (e.g. at://did:plc:abc/site.standard.document/3mjpdo4ylyy23)"
29 },
30 "documentCid": {
31 "type": "string",
32 "description": "CID of the source record at time of sharing, for version pinning"
33 },
34 "sharedBy": {
35 "type": "string",
36 "format": "did",
37 "description": "DID of the member who shared the content"
38 },
39 "title": {
40 "type": "string",
41 "maxGraphemes": 512,
42 "description": "Cached title from the source record for display without re-fetching"
43 },
44 "path": {
45 "type": "string",
46 "maxGraphemes": 1024,
47 "description": "Cached URL path from the source record"
48 },
49 "sharedAt": {
50 "type": "string",
51 "format": "datetime",
52 "description": "When the content was shared with the community"
53 },
54 "startsAt": {
55 "type": "string",
56 "format": "datetime",
57 "description": "Cached event start time (only present when type=event)"
58 },
59 "endsAt": {
60 "type": "string",
61 "format": "datetime",
62 "description": "Cached event end time (only present when type=event)"
63 },
64 "location": {
65 "type": "string",
66 "maxGraphemes": 512,
67 "description": "Cached event location string (only present when type=event)"
68 },
69 "mode": {
70 "type": "string",
71 "description": "Cached event mode (only present when type=event)",
72 "knownValues": ["in-person", "virtual", "hybrid"]
73 }
74 }
75 }
76 }
77 }
78}