@onekeyfe/hd-core 1.1.27-alpha.41 → 1.1.27-alpha.6

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 (359) hide show
  1. package/__tests__/DeviceCommands.test.ts +99 -0
  2. package/__tests__/evmLedgerLegacySafety.test.ts +261 -0
  3. package/__tests__/evmSignTransaction.test.ts +1 -1
  4. package/__tests__/evmSignTypedData.test.ts +1 -1
  5. package/__tests__/preInitialize.test.ts +22 -0
  6. package/dist/api/BaseMethod.d.ts +7 -1
  7. package/dist/api/BaseMethod.d.ts.map +1 -1
  8. package/dist/api/FirmwareUpdateV3.d.ts +0 -1
  9. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  10. package/dist/api/GetFeatures.d.ts +1 -1
  11. package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
  12. package/dist/api/GetPassphraseState.d.ts +1 -6
  13. package/dist/api/GetPassphraseState.d.ts.map +1 -1
  14. package/dist/api/SearchDevices.d.ts +1 -2
  15. package/dist/api/SearchDevices.d.ts.map +1 -1
  16. package/dist/api/alephium/AlephiumGetAddress.d.ts +6 -2
  17. package/dist/api/alephium/AlephiumGetAddress.d.ts.map +1 -1
  18. package/dist/api/alephium/AlephiumSignMessage.d.ts +5 -2
  19. package/dist/api/alephium/AlephiumSignMessage.d.ts.map +1 -1
  20. package/dist/api/alephium/AlephiumSignTransaction.d.ts +5 -2
  21. package/dist/api/alephium/AlephiumSignTransaction.d.ts.map +1 -1
  22. package/dist/api/algo/AlgoSignTransaction.d.ts.map +1 -1
  23. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
  24. package/dist/api/aptos/AptosSignInMessage.d.ts.map +1 -1
  25. package/dist/api/aptos/AptosSignMessage.d.ts.map +1 -1
  26. package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -1
  27. package/dist/api/benfen/BenfenGetAddress.d.ts +9 -2
  28. package/dist/api/benfen/BenfenGetAddress.d.ts.map +1 -1
  29. package/dist/api/benfen/BenfenGetPublicKey.d.ts +9 -2
  30. package/dist/api/benfen/BenfenGetPublicKey.d.ts.map +1 -1
  31. package/dist/api/benfen/BenfenSignMessage.d.ts +8 -2
  32. package/dist/api/benfen/BenfenSignMessage.d.ts.map +1 -1
  33. package/dist/api/benfen/BenfenSignTransaction.d.ts +8 -2
  34. package/dist/api/benfen/BenfenSignTransaction.d.ts.map +1 -1
  35. package/dist/api/btc/BTCGetAddress.d.ts +11 -1
  36. package/dist/api/btc/BTCGetAddress.d.ts.map +1 -1
  37. package/dist/api/btc/BTCGetPublicKey.d.ts +11 -1
  38. package/dist/api/btc/BTCGetPublicKey.d.ts.map +1 -1
  39. package/dist/api/btc/BTCSignMessage.d.ts +15 -1
  40. package/dist/api/btc/BTCSignMessage.d.ts.map +1 -1
  41. package/dist/api/btc/BTCSignPsbt.d.ts.map +1 -1
  42. package/dist/api/btc/BTCSignTransaction.d.ts +11 -1
  43. package/dist/api/btc/BTCSignTransaction.d.ts.map +1 -1
  44. package/dist/api/btc/BTCVerifyMessage.d.ts +11 -1
  45. package/dist/api/btc/BTCVerifyMessage.d.ts.map +1 -1
  46. package/dist/api/btc/helpers/versionLimit.d.ts +11 -2
  47. package/dist/api/btc/helpers/versionLimit.d.ts.map +1 -1
  48. package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -1
  49. package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -1
  50. package/dist/api/conflux/ConfluxSignMessage.d.ts.map +1 -1
  51. package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts.map +1 -1
  52. package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -1
  53. package/dist/api/cosmos/CosmosSignTransaction.d.ts.map +1 -1
  54. package/dist/api/device/DeviceRebootToBoardloader.d.ts +1 -1
  55. package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -1
  56. package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -1
  57. package/dist/api/device/PreInitialize.d.ts +6 -0
  58. package/dist/api/device/PreInitialize.d.ts.map +1 -0
  59. package/dist/api/dynex/DnxGetAddress.d.ts.map +1 -1
  60. package/dist/api/dynex/DnxSignTransaction.d.ts.map +1 -1
  61. package/dist/api/evm/EVMSignMessage.d.ts.map +1 -1
  62. package/dist/api/evm/EVMSignMessageEIP712.d.ts +8 -2
  63. package/dist/api/evm/EVMSignMessageEIP712.d.ts.map +1 -1
  64. package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -1
  65. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  66. package/dist/api/evm/latest/signTypedData.d.ts +1 -1
  67. package/dist/api/evm/latest/signTypedData.d.ts.map +1 -1
  68. package/dist/api/evm/legacyV1/signTypedData.d.ts +1 -1
  69. package/dist/api/evm/legacyV1/signTypedData.d.ts.map +1 -1
  70. package/dist/api/filecoin/FilecoinSignTransaction.d.ts.map +1 -1
  71. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +2 -10
  72. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
  73. package/dist/api/index.d.ts +1 -28
  74. package/dist/api/index.d.ts.map +1 -1
  75. package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -1
  76. package/dist/api/near/NearSignTransaction.d.ts.map +1 -1
  77. package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -1
  78. package/dist/api/neo/NeoGetAddress.d.ts +8 -2
  79. package/dist/api/neo/NeoGetAddress.d.ts.map +1 -1
  80. package/dist/api/neo/NeoSignTransaction.d.ts +8 -2
  81. package/dist/api/neo/NeoSignTransaction.d.ts.map +1 -1
  82. package/dist/api/nervos/NervosGetAddress.d.ts +9 -2
  83. package/dist/api/nervos/NervosGetAddress.d.ts.map +1 -1
  84. package/dist/api/nervos/NervosSignTransaction.d.ts +9 -2
  85. package/dist/api/nervos/NervosSignTransaction.d.ts.map +1 -1
  86. package/dist/api/nexa/NexaGetAddress.d.ts +8 -2
  87. package/dist/api/nexa/NexaGetAddress.d.ts.map +1 -1
  88. package/dist/api/nexa/NexaSignTransaction.d.ts +9 -2
  89. package/dist/api/nexa/NexaSignTransaction.d.ts.map +1 -1
  90. package/dist/api/nostr/NostrSignEvent.d.ts.map +1 -1
  91. package/dist/api/nostr/NostrSignSchnorr.d.ts.map +1 -1
  92. package/dist/api/polkadot/PolkadotSignTransaction.d.ts.map +1 -1
  93. package/dist/api/scdo/ScdoGetAddress.d.ts +6 -2
  94. package/dist/api/scdo/ScdoGetAddress.d.ts.map +1 -1
  95. package/dist/api/scdo/ScdoSignMessage.d.ts +5 -2
  96. package/dist/api/scdo/ScdoSignMessage.d.ts.map +1 -1
  97. package/dist/api/scdo/ScdoSignTransaction.d.ts +5 -2
  98. package/dist/api/scdo/ScdoSignTransaction.d.ts.map +1 -1
  99. package/dist/api/solana/SolGetAddress.d.ts +0 -1
  100. package/dist/api/solana/SolGetAddress.d.ts.map +1 -1
  101. package/dist/api/solana/SolSignMessage.d.ts +0 -4
  102. package/dist/api/solana/SolSignMessage.d.ts.map +1 -1
  103. package/dist/api/solana/SolSignOffchainMessage.d.ts +0 -4
  104. package/dist/api/solana/SolSignOffchainMessage.d.ts.map +1 -1
  105. package/dist/api/solana/SolSignTransaction.d.ts +0 -8
  106. package/dist/api/solana/SolSignTransaction.d.ts.map +1 -1
  107. package/dist/api/starcoin/StarcoinSignMessage.d.ts.map +1 -1
  108. package/dist/api/starcoin/StarcoinSignTransaction.d.ts.map +1 -1
  109. package/dist/api/stellar/StellarGetAddress.d.ts +1 -2
  110. package/dist/api/stellar/StellarGetAddress.d.ts.map +1 -1
  111. package/dist/api/stellar/StellarSignTransaction.d.ts +1 -2
  112. package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -1
  113. package/dist/api/sui/SuiSignMessage.d.ts.map +1 -1
  114. package/dist/api/sui/SuiSignTransaction.d.ts +2 -2
  115. package/dist/api/sui/SuiSignTransaction.d.ts.map +1 -1
  116. package/dist/api/ton/TonSignData.d.ts.map +1 -1
  117. package/dist/api/ton/TonSignMessage.d.ts.map +1 -1
  118. package/dist/api/ton/TonSignProof.d.ts.map +1 -1
  119. package/dist/api/tron/TronSignMessage.d.ts +0 -4
  120. package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
  121. package/dist/api/tron/TronSignTransaction.d.ts +0 -4
  122. package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
  123. package/dist/api/xrp/XrpSignTransaction.d.ts.map +1 -1
  124. package/dist/core/PollingStateManager.d.ts +8 -0
  125. package/dist/core/PollingStateManager.d.ts.map +1 -0
  126. package/dist/core/RequestQueue.d.ts +1 -1
  127. package/dist/core/RequestQueue.d.ts.map +1 -1
  128. package/dist/core/index.d.ts.map +1 -1
  129. package/dist/data-manager/DataManager.d.ts +4 -7
  130. package/dist/data-manager/DataManager.d.ts.map +1 -1
  131. package/dist/data-manager/MessagesConfig.d.ts +2 -2
  132. package/dist/data-manager/MessagesConfig.d.ts.map +1 -1
  133. package/dist/data-manager/TransportManager.d.ts +4 -5
  134. package/dist/data-manager/TransportManager.d.ts.map +1 -1
  135. package/dist/device/Device.d.ts +18 -5
  136. package/dist/device/Device.d.ts.map +1 -1
  137. package/dist/device/DeviceCommands.d.ts +8 -8
  138. package/dist/device/DeviceCommands.d.ts.map +1 -1
  139. package/dist/device/DeviceConnector.d.ts +1 -2
  140. package/dist/device/DeviceConnector.d.ts.map +1 -1
  141. package/dist/events/ui-request.d.ts +0 -8
  142. package/dist/events/ui-request.d.ts.map +1 -1
  143. package/dist/index.d.ts +43 -292
  144. package/dist/index.js +1009 -16201
  145. package/dist/inject.d.ts.map +1 -1
  146. package/dist/types/api/export.d.ts +1 -1
  147. package/dist/types/api/export.d.ts.map +1 -1
  148. package/dist/types/api/firmwareUpdate.d.ts +0 -7
  149. package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
  150. package/dist/types/api/getPassphraseState.d.ts +1 -10
  151. package/dist/types/api/getPassphraseState.d.ts.map +1 -1
  152. package/dist/types/api/index.d.ts +3 -33
  153. package/dist/types/api/index.d.ts.map +1 -1
  154. package/dist/types/api/preInitialize.d.ts +3 -0
  155. package/dist/types/api/preInitialize.d.ts.map +1 -0
  156. package/dist/types/api/searchDevices.d.ts +2 -2
  157. package/dist/types/api/searchDevices.d.ts.map +1 -1
  158. package/dist/types/device.d.ts +2 -6
  159. package/dist/types/device.d.ts.map +1 -1
  160. package/dist/types/params.d.ts +1 -2
  161. package/dist/types/params.d.ts.map +1 -1
  162. package/dist/types/settings.d.ts +1 -1
  163. package/dist/types/settings.d.ts.map +1 -1
  164. package/dist/utils/deviceFeaturesUtils.d.ts +3 -5
  165. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  166. package/dist/utils/deviceInfoUtils.d.ts +0 -1
  167. package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
  168. package/dist/utils/index.d.ts +1 -1
  169. package/dist/utils/index.d.ts.map +1 -1
  170. package/dist/utils/patch.d.ts +1 -1
  171. package/dist/utils/patch.d.ts.map +1 -1
  172. package/dist/utils/versionUtils.d.ts +1 -1
  173. package/package.json +4 -4
  174. package/src/api/BaseMethod.ts +82 -7
  175. package/src/api/FirmwareUpdateV3.ts +4 -21
  176. package/src/api/GetOnekeyFeatures.ts +3 -75
  177. package/src/api/GetPassphraseState.ts +7 -16
  178. package/src/api/SearchDevices.ts +2 -7
  179. package/src/api/alephium/AlephiumGetAddress.ts +2 -6
  180. package/src/api/alephium/AlephiumSignMessage.ts +2 -6
  181. package/src/api/alephium/AlephiumSignTransaction.ts +3 -6
  182. package/src/api/algo/AlgoSignTransaction.ts +1 -0
  183. package/src/api/allnetwork/AllNetworkGetAddressBase.ts +9 -18
  184. package/src/api/aptos/AptosSignInMessage.ts +1 -0
  185. package/src/api/aptos/AptosSignMessage.ts +1 -0
  186. package/src/api/aptos/AptosSignTransaction.ts +1 -0
  187. package/src/api/benfen/BenfenGetAddress.ts +2 -6
  188. package/src/api/benfen/BenfenGetPublicKey.ts +2 -6
  189. package/src/api/benfen/BenfenSignMessage.ts +2 -6
  190. package/src/api/benfen/BenfenSignTransaction.ts +2 -6
  191. package/src/api/btc/BTCSignMessage.ts +1 -0
  192. package/src/api/btc/BTCSignPsbt.ts +1 -0
  193. package/src/api/btc/BTCSignTransaction.ts +1 -0
  194. package/src/api/btc/helpers/versionLimit.ts +1 -7
  195. package/src/api/cardano/CardanoSignMessage.ts +1 -0
  196. package/src/api/cardano/CardanoSignTransaction.ts +1 -0
  197. package/src/api/conflux/ConfluxSignMessage.ts +1 -0
  198. package/src/api/conflux/ConfluxSignMessageCIP23.ts +1 -0
  199. package/src/api/conflux/ConfluxSignTransaction.ts +3 -5
  200. package/src/api/cosmos/CosmosSignTransaction.ts +1 -0
  201. package/src/api/device/DeviceRebootToBoardloader.ts +1 -10
  202. package/src/api/device/DeviceRebootToBootloader.ts +1 -10
  203. package/src/api/device/PreInitialize.ts +41 -0
  204. package/src/api/dynex/DnxGetAddress.ts +0 -7
  205. package/src/api/dynex/DnxSignTransaction.ts +1 -7
  206. package/src/api/evm/EVMGetAddress.ts +1 -1
  207. package/src/api/evm/EVMGetPublicKey.ts +1 -1
  208. package/src/api/evm/EVMSignMessage.ts +3 -1
  209. package/src/api/evm/EVMSignMessageEIP712.ts +2 -14
  210. package/src/api/evm/EVMSignTransaction.ts +3 -1
  211. package/src/api/evm/EVMSignTypedData.ts +8 -6
  212. package/src/api/evm/EVMVerifyMessage.ts +1 -1
  213. package/src/api/filecoin/FilecoinSignTransaction.ts +1 -0
  214. package/src/api/firmware/FirmwareUpdateBaseMethod.ts +4 -27
  215. package/src/api/index.ts +1 -30
  216. package/src/api/kaspa/KaspaSignTransaction.ts +1 -0
  217. package/src/api/near/NearSignTransaction.ts +1 -0
  218. package/src/api/nem/NEMSignTransaction.ts +1 -0
  219. package/src/api/neo/NeoGetAddress.ts +1 -6
  220. package/src/api/neo/NeoSignTransaction.ts +2 -6
  221. package/src/api/nervos/NervosGetAddress.ts +2 -6
  222. package/src/api/nervos/NervosSignTransaction.ts +3 -6
  223. package/src/api/nexa/NexaGetAddress.ts +2 -6
  224. package/src/api/nexa/NexaSignTransaction.ts +4 -6
  225. package/src/api/nostr/NostrSignEvent.ts +1 -0
  226. package/src/api/nostr/NostrSignSchnorr.ts +1 -0
  227. package/src/api/polkadot/PolkadotSignTransaction.ts +1 -0
  228. package/src/api/scdo/ScdoGetAddress.ts +2 -6
  229. package/src/api/scdo/ScdoSignMessage.ts +2 -6
  230. package/src/api/scdo/ScdoSignTransaction.ts +3 -6
  231. package/src/api/solana/SolGetAddress.ts +0 -4
  232. package/src/api/solana/SolSignMessage.ts +1 -4
  233. package/src/api/solana/SolSignOffchainMessage.ts +1 -4
  234. package/src/api/solana/SolSignTransaction.ts +1 -8
  235. package/src/api/starcoin/StarcoinSignMessage.ts +1 -0
  236. package/src/api/starcoin/StarcoinSignTransaction.ts +1 -0
  237. package/src/api/stellar/StellarGetAddress.ts +1 -10
  238. package/src/api/stellar/StellarSignTransaction.ts +2 -14
  239. package/src/api/sui/SuiSignMessage.ts +1 -0
  240. package/src/api/sui/SuiSignTransaction.ts +10 -12
  241. package/src/api/ton/TonSignData.ts +1 -0
  242. package/src/api/ton/TonSignMessage.ts +1 -0
  243. package/src/api/ton/TonSignProof.ts +1 -0
  244. package/src/api/tron/TronSignMessage.ts +2 -5
  245. package/src/api/tron/TronSignTransaction.ts +1 -4
  246. package/src/api/xrp/XrpSignTransaction.ts +2 -1
  247. package/src/core/PollingStateManager.ts +47 -0
  248. package/src/core/RequestQueue.ts +10 -3
  249. package/src/core/index.ts +153 -62
  250. package/src/data-manager/DataManager.ts +7 -12
  251. package/src/data-manager/MessagesConfig.ts +14 -14
  252. package/src/data-manager/TransportManager.ts +12 -38
  253. package/src/device/Device.ts +82 -98
  254. package/src/device/DeviceCommands.ts +26 -166
  255. package/src/device/DeviceConnector.ts +4 -29
  256. package/src/device/DevicePool.ts +1 -1
  257. package/src/events/ui-request.ts +0 -8
  258. package/src/inject.ts +2 -46
  259. package/src/types/api/export.ts +0 -1
  260. package/src/types/api/firmwareUpdate.ts +0 -12
  261. package/src/types/api/getPassphraseState.ts +2 -13
  262. package/src/types/api/index.ts +3 -80
  263. package/src/types/api/preInitialize.ts +3 -0
  264. package/src/types/api/searchDevices.ts +2 -2
  265. package/src/types/device.ts +2 -33
  266. package/src/types/params.ts +2 -4
  267. package/src/types/settings.ts +1 -1
  268. package/src/utils/deviceFeaturesUtils.ts +21 -62
  269. package/src/utils/deviceInfoUtils.ts +8 -15
  270. package/src/utils/index.ts +0 -1
  271. package/__tests__/protocol-v2.test.ts +0 -1688
  272. package/dist/api/DirList.d.ts +0 -10
  273. package/dist/api/DirList.d.ts.map +0 -1
  274. package/dist/api/DirMake.d.ts +0 -9
  275. package/dist/api/DirMake.d.ts.map +0 -1
  276. package/dist/api/DirRemove.d.ts +0 -9
  277. package/dist/api/DirRemove.d.ts.map +0 -1
  278. package/dist/api/FileDelete.d.ts +0 -9
  279. package/dist/api/FileDelete.d.ts.map +0 -1
  280. package/dist/api/FileRead.d.ts +0 -19
  281. package/dist/api/FileRead.d.ts.map +0 -1
  282. package/dist/api/FileWrite.d.ts +0 -23
  283. package/dist/api/FileWrite.d.ts.map +0 -1
  284. package/dist/api/FirmwareUpdateV4.d.ts +0 -32
  285. package/dist/api/FirmwareUpdateV4.d.ts.map +0 -1
  286. package/dist/api/GetDeviceInfo.d.ts +0 -9
  287. package/dist/api/GetDeviceInfo.d.ts.map +0 -1
  288. package/dist/api/PathInfo.d.ts +0 -9
  289. package/dist/api/PathInfo.d.ts.map +0 -1
  290. package/dist/api/helpers/deviceInfo.d.ts +0 -15
  291. package/dist/api/helpers/deviceInfo.d.ts.map +0 -1
  292. package/dist/api/helpers/filesystemValidation.d.ts +0 -7
  293. package/dist/api/helpers/filesystemValidation.d.ts.map +0 -1
  294. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts +0 -7
  295. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts.map +0 -1
  296. package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts +0 -7
  297. package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts.map +0 -1
  298. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts +0 -6
  299. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +0 -1
  300. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +0 -6
  301. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +0 -1
  302. package/dist/api/protocol-v2/DeviceReboot.d.ts +0 -7
  303. package/dist/api/protocol-v2/DeviceReboot.d.ts.map +0 -1
  304. package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts +0 -7
  305. package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts.map +0 -1
  306. package/dist/api/protocol-v2/FactoryGetDeviceInfo.d.ts +0 -6
  307. package/dist/api/protocol-v2/FactoryGetDeviceInfo.d.ts.map +0 -1
  308. package/dist/api/protocol-v2/FilesystemDiskControl.d.ts +0 -10
  309. package/dist/api/protocol-v2/FilesystemDiskControl.d.ts.map +0 -1
  310. package/dist/api/protocol-v2/FilesystemFixPermission.d.ts +0 -6
  311. package/dist/api/protocol-v2/FilesystemFixPermission.d.ts.map +0 -1
  312. package/dist/api/protocol-v2/FilesystemFormat.d.ts +0 -6
  313. package/dist/api/protocol-v2/FilesystemFormat.d.ts.map +0 -1
  314. package/dist/api/protocol-v2/GetProtoVersion.d.ts +0 -6
  315. package/dist/api/protocol-v2/GetProtoVersion.d.ts.map +0 -1
  316. package/dist/api/protocol-v2/Ping.d.ts +0 -8
  317. package/dist/api/protocol-v2/Ping.d.ts.map +0 -1
  318. package/dist/api/protocol-v2/helpers.d.ts +0 -49
  319. package/dist/api/protocol-v2/helpers.d.ts.map +0 -1
  320. package/dist/protocols/protocol-v2/features.d.ts +0 -104
  321. package/dist/protocols/protocol-v2/features.d.ts.map +0 -1
  322. package/dist/protocols/protocol-v2/firmware.d.ts +0 -12
  323. package/dist/protocols/protocol-v2/firmware.d.ts.map +0 -1
  324. package/dist/protocols/protocol-v2/index.d.ts +0 -3
  325. package/dist/protocols/protocol-v2/index.d.ts.map +0 -1
  326. package/dist/types/api/getDeviceInfo.d.ts +0 -84
  327. package/dist/types/api/getDeviceInfo.d.ts.map +0 -1
  328. package/dist/types/api/protocolV2.d.ts +0 -127
  329. package/dist/types/api/protocolV2.d.ts.map +0 -1
  330. package/src/api/DirList.ts +0 -29
  331. package/src/api/DirMake.ts +0 -21
  332. package/src/api/DirRemove.ts +0 -21
  333. package/src/api/FileDelete.ts +0 -21
  334. package/src/api/FileRead.ts +0 -165
  335. package/src/api/FileWrite.ts +0 -203
  336. package/src/api/FirmwareUpdateV4.ts +0 -810
  337. package/src/api/GetDeviceInfo.ts +0 -161
  338. package/src/api/PathInfo.ts +0 -25
  339. package/src/api/helpers/deviceInfo.ts +0 -205
  340. package/src/api/helpers/filesystemValidation.ts +0 -51
  341. package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +0 -50
  342. package/src/api/protocol-v2/DeviceGetDeviceInfo.ts +0 -35
  343. package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +0 -18
  344. package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +0 -18
  345. package/src/api/protocol-v2/DeviceReboot.ts +0 -22
  346. package/src/api/protocol-v2/FactoryDeviceInfoSettings.ts +0 -27
  347. package/src/api/protocol-v2/FactoryGetDeviceInfo.ts +0 -18
  348. package/src/api/protocol-v2/FilesystemDiskControl.ts +0 -34
  349. package/src/api/protocol-v2/FilesystemFixPermission.ts +0 -14
  350. package/src/api/protocol-v2/FilesystemFormat.ts +0 -14
  351. package/src/api/protocol-v2/GetProtoVersion.ts +0 -14
  352. package/src/api/protocol-v2/Ping.ts +0 -16
  353. package/src/api/protocol-v2/helpers.ts +0 -161
  354. package/src/data/messages/messages-protocol-v2.json +0 -13128
  355. package/src/protocols/protocol-v2/features.ts +0 -287
  356. package/src/protocols/protocol-v2/firmware.ts +0 -26
  357. package/src/protocols/protocol-v2/index.ts +0 -2
  358. package/src/types/api/getDeviceInfo.ts +0 -97
  359. package/src/types/api/protocolV2.ts +0 -226
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import EventEmitter$1, { EventEmitter } from 'events';
2
2
  import * as _onekeyfe_hd_transport from '@onekeyfe/hd-transport';
