NapCatQQ/packages/napcat-onebot/action
H3CoF6 3b99eb9658 feat: Support custom filename and cover image for Flash Transfer (#1544)
* feat: support thumbnail for flash-transfer

* fix: fix get thumbnail path unknown type error

* Refactor flash module types and enums

Standardized TypeScript interface property formatting in flash.ts, flash data, and wrapper files. Introduced the UploadSceneType enum for upload scene types, replacing hardcoded numeric values. Improved type annotations and consistency across the flash API and related data structures.

* Update arg type in NodeQQNTWrapperUtil interface

Changed the type of the 'arg' parameter in the NodeQQNTWrapperUtil interface from optional number to 'number | null | undefined' for improved type clarity.

* Refactor flash scene type and update method params

Introduced BusiScene enum for sceneType in FileListInfoRequests to improve type safety. Renamed parameters in getFileThumbSavePathForSend for better clarity.

* Refactor downloadSceneType to use enum type

Replaced numeric downloadSceneType fields with the DownloadSceneType enum in relevant interfaces. Updated NodeIKernelFlashTransferService method signatures to use DownloadSceneType for download operations, improving type safety and code clarity.

* refactor: remove thumbnail dependency for QQ resource icons

* fix: remove useless console.log

---------

Co-authored-by: 手瓜一十雪 <nanaeonn@outlook.com>
2026-01-25 09:51:43 +08:00
..
extends fix #1515 & Add cookie parameter to getMsgEmojiLikesList API 2026-01-23 21:41:28 +08:00
file feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
go-cqhttp Add upload_file option for file upload actions 2026-01-03 16:25:38 +08:00
group feat: add settings field to group notice API response (#1505) 2026-01-13 16:32:03 +08:00
guild refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
msg Make emoji_likes_list optional in OB11Message 2026-01-13 17:08:31 +08:00
new refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
packet refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
stream Add convertToNTSilkTct to FFmpeg adapters and update usage (#1517) 2026-01-13 16:18:32 +08:00
system feat: 优化离线重连机制,支持通过前端实现重新登录 2026-01-17 15:38:24 +08:00
test feat: 装饰器与装饰器路由注册 2025-11-14 19:49:13 +08:00
user refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
auto-register.ts Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
index.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
OneBotAction.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
router.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00