refactor(api): migrate console app common endpoints to BaseModel (#37951)

Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
chariri
2026-07-02 03:24:38 +00:00
committed by GitHub
co-authored by Asuka Minato autofix-ci[bot]
parent 2429b757d8
commit 4fc8f0ddd1
10 changed files with 171 additions and 137 deletions
+18 -5
View File
@@ -2903,6 +2903,7 @@ Create a copy of an existing application
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 201 | App copied successfully | **application/json**: [AppDetailWithSite](#appdetailwithsite)<br> |
| 202 | App copy requires confirmation | **application/json**: [AppImportResponse](#appimportresponse)<br> |
| 403 | Insufficient permissions | |
### [GET] /apps/{app_id}/export
@@ -12954,7 +12955,7 @@ Default namespace
| role | string | | No |
| site | [AppDetailSiteResponse](#appdetailsiteresponse) | | No |
| tags | [ [Tag](#tag) ] | | No |
| tracing | [JSONValue](#jsonvalue) | | No |
| tracing | | | No |
| updated_at | integer | | No |
| updated_by | string | | No |
| use_icon_as_answer_icon | boolean | | No |
@@ -14890,7 +14891,7 @@ Enum class for api provider schema type.
| name | string | | Yes |
| permission_keys | [ string ] | | No |
| tags | [ [Tag](#tag) ] | | No |
| tracing | [JSONValue](#jsonvalue) | | No |
| tracing | | | No |
| updated_at | integer | | No |
| updated_by | string | | No |
| use_icon_as_answer_icon | boolean | | No |
@@ -14953,7 +14954,7 @@ Enum class for api provider schema type.
| permission_keys | [ string ] | | No |
| site | [AppDetailSiteResponse](#appdetailsiteresponse) | | No |
| tags | [ [Tag](#tag) ] | | No |
| tracing | [JSONValue](#jsonvalue) | | No |
| tracing | | | No |
| updated_at | integer | | No |
| updated_by | string | | No |
| use_icon_as_answer_icon | boolean | | No |
@@ -15000,6 +15001,18 @@ Enum class for api provider schema type.
| yaml_content | string | | No |
| yaml_url | string | | No |
#### AppImportResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| app_id | string | | No |
| app_mode | string | | No |
| current_dsl_version | string | | Yes |
| error | string | | No |
| id | string | | Yes |
| imported_dsl_version | string | | No |
| status | [ImportStatus](#importstatus) | | Yes |
#### AppListQuery
| Name | Type | Description | Required |
@@ -15147,7 +15160,7 @@ AppMCPServer Status Enum
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| enabled | boolean | | Yes |
| enabled | boolean | | No |
| tracing_provider | string | | No |
#### AppVariableConfig
@@ -18467,7 +18480,7 @@ Metadata operation data
| ---- | ---- | ----------- | -------- |
| created_at | integer | | No |
| created_by | string | | No |
| model | [JSONValue](#jsonvalue) | | No |
| model | | | No |
| pre_prompt | string | | No |
| updated_at | integer | | No |
| updated_by | string | | No |