@onekeyfe/hd-core 1.2.0-alpha.1 → 1.2.0-alpha.100

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 (833) hide show
  1. package/__tests__/AllNetworkGetAddressBase.tracing.test.ts +390 -0
  2. package/__tests__/DeviceCommands.test.ts +563 -0
  3. package/__tests__/DeviceEventRegistration.test.ts +49 -0
  4. package/__tests__/chain-params-onekey-compatibility.test.ts +229 -0
  5. package/__tests__/check-all-firmware-release-protocol-v2.test.ts +830 -0
  6. package/__tests__/check-firmware-release-protocol-v2.test.ts +270 -0
  7. package/__tests__/connectSettings.test.ts +59 -0
  8. package/__tests__/core-dispose.test.ts +34 -0
  9. package/__tests__/core-error-output.test.ts +39 -0
  10. package/__tests__/core-initialization.test.ts +23 -0
  11. package/__tests__/device-connector-protocol.test.ts +81 -0
  12. package/__tests__/device-features-state.test.ts +78 -0
  13. package/__tests__/device-identity.test.ts +52 -0
  14. package/__tests__/device-initialize-timeout.test.ts +56 -0
  15. package/__tests__/device-lifecycle-events.test.ts +351 -0
  16. package/__tests__/device-pool-state.test.ts +166 -0
  17. package/__tests__/device-settings.test.ts +437 -0
  18. package/__tests__/device-state-contract.test.ts +28 -0
  19. package/__tests__/device-state-events.test.ts +286 -0
  20. package/__tests__/device-state-mapper.test.ts +288 -0
  21. package/__tests__/device-state-projector.test.ts +114 -0
  22. package/__tests__/device-state-store.test.ts +109 -0
  23. package/__tests__/device-utils.test.ts +154 -0
  24. package/__tests__/device-wallet-session-store.test.ts +478 -0
  25. package/__tests__/deviceFeaturesUtils.test.ts +39 -0
  26. package/__tests__/devicePoolBootloaderPath.test.ts +64 -0
  27. package/__tests__/deviceSettings.test.ts +113 -0
  28. package/__tests__/deviceUploadNft.test.ts +316 -0
  29. package/__tests__/evmLedgerLegacySafety.test.ts +12 -6
  30. package/__tests__/evmSignTransaction.test.ts +69 -0
  31. package/__tests__/evmSignTypedData.test.ts +80 -0
  32. package/__tests__/filesystemValidation.test.ts +53 -0
  33. package/__tests__/firmware-memory-host.test.ts +126 -0
  34. package/__tests__/firmware-update/check-all-firmware-release.test.ts +175 -0
  35. package/__tests__/firmware-update/device-update-bootloader.test.ts +109 -0
  36. package/__tests__/firmware-update/firmware-artifact-source.test.ts +171 -0
  37. package/__tests__/firmware-update/firmware-host-binding.test.ts +79 -0
  38. package/__tests__/firmware-update/firmware-preparation-error.test.ts +27 -0
  39. package/__tests__/firmware-update/firmware-prepared-host-digest.test.ts +583 -0
  40. package/__tests__/firmware-update/firmware-prepared-resource-archive.test.ts +150 -0
  41. package/__tests__/firmware-update/firmware-update-bootloader-poll.test.ts +375 -0
  42. package/__tests__/firmware-update/firmware-update-capabilities.test.ts +13 -0
  43. package/__tests__/firmware-update/firmware-update-plan-bootloader-identity.test.ts +474 -0
  44. package/__tests__/firmware-update/firmware-update-plan.test.ts +815 -0
  45. package/__tests__/firmware-update/firmware-update-prepared-plan.test.ts +283 -0
  46. package/__tests__/firmware-update/firmware-update-prepared-resource-executors.test.ts +326 -0
  47. package/__tests__/firmware-update/firmware-update-v2-download-before-boot.test.ts +457 -0
  48. package/__tests__/firmware-update/firmware-update-v3-reconnect.test.ts +121 -0
  49. package/__tests__/firmware-update/firmware-update-v4-parameters.test.ts +85 -0
  50. package/__tests__/firmware-update/firmware-upload-source.test.ts +70 -0
  51. package/__tests__/get-device-state.test.ts +578 -0
  52. package/__tests__/homescreen.test.ts +81 -0
  53. package/__tests__/kaspa-public-types.type-test.ts +16 -0
  54. package/__tests__/kaspa-use-tweak-pro2.test.ts +20 -0
  55. package/__tests__/kaspaSignTransaction.test.ts +578 -0
  56. package/__tests__/known-device-public-types.type-test.ts +3 -0
  57. package/__tests__/logBlockEvent.test.ts +128 -1
  58. package/__tests__/method-protocol-support.test.ts +144 -0
  59. package/__tests__/networkUtils.test.ts +406 -0
  60. package/__tests__/open-wallet-session-error-response.test.ts +43 -0
  61. package/__tests__/open-wallet-session.test.ts +1899 -0
  62. package/__tests__/preInitialize.test.ts +33 -0
  63. package/__tests__/pro2Nft.test.ts +108 -0
  64. package/__tests__/pro2Wallpaper.test.ts +39 -0
  65. package/__tests__/protocol-binding.test.ts +89 -0
  66. package/__tests__/protocol-v2-bootloader-mode.test.ts +37 -0
  67. package/__tests__/protocol-v2-firmware-targets.test.ts +124 -0
  68. package/__tests__/protocol-v2-ping.test.ts +28 -0
  69. package/__tests__/protocol-v2-resources.test.ts +270 -0
  70. package/__tests__/protocol-v2-ui-lifecycle.test.ts +91 -0
  71. package/__tests__/protocol-v2-unlock-policy.test.ts +308 -0
  72. package/__tests__/protocol-v2.test.ts +8346 -1866
  73. package/__tests__/protocolV2FileWrite.test.ts +285 -0
  74. package/__tests__/protocolV2UiInteraction.test.ts +329 -0
  75. package/__tests__/public-device-state-api.test.ts +275 -0
  76. package/__tests__/public-pro2-api-boundary.test.ts +107 -0
  77. package/__tests__/refresh-device-state.test.ts +101 -0
  78. package/__tests__/request-context-logging.test.ts +16 -0
  79. package/__tests__/search-devices.test.ts +145 -0
  80. package/__tests__/tron-sign-message-init.test.ts +74 -0
  81. package/__tests__/uiProgressThrottle.test.ts +74 -0
  82. package/__tests__/uiPromiseRegistry.test.ts +115 -0
  83. package/dist/api/BaseMethod.d.ts +16 -1
  84. package/dist/api/BaseMethod.d.ts.map +1 -1
  85. package/dist/api/CheckAllFirmwareRelease.d.ts +25 -1
  86. package/dist/api/CheckAllFirmwareRelease.d.ts.map +1 -1
  87. package/dist/api/CheckBLEFirmwareRelease.d.ts +3 -2
  88. package/dist/api/CheckBLEFirmwareRelease.d.ts.map +1 -1
  89. package/dist/api/CheckBootloaderRelease.d.ts +2 -1
  90. package/dist/api/CheckBootloaderRelease.d.ts.map +1 -1
  91. package/dist/api/CheckFirmwareRelease.d.ts +3 -2
  92. package/dist/api/CheckFirmwareRelease.d.ts.map +1 -1
  93. package/dist/api/CipherKeyValue.d.ts +1 -0
  94. package/dist/api/CipherKeyValue.d.ts.map +1 -1
  95. package/dist/api/ClearSessionCache.d.ts +9 -0
  96. package/dist/api/ClearSessionCache.d.ts.map +1 -0
  97. package/dist/api/DetectDeviceConnectProtocol.d.ts +7 -0
  98. package/dist/api/DetectDeviceConnectProtocol.d.ts.map +1 -0
  99. package/dist/api/DirList.d.ts +1 -0
  100. package/dist/api/DirList.d.ts.map +1 -1
  101. package/dist/api/DirMake.d.ts +1 -0
  102. package/dist/api/DirMake.d.ts.map +1 -1
  103. package/dist/api/DirRemove.d.ts +1 -0
  104. package/dist/api/DirRemove.d.ts.map +1 -1
  105. package/dist/api/FileDelete.d.ts +1 -0
  106. package/dist/api/FileDelete.d.ts.map +1 -1
  107. package/dist/api/FileRead.d.ts +1 -0
  108. package/dist/api/FileRead.d.ts.map +1 -1
  109. package/dist/api/FileWrite.d.ts +2 -0
  110. package/dist/api/FileWrite.d.ts.map +1 -1
  111. package/dist/api/FirmwareUpdate.d.ts.map +1 -1
  112. package/dist/api/FirmwareUpdateV2.d.ts +13 -2
  113. package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
  114. package/dist/api/FirmwareUpdateV3.d.ts +7 -3
  115. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  116. package/dist/api/FirmwareUpdateV4.d.ts +63 -6
  117. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  118. package/dist/api/GetDeviceState.d.ts +8 -0
  119. package/dist/api/GetDeviceState.d.ts.map +1 -0
  120. package/dist/api/GetFeatures.d.ts +1 -1
  121. package/dist/api/GetFeatures.d.ts.map +1 -1
  122. package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
  123. package/dist/api/GetPassphraseState.d.ts +2 -6
  124. package/dist/api/GetPassphraseState.d.ts.map +1 -1
  125. package/dist/api/OpenWalletSession.d.ts +8 -0
  126. package/dist/api/OpenWalletSession.d.ts.map +1 -0
  127. package/dist/api/PathInfo.d.ts +1 -0
  128. package/dist/api/PathInfo.d.ts.map +1 -1
  129. package/dist/api/PromptWebDeviceAccess.d.ts.map +1 -1
  130. package/dist/api/SearchDevices.d.ts +3 -0
  131. package/dist/api/SearchDevices.d.ts.map +1 -1
  132. package/dist/api/UploadPortfolio.d.ts +17 -0
  133. package/dist/api/UploadPortfolio.d.ts.map +1 -0
  134. package/dist/api/alephium/AlephiumGetAddress.d.ts.map +1 -1
  135. package/dist/api/alephium/AlephiumSignMessage.d.ts.map +1 -1
  136. package/dist/api/alephium/AlephiumSignTransaction.d.ts.map +1 -1
  137. package/dist/api/algo/AlgoGetAddress.d.ts +1 -0
  138. package/dist/api/algo/AlgoGetAddress.d.ts.map +1 -1
  139. package/dist/api/algo/AlgoSignTransaction.d.ts +1 -0
  140. package/dist/api/algo/AlgoSignTransaction.d.ts.map +1 -1
  141. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts +1 -0
  142. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
  143. package/dist/api/aptos/AptosGetAddress.d.ts +1 -0
  144. package/dist/api/aptos/AptosGetAddress.d.ts.map +1 -1
  145. package/dist/api/aptos/AptosGetPublicKey.d.ts +1 -0
  146. package/dist/api/aptos/AptosGetPublicKey.d.ts.map +1 -1
  147. package/dist/api/aptos/AptosSignInMessage.d.ts +1 -0
  148. package/dist/api/aptos/AptosSignInMessage.d.ts.map +1 -1
  149. package/dist/api/aptos/AptosSignMessage.d.ts +1 -0
  150. package/dist/api/aptos/AptosSignMessage.d.ts.map +1 -1
  151. package/dist/api/aptos/AptosSignTransaction.d.ts +1 -0
  152. package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -1
  153. package/dist/api/benfen/BenfenGetAddress.d.ts.map +1 -1
  154. package/dist/api/benfen/BenfenGetPublicKey.d.ts.map +1 -1
  155. package/dist/api/benfen/BenfenSignMessage.d.ts.map +1 -1
  156. package/dist/api/benfen/BenfenSignTransaction.d.ts.map +1 -1
  157. package/dist/api/btc/BTCGetAddress.d.ts +1 -0
  158. package/dist/api/btc/BTCGetAddress.d.ts.map +1 -1
  159. package/dist/api/btc/BTCGetPublicKey.d.ts +1 -0
  160. package/dist/api/btc/BTCGetPublicKey.d.ts.map +1 -1
  161. package/dist/api/btc/BTCSignMessage.d.ts +1 -0
  162. package/dist/api/btc/BTCSignMessage.d.ts.map +1 -1
  163. package/dist/api/btc/BTCSignPsbt.d.ts +1 -0
  164. package/dist/api/btc/BTCSignPsbt.d.ts.map +1 -1
  165. package/dist/api/btc/BTCSignTransaction.d.ts +1 -0
  166. package/dist/api/btc/BTCSignTransaction.d.ts.map +1 -1
  167. package/dist/api/btc/BTCVerifyMessage.d.ts +1 -0
  168. package/dist/api/btc/BTCVerifyMessage.d.ts.map +1 -1
  169. package/dist/api/btc/helpers/versionLimit.d.ts +2 -0
  170. package/dist/api/btc/helpers/versionLimit.d.ts.map +1 -1
  171. package/dist/api/cardano/CardanoGetAddress.d.ts +1 -0
  172. package/dist/api/cardano/CardanoGetAddress.d.ts.map +1 -1
  173. package/dist/api/cardano/CardanoGetPublicKey.d.ts +1 -0
  174. package/dist/api/cardano/CardanoGetPublicKey.d.ts.map +1 -1
  175. package/dist/api/cardano/CardanoSignMessage.d.ts +1 -0
  176. package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -1
  177. package/dist/api/cardano/CardanoSignTransaction.d.ts +1 -0
  178. package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -1
  179. package/dist/api/conflux/ConfluxGetAddress.d.ts +2 -0
  180. package/dist/api/conflux/ConfluxGetAddress.d.ts.map +1 -1
  181. package/dist/api/conflux/ConfluxSignMessage.d.ts +2 -0
  182. package/dist/api/conflux/ConfluxSignMessage.d.ts.map +1 -1
  183. package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts +2 -0
  184. package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts.map +1 -1
  185. package/dist/api/conflux/ConfluxSignTransaction.d.ts +2 -0
  186. package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -1
  187. package/dist/api/cosmos/CosmosGetAddress.d.ts +1 -0
  188. package/dist/api/cosmos/CosmosGetAddress.d.ts.map +1 -1
  189. package/dist/api/cosmos/CosmosGetPublicKey.d.ts +1 -0
  190. package/dist/api/cosmos/CosmosGetPublicKey.d.ts.map +1 -1
  191. package/dist/api/cosmos/CosmosSignTransaction.d.ts +1 -0
  192. package/dist/api/cosmos/CosmosSignTransaction.d.ts.map +1 -1
  193. package/dist/api/device/DeviceCancel.d.ts +1 -0
  194. package/dist/api/device/DeviceCancel.d.ts.map +1 -1
  195. package/dist/api/device/DeviceChangePin.d.ts +1 -0
  196. package/dist/api/device/DeviceChangePin.d.ts.map +1 -1
  197. package/dist/api/device/DeviceFullyUploadResource.d.ts +1 -2
  198. package/dist/api/device/DeviceFullyUploadResource.d.ts.map +1 -1
  199. package/dist/api/device/DeviceLock.d.ts +1 -0
  200. package/dist/api/device/DeviceLock.d.ts.map +1 -1
  201. package/dist/api/device/DeviceRebootToBoardloader.d.ts +1 -0
  202. package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -1
  203. package/dist/api/device/DeviceRebootToBootloader.d.ts +1 -0
  204. package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -1
  205. package/dist/api/device/DeviceSettings.d.ts +1 -0
  206. package/dist/api/device/DeviceSettings.d.ts.map +1 -1
  207. package/dist/api/device/DeviceSupportFeatures.d.ts +1 -0
  208. package/dist/api/device/DeviceSupportFeatures.d.ts.map +1 -1
  209. package/dist/api/device/DeviceUnlock.d.ts +3 -2
  210. package/dist/api/device/DeviceUnlock.d.ts.map +1 -1
  211. package/dist/api/device/DeviceUpdateBootloader.d.ts +5 -1
  212. package/dist/api/device/DeviceUpdateBootloader.d.ts.map +1 -1
  213. package/dist/api/device/DeviceWipe.d.ts +1 -0
  214. package/dist/api/device/DeviceWipe.d.ts.map +1 -1
  215. package/dist/api/device/PreInitialize.d.ts +1 -0
  216. package/dist/api/device/PreInitialize.d.ts.map +1 -1
  217. package/dist/api/dynex/DnxGetAddress.d.ts.map +1 -1
  218. package/dist/api/dynex/DnxSignTransaction.d.ts.map +1 -1
  219. package/dist/api/evm/EVMGetAddress.d.ts +1 -0
  220. package/dist/api/evm/EVMGetAddress.d.ts.map +1 -1
  221. package/dist/api/evm/EVMGetPublicKey.d.ts +1 -0
  222. package/dist/api/evm/EVMGetPublicKey.d.ts.map +1 -1
  223. package/dist/api/evm/EVMSignMessage.d.ts +1 -0
  224. package/dist/api/evm/EVMSignMessage.d.ts.map +1 -1
  225. package/dist/api/evm/EVMSignMessageEIP712.d.ts.map +1 -1
  226. package/dist/api/evm/EVMSignTransaction.d.ts +1 -0
  227. package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -1
  228. package/dist/api/evm/EVMSignTypedData.d.ts +1 -0
  229. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  230. package/dist/api/evm/EVMVerifyMessage.d.ts +1 -0
  231. package/dist/api/evm/EVMVerifyMessage.d.ts.map +1 -1
  232. package/dist/api/evm/protocol.d.ts +3 -0
  233. package/dist/api/evm/protocol.d.ts.map +1 -0
  234. package/dist/api/filecoin/FilecoinGetAddress.d.ts +1 -0
  235. package/dist/api/filecoin/FilecoinGetAddress.d.ts.map +1 -1
  236. package/dist/api/filecoin/FilecoinSignTransaction.d.ts +1 -0
  237. package/dist/api/filecoin/FilecoinSignTransaction.d.ts.map +1 -1
  238. package/dist/api/firmware/FirmwareArtifactSource.d.ts +29 -0
  239. package/dist/api/firmware/FirmwareArtifactSource.d.ts.map +1 -0
  240. package/dist/api/firmware/FirmwareHostBinding.d.ts +6 -0
  241. package/dist/api/firmware/FirmwareHostBinding.d.ts.map +1 -0
  242. package/dist/api/firmware/FirmwareMemoryHost.d.ts +22 -0
  243. package/dist/api/firmware/FirmwareMemoryHost.d.ts.map +1 -0
  244. package/dist/api/firmware/FirmwarePreparationError.d.ts +3 -0
  245. package/dist/api/firmware/FirmwarePreparationError.d.ts.map +1 -0
  246. package/dist/api/firmware/FirmwarePreparedResourceArchive.d.ts +11 -0
  247. package/dist/api/firmware/FirmwarePreparedResourceArchive.d.ts.map +1 -0
  248. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +12 -2
  249. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
  250. package/dist/api/firmware/FirmwareUpdateCapabilities.d.ts +3 -0
  251. package/dist/api/firmware/FirmwareUpdateCapabilities.d.ts.map +1 -0
  252. package/dist/api/firmware/FirmwareUpdatePlan.d.ts +72 -0
  253. package/dist/api/firmware/FirmwareUpdatePlan.d.ts.map +1 -0
  254. package/dist/api/firmware/FirmwareUpdatePreparedPlan.d.ts +38 -0
  255. package/dist/api/firmware/FirmwareUpdatePreparedPlan.d.ts.map +1 -0
  256. package/dist/api/firmware/getBinary.d.ts +17 -3
  257. package/dist/api/firmware/getBinary.d.ts.map +1 -1
  258. package/dist/api/firmware/protocolV2Release.d.ts +33 -0
  259. package/dist/api/firmware/protocolV2Release.d.ts.map +1 -0
  260. package/dist/api/firmware/updateBootloader.d.ts +2 -0
  261. package/dist/api/firmware/updateBootloader.d.ts.map +1 -1
  262. package/dist/api/firmware/uploadFirmware.d.ts +9 -1
  263. package/dist/api/firmware/uploadFirmware.d.ts.map +1 -1
  264. package/dist/api/helpers/filesystemValidation.d.ts +3 -0
  265. package/dist/api/helpers/filesystemValidation.d.ts.map +1 -1
  266. package/dist/api/helpers/paramsValidator.d.ts +1 -0
  267. package/dist/api/helpers/paramsValidator.d.ts.map +1 -1
  268. package/dist/api/helpers/protocolV2FileWrite.d.ts +43 -0
  269. package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -0
  270. package/dist/api/index.d.ts +8 -29
  271. package/dist/api/index.d.ts.map +1 -1
  272. package/dist/api/kaspa/KaspaGetAddress.d.ts +4 -0
  273. package/dist/api/kaspa/KaspaGetAddress.d.ts.map +1 -1
  274. package/dist/api/kaspa/KaspaSignTransaction.d.ts +9 -1
  275. package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -1
  276. package/dist/api/kaspa/helpers/TransferSerialize.d.ts.map +1 -1
  277. package/dist/api/lightning/LnurlAuth.d.ts +0 -4
  278. package/dist/api/lightning/LnurlAuth.d.ts.map +1 -1
  279. package/dist/api/near/NearGetAddress.d.ts +1 -0
  280. package/dist/api/near/NearGetAddress.d.ts.map +1 -1
  281. package/dist/api/near/NearSignTransaction.d.ts +1 -0
  282. package/dist/api/near/NearSignTransaction.d.ts.map +1 -1
  283. package/dist/api/nem/NEMGetAddress.d.ts +1 -0
  284. package/dist/api/nem/NEMGetAddress.d.ts.map +1 -1
  285. package/dist/api/nem/NEMSignTransaction.d.ts +1 -0
  286. package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -1
  287. package/dist/api/neo/NeoGetAddress.d.ts.map +1 -1
  288. package/dist/api/neo/NeoSignTransaction.d.ts.map +1 -1
  289. package/dist/api/nervos/NervosGetAddress.d.ts.map +1 -1
  290. package/dist/api/nervos/NervosSignTransaction.d.ts.map +1 -1
  291. package/dist/api/nexa/NexaGetAddress.d.ts.map +1 -1
  292. package/dist/api/nexa/NexaSignTransaction.d.ts +1 -0
  293. package/dist/api/nexa/NexaSignTransaction.d.ts.map +1 -1
  294. package/dist/api/nostr/NostrDecryptMessage.d.ts +1 -0
  295. package/dist/api/nostr/NostrDecryptMessage.d.ts.map +1 -1
  296. package/dist/api/nostr/NostrEncryptMessage.d.ts +1 -0
  297. package/dist/api/nostr/NostrEncryptMessage.d.ts.map +1 -1
  298. package/dist/api/nostr/NostrGetPublicKey.d.ts +1 -0
  299. package/dist/api/nostr/NostrGetPublicKey.d.ts.map +1 -1
  300. package/dist/api/nostr/NostrSignEvent.d.ts +1 -0
  301. package/dist/api/nostr/NostrSignEvent.d.ts.map +1 -1
  302. package/dist/api/nostr/NostrSignSchnorr.d.ts +1 -0
  303. package/dist/api/nostr/NostrSignSchnorr.d.ts.map +1 -1
  304. package/dist/api/polkadot/PolkadotGetAddress.d.ts +2 -1
  305. package/dist/api/polkadot/PolkadotGetAddress.d.ts.map +1 -1
  306. package/dist/api/polkadot/PolkadotSignTransaction.d.ts +1 -0
  307. package/dist/api/polkadot/PolkadotSignTransaction.d.ts.map +1 -1
  308. package/dist/api/polkadot/networks.d.ts +1 -1
  309. package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts +7 -0
  310. package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts.map +1 -0
  311. package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts +8 -0
  312. package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts.map +1 -0
  313. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts +2 -1
  314. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts.map +1 -1
  315. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts +4 -2
  316. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +1 -1
  317. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +1 -0
  318. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +1 -1
  319. package/dist/api/protocol-v2/DeviceInfoGet.d.ts +29 -0
  320. package/dist/api/protocol-v2/DeviceInfoGet.d.ts.map +1 -0
  321. package/dist/api/protocol-v2/DeviceReboot.d.ts +1 -0
  322. package/dist/api/protocol-v2/DeviceReboot.d.ts.map +1 -1
  323. package/dist/api/protocol-v2/DeviceStatusGet.d.ts +7 -0
  324. package/dist/api/protocol-v2/DeviceStatusGet.d.ts.map +1 -0
  325. package/dist/api/protocol-v2/DeviceUploadNft.d.ts +31 -0
  326. package/dist/api/protocol-v2/DeviceUploadNft.d.ts.map +1 -0
  327. package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts +27 -0
  328. package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts.map +1 -0
  329. package/dist/api/protocol-v2/FilesystemFormat.d.ts +1 -0
  330. package/dist/api/protocol-v2/FilesystemFormat.d.ts.map +1 -1
  331. package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts +7 -0
  332. package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts.map +1 -0
  333. package/dist/api/protocol-v2/Ping.d.ts +3 -0
  334. package/dist/api/protocol-v2/Ping.d.ts.map +1 -1
  335. package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts +7 -0
  336. package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts.map +1 -0
  337. package/dist/api/protocol-v2/helpers.d.ts +27 -18
  338. package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
  339. package/dist/api/scdo/ScdoGetAddress.d.ts.map +1 -1
  340. package/dist/api/scdo/ScdoSignMessage.d.ts.map +1 -1
  341. package/dist/api/scdo/ScdoSignTransaction.d.ts.map +1 -1
  342. package/dist/api/solana/SolGetAddress.d.ts +1 -0
  343. package/dist/api/solana/SolGetAddress.d.ts.map +1 -1
  344. package/dist/api/solana/SolSignMessage.d.ts +2 -1
  345. package/dist/api/solana/SolSignMessage.d.ts.map +1 -1
  346. package/dist/api/solana/SolSignOffchainMessage.d.ts +2 -1
  347. package/dist/api/solana/SolSignOffchainMessage.d.ts.map +1 -1
  348. package/dist/api/solana/SolSignTransaction.d.ts +3 -2
  349. package/dist/api/solana/SolSignTransaction.d.ts.map +1 -1
  350. package/dist/api/starcoin/StarcoinGetAddress.d.ts +1 -0
  351. package/dist/api/starcoin/StarcoinGetAddress.d.ts.map +1 -1
  352. package/dist/api/starcoin/StarcoinGetPublicKey.d.ts +1 -0
  353. package/dist/api/starcoin/StarcoinGetPublicKey.d.ts.map +1 -1
  354. package/dist/api/starcoin/StarcoinSignMessage.d.ts +1 -0
  355. package/dist/api/starcoin/StarcoinSignMessage.d.ts.map +1 -1
  356. package/dist/api/starcoin/StarcoinSignTransaction.d.ts +1 -0
  357. package/dist/api/starcoin/StarcoinSignTransaction.d.ts.map +1 -1
  358. package/dist/api/starcoin/StarcoinVerifyMessage.d.ts +1 -0
  359. package/dist/api/starcoin/StarcoinVerifyMessage.d.ts.map +1 -1
  360. package/dist/api/stellar/StellarGetAddress.d.ts +1 -2
  361. package/dist/api/stellar/StellarGetAddress.d.ts.map +1 -1
  362. package/dist/api/stellar/StellarSignTransaction.d.ts +2 -3
  363. package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -1
  364. package/dist/api/sui/SuiGetAddress.d.ts +2 -1
  365. package/dist/api/sui/SuiGetAddress.d.ts.map +1 -1
  366. package/dist/api/sui/SuiGetPublicKey.d.ts +2 -1
  367. package/dist/api/sui/SuiGetPublicKey.d.ts.map +1 -1
  368. package/dist/api/sui/SuiSignMessage.d.ts +2 -1
  369. package/dist/api/sui/SuiSignMessage.d.ts.map +1 -1
  370. package/dist/api/sui/SuiSignTransaction.d.ts +2 -1
  371. package/dist/api/sui/SuiSignTransaction.d.ts.map +1 -1
  372. package/dist/api/ton/TonGetAddress.d.ts +2 -1
  373. package/dist/api/ton/TonGetAddress.d.ts.map +1 -1
  374. package/dist/api/ton/TonSignData.d.ts +2 -5
  375. package/dist/api/ton/TonSignData.d.ts.map +1 -1
  376. package/dist/api/ton/TonSignMessage.d.ts +2 -1
  377. package/dist/api/ton/TonSignMessage.d.ts.map +1 -1
  378. package/dist/api/ton/TonSignProof.d.ts +2 -1
  379. package/dist/api/ton/TonSignProof.d.ts.map +1 -1
  380. package/dist/api/tron/TronGetAddress.d.ts +1 -0
  381. package/dist/api/tron/TronGetAddress.d.ts.map +1 -1
  382. package/dist/api/tron/TronSignMessage.d.ts +6 -2
  383. package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
  384. package/dist/api/tron/TronSignTransaction.d.ts +2 -2
  385. package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
  386. package/dist/api/utils.d.ts +4 -1
  387. package/dist/api/utils.d.ts.map +1 -1
  388. package/dist/api/xrp/XrpGetAddress.d.ts +1 -0
  389. package/dist/api/xrp/XrpGetAddress.d.ts.map +1 -1
  390. package/dist/api/xrp/XrpSignTransaction.d.ts +1 -0
  391. package/dist/api/xrp/XrpSignTransaction.d.ts.map +1 -1
  392. package/dist/constants/index.d.ts +1 -1
  393. package/dist/constants/index.d.ts.map +1 -1
  394. package/dist/core/RequestQueue.d.ts.map +1 -1
  395. package/dist/core/deviceEventRegistration.d.ts +13 -0
  396. package/dist/core/deviceEventRegistration.d.ts.map +1 -0
  397. package/dist/core/index.d.ts +3 -1
  398. package/dist/core/index.d.ts.map +1 -1
  399. package/dist/core/uiPromiseRegistry.d.ts +6 -0
  400. package/dist/core/uiPromiseRegistry.d.ts.map +1 -0
  401. package/dist/data-manager/DataManager.d.ts +12 -4
  402. package/dist/data-manager/DataManager.d.ts.map +1 -1
  403. package/dist/data-manager/TransportManager.d.ts.map +1 -1
  404. package/dist/data-manager/connectSettings.d.ts.map +1 -1
  405. package/dist/device/Device.d.ts +75 -17
  406. package/dist/device/Device.d.ts.map +1 -1
  407. package/dist/device/DeviceCommands.d.ts +8 -6
  408. package/dist/device/DeviceCommands.d.ts.map +1 -1
  409. package/dist/device/DeviceConnector.d.ts +4 -3
  410. package/dist/device/DeviceConnector.d.ts.map +1 -1
  411. package/dist/device/DeviceFeaturesState.d.ts +3 -0
  412. package/dist/device/DeviceFeaturesState.d.ts.map +1 -0
  413. package/dist/device/DevicePool.d.ts +6 -2
  414. package/dist/device/DevicePool.d.ts.map +1 -1
  415. package/dist/device/DeviceStateMapper.d.ts +13 -0
  416. package/dist/device/DeviceStateMapper.d.ts.map +1 -0
  417. package/dist/device/DeviceStateProjector.d.ts +7 -0
  418. package/dist/device/DeviceStateProjector.d.ts.map +1 -0
  419. package/dist/device/DeviceStateStore.d.ts +21 -0
  420. package/dist/device/DeviceStateStore.d.ts.map +1 -0
  421. package/dist/device/DeviceWalletSessionStore.d.ts +27 -0
  422. package/dist/device/DeviceWalletSessionStore.d.ts.map +1 -0
  423. package/dist/device/cloneDeviceState.d.ts +2 -0
  424. package/dist/device/cloneDeviceState.d.ts.map +1 -0
  425. package/dist/device/deviceIdentity.d.ts +5 -0
  426. package/dist/device/deviceIdentity.d.ts.map +1 -0
  427. package/dist/deviceProfile/buildDeviceFeatures.d.ts +9 -3
  428. package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -1
  429. package/dist/deviceProfile/index.d.ts +0 -1
  430. package/dist/deviceProfile/index.d.ts.map +1 -1
  431. package/dist/deviceProfile/protocolV2DeviceIdentity.d.ts +7 -0
  432. package/dist/deviceProfile/protocolV2DeviceIdentity.d.ts.map +1 -0
  433. package/dist/events/device.d.ts +16 -2
  434. package/dist/events/device.d.ts.map +1 -1
  435. package/dist/events/logBlockEvent.d.ts +2 -0
  436. package/dist/events/logBlockEvent.d.ts.map +1 -1
  437. package/dist/events/ui-promise.d.ts +4 -2
  438. package/dist/events/ui-promise.d.ts.map +1 -1
  439. package/dist/events/ui-request.d.ts +50 -4
  440. package/dist/events/ui-request.d.ts.map +1 -1
  441. package/dist/events/ui-response.d.ts +10 -2
  442. package/dist/events/ui-response.d.ts.map +1 -1
  443. package/dist/index.d.ts +1792 -750
  444. package/dist/index.d.ts.map +1 -1
  445. package/dist/index.js +12615 -4679
  446. package/dist/inject.d.ts +6 -1
  447. package/dist/inject.d.ts.map +1 -1
  448. package/dist/lowLevelInject.d.ts.map +1 -1
  449. package/dist/protocols/protocol-v2/deviceSession.d.ts +7 -0
  450. package/dist/protocols/protocol-v2/deviceSession.d.ts.map +1 -0
  451. package/dist/protocols/protocol-v2/features.d.ts +30 -28
  452. package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
  453. package/dist/protocols/protocol-v2/firmware.d.ts +11 -9
  454. package/dist/protocols/protocol-v2/firmware.d.ts.map +1 -1
  455. package/dist/protocols/protocol-v2/index.d.ts +3 -2
  456. package/dist/protocols/protocol-v2/index.d.ts.map +1 -1
  457. package/dist/protocols/protocol-v2/resources.d.ts +12 -0
  458. package/dist/protocols/protocol-v2/resources.d.ts.map +1 -0
  459. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts +17 -0
  460. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts.map +1 -0
  461. package/dist/protocols/protocol-v2/uiInteraction.d.ts +42 -0
  462. package/dist/protocols/protocol-v2/uiInteraction.d.ts.map +1 -0
  463. package/dist/protocols/protocol-v2/unlockPolicy.d.ts +2 -0
  464. package/dist/protocols/protocol-v2/unlockPolicy.d.ts.map +1 -0
  465. package/dist/protocols/protocol-v2/unlockPolicyRunner.d.ts +22 -0
  466. package/dist/protocols/protocol-v2/unlockPolicyRunner.d.ts.map +1 -0
  467. package/dist/protocols/protocol-v2/walletSession.d.ts +27 -0
  468. package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -0
  469. package/dist/topLevelInject.d.ts.map +1 -1
  470. package/dist/types/api/checkAllFirmwareRelease.d.ts +48 -9
  471. package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -1
  472. package/dist/types/api/checkBLEFirmwareRelease.d.ts +2 -13
  473. package/dist/types/api/checkBLEFirmwareRelease.d.ts.map +1 -1
  474. package/dist/types/api/checkBootloaderRelease.d.ts +2 -6
  475. package/dist/types/api/checkBootloaderRelease.d.ts.map +1 -1
  476. package/dist/types/api/checkFirmwareRelease.d.ts +2 -13
  477. package/dist/types/api/checkFirmwareRelease.d.ts.map +1 -1
  478. package/dist/types/api/checkFirmwareTypeAvailable.d.ts +2 -2
  479. package/dist/types/api/checkFirmwareTypeAvailable.d.ts.map +1 -1
  480. package/dist/types/api/detectDeviceConnectProtocol.d.ts +4 -0
  481. package/dist/types/api/detectDeviceConnectProtocol.d.ts.map +1 -0
  482. package/dist/types/api/deviceSettings.d.ts +11 -2
  483. package/dist/types/api/deviceSettings.d.ts.map +1 -1
  484. package/dist/types/api/deviceUnlock.d.ts +6 -2
  485. package/dist/types/api/deviceUnlock.d.ts.map +1 -1
  486. package/dist/types/api/deviceUpdateBootloader.d.ts +6 -0
  487. package/dist/types/api/deviceUpdateBootloader.d.ts.map +1 -1
  488. package/dist/types/api/export.d.ts +8 -3
  489. package/dist/types/api/export.d.ts.map +1 -1
  490. package/dist/types/api/firmwareUpdate.d.ts +68 -6
  491. package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
  492. package/dist/types/api/firmwareUpdateCapabilities.d.ts +9 -0
  493. package/dist/types/api/firmwareUpdateCapabilities.d.ts.map +1 -0
  494. package/dist/types/api/firmwareUpdatePlan.d.ts +28 -0
  495. package/dist/types/api/firmwareUpdatePlan.d.ts.map +1 -0
  496. package/dist/types/api/firmwareUpdatePreparedPlan.d.ts +42 -0
  497. package/dist/types/api/firmwareUpdatePreparedPlan.d.ts.map +1 -0
  498. package/dist/types/api/getDeviceState.d.ts +12 -0
  499. package/dist/types/api/getDeviceState.d.ts.map +1 -0
  500. package/dist/types/api/getFeatures.d.ts.map +1 -1
  501. package/dist/types/api/getOnekeyFeatures.d.ts.map +1 -1
  502. package/dist/types/api/getPassphraseState.d.ts +2 -10
  503. package/dist/types/api/getPassphraseState.d.ts.map +1 -1
  504. package/dist/types/api/index.d.ts +31 -35
  505. package/dist/types/api/index.d.ts.map +1 -1
  506. package/dist/types/api/kaspaSignTransaction.d.ts +42 -4
  507. package/dist/types/api/kaspaSignTransaction.d.ts.map +1 -1
  508. package/dist/types/api/openWalletSession.d.ts +35 -0
  509. package/dist/types/api/openWalletSession.d.ts.map +1 -0
  510. package/dist/types/api/protocolV2.d.ts +17 -88
  511. package/dist/types/api/protocolV2.d.ts.map +1 -1
  512. package/dist/types/api/sessionCache.d.ts +13 -0
  513. package/dist/types/api/sessionCache.d.ts.map +1 -0
  514. package/dist/types/device.d.ts +143 -10
  515. package/dist/types/device.d.ts.map +1 -1
  516. package/dist/types/params.d.ts +2 -0
  517. package/dist/types/params.d.ts.map +1 -1
  518. package/dist/types/settings.d.ts +71 -9
  519. package/dist/types/settings.d.ts.map +1 -1
  520. package/dist/utils/assets.d.ts +2 -1
  521. package/dist/utils/assets.d.ts.map +1 -1
  522. package/dist/utils/deviceFeaturesCompat.d.ts +14 -0
  523. package/dist/utils/deviceFeaturesCompat.d.ts.map +1 -0
  524. package/dist/utils/deviceFeaturesUtils.d.ts +12 -3
  525. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  526. package/dist/utils/deviceInfoUtils.d.ts +9 -9
  527. package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
  528. package/dist/utils/deviceSettings.d.ts +38 -7
  529. package/dist/utils/deviceSettings.d.ts.map +1 -1
  530. package/dist/utils/deviceVersionUtils.d.ts +7 -5
  531. package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
  532. package/dist/utils/homescreen.d.ts +4 -0
  533. package/dist/utils/homescreen.d.ts.map +1 -1
  534. package/dist/utils/index.d.ts +6 -3
  535. package/dist/utils/index.d.ts.map +1 -1
  536. package/dist/utils/networkUtils.d.ts +10 -1
  537. package/dist/utils/networkUtils.d.ts.map +1 -1
  538. package/dist/utils/patch.d.ts +1 -1
  539. package/dist/utils/patch.d.ts.map +1 -1
  540. package/dist/utils/pro2Nft.d.ts +31 -0
  541. package/dist/utils/pro2Nft.d.ts.map +1 -0
  542. package/dist/utils/pro2Wallpaper.d.ts +22 -0
  543. package/dist/utils/pro2Wallpaper.d.ts.map +1 -0
  544. package/dist/utils/tracing.d.ts.map +1 -1
  545. package/dist/utils/uiProgressThrottle.d.ts +3 -0
  546. package/dist/utils/uiProgressThrottle.d.ts.map +1 -0
  547. package/package.json +4 -4
  548. package/src/api/BaseMethod.ts +53 -20
  549. package/src/api/CheckAllFirmwareRelease.ts +442 -4
  550. package/src/api/CheckBLEFirmwareRelease.ts +37 -5
  551. package/src/api/CheckBootloaderRelease.ts +37 -5
  552. package/src/api/CheckFirmwareRelease.ts +36 -9
  553. package/src/api/CipherKeyValue.ts +4 -0
  554. package/src/api/ClearSessionCache.ts +32 -0
  555. package/src/api/DetectDeviceConnectProtocol.ts +18 -0
  556. package/src/api/DirList.ts +9 -4
  557. package/src/api/DirMake.ts +7 -4
  558. package/src/api/DirRemove.ts +7 -4
  559. package/src/api/FileDelete.ts +7 -4
  560. package/src/api/FileRead.ts +27 -8
  561. package/src/api/FileWrite.ts +26 -168
  562. package/src/api/FirmwareUpdate.ts +30 -15
  563. package/src/api/FirmwareUpdateV2.ts +532 -169
  564. package/src/api/FirmwareUpdateV3.ts +320 -72
  565. package/src/api/FirmwareUpdateV4.ts +2691 -428
  566. package/src/api/GetDeviceState.ts +59 -0
  567. package/src/api/GetFeatures.ts +6 -4
  568. package/src/api/GetOnekeyFeatures.ts +1 -75
  569. package/src/api/GetPassphraseState.ts +36 -18
  570. package/src/api/OpenWalletSession.ts +268 -0
  571. package/src/api/PathInfo.ts +9 -4
  572. package/src/api/PromptWebDeviceAccess.ts +2 -7
  573. package/src/api/SearchDevices.ts +31 -4
  574. package/src/api/UploadPortfolio.ts +58 -0
  575. package/src/api/alephium/AlephiumGetAddress.ts +0 -4
  576. package/src/api/alephium/AlephiumSignMessage.ts +0 -4
  577. package/src/api/alephium/AlephiumSignTransaction.ts +2 -6
  578. package/src/api/algo/AlgoGetAddress.ts +4 -0
  579. package/src/api/algo/AlgoSignTransaction.ts +4 -0
  580. package/src/api/allnetwork/AllNetworkGetAddress.ts +21 -21
  581. package/src/api/allnetwork/AllNetworkGetAddressBase.ts +45 -32
  582. package/src/api/aptos/AptosGetAddress.ts +4 -0
  583. package/src/api/aptos/AptosGetPublicKey.ts +4 -0
  584. package/src/api/aptos/AptosSignInMessage.ts +4 -0
  585. package/src/api/aptos/AptosSignMessage.ts +4 -0
  586. package/src/api/aptos/AptosSignTransaction.ts +4 -0
  587. package/src/api/benfen/BenfenGetAddress.ts +11 -7
  588. package/src/api/benfen/BenfenGetPublicKey.ts +0 -4
  589. package/src/api/benfen/BenfenSignMessage.ts +0 -4
  590. package/src/api/benfen/BenfenSignTransaction.ts +0 -4
  591. package/src/api/btc/BTCGetAddress.ts +8 -1
  592. package/src/api/btc/BTCGetPublicKey.ts +9 -2
  593. package/src/api/btc/BTCSignMessage.ts +8 -1
  594. package/src/api/btc/BTCSignPsbt.ts +4 -0
  595. package/src/api/btc/BTCSignTransaction.ts +8 -1
  596. package/src/api/btc/BTCVerifyMessage.ts +8 -1
  597. package/src/api/btc/helpers/versionLimit.ts +7 -4
  598. package/src/api/cardano/CardanoGetAddress.ts +4 -0
  599. package/src/api/cardano/CardanoGetPublicKey.ts +4 -0
  600. package/src/api/cardano/CardanoSignMessage.ts +5 -1
  601. package/src/api/cardano/CardanoSignTransaction.ts +5 -1
  602. package/src/api/conflux/ConfluxGetAddress.ts +6 -0
  603. package/src/api/conflux/ConfluxSignMessage.ts +6 -0
  604. package/src/api/conflux/ConfluxSignMessageCIP23.ts +6 -0
  605. package/src/api/conflux/ConfluxSignTransaction.ts +8 -5
  606. package/src/api/cosmos/CosmosGetAddress.ts +4 -0
  607. package/src/api/cosmos/CosmosGetPublicKey.ts +4 -0
  608. package/src/api/cosmos/CosmosSignTransaction.ts +4 -0
  609. package/src/api/device/DeviceCancel.ts +5 -0
  610. package/src/api/device/DeviceChangePin.ts +28 -0
  611. package/src/api/device/DeviceFullyUploadResource.ts +4 -5
  612. package/src/api/device/DeviceLock.ts +5 -0
  613. package/src/api/device/DeviceRebootToBoardloader.ts +9 -4
  614. package/src/api/device/DeviceRebootToBootloader.ts +9 -4
  615. package/src/api/device/DeviceSettings.ts +195 -1
  616. package/src/api/device/DeviceSupportFeatures.ts +4 -0
  617. package/src/api/device/DeviceUnlock.ts +21 -3
  618. package/src/api/device/DeviceUpdateBootloader.ts +152 -8
  619. package/src/api/device/DeviceWipe.ts +25 -0
  620. package/src/api/device/PreInitialize.ts +4 -0
  621. package/src/api/dynex/DnxGetAddress.ts +0 -6
  622. package/src/api/dynex/DnxSignTransaction.ts +0 -6
  623. package/src/api/evm/EVMGetAddress.ts +6 -2
  624. package/src/api/evm/EVMGetPublicKey.ts +6 -2
  625. package/src/api/evm/EVMSignMessage.ts +6 -2
  626. package/src/api/evm/EVMSignMessageEIP712.ts +1 -11
  627. package/src/api/evm/EVMSignTransaction.ts +6 -2
  628. package/src/api/evm/EVMSignTypedData.ts +42 -50
  629. package/src/api/evm/EVMVerifyMessage.ts +6 -2
  630. package/src/api/evm/legacyV1/getAddress.ts +2 -2
  631. package/src/api/evm/legacyV1/getPublicKey.ts +2 -2
  632. package/src/api/evm/legacyV1/signMessage.ts +2 -2
  633. package/src/api/evm/legacyV1/signTypedData.ts +2 -2
  634. package/src/api/evm/legacyV1/signTypedHash.ts +2 -2
  635. package/src/api/evm/legacyV1/verifyMessage.ts +2 -2
  636. package/src/api/evm/protocol.ts +6 -0
  637. package/src/api/filecoin/FilecoinGetAddress.ts +4 -0
  638. package/src/api/filecoin/FilecoinSignTransaction.ts +4 -0
  639. package/src/api/firmware/FirmwareArtifactSource.ts +305 -0
  640. package/src/api/firmware/FirmwareHostBinding.ts +123 -0
  641. package/src/api/firmware/FirmwareMemoryHost.ts +143 -0
  642. package/src/api/firmware/FirmwarePreparationError.ts +12 -0
  643. package/src/api/firmware/FirmwarePreparedResourceArchive.ts +187 -0
  644. package/src/api/firmware/FirmwareUpdateBaseMethod.ts +216 -65
  645. package/src/api/firmware/FirmwareUpdateCapabilities.ts +9 -0
  646. package/src/api/firmware/FirmwareUpdatePlan.ts +945 -0
  647. package/src/api/firmware/FirmwareUpdatePreparedPlan.ts +486 -0
  648. package/src/api/firmware/getBinary.ts +8 -3
  649. package/src/api/firmware/protocolV2Release.ts +168 -0
  650. package/src/api/firmware/updateBootloader.ts +19 -4
  651. package/src/api/firmware/uploadFirmware.ts +157 -26
  652. package/src/api/helpers/batchGetPublickeys.ts +2 -2
  653. package/src/api/helpers/filesystemValidation.ts +61 -0
  654. package/src/api/helpers/paramsValidator.ts +1 -1
  655. package/src/api/helpers/protocolV2FileWrite.ts +392 -0
  656. package/src/api/index.ts +9 -30
  657. package/src/api/kaspa/KaspaGetAddress.ts +7 -0
  658. package/src/api/kaspa/KaspaSignTransaction.ts +369 -29
  659. package/src/api/kaspa/helpers/TransferSerialize.ts +17 -7
  660. package/src/api/lightning/LnurlAuth.ts +0 -4
  661. package/src/api/near/NearGetAddress.ts +4 -0
  662. package/src/api/near/NearSignTransaction.ts +4 -0
  663. package/src/api/nem/NEMGetAddress.ts +4 -0
  664. package/src/api/nem/NEMSignTransaction.ts +4 -0
  665. package/src/api/neo/NeoGetAddress.ts +0 -4
  666. package/src/api/neo/NeoSignTransaction.ts +0 -4
  667. package/src/api/nervos/NervosGetAddress.ts +0 -4
  668. package/src/api/nervos/NervosSignTransaction.ts +2 -6
  669. package/src/api/nexa/NexaGetAddress.ts +0 -4
  670. package/src/api/nexa/NexaSignTransaction.ts +3 -5
  671. package/src/api/nostr/NostrDecryptMessage.ts +4 -0
  672. package/src/api/nostr/NostrEncryptMessage.ts +4 -0
  673. package/src/api/nostr/NostrGetPublicKey.ts +4 -0
  674. package/src/api/nostr/NostrSignEvent.ts +4 -0
  675. package/src/api/nostr/NostrSignSchnorr.ts +4 -0
  676. package/src/api/polkadot/PolkadotGetAddress.ts +4 -0
  677. package/src/api/polkadot/PolkadotSignTransaction.ts +4 -0
  678. package/src/api/polkadot/networks.ts +3 -3
  679. package/src/api/protocol-v2/{FactoryGetDeviceInfo.ts → DeviceFactoryInfoGet.ts} +8 -5
  680. package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +35 -0
  681. package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +11 -10
  682. package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +45 -7
  683. package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +10 -5
  684. package/src/api/protocol-v2/DeviceInfoGet.ts +141 -0
  685. package/src/api/protocol-v2/DeviceReboot.ts +8 -4
  686. package/src/api/protocol-v2/DeviceStatusGet.ts +19 -0
  687. package/src/api/protocol-v2/DeviceUploadNft.ts +197 -0
  688. package/src/api/protocol-v2/DeviceUploadWallpaper.ts +134 -0
  689. package/src/api/protocol-v2/FilesystemFormat.ts +9 -3
  690. package/src/api/protocol-v2/{FilesystemFixPermission.ts → FilesystemPermissionFix.ts} +7 -4
  691. package/src/api/protocol-v2/Ping.ts +37 -3
  692. package/src/api/protocol-v2/ProtocolInfoRequest.ts +21 -0
  693. package/src/api/protocol-v2/helpers.ts +71 -50
  694. package/src/api/scdo/ScdoGetAddress.ts +0 -4
  695. package/src/api/scdo/ScdoSignMessage.ts +0 -4
  696. package/src/api/scdo/ScdoSignTransaction.ts +0 -4
  697. package/src/api/solana/SolGetAddress.ts +4 -0
  698. package/src/api/solana/SolSignMessage.ts +5 -1
  699. package/src/api/solana/SolSignOffchainMessage.ts +5 -1
  700. package/src/api/solana/SolSignTransaction.ts +6 -2
  701. package/src/api/starcoin/StarcoinGetAddress.ts +4 -0
  702. package/src/api/starcoin/StarcoinGetPublicKey.ts +4 -0
  703. package/src/api/starcoin/StarcoinSignMessage.ts +4 -0
  704. package/src/api/starcoin/StarcoinSignTransaction.ts +4 -0
  705. package/src/api/starcoin/StarcoinVerifyMessage.ts +4 -0
  706. package/src/api/stellar/StellarGetAddress.ts +1 -10
  707. package/src/api/stellar/StellarSignTransaction.ts +1 -14
  708. package/src/api/sui/SuiGetAddress.ts +5 -1
  709. package/src/api/sui/SuiGetPublicKey.ts +5 -1
  710. package/src/api/sui/SuiSignMessage.ts +5 -1
  711. package/src/api/sui/SuiSignTransaction.ts +5 -1
  712. package/src/api/ton/TonGetAddress.ts +5 -1
  713. package/src/api/ton/TonSignData.ts +6 -6
  714. package/src/api/ton/TonSignMessage.ts +5 -1
  715. package/src/api/ton/TonSignProof.ts +5 -1
  716. package/src/api/tron/TronGetAddress.ts +4 -0
  717. package/src/api/tron/TronSignMessage.ts +19 -9
  718. package/src/api/tron/TronSignTransaction.ts +5 -2
  719. package/src/api/utils.ts +32 -3
  720. package/src/api/xrp/XrpGetAddress.ts +4 -0
  721. package/src/api/xrp/XrpSignTransaction.ts +5 -1
  722. package/src/constants/index.ts +1 -4
  723. package/src/core/RequestQueue.ts +1 -0
  724. package/src/core/deviceEventRegistration.ts +27 -0
  725. package/src/core/index.ts +400 -157
  726. package/src/core/uiPromiseRegistry.ts +63 -0
  727. package/src/data/messages/messages-protocol-v2.json +904 -791
  728. package/src/data/messages/messages.json +286 -1
  729. package/src/data-manager/DataManager.ts +158 -40
  730. package/src/data-manager/TransportManager.ts +7 -1
  731. package/src/data-manager/connectSettings.ts +13 -4
  732. package/src/device/Device.ts +909 -296
  733. package/src/device/DeviceCommands.ts +193 -158
  734. package/src/device/DeviceConnector.ts +44 -21
  735. package/src/device/DeviceFeaturesState.ts +25 -0
  736. package/src/device/DevicePool.ts +101 -23
  737. package/src/device/DeviceStateMapper.ts +416 -0
  738. package/src/device/DeviceStateProjector.ts +152 -0
  739. package/src/device/DeviceStateStore.ts +232 -0
  740. package/src/device/DeviceWalletSessionStore.ts +144 -0
  741. package/src/device/cloneDeviceState.ts +39 -0
  742. package/src/device/deviceIdentity.ts +18 -0
  743. package/src/deviceProfile/buildDeviceFeatures.ts +243 -212
  744. package/src/deviceProfile/index.ts +0 -1
  745. package/src/deviceProfile/protocolV2DeviceIdentity.ts +35 -0
  746. package/src/events/device.ts +22 -1
  747. package/src/events/logBlockEvent.ts +80 -2
  748. package/src/events/ui-promise.ts +4 -2
  749. package/src/events/ui-request.ts +61 -4
  750. package/src/events/ui-response.ts +12 -2
  751. package/src/index.ts +17 -0
  752. package/src/inject.ts +93 -49
  753. package/src/lowLevelInject.ts +11 -4
  754. package/src/protocols/protocol-v2/deviceSession.ts +24 -0
  755. package/src/protocols/protocol-v2/features.ts +113 -83
  756. package/src/protocols/protocol-v2/firmware.ts +14 -36
  757. package/src/protocols/protocol-v2/index.ts +8 -1
  758. package/src/protocols/protocol-v2/resources.ts +210 -0
  759. package/src/protocols/protocol-v2/settingsUnlockPolicy.ts +65 -0
  760. package/src/protocols/protocol-v2/uiInteraction.ts +250 -0
  761. package/src/protocols/protocol-v2/unlockPolicy.ts +1 -0
  762. package/src/protocols/protocol-v2/unlockPolicyRunner.ts +131 -0
  763. package/src/protocols/protocol-v2/walletSession.ts +463 -0
  764. package/src/topLevelInject.ts +11 -4
  765. package/src/types/api/checkAllFirmwareRelease.ts +72 -9
  766. package/src/types/api/checkBLEFirmwareRelease.ts +4 -13
  767. package/src/types/api/checkBootloaderRelease.ts +2 -6
  768. package/src/types/api/checkFirmwareRelease.ts +2 -13
  769. package/src/types/api/checkFirmwareTypeAvailable.ts +2 -2
  770. package/src/types/api/detectDeviceConnectProtocol.ts +6 -0
  771. package/src/types/api/deviceSettings.ts +26 -2
  772. package/src/types/api/deviceUnlock.ts +13 -2
  773. package/src/types/api/deviceUpdateBootloader.ts +7 -0
  774. package/src/types/api/export.ts +33 -1
  775. package/src/types/api/firmwareUpdate.ts +101 -19
  776. package/src/types/api/firmwareUpdateCapabilities.ts +9 -0
  777. package/src/types/api/firmwareUpdatePlan.ts +38 -0
  778. package/src/types/api/firmwareUpdatePreparedPlan.ts +53 -0
  779. package/src/types/api/getDeviceState.ts +19 -0
  780. package/src/types/api/getFeatures.ts +3 -0
  781. package/src/types/api/getOnekeyFeatures.ts +3 -0
  782. package/src/types/api/getPassphraseState.ts +9 -11
  783. package/src/types/api/index.ts +50 -72
  784. package/src/types/api/kaspaSignTransaction.ts +60 -4
  785. package/src/types/api/openWalletSession.ts +54 -0
  786. package/src/types/api/protocolV2.ts +31 -157
  787. package/src/types/api/sessionCache.ts +19 -0
  788. package/src/types/device.ts +217 -10
  789. package/src/types/params.ts +12 -1
  790. package/src/types/settings.ts +91 -42
  791. package/src/utils/assets.ts +4 -1
  792. package/src/utils/deviceFeaturesCompat.ts +191 -0
  793. package/src/utils/deviceFeaturesUtils.ts +85 -26
  794. package/src/utils/deviceInfoUtils.ts +29 -69
  795. package/src/utils/deviceSettings.ts +174 -39
  796. package/src/utils/deviceVersionUtils.ts +25 -44
  797. package/src/utils/findDefectiveBatchDevice.ts +3 -3
  798. package/src/utils/homescreen.ts +40 -0
  799. package/src/utils/index.ts +27 -3
  800. package/src/utils/networkUtils.ts +274 -16
  801. package/src/utils/pro2Nft.ts +142 -0
  802. package/src/utils/pro2Wallpaper.ts +130 -0
  803. package/src/utils/tracing.ts +3 -1
  804. package/src/utils/uiProgressThrottle.ts +63 -0
  805. package/tsconfig.type-tests.json +12 -0
  806. package/dist/api/GetDeviceInfo.d.ts +0 -9
  807. package/dist/api/GetDeviceInfo.d.ts.map +0 -1
  808. package/dist/api/protocol-v2/DevReboot.d.ts +0 -7
  809. package/dist/api/protocol-v2/DevReboot.d.ts.map +0 -1
  810. package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts +0 -29
  811. package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts.map +0 -1
  812. package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts +0 -7
  813. package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts.map +0 -1
  814. package/dist/api/protocol-v2/FactoryGetDeviceInfo.d.ts +0 -6
  815. package/dist/api/protocol-v2/FactoryGetDeviceInfo.d.ts.map +0 -1
  816. package/dist/api/protocol-v2/FilesystemDiskControl.d.ts +0 -13
  817. package/dist/api/protocol-v2/FilesystemDiskControl.d.ts.map +0 -1
  818. package/dist/api/protocol-v2/FilesystemFixPermission.d.ts +0 -6
  819. package/dist/api/protocol-v2/FilesystemFixPermission.d.ts.map +0 -1
  820. package/dist/api/protocol-v2/GetProtoVersion.d.ts +0 -6
  821. package/dist/api/protocol-v2/GetProtoVersion.d.ts.map +0 -1
  822. package/dist/deviceProfile/buildDeviceProfile.d.ts +0 -21
  823. package/dist/deviceProfile/buildDeviceProfile.d.ts.map +0 -1
  824. package/dist/types/api/getDeviceInfo.d.ts +0 -85
  825. package/dist/types/api/getDeviceInfo.d.ts.map +0 -1
  826. package/src/api/GetDeviceInfo.ts +0 -145
  827. package/src/api/protocol-v2/DevReboot.ts +0 -24
  828. package/src/api/protocol-v2/DeviceGetDeviceInfo.ts +0 -118
  829. package/src/api/protocol-v2/FactoryDeviceInfoSettings.ts +0 -29
  830. package/src/api/protocol-v2/FilesystemDiskControl.ts +0 -50
  831. package/src/api/protocol-v2/GetProtoVersion.ts +0 -16
  832. package/src/deviceProfile/buildDeviceProfile.ts +0 -333
  833. package/src/types/api/getDeviceInfo.ts +0 -99
