@onekeyfe/hd-core 1.2.0-alpha.13 → 1.2.0-alpha.130

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 (845) hide show
  1. package/__tests__/AllNetworkGetAddressBase.tracing.test.ts +390 -0
  2. package/__tests__/DeviceCommands.test.ts +694 -0
  3. package/__tests__/DeviceEventRegistration.test.ts +49 -0
  4. package/__tests__/base64Data.test.ts +69 -0
  5. package/__tests__/chain-params-onekey-compatibility.test.ts +229 -0
  6. package/__tests__/check-all-firmware-release-protocol-v2.test.ts +830 -0
  7. package/__tests__/check-firmware-release-protocol-v2.test.ts +270 -0
  8. package/__tests__/connectSettings.test.ts +45 -5
  9. package/__tests__/core-dispose.test.ts +34 -0
  10. package/__tests__/core-error-output.test.ts +39 -0
  11. package/__tests__/core-initialization.test.ts +23 -0
  12. package/__tests__/device-connector-protocol.test.ts +102 -0
  13. package/__tests__/device-features-state.test.ts +78 -0
  14. package/__tests__/device-identity.test.ts +52 -0
  15. package/__tests__/device-initialize-timeout.test.ts +56 -0
  16. package/__tests__/device-lifecycle-events.test.ts +518 -0
  17. package/__tests__/device-pool-state.test.ts +191 -0
  18. package/__tests__/device-settings.test.ts +569 -0
  19. package/__tests__/device-state-contract.test.ts +28 -0
  20. package/__tests__/device-state-events.test.ts +286 -0
  21. package/__tests__/device-state-mapper.test.ts +297 -0
  22. package/__tests__/device-state-projector.test.ts +114 -0
  23. package/__tests__/device-state-store.test.ts +109 -0
  24. package/__tests__/device-utils.test.ts +154 -0
  25. package/__tests__/device-wallet-session-store.test.ts +348 -1
  26. package/__tests__/deviceFeaturesUtils.test.ts +39 -0
  27. package/__tests__/devicePoolBootloaderPath.test.ts +64 -0
  28. package/__tests__/deviceSettings.test.ts +117 -0
  29. package/__tests__/deviceUploadNft.test.ts +345 -0
  30. package/__tests__/evmLedgerLegacySafety.test.ts +12 -6
  31. package/__tests__/evmSignTransaction.test.ts +69 -0
  32. package/__tests__/evmSignTypedData.test.ts +80 -0
  33. package/__tests__/filesystemValidation.test.ts +53 -0
  34. package/__tests__/firmware-memory-host.test.ts +126 -0
  35. package/__tests__/firmware-update/check-all-firmware-release.test.ts +175 -0
  36. package/__tests__/firmware-update/device-update-bootloader.test.ts +109 -0
  37. package/__tests__/firmware-update/firmware-artifact-source.test.ts +171 -0
  38. package/__tests__/firmware-update/firmware-host-binding.test.ts +79 -0
  39. package/__tests__/firmware-update/firmware-preparation-error.test.ts +27 -0
  40. package/__tests__/firmware-update/firmware-prepared-host-digest.test.ts +583 -0
  41. package/__tests__/firmware-update/firmware-prepared-resource-archive.test.ts +171 -0
  42. package/__tests__/firmware-update/firmware-update-bootloader-poll.test.ts +438 -0
  43. package/__tests__/firmware-update/firmware-update-capabilities.test.ts +13 -0
  44. package/__tests__/firmware-update/firmware-update-plan-bootloader-identity.test.ts +474 -0
  45. package/__tests__/firmware-update/firmware-update-plan.test.ts +819 -0
  46. package/__tests__/firmware-update/firmware-update-prepared-plan.test.ts +287 -0
  47. package/__tests__/firmware-update/firmware-update-prepared-resource-executors.test.ts +326 -0
  48. package/__tests__/firmware-update/firmware-update-v2-download-before-boot.test.ts +457 -0
  49. package/__tests__/firmware-update/firmware-update-v3-reconnect.test.ts +237 -0
  50. package/__tests__/firmware-update/firmware-update-v4-install-poll.test.ts +130 -0
  51. package/__tests__/firmware-update/firmware-update-v4-parameters.test.ts +85 -0
  52. package/__tests__/firmware-update/firmware-upload-source.test.ts +70 -0
  53. package/__tests__/get-device-state.test.ts +617 -0
  54. package/__tests__/homescreen.test.ts +81 -0
  55. package/__tests__/kaspa-public-types.type-test.ts +16 -0
  56. package/__tests__/kaspa-use-tweak-pro2.test.ts +20 -0
  57. package/__tests__/kaspaSignTransaction.test.ts +578 -0
  58. package/__tests__/known-device-public-types.type-test.ts +3 -0
  59. package/__tests__/logBlockEvent.test.ts +140 -1
  60. package/__tests__/method-protocol-support.test.ts +144 -0
  61. package/__tests__/networkUtils.test.ts +406 -0
  62. package/__tests__/open-wallet-session-error-response.test.ts +43 -0
  63. package/__tests__/open-wallet-session.test.ts +1899 -0
  64. package/__tests__/pro2Nft.test.ts +108 -0
  65. package/__tests__/pro2Wallpaper.test.ts +8 -19
  66. package/__tests__/protocol-binding.test.ts +89 -0
  67. package/__tests__/protocol-v2-firmware-targets.test.ts +105 -0
  68. package/__tests__/protocol-v2-ping.test.ts +28 -0
  69. package/__tests__/protocol-v2-resources.test.ts +385 -0
  70. package/__tests__/protocol-v2-ui-lifecycle.test.ts +91 -0
  71. package/__tests__/protocol-v2-unlock-policy.test.ts +339 -0
  72. package/__tests__/protocol-v2.test.ts +8084 -2515
  73. package/__tests__/protocolV2FileWrite.test.ts +221 -3
  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 +103 -0
  78. package/__tests__/request-context-logging.test.ts +16 -0
  79. package/__tests__/resourceBase64Boundary.test.ts +48 -0
  80. package/__tests__/search-devices.test.ts +191 -0
  81. package/__tests__/ton-sign-message.test.ts +84 -0
  82. package/__tests__/tron-sign-message-init.test.ts +74 -0
  83. package/__tests__/uiProgressThrottle.test.ts +74 -0
  84. package/__tests__/uiPromiseRegistry.test.ts +115 -0
  85. package/dist/api/BaseMethod.d.ts +14 -2
  86. package/dist/api/BaseMethod.d.ts.map +1 -1
  87. package/dist/api/CheckAllFirmwareRelease.d.ts +25 -1
  88. package/dist/api/CheckAllFirmwareRelease.d.ts.map +1 -1
  89. package/dist/api/CheckBLEFirmwareRelease.d.ts +3 -2
  90. package/dist/api/CheckBLEFirmwareRelease.d.ts.map +1 -1
  91. package/dist/api/CheckBootloaderRelease.d.ts +2 -1
  92. package/dist/api/CheckBootloaderRelease.d.ts.map +1 -1
  93. package/dist/api/CheckFirmwareRelease.d.ts +3 -2
  94. package/dist/api/CheckFirmwareRelease.d.ts.map +1 -1
  95. package/dist/api/CipherKeyValue.d.ts +1 -0
  96. package/dist/api/CipherKeyValue.d.ts.map +1 -1
  97. package/dist/api/ClearSessionCache.d.ts.map +1 -1
  98. package/dist/api/DetectDeviceConnectProtocol.d.ts +7 -0
  99. package/dist/api/DetectDeviceConnectProtocol.d.ts.map +1 -0
  100. package/dist/api/DirList.d.ts +1 -0
  101. package/dist/api/DirList.d.ts.map +1 -1
  102. package/dist/api/DirMake.d.ts +1 -0
  103. package/dist/api/DirMake.d.ts.map +1 -1
  104. package/dist/api/DirRemove.d.ts +1 -0
  105. package/dist/api/DirRemove.d.ts.map +1 -1
  106. package/dist/api/FileDelete.d.ts +1 -0
  107. package/dist/api/FileDelete.d.ts.map +1 -1
  108. package/dist/api/FileRead.d.ts +1 -0
  109. package/dist/api/FileRead.d.ts.map +1 -1
  110. package/dist/api/FileWrite.d.ts +2 -0
  111. package/dist/api/FileWrite.d.ts.map +1 -1
  112. package/dist/api/FirmwareUpdate.d.ts.map +1 -1
  113. package/dist/api/FirmwareUpdateV2.d.ts +13 -2
  114. package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
  115. package/dist/api/FirmwareUpdateV3.d.ts +7 -3
  116. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  117. package/dist/api/FirmwareUpdateV4.d.ts +57 -14
  118. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  119. package/dist/api/GetDeviceState.d.ts +8 -0
  120. package/dist/api/GetDeviceState.d.ts.map +1 -0
  121. package/dist/api/GetFeatures.d.ts +1 -1
  122. package/dist/api/GetFeatures.d.ts.map +1 -1
  123. package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
  124. package/dist/api/GetPassphraseState.d.ts +1 -0
  125. package/dist/api/GetPassphraseState.d.ts.map +1 -1
  126. package/dist/api/OpenWalletSession.d.ts +8 -0
  127. package/dist/api/OpenWalletSession.d.ts.map +1 -0
  128. package/dist/api/PathInfo.d.ts +1 -0
  129. package/dist/api/PathInfo.d.ts.map +1 -1
  130. package/dist/api/PromptWebDeviceAccess.d.ts.map +1 -1
  131. package/dist/api/SearchDevices.d.ts +3 -0
  132. package/dist/api/SearchDevices.d.ts.map +1 -1
  133. package/dist/api/UploadPortfolio.d.ts +1 -2
  134. package/dist/api/UploadPortfolio.d.ts.map +1 -1
  135. package/dist/api/alephium/AlephiumGetAddress.d.ts.map +1 -1
  136. package/dist/api/alephium/AlephiumSignMessage.d.ts.map +1 -1
  137. package/dist/api/alephium/AlephiumSignTransaction.d.ts.map +1 -1
  138. package/dist/api/algo/AlgoGetAddress.d.ts +1 -0
  139. package/dist/api/algo/AlgoGetAddress.d.ts.map +1 -1
  140. package/dist/api/algo/AlgoSignTransaction.d.ts +1 -0
  141. package/dist/api/algo/AlgoSignTransaction.d.ts.map +1 -1
  142. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts +1 -0
  143. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
  144. package/dist/api/aptos/AptosGetAddress.d.ts +1 -0
  145. package/dist/api/aptos/AptosGetAddress.d.ts.map +1 -1
  146. package/dist/api/aptos/AptosGetPublicKey.d.ts +1 -0
  147. package/dist/api/aptos/AptosGetPublicKey.d.ts.map +1 -1
  148. package/dist/api/aptos/AptosSignInMessage.d.ts +1 -0
  149. package/dist/api/aptos/AptosSignInMessage.d.ts.map +1 -1
  150. package/dist/api/aptos/AptosSignMessage.d.ts +1 -0
  151. package/dist/api/aptos/AptosSignMessage.d.ts.map +1 -1
  152. package/dist/api/aptos/AptosSignTransaction.d.ts +1 -0
  153. package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -1
  154. package/dist/api/benfen/BenfenGetAddress.d.ts.map +1 -1
  155. package/dist/api/benfen/BenfenGetPublicKey.d.ts.map +1 -1
  156. package/dist/api/benfen/BenfenSignMessage.d.ts.map +1 -1
  157. package/dist/api/benfen/BenfenSignTransaction.d.ts.map +1 -1
  158. package/dist/api/btc/BTCGetAddress.d.ts +1 -0
  159. package/dist/api/btc/BTCGetAddress.d.ts.map +1 -1
  160. package/dist/api/btc/BTCGetPublicKey.d.ts +1 -0
  161. package/dist/api/btc/BTCGetPublicKey.d.ts.map +1 -1
  162. package/dist/api/btc/BTCSignMessage.d.ts +1 -0
  163. package/dist/api/btc/BTCSignMessage.d.ts.map +1 -1
  164. package/dist/api/btc/BTCSignPsbt.d.ts +1 -0
  165. package/dist/api/btc/BTCSignPsbt.d.ts.map +1 -1
  166. package/dist/api/btc/BTCSignTransaction.d.ts +1 -0
  167. package/dist/api/btc/BTCSignTransaction.d.ts.map +1 -1
  168. package/dist/api/btc/BTCVerifyMessage.d.ts +1 -0
  169. package/dist/api/btc/BTCVerifyMessage.d.ts.map +1 -1
  170. package/dist/api/btc/helpers/versionLimit.d.ts +2 -0
  171. package/dist/api/btc/helpers/versionLimit.d.ts.map +1 -1
  172. package/dist/api/cardano/CardanoGetAddress.d.ts +1 -0
  173. package/dist/api/cardano/CardanoGetAddress.d.ts.map +1 -1
  174. package/dist/api/cardano/CardanoGetPublicKey.d.ts +1 -0
  175. package/dist/api/cardano/CardanoGetPublicKey.d.ts.map +1 -1
  176. package/dist/api/cardano/CardanoSignMessage.d.ts +1 -0
  177. package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -1
  178. package/dist/api/cardano/CardanoSignTransaction.d.ts +1 -0
  179. package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -1
  180. package/dist/api/conflux/ConfluxGetAddress.d.ts +2 -0
  181. package/dist/api/conflux/ConfluxGetAddress.d.ts.map +1 -1
  182. package/dist/api/conflux/ConfluxSignMessage.d.ts +2 -0
  183. package/dist/api/conflux/ConfluxSignMessage.d.ts.map +1 -1
  184. package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts +2 -0
  185. package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts.map +1 -1
  186. package/dist/api/conflux/ConfluxSignTransaction.d.ts +2 -0
  187. package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -1
  188. package/dist/api/cosmos/CosmosGetAddress.d.ts +1 -0
  189. package/dist/api/cosmos/CosmosGetAddress.d.ts.map +1 -1
  190. package/dist/api/cosmos/CosmosGetPublicKey.d.ts +1 -0
  191. package/dist/api/cosmos/CosmosGetPublicKey.d.ts.map +1 -1
  192. package/dist/api/cosmos/CosmosSignTransaction.d.ts +1 -0
  193. package/dist/api/cosmos/CosmosSignTransaction.d.ts.map +1 -1
  194. package/dist/api/device/DeviceCancel.d.ts +1 -0
  195. package/dist/api/device/DeviceCancel.d.ts.map +1 -1
  196. package/dist/api/device/DeviceChangePin.d.ts +1 -0
  197. package/dist/api/device/DeviceChangePin.d.ts.map +1 -1
  198. package/dist/api/device/DeviceFullyUploadResource.d.ts +1 -2
  199. package/dist/api/device/DeviceFullyUploadResource.d.ts.map +1 -1
  200. package/dist/api/device/DeviceLock.d.ts +1 -0
  201. package/dist/api/device/DeviceLock.d.ts.map +1 -1
  202. package/dist/api/device/DeviceRebootToBoardloader.d.ts +1 -0
  203. package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -1
  204. package/dist/api/device/DeviceRebootToBootloader.d.ts +1 -0
  205. package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -1
  206. package/dist/api/device/DeviceSettings.d.ts +1 -0
  207. package/dist/api/device/DeviceSettings.d.ts.map +1 -1
  208. package/dist/api/device/DeviceSupportFeatures.d.ts +1 -0
  209. package/dist/api/device/DeviceSupportFeatures.d.ts.map +1 -1
  210. package/dist/api/device/DeviceUnlock.d.ts +3 -2
  211. package/dist/api/device/DeviceUnlock.d.ts.map +1 -1
  212. package/dist/api/device/DeviceUpdateBootloader.d.ts +5 -1
  213. package/dist/api/device/DeviceUpdateBootloader.d.ts.map +1 -1
  214. package/dist/api/device/DeviceWipe.d.ts +1 -0
  215. package/dist/api/device/DeviceWipe.d.ts.map +1 -1
  216. package/dist/api/device/PreInitialize.d.ts +1 -0
  217. package/dist/api/device/PreInitialize.d.ts.map +1 -1
  218. package/dist/api/dynex/DnxGetAddress.d.ts.map +1 -1
  219. package/dist/api/dynex/DnxSignTransaction.d.ts.map +1 -1
  220. package/dist/api/evm/EVMGetAddress.d.ts +1 -0
  221. package/dist/api/evm/EVMGetAddress.d.ts.map +1 -1
  222. package/dist/api/evm/EVMGetPublicKey.d.ts +1 -0
  223. package/dist/api/evm/EVMGetPublicKey.d.ts.map +1 -1
  224. package/dist/api/evm/EVMSignMessage.d.ts +1 -0
  225. package/dist/api/evm/EVMSignMessage.d.ts.map +1 -1
  226. package/dist/api/evm/EVMSignMessageEIP712.d.ts.map +1 -1
  227. package/dist/api/evm/EVMSignTransaction.d.ts +1 -0
  228. package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -1
  229. package/dist/api/evm/EVMSignTypedData.d.ts +1 -0
  230. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  231. package/dist/api/evm/EVMVerifyMessage.d.ts +1 -0
  232. package/dist/api/evm/EVMVerifyMessage.d.ts.map +1 -1
  233. package/dist/api/evm/protocol.d.ts +3 -0
  234. package/dist/api/evm/protocol.d.ts.map +1 -0
  235. package/dist/api/filecoin/FilecoinGetAddress.d.ts +1 -0
  236. package/dist/api/filecoin/FilecoinGetAddress.d.ts.map +1 -1
  237. package/dist/api/filecoin/FilecoinSignTransaction.d.ts +1 -0
  238. package/dist/api/filecoin/FilecoinSignTransaction.d.ts.map +1 -1
  239. package/dist/api/firmware/FirmwareArtifactSource.d.ts +29 -0
  240. package/dist/api/firmware/FirmwareArtifactSource.d.ts.map +1 -0
  241. package/dist/api/firmware/FirmwareHostBinding.d.ts +6 -0
  242. package/dist/api/firmware/FirmwareHostBinding.d.ts.map +1 -0
  243. package/dist/api/firmware/FirmwareMemoryHost.d.ts +22 -0
  244. package/dist/api/firmware/FirmwareMemoryHost.d.ts.map +1 -0
  245. package/dist/api/firmware/FirmwarePreparationError.d.ts +3 -0
  246. package/dist/api/firmware/FirmwarePreparationError.d.ts.map +1 -0
  247. package/dist/api/firmware/FirmwarePreparedResourceArchive.d.ts +11 -0
  248. package/dist/api/firmware/FirmwarePreparedResourceArchive.d.ts.map +1 -0
  249. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +12 -3
  250. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
  251. package/dist/api/firmware/FirmwareUpdateCapabilities.d.ts +3 -0
  252. package/dist/api/firmware/FirmwareUpdateCapabilities.d.ts.map +1 -0
  253. package/dist/api/firmware/FirmwareUpdatePlan.d.ts +72 -0
  254. package/dist/api/firmware/FirmwareUpdatePlan.d.ts.map +1 -0
  255. package/dist/api/firmware/FirmwareUpdatePreparedPlan.d.ts +38 -0
  256. package/dist/api/firmware/FirmwareUpdatePreparedPlan.d.ts.map +1 -0
  257. package/dist/api/firmware/getBinary.d.ts +15 -4
  258. package/dist/api/firmware/getBinary.d.ts.map +1 -1
  259. package/dist/api/firmware/protocolV2Release.d.ts +33 -0
  260. package/dist/api/firmware/protocolV2Release.d.ts.map +1 -0
  261. package/dist/api/firmware/updateBootloader.d.ts +2 -0
  262. package/dist/api/firmware/updateBootloader.d.ts.map +1 -1
  263. package/dist/api/firmware/uploadFirmware.d.ts +9 -1
  264. package/dist/api/firmware/uploadFirmware.d.ts.map +1 -1
  265. package/dist/api/helpers/base64Data.d.ts +16 -0
  266. package/dist/api/helpers/base64Data.d.ts.map +1 -0
  267. package/dist/api/helpers/filesystemValidation.d.ts +3 -0
  268. package/dist/api/helpers/filesystemValidation.d.ts.map +1 -1
  269. package/dist/api/helpers/paramsValidator.d.ts +1 -0
  270. package/dist/api/helpers/paramsValidator.d.ts.map +1 -1
  271. package/dist/api/helpers/protocolV2FileWrite.d.ts +11 -0
  272. package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -1
  273. package/dist/api/index.d.ts +5 -29
  274. package/dist/api/index.d.ts.map +1 -1
  275. package/dist/api/kaspa/KaspaGetAddress.d.ts +4 -0
  276. package/dist/api/kaspa/KaspaGetAddress.d.ts.map +1 -1
  277. package/dist/api/kaspa/KaspaSignTransaction.d.ts +9 -1
  278. package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -1
  279. package/dist/api/kaspa/helpers/TransferSerialize.d.ts.map +1 -1
  280. package/dist/api/lightning/LnurlAuth.d.ts +0 -4
  281. package/dist/api/lightning/LnurlAuth.d.ts.map +1 -1
  282. package/dist/api/near/NearGetAddress.d.ts +1 -0
  283. package/dist/api/near/NearGetAddress.d.ts.map +1 -1
  284. package/dist/api/near/NearSignTransaction.d.ts +1 -0
  285. package/dist/api/near/NearSignTransaction.d.ts.map +1 -1
  286. package/dist/api/nem/NEMGetAddress.d.ts +1 -0
  287. package/dist/api/nem/NEMGetAddress.d.ts.map +1 -1
  288. package/dist/api/nem/NEMSignTransaction.d.ts +1 -0
  289. package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -1
  290. package/dist/api/neo/NeoGetAddress.d.ts.map +1 -1
  291. package/dist/api/neo/NeoSignTransaction.d.ts.map +1 -1
  292. package/dist/api/nervos/NervosGetAddress.d.ts.map +1 -1
  293. package/dist/api/nervos/NervosSignTransaction.d.ts.map +1 -1
  294. package/dist/api/nexa/NexaGetAddress.d.ts.map +1 -1
  295. package/dist/api/nexa/NexaSignTransaction.d.ts +1 -0
  296. package/dist/api/nexa/NexaSignTransaction.d.ts.map +1 -1
  297. package/dist/api/nostr/NostrDecryptMessage.d.ts +1 -0
  298. package/dist/api/nostr/NostrDecryptMessage.d.ts.map +1 -1
  299. package/dist/api/nostr/NostrEncryptMessage.d.ts +1 -0
  300. package/dist/api/nostr/NostrEncryptMessage.d.ts.map +1 -1
  301. package/dist/api/nostr/NostrGetPublicKey.d.ts +1 -0
  302. package/dist/api/nostr/NostrGetPublicKey.d.ts.map +1 -1
  303. package/dist/api/nostr/NostrSignEvent.d.ts +1 -0
  304. package/dist/api/nostr/NostrSignEvent.d.ts.map +1 -1
  305. package/dist/api/nostr/NostrSignSchnorr.d.ts +1 -0
  306. package/dist/api/nostr/NostrSignSchnorr.d.ts.map +1 -1
  307. package/dist/api/polkadot/PolkadotGetAddress.d.ts +2 -1
  308. package/dist/api/polkadot/PolkadotGetAddress.d.ts.map +1 -1
  309. package/dist/api/polkadot/PolkadotSignTransaction.d.ts +1 -0
  310. package/dist/api/polkadot/PolkadotSignTransaction.d.ts.map +1 -1
  311. package/dist/api/polkadot/networks.d.ts +1 -1
  312. package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts +1 -0
  313. package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts.map +1 -1
  314. package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts +1 -0
  315. package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts.map +1 -1
  316. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts +4 -1
  317. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts.map +1 -1
  318. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts +1 -0
  319. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +1 -1
  320. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +2 -1
  321. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +1 -1
  322. package/dist/api/protocol-v2/DeviceInfoGet.d.ts +2 -2
  323. package/dist/api/protocol-v2/DeviceInfoGet.d.ts.map +1 -1
  324. package/dist/api/protocol-v2/DeviceReboot.d.ts +1 -0
  325. package/dist/api/protocol-v2/DeviceReboot.d.ts.map +1 -1
  326. package/dist/api/protocol-v2/DeviceStatusGet.d.ts +1 -0
  327. package/dist/api/protocol-v2/DeviceStatusGet.d.ts.map +1 -1
  328. package/dist/api/protocol-v2/DeviceUploadNft.d.ts +30 -0
  329. package/dist/api/protocol-v2/DeviceUploadNft.d.ts.map +1 -0
  330. package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts +3 -3
  331. package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts.map +1 -1
  332. package/dist/api/protocol-v2/FilesystemFormat.d.ts +1 -0
  333. package/dist/api/protocol-v2/FilesystemFormat.d.ts.map +1 -1
  334. package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts +1 -0
  335. package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts.map +1 -1
  336. package/dist/api/protocol-v2/Ping.d.ts +3 -0
  337. package/dist/api/protocol-v2/Ping.d.ts.map +1 -1
  338. package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts +1 -0
  339. package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts.map +1 -1
  340. package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
  341. package/dist/api/scdo/ScdoGetAddress.d.ts.map +1 -1
  342. package/dist/api/scdo/ScdoSignMessage.d.ts.map +1 -1
  343. package/dist/api/scdo/ScdoSignTransaction.d.ts.map +1 -1
  344. package/dist/api/solana/SolGetAddress.d.ts +1 -0
  345. package/dist/api/solana/SolGetAddress.d.ts.map +1 -1
  346. package/dist/api/solana/SolSignMessage.d.ts +2 -1
  347. package/dist/api/solana/SolSignMessage.d.ts.map +1 -1
  348. package/dist/api/solana/SolSignOffchainMessage.d.ts +2 -1
  349. package/dist/api/solana/SolSignOffchainMessage.d.ts.map +1 -1
  350. package/dist/api/solana/SolSignTransaction.d.ts +3 -2
  351. package/dist/api/solana/SolSignTransaction.d.ts.map +1 -1
  352. package/dist/api/starcoin/StarcoinGetAddress.d.ts +1 -0
  353. package/dist/api/starcoin/StarcoinGetAddress.d.ts.map +1 -1
  354. package/dist/api/starcoin/StarcoinGetPublicKey.d.ts +1 -0
  355. package/dist/api/starcoin/StarcoinGetPublicKey.d.ts.map +1 -1
  356. package/dist/api/starcoin/StarcoinSignMessage.d.ts +1 -0
  357. package/dist/api/starcoin/StarcoinSignMessage.d.ts.map +1 -1
  358. package/dist/api/starcoin/StarcoinSignTransaction.d.ts +1 -0
  359. package/dist/api/starcoin/StarcoinSignTransaction.d.ts.map +1 -1
  360. package/dist/api/starcoin/StarcoinVerifyMessage.d.ts +1 -0
  361. package/dist/api/starcoin/StarcoinVerifyMessage.d.ts.map +1 -1
  362. package/dist/api/stellar/StellarGetAddress.d.ts +1 -2
  363. package/dist/api/stellar/StellarGetAddress.d.ts.map +1 -1
  364. package/dist/api/stellar/StellarSignTransaction.d.ts +2 -3
  365. package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -1
  366. package/dist/api/sui/SuiGetAddress.d.ts +2 -1
  367. package/dist/api/sui/SuiGetAddress.d.ts.map +1 -1
  368. package/dist/api/sui/SuiGetPublicKey.d.ts +2 -1
  369. package/dist/api/sui/SuiGetPublicKey.d.ts.map +1 -1
  370. package/dist/api/sui/SuiSignMessage.d.ts +2 -1
  371. package/dist/api/sui/SuiSignMessage.d.ts.map +1 -1
  372. package/dist/api/sui/SuiSignTransaction.d.ts +2 -1
  373. package/dist/api/sui/SuiSignTransaction.d.ts.map +1 -1
  374. package/dist/api/ton/TonGetAddress.d.ts +2 -1
  375. package/dist/api/ton/TonGetAddress.d.ts.map +1 -1
  376. package/dist/api/ton/TonSignData.d.ts +1 -0
  377. package/dist/api/ton/TonSignData.d.ts.map +1 -1
  378. package/dist/api/ton/TonSignMessage.d.ts +2 -1
  379. package/dist/api/ton/TonSignMessage.d.ts.map +1 -1
  380. package/dist/api/ton/TonSignProof.d.ts +2 -1
  381. package/dist/api/ton/TonSignProof.d.ts.map +1 -1
  382. package/dist/api/tron/TronGetAddress.d.ts +1 -0
  383. package/dist/api/tron/TronGetAddress.d.ts.map +1 -1
  384. package/dist/api/tron/TronSignMessage.d.ts +6 -1
  385. package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
  386. package/dist/api/tron/TronSignTransaction.d.ts +2 -1
  387. package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
  388. package/dist/api/utils.d.ts +4 -1
  389. package/dist/api/utils.d.ts.map +1 -1
  390. package/dist/api/xrp/XrpGetAddress.d.ts +1 -0
  391. package/dist/api/xrp/XrpGetAddress.d.ts.map +1 -1
  392. package/dist/api/xrp/XrpSignTransaction.d.ts +1 -0
  393. package/dist/api/xrp/XrpSignTransaction.d.ts.map +1 -1
  394. package/dist/constants/index.d.ts +1 -1
  395. package/dist/constants/index.d.ts.map +1 -1
  396. package/dist/core/RequestQueue.d.ts +0 -2
  397. package/dist/core/RequestQueue.d.ts.map +1 -1
  398. package/dist/core/deviceEventRegistration.d.ts +13 -0
  399. package/dist/core/deviceEventRegistration.d.ts.map +1 -0
  400. package/dist/core/index.d.ts +3 -2
  401. package/dist/core/index.d.ts.map +1 -1
  402. package/dist/core/uiPromiseRegistry.d.ts +6 -0
  403. package/dist/core/uiPromiseRegistry.d.ts.map +1 -0
  404. package/dist/data-manager/DataManager.d.ts +14 -5
  405. package/dist/data-manager/DataManager.d.ts.map +1 -1
  406. package/dist/data-manager/TransportManager.d.ts.map +1 -1
  407. package/dist/data-manager/connectSettings.d.ts.map +1 -1
  408. package/dist/device/Device.d.ts +78 -16
  409. package/dist/device/Device.d.ts.map +1 -1
  410. package/dist/device/DeviceCommands.d.ts +8 -6
  411. package/dist/device/DeviceCommands.d.ts.map +1 -1
  412. package/dist/device/DeviceConnector.d.ts +4 -3
  413. package/dist/device/DeviceConnector.d.ts.map +1 -1
  414. package/dist/device/DeviceFeaturesState.d.ts +3 -0
  415. package/dist/device/DeviceFeaturesState.d.ts.map +1 -0
  416. package/dist/device/DevicePool.d.ts +6 -2
  417. package/dist/device/DevicePool.d.ts.map +1 -1
  418. package/dist/device/DeviceStateMapper.d.ts +13 -0
  419. package/dist/device/DeviceStateMapper.d.ts.map +1 -0
  420. package/dist/device/DeviceStateProjector.d.ts +7 -0
  421. package/dist/device/DeviceStateProjector.d.ts.map +1 -0
  422. package/dist/device/DeviceStateStore.d.ts +21 -0
  423. package/dist/device/DeviceStateStore.d.ts.map +1 -0
  424. package/dist/device/DeviceWalletSessionStore.d.ts +13 -1
  425. package/dist/device/DeviceWalletSessionStore.d.ts.map +1 -1
  426. package/dist/device/cloneDeviceState.d.ts +2 -0
  427. package/dist/device/cloneDeviceState.d.ts.map +1 -0
  428. package/dist/device/deviceIdentity.d.ts +5 -0
  429. package/dist/device/deviceIdentity.d.ts.map +1 -0
  430. package/dist/deviceProfile/buildDeviceFeatures.d.ts +8 -2
  431. package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -1
  432. package/dist/deviceProfile/index.d.ts +0 -1
  433. package/dist/deviceProfile/index.d.ts.map +1 -1
  434. package/dist/deviceProfile/protocolV2DeviceIdentity.d.ts +7 -0
  435. package/dist/deviceProfile/protocolV2DeviceIdentity.d.ts.map +1 -0
  436. package/dist/events/call.d.ts +0 -7
  437. package/dist/events/call.d.ts.map +1 -1
  438. package/dist/events/core.d.ts +2 -2
  439. package/dist/events/core.d.ts.map +1 -1
  440. package/dist/events/device.d.ts +16 -2
  441. package/dist/events/device.d.ts.map +1 -1
  442. package/dist/events/iframe.d.ts +0 -1
  443. package/dist/events/iframe.d.ts.map +1 -1
  444. package/dist/events/logBlockEvent.d.ts +2 -0
  445. package/dist/events/logBlockEvent.d.ts.map +1 -1
  446. package/dist/events/ui-promise.d.ts +4 -2
  447. package/dist/events/ui-promise.d.ts.map +1 -1
  448. package/dist/events/ui-request.d.ts +50 -4
  449. package/dist/events/ui-request.d.ts.map +1 -1
  450. package/dist/events/ui-response.d.ts +10 -2
  451. package/dist/events/ui-response.d.ts.map +1 -1
  452. package/dist/index.d.ts +1764 -828
  453. package/dist/index.d.ts.map +1 -1
  454. package/dist/index.js +11673 -4693
  455. package/dist/inject.d.ts +7 -3
  456. package/dist/inject.d.ts.map +1 -1
  457. package/dist/lowLevelInject.d.ts +1 -2
  458. package/dist/lowLevelInject.d.ts.map +1 -1
  459. package/dist/protocols/protocol-v2/deviceSession.d.ts +7 -0
  460. package/dist/protocols/protocol-v2/deviceSession.d.ts.map +1 -0
  461. package/dist/protocols/protocol-v2/features.d.ts +33 -22
  462. package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
  463. package/dist/protocols/protocol-v2/firmware.d.ts.map +1 -1
  464. package/dist/protocols/protocol-v2/index.d.ts +2 -2
  465. package/dist/protocols/protocol-v2/index.d.ts.map +1 -1
  466. package/dist/protocols/protocol-v2/resources.d.ts +12 -0
  467. package/dist/protocols/protocol-v2/resources.d.ts.map +1 -0
  468. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts +17 -0
  469. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts.map +1 -0
  470. package/dist/protocols/protocol-v2/uiInteraction.d.ts +42 -0
  471. package/dist/protocols/protocol-v2/uiInteraction.d.ts.map +1 -0
  472. package/dist/protocols/protocol-v2/unlockPolicy.d.ts +2 -0
  473. package/dist/protocols/protocol-v2/unlockPolicy.d.ts.map +1 -0
  474. package/dist/protocols/protocol-v2/unlockPolicyRunner.d.ts +22 -0
  475. package/dist/protocols/protocol-v2/unlockPolicyRunner.d.ts.map +1 -0
  476. package/dist/protocols/protocol-v2/walletSession.d.ts +18 -4
  477. package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -1
  478. package/dist/topLevelInject.d.ts.map +1 -1
  479. package/dist/types/api/checkAllFirmwareRelease.d.ts +48 -9
  480. package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -1
  481. package/dist/types/api/checkBLEFirmwareRelease.d.ts +2 -13
  482. package/dist/types/api/checkBLEFirmwareRelease.d.ts.map +1 -1
  483. package/dist/types/api/checkBootloaderRelease.d.ts +2 -6
  484. package/dist/types/api/checkBootloaderRelease.d.ts.map +1 -1
  485. package/dist/types/api/checkFirmwareRelease.d.ts +2 -13
  486. package/dist/types/api/checkFirmwareRelease.d.ts.map +1 -1
  487. package/dist/types/api/checkFirmwareTypeAvailable.d.ts +2 -2
  488. package/dist/types/api/checkFirmwareTypeAvailable.d.ts.map +1 -1
  489. package/dist/types/api/detectDeviceConnectProtocol.d.ts +4 -0
  490. package/dist/types/api/detectDeviceConnectProtocol.d.ts.map +1 -0
  491. package/dist/types/api/deviceSettings.d.ts +11 -2
  492. package/dist/types/api/deviceSettings.d.ts.map +1 -1
  493. package/dist/types/api/deviceUnlock.d.ts +6 -2
  494. package/dist/types/api/deviceUnlock.d.ts.map +1 -1
  495. package/dist/types/api/deviceUpdateBootloader.d.ts +6 -0
  496. package/dist/types/api/deviceUpdateBootloader.d.ts.map +1 -1
  497. package/dist/types/api/export.d.ts +8 -3
  498. package/dist/types/api/export.d.ts.map +1 -1
  499. package/dist/types/api/firmwareUpdate.d.ts +67 -5
  500. package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
  501. package/dist/types/api/firmwareUpdateCapabilities.d.ts +9 -0
  502. package/dist/types/api/firmwareUpdateCapabilities.d.ts.map +1 -0
  503. package/dist/types/api/firmwareUpdatePlan.d.ts +28 -0
  504. package/dist/types/api/firmwareUpdatePlan.d.ts.map +1 -0
  505. package/dist/types/api/firmwareUpdatePreparedPlan.d.ts +42 -0
  506. package/dist/types/api/firmwareUpdatePreparedPlan.d.ts.map +1 -0
  507. package/dist/types/api/getDeviceState.d.ts +12 -0
  508. package/dist/types/api/getDeviceState.d.ts.map +1 -0
  509. package/dist/types/api/getFeatures.d.ts.map +1 -1
  510. package/dist/types/api/getOnekeyFeatures.d.ts.map +1 -1
  511. package/dist/types/api/getPassphraseState.d.ts.map +1 -1
  512. package/dist/types/api/index.d.ts +25 -35
  513. package/dist/types/api/index.d.ts.map +1 -1
  514. package/dist/types/api/kaspaSignTransaction.d.ts +42 -4
  515. package/dist/types/api/kaspaSignTransaction.d.ts.map +1 -1
  516. package/dist/types/api/openWalletSession.d.ts +35 -0
  517. package/dist/types/api/openWalletSession.d.ts.map +1 -0
  518. package/dist/types/api/protocolV2.d.ts +11 -93
  519. package/dist/types/api/protocolV2.d.ts.map +1 -1
  520. package/dist/types/api/sessionCache.d.ts +4 -1
  521. package/dist/types/api/sessionCache.d.ts.map +1 -1
  522. package/dist/types/device.d.ts +139 -8
  523. package/dist/types/device.d.ts.map +1 -1
  524. package/dist/types/params.d.ts +1 -0
  525. package/dist/types/params.d.ts.map +1 -1
  526. package/dist/types/settings.d.ts +44 -16
  527. package/dist/types/settings.d.ts.map +1 -1
  528. package/dist/utils/assets.d.ts +2 -1
  529. package/dist/utils/assets.d.ts.map +1 -1
  530. package/dist/utils/deviceFeaturesCompat.d.ts +14 -0
  531. package/dist/utils/deviceFeaturesCompat.d.ts.map +1 -0
  532. package/dist/utils/deviceFeaturesUtils.d.ts +10 -1
  533. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  534. package/dist/utils/deviceInfoUtils.d.ts +9 -9
  535. package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
  536. package/dist/utils/deviceSettings.d.ts +39 -7
  537. package/dist/utils/deviceSettings.d.ts.map +1 -1
  538. package/dist/utils/deviceVersionUtils.d.ts +7 -5
  539. package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
  540. package/dist/utils/homescreen.d.ts +4 -0
  541. package/dist/utils/homescreen.d.ts.map +1 -1
  542. package/dist/utils/index.d.ts +5 -4
  543. package/dist/utils/index.d.ts.map +1 -1
  544. package/dist/utils/networkUtils.d.ts +10 -1
  545. package/dist/utils/networkUtils.d.ts.map +1 -1
  546. package/dist/utils/patch.d.ts +1 -1
  547. package/dist/utils/patch.d.ts.map +1 -1
  548. package/dist/utils/pro2Nft.d.ts +38 -0
  549. package/dist/utils/pro2Nft.d.ts.map +1 -0
  550. package/dist/utils/pro2Wallpaper.d.ts +10 -0
  551. package/dist/utils/pro2Wallpaper.d.ts.map +1 -1
  552. package/dist/utils/tracing.d.ts.map +1 -1
  553. package/dist/utils/uiProgressThrottle.d.ts +3 -0
  554. package/dist/utils/uiProgressThrottle.d.ts.map +1 -0
  555. package/package.json +6 -4
  556. package/src/api/BaseMethod.ts +45 -23
  557. package/src/api/CheckAllFirmwareRelease.ts +440 -4
  558. package/src/api/CheckBLEFirmwareRelease.ts +37 -5
  559. package/src/api/CheckBootloaderRelease.ts +37 -5
  560. package/src/api/CheckFirmwareRelease.ts +36 -9
  561. package/src/api/CipherKeyValue.ts +4 -0
  562. package/src/api/ClearSessionCache.ts +4 -0
  563. package/src/api/DetectDeviceConnectProtocol.ts +18 -0
  564. package/src/api/DirList.ts +9 -4
  565. package/src/api/DirMake.ts +7 -4
  566. package/src/api/DirRemove.ts +7 -4
  567. package/src/api/FileDelete.ts +7 -4
  568. package/src/api/FileRead.ts +13 -7
  569. package/src/api/FileWrite.ts +10 -5
  570. package/src/api/FirmwareUpdate.ts +30 -15
  571. package/src/api/FirmwareUpdateV2.ts +535 -169
  572. package/src/api/FirmwareUpdateV3.ts +349 -91
  573. package/src/api/FirmwareUpdateV4.ts +2300 -710
  574. package/src/api/GetDeviceState.ts +59 -0
  575. package/src/api/GetFeatures.ts +6 -4
  576. package/src/api/GetOnekeyFeatures.ts +1 -75
  577. package/src/api/GetPassphraseState.ts +36 -12
  578. package/src/api/OpenWalletSession.ts +268 -0
  579. package/src/api/PathInfo.ts +9 -4
  580. package/src/api/PromptWebDeviceAccess.ts +2 -7
  581. package/src/api/SearchDevices.ts +35 -5
  582. package/src/api/UploadPortfolio.ts +32 -4
  583. package/src/api/alephium/AlephiumGetAddress.ts +0 -4
  584. package/src/api/alephium/AlephiumSignMessage.ts +0 -4
  585. package/src/api/alephium/AlephiumSignTransaction.ts +2 -6
  586. package/src/api/algo/AlgoGetAddress.ts +4 -0
  587. package/src/api/algo/AlgoSignTransaction.ts +4 -0
  588. package/src/api/allnetwork/AllNetworkGetAddress.ts +21 -21
  589. package/src/api/allnetwork/AllNetworkGetAddressBase.ts +45 -32
  590. package/src/api/aptos/AptosGetAddress.ts +4 -0
  591. package/src/api/aptos/AptosGetPublicKey.ts +4 -0
  592. package/src/api/aptos/AptosSignInMessage.ts +4 -0
  593. package/src/api/aptos/AptosSignMessage.ts +4 -0
  594. package/src/api/aptos/AptosSignTransaction.ts +4 -0
  595. package/src/api/benfen/BenfenGetAddress.ts +11 -7
  596. package/src/api/benfen/BenfenGetPublicKey.ts +0 -4
  597. package/src/api/benfen/BenfenSignMessage.ts +0 -4
  598. package/src/api/benfen/BenfenSignTransaction.ts +0 -4
  599. package/src/api/btc/BTCGetAddress.ts +8 -1
  600. package/src/api/btc/BTCGetPublicKey.ts +9 -2
  601. package/src/api/btc/BTCSignMessage.ts +8 -1
  602. package/src/api/btc/BTCSignPsbt.ts +4 -0
  603. package/src/api/btc/BTCSignTransaction.ts +8 -1
  604. package/src/api/btc/BTCVerifyMessage.ts +8 -1
  605. package/src/api/btc/helpers/versionLimit.ts +7 -4
  606. package/src/api/cardano/CardanoGetAddress.ts +4 -0
  607. package/src/api/cardano/CardanoGetPublicKey.ts +4 -0
  608. package/src/api/cardano/CardanoSignMessage.ts +4 -0
  609. package/src/api/cardano/CardanoSignTransaction.ts +4 -0
  610. package/src/api/conflux/ConfluxGetAddress.ts +6 -0
  611. package/src/api/conflux/ConfluxSignMessage.ts +6 -0
  612. package/src/api/conflux/ConfluxSignMessageCIP23.ts +6 -0
  613. package/src/api/conflux/ConfluxSignTransaction.ts +8 -5
  614. package/src/api/cosmos/CosmosGetAddress.ts +4 -0
  615. package/src/api/cosmos/CosmosGetPublicKey.ts +4 -0
  616. package/src/api/cosmos/CosmosSignTransaction.ts +4 -0
  617. package/src/api/device/DeviceCancel.ts +5 -0
  618. package/src/api/device/DeviceChangePin.ts +28 -0
  619. package/src/api/device/DeviceFullyUploadResource.ts +4 -5
  620. package/src/api/device/DeviceLock.ts +5 -0
  621. package/src/api/device/DeviceRebootToBoardloader.ts +5 -0
  622. package/src/api/device/DeviceRebootToBootloader.ts +5 -0
  623. package/src/api/device/DeviceSettings.ts +211 -3
  624. package/src/api/device/DeviceSupportFeatures.ts +4 -0
  625. package/src/api/device/DeviceUnlock.ts +21 -3
  626. package/src/api/device/DeviceUpdateBootloader.ts +152 -8
  627. package/src/api/device/DeviceWipe.ts +25 -0
  628. package/src/api/device/PreInitialize.ts +4 -0
  629. package/src/api/dynex/DnxGetAddress.ts +0 -6
  630. package/src/api/dynex/DnxSignTransaction.ts +0 -6
  631. package/src/api/evm/EVMGetAddress.ts +6 -2
  632. package/src/api/evm/EVMGetPublicKey.ts +6 -2
  633. package/src/api/evm/EVMSignMessage.ts +6 -2
  634. package/src/api/evm/EVMSignMessageEIP712.ts +1 -11
  635. package/src/api/evm/EVMSignTransaction.ts +6 -2
  636. package/src/api/evm/EVMSignTypedData.ts +42 -50
  637. package/src/api/evm/EVMVerifyMessage.ts +6 -2
  638. package/src/api/evm/legacyV1/getAddress.ts +2 -2
  639. package/src/api/evm/legacyV1/getPublicKey.ts +2 -2
  640. package/src/api/evm/legacyV1/signMessage.ts +2 -2
  641. package/src/api/evm/legacyV1/signTypedData.ts +2 -2
  642. package/src/api/evm/legacyV1/signTypedHash.ts +2 -2
  643. package/src/api/evm/legacyV1/verifyMessage.ts +2 -2
  644. package/src/api/evm/protocol.ts +6 -0
  645. package/src/api/filecoin/FilecoinGetAddress.ts +4 -0
  646. package/src/api/filecoin/FilecoinSignTransaction.ts +4 -0
  647. package/src/api/firmware/FirmwareArtifactSource.ts +305 -0
  648. package/src/api/firmware/FirmwareHostBinding.ts +123 -0
  649. package/src/api/firmware/FirmwareMemoryHost.ts +143 -0
  650. package/src/api/firmware/FirmwarePreparationError.ts +12 -0
  651. package/src/api/firmware/FirmwarePreparedResourceArchive.ts +196 -0
  652. package/src/api/firmware/FirmwareUpdateBaseMethod.ts +214 -77
  653. package/src/api/firmware/FirmwareUpdateCapabilities.ts +9 -0
  654. package/src/api/firmware/FirmwareUpdatePlan.ts +946 -0
  655. package/src/api/firmware/FirmwareUpdatePreparedPlan.ts +486 -0
  656. package/src/api/firmware/getBinary.ts +8 -3
  657. package/src/api/firmware/protocolV2Release.ts +168 -0
  658. package/src/api/firmware/updateBootloader.ts +19 -4
  659. package/src/api/firmware/uploadFirmware.ts +157 -26
  660. package/src/api/helpers/base64Data.ts +85 -0
  661. package/src/api/helpers/batchGetPublickeys.ts +2 -2
  662. package/src/api/helpers/filesystemValidation.ts +61 -0
  663. package/src/api/helpers/paramsValidator.ts +1 -1
  664. package/src/api/helpers/protocolV2FileWrite.ts +266 -42
  665. package/src/api/index.ts +6 -30
  666. package/src/api/kaspa/KaspaGetAddress.ts +7 -0
  667. package/src/api/kaspa/KaspaSignTransaction.ts +369 -29
  668. package/src/api/kaspa/helpers/TransferSerialize.ts +17 -7
  669. package/src/api/lightning/LnurlAuth.ts +0 -4
  670. package/src/api/near/NearGetAddress.ts +4 -0
  671. package/src/api/near/NearSignTransaction.ts +4 -0
  672. package/src/api/nem/NEMGetAddress.ts +4 -0
  673. package/src/api/nem/NEMSignTransaction.ts +4 -0
  674. package/src/api/neo/NeoGetAddress.ts +0 -4
  675. package/src/api/neo/NeoSignTransaction.ts +0 -4
  676. package/src/api/nervos/NervosGetAddress.ts +0 -4
  677. package/src/api/nervos/NervosSignTransaction.ts +2 -6
  678. package/src/api/nexa/NexaGetAddress.ts +0 -4
  679. package/src/api/nexa/NexaSignTransaction.ts +3 -5
  680. package/src/api/nostr/NostrDecryptMessage.ts +4 -0
  681. package/src/api/nostr/NostrEncryptMessage.ts +4 -0
  682. package/src/api/nostr/NostrGetPublicKey.ts +4 -0
  683. package/src/api/nostr/NostrSignEvent.ts +4 -0
  684. package/src/api/nostr/NostrSignSchnorr.ts +4 -0
  685. package/src/api/polkadot/PolkadotGetAddress.ts +4 -0
  686. package/src/api/polkadot/PolkadotSignTransaction.ts +4 -0
  687. package/src/api/polkadot/networks.ts +3 -3
  688. package/src/api/protocol-v2/DeviceFactoryInfoGet.ts +5 -2
  689. package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +6 -3
  690. package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +13 -32
  691. package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +10 -6
  692. package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +6 -3
  693. package/src/api/protocol-v2/DeviceInfoGet.ts +11 -18
  694. package/src/api/protocol-v2/DeviceReboot.ts +7 -3
  695. package/src/api/protocol-v2/DeviceStatusGet.ts +6 -1
  696. package/src/api/protocol-v2/DeviceUploadNft.ts +245 -0
  697. package/src/api/protocol-v2/DeviceUploadWallpaper.ts +45 -21
  698. package/src/api/protocol-v2/FilesystemFormat.ts +5 -2
  699. package/src/api/protocol-v2/FilesystemPermissionFix.ts +5 -2
  700. package/src/api/protocol-v2/Ping.ts +37 -3
  701. package/src/api/protocol-v2/ProtocolInfoRequest.ts +8 -3
  702. package/src/api/protocol-v2/helpers.ts +1 -1
  703. package/src/api/scdo/ScdoGetAddress.ts +0 -4
  704. package/src/api/scdo/ScdoSignMessage.ts +0 -4
  705. package/src/api/scdo/ScdoSignTransaction.ts +0 -4
  706. package/src/api/solana/SolGetAddress.ts +4 -0
  707. package/src/api/solana/SolSignMessage.ts +5 -1
  708. package/src/api/solana/SolSignOffchainMessage.ts +5 -1
  709. package/src/api/solana/SolSignTransaction.ts +6 -2
  710. package/src/api/starcoin/StarcoinGetAddress.ts +4 -0
  711. package/src/api/starcoin/StarcoinGetPublicKey.ts +4 -0
  712. package/src/api/starcoin/StarcoinSignMessage.ts +4 -0
  713. package/src/api/starcoin/StarcoinSignTransaction.ts +4 -0
  714. package/src/api/starcoin/StarcoinVerifyMessage.ts +4 -0
  715. package/src/api/stellar/StellarGetAddress.ts +1 -10
  716. package/src/api/stellar/StellarSignTransaction.ts +1 -14
  717. package/src/api/sui/SuiGetAddress.ts +5 -1
  718. package/src/api/sui/SuiGetPublicKey.ts +5 -1
  719. package/src/api/sui/SuiSignMessage.ts +5 -1
  720. package/src/api/sui/SuiSignTransaction.ts +5 -1
  721. package/src/api/ton/TonGetAddress.ts +5 -1
  722. package/src/api/ton/TonSignData.ts +5 -1
  723. package/src/api/ton/TonSignMessage.ts +10 -4
  724. package/src/api/ton/TonSignProof.ts +5 -1
  725. package/src/api/tron/TronGetAddress.ts +4 -0
  726. package/src/api/tron/TronSignMessage.ts +19 -8
  727. package/src/api/tron/TronSignTransaction.ts +5 -1
  728. package/src/api/utils.ts +32 -3
  729. package/src/api/xrp/XrpGetAddress.ts +4 -0
  730. package/src/api/xrp/XrpSignTransaction.ts +5 -1
  731. package/src/constants/index.ts +1 -4
  732. package/src/core/RequestQueue.ts +0 -18
  733. package/src/core/deviceEventRegistration.ts +27 -0
  734. package/src/core/index.ts +419 -174
  735. package/src/core/uiPromiseRegistry.ts +63 -0
  736. package/src/data/messages/messages-protocol-v2.json +523 -449
  737. package/src/data/messages/messages.json +286 -1
  738. package/src/data-manager/DataManager.ts +162 -44
  739. package/src/data-manager/TransportManager.ts +7 -1
  740. package/src/data-manager/connectSettings.ts +11 -0
  741. package/src/device/Device.ts +909 -269
  742. package/src/device/DeviceCommands.ts +185 -160
  743. package/src/device/DeviceConnector.ts +51 -21
  744. package/src/device/DeviceFeaturesState.ts +25 -0
  745. package/src/device/DevicePool.ts +105 -23
  746. package/src/device/DeviceStateMapper.ts +418 -0
  747. package/src/device/DeviceStateProjector.ts +152 -0
  748. package/src/device/DeviceStateStore.ts +232 -0
  749. package/src/device/DeviceWalletSessionStore.ts +72 -6
  750. package/src/device/cloneDeviceState.ts +39 -0
  751. package/src/device/deviceIdentity.ts +18 -0
  752. package/src/deviceProfile/buildDeviceFeatures.ts +209 -191
  753. package/src/deviceProfile/index.ts +0 -1
  754. package/src/deviceProfile/protocolV2DeviceIdentity.ts +35 -0
  755. package/src/events/call.ts +0 -6
  756. package/src/events/core.ts +0 -2
  757. package/src/events/device.ts +22 -1
  758. package/src/events/iframe.ts +0 -1
  759. package/src/events/logBlockEvent.ts +93 -2
  760. package/src/events/ui-promise.ts +4 -2
  761. package/src/events/ui-request.ts +61 -4
  762. package/src/events/ui-response.ts +12 -2
  763. package/src/index.ts +17 -4
  764. package/src/inject.ts +89 -55
  765. package/src/lowLevelInject.ts +11 -7
  766. package/src/protocols/protocol-v2/deviceSession.ts +24 -0
  767. package/src/protocols/protocol-v2/features.ts +118 -52
  768. package/src/protocols/protocol-v2/firmware.ts +3 -1
  769. package/src/protocols/protocol-v2/index.ts +9 -3
  770. package/src/protocols/protocol-v2/resources.ts +171 -0
  771. package/src/protocols/protocol-v2/settingsUnlockPolicy.ts +65 -0
  772. package/src/protocols/protocol-v2/uiInteraction.ts +250 -0
  773. package/src/protocols/protocol-v2/unlockPolicy.ts +1 -0
  774. package/src/protocols/protocol-v2/unlockPolicyRunner.ts +136 -0
  775. package/src/protocols/protocol-v2/walletSession.ts +420 -49
  776. package/src/topLevelInject.ts +11 -6
  777. package/src/types/api/checkAllFirmwareRelease.ts +72 -9
  778. package/src/types/api/checkBLEFirmwareRelease.ts +4 -13
  779. package/src/types/api/checkBootloaderRelease.ts +2 -6
  780. package/src/types/api/checkFirmwareRelease.ts +2 -13
  781. package/src/types/api/checkFirmwareTypeAvailable.ts +2 -2
  782. package/src/types/api/detectDeviceConnectProtocol.ts +6 -0
  783. package/src/types/api/deviceSettings.ts +26 -2
  784. package/src/types/api/deviceUnlock.ts +13 -2
  785. package/src/types/api/deviceUpdateBootloader.ts +7 -0
  786. package/src/types/api/export.ts +33 -1
  787. package/src/types/api/firmwareUpdate.ts +85 -11
  788. package/src/types/api/firmwareUpdateCapabilities.ts +9 -0
  789. package/src/types/api/firmwareUpdatePlan.ts +38 -0
  790. package/src/types/api/firmwareUpdatePreparedPlan.ts +53 -0
  791. package/src/types/api/getDeviceState.ts +19 -0
  792. package/src/types/api/getFeatures.ts +3 -0
  793. package/src/types/api/getOnekeyFeatures.ts +3 -0
  794. package/src/types/api/getPassphraseState.ts +7 -0
  795. package/src/types/api/index.ts +43 -73
  796. package/src/types/api/kaspaSignTransaction.ts +60 -4
  797. package/src/types/api/openWalletSession.ts +54 -0
  798. package/src/types/api/protocolV2.ts +23 -188
  799. package/src/types/api/sessionCache.ts +9 -4
  800. package/src/types/device.ts +211 -9
  801. package/src/types/params.ts +9 -2
  802. package/src/types/settings.ts +52 -25
  803. package/src/utils/assets.ts +4 -1
  804. package/src/utils/deviceFeaturesCompat.ts +191 -0
  805. package/src/utils/deviceFeaturesUtils.ts +42 -9
  806. package/src/utils/deviceInfoUtils.ts +29 -69
  807. package/src/utils/deviceSettings.ts +181 -39
  808. package/src/utils/deviceVersionUtils.ts +25 -44
  809. package/src/utils/findDefectiveBatchDevice.ts +3 -3
  810. package/src/utils/homescreen.ts +40 -0
  811. package/src/utils/index.ts +26 -7
  812. package/src/utils/networkUtils.ts +274 -16
  813. package/src/utils/pro2Nft.ts +165 -0
  814. package/src/utils/pro2Wallpaper.ts +44 -25
  815. package/src/utils/tracing.ts +3 -1
  816. package/src/utils/uiProgressThrottle.ts +63 -0
  817. package/tsconfig.type-tests.json +12 -0
  818. package/__tests__/RequestQueue.test.ts +0 -34
  819. package/dist/api/GetDeviceInfo.d.ts +0 -9
  820. package/dist/api/GetDeviceInfo.d.ts.map +0 -1
  821. package/dist/api/firmware/progressThrottle.d.ts +0 -3
  822. package/dist/api/firmware/progressThrottle.d.ts.map +0 -1
  823. package/dist/api/protocol-v2/DeviceSessionGet.d.ts +0 -6
  824. package/dist/api/protocol-v2/DeviceSessionGet.d.ts.map +0 -1
  825. package/dist/api/protocol-v2/DeviceSettingsGet.d.ts +0 -6
  826. package/dist/api/protocol-v2/DeviceSettingsGet.d.ts.map +0 -1
  827. package/dist/api/protocol-v2/DeviceSettingsPageShow.d.ts +0 -16
  828. package/dist/api/protocol-v2/DeviceSettingsPageShow.d.ts.map +0 -1
  829. package/dist/api/protocol-v2/DeviceSettingsSet.d.ts +0 -12
  830. package/dist/api/protocol-v2/DeviceSettingsSet.d.ts.map +0 -1
  831. package/dist/deviceProfile/buildDeviceProfile.d.ts +0 -21
  832. package/dist/deviceProfile/buildDeviceProfile.d.ts.map +0 -1
  833. package/dist/protocols/protocol-v2/unlockRetry.d.ts +0 -9
  834. package/dist/protocols/protocol-v2/unlockRetry.d.ts.map +0 -1
  835. package/dist/types/api/getDeviceInfo.d.ts +0 -87
  836. package/dist/types/api/getDeviceInfo.d.ts.map +0 -1
  837. package/src/api/GetDeviceInfo.ts +0 -145
  838. package/src/api/firmware/progressThrottle.ts +0 -44
  839. package/src/api/protocol-v2/DeviceSessionGet.ts +0 -15
  840. package/src/api/protocol-v2/DeviceSettingsGet.ts +0 -16
  841. package/src/api/protocol-v2/DeviceSettingsPageShow.ts +0 -59
  842. package/src/api/protocol-v2/DeviceSettingsSet.ts +0 -39
  843. package/src/deviceProfile/buildDeviceProfile.ts +0 -354
  844. package/src/protocols/protocol-v2/unlockRetry.ts +0 -46
  845. package/src/types/api/getDeviceInfo.ts +0 -101
