mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-28 00:28:39 +00:00
names: fix API docs lists, route signing through signSnrcIntent
The 12 new /name commands and 8 responses were in none of the docs lists, and APINameAddress/CRNameAddress outlived their constructors. Added alongside APINameRegister, which set the precedent. Also regenerates TYPES.md and the TS/Python types, stale since CENameRegistrationFailed gained nameRegRetryAfter. APINameSetLink now signs through signSnrcIntent, so "the only bridge to the wallet" is enforced rather than documented. tokenId is dropped and setTextTypeString unexported, both without callers. nameKeyOf no longer reads the bound account: the path is literal, so the binding never affected which key came back. The mock's idempotent is one transaction, and a buy with no link stores no link rather than an empty one. ownedNames stays device-wide, now with the reason on it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
2f0f8a7499
commit
52afb09711
@@ -824,6 +824,7 @@ class ChatErrorType_nameRegistrationFailed(TypedDict):
|
||||
type: Literal["nameRegistrationFailed"]
|
||||
nameRegCode: str
|
||||
nameRegMessage: NotRequired[str]
|
||||
nameRegRetryAfter: NotRequired[int] # word32
|
||||
|
||||
class ChatErrorType_notResolvedLocally(TypedDict):
|
||||
type: Literal["notResolvedLocally"]
|
||||
|
||||
Reference in New Issue
Block a user