@onekeyfe/hd-core 1.2.0-alpha.8 → 1.2.0-alpha.81
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.
- package/__tests__/AllNetworkGetAddressBase.tracing.test.ts +390 -0
- package/__tests__/DeviceCommands.test.ts +563 -0
- package/__tests__/DeviceEventRegistration.test.ts +49 -0
- package/__tests__/chain-params-onekey-compatibility.test.ts +229 -0
- package/__tests__/check-all-firmware-release-protocol-v2.test.ts +492 -0
- package/__tests__/check-firmware-release-protocol-v2.test.ts +164 -0
- package/__tests__/connectSettings.test.ts +45 -5
- package/__tests__/core-dispose.test.ts +34 -0
- package/__tests__/core-error-output.test.ts +39 -0
- package/__tests__/core-initialization.test.ts +23 -0
- package/__tests__/device-connector-protocol.test.ts +81 -0
- package/__tests__/device-features-state.test.ts +78 -0
- package/__tests__/device-identity.test.ts +52 -0
- package/__tests__/device-initialize-timeout.test.ts +56 -0
- package/__tests__/device-lifecycle-events.test.ts +351 -0
- package/__tests__/device-pool-state.test.ts +166 -0
- package/__tests__/device-settings.test.ts +437 -0
- package/__tests__/device-state-contract.test.ts +28 -0
- package/__tests__/device-state-events.test.ts +286 -0
- package/__tests__/device-state-mapper.test.ts +288 -0
- package/__tests__/device-state-projector.test.ts +114 -0
- package/__tests__/device-state-store.test.ts +109 -0
- package/__tests__/device-utils.test.ts +154 -0
- package/__tests__/device-wallet-session-store.test.ts +478 -0
- package/__tests__/deviceFeaturesUtils.test.ts +39 -0
- package/__tests__/devicePoolBootloaderPath.test.ts +64 -0
- package/__tests__/deviceSettings.test.ts +113 -0
- package/__tests__/deviceUploadNft.test.ts +316 -0
- package/__tests__/evmLedgerLegacySafety.test.ts +12 -6
- package/__tests__/evmSignTransaction.test.ts +69 -0
- package/__tests__/evmSignTypedData.test.ts +80 -0
- package/__tests__/filesystemValidation.test.ts +53 -0
- package/__tests__/firmware-update/check-all-firmware-release.test.ts +175 -0
- package/__tests__/firmware-update/device-update-bootloader.test.ts +87 -0
- package/__tests__/firmware-update/firmware-artifact-source.test.ts +119 -0
- package/__tests__/firmware-update/firmware-host-binding.test.ts +70 -0
- package/__tests__/firmware-update/firmware-preparation-error.test.ts +27 -0
- package/__tests__/firmware-update/firmware-update-bootloader-poll.test.ts +200 -0
- package/__tests__/firmware-update/firmware-update-capabilities.test.ts +13 -0
- package/__tests__/firmware-update/firmware-update-plan-bootloader-identity.test.ts +394 -0
- package/__tests__/firmware-update/firmware-update-plan.test.ts +593 -0
- package/__tests__/firmware-update/firmware-update-prepared-plan.test.ts +231 -0
- package/__tests__/firmware-update/firmware-update-v2-download-before-boot.test.ts +457 -0
- package/__tests__/firmware-update/firmware-update-v3-reconnect.test.ts +121 -0
- package/__tests__/firmware-update/firmware-upload-source.test.ts +70 -0
- package/__tests__/get-device-state.test.ts +578 -0
- package/__tests__/homescreen.test.ts +81 -0
- package/__tests__/kaspa-public-types.type-test.ts +16 -0
- package/__tests__/kaspa-use-tweak-pro2.test.ts +20 -0
- package/__tests__/kaspaSignTransaction.test.ts +578 -0
- package/__tests__/known-device-public-types.type-test.ts +3 -0
- package/__tests__/logBlockEvent.test.ts +128 -1
- package/__tests__/method-protocol-support.test.ts +144 -0
- package/__tests__/networkUtils.test.ts +406 -0
- package/__tests__/open-wallet-session-error-response.test.ts +43 -0
- package/__tests__/open-wallet-session.test.ts +1899 -0
- package/__tests__/pro2Nft.test.ts +108 -0
- package/__tests__/pro2Wallpaper.test.ts +39 -0
- package/__tests__/protocol-binding.test.ts +89 -0
- package/__tests__/protocol-v2-bootloader-mode.test.ts +37 -0
- package/__tests__/protocol-v2-firmware-targets.test.ts +85 -0
- package/__tests__/protocol-v2-ping.test.ts +28 -0
- package/__tests__/protocol-v2-resources.test.ts +250 -0
- package/__tests__/protocol-v2-ui-lifecycle.test.ts +91 -0
- package/__tests__/protocol-v2-unlock-policy.test.ts +308 -0
- package/__tests__/protocol-v2.test.ts +7034 -2497
- package/__tests__/protocolV2FileWrite.test.ts +285 -0
- package/__tests__/protocolV2UiInteraction.test.ts +329 -0
- package/__tests__/public-device-state-api.test.ts +275 -0
- package/__tests__/public-pro2-api-boundary.test.ts +107 -0
- package/__tests__/refresh-device-state.test.ts +101 -0
- package/__tests__/request-context-logging.test.ts +16 -0
- package/__tests__/search-devices.test.ts +145 -0
- package/__tests__/tron-sign-message-init.test.ts +74 -0
- package/__tests__/uiProgressThrottle.test.ts +74 -0
- package/__tests__/uiPromiseRegistry.test.ts +115 -0
- package/dist/api/BaseMethod.d.ts +16 -1
- package/dist/api/BaseMethod.d.ts.map +1 -1
- package/dist/api/CheckAllFirmwareRelease.d.ts +25 -1
- package/dist/api/CheckAllFirmwareRelease.d.ts.map +1 -1
- package/dist/api/CheckBLEFirmwareRelease.d.ts +2 -1
- package/dist/api/CheckBLEFirmwareRelease.d.ts.map +1 -1
- package/dist/api/CheckBootloaderRelease.d.ts +3 -2
- package/dist/api/CheckBootloaderRelease.d.ts.map +1 -1
- package/dist/api/CheckFirmwareRelease.d.ts +2 -1
- package/dist/api/CheckFirmwareRelease.d.ts.map +1 -1
- package/dist/api/CipherKeyValue.d.ts +1 -0
- package/dist/api/CipherKeyValue.d.ts.map +1 -1
- package/dist/api/ClearSessionCache.d.ts +9 -0
- package/dist/api/ClearSessionCache.d.ts.map +1 -0
- package/dist/api/DetectDeviceConnectProtocol.d.ts +7 -0
- package/dist/api/DetectDeviceConnectProtocol.d.ts.map +1 -0
- package/dist/api/DirList.d.ts +1 -0
- package/dist/api/DirList.d.ts.map +1 -1
- package/dist/api/DirMake.d.ts +1 -0
- package/dist/api/DirMake.d.ts.map +1 -1
- package/dist/api/DirRemove.d.ts +1 -0
- package/dist/api/DirRemove.d.ts.map +1 -1
- package/dist/api/FileDelete.d.ts +1 -0
- package/dist/api/FileDelete.d.ts.map +1 -1
- package/dist/api/FileRead.d.ts +1 -0
- package/dist/api/FileRead.d.ts.map +1 -1
- package/dist/api/FileWrite.d.ts +2 -0
- package/dist/api/FileWrite.d.ts.map +1 -1
- package/dist/api/FirmwareUpdate.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV2.d.ts +12 -2
- package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV3.d.ts +7 -3
- package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV4.d.ts +47 -18
- package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
- package/dist/api/GetDeviceState.d.ts +8 -0
- package/dist/api/GetDeviceState.d.ts.map +1 -0
- package/dist/api/GetFeatures.d.ts +1 -1
- package/dist/api/GetFeatures.d.ts.map +1 -1
- package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
- package/dist/api/GetPassphraseState.d.ts +2 -6
- package/dist/api/GetPassphraseState.d.ts.map +1 -1
- package/dist/api/OpenWalletSession.d.ts +8 -0
- package/dist/api/OpenWalletSession.d.ts.map +1 -0
- package/dist/api/PathInfo.d.ts +1 -0
- package/dist/api/PathInfo.d.ts.map +1 -1
- package/dist/api/PromptWebDeviceAccess.d.ts.map +1 -1
- package/dist/api/SearchDevices.d.ts +3 -0
- package/dist/api/SearchDevices.d.ts.map +1 -1
- package/dist/api/UploadPortfolio.d.ts +17 -0
- package/dist/api/UploadPortfolio.d.ts.map +1 -0
- package/dist/api/alephium/AlephiumGetAddress.d.ts.map +1 -1
- package/dist/api/alephium/AlephiumSignMessage.d.ts.map +1 -1
- package/dist/api/alephium/AlephiumSignTransaction.d.ts.map +1 -1
- package/dist/api/algo/AlgoGetAddress.d.ts +1 -0
- package/dist/api/algo/AlgoGetAddress.d.ts.map +1 -1
- package/dist/api/algo/AlgoSignTransaction.d.ts +1 -0
- package/dist/api/algo/AlgoSignTransaction.d.ts.map +1 -1
- package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts +1 -0
- package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
- package/dist/api/aptos/AptosGetAddress.d.ts +1 -0
- package/dist/api/aptos/AptosGetAddress.d.ts.map +1 -1
- package/dist/api/aptos/AptosGetPublicKey.d.ts +1 -0
- package/dist/api/aptos/AptosGetPublicKey.d.ts.map +1 -1
- package/dist/api/aptos/AptosSignInMessage.d.ts +1 -0
- package/dist/api/aptos/AptosSignInMessage.d.ts.map +1 -1
- package/dist/api/aptos/AptosSignMessage.d.ts +1 -0
- package/dist/api/aptos/AptosSignMessage.d.ts.map +1 -1
- package/dist/api/aptos/AptosSignTransaction.d.ts +1 -0
- package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -1
- package/dist/api/benfen/BenfenGetAddress.d.ts.map +1 -1
- package/dist/api/benfen/BenfenGetPublicKey.d.ts.map +1 -1
- package/dist/api/benfen/BenfenSignMessage.d.ts.map +1 -1
- package/dist/api/benfen/BenfenSignTransaction.d.ts.map +1 -1
- package/dist/api/btc/BTCGetAddress.d.ts +1 -0
- package/dist/api/btc/BTCGetAddress.d.ts.map +1 -1
- package/dist/api/btc/BTCGetPublicKey.d.ts +1 -0
- package/dist/api/btc/BTCGetPublicKey.d.ts.map +1 -1
- package/dist/api/btc/BTCSignMessage.d.ts +1 -0
- package/dist/api/btc/BTCSignMessage.d.ts.map +1 -1
- package/dist/api/btc/BTCSignPsbt.d.ts +1 -0
- package/dist/api/btc/BTCSignPsbt.d.ts.map +1 -1
- package/dist/api/btc/BTCSignTransaction.d.ts +1 -0
- package/dist/api/btc/BTCSignTransaction.d.ts.map +1 -1
- package/dist/api/btc/BTCVerifyMessage.d.ts +1 -0
- package/dist/api/btc/BTCVerifyMessage.d.ts.map +1 -1
- package/dist/api/btc/helpers/versionLimit.d.ts +2 -0
- package/dist/api/btc/helpers/versionLimit.d.ts.map +1 -1
- package/dist/api/cardano/CardanoGetAddress.d.ts +1 -0
- package/dist/api/cardano/CardanoGetAddress.d.ts.map +1 -1
- package/dist/api/cardano/CardanoGetPublicKey.d.ts +1 -0
- package/dist/api/cardano/CardanoGetPublicKey.d.ts.map +1 -1
- package/dist/api/cardano/CardanoSignMessage.d.ts +1 -0
- package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -1
- package/dist/api/cardano/CardanoSignTransaction.d.ts +1 -0
- package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -1
- package/dist/api/conflux/ConfluxGetAddress.d.ts +2 -0
- package/dist/api/conflux/ConfluxGetAddress.d.ts.map +1 -1
- package/dist/api/conflux/ConfluxSignMessage.d.ts +2 -0
- package/dist/api/conflux/ConfluxSignMessage.d.ts.map +1 -1
- package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts +2 -0
- package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts.map +1 -1
- package/dist/api/conflux/ConfluxSignTransaction.d.ts +2 -0
- package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -1
- package/dist/api/cosmos/CosmosGetAddress.d.ts +1 -0
- package/dist/api/cosmos/CosmosGetAddress.d.ts.map +1 -1
- package/dist/api/cosmos/CosmosGetPublicKey.d.ts +1 -0
- package/dist/api/cosmos/CosmosGetPublicKey.d.ts.map +1 -1
- package/dist/api/cosmos/CosmosSignTransaction.d.ts +1 -0
- package/dist/api/cosmos/CosmosSignTransaction.d.ts.map +1 -1
- package/dist/api/device/DeviceCancel.d.ts +1 -0
- package/dist/api/device/DeviceCancel.d.ts.map +1 -1
- package/dist/api/device/DeviceChangePin.d.ts +1 -0
- package/dist/api/device/DeviceChangePin.d.ts.map +1 -1
- package/dist/api/device/DeviceFullyUploadResource.d.ts +1 -2
- package/dist/api/device/DeviceFullyUploadResource.d.ts.map +1 -1
- package/dist/api/device/DeviceLock.d.ts +1 -0
- package/dist/api/device/DeviceLock.d.ts.map +1 -1
- package/dist/api/device/DeviceRebootToBoardloader.d.ts +1 -0
- package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -1
- package/dist/api/device/DeviceRebootToBootloader.d.ts +1 -0
- package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -1
- package/dist/api/device/DeviceSettings.d.ts +1 -0
- package/dist/api/device/DeviceSettings.d.ts.map +1 -1
- package/dist/api/device/DeviceSupportFeatures.d.ts +1 -0
- package/dist/api/device/DeviceSupportFeatures.d.ts.map +1 -1
- package/dist/api/device/DeviceUnlock.d.ts +3 -2
- package/dist/api/device/DeviceUnlock.d.ts.map +1 -1
- package/dist/api/device/DeviceUpdateBootloader.d.ts +5 -1
- package/dist/api/device/DeviceUpdateBootloader.d.ts.map +1 -1
- package/dist/api/device/DeviceWipe.d.ts +1 -0
- package/dist/api/device/DeviceWipe.d.ts.map +1 -1
- package/dist/api/device/PreInitialize.d.ts +1 -0
- package/dist/api/device/PreInitialize.d.ts.map +1 -1
- package/dist/api/dynex/DnxGetAddress.d.ts.map +1 -1
- package/dist/api/dynex/DnxSignTransaction.d.ts.map +1 -1
- package/dist/api/evm/EVMGetAddress.d.ts +1 -0
- package/dist/api/evm/EVMGetAddress.d.ts.map +1 -1
- package/dist/api/evm/EVMGetPublicKey.d.ts +1 -0
- package/dist/api/evm/EVMGetPublicKey.d.ts.map +1 -1
- package/dist/api/evm/EVMSignMessage.d.ts +1 -0
- package/dist/api/evm/EVMSignMessage.d.ts.map +1 -1
- package/dist/api/evm/EVMSignMessageEIP712.d.ts.map +1 -1
- package/dist/api/evm/EVMSignTransaction.d.ts +1 -0
- package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -1
- package/dist/api/evm/EVMSignTypedData.d.ts +1 -0
- package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
- package/dist/api/evm/EVMVerifyMessage.d.ts +1 -0
- package/dist/api/evm/EVMVerifyMessage.d.ts.map +1 -1
- package/dist/api/evm/protocol.d.ts +3 -0
- package/dist/api/evm/protocol.d.ts.map +1 -0
- package/dist/api/filecoin/FilecoinGetAddress.d.ts +1 -0
- package/dist/api/filecoin/FilecoinGetAddress.d.ts.map +1 -1
- package/dist/api/filecoin/FilecoinSignTransaction.d.ts +1 -0
- package/dist/api/filecoin/FilecoinSignTransaction.d.ts.map +1 -1
- package/dist/api/firmware/FirmwareArtifactSource.d.ts +25 -0
- package/dist/api/firmware/FirmwareArtifactSource.d.ts.map +1 -0
- package/dist/api/firmware/FirmwareHostBinding.d.ts +6 -0
- package/dist/api/firmware/FirmwareHostBinding.d.ts.map +1 -0
- package/dist/api/firmware/FirmwarePreparationError.d.ts +3 -0
- package/dist/api/firmware/FirmwarePreparationError.d.ts.map +1 -0
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +12 -3
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
- package/dist/api/firmware/FirmwareUpdateCapabilities.d.ts +3 -0
- package/dist/api/firmware/FirmwareUpdateCapabilities.d.ts.map +1 -0
- package/dist/api/firmware/FirmwareUpdatePlan.d.ts +25 -0
- package/dist/api/firmware/FirmwareUpdatePlan.d.ts.map +1 -0
- package/dist/api/firmware/FirmwareUpdatePreparedPlan.d.ts +32 -0
- package/dist/api/firmware/FirmwareUpdatePreparedPlan.d.ts.map +1 -0
- package/dist/api/firmware/getBinary.d.ts +15 -4
- package/dist/api/firmware/getBinary.d.ts.map +1 -1
- package/dist/api/firmware/protocolV2Release.d.ts +33 -0
- package/dist/api/firmware/protocolV2Release.d.ts.map +1 -0
- package/dist/api/firmware/updateBootloader.d.ts +2 -0
- package/dist/api/firmware/updateBootloader.d.ts.map +1 -1
- package/dist/api/firmware/uploadFirmware.d.ts +9 -1
- package/dist/api/firmware/uploadFirmware.d.ts.map +1 -1
- package/dist/api/helpers/filesystemValidation.d.ts +3 -0
- package/dist/api/helpers/filesystemValidation.d.ts.map +1 -1
- package/dist/api/helpers/paramsValidator.d.ts +1 -0
- package/dist/api/helpers/paramsValidator.d.ts.map +1 -1
- package/dist/api/helpers/protocolV2FileWrite.d.ts +43 -0
- package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -0
- package/dist/api/index.d.ts +9 -25
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/kaspa/KaspaGetAddress.d.ts +4 -0
- package/dist/api/kaspa/KaspaGetAddress.d.ts.map +1 -1
- package/dist/api/kaspa/KaspaSignTransaction.d.ts +9 -1
- package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -1
- package/dist/api/kaspa/helpers/TransferSerialize.d.ts.map +1 -1
- package/dist/api/lightning/LnurlAuth.d.ts +0 -4
- package/dist/api/lightning/LnurlAuth.d.ts.map +1 -1
- package/dist/api/near/NearGetAddress.d.ts +1 -0
- package/dist/api/near/NearGetAddress.d.ts.map +1 -1
- package/dist/api/near/NearSignTransaction.d.ts +1 -0
- package/dist/api/near/NearSignTransaction.d.ts.map +1 -1
- package/dist/api/nem/NEMGetAddress.d.ts +1 -0
- package/dist/api/nem/NEMGetAddress.d.ts.map +1 -1
- package/dist/api/nem/NEMSignTransaction.d.ts +1 -0
- package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -1
- package/dist/api/neo/NeoGetAddress.d.ts.map +1 -1
- package/dist/api/neo/NeoSignTransaction.d.ts.map +1 -1
- package/dist/api/nervos/NervosGetAddress.d.ts.map +1 -1
- package/dist/api/nervos/NervosSignTransaction.d.ts.map +1 -1
- package/dist/api/nexa/NexaGetAddress.d.ts.map +1 -1
- package/dist/api/nexa/NexaSignTransaction.d.ts +1 -0
- package/dist/api/nexa/NexaSignTransaction.d.ts.map +1 -1
- package/dist/api/nostr/NostrDecryptMessage.d.ts +1 -0
- package/dist/api/nostr/NostrDecryptMessage.d.ts.map +1 -1
- package/dist/api/nostr/NostrEncryptMessage.d.ts +1 -0
- package/dist/api/nostr/NostrEncryptMessage.d.ts.map +1 -1
- package/dist/api/nostr/NostrGetPublicKey.d.ts +1 -0
- package/dist/api/nostr/NostrGetPublicKey.d.ts.map +1 -1
- package/dist/api/nostr/NostrSignEvent.d.ts +1 -0
- package/dist/api/nostr/NostrSignEvent.d.ts.map +1 -1
- package/dist/api/nostr/NostrSignSchnorr.d.ts +1 -0
- package/dist/api/nostr/NostrSignSchnorr.d.ts.map +1 -1
- package/dist/api/polkadot/PolkadotGetAddress.d.ts +2 -1
- package/dist/api/polkadot/PolkadotGetAddress.d.ts.map +1 -1
- package/dist/api/polkadot/PolkadotSignTransaction.d.ts +1 -0
- package/dist/api/polkadot/PolkadotSignTransaction.d.ts.map +1 -1
- package/dist/api/polkadot/networks.d.ts +1 -1
- package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts +1 -0
- package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts +1 -0
- package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts +1 -0
- package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts +1 -0
- package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +7 -0
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceInfoGet.d.ts +1 -1
- package/dist/api/protocol-v2/DeviceInfoGet.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceReboot.d.ts +1 -0
- package/dist/api/protocol-v2/DeviceReboot.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceStatusGet.d.ts +7 -0
- package/dist/api/protocol-v2/DeviceStatusGet.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceUploadNft.d.ts +31 -0
- package/dist/api/protocol-v2/DeviceUploadNft.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts +27 -0
- package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts.map +1 -0
- package/dist/api/protocol-v2/FilesystemFormat.d.ts +1 -0
- package/dist/api/protocol-v2/FilesystemFormat.d.ts.map +1 -1
- package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts +1 -0
- package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts.map +1 -1
- package/dist/api/protocol-v2/Ping.d.ts +3 -0
- package/dist/api/protocol-v2/Ping.d.ts.map +1 -1
- package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts +1 -0
- package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts.map +1 -1
- package/dist/api/protocol-v2/helpers.d.ts +1 -1
- package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
- package/dist/api/scdo/ScdoGetAddress.d.ts.map +1 -1
- package/dist/api/scdo/ScdoSignMessage.d.ts.map +1 -1
- package/dist/api/scdo/ScdoSignTransaction.d.ts.map +1 -1
- package/dist/api/solana/SolGetAddress.d.ts +1 -0
- package/dist/api/solana/SolGetAddress.d.ts.map +1 -1
- package/dist/api/solana/SolSignMessage.d.ts +2 -1
- package/dist/api/solana/SolSignMessage.d.ts.map +1 -1
- package/dist/api/solana/SolSignOffchainMessage.d.ts +2 -1
- package/dist/api/solana/SolSignOffchainMessage.d.ts.map +1 -1
- package/dist/api/solana/SolSignTransaction.d.ts +3 -2
- package/dist/api/solana/SolSignTransaction.d.ts.map +1 -1
- package/dist/api/starcoin/StarcoinGetAddress.d.ts +1 -0
- package/dist/api/starcoin/StarcoinGetAddress.d.ts.map +1 -1
- package/dist/api/starcoin/StarcoinGetPublicKey.d.ts +1 -0
- package/dist/api/starcoin/StarcoinGetPublicKey.d.ts.map +1 -1
- package/dist/api/starcoin/StarcoinSignMessage.d.ts +1 -0
- package/dist/api/starcoin/StarcoinSignMessage.d.ts.map +1 -1
- package/dist/api/starcoin/StarcoinSignTransaction.d.ts +1 -0
- package/dist/api/starcoin/StarcoinSignTransaction.d.ts.map +1 -1
- package/dist/api/starcoin/StarcoinVerifyMessage.d.ts +1 -0
- package/dist/api/starcoin/StarcoinVerifyMessage.d.ts.map +1 -1
- package/dist/api/stellar/StellarGetAddress.d.ts +1 -2
- package/dist/api/stellar/StellarGetAddress.d.ts.map +1 -1
- package/dist/api/stellar/StellarSignTransaction.d.ts +2 -3
- package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -1
- package/dist/api/sui/SuiGetAddress.d.ts +2 -1
- package/dist/api/sui/SuiGetAddress.d.ts.map +1 -1
- package/dist/api/sui/SuiGetPublicKey.d.ts +2 -1
- package/dist/api/sui/SuiGetPublicKey.d.ts.map +1 -1
- package/dist/api/sui/SuiSignMessage.d.ts +2 -1
- package/dist/api/sui/SuiSignMessage.d.ts.map +1 -1
- package/dist/api/sui/SuiSignTransaction.d.ts +2 -1
- package/dist/api/sui/SuiSignTransaction.d.ts.map +1 -1
- package/dist/api/ton/TonGetAddress.d.ts +2 -1
- package/dist/api/ton/TonGetAddress.d.ts.map +1 -1
- package/dist/api/ton/TonSignData.d.ts +1 -0
- package/dist/api/ton/TonSignData.d.ts.map +1 -1
- package/dist/api/ton/TonSignMessage.d.ts +2 -1
- package/dist/api/ton/TonSignMessage.d.ts.map +1 -1
- package/dist/api/ton/TonSignProof.d.ts +2 -1
- package/dist/api/ton/TonSignProof.d.ts.map +1 -1
- package/dist/api/tron/TronGetAddress.d.ts +1 -0
- package/dist/api/tron/TronGetAddress.d.ts.map +1 -1
- package/dist/api/tron/TronSignMessage.d.ts +6 -1
- package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
- package/dist/api/tron/TronSignTransaction.d.ts +2 -1
- package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
- package/dist/api/utils.d.ts +4 -1
- package/dist/api/utils.d.ts.map +1 -1
- package/dist/api/xrp/XrpGetAddress.d.ts +1 -0
- package/dist/api/xrp/XrpGetAddress.d.ts.map +1 -1
- package/dist/api/xrp/XrpSignTransaction.d.ts +1 -0
- package/dist/api/xrp/XrpSignTransaction.d.ts.map +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/core/RequestQueue.d.ts.map +1 -1
- package/dist/core/deviceEventRegistration.d.ts +13 -0
- package/dist/core/deviceEventRegistration.d.ts.map +1 -0
- package/dist/core/index.d.ts +3 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/uiPromiseRegistry.d.ts +6 -0
- package/dist/core/uiPromiseRegistry.d.ts.map +1 -0
- package/dist/data-manager/DataManager.d.ts +9 -3
- package/dist/data-manager/DataManager.d.ts.map +1 -1
- package/dist/data-manager/TransportManager.d.ts.map +1 -1
- package/dist/data-manager/connectSettings.d.ts.map +1 -1
- package/dist/device/Device.d.ts +72 -17
- package/dist/device/Device.d.ts.map +1 -1
- package/dist/device/DeviceCommands.d.ts +8 -6
- package/dist/device/DeviceCommands.d.ts.map +1 -1
- package/dist/device/DeviceConnector.d.ts +4 -3
- package/dist/device/DeviceConnector.d.ts.map +1 -1
- package/dist/device/DeviceFeaturesState.d.ts +3 -0
- package/dist/device/DeviceFeaturesState.d.ts.map +1 -0
- package/dist/device/DevicePool.d.ts +6 -2
- package/dist/device/DevicePool.d.ts.map +1 -1
- package/dist/device/DeviceStateMapper.d.ts +13 -0
- package/dist/device/DeviceStateMapper.d.ts.map +1 -0
- package/dist/device/DeviceStateProjector.d.ts +7 -0
- package/dist/device/DeviceStateProjector.d.ts.map +1 -0
- package/dist/device/DeviceStateStore.d.ts +21 -0
- package/dist/device/DeviceStateStore.d.ts.map +1 -0
- package/dist/device/DeviceWalletSessionStore.d.ts +27 -0
- package/dist/device/DeviceWalletSessionStore.d.ts.map +1 -0
- package/dist/device/cloneDeviceState.d.ts +2 -0
- package/dist/device/cloneDeviceState.d.ts.map +1 -0
- package/dist/device/deviceIdentity.d.ts +5 -0
- package/dist/device/deviceIdentity.d.ts.map +1 -0
- package/dist/deviceProfile/buildDeviceFeatures.d.ts +9 -3
- package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -1
- package/dist/deviceProfile/index.d.ts +0 -1
- package/dist/deviceProfile/index.d.ts.map +1 -1
- package/dist/deviceProfile/protocolV2DeviceIdentity.d.ts +7 -0
- package/dist/deviceProfile/protocolV2DeviceIdentity.d.ts.map +1 -0
- package/dist/events/device.d.ts +16 -2
- package/dist/events/device.d.ts.map +1 -1
- package/dist/events/logBlockEvent.d.ts +2 -0
- package/dist/events/logBlockEvent.d.ts.map +1 -1
- package/dist/events/ui-promise.d.ts +4 -2
- package/dist/events/ui-promise.d.ts.map +1 -1
- package/dist/events/ui-request.d.ts +50 -4
- package/dist/events/ui-request.d.ts.map +1 -1
- package/dist/events/ui-response.d.ts +10 -2
- package/dist/events/ui-response.d.ts.map +1 -1
- package/dist/index.d.ts +1818 -770
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11157 -4209
- package/dist/inject.d.ts +6 -1
- package/dist/inject.d.ts.map +1 -1
- package/dist/lowLevelInject.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/deviceSession.d.ts +7 -0
- package/dist/protocols/protocol-v2/deviceSession.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/features.d.ts +21 -17
- package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/firmware.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/index.d.ts +3 -2
- package/dist/protocols/protocol-v2/index.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/resources.d.ts +29 -0
- package/dist/protocols/protocol-v2/resources.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts +17 -0
- package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/uiInteraction.d.ts +42 -0
- package/dist/protocols/protocol-v2/uiInteraction.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/unlockPolicy.d.ts +2 -0
- package/dist/protocols/protocol-v2/unlockPolicy.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/unlockPolicyRunner.d.ts +22 -0
- package/dist/protocols/protocol-v2/unlockPolicyRunner.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/walletSession.d.ts +27 -0
- package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -0
- package/dist/topLevelInject.d.ts.map +1 -1
- package/dist/types/api/checkAllFirmwareRelease.d.ts +48 -9
- package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -1
- package/dist/types/api/checkBLEFirmwareRelease.d.ts +2 -13
- package/dist/types/api/checkBLEFirmwareRelease.d.ts.map +1 -1
- package/dist/types/api/checkBootloaderRelease.d.ts +2 -6
- package/dist/types/api/checkBootloaderRelease.d.ts.map +1 -1
- package/dist/types/api/checkFirmwareRelease.d.ts +2 -13
- package/dist/types/api/checkFirmwareRelease.d.ts.map +1 -1
- package/dist/types/api/checkFirmwareTypeAvailable.d.ts +2 -2
- package/dist/types/api/checkFirmwareTypeAvailable.d.ts.map +1 -1
- package/dist/types/api/detectDeviceConnectProtocol.d.ts +4 -0
- package/dist/types/api/detectDeviceConnectProtocol.d.ts.map +1 -0
- package/dist/types/api/deviceSettings.d.ts +11 -2
- package/dist/types/api/deviceSettings.d.ts.map +1 -1
- package/dist/types/api/deviceUnlock.d.ts +6 -2
- package/dist/types/api/deviceUnlock.d.ts.map +1 -1
- package/dist/types/api/deviceUpdateBootloader.d.ts +6 -0
- package/dist/types/api/deviceUpdateBootloader.d.ts.map +1 -1
- package/dist/types/api/export.d.ts +9 -3
- package/dist/types/api/export.d.ts.map +1 -1
- package/dist/types/api/firmwareUpdate.d.ts +76 -1
- package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
- package/dist/types/api/firmwareUpdateCapabilities.d.ts +9 -0
- package/dist/types/api/firmwareUpdateCapabilities.d.ts.map +1 -0
- package/dist/types/api/firmwareUpdatePlan.d.ts +28 -0
- package/dist/types/api/firmwareUpdatePlan.d.ts.map +1 -0
- package/dist/types/api/firmwareUpdatePreparedPlan.d.ts +42 -0
- package/dist/types/api/firmwareUpdatePreparedPlan.d.ts.map +1 -0
- package/dist/types/api/getDeviceState.d.ts +12 -0
- package/dist/types/api/getDeviceState.d.ts.map +1 -0
- package/dist/types/api/getFeatures.d.ts.map +1 -1
- package/dist/types/api/getOnekeyFeatures.d.ts.map +1 -1
- package/dist/types/api/getPassphraseState.d.ts +2 -10
- package/dist/types/api/getPassphraseState.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +34 -31
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/kaspaSignTransaction.d.ts +42 -4
- package/dist/types/api/kaspaSignTransaction.d.ts.map +1 -1
- package/dist/types/api/openWalletSession.d.ts +35 -0
- package/dist/types/api/openWalletSession.d.ts.map +1 -0
- package/dist/types/api/protocolV2.d.ts +18 -84
- package/dist/types/api/protocolV2.d.ts.map +1 -1
- package/dist/types/api/protocolV2ResourceManifest.d.ts +17 -0
- package/dist/types/api/protocolV2ResourceManifest.d.ts.map +1 -0
- package/dist/types/api/sessionCache.d.ts +13 -0
- package/dist/types/api/sessionCache.d.ts.map +1 -0
- package/dist/types/device.d.ts +142 -10
- package/dist/types/device.d.ts.map +1 -1
- package/dist/types/params.d.ts +1 -0
- package/dist/types/params.d.ts.map +1 -1
- package/dist/types/settings.d.ts +69 -22
- package/dist/types/settings.d.ts.map +1 -1
- package/dist/utils/assets.d.ts +2 -1
- package/dist/utils/assets.d.ts.map +1 -1
- package/dist/utils/deviceFeaturesCompat.d.ts +14 -0
- package/dist/utils/deviceFeaturesCompat.d.ts.map +1 -0
- package/dist/utils/deviceFeaturesUtils.d.ts +10 -3
- package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
- package/dist/utils/deviceInfoUtils.d.ts +9 -9
- package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
- package/dist/utils/deviceSettings.d.ts +38 -7
- package/dist/utils/deviceSettings.d.ts.map +1 -1
- package/dist/utils/deviceVersionUtils.d.ts +7 -5
- package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
- package/dist/utils/homescreen.d.ts +4 -0
- package/dist/utils/homescreen.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/networkUtils.d.ts +10 -1
- package/dist/utils/networkUtils.d.ts.map +1 -1
- package/dist/utils/patch.d.ts +1 -1
- package/dist/utils/patch.d.ts.map +1 -1
- package/dist/utils/pro2Nft.d.ts +31 -0
- package/dist/utils/pro2Nft.d.ts.map +1 -0
- package/dist/utils/pro2Wallpaper.d.ts +22 -0
- package/dist/utils/pro2Wallpaper.d.ts.map +1 -0
- package/dist/utils/tracing.d.ts.map +1 -1
- package/dist/utils/uiProgressThrottle.d.ts +3 -0
- package/dist/utils/uiProgressThrottle.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/api/BaseMethod.ts +53 -20
- package/src/api/CheckAllFirmwareRelease.ts +380 -4
- package/src/api/CheckBLEFirmwareRelease.ts +41 -3
- package/src/api/CheckBootloaderRelease.ts +41 -3
- package/src/api/CheckFirmwareRelease.ts +38 -5
- package/src/api/CipherKeyValue.ts +4 -0
- package/src/api/ClearSessionCache.ts +32 -0
- package/src/api/DetectDeviceConnectProtocol.ts +18 -0
- package/src/api/DirList.ts +9 -4
- package/src/api/DirMake.ts +7 -4
- package/src/api/DirRemove.ts +7 -4
- package/src/api/FileDelete.ts +7 -4
- package/src/api/FileRead.ts +15 -9
- package/src/api/FileWrite.ts +26 -181
- package/src/api/FirmwareUpdate.ts +30 -15
- package/src/api/FirmwareUpdateV2.ts +385 -115
- package/src/api/FirmwareUpdateV3.ts +274 -71
- package/src/api/FirmwareUpdateV4.ts +1465 -660
- package/src/api/GetDeviceState.ts +59 -0
- package/src/api/GetFeatures.ts +6 -4
- package/src/api/GetOnekeyFeatures.ts +1 -75
- package/src/api/GetPassphraseState.ts +36 -21
- package/src/api/OpenWalletSession.ts +268 -0
- package/src/api/PathInfo.ts +9 -4
- package/src/api/PromptWebDeviceAccess.ts +2 -7
- package/src/api/SearchDevices.ts +31 -4
- package/src/api/UploadPortfolio.ts +58 -0
- package/src/api/alephium/AlephiumGetAddress.ts +0 -4
- package/src/api/alephium/AlephiumSignMessage.ts +0 -4
- package/src/api/alephium/AlephiumSignTransaction.ts +2 -6
- package/src/api/algo/AlgoGetAddress.ts +4 -0
- package/src/api/algo/AlgoSignTransaction.ts +4 -0
- package/src/api/allnetwork/AllNetworkGetAddress.ts +21 -21
- package/src/api/allnetwork/AllNetworkGetAddressBase.ts +45 -32
- package/src/api/aptos/AptosGetAddress.ts +4 -0
- package/src/api/aptos/AptosGetPublicKey.ts +4 -0
- package/src/api/aptos/AptosSignInMessage.ts +4 -0
- package/src/api/aptos/AptosSignMessage.ts +4 -0
- package/src/api/aptos/AptosSignTransaction.ts +4 -0
- package/src/api/benfen/BenfenGetAddress.ts +11 -7
- package/src/api/benfen/BenfenGetPublicKey.ts +0 -4
- package/src/api/benfen/BenfenSignMessage.ts +0 -4
- package/src/api/benfen/BenfenSignTransaction.ts +0 -4
- package/src/api/btc/BTCGetAddress.ts +8 -1
- package/src/api/btc/BTCGetPublicKey.ts +9 -2
- package/src/api/btc/BTCSignMessage.ts +8 -1
- package/src/api/btc/BTCSignPsbt.ts +4 -0
- package/src/api/btc/BTCSignTransaction.ts +8 -1
- package/src/api/btc/BTCVerifyMessage.ts +8 -1
- package/src/api/btc/helpers/versionLimit.ts +7 -4
- package/src/api/cardano/CardanoGetAddress.ts +4 -0
- package/src/api/cardano/CardanoGetPublicKey.ts +4 -0
- package/src/api/cardano/CardanoSignMessage.ts +5 -1
- package/src/api/cardano/CardanoSignTransaction.ts +5 -1
- package/src/api/conflux/ConfluxGetAddress.ts +6 -0
- package/src/api/conflux/ConfluxSignMessage.ts +6 -0
- package/src/api/conflux/ConfluxSignMessageCIP23.ts +6 -0
- package/src/api/conflux/ConfluxSignTransaction.ts +8 -5
- package/src/api/cosmos/CosmosGetAddress.ts +4 -0
- package/src/api/cosmos/CosmosGetPublicKey.ts +4 -0
- package/src/api/cosmos/CosmosSignTransaction.ts +4 -0
- package/src/api/device/DeviceCancel.ts +5 -0
- package/src/api/device/DeviceChangePin.ts +28 -0
- package/src/api/device/DeviceFullyUploadResource.ts +4 -5
- package/src/api/device/DeviceLock.ts +5 -0
- package/src/api/device/DeviceRebootToBoardloader.ts +5 -0
- package/src/api/device/DeviceRebootToBootloader.ts +5 -0
- package/src/api/device/DeviceSettings.ts +195 -1
- package/src/api/device/DeviceSupportFeatures.ts +4 -0
- package/src/api/device/DeviceUnlock.ts +21 -3
- package/src/api/device/DeviceUpdateBootloader.ts +126 -8
- package/src/api/device/DeviceWipe.ts +25 -0
- package/src/api/device/PreInitialize.ts +4 -0
- package/src/api/dynex/DnxGetAddress.ts +0 -6
- package/src/api/dynex/DnxSignTransaction.ts +0 -6
- package/src/api/evm/EVMGetAddress.ts +6 -2
- package/src/api/evm/EVMGetPublicKey.ts +6 -2
- package/src/api/evm/EVMSignMessage.ts +6 -2
- package/src/api/evm/EVMSignMessageEIP712.ts +1 -11
- package/src/api/evm/EVMSignTransaction.ts +6 -2
- package/src/api/evm/EVMSignTypedData.ts +42 -50
- package/src/api/evm/EVMVerifyMessage.ts +6 -2
- package/src/api/evm/legacyV1/getAddress.ts +2 -2
- package/src/api/evm/legacyV1/getPublicKey.ts +2 -2
- package/src/api/evm/legacyV1/signMessage.ts +2 -2
- package/src/api/evm/legacyV1/signTypedData.ts +2 -2
- package/src/api/evm/legacyV1/signTypedHash.ts +2 -2
- package/src/api/evm/legacyV1/verifyMessage.ts +2 -2
- package/src/api/evm/protocol.ts +6 -0
- package/src/api/filecoin/FilecoinGetAddress.ts +4 -0
- package/src/api/filecoin/FilecoinSignTransaction.ts +4 -0
- package/src/api/firmware/FirmwareArtifactSource.ts +278 -0
- package/src/api/firmware/FirmwareHostBinding.ts +100 -0
- package/src/api/firmware/FirmwarePreparationError.ts +12 -0
- package/src/api/firmware/FirmwareUpdateBaseMethod.ts +102 -16
- package/src/api/firmware/FirmwareUpdateCapabilities.ts +9 -0
- package/src/api/firmware/FirmwareUpdatePlan.ts +772 -0
- package/src/api/firmware/FirmwareUpdatePreparedPlan.ts +449 -0
- package/src/api/firmware/getBinary.ts +8 -3
- package/src/api/firmware/protocolV2Release.ts +166 -0
- package/src/api/firmware/updateBootloader.ts +19 -4
- package/src/api/firmware/uploadFirmware.ts +157 -26
- package/src/api/helpers/batchGetPublickeys.ts +2 -2
- package/src/api/helpers/filesystemValidation.ts +61 -0
- package/src/api/helpers/paramsValidator.ts +1 -1
- package/src/api/helpers/protocolV2FileWrite.ts +392 -0
- package/src/api/index.ts +10 -26
- package/src/api/kaspa/KaspaGetAddress.ts +7 -0
- package/src/api/kaspa/KaspaSignTransaction.ts +369 -29
- package/src/api/kaspa/helpers/TransferSerialize.ts +17 -7
- package/src/api/lightning/LnurlAuth.ts +0 -4
- package/src/api/near/NearGetAddress.ts +4 -0
- package/src/api/near/NearSignTransaction.ts +4 -0
- package/src/api/nem/NEMGetAddress.ts +4 -0
- package/src/api/nem/NEMSignTransaction.ts +4 -0
- package/src/api/neo/NeoGetAddress.ts +0 -4
- package/src/api/neo/NeoSignTransaction.ts +0 -4
- package/src/api/nervos/NervosGetAddress.ts +0 -4
- package/src/api/nervos/NervosSignTransaction.ts +2 -6
- package/src/api/nexa/NexaGetAddress.ts +0 -4
- package/src/api/nexa/NexaSignTransaction.ts +3 -5
- package/src/api/nostr/NostrDecryptMessage.ts +4 -0
- package/src/api/nostr/NostrEncryptMessage.ts +4 -0
- package/src/api/nostr/NostrGetPublicKey.ts +4 -0
- package/src/api/nostr/NostrSignEvent.ts +4 -0
- package/src/api/nostr/NostrSignSchnorr.ts +4 -0
- package/src/api/polkadot/PolkadotGetAddress.ts +4 -0
- package/src/api/polkadot/PolkadotSignTransaction.ts +4 -0
- package/src/api/polkadot/networks.ts +3 -3
- package/src/api/protocol-v2/DeviceFactoryInfoGet.ts +5 -2
- package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +5 -2
- package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +8 -5
- package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +10 -6
- package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +21 -0
- package/src/api/protocol-v2/DeviceInfoGet.ts +8 -15
- package/src/api/protocol-v2/DeviceReboot.ts +7 -3
- package/src/api/protocol-v2/DeviceStatusGet.ts +19 -0
- package/src/api/protocol-v2/DeviceUploadNft.ts +197 -0
- package/src/api/protocol-v2/DeviceUploadWallpaper.ts +134 -0
- package/src/api/protocol-v2/FilesystemFormat.ts +9 -3
- package/src/api/protocol-v2/FilesystemPermissionFix.ts +5 -2
- package/src/api/protocol-v2/Ping.ts +37 -3
- package/src/api/protocol-v2/ProtocolInfoRequest.ts +8 -3
- package/src/api/protocol-v2/helpers.ts +17 -17
- package/src/api/scdo/ScdoGetAddress.ts +0 -4
- package/src/api/scdo/ScdoSignMessage.ts +0 -4
- package/src/api/scdo/ScdoSignTransaction.ts +0 -4
- package/src/api/solana/SolGetAddress.ts +4 -0
- package/src/api/solana/SolSignMessage.ts +5 -1
- package/src/api/solana/SolSignOffchainMessage.ts +5 -1
- package/src/api/solana/SolSignTransaction.ts +6 -2
- package/src/api/starcoin/StarcoinGetAddress.ts +4 -0
- package/src/api/starcoin/StarcoinGetPublicKey.ts +4 -0
- package/src/api/starcoin/StarcoinSignMessage.ts +4 -0
- package/src/api/starcoin/StarcoinSignTransaction.ts +4 -0
- package/src/api/starcoin/StarcoinVerifyMessage.ts +4 -0
- package/src/api/stellar/StellarGetAddress.ts +1 -10
- package/src/api/stellar/StellarSignTransaction.ts +1 -14
- package/src/api/sui/SuiGetAddress.ts +5 -1
- package/src/api/sui/SuiGetPublicKey.ts +5 -1
- package/src/api/sui/SuiSignMessage.ts +5 -1
- package/src/api/sui/SuiSignTransaction.ts +5 -1
- package/src/api/ton/TonGetAddress.ts +5 -1
- package/src/api/ton/TonSignData.ts +5 -1
- package/src/api/ton/TonSignMessage.ts +5 -1
- package/src/api/ton/TonSignProof.ts +5 -1
- package/src/api/tron/TronGetAddress.ts +4 -0
- package/src/api/tron/TronSignMessage.ts +19 -8
- package/src/api/tron/TronSignTransaction.ts +5 -1
- package/src/api/utils.ts +32 -3
- package/src/api/xrp/XrpGetAddress.ts +4 -0
- package/src/api/xrp/XrpSignTransaction.ts +5 -1
- package/src/constants/index.ts +1 -4
- package/src/core/RequestQueue.ts +1 -0
- package/src/core/deviceEventRegistration.ts +27 -0
- package/src/core/index.ts +381 -152
- package/src/core/uiPromiseRegistry.ts +63 -0
- package/src/data/messages/messages-protocol-v2.json +1138 -441
- package/src/data/messages/messages.json +286 -1
- package/src/data-manager/DataManager.ts +132 -41
- package/src/data-manager/TransportManager.ts +7 -1
- package/src/data-manager/connectSettings.ts +11 -0
- package/src/device/Device.ts +898 -296
- package/src/device/DeviceCommands.ts +193 -158
- package/src/device/DeviceConnector.ts +44 -21
- package/src/device/DeviceFeaturesState.ts +25 -0
- package/src/device/DevicePool.ts +101 -23
- package/src/device/DeviceStateMapper.ts +416 -0
- package/src/device/DeviceStateProjector.ts +152 -0
- package/src/device/DeviceStateStore.ts +232 -0
- package/src/device/DeviceWalletSessionStore.ts +144 -0
- package/src/device/cloneDeviceState.ts +39 -0
- package/src/device/deviceIdentity.ts +18 -0
- package/src/deviceProfile/buildDeviceFeatures.ts +223 -189
- package/src/deviceProfile/index.ts +0 -1
- package/src/deviceProfile/protocolV2DeviceIdentity.ts +35 -0
- package/src/events/device.ts +22 -1
- package/src/events/logBlockEvent.ts +80 -2
- package/src/events/ui-promise.ts +4 -2
- package/src/events/ui-request.ts +61 -4
- package/src/events/ui-response.ts +12 -2
- package/src/index.ts +12 -0
- package/src/inject.ts +97 -45
- package/src/lowLevelInject.ts +11 -4
- package/src/protocols/protocol-v2/deviceSession.ts +24 -0
- package/src/protocols/protocol-v2/features.ts +100 -33
- package/src/protocols/protocol-v2/firmware.ts +3 -1
- package/src/protocols/protocol-v2/index.ts +8 -1
- package/src/protocols/protocol-v2/resources.ts +257 -0
- package/src/protocols/protocol-v2/settingsUnlockPolicy.ts +65 -0
- package/src/protocols/protocol-v2/uiInteraction.ts +250 -0
- package/src/protocols/protocol-v2/unlockPolicy.ts +1 -0
- package/src/protocols/protocol-v2/unlockPolicyRunner.ts +131 -0
- package/src/protocols/protocol-v2/walletSession.ts +463 -0
- package/src/topLevelInject.ts +11 -4
- package/src/types/api/checkAllFirmwareRelease.ts +72 -9
- package/src/types/api/checkBLEFirmwareRelease.ts +4 -13
- package/src/types/api/checkBootloaderRelease.ts +2 -6
- package/src/types/api/checkFirmwareRelease.ts +2 -13
- package/src/types/api/checkFirmwareTypeAvailable.ts +2 -2
- package/src/types/api/detectDeviceConnectProtocol.ts +6 -0
- package/src/types/api/deviceSettings.ts +26 -2
- package/src/types/api/deviceUnlock.ts +13 -2
- package/src/types/api/deviceUpdateBootloader.ts +6 -0
- package/src/types/api/export.ts +37 -1
- package/src/types/api/firmwareUpdate.ts +101 -5
- package/src/types/api/firmwareUpdateCapabilities.ts +9 -0
- package/src/types/api/firmwareUpdatePlan.ts +38 -0
- package/src/types/api/firmwareUpdatePreparedPlan.ts +53 -0
- package/src/types/api/getDeviceState.ts +19 -0
- package/src/types/api/getFeatures.ts +3 -0
- package/src/types/api/getOnekeyFeatures.ts +3 -0
- package/src/types/api/getPassphraseState.ts +9 -11
- package/src/types/api/index.ts +54 -64
- package/src/types/api/kaspaSignTransaction.ts +60 -4
- package/src/types/api/openWalletSession.ts +54 -0
- package/src/types/api/protocolV2.ts +33 -141
- package/src/types/api/protocolV2ResourceManifest.ts +19 -0
- package/src/types/api/sessionCache.ts +19 -0
- package/src/types/device.ts +216 -10
- package/src/types/params.ts +9 -2
- package/src/types/settings.ts +86 -24
- package/src/utils/assets.ts +4 -1
- package/src/utils/deviceFeaturesCompat.ts +191 -0
- package/src/utils/deviceFeaturesUtils.ts +65 -47
- package/src/utils/deviceInfoUtils.ts +29 -69
- package/src/utils/deviceSettings.ts +174 -39
- package/src/utils/deviceVersionUtils.ts +25 -44
- package/src/utils/findDefectiveBatchDevice.ts +3 -3
- package/src/utils/homescreen.ts +40 -0
- package/src/utils/index.ts +27 -3
- package/src/utils/networkUtils.ts +274 -16
- package/src/utils/pro2Nft.ts +142 -0
- package/src/utils/pro2Wallpaper.ts +130 -0
- package/src/utils/tracing.ts +3 -1
- package/src/utils/uiProgressThrottle.ts +63 -0
- package/tsconfig.type-tests.json +12 -0
- package/dist/api/GetDeviceInfo.d.ts +0 -9
- package/dist/api/GetDeviceInfo.d.ts.map +0 -1
- package/dist/api/firmware/progressThrottle.d.ts +0 -3
- package/dist/api/firmware/progressThrottle.d.ts.map +0 -1
- package/dist/api/protocol-v2/FilesystemDiskControl.d.ts +0 -13
- package/dist/api/protocol-v2/FilesystemDiskControl.d.ts.map +0 -1
- package/dist/deviceProfile/buildDeviceProfile.d.ts +0 -21
- package/dist/deviceProfile/buildDeviceProfile.d.ts.map +0 -1
- package/dist/types/api/getDeviceInfo.d.ts +0 -87
- package/dist/types/api/getDeviceInfo.d.ts.map +0 -1
- package/src/api/GetDeviceInfo.ts +0 -145
- package/src/api/firmware/progressThrottle.ts +0 -44
- package/src/api/protocol-v2/FilesystemDiskControl.ts +0 -50
- package/src/deviceProfile/buildDeviceProfile.ts +0 -352
- 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,
|
|
@@ -107,8 +105,6 @@
|
|
|
107
105
|
"MessageType_FirmwareHash": 89,
|
|
108
106
|
"MessageType_UnlockPath": 93,
|
|
109
107
|
"MessageType_UnlockedPathRequest": 94,
|
|
110
|
-
"MessageType_UnLockDevice": 10030,
|
|
111
|
-
"MessageType_UnLockDeviceResponse": 10031,
|
|
112
108
|
"MessageType_SetU2FCounter": 63,
|
|
113
109
|
"MessageType_GetNextU2FCounter": 80,
|
|
114
110
|
"MessageType_NextU2FCounter": 81,
|
|
@@ -144,20 +140,6 @@
|
|
|
144
140
|
"MessageType_CosiSignature": 74,
|
|
145
141
|
"MessageType_BatchGetPublickeys": 10016,
|
|
146
142
|
"MessageType_EcdsaPublicKeys": 10017,
|
|
147
|
-
"MessageType_DebugLinkDecision": 100,
|
|
148
|
-
"MessageType_DebugLinkGetState": 101,
|
|
149
|
-
"MessageType_DebugLinkState": 102,
|
|
150
|
-
"MessageType_DebugLinkStop": 103,
|
|
151
|
-
"MessageType_DebugLinkLog": 104,
|
|
152
|
-
"MessageType_DebugLinkMemoryRead": 110,
|
|
153
|
-
"MessageType_DebugLinkMemory": 111,
|
|
154
|
-
"MessageType_DebugLinkMemoryWrite": 112,
|
|
155
|
-
"MessageType_DebugLinkFlashErase": 113,
|
|
156
|
-
"MessageType_DebugLinkLayout": 9001,
|
|
157
|
-
"MessageType_DebugLinkReseedRandom": 9002,
|
|
158
|
-
"MessageType_DebugLinkRecordScreen": 9003,
|
|
159
|
-
"MessageType_DebugLinkEraseSdCard": 9005,
|
|
160
|
-
"MessageType_DebugLinkWatchLayout": 9006,
|
|
161
143
|
"MessageType_EthereumGetPublicKey": 450,
|
|
162
144
|
"MessageType_EthereumPublicKey": 451,
|
|
163
145
|
"MessageType_EthereumGetAddress": 56,
|
|
@@ -197,6 +179,7 @@
|
|
|
197
179
|
"MessageType_EthereumGnosisSafeTxAck": 20118,
|
|
198
180
|
"MessageType_EthereumGnosisSafeTxRequest": 20119,
|
|
199
181
|
"MessageType_EthereumSignTxEIP7702OneKey": 20120,
|
|
182
|
+
"MessageType_EthereumSignTypedDataQR": 20121,
|
|
200
183
|
"MessageType_NEMGetAddress": 67,
|
|
201
184
|
"MessageType_NEMAddress": 68,
|
|
202
185
|
"MessageType_NEMSignTx": 69,
|
|
@@ -420,13 +403,6 @@
|
|
|
420
403
|
"MessageType_TonSignProof": 11905,
|
|
421
404
|
"MessageType_TonSignedProof": 11906,
|
|
422
405
|
"MessageType_TonTxAck": 11907,
|
|
423
|
-
"MessageType_ScdoGetAddress": 12001,
|
|
424
|
-
"MessageType_ScdoAddress": 12002,
|
|
425
|
-
"MessageType_ScdoSignTx": 12003,
|
|
426
|
-
"MessageType_ScdoSignedTx": 12004,
|
|
427
|
-
"MessageType_ScdoTxAck": 12005,
|
|
428
|
-
"MessageType_ScdoSignMessage": 12006,
|
|
429
|
-
"MessageType_ScdoSignedMessage": 12007,
|
|
430
406
|
"MessageType_AlephiumGetAddress": 12101,
|
|
431
407
|
"MessageType_AlephiumAddress": 12102,
|
|
432
408
|
"MessageType_AlephiumSignTx": 12103,
|
|
@@ -449,11 +425,6 @@
|
|
|
449
425
|
"MessageType_NeoAddress": 12302,
|
|
450
426
|
"MessageType_NeoSignTx": 12303,
|
|
451
427
|
"MessageType_NeoSignedTx": 12304,
|
|
452
|
-
"MessageType_UiviewShowAddressRequest": 30200,
|
|
453
|
-
"MessageType_UiviewShowPublicKeyRequest": 30201,
|
|
454
|
-
"MessageType_UiviewConfirmTxRequest": 30202,
|
|
455
|
-
"MessageType_UiviewConfirmSignMessageRequest": 30203,
|
|
456
|
-
"MessageType_UiviewResponse": 30204,
|
|
457
428
|
"MessageType_DeviceFactoryInfoSet": 60000,
|
|
458
429
|
"MessageType_DeviceFactoryInfoGet": 60001,
|
|
459
430
|
"MessageType_DeviceFactoryInfo": 60002,
|
|
@@ -468,16 +439,17 @@
|
|
|
468
439
|
"MessageType_DeviceSettings": 60410,
|
|
469
440
|
"MessageType_DeviceSettingsGet": 60411,
|
|
470
441
|
"MessageType_DeviceSettingsSet": 60412,
|
|
442
|
+
"MessageType_DeviceSettingsPageShow": 60413,
|
|
471
443
|
"MessageType_DeviceCertificate": 60420,
|
|
472
444
|
"MessageType_DeviceCertificateWrite": 60421,
|
|
473
445
|
"MessageType_DeviceCertificateRead": 60422,
|
|
474
446
|
"MessageType_DeviceCertificateSignature": 60423,
|
|
475
447
|
"MessageType_DeviceCertificateSign": 60424,
|
|
476
|
-
"
|
|
477
|
-
"MessageType_GetWallpaper": 60431,
|
|
478
|
-
"MessageType_Wallpaper": 60432,
|
|
448
|
+
"MessageType_DeviceMiscUsbMscControl": 60440,
|
|
479
449
|
"MessageType_DeviceInfoGet": 60600,
|
|
480
450
|
"MessageType_DeviceInfo": 60601,
|
|
451
|
+
"MessageType_DeviceStatusGet": 60602,
|
|
452
|
+
"MessageType_DeviceStatus": 60603,
|
|
481
453
|
"MessageType_FilesystemPermissionFix": 60800,
|
|
482
454
|
"MessageType_FilesystemPathInfo": 60801,
|
|
483
455
|
"MessageType_FilesystemPathInfoQuery": 60802,
|
|
@@ -492,7 +464,15 @@
|
|
|
492
464
|
"MessageType_FilesystemFormat": 60811,
|
|
493
465
|
"MessageType_DeviceFirmwareUpdateRequest": 61000,
|
|
494
466
|
"MessageType_DeviceFirmwareUpdateStatusGet": 61001,
|
|
495
|
-
"MessageType_DeviceFirmwareUpdateStatus": 61002
|
|
467
|
+
"MessageType_DeviceFirmwareUpdateStatus": 61002,
|
|
468
|
+
"MessageType_DeviceSessionGet": 61200,
|
|
469
|
+
"MessageType_DeviceSession": 61201,
|
|
470
|
+
"MessageType_DeviceSessionAskPin": 61202,
|
|
471
|
+
"MessageType_DeviceSessionAskPassphrase": 61203,
|
|
472
|
+
"MessageType_PortfolioUpdate": 61400,
|
|
473
|
+
"MessageType_NftUpdate": 61500,
|
|
474
|
+
"MessageType_OnboardingStatusGet": 61600,
|
|
475
|
+
"MessageType_OnboardingStatus": 61601
|
|
496
476
|
},
|
|
497
477
|
"reserved": [
|
|
498
478
|
[90, 92],
|
|
@@ -5395,6 +5375,37 @@
|
|
|
5395
5375
|
}
|
|
5396
5376
|
}
|
|
5397
5377
|
},
|
|
5378
|
+
"EthereumSignTypedDataQR": {
|
|
5379
|
+
"fields": {
|
|
5380
|
+
"address_n": {
|
|
5381
|
+
"rule": "repeated",
|
|
5382
|
+
"type": "uint32",
|
|
5383
|
+
"id": 1,
|
|
5384
|
+
"options": {
|
|
5385
|
+
"packed": false
|
|
5386
|
+
}
|
|
5387
|
+
},
|
|
5388
|
+
"json_data": {
|
|
5389
|
+
"type": "bytes",
|
|
5390
|
+
"id": 2
|
|
5391
|
+
},
|
|
5392
|
+
"chain_id": {
|
|
5393
|
+
"type": "uint64",
|
|
5394
|
+
"id": 3
|
|
5395
|
+
},
|
|
5396
|
+
"metamask_v4_compat": {
|
|
5397
|
+
"type": "bool",
|
|
5398
|
+
"id": 4,
|
|
5399
|
+
"options": {
|
|
5400
|
+
"default": true
|
|
5401
|
+
}
|
|
5402
|
+
},
|
|
5403
|
+
"request_id": {
|
|
5404
|
+
"type": "bytes",
|
|
5405
|
+
"id": 5
|
|
5406
|
+
}
|
|
5407
|
+
}
|
|
5408
|
+
},
|
|
5398
5409
|
"EthereumGetPublicKeyOneKey": {
|
|
5399
5410
|
"fields": {
|
|
5400
5411
|
"address_n": {
|
|
@@ -5920,30 +5931,6 @@
|
|
|
5920
5931
|
}
|
|
5921
5932
|
}
|
|
5922
5933
|
},
|
|
5923
|
-
"InternalMyAddressRequest": {
|
|
5924
|
-
"fields": {
|
|
5925
|
-
"coin_type": {
|
|
5926
|
-
"rule": "required",
|
|
5927
|
-
"type": "uint32",
|
|
5928
|
-
"id": 1
|
|
5929
|
-
},
|
|
5930
|
-
"chain_id": {
|
|
5931
|
-
"rule": "required",
|
|
5932
|
-
"type": "uint32",
|
|
5933
|
-
"id": 2
|
|
5934
|
-
},
|
|
5935
|
-
"account_index": {
|
|
5936
|
-
"rule": "required",
|
|
5937
|
-
"type": "uint32",
|
|
5938
|
-
"id": 3
|
|
5939
|
-
},
|
|
5940
|
-
"derive_type": {
|
|
5941
|
-
"rule": "required",
|
|
5942
|
-
"type": "uint32",
|
|
5943
|
-
"id": 4
|
|
5944
|
-
}
|
|
5945
|
-
}
|
|
5946
|
-
},
|
|
5947
5934
|
"KaspaGetAddress": {
|
|
5948
5935
|
"fields": {
|
|
5949
5936
|
"address_n": {
|
|
@@ -6121,7 +6108,7 @@
|
|
|
6121
6108
|
"PromptTemporarily": 2
|
|
6122
6109
|
}
|
|
6123
6110
|
},
|
|
6124
|
-
"
|
|
6111
|
+
"Initialize": {
|
|
6125
6112
|
"fields": {
|
|
6126
6113
|
"session_id": {
|
|
6127
6114
|
"type": "bytes",
|
|
@@ -6137,10 +6124,21 @@
|
|
|
6137
6124
|
"derive_cardano": {
|
|
6138
6125
|
"type": "bool",
|
|
6139
6126
|
"id": 3
|
|
6127
|
+
},
|
|
6128
|
+
"passphrase_state": {
|
|
6129
|
+
"type": "string",
|
|
6130
|
+
"id": 8000
|
|
6131
|
+
},
|
|
6132
|
+
"is_contains_attach": {
|
|
6133
|
+
"type": "bool",
|
|
6134
|
+
"id": 8001
|
|
6140
6135
|
}
|
|
6141
6136
|
}
|
|
6142
6137
|
},
|
|
6143
|
-
"
|
|
6138
|
+
"GetFeatures": {
|
|
6139
|
+
"fields": {}
|
|
6140
|
+
},
|
|
6141
|
+
"OnekeyGetFeatures": {
|
|
6144
6142
|
"fields": {}
|
|
6145
6143
|
},
|
|
6146
6144
|
"OneKeyDeviceType": {
|
|
@@ -6164,220 +6162,602 @@
|
|
|
6164
6162
|
"APP": 1
|
|
6165
6163
|
}
|
|
6166
6164
|
},
|
|
6167
|
-
"
|
|
6165
|
+
"Features": {
|
|
6168
6166
|
"fields": {
|
|
6169
|
-
"
|
|
6170
|
-
"type": "
|
|
6167
|
+
"vendor": {
|
|
6168
|
+
"type": "string",
|
|
6171
6169
|
"id": 1
|
|
6172
6170
|
},
|
|
6173
|
-
"
|
|
6174
|
-
"
|
|
6171
|
+
"major_version": {
|
|
6172
|
+
"rule": "required",
|
|
6173
|
+
"type": "uint32",
|
|
6175
6174
|
"id": 2
|
|
6176
6175
|
},
|
|
6177
|
-
"
|
|
6178
|
-
"
|
|
6176
|
+
"minor_version": {
|
|
6177
|
+
"rule": "required",
|
|
6178
|
+
"type": "uint32",
|
|
6179
6179
|
"id": 3
|
|
6180
6180
|
},
|
|
6181
|
-
"
|
|
6182
|
-
"
|
|
6181
|
+
"patch_version": {
|
|
6182
|
+
"rule": "required",
|
|
6183
|
+
"type": "uint32",
|
|
6183
6184
|
"id": 4
|
|
6184
6185
|
},
|
|
6185
|
-
"
|
|
6186
|
-
"type": "
|
|
6186
|
+
"bootloader_mode": {
|
|
6187
|
+
"type": "bool",
|
|
6187
6188
|
"id": 5
|
|
6188
6189
|
},
|
|
6189
|
-
"
|
|
6190
|
-
"type": "
|
|
6190
|
+
"device_id": {
|
|
6191
|
+
"type": "string",
|
|
6191
6192
|
"id": 6
|
|
6192
6193
|
},
|
|
6193
|
-
"
|
|
6194
|
-
"type": "
|
|
6194
|
+
"pin_protection": {
|
|
6195
|
+
"type": "bool",
|
|
6195
6196
|
"id": 7
|
|
6196
6197
|
},
|
|
6197
|
-
"
|
|
6198
|
-
"type": "
|
|
6198
|
+
"passphrase_protection": {
|
|
6199
|
+
"type": "bool",
|
|
6199
6200
|
"id": 8
|
|
6200
6201
|
},
|
|
6201
|
-
"
|
|
6202
|
+
"language": {
|
|
6202
6203
|
"type": "string",
|
|
6203
6204
|
"id": 9
|
|
6204
6205
|
},
|
|
6205
|
-
"
|
|
6206
|
+
"label": {
|
|
6206
6207
|
"type": "string",
|
|
6207
6208
|
"id": 10
|
|
6208
6209
|
},
|
|
6209
|
-
"
|
|
6210
|
-
"type": "
|
|
6211
|
-
"id": 11
|
|
6212
|
-
},
|
|
6213
|
-
"onekey_coprocessor_bt_name": {
|
|
6214
|
-
"type": "string",
|
|
6210
|
+
"initialized": {
|
|
6211
|
+
"type": "bool",
|
|
6215
6212
|
"id": 12
|
|
6216
6213
|
},
|
|
6217
|
-
"
|
|
6218
|
-
"type": "
|
|
6214
|
+
"revision": {
|
|
6215
|
+
"type": "bytes",
|
|
6219
6216
|
"id": 13
|
|
6220
6217
|
},
|
|
6221
|
-
"
|
|
6222
|
-
"type": "
|
|
6218
|
+
"bootloader_hash": {
|
|
6219
|
+
"type": "bytes",
|
|
6223
6220
|
"id": 14
|
|
6224
6221
|
},
|
|
6225
|
-
"
|
|
6226
|
-
"type": "
|
|
6222
|
+
"imported": {
|
|
6223
|
+
"type": "bool",
|
|
6227
6224
|
"id": 15
|
|
6228
6225
|
},
|
|
6229
|
-
"
|
|
6230
|
-
"type": "
|
|
6226
|
+
"unlocked": {
|
|
6227
|
+
"type": "bool",
|
|
6231
6228
|
"id": 16
|
|
6232
6229
|
},
|
|
6233
|
-
"
|
|
6234
|
-
"type": "
|
|
6235
|
-
"id": 17
|
|
6230
|
+
"_passphrase_cached": {
|
|
6231
|
+
"type": "bool",
|
|
6232
|
+
"id": 17,
|
|
6233
|
+
"options": {
|
|
6234
|
+
"deprecated": true
|
|
6235
|
+
}
|
|
6236
6236
|
},
|
|
6237
|
-
"
|
|
6238
|
-
"type": "
|
|
6237
|
+
"firmware_present": {
|
|
6238
|
+
"type": "bool",
|
|
6239
6239
|
"id": 18
|
|
6240
6240
|
},
|
|
6241
|
-
"
|
|
6242
|
-
"type": "
|
|
6241
|
+
"needs_backup": {
|
|
6242
|
+
"type": "bool",
|
|
6243
6243
|
"id": 19
|
|
6244
6244
|
},
|
|
6245
|
-
"
|
|
6246
|
-
"type": "
|
|
6245
|
+
"flags": {
|
|
6246
|
+
"type": "uint32",
|
|
6247
6247
|
"id": 20
|
|
6248
6248
|
},
|
|
6249
|
-
"
|
|
6249
|
+
"model": {
|
|
6250
6250
|
"type": "string",
|
|
6251
6251
|
"id": 21
|
|
6252
6252
|
},
|
|
6253
|
-
"
|
|
6254
|
-
"type": "
|
|
6253
|
+
"fw_major": {
|
|
6254
|
+
"type": "uint32",
|
|
6255
6255
|
"id": 22
|
|
6256
6256
|
},
|
|
6257
|
-
"
|
|
6258
|
-
"type": "
|
|
6257
|
+
"fw_minor": {
|
|
6258
|
+
"type": "uint32",
|
|
6259
6259
|
"id": 23
|
|
6260
6260
|
},
|
|
6261
|
-
"
|
|
6262
|
-
"type": "
|
|
6261
|
+
"fw_patch": {
|
|
6262
|
+
"type": "uint32",
|
|
6263
6263
|
"id": 24
|
|
6264
6264
|
},
|
|
6265
|
-
"
|
|
6266
|
-
"type": "
|
|
6265
|
+
"fw_vendor": {
|
|
6266
|
+
"type": "string",
|
|
6267
6267
|
"id": 25
|
|
6268
6268
|
},
|
|
6269
|
-
"
|
|
6270
|
-
"type": "
|
|
6271
|
-
"id": 26
|
|
6272
|
-
},
|
|
6273
|
-
"onekey_se03_hash": {
|
|
6274
|
-
"type": "bytes",
|
|
6269
|
+
"unfinished_backup": {
|
|
6270
|
+
"type": "bool",
|
|
6275
6271
|
"id": 27
|
|
6276
6272
|
},
|
|
6277
|
-
"
|
|
6278
|
-
"type": "
|
|
6273
|
+
"no_backup": {
|
|
6274
|
+
"type": "bool",
|
|
6279
6275
|
"id": 28
|
|
6280
6276
|
},
|
|
6281
|
-
"
|
|
6282
|
-
"type": "
|
|
6277
|
+
"recovery_mode": {
|
|
6278
|
+
"type": "bool",
|
|
6283
6279
|
"id": 29
|
|
6284
6280
|
},
|
|
6285
|
-
"
|
|
6286
|
-
"
|
|
6287
|
-
"
|
|
6281
|
+
"capabilities": {
|
|
6282
|
+
"rule": "repeated",
|
|
6283
|
+
"type": "Capability",
|
|
6284
|
+
"id": 30,
|
|
6285
|
+
"options": {
|
|
6286
|
+
"packed": false
|
|
6287
|
+
}
|
|
6288
6288
|
},
|
|
6289
|
-
"
|
|
6290
|
-
"type": "
|
|
6289
|
+
"backup_type": {
|
|
6290
|
+
"type": "BackupType",
|
|
6291
6291
|
"id": 31
|
|
6292
6292
|
},
|
|
6293
|
-
"
|
|
6294
|
-
"type": "
|
|
6293
|
+
"sd_card_present": {
|
|
6294
|
+
"type": "bool",
|
|
6295
6295
|
"id": 32
|
|
6296
6296
|
},
|
|
6297
|
-
"
|
|
6298
|
-
"type": "
|
|
6297
|
+
"sd_protection": {
|
|
6298
|
+
"type": "bool",
|
|
6299
6299
|
"id": 33
|
|
6300
6300
|
},
|
|
6301
|
-
"
|
|
6302
|
-
"type": "
|
|
6301
|
+
"wipe_code_protection": {
|
|
6302
|
+
"type": "bool",
|
|
6303
6303
|
"id": 34
|
|
6304
6304
|
},
|
|
6305
|
-
"
|
|
6306
|
-
"type": "
|
|
6305
|
+
"session_id": {
|
|
6306
|
+
"type": "bytes",
|
|
6307
6307
|
"id": 35
|
|
6308
6308
|
},
|
|
6309
|
-
"
|
|
6310
|
-
"type": "
|
|
6309
|
+
"passphrase_always_on_device": {
|
|
6310
|
+
"type": "bool",
|
|
6311
6311
|
"id": 36
|
|
6312
6312
|
},
|
|
6313
|
-
"
|
|
6314
|
-
"type": "
|
|
6313
|
+
"safety_checks": {
|
|
6314
|
+
"type": "SafetyCheckLevel",
|
|
6315
6315
|
"id": 37
|
|
6316
6316
|
},
|
|
6317
|
-
"
|
|
6318
|
-
"type": "
|
|
6317
|
+
"auto_lock_delay_ms": {
|
|
6318
|
+
"type": "uint32",
|
|
6319
6319
|
"id": 38
|
|
6320
6320
|
},
|
|
6321
|
-
"
|
|
6322
|
-
"type": "
|
|
6321
|
+
"display_rotation": {
|
|
6322
|
+
"type": "uint32",
|
|
6323
6323
|
"id": 39
|
|
6324
6324
|
},
|
|
6325
|
-
"
|
|
6326
|
-
"type": "
|
|
6325
|
+
"experimental_features": {
|
|
6326
|
+
"type": "bool",
|
|
6327
6327
|
"id": 40
|
|
6328
6328
|
},
|
|
6329
|
-
"
|
|
6329
|
+
"offset": {
|
|
6330
|
+
"type": "uint32",
|
|
6331
|
+
"id": 500
|
|
6332
|
+
},
|
|
6333
|
+
"coprocessor_bt_name": {
|
|
6330
6334
|
"type": "string",
|
|
6331
|
-
"id":
|
|
6335
|
+
"id": 501
|
|
6332
6336
|
},
|
|
6333
|
-
"
|
|
6337
|
+
"coprocessor_version": {
|
|
6334
6338
|
"type": "string",
|
|
6335
|
-
"id":
|
|
6339
|
+
"id": 502
|
|
6336
6340
|
},
|
|
6337
|
-
"
|
|
6341
|
+
"coprocessor_bt_enable": {
|
|
6342
|
+
"type": "bool",
|
|
6343
|
+
"id": 503
|
|
6344
|
+
},
|
|
6345
|
+
"se_enable": {
|
|
6346
|
+
"type": "bool",
|
|
6347
|
+
"id": 504
|
|
6348
|
+
},
|
|
6349
|
+
"se_ver": {
|
|
6338
6350
|
"type": "string",
|
|
6339
|
-
"id":
|
|
6351
|
+
"id": 506
|
|
6340
6352
|
},
|
|
6341
|
-
"
|
|
6353
|
+
"backup_only": {
|
|
6354
|
+
"type": "bool",
|
|
6355
|
+
"id": 507
|
|
6356
|
+
},
|
|
6357
|
+
"onekey_version": {
|
|
6342
6358
|
"type": "string",
|
|
6343
|
-
"id":
|
|
6344
|
-
}
|
|
6345
|
-
|
|
6346
|
-
},
|
|
6347
|
-
"LockDevice": {
|
|
6348
|
-
"fields": {}
|
|
6349
|
-
},
|
|
6350
|
-
"SetBusy": {
|
|
6351
|
-
"fields": {
|
|
6352
|
-
"expiry_ms": {
|
|
6353
|
-
"type": "uint32",
|
|
6354
|
-
"id": 1
|
|
6355
|
-
}
|
|
6356
|
-
}
|
|
6357
|
-
},
|
|
6358
|
-
"ApplySettings": {
|
|
6359
|
-
"fields": {
|
|
6360
|
-
"language": {
|
|
6359
|
+
"id": 508
|
|
6360
|
+
},
|
|
6361
|
+
"onekey_serial": {
|
|
6361
6362
|
"type": "string",
|
|
6362
|
-
"id":
|
|
6363
|
+
"id": 509
|
|
6363
6364
|
},
|
|
6364
|
-
"
|
|
6365
|
+
"bootloader_version": {
|
|
6365
6366
|
"type": "string",
|
|
6366
|
-
"id":
|
|
6367
|
+
"id": 510
|
|
6367
6368
|
},
|
|
6368
|
-
"
|
|
6369
|
-
"type": "
|
|
6370
|
-
"id":
|
|
6369
|
+
"serial_no": {
|
|
6370
|
+
"type": "string",
|
|
6371
|
+
"id": 511
|
|
6371
6372
|
},
|
|
6372
|
-
"
|
|
6373
|
-
"type": "
|
|
6374
|
-
"id":
|
|
6373
|
+
"spi_flash": {
|
|
6374
|
+
"type": "string",
|
|
6375
|
+
"id": 512
|
|
6375
6376
|
},
|
|
6376
|
-
"
|
|
6377
|
+
"initstates": {
|
|
6377
6378
|
"type": "uint32",
|
|
6378
|
-
"id":
|
|
6379
|
-
|
|
6380
|
-
|
|
6379
|
+
"id": 513
|
|
6380
|
+
},
|
|
6381
|
+
"NFT_voucher": {
|
|
6382
|
+
"type": "bytes",
|
|
6383
|
+
"id": 514
|
|
6384
|
+
},
|
|
6385
|
+
"cpu_info": {
|
|
6386
|
+
"type": "string",
|
|
6387
|
+
"id": 515
|
|
6388
|
+
},
|
|
6389
|
+
"pre_firmware": {
|
|
6390
|
+
"type": "string",
|
|
6391
|
+
"id": 516
|
|
6392
|
+
},
|
|
6393
|
+
"coin_switch": {
|
|
6394
|
+
"type": "uint32",
|
|
6395
|
+
"id": 517
|
|
6396
|
+
},
|
|
6397
|
+
"build_id": {
|
|
6398
|
+
"type": "bytes",
|
|
6399
|
+
"id": 518
|
|
6400
|
+
},
|
|
6401
|
+
"romloader_version": {
|
|
6402
|
+
"type": "string",
|
|
6403
|
+
"id": 519
|
|
6404
|
+
},
|
|
6405
|
+
"busy": {
|
|
6406
|
+
"type": "bool",
|
|
6407
|
+
"id": 41
|
|
6408
|
+
},
|
|
6409
|
+
"onekey_device_type": {
|
|
6410
|
+
"type": "OneKeyDeviceType",
|
|
6411
|
+
"id": 600
|
|
6412
|
+
},
|
|
6413
|
+
"onekey_se_type": {
|
|
6414
|
+
"type": "OneKeySeType",
|
|
6415
|
+
"id": 601
|
|
6416
|
+
},
|
|
6417
|
+
"onekey_romloader_version": {
|
|
6418
|
+
"type": "string",
|
|
6419
|
+
"id": 602
|
|
6420
|
+
},
|
|
6421
|
+
"onekey_romloader_hash": {
|
|
6422
|
+
"type": "bytes",
|
|
6423
|
+
"id": 603
|
|
6424
|
+
},
|
|
6425
|
+
"onekey_bootloader_version": {
|
|
6426
|
+
"type": "string",
|
|
6427
|
+
"id": 604
|
|
6428
|
+
},
|
|
6429
|
+
"onekey_bootloader_hash": {
|
|
6430
|
+
"type": "bytes",
|
|
6431
|
+
"id": 605
|
|
6432
|
+
},
|
|
6433
|
+
"onekey_se01_version": {
|
|
6434
|
+
"type": "string",
|
|
6435
|
+
"id": 606
|
|
6436
|
+
},
|
|
6437
|
+
"onekey_se01_hash": {
|
|
6438
|
+
"type": "bytes",
|
|
6439
|
+
"id": 607
|
|
6440
|
+
},
|
|
6441
|
+
"onekey_se01_build_id": {
|
|
6442
|
+
"type": "string",
|
|
6443
|
+
"id": 608
|
|
6444
|
+
},
|
|
6445
|
+
"onekey_firmware_version": {
|
|
6446
|
+
"type": "string",
|
|
6447
|
+
"id": 609
|
|
6448
|
+
},
|
|
6449
|
+
"onekey_firmware_hash": {
|
|
6450
|
+
"type": "bytes",
|
|
6451
|
+
"id": 610
|
|
6452
|
+
},
|
|
6453
|
+
"onekey_firmware_build_id": {
|
|
6454
|
+
"type": "string",
|
|
6455
|
+
"id": 611
|
|
6456
|
+
},
|
|
6457
|
+
"onekey_serial_no": {
|
|
6458
|
+
"type": "string",
|
|
6459
|
+
"id": 612
|
|
6460
|
+
},
|
|
6461
|
+
"onekey_bootloader_build_id": {
|
|
6462
|
+
"type": "string",
|
|
6463
|
+
"id": 613
|
|
6464
|
+
},
|
|
6465
|
+
"onekey_coprocessor_bt_name": {
|
|
6466
|
+
"type": "string",
|
|
6467
|
+
"id": 614
|
|
6468
|
+
},
|
|
6469
|
+
"onekey_coprocessor_version": {
|
|
6470
|
+
"type": "string",
|
|
6471
|
+
"id": 615
|
|
6472
|
+
},
|
|
6473
|
+
"onekey_coprocessor_build_id": {
|
|
6474
|
+
"type": "string",
|
|
6475
|
+
"id": 616
|
|
6476
|
+
},
|
|
6477
|
+
"onekey_coprocessor_hash": {
|
|
6478
|
+
"type": "bytes",
|
|
6479
|
+
"id": 617
|
|
6480
|
+
},
|
|
6481
|
+
"onekey_se02_version": {
|
|
6482
|
+
"type": "string",
|
|
6483
|
+
"id": 618
|
|
6484
|
+
},
|
|
6485
|
+
"onekey_se03_version": {
|
|
6486
|
+
"type": "string",
|
|
6487
|
+
"id": 619
|
|
6488
|
+
},
|
|
6489
|
+
"onekey_se04_version": {
|
|
6490
|
+
"type": "string",
|
|
6491
|
+
"id": 620
|
|
6492
|
+
},
|
|
6493
|
+
"onekey_se01_state": {
|
|
6494
|
+
"type": "OneKeySEState",
|
|
6495
|
+
"id": 621
|
|
6496
|
+
},
|
|
6497
|
+
"onekey_se02_state": {
|
|
6498
|
+
"type": "OneKeySEState",
|
|
6499
|
+
"id": 622
|
|
6500
|
+
},
|
|
6501
|
+
"onekey_se03_state": {
|
|
6502
|
+
"type": "OneKeySEState",
|
|
6503
|
+
"id": 623
|
|
6504
|
+
},
|
|
6505
|
+
"onekey_se04_state": {
|
|
6506
|
+
"type": "OneKeySEState",
|
|
6507
|
+
"id": 624
|
|
6508
|
+
},
|
|
6509
|
+
"attach_to_pin_user": {
|
|
6510
|
+
"type": "bool",
|
|
6511
|
+
"id": 625
|
|
6512
|
+
},
|
|
6513
|
+
"unlocked_attach_pin": {
|
|
6514
|
+
"type": "bool",
|
|
6515
|
+
"id": 626
|
|
6516
|
+
}
|
|
6517
|
+
},
|
|
6518
|
+
"nested": {
|
|
6519
|
+
"Capability": {
|
|
6520
|
+
"options": {
|
|
6521
|
+
"(has_bitcoin_only_values)": true
|
|
6522
|
+
},
|
|
6523
|
+
"values": {
|
|
6524
|
+
"Capability_Bitcoin": 1,
|
|
6525
|
+
"Capability_Bitcoin_like": 2,
|
|
6526
|
+
"Capability_Binance": 3,
|
|
6527
|
+
"Capability_Cardano": 4,
|
|
6528
|
+
"Capability_Crypto": 5,
|
|
6529
|
+
"Capability_EOS": 6,
|
|
6530
|
+
"Capability_Ethereum": 7,
|
|
6531
|
+
"Capability_Lisk": 8,
|
|
6532
|
+
"Capability_Monero": 9,
|
|
6533
|
+
"Capability_NEM": 10,
|
|
6534
|
+
"Capability_Ripple": 11,
|
|
6535
|
+
"Capability_Stellar": 12,
|
|
6536
|
+
"Capability_Tezos": 13,
|
|
6537
|
+
"Capability_U2F": 14,
|
|
6538
|
+
"Capability_Shamir": 15,
|
|
6539
|
+
"Capability_ShamirGroups": 16,
|
|
6540
|
+
"Capability_PassphraseEntry": 17,
|
|
6541
|
+
"Capability_AttachToPin": 18,
|
|
6542
|
+
"Capability_EthereumTypedData": 1000
|
|
6543
|
+
}
|
|
6544
|
+
}
|
|
6545
|
+
}
|
|
6546
|
+
},
|
|
6547
|
+
"OnekeyFeatures": {
|
|
6548
|
+
"fields": {
|
|
6549
|
+
"onekey_device_type": {
|
|
6550
|
+
"type": "OneKeyDeviceType",
|
|
6551
|
+
"id": 1
|
|
6552
|
+
},
|
|
6553
|
+
"onekey_romloader_version": {
|
|
6554
|
+
"type": "string",
|
|
6555
|
+
"id": 2
|
|
6556
|
+
},
|
|
6557
|
+
"onekey_bootloader_version": {
|
|
6558
|
+
"type": "string",
|
|
6559
|
+
"id": 3
|
|
6560
|
+
},
|
|
6561
|
+
"onekey_firmware_version": {
|
|
6562
|
+
"type": "string",
|
|
6563
|
+
"id": 4
|
|
6564
|
+
},
|
|
6565
|
+
"onekey_romloader_hash": {
|
|
6566
|
+
"type": "bytes",
|
|
6567
|
+
"id": 5
|
|
6568
|
+
},
|
|
6569
|
+
"onekey_bootloader_hash": {
|
|
6570
|
+
"type": "bytes",
|
|
6571
|
+
"id": 6
|
|
6572
|
+
},
|
|
6573
|
+
"onekey_firmware_hash": {
|
|
6574
|
+
"type": "bytes",
|
|
6575
|
+
"id": 7
|
|
6576
|
+
},
|
|
6577
|
+
"onekey_romloader_build_id": {
|
|
6578
|
+
"type": "string",
|
|
6579
|
+
"id": 8
|
|
6580
|
+
},
|
|
6581
|
+
"onekey_bootloader_build_id": {
|
|
6582
|
+
"type": "string",
|
|
6583
|
+
"id": 9
|
|
6584
|
+
},
|
|
6585
|
+
"onekey_firmware_build_id": {
|
|
6586
|
+
"type": "string",
|
|
6587
|
+
"id": 10
|
|
6588
|
+
},
|
|
6589
|
+
"onekey_serial_no": {
|
|
6590
|
+
"type": "string",
|
|
6591
|
+
"id": 11
|
|
6592
|
+
},
|
|
6593
|
+
"onekey_coprocessor_bt_name": {
|
|
6594
|
+
"type": "string",
|
|
6595
|
+
"id": 12
|
|
6596
|
+
},
|
|
6597
|
+
"onekey_coprocessor_version": {
|
|
6598
|
+
"type": "string",
|
|
6599
|
+
"id": 13
|
|
6600
|
+
},
|
|
6601
|
+
"onekey_coprocessor_build_id": {
|
|
6602
|
+
"type": "string",
|
|
6603
|
+
"id": 14
|
|
6604
|
+
},
|
|
6605
|
+
"onekey_coprocessor_hash": {
|
|
6606
|
+
"type": "bytes",
|
|
6607
|
+
"id": 15
|
|
6608
|
+
},
|
|
6609
|
+
"onekey_se_type": {
|
|
6610
|
+
"type": "OneKeySeType",
|
|
6611
|
+
"id": 16
|
|
6612
|
+
},
|
|
6613
|
+
"onekey_se01_state": {
|
|
6614
|
+
"type": "OneKeySEState",
|
|
6615
|
+
"id": 17
|
|
6616
|
+
},
|
|
6617
|
+
"onekey_se02_state": {
|
|
6618
|
+
"type": "OneKeySEState",
|
|
6619
|
+
"id": 18
|
|
6620
|
+
},
|
|
6621
|
+
"onekey_se03_state": {
|
|
6622
|
+
"type": "OneKeySEState",
|
|
6623
|
+
"id": 19
|
|
6624
|
+
},
|
|
6625
|
+
"onekey_se04_state": {
|
|
6626
|
+
"type": "OneKeySEState",
|
|
6627
|
+
"id": 20
|
|
6628
|
+
},
|
|
6629
|
+
"onekey_se01_version": {
|
|
6630
|
+
"type": "string",
|
|
6631
|
+
"id": 21
|
|
6632
|
+
},
|
|
6633
|
+
"onekey_se02_version": {
|
|
6634
|
+
"type": "string",
|
|
6635
|
+
"id": 22
|
|
6636
|
+
},
|
|
6637
|
+
"onekey_se03_version": {
|
|
6638
|
+
"type": "string",
|
|
6639
|
+
"id": 23
|
|
6640
|
+
},
|
|
6641
|
+
"onekey_se04_version": {
|
|
6642
|
+
"type": "string",
|
|
6643
|
+
"id": 24
|
|
6644
|
+
},
|
|
6645
|
+
"onekey_se01_hash": {
|
|
6646
|
+
"type": "bytes",
|
|
6647
|
+
"id": 25
|
|
6648
|
+
},
|
|
6649
|
+
"onekey_se02_hash": {
|
|
6650
|
+
"type": "bytes",
|
|
6651
|
+
"id": 26
|
|
6652
|
+
},
|
|
6653
|
+
"onekey_se03_hash": {
|
|
6654
|
+
"type": "bytes",
|
|
6655
|
+
"id": 27
|
|
6656
|
+
},
|
|
6657
|
+
"onekey_se04_hash": {
|
|
6658
|
+
"type": "bytes",
|
|
6659
|
+
"id": 28
|
|
6660
|
+
},
|
|
6661
|
+
"onekey_se01_build_id": {
|
|
6662
|
+
"type": "string",
|
|
6663
|
+
"id": 29
|
|
6664
|
+
},
|
|
6665
|
+
"onekey_se02_build_id": {
|
|
6666
|
+
"type": "string",
|
|
6667
|
+
"id": 30
|
|
6668
|
+
},
|
|
6669
|
+
"onekey_se03_build_id": {
|
|
6670
|
+
"type": "string",
|
|
6671
|
+
"id": 31
|
|
6672
|
+
},
|
|
6673
|
+
"onekey_se04_build_id": {
|
|
6674
|
+
"type": "string",
|
|
6675
|
+
"id": 32
|
|
6676
|
+
},
|
|
6677
|
+
"onekey_se01_bootloader_version": {
|
|
6678
|
+
"type": "string",
|
|
6679
|
+
"id": 33
|
|
6680
|
+
},
|
|
6681
|
+
"onekey_se02_bootloader_version": {
|
|
6682
|
+
"type": "string",
|
|
6683
|
+
"id": 34
|
|
6684
|
+
},
|
|
6685
|
+
"onekey_se03_bootloader_version": {
|
|
6686
|
+
"type": "string",
|
|
6687
|
+
"id": 35
|
|
6688
|
+
},
|
|
6689
|
+
"onekey_se04_bootloader_version": {
|
|
6690
|
+
"type": "string",
|
|
6691
|
+
"id": 36
|
|
6692
|
+
},
|
|
6693
|
+
"onekey_se01_bootloader_hash": {
|
|
6694
|
+
"type": "bytes",
|
|
6695
|
+
"id": 37
|
|
6696
|
+
},
|
|
6697
|
+
"onekey_se02_bootloader_hash": {
|
|
6698
|
+
"type": "bytes",
|
|
6699
|
+
"id": 38
|
|
6700
|
+
},
|
|
6701
|
+
"onekey_se03_bootloader_hash": {
|
|
6702
|
+
"type": "bytes",
|
|
6703
|
+
"id": 39
|
|
6704
|
+
},
|
|
6705
|
+
"onekey_se04_bootloader_hash": {
|
|
6706
|
+
"type": "bytes",
|
|
6707
|
+
"id": 40
|
|
6708
|
+
},
|
|
6709
|
+
"onekey_se01_bootloader_build_id": {
|
|
6710
|
+
"type": "string",
|
|
6711
|
+
"id": 41
|
|
6712
|
+
},
|
|
6713
|
+
"onekey_se02_bootloader_build_id": {
|
|
6714
|
+
"type": "string",
|
|
6715
|
+
"id": 42
|
|
6716
|
+
},
|
|
6717
|
+
"onekey_se03_bootloader_build_id": {
|
|
6718
|
+
"type": "string",
|
|
6719
|
+
"id": 43
|
|
6720
|
+
},
|
|
6721
|
+
"onekey_se04_bootloader_build_id": {
|
|
6722
|
+
"type": "string",
|
|
6723
|
+
"id": 44
|
|
6724
|
+
}
|
|
6725
|
+
}
|
|
6726
|
+
},
|
|
6727
|
+
"LockDevice": {
|
|
6728
|
+
"fields": {}
|
|
6729
|
+
},
|
|
6730
|
+
"SetBusy": {
|
|
6731
|
+
"fields": {
|
|
6732
|
+
"expiry_ms": {
|
|
6733
|
+
"type": "uint32",
|
|
6734
|
+
"id": 1
|
|
6735
|
+
}
|
|
6736
|
+
}
|
|
6737
|
+
},
|
|
6738
|
+
"ApplySettings": {
|
|
6739
|
+
"fields": {
|
|
6740
|
+
"language": {
|
|
6741
|
+
"type": "string",
|
|
6742
|
+
"id": 1
|
|
6743
|
+
},
|
|
6744
|
+
"label": {
|
|
6745
|
+
"type": "string",
|
|
6746
|
+
"id": 2
|
|
6747
|
+
},
|
|
6748
|
+
"use_passphrase": {
|
|
6749
|
+
"type": "bool",
|
|
6750
|
+
"id": 3
|
|
6751
|
+
},
|
|
6752
|
+
"homescreen": {
|
|
6753
|
+
"type": "bytes",
|
|
6754
|
+
"id": 4
|
|
6755
|
+
},
|
|
6756
|
+
"_passphrase_source": {
|
|
6757
|
+
"type": "uint32",
|
|
6758
|
+
"id": 5,
|
|
6759
|
+
"options": {
|
|
6760
|
+
"deprecated": true
|
|
6381
6761
|
}
|
|
6382
6762
|
},
|
|
6383
6763
|
"auto_lock_delay_ms": {
|
|
@@ -6877,49 +7257,6 @@
|
|
|
6877
7257
|
}
|
|
6878
7258
|
}
|
|
6879
7259
|
},
|
|
6880
|
-
"WallpaperTarget": {
|
|
6881
|
-
"values": {
|
|
6882
|
-
"Home": 0,
|
|
6883
|
-
"Lock": 1
|
|
6884
|
-
}
|
|
6885
|
-
},
|
|
6886
|
-
"SetWallpaper": {
|
|
6887
|
-
"fields": {
|
|
6888
|
-
"target": {
|
|
6889
|
-
"rule": "required",
|
|
6890
|
-
"type": "WallpaperTarget",
|
|
6891
|
-
"id": 1
|
|
6892
|
-
},
|
|
6893
|
-
"path": {
|
|
6894
|
-
"rule": "required",
|
|
6895
|
-
"type": "string",
|
|
6896
|
-
"id": 2
|
|
6897
|
-
}
|
|
6898
|
-
}
|
|
6899
|
-
},
|
|
6900
|
-
"GetWallpaper": {
|
|
6901
|
-
"fields": {
|
|
6902
|
-
"target": {
|
|
6903
|
-
"rule": "required",
|
|
6904
|
-
"type": "WallpaperTarget",
|
|
6905
|
-
"id": 1
|
|
6906
|
-
}
|
|
6907
|
-
}
|
|
6908
|
-
},
|
|
6909
|
-
"Wallpaper": {
|
|
6910
|
-
"fields": {
|
|
6911
|
-
"target": {
|
|
6912
|
-
"rule": "required",
|
|
6913
|
-
"type": "WallpaperTarget",
|
|
6914
|
-
"id": 1
|
|
6915
|
-
},
|
|
6916
|
-
"path": {
|
|
6917
|
-
"rule": "required",
|
|
6918
|
-
"type": "string",
|
|
6919
|
-
"id": 2
|
|
6920
|
-
}
|
|
6921
|
-
}
|
|
6922
|
-
},
|
|
6923
7260
|
"ResourceUpdate": {
|
|
6924
7261
|
"fields": {
|
|
6925
7262
|
"file_name": {
|
|
@@ -7006,14 +7343,6 @@
|
|
|
7006
7343
|
"passphrase_state": {
|
|
7007
7344
|
"type": "string",
|
|
7008
7345
|
"id": 1
|
|
7009
|
-
},
|
|
7010
|
-
"_only_main_pin": {
|
|
7011
|
-
"type": "bool",
|
|
7012
|
-
"id": 2
|
|
7013
|
-
},
|
|
7014
|
-
"allow_create_attach_pin": {
|
|
7015
|
-
"type": "bool",
|
|
7016
|
-
"id": 3
|
|
7017
7346
|
}
|
|
7018
7347
|
}
|
|
7019
7348
|
},
|
|
@@ -11059,105 +11388,30 @@
|
|
|
11059
11388
|
}
|
|
11060
11389
|
}
|
|
11061
11390
|
},
|
|
11062
|
-
"
|
|
11063
|
-
"fields": {
|
|
11064
|
-
"is_unlimited": {
|
|
11065
|
-
"rule": "required",
|
|
11066
|
-
"type": "bool",
|
|
11067
|
-
"id": 1
|
|
11068
|
-
},
|
|
11069
|
-
"num": {
|
|
11070
|
-
"rule": "required",
|
|
11071
|
-
"type": "string",
|
|
11072
|
-
"id": 2
|
|
11073
|
-
}
|
|
11074
|
-
}
|
|
11075
|
-
},
|
|
11076
|
-
"ViewDetail": {
|
|
11077
|
-
"fields": {
|
|
11078
|
-
"key": {
|
|
11079
|
-
"rule": "required",
|
|
11080
|
-
"type": "uint32",
|
|
11081
|
-
"id": 1
|
|
11082
|
-
},
|
|
11083
|
-
"value": {
|
|
11084
|
-
"rule": "required",
|
|
11085
|
-
"type": "string",
|
|
11086
|
-
"id": 2
|
|
11087
|
-
},
|
|
11088
|
-
"is_overview": {
|
|
11089
|
-
"rule": "required",
|
|
11090
|
-
"type": "bool",
|
|
11091
|
-
"id": 3
|
|
11092
|
-
},
|
|
11093
|
-
"has_icon": {
|
|
11094
|
-
"rule": "required",
|
|
11095
|
-
"type": "bool",
|
|
11096
|
-
"id": 4
|
|
11097
|
-
}
|
|
11098
|
-
}
|
|
11099
|
-
},
|
|
11100
|
-
"ViewTipType": {
|
|
11391
|
+
"UiAnimationType": {
|
|
11101
11392
|
"values": {
|
|
11102
|
-
"
|
|
11103
|
-
"
|
|
11104
|
-
"Recommend": 2,
|
|
11105
|
-
"Warning": 3,
|
|
11106
|
-
"Danger": 4
|
|
11107
|
-
}
|
|
11108
|
-
},
|
|
11109
|
-
"ViewTip": {
|
|
11110
|
-
"fields": {
|
|
11111
|
-
"type": {
|
|
11112
|
-
"rule": "required",
|
|
11113
|
-
"type": "ViewTipType",
|
|
11114
|
-
"id": 1
|
|
11115
|
-
},
|
|
11116
|
-
"text": {
|
|
11117
|
-
"rule": "required",
|
|
11118
|
-
"type": "string",
|
|
11119
|
-
"id": 2
|
|
11120
|
-
}
|
|
11393
|
+
"Unknown": 0,
|
|
11394
|
+
"Signing": 1
|
|
11121
11395
|
}
|
|
11122
11396
|
},
|
|
11123
|
-
"
|
|
11124
|
-
"
|
|
11125
|
-
"
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
},
|
|
11130
|
-
"amount": {
|
|
11131
|
-
"type": "ViewAmount",
|
|
11132
|
-
"id": 2
|
|
11133
|
-
},
|
|
11134
|
-
"general": {
|
|
11135
|
-
"rule": "repeated",
|
|
11136
|
-
"type": "ViewDetail",
|
|
11137
|
-
"id": 3
|
|
11138
|
-
},
|
|
11139
|
-
"tip": {
|
|
11140
|
-
"type": "ViewTip",
|
|
11141
|
-
"id": 4
|
|
11142
|
-
}
|
|
11397
|
+
"UiAnimationCommand": {
|
|
11398
|
+
"values": {
|
|
11399
|
+
"CommandUnknown": 0,
|
|
11400
|
+
"Start": 1,
|
|
11401
|
+
"Stop": 2,
|
|
11402
|
+
"Refresh": 3
|
|
11143
11403
|
}
|
|
11144
11404
|
},
|
|
11145
|
-
"
|
|
11405
|
+
"UiAnimationRequest": {
|
|
11146
11406
|
"fields": {
|
|
11147
|
-
"
|
|
11407
|
+
"command": {
|
|
11148
11408
|
"rule": "required",
|
|
11149
|
-
"type": "
|
|
11409
|
+
"type": "UiAnimationCommand",
|
|
11150
11410
|
"id": 1
|
|
11151
11411
|
},
|
|
11152
|
-
"
|
|
11153
|
-
"
|
|
11154
|
-
"type": "string",
|
|
11412
|
+
"type": {
|
|
11413
|
+
"type": "UiAnimationType",
|
|
11155
11414
|
"id": 2
|
|
11156
|
-
},
|
|
11157
|
-
"path": {
|
|
11158
|
-
"rule": "required",
|
|
11159
|
-
"type": "string",
|
|
11160
|
-
"id": 3
|
|
11161
11415
|
}
|
|
11162
11416
|
}
|
|
11163
11417
|
},
|
|
@@ -11244,7 +11498,15 @@
|
|
|
11244
11498
|
}
|
|
11245
11499
|
},
|
|
11246
11500
|
"ProtocolInfoRequest": {
|
|
11247
|
-
"fields": {
|
|
11501
|
+
"fields": {
|
|
11502
|
+
"eventless_wallet_session": {
|
|
11503
|
+
"type": "bool",
|
|
11504
|
+
"id": 1,
|
|
11505
|
+
"options": {
|
|
11506
|
+
"default": false
|
|
11507
|
+
}
|
|
11508
|
+
}
|
|
11509
|
+
}
|
|
11248
11510
|
},
|
|
11249
11511
|
"ProtocolInfo": {
|
|
11250
11512
|
"fields": {
|
|
@@ -11253,17 +11515,18 @@
|
|
|
11253
11515
|
"type": "uint32",
|
|
11254
11516
|
"id": 1
|
|
11255
11517
|
},
|
|
11518
|
+
"build_fingerprint": {
|
|
11519
|
+
"rule": "required",
|
|
11520
|
+
"type": "string",
|
|
11521
|
+
"id": 2
|
|
11522
|
+
},
|
|
11256
11523
|
"supported_messages": {
|
|
11257
11524
|
"rule": "repeated",
|
|
11258
11525
|
"type": "uint32",
|
|
11259
|
-
"id":
|
|
11526
|
+
"id": 3,
|
|
11260
11527
|
"options": {
|
|
11261
11528
|
"packed": false
|
|
11262
11529
|
}
|
|
11263
|
-
},
|
|
11264
|
-
"protobuf_definition": {
|
|
11265
|
-
"type": "string",
|
|
11266
|
-
"id": 3
|
|
11267
11530
|
}
|
|
11268
11531
|
}
|
|
11269
11532
|
},
|
|
@@ -11317,6 +11580,20 @@
|
|
|
11317
11580
|
}
|
|
11318
11581
|
}
|
|
11319
11582
|
},
|
|
11583
|
+
"DeviceErrorCode": {
|
|
11584
|
+
"values": {
|
|
11585
|
+
"DeviceError_None": 0,
|
|
11586
|
+
"DeviceError_Busy": 1,
|
|
11587
|
+
"DeviceError_NotInitialized": 2,
|
|
11588
|
+
"DeviceError_ActionCancelled": 3,
|
|
11589
|
+
"DeviceError_PinAlreadyUsed": 4,
|
|
11590
|
+
"DeviceError_PersistFailed": 5,
|
|
11591
|
+
"DeviceError_SeError": 6,
|
|
11592
|
+
"DeviceError_InvalidLanguage": 7,
|
|
11593
|
+
"DeviceError_WallpaperNotUsable": 8,
|
|
11594
|
+
"DeviceError_DeviceLocked": 9
|
|
11595
|
+
}
|
|
11596
|
+
},
|
|
11320
11597
|
"DeviceRebootType": {
|
|
11321
11598
|
"values": {
|
|
11322
11599
|
"Normal": 0,
|
|
@@ -11335,17 +11612,69 @@
|
|
|
11335
11612
|
},
|
|
11336
11613
|
"DeviceSettings": {
|
|
11337
11614
|
"fields": {
|
|
11338
|
-
"
|
|
11339
|
-
"type": "
|
|
11615
|
+
"bt_enable": {
|
|
11616
|
+
"type": "bool",
|
|
11340
11617
|
"id": 1
|
|
11341
11618
|
},
|
|
11342
|
-
"
|
|
11619
|
+
"language": {
|
|
11620
|
+
"type": "string",
|
|
11621
|
+
"id": 2
|
|
11622
|
+
},
|
|
11623
|
+
"wallpaper_path": {
|
|
11624
|
+
"type": "string",
|
|
11625
|
+
"id": 3
|
|
11626
|
+
},
|
|
11627
|
+
"brightness": {
|
|
11628
|
+
"type": "uint32",
|
|
11629
|
+
"id": 4
|
|
11630
|
+
},
|
|
11631
|
+
"animation_enable": {
|
|
11632
|
+
"type": "bool",
|
|
11633
|
+
"id": 5
|
|
11634
|
+
},
|
|
11635
|
+
"tap_to_wake": {
|
|
11343
11636
|
"type": "bool",
|
|
11344
|
-
"id":
|
|
11637
|
+
"id": 6
|
|
11345
11638
|
},
|
|
11346
|
-
"
|
|
11639
|
+
"haptic_feedback": {
|
|
11640
|
+
"type": "bool",
|
|
11641
|
+
"id": 7
|
|
11642
|
+
},
|
|
11643
|
+
"device_name_display_enabled": {
|
|
11644
|
+
"type": "bool",
|
|
11645
|
+
"id": 8
|
|
11646
|
+
},
|
|
11647
|
+
"airgap_mode": {
|
|
11648
|
+
"type": "bool",
|
|
11649
|
+
"id": 9
|
|
11650
|
+
},
|
|
11651
|
+
"usb_lock_enable": {
|
|
11652
|
+
"type": "bool",
|
|
11653
|
+
"id": 10
|
|
11654
|
+
},
|
|
11655
|
+
"random_keypad": {
|
|
11656
|
+
"type": "bool",
|
|
11657
|
+
"id": 11
|
|
11658
|
+
},
|
|
11659
|
+
"passphrase_enable": {
|
|
11660
|
+
"type": "bool",
|
|
11661
|
+
"id": 100
|
|
11662
|
+
},
|
|
11663
|
+
"fido_enabled": {
|
|
11664
|
+
"type": "bool",
|
|
11665
|
+
"id": 101
|
|
11666
|
+
},
|
|
11667
|
+
"autolock_delay_ms": {
|
|
11668
|
+
"type": "uint32",
|
|
11669
|
+
"id": 102
|
|
11670
|
+
},
|
|
11671
|
+
"autoshutdown_delay_ms": {
|
|
11672
|
+
"type": "uint32",
|
|
11673
|
+
"id": 103
|
|
11674
|
+
},
|
|
11675
|
+
"label": {
|
|
11347
11676
|
"type": "string",
|
|
11348
|
-
"id":
|
|
11677
|
+
"id": 104
|
|
11349
11678
|
}
|
|
11350
11679
|
}
|
|
11351
11680
|
},
|
|
@@ -11361,6 +11690,27 @@
|
|
|
11361
11690
|
}
|
|
11362
11691
|
}
|
|
11363
11692
|
},
|
|
11693
|
+
"DeviceSettingsPage": {
|
|
11694
|
+
"values": {
|
|
11695
|
+
"DeviceReset": 0,
|
|
11696
|
+
"DevicePinChange": 1,
|
|
11697
|
+
"DevicePassphrase": 2,
|
|
11698
|
+
"DeviceAirgap": 3
|
|
11699
|
+
}
|
|
11700
|
+
},
|
|
11701
|
+
"DeviceSettingsPageShow": {
|
|
11702
|
+
"fields": {
|
|
11703
|
+
"page": {
|
|
11704
|
+
"rule": "required",
|
|
11705
|
+
"type": "DeviceSettingsPage",
|
|
11706
|
+
"id": 1
|
|
11707
|
+
},
|
|
11708
|
+
"field_name": {
|
|
11709
|
+
"type": "string",
|
|
11710
|
+
"id": 2
|
|
11711
|
+
}
|
|
11712
|
+
}
|
|
11713
|
+
},
|
|
11364
11714
|
"DeviceCertificate": {
|
|
11365
11715
|
"fields": {
|
|
11366
11716
|
"cert_and_pubkey": {
|
|
@@ -11404,6 +11754,114 @@
|
|
|
11404
11754
|
}
|
|
11405
11755
|
}
|
|
11406
11756
|
},
|
|
11757
|
+
"DeviceMiscUsbMscControl": {
|
|
11758
|
+
"fields": {
|
|
11759
|
+
"enable": {
|
|
11760
|
+
"rule": "required",
|
|
11761
|
+
"type": "bool",
|
|
11762
|
+
"id": 1
|
|
11763
|
+
}
|
|
11764
|
+
}
|
|
11765
|
+
},
|
|
11766
|
+
"DeviceFactoryAck": {
|
|
11767
|
+
"values": {
|
|
11768
|
+
"FACTORY_ACK_SUCCESS": 0,
|
|
11769
|
+
"FACTORY_ACK_FAIL": 1
|
|
11770
|
+
}
|
|
11771
|
+
},
|
|
11772
|
+
"DeviceFactoryInfoManufactureTime": {
|
|
11773
|
+
"fields": {
|
|
11774
|
+
"year": {
|
|
11775
|
+
"rule": "required",
|
|
11776
|
+
"type": "uint32",
|
|
11777
|
+
"id": 1
|
|
11778
|
+
},
|
|
11779
|
+
"month": {
|
|
11780
|
+
"rule": "required",
|
|
11781
|
+
"type": "uint32",
|
|
11782
|
+
"id": 2
|
|
11783
|
+
},
|
|
11784
|
+
"day": {
|
|
11785
|
+
"rule": "required",
|
|
11786
|
+
"type": "uint32",
|
|
11787
|
+
"id": 3
|
|
11788
|
+
},
|
|
11789
|
+
"hour": {
|
|
11790
|
+
"rule": "required",
|
|
11791
|
+
"type": "uint32",
|
|
11792
|
+
"id": 4
|
|
11793
|
+
},
|
|
11794
|
+
"minute": {
|
|
11795
|
+
"rule": "required",
|
|
11796
|
+
"type": "uint32",
|
|
11797
|
+
"id": 5
|
|
11798
|
+
},
|
|
11799
|
+
"second": {
|
|
11800
|
+
"rule": "required",
|
|
11801
|
+
"type": "uint32",
|
|
11802
|
+
"id": 6
|
|
11803
|
+
}
|
|
11804
|
+
}
|
|
11805
|
+
},
|
|
11806
|
+
"DeviceFactoryInfo": {
|
|
11807
|
+
"fields": {
|
|
11808
|
+
"version": {
|
|
11809
|
+
"type": "uint32",
|
|
11810
|
+
"id": 1
|
|
11811
|
+
},
|
|
11812
|
+
"serial_number": {
|
|
11813
|
+
"type": "string",
|
|
11814
|
+
"id": 2
|
|
11815
|
+
},
|
|
11816
|
+
"burn_in_completed": {
|
|
11817
|
+
"type": "bool",
|
|
11818
|
+
"id": 3
|
|
11819
|
+
},
|
|
11820
|
+
"factory_test_completed": {
|
|
11821
|
+
"type": "bool",
|
|
11822
|
+
"id": 4
|
|
11823
|
+
},
|
|
11824
|
+
"manufacture_time": {
|
|
11825
|
+
"type": "DeviceFactoryInfoManufactureTime",
|
|
11826
|
+
"id": 5
|
|
11827
|
+
}
|
|
11828
|
+
}
|
|
11829
|
+
},
|
|
11830
|
+
"DeviceFactoryInfoSet": {
|
|
11831
|
+
"fields": {
|
|
11832
|
+
"info": {
|
|
11833
|
+
"rule": "required",
|
|
11834
|
+
"type": "DeviceFactoryInfo",
|
|
11835
|
+
"id": 1
|
|
11836
|
+
}
|
|
11837
|
+
}
|
|
11838
|
+
},
|
|
11839
|
+
"DeviceFactoryInfoGet": {
|
|
11840
|
+
"fields": {}
|
|
11841
|
+
},
|
|
11842
|
+
"DeviceFactoryPermanentLock": {
|
|
11843
|
+
"fields": {
|
|
11844
|
+
"check_a": {
|
|
11845
|
+
"rule": "required",
|
|
11846
|
+
"type": "bytes",
|
|
11847
|
+
"id": 1
|
|
11848
|
+
},
|
|
11849
|
+
"check_b": {
|
|
11850
|
+
"rule": "required",
|
|
11851
|
+
"type": "bytes",
|
|
11852
|
+
"id": 2
|
|
11853
|
+
}
|
|
11854
|
+
}
|
|
11855
|
+
},
|
|
11856
|
+
"DeviceFactoryTest": {
|
|
11857
|
+
"fields": {
|
|
11858
|
+
"burn_in_test": {
|
|
11859
|
+
"rule": "required",
|
|
11860
|
+
"type": "bool",
|
|
11861
|
+
"id": 1
|
|
11862
|
+
}
|
|
11863
|
+
}
|
|
11864
|
+
},
|
|
11407
11865
|
"DeviceFirmwareTargetType": {
|
|
11408
11866
|
"values": {
|
|
11409
11867
|
"FW_MGMT_TARGET_INVALID": 0,
|
|
@@ -11511,105 +11969,6 @@
|
|
|
11511
11969
|
}
|
|
11512
11970
|
}
|
|
11513
11971
|
},
|
|
11514
|
-
"DeviceFactoryAck": {
|
|
11515
|
-
"values": {
|
|
11516
|
-
"FACTORY_ACK_SUCCESS": 0,
|
|
11517
|
-
"FACTORY_ACK_FAIL": 1
|
|
11518
|
-
}
|
|
11519
|
-
},
|
|
11520
|
-
"DeviceFactoryInfoManufactureTime": {
|
|
11521
|
-
"fields": {
|
|
11522
|
-
"year": {
|
|
11523
|
-
"rule": "required",
|
|
11524
|
-
"type": "uint32",
|
|
11525
|
-
"id": 1
|
|
11526
|
-
},
|
|
11527
|
-
"month": {
|
|
11528
|
-
"rule": "required",
|
|
11529
|
-
"type": "uint32",
|
|
11530
|
-
"id": 2
|
|
11531
|
-
},
|
|
11532
|
-
"day": {
|
|
11533
|
-
"rule": "required",
|
|
11534
|
-
"type": "uint32",
|
|
11535
|
-
"id": 3
|
|
11536
|
-
},
|
|
11537
|
-
"hour": {
|
|
11538
|
-
"rule": "required",
|
|
11539
|
-
"type": "uint32",
|
|
11540
|
-
"id": 4
|
|
11541
|
-
},
|
|
11542
|
-
"minute": {
|
|
11543
|
-
"rule": "required",
|
|
11544
|
-
"type": "uint32",
|
|
11545
|
-
"id": 5
|
|
11546
|
-
},
|
|
11547
|
-
"second": {
|
|
11548
|
-
"rule": "required",
|
|
11549
|
-
"type": "uint32",
|
|
11550
|
-
"id": 6
|
|
11551
|
-
}
|
|
11552
|
-
}
|
|
11553
|
-
},
|
|
11554
|
-
"DeviceFactoryInfo": {
|
|
11555
|
-
"fields": {
|
|
11556
|
-
"version": {
|
|
11557
|
-
"type": "uint32",
|
|
11558
|
-
"id": 1
|
|
11559
|
-
},
|
|
11560
|
-
"serial_number": {
|
|
11561
|
-
"type": "string",
|
|
11562
|
-
"id": 2
|
|
11563
|
-
},
|
|
11564
|
-
"burn_in_completed": {
|
|
11565
|
-
"type": "bool",
|
|
11566
|
-
"id": 3
|
|
11567
|
-
},
|
|
11568
|
-
"factory_test_completed": {
|
|
11569
|
-
"type": "bool",
|
|
11570
|
-
"id": 4
|
|
11571
|
-
},
|
|
11572
|
-
"manufacture_time": {
|
|
11573
|
-
"type": "DeviceFactoryInfoManufactureTime",
|
|
11574
|
-
"id": 5
|
|
11575
|
-
}
|
|
11576
|
-
}
|
|
11577
|
-
},
|
|
11578
|
-
"DeviceFactoryInfoSet": {
|
|
11579
|
-
"fields": {
|
|
11580
|
-
"info": {
|
|
11581
|
-
"rule": "required",
|
|
11582
|
-
"type": "DeviceFactoryInfo",
|
|
11583
|
-
"id": 1
|
|
11584
|
-
}
|
|
11585
|
-
}
|
|
11586
|
-
},
|
|
11587
|
-
"DeviceFactoryInfoGet": {
|
|
11588
|
-
"fields": {}
|
|
11589
|
-
},
|
|
11590
|
-
"DeviceFactoryPermanentLock": {
|
|
11591
|
-
"fields": {
|
|
11592
|
-
"check_a": {
|
|
11593
|
-
"rule": "required",
|
|
11594
|
-
"type": "bytes",
|
|
11595
|
-
"id": 1
|
|
11596
|
-
},
|
|
11597
|
-
"check_b": {
|
|
11598
|
-
"rule": "required",
|
|
11599
|
-
"type": "bytes",
|
|
11600
|
-
"id": 2
|
|
11601
|
-
}
|
|
11602
|
-
}
|
|
11603
|
-
},
|
|
11604
|
-
"DeviceFactoryTest": {
|
|
11605
|
-
"fields": {
|
|
11606
|
-
"burn_in_test": {
|
|
11607
|
-
"rule": "required",
|
|
11608
|
-
"type": "bool",
|
|
11609
|
-
"id": 1
|
|
11610
|
-
}
|
|
11611
|
-
}
|
|
11612
|
-
},
|
|
11613
11972
|
"DeviceType": {
|
|
11614
11973
|
"values": {
|
|
11615
11974
|
"CLASSIC1": 0,
|
|
@@ -11760,10 +12119,6 @@
|
|
|
11760
12119
|
"se4": {
|
|
11761
12120
|
"type": "bool",
|
|
11762
12121
|
"id": 430
|
|
11763
|
-
},
|
|
11764
|
-
"status": {
|
|
11765
|
-
"type": "bool",
|
|
11766
|
-
"id": 10000
|
|
11767
12122
|
}
|
|
11768
12123
|
}
|
|
11769
12124
|
},
|
|
@@ -11833,18 +12188,39 @@
|
|
|
11833
12188
|
"se4": {
|
|
11834
12189
|
"type": "DeviceSEInfo",
|
|
11835
12190
|
"id": 430
|
|
11836
|
-
},
|
|
11837
|
-
"status": {
|
|
11838
|
-
"type": "DeviceStatus",
|
|
11839
|
-
"id": 10000
|
|
11840
12191
|
}
|
|
11841
12192
|
}
|
|
11842
12193
|
},
|
|
12194
|
+
"DeviceSessionErrorCode": {
|
|
12195
|
+
"values": {
|
|
12196
|
+
"DeviceSessionError_None": 0,
|
|
12197
|
+
"DeviceSessionError_UserCancelled": 1,
|
|
12198
|
+
"DeviceSessionError_InvalidSession": 2,
|
|
12199
|
+
"DeviceSessionError_AttachPinUnavailable": 3,
|
|
12200
|
+
"DeviceSessionError_PassphraseDisabled": 4,
|
|
12201
|
+
"DeviceSessionError_Busy": 5
|
|
12202
|
+
}
|
|
12203
|
+
},
|
|
12204
|
+
"DeviceSessionSeedDomain": {
|
|
12205
|
+
"values": {
|
|
12206
|
+
"SeedDomain_Standard": 1,
|
|
12207
|
+
"SeedDomain_Cardano": 2
|
|
12208
|
+
}
|
|
12209
|
+
},
|
|
11843
12210
|
"DeviceSessionGet": {
|
|
11844
12211
|
"fields": {
|
|
11845
12212
|
"session_id": {
|
|
11846
12213
|
"type": "bytes",
|
|
11847
12214
|
"id": 1
|
|
12215
|
+
},
|
|
12216
|
+
"btc_test_address": {
|
|
12217
|
+
"type": "string",
|
|
12218
|
+
"id": 2
|
|
12219
|
+
},
|
|
12220
|
+
"seed_domains": {
|
|
12221
|
+
"rule": "repeated",
|
|
12222
|
+
"type": "DeviceSessionSeedDomain",
|
|
12223
|
+
"id": 3
|
|
11848
12224
|
}
|
|
11849
12225
|
}
|
|
11850
12226
|
},
|
|
@@ -11860,6 +12236,39 @@
|
|
|
11860
12236
|
}
|
|
11861
12237
|
}
|
|
11862
12238
|
},
|
|
12239
|
+
"DeviceSessionPinType": {
|
|
12240
|
+
"values": {
|
|
12241
|
+
"Any": 1,
|
|
12242
|
+
"Main": 2,
|
|
12243
|
+
"AttachToPin": 3
|
|
12244
|
+
}
|
|
12245
|
+
},
|
|
12246
|
+
"DeviceSessionAskPin": {
|
|
12247
|
+
"fields": {
|
|
12248
|
+
"type": {
|
|
12249
|
+
"type": "DeviceSessionPinType",
|
|
12250
|
+
"id": 1
|
|
12251
|
+
}
|
|
12252
|
+
}
|
|
12253
|
+
},
|
|
12254
|
+
"DeviceSessionAskPassphrase": {
|
|
12255
|
+
"fields": {
|
|
12256
|
+
"passphrase": {
|
|
12257
|
+
"type": "string",
|
|
12258
|
+
"id": 1
|
|
12259
|
+
},
|
|
12260
|
+
"on_device": {
|
|
12261
|
+
"rule": "required",
|
|
12262
|
+
"type": "bool",
|
|
12263
|
+
"id": 2
|
|
12264
|
+
}
|
|
12265
|
+
}
|
|
12266
|
+
},
|
|
12267
|
+
"DeviceSessionAskPin_FailureSubCodes": {
|
|
12268
|
+
"values": {
|
|
12269
|
+
"UserCancel": 1
|
|
12270
|
+
}
|
|
12271
|
+
},
|
|
11863
12272
|
"DeviceStatus": {
|
|
11864
12273
|
"fields": {
|
|
11865
12274
|
"device_id": {
|
|
@@ -11892,6 +12301,9 @@
|
|
|
11892
12301
|
}
|
|
11893
12302
|
}
|
|
11894
12303
|
},
|
|
12304
|
+
"DeviceStatusGet": {
|
|
12305
|
+
"fields": {}
|
|
12306
|
+
},
|
|
11895
12307
|
"FilesystemPermissionFix": {
|
|
11896
12308
|
"fields": {}
|
|
11897
12309
|
},
|
|
@@ -12105,8 +12517,293 @@
|
|
|
12105
12517
|
}
|
|
12106
12518
|
},
|
|
12107
12519
|
"FilesystemFormat": {
|
|
12520
|
+
"fields": {
|
|
12521
|
+
"data": {
|
|
12522
|
+
"rule": "required",
|
|
12523
|
+
"type": "bool",
|
|
12524
|
+
"id": 1
|
|
12525
|
+
},
|
|
12526
|
+
"user": {
|
|
12527
|
+
"rule": "required",
|
|
12528
|
+
"type": "bool",
|
|
12529
|
+
"id": 2
|
|
12530
|
+
}
|
|
12531
|
+
}
|
|
12532
|
+
},
|
|
12533
|
+
"InternalMyAddressRequest": {
|
|
12534
|
+
"fields": {
|
|
12535
|
+
"coin_type": {
|
|
12536
|
+
"rule": "required",
|
|
12537
|
+
"type": "uint32",
|
|
12538
|
+
"id": 1
|
|
12539
|
+
},
|
|
12540
|
+
"chain_id": {
|
|
12541
|
+
"rule": "required",
|
|
12542
|
+
"type": "uint32",
|
|
12543
|
+
"id": 2
|
|
12544
|
+
},
|
|
12545
|
+
"account_index": {
|
|
12546
|
+
"rule": "required",
|
|
12547
|
+
"type": "uint32",
|
|
12548
|
+
"id": 3
|
|
12549
|
+
},
|
|
12550
|
+
"derive_type": {
|
|
12551
|
+
"rule": "required",
|
|
12552
|
+
"type": "uint32",
|
|
12553
|
+
"id": 4
|
|
12554
|
+
}
|
|
12555
|
+
}
|
|
12556
|
+
},
|
|
12557
|
+
"NftUpdate": {
|
|
12558
|
+
"fields": {
|
|
12559
|
+
"file_name_no_ext": {
|
|
12560
|
+
"rule": "required",
|
|
12561
|
+
"type": "string",
|
|
12562
|
+
"id": 1
|
|
12563
|
+
}
|
|
12564
|
+
}
|
|
12565
|
+
},
|
|
12566
|
+
"OnboardingStep": {
|
|
12567
|
+
"values": {
|
|
12568
|
+
"ONBOARDING_STEP_UNKNOWN": 0,
|
|
12569
|
+
"ONBOARDING_STEP_CHECKING": 1,
|
|
12570
|
+
"ONBOARDING_STEP_PERSONALIZATION": 2,
|
|
12571
|
+
"ONBOARDING_STEP_PIN": 3,
|
|
12572
|
+
"ONBOARDING_STEP_SETUP": 4,
|
|
12573
|
+
"ONBOARDING_STEP_DONE": 5
|
|
12574
|
+
}
|
|
12575
|
+
},
|
|
12576
|
+
"OnboardingPhase": {
|
|
12577
|
+
"values": {
|
|
12578
|
+
"ONBOARDING_PHASE_UNKNOWN": 0,
|
|
12579
|
+
"ONBOARDING_PHASE_SAFETY_CHECK": 1,
|
|
12580
|
+
"ONBOARDING_PHASE_PIN_SETUP": 2,
|
|
12581
|
+
"ONBOARDING_PHASE_FINGERPRINT_SETUP": 3,
|
|
12582
|
+
"ONBOARDING_PHASE_SETUP_CHOICE": 4,
|
|
12583
|
+
"ONBOARDING_PHASE_WALLET_CREATE_START": 5,
|
|
12584
|
+
"ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW": 6,
|
|
12585
|
+
"ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM": 7,
|
|
12586
|
+
"ONBOARDING_PHASE_RESTORE_METHOD_CHOICE": 8,
|
|
12587
|
+
"ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE": 9,
|
|
12588
|
+
"ONBOARDING_PHASE_SEEDCARD_RESTORE": 10,
|
|
12589
|
+
"ONBOARDING_PHASE_WALLET_READY": 11,
|
|
12590
|
+
"ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT": 12,
|
|
12591
|
+
"ONBOARDING_PHASE_SEEDCARD_BACKUP": 13
|
|
12592
|
+
}
|
|
12593
|
+
},
|
|
12594
|
+
"OnboardingSetupKind": {
|
|
12595
|
+
"values": {
|
|
12596
|
+
"ONBOARDING_SETUP_KIND_UNKNOWN": 0,
|
|
12597
|
+
"ONBOARDING_SETUP_KIND_CHOICE": 1,
|
|
12598
|
+
"ONBOARDING_SETUP_KIND_CREATE": 2,
|
|
12599
|
+
"ONBOARDING_SETUP_KIND_RESTORE": 3
|
|
12600
|
+
}
|
|
12601
|
+
},
|
|
12602
|
+
"OnboardingSetupMethod": {
|
|
12603
|
+
"values": {
|
|
12604
|
+
"ONBOARDING_SETUP_METHOD_UNKNOWN": 0,
|
|
12605
|
+
"ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE": 1,
|
|
12606
|
+
"ONBOARDING_SETUP_METHOD_SEEDCARD": 2
|
|
12607
|
+
}
|
|
12608
|
+
},
|
|
12609
|
+
"OnboardingSetupStatus": {
|
|
12610
|
+
"fields": {
|
|
12611
|
+
"kind": {
|
|
12612
|
+
"type": "OnboardingSetupKind",
|
|
12613
|
+
"id": 1
|
|
12614
|
+
},
|
|
12615
|
+
"method": {
|
|
12616
|
+
"type": "OnboardingSetupMethod",
|
|
12617
|
+
"id": 2
|
|
12618
|
+
}
|
|
12619
|
+
}
|
|
12620
|
+
},
|
|
12621
|
+
"OnboardingStatusGet": {
|
|
12622
|
+
"fields": {}
|
|
12623
|
+
},
|
|
12624
|
+
"OnboardingStatus": {
|
|
12625
|
+
"fields": {
|
|
12626
|
+
"step": {
|
|
12627
|
+
"type": "OnboardingStep",
|
|
12628
|
+
"id": 1
|
|
12629
|
+
},
|
|
12630
|
+
"phase": {
|
|
12631
|
+
"type": "OnboardingPhase",
|
|
12632
|
+
"id": 2
|
|
12633
|
+
},
|
|
12634
|
+
"setup": {
|
|
12635
|
+
"type": "OnboardingSetupStatus",
|
|
12636
|
+
"id": 3
|
|
12637
|
+
},
|
|
12638
|
+
"pin_set": {
|
|
12639
|
+
"type": "bool",
|
|
12640
|
+
"id": 4
|
|
12641
|
+
},
|
|
12642
|
+
"wallet_initialized": {
|
|
12643
|
+
"type": "bool",
|
|
12644
|
+
"id": 5
|
|
12645
|
+
}
|
|
12646
|
+
}
|
|
12647
|
+
},
|
|
12648
|
+
"PortfolioUpdate": {
|
|
12108
12649
|
"fields": {}
|
|
12109
12650
|
},
|
|
12651
|
+
"ViewAmount": {
|
|
12652
|
+
"fields": {
|
|
12653
|
+
"is_unlimited": {
|
|
12654
|
+
"rule": "required",
|
|
12655
|
+
"type": "bool",
|
|
12656
|
+
"id": 1
|
|
12657
|
+
},
|
|
12658
|
+
"num": {
|
|
12659
|
+
"rule": "required",
|
|
12660
|
+
"type": "string",
|
|
12661
|
+
"id": 2
|
|
12662
|
+
}
|
|
12663
|
+
}
|
|
12664
|
+
},
|
|
12665
|
+
"ViewDetail": {
|
|
12666
|
+
"fields": {
|
|
12667
|
+
"key": {
|
|
12668
|
+
"rule": "required",
|
|
12669
|
+
"type": "uint32",
|
|
12670
|
+
"id": 1
|
|
12671
|
+
},
|
|
12672
|
+
"value": {
|
|
12673
|
+
"rule": "required",
|
|
12674
|
+
"type": "string",
|
|
12675
|
+
"id": 2
|
|
12676
|
+
},
|
|
12677
|
+
"is_overview": {
|
|
12678
|
+
"rule": "required",
|
|
12679
|
+
"type": "bool",
|
|
12680
|
+
"id": 3
|
|
12681
|
+
},
|
|
12682
|
+
"has_icon": {
|
|
12683
|
+
"rule": "required",
|
|
12684
|
+
"type": "bool",
|
|
12685
|
+
"id": 4
|
|
12686
|
+
}
|
|
12687
|
+
}
|
|
12688
|
+
},
|
|
12689
|
+
"ViewTipType": {
|
|
12690
|
+
"values": {
|
|
12691
|
+
"Default": 0,
|
|
12692
|
+
"Highlight": 1,
|
|
12693
|
+
"Recommend": 2,
|
|
12694
|
+
"Warning": 3,
|
|
12695
|
+
"Danger": 4
|
|
12696
|
+
}
|
|
12697
|
+
},
|
|
12698
|
+
"ViewTip": {
|
|
12699
|
+
"fields": {
|
|
12700
|
+
"type": {
|
|
12701
|
+
"rule": "required",
|
|
12702
|
+
"type": "ViewTipType",
|
|
12703
|
+
"id": 1
|
|
12704
|
+
},
|
|
12705
|
+
"text": {
|
|
12706
|
+
"rule": "required",
|
|
12707
|
+
"type": "string",
|
|
12708
|
+
"id": 2
|
|
12709
|
+
}
|
|
12710
|
+
}
|
|
12711
|
+
},
|
|
12712
|
+
"ViewRawData": {
|
|
12713
|
+
"fields": {
|
|
12714
|
+
"initial_data": {
|
|
12715
|
+
"rule": "required",
|
|
12716
|
+
"type": "string",
|
|
12717
|
+
"id": 1
|
|
12718
|
+
},
|
|
12719
|
+
"placeholder": {
|
|
12720
|
+
"rule": "required",
|
|
12721
|
+
"type": "uint32",
|
|
12722
|
+
"id": 2
|
|
12723
|
+
}
|
|
12724
|
+
}
|
|
12725
|
+
},
|
|
12726
|
+
"ViewSignLayout": {
|
|
12727
|
+
"values": {
|
|
12728
|
+
"LayoutDefault": 0,
|
|
12729
|
+
"LayoutSafeTxCreate": 1,
|
|
12730
|
+
"LayoutFinalConfirm": 2,
|
|
12731
|
+
"Layout7702": 3,
|
|
12732
|
+
"LayoutFlat": 4,
|
|
12733
|
+
"LayoutEthApprove": 5
|
|
12734
|
+
}
|
|
12735
|
+
},
|
|
12736
|
+
"ViewSignPage": {
|
|
12737
|
+
"fields": {
|
|
12738
|
+
"title": {
|
|
12739
|
+
"rule": "required",
|
|
12740
|
+
"type": "string",
|
|
12741
|
+
"id": 1
|
|
12742
|
+
},
|
|
12743
|
+
"amount": {
|
|
12744
|
+
"type": "ViewAmount",
|
|
12745
|
+
"id": 2
|
|
12746
|
+
},
|
|
12747
|
+
"general": {
|
|
12748
|
+
"rule": "repeated",
|
|
12749
|
+
"type": "ViewDetail",
|
|
12750
|
+
"id": 3
|
|
12751
|
+
},
|
|
12752
|
+
"tip": {
|
|
12753
|
+
"type": "ViewTip",
|
|
12754
|
+
"id": 4
|
|
12755
|
+
},
|
|
12756
|
+
"raw_data": {
|
|
12757
|
+
"type": "ViewRawData",
|
|
12758
|
+
"id": 5
|
|
12759
|
+
},
|
|
12760
|
+
"slide_to_confirm": {
|
|
12761
|
+
"type": "bool",
|
|
12762
|
+
"id": 6,
|
|
12763
|
+
"options": {
|
|
12764
|
+
"default": true
|
|
12765
|
+
}
|
|
12766
|
+
},
|
|
12767
|
+
"layout": {
|
|
12768
|
+
"type": "ViewSignLayout",
|
|
12769
|
+
"id": 7,
|
|
12770
|
+
"options": {
|
|
12771
|
+
"default": "LayoutDefault"
|
|
12772
|
+
}
|
|
12773
|
+
}
|
|
12774
|
+
}
|
|
12775
|
+
},
|
|
12776
|
+
"ViewVerifyPage": {
|
|
12777
|
+
"fields": {
|
|
12778
|
+
"title": {
|
|
12779
|
+
"rule": "required",
|
|
12780
|
+
"type": "string",
|
|
12781
|
+
"id": 1
|
|
12782
|
+
},
|
|
12783
|
+
"address": {
|
|
12784
|
+
"rule": "required",
|
|
12785
|
+
"type": "string",
|
|
12786
|
+
"id": 2
|
|
12787
|
+
},
|
|
12788
|
+
"path": {
|
|
12789
|
+
"rule": "required",
|
|
12790
|
+
"type": "string",
|
|
12791
|
+
"id": 3
|
|
12792
|
+
},
|
|
12793
|
+
"network": {
|
|
12794
|
+
"type": "string",
|
|
12795
|
+
"id": 4
|
|
12796
|
+
},
|
|
12797
|
+
"derive_type": {
|
|
12798
|
+
"type": "string",
|
|
12799
|
+
"id": 5
|
|
12800
|
+
},
|
|
12801
|
+
"value_key": {
|
|
12802
|
+
"type": "uint32",
|
|
12803
|
+
"id": 6
|
|
12804
|
+
}
|
|
12805
|
+
}
|
|
12806
|
+
},
|
|
12110
12807
|
"google": {
|
|
12111
12808
|
"nested": {
|
|
12112
12809
|
"protobuf": {
|