@@ -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,
@@ -142,20 +140,6 @@
142
140
  "MessageType_CosiSignature": 74,
143
141
  "MessageType_BatchGetPublickeys": 10016,
144
142
  "MessageType_EcdsaPublicKeys": 10017,
145
- "MessageType_DebugLinkDecision": 100,
146
- "MessageType_DebugLinkGetState": 101,
147
- "MessageType_DebugLinkState": 102,
148
- "MessageType_DebugLinkStop": 103,
149
- "MessageType_DebugLinkLog": 104,
150
- "MessageType_DebugLinkMemoryRead": 110,
151
- "MessageType_DebugLinkMemory": 111,
152
- "MessageType_DebugLinkMemoryWrite": 112,
153
- "MessageType_DebugLinkFlashErase": 113,
154
- "MessageType_DebugLinkLayout": 9001,
155
- "MessageType_DebugLinkReseedRandom": 9002,
156
- "MessageType_DebugLinkRecordScreen": 9003,
157
- "MessageType_DebugLinkEraseSdCard": 9005,
158
- "MessageType_DebugLinkWatchLayout": 9006,
159
143
  "MessageType_EthereumGetPublicKey": 450,
160
144
  "MessageType_EthereumPublicKey": 451,
161
145
  "MessageType_EthereumGetAddress": 56,
