simplex-chat: sync nodejs and python libs with 7.0.0-beta.3 types (#7219)

This commit is contained in:
sh
2026-07-08 12:01:17 +04:00
committed by GitHub
parent 8b537fbc3a
commit a4e3a1ea11
4 changed files with 12 additions and 10 deletions
@@ -466,7 +466,7 @@ class ChatApi:
) -> tuple[T.ConnectionPlan, T.CreatedConnLink]:
r = await self.send_chat_cmd(
CC.APIConnectPlan_cmd_string(
{"userId": user_id, "connectionLink": connection_link, "resolveKnown": False}
{"userId": user_id, "connectTarget": connection_link, "resolveMode": "unknown"}
)
)
if r["type"] == "connectionPlan":
@@ -487,7 +487,7 @@ class ChatApi:
async def api_connect_active_user(self, conn_link: str) -> ConnReqType:
r = await self.send_chat_cmd(
CC.Connect_cmd_string({"incognito": False, "connLink_": conn_link})
CC.Connect_cmd_string({"incognito": False, "connTarget_": conn_link})
)
return self._handle_connect_result(r)
@@ -641,7 +641,7 @@ class ChatApi:
raise
async def api_create_active_user(self, profile: T.Profile | None = None) -> T.User:
new_user: T.NewUser = {"pastTimestamp": False, "userChatRelay": False}
new_user: T.NewUser = {"pastTimestamp": False, "userChatRelay": False, "clientService": False}
if profile is not None:
new_user["profile"] = profile
r = await self.send_chat_cmd(CC.CreateActiveUser_cmd_string({"newUser": new_user}))