check in lexicons

This commit is contained in:
Samuel Newman
2025-04-30 21:15:55 +03:00
parent 727a696970
commit d5b5b21617
259 changed files with 13100 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
{
"lexicon": 1,
"id": "tools.ozone.set.addValues",
"defs": {
"main": {
"type": "procedure",
"description": "Add values to a specific set. Attempting to add values to a set that does not exist will result in an error.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["name", "values"],
"properties": {
"name": {
"type": "string",
"description": "Name of the set to add values to"
},
"values": {
"type": "array",
"minLength": 1,
"maxLength": 1000,
"items": {
"type": "string"
},
"description": "Array of string values to add to the set"
}
}
}
}
}
}
}
+49
View File
@@ -0,0 +1,49 @@
{
"lexicon": 1,
"id": "tools.ozone.set.defs",
"defs": {
"set": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"minLength": 3,
"maxLength": 128
},
"description": {
"type": "string",
"maxGraphemes": 1024,
"maxLength": 10240
}
}
},
"setView": {
"type": "object",
"required": ["name", "setSize", "createdAt", "updatedAt"],
"properties": {
"name": {
"type": "string",
"minLength": 3,
"maxLength": 128
},
"description": {
"type": "string",
"maxGraphemes": 1024,
"maxLength": 10240
},
"setSize": {
"type": "integer"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"updatedAt": {
"type": "string",
"format": "datetime"
}
}
}
}
}
+36
View File
@@ -0,0 +1,36 @@
{
"lexicon": 1,
"id": "tools.ozone.set.deleteSet",
"defs": {
"main": {
"type": "procedure",
"description": "Delete an entire set. Attempting to delete a set that does not exist will result in an error.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the set to delete"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"properties": {}
}
},
"errors": [
{
"name": "SetNotFound",
"description": "set with the given name does not exist"
}
]
}
}
}
@@ -0,0 +1,37 @@
{
"lexicon": 1,
"id": "tools.ozone.set.deleteValues",
"defs": {
"main": {
"type": "procedure",
"description": "Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["name", "values"],
"properties": {
"name": {
"type": "string",
"description": "Name of the set to delete values from"
},
"values": {
"type": "array",
"minLength": 1,
"items": {
"type": "string"
},
"description": "Array of string values to delete from the set"
}
}
}
},
"errors": [
{
"name": "SetNotFound",
"description": "set with the given name does not exist"
}
]
}
}
}
+56
View File
@@ -0,0 +1,56 @@
{
"lexicon": 1,
"id": "tools.ozone.set.getValues",
"defs": {
"main": {
"type": "query",
"description": "Get a specific set and its values",
"parameters": {
"type": "params",
"required": ["name"],
"properties": {
"name": {
"type": "string"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"default": 100
},
"cursor": {
"type": "string"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["set", "values"],
"properties": {
"set": {
"type": "ref",
"ref": "tools.ozone.set.defs#setView"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
},
"cursor": {
"type": "string"
}
}
}
},
"errors": [
{
"name": "SetNotFound",
"description": "set with the given name does not exist"
}
]
}
}
}
+57
View File
@@ -0,0 +1,57 @@
{
"lexicon": 1,
"id": "tools.ozone.set.querySets",
"defs": {
"main": {
"type": "query",
"description": "Query available sets",
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": {
"type": "string"
},
"namePrefix": {
"type": "string"
},
"sortBy": {
"type": "string",
"enum": ["name", "createdAt", "updatedAt"],
"default": "name"
},
"sortDirection": {
"type": "string",
"default": "asc",
"enum": ["asc", "desc"],
"description": "Defaults to ascending order of name field."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["sets"],
"properties": {
"sets": {
"type": "array",
"items": {
"type": "ref",
"ref": "tools.ozone.set.defs#setView"
}
},
"cursor": {
"type": "string"
}
}
}
}
}
}
}
+24
View File
@@ -0,0 +1,24 @@
{
"lexicon": 1,
"id": "tools.ozone.set.upsertSet",
"defs": {
"main": {
"type": "procedure",
"description": "Create or update set metadata",
"input": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "tools.ozone.set.defs#set"
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "tools.ozone.set.defs#setView"
}
}
}
}
}