@onekeyfe/hd-core 1.2.0-alpha.19 → 1.2.0-alpha.20

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.
Files changed (256) hide show
  1. package/__tests__/AllNetworkGetAddressBase.tracing.test.ts +75 -0
  2. package/__tests__/DeviceCommands.test.ts +143 -7
  3. package/__tests__/RequestQueue.test.ts +106 -0
  4. package/__tests__/UploadPortfolio.test.ts +46 -0
  5. package/__tests__/core-dispose.test.ts +34 -0
  6. package/__tests__/core-error-output.test.ts +39 -0
  7. package/__tests__/device-lifecycle-events.test.ts +117 -0
  8. package/__tests__/device-pool-state.test.ts +20 -1
  9. package/__tests__/device-settings.test.ts +184 -6
  10. package/__tests__/device-state-events.test.ts +1 -2
  11. package/__tests__/device-state-mapper.test.ts +33 -26
  12. package/__tests__/device-state-store.test.ts +1 -34
  13. package/__tests__/device-utils.test.ts +106 -0
  14. package/__tests__/device-wallet-session-store.test.ts +65 -29
  15. package/__tests__/deviceSettings.test.ts +21 -12
  16. package/__tests__/evmLedgerLegacySafety.test.ts +2 -2
  17. package/__tests__/evmSignTypedData.test.ts +80 -0
  18. package/__tests__/filesystemValidation.test.ts +53 -0
  19. package/__tests__/firmware-update/firmware-update-v2-download-before-boot.test.ts +402 -0
  20. package/__tests__/get-device-state.test.ts +77 -41
  21. package/__tests__/logBlockEvent.test.ts +24 -11
  22. package/__tests__/networkUtils.test.ts +386 -0
  23. package/__tests__/open-wallet-session-error-response.test.ts +43 -0
  24. package/__tests__/open-wallet-session.test.ts +559 -0
  25. package/__tests__/protocol-v2.test.ts +756 -452
  26. package/__tests__/public-device-state-api.test.ts +113 -13
  27. package/__tests__/public-pro2-api-boundary.test.ts +91 -0
  28. package/__tests__/search-devices.test.ts +43 -0
  29. package/dist/api/BaseMethod.d.ts +3 -0
  30. package/dist/api/BaseMethod.d.ts.map +1 -1
  31. package/dist/api/CheckBootloaderRelease.d.ts.map +1 -1
  32. package/dist/api/CheckFirmwareRelease.d.ts.map +1 -1
  33. package/dist/api/ClearSessionCache.d.ts.map +1 -1
  34. package/dist/api/DirList.d.ts.map +1 -1
  35. package/dist/api/FileRead.d.ts.map +1 -1
  36. package/dist/api/FirmwareUpdateV2.d.ts +2 -2
  37. package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
  38. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  39. package/dist/api/FirmwareUpdateV4.d.ts +3 -2
  40. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  41. package/dist/api/GetPassphraseState.d.ts.map +1 -1
  42. package/dist/api/OpenWalletSession.d.ts +14 -0
  43. package/dist/api/OpenWalletSession.d.ts.map +1 -0
  44. package/dist/api/PathInfo.d.ts.map +1 -1
  45. package/dist/api/PromptWebDeviceAccess.d.ts.map +1 -1
  46. package/dist/api/SearchDevices.d.ts +3 -0
  47. package/dist/api/SearchDevices.d.ts.map +1 -1
  48. package/dist/api/UploadPortfolio.d.ts.map +1 -1
  49. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
  50. package/dist/api/device/DeviceChangePin.d.ts.map +1 -1
  51. package/dist/api/device/DeviceFullyUploadResource.d.ts +1 -2
  52. package/dist/api/device/DeviceFullyUploadResource.d.ts.map +1 -1
  53. package/dist/api/device/DeviceSettings.d.ts.map +1 -1
  54. package/dist/api/device/DeviceUpdateBootloader.d.ts.map +1 -1
  55. package/dist/api/device/DeviceWipe.d.ts.map +1 -1
  56. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  57. package/dist/api/firmware/getBinary.d.ts +7 -3
  58. package/dist/api/firmware/getBinary.d.ts.map +1 -1
  59. package/dist/api/helpers/filesystemValidation.d.ts +3 -0
  60. package/dist/api/helpers/filesystemValidation.d.ts.map +1 -1
  61. package/dist/api/helpers/paramsValidator.d.ts +1 -0
  62. package/dist/api/helpers/paramsValidator.d.ts.map +1 -1
  63. package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -1
  64. package/dist/api/index.d.ts +7 -11
  65. package/dist/api/index.d.ts.map +1 -1
  66. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +1 -1
  67. package/dist/api/protocol-v2/DeviceSettingsPageShow.d.ts.map +1 -1
  68. package/dist/api/protocol-v2/DeviceSettingsSet.d.ts.map +1 -1
  69. package/dist/api/utils.d.ts.map +1 -1
  70. package/dist/core/RequestQueue.d.ts +17 -1
  71. package/dist/core/RequestQueue.d.ts.map +1 -1
  72. package/dist/core/index.d.ts +3 -1
  73. package/dist/core/index.d.ts.map +1 -1
  74. package/dist/device/Device.d.ts +6 -5
  75. package/dist/device/Device.d.ts.map +1 -1
  76. package/dist/device/DeviceCommands.d.ts +5 -5
  77. package/dist/device/DeviceCommands.d.ts.map +1 -1
  78. package/dist/device/DevicePool.d.ts +1 -0
  79. package/dist/device/DevicePool.d.ts.map +1 -1
  80. package/dist/device/DeviceStateMapper.d.ts +2 -2
  81. package/dist/device/DeviceStateMapper.d.ts.map +1 -1
  82. package/dist/device/DeviceStateProjector.d.ts +1 -2
  83. package/dist/device/DeviceStateProjector.d.ts.map +1 -1
  84. package/dist/device/DeviceStateStore.d.ts +1 -3
  85. package/dist/device/DeviceStateStore.d.ts.map +1 -1
  86. package/dist/device/DeviceWalletSessionStore.d.ts +6 -1
  87. package/dist/device/DeviceWalletSessionStore.d.ts.map +1 -1
  88. package/dist/device/cloneDeviceState.d.ts +2 -0
  89. package/dist/device/cloneDeviceState.d.ts.map +1 -0
  90. package/dist/deviceProfile/buildDeviceFeatures.d.ts +3 -1
  91. package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -1
  92. package/dist/events/logBlockEvent.d.ts.map +1 -1
  93. package/dist/index.d.ts +608 -75
  94. package/dist/index.js +2287 -1706
  95. package/dist/inject.d.ts.map +1 -1
  96. package/dist/protocols/protocol-v2/deviceSession.d.ts +7 -0
  97. package/dist/protocols/protocol-v2/deviceSession.d.ts.map +1 -0
  98. package/dist/protocols/protocol-v2/features.d.ts +11 -4
  99. package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
  100. package/dist/protocols/protocol-v2/index.d.ts +2 -2
  101. package/dist/protocols/protocol-v2/index.d.ts.map +1 -1
  102. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts +16 -0
  103. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts.map +1 -0
  104. package/dist/protocols/protocol-v2/uiInteraction.d.ts.map +1 -1
  105. package/dist/protocols/protocol-v2/walletSession.d.ts +8 -3
  106. package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -1
  107. package/dist/types/api/checkAllFirmwareRelease.d.ts +1 -2
  108. package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -1
  109. package/dist/types/api/deviceSettings.d.ts +1 -0
  110. package/dist/types/api/deviceSettings.d.ts.map +1 -1
  111. package/dist/types/api/deviceUnlock.d.ts +1 -1
  112. package/dist/types/api/deviceUnlock.d.ts.map +1 -1
  113. package/dist/types/api/getFeatures.d.ts.map +1 -1
  114. package/dist/types/api/getOnekeyFeatures.d.ts.map +1 -1
  115. package/dist/types/api/getPassphraseState.d.ts.map +1 -1
  116. package/dist/types/api/index.d.ts +13 -15
  117. package/dist/types/api/index.d.ts.map +1 -1
  118. package/dist/types/api/openWalletSession.d.ts +41 -0
  119. package/dist/types/api/openWalletSession.d.ts.map +1 -0
  120. package/dist/types/api/protocolV2.d.ts +6 -11
  121. package/dist/types/api/protocolV2.d.ts.map +1 -1
  122. package/dist/types/device.d.ts +2 -9
  123. package/dist/types/device.d.ts.map +1 -1
  124. package/dist/utils/assets.d.ts +2 -1
  125. package/dist/utils/assets.d.ts.map +1 -1
  126. package/dist/utils/deviceFeaturesCompat.d.ts +13 -0
  127. package/dist/utils/deviceFeaturesCompat.d.ts.map +1 -0
  128. package/dist/utils/deviceFeaturesUtils.d.ts +11 -1
  129. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  130. package/dist/utils/deviceInfoUtils.d.ts +9 -8
  131. package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
  132. package/dist/utils/deviceSettings.d.ts +2 -0
  133. package/dist/utils/deviceSettings.d.ts.map +1 -1
  134. package/dist/utils/deviceVersionUtils.d.ts +6 -5
  135. package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
  136. package/dist/utils/index.d.ts +2 -2
  137. package/dist/utils/index.d.ts.map +1 -1
  138. package/dist/utils/networkUtils.d.ts +9 -1
  139. package/dist/utils/networkUtils.d.ts.map +1 -1
  140. package/dist/utils/patch.d.ts +1 -1
  141. package/dist/utils/patch.d.ts.map +1 -1
  142. package/dist/utils/pro2Wallpaper.d.ts.map +1 -1
  143. package/package.json +4 -4
  144. package/src/api/BaseMethod.ts +17 -10
  145. package/src/api/CheckBootloaderRelease.ts +1 -2
  146. package/src/api/CheckFirmwareRelease.ts +1 -2
  147. package/src/api/ClearSessionCache.ts +0 -4
  148. package/src/api/DirList.ts +5 -3
  149. package/src/api/DirMake.ts +3 -3
  150. package/src/api/DirRemove.ts +3 -3
  151. package/src/api/FileDelete.ts +3 -3
  152. package/src/api/FileRead.ts +9 -6
  153. package/src/api/FileWrite.ts +3 -3
  154. package/src/api/FirmwareUpdate.ts +4 -4
  155. package/src/api/FirmwareUpdateV2.ts +133 -45
  156. package/src/api/FirmwareUpdateV3.ts +3 -5
  157. package/src/api/FirmwareUpdateV4.ts +192 -154
  158. package/src/api/GetPassphraseState.ts +10 -16
  159. package/src/api/OpenWalletSession.ts +221 -0
  160. package/src/api/PathInfo.ts +5 -3
  161. package/src/api/PromptWebDeviceAccess.ts +2 -3
  162. package/src/api/SearchDevices.ts +6 -2
  163. package/src/api/UploadPortfolio.ts +12 -3
  164. package/src/api/alephium/AlephiumSignTransaction.ts +2 -2
  165. package/src/api/allnetwork/AllNetworkGetAddressBase.ts +4 -8
  166. package/src/api/benfen/BenfenGetAddress.ts +1 -1
  167. package/src/api/btc/BTCGetPublicKey.ts +1 -1
  168. package/src/api/device/DeviceChangePin.ts +1 -0
  169. package/src/api/device/DeviceFullyUploadResource.ts +4 -5
  170. package/src/api/device/DeviceSettings.ts +93 -0
  171. package/src/api/device/DeviceUpdateBootloader.ts +1 -2
  172. package/src/api/device/DeviceWipe.ts +1 -0
  173. package/src/api/evm/EVMSignTypedData.ts +3 -5
  174. package/src/api/evm/legacyV1/getAddress.ts +2 -2
  175. package/src/api/evm/legacyV1/getPublicKey.ts +2 -2
  176. package/src/api/evm/legacyV1/signMessage.ts +2 -2
  177. package/src/api/evm/legacyV1/signTypedData.ts +2 -2
  178. package/src/api/evm/legacyV1/signTypedHash.ts +2 -2
  179. package/src/api/evm/legacyV1/verifyMessage.ts +2 -2
  180. package/src/api/firmware/FirmwareUpdateBaseMethod.ts +3 -3
  181. package/src/api/firmware/getBinary.ts +8 -3
  182. package/src/api/helpers/batchGetPublickeys.ts +2 -2
  183. package/src/api/helpers/filesystemValidation.ts +61 -0
  184. package/src/api/helpers/paramsValidator.ts +1 -1
  185. package/src/api/helpers/protocolV2FileWrite.ts +3 -2
  186. package/src/api/index.ts +9 -12
  187. package/src/api/nervos/NervosSignTransaction.ts +2 -2
  188. package/src/api/nexa/NexaSignTransaction.ts +1 -1
  189. package/src/api/protocol-v2/DeviceFactoryInfoGet.ts +1 -1
  190. package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +1 -1
  191. package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +4 -4
  192. package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +6 -5
  193. package/src/api/protocol-v2/DeviceInfoGet.ts +4 -4
  194. package/src/api/protocol-v2/DeviceReboot.ts +1 -1
  195. package/src/api/protocol-v2/DeviceSettingsPageShow.ts +11 -8
  196. package/src/api/protocol-v2/DeviceSettingsSet.ts +4 -11
  197. package/src/api/protocol-v2/FilesystemFormat.ts +1 -1
  198. package/src/api/protocol-v2/FilesystemPermissionFix.ts +1 -1
  199. package/src/api/protocol-v2/Ping.ts +1 -1
  200. package/src/api/protocol-v2/ProtocolInfoRequest.ts +1 -1
  201. package/src/api/utils.ts +1 -3
  202. package/src/core/RequestQueue.ts +107 -6
  203. package/src/core/index.ts +91 -46
  204. package/src/data/messages/messages-protocol-v2.json +25 -79
  205. package/src/data-manager/DataManager.ts +6 -6
  206. package/src/device/Device.ts +186 -102
  207. package/src/device/DeviceCommands.ts +51 -21
  208. package/src/device/DeviceFeaturesState.ts +4 -4
  209. package/src/device/DevicePool.ts +17 -3
  210. package/src/device/DeviceStateMapper.ts +13 -29
  211. package/src/device/DeviceStateProjector.ts +11 -8
  212. package/src/device/DeviceStateStore.ts +11 -52
  213. package/src/device/DeviceWalletSessionStore.ts +31 -4
  214. package/src/device/cloneDeviceState.ts +39 -0
  215. package/src/device/deviceIdentity.ts +2 -2
  216. package/src/deviceProfile/buildDeviceFeatures.ts +29 -88
  217. package/src/events/logBlockEvent.ts +8 -1
  218. package/src/inject.ts +14 -24
  219. package/src/protocols/protocol-v2/deviceSession.ts +24 -0
  220. package/src/protocols/protocol-v2/features.ts +37 -49
  221. package/src/protocols/protocol-v2/firmware.ts +1 -1
  222. package/src/protocols/protocol-v2/index.ts +2 -3
  223. package/src/protocols/protocol-v2/settingsUnlockPolicy.ts +61 -0
  224. package/src/protocols/protocol-v2/uiInteraction.ts +4 -3
  225. package/src/protocols/protocol-v2/walletSession.ts +57 -146
  226. package/src/types/api/checkAllFirmwareRelease.ts +1 -2
  227. package/src/types/api/deviceSettings.ts +1 -0
  228. package/src/types/api/deviceUnlock.ts +1 -1
  229. package/src/types/api/firmwareUpdate.ts +5 -5
  230. package/src/types/api/getDeviceState.ts +1 -1
  231. package/src/types/api/getFeatures.ts +3 -0
  232. package/src/types/api/getOnekeyFeatures.ts +3 -0
  233. package/src/types/api/getPassphraseState.ts +6 -0
  234. package/src/types/api/index.ts +16 -23
  235. package/src/types/api/openWalletSession.ts +64 -0
  236. package/src/types/api/protocolV2.ts +36 -18
  237. package/src/types/device.ts +20 -14
  238. package/src/types/params.ts +1 -1
  239. package/src/types/settings.ts +8 -8
  240. package/src/utils/assets.ts +4 -1
  241. package/src/utils/deviceFeaturesCompat.ts +173 -0
  242. package/src/utils/deviceFeaturesUtils.ts +9 -8
  243. package/src/utils/deviceInfoUtils.ts +26 -64
  244. package/src/utils/deviceSettings.ts +18 -11
  245. package/src/utils/deviceVersionUtils.ts +25 -44
  246. package/src/utils/findDefectiveBatchDevice.ts +3 -3
  247. package/src/utils/index.ts +2 -5
  248. package/src/utils/networkUtils.ts +270 -14
  249. package/src/utils/pro2Wallpaper.ts +11 -13
  250. package/src/utils/tracing.ts +2 -2
  251. package/dist/api/internal.d.ts +0 -4
  252. package/dist/api/internal.d.ts.map +0 -1
  253. package/dist/api/protocol-v2/DeviceSessionOpen.d.ts +0 -28
  254. package/dist/api/protocol-v2/DeviceSessionOpen.d.ts.map +0 -1
  255. package/src/api/internal.ts +0 -9
  256. package/src/api/protocol-v2/DeviceSessionOpen.ts +0 -100
