@onekeyfe/hd-transport 1.2.0-alpha.21 → 1.2.0-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4744,7 +4744,9 @@ export type ViewVerifyPage = {
4744
4744
  };
4745
4745
 
4746
4746
  // ProtocolInfoRequest
4747
- export type ProtocolInfoRequest = {};
4747
+ export type ProtocolInfoRequest = {
4748
+ eventless_wallet_session?: boolean;
4749
+ };
4748
4750
 
4749
4751
  // ProtocolInfo
4750
4752
  export type ProtocolInfo = {
@@ -5049,9 +5051,42 @@ export type ProtocolV2DeviceInfo = {
5049
5051
  status?: DeviceStatus;
5050
5052
  };
5051
5053
 
5052
- // DeviceSessionGet
5053
- export type DeviceSessionGet = {
5054
- session_id?: string;
5054
+ export enum DeviceSessionErrorCode {
5055
+ DeviceSessionError_None = 0,
5056
+ DeviceSessionError_UserCancelled = 1,
5057
+ DeviceSessionError_InvalidSession = 2,
5058
+ DeviceSessionError_AttachPinUnavailable = 3,
5059
+ DeviceSessionError_PassphraseDisabled = 4,
5060
+ DeviceSessionError_Busy = 5,
5061
+ }
5062
+
5063
+ // DeviceSessionResume
5064
+ export type DeviceSessionResume = {
5065
+ session_id: string;
5066
+ };
5067
+
5068
+ // DeviceSessionHostPassphrase
5069
+ export type DeviceSessionHostPassphrase = {
5070
+ passphrase: string;
5071
+ };
5072
+
5073
+ // DeviceSessionPassphraseOnDevice
5074
+ export type DeviceSessionPassphraseOnDevice = {};
5075
+
5076
+ // DeviceSessionAttachPinOnDevice
5077
+ export type DeviceSessionAttachPinOnDevice = {};
5078
+
5079
+ // DeviceSessionSelect
5080
+ export type DeviceSessionSelect = {
5081
+ host_passphrase?: DeviceSessionHostPassphrase;
5082
+ passphrase_on_device?: DeviceSessionPassphraseOnDevice;
5083
+ attach_pin_on_device?: DeviceSessionAttachPinOnDevice;
5084
+ };
5085
+
5086
+ // DeviceSessionOpen
5087
+ export type DeviceSessionOpen = {
5088
+ resume?: DeviceSessionResume;
5089
+ select?: DeviceSessionSelect;
5055
5090
  };
5056
5091
 
5057
5092
  // DeviceSession
@@ -5881,7 +5916,12 @@ export type MessageType = {
5881
5916
  DeviceInfoTargets: DeviceInfoTargets;
5882
5917
  DeviceInfoTypes: DeviceInfoTypes;
5883
5918
  DeviceInfoGet: DeviceInfoGet;
5884
- DeviceSessionGet: DeviceSessionGet;
5919
+ DeviceSessionResume: DeviceSessionResume;
5920
+ DeviceSessionHostPassphrase: DeviceSessionHostPassphrase;
5921
+ DeviceSessionPassphraseOnDevice: DeviceSessionPassphraseOnDevice;
5922
+ DeviceSessionAttachPinOnDevice: DeviceSessionAttachPinOnDevice;
5923
+ DeviceSessionSelect: DeviceSessionSelect;
5924
+ DeviceSessionOpen: DeviceSessionOpen;
5885
5925
  DeviceSession: DeviceSession;
5886
5926
  DeviceSessionAskPin: DeviceSessionAskPin;
5887
5927
  DeviceStatus: DeviceStatus;