Add new types
This commit is contained in:
parent
3cf603bfc6
commit
5b41794947
2 changed files with 40 additions and 0 deletions
6
src/types/matrix/accountData.ts
Normal file
6
src/types/matrix/accountData.ts
Normal 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
34
src/types/matrix/room.ts
Normal 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>>;
|
Loading…
Reference in a new issue