feat(library): 整库发布身份、写集合与收尾边界
build / build (push) Successful in 1m45s

执行时真实时钟与持久授权回读(撤销/过期即停并保留预备份)、写集合写前落盘、
租约与 attempt 身份、恢复队列与原发送身份分离、成功收尾必须释放维护后再登记终态。
This commit is contained in:
姚章浩
2026-11-01 11:35:10 +08:00
parent 5afd8c0140
commit 8d838d9cb4
82 changed files with 4809 additions and 551 deletions
+56
View File
@@ -832,6 +832,62 @@
}
}
},
"/api/v1/library/source-associations": {
"post": {
"tags": [
"Runtime"
],
"operationId": "associateLegacyLibrarySource",
"summary": "管理员核验原捕获证据并关联旧封存来源;不修改快照、不发布内容",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"scope",
"snapshot_id"
],
"properties": {
"scope": {
"type": "string",
"enum": [
"internal",
"external"
]
},
"snapshot_id": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "已持久关联并读回;associated=true,published=false,返回准确snapshot_id/source_id/source_identity"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"403": {
"description": "需要管理员登录身份"
},
"409": {
"description": "原捕获证据缺失、来源/指纹/清单不符或已有不可变关联冲突"
},
"500": {
"$ref": "#/components/responses/InternalError"
},
"503": {
"description": "来源配置或关联存储不可用"
}
}
}
},
"/api/v1/library/captures": {
"get": {
"tags": [