работаем бля работаем
This commit is contained in:
19
server/plugins/schemas/user.ts
Normal file
19
server/plugins/schemas/user.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Type } from 'typebox'
|
||||
|
||||
export const GetUserQuerySchema = Type.Partial(Type.Object({
|
||||
username: Type.String(),
|
||||
}), { $id: 'GetUserQuery' })
|
||||
|
||||
export const UserPreferencesSchema = Type.Object({
|
||||
toggleInputHotkey: Type.String(),
|
||||
toggleOutputHotkey: Type.String(),
|
||||
}, { $id: 'UserPreferences' })
|
||||
|
||||
export const UpdateUserPreferencesPayloadSchema = Type.Partial(
|
||||
UserPreferencesSchema,
|
||||
{ $id: 'UpdateUserPreferencesPayload' },
|
||||
)
|
||||
|
||||
export const UpdateUserPayloadSchema = Type.Object({
|
||||
displayName: Type.String(),
|
||||
}, { $id: 'UpdateUserPayload' })
|
||||
Reference in New Issue
Block a user