@onekeyfe/hd-core 1.2.0-alpha.2 → 1.2.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/AllNetworkGetAddressBase.tracing.test.ts +75 -0
- package/__tests__/DeviceCommands.test.ts +285 -0
- package/__tests__/DeviceEventRegistration.test.ts +43 -0
- package/__tests__/connectSettings.test.ts +19 -0
- package/__tests__/core-dispose.test.ts +34 -0
- package/__tests__/core-error-output.test.ts +39 -0
- package/__tests__/device-features-state.test.ts +78 -0
- package/__tests__/device-identity.test.ts +30 -0
- package/__tests__/device-lifecycle-events.test.ts +117 -0
- package/__tests__/device-pool-state.test.ts +132 -0
- package/__tests__/device-settings.test.ts +391 -0
- package/__tests__/device-state-contract.test.ts +27 -0
- package/__tests__/device-state-events.test.ts +162 -0
- package/__tests__/device-state-mapper.test.ts +241 -0
- package/__tests__/device-state-projector.test.ts +94 -0
- package/__tests__/device-state-store.test.ts +82 -0
- package/__tests__/device-utils.test.ts +106 -0
- package/__tests__/device-wallet-session-store.test.ts +213 -0
- package/__tests__/deviceFeaturesUtils.test.ts +39 -0
- package/__tests__/deviceSettings.test.ts +103 -0
- package/__tests__/evmLedgerLegacySafety.test.ts +10 -6
- package/__tests__/evmSignTypedData.test.ts +80 -0
- package/__tests__/filesystemValidation.test.ts +53 -0
- package/__tests__/firmware-update/firmware-update-v2-download-before-boot.test.ts +402 -0
- package/__tests__/get-device-state.test.ts +410 -0
- package/__tests__/homescreen.test.ts +24 -0
- package/__tests__/kaspaSignTransaction.test.ts +591 -0
- package/__tests__/logBlockEvent.test.ts +26 -0
- package/__tests__/networkUtils.test.ts +386 -0
- package/__tests__/open-wallet-session-error-response.test.ts +43 -0
- package/__tests__/open-wallet-session.test.ts +559 -0
- package/__tests__/preInitialize.test.ts +33 -0
- package/__tests__/pro2Wallpaper.test.ts +50 -0
- package/__tests__/protocol-v2-bootloader-mode.test.ts +37 -0
- package/__tests__/protocol-v2-firmware-targets.test.ts +19 -0
- package/__tests__/protocol-v2.test.ts +3954 -1191
- package/__tests__/protocolV2FileWrite.test.ts +92 -0
- package/__tests__/protocolV2UiInteraction.test.ts +266 -0
- package/__tests__/public-device-state-api.test.ts +257 -0
- package/__tests__/public-pro2-api-boundary.test.ts +110 -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 +136 -0
- package/dist/api/BaseMethod.d.ts +8 -0
- package/dist/api/BaseMethod.d.ts.map +1 -1
- package/dist/api/CheckBootloaderRelease.d.ts.map +1 -1
- package/dist/api/CheckFirmwareRelease.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/DirList.d.ts.map +1 -1
- package/dist/api/FileRead.d.ts.map +1 -1
- package/dist/api/FileWrite.d.ts +1 -0
- package/dist/api/FileWrite.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV2.d.ts +2 -2
- package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV4.d.ts +25 -5
- package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
- package/dist/api/GetDeviceState.d.ts +7 -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 +1 -6
- package/dist/api/GetPassphraseState.d.ts.map +1 -1
- package/dist/api/OpenWalletSession.d.ts +14 -0
- package/dist/api/OpenWalletSession.d.ts.map +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/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
- package/dist/api/device/DeviceCancel.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -1
- package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -1
- package/dist/api/device/DeviceSettings.d.ts.map +1 -1
- package/dist/api/device/DeviceUnlock.d.ts +1 -1
- package/dist/api/device/DeviceUnlock.d.ts.map +1 -1
- package/dist/api/device/DeviceUpdateBootloader.d.ts.map +1 -1
- package/dist/api/device/DeviceWipe.d.ts.map +1 -1
- package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +1 -0
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
- package/dist/api/firmware/getBinary.d.ts +11 -3
- package/dist/api/firmware/getBinary.d.ts.map +1 -1
- package/dist/api/firmware/progressThrottle.d.ts +3 -0
- package/dist/api/firmware/progressThrottle.d.ts.map +1 -0
- 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 +33 -0
- package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -0
- package/dist/api/index.d.ts +12 -19
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/kaspa/KaspaSignTransaction.d.ts +5 -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/protocol-v2/DeviceFactoryInfoGet.d.ts +6 -0
- package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts +7 -0
- package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts +1 -1
- package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts +3 -2
- package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +1 -1
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceInfoGet.d.ts +28 -0
- package/dist/api/protocol-v2/DeviceInfoGet.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceReboot.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceStatusGet.d.ts +6 -0
- package/dist/api/protocol-v2/DeviceStatusGet.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts +26 -0
- package/dist/api/protocol-v2/DeviceUploadWallpaper.d.ts.map +1 -0
- package/dist/api/protocol-v2/FilesystemFormat.d.ts.map +1 -1
- package/dist/api/protocol-v2/{FilesystemFixPermission.d.ts → FilesystemPermissionFix.d.ts} +2 -2
- package/dist/api/protocol-v2/FilesystemPermissionFix.d.ts.map +1 -0
- package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts +6 -0
- package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts.map +1 -0
- package/dist/api/protocol-v2/helpers.d.ts +27 -19
- package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
- package/dist/api/ton/TonSignData.d.ts +1 -5
- package/dist/api/ton/TonSignData.d.ts.map +1 -1
- package/dist/api/utils.d.ts +2 -1
- package/dist/api/utils.d.ts.map +1 -1
- package/dist/constants/index.d.ts +2 -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 +11 -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/data-manager/DataManager.d.ts +1 -1
- package/dist/data-manager/DataManager.d.ts.map +1 -1
- package/dist/data-manager/connectSettings.d.ts.map +1 -1
- package/dist/device/Device.d.ts +35 -11
- 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/DeviceFeaturesState.d.ts +3 -0
- package/dist/device/DeviceFeaturesState.d.ts.map +1 -0
- package/dist/device/DevicePool.d.ts +4 -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 +20 -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/events/device.d.ts +11 -2
- package/dist/events/device.d.ts.map +1 -1
- package/dist/events/logBlockEvent.d.ts.map +1 -1
- package/dist/events/ui-request.d.ts +18 -2
- package/dist/events/ui-request.d.ts.map +1 -1
- package/dist/index.d.ts +1361 -609
- package/dist/index.js +5898 -2860
- package/dist/inject.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 +23 -28
- package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/firmware.d.ts +11 -9
- 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/lockedError.d.ts +2 -0
- package/dist/protocols/protocol-v2/lockedError.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts +16 -0
- package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/uiInteraction.d.ts +39 -0
- package/dist/protocols/protocol-v2/uiInteraction.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/unlockRetry.d.ts +11 -0
- package/dist/protocols/protocol-v2/unlockRetry.d.ts.map +1 -0
- package/dist/protocols/protocol-v2/walletSession.d.ts +19 -0
- package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -0
- package/dist/types/api/checkAllFirmwareRelease.d.ts +1 -2
- package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -1
- 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 +2 -2
- package/dist/types/api/deviceUnlock.d.ts.map +1 -1
- package/dist/types/api/firmwareUpdate.d.ts +6 -6
- package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
- 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 +22 -25
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/kaspaSignTransaction.d.ts +27 -2
- package/dist/types/api/kaspaSignTransaction.d.ts.map +1 -1
- package/dist/types/api/openWalletSession.d.ts +41 -0
- package/dist/types/api/openWalletSession.d.ts.map +1 -0
- package/dist/types/api/protocolV2.d.ts +23 -28
- package/dist/types/api/protocolV2.d.ts.map +1 -1
- package/dist/types/api/sessionCache.d.ts +10 -0
- package/dist/types/api/sessionCache.d.ts.map +1 -0
- package/dist/types/device.d.ts +121 -5
- 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 +21 -1
- 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 +13 -0
- package/dist/utils/deviceFeaturesCompat.d.ts.map +1 -0
- package/dist/utils/deviceFeaturesUtils.d.ts +13 -3
- package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
- package/dist/utils/deviceInfoUtils.d.ts +9 -8
- 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 +6 -5
- package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
- package/dist/utils/homescreen.d.ts.map +1 -1
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/networkUtils.d.ts +9 -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/pro2Wallpaper.d.ts +12 -0
- package/dist/utils/pro2Wallpaper.d.ts.map +1 -0
- package/dist/utils/tracing.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/api/BaseMethod.ts +36 -9
- package/src/api/CheckBootloaderRelease.ts +1 -2
- package/src/api/CheckFirmwareRelease.ts +1 -2
- package/src/api/ClearSessionCache.ts +28 -0
- package/src/api/DirList.ts +5 -3
- package/src/api/DirMake.ts +3 -3
- package/src/api/DirRemove.ts +3 -3
- package/src/api/FileDelete.ts +3 -3
- package/src/api/FileRead.ts +23 -7
- package/src/api/FileWrite.ts +23 -168
- package/src/api/FirmwareUpdate.ts +4 -4
- package/src/api/FirmwareUpdateV2.ts +133 -45
- package/src/api/FirmwareUpdateV3.ts +3 -5
- package/src/api/FirmwareUpdateV4.ts +1138 -357
- package/src/api/GetDeviceState.ts +55 -0
- package/src/api/GetFeatures.ts +8 -3
- package/src/api/GetOnekeyFeatures.ts +3 -72
- package/src/api/GetPassphraseState.ts +11 -18
- package/src/api/OpenWalletSession.ts +221 -0
- package/src/api/PathInfo.ts +5 -3
- package/src/api/PromptWebDeviceAccess.ts +2 -3
- package/src/api/SearchDevices.ts +29 -4
- package/src/api/UploadPortfolio.ts +40 -0
- package/src/api/alephium/AlephiumSignTransaction.ts +2 -2
- package/src/api/allnetwork/AllNetworkGetAddressBase.ts +4 -8
- package/src/api/benfen/BenfenGetAddress.ts +1 -1
- package/src/api/btc/BTCGetPublicKey.ts +1 -1
- package/src/api/cardano/CardanoSignMessage.ts +1 -1
- package/src/api/cardano/CardanoSignTransaction.ts +1 -1
- package/src/api/device/DeviceCancel.ts +1 -0
- package/src/api/device/DeviceChangePin.ts +24 -0
- package/src/api/device/DeviceFullyUploadResource.ts +4 -5
- package/src/api/device/DeviceLock.ts +1 -0
- package/src/api/device/DeviceRebootToBoardloader.ts +5 -4
- package/src/api/device/DeviceRebootToBootloader.ts +5 -4
- package/src/api/device/DeviceSettings.ts +183 -1
- package/src/api/device/DeviceUnlock.ts +11 -1
- package/src/api/device/DeviceUpdateBootloader.ts +1 -2
- package/src/api/device/DeviceWipe.ts +19 -0
- package/src/api/evm/EVMSignTypedData.ts +3 -5
- 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/firmware/FirmwareUpdateBaseMethod.ts +21 -7
- package/src/api/firmware/getBinary.ts +8 -3
- package/src/api/firmware/progressThrottle.ts +44 -0
- 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 +193 -0
- package/src/api/index.ts +14 -20
- package/src/api/kaspa/KaspaSignTransaction.ts +341 -22
- package/src/api/kaspa/helpers/TransferSerialize.ts +14 -0
- package/src/api/nervos/NervosSignTransaction.ts +2 -2
- package/src/api/nexa/NexaSignTransaction.ts +1 -1
- package/src/api/protocol-v2/{FactoryGetDeviceInfo.ts → DeviceFactoryInfoGet.ts} +4 -4
- package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +32 -0
- package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +7 -9
- package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +41 -6
- package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +6 -4
- package/src/api/protocol-v2/DeviceInfoGet.ts +145 -0
- package/src/api/protocol-v2/DeviceReboot.ts +5 -3
- package/src/api/protocol-v2/DeviceStatusGet.ts +16 -0
- package/src/api/protocol-v2/DeviceUploadWallpaper.ts +131 -0
- package/src/api/protocol-v2/FilesystemFormat.ts +5 -2
- package/src/api/protocol-v2/{FilesystemFixPermission.ts → FilesystemPermissionFix.ts} +3 -3
- package/src/api/protocol-v2/Ping.ts +1 -1
- package/src/api/protocol-v2/{GetProtoVersion.ts → ProtocolInfoRequest.ts} +3 -3
- package/src/api/protocol-v2/helpers.ts +58 -62
- package/src/api/ton/TonSignData.ts +1 -5
- package/src/api/utils.ts +7 -3
- package/src/constants/index.ts +7 -1
- package/src/core/RequestQueue.ts +1 -0
- package/src/core/deviceEventRegistration.ts +23 -0
- package/src/core/index.ts +140 -35
- package/src/data/messages/messages-protocol-v2.json +825 -709
- package/src/data/messages/messages.json +286 -1
- package/src/data-manager/DataManager.ts +13 -6
- package/src/data-manager/connectSettings.ts +4 -0
- package/src/device/Device.ts +480 -192
- package/src/device/DeviceCommands.ts +81 -25
- package/src/device/DeviceFeaturesState.ts +25 -0
- package/src/device/DevicePool.ts +67 -19
- package/src/device/DeviceStateMapper.ts +349 -0
- package/src/device/DeviceStateProjector.ts +95 -0
- package/src/device/DeviceStateStore.ts +201 -0
- package/src/device/DeviceWalletSessionStore.ts +105 -0
- package/src/device/cloneDeviceState.ts +39 -0
- package/src/device/deviceIdentity.ts +18 -0
- package/src/deviceProfile/buildDeviceFeatures.ts +235 -210
- package/src/deviceProfile/index.ts +0 -1
- package/src/events/device.ts +17 -1
- package/src/events/logBlockEvent.ts +8 -1
- package/src/events/ui-request.ts +24 -2
- package/src/inject.ts +23 -34
- package/src/protocols/protocol-v2/deviceSession.ts +24 -0
- package/src/protocols/protocol-v2/features.ts +68 -82
- package/src/protocols/protocol-v2/firmware.ts +12 -36
- package/src/protocols/protocol-v2/index.ts +3 -1
- package/src/protocols/protocol-v2/lockedError.ts +10 -0
- package/src/protocols/protocol-v2/settingsUnlockPolicy.ts +61 -0
- package/src/protocols/protocol-v2/uiInteraction.ts +210 -0
- package/src/protocols/protocol-v2/unlockRetry.ts +76 -0
- package/src/protocols/protocol-v2/walletSession.ts +107 -0
- package/src/types/api/checkAllFirmwareRelease.ts +1 -2
- package/src/types/api/deviceSettings.ts +26 -2
- package/src/types/api/deviceUnlock.ts +5 -2
- package/src/types/api/firmwareUpdate.ts +28 -20
- 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 +8 -11
- package/src/types/api/index.ts +30 -53
- package/src/types/api/kaspaSignTransaction.ts +40 -2
- package/src/types/api/openWalletSession.ts +64 -0
- package/src/types/api/protocolV2.ts +58 -55
- package/src/types/api/sessionCache.ts +14 -0
- package/src/types/device.ts +170 -4
- package/src/types/params.ts +4 -0
- package/src/types/settings.ts +42 -30
- package/src/utils/assets.ts +4 -1
- package/src/utils/deviceFeaturesCompat.ts +173 -0
- package/src/utils/deviceFeaturesUtils.ts +68 -24
- package/src/utils/deviceInfoUtils.ts +26 -64
- package/src/utils/deviceSettings.ts +161 -39
- package/src/utils/deviceVersionUtils.ts +25 -44
- package/src/utils/findDefectiveBatchDevice.ts +3 -3
- package/src/utils/homescreen.ts +10 -0
- package/src/utils/index.ts +21 -1
- package/src/utils/networkUtils.ts +270 -14
- package/src/utils/pro2Wallpaper.ts +109 -0
- package/src/utils/tracing.ts +3 -1
- package/dist/api/GetDeviceInfo.d.ts +0 -9
- package/dist/api/GetDeviceInfo.d.ts.map +0 -1
- package/dist/api/protocol-v2/DevReboot.d.ts +0 -7
- package/dist/api/protocol-v2/DevReboot.d.ts.map +0 -1
- package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts +0 -29
- package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts.map +0 -1
- package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts +0 -7
- package/dist/api/protocol-v2/FactoryDeviceInfoSettings.d.ts.map +0 -1
- package/dist/api/protocol-v2/FactoryGetDeviceInfo.d.ts +0 -6
- package/dist/api/protocol-v2/FactoryGetDeviceInfo.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/api/protocol-v2/FilesystemFixPermission.d.ts.map +0 -1
- package/dist/api/protocol-v2/GetProtoVersion.d.ts +0 -6
- package/dist/api/protocol-v2/GetProtoVersion.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 -85
- package/dist/types/api/getDeviceInfo.d.ts.map +0 -1
- package/src/api/GetDeviceInfo.ts +0 -145
- package/src/api/protocol-v2/DevReboot.ts +0 -24
- package/src/api/protocol-v2/DeviceGetDeviceInfo.ts +0 -118
- package/src/api/protocol-v2/FactoryDeviceInfoSettings.ts +0 -29
- package/src/api/protocol-v2/FilesystemDiskControl.ts +0 -50
- package/src/deviceProfile/buildDeviceProfile.ts +0 -334
- package/src/types/api/getDeviceInfo.ts +0 -99
package/dist/inject.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject.d.ts","sourceRoot":"","sources":["../src/inject.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAc3C,QAAA,MAAM,eAAe,OAAQ,MAAM,WAAW,GAAG,EAAE,SAKlD,CAAC;AAEF,QAAA,MAAM,eAAe,OAAQ,MAAM,SAElC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC;AAE5C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC,SAA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AED,eAAO,MAAM,MAAM,gGAShB,SAAS,KAAG,OAiCd,CAAC;AAEF,eAAO,MAAM,aAAa,SAClB,OAAO,CAAC,MAAM,CAAC,KACpB,KACD,OAAO,EACL,IAAI,GACJ,KAAK,GACL,MAAM,GACN,oBAAoB,GACpB,MAAM,GACN,MAAM,GACN,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,gBAAgB,GAChB,iBAAiB,CA8VnB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DeviceSession } from '@onekeyfe/hd-transport';
|
|
2
|
+
export type CompleteDeviceSession = DeviceSession & {
|
|
3
|
+
session_id: string;
|
|
4
|
+
btc_test_address: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function assertCompleteDeviceSession(message: DeviceSession): asserts message is CompleteDeviceSession;
|
|
7
|
+
//# sourceMappingURL=deviceSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceSession.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/deviceSession.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,OAAO,IAAI,qBAAqB,CAY1C"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DeviceInfoGet, DeviceSEInfo, DeviceStatus, ProtocolV2DeviceInfo } from '@onekeyfe/hd-transport';
|
|
2
2
|
import type { DeviceCommands } from '../../device/DeviceCommands';
|
|
3
3
|
export type { ProtocolV2DeviceInfo };
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
4
|
+
export type { DeviceFirmwareImageInfo as ProtocolV2FirmwareImageInfo } from '@onekeyfe/hd-transport';
|
|
5
|
+
export type { DeviceSEInfo as ProtocolV2SEInfo } from '@onekeyfe/hd-transport';
|
|
6
6
|
export type ProtocolV2SeStateLabel = 'BOOT' | 'APP_FACTORY' | 'APP';
|
|
7
|
-
export declare const getProtocolV2SeState: (se?:
|
|
8
|
-
export declare const getProtocolV2SeType: (se?:
|
|
7
|
+
export declare const getProtocolV2SeState: (se?: DeviceSEInfo) => ProtocolV2SeStateLabel | null;
|
|
8
|
+
export declare const getProtocolV2SeType: (se?: DeviceSEInfo) => string | null;
|
|
9
|
+
export type ProtocolV2RuntimeMode = 'normal' | 'bootloader';
|
|
10
|
+
export declare const getProtocolV2RuntimeMode: ({ deviceInfo: _deviceInfo, deviceStatusAvailable, }: {
|
|
11
|
+
deviceInfo?: ProtocolV2DeviceInfo | null | undefined;
|
|
12
|
+
deviceStatusAvailable: boolean;
|
|
13
|
+
}) => ProtocolV2RuntimeMode;
|
|
9
14
|
export declare const PROTOCOL_V2_FEATURES_DEVICE_INFO_REQUEST: {
|
|
10
15
|
targets: {
|
|
11
16
|
hw: boolean;
|
|
12
17
|
fw: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
specific: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export declare const PROTOCOL_V2_STATUS_DEVICE_INFO_REQUEST: {
|
|
22
|
-
targets: {
|
|
23
|
-
hw: boolean;
|
|
24
|
-
bt: boolean;
|
|
25
|
-
status: boolean;
|
|
18
|
+
coprocessor: boolean;
|
|
19
|
+
se1: boolean;
|
|
20
|
+
se2: boolean;
|
|
21
|
+
se3: boolean;
|
|
22
|
+
se4: boolean;
|
|
26
23
|
};
|
|
27
24
|
types: {
|
|
28
25
|
version: boolean;
|
|
@@ -33,12 +30,11 @@ export declare const PROTOCOL_V2_VERSIONS_DEVICE_INFO_REQUEST: {
|
|
|
33
30
|
targets: {
|
|
34
31
|
hw: boolean;
|
|
35
32
|
fw: boolean;
|
|
36
|
-
|
|
33
|
+
coprocessor: boolean;
|
|
37
34
|
se1: boolean;
|
|
38
35
|
se2: boolean;
|
|
39
36
|
se3: boolean;
|
|
40
37
|
se4: boolean;
|
|
41
|
-
status: boolean;
|
|
42
38
|
};
|
|
43
39
|
types: {
|
|
44
40
|
version: boolean;
|
|
@@ -49,12 +45,11 @@ export declare const PROTOCOL_V2_FULL_DEVICE_INFO_REQUEST: {
|
|
|
49
45
|
targets: {
|
|
50
46
|
hw: boolean;
|
|
51
47
|
fw: boolean;
|
|
52
|
-
|
|
48
|
+
coprocessor: boolean;
|
|
53
49
|
se1: boolean;
|
|
54
50
|
se2: boolean;
|
|
55
51
|
se3: boolean;
|
|
56
52
|
se4: boolean;
|
|
57
|
-
status: boolean;
|
|
58
53
|
};
|
|
59
54
|
types: {
|
|
60
55
|
version: boolean;
|
|
@@ -67,12 +62,11 @@ export declare const PROTOCOL_V2_DEVICE_INFO_REQUEST: {
|
|
|
67
62
|
targets: {
|
|
68
63
|
hw: boolean;
|
|
69
64
|
fw: boolean;
|
|
70
|
-
|
|
65
|
+
coprocessor: boolean;
|
|
71
66
|
se1: boolean;
|
|
72
67
|
se2: boolean;
|
|
73
68
|
se3: boolean;
|
|
74
69
|
se4: boolean;
|
|
75
|
-
status: boolean;
|
|
76
70
|
};
|
|
77
71
|
types: {
|
|
78
72
|
version: boolean;
|
|
@@ -82,12 +76,13 @@ export declare const PROTOCOL_V2_DEVICE_INFO_REQUEST: {
|
|
|
82
76
|
};
|
|
83
77
|
};
|
|
84
78
|
export declare const PROTOCOL_V2_DEVICE_INFO_TIMEOUT_MS: number;
|
|
85
|
-
export declare const setProtocolV2DeviceInfoMock: (enabled: boolean) => void;
|
|
86
|
-
export declare const isProtocolV2DeviceInfoMockEnabled: () => boolean;
|
|
87
|
-
export declare const buildMockProtocolV2DeviceInfo: () => ProtocolV2DeviceInfo;
|
|
88
79
|
export declare function requestProtocolV2DeviceInfo({ commands, timeoutMs, request, }: {
|
|
89
80
|
commands: DeviceCommands;
|
|
90
81
|
timeoutMs?: number;
|
|
91
|
-
request?:
|
|
82
|
+
request?: DeviceInfoGet;
|
|
92
83
|
}): Promise<ProtocolV2DeviceInfo>;
|
|
84
|
+
export declare function requestProtocolV2DeviceStatus({ commands, timeoutMs, }: {
|
|
85
|
+
commands: DeviceCommands;
|
|
86
|
+
timeoutMs?: number;
|
|
87
|
+
}): Promise<DeviceStatus>;
|
|
93
88
|
//# sourceMappingURL=features.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/features.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/features.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AACrC,YAAY,EAAE,uBAAuB,IAAI,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrG,YAAY,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/E,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,aAAa,GAAG,KAAK,CAAC;AAoBpE,eAAO,MAAM,oBAAoB,QAAS,YAAY,KAAG,sBAAsB,GAAG,IAYjF,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAAS,YAAY,KAAG,MAAM,GAAG,IACrB,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,YAAY,CAAC;AAU5D,eAAO,MAAM,wBAAwB;;2BAKZ,OAAO;MAC5B,qBAGH,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;CAcpD,CAAC;AAMF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;CAcpD,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;CAgBhD,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;CAAuC,CAAC;AACpF,eAAO,MAAM,kCAAkC,QAAY,CAAC;AAE5D,wBAAsB,2BAA2B,CAAC,EAChD,QAAQ,EACR,SAA8C,EAC9C,OAAkD,GACnD,EAAE;IACD,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAMhC;AAED,wBAAsB,6BAA6B,CAAC,EAClD,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,YAAY,CAAC,CAOxB"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export declare const ProtocolV2FirmwareTargetType: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
2
|
+
readonly FW_MGMT_TARGET_INVALID: 0;
|
|
3
|
+
readonly FW_MGMT_TARGET_CRATE: 1;
|
|
4
|
+
readonly FW_MGMT_TARGET_ROMLOADER: 2;
|
|
5
|
+
readonly FW_MGMT_TARGET_BOOTLOADER: 3;
|
|
6
|
+
readonly FW_MGMT_TARGET_APPLICATION_P1: 4;
|
|
7
|
+
readonly FW_MGMT_TARGET_APPLICATION_P2: 5;
|
|
8
|
+
readonly FW_MGMT_TARGET_COPROCESSOR: 6;
|
|
9
|
+
readonly FW_MGMT_TARGET_SE01: 7;
|
|
10
|
+
readonly FW_MGMT_TARGET_SE02: 8;
|
|
11
|
+
readonly FW_MGMT_TARGET_SE03: 9;
|
|
12
|
+
readonly FW_MGMT_TARGET_SE04: 10;
|
|
10
13
|
};
|
|
11
14
|
export type ProtocolV2FirmwareTargetType = (typeof ProtocolV2FirmwareTargetType)[keyof typeof ProtocolV2FirmwareTargetType];
|
|
12
|
-
export declare function protocolV2FileNameToTargetId(fileName: string): ProtocolV2FirmwareTargetType;
|
|
13
15
|
//# sourceMappingURL=firmware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firmware.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/firmware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firmware.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/firmware.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;CAY/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { PROTOCOL_V2_DEVICE_INFO_REQUEST, PROTOCOL_V2_DEVICE_INFO_TIMEOUT_MS, PROTOCOL_V2_FEATURES_DEVICE_INFO_REQUEST,
|
|
2
|
-
export type { ProtocolV2DeviceInfo, ProtocolV2FirmwareImageInfo, ProtocolV2SEInfo, ProtocolV2SeStateLabel, } from './features';
|
|
1
|
+
export { PROTOCOL_V2_DEVICE_INFO_REQUEST, PROTOCOL_V2_DEVICE_INFO_TIMEOUT_MS, PROTOCOL_V2_FEATURES_DEVICE_INFO_REQUEST, PROTOCOL_V2_VERSIONS_DEVICE_INFO_REQUEST, getProtocolV2RuntimeMode, getProtocolV2SeState, getProtocolV2SeType, } from './features';
|
|
2
|
+
export type { ProtocolV2DeviceInfo, ProtocolV2FirmwareImageInfo, ProtocolV2SEInfo, ProtocolV2SeStateLabel, ProtocolV2RuntimeMode, } from './features';
|
|
3
3
|
export * from './firmware';
|
|
4
|
+
export * from './walletSession';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,kCAAkC,EAClC,wCAAwC,EACxC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,kCAAkC,EAClC,wCAAwC,EACxC,wCAAwC,EACxC,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AACpB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockedError.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/lockedError.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAO3D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DeviceSettings, DeviceSettingsPage } from '@onekeyfe/hd-transport';
|
|
2
|
+
import type { UnlockPolicy } from '../../api/BaseMethod';
|
|
3
|
+
import type { ProtocolV2InteractionDescriptor } from './uiInteraction';
|
|
4
|
+
export declare const getProtocolV2SettingsUnlockPolicy: (settings: DeviceSettings) => UnlockPolicy;
|
|
5
|
+
export type ProtocolV2SettingsOperation = {
|
|
6
|
+
kind: 'direct';
|
|
7
|
+
settings: DeviceSettings;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'page';
|
|
10
|
+
page: DeviceSettingsPage;
|
|
11
|
+
};
|
|
12
|
+
export declare const getProtocolV2SettingsBehavior: (operation: ProtocolV2SettingsOperation) => {
|
|
13
|
+
unlockPolicy: UnlockPolicy;
|
|
14
|
+
uiInteraction?: ProtocolV2InteractionDescriptor;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=settingsUnlockPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settingsUnlockPolicy.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/settingsUnlockPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AASvE,eAAO,MAAM,iCAAiC,aAAc,cAAc,KAAG,YAGtD,CAAC;AAExB,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,cAAc,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC;AAEN,eAAO,MAAM,6BAA6B,cAC7B,2BAA2B,KACrC;IACD,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,CAAC,EAAE,+BAA+B,CAAC;CA8BjD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CoreMessage, ProtocolV2UiCompletion } from '../../events';
|
|
2
|
+
import type { Device } from '../../device/Device';
|
|
3
|
+
export type ProtocolV2InteractionDescriptor = {
|
|
4
|
+
request: 'button' | 'pin';
|
|
5
|
+
source: 'method-lifecycle';
|
|
6
|
+
reason: 'change-pin' | 'device-unlock' | 'settings-page' | 'address-confirmation' | 'public-key-confirmation' | 'signing-confirmation' | 'device-management';
|
|
7
|
+
completion: ProtocolV2UiCompletion;
|
|
8
|
+
deviceOnly: true;
|
|
9
|
+
page?: string | number;
|
|
10
|
+
operation?: string;
|
|
11
|
+
};
|
|
12
|
+
type ProtocolV2InteractionMethod = {
|
|
13
|
+
name?: string;
|
|
14
|
+
params?: unknown;
|
|
15
|
+
payload?: unknown;
|
|
16
|
+
protocolV2UiInteraction?: ProtocolV2InteractionDescriptor;
|
|
17
|
+
};
|
|
18
|
+
type InteractionDevice = Pick<Device, 'isProtocolV2' | 'toMessageObject'>;
|
|
19
|
+
type PostMessage = (message: CoreMessage) => void;
|
|
20
|
+
export declare const isProtocolV2UiEnabled: (method: {
|
|
21
|
+
protocolV2UiMode?: 'auto' | 'none';
|
|
22
|
+
}) => boolean;
|
|
23
|
+
export declare const resolveProtocolV2UiInteraction: (method: ProtocolV2InteractionMethod) => ProtocolV2InteractionDescriptor | undefined;
|
|
24
|
+
export declare class ProtocolV2UiInteractionCoordinator {
|
|
25
|
+
private readonly device;
|
|
26
|
+
private readonly postMessage;
|
|
27
|
+
private methodInteraction?;
|
|
28
|
+
private currentPhase?;
|
|
29
|
+
private opened;
|
|
30
|
+
private closed;
|
|
31
|
+
constructor(device: InteractionDevice, postMessage: PostMessage);
|
|
32
|
+
enterMethodInteraction(interaction?: ProtocolV2InteractionDescriptor): void;
|
|
33
|
+
enterUnlockInteraction(method?: string): void;
|
|
34
|
+
resumeMethodInteraction(): void;
|
|
35
|
+
close(): void;
|
|
36
|
+
private emit;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=uiInteraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uiInteraction.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/uiInteraction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,M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,+BAA+B;IAiBpE,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM;IActC,uBAAuB;IAIvB,KAAK;IAML,OAAO,CAAC,IAAI;CAcb"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseMethod } from '../../api/BaseMethod';
|
|
2
|
+
import type { Device } from '../../device/Device';
|
|
3
|
+
import type { ProtocolV2UiInteractionCoordinator } from './uiInteraction';
|
|
4
|
+
type RunnableMethod = Pick<BaseMethod, 'run' | 'unlockPolicy' | 'protocolV2UiInteraction' | 'protocolV2UiMode' | 'params' | 'payload'> & {
|
|
5
|
+
name?: string;
|
|
6
|
+
};
|
|
7
|
+
type UnlockableDevice = Pick<Device, 'isProtocolV2' | 'unlockDevice' | 'features'>;
|
|
8
|
+
type UiInteractionCoordinator = Pick<ProtocolV2UiInteractionCoordinator, 'enterMethodInteraction' | 'enterUnlockInteraction' | 'resumeMethodInteraction'>;
|
|
9
|
+
export declare function runMethodWithUnlockRetry(method: RunnableMethod, device: UnlockableDevice, uiCoordinator?: UiInteractionCoordinator): Promise<any>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=unlockRetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlockRetry.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/unlockRetry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAC;AAI1E,KAAK,cAAc,GAAG,IAAI,CACxB,UAAU,EACV,KAAK,GAAG,cAAc,GAAG,yBAAyB,GAAG,kBAAkB,GAAG,QAAQ,GAAG,SAAS,CAC/F,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACtB,KAAK,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,GAAG,UAAU,CAAC,CAAC;AACnF,KAAK,wBAAwB,GAAG,IAAI,CAClC,kCAAkC,EAClC,wBAAwB,GAAG,wBAAwB,GAAG,yBAAyB,CAChF,CAAC;AAEF,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,gBAAgB,EACxB,aAAa,CAAC,EAAE,wBAAwB,gBAoDzC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Device } from '../../device/Device';
|
|
2
|
+
export declare function requestProtocolV2DeviceStatus(device: Device): Promise<import("@onekeyfe/hd-transport").DeviceStatus>;
|
|
3
|
+
export declare function refreshProtocolV2DeviceStatus(device: Device): Promise<import("../..").Features>;
|
|
4
|
+
export declare function getProtocolV2WalletSession(device: Device, options?: {
|
|
5
|
+
initSession?: boolean;
|
|
6
|
+
expectedPassphraseState?: string;
|
|
7
|
+
onlyMainPin?: boolean;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
passphraseState: undefined;
|
|
10
|
+
newSession: undefined;
|
|
11
|
+
unlockedAttachPin: boolean;
|
|
12
|
+
resumed: boolean;
|
|
13
|
+
} | {
|
|
14
|
+
passphraseState: string;
|
|
15
|
+
newSession: string;
|
|
16
|
+
unlockedAttachPin: boolean | undefined;
|
|
17
|
+
resumed: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=walletSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletSession.d.ts","sourceRoot":"","sources":["../../../src/protocols/protocol-v2/walletSession.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,wBAAsB,6BAA6B,CAAC,MAAM,EAAE,MAAM,0DAGjE;AAED,wBAAsB,6BAA6B,CAAC,MAAM,EAAE,MAAM,qCAGjE;AAcD,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IACR,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;;;;;;;;;;GAsEF"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { IBLEFirmwareReleaseInfo } from '../settings';
|
|
2
2
|
import type { EFirmwareType } from '@onekeyfe/hd-shared';
|
|
3
|
-
import type { Features } from '@onekeyfe/hd-transport';
|
|
4
3
|
import type { CommonParams, Response } from '../params';
|
|
5
|
-
import type { IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus } from '../device';
|
|
4
|
+
import type { Features, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus } from '../device';
|
|
6
5
|
export type FirmwareRelease = {
|
|
7
6
|
shouldUpdate?: boolean;
|
|
8
7
|
status: IDeviceFirmwareStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkAllFirmwareRelease.d.ts","sourceRoot":"","sources":["../../../src/types/api/checkAllFirmwareRelease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"checkAllFirmwareRelease.d.ts","sourceRoot":"","sources":["../../../src/types/api/checkAllFirmwareRelease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE3F,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,CAAC,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;IACJ,OAAO,EAAE,wBAAwB,GAAG,uBAAuB,CAAC;IAC5D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,eAAe,CAAC;IAC1B,GAAG,EAAE,eAAe,CAAC;IACrB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,YAAY,GAAG,6BAA6B,GACpD,QAAQ,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Enum_SafetyCheckLevel, Success } from '@onekeyfe/hd-transport';
|
|
2
2
|
import type { CommonParams, Response } from '../params';
|
|
3
3
|
export type DeviceSettingsParams = {
|
|
4
4
|
language?: string;
|
|
@@ -9,11 +9,20 @@ export type DeviceSettingsParams = {
|
|
|
9
9
|
autoLockDelayMs?: number;
|
|
10
10
|
displayRotation?: number;
|
|
11
11
|
passphraseAlwaysOnDevice?: boolean;
|
|
12
|
-
safetyChecks?:
|
|
12
|
+
safetyChecks?: Enum_SafetyCheckLevel;
|
|
13
13
|
experimentalFeatures?: boolean;
|
|
14
14
|
autoShutdownDelayMs?: number;
|
|
15
15
|
changeBrightness?: boolean;
|
|
16
|
+
brightness?: number;
|
|
16
17
|
hapticFeedback?: boolean;
|
|
18
|
+
bluetoothEnabled?: boolean;
|
|
19
|
+
airgapMode?: boolean;
|
|
20
|
+
animationEnabled?: boolean;
|
|
21
|
+
tapToWake?: boolean;
|
|
22
|
+
deviceNameDisplayEnabled?: boolean;
|
|
23
|
+
fidoEnabled?: boolean;
|
|
24
|
+
usbLockEnabled?: boolean;
|
|
25
|
+
randomKeypad?: boolean;
|
|
17
26
|
};
|
|
18
27
|
export declare function deviceSettings(connectId: string, params: CommonParams & DeviceSettingsParams): Response<Success>;
|
|
19
28
|
//# sourceMappingURL=deviceSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceSettings.d.ts","sourceRoot":"","sources":["../../../src/types/api/deviceSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"deviceSettings.d.ts","sourceRoot":"","sources":["../../../src/types/api/deviceSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,oBAAoB,GAC1C,QAAQ,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DeviceState } from '../device';
|
|
2
2
|
import type { CommonParams, Response } from '../params';
|
|
3
|
-
export declare function deviceUnlock(connectId: string, params?: CommonParams): Response<
|
|
3
|
+
export declare function deviceUnlock(connectId: string, params?: CommonParams): Response<DeviceState>;
|
|
4
4
|
//# sourceMappingURL=deviceUnlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceUnlock.d.ts","sourceRoot":"","sources":["../../../src/types/api/deviceUnlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"deviceUnlock.d.ts","sourceRoot":"","sources":["../../../src/types/api/deviceUnlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,YAAY,GACpB,QAAQ,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -38,10 +38,12 @@ export interface FirmwareUpdateV3Params {
|
|
|
38
38
|
firmwareType?: EFirmwareType;
|
|
39
39
|
platform: IPlatform;
|
|
40
40
|
}
|
|
41
|
+
export type FirmwareUpdateV4Target = 'boot' | 'app_v1' | 'app_v2' | 'coprocessor' | 'resource' | 'se01' | 'se02' | 'se03' | 'se04';
|
|
41
42
|
export interface FirmwareUpdateV4Params {
|
|
42
43
|
platform: IPlatform;
|
|
43
44
|
chunkSize?: number;
|
|
44
45
|
firmwareType?: EFirmwareType;
|
|
46
|
+
targetsToUpdate?: FirmwareUpdateV4Target[];
|
|
45
47
|
romloaderBinary?: ArrayBuffer;
|
|
46
48
|
bootloaderBinary?: ArrayBuffer;
|
|
47
49
|
applicationP1Binary?: ArrayBuffer;
|
|
@@ -51,13 +53,11 @@ export interface FirmwareUpdateV4Params {
|
|
|
51
53
|
se02Binary?: ArrayBuffer;
|
|
52
54
|
se03Binary?: ArrayBuffer;
|
|
53
55
|
se04Binary?: ArrayBuffer;
|
|
54
|
-
resourceBinary?: ArrayBuffer;
|
|
55
56
|
forcedUpdateRes?: boolean;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
bleBinary?: ArrayBuffer;
|
|
57
|
+
resourceBundleFiles?: Array<{
|
|
58
|
+
binary: ArrayBuffer;
|
|
59
|
+
devicePath: string;
|
|
60
|
+
}>;
|
|
61
61
|
}
|
|
62
62
|
export declare function firmwareUpdateV3(connectId: string | undefined, params: Params<FirmwareUpdateV3Params>): Response<{
|
|
63
63
|
bleVersion: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firmwareUpdate.d.ts","sourceRoot":"","sources":["../../../src/types/api/firmwareUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MA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O,UAAU,gBAAgB,CACtC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,CAAC,sBAAsB,CAAC,GACrC,QAAQ,CAAC;IACV,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,CAAC,sBAAsB,CAAC,GACrC,QAAQ,CAAC;IACV,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DeviceState, DeviceStateSection } from '../device';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
|
+
export type DeviceStateScope = 'runtime' | 'settings' | 'firmware';
|
|
4
|
+
export type GetDeviceStateParams = CommonParams & {
|
|
5
|
+
scope?: DeviceStateScope;
|
|
6
|
+
};
|
|
7
|
+
export type DeviceStateReadOptions = {
|
|
8
|
+
refreshSections?: DeviceStateSection[];
|
|
9
|
+
includeRaw?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function getDeviceState(connectId?: string, params?: GetDeviceStateParams): Response<DeviceState>;
|
|
12
|
+
//# sourceMappingURL=getDeviceState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDeviceState.d.ts","sourceRoot":"","sources":["../../../src/types/api/getDeviceState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAEnE,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG;IAChD,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAGF,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,oBAAoB,GAC5B,QAAQ,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFeatures.d.ts","sourceRoot":"","sources":["../../../src/types/api/getFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"getFeatures.d.ts","sourceRoot":"","sources":["../../../src/types/api/getFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOnekeyFeatures.d.ts","sourceRoot":"","sources":["../../../src/types/api/getOnekeyFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"getOnekeyFeatures.d.ts","sourceRoot":"","sources":["../../../src/types/api/getOnekeyFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,YAAY,GACpB,QAAQ,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import type { CommonParams, Response } from '../params';
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
session_id?: string;
|
|
5
|
-
unlocked_attach_pin?: boolean;
|
|
6
|
-
passphrase_protection?: boolean | null;
|
|
7
|
-
};
|
|
8
|
-
export type GetPassphraseStateParams = CommonParams & {
|
|
9
|
-
allowCreateAttachPin?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function getPassphraseState(connectId?: string, params?: GetPassphraseStateParams): Response<GetPassphraseStatePayload>;
|
|
2
|
+
export type GetPassphraseStateParams = CommonParams;
|
|
3
|
+
export declare function getPassphraseState(connectId?: string, params?: GetPassphraseStateParams): Response<string | undefined>;
|
|
12
4
|
//# sourceMappingURL=getPassphraseState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPassphraseState.d.ts","sourceRoot":"","sources":["../../../src/types/api/getPassphraseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"getPassphraseState.d.ts","sourceRoot":"","sources":["../../../src/types/api/getPassphraseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAQpD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,wBAAwB,GAChC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { deviceFactoryInfoGet, deviceFactoryInfoSet, deviceFirmwareUpdate, deviceGetFirmwareUpdateStatus, deviceGetOnboardingStatus, deviceInfoGet, deviceReboot, deviceStatusGet, deviceUploadWallpaper, dirList, dirMake, dirRemove, fileDelete, fileRead, fileWrite, filesystemFormat, filesystemPermissionFix, pathInfo, ping, protocolInfoRequest, uploadPortfolio } from './protocolV2';
|
|
2
2
|
import type { off, on, removeAllListeners } from './event';
|
|
3
3
|
import type { uiResponse } from './uiResponse';
|
|
4
4
|
import type { init, updateSettings } from './init';
|
|
5
5
|
import type { testInitializeDeviceDuration } from './testInitializeDeviceDuration';
|
|
6
6
|
import type { preInitialize } from './preInitialize';
|
|
7
7
|
import type { getLogs } from './getLogs';
|
|
8
|
+
import type { clearSessionCache } from './sessionCache';
|
|
8
9
|
import type { checkBridgeStatus } from './checkBridgeStatus';
|
|
9
10
|
import type { checkBridgeRelease } from './checkBridgeRelease';
|
|
10
11
|
import type { checkBootloaderRelease } from './checkBootloaderRelease';
|
|
@@ -12,9 +13,10 @@ import type { checkAllFirmwareRelease } from './checkAllFirmwareRelease';
|
|
|
12
13
|
import type { checkFirmwareTypeAvailable } from './checkFirmwareTypeAvailable';
|
|
13
14
|
import type { searchDevices } from './searchDevices';
|
|
14
15
|
import type { getFeatures } from './getFeatures';
|
|
15
|
-
import type {
|
|
16
|
+
import type { getDeviceState } from './getDeviceState';
|
|
16
17
|
import type { getOnekeyFeatures } from './getOnekeyFeatures';
|
|
17
18
|
import type { getPassphraseState } from './getPassphraseState';
|
|
19
|
+
import type { openWalletSession } from './openWalletSession';
|
|
18
20
|
import type { checkFirmwareRelease } from './checkFirmwareRelease';
|
|
19
21
|
import type { checkBLEFirmwareRelease } from './checkBLEFirmwareRelease';
|
|
20
22
|
import type { firmwareUpdate, firmwareUpdateV2, firmwareUpdateV3, firmwareUpdateV4 } from './firmwareUpdate';
|
|
@@ -132,15 +134,17 @@ import type { neoGetAddress } from './neoGetAddress';
|
|
|
132
134
|
import type { neoSignTransaction } from './neoSignTransaction';
|
|
133
135
|
import type { ConnectSettings } from '../settings';
|
|
134
136
|
export * from './export';
|
|
135
|
-
export type {
|
|
136
|
-
export type { GetPassphraseStateParams
|
|
137
|
+
export type { DeviceStateScope, GetDeviceStateParams } from './getDeviceState';
|
|
138
|
+
export type { GetPassphraseStateParams } from './getPassphraseState';
|
|
139
|
+
export type { OpenWalletSessionParams, OpenWalletSessionPayload } from './openWalletSession';
|
|
140
|
+
export type { ClearSessionCacheParams, ClearSessionCachePayload } from './sessionCache';
|
|
137
141
|
export type CoreApi = {
|
|
138
142
|
init: typeof init;
|
|
139
143
|
on: typeof on;
|
|
140
144
|
off: typeof off;
|
|
141
145
|
emit: (event: string, ...args: any[]) => void;
|
|
142
146
|
removeAllListeners: typeof removeAllListeners;
|
|
143
|
-
dispose: () => void
|
|
147
|
+
dispose: () => void | Promise<void>;
|
|
144
148
|
call: (params: any) => Promise<any>;
|
|
145
149
|
uiResponse: typeof uiResponse;
|
|
146
150
|
cancel: (connectId?: string) => void;
|
|
@@ -149,6 +153,7 @@ export type CoreApi = {
|
|
|
149
153
|
success: boolean;
|
|
150
154
|
}>;
|
|
151
155
|
getLogs: typeof getLogs;
|
|
156
|
+
clearSessionCache: typeof clearSessionCache;
|
|
152
157
|
testInitializeDeviceDuration: typeof testInitializeDeviceDuration;
|
|
153
158
|
preInitialize: typeof preInitialize;
|
|
154
159
|
checkAllFirmwareRelease: typeof checkAllFirmwareRelease;
|
|
@@ -159,9 +164,10 @@ export type CoreApi = {
|
|
|
159
164
|
searchDevices: typeof searchDevices;
|
|
160
165
|
promptWebDeviceAccess: typeof promptWebDeviceAccess;
|
|
161
166
|
getFeatures: typeof getFeatures;
|
|
162
|
-
|
|
167
|
+
getDeviceState: typeof getDeviceState;
|
|
163
168
|
getOnekeyFeatures: typeof getOnekeyFeatures;
|
|
164
169
|
getPassphraseState: typeof getPassphraseState;
|
|
170
|
+
openWalletSession: typeof openWalletSession;
|
|
165
171
|
deviceBackup: typeof deviceBackup;
|
|
166
172
|
deviceChangePin: typeof deviceChangePin;
|
|
167
173
|
deviceFlags: typeof deviceFlags;
|
|
@@ -189,20 +195,20 @@ export type CoreApi = {
|
|
|
189
195
|
firmwareUpdateV3: typeof firmwareUpdateV3;
|
|
190
196
|
firmwareUpdateV4: typeof firmwareUpdateV4;
|
|
191
197
|
cipherKeyValue: typeof cipherKeyValue;
|
|
192
|
-
getProtoVersion: typeof getProtoVersion;
|
|
193
|
-
ping: typeof ping;
|
|
194
198
|
deviceReboot: typeof deviceReboot;
|
|
195
|
-
deviceGetDeviceInfo: typeof deviceGetDeviceInfo;
|
|
196
199
|
deviceGetOnboardingStatus: typeof deviceGetOnboardingStatus;
|
|
200
|
+
deviceUploadWallpaper: typeof deviceUploadWallpaper;
|
|
201
|
+
deviceInfoGet: typeof deviceInfoGet;
|
|
202
|
+
deviceStatusGet: typeof deviceStatusGet;
|
|
203
|
+
protocolInfoRequest: typeof protocolInfoRequest;
|
|
204
|
+
ping: typeof ping;
|
|
197
205
|
deviceFirmwareUpdate: typeof deviceFirmwareUpdate;
|
|
198
206
|
deviceGetFirmwareUpdateStatus: typeof deviceGetFirmwareUpdateStatus;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
factoryGetDeviceInfo: typeof factoryGetDeviceInfo;
|
|
205
|
-
filesystemFixPermission: typeof filesystemFixPermission;
|
|
207
|
+
deviceFactoryInfoSet: typeof deviceFactoryInfoSet;
|
|
208
|
+
deviceFactoryInfoGet: typeof deviceFactoryInfoGet;
|
|
209
|
+
filesystemPermissionFix: typeof filesystemPermissionFix;
|
|
210
|
+
filesystemFormat: typeof filesystemFormat;
|
|
211
|
+
uploadPortfolio: typeof uploadPortfolio;
|
|
206
212
|
fileRead: typeof fileRead;
|
|
207
213
|
fileWrite: typeof fileWrite;
|
|
208
214
|
fileDelete: typeof fileDelete;
|
|
@@ -210,15 +216,6 @@ export type CoreApi = {
|
|
|
210
216
|
dirMake: typeof dirMake;
|
|
211
217
|
dirRemove: typeof dirRemove;
|
|
212
218
|
pathInfo: typeof pathInfo;
|
|
213
|
-
filesystemFileRead: typeof filesystemFileRead;
|
|
214
|
-
filesystemFileWrite: typeof filesystemFileWrite;
|
|
215
|
-
filesystemFileDelete: typeof filesystemFileDelete;
|
|
216
|
-
filesystemDirList: typeof filesystemDirList;
|
|
217
|
-
filesystemDirMake: typeof filesystemDirMake;
|
|
218
|
-
filesystemDirRemove: typeof filesystemDirRemove;
|
|
219
|
-
filesystemPathInfoQuery: typeof filesystemPathInfoQuery;
|
|
220
|
-
filesystemFormat: typeof filesystemFormat;
|
|
221
|
-
filesystemDiskControl: typeof filesystemDiskControl;
|
|
222
219
|
allNetworkGetAddress: typeof allNetworkGetAddress;
|
|
223
220
|
allNetworkGetAddressByLoop: typeof allNetworkGetAddressByLoop;
|
|
224
221
|
evmGetAddress: typeof evmGetAddress;
|