@onekeyfe/hd-core 1.2.0-alpha.2 → 1.2.0-alpha.21

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 (406) hide show
  1. package/__tests__/AllNetworkGetAddressBase.tracing.test.ts +75 -0
  2. package/__tests__/DeviceCommands.test.ts +285 -0
  3. package/__tests__/DeviceEventRegistration.test.ts +43 -0
  4. package/__tests__/connectSettings.test.ts +19 -0
  5. package/__tests__/core-dispose.test.ts +34 -0
  6. package/__tests__/core-error-output.test.ts +39 -0
  7. package/__tests__/device-features-state.test.ts +78 -0
  8. package/__tests__/device-identity.test.ts +30 -0
  9. package/__tests__/device-lifecycle-events.test.ts +117 -0
  10. package/__tests__/device-pool-state.test.ts +132 -0
  11. package/__tests__/device-settings.test.ts +391 -0
  12. package/__tests__/device-state-contract.test.ts +27 -0
  13. package/__tests__/device-state-events.test.ts +162 -0
  14. package/__tests__/device-state-mapper.test.ts +241 -0
  15. package/__tests__/device-state-projector.test.ts +94 -0
  16. package/__tests__/device-state-store.test.ts +82 -0
  17. package/__tests__/device-utils.test.ts +106 -0
  18. package/__tests__/device-wallet-session-store.test.ts +213 -0
  19. package/__tests__/deviceFeaturesUtils.test.ts +39 -0
  20. package/__tests__/deviceSettings.test.ts +103 -0
  21. package/__tests__/evmLedgerLegacySafety.test.ts +10 -6
  22. package/__tests__/evmSignTypedData.test.ts +80 -0
  23. package/__tests__/filesystemValidation.test.ts +53 -0
  24. package/__tests__/firmware-update/firmware-update-v2-download-before-boot.test.ts +402 -0
  25. package/__tests__/get-device-state.test.ts +410 -0
  26. package/__tests__/homescreen.test.ts +24 -0
  27. package/__tests__/kaspaSignTransaction.test.ts +591 -0
  28. package/__tests__/logBlockEvent.test.ts +26 -0
  29. package/__tests__/networkUtils.test.ts +386 -0
  30. package/__tests__/open-wallet-session-error-response.test.ts +43 -0
  31. package/__tests__/open-wallet-session.test.ts +559 -0
  32. package/__tests__/preInitialize.test.ts +33 -0
  33. package/__tests__/pro2Wallpaper.test.ts +50 -0
  34. package/__tests__/protocol-v2-bootloader-mode.test.ts +37 -0
  35. package/__tests__/protocol-v2-firmware-targets.test.ts +19 -0
  36. package/__tests__/protocol-v2.test.ts +3954 -1191
  37. package/__tests__/protocolV2FileWrite.test.ts +92 -0
  38. package/__tests__/protocolV2UiInteraction.test.ts +266 -0
  39. package/__tests__/public-device-state-api.test.ts +257 -0
  40. package/__tests__/public-pro2-api-boundary.test.ts +110 -0
  41. package/__tests__/refresh-device-state.test.ts +101 -0
  42. package/__tests__/request-context-logging.test.ts +16 -0
  43. package/__tests__/search-devices.test.ts +136 -0
  44. package/dist/api/BaseMethod.d.ts +8 -0
  45. package/dist/api/BaseMethod.d.ts.map +1 -1
  46. package/dist/api/CheckBootloaderRelease.d.ts.map +1 -1
  47. package/dist/api/CheckFirmwareRelease.d.ts.map +1 -1
  48. package/dist/api/ClearSessionCache.d.ts +9 -0
  49. package/dist/api/ClearSessionCache.d.ts.map +1 -0
  50. package/dist/api/DirList.d.ts.map +1 -1
  51. package/dist/api/FileRead.d.ts.map +1 -1
  52. package/dist/api/FileWrite.d.ts +1 -0
  53. package/dist/api/FileWrite.d.ts.map +1 -1
  54. package/dist/api/FirmwareUpdateV2.d.ts +2 -2
  55. package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
  56. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  57. package/dist/api/FirmwareUpdateV4.d.ts +25 -5
  58. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  59. package/dist/api/GetDeviceState.d.ts +7 -0
  60. package/dist/api/GetDeviceState.d.ts.map +1 -0
  61. package/dist/api/GetFeatures.d.ts +1 -1
  62. package/dist/api/GetFeatures.d.ts.map +1 -1
  63. package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
  64. package/dist/api/GetPassphraseState.d.ts +1 -6
  65. package/dist/api/GetPassphraseState.d.ts.map +1 -1
  66. package/dist/api/OpenWalletSession.d.ts +14 -0
  67. package/dist/api/OpenWalletSession.d.ts.map +1 -0
  68. package/dist/api/PathInfo.d.ts.map +1 -1
  69. package/dist/api/PromptWebDeviceAccess.d.ts.map +1 -1
  70. package/dist/api/SearchDevices.d.ts +3 -0
  71. package/dist/api/SearchDevices.d.ts.map +1 -1
  72. package/dist/api/UploadPortfolio.d.ts +17 -0
  73. package/dist/api/UploadPortfolio.d.ts.map +1 -0
  74. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
  75. package/dist/api/device/DeviceCancel.d.ts.map +1 -1
  76. package/dist/api/device/DeviceChangePin.d.ts.map +1 -1
  77. package/dist/api/device/DeviceFullyUploadResource.d.ts +1 -2
  78. package/dist/api/device/DeviceFullyUploadResource.d.ts.map +1 -1
  79. package/dist/api/device/DeviceLock.d.ts.map +1 -1
  80. package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -1
  81. package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -1
  82. package/dist/api/device/DeviceSettings.d.ts.map +1 -1
  83. package/dist/api/device/DeviceUnlock.d.ts +1 -1
  84. package/dist/api/device/DeviceUnlock.d.ts.map +1 -1
  85. package/dist/api/device/DeviceUpdateBootloader.d.ts.map +1 -1
  86. package/dist/api/device/DeviceWipe.d.ts.map +1 -1
  87. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  88. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +1 -0
  89. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
  90. package/dist/api/firmware/getBinary.d.ts +11 -3
  91. package/dist/api/firmware/getBinary.d.ts.map +1 -1
  92. package/dist/api/firmware/progressThrottle.d.ts +3 -0
  93. package/dist/api/firmware/progressThrottle.d.ts.map +1 -0
  94. package/dist/api/helpers/filesystemValidation.d.ts +3 -0
  95. package/dist/api/helpers/filesystemValidation.d.ts.map +1 -1
  96. package/dist/api/helpers/paramsValidator.d.ts +1 -0
  97. package/dist/api/helpers/paramsValidator.d.ts.map +1 -1
  98. package/dist/api/helpers/protocolV2FileWrite.d.ts +33 -0
  99. package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -0
  100. package/dist/api/index.d.ts +12 -19
  101. package/dist/api/index.d.ts.map +1 -1
  102. package/dist/api/kaspa/KaspaSignTransaction.d.ts +5 -1
  103. package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -1
  104. package/dist/api/kaspa/helpers/TransferSerialize.d.ts.map +1 -1
  105. package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts +6 -0
  106. package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts.map +1 -0
  107. package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts +7 -0
  108. package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts.map +1 -0
  109. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts +1 -1
  110. package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts.map +1 -1
  111. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts +3 -2
  112. package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +1 -1
  113. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +1 -1
  114. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +1 -1
  115. package/dist/api/protocol-v2/DeviceInfoGet.d.ts +28 -0
  116. package/dist/api/protocol-v2/DeviceInfoGet.d.ts.map +1 -0
  117. package/dist/api/protocol-v2/DeviceReboot.d.ts.map +1 -1
  118. package/dist/api/protocol-v2/DeviceStatusGet.d.ts +6 -0
  119. package/dist/api/protocol-v2/DeviceStatusGet.d.ts.map +1 -0
  120. package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts +26 -0
  121. package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts.map +1 -0
  122. package/dist/api/protocol-v2/FilesystemFormat.d.ts.map +1 -1
  123. package/dist/api/protocol-v2/{FilesystemFixPermission.d.ts → FilesystemPermissionFix.d.ts} +2 -2
  124. package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts.map +1 -0
  125. package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts +6 -0
  126. package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts.map +1 -0
  127. package/dist/api/protocol-v2/helpers.d.ts +27 -19
  128. package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
  129. package/dist/api/ton/TonSignData.d.ts +1 -5
  130. package/dist/api/ton/TonSignData.d.ts.map +1 -1
  131. package/dist/api/utils.d.ts +2 -1
  132. package/dist/api/utils.d.ts.map +1 -1
  133. package/dist/constants/index.d.ts +2 -1
  134. package/dist/constants/index.d.ts.map +1 -1
  135. package/dist/core/RequestQueue.d.ts.map +1 -1
  136. package/dist/core/deviceEventRegistration.d.ts +11 -0
  137. package/dist/core/deviceEventRegistration.d.ts.map +1 -0
  138. package/dist/core/index.d.ts +3 -1
  139. package/dist/core/index.d.ts.map +1 -1
  140. package/dist/data-manager/DataManager.d.ts +1 -1
  141. package/dist/data-manager/DataManager.d.ts.map +1 -1
  142. package/dist/data-manager/connectSettings.d.ts.map +1 -1
  143. package/dist/device/Device.d.ts +35 -11
  144. package/dist/device/Device.d.ts.map +1 -1
  145. package/dist/device/DeviceCommands.d.ts +8 -6
  146. package/dist/device/DeviceCommands.d.ts.map +1 -1
  147. package/dist/device/DeviceFeaturesState.d.ts +3 -0
  148. package/dist/device/DeviceFeaturesState.d.ts.map +1 -0
  149. package/dist/device/DevicePool.d.ts +4 -2
  150. package/dist/device/DevicePool.d.ts.map +1 -1
  151. package/dist/device/DeviceStateMapper.d.ts +13 -0
  152. package/dist/device/DeviceStateMapper.d.ts.map +1 -0
  153. package/dist/device/DeviceStateProjector.d.ts +7 -0
  154. package/dist/device/DeviceStateProjector.d.ts.map +1 -0
  155. package/dist/device/DeviceStateStore.d.ts +21 -0
  156. package/dist/device/DeviceStateStore.d.ts.map +1 -0
  157. package/dist/device/DeviceWalletSessionStore.d.ts +20 -0
  158. package/dist/device/DeviceWalletSessionStore.d.ts.map +1 -0
  159. package/dist/device/cloneDeviceState.d.ts +2 -0
  160. package/dist/device/cloneDeviceState.d.ts.map +1 -0
  161. package/dist/device/deviceIdentity.d.ts +5 -0
  162. package/dist/device/deviceIdentity.d.ts.map +1 -0
  163. package/dist/deviceProfile/buildDeviceFeatures.d.ts +9 -3
  164. package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -1
  165. package/dist/deviceProfile/index.d.ts +0 -1
  166. package/dist/deviceProfile/index.d.ts.map +1 -1
  167. package/dist/events/device.d.ts +11 -2
  168. package/dist/events/device.d.ts.map +1 -1
  169. package/dist/events/logBlockEvent.d.ts.map +1 -1
  170. package/dist/events/ui-request.d.ts +18 -2
  171. package/dist/events/ui-request.d.ts.map +1 -1
  172. package/dist/index.d.ts +1361 -609
  173. package/dist/index.js +5898 -2860
  174. package/dist/inject.d.ts.map +1 -1
  175. package/dist/protocols/protocol-v2/deviceSession.d.ts +7 -0
  176. package/dist/protocols/protocol-v2/deviceSession.d.ts.map +1 -0
  177. package/dist/protocols/protocol-v2/features.d.ts +23 -28
  178. package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
  179. package/dist/protocols/protocol-v2/firmware.d.ts +11 -9
  180. package/dist/protocols/protocol-v2/firmware.d.ts.map +1 -1
  181. package/dist/protocols/protocol-v2/index.d.ts +3 -2
  182. package/dist/protocols/protocol-v2/index.d.ts.map +1 -1
  183. package/dist/protocols/protocol-v2/lockedError.d.ts +2 -0
  184. package/dist/protocols/protocol-v2/lockedError.d.ts.map +1 -0
  185. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts +16 -0
  186. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts.map +1 -0
  187. package/dist/protocols/protocol-v2/uiInteraction.d.ts +39 -0
  188. package/dist/protocols/protocol-v2/uiInteraction.d.ts.map +1 -0
  189. package/dist/protocols/protocol-v2/unlockRetry.d.ts +11 -0
  190. package/dist/protocols/protocol-v2/unlockRetry.d.ts.map +1 -0
  191. package/dist/protocols/protocol-v2/walletSession.d.ts +19 -0
  192. package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -0
  193. package/dist/types/api/checkAllFirmwareRelease.d.ts +1 -2
  194. package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -1
  195. package/dist/types/api/deviceSettings.d.ts +11 -2
  196. package/dist/types/api/deviceSettings.d.ts.map +1 -1
  197. package/dist/types/api/deviceUnlock.d.ts +2 -2
  198. package/dist/types/api/deviceUnlock.d.ts.map +1 -1
  199. package/dist/types/api/firmwareUpdate.d.ts +6 -6
  200. package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
  201. package/dist/types/api/getDeviceState.d.ts +12 -0
  202. package/dist/types/api/getDeviceState.d.ts.map +1 -0
  203. package/dist/types/api/getFeatures.d.ts.map +1 -1
  204. package/dist/types/api/getOnekeyFeatures.d.ts.map +1 -1
  205. package/dist/types/api/getPassphraseState.d.ts +2 -10
  206. package/dist/types/api/getPassphraseState.d.ts.map +1 -1
  207. package/dist/types/api/index.d.ts +22 -25
  208. package/dist/types/api/index.d.ts.map +1 -1
  209. package/dist/types/api/kaspaSignTransaction.d.ts +27 -2
  210. package/dist/types/api/kaspaSignTransaction.d.ts.map +1 -1
  211. package/dist/types/api/openWalletSession.d.ts +41 -0
  212. package/dist/types/api/openWalletSession.d.ts.map +1 -0
  213. package/dist/types/api/protocolV2.d.ts +23 -28
  214. package/dist/types/api/protocolV2.d.ts.map +1 -1
  215. package/dist/types/api/sessionCache.d.ts +10 -0
  216. package/dist/types/api/sessionCache.d.ts.map +1 -0
  217. package/dist/types/device.d.ts +121 -5
  218. package/dist/types/device.d.ts.map +1 -1
  219. package/dist/types/params.d.ts +1 -0
  220. package/dist/types/params.d.ts.map +1 -1
  221. package/dist/types/settings.d.ts +21 -1
  222. package/dist/types/settings.d.ts.map +1 -1
  223. package/dist/utils/assets.d.ts +2 -1
  224. package/dist/utils/assets.d.ts.map +1 -1
  225. package/dist/utils/deviceFeaturesCompat.d.ts +13 -0
  226. package/dist/utils/deviceFeaturesCompat.d.ts.map +1 -0
  227. package/dist/utils/deviceFeaturesUtils.d.ts +13 -3
  228. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  229. package/dist/utils/deviceInfoUtils.d.ts +9 -8
  230. package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
  231. package/dist/utils/deviceSettings.d.ts +38 -7
  232. package/dist/utils/deviceSettings.d.ts.map +1 -1
  233. package/dist/utils/deviceVersionUtils.d.ts +6 -5
  234. package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
  235. package/dist/utils/homescreen.d.ts.map +1 -1
  236. package/dist/utils/index.d.ts +5 -2
  237. package/dist/utils/index.d.ts.map +1 -1
  238. package/dist/utils/networkUtils.d.ts +9 -1
  239. package/dist/utils/networkUtils.d.ts.map +1 -1
  240. package/dist/utils/patch.d.ts +1 -1
  241. package/dist/utils/patch.d.ts.map +1 -1
  242. package/dist/utils/pro2Wallpaper.d.ts +12 -0
  243. package/dist/utils/pro2Wallpaper.d.ts.map +1 -0
  244. package/dist/utils/tracing.d.ts.map +1 -1
  245. package/package.json +4 -4
  246. package/src/api/BaseMethod.ts +36 -9
  247. package/src/api/CheckBootloaderRelease.ts +1 -2
  248. package/src/api/CheckFirmwareRelease.ts +1 -2
  249. package/src/api/ClearSessionCache.ts +28 -0
  250. package/src/api/DirList.ts +5 -3
  251. package/src/api/DirMake.ts +3 -3
  252. package/src/api/DirRemove.ts +3 -3
  253. package/src/api/FileDelete.ts +3 -3
  254. package/src/api/FileRead.ts +23 -7
  255. package/src/api/FileWrite.ts +23 -168
  256. package/src/api/FirmwareUpdate.ts +4 -4
  257. package/src/api/FirmwareUpdateV2.ts +133 -45
  258. package/src/api/FirmwareUpdateV3.ts +3 -5
  259. package/src/api/FirmwareUpdateV4.ts +1138 -357
  260. package/src/api/GetDeviceState.ts +55 -0
  261. package/src/api/GetFeatures.ts +8 -3
  262. package/src/api/GetOnekeyFeatures.ts +3 -72
  263. package/src/api/GetPassphraseState.ts +11 -18
  264. package/src/api/OpenWalletSession.ts +221 -0
  265. package/src/api/PathInfo.ts +5 -3
  266. package/src/api/PromptWebDeviceAccess.ts +2 -3
  267. package/src/api/SearchDevices.ts +29 -4
  268. package/src/api/UploadPortfolio.ts +40 -0
  269. package/src/api/alephium/AlephiumSignTransaction.ts +2 -2
  270. package/src/api/allnetwork/AllNetworkGetAddressBase.ts +4 -8
  271. package/src/api/benfen/BenfenGetAddress.ts +1 -1
  272. package/src/api/btc/BTCGetPublicKey.ts +1 -1
  273. package/src/api/cardano/CardanoSignMessage.ts +1 -1
  274. package/src/api/cardano/CardanoSignTransaction.ts +1 -1
  275. package/src/api/device/DeviceCancel.ts +1 -0
  276. package/src/api/device/DeviceChangePin.ts +24 -0
  277. package/src/api/device/DeviceFullyUploadResource.ts +4 -5
  278. package/src/api/device/DeviceLock.ts +1 -0
  279. package/src/api/device/DeviceRebootToBoardloader.ts +5 -4
  280. package/src/api/device/DeviceRebootToBootloader.ts +5 -4
  281. package/src/api/device/DeviceSettings.ts +183 -1
  282. package/src/api/device/DeviceUnlock.ts +11 -1
  283. package/src/api/device/DeviceUpdateBootloader.ts +1 -2
  284. package/src/api/device/DeviceWipe.ts +19 -0
  285. package/src/api/evm/EVMSignTypedData.ts +3 -5
  286. package/src/api/evm/legacyV1/getAddress.ts +2 -2
  287. package/src/api/evm/legacyV1/getPublicKey.ts +2 -2
  288. package/src/api/evm/legacyV1/signMessage.ts +2 -2
  289. package/src/api/evm/legacyV1/signTypedData.ts +2 -2
  290. package/src/api/evm/legacyV1/signTypedHash.ts +2 -2
  291. package/src/api/evm/legacyV1/verifyMessage.ts +2 -2
  292. package/src/api/firmware/FirmwareUpdateBaseMethod.ts +21 -7
  293. package/src/api/firmware/getBinary.ts +8 -3
  294. package/src/api/firmware/progressThrottle.ts +44 -0
  295. package/src/api/helpers/batchGetPublickeys.ts +2 -2
  296. package/src/api/helpers/filesystemValidation.ts +61 -0
  297. package/src/api/helpers/paramsValidator.ts +1 -1
  298. package/src/api/helpers/protocolV2FileWrite.ts +193 -0
  299. package/src/api/index.ts +14 -20
  300. package/src/api/kaspa/KaspaSignTransaction.ts +341 -22
  301. package/src/api/kaspa/helpers/TransferSerialize.ts +14 -0
  302. package/src/api/nervos/NervosSignTransaction.ts +2 -2
  303. package/src/api/nexa/NexaSignTransaction.ts +1 -1
  304. package/src/api/protocol-v2/{FactoryGetDeviceInfo.ts → DeviceFactoryInfoGet.ts} +4 -4
  305. package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +32 -0
  306. package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +7 -9
  307. package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +41 -6
  308. package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +6 -4
  309. package/src/api/protocol-v2/DeviceInfoGet.ts +145 -0
  310. package/src/api/protocol-v2/DeviceReboot.ts +5 -3
  311. package/src/api/protocol-v2/DeviceStatusGet.ts +16 -0
  312. package/src/api/protocol-v2/DeviceUploadWallpaper.ts +131 -0
  313. package/src/api/protocol-v2/FilesystemFormat.ts +5 -2
  314. package/src/api/protocol-v2/{FilesystemFixPermission.ts → FilesystemPermissionFix.ts} +3 -3
  315. package/src/api/protocol-v2/Ping.ts +1 -1
  316. package/src/api/protocol-v2/{GetProtoVersion.ts → ProtocolInfoRequest.ts} +3 -3
  317. package/src/api/protocol-v2/helpers.ts +58 -62
  318. package/src/api/ton/TonSignData.ts +1 -5
  319. package/src/api/utils.ts +7 -3
  320. package/src/constants/index.ts +7 -1
  321. package/src/core/RequestQueue.ts +1 -0
  322. package/src/core/deviceEventRegistration.ts +23 -0
  323. package/src/core/index.ts +140 -35
  324. package/src/data/messages/messages-protocol-v2.json +825 -709
  325. package/src/data/messages/messages.json +286 -1
  326. package/src/data-manager/DataManager.ts +13 -6
  327. package/src/data-manager/connectSettings.ts +4 -0
  328. package/src/device/Device.ts +480 -192
  329. package/src/device/DeviceCommands.ts +81 -25
  330. package/src/device/DeviceFeaturesState.ts +25 -0
  331. package/src/device/DevicePool.ts +67 -19
  332. package/src/device/DeviceStateMapper.ts +349 -0
  333. package/src/device/DeviceStateProjector.ts +95 -0
  334. package/src/device/DeviceStateStore.ts +201 -0
  335. package/src/device/DeviceWalletSessionStore.ts +105 -0
  336. package/src/device/cloneDeviceState.ts +39 -0
  337. package/src/device/deviceIdentity.ts +18 -0
  338. package/src/deviceProfile/buildDeviceFeatures.ts +235 -210
  339. package/src/deviceProfile/index.ts +0 -1
  340. package/src/events/device.ts +17 -1
  341. package/src/events/logBlockEvent.ts +8 -1
  342. package/src/events/ui-request.ts +24 -2
  343. package/src/inject.ts +23 -34
  344. package/src/protocols/protocol-v2/deviceSession.ts +24 -0
  345. package/src/protocols/protocol-v2/features.ts +68 -82
  346. package/src/protocols/protocol-v2/firmware.ts +12 -36
  347. package/src/protocols/protocol-v2/index.ts +3 -1
  348. package/src/protocols/protocol-v2/lockedError.ts +10 -0
  349. package/src/protocols/protocol-v2/settingsUnlockPolicy.ts +61 -0
  350. package/src/protocols/protocol-v2/uiInteraction.ts +210 -0
  351. package/src/protocols/protocol-v2/unlockRetry.ts +76 -0
  352. package/src/protocols/protocol-v2/walletSession.ts +107 -0
  353. package/src/types/api/checkAllFirmwareRelease.ts +1 -2
  354. package/src/types/api/deviceSettings.ts +26 -2
  355. package/src/types/api/deviceUnlock.ts +5 -2
  356. package/src/types/api/firmwareUpdate.ts +28 -20
  357. package/src/types/api/getDeviceState.ts +19 -0
  358. package/src/types/api/getFeatures.ts +3 -0
  359. package/src/types/api/getOnekeyFeatures.ts +3 -0
  360. package/src/types/api/getPassphraseState.ts +8 -11
  361. package/src/types/api/index.ts +30 -53
  362. package/src/types/api/kaspaSignTransaction.ts +40 -2
  363. package/src/types/api/openWalletSession.ts +64 -0
  364. package/src/types/api/protocolV2.ts +58 -55
  365. package/src/types/api/sessionCache.ts +14 -0
  366. package/src/types/device.ts +170 -4
  367. package/src/types/params.ts +4 -0
  368. package/src/types/settings.ts +42 -30
  369. package/src/utils/assets.ts +4 -1
  370. package/src/utils/deviceFeaturesCompat.ts +173 -0
  371. package/src/utils/deviceFeaturesUtils.ts +68 -24
  372. package/src/utils/deviceInfoUtils.ts +26 -64
  373. package/src/utils/deviceSettings.ts +161 -39
  374. package/src/utils/deviceVersionUtils.ts +25 -44
  375. package/src/utils/findDefectiveBatchDevice.ts +3 -3
  376. package/src/utils/homescreen.ts +10 -0
  377. package/src/utils/index.ts +21 -1
  378. package/src/utils/networkUtils.ts +270 -14
  379. package/src/utils/pro2Wallpaper.ts +109 -0
  380. package/src/utils/tracing.ts +3 -1
  381. package/dist/api/GetDeviceInfo.d.ts +0 -9
  382. package/dist/api/GetDeviceInfo.d.ts.map +0 -1
  383. package/dist/api/protocol-v2/DevReboot.d.ts +0 -7
  384. package/dist/api/protocol-v2/DevReboot.d.ts.map +0 -1
  385. package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts +0 -29
  386. package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts.map +0 -1
  387. package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts +0 -7
  388. package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts.map +0 -1
  389. package/dist/api/protocol-v2/FactoryGetDeviceInfo.d.ts +0 -6
  390. package/dist/api/protocol-v2/FactoryGetDeviceInfo.d.ts.map +0 -1
  391. package/dist/api/protocol-v2/FilesystemDiskControl.d.ts +0 -13
  392. package/dist/api/protocol-v2/FilesystemDiskControl.d.ts.map +0 -1
  393. package/dist/api/protocol-v2/FilesystemFixPermission.d.ts.map +0 -1
  394. package/dist/api/protocol-v2/GetProtoVersion.d.ts +0 -6
  395. package/dist/api/protocol-v2/GetProtoVersion.d.ts.map +0 -1
  396. package/dist/deviceProfile/buildDeviceProfile.d.ts +0 -21
  397. package/dist/deviceProfile/buildDeviceProfile.d.ts.map +0 -1
  398. package/dist/types/api/getDeviceInfo.d.ts +0 -85
  399. package/dist/types/api/getDeviceInfo.d.ts.map +0 -1
  400. package/src/api/GetDeviceInfo.ts +0 -145
  401. package/src/api/protocol-v2/DevReboot.ts +0 -24
  402. package/src/api/protocol-v2/DeviceGetDeviceInfo.ts +0 -118
  403. package/src/api/protocol-v2/FactoryDeviceInfoSettings.ts +0 -29
  404. package/src/api/protocol-v2/FilesystemDiskControl.ts +0 -50
  405. package/src/deviceProfile/buildDeviceProfile.ts +0 -334
  406. package/src/types/api/getDeviceInfo.ts +0 -99
@@ -100,7 +100,6 @@
100
100
  "MessageType_GetFeatures": 55,
101
101
  "MessageType_SdProtect": 79,
102
102
  "MessageType_ChangeWipeCode": 82,
103
- "MessageType_EndSession": 83,
104
103
  "MessageType_DoPreauthorized": 84,
105
104
  "MessageType_PreauthorizedRequest": 85,
106
105
  "MessageType_CancelAuthorization": 86,
@@ -196,6 +195,7 @@
196
195
  "MessageType_EthereumGnosisSafeTxAck": 20118,
197
196
  "MessageType_EthereumGnosisSafeTxRequest": 20119,
198
197
  "MessageType_EthereumSignTxEIP7702OneKey": 20120,
198
+ "MessageType_EthereumSignTypedDataQR": 20121,
199
199
  "MessageType_NEMGetAddress": 67,
200
200
  "MessageType_NEMAddress": 68,
201
201
  "MessageType_NEMSignTx": 69,
@@ -419,8 +419,6 @@
419
419
  "MessageType_TonSignProof": 11905,
420
420
  "MessageType_TonSignedProof": 11906,
421
421
  "MessageType_TonTxAck": 11907,
422
- "MessageType_TonSignData": 11908,
423
- "MessageType_TonSignedData": 11909,
424
422
  "MessageType_ScdoGetAddress": 12001,
