core, ui: name lookup with alerts about registering names (#8220)

This commit is contained in:
Evgeny authored and GitHub committed 2026-11-16 11:16:08 +00:00
1 parent 24e206d9cc
commit 88767bbc3a
39 files changed
+2752 -385

No files matched your search

@@ -1629,10 +1629,12 @@ class ConnectionPlan_invitationLink(TypedDict):
class ConnectionPlan_contactAddress(TypedDict):
type: Literal["contactAddress"]
contactAddressPlan: "ContactAddressPlan"
nameChange: NotRequired["NameChange"]
class ConnectionPlan_groupLink(TypedDict):
type: Literal["groupLink"]
groupLinkPlan: "GroupLinkPlan"
nameChange: NotRequired["NameChange"]
class ConnectionPlan_error(TypedDict):
type: Literal["error"]
@@ -1774,6 +1776,8 @@ class CtrlAppInfo(TypedDict):
deviceName: str
compression: bool
DomainVerification = Literal["failed", "verified", "moved"]
class DroppedMsg(TypedDict):
brokerTs: str # ISO-8601 timestamp
attempts: int # int
@@ -2125,7 +2129,7 @@ class GroupInfo(TypedDict):
rosterVersion: NotRequired[int] # int64
membersRequireAttention: int # int
viaGroupLinkUri: NotRequired[str]
groupDomainVerified: NotRequired[bool]
groupDomainVerified: NotRequired["DomainVerification"]
class GroupLink(TypedDict):
userContactLinkId: int # int64
@@ -2436,7 +2440,7 @@ class LocalProfile(TypedDict):
localBadge: NotRequired["LocalBadge"]
localAlias: str
contactDomain: NotRequired["SimplexDomainClaim"]
contactDomainVerified: NotRequired[bool]
contactDomainVerified: NotRequired["DomainVerification"]
class MarkdownBlock_paragraph(TypedDict):
type: Literal["paragraph"]
@@ -2631,6 +2635,18 @@ MsgVerified = MsgVerified_signed | MsgVerified_sigMissing
MsgVerified_Tag = Literal["signed", "sigMissing"]
class NameChange_lapsed(TypedDict):
type: Literal["lapsed"]
nameWarning: "NameWarning"
class NameChange_moved(TypedDict):
type: Literal["moved"]
knownChat: "ChatInfo"
NameChange = NameChange_lapsed | NameChange_moved
NameChange_Tag = Literal["lapsed", "moved"]
class NameErrorType_NO_RESOLVER(TypedDict):
type: Literal["NO_RESOLVER"]
@@ -2645,6 +2661,34 @@ NameErrorType = NameErrorType_NO_RESOLVER | NameErrorType_NOT_FOUND | NameErrorT
NameErrorType_Tag = Literal["NO_RESOLVER", "NOT_FOUND", "RESOLVER"]
class NamePrice(TypedDict):
amount: int # int64
years: int # int
class NameWarning_expired(TypedDict):
type: Literal["expired"]
expiredAt: str # ISO-8601 timestamp
graceUntil: NotRequired[str] # ISO-8601 timestamp
class NameWarning_available(TypedDict):
type: Literal["available"]
price: "NamePrice"
class NameWarning_reservedForCommunity(TypedDict):
type: Literal["reservedForCommunity"]
class NameWarning_notRegistered(TypedDict):
type: Literal["notRegistered"]
NameWarning = (
NameWarning_expired
| NameWarning_available
| NameWarning_reservedForCommunity
| NameWarning_notRegistered
)
NameWarning_Tag = Literal["expired", "available", "reservedForCommunity", "notRegistered"]
class NavigationInfo(TypedDict):
afterUnread: int # int
afterTotal: int # int
@@ -3309,9 +3353,17 @@ class SimplexDomainError_noValidLink(TypedDict):
class SimplexDomainError_unknownDomain(TypedDict):
type: Literal["unknownDomain"]
SimplexDomainError = SimplexDomainError_noValidLink | SimplexDomainError_unknownDomain
class SimplexDomainError_nameWarning(TypedDict):
type: Literal["nameWarning"]
nameWarning: "NameWarning"
SimplexDomainError_Tag = Literal["noValidLink", "unknownDomain"]
SimplexDomainError = (
SimplexDomainError_noValidLink
| SimplexDomainError_unknownDomain
| SimplexDomainError_nameWarning
)
SimplexDomainError_Tag = Literal["noValidLink", "unknownDomain", "nameWarning"]
class SimplexDomainProof(TypedDict):
linkOwnerId: NotRequired[str]