check in lexicons
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"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",
|
||||
"tools.ozone.team.defs#roleVerifier"
|
||||
]
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"knownValues": ["instance", "personal"]
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"lastUpdatedBy": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "tools.ozone.setting.listOptions",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "List settings with optional filtering",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"knownValues": ["instance", "personal"],
|
||||
"default": "instance"
|
||||
},
|
||||
"prefix": {
|
||||
"type": "string",
|
||||
"description": "Filter keys by prefix"
|
||||
},
|
||||
"keys": {
|
||||
"type": "array",
|
||||
"maxLength": 100,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "nsid"
|
||||
},
|
||||
"description": "Filter for only the specified keys. Ignored if prefix is provided"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["options"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"options": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "tools.ozone.setting.defs#option"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "tools.ozone.setting.removeOptions",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Delete settings by key",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["keys", "scope"],
|
||||
"properties": {
|
||||
"keys": {
|
||||
"type": "array",
|
||||
"minLength": 1,
|
||||
"maxLength": 200,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "nsid"
|
||||
}
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"knownValues": ["instance", "personal"]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "tools.ozone.setting.upsertOption",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Create or update setting option",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["key", "scope", "value"],
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string",
|
||||
"format": "nsid"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"knownValues": ["instance", "personal"]
|
||||
},
|
||||
"value": {
|
||||
"type": "unknown"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 2000
|
||||
},
|
||||
"managerRole": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"tools.ozone.team.defs#roleModerator",
|
||||
"tools.ozone.team.defs#roleTriage",
|
||||
"tools.ozone.team.defs#roleVerifier",
|
||||
"tools.ozone.team.defs#roleAdmin"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["option"],
|
||||
"properties": {
|
||||
"option": {
|
||||
"type": "ref",
|
||||
"ref": "tools.ozone.setting.defs#option"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user