@onekeyfe/hd-transport 1.2.0-alpha.1 → 1.2.0-alpha.11

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.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/__tests__/messages.test.js +76 -0
  3. package/__tests__/protocol-v2-link-manager.test.js +326 -0
  4. package/__tests__/protocol-v2-usb-transport-base.test.js +296 -0
  5. package/__tests__/protocol-v2.test.js +249 -81
  6. package/dist/constants.d.ts +4 -2
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/index.d.ts +547 -235
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +442 -72
  11. package/dist/protocols/index.d.ts +2 -0
  12. package/dist/protocols/index.d.ts.map +1 -1
  13. package/dist/protocols/v2/constants.d.ts +1 -0
  14. package/dist/protocols/v2/constants.d.ts.map +1 -1
  15. package/dist/protocols/v2/decode.d.ts +1 -0
  16. package/dist/protocols/v2/decode.d.ts.map +1 -1
  17. package/dist/protocols/v2/link-manager.d.ts +35 -0
  18. package/dist/protocols/v2/link-manager.d.ts.map +1 -0
  19. package/dist/protocols/v2/sequence-cursor.d.ts +5 -0
  20. package/dist/protocols/v2/sequence-cursor.d.ts.map +1 -0
  21. package/dist/protocols/v2/session.d.ts +16 -4
  22. package/dist/protocols/v2/session.d.ts.map +1 -1
  23. package/dist/protocols/v2/usb-transport-base.d.ts +31 -0
  24. package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -0
  25. package/dist/serialization/protobuf/messages.d.ts.map +1 -1
  26. package/dist/types/messages.d.ts +329 -156
  27. package/dist/types/messages.d.ts.map +1 -1
  28. package/dist/types/transport.d.ts +1 -1
  29. package/dist/types/transport.d.ts.map +1 -1
  30. package/messages-protocol-v2.json +760 -1110
  31. package/package.json +2 -2
  32. package/scripts/protobuf-build.sh +60 -142
  33. package/src/constants.ts +8 -2
  34. package/src/index.ts +8 -0
  35. package/src/protocols/index.ts +4 -1
  36. package/src/protocols/v2/constants.ts +1 -0
  37. package/src/protocols/v2/decode.ts +36 -17
  38. package/src/protocols/v2/link-manager.ts +160 -0
  39. package/src/protocols/v2/sequence-cursor.ts +10 -0
  40. package/src/protocols/v2/session.ts +80 -45
  41. package/src/protocols/v2/usb-transport-base.ts +194 -0
  42. package/src/serialization/protobuf/messages.ts +6 -1
  43. package/src/types/messages.ts +401 -186
  44. package/src/types/transport.ts +1 -1
package/dist/index.d.ts CHANGED
@@ -60,6 +60,7 @@ declare const PROTO_HEAD_CRC_SIZE = 8;
60
60
  declare const CRC8_INIT = 48;
61
61
  declare const PACKET_SIZE = 4096;
62
62
  declare const PROTO_DATA_TYPE_PACKET = 0;
63
+ declare const PROTO_DATA_TYPE_ACK = 1;
63
64
 
64
65
  declare const CRC8_TABLE: Uint8Array;
65
66
  declare function crc8(data: Uint8Array, len: number): number;
@@ -86,6 +87,7 @@ interface ProtoV2Frame {
86
87
  pbPayload: Uint8Array;
87
88
  seq: number;
88
89
  }
90
+ declare function isAckFrame(data: Uint8Array): boolean;
89
91
  declare function decodeFrame(data: Uint8Array, debugOptions?: ProtocolV2FrameDebugOptions): ProtoV2Frame;
90
92
 
91
93
  declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
@@ -106,6 +108,7 @@ declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
106
108
  declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
107
109
  declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
108
110
  declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
111
+ declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
109
112
  declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
110
113
  declare const protocolV2Codec_crc8: typeof crc8;
111
114
  type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
@@ -115,6 +118,7 @@ declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
115
118
  declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
116
119
  declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
117
120
  type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
121
+ declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
118
122
  declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
119
123
  declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
120
124
  type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
