20 lines
557 B
TypeScript
20 lines
557 B
TypeScript
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' })
|