From e236ca5607cf33a4d24afd875106d2235eede1d1 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 4 Mar 2026 15:13:02 +0800 Subject: [PATCH] fix(swagger): correct api annotation types and methods (#12060) --- agent/app/api/v2/agents.go | 2 +- agent/app/api/v2/app_install.go | 2 +- agent/app/api/v2/docker.go | 4 +- agent/app/api/v2/task.go | 2 +- core/cmd/server/docs/docs.go | 2227 ++++++++++++++++++++++++++++- core/cmd/server/docs/swagger.json | 2227 ++++++++++++++++++++++++++++- 6 files changed, 4347 insertions(+), 117 deletions(-) diff --git a/agent/app/api/v2/agents.go b/agent/app/api/v2/agents.go index bff2e9010..ed70d8751 100644 --- a/agent/app/api/v2/agents.go +++ b/agent/app/api/v2/agents.go @@ -113,7 +113,7 @@ func (b *BaseApi) UpdateAgentModelConfig(c *gin.Context) { // @Tags AI // @Summary Get Providers -// @Success 200 {object} []dto.ProviderInfo +// @Success 200 {array} dto.ProviderInfo // @Security ApiKeyAuth // @Security Timestamp // @Router /ai/agents/providers [get] diff --git a/agent/app/api/v2/app_install.go b/agent/app/api/v2/app_install.go index cf456b58f..218960551 100644 --- a/agent/app/api/v2/app_install.go +++ b/agent/app/api/v2/app_install.go @@ -109,7 +109,7 @@ func (b *BaseApi) LoadPort(c *gin.Context) { // @Success 200 {object} response.DatabaseConn // @Security ApiKeyAuth // @Security Timestamp -// @Router /apps/installed/conninfo [POST] +// @Router /apps/installed/conninfo [post] func (b *BaseApi) LoadConnInfo(c *gin.Context) { var req dto.OperationWithNameAndType if err := helper.CheckBindAndValidate(&req, c); err != nil { diff --git a/agent/app/api/v2/docker.go b/agent/app/api/v2/docker.go index 622dcbb6f..5729d12f9 100644 --- a/agent/app/api/v2/docker.go +++ b/agent/app/api/v2/docker.go @@ -12,7 +12,7 @@ import ( // @Tags Container Docker // @Summary Load docker status // @Produce json -// @Success 200 {string} dto.DockerStatus +// @Success 200 {object} dto.DockerStatus // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/docker/status [get] @@ -24,7 +24,7 @@ func (b *BaseApi) LoadDockerStatus(c *gin.Context) { // @Tags Container Docker // @Summary Load docker daemon.json // @Produce json -// @Success 200 {object} string +// @Success 200 {string} string // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/daemonjson/file [get] diff --git a/agent/app/api/v2/task.go b/agent/app/api/v2/task.go index 6886ebf4c..69e0bcff5 100644 --- a/agent/app/api/v2/task.go +++ b/agent/app/api/v2/task.go @@ -32,7 +32,7 @@ func (b *BaseApi) PageTasks(c *gin.Context) { // @Tags TaskLog // @Summary Get the number of executing tasks -// @Success 200 {object} int64 +// @Success 200 {integer} int64 // @Security ApiKeyAuth // @Security Timestamp // @Router /logs/tasks/executing/count [get] diff --git a/core/cmd/server/docs/docs.go b/core/cmd/server/docs/docs.go index c59c33135..626880567 100644 --- a/core/cmd/server/docs/docs.go +++ b/core/cmd/server/docs/docs.go @@ -18,6 +18,827 @@ const docTemplate = `{ "host": "", "basePath": "/api/v2", "paths": { + "/ai/agents": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentCreateReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentItem" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create Agent", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountCreateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/delete": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountDeleteReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountSearch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page Agent accounts", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/verify": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountVerifyReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Verify Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/browser/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentBrowserConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentBrowserConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Browser config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/browser/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentBrowserConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Browser config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/discord/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentDiscordConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentDiscordConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Discord channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/discord/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentDiscordConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Discord channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/feishu/approve": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentFeishuPairingApproveReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Approve Agent Feishu pairing code", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/feishu/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentFeishuConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentFeishuConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Feishu channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/feishu/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentFeishuConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Feishu channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/pairing/approve": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentChannelPairingApproveReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Approve Agent channel pairing code", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/telegram/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentTelegramConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentTelegramConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Telegram channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/telegram/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentTelegramConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Telegram channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/delete": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentDeleteReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete Agent", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/model/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentModelConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent model config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/other/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentOtherConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentOtherConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Other config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/other/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentOtherConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Other config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/providers": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.ProviderInfo" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Providers", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.SearchWithPage" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page Agents", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/token/reset": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentTokenResetReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Reset Agent token", + "tags": [ + "AI" + ] + } + }, "/ai/domain/bind": { "post": { "consumes": [ @@ -795,6 +1616,49 @@ const docTemplate = `{ ] } }, + "/apps/detail/node/:appKey/:version": { + "get": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "app key", + "in": "path", + "name": "appId", + "required": true, + "type": "integer" + }, + { + "description": "app version", + "in": "path", + "name": "version", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.AppDetailSimpleDTO" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Search app detail by appkey and version", + "tags": [ + "App" + ] + } + }, "/apps/details/:id": { "get": { "consumes": [ @@ -831,7 +1695,7 @@ const docTemplate = `{ ] } }, - "/apps/icon/:appId": { + "/apps/icon/:key": { "get": { "consumes": [ "application/json" @@ -1470,12 +2334,21 @@ const docTemplate = `{ "App" ], "x-panel-log": { - "BeforeFunctions": [], + "BeforeFunctions": [ + { + "db": "app_installs", + "input_column": "id", + "input_value": "installId", + "isList": false, + "output_column": "name", + "output_value": "name" + } + ], "bodyKeys": [ "installId" ], - "formatEN": "Application param update [installId]", - "formatZH": "应用参数修改 [installId]", + "formatEN": "Application param update [name]", + "formatZH": "应用参数修改 [name]", "paramKeys": [] } } @@ -2672,41 +3545,6 @@ const docTemplate = `{ } } }, - "/containers/command": { - "post": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.ContainerCreateByCommand" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - }, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "Create container by command", - "tags": [ - "Container" - ] - } - }, "/containers/commit": { "post": { "consumes": [ @@ -2830,6 +3668,47 @@ const docTemplate = `{ } } }, + "/containers/compose/env": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.FilePath" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load compose environment variables", + "tags": [ + "Container Compose" + ] + } + }, "/containers/compose/operate": { "post": { "consumes": [ @@ -3198,7 +4077,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/dto.DockerStatus" } } }, @@ -5349,6 +6228,38 @@ const docTemplate = `{ ] } }, + "/core/auth/passkey/begin": { + "post": { + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PasskeyBeginResponse" + } + } + }, + "summary": "User login with passkey", + "tags": [ + "Auth" + ] + } + }, + "/core/auth/passkey/finish": { + "post": { + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.UserLoginInfo" + } + } + }, + "summary": "User login with passkey", + "tags": [ + "Auth" + ] + } + }, "/core/auth/setting": { "get": { "responses": { @@ -7097,6 +8008,70 @@ const docTemplate = `{ ] } }, + "/core/settings/memo": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load dashboard memo", + "tags": [ + "System Setting" + ] + }, + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.MemoUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update dashboard memo", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "update dashboard memo", + "formatZH": "更新仪表盘备忘录", + "paramKeys": [] + } + } + }, "/core/settings/menu/default": { "post": { "consumes": [ @@ -7250,6 +8225,116 @@ const docTemplate = `{ } } }, + "/core/settings/passkey/list": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.PasskeyInfo" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List passkeys", + "tags": [ + "System Setting" + ] + } + }, + "/core/settings/passkey/register/begin": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.PasskeyRegisterRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PasskeyBeginResponse" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Begin passkey registration", + "tags": [ + "System Setting" + ] + } + }, + "/core/settings/passkey/register/finish": { + "post": { + "consumes": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Finish passkey registration", + "tags": [ + "System Setting" + ] + } + }, + "/core/settings/passkey/{id}": { + "delete": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete passkey", + "tags": [ + "System Setting" + ] + } + }, "/core/settings/password/update": { "post": { "consumes": [ @@ -11730,6 +12815,79 @@ const docTemplate = `{ ] } }, + "/files/remark": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.FileRemarkUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Set file remark", + "tags": [ + "File" + ] + } + }, + "/files/remarks": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.FileRemarkBatch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.FileRemarksRes" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Batch get file remarks", + "tags": [ + "File" + ] + } + }, "/files/rename": { "post": { "consumes": [ @@ -14450,6 +15608,27 @@ const docTemplate = `{ } } }, + "/process/listening": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Listening Process", + "tags": [ + "Process" + ] + } + }, "/process/stop": { "post": { "parameters": [ @@ -21477,6 +22656,47 @@ const docTemplate = `{ } } }, + "/websites/ssl/list": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.WebsiteSSLListReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List website ssl", + "tags": [ + "Website SSL" + ] + } + }, "/websites/ssl/obtain": { "post": { "consumes": [ @@ -21938,6 +23158,658 @@ const docTemplate = `{ }, "type": "object" }, + "dto.AgentAccountCreateReq": { + "properties": { + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "maxTokens": { + "type": "integer" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "remark": { + "type": "string" + }, + "rememberApiKey": { + "type": "boolean" + } + }, + "required": [ + "apiKey", + "name", + "provider" + ], + "type": "object" + }, + "dto.AgentAccountDeleteReq": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "dto.AgentAccountSearch": { + "properties": { + "name": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "provider": { + "type": "string" + } + }, + "required": [ + "page", + "pageSize" + ], + "type": "object" + }, + "dto.AgentAccountUpdateReq": { + "properties": { + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "maxTokens": { + "type": "integer" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "remark": { + "type": "string" + }, + "rememberApiKey": { + "type": "boolean" + }, + "syncAgents": { + "type": "boolean" + } + }, + "required": [ + "apiKey", + "id", + "name" + ], + "type": "object" + }, + "dto.AgentAccountVerifyReq": { + "properties": { + "apiKey": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "provider": { + "type": "string" + } + }, + "required": [ + "apiKey", + "provider" + ], + "type": "object" + }, + "dto.AgentBrowserConfig": { + "properties": { + "defaultProfile": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "executablePath": { + "type": "string" + }, + "headless": { + "type": "boolean" + }, + "noSandbox": { + "type": "boolean" + } + }, + "type": "object" + }, + "dto.AgentBrowserConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentBrowserConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "defaultProfile": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "headless": { + "type": "boolean" + }, + "noSandbox": { + "type": "boolean" + } + }, + "required": [ + "agentId", + "defaultProfile" + ], + "type": "object" + }, + "dto.AgentChannelPairingApproveReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "pairingCode": { + "type": "string" + }, + "type": { + "enum": [ + "feishu", + "telegram", + "discord" + ], + "type": "string" + } + }, + "required": [ + "agentId", + "pairingCode", + "type" + ], + "type": "object" + }, + "dto.AgentCreateReq": { + "properties": { + "accountId": { + "type": "integer" + }, + "advanced": { + "type": "boolean" + }, + "agentType": { + "type": "string" + }, + "allowPort": { + "type": "boolean" + }, + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "appVersion": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "bridgePort": { + "type": "integer" + }, + "containerName": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "cpuQuota": { + "type": "number" + }, + "dockerCompose": { + "type": "string" + }, + "editCompose": { + "type": "boolean" + }, + "maxTokens": { + "type": "integer" + }, + "memoryLimit": { + "type": "number" + }, + "memoryUnit": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "pullImage": { + "type": "boolean" + }, + "restartPolicy": { + "type": "string" + }, + "specifyIP": { + "type": "string" + }, + "taskID": { + "type": "string" + }, + "token": { + "type": "string" + }, + "webUIPort": { + "type": "integer" + } + }, + "required": [ + "appVersion", + "name", + "webUIPort" + ], + "type": "object" + }, + "dto.AgentDeleteReq": { + "properties": { + "forceDelete": { + "type": "boolean" + }, + "id": { + "type": "integer" + }, + "taskID": { + "type": "string" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "dto.AgentDiscordConfig": { + "properties": { + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "groupPolicy": { + "type": "string" + }, + "proxy": { + "type": "string" + }, + "token": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AgentDiscordConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentDiscordConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "groupPolicy": { + "enum": [ + "open", + "allowlist", + "disabled" + ], + "type": "string" + }, + "proxy": { + "type": "string" + }, + "token": { + "type": "string" + } + }, + "required": [ + "agentId", + "dmPolicy", + "groupPolicy", + "token" + ], + "type": "object" + }, + "dto.AgentFeishuConfig": { + "properties": { + "appId": { + "type": "string" + }, + "appSecret": { + "type": "string" + }, + "botName": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "dto.AgentFeishuConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentFeishuConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "appId": { + "type": "string" + }, + "appSecret": { + "type": "string" + }, + "botName": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "agentId", + "appId", + "appSecret", + "botName", + "dmPolicy" + ], + "type": "object" + }, + "dto.AgentFeishuPairingApproveReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "pairingCode": { + "type": "string" + } + }, + "required": [ + "agentId", + "pairingCode" + ], + "type": "object" + }, + "dto.AgentItem": { + "properties": { + "accountId": { + "type": "integer" + }, + "agentType": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "appInstallId": { + "type": "integer" + }, + "appVersion": { + "type": "string" + }, + "baseUrl": { + "type": "string" + }, + "bridgePort": { + "type": "integer" + }, + "configPath": { + "type": "string" + }, + "containerName": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "createdAt": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "maxTokens": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "providerName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "token": { + "type": "string" + }, + "upgradable": { + "type": "boolean" + }, + "webUIPort": { + "type": "integer" + } + }, + "type": "object" + }, + "dto.AgentModelConfigUpdateReq": { + "properties": { + "accountId": { + "type": "integer" + }, + "agentId": { + "type": "integer" + }, + "model": { + "type": "string" + } + }, + "required": [ + "accountId", + "agentId", + "model" + ], + "type": "object" + }, + "dto.AgentOtherConfig": { + "properties": { + "userTimezone": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AgentOtherConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentOtherConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "userTimezone": { + "type": "string" + } + }, + "required": [ + "agentId", + "userTimezone" + ], + "type": "object" + }, + "dto.AgentTelegramConfig": { + "properties": { + "botToken": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "proxy": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AgentTelegramConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentTelegramConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "botToken": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "proxy": { + "type": "string" + } + }, + "required": [ + "agentId", + "botToken", + "dmPolicy" + ], + "type": "object" + }, + "dto.AgentTokenResetReq": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, "dto.ApiInterfaceConfig": { "properties": { "apiInterfaceStatus": { @@ -22091,6 +23963,9 @@ const docTemplate = `{ }, "type": "array" }, + "batchInstallSupport": { + "type": "boolean" + }, "crossVersionUpdate": { "type": "boolean" }, @@ -22833,6 +24708,12 @@ const docTemplate = `{ }, "dto.CommonBackup": { "properties": { + "args": { + "items": { + "type": "string" + }, + "type": "array" + }, "description": { "type": "string" }, @@ -22950,6 +24831,9 @@ const docTemplate = `{ "file": { "type": "string" }, + "forcePull": { + "type": "boolean" + }, "from": { "enum": [ "edit", @@ -23102,11 +24986,17 @@ const docTemplate = `{ "env": { "type": "string" }, + "forcePull": { + "type": "boolean" + }, "name": { "type": "string" }, "path": { "type": "string" + }, + "taskID": { + "type": "string" } }, "required": [ @@ -23145,17 +25035,6 @@ const docTemplate = `{ ], "type": "object" }, - "dto.ContainerCreateByCommand": { - "properties": { - "command": { - "type": "string" - }, - "taskID": { - "type": "string" - } - }, - "type": "object" - }, "dto.ContainerItemStats": { "properties": { "buildCacheReclaimable": { @@ -23281,6 +25160,12 @@ const docTemplate = `{ }, "type": "array" }, + "extraHosts": { + "items": { + "$ref": "#/definitions/dto.ExtraHost" + }, + "type": "array" + }, "forcePull": { "type": "boolean" }, @@ -23594,6 +25479,9 @@ const docTemplate = `{ "appID": { "type": "string" }, + "args": { + "type": "string" + }, "command": { "type": "string" }, @@ -23723,6 +25611,9 @@ const docTemplate = `{ }, "type": "array" }, + "args": { + "type": "string" + }, "command": { "type": "string" }, @@ -24555,6 +26446,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.DockerStatus": { + "properties": { + "isActive": { + "type": "boolean" + }, + "isExist": { + "type": "boolean" + } + }, + "type": "object" + }, "dto.DownloadRecord": { "properties": { "downloadAccountID": { @@ -24574,6 +26476,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.ExtraHost": { + "properties": { + "hostname": { + "type": "string" + }, + "ip": { + "type": "string" + } + }, + "type": "object" + }, "dto.ExtraProperties": { "properties": { "tags": { @@ -24682,6 +26595,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.FilePath": { + "properties": { + "path": { + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, "dto.FirewallBaseInfo": { "properties": { "isActive": { @@ -25231,15 +27155,18 @@ const docTemplate = `{ }, "dto.ImageLoad": { "properties": { - "path": { - "type": "string" + "paths": { + "items": { + "type": "string" + }, + "type": "array" }, "taskID": { "type": "string" } }, "required": [ - "path" + "paths" ], "type": "object" }, @@ -25649,6 +27576,15 @@ const docTemplate = `{ ], "type": "object" }, + "dto.MemoUpdate": { + "properties": { + "content": { + "maxLength": 500, + "type": "string" + } + }, + "type": "object" + }, "dto.MfaCredential": { "properties": { "code": { @@ -26824,6 +28760,43 @@ const docTemplate = `{ ], "type": "object" }, + "dto.PasskeyBeginResponse": { + "properties": { + "publicKey": {}, + "sessionId": { + "type": "string" + } + }, + "type": "object" + }, + "dto.PasskeyInfo": { + "properties": { + "createdAt": { + "type": "string" + }, + "id": { + "type": "string" + }, + "lastUsedAt": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "dto.PasskeyRegisterRequest": { + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "dto.PasswordUpdate": { "properties": { "newPassword": { @@ -27135,6 +29108,37 @@ const docTemplate = `{ }, "type": "object" }, + "dto.ProviderInfo": { + "properties": { + "baseUrl": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "models": { + "items": { + "$ref": "#/definitions/dto.ProviderModelInfo" + }, + "type": "array" + }, + "provider": { + "type": "string" + } + }, + "type": "object" + }, + "dto.ProviderModelInfo": { + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, "dto.ProxyUpdate": { "properties": { "proxyDocker": { @@ -28340,15 +30344,24 @@ const docTemplate = `{ }, "dto.TerminalInfo": { "properties": { + "backgroundColor": { + "type": "string" + }, "cursorBlink": { "type": "string" }, "cursorStyle": { "type": "string" }, + "fontFamily": { + "type": "string" + }, "fontSize": { "type": "string" }, + "foregroundColor": { + "type": "string" + }, "letterSpacing": { "type": "string" }, @@ -28675,6 +30688,9 @@ const docTemplate = `{ "architectures": { "type": "string" }, + "batchInstallSupport": { + "type": "boolean" + }, "createdAt": { "type": "string" }, @@ -28829,6 +30845,9 @@ const docTemplate = `{ "serviceName": { "type": "string" }, + "sortOrder": { + "type": "integer" + }, "status": { "type": "string" }, @@ -29074,6 +31093,9 @@ const docTemplate = `{ "url": { "type": "string" }, + "useEAB": { + "type": "boolean" + }, "useProxy": { "type": "boolean" } @@ -29295,6 +31317,9 @@ const docTemplate = `{ "appDetailId": { "type": "integer" }, + "appKey": { + "type": "string" + }, "containerName": { "type": "string" }, @@ -29322,6 +31347,12 @@ const docTemplate = `{ "name": { "type": "string" }, + "nodes": { + "items": { + "type": "string" + }, + "type": "array" + }, "params": { "additionalProperties": true, "type": "object" @@ -29329,6 +31360,9 @@ const docTemplate = `{ "pullImage": { "type": "boolean" }, + "pushNode": { + "type": "boolean" + }, "restartPolicy": { "enum": [ "always", @@ -29353,6 +31387,9 @@ const docTemplate = `{ "type": { "type": "string" }, + "version": { + "type": "string" + }, "webUI": { "type": "string" } @@ -29430,6 +31467,9 @@ const docTemplate = `{ "all": { "type": "boolean" }, + "checkUpdate": { + "type": "boolean" + }, "name": { "type": "string" }, @@ -30323,6 +32363,34 @@ const docTemplate = `{ ], "type": "object" }, + "request.FileRemarkBatch": { + "properties": { + "paths": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "paths" + ], + "type": "object" + }, + "request.FileRemarkUpdate": { + "properties": { + "path": { + "type": "string" + }, + "remark": { + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, "request.FileRename": { "properties": { "newName": { @@ -31682,6 +33750,9 @@ const docTemplate = `{ "streamPorts": { "type": "string" }, + "udp": { + "type": "boolean" + }, "websiteID": { "type": "integer" } @@ -31801,6 +33872,9 @@ const docTemplate = `{ ], "type": "string" }, + "useEAB": { + "type": "boolean" + }, "useProxy": { "type": "boolean" } @@ -32068,6 +34142,9 @@ const docTemplate = `{ "type": { "type": "string" }, + "udp": { + "type": "boolean" + }, "webSiteGroupID": { "type": "integer" }, @@ -32750,6 +34827,14 @@ const docTemplate = `{ ], "type": "object" }, + "request.WebsiteSSLListReq": { + "properties": { + "acmeAccountID": { + "type": "string" + } + }, + "type": "object" + }, "request.WebsiteSSLSearch": { "properties": { "acmeAccountID": { @@ -32768,6 +34853,7 @@ const docTemplate = `{ }, "orderBy": { "enum": [ + "created_at", "expire_date" ], "type": "string" @@ -32780,8 +34866,6 @@ const docTemplate = `{ } }, "required": [ - "order", - "orderBy", "page", "pageSize" ], @@ -33070,6 +35154,9 @@ const docTemplate = `{ "architectures": { "type": "string" }, + "batchInstallSupport": { + "type": "boolean" + }, "createdAt": { "type": "string" }, @@ -33220,6 +35307,14 @@ const docTemplate = `{ }, "type": "object" }, + "response.AppDetailSimpleDTO": { + "properties": { + "id": { + "type": "integer" + } + }, + "type": "object" + }, "response.AppInstalledCheck": { "properties": { "app": { @@ -33266,6 +35361,9 @@ const docTemplate = `{ }, "response.AppItem": { "properties": { + "batchInstallSupport": { + "type": "boolean" + }, "description": { "type": "string" }, @@ -33719,6 +35817,17 @@ const docTemplate = `{ }, "type": "object" }, + "response.FileRemarksRes": { + "properties": { + "remarks": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, "response.FileTree": { "properties": { "children": { @@ -34458,6 +36567,9 @@ const docTemplate = `{ "url": { "type": "string" }, + "useEAB": { + "type": "boolean" + }, "useProxy": { "type": "boolean" } @@ -34644,6 +36756,9 @@ const docTemplate = `{ "type": { "type": "string" }, + "udp": { + "type": "boolean" + }, "updatedAt": { "type": "string" }, diff --git a/core/cmd/server/docs/swagger.json b/core/cmd/server/docs/swagger.json index 19a4944f1..25df6df05 100644 --- a/core/cmd/server/docs/swagger.json +++ b/core/cmd/server/docs/swagger.json @@ -14,6 +14,827 @@ "host": "", "basePath": "/api/v2", "paths": { + "/ai/agents": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentCreateReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentItem" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create Agent", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountCreateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Create Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/delete": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountDeleteReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountSearch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page Agent accounts", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/accounts/verify": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentAccountVerifyReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Verify Agent account", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/browser/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentBrowserConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentBrowserConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Browser config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/browser/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentBrowserConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Browser config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/discord/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentDiscordConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentDiscordConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Discord channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/discord/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentDiscordConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Discord channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/feishu/approve": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentFeishuPairingApproveReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Approve Agent Feishu pairing code", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/feishu/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentFeishuConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentFeishuConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Feishu channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/feishu/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentFeishuConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Feishu channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/pairing/approve": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentChannelPairingApproveReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Approve Agent channel pairing code", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/telegram/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentTelegramConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentTelegramConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Telegram channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/channel/telegram/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentTelegramConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Telegram channel config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/delete": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentDeleteReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete Agent", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/model/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentModelConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent model config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/other/get": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentOtherConfigReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.AgentOtherConfig" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Agent Other config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/other/update": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentOtherConfigUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update Agent Other config", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/providers": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.ProviderInfo" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Providers", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/search": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.SearchWithPage" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Page Agents", + "tags": [ + "AI" + ] + } + }, + "/ai/agents/token/reset": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.AgentTokenResetReq" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Reset Agent token", + "tags": [ + "AI" + ] + } + }, "/ai/domain/bind": { "post": { "consumes": [ @@ -791,6 +1612,49 @@ ] } }, + "/apps/detail/node/:appKey/:version": { + "get": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "app key", + "in": "path", + "name": "appId", + "required": true, + "type": "integer" + }, + { + "description": "app version", + "in": "path", + "name": "version", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.AppDetailSimpleDTO" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Search app detail by appkey and version", + "tags": [ + "App" + ] + } + }, "/apps/details/:id": { "get": { "consumes": [ @@ -827,7 +1691,7 @@ ] } }, - "/apps/icon/:appId": { + "/apps/icon/:key": { "get": { "consumes": [ "application/json" @@ -1466,12 +2330,21 @@ "App" ], "x-panel-log": { - "BeforeFunctions": [], + "BeforeFunctions": [ + { + "db": "app_installs", + "input_column": "id", + "input_value": "installId", + "isList": false, + "output_column": "name", + "output_value": "name" + } + ], "bodyKeys": [ "installId" ], - "formatEN": "Application param update [installId]", - "formatZH": "应用参数修改 [installId]", + "formatEN": "Application param update [name]", + "formatZH": "应用参数修改 [name]", "paramKeys": [] } } @@ -2668,41 +3541,6 @@ } } }, - "/containers/command": { - "post": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.ContainerCreateByCommand" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - }, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "Create container by command", - "tags": [ - "Container" - ] - } - }, "/containers/commit": { "post": { "consumes": [ @@ -2826,6 +3664,47 @@ } } }, + "/containers/compose/env": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.FilePath" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load compose environment variables", + "tags": [ + "Container Compose" + ] + } + }, "/containers/compose/operate": { "post": { "consumes": [ @@ -3194,7 +4073,7 @@ "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/dto.DockerStatus" } } }, @@ -5345,6 +6224,38 @@ ] } }, + "/core/auth/passkey/begin": { + "post": { + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PasskeyBeginResponse" + } + } + }, + "summary": "User login with passkey", + "tags": [ + "Auth" + ] + } + }, + "/core/auth/passkey/finish": { + "post": { + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.UserLoginInfo" + } + } + }, + "summary": "User login with passkey", + "tags": [ + "Auth" + ] + } + }, "/core/auth/setting": { "get": { "responses": { @@ -7093,6 +8004,70 @@ ] } }, + "/core/settings/memo": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load dashboard memo", + "tags": [ + "System Setting" + ] + }, + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.MemoUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Update dashboard memo", + "tags": [ + "System Setting" + ], + "x-panel-log": { + "BeforeFunctions": [], + "bodyKeys": [], + "formatEN": "update dashboard memo", + "formatZH": "更新仪表盘备忘录", + "paramKeys": [] + } + } + }, "/core/settings/menu/default": { "post": { "consumes": [ @@ -7246,6 +8221,116 @@ } } }, + "/core/settings/passkey/list": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.PasskeyInfo" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List passkeys", + "tags": [ + "System Setting" + ] + } + }, + "/core/settings/passkey/register/begin": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.PasskeyRegisterRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PasskeyBeginResponse" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Begin passkey registration", + "tags": [ + "System Setting" + ] + } + }, + "/core/settings/passkey/register/finish": { + "post": { + "consumes": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Finish passkey registration", + "tags": [ + "System Setting" + ] + } + }, + "/core/settings/passkey/{id}": { + "delete": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Delete passkey", + "tags": [ + "System Setting" + ] + } + }, "/core/settings/password/update": { "post": { "consumes": [ @@ -11726,6 +12811,79 @@ ] } }, + "/files/remark": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.FileRemarkUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Set file remark", + "tags": [ + "File" + ] + } + }, + "/files/remarks": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.FileRemarkBatch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.FileRemarksRes" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Batch get file remarks", + "tags": [ + "File" + ] + } + }, "/files/rename": { "post": { "consumes": [ @@ -14446,6 +15604,27 @@ } } }, + "/process/listening": { + "post": { + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get Listening Process", + "tags": [ + "Process" + ] + } + }, "/process/stop": { "post": { "parameters": [ @@ -21473,6 +22652,47 @@ } } }, + "/websites/ssl/list": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/request.WebsiteSSLListReq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List website ssl", + "tags": [ + "Website SSL" + ] + } + }, "/websites/ssl/obtain": { "post": { "consumes": [ @@ -21934,6 +23154,658 @@ }, "type": "object" }, + "dto.AgentAccountCreateReq": { + "properties": { + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "maxTokens": { + "type": "integer" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "remark": { + "type": "string" + }, + "rememberApiKey": { + "type": "boolean" + } + }, + "required": [ + "apiKey", + "name", + "provider" + ], + "type": "object" + }, + "dto.AgentAccountDeleteReq": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "dto.AgentAccountSearch": { + "properties": { + "name": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "provider": { + "type": "string" + } + }, + "required": [ + "page", + "pageSize" + ], + "type": "object" + }, + "dto.AgentAccountUpdateReq": { + "properties": { + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "maxTokens": { + "type": "integer" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "remark": { + "type": "string" + }, + "rememberApiKey": { + "type": "boolean" + }, + "syncAgents": { + "type": "boolean" + } + }, + "required": [ + "apiKey", + "id", + "name" + ], + "type": "object" + }, + "dto.AgentAccountVerifyReq": { + "properties": { + "apiKey": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "provider": { + "type": "string" + } + }, + "required": [ + "apiKey", + "provider" + ], + "type": "object" + }, + "dto.AgentBrowserConfig": { + "properties": { + "defaultProfile": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "executablePath": { + "type": "string" + }, + "headless": { + "type": "boolean" + }, + "noSandbox": { + "type": "boolean" + } + }, + "type": "object" + }, + "dto.AgentBrowserConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentBrowserConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "defaultProfile": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "headless": { + "type": "boolean" + }, + "noSandbox": { + "type": "boolean" + } + }, + "required": [ + "agentId", + "defaultProfile" + ], + "type": "object" + }, + "dto.AgentChannelPairingApproveReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "pairingCode": { + "type": "string" + }, + "type": { + "enum": [ + "feishu", + "telegram", + "discord" + ], + "type": "string" + } + }, + "required": [ + "agentId", + "pairingCode", + "type" + ], + "type": "object" + }, + "dto.AgentCreateReq": { + "properties": { + "accountId": { + "type": "integer" + }, + "advanced": { + "type": "boolean" + }, + "agentType": { + "type": "string" + }, + "allowPort": { + "type": "boolean" + }, + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "appVersion": { + "type": "string" + }, + "baseURL": { + "type": "string" + }, + "bridgePort": { + "type": "integer" + }, + "containerName": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "cpuQuota": { + "type": "number" + }, + "dockerCompose": { + "type": "string" + }, + "editCompose": { + "type": "boolean" + }, + "maxTokens": { + "type": "integer" + }, + "memoryLimit": { + "type": "number" + }, + "memoryUnit": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "pullImage": { + "type": "boolean" + }, + "restartPolicy": { + "type": "string" + }, + "specifyIP": { + "type": "string" + }, + "taskID": { + "type": "string" + }, + "token": { + "type": "string" + }, + "webUIPort": { + "type": "integer" + } + }, + "required": [ + "appVersion", + "name", + "webUIPort" + ], + "type": "object" + }, + "dto.AgentDeleteReq": { + "properties": { + "forceDelete": { + "type": "boolean" + }, + "id": { + "type": "integer" + }, + "taskID": { + "type": "string" + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "dto.AgentDiscordConfig": { + "properties": { + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "groupPolicy": { + "type": "string" + }, + "proxy": { + "type": "string" + }, + "token": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AgentDiscordConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentDiscordConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "groupPolicy": { + "enum": [ + "open", + "allowlist", + "disabled" + ], + "type": "string" + }, + "proxy": { + "type": "string" + }, + "token": { + "type": "string" + } + }, + "required": [ + "agentId", + "dmPolicy", + "groupPolicy", + "token" + ], + "type": "object" + }, + "dto.AgentFeishuConfig": { + "properties": { + "appId": { + "type": "string" + }, + "appSecret": { + "type": "string" + }, + "botName": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "dto.AgentFeishuConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentFeishuConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "appId": { + "type": "string" + }, + "appSecret": { + "type": "string" + }, + "botName": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "agentId", + "appId", + "appSecret", + "botName", + "dmPolicy" + ], + "type": "object" + }, + "dto.AgentFeishuPairingApproveReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "pairingCode": { + "type": "string" + } + }, + "required": [ + "agentId", + "pairingCode" + ], + "type": "object" + }, + "dto.AgentItem": { + "properties": { + "accountId": { + "type": "integer" + }, + "agentType": { + "type": "string" + }, + "apiKey": { + "type": "string" + }, + "apiType": { + "type": "string" + }, + "appInstallId": { + "type": "integer" + }, + "appVersion": { + "type": "string" + }, + "baseUrl": { + "type": "string" + }, + "bridgePort": { + "type": "integer" + }, + "configPath": { + "type": "string" + }, + "containerName": { + "type": "string" + }, + "contextWindow": { + "type": "integer" + }, + "createdAt": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "maxTokens": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "providerName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "token": { + "type": "string" + }, + "upgradable": { + "type": "boolean" + }, + "webUIPort": { + "type": "integer" + } + }, + "type": "object" + }, + "dto.AgentModelConfigUpdateReq": { + "properties": { + "accountId": { + "type": "integer" + }, + "agentId": { + "type": "integer" + }, + "model": { + "type": "string" + } + }, + "required": [ + "accountId", + "agentId", + "model" + ], + "type": "object" + }, + "dto.AgentOtherConfig": { + "properties": { + "userTimezone": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AgentOtherConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentOtherConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "userTimezone": { + "type": "string" + } + }, + "required": [ + "agentId", + "userTimezone" + ], + "type": "object" + }, + "dto.AgentTelegramConfig": { + "properties": { + "botToken": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "proxy": { + "type": "string" + } + }, + "type": "object" + }, + "dto.AgentTelegramConfigReq": { + "properties": { + "agentId": { + "type": "integer" + } + }, + "required": [ + "agentId" + ], + "type": "object" + }, + "dto.AgentTelegramConfigUpdateReq": { + "properties": { + "agentId": { + "type": "integer" + }, + "botToken": { + "type": "string" + }, + "dmPolicy": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "proxy": { + "type": "string" + } + }, + "required": [ + "agentId", + "botToken", + "dmPolicy" + ], + "type": "object" + }, + "dto.AgentTokenResetReq": { + "properties": { + "id": { + "type": "integer" + } + }, + "required": [ + "id" + ], + "type": "object" + }, "dto.ApiInterfaceConfig": { "properties": { "apiInterfaceStatus": { @@ -22087,6 +23959,9 @@ }, "type": "array" }, + "batchInstallSupport": { + "type": "boolean" + }, "crossVersionUpdate": { "type": "boolean" }, @@ -22829,6 +24704,12 @@ }, "dto.CommonBackup": { "properties": { + "args": { + "items": { + "type": "string" + }, + "type": "array" + }, "description": { "type": "string" }, @@ -22946,6 +24827,9 @@ "file": { "type": "string" }, + "forcePull": { + "type": "boolean" + }, "from": { "enum": [ "edit", @@ -23098,11 +24982,17 @@ "env": { "type": "string" }, + "forcePull": { + "type": "boolean" + }, "name": { "type": "string" }, "path": { "type": "string" + }, + "taskID": { + "type": "string" } }, "required": [ @@ -23141,17 +25031,6 @@ ], "type": "object" }, - "dto.ContainerCreateByCommand": { - "properties": { - "command": { - "type": "string" - }, - "taskID": { - "type": "string" - } - }, - "type": "object" - }, "dto.ContainerItemStats": { "properties": { "buildCacheReclaimable": { @@ -23277,6 +25156,12 @@ }, "type": "array" }, + "extraHosts": { + "items": { + "$ref": "#/definitions/dto.ExtraHost" + }, + "type": "array" + }, "forcePull": { "type": "boolean" }, @@ -23590,6 +25475,9 @@ "appID": { "type": "string" }, + "args": { + "type": "string" + }, "command": { "type": "string" }, @@ -23719,6 +25607,9 @@ }, "type": "array" }, + "args": { + "type": "string" + }, "command": { "type": "string" }, @@ -24551,6 +26442,17 @@ ], "type": "object" }, + "dto.DockerStatus": { + "properties": { + "isActive": { + "type": "boolean" + }, + "isExist": { + "type": "boolean" + } + }, + "type": "object" + }, "dto.DownloadRecord": { "properties": { "downloadAccountID": { @@ -24570,6 +26472,17 @@ ], "type": "object" }, + "dto.ExtraHost": { + "properties": { + "hostname": { + "type": "string" + }, + "ip": { + "type": "string" + } + }, + "type": "object" + }, "dto.ExtraProperties": { "properties": { "tags": { @@ -24678,6 +26591,17 @@ ], "type": "object" }, + "dto.FilePath": { + "properties": { + "path": { + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, "dto.FirewallBaseInfo": { "properties": { "isActive": { @@ -25227,15 +27151,18 @@ }, "dto.ImageLoad": { "properties": { - "path": { - "type": "string" + "paths": { + "items": { + "type": "string" + }, + "type": "array" }, "taskID": { "type": "string" } }, "required": [ - "path" + "paths" ], "type": "object" }, @@ -25645,6 +27572,15 @@ ], "type": "object" }, + "dto.MemoUpdate": { + "properties": { + "content": { + "maxLength": 500, + "type": "string" + } + }, + "type": "object" + }, "dto.MfaCredential": { "properties": { "code": { @@ -26820,6 +28756,43 @@ ], "type": "object" }, + "dto.PasskeyBeginResponse": { + "properties": { + "publicKey": {}, + "sessionId": { + "type": "string" + } + }, + "type": "object" + }, + "dto.PasskeyInfo": { + "properties": { + "createdAt": { + "type": "string" + }, + "id": { + "type": "string" + }, + "lastUsedAt": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "dto.PasskeyRegisterRequest": { + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "dto.PasswordUpdate": { "properties": { "newPassword": { @@ -27131,6 +29104,37 @@ }, "type": "object" }, + "dto.ProviderInfo": { + "properties": { + "baseUrl": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "models": { + "items": { + "$ref": "#/definitions/dto.ProviderModelInfo" + }, + "type": "array" + }, + "provider": { + "type": "string" + } + }, + "type": "object" + }, + "dto.ProviderModelInfo": { + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, "dto.ProxyUpdate": { "properties": { "proxyDocker": { @@ -28336,15 +30340,24 @@ }, "dto.TerminalInfo": { "properties": { + "backgroundColor": { + "type": "string" + }, "cursorBlink": { "type": "string" }, "cursorStyle": { "type": "string" }, + "fontFamily": { + "type": "string" + }, "fontSize": { "type": "string" }, + "foregroundColor": { + "type": "string" + }, "letterSpacing": { "type": "string" }, @@ -28671,6 +30684,9 @@ "architectures": { "type": "string" }, + "batchInstallSupport": { + "type": "boolean" + }, "createdAt": { "type": "string" }, @@ -28825,6 +30841,9 @@ "serviceName": { "type": "string" }, + "sortOrder": { + "type": "integer" + }, "status": { "type": "string" }, @@ -29070,6 +31089,9 @@ "url": { "type": "string" }, + "useEAB": { + "type": "boolean" + }, "useProxy": { "type": "boolean" } @@ -29291,6 +31313,9 @@ "appDetailId": { "type": "integer" }, + "appKey": { + "type": "string" + }, "containerName": { "type": "string" }, @@ -29318,6 +31343,12 @@ "name": { "type": "string" }, + "nodes": { + "items": { + "type": "string" + }, + "type": "array" + }, "params": { "additionalProperties": true, "type": "object" @@ -29325,6 +31356,9 @@ "pullImage": { "type": "boolean" }, + "pushNode": { + "type": "boolean" + }, "restartPolicy": { "enum": [ "always", @@ -29349,6 +31383,9 @@ "type": { "type": "string" }, + "version": { + "type": "string" + }, "webUI": { "type": "string" } @@ -29426,6 +31463,9 @@ "all": { "type": "boolean" }, + "checkUpdate": { + "type": "boolean" + }, "name": { "type": "string" }, @@ -30319,6 +32359,34 @@ ], "type": "object" }, + "request.FileRemarkBatch": { + "properties": { + "paths": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "paths" + ], + "type": "object" + }, + "request.FileRemarkUpdate": { + "properties": { + "path": { + "type": "string" + }, + "remark": { + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, "request.FileRename": { "properties": { "newName": { @@ -31678,6 +33746,9 @@ "streamPorts": { "type": "string" }, + "udp": { + "type": "boolean" + }, "websiteID": { "type": "integer" } @@ -31797,6 +33868,9 @@ ], "type": "string" }, + "useEAB": { + "type": "boolean" + }, "useProxy": { "type": "boolean" } @@ -32064,6 +34138,9 @@ "type": { "type": "string" }, + "udp": { + "type": "boolean" + }, "webSiteGroupID": { "type": "integer" }, @@ -32746,6 +34823,14 @@ ], "type": "object" }, + "request.WebsiteSSLListReq": { + "properties": { + "acmeAccountID": { + "type": "string" + } + }, + "type": "object" + }, "request.WebsiteSSLSearch": { "properties": { "acmeAccountID": { @@ -32764,6 +34849,7 @@ }, "orderBy": { "enum": [ + "created_at", "expire_date" ], "type": "string" @@ -32776,8 +34862,6 @@ } }, "required": [ - "order", - "orderBy", "page", "pageSize" ], @@ -33066,6 +35150,9 @@ "architectures": { "type": "string" }, + "batchInstallSupport": { + "type": "boolean" + }, "createdAt": { "type": "string" }, @@ -33216,6 +35303,14 @@ }, "type": "object" }, + "response.AppDetailSimpleDTO": { + "properties": { + "id": { + "type": "integer" + } + }, + "type": "object" + }, "response.AppInstalledCheck": { "properties": { "app": { @@ -33262,6 +35357,9 @@ }, "response.AppItem": { "properties": { + "batchInstallSupport": { + "type": "boolean" + }, "description": { "type": "string" }, @@ -33715,6 +35813,17 @@ }, "type": "object" }, + "response.FileRemarksRes": { + "properties": { + "remarks": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, "response.FileTree": { "properties": { "children": { @@ -34454,6 +36563,9 @@ "url": { "type": "string" }, + "useEAB": { + "type": "boolean" + }, "useProxy": { "type": "boolean" } @@ -34640,6 +36752,9 @@ "type": { "type": "string" }, + "udp": { + "type": "boolean" + }, "updatedAt": { "type": "string" },