@@ -127,6 +131,7 @@ declare namespace protocolV2Codec {
127
131
  protocolV2Codec_CRC8_INIT as CRC8_INIT,
128
132
  protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
129
133
  protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
134
+ protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
130
135
  protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
131
136
  protocolV2Codec_crc8 as crc8,
132
137
  protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
@@ -136,6 +141,7 @@ declare namespace protocolV2Codec {
136
141
  protocolV2Codec_encodeFrame as encodeFrame,
137
142
  protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
138
143
  protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
144
+ protocolV2Codec_isAckFrame as isAckFrame,
139
145
  protocolV2Codec_decodeFrame as decodeFrame,
140
146
  protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
141
147
  protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
@@ -167,6 +173,7 @@ declare const ProtocolV1: {
167
173
  decodeMessage: typeof decodeMessage;
168
174
  };
169
175
  declare const ProtocolV2: {
176
+ isAckFrame: typeof isAckFrame;
170
177
  encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
171
178
  decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array, options?: Pick<ProtocolV2FrameOptions, 'logger' | 'logPrefix' | 'context'>): {
172
179
  message: {
@@ -247,7 +254,7 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
247
254
  type LowlevelTransportSharedPlugin = {
248
255
  enumerate: () => Promise<LowLevelDevice[]>;
249
256
  send: (uuid: string, data: string) => Promise<void>;
250
- receive: () => Promise<string>;
257
+ receive: (uuid?: string) => Promise<string>;
251
258
  connect: (uuid: string) => Promise<void>;
252
259
  disconnect: (uuid: string) => Promise<void>;
253
260
  init: () => Promise<void>;
@@ -1137,11 +1144,15 @@ declare enum FailureType {
1137
1144
  Failure_PinMismatch = 12,
1138
1145
  Failure_WipeCodeMismatch = 13,
1139
1146
  Failure_InvalidSession = 14,
1140
- Failure_FirmwareError = 99
1147
+ Failure_FirmwareError = 99,
1148
+ Failure_InvalidMessage = 1,
1149
+ Failure_UndefinedError = 2,
1150
+ Failure_UsageError = 3
1141
1151
  }
1142
1152
  type Failure = {
1143
1153
  code?: FailureType;
1144
1154
  message?: string;
1155
+ subcode?: number;
1145
1156
  };
1146
1157
  declare enum Enum_ButtonRequestType {
1147
1158
  ButtonRequest_Other = 1,
@@ -2124,6 +2135,28 @@ type OnekeyFeatures = {
2124
2135
  onekey_se02_boot_build_id?: string;
2125
2136
  onekey_se03_boot_build_id?: string;
2126
2137
  onekey_se04_boot_build_id?: string;
2138
+ onekey_romloader_version?: string;
2139
+ onekey_bootloader_version?: string;
2140
+ onekey_romloader_hash?: string;
2141
+ onekey_bootloader_hash?: string;
2142
+ onekey_romloader_build_id?: string;
2143
+ onekey_bootloader_build_id?: string;
2144
+ onekey_coprocessor_bt_name?: string;
2145
+ onekey_coprocessor_version?: string;
2146
+ onekey_coprocessor_build_id?: string;
2147
+ onekey_coprocessor_hash?: string;
2148
+ onekey_se01_bootloader_version?: string;
2149
+ onekey_se02_bootloader_version?: string;
2150
+ onekey_se03_bootloader_version?: string;
2151
+ onekey_se04_bootloader_version?: string;
2152
+ onekey_se01_bootloader_hash?: string;
2153
+ onekey_se02_bootloader_hash?: string;
2154
+ onekey_se03_bootloader_hash?: string;
2155
+ onekey_se04_bootloader_hash?: string;
2156
+ onekey_se01_bootloader_build_id?: string;
2157
+ onekey_se02_bootloader_build_id?: string;
2158
+ onekey_se03_bootloader_build_id?: string;
2159
+ onekey_se04_bootloader_build_id?: string;
2127
2160
  };
2128
2161
  type LockDevice = {};
2129
2162
  type EndSession = {};
@@ -3580,12 +3613,12 @@ type TxAckPaymentRequest = {
3580
3613
  amount?: UintType;
3581
3614
  signature: string;
3582
3615
  };
3583
- type DebugLinkInput = {
3584
- x?: number;
3585
- y?: number;
3586
- duration_ms?: number;
3587
- x_end?: number;
3588
- y_end?: number;
3616
+ type EthereumSignTypedDataQR = {
3617
+ address_n: number[];
3618
+ json_data?: string;
3619
+ chain_id?: number;
3620
+ metamask_v4_compat?: boolean;
3621
+ request_id?: string;
3589
3622
  };
3590
3623
  type InternalMyAddressRequest = {
3591
3624
  coin_type: number;
@@ -3593,6 +3626,11 @@ type InternalMyAddressRequest = {
3593
3626
  account_index: number;
3594
3627
  derive_type: number;
3595
3628
  };
3629
+ type StartSession = {
3630
+ session_id?: string;
3631
+ _skip_passphrase?: boolean;
3632
+ derive_cardano?: boolean;
3633
+ };
3596
3634
  type SetBusy = {
3597
3635
  expiry_ms?: number;
3598
3636
  };
@@ -3658,28 +3696,180 @@ type ViewTip = {
3658
3696
  type: ViewTipType;
3659
3697
  text: string;
3660
3698
  };
3699
+ type ViewRawData = {
3700
+ initial_data: string;
3701
+ placeholder: number;
3702
+ };
3703
+ declare enum ViewSignLayout {
3704
+ LayoutDefault = 0,
3705
+ LayoutSafeTxCreate = 1
3706
+ }
3661
3707
  type ViewSignPage = {
3662
3708
  title: string;
3663
3709
  amount?: UintType;
3664
3710
  general: ViewDetail[];
3665
3711
  tip?: ViewTip;
3712
+ raw_data?: ViewRawData;
3713
+ slide_to_confirm?: boolean;
3714
+ layout?: ViewSignLayout;
3666
3715
  };
3667
3716
  type ViewVerifyPage = {
3668
3717
  title: string;
3669
3718
  address: string;
3670
3719
  path: string;
3671
3720
  };
3672
- type GetProtoVersion = {};
3673
- type ProtoVersion = {
3674
- proto_version: number;
3675
- };
3676
- declare enum DevRebootType {
3721
+ type ProtocolInfoRequest = {};
3722
+ type ProtocolInfo = {
3723
+ version: number;
3724
+ supported_messages: number[];
3725
+ protobuf_definition?: string;
3726
+ };
3727
+ declare enum DeviceErrorCode {
3728
+ DeviceError_None = 0,
3729
+ DeviceError_Busy = 1,
3730
+ DeviceError_NotInitialized = 2,
3731
+ DeviceError_ActionCancelled = 3,
3732
+ DeviceError_PinAlreadyUsed = 4,
3733
+ DeviceError_PersistFailed = 5,
3734
+ DeviceError_SeError = 6,
3735
+ DeviceError_InvalidLanguage = 7,
3736
+ DeviceError_WallpaperNotUsable = 8,
3737
+ DeviceError_DeviceLocked = 9
3738
+ }
3739
+ declare enum DeviceRebootType {
3677
3740
  Normal = 0,
3678
- Boardloader = 1,
3741
+ Romloader = 1,
3679
3742
  Bootloader = 2
3680
3743
  }
3681
- type DevReboot = {
3682
- reboot_type: DevRebootType;
3744
+ type DeviceReboot = {
3745
+ reboot_type: DeviceRebootType;
3746
+ };
3747
+ type DeviceSettings = {
3748
+ label?: string;
3749
+ bt_enable?: boolean;
3750
+ language?: string;
3751
+ wallpaper_path?: string;
3752
+ passphrase_enable?: boolean;
3753
+ brightness?: number;
3754
+ autolock_delay_ms?: number;
3755
+ autoshutdown_delay_ms?: number;
3756
+ animation_enable?: boolean;
3757
+ tap_to_wake?: boolean;
3758
+ haptic_feedback?: boolean;
3759
+ device_name_display_enabled?: boolean;
3760
+ airgap_mode?: boolean;
3761
+ fido_enabled?: boolean;
3762
+ experimental_features?: boolean;
3763
+ usb_lock_enable?: boolean;
3764
+ random_keypad?: boolean;
3765
+ };
3766
+ type DeviceSettingsGet = {};
3767
+ type DeviceSettingsSet = {
3768
+ settings: DeviceSettings;
3769
+ };
3770
+ declare enum DeviceSettingsPage {
3771
+ DeviceReset = 0,
3772
+ DevicePinChange = 1,
3773
+ DevicePassphrase = 2,
3774
+ DeviceAirgap = 3
3775
+ }
3776
+ type DeviceSettingsPageShow = {
3777
+ page: DeviceSettingsPage;
3778
+ field_name?: string;
3779
+ };
3780
+ type DeviceCertificate = {
3781
+ cert_and_pubkey: string;
3782
+ private_key?: string;
3783
+ };
3784
+ type DeviceCertificateWrite = {
3785
+ cert: DeviceCertificate;
3786
+ };
3787
+ type DeviceCertificateRead = {};
3788
+ type DeviceCertificateSignature = {
3789
+ data: string;
3790
+ };
3791
+ type DeviceCertificateSign = {
3792
+ data: string;
3793
+ };
3794
+ declare enum DeviceFirmwareTargetType {
3795
+ FW_MGMT_TARGET_INVALID = 0,
3796
+ FW_MGMT_TARGET_CRATE = 1,
3797
+ FW_MGMT_TARGET_ROMLOADER = 2,
3798
+ FW_MGMT_TARGET_BOOTLOADER = 3,
3799
+ FW_MGMT_TARGET_APPLICATION_P1 = 4,
3800
+ FW_MGMT_TARGET_APPLICATION_P2 = 5,
3801
+ FW_MGMT_TARGET_COPROCESSOR = 6,
3802
+ FW_MGMT_TARGET_SE01 = 7,
3803
+ FW_MGMT_TARGET_SE02 = 8,
3804
+ FW_MGMT_TARGET_SE03 = 9,
3805
+ FW_MGMT_TARGET_SE04 = 10
3806
+ }
3807
+ declare enum DeviceFirmwareUpdateTaskStatus {
3808
+ FW_MGMT_UPDATER_TASK_STATUS_PENDING = 0,
3809
+ FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS = 1,
3810
+ FW_MGMT_UPDATER_TASK_STATUS_FINISHED = 2,
3811
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND = 3,
3812
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ = 4,
3813
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE = 5,
3814
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY = 6,
3815
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL = 7,
3816
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT = 8,
3817
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
3818
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10
3819
+ }
3820
+ type DeviceFirmwareTarget = {
3821
+ target_id: DeviceFirmwareTargetType;
3822
+ path: string;
3823
+ };
3824
+ type DeviceFirmwareUpdateRequest = {
3825
+ targets: DeviceFirmwareTarget[];
3826
+ };
3827
+ type DeviceFirmwareUpdateRecord = {
3828
+ target_id: DeviceFirmwareTargetType;
3829
+ status?: DeviceFirmwareUpdateTaskStatus;
3830
+ payload_version?: number;
3831
+ path?: string;
3832
+ };
3833
+ type DeviceFirmwareUpdateRecordFields = {
3834
+ status?: boolean;
3835
+ payload_version?: boolean;
3836
+ path?: boolean;
3837
+ };
3838
+ type DeviceFirmwareUpdateStatusGet = {
3839
+ fields?: DeviceFirmwareUpdateRecordFields;
3840
+ };
3841
+ type DeviceFirmwareUpdateStatus = {
3842
+ records: DeviceFirmwareUpdateRecord[];
3843
+ };
3844
+ declare enum DeviceFactoryAck {
3845
+ FACTORY_ACK_SUCCESS = 0,
3846
+ FACTORY_ACK_FAIL = 1
3847
+ }
3848
+ type DeviceFactoryInfoManufactureTime = {
3849
+ year: number;
3850
+ month: number;
3851
+ day: number;
3852
+ hour: number;
3853
+ minute: number;
3854
+ second: number;
3855
+ };
3856
+ type DeviceFactoryInfo = {
3857
+ version?: number;
3858
+ serial_number?: string;
3859
+ burn_in_completed?: boolean;
3860
+ factory_test_completed?: boolean;
3861
+ manufacture_time?: DeviceFactoryInfoManufactureTime;
3862
+ };
3863
+ type DeviceFactoryInfoSet = {
3864
+ info: DeviceFactoryInfo;
3865
+ };
3866
+ type DeviceFactoryInfoGet = {};
3867
+ type DeviceFactoryPermanentLock = {
3868
+ check_a: string;
3869
+ check_b: string;
3870
+ };
3871
+ type DeviceFactoryTest = {
3872
+ burn_in_test: boolean;
3683
3873
  };
3684
3874
  declare enum DeviceType {
3685
3875
  CLASSIC1 = 0,
@@ -3687,130 +3877,124 @@ declare enum DeviceType {
3687
3877
  MINI = 2,
3688
3878
  TOUCH = 3,
3689
3879
  PRO = 5,
3690
- CLASSIC1S_PURE = 6
3880
+ CLASSIC1S_PURE = 6,
3881
+ PRO2 = 7,
3882
+ NEO = 8
3691
3883
  }
3692
- declare enum DevSeType {
3884
+ declare enum DeviceSeType {
3693
3885
  THD89 = 0,
3694
3886
  SE608A = 1
3695
3887
  }
3696
- declare enum DevSEState {
3888
+ declare enum DeviceSEState {
3697
3889
  BOOT = 0,
3698
3890
  APP_FACTORY = 51,
3699
3891
  APP = 85
3700
3892
  }
3701
- type DevFirmwareImageInfo = {
3893
+ type DeviceFirmwareImageInfo = {
3702
3894
  version?: string;
3703
3895
  build_id?: string;
3704
3896
  hash?: string;
3705
3897
  };
3706
- type DevHardwareInfo = {
3707
- device_type?: DeviceType;
3898
+ type DeviceHardwareInfo = {
3899
+ Device_type?: DeviceType;
3708
3900
  serial_no?: string;
3709
- device_id?: string;
3710
3901
  hardware_version?: string;
3711
3902
  hardware_version_raw_adc?: number;
3712
3903
  };
3713
- type DevMainMcuInfo = {
3714
- board?: DevFirmwareImageInfo;
3715
- boot?: DevFirmwareImageInfo;
3716
- app?: DevFirmwareImageInfo;
3717
- };
3718
- type DevBluetoothInfo = {
3719
- boot?: DevFirmwareImageInfo;
3720
- app?: DevFirmwareImageInfo;
3721
- adv_name?: string;
3722
- mac?: string;
3723
- };
3724
- type DevSEInfo = {
3725
- boot?: DevFirmwareImageInfo;
3726
- app?: DevFirmwareImageInfo;
3727
- type?: DevSeType;
3728
- state?: DevSEState;
3729
- };
3730
- type DevInfoTargets = {
3904
+ type DeviceMainMcuInfo = {
3905
+ romloader?: DeviceFirmwareImageInfo;
3906
+ bootloader?: DeviceFirmwareImageInfo;
3907
+ application?: DeviceFirmwareImageInfo;
3908
+ application_data?: DeviceFirmwareImageInfo;
3909
+ };
3910
+ type DeviceCoprocessorInfo = {
3911
+ bootloader?: DeviceFirmwareImageInfo;
3912
+ application?: DeviceFirmwareImageInfo;
3913
+ bt_adv_name?: string;
3914
+ bt_mac?: string;
3915
+ };
3916
+ type DeviceSEInfo = {
3917
+ bootloader?: DeviceFirmwareImageInfo;
3918
+ application?: DeviceFirmwareImageInfo;
3919
+ type?: DeviceSeType;
3920
+ state?: DeviceSEState;
3921
+ };
3922
+ type DeviceInfoTargets = {
3731
3923
  hw?: boolean;
3732
3924
  fw?: boolean;
3733
- bt?: boolean;
3925
+ coprocessor?: boolean;
3734
3926
  se1?: boolean;
3735
3927
  se2?: boolean;
3736
3928
  se3?: boolean;
3737
3929
  se4?: boolean;
3738
3930
  status?: boolean;
3739
3931
  };
3740
- type DevInfoTypes = {
3932
+ type DeviceInfoTypes = {
3741
3933
  version?: boolean;
3742
3934
  build_id?: boolean;
3743
3935
  hash?: boolean;
3744
3936
  specific?: boolean;
3745
3937
  };
3746
- type DevStatus = {
3747
- language?: string;
3748
- bt_enable?: boolean;
3749
- init_states?: boolean;
3750
- backup_required?: boolean;
3751
- passphrase_protection?: boolean;
3752
- label?: string;
3753
- };
3754
- type DevGetDeviceInfo = {
3755
- targets?: DevInfoTargets;
3756
- types?: DevInfoTypes;
3938
+ type DeviceInfoGet = {
3939
+ targets?: DeviceInfoTargets;
3940
+ types?: DeviceInfoTypes;
3757
3941
  };
3758
3942
  type ProtocolV2DeviceInfo = {
3759
3943
  protocol_version: number;
3760
- hw?: DevHardwareInfo;
3761
- fw?: DevMainMcuInfo;
3762
- bt?: DevBluetoothInfo;
3763
- se1?: DevSEInfo;
3764
- se2?: DevSEInfo;
3765
- se3?: DevSEInfo;
3766
- se4?: DevSEInfo;
3767
- status?: DevStatus;
3768
- };
3769
- declare enum DevFirmwareTargetType {
3770
- TARGET_MAIN_APP = 0,
3771
- TARGET_MAIN_BOOT = 1,
3772
- TARGET_BT = 2,
3773
- TARGET_SE1 = 3,
3774
- TARGET_SE2 = 4,
3775
- TARGET_SE3 = 5,
3776
- TARGET_SE4 = 6,
3777
- TARGET_RESOURCE = 10
3778
- }
3779
- type DevFirmwareTarget = {
3780
- target_id: DevFirmwareTargetType;
3781
- path: string;
3782
- };
3783
- type DevFirmwareUpdate = {
3784
- targets: DevFirmwareTarget[];
3785
- };
3786
- type DevFirmwareInstallProgress = {
3787
- target_id: DevFirmwareTargetType;
3788
- progress: number;
3789
- stage?: string;
3790
- };
3791
- type DevFirmwareUpdateStatusEntry = {
3792
- target_id: DevFirmwareTargetType;
3793
- status: number;
3944
+ hw?: DeviceHardwareInfo;
3945
+ fw?: DeviceMainMcuInfo;
3946
+ coprocessor?: DeviceCoprocessorInfo;
3947
+ se1?: DeviceSEInfo;
3948
+ se2?: DeviceSEInfo;
3949
+ se3?: DeviceSEInfo;
3950
+ se4?: DeviceSEInfo;
3951
+ status?: DeviceStatus;
3952
+ };
3953
+ type DeviceSessionGet = {
3954
+ session_id?: string;
3794
3955
  };
3795
- type DevGetFirmwareUpdateStatus = {};
3796
- type DevFirmwareUpdateStatus = {
3797
- targets: DevFirmwareUpdateStatusEntry[];
3956
+ type DeviceSession = {
3957
+ session_id?: string;
3958
+ btc_test_address?: string;
3798
3959
  };
3799
- type FactoryDeviceInfoSettings = {
3800
- serial_no?: string;
3801
- cpu_info?: string;
3802
- pre_firmware?: string;
3960
+ type DeviceSessionAskPin = {};
3961
+ type DeviceSessionPinResult = {
3962
+ unlocked?: boolean;
3963
+ unlocked_attach_pin?: boolean;
3964
+ passphrase_protection?: boolean;
3803
3965
  };
3804
- type FactoryGetDeviceInfo = {};
3805
- type FactoryDeviceInfo = {
3806
- serial_no?: string;
3807
- spi_flash_info?: string;
3808
- se_info?: string;
3809
- nft_voucher?: string;
3810
- cpu_info?: string;
3811
- pre_firmware?: string;
3966
+ type DeviceStatus = {
3967
+ device_id?: string;
3968
+ unlocked?: boolean;
3969
+ init_states?: boolean;
3970
+ backup_required?: boolean;
3971
+ passphrase_enabled?: boolean;
3972
+ attach_to_pin_enabled?: boolean;
3973
+ unlocked_by_attach_to_pin?: boolean;
3974
+ };
3975
+ type DeviceStatusGet = {};
3976
+ declare enum DevOnboardingStage {
3977
+ DEV_ONBOARDING_STAGE_UNKNOWN = 0,
3978
+ DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
3979
+ DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
3980
+ DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
3981
+ DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
3982
+ DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
3983
+ DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
3984
+ DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
3985
+ DEV_ONBOARDING_STAGE_WALLET_READY = 8,
3986
+ DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
3987
+ DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
3988
+ DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
3989
+ DEV_ONBOARDING_STAGE_DONE = 12
3990
+ }
3991
+ type DevGetOnboardingStatus = {};
3992
+ type DevOnboardingStatus = {
3993
+ stage: DevOnboardingStage;
3994
+ status_code?: number;
3995
+ detail_code?: number;
3812
3996
  };
3813
- type FilesystemFixPermission = {};
3997
+ type FilesystemPermissionFix = {};
3814
3998
  type FilesystemPathInfo = {
3815
3999
  exist: boolean;
3816
4000
  size: number;
@@ -3866,32 +4050,11 @@ type FilesystemDirMake = {
3866
4050
  type FilesystemDirRemove = {
3867
4051
  path: string;
3868
4052
  };
3869
- type FilesystemFormat = {};
3870
- declare enum OnboardingStep {
3871
- ONBOARDING_STEP_UNKNOWN = 0,
3872
- ONBOARDING_STEP_DEVICE_VERIFICATION = 1,
3873
- ONBOARDING_STEP_PERSONALIZATION = 2,
3874
- ONBOARDING_STEP_SETUP = 3,
3875
- ONBOARDING_STEP_FIRMWARE = 4
3876
- }
3877
- type GetOnboardingStatus = {};
3878
- type NewDevice = {
3879
- seedcard_backup?: boolean;
3880
- };
3881
- type Restore = {
3882
- mnemonic?: boolean;
3883
- seedcard?: boolean;
3884
- };
3885
- type Setup = {
3886
- new_device?: NewDevice;
3887
- restore?: Restore;
3888
- };
3889
- type OnboardingStatus = {
3890
- step: OnboardingStep;
3891
- setup?: Setup;
3892
- detail_code?: number;
3893
- detail_str?: string;
4053
+ type FilesystemFormat = {
4054
+ data: boolean;
4055
+ user: boolean;
3894
4056
  };
4057
+ type PortfolioUpdate = {};
3895
4058
  type MessageType = {
3896
4059
  AlephiumGetAddress: AlephiumGetAddress;
3897
4060
  AlephiumAddress: AlephiumAddress;
@@ -4455,8 +4618,9 @@ type MessageType = {
4455
4618
  CoinPurchaseMemo: CoinPurchaseMemo;
4456
4619
  PaymentRequestMemo: PaymentRequestMemo;
4457
4620
  TxAckPaymentRequest: TxAckPaymentRequest;
4458
- DebugLinkInput: DebugLinkInput;
4621
+ EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4459
4622
  InternalMyAddressRequest: InternalMyAddressRequest;
4623
+ StartSession: StartSession;
4460
4624
  SetBusy: SetBusy;
4461
4625
  GetFirmwareHash: GetFirmwareHash;
4462
4626
  FirmwareHash: FirmwareHash;
@@ -4471,30 +4635,50 @@ type MessageType = {
4471
4635
  ViewAmount: ViewAmount;
4472
4636
  ViewDetail: ViewDetail;
4473
4637
  ViewTip: ViewTip;
4638
+ ViewRawData: ViewRawData;
4474
4639
  ViewSignPage: ViewSignPage;
4475
4640
  ViewVerifyPage: ViewVerifyPage;
4476
- GetProtoVersion: GetProtoVersion;
4477
- ProtoVersion: ProtoVersion;
4478
- DevReboot: DevReboot;
4479
- DevFirmwareImageInfo: DevFirmwareImageInfo;
4480
- DevHardwareInfo: DevHardwareInfo;
4481
- DevMainMcuInfo: DevMainMcuInfo;
4482
- DevBluetoothInfo: DevBluetoothInfo;
4483
- DevSEInfo: DevSEInfo;
4484
- DevInfoTargets: DevInfoTargets;
4485
- DevInfoTypes: DevInfoTypes;
4486
- DevStatus: DevStatus;
4487
- DevGetDeviceInfo: DevGetDeviceInfo;
4488
- DevFirmwareTarget: DevFirmwareTarget;
4489
- DevFirmwareUpdate: DevFirmwareUpdate;
4490
- DevFirmwareInstallProgress: DevFirmwareInstallProgress;
4491
- DevFirmwareUpdateStatusEntry: DevFirmwareUpdateStatusEntry;
4492
- DevGetFirmwareUpdateStatus: DevGetFirmwareUpdateStatus;
4493
- DevFirmwareUpdateStatus: DevFirmwareUpdateStatus;
4494
- FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
4495
- FactoryGetDeviceInfo: FactoryGetDeviceInfo;
4496
- FactoryDeviceInfo: FactoryDeviceInfo;
4497
- FilesystemFixPermission: FilesystemFixPermission;
4641
+ ProtocolInfoRequest: ProtocolInfoRequest;
4642
+ ProtocolInfo: ProtocolInfo;
4643
+ DeviceReboot: DeviceReboot;
4644
+ DeviceSettings: DeviceSettings;
4645
+ DeviceSettingsGet: DeviceSettingsGet;
4646
+ DeviceSettingsSet: DeviceSettingsSet;
4647
+ DeviceSettingsPageShow: DeviceSettingsPageShow;
4648
+ DeviceCertificate: DeviceCertificate;
4649
+ DeviceCertificateWrite: DeviceCertificateWrite;
4650
+ DeviceCertificateRead: DeviceCertificateRead;
4651
+ DeviceCertificateSignature: DeviceCertificateSignature;
4652
+ DeviceCertificateSign: DeviceCertificateSign;
4653
+ DeviceFirmwareTarget: DeviceFirmwareTarget;
4654
+ DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4655
+ DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4656
+ DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4657
+ DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4658
+ DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4659
+ DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4660
+ DeviceFactoryInfo: DeviceFactoryInfo;
4661
+ DeviceFactoryInfoSet: DeviceFactoryInfoSet;
4662
+ DeviceFactoryInfoGet: DeviceFactoryInfoGet;
4663
+ DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
4664
+ DeviceFactoryTest: DeviceFactoryTest;
4665
+ DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
4666
+ DeviceHardwareInfo: DeviceHardwareInfo;
4667
+ DeviceMainMcuInfo: DeviceMainMcuInfo;
4668
+ DeviceCoprocessorInfo: DeviceCoprocessorInfo;
4669
+ DeviceSEInfo: DeviceSEInfo;
4670
+ DeviceInfoTargets: DeviceInfoTargets;
4671
+ DeviceInfoTypes: DeviceInfoTypes;
4672
+ DeviceInfoGet: DeviceInfoGet;
4673
+ DeviceSessionGet: DeviceSessionGet;
4674
+ DeviceSession: DeviceSession;
4675
+ DeviceSessionAskPin: DeviceSessionAskPin;
4676
+ DeviceSessionPinResult: DeviceSessionPinResult;
4677
+ DeviceStatus: DeviceStatus;
4678
+ DeviceStatusGet: DeviceStatusGet;
4679
+ DevGetOnboardingStatus: DevGetOnboardingStatus;
4680
+ DevOnboardingStatus: DevOnboardingStatus;
4681
+ FilesystemPermissionFix: FilesystemPermissionFix;
4498
4682
  FilesystemPathInfo: FilesystemPathInfo;
4499
4683
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
4500
4684
  FilesystemFile: FilesystemFile;
@@ -4506,11 +4690,7 @@ type MessageType = {
4506
4690
  FilesystemDirMake: FilesystemDirMake;
4507
4691
  FilesystemDirRemove: FilesystemDirRemove;
4508
4692
  FilesystemFormat: FilesystemFormat;
4509
- GetOnboardingStatus: GetOnboardingStatus;
4510
- NewDevice: NewDevice;
4511
- Restore: Restore;
4512
- Setup: Setup;
4513
- OnboardingStatus: OnboardingStatus;
4693
+ PortfolioUpdate: PortfolioUpdate;
4514
4694
  };
4515
4695
  type MessageKey = keyof MessageType;
4516
4696
  type MessageResponse<T extends MessageKey> = {
@@ -5222,8 +5402,9 @@ type messages_RefundMemo = RefundMemo;
5222
5402
  type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5223
5403
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5224
5404
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5225
- type messages_DebugLinkInput = DebugLinkInput;
5405
+ type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5226
5406
  type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5407
+ type messages_StartSession = StartSession;
5227
5408
  type messages_SetBusy = SetBusy;
5228
5409
  type messages_GetFirmwareHash = GetFirmwareHash;
5229
5410
  type messages_FirmwareHash = FirmwareHash;
@@ -5244,41 +5425,73 @@ type messages_ViewDetail = ViewDetail;
5244
5425
  type messages_ViewTipType = ViewTipType;
5245
5426
  declare const messages_ViewTipType: typeof ViewTipType;
5246
5427
  type messages_ViewTip = ViewTip;
5428
+ type messages_ViewRawData = ViewRawData;
5429
+ type messages_ViewSignLayout = ViewSignLayout;
5430
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5247
5431
  type messages_ViewSignPage = ViewSignPage;
5248
5432
  type messages_ViewVerifyPage = ViewVerifyPage;
5249
- type messages_GetProtoVersion = GetProtoVersion;
5250
- type messages_ProtoVersion = ProtoVersion;
5251
- type messages_DevRebootType = DevRebootType;
5252
- declare const messages_DevRebootType: typeof DevRebootType;
5253
- type messages_DevReboot = DevReboot;
5433
+ type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5434
+ type messages_ProtocolInfo = ProtocolInfo;
5435
+ type messages_DeviceErrorCode = DeviceErrorCode;
5436
+ declare const messages_DeviceErrorCode: typeof DeviceErrorCode;
5437
+ type messages_DeviceRebootType = DeviceRebootType;
5438
+ declare const messages_DeviceRebootType: typeof DeviceRebootType;
5439
+ type messages_DeviceReboot = DeviceReboot;
5440
+ type messages_DeviceSettings = DeviceSettings;
5441
+ type messages_DeviceSettingsGet = DeviceSettingsGet;
5442
+ type messages_DeviceSettingsSet = DeviceSettingsSet;
5443
+ type messages_DeviceSettingsPage = DeviceSettingsPage;
5444
+ declare const messages_DeviceSettingsPage: typeof DeviceSettingsPage;
5445
+ type messages_DeviceSettingsPageShow = DeviceSettingsPageShow;
5446
+ type messages_DeviceCertificate = DeviceCertificate;
5447
+ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
5448
+ type messages_DeviceCertificateRead = DeviceCertificateRead;
5449
+ type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5450
+ type messages_DeviceCertificateSign = DeviceCertificateSign;
5451
+ type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5452
+ declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5453
+ type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5454
+ declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5455
+ type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5456
+ type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5457
+ type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5458
+ type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5459
+ type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
5460
+ type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
5461
+ type messages_DeviceFactoryAck = DeviceFactoryAck;
5462
+ declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5463
+ type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5464
+ type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5465
+ type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5466
+ type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5467
+ type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5468
+ type messages_DeviceFactoryTest = DeviceFactoryTest;
5254
5469
  type messages_DeviceType = DeviceType;
5255
5470
  declare const messages_DeviceType: typeof DeviceType;
5256
- type messages_DevSeType = DevSeType;
5257
- declare const messages_DevSeType: typeof DevSeType;
5258
- type messages_DevSEState = DevSEState;
5259
- declare const messages_DevSEState: typeof DevSEState;
5260
- type messages_DevFirmwareImageInfo = DevFirmwareImageInfo;
5261
- type messages_DevHardwareInfo = DevHardwareInfo;
5262
- type messages_DevMainMcuInfo = DevMainMcuInfo;
5263
- type messages_DevBluetoothInfo = DevBluetoothInfo;
5264
- type messages_DevSEInfo = DevSEInfo;
5265
- type messages_DevInfoTargets = DevInfoTargets;
5266
- type messages_DevInfoTypes = DevInfoTypes;
5267
- type messages_DevStatus = DevStatus;
5268
- type messages_DevGetDeviceInfo = DevGetDeviceInfo;
5471
+ type messages_DeviceSeType = DeviceSeType;
5472
+ declare const messages_DeviceSeType: typeof DeviceSeType;
5473
+ type messages_DeviceSEState = DeviceSEState;
5474
+ declare const messages_DeviceSEState: typeof DeviceSEState;
5475
+ type messages_DeviceFirmwareImageInfo = DeviceFirmwareImageInfo;
5476
+ type messages_DeviceHardwareInfo = DeviceHardwareInfo;
5477
+ type messages_DeviceMainMcuInfo = DeviceMainMcuInfo;
5478
+ type messages_DeviceCoprocessorInfo = DeviceCoprocessorInfo;
5479
+ type messages_DeviceSEInfo = DeviceSEInfo;
5480
+ type messages_DeviceInfoTargets = DeviceInfoTargets;
5481
+ type messages_DeviceInfoTypes = DeviceInfoTypes;
5482
+ type messages_DeviceInfoGet = DeviceInfoGet;
5269
5483
  type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5270
- type messages_DevFirmwareTargetType = DevFirmwareTargetType;
5271
- declare const messages_DevFirmwareTargetType: typeof DevFirmwareTargetType;
5272
- type messages_DevFirmwareTarget = DevFirmwareTarget;
5273
- type messages_DevFirmwareUpdate = DevFirmwareUpdate;
5274
- type messages_DevFirmwareInstallProgress = DevFirmwareInstallProgress;
5275
- type messages_DevFirmwareUpdateStatusEntry = DevFirmwareUpdateStatusEntry;
5276
- type messages_DevGetFirmwareUpdateStatus = DevGetFirmwareUpdateStatus;
5277
- type messages_DevFirmwareUpdateStatus = DevFirmwareUpdateStatus;
5278
- type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
5279
- type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
5280
- type messages_FactoryDeviceInfo = FactoryDeviceInfo;
5281
- type messages_FilesystemFixPermission = FilesystemFixPermission;
5484
+ type messages_DeviceSessionGet = DeviceSessionGet;
5485
+ type messages_DeviceSession = DeviceSession;
5486
+ type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5487
+ type messages_DeviceSessionPinResult = DeviceSessionPinResult;
5488
+ type messages_DeviceStatus = DeviceStatus;
5489
+ type messages_DeviceStatusGet = DeviceStatusGet;
5490
+ type messages_DevOnboardingStage = DevOnboardingStage;
5491
+ declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
5492
+ type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5493
+ type messages_DevOnboardingStatus = DevOnboardingStatus;
5494
+ type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5282
5495
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5283
5496
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
5284
5497
  type messages_FilesystemFile = FilesystemFile;
@@ -5290,13 +5503,7 @@ type messages_FilesystemDirList = FilesystemDirList;
5290
5503
  type messages_FilesystemDirMake = FilesystemDirMake;
5291
5504
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5292
5505
  type messages_FilesystemFormat = FilesystemFormat;
5293
- type messages_OnboardingStep = OnboardingStep;
5294
- declare const messages_OnboardingStep: typeof OnboardingStep;
5295
- type messages_GetOnboardingStatus = GetOnboardingStatus;
5296
- type messages_NewDevice = NewDevice;
5297
- type messages_Restore = Restore;
5298
- type messages_Setup = Setup;
5299
- type messages_OnboardingStatus = OnboardingStatus;
5506
+ type messages_PortfolioUpdate = PortfolioUpdate;
5300
5507
  type messages_MessageType = MessageType;
5301
5508
  type messages_MessageKey = MessageKey;
5302
5509
  type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
@@ -5941,8 +6148,9 @@ declare namespace messages {
5941
6148
  messages_CoinPurchaseMemo as CoinPurchaseMemo,
5942
6149
  messages_PaymentRequestMemo as PaymentRequestMemo,
5943
6150
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
5944
- messages_DebugLinkInput as DebugLinkInput,
6151
+ messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
5945
6152
  messages_InternalMyAddressRequest as InternalMyAddressRequest,
6153
+ messages_StartSession as StartSession,
5946
6154
  messages_SetBusy as SetBusy,
5947
6155
  messages_GetFirmwareHash as GetFirmwareHash,
5948
6156
  messages_FirmwareHash as FirmwareHash,
@@ -5960,36 +6168,62 @@ declare namespace messages {
5960
6168
  messages_ViewDetail as ViewDetail,
5961
6169
  messages_ViewTipType as ViewTipType,
5962
6170
  messages_ViewTip as ViewTip,
6171
+ messages_ViewRawData as ViewRawData,
6172
+ messages_ViewSignLayout as ViewSignLayout,
5963
6173
  messages_ViewSignPage as ViewSignPage,
5964
6174
  messages_ViewVerifyPage as ViewVerifyPage,
5965
- messages_GetProtoVersion as GetProtoVersion,
5966
- messages_ProtoVersion as ProtoVersion,
5967
- messages_DevRebootType as DevRebootType,
5968
- messages_DevReboot as DevReboot,
6175
+ messages_ProtocolInfoRequest as ProtocolInfoRequest,
6176
+ messages_ProtocolInfo as ProtocolInfo,
6177
+ messages_DeviceErrorCode as DeviceErrorCode,
6178
+ messages_DeviceRebootType as DeviceRebootType,
6179
+ messages_DeviceReboot as DeviceReboot,
6180
+ messages_DeviceSettings as DeviceSettings,
6181
+ messages_DeviceSettingsGet as DeviceSettingsGet,
6182
+ messages_DeviceSettingsSet as DeviceSettingsSet,
6183
+ messages_DeviceSettingsPage as DeviceSettingsPage,
6184
+ messages_DeviceSettingsPageShow as DeviceSettingsPageShow,
6185
+ messages_DeviceCertificate as DeviceCertificate,
6186
+ messages_DeviceCertificateWrite as DeviceCertificateWrite,
6187
+ messages_DeviceCertificateRead as DeviceCertificateRead,
6188
+ messages_DeviceCertificateSignature as DeviceCertificateSignature,
6189
+ messages_DeviceCertificateSign as DeviceCertificateSign,
6190
+ messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6191
+ messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6192
+ messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6193
+ messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6194
+ messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6195
+ messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6196
+ messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
6197
+ messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
6198
+ messages_DeviceFactoryAck as DeviceFactoryAck,
6199
+ messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6200
+ messages_DeviceFactoryInfo as DeviceFactoryInfo,
6201
+ messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6202
+ messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6203
+ messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6204
+ messages_DeviceFactoryTest as DeviceFactoryTest,
5969
6205
  messages_DeviceType as DeviceType,
5970
- messages_DevSeType as DevSeType,
5971
- messages_DevSEState as DevSEState,
5972
- messages_DevFirmwareImageInfo as DevFirmwareImageInfo,
5973
- messages_DevHardwareInfo as DevHardwareInfo,
5974
- messages_DevMainMcuInfo as DevMainMcuInfo,
5975
- messages_DevBluetoothInfo as DevBluetoothInfo,
5976
- messages_DevSEInfo as DevSEInfo,
5977
- messages_DevInfoTargets as DevInfoTargets,
5978
- messages_DevInfoTypes as DevInfoTypes,
5979
- messages_DevStatus as DevStatus,
5980
- messages_DevGetDeviceInfo as DevGetDeviceInfo,
6206
+ messages_DeviceSeType as DeviceSeType,
6207
+ messages_DeviceSEState as DeviceSEState,
6208
+ messages_DeviceFirmwareImageInfo as DeviceFirmwareImageInfo,
6209
+ messages_DeviceHardwareInfo as DeviceHardwareInfo,
6210
+ messages_DeviceMainMcuInfo as DeviceMainMcuInfo,
6211
+ messages_DeviceCoprocessorInfo as DeviceCoprocessorInfo,
6212
+ messages_DeviceSEInfo as DeviceSEInfo,
6213
+ messages_DeviceInfoTargets as DeviceInfoTargets,
6214
+ messages_DeviceInfoTypes as DeviceInfoTypes,
6215
+ messages_DeviceInfoGet as DeviceInfoGet,
5981
6216
  messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
5982
- messages_DevFirmwareTargetType as DevFirmwareTargetType,
5983
- messages_DevFirmwareTarget as DevFirmwareTarget,
5984
- messages_DevFirmwareUpdate as DevFirmwareUpdate,
5985
- messages_DevFirmwareInstallProgress as DevFirmwareInstallProgress,
5986
- messages_DevFirmwareUpdateStatusEntry as DevFirmwareUpdateStatusEntry,
5987
- messages_DevGetFirmwareUpdateStatus as DevGetFirmwareUpdateStatus,
5988
- messages_DevFirmwareUpdateStatus as DevFirmwareUpdateStatus,
5989
- messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
5990
- messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
5991
- messages_FactoryDeviceInfo as FactoryDeviceInfo,
5992
- messages_FilesystemFixPermission as FilesystemFixPermission,
6217
+ messages_DeviceSessionGet as DeviceSessionGet,
6218
+ messages_DeviceSession as DeviceSession,
6219
+ messages_DeviceSessionAskPin as DeviceSessionAskPin,
6220
+ messages_DeviceSessionPinResult as DeviceSessionPinResult,
6221
+ messages_DeviceStatus as DeviceStatus,
6222
+ messages_DeviceStatusGet as DeviceStatusGet,
6223
+ messages_DevOnboardingStage as DevOnboardingStage,
6224
+ messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6225
+ messages_DevOnboardingStatus as DevOnboardingStatus,
6226
+ messages_FilesystemPermissionFix as FilesystemPermissionFix,
5993
6227
  messages_FilesystemPathInfo as FilesystemPathInfo,
5994
6228
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
5995
6229
  messages_FilesystemFile as FilesystemFile,
@@ -6001,12 +6235,7 @@ declare namespace messages {
6001
6235
  messages_FilesystemDirMake as FilesystemDirMake,
6002
6236
  messages_FilesystemDirRemove as FilesystemDirRemove,
6003
6237
  messages_FilesystemFormat as FilesystemFormat,
6004
- messages_OnboardingStep as OnboardingStep,
6005
- messages_GetOnboardingStatus as GetOnboardingStatus,
6006
- messages_NewDevice as NewDevice,
6007
- messages_Restore as Restore,
6008
- messages_Setup as Setup,
6009
- messages_OnboardingStatus as OnboardingStatus,
6238
+ messages_PortfolioUpdate as PortfolioUpdate,
6010
6239
  messages_MessageType as MessageType,
6011
6240
  messages_MessageKey as MessageKey,
6012
6241
  messages_MessageResponse as MessageResponse,
@@ -6015,10 +6244,21 @@ declare namespace messages {
6015
6244
  };
6016
6245
  }
6017
6246
 
6247
+ declare class ProtocolV2SequenceCursor {
6248
+ private current;
6249
+ next(): number;
6250
+ }
6251
+
6018
6252
  type ProtocolV2Schemas = {
6019
6253
  protocolV1: Root;
6020
6254
  protocolV2: Root;
6021
6255
  };
6256
+ type ProtocolV2CallContext = {
6257
+ messageName: string;
6258
+ timeoutMs?: number;
6259
+ highVolume: boolean;
6260
+ generation: number;
6261
+ };
6022
6262
  type ProtocolLogger = {
6023
6263
  debug?: (...args: any[]) => void;
6024
6264
  error?: (...args: any[]) => void;
@@ -6027,11 +6267,15 @@ type ProtocolV2SessionOptions = {
6027
6267
  schemas: ProtocolV2Schemas;
6028
6268
  router: number;
6029
6269
  packetSrc?: number;
6030
- writeFrame: (frame: Uint8Array) => Promise<void>;
6031
- readFrame: () => Promise<Uint8Array>;
6270
+ maxFrameBytes?: number;
6271
+ prepareCall?: (context: ProtocolV2CallContext) => Promise<void> | void;
6272
+ writeFrame: (frame: Uint8Array, context: ProtocolV2CallContext) => Promise<void>;
6273
+ readFrame: (context: ProtocolV2CallContext) => Promise<Uint8Array>;
6032
6274
  logger?: ProtocolLogger;
6033
6275
  logPrefix?: string;
6034
6276
  createTimeoutError?: (name: string, timeoutMs: number) => Error;
6277
+ sequenceCursor?: ProtocolV2SequenceCursor;
6278
+ generation?: number;
6035
6279
  };
6036
6280
  type ProtocolV2CallOptions = {
6037
6281
  timeoutMs?: number;
@@ -6044,11 +6288,11 @@ declare function hexToBytes(hex: string): Uint8Array;
6044
6288
  declare function bytesToHex(bytes: Uint8Array): string;
6045
6289
  declare function getErrorMessage(error: unknown): string;
6046
6290
  declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
6047
- declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 30000;
6291
+ declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
6048
6292
  declare class ProtocolV2Session {
6049
6293
  private readonly options;
6294
+ private readonly sequenceCursor;
6050
6295
  private pendingCall;
6051
- private protoSeq;
6052
6296
  constructor(options: ProtocolV2SessionOptions);
6053
6297
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6054
6298
  private executeCall;
@@ -6062,6 +6306,68 @@ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeP
6062
6306
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6063
6307
  }): Promise<boolean>;
6064
6308
 
6309
+ type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
6310
+ interface ProtocolV2LinkAdapter {
6311
+ router: number;
6312
+ maxFrameBytes?: number;
6313
+ generation: number;
6314
+ prepareCall(context: ProtocolV2CallContext): Promise<void> | void;
6315
+ writeFrame(frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6316
+ readFrame(context: ProtocolV2CallContext): Promise<Uint8Array>;
6317
+ reset(reason: string): Promise<void> | void;
6318
+ logger?: ProtocolV2SessionOptions['logger'];
6319
+ logPrefix?: string;
6320
+ createTimeoutError?: ProtocolV2SessionOptions['createTimeoutError'];
6321
+ }
6322
+ type ProtocolV2LinkManagerOptions<Key> = {
6323
+ getSchemas: () => ProtocolV2Schemas;
6324
+ classifyError: (error: unknown) => ProtocolV2LinkErrorClassification;
6325
+ onLinkInvalidated?: (key: Key, reason: string) => Promise<void> | void;
6326
+ };
6327
+ declare class ProtocolV2LinkManager<Key> {
6328
+ private readonly links;
6329
+ private readonly sequences;
6330
+ private readonly callQueues;
6331
+ private readonly options;
6332
+ constructor(options: ProtocolV2LinkManagerOptions<Key>);
6333
+ call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6334
+ invalidateLink(key: Key, reason: string): Promise<void>;
6335
+ invalidateAllLinks(reason: string): Promise<void>;
6336
+ dispose(reason: string): Promise<void>;
6337
+ private getOrCreateLink;
6338
+ private executeCall;
6339
+ private clearSettledCallQueue;
6340
+ }
6341
+
6342
+ type ProtocolV2UsbTransportBaseOptions = {
6343
+ router: number;
6344
+ maxFrameBytes: number;
6345
+ logPrefix: string;
6346
+ };
6347
+ declare abstract class ProtocolV2UsbTransportBase<Key> {
6348
+ private readonly protocolV2UsbLinks;
6349
+ private readonly protocolV2UsbAssemblers;
6350
+ private readonly protocolV2UsbGenerations;
6351
+ private readonly protocolV2UsbCancellations;
6352
+ private readonly protocolV2UsbOptions;
6353
+ protected constructor(options: ProtocolV2UsbTransportBaseOptions);
6354
+ protected abstract getProtocolV2UsbSchemas(): ProtocolV2Schemas;
6355
+ protected abstract getProtocolV2UsbLogger(): ProtocolV2SessionOptions['logger'];
6356
+ protected abstract writeProtocolV2UsbPacket(key: Key, frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6357
+ protected abstract readProtocolV2UsbPacket(key: Key, context: ProtocolV2CallContext): Promise<Uint8Array>;
6358
+ protected abstract resetProtocolV2UsbNativeLink(key: Key, reason: string): Promise<void>;
6359
+ protected abstract createProtocolV2UsbTimeoutError(name: string, timeoutMs: number): Error;
6360
+ protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
6361
+ protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
6362
+ protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6363
+ protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
6364
+ protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
6365
+ protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
6366
+ private createProtocolV2UsbAdapter;
6367
+ private getProtocolV2UsbAssembler;
6368
+ private createProtocolV2UsbCancellation;
6369
+ }
6370
+
6065
6371
  declare function info(res: any): {
6066
6372
  version: string;
6067
6373
  configured: boolean;
@@ -6095,9 +6401,11 @@ declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
6095
6401
  declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
6096
6402
  declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6097
6403
  declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6098
- declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4096;
6404
+ declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6099
6405
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6100
- declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4096;
6406
+ declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6407
+ declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6408
+ declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6101
6409
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6102
6410
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
6103
6411
  declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
@@ -6119,6 +6427,7 @@ declare const _default: {
6119
6427
  decodeMessage: typeof decodeMessage;
6120
6428
  };
6121
6429
  ProtocolV2: {
6430
+ isAckFrame: typeof isAckFrame;
6122
6431
  encodeFrame(schemas: {
6123
6432
  protocolV1: protobuf.Root;
6124
6433
  protocolV2: protobuf.Root;
@@ -6153,7 +6462,10 @@ declare const _default: {
6153
6462
  };
6154
6463
  PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
6155
6464
  ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
6465
+ ProtocolV2LinkManager: typeof ProtocolV2LinkManager;
6466
+ ProtocolV2SequenceCursor: typeof ProtocolV2SequenceCursor;
6156
6467
  ProtocolV2Session: typeof ProtocolV2Session;
6468
+ ProtocolV2UsbTransportBase: typeof ProtocolV2UsbTransportBase;
6157
6469
  bytesToHex: typeof bytesToHex;
6158
6470
  concatUint8Arrays: typeof concatUint8Arrays;
6159
6471
  createMessageFromName: (messages: protobuf.Root, name: string) => {
@@ -6174,4 +6486,4 @@ declare const _default: {
6174
6486
  withProtocolTimeout: typeof withProtocolTimeout;
6175
6487
  };
6176
6488
 
6177
- export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DebugLinkInput, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevBluetoothInfo, DevFirmwareImageInfo, DevFirmwareInstallProgress, DevFirmwareTarget, DevFirmwareTargetType, DevFirmwareUpdate, DevFirmwareUpdateStatus, DevFirmwareUpdateStatusEntry, DevGetDeviceInfo, DevGetFirmwareUpdateStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevReboot, DevRebootType, DevSEInfo, DevSEState, DevSeType, DevStatus, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, FactoryDeviceInfo, FactoryDeviceInfoSettings, FactoryGetDeviceInfo, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFixPermission, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOnboardingStatus, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetProtoVersion, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NewDevice, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingStatus, OnboardingStep, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtoVersion, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2Schemas, ProtocolV2Session, ProtocolV2SessionOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, Restore, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, Setup, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
6489
+ export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionGet, DeviceSessionPinResult, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };