@onekeyfe/hd-transport 1.2.0-alpha.3 → 1.2.0-alpha.4
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/README.md +1 -1
- package/__tests__/protocol-v2.test.js +104 -77
- package/dist/constants.d.ts +2 -2
- package/dist/index.d.ts +329 -232
- package/dist/index.js +63 -43
- package/dist/protocols/v2/session.d.ts +1 -1
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/types/messages.d.ts +235 -157
- package/dist/types/messages.d.ts.map +1 -1
- package/messages-protocol-v2.json +486 -1072
- package/package.json +2 -2
- package/scripts/protobuf-build.sh +51 -143
- package/src/constants.ts +2 -2
- package/src/protocols/v2/session.ts +4 -5
- package/src/types/messages.ts +291 -193
package/src/types/messages.ts
CHANGED
|
@@ -1193,12 +1193,16 @@ export enum FailureType {
|
|
|
1193
1193
|
Failure_WipeCodeMismatch = 13,
|
|
1194
1194
|
Failure_InvalidSession = 14,
|
|
1195
1195
|
Failure_FirmwareError = 99,
|
|
1196
|
+
Failure_InvalidMessage = 1,
|
|
1197
|
+
Failure_UndefinedError = 2,
|
|
1198
|
+
Failure_UsageError = 3,
|
|
1196
1199
|
}
|
|
1197
1200
|
|
|
1198
1201
|
// Failure
|
|
1199
1202
|
export type Failure = {
|
|
1200
1203
|
code?: FailureType;
|
|
1201
1204
|
message?: string;
|
|
1205
|
+
subcode?: number;
|
|
1202
1206
|
};
|
|
1203
1207
|
|
|
1204
1208
|
export enum Enum_ButtonRequestType {
|
|
@@ -2456,6 +2460,28 @@ export type OnekeyFeatures = {
|
|
|
2456
2460
|
onekey_se02_boot_build_id?: string;
|
|
2457
2461
|
onekey_se03_boot_build_id?: string;
|
|
2458
2462
|
onekey_se04_boot_build_id?: string;
|
|
2463
|
+
onekey_romloader_version?: string;
|
|
2464
|
+
onekey_bootloader_version?: string;
|
|
2465
|
+
onekey_romloader_hash?: string;
|
|
2466
|
+
onekey_bootloader_hash?: string;
|
|
2467
|
+
onekey_romloader_build_id?: string;
|
|
2468
|
+
onekey_bootloader_build_id?: string;
|
|
2469
|
+
onekey_coprocessor_bt_name?: string;
|
|
2470
|
+
onekey_coprocessor_version?: string;
|
|
2471
|
+
onekey_coprocessor_build_id?: string;
|
|
2472
|
+
onekey_coprocessor_hash?: string;
|
|
2473
|
+
onekey_se01_bootloader_version?: string;
|
|
2474
|
+
onekey_se02_bootloader_version?: string;
|
|
2475
|
+
onekey_se03_bootloader_version?: string;
|
|
2476
|
+
onekey_se04_bootloader_version?: string;
|
|
2477
|
+
onekey_se01_bootloader_hash?: string;
|
|
2478
|
+
onekey_se02_bootloader_hash?: string;
|
|
2479
|
+
onekey_se03_bootloader_hash?: string;
|
|
2480
|
+
onekey_se04_bootloader_hash?: string;
|
|
2481
|
+
onekey_se01_bootloader_build_id?: string;
|
|
2482
|
+
onekey_se02_bootloader_build_id?: string;
|
|
2483
|
+
onekey_se03_bootloader_build_id?: string;
|
|
2484
|
+
onekey_se04_bootloader_build_id?: string;
|
|
2459
2485
|
};
|
|
2460
2486
|
|
|
2461
2487
|
// LockDevice
|
|
@@ -4452,15 +4478,6 @@ export type TxAckPaymentRequest = {
|
|
|
4452
4478
|
signature: string;
|
|
4453
4479
|
};
|
|
4454
4480
|
|
|
4455
|
-
// DebugLinkInput
|
|
4456
|
-
export type DebugLinkInput = {
|
|
4457
|
-
x?: number;
|
|
4458
|
-
y?: number;
|
|
4459
|
-
duration_ms?: number;
|
|
4460
|
-
x_end?: number;
|
|
4461
|
-
y_end?: number;
|
|
4462
|
-
};
|
|
4463
|
-
|
|
4464
4481
|
// InternalMyAddressRequest
|
|
4465
4482
|
export type InternalMyAddressRequest = {
|
|
4466
4483
|
coin_type: number;
|
|
@@ -4469,6 +4486,13 @@ export type InternalMyAddressRequest = {
|
|
|
4469
4486
|
derive_type: number;
|
|
4470
4487
|
};
|
|
4471
4488
|
|
|
4489
|
+
// StartSession
|
|
4490
|
+
export type StartSession = {
|
|
4491
|
+
session_id?: string;
|
|
4492
|
+
_skip_passphrase?: boolean;
|
|
4493
|
+
derive_cardano?: boolean;
|
|
4494
|
+
};
|
|
4495
|
+
|
|
4472
4496
|
// SetBusy
|
|
4473
4497
|
export type SetBusy = {
|
|
4474
4498
|
expiry_ms?: number;
|
|
@@ -4580,23 +4604,171 @@ export type ViewVerifyPage = {
|
|
|
4580
4604
|
path: string;
|
|
4581
4605
|
};
|
|
4582
4606
|
|
|
4583
|
-
//
|
|
4584
|
-
export type
|
|
4607
|
+
// ProtocolInfoRequest
|
|
4608
|
+
export type ProtocolInfoRequest = {};
|
|
4585
4609
|
|
|
4586
|
-
//
|
|
4587
|
-
export type
|
|
4588
|
-
|
|
4610
|
+
// ProtocolInfo
|
|
4611
|
+
export type ProtocolInfo = {
|
|
4612
|
+
version: number;
|
|
4613
|
+
supported_messages: number[];
|
|
4614
|
+
protobuf_definition?: string;
|
|
4589
4615
|
};
|
|
4590
4616
|
|
|
4591
|
-
export enum
|
|
4617
|
+
export enum DeviceRebootType {
|
|
4592
4618
|
Normal = 0,
|
|
4593
|
-
|
|
4619
|
+
Romloader = 1,
|
|
4594
4620
|
Bootloader = 2,
|
|
4595
4621
|
}
|
|
4596
4622
|
|
|
4597
|
-
//
|
|
4598
|
-
export type
|
|
4599
|
-
reboot_type:
|
|
4623
|
+
// DeviceReboot
|
|
4624
|
+
export type DeviceReboot = {
|
|
4625
|
+
reboot_type: DeviceRebootType;
|
|
4626
|
+
};
|
|
4627
|
+
|
|
4628
|
+
// DeviceSettings
|
|
4629
|
+
export type DeviceSettings = {
|
|
4630
|
+
label?: string;
|
|
4631
|
+
bt_enable?: boolean;
|
|
4632
|
+
language?: string;
|
|
4633
|
+
};
|
|
4634
|
+
|
|
4635
|
+
// DeviceSettingsGet
|
|
4636
|
+
export type DeviceSettingsGet = {};
|
|
4637
|
+
|
|
4638
|
+
// DeviceSettingsSet
|
|
4639
|
+
export type DeviceSettingsSet = {
|
|
4640
|
+
settings: DeviceSettings;
|
|
4641
|
+
};
|
|
4642
|
+
|
|
4643
|
+
// DeviceCertificate
|
|
4644
|
+
export type DeviceCertificate = {
|
|
4645
|
+
cert_and_pubkey: string;
|
|
4646
|
+
private_key?: string;
|
|
4647
|
+
};
|
|
4648
|
+
|
|
4649
|
+
// DeviceCertificateWrite
|
|
4650
|
+
export type DeviceCertificateWrite = {
|
|
4651
|
+
cert: DeviceCertificate;
|
|
4652
|
+
};
|
|
4653
|
+
|
|
4654
|
+
// DeviceCertificateRead
|
|
4655
|
+
export type DeviceCertificateRead = {};
|
|
4656
|
+
|
|
4657
|
+
// DeviceCertificateSignature
|
|
4658
|
+
export type DeviceCertificateSignature = {
|
|
4659
|
+
data: string;
|
|
4660
|
+
};
|
|
4661
|
+
|
|
4662
|
+
// DeviceCertificateSign
|
|
4663
|
+
export type DeviceCertificateSign = {
|
|
4664
|
+
data: string;
|
|
4665
|
+
};
|
|
4666
|
+
|
|
4667
|
+
export enum DeviceFirmwareTargetType {
|
|
4668
|
+
FW_MGMT_TARGET_INVALID = 0,
|
|
4669
|
+
FW_MGMT_TARGET_CRATE = 1,
|
|
4670
|
+
FW_MGMT_TARGET_ROMLOADER = 2,
|
|
4671
|
+
FW_MGMT_TARGET_BOOTLOADER = 3,
|
|
4672
|
+
FW_MGMT_TARGET_APPLICATION_P1 = 4,
|
|
4673
|
+
FW_MGMT_TARGET_APPLICATION_P2 = 5,
|
|
4674
|
+
FW_MGMT_TARGET_COPROCESSOR = 6,
|
|
4675
|
+
FW_MGMT_TARGET_SE01 = 7,
|
|
4676
|
+
FW_MGMT_TARGET_SE02 = 8,
|
|
4677
|
+
FW_MGMT_TARGET_SE03 = 9,
|
|
4678
|
+
FW_MGMT_TARGET_SE04 = 10,
|
|
4679
|
+
}
|
|
4680
|
+
|
|
4681
|
+
export enum DeviceFirmwareUpdateTaskStatus {
|
|
4682
|
+
FW_MGMT_UPDATER_TASK_STATUS_PENDING = 0,
|
|
4683
|
+
FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS = 1,
|
|
4684
|
+
FW_MGMT_UPDATER_TASK_STATUS_FINISHED = 2,
|
|
4685
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND = 3,
|
|
4686
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ = 4,
|
|
4687
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE = 5,
|
|
4688
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY = 6,
|
|
4689
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL = 7,
|
|
4690
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT = 8,
|
|
4691
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
|
|
4692
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10,
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4695
|
+
// DeviceFirmwareTarget
|
|
4696
|
+
export type DeviceFirmwareTarget = {
|
|
4697
|
+
target_id: DeviceFirmwareTargetType;
|
|
4698
|
+
path: string;
|
|
4699
|
+
};
|
|
4700
|
+
|
|
4701
|
+
// DeviceFirmwareUpdateRequest
|
|
4702
|
+
export type DeviceFirmwareUpdateRequest = {
|
|
4703
|
+
targets: DeviceFirmwareTarget[];
|
|
4704
|
+
};
|
|
4705
|
+
|
|
4706
|
+
// DeviceFirmwareUpdateRecord
|
|
4707
|
+
export type DeviceFirmwareUpdateRecord = {
|
|
4708
|
+
target_id: DeviceFirmwareTargetType;
|
|
4709
|
+
status?: DeviceFirmwareUpdateTaskStatus;
|
|
4710
|
+
payload_version?: number;
|
|
4711
|
+
path?: string;
|
|
4712
|
+
};
|
|
4713
|
+
|
|
4714
|
+
// DeviceFirmwareUpdateRecordFields
|
|
4715
|
+
export type DeviceFirmwareUpdateRecordFields = {
|
|
4716
|
+
status?: boolean;
|
|
4717
|
+
payload_version?: boolean;
|
|
4718
|
+
path?: boolean;
|
|
4719
|
+
};
|
|
4720
|
+
|
|
4721
|
+
// DeviceFirmwareUpdateStatusGet
|
|
4722
|
+
export type DeviceFirmwareUpdateStatusGet = {
|
|
4723
|
+
fields?: DeviceFirmwareUpdateRecordFields;
|
|
4724
|
+
};
|
|
4725
|
+
|
|
4726
|
+
// DeviceFirmwareUpdateStatus
|
|
4727
|
+
export type DeviceFirmwareUpdateStatus = {
|
|
4728
|
+
records: DeviceFirmwareUpdateRecord[];
|
|
4729
|
+
};
|
|
4730
|
+
|
|
4731
|
+
export enum DeviceFactoryAck {
|
|
4732
|
+
FACTORY_ACK_SUCCESS = 0,
|
|
4733
|
+
FACTORY_ACK_FAIL = 1,
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
// DeviceFactoryInfoManufactureTime
|
|
4737
|
+
export type DeviceFactoryInfoManufactureTime = {
|
|
4738
|
+
year: number;
|
|
4739
|
+
month: number;
|
|
4740
|
+
day: number;
|
|
4741
|
+
hour: number;
|
|
4742
|
+
minute: number;
|
|
4743
|
+
second: number;
|
|
4744
|
+
};
|
|
4745
|
+
|
|
4746
|
+
// DeviceFactoryInfo
|
|
4747
|
+
export type DeviceFactoryInfo = {
|
|
4748
|
+
version?: number;
|
|
4749
|
+
serial_number?: string;
|
|
4750
|
+
burn_in_completed?: boolean;
|
|
4751
|
+
factory_test_completed?: boolean;
|
|
4752
|
+
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
4753
|
+
};
|
|
4754
|
+
|
|
4755
|
+
// DeviceFactoryInfoSet
|
|
4756
|
+
export type DeviceFactoryInfoSet = {
|
|
4757
|
+
info: DeviceFactoryInfo;
|
|
4758
|
+
};
|
|
4759
|
+
|
|
4760
|
+
// DeviceFactoryInfoGet
|
|
4761
|
+
export type DeviceFactoryInfoGet = {};
|
|
4762
|
+
|
|
4763
|
+
// DeviceFactoryPermanentLock
|
|
4764
|
+
export type DeviceFactoryPermanentLock = {
|
|
4765
|
+
check_a: string;
|
|
4766
|
+
check_b: string;
|
|
4767
|
+
};
|
|
4768
|
+
|
|
4769
|
+
// DeviceFactoryTest
|
|
4770
|
+
export type DeviceFactoryTest = {
|
|
4771
|
+
burn_in_test: boolean;
|
|
4600
4772
|
};
|
|
4601
4773
|
|
|
4602
4774
|
export enum DeviceType {
|
|
@@ -4606,63 +4778,65 @@ export enum DeviceType {
|
|
|
4606
4778
|
TOUCH = 3,
|
|
4607
4779
|
PRO = 5,
|
|
4608
4780
|
CLASSIC1S_PURE = 6,
|
|
4781
|
+
PRO2 = 7,
|
|
4782
|
+
NEO = 8,
|
|
4609
4783
|
}
|
|
4610
4784
|
|
|
4611
|
-
export enum
|
|
4785
|
+
export enum DeviceSeType {
|
|
4612
4786
|
THD89 = 0,
|
|
4613
4787
|
SE608A = 1,
|
|
4614
4788
|
}
|
|
4615
4789
|
|
|
4616
|
-
export enum
|
|
4790
|
+
export enum DeviceSEState {
|
|
4617
4791
|
BOOT = 0,
|
|
4618
4792
|
APP_FACTORY = 51,
|
|
4619
4793
|
APP = 85,
|
|
4620
4794
|
}
|
|
4621
4795
|
|
|
4622
|
-
//
|
|
4623
|
-
export type
|
|
4796
|
+
// DeviceFirmwareImageInfo
|
|
4797
|
+
export type DeviceFirmwareImageInfo = {
|
|
4624
4798
|
version?: string;
|
|
4625
4799
|
build_id?: string;
|
|
4626
4800
|
hash?: string;
|
|
4627
4801
|
};
|
|
4628
4802
|
|
|
4629
|
-
//
|
|
4630
|
-
export type
|
|
4631
|
-
|
|
4803
|
+
// DeviceHardwareInfo
|
|
4804
|
+
export type DeviceHardwareInfo = {
|
|
4805
|
+
Device_type?: DeviceType;
|
|
4632
4806
|
serial_no?: string;
|
|
4633
|
-
device_id?: string;
|
|
4634
4807
|
hardware_version?: string;
|
|
4635
4808
|
hardware_version_raw_adc?: number;
|
|
4636
4809
|
};
|
|
4637
4810
|
|
|
4638
|
-
//
|
|
4639
|
-
export type
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4811
|
+
// DeviceMainMcuInfo
|
|
4812
|
+
export type DeviceMainMcuInfo = {
|
|
4813
|
+
romloader?: DeviceFirmwareImageInfo;
|
|
4814
|
+
bootloader?: DeviceFirmwareImageInfo;
|
|
4815
|
+
application?: DeviceFirmwareImageInfo;
|
|
4816
|
+
application_data?: DeviceFirmwareImageInfo;
|
|
4643
4817
|
};
|
|
4644
4818
|
|
|
4645
|
-
//
|
|
4646
|
-
export type
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4819
|
+
// DeviceCoprocessorInfo
|
|
4820
|
+
export type DeviceCoprocessorInfo = {
|
|
4821
|
+
bootloader?: DeviceFirmwareImageInfo;
|
|
4822
|
+
application?: DeviceFirmwareImageInfo;
|
|
4823
|
+
bt_adv_name?: string;
|
|
4824
|
+
bt_mac?: string;
|
|
4651
4825
|
};
|
|
4652
4826
|
|
|
4653
|
-
//
|
|
4654
|
-
export type
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
type?:
|
|
4658
|
-
state?:
|
|
4827
|
+
// DeviceSEInfo
|
|
4828
|
+
export type DeviceSEInfo = {
|
|
4829
|
+
bootloader?: DeviceFirmwareImageInfo;
|
|
4830
|
+
application?: DeviceFirmwareImageInfo;
|
|
4831
|
+
type?: DeviceSeType;
|
|
4832
|
+
state?: DeviceSEState;
|
|
4659
4833
|
};
|
|
4660
4834
|
|
|
4661
|
-
//
|
|
4662
|
-
export type
|
|
4835
|
+
// DeviceInfoTargets
|
|
4836
|
+
export type DeviceInfoTargets = {
|
|
4663
4837
|
hw?: boolean;
|
|
4664
4838
|
fw?: boolean;
|
|
4665
|
-
|
|
4839
|
+
coprocessor?: boolean;
|
|
4666
4840
|
se1?: boolean;
|
|
4667
4841
|
se2?: boolean;
|
|
4668
4842
|
se3?: boolean;
|
|
@@ -4670,108 +4844,57 @@ export type DevInfoTargets = {
|
|
|
4670
4844
|
status?: boolean;
|
|
4671
4845
|
};
|
|
4672
4846
|
|
|
4673
|
-
//
|
|
4674
|
-
export type
|
|
4847
|
+
// DeviceInfoTypes
|
|
4848
|
+
export type DeviceInfoTypes = {
|
|
4675
4849
|
version?: boolean;
|
|
4676
4850
|
build_id?: boolean;
|
|
4677
4851
|
hash?: boolean;
|
|
4678
4852
|
specific?: boolean;
|
|
4679
4853
|
};
|
|
4680
4854
|
|
|
4681
|
-
//
|
|
4682
|
-
export type
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
init_states?: boolean;
|
|
4686
|
-
backup_required?: boolean;
|
|
4687
|
-
passphrase_protection?: boolean;
|
|
4688
|
-
label?: string;
|
|
4689
|
-
};
|
|
4690
|
-
|
|
4691
|
-
// DevGetDeviceInfo
|
|
4692
|
-
export type DevGetDeviceInfo = {
|
|
4693
|
-
targets?: DevInfoTargets;
|
|
4694
|
-
types?: DevInfoTypes;
|
|
4855
|
+
// DeviceInfoGet
|
|
4856
|
+
export type DeviceInfoGet = {
|
|
4857
|
+
targets?: DeviceInfoTargets;
|
|
4858
|
+
types?: DeviceInfoTypes;
|
|
4695
4859
|
};
|
|
4696
4860
|
|
|
4697
4861
|
// ProtocolV2DeviceInfo
|
|
4698
4862
|
export type ProtocolV2DeviceInfo = {
|
|
4699
4863
|
protocol_version: number;
|
|
4700
|
-
hw?:
|
|
4701
|
-
fw?:
|
|
4702
|
-
|
|
4703
|
-
se1?:
|
|
4704
|
-
se2?:
|
|
4705
|
-
se3?:
|
|
4706
|
-
se4?:
|
|
4707
|
-
status?:
|
|
4708
|
-
};
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
TARGET_BT = 2,
|
|
4714
|
-
TARGET_SE1 = 3,
|
|
4715
|
-
TARGET_SE2 = 4,
|
|
4716
|
-
TARGET_SE3 = 5,
|
|
4717
|
-
TARGET_SE4 = 6,
|
|
4718
|
-
TARGET_RESOURCE = 10,
|
|
4719
|
-
}
|
|
4720
|
-
|
|
4721
|
-
// DevFirmwareTarget
|
|
4722
|
-
export type DevFirmwareTarget = {
|
|
4723
|
-
target_id: DevFirmwareTargetType;
|
|
4724
|
-
path: string;
|
|
4725
|
-
};
|
|
4726
|
-
|
|
4727
|
-
// DevFirmwareUpdate
|
|
4728
|
-
export type DevFirmwareUpdate = {
|
|
4729
|
-
targets: DevFirmwareTarget[];
|
|
4730
|
-
};
|
|
4731
|
-
|
|
4732
|
-
// DevFirmwareInstallProgress
|
|
4733
|
-
export type DevFirmwareInstallProgress = {
|
|
4734
|
-
target_id: DevFirmwareTargetType;
|
|
4735
|
-
progress: number;
|
|
4736
|
-
stage?: string;
|
|
4737
|
-
};
|
|
4738
|
-
|
|
4739
|
-
// DevFirmwareUpdateStatusEntry
|
|
4740
|
-
export type DevFirmwareUpdateStatusEntry = {
|
|
4741
|
-
target_id: DevFirmwareTargetType;
|
|
4742
|
-
status: number;
|
|
4743
|
-
};
|
|
4744
|
-
|
|
4745
|
-
// DevGetFirmwareUpdateStatus
|
|
4746
|
-
export type DevGetFirmwareUpdateStatus = {};
|
|
4747
|
-
|
|
4748
|
-
// DevFirmwareUpdateStatus
|
|
4749
|
-
export type DevFirmwareUpdateStatus = {
|
|
4750
|
-
targets: DevFirmwareUpdateStatusEntry[];
|
|
4864
|
+
hw?: DeviceHardwareInfo;
|
|
4865
|
+
fw?: DeviceMainMcuInfo;
|
|
4866
|
+
coprocessor?: DeviceCoprocessorInfo;
|
|
4867
|
+
se1?: DeviceSEInfo;
|
|
4868
|
+
se2?: DeviceSEInfo;
|
|
4869
|
+
se3?: DeviceSEInfo;
|
|
4870
|
+
se4?: DeviceSEInfo;
|
|
4871
|
+
status?: DeviceStatus;
|
|
4872
|
+
};
|
|
4873
|
+
|
|
4874
|
+
// DeviceSessionGet
|
|
4875
|
+
export type DeviceSessionGet = {
|
|
4876
|
+
session_id?: string;
|
|
4751
4877
|
};
|
|
4752
4878
|
|
|
4753
|
-
//
|
|
4754
|
-
export type
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
pre_firmware?: string;
|
|
4879
|
+
// DeviceSession
|
|
4880
|
+
export type DeviceSession = {
|
|
4881
|
+
session_id?: string;
|
|
4882
|
+
btc_test_address?: string;
|
|
4758
4883
|
};
|
|
4759
4884
|
|
|
4760
|
-
//
|
|
4761
|
-
export type
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
cpu_info?: string;
|
|
4770
|
-
pre_firmware?: string;
|
|
4885
|
+
// DeviceStatus
|
|
4886
|
+
export type DeviceStatus = {
|
|
4887
|
+
device_id?: string;
|
|
4888
|
+
unlocked?: boolean;
|
|
4889
|
+
init_states?: boolean;
|
|
4890
|
+
backup_required?: boolean;
|
|
4891
|
+
passphrase_enabled?: boolean;
|
|
4892
|
+
attach_to_pin_enabled?: boolean;
|
|
4893
|
+
unlocked_by_attach_to_pin?: boolean;
|
|
4771
4894
|
};
|
|
4772
4895
|
|
|
4773
|
-
//
|
|
4774
|
-
export type
|
|
4896
|
+
// FilesystemPermissionFix
|
|
4897
|
+
export type FilesystemPermissionFix = {};
|
|
4775
4898
|
|
|
4776
4899
|
// FilesystemPathInfo
|
|
4777
4900
|
export type FilesystemPathInfo = {
|
|
@@ -4851,39 +4974,6 @@ export type FilesystemDirRemove = {
|
|
|
4851
4974
|
// FilesystemFormat
|
|
4852
4975
|
export type FilesystemFormat = {};
|
|
4853
4976
|
|
|
4854
|
-
export enum OnboardingStep {
|
|
4855
|
-
ONBOARDING_STEP_UNKNOWN = 0,
|
|
4856
|
-
ONBOARDING_STEP_DEVICE_VERIFICATION = 1,
|
|
4857
|
-
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
4858
|
-
ONBOARDING_STEP_SETUP = 3,
|
|
4859
|
-
ONBOARDING_STEP_FIRMWARE = 4,
|
|
4860
|
-
}
|
|
4861
|
-
|
|
4862
|
-
// GetOnboardingStatus
|
|
4863
|
-
export type GetOnboardingStatus = {};
|
|
4864
|
-
|
|
4865
|
-
export type NewDevice = {
|
|
4866
|
-
seedcard_backup?: boolean;
|
|
4867
|
-
};
|
|
4868
|
-
|
|
4869
|
-
export type Restore = {
|
|
4870
|
-
mnemonic?: boolean;
|
|
4871
|
-
seedcard?: boolean;
|
|
4872
|
-
};
|
|
4873
|
-
|
|
4874
|
-
export type Setup = {
|
|
4875
|
-
new_device?: NewDevice;
|
|
4876
|
-
restore?: Restore;
|
|
4877
|
-
};
|
|
4878
|
-
|
|
4879
|
-
// OnboardingStatus
|
|
4880
|
-
export type OnboardingStatus = {
|
|
4881
|
-
step: OnboardingStep;
|
|
4882
|
-
setup?: Setup;
|
|
4883
|
-
detail_code?: number;
|
|
4884
|
-
detail_str?: string;
|
|
4885
|
-
};
|
|
4886
|
-
|
|
4887
4977
|
// custom connect definitions
|
|
4888
4978
|
export type MessageType = {
|
|
4889
4979
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
@@ -5448,8 +5538,8 @@ export type MessageType = {
|
|
|
5448
5538
|
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
5449
5539
|
PaymentRequestMemo: PaymentRequestMemo;
|
|
5450
5540
|
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
5451
|
-
DebugLinkInput: DebugLinkInput;
|
|
5452
5541
|
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
5542
|
+
StartSession: StartSession;
|
|
5453
5543
|
SetBusy: SetBusy;
|
|
5454
5544
|
GetFirmwareHash: GetFirmwareHash;
|
|
5455
5545
|
FirmwareHash: FirmwareHash;
|
|
@@ -5466,28 +5556,41 @@ export type MessageType = {
|
|
|
5466
5556
|
ViewTip: ViewTip;
|
|
5467
5557
|
ViewSignPage: ViewSignPage;
|
|
5468
5558
|
ViewVerifyPage: ViewVerifyPage;
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5559
|
+
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
5560
|
+
ProtocolInfo: ProtocolInfo;
|
|
5561
|
+
DeviceReboot: DeviceReboot;
|
|
5562
|
+
DeviceSettings: DeviceSettings;
|
|
5563
|
+
DeviceSettingsGet: DeviceSettingsGet;
|
|
5564
|
+
DeviceSettingsSet: DeviceSettingsSet;
|
|
5565
|
+
DeviceCertificate: DeviceCertificate;
|
|
5566
|
+
DeviceCertificateWrite: DeviceCertificateWrite;
|
|
5567
|
+
DeviceCertificateRead: DeviceCertificateRead;
|
|
5568
|
+
DeviceCertificateSignature: DeviceCertificateSignature;
|
|
5569
|
+
DeviceCertificateSign: DeviceCertificateSign;
|
|
5570
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
5571
|
+
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
5572
|
+
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
5573
|
+
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
5574
|
+
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
5575
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
5576
|
+
DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
|
|
5577
|
+
DeviceFactoryInfo: DeviceFactoryInfo;
|
|
5578
|
+
DeviceFactoryInfoSet: DeviceFactoryInfoSet;
|
|
5579
|
+
DeviceFactoryInfoGet: DeviceFactoryInfoGet;
|
|
5580
|
+
DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
|
|
5581
|
+
DeviceFactoryTest: DeviceFactoryTest;
|
|
5582
|
+
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
5583
|
+
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
5584
|
+
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
5585
|
+
DeviceCoprocessorInfo: DeviceCoprocessorInfo;
|
|
5586
|
+
DeviceSEInfo: DeviceSEInfo;
|
|
5587
|
+
DeviceInfoTargets: DeviceInfoTargets;
|
|
5588
|
+
DeviceInfoTypes: DeviceInfoTypes;
|
|
5589
|
+
DeviceInfoGet: DeviceInfoGet;
|
|
5590
|
+
DeviceSessionGet: DeviceSessionGet;
|
|
5591
|
+
DeviceSession: DeviceSession;
|
|
5592
|
+
DeviceStatus: DeviceStatus;
|
|
5593
|
+
FilesystemPermissionFix: FilesystemPermissionFix;
|
|
5491
5594
|
FilesystemPathInfo: FilesystemPathInfo;
|
|
5492
5595
|
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
5493
5596
|
FilesystemFile: FilesystemFile;
|
|
@@ -5499,11 +5602,6 @@ export type MessageType = {
|
|
|
5499
5602
|
FilesystemDirMake: FilesystemDirMake;
|
|
5500
5603
|
FilesystemDirRemove: FilesystemDirRemove;
|
|
5501
5604
|
FilesystemFormat: FilesystemFormat;
|
|
5502
|
-
GetOnboardingStatus: GetOnboardingStatus;
|
|
5503
|
-
NewDevice: NewDevice;
|
|
5504
|
-
Restore: Restore;
|
|
5505
|
-
Setup: Setup;
|
|
5506
|
-
OnboardingStatus: OnboardingStatus;
|
|
5507
5605
|
};
|
|
5508
5606
|
|
|
5509
5607
|
export type MessageKey = keyof MessageType;
|