feat(api): listUploads 会话条目内嵌照片预览(现签 thumb/browse)

- 契约 UploadSessionPhoto 增可选 preview(PhotoPreview;旧客户端零 break)
- list() 批量查 photo_variants,uploader 视角签发:thumb+browse 齐备且
  未隐藏/删除才签(「隐藏是运营动作」口径从严;无变体→字段缺省)
- presign 本地 SigV4 无网络开销,TTL 同全局 900s
- 顺手修 batch-ops ⑦:交接后上传 bytes 撞查重改 71007(登记旧账清偿)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-29 12:04:06 +08:00
parent 3833bc3bc6
commit f1912998a8
5 changed files with 137 additions and 22 deletions
+3
View File
@@ -1839,6 +1839,7 @@ export interface components {
readonly photoId: string;
processingState: components["schemas"]["PhotoProcessingState"];
visibility: components["schemas"]["PhotoVisibility"];
preview?: components["schemas"]["PhotoPreview"];
};
UploadSessionRecord: {
/** @description 上传会话 ID。 */
@@ -1987,6 +1988,8 @@ export interface components {
* 相册 owner 本相册全部 / 协作者仅自己上传)且照片有有效变体、未删除;
* 隐藏照片仅 admin/owner 签发。不满足条件时 AdminPhoto.preview 为 null
* (PhotoRecord 本身仍如实返回)。URL 过期后经列表重取刷新。
* 亦用于上传会话历史(UploadSessionPhoto.preview,uploader 本人视角):
* 变体齐备且未隐藏/未删除时签发,否则字段缺省。
*/
PhotoPreview: {
thumb: components["schemas"]["SignedUrl"];