diff --git a/core/cmd/server/docs/docs.go b/core/cmd/server/docs/docs.go index 09a67f1611f8..57e1b49d79f8 100644 --- a/core/cmd/server/docs/docs.go +++ b/core/cmd/server/docs/docs.go @@ -2429,6 +2429,50 @@ const docTemplate = `{ ] } }, + "/ai/domain/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OllamaBindDomain" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update bind domain", + "tags": [ + "AI" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "domain" + ], + "formatEN": "update Ollama bind domain [domain]", + "formatZH": "更新 Ollama 绑定域名 [domain]", + "paramKeys": [] + } + } + }, "/ai/gpu/load": { "get": { "consumes": [ @@ -2453,6 +2497,27 @@ const docTemplate = `{ ] } }, + "/ai/gpu/options": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get CPU options", + "tags": [ + "AI" + ] + } + }, "/ai/gpu/search": { "post": { "parameters": [ @@ -3058,6 +3123,718 @@ const docTemplate = `{ } } }, + "/ai/tensorrt/create": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMCreate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "name" + ], + "formatEN": "create TensorRT LLM [name]", + "formatZH": "创建 TensorRT LLM [name]", + "paramKeys": [] + } + } + }, + "/ai/tensorrt/delete": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMDelete" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id" + ], + "formatEN": "delete TensorRT LLM [id]", + "formatZH": "删除 TensorRT LLM [id]", + "paramKeys": [] + } + } + }, + "/ai/tensorrt/operate": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMOperate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Operate TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "operate" + ], + "formatEN": "operate TensorRT LLM [id][operate]", + "formatZH": "操作 TensorRT LLM [id][operate]", + "paramKeys": [] + } + } + }, + "/ai/tensorrt/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMSearch" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page TensorRT LLMs", + "tags": [ + "TensorRT LLM" + ] + } + }, + "/ai/tensorrt/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "name" + ], + "formatEN": "update TensorRT LLM [id][name]", + "formatZH": "更新 TensorRT LLM [id][name]", + "paramKeys": [] + } + } + }, + "/alert": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertCreate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create alert", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "type", + "method" + ], + "formatEN": "create alert [type][method]", + "formatZH": "创建告警任务 [type][method]", + "paramKeys": [] + } + } + }, + "/alert/clams/list": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get clams", + "tags": [ + "Alert" + ] + } + }, + "/alert/config/del": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.DeleteRequest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete alert config", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id" + ], + "formatEN": "delete alert config [id]", + "formatZH": "删除告警配置 [id]", + "paramKeys": [] + } + } + }, + "/alert/config/info": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get alert config", + "tags": [ + "Alert" + ] + } + }, + "/alert/config/test": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertConfigTest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Test alert config", + "tags": [ + "Alert" + ] + } + }, + "/alert/config/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertConfigUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update alert config", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "type", + "title" + ], + "formatEN": "update alert config [type][title]", + "formatZH": "更新告警配置 [type][title]", + "paramKeys": [] + } + } + }, + "/alert/cronjob/list": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.CronJobReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get cron jobs", + "tags": [ + "Alert" + ] + } + }, + "/alert/del": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.DeleteRequest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete alert", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id" + ], + "formatEN": "delete alert [id]", + "formatZH": "删除告警任务 [id]", + "paramKeys": [] + } + } + }, + "/alert/disks/list": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get disks", + "tags": [ + "Alert" + ] + } + }, + "/alert/logs/clean": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Clean alert logs", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "clean alert logs", + "formatZH": "清空告警日志", + "paramKeys": [] + } + } + }, + "/alert/logs/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertLogSearch" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page alert logs", + "tags": [ + "Alert" + ] + } + }, + "/alert/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertSearch" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page alert", + "tags": [ + "Alert" + ] + } + }, + "/alert/status": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertUpdateStatus" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update alert status", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "status" + ], + "formatEN": "update alert [id] status [status]", + "formatZH": "更新告警任务 [id] 状态 [status]", + "paramKeys": [] + } + } + }, + "/alert/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update alert", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "type" + ], + "formatEN": "update alert [id][type]", + "formatZH": "更新告警任务 [id][type]", + "paramKeys": [] + } + } + }, "/apps/:key": { "get": { "consumes": [ @@ -3141,7 +3918,7 @@ const docTemplate = `{ { "description": "app 类型", "in": "path", - "name": "version", + "name": "type", "required": true, "type": "string" } @@ -3177,9 +3954,9 @@ const docTemplate = `{ { "description": "app key", "in": "path", - "name": "appId", + "name": "appKey", "required": true, - "type": "integer" + "type": "string" }, { "description": "app version", @@ -3220,7 +3997,7 @@ const docTemplate = `{ { "description": "id", "in": "path", - "name": "appId", + "name": "id", "required": true, "type": "integer" } @@ -3254,11 +4031,11 @@ const docTemplate = `{ ], "parameters": [ { - "description": "app id", + "description": "app key", "in": "path", - "name": "appId", + "name": "key", "required": true, - "type": "integer" + "type": "string" } ], "responses": { @@ -3827,7 +4604,7 @@ const docTemplate = `{ "in": "path", "name": "appInstallId", "required": true, - "type": "string" + "type": "integer" } ], "responses": { @@ -3989,6 +4766,48 @@ const docTemplate = `{ ] } }, + "/apps/installed/sort/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.AppInstallSort" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update app install sort", + "tags": [ + "App" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "update installed app sort", + "formatZH": "更新已安装应用排序", + "paramKeys": [] + } + } + }, "/apps/installed/sync": { "post": { "responses": { @@ -4022,15 +4841,6 @@ const docTemplate = `{ "consumes": [ "application/json" ], - "parameters": [ - { - "description": "request", - "in": "path", - "name": "appInstallId", - "required": true, - "type": "integer" - } - ], "responses": { "200": { "description": "OK", @@ -4189,6 +4999,27 @@ const docTemplate = `{ } } }, + "/apps/tags": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get app tags", + "tags": [ + "App" + ] + } + }, "/backups": { "post": { "consumes": [ @@ -4320,7 +5151,37 @@ const docTemplate = `{ ] } }, - "/backups/check": { + "/backups/check/{name}": { + "get": { + "parameters": [ + { + "description": "name", + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check backup used", + "tags": [ + "Backup Account" + ] + } + }, + "/backups/conn/check": { "post": { "consumes": [ "application/json" @@ -4958,8 +5819,8 @@ const docTemplate = `{ "bodyKeys": [ "type" ], - "formatEN": "update backup account [types]", - "formatZH": "更新备份账号 [types]", + "formatEN": "update backup account [type]", + "formatZH": "更新备份账号 [type]", "paramKeys": [] } } @@ -5647,6 +6508,41 @@ const docTemplate = `{ ] } }, + "/containers/download/log": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.ContainerLog" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Download container logs", + "tags": [ + "Container" + ] + } + }, "/containers/files/content": { "post": { "consumes": [ @@ -6502,7 +7398,10 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Load container stats size" + "summary": "Load container stats size", + "tags": [ + "Container" + ] } }, "/containers/limit": { @@ -6523,7 +7422,10 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Load container limits" + "summary": "Load container limits", + "tags": [ + "Container" + ] } }, "/containers/list": { @@ -6613,7 +7515,10 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Load container stats" + "summary": "Load container stats", + "tags": [ + "Container" + ] } }, "/containers/logoption/update": { @@ -8488,6 +9393,27 @@ const docTemplate = `{ ] } }, + "/core/auth/welcome": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get welcome page", + "tags": [ + "Auth" + ] + } + }, "/core/backups": { "post": { "consumes": [ @@ -8537,6 +9463,15 @@ const docTemplate = `{ "consumes": [ "application/json" ], + "parameters": [ + { + "description": "clientType", + "in": "path", + "name": "clientType", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -8676,8 +9611,8 @@ const docTemplate = `{ "bodyKeys": [ "type" ], - "formatEN": "update backup account [types]", - "formatZH": "更新备份账号 [types]", + "formatEN": "update backup account [type]", + "formatZH": "更新备份账号 [type]", "paramKeys": [] } } @@ -8727,44 +9662,6 @@ const docTemplate = `{ } } }, - "/core/commands/command": { - "get": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.OperateByType" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/dto.CommandInfo" - } - } - }, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "List commands", - "tags": [ - "Command" - ] - } - }, "/core/commands/del": { "post": { "consumes": [ @@ -8880,6 +9777,44 @@ const docTemplate = `{ } } }, + "/core/commands/list": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByType" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.CommandInfo" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List commands", + "tags": [ + "Command" + ] + } + }, "/core/commands/search": { "post": { "consumes": [ @@ -8919,7 +9854,7 @@ const docTemplate = `{ } }, "/core/commands/tree": { - "get": { + "post": { "consumes": [ "application/json" ], @@ -9003,6 +9938,37 @@ const docTemplate = `{ } } }, + "/core/commands/upload": { + "post": { + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Upload command csv for list", + "tags": [ + "Command" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "upload quick commands with csv", + "formatZH": "上传快速命令文件", + "paramKeys": [] + } + } + }, "/core/groups": { "post": { "consumes": [ @@ -9415,6 +10381,53 @@ const docTemplate = `{ } } }, + "/core/script/run": { + "get": { + "parameters": [ + { + "description": "cols", + "in": "query", + "name": "cols", + "type": "integer" + }, + { + "description": "rows", + "in": "query", + "name": "rows", + "type": "integer" + }, + { + "description": "script_id", + "in": "query", + "name": "script_id", + "type": "integer" + }, + { + "description": "operateNode", + "in": "query", + "name": "operateNode", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Run script", + "tags": [ + "ScriptLibrary" + ] + } + }, "/core/script/search": { "post": { "consumes": [ @@ -10022,6 +11035,34 @@ const docTemplate = `{ ] } }, + "/core/settings/ssl/reload": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Reload SSL", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "reload system SSL", + "formatZH": "重载系统 SSL", + "paramKeys": [] + } + } + }, "/core/settings/ssl/update": { "post": { "consumes": [ @@ -11760,6 +12801,15 @@ const docTemplate = `{ }, "/databases/db/:name": { "get": { + "parameters": [ + { + "description": "name", + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -11926,6 +12976,15 @@ const docTemplate = `{ }, "/databases/db/item/:type": { "get": { + "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -11953,6 +13012,15 @@ const docTemplate = `{ }, "/databases/db/list/:type": { "get": { + "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -12825,6 +13893,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/dto.PostgresqlLoadDB" } + }, + { + "description": "database", + "in": "path", + "name": "database", + "required": true, + "type": "string" } ], "responses": { @@ -13131,7 +14206,7 @@ const docTemplate = `{ "database", "username" ], - "formatEN": "Update [user] privileges of database [database]", + "formatEN": "Update [username] privileges of database [database]", "formatZH": "更新数据库 [database] 用户 [username] 权限", "paramKeys": [] } @@ -13175,6 +14250,27 @@ const docTemplate = `{ ] } }, + "/databases/redis/check": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check has cli", + "tags": [ + "Database Redis" + ] + } + }, "/databases/redis/conf": { "post": { "consumes": [ @@ -14676,8 +15772,8 @@ const docTemplate = `{ "path", "mode" ], - "formatEN": "Change mode [paths] =\u003e [mode]", - "formatZH": "修改权限 [paths] =\u003e [mode]", + "formatEN": "Change mode [path] =\u003e [mode]", + "formatZH": "修改权限 [path] =\u003e [mode]", "paramKeys": [] } } @@ -14794,8 +15890,8 @@ const docTemplate = `{ "user", "group" ], - "formatEN": "Change owner [paths] =\u003e [user]/[group]", - "formatZH": "修改用户/组 [paths] =\u003e [user]/[group]", + "formatEN": "Change owner [path] =\u003e [user]/[group]", + "formatZH": "修改用户/组 [path] =\u003e [user]/[group]", "paramKeys": [] } } @@ -14847,9 +15943,16 @@ const docTemplate = `{ } } }, - "/files/read": { + "/files/read/{type}": { "post": { "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + }, { "description": "request", "in": "body", @@ -15764,6 +16867,48 @@ const docTemplate = `{ } } }, + "/files/wget/process": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Wget process", + "tags": [ + "File" + ] + } + }, + "/files/wget/process/keys": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Process keys", + "tags": [ + "File" + ] + } + }, "/files/wget/stop": { "post": { "consumes": [ @@ -16000,6 +17145,72 @@ const docTemplate = `{ } } }, + "/health/check": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check health", + "tags": [ + "Health" + ] + } + }, + "/hosts": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.HostOperate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create host", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "name", + "addr" + ], + "formatEN": "create host [name][addr]", + "formatZH": "创建主机 [name][addr]", + "paramKeys": [] + } + } + }, "/hosts/components/{name}": { "get": { "consumes": [ @@ -16036,6 +17247,59 @@ const docTemplate = `{ ] } }, + "/hosts/del": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByIDs" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete host", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [ + { + "db": "hosts", + "input_column": "id", + "input_value": "ids", + "isList": true, + "output_column": "name", + "output_value": "names" + } + ], + "bodyKeys": [ + "ids" + ], + "formatEN": "delete host [names]", + "formatZH": "删除主机 [names]", + "paramKeys": [] + } + } + }, "/hosts/disks": { "get": { "description": "Get information about all disks including partitioned and unpartitioned disks", @@ -16444,7 +17708,7 @@ const docTemplate = `{ } } }, - "/hosts/firewall/filter/search": { + "/hosts/firewall/filter/rule/search": { "post": { "consumes": [ "application/json" @@ -16801,6 +18065,41 @@ const docTemplate = `{ ] } }, + "/hosts/info": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByID" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get host by ID", + "tags": [ + "Host" + ] + } + }, "/hosts/monitor/clean": { "post": { "responses": { @@ -16829,6 +18128,48 @@ const docTemplate = `{ } } }, + "/hosts/monitor/iooptions": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get IO options", + "tags": [ + "Monitor" + ] + } + }, + "/hosts/monitor/netoptions": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get network options", + "tags": [ + "Monitor" + ] + } + }, "/hosts/monitor/search": { "post": { "parameters": [ @@ -16927,12 +18268,47 @@ const docTemplate = `{ "key", "value" ], - "formatEN": "update default monitor [name]-[value]", - "formatZH": "修改默认监控网卡 [name]-[value]", + "formatEN": "update default monitor [key]-[value]", + "formatZH": "修改默认监控网卡 [key]-[value]", "paramKeys": [] } } }, + "/hosts/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.SearchPageWithGroup" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Search host", + "tags": [ + "Host" + ] + } + }, "/hosts/ssh/cert": { "post": { "consumes": [ @@ -17396,6 +18772,175 @@ const docTemplate = `{ } } }, + "/hosts/terminal/container": { + "get": { + "parameters": [ + { + "description": "cols", + "in": "query", + "name": "cols", + "type": "integer" + }, + { + "description": "rows", + "in": "query", + "name": "rows", + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Ws container terminal", + "tags": [ + "Terminal" + ] + } + }, + "/hosts/terminal/local": { + "get": { + "parameters": [ + { + "description": "command", + "in": "query", + "name": "command", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Ws local terminal", + "tags": [ + "Terminal" + ] + } + }, + "/hosts/terminal/ssh": { + "get": { + "parameters": [ + { + "description": "id", + "in": "query", + "name": "id", + "type": "integer" + }, + { + "description": "command", + "in": "query", + "name": "command", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Ws host SSH", + "tags": [ + "Terminal" + ] + } + }, + "/hosts/test/byid": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByID" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Test by ID", + "tags": [ + "Host" + ] + } + }, + "/hosts/test/byinfo": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.HostConnTest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Test by info", + "tags": [ + "Host" + ] + } + }, "/hosts/tool/config/get": { "post": { "consumes": [ @@ -17759,6 +19304,140 @@ const docTemplate = `{ ] } }, + "/hosts/tree": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.SearchForTree" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Host tree", + "tags": [ + "Host" + ] + } + }, + "/hosts/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.HostOperate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update host", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "name", + "addr" + ], + "formatEN": "update host [name][addr]", + "formatZH": "更新主机 [name][addr]", + "paramKeys": [] + } + } + }, + "/hosts/update/group": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.ChangeGroup" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update host group", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [ + { + "db": "hosts", + "input_column": "id", + "input_value": "id", + "isList": false, + "output_column": "name", + "output_value": "name" + } + ], + "bodyKeys": [ + "id", + "groupID" + ], + "formatEN": "update host [name] group", + "formatZH": "更新主机 [name] 分组", + "paramKeys": [] + } + } + }, "/logs/system/files": { "get": { "responses": { @@ -18294,6 +19973,27 @@ const docTemplate = `{ } } }, + "/process/ws": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Process ws", + "tags": [ + "Process" + ] + } + }, "/process/{pid}": { "get": { "parameters": [ @@ -18382,7 +20082,7 @@ const docTemplate = `{ "in": "path", "name": "id", "required": true, - "type": "string" + "type": "integer" } ], "responses": { @@ -18445,8 +20145,8 @@ const docTemplate = `{ "bodyKeys": [ "id" ], - "formatEN": "Delete runtime [name]", - "formatZH": "删除运行环境 [name]", + "formatEN": "Delete runtime [id]", + "formatZH": "删除运行环境 [id]", "paramKeys": [] } } @@ -18456,6 +20156,15 @@ const docTemplate = `{ "consumes": [ "application/json" ], + "parameters": [ + { + "description": "id", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + } + ], "responses": { "200": { "description": "OK", @@ -18636,8 +20345,8 @@ const docTemplate = `{ "bodyKeys": [ "id" ], - "formatEN": "Operate runtime [name]", - "formatZH": "操作运行环境 [name]", + "formatEN": "Operate runtime [id]", + "formatZH": "操作运行环境 [id]", "paramKeys": [] } } @@ -18653,7 +20362,7 @@ const docTemplate = `{ "in": "path", "name": "id", "required": true, - "type": "string" + "type": "integer" } ], "responses": { @@ -19618,6 +21327,72 @@ const docTemplate = `{ ] } }, + "/settings/files/ai/search": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get file manage AI setting info", + "tags": [ + "System Setting" + ] + } + }, + "/settings/files/ai/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.FileManageAIInfo" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update file manage AI setting", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "aiStatus", + "aiAccountId" + ], + "formatEN": "update file manage AI setting [aiStatus][aiAccountId]", + "formatZH": "更新文件管理 AI 设置 [aiStatus][aiAccountId]", + "paramKeys": [] + } + } + }, "/settings/search": { "post": { "responses": { @@ -20102,6 +21877,27 @@ const docTemplate = `{ ] } }, + "/settings/ssh/check": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check local conn", + "tags": [ + "System Setting" + ] + } + }, "/settings/ssh/check/info": { "post": { "responses": { @@ -20150,7 +21946,7 @@ const docTemplate = `{ ] } }, - "/settings/ssh/conn/default": { + "/settings/ssh/default": { "post": { "consumes": [ "application/json" @@ -20194,6 +21990,72 @@ const docTemplate = `{ } } }, + "/settings/terminal/ai/search": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get terminal AI setting info", + "tags": [ + "System Setting" + ] + } + }, + "/settings/terminal/ai/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.TerminalAIInfo" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update terminal AI setting", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "aiStatus", + "aiAccountId" + ], + "formatEN": "update terminal AI setting [aiStatus][aiAccountId]", + "formatZH": "更新终端 AI 设置 [aiStatus][aiAccountId]", + "paramKeys": [] + } + } + }, "/settings/update": { "post": { "consumes": [ @@ -21879,6 +23741,13 @@ const docTemplate = `{ "name": "id", "required": true, "type": "integer" + }, + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" } ], "responses": { @@ -21951,6 +23820,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/request.WebsiteHTTPSOp" } + }, + { + "description": "id", + "in": "path", + "name": "id", + "required": true, + "type": "string" } ], "responses": { @@ -22368,7 +24244,7 @@ const docTemplate = `{ ] } }, - "/websites/batch/https": { + "/websites/batch/operate": { "post": { "consumes": [ "application/json" @@ -22380,7 +24256,7 @@ const docTemplate = `{ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/request.BatchWebsiteHttps" + "$ref": "#/definitions/request.BatchWebsiteOp" } } ], @@ -22397,13 +24273,13 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Batch set HTTPS for websites", + "summary": "Batch operate websites", "tags": [ "Website" ] } }, - "/websites/batch/operate": { + "/websites/batch/ssl": { "post": { "consumes": [ "application/json" @@ -22415,7 +24291,7 @@ const docTemplate = `{ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/request.BatchWebsiteOp" + "$ref": "#/definitions/request.BatchWebsiteHttps" } } ], @@ -22432,7 +24308,7 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Batch operate websites", + "summary": "Batch set HTTPS for websites", "tags": [ "Website" ] @@ -23074,6 +24950,15 @@ const docTemplate = `{ "consumes": [ "application/json" ], + "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -23797,8 +25682,8 @@ const docTemplate = `{ ] } }, - "/websites/lbs": { - "get": { + "/websites/group/change": { + "post": { "consumes": [ "application/json" ], @@ -23809,19 +25694,13 @@ const docTemplate = `{ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/request.WebsiteCommonReq" + "$ref": "#/definitions/dto.UpdateGroup" } } ], "responses": { "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/dto.NginxUpstream" - }, - "type": "array" - } + "description": "OK" } }, "security": [ @@ -23832,10 +25711,20 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Get website upstreams", + "summary": "Change website group", "tags": [ "Website" - ] + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "group", + "newGroup" + ], + "formatEN": "change website group [group] to [newGroup]", + "formatZH": "网站分组 [group] 迁移到 [newGroup]", + "paramKeys": [] + } } }, "/websites/lbs/create": { @@ -24709,7 +26598,10 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Get website proxy cache config" + "summary": "Get website proxy cache config", + "tags": [ + "Website" + ] } }, "/websites/realip/config": { @@ -25365,6 +27257,50 @@ const docTemplate = `{ } } }, + "/websites/ssl/import": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/model.WebsiteSSL" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Import master SSL", + "tags": [ + "Website SSL" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "primaryDomain" + ], + "formatEN": "import master SSL [primaryDomain]", + "formatZH": "导入主节点证书 [primaryDomain]", + "paramKeys": [] + } + } + }, "/websites/ssl/list": { "post": { "consumes": [ @@ -25820,6 +27756,45 @@ const docTemplate = `{ "paramKeys": [] } } + }, + "/websites/{id}/lbs": { + "get": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "id", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.NginxUpstream" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get website upstreams", + "tags": [ + "Website" + ] + } } }, "definitions": { @@ -27929,6 +29904,206 @@ const docTemplate = `{ ], "type": "object" }, + "dto.AlertConfigTest": { + "properties": { + "displayName": { + "type": "string" + }, + "encryption": { + "description": "\"ssl\" / \"tls\" / \"none\"", + "type": "string" + }, + "host": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "recipient": { + "type": "string" + }, + "sender": { + "type": "string" + }, + "userName": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AlertConfigUpdate": { + "properties": { + "config": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AlertCreate": { + "properties": { + "advancedParams": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "cycle": { + "type": "integer" + }, + "method": { + "type": "string" + }, + "project": { + "type": "string" + }, + "sendCount": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "method", + "type" + ], + "type": "object" + }, + "dto.AlertLogSearch": { + "properties": { + "count": { + "type": "integer" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "status": { + "type": "string" + } + }, + "required": [ + "page", + "pageSize" + ], + "type": "object" + }, + "dto.AlertSearch": { + "properties": { + "method": { + "type": "string" + }, + "order": { + "enum": [ + "null", + "ascending", + "descending" + ], + "type": "string" + }, + "orderBy": { + "enum": [ + "created_at" + ], + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "order", + "orderBy", + "page", + "pageSize" + ], + "type": "object" + }, + "dto.AlertUpdate": { + "properties": { + "advancedParams": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "cycle": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "method": { + "type": "string" + }, + "project": { + "type": "string" + }, + "sendCount": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "dto.AlertUpdateStatus": { + "properties": { + "id": { + "type": "integer" + }, + "status": { + "type": "string" + } + }, + "required": [ + "id", + "status" + ], + "type": "object" + }, "dto.ApiInterfaceConfig": { "properties": { "apiInterfaceStatus": { @@ -29306,6 +31481,29 @@ const docTemplate = `{ }, "type": "object" }, + "dto.ContainerLog": { + "properties": { + "container": { + "type": "string" + }, + "containerType": { + "type": "string" + }, + "since": { + "type": "string" + }, + "tail": { + "type": "integer" + }, + "timestamp": { + "type": "boolean" + } + }, + "required": [ + "container" + ], + "type": "object" + }, "dto.ContainerNetwork": { "properties": { "ipv4": { @@ -29618,6 +31816,20 @@ const docTemplate = `{ ], "type": "object" }, + "dto.CronJobReq": { + "properties": { + "name": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, "dto.CronjobBatchDelete": { "properties": { "cleanData": { @@ -30627,6 +32839,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.DeleteRequest": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, "dto.DeviceBaseInfo": { "properties": { "dns": { @@ -30880,6 +33103,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.FileManageAIInfo": { + "properties": { + "aiAccountId": { + "type": "string" + }, + "aiStatus": { + "type": "string" + } + }, + "type": "object" + }, "dto.FilePath": { "properties": { "path": { @@ -31211,6 +33445,43 @@ const docTemplate = `{ ], "type": "object" }, + "dto.HostConnTest": { + "properties": { + "addr": { + "type": "string" + }, + "authMode": { + "enum": [ + "password", + "key" + ], + "type": "string" + }, + "passPhrase": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "privateKey": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "required": [ + "addr", + "port", + "user" + ], + "type": "object" + }, "dto.HostHelper": { "properties": { "host": { @@ -31222,6 +33493,58 @@ const docTemplate = `{ }, "type": "object" }, + "dto.HostOperate": { + "properties": { + "addr": { + "type": "string" + }, + "authMode": { + "enum": [ + "password", + "key" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "groupID": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "passPhrase": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "privateKey": { + "type": "string" + }, + "rememberPassword": { + "type": "boolean" + }, + "user": { + "type": "string" + } + }, + "required": [ + "addr", + "port", + "user" + ], + "type": "object" + }, "dto.ImageBuild": { "properties": { "args": { @@ -34260,6 +36583,14 @@ const docTemplate = `{ ], "type": "object" }, + "dto.SearchForTree": { + "properties": { + "info": { + "type": "string" + } + }, + "type": "object" + }, "dto.SearchLgLogWithPage": { "properties": { "endTime": { @@ -34857,6 +37188,34 @@ const docTemplate = `{ }, "type": "object" }, + "dto.TerminalAIInfo": { + "properties": { + "aiAccountId": { + "type": "string" + }, + "aiPrefix": { + "enum": [ + "@ai", + "#ai", + "/ai" + ], + "type": "string" + }, + "aiRiskCommands": { + "type": "string" + }, + "aiRiskCommandsDefault": { + "type": "string" + }, + "aiStatus": { + "type": "string" + } + }, + "required": [ + "aiPrefix" + ], + "type": "object" + }, "dto.TerminalInfo": { "properties": { "backgroundColor": { @@ -34976,6 +37335,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.UpdateGroup": { + "properties": { + "group": { + "type": "integer" + }, + "newGroup": { + "type": "integer" + } + }, + "type": "object" + }, "dto.Upgrade": { "properties": { "version": { @@ -35913,6 +38283,31 @@ const docTemplate = `{ ], "type": "object" }, + "request.AppInstallSort": { + "properties": { + "items": { + "items": { + "$ref": "#/definitions/request.AppInstallSortItem" + }, + "type": "array" + } + }, + "required": [ + "items" + ], + "type": "object" + }, + "request.AppInstallSortItem": { + "properties": { + "installID": { + "type": "integer" + }, + "sortOrder": { + "type": "integer" + } + }, + "type": "object" + }, "request.AppInstalledInfo": { "properties": { "key": { @@ -38612,6 +41007,164 @@ const docTemplate = `{ ], "type": "object" }, + "request.TensorRTLLMCreate": { + "properties": { + "command": { + "type": "string" + }, + "containerName": { + "type": "string" + }, + "environments": { + "items": { + "$ref": "#/definitions/request.Environment" + }, + "type": "array" + }, + "exposedPorts": { + "items": { + "$ref": "#/definitions/request.ExposedPort" + }, + "type": "array" + }, + "image": { + "type": "string" + }, + "modelDir": { + "type": "string" + }, + "modelSpeedup": { + "type": "boolean" + }, + "modelType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "volumes": { + "items": { + "$ref": "#/definitions/request.Volume" + }, + "type": "array" + } + }, + "required": [ + "command", + "containerName", + "image", + "modelDir", + "name", + "version" + ], + "type": "object" + }, + "request.TensorRTLLMDelete": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "request.TensorRTLLMOperate": { + "properties": { + "id": { + "type": "integer" + }, + "operate": { + "type": "string" + } + }, + "required": [ + "id", + "operate" + ], + "type": "object" + }, + "request.TensorRTLLMSearch": { + "properties": { + "name": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + } + }, + "required": [ + "page", + "pageSize" + ], + "type": "object" + }, + "request.TensorRTLLMUpdate": { + "properties": { + "command": { + "type": "string" + }, + "containerName": { + "type": "string" + }, + "environments": { + "items": { + "$ref": "#/definitions/request.Environment" + }, + "type": "array" + }, + "exposedPorts": { + "items": { + "$ref": "#/definitions/request.ExposedPort" + }, + "type": "array" + }, + "id": { + "type": "integer" + }, + "image": { + "type": "string" + }, + "modelDir": { + "type": "string" + }, + "modelSpeedup": { + "type": "boolean" + }, + "modelType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "volumes": { + "items": { + "$ref": "#/definitions/request.Volume" + }, + "type": "array" + } + }, + "required": [ + "command", + "containerName", + "id", + "image", + "modelDir", + "name", + "version" + ], + "type": "object" + }, "request.Volume": { "properties": { "source": { diff --git a/core/cmd/server/docs/swagger.json b/core/cmd/server/docs/swagger.json index d9c831368f5d..738566f30499 100644 --- a/core/cmd/server/docs/swagger.json +++ b/core/cmd/server/docs/swagger.json @@ -2425,6 +2425,50 @@ ] } }, + "/ai/domain/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OllamaBindDomain" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update bind domain", + "tags": [ + "AI" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "domain" + ], + "formatEN": "update Ollama bind domain [domain]", + "formatZH": "更新 Ollama 绑定域名 [domain]", + "paramKeys": [] + } + } + }, "/ai/gpu/load": { "get": { "consumes": [ @@ -2449,6 +2493,27 @@ ] } }, + "/ai/gpu/options": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get CPU options", + "tags": [ + "AI" + ] + } + }, "/ai/gpu/search": { "post": { "parameters": [ @@ -3054,6 +3119,718 @@ } } }, + "/ai/tensorrt/create": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMCreate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "name" + ], + "formatEN": "create TensorRT LLM [name]", + "formatZH": "创建 TensorRT LLM [name]", + "paramKeys": [] + } + } + }, + "/ai/tensorrt/delete": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMDelete" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id" + ], + "formatEN": "delete TensorRT LLM [id]", + "formatZH": "删除 TensorRT LLM [id]", + "paramKeys": [] + } + } + }, + "/ai/tensorrt/operate": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMOperate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Operate TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "operate" + ], + "formatEN": "operate TensorRT LLM [id][operate]", + "formatZH": "操作 TensorRT LLM [id][operate]", + "paramKeys": [] + } + } + }, + "/ai/tensorrt/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMSearch" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page TensorRT LLMs", + "tags": [ + "TensorRT LLM" + ] + } + }, + "/ai/tensorrt/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.TensorRTLLMUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update TensorRT LLM", + "tags": [ + "TensorRT LLM" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "name" + ], + "formatEN": "update TensorRT LLM [id][name]", + "formatZH": "更新 TensorRT LLM [id][name]", + "paramKeys": [] + } + } + }, + "/alert": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertCreate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create alert", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "type", + "method" + ], + "formatEN": "create alert [type][method]", + "formatZH": "创建告警任务 [type][method]", + "paramKeys": [] + } + } + }, + "/alert/clams/list": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get clams", + "tags": [ + "Alert" + ] + } + }, + "/alert/config/del": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.DeleteRequest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete alert config", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id" + ], + "formatEN": "delete alert config [id]", + "formatZH": "删除告警配置 [id]", + "paramKeys": [] + } + } + }, + "/alert/config/info": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get alert config", + "tags": [ + "Alert" + ] + } + }, + "/alert/config/test": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertConfigTest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Test alert config", + "tags": [ + "Alert" + ] + } + }, + "/alert/config/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertConfigUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update alert config", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "type", + "title" + ], + "formatEN": "update alert config [type][title]", + "formatZH": "更新告警配置 [type][title]", + "paramKeys": [] + } + } + }, + "/alert/cronjob/list": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.CronJobReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get cron jobs", + "tags": [ + "Alert" + ] + } + }, + "/alert/del": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.DeleteRequest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete alert", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id" + ], + "formatEN": "delete alert [id]", + "formatZH": "删除告警任务 [id]", + "paramKeys": [] + } + } + }, + "/alert/disks/list": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get disks", + "tags": [ + "Alert" + ] + } + }, + "/alert/logs/clean": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Clean alert logs", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "clean alert logs", + "formatZH": "清空告警日志", + "paramKeys": [] + } + } + }, + "/alert/logs/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertLogSearch" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page alert logs", + "tags": [ + "Alert" + ] + } + }, + "/alert/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertSearch" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page alert", + "tags": [ + "Alert" + ] + } + }, + "/alert/status": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertUpdateStatus" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update alert status", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "status" + ], + "formatEN": "update alert [id] status [status]", + "formatZH": "更新告警任务 [id] 状态 [status]", + "paramKeys": [] + } + } + }, + "/alert/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AlertUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update alert", + "tags": [ + "Alert" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "id", + "type" + ], + "formatEN": "update alert [id][type]", + "formatZH": "更新告警任务 [id][type]", + "paramKeys": [] + } + } + }, "/apps/:key": { "get": { "consumes": [ @@ -3137,7 +3914,7 @@ { "description": "app 类型", "in": "path", - "name": "version", + "name": "type", "required": true, "type": "string" } @@ -3173,9 +3950,9 @@ { "description": "app key", "in": "path", - "name": "appId", + "name": "appKey", "required": true, - "type": "integer" + "type": "string" }, { "description": "app version", @@ -3216,7 +3993,7 @@ { "description": "id", "in": "path", - "name": "appId", + "name": "id", "required": true, "type": "integer" } @@ -3250,11 +4027,11 @@ ], "parameters": [ { - "description": "app id", + "description": "app key", "in": "path", - "name": "appId", + "name": "key", "required": true, - "type": "integer" + "type": "string" } ], "responses": { @@ -3823,7 +4600,7 @@ "in": "path", "name": "appInstallId", "required": true, - "type": "string" + "type": "integer" } ], "responses": { @@ -3985,6 +4762,48 @@ ] } }, + "/apps/installed/sort/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.AppInstallSort" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update app install sort", + "tags": [ + "App" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "update installed app sort", + "formatZH": "更新已安装应用排序", + "paramKeys": [] + } + } + }, "/apps/installed/sync": { "post": { "responses": { @@ -4018,15 +4837,6 @@ "consumes": [ "application/json" ], - "parameters": [ - { - "description": "request", - "in": "path", - "name": "appInstallId", - "required": true, - "type": "integer" - } - ], "responses": { "200": { "description": "OK", @@ -4185,6 +4995,27 @@ } } }, + "/apps/tags": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get app tags", + "tags": [ + "App" + ] + } + }, "/backups": { "post": { "consumes": [ @@ -4316,7 +5147,37 @@ ] } }, - "/backups/check": { + "/backups/check/{name}": { + "get": { + "parameters": [ + { + "description": "name", + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check backup used", + "tags": [ + "Backup Account" + ] + } + }, + "/backups/conn/check": { "post": { "consumes": [ "application/json" @@ -4954,8 +5815,8 @@ "bodyKeys": [ "type" ], - "formatEN": "update backup account [types]", - "formatZH": "更新备份账号 [types]", + "formatEN": "update backup account [type]", + "formatZH": "更新备份账号 [type]", "paramKeys": [] } } @@ -5643,6 +6504,41 @@ ] } }, + "/containers/download/log": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.ContainerLog" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Download container logs", + "tags": [ + "Container" + ] + } + }, "/containers/files/content": { "post": { "consumes": [ @@ -6498,7 +7394,10 @@ "Timestamp": [] } ], - "summary": "Load container stats size" + "summary": "Load container stats size", + "tags": [ + "Container" + ] } }, "/containers/limit": { @@ -6519,7 +7418,10 @@ "Timestamp": [] } ], - "summary": "Load container limits" + "summary": "Load container limits", + "tags": [ + "Container" + ] } }, "/containers/list": { @@ -6609,7 +7511,10 @@ "Timestamp": [] } ], - "summary": "Load container stats" + "summary": "Load container stats", + "tags": [ + "Container" + ] } }, "/containers/logoption/update": { @@ -8484,6 +9389,27 @@ ] } }, + "/core/auth/welcome": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get welcome page", + "tags": [ + "Auth" + ] + } + }, "/core/backups": { "post": { "consumes": [ @@ -8533,6 +9459,15 @@ "consumes": [ "application/json" ], + "parameters": [ + { + "description": "clientType", + "in": "path", + "name": "clientType", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -8672,8 +9607,8 @@ "bodyKeys": [ "type" ], - "formatEN": "update backup account [types]", - "formatZH": "更新备份账号 [types]", + "formatEN": "update backup account [type]", + "formatZH": "更新备份账号 [type]", "paramKeys": [] } } @@ -8723,44 +9658,6 @@ } } }, - "/core/commands/command": { - "get": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.OperateByType" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/dto.CommandInfo" - } - } - }, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "List commands", - "tags": [ - "Command" - ] - } - }, "/core/commands/del": { "post": { "consumes": [ @@ -8876,6 +9773,44 @@ } } }, + "/core/commands/list": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByType" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.CommandInfo" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List commands", + "tags": [ + "Command" + ] + } + }, "/core/commands/search": { "post": { "consumes": [ @@ -8915,7 +9850,7 @@ } }, "/core/commands/tree": { - "get": { + "post": { "consumes": [ "application/json" ], @@ -8999,6 +9934,37 @@ } } }, + "/core/commands/upload": { + "post": { + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Upload command csv for list", + "tags": [ + "Command" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "upload quick commands with csv", + "formatZH": "上传快速命令文件", + "paramKeys": [] + } + } + }, "/core/groups": { "post": { "consumes": [ @@ -9411,6 +10377,53 @@ } } }, + "/core/script/run": { + "get": { + "parameters": [ + { + "description": "cols", + "in": "query", + "name": "cols", + "type": "integer" + }, + { + "description": "rows", + "in": "query", + "name": "rows", + "type": "integer" + }, + { + "description": "script_id", + "in": "query", + "name": "script_id", + "type": "integer" + }, + { + "description": "operateNode", + "in": "query", + "name": "operateNode", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Run script", + "tags": [ + "ScriptLibrary" + ] + } + }, "/core/script/search": { "post": { "consumes": [ @@ -10018,6 +11031,34 @@ ] } }, + "/core/settings/ssl/reload": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Reload SSL", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "reload system SSL", + "formatZH": "重载系统 SSL", + "paramKeys": [] + } + } + }, "/core/settings/ssl/update": { "post": { "consumes": [ @@ -11756,6 +12797,15 @@ }, "/databases/db/:name": { "get": { + "parameters": [ + { + "description": "name", + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -11922,6 +12972,15 @@ }, "/databases/db/item/:type": { "get": { + "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -11949,6 +13008,15 @@ }, "/databases/db/list/:type": { "get": { + "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -12821,6 +13889,13 @@ "schema": { "$ref": "#/definitions/dto.PostgresqlLoadDB" } + }, + { + "description": "database", + "in": "path", + "name": "database", + "required": true, + "type": "string" } ], "responses": { @@ -13127,7 +14202,7 @@ "database", "username" ], - "formatEN": "Update [user] privileges of database [database]", + "formatEN": "Update [username] privileges of database [database]", "formatZH": "更新数据库 [database] 用户 [username] 权限", "paramKeys": [] } @@ -13171,6 +14246,27 @@ ] } }, + "/databases/redis/check": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check has cli", + "tags": [ + "Database Redis" + ] + } + }, "/databases/redis/conf": { "post": { "consumes": [ @@ -14672,8 +15768,8 @@ "path", "mode" ], - "formatEN": "Change mode [paths] =\u003e [mode]", - "formatZH": "修改权限 [paths] =\u003e [mode]", + "formatEN": "Change mode [path] =\u003e [mode]", + "formatZH": "修改权限 [path] =\u003e [mode]", "paramKeys": [] } } @@ -14790,8 +15886,8 @@ "user", "group" ], - "formatEN": "Change owner [paths] =\u003e [user]/[group]", - "formatZH": "修改用户/组 [paths] =\u003e [user]/[group]", + "formatEN": "Change owner [path] =\u003e [user]/[group]", + "formatZH": "修改用户/组 [path] =\u003e [user]/[group]", "paramKeys": [] } } @@ -14843,9 +15939,16 @@ } } }, - "/files/read": { + "/files/read/{type}": { "post": { "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + }, { "description": "request", "in": "body", @@ -15760,6 +16863,48 @@ } } }, + "/files/wget/process": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Wget process", + "tags": [ + "File" + ] + } + }, + "/files/wget/process/keys": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Process keys", + "tags": [ + "File" + ] + } + }, "/files/wget/stop": { "post": { "consumes": [ @@ -15996,6 +17141,72 @@ } } }, + "/health/check": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check health", + "tags": [ + "Health" + ] + } + }, + "/hosts": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.HostOperate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create host", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "name", + "addr" + ], + "formatEN": "create host [name][addr]", + "formatZH": "创建主机 [name][addr]", + "paramKeys": [] + } + } + }, "/hosts/components/{name}": { "get": { "consumes": [ @@ -16032,6 +17243,59 @@ ] } }, + "/hosts/del": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByIDs" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete host", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [ + { + "db": "hosts", + "input_column": "id", + "input_value": "ids", + "isList": true, + "output_column": "name", + "output_value": "names" + } + ], + "bodyKeys": [ + "ids" + ], + "formatEN": "delete host [names]", + "formatZH": "删除主机 [names]", + "paramKeys": [] + } + } + }, "/hosts/disks": { "get": { "description": "Get information about all disks including partitioned and unpartitioned disks", @@ -16440,7 +17704,7 @@ } } }, - "/hosts/firewall/filter/search": { + "/hosts/firewall/filter/rule/search": { "post": { "consumes": [ "application/json" @@ -16797,6 +18061,41 @@ ] } }, + "/hosts/info": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByID" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get host by ID", + "tags": [ + "Host" + ] + } + }, "/hosts/monitor/clean": { "post": { "responses": { @@ -16825,6 +18124,48 @@ } } }, + "/hosts/monitor/iooptions": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get IO options", + "tags": [ + "Monitor" + ] + } + }, + "/hosts/monitor/netoptions": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get network options", + "tags": [ + "Monitor" + ] + } + }, "/hosts/monitor/search": { "post": { "parameters": [ @@ -16923,12 +18264,47 @@ "key", "value" ], - "formatEN": "update default monitor [name]-[value]", - "formatZH": "修改默认监控网卡 [name]-[value]", + "formatEN": "update default monitor [key]-[value]", + "formatZH": "修改默认监控网卡 [key]-[value]", "paramKeys": [] } } }, + "/hosts/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.SearchPageWithGroup" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Search host", + "tags": [ + "Host" + ] + } + }, "/hosts/ssh/cert": { "post": { "consumes": [ @@ -17392,6 +18768,175 @@ } } }, + "/hosts/terminal/container": { + "get": { + "parameters": [ + { + "description": "cols", + "in": "query", + "name": "cols", + "type": "integer" + }, + { + "description": "rows", + "in": "query", + "name": "rows", + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Ws container terminal", + "tags": [ + "Terminal" + ] + } + }, + "/hosts/terminal/local": { + "get": { + "parameters": [ + { + "description": "command", + "in": "query", + "name": "command", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Ws local terminal", + "tags": [ + "Terminal" + ] + } + }, + "/hosts/terminal/ssh": { + "get": { + "parameters": [ + { + "description": "id", + "in": "query", + "name": "id", + "type": "integer" + }, + { + "description": "command", + "in": "query", + "name": "command", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Ws host SSH", + "tags": [ + "Terminal" + ] + } + }, + "/hosts/test/byid": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperateByID" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Test by ID", + "tags": [ + "Host" + ] + } + }, + "/hosts/test/byinfo": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.HostConnTest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Test by info", + "tags": [ + "Host" + ] + } + }, "/hosts/tool/config/get": { "post": { "consumes": [ @@ -17755,6 +19300,140 @@ ] } }, + "/hosts/tree": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.SearchForTree" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Host tree", + "tags": [ + "Host" + ] + } + }, + "/hosts/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.HostOperate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update host", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "name", + "addr" + ], + "formatEN": "update host [name][addr]", + "formatZH": "更新主机 [name][addr]", + "paramKeys": [] + } + } + }, + "/hosts/update/group": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.ChangeGroup" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update host group", + "tags": [ + "Host" + ], + "x-panel-log": { + "BeforeFunctions": [ + { + "db": "hosts", + "input_column": "id", + "input_value": "id", + "isList": false, + "output_column": "name", + "output_value": "name" + } + ], + "bodyKeys": [ + "id", + "groupID" + ], + "formatEN": "update host [name] group", + "formatZH": "更新主机 [name] 分组", + "paramKeys": [] + } + } + }, "/logs/system/files": { "get": { "responses": { @@ -18290,6 +19969,27 @@ } } }, + "/process/ws": { + "get": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Process ws", + "tags": [ + "Process" + ] + } + }, "/process/{pid}": { "get": { "parameters": [ @@ -18378,7 +20078,7 @@ "in": "path", "name": "id", "required": true, - "type": "string" + "type": "integer" } ], "responses": { @@ -18441,8 +20141,8 @@ "bodyKeys": [ "id" ], - "formatEN": "Delete runtime [name]", - "formatZH": "删除运行环境 [name]", + "formatEN": "Delete runtime [id]", + "formatZH": "删除运行环境 [id]", "paramKeys": [] } } @@ -18452,6 +20152,15 @@ "consumes": [ "application/json" ], + "parameters": [ + { + "description": "id", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + } + ], "responses": { "200": { "description": "OK", @@ -18632,8 +20341,8 @@ "bodyKeys": [ "id" ], - "formatEN": "Operate runtime [name]", - "formatZH": "操作运行环境 [name]", + "formatEN": "Operate runtime [id]", + "formatZH": "操作运行环境 [id]", "paramKeys": [] } } @@ -18649,7 +20358,7 @@ "in": "path", "name": "id", "required": true, - "type": "string" + "type": "integer" } ], "responses": { @@ -19614,6 +21323,72 @@ ] } }, + "/settings/files/ai/search": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get file manage AI setting info", + "tags": [ + "System Setting" + ] + } + }, + "/settings/files/ai/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.FileManageAIInfo" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update file manage AI setting", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "aiStatus", + "aiAccountId" + ], + "formatEN": "update file manage AI setting [aiStatus][aiAccountId]", + "formatZH": "更新文件管理 AI 设置 [aiStatus][aiAccountId]", + "paramKeys": [] + } + } + }, "/settings/search": { "post": { "responses": { @@ -20098,6 +21873,27 @@ ] } }, + "/settings/ssh/check": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Check local conn", + "tags": [ + "System Setting" + ] + } + }, "/settings/ssh/check/info": { "post": { "responses": { @@ -20146,7 +21942,7 @@ ] } }, - "/settings/ssh/conn/default": { + "/settings/ssh/default": { "post": { "consumes": [ "application/json" @@ -20190,6 +21986,72 @@ } } }, + "/settings/terminal/ai/search": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get terminal AI setting info", + "tags": [ + "System Setting" + ] + } + }, + "/settings/terminal/ai/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.TerminalAIInfo" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update terminal AI setting", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "aiStatus", + "aiAccountId" + ], + "formatEN": "update terminal AI setting [aiStatus][aiAccountId]", + "formatZH": "更新终端 AI 设置 [aiStatus][aiAccountId]", + "paramKeys": [] + } + } + }, "/settings/update": { "post": { "consumes": [ @@ -21875,6 +23737,13 @@ "name": "id", "required": true, "type": "integer" + }, + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" } ], "responses": { @@ -21947,6 +23816,13 @@ "schema": { "$ref": "#/definitions/request.WebsiteHTTPSOp" } + }, + { + "description": "id", + "in": "path", + "name": "id", + "required": true, + "type": "string" } ], "responses": { @@ -22364,7 +24240,7 @@ ] } }, - "/websites/batch/https": { + "/websites/batch/operate": { "post": { "consumes": [ "application/json" @@ -22376,7 +24252,7 @@ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/request.BatchWebsiteHttps" + "$ref": "#/definitions/request.BatchWebsiteOp" } } ], @@ -22393,13 +24269,13 @@ "Timestamp": [] } ], - "summary": "Batch set HTTPS for websites", + "summary": "Batch operate websites", "tags": [ "Website" ] } }, - "/websites/batch/operate": { + "/websites/batch/ssl": { "post": { "consumes": [ "application/json" @@ -22411,7 +24287,7 @@ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/request.BatchWebsiteOp" + "$ref": "#/definitions/request.BatchWebsiteHttps" } } ], @@ -22428,7 +24304,7 @@ "Timestamp": [] } ], - "summary": "Batch operate websites", + "summary": "Batch set HTTPS for websites", "tags": [ "Website" ] @@ -23070,6 +24946,15 @@ "consumes": [ "application/json" ], + "parameters": [ + { + "description": "type", + "in": "path", + "name": "type", + "required": true, + "type": "string" + } + ], "responses": { "200": { "description": "OK", @@ -23793,8 +25678,8 @@ ] } }, - "/websites/lbs": { - "get": { + "/websites/group/change": { + "post": { "consumes": [ "application/json" ], @@ -23805,19 +25690,13 @@ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/request.WebsiteCommonReq" + "$ref": "#/definitions/dto.UpdateGroup" } } ], "responses": { "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/dto.NginxUpstream" - }, - "type": "array" - } + "description": "OK" } }, "security": [ @@ -23828,10 +25707,20 @@ "Timestamp": [] } ], - "summary": "Get website upstreams", + "summary": "Change website group", "tags": [ "Website" - ] + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "group", + "newGroup" + ], + "formatEN": "change website group [group] to [newGroup]", + "formatZH": "网站分组 [group] 迁移到 [newGroup]", + "paramKeys": [] + } } }, "/websites/lbs/create": { @@ -24705,7 +26594,10 @@ "Timestamp": [] } ], - "summary": "Get website proxy cache config" + "summary": "Get website proxy cache config", + "tags": [ + "Website" + ] } }, "/websites/realip/config": { @@ -25361,6 +27253,50 @@ } } }, + "/websites/ssl/import": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/model.WebsiteSSL" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Import master SSL", + "tags": [ + "Website SSL" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [ + "primaryDomain" + ], + "formatEN": "import master SSL [primaryDomain]", + "formatZH": "导入主节点证书 [primaryDomain]", + "paramKeys": [] + } + } + }, "/websites/ssl/list": { "post": { "consumes": [ @@ -25816,6 +27752,45 @@ "paramKeys": [] } } + }, + "/websites/{id}/lbs": { + "get": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "id", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.NginxUpstream" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get website upstreams", + "tags": [ + "Website" + ] + } } }, "definitions": { @@ -27925,6 +29900,206 @@ ], "type": "object" }, + "dto.AlertConfigTest": { + "properties": { + "displayName": { + "type": "string" + }, + "encryption": { + "description": "\"ssl\" / \"tls\" / \"none\"", + "type": "string" + }, + "host": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "recipient": { + "type": "string" + }, + "sender": { + "type": "string" + }, + "userName": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AlertConfigUpdate": { + "properties": { + "config": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AlertCreate": { + "properties": { + "advancedParams": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "cycle": { + "type": "integer" + }, + "method": { + "type": "string" + }, + "project": { + "type": "string" + }, + "sendCount": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "method", + "type" + ], + "type": "object" + }, + "dto.AlertLogSearch": { + "properties": { + "count": { + "type": "integer" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "status": { + "type": "string" + } + }, + "required": [ + "page", + "pageSize" + ], + "type": "object" + }, + "dto.AlertSearch": { + "properties": { + "method": { + "type": "string" + }, + "order": { + "enum": [ + "null", + "ascending", + "descending" + ], + "type": "string" + }, + "orderBy": { + "enum": [ + "created_at" + ], + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "order", + "orderBy", + "page", + "pageSize" + ], + "type": "object" + }, + "dto.AlertUpdate": { + "properties": { + "advancedParams": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "cycle": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "method": { + "type": "string" + }, + "project": { + "type": "string" + }, + "sendCount": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "dto.AlertUpdateStatus": { + "properties": { + "id": { + "type": "integer" + }, + "status": { + "type": "string" + } + }, + "required": [ + "id", + "status" + ], + "type": "object" + }, "dto.ApiInterfaceConfig": { "properties": { "apiInterfaceStatus": { @@ -29302,6 +31477,29 @@ }, "type": "object" }, + "dto.ContainerLog": { + "properties": { + "container": { + "type": "string" + }, + "containerType": { + "type": "string" + }, + "since": { + "type": "string" + }, + "tail": { + "type": "integer" + }, + "timestamp": { + "type": "boolean" + } + }, + "required": [ + "container" + ], + "type": "object" + }, "dto.ContainerNetwork": { "properties": { "ipv4": { @@ -29614,6 +31812,20 @@ ], "type": "object" }, + "dto.CronJobReq": { + "properties": { + "name": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, "dto.CronjobBatchDelete": { "properties": { "cleanData": { @@ -30623,6 +32835,17 @@ ], "type": "object" }, + "dto.DeleteRequest": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, "dto.DeviceBaseInfo": { "properties": { "dns": { @@ -30876,6 +33099,17 @@ ], "type": "object" }, + "dto.FileManageAIInfo": { + "properties": { + "aiAccountId": { + "type": "string" + }, + "aiStatus": { + "type": "string" + } + }, + "type": "object" + }, "dto.FilePath": { "properties": { "path": { @@ -31207,6 +33441,43 @@ ], "type": "object" }, + "dto.HostConnTest": { + "properties": { + "addr": { + "type": "string" + }, + "authMode": { + "enum": [ + "password", + "key" + ], + "type": "string" + }, + "passPhrase": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "privateKey": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "required": [ + "addr", + "port", + "user" + ], + "type": "object" + }, "dto.HostHelper": { "properties": { "host": { @@ -31218,6 +33489,58 @@ }, "type": "object" }, + "dto.HostOperate": { + "properties": { + "addr": { + "type": "string" + }, + "authMode": { + "enum": [ + "password", + "key" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "groupID": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "passPhrase": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "maximum": 65535, + "minimum": 1, + "type": "integer" + }, + "privateKey": { + "type": "string" + }, + "rememberPassword": { + "type": "boolean" + }, + "user": { + "type": "string" + } + }, + "required": [ + "addr", + "port", + "user" + ], + "type": "object" + }, "dto.ImageBuild": { "properties": { "args": { @@ -34256,6 +36579,14 @@ ], "type": "object" }, + "dto.SearchForTree": { + "properties": { + "info": { + "type": "string" + } + }, + "type": "object" + }, "dto.SearchLgLogWithPage": { "properties": { "endTime": { @@ -34853,6 +37184,34 @@ }, "type": "object" }, + "dto.TerminalAIInfo": { + "properties": { + "aiAccountId": { + "type": "string" + }, + "aiPrefix": { + "enum": [ + "@ai", + "#ai", + "/ai" + ], + "type": "string" + }, + "aiRiskCommands": { + "type": "string" + }, + "aiRiskCommandsDefault": { + "type": "string" + }, + "aiStatus": { + "type": "string" + } + }, + "required": [ + "aiPrefix" + ], + "type": "object" + }, "dto.TerminalInfo": { "properties": { "backgroundColor": { @@ -34972,6 +37331,17 @@ ], "type": "object" }, + "dto.UpdateGroup": { + "properties": { + "group": { + "type": "integer" + }, + "newGroup": { + "type": "integer" + } + }, + "type": "object" + }, "dto.Upgrade": { "properties": { "version": { @@ -35909,6 +38279,31 @@ ], "type": "object" }, + "request.AppInstallSort": { + "properties": { + "items": { + "items": { + "$ref": "#/definitions/request.AppInstallSortItem" + }, + "type": "array" + } + }, + "required": [ + "items" + ], + "type": "object" + }, + "request.AppInstallSortItem": { + "properties": { + "installID": { + "type": "integer" + }, + "sortOrder": { + "type": "integer" + } + }, + "type": "object" + }, "request.AppInstalledInfo": { "properties": { "key": { @@ -38608,6 +41003,164 @@ ], "type": "object" }, + "request.TensorRTLLMCreate": { + "properties": { + "command": { + "type": "string" + }, + "containerName": { + "type": "string" + }, + "environments": { + "items": { + "$ref": "#/definitions/request.Environment" + }, + "type": "array" + }, + "exposedPorts": { + "items": { + "$ref": "#/definitions/request.ExposedPort" + }, + "type": "array" + }, + "image": { + "type": "string" + }, + "modelDir": { + "type": "string" + }, + "modelSpeedup": { + "type": "boolean" + }, + "modelType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "volumes": { + "items": { + "$ref": "#/definitions/request.Volume" + }, + "type": "array" + } + }, + "required": [ + "command", + "containerName", + "image", + "modelDir", + "name", + "version" + ], + "type": "object" + }, + "request.TensorRTLLMDelete": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "request.TensorRTLLMOperate": { + "properties": { + "id": { + "type": "integer" + }, + "operate": { + "type": "string" + } + }, + "required": [ + "id", + "operate" + ], + "type": "object" + }, + "request.TensorRTLLMSearch": { + "properties": { + "name": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + } + }, + "required": [ + "page", + "pageSize" + ], + "type": "object" + }, + "request.TensorRTLLMUpdate": { + "properties": { + "command": { + "type": "string" + }, + "containerName": { + "type": "string" + }, + "environments": { + "items": { + "$ref": "#/definitions/request.Environment" + }, + "type": "array" + }, + "exposedPorts": { + "items": { + "$ref": "#/definitions/request.ExposedPort" + }, + "type": "array" + }, + "id": { + "type": "integer" + }, + "image": { + "type": "string" + }, + "modelDir": { + "type": "string" + }, + "modelSpeedup": { + "type": "boolean" + }, + "modelType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "volumes": { + "items": { + "$ref": "#/definitions/request.Volume" + }, + "type": "array" + } + }, + "required": [ + "command", + "containerName", + "id", + "image", + "modelDir", + "name", + "version" + ], + "type": "object" + }, "request.Volume": { "properties": { "source": {