Messenger/packages/core/src/schemas/index.ts
Заид Омар Медхат | Zaid Omar Medhat f5b620111b redesign
2026-07-11 04:49:07 +05:00

78 lines
2 KiB
TypeScript

export { registerBodySchema, loginBodySchema, updateMeBodySchema } from './auth';
export type { RegisterBody, LoginBody, UpdateMeBody } from './auth';
export {
createDirectBodySchema,
createGroupBodySchema,
createChannelBodySchema,
addMemberBodySchema,
sendMessageBodySchema,
forwardMessageBodySchema,
addContactBodySchema,
} from './conversation';
export type {
CreateDirectBody,
CreateGroupBody,
CreateChannelBody,
AddMemberBody,
SendMessageBody,
ForwardMessageBody,
AddContactBody,
} from './conversation';
export { editMessageBodySchema, reactionBodySchema, readBodySchema } from './live';
export type { EditMessageBody, ReactionBody, ReadBody } from './live';
export {
mediaRefSchema,
uploadUrlBodySchema,
avatarUploadBodySchema,
setAvatarBodySchema,
uploadTargetSchema,
avatarTargetSchema,
mediaUrlSchema,
} from './media';
export type { MediaRef, MediaKind, UploadUrlBody, AvatarUploadBody, SetAvatarBody } from './media';
export {
chatFolderSchema,
chatPinSchema,
foldersStateSchema,
createFolderBodySchema,
updateFolderBodySchema,
setPinBodySchema,
mediaListQuerySchema,
} from './folders';
export type { CreateFolderBody, UpdateFolderBody, SetPinBody, MediaTab } from './folders';
export {
registerDeviceBodySchema,
updateSettingsBodySchema,
muteConversationBodySchema,
vapidPublicKeySchema,
notificationSettingsSchema,
deviceSchema,
deviceListSchema,
} from './notifications';
export type {
DevicePlatform,
RegisterDeviceBody,
UpdateSettingsBody,
MuteConversationBody,
} from './notifications';
export {
publicUserSchema,
publicUserListSchema,
userSchema,
authResultSchema,
sessionSchema,
sessionListSchema,
centrifugoTokenSchema,
errorSchema,
conversationSchema,
conversationListSchema,
conversationMemberSchema,
conversationMemberListSchema,
contactSchema,
contactListSchema,
messageSchema,
messageListSchema,
reactionSummarySchema,
presenceSchema,
presenceListSchema,
} from './entities';