@@ -419,13 +403,6 @@
419
403
  "MessageType_TonSignProof": 11905,
420
404
  "MessageType_TonSignedProof": 11906,
421
405
  "MessageType_TonTxAck": 11907,
422
- "MessageType_ScdoGetAddress": 12001,
423
- "MessageType_ScdoAddress": 12002,
424
- "MessageType_ScdoSignTx": 12003,
425
- "MessageType_ScdoSignedTx": 12004,
426
- "MessageType_ScdoTxAck": 12005,
427
- "MessageType_ScdoSignMessage": 12006,
428
- "MessageType_ScdoSignedMessage": 12007,
429
406
  "MessageType_AlephiumGetAddress": 12101,
430
407
  "MessageType_AlephiumAddress": 12102,
431
408
  "MessageType_AlephiumSignTx": 12103,
@@ -448,11 +425,6 @@
448
425
  "MessageType_NeoAddress": 12302,
449
426
  "MessageType_NeoSignTx": 12303,
450
427
  "MessageType_NeoSignedTx": 12304,
451
- "MessageType_UiviewShowAddressRequest": 30200,
452
- "MessageType_UiviewShowPublicKeyRequest": 30201,
453
- "MessageType_UiviewConfirmTxRequest": 30202,
454
- "MessageType_UiviewConfirmSignMessageRequest": 30203,
455
- "MessageType_UiviewResponse": 30204,
456
428
  "MessageType_DeviceFactoryInfoSet": 60000,