425
423
  "MessageType_ScdoAddress": 12002,
426
424
  "MessageType_ScdoSignTx": 12003,
@@ -455,43 +453,39 @@
455
453
  "MessageType_UiviewConfirmTxRequest": 30202,
456
454
  "MessageType_UiviewConfirmSignMessageRequest": 30203,
457
455
  "MessageType_UiviewResponse": 30204,
458
- "MessageType_ReadSEPublicKey": 10004,
459
- "MessageType_SEPublicKey": 10005,
460
- "MessageType_WriteSEPublicCert": 10006,
461
- "MessageType_ReadSEPublicCert": 10007,
462
- "MessageType_SEPublicCert": 10008,
463
- "MessageType_SESignMessage": 10012,
464
- "MessageType_SEMessageSignature": 10013,
465
- "MessageType_ResourceUpload": 10018,
466
- "MessageType_ZoomRequest": 10019,
467
- "MessageType_BlurRequest": 10032,
468
- "MessageType_ResourceRequest": 10020,
469
- "MessageType_ResourceAck": 10021,
470
- "MessageType_ResourceUpdate": 10022,
471
- "MessageType_ListResDir": 10023,
472
- "MessageType_FileInfoList": 10024,
473
- "MessageType_OnekeyGetFeatures": 10025,
474
- "MessageType_OnekeyFeatures": 10026,
475
- "MessageType_WriteSEPrivateKey": 10027,
476
- "MessageType_GetPassphraseState": 10028,
477
- "MessageType_PassphraseState": 10029,
478
- "MessageType_UnLockDevice": 10030,
479
- "MessageType_UnLockDeviceResponse": 10031,
480
- "MessageType_FactoryDeviceInfoSettings": 60000,
481
- "MessageType_FactoryGetDeviceInfo": 60001,
482
- "MessageType_FactoryDeviceInfo": 60002,
483
- "MessageType_GetProtoVersion": 60200,
484
- "MessageType_ProtoVersion": 60201,
485
- "MessageType_StartSession": 60205,
456
+ "MessageType_DeviceFactoryInfoSet": 60000,
457
+ "MessageType_DeviceFactoryInfoGet": 60001,
458
+ "MessageType_DeviceFactoryInfo": 60002,
459
+ "MessageType_DeviceFactoryPermanentLock": 60003,
460
+ "MessageType_DeviceFactoryTest": 60004,
461
+ "MessageType_ProtocolInfoRequest": 60200,
462
+ "MessageType_ProtocolInfo": 60201,
486
463
  "MessageType_Ping": 60206,
487
464
  "MessageType_Success": 60207,
488
465
  "MessageType_Failure": 60208,
489
- "MessageType_DevReboot": 60400,
490
- "MessageType_DevGetDeviceInfo": 60600,
466
+ "MessageType_DeviceReboot": 60400,
467
+ "MessageType_DeviceSettings": 60410,
468
+ "MessageType_DeviceSettingsGet": 60411,
469
+ "MessageType_DeviceSettingsSet": 60412,
470
+ "MessageType_DeviceSettingsPageShow": 60413,
471
+ "MessageType_DeviceCertificate": 60420,
472
+ "MessageType_DeviceCertificateWrite": 60421,
473
+ "MessageType_DeviceCertificateRead": 60422,
474
+ "MessageType_DeviceCertificateSignature": 60423,
475
+ "MessageType_DeviceCertificateSign": 60424,
476
+ "MessageType_SetWallpaper": 60430,
477
+ "MessageType_GetWallpaper": 60431,
478
+ "MessageType_Wallpaper": 60432,
479
+ "MessageType_DeviceInfoGet": 60600,
491
480
  "MessageType_DeviceInfo": 60601,
492
- "MessageType_GetOnboardingStatus": 60602,
493
- "MessageType_OnboardingStatus": 60603,
494
- "MessageType_FilesystemFixPermission": 60800,
481
+ "MessageType_DeviceStatusGet": 60602,
482
+ "MessageType_DeviceStatus": 60603,
483
+ "MessageType_DevGetOnboardingStatus": 60604,
484
+ "MessageType_DevOnboardingStatus": 60605,
485
+ "MessageType_DeviceSessionGet": 60606,
486
+ "MessageType_DeviceSession": 60607,
487
+ "MessageType_DeviceSessionAskPin": 60608,
488
+ "MessageType_FilesystemPermissionFix": 60800,
495
489
  "MessageType_FilesystemPathInfo": 60801,
496
490
  "MessageType_FilesystemPathInfoQuery": 60802,
497
491
  "MessageType_FilesystemFile": 60803,
@@ -503,17 +497,17 @@
503
497
  "MessageType_FilesystemDirMake": 60809,
504
498
  "MessageType_FilesystemDirRemove": 60810,
505
499
  "MessageType_FilesystemFormat": 60811,
506
- "MessageType_DevFirmwareUpdate": 61000,
507
- "MessageType_DevFirmwareInstallProgress": 61001,
508
- "MessageType_DevGetFirmwareUpdateStatus": 61002,
509
- "MessageType_DevFirmwareUpdateStatus": 61003,
510
- "MessageType_DeviceReboot": 60400,
511
- "MessageType_DeviceGetDeviceInfo": 60600,
512
- "MessageType_DeviceFirmwareUpdate": 61000,
513
- "MessageType_DeviceFirmwareInstallProgress": 61001,
514
- "MessageType_DeviceGetFirmwareUpdateStatus": 61002,
515
- "MessageType_DeviceFirmwareUpdateStatus": 61003
516
- }
500
+ "MessageType_DeviceFirmwareUpdateRequest": 61000,
501
+ "MessageType_DeviceFirmwareUpdateStatusGet": 61001,
502
+ "MessageType_DeviceFirmwareUpdateStatus": 61002,
503
+ "MessageType_PortfolioUpdate": 61200
504
+ },
505
+ "reserved": [
506
+ [90, 92],
507
+ [114, 122],
508
+ [300, 304],
509
+ [309, 312]
510
+ ]
517
511
  },
518
512
  "AlephiumGetAddress": {
519
513
  "fields": {
@@ -5409,6 +5403,37 @@
5409
5403
  }
5410
5404
  }
5411
5405
  },
5406
+ "EthereumSignTypedDataQR": {
5407
+ "fields": {
5408
+ "address_n": {
5409
+ "rule": "repeated",
5410
+ "type": "uint32",
5411
+ "id": 1,
5412
+ "options": {
5413
+ "packed": false
5414
+ }
5415
+ },
5416
+ "json_data": {
5417
+ "type": "bytes",
5418
+ "id": 2
5419
+ },
5420
+ "chain_id": {
5421
+ "type": "uint64",
5422
+ "id": 3
5423
+ },
5424
+ "metamask_v4_compat": {
5425
+ "type": "bool",
5426
+ "id": 4,
5427
+ "options": {
5428
+ "default": true
5429
+ }
5430
+ },
5431
+ "request_id": {
5432
+ "type": "bytes",
5433
+ "id": 5
5434
+ }
5435
+ }
5436
+ },
5412
5437
  "EthereumGetPublicKeyOneKey": {
5413
5438
  "fields": {
5414
5439
  "address_n": {
@@ -5934,6 +5959,30 @@
5934
5959
  }
5935
5960
  }
5936
5961
  },
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
+ },
5937
5986
  "KaspaGetAddress": {
5938
5987
  "fields": {
5939
5988
  "address_n": {
@@ -6138,6 +6187,28 @@
6138
6187
  }
6139
6188
  }
6140
6189
  },
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
+ },
6141
6212
  "GetFeatures": {
6142
6213
  "fields": {}
6143
6214
  },
