tangled
alpha
login
or
join now
hotsocket.fyi
/
microcosm-rs
forked from
microcosm.blue/microcosm-rs
0
fork
atom
Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
0
fork
atom
overview
issues
pulls
pipelines
add existing lexicons
hotsocket.fyi
4 months ago
589fcafb
5af948d5
+183
3 changed files
expand all
collapse all
unified
split
lexicons
blue
microcosm
links
defs.json
getBacklinks.json
getManyToManyCounts.json
+29
lexicons/blue/microcosm/links/defs.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "blue.microcosm.links.defs",
4
4
+
"defs": {
5
5
+
"recordId": {
6
6
+
"type": "object",
7
7
+
"description": "Describes a record's location.",
8
8
+
"required": [
9
9
+
"did",
10
10
+
"collection",
11
11
+
"rkey"
12
12
+
],
13
13
+
"properties": {
14
14
+
"did": {
15
15
+
"type": "string",
16
16
+
"format": "did"
17
17
+
},
18
18
+
"collection": {
19
19
+
"type": "string",
20
20
+
"format": "nsid"
21
21
+
},
22
22
+
"rkey": {
23
23
+
"type": "string",
24
24
+
"format": "record-key"
25
25
+
}
26
26
+
}
27
27
+
}
28
28
+
}
29
29
+
}
+64
lexicons/blue/microcosm/links/getBacklinks.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "blue.microcosm.links.getBacklinks",
4
4
+
"defs": {
5
5
+
"main": {
6
6
+
"type": "query",
7
7
+
"description": "A list of records linking to any record, identity, or uri.",
8
8
+
"parameters": {
9
9
+
"type": "params",
10
10
+
"required": [
11
11
+
"subject",
12
12
+
"source"
13
13
+
],
14
14
+
"properties": {
15
15
+
"subject": {
16
16
+
"type": "string",
17
17
+
"description": "Can be an AT-URI, plain DID, or regular URI"
18
18
+
},
19
19
+
"source": {
20
20
+
"type": "string",
21
21
+
"description": "Filter links only from this link source. eg.: `app.bsky.feed.like:subject.uri`"
22
22
+
},
23
23
+
"did": {
24
24
+
"type": "array",
25
25
+
"items": {
26
26
+
"type": "string",
27
27
+
"format": "did"
28
28
+
}
29
29
+
},
30
30
+
"limit": {
31
31
+
"type": "integer",
32
32
+
"default": 16,
33
33
+
"maximum": 100
34
34
+
}
35
35
+
}
36
36
+
},
37
37
+
"output": {
38
38
+
"encoding": "application/json",
39
39
+
"schema": {
40
40
+
"type": "object",
41
41
+
"required": [
42
42
+
"total",
43
43
+
"records"
44
44
+
],
45
45
+
"properties": {
46
46
+
"total": {
47
47
+
"type": "integer"
48
48
+
},
49
49
+
"records": {
50
50
+
"type": "array",
51
51
+
"items": {
52
52
+
"type": "ref",
53
53
+
"ref": "blue.microcosm.links.defs#recordId"
54
54
+
}
55
55
+
},
56
56
+
"cursor": {
57
57
+
"type": "string"
58
58
+
}
59
59
+
}
60
60
+
}
61
61
+
}
62
62
+
}
63
63
+
}
64
64
+
}
+90
lexicons/blue/microcosm/links/getManyToManyCounts.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "blue.microcosm.links.getManyToManyCounts",
4
4
+
"defs": {
5
5
+
"main": {
6
6
+
"type": "query",
7
7
+
"description": "Gets a list of records linked by other records at `pathToOther`, where `source` in the linking record is a link to `subject`.",
8
8
+
"parameters": {
9
9
+
"type": "params",
10
10
+
"required": [
11
11
+
"subject",
12
12
+
"source",
13
13
+
"pathToOther"
14
14
+
],
15
15
+
"properties": {
16
16
+
"subject": {
17
17
+
"type": "string",
18
18
+
"description": "Example: `at://did:plc:vc7f4oafdgxsihk4cry2xpze/app.bsky.feed.post/3lgwdn7vd722r`"
19
19
+
},
20
20
+
"source": {
21
21
+
"type": "string",
22
22
+
"description": "Example: `app.bsky.feed.like:subject.uri`"
23
23
+
},
24
24
+
"pathToOther": {
25
25
+
"description": "Path to the secondary link in the linking record. Example: `otherThing.uri`",
26
26
+
"type": "string"
27
27
+
},
28
28
+
"did": {
29
29
+
"type": "array",
30
30
+
"items": {
31
31
+
"type": "string",
32
32
+
"format": "did"
33
33
+
}
34
34
+
},
35
35
+
"otherSubject": {
36
36
+
"type": "string"
37
37
+
},
38
38
+
"cursor": {
39
39
+
"type": "string"
40
40
+
},
41
41
+
"limit": {
42
42
+
"type": "integer",
43
43
+
"default": 16,
44
44
+
"maximum": 100
45
45
+
}
46
46
+
}
47
47
+
},
48
48
+
"output": {
49
49
+
"encoding": "application/json",
50
50
+
"schema": {
51
51
+
"type": "object",
52
52
+
"required": [
53
53
+
"counts_by_other_subject"
54
54
+
],
55
55
+
"properties": {
56
56
+
"counts_by_other_subject": {
57
57
+
"type": "array",
58
58
+
"items": {
59
59
+
"type": "ref",
60
60
+
"ref": "#otherSubjectCount"
61
61
+
}
62
62
+
},
63
63
+
"cursor": {
64
64
+
"type": "string"
65
65
+
}
66
66
+
}
67
67
+
}
68
68
+
}
69
69
+
},
70
70
+
"otherSubjectCount": {
71
71
+
"type": "object",
72
72
+
"required": [
73
73
+
"subject",
74
74
+
"total",
75
75
+
"distinct"
76
76
+
],
77
77
+
"properties": {
78
78
+
"subject": {
79
79
+
"type": "string"
80
80
+
},
81
81
+
"total": {
82
82
+
"type": "integer"
83
83
+
},
84
84
+
"distinct": {
85
85
+
"type": "integer"
86
86
+
}
87
87
+
}
88
88
+
}
89
89
+
}
90
90
+
}