@onekeyfe/hd-transport 1.2.0-alpha.0 → 1.2.0-alpha.10

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 +252 -84
  6. package/dist/constants.d.ts +4 -2
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/index.d.ts +564 -326
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +434 -102
  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 +337 -221
  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 +992 -1420
  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 +86 -51
  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 +419 -272
  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,6 +3613,24 @@ type TxAckPaymentRequest = {
3580
3613
  amount?: UintType;
3581
3614
  signature: string;
3582
3615
  };
3616
+ type EthereumSignTypedDataQR = {
3617
+ address_n: number[];
3618
+ json_data?: string;
3619
+ chain_id?: number;
3620
+ metamask_v4_compat?: boolean;
3621
+ request_id?: string;
3622
+ };
3623
+ type InternalMyAddressRequest = {
3624
+ coin_type: number;
3625
+ chain_id: number;
3626
+ account_index: number;
3627
+ derive_type: number;
3628
+ };
3629
+ type StartSession = {
3630
+ session_id?: string;
3631
+ _skip_passphrase?: boolean;
3632
+ derive_cardano?: boolean;
3633
+ };
3583
3634
  type SetBusy = {
3584
3635
  expiry_ms?: number;
3585
3636
  };
@@ -3596,6 +3647,21 @@ type Nonce = {
3596
3647
  type WriteSEPrivateKey = {
3597
3648
  private_key: string;
3598
3649
  };
3650
+ declare enum WallpaperTarget {
3651
+ Home = 0,
3652
+ Lock = 1
3653
+ }
3654
+ type SetWallpaper = {
3655
+ target: WallpaperTarget;
3656
+ path: string;
3657
+ };
3658
+ type GetWallpaper = {
3659
+ target: WallpaperTarget;
3660
+ };
3661
+ type Wallpaper = {
3662
+ target: WallpaperTarget;
3663
+ path: string;
3664
+ };
3599
3665
  type UnlockPath = {
3600
3666
  address_n: number[];
3601
3667
  mac?: string;
@@ -3609,225 +3675,290 @@ declare enum MoneroNetworkType {
3609
3675
  STAGENET = 2,
3610
3676
  FAKECHAIN = 3
3611
3677
  }
3612
- type TxDetailsAmount = {
3678
+ type ViewAmount = {
3679
+ is_unlimited: boolean;
3613
3680
  num: string;
3614
- decimals: number;
3615
- symbol: string;
3616
- };
3617
- type TxDetailsAddress = {
3618
- key: number;
3619
- address: string;
3620
- owner?: string;
3621
- icon?: string;
3622
- };
3623
- type TxDetailsNetwork = {
3624
- coin_type: number;
3625
- chain_id?: number;
3626
3681
  };
3627
- type TxDetailsGeneral = {
3682
+ type ViewDetail = {
3628
3683
  key: number;
3629
3684
  value: string;
3630
3685
  is_overview: boolean;
3686
+ has_icon: boolean;
3687
+ };
3688
+ declare enum ViewTipType {
3689
+ Default = 0,
3690
+ Highlight = 1,
3691
+ Recommend = 2,
3692
+ Warning = 3,
3693
+ Danger = 4
3694
+ }
3695
+ type ViewTip = {
3696
+ type: ViewTipType;
3697
+ text: string;
3698
+ };
3699
+ type ViewRawData = {
3700
+ initial_data: string;
3701
+ placeholder: number;
3631
3702
  };
3632
- declare enum TxDetailsDisplayType {
3633
- DISPLAY_TYPE_INFO = 0,
3634
- DISPLAY_TYPE_SIGN = 1
3703
+ declare enum ViewSignLayout {
3704
+ LayoutDefault = 0,
3705
+ LayoutSafeTxCreate = 1
3635
3706
  }
3636
- type TxDetailsPage = {
3707
+ type ViewSignPage = {
3637
3708
  title: string;
3638
- display_type: TxDetailsDisplayType;
3639
3709
  amount?: UintType;
3640
- network?: TxDetailsNetwork;
3641
- address: TxDetailsAddress[];
3642
- general: TxDetailsGeneral[];
3710
+ general: ViewDetail[];
3711
+ tip?: ViewTip;
3712
+ raw_data?: ViewRawData;
3713
+ slide_to_confirm?: boolean;
3714
+ layout?: ViewSignLayout;
3643
3715
  };
3644
- type GetProtoVersion = {};
3645
- type ProtoVersion = {
3646
- proto_version: number;
3716
+ type ViewVerifyPage = {
3717
+ title: string;
3718
+ address: string;
3719
+ path: string;
3720
+ };
3721
+ type ProtocolInfoRequest = {};
3722
+ type ProtocolInfo = {
3723
+ version: number;
3724
+ supported_messages: number[];
3725
+ protobuf_definition?: string;
3647
3726
  };
3648
- declare enum DevRebootType {
3649
- Normal = 0,
3650
- Boardloader = 1,
3651
- Bootloader = 2
3652
- }
3653
3727
  declare enum DeviceRebootType {
3654
3728
  Normal = 0,
3655
3729
  Romloader = 1,
3656
3730
  Bootloader = 2
3657
3731
  }
3658
- type DevReboot = {
3659
- reboot_type: DevRebootType;
3660
- };
3661
3732
  type DeviceReboot = {
3662
3733
  reboot_type: DeviceRebootType;
3663
3734
  };
3735
+ type DeviceSettings = {
3736
+ label?: string;
3737
+ bt_enable?: boolean;
3738
+ language?: string;
3739
+ };
3740
+ type DeviceSettingsGet = {};
3741
+ type DeviceSettingsSet = {
3742
+ settings: DeviceSettings;
3743
+ };
3744
+ type DeviceCertificate = {
3745
+ cert_and_pubkey: string;
3746
+ private_key?: string;
3747
+ };
3748
+ type DeviceCertificateWrite = {
3749
+ cert: DeviceCertificate;
3750
+ };
3751
+ type DeviceCertificateRead = {};
3752
+ type DeviceCertificateSignature = {
3753
+ data: string;
3754
+ };
3755
+ type DeviceCertificateSign = {
3756
+ data: string;
3757
+ };
3758
+ declare enum DeviceFirmwareTargetType {
3759
+ FW_MGMT_TARGET_INVALID = 0,
3760
+ FW_MGMT_TARGET_CRATE = 1,
3761
+ FW_MGMT_TARGET_ROMLOADER = 2,
3762
+ FW_MGMT_TARGET_BOOTLOADER = 3,
3763
+ FW_MGMT_TARGET_APPLICATION_P1 = 4,
3764
+ FW_MGMT_TARGET_APPLICATION_P2 = 5,
3765
+ FW_MGMT_TARGET_COPROCESSOR = 6,
3766
+ FW_MGMT_TARGET_SE01 = 7,
3767
+ FW_MGMT_TARGET_SE02 = 8,
3768
+ FW_MGMT_TARGET_SE03 = 9,
3769
+ FW_MGMT_TARGET_SE04 = 10
3770
+ }
3771
+ declare enum DeviceFirmwareUpdateTaskStatus {
3772
+ FW_MGMT_UPDATER_TASK_STATUS_PENDING = 0,
3773
+ FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS = 1,
3774
+ FW_MGMT_UPDATER_TASK_STATUS_FINISHED = 2,
3775
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND = 3,
3776
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ = 4,
3777
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE = 5,
3778
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY = 6,
3779
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL = 7,
3780
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT = 8,
3781
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
3782
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10
3783
+ }
3784
+ type DeviceFirmwareTarget = {
3785
+ target_id: DeviceFirmwareTargetType;
3786
+ path: string;
3787
+ };
3788
+ type DeviceFirmwareUpdateRequest = {
3789
+ targets: DeviceFirmwareTarget[];
3790
+ };
3791
+ type DeviceFirmwareUpdateRecord = {
3792
+ target_id: DeviceFirmwareTargetType;
3793
+ status?: DeviceFirmwareUpdateTaskStatus;
3794
+ payload_version?: number;
3795
+ path?: string;
3796
+ };
3797
+ type DeviceFirmwareUpdateRecordFields = {
3798
+ status?: boolean;
3799
+ payload_version?: boolean;
3800
+ path?: boolean;
3801
+ };
3802
+ type DeviceFirmwareUpdateStatusGet = {
3803
+ fields?: DeviceFirmwareUpdateRecordFields;
3804
+ };
3805
+ type DeviceFirmwareUpdateStatus = {
3806
+ records: DeviceFirmwareUpdateRecord[];
3807
+ };
3808
+ declare enum DeviceFactoryAck {
3809
+ FACTORY_ACK_SUCCESS = 0,
3810
+ FACTORY_ACK_FAIL = 1
3811
+ }
3812
+ type DeviceFactoryInfoManufactureTime = {
3813
+ year: number;
3814
+ month: number;
3815
+ day: number;
3816
+ hour: number;
3817
+ minute: number;
3818
+ second: number;
3819
+ };
3820
+ type DeviceFactoryInfo = {
3821
+ version?: number;
3822
+ serial_number?: string;
3823
+ burn_in_completed?: boolean;
3824
+ factory_test_completed?: boolean;
3825
+ manufacture_time?: DeviceFactoryInfoManufactureTime;
3826
+ };
3827
+ type DeviceFactoryInfoSet = {
3828
+ info: DeviceFactoryInfo;
3829
+ };
3830
+ type DeviceFactoryInfoGet = {};
3831
+ type DeviceFactoryPermanentLock = {
3832
+ check_a: string;
3833
+ check_b: string;
3834
+ };
3835
+ type DeviceFactoryTest = {
3836
+ burn_in_test: boolean;
3837
+ };
3664
3838
  declare enum DeviceType {
3665
3839
  CLASSIC1 = 0,
3666
3840
  CLASSIC1S = 1,
3667
3841
  MINI = 2,
3668
3842
  TOUCH = 3,
3669
3843
  PRO = 5,
3670
- CLASSIC1S_PURE = 6
3844
+ CLASSIC1S_PURE = 6,
3845
+ PRO2 = 7,
3846
+ NEO = 8
3671
3847
  }
3672
- declare enum DevSeType {
3848
+ declare enum DeviceSeType {
3673
3849
  THD89 = 0,
3674
3850
  SE608A = 1
3675
3851
  }
3676
- declare enum DevSEState {
3852
+ declare enum DeviceSEState {
3677
3853
  BOOT = 0,
3678
3854
  APP_FACTORY = 51,
3679
3855
  APP = 85
3680
3856
  }
3681
- type DevFirmwareImageInfo = {
3857
+ type DeviceFirmwareImageInfo = {
3682
3858
  version?: string;
3683
3859
  build_id?: string;
3684
3860
  hash?: string;
3685
3861
  };
3686
- type DevHardwareInfo = {
3687
- device_type?: DeviceType;
3862
+ type DeviceHardwareInfo = {
3863
+ Device_type?: DeviceType;
3688
3864
  serial_no?: string;
3689
3865
  hardware_version?: string;
3690
3866
  hardware_version_raw_adc?: number;
3691
3867
  };
3692
- type DevMainMcuInfo = {
3693
- board?: DevFirmwareImageInfo;
3694
- boot?: DevFirmwareImageInfo;
3695
- app?: DevFirmwareImageInfo;
3696
- };
3697
- type DevBluetoothInfo = {
3698
- boot?: DevFirmwareImageInfo;
3699
- app?: DevFirmwareImageInfo;
3700
- adv_name?: string;
3701
- mac?: string;
3702
- };
3703
- type DevSEInfo = {
3704
- boot?: DevFirmwareImageInfo;
3705
- app?: DevFirmwareImageInfo;
3706
- type?: DevSeType;
3707
- state?: DevSEState;
3708
- };
3709
- type DevInfoTargets = {
3868
+ type DeviceMainMcuInfo = {
3869
+ romloader?: DeviceFirmwareImageInfo;
3870
+ bootloader?: DeviceFirmwareImageInfo;
3871
+ application?: DeviceFirmwareImageInfo;
3872
+ application_data?: DeviceFirmwareImageInfo;
3873
+ };
3874
+ type DeviceCoprocessorInfo = {
3875
+ bootloader?: DeviceFirmwareImageInfo;
3876
+ application?: DeviceFirmwareImageInfo;
3877
+ bt_adv_name?: string;
3878
+ bt_mac?: string;
3879
+ };
3880
+ type DeviceSEInfo = {
3881
+ bootloader?: DeviceFirmwareImageInfo;
3882
+ application?: DeviceFirmwareImageInfo;
3883
+ type?: DeviceSeType;
3884
+ state?: DeviceSEState;
3885
+ };
3886
+ type DeviceInfoTargets = {
3710
3887
  hw?: boolean;
3711
3888
  fw?: boolean;
3712
- bt?: boolean;
3889
+ coprocessor?: boolean;
3713
3890
  se1?: boolean;
3714
3891
  se2?: boolean;
3715
3892
  se3?: boolean;
3716
3893
  se4?: boolean;
3717
3894
  status?: boolean;
3718
3895
  };
3719
- type DevInfoTypes = {
3896
+ type DeviceInfoTypes = {
3720
3897
  version?: boolean;
3721
3898
  build_id?: boolean;
3722
3899
  hash?: boolean;
3723
3900
  specific?: boolean;
3724
3901
  };
3725
- type DevStatus = {
3726
- language?: string;
3727
- bt_enable?: boolean;
3728
- init_states?: boolean;
3729
- backup_required?: boolean;
3730
- passphrase_protection?: boolean;
3731
- label?: string;
3732
- };
3733
- type DevGetDeviceInfo = {
3734
- targets?: DevInfoTargets;
3735
- types?: DevInfoTypes;
3902
+ type DeviceInfoGet = {
3903
+ targets?: DeviceInfoTargets;
3904
+ types?: DeviceInfoTypes;
3736
3905
  };
3737
- type DeviceGetDeviceInfo = DevGetDeviceInfo;
3738
3906
  type ProtocolV2DeviceInfo = {
3739
3907
  protocol_version: number;
3740
- hw?: DevHardwareInfo;
3741
- fw?: DevMainMcuInfo;
3742
- bt?: DevBluetoothInfo;
3743
- se1?: DevSEInfo;
3744
- se2?: DevSEInfo;
3745
- se3?: DevSEInfo;
3746
- se4?: DevSEInfo;
3747
- status?: DevStatus;
3748
- };
3749
- declare enum DevFirmwareTargetType {
3750
- TARGET_INVALID = 0,
3751
- TARGET_ROMLOADER = 1,
3752
- TARGET_BOOTLOADER = 2,
3753
- TARGET_APPLICATION_P1 = 3,
3754
- TARGET_APPLICATION_P2 = 4,
3755
- TARGET_COPROCESSOR = 5,
3756
- TARGET_SE01 = 6,
3757
- TARGET_SE02 = 7,
3758
- TARGET_SE03 = 8,
3759
- TARGET_SE04 = 9,
3760
- TARGET_RESOURCE = 10
3761
- }
3762
- declare enum DeviceFirmwareTargetType {
3763
- TARGET_INVALID = 0,
3764
- TARGET_ROMLOADER = 1,
3765
- TARGET_BOOTLOADER = 2,
3766
- TARGET_APPLICATION_P1 = 3,
3767
- TARGET_APPLICATION_P2 = 4,
3768
- TARGET_COPROCESSOR = 5,
3769
- TARGET_SE01 = 6,
3770
- TARGET_SE02 = 7,
3771
- TARGET_SE03 = 8,
3772
- TARGET_SE04 = 9,
3773
- TARGET_RESOURCE = 10
3774
- }
3775
- type DevFirmwareTarget = {
3776
- target_id: DevFirmwareTargetType;
3777
- path: string;
3778
- };
3779
- type DeviceFirmwareTarget = {
3780
- target_id: DeviceFirmwareTargetType;
3781
- path: string;
3782
- };
3783
- type DevFirmwareUpdate = {
3784
- targets: DevFirmwareTarget[];
3785
- };
3786
- type DeviceFirmwareUpdate = {
3787
- targets: DeviceFirmwareTarget[];
3788
- max_concurrent?: number;
3789
- };
3790
- type DevFirmwareInstallProgress = {
3791
- target_id: DevFirmwareTargetType;
3792
- progress: number;
3793
- stage?: string;
3794
- };
3795
- type DeviceFirmwareInstallProgress = {
3796
- target_id: DeviceFirmwareTargetType;
3797
- progress: number;
3798
- stage?: string;
3799
- };
3800
- type DevFirmwareUpdateStatusEntry = {
3801
- target_id: DevFirmwareTargetType;
3802
- status: number;
3803
- };
3804
- type DeviceFirmwareUpdateStatusEntry = {
3805
- target_id: DeviceFirmwareTargetType;
3806
- status: number;
3807
- };
3808
- type DevGetFirmwareUpdateStatus = {};
3809
- type DeviceGetFirmwareUpdateStatus = {};
3810
- type DevFirmwareUpdateStatus = {
3811
- targets: DevFirmwareUpdateStatusEntry[];
3908
+ hw?: DeviceHardwareInfo;
3909
+ fw?: DeviceMainMcuInfo;
3910
+ coprocessor?: DeviceCoprocessorInfo;
3911
+ se1?: DeviceSEInfo;
3912
+ se2?: DeviceSEInfo;
3913
+ se3?: DeviceSEInfo;
3914
+ se4?: DeviceSEInfo;
3915
+ status?: DeviceStatus;
3916
+ };
3917
+ type DeviceSessionGet = {
3918
+ session_id?: string;
3812
3919
  };
3813
- type DeviceFirmwareUpdateStatus = {
3814
- targets: DeviceFirmwareUpdateStatusEntry[];
3920
+ type DeviceSession = {
3921
+ session_id?: string;
3922
+ btc_test_address?: string;
3815
3923
  };
3816
- type FactoryDeviceInfoSettings = {
3817
- serial_no?: string;
3818
- cpu_info?: string;
3819
- pre_firmware?: string;
3924
+ type DeviceSessionAskPin = {};
3925
+ type DeviceSessionPinResult = {
3926
+ unlocked?: boolean;
3927
+ unlocked_attach_pin?: boolean;
3928
+ passphrase_protection?: boolean;
3820
3929
  };
3821
- type FactoryGetDeviceInfo = {};
3822
- type FactoryDeviceInfo = {
3823
- serial_no?: string;
3824
- spi_flash_info?: string;
3825
- se_info?: string;
3826
- nft_voucher?: string;
3827
- cpu_info?: string;
3828
- pre_firmware?: string;
3930
+ type DeviceStatus = {
3931
+ device_id?: string;
3932
+ unlocked?: boolean;
3933
+ init_states?: boolean;
3934
+ backup_required?: boolean;
3935
+ passphrase_enabled?: boolean;
3936
+ attach_to_pin_enabled?: boolean;
3937
+ unlocked_by_attach_to_pin?: boolean;
3938
+ };
3939
+ type DeviceStatusGet = {};
3940
+ declare enum DevOnboardingStage {
3941
+ DEV_ONBOARDING_STAGE_UNKNOWN = 0,
3942
+ DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
3943
+ DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
3944
+ DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
3945
+ DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
3946
+ DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
3947
+ DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
3948
+ DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
3949
+ DEV_ONBOARDING_STAGE_WALLET_READY = 8,
3950
+ DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
3951
+ DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
3952
+ DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
3953
+ DEV_ONBOARDING_STAGE_DONE = 12
3954
+ }
3955
+ type DevGetOnboardingStatus = {};
3956
+ type DevOnboardingStatus = {
3957
+ stage: DevOnboardingStage;
3958
+ status_code?: number;
3959
+ detail_code?: number;
3829
3960
  };
3830
- type FilesystemFixPermission = {};
3961
+ type FilesystemPermissionFix = {};
3831
3962
  type FilesystemPathInfo = {
3832
3963
  exist: boolean;
3833
3964
  size: number;
@@ -3883,32 +4014,11 @@ type FilesystemDirMake = {
3883
4014
  type FilesystemDirRemove = {
3884
4015
  path: string;
3885
4016
  };
3886
- type FilesystemFormat = {};
3887
- declare enum OnboardingStep {
3888
- ONBOARDING_STEP_UNKNOWN = 0,
3889
- ONBOARDING_STEP_DEVICE_VERIFICATION = 1,
3890
- ONBOARDING_STEP_PERSONALIZATION = 2,
3891
- ONBOARDING_STEP_SETUP = 3,
3892
- ONBOARDING_STEP_FIRMWARE = 4
3893
- }
3894
- type GetOnboardingStatus = {};
3895
- type NewDevice = {
3896
- seedcard_backup?: boolean;
3897
- };
3898
- type Restore = {
3899
- mnemonic?: boolean;
3900
- seedcard?: boolean;
3901
- };
3902
- type Setup = {
3903
- new_device?: NewDevice;
3904
- restore?: Restore;
3905
- };
3906
- type OnboardingStatus = {
3907
- step: OnboardingStep;
3908
- setup?: Setup;
3909
- detail_code?: number;
3910
- detail_str?: string;
4017
+ type FilesystemFormat = {
4018
+ data: boolean;
4019
+ user: boolean;
3911
4020
  };
4021
+ type PortfolioUpdate = {};
3912
4022
  type MessageType = {
3913
4023
  AlephiumGetAddress: AlephiumGetAddress;
3914
4024
  AlephiumAddress: AlephiumAddress;
@@ -4472,49 +4582,66 @@ type MessageType = {
4472
4582
  CoinPurchaseMemo: CoinPurchaseMemo;
4473
4583
  PaymentRequestMemo: PaymentRequestMemo;
4474
4584
  TxAckPaymentRequest: TxAckPaymentRequest;
4585
+ EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4586
+ InternalMyAddressRequest: InternalMyAddressRequest;
4587
+ StartSession: StartSession;
4475
4588
  SetBusy: SetBusy;
4476
4589
  GetFirmwareHash: GetFirmwareHash;
4477
4590
  FirmwareHash: FirmwareHash;
4478
4591
  GetNonce: GetNonce;
4479
4592
  Nonce: Nonce;
4480
4593
  WriteSEPrivateKey: WriteSEPrivateKey;
4594
+ SetWallpaper: SetWallpaper;
4595
+ GetWallpaper: GetWallpaper;
4596
+ Wallpaper: Wallpaper;
4481
4597
  UnlockPath: UnlockPath;
4482
4598
  UnlockedPathRequest: UnlockedPathRequest;
4483
- TxDetailsAmount: TxDetailsAmount;
4484
- TxDetailsAddress: TxDetailsAddress;
4485
- TxDetailsNetwork: TxDetailsNetwork;
4486
- TxDetailsGeneral: TxDetailsGeneral;
4487
- TxDetailsPage: TxDetailsPage;
4488
- GetProtoVersion: GetProtoVersion;
4489
- ProtoVersion: ProtoVersion;
4490
- DevReboot: DevReboot;
4599
+ ViewAmount: ViewAmount;
4600
+ ViewDetail: ViewDetail;
4601
+ ViewTip: ViewTip;
4602
+ ViewRawData: ViewRawData;
4603
+ ViewSignPage: ViewSignPage;
4604
+ ViewVerifyPage: ViewVerifyPage;
4605
+ ProtocolInfoRequest: ProtocolInfoRequest;
4606
+ ProtocolInfo: ProtocolInfo;
4491
4607
  DeviceReboot: DeviceReboot;
4492
- DevFirmwareImageInfo: DevFirmwareImageInfo;
4493
- DevHardwareInfo: DevHardwareInfo;
4494
- DevMainMcuInfo: DevMainMcuInfo;
4495
- DevBluetoothInfo: DevBluetoothInfo;
4496
- DevSEInfo: DevSEInfo;
4497
- DevInfoTargets: DevInfoTargets;
4498
- DevInfoTypes: DevInfoTypes;
4499
- DevStatus: DevStatus;
4500
- DevGetDeviceInfo: DevGetDeviceInfo;
4501
- DeviceGetDeviceInfo: DeviceGetDeviceInfo;
4502
- DevFirmwareTarget: DevFirmwareTarget;
4608
+ DeviceSettings: DeviceSettings;
4609
+ DeviceSettingsGet: DeviceSettingsGet;
4610
+ DeviceSettingsSet: DeviceSettingsSet;
4611
+ DeviceCertificate: DeviceCertificate;
4612
+ DeviceCertificateWrite: DeviceCertificateWrite;
4613
+ DeviceCertificateRead: DeviceCertificateRead;
4614
+ DeviceCertificateSignature: DeviceCertificateSignature;
4615
+ DeviceCertificateSign: DeviceCertificateSign;
4503
4616
  DeviceFirmwareTarget: DeviceFirmwareTarget;
4504
- DevFirmwareUpdate: DevFirmwareUpdate;
4505
- DeviceFirmwareUpdate: DeviceFirmwareUpdate;
4506
- DevFirmwareInstallProgress: DevFirmwareInstallProgress;
4507
- DeviceFirmwareInstallProgress: DeviceFirmwareInstallProgress;
4508
- DevFirmwareUpdateStatusEntry: DevFirmwareUpdateStatusEntry;
4509
- DeviceFirmwareUpdateStatusEntry: DeviceFirmwareUpdateStatusEntry;
4510
- DevGetFirmwareUpdateStatus: DevGetFirmwareUpdateStatus;
4511
- DeviceGetFirmwareUpdateStatus: DeviceGetFirmwareUpdateStatus;
4512
- DevFirmwareUpdateStatus: DevFirmwareUpdateStatus;
4617
+ DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4618
+ DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4619
+ DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4620
+ DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4513
4621
  DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4514
- FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
4515
- FactoryGetDeviceInfo: FactoryGetDeviceInfo;
4516
- FactoryDeviceInfo: FactoryDeviceInfo;
4517
- FilesystemFixPermission: FilesystemFixPermission;
4622
+ DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4623
+ DeviceFactoryInfo: DeviceFactoryInfo;
4624
+ DeviceFactoryInfoSet: DeviceFactoryInfoSet;
4625
+ DeviceFactoryInfoGet: DeviceFactoryInfoGet;
4626
+ DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
4627
+ DeviceFactoryTest: DeviceFactoryTest;
4628
+ DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
4629
+ DeviceHardwareInfo: DeviceHardwareInfo;
4630
+ DeviceMainMcuInfo: DeviceMainMcuInfo;
4631
+ DeviceCoprocessorInfo: DeviceCoprocessorInfo;
4632
+ DeviceSEInfo: DeviceSEInfo;
4633
+ DeviceInfoTargets: DeviceInfoTargets;
4634
+ DeviceInfoTypes: DeviceInfoTypes;
4635
+ DeviceInfoGet: DeviceInfoGet;
4636
+ DeviceSessionGet: DeviceSessionGet;
4637
+ DeviceSession: DeviceSession;
4638
+ DeviceSessionAskPin: DeviceSessionAskPin;
4639
+ DeviceSessionPinResult: DeviceSessionPinResult;
4640
+ DeviceStatus: DeviceStatus;
4641
+ DeviceStatusGet: DeviceStatusGet;
4642
+ DevGetOnboardingStatus: DevGetOnboardingStatus;
4643
+ DevOnboardingStatus: DevOnboardingStatus;
4644
+ FilesystemPermissionFix: FilesystemPermissionFix;
4518
4645
  FilesystemPathInfo: FilesystemPathInfo;
4519
4646
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
4520
4647
  FilesystemFile: FilesystemFile;
@@ -4526,11 +4653,7 @@ type MessageType = {
4526
4653
  FilesystemDirMake: FilesystemDirMake;
4527
4654
  FilesystemDirRemove: FilesystemDirRemove;
4528
4655
  FilesystemFormat: FilesystemFormat;
4529
- GetOnboardingStatus: GetOnboardingStatus;
4530
- NewDevice: NewDevice;
4531
- Restore: Restore;
4532
- Setup: Setup;
4533
- OnboardingStatus: OnboardingStatus;
4656
+ PortfolioUpdate: PortfolioUpdate;
4534
4657
  };
4535
4658
  type MessageKey = keyof MessageType;
4536
4659
  type MessageResponse<T extends MessageKey> = {
@@ -5242,68 +5365,91 @@ type messages_RefundMemo = RefundMemo;
5242
5365
  type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5243
5366
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5244
5367
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5368
+ type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5369
+ type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5370
+ type messages_StartSession = StartSession;
5245
5371
  type messages_SetBusy = SetBusy;
5246
5372
  type messages_GetFirmwareHash = GetFirmwareHash;
5247
5373
  type messages_FirmwareHash = FirmwareHash;
5248
5374
  type messages_GetNonce = GetNonce;
5249
5375
  type messages_Nonce = Nonce;
5250
5376
  type messages_WriteSEPrivateKey = WriteSEPrivateKey;
5377
+ type messages_WallpaperTarget = WallpaperTarget;
5378
+ declare const messages_WallpaperTarget: typeof WallpaperTarget;
5379
+ type messages_SetWallpaper = SetWallpaper;
5380
+ type messages_GetWallpaper = GetWallpaper;
5381
+ type messages_Wallpaper = Wallpaper;
5251
5382
  type messages_UnlockPath = UnlockPath;
5252
5383
  type messages_UnlockedPathRequest = UnlockedPathRequest;
5253
5384
  type messages_MoneroNetworkType = MoneroNetworkType;
5254
5385
  declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
5255
- type messages_TxDetailsAmount = TxDetailsAmount;
5256
- type messages_TxDetailsAddress = TxDetailsAddress;
5257
- type messages_TxDetailsNetwork = TxDetailsNetwork;
5258
- type messages_TxDetailsGeneral = TxDetailsGeneral;
5259
- type messages_TxDetailsDisplayType = TxDetailsDisplayType;
5260
- declare const messages_TxDetailsDisplayType: typeof TxDetailsDisplayType;
5261
- type messages_TxDetailsPage = TxDetailsPage;
5262
- type messages_GetProtoVersion = GetProtoVersion;
5263
- type messages_ProtoVersion = ProtoVersion;
5264
- type messages_DevRebootType = DevRebootType;
5265
- declare const messages_DevRebootType: typeof DevRebootType;
5386
+ type messages_ViewAmount = ViewAmount;
5387
+ type messages_ViewDetail = ViewDetail;
5388
+ type messages_ViewTipType = ViewTipType;
5389
+ declare const messages_ViewTipType: typeof ViewTipType;
5390
+ type messages_ViewTip = ViewTip;
5391
+ type messages_ViewRawData = ViewRawData;
5392
+ type messages_ViewSignLayout = ViewSignLayout;
5393
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5394
+ type messages_ViewSignPage = ViewSignPage;
5395
+ type messages_ViewVerifyPage = ViewVerifyPage;
5396
+ type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5397
+ type messages_ProtocolInfo = ProtocolInfo;
5266
5398
  type messages_DeviceRebootType = DeviceRebootType;
5267
5399
  declare const messages_DeviceRebootType: typeof DeviceRebootType;
5268
- type messages_DevReboot = DevReboot;
5269
5400
  type messages_DeviceReboot = DeviceReboot;
5270
- type messages_DeviceType = DeviceType;
5271
- declare const messages_DeviceType: typeof DeviceType;
5272
- type messages_DevSeType = DevSeType;
5273
- declare const messages_DevSeType: typeof DevSeType;
5274
- type messages_DevSEState = DevSEState;
5275
- declare const messages_DevSEState: typeof DevSEState;
5276
- type messages_DevFirmwareImageInfo = DevFirmwareImageInfo;
5277
- type messages_DevHardwareInfo = DevHardwareInfo;
5278
- type messages_DevMainMcuInfo = DevMainMcuInfo;
5279
- type messages_DevBluetoothInfo = DevBluetoothInfo;
5280
- type messages_DevSEInfo = DevSEInfo;
5281
- type messages_DevInfoTargets = DevInfoTargets;
5282
- type messages_DevInfoTypes = DevInfoTypes;
5283
- type messages_DevStatus = DevStatus;
5284
- type messages_DevGetDeviceInfo = DevGetDeviceInfo;
5285
- type messages_DeviceGetDeviceInfo = DeviceGetDeviceInfo;
5286
- type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5287
- type messages_DevFirmwareTargetType = DevFirmwareTargetType;
5288
- declare const messages_DevFirmwareTargetType: typeof DevFirmwareTargetType;
5401
+ type messages_DeviceSettings = DeviceSettings;
5402
+ type messages_DeviceSettingsGet = DeviceSettingsGet;
5403
+ type messages_DeviceSettingsSet = DeviceSettingsSet;
5404
+ type messages_DeviceCertificate = DeviceCertificate;
5405
+ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
5406
+ type messages_DeviceCertificateRead = DeviceCertificateRead;
5407
+ type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5408
+ type messages_DeviceCertificateSign = DeviceCertificateSign;
5289
5409
  type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5290
5410
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5291
- type messages_DevFirmwareTarget = DevFirmwareTarget;
5411
+ type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5412
+ declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5292
5413
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5293
- type messages_DevFirmwareUpdate = DevFirmwareUpdate;
5294
- type messages_DeviceFirmwareUpdate = DeviceFirmwareUpdate;
5295
- type messages_DevFirmwareInstallProgress = DevFirmwareInstallProgress;
5296
- type messages_DeviceFirmwareInstallProgress = DeviceFirmwareInstallProgress;
5297
- type messages_DevFirmwareUpdateStatusEntry = DevFirmwareUpdateStatusEntry;
5298
- type messages_DeviceFirmwareUpdateStatusEntry = DeviceFirmwareUpdateStatusEntry;
5299
- type messages_DevGetFirmwareUpdateStatus = DevGetFirmwareUpdateStatus;
5300
- type messages_DeviceGetFirmwareUpdateStatus = DeviceGetFirmwareUpdateStatus;
5301
- type messages_DevFirmwareUpdateStatus = DevFirmwareUpdateStatus;
5414
+ type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5415
+ type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5416
+ type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5417
+ type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
5302
5418
  type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
5303
- type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
5304
- type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
5305
- type messages_FactoryDeviceInfo = FactoryDeviceInfo;
5306
- type messages_FilesystemFixPermission = FilesystemFixPermission;
5419
+ type messages_DeviceFactoryAck = DeviceFactoryAck;
5420
+ declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5421
+ type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5422
+ type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5423
+ type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5424
+ type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5425
+ type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5426
+ type messages_DeviceFactoryTest = DeviceFactoryTest;
5427
+ type messages_DeviceType = DeviceType;
5428
+ declare const messages_DeviceType: typeof DeviceType;
5429
+ type messages_DeviceSeType = DeviceSeType;
5430
+ declare const messages_DeviceSeType: typeof DeviceSeType;
5431
+ type messages_DeviceSEState = DeviceSEState;
5432
+ declare const messages_DeviceSEState: typeof DeviceSEState;
5433
+ type messages_DeviceFirmwareImageInfo = DeviceFirmwareImageInfo;
5434
+ type messages_DeviceHardwareInfo = DeviceHardwareInfo;
5435
+ type messages_DeviceMainMcuInfo = DeviceMainMcuInfo;
5436
+ type messages_DeviceCoprocessorInfo = DeviceCoprocessorInfo;
5437
+ type messages_DeviceSEInfo = DeviceSEInfo;
5438
+ type messages_DeviceInfoTargets = DeviceInfoTargets;
5439
+ type messages_DeviceInfoTypes = DeviceInfoTypes;
5440
+ type messages_DeviceInfoGet = DeviceInfoGet;
5441
+ type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5442
+ type messages_DeviceSessionGet = DeviceSessionGet;
5443
+ type messages_DeviceSession = DeviceSession;
5444
+ type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5445
+ type messages_DeviceSessionPinResult = DeviceSessionPinResult;
5446
+ type messages_DeviceStatus = DeviceStatus;
5447
+ type messages_DeviceStatusGet = DeviceStatusGet;
5448
+ type messages_DevOnboardingStage = DevOnboardingStage;
5449
+ declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
5450
+ type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5451
+ type messages_DevOnboardingStatus = DevOnboardingStatus;
5452
+ type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5307
5453
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5308
5454
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
5309
5455
  type messages_FilesystemFile = FilesystemFile;
@@ -5315,13 +5461,7 @@ type messages_FilesystemDirList = FilesystemDirList;
5315
5461
  type messages_FilesystemDirMake = FilesystemDirMake;
5316
5462
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5317
5463
  type messages_FilesystemFormat = FilesystemFormat;
5318
- type messages_OnboardingStep = OnboardingStep;
5319
- declare const messages_OnboardingStep: typeof OnboardingStep;
5320
- type messages_GetOnboardingStatus = GetOnboardingStatus;
5321
- type messages_NewDevice = NewDevice;
5322
- type messages_Restore = Restore;
5323
- type messages_Setup = Setup;
5324
- type messages_OnboardingStatus = OnboardingStatus;
5464
+ type messages_PortfolioUpdate = PortfolioUpdate;
5325
5465
  type messages_MessageType = MessageType;
5326
5466
  type messages_MessageKey = MessageKey;
5327
5467
  type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
@@ -5966,59 +6106,79 @@ declare namespace messages {
5966
6106
  messages_CoinPurchaseMemo as CoinPurchaseMemo,
5967
6107
  messages_PaymentRequestMemo as PaymentRequestMemo,
5968
6108
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
6109
+ messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
6110
+ messages_InternalMyAddressRequest as InternalMyAddressRequest,
6111
+ messages_StartSession as StartSession,
5969
6112
  messages_SetBusy as SetBusy,
5970
6113
  messages_GetFirmwareHash as GetFirmwareHash,
5971
6114
  messages_FirmwareHash as FirmwareHash,
5972
6115
  messages_GetNonce as GetNonce,
5973
6116
  messages_Nonce as Nonce,
5974
6117
  messages_WriteSEPrivateKey as WriteSEPrivateKey,
6118
+ messages_WallpaperTarget as WallpaperTarget,
6119
+ messages_SetWallpaper as SetWallpaper,
6120
+ messages_GetWallpaper as GetWallpaper,
6121
+ messages_Wallpaper as Wallpaper,
5975
6122
  messages_UnlockPath as UnlockPath,
5976
6123
  messages_UnlockedPathRequest as UnlockedPathRequest,
5977
6124
  messages_MoneroNetworkType as MoneroNetworkType,
5978
- messages_TxDetailsAmount as TxDetailsAmount,
5979
- messages_TxDetailsAddress as TxDetailsAddress,
5980
- messages_TxDetailsNetwork as TxDetailsNetwork,
5981
- messages_TxDetailsGeneral as TxDetailsGeneral,
5982
- messages_TxDetailsDisplayType as TxDetailsDisplayType,
5983
- messages_TxDetailsPage as TxDetailsPage,
5984
- messages_GetProtoVersion as GetProtoVersion,
5985
- messages_ProtoVersion as ProtoVersion,
5986
- messages_DevRebootType as DevRebootType,
6125
+ messages_ViewAmount as ViewAmount,
6126
+ messages_ViewDetail as ViewDetail,
6127
+ messages_ViewTipType as ViewTipType,
6128
+ messages_ViewTip as ViewTip,
6129
+ messages_ViewRawData as ViewRawData,
6130
+ messages_ViewSignLayout as ViewSignLayout,
6131
+ messages_ViewSignPage as ViewSignPage,
6132
+ messages_ViewVerifyPage as ViewVerifyPage,
6133
+ messages_ProtocolInfoRequest as ProtocolInfoRequest,
6134
+ messages_ProtocolInfo as ProtocolInfo,
5987
6135
  messages_DeviceRebootType as DeviceRebootType,
5988
- messages_DevReboot as DevReboot,
5989
6136
  messages_DeviceReboot as DeviceReboot,
5990
- messages_DeviceType as DeviceType,
5991
- messages_DevSeType as DevSeType,
5992
- messages_DevSEState as DevSEState,
5993
- messages_DevFirmwareImageInfo as DevFirmwareImageInfo,
5994
- messages_DevHardwareInfo as DevHardwareInfo,
5995
- messages_DevMainMcuInfo as DevMainMcuInfo,
5996
- messages_DevBluetoothInfo as DevBluetoothInfo,
5997
- messages_DevSEInfo as DevSEInfo,
5998
- messages_DevInfoTargets as DevInfoTargets,
5999
- messages_DevInfoTypes as DevInfoTypes,
6000
- messages_DevStatus as DevStatus,
6001
- messages_DevGetDeviceInfo as DevGetDeviceInfo,
6002
- messages_DeviceGetDeviceInfo as DeviceGetDeviceInfo,
6003
- messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6004
- messages_DevFirmwareTargetType as DevFirmwareTargetType,
6137
+ messages_DeviceSettings as DeviceSettings,
6138
+ messages_DeviceSettingsGet as DeviceSettingsGet,
6139
+ messages_DeviceSettingsSet as DeviceSettingsSet,
6140
+ messages_DeviceCertificate as DeviceCertificate,
6141
+ messages_DeviceCertificateWrite as DeviceCertificateWrite,
6142
+ messages_DeviceCertificateRead as DeviceCertificateRead,
6143
+ messages_DeviceCertificateSignature as DeviceCertificateSignature,
6144
+ messages_DeviceCertificateSign as DeviceCertificateSign,
6005
6145
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6006
- messages_DevFirmwareTarget as DevFirmwareTarget,
6146
+ messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6007
6147
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6008
- messages_DevFirmwareUpdate as DevFirmwareUpdate,
6009
- messages_DeviceFirmwareUpdate as DeviceFirmwareUpdate,
6010
- messages_DevFirmwareInstallProgress as DevFirmwareInstallProgress,
6011
- messages_DeviceFirmwareInstallProgress as DeviceFirmwareInstallProgress,
6012
- messages_DevFirmwareUpdateStatusEntry as DevFirmwareUpdateStatusEntry,
6013
- messages_DeviceFirmwareUpdateStatusEntry as DeviceFirmwareUpdateStatusEntry,
6014
- messages_DevGetFirmwareUpdateStatus as DevGetFirmwareUpdateStatus,
6015
- messages_DeviceGetFirmwareUpdateStatus as DeviceGetFirmwareUpdateStatus,
6016
- messages_DevFirmwareUpdateStatus as DevFirmwareUpdateStatus,
6148
+ messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6149
+ messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6150
+ messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6151
+ messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
6017
6152
  messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
6018
- messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
6019
- messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
6020
- messages_FactoryDeviceInfo as FactoryDeviceInfo,
6021
- messages_FilesystemFixPermission as FilesystemFixPermission,
6153
+ messages_DeviceFactoryAck as DeviceFactoryAck,
6154
+ messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6155
+ messages_DeviceFactoryInfo as DeviceFactoryInfo,
6156
+ messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6157
+ messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6158
+ messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6159
+ messages_DeviceFactoryTest as DeviceFactoryTest,
6160
+ messages_DeviceType as DeviceType,
6161
+ messages_DeviceSeType as DeviceSeType,
6162
+ messages_DeviceSEState as DeviceSEState,
6163
+ messages_DeviceFirmwareImageInfo as DeviceFirmwareImageInfo,
6164
+ messages_DeviceHardwareInfo as DeviceHardwareInfo,
6165
+ messages_DeviceMainMcuInfo as DeviceMainMcuInfo,
6166
+ messages_DeviceCoprocessorInfo as DeviceCoprocessorInfo,
6167
+ messages_DeviceSEInfo as DeviceSEInfo,
6168
+ messages_DeviceInfoTargets as DeviceInfoTargets,
6169
+ messages_DeviceInfoTypes as DeviceInfoTypes,
6170
+ messages_DeviceInfoGet as DeviceInfoGet,
6171
+ messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6172
+ messages_DeviceSessionGet as DeviceSessionGet,
6173
+ messages_DeviceSession as DeviceSession,
6174
+ messages_DeviceSessionAskPin as DeviceSessionAskPin,
6175
+ messages_DeviceSessionPinResult as DeviceSessionPinResult,
6176
+ messages_DeviceStatus as DeviceStatus,
6177
+ messages_DeviceStatusGet as DeviceStatusGet,
6178
+ messages_DevOnboardingStage as DevOnboardingStage,
6179
+ messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6180
+ messages_DevOnboardingStatus as DevOnboardingStatus,
6181
+ messages_FilesystemPermissionFix as FilesystemPermissionFix,
6022
6182
  messages_FilesystemPathInfo as FilesystemPathInfo,
6023
6183
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
6024
6184
  messages_FilesystemFile as FilesystemFile,
@@ -6030,12 +6190,7 @@ declare namespace messages {
6030
6190
  messages_FilesystemDirMake as FilesystemDirMake,
6031
6191
  messages_FilesystemDirRemove as FilesystemDirRemove,
6032
6192
  messages_FilesystemFormat as FilesystemFormat,
6033
- messages_OnboardingStep as OnboardingStep,
6034
- messages_GetOnboardingStatus as GetOnboardingStatus,
6035
- messages_NewDevice as NewDevice,
6036
- messages_Restore as Restore,
6037
- messages_Setup as Setup,
6038
- messages_OnboardingStatus as OnboardingStatus,
6193
+ messages_PortfolioUpdate as PortfolioUpdate,
6039
6194
  messages_MessageType as MessageType,
6040
6195
  messages_MessageKey as MessageKey,
6041
6196
  messages_MessageResponse as MessageResponse,
@@ -6044,10 +6199,21 @@ declare namespace messages {
6044
6199
  };
6045
6200
  }
6046
6201
 
6202
+ declare class ProtocolV2SequenceCursor {
6203
+ private current;
6204
+ next(): number;
6205
+ }
6206
+
6047
6207
  type ProtocolV2Schemas = {
6048
6208
  protocolV1: Root;
6049
6209
  protocolV2: Root;
6050
6210
  };
6211
+ type ProtocolV2CallContext = {
6212
+ messageName: string;
6213
+ timeoutMs?: number;
6214
+ highVolume: boolean;
6215
+ generation: number;
6216
+ };
6051
6217
  type ProtocolLogger = {
6052
6218
  debug?: (...args: any[]) => void;
6053
6219
  error?: (...args: any[]) => void;
@@ -6056,11 +6222,15 @@ type ProtocolV2SessionOptions = {
6056
6222
  schemas: ProtocolV2Schemas;
6057
6223
  router: number;
6058
6224
  packetSrc?: number;
6059
- writeFrame: (frame: Uint8Array) => Promise<void>;
6060
- readFrame: () => Promise<Uint8Array>;
6225
+ maxFrameBytes?: number;
6226
+ prepareCall?: (context: ProtocolV2CallContext) => Promise<void> | void;
6227
+ writeFrame: (frame: Uint8Array, context: ProtocolV2CallContext) => Promise<void>;
6228
+ readFrame: (context: ProtocolV2CallContext) => Promise<Uint8Array>;
6061
6229
  logger?: ProtocolLogger;
6062
6230
  logPrefix?: string;
6063
6231
  createTimeoutError?: (name: string, timeoutMs: number) => Error;
6232
+ sequenceCursor?: ProtocolV2SequenceCursor;
6233
+ generation?: number;
6064
6234
  };
6065
6235
  type ProtocolV2CallOptions = {
6066
6236
  timeoutMs?: number;
@@ -6073,11 +6243,11 @@ declare function hexToBytes(hex: string): Uint8Array;
6073
6243
  declare function bytesToHex(bytes: Uint8Array): string;
6074
6244
  declare function getErrorMessage(error: unknown): string;
6075
6245
  declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
6076
- declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 30000;
6246
+ declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
6077
6247
  declare class ProtocolV2Session {
6078
6248
  private readonly options;
6249
+ private readonly sequenceCursor;
6079
6250
  private pendingCall;
6080
- private protoSeq;
6081
6251
  constructor(options: ProtocolV2SessionOptions);
6082
6252
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6083
6253
  private executeCall;
@@ -6091,6 +6261,68 @@ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeP
6091
6261
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6092
6262
  }): Promise<boolean>;
6093
6263
 
6264
+ type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
6265
+ interface ProtocolV2LinkAdapter {
6266
+ router: number;
6267
+ maxFrameBytes?: number;
6268
+ generation: number;
6269
+ prepareCall(context: ProtocolV2CallContext): Promise<void> | void;
6270
+ writeFrame(frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6271
+ readFrame(context: ProtocolV2CallContext): Promise<Uint8Array>;
6272
+ reset(reason: string): Promise<void> | void;
6273
+ logger?: ProtocolV2SessionOptions['logger'];
6274
+ logPrefix?: string;
6275
+ createTimeoutError?: ProtocolV2SessionOptions['createTimeoutError'];
6276
+ }
6277
+ type ProtocolV2LinkManagerOptions<Key> = {
6278
+ getSchemas: () => ProtocolV2Schemas;
6279
+ classifyError: (error: unknown) => ProtocolV2LinkErrorClassification;
6280
+ onLinkInvalidated?: (key: Key, reason: string) => Promise<void> | void;
6281
+ };
6282
+ declare class ProtocolV2LinkManager<Key> {
6283
+ private readonly links;
6284
+ private readonly sequences;
6285
+ private readonly callQueues;
6286
+ private readonly options;
6287
+ constructor(options: ProtocolV2LinkManagerOptions<Key>);
6288
+ call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6289
+ invalidateLink(key: Key, reason: string): Promise<void>;
6290
+ invalidateAllLinks(reason: string): Promise<void>;
6291
+ dispose(reason: string): Promise<void>;
6292
+ private getOrCreateLink;
6293
+ private executeCall;
6294
+ private clearSettledCallQueue;
6295
+ }
6296
+
6297
+ type ProtocolV2UsbTransportBaseOptions = {
6298
+ router: number;
6299
+ maxFrameBytes: number;
6300
+ logPrefix: string;
6301
+ };
6302
+ declare abstract class ProtocolV2UsbTransportBase<Key> {
6303
+ private readonly protocolV2UsbLinks;
6304
+ private readonly protocolV2UsbAssemblers;
6305
+ private readonly protocolV2UsbGenerations;
6306
+ private readonly protocolV2UsbCancellations;
6307
+ private readonly protocolV2UsbOptions;
6308
+ protected constructor(options: ProtocolV2UsbTransportBaseOptions);
6309
+ protected abstract getProtocolV2UsbSchemas(): ProtocolV2Schemas;
6310
+ protected abstract getProtocolV2UsbLogger(): ProtocolV2SessionOptions['logger'];
6311
+ protected abstract writeProtocolV2UsbPacket(key: Key, frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6312
+ protected abstract readProtocolV2UsbPacket(key: Key, context: ProtocolV2CallContext): Promise<Uint8Array>;
6313
+ protected abstract resetProtocolV2UsbNativeLink(key: Key, reason: string): Promise<void>;
6314
+ protected abstract createProtocolV2UsbTimeoutError(name: string, timeoutMs: number): Error;
6315
+ protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
6316
+ protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
6317
+ protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6318
+ protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
6319
+ protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
6320
+ protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
6321
+ private createProtocolV2UsbAdapter;
6322
+ private getProtocolV2UsbAssembler;
6323
+ private createProtocolV2UsbCancellation;
6324
+ }
6325
+
6094
6326
  declare function info(res: any): {
6095
6327
  version: string;
6096
6328
  configured: boolean;
@@ -6124,9 +6356,11 @@ declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
6124
6356
  declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
6125
6357
  declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6126
6358
  declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6127
- declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4096;
6359
+ declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6128
6360
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6129
- declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4096;
6361
+ declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6362
+ declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6363
+ declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6130
6364
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6131
6365
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
6132
6366
  declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
@@ -6148,6 +6382,7 @@ declare const _default: {
6148
6382
  decodeMessage: typeof decodeMessage;
6149
6383
  };
6150
6384
  ProtocolV2: {
6385
+ isAckFrame: typeof isAckFrame;
6151
6386
  encodeFrame(schemas: {
6152
6387
  protocolV1: protobuf.Root;
6153
6388
  protocolV2: protobuf.Root;
@@ -6182,7 +6417,10 @@ declare const _default: {
6182
6417
  };
6183
6418
  PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
6184
6419
  ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
6420
+ ProtocolV2LinkManager: typeof ProtocolV2LinkManager;
6421
+ ProtocolV2SequenceCursor: typeof ProtocolV2SequenceCursor;
6185
6422
  ProtocolV2Session: typeof ProtocolV2Session;
6423
+ ProtocolV2UsbTransportBase: typeof ProtocolV2UsbTransportBase;
6186
6424
  bytesToHex: typeof bytesToHex;
6187
6425
  concatUint8Arrays: typeof concatUint8Arrays;
6188
6426
  createMessageFromName: (messages: protobuf.Root, name: string) => {
@@ -6203,4 +6441,4 @@ declare const _default: {
6203
6441
  withProtocolTimeout: typeof withProtocolTimeout;
6204
6442
  };
6205
6443
 
6206
- 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, DevBluetoothInfo, DevFirmwareImageInfo, DevFirmwareInstallProgress, DevFirmwareTarget, DevFirmwareTargetType, DevFirmwareUpdate, DevFirmwareUpdateStatus, DevFirmwareUpdateStatusEntry, DevGetDeviceInfo, DevGetFirmwareUpdateStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevReboot, DevRebootType, DevSEInfo, DevSEState, DevSeType, DevStatus, DeviceBackToBoot, DeviceEraseSector, DeviceFirmwareInstallProgress, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdate, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusEntry, DeviceGetDeviceInfo, DeviceGetFirmwareUpdateStatus, DeviceInfo, DeviceInfoSettings, DeviceReboot, DeviceRebootType, 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, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, 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, 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, TxDetailsAddress, TxDetailsAmount, TxDetailsDisplayType, TxDetailsGeneral, TxDetailsNetwork, TxDetailsPage, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, Vote, WL_OperationType, 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 };
6444
+ 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, 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, 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 };