diff --git a/lexicons/site/exosphere/featureRequestPermissions.json b/lexicons/site/exosphere/featureRequestPermissions.json new file mode 100644 index 0000000..99b770e --- /dev/null +++ b/lexicons/site/exosphere/featureRequestPermissions.json @@ -0,0 +1,51 @@ +{ + "lexicon": 1, + "id": "site.exosphere.featureRequestPermissions", + "defs": { + "role": { + "type": "string", + "description": "Minimum role required to perform an action.", + "knownValues": ["owner", "admin", "member", "authenticated"] + }, + "main": { + "type": "record", + "description": "Permission overrides for the feature-requests module of an Exosphere Sphere. Published on the Sphere owner's PDS. Only non-default roles need to be specified — absent keys use the module's built-in defaults.", + "key": "literal:self", + "record": { + "type": "object", + "properties": { + "create": { + "type": "ref", + "ref": "#role", + "description": "Minimum role to create feature requests." + }, + "vote": { + "type": "ref", + "ref": "#role", + "description": "Minimum role to vote on feature requests." + }, + "comment": { + "type": "ref", + "ref": "#role", + "description": "Minimum role to comment on feature requests." + }, + "change-status": { + "type": "ref", + "ref": "#role", + "description": "Minimum role to change feature request status." + }, + "mark-duplicate": { + "type": "ref", + "ref": "#role", + "description": "Minimum role to mark feature requests as duplicate." + }, + "moderate": { + "type": "ref", + "ref": "#role", + "description": "Minimum role to hide/unhide content." + } + } + } + } + } +} diff --git a/lexicons/site/exosphere/sphere.json b/lexicons/site/exosphere/sphere.json index b264e5e..2730961 100644 --- a/lexicons/site/exosphere/sphere.json +++ b/lexicons/site/exosphere/sphere.json @@ -11,7 +11,6 @@ "required": [ "name", "visibility", - "writeAccess", "createdAt" ], "properties": { @@ -33,14 +32,6 @@ "private" ] }, - "writeAccess": { - "type": "string", - "description": "Who can create content in this Sphere.", - "knownValues": [ - "open", - "members" - ] - }, "modules": { "type": "array", "description": "Module names enabled for this Sphere.",