TR-common/protob: add ShowDeviceTutorial message

grdddj/debuglink_improvements
grdddj 1 year ago
parent f7524f7497
commit e1bcb4e347

@ -502,3 +502,11 @@ message UnlockPath {
message UnlockedPathRequest {
optional bytes mac = 1; // authentication code for future UnlockPath calls
}
/**
* Request: Show tutorial screens on the device
* @start
* @next Success
*/
message ShowDeviceTutorial {
}

@ -120,6 +120,7 @@ enum MessageType {
reserved 90 to 92;
MessageType_UnlockPath = 93 [(bitcoin_only) = true, (wire_in) = true];
MessageType_UnlockedPathRequest = 94 [(bitcoin_only) = true, (wire_out) = true];
MessageType_ShowDeviceTutorial = 95 [(bitcoin_only) = true, (wire_in) = true];
MessageType_SetU2FCounter = 63 [(wire_in) = true];
MessageType_GetNextU2FCounter = 80 [(wire_in) = true];

@ -46,6 +46,7 @@ GetFirmwareHash = 88
FirmwareHash = 89
UnlockPath = 93
UnlockedPathRequest = 94
ShowDeviceTutorial = 95
FirmwareErase = 6
FirmwareUpload = 7
FirmwareRequest = 8

@ -63,6 +63,7 @@ if TYPE_CHECKING:
FirmwareHash = 89
UnlockPath = 93
UnlockedPathRequest = 94
ShowDeviceTutorial = 95
SetU2FCounter = 63
GetNextU2FCounter = 80
NextU2FCounter = 81

@ -2612,6 +2612,12 @@ if TYPE_CHECKING:
def is_type_of(cls, msg: Any) -> TypeGuard["UnlockedPathRequest"]:
return isinstance(msg, cls)
class ShowDeviceTutorial(protobuf.MessageType):
@classmethod
def is_type_of(cls, msg: Any) -> TypeGuard["ShowDeviceTutorial"]:
return isinstance(msg, cls)
class DebugLinkDecision(protobuf.MessageType):
button: "DebugButton | None"
swipe: "DebugSwipeDirection | None"

@ -7,7 +7,7 @@ SKIPPED_MESSAGES := Binance Cardano DebugMonero Eos Monero Ontology Ripple SdPro
DebugLinkLayout GetNonce \
TxAckInput TxAckOutput TxAckPrev TxAckPaymentRequest \
EthereumSignTypedData EthereumTypedDataStructRequest EthereumTypedDataStructAck \
EthereumTypedDataValueRequest EthereumTypedDataValueAck
EthereumTypedDataValueRequest EthereumTypedDataValueAck ShowDeviceTutorial
ifeq ($(BITCOIN_ONLY), 1)
SKIPPED_MESSAGES += Ethereum NEM Stellar

@ -71,6 +71,7 @@ class MessageType(IntEnum):
FirmwareHash = 89
UnlockPath = 93
UnlockedPathRequest = 94
ShowDeviceTutorial = 95
SetU2FCounter = 63
GetNextU2FCounter = 80
NextU2FCounter = 81
@ -3715,6 +3716,10 @@ class UnlockedPathRequest(protobuf.MessageType):
self.mac = mac
class ShowDeviceTutorial(protobuf.MessageType):
MESSAGE_WIRE_TYPE = 95
class DebugLinkDecision(protobuf.MessageType):
MESSAGE_WIRE_TYPE = 100
FIELDS = {

Loading…
Cancel
Save