mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-27 22:34:50 +00:00
core: update simplexmq (receiving services) (#6212)
* core: update simplexmq * update agent api * update simplexmq * core: add flag to User to use client services * update simplexmq * cli command to toggle service for a user * test, fix * query plans, core/bot api types * remove local package reference * increase server queue size in tests * show client service status in users list * update query plans * cli: fix redraw slowness (#6735) * cli: add pland to fix redraw slowness * updtae doc * cli: decouple key reading from processing via TQueue * schema and bot types --------- Co-authored-by: sh <37271604+shumvgolove@users.noreply.github.com>
This commit is contained in:
@@ -712,9 +712,6 @@ class ChatErrorType_noRcvFileUser(TypedDict):
|
||||
class ChatErrorType_userUnknown(TypedDict):
|
||||
type: Literal["userUnknown"]
|
||||
|
||||
class ChatErrorType_activeUserExists(TypedDict):
|
||||
type: Literal["activeUserExists"]
|
||||
|
||||
class ChatErrorType_userExists(TypedDict):
|
||||
type: Literal["userExists"]
|
||||
contactName: str
|
||||
@@ -987,7 +984,6 @@ ChatErrorType = (
|
||||
| ChatErrorType_noSndFileUser
|
||||
| ChatErrorType_noRcvFileUser
|
||||
| ChatErrorType_userUnknown
|
||||
| ChatErrorType_activeUserExists
|
||||
| ChatErrorType_userExists
|
||||
| ChatErrorType_chatRelayExists
|
||||
| ChatErrorType_differentActiveUser
|
||||
@@ -1059,7 +1055,7 @@ ChatErrorType = (
|
||||
| ChatErrorType_exception
|
||||
)
|
||||
|
||||
ChatErrorType_Tag = Literal["noActiveUser", "noConnectionUser", "noSndFileUser", "noRcvFileUser", "userUnknown", "activeUserExists", "userExists", "chatRelayExists", "differentActiveUser", "cantDeleteActiveUser", "cantDeleteLastUser", "cantHideLastUser", "hiddenUserAlwaysMuted", "emptyUserPassword", "userAlreadyHidden", "userNotHidden", "invalidDisplayName", "chatNotStarted", "chatNotStopped", "chatStoreChanged", "invalidConnReq", "unsupportedConnReq", "connReqMessageProhibited", "contactNotReady", "contactNotActive", "contactDisabled", "connectionDisabled", "groupUserRole", "groupMemberInitialRole", "contactIncognitoCantInvite", "groupIncognitoCantInvite", "groupContactRole", "groupDuplicateMember", "groupDuplicateMemberId", "groupNotJoined", "groupMemberNotActive", "cantBlockMemberForSelf", "groupMemberUserRemoved", "groupMemberNotFound", "groupCantResendInvitation", "groupInternal", "fileNotFound", "fileSize", "fileAlreadyReceiving", "fileCancelled", "fileCancel", "fileAlreadyExists", "fileWrite", "fileSend", "fileRcvChunk", "fileInternal", "fileImageType", "fileImageSize", "fileNotReceived", "fileNotApproved", "fallbackToSMPProhibited", "inlineFileProhibited", "invalidForward", "invalidChatItemUpdate", "invalidChatItemDelete", "hasCurrentCall", "noCurrentCall", "callContact", "directMessagesProhibited", "agentVersion", "agentNoSubResult", "commandError", "agentCommandError", "invalidFileDescription", "connectionIncognitoChangeProhibited", "connectionUserChangeProhibited", "peerChatVRangeIncompatible", "relayTestError", "internalError", "exception"]
|
||||
ChatErrorType_Tag = Literal["noActiveUser", "noConnectionUser", "noSndFileUser", "noRcvFileUser", "userUnknown", "userExists", "chatRelayExists", "differentActiveUser", "cantDeleteActiveUser", "cantDeleteLastUser", "cantHideLastUser", "hiddenUserAlwaysMuted", "emptyUserPassword", "userAlreadyHidden", "userNotHidden", "invalidDisplayName", "chatNotStarted", "chatNotStopped", "chatStoreChanged", "invalidConnReq", "unsupportedConnReq", "connReqMessageProhibited", "contactNotReady", "contactNotActive", "contactDisabled", "connectionDisabled", "groupUserRole", "groupMemberInitialRole", "contactIncognitoCantInvite", "groupIncognitoCantInvite", "groupContactRole", "groupDuplicateMember", "groupDuplicateMemberId", "groupNotJoined", "groupMemberNotActive", "cantBlockMemberForSelf", "groupMemberUserRemoved", "groupMemberNotFound", "groupCantResendInvitation", "groupInternal", "fileNotFound", "fileSize", "fileAlreadyReceiving", "fileCancelled", "fileCancel", "fileAlreadyExists", "fileWrite", "fileSend", "fileRcvChunk", "fileInternal", "fileImageType", "fileImageSize", "fileNotReceived", "fileNotApproved", "fallbackToSMPProhibited", "inlineFileProhibited", "invalidForward", "invalidChatItemUpdate", "invalidChatItemDelete", "hasCurrentCall", "noCurrentCall", "callContact", "directMessagesProhibited", "agentVersion", "agentNoSubResult", "commandError", "agentCommandError", "invalidFileDescription", "connectionIncognitoChangeProhibited", "connectionUserChangeProhibited", "peerChatVRangeIncompatible", "relayTestError", "internalError", "exception"]
|
||||
|
||||
ChatFeature = Literal["timedMessages", "fullDelete", "reactions", "voice", "files", "calls", "sessions"]
|
||||
|
||||
@@ -2226,6 +2222,7 @@ class NewUser(TypedDict):
|
||||
profile: NotRequired["Profile"]
|
||||
pastTimestamp: bool
|
||||
userChatRelay: bool
|
||||
clientService: bool
|
||||
|
||||
class NoteFolder(TypedDict):
|
||||
noteFolderId: int # int64
|
||||
@@ -3363,8 +3360,9 @@ class User(TypedDict):
|
||||
sendRcptsSmallGroups: bool
|
||||
autoAcceptMemberContacts: bool
|
||||
userMemberProfileUpdatedAt: NotRequired[str] # ISO-8601 timestamp
|
||||
uiThemes: NotRequired["UIThemeEntityOverrides"]
|
||||
userChatRelay: bool
|
||||
clientService: bool
|
||||
uiThemes: NotRequired["UIThemeEntityOverrides"]
|
||||
|
||||
class UserChatRelay(TypedDict):
|
||||
chatRelayId: int # int64
|
||||
|
||||
Reference in New Issue
Block a user