···1+{
2+ "lexicon": 1,
3+ "id": "network.cosmik.collectionLink",
4+ "description": "A record that links a card to a collection.",
5+ "defs": {
6+ "main": {
7+ "type": "record",
8+ "description": "A record representing the relationship between a card and a collection.",
9+ "key": "tid",
10+ "record": {
11+ "type": "object",
12+ "required": ["collection", "card", "addedBy", "addedAt"],
13+ "properties": {
14+ "collection": {
15+ "type": "ref",
16+ "description": "Strong reference to the collection record.",
17+ "ref": "com.atproto.repo.strongRef"
18+ },
19+ "card": {
20+ "type": "ref",
21+ "description": "Strong reference to the card record in the users library.",
22+ "ref": "com.atproto.repo.strongRef"
23+ },
24+ "originalCard": {
25+ "type": "ref",
26+ "description": "Strong reference to the original card record (may be in another library).",
27+ "ref": "com.atproto.repo.strongRef"
28+ },
29+ "addedBy": {
30+ "type": "string",
31+ "description": "DID of the user who added the card to the collection"
32+ },
33+ "addedAt": {
34+ "type": "string",
35+ "format": "datetime",
36+ "description": "Timestamp when the card was added to the collection."
37+ },
38+ "createdAt": {
39+ "type": "string",
40+ "format": "datetime",
41+ "description": "Timestamp when this link record was created (usually set by PDS)."
42+ },
43+ "provenance": {
44+ "type": "ref",
45+ "description": "Optional provenance information for this link.",
46+ "ref": "network.cosmik.defs#provenance"
47+ }
48+ }
49+ }
50+ }
51+ }
52+}
+18
lexicons/network/cosmik/defs.json
···000000000000000000
···1+{
2+ "lexicon": 1,
3+ "id": "network.cosmik.defs",
4+ "description": "Common definitions for annotation types and references",
5+ "defs": {
6+ "provenance": {
7+ "type": "object",
8+ "description": "Represents the provenance or source of a record.",
9+ "properties": {
10+ "via": {
11+ "type": "ref",
12+ "description": "Strong reference to the card that led to this record.",
13+ "ref": "com.atproto.repo.strongRef"
14+ }
15+ }
16+ }
17+ }
18+}