@onekeyfe/hd-core 1.2.0-alpha.0 → 1.2.0-alpha.2
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__/protocol-v2.test.ts +56 -178
- package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
- package/dist/api/FirmwareUpdateV4.d.ts +2 -2
- 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/device/DeviceUnlock.d.ts +1 -1
- package/dist/api/firmware/bootloaderHelper.d.ts.map +1 -1
- package/dist/api/firmware/uploadFirmware.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/core/index.d.ts.map +1 -1
- package/dist/device/Device.d.ts +10 -15
- package/dist/device/Device.d.ts.map +1 -1
- 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 +571 -496
- package/dist/index.js +502 -571
- package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
- package/dist/types/api/getDeviceInfo.d.ts +2 -2
- package/dist/types/api/getDeviceInfo.d.ts.map +1 -1
- package/dist/types/device.d.ts +87 -8
- package/dist/types/device.d.ts.map +1 -1
- package/dist/utils/capabilitieUtils.d.ts.map +1 -1
- package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
- package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
- package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
- package/dist/utils/findDefectiveBatchDevice.d.ts +1 -1
- package/dist/utils/patch.d.ts +1 -1
- package/package.json +4 -4
- package/src/api/FirmwareUpdateV2.ts +9 -2
- package/src/api/FirmwareUpdateV3.ts +2 -1
- package/src/api/FirmwareUpdateV4.ts +24 -31
- package/src/api/GetDeviceInfo.ts +6 -13
- package/src/api/GetOnekeyFeatures.ts +3 -14
- package/src/api/GetPassphraseState.ts +2 -2
- package/src/api/firmware/bootloaderHelper.ts +3 -2
- package/src/api/firmware/getBinary.ts +1 -1
- package/src/api/firmware/releaseHelper.ts +3 -3
- package/src/api/firmware/uploadFirmware.ts +5 -2
- package/src/api/tron/TronSignMessage.ts +0 -1
- package/src/api/tron/TronSignTransaction.ts +0 -1
- package/src/core/index.ts +3 -7
- package/src/data-manager/DataManager.ts +4 -4
- package/src/device/Device.ts +74 -240
- package/src/device/DevicePool.ts +3 -3
- package/src/deviceProfile/buildDeviceFeatures.ts +367 -0
- package/src/deviceProfile/buildDeviceProfile.ts +102 -155
- package/src/deviceProfile/index.ts +4 -1
- package/src/protocols/protocol-v2/features.ts +6 -9
- package/src/types/api/getDeviceInfo.ts +2 -2
- package/src/types/device.ts +97 -34
- package/src/utils/capabilitieUtils.ts +1 -2
- package/src/utils/deviceFeaturesUtils.ts +11 -17
- package/src/utils/deviceInfoUtils.ts +11 -29
- package/src/utils/deviceVersionUtils.ts +7 -25
- package/src/utils/findDefectiveBatchDevice.ts +6 -6
- package/dist/deviceProfile/legacyFeaturesView.d.ts +0 -5
- package/dist/deviceProfile/legacyFeaturesView.d.ts.map +0 -1
- package/src/deviceProfile/legacyFeaturesView.ts +0 -123
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
|
|
2
|
-
import
|
|
3
|
-
import { DevFirmwareTargetType, DevRebootType, DeviceRebootType, DevFirmwareTarget, Messages, Transport, TransportCallOptions, OneKeyDeviceInfo, OneKeyDeviceCommType, ProtocolType, ProtocolV2DeviceInfo, Success as Success$1, LowlevelTransportSharedPlugin, ProtoVersion, OnboardingStatus, DevFirmwareUpdateStatus, DeviceFirmwareUpdateStatus, FactoryDeviceInfo, Features as Features$1, 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';
|
|
2
|
+
import { DevFirmwareTargetType, DevRebootType, DeviceRebootType, DevFirmwareTarget, Messages, Transport, TransportCallOptions, OneKeyDeviceInfo, ProtocolV2DeviceInfo, Success as Success$1, LowlevelTransportSharedPlugin, ProtoVersion, OnboardingStatus, DevFirmwareUpdateStatus, DeviceFirmwareUpdateStatus, FactoryDeviceInfo, 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';
|
|
4
3
|
export { Messages as PROTO, TonSignDataType } 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;
|
|
@@ -83,12 +82,12 @@ type DefaultMessageResponse = TypedCallResponseMap[MessageKey];
|
|
|
83
82
|
declare class DeviceCommands {
|
|
84
83
|
instanceId: string;
|
|
85
84
|
currentResponseID?: number;
|
|
86
|
-
device: Device;
|
|
85
|
+
device: Device$1;
|
|
87
86
|
transport: Transport;
|
|
88
87
|
mainId: string;
|
|
89
88
|
disposed: boolean;
|
|
90
89
|
callPromise?: Promise<DefaultMessageResponse>;
|
|
91
|
-
constructor(device: Device, mainId: string);
|
|
90
|
+
constructor(device: Device$1, mainId: string);
|
|
92
91
|
dispose(_cancelRequest: boolean): Promise<void>;
|
|
93
92
|
checkDisposed(): void;
|
|
94
93
|
cancelDeviceOnOneKeyDevice(): Promise<{
|
|
@@ -169,283 +168,6 @@ declare class DeviceConnector {
|
|
|
169
168
|
_reportDevicesChange(): void;
|
|
170
169
|
}
|
|
171
170
|
|
|
172
|
-
type transportEnv = 'node' | 'web' | 'webextension' | 'electron' | 'react-native' | 'webusb' | 'desktop-webusb' | 'desktop-web-ble' | 'emulator' | 'lowlevel' | 'node-usb';
|
|
173
|
-
type ConnectSettings = {
|
|
174
|
-
connectSrc?: string;
|
|
175
|
-
debug?: boolean;
|
|
176
|
-
transportReconnect?: boolean;
|
|
177
|
-
lazyLoad?: boolean;
|
|
178
|
-
origin?: string;
|
|
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>;
|
|
193
|
-
};
|
|
194
|
-
type IVersionArray = [number, number, number];
|
|
195
|
-
type ILocale = 'zh-CN' | 'en-US';
|
|
196
|
-
type IFirmwareReleaseInfo = {
|
|
197
|
-
required: boolean;
|
|
198
|
-
url: string;
|
|
199
|
-
firmwareType?: EFirmwareType;
|
|
200
|
-
resource?: string;
|
|
201
|
-
fullResource?: string;
|
|
202
|
-
fullResourceRange?: string[];
|
|
203
|
-
bootloaderResource?: string;
|
|
204
|
-
bootloaderVersion?: IVersionArray;
|
|
205
|
-
displayBootloaderVersion?: IVersionArray;
|
|
206
|
-
bootloaderRelatedFirmwareVersion?: IVersionArray;
|
|
207
|
-
bootloaderChangelog?: {
|
|
208
|
-
[k in ILocale]: string;
|
|
209
|
-
};
|
|
210
|
-
fingerprint: string;
|
|
211
|
-
version: IVersionArray;
|
|
212
|
-
changelog: {
|
|
213
|
-
[k in ILocale]: string;
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
type IBLEFirmwareReleaseInfo = {
|
|
217
|
-
required: boolean;
|
|
218
|
-
url: string;
|
|
219
|
-
webUpdate: string;
|
|
220
|
-
fingerprint: string;
|
|
221
|
-
fingerprintWeb: string;
|
|
222
|
-
version: IVersionArray;
|
|
223
|
-
changelog: {
|
|
224
|
-
[k in ILocale]: string;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
type IKnownDevice = Exclude<IDeviceType, 'unknown' | 'pro2'>;
|
|
228
|
-
type DeviceTypeMap = {
|
|
229
|
-
[k in IKnownDevice]: {
|
|
230
|
-
firmware: IFirmwareReleaseInfo[];
|
|
231
|
-
'firmware-v2'?: IFirmwareReleaseInfo[];
|
|
232
|
-
'firmware-v8'?: IFirmwareReleaseInfo[];
|
|
233
|
-
'firmware-btc-v8'?: IFirmwareReleaseInfo[];
|
|
234
|
-
ble: IBLEFirmwareReleaseInfo[];
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
type AssetsMap = {
|
|
238
|
-
bridge: {
|
|
239
|
-
version: IVersionArray;
|
|
240
|
-
linux32Rpm: string;
|
|
241
|
-
linux64Rpm: string;
|
|
242
|
-
linux32Deb: string;
|
|
243
|
-
linux64Deb: string;
|
|
244
|
-
win: string;
|
|
245
|
-
mac: string;
|
|
246
|
-
sha256sumAsc: string;
|
|
247
|
-
changelog: {
|
|
248
|
-
[k in ILocale]: string;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
type RemoteConfigResponse = {
|
|
253
|
-
bridge: AssetsMap['bridge'];
|
|
254
|
-
} & DeviceTypeMap;
|
|
255
|
-
|
|
256
|
-
type DeviceStatus = 'available' | 'occupied' | 'used';
|
|
257
|
-
declare enum EOneKeyDeviceMode {
|
|
258
|
-
bootloader = "bootloader",
|
|
259
|
-
normal = "normal",
|
|
260
|
-
notInitialized = "notInitialized",
|
|
261
|
-
backupMode = "backupMode"
|
|
262
|
-
}
|
|
263
|
-
type UnavailableCapability = 'no-capability' | 'no-support' | 'update-required' | 'trezor-connect-outdated';
|
|
264
|
-
type UnavailableCapabilities = {
|
|
265
|
-
[key: string]: UnavailableCapability;
|
|
266
|
-
};
|
|
267
|
-
type KnownDevice = {
|
|
268
|
-
connectId: string | null;
|
|
269
|
-
uuid: string;
|
|
270
|
-
deviceId: string | null;
|
|
271
|
-
deviceType: IDeviceType | null;
|
|
272
|
-
commType: OneKeyDeviceCommType | null;
|
|
273
|
-
path: string;
|
|
274
|
-
label: string;
|
|
275
|
-
bleName: string | null;
|
|
276
|
-
name: string;
|
|
277
|
-
error?: typeof undefined;
|
|
278
|
-
mode: EOneKeyDeviceMode;
|
|
279
|
-
profile?: DeviceProfile;
|
|
280
|
-
features?: Messages.Features;
|
|
281
|
-
sessionId?: string | null;
|
|
282
|
-
unavailableCapabilities: UnavailableCapabilities;
|
|
283
|
-
bleFirmwareVersion: IVersionArray | null;
|
|
284
|
-
firmwareVersion: IVersionArray | null;
|
|
285
|
-
instanceId?: string;
|
|
286
|
-
sdkInstanceId?: string;
|
|
287
|
-
createdAt?: number;
|
|
288
|
-
};
|
|
289
|
-
type SearchDevice = {
|
|
290
|
-
connectId: string | null;
|
|
291
|
-
uuid: string;
|
|
292
|
-
deviceId: string | null;
|
|
293
|
-
deviceType: IDeviceType;
|
|
294
|
-
name: string;
|
|
295
|
-
commType: OneKeyDeviceCommType;
|
|
296
|
-
};
|
|
297
|
-
type Device$1 = KnownDevice;
|
|
298
|
-
type OnekeyFeatureExtensions = Partial<Pick<Messages.OnekeyFeatures, 'onekey_board_build_id' | 'onekey_se02_hash' | 'onekey_se03_hash' | 'onekey_se04_hash' | 'onekey_se02_build_id' | 'onekey_se03_build_id' | 'onekey_se04_build_id' | 'onekey_se01_boot_version' | 'onekey_se02_boot_version' | 'onekey_se03_boot_version' | 'onekey_se04_boot_version' | 'onekey_se01_boot_hash' | 'onekey_se02_boot_hash' | 'onekey_se03_boot_hash' | 'onekey_se04_boot_hash' | 'onekey_se01_boot_build_id' | 'onekey_se02_boot_build_id' | 'onekey_se03_boot_build_id' | 'onekey_se04_boot_build_id'>>;
|
|
299
|
-
type Features = Messages.Features & OnekeyFeatureExtensions & {
|
|
300
|
-
protocol_version?: number | null;
|
|
301
|
-
};
|
|
302
|
-
type OnekeyFeatures = Messages.OnekeyFeatures;
|
|
303
|
-
type IDeviceType = EDeviceType.Unknown | EDeviceType.Classic | EDeviceType.Classic1s | EDeviceType.ClassicPure | EDeviceType.Mini | EDeviceType.Touch | EDeviceType.Pro | EDeviceType.Pro2;
|
|
304
|
-
type IDeviceModel = 'model_classic' | 'model_mini' | 'model_touch' | 'model_classic1s';
|
|
305
|
-
declare const DeviceModelToTypes: {
|
|
306
|
-
[deviceModel in IDeviceModel]: IDeviceType[];
|
|
307
|
-
};
|
|
308
|
-
declare const DeviceTypeToModels: {
|
|
309
|
-
[deviceType in IDeviceType]: IDeviceModel[];
|
|
310
|
-
};
|
|
311
|
-
type IDeviceFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
|
|
312
|
-
type IDeviceBLEFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
|
|
313
|
-
type ITransportStatus = 'valid' | 'outdated';
|
|
314
|
-
type IVersionRange = {
|
|
315
|
-
min: string;
|
|
316
|
-
max?: string;
|
|
317
|
-
unsupported?: boolean;
|
|
318
|
-
};
|
|
319
|
-
type DeviceFirmwareRange = {
|
|
320
|
-
[deviceType in IDeviceType | IDeviceModel]?: IVersionRange;
|
|
321
|
-
};
|
|
322
|
-
type FeaturesNarrowing = {
|
|
323
|
-
major_version: 2;
|
|
324
|
-
fw_major: null;
|
|
325
|
-
fw_minor: null;
|
|
326
|
-
fw_patch: null;
|
|
327
|
-
bootloader_mode: true;
|
|
328
|
-
firmware_present: false;
|
|
329
|
-
} | {
|
|
330
|
-
major_version: 2;
|
|
331
|
-
fw_major: null;
|
|
332
|
-
fw_minor: null;
|
|
333
|
-
fw_patch: null;
|
|
334
|
-
bootloader_mode: null;
|
|
335
|
-
firmware_present: null;
|
|
336
|
-
} | {
|
|
337
|
-
major_version: 2;
|
|
338
|
-
fw_major: 2;
|
|
339
|
-
fw_minor: number;
|
|
340
|
-
fw_patch: number;
|
|
341
|
-
bootloader_mode: true;
|
|
342
|
-
firmware_present: true;
|
|
343
|
-
} | {
|
|
344
|
-
major_version: 1;
|
|
345
|
-
fw_major: null;
|
|
346
|
-
fw_minor: null;
|
|
347
|
-
fw_patch: null;
|
|
348
|
-
bootloader_mode: true;
|
|
349
|
-
firmware_present: false;
|
|
350
|
-
} | {
|
|
351
|
-
major_version: 1;
|
|
352
|
-
fw_major: null;
|
|
353
|
-
fw_minor: null;
|
|
354
|
-
fw_patch: null;
|
|
355
|
-
bootloader_mode: true;
|
|
356
|
-
firmware_present: true;
|
|
357
|
-
};
|
|
358
|
-
type StrictFeatures = Features & FeaturesNarrowing;
|
|
359
|
-
type SupportFeatureType = {
|
|
360
|
-
support: boolean;
|
|
361
|
-
require?: string;
|
|
362
|
-
};
|
|
363
|
-
type SupportFeatures = {
|
|
364
|
-
inputPinOnSoftware: SupportFeatureType;
|
|
365
|
-
modifyHomescreen: SupportFeatureType;
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
type DeviceInfoProtocol = ProtocolType | 'unknown';
|
|
369
|
-
type DeviceInfoSource = 'features' | 'onekeyFeatures' | 'deviceInfo';
|
|
370
|
-
type DeviceInfoScope = 'basic' | 'versions' | 'verify' | 'full';
|
|
371
|
-
type GetDeviceInfoParams = {
|
|
372
|
-
scope?: DeviceInfoScope;
|
|
373
|
-
refresh?: boolean;
|
|
374
|
-
includeRaw?: boolean;
|
|
375
|
-
};
|
|
376
|
-
type DeviceInfoMode = 'normal' | 'bootloader' | 'notInitialized' | 'unknown';
|
|
377
|
-
type DeviceInfoStatus = {
|
|
378
|
-
mode: DeviceInfoMode;
|
|
379
|
-
initialized: boolean | null;
|
|
380
|
-
bootloaderMode: boolean | null;
|
|
381
|
-
unlocked: boolean | null;
|
|
382
|
-
passphraseProtection: boolean | null;
|
|
383
|
-
backupRequired: boolean | null;
|
|
384
|
-
noBackup: boolean | null;
|
|
385
|
-
language: string | null;
|
|
386
|
-
bleEnabled: boolean | null;
|
|
387
|
-
};
|
|
388
|
-
type DeviceProfileVersions = {
|
|
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
171
|
type InitOptions = {
|
|
450
172
|
initSession?: boolean;
|
|
451
173
|
deviceId?: string;
|
|
@@ -458,31 +180,31 @@ type RunOptions = {
|
|
|
458
180
|
skipInitialize?: boolean;
|
|
459
181
|
} & InitOptions;
|
|
460
182
|
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];
|
|
183
|
+
[DEVICE.PIN]: [Device$1, Messages.PinMatrixRequestType | undefined, (err: any, pin: string) => void];
|
|
184
|
+
[DEVICE.PASSPHRASE_ON_DEVICE]: [Device$1, ((response: any) => void)?];
|
|
185
|
+
[DEVICE.BUTTON]: [Device$1, DeviceButtonRequestPayload];
|
|
186
|
+
[DEVICE.FEATURES]: [Device$1, DeviceFeaturesPayload];
|
|
465
187
|
[DEVICE.PASSPHRASE]: [
|
|
466
|
-
Device,
|
|
188
|
+
Device$1,
|
|
467
189
|
PassphraseRequestPayload,
|
|
468
190
|
(response: PassphrasePromptResponse, error?: Error) => void
|
|
469
191
|
];
|
|
470
192
|
[DEVICE.SELECT_DEVICE_IN_BOOTLOADER_FOR_WEB_DEVICE]: [
|
|
471
|
-
Device,
|
|
193
|
+
Device$1,
|
|
472
194
|
(err: any, deviceId: string) => void
|
|
473
195
|
];
|
|
474
196
|
[DEVICE.SELECT_DEVICE_FOR_SWITCH_FIRMWARE_WEB_DEVICE]: [
|
|
475
|
-
Device,
|
|
197
|
+
Device$1,
|
|
476
198
|
(err: any, deviceId: string) => void
|
|
477
199
|
];
|
|
478
200
|
}
|
|
479
201
|
declare function preloadSessionCache(deviceId: string, passphraseState: string, sessionId: string): void;
|
|
480
|
-
interface Device {
|
|
202
|
+
interface Device$1 {
|
|
481
203
|
on<K extends keyof DeviceEvents>(type: K, listener: (...event: DeviceEvents[K]) => void): this;
|
|
482
204
|
off<K extends keyof DeviceEvents>(type: K, listener: (...event: DeviceEvents[K]) => void): this;
|
|
483
205
|
emit<K extends keyof DeviceEvents>(type: K, ...args: DeviceEvents[K]): boolean;
|
|
484
206
|
}
|
|
485
|
-
declare class Device extends EventEmitter {
|
|
207
|
+
declare class Device$1 extends EventEmitter {
|
|
486
208
|
originalDescriptor: OneKeyDeviceInfo;
|
|
487
209
|
sdkInstanceId?: string;
|
|
488
210
|
instanceId: string;
|
|
@@ -493,9 +215,6 @@ declare class Device extends EventEmitter {
|
|
|
493
215
|
private cancelableAction?;
|
|
494
216
|
private deviceAcquired;
|
|
495
217
|
features: Features | undefined;
|
|
496
|
-
private getFeaturesProfile;
|
|
497
|
-
get profile(): DeviceProfile | undefined;
|
|
498
|
-
set profile(profile: DeviceProfile | undefined);
|
|
499
218
|
featuresNeedsReload: boolean;
|
|
500
219
|
runPromise?: Deferred<void> | null;
|
|
501
220
|
externalState: string[];
|
|
@@ -510,8 +229,8 @@ declare class Device extends EventEmitter {
|
|
|
510
229
|
private preInitializeMeta?;
|
|
511
230
|
private lastInitializeDurationMs?;
|
|
512
231
|
constructor(descriptor: OneKeyDeviceInfo, sdkInstanceId?: string);
|
|
513
|
-
static fromDescriptor(originalDescriptor: OneKeyDeviceInfo, sdkInstanceId?: string): Device;
|
|
514
|
-
toMessageObject(): Device
|
|
232
|
+
static fromDescriptor(originalDescriptor: OneKeyDeviceInfo, sdkInstanceId?: string): Device$1;
|
|
233
|
+
toMessageObject(): Device | null;
|
|
515
234
|
connect(connectProtocol?: HardwareConnectProtocol): Promise<boolean>;
|
|
516
235
|
acquire(connectProtocol?: HardwareConnectProtocol): Promise<void>;
|
|
517
236
|
release(): Promise<void>;
|
|
@@ -538,26 +257,25 @@ declare class Device extends EventEmitter {
|
|
|
538
257
|
getCurrentFirmwareType(): _onekeyfe_hd_shared.EFirmwareType;
|
|
539
258
|
getCurrentFirmwareVersionString(): string;
|
|
540
259
|
getCurrentBLEFirmwareVersionString(): string | undefined;
|
|
541
|
-
getCurrentSafetyChecks():
|
|
260
|
+
getCurrentSafetyChecks(): string | null | undefined;
|
|
542
261
|
getCurrentMethodVersionRange(getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined): IVersionRange | undefined;
|
|
543
262
|
supportNewPassphrase(): SupportFeatureType;
|
|
544
263
|
supportInputPinOnSoftware(): SupportFeatureType;
|
|
545
264
|
supportModifyHomescreen(): SupportFeatureType;
|
|
546
265
|
private generateStateKey;
|
|
266
|
+
private getSessionCacheDeviceKey;
|
|
547
267
|
getInternalState(_deviceId?: string): string | undefined;
|
|
548
|
-
updateInternalState(enablePassphrase: boolean, passphraseState: string | undefined, deviceId: string, sessionId?: string | null, featuresSessionId?: string | null): void;
|
|
268
|
+
updateInternalState(enablePassphrase: boolean, passphraseState: string | undefined, deviceId: string | undefined, sessionId?: string | null, featuresSessionId?: string | null): void;
|
|
549
269
|
private setInternalState;
|
|
550
270
|
clearInternalState(_deviceId?: string): void;
|
|
551
271
|
initialize(options?: InitOptions): Promise<void>;
|
|
552
272
|
private _initializeProtocolV2;
|
|
553
273
|
private _refreshProtocolV2Status;
|
|
554
|
-
getFeatures(): Promise<
|
|
555
|
-
_updateFeatures(
|
|
556
|
-
|
|
557
|
-
applyProfileUpdate(next: DeviceProfile, deviceInfo?: ProtocolV2DeviceInfo): DeviceProfile;
|
|
558
|
-
private updateProtocolV2Features;
|
|
274
|
+
getFeatures(): Promise<Features | undefined>;
|
|
275
|
+
_updateFeatures(protoFeatures: Messages.Features | Features, initSession?: boolean): void;
|
|
276
|
+
updateProtocolV2Features(deviceInfo?: ProtocolV2DeviceInfo): Features;
|
|
559
277
|
updateDescriptor(descriptor: OneKeyDeviceInfo, forceUpdate?: boolean): void;
|
|
560
|
-
updateFromCache(device: Device): void;
|
|
278
|
+
updateFromCache(device: Device$1): void;
|
|
561
279
|
run(fn?: () => Promise<void>, options?: RunOptions): Promise<void>;
|
|
562
280
|
_runInner<T>(fn: (() => Promise<T>) | undefined, options: RunOptions): Promise<undefined>;
|
|
563
281
|
interruptionFromOutside(): Promise<void>;
|
|
@@ -580,201 +298,477 @@ declare class Device extends EventEmitter {
|
|
|
580
298
|
checkDeviceId(deviceId: string): boolean;
|
|
581
299
|
lockDevice(): Promise<Success$1>;
|
|
582
300
|
supportUnlockVersionRange(): DeviceFirmwareRange;
|
|
583
|
-
unlockDevice(): Promise<
|
|
301
|
+
unlockDevice(): Promise<Features | undefined>;
|
|
584
302
|
checkPassphraseStateSafety(passphraseState?: string, useEmptyPassphrase?: boolean, skipPassphraseCheck?: boolean): Promise<boolean>;
|
|
585
303
|
}
|
|
586
304
|
|
|
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;
|
|
305
|
+
declare function generateSdkInstanceId(): string;
|
|
306
|
+
declare function generateInstanceId(type: string, sdkInstanceId?: string): string;
|
|
307
|
+
interface RequestContext {
|
|
308
|
+
responseID: number;
|
|
309
|
+
sdkInstanceId?: string;
|
|
310
|
+
methodName: string;
|
|
311
|
+
connectId?: string;
|
|
312
|
+
deviceInstanceId?: string;
|
|
313
|
+
commandsInstanceId?: string;
|
|
314
|
+
parentResponseID?: number;
|
|
315
|
+
startTime: number;
|
|
316
|
+
endTime?: number;
|
|
317
|
+
status?: 'pending' | 'running' | 'success' | 'error' | 'cancelled';
|
|
318
|
+
error?: string;
|
|
319
|
+
}
|
|
320
|
+
interface SdkTracingContext {
|
|
321
|
+
sdkInstanceId: string;
|
|
322
|
+
createdAt: number;
|
|
323
|
+
activeRequests: Map<number, RequestContext>;
|
|
324
|
+
}
|
|
325
|
+
declare function createSdkTracingContext(): SdkTracingContext;
|
|
326
|
+
declare function createRequestContext(responseID: number, methodName: string, options?: {
|
|
327
|
+
sdkInstanceId?: string;
|
|
328
|
+
connectId?: string;
|
|
329
|
+
deviceInstanceId?: string;
|
|
330
|
+
commandsInstanceId?: string;
|
|
331
|
+
parentResponseID?: number;
|
|
332
|
+
}): RequestContext;
|
|
333
|
+
declare function updateRequestContext(responseID: number, updates: Partial<RequestContext>): void;
|
|
334
|
+
declare function completeRequestContext(responseID: number, error?: Error): void;
|
|
335
|
+
declare function getActiveRequestsByDeviceInstance(deviceInstanceId: string): RequestContext[];
|
|
336
|
+
declare function formatRequestContext(context: RequestContext): string;
|
|
337
|
+
declare function cleanupSdkInstance(sdkInstanceId: string): void;
|
|
338
|
+
|
|
339
|
+
declare class Core extends EventEmitter {
|
|
340
|
+
private tracingContext;
|
|
341
|
+
readonly sdkInstanceId: string;
|
|
342
|
+
private requestQueue;
|
|
343
|
+
private prePendingCallPromise;
|
|
344
|
+
private methodSynchronize;
|
|
345
|
+
constructor();
|
|
346
|
+
private getCoreContext;
|
|
347
|
+
handleMessage(message: CoreMessage): Promise<any>;
|
|
348
|
+
dispose(): void;
|
|
349
|
+
}
|
|
350
|
+
declare const init$1: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin) => Promise<Core | undefined>;
|
|
351
|
+
declare const switchTransport: ({ env, Transport, plugin, }: {
|
|
352
|
+
env: ConnectSettings['env'];
|
|
353
|
+
Transport: any;
|
|
354
|
+
plugin?: LowlevelTransportSharedPlugin | undefined;
|
|
355
|
+
}) => void;
|
|
356
|
+
|
|
357
|
+
type DeviceGetDeviceInfoTargets = {
|
|
358
|
+
hw?: boolean;
|
|
359
|
+
fw?: boolean;
|
|
360
|
+
bt?: boolean;
|
|
361
|
+
se1?: boolean;
|
|
362
|
+
se2?: boolean;
|
|
363
|
+
se3?: boolean;
|
|
364
|
+
se4?: boolean;
|
|
365
|
+
status?: boolean;
|
|
366
|
+
};
|
|
367
|
+
type DeviceGetDeviceInfoTypes = {
|
|
368
|
+
version?: boolean;
|
|
369
|
+
build_id?: boolean;
|
|
370
|
+
hash?: boolean;
|
|
371
|
+
specific?: boolean;
|
|
372
|
+
};
|
|
373
|
+
type DeviceGetDeviceInfoParams = {
|
|
374
|
+
targets?: DeviceGetDeviceInfoTargets;
|
|
375
|
+
types?: DeviceGetDeviceInfoTypes;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
type FileOpSuccess = {
|
|
379
|
+
message?: string;
|
|
380
|
+
};
|
|
381
|
+
type FileInfo = {
|
|
382
|
+
path: string;
|
|
383
|
+
offset: number;
|
|
384
|
+
total_size: number;
|
|
385
|
+
data?: Uint8Array;
|
|
386
|
+
data_hash?: number;
|
|
387
|
+
processed_byte?: number;
|
|
388
|
+
chunks?: number;
|
|
389
|
+
};
|
|
390
|
+
type DirInfo = {
|
|
391
|
+
path: string;
|
|
392
|
+
child_dirs?: string;
|
|
393
|
+
child_files?: string;
|
|
394
|
+
};
|
|
395
|
+
type PathInfoResult = {
|
|
396
|
+
exist: boolean;
|
|
397
|
+
size: number;
|
|
398
|
+
year: number;
|
|
399
|
+
month: number;
|
|
400
|
+
day: number;
|
|
401
|
+
hour: number;
|
|
402
|
+
minute: number;
|
|
403
|
+
second: number;
|
|
404
|
+
readonly: boolean;
|
|
405
|
+
hidden: boolean;
|
|
406
|
+
system: boolean;
|
|
407
|
+
archive: boolean;
|
|
408
|
+
directory: boolean;
|
|
409
|
+
};
|
|
410
|
+
declare function getProtoVersion(connectId: string, params?: CommonParams): Response<ProtoVersion>;
|
|
411
|
+
declare function ping(connectId: string, params?: CommonParams & {
|
|
412
|
+
message?: string;
|
|
413
|
+
}): Response<Success$1>;
|
|
414
|
+
declare function deviceReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
|
|
415
|
+
declare function deviceGetDeviceInfo(connectId: string, params?: CommonParams & DeviceGetDeviceInfoParams): Response<ProtocolV2DeviceInfo>;
|
|
416
|
+
declare function deviceGetOnboardingStatus(connectId: string, params?: CommonParams): Response<OnboardingStatus>;
|
|
417
|
+
declare function deviceFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DevFirmwareUpdateStatus | DeviceFirmwareUpdateStatus>;
|
|
418
|
+
declare function deviceGetFirmwareUpdateStatus(connectId: string, params?: CommonParams): Response<DevFirmwareUpdateStatus | DeviceFirmwareUpdateStatus>;
|
|
419
|
+
declare function devReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
|
|
420
|
+
declare function devGetDeviceInfo(connectId: string, params?: CommonParams & DeviceGetDeviceInfoParams): Response<ProtocolV2DeviceInfo>;
|
|
421
|
+
declare function devFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DevFirmwareUpdateStatus>;
|
|
422
|
+
declare function devGetFirmwareUpdateStatus(connectId: string, params?: CommonParams): Response<DevFirmwareUpdateStatus>;
|
|
423
|
+
declare function factoryDeviceInfoSettings(connectId: string, params: FactoryDeviceInfoSettingsParams): Response<Success$1>;
|
|
424
|
+
declare function factoryGetDeviceInfo(connectId: string): Response<FactoryDeviceInfo>;
|
|
425
|
+
declare function filesystemFixPermission(connectId: string): Response<Success$1>;
|
|
426
|
+
declare function fileRead(connectId: string, params: {
|
|
427
|
+
path: string;
|
|
428
|
+
offset?: number;
|
|
429
|
+
totalSize?: number;
|
|
430
|
+
chunkLen?: number;
|
|
431
|
+
uiPercentage?: number;
|
|
432
|
+
}): Response<FileInfo>;
|
|
433
|
+
declare function fileWrite(connectId: string, params: {
|
|
434
|
+
path: string;
|
|
435
|
+
offset?: number;
|
|
436
|
+
totalSize?: number;
|
|
437
|
+
chunkSize?: number;
|
|
438
|
+
chunkLen?: number;
|
|
439
|
+
data: ArrayBuffer | Uint8Array | Blob | string;
|
|
440
|
+
overwrite?: boolean;
|
|
441
|
+
append?: boolean;
|
|
442
|
+
uiPercentage?: number;
|
|
443
|
+
timeoutMs?: number | string;
|
|
444
|
+
}): Response<FileInfo>;
|
|
445
|
+
declare function fileDelete(connectId: string, params: {
|
|
446
|
+
path: string;
|
|
447
|
+
}): Response<FileOpSuccess>;
|
|
448
|
+
declare function dirList(connectId: string, params: {
|
|
449
|
+
path: string;
|
|
450
|
+
depth?: number;
|
|
451
|
+
}): Response<DirInfo>;
|
|
452
|
+
declare function dirMake(connectId: string, params: {
|
|
453
|
+
path: string;
|
|
454
|
+
}): Response<FileOpSuccess>;
|
|
455
|
+
declare function dirRemove(connectId: string, params: {
|
|
456
|
+
path: string;
|
|
457
|
+
}): Response<FileOpSuccess>;
|
|
458
|
+
declare function pathInfo(connectId: string, params: {
|
|
459
|
+
path: string;
|
|
460
|
+
timeoutMs?: number | string;
|
|
461
|
+
}): Response<PathInfoResult>;
|
|
462
|
+
declare const filesystemFileRead: typeof fileRead;
|
|
463
|
+
declare const filesystemFileWrite: typeof fileWrite;
|
|
464
|
+
declare const filesystemFileDelete: typeof fileDelete;
|
|
465
|
+
declare const filesystemDirList: typeof dirList;
|
|
466
|
+
declare const filesystemDirMake: typeof dirMake;
|
|
467
|
+
declare const filesystemDirRemove: typeof dirRemove;
|
|
468
|
+
declare const filesystemPathInfoQuery: typeof pathInfo;
|
|
469
|
+
declare function filesystemFormat(connectId: string): Response<Success$1>;
|
|
470
|
+
declare function filesystemDiskControl(connectId: string, params: CommonParams & {
|
|
471
|
+
enable: boolean | 0 | 1;
|
|
472
|
+
timeoutMs?: number | string;
|
|
473
|
+
}): Response<Success$1>;
|
|
474
|
+
|
|
475
|
+
declare const on: <T extends string, P extends (...args: any[]) => any>(type: T, fn: P) => void;
|
|
476
|
+
declare const off: (type: any, fn: any) => void;
|
|
477
|
+
declare const removeAllListeners: (type: any) => void;
|
|
620
478
|
|
|
621
|
-
declare
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
479
|
+
declare function uiResponse(response: UiResponseEvent): void;
|
|
480
|
+
|
|
481
|
+
type IAddHardwareGlobalEventListener = (coreMessage: CoreMessage) => void;
|
|
482
|
+
interface LowLevelInjectApi {
|
|
483
|
+
call: CallMethod;
|
|
484
|
+
eventEmitter: EventEmitter$1;
|
|
485
|
+
init: CoreApi['init'];
|
|
486
|
+
dispose: CoreApi['dispose'];
|
|
487
|
+
uiResponse: CoreApi['uiResponse'];
|
|
488
|
+
cancel: CoreApi['cancel'];
|
|
489
|
+
updateSettings: CoreApi['updateSettings'];
|
|
490
|
+
switchTransport: CoreApi['switchTransport'];
|
|
491
|
+
addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
|
|
631
492
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
Transport: any;
|
|
636
|
-
plugin?: LowlevelTransportSharedPlugin | undefined;
|
|
637
|
-
}) => void;
|
|
493
|
+
type LowLevelCoreApi = Omit<CoreApi, 'on' | 'off'> & {
|
|
494
|
+
addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
|
|
495
|
+
};
|
|
638
496
|
|
|
639
|
-
type
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
497
|
+
type DeviceStatus = 'available' | 'occupied' | 'used';
|
|
498
|
+
declare enum EOneKeyDeviceMode {
|
|
499
|
+
bootloader = "bootloader",
|
|
500
|
+
normal = "normal",
|
|
501
|
+
notInitialized = "notInitialized",
|
|
502
|
+
backupMode = "backupMode"
|
|
503
|
+
}
|
|
504
|
+
type UnavailableCapability = 'no-capability' | 'no-support' | 'update-required' | 'trezor-connect-outdated';
|
|
505
|
+
type UnavailableCapabilities = {
|
|
506
|
+
[key: string]: UnavailableCapability;
|
|
648
507
|
};
|
|
649
|
-
type
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
508
|
+
type KnownDevice = {
|
|
509
|
+
connectId: string | null;
|
|
510
|
+
uuid: string;
|
|
511
|
+
deviceId: string | null;
|
|
512
|
+
deviceType: IDeviceType | null;
|
|
513
|
+
commType: OneKeyDeviceCommType | null;
|
|
514
|
+
path: string;
|
|
515
|
+
label: string;
|
|
516
|
+
bleName: string | null;
|
|
517
|
+
name: string;
|
|
518
|
+
error?: typeof undefined;
|
|
519
|
+
mode: EOneKeyDeviceMode;
|
|
520
|
+
features?: Features;
|
|
521
|
+
sessionId?: string | null;
|
|
522
|
+
unavailableCapabilities: UnavailableCapabilities;
|
|
523
|
+
bleFirmwareVersion: IVersionArray | null;
|
|
524
|
+
firmwareVersion: IVersionArray | null;
|
|
525
|
+
instanceId?: string;
|
|
526
|
+
sdkInstanceId?: string;
|
|
527
|
+
createdAt?: number;
|
|
654
528
|
};
|
|
655
|
-
type
|
|
656
|
-
|
|
657
|
-
|
|
529
|
+
type SearchDevice = {
|
|
530
|
+
connectId: string | null;
|
|
531
|
+
uuid: string;
|
|
532
|
+
deviceId: string | null;
|
|
533
|
+
deviceType: IDeviceType;
|
|
534
|
+
name: string;
|
|
535
|
+
commType: OneKeyDeviceCommType;
|
|
536
|
+
};
|
|
537
|
+
type Device = KnownDevice;
|
|
538
|
+
type DeviceFeaturesProtocol = 'V1' | 'V2' | 'unknown';
|
|
539
|
+
type DeviceFeaturesMode = 'normal' | 'bootloader' | 'notInitialized' | 'backupMode' | 'unknown';
|
|
540
|
+
type DeviceFeaturesVerify = {
|
|
541
|
+
firmwareBuildId?: string;
|
|
542
|
+
firmwareHash?: string;
|
|
543
|
+
bootloaderBuildId?: string;
|
|
544
|
+
bootloaderHash?: string;
|
|
545
|
+
boardBuildId?: string;
|
|
546
|
+
boardHash?: string;
|
|
547
|
+
bleBuildId?: string;
|
|
548
|
+
bleHash?: string;
|
|
549
|
+
se01BuildId?: string;
|
|
550
|
+
se01Hash?: string;
|
|
551
|
+
se02BuildId?: string;
|
|
552
|
+
se02Hash?: string;
|
|
553
|
+
se03BuildId?: string;
|
|
554
|
+
se03Hash?: string;
|
|
555
|
+
se04BuildId?: string;
|
|
556
|
+
se04Hash?: string;
|
|
557
|
+
se01BootBuildId?: string;
|
|
558
|
+
se01BootHash?: string;
|
|
559
|
+
se02BootBuildId?: string;
|
|
560
|
+
se02BootHash?: string;
|
|
561
|
+
se03BootBuildId?: string;
|
|
562
|
+
se03BootHash?: string;
|
|
563
|
+
se04BootBuildId?: string;
|
|
564
|
+
se04BootHash?: string;
|
|
565
|
+
};
|
|
566
|
+
type DeviceFeaturesRaw = {
|
|
567
|
+
protocolV1Features?: Messages.Features;
|
|
568
|
+
protocolV1OneKeyFeatures?: OnekeyFeatures;
|
|
569
|
+
protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
|
|
570
|
+
};
|
|
571
|
+
type Features = {
|
|
572
|
+
protocol: DeviceFeaturesProtocol;
|
|
573
|
+
protocolVersion?: number | null;
|
|
574
|
+
deviceType: IDeviceType;
|
|
575
|
+
firmwareType: EFirmwareType;
|
|
576
|
+
model: string | null;
|
|
577
|
+
vendor: string | null;
|
|
578
|
+
deviceId: string | null;
|
|
579
|
+
serialNo: string;
|
|
580
|
+
label: string | null;
|
|
581
|
+
bleName: string | null;
|
|
582
|
+
capabilities: Array<number | string>;
|
|
583
|
+
mode: DeviceFeaturesMode;
|
|
584
|
+
initialized: boolean | null;
|
|
585
|
+
bootloaderMode: boolean | null;
|
|
586
|
+
unlocked: boolean | null;
|
|
587
|
+
firmwarePresent: boolean | null;
|
|
588
|
+
passphraseProtection: boolean | null;
|
|
589
|
+
pinProtection: boolean | null;
|
|
590
|
+
backupRequired: boolean | null;
|
|
591
|
+
noBackup: boolean | null;
|
|
592
|
+
unfinishedBackup: boolean | null;
|
|
593
|
+
recoveryMode: boolean | null;
|
|
594
|
+
language: string | null;
|
|
595
|
+
bleEnabled: boolean | null;
|
|
596
|
+
sdCardPresent: boolean | null;
|
|
597
|
+
sdProtection: boolean | null;
|
|
598
|
+
wipeCodeProtection: boolean | null;
|
|
599
|
+
passphraseAlwaysOnDevice: boolean | null;
|
|
600
|
+
safetyChecks: string | null;
|
|
601
|
+
autoLockDelayMs: number | null;
|
|
602
|
+
displayRotation: number | null;
|
|
603
|
+
experimentalFeatures: boolean | null;
|
|
604
|
+
firmwareVersion: string | null;
|
|
605
|
+
bootloaderVersion: string | null;
|
|
606
|
+
boardVersion: string | null;
|
|
607
|
+
bleVersion: string | null;
|
|
608
|
+
se01Version?: string | null;
|
|
609
|
+
se02Version?: string | null;
|
|
610
|
+
se03Version?: string | null;
|
|
611
|
+
se04Version?: string | null;
|
|
612
|
+
se01BootVersion?: string | null;
|
|
613
|
+
se02BootVersion?: string | null;
|
|
614
|
+
se03BootVersion?: string | null;
|
|
615
|
+
se04BootVersion?: string | null;
|
|
616
|
+
seVersion?: string | null;
|
|
617
|
+
verify?: DeviceFeaturesVerify;
|
|
618
|
+
sessionId: string | null;
|
|
619
|
+
passphraseState?: string;
|
|
620
|
+
unlockedAttachPin?: boolean;
|
|
621
|
+
raw?: DeviceFeaturesRaw;
|
|
622
|
+
};
|
|
623
|
+
type OnekeyFeatures = Messages.OnekeyFeatures;
|
|
624
|
+
type IDeviceType = EDeviceType.Unknown | EDeviceType.Classic | EDeviceType.Classic1s | EDeviceType.ClassicPure | EDeviceType.Mini | EDeviceType.Touch | EDeviceType.Pro | EDeviceType.Pro2;
|
|
625
|
+
type IDeviceModel = 'model_classic' | 'model_mini' | 'model_touch' | 'model_classic1s';
|
|
626
|
+
declare const DeviceModelToTypes: {
|
|
627
|
+
[deviceModel in IDeviceModel]: IDeviceType[];
|
|
628
|
+
};
|
|
629
|
+
declare const DeviceTypeToModels: {
|
|
630
|
+
[deviceType in IDeviceType]: IDeviceModel[];
|
|
631
|
+
};
|
|
632
|
+
type IDeviceFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
|
|
633
|
+
type IDeviceBLEFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
|
|
634
|
+
type ITransportStatus = 'valid' | 'outdated';
|
|
635
|
+
type IVersionRange = {
|
|
636
|
+
min: string;
|
|
637
|
+
max?: string;
|
|
638
|
+
unsupported?: boolean;
|
|
639
|
+
};
|
|
640
|
+
type DeviceFirmwareRange = {
|
|
641
|
+
[deviceType in IDeviceType | IDeviceModel]?: IVersionRange;
|
|
642
|
+
};
|
|
643
|
+
type FeaturesNarrowing = {
|
|
644
|
+
major_version: 2;
|
|
645
|
+
fw_major: null;
|
|
646
|
+
fw_minor: null;
|
|
647
|
+
fw_patch: null;
|
|
648
|
+
bootloader_mode: true;
|
|
649
|
+
firmware_present: false;
|
|
650
|
+
} | {
|
|
651
|
+
major_version: 2;
|
|
652
|
+
fw_major: null;
|
|
653
|
+
fw_minor: null;
|
|
654
|
+
fw_patch: null;
|
|
655
|
+
bootloader_mode: null;
|
|
656
|
+
firmware_present: null;
|
|
657
|
+
} | {
|
|
658
|
+
major_version: 2;
|
|
659
|
+
fw_major: 2;
|
|
660
|
+
fw_minor: number;
|
|
661
|
+
fw_patch: number;
|
|
662
|
+
bootloader_mode: true;
|
|
663
|
+
firmware_present: true;
|
|
664
|
+
} | {
|
|
665
|
+
major_version: 1;
|
|
666
|
+
fw_major: null;
|
|
667
|
+
fw_minor: null;
|
|
668
|
+
fw_patch: null;
|
|
669
|
+
bootloader_mode: true;
|
|
670
|
+
firmware_present: false;
|
|
671
|
+
} | {
|
|
672
|
+
major_version: 1;
|
|
673
|
+
fw_major: null;
|
|
674
|
+
fw_minor: null;
|
|
675
|
+
fw_patch: null;
|
|
676
|
+
bootloader_mode: true;
|
|
677
|
+
firmware_present: true;
|
|
678
|
+
};
|
|
679
|
+
type StrictFeatures = Features & FeaturesNarrowing;
|
|
680
|
+
type SupportFeatureType = {
|
|
681
|
+
support: boolean;
|
|
682
|
+
require?: string;
|
|
683
|
+
};
|
|
684
|
+
type SupportFeatures = {
|
|
685
|
+
inputPinOnSoftware: SupportFeatureType;
|
|
686
|
+
modifyHomescreen: SupportFeatureType;
|
|
658
687
|
};
|
|
659
688
|
|
|
660
|
-
type
|
|
661
|
-
|
|
689
|
+
type transportEnv = 'node' | 'web' | 'webextension' | 'electron' | 'react-native' | 'webusb' | 'desktop-webusb' | 'desktop-web-ble' | 'emulator' | 'lowlevel' | 'node-usb';
|
|
690
|
+
type ConnectSettings = {
|
|
691
|
+
connectSrc?: string;
|
|
692
|
+
debug?: boolean;
|
|
693
|
+
transportReconnect?: boolean;
|
|
694
|
+
lazyLoad?: boolean;
|
|
695
|
+
origin?: string;
|
|
696
|
+
parentOrigin?: string;
|
|
697
|
+
configSrc: string;
|
|
698
|
+
iframeSrc: string;
|
|
699
|
+
version: string;
|
|
700
|
+
priority: number;
|
|
701
|
+
trustedHost: boolean;
|
|
702
|
+
supportedBrowser?: boolean;
|
|
703
|
+
env: transportEnv;
|
|
704
|
+
timestamp: number;
|
|
705
|
+
isFrame?: boolean;
|
|
706
|
+
preRelease?: boolean;
|
|
707
|
+
fetchConfig?: boolean;
|
|
708
|
+
extension?: string;
|
|
709
|
+
configFetcher?: (url: string) => Promise<RemoteConfigResponse | null>;
|
|
662
710
|
};
|
|
663
|
-
type
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
711
|
+
type IVersionArray = [number, number, number];
|
|
712
|
+
type ILocale = 'zh-CN' | 'en-US';
|
|
713
|
+
type IFirmwareReleaseInfo = {
|
|
714
|
+
required: boolean;
|
|
715
|
+
url: string;
|
|
716
|
+
firmwareType?: EFirmwareType;
|
|
717
|
+
resource?: string;
|
|
718
|
+
fullResource?: string;
|
|
719
|
+
fullResourceRange?: string[];
|
|
720
|
+
bootloaderResource?: string;
|
|
721
|
+
bootloaderVersion?: IVersionArray;
|
|
722
|
+
displayBootloaderVersion?: IVersionArray;
|
|
723
|
+
bootloaderRelatedFirmwareVersion?: IVersionArray;
|
|
724
|
+
bootloaderChangelog?: {
|
|
725
|
+
[k in ILocale]: string;
|
|
726
|
+
};
|
|
727
|
+
fingerprint: string;
|
|
728
|
+
version: IVersionArray;
|
|
729
|
+
changelog: {
|
|
730
|
+
[k in ILocale]: string;
|
|
731
|
+
};
|
|
671
732
|
};
|
|
672
|
-
type
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
733
|
+
type IBLEFirmwareReleaseInfo = {
|
|
734
|
+
required: boolean;
|
|
735
|
+
url: string;
|
|
736
|
+
webUpdate: string;
|
|
737
|
+
fingerprint: string;
|
|
738
|
+
fingerprintWeb: string;
|
|
739
|
+
version: IVersionArray;
|
|
740
|
+
changelog: {
|
|
741
|
+
[k in ILocale]: string;
|
|
742
|
+
};
|
|
676
743
|
};
|
|
677
|
-
type
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
readonly: boolean;
|
|
687
|
-
hidden: boolean;
|
|
688
|
-
system: boolean;
|
|
689
|
-
archive: boolean;
|
|
690
|
-
directory: boolean;
|
|
744
|
+
type IKnownDevice = Exclude<IDeviceType, 'unknown' | 'pro2'>;
|
|
745
|
+
type DeviceTypeMap = {
|
|
746
|
+
[k in IKnownDevice]: {
|
|
747
|
+
firmware: IFirmwareReleaseInfo[];
|
|
748
|
+
'firmware-v2'?: IFirmwareReleaseInfo[];
|
|
749
|
+
'firmware-v8'?: IFirmwareReleaseInfo[];
|
|
750
|
+
'firmware-btc-v8'?: IFirmwareReleaseInfo[];
|
|
751
|
+
ble: IBLEFirmwareReleaseInfo[];
|
|
752
|
+
};
|
|
691
753
|
};
|
|
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;
|
|
754
|
+
type AssetsMap = {
|
|
755
|
+
bridge: {
|
|
756
|
+
version: IVersionArray;
|
|
757
|
+
linux32Rpm: string;
|
|
758
|
+
linux64Rpm: string;
|
|
759
|
+
linux32Deb: string;
|
|
760
|
+
linux64Deb: string;
|
|
761
|
+
win: string;
|
|
762
|
+
mac: string;
|
|
763
|
+
sha256sumAsc: string;
|
|
764
|
+
changelog: {
|
|
765
|
+
[k in ILocale]: string;
|
|
766
|
+
};
|
|
767
|
+
};
|
|
777
768
|
};
|
|
769
|
+
type RemoteConfigResponse = {
|
|
770
|
+
bridge: AssetsMap['bridge'];
|
|
771
|
+
} & DeviceTypeMap;
|
|
778
772
|
|
|
779
773
|
declare function init(settings: Partial<ConnectSettings>, lowLevelApi?: LowLevelCoreApi, pulgin?: LowlevelTransportSharedPlugin): Promise<boolean>;
|
|
780
774
|
declare function updateSettings(settings: Partial<ConnectSettings>): Promise<boolean>;
|
|
@@ -841,6 +835,87 @@ declare function searchDevices(params?: CommonParams): Response<SearchDevice[]>;
|
|
|
841
835
|
|
|
842
836
|
declare function getFeatures(connectId?: string, params?: CommonParams): Response<Features>;
|
|
843
837
|
|
|
838
|
+
type DeviceInfoProtocol = ProtocolType | 'unknown';
|
|
839
|
+
type DeviceInfoSource = 'features' | 'protocolV1OneKeyFeatures' | 'deviceInfo';
|
|
840
|
+
type DeviceInfoScope = 'basic' | 'versions' | 'verify' | 'full';
|
|
841
|
+
type GetDeviceInfoParams = {
|
|
842
|
+
scope?: DeviceInfoScope;
|
|
843
|
+
refresh?: boolean;
|
|
844
|
+
includeRaw?: boolean;
|
|
845
|
+
};
|
|
846
|
+
type DeviceInfoMode = 'normal' | 'bootloader' | 'notInitialized' | 'unknown';
|
|
847
|
+
type DeviceInfoStatus = {
|
|
848
|
+
mode: DeviceInfoMode;
|
|
849
|
+
initialized: boolean | null;
|
|
850
|
+
bootloaderMode: boolean | null;
|
|
851
|
+
unlocked: boolean | null;
|
|
852
|
+
passphraseProtection: boolean | null;
|
|
853
|
+
backupRequired: boolean | null;
|
|
854
|
+
noBackup: boolean | null;
|
|
855
|
+
language: string | null;
|
|
856
|
+
bleEnabled: boolean | null;
|
|
857
|
+
};
|
|
858
|
+
type DeviceProfileVersions = {
|
|
859
|
+
firmware: string | null;
|
|
860
|
+
bootloader: string | null;
|
|
861
|
+
board: string | null;
|
|
862
|
+
ble: string | null;
|
|
863
|
+
se01?: string | null;
|
|
864
|
+
se02?: string | null;
|
|
865
|
+
se03?: string | null;
|
|
866
|
+
se04?: string | null;
|
|
867
|
+
se01Boot?: string | null;
|
|
868
|
+
se02Boot?: string | null;
|
|
869
|
+
se03Boot?: string | null;
|
|
870
|
+
se04Boot?: string | null;
|
|
871
|
+
};
|
|
872
|
+
type DeviceProfileVerify = {
|
|
873
|
+
firmwareBuildId?: string;
|
|
874
|
+
firmwareHash?: string;
|
|
875
|
+
bootloaderBuildId?: string;
|
|
876
|
+
bootloaderHash?: string;
|
|
877
|
+
boardBuildId?: string;
|
|
878
|
+
boardHash?: string;
|
|
879
|
+
bleBuildId?: string;
|
|
880
|
+
bleHash?: string;
|
|
881
|
+
se01BuildId?: string;
|
|
882
|
+
se01Hash?: string;
|
|
883
|
+
se02BuildId?: string;
|
|
884
|
+
se02Hash?: string;
|
|
885
|
+
se03BuildId?: string;
|
|
886
|
+
se03Hash?: string;
|
|
887
|
+
se04BuildId?: string;
|
|
888
|
+
se04Hash?: string;
|
|
889
|
+
se01BootBuildId?: string;
|
|
890
|
+
se01BootHash?: string;
|
|
891
|
+
se02BootBuildId?: string;
|
|
892
|
+
se02BootHash?: string;
|
|
893
|
+
se03BootBuildId?: string;
|
|
894
|
+
se03BootHash?: string;
|
|
895
|
+
se04BootBuildId?: string;
|
|
896
|
+
se04BootHash?: string;
|
|
897
|
+
};
|
|
898
|
+
type DeviceProfileRaw = {
|
|
899
|
+
features?: Features;
|
|
900
|
+
protocolV1OneKeyFeatures?: OnekeyFeatures;
|
|
901
|
+
protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
|
|
902
|
+
};
|
|
903
|
+
type DeviceProfile = {
|
|
904
|
+
protocol: DeviceInfoProtocol;
|
|
905
|
+
sources: DeviceInfoSource[];
|
|
906
|
+
deviceType: IDeviceType;
|
|
907
|
+
firmwareType: EFirmwareType;
|
|
908
|
+
deviceId: string;
|
|
909
|
+
serialNo: string;
|
|
910
|
+
label: string | null;
|
|
911
|
+
bleName: string | null;
|
|
912
|
+
status: DeviceInfoStatus;
|
|
913
|
+
versions: DeviceProfileVersions;
|
|
914
|
+
verify?: DeviceProfileVerify;
|
|
915
|
+
raw?: DeviceProfileRaw;
|
|
916
|
+
};
|
|
917
|
+
declare function getDeviceInfo(connectId?: string, params?: CommonParams & GetDeviceInfoParams): Response<DeviceProfile>;
|
|
918
|
+
|
|
844
919
|
declare function getOnekeyFeatures(connectId?: string, params?: CommonParams): Response<OnekeyFeatures>;
|
|
845
920
|
|
|
846
921
|
type GetPassphraseStatePayload = {
|
|
@@ -1042,7 +1117,7 @@ type DeviceUploadResourceResponse = Success$1 & {
|
|
|
1042
1117
|
declare function deviceUploadResource(connectId: string, params: CommonParams & DeviceUploadResourceParams): Response<DeviceUploadResourceResponse>;
|
|
1043
1118
|
|
|
1044
1119
|
type DeviceSupportFeatures = SupportFeatures & {
|
|
1045
|
-
device: Device
|
|
1120
|
+
device: Device | null;
|
|
1046
1121
|
};
|
|
1047
1122
|
declare function deviceSupportFeatures(connectId?: string): Response<DeviceSupportFeatures>;
|
|
1048
1123
|
|
|
@@ -3249,7 +3324,7 @@ interface UiRequestFirmwareProgressing {
|
|
|
3249
3324
|
type UiRequestDeviceAction = {
|
|
3250
3325
|
type: typeof UI_REQUEST.REQUEST_PIN;
|
|
3251
3326
|
payload: {
|
|
3252
|
-
device: Device
|
|
3327
|
+
device: Device;
|
|
3253
3328
|
type?: Messages.PinMatrixRequestType | 'ButtonRequest_PinEntry' | 'ButtonRequest_AttachPin';
|
|
3254
3329
|
};
|
|
3255
3330
|
};
|
|
@@ -3260,7 +3335,7 @@ interface UiRequestButton {
|
|
|
3260
3335
|
interface UiRequestPassphrase {
|
|
3261
3336
|
type: typeof UI_REQUEST.REQUEST_PASSPHRASE;
|
|
3262
3337
|
payload: {
|
|
3263
|
-
device: Device
|
|
3338
|
+
device: Device;
|
|
3264
3339
|
passphraseState?: string;
|
|
3265
3340
|
existsAttachPinUser?: boolean;
|
|
3266
3341
|
};
|
|
@@ -3268,20 +3343,20 @@ interface UiRequestPassphrase {
|
|
|
3268
3343
|
interface UiRequestPassphraseOnDevice {
|
|
3269
3344
|
type: typeof UI_REQUEST.REQUEST_PASSPHRASE_ON_DEVICE;
|
|
3270
3345
|
payload: {
|
|
3271
|
-
device: Device
|
|
3346
|
+
device: Device;
|
|
3272
3347
|
passphraseState?: string;
|
|
3273
3348
|
};
|
|
3274
3349
|
}
|
|
3275
3350
|
interface UiRequestSelectDeviceInBootloaderForWebDevice {
|
|
3276
3351
|
type: typeof UI_REQUEST.REQUEST_DEVICE_IN_BOOTLOADER_FOR_WEB_DEVICE;
|
|
3277
3352
|
payload: {
|
|
3278
|
-
device: Device
|
|
3353
|
+
device: Device;
|
|
3279
3354
|
};
|
|
3280
3355
|
}
|
|
3281
3356
|
interface UiRequestSelectDeviceForSwitchFirmwareWebDevice {
|
|
3282
3357
|
type: typeof UI_REQUEST.REQUEST_DEVICE_FOR_SWITCH_FIRMWARE_WEB_DEVICE;
|
|
3283
3358
|
payload: {
|
|
3284
|
-
device: Device
|
|
3359
|
+
device: Device;
|
|
3285
3360
|
};
|
|
3286
3361
|
}
|
|
3287
3362
|
interface FirmwareProcessing {
|
|
@@ -3294,7 +3369,7 @@ type IFirmwareUpdateProgressType = 'transferData' | 'installingFirmware';
|
|
|
3294
3369
|
interface FirmwareProgress {
|
|
3295
3370
|
type: typeof UI_REQUEST.FIRMWARE_PROGRESS;
|
|
3296
3371
|
payload: {
|
|
3297
|
-
device: Device
|
|
3372
|
+
device: Device;
|
|
3298
3373
|
progress: number;
|
|
3299
3374
|
progressType: IFirmwareUpdateProgressType;
|
|
3300
3375
|
transferredBytes?: number;
|
|
@@ -3306,7 +3381,7 @@ interface FirmwareProgress {
|
|
|
3306
3381
|
interface FirmwareTip {
|
|
3307
3382
|
type: typeof UI_REQUEST.FIRMWARE_TIP;
|
|
3308
3383
|
payload: {
|
|
3309
|
-
device: Device
|
|
3384
|
+
device: Device;
|
|
3310
3385
|
data: {
|
|
3311
3386
|
message: string;
|
|
3312
3387
|
};
|
|
@@ -3325,7 +3400,7 @@ interface DeviceProgress {
|
|
|
3325
3400
|
interface PreviousAddressResult {
|
|
3326
3401
|
type: typeof UI_REQUEST.PREVIOUS_ADDRESS_RESULT;
|
|
3327
3402
|
payload: {
|
|
3328
|
-
device: Device
|
|
3403
|
+
device: Device;
|
|
3329
3404
|
data: {
|
|
3330
3405
|
address?: string;
|
|
3331
3406
|
path?: string;
|
|
@@ -3578,7 +3653,7 @@ type UiPromiseResponse = UiResponseEvent | {
|
|
|
3578
3653
|
};
|
|
3579
3654
|
type UiPromise<T extends UiPromiseResponse['type']> = Deferred<Extract<UiPromiseResponse, {
|
|
3580
3655
|
type: T;
|
|
3581
|
-
}>, T, Device>;
|
|
3656
|
+
}>, T, Device$1>;
|
|
3582
3657
|
|
|
3583
3658
|
declare const LogBlockEvent: Set<string>;
|
|
3584
3659
|
declare function getLogBlockLabel(message: unknown): string | undefined;
|
|
@@ -3654,7 +3729,7 @@ declare const normalizeVersionArray: (version: number[]) => number[];
|
|
|
3654
3729
|
declare const versionSplit: (version: string) => number[];
|
|
3655
3730
|
declare const versionCompare: (a: string | number[], b: string | number[]) => 0 | 1 | -1;
|
|
3656
3731
|
|
|
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">;
|
|
3732
|
+
declare function patchFeatures(response: DefaultMessageResponse): 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<"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<"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">;
|
|
3658
3733
|
|
|
3659
3734
|
declare const getDeviceType: (features?: Features) => IDeviceType;
|
|
3660
3735
|
declare const getDeviceTypeByBleName: (name?: string) => IDeviceType;
|
|
@@ -3787,4 +3862,4 @@ declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, can
|
|
|
3787
3862
|
declare const HardwareSDKLowLevel: ({ init, call, dispose, eventEmitter, addHardwareGlobalEventListener, uiResponse, cancel, updateSettings, switchTransport, }: LowLevelInjectApi) => LowLevelCoreApi;
|
|
3788
3863
|
declare const HardwareTopLevelSdk: () => CoreApi;
|
|
3789
3864
|
|
|
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
|
|
3865
|
+
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, 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, 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 };
|