@@ -79,8 +79,6 @@
79
79
  "MessageType_ResetDevice": 14,
80
80
  "MessageType_SetBusy": 16,
81
81
  "MessageType_Features": 17,
82
- "MessageType_PinMatrixRequest": 18,
83
- "MessageType_PinMatrixAck": 19,
84
82
  "MessageType_Cancel": 20,
85
83
  "MessageType_LockDevice": 24,
86
84
  "MessageType_ApplySettings": 25,
@@ -100,7 +98,6 @@
100
98
  "MessageType_GetFeatures": 55,
101
99
  "MessageType_SdProtect": 79,
102
100
  "MessageType_ChangeWipeCode": 82,
103
- "MessageType_EndSession": 83,
104
101
  "MessageType_DoPreauthorized": 84,
105
102
  "MessageType_PreauthorizedRequest": 85,
106
103
  "MessageType_CancelAuthorization": 86,
@@ -143,20 +140,6 @@
143
140
  "MessageType_CosiSignature": 74,
144
141
  "MessageType_BatchGetPublickeys": 10016,
145
142
  "MessageType_EcdsaPublicKeys": 10017,
146
- "MessageType_DebugLinkDecision": 100,
147
- "MessageType_DebugLinkGetState": 101,
148
- "MessageType_DebugLinkState": 102,
149
- "MessageType_DebugLinkStop": 103,
150
- "MessageType_DebugLinkLog": 104,
151
- "MessageType_DebugLinkMemoryRead": 110,
152
- "MessageType_DebugLinkMemory": 111,
153
- "MessageType_DebugLinkMemoryWrite": 112,
154
- "MessageType_DebugLinkFlashErase": 113,
155
- "MessageType_DebugLinkLayout": 9001,
156
- "MessageType_DebugLinkReseedRandom": 9002,
157
- "MessageType_DebugLinkRecordScreen": 9003,
158
- "MessageType_DebugLinkEraseSdCard": 9005,
159
- "MessageType_DebugLinkWatchLayout": 9006,
160
143
  "MessageType_EthereumGetPublicKey": 450,
