@onekeyfe/hd-core 1.2.0-alpha.0 → 1.2.0-alpha.10
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__/connectSettings.test.ts +19 -0
- package/__tests__/device-wallet-session-store.test.ts +131 -0
- package/__tests__/preInitialize.test.ts +33 -0
- package/__tests__/protocol-v2-firmware-targets.test.ts +19 -0
- package/__tests__/protocol-v2.test.ts +1930 -765
- package/dist/api/ClearSessionCache.d.ts +9 -0
- package/dist/api/ClearSessionCache.d.ts.map +1 -0
- package/dist/api/FileRead.d.ts.map +1 -1
- package/dist/api/FileWrite.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV4.d.ts +26 -5
- package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
- package/dist/api/GetDeviceInfo.d.ts.map +1 -1
- package/dist/api/GetFeatures.d.ts +1 -1
- package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
- package/dist/api/GetPassphraseState.d.ts +4 -4
- package/dist/api/GetPassphraseState.d.ts.map +1 -1
- package/dist/api/device/DeviceUnlock.d.ts +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/bootloaderHelper.d.ts.map +1 -1
- package/dist/api/firmware/getBinary.d.ts +4 -0
- 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/firmware/uploadFirmware.d.ts.map +1 -1
- package/dist/api/index.d.ts +8 -10
- package/dist/api/index.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/{DeviceGetDeviceInfo.d.ts → DeviceInfoGet.d.ts} +10 -10
- package/dist/api/protocol-v2/DeviceInfoGet.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceSessionGet.d.ts +9 -0
- package/dist/api/protocol-v2/DeviceSessionGet.d.ts.map +1 -0
- 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/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/tron/TronSignMessage.d.ts +0 -1
- package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
- package/dist/api/tron/TronSignTransaction.d.ts +0 -1
- package/dist/api/tron/TronSignTransaction.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/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 +17 -18
- package/dist/device/Device.d.ts.map +1 -1
- package/dist/device/DeviceWalletSessionStore.d.ts +15 -0
- package/dist/device/DeviceWalletSessionStore.d.ts.map +1 -0
- package/dist/deviceProfile/buildDeviceFeatures.d.ts +6 -0
- package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -0
- package/dist/deviceProfile/buildDeviceProfile.d.ts +3 -4
- package/dist/deviceProfile/buildDeviceProfile.d.ts.map +1 -1
- package/dist/deviceProfile/index.d.ts +1 -1
- package/dist/deviceProfile/index.d.ts.map +1 -1
- package/dist/index.d.ts +657 -539
- package/dist/index.js +2579 -2161
- package/dist/inject.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/features.d.ts +12 -14
- 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 +1 -0
- package/dist/protocols/protocol-v2/index.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/walletSession.d.ts +13 -0
- package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -0
- package/dist/types/api/firmwareUpdate.d.ts +4 -6
- package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
- package/dist/types/api/getDeviceInfo.d.ts +4 -2
- package/dist/types/api/getDeviceInfo.d.ts.map +1 -1
- package/dist/types/api/getPassphraseState.d.ts +4 -4
- package/dist/types/api/getPassphraseState.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +11 -11
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/protocolV2.d.ts +16 -17
- 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 +88 -8
- 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/capabilitieUtils.d.ts.map +1 -1
- package/dist/utils/deviceFeaturesUtils.d.ts +2 -0
- package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
- package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
- package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
- package/dist/utils/findDefectiveBatchDevice.d.ts +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/ClearSessionCache.ts +28 -0
- package/src/api/FileRead.ts +16 -3
- package/src/api/FileWrite.ts +14 -1
- package/src/api/FirmwareUpdateV2.ts +9 -2
- package/src/api/FirmwareUpdateV3.ts +2 -1
- package/src/api/FirmwareUpdateV4.ts +1089 -285
- package/src/api/GetDeviceInfo.ts +6 -13
- package/src/api/GetOnekeyFeatures.ts +3 -14
- package/src/api/GetPassphraseState.ts +7 -4
- package/src/api/device/DeviceRebootToBoardloader.ts +4 -4
- package/src/api/device/DeviceRebootToBootloader.ts +4 -4
- package/src/api/firmware/FirmwareUpdateBaseMethod.ts +18 -4
- package/src/api/firmware/bootloaderHelper.ts +3 -2
- package/src/api/firmware/getBinary.ts +1 -1
- package/src/api/firmware/progressThrottle.ts +44 -0
- package/src/api/firmware/releaseHelper.ts +3 -3
- package/src/api/firmware/uploadFirmware.ts +5 -2
- package/src/api/index.ts +8 -10
- package/src/api/protocol-v2/{FactoryGetDeviceInfo.ts → DeviceFactoryInfoGet.ts} +3 -3
- package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +32 -0
- package/src/api/protocol-v2/DeviceFirmwareUpdate.ts +3 -5
- package/src/api/protocol-v2/DeviceGetFirmwareUpdateStatus.ts +39 -5
- package/src/api/protocol-v2/{DeviceGetDeviceInfo.ts → DeviceInfoGet.ts} +52 -22
- package/src/api/protocol-v2/DeviceReboot.ts +2 -2
- package/src/api/protocol-v2/DeviceSessionGet.ts +26 -0
- package/src/api/protocol-v2/DeviceStatusGet.ts +14 -0
- package/src/api/protocol-v2/FilesystemFormat.ts +4 -1
- package/src/api/protocol-v2/{FilesystemFixPermission.ts → FilesystemPermissionFix.ts} +2 -2
- package/src/api/protocol-v2/{GetProtoVersion.ts → ProtocolInfoRequest.ts} +2 -2
- package/src/api/protocol-v2/helpers.ts +58 -59
- package/src/api/ton/TonSignData.ts +1 -5
- package/src/api/tron/TronSignMessage.ts +0 -1
- package/src/api/tron/TronSignTransaction.ts +0 -1
- package/src/constants/index.ts +10 -1
- package/src/core/index.ts +22 -10
- package/src/data/messages/messages-protocol-v2.json +992 -1420
- package/src/data/messages/messages.json +8 -0
- package/src/data-manager/DataManager.ts +11 -4
- package/src/data-manager/connectSettings.ts +4 -0
- package/src/device/Device.ts +158 -294
- package/src/device/DevicePool.ts +9 -9
- package/src/device/DeviceWalletSessionStore.ts +78 -0
- package/src/deviceProfile/buildDeviceFeatures.ts +365 -0
- package/src/deviceProfile/buildDeviceProfile.ts +165 -200
- package/src/deviceProfile/index.ts +4 -1
- package/src/inject.ts +13 -16
- package/src/protocols/protocol-v2/features.ts +28 -67
- package/src/protocols/protocol-v2/firmware.ts +12 -36
- package/src/protocols/protocol-v2/index.ts +1 -0
- package/src/protocols/protocol-v2/walletSession.ts +83 -0
- package/src/types/api/firmwareUpdate.ts +16 -20
- package/src/types/api/getDeviceInfo.ts +4 -2
- package/src/types/api/getPassphraseState.ts +4 -4
- package/src/types/api/index.ts +17 -20
- package/src/types/api/protocolV2.ts +35 -40
- package/src/types/api/sessionCache.ts +14 -0
- package/src/types/device.ts +98 -34
- package/src/types/params.ts +4 -0
- package/src/types/settings.ts +42 -30
- package/src/utils/capabilitieUtils.ts +1 -2
- package/src/utils/deviceFeaturesUtils.ts +54 -29
- package/src/utils/deviceInfoUtils.ts +11 -29
- package/src/utils/deviceVersionUtils.ts +7 -25
- package/src/utils/findDefectiveBatchDevice.ts +6 -6
- 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.map +0 -1
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +0 -6
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.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/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/legacyFeaturesView.d.ts +0 -5
- package/dist/deviceProfile/legacyFeaturesView.d.ts.map +0 -1
- package/src/api/protocol-v2/DevReboot.ts +0 -24
- package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +0 -16
- package/src/api/protocol-v2/FactoryDeviceInfoSettings.ts +0 -29
- package/src/deviceProfile/legacyFeaturesView.ts +0 -123
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export { Messages as PROTO, TonSignDataType } from '@onekeyfe/hd-transport';
|
|
2
|
+
import { DeviceFirmwareTargetType, DeviceFirmwareUpdateRecordFields, DeviceRebootType, DeviceFirmwareTarget, Messages, Transport, TransportCallOptions, OneKeyDeviceInfo, ProtocolV2DeviceInfo, DeviceStatus as DeviceStatus$1, Success as Success$1, LowlevelTransportSharedPlugin, ProtocolInfo, DeviceSession, DeviceFirmwareUpdateStatus, DeviceFactoryInfo, OneKeyDeviceCommType, Features as Features$1, ProtocolType, RecoveryDeviceType, SafetyCheckLevel, ResourceType, NextU2FCounter, SetU2FCounter, CipheredKeyValue as CipheredKeyValue$1, UintType, EthereumPublicKey, EthereumMessageSignature, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, SignedPsbt, PrevInput, TxOutputBinType, TxInput, TxOutputType, TxInputType, StarcoinAddress as StarcoinAddress$1, StarcoinPublicKey as StarcoinPublicKey$1, StarcoinMessageSignature, StarcoinSignedTx, NEMAddress as NEMAddress$1, NEMSignedTx, SolanaAddress as SolanaAddress$1, SolanaSignedTx as SolanaSignedTx$1, SolanaTxExtraInfo, SolanaOffChainMessageVersion, SolanaOffChainMessageFormat, StellarAddress as StellarAddress$1, StellarSignedTx, TronAddress as TronAddress$1, TronResourceCode, TronSignedTx, TronMessageSignature, ConfluxAddress as ConfluxAddress$1, ConfluxMessageSignature, NearAddress as NearAddress$1, NearSignedTx, AptosAddress as AptosAddress$1, AptosMessageSignature as AptosMessageSignature$1, AptosSignedTx as AptosSignedTx$1, AlgorandAddress, AlgorandSignedTx, CosmosAddress as CosmosAddress$1, CosmosSignedTx as CosmosSignedTx$1, SuiAddress as SuiAddress$1, SuiMessageSignature, CardanoAddressParametersType, CardanoMessageSignature, FilecoinAddress as FilecoinAddress$1, FilecoinSignedTx as FilecoinSignedTx$1, PolkadotAddress as PolkadotAddress$1, PolkadotSignedTx as PolkadotSignedTx$1, KaspaAddress as KaspaAddress$1, NervosAddress as NervosAddress$1, NervosSignedTx as NervosSignedTx$1, DnxAddress as DnxAddress$1, TonWalletVersion, TonWorkChain, TonSignedMessage, TonSignedProof, TonSignDataType, TonSignedData, ScdoAddress as ScdoAddress$1, ScdoSignedMessage, ScdoSignedTx as ScdoSignedTx$1, AlephiumMessageSignature, AlephiumSignedTx as AlephiumSignedTx$1, BenfenAddress as BenfenAddress$1, BenfenMessageSignature, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
|
|
3
|
+
export { Success as DeviceSuccess, HDNodeType, Messages as PROTO, ResourceType, TonSignDataType, TonWalletVersion } from '@onekeyfe/hd-transport';
|
|
5
4
|
import * as _onekeyfe_hd_shared from '@onekeyfe/hd-shared';
|
|
6
|
-
import { HardwareConnectProtocol, EFirmwareType, EDeviceType
|
|
5
|
+
import { HardwareConnectProtocol, Deferred, EFirmwareType, EDeviceType } from '@onekeyfe/hd-shared';
|
|
7
6
|
|
|
8
7
|
interface CommonParams {
|
|
9
8
|
keepSession?: boolean;
|
|
10
9
|
retryCount?: number;
|
|
11
10
|
pollIntervalTime?: number;
|
|
12
11
|
timeout?: number;
|
|
12
|
+
protocolV2DeviceInfoTimeoutMs?: number;
|
|
13
13
|
passphraseState?: string;
|
|
14
14
|
useEmptyPassphrase?: boolean;
|
|
15
15
|
initSession?: boolean;
|
|
@@ -39,29 +39,38 @@ type Response<T> = Promise<Success<T> | Unsuccessful>;
|
|
|
39
39
|
|
|
40
40
|
declare const safeThrowError: (error: any) => never;
|
|
41
41
|
|
|
42
|
-
type RebootTypeInput =
|
|
42
|
+
type RebootTypeInput = DeviceRebootType | keyof typeof DeviceRebootType | string | number;
|
|
43
43
|
type DeviceRebootParams = {
|
|
44
44
|
rebootType?: RebootTypeInput;
|
|
45
45
|
reboot_type?: RebootTypeInput;
|
|
46
46
|
};
|
|
47
|
-
type DeviceFirmwareTargetInput =
|
|
48
|
-
targetId?:
|
|
49
|
-
target_id?:
|
|
47
|
+
type DeviceFirmwareTargetInput = DeviceFirmwareTarget | {
|
|
48
|
+
targetId?: DeviceFirmwareTargetType | string | number;
|
|
49
|
+
target_id?: DeviceFirmwareTargetType | string | number;
|
|
50
50
|
path: string;
|
|
51
51
|
};
|
|
52
52
|
type DeviceFirmwareUpdateParams = {
|
|
53
53
|
targets?: DeviceFirmwareTargetInput[];
|
|
54
|
-
targetId?:
|
|
55
|
-
target_id?:
|
|
54
|
+
targetId?: DeviceFirmwareTargetType | string | number;
|
|
55
|
+
target_id?: DeviceFirmwareTargetType | string | number;
|
|
56
56
|
path?: string;
|
|
57
57
|
};
|
|
58
|
-
type
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
type DeviceFirmwareUpdateStatusGetParams = {
|
|
59
|
+
fields?: DeviceFirmwareUpdateRecordFields;
|
|
60
|
+
};
|
|
61
|
+
type DeviceFactoryInfoSetParams = {
|
|
62
|
+
version?: number;
|
|
63
|
+
serial_number?: string;
|
|
64
|
+
burn_in_completed?: boolean;
|
|
65
|
+
factory_test_completed?: boolean;
|
|
66
|
+
manufacture_time?: {
|
|
67
|
+
year: number;
|
|
68
|
+
month: number;
|
|
69
|
+
day: number;
|
|
70
|
+
hour: number;
|
|
71
|
+
minute: number;
|
|
72
|
+
second: number;
|
|
73
|
+
};
|
|
65
74
|
};
|
|
66
75
|
|
|
67
76
|
type PassphrasePromptResponse = {
|
|
@@ -83,12 +92,12 @@ type DefaultMessageResponse = TypedCallResponseMap[MessageKey];
|
|
|
83
92
|
declare class DeviceCommands {
|
|
84
93
|
instanceId: string;
|
|
85
94
|
currentResponseID?: number;
|
|
86
|
-
device: Device;
|
|
95
|
+
device: Device$1;
|
|
87
96
|
transport: Transport;
|
|
88
97
|
mainId: string;
|
|
89
98
|
disposed: boolean;
|
|
90
99
|
callPromise?: Promise<DefaultMessageResponse>;
|
|
91
|
-
constructor(device: Device, mainId: string);
|
|
100
|
+
constructor(device: Device$1, mainId: string);
|
|
92
101
|
dispose(_cancelRequest: boolean): Promise<void>;
|
|
93
102
|
checkDisposed(): void;
|
|
94
103
|
cancelDeviceOnOneKeyDevice(): Promise<{
|
|
@@ -169,89 +178,336 @@ declare class DeviceConnector {
|
|
|
169
178
|
_reportDevicesChange(): void;
|
|
170
179
|
}
|
|
171
180
|
|
|
172
|
-
type
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
parentOrigin?: string;
|
|
180
|
-
configSrc: string;
|
|
181
|
-
iframeSrc: string;
|
|
182
|
-
version: string;
|
|
183
|
-
priority: number;
|
|
184
|
-
trustedHost: boolean;
|
|
185
|
-
supportedBrowser?: boolean;
|
|
186
|
-
env: transportEnv;
|
|
187
|
-
timestamp: number;
|
|
188
|
-
isFrame?: boolean;
|
|
189
|
-
preRelease?: boolean;
|
|
190
|
-
fetchConfig?: boolean;
|
|
191
|
-
extension?: string;
|
|
192
|
-
configFetcher?: (url: string) => Promise<RemoteConfigResponse | null>;
|
|
181
|
+
type InitOptions = {
|
|
182
|
+
initSession?: boolean;
|
|
183
|
+
deviceId?: string;
|
|
184
|
+
passphraseState?: string;
|
|
185
|
+
deriveCardano?: boolean;
|
|
186
|
+
connectProtocol?: HardwareConnectProtocol;
|
|
187
|
+
protocolV2DeviceInfoTimeoutMs?: number;
|
|
193
188
|
};
|
|
194
|
-
type
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
189
|
+
type RunOptions = {
|
|
190
|
+
keepSession?: boolean;
|
|
191
|
+
skipInitialize?: boolean;
|
|
192
|
+
} & InitOptions;
|
|
193
|
+
interface DeviceEvents {
|
|
194
|
+
[DEVICE.PIN]: [Device$1, Messages.PinMatrixRequestType | undefined, (err: any, pin: string) => void];
|
|
195
|
+
[DEVICE.PASSPHRASE_ON_DEVICE]: [Device$1, ((response: any) => void)?];
|
|
196
|
+
[DEVICE.BUTTON]: [Device$1, DeviceButtonRequestPayload];
|
|
197
|
+
[DEVICE.FEATURES]: [Device$1, DeviceFeaturesPayload];
|
|
198
|
+
[DEVICE.PASSPHRASE]: [
|
|
199
|
+
Device$1,
|
|
200
|
+
PassphraseRequestPayload,
|
|
201
|
+
(response: PassphrasePromptResponse, error?: Error) => void
|
|
202
|
+
];
|
|
203
|
+
[DEVICE.SELECT_DEVICE_IN_BOOTLOADER_FOR_WEB_DEVICE]: [
|
|
204
|
+
Device$1,
|
|
205
|
+
(err: any, deviceId: string) => void
|
|
206
|
+
];
|
|
207
|
+
[DEVICE.SELECT_DEVICE_FOR_SWITCH_FIRMWARE_WEB_DEVICE]: [
|
|
208
|
+
Device$1,
|
|
209
|
+
(err: any, deviceId: string) => void
|
|
210
|
+
];
|
|
211
|
+
}
|
|
212
|
+
declare function preloadSessionCache(deviceId: string, passphraseState: string, sessionId: string): void;
|
|
213
|
+
interface Device$1 {
|
|
214
|
+
on<K extends keyof DeviceEvents>(type: K, listener: (...event: DeviceEvents[K]) => void): this;
|
|
215
|
+
off<K extends keyof DeviceEvents>(type: K, listener: (...event: DeviceEvents[K]) => void): this;
|
|
216
|
+
emit<K extends keyof DeviceEvents>(type: K, ...args: DeviceEvents[K]): boolean;
|
|
217
|
+
}
|
|
218
|
+
declare class Device$1 extends EventEmitter {
|
|
219
|
+
originalDescriptor: OneKeyDeviceInfo;
|
|
220
|
+
sdkInstanceId?: string;
|
|
221
|
+
instanceId: string;
|
|
222
|
+
createdAt: number;
|
|
223
|
+
mainId?: string | null;
|
|
224
|
+
deviceConnector?: DeviceConnector | null;
|
|
225
|
+
commands: DeviceCommands;
|
|
226
|
+
private cancelableAction?;
|
|
227
|
+
private deviceAcquired;
|
|
228
|
+
features: Features | undefined;
|
|
229
|
+
featuresNeedsReload: boolean;
|
|
230
|
+
runPromise?: Deferred<void> | null;
|
|
231
|
+
externalState: string[];
|
|
232
|
+
unavailableCapabilities: UnavailableCapabilities;
|
|
233
|
+
instance: number;
|
|
234
|
+
internalState: string[];
|
|
235
|
+
needReloadDevice: boolean;
|
|
236
|
+
keepSession: boolean;
|
|
237
|
+
passphraseState: string | undefined;
|
|
238
|
+
pendingCallbackPromise?: Deferred<void>;
|
|
239
|
+
private preInitializedAt?;
|
|
240
|
+
private preInitializeMeta?;
|
|
241
|
+
private lastInitializeDurationMs?;
|
|
242
|
+
constructor(descriptor: OneKeyDeviceInfo, sdkInstanceId?: string);
|
|
243
|
+
static fromDescriptor(originalDescriptor: OneKeyDeviceInfo, sdkInstanceId?: string): Device$1;
|
|
244
|
+
toMessageObject(): Device | null;
|
|
245
|
+
connect(connectProtocol?: HardwareConnectProtocol): Promise<boolean>;
|
|
246
|
+
acquire(connectProtocol?: HardwareConnectProtocol, options?: {
|
|
247
|
+
throwOnRunPromiseError?: boolean;
|
|
248
|
+
}): Promise<void>;
|
|
249
|
+
release(): Promise<void>;
|
|
250
|
+
preInitialize(initOptions?: InitOptions): Promise<void>;
|
|
251
|
+
markPreInitialized(meta?: {
|
|
252
|
+
passphraseState?: string;
|
|
253
|
+
}): void;
|
|
254
|
+
clearPreInitialized(): void;
|
|
255
|
+
isPreInitializeMetaMatch(payload?: {
|
|
256
|
+
passphraseState?: string;
|
|
257
|
+
}): boolean;
|
|
258
|
+
isPreInitializedValid(ttlMs: number): boolean;
|
|
259
|
+
setLastInitializeDuration(durationMs: number): void;
|
|
260
|
+
getLastInitializeDuration(): number | undefined;
|
|
261
|
+
getCommands(): DeviceCommands;
|
|
262
|
+
getProtocol(): 'V1' | 'V2';
|
|
263
|
+
isProtocolV2(): boolean;
|
|
264
|
+
getCurrentDeviceType(): IDeviceType;
|
|
265
|
+
getCurrentDeviceId(): string | undefined;
|
|
266
|
+
getCurrentSerialNo(): string;
|
|
267
|
+
getConnectId(): string;
|
|
268
|
+
getCurrentBleName(): string | null;
|
|
269
|
+
getCurrentLabel(): string | null;
|
|
270
|
+
getCurrentPassphraseProtection(): boolean | null | undefined;
|
|
271
|
+
getCurrentFirmwareType(): _onekeyfe_hd_shared.EFirmwareType;
|
|
272
|
+
getCurrentFirmwareVersionString(): string;
|
|
273
|
+
getCurrentBLEFirmwareVersionString(): string | undefined;
|
|
274
|
+
getCurrentSafetyChecks(): string | null | undefined;
|
|
275
|
+
getCurrentMethodVersionRange(getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined): IVersionRange | undefined;
|
|
276
|
+
supportNewPassphrase(): SupportFeatureType;
|
|
277
|
+
supportInputPinOnSoftware(): SupportFeatureType;
|
|
278
|
+
supportModifyHomescreen(): SupportFeatureType;
|
|
279
|
+
private getSessionCacheDeviceKey;
|
|
280
|
+
getInternalState(_deviceId?: string): string | undefined;
|
|
281
|
+
updateInternalState(enablePassphrase: boolean, passphraseState: string | undefined, deviceId: string | undefined, sessionId?: string | null, featuresSessionId?: string | null): void;
|
|
282
|
+
private setInternalState;
|
|
283
|
+
clearInternalState(_deviceId?: string): void;
|
|
284
|
+
initialize(options?: InitOptions): Promise<void>;
|
|
285
|
+
private _initializeProtocolV2;
|
|
286
|
+
private _refreshProtocolV2Status;
|
|
287
|
+
getFeatures(): Promise<Features | undefined>;
|
|
288
|
+
_updateFeatures(protoFeatures: Messages.Features | Features, initSession?: boolean): void;
|
|
289
|
+
updateProtocolV2Features(deviceInfo?: ProtocolV2DeviceInfo): Features;
|
|
290
|
+
updateProtocolV2Status(status: DeviceStatus$1): Features;
|
|
291
|
+
updateDescriptor(descriptor: OneKeyDeviceInfo, forceUpdate?: boolean): void;
|
|
292
|
+
updateFromCache(device: Device$1): void;
|
|
293
|
+
run(fn?: () => Promise<void>, options?: RunOptions): Promise<void>;
|
|
294
|
+
_runInner<T>(fn: (() => Promise<T>) | undefined, options: RunOptions): Promise<undefined>;
|
|
295
|
+
interruptionFromOutside(): Promise<void>;
|
|
296
|
+
interruptionFromUser(): Promise<void>;
|
|
297
|
+
setCancelableAction(callback: (err?: Error) => Promise<unknown>): void;
|
|
298
|
+
clearCancelableAction(): void;
|
|
299
|
+
getMode(): EOneKeyDeviceMode;
|
|
300
|
+
getFirmwareVersion(): IVersionArray | null;
|
|
301
|
+
getBLEFirmwareVersion(): IVersionArray | null;
|
|
302
|
+
isUsed(): boolean;
|
|
303
|
+
hasDeviceAcquire(): boolean;
|
|
304
|
+
isUsedHere(): boolean;
|
|
305
|
+
isUsedElsewhere(): boolean;
|
|
306
|
+
isBootloader(): boolean | undefined;
|
|
307
|
+
isInitialized(): boolean | undefined;
|
|
308
|
+
isSeedless(): boolean | undefined;
|
|
309
|
+
isUnacquired(): boolean;
|
|
310
|
+
hasUnexpectedMode(allow: string[], require: string[]): "ui-device_bootloader_mode" | "ui-device_not_in_bootloader_mode" | "ui-device_not_initialized" | "ui-device_seedless" | null;
|
|
311
|
+
hasUsePassphrase(): boolean;
|
|
312
|
+
checkDeviceId(deviceId: string): boolean;
|
|
313
|
+
lockDevice(): Promise<Success$1>;
|
|
314
|
+
supportUnlockVersionRange(): DeviceFirmwareRange;
|
|
315
|
+
unlockDevice(): Promise<Features | undefined>;
|
|
316
|
+
checkPassphraseStateSafety(passphraseState?: string, useEmptyPassphrase?: boolean, skipPassphraseCheck?: boolean): Promise<boolean>;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
declare function generateSdkInstanceId(): string;
|
|
320
|
+
declare function generateInstanceId(type: string, sdkInstanceId?: string): string;
|
|
321
|
+
interface RequestContext {
|
|
322
|
+
responseID: number;
|
|
323
|
+
sdkInstanceId?: string;
|
|
324
|
+
methodName: string;
|
|
325
|
+
connectId?: string;
|
|
326
|
+
deviceInstanceId?: string;
|
|
327
|
+
commandsInstanceId?: string;
|
|
328
|
+
parentResponseID?: number;
|
|
329
|
+
startTime: number;
|
|
330
|
+
endTime?: number;
|
|
331
|
+
status?: 'pending' | 'running' | 'success' | 'error' | 'cancelled';
|
|
332
|
+
error?: string;
|
|
333
|
+
}
|
|
334
|
+
interface SdkTracingContext {
|
|
335
|
+
sdkInstanceId: string;
|
|
336
|
+
createdAt: number;
|
|
337
|
+
activeRequests: Map<number, RequestContext>;
|
|
338
|
+
}
|
|
339
|
+
declare function createSdkTracingContext(): SdkTracingContext;
|
|
340
|
+
declare function createRequestContext(responseID: number, methodName: string, options?: {
|
|
341
|
+
sdkInstanceId?: string;
|
|
342
|
+
connectId?: string;
|
|
343
|
+
deviceInstanceId?: string;
|
|
344
|
+
commandsInstanceId?: string;
|
|
345
|
+
parentResponseID?: number;
|
|
346
|
+
}): RequestContext;
|
|
347
|
+
declare function updateRequestContext(responseID: number, updates: Partial<RequestContext>): void;
|
|
348
|
+
declare function completeRequestContext(responseID: number, error?: Error): void;
|
|
349
|
+
declare function getActiveRequestsByDeviceInstance(deviceInstanceId: string): RequestContext[];
|
|
350
|
+
declare function formatRequestContext(context: RequestContext): string;
|
|
351
|
+
declare function cleanupSdkInstance(sdkInstanceId: string): void;
|
|
352
|
+
|
|
353
|
+
declare class Core extends EventEmitter {
|
|
354
|
+
private tracingContext;
|
|
355
|
+
readonly sdkInstanceId: string;
|
|
356
|
+
private requestQueue;
|
|
357
|
+
private prePendingCallPromise;
|
|
358
|
+
private methodSynchronize;
|
|
359
|
+
constructor();
|
|
360
|
+
private getCoreContext;
|
|
361
|
+
handleMessage(message: CoreMessage): Promise<any>;
|
|
362
|
+
dispose(): void;
|
|
363
|
+
}
|
|
364
|
+
declare const init$1: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin) => Promise<Core | undefined>;
|
|
365
|
+
declare const switchTransport: ({ env, Transport, plugin, }: {
|
|
366
|
+
env: ConnectSettings['env'];
|
|
367
|
+
Transport: any;
|
|
368
|
+
plugin?: LowlevelTransportSharedPlugin | undefined;
|
|
369
|
+
}) => void;
|
|
370
|
+
|
|
371
|
+
type DeviceInfoGetTargets = {
|
|
372
|
+
hw?: boolean;
|
|
373
|
+
fw?: boolean;
|
|
374
|
+
coprocessor?: boolean;
|
|
375
|
+
se1?: boolean;
|
|
376
|
+
se2?: boolean;
|
|
377
|
+
se3?: boolean;
|
|
378
|
+
se4?: boolean;
|
|
379
|
+
status?: boolean;
|
|
215
380
|
};
|
|
216
|
-
type
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
fingerprintWeb: string;
|
|
222
|
-
version: IVersionArray;
|
|
223
|
-
changelog: {
|
|
224
|
-
[k in ILocale]: string;
|
|
225
|
-
};
|
|
381
|
+
type DeviceInfoGetTypes = {
|
|
382
|
+
version?: boolean;
|
|
383
|
+
build_id?: boolean;
|
|
384
|
+
hash?: boolean;
|
|
385
|
+
specific?: boolean;
|
|
226
386
|
};
|
|
227
|
-
type
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
firmware: IFirmwareReleaseInfo[];
|
|
231
|
-
'firmware-v2'?: IFirmwareReleaseInfo[];
|
|
232
|
-
'firmware-v8'?: IFirmwareReleaseInfo[];
|
|
233
|
-
'firmware-btc-v8'?: IFirmwareReleaseInfo[];
|
|
234
|
-
ble: IBLEFirmwareReleaseInfo[];
|
|
235
|
-
};
|
|
387
|
+
type DeviceInfoGetParams = {
|
|
388
|
+
targets?: DeviceInfoGetTargets;
|
|
389
|
+
types?: DeviceInfoGetTypes;
|
|
236
390
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
391
|
+
|
|
392
|
+
type DeviceSessionGetParams = {
|
|
393
|
+
sessionId?: string;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
type FileOpSuccess = {
|
|
397
|
+
message?: string;
|
|
398
|
+
};
|
|
399
|
+
type FileInfo = {
|
|
400
|
+
path: string;
|
|
401
|
+
offset: number;
|
|
402
|
+
total_size: number;
|
|
403
|
+
data?: Uint8Array;
|
|
404
|
+
data_hash?: number;
|
|
405
|
+
processed_byte?: number;
|
|
406
|
+
chunks?: number;
|
|
407
|
+
};
|
|
408
|
+
type DirInfo = {
|
|
409
|
+
path: string;
|
|
410
|
+
child_dirs?: string;
|
|
411
|
+
child_files?: string;
|
|
412
|
+
};
|
|
413
|
+
type PathInfoResult = {
|
|
414
|
+
exist: boolean;
|
|
415
|
+
size: number;
|
|
416
|
+
year: number;
|
|
417
|
+
month: number;
|
|
418
|
+
day: number;
|
|
419
|
+
hour: number;
|
|
420
|
+
minute: number;
|
|
421
|
+
second: number;
|
|
422
|
+
readonly: boolean;
|
|
423
|
+
hidden: boolean;
|
|
424
|
+
system: boolean;
|
|
425
|
+
archive: boolean;
|
|
426
|
+
directory: boolean;
|
|
427
|
+
};
|
|
428
|
+
declare function protocolInfoRequest(connectId: string, params?: CommonParams): Response<ProtocolInfo>;
|
|
429
|
+
declare function ping(connectId: string, params?: CommonParams & {
|
|
430
|
+
message?: string;
|
|
431
|
+
}): Response<Success$1>;
|
|
432
|
+
declare function deviceReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
|
|
433
|
+
declare function deviceInfoGet(connectId: string, params?: CommonParams & DeviceInfoGetParams): Response<ProtocolV2DeviceInfo>;
|
|
434
|
+
declare function deviceStatusGet(connectId: string, params?: CommonParams): Response<DeviceStatus$1>;
|
|
435
|
+
declare function deviceSessionGet(connectId: string, params?: CommonParams & DeviceSessionGetParams): Response<DeviceSession>;
|
|
436
|
+
declare function deviceFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DeviceFirmwareUpdateStatus>;
|
|
437
|
+
declare function deviceGetFirmwareUpdateStatus(connectId: string, params?: CommonParams & DeviceFirmwareUpdateStatusGetParams): Response<DeviceFirmwareUpdateStatus>;
|
|
438
|
+
declare function deviceFactoryInfoSet(connectId: string, params: CommonParams & DeviceFactoryInfoSetParams): Response<Success$1>;
|
|
439
|
+
declare function deviceFactoryInfoGet(connectId: string, params?: CommonParams): Response<DeviceFactoryInfo>;
|
|
440
|
+
declare function filesystemPermissionFix(connectId: string, params?: CommonParams): Response<Success$1>;
|
|
441
|
+
declare function fileRead(connectId: string, params: {
|
|
442
|
+
path: string;
|
|
443
|
+
offset?: number;
|
|
444
|
+
totalSize?: number;
|
|
445
|
+
chunkLen?: number;
|
|
446
|
+
uiPercentage?: number;
|
|
447
|
+
}): Response<FileInfo>;
|
|
448
|
+
declare function fileWrite(connectId: string, params: {
|
|
449
|
+
path: string;
|
|
450
|
+
offset?: number;
|
|
451
|
+
totalSize?: number;
|
|
452
|
+
chunkSize?: number;
|
|
453
|
+
chunkLen?: number;
|
|
454
|
+
data: ArrayBuffer | Uint8Array | Blob | string;
|
|
455
|
+
overwrite?: boolean;
|
|
456
|
+
append?: boolean;
|
|
457
|
+
uiPercentage?: number;
|
|
458
|
+
timeoutMs?: number | string;
|
|
459
|
+
}): Response<FileInfo>;
|
|
460
|
+
declare function fileDelete(connectId: string, params: {
|
|
461
|
+
path: string;
|
|
462
|
+
}): Response<FileOpSuccess>;
|
|
463
|
+
declare function dirList(connectId: string, params: {
|
|
464
|
+
path: string;
|
|
465
|
+
depth?: number;
|
|
466
|
+
}): Response<DirInfo>;
|
|
467
|
+
declare function dirMake(connectId: string, params: {
|
|
468
|
+
path: string;
|
|
469
|
+
}): Response<FileOpSuccess>;
|
|
470
|
+
declare function dirRemove(connectId: string, params: {
|
|
471
|
+
path: string;
|
|
472
|
+
}): Response<FileOpSuccess>;
|
|
473
|
+
declare function pathInfo(connectId: string, params: {
|
|
474
|
+
path: string;
|
|
475
|
+
timeoutMs?: number | string;
|
|
476
|
+
}): Response<PathInfoResult>;
|
|
477
|
+
declare const filesystemFileRead: typeof fileRead;
|
|
478
|
+
declare const filesystemFileWrite: typeof fileWrite;
|
|
479
|
+
declare const filesystemFileDelete: typeof fileDelete;
|
|
480
|
+
declare const filesystemDirList: typeof dirList;
|
|
481
|
+
declare const filesystemDirMake: typeof dirMake;
|
|
482
|
+
declare const filesystemDirRemove: typeof dirRemove;
|
|
483
|
+
declare const filesystemPathInfoQuery: typeof pathInfo;
|
|
484
|
+
declare function filesystemFormat(connectId: string): Response<Success$1>;
|
|
485
|
+
declare function filesystemDiskControl(connectId: string, params: CommonParams & {
|
|
486
|
+
enable: boolean | 0 | 1;
|
|
487
|
+
timeoutMs?: number | string;
|
|
488
|
+
}): Response<Success$1>;
|
|
489
|
+
|
|
490
|
+
declare const on: <T extends string, P extends (...args: any[]) => any>(type: T, fn: P) => void;
|
|
491
|
+
declare const off: (type: any, fn: any) => void;
|
|
492
|
+
declare const removeAllListeners: (type: any) => void;
|
|
493
|
+
|
|
494
|
+
declare function uiResponse(response: UiResponseEvent): void;
|
|
495
|
+
|
|
496
|
+
type IAddHardwareGlobalEventListener = (coreMessage: CoreMessage) => void;
|
|
497
|
+
interface LowLevelInjectApi {
|
|
498
|
+
call: CallMethod;
|
|
499
|
+
eventEmitter: EventEmitter$1;
|
|
500
|
+
init: CoreApi['init'];
|
|
501
|
+
dispose: CoreApi['dispose'];
|
|
502
|
+
uiResponse: CoreApi['uiResponse'];
|
|
503
|
+
cancel: CoreApi['cancel'];
|
|
504
|
+
updateSettings: CoreApi['updateSettings'];
|
|
505
|
+
switchTransport: CoreApi['switchTransport'];
|
|
506
|
+
addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
|
|
507
|
+
}
|
|
508
|
+
type LowLevelCoreApi = Omit<CoreApi, 'on' | 'off'> & {
|
|
509
|
+
addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
|
|
251
510
|
};
|
|
252
|
-
type RemoteConfigResponse = {
|
|
253
|
-
bridge: AssetsMap['bridge'];
|
|
254
|
-
} & DeviceTypeMap;
|
|
255
511
|
|
|
256
512
|
type DeviceStatus = 'available' | 'occupied' | 'used';
|
|
257
513
|
declare enum EOneKeyDeviceMode {
|
|
@@ -276,8 +532,7 @@ type KnownDevice = {
|
|
|
276
532
|
name: string;
|
|
277
533
|
error?: typeof undefined;
|
|
278
534
|
mode: EOneKeyDeviceMode;
|
|
279
|
-
|
|
280
|
-
features?: Messages.Features;
|
|
535
|
+
features?: Features;
|
|
281
536
|
sessionId?: string | null;
|
|
282
537
|
unavailableCapabilities: UnavailableCapabilities;
|
|
283
538
|
bleFirmwareVersion: IVersionArray | null;
|
|
@@ -294,10 +549,92 @@ type SearchDevice = {
|
|
|
294
549
|
name: string;
|
|
295
550
|
commType: OneKeyDeviceCommType;
|
|
296
551
|
};
|
|
297
|
-
type Device
|
|
298
|
-
type
|
|
299
|
-
type
|
|
300
|
-
|
|
552
|
+
type Device = KnownDevice;
|
|
553
|
+
type DeviceFeaturesProtocol = 'V1' | 'V2' | 'unknown';
|
|
554
|
+
type DeviceFeaturesMode = 'normal' | 'bootloader' | 'notInitialized' | 'backupMode' | 'unknown';
|
|
555
|
+
type DeviceFeaturesVerify = {
|
|
556
|
+
firmwareBuildId?: string;
|
|
557
|
+
firmwareHash?: string;
|
|
558
|
+
bootloaderBuildId?: string;
|
|
559
|
+
bootloaderHash?: string;
|
|
560
|
+
boardBuildId?: string;
|
|
561
|
+
boardHash?: string;
|
|
562
|
+
bleBuildId?: string;
|
|
563
|
+
bleHash?: string;
|
|
564
|
+
se01BuildId?: string;
|
|
565
|
+
se01Hash?: string;
|
|
566
|
+
se02BuildId?: string;
|
|
567
|
+
se02Hash?: string;
|
|
568
|
+
se03BuildId?: string;
|
|
569
|
+
se03Hash?: string;
|
|
570
|
+
se04BuildId?: string;
|
|
571
|
+
se04Hash?: string;
|
|
572
|
+
se01BootBuildId?: string;
|
|
573
|
+
se01BootHash?: string;
|
|
574
|
+
se02BootBuildId?: string;
|
|
575
|
+
se02BootHash?: string;
|
|
576
|
+
se03BootBuildId?: string;
|
|
577
|
+
se03BootHash?: string;
|
|
578
|
+
se04BootBuildId?: string;
|
|
579
|
+
se04BootHash?: string;
|
|
580
|
+
};
|
|
581
|
+
type DeviceFeaturesRaw = {
|
|
582
|
+
protocolV1Features?: Messages.Features;
|
|
583
|
+
protocolV1OneKeyFeatures?: OnekeyFeatures;
|
|
584
|
+
protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
|
|
585
|
+
};
|
|
586
|
+
type Features = {
|
|
587
|
+
protocol: DeviceFeaturesProtocol;
|
|
588
|
+
protocolVersion?: number | null;
|
|
589
|
+
deviceType: IDeviceType;
|
|
590
|
+
firmwareType: EFirmwareType;
|
|
591
|
+
model: string | null;
|
|
592
|
+
vendor: string | null;
|
|
593
|
+
deviceId: string | null;
|
|
594
|
+
serialNo: string;
|
|
595
|
+
label: string | null;
|
|
596
|
+
bleName: string | null;
|
|
597
|
+
capabilities: Array<number | string>;
|
|
598
|
+
mode: DeviceFeaturesMode;
|
|
599
|
+
initialized: boolean | null;
|
|
600
|
+
bootloaderMode: boolean | null;
|
|
601
|
+
unlocked: boolean | null;
|
|
602
|
+
firmwarePresent: boolean | null;
|
|
603
|
+
passphraseProtection: boolean | null;
|
|
604
|
+
pinProtection: boolean | null;
|
|
605
|
+
backupRequired: boolean | null;
|
|
606
|
+
noBackup: boolean | null;
|
|
607
|
+
unfinishedBackup: boolean | null;
|
|
608
|
+
recoveryMode: boolean | null;
|
|
609
|
+
language: string | null;
|
|
610
|
+
bleEnabled: boolean | null;
|
|
611
|
+
sdCardPresent: boolean | null;
|
|
612
|
+
sdProtection: boolean | null;
|
|
613
|
+
wipeCodeProtection: boolean | null;
|
|
614
|
+
passphraseAlwaysOnDevice: boolean | null;
|
|
615
|
+
attachToPinEnabled?: boolean | null;
|
|
616
|
+
safetyChecks: string | null;
|
|
617
|
+
autoLockDelayMs: number | null;
|
|
618
|
+
displayRotation: number | null;
|
|
619
|
+
experimentalFeatures: boolean | null;
|
|
620
|
+
firmwareVersion: string | null;
|
|
621
|
+
bootloaderVersion: string | null;
|
|
622
|
+
boardVersion: string | null;
|
|
623
|
+
bleVersion: string | null;
|
|
624
|
+
se01Version?: string | null;
|
|
625
|
+
se02Version?: string | null;
|
|
626
|
+
se03Version?: string | null;
|
|
627
|
+
se04Version?: string | null;
|
|
628
|
+
se01BootVersion?: string | null;
|
|
629
|
+
se02BootVersion?: string | null;
|
|
630
|
+
se03BootVersion?: string | null;
|
|
631
|
+
se04BootVersion?: string | null;
|
|
632
|
+
seVersion?: string | null;
|
|
633
|
+
verify?: DeviceFeaturesVerify;
|
|
634
|
+
sessionId: string | null;
|
|
635
|
+
passphraseState?: string;
|
|
636
|
+
unlockedAttachPin?: boolean;
|
|
637
|
+
raw?: DeviceFeaturesRaw;
|
|
301
638
|
};
|
|
302
639
|
type OnekeyFeatures = Messages.OnekeyFeatures;
|
|
303
640
|
type IDeviceType = EDeviceType.Unknown | EDeviceType.Classic | EDeviceType.Classic1s | EDeviceType.ClassicPure | EDeviceType.Mini | EDeviceType.Touch | EDeviceType.Pro | EDeviceType.Pro2;
|
|
@@ -365,416 +702,109 @@ type SupportFeatures = {
|
|
|
365
702
|
modifyHomescreen: SupportFeatureType;
|
|
366
703
|
};
|
|
367
704
|
|
|
368
|
-
type
|
|
369
|
-
type
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
firmware: string | null;
|
|
390
|
-
bootloader: string | null;
|
|
391
|
-
board: string | null;
|
|
392
|
-
ble: string | null;
|
|
393
|
-
se01?: string | null;
|
|
394
|
-
se02?: string | null;
|
|
395
|
-
se03?: string | null;
|
|
396
|
-
se04?: string | null;
|
|
397
|
-
se01Boot?: string | null;
|
|
398
|
-
se02Boot?: string | null;
|
|
399
|
-
se03Boot?: string | null;
|
|
400
|
-
se04Boot?: string | null;
|
|
401
|
-
};
|
|
402
|
-
type DeviceProfileVerify = {
|
|
403
|
-
firmwareBuildId?: string;
|
|
404
|
-
firmwareHash?: string;
|
|
405
|
-
bootloaderBuildId?: string;
|
|
406
|
-
bootloaderHash?: string;
|
|
407
|
-
boardBuildId?: string;
|
|
408
|
-
boardHash?: string;
|
|
409
|
-
bleBuildId?: string;
|
|
410
|
-
bleHash?: string;
|
|
411
|
-
se01BuildId?: string;
|
|
412
|
-
se01Hash?: string;
|
|
413
|
-
se02BuildId?: string;
|
|
414
|
-
se02Hash?: string;
|
|
415
|
-
se03BuildId?: string;
|
|
416
|
-
se03Hash?: string;
|
|
417
|
-
se04BuildId?: string;
|
|
418
|
-
se04Hash?: string;
|
|
419
|
-
se01BootBuildId?: string;
|
|
420
|
-
se01BootHash?: string;
|
|
421
|
-
se02BootBuildId?: string;
|
|
422
|
-
se02BootHash?: string;
|
|
423
|
-
se03BootBuildId?: string;
|
|
424
|
-
se03BootHash?: string;
|
|
425
|
-
se04BootBuildId?: string;
|
|
426
|
-
se04BootHash?: string;
|
|
427
|
-
};
|
|
428
|
-
type DeviceProfileRaw = {
|
|
429
|
-
features?: Features;
|
|
430
|
-
onekeyFeatures?: OnekeyFeatures;
|
|
431
|
-
protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
|
|
432
|
-
};
|
|
433
|
-
type DeviceProfile = {
|
|
434
|
-
protocol: DeviceInfoProtocol;
|
|
435
|
-
sources: DeviceInfoSource[];
|
|
436
|
-
deviceType: IDeviceType;
|
|
437
|
-
firmwareType: EFirmwareType;
|
|
438
|
-
deviceId: string;
|
|
439
|
-
serialNo: string;
|
|
440
|
-
label: string | null;
|
|
441
|
-
bleName: string | null;
|
|
442
|
-
status: DeviceInfoStatus;
|
|
443
|
-
versions: DeviceProfileVersions;
|
|
444
|
-
verify?: DeviceProfileVerify;
|
|
445
|
-
raw?: DeviceProfileRaw;
|
|
446
|
-
};
|
|
447
|
-
declare function getDeviceInfo(connectId?: string, params?: CommonParams & GetDeviceInfoParams): Response<DeviceProfile>;
|
|
448
|
-
|
|
449
|
-
type InitOptions = {
|
|
450
|
-
initSession?: boolean;
|
|
451
|
-
deviceId?: string;
|
|
452
|
-
passphraseState?: string;
|
|
453
|
-
deriveCardano?: boolean;
|
|
454
|
-
connectProtocol?: HardwareConnectProtocol;
|
|
455
|
-
};
|
|
456
|
-
type RunOptions = {
|
|
457
|
-
keepSession?: boolean;
|
|
458
|
-
skipInitialize?: boolean;
|
|
459
|
-
} & InitOptions;
|
|
460
|
-
interface DeviceEvents {
|
|
461
|
-
[DEVICE.PIN]: [Device, Messages.PinMatrixRequestType | undefined, (err: any, pin: string) => void];
|
|
462
|
-
[DEVICE.PASSPHRASE_ON_DEVICE]: [Device, ((response: any) => void)?];
|
|
463
|
-
[DEVICE.BUTTON]: [Device, DeviceButtonRequestPayload];
|
|
464
|
-
[DEVICE.FEATURES]: [Device, DeviceFeaturesPayload];
|
|
465
|
-
[DEVICE.PASSPHRASE]: [
|
|
466
|
-
Device,
|
|
467
|
-
PassphraseRequestPayload,
|
|
468
|
-
(response: PassphrasePromptResponse, error?: Error) => void
|
|
469
|
-
];
|
|
470
|
-
[DEVICE.SELECT_DEVICE_IN_BOOTLOADER_FOR_WEB_DEVICE]: [
|
|
471
|
-
Device,
|
|
472
|
-
(err: any, deviceId: string) => void
|
|
473
|
-
];
|
|
474
|
-
[DEVICE.SELECT_DEVICE_FOR_SWITCH_FIRMWARE_WEB_DEVICE]: [
|
|
475
|
-
Device,
|
|
476
|
-
(err: any, deviceId: string) => void
|
|
477
|
-
];
|
|
478
|
-
}
|
|
479
|
-
declare function preloadSessionCache(deviceId: string, passphraseState: string, sessionId: string): void;
|
|
480
|
-
interface Device {
|
|
481
|
-
on<K extends keyof DeviceEvents>(type: K, listener: (...event: DeviceEvents[K]) => void): this;
|
|
482
|
-
off<K extends keyof DeviceEvents>(type: K, listener: (...event: DeviceEvents[K]) => void): this;
|
|
483
|
-
emit<K extends keyof DeviceEvents>(type: K, ...args: DeviceEvents[K]): boolean;
|
|
484
|
-
}
|
|
485
|
-
declare class Device extends EventEmitter {
|
|
486
|
-
originalDescriptor: OneKeyDeviceInfo;
|
|
487
|
-
sdkInstanceId?: string;
|
|
488
|
-
instanceId: string;
|
|
489
|
-
createdAt: number;
|
|
490
|
-
mainId?: string | null;
|
|
491
|
-
deviceConnector?: DeviceConnector | null;
|
|
492
|
-
commands: DeviceCommands;
|
|
493
|
-
private cancelableAction?;
|
|
494
|
-
private deviceAcquired;
|
|
495
|
-
features: Features | undefined;
|
|
496
|
-
private getFeaturesProfile;
|
|
497
|
-
get profile(): DeviceProfile | undefined;
|
|
498
|
-
set profile(profile: DeviceProfile | undefined);
|
|
499
|
-
featuresNeedsReload: boolean;
|
|
500
|
-
runPromise?: Deferred<void> | null;
|
|
501
|
-
externalState: string[];
|
|
502
|
-
unavailableCapabilities: UnavailableCapabilities;
|
|
503
|
-
instance: number;
|
|
504
|
-
internalState: string[];
|
|
505
|
-
needReloadDevice: boolean;
|
|
506
|
-
keepSession: boolean;
|
|
507
|
-
passphraseState: string | undefined;
|
|
508
|
-
pendingCallbackPromise?: Deferred<void>;
|
|
509
|
-
private preInitializedAt?;
|
|
510
|
-
private preInitializeMeta?;
|
|
511
|
-
private lastInitializeDurationMs?;
|
|
512
|
-
constructor(descriptor: OneKeyDeviceInfo, sdkInstanceId?: string);
|
|
513
|
-
static fromDescriptor(originalDescriptor: OneKeyDeviceInfo, sdkInstanceId?: string): Device;
|
|
514
|
-
toMessageObject(): Device$1 | null;
|
|
515
|
-
connect(connectProtocol?: HardwareConnectProtocol): Promise<boolean>;
|
|
516
|
-
acquire(connectProtocol?: HardwareConnectProtocol): Promise<void>;
|
|
517
|
-
release(): Promise<void>;
|
|
518
|
-
preInitialize(initOptions?: InitOptions): Promise<void>;
|
|
519
|
-
markPreInitialized(meta?: {
|
|
520
|
-
passphraseState?: string;
|
|
521
|
-
}): void;
|
|
522
|
-
clearPreInitialized(): void;
|
|
523
|
-
isPreInitializeMetaMatch(payload?: {
|
|
524
|
-
passphraseState?: string;
|
|
525
|
-
}): boolean;
|
|
526
|
-
isPreInitializedValid(ttlMs: number): boolean;
|
|
527
|
-
setLastInitializeDuration(durationMs: number): void;
|
|
528
|
-
getLastInitializeDuration(): number | undefined;
|
|
529
|
-
getCommands(): DeviceCommands;
|
|
530
|
-
getProtocol(): 'V1' | 'V2';
|
|
531
|
-
isProtocolV2(): boolean;
|
|
532
|
-
getCurrentDeviceType(): IDeviceType;
|
|
533
|
-
getCurrentDeviceId(): string | undefined;
|
|
534
|
-
getCurrentSerialNo(): string;
|
|
535
|
-
getCurrentBleName(): string | null;
|
|
536
|
-
getCurrentLabel(): string | null;
|
|
537
|
-
getCurrentPassphraseProtection(): boolean | null | undefined;
|
|
538
|
-
getCurrentFirmwareType(): _onekeyfe_hd_shared.EFirmwareType;
|
|
539
|
-
getCurrentFirmwareVersionString(): string;
|
|
540
|
-
getCurrentBLEFirmwareVersionString(): string | undefined;
|
|
541
|
-
getCurrentSafetyChecks(): "Strict" | "PromptAlways" | "PromptTemporarily" | null | undefined;
|
|
542
|
-
getCurrentMethodVersionRange(getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined): IVersionRange | undefined;
|
|
543
|
-
supportNewPassphrase(): SupportFeatureType;
|
|
544
|
-
supportInputPinOnSoftware(): SupportFeatureType;
|
|
545
|
-
supportModifyHomescreen(): SupportFeatureType;
|
|
546
|
-
private generateStateKey;
|
|
547
|
-
getInternalState(_deviceId?: string): string | undefined;
|
|
548
|
-
updateInternalState(enablePassphrase: boolean, passphraseState: string | undefined, deviceId: string, sessionId?: string | null, featuresSessionId?: string | null): void;
|
|
549
|
-
private setInternalState;
|
|
550
|
-
clearInternalState(_deviceId?: string): void;
|
|
551
|
-
initialize(options?: InitOptions): Promise<void>;
|
|
552
|
-
private _initializeProtocolV2;
|
|
553
|
-
private _refreshProtocolV2Status;
|
|
554
|
-
getFeatures(): Promise<_onekeyfe_hd_transport.Features>;
|
|
555
|
-
_updateFeatures(feat: Features, initSession?: boolean): void;
|
|
556
|
-
updateProfile(profile: DeviceProfile | undefined): void;
|
|
557
|
-
applyProfileUpdate(next: DeviceProfile, deviceInfo?: ProtocolV2DeviceInfo): DeviceProfile;
|
|
558
|
-
private updateProtocolV2Features;
|
|
559
|
-
updateDescriptor(descriptor: OneKeyDeviceInfo, forceUpdate?: boolean): void;
|
|
560
|
-
updateFromCache(device: Device): void;
|
|
561
|
-
run(fn?: () => Promise<void>, options?: RunOptions): Promise<void>;
|
|
562
|
-
_runInner<T>(fn: (() => Promise<T>) | undefined, options: RunOptions): Promise<undefined>;
|
|
563
|
-
interruptionFromOutside(): Promise<void>;
|
|
564
|
-
interruptionFromUser(): Promise<void>;
|
|
565
|
-
setCancelableAction(callback: (err?: Error) => Promise<unknown>): void;
|
|
566
|
-
clearCancelableAction(): void;
|
|
567
|
-
getMode(): EOneKeyDeviceMode;
|
|
568
|
-
getFirmwareVersion(): IVersionArray | null;
|
|
569
|
-
getBLEFirmwareVersion(): IVersionArray | null;
|
|
570
|
-
isUsed(): boolean;
|
|
571
|
-
hasDeviceAcquire(): boolean;
|
|
572
|
-
isUsedHere(): boolean;
|
|
573
|
-
isUsedElsewhere(): boolean;
|
|
574
|
-
isBootloader(): boolean | undefined;
|
|
575
|
-
isInitialized(): boolean | undefined;
|
|
576
|
-
isSeedless(): boolean | undefined;
|
|
577
|
-
isUnacquired(): boolean;
|
|
578
|
-
hasUnexpectedMode(allow: string[], require: string[]): "ui-device_bootloader_mode" | "ui-device_not_in_bootloader_mode" | "ui-device_not_initialized" | "ui-device_seedless" | null;
|
|
579
|
-
hasUsePassphrase(): boolean;
|
|
580
|
-
checkDeviceId(deviceId: string): boolean;
|
|
581
|
-
lockDevice(): Promise<Success$1>;
|
|
582
|
-
supportUnlockVersionRange(): DeviceFirmwareRange;
|
|
583
|
-
unlockDevice(): Promise<_onekeyfe_hd_transport.Features>;
|
|
584
|
-
checkPassphraseStateSafety(passphraseState?: string, useEmptyPassphrase?: boolean, skipPassphraseCheck?: boolean): Promise<boolean>;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
declare function generateSdkInstanceId(): string;
|
|
588
|
-
declare function generateInstanceId(type: string, sdkInstanceId?: string): string;
|
|
589
|
-
interface RequestContext {
|
|
590
|
-
responseID: number;
|
|
591
|
-
sdkInstanceId?: string;
|
|
592
|
-
methodName: string;
|
|
593
|
-
connectId?: string;
|
|
594
|
-
deviceInstanceId?: string;
|
|
595
|
-
commandsInstanceId?: string;
|
|
596
|
-
parentResponseID?: number;
|
|
597
|
-
startTime: number;
|
|
598
|
-
endTime?: number;
|
|
599
|
-
status?: 'pending' | 'running' | 'success' | 'error' | 'cancelled';
|
|
600
|
-
error?: string;
|
|
601
|
-
}
|
|
602
|
-
interface SdkTracingContext {
|
|
603
|
-
sdkInstanceId: string;
|
|
604
|
-
createdAt: number;
|
|
605
|
-
activeRequests: Map<number, RequestContext>;
|
|
606
|
-
}
|
|
607
|
-
declare function createSdkTracingContext(): SdkTracingContext;
|
|
608
|
-
declare function createRequestContext(responseID: number, methodName: string, options?: {
|
|
609
|
-
sdkInstanceId?: string;
|
|
610
|
-
connectId?: string;
|
|
611
|
-
deviceInstanceId?: string;
|
|
612
|
-
commandsInstanceId?: string;
|
|
613
|
-
parentResponseID?: number;
|
|
614
|
-
}): RequestContext;
|
|
615
|
-
declare function updateRequestContext(responseID: number, updates: Partial<RequestContext>): void;
|
|
616
|
-
declare function completeRequestContext(responseID: number, error?: Error): void;
|
|
617
|
-
declare function getActiveRequestsByDeviceInstance(deviceInstanceId: string): RequestContext[];
|
|
618
|
-
declare function formatRequestContext(context: RequestContext): string;
|
|
619
|
-
declare function cleanupSdkInstance(sdkInstanceId: string): void;
|
|
620
|
-
|
|
621
|
-
declare class Core extends EventEmitter {
|
|
622
|
-
private tracingContext;
|
|
623
|
-
readonly sdkInstanceId: string;
|
|
624
|
-
private requestQueue;
|
|
625
|
-
private prePendingCallPromise;
|
|
626
|
-
private methodSynchronize;
|
|
627
|
-
constructor();
|
|
628
|
-
private getCoreContext;
|
|
629
|
-
handleMessage(message: CoreMessage): Promise<any>;
|
|
630
|
-
dispose(): void;
|
|
631
|
-
}
|
|
632
|
-
declare const init$1: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin) => Promise<Core | undefined>;
|
|
633
|
-
declare const switchTransport: ({ env, Transport, plugin, }: {
|
|
634
|
-
env: ConnectSettings['env'];
|
|
635
|
-
Transport: any;
|
|
636
|
-
plugin?: LowlevelTransportSharedPlugin | undefined;
|
|
637
|
-
}) => void;
|
|
638
|
-
|
|
639
|
-
type DeviceGetDeviceInfoTargets = {
|
|
640
|
-
hw?: boolean;
|
|
641
|
-
fw?: boolean;
|
|
642
|
-
bt?: boolean;
|
|
643
|
-
se1?: boolean;
|
|
644
|
-
se2?: boolean;
|
|
645
|
-
se3?: boolean;
|
|
646
|
-
se4?: boolean;
|
|
647
|
-
status?: boolean;
|
|
648
|
-
};
|
|
649
|
-
type DeviceGetDeviceInfoTypes = {
|
|
650
|
-
version?: boolean;
|
|
651
|
-
build_id?: boolean;
|
|
652
|
-
hash?: boolean;
|
|
653
|
-
specific?: boolean;
|
|
705
|
+
type transportEnv = 'node' | 'web' | 'webextension' | 'electron' | 'react-native' | 'webusb' | 'desktop-webusb' | 'desktop-web-ble' | 'emulator' | 'lowlevel' | 'node-usb';
|
|
706
|
+
type ConnectSettings = {
|
|
707
|
+
connectSrc?: string;
|
|
708
|
+
debug?: boolean;
|
|
709
|
+
transportReconnect?: boolean;
|
|
710
|
+
lazyLoad?: boolean;
|
|
711
|
+
origin?: string;
|
|
712
|
+
parentOrigin?: string;
|
|
713
|
+
configSrc: string;
|
|
714
|
+
iframeSrc: string;
|
|
715
|
+
version: string;
|
|
716
|
+
priority: number;
|
|
717
|
+
trustedHost: boolean;
|
|
718
|
+
supportedBrowser?: boolean;
|
|
719
|
+
env: transportEnv;
|
|
720
|
+
timestamp: number;
|
|
721
|
+
isFrame?: boolean;
|
|
722
|
+
preRelease?: boolean;
|
|
723
|
+
fetchConfig?: boolean;
|
|
724
|
+
extension?: string;
|
|
725
|
+
configFetcher?: (url: string) => Promise<RemoteConfigResponse | null>;
|
|
654
726
|
};
|
|
655
|
-
type
|
|
656
|
-
|
|
657
|
-
|
|
727
|
+
type IVersionArray = [number, number, number];
|
|
728
|
+
type ILocale = 'zh-CN' | 'en-US';
|
|
729
|
+
type IProtocolV2FirmwareComponentTarget = 'ROMLOADER' | 'BOOTLOADER' | 'APPLICATION_P1' | 'APPLICATION_P2' | 'COPROCESSOR' | 'SE01' | 'SE02' | 'SE03' | 'SE04';
|
|
730
|
+
type IProtocolV2FirmwareComponent = {
|
|
731
|
+
target: IProtocolV2FirmwareComponentTarget;
|
|
732
|
+
url: string;
|
|
733
|
+
fingerprint?: string;
|
|
734
|
+
version?: IVersionArray;
|
|
658
735
|
};
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
736
|
+
type IProtocolV2ResourceBundle = {
|
|
737
|
+
name: string;
|
|
738
|
+
url: string;
|
|
739
|
+
devicePath: string;
|
|
740
|
+
version?: IVersionArray;
|
|
741
|
+
payloadHash?: string;
|
|
742
|
+
headerHash?: string;
|
|
662
743
|
};
|
|
663
|
-
type
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
744
|
+
type IFirmwareReleaseInfo = {
|
|
745
|
+
required: boolean;
|
|
746
|
+
url: string;
|
|
747
|
+
firmwareType?: EFirmwareType;
|
|
748
|
+
resource?: string;
|
|
749
|
+
fullResource?: string;
|
|
750
|
+
fullResourceRange?: string[];
|
|
751
|
+
bootloaderResource?: string;
|
|
752
|
+
bootloaderVersion?: IVersionArray;
|
|
753
|
+
displayBootloaderVersion?: IVersionArray;
|
|
754
|
+
bootloaderRelatedFirmwareVersion?: IVersionArray;
|
|
755
|
+
upgradeType?: 'payload-package-set' | string;
|
|
756
|
+
components?: Record<string, IProtocolV2FirmwareComponent>;
|
|
757
|
+
installOrder?: string[];
|
|
758
|
+
resourceBundles?: IProtocolV2ResourceBundle[];
|
|
759
|
+
bootloaderChangelog?: {
|
|
760
|
+
[k in ILocale]: string;
|
|
761
|
+
};
|
|
762
|
+
fingerprint: string;
|
|
763
|
+
version: IVersionArray;
|
|
764
|
+
changelog: {
|
|
765
|
+
[k in ILocale]: string;
|
|
766
|
+
};
|
|
671
767
|
};
|
|
672
|
-
type
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
768
|
+
type IBLEFirmwareReleaseInfo = {
|
|
769
|
+
required: boolean;
|
|
770
|
+
url: string;
|
|
771
|
+
webUpdate: string;
|
|
772
|
+
fingerprint: string;
|
|
773
|
+
fingerprintWeb: string;
|
|
774
|
+
version: IVersionArray;
|
|
775
|
+
changelog: {
|
|
776
|
+
[k in ILocale]: string;
|
|
777
|
+
};
|
|
676
778
|
};
|
|
677
|
-
type
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
hidden: boolean;
|
|
688
|
-
system: boolean;
|
|
689
|
-
archive: boolean;
|
|
690
|
-
directory: boolean;
|
|
779
|
+
type IKnownDevice = Exclude<IDeviceType, 'unknown'>;
|
|
780
|
+
type DeviceTypeMap = {
|
|
781
|
+
[k in IKnownDevice]: {
|
|
782
|
+
firmware: IFirmwareReleaseInfo[];
|
|
783
|
+
'firmware-v1'?: IFirmwareReleaseInfo[];
|
|
784
|
+
'firmware-v2'?: IFirmwareReleaseInfo[];
|
|
785
|
+
'firmware-v8'?: IFirmwareReleaseInfo[];
|
|
786
|
+
'firmware-btc-v8'?: IFirmwareReleaseInfo[];
|
|
787
|
+
ble: IBLEFirmwareReleaseInfo[];
|
|
788
|
+
};
|
|
691
789
|
};
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
declare function factoryGetDeviceInfo(connectId: string): Response<FactoryDeviceInfo>;
|
|
707
|
-
declare function filesystemFixPermission(connectId: string): Response<Success$1>;
|
|
708
|
-
declare function fileRead(connectId: string, params: {
|
|
709
|
-
path: string;
|
|
710
|
-
offset?: number;
|
|
711
|
-
totalSize?: number;
|
|
712
|
-
chunkLen?: number;
|
|
713
|
-
uiPercentage?: number;
|
|
714
|
-
}): Response<FileInfo>;
|
|
715
|
-
declare function fileWrite(connectId: string, params: {
|
|
716
|
-
path: string;
|
|
717
|
-
offset?: number;
|
|
718
|
-
totalSize?: number;
|
|
719
|
-
chunkSize?: number;
|
|
720
|
-
chunkLen?: number;
|
|
721
|
-
data: ArrayBuffer | Uint8Array | Blob | string;
|
|
722
|
-
overwrite?: boolean;
|
|
723
|
-
append?: boolean;
|
|
724
|
-
uiPercentage?: number;
|
|
725
|
-
timeoutMs?: number | string;
|
|
726
|
-
}): Response<FileInfo>;
|
|
727
|
-
declare function fileDelete(connectId: string, params: {
|
|
728
|
-
path: string;
|
|
729
|
-
}): Response<FileOpSuccess>;
|
|
730
|
-
declare function dirList(connectId: string, params: {
|
|
731
|
-
path: string;
|
|
732
|
-
depth?: number;
|
|
733
|
-
}): Response<DirInfo>;
|
|
734
|
-
declare function dirMake(connectId: string, params: {
|
|
735
|
-
path: string;
|
|
736
|
-
}): Response<FileOpSuccess>;
|
|
737
|
-
declare function dirRemove(connectId: string, params: {
|
|
738
|
-
path: string;
|
|
739
|
-
}): Response<FileOpSuccess>;
|
|
740
|
-
declare function pathInfo(connectId: string, params: {
|
|
741
|
-
path: string;
|
|
742
|
-
timeoutMs?: number | string;
|
|
743
|
-
}): Response<PathInfoResult>;
|
|
744
|
-
declare const filesystemFileRead: typeof fileRead;
|
|
745
|
-
declare const filesystemFileWrite: typeof fileWrite;
|
|
746
|
-
declare const filesystemFileDelete: typeof fileDelete;
|
|
747
|
-
declare const filesystemDirList: typeof dirList;
|
|
748
|
-
declare const filesystemDirMake: typeof dirMake;
|
|
749
|
-
declare const filesystemDirRemove: typeof dirRemove;
|
|
750
|
-
declare const filesystemPathInfoQuery: typeof pathInfo;
|
|
751
|
-
declare function filesystemFormat(connectId: string): Response<Success$1>;
|
|
752
|
-
declare function filesystemDiskControl(connectId: string, params: CommonParams & {
|
|
753
|
-
enable: boolean | 0 | 1;
|
|
754
|
-
timeoutMs?: number | string;
|
|
755
|
-
}): Response<Success$1>;
|
|
756
|
-
|
|
757
|
-
declare const on: <T extends string, P extends (...args: any[]) => any>(type: T, fn: P) => void;
|
|
758
|
-
declare const off: (type: any, fn: any) => void;
|
|
759
|
-
declare const removeAllListeners: (type: any) => void;
|
|
760
|
-
|
|
761
|
-
declare function uiResponse(response: UiResponseEvent): void;
|
|
762
|
-
|
|
763
|
-
type IAddHardwareGlobalEventListener = (coreMessage: CoreMessage) => void;
|
|
764
|
-
interface LowLevelInjectApi {
|
|
765
|
-
call: CallMethod;
|
|
766
|
-
eventEmitter: EventEmitter$1;
|
|
767
|
-
init: CoreApi['init'];
|
|
768
|
-
dispose: CoreApi['dispose'];
|
|
769
|
-
uiResponse: CoreApi['uiResponse'];
|
|
770
|
-
cancel: CoreApi['cancel'];
|
|
771
|
-
updateSettings: CoreApi['updateSettings'];
|
|
772
|
-
switchTransport: CoreApi['switchTransport'];
|
|
773
|
-
addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
|
|
774
|
-
}
|
|
775
|
-
type LowLevelCoreApi = Omit<CoreApi, 'on' | 'off'> & {
|
|
776
|
-
addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
|
|
790
|
+
type AssetsMap = {
|
|
791
|
+
bridge: {
|
|
792
|
+
version: IVersionArray;
|
|
793
|
+
linux32Rpm: string;
|
|
794
|
+
linux64Rpm: string;
|
|
795
|
+
linux32Deb: string;
|
|
796
|
+
linux64Deb: string;
|
|
797
|
+
win: string;
|
|
798
|
+
mac: string;
|
|
799
|
+
sha256sumAsc: string;
|
|
800
|
+
changelog: {
|
|
801
|
+
[k in ILocale]: string;
|
|
802
|
+
};
|
|
803
|
+
};
|
|
777
804
|
};
|
|
805
|
+
type RemoteConfigResponse = {
|
|
806
|
+
bridge: AssetsMap['bridge'];
|
|
807
|
+
} & DeviceTypeMap;
|
|
778
808
|
|
|
779
809
|
declare function init(settings: Partial<ConnectSettings>, lowLevelApi?: LowLevelCoreApi, pulgin?: LowlevelTransportSharedPlugin): Promise<boolean>;
|
|
780
810
|
declare function updateSettings(settings: Partial<ConnectSettings>): Promise<boolean>;
|
|
@@ -785,6 +815,15 @@ declare function preInitialize(connectId: string, params?: CommonParams): Respon
|
|
|
785
815
|
|
|
786
816
|
declare function getLogs(): Response<string[]>;
|
|
787
817
|
|
|
818
|
+
type ClearSessionCacheParams = {
|
|
819
|
+
deviceId?: string;
|
|
820
|
+
passphraseState?: string;
|
|
821
|
+
};
|
|
822
|
+
type ClearSessionCachePayload = {
|
|
823
|
+
cleared: true;
|
|
824
|
+
};
|
|
825
|
+
declare function clearSessionCache(params?: ClearSessionCacheParams): Response<ClearSessionCachePayload>;
|
|
826
|
+
|
|
788
827
|
declare function checkBridgeStatus(): Response<boolean>;
|
|
789
828
|
|
|
790
829
|
type CheckBridgeReleaseResponse = {
|
|
@@ -841,13 +880,96 @@ declare function searchDevices(params?: CommonParams): Response<SearchDevice[]>;
|
|
|
841
880
|
|
|
842
881
|
declare function getFeatures(connectId?: string, params?: CommonParams): Response<Features>;
|
|
843
882
|
|
|
883
|
+
type DeviceInfoProtocol = ProtocolType | 'unknown';
|
|
884
|
+
type DeviceInfoSource = 'features' | 'protocolV1OneKeyFeatures' | 'deviceInfo';
|
|
885
|
+
type DeviceInfoScope = 'basic' | 'versions' | 'verify' | 'full';
|
|
886
|
+
type GetDeviceInfoParams = {
|
|
887
|
+
scope?: DeviceInfoScope;
|
|
888
|
+
refresh?: boolean;
|
|
889
|
+
includeRaw?: boolean;
|
|
890
|
+
};
|
|
891
|
+
type DeviceInfoMode = 'normal' | 'bootloader' | 'notInitialized' | 'unknown';
|
|
892
|
+
type DeviceInfoStatus = {
|
|
893
|
+
mode: DeviceInfoMode;
|
|
894
|
+
initialized: boolean | null;
|
|
895
|
+
bootloaderMode: boolean | null;
|
|
896
|
+
unlocked: boolean | null;
|
|
897
|
+
passphraseProtection: boolean | null;
|
|
898
|
+
attachToPinEnabled?: boolean | null;
|
|
899
|
+
unlockedAttachPin?: boolean | null;
|
|
900
|
+
backupRequired: boolean | null;
|
|
901
|
+
noBackup: boolean | null;
|
|
902
|
+
language: string | null;
|
|
903
|
+
bleEnabled: boolean | null;
|
|
904
|
+
};
|
|
905
|
+
type DeviceProfileVersions = {
|
|
906
|
+
firmware: string | null;
|
|
907
|
+
bootloader: string | null;
|
|
908
|
+
board: string | null;
|
|
909
|
+
ble: string | null;
|
|
910
|
+
se01?: string | null;
|
|
911
|
+
se02?: string | null;
|
|
912
|
+
se03?: string | null;
|
|
913
|
+
se04?: string | null;
|
|
914
|
+
se01Boot?: string | null;
|
|
915
|
+
se02Boot?: string | null;
|
|
916
|
+
se03Boot?: string | null;
|
|
917
|
+
se04Boot?: string | null;
|
|
918
|
+
};
|
|
919
|
+
type DeviceProfileVerify = {
|
|
920
|
+
firmwareBuildId?: string;
|
|
921
|
+
firmwareHash?: string;
|
|
922
|
+
bootloaderBuildId?: string;
|
|
923
|
+
bootloaderHash?: string;
|
|
924
|
+
boardBuildId?: string;
|
|
925
|
+
boardHash?: string;
|
|
926
|
+
bleBuildId?: string;
|
|
927
|
+
bleHash?: string;
|
|
928
|
+
se01BuildId?: string;
|
|
929
|
+
se01Hash?: string;
|
|
930
|
+
se02BuildId?: string;
|
|
931
|
+
se02Hash?: string;
|
|
932
|
+
se03BuildId?: string;
|
|
933
|
+
se03Hash?: string;
|
|
934
|
+
se04BuildId?: string;
|
|
935
|
+
se04Hash?: string;
|
|
936
|
+
se01BootBuildId?: string;
|
|
937
|
+
se01BootHash?: string;
|
|
938
|
+
se02BootBuildId?: string;
|
|
939
|
+
se02BootHash?: string;
|
|
940
|
+
se03BootBuildId?: string;
|
|
941
|
+
se03BootHash?: string;
|
|
942
|
+
se04BootBuildId?: string;
|
|
943
|
+
se04BootHash?: string;
|
|
944
|
+
};
|
|
945
|
+
type DeviceProfileRaw = {
|
|
946
|
+
features?: Features;
|
|
947
|
+
protocolV1OneKeyFeatures?: OnekeyFeatures;
|
|
948
|
+
protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
|
|
949
|
+
};
|
|
950
|
+
type DeviceProfile = {
|
|
951
|
+
protocol: DeviceInfoProtocol;
|
|
952
|
+
sources: DeviceInfoSource[];
|
|
953
|
+
deviceType: IDeviceType;
|
|
954
|
+
firmwareType: EFirmwareType;
|
|
955
|
+
deviceId: string;
|
|
956
|
+
serialNo: string;
|
|
957
|
+
label: string | null;
|
|
958
|
+
bleName: string | null;
|
|
959
|
+
status: DeviceInfoStatus;
|
|
960
|
+
versions: DeviceProfileVersions;
|
|
961
|
+
verify?: DeviceProfileVerify;
|
|
962
|
+
raw?: DeviceProfileRaw;
|
|
963
|
+
};
|
|
964
|
+
declare function getDeviceInfo(connectId?: string, params?: CommonParams & GetDeviceInfoParams): Response<DeviceProfile>;
|
|
965
|
+
|
|
844
966
|
declare function getOnekeyFeatures(connectId?: string, params?: CommonParams): Response<OnekeyFeatures>;
|
|
845
967
|
|
|
846
968
|
type GetPassphraseStatePayload = {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
969
|
+
passphraseState?: string;
|
|
970
|
+
sessionId?: string;
|
|
971
|
+
unlockedAttachPin?: boolean;
|
|
972
|
+
passphraseProtection?: boolean | null;
|
|
851
973
|
};
|
|
852
974
|
type GetPassphraseStateParams = CommonParams & {
|
|
853
975
|
allowCreateAttachPin?: boolean;
|
|
@@ -929,13 +1051,11 @@ interface FirmwareUpdateV4Params {
|
|
|
929
1051
|
se02Binary?: ArrayBuffer;
|
|
930
1052
|
se03Binary?: ArrayBuffer;
|
|
931
1053
|
se04Binary?: ArrayBuffer;
|
|
932
|
-
resourceBinary?: ArrayBuffer;
|
|
933
1054
|
forcedUpdateRes?: boolean;
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
bleBinary?: ArrayBuffer;
|
|
1055
|
+
resourceBundleFiles?: Array<{
|
|
1056
|
+
binary: ArrayBuffer;
|
|
1057
|
+
devicePath: string;
|
|
1058
|
+
}>;
|
|
939
1059
|
}
|
|
940
1060
|
declare function firmwareUpdateV3(connectId: string | undefined, params: Params<FirmwareUpdateV3Params>): Response<{
|
|
941
1061
|
bleVersion: string;
|
|
@@ -1042,7 +1162,7 @@ type DeviceUploadResourceResponse = Success$1 & {
|
|
|
1042
1162
|
declare function deviceUploadResource(connectId: string, params: CommonParams & DeviceUploadResourceParams): Response<DeviceUploadResourceResponse>;
|
|
1043
1163
|
|
|
1044
1164
|
type DeviceSupportFeatures = SupportFeatures & {
|
|
1045
|
-
device: Device
|
|
1165
|
+
device: Device | null;
|
|
1046
1166
|
};
|
|
1047
1167
|
declare function deviceSupportFeatures(connectId?: string): Response<DeviceSupportFeatures>;
|
|
1048
1168
|
|
|
@@ -2920,6 +3040,7 @@ type CoreApi = {
|
|
|
2920
3040
|
success: boolean;
|
|
2921
3041
|
}>;
|
|
2922
3042
|
getLogs: typeof getLogs;
|
|
3043
|
+
clearSessionCache: typeof clearSessionCache;
|
|
2923
3044
|
testInitializeDeviceDuration: typeof testInitializeDeviceDuration;
|
|
2924
3045
|
preInitialize: typeof preInitialize;
|
|
2925
3046
|
checkAllFirmwareRelease: typeof checkAllFirmwareRelease;
|
|
@@ -2960,20 +3081,17 @@ type CoreApi = {
|
|
|
2960
3081
|
firmwareUpdateV3: typeof firmwareUpdateV3;
|
|
2961
3082
|
firmwareUpdateV4: typeof firmwareUpdateV4;
|
|
2962
3083
|
cipherKeyValue: typeof cipherKeyValue;
|
|
2963
|
-
|
|
3084
|
+
protocolInfoRequest: typeof protocolInfoRequest;
|
|
2964
3085
|
ping: typeof ping;
|
|
2965
3086
|
deviceReboot: typeof deviceReboot;
|
|
2966
|
-
|
|
2967
|
-
|
|
3087
|
+
deviceInfoGet: typeof deviceInfoGet;
|
|
3088
|
+
deviceStatusGet: typeof deviceStatusGet;
|
|
3089
|
+
deviceSessionGet: typeof deviceSessionGet;
|
|
2968
3090
|
deviceFirmwareUpdate: typeof deviceFirmwareUpdate;
|
|
2969
3091
|
deviceGetFirmwareUpdateStatus: typeof deviceGetFirmwareUpdateStatus;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
devGetFirmwareUpdateStatus: typeof devGetFirmwareUpdateStatus;
|
|
2974
|
-
factoryDeviceInfoSettings: typeof factoryDeviceInfoSettings;
|
|
2975
|
-
factoryGetDeviceInfo: typeof factoryGetDeviceInfo;
|
|
2976
|
-
filesystemFixPermission: typeof filesystemFixPermission;
|
|
3092
|
+
deviceFactoryInfoSet: typeof deviceFactoryInfoSet;
|
|
3093
|
+
deviceFactoryInfoGet: typeof deviceFactoryInfoGet;
|
|
3094
|
+
filesystemPermissionFix: typeof filesystemPermissionFix;
|
|
2977
3095
|
fileRead: typeof fileRead;
|
|
2978
3096
|
fileWrite: typeof fileWrite;
|
|
2979
3097
|
fileDelete: typeof fileDelete;
|
|
@@ -3249,7 +3367,7 @@ interface UiRequestFirmwareProgressing {
|
|
|
3249
3367
|
type UiRequestDeviceAction = {
|
|
3250
3368
|
type: typeof UI_REQUEST.REQUEST_PIN;
|
|
3251
3369
|
payload: {
|
|
3252
|
-
device: Device
|
|
3370
|
+
device: Device;
|
|
3253
3371
|
type?: Messages.PinMatrixRequestType | 'ButtonRequest_PinEntry' | 'ButtonRequest_AttachPin';
|
|
3254
3372
|
};
|
|
3255
3373
|
};
|
|
@@ -3260,7 +3378,7 @@ interface UiRequestButton {
|
|
|
3260
3378
|
interface UiRequestPassphrase {
|
|
3261
3379
|
type: typeof UI_REQUEST.REQUEST_PASSPHRASE;
|
|
3262
3380
|
payload: {
|
|
3263
|
-
device: Device
|
|
3381
|
+
device: Device;
|
|
3264
3382
|
passphraseState?: string;
|
|
3265
3383
|
existsAttachPinUser?: boolean;
|
|
3266
3384
|
};
|
|
@@ -3268,20 +3386,20 @@ interface UiRequestPassphrase {
|
|
|
3268
3386
|
interface UiRequestPassphraseOnDevice {
|
|
3269
3387
|
type: typeof UI_REQUEST.REQUEST_PASSPHRASE_ON_DEVICE;
|
|
3270
3388
|
payload: {
|
|
3271
|
-
device: Device
|
|
3389
|
+
device: Device;
|
|
3272
3390
|
passphraseState?: string;
|
|
3273
3391
|
};
|
|
3274
3392
|
}
|
|
3275
3393
|
interface UiRequestSelectDeviceInBootloaderForWebDevice {
|
|
3276
3394
|
type: typeof UI_REQUEST.REQUEST_DEVICE_IN_BOOTLOADER_FOR_WEB_DEVICE;
|
|
3277
3395
|
payload: {
|
|
3278
|
-
device: Device
|
|
3396
|
+
device: Device;
|
|
3279
3397
|
};
|
|
3280
3398
|
}
|
|
3281
3399
|
interface UiRequestSelectDeviceForSwitchFirmwareWebDevice {
|
|
3282
3400
|
type: typeof UI_REQUEST.REQUEST_DEVICE_FOR_SWITCH_FIRMWARE_WEB_DEVICE;
|
|
3283
3401
|
payload: {
|
|
3284
|
-
device: Device
|
|
3402
|
+
device: Device;
|
|
3285
3403
|
};
|
|
3286
3404
|
}
|
|
3287
3405
|
interface FirmwareProcessing {
|
|
@@ -3294,7 +3412,7 @@ type IFirmwareUpdateProgressType = 'transferData' | 'installingFirmware';
|
|
|
3294
3412
|
interface FirmwareProgress {
|
|
3295
3413
|
type: typeof UI_REQUEST.FIRMWARE_PROGRESS;
|
|
3296
3414
|
payload: {
|
|
3297
|
-
device: Device
|
|
3415
|
+
device: Device;
|
|
3298
3416
|
progress: number;
|
|
3299
3417
|
progressType: IFirmwareUpdateProgressType;
|
|
3300
3418
|
transferredBytes?: number;
|
|
@@ -3306,7 +3424,7 @@ interface FirmwareProgress {
|
|
|
3306
3424
|
interface FirmwareTip {
|
|
3307
3425
|
type: typeof UI_REQUEST.FIRMWARE_TIP;
|
|
3308
3426
|
payload: {
|
|
3309
|
-
device: Device
|
|
3427
|
+
device: Device;
|
|
3310
3428
|
data: {
|
|
3311
3429
|
message: string;
|
|
3312
3430
|
};
|
|
@@ -3325,7 +3443,7 @@ interface DeviceProgress {
|
|
|
3325
3443
|
interface PreviousAddressResult {
|
|
3326
3444
|
type: typeof UI_REQUEST.PREVIOUS_ADDRESS_RESULT;
|
|
3327
3445
|
payload: {
|
|
3328
|
-
device: Device
|
|
3446
|
+
device: Device;
|
|
3329
3447
|
data: {
|
|
3330
3448
|
address?: string;
|
|
3331
3449
|
path?: string;
|
|
@@ -3578,7 +3696,7 @@ type UiPromiseResponse = UiResponseEvent | {
|
|
|
3578
3696
|
};
|
|
3579
3697
|
type UiPromise<T extends UiPromiseResponse['type']> = Deferred<Extract<UiPromiseResponse, {
|
|
3580
3698
|
type: T;
|
|
3581
|
-
}>, T, Device>;
|
|
3699
|
+
}>, T, Device$1>;
|
|
3582
3700
|
|
|
3583
3701
|
declare const LogBlockEvent: Set<string>;
|
|
3584
3702
|
declare function getLogBlockLabel(message: unknown): string | undefined;
|
|
@@ -3654,7 +3772,7 @@ declare const normalizeVersionArray: (version: number[]) => number[];
|
|
|
3654
3772
|
declare const versionSplit: (version: string) => number[];
|
|
3655
3773
|
declare const versionCompare: (a: string | number[], b: string | number[]) => 0 | 1 | -1;
|
|
3656
3774
|
|
|
3657
|
-
declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"Features"> | TypedResponseMessage<"PassphraseState"> | TypedResponseMessage<"Address"> | TypedResponseMessage<"DevFirmwareInstallProgress"> | TypedResponseMessage<"Success"> | TypedResponseMessage<"DevFirmwareUpdateStatus"> | TypedResponseMessage<"AptosMessagePayload"> | TypedResponseMessage<"BinanceInputOutput"> | TypedResponseMessage<"BinanceCoin"> | TypedResponseMessage<"HDNodePathType"> | TypedResponseMessage<"HDNodeType"> | TypedResponseMessage<"MultisigRedeemScriptType"> | TypedResponseMessage<"TxRequestDetailsType"> | TypedResponseMessage<"TxRequestSerializedType"> | TypedResponseMessage<"TxInputType"> | TypedResponseMessage<"TxOutputBinType"> | TypedResponseMessage<"TxOutputType"> | TypedResponseMessage<"TxAckInputWrapper"> | TypedResponseMessage<"TxAckOutputWrapper"> | TypedResponseMessage<"PrevTx"> | TypedResponseMessage<"TxAckPrevInputWrapper"> | TypedResponseMessage<"PrevInput"> | TypedResponseMessage<"TxAckPrevOutputWrapper"> | TypedResponseMessage<"PrevOutput"> | TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | TypedResponseMessage<"BIP32Address"> | TypedResponseMessage<"CardanoNativeScript"> | TypedResponseMessage<"CardanoBlockchainPointerType"> | TypedResponseMessage<"CardanoAddressParametersType"> | TypedResponseMessage<"CardanoPoolMetadataType"> | TypedResponseMessage<"CardanoPoolParametersType"> | TypedResponseMessage<"CardanoDRep"> | TypedResponseMessage<"CardanoCVoteRegistrationDelegation"> | TypedResponseMessage<"CardanoCVoteRegistrationParametersType"> | TypedResponseMessage<"IdentityType"> | TypedResponseMessage<"Path"> | TypedResponseMessage<"DnxTxKey"> | TypedResponseMessage<"DnxComputedKeyImage"> | TypedResponseMessage<"EmmcFile"> | TypedResponseMessage<"EosTxHeader"> | TypedResponseMessage<"EosActionCommon"> | TypedResponseMessage<"EosActionTransfer"> | TypedResponseMessage<"EosActionDelegate"> | TypedResponseMessage<"EosActionUndelegate"> | TypedResponseMessage<"EosActionRefund"> | TypedResponseMessage<"EosActionBuyRam"> | TypedResponseMessage<"EosActionBuyRamBytes"> | TypedResponseMessage<"EosActionSellRam"> | TypedResponseMessage<"EosActionVoteProducer"> | TypedResponseMessage<"EosActionUpdateAuth"> | TypedResponseMessage<"EosActionDeleteAuth"> | TypedResponseMessage<"EosActionLinkAuth"> | TypedResponseMessage<"EosActionUnlinkAuth"> | TypedResponseMessage<"EosActionNewAccount"> | TypedResponseMessage<"EosActionUnknown"> | TypedResponseMessage<"EosPermissionLevel"> | TypedResponseMessage<"EosAuthorizationKey"> | TypedResponseMessage<"EosAuthorizationAccount"> | TypedResponseMessage<"EosAuthorizationWait"> | TypedResponseMessage<"EosAsset"> | TypedResponseMessage<"EosAuthorization"> | TypedResponseMessage<"EthereumStructMemberOneKey"> | TypedResponseMessage<"EthereumFieldTypeOneKey"> | TypedResponseMessage<"EthereumDefinitions"> | TypedResponseMessage<"EthereumStructMember"> | TypedResponseMessage<"EthereumFieldType"> | TypedResponseMessage<"EthereumAccessListOneKey"> | TypedResponseMessage<"EthereumAuthorizationOneKey"> | TypedResponseMessage<"EthereumAuthorizationSignature"> | TypedResponseMessage<"EthereumAccessList"> | TypedResponseMessage<"FileInfo"> | TypedResponseMessage<"MoneroOutputEntry"> | TypedResponseMessage<"MoneroMultisigKLRki"> | TypedResponseMessage<"MoneroRctKeyPublic"> | TypedResponseMessage<"MoneroAccountPublicAddress"> | TypedResponseMessage<"MoneroTransactionData"> | TypedResponseMessage<"MoneroTransactionDestinationEntry"> | TypedResponseMessage<"MoneroTransactionRsigData"> | TypedResponseMessage<"MoneroTransactionSourceEntry"> | TypedResponseMessage<"MoneroRingCtSig"> | TypedResponseMessage<"MoneroSubAddressIndicesList"> | TypedResponseMessage<"MoneroTransferDetails"> | TypedResponseMessage<"MoneroExportedKeyImage"> | TypedResponseMessage<"NEMTransactionCommon"> | TypedResponseMessage<"NEMTransfer"> | TypedResponseMessage<"NEMProvisionNamespace"> | TypedResponseMessage<"NEMMosaicCreation"> | TypedResponseMessage<"NEMMosaicSupplyChange"> | TypedResponseMessage<"NEMAggregateModification"> | TypedResponseMessage<"NEMImportanceTransfer"> | TypedResponseMessage<"NEMMosaic"> | TypedResponseMessage<"NEMMosaicDefinition"> | TypedResponseMessage<"NEMCosignatoryModification"> | TypedResponseMessage<"RipplePayment"> | TypedResponseMessage<"SolanaTxATADetails"> | TypedResponseMessage<"SolanaTxExtraInfo"> | TypedResponseMessage<"StellarAsset"> | TypedResponseMessage<"TezosRevealOp"> | TypedResponseMessage<"TezosTransactionOp"> | TypedResponseMessage<"TezosOriginationOp"> | TypedResponseMessage<"TezosDelegationOp"> | TypedResponseMessage<"TezosProposalOp"> | TypedResponseMessage<"TezosBallotOp"> | TypedResponseMessage<"TezosContractID"> | TypedResponseMessage<"TezosParametersManager"> | TypedResponseMessage<"TezosManagerTransfer"> | TypedResponseMessage<"TronContract"> | TypedResponseMessage<"TronTransferContract"> | TypedResponseMessage<"TronVoteWitnessContract"> | TypedResponseMessage<"TronFreezeBalanceContract"> | TypedResponseMessage<"TronUnfreezeBalanceContract"> | TypedResponseMessage<"TronWithdrawBalanceContract"> | TypedResponseMessage<"TronTriggerSmartContract"> | TypedResponseMessage<"TronFreezeBalanceV2Contract"> | TypedResponseMessage<"TronUnfreezeBalanceV2Contract"> | TypedResponseMessage<"TronWithdrawExpireUnfreezeContract"> | TypedResponseMessage<"TronDelegateResourceContract"> | TypedResponseMessage<"TronUnDelegateResourceContract"> | TypedResponseMessage<"TronCancelAllUnfreezeV2Contract"> | TypedResponseMessage<"Vote"> | TypedResponseMessage<"CoinJoinRequest"> | TypedResponseMessage<"PaymentRequestMemo"> | TypedResponseMessage<"TextMemo"> | TypedResponseMessage<"RefundMemo"> | TypedResponseMessage<"CoinPurchaseMemo"> | TypedResponseMessage<"TxDetailsAmount"> | TypedResponseMessage<"TxDetailsNetwork"> | TypedResponseMessage<"TxDetailsAddress"> | TypedResponseMessage<"TxDetailsGeneral"> | TypedResponseMessage<"DevFirmwareImageInfo"> | TypedResponseMessage<"DevInfoTargets"> | TypedResponseMessage<"DevInfoTypes"> | TypedResponseMessage<"DevHardwareInfo"> | TypedResponseMessage<"DevMainMcuInfo"> | TypedResponseMessage<"DevBluetoothInfo"> | TypedResponseMessage<"DevSEInfo"> | TypedResponseMessage<"DevStatus"> | TypedResponseMessage<"DevFirmwareTarget"> | TypedResponseMessage<"DevFirmwareUpdateStatusEntry"> | TypedResponseMessage<"FilesystemFile"> | TypedResponseMessage<"Setup"> | TypedResponseMessage<"NewDevice"> | TypedResponseMessage<"Restore"> | TypedResponseMessage<"DeviceFirmwareTarget"> | TypedResponseMessage<"DeviceFirmwareUpdateStatusEntry"> | TypedResponseMessage<"AlephiumGetAddress"> | TypedResponseMessage<"AlephiumAddress"> | TypedResponseMessage<"AlephiumSignTx"> | TypedResponseMessage<"AlephiumSignedTx"> | TypedResponseMessage<"AlephiumTxRequest"> | TypedResponseMessage<"AlephiumTxAck"> | TypedResponseMessage<"AlephiumBytecodeRequest"> | TypedResponseMessage<"AlephiumBytecodeAck"> | TypedResponseMessage<"AlephiumSignMessage"> | TypedResponseMessage<"AlephiumMessageSignature"> | TypedResponseMessage<"AlgorandGetAddress"> | TypedResponseMessage<"AlgorandAddress"> | TypedResponseMessage<"AlgorandSignTx"> | TypedResponseMessage<"AlgorandSignedTx"> | TypedResponseMessage<"AptosGetAddress"> | TypedResponseMessage<"AptosAddress"> | TypedResponseMessage<"AptosSignTx"> | TypedResponseMessage<"AptosSignedTx"> | TypedResponseMessage<"AptosSignMessage"> | TypedResponseMessage<"AptosMessageSignature"> | TypedResponseMessage<"AptosSignSIWAMessage"> | TypedResponseMessage<"BenfenGetAddress"> | TypedResponseMessage<"BenfenAddress"> | TypedResponseMessage<"BenfenSignTx"> | TypedResponseMessage<"BenfenSignedTx"> | TypedResponseMessage<"BenfenTxRequest"> | TypedResponseMessage<"BenfenTxAck"> | TypedResponseMessage<"BenfenSignMessage"> | TypedResponseMessage<"BenfenMessageSignature"> | TypedResponseMessage<"BinanceGetAddress"> | TypedResponseMessage<"BinanceAddress"> | TypedResponseMessage<"BinanceGetPublicKey"> | TypedResponseMessage<"BinancePublicKey"> | TypedResponseMessage<"BinanceSignTx"> | TypedResponseMessage<"BinanceTxRequest"> | TypedResponseMessage<"BinanceTransferMsg"> | TypedResponseMessage<"BinanceOrderMsg"> | TypedResponseMessage<"BinanceCancelMsg"> | TypedResponseMessage<"BinanceSignedTx"> | TypedResponseMessage<"GetPublicKey"> | TypedResponseMessage<"PublicKey"> | TypedResponseMessage<"GetAddress"> | TypedResponseMessage<"GetOwnershipId"> | TypedResponseMessage<"OwnershipId"> | TypedResponseMessage<"SignMessage"> | TypedResponseMessage<"MessageSignature"> | TypedResponseMessage<"VerifyMessage"> | TypedResponseMessage<"SignTx"> | TypedResponseMessage<"TxRequest"> | TypedResponseMessage<"TxAck"> | TypedResponseMessage<"TxAckInput"> | TypedResponseMessage<"TxAckOutput"> | TypedResponseMessage<"TxAckPrevMeta"> | TypedResponseMessage<"TxAckPrevInput"> | TypedResponseMessage<"TxAckPrevOutput"> | TypedResponseMessage<"TxAckPrevExtraData"> | TypedResponseMessage<"GetOwnershipProof"> | TypedResponseMessage<"OwnershipProof"> | TypedResponseMessage<"AuthorizeCoinJoin"> | TypedResponseMessage<"GetPublicKeyMultiple"> | TypedResponseMessage<"PublicKeyMultiple"> | TypedResponseMessage<"SignPsbt"> | TypedResponseMessage<"SignedPsbt"> | TypedResponseMessage<"FirmwareErase"> | TypedResponseMessage<"FirmwareRequest"> | TypedResponseMessage<"FirmwareUpload"> | TypedResponseMessage<"SelfTest"> | TypedResponseMessage<"FirmwareErase_ex"> | TypedResponseMessage<"Reboot"> | TypedResponseMessage<"FirmwareUpdateEmmc"> | TypedResponseMessage<"UpgradeFileHeader"> | TypedResponseMessage<"CardanoGetNativeScriptHash"> | TypedResponseMessage<"CardanoNativeScriptHash"> | TypedResponseMessage<"CardanoGetAddress"> | TypedResponseMessage<"CardanoAddress"> | TypedResponseMessage<"CardanoGetPublicKey"> | TypedResponseMessage<"CardanoPublicKey"> | TypedResponseMessage<"CardanoSignTxInit"> | TypedResponseMessage<"CardanoTxInput"> | TypedResponseMessage<"CardanoTxOutput"> | TypedResponseMessage<"CardanoAssetGroup"> | TypedResponseMessage<"CardanoToken"> | TypedResponseMessage<"CardanoTxInlineDatumChunk"> | TypedResponseMessage<"CardanoTxReferenceScriptChunk"> | TypedResponseMessage<"CardanoPoolOwner"> | TypedResponseMessage<"CardanoPoolRelayParameters"> | TypedResponseMessage<"CardanoTxCertificate"> | TypedResponseMessage<"CardanoTxWithdrawal"> | TypedResponseMessage<"CardanoTxAuxiliaryData"> | TypedResponseMessage<"CardanoTxMint"> | TypedResponseMessage<"CardanoTxCollateralInput"> | TypedResponseMessage<"CardanoTxRequiredSigner"> | TypedResponseMessage<"CardanoTxReferenceInput"> | TypedResponseMessage<"CardanoTxItemAck"> | TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | TypedResponseMessage<"CardanoTxWitnessRequest"> | TypedResponseMessage<"CardanoTxWitnessResponse"> | TypedResponseMessage<"CardanoTxHostAck"> | TypedResponseMessage<"CardanoTxBodyHash"> | TypedResponseMessage<"CardanoSignTxFinished"> | TypedResponseMessage<"CardanoSignMessage"> | TypedResponseMessage<"CardanoMessageSignature"> | TypedResponseMessage<"Failure"> | TypedResponseMessage<"ButtonRequest"> | TypedResponseMessage<"ButtonAck"> | TypedResponseMessage<"PinMatrixRequest"> | TypedResponseMessage<"PinMatrixAck"> | TypedResponseMessage<"PassphraseRequest"> | TypedResponseMessage<"PassphraseAck"> | TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | TypedResponseMessage<"Deprecated_PassphraseStateAck"> | TypedResponseMessage<"BixinPinInputOnDevice"> | TypedResponseMessage<"ConfluxGetAddress"> | TypedResponseMessage<"ConfluxAddress"> | TypedResponseMessage<"ConfluxSignTx"> | TypedResponseMessage<"ConfluxTxRequest"> | TypedResponseMessage<"ConfluxTxAck"> | TypedResponseMessage<"ConfluxSignMessage"> | TypedResponseMessage<"ConfluxMessageSignature"> | TypedResponseMessage<"ConfluxSignMessageCIP23"> | TypedResponseMessage<"CosmosGetAddress"> | TypedResponseMessage<"CosmosAddress"> | TypedResponseMessage<"CosmosSignTx"> | TypedResponseMessage<"CosmosSignedTx"> | TypedResponseMessage<"CipherKeyValue"> | TypedResponseMessage<"CipheredKeyValue"> | TypedResponseMessage<"SignIdentity"> | TypedResponseMessage<"SignedIdentity"> | TypedResponseMessage<"GetECDHSessionKey"> | TypedResponseMessage<"ECDHSessionKey"> | TypedResponseMessage<"BatchGetPublickeys"> | TypedResponseMessage<"EcdsaPublicKeys"> | TypedResponseMessage<"DnxGetAddress"> | TypedResponseMessage<"DnxAddress"> | TypedResponseMessage<"DnxSignTx"> | TypedResponseMessage<"DnxInputRequest"> | TypedResponseMessage<"DnxInputAck"> | TypedResponseMessage<"DnxRTSigsRequest"> | TypedResponseMessage<"DnxSignedTx"> | TypedResponseMessage<"EmmcFixPermission"> | TypedResponseMessage<"EmmcPath"> | TypedResponseMessage<"EmmcPathInfo"> | TypedResponseMessage<"EmmcFileRead"> | TypedResponseMessage<"EmmcFileWrite"> | TypedResponseMessage<"EmmcFileDelete"> | TypedResponseMessage<"EmmcDir"> | TypedResponseMessage<"EmmcDirList"> | TypedResponseMessage<"EmmcDirMake"> | TypedResponseMessage<"EmmcDirRemove"> | TypedResponseMessage<"EosGetPublicKey"> | TypedResponseMessage<"EosPublicKey"> | TypedResponseMessage<"EosSignTx"> | TypedResponseMessage<"EosTxActionRequest"> | TypedResponseMessage<"EosTxActionAck"> | TypedResponseMessage<"EosSignedTx"> | TypedResponseMessage<"EthereumNetworkInfo"> | TypedResponseMessage<"EthereumTokenInfo"> | TypedResponseMessage<"EthereumSignTypedDataOneKey"> | TypedResponseMessage<"EthereumGnosisSafeTxRequest"> | TypedResponseMessage<"EthereumGnosisSafeTxAck"> | TypedResponseMessage<"EthereumTypedDataStructRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataStructAckOneKey"> | TypedResponseMessage<"EthereumTypedDataValueRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataValueAckOneKey"> | TypedResponseMessage<"EthereumSignTypedData"> | TypedResponseMessage<"EthereumTypedDataStructRequest"> | TypedResponseMessage<"EthereumTypedDataStructAck"> | TypedResponseMessage<"EthereumTypedDataValueRequest"> | TypedResponseMessage<"EthereumTypedDataValueAck"> | TypedResponseMessage<"EthereumGetPublicKeyOneKey"> | TypedResponseMessage<"EthereumPublicKeyOneKey"> | TypedResponseMessage<"EthereumGetAddressOneKey"> | TypedResponseMessage<"EthereumAddressOneKey"> | TypedResponseMessage<"EthereumSignTxOneKey"> | TypedResponseMessage<"EthereumSignTxEIP1559OneKey"> | TypedResponseMessage<"EthereumSignTxEIP7702OneKey"> | TypedResponseMessage<"EthereumTxRequestOneKey"> | TypedResponseMessage<"EthereumTxAckOneKey"> | TypedResponseMessage<"EthereumSignMessageOneKey"> | TypedResponseMessage<"EthereumMessageSignatureOneKey"> | TypedResponseMessage<"EthereumVerifyMessageOneKey"> | TypedResponseMessage<"EthereumSignTypedHashOneKey"> | TypedResponseMessage<"EthereumTypedDataSignatureOneKey"> | TypedResponseMessage<"EthereumSignMessageEIP712"> | TypedResponseMessage<"EthereumGetPublicKey"> | TypedResponseMessage<"EthereumPublicKey"> | TypedResponseMessage<"EthereumGetAddress"> | TypedResponseMessage<"EthereumAddress"> | TypedResponseMessage<"EthereumSignTx"> | TypedResponseMessage<"EthereumSignTxEIP1559"> | TypedResponseMessage<"EthereumTxRequest"> | TypedResponseMessage<"EthereumTxAck"> | TypedResponseMessage<"EthereumSignMessage"> | TypedResponseMessage<"EthereumMessageSignature"> | TypedResponseMessage<"EthereumVerifyMessage"> | TypedResponseMessage<"EthereumSignTypedHash"> | TypedResponseMessage<"EthereumTypedDataSignature"> | TypedResponseMessage<"FilecoinGetAddress"> | TypedResponseMessage<"FilecoinAddress"> | TypedResponseMessage<"FilecoinSignTx"> | TypedResponseMessage<"FilecoinSignedTx"> | TypedResponseMessage<"KaspaGetAddress"> | TypedResponseMessage<"KaspaAddress"> | TypedResponseMessage<"KaspaSignTx"> | TypedResponseMessage<"KaspaTxInputRequest"> | TypedResponseMessage<"KaspaTxInputAck"> | TypedResponseMessage<"KaspaSignedTx"> | TypedResponseMessage<"LnurlAuth"> | TypedResponseMessage<"LnurlAuthResp"> | TypedResponseMessage<"Initialize"> | TypedResponseMessage<"GetFeatures"> | TypedResponseMessage<"OnekeyGetFeatures"> | TypedResponseMessage<"OnekeyFeatures"> | TypedResponseMessage<"LockDevice"> | TypedResponseMessage<"EndSession"> | TypedResponseMessage<"ApplySettings"> | TypedResponseMessage<"ApplyFlags"> | TypedResponseMessage<"ChangePin"> | TypedResponseMessage<"ChangeWipeCode"> | TypedResponseMessage<"SdProtect"> | TypedResponseMessage<"Ping"> | TypedResponseMessage<"Cancel"> | TypedResponseMessage<"GetEntropy"> | TypedResponseMessage<"Entropy"> | TypedResponseMessage<"WipeDevice"> | TypedResponseMessage<"ResetDevice"> | TypedResponseMessage<"BackupDevice"> | TypedResponseMessage<"EntropyRequest"> | TypedResponseMessage<"EntropyAck"> | TypedResponseMessage<"RecoveryDevice"> | TypedResponseMessage<"WordRequest"> | TypedResponseMessage<"WordAck"> | TypedResponseMessage<"SetU2FCounter"> | TypedResponseMessage<"GetNextU2FCounter"> | TypedResponseMessage<"NextU2FCounter"> | TypedResponseMessage<"DoPreauthorized"> | TypedResponseMessage<"PreauthorizedRequest"> | TypedResponseMessage<"CancelAuthorization"> | TypedResponseMessage<"BixinSeedOperate"> | TypedResponseMessage<"BixinMessageSE"> | TypedResponseMessage<"BixinOutMessageSE"> | TypedResponseMessage<"DeviceBackToBoot"> | TypedResponseMessage<"BixinBackupRequest"> | TypedResponseMessage<"BixinBackupAck"> | TypedResponseMessage<"BixinRestoreRequest"> | TypedResponseMessage<"BixinRestoreAck"> | TypedResponseMessage<"BixinVerifyDeviceRequest"> | TypedResponseMessage<"BixinVerifyDeviceAck"> | TypedResponseMessage<"BixinWhiteListRequest"> | TypedResponseMessage<"BixinWhiteListAck"> | TypedResponseMessage<"BixinLoadDevice"> | TypedResponseMessage<"BixinBackupDevice"> | TypedResponseMessage<"BixinBackupDeviceAck"> | TypedResponseMessage<"DeviceInfoSettings"> | TypedResponseMessage<"GetDeviceInfo"> | TypedResponseMessage<"DeviceInfo"> | TypedResponseMessage<"ReadSEPublicKey"> | TypedResponseMessage<"SEPublicKey"> | TypedResponseMessage<"WriteSEPublicCert"> | TypedResponseMessage<"ReadSEPublicCert"> | TypedResponseMessage<"SEPublicCert"> | TypedResponseMessage<"SpiFlashWrite"> | TypedResponseMessage<"SpiFlashRead"> | TypedResponseMessage<"SpiFlashData"> | TypedResponseMessage<"SESignMessage"> | TypedResponseMessage<"SEMessageSignature"> | TypedResponseMessage<"ResourceUpload"> | TypedResponseMessage<"ZoomRequest"> | TypedResponseMessage<"BlurRequest"> | TypedResponseMessage<"ResourceRequest"> | TypedResponseMessage<"ResourceAck"> | TypedResponseMessage<"ResourceUpdate"> | TypedResponseMessage<"NFTWriteInfo"> | TypedResponseMessage<"NFTWriteData"> | TypedResponseMessage<"RebootToBootloader"> | TypedResponseMessage<"RebootToBoardloader"> | TypedResponseMessage<"ListResDir"> | TypedResponseMessage<"FileInfoList"> | TypedResponseMessage<"DeviceEraseSector"> | TypedResponseMessage<"UnLockDevice"> | TypedResponseMessage<"UnLockDeviceResponse"> | TypedResponseMessage<"GetPassphraseState"> | TypedResponseMessage<"MoneroGetAddress"> | TypedResponseMessage<"MoneroAddress"> | TypedResponseMessage<"MoneroGetWatchKey"> | TypedResponseMessage<"MoneroWatchKey"> | TypedResponseMessage<"MoneroTransactionInitRequest"> | TypedResponseMessage<"MoneroTransactionInitAck"> | TypedResponseMessage<"MoneroTransactionSetInputRequest"> | TypedResponseMessage<"MoneroTransactionSetInputAck"> | TypedResponseMessage<"MoneroTransactionInputsPermutationRequest"> | TypedResponseMessage<"MoneroTransactionInputsPermutationAck"> | TypedResponseMessage<"MoneroTransactionInputViniRequest"> | TypedResponseMessage<"MoneroTransactionInputViniAck"> | TypedResponseMessage<"MoneroTransactionAllInputsSetRequest"> | TypedResponseMessage<"MoneroTransactionAllInputsSetAck"> | TypedResponseMessage<"MoneroTransactionSetOutputRequest"> | TypedResponseMessage<"MoneroTransactionSetOutputAck"> | TypedResponseMessage<"MoneroTransactionAllOutSetRequest"> | TypedResponseMessage<"MoneroTransactionAllOutSetAck"> | TypedResponseMessage<"MoneroTransactionSignInputRequest"> | TypedResponseMessage<"MoneroTransactionSignInputAck"> | TypedResponseMessage<"MoneroTransactionFinalRequest"> | TypedResponseMessage<"MoneroTransactionFinalAck"> | TypedResponseMessage<"MoneroKeyImageExportInitRequest"> | TypedResponseMessage<"MoneroKeyImageExportInitAck"> | TypedResponseMessage<"MoneroKeyImageSyncStepRequest"> | TypedResponseMessage<"MoneroKeyImageSyncStepAck"> | TypedResponseMessage<"MoneroKeyImageSyncFinalRequest"> | TypedResponseMessage<"MoneroKeyImageSyncFinalAck"> | TypedResponseMessage<"MoneroGetTxKeyRequest"> | TypedResponseMessage<"MoneroGetTxKeyAck"> | TypedResponseMessage<"MoneroLiveRefreshStartRequest"> | TypedResponseMessage<"MoneroLiveRefreshStartAck"> | TypedResponseMessage<"MoneroLiveRefreshStepRequest"> | TypedResponseMessage<"MoneroLiveRefreshStepAck"> | TypedResponseMessage<"MoneroLiveRefreshFinalRequest"> | TypedResponseMessage<"MoneroLiveRefreshFinalAck"> | TypedResponseMessage<"NearGetAddress"> | TypedResponseMessage<"NearAddress"> | TypedResponseMessage<"NearSignTx"> | TypedResponseMessage<"NearSignedTx"> | TypedResponseMessage<"NEMGetAddress"> | TypedResponseMessage<"NEMAddress"> | TypedResponseMessage<"NEMSignTx"> | TypedResponseMessage<"NEMSignedTx"> | TypedResponseMessage<"NEMDecryptMessage"> | TypedResponseMessage<"NEMDecryptedMessage"> | TypedResponseMessage<"NeoGetAddress"> | TypedResponseMessage<"NeoAddress"> | TypedResponseMessage<"NeoSignTx"> | TypedResponseMessage<"NeoSignedTx"> | TypedResponseMessage<"NervosGetAddress"> | TypedResponseMessage<"NervosAddress"> | TypedResponseMessage<"NervosSignTx"> | TypedResponseMessage<"NervosSignedTx"> | TypedResponseMessage<"NervosTxRequest"> | TypedResponseMessage<"NervosTxAck"> | TypedResponseMessage<"NexaGetAddress"> | TypedResponseMessage<"NexaAddress"> | TypedResponseMessage<"NexaSignTx"> | TypedResponseMessage<"NexaTxInputRequest"> | TypedResponseMessage<"NexaTxInputAck"> | TypedResponseMessage<"NexaSignedTx"> | TypedResponseMessage<"NostrGetPublicKey"> | TypedResponseMessage<"NostrPublicKey"> | TypedResponseMessage<"NostrSignEvent"> | TypedResponseMessage<"NostrSignedEvent"> | TypedResponseMessage<"NostrSignSchnorr"> | TypedResponseMessage<"NostrSignedSchnorr"> | TypedResponseMessage<"NostrEncryptMessage"> | TypedResponseMessage<"NostrEncryptedMessage"> | TypedResponseMessage<"NostrDecryptMessage"> | TypedResponseMessage<"NostrDecryptedMessage"> | TypedResponseMessage<"PolkadotGetAddress"> | TypedResponseMessage<"PolkadotAddress"> | TypedResponseMessage<"PolkadotSignTx"> | TypedResponseMessage<"PolkadotSignedTx"> | TypedResponseMessage<"RippleGetAddress"> | TypedResponseMessage<"RippleAddress"> | TypedResponseMessage<"RippleSignTx"> | TypedResponseMessage<"RippleSignedTx"> | TypedResponseMessage<"ScdoGetAddress"> | TypedResponseMessage<"ScdoAddress"> | TypedResponseMessage<"ScdoSignTx"> | TypedResponseMessage<"ScdoSignedTx"> | TypedResponseMessage<"ScdoTxAck"> | TypedResponseMessage<"ScdoSignMessage"> | TypedResponseMessage<"ScdoSignedMessage"> | TypedResponseMessage<"SolanaGetAddress"> | TypedResponseMessage<"SolanaAddress"> | TypedResponseMessage<"SolanaSignTx"> | TypedResponseMessage<"SolanaSignedTx"> | TypedResponseMessage<"SolanaSignOffChainMessage"> | TypedResponseMessage<"SolanaSignUnsafeMessage"> | TypedResponseMessage<"SolanaMessageSignature"> | TypedResponseMessage<"StarcoinGetAddress"> | TypedResponseMessage<"StarcoinAddress"> | TypedResponseMessage<"StarcoinGetPublicKey"> | TypedResponseMessage<"StarcoinPublicKey"> | TypedResponseMessage<"StarcoinSignTx"> | TypedResponseMessage<"StarcoinSignedTx"> | TypedResponseMessage<"StarcoinSignMessage"> | TypedResponseMessage<"StarcoinMessageSignature"> | TypedResponseMessage<"StarcoinVerifyMessage"> | TypedResponseMessage<"StellarGetAddress"> | TypedResponseMessage<"StellarAddress"> | TypedResponseMessage<"StellarSignTx"> | TypedResponseMessage<"StellarTxOpRequest"> | TypedResponseMessage<"StellarPaymentOp"> | TypedResponseMessage<"StellarCreateAccountOp"> | TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | TypedResponseMessage<"StellarManageSellOfferOp"> | TypedResponseMessage<"StellarManageBuyOfferOp"> | TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | TypedResponseMessage<"StellarSetOptionsOp"> | TypedResponseMessage<"StellarChangeTrustOp"> | TypedResponseMessage<"StellarAllowTrustOp"> | TypedResponseMessage<"StellarAccountMergeOp"> | TypedResponseMessage<"StellarManageDataOp"> | TypedResponseMessage<"StellarBumpSequenceOp"> | TypedResponseMessage<"StellarInvokeHostFunctionOp"> | TypedResponseMessage<"StellarSorobanDataRequest"> | TypedResponseMessage<"StellarSorobanDataAck"> | TypedResponseMessage<"StellarSignedTx"> | TypedResponseMessage<"SuiGetAddress"> | TypedResponseMessage<"SuiAddress"> | TypedResponseMessage<"SuiSignTx"> | TypedResponseMessage<"SuiSignedTx"> | TypedResponseMessage<"SuiTxRequest"> | TypedResponseMessage<"SuiTxAck"> | TypedResponseMessage<"SuiSignMessage"> | TypedResponseMessage<"SuiMessageSignature"> | TypedResponseMessage<"TezosGetAddress"> | TypedResponseMessage<"TezosAddress"> | TypedResponseMessage<"TezosGetPublicKey"> | TypedResponseMessage<"TezosPublicKey"> | TypedResponseMessage<"TezosSignTx"> | TypedResponseMessage<"TezosSignedTx"> | TypedResponseMessage<"TonGetAddress"> | TypedResponseMessage<"TonAddress"> | TypedResponseMessage<"TonSignMessage"> | TypedResponseMessage<"TonTxAck"> | TypedResponseMessage<"TonSignedMessage"> | TypedResponseMessage<"TonSignProof"> | TypedResponseMessage<"TonSignedProof"> | TypedResponseMessage<"TonSignData"> | TypedResponseMessage<"TonSignedData"> | TypedResponseMessage<"TronGetAddress"> | TypedResponseMessage<"TronAddress"> | TypedResponseMessage<"TronSignTx"> | TypedResponseMessage<"TronSignedTx"> | TypedResponseMessage<"TronSignMessage"> | TypedResponseMessage<"TronMessageSignature"> | TypedResponseMessage<"facotry"> | TypedResponseMessage<"experimental_message"> | TypedResponseMessage<"experimental_field"> | TypedResponseMessage<"TxAckPaymentRequest"> | TypedResponseMessage<"SetBusy"> | TypedResponseMessage<"GetFirmwareHash"> | TypedResponseMessage<"FirmwareHash"> | TypedResponseMessage<"GetNonce"> | TypedResponseMessage<"Nonce"> | TypedResponseMessage<"WriteSEPrivateKey"> | TypedResponseMessage<"UnlockPath"> | TypedResponseMessage<"UnlockedPathRequest"> | TypedResponseMessage<"TxDetailsPage"> | TypedResponseMessage<"GetProtoVersion"> | TypedResponseMessage<"ProtoVersion"> | TypedResponseMessage<"DevReboot"> | TypedResponseMessage<"DeviceReboot"> | TypedResponseMessage<"DevGetDeviceInfo"> | TypedResponseMessage<"DeviceGetDeviceInfo"> | TypedResponseMessage<"DevFirmwareUpdate"> | TypedResponseMessage<"DeviceFirmwareUpdate"> | TypedResponseMessage<"DeviceFirmwareInstallProgress"> | TypedResponseMessage<"DevGetFirmwareUpdateStatus"> | TypedResponseMessage<"DeviceGetFirmwareUpdateStatus"> | TypedResponseMessage<"DeviceFirmwareUpdateStatus"> | TypedResponseMessage<"FactoryDeviceInfoSettings"> | TypedResponseMessage<"FactoryGetDeviceInfo"> | TypedResponseMessage<"FactoryDeviceInfo"> | TypedResponseMessage<"FilesystemFixPermission"> | TypedResponseMessage<"FilesystemPathInfo"> | TypedResponseMessage<"FilesystemPathInfoQuery"> | TypedResponseMessage<"FilesystemFileRead"> | TypedResponseMessage<"FilesystemFileWrite"> | TypedResponseMessage<"FilesystemFileDelete"> | TypedResponseMessage<"FilesystemDir"> | TypedResponseMessage<"FilesystemDirList"> | TypedResponseMessage<"FilesystemDirMake"> | TypedResponseMessage<"FilesystemDirRemove"> | TypedResponseMessage<"FilesystemFormat"> | TypedResponseMessage<"GetOnboardingStatus"> | TypedResponseMessage<"OnboardingStatus">;
|
|
3775
|
+
declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"DeviceStatus"> | TypedResponseMessage<"DeviceSession"> | TypedResponseMessage<"PassphraseState"> | TypedResponseMessage<"Address"> | TypedResponseMessage<"DeviceFirmwareUpdateStatus"> | TypedResponseMessage<"Success"> | TypedResponseMessage<"AptosMessagePayload"> | TypedResponseMessage<"BinanceInputOutput"> | TypedResponseMessage<"BinanceCoin"> | TypedResponseMessage<"HDNodePathType"> | TypedResponseMessage<"HDNodeType"> | TypedResponseMessage<"MultisigRedeemScriptType"> | TypedResponseMessage<"TxRequestDetailsType"> | TypedResponseMessage<"TxRequestSerializedType"> | TypedResponseMessage<"TxInputType"> | TypedResponseMessage<"TxOutputBinType"> | TypedResponseMessage<"TxOutputType"> | TypedResponseMessage<"TxAckInputWrapper"> | TypedResponseMessage<"TxAckOutputWrapper"> | TypedResponseMessage<"PrevTx"> | TypedResponseMessage<"TxAckPrevInputWrapper"> | TypedResponseMessage<"PrevInput"> | TypedResponseMessage<"TxAckPrevOutputWrapper"> | TypedResponseMessage<"PrevOutput"> | TypedResponseMessage<"TxAckPrevExtraDataWrapper"> | TypedResponseMessage<"BIP32Address"> | TypedResponseMessage<"CardanoNativeScript"> | TypedResponseMessage<"CardanoBlockchainPointerType"> | TypedResponseMessage<"CardanoAddressParametersType"> | TypedResponseMessage<"CardanoPoolMetadataType"> | TypedResponseMessage<"CardanoPoolParametersType"> | TypedResponseMessage<"CardanoDRep"> | TypedResponseMessage<"CardanoCVoteRegistrationDelegation"> | TypedResponseMessage<"CardanoCVoteRegistrationParametersType"> | TypedResponseMessage<"IdentityType"> | TypedResponseMessage<"Path"> | TypedResponseMessage<"DnxTxKey"> | TypedResponseMessage<"DnxComputedKeyImage"> | TypedResponseMessage<"EmmcFile"> | TypedResponseMessage<"EosTxHeader"> | TypedResponseMessage<"EosActionCommon"> | TypedResponseMessage<"EosActionTransfer"> | TypedResponseMessage<"EosActionDelegate"> | TypedResponseMessage<"EosActionUndelegate"> | TypedResponseMessage<"EosActionRefund"> | TypedResponseMessage<"EosActionBuyRam"> | TypedResponseMessage<"EosActionBuyRamBytes"> | TypedResponseMessage<"EosActionSellRam"> | TypedResponseMessage<"EosActionVoteProducer"> | TypedResponseMessage<"EosActionUpdateAuth"> | TypedResponseMessage<"EosActionDeleteAuth"> | TypedResponseMessage<"EosActionLinkAuth"> | TypedResponseMessage<"EosActionUnlinkAuth"> | TypedResponseMessage<"EosActionNewAccount"> | TypedResponseMessage<"EosActionUnknown"> | TypedResponseMessage<"EosPermissionLevel"> | TypedResponseMessage<"EosAuthorizationKey"> | TypedResponseMessage<"EosAuthorizationAccount"> | TypedResponseMessage<"EosAuthorizationWait"> | TypedResponseMessage<"EosAsset"> | TypedResponseMessage<"EosAuthorization"> | TypedResponseMessage<"EthereumStructMemberOneKey"> | TypedResponseMessage<"EthereumFieldTypeOneKey"> | TypedResponseMessage<"EthereumDefinitions"> | TypedResponseMessage<"EthereumStructMember"> | TypedResponseMessage<"EthereumFieldType"> | TypedResponseMessage<"EthereumAccessListOneKey"> | TypedResponseMessage<"EthereumAuthorizationOneKey"> | TypedResponseMessage<"EthereumAuthorizationSignature"> | TypedResponseMessage<"EthereumAccessList"> | TypedResponseMessage<"FileInfo"> | TypedResponseMessage<"MoneroOutputEntry"> | TypedResponseMessage<"MoneroMultisigKLRki"> | TypedResponseMessage<"MoneroRctKeyPublic"> | TypedResponseMessage<"MoneroAccountPublicAddress"> | TypedResponseMessage<"MoneroTransactionData"> | TypedResponseMessage<"MoneroTransactionDestinationEntry"> | TypedResponseMessage<"MoneroTransactionRsigData"> | TypedResponseMessage<"MoneroTransactionSourceEntry"> | TypedResponseMessage<"MoneroRingCtSig"> | TypedResponseMessage<"MoneroSubAddressIndicesList"> | TypedResponseMessage<"MoneroTransferDetails"> | TypedResponseMessage<"MoneroExportedKeyImage"> | TypedResponseMessage<"NEMTransactionCommon"> | TypedResponseMessage<"NEMTransfer"> | TypedResponseMessage<"NEMProvisionNamespace"> | TypedResponseMessage<"NEMMosaicCreation"> | TypedResponseMessage<"NEMMosaicSupplyChange"> | TypedResponseMessage<"NEMAggregateModification"> | TypedResponseMessage<"NEMImportanceTransfer"> | TypedResponseMessage<"NEMMosaic"> | TypedResponseMessage<"NEMMosaicDefinition"> | TypedResponseMessage<"NEMCosignatoryModification"> | TypedResponseMessage<"RipplePayment"> | TypedResponseMessage<"SolanaTxATADetails"> | TypedResponseMessage<"SolanaTxExtraInfo"> | TypedResponseMessage<"StellarAsset"> | TypedResponseMessage<"TezosRevealOp"> | TypedResponseMessage<"TezosTransactionOp"> | TypedResponseMessage<"TezosOriginationOp"> | TypedResponseMessage<"TezosDelegationOp"> | TypedResponseMessage<"TezosProposalOp"> | TypedResponseMessage<"TezosBallotOp"> | TypedResponseMessage<"TezosContractID"> | TypedResponseMessage<"TezosParametersManager"> | TypedResponseMessage<"TezosManagerTransfer"> | TypedResponseMessage<"TronContract"> | TypedResponseMessage<"TronTransferContract"> | TypedResponseMessage<"TronVoteWitnessContract"> | TypedResponseMessage<"TronFreezeBalanceContract"> | TypedResponseMessage<"TronUnfreezeBalanceContract"> | TypedResponseMessage<"TronWithdrawBalanceContract"> | TypedResponseMessage<"TronTriggerSmartContract"> | TypedResponseMessage<"TronFreezeBalanceV2Contract"> | TypedResponseMessage<"TronUnfreezeBalanceV2Contract"> | TypedResponseMessage<"TronWithdrawExpireUnfreezeContract"> | TypedResponseMessage<"TronDelegateResourceContract"> | TypedResponseMessage<"TronUnDelegateResourceContract"> | TypedResponseMessage<"TronCancelAllUnfreezeV2Contract"> | TypedResponseMessage<"Vote"> | TypedResponseMessage<"CoinJoinRequest"> | TypedResponseMessage<"PaymentRequestMemo"> | TypedResponseMessage<"TextMemo"> | TypedResponseMessage<"RefundMemo"> | TypedResponseMessage<"CoinPurchaseMemo"> | TypedResponseMessage<"ViewAmount"> | TypedResponseMessage<"ViewDetail"> | TypedResponseMessage<"ViewTip"> | TypedResponseMessage<"ViewRawData"> | TypedResponseMessage<"DeviceSettings"> | TypedResponseMessage<"DeviceCertificate"> | TypedResponseMessage<"DeviceFirmwareTarget"> | TypedResponseMessage<"DeviceFirmwareUpdateRecordFields"> | TypedResponseMessage<"DeviceFirmwareUpdateRecord"> | TypedResponseMessage<"DeviceFactoryInfoManufactureTime"> | TypedResponseMessage<"DeviceFactoryInfo"> | TypedResponseMessage<"DeviceFirmwareImageInfo"> | TypedResponseMessage<"DeviceInfoTargets"> | TypedResponseMessage<"DeviceInfoTypes"> | TypedResponseMessage<"DeviceHardwareInfo"> | TypedResponseMessage<"DeviceMainMcuInfo"> | TypedResponseMessage<"DeviceCoprocessorInfo"> | TypedResponseMessage<"DeviceSEInfo"> | TypedResponseMessage<"FilesystemFile"> | TypedResponseMessage<"AlephiumGetAddress"> | TypedResponseMessage<"AlephiumAddress"> | TypedResponseMessage<"AlephiumSignTx"> | TypedResponseMessage<"AlephiumSignedTx"> | TypedResponseMessage<"AlephiumTxRequest"> | TypedResponseMessage<"AlephiumTxAck"> | TypedResponseMessage<"AlephiumBytecodeRequest"> | TypedResponseMessage<"AlephiumBytecodeAck"> | TypedResponseMessage<"AlephiumSignMessage"> | TypedResponseMessage<"AlephiumMessageSignature"> | TypedResponseMessage<"AlgorandGetAddress"> | TypedResponseMessage<"AlgorandAddress"> | TypedResponseMessage<"AlgorandSignTx"> | TypedResponseMessage<"AlgorandSignedTx"> | TypedResponseMessage<"AptosGetAddress"> | TypedResponseMessage<"AptosAddress"> | TypedResponseMessage<"AptosSignTx"> | TypedResponseMessage<"AptosSignedTx"> | TypedResponseMessage<"AptosSignMessage"> | TypedResponseMessage<"AptosMessageSignature"> | TypedResponseMessage<"AptosSignSIWAMessage"> | TypedResponseMessage<"BenfenGetAddress"> | TypedResponseMessage<"BenfenAddress"> | TypedResponseMessage<"BenfenSignTx"> | TypedResponseMessage<"BenfenSignedTx"> | TypedResponseMessage<"BenfenTxRequest"> | TypedResponseMessage<"BenfenTxAck"> | TypedResponseMessage<"BenfenSignMessage"> | TypedResponseMessage<"BenfenMessageSignature"> | TypedResponseMessage<"BinanceGetAddress"> | TypedResponseMessage<"BinanceAddress"> | TypedResponseMessage<"BinanceGetPublicKey"> | TypedResponseMessage<"BinancePublicKey"> | TypedResponseMessage<"BinanceSignTx"> | TypedResponseMessage<"BinanceTxRequest"> | TypedResponseMessage<"BinanceTransferMsg"> | TypedResponseMessage<"BinanceOrderMsg"> | TypedResponseMessage<"BinanceCancelMsg"> | TypedResponseMessage<"BinanceSignedTx"> | TypedResponseMessage<"GetPublicKey"> | TypedResponseMessage<"PublicKey"> | TypedResponseMessage<"GetAddress"> | TypedResponseMessage<"GetOwnershipId"> | TypedResponseMessage<"OwnershipId"> | TypedResponseMessage<"SignMessage"> | TypedResponseMessage<"MessageSignature"> | TypedResponseMessage<"VerifyMessage"> | TypedResponseMessage<"SignTx"> | TypedResponseMessage<"TxRequest"> | TypedResponseMessage<"TxAck"> | TypedResponseMessage<"TxAckInput"> | TypedResponseMessage<"TxAckOutput"> | TypedResponseMessage<"TxAckPrevMeta"> | TypedResponseMessage<"TxAckPrevInput"> | TypedResponseMessage<"TxAckPrevOutput"> | TypedResponseMessage<"TxAckPrevExtraData"> | TypedResponseMessage<"GetOwnershipProof"> | TypedResponseMessage<"OwnershipProof"> | TypedResponseMessage<"AuthorizeCoinJoin"> | TypedResponseMessage<"GetPublicKeyMultiple"> | TypedResponseMessage<"PublicKeyMultiple"> | TypedResponseMessage<"SignPsbt"> | TypedResponseMessage<"SignedPsbt"> | TypedResponseMessage<"FirmwareErase"> | TypedResponseMessage<"FirmwareRequest"> | TypedResponseMessage<"FirmwareUpload"> | TypedResponseMessage<"SelfTest"> | TypedResponseMessage<"FirmwareErase_ex"> | TypedResponseMessage<"Reboot"> | TypedResponseMessage<"FirmwareUpdateEmmc"> | TypedResponseMessage<"UpgradeFileHeader"> | TypedResponseMessage<"CardanoGetNativeScriptHash"> | TypedResponseMessage<"CardanoNativeScriptHash"> | TypedResponseMessage<"CardanoGetAddress"> | TypedResponseMessage<"CardanoAddress"> | TypedResponseMessage<"CardanoGetPublicKey"> | TypedResponseMessage<"CardanoPublicKey"> | TypedResponseMessage<"CardanoSignTxInit"> | TypedResponseMessage<"CardanoTxInput"> | TypedResponseMessage<"CardanoTxOutput"> | TypedResponseMessage<"CardanoAssetGroup"> | TypedResponseMessage<"CardanoToken"> | TypedResponseMessage<"CardanoTxInlineDatumChunk"> | TypedResponseMessage<"CardanoTxReferenceScriptChunk"> | TypedResponseMessage<"CardanoPoolOwner"> | TypedResponseMessage<"CardanoPoolRelayParameters"> | TypedResponseMessage<"CardanoTxCertificate"> | TypedResponseMessage<"CardanoTxWithdrawal"> | TypedResponseMessage<"CardanoTxAuxiliaryData"> | TypedResponseMessage<"CardanoTxMint"> | TypedResponseMessage<"CardanoTxCollateralInput"> | TypedResponseMessage<"CardanoTxRequiredSigner"> | TypedResponseMessage<"CardanoTxReferenceInput"> | TypedResponseMessage<"CardanoTxItemAck"> | TypedResponseMessage<"CardanoTxAuxiliaryDataSupplement"> | TypedResponseMessage<"CardanoTxWitnessRequest"> | TypedResponseMessage<"CardanoTxWitnessResponse"> | TypedResponseMessage<"CardanoTxHostAck"> | TypedResponseMessage<"CardanoTxBodyHash"> | TypedResponseMessage<"CardanoSignTxFinished"> | TypedResponseMessage<"CardanoSignMessage"> | TypedResponseMessage<"CardanoMessageSignature"> | TypedResponseMessage<"Failure"> | TypedResponseMessage<"ButtonRequest"> | TypedResponseMessage<"ButtonAck"> | TypedResponseMessage<"PinMatrixRequest"> | TypedResponseMessage<"PinMatrixAck"> | TypedResponseMessage<"PassphraseRequest"> | TypedResponseMessage<"PassphraseAck"> | TypedResponseMessage<"Deprecated_PassphraseStateRequest"> | TypedResponseMessage<"Deprecated_PassphraseStateAck"> | TypedResponseMessage<"BixinPinInputOnDevice"> | TypedResponseMessage<"ConfluxGetAddress"> | TypedResponseMessage<"ConfluxAddress"> | TypedResponseMessage<"ConfluxSignTx"> | TypedResponseMessage<"ConfluxTxRequest"> | TypedResponseMessage<"ConfluxTxAck"> | TypedResponseMessage<"ConfluxSignMessage"> | TypedResponseMessage<"ConfluxMessageSignature"> | TypedResponseMessage<"ConfluxSignMessageCIP23"> | TypedResponseMessage<"CosmosGetAddress"> | TypedResponseMessage<"CosmosAddress"> | TypedResponseMessage<"CosmosSignTx"> | TypedResponseMessage<"CosmosSignedTx"> | TypedResponseMessage<"CipherKeyValue"> | TypedResponseMessage<"CipheredKeyValue"> | TypedResponseMessage<"SignIdentity"> | TypedResponseMessage<"SignedIdentity"> | TypedResponseMessage<"GetECDHSessionKey"> | TypedResponseMessage<"ECDHSessionKey"> | TypedResponseMessage<"BatchGetPublickeys"> | TypedResponseMessage<"EcdsaPublicKeys"> | TypedResponseMessage<"DnxGetAddress"> | TypedResponseMessage<"DnxAddress"> | TypedResponseMessage<"DnxSignTx"> | TypedResponseMessage<"DnxInputRequest"> | TypedResponseMessage<"DnxInputAck"> | TypedResponseMessage<"DnxRTSigsRequest"> | TypedResponseMessage<"DnxSignedTx"> | TypedResponseMessage<"EmmcFixPermission"> | TypedResponseMessage<"EmmcPath"> | TypedResponseMessage<"EmmcPathInfo"> | TypedResponseMessage<"EmmcFileRead"> | TypedResponseMessage<"EmmcFileWrite"> | TypedResponseMessage<"EmmcFileDelete"> | TypedResponseMessage<"EmmcDir"> | TypedResponseMessage<"EmmcDirList"> | TypedResponseMessage<"EmmcDirMake"> | TypedResponseMessage<"EmmcDirRemove"> | TypedResponseMessage<"EosGetPublicKey"> | TypedResponseMessage<"EosPublicKey"> | TypedResponseMessage<"EosSignTx"> | TypedResponseMessage<"EosTxActionRequest"> | TypedResponseMessage<"EosTxActionAck"> | TypedResponseMessage<"EosSignedTx"> | TypedResponseMessage<"EthereumNetworkInfo"> | TypedResponseMessage<"EthereumTokenInfo"> | TypedResponseMessage<"EthereumSignTypedDataOneKey"> | TypedResponseMessage<"EthereumGnosisSafeTxRequest"> | TypedResponseMessage<"EthereumGnosisSafeTxAck"> | TypedResponseMessage<"EthereumTypedDataStructRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataStructAckOneKey"> | TypedResponseMessage<"EthereumTypedDataValueRequestOneKey"> | TypedResponseMessage<"EthereumTypedDataValueAckOneKey"> | TypedResponseMessage<"EthereumSignTypedData"> | TypedResponseMessage<"EthereumTypedDataStructRequest"> | TypedResponseMessage<"EthereumTypedDataStructAck"> | TypedResponseMessage<"EthereumTypedDataValueRequest"> | TypedResponseMessage<"EthereumTypedDataValueAck"> | TypedResponseMessage<"EthereumGetPublicKeyOneKey"> | TypedResponseMessage<"EthereumPublicKeyOneKey"> | TypedResponseMessage<"EthereumGetAddressOneKey"> | TypedResponseMessage<"EthereumAddressOneKey"> | TypedResponseMessage<"EthereumSignTxOneKey"> | TypedResponseMessage<"EthereumSignTxEIP1559OneKey"> | TypedResponseMessage<"EthereumSignTxEIP7702OneKey"> | TypedResponseMessage<"EthereumTxRequestOneKey"> | TypedResponseMessage<"EthereumTxAckOneKey"> | TypedResponseMessage<"EthereumSignMessageOneKey"> | TypedResponseMessage<"EthereumMessageSignatureOneKey"> | TypedResponseMessage<"EthereumVerifyMessageOneKey"> | TypedResponseMessage<"EthereumSignTypedHashOneKey"> | TypedResponseMessage<"EthereumTypedDataSignatureOneKey"> | TypedResponseMessage<"EthereumSignMessageEIP712"> | TypedResponseMessage<"EthereumGetPublicKey"> | TypedResponseMessage<"EthereumPublicKey"> | TypedResponseMessage<"EthereumGetAddress"> | TypedResponseMessage<"EthereumAddress"> | TypedResponseMessage<"EthereumSignTx"> | TypedResponseMessage<"EthereumSignTxEIP1559"> | TypedResponseMessage<"EthereumTxRequest"> | TypedResponseMessage<"EthereumTxAck"> | TypedResponseMessage<"EthereumSignMessage"> | TypedResponseMessage<"EthereumMessageSignature"> | TypedResponseMessage<"EthereumVerifyMessage"> | TypedResponseMessage<"EthereumSignTypedHash"> | TypedResponseMessage<"EthereumTypedDataSignature"> | TypedResponseMessage<"FilecoinGetAddress"> | TypedResponseMessage<"FilecoinAddress"> | TypedResponseMessage<"FilecoinSignTx"> | TypedResponseMessage<"FilecoinSignedTx"> | TypedResponseMessage<"KaspaGetAddress"> | TypedResponseMessage<"KaspaAddress"> | TypedResponseMessage<"KaspaSignTx"> | TypedResponseMessage<"KaspaTxInputRequest"> | TypedResponseMessage<"KaspaTxInputAck"> | TypedResponseMessage<"KaspaSignedTx"> | TypedResponseMessage<"LnurlAuth"> | TypedResponseMessage<"LnurlAuthResp"> | TypedResponseMessage<"Initialize"> | TypedResponseMessage<"GetFeatures"> | TypedResponseMessage<"OnekeyGetFeatures"> | TypedResponseMessage<"Features"> | TypedResponseMessage<"OnekeyFeatures"> | TypedResponseMessage<"LockDevice"> | TypedResponseMessage<"EndSession"> | TypedResponseMessage<"ApplySettings"> | TypedResponseMessage<"ApplyFlags"> | TypedResponseMessage<"ChangePin"> | TypedResponseMessage<"ChangeWipeCode"> | TypedResponseMessage<"SdProtect"> | TypedResponseMessage<"Ping"> | TypedResponseMessage<"Cancel"> | TypedResponseMessage<"GetEntropy"> | TypedResponseMessage<"Entropy"> | TypedResponseMessage<"WipeDevice"> | TypedResponseMessage<"ResetDevice"> | TypedResponseMessage<"BackupDevice"> | TypedResponseMessage<"EntropyRequest"> | TypedResponseMessage<"EntropyAck"> | TypedResponseMessage<"RecoveryDevice"> | TypedResponseMessage<"WordRequest"> | TypedResponseMessage<"WordAck"> | TypedResponseMessage<"SetU2FCounter"> | TypedResponseMessage<"GetNextU2FCounter"> | TypedResponseMessage<"NextU2FCounter"> | TypedResponseMessage<"DoPreauthorized"> | TypedResponseMessage<"PreauthorizedRequest"> | TypedResponseMessage<"CancelAuthorization"> | TypedResponseMessage<"BixinSeedOperate"> | TypedResponseMessage<"BixinMessageSE"> | TypedResponseMessage<"BixinOutMessageSE"> | TypedResponseMessage<"DeviceBackToBoot"> | TypedResponseMessage<"BixinBackupRequest"> | TypedResponseMessage<"BixinBackupAck"> | TypedResponseMessage<"BixinRestoreRequest"> | TypedResponseMessage<"BixinRestoreAck"> | TypedResponseMessage<"BixinVerifyDeviceRequest"> | TypedResponseMessage<"BixinVerifyDeviceAck"> | TypedResponseMessage<"BixinWhiteListRequest"> | TypedResponseMessage<"BixinWhiteListAck"> | TypedResponseMessage<"BixinLoadDevice"> | TypedResponseMessage<"BixinBackupDevice"> | TypedResponseMessage<"BixinBackupDeviceAck"> | TypedResponseMessage<"DeviceInfoSettings"> | TypedResponseMessage<"GetDeviceInfo"> | TypedResponseMessage<"DeviceInfo"> | TypedResponseMessage<"ReadSEPublicKey"> | TypedResponseMessage<"SEPublicKey"> | TypedResponseMessage<"WriteSEPublicCert"> | TypedResponseMessage<"ReadSEPublicCert"> | TypedResponseMessage<"SEPublicCert"> | TypedResponseMessage<"SpiFlashWrite"> | TypedResponseMessage<"SpiFlashRead"> | TypedResponseMessage<"SpiFlashData"> | TypedResponseMessage<"SESignMessage"> | TypedResponseMessage<"SEMessageSignature"> | TypedResponseMessage<"ResourceUpload"> | TypedResponseMessage<"ZoomRequest"> | TypedResponseMessage<"BlurRequest"> | TypedResponseMessage<"ResourceRequest"> | TypedResponseMessage<"ResourceAck"> | TypedResponseMessage<"ResourceUpdate"> | TypedResponseMessage<"NFTWriteInfo"> | TypedResponseMessage<"NFTWriteData"> | TypedResponseMessage<"RebootToBootloader"> | TypedResponseMessage<"RebootToBoardloader"> | TypedResponseMessage<"ListResDir"> | TypedResponseMessage<"FileInfoList"> | TypedResponseMessage<"DeviceEraseSector"> | TypedResponseMessage<"UnLockDevice"> | TypedResponseMessage<"UnLockDeviceResponse"> | TypedResponseMessage<"GetPassphraseState"> | TypedResponseMessage<"MoneroGetAddress"> | TypedResponseMessage<"MoneroAddress"> | TypedResponseMessage<"MoneroGetWatchKey"> | TypedResponseMessage<"MoneroWatchKey"> | TypedResponseMessage<"MoneroTransactionInitRequest"> | TypedResponseMessage<"MoneroTransactionInitAck"> | TypedResponseMessage<"MoneroTransactionSetInputRequest"> | TypedResponseMessage<"MoneroTransactionSetInputAck"> | TypedResponseMessage<"MoneroTransactionInputsPermutationRequest"> | TypedResponseMessage<"MoneroTransactionInputsPermutationAck"> | TypedResponseMessage<"MoneroTransactionInputViniRequest"> | TypedResponseMessage<"MoneroTransactionInputViniAck"> | TypedResponseMessage<"MoneroTransactionAllInputsSetRequest"> | TypedResponseMessage<"MoneroTransactionAllInputsSetAck"> | TypedResponseMessage<"MoneroTransactionSetOutputRequest"> | TypedResponseMessage<"MoneroTransactionSetOutputAck"> | TypedResponseMessage<"MoneroTransactionAllOutSetRequest"> | TypedResponseMessage<"MoneroTransactionAllOutSetAck"> | TypedResponseMessage<"MoneroTransactionSignInputRequest"> | TypedResponseMessage<"MoneroTransactionSignInputAck"> | TypedResponseMessage<"MoneroTransactionFinalRequest"> | TypedResponseMessage<"MoneroTransactionFinalAck"> | TypedResponseMessage<"MoneroKeyImageExportInitRequest"> | TypedResponseMessage<"MoneroKeyImageExportInitAck"> | TypedResponseMessage<"MoneroKeyImageSyncStepRequest"> | TypedResponseMessage<"MoneroKeyImageSyncStepAck"> | TypedResponseMessage<"MoneroKeyImageSyncFinalRequest"> | TypedResponseMessage<"MoneroKeyImageSyncFinalAck"> | TypedResponseMessage<"MoneroGetTxKeyRequest"> | TypedResponseMessage<"MoneroGetTxKeyAck"> | TypedResponseMessage<"MoneroLiveRefreshStartRequest"> | TypedResponseMessage<"MoneroLiveRefreshStartAck"> | TypedResponseMessage<"MoneroLiveRefreshStepRequest"> | TypedResponseMessage<"MoneroLiveRefreshStepAck"> | TypedResponseMessage<"MoneroLiveRefreshFinalRequest"> | TypedResponseMessage<"MoneroLiveRefreshFinalAck"> | TypedResponseMessage<"NearGetAddress"> | TypedResponseMessage<"NearAddress"> | TypedResponseMessage<"NearSignTx"> | TypedResponseMessage<"NearSignedTx"> | TypedResponseMessage<"NEMGetAddress"> | TypedResponseMessage<"NEMAddress"> | TypedResponseMessage<"NEMSignTx"> | TypedResponseMessage<"NEMSignedTx"> | TypedResponseMessage<"NEMDecryptMessage"> | TypedResponseMessage<"NEMDecryptedMessage"> | TypedResponseMessage<"NeoGetAddress"> | TypedResponseMessage<"NeoAddress"> | TypedResponseMessage<"NeoSignTx"> | TypedResponseMessage<"NeoSignedTx"> | TypedResponseMessage<"NervosGetAddress"> | TypedResponseMessage<"NervosAddress"> | TypedResponseMessage<"NervosSignTx"> | TypedResponseMessage<"NervosSignedTx"> | TypedResponseMessage<"NervosTxRequest"> | TypedResponseMessage<"NervosTxAck"> | TypedResponseMessage<"NexaGetAddress"> | TypedResponseMessage<"NexaAddress"> | TypedResponseMessage<"NexaSignTx"> | TypedResponseMessage<"NexaTxInputRequest"> | TypedResponseMessage<"NexaTxInputAck"> | TypedResponseMessage<"NexaSignedTx"> | TypedResponseMessage<"NostrGetPublicKey"> | TypedResponseMessage<"NostrPublicKey"> | TypedResponseMessage<"NostrSignEvent"> | TypedResponseMessage<"NostrSignedEvent"> | TypedResponseMessage<"NostrSignSchnorr"> | TypedResponseMessage<"NostrSignedSchnorr"> | TypedResponseMessage<"NostrEncryptMessage"> | TypedResponseMessage<"NostrEncryptedMessage"> | TypedResponseMessage<"NostrDecryptMessage"> | TypedResponseMessage<"NostrDecryptedMessage"> | TypedResponseMessage<"PolkadotGetAddress"> | TypedResponseMessage<"PolkadotAddress"> | TypedResponseMessage<"PolkadotSignTx"> | TypedResponseMessage<"PolkadotSignedTx"> | TypedResponseMessage<"RippleGetAddress"> | TypedResponseMessage<"RippleAddress"> | TypedResponseMessage<"RippleSignTx"> | TypedResponseMessage<"RippleSignedTx"> | TypedResponseMessage<"ScdoGetAddress"> | TypedResponseMessage<"ScdoAddress"> | TypedResponseMessage<"ScdoSignTx"> | TypedResponseMessage<"ScdoSignedTx"> | TypedResponseMessage<"ScdoTxAck"> | TypedResponseMessage<"ScdoSignMessage"> | TypedResponseMessage<"ScdoSignedMessage"> | TypedResponseMessage<"SolanaGetAddress"> | TypedResponseMessage<"SolanaAddress"> | TypedResponseMessage<"SolanaSignTx"> | TypedResponseMessage<"SolanaSignedTx"> | TypedResponseMessage<"SolanaSignOffChainMessage"> | TypedResponseMessage<"SolanaSignUnsafeMessage"> | TypedResponseMessage<"SolanaMessageSignature"> | TypedResponseMessage<"StarcoinGetAddress"> | TypedResponseMessage<"StarcoinAddress"> | TypedResponseMessage<"StarcoinGetPublicKey"> | TypedResponseMessage<"StarcoinPublicKey"> | TypedResponseMessage<"StarcoinSignTx"> | TypedResponseMessage<"StarcoinSignedTx"> | TypedResponseMessage<"StarcoinSignMessage"> | TypedResponseMessage<"StarcoinMessageSignature"> | TypedResponseMessage<"StarcoinVerifyMessage"> | TypedResponseMessage<"StellarGetAddress"> | TypedResponseMessage<"StellarAddress"> | TypedResponseMessage<"StellarSignTx"> | TypedResponseMessage<"StellarTxOpRequest"> | TypedResponseMessage<"StellarPaymentOp"> | TypedResponseMessage<"StellarCreateAccountOp"> | TypedResponseMessage<"StellarPathPaymentStrictReceiveOp"> | TypedResponseMessage<"StellarPathPaymentStrictSendOp"> | TypedResponseMessage<"StellarManageSellOfferOp"> | TypedResponseMessage<"StellarManageBuyOfferOp"> | TypedResponseMessage<"StellarCreatePassiveSellOfferOp"> | TypedResponseMessage<"StellarSetOptionsOp"> | TypedResponseMessage<"StellarChangeTrustOp"> | TypedResponseMessage<"StellarAllowTrustOp"> | TypedResponseMessage<"StellarAccountMergeOp"> | TypedResponseMessage<"StellarManageDataOp"> | TypedResponseMessage<"StellarBumpSequenceOp"> | TypedResponseMessage<"StellarInvokeHostFunctionOp"> | TypedResponseMessage<"StellarSorobanDataRequest"> | TypedResponseMessage<"StellarSorobanDataAck"> | TypedResponseMessage<"StellarSignedTx"> | TypedResponseMessage<"SuiGetAddress"> | TypedResponseMessage<"SuiAddress"> | TypedResponseMessage<"SuiSignTx"> | TypedResponseMessage<"SuiSignedTx"> | TypedResponseMessage<"SuiTxRequest"> | TypedResponseMessage<"SuiTxAck"> | TypedResponseMessage<"SuiSignMessage"> | TypedResponseMessage<"SuiMessageSignature"> | TypedResponseMessage<"TezosGetAddress"> | TypedResponseMessage<"TezosAddress"> | TypedResponseMessage<"TezosGetPublicKey"> | TypedResponseMessage<"TezosPublicKey"> | TypedResponseMessage<"TezosSignTx"> | TypedResponseMessage<"TezosSignedTx"> | TypedResponseMessage<"TonGetAddress"> | TypedResponseMessage<"TonAddress"> | TypedResponseMessage<"TonSignMessage"> | TypedResponseMessage<"TonTxAck"> | TypedResponseMessage<"TonSignedMessage"> | TypedResponseMessage<"TonSignProof"> | TypedResponseMessage<"TonSignedProof"> | TypedResponseMessage<"TonSignData"> | TypedResponseMessage<"TonSignedData"> | TypedResponseMessage<"TronGetAddress"> | TypedResponseMessage<"TronAddress"> | TypedResponseMessage<"TronSignTx"> | TypedResponseMessage<"TronSignedTx"> | TypedResponseMessage<"TronSignMessage"> | TypedResponseMessage<"TronMessageSignature"> | TypedResponseMessage<"facotry"> | TypedResponseMessage<"experimental_message"> | TypedResponseMessage<"experimental_field"> | TypedResponseMessage<"TxAckPaymentRequest"> | TypedResponseMessage<"EthereumSignTypedDataQR"> | TypedResponseMessage<"InternalMyAddressRequest"> | TypedResponseMessage<"StartSession"> | TypedResponseMessage<"SetBusy"> | TypedResponseMessage<"GetFirmwareHash"> | TypedResponseMessage<"FirmwareHash"> | TypedResponseMessage<"GetNonce"> | TypedResponseMessage<"Nonce"> | TypedResponseMessage<"WriteSEPrivateKey"> | TypedResponseMessage<"SetWallpaper"> | TypedResponseMessage<"GetWallpaper"> | TypedResponseMessage<"Wallpaper"> | TypedResponseMessage<"UnlockPath"> | TypedResponseMessage<"UnlockedPathRequest"> | TypedResponseMessage<"ViewSignPage"> | TypedResponseMessage<"ViewVerifyPage"> | TypedResponseMessage<"ProtocolInfoRequest"> | TypedResponseMessage<"ProtocolInfo"> | TypedResponseMessage<"DeviceReboot"> | TypedResponseMessage<"DeviceSettingsGet"> | TypedResponseMessage<"DeviceSettingsSet"> | TypedResponseMessage<"DeviceCertificateWrite"> | TypedResponseMessage<"DeviceCertificateRead"> | TypedResponseMessage<"DeviceCertificateSignature"> | TypedResponseMessage<"DeviceCertificateSign"> | TypedResponseMessage<"DeviceFirmwareUpdateRequest"> | TypedResponseMessage<"DeviceFirmwareUpdateStatusGet"> | TypedResponseMessage<"DeviceFactoryInfoSet"> | TypedResponseMessage<"DeviceFactoryInfoGet"> | TypedResponseMessage<"DeviceFactoryPermanentLock"> | TypedResponseMessage<"DeviceFactoryTest"> | TypedResponseMessage<"DeviceInfoGet"> | TypedResponseMessage<"DeviceSessionGet"> | TypedResponseMessage<"DeviceSessionAskPin"> | TypedResponseMessage<"DeviceSessionPinResult"> | TypedResponseMessage<"DeviceStatusGet"> | TypedResponseMessage<"DevGetOnboardingStatus"> | TypedResponseMessage<"DevOnboardingStatus"> | TypedResponseMessage<"FilesystemPermissionFix"> | TypedResponseMessage<"FilesystemPathInfo"> | TypedResponseMessage<"FilesystemPathInfoQuery"> | TypedResponseMessage<"FilesystemFileRead"> | TypedResponseMessage<"FilesystemFileWrite"> | TypedResponseMessage<"FilesystemFileDelete"> | TypedResponseMessage<"FilesystemDir"> | TypedResponseMessage<"FilesystemDirList"> | TypedResponseMessage<"FilesystemDirMake"> | TypedResponseMessage<"FilesystemDirRemove"> | TypedResponseMessage<"FilesystemFormat"> | TypedResponseMessage<"PortfolioUpdate">;
|
|
3658
3776
|
|
|
3659
3777
|
declare const getDeviceType: (features?: Features) => IDeviceType;
|
|
3660
3778
|
declare const getDeviceTypeByBleName: (name?: string) => IDeviceType;
|
|
@@ -3670,7 +3788,7 @@ declare const getDeviceBLEFirmwareVersion: (features: Features) => IVersionArray
|
|
|
3670
3788
|
declare const getDeviceBootloaderVersion: (features: Features | undefined) => IVersionArray;
|
|
3671
3789
|
declare const getDeviceBoardloaderVersion: (features: Features) => IVersionArray;
|
|
3672
3790
|
|
|
3673
|
-
declare const FIRMWARE_FIELDS: readonly ["firmware", "firmware-v2", "firmware-v8", "firmware-btc-v8"];
|
|
3791
|
+
declare const FIRMWARE_FIELDS: readonly ["firmware", "firmware-v1", "firmware-v2", "firmware-v8", "firmware-btc-v8"];
|
|
3674
3792
|
type IFirmwareField = (typeof FIRMWARE_FIELDS)[number];
|
|
3675
3793
|
type ProtocolV1MessageSchema = 'v1CurrentSchema' | 'v1LegacySchema';
|
|
3676
3794
|
type ProtobufMessageSchema = ProtocolV1MessageSchema | 'v2Schema';
|
|
@@ -3787,4 +3905,4 @@ declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, can
|
|
|
3787
3905
|
declare const HardwareSDKLowLevel: ({ init, call, dispose, eventEmitter, addHardwareGlobalEventListener, uiResponse, cancel, updateSettings, switchTransport, }: LowLevelInjectApi) => LowLevelCoreApi;
|
|
3788
3906
|
declare const HardwareTopLevelSdk: () => CoreApi;
|
|
3789
3907
|
|
|
3790
|
-
export { AccountAddress, AccountAddresses, AlephiumAddress, AlephiumGetAddressParams, AlephiumSignMessageParams, AlephiumSignTransactionParams, AlephiumSignedTx, AlgoAddress, AlgoGetAddressParams, AlgoSignTransactionParams, AlgoSignedTx, AllFirmwareRelease, AllNetworkAddressParams, AllNetworkGetAddressParams, AptosAddress, AptosGetAddressParams, AptosGetPublicKeyParams, AptosMessageSignature, AptosPublicKey, AptosSignInMessageParams, AptosSignInMessageSignature, AptosSignMessageParams, AptosSignTransactionParams, AptosSignedTx, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BenfenAddress, BenfenGetAddressParams, BenfenGetPublicKeyParams, BenfenPublicKey, BenfenSignMessageParams, BenfenSignTransactionParams, BenfenSignedTx, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CardanoAddress, CardanoGetAddressMethodParams, CardanoGetAddressParams, CardanoSignMessageMethodParams, CardanoSignMessageParams, CardanoSignTransaction, CardanoSignedTxData, CipheredKeyValue, CipheredKeyValueParams, CommonParams, ConfluxAddress, ConfluxGetAddressParams, ConfluxSignMessageCIP23Params, ConfluxSignMessageParams, ConfluxSignTransactionParams, ConfluxSignedTx, ConfluxTransaction, ConnectSettings, Core, CoreApi, CoreMessage, CosmosAddress, CosmosGetAddressParams, CosmosGetPublicKeyParams, CosmosPublicKey, CosmosSignTransactionParams, CosmosSignedTx, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device
|
|
3908
|
+
export { AccountAddress, AccountAddresses, AlephiumAddress, AlephiumGetAddressParams, AlephiumSignMessageParams, AlephiumSignTransactionParams, AlephiumSignedTx, AlgoAddress, AlgoGetAddressParams, AlgoSignTransactionParams, AlgoSignedTx, AllFirmwareRelease, AllNetworkAddressParams, AllNetworkGetAddressParams, AptosAddress, AptosGetAddressParams, AptosGetPublicKeyParams, AptosMessageSignature, AptosPublicKey, AptosSignInMessageParams, AptosSignInMessageSignature, AptosSignMessageParams, AptosSignTransactionParams, AptosSignedTx, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BenfenAddress, BenfenGetAddressParams, BenfenGetPublicKeyParams, BenfenPublicKey, BenfenSignMessageParams, BenfenSignTransactionParams, BenfenSignedTx, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CardanoAddress, CardanoGetAddressMethodParams, CardanoGetAddressParams, CardanoSignMessageMethodParams, CardanoSignMessageParams, CardanoSignTransaction, CardanoSignedTxData, CipheredKeyValue, CipheredKeyValueParams, ClearSessionCacheParams, ClearSessionCachePayload, CommonParams, ConfluxAddress, ConfluxGetAddressParams, ConfluxSignMessageCIP23Params, ConfluxSignMessageParams, ConfluxSignTransactionParams, ConfluxSignedTx, ConfluxTransaction, ConnectSettings, Core, CoreApi, CoreMessage, CosmosAddress, CosmosGetAddressParams, CosmosGetPublicKeyParams, CosmosPublicKey, CosmosSignTransactionParams, CosmosSignedTx, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesMode, DeviceFeaturesPayload, DeviceFeaturesProtocol, DeviceFeaturesRaw, DeviceFeaturesVerify, DeviceFirmwareRange, DeviceFlagsParams, DeviceInfoMode, DeviceInfoProtocol, DeviceInfoScope, DeviceInfoSource, DeviceInfoStatus, DeviceModelToTypes, DeviceProfile, DeviceProfileRaw, DeviceProfileVerify, DeviceProfileVersions, DeviceProgress, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendSupportFeatures, DeviceSettingsParams, DeviceStatus, DeviceSupportFeatures, DeviceSupportFeaturesPayload, DeviceTypeMap, DeviceTypeToModels, DeviceUploadResourceParams, DeviceUploadResourceResponse, DeviceVerifyParams, DeviceVerifySignature, DnxAddress, DnxGetAddressParams, DnxSignTransactionParams, DnxSignature, DnxTxKey, EOneKeyDeviceMode, EVMAccessList, EVMAddress, EVMAuthorization, EVMAuthorizationSignature, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMTransactionEIP7702, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, FIRMWARE, FIRMWARE_EVENT, Features, FilecoinAddress, FilecoinGetAddressParams, FilecoinSignTransactionParams, FilecoinSignedTx, FirmwareEvent, FirmwareMessage, FirmwareProcessing, FirmwareProgress, FirmwareRange, FirmwareRelease, FirmwareTip, FirmwareUpdateBinaryParams, FirmwareUpdateParams, FirmwareUpdateTipMessage, FirmwareUpdateV3Params, FirmwareUpdateV4Params, GetDeviceInfoParams, GetPassphraseStateParams, GetPassphraseStatePayload, HardwareSDKLowLevel, HardwareTopLevelSdk, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareField, IFirmwareReleaseInfo, IFirmwareUpdateProgressType, IFirmwareUpdateTipMessage, IFrameBridge, IFrameCallMessage, IFrameCallback, IFrameCallbackMessage, IFrameCancelMessage, IFrameEvent, IFrameEventMessage, IFrameInit, IFrameSwitchTransport, IFrameSwitchTransportMessage, ILocale, IProtocolV2FirmwareComponent, IProtocolV2FirmwareComponentTarget, IProtocolV2ResourceBundle, ITransportStatus, IVersionArray, IVersionRange, KaspaAddress, KaspaGetAddressParams, KaspaSignInputParams, KaspaSignOutputParams, KaspaSignTransactionParams, KaspaSignature, KnownDevice, LOG, LOG_EVENT, LogBlockEvent, LogEvent, LogEventMessage, LogOutput, LoggerNames, LowLevelCoreApi, LowLevelInjectApi, MajorVersion, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, NearAddress, NearGetAddressParams, NearSignTransactionParams, NervosAddress, NervosGetAddressParams, NervosSignTransactionParams, NervosSignedTx, NexaAddress, NexaGetAddressParams, NexaSignInputParams, NexaSignOutputParams, NexaSignTransactionParams, NexaSignature, OnekeyFeatures, Params, PassphraseRequestPayload, PolkadotAddress, PolkadotGetAddressParams, PolkadotSignTransactionParams, PolkadotSignedTx, PostMessageEvent, PreviousAddressResult, RESPONSE_EVENT, RefTransaction, ReleaseInfo, ReleaseInfoEvent, ReleaseInfoPayload, RemoteConfigResponse, RequestContext, Response, ScdoAddress, ScdoGetAddressParams, ScdoSignMessageParams, ScdoSignTransactionParams, ScdoSignedTx, SdkTracingContext, SearchDevice, SignedTransaction, SolSignMessageParams, SolSignMessageResponse, SolSignOffchainMessageParams, SolSignOffchainMessageResponse, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, StrictFeatures, Success, SuiAddress, SuiGetAddressParams, SuiGetPublicKeyParams, SuiPublicKey, SuiSignMessageParams, SuiSignTransactionParams, SuiSignedTx, SupportFeatureType, SupportFeatures, TonAddress, TonGetAddressParams, TonSignDataParams, TonSignMessageParams, TonSignProofParams, TopLevelInjectApi, TransactionOptions, TransportReleaseStatus, TronAddress, TronDelegateResourceContract, TronFreezeBalanceV2Contract, TronGetAddressParams, TronSignMessageParams, TronSignTransactionParams, TronTransaction, TronTransactionContract, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestFirmwareProgressing, UiRequestPassphrase, UiRequestPassphraseOnDevice, UiRequestSelectDeviceForSwitchFirmwareWebDevice, UiRequestSelectDeviceInBootloaderForWebDevice, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePassphrase, UiResponsePin, UiResponseSelectDeviceForSwitchFirmwareWebDevice, UiResponseSelectDeviceInBootloaderForWebDevice, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, checkNeedUpdateBootForClassicAndMini, checkNeedUpdateBootForTouch, cleanupCallback, cleanupSdkInstance, completeRequestContext, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createRequestContext, createResponseMessage, createSdkTracingContext, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, executeCallback, formatRequestContext, generateInstanceId, generateSdkInstanceId, getActiveRequestsByDeviceInstance, getAutoLockOptions, getAutoShutDownOptions, getDeviceBLEFirmwareVersion, getDeviceBleName, getDeviceBoardloaderVersion, getDeviceBootloaderVersion, getDeviceFirmwareVersion, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceUUID, getEnv, getFirmwareType, getFirmwareUpdateField, getFirmwareUpdateFieldArray, getHDPath, getHomeScreenDefaultList, getHomeScreenHex, getHomeScreenSize, getLanguageConfig, getLog, getLogBlockLabel, getLogger, getMethodVersionRange, getOutputScriptType, getSDKVersion, getScriptType, getTimeStamp, httpRequest, init$1 as initCore, isBleConnect, isMethodVersionRangeUnsupported, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, preloadSessionCache, safeThrowError, setLoggerPostMessage, supportInputPinOnSoftware, switchTransport, transportEnv, updateRequestContext, versionCompare, versionSplit, wait, whitelist, whitelistExtension };
|