@@ -6333,15 +6404,15 @@
6333
6404
  "type": "uint32",
6334
6405
  "id": 500
6335
6406
  },
6336
- "ble_name": {
6407
+ "coprocessor_bt_name": {
6337
6408
  "type": "string",
6338
6409
  "id": 501
6339
6410
  },
6340
- "ble_ver": {
6411
+ "coprocessor_version": {
6341
6412
  "type": "string",
6342
6413
  "id": 502
6343
6414
  },
6344
- "ble_enable": {
6415
+ "coprocessor_bt_enable": {
6345
6416
  "type": "bool",
6346
6417
  "id": 503
6347
6418
  },
@@ -6401,7 +6472,7 @@
6401
6472
  "type": "bytes",
6402
6473
  "id": 518
6403
6474
  },
6404
- "boardloader_version": {
6475
+ "romloader_version": {
6405
6476
  "type": "string",
6406
6477
  "id": 519
6407
6478
  },
@@ -6417,19 +6488,19 @@
6417
6488
  "type": "OneKeySeType",
6418
6489
  "id": 601
6419
6490
  },
6420
- "onekey_board_version": {
6491
+ "onekey_romloader_version": {
6421
6492
  "type": "string",
6422
6493
  "id": 602
6423
6494
  },
6424
- "onekey_board_hash": {
6495
+ "onekey_romloader_hash": {
6425
6496
  "type": "bytes",
6426
6497
  "id": 603
6427
6498
  },
6428
- "onekey_boot_version": {
6499
+ "onekey_bootloader_version": {
6429
6500
  "type": "string",
6430
6501
  "id": 604
6431
6502
  },
6432
- "onekey_boot_hash": {
6503
+ "onekey_bootloader_hash": {
6433
6504
  "type": "bytes",
6434
6505
  "id": 605
6435
6506
  },
@@ -6461,23 +6532,23 @@
6461
6532
  "type": "string",
6462
6533
  "id": 612
6463
6534
  },
6464
- "onekey_boot_build_id": {
6535
+ "onekey_bootloader_build_id": {
6465
6536
  "type": "string",
6466
6537
  "id": 613
6467
6538
  },
6468
- "onekey_ble_name": {
6539
+ "onekey_coprocessor_bt_name": {
6469
6540
  "type": "string",
6470
6541
  "id": 614
6471
6542
  },
6472
- "onekey_ble_version": {
6543
+ "onekey_coprocessor_version": {
6473
6544
  "type": "string",
6474
6545
  "id": 615
6475
6546
  },
6476
- "onekey_ble_build_id": {
6547
+ "onekey_coprocessor_build_id": {
6477
6548
  "type": "string",
6478
6549
  "id": 616
6479
6550
  },
6480
- "onekey_ble_hash": {
6551
+ "onekey_coprocessor_hash": {
6481
6552
  "type": "bytes",
6482
6553
  "id": 617
6483
6554
  },
@@ -6553,11 +6624,11 @@
6553
6624
  "type": "OneKeyDeviceType",
6554
6625
  "id": 1
6555
6626
  },
6556
- "onekey_board_version": {
6627
+ "onekey_romloader_version": {
6557
6628
  "type": "string",
6558
6629
  "id": 2
6559
6630
  },
6560
- "onekey_boot_version": {
6631
+ "onekey_bootloader_version": {
6561
6632
  "type": "string",
6562
6633
  "id": 3
6563
6634
  },
@@ -6565,11 +6636,11 @@
6565
6636
  "type": "string",
6566
6637
  "id": 4
6567
6638
  },
6568
- "onekey_board_hash": {
6639
+ "onekey_romloader_hash": {
6569
6640
  "type": "bytes",
6570
6641
  "id": 5
6571
6642
  },
6572
- "onekey_boot_hash": {
6643
+ "onekey_bootloader_hash": {
6573
6644
  "type": "bytes",
6574
6645
  "id": 6
6575
6646
  },
@@ -6577,11 +6648,11 @@
6577
6648
  "type": "bytes",
6578
6649
  "id": 7
6579
6650
  },
6580
- "onekey_board_build_id": {
6651
+ "onekey_romloader_build_id": {
6581
6652
  "type": "string",
6582
6653
  "id": 8
6583
6654
  },
6584
- "onekey_boot_build_id": {
6655
+ "onekey_bootloader_build_id": {
6585
6656
  "type": "string",
6586
6657
  "id": 9
6587
6658
  },
@@ -6593,19 +6664,19 @@
6593
6664
  "type": "string",
6594
6665
  "id": 11
6595
6666
  },
6596
- "onekey_ble_name": {
6667
+ "onekey_coprocessor_bt_name": {
6597
6668
  "type": "string",
6598
6669
  "id": 12
6599
6670
  },
6600
- "onekey_ble_version": {
6671
+ "onekey_coprocessor_version": {
6601
6672
  "type": "string",
6602
6673
  "id": 13
6603
6674
  },
6604
- "onekey_ble_build_id": {
6675
+ "onekey_coprocessor_build_id": {
6605
6676
  "type": "string",
6606
6677
  "id": 14
6607
6678
  },
6608
- "onekey_ble_hash": {
6679
+ "onekey_coprocessor_hash": {
6609
6680
  "type": "bytes",
6610
6681
  "id": 15
6611
6682
  },
@@ -6677,51 +6748,51 @@
6677
6748
  "type": "string",
6678
6749
  "id": 32
6679
6750
  },
6680
- "onekey_se01_boot_version": {
6751
+ "onekey_se01_bootloader_version": {
6681
6752
  "type": "string",
6682
6753
  "id": 33
6683
6754
  },
6684
- "onekey_se02_boot_version": {
6755
+ "onekey_se02_bootloader_version": {
6685
6756
  "type": "string",
6686
6757
  "id": 34
6687
6758
  },
6688
- "onekey_se03_boot_version": {
6759
+ "onekey_se03_bootloader_version": {
6689
6760
  "type": "string",
6690
6761
  "id": 35
6691
6762
  },
6692
- "onekey_se04_boot_version": {
6763
+ "onekey_se04_bootloader_version": {
6693
6764
  "type": "string",
6694
6765
  "id": 36
6695
6766
  },
6696
- "onekey_se01_boot_hash": {
6767
+ "onekey_se01_bootloader_hash": {
6697
6768
  "type": "bytes",
6698
6769
  "id": 37
6699
6770
  },
6700
- "onekey_se02_boot_hash": {
6771
+ "onekey_se02_bootloader_hash": {
6701
6772
  "type": "bytes",
6702
6773
  "id": 38
6703
6774
  },
6704
- "onekey_se03_boot_hash": {
6775
+ "onekey_se03_bootloader_hash": {
6705
6776
  "type": "bytes",
6706
6777
  "id": 39
6707
6778
  },
6708
- "onekey_se04_boot_hash": {
6779
+ "onekey_se04_bootloader_hash": {
6709
6780
  "type": "bytes",
6710
6781
  "id": 40
6711
6782
  },
6712
- "onekey_se01_boot_build_id": {
6783
+ "onekey_se01_bootloader_build_id": {
6713
6784
  "type": "string",
6714
6785
  "id": 41
6715
6786
  },
6716
- "onekey_se02_boot_build_id": {
6787
+ "onekey_se02_bootloader_build_id": {
6717
6788
  "type": "string",
6718
6789
  "id": 42
6719
6790
  },
6720
- "onekey_se03_boot_build_id": {
6791
+ "onekey_se03_bootloader_build_id": {
6721
6792
  "type": "string",
6722
6793
  "id": 43
6723
6794
  },
6724
- "onekey_se04_boot_build_id": {
6795
+ "onekey_se04_bootloader_build_id": {
6725
6796
  "type": "string",
6726
6797
  "id": 44
6727
6798
  }
@@ -6738,9 +6809,6 @@
6738
6809
  }
6739
6810
  }
6740
6811
  },
6741
- "EndSession": {
6742
- "fields": {}
6743
- },
6744
6812
  "ApplySettings": {
6745
6813
  "fields": {
6746
6814
  "language": {
@@ -7263,6 +7331,49 @@
7263
7331
  }
7264
7332
  }
7265
7333
  },
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
+ },
7266
7377
  "ResourceUpdate": {
7267
7378
  "fields": {
7268
7379
  "file_name": {
@@ -7349,14 +7460,6 @@
7349
7460
  "passphrase_state": {
7350
7461
  "type": "string",
7351
7462
  "id": 1
7352
- },
7353
- "_only_main_pin": {
7354
- "type": "bool",
7355
- "id": 2
7356
- },
7357
- "allow_create_attach_pin": {
7358
- "type": "bool",
7359
- "id": 3
7360
7463
  }
7361
7464
  }
7362
7465
  },
@@ -9437,142 +9540,6 @@
9437
9540
  }
9438
9541
  }
9439
9542
  },
9440
- "ScdoGetAddress": {
9441
- "fields": {
9442
- "address_n": {
9443
- "rule": "repeated",
9444
- "type": "uint32",
9445
- "id": 1,
9446
- "options": {
9447
- "packed": false
9448
- }
9449
- },
9450
- "show_display": {
9451
- "type": "bool",
9452
- "id": 2
9453
- }
9454
- }
9455
- },
9456
- "ScdoAddress": {
9457
- "fields": {
9458
- "address": {
9459
- "rule": "required",
9460
- "type": "string",
9461
- "id": 1
9462
- }
9463
- }
9464
- },
9465
- "ScdoSignTx": {
9466
- "fields": {
9467
- "address_n": {
9468
- "rule": "repeated",
9469
- "type": "uint32",
9470
- "id": 1,
9471
- "options": {
9472
- "packed": false
9473
- }
9474
- },
9475
- "nonce": {
9476
- "rule": "required",
9477
- "type": "bytes",
9478
- "id": 2
9479
- },
9480
- "gas_price": {
9481
- "rule": "required",
9482
- "type": "bytes",
9483
- "id": 3
9484
- },
9485
- "gas_limit": {
9486
- "rule": "required",
9487
- "type": "bytes",
9488
- "id": 4
9489
- },
9490
- "to": {
9491
- "rule": "required",
9492
- "type": "string",
9493
- "id": 5
9494
- },
9495
- "value": {
9496
- "rule": "required",
9497
- "type": "bytes",
9498
- "id": 6
9499
- },
9500
- "timestamp": {
9501
- "rule": "required",
9502
- "type": "bytes",
9503
- "id": 7
9504
- },
9505
- "data_initial_chunk": {
9506
- "type": "bytes",
9507
- "id": 8,
9508
- "options": {
9509
- "default": ""
9510
- }
9511
- },
9512
- "data_length": {
9513
- "type": "uint32",
9514
- "id": 9,
9515
- "options": {
9516
- "default": 0
9517
- }
9518
- },
9519
- "tx_type": {
9520
- "type": "uint32",
9521
- "id": 10,
9522
- "options": {
9523
- "default": 0
9524
- }
9525
- }
9526
- }
9527
- },
9528
- "ScdoSignedTx": {
9529
- "fields": {
9530
- "data_length": {
9531
- "type": "uint32",
9532
- "id": 1
9533
- },
9534
- "signature": {
9535
- "type": "bytes",
9536
- "id": 2
9537
- }
9538
- }
9539
- },
9540
- "ScdoTxAck": {
9541
- "fields": {
9542
- "data_chunk": {
9543
- "type": "bytes",
9544
- "id": 1
9545
- }
9546
- }
9547
- },
9548
- "ScdoSignMessage": {
9549
- "fields": {
9550
- "address_n": {
9551
- "rule": "repeated",
9552
- "type": "uint32",
9553
- "id": 1,
9554
- "options": {
9555
- "packed": false
9556
- }
9557
- },
9558
- "message": {
9559
- "type": "bytes",
9560
- "id": 2
9561
- }
9562
- }
9563
- },
9564
- "ScdoSignedMessage": {
9565
- "fields": {
9566
- "signature": {
9567
- "type": "bytes",
9568
- "id": 1
9569
- },
9570
- "address": {
9571
- "type": "string",
9572
- "id": 2
9573
- }
9574
- }
9575
- },
9576
9543
  "SolanaOffChainMessageVersion": {
9577
9544
  "values": {
9578
9545
  "MESSAGE_VERSION_0": 0
@@ -11538,113 +11505,158 @@
11538
11505
  }
11539
11506
  }
11540
11507
  },
11541
- "TxDetailsAmount": {
11508
+ "ViewAmount": {
11542
11509
  "fields": {
11543
- "num": {
11510
+ "is_unlimited": {
11544
11511
  "rule": "required",
11545
- "type": "string",
11512
+ "type": "bool",
11546
11513
  "id": 1
11547
11514
  },
11548
- "decimals": {
11549
- "rule": "required",
11550
- "type": "uint32",
11551
- "id": 2
11552
- },
11553
- "symbol": {
11515
+ "num": {
11554
11516
  "rule": "required",
11555
11517
  "type": "string",
11556
- "id": 3
11518
+ "id": 2
11557
11519
  }
11558
11520
  }
11559
11521
  },
11560
- "TxDetailsAddress": {
11522
+ "ViewDetail": {
11561
11523
  "fields": {
11562
11524
  "key": {
11563
11525
  "rule": "required",
11564
11526
  "type": "uint32",
11565
11527
  "id": 1
11566
11528
  },
11567
- "address": {
11529
+ "value": {
11568
11530
  "rule": "required",
11569
11531
  "type": "string",
11570
11532
  "id": 2
11571
11533
  },
11572
- "owner": {
11573
- "type": "string",
11534
+ "is_overview": {
11535
+ "rule": "required",
11536
+ "type": "bool",
11574
11537
  "id": 3
11575
11538
  },
11576
- "icon": {
11577
- "type": "string",
11539
+ "has_icon": {
11540
+ "rule": "required",
11541
+ "type": "bool",
11578
11542
  "id": 4
11579
11543
  }
11580
11544
  }
11581
11545
  },
11582
- "TxDetailsNetwork": {
11546
+ "ViewTipType": {
11547
+ "values": {
11548
+ "Default": 0,
11549
+ "Highlight": 1,
11550
+ "Recommend": 2,
11551
+ "Warning": 3,
11552
+ "Danger": 4
11553
+ }
11554
+ },
11555
+ "ViewTip": {
11583
11556
  "fields": {
11584
- "coin_type": {
11557
+ "type": {
11585
11558
  "rule": "required",
11586
- "type": "uint64",
11559
+ "type": "ViewTipType",
11587
11560
  "id": 1
11588
11561
  },
11589
- "chain_id": {
11590
- "type": "uint64",
11562
+ "text": {
11563
+ "rule": "required",
11564
+ "type": "string",
11591
11565
  "id": 2
11592
11566
  }
11593
11567
  }
11594
11568
  },
11595
- "TxDetailsGeneral": {
11569
+ "ViewRawData": {
11596
11570
  "fields": {
11597
- "key": {
11571
+ "initial_data": {
11598
11572
  "rule": "required",
11599
- "type": "uint32",
11573
+ "type": "string",
11600
11574
  "id": 1
11601
11575
  },
11602
- "value": {
11576
+ "placeholder": {
11603
11577
  "rule": "required",
11604
- "type": "string",
11578
+ "type": "uint32",
11605
11579
  "id": 2
11606
- },
11607
- "is_overview": {
11608
- "rule": "required",
11609
- "type": "bool",
11610
- "id": 3
11611
11580
  }
11612
11581
  }
11613
11582
  },
11614
- "TxDetailsDisplayType": {
11583
+ "ViewSignLayout": {
11615
11584
  "values": {
11616
- "DISPLAY_TYPE_INFO": 0,
11617
- "DISPLAY_TYPE_SIGN": 1
11585
+ "LayoutDefault": 0,
11586
+ "LayoutSafeTxCreate": 1,
11587
+ "LayoutFinalConfirm": 2,
11588
+ "Layout7702": 3,
11589
+ "LayoutFlat": 4,
11590
+ "LayoutEthApprove": 5
11591
+ }
11592
+ },
11593
+ "ViewSignPage": {
11594
+ "fields": {
11595
+ "title": {
11596
+ "rule": "required",
11597
+ "type": "string",
11598
+ "id": 1
11599
+ },
11600
+ "amount": {
11601
+ "type": "ViewAmount",
11602
+ "id": 2
11603
+ },
11604
+ "general": {
11605
+ "rule": "repeated",
11606
+ "type": "ViewDetail",
11607
+ "id": 3
11608
+ },
11609
+ "tip": {
11610
+ "type": "ViewTip",
11611
+ "id": 4
11612
+ },
11613
+ "raw_data": {
11614
+ "type": "ViewRawData",
11615
+ "id": 5
11616
+ },
11617
+ "slide_to_confirm": {
11618
+ "type": "bool",
11619
+ "id": 6,
11620
+ "options": {
11621
+ "default": true
11622
+ }
11623
+ },
11624
+ "layout": {
11625
+ "type": "ViewSignLayout",
11626
+ "id": 7,
11627
+ "options": {
11628
+ "default": "LayoutDefault"
11629
+ }
11630
+ }
11618
11631
  }
11619
11632
  },
11620
- "TxDetailsPage": {
11633
+ "ViewVerifyPage": {
11621
11634
  "fields": {
11622
11635
  "title": {
11623
11636
  "rule": "required",
11624
11637
  "type": "string",
11625
11638
  "id": 1
11626
11639
  },
11627
- "display_type": {
11640
+ "address": {
11628
11641
  "rule": "required",
11629
- "type": "TxDetailsDisplayType",
11642
+ "type": "string",
11630
11643
  "id": 2
11631
11644
  },
11632
- "amount": {
11633
- "type": "TxDetailsAmount",
11645
+ "path": {
11646
+ "rule": "required",
11647
+ "type": "string",
11634
11648
  "id": 3
11635
11649
  },
11636
11650
  "network": {
11637
- "type": "TxDetailsNetwork",
11651
+ "type": "string",
11638
11652
  "id": 4
11639
11653
  },
11640
- "address": {
11641
- "rule": "repeated",
11642
- "type": "TxDetailsAddress",
11654
+ "derive_type": {
11655
+ "type": "string",
11643
11656
  "id": 5
11644
11657
  },
11645
- "general": {
11646
- "rule": "repeated",
11647
- "type": "TxDetailsGeneral",
11658
+ "value_key": {
11659
+ "type": "uint32",
11648
11660
  "id": 6
11649
11661
  }
11650
11662
  }
@@ -11731,181 +11743,456 @@
11731
11743
  }
11732
11744
  }
11733
11745
  },
11734
- "TonSignData": {
11746
+ "ProtocolInfoRequest": {
11747
+ "fields": {}
11748
+ },
11749
+ "ProtocolInfo": {
11735
11750
  "fields": {
11736
- "address_n": {
11751
+ "version": {
11752
+ "rule": "required",
11753
+ "type": "uint32",
11754
+ "id": 1
11755
+ },
11756
+ "supported_messages": {
11737
11757
  "rule": "repeated",
11738
11758
  "type": "uint32",
11739
- "id": 1,
11759
+ "id": 2,
11740
11760
  "options": {
11741
11761
  "packed": false
11742
11762
  }
11743
11763
  },
11744
- "type": {
11764
+ "protobuf_definition": {
11765
+ "type": "string",
11766
+ "id": 3
11767
+ }
11768
+ }
11769
+ },
11770
+ "Ping": {
11771
+ "fields": {
11772
+ "message": {
11773
+ "type": "string",
11774
+ "id": 1,
11775
+ "options": {
11776
+ "default": ""
11777
+ }
11778
+ }
11779
+ }
11780
+ },
11781
+ "Success": {
11782
+ "fields": {
11783
+ "message": {
11784
+ "type": "string",
11785
+ "id": 1,
11786
+ "options": {
11787
+ "default": ""
11788
+ }
11789
+ }
11790
+ }
11791
+ },
11792
+ "Failure": {
11793
+ "fields": {
11794
+ "code": {
11745
11795
  "rule": "required",
11746
- "type": "TonSignDataType",
11796
+ "type": "FailureType",
11797
+ "id": 1
11798
+ },
11799
+ "subcode": {
11800
+ "type": "uint32",
11747
11801
  "id": 2
11748
11802
  },
11749
- "payload": {
11750
- "rule": "required",
11751
- "type": "bytes",
11803
+ "message": {
11804
+ "type": "string",
11752
11805
  "id": 3
11806
+ }
11807
+ },
11808
+ "nested": {
11809
+ "FailureType": {
11810
+ "values": {
11811
+ "Failure_InvalidMessage": 1,
11812
+ "Failure_UndefinedError": 2,
11813
+ "Failure_UsageError": 3,
11814
+ "Failure_DataError": 4,
11815
+ "Failure_ProcessError": 5
11816
+ }
11817
+ }
11818
+ }
11819
+ },
11820
+ "DeviceErrorCode": {
11821
+ "values": {
11822
+ "DeviceError_None": 0,
11823
+ "DeviceError_Busy": 1,
11824
+ "DeviceError_NotInitialized": 2,
11825
+ "DeviceError_ActionCancelled": 3,
11826
+ "DeviceError_PinAlreadyUsed": 4,
11827
+ "DeviceError_PersistFailed": 5,
11828
+ "DeviceError_SeError": 6,
11829
+ "DeviceError_InvalidLanguage": 7,
11830
+ "DeviceError_WallpaperNotUsable": 8,
11831
+ "DeviceError_DeviceLocked": 9
11832
+ }
11833
+ },
11834
+ "DeviceRebootType": {
11835
+ "values": {
11836
+ "Normal": 0,
11837
+ "Romloader": 1,
11838
+ "Bootloader": 2
11839
+ }
11840
+ },
11841
+ "DeviceReboot": {
11842
+ "fields": {
11843
+ "reboot_type": {
11844
+ "rule": "required",
11845
+ "type": "DeviceRebootType",
11846
+ "id": 1
11847
+ }
11848
+ }
11849
+ },
11850
+ "DeviceSettings": {
11851
+ "fields": {
11852
+ "bt_enable": {
11853
+ "type": "bool",
11854
+ "id": 1
11753
11855
  },
11754
- "schema": {
11856
+ "language": {
11755
11857
  "type": "string",
11756
- "id": 4
11858
+ "id": 2
11757
11859
  },
11758
- "appdomain": {
11759
- "rule": "required",
11860
+ "wallpaper_path": {
11760
11861
  "type": "string",
11862
+ "id": 3
11863
+ },
11864
+ "brightness": {
11865
+ "type": "uint32",
11866
+ "id": 4
11867
+ },
11868
+ "animation_enable": {
11869
+ "type": "bool",
11761
11870
  "id": 5
11762
11871
  },
11763
- "timestamp": {
11764
- "rule": "required",
11765
- "type": "uint64",
11872
+ "tap_to_wake": {
11873
+ "type": "bool",
11766
11874
  "id": 6
11767
11875
  },
11768
- "from_address": {
11769
- "type": "string",
11876
+ "haptic_feedback": {
11877
+ "type": "bool",
11770
11878
  "id": 7
11771
11879
  },
11772
- "wallet_version": {
11773
- "type": "TonWalletVersion",
11774
- "id": 8,
11775
- "options": {
11776
- "default": "V4R2"
11777
- }
11880
+ "device_name_display_enabled": {
11881
+ "type": "bool",
11882
+ "id": 8
11778
11883
  },
11779
- "wallet_id": {
11780
- "type": "uint32",
11781
- "id": 9,
11782
- "options": {
11783
- "default": 698983191
11784
- }
11884
+ "airgap_mode": {
11885
+ "type": "bool",
11886
+ "id": 9
11785
11887
  },
11786
- "workchain": {
11787
- "type": "TonWorkChain",
11788
- "id": 10,
11789
- "options": {
11790
- "default": "BASECHAIN"
11791
- }
11888
+ "usb_lock_enable": {
11889
+ "type": "bool",
11890
+ "id": 10
11792
11891
  },
11793
- "is_bounceable": {
11892
+ "random_keypad": {
11794
11893
  "type": "bool",
11795
- "id": 11,
11796
- "options": {
11797
- "default": false
11798
- }
11894
+ "id": 11
11799
11895
  },
11800
- "is_testnet_only": {
11896
+ "passphrase_enable": {
11801
11897
  "type": "bool",
11802
- "id": 12,
11803
- "options": {
11804
- "default": false
11805
- }
11898
+ "id": 100
11899
+ },
11900
+ "fido_enabled": {
11901
+ "type": "bool",
11902
+ "id": 101
11903
+ },
11904
+ "autolock_delay_ms": {
11905
+ "type": "uint32",
11906
+ "id": 102
11907
+ },
11908
+ "autoshutdown_delay_ms": {
11909
+ "type": "uint32",
11910
+ "id": 103
11911
+ },
11912
+ "label": {
11913
+ "type": "string",
11914
+ "id": 104
11806
11915
  }
11807
- },
11808
- "nested": {
11809
- "TonSignDataType": {
11810
- "values": {
11811
- "TEXT": 0,
11812
- "BINARY": 1,
11813
- "CELL": 2
11814
- }
11916
+ }
11917
+ },
11918
+ "DeviceSettingsGet": {
11919
+ "fields": {}
11920
+ },
11921
+ "DeviceSettingsSet": {
11922
+ "fields": {
11923
+ "settings": {
11924
+ "rule": "required",
11925
+ "type": "DeviceSettings",
11926
+ "id": 1
11815
11927
  }
11816
11928
  }
11817
11929
  },
11818
- "TonSignedData": {
11930
+ "DeviceSettingsPage": {
11931
+ "values": {
11932
+ "DeviceReset": 0,
11933
+ "DevicePinChange": 1,
11934
+ "DevicePassphrase": 2,
11935
+ "DeviceAirgap": 3
11936
+ }
11937
+ },
11938
+ "DeviceSettingsPageShow": {
11819
11939
  "fields": {
11820
- "signature": {
11940
+ "page": {
11941
+ "rule": "required",
11942
+ "type": "DeviceSettingsPage",
11943
+ "id": 1
11944
+ },
11945
+ "field_name": {
11946
+ "type": "string",
11947
+ "id": 2
11948
+ }
11949
+ }
11950
+ },
11951
+ "DeviceCertificate": {
11952
+ "fields": {
11953
+ "cert_and_pubkey": {
11954
+ "rule": "required",
11821
11955
  "type": "bytes",
11822
11956
  "id": 1
11823
11957
  },
11824
- "digest": {
11958
+ "private_key": {
11825
11959
  "type": "bytes",
11826
11960
  "id": 2
11827
11961
  }
11828
11962
  }
11829
11963
  },
11830
- "GetProtoVersion": {
11964
+ "DeviceCertificateWrite": {
11965
+ "fields": {
11966
+ "cert": {
11967
+ "rule": "required",
11968
+ "type": "DeviceCertificate",
11969
+ "id": 1
11970
+ }
11971
+ }
11972
+ },
11973
+ "DeviceCertificateRead": {
11831
11974
  "fields": {}
11832
11975
  },
11833
- "ProtoVersion": {
11976
+ "DeviceCertificateSignature": {
11834
11977
  "fields": {
11835
- "proto_version": {
11978
+ "data": {
11836
11979
  "rule": "required",
11837
- "type": "uint32",
11980
+ "type": "bytes",
11838
11981
  "id": 1
11839
11982
  }
11840
11983
  }
11841
11984
  },
11842
- "Ping": {
11985
+ "DeviceCertificateSign": {
11843
11986
  "fields": {
11844
- "message": {
11987
+ "data": {
11988
+ "rule": "required",
11989
+ "type": "bytes",
11990
+ "id": 1
11991
+ }
11992
+ }
11993
+ },
11994
+ "DeviceFirmwareTargetType": {
11995
+ "values": {
11996
+ "FW_MGMT_TARGET_INVALID": 0,
11997
+ "FW_MGMT_TARGET_CRATE": 1,
11998
+ "FW_MGMT_TARGET_ROMLOADER": 2,
11999
+ "FW_MGMT_TARGET_BOOTLOADER": 3,
12000
+ "FW_MGMT_TARGET_APPLICATION_P1": 4,
12001
+ "FW_MGMT_TARGET_APPLICATION_P2": 5,
12002
+ "FW_MGMT_TARGET_COPROCESSOR": 6,
12003
+ "FW_MGMT_TARGET_SE01": 7,
12004
+ "FW_MGMT_TARGET_SE02": 8,
12005
+ "FW_MGMT_TARGET_SE03": 9,
12006
+ "FW_MGMT_TARGET_SE04": 10
12007
+ }
12008
+ },
12009
+ "DeviceFirmwareUpdateTaskStatus": {
12010
+ "values": {
12011
+ "FW_MGMT_UPDATER_TASK_STATUS_PENDING": 0,
12012
+ "FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS": 1,
12013
+ "FW_MGMT_UPDATER_TASK_STATUS_FINISHED": 2,
12014
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND": 3,
12015
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ": 4,
12016
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE": 5,
12017
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY": 6,
12018
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL": 7,
12019
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT": 8,
12020
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY": 9,
12021
+ "FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS": 10
12022
+ }
12023
+ },
12024
+ "DeviceFirmwareTarget": {
12025
+ "fields": {
12026
+ "target_id": {
12027
+ "rule": "required",
12028
+ "type": "DeviceFirmwareTargetType",
12029
+ "id": 1
12030
+ },
12031
+ "path": {
12032
+ "rule": "required",
11845
12033
  "type": "string",
11846
- "id": 1,
11847
- "options": {
11848
- "default": ""
11849
- }
12034
+ "id": 2
11850
12035
  }
11851
12036
  }
11852
12037
  },
11853
- "Success": {
12038
+ "DeviceFirmwareUpdateRequest": {
11854
12039
  "fields": {
11855
- "message": {
12040
+ "targets": {
12041
+ "rule": "repeated",
12042
+ "type": "DeviceFirmwareTarget",
12043
+ "id": 1
12044
+ }
12045
+ }
12046
+ },
12047
+ "DeviceFirmwareUpdateRecord": {
12048
+ "fields": {
12049
+ "target_id": {
12050
+ "rule": "required",
12051
+ "type": "DeviceFirmwareTargetType",
12052
+ "id": 1
12053
+ },
12054
+ "status": {
12055
+ "type": "DeviceFirmwareUpdateTaskStatus",
12056
+ "id": 10
12057
+ },
12058
+ "payload_version": {
12059
+ "type": "uint32",
12060
+ "id": 20
12061
+ },
12062
+ "path": {
11856
12063
  "type": "string",
11857
- "id": 1,
11858
- "options": {
11859
- "default": ""
11860
- }
12064
+ "id": 30
11861
12065
  }
11862
12066
  }
11863
12067
  },
11864
- "Failure": {
12068
+ "DeviceFirmwareUpdateRecordFields": {
11865
12069
  "fields": {
11866
- "code": {
11867
- "type": "FailureType",
12070
+ "status": {
12071
+ "type": "bool",
12072
+ "id": 10
12073
+ },
12074
+ "payload_version": {
12075
+ "type": "bool",
12076
+ "id": 20
12077
+ },
12078
+ "path": {
12079
+ "type": "bool",
12080
+ "id": 30
12081
+ }
12082
+ }
12083
+ },
12084
+ "DeviceFirmwareUpdateStatusGet": {
12085
+ "fields": {
12086
+ "fields": {
12087
+ "type": "DeviceFirmwareUpdateRecordFields",
12088
+ "id": 1
12089
+ }
12090
+ }
12091
+ },
12092
+ "DeviceFirmwareUpdateStatus": {
12093
+ "fields": {
12094
+ "records": {
12095
+ "rule": "repeated",
12096
+ "type": "DeviceFirmwareUpdateRecord",
12097
+ "id": 1
12098
+ }
12099
+ }
12100
+ },
12101
+ "DeviceFactoryAck": {
12102
+ "values": {
12103
+ "FACTORY_ACK_SUCCESS": 0,
12104
+ "FACTORY_ACK_FAIL": 1
12105
+ }
12106
+ },
12107
+ "DeviceFactoryInfoManufactureTime": {
12108
+ "fields": {
12109
+ "year": {
12110
+ "rule": "required",
12111
+ "type": "uint32",
11868
12112
  "id": 1
11869
12113
  },
11870
- "message": {
12114
+ "month": {
12115
+ "rule": "required",
12116
+ "type": "uint32",
12117
+ "id": 2
12118
+ },
12119
+ "day": {
12120
+ "rule": "required",
12121
+ "type": "uint32",
12122
+ "id": 3
12123
+ },
12124
+ "hour": {
12125
+ "rule": "required",
12126
+ "type": "uint32",
12127
+ "id": 4
12128
+ },
12129
+ "minute": {
12130
+ "rule": "required",
12131
+ "type": "uint32",
12132
+ "id": 5
12133
+ },
12134
+ "second": {
12135
+ "rule": "required",
12136
+ "type": "uint32",
12137
+ "id": 6
12138
+ }
12139
+ }
12140
+ },
12141
+ "DeviceFactoryInfo": {
12142
+ "fields": {
12143
+ "version": {
12144
+ "type": "uint32",
12145
+ "id": 1
12146
+ },
12147
+ "serial_number": {
11871
12148
  "type": "string",
11872
12149
  "id": 2
12150
+ },
12151
+ "burn_in_completed": {
12152
+ "type": "bool",
12153
+ "id": 3
12154
+ },
12155
+ "factory_test_completed": {
12156
+ "type": "bool",
12157
+ "id": 4
12158
+ },
12159
+ "manufacture_time": {
12160
+ "type": "DeviceFactoryInfoManufactureTime",
12161
+ "id": 5
11873
12162
  }
11874
- },
11875
- "nested": {
11876
- "FailureType": {
11877
- "values": {
11878
- "Failure_UnexpectedMessage": 1,
11879
- "Failure_ButtonExpected": 2,
11880
- "Failure_DataError": 3,
11881
- "Failure_ActionCancelled": 4,
11882
- "Failure_PinExpected": 5,
11883
- "Failure_PinCancelled": 6,
11884
- "Failure_PinInvalid": 7,
11885
- "Failure_InvalidSignature": 8,
11886
- "Failure_ProcessError": 9,
11887
- "Failure_NotEnoughFunds": 10,
11888
- "Failure_NotInitialized": 11,
11889
- "Failure_PinMismatch": 12,
11890
- "Failure_WipeCodeMismatch": 13,
11891
- "Failure_InvalidSession": 14,
11892
- "Failure_FirmwareError": 99
11893
- }
11894
- }
11895
- }
11896
- },
11897
- "DevRebootType": {
11898
- "values": {
11899
- "Normal": 0,
11900
- "Boardloader": 1,
11901
- "Bootloader": 2
11902
12163
  }
11903
12164
  },
11904
- "DevReboot": {
12165
+ "DeviceFactoryInfoSet": {
11905
12166
  "fields": {
11906
- "reboot_type": {
12167
+ "info": {
12168
+ "rule": "required",
12169
+ "type": "DeviceFactoryInfo",
12170
+ "id": 1
12171
+ }
12172
+ }
12173
+ },
12174
+ "DeviceFactoryInfoGet": {
12175
+ "fields": {}
12176
+ },
12177
+ "DeviceFactoryPermanentLock": {
12178
+ "fields": {
12179
+ "check_a": {
12180
+ "rule": "required",
12181
+ "type": "bytes",
12182
+ "id": 1
12183
+ },
12184
+ "check_b": {
11907
12185
  "rule": "required",
11908
- "type": "DevRebootType",
12186
+ "type": "bytes",
12187
+ "id": 2
12188
+ }
12189
+ }
12190
+ },
12191
+ "DeviceFactoryTest": {
12192
+ "fields": {
12193
+ "burn_in_test": {
12194
+ "rule": "required",
12195
+ "type": "bool",
11909
12196
  "id": 1
11910
12197
  }
11911
12198
  }
@@ -11917,23 +12204,25 @@
11917
12204
  "MINI": 2,
11918
12205
  "TOUCH": 3,
11919
12206
  "PRO": 5,
11920
- "CLASSIC1S_PURE": 6
12207
+ "CLASSIC1S_PURE": 6,
12208
+ "PRO2": 7,
12209
+ "NEO": 8
11921
12210
  }
11922
12211
  },
11923
- "DevSeType": {
12212
+ "DeviceSeType": {
11924
12213
  "values": {
11925
12214
  "THD89": 0,
11926
12215
  "SE608A": 1
11927
12216
  }
11928
12217
  },
11929
- "DevSEState": {
12218
+ "DeviceSEState": {
11930
12219
  "values": {
11931
12220
  "BOOT": 0,
11932
12221
  "APP_FACTORY": 51,
11933
12222
  "APP": 85
11934
12223
  }
11935
12224
  },
11936
- "DevFirmwareImageInfo": {
12225
+ "DeviceFirmwareImageInfo": {
11937
12226
  "fields": {
11938
12227
  "version": {
11939
12228
  "type": "string",
@@ -11949,15 +12238,15 @@
11949
12238
  }
11950
12239
  }
11951
12240
  },
11952
- "DevHardwareInfo": {
12241
+ "DeviceHardwareInfo": {
11953
12242
  "fields": {
11954
- "device_type": {
12243
+ "Device_type": {
11955
12244
  "type": "DeviceType",
11956
12245
  "id": 10
11957
12246
  },
11958
12247
  "serial_no": {
11959
12248
  "type": "string",
11960
- "id": 11
12249
+ "id": 20
11961
12250
  },
11962
12251
  "hardware_version": {
11963
12252
  "type": "string",
@@ -11965,67 +12254,71 @@
11965
12254
  },
11966
12255
  "hardware_version_raw_adc": {
11967
12256
  "type": "uint32",
11968
- "id": 101
12257
+ "id": 110
11969
12258
  }
11970
12259
  }
11971
12260
  },
11972
- "DevMainMcuInfo": {
12261
+ "DeviceMainMcuInfo": {
11973
12262
  "fields": {
11974
- "board": {
11975
- "type": "DevFirmwareImageInfo",
12263
+ "romloader": {
12264
+ "type": "DeviceFirmwareImageInfo",
11976
12265
  "id": 10
11977
12266
  },
11978
- "boot": {
11979
- "type": "DevFirmwareImageInfo",
12267
+ "bootloader": {
12268
+ "type": "DeviceFirmwareImageInfo",
11980
12269
  "id": 20
11981
12270
  },
11982
- "app": {
11983
- "type": "DevFirmwareImageInfo",
12271
+ "application": {
12272
+ "type": "DeviceFirmwareImageInfo",
11984
12273
  "id": 30
12274
+ },
12275
+ "application_data": {
12276
+ "type": "DeviceFirmwareImageInfo",
12277
+ "id": 40
11985
12278
  }
11986
12279
  }
11987
12280
  },
11988
- "DevBluetoothInfo": {
12281
+ "DeviceCoprocessorInfo": {
11989
12282
  "fields": {
11990
- "boot": {
11991
- "type": "DevFirmwareImageInfo",
12283
+ "bootloader": {
12284
+ "type": "DeviceFirmwareImageInfo",
11992
12285
  "id": 20
11993
12286
  },
11994
- "app": {
11995
- "type": "DevFirmwareImageInfo",
12287
+ "application": {
12288
+ "type": "DeviceFirmwareImageInfo",
11996
12289
  "id": 30
11997
12290
  },
11998
- "adv_name": {
12291
+ "bt_adv_name": {
11999
12292
  "type": "string",
12000
12293
  "id": 100
12001
12294
  },
12002
- "mac": {
12295
+ "bt_mac": {
12003
12296
  "type": "bytes",
12004
12297
  "id": 110
12005
12298
  }
12006
12299
  }
12007
12300
  },
12008
- "DevSEInfo": {
12301
+ "DeviceSEInfo": {
12009
12302
  "fields": {
12010
- "boot": {
12011
- "type": "DevFirmwareImageInfo",
12303
+ "bootloader": {
12304
+ "type": "DeviceFirmwareImageInfo",
12012
12305
  "id": 20
12013
12306
  },
12014
- "app": {
12015
- "type": "DevFirmwareImageInfo",
12307
+ "application": {
12308
+ "type": "DeviceFirmwareImageInfo",
12016
12309
  "id": 30
12017
12310
  },
12018
12311
  "type": {
12019
- "type": "DevSeType",
12312
+ "type": "DeviceSeType",
12020
12313
  "id": 100
12021
12314
  },
12022
12315
  "state": {
12023
- "type": "DevSEState",
12316
+ "type": "DeviceSEState",
12024
12317
  "id": 110
12025
12318
  }
12026
12319
  }
12027
12320
  },
12028
- "DevInfoTargets": {
12321
+ "DeviceInfoTargets": {
12029
12322
  "fields": {
12030
12323
  "hw": {
12031
12324
  "type": "bool",
@@ -12035,7 +12328,7 @@
12035
12328
  "type": "bool",
12036
12329
  "id": 200
12037
12330
  },
12038
- "bt": {
12331
+ "coprocessor": {
12039
12332
  "type": "bool",
12040
12333
  "id": 300
12041
12334
  },
@@ -12061,7 +12354,7 @@
12061
12354
  }
12062
12355
  }
12063
12356
  },
12064
- "DevInfoTypes": {
12357
+ "DeviceInfoTypes": {
12065
12358
  "fields": {
12066
12359
  "version": {
12067
12360
  "type": "bool",
@@ -12081,42 +12374,14 @@
12081
12374
  }
12082
12375
  }
12083
12376
  },
12084
- "DevStatus": {
12085
- "fields": {
12086
- "language": {
12087
- "type": "string",
12088
- "id": 100
12089
- },
12090
- "bt_enable": {
12091
- "type": "bool",
12092
- "id": 101
12093
- },
12094
- "init_states": {
12095
- "type": "bool",
12096
- "id": 102
12097
- },
12098
- "backup_required": {
12099
- "type": "bool",
12100
- "id": 200
12101
- },
12102
- "passphrase_protection": {
12103
- "type": "bool",
12104
- "id": 201
12105
- },
12106
- "label": {
12107
- "type": "string",
12108
- "id": 300
12109
- }
12110
- }
12111
- },
12112
- "DevGetDeviceInfo": {
12377
+ "DeviceInfoGet": {
12113
12378
  "fields": {
12114
12379
  "targets": {
12115
- "type": "DevInfoTargets",
12380
+ "type": "DeviceInfoTargets",
12116
12381
  "id": 1
12117
12382
  },
12118
12383
  "types": {
12119
- "type": "DevInfoTypes",
12384
+ "type": "DeviceInfoTypes",
12120
12385
  "id": 2
12121
12386
  }
12122
12387
  }
@@ -12129,169 +12394,185 @@
12129
12394
  "id": 1
12130
12395
  },
12131
12396
  "hw": {
12132
- "type": "DevHardwareInfo",
12397
+ "type": "DeviceHardwareInfo",
12133
12398
  "id": 100
12134
12399
  },
12135
12400
  "fw": {
12136
- "type": "DevMainMcuInfo",
12401
+ "type": "DeviceMainMcuInfo",
12137
12402
  "id": 200
12138
12403
  },
12139
- "bt": {
12140
- "type": "DevBluetoothInfo",
12404
+ "coprocessor": {
12405
+ "type": "DeviceCoprocessorInfo",
12141
12406
  "id": 300
12142
12407
  },
12143
12408
  "se1": {
12144
- "type": "DevSEInfo",
12409
+ "type": "DeviceSEInfo",
12145
12410
  "id": 400
12146
12411
  },
12147
12412
  "se2": {
12148
- "type": "DevSEInfo",
12413
+ "type": "DeviceSEInfo",
12149
12414
  "id": 410
12150
12415
  },
12151
12416
  "se3": {
12152
- "type": "DevSEInfo",
12417
+ "type": "DeviceSEInfo",
12153
12418
  "id": 420
12154
12419
  },
12155
12420
  "se4": {
12156
- "type": "DevSEInfo",
12421
+ "type": "DeviceSEInfo",
12157
12422
  "id": 430
12158
12423
  },
12159
12424
  "status": {
12160
- "type": "DevStatus",
12425
+ "type": "DeviceStatus",
12161
12426
  "id": 10000
12162
12427
  }
12163
12428
  }
12164
12429
  },
12165
- "DevFirmwareTargetType": {
12166
- "values": {
12167
- "TARGET_INVALID": 0,
12168
- "TARGET_ROMLOADER": 1,
12169
- "TARGET_BOOTLOADER": 2,
12170
- "TARGET_APPLICATION_P1": 3,
12171
- "TARGET_APPLICATION_P2": 4,
12172
- "TARGET_COPROCESSOR": 5,
12173
- "TARGET_SE01": 6,
12174
- "TARGET_SE02": 7,
12175
- "TARGET_SE03": 8,
12176
- "TARGET_SE04": 9,
12177
- "TARGET_RESOURCE": 10
12430
+ "DeviceSessionGet": {
12431
+ "fields": {
12432
+ "session_id": {
12433
+ "type": "bytes",
12434
+ "id": 1
12435
+ }
12178
12436
  }
12179
12437
  },
12180
- "DevFirmwareTarget": {
12438
+ "DeviceSession": {
12181
12439
  "fields": {
12182
- "target_id": {
12183
- "rule": "required",
12184
- "type": "DevFirmwareTargetType",
12440
+ "session_id": {
12441
+ "type": "bytes",
12185
12442
  "id": 1
12186
12443
  },
12187
- "path": {
12188
- "rule": "required",
12444
+ "btc_test_address": {
12189
12445
  "type": "string",
12190
12446
  "id": 2
12191
12447
  }
12192
12448
  }
12193
12449
  },
12194
- "DevFirmwareUpdate": {
12195
- "fields": {
12196
- "targets": {
12197
- "rule": "repeated",
12198
- "type": "DevFirmwareTarget",
12199
- "id": 1
12200
- }
12450
+ "DeviceSessionAskPin": {
12451
+ "fields": {}
12452
+ },
12453
+ "DeviceSessionAskPin_FailureSubCodes": {
12454
+ "values": {
12455
+ "UserCancel": 1
12201
12456
  }
12202
12457
  },
12203
- "DevFirmwareInstallProgress": {
12458
+ "DeviceStatus": {
12204
12459
  "fields": {
12205
- "target_id": {
12206
- "rule": "required",
12207
- "type": "DevFirmwareTargetType",
12460
+ "device_id": {
12461
+ "type": "string",
12208
12462
  "id": 1
12209
12463
  },
12210
- "progress": {
12211
- "rule": "required",
12212
- "type": "uint32",
12464
+ "unlocked": {
12465
+ "type": "bool",
12213
12466
  "id": 2
12214
12467
  },
12215
- "stage": {
12216
- "type": "string",
12468
+ "init_states": {
12469
+ "type": "bool",
12217
12470
  "id": 3
12218
- }
12219
- }
12220
- },
12221
- "DevFirmwareUpdateStatusEntry": {
12222
- "fields": {
12223
- "target_id": {
12224
- "rule": "required",
12225
- "type": "DevFirmwareTargetType",
12226
- "id": 1
12227
12471
  },
12228
- "status": {
12229
- "rule": "required",
12230
- "type": "uint32",
12231
- "id": 2
12472
+ "backup_required": {
12473
+ "type": "bool",
12474
+ "id": 4
12475
+ },
12476
+ "passphrase_enabled": {
12477
+ "type": "bool",
12478
+ "id": 10
12479
+ },
12480
+ "attach_to_pin_enabled": {
12481
+ "type": "bool",
12482
+ "id": 11
12483
+ },
12484
+ "unlocked_by_attach_to_pin": {
12485
+ "type": "bool",
12486
+ "id": 12
12232
12487
  }
12233
12488
  }
12234
12489
  },
12235
- "DevGetFirmwareUpdateStatus": {
12490
+ "DeviceStatusGet": {
12236
12491
  "fields": {}
12237
12492
  },
12238
- "DevFirmwareUpdateStatus": {
12239
- "fields": {
12240
- "targets": {
12241
- "rule": "repeated",
12242
- "type": "DevFirmwareUpdateStatusEntry",
12243
- "id": 1
12244
- }
12493
+ "DevOnboardingStep": {
12494
+ "values": {
12495
+ "DEV_ONBOARDING_STEP_UNKNOWN": 0,
12496
+ "DEV_ONBOARDING_STEP_CHECKING": 1,
12497
+ "DEV_ONBOARDING_STEP_PERSONALIZATION": 2,
12498
+ "DEV_ONBOARDING_STEP_PIN": 3,
12499
+ "DEV_ONBOARDING_STEP_SETUP": 4,
12500
+ "DEV_ONBOARDING_STEP_DONE": 5
12501
+ }
12502
+ },
12503
+ "DevOnboardingPhase": {
12504
+ "values": {
12505
+ "DEV_ONBOARDING_PHASE_UNKNOWN": 0,
12506
+ "DEV_ONBOARDING_PHASE_SAFETY_CHECK": 1,
12507
+ "DEV_ONBOARDING_PHASE_PIN_SETUP": 2,
12508
+ "DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP": 3,
12509
+ "DEV_ONBOARDING_PHASE_SETUP_CHOICE": 4,
12510
+ "DEV_ONBOARDING_PHASE_WALLET_CREATE_START": 5,
12511
+ "DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW": 6,
12512
+ "DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM": 7,
12513
+ "DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE": 8,
12514
+ "DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE": 9,
12515
+ "DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE": 10,
12516
+ "DEV_ONBOARDING_PHASE_WALLET_READY": 11,
12517
+ "DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT": 12,
12518
+ "DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP": 13
12519
+ }
12520
+ },
12521
+ "DevOnboardingSetupKind": {
12522
+ "values": {
12523
+ "DEV_ONBOARDING_SETUP_KIND_UNKNOWN": 0,
12524
+ "DEV_ONBOARDING_SETUP_KIND_CHOICE": 1,
12525
+ "DEV_ONBOARDING_SETUP_KIND_CREATE": 2,
12526
+ "DEV_ONBOARDING_SETUP_KIND_RESTORE": 3
12527
+ }
12528
+ },
12529
+ "DevOnboardingSetupMethod": {
12530
+ "values": {
12531
+ "DEV_ONBOARDING_SETUP_METHOD_UNKNOWN": 0,
12532
+ "DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE": 1,
12533
+ "DEV_ONBOARDING_SETUP_METHOD_SEEDCARD": 2
12245
12534
  }
12246
12535
  },
12247
- "FactoryDeviceInfoSettings": {
12536
+ "DevOnboardingSetupStatus": {
12248
12537
  "fields": {
12249
- "serial_no": {
12250
- "type": "string",
12538
+ "kind": {
12539
+ "type": "DevOnboardingSetupKind",
12251
12540
  "id": 1
12252
12541
  },
12253
- "cpu_info": {
12254
- "type": "string",
12542
+ "method": {
12543
+ "type": "DevOnboardingSetupMethod",
12255
12544
  "id": 2
12256
- },
12257
- "pre_firmware": {
12258
- "type": "string",
12259
- "id": 3
12260
12545
  }
12261
12546
  }
12262
12547
  },
12263
- "FactoryGetDeviceInfo": {
12548
+ "DevGetOnboardingStatus": {
12264
12549
  "fields": {}
12265
12550
  },
12266
- "FactoryDeviceInfo": {
12551
+ "DevOnboardingStatus": {
12267
12552
  "fields": {
12268
- "serial_no": {
12269
- "type": "string",
12553
+ "step": {
12554
+ "type": "DevOnboardingStep",
12270
12555
  "id": 1
12271
12556
  },
12272
- "spi_flash_info": {
12273
- "type": "string",
12557
+ "phase": {
12558
+ "type": "DevOnboardingPhase",
12274
12559
  "id": 2
12275
12560
  },
12276
- "se_info": {
12277
- "type": "string",
12561
+ "setup": {
12562
+ "type": "DevOnboardingSetupStatus",
12278
12563
  "id": 3
12279
12564
  },
12280
- "nft_voucher": {
12281
- "type": "bytes",
12565
+ "pin_set": {
12566
+ "type": "bool",
12282
12567
  "id": 4
12283
12568
  },
12284
- "cpu_info": {
12285
- "type": "string",
12569
+ "wallet_initialized": {
12570
+ "type": "bool",
12286
12571
  "id": 5
12287
- },
12288
- "pre_firmware": {
12289
- "type": "string",
12290
- "id": 6
12291
12572
  }
12292
12573
  }
12293
12574
  },
12294
- "FilesystemFixPermission": {
12575
+ "FilesystemPermissionFix": {
12295
12576
  "fields": {}
12296
12577
  },
12297
12578
  "FilesystemPathInfo": {
@@ -12504,77 +12785,22 @@
12504
12785
  }
12505
12786
  },
12506
12787
  "FilesystemFormat": {
12507
- "fields": {}
12508
- },
12509
- "OnboardingStep": {
12510
- "values": {
12511
- "ONBOARDING_STEP_UNKNOWN": 0,
12512
- "ONBOARDING_STEP_DEVICE_VERIFICATION": 1,
12513
- "ONBOARDING_STEP_PERSONALIZATION": 2,
12514
- "ONBOARDING_STEP_SETUP": 3,
12515
- "ONBOARDING_STEP_FIRMWARE": 4
12516
- }
12517
- },
12518
- "GetOnboardingStatus": {
12519
- "fields": {}
12520
- },
12521
- "OnboardingStatus": {
12522
12788
  "fields": {
12523
- "step": {
12789
+ "data": {
12524
12790
  "rule": "required",
12525
- "type": "OnboardingStep",
12791
+ "type": "bool",
12526
12792
  "id": 1
12527
12793
  },
12528
- "setup": {
12529
- "type": "Setup",
12794
+ "user": {
12795
+ "rule": "required",
12796
+ "type": "bool",
12530
12797
  "id": 2
12531
- },
12532
- "detail_code": {
12533
- "type": "uint32",
12534
- "id": 3
12535
- },
12536
- "detail_str": {
12537
- "type": "string",
12538
- "id": 4
12539
- }
12540
- },
12541
- "nested": {
12542
- "Setup": {
12543
- "fields": {
12544
- "new_device": {
12545
- "type": "NewDevice",
12546
- "id": 1
12547
- },
12548
- "restore": {
12549
- "type": "Restore",
12550
- "id": 2
12551
- }
12552
- },
12553
- "nested": {
12554
- "NewDevice": {
12555
- "fields": {
12556
- "seedcard_backup": {
12557
- "type": "bool",
12558
- "id": 1
12559
- }
12560
- }
12561
- },
12562
- "Restore": {
12563
- "fields": {
12564
- "mnemonic": {
12565
- "type": "bool",
12566
- "id": 1
12567
- },
12568
- "seedcard": {
12569
- "type": "bool",
12570
- "id": 2
12571
- }
12572
- }
12573
- }
12574
- }
12575
12798
  }
12576
12799
  }
12577
12800
  },
12801
+ "PortfolioUpdate": {
12802
+ "fields": {}
12803
+ },
12578
12804
  "google": {
12579
12805
  "nested": {
12580
12806
  "protobuf": {
@@ -13254,116 +13480,6 @@
13254
13480
  }
13255
13481
  }
13256
13482
  }
13257
- },
13258
- "DeviceRebootType": {
13259
- "values": {
13260
- "Normal": 0,
13261
- "Romloader": 1,
13262
- "Bootloader": 2
13263
- }
13264
- },
13265
- "DeviceReboot": {
13266
- "fields": {
13267
- "reboot_type": {
13268
- "rule": "required",
13269
- "type": "DeviceRebootType",
13270
- "id": 1
13271
- }
13272
- }
13273
- },
13274
- "DeviceGetDeviceInfo": {
13275
- "fields": {
13276
- "targets": {
13277
- "type": "DevInfoTargets",
13278
- "id": 1
13279
- },
13280
- "types": {
13281
- "type": "DevInfoTypes",
13282
- "id": 2
13283
- }
13284
- }
13285
- },
13286
- "DeviceFirmwareTargetType": {
13287
- "values": {
13288
- "TARGET_INVALID": 0,
13289
- "TARGET_ROMLOADER": 1,
13290
- "TARGET_BOOTLOADER": 2,
13291
- "TARGET_APPLICATION_P1": 3,
13292
- "TARGET_APPLICATION_P2": 4,
13293
- "TARGET_COPROCESSOR": 5,
13294
- "TARGET_SE01": 6,
13295
- "TARGET_SE02": 7,
13296
- "TARGET_SE03": 8,
13297
- "TARGET_SE04": 9,
13298
- "TARGET_RESOURCE": 10
13299
- }
13300
- },
13301
- "DeviceFirmwareTarget": {
13302
- "fields": {
13303
- "target_id": {
13304
- "rule": "required",
13305
- "type": "DeviceFirmwareTargetType",
13306
- "id": 1
13307
- },
13308
- "path": {
13309
- "rule": "required",
13310
- "type": "string",
13311
- "id": 2
13312
- }
13313
- }
13314
- },
13315
- "DeviceFirmwareUpdate": {
13316
- "fields": {
13317
- "targets": {
13318
- "rule": "repeated",
13319
- "type": "DeviceFirmwareTarget",
13320
- "id": 1
13321
- }
13322
- }
13323
- },
13324
- "DeviceFirmwareInstallProgress": {
13325
- "fields": {
13326
- "target_id": {
13327
- "rule": "required",
13328
- "type": "DeviceFirmwareTargetType",
13329
- "id": 1
13330
- },
13331
- "progress": {
13332
- "rule": "required",
13333
- "type": "uint32",
13334
- "id": 2
13335
- },
13336
- "stage": {
13337
- "type": "string",
13338
- "id": 3
13339
- }
13340
- }
13341
- },
13342
- "DeviceFirmwareUpdateStatusEntry": {
13343
- "fields": {
13344
- "target_id": {
13345
- "rule": "required",
13346
- "type": "DeviceFirmwareTargetType",
13347
- "id": 1
13348
- },
13349
- "status": {
13350
- "rule": "required",
13351
- "type": "uint32",
13352
- "id": 2
13353
- }
13354
- }
13355
- },
13356
- "DeviceGetFirmwareUpdateStatus": {
13357
- "fields": {}
13358
- },
13359
- "DeviceFirmwareUpdateStatus": {
13360
- "fields": {
13361
- "targets": {
13362
- "rule": "repeated",
13363
- "type": "DeviceFirmwareUpdateStatusEntry",
13364
- "id": 1
13365
- }
13366
- }
13367
13483
  }
13368
13484
  }
13369
13485
  }