initial working state

This commit is contained in:
Hirad 2025-07-16 15:09:41 +03:30
parent 816fb34f75
commit bb9a24c1ed
15 changed files with 688 additions and 0 deletions

View file

@ -0,0 +1,30 @@
from enum import Enum
class RoomOrderBy(Enum):
"""Available room ordering options."""
NAME = "name"
CANONICAL_ALIAS = "canonical_alias"
JOINED_MEMBERS = "joined_members"
JOINED_LOCAL_MEMBERS = "joined_local_members"
VERSION = "version"
CREATOR = "creator"
ENCRYPTION = "encryption"
FEDERATABLE = "federatable"
JOIN_RULE = "join_rule"
GUEST_ACCESS = "guest_access"
HISTORY_VISIBILITY = "history_visibility"
STATE_EVENTS = "state_events"
class UserOrderBy(Enum):
"""Available user ordering options."""
USER_ID = "user_id"
DISPLAY_NAME = "display_name"
MEDIA_LENGTH = "media_length"
MEDIA_COUNT = "media_count"
class Direction(Enum):
"""Sort direction."""
FORWARD = "f"
BACKWARD = "b"