PP 增加受控凭据更新、真实登录与目录检查,待验证修改不会替换生效配置;扫描与取件共享生效修订。 钉钉来源向导、校验与登记共用 DWS 授权,支持中途恢复与换账号保护,取消旧扫码自动回落。 认证审计复用已有来源审计页,配置响应不回传密码;补齐运行镜像脚本与权限。 验证:make verify 退出 0;PP/DWS/httpapi 目标 race 回归通过;隔离 HTTP 服务验证 PP 协议及扫描/取件消费者。 尚未部署;真实 PP 凭据与目录可用性在测试站部署后验证。
This commit is contained in:
@@ -2682,6 +2682,211 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/pp-connection": {
|
||||
"get": {
|
||||
"operationId": "getPPConnection",
|
||||
"summary": "管理员读取 PP 配置元数据及最近检查结果",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "请求完成",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/PPConnectionView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "输入格式错误"
|
||||
},
|
||||
"401": {
|
||||
"description": "需要登录或重新授权"
|
||||
},
|
||||
"403": {
|
||||
"description": "需要管理员权限或缺少目录权限"
|
||||
},
|
||||
"409": {
|
||||
"description": "配置或账号已变化"
|
||||
},
|
||||
"422": {
|
||||
"description": "明确拒绝本次配置,原配置保留"
|
||||
},
|
||||
"500": {
|
||||
"description": "内部错误"
|
||||
},
|
||||
"503": {
|
||||
"description": "依赖服务暂不可用"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"operationId": "savePPConnection",
|
||||
"summary": "管理员保存并真实校验 PP 配置",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "请求完成",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/PPConnectionView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "输入格式错误"
|
||||
},
|
||||
"401": {
|
||||
"description": "需要登录或重新授权"
|
||||
},
|
||||
"403": {
|
||||
"description": "需要管理员权限或缺少目录权限"
|
||||
},
|
||||
"409": {
|
||||
"description": "配置或账号已变化"
|
||||
},
|
||||
"422": {
|
||||
"description": "明确拒绝本次配置,原配置保留"
|
||||
},
|
||||
"500": {
|
||||
"description": "内部错误"
|
||||
},
|
||||
"503": {
|
||||
"description": "依赖服务暂不可用"
|
||||
}
|
||||
},
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PPConnectionDraft"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/pp-connection/test": {
|
||||
"post": {
|
||||
"operationId": "testPPConnection",
|
||||
"summary": "管理员使用草稿真实登录并读取最小目录,不登记来源",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "请求完成",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/PPObservation"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "输入格式错误"
|
||||
},
|
||||
"401": {
|
||||
"description": "需要登录或重新授权"
|
||||
},
|
||||
"403": {
|
||||
"description": "需要管理员权限或缺少目录权限"
|
||||
},
|
||||
"409": {
|
||||
"description": "配置或账号已变化"
|
||||
},
|
||||
"422": {
|
||||
"description": "明确拒绝本次配置,原配置保留"
|
||||
},
|
||||
"500": {
|
||||
"description": "内部错误"
|
||||
},
|
||||
"503": {
|
||||
"description": "依赖服务暂不可用"
|
||||
}
|
||||
},
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PPConnectionDraft"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/dingtalk-spaces/validate": {
|
||||
"post": {
|
||||
"operationId": "validateDingtalkSourceSpaces",
|
||||
"summary": "管理员用共享 DWS 身份真实检查所选空间可见性",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "请求完成"
|
||||
},
|
||||
"400": {
|
||||
"description": "输入格式错误"
|
||||
},
|
||||
"401": {
|
||||
"description": "需要登录或重新授权"
|
||||
},
|
||||
"403": {
|
||||
"description": "需要管理员权限或缺少目录权限"
|
||||
},
|
||||
"409": {
|
||||
"description": "配置或账号已变化"
|
||||
},
|
||||
"422": {
|
||||
"description": "明确拒绝本次配置,原配置保留"
|
||||
},
|
||||
"500": {
|
||||
"description": "内部错误"
|
||||
},
|
||||
"503": {
|
||||
"description": "依赖服务暂不可用"
|
||||
}
|
||||
},
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"urls"
|
||||
],
|
||||
"properties": {
|
||||
"urls": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 100,
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/dingtalk-spaces": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -5879,6 +6084,140 @@
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"PPConnectionDraft": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"base_url",
|
||||
"username",
|
||||
"revision"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"base_url": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
"description": "HTTPS API 根地址"
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"writeOnly": true,
|
||||
"maxLength": 8192,
|
||||
"description": "省略或空值保留已存密码"
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"pending_id": {
|
||||
"type": "string",
|
||||
"description": "继续校验已保存的待验证修改"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PPSafeMetadata": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"base_url",
|
||||
"username",
|
||||
"password_configured"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"base_url": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
},
|
||||
"password_configured": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PPObservation": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"state",
|
||||
"message",
|
||||
"checked_at"
|
||||
],
|
||||
"properties": {
|
||||
"state": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"valid",
|
||||
"auth_failed",
|
||||
"permission_denied",
|
||||
"incomplete",
|
||||
"unavailable",
|
||||
"invalid_response"
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"checked_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PPConnectionView": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"revision": {
|
||||
"type": "integer"
|
||||
},
|
||||
"active": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PPSafeMetadata"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pending": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PPSafeMetadata"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"observation": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PPObservation"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pending_observation": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PPObservation"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"QAReportedHistoricalRate": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
Reference in New Issue
Block a user