NapCatQQ/packages/napcat-onebot
手瓜一十雪 78ac36f670 Add plugin no-auth API routes and WebUI handling
Introduce support for plugin API routes that do not require WebUI authentication. Updates include:

- napcat-onebot: Add apiNoAuth route storage and helpers (apiNoAuth, getNoAuth, postNoAuth, putNoAuth, deleteNoAuth), hasApiNoAuthRoutes, buildApiNoAuthRouter, and clear handling in PluginRouterRegistryImpl.
- napcat-onebot types: Extend PluginRouterRegistry interface with no-auth API methods and document that authenticated APIs remain separate.
- napcat-webui-backend: Mount a new unauthenticated plugin route handler at /plugin/:pluginId/api that looks up the plugin router and dispatches requests to the plugin's no-auth router, returning appropriate errors when context or routes are missing.
- napcat-plugin-builtin: Add example no-auth endpoints (public/info and health) and update logger messages to reflect both auth and no-auth API paths.
- Bump napcat-types version to 0.0.16 and update napcat-plugin-builtin dependency accordingly.

These changes enable plugins to expose public endpoints (e.g. health checks or public metadata) under /plugin/{pluginId}/api/ while keeping existing authenticated APIs under /api/Plugin/ext/{pluginId}/.
2026-02-02 19:13:01 +08:00
..
action Replace Type.Void() with Type.Object({}) 2026-02-02 13:17:06 +08:00
api Reapply "Add image download proxy support to OneBot" 2026-01-29 20:40:19 +08:00
config Reapply "Add image download proxy support to OneBot" 2026-01-29 20:40:19 +08:00
event Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
helper refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
network Add plugin no-auth API routes and WebUI handling 2026-02-02 19:13:01 +08:00
types Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
index.ts Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
package.json feat: 所有的类型检查 2025-11-15 12:57:19 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00