diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/const.py b/deltachat-rpc-client/src/deltachat_rpc_client/const.py index c17ca8637..f54e1c5f4 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/const.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/const.py @@ -61,6 +61,15 @@ class EventType(str, Enum): WEBXDC_INSTANCE_DELETED = "WebxdcInstanceDeleted" +class ChatId(IntEnum): + """Special chat ids""" + + TRASH = 3 + ARCHIVED_LINK = 6 + ALLDONE_HINT = 7 + LAST_SPECIAL = 9 + + class ChatType(IntEnum): """Chat types""" @@ -122,3 +131,107 @@ class SystemMessageType(str, Enum): EPHEMERAL_TIMER_CHANGED = "EphemeralTimerChanged" MULTI_DEVICE_SYNC = "MultiDeviceSync" WEBXDC_INFO_MESSAGE = "WebxdcInfoMessage" + + +class MessageState(IntEnum): + """State of the message.""" + + UNDEFINED = 0 + IN_FRESH = 10 + IN_NOTICED = 13 + IN_SEEN = 16 + OUT_PREPARING = 18 + OUT_DRAFT = 19 + OUT_PENDING = 20 + OUT_FAILED = 24 + OUT_DELIVERED = 26 + OUT_MDN_RCVD = 28 + + +class MessageId(IntEnum): + """Special message ids""" + + DAYMARKER = 9 + LAST_SPECIAL = 9 + + +class CertificateChecks(IntEnum): + """Certificate checks mode""" + + AUTOMATIC = 0 + STRICT = 1 + ACCEPT_INVALID_CERTIFICATES = 3 + + +class Connectivity(IntEnum): + """Connectivity states""" + + NOT_CONNECTED = 1000 + CONNECTING = 2000 + WORKING = 3000 + CONNECTED = 4000 + + +class KeyGenType(IntEnum): + """Type of the key to generate""" + + DEFAULT = 0 + RSA2048 = 1 + ED25519 = 2 + RSA4096 = 3 + + +# "Lp" means "login parameters" +class LpAuthFlag(IntEnum): + """Authorization flags""" + + OAUTH2 = 0x2 + NORMAL = 0x4 + + +class MediaQuality(IntEnum): + """Media quality setting""" + + BALANCED = 0 + WORSE = 1 + + +class ProviderStatus(IntEnum): + """Provider status according to manual testing""" + + OK = 1 + PREPARATION = 2 + BROKEN = 3 + + +class PushNotifyState(IntEnum): + """Push notifications state""" + + NOT_CONNECTED = 0 + HEARTBEAT = 1 + CONNECTED = 2 + + +class ShowEmails(IntEnum): + """Show emails mode""" + + OFF = 0 + ACCEPTED_CONTACTS = 1 + ALL = 2 + + +class SocketSecurity(IntEnum): + """Socket security""" + + AUTOMATIC = 0 + SSL = 1 + STARTTLS = 2 + PLAIN = 3 + + +class VideochatType(IntEnum): + """Video chat URL type""" + + UNKNOWN = 0 + BASICWEBRTC = 1 + JITSI = 2