Foysal Ahamed c4b5e53957
Ozone instance-wide and user-specific settings (#2905)
*  Settings endpoints are working

* 🧹 Rename file

*  Replace ad-hoc manage roles to match team member roles

* ♻️ Refactor role names

*  Polish up

*  Move to using id for pagination

* 📝 Add changeset

*  Update snapshots

*  Change column order in setting table index and add did in all queries
2024-11-07 22:43:30 +01:00

64 lines
1.3 KiB
JSON

{
"lexicon": 1,
"id": "tools.ozone.setting.defs",
"defs": {
"option": {
"type": "object",
"required": [
"key",
"value",
"did",
"scope",
"createdBy",
"lastUpdatedBy"
],
"properties": {
"key": {
"type": "string",
"format": "nsid"
},
"did": {
"type": "string",
"format": "did"
},
"value": {
"type": "unknown"
},
"description": {
"type": "string",
"maxGraphemes": 1024,
"maxLength": 10240
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"updatedAt": {
"type": "string",
"format": "datetime"
},
"managerRole": {
"type": "string",
"knownValues": [
"tools.ozone.team.defs#roleModerator",
"tools.ozone.team.defs#roleTriage",
"tools.ozone.team.defs#roleAdmin"
]
},
"scope": {
"type": "string",
"knownValues": ["instance", "personal"]
},
"createdBy": {
"type": "string",
"format": "did"
},
"lastUpdatedBy": {
"type": "string",
"format": "did"
}
}
}
}
}