457
429
  "MessageType_DeviceFactoryInfoGet": 60001,
458
430
  "MessageType_DeviceFactoryInfo": 60002,
@@ -473,18 +445,11 @@
473
445
  "MessageType_DeviceCertificateRead": 60422,
474
446
  "MessageType_DeviceCertificateSignature": 60423,
475
447
  "MessageType_DeviceCertificateSign": 60424,
476
- "MessageType_SetWallpaper": 60430,
477
- "MessageType_GetWallpaper": 60431,
478
- "MessageType_Wallpaper": 60432,
448
+ "MessageType_DeviceMiscUsbMscControl": 60440,
479
449
  "MessageType_DeviceInfoGet": 60600,
480
450
  "MessageType_DeviceInfo": 60601,
481
451
  "MessageType_DeviceStatusGet": 60602,
482
452
  "MessageType_DeviceStatus": 60603,
483
- "MessageType_DevGetOnboardingStatus": 60604,
484
- "MessageType_DevOnboardingStatus": 60605,
485
- "MessageType_DeviceSessionGet": 60606,
486
- "MessageType_DeviceSession": 60607,
487
- "MessageType_DeviceSessionAskPin": 60608,
488
453
  "MessageType_FilesystemPermissionFix": 60800,
489
454
  "MessageType_FilesystemPathInfo": 60801,
