@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.
@@ -70,10 +70,10 @@ const protocolV2Messages = parseConfigure({
70
70
  },
71
71
  },
72
72
  },
73
- DevFirmwareUpdate: {
73
+ DeviceFirmwareUpdate: {
74
74
  fields: {},
75
75
  },
76
- DevFirmwareInstallProgress: {
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
- MessageType_DevFirmwareUpdate: 61000,
119
- MessageType_DevFirmwareInstallProgress: 61001,
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, 'DevFirmwareInstallProgress', {
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
- 'DevFirmwareUpdate',
418
+ 'DeviceFirmwareUpdate',
419
419
  {},
420
420
  {
421
- intermediateTypes: ['DevFirmwareInstallProgress'],
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: 'DevFirmwareInstallProgress',
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 DevRebootType {
3598
+ declare enum DeviceRebootType {
3599
3599
  Normal = 0,
3600
3600
  Boardloader = 1,
3601
3601
  Bootloader = 2
3602
3602
  }
3603
- type DevReboot = {
3604
- reboot_type: DevRebootType;
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 DevSeType {
3614
+ declare enum DeviceSeType {
3615
3615
  THD89 = 0,
3616
3616
  SE608A = 1
3617
3617
  }
3618
- declare enum DevSEState {
3618
+ declare enum DeviceSEState {
3619
3619
  BOOT = 0,
3620
3620
  APP_FACTORY = 51,
3621
3621
  APP = 85
3622
3622
  }
3623
- type DevFirmwareImageInfo = {
3623
+ type DeviceFirmwareImageInfo = {
3624
3624
  version?: string;
3625
3625
  build_id?: string;
3626
3626
  hash?: string;
3627
3627
  };
3628
- type DevHardwareInfo = {
3629
- device_type?: DeviceType;
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 DevMainMcuInfo = {
3635
- board?: DevFirmwareImageInfo;
3636
- boot?: DevFirmwareImageInfo;
3637
- app?: DevFirmwareImageInfo;
3634
+ type DeviceMainMcuInfo = {
3635
+ board?: DeviceFirmwareImageInfo;
3636
+ boot?: DeviceFirmwareImageInfo;
3637
+ app?: DeviceFirmwareImageInfo;
3638
3638
  };
3639
- type DevBluetoothInfo = {
3640
- boot?: DevFirmwareImageInfo;
3641
- app?: DevFirmwareImageInfo;
3639
+ type DeviceBluetoothInfo = {
3640
+ boot?: DeviceFirmwareImageInfo;
3641
+ app?: DeviceFirmwareImageInfo;
3642
3642
  adv_name?: string;
3643
3643
  mac?: string;
3644
3644
  };
3645
- type DevSEInfo = {
3646
- boot?: DevFirmwareImageInfo;
3647
- app?: DevFirmwareImageInfo;
3648
- type?: DevSeType;
3649
- state?: DevSEState;
3645
+ type DeviceSEInfo = {
3646
+ boot?: DeviceFirmwareImageInfo;
3647
+ app?: DeviceFirmwareImageInfo;
3648
+ type?: DeviceSeType;
3649
+ state?: DeviceSEState;
3650
3650
  };
3651
- type DevInfoTargets = {
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 DevInfoTypes = {
3661
+ type DeviceInfoTypes = {
3662
3662
  version?: boolean;
3663
3663
  build_id?: boolean;
3664
3664
  hash?: boolean;
3665
3665
  specific?: boolean;
3666
3666
  };
3667
- type DevStatus = {
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 DevGetDeviceInfo = {
3676
- targets?: DevInfoTargets;
3677
- types?: DevInfoTypes;
3675
+ type DeviceGetDeviceInfo = {
3676
+ targets?: DeviceInfoTargets;
3677
+ types?: DeviceInfoTypes;
3678
3678
  };
3679
3679
  type ProtocolV2DeviceInfo = {
3680
3680
  protocol_version: number;
3681
- hw?: DevHardwareInfo;
3682
- fw?: DevMainMcuInfo;
3683
- bt?: DevBluetoothInfo;
3684
- se1?: DevSEInfo;
3685
- se2?: DevSEInfo;
3686
- se3?: DevSEInfo;
3687
- se4?: DevSEInfo;
3688
- status?: DevStatus;
3689
- };
3690
- declare enum DevFirmwareTargetType {
3691
- TARGET_MAIN_APP = 0,
3692
- TARGET_MAIN_BOOT = 1,
3693
- TARGET_BT = 2,
3694
- TARGET_SE1 = 3,
3695
- TARGET_SE2 = 4,
3696
- TARGET_SE3 = 5,
3697
- TARGET_SE4 = 6,
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 DevFirmwareTarget = {
3701
- target_id: DevFirmwareTargetType;
3700
+ type DeviceFirmwareTarget = {
3701
+ target_id: DeviceFirmwareTargetType;
3702
3702
  path: string;
3703
3703
  };
3704
- type DevFirmwareUpdate = {
3705
- targets: DevFirmwareTarget[];
3704
+ type DeviceFirmwareUpdate = {
3705
+ targets: DeviceFirmwareTarget[];
3706
+ max_concurrent?: number;
3706
3707
  };
3707
- type DevFirmwareInstallProgress = {
3708
- target_id: DevFirmwareTargetType;
3708
+ type DeviceFirmwareInstallProgress = {
3709
+ target_id: DeviceFirmwareTargetType;
3709
3710
  progress: number;
3710
3711
  stage?: string;
3711
3712
  };
3712
- type DevFirmwareUpdateStatusEntry = {
3713
- target_id: DevFirmwareTargetType;
3713
+ type DeviceFirmwareUpdateStatusEntry = {
3714
+ target_id: DeviceFirmwareTargetType;
3714
3715
  status: number;
3715
3716
  };
3716
- type DevGetFirmwareUpdateStatus = {};
3717
- type DevFirmwareUpdateStatus = {
3718
- targets: DevFirmwareUpdateStatusEntry[];
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 DevGetOnboardingStatus = {};
3792
- type DevOnboardingStatus = {
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
- DevReboot: DevReboot;
4375
- DevFirmwareImageInfo: DevFirmwareImageInfo;
4376
- DevHardwareInfo: DevHardwareInfo;
4377
- DevMainMcuInfo: DevMainMcuInfo;
4378
- DevBluetoothInfo: DevBluetoothInfo;
4379
- DevSEInfo: DevSEInfo;
4380
- DevInfoTargets: DevInfoTargets;
4381
- DevInfoTypes: DevInfoTypes;
4382
- DevStatus: DevStatus;
4383
- DevGetDeviceInfo: DevGetDeviceInfo;
4384
- DevFirmwareTarget: DevFirmwareTarget;
4385
- DevFirmwareUpdate: DevFirmwareUpdate;
4386
- DevFirmwareInstallProgress: DevFirmwareInstallProgress;
4387
- DevFirmwareUpdateStatusEntry: DevFirmwareUpdateStatusEntry;
4388
- DevGetFirmwareUpdateStatus: DevGetFirmwareUpdateStatus;
4389
- DevFirmwareUpdateStatus: DevFirmwareUpdateStatus;
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
- DevGetOnboardingStatus: DevGetOnboardingStatus;
4406
- DevOnboardingStatus: DevOnboardingStatus;
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 messages_DevRebootType = DevRebootType;
5131
- declare const messages_DevRebootType: typeof DevRebootType;
5132
- type messages_DevReboot = DevReboot;
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 messages_DevSeType = DevSeType;
5136
- declare const messages_DevSeType: typeof DevSeType;
5137
- type messages_DevSEState = DevSEState;
5138
- declare const messages_DevSEState: typeof DevSEState;
5139
- type messages_DevFirmwareImageInfo = DevFirmwareImageInfo;
5140
- type messages_DevHardwareInfo = DevHardwareInfo;
5141
- type messages_DevMainMcuInfo = DevMainMcuInfo;
5142
- type messages_DevBluetoothInfo = DevBluetoothInfo;
5143
- type messages_DevSEInfo = DevSEInfo;
5144
- type messages_DevInfoTargets = DevInfoTargets;
5145
- type messages_DevInfoTypes = DevInfoTypes;
5146
- type messages_DevStatus = DevStatus;
5147
- type messages_DevGetDeviceInfo = DevGetDeviceInfo;
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 messages_DevFirmwareTargetType = DevFirmwareTargetType;
5150
- declare const messages_DevFirmwareTargetType: typeof DevFirmwareTargetType;
5151
- type messages_DevFirmwareTarget = DevFirmwareTarget;
5152
- type messages_DevFirmwareUpdate = DevFirmwareUpdate;
5153
- type messages_DevFirmwareInstallProgress = DevFirmwareInstallProgress;
5154
- type messages_DevFirmwareUpdateStatusEntry = DevFirmwareUpdateStatusEntry;
5155
- type messages_DevGetFirmwareUpdateStatus = DevGetFirmwareUpdateStatus;
5156
- type messages_DevFirmwareUpdateStatus = DevFirmwareUpdateStatus;
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 messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5173
- type messages_DevOnboardingStatus = DevOnboardingStatus;
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
- messages_DevRebootType as DevRebootType,
5834
- messages_DevReboot as DevReboot,
5834
+ messages_DeviceRebootType as DeviceRebootType,
5835
+ messages_DeviceReboot as DeviceReboot,
5835
5836
  messages_DeviceType as DeviceType,
5836
- messages_DevSeType as DevSeType,
5837
- messages_DevSEState as DevSEState,
5838
- messages_DevFirmwareImageInfo as DevFirmwareImageInfo,
5839
- messages_DevHardwareInfo as DevHardwareInfo,
5840
- messages_DevMainMcuInfo as DevMainMcuInfo,
5841
- messages_DevBluetoothInfo as DevBluetoothInfo,
5842
- messages_DevSEInfo as DevSEInfo,
5843
- messages_DevInfoTargets as DevInfoTargets,
5844
- messages_DevInfoTypes as DevInfoTypes,
5845
- messages_DevStatus as DevStatus,
5846
- messages_DevGetDeviceInfo as DevGetDeviceInfo,
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
- messages_DevFirmwareTargetType as DevFirmwareTargetType,
5849
- messages_DevFirmwareTarget as DevFirmwareTarget,
5850
- messages_DevFirmwareUpdate as DevFirmwareUpdate,
5851
- messages_DevFirmwareInstallProgress as DevFirmwareInstallProgress,
5852
- messages_DevFirmwareUpdateStatusEntry as DevFirmwareUpdateStatusEntry,
5853
- messages_DevGetFirmwareUpdateStatus as DevGetFirmwareUpdateStatus,
5854
- messages_DevFirmwareUpdateStatus as DevFirmwareUpdateStatus,
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
- messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
5871
- messages_DevOnboardingStatus as DevOnboardingStatus,
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.DevRebootType = void 0;
1359
- (function (DevRebootType) {
1360
- DevRebootType[DevRebootType["Normal"] = 0] = "Normal";
1361
- DevRebootType[DevRebootType["Boardloader"] = 1] = "Boardloader";
1362
- DevRebootType[DevRebootType["Bootloader"] = 2] = "Bootloader";
1363
- })(exports.DevRebootType || (exports.DevRebootType = {}));
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.DevSeType = void 0;
1374
- (function (DevSeType) {
1375
- DevSeType[DevSeType["THD89"] = 0] = "THD89";
1376
- DevSeType[DevSeType["SE608A"] = 1] = "SE608A";
1377
- })(exports.DevSeType || (exports.DevSeType = {}));
1378
- exports.DevSEState = void 0;
1379
- (function (DevSEState) {
1380
- DevSEState[DevSEState["BOOT"] = 0] = "BOOT";
1381
- DevSEState[DevSEState["APP_FACTORY"] = 51] = "APP_FACTORY";
1382
- DevSEState[DevSEState["APP"] = 85] = "APP";
1383
- })(exports.DevSEState || (exports.DevSEState = {}));
1384
- exports.DevFirmwareTargetType = void 0;
1385
- (function (DevFirmwareTargetType) {
1386
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_MAIN_APP"] = 0] = "TARGET_MAIN_APP";
1387
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_MAIN_BOOT"] = 1] = "TARGET_MAIN_BOOT";
1388
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_BT"] = 2] = "TARGET_BT";
1389
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE1"] = 3] = "TARGET_SE1";
1390
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE2"] = 4] = "TARGET_SE2";
1391
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE3"] = 5] = "TARGET_SE3";
1392
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_SE4"] = 6] = "TARGET_SE4";
1393
- DevFirmwareTargetType[DevFirmwareTargetType["TARGET_RESOURCE"] = 10] = "TARGET_RESOURCE";
1394
- })(exports.DevFirmwareTargetType || (exports.DevFirmwareTargetType = {}));
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 DevRebootType () { return exports.DevRebootType; },
1460
+ get DeviceRebootType () { return exports.DeviceRebootType; },
1461
1461
  get DeviceType () { return exports.DeviceType; },
1462
- get DevSeType () { return exports.DevSeType; },
1463
- get DevSEState () { return exports.DevSEState; },
1464
- get DevFirmwareTargetType () { return exports.DevFirmwareTargetType; }
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"];