@onekeyfe/hd-transport 1.1.27-alpha.30 → 1.1.27-alpha.31
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.
- package/__tests__/protocol-v2.test.js +8 -8
- package/dist/index.d.ts +124 -123
- package/dist/index.js +32 -32
- package/dist/types/messages.d.ts +75 -74
- package/dist/types/messages.d.ts.map +1 -1
- package/messages-pro2.json +67 -63
- package/package.json +2 -2
- package/scripts/proto-pro2-sys/messages-pro2-sys.proto +44 -28
- package/scripts/protobuf-build.sh +57 -41
- package/src/types/messages.ts +94 -93
|
@@ -70,10 +70,10 @@ const protocolV2Messages = parseConfigure({
|
|
|
70
70
|
},
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
DeviceFirmwareUpdate: {
|
|
74
74
|
fields: {},
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
DeviceFirmwareInstallProgress: {
|
|
77
77
|
fields: {
|
|
78
78
|
target_id: {
|
|
79
79
|
type: 'uint32',
|
|
@@ -115,8 +115,8 @@ const protocolV2Messages = parseConfigure({
|
|
|
115
115
|
MessageType_Ping: 60206,
|
|
116
116
|
MessageType_Success: 60207,
|
|
117
117
|
MessageType_FileWrite: 60805,
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
MessageType_DeviceFirmwareUpdate: 61000,
|
|
119
|
+
MessageType_DeviceFirmwareInstallProgress: 61001,
|
|
120
120
|
MessageType_PartialNested: 62000,
|
|
121
121
|
},
|
|
122
122
|
},
|
|
@@ -389,7 +389,7 @@ describe('Protocol V2 framing and session', () => {
|
|
|
389
389
|
|
|
390
390
|
test('session consumes intermediate response frames before returning the final response', async () => {
|
|
391
391
|
const written = [];
|
|
392
|
-
const progress = ProtocolV2.encodeFrame(schemas, '
|
|
392
|
+
const progress = ProtocolV2.encodeFrame(schemas, 'DeviceFirmwareInstallProgress', {
|
|
393
393
|
target_id: 0,
|
|
394
394
|
progress: 42,
|
|
395
395
|
});
|
|
@@ -415,17 +415,17 @@ describe('Protocol V2 framing and session', () => {
|
|
|
415
415
|
});
|
|
416
416
|
|
|
417
417
|
const result = await session.call(
|
|
418
|
-
'
|
|
418
|
+
'DeviceFirmwareUpdate',
|
|
419
419
|
{},
|
|
420
420
|
{
|
|
421
|
-
intermediateTypes: ['
|
|
421
|
+
intermediateTypes: ['DeviceFirmwareInstallProgress'],
|
|
422
422
|
onIntermediateResponse,
|
|
423
423
|
}
|
|
424
424
|
);
|
|
425
425
|
|
|
426
426
|
expect(readFrame).toHaveBeenCalledTimes(2);
|
|
427
427
|
expect(onIntermediateResponse).toHaveBeenCalledWith({
|
|
428
|
-
type: '
|
|
428
|
+
type: 'DeviceFirmwareInstallProgress',
|
|
429
429
|
message: {
|
|
430
430
|
target_id: 0,
|
|
431
431
|
progress: 42,
|
package/dist/index.d.ts
CHANGED
|
@@ -3595,13 +3595,13 @@ type GetProtoVersion = {};
|
|
|
3595
3595
|
type ProtoVersion = {
|
|
3596
3596
|
proto_version: number;
|
|
3597
3597
|
};
|
|
3598
|
-
declare enum
|
|
3598
|
+
declare enum DeviceRebootType {
|
|
3599
3599
|
Normal = 0,
|
|
3600
3600
|
Boardloader = 1,
|
|
3601
3601
|
Bootloader = 2
|
|
3602
3602
|
}
|
|
3603
|
-
type
|
|
3604
|
-
reboot_type:
|
|
3603
|
+
type DeviceReboot = {
|
|
3604
|
+
reboot_type: DeviceRebootType;
|
|
3605
3605
|
};
|
|
3606
3606
|
declare enum DeviceType {
|
|
3607
3607
|
CLASSIC1 = 0,
|
|
@@ -3611,44 +3611,44 @@ declare enum DeviceType {
|
|
|
3611
3611
|
PRO = 5,
|
|
3612
3612
|
CLASSIC1S_PURE = 6
|
|
3613
3613
|
}
|
|
3614
|
-
declare enum
|
|
3614
|
+
declare enum DeviceSeType {
|
|
3615
3615
|
THD89 = 0,
|
|
3616
3616
|
SE608A = 1
|
|
3617
3617
|
}
|
|
3618
|
-
declare enum
|
|
3618
|
+
declare enum DeviceSEState {
|
|
3619
3619
|
BOOT = 0,
|
|
3620
3620
|
APP_FACTORY = 51,
|
|
3621
3621
|
APP = 85
|
|
3622
3622
|
}
|
|
3623
|
-
type
|
|
3623
|
+
type DeviceFirmwareImageInfo = {
|
|
3624
3624
|
version?: string;
|
|
3625
3625
|
build_id?: string;
|
|
3626
3626
|
hash?: string;
|
|
3627
3627
|
};
|
|
3628
|
-
type
|
|
3629
|
-
|
|
3628
|
+
type DeviceHardwareInfo = {
|
|
3629
|
+
Device_type?: DeviceType;
|
|
3630
3630
|
serial_no?: string;
|
|
3631
3631
|
hardware_version?: string;
|
|
3632
3632
|
hardware_version_raw_adc?: number;
|
|
3633
3633
|
};
|
|
3634
|
-
type
|
|
3635
|
-
board?:
|
|
3636
|
-
boot?:
|
|
3637
|
-
app?:
|
|
3634
|
+
type DeviceMainMcuInfo = {
|
|
3635
|
+
board?: DeviceFirmwareImageInfo;
|
|
3636
|
+
boot?: DeviceFirmwareImageInfo;
|
|
3637
|
+
app?: DeviceFirmwareImageInfo;
|
|
3638
3638
|
};
|
|
3639
|
-
type
|
|
3640
|
-
boot?:
|
|
3641
|
-
app?:
|
|
3639
|
+
type DeviceBluetoothInfo = {
|
|
3640
|
+
boot?: DeviceFirmwareImageInfo;
|
|
3641
|
+
app?: DeviceFirmwareImageInfo;
|
|
3642
3642
|
adv_name?: string;
|
|
3643
3643
|
mac?: string;
|
|
3644
3644
|
};
|
|
3645
|
-
type
|
|
3646
|
-
boot?:
|
|
3647
|
-
app?:
|
|
3648
|
-
type?:
|
|
3649
|
-
state?:
|
|
3645
|
+
type DeviceSEInfo = {
|
|
3646
|
+
boot?: DeviceFirmwareImageInfo;
|
|
3647
|
+
app?: DeviceFirmwareImageInfo;
|
|
3648
|
+
type?: DeviceSeType;
|
|
3649
|
+
state?: DeviceSEState;
|
|
3650
3650
|
};
|
|
3651
|
-
type
|
|
3651
|
+
type DeviceInfoTargets = {
|
|
3652
3652
|
hw?: boolean;
|
|
3653
3653
|
fw?: boolean;
|
|
3654
3654
|
bt?: boolean;
|
|
@@ -3658,13 +3658,13 @@ type DevInfoTargets = {
|
|
|
3658
3658
|
se4?: boolean;
|
|
3659
3659
|
status?: boolean;
|
|
3660
3660
|
};
|
|
3661
|
-
type
|
|
3661
|
+
type DeviceInfoTypes = {
|
|
3662
3662
|
version?: boolean;
|
|
3663
3663
|
build_id?: boolean;
|
|
3664
3664
|
hash?: boolean;
|
|
3665
3665
|
specific?: boolean;
|
|
3666
3666
|
};
|
|
3667
|
-
type
|
|
3667
|
+
type DeviceStatus = {
|
|
3668
3668
|
language?: string;
|
|
3669
3669
|
bt_enable?: boolean;
|
|
3670
3670
|
init_states?: boolean;
|
|
@@ -3672,50 +3672,51 @@ type DevStatus = {
|
|
|
3672
3672
|
passphrase_protection?: boolean;
|
|
3673
3673
|
label?: string;
|
|
3674
3674
|
};
|
|
3675
|
-
type
|
|
3676
|
-
targets?:
|
|
3677
|
-
types?:
|
|
3675
|
+
type DeviceGetDeviceInfo = {
|
|
3676
|
+
targets?: DeviceInfoTargets;
|
|
3677
|
+
types?: DeviceInfoTypes;
|
|
3678
3678
|
};
|
|
3679
3679
|
type ProtocolV2DeviceInfo = {
|
|
3680
3680
|
protocol_version: number;
|
|
3681
|
-
hw?:
|
|
3682
|
-
fw?:
|
|
3683
|
-
bt?:
|
|
3684
|
-
se1?:
|
|
3685
|
-
se2?:
|
|
3686
|
-
se3?:
|
|
3687
|
-
se4?:
|
|
3688
|
-
status?:
|
|
3689
|
-
};
|
|
3690
|
-
declare enum
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3681
|
+
hw?: DeviceHardwareInfo;
|
|
3682
|
+
fw?: DeviceMainMcuInfo;
|
|
3683
|
+
bt?: DeviceBluetoothInfo;
|
|
3684
|
+
se1?: DeviceSEInfo;
|
|
3685
|
+
se2?: DeviceSEInfo;
|
|
3686
|
+
se3?: DeviceSEInfo;
|
|
3687
|
+
se4?: DeviceSEInfo;
|
|
3688
|
+
status?: DeviceStatus;
|
|
3689
|
+
};
|
|
3690
|
+
declare enum DeviceFirmwareTargetType {
|
|
3691
|
+
TARGET_INVALID = 0,
|
|
3692
|
+
TARGET_ROMLOADER = 1,
|
|
3693
|
+
TARGET_BOOTLOADER = 2,
|
|
3694
|
+
TARGET_FIRMWARE_P1 = 3,
|
|
3695
|
+
TARGET_FIRMWARE_P2 = 4,
|
|
3696
|
+
TARGET_COPROCESSOR = 5,
|
|
3697
|
+
TARGET_SE = 6,
|
|
3698
3698
|
TARGET_RESOURCE = 10
|
|
3699
3699
|
}
|
|
3700
|
-
type
|
|
3701
|
-
target_id:
|
|
3700
|
+
type DeviceFirmwareTarget = {
|
|
3701
|
+
target_id: DeviceFirmwareTargetType;
|
|
3702
3702
|
path: string;
|
|
3703
3703
|
};
|
|
3704
|
-
type
|
|
3705
|
-
targets:
|
|
3704
|
+
type DeviceFirmwareUpdate = {
|
|
3705
|
+
targets: DeviceFirmwareTarget[];
|
|
3706
|
+
max_concurrent?: number;
|
|
3706
3707
|
};
|
|
3707
|
-
type
|
|
3708
|
-
target_id:
|
|
3708
|
+
type DeviceFirmwareInstallProgress = {
|
|
3709
|
+
target_id: DeviceFirmwareTargetType;
|
|
3709
3710
|
progress: number;
|
|
3710
3711
|
stage?: string;
|
|
3711
3712
|
};
|
|
3712
|
-
type
|
|
3713
|
-
target_id:
|
|
3713
|
+
type DeviceFirmwareUpdateStatusEntry = {
|
|
3714
|
+
target_id: DeviceFirmwareTargetType;
|
|
3714
3715
|
status: number;
|
|
3715
3716
|
};
|
|
3716
|
-
type
|
|
3717
|
-
type
|
|
3718
|
-
targets:
|
|
3717
|
+
type DeviceGetFirmwareUpdateStatus = {};
|
|
3718
|
+
type DeviceFirmwareUpdateStatus = {
|
|
3719
|
+
targets: DeviceFirmwareUpdateStatusEntry[];
|
|
3719
3720
|
};
|
|
3720
3721
|
type FactoryDeviceInfoSettings = {
|
|
3721
3722
|
serial_no?: string;
|
|
@@ -3788,8 +3789,8 @@ type FilesystemDirRemove = {
|
|
|
3788
3789
|
path: string;
|
|
3789
3790
|
};
|
|
3790
3791
|
type FilesystemFormat = {};
|
|
3791
|
-
type
|
|
3792
|
-
type
|
|
3792
|
+
type DeviceGetOnboardingStatus = {};
|
|
3793
|
+
type DeviceOnboardingStatus = {
|
|
3793
3794
|
page_index?: number;
|
|
3794
3795
|
page_count?: number;
|
|
3795
3796
|
page_name?: string;
|
|
@@ -4371,22 +4372,22 @@ type MessageType = {
|
|
|
4371
4372
|
TxDetailsPage: TxDetailsPage;
|
|
4372
4373
|
GetProtoVersion: GetProtoVersion;
|
|
4373
4374
|
ProtoVersion: ProtoVersion;
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4375
|
+
DeviceReboot: DeviceReboot;
|
|
4376
|
+
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
4377
|
+
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
4378
|
+
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
4379
|
+
DeviceBluetoothInfo: DeviceBluetoothInfo;
|
|
4380
|
+
DeviceSEInfo: DeviceSEInfo;
|
|
4381
|
+
DeviceInfoTargets: DeviceInfoTargets;
|
|
4382
|
+
DeviceInfoTypes: DeviceInfoTypes;
|
|
4383
|
+
DeviceStatus: DeviceStatus;
|
|
4384
|
+
DeviceGetDeviceInfo: DeviceGetDeviceInfo;
|
|
4385
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4386
|
+
DeviceFirmwareUpdate: DeviceFirmwareUpdate;
|
|
4387
|
+
DeviceFirmwareInstallProgress: DeviceFirmwareInstallProgress;
|
|
4388
|
+
DeviceFirmwareUpdateStatusEntry: DeviceFirmwareUpdateStatusEntry;
|
|
4389
|
+
DeviceGetFirmwareUpdateStatus: DeviceGetFirmwareUpdateStatus;
|
|
4390
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4390
4391
|
FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
|
|
4391
4392
|
FactoryGetDeviceInfo: FactoryGetDeviceInfo;
|
|
4392
4393
|
FactoryDeviceInfo: FactoryDeviceInfo;
|
|
@@ -4402,8 +4403,8 @@ type MessageType = {
|
|
|
4402
4403
|
FilesystemDirMake: FilesystemDirMake;
|
|
4403
4404
|
FilesystemDirRemove: FilesystemDirRemove;
|
|
4404
4405
|
FilesystemFormat: FilesystemFormat;
|
|
4405
|
-
|
|
4406
|
-
|
|
4406
|
+
DeviceGetOnboardingStatus: DeviceGetOnboardingStatus;
|
|
4407
|
+
DeviceOnboardingStatus: DeviceOnboardingStatus;
|
|
4407
4408
|
};
|
|
4408
4409
|
type MessageKey = keyof MessageType;
|
|
4409
4410
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5127,33 +5128,33 @@ declare const messages_TxDetailsDisplayType: typeof TxDetailsDisplayType;
|
|
|
5127
5128
|
type messages_TxDetailsPage = TxDetailsPage;
|
|
5128
5129
|
type messages_GetProtoVersion = GetProtoVersion;
|
|
5129
5130
|
type messages_ProtoVersion = ProtoVersion;
|
|
5130
|
-
type
|
|
5131
|
-
declare const
|
|
5132
|
-
type
|
|
5131
|
+
type messages_DeviceRebootType = DeviceRebootType;
|
|
5132
|
+
declare const messages_DeviceRebootType: typeof DeviceRebootType;
|
|
5133
|
+
type messages_DeviceReboot = DeviceReboot;
|
|
5133
5134
|
type messages_DeviceType = DeviceType;
|
|
5134
5135
|
declare const messages_DeviceType: typeof DeviceType;
|
|
5135
|
-
type
|
|
5136
|
-
declare const
|
|
5137
|
-
type
|
|
5138
|
-
declare const
|
|
5139
|
-
type
|
|
5140
|
-
type
|
|
5141
|
-
type
|
|
5142
|
-
type
|
|
5143
|
-
type
|
|
5144
|
-
type
|
|
5145
|
-
type
|
|
5146
|
-
type
|
|
5147
|
-
type
|
|
5136
|
+
type messages_DeviceSeType = DeviceSeType;
|
|
5137
|
+
declare const messages_DeviceSeType: typeof DeviceSeType;
|
|
5138
|
+
type messages_DeviceSEState = DeviceSEState;
|
|
5139
|
+
declare const messages_DeviceSEState: typeof DeviceSEState;
|
|
5140
|
+
type messages_DeviceFirmwareImageInfo = DeviceFirmwareImageInfo;
|
|
5141
|
+
type messages_DeviceHardwareInfo = DeviceHardwareInfo;
|
|
5142
|
+
type messages_DeviceMainMcuInfo = DeviceMainMcuInfo;
|
|
5143
|
+
type messages_DeviceBluetoothInfo = DeviceBluetoothInfo;
|
|
5144
|
+
type messages_DeviceSEInfo = DeviceSEInfo;
|
|
5145
|
+
type messages_DeviceInfoTargets = DeviceInfoTargets;
|
|
5146
|
+
type messages_DeviceInfoTypes = DeviceInfoTypes;
|
|
5147
|
+
type messages_DeviceStatus = DeviceStatus;
|
|
5148
|
+
type messages_DeviceGetDeviceInfo = DeviceGetDeviceInfo;
|
|
5148
5149
|
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5149
|
-
type
|
|
5150
|
-
declare const
|
|
5151
|
-
type
|
|
5152
|
-
type
|
|
5153
|
-
type
|
|
5154
|
-
type
|
|
5155
|
-
type
|
|
5156
|
-
type
|
|
5150
|
+
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5151
|
+
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5152
|
+
type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
|
|
5153
|
+
type messages_DeviceFirmwareUpdate = DeviceFirmwareUpdate;
|
|
5154
|
+
type messages_DeviceFirmwareInstallProgress = DeviceFirmwareInstallProgress;
|
|
5155
|
+
type messages_DeviceFirmwareUpdateStatusEntry = DeviceFirmwareUpdateStatusEntry;
|
|
5156
|
+
type messages_DeviceGetFirmwareUpdateStatus = DeviceGetFirmwareUpdateStatus;
|
|
5157
|
+
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5157
5158
|
type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
|
|
5158
5159
|
type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
|
|
5159
5160
|
type messages_FactoryDeviceInfo = FactoryDeviceInfo;
|
|
@@ -5169,8 +5170,8 @@ type messages_FilesystemDirList = FilesystemDirList;
|
|
|
5169
5170
|
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5170
5171
|
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5171
5172
|
type messages_FilesystemFormat = FilesystemFormat;
|
|
5172
|
-
type
|
|
5173
|
-
type
|
|
5173
|
+
type messages_DeviceGetOnboardingStatus = DeviceGetOnboardingStatus;
|
|
5174
|
+
type messages_DeviceOnboardingStatus = DeviceOnboardingStatus;
|
|
5174
5175
|
type messages_MessageType = MessageType;
|
|
5175
5176
|
type messages_MessageKey = MessageKey;
|
|
5176
5177
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
@@ -5830,28 +5831,28 @@ declare namespace messages {
|
|
|
5830
5831
|
messages_TxDetailsPage as TxDetailsPage,
|
|
5831
5832
|
messages_GetProtoVersion as GetProtoVersion,
|
|
5832
5833
|
messages_ProtoVersion as ProtoVersion,
|
|
5833
|
-
|
|
5834
|
-
|
|
5834
|
+
messages_DeviceRebootType as DeviceRebootType,
|
|
5835
|
+
messages_DeviceReboot as DeviceReboot,
|
|
5835
5836
|
messages_DeviceType as DeviceType,
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5837
|
+
messages_DeviceSeType as DeviceSeType,
|
|
5838
|
+
messages_DeviceSEState as DeviceSEState,
|
|
5839
|
+
messages_DeviceFirmwareImageInfo as DeviceFirmwareImageInfo,
|
|
5840
|
+
messages_DeviceHardwareInfo as DeviceHardwareInfo,
|
|
5841
|
+
messages_DeviceMainMcuInfo as DeviceMainMcuInfo,
|
|
5842
|
+
messages_DeviceBluetoothInfo as DeviceBluetoothInfo,
|
|
5843
|
+
messages_DeviceSEInfo as DeviceSEInfo,
|
|
5844
|
+
messages_DeviceInfoTargets as DeviceInfoTargets,
|
|
5845
|
+
messages_DeviceInfoTypes as DeviceInfoTypes,
|
|
5846
|
+
messages_DeviceStatus as DeviceStatus,
|
|
5847
|
+
messages_DeviceGetDeviceInfo as DeviceGetDeviceInfo,
|
|
5847
5848
|
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5849
|
+
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
5850
|
+
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
5851
|
+
messages_DeviceFirmwareUpdate as DeviceFirmwareUpdate,
|
|
5852
|
+
messages_DeviceFirmwareInstallProgress as DeviceFirmwareInstallProgress,
|
|
5853
|
+
messages_DeviceFirmwareUpdateStatusEntry as DeviceFirmwareUpdateStatusEntry,
|
|
5854
|
+
messages_DeviceGetFirmwareUpdateStatus as DeviceGetFirmwareUpdateStatus,
|
|
5855
|
+
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
5855
5856
|
messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
|
|
5856
5857
|
messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
|
|
5857
5858
|
messages_FactoryDeviceInfo as FactoryDeviceInfo,
|
|
@@ -5867,8 +5868,8 @@ declare namespace messages {
|
|
|
5867
5868
|
messages_FilesystemDirMake as FilesystemDirMake,
|
|
5868
5869
|
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
5869
5870
|
messages_FilesystemFormat as FilesystemFormat,
|
|
5870
|
-
|
|
5871
|
-
|
|
5871
|
+
messages_DeviceGetOnboardingStatus as DeviceGetOnboardingStatus,
|
|
5872
|
+
messages_DeviceOnboardingStatus as DeviceOnboardingStatus,
|
|
5872
5873
|
messages_MessageType as MessageType,
|
|
5873
5874
|
messages_MessageKey as MessageKey,
|
|
5874
5875
|
messages_MessageResponse as MessageResponse,
|
|
@@ -6020,4 +6021,4 @@ declare const _default: {
|
|
|
6020
6021
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
6021
6022
|
};
|
|
6022
6023
|
|
|
6023
|
-
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, 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, DevGetOnboardingStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevOnboardingStatus, 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, 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, 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_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, 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, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, 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 };
|
|
6024
|
+
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, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceBluetoothInfo, DeviceEraseSector, DeviceFirmwareImageInfo, DeviceFirmwareInstallProgress, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdate, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusEntry, DeviceGetDeviceInfo, DeviceGetFirmwareUpdateStatus, DeviceGetOnboardingStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceOnboardingStatus, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceStatus, 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, 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, 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_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, 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, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1355,12 +1355,12 @@ exports.TxDetailsDisplayType = void 0;
|
|
|
1355
1355
|
TxDetailsDisplayType[TxDetailsDisplayType["DISPLAY_TYPE_INFO"] = 0] = "DISPLAY_TYPE_INFO";
|
|
1356
1356
|
TxDetailsDisplayType[TxDetailsDisplayType["DISPLAY_TYPE_SIGN"] = 1] = "DISPLAY_TYPE_SIGN";
|
|
1357
1357
|
})(exports.TxDetailsDisplayType || (exports.TxDetailsDisplayType = {}));
|
|
1358
|
-
exports.
|
|
1359
|
-
(function (
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
})(exports.
|
|
1358
|
+
exports.DeviceRebootType = void 0;
|
|
1359
|
+
(function (DeviceRebootType) {
|
|
1360
|
+
DeviceRebootType[DeviceRebootType["Normal"] = 0] = "Normal";
|
|
1361
|
+
DeviceRebootType[DeviceRebootType["Boardloader"] = 1] = "Boardloader";
|
|
1362
|
+
DeviceRebootType[DeviceRebootType["Bootloader"] = 2] = "Bootloader";
|
|
1363
|
+
})(exports.DeviceRebootType || (exports.DeviceRebootType = {}));
|
|
1364
1364
|
exports.DeviceType = void 0;
|
|
1365
1365
|
(function (DeviceType) {
|
|
1366
1366
|
DeviceType[DeviceType["CLASSIC1"] = 0] = "CLASSIC1";
|
|
@@ -1370,28 +1370,28 @@ exports.DeviceType = void 0;
|
|
|
1370
1370
|
DeviceType[DeviceType["PRO"] = 5] = "PRO";
|
|
1371
1371
|
DeviceType[DeviceType["CLASSIC1S_PURE"] = 6] = "CLASSIC1S_PURE";
|
|
1372
1372
|
})(exports.DeviceType || (exports.DeviceType = {}));
|
|
1373
|
-
exports.
|
|
1374
|
-
(function (
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
})(exports.
|
|
1378
|
-
exports.
|
|
1379
|
-
(function (
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
})(exports.
|
|
1384
|
-
exports.
|
|
1385
|
-
(function (
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
})(exports.
|
|
1373
|
+
exports.DeviceSeType = void 0;
|
|
1374
|
+
(function (DeviceSeType) {
|
|
1375
|
+
DeviceSeType[DeviceSeType["THD89"] = 0] = "THD89";
|
|
1376
|
+
DeviceSeType[DeviceSeType["SE608A"] = 1] = "SE608A";
|
|
1377
|
+
})(exports.DeviceSeType || (exports.DeviceSeType = {}));
|
|
1378
|
+
exports.DeviceSEState = void 0;
|
|
1379
|
+
(function (DeviceSEState) {
|
|
1380
|
+
DeviceSEState[DeviceSEState["BOOT"] = 0] = "BOOT";
|
|
1381
|
+
DeviceSEState[DeviceSEState["APP_FACTORY"] = 51] = "APP_FACTORY";
|
|
1382
|
+
DeviceSEState[DeviceSEState["APP"] = 85] = "APP";
|
|
1383
|
+
})(exports.DeviceSEState || (exports.DeviceSEState = {}));
|
|
1384
|
+
exports.DeviceFirmwareTargetType = void 0;
|
|
1385
|
+
(function (DeviceFirmwareTargetType) {
|
|
1386
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_INVALID"] = 0] = "TARGET_INVALID";
|
|
1387
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_ROMLOADER"] = 1] = "TARGET_ROMLOADER";
|
|
1388
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_BOOTLOADER"] = 2] = "TARGET_BOOTLOADER";
|
|
1389
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_FIRMWARE_P1"] = 3] = "TARGET_FIRMWARE_P1";
|
|
1390
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_FIRMWARE_P2"] = 4] = "TARGET_FIRMWARE_P2";
|
|
1391
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_COPROCESSOR"] = 5] = "TARGET_COPROCESSOR";
|
|
1392
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_SE"] = 6] = "TARGET_SE";
|
|
1393
|
+
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_RESOURCE"] = 10] = "TARGET_RESOURCE";
|
|
1394
|
+
})(exports.DeviceFirmwareTargetType || (exports.DeviceFirmwareTargetType = {}));
|
|
1395
1395
|
|
|
1396
1396
|
var messages = /*#__PURE__*/Object.freeze({
|
|
1397
1397
|
__proto__: null,
|
|
@@ -1457,11 +1457,11 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
1457
1457
|
get CommandFlags () { return exports.CommandFlags; },
|
|
1458
1458
|
get MoneroNetworkType () { return exports.MoneroNetworkType; },
|
|
1459
1459
|
get TxDetailsDisplayType () { return exports.TxDetailsDisplayType; },
|
|
1460
|
-
get
|
|
1460
|
+
get DeviceRebootType () { return exports.DeviceRebootType; },
|
|
1461
1461
|
get DeviceType () { return exports.DeviceType; },
|
|
1462
|
-
get
|
|
1463
|
-
get
|
|
1464
|
-
get
|
|
1462
|
+
get DeviceSeType () { return exports.DeviceSeType; },
|
|
1463
|
+
get DeviceSEState () { return exports.DeviceSEState; },
|
|
1464
|
+
get DeviceFirmwareTargetType () { return exports.DeviceFirmwareTargetType; }
|
|
1465
1465
|
});
|
|
1466
1466
|
|
|
1467
1467
|
protobuf__namespace.util.Long = Long__default["default"];
|