490
455
  "MessageType_FilesystemPathInfoQuery": 60802,
@@ -497,10 +462,18 @@
497
462
  "MessageType_FilesystemDirMake": 60809,
498
463
  "MessageType_FilesystemDirRemove": 60810,
499
464
  "MessageType_FilesystemFormat": 60811,
500
- "MessageType_DeviceFirmwareUpdateRequest": 61000,
501
- "MessageType_DeviceFirmwareUpdateStatusGet": 61001,
502
- "MessageType_DeviceFirmwareUpdateStatus": 61002,
503
- "MessageType_PortfolioUpdate": 61200
465
+ "MessageType_DeviceFirmwareUpdateStage": 61000,
466
+ "MessageType_DeviceFirmwareUpdateRequest": 61001,
467
+ "MessageType_DeviceFirmwareUpdateStatusGet": 61002,
468
+ "MessageType_DeviceFirmwareUpdateStatus": 61003,
469
+ "MessageType_DeviceSessionGet": 61200,
470
+ "MessageType_DeviceSession": 61201,
471
+ "MessageType_DeviceSessionAskPin": 61202,
472
+ "MessageType_DeviceSessionAskPassphrase": 61203,
473
+ "MessageType_PortfolioUpdate": 61400,
474
+ "MessageType_NftUpdate": 61500,
475
+ "MessageType_OnboardingStatusGet": 61600,
476
+ "MessageType_OnboardingStatus": 61601
504
477
  },
