Add new types

This commit is contained in:
Ajay Bura 2022-12-27 20:13:49 +05:30
parent 3cf603bfc6
commit 5b41794947
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,6 @@
export enum AccountDataEvent {
PushRules = 'm.push_rules',
Direct = 'm.direct',
IgnoredUserList = 'm.ignored_user_list',
CinnySpaces = 'in.cinny.spaces',
}

34
src/types/matrix/room.ts Normal file
View file

@ -0,0 +1,34 @@
export enum Membership {
Invite = 'invite',
Knock = 'knock',
Join = 'join',
Leave = 'leave',
Ban = 'ban',
}
export enum StateEvent {
RoomCanonicalAlias = 'm.room.canonical_alias',
RoomCreate = 'm.room.create',
RoomJoinRules = 'm.room.join_rules',
RoomMember = 'm.room.member',
RoomThirdPartyInvite = 'm.room.third_party_invite',
RoomPowerLevels = 'm.room.power_levels',
RoomName = 'm.room.name',
RoomTopic = 'm.room.topic',
RoomAvatar = 'm.room.avatar',
RoomPinnedEvents = 'm.room.pinned_events',
RoomEncryption = 'm.room.encryption',
RoomHistoryVisibility = 'm.room.history_visibility',
RoomGuestAccess = 'm.room.guest_access',
RoomServerAcl = 'm.room.server_acl',
RoomTombstone = 'm.room.tombstone',
SpaceChild = 'm.space.child',
SpaceParent = 'm.space.parent',
}
export enum RoomType {
Space = 'm.space',
}
export type RoomToParents = Map<string, Set<string>>;