@onekeyfe/hd-core 1.2.0-alpha.0 → 1.2.0-alpha.1

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.
Files changed (84) hide show
  1. package/__tests__/protocol-v2.test.ts +147 -264
  2. package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
  3. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  4. package/dist/api/FirmwareUpdateV4.d.ts +2 -2
  5. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  6. package/dist/api/GetDeviceInfo.d.ts.map +1 -1
  7. package/dist/api/GetFeatures.d.ts +1 -1
  8. package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
  9. package/dist/api/GetPassphraseState.d.ts +4 -4
  10. package/dist/api/device/DeviceUnlock.d.ts +1 -1
  11. package/dist/api/firmware/bootloaderHelper.d.ts.map +1 -1
  12. package/dist/api/firmware/uploadFirmware.d.ts.map +1 -1
  13. package/dist/api/protocol-v2/helpers.d.ts +2 -3
  14. package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
  15. package/dist/constants/index.d.ts +2 -1
  16. package/dist/constants/index.d.ts.map +1 -1
  17. package/dist/core/index.d.ts.map +1 -1
  18. package/dist/data-manager/connectSettings.d.ts.map +1 -1
  19. package/dist/device/Device.d.ts +11 -15
  20. package/dist/device/Device.d.ts.map +1 -1
  21. package/dist/deviceProfile/buildDeviceFeatures.d.ts +6 -0
  22. package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -0
  23. package/dist/deviceProfile/buildDeviceProfile.d.ts +3 -4
  24. package/dist/deviceProfile/buildDeviceProfile.d.ts.map +1 -1
  25. package/dist/deviceProfile/index.d.ts +1 -1
  26. package/dist/deviceProfile/index.d.ts.map +1 -1
  27. package/dist/index.d.ts +579 -502
  28. package/dist/index.js +881 -931
  29. package/dist/protocols/protocol-v2/features.d.ts +2 -2
  30. package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
  31. package/dist/types/api/getDeviceInfo.d.ts +2 -2
  32. package/dist/types/api/getDeviceInfo.d.ts.map +1 -1
  33. package/dist/types/api/getPassphraseState.d.ts +4 -4
  34. package/dist/types/api/getPassphraseState.d.ts.map +1 -1
  35. package/dist/types/api/protocolV2.d.ts +3 -3
  36. package/dist/types/api/protocolV2.d.ts.map +1 -1
  37. package/dist/types/device.d.ts +87 -8
  38. package/dist/types/device.d.ts.map +1 -1
  39. package/dist/types/settings.d.ts +1 -0
  40. package/dist/types/settings.d.ts.map +1 -1
  41. package/dist/utils/capabilitieUtils.d.ts.map +1 -1
  42. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  43. package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
  44. package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
  45. package/dist/utils/findDefectiveBatchDevice.d.ts +1 -1
  46. package/dist/utils/patch.d.ts +1 -1
  47. package/dist/utils/patch.d.ts.map +1 -1
  48. package/package.json +4 -4
  49. package/src/api/FirmwareUpdateV2.ts +9 -2
  50. package/src/api/FirmwareUpdateV3.ts +2 -1
  51. package/src/api/FirmwareUpdateV4.ts +24 -31
  52. package/src/api/GetDeviceInfo.ts +6 -13
  53. package/src/api/GetOnekeyFeatures.ts +3 -14
  54. package/src/api/GetPassphraseState.ts +4 -4
  55. package/src/api/firmware/bootloaderHelper.ts +3 -2
  56. package/src/api/firmware/getBinary.ts +1 -1
  57. package/src/api/firmware/releaseHelper.ts +3 -3
  58. package/src/api/firmware/uploadFirmware.ts +5 -2
  59. package/src/api/protocol-v2/DeviceReboot.ts +3 -3
  60. package/src/api/protocol-v2/helpers.ts +1 -26
  61. package/src/constants/index.ts +10 -1
  62. package/src/core/index.ts +5 -7
  63. package/src/data/messages/messages-protocol-v2.json +329 -323
  64. package/src/data-manager/DataManager.ts +4 -4
  65. package/src/data-manager/connectSettings.ts +6 -0
  66. package/src/device/Device.ts +86 -241
  67. package/src/device/DevicePool.ts +9 -9
  68. package/src/deviceProfile/buildDeviceFeatures.ts +368 -0
  69. package/src/deviceProfile/buildDeviceProfile.ts +101 -155
  70. package/src/deviceProfile/index.ts +4 -1
  71. package/src/protocols/protocol-v2/features.ts +14 -16
  72. package/src/types/api/getDeviceInfo.ts +2 -2
  73. package/src/types/api/getPassphraseState.ts +4 -4
  74. package/src/types/api/protocolV2.ts +2 -3
  75. package/src/types/device.ts +97 -34
  76. package/src/types/settings.ts +5 -0
  77. package/src/utils/capabilitieUtils.ts +1 -2
  78. package/src/utils/deviceFeaturesUtils.ts +11 -17
  79. package/src/utils/deviceInfoUtils.ts +11 -29
  80. package/src/utils/deviceVersionUtils.ts +7 -25
  81. package/src/utils/findDefectiveBatchDevice.ts +6 -6
  82. package/dist/deviceProfile/legacyFeaturesView.d.ts +0 -5
  83. package/dist/deviceProfile/legacyFeaturesView.d.ts.map +0 -1
  84. 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 * as _onekeyfe_hd_transport from '@onekeyfe/hd-transport';
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';
4
- export { Messages as PROTO, TonSignDataType } from '@onekeyfe/hd-transport';
2
+ import { DevFirmwareTargetType, DevRebootType, DevFirmwareTarget, Messages, Transport, TransportCallOptions, OneKeyDeviceInfo, ProtocolV2DeviceInfo, Success as Success$1, LowlevelTransportSharedPlugin, ProtoVersion, OnboardingStatus, DevFirmwareUpdateStatus, 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';
3
+ export { Success as DeviceSuccess, HDNodeType, Messages as PROTO, ResourceType, TonSignDataType, TonWalletVersion } from '@onekeyfe/hd-transport';
5
4
  import * as _onekeyfe_hd_shared from '@onekeyfe/hd-shared';
6
- import { HardwareConnectProtocol, EFirmwareType, EDeviceType, Deferred } from '@onekeyfe/hd-shared';
5
+ import { HardwareConnectProtocol, Deferred, EFirmwareType, EDeviceType } from '@onekeyfe/hd-shared';
7
6
 
8
7
  interface CommonParams {
9
8
  keepSession?: boolean;
@@ -39,7 +38,7 @@ type Response<T> = Promise<Success<T> | Unsuccessful>;
39
38
 
40
39
  declare const safeThrowError: (error: any) => never;
41
40
 
42
- type RebootTypeInput = DevRebootType | DeviceRebootType | keyof typeof DevRebootType | keyof typeof DeviceRebootType | string | number;
41
+ type RebootTypeInput = DevRebootType | keyof typeof DevRebootType | string | number;
43
42
  type DeviceRebootParams = {
44
43
  rebootType?: RebootTypeInput;
45
44
  reboot_type?: RebootTypeInput;
@@ -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$1 | null;
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>;
@@ -532,32 +251,32 @@ declare class Device extends EventEmitter {
532
251
  getCurrentDeviceType(): IDeviceType;
533
252
  getCurrentDeviceId(): string | undefined;
534
253
  getCurrentSerialNo(): string;
254
+ getConnectId(): string;
535
255
  getCurrentBleName(): string | null;
536
256
  getCurrentLabel(): string | null;
537
257
  getCurrentPassphraseProtection(): boolean | null | undefined;
538
258
  getCurrentFirmwareType(): _onekeyfe_hd_shared.EFirmwareType;
539
259
  getCurrentFirmwareVersionString(): string;
540
260
  getCurrentBLEFirmwareVersionString(): string | undefined;
541
- getCurrentSafetyChecks(): "Strict" | "PromptAlways" | "PromptTemporarily" | null | undefined;
261
+ getCurrentSafetyChecks(): string | null | undefined;
542
262
  getCurrentMethodVersionRange(getVersionRange: (deviceModel: IDeviceType | IDeviceModel) => IVersionRange | undefined): IVersionRange | undefined;
543
263
  supportNewPassphrase(): SupportFeatureType;
544
264
  supportInputPinOnSoftware(): SupportFeatureType;
545
265
  supportModifyHomescreen(): SupportFeatureType;
546
266
  private generateStateKey;
267
+ private getSessionCacheDeviceKey;
547
268
  getInternalState(_deviceId?: string): string | undefined;
548
- updateInternalState(enablePassphrase: boolean, passphraseState: string | undefined, deviceId: string, sessionId?: string | null, featuresSessionId?: string | null): void;
269
+ updateInternalState(enablePassphrase: boolean, passphraseState: string | undefined, deviceId: string | undefined, sessionId?: string | null, featuresSessionId?: string | null): void;
549
270
  private setInternalState;
550
271
  clearInternalState(_deviceId?: string): void;
551
272
  initialize(options?: InitOptions): Promise<void>;
552
273
  private _initializeProtocolV2;
553
274
  private _refreshProtocolV2Status;
554
- getFeatures(): Promise<_onekeyfe_hd_transport.Features>;
555
- _updateFeatures(feat: Features, initSession?: boolean): void;
556
- updateProfile(profile: DeviceProfile | undefined): void;
557
- applyProfileUpdate(next: DeviceProfile, deviceInfo?: ProtocolV2DeviceInfo): DeviceProfile;
558
- private updateProtocolV2Features;
275
+ getFeatures(): Promise<Features | undefined>;
276
+ _updateFeatures(protoFeatures: Messages.Features | Features, initSession?: boolean): void;
277
+ updateProtocolV2Features(deviceInfo?: ProtocolV2DeviceInfo): Features;
559
278
  updateDescriptor(descriptor: OneKeyDeviceInfo, forceUpdate?: boolean): void;
560
- updateFromCache(device: Device): void;
279
+ updateFromCache(device: Device$1): void;
561
280
  run(fn?: () => Promise<void>, options?: RunOptions): Promise<void>;
562
281
  _runInner<T>(fn: (() => Promise<T>) | undefined, options: RunOptions): Promise<undefined>;
563
282
  interruptionFromOutside(): Promise<void>;
@@ -580,201 +299,478 @@ declare class Device extends EventEmitter {
580
299
  checkDeviceId(deviceId: string): boolean;
581
300
  lockDevice(): Promise<Success$1>;
582
301
  supportUnlockVersionRange(): DeviceFirmwareRange;
583
- unlockDevice(): Promise<_onekeyfe_hd_transport.Features>;
302
+ unlockDevice(): Promise<Features | undefined>;
584
303
  checkPassphraseStateSafety(passphraseState?: string, useEmptyPassphrase?: boolean, skipPassphraseCheck?: boolean): Promise<boolean>;
585
304
  }
586
305
 
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;
306
+ declare function generateSdkInstanceId(): string;
307
+ declare function generateInstanceId(type: string, sdkInstanceId?: string): string;
308
+ interface RequestContext {
309
+ responseID: number;
310
+ sdkInstanceId?: string;
311
+ methodName: string;
312
+ connectId?: string;
313
+ deviceInstanceId?: string;
314
+ commandsInstanceId?: string;
315
+ parentResponseID?: number;
316
+ startTime: number;
317
+ endTime?: number;
318
+ status?: 'pending' | 'running' | 'success' | 'error' | 'cancelled';
319
+ error?: string;
320
+ }
321
+ interface SdkTracingContext {
322
+ sdkInstanceId: string;
323
+ createdAt: number;
324
+ activeRequests: Map<number, RequestContext>;
325
+ }
326
+ declare function createSdkTracingContext(): SdkTracingContext;
327
+ declare function createRequestContext(responseID: number, methodName: string, options?: {
328
+ sdkInstanceId?: string;
329
+ connectId?: string;
330
+ deviceInstanceId?: string;
331
+ commandsInstanceId?: string;
332
+ parentResponseID?: number;
333
+ }): RequestContext;
334
+ declare function updateRequestContext(responseID: number, updates: Partial<RequestContext>): void;
335
+ declare function completeRequestContext(responseID: number, error?: Error): void;
336
+ declare function getActiveRequestsByDeviceInstance(deviceInstanceId: string): RequestContext[];
337
+ declare function formatRequestContext(context: RequestContext): string;
338
+ declare function cleanupSdkInstance(sdkInstanceId: string): void;
339
+
340
+ declare class Core extends EventEmitter {
341
+ private tracingContext;
342
+ readonly sdkInstanceId: string;
343
+ private requestQueue;
344
+ private prePendingCallPromise;
345
+ private methodSynchronize;
346
+ constructor();
347
+ private getCoreContext;
348
+ handleMessage(message: CoreMessage): Promise<any>;
349
+ dispose(): void;
350
+ }
351
+ declare const init$1: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin) => Promise<Core | undefined>;
352
+ declare const switchTransport: ({ env, Transport, plugin, }: {
353
+ env: ConnectSettings['env'];
354
+ Transport: any;
355
+ plugin?: LowlevelTransportSharedPlugin | undefined;
356
+ }) => void;
357
+
358
+ type DeviceGetDeviceInfoTargets = {
359
+ hw?: boolean;
360
+ fw?: boolean;
361
+ bt?: boolean;
362
+ se1?: boolean;
363
+ se2?: boolean;
364
+ se3?: boolean;
365
+ se4?: boolean;
366
+ status?: boolean;
367
+ };
368
+ type DeviceGetDeviceInfoTypes = {
369
+ version?: boolean;
370
+ build_id?: boolean;
371
+ hash?: boolean;
372
+ specific?: boolean;
373
+ };
374
+ type DeviceGetDeviceInfoParams = {
375
+ targets?: DeviceGetDeviceInfoTargets;
376
+ types?: DeviceGetDeviceInfoTypes;
377
+ };
378
+
379
+ type FileOpSuccess = {
380
+ message?: string;
381
+ };
382
+ type FileInfo = {
383
+ path: string;
384
+ offset: number;
385
+ total_size: number;
386
+ data?: Uint8Array;
387
+ data_hash?: number;
388
+ processed_byte?: number;
389
+ chunks?: number;
390
+ };
391
+ type DirInfo = {
392
+ path: string;
393
+ child_dirs?: string;
394
+ child_files?: string;
395
+ };
396
+ type PathInfoResult = {
397
+ exist: boolean;
398
+ size: number;
399
+ year: number;
400
+ month: number;
401
+ day: number;
402
+ hour: number;
403
+ minute: number;
404
+ second: number;
405
+ readonly: boolean;
406
+ hidden: boolean;
407
+ system: boolean;
408
+ archive: boolean;
409
+ directory: boolean;
410
+ };
411
+ declare function getProtoVersion(connectId: string, params?: CommonParams): Response<ProtoVersion>;
412
+ declare function ping(connectId: string, params?: CommonParams & {
413
+ message?: string;
414
+ }): Response<Success$1>;
415
+ declare function deviceReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
416
+ declare function deviceGetDeviceInfo(connectId: string, params?: CommonParams & DeviceGetDeviceInfoParams): Response<ProtocolV2DeviceInfo>;
417
+ declare function deviceGetOnboardingStatus(connectId: string, params?: CommonParams): Response<OnboardingStatus>;
418
+ declare function deviceFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DevFirmwareUpdateStatus>;
419
+ declare function deviceGetFirmwareUpdateStatus(connectId: string, params?: CommonParams): Response<DevFirmwareUpdateStatus>;
420
+ declare function devReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
421
+ declare function devGetDeviceInfo(connectId: string, params?: CommonParams & DeviceGetDeviceInfoParams): Response<ProtocolV2DeviceInfo>;
422
+ declare function devFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DevFirmwareUpdateStatus>;
423
+ declare function devGetFirmwareUpdateStatus(connectId: string, params?: CommonParams): Response<DevFirmwareUpdateStatus>;
424
+ declare function factoryDeviceInfoSettings(connectId: string, params: FactoryDeviceInfoSettingsParams): Response<Success$1>;
425
+ declare function factoryGetDeviceInfo(connectId: string): Response<FactoryDeviceInfo>;
426
+ declare function filesystemFixPermission(connectId: string): Response<Success$1>;
427
+ declare function fileRead(connectId: string, params: {
428
+ path: string;
429
+ offset?: number;
430
+ totalSize?: number;
431
+ chunkLen?: number;
432
+ uiPercentage?: number;
433
+ }): Response<FileInfo>;
434
+ declare function fileWrite(connectId: string, params: {
435
+ path: string;
436
+ offset?: number;
437
+ totalSize?: number;
438
+ chunkSize?: number;
439
+ chunkLen?: number;
440
+ data: ArrayBuffer | Uint8Array | Blob | string;
441
+ overwrite?: boolean;
442
+ append?: boolean;
443
+ uiPercentage?: number;
444
+ timeoutMs?: number | string;
445
+ }): Response<FileInfo>;
446
+ declare function fileDelete(connectId: string, params: {
447
+ path: string;
448
+ }): Response<FileOpSuccess>;
449
+ declare function dirList(connectId: string, params: {
450
+ path: string;
451
+ depth?: number;
452
+ }): Response<DirInfo>;
453
+ declare function dirMake(connectId: string, params: {
454
+ path: string;
455
+ }): Response<FileOpSuccess>;
456
+ declare function dirRemove(connectId: string, params: {
457
+ path: string;
458
+ }): Response<FileOpSuccess>;
459
+ declare function pathInfo(connectId: string, params: {
460
+ path: string;
461
+ timeoutMs?: number | string;
462
+ }): Response<PathInfoResult>;
463
+ declare const filesystemFileRead: typeof fileRead;
464
+ declare const filesystemFileWrite: typeof fileWrite;
465
+ declare const filesystemFileDelete: typeof fileDelete;
466
+ declare const filesystemDirList: typeof dirList;
467
+ declare const filesystemDirMake: typeof dirMake;
468
+ declare const filesystemDirRemove: typeof dirRemove;
469
+ declare const filesystemPathInfoQuery: typeof pathInfo;
470
+ declare function filesystemFormat(connectId: string): Response<Success$1>;
471
+ declare function filesystemDiskControl(connectId: string, params: CommonParams & {
472
+ enable: boolean | 0 | 1;
473
+ timeoutMs?: number | string;
474
+ }): Response<Success$1>;
475
+
476
+ declare const on: <T extends string, P extends (...args: any[]) => any>(type: T, fn: P) => void;
477
+ declare const off: (type: any, fn: any) => void;
478
+ declare const removeAllListeners: (type: any) => void;
620
479
 
621
- declare class Core extends EventEmitter {
622
- private tracingContext;
623
- readonly sdkInstanceId: string;
624
- private requestQueue;
625
- private prePendingCallPromise;
626
- private methodSynchronize;
627
- constructor();
628
- private getCoreContext;
629
- handleMessage(message: CoreMessage): Promise<any>;
630
- dispose(): void;
480
+ declare function uiResponse(response: UiResponseEvent): void;
481
+
482
+ type IAddHardwareGlobalEventListener = (coreMessage: CoreMessage) => void;
483
+ interface LowLevelInjectApi {
484
+ call: CallMethod;
485
+ eventEmitter: EventEmitter$1;
486
+ init: CoreApi['init'];
487
+ dispose: CoreApi['dispose'];
488
+ uiResponse: CoreApi['uiResponse'];
489
+ cancel: CoreApi['cancel'];
490
+ updateSettings: CoreApi['updateSettings'];
491
+ switchTransport: CoreApi['switchTransport'];
492
+ addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
631
493
  }
632
- declare const init$1: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin) => Promise<Core | undefined>;
633
- declare const switchTransport: ({ env, Transport, plugin, }: {
634
- env: ConnectSettings['env'];
635
- Transport: any;
636
- plugin?: LowlevelTransportSharedPlugin | undefined;
637
- }) => void;
494
+ type LowLevelCoreApi = Omit<CoreApi, 'on' | 'off'> & {
495
+ addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
496
+ };
638
497
 
639
- type DeviceGetDeviceInfoTargets = {
640
- hw?: boolean;
641
- fw?: boolean;
642
- bt?: boolean;
643
- se1?: boolean;
644
- se2?: boolean;
645
- se3?: boolean;
646
- se4?: boolean;
647
- status?: boolean;
498
+ type DeviceStatus = 'available' | 'occupied' | 'used';
499
+ declare enum EOneKeyDeviceMode {
500
+ bootloader = "bootloader",
501
+ normal = "normal",
502
+ notInitialized = "notInitialized",
503
+ backupMode = "backupMode"
504
+ }
505
+ type UnavailableCapability = 'no-capability' | 'no-support' | 'update-required' | 'trezor-connect-outdated';
506
+ type UnavailableCapabilities = {
507
+ [key: string]: UnavailableCapability;
648
508
  };
649
- type DeviceGetDeviceInfoTypes = {
650
- version?: boolean;
651
- build_id?: boolean;
652
- hash?: boolean;
653
- specific?: boolean;
509
+ type KnownDevice = {
510
+ connectId: string | null;
511
+ uuid: string;
512
+ deviceId: string | null;
513
+ deviceType: IDeviceType | null;
514
+ commType: OneKeyDeviceCommType | null;
515
+ path: string;
516
+ label: string;
517
+ bleName: string | null;
518
+ name: string;
519
+ error?: typeof undefined;
520
+ mode: EOneKeyDeviceMode;
521
+ features?: Features;
522
+ sessionId?: string | null;
523
+ unavailableCapabilities: UnavailableCapabilities;
524
+ bleFirmwareVersion: IVersionArray | null;
525
+ firmwareVersion: IVersionArray | null;
526
+ instanceId?: string;
527
+ sdkInstanceId?: string;
528
+ createdAt?: number;
654
529
  };
655
- type DeviceGetDeviceInfoParams = {
656
- targets?: DeviceGetDeviceInfoTargets;
657
- types?: DeviceGetDeviceInfoTypes;
530
+ type SearchDevice = {
531
+ connectId: string | null;
532
+ uuid: string;
533
+ deviceId: string | null;
534
+ deviceType: IDeviceType;
535
+ name: string;
536
+ commType: OneKeyDeviceCommType;
537
+ };
538
+ type Device = KnownDevice;
539
+ type DeviceFeaturesProtocol = 'V1' | 'V2' | 'unknown';
540
+ type DeviceFeaturesMode = 'normal' | 'bootloader' | 'notInitialized' | 'backupMode' | 'unknown';
541
+ type DeviceFeaturesVerify = {
542
+ firmwareBuildId?: string;
543
+ firmwareHash?: string;
544
+ bootloaderBuildId?: string;
545
+ bootloaderHash?: string;
546
+ boardBuildId?: string;
547
+ boardHash?: string;
548
+ bleBuildId?: string;
549
+ bleHash?: string;
550
+ se01BuildId?: string;
551
+ se01Hash?: string;
552
+ se02BuildId?: string;
553
+ se02Hash?: string;
554
+ se03BuildId?: string;
555
+ se03Hash?: string;
556
+ se04BuildId?: string;
557
+ se04Hash?: string;
558
+ se01BootBuildId?: string;
559
+ se01BootHash?: string;
560
+ se02BootBuildId?: string;
561
+ se02BootHash?: string;
562
+ se03BootBuildId?: string;
563
+ se03BootHash?: string;
564
+ se04BootBuildId?: string;
565
+ se04BootHash?: string;
566
+ };
567
+ type DeviceFeaturesRaw = {
568
+ protocolV1Features?: Messages.Features;
569
+ protocolV1OneKeyFeatures?: OnekeyFeatures;
570
+ protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
571
+ };
572
+ type Features = {
573
+ protocol: DeviceFeaturesProtocol;
574
+ protocolVersion?: number | null;
575
+ deviceType: IDeviceType;
576
+ firmwareType: EFirmwareType;
577
+ model: string | null;
578
+ vendor: string | null;
579
+ deviceId: string | null;
580
+ serialNo: string;
581
+ label: string | null;
582
+ bleName: string | null;
583
+ capabilities: Array<number | string>;
584
+ mode: DeviceFeaturesMode;
585
+ initialized: boolean | null;
586
+ bootloaderMode: boolean | null;
587
+ unlocked: boolean | null;
588
+ firmwarePresent: boolean | null;
589
+ passphraseProtection: boolean | null;
590
+ pinProtection: boolean | null;
591
+ backupRequired: boolean | null;
592
+ noBackup: boolean | null;
593
+ unfinishedBackup: boolean | null;
594
+ recoveryMode: boolean | null;
595
+ language: string | null;
596
+ bleEnabled: boolean | null;
597
+ sdCardPresent: boolean | null;
598
+ sdProtection: boolean | null;
599
+ wipeCodeProtection: boolean | null;
600
+ passphraseAlwaysOnDevice: boolean | null;
601
+ safetyChecks: string | null;
602
+ autoLockDelayMs: number | null;
603
+ displayRotation: number | null;
604
+ experimentalFeatures: boolean | null;
605
+ firmwareVersion: string | null;
606
+ bootloaderVersion: string | null;
607
+ boardVersion: string | null;
608
+ bleVersion: string | null;
609
+ se01Version?: string | null;
610
+ se02Version?: string | null;
611
+ se03Version?: string | null;
612
+ se04Version?: string | null;
613
+ se01BootVersion?: string | null;
614
+ se02BootVersion?: string | null;
615
+ se03BootVersion?: string | null;
616
+ se04BootVersion?: string | null;
617
+ seVersion?: string | null;
618
+ verify?: DeviceFeaturesVerify;
619
+ sessionId: string | null;
620
+ passphraseState?: string;
621
+ unlockedAttachPin?: boolean;
622
+ raw?: DeviceFeaturesRaw;
623
+ };
624
+ type OnekeyFeatures = Messages.OnekeyFeatures;
625
+ type IDeviceType = EDeviceType.Unknown | EDeviceType.Classic | EDeviceType.Classic1s | EDeviceType.ClassicPure | EDeviceType.Mini | EDeviceType.Touch | EDeviceType.Pro | EDeviceType.Pro2;
626
+ type IDeviceModel = 'model_classic' | 'model_mini' | 'model_touch' | 'model_classic1s';
627
+ declare const DeviceModelToTypes: {
628
+ [deviceModel in IDeviceModel]: IDeviceType[];
629
+ };
630
+ declare const DeviceTypeToModels: {
631
+ [deviceType in IDeviceType]: IDeviceModel[];
632
+ };
633
+ type IDeviceFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
634
+ type IDeviceBLEFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
635
+ type ITransportStatus = 'valid' | 'outdated';
636
+ type IVersionRange = {
637
+ min: string;
638
+ max?: string;
639
+ unsupported?: boolean;
640
+ };
641
+ type DeviceFirmwareRange = {
642
+ [deviceType in IDeviceType | IDeviceModel]?: IVersionRange;
643
+ };
644
+ type FeaturesNarrowing = {
645
+ major_version: 2;
646
+ fw_major: null;
647
+ fw_minor: null;
648
+ fw_patch: null;
649
+ bootloader_mode: true;
650
+ firmware_present: false;
651
+ } | {
652
+ major_version: 2;
653
+ fw_major: null;
654
+ fw_minor: null;
655
+ fw_patch: null;
656
+ bootloader_mode: null;
657
+ firmware_present: null;
658
+ } | {
659
+ major_version: 2;
660
+ fw_major: 2;
661
+ fw_minor: number;
662
+ fw_patch: number;
663
+ bootloader_mode: true;
664
+ firmware_present: true;
665
+ } | {
666
+ major_version: 1;
667
+ fw_major: null;
668
+ fw_minor: null;
669
+ fw_patch: null;
670
+ bootloader_mode: true;
671
+ firmware_present: false;
672
+ } | {
673
+ major_version: 1;
674
+ fw_major: null;
675
+ fw_minor: null;
676
+ fw_patch: null;
677
+ bootloader_mode: true;
678
+ firmware_present: true;
679
+ };
680
+ type StrictFeatures = Features & FeaturesNarrowing;
681
+ type SupportFeatureType = {
682
+ support: boolean;
683
+ require?: string;
684
+ };
685
+ type SupportFeatures = {
686
+ inputPinOnSoftware: SupportFeatureType;
687
+ modifyHomescreen: SupportFeatureType;
658
688
  };
659
689
 
660
- type FileOpSuccess = {
661
- message?: string;
690
+ type transportEnv = 'node' | 'web' | 'webextension' | 'electron' | 'react-native' | 'webusb' | 'desktop-webusb' | 'desktop-web-ble' | 'emulator' | 'lowlevel' | 'node-usb';
691
+ type ConnectSettings = {
692
+ connectSrc?: string;
693
+ debug?: boolean;
694
+ transportReconnect?: boolean;
695
+ lazyLoad?: boolean;
696
+ origin?: string;
697
+ parentOrigin?: string;
698
+ configSrc: string;
699
+ iframeSrc: string;
700
+ version: string;
701
+ priority: number;
702
+ trustedHost: boolean;
703
+ supportedBrowser?: boolean;
704
+ env: transportEnv;
705
+ timestamp: number;
706
+ isFrame?: boolean;
707
+ preRelease?: boolean;
708
+ fetchConfig?: boolean;
709
+ extension?: string;
710
+ configFetcher?: (url: string) => Promise<RemoteConfigResponse | null>;
711
+ protocolV2DeviceInfoMockEnabled?: boolean;
662
712
  };
663
- type FileInfo = {
664
- path: string;
665
- offset: number;
666
- total_size: number;
667
- data?: Uint8Array;
668
- data_hash?: number;
669
- processed_byte?: number;
670
- chunks?: number;
713
+ type IVersionArray = [number, number, number];
714
+ type ILocale = 'zh-CN' | 'en-US';
715
+ type IFirmwareReleaseInfo = {
716
+ required: boolean;
717
+ url: string;
718
+ firmwareType?: EFirmwareType;
719
+ resource?: string;
720
+ fullResource?: string;
721
+ fullResourceRange?: string[];
722
+ bootloaderResource?: string;
723
+ bootloaderVersion?: IVersionArray;
724
+ displayBootloaderVersion?: IVersionArray;
725
+ bootloaderRelatedFirmwareVersion?: IVersionArray;
726
+ bootloaderChangelog?: {
727
+ [k in ILocale]: string;
728
+ };
729
+ fingerprint: string;
730
+ version: IVersionArray;
731
+ changelog: {
732
+ [k in ILocale]: string;
733
+ };
671
734
  };
672
- type DirInfo = {
673
- path: string;
674
- child_dirs?: string;
675
- child_files?: string;
735
+ type IBLEFirmwareReleaseInfo = {
736
+ required: boolean;
737
+ url: string;
738
+ webUpdate: string;
739
+ fingerprint: string;
740
+ fingerprintWeb: string;
741
+ version: IVersionArray;
742
+ changelog: {
743
+ [k in ILocale]: string;
744
+ };
676
745
  };
677
- type PathInfoResult = {
678
- exist: boolean;
679
- size: number;
680
- year: number;
681
- month: number;
682
- day: number;
683
- hour: number;
684
- minute: number;
685
- second: number;
686
- readonly: boolean;
687
- hidden: boolean;
688
- system: boolean;
689
- archive: boolean;
690
- directory: boolean;
746
+ type IKnownDevice = Exclude<IDeviceType, 'unknown' | 'pro2'>;
747
+ type DeviceTypeMap = {
748
+ [k in IKnownDevice]: {
749
+ firmware: IFirmwareReleaseInfo[];
750
+ 'firmware-v2'?: IFirmwareReleaseInfo[];
751
+ 'firmware-v8'?: IFirmwareReleaseInfo[];
752
+ 'firmware-btc-v8'?: IFirmwareReleaseInfo[];
753
+ ble: IBLEFirmwareReleaseInfo[];
754
+ };
691
755
  };
692
- declare function getProtoVersion(connectId: string, params?: CommonParams): Response<ProtoVersion>;
693
- declare function ping(connectId: string, params?: CommonParams & {
694
- message?: string;
695
- }): Response<Success$1>;
696
- declare function deviceReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
697
- declare function deviceGetDeviceInfo(connectId: string, params?: CommonParams & DeviceGetDeviceInfoParams): Response<ProtocolV2DeviceInfo>;
698
- declare function deviceGetOnboardingStatus(connectId: string, params?: CommonParams): Response<OnboardingStatus>;
699
- declare function deviceFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DevFirmwareUpdateStatus | DeviceFirmwareUpdateStatus>;
700
- declare function deviceGetFirmwareUpdateStatus(connectId: string, params?: CommonParams): Response<DevFirmwareUpdateStatus | DeviceFirmwareUpdateStatus>;
701
- declare function devReboot(connectId: string, params: CommonParams & DeviceRebootParams): Response<Success$1>;
702
- declare function devGetDeviceInfo(connectId: string, params?: CommonParams & DeviceGetDeviceInfoParams): Response<ProtocolV2DeviceInfo>;
703
- declare function devFirmwareUpdate(connectId: string, params: CommonParams & DeviceFirmwareUpdateParams): Response<Success$1 | DevFirmwareUpdateStatus>;
704
- declare function devGetFirmwareUpdateStatus(connectId: string, params?: CommonParams): Response<DevFirmwareUpdateStatus>;
705
- declare function factoryDeviceInfoSettings(connectId: string, params: FactoryDeviceInfoSettingsParams): Response<Success$1>;
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;
756
+ type AssetsMap = {
757
+ bridge: {
758
+ version: IVersionArray;
759
+ linux32Rpm: string;
760
+ linux64Rpm: string;
761
+ linux32Deb: string;
762
+ linux64Deb: string;
763
+ win: string;
764
+ mac: string;
765
+ sha256sumAsc: string;
766
+ changelog: {
767
+ [k in ILocale]: string;
768
+ };
769
+ };
777
770
  };
771
+ type RemoteConfigResponse = {
772
+ bridge: AssetsMap['bridge'];
773
+ } & DeviceTypeMap;
778
774
 
779
775
  declare function init(settings: Partial<ConnectSettings>, lowLevelApi?: LowLevelCoreApi, pulgin?: LowlevelTransportSharedPlugin): Promise<boolean>;
780
776
  declare function updateSettings(settings: Partial<ConnectSettings>): Promise<boolean>;
@@ -841,13 +837,94 @@ declare function searchDevices(params?: CommonParams): Response<SearchDevice[]>;
841
837
 
842
838
  declare function getFeatures(connectId?: string, params?: CommonParams): Response<Features>;
843
839
 
840
+ type DeviceInfoProtocol = ProtocolType | 'unknown';
841
+ type DeviceInfoSource = 'features' | 'protocolV1OneKeyFeatures' | 'deviceInfo';
842
+ type DeviceInfoScope = 'basic' | 'versions' | 'verify' | 'full';
843
+ type GetDeviceInfoParams = {
844
+ scope?: DeviceInfoScope;
845
+ refresh?: boolean;
846
+ includeRaw?: boolean;
847
+ };
848
+ type DeviceInfoMode = 'normal' | 'bootloader' | 'notInitialized' | 'unknown';
849
+ type DeviceInfoStatus = {
850
+ mode: DeviceInfoMode;
851
+ initialized: boolean | null;
852
+ bootloaderMode: boolean | null;
853
+ unlocked: boolean | null;
854
+ passphraseProtection: boolean | null;
855
+ backupRequired: boolean | null;
856
+ noBackup: boolean | null;
857
+ language: string | null;
858
+ bleEnabled: boolean | null;
859
+ };
860
+ type DeviceProfileVersions = {
861
+ firmware: string | null;
862
+ bootloader: string | null;
863
+ board: string | null;
864
+ ble: string | null;
865
+ se01?: string | null;
866
+ se02?: string | null;
867
+ se03?: string | null;
868
+ se04?: string | null;
869
+ se01Boot?: string | null;
870
+ se02Boot?: string | null;
871
+ se03Boot?: string | null;
872
+ se04Boot?: string | null;
873
+ };
874
+ type DeviceProfileVerify = {
875
+ firmwareBuildId?: string;
876
+ firmwareHash?: string;
877
+ bootloaderBuildId?: string;
878
+ bootloaderHash?: string;
879
+ boardBuildId?: string;
880
+ boardHash?: string;
881
+ bleBuildId?: string;
882
+ bleHash?: string;
883
+ se01BuildId?: string;
884
+ se01Hash?: string;
885
+ se02BuildId?: string;
886
+ se02Hash?: string;
887
+ se03BuildId?: string;
888
+ se03Hash?: string;
889
+ se04BuildId?: string;
890
+ se04Hash?: string;
891
+ se01BootBuildId?: string;
892
+ se01BootHash?: string;
893
+ se02BootBuildId?: string;
894
+ se02BootHash?: string;
895
+ se03BootBuildId?: string;
896
+ se03BootHash?: string;
897
+ se04BootBuildId?: string;
898
+ se04BootHash?: string;
899
+ };
900
+ type DeviceProfileRaw = {
901
+ features?: Features;
902
+ protocolV1OneKeyFeatures?: OnekeyFeatures;
903
+ protocolV2DeviceInfo?: ProtocolV2DeviceInfo;
904
+ };
905
+ type DeviceProfile = {
906
+ protocol: DeviceInfoProtocol;
907
+ sources: DeviceInfoSource[];
908
+ deviceType: IDeviceType;
909
+ firmwareType: EFirmwareType;
910
+ deviceId: string;
911
+ serialNo: string;
912
+ label: string | null;
913
+ bleName: string | null;
914
+ status: DeviceInfoStatus;
915
+ versions: DeviceProfileVersions;
916
+ verify?: DeviceProfileVerify;
917
+ raw?: DeviceProfileRaw;
918
+ };
919
+ declare function getDeviceInfo(connectId?: string, params?: CommonParams & GetDeviceInfoParams): Response<DeviceProfile>;
920
+
844
921
  declare function getOnekeyFeatures(connectId?: string, params?: CommonParams): Response<OnekeyFeatures>;
845
922
 
846
923
  type GetPassphraseStatePayload = {
847
- passphrase_state?: string;
848
- session_id?: string;
849
- unlocked_attach_pin?: boolean;
850
- passphrase_protection?: boolean | null;
924
+ passphraseState?: string;
925
+ sessionId?: string;
926
+ unlockedAttachPin?: boolean;
927
+ passphraseProtection?: boolean | null;
851
928
  };
852
929
  type GetPassphraseStateParams = CommonParams & {
853
930
  allowCreateAttachPin?: boolean;
@@ -1042,7 +1119,7 @@ type DeviceUploadResourceResponse = Success$1 & {
1042
1119
  declare function deviceUploadResource(connectId: string, params: CommonParams & DeviceUploadResourceParams): Response<DeviceUploadResourceResponse>;
1043
1120
 
1044
1121
  type DeviceSupportFeatures = SupportFeatures & {
1045
- device: Device$1 | null;
1122
+ device: Device | null;
1046
1123
  };
1047
1124
  declare function deviceSupportFeatures(connectId?: string): Response<DeviceSupportFeatures>;
1048
1125
 
@@ -3249,7 +3326,7 @@ interface UiRequestFirmwareProgressing {
3249
3326
  type UiRequestDeviceAction = {
3250
3327
  type: typeof UI_REQUEST.REQUEST_PIN;
3251
3328
  payload: {
3252
- device: Device$1;
3329
+ device: Device;
3253
3330
  type?: Messages.PinMatrixRequestType | 'ButtonRequest_PinEntry' | 'ButtonRequest_AttachPin';
3254
3331
  };
3255
3332
  };
@@ -3260,7 +3337,7 @@ interface UiRequestButton {
3260
3337
  interface UiRequestPassphrase {
3261
3338
  type: typeof UI_REQUEST.REQUEST_PASSPHRASE;
3262
3339
  payload: {
3263
- device: Device$1;
3340
+ device: Device;
3264
3341
  passphraseState?: string;
3265
3342
  existsAttachPinUser?: boolean;
3266
3343
  };
@@ -3268,20 +3345,20 @@ interface UiRequestPassphrase {
3268
3345
  interface UiRequestPassphraseOnDevice {
3269
3346
  type: typeof UI_REQUEST.REQUEST_PASSPHRASE_ON_DEVICE;
3270
3347
  payload: {
3271
- device: Device$1;
3348
+ device: Device;
3272
3349
  passphraseState?: string;
3273
3350
  };
3274
3351
  }
3275
3352
  interface UiRequestSelectDeviceInBootloaderForWebDevice {
3276
3353
  type: typeof UI_REQUEST.REQUEST_DEVICE_IN_BOOTLOADER_FOR_WEB_DEVICE;
3277
3354
  payload: {
3278
- device: Device$1;
3355
+ device: Device;
3279
3356
  };
3280
3357
  }
3281
3358
  interface UiRequestSelectDeviceForSwitchFirmwareWebDevice {
3282
3359
  type: typeof UI_REQUEST.REQUEST_DEVICE_FOR_SWITCH_FIRMWARE_WEB_DEVICE;
3283
3360
  payload: {
3284
- device: Device$1;
3361
+ device: Device;
3285
3362
  };
3286
3363
  }
3287
3364
  interface FirmwareProcessing {
@@ -3294,7 +3371,7 @@ type IFirmwareUpdateProgressType = 'transferData' | 'installingFirmware';
3294
3371
  interface FirmwareProgress {
3295
3372
  type: typeof UI_REQUEST.FIRMWARE_PROGRESS;
3296
3373
  payload: {
3297
- device: Device$1;
3374
+ device: Device;
3298
3375
  progress: number;
3299
3376
  progressType: IFirmwareUpdateProgressType;
3300
3377
  transferredBytes?: number;
@@ -3306,7 +3383,7 @@ interface FirmwareProgress {
3306
3383
  interface FirmwareTip {
3307
3384
  type: typeof UI_REQUEST.FIRMWARE_TIP;
3308
3385
  payload: {
3309
- device: Device$1;
3386
+ device: Device;
3310
3387
  data: {
3311
3388
  message: string;
3312
3389
  };
@@ -3325,7 +3402,7 @@ interface DeviceProgress {
3325
3402
  interface PreviousAddressResult {
3326
3403
  type: typeof UI_REQUEST.PREVIOUS_ADDRESS_RESULT;
3327
3404
  payload: {
3328
- device: Device$1;
3405
+ device: Device;
3329
3406
  data: {
3330
3407
  address?: string;
3331
3408
  path?: string;
@@ -3578,7 +3655,7 @@ type UiPromiseResponse = UiResponseEvent | {
3578
3655
  };
3579
3656
  type UiPromise<T extends UiPromiseResponse['type']> = Deferred<Extract<UiPromiseResponse, {
3580
3657
  type: T;
3581
- }>, T, Device>;
3658
+ }>, T, Device$1>;
3582
3659
 
3583
3660
  declare const LogBlockEvent: Set<string>;
3584
3661
  declare function getLogBlockLabel(message: unknown): string | undefined;
@@ -3654,7 +3731,7 @@ declare const normalizeVersionArray: (version: number[]) => number[];
3654
3731
  declare const versionSplit: (version: string) => number[];
3655
3732
  declare const versionCompare: (a: string | number[], b: string | number[]) => 0 | 1 | -1;
3656
3733
 
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">;
3734
+ 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<"ViewAmount"> | TypedResponseMessage<"ViewDetail"> | TypedResponseMessage<"ViewTip"> | 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<"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<"DebugLinkInput"> | TypedResponseMessage<"InternalMyAddressRequest"> | TypedResponseMessage<"SetBusy"> | TypedResponseMessage<"GetFirmwareHash"> | TypedResponseMessage<"FirmwareHash"> | TypedResponseMessage<"GetNonce"> | TypedResponseMessage<"Nonce"> | TypedResponseMessage<"WriteSEPrivateKey"> | TypedResponseMessage<"SetWallpaper"> | TypedResponseMessage<"GetWallpaper"> | TypedResponseMessage<"Wallpaper"> | TypedResponseMessage<"UnlockPath"> | TypedResponseMessage<"UnlockedPathRequest"> | TypedResponseMessage<"ViewSignPage"> | TypedResponseMessage<"ViewVerifyPage"> | TypedResponseMessage<"GetProtoVersion"> | TypedResponseMessage<"ProtoVersion"> | TypedResponseMessage<"DevReboot"> | TypedResponseMessage<"DevGetDeviceInfo"> | TypedResponseMessage<"DevFirmwareUpdate"> | TypedResponseMessage<"DevGetFirmwareUpdateStatus"> | 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
3735
 
3659
3736
  declare const getDeviceType: (features?: Features) => IDeviceType;
3660
3737
  declare const getDeviceTypeByBleName: (name?: string) => IDeviceType;
@@ -3787,4 +3864,4 @@ declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, can
3787
3864
  declare const HardwareSDKLowLevel: ({ init, call, dispose, eventEmitter, addHardwareGlobalEventListener, uiResponse, cancel, updateSettings, switchTransport, }: LowLevelInjectApi) => LowLevelCoreApi;
3788
3865
  declare const HardwareTopLevelSdk: () => CoreApi;
3789
3866
 
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$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesPayload, 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 };
3867
+ 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 };