-
Notifications
You must be signed in to change notification settings - Fork 400
/
getLikes.json
58 lines (58 loc) · 1.66 KB
/
getLikes.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"lexicon": 1,
"id": "app.bsky.feed.getLikes",
"defs": {
"main": {
"type": "query",
"description": "Get like records which reference a subject (by AT-URI and CID).",
"parameters": {
"type": "params",
"required": ["uri"],
"properties": {
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the subject (eg, a post record)."
},
"cid": {
"type": "string",
"format": "cid",
"description": "CID of the subject record (aka, specific version of record), to filter likes."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["uri", "likes"],
"properties": {
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"cursor": { "type": "string" },
"likes": {
"type": "array",
"items": { "type": "ref", "ref": "#like" }
}
}
}
}
},
"like": {
"type": "object",
"required": ["indexedAt", "createdAt", "actor"],
"properties": {
"indexedAt": { "type": "string", "format": "datetime" },
"createdAt": { "type": "string", "format": "datetime" },
"actor": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }
}
}
}
}