505
478
  "reserved": [
506
479
  [90, 92],
@@ -5959,30 +5932,6 @@
5959
5932
  }
5960
5933
  }
5961
5934
  },
5962
- "InternalMyAddressRequest": {
5963
- "fields": {
5964
- "coin_type": {
5965
- "rule": "required",
5966
- "type": "uint32",
5967
- "id": 1
5968
- },
5969
- "chain_id": {
5970
- "rule": "required",
5971
- "type": "uint32",
5972
- "id": 2
5973
- },
5974
- "account_index": {
5975
- "rule": "required",
5976
- "type": "uint32",
5977
- "id": 3
5978
- },
5979
- "derive_type": {
5980
- "rule": "required",
5981
- "type": "uint32",
5982
- "id": 4
5983
- }
5984
- }
5985
- },
5986
5935
  "KaspaGetAddress": {
5987
5936
  "fields": {
5988
5937
  "address_n": {
@@ -6187,28 +6136,6 @@
6187
6136
  }
6188
6137
  }
6189
6138
  },
6190
- "StartSession": {
6191
- "fields": {
6192
- "session_id": {
6193
- "type": "bytes",
6194
- "id": 1
6195
- },
6196
- "_skip_passphrase": {
6197
- "type": "bool",
6198
- "id": 2,
6199
- "options": {
6200
- "deprecated": true
6201
- }
6202
- },
6203
- "derive_cardano": {
6204
- "type": "bool",
6205
- "id": 3
6206
- }
6207
- }
6208
- },
6209
- "EndSession": {
6210
- "fields": {}
6211
- },
6212
6139
  "GetFeatures": {
6213
6140
  "fields": {}
6214
6141
  },
@@ -7331,49 +7258,6 @@
7331
7258
  }
7332
7259
  }
7333
7260
  },
7334
- "WallpaperTarget": {
7335
- "values": {
7336
- "Home": 0,
7337
- "Lock": 1
7338
- }
7339
- },
7340
- "SetWallpaper": {
7341
- "fields": {
7342
- "target": {
7343
- "rule": "required",
7344
- "type": "WallpaperTarget",
7345
- "id": 1
7346
- },
7347
- "path": {
7348
- "rule": "required",
7349
- "type": "string",
7350
- "id": 2
7351
- }
7352
- }
7353
- },
7354
- "GetWallpaper": {
7355
- "fields": {
7356
- "target": {
7357
- "rule": "required",
7358
- "type": "WallpaperTarget",
7359
- "id": 1
7360
- }
7361
- }
7362
- },
7363
- "Wallpaper": {
7364
- "fields": {
7365
- "target": {
7366
- "rule": "required",
7367
- "type": "WallpaperTarget",
7368
- "id": 1
7369
- },
7370
- "path": {
7371
- "rule": "required",
7372
- "type": "string",
7373
- "id": 2
7374
- }
7375
- }
7376
- },
7377
7261
  "ResourceUpdate": {
7378
7262
  "fields": {
7379
7263
  "file_name": {
@@ -11505,146 +11389,30 @@
11505
11389
  }
11506
11390
  }
11507
11391
  },
