@onekeyfe/hd-core 1.2.0-alpha.57 → 1.2.0-alpha.59
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 +84 -2
- package/__tests__/DeviceCommands.test.ts +14 -13
- package/__tests__/core-initialization.test.ts +23 -0
- package/__tests__/device-connector-protocol.test.ts +81 -0
- package/__tests__/device-pool-state.test.ts +22 -0
- package/__tests__/device-settings.test.ts +39 -18
- package/__tests__/device-state-mapper.test.ts +12 -0
- package/__tests__/device-utils.test.ts +48 -1
- package/__tests__/deviceSettings.test.ts +10 -0
- package/__tests__/deviceUploadNft.test.ts +4 -28
- package/__tests__/kaspa-use-tweak-pro2.test.ts +2 -2
- package/__tests__/protocol-v2-resources.test.ts +48 -9
- package/__tests__/protocol-v2-unlock-policy.test.ts +34 -0
- package/__tests__/protocol-v2.test.ts +208 -263
- package/__tests__/protocolV2FileWrite.test.ts +113 -0
- package/__tests__/public-pro2-api-boundary.test.ts +2 -98
- package/__tests__/tron-sign-message-init.test.ts +2 -2
- package/dist/api/CheckAllFirmwareRelease.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV4.d.ts +4 -4
- package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
- package/dist/api/OpenWalletSession.d.ts.map +1 -1
- package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
- package/dist/api/device/DeviceSettings.d.ts.map +1 -1
- package/dist/api/device/DeviceVerify.d.ts.map +1 -1
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +4 -2
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
- package/dist/api/helpers/protocolV2FileWrite.d.ts +7 -0
- package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -1
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/kaspa/KaspaGetAddress.d.ts +1 -1
- package/dist/api/kaspa/KaspaSignTransaction.d.ts +1 -1
- package/dist/api/polkadot/PolkadotGetAddress.d.ts +1 -1
- package/dist/api/polkadot/networks.d.ts +1 -1
- package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceUploadNft.d.ts.map +1 -1
- package/dist/api/protocol-v2/helpers.d.ts +5 -15
- package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
- package/dist/api/solana/SolSignMessage.d.ts +1 -1
- package/dist/api/solana/SolSignOffchainMessage.d.ts +1 -1
- package/dist/api/solana/SolSignTransaction.d.ts +2 -2
- package/dist/api/stellar/StellarSignTransaction.d.ts +1 -1
- package/dist/api/sui/SuiGetAddress.d.ts +1 -1
- package/dist/api/sui/SuiGetPublicKey.d.ts +1 -1
- package/dist/api/sui/SuiSignMessage.d.ts +1 -1
- package/dist/api/sui/SuiSignTransaction.d.ts +1 -1
- package/dist/api/ton/TonGetAddress.d.ts +1 -1
- package/dist/api/ton/TonSignMessage.d.ts +1 -1
- package/dist/api/ton/TonSignProof.d.ts +1 -1
- package/dist/api/tron/TronSignMessage.d.ts +2 -2
- package/dist/api/tron/TronSignTransaction.d.ts +1 -1
- package/dist/api/utils.d.ts +1 -6
- package/dist/api/utils.d.ts.map +1 -1
- package/dist/core/index.d.ts +4 -10
- package/dist/core/index.d.ts.map +1 -1
- package/dist/data-manager/DataManager.d.ts +8 -5
- package/dist/data-manager/DataManager.d.ts.map +1 -1
- package/dist/data-manager/TransportManager.d.ts.map +1 -1
- package/dist/device/Device.d.ts.map +1 -1
- package/dist/device/DeviceCommands.d.ts.map +1 -1
- package/dist/device/DeviceConnector.d.ts +2 -1
- package/dist/device/DeviceConnector.d.ts.map +1 -1
- package/dist/device/DevicePool.d.ts.map +1 -1
- package/dist/deviceProfile/protocolV2DeviceIdentity.d.ts.map +1 -1
- package/dist/index.d.ts +87 -756
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +723 -3114
- package/dist/inject.d.ts +2 -6
- package/dist/inject.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/resources.d.ts +2 -2
- package/dist/protocols/protocol-v2/resources.d.ts.map +1 -1
- package/dist/types/api/checkAllFirmwareRelease.d.ts +1 -1
- package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -1
- package/dist/types/api/firmwareUpdate.d.ts +3 -2
- package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +3 -176
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/protocolV2.d.ts +2 -8
- package/dist/types/api/protocolV2.d.ts.map +1 -1
- package/dist/types/device.d.ts +2 -2
- package/dist/types/device.d.ts.map +1 -1
- package/dist/types/settings.d.ts +22 -14
- package/dist/types/settings.d.ts.map +1 -1
- package/dist/utils/deviceFeaturesCompat.d.ts.map +1 -1
- package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
- package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
- package/dist/utils/deviceSettings.d.ts.map +1 -1
- package/dist/utils/patch.d.ts +1 -1
- package/dist/utils/patch.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/api/CheckAllFirmwareRelease.ts +7 -5
- package/src/api/FirmwareUpdateV4.ts +154 -171
- package/src/api/OpenWalletSession.ts +1 -0
- package/src/api/allnetwork/AllNetworkGetAddressBase.ts +3 -1
- package/src/api/device/DeviceSettings.ts +5 -4
- package/src/api/device/DeviceVerify.ts +0 -2
- package/src/api/firmware/FirmwareUpdateBaseMethod.ts +12 -1
- package/src/api/helpers/protocolV2FileWrite.ts +192 -73
- package/src/api/index.ts +0 -3
- package/src/api/kaspa/KaspaGetAddress.ts +1 -1
- package/src/api/kaspa/KaspaSignTransaction.ts +1 -1
- package/src/api/polkadot/networks.ts +3 -3
- package/src/api/protocol-v2/DeviceFactoryInfoGet.ts +0 -3
- package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +7 -6
- package/src/api/protocol-v2/DeviceUploadNft.ts +7 -12
- package/src/api/protocol-v2/helpers.ts +5 -153
- package/src/api/solana/SolSignMessage.ts +1 -1
- package/src/api/solana/SolSignOffchainMessage.ts +1 -1
- package/src/api/solana/SolSignTransaction.ts +2 -2
- package/src/api/sui/SuiGetAddress.ts +1 -1
- package/src/api/sui/SuiGetPublicKey.ts +1 -1
- package/src/api/sui/SuiSignMessage.ts +1 -1
- package/src/api/sui/SuiSignTransaction.ts +1 -1
- package/src/api/ton/TonGetAddress.ts +1 -1
- package/src/api/ton/TonSignMessage.ts +1 -1
- package/src/api/ton/TonSignProof.ts +1 -1
- package/src/api/tron/TronSignMessage.ts +2 -2
- package/src/api/tron/TronSignTransaction.ts +1 -1
- package/src/api/utils.ts +1 -46
- package/src/core/index.ts +16 -28
- package/src/data-manager/DataManager.ts +51 -11
- package/src/data-manager/TransportManager.ts +6 -0
- package/src/device/Device.ts +15 -6
- package/src/device/DeviceCommands.ts +24 -3
- package/src/device/DeviceConnector.ts +33 -13
- package/src/device/DevicePool.ts +17 -8
- package/src/deviceProfile/buildDeviceFeatures.ts +2 -2
- package/src/deviceProfile/protocolV2DeviceIdentity.ts +3 -0
- package/src/index.ts +0 -5
- package/src/inject.ts +7 -209
- package/src/protocols/protocol-v2/resources.ts +44 -13
- package/src/types/api/checkAllFirmwareRelease.ts +1 -1
- package/src/types/api/firmwareUpdate.ts +5 -5
- package/src/types/api/index.ts +2 -288
- package/src/types/api/protocolV2.ts +2 -43
- package/src/types/device.ts +12 -3
- package/src/types/settings.ts +30 -21
- package/src/utils/deviceFeaturesCompat.ts +5 -0
- package/src/utils/deviceFeaturesUtils.ts +6 -3
- package/src/utils/deviceInfoUtils.ts +2 -0
- package/src/utils/deviceSettings.ts +3 -0
- package/__tests__/public-test-api-boundary.test.ts +0 -167
- package/dist/api/BixinBackupDevice.d.ts +0 -7
- package/dist/api/BixinBackupDevice.d.ts.map +0 -1
- package/dist/api/BixinLoadDevice.d.ts +0 -7
- package/dist/api/BixinLoadDevice.d.ts.map +0 -1
- package/dist/api/BixinMessageSE.d.ts +0 -8
- package/dist/api/BixinMessageSE.d.ts.map +0 -1
- package/dist/api/BixinVerifyDeviceRequest.d.ts +0 -8
- package/dist/api/BixinVerifyDeviceRequest.d.ts.map +0 -1
- package/dist/api/WebAuthnAddResidentCredential.d.ts +0 -8
- package/dist/api/WebAuthnAddResidentCredential.d.ts.map +0 -1
- package/dist/api/WebAuthnListResidentCredentials.d.ts +0 -8
- package/dist/api/WebAuthnListResidentCredentials.d.ts.map +0 -1
- package/dist/api/WebAuthnRemoveResidentCredential.d.ts +0 -8
- package/dist/api/WebAuthnRemoveResidentCredential.d.ts.map +0 -1
- package/dist/api/binance/BinanceGetAddress.d.ts +0 -8
- package/dist/api/binance/BinanceGetAddress.d.ts.map +0 -1
- package/dist/api/binance/BinanceGetPublicKey.d.ts +0 -8
- package/dist/api/binance/BinanceGetPublicKey.d.ts.map +0 -1
- package/dist/api/binance/BinanceSignTx.d.ts +0 -7
- package/dist/api/binance/BinanceSignTx.d.ts.map +0 -1
- package/dist/api/btc/BTCAuthorizeCoinJoin.d.ts +0 -7
- package/dist/api/btc/BTCAuthorizeCoinJoin.d.ts.map +0 -1
- package/dist/api/btc/BTCGetOwnershipId.d.ts +0 -7
- package/dist/api/btc/BTCGetOwnershipId.d.ts.map +0 -1
- package/dist/api/btc/BTCGetOwnershipProof.d.ts +0 -7
- package/dist/api/btc/BTCGetOwnershipProof.d.ts.map +0 -1
- package/dist/api/crypto/CryptoBatchGetPublickeys.d.ts +0 -8
- package/dist/api/crypto/CryptoBatchGetPublickeys.d.ts.map +0 -1
- package/dist/api/crypto/CryptoCipherKeyValue.d.ts +0 -8
- package/dist/api/crypto/CryptoCipherKeyValue.d.ts.map +0 -1
- package/dist/api/crypto/CryptoCosiCommit.d.ts +0 -8
- package/dist/api/crypto/CryptoCosiCommit.d.ts.map +0 -1
- package/dist/api/crypto/CryptoCosiSign.d.ts +0 -8
- package/dist/api/crypto/CryptoCosiSign.d.ts.map +0 -1
- package/dist/api/crypto/CryptoGetECDHSessionKey.d.ts +0 -8
- package/dist/api/crypto/CryptoGetECDHSessionKey.d.ts.map +0 -1
- package/dist/api/crypto/CryptoSignIdentity.d.ts +0 -8
- package/dist/api/crypto/CryptoSignIdentity.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkDecision.d.ts +0 -7
- package/dist/api/debug/DebugLinkDecision.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkEraseSdCard.d.ts +0 -7
- package/dist/api/debug/DebugLinkEraseSdCard.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkFlashErase.d.ts +0 -7
- package/dist/api/debug/DebugLinkFlashErase.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkGetState.d.ts +0 -7
- package/dist/api/debug/DebugLinkGetState.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkMemoryRead.d.ts +0 -7
- package/dist/api/debug/DebugLinkMemoryRead.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkMemoryWrite.d.ts +0 -7
- package/dist/api/debug/DebugLinkMemoryWrite.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkRecordScreen.d.ts +0 -7
- package/dist/api/debug/DebugLinkRecordScreen.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkReseedRandom.d.ts +0 -7
- package/dist/api/debug/DebugLinkReseedRandom.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkStop.d.ts +0 -7
- package/dist/api/debug/DebugLinkStop.d.ts.map +0 -1
- package/dist/api/debug/DebugLinkWatchLayout.d.ts +0 -7
- package/dist/api/debug/DebugLinkWatchLayout.d.ts.map +0 -1
- package/dist/api/emmc/EmmcDirList.d.ts +0 -7
- package/dist/api/emmc/EmmcDirList.d.ts.map +0 -1
- package/dist/api/emmc/EmmcDirMake.d.ts +0 -7
- package/dist/api/emmc/EmmcDirMake.d.ts.map +0 -1
- package/dist/api/emmc/EmmcDirRemove.d.ts +0 -7
- package/dist/api/emmc/EmmcDirRemove.d.ts.map +0 -1
- package/dist/api/emmc/EmmcFileDelete.d.ts +0 -7
- package/dist/api/emmc/EmmcFileDelete.d.ts.map +0 -1
- package/dist/api/emmc/EmmcFileRead.d.ts +0 -7
- package/dist/api/emmc/EmmcFileRead.d.ts.map +0 -1
- package/dist/api/emmc/EmmcFileWrite.d.ts +0 -7
- package/dist/api/emmc/EmmcFileWrite.d.ts.map +0 -1
- package/dist/api/emmc/EmmcFixPermission.d.ts +0 -7
- package/dist/api/emmc/EmmcFixPermission.d.ts.map +0 -1
- package/dist/api/emmc/EmmcPathInfo.d.ts +0 -7
- package/dist/api/emmc/EmmcPathInfo.d.ts.map +0 -1
- package/dist/api/eos/EosGetPublicKey.d.ts +0 -8
- package/dist/api/eos/EosGetPublicKey.d.ts.map +0 -1
- package/dist/api/eos/EosSignTx.d.ts +0 -12
- package/dist/api/eos/EosSignTx.d.ts.map +0 -1
- package/dist/api/evmTrezor/EVMGetAddress.d.ts +0 -10
- package/dist/api/evmTrezor/EVMGetAddress.d.ts.map +0 -1
- package/dist/api/evmTrezor/EVMGetPublicKey.d.ts +0 -16
- package/dist/api/evmTrezor/EVMGetPublicKey.d.ts.map +0 -1
- package/dist/api/evmTrezor/EVMSignMessage.d.ts +0 -7
- package/dist/api/evmTrezor/EVMSignMessage.d.ts.map +0 -1
- package/dist/api/evmTrezor/EVMSignTransaction.d.ts +0 -15
- package/dist/api/evmTrezor/EVMSignTransaction.d.ts.map +0 -1
- package/dist/api/evmTrezor/EVMSignTypedData.d.ts +0 -43
- package/dist/api/evmTrezor/EVMSignTypedData.d.ts.map +0 -1
- package/dist/api/evmTrezor/EVMVerifyMessage.d.ts +0 -7
- package/dist/api/evmTrezor/EVMVerifyMessage.d.ts.map +0 -1
- package/dist/api/evmTrezor/legacyV1/getAddress.d.ts +0 -6
- package/dist/api/evmTrezor/legacyV1/getAddress.d.ts.map +0 -1
- package/dist/api/evmTrezor/legacyV1/getPublicKey.d.ts +0 -6
- package/dist/api/evmTrezor/legacyV1/getPublicKey.d.ts.map +0 -1
- package/dist/api/evmTrezor/legacyV1/signMessage.d.ts +0 -6
- package/dist/api/evmTrezor/legacyV1/signMessage.d.ts.map +0 -1
- package/dist/api/evmTrezor/legacyV1/signTransaction.d.ts +0 -9
- package/dist/api/evmTrezor/legacyV1/signTransaction.d.ts.map +0 -1
- package/dist/api/evmTrezor/legacyV1/signTypedData.d.ts +0 -10
- package/dist/api/evmTrezor/legacyV1/signTypedData.d.ts.map +0 -1
- package/dist/api/evmTrezor/legacyV1/signTypedHash.d.ts +0 -11
- package/dist/api/evmTrezor/legacyV1/signTypedHash.d.ts.map +0 -1
- package/dist/api/evmTrezor/legacyV1/verifyMessage.d.ts +0 -6
- package/dist/api/evmTrezor/legacyV1/verifyMessage.d.ts.map +0 -1
- package/dist/api/extensionMethodNames.d.ts +0 -3
- package/dist/api/extensionMethodNames.d.ts.map +0 -1
- package/dist/api/factoryMethods.d.ts +0 -3
- package/dist/api/factoryMethods.d.ts.map +0 -1
- package/dist/api/firmware/FirmwareErase.d.ts +0 -12
- package/dist/api/firmware/FirmwareErase.d.ts.map +0 -1
- package/dist/api/firmware/FirmwareEraseEx.d.ts +0 -12
- package/dist/api/firmware/FirmwareEraseEx.d.ts.map +0 -1
- package/dist/api/firmware/FirmwareUpdateEmmcTest.d.ts +0 -7
- package/dist/api/firmware/FirmwareUpdateEmmcTest.d.ts.map +0 -1
- package/dist/api/firmware/FirmwareUploadTest.d.ts +0 -7
- package/dist/api/firmware/FirmwareUploadTest.d.ts.map +0 -1
- package/dist/api/firmware/Reboot.d.ts +0 -7
- package/dist/api/firmware/Reboot.d.ts.map +0 -1
- package/dist/api/firmware/SelfTest.d.ts +0 -7
- package/dist/api/firmware/SelfTest.d.ts.map +0 -1
- package/dist/api/manager/DeviceCancelAuthorization.d.ts +0 -7
- package/dist/api/manager/DeviceCancelAuthorization.d.ts.map +0 -1
- package/dist/api/manager/DeviceChangeWipeCode.d.ts +0 -7
- package/dist/api/manager/DeviceChangeWipeCode.d.ts.map +0 -1
- package/dist/api/manager/DeviceDoPreauthorized.d.ts +0 -7
- package/dist/api/manager/DeviceDoPreauthorized.d.ts.map +0 -1
- package/dist/api/manager/DeviceEndSession.d.ts +0 -7
- package/dist/api/manager/DeviceEndSession.d.ts.map +0 -1
- package/dist/api/manager/DeviceGetEntropy.d.ts +0 -7
- package/dist/api/manager/DeviceGetEntropy.d.ts.map +0 -1
- package/dist/api/manager/DeviceGetFirmwareHash.d.ts +0 -7
- package/dist/api/manager/DeviceGetFirmwareHash.d.ts.map +0 -1
- package/dist/api/manager/DeviceInfoSettings.d.ts +0 -7
- package/dist/api/manager/DeviceInfoSettings.d.ts.map +0 -1
- package/dist/api/manager/DeviceLoad.d.ts +0 -7
- package/dist/api/manager/DeviceLoad.d.ts.map +0 -1
- package/dist/api/manager/DevicePing.d.ts +0 -7
- package/dist/api/manager/DevicePing.d.ts.map +0 -1
- package/dist/api/manager/DeviceReadSEPublicCert.d.ts +0 -7
- package/dist/api/manager/DeviceReadSEPublicCert.d.ts.map +0 -1
- package/dist/api/manager/DeviceSESignMessage.d.ts +0 -7
- package/dist/api/manager/DeviceSESignMessage.d.ts.map +0 -1
- package/dist/api/manager/DeviceSdProtect.d.ts +0 -7
- package/dist/api/manager/DeviceSdProtect.d.ts.map +0 -1
- package/dist/api/manager/DeviceSpiFlashRead.d.ts +0 -7
- package/dist/api/manager/DeviceSpiFlashRead.d.ts.map +0 -1
- package/dist/api/manager/DeviceSpiFlashWrite.d.ts +0 -7
- package/dist/api/manager/DeviceSpiFlashWrite.d.ts.map +0 -1
- package/dist/api/manager/DeviceUnlockPath.d.ts +0 -7
- package/dist/api/manager/DeviceUnlockPath.d.ts.map +0 -1
- package/dist/api/manager/DeviceWriteSEPrivateKey.d.ts +0 -7
- package/dist/api/manager/DeviceWriteSEPrivateKey.d.ts.map +0 -1
- package/dist/api/manager/DeviceWriteSEPublicCert.d.ts +0 -7
- package/dist/api/manager/DeviceWriteSEPublicCert.d.ts.map +0 -1
- package/dist/api/manager/GetDeviceInfoSettings.d.ts +0 -7
- package/dist/api/manager/GetDeviceInfoSettings.d.ts.map +0 -1
- package/dist/api/manager/GetPublicKeyMultiple.d.ts +0 -7
- package/dist/api/manager/GetPublicKeyMultiple.d.ts.map +0 -1
- package/dist/api/manager/ListResDir.d.ts +0 -7
- package/dist/api/manager/ListResDir.d.ts.map +0 -1
- package/dist/api/manager/NFTWriteData.d.ts +0 -7
- package/dist/api/manager/NFTWriteData.d.ts.map +0 -1
- package/dist/api/manager/NFTWriteInfo.d.ts +0 -7
- package/dist/api/manager/NFTWriteInfo.d.ts.map +0 -1
- package/dist/api/manager/ReadSEPublicKey.d.ts +0 -7
- package/dist/api/manager/ReadSEPublicKey.d.ts.map +0 -1
- package/dist/api/manager/ResourceUpdate.d.ts +0 -6
- package/dist/api/manager/ResourceUpdate.d.ts.map +0 -1
- package/dist/api/methodExtension.d.ts +0 -13
- package/dist/api/methodExtension.d.ts.map +0 -1
- package/dist/api/monero/MoneroGetAddress.d.ts +0 -9
- package/dist/api/monero/MoneroGetAddress.d.ts.map +0 -1
- package/dist/api/monero/MoneroGetWatchKey.d.ts +0 -8
- package/dist/api/monero/MoneroGetWatchKey.d.ts.map +0 -1
- package/dist/api/nem/NEMDecryptMessage.d.ts +0 -8
- package/dist/api/nem/NEMDecryptMessage.d.ts.map +0 -1
- package/dist/api/protocol-v2/DeviceFactoryCertificateRead.d.ts +0 -7
- package/dist/api/protocol-v2/DeviceFactoryCertificateRead.d.ts.map +0 -1
- package/dist/api/protocol-v2/DeviceFactoryCertificateWrite.d.ts +0 -8
- package/dist/api/protocol-v2/DeviceFactoryCertificateWrite.d.ts.map +0 -1
- package/dist/api/protocol-v2/DeviceFactoryChallengeSign.d.ts +0 -8
- package/dist/api/protocol-v2/DeviceFactoryChallengeSign.d.ts.map +0 -1
- package/dist/api/testMethods.d.ts +0 -82
- package/dist/api/testMethods.d.ts.map +0 -1
- package/dist/api/tezos/TezosGetAddress.d.ts +0 -9
- package/dist/api/tezos/TezosGetAddress.d.ts.map +0 -1
- package/dist/api/tezos/TezosGetPublicKey.d.ts +0 -8
- package/dist/api/tezos/TezosGetPublicKey.d.ts.map +0 -1
- package/dist/api/tezos/TezosSignTx.d.ts +0 -12
- package/dist/api/tezos/TezosSignTx.d.ts.map +0 -1
- package/dist/types/api/binanceGetAddress.d.ts +0 -11
- package/dist/types/api/binanceGetAddress.d.ts.map +0 -1
- package/dist/types/api/binanceGetPublicKey.d.ts +0 -11
- package/dist/types/api/binanceGetPublicKey.d.ts.map +0 -1
- package/dist/types/api/binanceSignTx.d.ts +0 -7
- package/dist/types/api/binanceSignTx.d.ts.map +0 -1
- package/dist/types/api/bixinBackupDevice.d.ts +0 -4
- package/dist/types/api/bixinBackupDevice.d.ts.map +0 -1
- package/dist/types/api/bixinLoadDevice.d.ts +0 -4
- package/dist/types/api/bixinLoadDevice.d.ts.map +0 -1
- package/dist/types/api/bixinMessageSE.d.ts +0 -4
- package/dist/types/api/bixinMessageSE.d.ts.map +0 -1
- package/dist/types/api/bixinVerifyDeviceRequest.d.ts +0 -4
- package/dist/types/api/bixinVerifyDeviceRequest.d.ts.map +0 -1
- package/dist/types/api/btcAuthorizeCoinJoin.d.ts +0 -13
- package/dist/types/api/btcAuthorizeCoinJoin.d.ts.map +0 -1
- package/dist/types/api/btcGetOwnershipId.d.ts +0 -10
- package/dist/types/api/btcGetOwnershipId.d.ts.map +0 -1
- package/dist/types/api/btcGetOwnershipProof.d.ts +0 -13
- package/dist/types/api/btcGetOwnershipProof.d.ts.map +0 -1
- package/dist/types/api/cryptoBatchGetPublickeys.d.ts +0 -12
- package/dist/types/api/cryptoBatchGetPublickeys.d.ts.map +0 -1
- package/dist/types/api/cryptoCipherKeyValue.d.ts +0 -13
- package/dist/types/api/cryptoCipherKeyValue.d.ts.map +0 -1
- package/dist/types/api/cryptoCosiCommit.d.ts +0 -8
- package/dist/types/api/cryptoCosiCommit.d.ts.map +0 -1
- package/dist/types/api/cryptoCosiSign.d.ts +0 -10
- package/dist/types/api/cryptoCosiSign.d.ts.map +0 -1
- package/dist/types/api/cryptoGetECDHSessionKey.d.ts +0 -4
- package/dist/types/api/cryptoGetECDHSessionKey.d.ts.map +0 -1
- package/dist/types/api/cryptoSignIdentity.d.ts +0 -4
- package/dist/types/api/cryptoSignIdentity.d.ts.map +0 -1
- package/dist/types/api/debugLinkDecision.d.ts +0 -4
- package/dist/types/api/debugLinkDecision.d.ts.map +0 -1
- package/dist/types/api/debugLinkEraseSdCard.d.ts +0 -4
- package/dist/types/api/debugLinkEraseSdCard.d.ts.map +0 -1
- package/dist/types/api/debugLinkFlashErase.d.ts +0 -4
- package/dist/types/api/debugLinkFlashErase.d.ts.map +0 -1
- package/dist/types/api/debugLinkGetState.d.ts +0 -4
- package/dist/types/api/debugLinkGetState.d.ts.map +0 -1
- package/dist/types/api/debugLinkMemoryRead.d.ts +0 -4
- package/dist/types/api/debugLinkMemoryRead.d.ts.map +0 -1
- package/dist/types/api/debugLinkMemoryWrite.d.ts +0 -4
- package/dist/types/api/debugLinkMemoryWrite.d.ts.map +0 -1
- package/dist/types/api/debugLinkRecordScreen.d.ts +0 -4
- package/dist/types/api/debugLinkRecordScreen.d.ts.map +0 -1
- package/dist/types/api/debugLinkReseedRandom.d.ts +0 -4
- package/dist/types/api/debugLinkReseedRandom.d.ts.map +0 -1
- package/dist/types/api/debugLinkStop.d.ts +0 -4
- package/dist/types/api/debugLinkStop.d.ts.map +0 -1
- package/dist/types/api/debugLinkWatchLayout.d.ts +0 -4
- package/dist/types/api/debugLinkWatchLayout.d.ts.map +0 -1
- package/dist/types/api/deviceCancelAuthorization.d.ts +0 -4
- package/dist/types/api/deviceCancelAuthorization.d.ts.map +0 -1
- package/dist/types/api/deviceChangeWipeCode.d.ts +0 -4
- package/dist/types/api/deviceChangeWipeCode.d.ts.map +0 -1
- package/dist/types/api/deviceDoPreauthorized.d.ts +0 -4
- package/dist/types/api/deviceDoPreauthorized.d.ts.map +0 -1
- package/dist/types/api/deviceEndSession.d.ts +0 -4
- package/dist/types/api/deviceEndSession.d.ts.map +0 -1
- package/dist/types/api/deviceGetEntropy.d.ts +0 -4
- package/dist/types/api/deviceGetEntropy.d.ts.map +0 -1
- package/dist/types/api/deviceGetFirmwareHash.d.ts +0 -4
- package/dist/types/api/deviceGetFirmwareHash.d.ts.map +0 -1
- package/dist/types/api/deviceGetInfo.d.ts +0 -4
- package/dist/types/api/deviceGetInfo.d.ts.map +0 -1
- package/dist/types/api/deviceInfoSettings.d.ts +0 -4
- package/dist/types/api/deviceInfoSettings.d.ts.map +0 -1
- package/dist/types/api/deviceLoad.d.ts +0 -16
- package/dist/types/api/deviceLoad.d.ts.map +0 -1
- package/dist/types/api/devicePing.d.ts +0 -4
- package/dist/types/api/devicePing.d.ts.map +0 -1
- package/dist/types/api/deviceReadSEPublicCert.d.ts +0 -4
- package/dist/types/api/deviceReadSEPublicCert.d.ts.map +0 -1
- package/dist/types/api/deviceSESignMessage.d.ts +0 -4
- package/dist/types/api/deviceSESignMessage.d.ts.map +0 -1
- package/dist/types/api/deviceSdProtect.d.ts +0 -4
- package/dist/types/api/deviceSdProtect.d.ts.map +0 -1
- package/dist/types/api/deviceSpiFlashRead.d.ts +0 -4
- package/dist/types/api/deviceSpiFlashRead.d.ts.map +0 -1
- package/dist/types/api/deviceSpiFlashWrite.d.ts +0 -4
- package/dist/types/api/deviceSpiFlashWrite.d.ts.map +0 -1
- package/dist/types/api/deviceUnlockPath.d.ts +0 -11
- package/dist/types/api/deviceUnlockPath.d.ts.map +0 -1
- package/dist/types/api/deviceWriteSEPrivateKey.d.ts +0 -4
- package/dist/types/api/deviceWriteSEPrivateKey.d.ts.map +0 -1
- package/dist/types/api/deviceWriteSEPublicCert.d.ts +0 -4
- package/dist/types/api/deviceWriteSEPublicCert.d.ts.map +0 -1
- package/dist/types/api/emmcDirList.d.ts +0 -4
- package/dist/types/api/emmcDirList.d.ts.map +0 -1
- package/dist/types/api/emmcDirMake.d.ts +0 -4
- package/dist/types/api/emmcDirMake.d.ts.map +0 -1
- package/dist/types/api/emmcDirRemove.d.ts +0 -4
- package/dist/types/api/emmcDirRemove.d.ts.map +0 -1
- package/dist/types/api/emmcFileDelete.d.ts +0 -4
- package/dist/types/api/emmcFileDelete.d.ts.map +0 -1
- package/dist/types/api/emmcFileRead.d.ts +0 -4
- package/dist/types/api/emmcFileRead.d.ts.map +0 -1
- package/dist/types/api/emmcFileWrite.d.ts +0 -4
- package/dist/types/api/emmcFileWrite.d.ts.map +0 -1
- package/dist/types/api/emmcFixPermission.d.ts +0 -4
- package/dist/types/api/emmcFixPermission.d.ts.map +0 -1
- package/dist/types/api/emmcPathInfo.d.ts +0 -4
- package/dist/types/api/emmcPathInfo.d.ts.map +0 -1
- package/dist/types/api/eosGetPublicKey.d.ts +0 -8
- package/dist/types/api/eosGetPublicKey.d.ts.map +0 -1
- package/dist/types/api/eosSignTx.d.ts +0 -7
- package/dist/types/api/eosSignTx.d.ts.map +0 -1
- package/dist/types/api/evmGetAddressTrezor.d.ts +0 -15
- package/dist/types/api/evmGetAddressTrezor.d.ts.map +0 -1
- package/dist/types/api/evmGetPublicKeyTrezor.d.ts +0 -20
- package/dist/types/api/evmGetPublicKeyTrezor.d.ts.map +0 -1
- package/dist/types/api/evmSignMessageTrezor.d.ts +0 -9
- package/dist/types/api/evmSignMessageTrezor.d.ts.map +0 -1
- package/dist/types/api/evmSignTransactionTrezor.d.ts +0 -40
- package/dist/types/api/evmSignTransactionTrezor.d.ts.map +0 -1
- package/dist/types/api/evmSignTypedDataTrezor.d.ts +0 -34
- package/dist/types/api/evmSignTypedDataTrezor.d.ts.map +0 -1
- package/dist/types/api/evmVerifyMessageTrezor.d.ts +0 -10
- package/dist/types/api/evmVerifyMessageTrezor.d.ts.map +0 -1
- package/dist/types/api/firmwareErase.d.ts +0 -4
- package/dist/types/api/firmwareErase.d.ts.map +0 -1
- package/dist/types/api/firmwareEraseEx.d.ts +0 -4
- package/dist/types/api/firmwareEraseEx.d.ts.map +0 -1
- package/dist/types/api/firmwareUpdateEmmcTest.d.ts +0 -4
- package/dist/types/api/firmwareUpdateEmmcTest.d.ts.map +0 -1
- package/dist/types/api/firmwareUploadTest.d.ts +0 -4
- package/dist/types/api/firmwareUploadTest.d.ts.map +0 -1
- package/dist/types/api/getPublicKeyMultiple.d.ts +0 -4
- package/dist/types/api/getPublicKeyMultiple.d.ts.map +0 -1
- package/dist/types/api/listResDir.d.ts +0 -4
- package/dist/types/api/listResDir.d.ts.map +0 -1
- package/dist/types/api/moneroGetAddress.d.ts +0 -14
- package/dist/types/api/moneroGetAddress.d.ts.map +0 -1
- package/dist/types/api/moneroGetWatchKey.d.ts +0 -14
- package/dist/types/api/moneroGetWatchKey.d.ts.map +0 -1
- package/dist/types/api/nemDecryptMessage.d.ts +0 -10
- package/dist/types/api/nemDecryptMessage.d.ts.map +0 -1
- package/dist/types/api/nftWriteData.d.ts +0 -4
- package/dist/types/api/nftWriteData.d.ts.map +0 -1
- package/dist/types/api/nftWriteInfo.d.ts +0 -4
- package/dist/types/api/nftWriteInfo.d.ts.map +0 -1
- package/dist/types/api/readSEPublicKey.d.ts +0 -4
- package/dist/types/api/readSEPublicKey.d.ts.map +0 -1
- package/dist/types/api/reboot.d.ts +0 -4
- package/dist/types/api/reboot.d.ts.map +0 -1
- package/dist/types/api/resourceUpdate.d.ts +0 -7
- package/dist/types/api/resourceUpdate.d.ts.map +0 -1
- package/dist/types/api/selfTest.d.ts +0 -4
- package/dist/types/api/selfTest.d.ts.map +0 -1
- package/dist/types/api/tezosGetAddress.d.ts +0 -14
- package/dist/types/api/tezosGetAddress.d.ts.map +0 -1
- package/dist/types/api/tezosGetPublicKey.d.ts +0 -14
- package/dist/types/api/tezosGetPublicKey.d.ts.map +0 -1
- package/dist/types/api/tezosSignTx.d.ts +0 -7
- package/dist/types/api/tezosSignTx.d.ts.map +0 -1
- package/dist/types/api/webAuthnAddResidentCredential.d.ts +0 -4
- package/dist/types/api/webAuthnAddResidentCredential.d.ts.map +0 -1
- package/dist/types/api/webAuthnListResidentCredentials.d.ts +0 -4
- package/dist/types/api/webAuthnListResidentCredentials.d.ts.map +0 -1
- package/dist/types/api/webAuthnRemoveResidentCredential.d.ts +0 -4
- package/dist/types/api/webAuthnRemoveResidentCredential.d.ts.map +0 -1
- package/src/api/BixinBackupDevice.ts +0 -15
- package/src/api/BixinLoadDevice.ts +0 -22
- package/src/api/BixinMessageSE.ts +0 -22
- package/src/api/BixinVerifyDeviceRequest.ts +0 -22
- package/src/api/WebAuthnAddResidentCredential.ts +0 -22
- package/src/api/WebAuthnListResidentCredentials.ts +0 -24
- package/src/api/WebAuthnRemoveResidentCredential.ts +0 -22
- package/src/api/binance/BinanceGetAddress.ts +0 -26
- package/src/api/binance/BinanceGetPublicKey.ts +0 -26
- package/src/api/binance/BinanceSignTx.ts +0 -35
- package/src/api/btc/BTCAuthorizeCoinJoin.ts +0 -37
- package/src/api/btc/BTCGetOwnershipId.ts +0 -34
- package/src/api/btc/BTCGetOwnershipProof.ts +0 -37
- package/src/api/crypto/CryptoBatchGetPublickeys.ts +0 -30
- package/src/api/crypto/CryptoCipherKeyValue.ts +0 -29
- package/src/api/crypto/CryptoCosiCommit.ts +0 -24
- package/src/api/crypto/CryptoCosiSign.ts +0 -26
- package/src/api/crypto/CryptoGetECDHSessionKey.ts +0 -24
- package/src/api/crypto/CryptoSignIdentity.ts +0 -25
- package/src/api/debug/DebugLinkDecision.ts +0 -25
- package/src/api/debug/DebugLinkEraseSdCard.ts +0 -23
- package/src/api/debug/DebugLinkFlashErase.ts +0 -23
- package/src/api/debug/DebugLinkGetState.ts +0 -21
- package/src/api/debug/DebugLinkMemoryRead.ts +0 -24
- package/src/api/debug/DebugLinkMemoryWrite.ts +0 -25
- package/src/api/debug/DebugLinkRecordScreen.ts +0 -23
- package/src/api/debug/DebugLinkReseedRandom.ts +0 -23
- package/src/api/debug/DebugLinkStop.ts +0 -25
- package/src/api/debug/DebugLinkWatchLayout.ts +0 -23
- package/src/api/emmc/EmmcDirList.ts +0 -20
- package/src/api/emmc/EmmcDirMake.ts +0 -20
- package/src/api/emmc/EmmcDirRemove.ts +0 -20
- package/src/api/emmc/EmmcFileDelete.ts +0 -20
- package/src/api/emmc/EmmcFileRead.ts +0 -21
- package/src/api/emmc/EmmcFileWrite.ts +0 -23
- package/src/api/emmc/EmmcFixPermission.ts +0 -17
- package/src/api/emmc/EmmcPathInfo.ts +0 -20
- package/src/api/eos/EosGetPublicKey.ts +0 -26
- package/src/api/eos/EosSignTx.ts +0 -40
- package/src/api/evmTrezor/EVMGetAddress.ts +0 -75
- package/src/api/evmTrezor/EVMGetPublicKey.ts +0 -106
- package/src/api/evmTrezor/EVMSignMessage.ts +0 -40
- package/src/api/evmTrezor/EVMSignTransaction.ts +0 -83
- package/src/api/evmTrezor/EVMSignTypedData.ts +0 -366
- package/src/api/evmTrezor/EVMVerifyMessage.ts +0 -37
- package/src/api/evmTrezor/legacyV1/getAddress.ts +0 -16
- package/src/api/evmTrezor/legacyV1/getPublicKey.ts +0 -20
- package/src/api/evmTrezor/legacyV1/signMessage.ts +0 -22
- package/src/api/evmTrezor/legacyV1/signTransaction.ts +0 -24
- package/src/api/evmTrezor/legacyV1/signTypedData.ts +0 -36
- package/src/api/evmTrezor/legacyV1/signTypedHash.ts +0 -48
- package/src/api/evmTrezor/legacyV1/verifyMessage.ts +0 -19
- package/src/api/extensionMethodNames.ts +0 -88
- package/src/api/factoryMethods.ts +0 -2
- package/src/api/firmware/FirmwareErase.ts +0 -18
- package/src/api/firmware/FirmwareEraseEx.ts +0 -18
- package/src/api/firmware/FirmwareUpdateEmmcTest.ts +0 -18
- package/src/api/firmware/FirmwareUploadTest.ts +0 -17
- package/src/api/firmware/Reboot.ts +0 -17
- package/src/api/firmware/SelfTest.ts +0 -17
- package/src/api/manager/DeviceCancelAuthorization.ts +0 -15
- package/src/api/manager/DeviceChangeWipeCode.ts +0 -19
- package/src/api/manager/DeviceDoPreauthorized.ts +0 -15
- package/src/api/manager/DeviceEndSession.ts +0 -19
- package/src/api/manager/DeviceGetEntropy.ts +0 -19
- package/src/api/manager/DeviceGetFirmwareHash.ts +0 -23
- package/src/api/manager/DeviceInfoSettings.ts +0 -23
- package/src/api/manager/DeviceLoad.ts +0 -27
- package/src/api/manager/DevicePing.ts +0 -19
- package/src/api/manager/DeviceReadSEPublicCert.ts +0 -18
- package/src/api/manager/DeviceSESignMessage.ts +0 -23
- package/src/api/manager/DeviceSdProtect.ts +0 -18
- package/src/api/manager/DeviceSpiFlashRead.ts +0 -22
- package/src/api/manager/DeviceSpiFlashWrite.ts +0 -22
- package/src/api/manager/DeviceUnlockPath.ts +0 -26
- package/src/api/manager/DeviceWriteSEPrivateKey.ts +0 -23
- package/src/api/manager/DeviceWriteSEPublicCert.ts +0 -23
- package/src/api/manager/GetDeviceInfoSettings.ts +0 -20
- package/src/api/manager/GetPublicKeyMultiple.ts +0 -24
- package/src/api/manager/ListResDir.ts +0 -19
- package/src/api/manager/NFTWriteData.ts +0 -21
- package/src/api/manager/NFTWriteInfo.ts +0 -23
- package/src/api/manager/ReadSEPublicKey.ts +0 -20
- package/src/api/manager/ResourceUpdate.ts +0 -22
- package/src/api/methodExtension.ts +0 -27
- package/src/api/monero/MoneroGetAddress.ts +0 -64
- package/src/api/monero/MoneroGetWatchKey.ts +0 -59
- package/src/api/nem/NEMDecryptMessage.ts +0 -29
- package/src/api/protocol-v2/DeviceFactoryCertificateRead.ts +0 -25
- package/src/api/protocol-v2/DeviceFactoryCertificateWrite.ts +0 -30
- package/src/api/protocol-v2/DeviceFactoryChallengeSign.ts +0 -28
- package/src/api/testMethods.ts +0 -95
- package/src/api/tezos/TezosGetAddress.ts +0 -64
- package/src/api/tezos/TezosGetPublicKey.ts +0 -63
- package/src/api/tezos/TezosSignTx.ts +0 -44
- package/src/types/api/binanceGetAddress.ts +0 -17
- package/src/types/api/binanceGetPublicKey.ts +0 -17
- package/src/types/api/binanceSignTx.ts +0 -15
- package/src/types/api/bixinBackupDevice.ts +0 -8
- package/src/types/api/bixinLoadDevice.ts +0 -8
- package/src/types/api/bixinMessageSE.ts +0 -8
- package/src/types/api/bixinVerifyDeviceRequest.ts +0 -8
- package/src/types/api/btcAuthorizeCoinJoin.ts +0 -18
- package/src/types/api/btcGetOwnershipId.ts +0 -19
- package/src/types/api/btcGetOwnershipProof.ts +0 -22
- package/src/types/api/cryptoBatchGetPublickeys.ts +0 -18
- package/src/types/api/cryptoCipherKeyValue.ts +0 -18
- package/src/types/api/cryptoCosiCommit.ts +0 -13
- package/src/types/api/cryptoCosiSign.ts +0 -15
- package/src/types/api/cryptoGetECDHSessionKey.ts +0 -8
- package/src/types/api/cryptoSignIdentity.ts +0 -8
- package/src/types/api/debugLinkDecision.ts +0 -7
- package/src/types/api/debugLinkEraseSdCard.ts +0 -7
- package/src/types/api/debugLinkFlashErase.ts +0 -7
- package/src/types/api/debugLinkGetState.ts +0 -7
- package/src/types/api/debugLinkMemoryRead.ts +0 -7
- package/src/types/api/debugLinkMemoryWrite.ts +0 -7
- package/src/types/api/debugLinkRecordScreen.ts +0 -7
- package/src/types/api/debugLinkReseedRandom.ts +0 -7
- package/src/types/api/debugLinkStop.ts +0 -7
- package/src/types/api/debugLinkWatchLayout.ts +0 -7
- package/src/types/api/deviceCancelAuthorization.ts +0 -7
- package/src/types/api/deviceChangeWipeCode.ts +0 -7
- package/src/types/api/deviceDoPreauthorized.ts +0 -7
- package/src/types/api/deviceEndSession.ts +0 -7
- package/src/types/api/deviceGetEntropy.ts +0 -7
- package/src/types/api/deviceGetFirmwareHash.ts +0 -7
- package/src/types/api/deviceGetInfo.ts +0 -7
- package/src/types/api/deviceInfoSettings.ts +0 -7
- package/src/types/api/deviceLoad.ts +0 -19
- package/src/types/api/devicePing.ts +0 -7
- package/src/types/api/deviceReadSEPublicCert.ts +0 -7
- package/src/types/api/deviceSESignMessage.ts +0 -7
- package/src/types/api/deviceSdProtect.ts +0 -7
- package/src/types/api/deviceSpiFlashRead.ts +0 -7
- package/src/types/api/deviceSpiFlashWrite.ts +0 -7
- package/src/types/api/deviceUnlockPath.ts +0 -16
- package/src/types/api/deviceWriteSEPrivateKey.ts +0 -7
- package/src/types/api/deviceWriteSEPublicCert.ts +0 -7
- package/src/types/api/emmcDirList.ts +0 -7
- package/src/types/api/emmcDirMake.ts +0 -7
- package/src/types/api/emmcDirRemove.ts +0 -7
- package/src/types/api/emmcFileDelete.ts +0 -7
- package/src/types/api/emmcFileRead.ts +0 -7
- package/src/types/api/emmcFileWrite.ts +0 -7
- package/src/types/api/emmcFixPermission.ts +0 -7
- package/src/types/api/emmcPathInfo.ts +0 -7
- package/src/types/api/eosGetPublicKey.ts +0 -13
- package/src/types/api/eosSignTx.ts +0 -12
- package/src/types/api/evmGetAddressTrezor.ts +0 -24
- package/src/types/api/evmGetPublicKeyTrezor.ts +0 -31
- package/src/types/api/evmSignMessageTrezor.ts +0 -14
- package/src/types/api/evmSignTransactionTrezor.ts +0 -49
- package/src/types/api/evmSignTypedDataTrezor.ts +0 -42
- package/src/types/api/evmVerifyMessageTrezor.ts +0 -15
- package/src/types/api/firmwareErase.ts +0 -4
- package/src/types/api/firmwareEraseEx.ts +0 -7
- package/src/types/api/firmwareUpdateEmmcTest.ts +0 -7
- package/src/types/api/firmwareUploadTest.ts +0 -7
- package/src/types/api/getPublicKeyMultiple.ts +0 -11
- package/src/types/api/listResDir.ts +0 -8
- package/src/types/api/moneroGetAddress.ts +0 -23
- package/src/types/api/moneroGetWatchKey.ts +0 -26
- package/src/types/api/nemDecryptMessage.ts +0 -15
- package/src/types/api/nftWriteData.ts +0 -8
- package/src/types/api/nftWriteInfo.ts +0 -8
- package/src/types/api/readSEPublicKey.ts +0 -8
- package/src/types/api/reboot.ts +0 -4
- package/src/types/api/resourceUpdate.ts +0 -11
- package/src/types/api/selfTest.ts +0 -7
- package/src/types/api/tezosGetAddress.ts +0 -23
- package/src/types/api/tezosGetPublicKey.ts +0 -23
- package/src/types/api/tezosSignTx.ts +0 -12
- package/src/types/api/webAuthnAddResidentCredential.ts +0 -8
- package/src/types/api/webAuthnListResidentCredentials.ts +0 -8
- package/src/types/api/webAuthnRemoveResidentCredential.ts +0 -8
package/src/types/api/index.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
deviceGetOnboardingStatus,
|
|
3
|
-
deviceProvisionFactoryInfo,
|
|
4
|
-
deviceReadFactoryCertificate,
|
|
5
|
-
deviceReadFactoryInfo,
|
|
6
3
|
deviceReboot,
|
|
7
|
-
deviceSignFactoryChallenge,
|
|
8
4
|
deviceUploadNft,
|
|
9
5
|
deviceUploadWallpaper,
|
|
10
|
-
deviceWriteFactoryCertificate,
|
|
11
6
|
testProtocolV2Ping,
|
|
12
7
|
uploadPortfolio,
|
|
13
8
|
} from './protocolV2';
|
|
@@ -150,87 +145,6 @@ import type { benfenSignTransaction } from './benfenSignTransaction';
|
|
|
150
145
|
import type { benfenSignMessage } from './benfenSignMessage';
|
|
151
146
|
import type { neoGetAddress } from './neoGetAddress';
|
|
152
147
|
import type { neoSignTransaction } from './neoSignTransaction';
|
|
153
|
-
import type { evmGetAddressTrezor } from './evmGetAddressTrezor';
|
|
154
|
-
import type { evmGetPublicKeyTrezor } from './evmGetPublicKeyTrezor';
|
|
155
|
-
import type { evmSignMessageTrezor } from './evmSignMessageTrezor';
|
|
156
|
-
import type { evmSignTransactionTrezor } from './evmSignTransactionTrezor';
|
|
157
|
-
import type { evmSignTypedDataTrezor } from './evmSignTypedDataTrezor';
|
|
158
|
-
import type { evmVerifyMessageTrezor } from './evmVerifyMessageTrezor';
|
|
159
|
-
import type { btcGetOwnershipId } from './btcGetOwnershipId';
|
|
160
|
-
import type { btcGetOwnershipProof } from './btcGetOwnershipProof';
|
|
161
|
-
import type { btcAuthorizeCoinJoin } from './btcAuthorizeCoinJoin';
|
|
162
|
-
import type { cryptoBatchGetPublickeys } from './cryptoBatchGetPublickeys';
|
|
163
|
-
import type { cryptoCipherKeyValue } from './cryptoCipherKeyValue';
|
|
164
|
-
import type { cryptoCosiCommit } from './cryptoCosiCommit';
|
|
165
|
-
import type { cryptoCosiSign } from './cryptoCosiSign';
|
|
166
|
-
import type { cryptoGetECDHSessionKey } from './cryptoGetECDHSessionKey';
|
|
167
|
-
import type { cryptoSignIdentity } from './cryptoSignIdentity';
|
|
168
|
-
import type { nemDecryptMessage } from './nemDecryptMessage';
|
|
169
|
-
import type { deviceSpiFlashWrite } from './deviceSpiFlashWrite';
|
|
170
|
-
import type { deviceSpiFlashRead } from './deviceSpiFlashRead';
|
|
171
|
-
import type { deviceInfoSettings } from './deviceInfoSettings';
|
|
172
|
-
import type { deviceGetInfo } from './deviceGetInfo';
|
|
173
|
-
import type { deviceWriteSEPrivateKey } from './deviceWriteSEPrivateKey';
|
|
174
|
-
import type { deviceWriteSEPublicCert } from './deviceWriteSEPublicCert';
|
|
175
|
-
import type { deviceReadSEPublicCert } from './deviceReadSEPublicCert';
|
|
176
|
-
import type { deviceSESignMessage } from './deviceSESignMessage';
|
|
177
|
-
import type { devicePing } from './devicePing';
|
|
178
|
-
import type { deviceGetEntropy } from './deviceGetEntropy';
|
|
179
|
-
import type { deviceGetFirmwareHash } from './deviceGetFirmwareHash';
|
|
180
|
-
import type { deviceUnlockPath } from './deviceUnlockPath';
|
|
181
|
-
import type { deviceSdProtect } from './deviceSdProtect';
|
|
182
|
-
import type { deviceChangeWipeCode } from './deviceChangeWipeCode';
|
|
183
|
-
import type { deviceEndSession } from './deviceEndSession';
|
|
184
|
-
import type { deviceLoad } from './deviceLoad';
|
|
185
|
-
import type { deviceDoPreauthorized } from './deviceDoPreauthorized';
|
|
186
|
-
import type { deviceCancelAuthorization } from './deviceCancelAuthorization';
|
|
187
|
-
import type { emmcDirList } from './emmcDirList';
|
|
188
|
-
import type { emmcDirMake } from './emmcDirMake';
|
|
189
|
-
import type { emmcDirRemove } from './emmcDirRemove';
|
|
190
|
-
import type { emmcFileDelete } from './emmcFileDelete';
|
|
191
|
-
import type { emmcFileRead } from './emmcFileRead';
|
|
192
|
-
import type { emmcFileWrite } from './emmcFileWrite';
|
|
193
|
-
import type { emmcFixPermission } from './emmcFixPermission';
|
|
194
|
-
import type { emmcPathInfo } from './emmcPathInfo';
|
|
195
|
-
import type { debugLinkDecision } from './debugLinkDecision';
|
|
196
|
-
import type { debugLinkEraseSdCard } from './debugLinkEraseSdCard';
|
|
197
|
-
import type { debugLinkFlashErase } from './debugLinkFlashErase';
|
|
198
|
-
import type { debugLinkGetState } from './debugLinkGetState';
|
|
199
|
-
import type { debugLinkMemoryRead } from './debugLinkMemoryRead';
|
|
200
|
-
import type { debugLinkMemoryWrite } from './debugLinkMemoryWrite';
|
|
201
|
-
import type { debugLinkRecordScreen } from './debugLinkRecordScreen';
|
|
202
|
-
import type { debugLinkReseedRandom } from './debugLinkReseedRandom';
|
|
203
|
-
import type { debugLinkStop } from './debugLinkStop';
|
|
204
|
-
import type { debugLinkWatchLayout } from './debugLinkWatchLayout';
|
|
205
|
-
import type { firmwareEraseEx } from './firmwareEraseEx';
|
|
206
|
-
import type { firmwareErase } from './firmwareErase';
|
|
207
|
-
import type { firmwareUpdateEmmcTest } from './firmwareUpdateEmmcTest';
|
|
208
|
-
import type { firmwareUploadTest } from './firmwareUploadTest';
|
|
209
|
-
import type { reboot } from './reboot';
|
|
210
|
-
import type { selfTest } from './selfTest';
|
|
211
|
-
import type { tezosGetAddress } from './tezosGetAddress';
|
|
212
|
-
import type { tezosGetPublicKey } from './tezosGetPublicKey';
|
|
213
|
-
import type { tezosSignTx } from './tezosSignTx';
|
|
214
|
-
import type { moneroGetWatchKey } from './moneroGetWatchKey';
|
|
215
|
-
import type { moneroGetAddress } from './moneroGetAddress';
|
|
216
|
-
import type { eosGetPublicKey } from './eosGetPublicKey';
|
|
217
|
-
import type { eosSignTx } from './eosSignTx';
|
|
218
|
-
import type { binanceGetAddress } from './binanceGetAddress';
|
|
219
|
-
import type { binanceGetPublicKey } from './binanceGetPublicKey';
|
|
220
|
-
import type { binanceSignTx } from './binanceSignTx';
|
|
221
|
-
import type { webAuthnAddResidentCredential } from './webAuthnAddResidentCredential';
|
|
222
|
-
import type { webAuthnListResidentCredentials } from './webAuthnListResidentCredentials';
|
|
223
|
-
import type { webAuthnRemoveResidentCredential } from './webAuthnRemoveResidentCredential';
|
|
224
|
-
import type { getPublicKeyMultiple } from './getPublicKeyMultiple';
|
|
225
|
-
import type { listResDir } from './listResDir';
|
|
226
|
-
import type { nftWriteData } from './nftWriteData';
|
|
227
|
-
import type { nftWriteInfo } from './nftWriteInfo';
|
|
228
|
-
import type { readSEPublicKey } from './readSEPublicKey';
|
|
229
|
-
import type { resourceUpdate } from './resourceUpdate';
|
|
230
|
-
import type { bixinBackupDevice } from './bixinBackupDevice';
|
|
231
|
-
import type { bixinLoadDevice } from './bixinLoadDevice';
|
|
232
|
-
import type { bixinMessageSE } from './bixinMessageSE';
|
|
233
|
-
import type { bixinVerifyDeviceRequest } from './bixinVerifyDeviceRequest';
|
|
234
148
|
import type { ConnectSettings } from '../settings';
|
|
235
149
|
import type { HardwareConnectProtocol } from '@onekeyfe/hd-shared';
|
|
236
150
|
|
|
@@ -244,14 +158,9 @@ export type {
|
|
|
244
158
|
OpenWalletSessionPayload,
|
|
245
159
|
} from './openWalletSession';
|
|
246
160
|
export type { ClearSessionCacheParams, ClearSessionCachePayload } from './sessionCache';
|
|
247
|
-
export type {
|
|
248
|
-
DeviceFactoryCertificateWriteParams,
|
|
249
|
-
DeviceFactoryChallengeSignParams,
|
|
250
|
-
DeviceFactoryInfoSetParams,
|
|
251
|
-
TestProtocolV2PingParams,
|
|
252
|
-
} from './protocolV2';
|
|
161
|
+
export type { TestProtocolV2PingParams } from './protocolV2';
|
|
253
162
|
|
|
254
|
-
type
|
|
163
|
+
export type CoreApi = {
|
|
255
164
|
/**
|
|
256
165
|
* Inject function
|
|
257
166
|
*/
|
|
@@ -338,11 +247,6 @@ type CoreApiWithExtensions = {
|
|
|
338
247
|
deviceReboot: typeof deviceReboot;
|
|
339
248
|
deviceGetOnboardingStatus: typeof deviceGetOnboardingStatus;
|
|
340
249
|
deviceUploadNft: typeof deviceUploadNft;
|
|
341
|
-
deviceProvisionFactoryInfo: typeof deviceProvisionFactoryInfo;
|
|
342
|
-
deviceReadFactoryInfo: typeof deviceReadFactoryInfo;
|
|
343
|
-
deviceWriteFactoryCertificate: typeof deviceWriteFactoryCertificate;
|
|
344
|
-
deviceReadFactoryCertificate: typeof deviceReadFactoryCertificate;
|
|
345
|
-
deviceSignFactoryChallenge: typeof deviceSignFactoryChallenge;
|
|
346
250
|
deviceUploadWallpaper: typeof deviceUploadWallpaper;
|
|
347
251
|
uploadPortfolio: typeof uploadPortfolio;
|
|
348
252
|
|
|
@@ -363,13 +267,6 @@ type CoreApiWithExtensions = {
|
|
|
363
267
|
evmSignTypedData: typeof evmSignTypedData;
|
|
364
268
|
evmVerifyMessage: typeof evmVerifyMessage;
|
|
365
269
|
|
|
366
|
-
evmGetAddressTrezor: typeof evmGetAddressTrezor;
|
|
367
|
-
evmGetPublicKeyTrezor: typeof evmGetPublicKeyTrezor;
|
|
368
|
-
evmSignMessageTrezor: typeof evmSignMessageTrezor;
|
|
369
|
-
evmSignTransactionTrezor: typeof evmSignTransactionTrezor;
|
|
370
|
-
evmSignTypedDataTrezor: typeof evmSignTypedDataTrezor;
|
|
371
|
-
evmVerifyMessageTrezor: typeof evmVerifyMessageTrezor;
|
|
372
|
-
|
|
373
270
|
/**
|
|
374
271
|
* BTC function
|
|
375
272
|
*/
|
|
@@ -379,19 +276,6 @@ type CoreApiWithExtensions = {
|
|
|
379
276
|
btcSignPsbt: typeof btcSignPsbt;
|
|
380
277
|
btcSignTransaction: typeof btcSignTransaction;
|
|
381
278
|
btcVerifyMessage: typeof btcVerifyMessage;
|
|
382
|
-
btcGetOwnershipId: typeof btcGetOwnershipId;
|
|
383
|
-
btcGetOwnershipProof: typeof btcGetOwnershipProof;
|
|
384
|
-
btcAuthorizeCoinJoin: typeof btcAuthorizeCoinJoin;
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Crypto function
|
|
388
|
-
*/
|
|
389
|
-
cryptoBatchGetPublickeys: typeof cryptoBatchGetPublickeys;
|
|
390
|
-
cryptoCipherKeyValue: typeof cryptoCipherKeyValue;
|
|
391
|
-
cryptoCosiCommit: typeof cryptoCosiCommit;
|
|
392
|
-
cryptoCosiSign: typeof cryptoCosiSign;
|
|
393
|
-
cryptoGetECDHSessionKey: typeof cryptoGetECDHSessionKey;
|
|
394
|
-
cryptoSignIdentity: typeof cryptoSignIdentity;
|
|
395
279
|
|
|
396
280
|
/**
|
|
397
281
|
* Starcoin function
|
|
@@ -407,7 +291,6 @@ type CoreApiWithExtensions = {
|
|
|
407
291
|
*/
|
|
408
292
|
nemGetAddress: typeof nemGetAddress;
|
|
409
293
|
nemSignTransaction: typeof nemSignTransaction;
|
|
410
|
-
nemDecryptMessage: typeof nemDecryptMessage;
|
|
411
294
|
|
|
412
295
|
/**
|
|
413
296
|
* Solana function
|
|
@@ -573,173 +456,4 @@ type CoreApiWithExtensions = {
|
|
|
573
456
|
*/
|
|
574
457
|
neoGetAddress: typeof neoGetAddress;
|
|
575
458
|
neoSignTransaction: typeof neoSignTransaction;
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Test-only APIs.
|
|
579
|
-
*/
|
|
580
|
-
deviceSpiFlashWrite: typeof deviceSpiFlashWrite;
|
|
581
|
-
deviceSpiFlashRead: typeof deviceSpiFlashRead;
|
|
582
|
-
deviceInfoSettings: typeof deviceInfoSettings;
|
|
583
|
-
deviceGetInfo: typeof deviceGetInfo;
|
|
584
|
-
deviceWriteSEPrivateKey: typeof deviceWriteSEPrivateKey;
|
|
585
|
-
deviceReadSEPublicCert: typeof deviceReadSEPublicCert;
|
|
586
|
-
deviceWriteSEPublicCert: typeof deviceWriteSEPublicCert;
|
|
587
|
-
deviceSESignMessage: typeof deviceSESignMessage;
|
|
588
|
-
devicePing: typeof devicePing;
|
|
589
|
-
deviceGetEntropy: typeof deviceGetEntropy;
|
|
590
|
-
deviceGetFirmwareHash: typeof deviceGetFirmwareHash;
|
|
591
|
-
deviceUnlockPath: typeof deviceUnlockPath;
|
|
592
|
-
deviceSdProtect: typeof deviceSdProtect;
|
|
593
|
-
deviceChangeWipeCode: typeof deviceChangeWipeCode;
|
|
594
|
-
deviceEndSession: typeof deviceEndSession;
|
|
595
|
-
deviceLoad: typeof deviceLoad;
|
|
596
|
-
deviceDoPreauthorized: typeof deviceDoPreauthorized;
|
|
597
|
-
deviceCancelAuthorization: typeof deviceCancelAuthorization;
|
|
598
|
-
|
|
599
|
-
emmcDirList: typeof emmcDirList;
|
|
600
|
-
emmcDirMake: typeof emmcDirMake;
|
|
601
|
-
emmcDirRemove: typeof emmcDirRemove;
|
|
602
|
-
emmcFileDelete: typeof emmcFileDelete;
|
|
603
|
-
emmcFileRead: typeof emmcFileRead;
|
|
604
|
-
emmcFileWrite: typeof emmcFileWrite;
|
|
605
|
-
emmcFixPermission: typeof emmcFixPermission;
|
|
606
|
-
emmcPathInfo: typeof emmcPathInfo;
|
|
607
|
-
|
|
608
|
-
debugLinkDecision: typeof debugLinkDecision;
|
|
609
|
-
debugLinkEraseSdCard: typeof debugLinkEraseSdCard;
|
|
610
|
-
debugLinkFlashErase: typeof debugLinkFlashErase;
|
|
611
|
-
debugLinkGetState: typeof debugLinkGetState;
|
|
612
|
-
debugLinkMemoryRead: typeof debugLinkMemoryRead;
|
|
613
|
-
debugLinkMemoryWrite: typeof debugLinkMemoryWrite;
|
|
614
|
-
debugLinkRecordScreen: typeof debugLinkRecordScreen;
|
|
615
|
-
debugLinkReseedRandom: typeof debugLinkReseedRandom;
|
|
616
|
-
debugLinkStop: typeof debugLinkStop;
|
|
617
|
-
debugLinkWatchLayout: typeof debugLinkWatchLayout;
|
|
618
|
-
|
|
619
|
-
firmwareEraseEx: typeof firmwareEraseEx;
|
|
620
|
-
firmwareErase: typeof firmwareErase;
|
|
621
|
-
firmwareUpdateEmmcTest: typeof firmwareUpdateEmmcTest;
|
|
622
|
-
firmwareUploadTest: typeof firmwareUploadTest;
|
|
623
|
-
reboot: typeof reboot;
|
|
624
|
-
selfTest: typeof selfTest;
|
|
625
|
-
|
|
626
|
-
tezosGetAddress: typeof tezosGetAddress;
|
|
627
|
-
tezosGetPublicKey: typeof tezosGetPublicKey;
|
|
628
|
-
tezosSignTx: typeof tezosSignTx;
|
|
629
|
-
|
|
630
|
-
binanceGetAddress: typeof binanceGetAddress;
|
|
631
|
-
binanceGetPublicKey: typeof binanceGetPublicKey;
|
|
632
|
-
binanceSignTx: typeof binanceSignTx;
|
|
633
|
-
|
|
634
|
-
moneroGetWatchKey: typeof moneroGetWatchKey;
|
|
635
|
-
moneroGetAddress: typeof moneroGetAddress;
|
|
636
|
-
|
|
637
|
-
eosGetPublicKey: typeof eosGetPublicKey;
|
|
638
|
-
eosSignTx: typeof eosSignTx;
|
|
639
|
-
|
|
640
|
-
webAuthnAddResidentCredential: typeof webAuthnAddResidentCredential;
|
|
641
|
-
webAuthnListResidentCredentials: typeof webAuthnListResidentCredentials;
|
|
642
|
-
webAuthnRemoveResidentCredential: typeof webAuthnRemoveResidentCredential;
|
|
643
|
-
|
|
644
|
-
getPublicKeyMultiple: typeof getPublicKeyMultiple;
|
|
645
|
-
listResDir: typeof listResDir;
|
|
646
|
-
nftWriteData: typeof nftWriteData;
|
|
647
|
-
nftWriteInfo: typeof nftWriteInfo;
|
|
648
|
-
readSEPublicKey: typeof readSEPublicKey;
|
|
649
|
-
resourceUpdate: typeof resourceUpdate;
|
|
650
|
-
|
|
651
|
-
bixinBackupDevice: typeof bixinBackupDevice;
|
|
652
|
-
bixinLoadDevice: typeof bixinLoadDevice;
|
|
653
|
-
bixinMessageSE: typeof bixinMessageSE;
|
|
654
|
-
bixinVerifyDeviceRequest: typeof bixinVerifyDeviceRequest;
|
|
655
459
|
};
|
|
656
|
-
|
|
657
|
-
export type TestApiMethodName =
|
|
658
|
-
| 'btcGetOwnershipId'
|
|
659
|
-
| 'btcGetOwnershipProof'
|
|
660
|
-
| 'btcAuthorizeCoinJoin'
|
|
661
|
-
| 'cryptoBatchGetPublickeys'
|
|
662
|
-
| 'cryptoCipherKeyValue'
|
|
663
|
-
| 'cryptoCosiCommit'
|
|
664
|
-
| 'cryptoCosiSign'
|
|
665
|
-
| 'cryptoGetECDHSessionKey'
|
|
666
|
-
| 'cryptoSignIdentity'
|
|
667
|
-
| 'evmGetAddressTrezor'
|
|
668
|
-
| 'evmGetPublicKeyTrezor'
|
|
669
|
-
| 'evmSignMessageTrezor'
|
|
670
|
-
| 'evmSignTransactionTrezor'
|
|
671
|
-
| 'evmSignTypedDataTrezor'
|
|
672
|
-
| 'evmVerifyMessageTrezor'
|
|
673
|
-
| 'nemDecryptMessage'
|
|
674
|
-
| 'deviceSpiFlashWrite'
|
|
675
|
-
| 'deviceSpiFlashRead'
|
|
676
|
-
| 'deviceInfoSettings'
|
|
677
|
-
| 'deviceGetInfo'
|
|
678
|
-
| 'deviceReadSEPublicCert'
|
|
679
|
-
| 'deviceWriteSEPrivateKey'
|
|
680
|
-
| 'deviceWriteSEPublicCert'
|
|
681
|
-
| 'deviceSESignMessage'
|
|
682
|
-
| 'devicePing'
|
|
683
|
-
| 'deviceGetEntropy'
|
|
684
|
-
| 'deviceGetFirmwareHash'
|
|
685
|
-
| 'deviceUnlockPath'
|
|
686
|
-
| 'deviceSdProtect'
|
|
687
|
-
| 'deviceChangeWipeCode'
|
|
688
|
-
| 'deviceEndSession'
|
|
689
|
-
| 'deviceLoad'
|
|
690
|
-
| 'deviceDoPreauthorized'
|
|
691
|
-
| 'deviceCancelAuthorization'
|
|
692
|
-
| 'emmcDirList'
|
|
693
|
-
| 'emmcDirMake'
|
|
694
|
-
| 'emmcDirRemove'
|
|
695
|
-
| 'emmcFileDelete'
|
|
696
|
-
| 'emmcFileRead'
|
|
697
|
-
| 'emmcFileWrite'
|
|
698
|
-
| 'emmcFixPermission'
|
|
699
|
-
| 'emmcPathInfo'
|
|
700
|
-
| 'debugLinkDecision'
|
|
701
|
-
| 'debugLinkEraseSdCard'
|
|
702
|
-
| 'debugLinkFlashErase'
|
|
703
|
-
| 'debugLinkGetState'
|
|
704
|
-
| 'debugLinkMemoryRead'
|
|
705
|
-
| 'debugLinkMemoryWrite'
|
|
706
|
-
| 'debugLinkRecordScreen'
|
|
707
|
-
| 'debugLinkReseedRandom'
|
|
708
|
-
| 'debugLinkStop'
|
|
709
|
-
| 'debugLinkWatchLayout'
|
|
710
|
-
| 'firmwareErase'
|
|
711
|
-
| 'firmwareEraseEx'
|
|
712
|
-
| 'firmwareUpdateEmmcTest'
|
|
713
|
-
| 'firmwareUploadTest'
|
|
714
|
-
| 'reboot'
|
|
715
|
-
| 'selfTest'
|
|
716
|
-
| 'tezosGetAddress'
|
|
717
|
-
| 'tezosGetPublicKey'
|
|
718
|
-
| 'tezosSignTx'
|
|
719
|
-
| 'moneroGetAddress'
|
|
720
|
-
| 'moneroGetWatchKey'
|
|
721
|
-
| 'eosGetPublicKey'
|
|
722
|
-
| 'eosSignTx'
|
|
723
|
-
| 'binanceGetAddress'
|
|
724
|
-
| 'binanceGetPublicKey'
|
|
725
|
-
| 'binanceSignTx'
|
|
726
|
-
| 'webAuthnAddResidentCredential'
|
|
727
|
-
| 'webAuthnListResidentCredentials'
|
|
728
|
-
| 'webAuthnRemoveResidentCredential'
|
|
729
|
-
| 'getPublicKeyMultiple'
|
|
730
|
-
| 'listResDir'
|
|
731
|
-
| 'nftWriteData'
|
|
732
|
-
| 'nftWriteInfo'
|
|
733
|
-
| 'readSEPublicKey'
|
|
734
|
-
| 'resourceUpdate'
|
|
735
|
-
| 'bixinBackupDevice'
|
|
736
|
-
| 'bixinLoadDevice'
|
|
737
|
-
| 'bixinMessageSE'
|
|
738
|
-
| 'bixinVerifyDeviceRequest';
|
|
739
|
-
|
|
740
|
-
export type FactoryApiMethodName = 'deviceProvisionFactoryInfo' | 'deviceWriteFactoryCertificate';
|
|
741
|
-
|
|
742
|
-
export type TestApiMethods = Pick<CoreApiWithExtensions, TestApiMethodName>;
|
|
743
|
-
export type FactoryApi = Pick<CoreApiWithExtensions, FactoryApiMethodName>;
|
|
744
|
-
export type CoreApi = Omit<CoreApiWithExtensions, TestApiMethodName | FactoryApiMethodName>;
|
|
745
|
-
export type TestApi = CoreApi & TestApiMethods & FactoryApi;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import type { CommonParams, Response } from '../params';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
DeviceCertificateSignature,
|
|
5
|
-
DeviceFactoryInfo,
|
|
6
|
-
OnboardingStatus,
|
|
7
|
-
Success,
|
|
8
|
-
} from '@onekeyfe/hd-transport';
|
|
9
|
-
import type {
|
|
10
|
-
DeviceFactoryCertificateWriteParams,
|
|
11
|
-
DeviceFactoryChallengeSignParams,
|
|
12
|
-
DeviceFactoryInfoSetParams,
|
|
13
|
-
DeviceRebootParams,
|
|
14
|
-
} from '../../api/protocol-v2/helpers';
|
|
2
|
+
import type { OnboardingStatus, Success } from '@onekeyfe/hd-transport';
|
|
3
|
+
import type { DeviceRebootParams } from '../../api/protocol-v2/helpers';
|
|
15
4
|
import type {
|
|
16
5
|
DeviceUploadWallpaperParams,
|
|
17
6
|
DeviceUploadWallpaperResponse,
|
|
@@ -23,11 +12,6 @@ import type {
|
|
|
23
12
|
|
|
24
13
|
// Re-export implementation parameter types as the single source of truth.
|
|
25
14
|
export type { DeviceRebootParams, RebootTypeInput } from '../../api/protocol-v2/helpers';
|
|
26
|
-
export type {
|
|
27
|
-
DeviceFactoryCertificateWriteParams,
|
|
28
|
-
DeviceFactoryChallengeSignParams,
|
|
29
|
-
DeviceFactoryInfoSetParams,
|
|
30
|
-
} from '../../api/protocol-v2/helpers';
|
|
31
15
|
export type {
|
|
32
16
|
DeviceUploadWallpaperParams,
|
|
33
17
|
DeviceUploadWallpaperResponse,
|
|
@@ -71,31 +55,6 @@ export declare function deviceGetOnboardingStatus(
|
|
|
71
55
|
params?: CommonParams
|
|
72
56
|
): Response<OnboardingStatus>;
|
|
73
57
|
|
|
74
|
-
export declare function deviceProvisionFactoryInfo(
|
|
75
|
-
connectId: string,
|
|
76
|
-
params: CommonParams & DeviceFactoryInfoSetParams
|
|
77
|
-
): Response<Success>;
|
|
78
|
-
|
|
79
|
-
export declare function deviceReadFactoryInfo(
|
|
80
|
-
connectId: string,
|
|
81
|
-
params?: CommonParams
|
|
82
|
-
): Response<DeviceFactoryInfo>;
|
|
83
|
-
|
|
84
|
-
export declare function deviceWriteFactoryCertificate(
|
|
85
|
-
connectId: string,
|
|
86
|
-
params: CommonParams & DeviceFactoryCertificateWriteParams
|
|
87
|
-
): Response<Success>;
|
|
88
|
-
|
|
89
|
-
export declare function deviceReadFactoryCertificate(
|
|
90
|
-
connectId: string,
|
|
91
|
-
params?: CommonParams
|
|
92
|
-
): Response<DeviceCertificate>;
|
|
93
|
-
|
|
94
|
-
export declare function deviceSignFactoryChallenge(
|
|
95
|
-
connectId: string,
|
|
96
|
-
params: CommonParams & DeviceFactoryChallengeSignParams
|
|
97
|
-
): Response<DeviceCertificateSignature>;
|
|
98
|
-
|
|
99
58
|
export declare function deviceUploadWallpaper(
|
|
100
59
|
connectId: string,
|
|
101
60
|
params: CommonParams & DeviceUploadWallpaperParams
|
package/src/types/device.ts
CHANGED
|
@@ -374,14 +374,21 @@ export type IDeviceType =
|
|
|
374
374
|
| EDeviceType.Mini
|
|
375
375
|
| EDeviceType.Touch
|
|
376
376
|
| EDeviceType.Pro
|
|
377
|
-
| EDeviceType.Pro2
|
|
377
|
+
| EDeviceType.Pro2
|
|
378
|
+
| EDeviceType.Neo;
|
|
378
379
|
|
|
379
380
|
/**
|
|
380
381
|
* model_classic: 'classic' | 'classic1s' | 'classicpure'
|
|
381
382
|
* model_mini: 'classic' | 'classic1s' | 'classicpure' | 'mini'
|
|
382
383
|
* model_touch: 'touch' | 'pro'
|
|
384
|
+
* model_pro2: 'pro2' | 'neo'
|
|
383
385
|
*/
|
|
384
|
-
export type IDeviceModel =
|
|
386
|
+
export type IDeviceModel =
|
|
387
|
+
| 'model_classic'
|
|
388
|
+
| 'model_mini'
|
|
389
|
+
| 'model_touch'
|
|
390
|
+
| 'model_classic1s'
|
|
391
|
+
| 'model_pro2';
|
|
385
392
|
|
|
386
393
|
export const DeviceModelToTypes: { [deviceModel in IDeviceModel]: IDeviceType[] } = {
|
|
387
394
|
model_mini: [
|
|
@@ -391,6 +398,7 @@ export const DeviceModelToTypes: { [deviceModel in IDeviceModel]: IDeviceType[]
|
|
|
391
398
|
EDeviceType.Mini,
|
|
392
399
|
],
|
|
393
400
|
model_touch: [EDeviceType.Touch, EDeviceType.Pro],
|
|
401
|
+
model_pro2: [EDeviceType.Pro2, EDeviceType.Neo],
|
|
394
402
|
model_classic: [EDeviceType.Classic, EDeviceType.Classic1s, EDeviceType.ClassicPure],
|
|
395
403
|
model_classic1s: [EDeviceType.Classic1s, EDeviceType.ClassicPure],
|
|
396
404
|
};
|
|
@@ -402,7 +410,8 @@ export const DeviceTypeToModels: { [deviceType in IDeviceType]: IDeviceModel[] }
|
|
|
402
410
|
[EDeviceType.Mini]: ['model_mini'],
|
|
403
411
|
[EDeviceType.Touch]: ['model_touch'],
|
|
404
412
|
[EDeviceType.Pro]: ['model_touch'],
|
|
405
|
-
[EDeviceType.Pro2]: [],
|
|
413
|
+
[EDeviceType.Pro2]: ['model_pro2'],
|
|
414
|
+
[EDeviceType.Neo]: ['model_pro2'],
|
|
406
415
|
[EDeviceType.Unknown]: [],
|
|
407
416
|
};
|
|
408
417
|
|
package/src/types/settings.ts
CHANGED
|
@@ -81,19 +81,22 @@ export type IProtocolV2Resource = {
|
|
|
81
81
|
headerHash: string;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
export type
|
|
86
|
-
|
|
87
|
-
target: 'CRATE';
|
|
84
|
+
/** A file from the Protocol V2 resource manifest, written directly with FileWrite. */
|
|
85
|
+
export type IProtocolV2ResourceFile = {
|
|
86
|
+
name?: string;
|
|
88
87
|
url: string;
|
|
89
|
-
|
|
88
|
+
devicePath: string;
|
|
90
89
|
size: number;
|
|
91
|
-
/** SHA-256 of the complete
|
|
90
|
+
/** SHA-256 of the complete file. */
|
|
92
91
|
fileHash: string;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** Optional Protocol V2 boot resources restored as individual files. */
|
|
95
|
+
export type IProtocolV2BootResources = {
|
|
96
|
+
required: false;
|
|
97
|
+
target: 'RES';
|
|
98
|
+
manifestUrl?: string;
|
|
99
|
+
files: IProtocolV2ResourceFile[];
|
|
97
100
|
};
|
|
98
101
|
|
|
99
102
|
export type IProtocolV2Resources = {
|
|
@@ -166,19 +169,25 @@ export type IBLEFirmwareReleaseInfo = {
|
|
|
166
169
|
};
|
|
167
170
|
|
|
168
171
|
type IKnownDevice = Exclude<IDeviceType, 'unknown'>;
|
|
172
|
+
type ILegacyKnownDevice = Exclude<IKnownDevice, 'neo'>;
|
|
173
|
+
|
|
174
|
+
type IDeviceReleaseInfo = {
|
|
175
|
+
firmware: IFirmwareReleaseInfo[];
|
|
176
|
+
/** Protocol V2 payload package set */
|
|
177
|
+
'firmware-v1'?: IFirmwareReleaseInfo[];
|
|
178
|
+
'firmware-v2'?: IFirmwareReleaseInfo[];
|
|
179
|
+
'firmware-v8'?: IFirmwareReleaseInfo[];
|
|
180
|
+
'firmware-btc-v8'?: IFirmwareReleaseInfo[];
|
|
181
|
+
ble: IBLEFirmwareReleaseInfo[];
|
|
182
|
+
/** Independent Protocol V2 resource release configuration. */
|
|
183
|
+
resources?: IProtocolV2Resources;
|
|
184
|
+
};
|
|
169
185
|
|
|
170
186
|
export type DeviceTypeMap = {
|
|
171
|
-
[k in
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
'firmware-v2'?: IFirmwareReleaseInfo[];
|
|
176
|
-
'firmware-v8'?: IFirmwareReleaseInfo[];
|
|
177
|
-
'firmware-btc-v8'?: IFirmwareReleaseInfo[];
|
|
178
|
-
ble: IBLEFirmwareReleaseInfo[];
|
|
179
|
-
/** Independent Pro2 resource release configuration. */
|
|
180
|
-
resources?: IProtocolV2Resources;
|
|
181
|
-
};
|
|
187
|
+
[k in ILegacyKnownDevice]: IDeviceReleaseInfo;
|
|
188
|
+
} & {
|
|
189
|
+
/** Optional until every remote-config producer publishes a Neo entry. */
|
|
190
|
+
neo?: IDeviceReleaseInfo;
|
|
182
191
|
};
|
|
183
192
|
|
|
184
193
|
export type AssetsMap = {
|
|
@@ -60,6 +60,8 @@ export const resolveDeviceType = (features?: DeviceFeaturesInput): IDeviceType =
|
|
|
60
60
|
return EDeviceType.Pro;
|
|
61
61
|
case 'PRO2':
|
|
62
62
|
return EDeviceType.Pro2;
|
|
63
|
+
case 'NEO':
|
|
64
|
+
return EDeviceType.Neo;
|
|
63
65
|
case 'PURE':
|
|
64
66
|
return EDeviceType.ClassicPure;
|
|
65
67
|
default:
|
|
@@ -69,6 +71,9 @@ export const resolveDeviceType = (features?: DeviceFeaturesInput): IDeviceType =
|
|
|
69
71
|
if (compatible.model?.toString().toLowerCase() === EDeviceType.Pro2) {
|
|
70
72
|
return EDeviceType.Pro2;
|
|
71
73
|
}
|
|
74
|
+
if (compatible.model?.toString().toLowerCase() === EDeviceType.Neo) {
|
|
75
|
+
return EDeviceType.Neo;
|
|
76
|
+
}
|
|
72
77
|
|
|
73
78
|
const serialNo = resolveDeviceSerialNo(features);
|
|
74
79
|
const prefix = serialNo.slice(0, 2).toLowerCase();
|
|
@@ -74,7 +74,8 @@ export const supportInputPinOnSoftware = (features?: Features): SupportFeatureTy
|
|
|
74
74
|
if (
|
|
75
75
|
deviceType === EDeviceType.Touch ||
|
|
76
76
|
deviceType === EDeviceType.Pro ||
|
|
77
|
-
deviceType === EDeviceType.Pro2
|
|
77
|
+
deviceType === EDeviceType.Pro2 ||
|
|
78
|
+
deviceType === EDeviceType.Neo
|
|
78
79
|
) {
|
|
79
80
|
return { support: false };
|
|
80
81
|
}
|
|
@@ -90,7 +91,8 @@ export const supportNewPassphrase = (features?: Features): SupportFeatureType =>
|
|
|
90
91
|
if (
|
|
91
92
|
deviceType === EDeviceType.Touch ||
|
|
92
93
|
deviceType === EDeviceType.Pro ||
|
|
93
|
-
deviceType === EDeviceType.Pro2
|
|
94
|
+
deviceType === EDeviceType.Pro2 ||
|
|
95
|
+
deviceType === EDeviceType.Neo
|
|
94
96
|
) {
|
|
95
97
|
return { support: true };
|
|
96
98
|
}
|
|
@@ -143,7 +145,8 @@ export const getPassphraseStateWithRefreshDeviceInfo = async (
|
|
|
143
145
|
const isModeT =
|
|
144
146
|
deviceType === EDeviceType.Touch ||
|
|
145
147
|
deviceType === EDeviceType.Pro ||
|
|
146
|
-
deviceType === EDeviceType.Pro2
|
|
148
|
+
deviceType === EDeviceType.Pro2 ||
|
|
149
|
+
deviceType === EDeviceType.Neo;
|
|
147
150
|
|
|
148
151
|
// 如果可以获取到 passphraseState,但是设备 features 显示设备未开启 passphrase,需要刷新设备状态
|
|
149
152
|
// if passphraseState can be obtained, but the device features show that the device has not enabled passphrase, the device status needs to be refreshed
|
|
@@ -31,6 +31,7 @@ export const getDeviceTypeByBleName = (name?: string): IDeviceType => {
|
|
|
31
31
|
if (/^Touch/i.test(name)) return EDeviceType.Touch;
|
|
32
32
|
|
|
33
33
|
if (/\bPro\s*2\b/i.test(name) || /^Pro2/i.test(name)) return EDeviceType.Pro2;
|
|
34
|
+
if (/\bNeo\b/i.test(name) || /^Neo/i.test(name)) return EDeviceType.Neo;
|
|
34
35
|
if (/\bPro\b/i.test(name) || /^Pro/i.test(name)) return EDeviceType.Pro;
|
|
35
36
|
|
|
36
37
|
return EDeviceType.Unknown;
|
|
@@ -93,6 +94,7 @@ export const getMethodVersionRange = (
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
const modelFallbacks: IDeviceModel[] = [
|
|
97
|
+
'model_pro2',
|
|
96
98
|
'model_classic1s',
|
|
97
99
|
'model_classic',
|
|
98
100
|
'model_mini',
|
|
@@ -127,6 +127,7 @@ export const getLanguageConfig = (deviceType: IDeviceType): Record<string, strin
|
|
|
127
127
|
keys = Object.keys(LANGUAGE_LABELS) as LanguageKey[];
|
|
128
128
|
break;
|
|
129
129
|
case EDeviceType.Pro2:
|
|
130
|
+
case EDeviceType.Neo:
|
|
130
131
|
return PRO2_LANGUAGE_OPTIONS.map(option => ({ ...option }));
|
|
131
132
|
default:
|
|
132
133
|
keys = [];
|
|
@@ -176,6 +177,7 @@ export const getAutoLockOptions = (
|
|
|
176
177
|
case EDeviceType.Touch:
|
|
177
178
|
case EDeviceType.Pro:
|
|
178
179
|
case EDeviceType.Pro2:
|
|
180
|
+
case EDeviceType.Neo:
|
|
179
181
|
return withNever([30_000, 60_000, 120_000, 300_000, 600_000, 1_800_000], protocol);
|
|
180
182
|
default:
|
|
181
183
|
return [];
|
|
@@ -197,6 +199,7 @@ export const getAutoShutDownOptions = (
|
|
|
197
199
|
case EDeviceType.Pro:
|
|
198
200
|
return withNever([60_000, 120_000, 300_000, 600_000], protocol);
|
|
199
201
|
case EDeviceType.Pro2:
|
|
202
|
+
case EDeviceType.Neo:
|
|
200
203
|
return withNever([60_000, 120_000, 300_000, 600_000, 1_800_000], protocol);
|
|
201
204
|
default:
|
|
202
205
|
return [];
|