town.muni.arbiter.listSpaces
Schema Diff
+4 -0
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"id": "town.muni.arbiter.listSpaces",
3
3
"defs": {
4
4
"main": {
5
5
"type": "query",
6
6
"errors": [
7
7
{
8
8
"name": "ErrArbiterNotExists",
9
9
"description": "The specified arbiter does not exist on this server."
10
10
},
11
11
{
12
12
"name": "ErrSpaceNotExists",
13
13
"description": "The specified space does not exist on this arbiter."
14
14
},
15
15
{
16
16
"name": "ErrPermissionDenied",
17
17
"description": "The requesting user is not allowed to make the request."
18
18
}
19
19
],
20
20
"output": {
21
21
"schema": {
22
22
"type": "object",
23
23
"required": [
24
24
"spaces"
25
25
],
26
26
"properties": {
27
27
"spaces": {
28
28
"type": "array",
29
29
"items": {
30
30
"type": "object",
31
31
"required": [
32
32
"spaceKey",
33
33
"spaceType"
34
34
],
35
35
"properties": {
36
36
"config": {
37
37
"refs": [],
38
38
"type": "union",
39
39
"description": "The space config.\n\nThis may not be returned if the server does not want to allow the requesting user\nto read it."
40
40
},
41
41
"spaceKey": {
42
42
"type": "string",
43
43
"maxLength": 1024,
44
44
"description": "The space's key."
45
45
},
46
46
"spaceType": {
47
47
"type": "string",
48
48
"format": "nsid",
49
49
"description": "The type of the space."
50
50
}
51
51
}
52
52
},
53
53
"description": "The list of spaces on the arbiter that the requesting user has access to."
54
54
}
55
55
}
56
56
},
57
57
"encoding": "application/json"
58
58
},
59
59
"parameters": {
60
60
"type": "params",
61
61
"required": [
62
62
"arbiterDid"
63
63
],
64
64
"properties": {
65
65
"arbiterDid": {
66
66
"type": "string",
67
67
"format": "did",
68
68
"description": "The DID of the arbiter that the space is in."
69
+
},
70
+
"resolverDepth": {
71
+
"type": "integer",
72
+
"description": "The maximum depth to allow when doing remote resolutions.\n\nBecause spaces are allowed to have members resolved from remote spaces,\nall of the arbiter endpoints have an optional resolution depth parameter\nthat can be used to limit how many chained remote calls can be resolved.\n\nThis applies both to queries and procedures. Queries may need to resolve\nexternal members to complete the member list, and procedures may need\nto resolve external members if the requesting member is not in the local\nmember list, to see if the member has access through a remote list."
69
73
}
70
74
}
71
75
},
72
76
"description": "Get the members that have been assigned to the space.\n\nThis is not a flat membership list, but a list of the direct members\nof the space, including DIDs, local spaces, and remote spaces that have\nbeen added as members, without doing any resolution of remote spaces."
73
77
}
74
78
},
75
79
"$type": "com.atproto.lexicon.schema",
76
80
"lexicon": 1
77
81
}