feat: initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "ApikeyPermissions",
|
||||
"description": "Apikey permissions",
|
||||
"$id": "https://abode.codi.moe/schema/apikeypermissions.schema.json",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"admin": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"all": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"users": {
|
||||
"enum": ["r", "rw"]
|
||||
},
|
||||
"residents": {
|
||||
"enum": ["r", "rw"]
|
||||
},
|
||||
"abodes": {
|
||||
"enum": ["r", "rw"]
|
||||
},
|
||||
"restrict_users": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
}
|
||||
},
|
||||
"restrict_abodes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user