161
144
  "MessageType_EthereumPublicKey": 451,
162
145
  "MessageType_EthereumGetAddress": 56,
@@ -196,6 +179,7 @@
196
179
  "MessageType_EthereumGnosisSafeTxAck": 20118,
197
180
  "MessageType_EthereumGnosisSafeTxRequest": 20119,
198
181
  "MessageType_EthereumSignTxEIP7702OneKey": 20120,
182
+ "MessageType_EthereumSignTypedDataQR": 20121,
199
183
  "MessageType_NEMGetAddress": 67,
200
184
  "MessageType_NEMAddress": 68,
201
185
  "MessageType_NEMSignTx": 69,
@@ -419,15 +403,6 @@
419
403
  "MessageType_TonSignProof": 11905,
420
404
  "MessageType_TonSignedProof": 11906,
421
405
  "MessageType_TonTxAck": 11907,
422
- "MessageType_TonSignData": 11908,
423
- "MessageType_TonSignedData": 11909,
424
- "MessageType_ScdoGetAddress": 12001,
425
- "MessageType_ScdoAddress": 12002,
426
- "MessageType_ScdoSignTx": 12003,
427
- "MessageType_ScdoSignedTx": 12004,
428
- "MessageType_ScdoTxAck": 12005,
429
- "MessageType_ScdoSignMessage": 12006,
430
- "MessageType_ScdoSignedMessage": 12007,
431
406
  "MessageType_AlephiumGetAddress": 12101,
