14 lines
377 B
TypeScript
14 lines
377 B
TypeScript
import { Type } from 'typebox'
|
|
|
|
export const ChannelSchema = Type.Object({
|
|
id: Type.String(),
|
|
ownerUsername: Type.Union([Type.String(), Type.Null()]),
|
|
name: Type.String(),
|
|
persistent: Type.Boolean(),
|
|
}, { $id: 'Channel' })
|
|
|
|
export const CreateChannelPayloadSchema = Type.Object({
|
|
name: Type.String(),
|
|
persistent: Type.Boolean(),
|
|
}, { $id: 'CreateChannelPayload' })
|