11508
- "ViewAmount": {
11509
- "fields": {
11510
- "is_unlimited": {
11511
- "rule": "required",
11512
- "type": "bool",
11513
- "id": 1
11514
- },
11515
- "num": {
11516
- "rule": "required",
11517
- "type": "string",
11518
- "id": 2
11519
- }
11520
- }
11521
- },
11522
- "ViewDetail": {
11523
- "fields": {
11524
- "key": {
11525
- "rule": "required",
11526
- "type": "uint32",
11527
- "id": 1
11528
- },
11529
- "value": {
11530
- "rule": "required",
11531
- "type": "string",
11532
- "id": 2
11533
- },
11534
- "is_overview": {
11535
- "rule": "required",
11536
- "type": "bool",
11537
- "id": 3
11538
- },
11539
- "has_icon": {
11540
- "rule": "required",
11541
- "type": "bool",
11542
- "id": 4
11543
- }
11544
- }
11545
- },
11546
- "ViewTipType": {
11392
+ "UiAnimationType": {
11547
11393
  "values": {
11548
- "Default": 0,
11549
- "Highlight": 1,
11550
- "Recommend": 2,
11551
- "Warning": 3,
11552
- "Danger": 4
11553
- }
11554
- },
11555
- "ViewTip": {
11556
- "fields": {
11557
- "type": {
11558
- "rule": "required",
11559
- "type": "ViewTipType",
11560
- "id": 1
11561
- },
11562
- "text": {
11563
- "rule": "required",
11564
- "type": "string",
11565
- "id": 2
11566
- }
11567
- }
11568
- },
11569
- "ViewRawData": {
11570
- "fields": {
11571
- "initial_data": {
11572
- "rule": "required",
11573
- "type": "string",
11574
- "id": 1
11575
- },
11576
- "placeholder": {
11577
- "rule": "required",
11578
- "type": "uint32",
11579
- "id": 2
11580
- }
11394
+ "Unknown": 0,
11395
+ "Signing": 1
11581
11396
  }
11582
11397
  },
11583
- "ViewSignLayout": {
11398
+ "UiAnimationCommand": {
11584
11399
  "values": {
11585
- "LayoutDefault": 0,
11586
- "LayoutSafeTxCreate": 1,
11587
- "LayoutFinalConfirm": 2,
11588
- "Layout7702": 3,
11589
- "LayoutFlat": 4
11590
- }
11591
- },
11592
- "ViewSignPage": {
11593
- "fields": {
11594
- "title": {
11595
- "rule": "required",
11596
- "type": "string",
11597
- "id": 1
11598
- },
11599
- "amount": {
11600
- "type": "ViewAmount",
11601
- "id": 2
11602
- },
11603
- "general": {
11604
- "rule": "repeated",
11605
- "type": "ViewDetail",
11606
- "id": 3
11607
- },
11608
- "tip": {
11609
- "type": "ViewTip",
11610
- "id": 4
11611
- },
11612
- "raw_data": {
11613
- "type": "ViewRawData",
11614
- "id": 5
11615
- },
11616
- "slide_to_confirm": {
11617
- "type": "bool",
11618
- "id": 6,
11619
- "options": {
11620
- "default": true
11621
- }
11622
- },
11623
- "layout": {
11624
- "type": "ViewSignLayout",
11625
- "id": 7,
11626
- "options": {
11627
- "default": "LayoutDefault"
11628
- }
11629
- }
11400
+ "CommandUnknown": 0,
11401
+ "Start": 1,
11402
+ "Stop": 2,
11403
+ "Refresh": 3
11630
11404
  }
11631
11405
  },
11632
- "ViewVerifyPage": {
11406
+ "UiAnimationRequest": {
11633
11407
  "fields": {
11634
- "title": {
11408
+ "command": {
11635
11409
  "rule": "required",
11636
- "type": "string",
11410
+ "type": "UiAnimationCommand",
11637
11411
  "id": 1
11638
11412
  },
11639
- "address": {
11640
- "rule": "required",
11641
- "type": "string",
11413
+ "type": {
11414
+ "type": "UiAnimationType",
11642
11415
  "id": 2
11643
- },
11644
- "path": {
11645
- "rule": "required",
11646
- "type": "string",
11647
- "id": 3
11648
11416
  }
11649
11417
  }
11650
11418
  },
@@ -11731,7 +11499,15 @@
11731
11499
  }
11732
11500
  },
11733
11501
  "ProtocolInfoRequest": {
11734
- "fields": {}
11502
+ "fields": {
11503
+ "eventless_wallet_session": {
11504
+ "type": "bool",
11505
+ "id": 1,
11506
+ "options": {
11507
+ "default": false
11508
+ }
11509
+ }
11510
+ }
11735
11511
  },
11736
11512
  "ProtocolInfo": {
11737
11513
  "fields": {
@@ -11740,17 +11516,18 @@
11740
11516
  "type": "uint32",
11741
11517
  "id": 1
11742
11518
  },
11519
+ "build_fingerprint": {
11520
+ "rule": "required",
11521
+ "type": "string",
11522
+ "id": 2
11523
+ },
11743
11524
  "supported_messages": {
11744
11525
  "rule": "repeated",
11745
11526
  "type": "uint32",
11746
- "id": 2,
11527
+ "id": 3,
11747
11528
  "options": {
11748
11529
  "packed": false
11749
11530
  }
11750
- },
11751
- "protobuf_definition": {
11752
- "type": "string",
11753
- "id": 3
11754
11531
  }
11755
11532
  }
11756
11533
  },
@@ -11836,73 +11613,69 @@
11836
11613
  },
11837
11614
  "DeviceSettings": {
11838
11615
  "fields": {
11839
- "label": {
11840
- "type": "string",
11841
- "id": 1
11842
- },
11843
11616
  "bt_enable": {
11844
11617
  "type": "bool",
11845
- "id": 2
11618
+ "id": 1
11846
11619
  },
11847
11620
  "language": {
11848
11621
  "type": "string",
11849
- "id": 3
11622
+ "id": 2
11850
11623
  },
11851
11624
  "wallpaper_path": {
11852
11625
  "type": "string",
11853
- "id": 4
11854
- },
11855
- "passphrase_enable": {
11856
- "type": "bool",
11857
- "id": 6
11626
+ "id": 3
11858
11627
  },
11859
11628
  "brightness": {
11860
11629
  "type": "uint32",
11861
- "id": 7
11862
- },
11863
- "autolock_delay_ms": {
11864
- "type": "uint32",
11865
- "id": 8
11866
- },
11867
- "autoshutdown_delay_ms": {
11868
- "type": "uint32",
11869
- "id": 9
11630
+ "id": 4
11870
11631
  },
11871
11632
  "animation_enable": {
11872
11633
  "type": "bool",
11873
- "id": 10
11634
+ "id": 5
11874
11635
  },
11875
11636
  "tap_to_wake": {
11876
11637
  "type": "bool",
11877
- "id": 11
11638
+ "id": 6
11878
11639
  },
11879
11640
  "haptic_feedback": {
11880
11641
  "type": "bool",
11881
- "id": 12
11642
+ "id": 7
11882
11643
  },
11883
11644
  "device_name_display_enabled": {
11884
11645
  "type": "bool",
11885
- "id": 13
11646
+ "id": 8
11886
11647
  },
11887
11648
  "airgap_mode": {
11888
11649
  "type": "bool",
11889
- "id": 14
11650
+ "id": 9
11890
11651
  },
11891
- "fido_enabled": {
11652
+ "usb_lock_enable": {
11892
11653
  "type": "bool",
11893
- "id": 15
11654
+ "id": 10
11894
11655
  },
11895
- "experimental_features": {
11656
+ "random_keypad": {
11896
11657
  "type": "bool",
11897
- "id": 16
11658
+ "id": 11
11898
11659
  },
11899
- "usb_lock_enable": {
11660
+ "passphrase_enable": {
11900
11661
  "type": "bool",
11901
- "id": 17
11662
+ "id": 100
11902
11663
  },
11903
- "random_keypad": {
11664
+ "fido_enabled": {
11904
11665
  "type": "bool",
11905
- "id": 18
11666
+ "id": 101
11667
+ },
11668
+ "autolock_delay_ms": {
11669
+ "type": "uint32",
11670
+ "id": 102
11671
+ },
11672
+ "autoshutdown_delay_ms": {
11673
+ "type": "uint32",
11674
+ "id": 103
11675
+ },
11676
+ "label": {
11677
+ "type": "string",
11678
+ "id": 104
11906
11679
  }
11907
11680
  }
11908
11681
  },
@@ -11982,6 +11755,114 @@
11982
11755
  }
11983
11756
  }
11984
11757
  },
11758
+ "DeviceMiscUsbMscControl": {
11759
+ "fields": {
11760
+ "enable": {
11761
+ "rule": "required",
11762
+ "type": "bool",
11763
+ "id": 1
11764
+ }
11765
+ }
11766
+ },
11767
+ "DeviceFactoryAck": {
11768
+ "values": {
11769
+ "FACTORY_ACK_SUCCESS": 0,
11770
+ "FACTORY_ACK_FAIL": 1
11771
+ }
11772
+ },
11773
+ "DeviceFactoryInfoManufactureTime": {
11774
+ "fields": {
11775
+ "year": {
11776
+ "rule": "required",
11777
+ "type": "uint32",
11778
+ "id": 1
11779
+ },
11780
+ "month": {
11781
+ "rule": "required",
11782
+ "type": "uint32",
11783
+ "id": 2
11784
+ },
11785
+ "day": {
11786
+ "rule": "required",
11787
+ "type": "uint32",
11788
+ "id": 3
11789
+ },
11790
+ "hour": {
11791
+ "rule": "required",
11792
+ "type": "uint32",
11793
+ "id": 4
11794
+ },
11795
+ "minute": {
11796
+ "rule": "required",
11797
+ "type": "uint32",
11798
+ "id": 5
11799
+ },
11800
+ "second": {
11801
+ "rule": "required",
11802
+ "type": "uint32",
11803
+ "id": 6
11804
+ }
11805
+ }
11806
+ },
11807
+ "DeviceFactoryInfo": {
11808
+ "fields": {
11809
+ "version": {
11810
+ "type": "uint32",
11811
+ "id": 1
11812
+ },
11813
+ "serial_number": {
11814
+ "type": "string",
11815
+ "id": 2
11816
+ },
11817
+ "factory_test_completed": {
11818
+ "type": "bool",
11819
+ "id": 4
11820
+ },
11821
+ "factory_burn_in_completed": {
11822
+ "type": "bool",
11823
+ "id": 3
11824
+ },
11825
+ "manufacture_time": {
11826
+ "type": "DeviceFactoryInfoManufactureTime",
11827
+ "id": 5
11828
+ }
11829
+ }
11830
+ },
11831
+ "DeviceFactoryInfoSet": {
11832
+ "fields": {
11833
+ "info": {
11834
+ "rule": "required",
11835
+ "type": "DeviceFactoryInfo",
11836
+ "id": 1
11837
+ }
11838
+ }
11839
+ },
11840
+ "DeviceFactoryInfoGet": {
11841
+ "fields": {}
11842
+ },
11843
+ "DeviceFactoryPermanentLock": {
11844
+ "fields": {
11845
+ "check_a": {
11846
+ "rule": "required",
11847
+ "type": "bytes",
11848
+ "id": 1
11849
+ },
11850
+ "check_b": {
11851
+ "rule": "required",
11852
+ "type": "bytes",
11853
+ "id": 2
11854
+ }
11855
+ }
11856
+ },
11857
+ "DeviceFactoryTest": {
11858
+ "fields": {
11859
+ "burn_in_test": {
11860
+ "rule": "required",
11861
+ "type": "bool",
11862
+ "id": 1
11863
+ }
11864
+ }
11865
+ },
11985
11866
  "DeviceFirmwareTargetType": {
11986
11867
  "values": {
11987
11868
  "FW_MGMT_TARGET_INVALID": 0,
@@ -12026,7 +11907,7 @@
12026
11907
  }
12027
11908
  }
12028
11909
  },
12029
- "DeviceFirmwareUpdateRequest": {
11910
+ "DeviceFirmwareUpdateStage": {
12030
11911
  "fields": {
12031
11912
  "targets": {
12032
11913
  "rule": "repeated",
@@ -12035,6 +11916,9 @@
12035
11916
  }
12036
11917
  }
12037
11918
  },
11919
+ "DeviceFirmwareUpdateRequest": {
11920
+ "fields": {}
11921
+ },
12038
11922
  "DeviceFirmwareUpdateRecord": {
12039
11923
  "fields": {
12040
11924
  "target_id": {
@@ -12089,105 +11973,6 @@
12089
11973
  }
12090
11974
  }
12091
11975
  },
12092
- "DeviceFactoryAck": {
12093
- "values": {
12094
- "FACTORY_ACK_SUCCESS": 0,
12095
- "FACTORY_ACK_FAIL": 1
12096
- }
12097
- },
12098
- "DeviceFactoryInfoManufactureTime": {
12099
- "fields": {
12100
- "year": {
12101
- "rule": "required",
12102
- "type": "uint32",
12103
- "id": 1
12104
- },
12105
- "month": {
12106
- "rule": "required",
12107
- "type": "uint32",
12108
- "id": 2
12109
- },
12110
- "day": {
12111
- "rule": "required",
12112
- "type": "uint32",
12113
- "id": 3
12114
- },
12115
- "hour": {
12116
- "rule": "required",
12117
- "type": "uint32",
12118
- "id": 4
12119
- },
12120
- "minute": {
12121
- "rule": "required",
12122
- "type": "uint32",
12123
- "id": 5
12124
- },
12125
- "second": {
12126
- "rule": "required",
12127
- "type": "uint32",
12128
- "id": 6
12129
- }
12130
- }
12131
- },
12132
- "DeviceFactoryInfo": {
12133
- "fields": {
12134
- "version": {
12135
- "type": "uint32",
12136
- "id": 1
12137
- },
12138
- "serial_number": {
12139
- "type": "string",
12140
- "id": 2
12141
- },
12142
- "burn_in_completed": {
12143
- "type": "bool",
12144
- "id": 3
12145
- },
12146
- "factory_test_completed": {
12147
- "type": "bool",
12148
- "id": 4
12149
- },
12150
- "manufacture_time": {
12151
- "type": "DeviceFactoryInfoManufactureTime",
12152
- "id": 5
12153
- }
12154
- }
12155
- },
12156
- "DeviceFactoryInfoSet": {
12157
- "fields": {
12158
- "info": {
12159
- "rule": "required",
12160
- "type": "DeviceFactoryInfo",
12161
- "id": 1
12162
- }
12163
- }
12164
- },
12165
- "DeviceFactoryInfoGet": {
12166
- "fields": {}
12167
- },
12168
- "DeviceFactoryPermanentLock": {
12169
- "fields": {
12170
- "check_a": {
12171
- "rule": "required",
12172
- "type": "bytes",
12173
- "id": 1
12174
- },
12175
- "check_b": {
12176
- "rule": "required",
12177
- "type": "bytes",
12178
- "id": 2
12179
- }
12180
- }
12181
- },
12182
- "DeviceFactoryTest": {
12183
- "fields": {
12184
- "burn_in_test": {
12185
- "rule": "required",
12186
- "type": "bool",
12187
- "id": 1
12188
- }
12189
- }
12190
- },
12191
11976
  "DeviceType": {
12192
11977
  "values": {
12193
11978
  "CLASSIC1": 0,
@@ -12315,7 +12100,7 @@
12315
12100
  "type": "bool",
12316
12101
  "id": 100
12317
12102
  },
12318
- "fw": {
12103
+ "main_mcu": {
12319
12104
  "type": "bool",
12320
12105
  "id": 200
12321
12106
  },
@@ -12338,10 +12123,6 @@
12338
12123
  "se4": {
12339
12124
  "type": "bool",
12340
12125
  "id": 430
12341
- },
12342
- "status": {
12343
- "type": "bool",
12344
- "id": 10000
12345
12126
  }
12346
12127
  }
12347
12128
  },
@@ -12388,7 +12169,7 @@
12388
12169
  "type": "DeviceHardwareInfo",
12389
12170
  "id": 100
12390
12171
  },
12391
- "fw": {
12172
+ "main_mcu": {
12392
12173
  "type": "DeviceMainMcuInfo",
12393
12174
  "id": 200
12394
12175
  },
@@ -12411,18 +12192,39 @@
12411
12192
  "se4": {
12412
12193
  "type": "DeviceSEInfo",
12413
12194
  "id": 430
12414
- },
12415
- "status": {
12416
- "type": "DeviceStatus",
12417
- "id": 10000
12418
12195
  }
12419
12196
  }
12420
12197
  },
12198
+ "DeviceSessionErrorCode": {
12199
+ "values": {
12200
+ "DeviceSessionError_None": 0,
12201
+ "DeviceSessionError_UserCancelled": 1,
12202
+ "DeviceSessionError_InvalidSession": 2,
12203
+ "DeviceSessionError_AttachPinUnavailable": 3,
12204
+ "DeviceSessionError_PassphraseDisabled": 4,
12205
+ "DeviceSessionError_Busy": 5
12206
+ }
12207
+ },
12208
+ "DeviceSessionSeedDomain": {
12209
+ "values": {
12210
+ "SeedDomain_Standard": 1,
12211
+ "SeedDomain_Cardano": 2
12212
+ }
12213
+ },
12421
12214
  "DeviceSessionGet": {
12422
12215
  "fields": {
12423
12216
  "session_id": {
12424
12217
  "type": "bytes",
12425
12218
  "id": 1
12219
+ },
12220
+ "btc_test_address": {
12221
+ "type": "string",
12222
+ "id": 2
12223
+ },
12224
+ "seed_domains": {
12225
+ "rule": "repeated",
12226
+ "type": "DeviceSessionSeedDomain",
12227
+ "id": 3
12426
12228
  }
12427
12229
  }
12428
12230
  },