432
407
  "MessageType_AlephiumAddress": 12102,
433
408
  "MessageType_AlephiumSignTx": 12103,
@@ -450,46 +425,32 @@
450
425
  "MessageType_NeoAddress": 12302,
451
426
  "MessageType_NeoSignTx": 12303,
452
427
  "MessageType_NeoSignedTx": 12304,
453
- "MessageType_ReadSEPublicKey": 10004,
454
- "MessageType_SEPublicKey": 10005,
455
- "MessageType_WriteSEPublicCert": 10006,
456
- "MessageType_ReadSEPublicCert": 10007,
457
- "MessageType_SEPublicCert": 10008,
458
- "MessageType_SESignMessage": 10012,
459
- "MessageType_SEMessageSignature": 10013,
460
- "MessageType_ResourceUpload": 10018,
461
- "MessageType_ZoomRequest": 10019,
462
- "MessageType_BlurRequest": 10032,
463
- "MessageType_SetWallpaper": 10033,
464
- "MessageType_GetWallpaper": 10034,
465
- "MessageType_Wallpaper": 10035,
466
- "MessageType_ResourceRequest": 10020,
467
- "MessageType_ResourceAck": 10021,
468
- "MessageType_ResourceUpdate": 10022,
469
- "MessageType_ListResDir": 10023,
470
- "MessageType_FileInfoList": 10024,
471
- "MessageType_OnekeyGetFeatures": 10025,
472
- "MessageType_OnekeyFeatures": 10026,
473
- "MessageType_WriteSEPrivateKey": 10027,
474
- "MessageType_GetPassphraseState": 10028,
475
- "MessageType_PassphraseState": 10029,
476
- "MessageType_UnLockDevice": 10030,
477
- "MessageType_UnLockDeviceResponse": 10031,
478
- "MessageType_FactoryDeviceInfoSettings": 60000,
479
- "MessageType_FactoryGetDeviceInfo": 60001,
480
- "MessageType_FactoryDeviceInfo": 60002,
481
- "MessageType_GetProtoVersion": 60200,
482
- "MessageType_ProtoVersion": 60201,
483
- "MessageType_StartSession": 60205,
428
+ "MessageType_DeviceFactoryInfoSet": 60000,
429
+ "MessageType_DeviceFactoryInfoGet": 60001,
430
+ "MessageType_DeviceFactoryInfo": 60002,
431
+ "MessageType_DeviceFactoryPermanentLock": 60003,
432
+ "MessageType_DeviceFactoryTest": 60004,
433
+ "MessageType_ProtocolInfoRequest": 60200,
434
+ "MessageType_ProtocolInfo": 60201,
484
435
  "MessageType_Ping": 60206,
485
436
  "MessageType_Success": 60207,
