mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-02 22:11:54 +00:00
fix bot API, schema
This commit is contained in:
@@ -138,6 +138,10 @@ AgentErrorType_Tag = Literal["CMD", "CONN", "NO_USER", "SMP", "NTF", "XFTP", "FI
|
||||
class AutoAccept(TypedDict):
|
||||
acceptIncognito: bool
|
||||
|
||||
BadgeStatus = Literal["active", "expired", "failed"]
|
||||
|
||||
BadgeType = Literal["supporter", "business", "legend", "cFInvestor"]
|
||||
|
||||
class BlockingInfo(TypedDict):
|
||||
reason: "BlockingReason"
|
||||
notice: NotRequired["ClientNotice"]
|
||||
@@ -2059,6 +2063,10 @@ class LinkPreview(TypedDict):
|
||||
image: str
|
||||
content: NotRequired["LinkContent"]
|
||||
|
||||
class LocalBadge(TypedDict):
|
||||
badgeStatus: "BadgeStatus"
|
||||
badge: "SupporterBadge"
|
||||
|
||||
class LocalProfile(TypedDict):
|
||||
profileId: int # int64
|
||||
displayName: str
|
||||
@@ -2068,6 +2076,7 @@ class LocalProfile(TypedDict):
|
||||
contactLink: NotRequired[str]
|
||||
preferences: NotRequired["Preferences"]
|
||||
peerType: NotRequired["ChatPeerType"]
|
||||
localBadge: NotRequired["LocalBadge"]
|
||||
localAlias: str
|
||||
|
||||
MemberCriteria = Literal["all"]
|
||||
@@ -2318,6 +2327,7 @@ class Profile(TypedDict):
|
||||
contactLink: NotRequired[str]
|
||||
preferences: NotRequired["Preferences"]
|
||||
peerType: NotRequired["ChatPeerType"]
|
||||
badge: NotRequired["SupporterBadge"]
|
||||
|
||||
class ProxyClientError_protocolError(TypedDict):
|
||||
type: Literal["protocolError"]
|
||||
@@ -3313,6 +3323,12 @@ SubscriptionStatus_Tag = Literal["active", "pending", "removed", "noSub"]
|
||||
class SupportGroupPreference(TypedDict):
|
||||
enable: "GroupFeatureEnabled"
|
||||
|
||||
class SupporterBadge(TypedDict):
|
||||
proof: str
|
||||
presHeader: str
|
||||
badgeExpiry: NotRequired[str] # ISO-8601 timestamp
|
||||
badgeType: "BadgeType"
|
||||
|
||||
SwitchPhase = Literal["started", "confirmed", "secured", "completed"]
|
||||
|
||||
class TimedMessagesGroupPreference(TypedDict):
|
||||
|
||||
Reference in New Issue
Block a user