@@ -12438,12 +12240,37 @@
12438
12240
  }
12439
12241
  }
12440
12242
  },
12441
- "DeviceSessionAskPin": {
12442
- "fields": {}
12443
- },
12444
- "DeviceSessionAskPin_FailureSubCodes": {
12243
+ "DeviceSessionPinType": {
12445
12244
  "values": {
12446
- "UserCancel": 1
12245
+ "Any": 1,
12246
+ "Main": 2,
12247
+ "AttachToPin": 3
12248
+ }
12249
+ },
12250
+ "DeviceSessionAskPin": {
12251
+ "fields": {
12252
+ "type": {
12253
+ "type": "DeviceSessionPinType",
12254
+ "id": 1
12255
+ }
12256
+ }
12257
+ },
12258
+ "DeviceSessionAskPassphrase": {
12259
+ "fields": {
12260
+ "passphrase": {
12261
+ "type": "string",
12262
+ "id": 1
12263
+ },
12264
+ "on_device": {
12265
+ "rule": "required",
12266
+ "type": "bool",
12267
+ "id": 2
12268
+ }
12269
+ }
12270
+ },
12271
+ "DeviceSessionAskPin_FailureSubCodes": {
12272
+ "values": {
12273
+ "UserCancel": 1
12447
12274
  }
12448
12275
  },
12449
12276
  "DeviceStatus": {
@@ -12481,43 +12308,6 @@
12481
12308
  "DeviceStatusGet": {
12482
12309
  "fields": {}
12483
12310
  },
12484
- "DevOnboardingStage": {
12485
- "values": {
12486
- "DEV_ONBOARDING_STAGE_UNKNOWN": 0,
12487
- "DEV_ONBOARDING_STAGE_SAFETY_CHECK": 1,
12488
- "DEV_ONBOARDING_STAGE_PERSONALIZATION": 2,
12489
- "DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD": 3,
12490
- "DEV_ONBOARDING_STAGE_NEW_DEVICE": 4,
12491
- "DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD": 5,
12492
- "DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC": 6,
12493
- "DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD": 7,
12494
- "DEV_ONBOARDING_STAGE_WALLET_READY": 8,
12495
- "DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT": 9,
12496
- "DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD": 10,
12497
- "DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP": 11,
12498
- "DEV_ONBOARDING_STAGE_DONE": 12
12499
- }
12500
- },
12501
- "DevGetOnboardingStatus": {
12502
- "fields": {}
12503
- },
12504
- "DevOnboardingStatus": {
12505
- "fields": {
12506
- "stage": {
12507
- "rule": "required",
12508
- "type": "DevOnboardingStage",
12509
- "id": 1
12510
- },
12511
- "status_code": {
12512
- "type": "uint32",
12513
- "id": 2
12514
- },
12515
- "detail_code": {
12516
- "type": "uint32",
12517
- "id": 3
12518
- }
12519
- }
12520
- },
12521
12311
  "FilesystemPermissionFix": {
12522
12312
  "fields": {}
12523
12313
  },
@@ -12744,9 +12534,293 @@
12744
12534
  }
12745
12535
  }
12746
12536
  },
12537
+ "InternalMyAddressRequest": {
12538
+ "fields": {
12539
+ "coin_type": {
12540
+ "rule": "required",
12541
+ "type": "uint32",
12542
+ "id": 1
12543
+ },
12544
+ "chain_id": {
12545
+ "rule": "required",
12546
+ "type": "uint32",
12547
+ "id": 2
12548
+ },
12549
+ "account_index": {
12550
+ "rule": "required",
12551
+ "type": "uint32",
12552
+ "id": 3
12553
+ },
12554
+ "derive_type": {
12555
+ "rule": "required",
12556
+ "type": "uint32",
12557
+ "id": 4
12558
+ }
12559
+ }
12560
+ },
12561
+ "NftUpdate": {
12562
+ "fields": {
12563
+ "file_name_no_ext": {
12564
+ "rule": "required",
12565
+ "type": "string",
12566
+ "id": 1
12567
+ }
12568
+ }
12569
+ },
12570
+ "OnboardingStep": {
12571
+ "values": {
12572
+ "ONBOARDING_STEP_UNKNOWN": 0,
12573
+ "ONBOARDING_STEP_CHECKING": 1,
12574
+ "ONBOARDING_STEP_PERSONALIZATION": 2,
12575
+ "ONBOARDING_STEP_PIN": 3,
12576
+ "ONBOARDING_STEP_SETUP": 4,
12577
+ "ONBOARDING_STEP_DONE": 5
12578
+ }
12579
+ },
12580
+ "OnboardingPhase": {
12581
+ "values": {
12582
+ "ONBOARDING_PHASE_UNKNOWN": 0,
12583
+ "ONBOARDING_PHASE_SAFETY_CHECK": 1,
12584
+ "ONBOARDING_PHASE_PIN_SETUP": 2,
12585
+ "ONBOARDING_PHASE_FINGERPRINT_SETUP": 3,
12586
+ "ONBOARDING_PHASE_SETUP_CHOICE": 4,
12587
+ "ONBOARDING_PHASE_WALLET_CREATE_START": 5,
12588
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW": 6,
12589
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM": 7,
12590
+ "ONBOARDING_PHASE_RESTORE_METHOD_CHOICE": 8,
12591
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE": 9,
12592
+ "ONBOARDING_PHASE_SEEDCARD_RESTORE": 10,
12593
+ "ONBOARDING_PHASE_WALLET_READY": 11,
12594
+ "ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT": 12,
12595
+ "ONBOARDING_PHASE_SEEDCARD_BACKUP": 13
12596
+ }
12597
+ },
12598
+ "OnboardingSetupKind": {
12599
+ "values": {
12600
+ "ONBOARDING_SETUP_KIND_UNKNOWN": 0,
12601
+ "ONBOARDING_SETUP_KIND_CHOICE": 1,
12602
+ "ONBOARDING_SETUP_KIND_CREATE": 2,
12603
+ "ONBOARDING_SETUP_KIND_RESTORE": 3
12604
+ }
12605
+ },
12606
+ "OnboardingSetupMethod": {
12607
+ "values": {
12608
+ "ONBOARDING_SETUP_METHOD_UNKNOWN": 0,
12609
+ "ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE": 1,
12610
+ "ONBOARDING_SETUP_METHOD_SEEDCARD": 2
12611
+ }
12612
+ },
12613
+ "OnboardingSetupStatus": {
12614
+ "fields": {
12615
+ "kind": {
12616
+ "type": "OnboardingSetupKind",
12617
+ "id": 1
12618
+ },
12619
+ "method": {
12620
+ "type": "OnboardingSetupMethod",
12621
+ "id": 2
12622
+ }
12623
+ }
12624
+ },
12625
+ "OnboardingStatusGet": {
12626
+ "fields": {}
12627
+ },
12628
+ "OnboardingStatus": {
12629
+ "fields": {
12630
+ "step": {
12631
+ "type": "OnboardingStep",
12632
+ "id": 1
12633
+ },
12634
+ "phase": {
12635
+ "type": "OnboardingPhase",
12636
+ "id": 2
12637
+ },
12638
+ "setup": {
12639
+ "type": "OnboardingSetupStatus",
12640
+ "id": 3
12641
+ },
12642
+ "pin_set": {
12643
+ "type": "bool",
12644
+ "id": 4
12645
+ },
12646
+ "wallet_initialized": {
12647
+ "type": "bool",
12648
+ "id": 5
12649
+ }
12650
+ }
12651
+ },
12747
12652
  "PortfolioUpdate": {
12748
12653
  "fields": {}
12749
12654
  },
12655
+ "ViewAmount": {
12656
+ "fields": {
12657
+ "is_unlimited": {
12658
+ "rule": "required",
12659
+ "type": "bool",
12660
+ "id": 1
12661
+ },
12662
+ "num": {
12663
+ "rule": "required",
12664
+ "type": "string",
12665
+ "id": 2
12666
+ }
12667
+ }
12668
+ },
12669
+ "ViewDetail": {
12670
+ "fields": {
12671
+ "key": {
12672
+ "rule": "required",
12673
+ "type": "uint32",
12674
+ "id": 1
12675
+ },
12676
+ "value": {
12677
+ "rule": "required",
12678
+ "type": "string",
12679
+ "id": 2
12680
+ },
12681
+ "is_overview": {
12682
+ "rule": "required",
12683
+ "type": "bool",
12684
+ "id": 3
12685
+ },
12686
+ "has_icon": {
12687
+ "rule": "required",
12688
+ "type": "bool",
12689
+ "id": 4
12690
+ }
12691
+ }
12692
+ },
12693
+ "ViewTipType": {
12694
+ "values": {
12695
+ "Default": 0,
12696
+ "Highlight": 1,
12697
+ "Recommend": 2,
12698
+ "Warning": 3,
12699
+ "Danger": 4
12700
+ }
12701
+ },
12702
+ "ViewTip": {
12703
+ "fields": {
12704
+ "type": {
12705
+ "rule": "required",
12706
+ "type": "ViewTipType",
12707
+ "id": 1
12708
+ },
12709
+ "text": {
12710
+ "type": "string",
12711
+ "id": 2
12712
+ },
12713
+ "text_id": {
12714
+ "type": "uint32",
12715
+ "id": 3
12716
+ }
12717
+ }
12718
+ },
12719
+ "ViewRawData": {
12720
+ "fields": {
12721
+ "initial_data": {
12722
+ "rule": "required",
12723
+ "type": "string",
12724
+ "id": 1
12725
+ },
12726
+ "placeholder": {
12727
+ "rule": "required",
12728
+ "type": "uint32",
12729
+ "id": 2
12730
+ }
12731
+ }
12732
+ },
12733
+ "ViewSignLayout": {
12734
+ "values": {
12735
+ "LayoutDefault": 0,
12736
+ "LayoutSafeTxCreate": 1,
12737
+ "LayoutFinalConfirm": 2,
12738
+ "Layout7702": 3,
12739
+ "LayoutFlat": 4,
12740
+ "LayoutEthApprove": 5
12741
+ }
12742
+ },
12743
+ "ViewSignPage": {
12744
+ "fields": {
12745
+ "title": {
12746
+ "type": "string",
12747
+ "id": 1
12748
+ },
12749
+ "amount": {
12750
+ "type": "ViewAmount",
12751
+ "id": 2
12752
+ },
12753
+ "general": {
12754
+ "rule": "repeated",
12755
+ "type": "ViewDetail",
12756
+ "id": 3
12757
+ },
12758
+ "tip": {
12759
+ "type": "ViewTip",
12760
+ "id": 4
12761
+ },
12762
+ "raw_data": {
12763
+ "type": "ViewRawData",
12764
+ "id": 5
12765
+ },
12766
+ "slide_to_confirm": {
12767
+ "type": "bool",
12768
+ "id": 6,
12769
+ "options": {
12770
+ "default": true
12771
+ }
12772
+ },
12773
+ "layout": {
12774
+ "type": "ViewSignLayout",
12775
+ "id": 7,
12776
+ "options": {
12777
+ "default": "LayoutDefault"
12778
+ }
12779
+ },
12780
+ "title_id": {
12781
+ "type": "uint32",
12782
+ "id": 8
12783
+ }
12784
+ }
12785
+ },
12786
+ "ViewVerifyPage": {
12787
+ "fields": {
12788
+ "title": {
12789
+ "type": "string",
12790
+ "id": 1
12791
+ },
12792
+ "address": {
12793
+ "rule": "required",
12794
+ "type": "string",
12795
+ "id": 2
12796
+ },
12797
+ "path": {
12798
+ "rule": "required",
12799
+ "type": "string",
12800
+ "id": 3
12801
+ },
12802
+ "network": {
12803
+ "type": "string",
12804
+ "id": 4
12805
+ },
12806
+ "derive_type": {
12807
+ "type": "string",
12808
+ "id": 5
12809
+ },
12810
+ "value_key": {
12811
+ "type": "uint32",
12812
+ "id": 6
12813
+ },
12814
+ "title_id": {
12815
+ "type": "uint32",
12816
+ "id": 7
12817
+ },
12818
+ "chain_id": {
12819
+ "type": "uint32",
12820
+ "id": 8
12821
+ }
12822
+ }
12823
+ },
12750
12824
  "google": {
12751
12825
  "nested": {
12752
12826
  "protobuf": {