486
437
  "MessageType_Failure": 60208,
487
- "MessageType_DevReboot": 60400,
488
- "MessageType_DevGetDeviceInfo": 60600,
438
+ "MessageType_DeviceReboot": 60400,
439
+ "MessageType_DeviceSettings": 60410,
440
+ "MessageType_DeviceSettingsGet": 60411,
441
+ "MessageType_DeviceSettingsSet": 60412,
442
+ "MessageType_DeviceSettingsPageShow": 60413,
443
+ "MessageType_DeviceCertificate": 60420,
444
+ "MessageType_DeviceCertificateWrite": 60421,
445
+ "MessageType_DeviceCertificateRead": 60422,
446
+ "MessageType_DeviceCertificateSignature": 60423,
447
+ "MessageType_DeviceCertificateSign": 60424,
448
+ "MessageType_DeviceMiscUsbMscControl": 60440,
449
+ "MessageType_DeviceInfoGet": 60600,
489
450
  "MessageType_DeviceInfo": 60601,
490
- "MessageType_GetOnboardingStatus": 60602,
491
- "MessageType_OnboardingStatus": 60603,
492
- "MessageType_FilesystemFixPermission": 60800,
451
+ "MessageType_DeviceStatusGet": 60602,
452
+ "MessageType_DeviceStatus": 60603,
453
+ "MessageType_FilesystemPermissionFix": 60800,
493
454
  "MessageType_FilesystemPathInfo": 60801,
494
455
  "MessageType_FilesystemPathInfoQuery": 60802,
495
456
  "MessageType_FilesystemFile": 60803,
@@ -501,11 +462,24 @@
501
462
  "MessageType_FilesystemDirMake": 60809,
502
463
  "MessageType_FilesystemDirRemove": 60810,
503
464
  "MessageType_FilesystemFormat": 60811,
504
- "MessageType_DevFirmwareUpdate": 61000,
505
- "MessageType_DevFirmwareInstallProgress": 61001,
506
- "MessageType_DevGetFirmwareUpdateStatus": 61002,
507
- "MessageType_DevFirmwareUpdateStatus": 61003
508
- }
465
+ "MessageType_DeviceFirmwareUpdateRequest": 61000,
466
+ "MessageType_DeviceFirmwareUpdateStatusGet": 61001,
467
+ "MessageType_DeviceFirmwareUpdateStatus": 61002,
468
+ "MessageType_DeviceSessionGet": 61200,
469
+ "MessageType_DeviceSession": 61201,
470
+ "MessageType_DeviceSessionAskPin": 61202,
471
+ "MessageType_DeviceSessionAskPassphrase": 61203,
472
+ "MessageType_PortfolioUpdate": 61400,
473
+ "MessageType_NftUpdate": 61500,
474
+ "MessageType_OnboardingStatusGet": 61600,
475
+ "MessageType_OnboardingStatus": 61601
476
+ },
477
+ "reserved": [
478
+ [90, 92],
479
+ [114, 122],
480
+ [300, 304],
481
+ [309, 312]
482
+ ]
509
483
  },
510
484
  "AlephiumGetAddress": {
511
485
  "fields": {
@@ -4094,207 +4068,6 @@
4094
4068
  }
4095
4069
  }
4096
4070
  },
4097
- "DebugLinkInput": {
4098
- "fields": {
4099
- "x": {
4100
- "type": "uint32",
4101
- "id": 1
4102
- },
4103
- "y": {
4104
- "type": "uint32",
4105
- "id": 2
4106
- },
4107
- "duration_ms": {
4108
- "type": "uint32",
4109
- "id": 3
4110
- },
4111
- "x_end": {
4112
- "type": "uint32",
4113
- "id": 4
4114
- },
4115
- "y_end": {
4116
- "type": "uint32",
4117
- "id": 5
4118
- }
4119
- }
4120
- },
4121
- "DebugLinkLayout": {
4122
- "fields": {
4123
- "lines": {
4124
- "rule": "repeated",
4125
- "type": "string",
4126
- "id": 1
4127
- }
4128
- }
4129
- },
4130
- "DebugLinkReseedRandom": {
4131
- "fields": {
4132
- "value": {
4133
- "type": "uint32",
4134
- "id": 1
4135
- }
4136
- }
4137
- },
4138
- "DebugLinkRecordScreen": {
4139
- "fields": {
4140
- "target_directory": {
4141
- "type": "string",
4142
- "id": 1
4143
- }
4144
- }
4145
- },
4146
- "DebugLinkGetState": {
4147
- "fields": {
4148
- "wait_word_list": {
4149
- "type": "bool",
4150
- "id": 1
4151
- },
4152
- "wait_word_pos": {
4153
- "type": "bool",
4154
- "id": 2
4155
- },
4156
- "wait_layout": {
4157
- "type": "bool",
4158
- "id": 3
4159
- }
4160
- }
4161
- },
4162
- "DebugLinkState": {
4163
- "fields": {
4164
- "layout": {
4165
- "type": "bytes",
4166
- "id": 1
4167
- },
4168
- "pin": {
4169
- "type": "string",
4170
- "id": 2
4171
- },
4172
- "matrix": {
4173
- "type": "string",
4174
- "id": 3
4175
- },
4176
- "mnemonic_secret": {
4177
- "type": "bytes",
4178
- "id": 4
4179
- },
4180
- "node": {
4181
- "type": "HDNodeType",
4182
- "id": 5
4183
- },
4184
- "passphrase_protection": {
4185
- "type": "bool",
4186
- "id": 6
4187
- },
4188
- "reset_word": {
4189
- "type": "string",
4190
- "id": 7
4191
- },
4192
- "reset_entropy": {
4193
- "type": "bytes",
4194
- "id": 8
4195
- },
4196
- "recovery_fake_word": {
4197
- "type": "string",
4198
- "id": 9
4199
- },
4200
- "recovery_word_pos": {
4201
- "type": "uint32",
4202
- "id": 10
4203
- },
4204
- "reset_word_pos": {
4205
- "type": "uint32",
4206
- "id": 11
4207
- },
4208
- "mnemonic_type": {
4209
- "type": "BackupType",
4210
- "id": 12
4211
- },
4212
- "layout_lines": {
4213
- "rule": "repeated",
4214
- "type": "string",
4215
- "id": 13
4216
- }
4217
- }
4218
- },
4219
- "DebugLinkStop": {
4220
- "fields": {}
4221
- },
4222
- "DebugLinkLog": {
4223
- "fields": {
4224
- "level": {
4225
- "type": "uint32",
4226
- "id": 1
4227
- },
4228
- "bucket": {
4229
- "type": "string",
4230
- "id": 2
4231
- },
4232
- "text": {
4233
- "type": "string",
4234
- "id": 3
4235
- }
4236
- }
4237
- },
4238
- "DebugLinkMemoryRead": {
4239
- "fields": {
4240
- "address": {
4241
- "type": "uint32",
4242
- "id": 1
4243
- },
4244
- "length": {
4245
- "type": "uint32",
4246
- "id": 2
4247
- }
4248
- }
4249
- },
4250
- "DebugLinkMemory": {
4251
- "fields": {
4252
- "memory": {
4253
- "type": "bytes",
4254
- "id": 1
4255
- }
4256
- }
4257
- },
4258
- "DebugLinkMemoryWrite": {
4259
- "fields": {
4260
- "address": {
4261
- "type": "uint32",
4262
- "id": 1
4263
- },
4264
- "memory": {
4265
- "type": "bytes",
4266
- "id": 2
4267
- },
4268
- "flash": {
4269
- "type": "bool",
4270
- "id": 3
4271
- }
4272
- }
4273
- },
4274
- "DebugLinkFlashErase": {
4275
- "fields": {
4276
- "sector": {
4277
- "type": "uint32",
4278
- "id": 1
4279
- }
4280
- }
4281
- },
4282
- "DebugLinkEraseSdCard": {
4283
- "fields": {
4284
- "format": {
4285
- "type": "bool",
4286
- "id": 1
4287
- }
4288
- }
4289
- },
4290
- "DebugLinkWatchLayout": {
4291
- "fields": {
4292
- "watch": {
4293
- "type": "bool",
4294
- "id": 1
4295
- }
4296
- }
4297
- },
4298
4071
  "EosGetPublicKey": {
4299
4072
  "fields": {
4300
4073
  "address_n": {
@@ -5602,6 +5375,37 @@
5602
5375
  }
5603
5376
  }
5604
5377
  },
5378
+ "EthereumSignTypedDataQR": {
5379
+ "fields": {
5380
+ "address_n": {
5381
+ "rule": "repeated",
5382
+ "type": "uint32",
5383
+ "id": 1,
5384
+ "options": {
5385
+ "packed": false
5386
+ }
5387
+ },
5388
+ "json_data": {
5389
+ "type": "bytes",
5390
+ "id": 2
5391
+ },
5392
+ "chain_id": {
5393
+ "type": "uint64",
5394
+ "id": 3
5395
+ },
5396
+ "metamask_v4_compat": {
5397
+ "type": "bool",
5398
+ "id": 4,
5399
+ "options": {
5400
+ "default": true
5401
+ }
5402
+ },
5403
+ "request_id": {
5404
+ "type": "bytes",
5405
+ "id": 5
5406
+ }
5407
+ }
5408
+ },
5605
5409
  "EthereumGetPublicKeyOneKey": {
5606
5410
  "fields": {
5607
5411
  "address_n": {
@@ -6127,30 +5931,6 @@
6127
5931
  }
6128
5932
  }
6129
5933
  },