3
- import { ProtoVersion, Success as Success$1, ProtocolV2DeviceInfo, DeviceOnboardingStatus, DeviceFirmwareUpdateStatus, FactoryDeviceInfo, DeviceRebootType, DeviceInfoTargets, DeviceInfoTypes, DeviceFirmwareTarget, OneKeyDeviceCommType, Messages, LowlevelTransportSharedPlugin, 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, Transport, TransportCallOptions, OneKeyDeviceInfo, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
3
+ import { OneKeyDeviceCommType, Messages, LowlevelTransportSharedPlugin, Features as Features$1, Success as Success$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, Transport, OneKeyDeviceInfo, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
4
4
  export { Messages as PROTO, TonSignDataType } from '@onekeyfe/hd-transport';
5
- import { HardwareConnectProtocol, EDeviceType, EFirmwareType, Deferred } from '@onekeyfe/hd-shared';
5
+ import { EDeviceType, EFirmwareType, Deferred } from '@onekeyfe/hd-shared';
6
6
 
7
7
  interface CommonParams {
8
8
  keepSession?: boolean;
@@ -17,7 +17,7 @@ interface CommonParams {
17
17
  skipWebDevicePrompt?: boolean;
18
18
  skipPassphraseCheck?: boolean;
19
19
  onlyConnectBleDevice?: boolean;
20
- connectProtocol?: HardwareConnectProtocol;
20
+ usePreInitialize?: boolean;
21
21
  }
22
22
  type Params<T> = CommonParams & T & {
23
23
  bundle?: undefined;
@@ -37,131 +37,6 @@ type Response<T> = Promise<Success<T> | Unsuccessful>;
37
37
 
38
38
  declare const safeThrowError: (error: any) => never;
39
39
 
40
- type FileOpSuccess = {
41
- message?: string;
42
- };
43
- type FileInfo = {
44
- path: string;
45
- offset: number;
46
- total_size: number;
47
- data?: Uint8Array;
48
- data_hash?: number;
49
- processed_byte?: number;
50
- chunks?: number;
51
- };
52
- type DirInfo = {
53
- path: string;
54
- child_dirs?: string;
55
- child_files?: string;
56
- };
57
- type PathInfoResult = {
58
- exist: boolean;
59
- size: number;
60
- year: number;
61
- month: number;
62
- day: number;
63
- hour: number;
64
- minute: number;
65
- second: number;
66
- readonly?: boolean;
67
- hidden?: boolean;
68
- system?: boolean;
69
- archive?: boolean;
70
- directory?: boolean;
71
- };
72
- type DeviceRebootParams = {
73
- rebootType?: DeviceRebootType | string | number;
74
- reboot_type?: DeviceRebootType | string | number;
75
- };
76
- type DeviceGetDeviceInfoParams = {
77
- targets?: DeviceInfoTargets;
78
- types?: DeviceInfoTypes;
79
- targetHw?: boolean;
80
- targetFw?: boolean;
81
- targetBt?: boolean;
82
- targetSe1?: boolean;
83
- targetSe2?: boolean;
84
- targetSe3?: boolean;
85
- targetSe4?: boolean;
86
- targetStatus?: boolean;
87
- includeVersion?: boolean;
88
- includeBuildId?: boolean;
89
- includeHash?: boolean;
90
- includeSpecific?: boolean;
91
- };
92
- type DeviceFirmwareUpdateParams = {
93
- targets?: DeviceFirmwareTarget[];
94
- targetId?: DeviceFirmwareTarget['target_id'] | string | number;
95
- target_id?: DeviceFirmwareTarget['target_id'] | string | number;
96
- path?: string;
97
- };
98
- type FactoryDeviceInfoSettingsParams = {
99
- serial_no?: string;
100
- serialNo?: string;
101
- cpu_info?: string;
102
- cpuInfo?: string;
103
- pre_firmware?: string;
104
- preFirmware?: string;
105
- };
106
- declare function fileRead(connectId: string, params: {
107
- path: string;
108
- offset?: number;
109
- totalSize?: number;
110
- chunkLen?: number;
111
- uiPercentage?: number;
112
- }): Response<FileInfo>;
113
- declare function fileWrite(connectId: string, params: {
114
- path: string;
115
- offset?: number;
116
- totalSize?: number;
117
- chunkSize?: number;
118
- chunkLen?: number;
119
- data: ArrayBuffer | Uint8Array | Blob | string;
120
- overwrite?: boolean;
121
- append?: boolean;
122
- uiPercentage?: number;
123
- }): Response<FileInfo>;
124
- declare function fileDelete(connectId: string, params: {
125
- path: string;
126
- }): Response<FileOpSuccess>;
127
- declare function dirList(connectId: string, params: {
128
- path: string;
129
- depth?: number;
130
- }): Response<DirInfo>;
131
- declare function dirMake(connectId: string, params: {
132
- path: string;
133
- }): Response<FileOpSuccess>;
134
- declare function dirRemove(connectId: string, params: {
135
- path: string;
136
- }): Response<FileOpSuccess>;
137
- declare function pathInfo(connectId: string, params: {
138
- path: string;
139
- }): Response<PathInfoResult>;
140
- declare function getProtoVersion(connectId: string, params?: CommonParams): Response<ProtoVersion>;
141
- declare function ping(connectId: string, params?: CommonParams & {
142
- message?: string;
143
- }): Response<Success$1>;
144
- declare function deviceReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
145
- declare function deviceGetDeviceInfo(connectId: string, params?: CommonParams & DeviceGetDeviceInfoParams): Response<ProtocolV2DeviceInfo>;
146
- declare function deviceGetOnboardingStatus(connectId: string, params?: CommonParams): Response<DeviceOnboardingStatus>;
147
- declare function deviceFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DeviceFirmwareUpdateStatus>;
148
- declare function deviceGetFirmwareUpdateStatus(connectId: string, params?: CommonParams): Response<DeviceFirmwareUpdateStatus>;
149
- declare function factoryDeviceInfoSettings(connectId: string, params: FactoryDeviceInfoSettingsParams): Response<Success$1>;
150
- declare function factoryGetDeviceInfo(connectId: string): Response<FactoryDeviceInfo>;
151
- declare function filesystemFixPermission(connectId: string): Response<Success$1>;
152
- declare function filesystemFileRead(connectId: string, params: Parameters<typeof fileRead>[1]): ReturnType<typeof fileRead>;
153
- declare function filesystemFileWrite(connectId: string, params: Parameters<typeof fileWrite>[1]): ReturnType<typeof fileWrite>;
154
- declare function filesystemFileDelete(connectId: string, params: Parameters<typeof fileDelete>[1]): ReturnType<typeof fileDelete>;
155
- declare function filesystemDirList(connectId: string, params: Parameters<typeof dirList>[1]): ReturnType<typeof dirList>;
156
- declare function filesystemDirMake(connectId: string, params: Parameters<typeof dirMake>[1]): ReturnType<typeof dirMake>;
157
- declare function filesystemDirRemove(connectId: string, params: Parameters<typeof dirRemove>[1]): ReturnType<typeof dirRemove>;
158
- declare function filesystemPathInfoQuery(connectId: string, params: Parameters<typeof pathInfo>[1]): ReturnType<typeof pathInfo>;
159
- declare function filesystemFormat(connectId: string): Response<Success$1>;
160
- declare function filesystemDiskControl(connectId: string, params: CommonParams & {
161
- enable: number | string;
162
- timeoutMs?: number | string;
163
- }): Response<Success$1>;
164
-
165
40
  declare const on: <T extends string, P extends (...args: any[]) => any>(type: T, fn: P) => void;
166
41
  declare const off: (type: any, fn: any) => void;
167
42
  declare const removeAllListeners: (type: any) => void;
@@ -224,12 +99,9 @@ type SearchDevice = {
224
99
  commType: OneKeyDeviceCommType;
225
100
  };
226
101
  type Device$1 = KnownDevice;
227
- type OnekeyFeatureExtensions = Partial<Pick<Messages.OnekeyFeatures, 'onekey_board_build_id' | 'onekey_se02_hash' | 'onekey_se03_hash' | 'onekey_se04_hash' | 'onekey_se02_build_id' | 'onekey_se03_build_id' | 'onekey_se04_build_id' | 'onekey_se01_boot_version' | 'onekey_se02_boot_version' | 'onekey_se03_boot_version' | 'onekey_se04_boot_version' | 'onekey_se01_boot_hash' | 'onekey_se02_boot_hash' | 'onekey_se03_boot_hash' | 'onekey_se04_boot_hash' | 'onekey_se01_boot_build_id' | 'onekey_se02_boot_build_id' | 'onekey_se03_boot_build_id' | 'onekey_se04_boot_build_id'>>;
228
- type Features = Messages.Features & OnekeyFeatureExtensions & {
229
- protocol_version?: number | null;
230
- };
102
+ type Features = Messages.Features;
231
103
  type OnekeyFeatures = Messages.OnekeyFeatures;
232
- type IDeviceType = EDeviceType.Unknown | EDeviceType.Classic | EDeviceType.Classic1s | EDeviceType.ClassicPure | EDeviceType.Mini | EDeviceType.Touch | EDeviceType.Pro | EDeviceType.Pro2;
104
+ type IDeviceType = EDeviceType.Unknown | EDeviceType.Classic | EDeviceType.Classic1s | EDeviceType.ClassicPure | EDeviceType.Mini | EDeviceType.Touch | EDeviceType.Pro;
233
105
  type IDeviceModel = 'model_classic' | 'model_mini' | 'model_touch' | 'model_classic1s';
234
106
  declare const DeviceModelToTypes: {
235
107
  [deviceModel in IDeviceModel]: IDeviceType[];
@@ -243,7 +115,6 @@ type ITransportStatus = 'valid' | 'outdated';
243
115
  type IVersionRange = {
244
116
  min: string;
245
117
  max?: string;
246
- unsupported?: boolean;
247
118
  };
248
119
  type DeviceFirmwareRange = {
249
120
  [deviceType in IDeviceType | IDeviceModel]?: IVersionRange;
@@ -349,7 +220,7 @@ type IBLEFirmwareReleaseInfo = {
349
220
  [k in ILocale]: string;
350
221
  };
351
222
  };
352
- type IKnownDevice = Exclude<IDeviceType, 'unknown' | 'pro2'>;
223
+ type IKnownDevice = Exclude<IDeviceType, 'unknown'>;
353
224
  type DeviceTypeMap = {
354
225
  [k in IKnownDevice]: {
355
226
  firmware: IFirmwareReleaseInfo[];
@@ -383,6 +254,8 @@ declare function updateSettings(settings: Partial<ConnectSettings>): Promise<boo
383
254
 
384
255
  declare function testInitializeDeviceDuration(connectId?: string, params?: CommonParams): Response<number>;
385
256
 
257
+ declare function preInitialize(connectId: string, params?: CommonParams): Response<boolean>;
258
+
386
259
  declare function getLogs(): Response<string[]>;
387
260
 
388
261
  declare function checkBridgeStatus(): Response<boolean>;
@@ -437,102 +310,13 @@ type CheckFirmwareTypeAvailableParams = {
437
310
  };
438
311
  declare function checkFirmwareTypeAvailable(params: CheckFirmwareTypeAvailableParams): Response<FirmwareRelease$2 | undefined>;
439
312
 
440
- declare function searchDevices(params?: CommonParams): Response<SearchDevice[]>;
313
+ declare function searchDevices(): Response<SearchDevice[]>;
441
314
 
442
315
  declare function getFeatures(connectId?: string, params?: CommonParams): Response<Features>;
443
316
 
444
- type DeviceInfoProtocol = 'V1' | 'V2' | 'unknown';
445
- type DeviceInfoSource = 'features' | 'onekeyFeatures' | 'deviceGetDeviceInfo';
446
- type DeviceInfoScope = 'basic' | 'versions' | 'verify' | 'full';
447
- type GetDeviceInfoParams = {
448
- scope?: DeviceInfoScope;
449
- refresh?: boolean;
450
- includeRaw?: boolean;
451
- };
452
- type DeviceInfoMode = 'normal' | 'bootloader' | 'notInitialized' | 'unknown';
453
- type DeviceInfoStatus = {
454
- mode: DeviceInfoMode;
455
- initialized: boolean | null;
456
- bootloaderMode: boolean | null;
457
- unlocked: boolean | null;
458
- passphraseProtection: boolean | null;
459
- backupRequired: boolean | null;
460
- language: string | null;
461
- bleEnabled?: boolean | null;
462
- };
463
- type UnifiedDeviceInfoVersions = {
464
- firmware: string | null;
465
- bootloader: string | null;
466
- board: string | null;
467
- ble: string | null;
468
- se01?: string | null;
469
- se02?: string | null;
470
- se03?: string | null;
471
- se04?: string | null;
472
- se01Boot?: string | null;
473
- se02Boot?: string | null;
474
- se03Boot?: string | null;
475
- se04Boot?: string | null;
476
- };
477
- type UnifiedDeviceInfoVerify = {
478
- firmwareBuildId?: string;
479
- firmwareHash?: string;
480
- bootloaderBuildId?: string;
481
- bootloaderHash?: string;
482
- boardBuildId?: string;
483
- boardHash?: string;
484
- bleBuildId?: string;
485
- bleHash?: string;
486
- se01BuildId?: string;
487
- se01Hash?: string;
488
- se02BuildId?: string;
489
- se02Hash?: string;
490
- se03BuildId?: string;
491
- se03Hash?: string;
492
- se04BuildId?: string;
493
- se04Hash?: string;
494
- se01BootBuildId?: string;
495
- se01BootHash?: string;
496
- se02BootBuildId?: string;
497
- se02BootHash?: string;
498
- se03BootBuildId?: string;
499
- se03BootHash?: string;
500
- se04BootBuildId?: string;
501
- se04BootHash?: string;
502
- };
503
- type UnifiedDeviceInfoRaw = {
504
- features?: Features;
505
- onekeyFeatures?: OnekeyFeatures;
506
- protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
507
- };
508
- type UnifiedDeviceInfo = {
509
- protocol: DeviceInfoProtocol;
510
- sources: DeviceInfoSource[];
511
- deviceType: IDeviceType;
512
- firmwareType: EFirmwareType;
513
- deviceId: string;
514
- serialNo: string;
515
- label: string | null;
516
- bleName: string | null;
517
- status: DeviceInfoStatus;
518
- versions: UnifiedDeviceInfoVersions;
519
- verify?: UnifiedDeviceInfoVerify;
520
- raw?: UnifiedDeviceInfoRaw;
521
- };
522
- declare function getDeviceInfo(connectId?: string, params?: CommonParams & GetDeviceInfoParams): Response<UnifiedDeviceInfo>;
523
-
524
317
  declare function getOnekeyFeatures(connectId?: string, params?: CommonParams): Response<OnekeyFeatures>;
525
318
 
526
- type GetPassphraseStatePayload = {
527
- passphrase_state?: string;
528
- session_id?: string;
529
- unlocked_attach_pin?: boolean;
530
- passphrase_protection?: boolean | null;
531
- };
532
- type GetPassphraseStateParams = CommonParams & {
533
- allowCreateAttachPin?: boolean;
534
- };
535
- declare function getPassphraseState(connectId?: string, params?: GetPassphraseStateParams): Response<GetPassphraseStatePayload>;
319
+ declare function getPassphraseState(connectId?: string, params?: CommonParams): Response<string>;
536
320
 
537
321
  type FirmwareRelease$1 = {
538
322
  status: IDeviceFirmwareStatus;
@@ -586,7 +370,6 @@ declare function firmwareUpdateV2(connectId: string | undefined, params: Params<
586
370
  interface FirmwareUpdateV3Params {
587
371
  bleVersion?: number[];
588
372
  bleBinary?: ArrayBuffer;
589
- chunkSize?: number;
590
373
  firmwareVersion?: number[];
591
374
  firmwareBinary?: ArrayBuffer;
592
375
  bootloaderVersion?: number[];
@@ -596,17 +379,11 @@ interface FirmwareUpdateV3Params {
596
379
  firmwareType?: EFirmwareType;
597
380
  platform: IPlatform;
598
381
  }
599
- type FirmwareUpdateV4Params = FirmwareUpdateV3Params;
600
382
  declare function firmwareUpdateV3(connectId: string | undefined, params: Params<FirmwareUpdateV3Params>): Response<{
601
383
  bleVersion: string;
602
384
  firmwareVersion: string;
603
385
  bootloaderVersion: string;
604
386
  }>;
605
- declare function firmwareUpdateV4(connectId: string | undefined, params: Params<FirmwareUpdateV4Params>): Response<{
606
- bleVersion: string;
607
- firmwareVersion: string;
608
- bootloaderVersion: string;
609
- }>;
610
387
 
611
388
  declare function promptWebDeviceAccess(options?: {
612
389
  deviceSerialNumberFromUI?: string;
@@ -2581,6 +2358,7 @@ type CoreApi = {
2581
2358
  }>;
2582
2359
  getLogs: typeof getLogs;
2583
2360
  testInitializeDeviceDuration: typeof testInitializeDeviceDuration;
2361
+ preInitialize: typeof preInitialize;
2584
2362
  checkAllFirmwareRelease: typeof checkAllFirmwareRelease;
2585
2363
  checkBridgeStatus: typeof checkBridgeStatus;
2586
2364
  checkBridgeRelease: typeof checkBridgeRelease;
@@ -2589,7 +2367,6 @@ type CoreApi = {
2589
2367
  searchDevices: typeof searchDevices;
2590
2368
  promptWebDeviceAccess: typeof promptWebDeviceAccess;
2591
2369
  getFeatures: typeof getFeatures;
2592
- getDeviceInfo: typeof getDeviceInfo;
2593
2370
  getOnekeyFeatures: typeof getOnekeyFeatures;
2594
2371
  getPassphraseState: typeof getPassphraseState;
2595
2372
  deviceBackup: typeof deviceBackup;
@@ -2617,34 +2394,7 @@ type CoreApi = {
2617
2394
  firmwareUpdate: typeof firmwareUpdate;
2618
2395
  firmwareUpdateV2: typeof firmwareUpdateV2;
2619
2396
  firmwareUpdateV3: typeof firmwareUpdateV3;
2620
- firmwareUpdateV4: typeof firmwareUpdateV4;
2621
2397
  cipherKeyValue: typeof cipherKeyValue;
2622
- getProtoVersion: typeof getProtoVersion;
2623
- ping: typeof ping;
2624
- deviceReboot: typeof deviceReboot;
2625
- deviceGetDeviceInfo: typeof deviceGetDeviceInfo;
2626
- deviceGetOnboardingStatus: typeof deviceGetOnboardingStatus;
2627
- deviceFirmwareUpdate: typeof deviceFirmwareUpdate;
2628
- deviceGetFirmwareUpdateStatus: typeof deviceGetFirmwareUpdateStatus;
2629
- factoryDeviceInfoSettings: typeof factoryDeviceInfoSettings;
2630
- factoryGetDeviceInfo: typeof factoryGetDeviceInfo;
2631
- filesystemFixPermission: typeof filesystemFixPermission;
2632
- fileRead: typeof fileRead;
2633
- fileWrite: typeof fileWrite;
2634
- fileDelete: typeof fileDelete;
2635
- dirList: typeof dirList;
2636
- dirMake: typeof dirMake;
2637
- dirRemove: typeof dirRemove;
2638
- pathInfo: typeof pathInfo;
2639
- filesystemFileRead: typeof filesystemFileRead;
2640
- filesystemFileWrite: typeof filesystemFileWrite;
2641
- filesystemFileDelete: typeof filesystemFileDelete;
2642
- filesystemDirList: typeof filesystemDirList;
2643
- filesystemDirMake: typeof filesystemDirMake;
2644
- filesystemDirRemove: typeof filesystemDirRemove;
2645
- filesystemPathInfoQuery: typeof filesystemPathInfoQuery;
2646
- filesystemFormat: typeof filesystemFormat;
2647
- filesystemDiskControl: typeof filesystemDiskControl;
2648
2398
  allNetworkGetAddress: typeof allNetworkGetAddress;
2649
2399
  allNetworkGetAddressByLoop: typeof allNetworkGetAddressByLoop;
2650
2400
  evmGetAddress: typeof evmGetAddress;
@@ -2952,10 +2702,6 @@ interface FirmwareProgress {
2952
2702
  device: Device$1;
2953
2703
  progress: number;
2954
2704
  progressType: IFirmwareUpdateProgressType;
2955
- transferredBytes?: number;
2956
- totalBytes?: number;
2957
- rateBytesPerSecond?: number;
2958
- elapsedMs?: number;
2959
2705
  };
2960
2706
  }
2961
2707
  interface FirmwareTip {
@@ -2971,10 +2717,6 @@ interface DeviceProgress {
2971
2717
  type: typeof UI_REQUEST.DEVICE_PROGRESS;
2972
2718
  payload: {
2973
2719
  progress?: number;
2974
- transferredBytes?: number;
2975
- totalBytes?: number;
2976
- rateBytesPerSecond?: number;
2977
- elapsedMs?: number;
2978
2720
  };
2979
2721
  }
2980
2722
  interface PreviousAddressResult {
@@ -3234,13 +2976,13 @@ type PassphrasePromptResponse = {
3234
2976
  cache?: boolean;
3235
2977
  };
3236
2978
  type MessageType = Messages.MessageType;
3237
- type MessageKey = Extract<keyof MessageType, string>;
2979
+ type MessageKey = keyof MessageType;
3238
2980
  type TypedResponseMessage<T extends MessageKey> = {
3239
2981
  type: T;
3240
2982
  message: MessageType[T];
3241
2983
  };
3242
2984
  type TypedCallResponseMap = {
3243
- [K in MessageKey]: TypedResponseMessage<K>;
2985
+ [K in keyof MessageType]: TypedResponseMessage<K>;
3244
2986
  };
3245
2987
  type DefaultMessageResponse = TypedCallResponseMap[keyof MessageType];
3246
2988
  declare class DeviceCommands {
@@ -3293,11 +3035,11 @@ declare class DeviceCommands {
3293
3035
  };
3294
3036
  } | undefined>;
3295
3037
  cancel(): Promise<void>;
3296
- call(type: MessageKey, msg?: DefaultMessageResponse['message'], options?: TransportCallOptions): Promise<DefaultMessageResponse>;
3297
- typedCall<T extends MessageKey, R extends MessageKey[]>(type: T, resType: R, msg?: MessageType[T], options?: TransportCallOptions): Promise<TypedCallResponseMap[R[number]]>;
3298
- typedCall<T extends MessageKey, R extends MessageKey>(type: T, resType: R, msg?: MessageType[T], options?: TransportCallOptions): Promise<TypedResponseMessage<R>>;
3299
- _commonCall(type: MessageKey, msg?: DefaultMessageResponse['message'], options?: TransportCallOptions): Promise<DefaultMessageResponse>;
3300
- _filterCommonTypes(res: DefaultMessageResponse, callType: MessageKey, options?: TransportCallOptions): Promise<DefaultMessageResponse>;
3038
+ call(type: MessageKey, msg?: DefaultMessageResponse['message']): Promise<DefaultMessageResponse>;
3039
+ typedCall<T extends MessageKey, R extends MessageKey[]>(type: T, resType: R, msg?: MessageType[T]): Promise<TypedCallResponseMap[R[number]]>;
3040
+ typedCall<T extends MessageKey, R extends MessageKey>(type: T, resType: R, msg?: MessageType[T]): Promise<TypedResponseMessage<R>>;
3041
+ _commonCall(type: MessageKey, msg?: DefaultMessageResponse['message']): Promise<DefaultMessageResponse>;
3042
+ _filterCommonTypes(res: DefaultMessageResponse, callType: MessageKey): Promise<DefaultMessageResponse>;
3301
3043
  _promptPin(type?: Messages.PinMatrixRequestType): Promise<string>;
3302
3044
  _promptPassphrase(options: PassphraseRequestPayload): Promise<PassphrasePromptResponse>;
3303
3045
  }
@@ -3325,7 +3067,7 @@ declare class DeviceConnector {
3325
3067
  enumerate(): Promise<DeviceDescriptorDiff | undefined>;
3326
3068
  listen(): Promise<void>;
3327
3069
  stop(): void;
3328
- acquire(path: string, session?: string | null, forceCleanRunPromise?: boolean, connectProtocol?: HardwareConnectProtocol): Promise<string | undefined>;
3070
+ acquire(path: string, session?: string | null, forceCleanRunPromise?: boolean): Promise<string | undefined>;
3329
3071
  release(session: string, onclose: boolean): Promise<void>;
3330
3072
  disconnect(session: string | undefined | null): Promise<void>;
3331
3073
  promptDeviceAccess(): Promise<USBDevice | BluetoothDevice | null>;
@@ -3337,10 +3079,10 @@ type InitOptions = {
3337
3079
  deviceId?: string;
3338
3080
  passphraseState?: string;
3339
3081
  deriveCardano?: boolean;
3340
- connectProtocol?: HardwareConnectProtocol;
3341
3082
  };
3342
3083
  type RunOptions = {
3343
3084
  keepSession?: boolean;
3085
+ skipInitialize?: boolean;
3344
3086
  } & InitOptions;
3345
3087
  interface DeviceEvents {
3346
3088
  [DEVICE.PIN]: [Device, Messages.PinMatrixRequestType | undefined, (err: any, pin: string) => void];
@@ -3388,12 +3130,26 @@ declare class Device extends EventEmitter$1 {
3388
3130
  keepSession: boolean;
3389
3131
  passphraseState: string | undefined;
3390
3132
  pendingCallbackPromise?: Deferred<void>;
3133
+ private preInitializedAt?;
3134
+ private preInitializeMeta?;
3135
+ private lastInitializeDurationMs?;
3391
3136
  constructor(descriptor: OneKeyDeviceInfo, sdkInstanceId?: string);
3392
3137
  static fromDescriptor(originalDescriptor: OneKeyDeviceInfo, sdkInstanceId?: string): Device;
3393
3138
  toMessageObject(): Device$1 | null;
3394
- connect(connectProtocol?: HardwareConnectProtocol): Promise<boolean>;
3395
- acquire(connectProtocol?: HardwareConnectProtocol): Promise<void>;
3139
+ connect(): Promise<boolean>;
3140
+ acquire(): Promise<void>;
3396
3141
  release(): Promise<void>;
3142
+ preInitialize(initOptions?: InitOptions): Promise<void>;
3143
+ markPreInitialized(meta?: {
3144
+ passphraseState?: string;
3145
+ }): void;
3146
+ clearPreInitialized(): void;
3147
+ isPreInitializeMetaMatch(payload?: {
3148
+ passphraseState?: string;
3149
+ }): boolean;
3150
+ isPreInitializedValid(ttlMs: number): boolean;
3151
+ setLastInitializeDuration(durationMs: number): void;
3152
+ getLastInitializeDuration(): number | undefined;
3397
3153
  getCommands(): DeviceCommands;
3398
3154
  private generateStateKey;
3399
3155
  getInternalState(_deviceId?: string): string | undefined;
@@ -3401,7 +3157,6 @@ declare class Device extends EventEmitter$1 {
3401
3157
  private setInternalState;
3402
3158
  clearInternalState(_deviceId?: string): void;
3403
3159
  initialize(options?: InitOptions): Promise<void>;
3404
- private _initializeProtocolV2;
3405
3160
  getFeatures(): Promise<void>;
3406
3161
  _updateFeatures(feat: Features, initSession?: boolean): void;
3407
3162
  updateDescriptor(descriptor: OneKeyDeviceInfo, forceUpdate?: boolean): void;
@@ -3529,9 +3284,9 @@ declare const isValidVersionString: (version: string) => boolean;
3529
3284
  declare const isValidVersionArray: (version: number[]) => boolean;
3530
3285
  declare const normalizeVersionArray: (version: number[]) => number[];
3531
3286
  declare const versionSplit: (version: string) => number[];
3532
- declare const versionCompare: (a: string | number[], b: string | number[]) => 1 | 0 | -1;
3287
+ declare const versionCompare: (a: string | number[], b: string | number[]) => 0 | 1 | -1;
3533
3288
 
3534
- declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"PassphraseState"> | TypedResponseMessage<"Address"> | TypedResponseMessage<"DeviceInfo"> | 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<"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<"PaymentRequestMemo"> | TypedResponseMessage<"TextMemo"> | TypedResponseMessage<"RefundMemo"> | TypedResponseMessage<"CoinPurchaseMemo"> | TypedResponseMessage<"TxDetailsAmount"> | TypedResponseMessage<"TxDetailsNetwork"> | TypedResponseMessage<"TxDetailsAddress"> | TypedResponseMessage<"TxDetailsGeneral"> | TypedResponseMessage<"DeviceFirmwareImageInfo"> | TypedResponseMessage<"DeviceInfoTargets"> | TypedResponseMessage<"DeviceInfoTypes"> | TypedResponseMessage<"DeviceHardwareInfo"> | TypedResponseMessage<"DeviceMainMcuInfo"> | TypedResponseMessage<"DeviceBluetoothInfo"> | TypedResponseMessage<"DeviceSEInfo"> | TypedResponseMessage<"DeviceStatus"> | TypedResponseMessage<"DeviceFirmwareTarget"> | TypedResponseMessage<"DeviceFirmwareUpdateStatusEntry"> | 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<"Success"> | 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<"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<"SetBusy"> | TypedResponseMessage<"GetFirmwareHash"> | TypedResponseMessage<"FirmwareHash"> | TypedResponseMessage<"GetNonce"> | TypedResponseMessage<"Nonce"> | TypedResponseMessage<"WriteSEPrivateKey"> | TypedResponseMessage<"UnlockPath"> | TypedResponseMessage<"UnlockedPathRequest"> | TypedResponseMessage<"TxDetailsPage"> | TypedResponseMessage<"GetProtoVersion"> | TypedResponseMessage<"ProtoVersion"> | TypedResponseMessage<"DeviceReboot"> | TypedResponseMessage<"DeviceGetDeviceInfo"> | TypedResponseMessage<"DeviceFirmwareUpdate"> | TypedResponseMessage<"DeviceFirmwareInstallProgress"> | TypedResponseMessage<"DeviceGetFirmwareUpdateStatus"> | TypedResponseMessage<"DeviceFirmwareUpdateStatus"> | TypedResponseMessage<"FactoryDeviceInfoSettings"> | TypedResponseMessage<"FactoryGetDeviceInfo"> | TypedResponseMessage<"FactoryDeviceInfo"> | TypedResponseMessage<"FilesystemFixPermission"> | TypedResponseMessage<"FilesystemPathInfo"> | TypedResponseMessage<"FilesystemPathInfoQuery"> | TypedResponseMessage<"FilesystemFileRead"> | TypedResponseMessage<"FilesystemFileWrite"> | TypedResponseMessage<"FilesystemFileDelete"> | TypedResponseMessage<"FilesystemDir"> | TypedResponseMessage<"FilesystemDirList"> | TypedResponseMessage<"FilesystemDirMake"> | TypedResponseMessage<"FilesystemDirRemove"> | TypedResponseMessage<"FilesystemFormat"> | TypedResponseMessage<"FilesystemDiskControl"> | TypedResponseMessage<"DeviceGetOnboardingStatus"> | TypedResponseMessage<"DeviceOnboardingStatus">;
3289
+ declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"PassphraseState"> | TypedResponseMessage<"Address"> | 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<"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<"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<"Success"> | 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<"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">;
3535
3290
 
3536
3291
  declare function generateSdkInstanceId(): string;
3537
3292
  declare function generateInstanceId(type: string, sdkInstanceId?: string): string;
@@ -3573,7 +3328,6 @@ declare const getDeviceBleName: (features?: Features) => string | null;
3573
3328
  declare const getDeviceUUID: (features: Features) => string;
3574
3329
  declare const getDeviceLabel: (features?: Features) => string | null;
3575
3330
  declare const getMethodVersionRange: (features: Features | undefined, getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined) => IVersionRange | undefined;
3576
- declare const isMethodVersionRangeUnsupported: (versionRange?: IVersionRange) => boolean;
3577
3331
  declare const getFirmwareType: (features: Features | undefined) => EFirmwareType;
3578
3332
 
3579
3333
  declare const getDeviceFirmwareVersion: (features: Features | undefined) => IVersionArray;
@@ -3583,16 +3337,13 @@ declare const getDeviceBoardloaderVersion: (features: Features) => IVersionArray
3583
3337
 
3584
3338
  declare const FIRMWARE_FIELDS: readonly ["firmware", "firmware-v2", "firmware-v8", "firmware-btc-v8"];
3585
3339
  type IFirmwareField = (typeof FIRMWARE_FIELDS)[number];
3586
- type ProtocolV1MessageSchema = 'v1CurrentSchema' | 'v1LegacySchema';
3587
- type ProtobufMessageSchema = ProtocolV1MessageSchema | 'v2Schema';
3340
+ type MessageVersion = 'latest' | 'v1';
3588
3341
  declare class DataManager {
3589
- static deviceMap: DeviceTypeMap & {
3590
- [k: string]: DeviceTypeMap[keyof DeviceTypeMap] | undefined;
3591
- };
3342
+ static deviceMap: DeviceTypeMap;
3592
3343
  static assets: AssetsMap | null;
3593
3344
  static settings: ConnectSettings;
3594
3345
  static messages: {
3595
- [schema in ProtobufMessageSchema]: JSON;
3346
+ [version in MessageVersion]: JSON;
3596
3347
  };
3597
3348
  static lastCheckTimestamp: number;
3598
3349
  static getFirmwareStatus: (features: Features, firmwareType: EFirmwareType) => IDeviceFirmwareStatus;
@@ -3625,7 +3376,7 @@ declare class DataManager {
3625
3376
  static load(settings: ConnectSettings): Promise<void>;
3626
3377
  static updateEnv(newEnv: ConnectSettings['env']): void;
3627
3378
  static checkAndReloadData(): Promise<void>;
3628
- static getProtobufMessages(schema?: ProtobufMessageSchema): JSON;
3379
+ static getProtobufMessages(messageVersion?: MessageVersion): JSON;
3629
3380
  static getSettings(key?: undefined): ConnectSettings;
3630
3381
  static getSettings<T extends keyof ConnectSettings>(key: T): ConnectSettings[T];
3631
3382
  static isBleConnect: (env: ConnectSettings['env']) => boolean;
@@ -3698,4 +3449,4 @@ declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, can
3698
3449
  declare const HardwareSDKLowLevel: ({ init, call, dispose, eventEmitter, addHardwareGlobalEventListener, uiResponse, cancel, updateSettings, switchTransport, }: LowLevelInjectApi) => LowLevelCoreApi;
3699
3450
  declare const HardwareTopLevelSdk: () => CoreApi;
3700
3451
 
3701
- 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, 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, DeviceFeaturesPayload, DeviceFirmwareRange, DeviceFlagsParams, DeviceInfoMode, DeviceInfoProtocol, DeviceInfoScope, DeviceInfoSource, DeviceInfoStatus, DeviceModelToTypes, DeviceProgress, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendSupportFeatures, DeviceSettingsParams, 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, GetDeviceInfoParams, GetPassphraseStateParams, GetPassphraseStatePayload, HardwareSDKLowLevel, HardwareTopLevelSdk, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareField, IFirmwareReleaseInfo, IFirmwareUpdateProgressType, IFirmwareUpdateTipMessage, IFrameBridge, IFrameCallMessage, IFrameCallback, IFrameCallbackMessage, IFrameCancelMessage, IFrameEvent, IFrameEventMessage, IFrameInit, IFrameSwitchTransport, IFrameSwitchTransportMessage, ILocale, 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, OnekeyFeatures, Params, PassphraseRequestPayload, PolkadotAddress, PolkadotGetAddressParams, PolkadotSignTransactionParams, PolkadotSignedTx, PostMessageEvent, PreviousAddressResult, 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, UnifiedDeviceInfo, UnifiedDeviceInfoRaw, UnifiedDeviceInfoVerify, UnifiedDeviceInfoVersions, Unsuccessful, VersionArray, checkNeedUpdateBootForClassicAndMini, checkNeedUpdateBootForTouch, cleanupCallback, cleanupSdkInstance, completeRequestContext, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createRequestContext, createResponseMessage, createSdkTracingContext, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, 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, getLogger, getMethodVersionRange, getOutputScriptType, getSDKVersion, getScriptType, getTimeStamp, httpRequest, init as initCore, isBleConnect, isMethodVersionRangeUnsupported, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, preloadSessionCache, safeThrowError, setLoggerPostMessage, supportInputPinOnSoftware, switchTransport, transportEnv, updateRequestContext, versionCompare, versionSplit, wait, whitelist, whitelistExtension };
3452
+ 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, 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, DeviceFeaturesPayload, DeviceFirmwareRange, DeviceFlagsParams, DeviceModelToTypes, DeviceProgress, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendSupportFeatures, DeviceSettingsParams, 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, HardwareSDKLowLevel, HardwareTopLevelSdk, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareField, IFirmwareReleaseInfo, IFirmwareUpdateProgressType, IFirmwareUpdateTipMessage, IFrameBridge, IFrameCallMessage, IFrameCallback, IFrameCallbackMessage, IFrameCancelMessage, IFrameEvent, IFrameEventMessage, IFrameInit, IFrameSwitchTransport, IFrameSwitchTransportMessage, ILocale, 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, OnekeyFeatures, Params, PassphraseRequestPayload, PolkadotAddress, PolkadotGetAddressParams, PolkadotSignTransactionParams, PolkadotSignedTx, PostMessageEvent, PreviousAddressResult, 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, 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, getLogger, getMethodVersionRange, getOutputScriptType, getSDKVersion, getScriptType, getTimeStamp, httpRequest, init as initCore, isBleConnect, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, preloadSessionCache, safeThrowError, setLoggerPostMessage, supportInputPinOnSoftware, switchTransport, transportEnv, updateRequestContext, versionCompare, versionSplit, wait, whitelist, whitelistExtension };