@onekeyfe/hd-transport 0.3.40-alpha.1 → 1.0.0-alpha.0

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/dist/index.d.ts CHANGED
@@ -1551,6 +1551,22 @@ type Initialize = {
1551
1551
  derive_cardano?: boolean;
1552
1552
  };
1553
1553
  type GetFeatures = {};
1554
+ type OnekeyGetFeatures = {};
1555
+ declare enum OneKeyDeviceType {
1556
+ CLASSIC = 0,
1557
+ CLASSIC1S = 1,
1558
+ MINI = 2,
1559
+ TOUCH = 3,
1560
+ PRO = 5
1561
+ }
1562
+ declare enum OneKeySeType {
1563
+ THD89 = 0,
1564
+ SE608A = 1
1565
+ }
1566
+ declare enum OneKeySEState {
1567
+ BOOT = 0,
1568
+ APP = 1
1569
+ }
1554
1570
  declare enum Enum_Capability {
1555
1571
  Capability_Bitcoin = 1,
1556
1572
  Capability_Bitcoin_like = 2,
@@ -1571,17 +1587,6 @@ declare enum Enum_Capability {
1571
1587
  Capability_PassphraseEntry = 17
1572
1588
  }
1573
1589
  type Capability = keyof typeof Enum_Capability;
1574
- declare enum OneKeyDeviceType {
1575
- CLASSIC = 0,
1576
- CLASSIC1S = 1,
1577
- MINI = 2,
1578
- TOUCH = 3,
1579
- TOUCH_PRO = 4
1580
- }
1581
- declare enum OneKeySeType {
1582
- THD89 = 0,
1583
- SE608A = 1
1584
- }
1585
1590
  type Features = {
1586
1591
  vendor: string;
1587
1592
  major_version: number;
@@ -1607,7 +1612,6 @@ type Features = {
1607
1612
  fw_minor: number | null;
1608
1613
  fw_patch: number | null;
1609
1614
  fw_vendor: string | null;
1610
- fw_vendor_keys?: string;
1611
1615
  unfinished_backup: boolean | null;
1612
1616
  no_backup: boolean | null;
1613
1617
  recovery_mode: boolean | null;
@@ -1640,16 +1644,17 @@ type Features = {
1640
1644
  pre_firmware?: string;
1641
1645
  coin_switch?: number;
1642
1646
  build_id?: string;
1643
- battery_level?: number;
1647
+ boardloader_version?: string;
1648
+ busy?: boolean;
1644
1649
  onekey_device_type?: string | null;
1645
1650
  onekey_se_type?: string | null;
1646
1651
  onekey_board_version?: string;
1647
1652
  onekey_board_hash?: string;
1648
1653
  onekey_boot_version?: string;
1649
1654
  onekey_boot_hash?: string;
1650
- onekey_se_version?: string;
1651
- onekey_se_hash?: string;
1652
- onekey_se_build_id?: string;
1655
+ onekey_se01_version?: string;
1656
+ onekey_se01_hash?: string;
1657
+ onekey_se01_build_id?: string;
1653
1658
  onekey_firmware_version?: string;
1654
1659
  onekey_firmware_hash?: string;
1655
1660
  onekey_firmware_build_id?: string;
@@ -1659,6 +1664,59 @@ type Features = {
1659
1664
  onekey_ble_version?: string;
1660
1665
  onekey_ble_build_id?: string;
1661
1666
  onekey_ble_hash?: string;
1667
+ onekey_se02_version?: string;
1668
+ onekey_se03_version?: string;
1669
+ onekey_se04_version?: string;
1670
+ onekey_se01_state?: string | null;
1671
+ onekey_se02_state?: string | null;
1672
+ onekey_se03_state?: string | null;
1673
+ onekey_se04_state?: string | null;
1674
+ };
1675
+ type OnekeyFeatures = {
1676
+ onekey_device_type?: OneKeyDeviceType;
1677
+ onekey_board_version?: string;
1678
+ onekey_boot_version?: string;
1679
+ onekey_firmware_version?: string;
1680
+ onekey_board_hash?: string;
1681
+ onekey_boot_hash?: string;
1682
+ onekey_firmware_hash?: string;
1683
+ onekey_board_build_id?: string;
1684
+ onekey_boot_build_id?: string;
1685
+ onekey_firmware_build_id?: string;
1686
+ onekey_serial_no?: string;
1687
+ onekey_ble_name?: string;
1688
+ onekey_ble_version?: string;
1689
+ onekey_ble_build_id?: string;
1690
+ onekey_ble_hash?: string;
1691
+ onekey_se_type?: OneKeySeType;
1692
+ onekey_se01_state?: OneKeySEState;
1693
+ onekey_se02_state?: OneKeySEState;
1694
+ onekey_se03_state?: OneKeySEState;
1695
+ onekey_se04_state?: OneKeySEState;
1696
+ onekey_se01_version?: string;
1697
+ onekey_se02_version?: string;
1698
+ onekey_se03_version?: string;
1699
+ onekey_se04_version?: string;
1700
+ onekey_se01_hash?: string;
1701
+ onekey_se02_hash?: string;
1702
+ onekey_se03_hash?: string;
1703
+ onekey_se04_hash?: string;
1704
+ onekey_se01_build_id?: string;
1705
+ onekey_se02_build_id?: string;
1706
+ onekey_se03_build_id?: string;
1707
+ onekey_se04_build_id?: string;
1708
+ onekey_se01_boot_version?: string;
1709
+ onekey_se02_boot_version?: string;
1710
+ onekey_se03_boot_version?: string;
1711
+ onekey_se04_boot_version?: string;
1712
+ onekey_se01_boot_hash?: string;
1713
+ onekey_se02_boot_hash?: string;
1714
+ onekey_se03_boot_hash?: string;
1715
+ onekey_se04_boot_hash?: string;
1716
+ onekey_se01_boot_build_id?: string;
1717
+ onekey_se02_boot_build_id?: string;
1718
+ onekey_se03_boot_build_id?: string;
1719
+ onekey_se04_boot_build_id?: string;
1662
1720
  };
1663
1721
  type LockDevice = {};
1664
1722
  type EndSession = {};
@@ -3086,7 +3144,9 @@ type MessageType = {
3086
3144
  LnurlAuthResp: LnurlAuthResp;
3087
3145
  Initialize: Initialize;
3088
3146
  GetFeatures: GetFeatures;
3147
+ OnekeyGetFeatures: OnekeyGetFeatures;
3089
3148
  Features: Features;
3149
+ OnekeyFeatures: OnekeyFeatures;
3090
3150
  LockDevice: LockDevice;
3091
3151
  EndSession: EndSession;
3092
3152
  ApplySettings: ApplySettings;
@@ -3642,14 +3702,18 @@ declare const messages_Enum_SafetyCheckLevel: typeof Enum_SafetyCheckLevel;
3642
3702
  type messages_SafetyCheckLevel = SafetyCheckLevel;
3643
3703
  type messages_Initialize = Initialize;
3644
3704
  type messages_GetFeatures = GetFeatures;
3645
- type messages_Enum_Capability = Enum_Capability;
3646
- declare const messages_Enum_Capability: typeof Enum_Capability;
3647
- type messages_Capability = Capability;
3705
+ type messages_OnekeyGetFeatures = OnekeyGetFeatures;
3648
3706
  type messages_OneKeyDeviceType = OneKeyDeviceType;
3649
3707
  declare const messages_OneKeyDeviceType: typeof OneKeyDeviceType;
3650
3708
  type messages_OneKeySeType = OneKeySeType;
3651
3709
  declare const messages_OneKeySeType: typeof OneKeySeType;
3710
+ type messages_OneKeySEState = OneKeySEState;
3711
+ declare const messages_OneKeySEState: typeof OneKeySEState;
3712
+ type messages_Enum_Capability = Enum_Capability;
3713
+ declare const messages_Enum_Capability: typeof Enum_Capability;
3714
+ type messages_Capability = Capability;
3652
3715
  type messages_Features = Features;
3716
+ type messages_OnekeyFeatures = OnekeyFeatures;
3653
3717
  type messages_LockDevice = LockDevice;
3654
3718
  type messages_EndSession = EndSession;
3655
3719
  type messages_ExportType = ExportType;
@@ -4212,11 +4276,14 @@ declare namespace messages {
4212
4276
  messages_SafetyCheckLevel as SafetyCheckLevel,
4213
4277
  messages_Initialize as Initialize,
4214
4278
  messages_GetFeatures as GetFeatures,
4215
- messages_Enum_Capability as Enum_Capability,
4216
- messages_Capability as Capability,
4279
+ messages_OnekeyGetFeatures as OnekeyGetFeatures,
4217
4280
  messages_OneKeyDeviceType as OneKeyDeviceType,
4218
4281
  messages_OneKeySeType as OneKeySeType,
4282
+ messages_OneKeySEState as OneKeySEState,
4283
+ messages_Enum_Capability as Enum_Capability,
4284
+ messages_Capability as Capability,
4219
4285
  messages_Features as Features,
4286
+ messages_OnekeyFeatures as OnekeyFeatures,
4220
4287
  messages_LockDevice as LockDevice,
4221
4288
  messages_EndSession as EndSession,
4222
4289
  messages_ExportType as ExportType,
@@ -4523,4 +4590,4 @@ declare const _default: {
4523
4590
  decodeProtocol: typeof decodeProtocol;
4524
4591
  };
4525
4592
 
4526
- export { AcquireInput, Address, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, 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, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCertificateType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoGovernanceRegistrationDelegation, CardanoGovernanceRegistrationFormat, CardanoGovernanceRegistrationParametersType, 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, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, 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, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, 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, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, 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, 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, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySeType, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignTx, SignedIdentity, SolanaAddress, SolanaGetAddress, SolanaSignTx, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
4593
+ export { AcquireInput, Address, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, 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, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCertificateType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoGovernanceRegistrationDelegation, CardanoGovernanceRegistrationFormat, CardanoGovernanceRegistrationParametersType, 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, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, 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, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, 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, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, 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, 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, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignTx, SignedIdentity, SolanaAddress, SolanaGetAddress, SolanaSignTx, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
package/dist/index.js CHANGED
@@ -655,6 +655,24 @@ exports.Enum_SafetyCheckLevel = void 0;
655
655
  Enum_SafetyCheckLevel[Enum_SafetyCheckLevel["PromptAlways"] = 1] = "PromptAlways";
656
656
  Enum_SafetyCheckLevel[Enum_SafetyCheckLevel["PromptTemporarily"] = 2] = "PromptTemporarily";
657
657
  })(exports.Enum_SafetyCheckLevel || (exports.Enum_SafetyCheckLevel = {}));
658
+ exports.OneKeyDeviceType = void 0;
659
+ (function (OneKeyDeviceType) {
660
+ OneKeyDeviceType[OneKeyDeviceType["CLASSIC"] = 0] = "CLASSIC";
661
+ OneKeyDeviceType[OneKeyDeviceType["CLASSIC1S"] = 1] = "CLASSIC1S";
662
+ OneKeyDeviceType[OneKeyDeviceType["MINI"] = 2] = "MINI";
663
+ OneKeyDeviceType[OneKeyDeviceType["TOUCH"] = 3] = "TOUCH";
664
+ OneKeyDeviceType[OneKeyDeviceType["PRO"] = 5] = "PRO";
665
+ })(exports.OneKeyDeviceType || (exports.OneKeyDeviceType = {}));
666
+ exports.OneKeySeType = void 0;
667
+ (function (OneKeySeType) {
668
+ OneKeySeType[OneKeySeType["THD89"] = 0] = "THD89";
669
+ OneKeySeType[OneKeySeType["SE608A"] = 1] = "SE608A";
670
+ })(exports.OneKeySeType || (exports.OneKeySeType = {}));
671
+ exports.OneKeySEState = void 0;
672
+ (function (OneKeySEState) {
673
+ OneKeySEState[OneKeySEState["BOOT"] = 0] = "BOOT";
674
+ OneKeySEState[OneKeySEState["APP"] = 1] = "APP";
675
+ })(exports.OneKeySEState || (exports.OneKeySEState = {}));
658
676
  exports.Enum_Capability = void 0;
659
677
  (function (Enum_Capability) {
660
678
  Enum_Capability[Enum_Capability["Capability_Bitcoin"] = 1] = "Capability_Bitcoin";
@@ -675,19 +693,6 @@ exports.Enum_Capability = void 0;
675
693
  Enum_Capability[Enum_Capability["Capability_ShamirGroups"] = 16] = "Capability_ShamirGroups";
676
694
  Enum_Capability[Enum_Capability["Capability_PassphraseEntry"] = 17] = "Capability_PassphraseEntry";
677
695
  })(exports.Enum_Capability || (exports.Enum_Capability = {}));
678
- exports.OneKeyDeviceType = void 0;
679
- (function (OneKeyDeviceType) {
680
- OneKeyDeviceType[OneKeyDeviceType["CLASSIC"] = 0] = "CLASSIC";
681
- OneKeyDeviceType[OneKeyDeviceType["CLASSIC1S"] = 1] = "CLASSIC1S";
682
- OneKeyDeviceType[OneKeyDeviceType["MINI"] = 2] = "MINI";
683
- OneKeyDeviceType[OneKeyDeviceType["TOUCH"] = 3] = "TOUCH";
684
- OneKeyDeviceType[OneKeyDeviceType["TOUCH_PRO"] = 4] = "TOUCH_PRO";
685
- })(exports.OneKeyDeviceType || (exports.OneKeyDeviceType = {}));
686
- exports.OneKeySeType = void 0;
687
- (function (OneKeySeType) {
688
- OneKeySeType[OneKeySeType["THD89"] = 0] = "THD89";
689
- OneKeySeType[OneKeySeType["SE608A"] = 1] = "SE608A";
690
- })(exports.OneKeySeType || (exports.OneKeySeType = {}));
691
696
  exports.ExportType = void 0;
692
697
  (function (ExportType) {
693
698
  ExportType[ExportType["SeedEncExportType_NO"] = 0] = "SeedEncExportType_NO";
@@ -820,9 +825,10 @@ var messages = /*#__PURE__*/Object.freeze({
820
825
  get EthereumDataType () { return exports.EthereumDataType; },
821
826
  get Enum_BackupType () { return exports.Enum_BackupType; },
822
827
  get Enum_SafetyCheckLevel () { return exports.Enum_SafetyCheckLevel; },
823
- get Enum_Capability () { return exports.Enum_Capability; },
824
828
  get OneKeyDeviceType () { return exports.OneKeyDeviceType; },
825
829
  get OneKeySeType () { return exports.OneKeySeType; },
830
+ get OneKeySEState () { return exports.OneKeySEState; },
831
+ get Enum_Capability () { return exports.Enum_Capability; },
826
832
  get ExportType () { return exports.ExportType; },
827
833
  get SdProtectOperationType () { return exports.SdProtectOperationType; },
828
834
  get RecoveryDeviceType () { return exports.RecoveryDeviceType; },
@@ -1458,6 +1458,22 @@ export type Initialize = {
1458
1458
  derive_cardano?: boolean;
1459
1459
  };
1460
1460
  export type GetFeatures = {};
1461
+ export type OnekeyGetFeatures = {};
1462
+ export declare enum OneKeyDeviceType {
1463
+ CLASSIC = 0,
1464
+ CLASSIC1S = 1,
1465
+ MINI = 2,
1466
+ TOUCH = 3,
1467
+ PRO = 5
1468
+ }
1469
+ export declare enum OneKeySeType {
1470
+ THD89 = 0,
1471
+ SE608A = 1
1472
+ }
1473
+ export declare enum OneKeySEState {
1474
+ BOOT = 0,
1475
+ APP = 1
1476
+ }
1461
1477
  export declare enum Enum_Capability {
1462
1478
  Capability_Bitcoin = 1,
1463
1479
  Capability_Bitcoin_like = 2,
@@ -1478,17 +1494,6 @@ export declare enum Enum_Capability {
1478
1494
  Capability_PassphraseEntry = 17
1479
1495
  }
1480
1496
  export type Capability = keyof typeof Enum_Capability;
1481
- export declare enum OneKeyDeviceType {
1482
- CLASSIC = 0,
1483
- CLASSIC1S = 1,
1484
- MINI = 2,
1485
- TOUCH = 3,
1486
- TOUCH_PRO = 4
1487
- }
1488
- export declare enum OneKeySeType {
1489
- THD89 = 0,
1490
- SE608A = 1
1491
- }
1492
1497
  export type Features = {
1493
1498
  vendor: string;
1494
1499
  major_version: number;
@@ -1514,7 +1519,6 @@ export type Features = {
1514
1519
  fw_minor: number | null;
1515
1520
  fw_patch: number | null;
1516
1521
  fw_vendor: string | null;
1517
- fw_vendor_keys?: string;
1518
1522
  unfinished_backup: boolean | null;
1519
1523
  no_backup: boolean | null;
1520
1524
  recovery_mode: boolean | null;
@@ -1547,16 +1551,17 @@ export type Features = {
1547
1551
  pre_firmware?: string;
1548
1552
  coin_switch?: number;
1549
1553
  build_id?: string;
1550
- battery_level?: number;
1554
+ boardloader_version?: string;
1555
+ busy?: boolean;
1551
1556
  onekey_device_type?: string | null;
1552
1557
  onekey_se_type?: string | null;
1553
1558
  onekey_board_version?: string;
1554
1559
  onekey_board_hash?: string;
1555
1560
  onekey_boot_version?: string;
1556
1561
  onekey_boot_hash?: string;
1557
- onekey_se_version?: string;
1558
- onekey_se_hash?: string;
1559
- onekey_se_build_id?: string;
1562
+ onekey_se01_version?: string;
1563
+ onekey_se01_hash?: string;
1564
+ onekey_se01_build_id?: string;
1560
1565
  onekey_firmware_version?: string;
1561
1566
  onekey_firmware_hash?: string;
1562
1567
  onekey_firmware_build_id?: string;
@@ -1566,6 +1571,59 @@ export type Features = {
1566
1571
  onekey_ble_version?: string;
1567
1572
  onekey_ble_build_id?: string;
1568
1573
  onekey_ble_hash?: string;
1574
+ onekey_se02_version?: string;
1575
+ onekey_se03_version?: string;
1576
+ onekey_se04_version?: string;
1577
+ onekey_se01_state?: string | null;
1578
+ onekey_se02_state?: string | null;
1579
+ onekey_se03_state?: string | null;
1580
+ onekey_se04_state?: string | null;
1581
+ };
1582
+ export type OnekeyFeatures = {
1583
+ onekey_device_type?: OneKeyDeviceType;
1584
+ onekey_board_version?: string;
1585
+ onekey_boot_version?: string;
1586
+ onekey_firmware_version?: string;
1587
+ onekey_board_hash?: string;
1588
+ onekey_boot_hash?: string;
1589
+ onekey_firmware_hash?: string;
1590
+ onekey_board_build_id?: string;
1591
+ onekey_boot_build_id?: string;
1592
+ onekey_firmware_build_id?: string;
1593
+ onekey_serial_no?: string;
1594
+ onekey_ble_name?: string;
1595
+ onekey_ble_version?: string;
1596
+ onekey_ble_build_id?: string;
1597
+ onekey_ble_hash?: string;
1598
+ onekey_se_type?: OneKeySeType;
1599
+ onekey_se01_state?: OneKeySEState;
1600
+ onekey_se02_state?: OneKeySEState;
1601
+ onekey_se03_state?: OneKeySEState;
1602
+ onekey_se04_state?: OneKeySEState;
1603
+ onekey_se01_version?: string;
1604
+ onekey_se02_version?: string;
1605
+ onekey_se03_version?: string;
1606
+ onekey_se04_version?: string;
1607
+ onekey_se01_hash?: string;
1608
+ onekey_se02_hash?: string;
1609
+ onekey_se03_hash?: string;
1610
+ onekey_se04_hash?: string;
1611
+ onekey_se01_build_id?: string;
1612
+ onekey_se02_build_id?: string;
1613
+ onekey_se03_build_id?: string;
1614
+ onekey_se04_build_id?: string;
1615
+ onekey_se01_boot_version?: string;
1616
+ onekey_se02_boot_version?: string;
1617
+ onekey_se03_boot_version?: string;
1618
+ onekey_se04_boot_version?: string;
1619
+ onekey_se01_boot_hash?: string;
1620
+ onekey_se02_boot_hash?: string;
1621
+ onekey_se03_boot_hash?: string;
1622
+ onekey_se04_boot_hash?: string;
1623
+ onekey_se01_boot_build_id?: string;
1624
+ onekey_se02_boot_build_id?: string;
1625
+ onekey_se03_boot_build_id?: string;
1626
+ onekey_se04_boot_build_id?: string;
1569
1627
  };
1570
1628
  export type LockDevice = {};
1571
1629
  export type EndSession = {};
@@ -2993,7 +3051,9 @@ export type MessageType = {
2993
3051
  LnurlAuthResp: LnurlAuthResp;
2994
3052
  Initialize: Initialize;
2995
3053
  GetFeatures: GetFeatures;
3054
+ OnekeyGetFeatures: OnekeyGetFeatures;
2996
3055
  Features: Features;
3056
+ OnekeyFeatures: OnekeyFeatures;
2997
3057
  LockDevice: LockDevice;
2998
3058
  EndSession: EndSession;
2999
3059
  ApplySettings: ApplySettings;