NapCatQQ/packages/napcat-webui-frontend/src/utils
手瓜一十雪 819224b788 Fix SendPokePayloadSchema type definitions
Corrected the type definitions for user_id and target_id to only allow strings, and fixed a syntax error in group_id. This ensures payload validation is consistent and accurate.

Refactor fileset ID API response and schema handling

Updated GetFilesetId action to return a structured object with fileset_id and adjusted its return schema accordingly. Improved frontend TypeBox schema parsing to support allOf (intersection) merging and updated API debug component to construct response schemas in a more robust way for object recognition.

Refactor OneBot API schema handling to use TypeBox

Replaces Zod-based static API schema definitions with dynamic fetching of schemas from the backend using TypeBox. Removes legacy static schema files, updates frontend API debug components to use TypeBox utilities, and adds @sinclair/typebox as a dependency. Backend now exposes a /schemas endpoint for all OneBot actions. Various schema and description fields are updated for clarity and consistency.
2026-01-25 20:24:30 +08:00
..
object.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
onebot.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
process_utils.ts feat: 优化离线重连机制,支持通过前端实现重新登录 2026-01-17 15:38:24 +08:00
qq.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
request.ts Refactor GitHub tag fetching and mirror management 2026-01-03 14:42:24 +08:00
suggestions.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
terminal.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
theme.ts Refactor theme font handling and preview logic 2026-01-04 18:48:16 +08:00
time.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
typebox.ts Fix SendPokePayloadSchema type definitions 2026-01-25 20:24:30 +08:00
url.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
version.ts Refactor GitHub tag fetching and mirror management 2026-01-03 14:42:24 +08:00
zod.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00