feat: 新版webui
This commit is contained in:
1 parent
afc9c7ed8d
commit
31c0c1f4bc
201 files changed
+18454
-3422
No files matched your search
@@ -0,0 +1,34 @@
|
||||
import { ZodSchema } from 'zod'
|
||||
|
||||
import oneBotHttpApiGroup from './group'
|
||||
import oneBotHttpApiMessage from './message'
|
||||
import oneBotHttpApiSystem from './system'
|
||||
import oneBotHttpApiUser from './user'
|
||||
|
||||
type AllKey =
|
||||
| keyof typeof oneBotHttpApiUser
|
||||
| keyof typeof oneBotHttpApiMessage
|
||||
| keyof typeof oneBotHttpApiGroup
|
||||
| keyof typeof oneBotHttpApiSystem
|
||||
|
||||
export type OneBotHttpApi = Record<
|
||||
AllKey,
|
||||
{
|
||||
description?: string
|
||||
request: ZodSchema
|
||||
response: ZodSchema
|
||||
}
|
||||
>
|
||||
|
||||
const oneBotHttpApi: OneBotHttpApi = {
|
||||
...oneBotHttpApiUser,
|
||||
...oneBotHttpApiMessage,
|
||||
...oneBotHttpApiGroup,
|
||||
...oneBotHttpApiSystem
|
||||
} as const
|
||||
|
||||
export type OneBotHttpApiPath = keyof OneBotHttpApi
|
||||
|
||||
export type OneBotHttpApiContent = OneBotHttpApi[OneBotHttpApiPath]
|
||||
|
||||
export default oneBotHttpApi
|
||||
Reference in new issue
Block a user