@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
package/lexicons/MANIFEST.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "https://github.com/bluesky-social/atproto",
|
|
3
3
|
"branch": "permissioned-data-alpha",
|
|
4
|
-
"commit": "
|
|
5
|
-
"vendoredAt": "2026-
|
|
6
|
-
"note": "Vendored verbatim from lexicons/com/atproto/{space,
|
|
4
|
+
"commit": "1f510f8e3",
|
|
5
|
+
"vendoredAt": "2026-11-25",
|
|
6
|
+
"note": "Vendored verbatim from lexicons/com/atproto/{space,memberspace,personalspace,managedspace} by scripts/vendor-lexicons.mjs. A diff here identifies affected checks via their citations."
|
|
7
7
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.managedspace.checkAccess",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "Check an account's read and write access to a managed space. Called by the space host, implemented by the space's managing app. Requires service auth.",
|
|
8
|
+
"parameters": {
|
|
9
|
+
"type": "params",
|
|
10
|
+
"required": ["space"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"space": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "space-ref"
|
|
15
|
+
},
|
|
16
|
+
"repo": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "did"
|
|
19
|
+
},
|
|
20
|
+
"clientId": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "uri",
|
|
23
|
+
"description": "OAuth client ID of the requesting app, if attested."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"output": {
|
|
28
|
+
"encoding": "application/json",
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["read", "write"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"read": {
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"write": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.managedspace.policy",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Space policy that delegates access decisions to an external app through checkAccess.",
|
|
8
|
+
"required": ["managingApp"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"managingApp": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The `did#serviceId` reference of the managing app."
|
|
13
|
+
},
|
|
14
|
+
"publishPolicy": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "Publish the policy as a com.atproto.space.policy record in the space."
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.defs",
|
|
4
|
+
"defs": {
|
|
5
|
+
"member": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["did", "read", "write"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"did": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "did"
|
|
12
|
+
},
|
|
13
|
+
"read": {
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
},
|
|
16
|
+
"write": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"lexicon": 1,
|
|
3
|
-
"id": "com.atproto.
|
|
3
|
+
"id": "com.atproto.memberspace.listMembers",
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "List the members
|
|
7
|
+
"description": "List the members of a space with a memberspace policy. Requires auth as the space authority, 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
|
"limit": {
|
|
18
17
|
"type": "integer",
|
|
19
18
|
"minimum": 1,
|
|
20
19
|
"maximum": 1000,
|
|
21
|
-
"default": 100
|
|
22
|
-
"description": "Maximum number of members to return."
|
|
20
|
+
"default": 100
|
|
23
21
|
},
|
|
24
22
|
"cursor": {
|
|
25
23
|
"type": "string"
|
|
@@ -39,7 +37,7 @@
|
|
|
39
37
|
"type": "array",
|
|
40
38
|
"items": {
|
|
41
39
|
"type": "ref",
|
|
42
|
-
"ref": "#member"
|
|
40
|
+
"ref": "com.atproto.memberspace.defs#member"
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
}
|
|
@@ -48,18 +46,18 @@
|
|
|
48
46
|
"errors": [
|
|
49
47
|
{
|
|
50
48
|
"name": "SpaceNotFound"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "NotAuthorized"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "PolicyMismatch",
|
|
55
|
+
"description": "The space does not have a memberspace policy."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "InvalidCursor"
|
|
51
59
|
}
|
|
52
60
|
]
|
|
53
|
-
},
|
|
54
|
-
"member": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"required": ["did"],
|
|
57
|
-
"properties": {
|
|
58
|
-
"did": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"format": "did"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
63
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.member",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "record",
|
|
7
|
+
"description": "A published entry in a space's member list, keyed by the member's DID. Only authoritative in the space authority's repo.",
|
|
8
|
+
"key": "any",
|
|
9
|
+
"record": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["read", "write"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"read": {
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
},
|
|
16
|
+
"write": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.policy",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Space policy that grants access based on a member list.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"publicRead": {
|
|
10
|
+
"type": "boolean",
|
|
11
|
+
"default": false,
|
|
12
|
+
"description": "If true, anyone may read the space. Otherwise, only members with read access."
|
|
13
|
+
},
|
|
14
|
+
"publicWrite": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "If true, any account's writes are tracked in the writer set, except members without write access. Otherwise, only members with write access."
|
|
18
|
+
},
|
|
19
|
+
"allowedApps": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "If set, only these apps (by OAuth client ID) may read the space.",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "uri"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"publishPolicy": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false,
|
|
30
|
+
"description": "Publish the policy as a com.atproto.space.policy record in the space."
|
|
31
|
+
},
|
|
32
|
+
"publishMembers": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "Publish the member list as com.atproto.memberspace.member records in the space."
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.putMembers",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Add members to a space, or update existing members' access, in a single commit. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space", "members"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
},
|
|
18
|
+
"members": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"maxLength": 100,
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "ref",
|
|
23
|
+
"ref": "com.atproto.memberspace.defs#member"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"errors": [
|
|
30
|
+
{
|
|
31
|
+
"name": "SpaceNotFound"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "NotAuthorized"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "PolicyMismatch",
|
|
38
|
+
"description": "The space does not have a memberspace policy."
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.removeMembers",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Remove members from a space in a single commit. DIDs that are not members are ignored. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space", "dids"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
},
|
|
18
|
+
"dids": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"maxLength": 100,
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "did"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"errors": [
|
|
30
|
+
{
|
|
31
|
+
"name": "SpaceNotFound"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "NotAuthorized"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "PolicyMismatch",
|
|
38
|
+
"description": "The space does not have a memberspace policy."
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.personalspace.policy",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Space policy for personal data that only the space authority and authorized apps can read, such as bookmarks or drafts.",
|
|
8
|
+
"properties": {}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "procedure",
|
|
7
|
-
"description": "Apply a batch transaction of creates, updates, and deletes
|
|
7
|
+
"description": "Apply a batch transaction of creates, updates, and deletes to a space repo. Requires auth, implemented by PDS.",
|
|
8
8
|
"input": {
|
|
9
9
|
"encoding": "application/json",
|
|
10
10
|
"schema": {
|
|
@@ -13,13 +13,11 @@
|
|
|
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 write to (the authenticated member)."
|
|
20
|
+
"format": "did"
|
|
23
21
|
},
|
|
24
22
|
"validate": {
|
|
25
23
|
"type": "boolean",
|
|
@@ -57,12 +55,10 @@
|
|
|
57
55
|
"name": "SpaceNotFound"
|
|
58
56
|
},
|
|
59
57
|
{
|
|
60
|
-
"name": "RecordNotFound"
|
|
61
|
-
"description": "An update or delete targeted a record that does not exist."
|
|
58
|
+
"name": "RecordNotFound"
|
|
62
59
|
},
|
|
63
60
|
{
|
|
64
|
-
"name": "RecordAlreadyExists"
|
|
65
|
-
"description": "A create targeted a collection and rkey that already holds a record."
|
|
61
|
+
"name": "RecordAlreadyExists"
|
|
66
62
|
}
|
|
67
63
|
]
|
|
68
64
|
},
|
|
@@ -77,8 +73,7 @@
|
|
|
77
73
|
},
|
|
78
74
|
"rkey": {
|
|
79
75
|
"type": "string",
|
|
80
|
-
"format": "record-key"
|
|
81
|
-
"maxLength": 512
|
|
76
|
+
"format": "record-key"
|
|
82
77
|
},
|
|
83
78
|
"value": {
|
|
84
79
|
"type": "unknown"
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.authorizeSpaceSync",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Authorize syncing a space, returning a new credential for reading data across it and the space's current revision, and optionally registering for notifications of updates to it. Depending on the space's policy, a delegation token and/or client attestation may be required. Implemented by the space host.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space", "credentialKey"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
},
|
|
18
|
+
"credentialKey": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "P-256 did:key that the credential is bound to."
|
|
21
|
+
},
|
|
22
|
+
"delegationToken": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Obtained from getDelegationToken."
|
|
25
|
+
},
|
|
26
|
+
"clientAttestation": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"notify": {
|
|
30
|
+
"type": "ref",
|
|
31
|
+
"ref": "#notify",
|
|
32
|
+
"description": "Register an endpoint to be notified of updates to the space via notifySpaceUpdate. The registration stays active while this credential is valid. After it expires, the endpoint receives only a prompt to reauthorize, or notice of the space's deletion."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"output": {
|
|
38
|
+
"encoding": "application/json",
|
|
39
|
+
"schema": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": ["credential"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"credential": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"spaceRev": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "tid",
|
|
49
|
+
"description": "The space's current revision. Omitted before the space's first update."
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"errors": [
|
|
55
|
+
{
|
|
56
|
+
"name": "SpaceNotFound",
|
|
57
|
+
"description": "May also be returned in place of AccountNotAuthorized, to avoid revealing that the space exists."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "SpaceDeleted"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "AccountNotAuthorized"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "AppNotAuthorized"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "NotAuthorized",
|
|
70
|
+
"description": "Generic refusal. May be returned in place of AccountNotAuthorized or AppNotAuthorized."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "InvalidDelegationToken"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "InvalidClientAttestation"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "RegistrationNotConfirmed",
|
|
80
|
+
"description": "The notify endpoint did not confirm the registration."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "RepoTakendown",
|
|
84
|
+
"description": "The space authority has been taken down."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "RepoDeactivated",
|
|
88
|
+
"description": "The space authority has been deactivated."
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"notify": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"required": ["endpoint", "token"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"endpoint": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"format": "uri",
|
|
99
|
+
"description": "Base HTTPS URL that notification methods are called against."
|
|
100
|
+
},
|
|
101
|
+
"token": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"maxLength": 512,
|
|
104
|
+
"description": "Opaque secret, included in the body of each request to the endpoint. The endpoint and token together identify the registration, so the token should stay the same across authorizations."
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.clearRecords",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Delete all records in the authenticated account's space repo. In the space authority's repo, records published from the space's configuration (such as its policy) are kept. Requires auth, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space", "repo"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
},
|
|
18
|
+
"repo": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "did"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"output": {
|
|
26
|
+
"encoding": "application/json",
|
|
27
|
+
"schema": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.space.confirmRegistration",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Confirm a new notification registration. Called by the space host on an endpoint passed to authorizeSpaceSync, before registering it. The syncing service checks that it issued the token for the space, and echoes back the challenge.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space", "token", "challenge"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
},
|
|
18
|
+
"token": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"maxLength": 512
|
|
21
|
+
},
|
|
22
|
+
"challenge": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"maxLength": 512
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"output": {
|
|
30
|
+
"encoding": "application/json",
|
|
31
|
+
"schema": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"required": ["challenge"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"challenge": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"maxLength": 512
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "procedure",
|
|
7
|
-
"description": "Create a single new record in a
|
|
7
|
+
"description": "Create a single new record in a space repo. Requires auth, implemented by PDS.",
|
|
8
8
|
"input": {
|
|
9
9
|
"encoding": "application/json",
|
|
10
10
|
"schema": {
|
|
@@ -13,24 +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 write to (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.",
|
|
33
|
-
"maxLength": 512
|
|
28
|
+
"format": "record-key"
|
|
34
29
|
},
|
|
35
30
|
"validate": {
|
|
36
31
|
"type": "boolean",
|
|
@@ -51,8 +46,7 @@
|
|
|
51
46
|
"properties": {
|
|
52
47
|
"uri": {
|
|
53
48
|
"type": "string",
|
|
54
|
-
"format": "at-uri"
|
|
55
|
-
"description": "URI of the created record."
|
|
49
|
+
"format": "at-uri"
|
|
56
50
|
},
|
|
57
51
|
"cid": {
|
|
58
52
|
"type": "string",
|
|
@@ -70,8 +64,7 @@
|
|
|
70
64
|
"name": "SpaceNotFound"
|
|
71
65
|
},
|
|
72
66
|
{
|
|
73
|
-
"name": "RecordAlreadyExists"
|
|
74
|
-
"description": "A record already exists at this collection and rkey. Retry with a different rkey, or use putRecord."
|
|
67
|
+
"name": "RecordAlreadyExists"
|
|
75
68
|
}
|
|
76
69
|
]
|
|
77
70
|
}
|