6130
- "InternalMyAddressRequest": {
6131
- "fields": {
6132
- "coin_type": {
6133
- "rule": "required",
6134
- "type": "uint32",
6135
- "id": 1
6136
- },
6137
- "chain_id": {
6138
- "rule": "required",
6139
- "type": "uint32",
6140
- "id": 2
6141
- },
6142
- "account_index": {
6143
- "rule": "required",
6144
- "type": "uint32",
6145
- "id": 3
6146
- },
6147
- "derive_type": {
6148
- "rule": "required",
6149
- "type": "uint32",
6150
- "id": 4
6151
- }
6152
- }
6153
- },
6154
5934
  "KaspaGetAddress": {
6155
5935
  "fields": {
6156
5936
  "address_n": {
@@ -6550,15 +6330,15 @@
6550
6330
  "type": "uint32",
6551
6331
  "id": 500
6552
6332
  },
6553
- "ble_name": {
6333
+ "coprocessor_bt_name": {
6554
6334
  "type": "string",
6555
6335
  "id": 501
6556
6336
  },
6557
- "ble_ver": {
6337
+ "coprocessor_version": {
6558
6338
  "type": "string",
6559
6339
  "id": 502
6560
6340
  },
6561
- "ble_enable": {
6341
+ "coprocessor_bt_enable": {
6562
6342
  "type": "bool",
6563
6343
  "id": 503
6564
6344
  },
@@ -6618,7 +6398,7 @@
6618
6398
  "type": "bytes",
6619
6399
  "id": 518
6620
6400
  },
6621
- "boardloader_version": {
6401
+ "romloader_version": {
6622
6402
  "type": "string",
6623
6403
  "id": 519
6624
6404
  },
@@ -6634,19 +6414,19 @@
6634
6414
  "type": "OneKeySeType",
6635
6415
  "id": 601
6636
6416
  },
6637
- "onekey_board_version": {
6417
+ "onekey_romloader_version": {
6638
6418
  "type": "string",
6639
6419
  "id": 602
6640
6420
  },
6641
- "onekey_board_hash": {
6421
+ "onekey_romloader_hash": {
6642
6422
  "type": "bytes",
6643
6423
  "id": 603
6644
6424
  },
6645
- "onekey_boot_version": {
6425
+ "onekey_bootloader_version": {
6646
6426
  "type": "string",
6647
6427
  "id": 604
6648
6428
  },
6649
- "onekey_boot_hash": {
6429
+ "onekey_bootloader_hash": {
6650
6430
  "type": "bytes",
6651
6431
  "id": 605
6652
6432
  },
@@ -6678,23 +6458,23 @@
6678
6458
  "type": "string",
6679
6459
  "id": 612
6680
6460
  },
6681
- "onekey_boot_build_id": {
6461
+ "onekey_bootloader_build_id": {
6682
6462
  "type": "string",
6683
6463
  "id": 613
6684
6464
  },
6685
- "onekey_ble_name": {
6465
+ "onekey_coprocessor_bt_name": {
6686
6466
  "type": "string",
6687
6467
  "id": 614
6688
6468
  },
6689
- "onekey_ble_version": {
6469
+ "onekey_coprocessor_version": {
6690
6470
  "type": "string",
6691
6471
  "id": 615
6692
6472
  },
6693
- "onekey_ble_build_id": {
6473
+ "onekey_coprocessor_build_id": {
6694
6474
  "type": "string",
6695
6475
  "id": 616
6696
6476
  },
6697
- "onekey_ble_hash": {
6477
+ "onekey_coprocessor_hash": {
6698
6478
  "type": "bytes",
6699
6479
  "id": 617
6700
6480
  },
@@ -6770,11 +6550,11 @@
6770
6550
  "type": "OneKeyDeviceType",
6771
6551
  "id": 1
6772
6552
  },
6773
- "onekey_board_version": {
6553
+ "onekey_romloader_version": {
6774
6554
  "type": "string",
6775
6555
  "id": 2
6776
6556
  },
6777
- "onekey_boot_version": {
6557
+ "onekey_bootloader_version": {
6778
6558
  "type": "string",
6779
6559
  "id": 3
6780
6560
  },
@@ -6782,11 +6562,11 @@
6782
6562
  "type": "string",
6783
6563
  "id": 4
6784
6564
  },
6785
- "onekey_board_hash": {
6565
+ "onekey_romloader_hash": {
6786
6566
  "type": "bytes",
6787
6567
  "id": 5
6788
6568
  },
6789
- "onekey_boot_hash": {
6569
+ "onekey_bootloader_hash": {
6790
6570
  "type": "bytes",
6791
6571
  "id": 6
6792
6572
  },
@@ -6794,11 +6574,11 @@
6794
6574
  "type": "bytes",
6795
6575
  "id": 7
6796
6576
  },
6797
- "onekey_board_build_id": {
6577
+ "onekey_romloader_build_id": {
6798
6578
  "type": "string",
6799
6579
  "id": 8
6800
6580
  },
6801
- "onekey_boot_build_id": {
6581
+ "onekey_bootloader_build_id": {
6802
6582
  "type": "string",
6803
6583
  "id": 9
6804
6584
  },
@@ -6810,19 +6590,19 @@
6810
6590
  "type": "string",
6811
6591
  "id": 11
6812
6592
  },
6813
- "onekey_ble_name": {
6593
+ "onekey_coprocessor_bt_name": {
6814
6594
  "type": "string",
6815
6595
  "id": 12
6816
6596
  },
6817
- "onekey_ble_version": {
6597
+ "onekey_coprocessor_version": {
6818
6598
  "type": "string",
6819
6599
  "id": 13
6820
6600
  },
6821
- "onekey_ble_build_id": {
6601
+ "onekey_coprocessor_build_id": {
6822
6602
  "type": "string",
6823
6603
  "id": 14
6824
6604
  },
6825
- "onekey_ble_hash": {
6605
+ "onekey_coprocessor_hash": {
6826
6606
  "type": "bytes",
6827
6607
  "id": 15
6828
6608
  },
@@ -6894,51 +6674,51 @@
6894
6674
  "type": "string",
6895
6675
  "id": 32
6896
6676
  },
6897
- "onekey_se01_boot_version": {
6677
+ "onekey_se01_bootloader_version": {
6898
6678
  "type": "string",
6899
6679
  "id": 33
6900
6680
  },
6901
- "onekey_se02_boot_version": {
6681
+ "onekey_se02_bootloader_version": {
6902
6682
  "type": "string",
6903
6683
  "id": 34
6904
6684
  },
6905
- "onekey_se03_boot_version": {
6685
+ "onekey_se03_bootloader_version": {
6906
6686
  "type": "string",
6907
6687
  "id": 35
6908
6688
  },
6909
- "onekey_se04_boot_version": {
6689
+ "onekey_se04_bootloader_version": {
6910
6690
  "type": "string",
6911
6691
  "id": 36
6912
6692
  },
6913
- "onekey_se01_boot_hash": {
6693
+ "onekey_se01_bootloader_hash": {
6914
6694
  "type": "bytes",
6915
6695
  "id": 37
6916
6696
  },
6917
- "onekey_se02_boot_hash": {
6697
+ "onekey_se02_bootloader_hash": {
6918
6698
  "type": "bytes",
6919
6699
  "id": 38
6920
6700
  },
6921
- "onekey_se03_boot_hash": {
6701
+ "onekey_se03_bootloader_hash": {
6922
6702
  "type": "bytes",
6923
6703
  "id": 39
6924
6704
  },
6925
- "onekey_se04_boot_hash": {
6705
+ "onekey_se04_bootloader_hash": {
6926
6706
  "type": "bytes",
6927
6707
  "id": 40
6928
6708
  },
6929
- "onekey_se01_boot_build_id": {
6709
+ "onekey_se01_bootloader_build_id": {
6930
6710
  "type": "string",
6931
6711
  "id": 41
6932
6712
  },
6933
- "onekey_se02_boot_build_id": {
6713
+ "onekey_se02_bootloader_build_id": {
6934
6714
  "type": "string",
6935
6715
  "id": 42
6936
6716
  },
6937
- "onekey_se03_boot_build_id": {
6717
+ "onekey_se03_bootloader_build_id": {
6938
6718
  "type": "string",
6939
6719
  "id": 43
6940
6720
  },
6941
- "onekey_se04_boot_build_id": {
6721
+ "onekey_se04_bootloader_build_id": {
6942
6722
  "type": "string",
6943
6723
  "id": 44
6944
6724
  }
@@ -6955,9 +6735,6 @@
6955
6735
  }
6956
6736
  }
6957
6737
  },
6958
- "EndSession": {
6959
- "fields": {}
6960
- },
6961
6738
  "ApplySettings": {
6962
6739
  "fields": {
6963
6740
  "language": {
@@ -7480,49 +7257,6 @@
7480
7257
  }
7481
7258
  }
7482
7259
  },
7483
- "WallpaperTarget": {
7484
- "values": {
7485
- "Home": 0,
7486
- "Lock": 1
7487
- }
7488
- },
7489
- "SetWallpaper": {
7490
- "fields": {
7491
- "target": {
7492
- "rule": "required",
7493
- "type": "WallpaperTarget",
7494
- "id": 1
7495
- },
7496
- "path": {
7497
- "rule": "required",
7498
- "type": "string",
7499
- "id": 2
7500
- }
7501
- }
7502
- },
7503
- "GetWallpaper": {
7504
- "fields": {
7505
- "target": {
7506
- "rule": "required",
7507
- "type": "WallpaperTarget",
7508
- "id": 1
7509
- }
7510
- }
7511
- },
7512
- "Wallpaper": {
7513
- "fields": {
7514
- "target": {
7515
- "rule": "required",
7516
- "type": "WallpaperTarget",
7517
- "id": 1
7518
- },
7519
- "path": {
7520
- "rule": "required",
7521
- "type": "string",
7522
- "id": 2
7523
- }
7524
- }
7525
- },
7526
7260
  "ResourceUpdate": {
7527
7261
  "fields": {
7528
7262
  "file_name": {
@@ -7609,14 +7343,6 @@
7609
7343
  "passphrase_state": {
7610
7344
  "type": "string",
7611
7345
  "id": 1
7612
- },
7613
- "_only_main_pin": {
7614
- "type": "bool",
7615
- "id": 2
7616
- },
7617
- "allow_create_attach_pin": {
7618
- "type": "bool",
7619
- "id": 3
7620
7346
  }
7621
7347
  }
7622
7348
  },
@@ -11662,105 +11388,30 @@
11662
11388
  }
11663
11389
  }
11664
11390
  },
11665
- "ViewAmount": {
11666
- "fields": {
11667
- "is_unlimited": {
11668
- "rule": "required",
11669
- "type": "bool",
11670
- "id": 1
11671
- },
11672
- "num": {
11673
- "rule": "required",
11674
- "type": "string",
11675
- "id": 2
11676
- }
11677
- }
11678
- },
11679
- "ViewDetail": {
11680
- "fields": {
11681
- "key": {
11682
- "rule": "required",
11683
- "type": "uint32",
11684
- "id": 1
11685
- },
11686
- "value": {
11687
- "rule": "required",
11688
- "type": "string",
11689
- "id": 2
11690
- },
11691
- "is_overview": {
11692
- "rule": "required",
11693
- "type": "bool",
11694
- "id": 3
11695
- },
11696
- "has_icon": {
11697
- "rule": "required",
11698
- "type": "bool",
11699
- "id": 4
11700
- }
11701
- }
11702
- },
11703
- "ViewTipType": {
11391
+ "UiAnimationType": {
11704
11392
  "values": {
11705
- "Default": 0,
11706
- "Highlight": 1,
11707
- "Recommend": 2,
11708
- "Warning": 3,
11709
- "Danger": 4
11710
- }
11711
- },
11712
- "ViewTip": {
11713
- "fields": {
11714
- "type": {
11715
- "rule": "required",
11716
- "type": "ViewTipType",
11717
- "id": 1
11718
- },
11719
- "text": {
11720
- "rule": "required",
11721
- "type": "string",
11722
- "id": 2
11723
- }
11393
+ "Unknown": 0,
11394
+ "Signing": 1
11724
11395
  }
11725
11396
  },
11726
- "ViewSignPage": {
11727
- "fields": {
11728
- "title": {
11729
- "rule": "required",
11730
- "type": "string",
11731
- "id": 1
11732
- },
11733
- "amount": {
11734
- "type": "ViewAmount",
11735
- "id": 2
11736
- },
11737
- "general": {
11738
- "rule": "repeated",
11739
- "type": "ViewDetail",
11740
- "id": 3
11741
- },
11742
- "tip": {
11743
- "type": "ViewTip",
11744
- "id": 4
11745
- }
11397
+ "UiAnimationCommand": {
11398
+ "values": {
11399
+ "CommandUnknown": 0,
11400
+ "Start": 1,
11401
+ "Stop": 2,
11402
+ "Refresh": 3
11746
11403
  }
11747
11404
  },
11748
- "ViewVerifyPage": {
11405
+ "UiAnimationRequest": {
11749
11406
  "fields": {
11750
- "title": {
11407
+ "command": {
11751
11408
  "rule": "required",
11752
- "type": "string",
11409
+ "type": "UiAnimationCommand",
11753
11410
  "id": 1
11754
11411
  },
11755
- "address": {
11756
- "rule": "required",
11757
- "type": "string",
11412
+ "type": {
11413
+ "type": "UiAnimationType",
11758
11414
  "id": 2
11759
- },
11760
- "path": {
11761
- "rule": "required",
11762
- "type": "string",
11763
- "id": 3
11764
11415
  }
11765
11416
  }
11766
11417
  },
@@ -11846,181 +11497,474 @@
11846
11497
  }
11847
11498
  }
11848
11499
  },
11849
- "TonSignData": {
11500
+ "ProtocolInfoRequest": {
11850
11501
  "fields": {
11851
- "address_n": {
11502
+ "eventless_wallet_session": {
11503
+ "type": "bool",
11504
+ "id": 1,
11505
+ "options": {
11506
+ "default": false
11507
+ }
11508
+ }
11509
+ }
11510
+ },
11511
+ "ProtocolInfo": {
11512
+ "fields": {
11513
+ "version": {
11514
+ "rule": "required",
11515
+ "type": "uint32",
11516
+ "id": 1
11517
+ },
11518
+ "build_fingerprint": {
11519
+ "rule": "required",
11520
+ "type": "string",
11521
+ "id": 2
11522
+ },
11523
+ "supported_messages": {
11852
11524
  "rule": "repeated",
11853
11525
  "type": "uint32",
11854
- "id": 1,
11855
- "options": {
11856
- "packed": false
11857
- }
11526
+ "id": 3,
11527
+ "options": {
11528
+ "packed": false
11529
+ }
11530
+ }
11531
+ }
11532
+ },
11533
+ "Ping": {
11534
+ "fields": {
11535
+ "message": {
11536
+ "type": "string",
11537
+ "id": 1,
11538
+ "options": {
11539
+ "default": ""
11540
+ }
11541
+ }
11542
+ }
11543
+ },
11544
+ "Success": {
11545
+ "fields": {
11546
+ "message": {
11547
+ "type": "string",
11548
+ "id": 1,
11549
+ "options": {
11550
+ "default": ""
11551
+ }
11552
+ }
11553
+ }
11554
+ },
11555
+ "Failure": {
11556
+ "fields": {
11557
+ "code": {
11558
+ "rule": "required",
11559
+ "type": "FailureType",
11560
+ "id": 1
11561
+ },
11562
+ "subcode": {
11563
+ "type": "uint32",
11564
+ "id": 2
11565
+ },
11566
+ "message": {
11567
+ "type": "string",
11568
+ "id": 3
11569
+ }
11570
+ },
11571
+ "nested": {
11572
+ "FailureType": {
11573
+ "values": {
11574
+ "Failure_InvalidMessage": 1,
11575
+ "Failure_UndefinedError": 2,
11576
+ "Failure_UsageError": 3,
11577
+ "Failure_DataError": 4,
11578
+ "Failure_ProcessError": 5
11579
+ }
11580
+ }
11581
+ }
11582
+ },
11583
+ "DeviceErrorCode": {
11584
+ "values": {
11585
+ "DeviceError_None": 0,
11586
+ "DeviceError_Busy": 1,
11587
+ "DeviceError_NotInitialized": 2,
11588
+ "DeviceError_ActionCancelled": 3,
11589
+ "DeviceError_PinAlreadyUsed": 4,
11590
+ "DeviceError_PersistFailed": 5,
11591
+ "DeviceError_SeError": 6,
11592
+ "DeviceError_InvalidLanguage": 7,
11593
+ "DeviceError_WallpaperNotUsable": 8,
11594
+ "DeviceError_DeviceLocked": 9
11595
+ }
11596
+ },
11597
+ "DeviceRebootType": {
11598
+ "values": {
11599
+ "Normal": 0,
11600
+ "Romloader": 1,
11601
+ "Bootloader": 2
11602
+ }
11603
+ },
11604
+ "DeviceReboot": {
11605
+ "fields": {
11606
+ "reboot_type": {
11607
+ "rule": "required",
11608
+ "type": "DeviceRebootType",
11609
+ "id": 1
11610
+ }
11611
+ }
11612
+ },
11613
+ "DeviceSettings": {
11614
+ "fields": {
11615
+ "bt_enable": {
11616
+ "type": "bool",
11617
+ "id": 1
11618
+ },
11619
+ "language": {
11620
+ "type": "string",
11621
+ "id": 2
11622
+ },
11623
+ "wallpaper_path": {
11624
+ "type": "string",
11625
+ "id": 3
11626
+ },
11627
+ "brightness": {
11628
+ "type": "uint32",
11629
+ "id": 4
11630
+ },
11631
+ "animation_enable": {
11632
+ "type": "bool",
11633
+ "id": 5
11634
+ },
11635
+ "tap_to_wake": {
11636
+ "type": "bool",
11637
+ "id": 6
11638
+ },
11639
+ "haptic_feedback": {
11640
+ "type": "bool",
11641
+ "id": 7
11642
+ },
11643
+ "device_name_display_enabled": {
11644
+ "type": "bool",
11645
+ "id": 8
11646
+ },
11647
+ "airgap_mode": {
11648
+ "type": "bool",
11649
+ "id": 9
11650
+ },
11651
+ "usb_lock_enable": {
11652
+ "type": "bool",
11653
+ "id": 10
11654
+ },
11655
+ "random_keypad": {
11656
+ "type": "bool",
11657
+ "id": 11
11658
+ },
11659
+ "passphrase_enable": {
11660
+ "type": "bool",
11661
+ "id": 100
11662
+ },
11663
+ "fido_enabled": {
11664
+ "type": "bool",
11665
+ "id": 101
11666
+ },
11667
+ "autolock_delay_ms": {
11668
+ "type": "uint32",
11669
+ "id": 102
11670
+ },
11671
+ "autoshutdown_delay_ms": {
11672
+ "type": "uint32",
11673
+ "id": 103
11674
+ },
11675
+ "label": {
11676
+ "type": "string",
11677
+ "id": 104
11678
+ }
11679
+ }
11680
+ },
11681
+ "DeviceSettingsGet": {
11682
+ "fields": {}
11683
+ },
11684
+ "DeviceSettingsSet": {
11685
+ "fields": {
11686
+ "settings": {
11687
+ "rule": "required",
11688
+ "type": "DeviceSettings",
11689
+ "id": 1
11690
+ }
11691
+ }
11692
+ },
11693
+ "DeviceSettingsPage": {
11694
+ "values": {
11695
+ "DeviceReset": 0,
11696
+ "DevicePinChange": 1,
11697
+ "DevicePassphrase": 2,
11698
+ "DeviceAirgap": 3
11699
+ }
11700
+ },
11701
+ "DeviceSettingsPageShow": {
11702
+ "fields": {
11703
+ "page": {
11704
+ "rule": "required",
11705
+ "type": "DeviceSettingsPage",
11706
+ "id": 1
11707
+ },
11708
+ "field_name": {
11709
+ "type": "string",
11710
+ "id": 2
11711
+ }
11712
+ }
11713
+ },
11714
+ "DeviceCertificate": {
11715
+ "fields": {
11716
+ "cert_and_pubkey": {
11717
+ "rule": "required",
11718
+ "type": "bytes",
11719
+ "id": 1
11720
+ },
11721
+ "private_key": {
11722
+ "type": "bytes",
11723
+ "id": 2
11724
+ }
11725
+ }
11726
+ },
11727
+ "DeviceCertificateWrite": {
11728
+ "fields": {
11729
+ "cert": {
11730
+ "rule": "required",
11731
+ "type": "DeviceCertificate",
11732
+ "id": 1
11733
+ }
11734
+ }
11735
+ },
11736
+ "DeviceCertificateRead": {
11737
+ "fields": {}
11738
+ },
11739
+ "DeviceCertificateSignature": {
11740
+ "fields": {
11741
+ "data": {
11742
+ "rule": "required",
11743
+ "type": "bytes",
11744
+ "id": 1
11745
+ }
11746
+ }
11747
+ },
11748
+ "DeviceCertificateSign": {
11749
+ "fields": {
11750
+ "data": {
11751
+ "rule": "required",
11752
+ "type": "bytes",
11753
+ "id": 1
11754
+ }
11755
+ }
11756
+ },
11757
+ "DeviceMiscUsbMscControl": {
11758
+ "fields": {
11759
+ "enable": {
11760
+ "rule": "required",
11761
+ "type": "bool",
11762
+ "id": 1
11763
+ }
11764
+ }
11765
+ },
11766
+ "DeviceFactoryAck": {
11767
+ "values": {
11768
+ "FACTORY_ACK_SUCCESS": 0,
11769
+ "FACTORY_ACK_FAIL": 1
11770
+ }
11771
+ },
11772
+ "DeviceFactoryInfoManufactureTime": {
11773
+ "fields": {
11774
+ "year": {
11775
+ "rule": "required",
11776
+ "type": "uint32",
11777
+ "id": 1
11858
11778
  },
11859
- "type": {
11779
+ "month": {
11860
11780
  "rule": "required",
11861
- "type": "TonSignDataType",
11781
+ "type": "uint32",
11862
11782
  "id": 2
11863
11783
  },
11864
- "payload": {
11784
+ "day": {
11865
11785
  "rule": "required",
11866
- "type": "bytes",
11786
+ "type": "uint32",
11867
11787
  "id": 3
11868
11788
  },
11869
- "schema": {
11870
- "type": "string",
11789
+ "hour": {
11790
+ "rule": "required",
11791
+ "type": "uint32",
11871
11792
  "id": 4
11872
11793
  },
11873
- "appdomain": {
11794
+ "minute": {
11874
11795
  "rule": "required",
11875
- "type": "string",
11796
+ "type": "uint32",
11876
11797
  "id": 5
11877
11798
  },
11878
- "timestamp": {
11799
+ "second": {
11879
11800
  "rule": "required",
11880
- "type": "uint64",
11801
+ "type": "uint32",
11881
11802
  "id": 6
11882
- },
11883
- "from_address": {
11884
- "type": "string",
11885
- "id": 7
11886
- },
11887
- "wallet_version": {
11888
- "type": "TonWalletVersion",
11889
- "id": 8,
11890
- "options": {
11891
- "default": "V4R2"
11892
- }
11893
- },
11894
- "wallet_id": {
11803
+ }
11804
+ }
11805
+ },
11806
+ "DeviceFactoryInfo": {
11807
+ "fields": {
11808
+ "version": {
11895
11809
  "type": "uint32",
11896
- "id": 9,
11897
- "options": {
11898
- "default": 698983191
11899
- }
11810
+ "id": 1
11900
11811
  },
11901
- "workchain": {
11902
- "type": "TonWorkChain",
11903
- "id": 10,
11904
- "options": {
11905
- "default": "BASECHAIN"
11906
- }
11812
+ "serial_number": {
11813
+ "type": "string",
11814
+ "id": 2
11907
11815
  },
11908
- "is_bounceable": {
11816
+ "burn_in_completed": {
11909
11817
  "type": "bool",
11910
- "id": 11,
11911
- "options": {
11912
- "default": false
11913
- }
11818
+ "id": 3
11914
11819
  },
11915
- "is_testnet_only": {
11820
+ "factory_test_completed": {
11916
11821
  "type": "bool",
11917
- "id": 12,
11918
- "options": {
11919
- "default": false
11920
- }
11822
+ "id": 4
11823
+ },
11824
+ "manufacture_time": {
11825
+ "type": "DeviceFactoryInfoManufactureTime",
11826
+ "id": 5
11921
11827
  }
11922
- },
11923
- "nested": {
11924
- "TonSignDataType": {
11925
- "values": {
11926
- "TEXT": 0,
11927
- "BINARY": 1,
11928
- "CELL": 2
11929
- }
11828
+ }
11829
+ },
11830
+ "DeviceFactoryInfoSet": {
11831
+ "fields": {
11832
+ "info": {
11833
+ "rule": "required",
11834
+ "type": "DeviceFactoryInfo",
11835
+ "id": 1
11930
11836
  }
11931
11837
  }
11932
11838
  },
11933
- "TonSignedData": {
11839
+ "DeviceFactoryInfoGet": {
11840
+ "fields": {}
11841
+ },
11842
+ "DeviceFactoryPermanentLock": {
11934
11843
  "fields": {
11935
- "signature": {
11844
+ "check_a": {
11845
+ "rule": "required",
11936
11846
  "type": "bytes",
11937
11847
  "id": 1
11938
11848
  },
11939
- "digest": {
11849
+ "check_b": {
11850
+ "rule": "required",
11940
11851
  "type": "bytes",
11941
11852
  "id": 2
11942
11853
  }
11943
11854
  }
11944
11855
  },
11945
- "GetProtoVersion": {
11946
- "fields": {}
11947
- },
11948
- "ProtoVersion": {
11856
+ "DeviceFactoryTest": {
11949
11857
  "fields": {
11950
- "proto_version": {
11858
+ "burn_in_test": {
11951
11859
  "rule": "required",
11952
- "type": "uint32",
11860
+ "type": "bool",
11953
11861
  "id": 1
11954
11862
  }
11955
11863
  }
11956
11864
  },
11957
- "Ping": {
11865
+ "DeviceFirmwareTargetType": {
11866
+ "values": {
11867
+ "FW_MGMT_TARGET_INVALID": 0,
11868
+ "FW_MGMT_TARGET_CRATE": 1,
11869
+ "FW_MGMT_TARGET_ROMLOADER": 2,
11870
+ "FW_MGMT_TARGET_BOOTLOADER": 3,
11871
+ "FW_MGMT_TARGET_APPLICATION_P1": 4,
11872
+ "FW_MGMT_TARGET_APPLICATION_P2": 5,
11873
+ "FW_MGMT_TARGET_COPROCESSOR": 6,
11874
+ "FW_MGMT_TARGET_SE01": 7,
11875
+ "FW_MGMT_TARGET_SE02": 8,
11876
+ "FW_MGMT_TARGET_SE03": 9,
11877
+ "FW_MGMT_TARGET_SE04": 10
11878
+ }
11879
+ },
11880
+ "DeviceFirmwareUpdateTaskStatus": {
11881
+ "values": {
11882
+ "FW_MGMT_UPDATER_TASK_STATUS_PENDING": 0,
11883
+ "FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS": 1,
11884
+ "FW_MGMT_UPDATER_TASK_STATUS_FINISHED": 2,
11885
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND": 3,
11886
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ": 4,
11887
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE": 5,
11888
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY": 6,
11889
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL": 7,
11890
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT": 8,
11891
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY": 9,
11892
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS": 10
11893
+ }
11894
+ },
11895
+ "DeviceFirmwareTarget": {
11958
11896
  "fields": {
11959
- "message": {
11897
+ "target_id": {
11898
+ "rule": "required",
11899
+ "type": "DeviceFirmwareTargetType",
11900
+ "id": 1
11901
+ },
11902
+ "path": {
11903
+ "rule": "required",
11960
11904
  "type": "string",
11961
- "id": 1,
11962
- "options": {
11963
- "default": ""
11964
- }
11905
+ "id": 2
11965
11906
  }
11966
11907
  }
11967
11908
  },
11968
- "Success": {
11909
+ "DeviceFirmwareUpdateRequest": {
11969
11910
  "fields": {
11970
- "message": {
11971
- "type": "string",
11972
- "id": 1,
11973
- "options": {
11974
- "default": ""
11975
- }
11911
+ "targets": {
11912
+ "rule": "repeated",
11913
+ "type": "DeviceFirmwareTarget",
11914
+ "id": 1
11976
11915
  }
11977
11916
  }
11978
11917
  },
11979
- "Failure": {
11918
+ "DeviceFirmwareUpdateRecord": {
11980
11919
  "fields": {
11981
- "code": {
11982
- "type": "FailureType",
11920
+ "target_id": {
11921
+ "rule": "required",
11922
+ "type": "DeviceFirmwareTargetType",
11983
11923
  "id": 1
11984
11924
  },
11985
- "message": {
11925
+ "status": {
11926
+ "type": "DeviceFirmwareUpdateTaskStatus",
11927
+ "id": 10
11928
+ },
11929
+ "payload_version": {
11930
+ "type": "uint32",
11931
+ "id": 20
11932
+ },
11933
+ "path": {
11986
11934
  "type": "string",
11987
- "id": 2
11935
+ "id": 30
11988
11936
  }
11989
- },
11990
- "nested": {
11991
- "FailureType": {
11992
- "values": {
11993
- "Failure_UnexpectedMessage": 1,
11994
- "Failure_ButtonExpected": 2,
11995
- "Failure_DataError": 3,
11996
- "Failure_ActionCancelled": 4,
11997
- "Failure_PinExpected": 5,
11998
- "Failure_PinCancelled": 6,
11999
- "Failure_PinInvalid": 7,
12000
- "Failure_InvalidSignature": 8,
12001
- "Failure_ProcessError": 9,
12002
- "Failure_NotEnoughFunds": 10,
12003
- "Failure_NotInitialized": 11,
12004
- "Failure_PinMismatch": 12,
12005
- "Failure_WipeCodeMismatch": 13,
12006
- "Failure_InvalidSession": 14,
12007
- "Failure_FirmwareError": 99
12008
- }
12009
- }
12010
- }
12011
- },
12012
- "DevRebootType": {
12013
- "values": {
12014
- "Normal": 0,
12015
- "Boardloader": 1,
12016
- "Bootloader": 2
12017
11937
  }
12018
11938
  },
12019
- "DevReboot": {
11939
+ "DeviceFirmwareUpdateRecordFields": {
12020
11940
  "fields": {
12021
- "reboot_type": {
12022
- "rule": "required",
12023
- "type": "DevRebootType",
11941
+ "status": {
11942
+ "type": "bool",
11943
+ "id": 10
11944
+ },
11945
+ "payload_version": {
11946
+ "type": "bool",
11947
+ "id": 20
11948
+ },
11949
+ "path": {
11950
+ "type": "bool",
11951
+ "id": 30
11952
+ }
11953
+ }
11954
+ },
11955
+ "DeviceFirmwareUpdateStatusGet": {
11956
+ "fields": {
11957
+ "fields": {
11958
+ "type": "DeviceFirmwareUpdateRecordFields",
11959
+ "id": 1
11960
+ }
11961
+ }
11962
+ },
11963
+ "DeviceFirmwareUpdateStatus": {
11964
+ "fields": {
11965
+ "records": {
11966
+ "rule": "repeated",
11967
+ "type": "DeviceFirmwareUpdateRecord",
12024
11968
  "id": 1
12025
11969
  }
12026
11970
  }
@@ -12032,23 +11976,25 @@
12032
11976
  "MINI": 2,
12033
11977
  "TOUCH": 3,
12034
11978
  "PRO": 5,
12035
- "CLASSIC1S_PURE": 6
11979
+ "CLASSIC1S_PURE": 6,
11980
+ "PRO2": 7,
11981
+ "NEO": 8
12036
11982
  }
12037
11983
  },
12038
- "DevSeType": {
11984
+ "DeviceSeType": {
12039
11985
  "values": {
12040
11986
  "THD89": 0,
12041
11987
  "SE608A": 1
12042
11988
  }
12043
11989
  },
12044
- "DevSEState": {
11990
+ "DeviceSEState": {
12045
11991
  "values": {
12046
11992
  "BOOT": 0,
12047
11993
  "APP_FACTORY": 51,
12048
11994
  "APP": 85
12049
11995
  }
12050
11996
  },
12051
- "DevFirmwareImageInfo": {
11997
+ "DeviceFirmwareImageInfo": {
12052
11998
  "fields": {
12053
11999
  "version": {
12054
12000
  "type": "string",
@@ -12064,19 +12010,15 @@
12064
12010
  }
12065
12011
  }
12066
12012
  },
12067
- "DevHardwareInfo": {
12013
+ "DeviceHardwareInfo": {
12068
12014
  "fields": {
12069
- "device_type": {
12015
+ "Device_type": {
12070
12016
  "type": "DeviceType",
12071
12017
  "id": 10
12072
12018
  },
12073
12019
  "serial_no": {
12074
12020
  "type": "string",
12075
- "id": 11
12076
- },
12077
- "device_id": {
12078
- "type": "string",
12079
- "id": 12
12021
+ "id": 20
12080
12022
  },
12081
12023
  "hardware_version": {
12082
12024
  "type": "string",
@@ -12084,67 +12026,71 @@
12084
12026
  },
12085
12027
  "hardware_version_raw_adc": {
12086
12028
  "type": "uint32",
12087
- "id": 101
12029
+ "id": 110
12088
12030
  }
12089
12031
  }
12090
12032
  },
12091
- "DevMainMcuInfo": {
12033
+ "DeviceMainMcuInfo": {
12092
12034
  "fields": {
12093
- "board": {
12094
- "type": "DevFirmwareImageInfo",
12035
+ "romloader": {
12036
+ "type": "DeviceFirmwareImageInfo",
12095
12037
  "id": 10
12096
12038
  },
12097
- "boot": {
12098
- "type": "DevFirmwareImageInfo",
12039
+ "bootloader": {
12040
+ "type": "DeviceFirmwareImageInfo",
12099
12041
  "id": 20
12100
12042
  },
12101
- "app": {
12102
- "type": "DevFirmwareImageInfo",
12043
+ "application": {
12044
+ "type": "DeviceFirmwareImageInfo",
12103
12045
  "id": 30
12046
+ },
12047
+ "application_data": {
12048
+ "type": "DeviceFirmwareImageInfo",
12049
+ "id": 40
12104
12050
  }
12105
12051
  }
12106
12052
  },
12107
- "DevBluetoothInfo": {
12053
+ "DeviceCoprocessorInfo": {
12108
12054
  "fields": {
12109
- "boot": {
12110
- "type": "DevFirmwareImageInfo",
12055
+ "bootloader": {
12056
+ "type": "DeviceFirmwareImageInfo",
12111
12057
  "id": 20
12112
12058
  },
12113
- "app": {
12114
- "type": "DevFirmwareImageInfo",
12059
+ "application": {
12060
+ "type": "DeviceFirmwareImageInfo",
12115
12061
  "id": 30
12116
12062
  },
12117
- "adv_name": {
12063
+ "bt_adv_name": {
12118
12064
  "type": "string",
12119
12065
  "id": 100
12120
12066
  },
12121
- "mac": {
12067
+ "bt_mac": {
12122
12068
  "type": "bytes",
12123
12069
  "id": 110
12124
12070
  }
12125
12071
  }
12126
12072
  },
12127
- "DevSEInfo": {
12073
+ "DeviceSEInfo": {
12128
12074
  "fields": {
12129
- "boot": {
12130
- "type": "DevFirmwareImageInfo",
12075
+ "bootloader": {
12076
+ "type": "DeviceFirmwareImageInfo",
12131
12077
  "id": 20
12132
12078
  },
12133
- "app": {
12134
- "type": "DevFirmwareImageInfo",
12079
+ "application": {
12080
+ "type": "DeviceFirmwareImageInfo",
12135
12081
  "id": 30
12136
12082
  },
12137
12083
  "type": {
12138
- "type": "DevSeType",
12084
+ "type": "DeviceSeType",
12139
12085
  "id": 100
12140
12086
  },
12141
12087
  "state": {
12142
- "type": "DevSEState",
12088
+ "type": "DeviceSEState",
12143
12089
  "id": 110
12144
12090
  }
12145
12091
  }
12146
12092
  },
12147
- "DevInfoTargets": {
12093
+ "DeviceInfoTargets": {
12148
12094
  "fields": {
12149
12095
  "hw": {
12150
12096
  "type": "bool",
@@ -12154,7 +12100,7 @@
12154
12100
  "type": "bool",
12155
12101
  "id": 200
12156
12102
  },
12157
- "bt": {
12103
+ "coprocessor": {
12158
12104
  "type": "bool",
12159
12105
  "id": 300
12160
12106
  },
@@ -12173,14 +12119,10 @@
12173
12119
  "se4": {
12174
12120
  "type": "bool",
12175
12121
  "id": 430
12176
- },
12177
- "status": {
12178
- "type": "bool",
12179
- "id": 10000
12180
12122
  }
12181
12123
  }
12182
12124
  },
12183
- "DevInfoTypes": {
12125
+ "DeviceInfoTypes": {
12184
12126
  "fields": {
12185
12127
  "version": {
12186
12128
  "type": "bool",
@@ -12200,42 +12142,14 @@
12200
12142
  }
12201
12143
  }
12202
12144
  },
12203
- "DevStatus": {
12204
- "fields": {
12205
- "language": {
12206
- "type": "string",
12207
- "id": 100
12208
- },
12209
- "bt_enable": {
12210
- "type": "bool",
12211
- "id": 101
12212
- },
12213
- "init_states": {
12214
- "type": "bool",
12215
- "id": 102
12216
- },
12217
- "backup_required": {
12218
- "type": "bool",
12219
- "id": 200
12220
- },
12221
- "passphrase_protection": {
12222
- "type": "bool",
12223
- "id": 201
12224
- },
12225
- "label": {
12226
- "type": "string",
12227
- "id": 300
12228
- }
12229
- }
12230
- },
12231
- "DevGetDeviceInfo": {
12145
+ "DeviceInfoGet": {
12232
12146
  "fields": {
12233
12147
  "targets": {
12234
- "type": "DevInfoTargets",
12148
+ "type": "DeviceInfoTargets",
12235
12149
  "id": 1
12236
12150
  },
12237
12151
  "types": {
12238
- "type": "DevInfoTypes",
12152
+ "type": "DeviceInfoTypes",
12239
12153
  "id": 2
12240
12154
  }
12241
12155
  }
@@ -12248,166 +12162,149 @@
12248
12162
  "id": 1
12249
12163
  },
12250
12164
  "hw": {
12251
- "type": "DevHardwareInfo",
12165
+ "type": "DeviceHardwareInfo",
12252
12166
  "id": 100
12253
12167
  },
12254
12168
  "fw": {
12255
- "type": "DevMainMcuInfo",
12169
+ "type": "DeviceMainMcuInfo",
12256
12170
  "id": 200
12257
12171
  },
12258
- "bt": {
12259
- "type": "DevBluetoothInfo",
12172
+ "coprocessor": {
12173
+ "type": "DeviceCoprocessorInfo",
12260
12174
  "id": 300
12261
12175
  },
12262
12176
  "se1": {
12263
- "type": "DevSEInfo",
12177
+ "type": "DeviceSEInfo",
12264
12178
  "id": 400
12265
12179
  },
12266
12180
  "se2": {
12267
- "type": "DevSEInfo",
12181
+ "type": "DeviceSEInfo",
12268
12182
  "id": 410
12269
12183
  },
12270
12184
  "se3": {
12271
- "type": "DevSEInfo",
12185
+ "type": "DeviceSEInfo",
12272
12186
  "id": 420
12273
12187
  },
12274
12188
  "se4": {
12275
- "type": "DevSEInfo",
12189
+ "type": "DeviceSEInfo",
12276
12190
  "id": 430
12277
- },
12278
- "status": {
12279
- "type": "DevStatus",
12280
- "id": 10000
12281
12191
  }
12282
12192
  }
12283
12193
  },
12284
- "DevFirmwareTargetType": {
12194
+ "DeviceSessionErrorCode": {
12285
12195
  "values": {
12286
- "TARGET_MAIN_APP": 0,
12287
- "TARGET_MAIN_BOOT": 1,
12288
- "TARGET_BT": 2,
12289
- "TARGET_SE1": 3,
12290
- "TARGET_SE2": 4,
12291
- "TARGET_SE3": 5,
12292
- "TARGET_SE4": 6,
12293
- "TARGET_RESOURCE": 10
12294
- }
12295
- },
12296
- "DevFirmwareTarget": {
12297
- "fields": {
12298
- "target_id": {
12299
- "rule": "required",
12300
- "type": "DevFirmwareTargetType",
12301
- "id": 1
12302
- },
12303
- "path": {
12304
- "rule": "required",
12305
- "type": "string",
12306
- "id": 2
12307
- }
12196
+ "DeviceSessionError_None": 0,
12197
+ "DeviceSessionError_UserCancelled": 1,
12198
+ "DeviceSessionError_InvalidSession": 2,
12199
+ "DeviceSessionError_AttachPinUnavailable": 3,
12200
+ "DeviceSessionError_PassphraseDisabled": 4,
12201
+ "DeviceSessionError_Busy": 5
12308
12202
  }
12309
12203
  },
12310
- "DevFirmwareUpdate": {
12311
- "fields": {
12312
- "targets": {
12313
- "rule": "repeated",
12314
- "type": "DevFirmwareTarget",
12315
- "id": 1
12316
- }
12204
+ "DeviceSessionSeedDomain": {
12205
+ "values": {
12206
+ "SeedDomain_Standard": 1,
12207
+ "SeedDomain_Cardano": 2
12317
12208
  }
12318
12209
  },
12319
- "DevFirmwareInstallProgress": {
12210
+ "DeviceSessionGet": {
12320
12211
  "fields": {
12321
- "target_id": {
12322
- "rule": "required",
12323
- "type": "DevFirmwareTargetType",
12212
+ "session_id": {
12213
+ "type": "bytes",
12324
12214
  "id": 1
12325
12215
  },
12326
- "progress": {
12327
- "rule": "required",
12328
- "type": "uint32",
12216
+ "btc_test_address": {
12217
+ "type": "string",
12329
12218
  "id": 2
12330
12219
  },
12331
- "stage": {
12332
- "type": "string",
12220
+ "seed_domains": {
12221
+ "rule": "repeated",
12222
+ "type": "DeviceSessionSeedDomain",
12333
12223
  "id": 3
12334
12224
  }
12335
12225
  }
12336
12226
  },
12337
- "DevFirmwareUpdateStatusEntry": {
12227
+ "DeviceSession": {
12338
12228
  "fields": {
12339
- "target_id": {
12340
- "rule": "required",
12341
- "type": "DevFirmwareTargetType",
12229
+ "session_id": {
12230
+ "type": "bytes",
12342
12231
  "id": 1
12343
12232
  },
12344
- "status": {
12345
- "rule": "required",
12346
- "type": "uint32",
12233
+ "btc_test_address": {
12234
+ "type": "string",
12347
12235
  "id": 2
12348
12236
  }
12349
12237
  }
12350
12238
  },
12351
- "DevGetFirmwareUpdateStatus": {
12352
- "fields": {}
12239
+ "DeviceSessionPinType": {
12240
+ "values": {
12241
+ "Any": 1,
12242
+ "Main": 2,
12243
+ "AttachToPin": 3
12244
+ }
12353
12245
  },
12354
- "DevFirmwareUpdateStatus": {
12246
+ "DeviceSessionAskPin": {
12355
12247
  "fields": {
12356
- "targets": {
12357
- "rule": "repeated",
12358
- "type": "DevFirmwareUpdateStatusEntry",
12248
+ "type": {
12249
+ "type": "DeviceSessionPinType",
12359
12250
  "id": 1
12360
12251
  }
12361
12252
  }
12362
12253
  },
12363
- "FactoryDeviceInfoSettings": {
12254
+ "DeviceSessionAskPassphrase": {
12364
12255
  "fields": {
12365
- "serial_no": {
12256
+ "passphrase": {
12366
12257
  "type": "string",
12367
12258
  "id": 1
12368
12259
  },
12369
- "cpu_info": {
12370
- "type": "string",
12260
+ "on_device": {
12261
+ "rule": "required",
12262
+ "type": "bool",
12371
12263
  "id": 2
12372
- },
12373
- "pre_firmware": {
12374
- "type": "string",
12375
- "id": 3
12376
12264
  }
12377
12265
  }
12378
12266
  },
12379
- "FactoryGetDeviceInfo": {
12380
- "fields": {}
12267
+ "DeviceSessionAskPin_FailureSubCodes": {
12268
+ "values": {
12269
+ "UserCancel": 1
12270
+ }
12381
12271
  },
12382
- "FactoryDeviceInfo": {
12272
+ "DeviceStatus": {
12383
12273
  "fields": {
12384
- "serial_no": {
12274
+ "device_id": {
12385
12275
  "type": "string",
12386
12276
  "id": 1
12387
12277
  },
12388
- "spi_flash_info": {
12389
- "type": "string",
12278
+ "unlocked": {
12279
+ "type": "bool",
12390
12280
  "id": 2
12391
12281
  },
12392
- "se_info": {
12393
- "type": "string",
12282
+ "init_states": {
12283
+ "type": "bool",
12394
12284
  "id": 3
12395
12285
  },
12396
- "nft_voucher": {
12397
- "type": "bytes",
12286
+ "backup_required": {
12287
+ "type": "bool",
12398
12288
  "id": 4
12399
12289
  },
12400
- "cpu_info": {
12401
- "type": "string",
12402
- "id": 5
12290
+ "passphrase_enabled": {
12291
+ "type": "bool",
12292
+ "id": 10
12403
12293
  },
12404
- "pre_firmware": {
12405
- "type": "string",
12406
- "id": 6
12294
+ "attach_to_pin_enabled": {
12295
+ "type": "bool",
12296
+ "id": 11
12297
+ },
12298
+ "unlocked_by_attach_to_pin": {
12299
+ "type": "bool",
12300
+ "id": 12
12407
12301
  }
12408
12302
  }
12409
12303
  },
12410
- "FilesystemFixPermission": {
12304
+ "DeviceStatusGet": {
12305
+ "fields": {}
12306
+ },
12307
+ "FilesystemPermissionFix": {
12411
12308
  "fields": {}
12412
12309
  },
12413
12310
  "FilesystemPathInfo": {
@@ -12620,77 +12517,293 @@
12620
12517
  }
12621
12518
  },
12622
12519
  "FilesystemFormat": {
12623
- "fields": {}
12520
+ "fields": {
12521
+ "data": {
12522
+ "rule": "required",
12523
+ "type": "bool",
12524
+ "id": 1
12525
+ },
12526
+ "user": {
12527
+ "rule": "required",
12528
+ "type": "bool",
12529
+ "id": 2
12530
+ }
12531
+ }
12532
+ },
12533
+ "InternalMyAddressRequest": {
12534
+ "fields": {
12535
+ "coin_type": {
12536
+ "rule": "required",
12537
+ "type": "uint32",
12538
+ "id": 1
12539
+ },
12540
+ "chain_id": {
12541
+ "rule": "required",
12542
+ "type": "uint32",
12543
+ "id": 2
12544
+ },
12545
+ "account_index": {
12546
+ "rule": "required",
12547
+ "type": "uint32",
12548
+ "id": 3
12549
+ },
12550
+ "derive_type": {
12551
+ "rule": "required",
12552
+ "type": "uint32",
12553
+ "id": 4
12554
+ }
12555
+ }
12556
+ },
12557
+ "NftUpdate": {
12558
+ "fields": {
12559
+ "file_name_no_ext": {
12560
+ "rule": "required",
12561
+ "type": "string",
12562
+ "id": 1
12563
+ }
12564
+ }
12624
12565
  },
12625
12566
  "OnboardingStep": {
12626
12567
  "values": {
12627
12568
  "ONBOARDING_STEP_UNKNOWN": 0,
12628
- "ONBOARDING_STEP_DEVICE_VERIFICATION": 1,
12569
+ "ONBOARDING_STEP_CHECKING": 1,
12629
12570
  "ONBOARDING_STEP_PERSONALIZATION": 2,
12630
- "ONBOARDING_STEP_SETUP": 3,
12631
- "ONBOARDING_STEP_FIRMWARE": 4
12571
+ "ONBOARDING_STEP_PIN": 3,
12572
+ "ONBOARDING_STEP_SETUP": 4,
12573
+ "ONBOARDING_STEP_DONE": 5
12574
+ }
12575
+ },
12576
+ "OnboardingPhase": {
12577
+ "values": {
12578
+ "ONBOARDING_PHASE_UNKNOWN": 0,
12579
+ "ONBOARDING_PHASE_SAFETY_CHECK": 1,
12580
+ "ONBOARDING_PHASE_PIN_SETUP": 2,
12581
+ "ONBOARDING_PHASE_FINGERPRINT_SETUP": 3,
12582
+ "ONBOARDING_PHASE_SETUP_CHOICE": 4,
12583
+ "ONBOARDING_PHASE_WALLET_CREATE_START": 5,
12584
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW": 6,
12585
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM": 7,
12586
+ "ONBOARDING_PHASE_RESTORE_METHOD_CHOICE": 8,
12587
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE": 9,
12588
+ "ONBOARDING_PHASE_SEEDCARD_RESTORE": 10,
12589
+ "ONBOARDING_PHASE_WALLET_READY": 11,
12590
+ "ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT": 12,
12591
+ "ONBOARDING_PHASE_SEEDCARD_BACKUP": 13
12592
+ }
12593
+ },
12594
+ "OnboardingSetupKind": {
12595
+ "values": {
12596
+ "ONBOARDING_SETUP_KIND_UNKNOWN": 0,
12597
+ "ONBOARDING_SETUP_KIND_CHOICE": 1,
12598
+ "ONBOARDING_SETUP_KIND_CREATE": 2,
12599
+ "ONBOARDING_SETUP_KIND_RESTORE": 3
12600
+ }
12601
+ },
12602
+ "OnboardingSetupMethod": {
12603
+ "values": {
12604
+ "ONBOARDING_SETUP_METHOD_UNKNOWN": 0,
12605
+ "ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE": 1,
12606
+ "ONBOARDING_SETUP_METHOD_SEEDCARD": 2
12607
+ }
12608
+ },
12609
+ "OnboardingSetupStatus": {
12610
+ "fields": {
12611
+ "kind": {
12612
+ "type": "OnboardingSetupKind",
12613
+ "id": 1
12614
+ },
12615
+ "method": {
12616
+ "type": "OnboardingSetupMethod",
12617
+ "id": 2
12618
+ }
12632
12619
  }
12633
12620
  },
12634
- "GetOnboardingStatus": {
12621
+ "OnboardingStatusGet": {
12635
12622
  "fields": {}
12636
12623
  },
12637
12624
  "OnboardingStatus": {
12638
12625
  "fields": {
12639
12626
  "step": {
12640
- "rule": "required",
12641
12627
  "type": "OnboardingStep",
12642
12628
  "id": 1
12643
12629
  },
12644
- "setup": {
12645
- "type": "Setup",
12630
+ "phase": {
12631
+ "type": "OnboardingPhase",
12646
12632
  "id": 2
12647
12633
  },
12648
- "detail_code": {
12649
- "type": "uint32",
12634
+ "setup": {
12635
+ "type": "OnboardingSetupStatus",
12650
12636
  "id": 3
12651
12637
  },
12652
- "detail_str": {
12638
+ "pin_set": {
12639
+ "type": "bool",
12640
+ "id": 4
12641
+ },
12642
+ "wallet_initialized": {
12643
+ "type": "bool",
12644
+ "id": 5
12645
+ }
12646
+ }
12647
+ },
12648
+ "PortfolioUpdate": {
12649
+ "fields": {}
12650
+ },
12651
+ "ViewAmount": {
12652
+ "fields": {
12653
+ "is_unlimited": {
12654
+ "rule": "required",
12655
+ "type": "bool",
12656
+ "id": 1
12657
+ },
12658
+ "num": {
12659
+ "rule": "required",
12660
+ "type": "string",
12661
+ "id": 2
12662
+ }
12663
+ }
12664
+ },
12665
+ "ViewDetail": {
12666
+ "fields": {
12667
+ "key": {
12668
+ "rule": "required",
12669
+ "type": "uint32",
12670
+ "id": 1
12671
+ },
12672
+ "value": {
12673
+ "rule": "required",
12653
12674
  "type": "string",
12675
+ "id": 2
12676
+ },
12677
+ "is_overview": {
12678
+ "rule": "required",
12679
+ "type": "bool",
12680
+ "id": 3
12681
+ },
12682
+ "has_icon": {
12683
+ "rule": "required",
12684
+ "type": "bool",
12654
12685
  "id": 4
12655
12686
  }
12656
- },
12657
- "nested": {
12658
- "Setup": {
12659
- "fields": {
12660
- "new_device": {
12661
- "type": "NewDevice",
12662
- "id": 1
12663
- },
12664
- "restore": {
12665
- "type": "Restore",
12666
- "id": 2
12667
- }
12668
- },
12669
- "nested": {
12670
- "NewDevice": {
12671
- "fields": {
12672
- "seedcard_backup": {
12673
- "type": "bool",
12674
- "id": 1
12675
- }
12676
- }
12677
- },
12678
- "Restore": {
12679
- "fields": {
12680
- "mnemonic": {
12681
- "type": "bool",
12682
- "id": 1
12683
- },
12684
- "seedcard": {
12685
- "type": "bool",
12686
- "id": 2
12687
- }
12688
- }
12689
- }
12687
+ }
12688
+ },
12689
+ "ViewTipType": {
12690
+ "values": {
12691
+ "Default": 0,
12692
+ "Highlight": 1,
12693
+ "Recommend": 2,
12694
+ "Warning": 3,
12695
+ "Danger": 4
12696
+ }
12697
+ },
12698
+ "ViewTip": {
12699
+ "fields": {
12700
+ "type": {
12701
+ "rule": "required",
12702
+ "type": "ViewTipType",
12703
+ "id": 1
12704
+ },
12705
+ "text": {
12706
+ "rule": "required",
12707
+ "type": "string",
12708
+ "id": 2
12709
+ }
12710
+ }
12711
+ },
12712
+ "ViewRawData": {
12713
+ "fields": {
12714
+ "initial_data": {
12715
+ "rule": "required",
12716
+ "type": "string",
12717
+ "id": 1
12718
+ },
12719
+ "placeholder": {
12720
+ "rule": "required",
12721
+ "type": "uint32",
12722
+ "id": 2
12723
+ }
12724
+ }
12725
+ },
12726
+ "ViewSignLayout": {
12727
+ "values": {
12728
+ "LayoutDefault": 0,
12729
+ "LayoutSafeTxCreate": 1,
12730
+ "LayoutFinalConfirm": 2,
12731
+ "Layout7702": 3,
12732
+ "LayoutFlat": 4,
12733
+ "LayoutEthApprove": 5
12734
+ }
12735
+ },
12736
+ "ViewSignPage": {
12737
+ "fields": {
12738
+ "title": {
12739
+ "rule": "required",
12740
+ "type": "string",
12741
+ "id": 1
12742
+ },
12743
+ "amount": {
12744
+ "type": "ViewAmount",
12745
+ "id": 2
12746
+ },
12747
+ "general": {
12748
+ "rule": "repeated",
12749
+ "type": "ViewDetail",
12750
+ "id": 3
12751
+ },
12752
+ "tip": {
12753
+ "type": "ViewTip",
12754
+ "id": 4
12755
+ },
12756
+ "raw_data": {
12757
+ "type": "ViewRawData",
12758
+ "id": 5
12759
+ },
12760
+ "slide_to_confirm": {
12761
+ "type": "bool",
12762
+ "id": 6,
12763
+ "options": {
12764
+ "default": true
12765
+ }
12766
+ },
12767
+ "layout": {
12768
+ "type": "ViewSignLayout",
12769
+ "id": 7,
12770
+ "options": {
12771
+ "default": "LayoutDefault"
12690
12772
  }
12691
12773
  }
12692
12774
  }
12693
12775
  },
12776
+ "ViewVerifyPage": {
12777
+ "fields": {
12778
+ "title": {
12779
+ "rule": "required",
12780
+ "type": "string",
12781
+ "id": 1
12782
+ },
12783
+ "address": {
12784
+ "rule": "required",
12785
+ "type": "string",
12786
+ "id": 2
12787
+ },
12788
+ "path": {
12789
+ "rule": "required",
12790
+ "type": "string",
12791
+ "id": 3
12792
+ },
12793
+ "network": {
12794
+ "type": "string",
12795
+ "id": 4
12796
+ },
12797
+ "derive_type": {
12798
+ "type": "string",
12799
+ "id": 5
12800
+ },
12801
+ "value_key": {
12802
+ "type": "uint32",
12803
+ "id": 6
12804
+ }
12805
+ }
12806
+ },
12694
12807
  "google": {
12695
12808
  "nested": {
12696
12809
  "protobuf": {