{
    "schemes": [
        "http",
        "https"
    ],
    "swagger": "2.0",
    "info": {
        "description": "EasyAI AI Gateway 的本地鉴权、平台模型管理、定价、运行策略、钱包和 AI 任务接口。\n受保护接口使用 Authorization: Bearer \u003cJWT 或 API Key\u003e，管理接口只接受 JWT 用户凭证。",
        "title": "EasyAI AI Gateway API",
        "contact": {},
        "version": "0.1.0"
    },
    "basePath": "/",
    "paths": {
        "/api/admin/access-rules": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回用户组、租户、用户或 API Key 到平台、平台模型、基础模型的分层访问规则。主体当前层无 allow 时继承上级，存在 allow 时仅允许白名单，deny 始终优先。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "access-rules"
                ],
                "summary": "列出访问规则",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AccessRuleListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端创建一条访问控制规则；同一主体层存在任意有效 allow 后该层启用白名单，deny 始终优先。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "access-rules"
                ],
                "summary": "创建访问规则",
                "parameters": [
                    {
                        "description": "访问规则请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.AccessRuleInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.AccessRule"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/access-rules/batch": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端为同一主体批量新增、更新或删除资源访问规则。清空该主体全部 allow 会恢复上级继承。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "access-rules"
                ],
                "summary": "批量写入访问规则",
                "parameters": [
                    {
                        "description": "访问规则批量请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.AccessRuleBatchInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AccessRuleListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/access-rules/{ruleID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除一条访问控制规则。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "access-rules"
                ],
                "summary": "删除访问规则",
                "parameters": [
                    {
                        "type": "string",
                        "description": "访问规则 ID",
                        "name": "ruleID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新一条访问控制规则。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "access-rules"
                ],
                "summary": "更新访问规则",
                "parameters": [
                    {
                        "type": "string",
                        "description": "访问规则 ID",
                        "name": "ruleID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "访问规则请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.AccessRuleInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.AccessRule"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/audit-logs": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端按分类、动作、目标类型和目标 ID 查询审计日志。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "billing"
                ],
                "summary": "列出审计日志",
                "parameters": [
                    {
                        "type": "string",
                        "description": "审计分类",
                        "name": "category",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "审计动作",
                        "name": "action",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "目标类型",
                        "name": "targetType",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "目标 ID",
                        "name": "targetId",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 100,
                        "description": "返回数量",
                        "name": "limit",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AuditLogListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/catalog/base-models": {
            "get": {
                "description": "返回基础模型目录；公共路径和管理路径返回同一结构。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "列出基础模型",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.BaseModelListResponse"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端新增基础模型目录项，providerKey、providerModelName 和 modelType 必填。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "创建基础模型",
                "parameters": [
                    {
                        "description": "基础模型请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.BaseModelInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.BaseModel"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/catalog/base-models/reset-all": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "将所有具备系统默认快照的基础模型恢复为默认配置。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "重置全部基础模型",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.BaseModelListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/catalog/base-models/{baseModelID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除基础模型目录项。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "删除基础模型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "基础模型 ID",
                        "name": "baseModelID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新基础模型目录项及能力、图标、默认快照等元数据。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "更新基础模型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "基础模型 ID",
                        "name": "baseModelID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "基础模型请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.BaseModelInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.BaseModel"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/catalog/base-models/{baseModelID}/reset": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "将指定基础模型恢复为系统默认快照；无默认快照时返回 409。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "重置基础模型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "基础模型 ID",
                        "name": "baseModelID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.BaseModel"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/catalog/providers": {
            "get": {
                "description": "返回模型目录使用的供应商元数据；公共路径和管理路径返回同一结构。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "列出目录供应商",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.CatalogProviderListResponse"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端新增模型目录供应商，providerKey 和 displayName 必填。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "创建目录供应商",
                "parameters": [
                    {
                        "description": "目录供应商请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CatalogProviderInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.CatalogProvider"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/catalog/providers/{providerID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除目录供应商。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "删除目录供应商",
                "parameters": [
                    {
                        "type": "string",
                        "description": "目录供应商 ID",
                        "name": "providerID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新目录供应商展示信息、图标和元数据。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "更新目录供应商",
                "parameters": [
                    {
                        "type": "string",
                        "description": "目录供应商 ID",
                        "name": "providerID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "目录供应商请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CatalogProviderInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.CatalogProvider"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/config/network-proxy": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端查看服务当前使用的全局 HTTP 代理配置及来源。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "config"
                ],
                "summary": "获取网络代理配置",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.NetworkProxyConfigResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/models": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回所有平台模型，并补齐有效计费配置。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platform-models"
                ],
                "summary": "列出平台模型",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformModelListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/platform-models": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "为平台新增一个可路由模型；路径中的 platformID 会覆盖请求体 platformId。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platform-models"
                ],
                "summary": "创建平台模型",
                "parameters": [
                    {
                        "description": "平台模型配置请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CreatePlatformModelInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.PlatformModel"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/platform-models/{modelID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "删除指定平台模型路由配置。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platform-models"
                ],
                "summary": "删除平台模型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "平台模型 ID",
                        "name": "modelID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/platforms": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回所有接入平台及其优先级、定价和运行策略摘要。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platforms"
                ],
                "summary": "列出平台",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "新增模型供应商平台配置；credentials 会被服务端保存并在返回值中脱敏。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platforms"
                ],
                "summary": "创建平台",
                "parameters": [
                    {
                        "description": "平台配置请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CreatePlatformInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.Platform"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/platforms/{platformID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "删除指定平台及关联配置；不存在时返回 404。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platforms"
                ],
                "summary": "删除平台",
                "parameters": [
                    {
                        "type": "string",
                        "description": "平台 ID",
                        "name": "platformID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "覆盖指定平台的基础配置、凭证、优先级、定价和运行策略。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platforms"
                ],
                "summary": "更新平台",
                "parameters": [
                    {
                        "type": "string",
                        "description": "平台 ID",
                        "name": "platformID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "平台配置请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CreatePlatformInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.Platform"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/platforms/{platformID}/dynamic-priority": {
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端调整平台运行时动态优先级；reset 为 true 时清空动态值。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "更新平台动态优先级",
                "parameters": [
                    {
                        "type": "string",
                        "description": "平台 ID",
                        "name": "platformID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "动态优先级请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.updatePlatformDynamicPriorityRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.Platform"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/platforms/{platformID}/models": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "用请求体中的 models 列表整体替换指定平台下的模型配置。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platform-models"
                ],
                "summary": "替换平台模型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "平台 ID",
                        "name": "platformID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "模型列表请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.ReplacePlatformModelsRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformModelListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "为平台新增一个可路由模型；路径中的 platformID 会覆盖请求体 platformId。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "platform-models"
                ],
                "summary": "创建平台模型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "平台 ID，使用 /api/admin/platforms/{platformID}/models 时由路径提供",
                        "name": "platformID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "平台模型配置请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CreatePlatformModelInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.PlatformModel"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/pricing/rule-sets": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回可分配给平台、模型、租户或用户组的定价规则集。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "pricing"
                ],
                "summary": "列出定价规则集",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PricingRuleSetListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端创建定价规则集，ruleSetKey、name 和至少一条 rule 必填。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "pricing"
                ],
                "summary": "创建定价规则集",
                "parameters": [
                    {
                        "description": "定价规则集请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.PricingRuleSetInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.PricingRuleSet"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/pricing/rule-sets/{ruleSetID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除非默认定价规则集；默认规则集受保护。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "pricing"
                ],
                "summary": "删除定价规则集",
                "parameters": [
                    {
                        "type": "string",
                        "description": "定价规则集 ID",
                        "name": "ruleSetID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新定价规则集及其规则列表。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "pricing"
                ],
                "summary": "更新定价规则集",
                "parameters": [
                    {
                        "type": "string",
                        "description": "定价规则集 ID",
                        "name": "ruleSetID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "定价规则集请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.PricingRuleSetInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.PricingRuleSet"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/pricing/rules": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回所有定价规则明细，便于管理端排查有效价格。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "pricing"
                ],
                "summary": "列出定价规则",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PricingRuleListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/billing-settlements": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端分页查询待结算、重试失败和人工复核记录。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "billing"
                ],
                "summary": "查询计费结算队列",
                "parameters": [
                    {
                        "type": "string",
                        "description": "结算状态",
                        "name": "status",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "动作：settle 或 release",
                        "name": "action",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 50,
                        "description": "每页数量",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.BillingSettlementListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/billing-settlements/{settlementId}/retry": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Manager 使用单值 Idempotency-Key 将重试失败或人工复核记录重新放入队列，并记录审计日志。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "billing"
                ],
                "summary": "重试计费结算",
                "parameters": [
                    {
                        "type": "string",
                        "description": "结算记录 ID",
                        "name": "settlementId",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.BillingSettlementRetryResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/model-rate-limits": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端查看平台模型维度的限流和冷却状态。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "列出模型限流状态",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ModelRateLimitStatusListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/model-rate-limits/{platformModelID}/restore": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端手动解除平台模型停用、模型冷却、平台冷却或平台禁用状态，使其重新参与路由。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "恢复平台模型运行状态",
                "parameters": [
                    {
                        "type": "string",
                        "description": "平台模型 ID",
                        "name": "platformModelID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.ModelRateLimitStatus"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/policy-sets": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回可分配给平台、模型或用户组的运行策略集。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "列出运行策略集",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.RuntimePolicySetListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端创建运行策略集，policyKey 和 name 必填。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "创建运行策略集",
                "parameters": [
                    {
                        "description": "运行策略集请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.RuntimePolicySetInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.RuntimePolicySet"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/policy-sets/{policySetID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除非默认运行策略集；默认策略集受保护。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "删除运行策略集",
                "parameters": [
                    {
                        "type": "string",
                        "description": "运行策略集 ID",
                        "name": "policySetID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新运行策略集及其限流、重试、超时等策略配置。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "更新运行策略集",
                "parameters": [
                    {
                        "type": "string",
                        "description": "运行策略集 ID",
                        "name": "policySetID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "运行策略集请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.RuntimePolicySetInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.RuntimePolicySet"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/rate-limit-windows": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端查看当前运行时限流窗口状态。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "列出限流窗口",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.RateLimitWindowListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/runner-policy": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端获取当前生效的默认 Runner 调度策略。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "获取 Runner 策略",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.RunnerPolicy"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端写入默认 Runner 调度策略。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "runtime"
                ],
                "summary": "更新 Runner 策略",
                "parameters": [
                    {
                        "description": "Runner 策略请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.RunnerPolicyInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.RunnerPolicy"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/runtime/workers": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "获取集群 Worker 实时负载与领取容量",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.WorkerClusterRuntime"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/capacity-profiles": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "获取经生产同构验收认证的容量配置",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/store.CapacityProfile"
                            }
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "创建生产同构验收 Run",
                "parameters": [
                    {
                        "description": "验收 Run",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CreateAcceptanceRunInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.AcceptanceRun"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs/{runID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "获取生产同构验收 Run",
                "parameters": [
                    {
                        "type": "string",
                        "description": "验收 Run ID",
                        "name": "runID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.AcceptanceRun"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs/{runID}/abort": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "人工 CAS 中止验收并切回 live",
                "parameters": [
                    {
                        "type": "string",
                        "description": "验收 Run ID",
                        "name": "runID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "线上 release 与 digest CAS",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.PromoteAcceptanceRunInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTrafficMode"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs/{runID}/activate": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "切换到 validation 并激活 Run",
                "parameters": [
                    {
                        "type": "string",
                        "description": "验收 Run ID",
                        "name": "runID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTrafficMode"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs/{runID}/capacity-profiles": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "为当前 validation Run 暂存 80% 容量门禁",
                "parameters": [
                    {
                        "type": "string",
                        "description": "验收 Run ID",
                        "name": "runID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "待验证容量配置",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.StageAcceptanceCapacityProfilesInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.AcceptanceRun"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs/{runID}/finish": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "记录验收门禁结果",
                "parameters": [
                    {
                        "type": "string",
                        "description": "验收 Run ID",
                        "name": "runID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "门禁结果",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.FinishAcceptanceRunInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.AcceptanceRun"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs/{runID}/promote": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "通过 CAS 切回 live",
                "parameters": [
                    {
                        "type": "string",
                        "description": "验收 Run ID",
                        "name": "runID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "线上 release 与 digest CAS",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.PromoteAcceptanceRunInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTrafficMode"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/runs/{runID}/retry": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "在 validation 关闭正式流量的状态下重试失败 Run",
                "parameters": [
                    {
                        "type": "string",
                        "description": "验收 Run ID",
                        "name": "runID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.AcceptanceRun"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/traffic-mode": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "获取 Gateway 流量模式",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTrafficMode"
                        }
                    }
                }
            }
        },
        "/api/admin/system/acceptance/traffic-mode/pause": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "acceptance"
                ],
                "summary": "上线后硬门禁异常时通过 CAS 暂停正式新任务",
                "parameters": [
                    {
                        "description": "当前线上 release 与 revision CAS",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.PauseGatewayTrafficInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTrafficMode"
                        }
                    }
                }
            }
        },
        "/api/admin/system/client-customization/settings": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回客户端名称、英文名称、平台名和图标路径；数据库对象尚未创建时返回默认设置。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "获取客户端自定义设置",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.ClientCustomizationSettings"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "更新客户端名称、英文名称、平台名和图标路径。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "更新客户端自定义设置",
                "parameters": [
                    {
                        "description": "客户端自定义设置",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.ClientCustomizationSettingsInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.ClientCustomizationSettings"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/file-storage/channels": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回所有未删除的文件存储通道，用于管理上传与生成资源回传策略。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "列出文件存储通道",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.FileStorageChannelListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "创建文件存储通道，当前主要用于配置 server-main OpenAPI 上传通道。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "创建文件存储通道",
                "parameters": [
                    {
                        "description": "文件存储通道",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.FileStorageChannelInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.FileStorageChannel"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/file-storage/channels/{channelID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "软删除指定文件存储通道。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "删除文件存储通道",
                "parameters": [
                    {
                        "type": "string",
                        "description": "文件存储通道 ID",
                        "name": "channelID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "更新指定文件存储通道的名称、凭证、场景、优先级、状态和重试策略。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "更新文件存储通道",
                "parameters": [
                    {
                        "type": "string",
                        "description": "文件存储通道 ID",
                        "name": "channelID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "文件存储通道",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.FileStorageChannelInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.FileStorageChannel"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/file-storage/settings": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回文件存储系统设置；数据库对象尚未创建时返回默认设置。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "获取文件存储设置",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.FileStorageSettings"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "更新生成资源上传策略等文件存储系统设置。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "更新文件存储设置",
                "parameters": [
                    {
                        "description": "文件存储设置",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.FileStorageSettingsInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.FileStorageSettings"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/configuration": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回 Active、Draft、Previous Revision、配对进度和脱敏运行时健康状态。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "获取统一认证配置",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.identityConfigurationView"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/disable": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "将 Revision 转为只读 Superseded 审计历史，清理 BFF Session，并继续允许本地管理登录；重新接入必须使用新的接入码。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "禁用统一认证",
                "parameters": [
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "当前 Active Revision ETag",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/identity.Revision"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "412": {
                        "description": "Precondition Failed",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/pairings": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "使用一次性接入码创建 Draft 和异步 Exchange。接入码仅允许出现在请求 Body。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "启动统一认证配对",
                "parameters": [
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "首次配对固定为 W/\\",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    },
                    {
                        "description": "配对参数",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/identity.PairingInput"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/identity.PairingExchange"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/pairings/{pairingID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "查询统一认证配对状态",
                "parameters": [
                    {
                        "type": "string",
                        "description": "配对 ID",
                        "name": "pairingID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/identity.PairingExchange"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/pairings/{pairingID}/cancel": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "原子封存未激活 Revision，并异步清理由该 Revision 拥有的临时 Secret 与 SSF 连接。不会撤销已经完成的远端 Exchange；下一次凭据交付会轮换机器凭据。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "放弃本地统一认证配对",
                "parameters": [
                    {
                        "type": "string",
                        "description": "配对 ID",
                        "name": "pairingID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "当前 Pairing ETag",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/identity.PairingExchange"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "412": {
                        "description": "Precondition Failed",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/pairings/{pairingID}/retire-conflicting-security-event": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "仅当指定 Pairing 仍因 owner 冲突停在 credentials_saved 时，退役不属于该 Revision 的旧连接；陈旧请求不会退役当前 Pairing 已创建的新连接。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "安全退役阻塞配对的旧 SSF 连接",
                "parameters": [
                    {
                        "type": "string",
                        "description": "配对 ID",
                        "name": "pairingID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "当前 Pairing ETag",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/identity.PairingExchange"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "412": {
                        "description": "Precondition Failed",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/revisions/{revisionID}": {
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "修改统一认证 Draft 策略",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Revision ID",
                        "name": "revisionID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "当前 Revision ETag",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    },
                    {
                        "description": "Gateway 本地策略",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.identityPolicyPatch"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/identity.Revision"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "412": {
                        "description": "Precondition Failed",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/revisions/{revisionID}/activate": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "在完整候选 Runtime 验证成功且本地 Break-glass Manager 可用后原子热切换。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "激活统一认证 Revision",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Revision ID",
                        "name": "revisionID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "当前 Revision ETag",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/identity.Revision"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "412": {
                        "description": "Precondition Failed",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/revisions/{revisionID}/rollback": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "当前远端 OAuth/SSF 资源未版本化，接口会拒绝直接回滚并要求禁用后使用新接入码完成交接。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "请求恢复历史统一认证 Revision",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Revision ID",
                        "name": "revisionID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "当前 Revision ETag",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/identity.Revision"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "412": {
                        "description": "Precondition Failed",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/system/identity/revisions/{revisionID}/validate": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "验证统一认证 Revision",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Revision ID",
                        "name": "revisionID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "幂等键",
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "当前 Revision ETag",
                        "name": "If-Match",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/identity.Revision"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "412": {
                        "description": "Precondition Failed",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "428": {
                        "description": "Precondition Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/tasks": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "跨租户分页查询任务；请求、结果和执行快照中的常见敏感字段默认脱敏。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "admin-tasks"
                ],
                "summary": "管理员列出任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "关键词，匹配任务、用户、租户、模型、平台和 API Key",
                        "name": "q",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "网关租户 ID",
                        "name": "tenantId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "网关用户 ID",
                        "name": "userId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "用户组 ID",
                        "name": "userGroupId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "任务状态",
                        "name": "status",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "执行平台 ID",
                        "name": "platformId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "调用或实际模型名称",
                        "name": "model",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "模型类型",
                        "name": "modelType",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "运行模式",
                        "name": "runMode",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "计费状态",
                        "name": "billingStatus",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "API Key ID、名称或前缀",
                        "name": "apiKey",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间起点，支持 RFC3339 或日期格式",
                        "name": "createdFrom",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间终点，支持 RFC3339 或日期格式",
                        "name": "createdTo",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 50,
                        "description": "每页数量",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AdminTaskListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/tasks/{taskID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回任意租户的任务详情；默认脱敏，sensitive=full 时返回完整存储内容。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "admin-tasks"
                ],
                "summary": "管理员获取任务详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "enum": [
                            "masked",
                            "full"
                        ],
                        "type": "string",
                        "default": "masked",
                        "description": "敏感字段模式",
                        "name": "sensitive",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.AdminGatewayTask"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/tasks/{taskID}/param-preprocessing": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回任意租户任务的参数改写、校验或模板处理日志；默认脱敏。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "admin-tasks"
                ],
                "summary": "管理员获取任务参数预处理日志",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "enum": [
                            "masked",
                            "full"
                        ],
                        "type": "string",
                        "default": "masked",
                        "description": "敏感字段模式",
                        "name": "sensitive",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskParamPreprocessingLogListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/tenants": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回网关租户列表。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "列出租户",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TenantListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端创建网关租户，tenantKey 和 name 必填。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "创建租户",
                "parameters": [
                    {
                        "description": "租户请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTenantInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTenant"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/tenants/{tenantID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除网关租户。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "删除租户",
                "parameters": [
                    {
                        "type": "string",
                        "description": "租户 ID",
                        "name": "tenantID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新网关租户信息。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "更新租户",
                "parameters": [
                    {
                        "type": "string",
                        "description": "租户 ID",
                        "name": "tenantID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "租户请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTenantInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTenant"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/user-groups": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回用户组及其计费、限流和配额策略。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "列出用户组",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.UserGroupListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端创建用户组，可配置默认定价、运行策略、限流和配额策略。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "创建用户组",
                "parameters": [
                    {
                        "description": "用户组请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.UserGroupInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.UserGroup"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/user-groups/batch": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端原子批量启用、禁用或删除最多 500 个用户组；删除时同步删除其访问规则，关联默认用户组外键按数据库约束置空。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "批量操作用户组",
                "parameters": [
                    {
                        "description": "用户组批量操作",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.IdentityBatchInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.IdentityBatchResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/user-groups/{groupID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除用户组。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "删除用户组",
                "parameters": [
                    {
                        "type": "string",
                        "description": "用户组 ID",
                        "name": "groupID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新用户组基础信息和策略配置。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "更新用户组",
                "parameters": [
                    {
                        "type": "string",
                        "description": "用户组 ID",
                        "name": "groupID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "用户组请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.UserGroupInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.UserGroup"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/users": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端返回网关用户列表及钱包摘要。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "列出用户",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.UserListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端创建网关用户；password 为空时不设置本地密码，非空时至少 8 位。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "创建用户",
                "parameters": [
                    {
                        "description": "用户请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.GatewayUserInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayUser"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/users/batch": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端原子批量启用、禁用或软删除最多 500 个用户；任一目标不存在时整批不变更。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "批量操作用户",
                "parameters": [
                    {
                        "description": "用户批量操作",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.IdentityBatchInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.IdentityBatchResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/users/{userID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端删除网关用户。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "删除用户",
                "parameters": [
                    {
                        "type": "string",
                        "description": "用户 ID",
                        "name": "userID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端更新网关用户资料、角色、默认用户组和可选本地密码。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "更新用户",
                "parameters": [
                    {
                        "type": "string",
                        "description": "用户 ID",
                        "name": "userID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "用户请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.GatewayUserInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayUser"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/users/{userID}/wallet": {
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端把指定用户钱包余额调整到目标值，并记录审计日志；balance 不允许为负数。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "billing"
                ],
                "summary": "设置用户钱包余额",
                "parameters": [
                    {
                        "type": "string",
                        "description": "用户 ID",
                        "name": "userID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "钱包余额设置请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.walletBalanceRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.WalletAdjustmentResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/admin/users/{userID}/wallet/recharge": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理端给指定用户钱包追加充值金额，并记录审计日志；amount 必须大于 0。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "billing"
                ],
                "summary": "充值用户钱包余额",
                "parameters": [
                    {
                        "type": "string",
                        "description": "用户 ID",
                        "name": "userID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "钱包充值请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.walletRechargeRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.WalletAdjustmentResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/playground/api-keys": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前本地用户可在 Playground 中直接使用的 API Key 和 secret。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "playground"
                ],
                "summary": "列出 Playground API Key",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlayableAPIKeyListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/ai/result/{taskID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "查询当前用户的图片、视频、音频、视频高清和矢量化任务，并返回 EasyAI GeneratedResponse 兼容结构。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "查询 server-main EasyAIClient 兼容任务结果",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前用户创建的 API Key 元数据，secret 只在创建时返回。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "列出 API Key",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.APIKeyListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "为当前本地用户创建 API Key；secret 仅在本次响应中返回。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "创建 API Key",
                "parameters": [
                    {
                        "description": "API Key 创建请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.CreateAPIKeyInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/store.CreatedAPIKey"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys/access-rules": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前本地用户拥有的 API Key 访问规则；不会混入其他用户或其他 API Key 的规则。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "列出 API Key 访问规则",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AccessRuleListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys/access-rules/batch": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "当前本地用户为自己的 API Key 批量新增、更新或删除白名单/拒绝资源；Key 无 allow 时继承父级范围，存在 allow 后仅允许命中项。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "批量写入 API Key 访问规则",
                "parameters": [
                    {
                        "description": "API Key 访问规则批量请求，subjectType 必须为 api_key",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.AccessRuleBatchInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AccessRuleListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys/assignable-models": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按当前用户自身的租户、用户组和用户分层白名单返回可分配给 API Key 的启用模型，不应用任何 API Key 层规则。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "列出 API Key 可分配模型",
                "deprecated": true,
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformModelListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys/{apiKeyID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "删除当前用户拥有的 API Key。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "删除 API Key",
                "parameters": [
                    {
                        "type": "string",
                        "description": "API Key ID",
                        "name": "apiKeyID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys/{apiKeyID}/assignable-models": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回全局启用、命中指定 API Key 的租户/用户组/用户基线且符合 Key scope 的可分配平台来源；当前 Key 的 allow/deny 不缩减候选，仅作为已有规则有效性诊断返回。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "列出指定 API Key 可分配模型",
                "parameters": [
                    {
                        "type": "string",
                        "description": "API Key ID",
                        "name": "apiKeyID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.APIKeyAssignableModelsResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys/{apiKeyID}/disable": {
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "禁用当前用户拥有的 API Key，保留记录但不再允许调用。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "禁用 API Key",
                "parameters": [
                    {
                        "type": "string",
                        "description": "API Key ID",
                        "name": "apiKeyID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.APIKey"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/api-keys/{apiKeyID}/scopes": {
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "更新当前用户拥有的 API Key scopes，至少需要保留一个能力范围。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "api-keys"
                ],
                "summary": "更新 API Key 能力范围",
                "parameters": [
                    {
                        "type": "string",
                        "description": "API Key ID",
                        "name": "apiKeyID",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "API Key scope 更新请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.UpdateAPIKeyScopesInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.APIKey"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/auth/login": {
            "post": {
                "description": "使用用户名或邮箱登录本地账号，并返回 24 小时 JWT。非本地身份模式只允许本地应急 Manager 登录。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "本地登录",
                "parameters": [
                    {
                        "description": "登录请求，account 可为用户名或邮箱",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.LocalLoginInput"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AuthResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/auth/oidc/callback": {
            "get": {
                "description": "Gateway 使用 client_id、授权码和 PKCE verifier 换取 Token，不发送 Client Secret；Token 加密存入服务端 Session。",
                "tags": [
                    "auth"
                ],
                "summary": "完成 OIDC 公共客户端登录",
                "responses": {
                    "303": {
                        "description": "See Other"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/auth/oidc/login": {
            "get": {
                "description": "Gateway 生成 state、nonce 和 PKCE S256 参数，并跳转认证中心；浏览器不接触 Token。",
                "tags": [
                    "auth"
                ],
                "summary": "开始 OIDC 公共客户端登录",
                "parameters": [
                    {
                        "type": "string",
                        "description": "登录后返回的站内相对路径",
                        "name": "returnTo",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "兼容旧入口的显式登录上下文：platform 或 tenant；省略时由认证中心选择",
                        "name": "contextType",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Tenant 上下文可选的稳定 Tenant UUID",
                        "name": "tenantHint",
                        "in": "query"
                    }
                ],
                "responses": {
                    "303": {
                        "description": "See Other"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/auth/oidc/logout": {
            "post": {
                "description": "删除 Gateway Session、撤销公共 Client Refresh Token，并跳转认证中心退出地址。",
                "tags": [
                    "auth"
                ],
                "summary": "注销 OIDC 登录会话",
                "responses": {
                    "303": {
                        "description": "See Other"
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/auth/oidc/session": {
            "delete": {
                "tags": [
                    "auth"
                ],
                "summary": "删除本地 OIDC 浏览器会话",
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/auth/register": {
            "post": {
                "description": "在 standalone 或 hybrid 身份模式下创建本地用户，并返回 24 小时 JWT。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "本地注册",
                "parameters": [
                    {
                        "description": "注册请求，password 至少 8 位，invitationCode 取决于部署策略",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/store.LocalRegisterInput"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/httpapi.AuthResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/chat/completions": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "/api/v1/chat/completions 同步执行：stream=true 返回 text/event-stream SSE；stream=false 或未传返回兼容 JSON；该接口忽略 X-Async。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "text/event-stream"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "创建 Chat Completions",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "该接口忽略此参数",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "description": "Chat Completions 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.ChatCompletionRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ChatCompletionCompatibleResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/contents/generations/tasks": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "volces-compatible"
                ],
                "summary": "列出火山内容生成任务",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "统一公开入口兼容火山方舟内容生成任务。网关 task id 是查询与取消用的公开 id；上游 id 另以 upstream_task_id 保留。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "volces-compatible"
                ],
                "summary": "创建火山内容生成任务",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesContentsGenerationTaskResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/contents/generations/tasks/{taskID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "volces-compatible"
                ],
                "summary": "查询火山内容生成任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesContentsGenerationTaskResponse"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "取消网关任务；对于已提交且保存了上游任务标识的 Volces 视频任务，同时调用火山 DELETE 接口并持久化取消状态。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "volces-compatible"
                ],
                "summary": "取消火山内容生成任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesContentsGenerationTaskResponse"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.VolcesErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/embeddings": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "embeddings"
                ],
                "summary": "创建 OpenAI Embeddings",
                "parameters": [
                    {
                        "description": "OpenAI Embeddings 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.CompatibleResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/files/upload": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "上传文件到配置的文件存储通道；没有启用通道时回退到本地静态上传目录。单文件最大 256MiB。",
                "consumes": [
                    "multipart/form-data"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "files"
                ],
                "summary": "上传文件",
                "parameters": [
                    {
                        "type": "file",
                        "description": "要上传的文件",
                        "name": "file",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "default": "ai-gateway-openapi",
                        "description": "上传来源标识",
                        "name": "source",
                        "in": "formData"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.FileUploadResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/gemini/upload/{version}/files": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "使用统一 /api/v1 前缀启动或直接完成 Gemini Files 上传。",
                "consumes": [
                    "application/octet-stream"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "gemini-compatible"
                ],
                "summary": "Gemini Files 上传接口",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Gemini 版本（v1 或 v1beta）",
                        "name": "version",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/gemini/upload/{version}/files/{uploadID}": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/octet-stream"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "gemini-compatible"
                ],
                "summary": "完成 Gemini Files 分段上传",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Gemini 版本（v1 或 v1beta）",
                        "name": "version",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "上传会话 ID",
                        "name": "uploadID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/healthz": {
            "get": {
                "description": "返回服务进程、运行环境和身份模式，供负载均衡或人工排障使用。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "健康检查",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.HealthResponse"
                        }
                    }
                }
            }
        },
        "/api/v1/images/edits": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "默认同步返回 OpenAI-compatible Images 响应；非文本模型并发饱和且配置队列时等待准入，超过最长等待返回 504 queue_timeout；设置 X-Async=true 时异步创建任务并返回 202。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "images"
                ],
                "summary": "创建或编辑 OpenAI Images",
                "parameters": [
                    {
                        "description": "OpenAI Images 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    },
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIImagesResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "504": {
                        "description": "Gateway Timeout",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/images/generations": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "默认同步返回 OpenAI-compatible Images 响应；非文本模型并发饱和且配置队列时等待准入，超过最长等待返回 504 queue_timeout；设置 X-Async=true 时异步创建任务并返回 202。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "images"
                ],
                "summary": "创建或编辑 OpenAI Images",
                "parameters": [
                    {
                        "description": "OpenAI Images 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    },
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIImagesResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "504": {
                        "description": "Gateway Timeout",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/images/vectorize": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "将 URL 位图转换为 SVG、EPS、PDF、DXF 或 PNG；设置 X-Async=true 时返回统一异步任务结构。可使用同一所有者历史任务的 vectorizerTaskId 复用上游 image token。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "images"
                ],
                "summary": "图片矢量化",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "description": "图片矢量化请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.ImageVectorizeRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/kling/v1/videos/omni-video": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "分页查询可灵 V1 Omni 视频任务",
                "parameters": [
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码",
                        "name": "pageNum",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 30,
                        "description": "每页数量",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "兼容中国区可灵 V1 /v1/videos/omni-video；用户使用网关 API Key，网关在服务端使用 AK/SK 调用上游。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "创建可灵 V1 Omni 视频任务",
                "parameters": [
                    {
                        "description": "可灵 V1 Omni 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KlingErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/kling/v1/videos/omni-video/{taskID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "查询可灵 V1 Omni 视频任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            }
        },
        "/api/v1/kling/v2/omni-video/{model}": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "兼容可灵 API 2.0 的模型路径；调用方使用网关 API Key，网关转换并使用中国区 V1 AK/SK 上游。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "创建可灵 API 2.0 Omni 视频任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "模型路径（kling-o1 或 kling-v3-omni）",
                        "name": "model",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "可灵 API 2.0 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KlingErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/kling/v2/tasks": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "按 ID 查询可灵 API 2.0 任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "逗号分隔的任务 ID",
                        "name": "task_ids",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "逗号分隔的外部任务 ID",
                        "name": "external_task_ids",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "分页查询可灵 API 2.0 任务",
                "parameters": [
                    {
                        "description": "游标、数量、时间范围和筛选条件",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            }
        },
        "/api/v1/me": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回鉴权中解析出的用户、租户、用户组和 API Key 上下文。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "获取当前用户",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/auth.User"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/model-catalog": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "聚合平台模型、基础模型、供应商、运行策略和访问规则，返回前端模型目录所需的过滤器、摘要和展示字段。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "model-catalog"
                ],
                "summary": "列出模型目录",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ModelCatalogResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/models": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "兼容期 rich 平台来源明细；新客户端应改用 /api/v1/platform-models，OpenAI 客户端使用 /v1/models。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "playground"
                ],
                "summary": "列出可调用平台模型（已弃用）",
                "deprecated": true,
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformModelListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/models/{model}:generateContent": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "使用统一 /api/v1 前缀接收 Gemini generateContent 请求；旧 /v1 和 /v1beta 路径保留兼容。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "text/event-stream"
                ],
                "tags": [
                    "gemini-compatible"
                ],
                "summary": "Gemini generateContent 兼容接口",
                "parameters": [
                    {
                        "type": "string",
                        "description": "模型名称",
                        "name": "model",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Gemini generateContent 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/models/{model}:streamGenerateContent": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "使用统一 /api/v1 前缀接收 Gemini generateContent 请求；旧 /v1 和 /v1beta 路径保留兼容。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "text/event-stream"
                ],
                "tags": [
                    "gemini-compatible"
                ],
                "summary": "Gemini generateContent 兼容接口",
                "parameters": [
                    {
                        "type": "string",
                        "description": "模型名称",
                        "name": "model",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Gemini generateContent 请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.GeminiErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/music/generations": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "默认同步返回 EasyAI GeneratedResponse；非文本模型并发饱和且配置队列时等待准入，超过最长等待返回 504 queue_timeout；设置 X-Async=true 时返回同时兼容 Gateway 与 server-main EasyAIClient 的异步提交结构。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "media"
                ],
                "summary": "创建 EasyAI 媒体任务",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "可选请求幂等键；同一用户范围内唯一",
                        "name": "Idempotency-Key",
                        "in": "header"
                    },
                    {
                        "description": "媒体任务请求，字段随任务类型变化",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "504": {
                        "description": "Gateway Timeout",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/openapi.json": {
            "get": {
                "description": "返回当前构建内嵌的完整机器可读 Swagger JSON，供 Agent 在 SKILL references 未覆盖接口时查询。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent-resources"
                ],
                "summary": "获取 AI Gateway Swagger JSON",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            }
        },
        "/api/v1/openapi.yaml": {
            "get": {
                "description": "返回当前构建内嵌的完整机器可读 Swagger YAML。",
                "produces": [
                    "application/yaml"
                ],
                "tags": [
                    "agent-resources"
                ],
                "summary": "获取 AI Gateway Swagger YAML",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/api/v1/platform-models": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按全局启用、租户、用户组、用户、当前 API Key 分层白名单及 scope 的交集返回可用于 Playground 或 API 调用的平台来源；其他主体规则不参与求值。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "playground"
                ],
                "summary": "列出可调用模型",
                "parameters": [
                    {
                        "enum": [
                            "canvas_model_node",
                            "desktop"
                        ],
                        "type": "string",
                        "description": "模型可选场景；不传时保持原有行为",
                        "name": "usage_scene",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformModelListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/platforms": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按当前用户可访问模型过滤平台，仅返回启用且存在可访问模型的平台。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "playground"
                ],
                "summary": "列出可用平台",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/playground/models": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按全局启用、租户、用户组、用户、当前 API Key 分层白名单及 scope 的交集返回可用于 Playground 或 API 调用的平台来源；其他主体规则不参与求值。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "playground"
                ],
                "summary": "列出可调用模型",
                "parameters": [
                    {
                        "enum": [
                            "canvas_model_node",
                            "desktop"
                        ],
                        "type": "string",
                        "description": "模型可选场景；不传时保持原有行为",
                        "name": "usage_scene",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PlatformModelListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/pricing/estimate": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按当前用户、模型候选、任务类型和请求参数估算计费条目。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "pricing"
                ],
                "summary": "估算请求价格",
                "parameters": [
                    {
                        "description": "计费估算请求，kind 默认为 chat.completions",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.PricingEstimateRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.PricingEstimateResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/public/catalog/base-models": {
            "get": {
                "description": "返回基础模型目录；公共路径和管理路径返回同一结构。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "列出基础模型",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.BaseModelListResponse"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/public/catalog/providers": {
            "get": {
                "description": "返回模型目录使用的供应商元数据；公共路径和管理路径返回同一结构。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "catalog"
                ],
                "summary": "列出目录供应商",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.CatalogProviderListResponse"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/public/client-customization": {
            "get": {
                "description": "无需鉴权返回客户端名称、英文名称、平台名和图标路径；数据库对象尚未创建时返回默认设置。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "获取公开客户端自定义设置",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.ClientCustomizationSettings"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/public/identity": {
            "get": {
                "description": "返回 Web 运行时需要的启用状态和非敏感登录、退出入口，不返回 Client、Secret 或内部标识。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "identity"
                ],
                "summary": "获取公开统一认证状态",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.publicIdentityConfiguration"
                        }
                    }
                }
            }
        },
        "/api/v1/public/skills/ai-gateway-ops-management/download": {
            "get": {
                "description": "下载可交给 Agent 使用的 ai-gateway-ops-management ZIP 包。",
                "produces": [
                    "application/zip"
                ],
                "tags": [
                    "agent-resources"
                ],
                "summary": "下载 AI Gateway 运维管理 SKILL",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/public/skills/ai-gateway-ops-management/metadata": {
            "get": {
                "description": "返回公开运维管理 SKILL 的名称、版本、模块、下载文件名和机器可读接口文档路径。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent-resources"
                ],
                "summary": "获取 AI Gateway 运维管理 SKILL 元数据",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.SkillBundleMetadataResponse"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/readyz": {
            "get": {
                "description": "检查 Postgres 是否可用；数据库不可用时返回 503。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "就绪检查",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ReadyResponse"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/reranks": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "统一公开入口按 model 选择平台模型并默认同步返回兼容响应；设置 X-Async=true 时异步创建任务并返回 202。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "创建或执行 AI 任务",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "可选请求幂等键；同一用户范围内唯一",
                        "name": "Idempotency-Key",
                        "in": "header"
                    },
                    {
                        "description": "AI 任务请求，字段随任务类型变化",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.CompatibleResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/resource/material": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "文件先写入网关文件存储；仅在 private_avatar_eligible=true 时登记到火山 Assets。创建后会立即触发一次状态同步。",
                "consumes": [
                    "multipart/form-data"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "portrait-assets"
                ],
                "summary": "上传并创建 Seedance 真人资产",
                "parameters": [
                    {
                        "type": "file",
                        "description": "真人资产源文件（图片、视频或音频）",
                        "name": "file",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "material JSON，category 必须是 seedance_portrait_asset",
                        "name": "data",
                        "in": "formData",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            }
        },
        "/api/v1/resource/material/seedance-portrait-assets/capability": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前网关是否已配置可创建、同步和引用的火山 Seedance 真人资产平台。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "portrait-assets"
                ],
                "summary": "查询 Seedance 真人资产能力",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/runner.PortraitAssetCapability"
                        }
                    }
                }
            }
        },
        "/api/v1/resource/material/seedance-portrait-assets/sync": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "调用火山 CreateAsset/GetAsset；多次调用可把 Processing 状态刷新为 Active 或 Failed。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "portrait-assets"
                ],
                "summary": "同步 Seedance 真人资产状态",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/runner.PortraitAssetSyncResponse"
                        }
                    }
                }
            }
        },
        "/api/v1/resource/material/user/materials": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前用户的真人资产；兼容 server-main material 列表响应字段。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "portrait-assets"
                ],
                "summary": "列出 Seedance 真人资产",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            }
        },
        "/api/v1/responses": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "公开 OpenAI-compatible Responses 入口。模型声明 openai_responses 时原生转发，否则使用 Chat Completions 转换；store 缺省为 true。previous_response_id 严格绑定首次成功的平台模型和上游协议，链路不可用时不跨平台续接。未提供 previous_response_id 时由调用方管理完整状态，Gateway 以本轮 input/messages 为准且不追加本地历史。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "text/event-stream"
                ],
                "tags": [
                    "responses"
                ],
                "summary": "创建 OpenAI Responses",
                "parameters": [
                    {
                        "description": "Responses 请求；Chat 回退只支持自定义 function tools",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.ResponsesRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ResponsesCompatibleResponse"
                        }
                    },
                    "400": {
                        "description": "invalid_previous_response_id / unsupported_response_tool / unsupported_response_parameter",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "response_chain_unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/security-events/ssf": {
            "post": {
                "description": "Optional endpoint. It validates a stream-specific Bearer before parsing and verifying an ES256 SET. A committed event and a duplicate jti both return an empty 202 response.",
                "consumes": [
                    "application/secevent+jwt"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Security Events"
                ],
                "summary": "Receive an SSF Security Event Token",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Bearer stream-specific-secret",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "description": "Compact signed Security Event Token",
                        "name": "set",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/song/generations": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "默认同步返回 EasyAI GeneratedResponse；非文本模型并发饱和且配置队列时等待准入，超过最长等待返回 504 queue_timeout；设置 X-Async=true 时返回同时兼容 Gateway 与 server-main EasyAIClient 的异步提交结构。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "media"
                ],
                "summary": "创建 EasyAI 媒体任务",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "可选请求幂等键；同一用户范围内唯一",
                        "name": "Idempotency-Key",
                        "in": "header"
                    },
                    {
                        "description": "媒体任务请求，字段随任务类型变化",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "504": {
                        "description": "Gateway Timeout",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/speech/generations": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "默认同步返回 EasyAI GeneratedResponse；非文本模型并发饱和且配置队列时等待准入，超过最长等待返回 504 queue_timeout；设置 X-Async=true 时返回同时兼容 Gateway 与 server-main EasyAIClient 的异步提交结构。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "media"
                ],
                "summary": "创建 EasyAI 媒体任务",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "可选请求幂等键；同一用户范围内唯一",
                        "name": "Idempotency-Key",
                        "in": "header"
                    },
                    {
                        "description": "媒体任务请求，字段随任务类型变化",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "504": {
                        "description": "Gateway Timeout",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/tasks": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按当前用户列出任务，支持关键字、模型类型、时间范围和分页过滤。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "列出任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "搜索关键字，别名 query",
                        "name": "q",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "模型类型，别名 type",
                        "name": "modelType",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间起点，支持 RFC3339 或日期格式，别名 from",
                        "name": "createdFrom",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间终点，支持 RFC3339 或日期格式，别名 to",
                        "name": "createdTo",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 50,
                        "description": "每页数量，别名 limit",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/tasks/{taskID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回指定任务的请求、状态、输出和执行摘要。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "获取任务详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTask"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/tasks/{taskID}/cancel": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "仅取消仍在网关本地排队且尚未提交上游的任务；任务已运行、已提交上游或已结束时返回不可取消，客户端应继续查询结果。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "取消异步任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskCancelResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/tasks/{taskID}/events": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "以 text/event-stream 返回指定任务的历史事件；无事件时返回 task.accepted 占位事件。",
                "produces": [
                    "text/event-stream"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "订阅任务事件",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Server-Sent Events，data 为 store.TaskEvent 或 TaskAcceptedEvent",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/tasks/{taskID}/param-preprocessing": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回指定任务在执行前的参数改写、校验或模板处理日志。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "获取任务参数预处理日志",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskParamPreprocessingLogListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/video/generations": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "兼容 server-main 的 /api/v1/video/generations，返回 submitted 和 task_id；额外保留火山任务字段。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "media"
                ],
                "summary": "创建 server-main 兼容视频任务",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    }
                }
            }
        },
        "/api/v1/videos/generations": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "默认同步返回 EasyAI GeneratedResponse；非文本模型并发饱和且配置队列时等待准入，超过最长等待返回 504 queue_timeout；设置 X-Async=true 时返回同时兼容 Gateway 与 server-main EasyAIClient 的异步提交结构。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "media"
                ],
                "summary": "创建 EasyAI 媒体任务",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "可选请求幂等键；同一用户范围内唯一",
                        "name": "Idempotency-Key",
                        "in": "header"
                    },
                    {
                        "description": "媒体任务请求，字段随任务类型变化",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "504": {
                        "description": "Gateway Timeout",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/videos/omni-video": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "兼容 Kling 旧版 /v1/videos/omni-video；Bearer token 必须为 Gateway API Key。任务固定异步执行，返回的 task_id 为网关任务 ID。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "创建 Kling Omni 视频任务",
                "parameters": [
                    {
                        "description": "Kling Omni 官方兼容请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingOmniVideoRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/videos/omni-video/{taskID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按创建接口返回的网关 task_id 查询任务；仅允许创建任务的 Gateway 用户访问。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "kling-compatible"
                ],
                "summary": "查询 Kling Omni 视频任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "网关任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.KelingCompatibleEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/videos/upscales": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "原生执行 Topaz 视频增强流程；设置 X-Async=true 时返回统一异步任务结构，结果在任务完成前持久化到 Gateway 文件存储。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "videos"
                ],
                "summary": "视频超分",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "description": "视频超分请求",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.VideoUpscaleRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/voice_clone": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "默认同步返回 EasyAI GeneratedResponse；非文本模型并发饱和且配置队列时等待准入，超过最长等待返回 504 queue_timeout；设置 X-Async=true 时返回同时兼容 Gateway 与 server-main EasyAIClient 的异步提交结构。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "media"
                ],
                "summary": "创建 EasyAI 媒体任务",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "true 时异步创建任务并返回 202",
                        "name": "X-Async",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "可选请求幂等键；同一用户范围内唯一",
                        "name": "Idempotency-Key",
                        "in": "header"
                    },
                    {
                        "description": "媒体任务请求，字段随任务类型变化",
                        "name": "input",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.EasyAIGeneratedResponse"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskAcceptedResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "402": {
                        "description": "Payment Required",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "504": {
                        "description": "Gateway Timeout",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/voice_clone/voices": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前用户在网关中维护的克隆音色，以及克隆时绑定的平台与平台模型。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "voice-clone"
                ],
                "summary": "列出当前用户克隆音色",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/v1/voice_clone/voices/{voiceID}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "先从上游供应商删除音色，成功后再将网关数据库中的音色记录标记为 deleted。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "voice-clone"
                ],
                "summary": "删除当前用户克隆音色",
                "parameters": [
                    {
                        "type": "string",
                        "description": "克隆音色记录 ID 或上游 voice_id",
                        "name": "voiceID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/desktop-config": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回桌面端需要的 Gateway Web 账单入口配置。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workspace"
                ],
                "summary": "获取桌面端配置",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.desktopConfigResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/tasks": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按当前用户列出任务，支持关键字、模型类型、时间范围和分页过滤。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "列出任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "搜索关键字，别名 query",
                        "name": "q",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "模型类型，别名 type",
                        "name": "modelType",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间起点，支持 RFC3339 或日期格式，别名 from",
                        "name": "createdFrom",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间终点，支持 RFC3339 或日期格式，别名 to",
                        "name": "createdTo",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 50,
                        "description": "每页数量，别名 limit",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/tasks/{taskID}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回指定任务的请求、状态、输出和执行摘要。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "获取任务详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.GatewayTask"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/tasks/{taskID}/cancel": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "仅取消仍在网关本地排队且尚未提交上游的任务；任务已运行、已提交上游或已结束时返回不可取消，客户端应继续查询结果。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "取消异步任务",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskCancelResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/tasks/{taskID}/events": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "以 text/event-stream 返回指定任务的历史事件；无事件时返回 task.accepted 占位事件。",
                "produces": [
                    "text/event-stream"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "订阅任务事件",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Server-Sent Events，data 为 store.TaskEvent 或 TaskAcceptedEvent",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/tasks/{taskID}/param-preprocessing": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回指定任务在执行前的参数改写、校验或模板处理日志。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "获取任务参数预处理日志",
                "parameters": [
                    {
                        "type": "string",
                        "description": "任务 ID",
                        "name": "taskID",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.TaskParamPreprocessingLogListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/token-usage/daily": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按 IANA 时区返回连续自然日用量；API Key 仅统计当前 Key，JWT 统计当前用户。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workspace"
                ],
                "summary": "查询每日 Token 与资源点用量",
                "parameters": [
                    {
                        "type": "string",
                        "description": "开始日期 YYYY-MM-DD",
                        "name": "from",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "结束日期 YYYY-MM-DD",
                        "name": "to",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "default": "UTC",
                        "description": "IANA 时区",
                        "name": "timezone",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.DailyTokenUsageResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/user-groups": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前用户关联的用户组及策略摘要，供个人中心使用。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workspace"
                ],
                "summary": "获取当前用户组策略",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.UserGroupListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/wallet": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前用户的钱包账户、余额和最近消费摘要，可按 currency 过滤。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "wallet"
                ],
                "summary": "获取钱包摘要",
                "parameters": [
                    {
                        "type": "string",
                        "default": "USD",
                        "description": "币种",
                        "name": "currency",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/store.WalletSummary"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/api/workspace/wallet/transactions": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "返回当前用户的钱包交易流水，支持关键字、方向、交易类型、时间范围和分页过滤。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "wallet"
                ],
                "summary": "列出钱包交易",
                "parameters": [
                    {
                        "type": "string",
                        "description": "搜索关键字，别名 query",
                        "name": "q",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "交易方向",
                        "name": "direction",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "交易类型",
                        "name": "transactionType",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间起点，别名 from",
                        "name": "createdFrom",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "创建时间终点，别名 to",
                        "name": "createdTo",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 50,
                        "description": "每页数量，别名 limit",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.WalletTransactionListResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        },
        "/static/generated/{asset}": {
            "get": {
                "description": "从本地生成资源目录读取图片、视频等任务产物；不存在时返回 404。",
                "produces": [
                    "application/octet-stream"
                ],
                "tags": [
                    "static"
                ],
                "summary": "获取本地生成资源",
                "parameters": [
                    {
                        "type": "string",
                        "description": "资源文件名",
                        "name": "asset",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/static/simulation/{asset}": {
            "get": {
                "description": "返回本地模拟模式使用的图片、视频封面、短视频或音频资源。",
                "produces": [
                    "image/svg+xml",
                    "video/mp4",
                    "audio/wav"
                ],
                "tags": [
                    "simulation"
                ],
                "summary": "获取模拟资源",
                "parameters": [
                    {
                        "type": "string",
                        "description": "资源文件名，可选 image.svg、image.png、image-edit.svg、image-edit.png、video-poster.svg、video.mp4、audio.wav",
                        "name": "asset",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/static/uploaded/{asset}": {
            "get": {
                "description": "从本地上传资源目录读取用户上传文件；不存在时返回 404。",
                "produces": [
                    "application/octet-stream"
                ],
                "tags": [
                    "static"
                ],
                "summary": "获取本地上传资源",
                "parameters": [
                    {
                        "type": "string",
                        "description": "资源文件名",
                        "name": "asset",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/v1/models": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "按全局启用、租户、用户组、用户、当前 API Key 分层白名单及 scope 的交集返回去重后的逻辑模型列表；其他主体规则不参与求值。",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "openai-compatible"
                ],
                "summary": "列出 OpenAI 兼容模型",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/httpapi.OpenAIModelListResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httpapi.ErrorEnvelope"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "auth.User": {
            "type": "object",
            "properties": {
                "apiKeyId": {
                    "type": "string"
                },
                "apiKeyName": {
                    "type": "string"
                },
                "apiKeyPrefix": {
                    "type": "string"
                },
                "apiKeyScopes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "apiKeySecret": {
                    "type": "string"
                },
                "contextType": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "role": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "source": {
                    "type": "string"
                },
                "sso_id": {
                    "type": "string"
                },
                "sub": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "tenantName": {
                    "type": "string"
                },
                "userGroupId": {
                    "type": "string"
                },
                "userGroupKey": {
                    "type": "string"
                },
                "userGroupKeys": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "username": {
                    "type": "string"
                }
            }
        },
        "httpapi.APIKeyAssignableModelsResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PlatformModel"
                    }
                },
                "ruleDiagnostics": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.APIKeyAccessRuleDiagnostic"
                    }
                }
            }
        },
        "httpapi.APIKeyListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.APIKey"
                    }
                }
            }
        },
        "httpapi.AccessRuleListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.AccessRule"
                    }
                }
            }
        },
        "httpapi.AdminTaskListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.AdminGatewayTask"
                    }
                },
                "page": {
                    "type": "integer",
                    "example": 1
                },
                "pageSize": {
                    "type": "integer",
                    "example": 50
                },
                "total": {
                    "type": "integer",
                    "example": 42
                }
            }
        },
        "httpapi.AuditLogListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.AuditLog"
                    }
                }
            }
        },
        "httpapi.AuthResponse": {
            "type": "object",
            "properties": {
                "accessToken": {
                    "type": "string",
                    "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
                },
                "expiresIn": {
                    "type": "integer",
                    "example": 86400
                },
                "tokenType": {
                    "type": "string",
                    "example": "Bearer"
                },
                "user": {
                    "$ref": "#/definitions/auth.User"
                }
            }
        },
        "httpapi.BaseModelListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.BaseModel"
                    }
                }
            }
        },
        "httpapi.BillingSettlementListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.BillingSettlement"
                    }
                },
                "page": {
                    "type": "integer",
                    "example": 1
                },
                "pageSize": {
                    "type": "integer",
                    "example": 50
                },
                "total": {
                    "type": "integer",
                    "example": 42
                }
            }
        },
        "httpapi.BillingSettlementRetryResponse": {
            "type": "object",
            "properties": {
                "auditLog": {
                    "$ref": "#/definitions/store.AuditLog"
                },
                "settlement": {
                    "$ref": "#/definitions/store.BillingSettlement"
                }
            }
        },
        "httpapi.CatalogProviderListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.CatalogProvider"
                    }
                }
            }
        },
        "httpapi.ChatCompletionChoice": {
            "type": "object",
            "properties": {
                "finish_reason": {
                    "type": "string",
                    "example": "stop"
                },
                "index": {
                    "type": "integer",
                    "example": 0
                },
                "message": {
                    "$ref": "#/definitions/httpapi.ChatCompletionChoiceMessage"
                }
            }
        },
        "httpapi.ChatCompletionChoiceMessage": {
            "type": "object",
            "properties": {
                "content": {
                    "type": "string",
                    "example": "Hello"
                },
                "role": {
                    "type": "string",
                    "example": "assistant"
                }
            }
        },
        "httpapi.ChatCompletionCompatibleResponse": {
            "type": "object",
            "properties": {
                "choices": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ChatCompletionChoice"
                    }
                },
                "created": {
                    "type": "integer",
                    "example": 1710000000
                },
                "id": {
                    "type": "string",
                    "example": "chatcmpl-123"
                },
                "model": {
                    "type": "string",
                    "example": "gpt-4o-mini"
                },
                "object": {
                    "type": "string",
                    "example": "chat.completion"
                },
                "usage": {
                    "$ref": "#/definitions/httpapi.ChatCompletionUsage"
                }
            }
        },
        "httpapi.ChatCompletionRequest": {
            "type": "object",
            "properties": {
                "audio": {
                    "type": "object",
                    "additionalProperties": true
                },
                "frequency_penalty": {
                    "type": "number",
                    "example": 0
                },
                "function_call": {},
                "functions": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "logit_bias": {
                    "type": "object",
                    "additionalProperties": true
                },
                "logprobs": {
                    "type": "boolean"
                },
                "max_completion_tokens": {
                    "type": "integer",
                    "example": 512
                },
                "max_tokens": {
                    "type": "integer",
                    "example": 512
                },
                "messages": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ChatMessage"
                    }
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": true
                },
                "modalities": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "model": {
                    "type": "string",
                    "example": "gpt-4o-mini"
                },
                "moderation": {},
                "n": {
                    "type": "integer",
                    "example": 1
                },
                "parallel_tool_calls": {
                    "type": "boolean"
                },
                "prediction": {},
                "presence_penalty": {
                    "type": "number",
                    "example": 0
                },
                "prompt_cache_key": {
                    "type": "string"
                },
                "prompt_cache_options": {
                    "type": "object",
                    "additionalProperties": true
                },
                "prompt_cache_retention": {
                    "type": "string",
                    "enum": [
                        "in_memory",
                        "24h"
                    ]
                },
                "reasoning_effort": {
                    "description": "ReasoningEffort 推理强度，OpenAI-compatible 请求字段；支持 none、minimal、low、medium、high、xhigh、max。供应商自定义取值由网关按平台适配。",
                    "type": "string",
                    "enum": [
                        "none",
                        "minimal",
                        "low",
                        "medium",
                        "high",
                        "xhigh",
                        "max"
                    ],
                    "example": "medium"
                },
                "response_format": {},
                "runMode": {
                    "type": "string",
                    "example": "simulation"
                },
                "safety_identifier": {
                    "type": "string"
                },
                "seed": {
                    "type": "integer"
                },
                "service_tier": {
                    "type": "string"
                },
                "stop": {},
                "store": {
                    "type": "boolean"
                },
                "stream": {
                    "type": "boolean",
                    "example": false
                },
                "stream_options": {
                    "type": "object",
                    "additionalProperties": true
                },
                "temperature": {
                    "type": "number",
                    "example": 0.7
                },
                "tool_choice": {},
                "tools": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "top_logprobs": {
                    "type": "integer"
                },
                "top_p": {
                    "type": "number",
                    "example": 1
                },
                "user": {
                    "type": "string"
                },
                "verbosity": {
                    "type": "string"
                },
                "web_search_options": {
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "httpapi.ChatCompletionUsage": {
            "type": "object",
            "properties": {
                "completion_tokens": {
                    "type": "integer",
                    "example": 8
                },
                "input_tokens_details": {
                    "$ref": "#/definitions/httpapi.ChatInputTokensDetails"
                },
                "prompt_tokens": {
                    "type": "integer",
                    "example": 12
                },
                "prompt_tokens_details": {
                    "$ref": "#/definitions/httpapi.ChatPromptTokensDetails"
                },
                "total_tokens": {
                    "type": "integer",
                    "example": 20
                }
            }
        },
        "httpapi.ChatInputTokensDetails": {
            "type": "object",
            "properties": {
                "cached_tokens": {
                    "type": "integer",
                    "example": 4
                }
            }
        },
        "httpapi.ChatMessage": {
            "type": "object",
            "properties": {
                "content": {},
                "function_call": {},
                "name": {
                    "type": "string"
                },
                "role": {
                    "type": "string",
                    "example": "user"
                },
                "tool_call_id": {
                    "type": "string"
                },
                "tool_calls": {}
            }
        },
        "httpapi.ChatPromptTokensDetails": {
            "type": "object",
            "properties": {
                "cached_tokens": {
                    "type": "integer",
                    "example": 4
                }
            }
        },
        "httpapi.CompatibleResponse": {
            "type": "object",
            "properties": {
                "choices": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "id": {
                    "type": "string",
                    "example": "chatcmpl-123"
                },
                "model": {
                    "type": "string",
                    "example": "gpt-4o-mini"
                },
                "object": {
                    "type": "string",
                    "example": "chat.completion"
                },
                "usage": {
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "httpapi.DailyTokenUsageResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.DailyTokenUsage"
                    }
                },
                "range": {
                    "type": "object",
                    "additionalProperties": {
                        "type": "string"
                    }
                },
                "summary": {
                    "$ref": "#/definitions/httpapi.dailyTokenUsageSummary"
                },
                "tokenDays": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.DailyTokenUsage"
                    }
                }
            }
        },
        "httpapi.EasyAIGeneratedResponse": {
            "type": "object",
            "properties": {
                "cancellable": {
                    "type": "boolean"
                },
                "code": {
                    "type": "string"
                },
                "created": {
                    "type": "integer",
                    "example": 1784772000000
                },
                "data": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.EasyAIMediaOutput"
                    }
                },
                "message": {
                    "type": "string"
                },
                "output": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "output_content": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.EasyAIMediaOutput"
                    }
                },
                "query_url": {
                    "type": "string",
                    "example": "/api/v1/ai/result/9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                },
                "result": {
                    "type": "object",
                    "additionalProperties": true
                },
                "status": {
                    "type": "string",
                    "enum": [
                        "submitted",
                        "process",
                        "success",
                        "failed"
                    ],
                    "example": "success"
                },
                "submitted": {
                    "type": "boolean"
                },
                "taskId": {
                    "type": "string",
                    "example": "9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                },
                "task_id": {
                    "type": "string",
                    "example": "9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                },
                "upstream_task_id": {
                    "type": "string",
                    "example": "provider-task-123"
                },
                "usage": {
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "httpapi.EasyAIMediaOutput": {
            "type": "object",
            "properties": {
                "audio_url": {
                    "type": "string"
                },
                "b64_json": {
                    "description": "B64JSON is retained when result media transfer is disabled.",
                    "type": "string"
                },
                "content": {
                    "type": "string"
                },
                "duration": {
                    "type": "number"
                },
                "format": {
                    "type": "string"
                },
                "height": {
                    "type": "integer"
                },
                "image_url": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": true
                },
                "mime_type": {
                    "type": "string"
                },
                "source_resolution": {
                    "type": "string"
                },
                "target_resolution": {
                    "type": "string"
                },
                "text": {
                    "type": "string"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "image",
                        "video",
                        "audio",
                        "file",
                        "text"
                    ],
                    "example": "video"
                },
                "url": {
                    "type": "string",
                    "example": "https://cdn.example.com/output.mp4"
                },
                "video_url": {
                    "type": "string"
                },
                "width": {
                    "type": "integer"
                }
            }
        },
        "httpapi.ErrorEnvelope": {
            "type": "object",
            "properties": {
                "error": {
                    "$ref": "#/definitions/httpapi.ErrorPayload"
                }
            }
        },
        "httpapi.ErrorPayload": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "string",
                    "example": "rate_limit"
                },
                "message": {
                    "type": "string",
                    "example": "invalid json body"
                },
                "param": {},
                "status": {
                    "type": "integer",
                    "example": 400
                },
                "type": {
                    "type": "string",
                    "example": "invalid_request_error"
                }
            }
        },
        "httpapi.FileStorageChannelListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.FileStorageChannel"
                    }
                }
            }
        },
        "httpapi.FileUploadData": {
            "type": "object",
            "properties": {
                "assetStorage": {
                    "type": "object",
                    "additionalProperties": true
                },
                "contentType": {
                    "type": "string",
                    "example": "image/png"
                },
                "filename": {
                    "type": "string",
                    "example": "image.png"
                },
                "id": {
                    "type": "string",
                    "example": "file_abc123"
                },
                "size": {
                    "type": "integer",
                    "example": 1024
                },
                "url": {
                    "type": "string",
                    "example": "/static/uploaded/upload-abc123.png"
                }
            }
        },
        "httpapi.FileUploadResponse": {
            "type": "object",
            "properties": {
                "assetStorage": {
                    "type": "object",
                    "additionalProperties": true
                },
                "contentType": {
                    "type": "string",
                    "example": "image/png"
                },
                "data": {
                    "$ref": "#/definitions/httpapi.FileUploadData"
                },
                "filename": {
                    "type": "string",
                    "example": "image.png"
                },
                "id": {
                    "type": "string",
                    "example": "file_abc123"
                },
                "size": {
                    "type": "integer",
                    "example": 1024
                },
                "status": {
                    "type": "string",
                    "example": "success"
                },
                "url": {
                    "type": "string",
                    "example": "/static/uploaded/upload-abc123.png"
                }
            }
        },
        "httpapi.GeminiErrorEnvelope": {
            "type": "object",
            "properties": {
                "error": {
                    "$ref": "#/definitions/httpapi.GeminiErrorStatus"
                }
            }
        },
        "httpapi.GeminiErrorStatus": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer",
                    "example": 400
                },
                "details": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": {}
                    }
                },
                "message": {
                    "type": "string",
                    "example": "Invalid argument"
                },
                "status": {
                    "type": "string",
                    "example": "INVALID_ARGUMENT"
                }
            }
        },
        "httpapi.HealthResponse": {
            "type": "object",
            "properties": {
                "env": {
                    "type": "string",
                    "example": "development"
                },
                "identityMode": {
                    "type": "string",
                    "example": "standalone"
                },
                "ok": {
                    "type": "boolean",
                    "example": true
                },
                "service": {
                    "type": "string",
                    "example": "easyai-ai-gateway"
                }
            }
        },
        "httpapi.IdentityBatchResponse": {
            "type": "object",
            "properties": {
                "action": {
                    "type": "string",
                    "example": "disable"
                },
                "affectedCount": {
                    "type": "integer",
                    "example": 2
                },
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "requestedCount": {
                    "type": "integer",
                    "example": 2
                }
            }
        },
        "httpapi.ImageVectorizeRequest": {
            "type": "object",
            "properties": {
                "cleanupLevel": {
                    "type": "string",
                    "enum": [
                        "low",
                        "standard",
                        "strong"
                    ],
                    "example": "standard"
                },
                "format": {
                    "type": "string",
                    "enum": [
                        "svg",
                        "eps",
                        "pdf",
                        "dxf",
                        "png"
                    ],
                    "example": "svg"
                },
                "maxColors": {
                    "type": "integer",
                    "enum": [
                        0,
                        2,
                        4,
                        8,
                        16,
                        32
                    ],
                    "example": 16
                },
                "model": {
                    "type": "string",
                    "example": "easy-image-vectorizer-1"
                },
                "source": {
                    "$ref": "#/definitions/httpapi.ImageVectorizeSource"
                }
            }
        },
        "httpapi.ImageVectorizeSource": {
            "type": "object",
            "properties": {
                "url": {
                    "type": "string",
                    "example": "https://example.com/source.png"
                },
                "vectorizerTaskId": {
                    "type": "string",
                    "example": "9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                }
            }
        },
        "httpapi.KelingCompatibleEnvelope": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer",
                    "example": 0
                },
                "data": {},
                "message": {
                    "type": "string",
                    "example": "SUCCEED"
                },
                "request_id": {
                    "type": "string"
                }
            }
        },
        "httpapi.KelingOmniElementInput": {
            "type": "object",
            "properties": {
                "element_id": {}
            }
        },
        "httpapi.KelingOmniImageInput": {
            "type": "object",
            "properties": {
                "image_url": {
                    "type": "string"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "first_frame",
                        "end_frame"
                    ]
                }
            }
        },
        "httpapi.KelingOmniMultiPrompt": {
            "type": "object",
            "properties": {
                "duration": {
                    "type": "string",
                    "example": "3"
                },
                "index": {
                    "type": "integer",
                    "example": 1
                },
                "prompt": {
                    "type": "string",
                    "example": "A wide establishing shot"
                }
            }
        },
        "httpapi.KelingOmniVideoInput": {
            "type": "object",
            "properties": {
                "keep_original_sound": {
                    "type": "string",
                    "enum": [
                        "yes",
                        "no"
                    ]
                },
                "refer_type": {
                    "type": "string",
                    "enum": [
                        "base",
                        "feature"
                    ]
                },
                "video_url": {
                    "type": "string"
                }
            }
        },
        "httpapi.KelingOmniVideoRequest": {
            "type": "object",
            "properties": {
                "aspect_ratio": {
                    "type": "string",
                    "enum": [
                        "16:9",
                        "9:16",
                        "1:1"
                    ],
                    "example": "9:16"
                },
                "callback_url": {
                    "type": "string"
                },
                "duration": {
                    "type": "string",
                    "example": "5"
                },
                "element_list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.KelingOmniElementInput"
                    }
                },
                "external_task_id": {
                    "type": "string"
                },
                "image_list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.KelingOmniImageInput"
                    }
                },
                "mode": {
                    "type": "string",
                    "enum": [
                        "std",
                        "pro",
                        "4k"
                    ],
                    "example": "pro"
                },
                "model_name": {
                    "type": "string",
                    "example": "kling-v3-omni"
                },
                "multi_prompt": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.KelingOmniMultiPrompt"
                    }
                },
                "multi_shot": {
                    "type": "boolean",
                    "example": false
                },
                "prompt": {
                    "type": "string",
                    "example": "A quiet street in the rain with natural ambient sound"
                },
                "shot_type": {
                    "type": "string",
                    "example": "customize"
                },
                "sound": {
                    "type": "string",
                    "enum": [
                        "on",
                        "off"
                    ],
                    "example": "on"
                },
                "video_list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.KelingOmniVideoInput"
                    }
                },
                "watermark_info": {
                    "$ref": "#/definitions/httpapi.KelingOmniWatermarkInfo"
                }
            }
        },
        "httpapi.KelingOmniWatermarkInfo": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean",
                    "example": false
                }
            }
        },
        "httpapi.KlingErrorEnvelope": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer",
                    "example": 1001
                },
                "error": {
                    "type": "string",
                    "example": "invalid_parameter"
                },
                "message": {
                    "type": "string",
                    "example": "invalid parameter"
                },
                "request_id": {
                    "type": "string"
                }
            }
        },
        "httpapi.ModelCatalogFilterOption": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "iconPath": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "value": {
                    "type": "string"
                }
            }
        },
        "httpapi.ModelCatalogFilters": {
            "type": "object",
            "properties": {
                "capabilities": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ModelCatalogFilterOption"
                    }
                },
                "providers": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ModelCatalogFilterOption"
                    }
                }
            }
        },
        "httpapi.ModelCatalogItem": {
            "type": "object",
            "properties": {
                "alias": {
                    "type": "string"
                },
                "capabilityTags": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "description": {
                    "type": "string"
                },
                "discount": {
                    "$ref": "#/definitions/httpapi.ModelCatalogText"
                },
                "displayName": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "iconPath": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "modelName": {
                    "type": "string"
                },
                "modelType": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "permission": {
                    "$ref": "#/definitions/httpapi.ModelCatalogPermission"
                },
                "pricing": {
                    "$ref": "#/definitions/httpapi.ModelCatalogPricing"
                },
                "providerKeys": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "providers": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ModelCatalogProviderSummary"
                    }
                },
                "rateLimits": {
                    "$ref": "#/definitions/httpapi.ModelCatalogRateLimits"
                },
                "source": {
                    "$ref": "#/definitions/httpapi.ModelCatalogText"
                },
                "sourceCount": {
                    "type": "integer"
                },
                "sources": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ModelCatalogSource"
                    }
                },
                "statusLabel": {
                    "type": "string"
                }
            }
        },
        "httpapi.ModelCatalogPermission": {
            "type": "object",
            "properties": {
                "allowGroups": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "denyGroups": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "label": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                }
            }
        },
        "httpapi.ModelCatalogPricing": {
            "type": "object",
            "properties": {
                "lines": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "title": {
                    "type": "string"
                }
            }
        },
        "httpapi.ModelCatalogProviderSummary": {
            "type": "object",
            "properties": {
                "iconPath": {
                    "type": "string"
                },
                "key": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "sourceCount": {
                    "type": "integer"
                }
            }
        },
        "httpapi.ModelCatalogRateLimits": {
            "type": "object",
            "properties": {
                "concurrent": {
                    "type": "number"
                },
                "label": {
                    "type": "string"
                },
                "rpm": {
                    "type": "number"
                },
                "title": {
                    "type": "string"
                },
                "tpm": {
                    "type": "number"
                }
            }
        },
        "httpapi.ModelCatalogResponse": {
            "type": "object",
            "properties": {
                "filters": {
                    "$ref": "#/definitions/httpapi.ModelCatalogFilters"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ModelCatalogItem"
                    }
                },
                "summary": {
                    "$ref": "#/definitions/httpapi.ModelCatalogSummary"
                }
            }
        },
        "httpapi.ModelCatalogSource": {
            "type": "object",
            "properties": {
                "displayName": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "id": {
                    "type": "string"
                },
                "legacyAliases": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "modelAlias": {
                    "type": "string"
                },
                "modelName": {
                    "type": "string"
                },
                "modelType": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "platformId": {
                    "type": "string"
                },
                "platformName": {
                    "type": "string"
                },
                "providerKey": {
                    "type": "string"
                },
                "providerModelName": {
                    "type": "string"
                },
                "providerName": {
                    "type": "string"
                },
                "rateLimits": {
                    "$ref": "#/definitions/httpapi.ModelCatalogRateLimits"
                }
            }
        },
        "httpapi.ModelCatalogSummary": {
            "type": "object",
            "properties": {
                "modelCount": {
                    "type": "integer"
                },
                "sourceCount": {
                    "type": "integer"
                }
            }
        },
        "httpapi.ModelCatalogText": {
            "type": "object",
            "properties": {
                "label": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                }
            }
        },
        "httpapi.ModelRateLimitStatusListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.ModelRateLimitStatus"
                    }
                }
            }
        },
        "httpapi.NetworkProxyConfigResponse": {
            "type": "object",
            "properties": {
                "globalHttpProxy": {
                    "type": "string",
                    "example": "http://127.0.0.1:7890"
                },
                "globalHttpProxySet": {
                    "type": "boolean",
                    "example": true
                },
                "globalHttpProxySource": {
                    "type": "string",
                    "example": "env"
                }
            }
        },
        "httpapi.OpenAIErrorEnvelope": {
            "type": "object",
            "properties": {
                "error": {
                    "$ref": "#/definitions/httpapi.OpenAIErrorPayload"
                }
            }
        },
        "httpapi.OpenAIErrorPayload": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "string",
                    "example": "invalid_parameter"
                },
                "message": {
                    "type": "string",
                    "example": "Invalid parameter"
                },
                "param": {
                    "type": "string",
                    "example": "model"
                },
                "type": {
                    "type": "string",
                    "example": "invalid_request_error"
                }
            }
        },
        "httpapi.OpenAIImageData": {
            "type": "object",
            "properties": {
                "b64_json": {
                    "type": "string"
                },
                "revised_prompt": {
                    "type": "string"
                },
                "url": {
                    "type": "string",
                    "example": "https://cdn.example.com/output.png"
                }
            }
        },
        "httpapi.OpenAIImagesResponse": {
            "type": "object",
            "properties": {
                "created": {
                    "type": "integer",
                    "example": 1710000000
                },
                "data": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.OpenAIImageData"
                    }
                }
            }
        },
        "httpapi.OpenAIModel": {
            "type": "object",
            "properties": {
                "created": {
                    "type": "integer",
                    "example": 1710000000
                },
                "id": {
                    "type": "string",
                    "example": "gpt-4o-mini"
                },
                "object": {
                    "type": "string",
                    "example": "model"
                },
                "owned_by": {
                    "type": "string",
                    "example": "easyai"
                }
            }
        },
        "httpapi.OpenAIModelListResponse": {
            "type": "object",
            "properties": {
                "data": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.OpenAIModel"
                    }
                },
                "object": {
                    "type": "string",
                    "example": "list"
                }
            }
        },
        "httpapi.PlatformListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.Platform"
                    }
                }
            }
        },
        "httpapi.PlatformModelListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PlatformModel"
                    }
                }
            }
        },
        "httpapi.PlayableAPIKeyListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PlayableAPIKey"
                    }
                }
            }
        },
        "httpapi.PricingEstimateRequest": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "example": "chat.completions"
                },
                "max_tokens": {
                    "type": "integer",
                    "example": 512
                },
                "messages": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ChatMessage"
                    }
                },
                "model": {
                    "type": "string",
                    "example": "gpt-4o-mini"
                },
                "n": {
                    "type": "integer",
                    "example": 1
                },
                "prompt": {
                    "type": "string",
                    "example": "A small orange cat"
                },
                "runMode": {
                    "type": "string",
                    "example": "simulation"
                }
            }
        },
        "httpapi.PricingEstimateResponse": {
            "type": "object",
            "properties": {
                "candidateCount": {
                    "type": "integer",
                    "example": 2
                },
                "currency": {
                    "type": "string",
                    "example": "resource"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "pricingVersion": {
                    "type": "string",
                    "example": "effective-pricing-v2"
                },
                "requestFingerprint": {
                    "type": "string",
                    "example": "76ef6a537de8e71bd1ca93acadc078dbdbfa9f17e45224e4f9df59f535d2886f"
                },
                "reservationAmount": {
                    "type": "number",
                    "example": 2.75
                },
                "resolver": {
                    "type": "string",
                    "example": "effective-pricing-v2"
                },
                "totalAmount": {
                    "type": "number",
                    "example": 1.25
                }
            }
        },
        "httpapi.PricingRuleListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PricingRule"
                    }
                }
            }
        },
        "httpapi.PricingRuleSetListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PricingRuleSet"
                    }
                }
            }
        },
        "httpapi.RateLimitWindowListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.RateLimitWindow"
                    }
                }
            }
        },
        "httpapi.ReadyResponse": {
            "type": "object",
            "properties": {
                "ok": {
                    "type": "boolean",
                    "example": true
                }
            }
        },
        "httpapi.ReplacePlatformModelsRequest": {
            "type": "object",
            "properties": {
                "models": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.CreatePlatformModelInput"
                    }
                }
            }
        },
        "httpapi.ResponsesCompatibleResponse": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "integer",
                    "example": 1710000000
                },
                "id": {
                    "type": "string",
                    "example": "resp_0123456789abcdef0123456789abcdef"
                },
                "model": {
                    "type": "string",
                    "example": "Doubao Seed 2.0 Pro"
                },
                "object": {
                    "type": "string",
                    "example": "response"
                },
                "output": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "output_text": {
                    "type": "string",
                    "example": "Hello"
                },
                "previous_response_id": {
                    "type": "string",
                    "example": "resp_abcdef0123456789abcdef0123456789"
                },
                "status": {
                    "type": "string",
                    "example": "completed"
                },
                "usage": {
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "httpapi.ResponsesRequest": {
            "type": "object",
            "properties": {
                "background": {
                    "type": "boolean"
                },
                "context_management": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "conversation": {},
                "include": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "input": {},
                "instructions": {
                    "type": "string",
                    "example": "Answer concisely"
                },
                "max_output_tokens": {
                    "type": "integer",
                    "example": 512
                },
                "max_tool_calls": {
                    "type": "integer"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": true
                },
                "model": {
                    "type": "string",
                    "example": "Doubao Seed 2.0 Pro"
                },
                "moderation": {},
                "parallel_tool_calls": {
                    "type": "boolean",
                    "example": true
                },
                "previous_response_id": {
                    "type": "string",
                    "example": "resp_0123456789abcdef0123456789abcdef"
                },
                "prompt": {},
                "prompt_cache_key": {
                    "type": "string"
                },
                "prompt_cache_options": {
                    "type": "object",
                    "additionalProperties": true
                },
                "prompt_cache_retention": {
                    "type": "string",
                    "enum": [
                        "in_memory",
                        "24h"
                    ]
                },
                "reasoning": {
                    "type": "object",
                    "additionalProperties": true
                },
                "safety_identifier": {
                    "type": "string"
                },
                "service_tier": {
                    "type": "string"
                },
                "store": {
                    "type": "boolean"
                },
                "stream": {
                    "type": "boolean",
                    "example": false
                },
                "stream_options": {
                    "type": "object",
                    "additionalProperties": true
                },
                "temperature": {
                    "type": "number",
                    "example": 0.7
                },
                "text": {
                    "type": "object",
                    "additionalProperties": true
                },
                "tool_choice": {},
                "tools": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "top_logprobs": {
                    "type": "integer"
                },
                "top_p": {
                    "type": "number",
                    "example": 1
                },
                "truncation": {
                    "type": "string"
                },
                "user": {
                    "type": "string"
                }
            }
        },
        "httpapi.RuntimePolicySetListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.RuntimePolicySet"
                    }
                }
            }
        },
        "httpapi.SkillBundleMetadataResponse": {
            "type": "object",
            "properties": {
                "apiDocsJsonPath": {
                    "type": "string",
                    "example": "/api/v1/openapi.json"
                },
                "apiDocsYamlPath": {
                    "type": "string",
                    "example": "/api/v1/openapi.yaml"
                },
                "displayName": {
                    "type": "string",
                    "example": "AI Gateway 运维管理"
                },
                "downloadPath": {
                    "type": "string",
                    "example": "/api/v1/public/skills/ai-gateway-ops-management/download"
                },
                "fileName": {
                    "type": "string",
                    "example": "ai-gateway-ops-management-v1.0.2.zip"
                },
                "modules": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "example": [
                        "model-runtime"
                    ]
                },
                "name": {
                    "type": "string",
                    "example": "ai-gateway-ops-management"
                },
                "version": {
                    "type": "string",
                    "example": "1.0.2"
                }
            }
        },
        "httpapi.TaskAcceptedResponse": {
            "type": "object",
            "properties": {
                "next": {
                    "$ref": "#/definitions/httpapi.TaskNextLinks"
                },
                "query_url": {
                    "type": "string",
                    "example": "/api/v1/ai/result/9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                },
                "status": {
                    "type": "string",
                    "example": "submitted"
                },
                "task": {
                    "$ref": "#/definitions/store.GatewayTask"
                },
                "taskId": {
                    "type": "string",
                    "example": "9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                },
                "task_id": {
                    "type": "string",
                    "example": "9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                }
            }
        },
        "httpapi.TaskCancelResponse": {
            "type": "object",
            "properties": {
                "cancellable": {
                    "type": "boolean",
                    "example": false
                },
                "cancelled": {
                    "type": "boolean",
                    "example": false
                },
                "message": {
                    "type": "string",
                    "example": "任务已提交上游，当前不可取消，请继续查询结果"
                },
                "submitted": {
                    "type": "boolean",
                    "example": true
                },
                "taskId": {
                    "type": "string",
                    "example": "9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                }
            }
        },
        "httpapi.TaskListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.GatewayTask"
                    }
                },
                "page": {
                    "type": "integer",
                    "example": 1
                },
                "pageSize": {
                    "type": "integer",
                    "example": 50
                },
                "total": {
                    "type": "integer",
                    "example": 42
                }
            }
        },
        "httpapi.TaskNextLinks": {
            "type": "object",
            "properties": {
                "detail": {
                    "type": "string",
                    "example": "/api/v1/tasks/9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                },
                "events": {
                    "type": "string",
                    "example": "/api/v1/tasks/9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25/events"
                },
                "result": {
                    "type": "string",
                    "example": "/api/v1/ai/result/9f4d8f3d-5f5f-4bb7-a4be-344a9f930e25"
                }
            }
        },
        "httpapi.TaskParamPreprocessingLogListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.TaskParamPreprocessingLog"
                    }
                }
            }
        },
        "httpapi.TaskRequest": {
            "type": "object",
            "properties": {
                "aspect_ratio": {
                    "type": "string",
                    "example": "16:9"
                },
                "audio": {
                    "type": "boolean",
                    "example": false
                },
                "audioWeight": {
                    "type": "number",
                    "example": 0.65
                },
                "audio_url": {
                    "type": "string",
                    "example": "https://example.com/source-voice.mp3"
                },
                "customMode": {
                    "type": "boolean",
                    "example": false
                },
                "display_name": {
                    "type": "string",
                    "example": "EasyAI DEV acceptance"
                },
                "documents": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "duration": {
                    "type": "integer",
                    "example": 5
                },
                "emotion": {
                    "type": "string",
                    "example": "happy"
                },
                "input": {},
                "makeInstrumental": {
                    "type": "boolean",
                    "example": false
                },
                "max_completion_tokens": {
                    "description": "MaxCompletionTokens includes visible output and reasoning tokens.",
                    "type": "integer",
                    "example": 512
                },
                "max_output_tokens": {
                    "type": "integer",
                    "example": 512
                },
                "max_tokens": {
                    "type": "integer",
                    "example": 512
                },
                "messages": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/httpapi.ChatMessage"
                    }
                },
                "model": {
                    "type": "string",
                    "example": "gpt-4o-mini"
                },
                "negativeTags": {
                    "type": "string",
                    "example": "noise"
                },
                "pitch": {
                    "type": "number",
                    "example": 0
                },
                "preview_model": {
                    "type": "string",
                    "example": "speech-2.8-hd"
                },
                "prompt": {
                    "type": "string",
                    "example": "A watercolor robot reading a book"
                },
                "prompt_audio_url": {
                    "type": "string",
                    "example": "https://example.com/prompt-voice.mp3"
                },
                "prompt_text": {
                    "type": "string",
                    "example": "EasyAI voice clone prompt."
                },
                "query": {
                    "type": "string",
                    "example": "Which document mentions EasyAI Gateway?"
                },
                "reasoning_effort": {
                    "description": "ReasoningEffort 推理强度，OpenAI-compatible 请求字段；支持 none、minimal、low、medium、high、xhigh、max。供应商自定义取值由网关按平台适配。",
                    "type": "string",
                    "enum": [
                        "none",
                        "minimal",
                        "low",
                        "medium",
                        "high",
                        "xhigh",
                        "max"
                    ],
                    "example": "medium"
                },
                "resolution": {
                    "type": "string",
                    "example": "720p"
                },
                "runMode": {
                    "type": "string",
                    "example": "simulation"
                },
                "size": {
                    "type": "string",
                    "example": "1024x1024"
                },
                "speed": {
                    "type": "number",
                    "example": 1
                },
                "stream": {
                    "type": "boolean",
                    "example": false
                },
                "style": {
                    "type": "string",
                    "example": "city pop, bright synth"
                },
                "styleWeight": {
                    "type": "number",
                    "example": 0.65
                },
                "tags": {
                    "type": "string",
                    "example": "city pop, synth"
                },
                "text": {
                    "type": "string",
                    "example": "Hello from EasyAI audio synthesis."
                },
                "text_file_id": {
                    "type": "string",
                    "example": ""
                },
                "title": {
                    "type": "string",
                    "example": "Useful Tools"
                },
                "vocalGender": {
                    "type": "string",
                    "example": "f"
                },
                "voice_id": {
                    "type": "string",
                    "example": "female-shaonv"
                },
                "vol": {
                    "type": "number",
                    "example": 1
                },
                "watermark": {
                    "type": "boolean",
                    "example": false
                },
                "weirdnessConstraint": {
                    "type": "number",
                    "example": 0.35
                }
            }
        },
        "httpapi.TenantListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.GatewayTenant"
                    }
                }
            }
        },
        "httpapi.UserGroupListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.UserGroup"
                    }
                }
            }
        },
        "httpapi.UserListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.GatewayUser"
                    }
                }
            }
        },
        "httpapi.VideoUpscaleRequest": {
            "type": "object",
            "properties": {
                "duration": {
                    "type": "number",
                    "example": 3
                },
                "model": {
                    "type": "string",
                    "example": "easy-proteus-standard-4"
                },
                "operation": {
                    "type": "string",
                    "enum": [
                        "upscale"
                    ],
                    "example": "upscale"
                },
                "output_height": {
                    "type": "integer",
                    "example": 1080
                },
                "output_width": {
                    "type": "integer",
                    "example": 1920
                },
                "preserve_audio": {
                    "type": "boolean",
                    "example": true
                },
                "slow_motion_rate": {
                    "type": "number",
                    "example": 1
                },
                "source_frame_rate": {
                    "type": "number",
                    "example": 24
                },
                "source_resolution": {
                    "type": "string",
                    "example": "480p"
                },
                "target_frame_rate": {
                    "type": "number",
                    "example": 24
                },
                "target_resolution": {
                    "type": "string",
                    "example": "1080p"
                },
                "video_url": {
                    "type": "string",
                    "example": "https://example.com/source.mp4"
                }
            }
        },
        "httpapi.VolcesContentsGenerationTaskResponse": {
            "type": "object",
            "properties": {
                "content": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "created_at": {
                    "type": "integer"
                },
                "error": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "id": {
                    "type": "string",
                    "example": "cgt-202607221234"
                },
                "model": {
                    "type": "string"
                },
                "status": {
                    "type": "string",
                    "enum": [
                        "queued",
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled"
                    ]
                },
                "updated_at": {
                    "type": "integer"
                },
                "usage": {
                    "type": "object",
                    "additionalProperties": {}
                }
            }
        },
        "httpapi.VolcesErrorEnvelope": {
            "type": "object",
            "properties": {
                "error": {
                    "$ref": "#/definitions/httpapi.VolcesErrorPayload"
                }
            }
        },
        "httpapi.VolcesErrorPayload": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "string",
                    "example": "invalid_parameter"
                },
                "message": {
                    "type": "string",
                    "example": "model is required"
                }
            }
        },
        "httpapi.WalletAdjustmentResponse": {
            "type": "object",
            "properties": {
                "account": {
                    "$ref": "#/definitions/store.GatewayWalletAccount"
                },
                "auditLog": {
                    "$ref": "#/definitions/store.AuditLog"
                },
                "before": {
                    "$ref": "#/definitions/store.GatewayWalletAccount"
                },
                "transaction": {
                    "$ref": "#/definitions/store.GatewayWalletTransaction"
                }
            }
        },
        "httpapi.WalletTransactionListResponse": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.GatewayWalletTransaction"
                    }
                },
                "page": {
                    "type": "integer",
                    "example": 1
                },
                "pageSize": {
                    "type": "integer",
                    "example": 50
                },
                "total": {
                    "type": "integer",
                    "example": 42
                }
            }
        },
        "httpapi.dailyTokenUsageSummary": {
            "type": "object",
            "properties": {
                "cumulativeTokens": {
                    "type": "integer"
                },
                "currentStreakDays": {
                    "type": "integer"
                },
                "longestStreakDays": {
                    "type": "integer"
                },
                "peakDailyTokens": {
                    "type": "integer"
                }
            }
        },
        "httpapi.desktopBillingConfigResponse": {
            "type": "object",
            "properties": {
                "gatewayBaseUrl": {
                    "type": "string"
                },
                "gatewayBillingPath": {
                    "type": "string"
                }
            }
        },
        "httpapi.desktopConfigResponse": {
            "type": "object",
            "properties": {
                "billing": {
                    "$ref": "#/definitions/httpapi.desktopBillingConfigResponse"
                }
            }
        },
        "httpapi.identityConfigurationView": {
            "type": "object",
            "properties": {
                "active": {
                    "$ref": "#/definitions/identity.Revision"
                },
                "draft": {
                    "$ref": "#/definitions/identity.Revision"
                },
                "pairing": {
                    "$ref": "#/definitions/identity.PairingExchange"
                },
                "previous": {
                    "$ref": "#/definitions/identity.Revision"
                },
                "runtime": {
                    "$ref": "#/definitions/httpapi.identityRuntimeStatus"
                }
            }
        },
        "httpapi.identityPolicyPatch": {
            "type": "object",
            "properties": {
                "jitEnabled": {
                    "type": "boolean"
                },
                "legacyJwtEnabled": {
                    "type": "boolean"
                },
                "localTenantKey": {
                    "type": "string"
                },
                "rolePrefix": {
                    "type": "string"
                },
                "sessionAbsoluteSeconds": {
                    "type": "integer"
                },
                "sessionIdleSeconds": {
                    "type": "integer"
                },
                "sessionRefreshSeconds": {
                    "type": "integer"
                }
            }
        },
        "httpapi.identityRuntimeStatus": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean"
                },
                "jit": {
                    "type": "string"
                },
                "lastAuditId": {
                    "type": "string"
                },
                "lastErrorCategory": {
                    "type": "string"
                },
                "lastTraceId": {
                    "type": "string"
                },
                "login": {
                    "type": "string"
                },
                "revisionId": {
                    "type": "string"
                },
                "sessionRevocation": {
                    "type": "string"
                },
                "tokenIntrospection": {
                    "type": "string"
                }
            }
        },
        "httpapi.publicIdentityConfiguration": {
            "type": "object",
            "properties": {
                "contextTypes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "enabled": {
                    "type": "boolean"
                },
                "loginUrl": {
                    "type": "string"
                },
                "logoutUrl": {
                    "type": "string"
                },
                "oidcLogin": {
                    "type": "boolean"
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "httpapi.updatePlatformDynamicPriorityRequest": {
            "type": "object",
            "properties": {
                "dynamicPriority": {
                    "type": "integer",
                    "example": 10
                },
                "reset": {
                    "type": "boolean",
                    "example": false
                }
            }
        },
        "httpapi.walletBalanceRequest": {
            "type": "object",
            "properties": {
                "balance": {
                    "type": "number",
                    "example": 100
                },
                "currency": {
                    "type": "string",
                    "example": "USD"
                },
                "idempotencyKey": {
                    "type": "string",
                    "example": "wallet-set-20260514-001"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "reason": {
                    "type": "string",
                    "example": "manual recharge"
                }
            }
        },
        "httpapi.walletRechargeRequest": {
            "type": "object",
            "properties": {
                "amount": {
                    "type": "number",
                    "example": 100
                },
                "currency": {
                    "type": "string",
                    "example": "resource"
                },
                "idempotencyKey": {
                    "type": "string",
                    "example": "wallet-recharge-20260514-001"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "reason": {
                    "type": "string",
                    "example": "manual recharge"
                }
            }
        },
        "identity.PairingCleanupStatus": {
            "type": "string",
            "enum": [
                "none",
                "pending",
                "completed"
            ],
            "x-enum-varnames": [
                "PairingCleanupNone",
                "PairingCleanupPending",
                "PairingCleanupCompleted"
            ]
        },
        "identity.PairingExchange": {
            "type": "object",
            "properties": {
                "authCenterAuditId": {
                    "type": "string"
                },
                "cancelledAt": {
                    "type": "string"
                },
                "cleanupCompletedAt": {
                    "type": "string"
                },
                "cleanupStatus": {
                    "$ref": "#/definitions/identity.PairingCleanupStatus"
                },
                "createdAt": {
                    "type": "string"
                },
                "expiresAt": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "lastErrorCategory": {
                    "type": "string"
                },
                "lastTraceId": {
                    "type": "string"
                },
                "remoteExchangeId": {
                    "type": "string"
                },
                "remoteVersion": {
                    "type": "integer"
                },
                "revisionId": {
                    "type": "string"
                },
                "status": {
                    "$ref": "#/definitions/identity.PairingStatus"
                },
                "updatedAt": {
                    "type": "string"
                },
                "version": {
                    "type": "integer"
                }
            }
        },
        "identity.PairingInput": {
            "type": "object",
            "properties": {
                "authCenterUrl": {
                    "type": "string"
                },
                "legacyJwtEnabled": {
                    "type": "boolean"
                },
                "localTenantKey": {
                    "type": "string"
                },
                "onboardingCode": {
                    "type": "string"
                },
                "publicBaseUrl": {
                    "type": "string"
                },
                "webBaseUrl": {
                    "type": "string"
                }
            }
        },
        "identity.PairingStatus": {
            "type": "string",
            "enum": [
                "metadata_pending",
                "preparing",
                "ready",
                "credentials_saved",
                "completed",
                "failed",
                "expired",
                "cancelled"
            ],
            "x-enum-varnames": [
                "PairingMetadataPending",
                "PairingPreparing",
                "PairingReady",
                "PairingCredentialsSaved",
                "PairingCompleted",
                "PairingFailed",
                "PairingExpired",
                "PairingCancelled"
            ]
        },
        "identity.Revision": {
            "type": "object",
            "properties": {
                "activatedAt": {
                    "type": "string"
                },
                "applicationId": {
                    "type": "string"
                },
                "audience": {
                    "type": "string"
                },
                "authCenterUrl": {
                    "type": "string"
                },
                "browserClientId": {
                    "type": "string"
                },
                "capabilities": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "issuer": {
                    "type": "string"
                },
                "jitEnabled": {
                    "type": "boolean"
                },
                "lastAuditId": {
                    "type": "string"
                },
                "lastErrorCategory": {
                    "type": "string"
                },
                "lastTraceId": {
                    "type": "string"
                },
                "legacyJwtEnabled": {
                    "type": "boolean"
                },
                "localTenantKey": {
                    "type": "string"
                },
                "machineClientId": {
                    "type": "string"
                },
                "publicBaseUrl": {
                    "type": "string"
                },
                "rolePrefix": {
                    "type": "string"
                },
                "schemaVersion": {
                    "type": "integer"
                },
                "scopes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "securityEventAudience": {
                    "type": "string"
                },
                "securityEventConfigurationUrl": {
                    "type": "string"
                },
                "securityEventIssuer": {
                    "type": "string"
                },
                "sessionAbsoluteSeconds": {
                    "type": "integer"
                },
                "sessionIdleSeconds": {
                    "type": "integer"
                },
                "sessionRefreshSeconds": {
                    "type": "integer"
                },
                "sessionRevocation": {
                    "type": "boolean"
                },
                "state": {
                    "$ref": "#/definitions/identity.RevisionState"
                },
                "supersededAt": {
                    "type": "string"
                },
                "tenantContextAudience": {
                    "type": "string"
                },
                "tenantContextEndpoint": {
                    "type": "string"
                },
                "tenantContextScope": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantMode": {
                    "type": "string"
                },
                "tokenIntrospection": {
                    "type": "boolean"
                },
                "updatedAt": {
                    "type": "string"
                },
                "validatedAt": {
                    "type": "string"
                },
                "version": {
                    "type": "integer"
                },
                "webBaseUrl": {
                    "type": "string"
                }
            }
        },
        "identity.RevisionState": {
            "type": "string",
            "enum": [
                "draft",
                "validated",
                "active",
                "superseded",
                "failed"
            ],
            "x-enum-varnames": [
                "RevisionDraft",
                "RevisionValidated",
                "RevisionActive",
                "RevisionSuperseded",
                "RevisionFailed"
            ]
        },
        "runner.PortraitAssetCapability": {
            "type": "object",
            "properties": {
                "availablePlatformIds": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "canCreate": {
                    "type": "boolean"
                },
                "canReferenceTencentAssetUri": {
                    "type": "boolean"
                },
                "canUse": {
                    "type": "boolean"
                },
                "canUseAsPlainMaterial": {
                    "type": "boolean"
                },
                "canUseAsPortraitAsset": {
                    "type": "boolean"
                },
                "creationPlatformIds": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "enabled": {
                    "type": "boolean"
                },
                "reason": {
                    "type": "string"
                }
            }
        },
        "runner.PortraitAssetIssue": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                }
            }
        },
        "runner.PortraitAssetSyncResponse": {
            "type": "object",
            "properties": {
                "accepted": {
                    "type": "integer"
                },
                "assets": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PortraitAsset"
                    }
                },
                "failed": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/runner.PortraitAssetIssue"
                    }
                },
                "requested": {
                    "type": "integer"
                },
                "skipped": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/runner.PortraitAssetIssue"
                    }
                },
                "syncedIds": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "store.APIKey": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "expiresAt": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "keyPrefix": {
                    "type": "string"
                },
                "lastUsedAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "quotaPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "scopes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "secret": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "userGroupId": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                }
            }
        },
        "store.APIKeyAccessRuleDiagnostic": {
            "type": "object",
            "properties": {
                "effect": {
                    "type": "string"
                },
                "effective": {
                    "type": "boolean"
                },
                "reason": {
                    "type": "string",
                    "enum": [
                        "resource_unavailable",
                        "owner_access_revoked",
                        "scope_not_allowed"
                    ]
                },
                "resourceId": {
                    "type": "string"
                },
                "resourceName": {
                    "type": "string"
                },
                "resourceType": {
                    "type": "string"
                },
                "ruleId": {
                    "type": "string"
                }
            }
        },
        "store.AcceptanceRun": {
            "type": "object",
            "properties": {
                "apiImageDigest": {
                    "type": "string"
                },
                "apiKeyId": {
                    "type": "string"
                },
                "callbackUrl": {
                    "type": "string"
                },
                "capacityProfile": {
                    "type": "string"
                },
                "config": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "emulatorBaseUrl": {
                    "type": "string"
                },
                "failureReason": {
                    "type": "string"
                },
                "finishedAt": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "promotedAt": {
                    "type": "string"
                },
                "releaseSha": {
                    "type": "string"
                },
                "report": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "startedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                },
                "workerImageDigest": {
                    "type": "string"
                }
            }
        },
        "store.AccessRule": {
            "type": "object",
            "properties": {
                "conditions": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "effect": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "minPermissionLevel": {
                    "type": "integer"
                },
                "priority": {
                    "type": "integer"
                },
                "resourceId": {
                    "type": "string"
                },
                "resourceType": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "subjectId": {
                    "type": "string"
                },
                "subjectType": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.AccessRuleBatchInput": {
            "type": "object",
            "properties": {
                "deleteResources": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.AccessRuleResourceInput"
                    }
                },
                "effect": {
                    "type": "string"
                },
                "subjectId": {
                    "type": "string"
                },
                "subjectType": {
                    "type": "string"
                },
                "upsertResources": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.AccessRuleResourceInput"
                    }
                }
            }
        },
        "store.AccessRuleInput": {
            "type": "object",
            "properties": {
                "conditions": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "effect": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "minPermissionLevel": {
                    "type": "integer"
                },
                "priority": {
                    "type": "integer"
                },
                "resourceId": {
                    "type": "string"
                },
                "resourceType": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "subjectId": {
                    "type": "string"
                },
                "subjectType": {
                    "type": "string"
                }
            }
        },
        "store.AccessRuleResourceInput": {
            "type": "object",
            "properties": {
                "conditions": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "minPermissionLevel": {
                    "type": "integer"
                },
                "priority": {
                    "type": "integer"
                },
                "resourceId": {
                    "type": "string"
                },
                "resourceType": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.AdminGatewayTask": {
            "type": "object",
            "properties": {
                "acceptanceRunId": {
                    "type": "string"
                },
                "adminContext": {
                    "$ref": "#/definitions/store.AdminTaskContext"
                },
                "apiKeyId": {
                    "type": "string"
                },
                "apiKeyName": {
                    "type": "string"
                },
                "apiKeyPrefix": {
                    "type": "string"
                },
                "asyncMode": {
                    "type": "boolean"
                },
                "attemptCount": {
                    "type": "integer"
                },
                "attempts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.TaskAttempt"
                    }
                },
                "billingCurrency": {
                    "type": "string"
                },
                "billingSettledAt": {
                    "type": "string"
                },
                "billingStatus": {
                    "type": "string"
                },
                "billingSummary": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "billingUpdatedAt": {
                    "type": "string"
                },
                "billingVersion": {
                    "type": "string"
                },
                "billings": {
                    "type": "array",
                    "items": {}
                },
                "cancellable": {
                    "type": "boolean"
                },
                "compatibilityProtocol": {
                    "type": "string"
                },
                "compatibilityPublicId": {
                    "type": "string"
                },
                "compatibilitySourceProtocol": {
                    "type": "string"
                },
                "compatibilitySubmitBody": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "compatibilitySubmitHeaders": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "compatibilitySubmitHttpStatus": {
                    "type": "integer"
                },
                "conversationId": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "error": {
                    "type": "string"
                },
                "errorCode": {
                    "type": "string"
                },
                "errorMessage": {
                    "type": "string"
                },
                "executionLeaseExpiresAt": {
                    "type": "string"
                },
                "externalTaskId": {
                    "type": "string"
                },
                "finalChargeAmount": {
                    "type": "number"
                },
                "finishedAt": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                },
                "message": {
                    "type": "string"
                },
                "metrics": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "model": {
                    "type": "string"
                },
                "modelType": {
                    "type": "string"
                },
                "newMessageCount": {
                    "type": "integer"
                },
                "pricingSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "remoteTaskId": {
                    "type": "string"
                },
                "request": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "requestFingerprint": {
                    "type": "string"
                },
                "requestId": {
                    "type": "string"
                },
                "requestedModel": {
                    "type": "string"
                },
                "reservationAmount": {
                    "type": "number"
                },
                "resolvedModel": {
                    "type": "string"
                },
                "responseDurationMs": {
                    "type": "integer"
                },
                "responseFinishedAt": {
                    "type": "string"
                },
                "responseStartedAt": {
                    "type": "string"
                },
                "result": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "riverJobId": {
                    "type": "integer"
                },
                "runMode": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "submitted": {
                    "type": "boolean"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "usage": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "userGroupId": {
                    "type": "string"
                },
                "userGroupKey": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                },
                "userSource": {
                    "type": "string"
                }
            }
        },
        "store.AdminTaskContext": {
            "type": "object",
            "properties": {
                "latestPlatform": {
                    "$ref": "#/definitions/store.AdminTaskPlatformSummary"
                },
                "tenant": {
                    "$ref": "#/definitions/store.AdminTaskTenantSummary"
                },
                "user": {
                    "$ref": "#/definitions/store.AdminTaskUserSummary"
                }
            }
        },
        "store.AdminTaskPlatformSummary": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "provider": {
                    "type": "string"
                }
            }
        },
        "store.AdminTaskTenantSummary": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                }
            }
        },
        "store.AdminTaskUserSummary": {
            "type": "object",
            "properties": {
                "displayName": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "source": {
                    "type": "string"
                },
                "username": {
                    "type": "string"
                }
            }
        },
        "store.AuditLog": {
            "type": "object",
            "properties": {
                "action": {
                    "type": "string"
                },
                "actorGatewayUserId": {
                    "type": "string"
                },
                "actorRoles": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "actorSource": {
                    "type": "string"
                },
                "actorUserId": {
                    "type": "string"
                },
                "actorUsername": {
                    "type": "string"
                },
                "afterState": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "beforeState": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "category": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "requestIp": {
                    "type": "string"
                },
                "targetGatewayTenantId": {
                    "type": "string"
                },
                "targetGatewayUserId": {
                    "type": "string"
                },
                "targetId": {
                    "type": "string"
                },
                "targetType": {
                    "type": "string"
                },
                "userAgent": {
                    "type": "string"
                }
            }
        },
        "store.BaseModel": {
            "type": "object",
            "properties": {
                "baseBillingConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "canonicalModelKey": {
                    "type": "string"
                },
                "capabilities": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "catalogType": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "customizedAt": {
                    "type": "string"
                },
                "defaultRateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "defaultSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "displayName": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "invocationName": {
                    "type": "string"
                },
                "legacyAliases": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "modelAlias": {
                    "description": "Deprecated: use InvocationName.",
                    "type": "string"
                },
                "modelType": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "pricingRuleSetId": {
                    "type": "string"
                },
                "pricingVersion": {
                    "type": "integer"
                },
                "providerKey": {
                    "type": "string"
                },
                "providerModelName": {
                    "type": "string"
                },
                "referenceCount": {
                    "type": "integer"
                },
                "runtimePolicyOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "runtimePolicySetId": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.BaseModelInput": {
            "type": "object",
            "properties": {
                "baseBillingConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "canonicalModelKey": {
                    "type": "string"
                },
                "capabilities": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "catalogType": {
                    "type": "string"
                },
                "defaultRateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "defaultSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "displayName": {
                    "type": "string"
                },
                "invocationName": {
                    "type": "string"
                },
                "legacyAliases": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "modelAlias": {
                    "type": "string"
                },
                "modelType": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "pricingRuleSetId": {
                    "type": "string"
                },
                "pricingVersion": {
                    "type": "integer"
                },
                "providerKey": {
                    "type": "string"
                },
                "providerModelName": {
                    "type": "string"
                },
                "runtimePolicyOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "runtimePolicySetId": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.BillingSettlement": {
            "type": "object",
            "properties": {
                "action": {
                    "type": "string"
                },
                "amount": {
                    "type": "number"
                },
                "attempts": {
                    "type": "integer"
                },
                "completedAt": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "lastErrorCode": {
                    "type": "string"
                },
                "lastErrorMessage": {
                    "type": "string"
                },
                "lockedAt": {
                    "type": "string"
                },
                "lockedBy": {
                    "type": "string"
                },
                "manualReviewReason": {
                    "type": "string"
                },
                "nextAttemptAt": {
                    "type": "string"
                },
                "payload": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "pricingSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                },
                "taskId": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.CapacityProfile": {
            "type": "object",
            "properties": {
                "acceptanceRunId": {
                    "type": "string"
                },
                "admittedThroughputPerSecond": {
                    "type": "number"
                },
                "capacityProfile": {
                    "type": "string"
                },
                "configHash": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "kind": {
                    "type": "string"
                },
                "maxPredictedWaitSeconds": {
                    "type": "integer"
                },
                "maxQueued": {
                    "type": "integer"
                },
                "maxRunning": {
                    "type": "integer"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "model": {
                    "type": "string"
                },
                "profileKey": {
                    "type": "string"
                },
                "releaseSha": {
                    "type": "string"
                },
                "stableThroughputPerSecond": {
                    "type": "number"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.CapacityProfileInput": {
            "type": "object",
            "properties": {
                "admittedThroughputPerSecond": {
                    "type": "number"
                },
                "kind": {
                    "type": "string"
                },
                "maxPredictedWaitSeconds": {
                    "type": "integer"
                },
                "maxQueued": {
                    "type": "integer"
                },
                "maxRunning": {
                    "type": "integer"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "model": {
                    "type": "string"
                },
                "profileKey": {
                    "type": "string"
                },
                "stableThroughputPerSecond": {
                    "type": "number"
                }
            }
        },
        "store.CatalogProvider": {
            "type": "object",
            "properties": {
                "capabilitySchema": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "code": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "defaultAuthType": {
                    "type": "string"
                },
                "defaultBaseUrl": {
                    "type": "string"
                },
                "defaultRateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "displayName": {
                    "type": "string"
                },
                "iconPath": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "providerKey": {
                    "type": "string"
                },
                "providerType": {
                    "type": "string"
                },
                "source": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.CatalogProviderInput": {
            "type": "object",
            "properties": {
                "capabilitySchema": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "code": {
                    "type": "string"
                },
                "defaultAuthType": {
                    "type": "string"
                },
                "defaultBaseUrl": {
                    "type": "string"
                },
                "defaultRateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "displayName": {
                    "type": "string"
                },
                "iconPath": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "providerKey": {
                    "type": "string"
                },
                "providerType": {
                    "type": "string"
                },
                "source": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.ClientCustomizationSettings": {
            "type": "object",
            "properties": {
                "clientEnglishName": {
                    "type": "string"
                },
                "clientName": {
                    "type": "string"
                },
                "iconPath": {
                    "type": "string"
                },
                "platformName": {
                    "type": "string"
                }
            }
        },
        "store.ClientCustomizationSettingsInput": {
            "type": "object",
            "properties": {
                "clientEnglishName": {
                    "type": "string"
                },
                "clientName": {
                    "type": "string"
                },
                "iconPath": {
                    "type": "string"
                },
                "platformName": {
                    "type": "string"
                }
            }
        },
        "store.CreateAPIKeyInput": {
            "type": "object",
            "properties": {
                "expiresAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "scopes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "store.CreateAcceptanceRunInput": {
            "type": "object",
            "properties": {
                "apiImageDigest": {
                    "type": "string"
                },
                "apiKeyId": {
                    "type": "string"
                },
                "callbackUrl": {
                    "type": "string"
                },
                "capacityProfile": {
                    "type": "string"
                },
                "config": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "emulatorBaseUrl": {
                    "type": "string"
                },
                "releaseSha": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                },
                "workerImageDigest": {
                    "type": "string"
                }
            }
        },
        "store.CreatePlatformInput": {
            "type": "object",
            "properties": {
                "authType": {
                    "type": "string"
                },
                "baseUrl": {
                    "type": "string"
                },
                "config": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "credentials": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "defaultDiscountFactor": {
                    "type": "number"
                },
                "defaultPricingMode": {
                    "type": "string"
                },
                "internalName": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "platformKey": {
                    "type": "string"
                },
                "pricingRuleSetId": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                },
                "provider": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.CreatePlatformModelInput": {
            "type": "object",
            "properties": {
                "baseModelId": {
                    "type": "string"
                },
                "billingConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "billingConfigOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "canonicalModelKey": {
                    "type": "string"
                },
                "capabilities": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "capabilityOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "discountFactor": {
                    "type": "number"
                },
                "displayName": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "modelAlias": {
                    "type": "string"
                },
                "modelName": {
                    "type": "string"
                },
                "modelType": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "permissionConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "platformId": {
                    "type": "string"
                },
                "pricingMode": {
                    "type": "string"
                },
                "pricingRuleSetId": {
                    "type": "string"
                },
                "providerModelName": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rateLimitPolicyMode": {
                    "type": "string",
                    "enum": [
                        "inherit",
                        "override"
                    ]
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "runtimePolicyOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "runtimePolicySetId": {
                    "type": "string"
                }
            }
        },
        "store.CreatedAPIKey": {
            "type": "object",
            "properties": {
                "apiKey": {
                    "$ref": "#/definitions/store.APIKey"
                },
                "secret": {
                    "type": "string"
                }
            }
        },
        "store.DailyTokenUsage": {
            "type": "object",
            "properties": {
                "cachedInputTokens": {
                    "type": "integer"
                },
                "date": {
                    "type": "string"
                },
                "inputTokens": {
                    "type": "integer"
                },
                "outputTokens": {
                    "type": "integer"
                },
                "resourcePoints": {
                    "type": "number"
                },
                "taskCount": {
                    "type": "integer"
                },
                "totalTokens": {
                    "type": "integer"
                }
            }
        },
        "store.FileStorageChannel": {
            "type": "object",
            "properties": {
                "channelKey": {
                    "type": "string"
                },
                "config": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "credentialsPreview": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "id": {
                    "type": "string"
                },
                "lastError": {
                    "type": "string"
                },
                "lastFailedAt": {
                    "type": "string"
                },
                "lastSucceededAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                },
                "provider": {
                    "type": "string"
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "scenes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "uploadUrl": {
                    "type": "string"
                }
            }
        },
        "store.FileStorageChannelInput": {
            "type": "object",
            "properties": {
                "apiKey": {
                    "type": "string"
                },
                "channelKey": {
                    "type": "string"
                },
                "config": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                },
                "provider": {
                    "type": "string"
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "scenes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "status": {
                    "type": "string"
                },
                "uploadUrl": {
                    "type": "string"
                }
            }
        },
        "store.FileStorageSettings": {
            "type": "object",
            "properties": {
                "resultUploadPolicy": {
                    "type": "string"
                }
            }
        },
        "store.FileStorageSettingsInput": {
            "type": "object",
            "properties": {
                "resultUploadPolicy": {
                    "type": "string"
                }
            }
        },
        "store.FinishAcceptanceRunInput": {
            "type": "object",
            "properties": {
                "failureReason": {
                    "type": "string"
                },
                "passed": {
                    "type": "boolean"
                },
                "report": {
                    "type": "object",
                    "additionalProperties": {}
                }
            }
        },
        "store.GatewayTask": {
            "type": "object",
            "properties": {
                "acceptanceRunId": {
                    "type": "string"
                },
                "apiKeyId": {
                    "type": "string"
                },
                "apiKeyName": {
                    "type": "string"
                },
                "apiKeyPrefix": {
                    "type": "string"
                },
                "asyncMode": {
                    "type": "boolean"
                },
                "attemptCount": {
                    "type": "integer"
                },
                "attempts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.TaskAttempt"
                    }
                },
                "billingCurrency": {
                    "type": "string"
                },
                "billingSettledAt": {
                    "type": "string"
                },
                "billingStatus": {
                    "type": "string"
                },
                "billingSummary": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "billingUpdatedAt": {
                    "type": "string"
                },
                "billingVersion": {
                    "type": "string"
                },
                "billings": {
                    "type": "array",
                    "items": {}
                },
                "cancellable": {
                    "type": "boolean"
                },
                "compatibilityProtocol": {
                    "type": "string"
                },
                "compatibilityPublicId": {
                    "type": "string"
                },
                "compatibilitySourceProtocol": {
                    "type": "string"
                },
                "compatibilitySubmitBody": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "compatibilitySubmitHeaders": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "compatibilitySubmitHttpStatus": {
                    "type": "integer"
                },
                "conversationId": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "error": {
                    "type": "string"
                },
                "errorCode": {
                    "type": "string"
                },
                "errorMessage": {
                    "type": "string"
                },
                "executionLeaseExpiresAt": {
                    "type": "string"
                },
                "externalTaskId": {
                    "type": "string"
                },
                "finalChargeAmount": {
                    "type": "number"
                },
                "finishedAt": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                },
                "message": {
                    "type": "string"
                },
                "metrics": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "model": {
                    "type": "string"
                },
                "modelType": {
                    "type": "string"
                },
                "newMessageCount": {
                    "type": "integer"
                },
                "pricingSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "remoteTaskId": {
                    "type": "string"
                },
                "request": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "requestFingerprint": {
                    "type": "string"
                },
                "requestId": {
                    "type": "string"
                },
                "requestedModel": {
                    "type": "string"
                },
                "reservationAmount": {
                    "type": "number"
                },
                "resolvedModel": {
                    "type": "string"
                },
                "responseDurationMs": {
                    "type": "integer"
                },
                "responseFinishedAt": {
                    "type": "string"
                },
                "responseStartedAt": {
                    "type": "string"
                },
                "result": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "riverJobId": {
                    "type": "integer"
                },
                "runMode": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "submitted": {
                    "type": "boolean"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "usage": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "userGroupId": {
                    "type": "string"
                },
                "userGroupKey": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                },
                "userSource": {
                    "type": "string"
                }
            }
        },
        "store.GatewayTenant": {
            "type": "object",
            "properties": {
                "authPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "billingProfile": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "defaultUserGroupId": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "externalTenantId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "planKey": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "source": {
                    "type": "string"
                },
                "sourceUpdatedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "syncedAt": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.GatewayTenantInput": {
            "type": "object",
            "properties": {
                "authPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "billingProfile": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "defaultUserGroupId": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "externalTenantId": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "planKey": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "source": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                }
            }
        },
        "store.GatewayTrafficMode": {
            "type": "object",
            "properties": {
                "apiImageDigest": {
                    "type": "string"
                },
                "configHash": {
                    "type": "string"
                },
                "mode": {
                    "type": "string"
                },
                "releaseSha": {
                    "type": "string"
                },
                "revision": {
                    "type": "integer"
                },
                "runId": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "workerImageDigest": {
                    "type": "string"
                }
            }
        },
        "store.GatewayUser": {
            "type": "object",
            "properties": {
                "authProfile": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "avatarUrl": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "defaultUserGroupId": {
                    "type": "string"
                },
                "displayName": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "externalUserId": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "lastLoginAt": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "phone": {
                    "type": "string"
                },
                "roles": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "source": {
                    "type": "string"
                },
                "sourceUpdatedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "syncedAt": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "userKey": {
                    "type": "string"
                },
                "username": {
                    "type": "string"
                },
                "walletAccounts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.GatewayWalletAccount"
                    }
                }
            }
        },
        "store.GatewayUserInput": {
            "type": "object",
            "properties": {
                "authProfile": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "avatarUrl": {
                    "type": "string"
                },
                "defaultUserGroupId": {
                    "type": "string"
                },
                "displayName": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "externalUserId": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "password": {
                    "type": "string"
                },
                "phone": {
                    "type": "string"
                },
                "roles": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "source": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "userKey": {
                    "type": "string"
                },
                "username": {
                    "type": "string"
                }
            }
        },
        "store.GatewayWalletAccount": {
            "type": "object",
            "properties": {
                "balance": {
                    "type": "number"
                },
                "createdAt": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "frozenBalance": {
                    "type": "number"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "totalRecharged": {
                    "type": "number"
                },
                "totalSpent": {
                    "type": "number"
                },
                "updatedAt": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                }
            }
        },
        "store.GatewayWalletTransaction": {
            "type": "object",
            "properties": {
                "accountId": {
                    "type": "string"
                },
                "amount": {
                    "type": "number"
                },
                "balanceAfter": {
                    "type": "number"
                },
                "balanceBefore": {
                    "type": "number"
                },
                "createdAt": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "direction": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "idempotencyKey": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "referenceId": {
                    "type": "string"
                },
                "referenceType": {
                    "type": "string"
                },
                "transactionType": {
                    "type": "string"
                }
            }
        },
        "store.IdentityBatchInput": {
            "type": "object",
            "properties": {
                "action": {
                    "type": "string",
                    "enum": [
                        "enable",
                        "disable",
                        "delete"
                    ]
                },
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "store.LocalLoginInput": {
            "type": "object",
            "properties": {
                "account": {
                    "type": "string"
                },
                "password": {
                    "type": "string"
                }
            }
        },
        "store.LocalRegisterInput": {
            "type": "object",
            "properties": {
                "displayName": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "invitationCode": {
                    "type": "string"
                },
                "password": {
                    "type": "string"
                },
                "username": {
                    "type": "string"
                }
            }
        },
        "store.ModelRateLimitStatus": {
            "type": "object",
            "properties": {
                "concurrent": {
                    "$ref": "#/definitions/store.RateLimitMetricStatus"
                },
                "displayName": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "loadRatio": {
                    "type": "number"
                },
                "modelAlias": {
                    "type": "string"
                },
                "modelCooldownUntil": {
                    "type": "string"
                },
                "modelName": {
                    "type": "string"
                },
                "modelType": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "oldestQueueWaitSeconds": {
                    "type": "number"
                },
                "platformCooldownUntil": {
                    "type": "string"
                },
                "platformDisabledReason": {
                    "$ref": "#/definitions/store.PlatformPolicyEvent"
                },
                "platformDynamicPriority": {
                    "type": "integer"
                },
                "platformEffectivePriority": {
                    "type": "integer"
                },
                "platformId": {
                    "type": "string"
                },
                "platformModelId": {
                    "type": "string"
                },
                "platformName": {
                    "type": "string"
                },
                "platformPriority": {
                    "type": "integer"
                },
                "platformStatus": {
                    "type": "string"
                },
                "provider": {
                    "type": "string"
                },
                "providerModelName": {
                    "type": "string"
                },
                "queueLimit": {
                    "type": "integer"
                },
                "queuedTasks": {
                    "type": "number"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "recentPriorityDemotions": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PriorityDemotionRecord"
                    }
                },
                "rpm": {
                    "$ref": "#/definitions/store.RateLimitMetricStatus"
                },
                "tpm": {
                    "$ref": "#/definitions/store.RateLimitMetricStatus"
                },
                "waitingAsyncTasks": {
                    "type": "integer"
                },
                "waitingSyncTasks": {
                    "type": "integer"
                }
            }
        },
        "store.PauseGatewayTrafficInput": {
            "type": "object",
            "properties": {
                "apiImageDigest": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                },
                "releaseSha": {
                    "type": "string"
                },
                "revision": {
                    "type": "integer"
                },
                "workerImageDigest": {
                    "type": "string"
                }
            }
        },
        "store.Platform": {
            "type": "object",
            "properties": {
                "authType": {
                    "type": "string"
                },
                "baseUrl": {
                    "type": "string"
                },
                "config": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "cooldownUntil": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "credentialsPreview": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "defaultDiscountFactor": {
                    "type": "number"
                },
                "defaultPricingMode": {
                    "type": "string"
                },
                "dynamicPriority": {
                    "type": "integer"
                },
                "effectivePriority": {
                    "type": "integer"
                },
                "id": {
                    "type": "string"
                },
                "internalName": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "platformKey": {
                    "type": "string"
                },
                "pricingRuleSetId": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                },
                "provider": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.PlatformModel": {
            "type": "object",
            "properties": {
                "baseModelId": {
                    "type": "string"
                },
                "billingConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "billingConfigOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "capabilities": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "capabilityOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "cooldownUntil": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "discountFactor": {
                    "type": "number"
                },
                "displayName": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "id": {
                    "type": "string"
                },
                "legacyAliases": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "modelAlias": {
                    "description": "Deprecated: use ModelName. This field mirrors the canonical invocation name during the compatibility window.",
                    "type": "string"
                },
                "modelName": {
                    "type": "string"
                },
                "modelType": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "permissionConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "platformId": {
                    "type": "string"
                },
                "platformName": {
                    "type": "string"
                },
                "pricingMode": {
                    "type": "string"
                },
                "pricingRuleSetId": {
                    "type": "string"
                },
                "provider": {
                    "type": "string"
                },
                "providerModelName": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rateLimitPolicyMode": {
                    "type": "string",
                    "enum": [
                        "inherit",
                        "override"
                    ]
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "runtimePolicyOverride": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "runtimePolicySetId": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.PlatformPolicyEvent": {
            "type": "object",
            "properties": {
                "category": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "errorCode": {
                    "type": "string"
                },
                "errorMessage": {
                    "type": "string"
                },
                "eventType": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "matchedValue": {
                    "type": "string"
                },
                "platformId": {
                    "type": "string"
                },
                "platformModelId": {
                    "type": "string"
                },
                "policy": {
                    "type": "string"
                },
                "policyRule": {
                    "type": "string"
                },
                "policySource": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                },
                "statusCode": {
                    "type": "integer"
                },
                "taskId": {
                    "type": "string"
                }
            }
        },
        "store.PlayableAPIKey": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "expiresAt": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "keyPrefix": {
                    "type": "string"
                },
                "lastUsedAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "quotaPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "scopes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "secret": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "userGroupId": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                }
            }
        },
        "store.PortraitAsset": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "gatewayTenantId": {
                    "type": "string"
                },
                "gatewayUserId": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "lastError": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "mimeType": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "preview": {
                    "type": "string"
                },
                "privateAvatarEligible": {
                    "type": "boolean"
                },
                "size": {
                    "type": "integer"
                },
                "sourceSha256": {
                    "type": "string"
                },
                "sourceType": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "tenantId": {
                    "type": "string"
                },
                "tenantKey": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "url": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                }
            }
        },
        "store.PricingRule": {
            "type": "object",
            "properties": {
                "basePrice": {
                    "type": "number"
                },
                "baseWeight": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "calculatorType": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "dimensionSchema": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "displayName": {
                    "type": "string"
                },
                "dynamicWeight": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "effectiveFrom": {
                    "type": "string"
                },
                "effectiveTo": {
                    "type": "string"
                },
                "formulaConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "id": {
                    "type": "string"
                },
                "isFree": {
                    "type": "boolean"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "priority": {
                    "type": "integer"
                },
                "resourceType": {
                    "type": "string"
                },
                "ruleKey": {
                    "type": "string"
                },
                "ruleSetId": {
                    "type": "string"
                },
                "scopeId": {
                    "type": "string"
                },
                "scopeType": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.PricingRuleInput": {
            "type": "object",
            "properties": {
                "basePrice": {
                    "type": "number"
                },
                "baseWeight": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "calculatorType": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "dimensionSchema": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "displayName": {
                    "type": "string"
                },
                "dynamicWeight": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "effectiveFrom": {
                    "type": "string"
                },
                "effectiveTo": {
                    "type": "string"
                },
                "formulaConfig": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "isFree": {
                    "type": "boolean"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "priority": {
                    "type": "integer"
                },
                "resourceType": {
                    "type": "string"
                },
                "ruleKey": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "unit": {
                    "type": "string"
                }
            }
        },
        "store.PricingRuleSet": {
            "type": "object",
            "properties": {
                "category": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "ruleSetKey": {
                    "type": "string"
                },
                "rules": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PricingRule"
                    }
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.PricingRuleSetInput": {
            "type": "object",
            "properties": {
                "category": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "ruleSetKey": {
                    "type": "string"
                },
                "rules": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.PricingRuleInput"
                    }
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.PriorityDemotionRecord": {
            "type": "object",
            "properties": {
                "category": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "dynamicPriority": {
                    "type": "integer"
                },
                "errorCode": {
                    "type": "string"
                },
                "errorMessage": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "matchedValue": {
                    "type": "string"
                },
                "platformId": {
                    "type": "string"
                },
                "platformModelId": {
                    "type": "string"
                },
                "policy": {
                    "type": "string"
                },
                "policyRule": {
                    "type": "string"
                },
                "policySource": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                },
                "statusCode": {
                    "type": "integer"
                },
                "taskId": {
                    "type": "string"
                }
            }
        },
        "store.PromoteAcceptanceRunInput": {
            "type": "object",
            "properties": {
                "apiImageDigest": {
                    "type": "string"
                },
                "capacityProfiles": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.CapacityProfileInput"
                    }
                },
                "configHash": {
                    "type": "string"
                },
                "releaseSha": {
                    "type": "string"
                },
                "revision": {
                    "type": "integer"
                },
                "workerImageDigest": {
                    "type": "string"
                }
            }
        },
        "store.RateLimitMetricStatus": {
            "type": "object",
            "properties": {
                "currentValue": {
                    "type": "number"
                },
                "limitValue": {
                    "type": "number"
                },
                "limited": {
                    "type": "boolean"
                },
                "ratio": {
                    "type": "number"
                },
                "reservedValue": {
                    "type": "number"
                },
                "resetAt": {
                    "type": "string"
                },
                "usedValue": {
                    "type": "number"
                }
            }
        },
        "store.RateLimitWindow": {
            "type": "object",
            "properties": {
                "limitValue": {
                    "type": "number"
                },
                "metric": {
                    "type": "string"
                },
                "reservedValue": {
                    "type": "number"
                },
                "resetAt": {
                    "type": "string"
                },
                "scopeKey": {
                    "type": "string"
                },
                "scopeType": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "usedValue": {
                    "type": "number"
                },
                "windowStart": {
                    "type": "string"
                }
            }
        },
        "store.RunnerPolicy": {
            "type": "object",
            "properties": {
                "cacheAffinityPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "failoverPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "hardStopPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "policyKey": {
                    "type": "string"
                },
                "priorityDemotePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "singleSourcePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.RunnerPolicyInput": {
            "type": "object",
            "properties": {
                "cacheAffinityPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "description": {
                    "type": "string"
                },
                "failoverPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "hardStopPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "policyKey": {
                    "type": "string"
                },
                "priorityDemotePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "singleSourcePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.RuntimePolicySet": {
            "type": "object",
            "properties": {
                "autoDisablePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "degradePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "description": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "policyKey": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.RuntimePolicySetInput": {
            "type": "object",
            "properties": {
                "autoDisablePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "degradePolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "description": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "policyKey": {
                    "type": "string"
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "retryPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.StageAcceptanceCapacityProfilesInput": {
            "type": "object",
            "properties": {
                "capacityProfiles": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.CapacityProfileInput"
                    }
                },
                "configHash": {
                    "type": "string"
                }
            }
        },
        "store.TaskAttempt": {
            "type": "object",
            "properties": {
                "attemptNo": {
                    "type": "integer"
                },
                "clientId": {
                    "type": "string"
                },
                "errorCode": {
                    "type": "string"
                },
                "errorMessage": {
                    "type": "string"
                },
                "finishedAt": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metrics": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "modelAlias": {
                    "type": "string"
                },
                "modelName": {
                    "type": "string"
                },
                "modelType": {
                    "type": "string"
                },
                "platformId": {
                    "type": "string"
                },
                "platformModelId": {
                    "type": "string"
                },
                "platformName": {
                    "type": "string"
                },
                "pricingSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "provider": {
                    "type": "string"
                },
                "providerModelName": {
                    "type": "string"
                },
                "queueKey": {
                    "type": "string"
                },
                "requestFingerprint": {
                    "type": "string"
                },
                "requestId": {
                    "type": "string"
                },
                "requestSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "responseDurationMs": {
                    "type": "integer"
                },
                "responseFinishedAt": {
                    "type": "string"
                },
                "responseSnapshot": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "responseStartedAt": {
                    "type": "string"
                },
                "retryable": {
                    "type": "boolean"
                },
                "simulated": {
                    "type": "boolean"
                },
                "startedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "statusCode": {
                    "type": "integer"
                },
                "taskId": {
                    "type": "string"
                },
                "upstreamSubmissionStatus": {
                    "type": "string"
                },
                "upstreamSubmissionUpdatedAt": {
                    "type": "string"
                },
                "usage": {
                    "type": "object",
                    "additionalProperties": {}
                }
            }
        },
        "store.TaskParamPreprocessingLog": {
            "type": "object",
            "properties": {
                "actualInput": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "attemptId": {
                    "type": "string"
                },
                "attemptNo": {
                    "type": "integer"
                },
                "changeCount": {
                    "type": "integer"
                },
                "changed": {
                    "type": "boolean"
                },
                "changes": {
                    "type": "array",
                    "items": {}
                },
                "clientId": {
                    "type": "string"
                },
                "convertedOutput": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "model": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "modelType": {
                    "type": "string"
                },
                "platformId": {
                    "type": "string"
                },
                "platformModelId": {
                    "type": "string"
                },
                "taskId": {
                    "type": "string"
                }
            }
        },
        "store.UpdateAPIKeyScopesInput": {
            "type": "object",
            "properties": {
                "scopes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "store.UserGroup": {
            "type": "object",
            "properties": {
                "billingDiscountPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "createdAt": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "groupKey": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                },
                "quotaPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rechargeDiscountPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "source": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "store.UserGroupInput": {
            "type": "object",
            "properties": {
                "billingDiscountPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "description": {
                    "type": "string"
                },
                "groupKey": {
                    "type": "string"
                },
                "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "name": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                },
                "quotaPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rateLimitPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "rechargeDiscountPolicy": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "source": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "store.WalletSummary": {
            "type": "object",
            "properties": {
                "accounts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.GatewayWalletAccount"
                    }
                },
                "primaryAccount": {
                    "$ref": "#/definitions/store.GatewayWalletAccount"
                }
            }
        },
        "store.WorkerClusterRuntime": {
            "type": "object",
            "properties": {
                "capturedAt": {
                    "type": "string"
                },
                "queue": {
                    "$ref": "#/definitions/store.WorkerQueueRuntime"
                },
                "workers": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/store.WorkerInstanceRuntime"
                    }
                }
            }
        },
        "store.WorkerInstanceRuntime": {
            "type": "object",
            "properties": {
                "activeLeases": {
                    "type": "integer"
                },
                "allocatedCapacity": {
                    "type": "integer"
                },
                "capacityLimit": {
                    "type": "integer"
                },
                "drainingAt": {
                    "type": "string"
                },
                "finalizingTasks": {
                    "type": "integer"
                },
                "hardCapacityLimit": {
                    "type": "integer"
                },
                "heartbeatAt": {
                    "type": "string"
                },
                "heavyCapacity": {
                    "type": "integer"
                },
                "instanceId": {
                    "type": "string"
                },
                "loadSampledAt": {
                    "type": "string"
                },
                "podName": {
                    "type": "string"
                },
                "podUid": {
                    "type": "string"
                },
                "preparingTasks": {
                    "type": "integer"
                },
                "pressureReason": {
                    "type": "string"
                },
                "pressureState": {
                    "type": "string"
                },
                "reportedActiveTasks": {
                    "type": "integer"
                },
                "revision": {
                    "type": "string"
                },
                "runningTasks": {
                    "type": "integer"
                },
                "safeCapacity": {
                    "type": "integer"
                },
                "site": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "waitingUpstreamTasks": {
                    "type": "integer"
                }
            }
        },
        "store.WorkerQueueRuntime": {
            "type": "object",
            "properties": {
                "oldestWaitSeconds": {
                    "type": "number"
                },
                "queued": {
                    "type": "integer"
                },
                "running": {
                    "type": "integer"
                }
            }
        }
    },
    "securityDefinitions": {
        "BearerAuth": {
            "description": "Bearer JWT 或 API Key。",
            "type": "apiKey",
            "name": "Authorization",
            "in": "header"
        }
    }
}