mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
4258 lines
138 KiB
JSON
4258 lines
138 KiB
JSON
{
|
|
"tools": [
|
|
{
|
|
"name": "auth_me",
|
|
"description": "Get the current user",
|
|
"inputSchema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_strategies",
|
|
"description": "Get the available authentication strategies",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"include_disabled": {
|
|
"type": "boolean",
|
|
"$target": "query"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_user_create",
|
|
"description": "Create a new user",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string",
|
|
"format": "email"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"minLength": 8
|
|
},
|
|
"role": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"email",
|
|
"password"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_user_password_change",
|
|
"description": "Change a user's password",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number",
|
|
"title": "Integer"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"title": "UUID"
|
|
}
|
|
]
|
|
},
|
|
"email": {
|
|
"type": "string",
|
|
"format": "email"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"minLength": 8
|
|
}
|
|
},
|
|
"required": [
|
|
"password"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_user_password_test",
|
|
"description": "Test a user's password",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string",
|
|
"format": "email"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"minLength": 8
|
|
}
|
|
},
|
|
"required": [
|
|
"email",
|
|
"password"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_user_token",
|
|
"description": "Get a user token",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number",
|
|
"title": "Integer"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"title": "UUID"
|
|
}
|
|
]
|
|
},
|
|
"email": {
|
|
"type": "string",
|
|
"format": "email"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_delete_many",
|
|
"description": "Delete many",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity",
|
|
"json"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"json": {
|
|
"type": "object",
|
|
"$synthetic": true,
|
|
"$target": "json",
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_delete_one",
|
|
"description": "Delete one",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity",
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number",
|
|
"title": "Integer"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"title": "UUID"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_fn_count",
|
|
"description": "Count entities",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"json": {
|
|
"examples": [
|
|
{
|
|
"attribute": {
|
|
"$eq": 1
|
|
}
|
|
}
|
|
],
|
|
"default": {},
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
],
|
|
"$synthetic": true,
|
|
"$target": "json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_fn_exists",
|
|
"description": "Check if entity exists",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"json": {
|
|
"examples": [
|
|
{
|
|
"attribute": {
|
|
"$eq": 1
|
|
}
|
|
}
|
|
],
|
|
"default": {},
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
],
|
|
"$synthetic": true,
|
|
"$target": "json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_info",
|
|
"description": "Retrieve entity info",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_insert",
|
|
"description": "Insert one or many",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity",
|
|
"json"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"json": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
],
|
|
"$synthetic": true,
|
|
"$target": "json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_read_many",
|
|
"description": "Query entities",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"limit": {
|
|
"type": "number",
|
|
"default": 10,
|
|
"$target": "json"
|
|
},
|
|
"offset": {
|
|
"type": "number",
|
|
"default": 0,
|
|
"$target": "json"
|
|
},
|
|
"sort": {
|
|
"type": "string",
|
|
"default": "id",
|
|
"$target": "json"
|
|
},
|
|
"where": {
|
|
"examples": [
|
|
{
|
|
"attribute": {
|
|
"$eq": 1
|
|
}
|
|
}
|
|
],
|
|
"default": {},
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
],
|
|
"$synthetic": true,
|
|
"$target": "json"
|
|
},
|
|
"select": {
|
|
"type": "array",
|
|
"$target": "json",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"join": {
|
|
"type": "array",
|
|
"$target": "json",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"with": {
|
|
"type": "object",
|
|
"$target": "json",
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_read_one",
|
|
"description": "Read one",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity",
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number",
|
|
"title": "Integer"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"title": "UUID"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"offset": {
|
|
"type": "number",
|
|
"default": 0,
|
|
"$target": "query"
|
|
},
|
|
"sort": {
|
|
"type": "string",
|
|
"default": "id",
|
|
"$target": "query"
|
|
},
|
|
"select": {
|
|
"type": "array",
|
|
"$target": "query",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_update_many",
|
|
"description": "Update many",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity",
|
|
"update",
|
|
"where"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"update": {
|
|
"type": "object",
|
|
"$target": "json",
|
|
"properties": {}
|
|
},
|
|
"where": {
|
|
"type": "object",
|
|
"$target": "json",
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_entity_update_one",
|
|
"description": "Update one",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"entity",
|
|
"id",
|
|
"json"
|
|
],
|
|
"properties": {
|
|
"entity": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"users",
|
|
"media"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number",
|
|
"title": "Integer"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"title": "UUID"
|
|
}
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"json": {
|
|
"type": "object",
|
|
"$synthetic": true,
|
|
"$target": "json",
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_sync",
|
|
"description": "Sync database schema",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"force": {
|
|
"type": "boolean",
|
|
"$target": "query"
|
|
},
|
|
"drop": {
|
|
"type": "boolean",
|
|
"$target": "query"
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "data_types",
|
|
"description": "Retrieve data typescript definitions",
|
|
"inputSchema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "system_build",
|
|
"description": "Build the app",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sync": {
|
|
"type": "boolean",
|
|
"$target": "query"
|
|
},
|
|
"fetch": {
|
|
"type": "boolean",
|
|
"$target": "query"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "system_config",
|
|
"description": "Get the config for a module",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"module": {
|
|
"type": "string",
|
|
"enum": [
|
|
"server",
|
|
"data",
|
|
"auth",
|
|
"media",
|
|
"flows"
|
|
],
|
|
"$target": "param"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"$target": "query"
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "system_info",
|
|
"description": "Get the server info",
|
|
"inputSchema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "system_ping",
|
|
"description": "Ping the server",
|
|
"inputSchema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_get",
|
|
"title": "Get Authentication",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"title": "Path",
|
|
"description": "Path to the property to get, e.g. `key.subkey`",
|
|
"pattern": "^[a-zA-Z0-9_.]{0,}$"
|
|
},
|
|
"depth": {
|
|
"type": "number",
|
|
"description": "Limit the depth of the response"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "Include secrets in the response config",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_roles_add",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to add"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"permissions": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"permission": {
|
|
"type": "string"
|
|
},
|
|
"effect": {
|
|
"type": "string",
|
|
"enum": [
|
|
"allow",
|
|
"deny"
|
|
],
|
|
"default": "allow"
|
|
},
|
|
"policies": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"condition": {
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
"effect": {
|
|
"type": "string",
|
|
"enum": [
|
|
"allow",
|
|
"deny",
|
|
"filter"
|
|
],
|
|
"default": "allow"
|
|
},
|
|
"filter": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"permission"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"is_default": {
|
|
"type": "boolean"
|
|
},
|
|
"implicit_allow": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_roles_get",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to get"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "(optional) include secrets in the response config",
|
|
"default": false
|
|
},
|
|
"schema": {
|
|
"type": "boolean",
|
|
"description": "(optional) include the schema in the response",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_roles_remove",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to remove"
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_roles_update",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to update"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"permissions": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permission"
|
|
],
|
|
"properties": {
|
|
"permission": {
|
|
"type": "string"
|
|
},
|
|
"effect": {
|
|
"type": "string",
|
|
"enum": [
|
|
"allow",
|
|
"deny"
|
|
],
|
|
"default": "allow"
|
|
},
|
|
"policies": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"condition": {
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
"effect": {
|
|
"type": "string",
|
|
"enum": [
|
|
"allow",
|
|
"deny",
|
|
"filter"
|
|
],
|
|
"default": "allow"
|
|
},
|
|
"filter": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"is_default": {
|
|
"type": "boolean"
|
|
},
|
|
"implicit_allow": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_strategies_add",
|
|
"title": "Add Strategies",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to add"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"config"
|
|
]
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_strategies_get",
|
|
"title": "Get Strategies",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to get"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "(optional) include secrets in the response config",
|
|
"default": false
|
|
},
|
|
"schema": {
|
|
"type": "boolean",
|
|
"description": "(optional) include the schema in the response",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_strategies_remove",
|
|
"title": "Get Strategies",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to remove"
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_strategies_update",
|
|
"title": "Update Strategies",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to update"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_auth_update",
|
|
"title": "Update Authentication",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"full": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"basepath": {
|
|
"type": "string",
|
|
"default": "/api/auth"
|
|
},
|
|
"entity_name": {
|
|
"type": "string",
|
|
"default": "users"
|
|
},
|
|
"allow_register": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"jwt": {
|
|
"type": "object",
|
|
"default": {},
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"alg": {
|
|
"type": "string",
|
|
"enum": [
|
|
"HS256",
|
|
"HS384",
|
|
"HS512"
|
|
],
|
|
"default": "HS256"
|
|
},
|
|
"expires": {
|
|
"type": "number"
|
|
},
|
|
"issuer": {
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"default": [
|
|
"id",
|
|
"email",
|
|
"role"
|
|
],
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"cookie": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"domain": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"default": "/"
|
|
},
|
|
"sameSite": {
|
|
"type": "string",
|
|
"enum": [
|
|
"strict",
|
|
"lax",
|
|
"none"
|
|
],
|
|
"default": "lax"
|
|
},
|
|
"secure": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"httpOnly": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"expires": {
|
|
"type": "number",
|
|
"default": 604800
|
|
},
|
|
"partitioned": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"renew": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"pathSuccess": {
|
|
"type": "string",
|
|
"default": "/"
|
|
},
|
|
"pathLoggedOut": {
|
|
"type": "string",
|
|
"default": "/"
|
|
}
|
|
}
|
|
},
|
|
"guard": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_entities_add",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to add"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"regular",
|
|
"system",
|
|
"generated"
|
|
],
|
|
"default": "regular"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"default": {},
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"name_singular": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"sort_field": {
|
|
"type": "string",
|
|
"default": "id"
|
|
},
|
|
"sort_dir": {
|
|
"type": "string",
|
|
"enum": [
|
|
"asc",
|
|
"desc"
|
|
],
|
|
"default": "asc"
|
|
},
|
|
"primary_format": {
|
|
"type": "string",
|
|
"enum": [
|
|
"integer",
|
|
"uuid"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"fields": {
|
|
"type": "object",
|
|
"default": {},
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"title": "primary",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "primary"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"format": {
|
|
"type": "string",
|
|
"enum": [
|
|
"integer",
|
|
"uuid"
|
|
],
|
|
"default": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "text",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "text"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "string"
|
|
},
|
|
"minLength": {
|
|
"type": "number"
|
|
},
|
|
"maxLength": {
|
|
"type": "number"
|
|
},
|
|
"pattern": {
|
|
"type": "string"
|
|
},
|
|
"html_config": {
|
|
"type": "object",
|
|
"properties": {
|
|
"element": {
|
|
"type": "string"
|
|
},
|
|
"props": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"title": "String"
|
|
},
|
|
{
|
|
"type": "number",
|
|
"title": "Number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "number",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "number"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "number"
|
|
},
|
|
"minimum": {
|
|
"type": "number"
|
|
},
|
|
"maximum": {
|
|
"type": "number"
|
|
},
|
|
"exclusiveMinimum": {
|
|
"type": "number"
|
|
},
|
|
"exclusiveMaximum": {
|
|
"type": "number"
|
|
},
|
|
"multipleOf": {
|
|
"type": "number"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "boolean",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "boolean"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "boolean"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "date",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "date"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"date",
|
|
"datetime",
|
|
"week"
|
|
],
|
|
"default": "date"
|
|
},
|
|
"timezone": {
|
|
"type": "string"
|
|
},
|
|
"min_date": {
|
|
"type": "string"
|
|
},
|
|
"max_date": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "enum",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "enum"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"const": "strings"
|
|
},
|
|
"values": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"values"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"const": "objects"
|
|
},
|
|
"values": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"values"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "json",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "json"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "jsonschema",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "jsonschema"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"schema": {
|
|
"type": "object"
|
|
},
|
|
"ui_schema": {
|
|
"type": "object"
|
|
},
|
|
"default_from_schema": {
|
|
"type": "boolean"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "relation",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "relation"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"reference": {
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"type": "string"
|
|
},
|
|
"target_field": {
|
|
"type": "string",
|
|
"default": "id"
|
|
},
|
|
"target_field_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"text",
|
|
"integer"
|
|
],
|
|
"default": "integer"
|
|
},
|
|
"on_delete": {
|
|
"type": "string",
|
|
"enum": [
|
|
"cascade",
|
|
"set null",
|
|
"set default",
|
|
"restrict",
|
|
"no action"
|
|
],
|
|
"default": "set null"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
},
|
|
"required": [
|
|
"reference",
|
|
"target"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "media",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "media"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"entity": {
|
|
"type": "string"
|
|
},
|
|
"min_items": {
|
|
"type": "number"
|
|
},
|
|
"max_items": {
|
|
"type": "number"
|
|
},
|
|
"mime_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_entities_get",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to get"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "(optional) include secrets in the response config",
|
|
"default": false
|
|
},
|
|
"schema": {
|
|
"type": "boolean",
|
|
"description": "(optional) include the schema in the response",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_entities_remove",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to remove"
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_entities_update",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to update"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"regular",
|
|
"system",
|
|
"generated"
|
|
],
|
|
"default": "regular"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"default": {},
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"name_singular": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"sort_field": {
|
|
"type": "string",
|
|
"default": "id"
|
|
},
|
|
"sort_dir": {
|
|
"type": "string",
|
|
"enum": [
|
|
"asc",
|
|
"desc"
|
|
],
|
|
"default": "asc"
|
|
},
|
|
"primary_format": {
|
|
"type": "string",
|
|
"enum": [
|
|
"integer",
|
|
"uuid"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"fields": {
|
|
"type": "object",
|
|
"default": {},
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"title": "primary",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "primary"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"format": {
|
|
"type": "string",
|
|
"enum": [
|
|
"integer",
|
|
"uuid"
|
|
],
|
|
"default": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "text",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "text"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "string"
|
|
},
|
|
"minLength": {
|
|
"type": "number"
|
|
},
|
|
"maxLength": {
|
|
"type": "number"
|
|
},
|
|
"pattern": {
|
|
"type": "string"
|
|
},
|
|
"html_config": {
|
|
"type": "object",
|
|
"properties": {
|
|
"element": {
|
|
"type": "string"
|
|
},
|
|
"props": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"title": "String"
|
|
},
|
|
{
|
|
"type": "number",
|
|
"title": "Number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "number",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "number"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "number"
|
|
},
|
|
"minimum": {
|
|
"type": "number"
|
|
},
|
|
"maximum": {
|
|
"type": "number"
|
|
},
|
|
"exclusiveMinimum": {
|
|
"type": "number"
|
|
},
|
|
"exclusiveMaximum": {
|
|
"type": "number"
|
|
},
|
|
"multipleOf": {
|
|
"type": "number"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "boolean",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "boolean"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "boolean"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "date",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "date"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"date",
|
|
"datetime",
|
|
"week"
|
|
],
|
|
"default": "date"
|
|
},
|
|
"timezone": {
|
|
"type": "string"
|
|
},
|
|
"min_date": {
|
|
"type": "string"
|
|
},
|
|
"max_date": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "enum",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "enum"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"type",
|
|
"values"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"const": "strings"
|
|
},
|
|
"values": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"type",
|
|
"values"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"const": "objects"
|
|
},
|
|
"values": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "json",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "json"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default_value": {},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "jsonschema",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "jsonschema"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"schema": {
|
|
"type": "object"
|
|
},
|
|
"ui_schema": {
|
|
"type": "object"
|
|
},
|
|
"default_from_schema": {
|
|
"type": "boolean"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "relation",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "relation"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"reference",
|
|
"target"
|
|
],
|
|
"properties": {
|
|
"reference": {
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"type": "string"
|
|
},
|
|
"target_field": {
|
|
"type": "string",
|
|
"default": "id"
|
|
},
|
|
"target_field_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"text",
|
|
"integer"
|
|
],
|
|
"default": "integer"
|
|
},
|
|
"on_delete": {
|
|
"type": "string",
|
|
"enum": [
|
|
"cascade",
|
|
"set null",
|
|
"set default",
|
|
"restrict",
|
|
"no action"
|
|
],
|
|
"default": "set null"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "media",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "media"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"entity": {
|
|
"type": "string"
|
|
},
|
|
"min_items": {
|
|
"type": "number"
|
|
},
|
|
"max_items": {
|
|
"type": "number"
|
|
},
|
|
"mime_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fillable": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"hidden": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean",
|
|
"title": "Boolean"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"title": "Context",
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"create",
|
|
"read",
|
|
"update",
|
|
"delete",
|
|
"form",
|
|
"table",
|
|
"submit"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"virtual": {
|
|
"type": "boolean"
|
|
},
|
|
"default_value": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_get",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"title": "Path",
|
|
"description": "Path to the property to get, e.g. `key.subkey`",
|
|
"pattern": "^[a-zA-Z0-9_.]{0,}$"
|
|
},
|
|
"depth": {
|
|
"type": "number",
|
|
"description": "Limit the depth of the response"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "Include secrets in the response config",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_indices_add",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to add"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"entity": {
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"unique": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"entity",
|
|
"fields"
|
|
]
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_indices_get",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to get"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "(optional) include secrets in the response config",
|
|
"default": false
|
|
},
|
|
"schema": {
|
|
"type": "boolean",
|
|
"description": "(optional) include the schema in the response",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_indices_remove",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to remove"
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_relations_add",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to add"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"1:1",
|
|
"n:1",
|
|
"m:n",
|
|
"poly"
|
|
]
|
|
},
|
|
"source": {
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"type": "string"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"source",
|
|
"target"
|
|
]
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_relations_get",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to get"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "(optional) include secrets in the response config",
|
|
"default": false
|
|
},
|
|
"schema": {
|
|
"type": "boolean",
|
|
"description": "(optional) include the schema in the response",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_relations_remove",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to remove"
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_relations_update",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "key to update"
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"1:1",
|
|
"n:1",
|
|
"m:n",
|
|
"poly"
|
|
]
|
|
},
|
|
"source": {
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"type": "string"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_data_update",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"full": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"basepath": {
|
|
"type": "string",
|
|
"default": "/api/data"
|
|
},
|
|
"default_primary_format": {
|
|
"type": "string",
|
|
"enum": [
|
|
"integer",
|
|
"uuid"
|
|
],
|
|
"default": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_media_adapter_get",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "Include secrets in the response config",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_media_adapter_update",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"value": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"title": "AWS S3",
|
|
"description": "AWS S3 or compatible storage",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"const": "s3"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"title": "AWS S3",
|
|
"description": "AWS S3 or compatible storage",
|
|
"properties": {
|
|
"access_key": {
|
|
"type": "string"
|
|
},
|
|
"secret_access_key": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"description": "URL to S3 compatible endpoint without trailing slash",
|
|
"examples": [
|
|
"https://{account_id}.r2.cloudflarestorage.com/{bucket}",
|
|
"https://{bucket}.s3.{region}.amazonaws.com"
|
|
],
|
|
"pattern": "^https?://(?:.*)?[^/.]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"access_key",
|
|
"secret_access_key",
|
|
"url"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"config"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "Cloudinary",
|
|
"description": "Cloudinary media storage",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"const": "cloudinary"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"title": "Cloudinary",
|
|
"description": "Cloudinary media storage",
|
|
"properties": {
|
|
"cloud_name": {
|
|
"type": "string"
|
|
},
|
|
"api_key": {
|
|
"type": "string"
|
|
},
|
|
"api_secret": {
|
|
"type": "string"
|
|
},
|
|
"upload_preset": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"cloud_name",
|
|
"api_key",
|
|
"api_secret"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"config"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "Local",
|
|
"description": "Local file system storage",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"const": "local"
|
|
},
|
|
"config": {
|
|
"type": "object",
|
|
"title": "Local",
|
|
"description": "Local file system storage",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"default": "./"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"config"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_media_get",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"title": "Path",
|
|
"description": "Path to the property to get, e.g. `key.subkey`",
|
|
"pattern": "^[a-zA-Z0-9_.]{0,}$"
|
|
},
|
|
"depth": {
|
|
"type": "number",
|
|
"description": "Limit the depth of the response"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "Include secrets in the response config",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_media_update",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"full": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"basepath": {
|
|
"type": "string",
|
|
"default": "/api/media"
|
|
},
|
|
"entity_name": {
|
|
"type": "string",
|
|
"default": "media"
|
|
},
|
|
"storage": {
|
|
"type": "object",
|
|
"default": {},
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"body_max_size": {
|
|
"type": "number",
|
|
"description": "Max size of the body in bytes. Leave blank for unlimited."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
},
|
|
{
|
|
"name": "config_server_get",
|
|
"description": "Get Server configuration",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"title": "Path",
|
|
"description": "Path to the property to get, e.g. `key.subkey`",
|
|
"pattern": "^[a-zA-Z0-9_.]{0,}$"
|
|
},
|
|
"depth": {
|
|
"type": "number",
|
|
"description": "Limit the depth of the response"
|
|
},
|
|
"secrets": {
|
|
"type": "boolean",
|
|
"description": "Include secrets in the response config",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"destructiveHint": false
|
|
}
|
|
},
|
|
{
|
|
"name": "config_server_update",
|
|
"description": "Update Server configuration",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"full": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"return_config": {
|
|
"type": "boolean",
|
|
"description": "If the new configuration should be returned",
|
|
"default": false
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"cors": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"origin": {
|
|
"type": "string",
|
|
"default": "*"
|
|
},
|
|
"allow_methods": {
|
|
"type": "array",
|
|
"default": [
|
|
"GET",
|
|
"POST",
|
|
"PATCH",
|
|
"PUT",
|
|
"DELETE"
|
|
],
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"GET",
|
|
"POST",
|
|
"PATCH",
|
|
"PUT",
|
|
"DELETE"
|
|
]
|
|
}
|
|
},
|
|
"allow_headers": {
|
|
"type": "array",
|
|
"default": [
|
|
"Content-Type",
|
|
"Content-Length",
|
|
"Authorization",
|
|
"Accept"
|
|
],
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"allow_credentials": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
}
|
|
},
|
|
"mcp": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"default": "/api/system/mcp"
|
|
},
|
|
"logLevel": {
|
|
"type": "string",
|
|
"enum": [
|
|
"emergency",
|
|
"alert",
|
|
"critical",
|
|
"error",
|
|
"warning",
|
|
"notice",
|
|
"info",
|
|
"debug"
|
|
],
|
|
"default": "warning"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"value"
|
|
]
|
|
},
|
|
"annotations": {
|
|
"destructiveHint": true,
|
|
"idempotentHint": true
|
|
}
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"uri": "bknd://data/entities",
|
|
"name": "data_entities",
|
|
"title": "Entities",
|
|
"description": "Retrieve all entities"
|
|
},
|
|
{
|
|
"uri": "bknd://data/relations",
|
|
"name": "data_relations",
|
|
"title": "Relations",
|
|
"description": "Retrieve all relations"
|
|
},
|
|
{
|
|
"uri": "bknd://data/indices",
|
|
"name": "data_indices",
|
|
"title": "Indices",
|
|
"description": "Retrieve all indices"
|
|
},
|
|
{
|
|
"uri": "bknd://system/config",
|
|
"name": "system_config"
|
|
},
|
|
{
|
|
"uriTemplate": "bknd://system/config/{module}",
|
|
"name": "system_config_module"
|
|
},
|
|
{
|
|
"uri": "bknd://system/schema",
|
|
"name": "system_schema"
|
|
},
|
|
{
|
|
"uriTemplate": "bknd://system/schema/{module}",
|
|
"name": "system_schema_module"
|
|
}
|
|
]
|
|
} |