remove unused

This commit is contained in:
Evgeny Poberezkin
2026-07-01 21:29:43 +01:00
parent 5825ad84de
commit 189aa0617e
16 changed files with 36 additions and 102 deletions
@@ -438,13 +438,13 @@ APIAddContact_Response = CR.Invitation | CR.ChatCmdError
# Network usage: interactive.
class APIConnectPlan(TypedDict):
userId: int # int64
connectTarget: NotRequired["T.AConnectTarget"]
connectTarget: NotRequired[str]
resolveKnown: bool
linkOwnerSig: NotRequired["T.LinkOwnerSig"]
def APIConnectPlan_cmd_string(self: APIConnectPlan) -> str:
return '/_connect plan ' + str(self['userId']) + ' ' + str(self.get('connectTarget'))
return '/_connect plan ' + str(self['userId']) + ' ' + self.get('connectTarget')
APIConnectPlan_Response = CR.ConnectionPlan | CR.ChatCmdError
@@ -467,11 +467,11 @@ APIConnect_Response = CR.SentConfirmation | CR.ContactAlreadyExists | CR.SentInv
# Network usage: interactive.
class Connect(TypedDict):
incognito: bool
connTarget_: NotRequired["T.AConnectTarget"]
connTarget_: NotRequired[str]
def Connect_cmd_string(self: Connect) -> str:
return '/connect' + ((' ' + str(self.get('connTarget_'))) if self.get('connTarget_') is not None else '')
return '/connect' + ((' ' + self.get('connTarget_')) if self.get('connTarget_') is not None else '')
Connect_Response = CR.SentConfirmation | CR.ContactAlreadyExists | CR.SentInvitation | CR.ChatCmdError
@@ -16,20 +16,6 @@ class AChatItem(TypedDict):
chatInfo: "ChatInfo"
chatItem: "ChatItem"
# Connect target: SimpleX link (`CTLink`) or SimpleX name (`CTName`). Wire form is the bare string returned by `strEncode` — `simplex:/...` for links, `#name.simplex` / `@name.simplex` for names.
class AConnectTarget_name(TypedDict):
type: Literal["name"]
: "SimplexNameInfo"
class AConnectTarget_link(TypedDict):
type: Literal["link"]
: str
AConnectTarget = AConnectTarget_name | AConnectTarget_link
AConnectTarget_Tag = Literal["name", "link"]
class AddRelayResult(TypedDict):
relay: "UserChatRelay"
relayError: NotRequired["ChatError"]