tangled
alpha
login
or
join now
bretton.dev
/
coves
11
fork
atom
A community based topic aggregation platform built on atproto
11
fork
atom
overview
issues
pulls
pipelines
Adding saved Post/Comments lexicons
Bretton May
8 months ago
eba51c87
9b5250d3
+122
2 changed files
expand all
collapse all
unified
split
internal
atproto
lexicon
social
coves
actor
getSaved.json
saved.json
+85
internal/atproto/lexicon/social/coves/actor/getSaved.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "social.coves.actor.getSaved",
4
4
+
"defs": {
5
5
+
"main": {
6
6
+
"type": "procedure",
7
7
+
"description": "Get all saved posts and comments for the authenticated user",
8
8
+
"input": {
9
9
+
"encoding": "application/json",
10
10
+
"schema": {
11
11
+
"type": "object",
12
12
+
"properties": {
13
13
+
"limit": {
14
14
+
"type": "integer",
15
15
+
"minimum": 1,
16
16
+
"maximum": 100,
17
17
+
"default": 50,
18
18
+
"description": "Number of items to return"
19
19
+
},
20
20
+
"cursor": {
21
21
+
"type": "string",
22
22
+
"description": "Cursor for pagination"
23
23
+
},
24
24
+
"type": {
25
25
+
"type": "string",
26
26
+
"enum": ["post", "comment"],
27
27
+
"description": "Filter by content type (optional)"
28
28
+
}
29
29
+
}
30
30
+
}
31
31
+
},
32
32
+
"output": {
33
33
+
"encoding": "application/json",
34
34
+
"schema": {
35
35
+
"type": "object",
36
36
+
"required": ["savedItems"],
37
37
+
"properties": {
38
38
+
"savedItems": {
39
39
+
"type": "array",
40
40
+
"description": "All saved items for the user",
41
41
+
"items": {
42
42
+
"type": "ref",
43
43
+
"ref": "#savedItemView"
44
44
+
}
45
45
+
},
46
46
+
"cursor": {
47
47
+
"type": "string",
48
48
+
"description": "Cursor for next page"
49
49
+
}
50
50
+
}
51
51
+
}
52
52
+
}
53
53
+
},
54
54
+
"savedItemView": {
55
55
+
"type": "object",
56
56
+
"required": ["uri", "subject", "type", "savedAt"],
57
57
+
"properties": {
58
58
+
"uri": {
59
59
+
"type": "string",
60
60
+
"format": "at-uri",
61
61
+
"description": "AT-URI of the saved record"
62
62
+
},
63
63
+
"subject": {
64
64
+
"type": "string",
65
65
+
"format": "at-uri",
66
66
+
"description": "AT-URI of the saved post or comment"
67
67
+
},
68
68
+
"type": {
69
69
+
"type": "string",
70
70
+
"enum": ["post", "comment"],
71
71
+
"description": "Type of content that was saved"
72
72
+
},
73
73
+
"savedAt": {
74
74
+
"type": "string",
75
75
+
"format": "datetime",
76
76
+
"description": "When the item was saved"
77
77
+
},
78
78
+
"note": {
79
79
+
"type": "string",
80
80
+
"description": "Optional note about why this was saved"
81
81
+
}
82
82
+
}
83
83
+
}
84
84
+
}
85
85
+
}
+37
internal/atproto/lexicon/social/coves/actor/saved.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "social.coves.actor.saved",
4
4
+
"defs": {
5
5
+
"main": {
6
6
+
"type": "record",
7
7
+
"description": "A saved post or comment",
8
8
+
"key": "tid",
9
9
+
"record": {
10
10
+
"type": "object",
11
11
+
"required": ["subject", "type", "createdAt"],
12
12
+
"properties": {
13
13
+
"subject": {
14
14
+
"type": "string",
15
15
+
"format": "at-uri",
16
16
+
"description": "AT-URI of the post or comment being saved"
17
17
+
},
18
18
+
"type": {
19
19
+
"type": "string",
20
20
+
"enum": ["post", "comment"],
21
21
+
"description": "Type of content being saved"
22
22
+
},
23
23
+
"createdAt": {
24
24
+
"type": "string",
25
25
+
"format": "datetime",
26
26
+
"description": "When the item was saved"
27
27
+
},
28
28
+
"note": {
29
29
+
"type": "string",
30
30
+
"maxLength": 300,
31
31
+
"description": "Optional note about why this was saved"
32
32
+
}
33
33
+
}
34
34
+
}
35
35
+
}
36
36
+
}
37
37
+
}