fyi.opensocial.createSpace
Schema Diff
+7 -0
Compatibility Analysis
Backward Compatible
Backward compatible. 4 non-breaking changes.
Non-Breaking Changes (4)
- AddedVertex AddedVertex { vertex_id: "fyi.opensocial.createSpace:input.writableBy" }
- AddedVertex AddedVertex { vertex_id: "fyi.opensocial.createSpace:input.writableBy:items" }
- AddedEdge AddedEdge { src: "fyi.opensocial.createSpace:input", tgt: "fyi.opensocial.createSpace:input.writableBy", kind: "prop", name: Some("writableBy") }
- AddedEdge AddedEdge { src: "fyi.opensocial.createSpace:input.writableBy", tgt: "fyi.opensocial.createSpace:input.writableBy:items", kind: "items", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "fyi.opensocial.createSpace:input.writableBy" }AddedVertex { vertex_id: "fyi.opensocial.createSpace:input.writableBy:items" }
Additional Notes
- Non-breaking: AddedEdge { src: "fyi.opensocial.createSpace:input", tgt: "fyi.opensocial.createSpace:input.writableBy", kind: "prop", name: Some("writableBy") }
- Non-breaking: AddedEdge { src: "fyi.opensocial.createSpace:input.writableBy", tgt: "fyi.opensocial.createSpace:input.writableBy:items", kind: "items", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "Add a modality space to the group. Requires space.create.",
6
6
"input": {
7
7
"encoding": "application/json",
8
8
"schema": {
9
9
"properties": {
10
10
"credentialScopes": {
11
11
"description": "Which collections each role may write as the group DID in this space. Copied into the space's access record.",
12
12
"items": {
13
13
"ref": "fyi.opensocial.access#roleScopes",
14
14
"type": "ref"
15
15
},
16
16
"type": "array"
17
17
},
18
18
"group": {
19
19
"description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
20
20
"format": "did",
21
21
"type": "string"
22
22
},
23
23
"name": {
24
24
"type": "string"
25
25
},
26
26
"readableBy": {
27
27
"items": {
28
28
"type": "string"
29
29
},
30
30
"type": "array"
31
31
},
32
32
"skey": {
33
33
"format": "record-key",
34
34
"type": "string"
35
35
},
36
36
"type": {
37
37
"format": "nsid",
38
38
"type": "string"
39
+
},
40
+
"writableBy": {
41
+
"description": "Who may write into the space in their own name: role ids, or 'public' for anyone signed in. Absent is any member.",
42
+
"items": {
43
+
"type": "string"
44
+
},
45
+
"type": "array"
39
46
}
40
47
},
41
48
"required": [
42
49
"group",
43
50
"type",
44
51
"readableBy"
45
52
],
46
53
"type": "object"
47
54
}
48
55
},
49
56
"output": {
50
57
"encoding": "application/json",
51
58
"schema": {
52
59
"properties": {
53
60
"uri": {
54
61
"format": "space-ref",
55
62
"type": "string"
56
63
}
57
64
},
58
65
"required": [
59
66
"uri"
60
67
],
61
68
"type": "object"
62
69
}
63
70
},
64
71
"type": "procedure"
65
72
}
66
73
},
67
74
"id": "fyi.opensocial.createSpace",
68
75
"lexicon": 1
69
76
}