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 other lexicons I've written
hotsocket.fyi
4 months ago
4339935a
6f0febe5
+129
2 changed files
expand all
collapse all
unified
split
lexicons
com
bad-example
identity
resolveMiniDoc.json
repo
getUriRecord.json
+70
lexicons/com/bad-example/identity/resolveMiniDoc.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "com.bad-example.identity.resolveMiniDoc",
4
4
+
"defs": {
5
5
+
"main": {
6
6
+
"type": "query",
7
7
+
"description": "Like com.atproto.identity.resolveIdentity but instead of the full didDoc it returns an atproto-relevant subset.",
8
8
+
"parameters": {
9
9
+
"type": "params",
10
10
+
"required": [
11
11
+
"identifier"
12
12
+
],
13
13
+
"properties": {
14
14
+
"identifier": {
15
15
+
"type": "string",
16
16
+
"format": "at-identifier",
17
17
+
"description": "Handle or DID to resolve."
18
18
+
}
19
19
+
}
20
20
+
},
21
21
+
"output": {
22
22
+
"encoding": "application/json",
23
23
+
"schema": {
24
24
+
"type": "ref",
25
25
+
"ref": "#miniDoc"
26
26
+
}
27
27
+
},
28
28
+
"errors": [
29
29
+
{
30
30
+
"name": "HandleNotFound",
31
31
+
"description": "The resolution process confirmed that the handle does not resolve to any DID."
32
32
+
},
33
33
+
{
34
34
+
"name": "DidNotFound",
35
35
+
"description": "The DID resolution process confirmed that there is no current DID."
36
36
+
},
37
37
+
{
38
38
+
"name": "DidDeactivated",
39
39
+
"description": "The DID previously existed, but has been deactivated."
40
40
+
}
41
41
+
]
42
42
+
},
43
43
+
"miniDoc": {
44
44
+
"type": "object",
45
45
+
"required": [
46
46
+
"did",
47
47
+
"handle",
48
48
+
"pds",
49
49
+
"signing_key"
50
50
+
],
51
51
+
"properties": {
52
52
+
"did": {
53
53
+
"type": "string",
54
54
+
"format": "did"
55
55
+
},
56
56
+
"handle": {
57
57
+
"type": "string",
58
58
+
"format": "handle"
59
59
+
},
60
60
+
"pds": {
61
61
+
"type": "string",
62
62
+
"format": "uri"
63
63
+
},
64
64
+
"signing_key": {
65
65
+
"type": "string"
66
66
+
}
67
67
+
}
68
68
+
}
69
69
+
}
70
70
+
}
+59
lexicons/com/bad-example/repo/getUriRecord.json
···
1
1
+
{
2
2
+
"lexicon": 1,
3
3
+
"id": "com.bad-example.repo.getUriRecord",
4
4
+
"defs": {
5
5
+
"main": {
6
6
+
"type": "query",
7
7
+
"description": "Ergonomic complement to com.atproto.repo.getRecord which accepts an at-uri instead of individual repo/collection/rkey params",
8
8
+
"parameters": {
9
9
+
"type": "params",
10
10
+
"required": [
11
11
+
"at_uri"
12
12
+
],
13
13
+
"properties": {
14
14
+
"at_uri": {
15
15
+
"type": "string",
16
16
+
"format": "at-uri",
17
17
+
"description": "The at-uri of the record. The identifier can be a DID or an atproto handle, and the collection and rkey segments must be present."
18
18
+
},
19
19
+
"cid": {
20
20
+
"type": "string",
21
21
+
"format": "cid",
22
22
+
"description": "The CID of the version of the record. If not specified, then return the most recent version."
23
23
+
}
24
24
+
}
25
25
+
},
26
26
+
"output": {
27
27
+
"encoding": "application/json",
28
28
+
"schema": {
29
29
+
"type": "object",
30
30
+
"required": [
31
31
+
"uri",
32
32
+
"value"
33
33
+
],
34
34
+
"properties": {
35
35
+
"uri": {
36
36
+
"type": "string",
37
37
+
"format": "at-uri"
38
38
+
},
39
39
+
"cid": {
40
40
+
"type": "string",
41
41
+
"format": "cid"
42
42
+
},
43
43
+
"value": {
44
44
+
"type": "unknown"
45
45
+
}
46
46
+
}
47
47
+
}
48
48
+
},
49
49
+
"errors": [
50
50
+
{
51
51
+
"name": "RecordNotFound"
52
52
+
},
53
53
+
{
54
54
+
"name": "InvalidRequest"
55
55
+
}
56
56
+
]
57
57
+
}
58
58
+
}
59
59
+
}