package/dist/index.d.ts CHANGED
@@ -1,24 +1,63 @@
1
1
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
2
- import { DeviceFirmwareTargetType, DeviceFirmwareUpdateRecordFields, DeviceRebootType, DeviceFirmwareTarget, Messages, Transport, TransportCallOptions, OneKeyDeviceCommType, ProtocolV2DeviceInfo, DeviceStatus as DeviceStatus$1, OneKeyDeviceInfo, Success as Success$1, LowlevelTransportSharedPlugin, DeviceSessionResume, DeviceHostPassphrase, DevicePassphraseOnDevice, DeviceAttachPinOnDevice, DeviceSettings, DeviceSettingsPage, ProtocolInfo, DevOnboardingStatus, DeviceSession, DeviceFirmwareUpdateStatus, DeviceFactoryInfo, Features as Features$1, RecoveryDeviceType, SafetyCheckLevel, ResourceType, NextU2FCounter, SetU2FCounter, CipheredKeyValue as CipheredKeyValue$1, UintType, EthereumPublicKey, EthereumMessageSignature, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, SignedPsbt, PrevInput, TxOutputBinType, TxInput, TxOutputType, TxInputType, StarcoinAddress as StarcoinAddress$1, StarcoinPublicKey as StarcoinPublicKey$1, StarcoinMessageSignature, StarcoinSignedTx, NEMAddress as NEMAddress$1, NEMSignedTx, SolanaAddress as SolanaAddress$1, SolanaSignedTx as SolanaSignedTx$1, SolanaTxExtraInfo, SolanaOffChainMessageVersion, SolanaOffChainMessageFormat, StellarAddress as StellarAddress$1, StellarSignedTx, TronAddress as TronAddress$1, TronResourceCode, TronSignedTx, TronMessageSignature, ConfluxAddress as ConfluxAddress$1, ConfluxMessageSignature, NearAddress as NearAddress$1, NearSignedTx, AptosAddress as AptosAddress$1, AptosMessageSignature as AptosMessageSignature$1, AptosSignedTx as AptosSignedTx$1, AlgorandAddress, AlgorandSignedTx, CosmosAddress as CosmosAddress$1, CosmosSignedTx as CosmosSignedTx$1, SuiAddress as SuiAddress$1, SuiMessageSignature, CardanoAddressParametersType, CardanoMessageSignature, FilecoinAddress as FilecoinAddress$1, FilecoinSignedTx as FilecoinSignedTx$1, PolkadotAddress as PolkadotAddress$1, PolkadotSignedTx as PolkadotSignedTx$1, KaspaAddress as KaspaAddress$1, NervosAddress as NervosAddress$1, NervosSignedTx as NervosSignedTx$1, DnxAddress as DnxAddress$1, TonWalletVersion, TonWorkChain, TonSignedMessage, TonSignedProof, TonSignDataType, TonSignedData, ScdoAddress as ScdoAddress$1, ScdoSignedMessage, ScdoSignedTx as ScdoSignedTx$1, AlephiumMessageSignature, AlephiumSignedTx as AlephiumSignedTx$1, BenfenAddress as BenfenAddress$1, BenfenMessageSignature, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
2
+ import { DeviceFirmwareTargetType, DeviceFirmwareUpdateRecordFields, DeviceRebootType, DeviceFirmwareTarget, Messages, Transport, TransportCallOptions, OneKeyDeviceCommType, ProtocolV2DeviceInfo, DeviceStatus as DeviceStatus$1, OneKeyDeviceInfo, Success as Success$1, LowlevelTransportSharedPlugin, DeviceSettings, DeviceSettingsPage, ProtocolInfo, DevOnboardingStatus, DeviceFirmwareUpdateStatus, DeviceFactoryInfo, RecoveryDeviceType, SafetyCheckLevel, ResourceType, NextU2FCounter, SetU2FCounter, CipheredKeyValue as CipheredKeyValue$1, UintType, EthereumPublicKey, EthereumMessageSignature, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, SignedPsbt, PrevInput, TxOutputBinType, TxInput, TxOutputType, TxInputType, StarcoinAddress as StarcoinAddress$1, StarcoinPublicKey as StarcoinPublicKey$1, StarcoinMessageSignature, StarcoinSignedTx, NEMAddress as NEMAddress$1, NEMSignedTx, SolanaAddress as SolanaAddress$1, SolanaSignedTx as SolanaSignedTx$1, SolanaTxExtraInfo, SolanaOffChainMessageVersion, SolanaOffChainMessageFormat, StellarAddress as StellarAddress$1, StellarSignedTx, TronAddress as TronAddress$1, TronResourceCode, TronSignedTx, TronMessageSignature, ConfluxAddress as ConfluxAddress$1, ConfluxMessageSignature, NearAddress as NearAddress$1, NearSignedTx, AptosAddress as AptosAddress$1, AptosMessageSignature as AptosMessageSignature$1, AptosSignedTx as AptosSignedTx$1, AlgorandAddress, AlgorandSignedTx, CosmosAddress as CosmosAddress$1, CosmosSignedTx as CosmosSignedTx$1, SuiAddress as SuiAddress$1, SuiMessageSignature, CardanoAddressParametersType, CardanoMessageSignature, FilecoinAddress as FilecoinAddress$1, FilecoinSignedTx as FilecoinSignedTx$1, PolkadotAddress as PolkadotAddress$1, PolkadotSignedTx as PolkadotSignedTx$1, KaspaAddress as KaspaAddress$1, NervosAddress as NervosAddress$1, NervosSignedTx as NervosSignedTx$1, DnxAddress as DnxAddress$1, TonWalletVersion, TonWorkChain, TonSignedMessage, TonSignedProof, TonSignDataType, TonSignedData, ScdoAddress as ScdoAddress$1, ScdoSignedMessage, ScdoSignedTx as ScdoSignedTx$1, AlephiumMessageSignature, AlephiumSignedTx as AlephiumSignedTx$1, BenfenAddress as BenfenAddress$1, BenfenMessageSignature, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
3
3
  export { Success as DeviceSuccess, HDNodeType, Messages as PROTO, ResourceType, TonSignDataType, TonWalletVersion } from '@onekeyfe/hd-transport';
4
4
  import * as _onekeyfe_hd_shared from '@onekeyfe/hd-shared';
5
5
  import { HardwareConnectProtocol, EFirmwareType, EDeviceType, Deferred } from '@onekeyfe/hd-shared';
6
6
 
7
7
  interface CommonParams {
8
8
  keepSession?: boolean;
9
+ /**
10
+ * polling connect max retry count
11
+ */
9
12
  retryCount?: number;
13
+ /**
14
+ * polling interval time
15
+ */
10
16
  pollIntervalTime?: number;
17
+ /**
18
+ * Timeout time for single polling
19
+ */
11
20
  timeout?: number;
21
+ /**
22
+ * DeviceInfoGet timeout during Protocol V2 initialization.
23
+ */
12
24
  protocolV2DeviceInfoTimeoutMs?: number;
25
+ /**
26
+ * passphrase state
27
+ */
13
28
  passphraseState?: string;
29
+ /**
30
+ * Use empty passphrase
31
+ */
14
32
  useEmptyPassphrase?: boolean;
33
+ /**
34
+ * Every init session
35
+ */
15
36
  initSession?: boolean;
37
+ /**
38
+ * Use derive cardano
39
+ */
16
40
  deriveCardano?: boolean;
17
41
  detectBootloaderDevice?: boolean;
42
+ /**
43
+ * Skip web device prompt
44
+ */
18
45
  skipWebDevicePrompt?: boolean;
46
+ /**
47
+ * Skip passphrase check
48
+ */
19
49
  skipPassphraseCheck?: boolean;
50
+ /**
51
+ * Only connect device, not initialize device, only ble connect
52
+ */
20
53
  onlyConnectBleDevice?: boolean;
54
+ /**
55
+ * Use pre-initialized device state (BLE only)
56
+ */
21
57
  usePreInitialize?: boolean;
58
+ /**
59
+ * Expected transport protocol. If omitted, SDK probes Protocol V1 then Protocol V2.
60
+ */
22
61
  connectProtocol?: HardwareConnectProtocol;
23
62
  }
24
63
  type Params<T> = CommonParams & T & {
@@ -89,6 +128,10 @@ type TypedCallResponseMap = {
89
128
  [K in MessageKey]: TypedResponseMessage<K>;
90
129
  };
91
130
  type DefaultMessageResponse = TypedCallResponseMap[MessageKey];
131
+ /**
132
+ * The life cycle begins with the acquisition of the device and ends with the disposal device commands
133
+ * acquire device -> create DeviceCommands -> release device -> dispose DeviceCommands
134
+ */
92
135
  declare class DeviceCommands {
93
136
  instanceId: string;
94
137
  currentResponseID?: number;
@@ -114,7 +157,7 @@ declare class DeviceCommands {
114
157
  };
115
158
  } | {
116
159
  success: boolean;
117
- error: 0 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 200 | 300 | 301 | 302 | 303 | 304 | 305 | 400 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 500 | 600 | 601 | 602 | 603 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 900 | 901 | 902;
160
+ error: 0 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 200 | 300 | 301 | 302 | 303 | 304 | 305 | 400 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 500 | 600 | 601 | 602 | 603 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 900 | 901 | 902;
118
161
  payload: {
119
162
  message: string;
120
163
  };
@@ -133,7 +176,7 @@ declare class DeviceCommands {
133
176
  };
134
177
  } | {
135
178
  success: boolean;
136
- error: 0 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 200 | 300 | 301 | 302 | 303 | 304 | 305 | 400 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 500 | 600 | 601 | 602 | 603 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 900 | 901 | 902;
179
+ error: 0 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 200 | 300 | 301 | 302 | 303 | 304 | 305 | 400 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 500 | 600 | 601 | 602 | 603 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 900 | 901 | 902;
137
180
  payload: {
138
181
  message: string;
139
182
  };
@@ -150,6 +193,8 @@ declare class DeviceCommands {
150
193
  }): Promise<PassphrasePromptResponse>;
151
194
  }
152
195
 
196
+ type ProtocolV2RuntimeMode = 'normal' | 'bootloader';
197
+
153
198
  type transportEnv = 'node' | 'web' | 'webextension' | 'electron' | 'react-native' | 'webusb' | 'desktop-webusb' | 'desktop-web-ble' | 'emulator' | 'lowlevel' | 'node-usb';
154
199
  type ConnectSettings = {
155
200
  connectSrc?: string;
@@ -181,19 +226,33 @@ type IProtocolV2FirmwareComponent = {
181
226
  fingerprint?: string;
182
227
  version?: IVersionArray;
183
228
  };
229
+ /** Pro2 RESC bundle okpkg descriptor for incremental FileWrite synchronization. */
184
230
  type IProtocolV2ResourceBundle = {
231
+ /** Bundle name, such as images, animation, translations, or fonts_roobert. */
185
232
  name: string;
233
+ /** Download URL. */
186
234
  url: string;
235
+ /** Device target path, such as vol0:/bundles/images/images.okpkg. */
187
236
  devicePath: string;
237
+ /** okpkg payload_version used to skip matching content after FileRead. */
188
238
  version?: IVersionArray;
239
+ /** okpkg payload_hash used for SHA3-512 comparison after FileRead. */
189
240
  payloadHash?: string;
241
+ /** okpkg header_hash used for SHA3-512 comparison after FileRead. */
190
242
  headerHash?: string;
191
243
  };
244
+ /** STM32 firmware config */
192
245
  type IFirmwareReleaseInfo = {
193
246
  required: boolean;
194
247
  url: string;
248
+ /**
249
+ * Firmware type (bitcoinonly or universal)
250
+ * This field is not present in the remote config, but will be inferred from the firmware field name
251
+ */
195
252
  firmwareType?: EFirmwareType;
253
+ /** Firmware UI resource */
196
254
  resource?: string;
255
+ /** Firmware full UI resource */
197
256
  fullResource?: string;
198
257
  fullResourceRange?: string[];
199
258
  bootloaderResource?: string;
@@ -203,6 +262,7 @@ type IFirmwareReleaseInfo = {
203
262
  upgradeType?: 'payload-package-set' | string;
204
263
  components?: Record<string, IProtocolV2FirmwareComponent>;
205
264
  installOrder?: string[];
265
+ /** Pro2 RESC bundles for incremental direct FileWrite synchronization. */
206
266
  resourceBundles?: IProtocolV2ResourceBundle[];
207
267
  bootloaderChangelog?: {
208
268
  [k in ILocale]: string;
@@ -213,9 +273,12 @@ type IFirmwareReleaseInfo = {
213
273
  [k in ILocale]: string;
214
274
  };
215
275
  };
276
+ /** BLE firmware config */
216
277
  type IBLEFirmwareReleaseInfo = {
217
278
  required: boolean;
279
+ /** bluetooth dfu version */
218
280
  url: string;
281
+ /** stm bluetooth update version */
219
282
  webUpdate: string;
220
283
  fingerprint: string;
221
284
  fingerprintWeb: string;
@@ -228,6 +291,7 @@ type IKnownDevice = Exclude<IDeviceType, 'unknown'>;
228
291
  type DeviceTypeMap = {
229
292
  [k in IKnownDevice]: {
230
293
  firmware: IFirmwareReleaseInfo[];
294
+ /** Pro2 Protocol V2 payload package set */
231
295
  'firmware-v1'?: IFirmwareReleaseInfo[];
232
296
  'firmware-v2'?: IFirmwareReleaseInfo[];
233
297
  'firmware-v8'?: IFirmwareReleaseInfo[];
@@ -267,6 +331,12 @@ type UnavailableCapabilities = {
267
331
  };
268
332
  type KnownDevice = {
269
333
  connectId: string | null;
334
+ /**
335
+ * Stable physical-device identity. Current SDK responses always include this
336
+ * value; it remains optional in the type during the uuid compatibility window.
337
+ */
338
+ serialNo?: string;
339
+ /** @deprecated Use serialNo instead. */
270
340
  uuid: string;
271
341
  deviceId: string | null;
272
342
  deviceType: IDeviceType | null;
@@ -275,12 +345,11 @@ type KnownDevice = {
275
345
  label: string;
276
346
  bleName: string | null;
277
347
  name: string;
278
- displayName?: string;
279
348
  error?: typeof undefined;
280
349
  mode: EOneKeyDeviceMode;
281
350
  features?: Features;
351
+ /** Unified SDK device-state snapshot; features remains a legacy projection. */
282
352
  state?: DeviceState;
283
- sessionId?: string | null;
284
353
  unavailableCapabilities: UnavailableCapabilities;
285
354
  bleFirmwareVersion: IVersionArray | null;
286
355
  firmwareVersion: IVersionArray | null;
@@ -290,11 +359,21 @@ type KnownDevice = {
290
359
  };
291
360
  type SearchDevice = {
292
361
  connectId: string | null;
362
+ /**
363
+ * Available after device initialization. BLE discovery does not connect to the
364
+ * device, so it returns null until a later initialized device response. Current
365
+ * SDK responses always include the field; it remains optional in the type during
366
+ * the uuid compatibility window.
367
+ */
368
+ serialNo?: string | null;
369
+ /**
370
+ * @deprecated Ambiguous legacy identifier. Use serialNo for hardware identity
371
+ * and connectId for transport routing.
372
+ */
293
373
  uuid: string;
294
374
  deviceId: string | null;
295
375
  deviceType: IDeviceType;
296
376
  name: string;
297
- displayName?: string;
298
377
  commType: OneKeyDeviceCommType;
299
378
  };
300
379
  type Device$1 = KnownDevice;
@@ -348,7 +427,6 @@ type DeviceStateIdentity = {
348
427
  serialNo: string;
349
428
  label: string | null;
350
429
  bleName: string | null;
351
- displayName: string;
352
430
  };
353
431
  type DeviceStateStatus = {
354
432
  mode: DeviceStateMode;
@@ -392,6 +470,7 @@ type DeviceStateVersions = {
392
470
  bootloader: string | null;
393
471
  board: string | null;
394
472
  ble: string | null;
473
+ /** @deprecated Kept for legacy consumers; new code should read se01. */
395
474
  se?: string | null;
396
475
  se01?: string | null;
397
476
  se02?: string | null;
@@ -402,15 +481,12 @@ type DeviceStateVersions = {
402
481
  se03Boot?: string | null;
403
482
  se04Boot?: string | null;
404
483
  };
405
- type DeviceStateSession = {
406
- sessionId: string | null;
407
- passphraseState?: string;
408
- };
409
484
  type DeviceState = {
410
485
  schemaVersion: 1;
411
486
  revision: number;
412
487
  updatedAt: number;
413
488
  protocol: DeviceStateProtocol;
489
+ /** Device-message protocol version, independent of the SDK V1/V2 protocol family. */
414
490
  protocolVersion: number | null;
415
491
  identity: DeviceStateIdentity;
416
492
  status: DeviceStateStatus;
@@ -428,7 +504,6 @@ type DeviceStatePatch = {
428
504
  versions?: Partial<DeviceStateVersions>;
429
505
  capabilities?: Array<number | string>;
430
506
  verification?: DeviceFeaturesVerify;
431
- session?: Partial<DeviceStateSession> | null;
432
507
  raw?: DeviceFeaturesRawPatch;
433
508
  };
434
509
  type DeviceStateEvent = {
@@ -505,6 +580,11 @@ type NormalizedFeatures = {
505
580
  type Features = NormalizedFeatures & Partial<Omit<Messages.Features, keyof NormalizedFeatures>> & Partial<Omit<Messages.OnekeyFeatures, keyof NormalizedFeatures | keyof Messages.Features>>;
506
581
  type OnekeyFeatures = Messages.OnekeyFeatures;
507
582
  type IDeviceType = EDeviceType.Unknown | EDeviceType.Classic | EDeviceType.Classic1s | EDeviceType.ClassicPure | EDeviceType.Mini | EDeviceType.Touch | EDeviceType.Pro | EDeviceType.Pro2;
583
+ /**
584
+ * model_classic: 'classic' | 'classic1s' | 'classicpure'
585
+ * model_mini: 'classic' | 'classic1s' | 'classicpure' | 'mini'
586
+ * model_touch: 'touch' | 'pro'
587
+ */
508
588
  type IDeviceModel = 'model_classic' | 'model_mini' | 'model_touch' | 'model_classic1s';
509
589
  declare const DeviceModelToTypes: {
510
590
  [deviceModel in IDeviceModel]: IDeviceType[];
@@ -573,6 +653,7 @@ type DeviceStateScope = 'runtime' | 'settings' | 'firmware';
573
653
  type GetDeviceStateParams = CommonParams & {
574
654
  scope?: DeviceStateScope;
575
655
  };
656
+ /** Internal state-read options, not part of the public CoreApi. */
576
657
  type DeviceStateReadOptions = {
577
658
  refreshSections?: DeviceStateSection[];
578
659
  includeRaw?: boolean;
@@ -616,6 +697,7 @@ type InitOptions = {
616
697
  deriveCardano?: boolean;
617
698
  connectProtocol?: HardwareConnectProtocol;
618
699
  protocolV2DeviceInfoTimeoutMs?: number;
700
+ /** Refresh Protocol V2 runtime state before returning discovery results. */
619
701
  refreshRuntimeState?: boolean;
620
702
  };
621
703
  type RunOptions = {
@@ -643,6 +725,18 @@ interface DeviceEvents {
643
725
  (err: any, deviceId: string) => void
644
726
  ];
645
727
  }
728
+ /**
729
+ * Pre-populate the device session cache with a known session ID.
730
+ *
731
+ * This allows short-lived processes (e.g. CLI) to restore a previously
732
+ * obtained session, avoiding the need to re-enter passphrase on every
733
+ * invocation. The session must have been obtained from a prior
734
+ * getPassphraseState() call on the same device.
735
+ *
736
+ * @param deviceId - The device's device_id (from features)
737
+ * @param passphraseState - The passphrase state token
738
+ * @param sessionId - The session_id to cache (from features.session_id)
739
+ */
646
740
  declare function preloadSessionCache(deviceId: string, passphraseState: string, sessionId: string): void;
647
741
  interface Device {
648
742
  on<K extends keyof DeviceEvents>(type: K, listener: (...event: DeviceEvents[K]) => void): this;
@@ -650,20 +744,44 @@ interface Device {
650
744
  emit<K extends keyof DeviceEvents>(type: K, ...args: DeviceEvents[K]): boolean;
651
745
  }
652
746
  declare class Device extends EventEmitter {
747
+ /**
748
+ * 设备标识对象
749
+ */
653
750
  originalDescriptor: OneKeyDeviceInfo;
654
751
  sdkInstanceId?: string;
752
+ /**
753
+ * 设备实例唯一标识
754
+ */
655
755
  instanceId: string;
656
756
  createdAt: number;
757
+ /**
758
+ * 设备主 ID
759
+ * 蓝牙连接时是设备的 UUID
760
+ * USB连接时是设备的 sessionID
761
+ */
657
762
  mainId?: string | null;
763
+ /**
764
+ * 通信管道,向设备发送请求
765
+ */
658
766
  deviceConnector?: DeviceConnector | null;
767
+ /**
768
+ * 固件命令
769
+ */
659
770
  commands: DeviceCommands;
771
+ /**
772
+ * 可取消的操作
773
+ */
660
774
  private cancelableAction?;
775
+ /**
776
+ * 设备是否被占用
777
+ */
661
778
  private deviceAcquired;
779
+ /** Canonical device-state cache; legacy Features is a compatibility projection. */
662
780
  private stateStore;
781
+ /** Force the next initialization to reload DeviceInfo after reconnect or reboot. */
663
782
  private protocolV2StateNeedsReload;
664
783
  get state(): (DeviceState & {
665
784
  raw?: DeviceFeaturesRaw | undefined;
666
- session?: DeviceStateSession | undefined;
667
785
  }) | undefined;
668
786
  get features(): Features | undefined;
669
787
  set features(features: Features | undefined);
@@ -673,20 +791,33 @@ declare class Device extends EventEmitter {
673
791
  instance: number;
674
792
  internalState: string[];
675
793
  needReloadDevice: boolean;
794
+ /**
795
+ * 执行 API 方法后是否保留 SessionID
796
+ */
676
797
  keepSession: boolean;
677
798
  passphraseState: string | undefined;
678
799
  pendingCallbackPromise?: Deferred<void>;
800
+ /** Pre-initialize timestamp (ms) */
679
801
  private preInitializedAt?;
802
+ /** Pre-initialize context, used to verify state consistency before skipping */
680
803
  private preInitializeMeta?;
804
+ /** Last Initialize duration (ms), reported as "saved" when a skip happens */
681
805
  private lastInitializeDurationMs?;
682
806
  constructor(descriptor: OneKeyDeviceInfo, sdkInstanceId?: string);
683
807
  static fromDescriptor(originalDescriptor: OneKeyDeviceInfo, sdkInstanceId?: string): Device;
684
808
  toMessageObject(): Device$1 | null;
809
+ /**
810
+ * Device connect
811
+ * @returns {Promise<boolean>}
812
+ */
685
813
  connect(connectProtocol?: HardwareConnectProtocol): Promise<boolean>;
686
814
  acquire(connectProtocol?: HardwareConnectProtocol, options?: {
687
815
  throwOnRunPromiseError?: boolean;
688
816
  }): Promise<void>;
689
817
  release(): Promise<void>;
818
+ /**
819
+ * Pre-initialize: connect + Initialize ahead of the sign.
820
+ */
690
821
  preInitialize(initOptions?: InitOptions): Promise<void>;
691
822
  markPreInitialized(meta?: {
692
823
  passphraseState?: string;
@@ -699,6 +830,13 @@ declare class Device extends EventEmitter {
699
830
  setLastInitializeDuration(durationMs: number): void;
700
831
  getLastInitializeDuration(): number | undefined;
701
832
  getCommands(): DeviceCommands;
833
+ /**
834
+ * Canonical protocol discriminator.
835
+ *
836
+ * descriptor.protocolType is established by active probing; V2 features are mapped
837
+ * from DeviceInfoGet. All protocol branches must use this method instead of reading
838
+ * originalDescriptor.protocolType directly or inferring a protocol from features.
839
+ */
702
840
  getProtocol(): 'V1' | 'V2';
703
841
  isProtocolV2(): boolean;
704
842
  getCurrentDeviceType(): IDeviceType;
@@ -711,35 +849,47 @@ declare class Device extends EventEmitter {
711
849
  getCurrentFirmwareType(): _onekeyfe_hd_shared.EFirmwareType;
712
850
  getCurrentFirmwareVersionString(): string;
713
851
  getCurrentBLEFirmwareVersionString(): string | undefined;
852
+ getCurrentBootloaderVersionString(): string | undefined;
714
853
  getCurrentSafetyChecks(): string | null | undefined;
715
854
  getCurrentMethodVersionRange(getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined): IVersionRange | undefined;
716
855
  supportNewPassphrase(): SupportFeatureType;
717
856
  supportInputPinOnSoftware(): SupportFeatureType;
718
857
  supportModifyHomescreen(): SupportFeatureType;
719
858
  private getSessionCacheDeviceKey;
859
+ private reconcileSessionCacheDeviceIdentity;
720
860
  getInternalState(_deviceId?: string): string | undefined;
721
861
  updateInternalState(enablePassphrase: boolean, passphraseState: string | undefined, deviceId: string | undefined, sessionId?: string | null, featuresSessionId?: string | null): void;
722
862
  private setInternalState;
723
863
  clearInternalState(_deviceId?: string): void;
724
864
  initialize(options?: InitOptions): Promise<void>;
865
+ /**
866
+ * Device initialization over Protocol V2.
867
+ *
868
+ * Protocol V2 bypasses legacy Initialize/GetFeatures and builds its canonical
869
+ * features state directly from DeviceInfoGet.
870
+ */
725
871
  private _initializeProtocolV2;
726
872
  getFeatures(): Promise<Features | undefined>;
727
873
  getDeviceState(params?: DeviceStateReadOptions): Promise<DeviceState>;
728
874
  _updateFeatures(protoFeatures: Messages.Features | Features, initSession?: boolean): void;
729
875
  updateState(patch: DeviceStatePatch, source: DeviceStateUpdateSource): DeviceState & {
730
876
  raw?: DeviceFeaturesRaw | undefined;
731
- session?: DeviceStateSession | undefined;
732
877
  };
733
- clearCachedSession(deviceId?: string, passphraseState?: string): boolean;
734
878
  updateFeaturesPatch(patch: Partial<Features>, source: DeviceStateUpdateSource): Features | undefined;
735
- updateProtocolV2Features(deviceInfo?: ProtocolV2DeviceInfo, deviceStatus?: DeviceStatus$1 | null): Features;
879
+ probeProtocolV2RuntimeState(deviceInfo: ProtocolV2DeviceInfo, timeoutMs?: number): Promise<Features>;
880
+ updateProtocolV2Features(deviceInfo?: ProtocolV2DeviceInfo, deviceStatus?: DeviceStatus$1 | null, runtimeMode?: ProtocolV2RuntimeMode): Features;
736
881
  updateProtocolV2Status(status: DeviceStatus$1): Features;
737
882
  markTransportDisconnected(): void;
738
883
  markProtocolV2Reboot(rebootType: DeviceRebootType): void;
884
+ /**
885
+ * 暂时只在 acquire 后更新 Session ID
886
+ * 后续看是否有需要依据 listen 返回结果更新
887
+ * @param descriptor
888
+ */
739
889
  updateDescriptor(descriptor: OneKeyDeviceInfo, forceUpdate?: boolean): void;
740
890
  updateFromCache(device: Device): void;
741
891
  run(fn?: () => Promise<void>, options?: RunOptions): Promise<void>;
742
- _runInner<T>(fn: (() => Promise<T>) | undefined, options: RunOptions): Promise<undefined>;
892
+ _runInner<T>(fn: (() => Promise<T>) | undefined, options: RunOptions, runPromise: Deferred<void>): Promise<void>;
743
893
  interruptionFromOutside(): Promise<void>;
744
894
  interruptionFromUser(): Promise<void>;
745
895
  setCancelableAction(callback: (err?: Error) => Promise<unknown>): void;
@@ -764,27 +914,72 @@ declare class Device extends EventEmitter {
764
914
  checkPassphraseStateSafety(passphraseState?: string, useEmptyPassphrase?: boolean, skipPassphraseCheck?: boolean): Promise<boolean>;
765
915
  }
766
916
 
917
+ /**
918
+ * SDK Tracing Utilities
919
+ * Tracks object instances and request call chains across multiple SDK instances
920
+ */
921
+ /**
922
+ * Generate SDK instance ID
923
+ * @returns Format: "SDK-<number>-<timestamp>"
924
+ * @example "SDK-1-123456"
925
+ */
767
926
  declare function generateSdkInstanceId(): string;
927
+ /**
928
+ * Generate globally unique instance ID
929
+ * @param type Instance type (Device, DeviceCommands, BaseMethod, etc.)
930
+ * @param sdkInstanceId SDK instance ID (optional)
931
+ * @returns Format: <SDK>.<type>-<number>-<timestamp>
932
+ * @example "SDK-1.Device-1-123456" or "Device-1-123456"
933
+ */
768
934
  declare function generateInstanceId(type: string, sdkInstanceId?: string): string;
935
+ /**
936
+ * Request context information
937
+ */
769
938
  interface RequestContext {
939
+ /** Request unique ID (reuses BaseMethod.responseID) */
770
940
  responseID: number;
941
+ /** SDK instance ID */
771
942
  sdkInstanceId?: string;
943
+ /** API method name */
772
944
  methodName: string;
945
+ /** Device connection ID */
773
946
  connectId?: string;
947
+ /** Device instance ID */
774
948
  deviceInstanceId?: string;
949
+ /** DeviceCommands instance ID */
775
950
  commandsInstanceId?: string;
951
+ /** Parent request ID (for nested calls like allNetworkGetAddress) */
776
952
  parentResponseID?: number;
953
+ /** Request start time */
777
954
  startTime: number;
955
+ /** Request end time */
778
956
  endTime?: number;
957
+ /** Request status */
779
958
  status?: 'pending' | 'running' | 'success' | 'error' | 'cancelled';
959
+ /** Error message */
780
960
  error?: string;
781
961
  }
962
+ /**
963
+ * SDK instance tracing context
964
+ */
782
965
  interface SdkTracingContext {
966
+ /** SDK instance ID */
783
967
  sdkInstanceId: string;
968
+ /** Creation timestamp */
784
969
  createdAt: number;
970
+ /** Active requests */
785
971
  activeRequests: Map<number, RequestContext>;
786
972
  }
973
+ /**
974
+ * Create SDK instance tracing context
975
+ */
787
976
  declare function createSdkTracingContext(): SdkTracingContext;
977
+ /**
978
+ * Create and register request context
979
+ * @param responseID Request ID (reuses BaseMethod.responseID)
980
+ * @param methodName API method name
981
+ * @param options Additional options
982
+ */
788
983
  declare function createRequestContext(responseID: number, methodName: string, options?: {
789
984
  sdkInstanceId?: string;
790
985
  connectId?: string;
@@ -792,23 +987,40 @@ declare function createRequestContext(responseID: number, methodName: string, op
792
987
  commandsInstanceId?: string;
793
988
  parentResponseID?: number;
794
989
  }): RequestContext;
990
+ /**
991
+ * Update request context
992
+ */
795
993
  declare function updateRequestContext(responseID: number, updates: Partial<RequestContext>): void;
994
+ /**
995
+ * Complete request context
996
+ */
796
997
  declare function completeRequestContext(responseID: number, error?: Error): void;
998
+ /**
999
+ * Get active requests for specific Device instance
1000
+ */
797
1001
  declare function getActiveRequestsByDeviceInstance(deviceInstanceId: string): RequestContext[];
1002
+ /**
1003
+ * Format request context for logging
1004
+ */
798
1005
  declare function formatRequestContext(context: RequestContext): string;
1006
+ /**
1007
+ * Cleanup specific SDK instance
1008
+ */
799
1009
  declare function cleanupSdkInstance(sdkInstanceId: string): void;
800
1010
 
801
1011
  declare class Core extends EventEmitter {
802
1012
  private tracingContext;
803
1013
  readonly sdkInstanceId: string;
804
1014
  private requestQueue;
1015
+ private disposePromise?;
805
1016
  private prePendingCallPromise;
806
1017
  private methodSynchronize;
807
1018
  constructor();
808
1019
  cancelOperation(operationId: string): void;
809
1020
  private getCoreContext;
810
1021
  handleMessage(message: CoreMessage): Promise<any>;
811
- dispose(): void;
1022
+ dispose(): Promise<void>;
1023
+ private disposeResources;
812
1024
  }
813
1025
  declare const init$1: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin) => Promise<Core | undefined>;
814
1026
  declare const switchTransport: ({ env, Transport, plugin, }: {
@@ -817,25 +1029,24 @@ declare const switchTransport: ({ env, Transport, plugin, }: {
817
1029
  plugin?: LowlevelTransportSharedPlugin | undefined;
818
1030
  }) => void;
819
1031
 
820
- type HiddenWalletSelection = {
821
- host_passphrase: DeviceHostPassphrase;
822
- passphrase_on_device?: never;
823
- attach_pin_on_device?: never;
824
- } | {
825
- host_passphrase?: never;
826
- passphrase_on_device: DevicePassphraseOnDevice;
827
- attach_pin_on_device?: never;
828
- } | {
829
- host_passphrase?: never;
830
- passphrase_on_device?: never;
831
- attach_pin_on_device: DeviceAttachPinOnDevice;
1032
+ type DeviceInfoGetTargets = {
1033
+ hw?: boolean;
1034
+ fw?: boolean;
1035
+ coprocessor?: boolean;
1036
+ se1?: boolean;
1037
+ se2?: boolean;
1038
+ se3?: boolean;
1039
+ se4?: boolean;
832
1040
  };
833
- type DeviceSessionOpenParams = {
834
- resume: DeviceSessionResume;
835
- select?: never;
836
- } | {
837
- resume?: never;
838
- select: HiddenWalletSelection;
1041
+ type DeviceInfoGetTypes = {
1042
+ version?: boolean;
1043
+ build_id?: boolean;
1044
+ hash?: boolean;
1045
+ specific?: boolean;
1046
+ };
1047
+ type DeviceInfoGetParams = {
1048
+ targets?: DeviceInfoGetTargets;
1049
+ types?: DeviceInfoGetTypes;
839
1050
  };
840
1051
 
841
1052
  type DeviceSettingsSetParams = {
@@ -907,18 +1118,30 @@ type PathInfoResult = {
907
1118
  archive: boolean;
908
1119
  directory: boolean;
909
1120
  };
1121
+ /** @deprecated Development-only raw Protocol V2 command. Use `getDeviceState`. */
1122
+ declare function deviceInfoGet(connectId: string, params?: CommonParams & DeviceInfoGetParams): Response<ProtocolV2DeviceInfo>;
1123
+ /** @deprecated Development-only raw Protocol V2 command. Use `getDeviceState`. */
1124
+ declare function deviceStatusGet(connectId: string, params?: CommonParams): Response<DeviceStatus$1>;
1125
+ /** @deprecated Development-only raw Protocol V2 command. Use `getDeviceState`. */
1126
+ declare function deviceSettingsGet(connectId: string, params?: CommonParams): Response<DeviceSettings>;
1127
+ /** @deprecated Development-only raw Protocol V2 command. */
910
1128
  declare function protocolInfoRequest(connectId: string, params?: CommonParams): Response<ProtocolInfo>;
911
1129
  declare function ping(connectId: string, params?: CommonParams & {
912
1130
  message?: string;
913
1131
  }): Response<Success$1>;
914
1132
  declare function deviceReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
915
1133
  declare function deviceGetOnboardingStatus(connectId: string, params?: CommonParams): Response<DevOnboardingStatus>;
916
- declare function deviceSessionOpen(connectId: string, params: CommonParams & DeviceSessionOpenParams): Response<DeviceSession>;
917
1134
  declare function deviceFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DeviceFirmwareUpdateStatus>;
918
1135
  declare function deviceGetFirmwareUpdateStatus(connectId: string, params?: CommonParams & DeviceFirmwareUpdateStatusGetParams): Response<DeviceFirmwareUpdateStatus>;
919
1136
  declare function deviceFactoryInfoSet(connectId: string, params: CommonParams & DeviceFactoryInfoSetParams): Response<Success$1>;
920
1137
  declare function deviceFactoryInfoGet(connectId: string, params?: CommonParams): Response<DeviceFactoryInfo>;
1138
+ /**
1139
+ * @deprecated Use the protocol-independent `deviceSettings`.
1140
+ */
921
1141
  declare function deviceSettingsSet(connectId: string, params: CommonParams & DeviceSettingsSetParams): Response<Success$1>;
1142
+ /**
1143
+ * @deprecated Use `deviceSettings`, `deviceChangePin`, or `deviceWipe`.
1144
+ */
922
1145
  declare function deviceSettingsPageShow(connectId: string, params: CommonParams & DeviceSettingsPageShowParams): Response<Success$1>;
923
1146
  declare function deviceUploadWallpaper(connectId: string, params: CommonParams & DeviceUploadWallpaperParams): Response<DeviceUploadWallpaperResponse>;
924
1147
  declare function filesystemPermissionFix(connectId: string, params?: CommonParams): Response<Success$1>;
@@ -958,8 +1181,6 @@ declare function pathInfo(connectId: string, params: {
958
1181
  path: string;
959
1182
  timeoutMs?: number | string;
960
1183
  }): Response<PathInfoResult>;
961
- declare const filesystemFileRead: typeof fileRead;
962
- declare const filesystemFileWrite: typeof fileWrite;
963
1184
  declare function uploadPortfolio(connectId: string, params: {
964
1185
  operationId?: string;
965
1186
  packageBytes: ArrayBuffer | Uint8Array | Blob;
@@ -967,11 +1188,6 @@ declare function uploadPortfolio(connectId: string, params: {
967
1188
  }): Response<FileInfo & {
968
1189
  portfolioUpdated: true;
969
1190
  }>;
970
- declare const filesystemFileDelete: typeof fileDelete;
971
- declare const filesystemDirList: typeof dirList;
972
- declare const filesystemDirMake: typeof dirMake;
973
- declare const filesystemDirRemove: typeof dirRemove;
974
- declare const filesystemPathInfoQuery: typeof pathInfo;
975
1191
  declare function filesystemFormat(connectId: string): Response<Success$1>;
976
1192
 
977
1193
  declare const on: <T extends string, P extends (...args: any[]) => any>(type: T, fn: P) => void;
@@ -1053,7 +1269,7 @@ type AllFirmwareRelease = {
1053
1269
  ble: FirmwareRelease$2;
1054
1270
  bootloader?: FirmwareRelease$2;
1055
1271
  bridge?: FirmwareRelease$2;
1056
- features?: Features$1;
1272
+ features?: Features;
1057
1273
  };
1058
1274
  type CheckAllFirmwareReleaseParams = {
1059
1275
  checkBridgeRelease?: boolean;
@@ -1069,13 +1285,74 @@ declare function checkFirmwareTypeAvailable(params: CheckFirmwareTypeAvailablePa
1069
1285
 
1070
1286
  declare function searchDevices(params?: CommonParams): Response<SearchDevice[]>;
1071
1287
 
1288
+ /**
1289
+ * @deprecated Use `getDeviceState` for both Protocol V1 and Protocol V2 devices.
1290
+ */
1072
1291
  declare function getFeatures(connectId?: string, params?: CommonParams): Response<Features>;
1073
1292
 
1293
+ /**
1294
+ * @deprecated Use `getDeviceState(connectId, { scope: 'firmware' })`.
1295
+ */
1074
1296
  declare function getOnekeyFeatures(connectId?: string, params?: CommonParams): Response<OnekeyFeatures>;
1075
1297
 
1076
1298
  type GetPassphraseStateParams = CommonParams;
1299
+ /**
1300
+ * Legacy Protocol V1 wallet API.
1301
+ *
1302
+ * This remains supported for Protocol V1 integrations. New cross-protocol integrations
1303
+ * and all Protocol V2 callers should use `openWalletSession`.
1304
+ */
1077
1305
  declare function getPassphraseState(connectId?: string, params?: GetPassphraseStateParams): Response<string | undefined>;
1078
1306
 
1307
+ type OpenWalletSessionParams = {
1308
+ mode: 'standard';
1309
+ deviceId?: never;
1310
+ passphraseState?: never;
1311
+ useEmptyPassphrase?: never;
1312
+ initSession?: never;
1313
+ } | {
1314
+ mode: 'select-hidden';
1315
+ deviceId?: never;
1316
+ passphraseState?: never;
1317
+ useEmptyPassphrase?: never;
1318
+ initSession?: never;
1319
+ } | {
1320
+ mode: 'resume-hidden';
1321
+ deviceId: string;
1322
+ passphraseState: string;
1323
+ useEmptyPassphrase?: never;
1324
+ initSession?: never;
1325
+ } | {
1326
+ /**
1327
+ * Compatibility form. `useEmptyPassphrase: true` opens the standard wallet;
1328
+ * otherwise `initSession: true` starts a fresh hidden-wallet selection, a
1329
+ * complete wallet binding resumes a hidden wallet, and no binding starts the
1330
+ * hidden-wallet selection flow.
1331
+ */
1332
+ mode?: undefined;
1333
+ useEmptyPassphrase?: boolean;
1334
+ initSession?: boolean;
1335
+ deviceId?: string;
1336
+ passphraseState?: string;
1337
+ };
1338
+ type OpenWalletSessionPayloadBase = {
1339
+ protocol: 'V1' | 'V2';
1340
+ deviceId: string;
1341
+ resumed: boolean;
1342
+ };
1343
+ type OpenWalletSessionPayload = OpenWalletSessionPayloadBase & ({
1344
+ walletType: 'standard';
1345
+ passphraseState: null;
1346
+ } | {
1347
+ walletType: 'hidden';
1348
+ passphraseState: string;
1349
+ });
1350
+ /**
1351
+ * Opens the standard, hidden, or Attach-to-PIN wallet flow through a unified
1352
+ * Protocol V1/V2 API.
1353
+ */
1354
+ declare function openWalletSession(connectId: string, params: CommonParams & OpenWalletSessionParams): Response<OpenWalletSessionPayload>;
1355
+
1079
1356
  type FirmwareRelease$1 = {
1080
1357
  status: IDeviceFirmwareStatus;
1081
1358
  changelog: {
@@ -1138,22 +1415,36 @@ interface FirmwareUpdateV3Params {
1138
1415
  firmwareType?: EFirmwareType;
1139
1416
  platform: IPlatform;
1140
1417
  }
1418
+ /**
1419
+ * firmwareUpdateV4 target binaries grouped by DeviceFirmwareTargetType.
1420
+ * Except for romloader, each field maps to a target accepted by bootloader.
1421
+ */
1141
1422
  type FirmwareUpdateV4Target = 'boot' | 'app_v1' | 'app_v2' | 'coprocessor' | 'resource' | 'se01' | 'se02' | 'se03' | 'se04';
1142
1423
  interface FirmwareUpdateV4Params {
1143
1424
  platform: IPlatform;
1144
1425
  chunkSize?: number;
1145
1426
  firmwareType?: EFirmwareType;
1146
1427
  targetsToUpdate?: FirmwareUpdateV4Target[];
1428
+ /** FW_MGMT_TARGET_ROMLOADER = 2; Pro2 cannot install it through firmwareUpdateV4. */
1147
1429
  romloaderBinary?: ArrayBuffer;
1430
+ /** FW_MGMT_TARGET_BOOTLOADER = 3 */
1148
1431
  bootloaderBinary?: ArrayBuffer;
1432
+ /** FW_MGMT_TARGET_APPLICATION_P1 = 4 */
1149
1433
  applicationP1Binary?: ArrayBuffer;
1434
+ /** FW_MGMT_TARGET_APPLICATION_P2 = 5 */
1150
1435
  applicationP2Binary?: ArrayBuffer;
1436
+ /** FW_MGMT_TARGET_COPROCESSOR = 6 */
1151
1437
  coprocessorBinary?: ArrayBuffer;
1438
+ /** FW_MGMT_TARGET_SE01-04 = 7-10 */
1152
1439
  se01Binary?: ArrayBuffer;
1153
1440
  se02Binary?: ArrayBuffer;
1154
1441
  se03Binary?: ArrayBuffer;
1155
1442
  se04Binary?: ArrayBuffer;
1156
1443
  forcedUpdateRes?: boolean;
1444
+ /**
1445
+ * RESC bundle okpkg files written directly to devicePath through FilesystemFileWrite.
1446
+ * Manual mode installs them without version comparison.
1447
+ */
1157
1448
  resourceBundleFiles?: Array<{
1158
1449
  binary: ArrayBuffer;
1159
1450
  devicePath: string;
@@ -1241,6 +1532,7 @@ type DeviceSettingsParams = {
1241
1532
  brightness?: number;
1242
1533
  hapticFeedback?: boolean;
1243
1534
  bluetoothEnabled?: boolean;
1535
+ airgapMode?: boolean;
1244
1536
  animationEnabled?: boolean;
1245
1537
  tapToWake?: boolean;
1246
1538
  deviceNameDisplayEnabled?: boolean;
@@ -1288,7 +1580,7 @@ declare function deviceUpdateBootloader(connectId: string, params?: DeviceUpdate
1288
1580
 
1289
1581
  declare function deviceLock(connectId: string, params: CommonParams): Response<Success$1>;
1290
1582
 
1291
- declare function deviceUnlock(connectId: string, params?: CommonParams): Response<Features$1>;
1583
+ declare function deviceUnlock(connectId: string, params?: CommonParams): Response<Features>;
1292
1584
 
1293
1585
  declare function deviceCancel(connectId: string, params: CommonParams): Response<Success$1>;
1294
1586
 
@@ -1492,6 +1784,9 @@ type AllNetworkAddressParams = {
1492
1784
  type AllNetworkAddressPayload = {
1493
1785
  address: string;
1494
1786
  pub?: string;
1787
+ /**
1788
+ * @deprecated Use `pub` instead.
1789
+ */
1495
1790
  publicKey?: string;
1496
1791
  npub?: string;
1497
1792
  } | {
@@ -1557,6 +1852,9 @@ declare function evmGetAddress(connectId: string, deviceId: string, params: Comm
1557
1852
  type EVMPublicKey = {
1558
1853
  path: string;
1559
1854
  pub: string;
1855
+ /**
1856
+ * @deprecated Use `pub` instead.
1857
+ */
1560
1858
  publicKey?: string;
1561
1859
  } & EthereumPublicKey;
1562
1860
  type EVMGetPublicKeyParams = {
@@ -2340,6 +2638,9 @@ declare function nearSignTransaction(connectId: string, deviceId: string, params
2340
2638
  type AptosAddress = {
2341
2639
  path: string;
2342
2640
  pub?: string;
2641
+ /**
2642
+ * @deprecated Use `pub` instead.
2643
+ */
2343
2644
  publicKey?: string;
2344
2645
  } & AptosAddress$1;
2345
2646
  type AptosGetAddressParams = {
@@ -2354,6 +2655,9 @@ declare function aptosGetAddress(connectId: string, deviceId: string, params: Co
2354
2655
  type AptosPublicKey = {
2355
2656
  path: string;
2356
2657
  pub: string;
2658
+ /**
2659
+ * @deprecated Use `pub` instead.
2660
+ */
2357
2661
  publicKey?: string;
2358
2662
  };
2359
2663
  type AptosGetPublicKeyParams = {
@@ -2438,6 +2742,9 @@ declare function cosmosGetAddress(connectId: string, deviceId: string, params: C
2438
2742
  type CosmosPublicKey = {
2439
2743
  path: string;
2440
2744
  pub: string;
2745
+ /**
2746
+ * @deprecated Use `pub` instead.
2747
+ */
2441
2748
  publicKey?: string;
2442
2749
  };
2443
2750
  type CosmosGetPublicKeyParams = {
@@ -2462,6 +2769,9 @@ declare function cosmosSignTransaction(connectId: string, deviceId: string, para
2462
2769
  type XrpAddress = {
2463
2770
  path: string;
2464
2771
  pub?: string;
2772
+ /**
2773
+ * @deprecated Use `pub` instead.
2774
+ */
2465
2775
  publicKey?: string;
2466
2776
  address: string;
2467
2777
  };
@@ -2495,6 +2805,9 @@ declare function xrpSignTransaction(connectId: string, deviceId: string, params:
2495
2805
  type SuiAddress = {
2496
2806
  path: string;
2497
2807
  pub?: string;
2808
+ /**
2809
+ * @deprecated Use `pub` instead.
2810
+ */
2498
2811
  publicKey?: string;
2499
2812
  } & SuiAddress$1;
2500
2813
  type SuiGetAddressParams = {
@@ -2509,6 +2822,9 @@ declare function suiGetAddress(connectId: string, deviceId: string, params: Comm
2509
2822
  type SuiPublicKey = {
2510
2823
  path: string;
2511
2824
  pub: string;
2825
+ /**
2826
+ * @deprecated Use `pub` instead.
2827
+ */
2512
2828
  publicKey?: string;
2513
2829
  };
2514
2830
  type SuiGetPublicKeyParams = {
@@ -2538,6 +2854,10 @@ declare function suiSignTransaction(connectId: string, deviceId: string, params:
2538
2854
  type CardanoGetAddressMethodParams = {
2539
2855
  addressParameters: CardanoAddressParameters;
2540
2856
  networkId: number;
2857
+ /**
2858
+ * Testnet cip34:0-1097911063
2859
+ * Mainnet cip34:1-764824073
2860
+ */
2541
2861
  protocolMagic: number;
2542
2862
  derivationType: number;
2543
2863
  address?: string;
@@ -2599,6 +2919,10 @@ type CardanoSignMessageMethodParams = {
2599
2919
  derivationType: number;
2600
2920
  networkId: number;
2601
2921
  addressType?: Messages.CardanoAddressType;
2922
+ /**
2923
+ * Testnet cip34:0-1097911063
2924
+ * Mainnet cip34:1-764824073
2925
+ */
2602
2926
  protocolMagic?: number;
2603
2927
  };
2604
2928
  declare function cardanoSignMessage(connectId: string, deviceId: string, params: CommonParams & CardanoSignMessageMethodParams): Response<CardanoMessageSignature>;
@@ -2632,6 +2956,9 @@ declare function filecoinSignTransaction(connectId: string, deviceId: string, pa
2632
2956
  type PolkadotAddress = {
2633
2957
  path: string;
2634
2958
  pub: string;
2959
+ /**
2960
+ * @deprecated Use `pub` instead.
2961
+ */
2635
2962
  publicKey?: string;
2636
2963
  } & PolkadotAddress$1;
2637
2964
  type PolkadotGetAddressParams = {
@@ -2776,6 +3103,9 @@ declare function nexaSignTransaction(connectId: string, deviceId: string, params
2776
3103
  type NostrPublicKey = {
2777
3104
  npub?: string;
2778
3105
  pub?: string;
3106
+ /**
3107
+ * @deprecated Use `pub` instead.
3108
+ */
2779
3109
  publicKey?: string;
2780
3110
  path: string;
2781
3111
  };
@@ -2872,6 +3202,9 @@ declare function nostrSignSchnorr(connectId: string, deviceId: string, params: C
2872
3202
 
2873
3203
  interface LnurlAuth {
2874
3204
  pub?: string;
3205
+ /**
3206
+ * @deprecated Use `pub` instead.
3207
+ */
2875
3208
  publickey?: string;
2876
3209
  path?: string;
2877
3210
  signature?: string;
@@ -2948,6 +3281,9 @@ declare function dnxSignTransaction(connectId: string, deviceId: string, params:
2948
3281
  type TonAddress = {
2949
3282
  path: string;
2950
3283
  pub: string;
3284
+ /**
3285
+ * @deprecated Use `pub` instead.
3286
+ */
2951
3287
  publicKey?: string;
2952
3288
  address: string;
2953
3289
  };
@@ -3059,6 +3395,9 @@ declare function scdoSignTransaction(connectId: string, deviceId: string, params
3059
3395
 
3060
3396
  type AlephiumAddress = {
3061
3397
  path: string;
3398
+ /**
3399
+ * @deprecated Use `pub` instead.
3400
+ */
3062
3401
  publicKey?: string;
3063
3402
  pub?: string;
3064
3403
  address: string;
@@ -3161,12 +3500,15 @@ type NeoSignedTx = {
3161
3500
  declare function neoSignTransaction(connectId: string, deviceId: string, params: CommonParams & NeoUnsignedTx): Response<NeoSignedTx>;
3162
3501
 
3163
3502
  type CoreApi = {
3503
+ /**
3504
+ * Inject function
3505
+ */
3164
3506
  init: typeof init;
3165
3507
  on: typeof on;
3166
3508
  off: typeof off;
3167
3509
  emit: (event: string, ...args: any[]) => void;
3168
3510
  removeAllListeners: typeof removeAllListeners;
3169
- dispose: () => void;
3511
+ dispose: () => void | Promise<void>;
3170
3512
  call: (params: any) => Promise<any>;
3171
3513
  uiResponse: typeof uiResponse;
3172
3514
  cancel: (connectId?: string) => void;
@@ -3177,19 +3519,29 @@ type CoreApi = {
3177
3519
  }>;
3178
3520
  getLogs: typeof getLogs;
3179
3521
  clearSessionCache: typeof clearSessionCache;
3522
+ /**
3523
+ * Test function
3524
+ */
3180
3525
  testInitializeDeviceDuration: typeof testInitializeDeviceDuration;
3181
3526
  preInitialize: typeof preInitialize;
3527
+ /**
3528
+ * Core function
3529
+ */
3182
3530
  checkAllFirmwareRelease: typeof checkAllFirmwareRelease;
3183
3531
  checkBridgeStatus: typeof checkBridgeStatus;
3184
3532
  checkBridgeRelease: typeof checkBridgeRelease;
3185
3533
  checkBootloaderRelease: typeof checkBootloaderRelease;
3186
3534
  checkFirmwareTypeAvailable: typeof checkFirmwareTypeAvailable;
3535
+ /**
3536
+ * Device function
3537
+ */
3187
3538
  searchDevices: typeof searchDevices;
3188
3539
  promptWebDeviceAccess: typeof promptWebDeviceAccess;
3189
3540
  getFeatures: typeof getFeatures;
3190
3541
  getDeviceState: typeof getDeviceState;
3191
3542
  getOnekeyFeatures: typeof getOnekeyFeatures;
3192
3543
  getPassphraseState: typeof getPassphraseState;
3544
+ openWalletSession: typeof openWalletSession;
3193
3545
  deviceBackup: typeof deviceBackup;
3194
3546
  deviceChangePin: typeof deviceChangePin;
3195
3547
  deviceFlags: typeof deviceFlags;
@@ -3217,19 +3569,26 @@ type CoreApi = {
3217
3569
  firmwareUpdateV3: typeof firmwareUpdateV3;
3218
3570
  firmwareUpdateV4: typeof firmwareUpdateV4;
3219
3571
  cipherKeyValue: typeof cipherKeyValue;
3220
- protocolInfoRequest: typeof protocolInfoRequest;
3221
- ping: typeof ping;
3572
+ /**
3573
+ * Pro2 business API
3574
+ */
3222
3575
  deviceReboot: typeof deviceReboot;
3223
3576
  deviceGetOnboardingStatus: typeof deviceGetOnboardingStatus;
3224
- deviceSessionOpen: typeof deviceSessionOpen;
3577
+ deviceUploadWallpaper: typeof deviceUploadWallpaper;
3578
+ deviceInfoGet: typeof deviceInfoGet;
3579
+ deviceStatusGet: typeof deviceStatusGet;
3580
+ deviceSettingsGet: typeof deviceSettingsGet;
3581
+ protocolInfoRequest: typeof protocolInfoRequest;
3582
+ ping: typeof ping;
3225
3583
  deviceFirmwareUpdate: typeof deviceFirmwareUpdate;
3226
3584
  deviceGetFirmwareUpdateStatus: typeof deviceGetFirmwareUpdateStatus;
3227
3585
  deviceFactoryInfoSet: typeof deviceFactoryInfoSet;
3228
3586
  deviceFactoryInfoGet: typeof deviceFactoryInfoGet;
3229
3587
  deviceSettingsSet: typeof deviceSettingsSet;
3230
3588
  deviceSettingsPageShow: typeof deviceSettingsPageShow;
3231
- deviceUploadWallpaper: typeof deviceUploadWallpaper;
3232
3589
  filesystemPermissionFix: typeof filesystemPermissionFix;
3590
+ filesystemFormat: typeof filesystemFormat;
3591
+ uploadPortfolio: typeof uploadPortfolio;
3233
3592
  fileRead: typeof fileRead;
3234
3593
  fileWrite: typeof fileWrite;
3235
3594
  fileDelete: typeof fileDelete;
@@ -3237,17 +3596,14 @@ type CoreApi = {
3237
3596
  dirMake: typeof dirMake;
3238
3597
  dirRemove: typeof dirRemove;
3239
3598
  pathInfo: typeof pathInfo;
3240
- filesystemFileRead: typeof filesystemFileRead;
3241
- filesystemFileWrite: typeof filesystemFileWrite;
3242
- uploadPortfolio: typeof uploadPortfolio;
3243
- filesystemFileDelete: typeof filesystemFileDelete;
3244
- filesystemDirList: typeof filesystemDirList;
3245
- filesystemDirMake: typeof filesystemDirMake;
3246
- filesystemDirRemove: typeof filesystemDirRemove;
3247
- filesystemPathInfoQuery: typeof filesystemPathInfoQuery;
3248
- filesystemFormat: typeof filesystemFormat;
3599
+ /**
3600
+ * All network function
3601
+ */
3249
3602
  allNetworkGetAddress: typeof allNetworkGetAddress;
3250
3603
  allNetworkGetAddressByLoop: typeof allNetworkGetAddressByLoop;
3604
+ /**
3605
+ * EVM function
3606
+ */
3251
3607
  evmGetAddress: typeof evmGetAddress;
3252
3608
  evmGetPublicKey: typeof evmGetPublicKey;
3253
3609
  evmSignMessage: typeof evmSignMessage;
@@ -3255,86 +3611,167 @@ type CoreApi = {
3255
3611
  evmSignTransaction: typeof evmSignTransaction;
3256
3612
  evmSignTypedData: typeof evmSignTypedData;
3257
3613
  evmVerifyMessage: typeof evmVerifyMessage;
3614
+ /**
3615
+ * BTC function
3616
+ */
3258
3617
  btcGetAddress: typeof btcGetAddress;
3259
3618
  btcGetPublicKey: typeof btcGetPublicKey;
3260
3619
  btcSignMessage: typeof btcSignMessage;
3261
3620
  btcSignPsbt: typeof btcSignPsbt;
3262
3621
  btcSignTransaction: typeof btcSignTransaction;
3263
3622
  btcVerifyMessage: typeof btcVerifyMessage;
3623
+ /**
3624
+ * Starcoin function
3625
+ */
3264
3626
  starcoinGetAddress: typeof starcoinGetAddress;
3265
3627
  starcoinGetPublicKey: typeof starcoinGetPublicKey;
3266
3628
  starcoinSignMessage: typeof starcoinSignMessage;
3267
3629
  starcoinSignTransaction: typeof starcoinSignTransaction;
3268
3630
  starcoinVerifyMessage: typeof starcoinVerifyMessage;
3631
+ /**
3632
+ * Nem function
3633
+ */
3269
3634
  nemGetAddress: typeof nemGetAddress;
3270
3635
  nemSignTransaction: typeof nemSignTransaction;
3636
+ /**
3637
+ * Solana function
3638
+ */
3271
3639
  solGetAddress: typeof solGetAddress;
3272
3640
  solSignTransaction: typeof solSignTransaction;
3273
3641
  solSignOffchainMessage: typeof solSignOffchainMessage;
3274
3642
  solSignMessage: typeof solSignMessage;
3643
+ /**
3644
+ * Stellar function
3645
+ */
3275
3646
  stellarGetAddress: typeof stellarGetAddress;
3276
3647
  stellarSignTransaction: typeof stellarSignTransaction;
3648
+ /**
3649
+ * Tron function
3650
+ */
3277
3651
  tronGetAddress: typeof tronGetAddress;
3278
3652
  tronSignMessage: typeof tronSignMessage;
3279
3653
  tronSignTransaction: typeof tronSignTransaction;
3654
+ /**
3655
+ * Conflux function
3656
+ */
3280
3657
  confluxGetAddress: typeof confluxGetAddress;
3281
3658
  confluxSignMessage: typeof confluxSignMessage;
3282
3659
  confluxSignMessageCIP23: typeof confluxSignMessageCIP23;
3283
3660
  confluxSignTransaction: typeof confluxSignTransaction;
3661
+ /**
3662
+ * Near function
3663
+ */
3284
3664
  nearGetAddress: typeof nearGetAddress;
3285
3665
  nearSignTransaction: typeof nearSignTransaction;
3666
+ /**
3667
+ * Aptos function
3668
+ */
3286
3669
  aptosGetAddress: typeof aptosGetAddress;
3287
3670
  aptosGetPublicKey: typeof aptosGetPublicKey;
3288
3671
  aptosSignMessage: typeof aptosSignMessage;
3289
3672
  aptosSignInMessage: typeof aptosSignInMessage;
3290
3673
  aptosSignTransaction: typeof aptosSignTransaction;
3674
+ /**
3675
+ * Algo function
3676
+ */
3291
3677
  algoGetAddress: typeof algoGetAddress;
3292
3678
  algoSignTransaction: typeof algoSignTransaction;
3679
+ /**
3680
+ * Cosmos function
3681
+ */
3293
3682
  cosmosGetAddress: typeof cosmosGetAddress;
3294
3683
  cosmosGetPublicKey: typeof cosmosGetPublicKey;
3295
3684
  cosmosSignTransaction: typeof cosmosSignTransaction;
3685
+ /**
3686
+ * XRP function
3687
+ */
3296
3688
  xrpGetAddress: typeof xrpGetAddress;
3297
3689
  xrpSignTransaction: typeof xrpSignTransaction;
3690
+ /**
3691
+ * SUI function
3692
+ */
3298
3693
  suiGetAddress: typeof suiGetAddress;
3299
3694
  suiGetPublicKey: typeof suiGetPublicKey;
3300
3695
  suiSignMessage: typeof suiSignMessage;
3301
3696
  suiSignTransaction: typeof suiSignTransaction;
3697
+ /**
3698
+ * Cardano function
3699
+ */
3302
3700
  cardanoGetAddress: typeof cardanoGetAddress;
3303
3701
  cardanoGetPublicKey: typeof cardanoGetPublicKey;
3304
3702
  cardanoSignTransaction: typeof cardanoSignTransaction;
3305
3703
  cardanoSignMessage: typeof cardanoSignMessage;
3704
+ /**
3705
+ * Filecoin function
3706
+ */
3306
3707
  filecoinGetAddress: typeof filecoinGetAddress;
3307
3708
  filecoinSignTransaction: typeof filecoinSignTransaction;
3709
+ /**
3710
+ * Polkadot function
3711
+ */
3308
3712
  polkadotGetAddress: typeof polkadotGetAddress;
3309
3713
  polkadotSignTransaction: typeof polkadotSignTransaction;
3714
+ /**
3715
+ * Kaspa function
3716
+ */
3310
3717
  kaspaGetAddress: typeof kaspaGetAddress;
3311
3718
  kaspaSignTransaction: typeof kaspaSignTransaction;
3719
+ /**
3720
+ * nexa function
3721
+ */
3312
3722
  nexaGetAddress: typeof nexaGetAddress;
3313
3723
  nexaSignTransaction: typeof nexaSignTransaction;
3724
+ /**
3725
+ * Nostr function
3726
+ */
3314
3727
  nostrGetPublicKey: typeof nostrGetPublicKey;
3315
3728
  nostrSignEvent: typeof nostrSignEvent;
3316
3729
  nostrEncryptMessage: typeof nostrEncryptMessage;
3317
3730
  nostrDecryptMessage: typeof nostrDecryptMessage;
3318
3731
  nostrSignSchnorr: typeof nostrSignSchnorr;
3732
+ /**
3733
+ * Lightning Network
3734
+ */
3319
3735
  lnurlAuth: typeof lnurlAuth;
3736
+ /**
3737
+ * Nervos Network
3738
+ */
3320
3739
  nervosGetAddress: typeof nervosGetAddress;
3321
3740
  nervosSignTransaction: typeof nervosSignTransaction;
3741
+ /**
3742
+ * Dnx Network
3743
+ */
3322
3744
  dnxGetAddress: typeof dnxGetAddress;
3323
3745
  dnxSignTransaction: typeof dnxSignTransaction;
3746
+ /**
3747
+ * TON Network
3748
+ */
3324
3749
  tonGetAddress: typeof tonGetAddress;
3325
3750
  tonSignMessage: typeof tonSignMessage;
3326
3751
  tonSignProof: typeof tonSignProof;
3327
3752
  tonSignData: typeof tonSignData;
3753
+ /**
3754
+ * SCDO Network
3755
+ */
3328
3756
  scdoGetAddress: typeof scdoGetAddress;
3329
3757
  scdoSignMessage: typeof scdoSignMessage;
3330
3758
  scdoSignTransaction: typeof scdoSignTransaction;
3759
+ /**
3760
+ * Alephium Network
3761
+ */
3331
3762
  alephiumGetAddress: typeof alephiumGetAddress;
3332
3763
  alephiumSignMessage: typeof alephiumSignMessage;
3333
3764
  alephiumSignTransaction: typeof alephiumSignTransaction;
3765
+ /**
3766
+ * Benfen Network
3767
+ */
3334
3768
  benfenGetAddress: typeof benfenGetAddress;
3335
3769
  benfenGetPublicKey: typeof benfenGetPublicKey;
3336
3770
  benfenSignTransaction: typeof benfenSignTransaction;
3337
3771
  benfenSignMessage: typeof benfenSignMessage;
3772
+ /**
3773
+ * Neo Network
3774
+ */
3338
3775
  neoGetAddress: typeof neoGetAddress;
3339
3776
  neoSignTransaction: typeof neoSignTransaction;
3340
3777
  };
@@ -3935,30 +4372,108 @@ declare enum LoggerNames {
3935
4372
  }
3936
4373
  declare const getLogger: (key: LoggerNames) => Log;
3937
4374
 
3938
- declare const httpRequest: (url: string, type: string) => any;
4375
+ type HttpRequestOptions = {
4376
+ /** Axios adapter-defined request timeout retained for existing opt-in callers. */
4377
+ timeoutMs?: number;
4378
+ /** Deadline for DNS, connection, TLS, redirects, and the first response-body progress. */
4379
+ connectTimeoutMs?: number;
4380
+ /** Maximum idle interval between response-body progress events. */
4381
+ readTimeoutMs?: number;
4382
+ /** Wall-clock deadline across all attempts and retry backoff. */
4383
+ overallTimeoutMs?: number;
4384
+ maxRetries?: number;
4385
+ retryDelayMs?: number;
4386
+ };
4387
+
4388
+ declare const httpRequest: (url: string, type: string, options?: HttpRequestOptions) => any;
3939
4389
  declare const getTimeStamp: () => number;
3940
4390
 
4391
+ /**
4392
+ * Validates version string
4393
+ * @param {string} version Version string
4394
+ * @returns {boolean} True if version string is valid, false if not
4395
+ */
3941
4396
  declare const isValidVersionString: (version: string) => boolean;
4397
+ /**
4398
+ * Validates a version array
4399
+ * @param {number[]} version Version array
4400
+ * @returns {boolean} True if version array is valid, false if not
4401
+ */
3942
4402
  declare const isValidVersionArray: (version: number[]) => boolean;
4403
+ /**
4404
+ * Fills the missing version numbers with zeros (ie: [1, 2] will become [1, 2, 0])
4405
+ * @param {number[]} version Version array
4406
+ * @returns {number[]} Version array with all positions filled
4407
+ */
3943
4408
  declare const normalizeVersionArray: (version: number[]) => number[];
4409
+ /**
4410
+ * Returns a valid version array from a version string
4411
+ * @param {string} version Version string
4412
+ * @returns {number[]} Version array
4413
+ */
3944
4414
  declare const versionSplit: (version: string) => number[];
4415
+ /**
4416
+ * Compares two versions and returns if the version is newer (1), older (-1) or equal (0).
4417
+ * @param {string | number[]} a Version to compare from
4418
+ * @param {string | number[]} b Version to compare with
4419
+ * @returns {number} Returns 1 if newer, -1 if older and 0 if equal
4420
+ */
3945
4421
  declare const versionCompare: (a: string | number[], b: string | number[]) => 0 | 1 | -1;
3946
4422
 
3947
- declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"DeviceStatus"> | TypedResponseMessage<"DeviceSession"> | TypedResponseMessage<"PassphraseState"> | TypedResponseMessage<"Address"> | TypedResponseMessage<"DeviceInfo"> | TypedResponseMessage<"DeviceFirmwareUpdateStatus"> | TypedResponseMessage<"Success"> | TypedResponseMessage<"AptosMessagePayload"> | TypedResponseMessage<"BinanceInputOutput"> | TypedResponseMessage<"BinanceCoin"> | TypedResponseMessage<"HDNodePathType"> | TypedResponseMessage<"HDNodeType"> | TypedResponseMessage<"MultisigRedeemScriptType"> | TypedResponseMessage<"TxRequestDetailsType"> | TypedResponseMessage<"TxRequestSerializedType"> | TypedResponseMessage<"TxInputType"> | TypedResponseMessage<"TxOutputBinType"> | TypedResponseMessage<"TxOutputType"> | TypedResponseMessage<"TxAckInputWrapper"> | TypedResponseMessage<"TxAckOutputWrapper"> | TypedResponseMessage<"PrevTx"> | TypedResponseMessage<"TxAckPrevInputWrapper"> | TypedResponseMessage<"PrevInput"> | TypedResponseMessage<"TxAckPrevOutputWrapper"> | TypedResponseMessage<"PrevOutput"> | TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | TypedResponseMessage<"BIP32Address"> | TypedResponseMessage<"CardanoNativeScript"> | TypedResponseMessage<"CardanoBlockchainPointerType"> | TypedResponseMessage<"CardanoAddressParametersType"> | TypedResponseMessage<"CardanoPoolMetadataType"> | TypedResponseMessage<"CardanoPoolParametersType"> | TypedResponseMessage<"CardanoDRep"> | TypedResponseMessage<"CardanoCVoteRegistrationDelegation"> | TypedResponseMessage<"CardanoCVoteRegistrationParametersType"> | TypedResponseMessage<"IdentityType"> | TypedResponseMessage<"Path"> | TypedResponseMessage<"DnxTxKey"> | TypedResponseMessage<"DnxComputedKeyImage"> | TypedResponseMessage<"EmmcFile"> | TypedResponseMessage<"EosTxHeader"> | TypedResponseMessage<"EosActionCommon"> | TypedResponseMessage<"EosActionTransfer"> | TypedResponseMessage<"EosActionDelegate"> | TypedResponseMessage<"EosActionUndelegate"> | TypedResponseMessage<"EosActionRefund"> | TypedResponseMessage<"EosActionBuyRam"> | TypedResponseMessage<"EosActionBuyRamBytes"> | TypedResponseMessage<"EosActionSellRam"> | TypedResponseMessage<"EosActionVoteProducer"> | TypedResponseMessage<"EosActionUpdateAuth"> | TypedResponseMessage<"EosActionDeleteAuth"> | TypedResponseMessage<"EosActionLinkAuth"> | TypedResponseMessage<"EosActionUnlinkAuth"> | TypedResponseMessage<"EosActionNewAccount"> | TypedResponseMessage<"EosActionUnknown"> | TypedResponseMessage<"EosPermissionLevel"> | TypedResponseMessage<"EosAuthorizationKey"> | TypedResponseMessage<"EosAuthorizationAccount"> | TypedResponseMessage<"EosAuthorizationWait"> | TypedResponseMessage<"EosAsset"> | TypedResponseMessage<"EosAuthorization"> | TypedResponseMessage<"EthereumStructMemberOneKey"> | TypedResponseMessage<"EthereumFieldTypeOneKey"> | TypedResponseMessage<"EthereumDefinitions"> | TypedResponseMessage<"EthereumStructMember"> | TypedResponseMessage<"EthereumFieldType"> | TypedResponseMessage<"EthereumAccessListOneKey"> | TypedResponseMessage<"EthereumAuthorizationOneKey"> | TypedResponseMessage<"EthereumAuthorizationSignature"> | TypedResponseMessage<"EthereumAccessList"> | TypedResponseMessage<"KaspaTxRequestSignature"> | TypedResponseMessage<"KaspaOutpoint"> | TypedResponseMessage<"FileInfo"> | TypedResponseMessage<"MoneroOutputEntry"> | TypedResponseMessage<"MoneroMultisigKLRki"> | TypedResponseMessage<"MoneroRctKeyPublic"> | TypedResponseMessage<"MoneroAccountPublicAddress"> | TypedResponseMessage<"MoneroTransactionData"> | TypedResponseMessage<"MoneroTransactionDestinationEntry"> | TypedResponseMessage<"MoneroTransactionRsigData"> | TypedResponseMessage<"MoneroTransactionSourceEntry"> | TypedResponseMessage<"MoneroRingCtSig"> | TypedResponseMessage<"MoneroSubAddressIndicesList"> | TypedResponseMessage<"MoneroTransferDetails"> | TypedResponseMessage<"MoneroExportedKeyImage"> | TypedResponseMessage<"NEMTransactionCommon"> | TypedResponseMessage<"NEMTransfer"> | TypedResponseMessage<"NEMProvisionNamespace"> | TypedResponseMessage<"NEMMosaicCreation"> | TypedResponseMessage<"NEMMosaicSupplyChange"> | TypedResponseMessage<"NEMAggregateModification"> | TypedResponseMessage<"NEMImportanceTransfer"> | TypedResponseMessage<"NEMMosaic"> | TypedResponseMessage<"NEMMosaicDefinition"> | TypedResponseMessage<"NEMCosignatoryModification"> | TypedResponseMessage<"RipplePayment"> | TypedResponseMessage<"SolanaTxATADetails"> | TypedResponseMessage<"SolanaTxExtraInfo"> | TypedResponseMessage<"StellarAsset"> | TypedResponseMessage<"TezosRevealOp"> | TypedResponseMessage<"TezosTransactionOp"> | TypedResponseMessage<"TezosOriginationOp"> | TypedResponseMessage<"TezosDelegationOp"> | TypedResponseMessage<"TezosProposalOp"> | TypedResponseMessage<"TezosBallotOp"> | TypedResponseMessage<"TezosContractID"> | TypedResponseMessage<"TezosParametersManager"> | TypedResponseMessage<"TezosManagerTransfer"> | TypedResponseMessage<"TronContract"> | TypedResponseMessage<"TronTransferContract"> | TypedResponseMessage<"TronVoteWitnessContract"> | TypedResponseMessage<"TronFreezeBalanceContract"> | TypedResponseMessage<"TronUnfreezeBalanceContract"> | TypedResponseMessage<"TronWithdrawBalanceContract"> | TypedResponseMessage<"TronTriggerSmartContract"> | TypedResponseMessage<"TronFreezeBalanceV2Contract"> | TypedResponseMessage<"TronUnfreezeBalanceV2Contract"> | TypedResponseMessage<"TronWithdrawExpireUnfreezeContract"> | TypedResponseMessage<"TronDelegateResourceContract"> | TypedResponseMessage<"TronUnDelegateResourceContract"> | TypedResponseMessage<"TronCancelAllUnfreezeV2Contract"> | TypedResponseMessage<"Vote"> | TypedResponseMessage<"CoinJoinRequest"> | TypedResponseMessage<"PaymentRequestMemo"> | TypedResponseMessage<"TextMemo"> | TypedResponseMessage<"RefundMemo"> | TypedResponseMessage<"CoinPurchaseMemo"> | TypedResponseMessage<"ViewAmount"> | TypedResponseMessage<"ViewDetail"> | TypedResponseMessage<"ViewTip"> | TypedResponseMessage<"ViewRawData"> | TypedResponseMessage<"DeviceSettings"> | TypedResponseMessage<"DeviceCertificate"> | TypedResponseMessage<"DeviceFirmwareTarget"> | TypedResponseMessage<"DeviceFirmwareUpdateRecordFields"> | TypedResponseMessage<"DeviceFirmwareUpdateRecord"> | TypedResponseMessage<"DeviceFactoryInfoManufactureTime"> | TypedResponseMessage<"DeviceFactoryInfo"> | TypedResponseMessage<"DeviceFirmwareImageInfo"> | TypedResponseMessage<"DeviceInfoTargets"> | TypedResponseMessage<"DeviceInfoTypes"> | TypedResponseMessage<"DeviceHardwareInfo"> | TypedResponseMessage<"DeviceMainMcuInfo"> | TypedResponseMessage<"DeviceCoprocessorInfo"> | TypedResponseMessage<"DeviceSEInfo"> | TypedResponseMessage<"DeviceHostPassphrase"> | TypedResponseMessage<"DevicePassphraseOnDevice"> | TypedResponseMessage<"DeviceAttachPinOnDevice"> | TypedResponseMessage<"DeviceSessionResume"> | TypedResponseMessage<"DeviceWalletSelect"> | TypedResponseMessage<"DevOnboardingSetupStatus"> | TypedResponseMessage<"FilesystemFile"> | TypedResponseMessage<"AlephiumGetAddress"> | TypedResponseMessage<"AlephiumAddress"> | TypedResponseMessage<"AlephiumSignTx"> | TypedResponseMessage<"AlephiumSignedTx"> | TypedResponseMessage<"AlephiumTxRequest"> | TypedResponseMessage<"AlephiumTxAck"> | TypedResponseMessage<"AlephiumBytecodeRequest"> | TypedResponseMessage<"AlephiumBytecodeAck"> | TypedResponseMessage<"AlephiumSignMessage"> | TypedResponseMessage<"AlephiumMessageSignature"> | TypedResponseMessage<"AlgorandGetAddress"> | TypedResponseMessage<"AlgorandAddress"> | TypedResponseMessage<"AlgorandSignTx"> | TypedResponseMessage<"AlgorandSignedTx"> | TypedResponseMessage<"AptosGetAddress"> | TypedResponseMessage<"AptosAddress"> | TypedResponseMessage<"AptosSignTx"> | TypedResponseMessage<"AptosSignedTx"> | TypedResponseMessage<"AptosSignMessage"> | TypedResponseMessage<"AptosMessageSignature"> | TypedResponseMessage<"AptosSignSIWAMessage"> | TypedResponseMessage<"BenfenGetAddress"> | TypedResponseMessage<"BenfenAddress"> | TypedResponseMessage<"BenfenSignTx"> | TypedResponseMessage<"BenfenSignedTx"> | TypedResponseMessage<"BenfenTxRequest"> | TypedResponseMessage<"BenfenTxAck"> | TypedResponseMessage<"BenfenSignMessage"> | TypedResponseMessage<"BenfenMessageSignature"> | TypedResponseMessage<"BinanceGetAddress"> | TypedResponseMessage<"BinanceAddress"> | TypedResponseMessage<"BinanceGetPublicKey"> | TypedResponseMessage<"BinancePublicKey"> | TypedResponseMessage<"BinanceSignTx"> | TypedResponseMessage<"BinanceTxRequest"> | TypedResponseMessage<"BinanceTransferMsg"> | TypedResponseMessage<"BinanceOrderMsg"> | TypedResponseMessage<"BinanceCancelMsg"> | TypedResponseMessage<"BinanceSignedTx"> | TypedResponseMessage<"GetPublicKey"> | TypedResponseMessage<"PublicKey"> | TypedResponseMessage<"GetAddress"> | TypedResponseMessage<"GetOwnershipId"> | TypedResponseMessage<"OwnershipId"> | TypedResponseMessage<"SignMessage"> | TypedResponseMessage<"MessageSignature"> | TypedResponseMessage<"VerifyMessage"> | TypedResponseMessage<"SignTx"> | TypedResponseMessage<"TxRequest"> | TypedResponseMessage<"TxAck"> | TypedResponseMessage<"TxAckInput"> | TypedResponseMessage<"TxAckOutput"> | TypedResponseMessage<"TxAckPrevMeta"> | TypedResponseMessage<"TxAckPrevInput"> | TypedResponseMessage<"TxAckPrevOutput"> | TypedResponseMessage<"TxAckPrevExtraData"> | TypedResponseMessage<"GetOwnershipProof"> | TypedResponseMessage<"OwnershipProof"> | TypedResponseMessage<"AuthorizeCoinJoin"> | TypedResponseMessage<"GetPublicKeyMultiple"> | TypedResponseMessage<"PublicKeyMultiple"> | TypedResponseMessage<"SignPsbt"> | TypedResponseMessage<"SignedPsbt"> | TypedResponseMessage<"FirmwareErase"> | TypedResponseMessage<"FirmwareRequest"> | TypedResponseMessage<"FirmwareUpload"> | TypedResponseMessage<"SelfTest"> | TypedResponseMessage<"FirmwareErase_ex"> | TypedResponseMessage<"Reboot"> | TypedResponseMessage<"FirmwareUpdateEmmc"> | TypedResponseMessage<"UpgradeFileHeader"> | TypedResponseMessage<"CardanoGetNativeScriptHash"> | TypedResponseMessage<"CardanoNativeScriptHash"> | TypedResponseMessage<"CardanoGetAddress"> | TypedResponseMessage<"CardanoAddress"> | TypedResponseMessage<"CardanoGetPublicKey"> | TypedResponseMessage<"CardanoPublicKey"> | TypedResponseMessage<"CardanoSignTxInit"> | TypedResponseMessage<"CardanoTxInput"> | TypedResponseMessage<"CardanoTxOutput"> | TypedResponseMessage<"CardanoAssetGroup"> | TypedResponseMessage<"CardanoToken"> | TypedResponseMessage<"CardanoTxInlineDatumChunk"> | TypedResponseMessage<"CardanoTxReferenceScriptChunk"> | TypedResponseMessage<"CardanoPoolOwner"> | TypedResponseMessage<"CardanoPoolRelayParameters"> | TypedResponseMessage<"CardanoTxCertificate"> | TypedResponseMessage<"CardanoTxWithdrawal"> | TypedResponseMessage<"CardanoTxAuxiliaryData"> | TypedResponseMessage<"CardanoTxMint"> | TypedResponseMessage<"CardanoTxCollateralInput"> | TypedResponseMessage<"CardanoTxRequiredSigner"> | TypedResponseMessage<"CardanoTxReferenceInput"> | TypedResponseMessage<"CardanoTxItemAck"> | TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | TypedResponseMessage<"CardanoTxWitnessRequest"> | TypedResponseMessage<"CardanoTxWitnessResponse"> | TypedResponseMessage<"CardanoTxHostAck"> | TypedResponseMessage<"CardanoTxBodyHash"> | TypedResponseMessage<"CardanoSignTxFinished"> | TypedResponseMessage<"CardanoSignMessage"> | TypedResponseMessage<"CardanoMessageSignature"> | TypedResponseMessage<"Failure"> | TypedResponseMessage<"ButtonRequest"> | TypedResponseMessage<"ButtonAck"> | TypedResponseMessage<"PinMatrixRequest"> | TypedResponseMessage<"PinMatrixAck"> | TypedResponseMessage<"PassphraseRequest"> | TypedResponseMessage<"PassphraseAck"> | TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | TypedResponseMessage<"Deprecated_PassphraseStateAck"> | TypedResponseMessage<"BixinPinInputOnDevice"> | TypedResponseMessage<"ConfluxGetAddress"> | TypedResponseMessage<"ConfluxAddress"> | TypedResponseMessage<"ConfluxSignTx"> | TypedResponseMessage<"ConfluxTxRequest"> | TypedResponseMessage<"ConfluxTxAck"> | TypedResponseMessage<"ConfluxSignMessage"> | TypedResponseMessage<"ConfluxMessageSignature"> | TypedResponseMessage<"ConfluxSignMessageCIP23"> | TypedResponseMessage<"CosmosGetAddress"> | TypedResponseMessage<"CosmosAddress"> | TypedResponseMessage<"CosmosSignTx"> | TypedResponseMessage<"CosmosSignedTx"> | TypedResponseMessage<"CipherKeyValue"> | TypedResponseMessage<"CipheredKeyValue"> | TypedResponseMessage<"SignIdentity"> | TypedResponseMessage<"SignedIdentity"> | TypedResponseMessage<"GetECDHSessionKey"> | TypedResponseMessage<"ECDHSessionKey"> | TypedResponseMessage<"BatchGetPublickeys"> | TypedResponseMessage<"EcdsaPublicKeys"> | TypedResponseMessage<"DnxGetAddress"> | TypedResponseMessage<"DnxAddress"> | TypedResponseMessage<"DnxSignTx"> | TypedResponseMessage<"DnxInputRequest"> | TypedResponseMessage<"DnxInputAck"> | TypedResponseMessage<"DnxRTSigsRequest"> | TypedResponseMessage<"DnxSignedTx"> | TypedResponseMessage<"EmmcFixPermission"> | TypedResponseMessage<"EmmcPath"> | TypedResponseMessage<"EmmcPathInfo"> | TypedResponseMessage<"EmmcFileRead"> | TypedResponseMessage<"EmmcFileWrite"> | TypedResponseMessage<"EmmcFileDelete"> | TypedResponseMessage<"EmmcDir"> | TypedResponseMessage<"EmmcDirList"> | TypedResponseMessage<"EmmcDirMake"> | TypedResponseMessage<"EmmcDirRemove"> | TypedResponseMessage<"EosGetPublicKey"> | TypedResponseMessage<"EosPublicKey"> | TypedResponseMessage<"EosSignTx"> | TypedResponseMessage<"EosTxActionRequest"> | TypedResponseMessage<"EosTxActionAck"> | TypedResponseMessage<"EosSignedTx"> | TypedResponseMessage<"EthereumNetworkInfo"> | TypedResponseMessage<"EthereumTokenInfo"> | TypedResponseMessage<"EthereumSignTypedDataOneKey"> | TypedResponseMessage<"EthereumGnosisSafeTxRequest"> | TypedResponseMessage<"EthereumGnosisSafeTxAck"> | TypedResponseMessage<"EthereumTypedDataStructRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataStructAckOneKey"> | TypedResponseMessage<"EthereumTypedDataValueRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataValueAckOneKey"> | TypedResponseMessage<"EthereumSignTypedData"> | TypedResponseMessage<"EthereumTypedDataStructRequest"> | TypedResponseMessage<"EthereumTypedDataStructAck"> | TypedResponseMessage<"EthereumTypedDataValueRequest"> | TypedResponseMessage<"EthereumTypedDataValueAck"> | TypedResponseMessage<"EthereumGetPublicKeyOneKey"> | TypedResponseMessage<"EthereumPublicKeyOneKey"> | TypedResponseMessage<"EthereumGetAddressOneKey"> | TypedResponseMessage<"EthereumAddressOneKey"> | TypedResponseMessage<"EthereumSignTxOneKey"> | TypedResponseMessage<"EthereumSignTxEIP1559OneKey"> | TypedResponseMessage<"EthereumSignTxEIP7702OneKey"> | TypedResponseMessage<"EthereumTxRequestOneKey"> | TypedResponseMessage<"EthereumTxAckOneKey"> | TypedResponseMessage<"EthereumSignMessageOneKey"> | TypedResponseMessage<"EthereumMessageSignatureOneKey"> | TypedResponseMessage<"EthereumVerifyMessageOneKey"> | TypedResponseMessage<"EthereumSignTypedHashOneKey"> | TypedResponseMessage<"EthereumTypedDataSignatureOneKey"> | TypedResponseMessage<"EthereumSignMessageEIP712"> | TypedResponseMessage<"EthereumGetPublicKey"> | TypedResponseMessage<"EthereumPublicKey"> | TypedResponseMessage<"EthereumGetAddress"> | TypedResponseMessage<"EthereumAddress"> | TypedResponseMessage<"EthereumSignTx"> | TypedResponseMessage<"EthereumSignTxEIP1559"> | TypedResponseMessage<"EthereumTxRequest"> | TypedResponseMessage<"EthereumTxAck"> | TypedResponseMessage<"EthereumSignMessage"> | TypedResponseMessage<"EthereumMessageSignature"> | TypedResponseMessage<"EthereumVerifyMessage"> | TypedResponseMessage<"EthereumSignTypedHash"> | TypedResponseMessage<"EthereumTypedDataSignature"> | TypedResponseMessage<"FilecoinGetAddress"> | TypedResponseMessage<"FilecoinAddress"> | TypedResponseMessage<"FilecoinSignTx"> | TypedResponseMessage<"FilecoinSignedTx"> | TypedResponseMessage<"KaspaGetAddress"> | TypedResponseMessage<"KaspaAddress"> | TypedResponseMessage<"KaspaSignTx"> | TypedResponseMessage<"KaspaTxInputRequest"> | TypedResponseMessage<"KaspaTxInputAck"> | TypedResponseMessage<"KaspaTxRequest"> | TypedResponseMessage<"KaspaTxAckInput"> | TypedResponseMessage<"KaspaTxAckOutput"> | TypedResponseMessage<"KaspaTxAckPayloadChunk"> | TypedResponseMessage<"KaspaTxAckPrevMeta"> | TypedResponseMessage<"KaspaTxAckPrevInput"> | TypedResponseMessage<"KaspaTxAckPrevOutput"> | TypedResponseMessage<"KaspaSignedTx"> | TypedResponseMessage<"LnurlAuth"> | TypedResponseMessage<"LnurlAuthResp"> | TypedResponseMessage<"Initialize"> | TypedResponseMessage<"GetFeatures"> | TypedResponseMessage<"OnekeyGetFeatures"> | TypedResponseMessage<"Features"> | TypedResponseMessage<"OnekeyFeatures"> | TypedResponseMessage<"LockDevice"> | TypedResponseMessage<"EndSession"> | TypedResponseMessage<"ApplySettings"> | TypedResponseMessage<"ApplyFlags"> | TypedResponseMessage<"ChangePin"> | TypedResponseMessage<"ChangeWipeCode"> | TypedResponseMessage<"SdProtect"> | TypedResponseMessage<"Ping"> | TypedResponseMessage<"Cancel"> | TypedResponseMessage<"GetEntropy"> | TypedResponseMessage<"Entropy"> | TypedResponseMessage<"WipeDevice"> | TypedResponseMessage<"ResetDevice"> | TypedResponseMessage<"BackupDevice"> | TypedResponseMessage<"EntropyRequest"> | TypedResponseMessage<"EntropyAck"> | TypedResponseMessage<"RecoveryDevice"> | TypedResponseMessage<"WordRequest"> | TypedResponseMessage<"WordAck"> | TypedResponseMessage<"SetU2FCounter"> | TypedResponseMessage<"GetNextU2FCounter"> | TypedResponseMessage<"NextU2FCounter"> | TypedResponseMessage<"DoPreauthorized"> | TypedResponseMessage<"PreauthorizedRequest"> | TypedResponseMessage<"CancelAuthorization"> | TypedResponseMessage<"BixinSeedOperate"> | TypedResponseMessage<"BixinMessageSE"> | TypedResponseMessage<"BixinOutMessageSE"> | TypedResponseMessage<"DeviceBackToBoot"> | TypedResponseMessage<"BixinBackupRequest"> | TypedResponseMessage<"BixinBackupAck"> | TypedResponseMessage<"BixinRestoreRequest"> | TypedResponseMessage<"BixinRestoreAck"> | TypedResponseMessage<"BixinVerifyDeviceRequest"> | TypedResponseMessage<"BixinVerifyDeviceAck"> | TypedResponseMessage<"BixinWhiteListRequest"> | TypedResponseMessage<"BixinWhiteListAck"> | TypedResponseMessage<"BixinLoadDevice"> | TypedResponseMessage<"BixinBackupDevice"> | TypedResponseMessage<"BixinBackupDeviceAck"> | TypedResponseMessage<"DeviceInfoSettings"> | TypedResponseMessage<"GetDeviceInfo"> | TypedResponseMessage<"ReadSEPublicKey"> | TypedResponseMessage<"SEPublicKey"> | TypedResponseMessage<"WriteSEPublicCert"> | TypedResponseMessage<"ReadSEPublicCert"> | TypedResponseMessage<"SEPublicCert"> | TypedResponseMessage<"SpiFlashWrite"> | TypedResponseMessage<"SpiFlashRead"> | TypedResponseMessage<"SpiFlashData"> | TypedResponseMessage<"SESignMessage"> | TypedResponseMessage<"SEMessageSignature"> | TypedResponseMessage<"ResourceUpload"> | TypedResponseMessage<"ZoomRequest"> | TypedResponseMessage<"BlurRequest"> | TypedResponseMessage<"ResourceRequest"> | TypedResponseMessage<"ResourceAck"> | TypedResponseMessage<"ResourceUpdate"> | TypedResponseMessage<"NFTWriteInfo"> | TypedResponseMessage<"NFTWriteData"> | TypedResponseMessage<"RebootToBootloader"> | TypedResponseMessage<"RebootToBoardloader"> | TypedResponseMessage<"ListResDir"> | TypedResponseMessage<"FileInfoList"> | TypedResponseMessage<"DeviceEraseSector"> | TypedResponseMessage<"UnLockDevice"> | TypedResponseMessage<"UnLockDeviceResponse"> | TypedResponseMessage<"GetPassphraseState"> | TypedResponseMessage<"MoneroGetAddress"> | TypedResponseMessage<"MoneroAddress"> | TypedResponseMessage<"MoneroGetWatchKey"> | TypedResponseMessage<"MoneroWatchKey"> | TypedResponseMessage<"MoneroTransactionInitRequest"> | TypedResponseMessage<"MoneroTransactionInitAck"> | TypedResponseMessage<"MoneroTransactionSetInputRequest"> | TypedResponseMessage<"MoneroTransactionSetInputAck"> | TypedResponseMessage<"MoneroTransactionInputsPermutationRequest"> | TypedResponseMessage<"MoneroTransactionInputsPermutationAck"> | TypedResponseMessage<"MoneroTransactionInputViniRequest"> | TypedResponseMessage<"MoneroTransactionInputViniAck"> | TypedResponseMessage<"MoneroTransactionAllInputsSetRequest"> | TypedResponseMessage<"MoneroTransactionAllInputsSetAck"> | TypedResponseMessage<"MoneroTransactionSetOutputRequest"> | TypedResponseMessage<"MoneroTransactionSetOutputAck"> | TypedResponseMessage<"MoneroTransactionAllOutSetRequest"> | TypedResponseMessage<"MoneroTransactionAllOutSetAck"> | TypedResponseMessage<"MoneroTransactionSignInputRequest"> | TypedResponseMessage<"MoneroTransactionSignInputAck"> | TypedResponseMessage<"MoneroTransactionFinalRequest"> | TypedResponseMessage<"MoneroTransactionFinalAck"> | TypedResponseMessage<"MoneroKeyImageExportInitRequest"> | TypedResponseMessage<"MoneroKeyImageExportInitAck"> | TypedResponseMessage<"MoneroKeyImageSyncStepRequest"> | TypedResponseMessage<"MoneroKeyImageSyncStepAck"> | TypedResponseMessage<"MoneroKeyImageSyncFinalRequest"> | TypedResponseMessage<"MoneroKeyImageSyncFinalAck"> | TypedResponseMessage<"MoneroGetTxKeyRequest"> | TypedResponseMessage<"MoneroGetTxKeyAck"> | TypedResponseMessage<"MoneroLiveRefreshStartRequest"> | TypedResponseMessage<"MoneroLiveRefreshStartAck"> | TypedResponseMessage<"MoneroLiveRefreshStepRequest"> | TypedResponseMessage<"MoneroLiveRefreshStepAck"> | TypedResponseMessage<"MoneroLiveRefreshFinalRequest"> | TypedResponseMessage<"MoneroLiveRefreshFinalAck"> | TypedResponseMessage<"NearGetAddress"> | TypedResponseMessage<"NearAddress"> | TypedResponseMessage<"NearSignTx"> | TypedResponseMessage<"NearSignedTx"> | TypedResponseMessage<"NEMGetAddress"> | TypedResponseMessage<"NEMAddress"> | TypedResponseMessage<"NEMSignTx"> | TypedResponseMessage<"NEMSignedTx"> | TypedResponseMessage<"NEMDecryptMessage"> | TypedResponseMessage<"NEMDecryptedMessage"> | TypedResponseMessage<"NeoGetAddress"> | TypedResponseMessage<"NeoAddress"> | TypedResponseMessage<"NeoSignTx"> | TypedResponseMessage<"NeoSignedTx"> | TypedResponseMessage<"NervosGetAddress"> | TypedResponseMessage<"NervosAddress"> | TypedResponseMessage<"NervosSignTx"> | TypedResponseMessage<"NervosSignedTx"> | TypedResponseMessage<"NervosTxRequest"> | TypedResponseMessage<"NervosTxAck"> | TypedResponseMessage<"NexaGetAddress"> | TypedResponseMessage<"NexaAddress"> | TypedResponseMessage<"NexaSignTx"> | TypedResponseMessage<"NexaTxInputRequest"> | TypedResponseMessage<"NexaTxInputAck"> | TypedResponseMessage<"NexaSignedTx"> | TypedResponseMessage<"NostrGetPublicKey"> | TypedResponseMessage<"NostrPublicKey"> | TypedResponseMessage<"NostrSignEvent"> | TypedResponseMessage<"NostrSignedEvent"> | TypedResponseMessage<"NostrSignSchnorr"> | TypedResponseMessage<"NostrSignedSchnorr"> | TypedResponseMessage<"NostrEncryptMessage"> | TypedResponseMessage<"NostrEncryptedMessage"> | TypedResponseMessage<"NostrDecryptMessage"> | TypedResponseMessage<"NostrDecryptedMessage"> | TypedResponseMessage<"PolkadotGetAddress"> | TypedResponseMessage<"PolkadotAddress"> | TypedResponseMessage<"PolkadotSignTx"> | TypedResponseMessage<"PolkadotSignedTx"> | TypedResponseMessage<"RippleGetAddress"> | TypedResponseMessage<"RippleAddress"> | TypedResponseMessage<"RippleSignTx"> | TypedResponseMessage<"RippleSignedTx"> | TypedResponseMessage<"ScdoGetAddress"> | TypedResponseMessage<"ScdoAddress"> | TypedResponseMessage<"ScdoSignTx"> | TypedResponseMessage<"ScdoSignedTx"> | TypedResponseMessage<"ScdoTxAck"> | TypedResponseMessage<"ScdoSignMessage"> | TypedResponseMessage<"ScdoSignedMessage"> | TypedResponseMessage<"SolanaGetAddress"> | TypedResponseMessage<"SolanaAddress"> | TypedResponseMessage<"SolanaSignTx"> | TypedResponseMessage<"SolanaSignedTx"> | TypedResponseMessage<"SolanaSignOffChainMessage"> | TypedResponseMessage<"SolanaSignUnsafeMessage"> | TypedResponseMessage<"SolanaMessageSignature"> | TypedResponseMessage<"StarcoinGetAddress"> | TypedResponseMessage<"StarcoinAddress"> | TypedResponseMessage<"StarcoinGetPublicKey"> | TypedResponseMessage<"StarcoinPublicKey"> | TypedResponseMessage<"StarcoinSignTx"> | TypedResponseMessage<"StarcoinSignedTx"> | TypedResponseMessage<"StarcoinSignMessage"> | TypedResponseMessage<"StarcoinMessageSignature"> | TypedResponseMessage<"StarcoinVerifyMessage"> | TypedResponseMessage<"StellarGetAddress"> | TypedResponseMessage<"StellarAddress"> | TypedResponseMessage<"StellarSignTx"> | TypedResponseMessage<"StellarTxOpRequest"> | TypedResponseMessage<"StellarPaymentOp"> | TypedResponseMessage<"StellarCreateAccountOp"> | TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | TypedResponseMessage<"StellarManageSellOfferOp"> | TypedResponseMessage<"StellarManageBuyOfferOp"> | TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | TypedResponseMessage<"StellarSetOptionsOp"> | TypedResponseMessage<"StellarChangeTrustOp"> | TypedResponseMessage<"StellarAllowTrustOp"> | TypedResponseMessage<"StellarAccountMergeOp"> | TypedResponseMessage<"StellarManageDataOp"> | TypedResponseMessage<"StellarBumpSequenceOp"> | TypedResponseMessage<"StellarInvokeHostFunctionOp"> | TypedResponseMessage<"StellarSorobanDataRequest"> | TypedResponseMessage<"StellarSorobanDataAck"> | TypedResponseMessage<"StellarSignedTx"> | TypedResponseMessage<"SuiGetAddress"> | TypedResponseMessage<"SuiAddress"> | TypedResponseMessage<"SuiSignTx"> | TypedResponseMessage<"SuiSignedTx"> | TypedResponseMessage<"SuiTxRequest"> | TypedResponseMessage<"SuiTxAck"> | TypedResponseMessage<"SuiSignMessage"> | TypedResponseMessage<"SuiMessageSignature"> | TypedResponseMessage<"TezosGetAddress"> | TypedResponseMessage<"TezosAddress"> | TypedResponseMessage<"TezosGetPublicKey"> | TypedResponseMessage<"TezosPublicKey"> | TypedResponseMessage<"TezosSignTx"> | TypedResponseMessage<"TezosSignedTx"> | TypedResponseMessage<"TonGetAddress"> | TypedResponseMessage<"TonAddress"> | TypedResponseMessage<"TonSignMessage"> | TypedResponseMessage<"TonTxAck"> | TypedResponseMessage<"TonSignedMessage"> | TypedResponseMessage<"TonSignProof"> | TypedResponseMessage<"TonSignedProof"> | TypedResponseMessage<"TonSignData"> | TypedResponseMessage<"TonSignedData"> | TypedResponseMessage<"TronGetAddress"> | TypedResponseMessage<"TronAddress"> | TypedResponseMessage<"TronSignTx"> | TypedResponseMessage<"TronSignedTx"> | TypedResponseMessage<"TronSignMessage"> | TypedResponseMessage<"TronMessageSignature"> | TypedResponseMessage<"facotry"> | TypedResponseMessage<"experimental_message"> | TypedResponseMessage<"experimental_field"> | TypedResponseMessage<"TxAckPaymentRequest"> | TypedResponseMessage<"EthereumSignTypedDataQR"> | TypedResponseMessage<"InternalMyAddressRequest"> | TypedResponseMessage<"StartSession"> | TypedResponseMessage<"SetBusy"> | TypedResponseMessage<"GetFirmwareHash"> | TypedResponseMessage<"FirmwareHash"> | TypedResponseMessage<"GetNonce"> | TypedResponseMessage<"Nonce"> | TypedResponseMessage<"WriteSEPrivateKey"> | TypedResponseMessage<"SetWallpaper"> | TypedResponseMessage<"GetWallpaper"> | TypedResponseMessage<"Wallpaper"> | TypedResponseMessage<"UnlockPath"> | TypedResponseMessage<"UnlockedPathRequest"> | TypedResponseMessage<"ViewSignPage"> | TypedResponseMessage<"ViewVerifyPage"> | TypedResponseMessage<"ProtocolInfoRequest"> | TypedResponseMessage<"ProtocolInfo"> | TypedResponseMessage<"DeviceReboot"> | TypedResponseMessage<"DeviceSettingsGet"> | TypedResponseMessage<"DeviceSettingsSet"> | TypedResponseMessage<"DeviceSettingsPageShow"> | TypedResponseMessage<"DeviceCertificateWrite"> | TypedResponseMessage<"DeviceCertificateRead"> | TypedResponseMessage<"DeviceCertificateSignature"> | TypedResponseMessage<"DeviceCertificateSign"> | TypedResponseMessage<"DeviceFirmwareUpdateRequest"> | TypedResponseMessage<"DeviceFirmwareUpdateStatusGet"> | TypedResponseMessage<"DeviceFactoryInfoSet"> | TypedResponseMessage<"DeviceFactoryInfoGet"> | TypedResponseMessage<"DeviceFactoryPermanentLock"> | TypedResponseMessage<"DeviceFactoryTest"> | TypedResponseMessage<"DeviceInfoGet"> | TypedResponseMessage<"DeviceSessionOpen"> | TypedResponseMessage<"DeviceSessionAskPin"> | TypedResponseMessage<"DeviceStatusGet"> | TypedResponseMessage<"DevGetOnboardingStatus"> | TypedResponseMessage<"DevOnboardingStatus"> | TypedResponseMessage<"FilesystemPermissionFix"> | TypedResponseMessage<"FilesystemPathInfo"> | TypedResponseMessage<"FilesystemPathInfoQuery"> | TypedResponseMessage<"FilesystemFileRead"> | TypedResponseMessage<"FilesystemFileWrite"> | TypedResponseMessage<"FilesystemFileDelete"> | TypedResponseMessage<"FilesystemDir"> | TypedResponseMessage<"FilesystemDirList"> | TypedResponseMessage<"FilesystemDirMake"> | TypedResponseMessage<"FilesystemDirRemove"> | TypedResponseMessage<"FilesystemFormat"> | TypedResponseMessage<"PortfolioUpdate">;
4423
+ declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"DeviceStatus"> | TypedResponseMessage<"DeviceSession"> | TypedResponseMessage<"PassphraseState"> | TypedResponseMessage<"Address"> | TypedResponseMessage<"DeviceFirmwareUpdateStatus"> | TypedResponseMessage<"Success"> | TypedResponseMessage<"AptosMessagePayload"> | TypedResponseMessage<"BinanceInputOutput"> | TypedResponseMessage<"BinanceCoin"> | TypedResponseMessage<"HDNodePathType"> | TypedResponseMessage<"HDNodeType"> | TypedResponseMessage<"MultisigRedeemScriptType"> | TypedResponseMessage<"TxRequestDetailsType"> | TypedResponseMessage<"TxRequestSerializedType"> | TypedResponseMessage<"TxInputType"> | TypedResponseMessage<"TxOutputBinType"> | TypedResponseMessage<"TxOutputType"> | TypedResponseMessage<"TxAckInputWrapper"> | TypedResponseMessage<"TxAckOutputWrapper"> | TypedResponseMessage<"PrevTx"> | TypedResponseMessage<"TxAckPrevInputWrapper"> | TypedResponseMessage<"PrevInput"> | TypedResponseMessage<"TxAckPrevOutputWrapper"> | TypedResponseMessage<"PrevOutput"> | TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | TypedResponseMessage<"BIP32Address"> | TypedResponseMessage<"CardanoNativeScript"> | TypedResponseMessage<"CardanoBlockchainPointerType"> | TypedResponseMessage<"CardanoAddressParametersType"> | TypedResponseMessage<"CardanoPoolMetadataType"> | TypedResponseMessage<"CardanoPoolParametersType"> | TypedResponseMessage<"CardanoDRep"> | TypedResponseMessage<"CardanoCVoteRegistrationDelegation"> | TypedResponseMessage<"CardanoCVoteRegistrationParametersType"> | TypedResponseMessage<"IdentityType"> | TypedResponseMessage<"Path"> | TypedResponseMessage<"DnxTxKey"> | TypedResponseMessage<"DnxComputedKeyImage"> | TypedResponseMessage<"EmmcFile"> | TypedResponseMessage<"EosTxHeader"> | TypedResponseMessage<"EosActionCommon"> | TypedResponseMessage<"EosActionTransfer"> | TypedResponseMessage<"EosActionDelegate"> | TypedResponseMessage<"EosActionUndelegate"> | TypedResponseMessage<"EosActionRefund"> | TypedResponseMessage<"EosActionBuyRam"> | TypedResponseMessage<"EosActionBuyRamBytes"> | TypedResponseMessage<"EosActionSellRam"> | TypedResponseMessage<"EosActionVoteProducer"> | TypedResponseMessage<"EosActionUpdateAuth"> | TypedResponseMessage<"EosActionDeleteAuth"> | TypedResponseMessage<"EosActionLinkAuth"> | TypedResponseMessage<"EosActionUnlinkAuth"> | TypedResponseMessage<"EosActionNewAccount"> | TypedResponseMessage<"EosActionUnknown"> | TypedResponseMessage<"EosPermissionLevel"> | TypedResponseMessage<"EosAuthorizationKey"> | TypedResponseMessage<"EosAuthorizationAccount"> | TypedResponseMessage<"EosAuthorizationWait"> | TypedResponseMessage<"EosAsset"> | TypedResponseMessage<"EosAuthorization"> | TypedResponseMessage<"EthereumStructMemberOneKey"> | TypedResponseMessage<"EthereumFieldTypeOneKey"> | TypedResponseMessage<"EthereumDefinitions"> | TypedResponseMessage<"EthereumStructMember"> | TypedResponseMessage<"EthereumFieldType"> | TypedResponseMessage<"EthereumAccessListOneKey"> | TypedResponseMessage<"EthereumAuthorizationOneKey"> | TypedResponseMessage<"EthereumAuthorizationSignature"> | TypedResponseMessage<"EthereumAccessList"> | TypedResponseMessage<"KaspaTxRequestSignature"> | TypedResponseMessage<"KaspaOutpoint"> | TypedResponseMessage<"FileInfo"> | TypedResponseMessage<"MoneroOutputEntry"> | TypedResponseMessage<"MoneroMultisigKLRki"> | TypedResponseMessage<"MoneroRctKeyPublic"> | TypedResponseMessage<"MoneroAccountPublicAddress"> | TypedResponseMessage<"MoneroTransactionData"> | TypedResponseMessage<"MoneroTransactionDestinationEntry"> | TypedResponseMessage<"MoneroTransactionRsigData"> | TypedResponseMessage<"MoneroTransactionSourceEntry"> | TypedResponseMessage<"MoneroRingCtSig"> | TypedResponseMessage<"MoneroSubAddressIndicesList"> | TypedResponseMessage<"MoneroTransferDetails"> | TypedResponseMessage<"MoneroExportedKeyImage"> | TypedResponseMessage<"NEMTransactionCommon"> | TypedResponseMessage<"NEMTransfer"> | TypedResponseMessage<"NEMProvisionNamespace"> | TypedResponseMessage<"NEMMosaicCreation"> | TypedResponseMessage<"NEMMosaicSupplyChange"> | TypedResponseMessage<"NEMAggregateModification"> | TypedResponseMessage<"NEMImportanceTransfer"> | TypedResponseMessage<"NEMMosaic"> | TypedResponseMessage<"NEMMosaicDefinition"> | TypedResponseMessage<"NEMCosignatoryModification"> | TypedResponseMessage<"RipplePayment"> | TypedResponseMessage<"SolanaTxATADetails"> | TypedResponseMessage<"SolanaTxExtraInfo"> | TypedResponseMessage<"StellarAsset"> | TypedResponseMessage<"TezosRevealOp"> | TypedResponseMessage<"TezosTransactionOp"> | TypedResponseMessage<"TezosOriginationOp"> | TypedResponseMessage<"TezosDelegationOp"> | TypedResponseMessage<"TezosProposalOp"> | TypedResponseMessage<"TezosBallotOp"> | TypedResponseMessage<"TezosContractID"> | TypedResponseMessage<"TezosParametersManager"> | TypedResponseMessage<"TezosManagerTransfer"> | TypedResponseMessage<"TronContract"> | TypedResponseMessage<"TronTransferContract"> | TypedResponseMessage<"TronVoteWitnessContract"> | TypedResponseMessage<"TronFreezeBalanceContract"> | TypedResponseMessage<"TronUnfreezeBalanceContract"> | TypedResponseMessage<"TronWithdrawBalanceContract"> | TypedResponseMessage<"TronTriggerSmartContract"> | TypedResponseMessage<"TronFreezeBalanceV2Contract"> | TypedResponseMessage<"TronUnfreezeBalanceV2Contract"> | TypedResponseMessage<"TronWithdrawExpireUnfreezeContract"> | TypedResponseMessage<"TronDelegateResourceContract"> | TypedResponseMessage<"TronUnDelegateResourceContract"> | TypedResponseMessage<"TronCancelAllUnfreezeV2Contract"> | TypedResponseMessage<"Vote"> | TypedResponseMessage<"CoinJoinRequest"> | TypedResponseMessage<"PaymentRequestMemo"> | TypedResponseMessage<"TextMemo"> | TypedResponseMessage<"RefundMemo"> | TypedResponseMessage<"CoinPurchaseMemo"> | TypedResponseMessage<"ViewAmount"> | TypedResponseMessage<"ViewDetail"> | TypedResponseMessage<"ViewTip"> | TypedResponseMessage<"ViewRawData"> | TypedResponseMessage<"DeviceSettings"> | TypedResponseMessage<"DeviceCertificate"> | TypedResponseMessage<"DeviceFirmwareTarget"> | TypedResponseMessage<"DeviceFirmwareUpdateRecordFields"> | TypedResponseMessage<"DeviceFirmwareUpdateRecord"> | TypedResponseMessage<"DeviceFactoryInfoManufactureTime"> | TypedResponseMessage<"DeviceFactoryInfo"> | TypedResponseMessage<"DeviceFirmwareImageInfo"> | TypedResponseMessage<"DeviceInfoTargets"> | TypedResponseMessage<"DeviceInfoTypes"> | TypedResponseMessage<"DeviceHardwareInfo"> | TypedResponseMessage<"DeviceMainMcuInfo"> | TypedResponseMessage<"DeviceCoprocessorInfo"> | TypedResponseMessage<"DeviceSEInfo"> | TypedResponseMessage<"DevOnboardingSetupStatus"> | TypedResponseMessage<"FilesystemFile"> | TypedResponseMessage<"AlephiumGetAddress"> | TypedResponseMessage<"AlephiumAddress"> | TypedResponseMessage<"AlephiumSignTx"> | TypedResponseMessage<"AlephiumSignedTx"> | TypedResponseMessage<"AlephiumTxRequest"> | TypedResponseMessage<"AlephiumTxAck"> | TypedResponseMessage<"AlephiumBytecodeRequest"> | TypedResponseMessage<"AlephiumBytecodeAck"> | TypedResponseMessage<"AlephiumSignMessage"> | TypedResponseMessage<"AlephiumMessageSignature"> | TypedResponseMessage<"AlgorandGetAddress"> | TypedResponseMessage<"AlgorandAddress"> | TypedResponseMessage<"AlgorandSignTx"> | TypedResponseMessage<"AlgorandSignedTx"> | TypedResponseMessage<"AptosGetAddress"> | TypedResponseMessage<"AptosAddress"> | TypedResponseMessage<"AptosSignTx"> | TypedResponseMessage<"AptosSignedTx"> | TypedResponseMessage<"AptosSignMessage"> | TypedResponseMessage<"AptosMessageSignature"> | TypedResponseMessage<"AptosSignSIWAMessage"> | TypedResponseMessage<"BenfenGetAddress"> | TypedResponseMessage<"BenfenAddress"> | TypedResponseMessage<"BenfenSignTx"> | TypedResponseMessage<"BenfenSignedTx"> | TypedResponseMessage<"BenfenTxRequest"> | TypedResponseMessage<"BenfenTxAck"> | TypedResponseMessage<"BenfenSignMessage"> | TypedResponseMessage<"BenfenMessageSignature"> | TypedResponseMessage<"BinanceGetAddress"> | TypedResponseMessage<"BinanceAddress"> | TypedResponseMessage<"BinanceGetPublicKey"> | TypedResponseMessage<"BinancePublicKey"> | TypedResponseMessage<"BinanceSignTx"> | TypedResponseMessage<"BinanceTxRequest"> | TypedResponseMessage<"BinanceTransferMsg"> | TypedResponseMessage<"BinanceOrderMsg"> | TypedResponseMessage<"BinanceCancelMsg"> | TypedResponseMessage<"BinanceSignedTx"> | TypedResponseMessage<"GetPublicKey"> | TypedResponseMessage<"PublicKey"> | TypedResponseMessage<"GetAddress"> | TypedResponseMessage<"GetOwnershipId"> | TypedResponseMessage<"OwnershipId"> | TypedResponseMessage<"SignMessage"> | TypedResponseMessage<"MessageSignature"> | TypedResponseMessage<"VerifyMessage"> | TypedResponseMessage<"SignTx"> | TypedResponseMessage<"TxRequest"> | TypedResponseMessage<"TxAck"> | TypedResponseMessage<"TxAckInput"> | TypedResponseMessage<"TxAckOutput"> | TypedResponseMessage<"TxAckPrevMeta"> | TypedResponseMessage<"TxAckPrevInput"> | TypedResponseMessage<"TxAckPrevOutput"> | TypedResponseMessage<"TxAckPrevExtraData"> | TypedResponseMessage<"GetOwnershipProof"> | TypedResponseMessage<"OwnershipProof"> | TypedResponseMessage<"AuthorizeCoinJoin"> | TypedResponseMessage<"GetPublicKeyMultiple"> | TypedResponseMessage<"PublicKeyMultiple"> | TypedResponseMessage<"SignPsbt"> | TypedResponseMessage<"SignedPsbt"> | TypedResponseMessage<"FirmwareErase"> | TypedResponseMessage<"FirmwareRequest"> | TypedResponseMessage<"FirmwareUpload"> | TypedResponseMessage<"SelfTest"> | TypedResponseMessage<"FirmwareErase_ex"> | TypedResponseMessage<"Reboot"> | TypedResponseMessage<"FirmwareUpdateEmmc"> | TypedResponseMessage<"UpgradeFileHeader"> | TypedResponseMessage<"CardanoGetNativeScriptHash"> | TypedResponseMessage<"CardanoNativeScriptHash"> | TypedResponseMessage<"CardanoGetAddress"> | TypedResponseMessage<"CardanoAddress"> | TypedResponseMessage<"CardanoGetPublicKey"> | TypedResponseMessage<"CardanoPublicKey"> | TypedResponseMessage<"CardanoSignTxInit"> | TypedResponseMessage<"CardanoTxInput"> | TypedResponseMessage<"CardanoTxOutput"> | TypedResponseMessage<"CardanoAssetGroup"> | TypedResponseMessage<"CardanoToken"> | TypedResponseMessage<"CardanoTxInlineDatumChunk"> | TypedResponseMessage<"CardanoTxReferenceScriptChunk"> | TypedResponseMessage<"CardanoPoolOwner"> | TypedResponseMessage<"CardanoPoolRelayParameters"> | TypedResponseMessage<"CardanoTxCertificate"> | TypedResponseMessage<"CardanoTxWithdrawal"> | TypedResponseMessage<"CardanoTxAuxiliaryData"> | TypedResponseMessage<"CardanoTxMint"> | TypedResponseMessage<"CardanoTxCollateralInput"> | TypedResponseMessage<"CardanoTxRequiredSigner"> | TypedResponseMessage<"CardanoTxReferenceInput"> | TypedResponseMessage<"CardanoTxItemAck"> | TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | TypedResponseMessage<"CardanoTxWitnessRequest"> | TypedResponseMessage<"CardanoTxWitnessResponse"> | TypedResponseMessage<"CardanoTxHostAck"> | TypedResponseMessage<"CardanoTxBodyHash"> | TypedResponseMessage<"CardanoSignTxFinished"> | TypedResponseMessage<"CardanoSignMessage"> | TypedResponseMessage<"CardanoMessageSignature"> | TypedResponseMessage<"Failure"> | TypedResponseMessage<"ButtonRequest"> | TypedResponseMessage<"ButtonAck"> | TypedResponseMessage<"PinMatrixRequest"> | TypedResponseMessage<"PinMatrixAck"> | TypedResponseMessage<"PassphraseRequest"> | TypedResponseMessage<"PassphraseAck"> | TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | TypedResponseMessage<"Deprecated_PassphraseStateAck"> | TypedResponseMessage<"BixinPinInputOnDevice"> | TypedResponseMessage<"ConfluxGetAddress"> | TypedResponseMessage<"ConfluxAddress"> | TypedResponseMessage<"ConfluxSignTx"> | TypedResponseMessage<"ConfluxTxRequest"> | TypedResponseMessage<"ConfluxTxAck"> | TypedResponseMessage<"ConfluxSignMessage"> | TypedResponseMessage<"ConfluxMessageSignature"> | TypedResponseMessage<"ConfluxSignMessageCIP23"> | TypedResponseMessage<"CosmosGetAddress"> | TypedResponseMessage<"CosmosAddress"> | TypedResponseMessage<"CosmosSignTx"> | TypedResponseMessage<"CosmosSignedTx"> | TypedResponseMessage<"CipherKeyValue"> | TypedResponseMessage<"CipheredKeyValue"> | TypedResponseMessage<"SignIdentity"> | TypedResponseMessage<"SignedIdentity"> | TypedResponseMessage<"GetECDHSessionKey"> | TypedResponseMessage<"ECDHSessionKey"> | TypedResponseMessage<"BatchGetPublickeys"> | TypedResponseMessage<"EcdsaPublicKeys"> | TypedResponseMessage<"DnxGetAddress"> | TypedResponseMessage<"DnxAddress"> | TypedResponseMessage<"DnxSignTx"> | TypedResponseMessage<"DnxInputRequest"> | TypedResponseMessage<"DnxInputAck"> | TypedResponseMessage<"DnxRTSigsRequest"> | TypedResponseMessage<"DnxSignedTx"> | TypedResponseMessage<"EmmcFixPermission"> | TypedResponseMessage<"EmmcPath"> | TypedResponseMessage<"EmmcPathInfo"> | TypedResponseMessage<"EmmcFileRead"> | TypedResponseMessage<"EmmcFileWrite"> | TypedResponseMessage<"EmmcFileDelete"> | TypedResponseMessage<"EmmcDir"> | TypedResponseMessage<"EmmcDirList"> | TypedResponseMessage<"EmmcDirMake"> | TypedResponseMessage<"EmmcDirRemove"> | TypedResponseMessage<"EosGetPublicKey"> | TypedResponseMessage<"EosPublicKey"> | TypedResponseMessage<"EosSignTx"> | TypedResponseMessage<"EosTxActionRequest"> | TypedResponseMessage<"EosTxActionAck"> | TypedResponseMessage<"EosSignedTx"> | TypedResponseMessage<"EthereumNetworkInfo"> | TypedResponseMessage<"EthereumTokenInfo"> | TypedResponseMessage<"EthereumSignTypedDataOneKey"> | TypedResponseMessage<"EthereumGnosisSafeTxRequest"> | TypedResponseMessage<"EthereumGnosisSafeTxAck"> | TypedResponseMessage<"EthereumTypedDataStructRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataStructAckOneKey"> | TypedResponseMessage<"EthereumTypedDataValueRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataValueAckOneKey"> | TypedResponseMessage<"EthereumSignTypedData"> | TypedResponseMessage<"EthereumTypedDataStructRequest"> | TypedResponseMessage<"EthereumTypedDataStructAck"> | TypedResponseMessage<"EthereumTypedDataValueRequest"> | TypedResponseMessage<"EthereumTypedDataValueAck"> | TypedResponseMessage<"EthereumGetPublicKeyOneKey"> | TypedResponseMessage<"EthereumPublicKeyOneKey"> | TypedResponseMessage<"EthereumGetAddressOneKey"> | TypedResponseMessage<"EthereumAddressOneKey"> | TypedResponseMessage<"EthereumSignTxOneKey"> | TypedResponseMessage<"EthereumSignTxEIP1559OneKey"> | TypedResponseMessage<"EthereumSignTxEIP7702OneKey"> | TypedResponseMessage<"EthereumTxRequestOneKey"> | TypedResponseMessage<"EthereumTxAckOneKey"> | TypedResponseMessage<"EthereumSignMessageOneKey"> | TypedResponseMessage<"EthereumMessageSignatureOneKey"> | TypedResponseMessage<"EthereumVerifyMessageOneKey"> | TypedResponseMessage<"EthereumSignTypedHashOneKey"> | TypedResponseMessage<"EthereumTypedDataSignatureOneKey"> | TypedResponseMessage<"EthereumSignMessageEIP712"> | TypedResponseMessage<"EthereumGetPublicKey"> | TypedResponseMessage<"EthereumPublicKey"> | TypedResponseMessage<"EthereumGetAddress"> | TypedResponseMessage<"EthereumAddress"> | TypedResponseMessage<"EthereumSignTx"> | TypedResponseMessage<"EthereumSignTxEIP1559"> | TypedResponseMessage<"EthereumTxRequest"> | TypedResponseMessage<"EthereumTxAck"> | TypedResponseMessage<"EthereumSignMessage"> | TypedResponseMessage<"EthereumMessageSignature"> | TypedResponseMessage<"EthereumVerifyMessage"> | TypedResponseMessage<"EthereumSignTypedHash"> | TypedResponseMessage<"EthereumTypedDataSignature"> | TypedResponseMessage<"FilecoinGetAddress"> | TypedResponseMessage<"FilecoinAddress"> | TypedResponseMessage<"FilecoinSignTx"> | TypedResponseMessage<"FilecoinSignedTx"> | TypedResponseMessage<"KaspaGetAddress"> | TypedResponseMessage<"KaspaAddress"> | TypedResponseMessage<"KaspaSignTx"> | TypedResponseMessage<"KaspaTxInputRequest"> | TypedResponseMessage<"KaspaTxInputAck"> | TypedResponseMessage<"KaspaTxRequest"> | TypedResponseMessage<"KaspaTxAckInput"> | TypedResponseMessage<"KaspaTxAckOutput"> | TypedResponseMessage<"KaspaTxAckPayloadChunk"> | TypedResponseMessage<"KaspaTxAckPrevMeta"> | TypedResponseMessage<"KaspaTxAckPrevInput"> | TypedResponseMessage<"KaspaTxAckPrevOutput"> | TypedResponseMessage<"KaspaSignedTx"> | TypedResponseMessage<"LnurlAuth"> | TypedResponseMessage<"LnurlAuthResp"> | TypedResponseMessage<"Initialize"> | TypedResponseMessage<"GetFeatures"> | TypedResponseMessage<"OnekeyGetFeatures"> | TypedResponseMessage<"Features"> | TypedResponseMessage<"OnekeyFeatures"> | TypedResponseMessage<"LockDevice"> | TypedResponseMessage<"EndSession"> | TypedResponseMessage<"ApplySettings"> | TypedResponseMessage<"ApplyFlags"> | TypedResponseMessage<"ChangePin"> | TypedResponseMessage<"ChangeWipeCode"> | TypedResponseMessage<"SdProtect"> | TypedResponseMessage<"Ping"> | TypedResponseMessage<"Cancel"> | TypedResponseMessage<"GetEntropy"> | TypedResponseMessage<"Entropy"> | TypedResponseMessage<"WipeDevice"> | TypedResponseMessage<"ResetDevice"> | TypedResponseMessage<"BackupDevice"> | TypedResponseMessage<"EntropyRequest"> | TypedResponseMessage<"EntropyAck"> | TypedResponseMessage<"RecoveryDevice"> | TypedResponseMessage<"WordRequest"> | TypedResponseMessage<"WordAck"> | TypedResponseMessage<"SetU2FCounter"> | TypedResponseMessage<"GetNextU2FCounter"> | TypedResponseMessage<"NextU2FCounter"> | TypedResponseMessage<"DoPreauthorized"> | TypedResponseMessage<"PreauthorizedRequest"> | TypedResponseMessage<"CancelAuthorization"> | TypedResponseMessage<"BixinSeedOperate"> | TypedResponseMessage<"BixinMessageSE"> | TypedResponseMessage<"BixinOutMessageSE"> | TypedResponseMessage<"DeviceBackToBoot"> | TypedResponseMessage<"BixinBackupRequest"> | TypedResponseMessage<"BixinBackupAck"> | TypedResponseMessage<"BixinRestoreRequest"> | TypedResponseMessage<"BixinRestoreAck"> | TypedResponseMessage<"BixinVerifyDeviceRequest"> | TypedResponseMessage<"BixinVerifyDeviceAck"> | TypedResponseMessage<"BixinWhiteListRequest"> | TypedResponseMessage<"BixinWhiteListAck"> | TypedResponseMessage<"BixinLoadDevice"> | TypedResponseMessage<"BixinBackupDevice"> | TypedResponseMessage<"BixinBackupDeviceAck"> | TypedResponseMessage<"DeviceInfoSettings"> | TypedResponseMessage<"GetDeviceInfo"> | TypedResponseMessage<"DeviceInfo"> | TypedResponseMessage<"ReadSEPublicKey"> | TypedResponseMessage<"SEPublicKey"> | TypedResponseMessage<"WriteSEPublicCert"> | TypedResponseMessage<"ReadSEPublicCert"> | TypedResponseMessage<"SEPublicCert"> | TypedResponseMessage<"SpiFlashWrite"> | TypedResponseMessage<"SpiFlashRead"> | TypedResponseMessage<"SpiFlashData"> | TypedResponseMessage<"SESignMessage"> | TypedResponseMessage<"SEMessageSignature"> | TypedResponseMessage<"ResourceUpload"> | TypedResponseMessage<"ZoomRequest"> | TypedResponseMessage<"BlurRequest"> | TypedResponseMessage<"ResourceRequest"> | TypedResponseMessage<"ResourceAck"> | TypedResponseMessage<"ResourceUpdate"> | TypedResponseMessage<"NFTWriteInfo"> | TypedResponseMessage<"NFTWriteData"> | TypedResponseMessage<"RebootToBootloader"> | TypedResponseMessage<"RebootToBoardloader"> | TypedResponseMessage<"ListResDir"> | TypedResponseMessage<"FileInfoList"> | TypedResponseMessage<"DeviceEraseSector"> | TypedResponseMessage<"UnLockDevice"> | TypedResponseMessage<"UnLockDeviceResponse"> | TypedResponseMessage<"GetPassphraseState"> | TypedResponseMessage<"MoneroGetAddress"> | TypedResponseMessage<"MoneroAddress"> | TypedResponseMessage<"MoneroGetWatchKey"> | TypedResponseMessage<"MoneroWatchKey"> | TypedResponseMessage<"MoneroTransactionInitRequest"> | TypedResponseMessage<"MoneroTransactionInitAck"> | TypedResponseMessage<"MoneroTransactionSetInputRequest"> | TypedResponseMessage<"MoneroTransactionSetInputAck"> | TypedResponseMessage<"MoneroTransactionInputsPermutationRequest"> | TypedResponseMessage<"MoneroTransactionInputsPermutationAck"> | TypedResponseMessage<"MoneroTransactionInputViniRequest"> | TypedResponseMessage<"MoneroTransactionInputViniAck"> | TypedResponseMessage<"MoneroTransactionAllInputsSetRequest"> | TypedResponseMessage<"MoneroTransactionAllInputsSetAck"> | TypedResponseMessage<"MoneroTransactionSetOutputRequest"> | TypedResponseMessage<"MoneroTransactionSetOutputAck"> | TypedResponseMessage<"MoneroTransactionAllOutSetRequest"> | TypedResponseMessage<"MoneroTransactionAllOutSetAck"> | TypedResponseMessage<"MoneroTransactionSignInputRequest"> | TypedResponseMessage<"MoneroTransactionSignInputAck"> | TypedResponseMessage<"MoneroTransactionFinalRequest"> | TypedResponseMessage<"MoneroTransactionFinalAck"> | TypedResponseMessage<"MoneroKeyImageExportInitRequest"> | TypedResponseMessage<"MoneroKeyImageExportInitAck"> | TypedResponseMessage<"MoneroKeyImageSyncStepRequest"> | TypedResponseMessage<"MoneroKeyImageSyncStepAck"> | TypedResponseMessage<"MoneroKeyImageSyncFinalRequest"> | TypedResponseMessage<"MoneroKeyImageSyncFinalAck"> | TypedResponseMessage<"MoneroGetTxKeyRequest"> | TypedResponseMessage<"MoneroGetTxKeyAck"> | TypedResponseMessage<"MoneroLiveRefreshStartRequest"> | TypedResponseMessage<"MoneroLiveRefreshStartAck"> | TypedResponseMessage<"MoneroLiveRefreshStepRequest"> | TypedResponseMessage<"MoneroLiveRefreshStepAck"> | TypedResponseMessage<"MoneroLiveRefreshFinalRequest"> | TypedResponseMessage<"MoneroLiveRefreshFinalAck"> | TypedResponseMessage<"NearGetAddress"> | TypedResponseMessage<"NearAddress"> | TypedResponseMessage<"NearSignTx"> | TypedResponseMessage<"NearSignedTx"> | TypedResponseMessage<"NEMGetAddress"> | TypedResponseMessage<"NEMAddress"> | TypedResponseMessage<"NEMSignTx"> | TypedResponseMessage<"NEMSignedTx"> | TypedResponseMessage<"NEMDecryptMessage"> | TypedResponseMessage<"NEMDecryptedMessage"> | TypedResponseMessage<"NeoGetAddress"> | TypedResponseMessage<"NeoAddress"> | TypedResponseMessage<"NeoSignTx"> | TypedResponseMessage<"NeoSignedTx"> | TypedResponseMessage<"NervosGetAddress"> | TypedResponseMessage<"NervosAddress"> | TypedResponseMessage<"NervosSignTx"> | TypedResponseMessage<"NervosSignedTx"> | TypedResponseMessage<"NervosTxRequest"> | TypedResponseMessage<"NervosTxAck"> | TypedResponseMessage<"NexaGetAddress"> | TypedResponseMessage<"NexaAddress"> | TypedResponseMessage<"NexaSignTx"> | TypedResponseMessage<"NexaTxInputRequest"> | TypedResponseMessage<"NexaTxInputAck"> | TypedResponseMessage<"NexaSignedTx"> | TypedResponseMessage<"NostrGetPublicKey"> | TypedResponseMessage<"NostrPublicKey"> | TypedResponseMessage<"NostrSignEvent"> | TypedResponseMessage<"NostrSignedEvent"> | TypedResponseMessage<"NostrSignSchnorr"> | TypedResponseMessage<"NostrSignedSchnorr"> | TypedResponseMessage<"NostrEncryptMessage"> | TypedResponseMessage<"NostrEncryptedMessage"> | TypedResponseMessage<"NostrDecryptMessage"> | TypedResponseMessage<"NostrDecryptedMessage"> | TypedResponseMessage<"PolkadotGetAddress"> | TypedResponseMessage<"PolkadotAddress"> | TypedResponseMessage<"PolkadotSignTx"> | TypedResponseMessage<"PolkadotSignedTx"> | TypedResponseMessage<"RippleGetAddress"> | TypedResponseMessage<"RippleAddress"> | TypedResponseMessage<"RippleSignTx"> | TypedResponseMessage<"RippleSignedTx"> | TypedResponseMessage<"ScdoGetAddress"> | TypedResponseMessage<"ScdoAddress"> | TypedResponseMessage<"ScdoSignTx"> | TypedResponseMessage<"ScdoSignedTx"> | TypedResponseMessage<"ScdoTxAck"> | TypedResponseMessage<"ScdoSignMessage"> | TypedResponseMessage<"ScdoSignedMessage"> | TypedResponseMessage<"SolanaGetAddress"> | TypedResponseMessage<"SolanaAddress"> | TypedResponseMessage<"SolanaSignTx"> | TypedResponseMessage<"SolanaSignedTx"> | TypedResponseMessage<"SolanaSignOffChainMessage"> | TypedResponseMessage<"SolanaSignUnsafeMessage"> | TypedResponseMessage<"SolanaMessageSignature"> | TypedResponseMessage<"StarcoinGetAddress"> | TypedResponseMessage<"StarcoinAddress"> | TypedResponseMessage<"StarcoinGetPublicKey"> | TypedResponseMessage<"StarcoinPublicKey"> | TypedResponseMessage<"StarcoinSignTx"> | TypedResponseMessage<"StarcoinSignedTx"> | TypedResponseMessage<"StarcoinSignMessage"> | TypedResponseMessage<"StarcoinMessageSignature"> | TypedResponseMessage<"StarcoinVerifyMessage"> | TypedResponseMessage<"StellarGetAddress"> | TypedResponseMessage<"StellarAddress"> | TypedResponseMessage<"StellarSignTx"> | TypedResponseMessage<"StellarTxOpRequest"> | TypedResponseMessage<"StellarPaymentOp"> | TypedResponseMessage<"StellarCreateAccountOp"> | TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | TypedResponseMessage<"StellarManageSellOfferOp"> | TypedResponseMessage<"StellarManageBuyOfferOp"> | TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | TypedResponseMessage<"StellarSetOptionsOp"> | TypedResponseMessage<"StellarChangeTrustOp"> | TypedResponseMessage<"StellarAllowTrustOp"> | TypedResponseMessage<"StellarAccountMergeOp"> | TypedResponseMessage<"StellarManageDataOp"> | TypedResponseMessage<"StellarBumpSequenceOp"> | TypedResponseMessage<"StellarInvokeHostFunctionOp"> | TypedResponseMessage<"StellarSorobanDataRequest"> | TypedResponseMessage<"StellarSorobanDataAck"> | TypedResponseMessage<"StellarSignedTx"> | TypedResponseMessage<"SuiGetAddress"> | TypedResponseMessage<"SuiAddress"> | TypedResponseMessage<"SuiSignTx"> | TypedResponseMessage<"SuiSignedTx"> | TypedResponseMessage<"SuiTxRequest"> | TypedResponseMessage<"SuiTxAck"> | TypedResponseMessage<"SuiSignMessage"> | TypedResponseMessage<"SuiMessageSignature"> | TypedResponseMessage<"TezosGetAddress"> | TypedResponseMessage<"TezosAddress"> | TypedResponseMessage<"TezosGetPublicKey"> | TypedResponseMessage<"TezosPublicKey"> | TypedResponseMessage<"TezosSignTx"> | TypedResponseMessage<"TezosSignedTx"> | TypedResponseMessage<"TonGetAddress"> | TypedResponseMessage<"TonAddress"> | TypedResponseMessage<"TonSignMessage"> | TypedResponseMessage<"TonTxAck"> | TypedResponseMessage<"TonSignedMessage"> | TypedResponseMessage<"TonSignProof"> | TypedResponseMessage<"TonSignedProof"> | TypedResponseMessage<"TonSignData"> | TypedResponseMessage<"TonSignedData"> | TypedResponseMessage<"TronGetAddress"> | TypedResponseMessage<"TronAddress"> | TypedResponseMessage<"TronSignTx"> | TypedResponseMessage<"TronSignedTx"> | TypedResponseMessage<"TronSignMessage"> | TypedResponseMessage<"TronMessageSignature"> | TypedResponseMessage<"facotry"> | TypedResponseMessage<"experimental_message"> | TypedResponseMessage<"experimental_field"> | TypedResponseMessage<"TxAckPaymentRequest"> | TypedResponseMessage<"EthereumSignTypedDataQR"> | TypedResponseMessage<"InternalMyAddressRequest"> | TypedResponseMessage<"StartSession"> | TypedResponseMessage<"SetBusy"> | TypedResponseMessage<"GetFirmwareHash"> | TypedResponseMessage<"FirmwareHash"> | TypedResponseMessage<"GetNonce"> | TypedResponseMessage<"Nonce"> | TypedResponseMessage<"WriteSEPrivateKey"> | TypedResponseMessage<"SetWallpaper"> | TypedResponseMessage<"GetWallpaper"> | TypedResponseMessage<"Wallpaper"> | TypedResponseMessage<"UnlockPath"> | TypedResponseMessage<"UnlockedPathRequest"> | TypedResponseMessage<"ViewSignPage"> | TypedResponseMessage<"ViewVerifyPage"> | TypedResponseMessage<"ProtocolInfoRequest"> | TypedResponseMessage<"ProtocolInfo"> | TypedResponseMessage<"DeviceReboot"> | TypedResponseMessage<"DeviceSettingsGet"> | TypedResponseMessage<"DeviceSettingsSet"> | TypedResponseMessage<"DeviceSettingsPageShow"> | TypedResponseMessage<"DeviceCertificateWrite"> | TypedResponseMessage<"DeviceCertificateRead"> | TypedResponseMessage<"DeviceCertificateSignature"> | TypedResponseMessage<"DeviceCertificateSign"> | TypedResponseMessage<"DeviceFirmwareUpdateRequest"> | TypedResponseMessage<"DeviceFirmwareUpdateStatusGet"> | TypedResponseMessage<"DeviceFactoryInfoSet"> | TypedResponseMessage<"DeviceFactoryInfoGet"> | TypedResponseMessage<"DeviceFactoryPermanentLock"> | TypedResponseMessage<"DeviceFactoryTest"> | TypedResponseMessage<"DeviceInfoGet"> | TypedResponseMessage<"DeviceSessionGet"> | TypedResponseMessage<"DeviceSessionAskPin"> | TypedResponseMessage<"DeviceStatusGet"> | TypedResponseMessage<"DevGetOnboardingStatus"> | TypedResponseMessage<"DevOnboardingStatus"> | TypedResponseMessage<"FilesystemPermissionFix"> | TypedResponseMessage<"FilesystemPathInfo"> | TypedResponseMessage<"FilesystemPathInfoQuery"> | TypedResponseMessage<"FilesystemFileRead"> | TypedResponseMessage<"FilesystemFileWrite"> | TypedResponseMessage<"FilesystemFileDelete"> | TypedResponseMessage<"FilesystemDir"> | TypedResponseMessage<"FilesystemDirList"> | TypedResponseMessage<"FilesystemDirMake"> | TypedResponseMessage<"FilesystemDirRemove"> | TypedResponseMessage<"FilesystemFormat"> | TypedResponseMessage<"PortfolioUpdate">;
3948
4424
 
3949
- declare const getDeviceType: (features?: Features) => IDeviceType;
4425
+ type DeviceFeaturesInput = Features | Messages.Features;
4426
+
4427
+ /**
4428
+ * get device type by features
4429
+ */
4430
+ declare const getDeviceType: (features?: DeviceFeaturesInput) => IDeviceType;
4431
+ /**
4432
+ * get device type by ble name
4433
+ * @param name Ble name
4434
+ */
3950
4435
  declare const getDeviceTypeByBleName: (name?: string) => IDeviceType;
3951
- declare const getDeviceBleName: (features?: Features) => string | null;
3952
- declare const getDeviceUUID: (features: Features) => string;
3953
- declare const getDeviceLabel: (features?: Features) => string | null;
3954
- declare const getMethodVersionRange: (features: Features | undefined, getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined) => IVersionRange | undefined;
4436
+ /**
4437
+ * Get Connected Device ble name by features
4438
+ * @returns
4439
+ */
4440
+ declare const getDeviceBleName: (features?: DeviceFeaturesInput) => string | null;
4441
+ /**
4442
+ * Get Connected Device serial number by features
4443
+ */
4444
+ declare const getDeviceSerialNo: (features?: DeviceFeaturesInput) => string;
4445
+ /**
4446
+ * @deprecated Use getDeviceSerialNo instead.
4447
+ */
4448
+ declare const getDeviceUUID: (features?: DeviceFeaturesInput) => string;
4449
+ /**
4450
+ * Get Connected Device label by features
4451
+ */
4452
+ declare const getDeviceLabel: (features?: DeviceFeaturesInput) => string | null;
4453
+ /**
4454
+ * Get firmware version range by features
4455
+ * Type has a higher priority than Model
4456
+ */
4457
+ declare const getMethodVersionRange: (features: DeviceFeaturesInput | undefined, getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined) => IVersionRange | undefined;
3955
4458
  declare const isMethodVersionRangeUnsupported: (versionRange?: IVersionRange) => boolean;
3956
- declare const getFirmwareType: (features: Features | undefined) => EFirmwareType;
3957
-
3958
- declare const getDeviceFirmwareVersion: (features: Features | undefined) => IVersionArray;
3959
- declare const getDeviceBLEFirmwareVersion: (features: Features) => IVersionArray;
3960
- declare const getDeviceBootloaderVersion: (features: Features | undefined) => IVersionArray;
3961
- declare const getDeviceBoardloaderVersion: (features: Features) => IVersionArray;
4459
+ declare const getFirmwareType: (features?: DeviceFeaturesInput) => _onekeyfe_hd_shared.EFirmwareType;
4460
+
4461
+ /**
4462
+ * Get Connected Device version by features
4463
+ */
4464
+ declare const getDeviceFirmwareVersion: (features?: DeviceFeaturesInput) => IVersionArray;
4465
+ /**
4466
+ * Get Connected Device bootloader version by features
4467
+ */
4468
+ declare const getDeviceBootloaderVersion: (features?: DeviceFeaturesInput) => IVersionArray;
4469
+ /**
4470
+ * Get Connected Device boardloader/romloader version by features
4471
+ */
4472
+ declare const getDeviceBoardloaderVersion: (features?: DeviceFeaturesInput) => IVersionArray;
4473
+ /**
4474
+ * Get Connected Device bluetooth firmware version by features
4475
+ */
4476
+ declare const getDeviceBLEFirmwareVersion: (features?: DeviceFeaturesInput) => IVersionArray;
3962
4477
 
3963
4478
  declare const FIRMWARE_FIELDS: readonly ["firmware", "firmware-v1", "firmware-v2", "firmware-v8", "firmware-btc-v8"];
3964
4479
  type IFirmwareField = (typeof FIRMWARE_FIELDS)[number];
@@ -3975,11 +4490,19 @@ declare class DataManager {
3975
4490
  };
3976
4491
  static lastCheckTimestamp: number;
3977
4492
  static getFirmwareStatus: (features: Features, firmwareType: EFirmwareType) => IDeviceFirmwareStatus;
4493
+ /**
4494
+ * Touch、Pro System UI Resource Update
4495
+ * ** Interval upgrade is not considered **
4496
+ */
3978
4497
  static getSysResourcesLatestRelease: ({ features, forcedUpdateRes, firmwareType, }: {
3979
4498
  features: Features;
3980
4499
  forcedUpdateRes?: boolean | undefined;
3981
4500
  firmwareType: EFirmwareType;
3982
4501
  }) => string | undefined;
4502
+ /**
4503
+ * Touch、Pro System full UI Resource Update
4504
+ * ** Interval upgrade is not considered **
4505
+ */
3983
4506
  static getSysFullResource: (features: Features, firmwareType: EFirmwareType) => string | undefined;
3984
4507
  static getBootloaderResource: (features: Features, firmwareType: EFirmwareType) => string | undefined;
3985
4508
  static getBootloaderTargetVersion: (features: Features, firmwareType: EFirmwareType) => IVersionArray | undefined;
@@ -4008,17 +4531,27 @@ declare class DataManager {
4008
4531
  static getSettings(key?: undefined): ConnectSettings;
4009
4532
  static getSettings<T extends keyof ConnectSettings>(key: T): ConnectSettings[T];
4010
4533
  static isBleConnect: (env: ConnectSettings['env']) => boolean;
4534
+ /** Desktop WebUSB doesn't need browser permission prompt */
4011
4535
  static isDesktopWebUsb: (env: ConnectSettings['env']) => boolean;
4536
+ /** Browser WebUSB needs permission prompt */
4012
4537
  static isBrowserWebUsb: (env: ConnectSettings['env']) => boolean;
4013
4538
  }
4014
4539
 
4015
- declare const supportInputPinOnSoftware: (features: Features) => SupportFeatureType;
4540
+ declare const supportInputPinOnSoftware: (features?: Features) => SupportFeatureType;
4541
+ /**
4542
+ * Since 3.5.0, Touch uses the firmware-v3 field to get firmware release info
4543
+ */
4016
4544
  declare const getFirmwareUpdateField: ({ features, updateType, targetVersion, firmwareType, }: {
4017
4545
  features: Features;
4018
4546
  updateType: 'firmware' | 'ble';
4019
4547
  targetVersion?: string | undefined;
4020
4548
  firmwareType: EFirmwareType;
4021
4549
  }) => 'ble' | IFirmwareField;
4550
+ /**
4551
+ * Returns the optional firmware version
4552
+ * Used in firmware web update
4553
+ * https://firmware.onekey.so/
4554
+ */
4022
4555
  declare const getFirmwareUpdateFieldArray: (features: Features, updateType: 'firmware' | 'ble' | 'bootloader') => ('ble' | IFirmwareField)[];
4023
4556
 
4024
4557
  declare function checkNeedUpdateBootForTouch(features: Features, firmwareType: EFirmwareType): boolean;
@@ -4077,4 +4610,4 @@ declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, can
4077
4610
  declare const HardwareSDKLowLevel: ({ init, call, dispose, eventEmitter, addHardwareGlobalEventListener, uiResponse, cancel, cancelOperation, updateSettings, switchTransport, }: LowLevelInjectApi) => LowLevelCoreApi;
4078
4611
  declare const HardwareTopLevelSdk: () => CoreApi;
4079
4612
 
4080
- export { AccountAddress, AccountAddresses, AlephiumAddress, AlephiumGetAddressParams, AlephiumSignMessageParams, AlephiumSignTransactionParams, AlephiumSignedTx, AlgoAddress, AlgoGetAddressParams, AlgoSignTransactionParams, AlgoSignedTx, AllFirmwareRelease, AllNetworkAddressParams, AllNetworkGetAddressParams, AptosAddress, AptosGetAddressParams, AptosGetPublicKeyParams, AptosMessageSignature, AptosPublicKey, AptosSignInMessageParams, AptosSignInMessageSignature, AptosSignMessageParams, AptosSignTransactionParams, AptosSignedTx, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BenfenAddress, BenfenGetAddressParams, BenfenGetPublicKeyParams, BenfenPublicKey, BenfenSignMessageParams, BenfenSignTransactionParams, BenfenSignedTx, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CardanoAddress, CardanoGetAddressMethodParams, CardanoGetAddressParams, CardanoSignMessageMethodParams, CardanoSignMessageParams, CardanoSignTransaction, CardanoSignedTxData, CipheredKeyValue, CipheredKeyValueParams, ClearSessionCacheParams, ClearSessionCachePayload, CommonParams, ConfluxAddress, ConfluxGetAddressParams, ConfluxSignMessageCIP23Params, ConfluxSignMessageParams, ConfluxSignTransactionParams, ConfluxSignedTx, ConfluxTransaction, ConnectSettings, Core, CoreApi, CoreMessage, CosmosAddress, CosmosGetAddressParams, CosmosGetPublicKeyParams, CosmosPublicKey, CosmosSignTransactionParams, CosmosSignedTx, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesMode, DeviceFeaturesPayload, DeviceFeaturesProtocol, DeviceFeaturesRaw, DeviceFeaturesRawPatch, DeviceFeaturesVerify, DeviceFirmwareRange, DeviceFlagsParams, DeviceModelToTypes, DeviceProgress, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendState, DeviceSendSupportFeatures, DeviceSettingsParams, DeviceState, DeviceStateEvent, DeviceStateIdentity, DeviceStateMode, DeviceStatePatch, DeviceStateProtocol, DeviceStateScope, DeviceStateSection, DeviceStateSession, DeviceStateSettings, DeviceStateStatus, DeviceStateUpdateSource, DeviceStateVersions, DeviceStatus, DeviceSupportFeatures, DeviceSupportFeaturesPayload, DeviceTypeMap, DeviceTypeToModels, DeviceUploadResourceParams, DeviceUploadResourceResponse, DeviceVerifyParams, DeviceVerifySignature, DnxAddress, DnxGetAddressParams, DnxSignTransactionParams, DnxSignature, DnxTxKey, EOneKeyDeviceMode, EVMAccessList, EVMAddress, EVMAuthorization, EVMAuthorizationSignature, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMTransactionEIP7702, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, FIRMWARE, FIRMWARE_EVENT, Features, FilecoinAddress, FilecoinGetAddressParams, FilecoinSignTransactionParams, FilecoinSignedTx, FirmwareEvent, FirmwareMessage, FirmwareProcessing, FirmwareProgress, FirmwareRange, FirmwareRelease, FirmwareTip, FirmwareUpdateBinaryParams, FirmwareUpdateParams, FirmwareUpdateTipMessage, FirmwareUpdateV3Params, FirmwareUpdateV4Params, GetDeviceStateParams, GetPassphraseStateParams, HardwareSDKLowLevel, HardwareTopLevelSdk, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareField, IFirmwareReleaseInfo, IFirmwareUpdateProgressType, IFirmwareUpdateTipMessage, IFrameBridge, IFrameCallMessage, IFrameCallback, IFrameCallbackMessage, IFrameCancelMessage, IFrameCancelOperationMessage, IFrameEvent, IFrameEventMessage, IFrameInit, IFrameSwitchTransport, IFrameSwitchTransportMessage, ILocale, IProtocolV2FirmwareComponent, IProtocolV2FirmwareComponentTarget, IProtocolV2ResourceBundle, ITransportStatus, IVersionArray, IVersionRange, KaspaAddress, KaspaGetAddressParams, KaspaSignInputParams, KaspaSignOutputParams, KaspaSignTransactionParams, KaspaSignature, KnownDevice, LOG, LOG_EVENT, LogBlockEvent, LogEvent, LogEventMessage, LogOutput, LoggerNames, LowLevelCoreApi, LowLevelInjectApi, MajorVersion, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, NearAddress, NearGetAddressParams, NearSignTransactionParams, NervosAddress, NervosGetAddressParams, NervosSignTransactionParams, NervosSignedTx, NexaAddress, NexaGetAddressParams, NexaSignInputParams, NexaSignOutputParams, NexaSignTransactionParams, NexaSignature, NormalizedFeatures, OnekeyFeatures, PRO2_WALLPAPER_HEIGHT, PRO2_WALLPAPER_WIDTH, Params, PassphraseRequestPayload, PolkadotAddress, PolkadotGetAddressParams, PolkadotSignTransactionParams, PolkadotSignedTx, PostMessageEvent, PreviousAddressResult, Pro2WallpaperColorFormat, ProtocolV2UiCompletion, ProtocolV2UiEventMetadata, ProtocolV2UiEventSource, RESPONSE_EVENT, RefTransaction, ReleaseInfo, ReleaseInfoEvent, ReleaseInfoPayload, RemoteConfigResponse, RequestContext, Response, ScdoAddress, ScdoGetAddressParams, ScdoSignMessageParams, ScdoSignTransactionParams, ScdoSignedTx, SdkTracingContext, SearchDevice, SignedTransaction, SolSignMessageParams, SolSignMessageResponse, SolSignOffchainMessageParams, SolSignOffchainMessageResponse, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, StrictFeatures, Success, SuiAddress, SuiGetAddressParams, SuiGetPublicKeyParams, SuiPublicKey, SuiSignMessageParams, SuiSignTransactionParams, SuiSignedTx, SupportFeatureType, SupportFeatures, TonAddress, TonGetAddressParams, TonSignDataParams, TonSignMessageParams, TonSignProofParams, TopLevelInjectApi, TransactionOptions, TransportReleaseStatus, TronAddress, TronDelegateResourceContract, TronFreezeBalanceV2Contract, TronGetAddressParams, TronSignMessageParams, TronSignTransactionParams, TronTransaction, TronTransactionContract, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestFirmwareProgressing, UiRequestPassphrase, UiRequestPassphraseOnDevice, UiRequestSelectDeviceForSwitchFirmwareWebDevice, UiRequestSelectDeviceInBootloaderForWebDevice, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePassphrase, UiResponsePin, UiResponseSelectDeviceForSwitchFirmwareWebDevice, UiResponseSelectDeviceInBootloaderForWebDevice, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, checkNeedUpdateBootForClassicAndMini, checkNeedUpdateBootForTouch, cleanupCallback, cleanupSdkInstance, completeRequestContext, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createRequestContext, createResponseMessage, createSdkTracingContext, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, encodePro2Wallpaper, executeCallback, formatRequestContext, generateInstanceId, generateSdkInstanceId, getActiveRequestsByDeviceInstance, getAutoLockOptions, getAutoShutDownOptions, getDeviceBLEFirmwareVersion, getDeviceBleName, getDeviceBoardloaderVersion, getDeviceBootloaderVersion, getDeviceFirmwareVersion, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceUUID, getEnv, getFirmwareType, getFirmwareUpdateField, getFirmwareUpdateFieldArray, getHDPath, getHomeScreenDefaultList, getHomeScreenHex, getHomeScreenSize, getLanguageConfig, getLog, getLogBlockLabel, getLogger, getMethodVersionRange, getOutputScriptType, getSDKVersion, getScriptType, getTimeStamp, httpRequest, init$1 as initCore, isBleConnect, isMethodVersionRangeUnsupported, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, preloadSessionCache, safeThrowError, setLoggerPostMessage, supportInputPinOnSoftware, switchTransport, transportEnv, updateRequestContext, versionCompare, versionSplit, wait, whitelist, whitelistExtension };
4613
+ export { AccountAddress, AccountAddresses, AlephiumAddress, AlephiumGetAddressParams, AlephiumSignMessageParams, AlephiumSignTransactionParams, AlephiumSignedTx, AlgoAddress, AlgoGetAddressParams, AlgoSignTransactionParams, AlgoSignedTx, AllFirmwareRelease, AllNetworkAddressParams, AllNetworkGetAddressParams, AptosAddress, AptosGetAddressParams, AptosGetPublicKeyParams, AptosMessageSignature, AptosPublicKey, AptosSignInMessageParams, AptosSignInMessageSignature, AptosSignMessageParams, AptosSignTransactionParams, AptosSignedTx, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BenfenAddress, BenfenGetAddressParams, BenfenGetPublicKeyParams, BenfenPublicKey, BenfenSignMessageParams, BenfenSignTransactionParams, BenfenSignedTx, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CardanoAddress, CardanoGetAddressMethodParams, CardanoGetAddressParams, CardanoSignMessageMethodParams, CardanoSignMessageParams, CardanoSignTransaction, CardanoSignedTxData, CipheredKeyValue, CipheredKeyValueParams, ClearSessionCacheParams, ClearSessionCachePayload, CommonParams, ConfluxAddress, ConfluxGetAddressParams, ConfluxSignMessageCIP23Params, ConfluxSignMessageParams, ConfluxSignTransactionParams, ConfluxSignedTx, ConfluxTransaction, ConnectSettings, Core, CoreApi, CoreMessage, CosmosAddress, CosmosGetAddressParams, CosmosGetPublicKeyParams, CosmosPublicKey, CosmosSignTransactionParams, CosmosSignedTx, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesMode, DeviceFeaturesPayload, DeviceFeaturesProtocol, DeviceFeaturesRaw, DeviceFeaturesRawPatch, DeviceFeaturesVerify, DeviceFirmwareRange, DeviceFlagsParams, DeviceModelToTypes, DeviceProgress, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendState, DeviceSendSupportFeatures, DeviceSettingsParams, DeviceState, DeviceStateEvent, DeviceStateIdentity, DeviceStateMode, DeviceStatePatch, DeviceStateProtocol, DeviceStateScope, DeviceStateSection, DeviceStateSettings, DeviceStateStatus, DeviceStateUpdateSource, DeviceStateVersions, DeviceStatus, DeviceSupportFeatures, DeviceSupportFeaturesPayload, DeviceTypeMap, DeviceTypeToModels, DeviceUploadResourceParams, DeviceUploadResourceResponse, DeviceVerifyParams, DeviceVerifySignature, DnxAddress, DnxGetAddressParams, DnxSignTransactionParams, DnxSignature, DnxTxKey, EOneKeyDeviceMode, EVMAccessList, EVMAddress, EVMAuthorization, EVMAuthorizationSignature, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMTransactionEIP7702, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, FIRMWARE, FIRMWARE_EVENT, Features, FilecoinAddress, FilecoinGetAddressParams, FilecoinSignTransactionParams, FilecoinSignedTx, FirmwareEvent, FirmwareMessage, FirmwareProcessing, FirmwareProgress, FirmwareRange, FirmwareRelease, FirmwareTip, FirmwareUpdateBinaryParams, FirmwareUpdateParams, FirmwareUpdateTipMessage, FirmwareUpdateV3Params, FirmwareUpdateV4Params, GetDeviceStateParams, GetPassphraseStateParams, HardwareSDKLowLevel, HardwareTopLevelSdk, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareField, IFirmwareReleaseInfo, IFirmwareUpdateProgressType, IFirmwareUpdateTipMessage, IFrameBridge, IFrameCallMessage, IFrameCallback, IFrameCallbackMessage, IFrameCancelMessage, IFrameCancelOperationMessage, IFrameEvent, IFrameEventMessage, IFrameInit, IFrameSwitchTransport, IFrameSwitchTransportMessage, ILocale, IProtocolV2FirmwareComponent, IProtocolV2FirmwareComponentTarget, IProtocolV2ResourceBundle, ITransportStatus, IVersionArray, IVersionRange, KaspaAddress, KaspaGetAddressParams, KaspaSignInputParams, KaspaSignOutputParams, KaspaSignTransactionParams, KaspaSignature, KnownDevice, LOG, LOG_EVENT, LogBlockEvent, LogEvent, LogEventMessage, LogOutput, LoggerNames, LowLevelCoreApi, LowLevelInjectApi, MajorVersion, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, NearAddress, NearGetAddressParams, NearSignTransactionParams, NervosAddress, NervosGetAddressParams, NervosSignTransactionParams, NervosSignedTx, NexaAddress, NexaGetAddressParams, NexaSignInputParams, NexaSignOutputParams, NexaSignTransactionParams, NexaSignature, NormalizedFeatures, OnekeyFeatures, OpenWalletSessionParams, OpenWalletSessionPayload, PRO2_WALLPAPER_HEIGHT, PRO2_WALLPAPER_WIDTH, Params, PassphraseRequestPayload, PolkadotAddress, PolkadotGetAddressParams, PolkadotSignTransactionParams, PolkadotSignedTx, PostMessageEvent, PreviousAddressResult, Pro2WallpaperColorFormat, ProtocolV2UiCompletion, ProtocolV2UiEventMetadata, ProtocolV2UiEventSource, RESPONSE_EVENT, RefTransaction, ReleaseInfo, ReleaseInfoEvent, ReleaseInfoPayload, RemoteConfigResponse, RequestContext, Response, ScdoAddress, ScdoGetAddressParams, ScdoSignMessageParams, ScdoSignTransactionParams, ScdoSignedTx, SdkTracingContext, SearchDevice, SignedTransaction, SolSignMessageParams, SolSignMessageResponse, SolSignOffchainMessageParams, SolSignOffchainMessageResponse, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, StrictFeatures, Success, SuiAddress, SuiGetAddressParams, SuiGetPublicKeyParams, SuiPublicKey, SuiSignMessageParams, SuiSignTransactionParams, SuiSignedTx, SupportFeatureType, SupportFeatures, TonAddress, TonGetAddressParams, TonSignDataParams, TonSignMessageParams, TonSignProofParams, TopLevelInjectApi, TransactionOptions, TransportReleaseStatus, TronAddress, TronDelegateResourceContract, TronFreezeBalanceV2Contract, TronGetAddressParams, TronSignMessageParams, TronSignTransactionParams, TronTransaction, TronTransactionContract, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestFirmwareProgressing, UiRequestPassphrase, UiRequestPassphraseOnDevice, UiRequestSelectDeviceForSwitchFirmwareWebDevice, UiRequestSelectDeviceInBootloaderForWebDevice, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePassphrase, UiResponsePin, UiResponseSelectDeviceForSwitchFirmwareWebDevice, UiResponseSelectDeviceInBootloaderForWebDevice, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, checkNeedUpdateBootForClassicAndMini, checkNeedUpdateBootForTouch, cleanupCallback, cleanupSdkInstance, completeRequestContext, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createRequestContext, createResponseMessage, createSdkTracingContext, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, encodePro2Wallpaper, executeCallback, formatRequestContext, generateInstanceId, generateSdkInstanceId, getActiveRequestsByDeviceInstance, getAutoLockOptions, getAutoShutDownOptions, getDeviceBLEFirmwareVersion, getDeviceBleName, getDeviceBoardloaderVersion, getDeviceBootloaderVersion, getDeviceFirmwareVersion, getDeviceLabel, getDeviceSerialNo, getDeviceType, getDeviceTypeByBleName, getDeviceUUID, getEnv, getFirmwareType, getFirmwareUpdateField, getFirmwareUpdateFieldArray, getHDPath, getHomeScreenDefaultList, getHomeScreenHex, getHomeScreenSize, getLanguageConfig, getLog, getLogBlockLabel, getLogger, getMethodVersionRange, getOutputScriptType, getSDKVersion, getScriptType, getTimeStamp, httpRequest, init$1 as initCore, isBleConnect, isMethodVersionRangeUnsupported, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, preloadSessionCache, safeThrowError, setLoggerPostMessage, supportInputPinOnSoftware, switchTransport, transportEnv, updateRequestContext, versionCompare, versionSplit, wait, whitelist, whitelistExtension };