@onekeyfe/hd-transport 1.2.0-alpha.2 → 1.2.0-alpha.3
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__/messages.test.js +8 -0
- package/__tests__/protocol-v2.test.js +33 -0
- package/dist/index.d.ts +95 -124
- package/dist/index.js +28 -39
- package/dist/protocols/index.d.ts.map +1 -1
- package/dist/serialization/protobuf/messages.d.ts.map +1 -1
- package/dist/types/messages.d.ts +68 -88
- package/dist/types/messages.d.ts.map +1 -1
- package/messages-protocol-v2.json +329 -323
- package/package.json +2 -2
- package/src/protocols/index.ts +1 -0
- package/src/serialization/protobuf/messages.ts +6 -1
- package/src/types/messages.ts +86 -113
|
@@ -70,6 +70,14 @@ describe('messages', () => {
|
|
|
70
70
|
expect(() => createMessageFromType(messages, 0)).not.toThrow();
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
+
test('createMessageFromType throws a readable error for unknown ids', () => {
|
|
74
|
+
const messages = parseConfigure(json);
|
|
75
|
+
|
|
76
|
+
expect(() => createMessageFromType(messages, 99999)).toThrow(
|
|
77
|
+
'MessageType id "99999" is not defined in protobuf schema'
|
|
78
|
+
);
|
|
79
|
+
});
|
|
80
|
+
|
|
73
81
|
test('createMessageFromName (wire_type case)', () => {
|
|
74
82
|
const messages = parseConfigure(json);
|
|
75
83
|
const name = 'TxAckInput';
|
|
@@ -15,6 +15,18 @@ const protocolV1Messages = parseConfigure({
|
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
+
Failure: {
|
|
19
|
+
fields: {
|
|
20
|
+
code: {
|
|
21
|
+
type: 'uint32',
|
|
22
|
+
id: 1,
|
|
23
|
+
},
|
|
24
|
+
message: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
id: 2,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
18
30
|
ButtonRequest: {
|
|
19
31
|
fields: {
|
|
20
32
|
code: {
|
|
@@ -32,6 +44,7 @@ const protocolV1Messages = parseConfigure({
|
|
|
32
44
|
MessageType: {
|
|
33
45
|
values: {
|
|
34
46
|
MessageType_Success: 2,
|
|
47
|
+
MessageType_Failure: 3,
|
|
35
48
|
MessageType_ButtonRequest: 26,
|
|
36
49
|
MessageType_OnekeyGetFeatures: 10025,
|
|
37
50
|
MessageType_OnekeyFeatures: 10026,
|
|
@@ -714,6 +727,26 @@ describe('Protocol V2 framing and session', () => {
|
|
|
714
727
|
expect(decoded.type).toBe('ButtonRequest');
|
|
715
728
|
});
|
|
716
729
|
|
|
730
|
+
test('decodes legacy V1 Failure as a Protocol V2 fallback', () => {
|
|
731
|
+
// Some device-side rejection paths still return legacy Failure(type=3)
|
|
732
|
+
// inside a Protocol V2 frame. It must surface as a device Failure, not as
|
|
733
|
+
// a protobuf catalog TypeError.
|
|
734
|
+
const frame = ProtocolV2.encodeFrame(
|
|
735
|
+
{ ...schemas, protocolV2: schemas.protocolV1 },
|
|
736
|
+
'Failure',
|
|
737
|
+
{
|
|
738
|
+
code: 1,
|
|
739
|
+
message: 'Action cancelled',
|
|
740
|
+
}
|
|
741
|
+
);
|
|
742
|
+
const decoded = ProtocolV2.decodeFrame(schemas, frame);
|
|
743
|
+
expect(decoded.type).toBe('Failure');
|
|
744
|
+
expect(decoded.message).toEqual({
|
|
745
|
+
code: 1,
|
|
746
|
+
message: 'Action cancelled',
|
|
747
|
+
});
|
|
748
|
+
});
|
|
749
|
+
|
|
717
750
|
test('does not fall back to legacy V1 messages outside the allowlist', () => {
|
|
718
751
|
// OnekeyFeatures exists only in the V1 schema and is not allowlisted.
|
|
719
752
|
const frame = protocolV2.encodeProtobufFrame(10026, new Uint8Array(0));
|
package/dist/index.d.ts
CHANGED
|
@@ -3580,6 +3580,19 @@ type TxAckPaymentRequest = {
|
|
|
3580
3580
|
amount?: UintType;
|
|
3581
3581
|
signature: string;
|
|
3582
3582
|
};
|
|
3583
|
+
type DebugLinkInput = {
|
|
3584
|
+
x?: number;
|
|
3585
|
+
y?: number;
|
|
3586
|
+
duration_ms?: number;
|
|
3587
|
+
x_end?: number;
|
|
3588
|
+
y_end?: number;
|
|
3589
|
+
};
|
|
3590
|
+
type InternalMyAddressRequest = {
|
|
3591
|
+
coin_type: number;
|
|
3592
|
+
chain_id: number;
|
|
3593
|
+
account_index: number;
|
|
3594
|
+
derive_type: number;
|
|
3595
|
+
};
|
|
3583
3596
|
type SetBusy = {
|
|
3584
3597
|
expiry_ms?: number;
|
|
3585
3598
|
};
|
|
@@ -3596,6 +3609,21 @@ type Nonce = {
|
|
|
3596
3609
|
type WriteSEPrivateKey = {
|
|
3597
3610
|
private_key: string;
|
|
3598
3611
|
};
|
|
3612
|
+
declare enum WallpaperTarget {
|
|
3613
|
+
Home = 0,
|
|
3614
|
+
Lock = 1
|
|
3615
|
+
}
|
|
3616
|
+
type SetWallpaper = {
|
|
3617
|
+
target: WallpaperTarget;
|
|
3618
|
+
path: string;
|
|
3619
|
+
};
|
|
3620
|
+
type GetWallpaper = {
|
|
3621
|
+
target: WallpaperTarget;
|
|
3622
|
+
};
|
|
3623
|
+
type Wallpaper = {
|
|
3624
|
+
target: WallpaperTarget;
|
|
3625
|
+
path: string;
|
|
3626
|
+
};
|
|
3599
3627
|
type UnlockPath = {
|
|
3600
3628
|
address_n: number[];
|
|
3601
3629
|
mac?: string;
|
|
@@ -3609,37 +3637,37 @@ declare enum MoneroNetworkType {
|
|
|
3609
3637
|
STAGENET = 2,
|
|
3610
3638
|
FAKECHAIN = 3
|
|
3611
3639
|
}
|
|
3612
|
-
type
|
|
3640
|
+
type ViewAmount = {
|
|
3641
|
+
is_unlimited: boolean;
|
|
3613
3642
|
num: string;
|
|
3614
|
-
decimals: number;
|
|
3615
|
-
symbol: string;
|
|
3616
3643
|
};
|
|
3617
|
-
type
|
|
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
|
-
};
|
|
3627
|
-
type TxDetailsGeneral = {
|
|
3644
|
+
type ViewDetail = {
|
|
3628
3645
|
key: number;
|
|
3629
3646
|
value: string;
|
|
3630
3647
|
is_overview: boolean;
|
|
3648
|
+
has_icon: boolean;
|
|
3631
3649
|
};
|
|
3632
|
-
declare enum
|
|
3633
|
-
|
|
3634
|
-
|
|
3650
|
+
declare enum ViewTipType {
|
|
3651
|
+
Default = 0,
|
|
3652
|
+
Highlight = 1,
|
|
3653
|
+
Recommend = 2,
|
|
3654
|
+
Warning = 3,
|
|
3655
|
+
Danger = 4
|
|
3635
3656
|
}
|
|
3636
|
-
type
|
|
3657
|
+
type ViewTip = {
|
|
3658
|
+
type: ViewTipType;
|
|
3659
|
+
text: string;
|
|
3660
|
+
};
|
|
3661
|
+
type ViewSignPage = {
|
|
3637
3662
|
title: string;
|
|
3638
|
-
display_type: TxDetailsDisplayType;
|
|
3639
3663
|
amount?: UintType;
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3664
|
+
general: ViewDetail[];
|
|
3665
|
+
tip?: ViewTip;
|
|
3666
|
+
};
|
|
3667
|
+
type ViewVerifyPage = {
|
|
3668
|
+
title: string;
|
|
3669
|
+
address: string;
|
|
3670
|
+
path: string;
|
|
3643
3671
|
};
|
|
3644
3672
|
type GetProtoVersion = {};
|
|
3645
3673
|
type ProtoVersion = {
|
|
@@ -3650,17 +3678,9 @@ declare enum DevRebootType {
|
|
|
3650
3678
|
Boardloader = 1,
|
|
3651
3679
|
Bootloader = 2
|
|
3652
3680
|
}
|
|
3653
|
-
declare enum DeviceRebootType {
|
|
3654
|
-
Normal = 0,
|
|
3655
|
-
Romloader = 1,
|
|
3656
|
-
Bootloader = 2
|
|
3657
|
-
}
|
|
3658
3681
|
type DevReboot = {
|
|
3659
3682
|
reboot_type: DevRebootType;
|
|
3660
3683
|
};
|
|
3661
|
-
type DeviceReboot = {
|
|
3662
|
-
reboot_type: DeviceRebootType;
|
|
3663
|
-
};
|
|
3664
3684
|
declare enum DeviceType {
|
|
3665
3685
|
CLASSIC1 = 0,
|
|
3666
3686
|
CLASSIC1S = 1,
|
|
@@ -3686,6 +3706,7 @@ type DevFirmwareImageInfo = {
|
|
|
3686
3706
|
type DevHardwareInfo = {
|
|
3687
3707
|
device_type?: DeviceType;
|
|
3688
3708
|
serial_no?: string;
|
|
3709
|
+
device_id?: string;
|
|
3689
3710
|
hardware_version?: string;
|
|
3690
3711
|
hardware_version_raw_adc?: number;
|
|
3691
3712
|
};
|
|
@@ -3734,7 +3755,6 @@ type DevGetDeviceInfo = {
|
|
|
3734
3755
|
targets?: DevInfoTargets;
|
|
3735
3756
|
types?: DevInfoTypes;
|
|
3736
3757
|
};
|
|
3737
|
-
type DeviceGetDeviceInfo = DevGetDeviceInfo;
|
|
3738
3758
|
type ProtocolV2DeviceInfo = {
|
|
3739
3759
|
protocol_version: number;
|
|
3740
3760
|
hw?: DevHardwareInfo;
|
|
@@ -3747,72 +3767,35 @@ type ProtocolV2DeviceInfo = {
|
|
|
3747
3767
|
status?: DevStatus;
|
|
3748
3768
|
};
|
|
3749
3769
|
declare enum DevFirmwareTargetType {
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
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,
|
|
3770
|
+
TARGET_MAIN_APP = 0,
|
|
3771
|
+
TARGET_MAIN_BOOT = 1,
|
|
3772
|
+
TARGET_BT = 2,
|
|
3773
|
+
TARGET_SE1 = 3,
|
|
3774
|
+
TARGET_SE2 = 4,
|
|
3775
|
+
TARGET_SE3 = 5,
|
|
3776
|
+
TARGET_SE4 = 6,
|
|
3773
3777
|
TARGET_RESOURCE = 10
|
|
3774
3778
|
}
|
|
3775
3779
|
type DevFirmwareTarget = {
|
|
3776
3780
|
target_id: DevFirmwareTargetType;
|
|
3777
3781
|
path: string;
|
|
3778
3782
|
};
|
|
3779
|
-
type DeviceFirmwareTarget = {
|
|
3780
|
-
target_id: DeviceFirmwareTargetType;
|
|
3781
|
-
path: string;
|
|
3782
|
-
};
|
|
3783
3783
|
type DevFirmwareUpdate = {
|
|
3784
3784
|
targets: DevFirmwareTarget[];
|
|
3785
3785
|
};
|
|
3786
|
-
type DeviceFirmwareUpdate = {
|
|
3787
|
-
targets: DeviceFirmwareTarget[];
|
|
3788
|
-
max_concurrent?: number;
|
|
3789
|
-
};
|
|
3790
3786
|
type DevFirmwareInstallProgress = {
|
|
3791
3787
|
target_id: DevFirmwareTargetType;
|
|
3792
3788
|
progress: number;
|
|
3793
3789
|
stage?: string;
|
|
3794
3790
|
};
|
|
3795
|
-
type DeviceFirmwareInstallProgress = {
|
|
3796
|
-
target_id: DeviceFirmwareTargetType;
|
|
3797
|
-
progress: number;
|
|
3798
|
-
stage?: string;
|
|
3799
|
-
};
|
|
3800
3791
|
type DevFirmwareUpdateStatusEntry = {
|
|
3801
3792
|
target_id: DevFirmwareTargetType;
|
|
3802
3793
|
status: number;
|
|
3803
3794
|
};
|
|
3804
|
-
type DeviceFirmwareUpdateStatusEntry = {
|
|
3805
|
-
target_id: DeviceFirmwareTargetType;
|
|
3806
|
-
status: number;
|
|
3807
|
-
};
|
|
3808
3795
|
type DevGetFirmwareUpdateStatus = {};
|
|
3809
|
-
type DeviceGetFirmwareUpdateStatus = {};
|
|
3810
3796
|
type DevFirmwareUpdateStatus = {
|
|
3811
3797
|
targets: DevFirmwareUpdateStatusEntry[];
|
|
3812
3798
|
};
|
|
3813
|
-
type DeviceFirmwareUpdateStatus = {
|
|
3814
|
-
targets: DeviceFirmwareUpdateStatusEntry[];
|
|
3815
|
-
};
|
|
3816
3799
|
type FactoryDeviceInfoSettings = {
|
|
3817
3800
|
serial_no?: string;
|
|
3818
3801
|
cpu_info?: string;
|
|
@@ -4472,23 +4455,27 @@ type MessageType = {
|
|
|
4472
4455
|
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
4473
4456
|
PaymentRequestMemo: PaymentRequestMemo;
|
|
4474
4457
|
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4458
|
+
DebugLinkInput: DebugLinkInput;
|
|
4459
|
+
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4475
4460
|
SetBusy: SetBusy;
|
|
4476
4461
|
GetFirmwareHash: GetFirmwareHash;
|
|
4477
4462
|
FirmwareHash: FirmwareHash;
|
|
4478
4463
|
GetNonce: GetNonce;
|
|
4479
4464
|
Nonce: Nonce;
|
|
4480
4465
|
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4466
|
+
SetWallpaper: SetWallpaper;
|
|
4467
|
+
GetWallpaper: GetWallpaper;
|
|
4468
|
+
Wallpaper: Wallpaper;
|
|
4481
4469
|
UnlockPath: UnlockPath;
|
|
4482
4470
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4471
|
+
ViewAmount: ViewAmount;
|
|
4472
|
+
ViewDetail: ViewDetail;
|
|
4473
|
+
ViewTip: ViewTip;
|
|
4474
|
+
ViewSignPage: ViewSignPage;
|
|
4475
|
+
ViewVerifyPage: ViewVerifyPage;
|
|
4488
4476
|
GetProtoVersion: GetProtoVersion;
|
|
4489
4477
|
ProtoVersion: ProtoVersion;
|
|
4490
4478
|
DevReboot: DevReboot;
|
|
4491
|
-
DeviceReboot: DeviceReboot;
|
|
4492
4479
|
DevFirmwareImageInfo: DevFirmwareImageInfo;
|
|
4493
4480
|
DevHardwareInfo: DevHardwareInfo;
|
|
4494
4481
|
DevMainMcuInfo: DevMainMcuInfo;
|
|
@@ -4498,19 +4485,12 @@ type MessageType = {
|
|
|
4498
4485
|
DevInfoTypes: DevInfoTypes;
|
|
4499
4486
|
DevStatus: DevStatus;
|
|
4500
4487
|
DevGetDeviceInfo: DevGetDeviceInfo;
|
|
4501
|
-
DeviceGetDeviceInfo: DeviceGetDeviceInfo;
|
|
4502
4488
|
DevFirmwareTarget: DevFirmwareTarget;
|
|
4503
|
-
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4504
4489
|
DevFirmwareUpdate: DevFirmwareUpdate;
|
|
4505
|
-
DeviceFirmwareUpdate: DeviceFirmwareUpdate;
|
|
4506
4490
|
DevFirmwareInstallProgress: DevFirmwareInstallProgress;
|
|
4507
|
-
DeviceFirmwareInstallProgress: DeviceFirmwareInstallProgress;
|
|
4508
4491
|
DevFirmwareUpdateStatusEntry: DevFirmwareUpdateStatusEntry;
|
|
4509
|
-
DeviceFirmwareUpdateStatusEntry: DeviceFirmwareUpdateStatusEntry;
|
|
4510
4492
|
DevGetFirmwareUpdateStatus: DevGetFirmwareUpdateStatus;
|
|
4511
|
-
DeviceGetFirmwareUpdateStatus: DeviceGetFirmwareUpdateStatus;
|
|
4512
4493
|
DevFirmwareUpdateStatus: DevFirmwareUpdateStatus;
|
|
4513
|
-
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4514
4494
|
FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
|
|
4515
4495
|
FactoryGetDeviceInfo: FactoryGetDeviceInfo;
|
|
4516
4496
|
FactoryDeviceInfo: FactoryDeviceInfo;
|
|
@@ -5242,31 +5222,35 @@ type messages_RefundMemo = RefundMemo;
|
|
|
5242
5222
|
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
5243
5223
|
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5244
5224
|
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5225
|
+
type messages_DebugLinkInput = DebugLinkInput;
|
|
5226
|
+
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5245
5227
|
type messages_SetBusy = SetBusy;
|
|
5246
5228
|
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5247
5229
|
type messages_FirmwareHash = FirmwareHash;
|
|
5248
5230
|
type messages_GetNonce = GetNonce;
|
|
5249
5231
|
type messages_Nonce = Nonce;
|
|
5250
5232
|
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5233
|
+
type messages_WallpaperTarget = WallpaperTarget;
|
|
5234
|
+
declare const messages_WallpaperTarget: typeof WallpaperTarget;
|
|
5235
|
+
type messages_SetWallpaper = SetWallpaper;
|
|
5236
|
+
type messages_GetWallpaper = GetWallpaper;
|
|
5237
|
+
type messages_Wallpaper = Wallpaper;
|
|
5251
5238
|
type messages_UnlockPath = UnlockPath;
|
|
5252
5239
|
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5253
5240
|
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5254
5241
|
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5255
|
-
type
|
|
5256
|
-
type
|
|
5257
|
-
type
|
|
5258
|
-
|
|
5259
|
-
type
|
|
5260
|
-
|
|
5261
|
-
type
|
|
5242
|
+
type messages_ViewAmount = ViewAmount;
|
|
5243
|
+
type messages_ViewDetail = ViewDetail;
|
|
5244
|
+
type messages_ViewTipType = ViewTipType;
|
|
5245
|
+
declare const messages_ViewTipType: typeof ViewTipType;
|
|
5246
|
+
type messages_ViewTip = ViewTip;
|
|
5247
|
+
type messages_ViewSignPage = ViewSignPage;
|
|
5248
|
+
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5262
5249
|
type messages_GetProtoVersion = GetProtoVersion;
|
|
5263
5250
|
type messages_ProtoVersion = ProtoVersion;
|
|
5264
5251
|
type messages_DevRebootType = DevRebootType;
|
|
5265
5252
|
declare const messages_DevRebootType: typeof DevRebootType;
|
|
5266
|
-
type messages_DeviceRebootType = DeviceRebootType;
|
|
5267
|
-
declare const messages_DeviceRebootType: typeof DeviceRebootType;
|
|
5268
5253
|
type messages_DevReboot = DevReboot;
|
|
5269
|
-
type messages_DeviceReboot = DeviceReboot;
|
|
5270
5254
|
type messages_DeviceType = DeviceType;
|
|
5271
5255
|
declare const messages_DeviceType: typeof DeviceType;
|
|
5272
5256
|
type messages_DevSeType = DevSeType;
|
|
@@ -5282,24 +5266,15 @@ type messages_DevInfoTargets = DevInfoTargets;
|
|
|
5282
5266
|
type messages_DevInfoTypes = DevInfoTypes;
|
|
5283
5267
|
type messages_DevStatus = DevStatus;
|
|
5284
5268
|
type messages_DevGetDeviceInfo = DevGetDeviceInfo;
|
|
5285
|
-
type messages_DeviceGetDeviceInfo = DeviceGetDeviceInfo;
|
|
5286
5269
|
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5287
5270
|
type messages_DevFirmwareTargetType = DevFirmwareTargetType;
|
|
5288
5271
|
declare const messages_DevFirmwareTargetType: typeof DevFirmwareTargetType;
|
|
5289
|
-
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5290
|
-
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5291
5272
|
type messages_DevFirmwareTarget = DevFirmwareTarget;
|
|
5292
|
-
type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
|
|
5293
5273
|
type messages_DevFirmwareUpdate = DevFirmwareUpdate;
|
|
5294
|
-
type messages_DeviceFirmwareUpdate = DeviceFirmwareUpdate;
|
|
5295
5274
|
type messages_DevFirmwareInstallProgress = DevFirmwareInstallProgress;
|
|
5296
|
-
type messages_DeviceFirmwareInstallProgress = DeviceFirmwareInstallProgress;
|
|
5297
5275
|
type messages_DevFirmwareUpdateStatusEntry = DevFirmwareUpdateStatusEntry;
|
|
5298
|
-
type messages_DeviceFirmwareUpdateStatusEntry = DeviceFirmwareUpdateStatusEntry;
|
|
5299
5276
|
type messages_DevGetFirmwareUpdateStatus = DevGetFirmwareUpdateStatus;
|
|
5300
|
-
type messages_DeviceGetFirmwareUpdateStatus = DeviceGetFirmwareUpdateStatus;
|
|
5301
5277
|
type messages_DevFirmwareUpdateStatus = DevFirmwareUpdateStatus;
|
|
5302
|
-
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5303
5278
|
type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
|
|
5304
5279
|
type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
|
|
5305
5280
|
type messages_FactoryDeviceInfo = FactoryDeviceInfo;
|
|
@@ -5966,27 +5941,31 @@ declare namespace messages {
|
|
|
5966
5941
|
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
5967
5942
|
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
5968
5943
|
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
5944
|
+
messages_DebugLinkInput as DebugLinkInput,
|
|
5945
|
+
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
5969
5946
|
messages_SetBusy as SetBusy,
|
|
5970
5947
|
messages_GetFirmwareHash as GetFirmwareHash,
|
|
5971
5948
|
messages_FirmwareHash as FirmwareHash,
|
|
5972
5949
|
messages_GetNonce as GetNonce,
|
|
5973
5950
|
messages_Nonce as Nonce,
|
|
5974
5951
|
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
5952
|
+
messages_WallpaperTarget as WallpaperTarget,
|
|
5953
|
+
messages_SetWallpaper as SetWallpaper,
|
|
5954
|
+
messages_GetWallpaper as GetWallpaper,
|
|
5955
|
+
messages_Wallpaper as Wallpaper,
|
|
5975
5956
|
messages_UnlockPath as UnlockPath,
|
|
5976
5957
|
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
5977
5958
|
messages_MoneroNetworkType as MoneroNetworkType,
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5959
|
+
messages_ViewAmount as ViewAmount,
|
|
5960
|
+
messages_ViewDetail as ViewDetail,
|
|
5961
|
+
messages_ViewTipType as ViewTipType,
|
|
5962
|
+
messages_ViewTip as ViewTip,
|
|
5963
|
+
messages_ViewSignPage as ViewSignPage,
|
|
5964
|
+
messages_ViewVerifyPage as ViewVerifyPage,
|
|
5984
5965
|
messages_GetProtoVersion as GetProtoVersion,
|
|
5985
5966
|
messages_ProtoVersion as ProtoVersion,
|
|
5986
5967
|
messages_DevRebootType as DevRebootType,
|
|
5987
|
-
messages_DeviceRebootType as DeviceRebootType,
|
|
5988
5968
|
messages_DevReboot as DevReboot,
|
|
5989
|
-
messages_DeviceReboot as DeviceReboot,
|
|
5990
5969
|
messages_DeviceType as DeviceType,
|
|
5991
5970
|
messages_DevSeType as DevSeType,
|
|
5992
5971
|
messages_DevSEState as DevSEState,
|
|
@@ -5999,22 +5978,14 @@ declare namespace messages {
|
|
|
5999
5978
|
messages_DevInfoTypes as DevInfoTypes,
|
|
6000
5979
|
messages_DevStatus as DevStatus,
|
|
6001
5980
|
messages_DevGetDeviceInfo as DevGetDeviceInfo,
|
|
6002
|
-
messages_DeviceGetDeviceInfo as DeviceGetDeviceInfo,
|
|
6003
5981
|
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
6004
5982
|
messages_DevFirmwareTargetType as DevFirmwareTargetType,
|
|
6005
|
-
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
6006
5983
|
messages_DevFirmwareTarget as DevFirmwareTarget,
|
|
6007
|
-
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
6008
5984
|
messages_DevFirmwareUpdate as DevFirmwareUpdate,
|
|
6009
|
-
messages_DeviceFirmwareUpdate as DeviceFirmwareUpdate,
|
|
6010
5985
|
messages_DevFirmwareInstallProgress as DevFirmwareInstallProgress,
|
|
6011
|
-
messages_DeviceFirmwareInstallProgress as DeviceFirmwareInstallProgress,
|
|
6012
5986
|
messages_DevFirmwareUpdateStatusEntry as DevFirmwareUpdateStatusEntry,
|
|
6013
|
-
messages_DeviceFirmwareUpdateStatusEntry as DeviceFirmwareUpdateStatusEntry,
|
|
6014
5987
|
messages_DevGetFirmwareUpdateStatus as DevGetFirmwareUpdateStatus,
|
|
6015
|
-
messages_DeviceGetFirmwareUpdateStatus as DeviceGetFirmwareUpdateStatus,
|
|
6016
5988
|
messages_DevFirmwareUpdateStatus as DevFirmwareUpdateStatus,
|
|
6017
|
-
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
6018
5989
|
messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
|
|
6019
5990
|
messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
|
|
6020
5991
|
messages_FactoryDeviceInfo as FactoryDeviceInfo,
|
|
@@ -6203,4 +6174,4 @@ declare const _default: {
|
|
|
6203
6174
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
6204
6175
|
};
|
|
6205
6176
|
|
|
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 };
|
|
6177
|
+
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DebugLinkInput, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevBluetoothInfo, DevFirmwareImageInfo, DevFirmwareInstallProgress, DevFirmwareTarget, DevFirmwareTargetType, DevFirmwareUpdate, DevFirmwareUpdateStatus, DevFirmwareUpdateStatusEntry, DevGetDeviceInfo, DevGetFirmwareUpdateStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevReboot, DevRebootType, DevSEInfo, DevSEState, DevSeType, DevStatus, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, FactoryDeviceInfo, FactoryDeviceInfoSettings, FactoryGetDeviceInfo, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFixPermission, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOnboardingStatus, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetProtoVersion, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NewDevice, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingStatus, OnboardingStep, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtoVersion, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2Schemas, ProtocolV2Session, ProtocolV2SessionOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, Restore, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, Setup, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
|
package/dist/index.js
CHANGED
|
@@ -249,7 +249,11 @@ const createMessageFromName = (messages, name) => {
|
|
|
249
249
|
};
|
|
250
250
|
const createMessageFromType = (messages, typeId) => {
|
|
251
251
|
const MessageType = messages.lookupEnum('MessageType');
|
|
252
|
-
const
|
|
252
|
+
const rawMessageName = MessageType.valuesById[typeId];
|
|
253
|
+
if (!rawMessageName) {
|
|
254
|
+
throw new Error(`MessageType id "${typeId}" is not defined in protobuf schema`);
|
|
255
|
+
}
|
|
256
|
+
const messageName = rawMessageName.replace('MessageType_', '');
|
|
253
257
|
const Message = messages.lookupType(messageName);
|
|
254
258
|
return {
|
|
255
259
|
Message,
|
|
@@ -605,6 +609,7 @@ const resolveProtocolV2EncodeSchema = (name, schemas) => {
|
|
|
605
609
|
}
|
|
606
610
|
};
|
|
607
611
|
const PROTOCOL_V2_LEGACY_DECODE_ALLOWLIST = new Set([
|
|
612
|
+
'Failure',
|
|
608
613
|
'ButtonRequest',
|
|
609
614
|
'EntropyRequest',
|
|
610
615
|
'PinMatrixRequest',
|
|
@@ -1488,6 +1493,11 @@ exports.CommandFlags = void 0;
|
|
|
1488
1493
|
CommandFlags[CommandFlags["Default"] = 0] = "Default";
|
|
1489
1494
|
CommandFlags[CommandFlags["Factory_Only"] = 1] = "Factory_Only";
|
|
1490
1495
|
})(exports.CommandFlags || (exports.CommandFlags = {}));
|
|
1496
|
+
exports.WallpaperTarget = void 0;
|
|
1497
|
+
(function (WallpaperTarget) {
|
|
1498
|
+
WallpaperTarget[WallpaperTarget["Home"] = 0] = "Home";
|
|
1499
|
+
WallpaperTarget[WallpaperTarget["Lock"] = 1] = "Lock";
|
|
1500
|
+
})(exports.WallpaperTarget || (exports.WallpaperTarget = {}));
|
|
1491
1501
|
exports.MoneroNetworkType = void 0;
|
|
1492
1502
|
(function (MoneroNetworkType) {
|
|
1493
1503
|
MoneroNetworkType[MoneroNetworkType["MAINNET"] = 0] = "MAINNET";
|
|
@@ -1495,23 +1505,20 @@ exports.MoneroNetworkType = void 0;
|
|
|
1495
1505
|
MoneroNetworkType[MoneroNetworkType["STAGENET"] = 2] = "STAGENET";
|
|
1496
1506
|
MoneroNetworkType[MoneroNetworkType["FAKECHAIN"] = 3] = "FAKECHAIN";
|
|
1497
1507
|
})(exports.MoneroNetworkType || (exports.MoneroNetworkType = {}));
|
|
1498
|
-
exports.
|
|
1499
|
-
(function (
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1508
|
+
exports.ViewTipType = void 0;
|
|
1509
|
+
(function (ViewTipType) {
|
|
1510
|
+
ViewTipType[ViewTipType["Default"] = 0] = "Default";
|
|
1511
|
+
ViewTipType[ViewTipType["Highlight"] = 1] = "Highlight";
|
|
1512
|
+
ViewTipType[ViewTipType["Recommend"] = 2] = "Recommend";
|
|
1513
|
+
ViewTipType[ViewTipType["Warning"] = 3] = "Warning";
|
|
1514
|
+
ViewTipType[ViewTipType["Danger"] = 4] = "Danger";
|
|
1515
|
+
})(exports.ViewTipType || (exports.ViewTipType = {}));
|
|
1503
1516
|
exports.DevRebootType = void 0;
|
|
1504
1517
|
(function (DevRebootType) {
|
|
1505
1518
|
DevRebootType[DevRebootType["Normal"] = 0] = "Normal";
|
|
1506
1519
|
DevRebootType[DevRebootType["Boardloader"] = 1] = "Boardloader";
|
|
1507
1520
|
DevRebootType[DevRebootType["Bootloader"] = 2] = "Bootloader";
|
|
1508
1521
|
})(exports.DevRebootType || (exports.DevRebootType = {}));
|
|
1509
|
-
exports.DeviceRebootType = void 0;
|
|
1510
|
-
(function (DeviceRebootType) {
|
|
1511
|
-
DeviceRebootType[DeviceRebootType["Normal"] = 0] = "Normal";
|
|
1512
|
-
DeviceRebootType[DeviceRebootType["Romloader"] = 1] = "Romloader";
|
|
1513
|
-
DeviceRebootType[DeviceRebootType["Bootloader"] = 2] = "Bootloader";
|
|
1514
|
-
})(exports.DeviceRebootType || (exports.DeviceRebootType = {}));
|
|
1515
1522
|
exports.DeviceType = void 0;
|
|
1516
1523
|
(function (DeviceType) {
|
|
1517
1524
|
DeviceType[DeviceType["CLASSIC1"] = 0] = "CLASSIC1";
|
|
@@ -1534,32 +1541,15 @@ exports.DevSEState = void 0;
|
|
|
1534
1541
|
})(exports.DevSEState || (exports.DevSEState = {}));
|
|
1535
1542
|
exports.DevFirmwareTargetType = void 0;
|
|
1536
1543
|
(function (DevFirmwareTargetType) {
|
|
1537
|
-
DevFirmwareTargetType[DevFirmwareTargetType["
|
|
1538
|
-
DevFirmwareTargetType[DevFirmwareTargetType["
|
|
1539
|
-
DevFirmwareTargetType[DevFirmwareTargetType["
|
|
1540
|
-
DevFirmwareTargetType[DevFirmwareTargetType["
|
|
1541
|
-
DevFirmwareTargetType[DevFirmwareTargetType["
|
|
1542
|
-
DevFirmwareTargetType[DevFirmwareTargetType["
|
|
1543
|
-
DevFirmwareTargetType[DevFirmwareTargetType["
|
|
1544
|
-
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE02"] = 7] = "TARGET_SE02";
|
|
1545
|
-
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE03"] = 8] = "TARGET_SE03";
|
|
1546
|
-
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE04"] = 9] = "TARGET_SE04";
|
|
1544
|
+
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_MAIN_APP"] = 0] = "TARGET_MAIN_APP";
|
|
1545
|
+
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_MAIN_BOOT"] = 1] = "TARGET_MAIN_BOOT";
|
|
1546
|
+
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_BT"] = 2] = "TARGET_BT";
|
|
1547
|
+
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE1"] = 3] = "TARGET_SE1";
|
|
1548
|
+
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE2"] = 4] = "TARGET_SE2";
|
|
1549
|
+
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE3"] = 5] = "TARGET_SE3";
|
|
1550
|
+
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE4"] = 6] = "TARGET_SE4";
|
|
1547
1551
|
DevFirmwareTargetType[DevFirmwareTargetType["TARGET_RESOURCE"] = 10] = "TARGET_RESOURCE";
|
|
1548
1552
|
})(exports.DevFirmwareTargetType || (exports.DevFirmwareTargetType = {}));
|
|
1549
|
-
exports.DeviceFirmwareTargetType = void 0;
|
|
1550
|
-
(function (DeviceFirmwareTargetType) {
|
|
1551
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_INVALID"] = 0] = "TARGET_INVALID";
|
|
1552
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_ROMLOADER"] = 1] = "TARGET_ROMLOADER";
|
|
1553
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_BOOTLOADER"] = 2] = "TARGET_BOOTLOADER";
|
|
1554
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_APPLICATION_P1"] = 3] = "TARGET_APPLICATION_P1";
|
|
1555
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_APPLICATION_P2"] = 4] = "TARGET_APPLICATION_P2";
|
|
1556
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_COPROCESSOR"] = 5] = "TARGET_COPROCESSOR";
|
|
1557
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_SE01"] = 6] = "TARGET_SE01";
|
|
1558
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_SE02"] = 7] = "TARGET_SE02";
|
|
1559
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_SE03"] = 8] = "TARGET_SE03";
|
|
1560
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_SE04"] = 9] = "TARGET_SE04";
|
|
1561
|
-
DeviceFirmwareTargetType[DeviceFirmwareTargetType["TARGET_RESOURCE"] = 10] = "TARGET_RESOURCE";
|
|
1562
|
-
})(exports.DeviceFirmwareTargetType || (exports.DeviceFirmwareTargetType = {}));
|
|
1563
1553
|
exports.OnboardingStep = void 0;
|
|
1564
1554
|
(function (OnboardingStep) {
|
|
1565
1555
|
OnboardingStep[OnboardingStep["ONBOARDING_STEP_UNKNOWN"] = 0] = "ONBOARDING_STEP_UNKNOWN";
|
|
@@ -1631,15 +1621,14 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
1631
1621
|
get TronResourceCode () { return exports.TronResourceCode; },
|
|
1632
1622
|
get TronMessageType () { return exports.TronMessageType; },
|
|
1633
1623
|
get CommandFlags () { return exports.CommandFlags; },
|
|
1624
|
+
get WallpaperTarget () { return exports.WallpaperTarget; },
|
|
1634
1625
|
get MoneroNetworkType () { return exports.MoneroNetworkType; },
|
|
1635
|
-
get
|
|
1626
|
+
get ViewTipType () { return exports.ViewTipType; },
|
|
1636
1627
|
get DevRebootType () { return exports.DevRebootType; },
|
|
1637
|
-
get DeviceRebootType () { return exports.DeviceRebootType; },
|
|
1638
1628
|
get DeviceType () { return exports.DeviceType; },
|
|
1639
1629
|
get DevSeType () { return exports.DevSeType; },
|
|
1640
1630
|
get DevSEState () { return exports.DevSEState; },
|
|
1641
1631
|
get DevFirmwareTargetType () { return exports.DevFirmwareTargetType; },
|
|
1642
|
-
get DeviceFirmwareTargetType () { return exports.DeviceFirmwareTargetType; },
|
|
1643
1632
|
get OnboardingStep () { return exports.OnboardingStep; }
|
|
1644
1633
|
});
|
|
1645
1634
|
|