@getcirrus/space-conformance 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-CGsQgOwR.d.ts +472 -0
- package/dist/base-CGsQgOwR.d.ts.map +1 -0
- package/dist/cli.js +79266 -26
- package/dist/cli.js.map +1 -1
- package/dist/coverage-zCMup3Nb.js +2245 -0
- package/dist/coverage-zCMup3Nb.js.map +1 -0
- package/dist/descriptors-YEk3XoDL.js +4428 -0
- package/dist/descriptors-YEk3XoDL.js.map +1 -0
- package/dist/full-Bomm2urj.js +12285 -0
- package/dist/full-Bomm2urj.js.map +1 -0
- package/dist/full.d.ts +43 -17
- package/dist/full.d.ts.map +1 -1
- package/dist/full.js +3 -3
- package/dist/index.d.ts +91 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -93
- package/dist/index.js.map +1 -1
- package/lexicons/MANIFEST.json +3 -3
- package/lexicons/managedspace/checkAccess.json +44 -0
- package/lexicons/managedspace/policy.json +22 -0
- package/lexicons/memberspace/defs.json +22 -0
- package/lexicons/{simplespace → memberspace}/listMembers.json +15 -17
- package/lexicons/memberspace/member.json +23 -0
- package/lexicons/memberspace/policy.json +40 -0
- package/lexicons/memberspace/putMembers.json +43 -0
- package/lexicons/memberspace/removeMembers.json +43 -0
- package/lexicons/personalspace/policy.json +11 -0
- package/lexicons/space/applyWrites.json +6 -11
- package/lexicons/space/authorizeSpaceSync.json +109 -0
- package/lexicons/space/clearRecords.json +34 -0
- package/lexicons/space/confirmRegistration.json +44 -0
- package/lexicons/space/createRecord.json +7 -14
- package/lexicons/space/createSpace.json +58 -0
- package/lexicons/space/defs.json +61 -17
- package/lexicons/space/deleteRecord.json +5 -9
- package/lexicons/space/deleteSpace.json +31 -0
- package/lexicons/space/exportSpaceMeta.json +31 -0
- package/lexicons/space/getBlob.json +4 -7
- package/lexicons/space/getDelegationToken.json +3 -5
- package/lexicons/space/getLatestCommit.json +8 -7
- package/lexicons/space/getRecord.json +9 -9
- package/lexicons/space/getRepo.json +8 -11
- package/lexicons/space/getSpace.json +43 -0
- package/lexicons/space/importRepo.json +27 -0
- package/lexicons/space/importSpaceMeta.json +25 -0
- package/lexicons/space/listBlobs.json +3 -10
- package/lexicons/space/listRecords.json +10 -16
- package/lexicons/space/listRepoOps.json +23 -23
- package/lexicons/space/listSpaces.json +30 -14
- package/lexicons/space/listWriters.json +66 -0
- package/lexicons/space/notifyCredentialsRevoked.json +30 -0
- package/lexicons/space/notifyRepoUpdate.json +43 -0
- package/lexicons/space/notifySpaceUpdate.json +53 -0
- package/lexicons/space/policy.json +26 -0
- package/lexicons/space/putRecord.json +7 -14
- package/lexicons/space/removeWriter.json +35 -0
- package/lexicons/space/updateSpace.json +43 -0
- package/package.json +8 -10
- package/dist/base-D8a-ZK57.d.ts +0 -249
- package/dist/base-D8a-ZK57.d.ts.map +0 -1
- package/dist/coverage-DhJZu8P8.js +0 -1914
- package/dist/coverage-DhJZu8P8.js.map +0 -1
- package/dist/full-D4ufJLcw.js +0 -409
- package/dist/full-D4ufJLcw.js.map +0 -1
- package/dist/operator-BErXCDow.js +0 -923
- package/dist/operator-BErXCDow.js.map +0 -1
- package/lexicons/simplespace/addMember.json +0 -37
- package/lexicons/simplespace/checkUserAccess.json +0 -43
- package/lexicons/simplespace/createSpace.json +0 -74
- package/lexicons/simplespace/defs.json +0 -47
- package/lexicons/simplespace/deleteSpace.json +0 -32
- package/lexicons/simplespace/getSpace.json +0 -53
- package/lexicons/simplespace/removeMember.json +0 -37
- package/lexicons/simplespace/updateSpace.json +0 -57
- package/lexicons/space/getSpaceCredential.json +0 -67
- package/lexicons/space/listRepos.json +0 -75
- package/lexicons/space/notifySpaceDeleted.json +0 -24
- package/lexicons/space/notifyWrite.json +0 -38
- package/lexicons/space/registerNotify.json +0 -49
- package/lexicons/space/unregisterNotify.json +0 -29
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.createSpace",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Create a new space, with the authenticated account as its authority. Requires auth, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["spaceType", "policy"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"spaceType": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "nsid"
|
|
17
|
+
},
|
|
18
|
+
"skey": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "record-key",
|
|
21
|
+
"description": "Space key. Generated as a TID if not provided."
|
|
22
|
+
},
|
|
23
|
+
"policy": {
|
|
24
|
+
"type": "union",
|
|
25
|
+
"description": "PDSes must support all of the listed policies. Other space hosts may support only some of them, and any host may support policies beyond those listed.",
|
|
26
|
+
"refs": [
|
|
27
|
+
"com.atproto.personalspace.policy",
|
|
28
|
+
"com.atproto.memberspace.policy",
|
|
29
|
+
"com.atproto.managedspace.policy"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"output": {
|
|
36
|
+
"encoding": "application/json",
|
|
37
|
+
"schema": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": ["space"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"space": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "space-ref"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"errors": [
|
|
49
|
+
{
|
|
50
|
+
"name": "SpaceAlreadyExists"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "UnsupportedPolicy"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
package/lexicons/space/defs.json
CHANGED
|
@@ -2,35 +2,79 @@
|
|
|
2
2
|
"lexicon": 1,
|
|
3
3
|
"id": "com.atproto.space.defs",
|
|
4
4
|
"defs": {
|
|
5
|
-
"
|
|
5
|
+
"commit": {
|
|
6
6
|
"type": "object",
|
|
7
|
-
"description": "
|
|
8
|
-
"required": ["ver", "
|
|
7
|
+
"description": "Commit to the current state of a space repo. Not signed; authenticated by the repo host with a MAC instead.",
|
|
8
|
+
"required": ["ver", "repo", "space", "rev", "data"],
|
|
9
9
|
"properties": {
|
|
10
10
|
"ver": {
|
|
11
11
|
"type": "integer",
|
|
12
|
-
"description": "Commit format version, currently 1.
|
|
12
|
+
"description": "Commit format version, currently 1."
|
|
13
13
|
},
|
|
14
|
-
"
|
|
15
|
-
"type": "
|
|
16
|
-
"
|
|
14
|
+
"repo": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "did"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
19
|
-
"type": "
|
|
20
|
-
"
|
|
18
|
+
"space": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "space-ref"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"type": "
|
|
24
|
-
"
|
|
22
|
+
"rev": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "tid"
|
|
25
25
|
},
|
|
26
|
-
"
|
|
26
|
+
"data": {
|
|
27
27
|
"type": "bytes",
|
|
28
|
-
"description": "
|
|
28
|
+
"description": "SHA-256 digest of the repo's LtHash state."
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"repoWrite": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"description": "A repo in the space advanced to a new revision.",
|
|
35
|
+
"required": ["repo", "repoRev", "data", "spaceRev"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"repo": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "did"
|
|
29
40
|
},
|
|
30
|
-
"
|
|
41
|
+
"repoRev": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "tid"
|
|
44
|
+
},
|
|
45
|
+
"data": {
|
|
46
|
+
"type": "bytes"
|
|
47
|
+
},
|
|
48
|
+
"spaceRev": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": "tid",
|
|
51
|
+
"description": "The space revision at which this update was sequenced."
|
|
52
|
+
},
|
|
53
|
+
"prevSpaceRev": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"format": "tid",
|
|
56
|
+
"description": "The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters."
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"repoRemoved": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"description": "A repo was removed from the writer set.",
|
|
63
|
+
"required": ["repo", "spaceRev"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"repo": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"format": "did"
|
|
68
|
+
},
|
|
69
|
+
"spaceRev": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"format": "tid",
|
|
72
|
+
"description": "The space revision at which this update was sequenced."
|
|
73
|
+
},
|
|
74
|
+
"prevSpaceRev": {
|
|
31
75
|
"type": "string",
|
|
32
76
|
"format": "tid",
|
|
33
|
-
"description": "
|
|
77
|
+
"description": "The space revision before this update, if any. Set in notifySpaceUpdate, where a gap indicates missed notifications, which can be recovered with listWriters."
|
|
34
78
|
}
|
|
35
79
|
}
|
|
36
80
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "procedure",
|
|
7
|
-
"description": "Delete a record from a
|
|
7
|
+
"description": "Delete a record from a space repo, or ensure it doesn't exist. Requires auth, implemented by PDS.",
|
|
8
8
|
"input": {
|
|
9
9
|
"encoding": "application/json",
|
|
10
10
|
"schema": {
|
|
@@ -13,23 +13,19 @@
|
|
|
13
13
|
"properties": {
|
|
14
14
|
"space": {
|
|
15
15
|
"type": "string",
|
|
16
|
-
"format": "space-ref"
|
|
17
|
-
"description": "Reference to the space."
|
|
16
|
+
"format": "space-ref"
|
|
18
17
|
},
|
|
19
18
|
"repo": {
|
|
20
19
|
"type": "string",
|
|
21
|
-
"format": "did"
|
|
22
|
-
"description": "The DID of the repo to delete from (the authenticated member)."
|
|
20
|
+
"format": "did"
|
|
23
21
|
},
|
|
24
22
|
"collection": {
|
|
25
23
|
"type": "string",
|
|
26
|
-
"format": "nsid"
|
|
27
|
-
"description": "The NSID of the record collection."
|
|
24
|
+
"format": "nsid"
|
|
28
25
|
},
|
|
29
26
|
"rkey": {
|
|
30
27
|
"type": "string",
|
|
31
|
-
"format": "record-key"
|
|
32
|
-
"description": "The Record Key."
|
|
28
|
+
"format": "record-key"
|
|
33
29
|
}
|
|
34
30
|
}
|
|
35
31
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.deleteSpace",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Delete a space, along with the authority's space repo. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"errors": [
|
|
22
|
+
{
|
|
23
|
+
"name": "SpaceNotFound"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "NotAuthorized"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.exportSpaceMeta",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "Export a space's state, such as its policy and member list, as a STAR file for account migration. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"parameters": {
|
|
9
|
+
"type": "params",
|
|
10
|
+
"required": ["space"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"space": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "space-ref"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"output": {
|
|
19
|
+
"encoding": "application/vnd.dasl.star"
|
|
20
|
+
},
|
|
21
|
+
"errors": [
|
|
22
|
+
{
|
|
23
|
+
"name": "SpaceNotFound"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "NotAuthorized"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -4,25 +4,22 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "Get a blob referenced
|
|
7
|
+
"description": "Get a blob referenced by a record in a space repo. Returns the full blob as originally uploaded. Requires auth as the repo's account or with a space credential; implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space", "repo", "cid"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
},
|
|
17
16
|
"repo": {
|
|
18
17
|
"type": "string",
|
|
19
|
-
"format": "did"
|
|
20
|
-
"description": "The DID of the account whose repo holds the blob."
|
|
18
|
+
"format": "did"
|
|
21
19
|
},
|
|
22
20
|
"cid": {
|
|
23
21
|
"type": "string",
|
|
24
|
-
"format": "cid"
|
|
25
|
-
"description": "The CID of the blob to fetch."
|
|
22
|
+
"format": "cid"
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
25
|
},
|
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "Get a delegation token for a space, to exchange with the space host for a space credential. Requires auth, implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
},
|
|
@@ -23,8 +22,7 @@
|
|
|
23
22
|
"required": ["token"],
|
|
24
23
|
"properties": {
|
|
25
24
|
"token": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
"description": "A signed JWT delegation token."
|
|
25
|
+
"type": "string"
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
}
|
|
@@ -4,20 +4,18 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "Get the current
|
|
7
|
+
"description": "Get the current commit of a space repo. Responses are authenticated with a MAC. Requires auth as the repo's account or with a space credential; implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space", "repo"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
},
|
|
17
16
|
"repo": {
|
|
18
17
|
"type": "string",
|
|
19
|
-
"format": "did"
|
|
20
|
-
"description": "The DID of the account whose latest commit to retrieve."
|
|
18
|
+
"format": "did"
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
},
|
|
@@ -28,14 +26,17 @@
|
|
|
28
26
|
"properties": {
|
|
29
27
|
"commit": {
|
|
30
28
|
"type": "ref",
|
|
31
|
-
"ref": "com.atproto.space.defs#
|
|
32
|
-
"description": "The account's current signed commit."
|
|
29
|
+
"ref": "com.atproto.space.defs#commit"
|
|
33
30
|
}
|
|
34
31
|
},
|
|
35
32
|
"required": ["commit"]
|
|
36
33
|
}
|
|
37
34
|
},
|
|
38
35
|
"errors": [
|
|
36
|
+
{
|
|
37
|
+
"name": "InvalidSpaceMac",
|
|
38
|
+
"description": "The MAC requested in the Accept-Signature header is missing or invalid."
|
|
39
|
+
},
|
|
39
40
|
{
|
|
40
41
|
"name": "SpaceNotFound"
|
|
41
42
|
},
|
|
@@ -4,30 +4,26 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "Get a single record from a
|
|
7
|
+
"description": "Get a single record from a space repo. Responses are authenticated with a MAC. Requires auth as the repo's account or with a space credential; implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space", "repo", "collection", "rkey"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
},
|
|
17
16
|
"repo": {
|
|
18
17
|
"type": "string",
|
|
19
|
-
"format": "did"
|
|
20
|
-
"description": "The DID of the account whose repo to read from."
|
|
18
|
+
"format": "did"
|
|
21
19
|
},
|
|
22
20
|
"collection": {
|
|
23
21
|
"type": "string",
|
|
24
|
-
"format": "nsid"
|
|
25
|
-
"description": "The NSID of the record collection."
|
|
22
|
+
"format": "nsid"
|
|
26
23
|
},
|
|
27
24
|
"rkey": {
|
|
28
25
|
"type": "string",
|
|
29
|
-
"format": "record-key"
|
|
30
|
-
"description": "The Record Key."
|
|
26
|
+
"format": "record-key"
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
29
|
},
|
|
@@ -52,6 +48,10 @@
|
|
|
52
48
|
}
|
|
53
49
|
},
|
|
54
50
|
"errors": [
|
|
51
|
+
{
|
|
52
|
+
"name": "InvalidSpaceMac",
|
|
53
|
+
"description": "The MAC requested in the Accept-Signature header is missing or invalid."
|
|
54
|
+
},
|
|
55
55
|
{
|
|
56
56
|
"name": "RecordNotFound"
|
|
57
57
|
},
|
|
@@ -4,32 +4,29 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "Download
|
|
7
|
+
"description": "Download a space repo as a STAR file. Responses are authenticated with a MAC. Requires auth as the repo's account or with a space credential; implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space", "repo"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
},
|
|
17
16
|
"repo": {
|
|
18
17
|
"type": "string",
|
|
19
|
-
"format": "did"
|
|
20
|
-
"description": "The DID of the account whose repo to download."
|
|
21
|
-
},
|
|
22
|
-
"excludeValues": {
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"default": false,
|
|
25
|
-
"description": "If true, omit the record blocks and return only the commit and index roots. The index is still fully authenticated by folding its entries into a set hash and comparing against the commit, so a syncer can diff it against a local copy and fetch just the records it lacks. Note the resulting CAR declares two roots and carries no non-root blocks."
|
|
18
|
+
"format": "did"
|
|
26
19
|
}
|
|
27
20
|
}
|
|
28
21
|
},
|
|
29
22
|
"output": {
|
|
30
|
-
"encoding": "application/vnd.
|
|
23
|
+
"encoding": "application/vnd.dasl.star"
|
|
31
24
|
},
|
|
32
25
|
"errors": [
|
|
26
|
+
{
|
|
27
|
+
"name": "InvalidSpaceMac",
|
|
28
|
+
"description": "The MAC requested in the Accept-Signature header is missing or invalid."
|
|
29
|
+
},
|
|
33
30
|
{ "name": "SpaceNotFound" },
|
|
34
31
|
{ "name": "RepoNotFound" },
|
|
35
32
|
{ "name": "RepoTakendown" },
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.getSpace",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "Get a space and its policy. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"parameters": {
|
|
9
|
+
"type": "params",
|
|
10
|
+
"required": ["space"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"space": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "space-ref"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"output": {
|
|
19
|
+
"encoding": "application/json",
|
|
20
|
+
"schema": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["space", "policy"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"space": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "space-ref"
|
|
27
|
+
},
|
|
28
|
+
"policy": {
|
|
29
|
+
"type": "union",
|
|
30
|
+
"description": "PDSes must support all of the listed policies. Other space hosts may support only some of them, and any host may support policies beyond those listed.",
|
|
31
|
+
"refs": [
|
|
32
|
+
"com.atproto.personalspace.policy",
|
|
33
|
+
"com.atproto.memberspace.policy",
|
|
34
|
+
"com.atproto.managedspace.policy"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"errors": [{ "name": "SpaceNotFound" }, { "name": "NotAuthorized" }]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.importRepo",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Import the authenticated account's space repo from a STAR file, for account migration. If the account is the space's authority, the space must first be imported with importSpaceMeta. Requires auth, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/vnd.dasl.star"
|
|
10
|
+
},
|
|
11
|
+
"errors": [
|
|
12
|
+
{
|
|
13
|
+
"name": "SpaceNotFound",
|
|
14
|
+
"description": "The account is the space's authority, and the space has not been imported yet."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "InvalidRepoFile",
|
|
18
|
+
"description": "The STAR file is malformed or fails verification."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "RepoMismatch",
|
|
22
|
+
"description": "The repo in the STAR file does not belong to the authenticated account."
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.importSpaceMeta",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Import a space's state from an archive produced by exportSpaceMeta, for account migration. Must be called before importing the authority's space repo with importRepo. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/vnd.dasl.star"
|
|
10
|
+
},
|
|
11
|
+
"errors": [
|
|
12
|
+
{
|
|
13
|
+
"name": "NotAuthorized"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "UnsupportedPolicy"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "InvalidSpaceMeta",
|
|
20
|
+
"description": "The STAR file is malformed or fails verification."
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -4,25 +4,18 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "List
|
|
7
|
+
"description": "List blob CIDs referenced by records in a space repo. Requires auth as the repo's account or with a space credential; implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space", "repo"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
},
|
|
17
16
|
"repo": {
|
|
18
17
|
"type": "string",
|
|
19
|
-
"format": "did"
|
|
20
|
-
"description": "The DID of the account whose blobs to list."
|
|
21
|
-
},
|
|
22
|
-
"since": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"format": "tid",
|
|
25
|
-
"description": "Optional revision of the permissioned repo to list blobs since."
|
|
18
|
+
"format": "did"
|
|
26
19
|
},
|
|
27
20
|
"limit": {
|
|
28
21
|
"type": "integer",
|
|
@@ -4,44 +4,36 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "List
|
|
7
|
+
"description": "List records in a space repo, optionally filtered by collection. Requires auth as the repo's account or with a space credential; implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space", "repo"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
},
|
|
17
16
|
"repo": {
|
|
18
17
|
"type": "string",
|
|
19
|
-
"format": "did"
|
|
20
|
-
"description": "The DID of the account whose repo to list."
|
|
18
|
+
"format": "did"
|
|
21
19
|
},
|
|
22
20
|
"collection": {
|
|
23
21
|
"type": "string",
|
|
24
22
|
"format": "nsid",
|
|
25
|
-
"description": "
|
|
23
|
+
"description": "If omitted, lists records across all collections."
|
|
26
24
|
},
|
|
27
25
|
"limit": {
|
|
28
26
|
"type": "integer",
|
|
29
27
|
"minimum": 1,
|
|
30
28
|
"maximum": 1000,
|
|
31
|
-
"default": 50
|
|
32
|
-
"description": "The number of records to return."
|
|
29
|
+
"default": 50
|
|
33
30
|
},
|
|
34
31
|
"cursor": {
|
|
35
32
|
"type": "string"
|
|
36
33
|
},
|
|
37
|
-
"reverse": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"description": "Flag to reverse the order of the returned records."
|
|
40
|
-
},
|
|
41
34
|
"excludeValues": {
|
|
42
35
|
"type": "boolean",
|
|
43
|
-
"default": false
|
|
44
|
-
"description": "If true, omit inlined record values and return only metadata (collection, rkey, cid)."
|
|
36
|
+
"default": false
|
|
45
37
|
}
|
|
46
38
|
}
|
|
47
39
|
},
|
|
@@ -79,6 +71,9 @@
|
|
|
79
71
|
},
|
|
80
72
|
{
|
|
81
73
|
"name": "RepoDeactivated"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "InvalidCursor"
|
|
82
77
|
}
|
|
83
78
|
]
|
|
84
79
|
},
|
|
@@ -99,8 +94,7 @@
|
|
|
99
94
|
"format": "cid"
|
|
100
95
|
},
|
|
101
96
|
"value": {
|
|
102
|
-
"type": "unknown"
|
|
103
|
-
"description": "The record's value. Inlined by default; omitted when excludeValues is set."
|
|
97
|
+
"type": "unknown"
|
|
104
98
|
}
|
|
105
99
|
}
|
|
106
100
|
}
|